When writing technical documents, I often want to format 'technical phrases' (such as the name of some technology) in a particular way, which becomes annoying when I type the phrases frequently.
I'm wondering if there's a way I could define a list of 'keywords' in my LaTeX document which, when encountered else in the document, are automatically formatted in a particular way (which I would define).
For example, instead of the current method of:
The \textbf{gmond} daemon is the blurst. I hate \textbf{gmond} and \textbf{gmetad}.
I could write something which could look like
\keywords{gmond, gmetad}{\textbf}
The gmond daemon is the blurst. I hate gmond and gmetad.
which would produce identical output as above.
Is this at all possible? I'm happy to have to write \gmond
, as long as I don't have to define the command for each word in my keywords list.
the \gmond\ daemon is the blurst. I hate \gmond\ and \gmetad.
then it is easy to set up, if you want it without markup then it's possible (there are some answers on site) but more fragile and possibly easier with lualatex than classic latex. – David Carlisle Jan 7 '16 at 20:35