Reputation
1,793
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
2 21 44
Impact
~151k people reached

Jul
3
awarded  Notable Question
Jun
22
awarded  Favorite Question
Jun
10
comment Highlight every occurrence of a list of words?
lots of great answers here provided me with insight into the capabilities of various *tex implementations; +50 for identifying and scripting the core features as a generic and adaptable solution.
Jun
5
accepted Highlight every occurrence of a list of words?
Jun
5
comment Highlight every occurrence of a list of words?
@michal.h21 ... maybe not. I updated from TexLive 2011 to 2013 and it runs great. Thanks! I favor this solution because it doesn't require any additional commands to wrap the text part of the document (between begin / end), and doesn't conflict with other functions like \section.
Jun
5
comment Highlight every occurrence of a list of words?
@alexis I am using Ubuntu... a scripted solution would be great.
Jun
5
awarded  Nice Question
Jun
5
comment Highlight every occurrence of a list of words?
I see. Seems to work with TexLive 2013 but not TexLive 2011. Plus the log output is more informative in 2013 ... I'll do the upgrade.
Jun
5
comment Highlight every occurrence of a list of words?
Thanks... I meant 'sufficient to ignore, rather than process section commands'. Of course its easy enough to \renewcommand{\section}{\textbf} ...
Jun
5
comment Highlight every occurrence of a list of words?
I am getting undefined control sequence ! Undefined control sequence. \\addhighlighting ..._seq {#1}}\clist_if_exist:cF {g_david_highlight_#1_clis... l.31 \addhighlighting{amet,Mauris,ut,et,leo} when I try to compile your example. I posted the source and log here‌​. Did you test it?
Jun
5
comment Highlight every occurrence of a list of words?
Looks great, but I am getting an error using lualatex file.tex. The error is: ! LuaTeX error ./highlight.lua:19: attempt to call upvalue 'get_color' (a nil v alue) (log and sources). Am I doing this correctly?
Jun
5
comment Highlight every occurrence of a list of words?
It would be sufficient to ignore, rather than process, these - is that possible?
Jun
4
comment Highlight every occurrence of a list of words?
Thanks. Really nice. As you said, it gets hung up on punctuation. It also seems to get hung up on the \section command (just add \section{foo} between paragraphs to reproduce ...
Jun
4
revised Highlight every occurrence of a list of words?
added 117 characters in body; edited tags
Jun
4
revised Highlight every occurrence of a list of words?
added 117 characters in body; edited tags
Jun
4
comment Highlight every occurrence of a list of words?
@jon Actually, I just tried compiling with lualatex and it ran without error. I had previously tried compiling with luatex, which is what made me cautious.
Jun
4
comment Highlight every occurrence of a list of words?
@StevenB.Segletes ideally, highlight "bar" as part of the word, so that I can identify prefixes. But the solution doesn't have to be perfect, just a general overview so I can map related sections.
Jun
4
comment Highlight every occurrence of a list of words?
@jon I don't say it must be done in pdflatex, only that this would be preferable since I use pdflatex and am not sure if another compiler would be compatible with the packages I currently use.
Jun
4
comment Highlight every occurrence of a list of words?
@TorbjørnT. Thanks. You are correct that the questions are duplicates, though the answer provided requires xelated; I've updated my question to request a pdflatex solution, which I would prefer.
Jun
4
revised Highlight every occurrence of a list of words?
edited title