[Omake] Hevea 1.08: \@style{CODE}...\@clearstyle forgets closing quote in text mode.

Aleksey Nogin anogin at hrl.com
Wed Feb 14 16:24:15 PST 2007


Dear Luc,

In our documentation aimed at being processed with your extremely useful 
Hevea package, we heavily use the \verb+foo+ form that produces 
<CODE>foo</CODE> in .html and a nicely quoted `foo' in text mode. I 
wanted to be able to get the same thing inside a macro, where I could 
not use \verb, so I tried defining

\newcommand\code[1]{\ifhevea{\@style{CODE}#1\@clearstyle}\else\texttt{{#1}}\fi}

Unfortunately, \code{foo} now produces `foo in text mode - the opening 
quote is present, but the closing on is abent...

Should this be considered a bug? Is there a better way? Thanks a lot!

Aleksey

P.S. I tried using the HeVeA mailing list, but 
http://sympa.inrets.fr/listes/info/hevea/ wants a password :-(

P.P.S. I have not tried 1.09 yet, will do that shortly.


More information about the OMake-Devel mailing list