From: Juergen Spitzmueller <[EMAIL PROTECTED]>
To: lyx-users@lists.lyx.org
Date: Tue, 19 Sep 2006 13:08:54 +0200
Subject: Re: Problem with Algorithm label language
Ares wrote:
> In fact, when I export to pdflatex my master.lyx I get the "undefined
> control sequence" error message related to \ref{alg:<label>}.

Please give the full error message.

Jürgen

I'll be more specific, because this looks quite weird to me (but I
know there's a simple solution to it)...

I have master.lyx, where I insert several child documents (iclude
type: include). I'm using several packages, and there's some extra
line of code in the preamble that worked well so far.
In one of these chile docs I write:

This algorithm [alg:test] is a test:
float: Algorithm: Algorithm#: [alg: tes] Test algorithm

When I do export>pdflatex I get the following error message during 2nd
LaTeX run:

Undefined control sequence
This algorithm \ref{alg: test}
                             is a test:
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
mispelled it (cut)


The very strange things are that:
1) I don't get any such error when I do the same with a new set of
files (master > child), or 2) with the original child doc alone (where
the algorithm float is found).
so I guess this might be related to the preamble stuff or so.

I can attach the preamble, or the whole document if you think it helps.

Thanks for your support,
Diego

Reply via email to