On Fri, Oct 19, 2007 at 02:44:49AM +0200, Enrico Forestieri wrote:
> On Thu, Oct 18, 2007 at 09:11:07PM +0200, Andre Poenitz wrote:
> > 
> > Has anybody recently actually tried to compile the UserGuide?
> > 
> > On my machine LaTeX simply does not finish. Run by hand I get stuff
> > like
> > 
> > 
> > ! Use of [EMAIL PROTECTED] doesn't match its definition.
> > [EMAIL PROTECTED] #1->\def [EMAIL PROTECTED] {
> >                                     #1}\ifx [EMAIL PROTECTED] [EMAIL 
> > PROTECTED] \let
> > [EMAIL PROTECTED]
> > l.4770 ...{http://wiki.lyx.org/Bib\TeX{}/Programs}
> >                                                   \\
> > ?
> 
> Commands such as \url and \index don't like latex macros in their
> argument, and the UserGuide is full of them:
> 
> $ egrep "\\(url|index)[{].*(LyX|TeX).*[}]" UserGuide.tex | wc -l
> 46
> 
> This is due to the LyX -> \LyX and TeX -> \TeX translations performed
> by LyX.
> 
> When the words LyX or TeX (or LaTeX, or BibTeX, or ...) appear in the
> argument of one of those commands, they should be marked as ERT in
> order to avoid their translation to a macro.

It is more complicated than that. Inside \index we would really want the macro
output to appear in the index entry (although LyX didn't manage that
earlier either). Inside \url we don't want the macros to be expanded at all.

- Martin

Reply via email to