I am using Lyx with Preamble. I am working on a project where the abbreviation "hon." needs to be set to small caps globally. (/sc). Tried to use \renewcommand, no luck there.

|
I am using Lyx with Preamble. I am working on a project where the abbreviation "hon." needs to be set to small caps globally. (/sc). Tried to use
|
||||
|
I think I see what you want. In LyX, type the text "LyX" and export to pdf. You will see that it is formatted automatically. Is that what you want? There is no user-friendly way to add your own special phrase as these (also "TeX", "LaTeX2e", "LaTeX") are hardcoded. However, if you can compile LyX, it's very easy to add your own: (1)
Edit
(1.5, optional) Note that you should also change (2) (re)compile. (3) Then in your preamble put
The reason it's a good idea to have a middleman, That should do what you want. I'm not sure it's a good idea though. Note that if you input An alternative way to the above would be to use a python script. |
|||
|
|
|
Probably the simplest approach is to use a macro specifically for "hon." wherever it appears.
Note the backslash after the macro |
|||||||||||
|
\renewcommandon what exactly? Might be a good idea to provide aMWE. – daleif Sep 14 '12 at 15:49\renewcommand{hon.}{{\sc hon.}}or something similar. – Niel de Beaudrap Sep 14 '12 at 15:59