Fractions

W

WLH

Some fractions such as 1/2 are auto corrected while
others such as 5/8 are not. How can I apply the fraction
stlye to all fractions
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < WLH > écrivait :
In this message, < WLH > wrote:

|| Some fractions such as 1/2 are auto corrected while
|| others such as 5/8 are not. How can I apply the fraction
|| stlye to all fractions

The short answer is that you cannot.
The autocorrect ones are there because there exits unique character symbols
for some of the most common fractions:
¼ ½ ¾
for example.

Numbers being infinite, there cannot be a symbol for all possible fractions.
A decision had to be made.... Although 5/8 is not uncommon, it is not part
of the character map.

If your document has a lot of different fractions, it is probably best not
to use the autocorrect one as they will stand out from the others.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Suzanne S. Barnhill > écrivait :
In this message, < Suzanne S. Barnhill > wrote:

|| Glyphs for the thirds and eighths are included in most Unicode fonts.
||

Ok, got then from Windows Character Map:
??????

But they look different from the three standard fractions: ¼½¾

I could not see them in Word's Insert Symbol dialog. Is there a trick?
Shouldn't they be there? How do you insert them with a keyboard shortcut?
They are not part of the first 256 characters... So ALT-Numeric Key pad does
not seem to work (U+2153, U+2154, U+215B, U+215C, U+215D and U+215E were the
Unicode numbers I got).


TIA
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
S

Suzanne S. Barnhill

You can define your own keyboard shortcuts for the characters or press, say,
2153, Alt+X, for the 1/3 character. The Alt+X shortcut works for all Unicode
characters (in Word 2002 and above).
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Suzanne S. Barnhill > écrivait :
In this message, < Suzanne S. Barnhill > wrote:

|| You can define your own keyboard shortcuts for the characters or press,
say,
|| 2153, Alt+X, for the 1/3 character. The Alt+X shortcut works for all
Unicode
|| characters (in Word 2002 and above).
||

ALT-X for me is Display footnote (Word 2002), meaning, go to footnote.
Is this a language thing? Most shortcuts I read about in the NG do not work
for me.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
S

Suzanne S. Barnhill

Could be a language thing. Or it could be that you're not pressing Alt and X
simultaneously. If you press Alt first, you get to the Menu Bar, and X might
then give you some menu command. In my version of Word, View | Footnote does
not have a keyboard shortcut.
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Suzanne S. Barnhill > écrivait :
In this message, < Suzanne S. Barnhill > wrote:

|| Could be a language thing. Or it could be that you're not pressing Alt
and X
|| simultaneously. If you press Alt first, you get to the Menu Bar, and X
might
|| then give you some menu command. In my version of Word, View | Footnote
does
|| not have a keyboard shortcut.
||

Ah well, I guess I will have to look in the keyboard dialog from the
customization one to look at all the commands to find it... I remember
having to do that for the useful command that is used with, I think,
ALT-CTRL-+ and its opposite... (The one that adds or removes items from
menus). In French versions it is a different command... And I am going to
have to look it up again, I forgot again what it is on my version!

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
C

Chad DeMeyer

Jean-Guy,

To avoid having to look at all the commands in the keyboard dialog, you can
get a listing of all the keybindings with the following macro:

Public Sub ShowKeyBindings()
Dim kb As KeyBinding

Selection.InsertAfter KeyBindings.Count & _
" key bindings in context: " & CustomizationContext & vbCr

Selection.Collapse wdCollapseEnd
For Each kb In KeyBindings
Selection.InsertBefore kb.KeyString & vbTab & _
kb.Command & " (" & kb.CommandParameter & ")" & vbCr
Selection.Collapse wdCollapseEnd
Next kb
End Sub

Regards,
Chad DeMeyer
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Chad DeMeyer > écrivait :
In this message, < Chad DeMeyer > wrote:

|| Jean-Guy,
||
|| To avoid having to look at all the commands in the keyboard dialog, you
can
|| get a listing of all the keybindings with the following macro:
||
|| Public Sub ShowKeyBindings()
|| Dim kb As KeyBinding
||
|| Selection.InsertAfter KeyBindings.Count & _
|| " key bindings in context: " & CustomizationContext & vbCr
||
|| Selection.Collapse wdCollapseEnd
|| For Each kb In KeyBindings
|| Selection.InsertBefore kb.KeyString & vbTab & _
|| kb.Command & " (" & kb.CommandParameter & ")" & vbCr
|| Selection.Collapse wdCollapseEnd
|| Next kb
|| End Sub
||

I maybe wrong (as I am not all that familiar with KeyBindings in VBA), I
believe that this code only lists customized KeyBindings.
When I run it I get:

1 key bindings in context: Normal.dot

Alt+Ctrl+D InsertDateTime ()



But if I run:

Application.ListCommands ListAllCommands:=True
then I get the full list (including all the Add-ins). I think that if you
want only Word's commands, you have to set ListAllCommands to False.

With this I found that in the French version of Word, ALT-X is ALT-C.

Thanks for the idea!

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
C

Chad DeMeyer

You're welcome. Thanks for the clarification on what is included in the
KeyBindings collection. I had overlooked the ListCommands method.

Regards,
Chad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top