Hi All,

I'm using this in my preamble.sty to include doi-links:
\newcommand*{\doi}[1]{\href{http://dx.doi.org/#1}{doi:#1}}

this works less than great when the DOI happens to include an underscore "_"

I then get two "Missing $ inserted" warnings from lyx, and no pdf output.

I would need some magic in front of the \doi command which would make
lyx/latex ignore the underscore(s) and not complain about missing "$".
Any ideas?

This is lyx 1.6.5 with latex 3.1415926-1.40.10 on Ubuntu 10.04LTS

thanks,
AW

Reply via email to