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

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
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
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
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.
Dec
18
comment Is the Bembo font (or a close equivalent) available for LaTeX?
It is a great font - I personally prefer it to Bembo, but for the particularly picky, (as evidenced in the link provided), it is not quite "almost a perfect clone" as suggested here
Sep
17
comment Can I cross-reference computer code with LaTeX documentation?
answer: yes! I'll have to take a look: ctan.org/pkg/c2latex and mirrors.ibiblio.org/CTAN/support/c2latex/c2latex.c
Sep
17
comment Can I cross-reference computer code with LaTeX documentation?
@SeanAllred I have heard of CWEB, and it is certainly an option. I am familiar with Sweave and org-mode (which I believe are similar (?)). However, for source code, this solution appears less consistent with a standard C-development workflow (and more difficult to debug, etc).
Sep
17
comment Can I cross-reference computer code with LaTeX documentation?
regarding your suggestion about \def\pow{}{}... by any chance does such a c2latex converter already exist?
Sep
17
comment Can I cross-reference computer code with LaTeX documentation?
I kept the "desired workflow" vague because my primary goal is to make documentation easier, less redundant, more accurate. My intuition is that Doxygen source->documentation is preferable to CWEB style documentation-> source because it is easier to debug and more accessible to new developers. Continuing to maintain separate source and documentation is also an option; perhaps one solution would be to maintain a database (even a simple csv table) of the definitions and functions that could be loaded by both documentation and source.
Sep
9
comment Will todonotes work inside an align environment?
! LaTeX Error: \@todonotes@drawMarginNoteWithLine undefined.?
Sep
9
comment Will todonotes work inside an align environment?
@henry I did search the documentation for "align", and saw the alternative you describe, but (if I understand correctly) that is related to aligning an equation within a todo note, rather than vice-versa.