Is it possible and furthermore constructive to make LaTeX automatically format specific words in specific way? Let's say, for example, I'd like to have every occurrence of the word "hello" in a bold cyan monospaced font, whereas the rest of the document remains normal, sans serif and black.
How can I achieve that without having to do a search&replace to place "hello" into a custom command every time before I compile the .tex file?
Best Answer
Compile this with XeLaTeX
But don't use it. If you want to specially mark a word, use a macro.
Why? Relying on automatic procedures is always risky: if I have a choice, I prefer explicit mark up. Another reason is that
xesearch
is resource hungry and currently unmaintained.There's nothing similar for
pdflatex
; something can possibly be done with LuaLaTeX. I triedchickenize
but it doesn't seem to offer the feature.