I am writing an AWK programming book and when I explain things, I refer to special AWK variables all the time, such as ORS. Is it possible to set LaTeX up in such a way that these words are always in bold in the text, so I don't have to write \bf{ORS} all the time?
|
|
|||||||||
|
|
For a job like this I usually define a convenience macro:
Now you can say |
|||||||||||||||
|
|
In lieu of a ton of
The
You can always add another one if you wish at a later stage. The |
|||||
|
|
First of all, try to avoid you could use
UpdateUpdated the answer according to lockstep's suggestion. |
|||||||
|
|
With LuaTeX, you can translate your input before it is passed on to TeX. Here is an example of doing the automatic translation in ConTeXt:
|
|||||||
|
|
Combining Christian's answer with Yiannis, you can get a single
|
|||||||||
|
