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 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.5, optional) Note that you should also change
(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