Re: Cross-referencing a new environment

2007-02-21 Thread Ramon Flores
Em Sexta, 16 de Fevereiro de 2007 17:36, o Richard Heck escreveu: This looks to be more a LaTeX issue than a layout issue. Instead of \addtocounter{exemplo}{1} use \refstepcounter{exemplo} The latter both steps the counter and makes it the target for cross-references. Otherwise, the

Re: Cross-referencing a new environment

2007-02-21 Thread Helge Hafting
Ramon Flores wrote: Em Sexta, 16 de Fevereiro de 2007 17:36, o Richard Heck escreveu: This looks to be more a LaTeX issue than a layout issue. Instead of \addtocounter{exemplo}{1} use \refstepcounter{exemplo} The latter both steps the counter and makes it the target for cross-references.

Re: Cross-referencing a new environment

2007-02-21 Thread Ramon Flores
Em Sexta, 16 de Fevereiro de 2007 17:36, o Richard Heck escreveu: This looks to be more a LaTeX issue than a layout issue. Instead of \addtocounter{exemplo}{1} use \refstepcounter{exemplo} The latter both steps the counter and makes it the target for cross-references. Otherwise, the

Re: Cross-referencing a new environment

2007-02-21 Thread Helge Hafting
Ramon Flores wrote: Em Sexta, 16 de Fevereiro de 2007 17:36, o Richard Heck escreveu: This looks to be more a LaTeX issue than a layout issue. Instead of \addtocounter{exemplo}{1} use \refstepcounter{exemplo} The latter both steps the counter and makes it the target for cross-references.

Re: Cross-referencing a new environment

2007-02-21 Thread Ramon Flores
Em Sexta, 16 de Fevereiro de 2007 17:36, o Richard Heck escreveu: > This looks to be more a LaTeX issue than a layout issue. Instead of > > \addtocounter{exemplo}{1} > > use > > \refstepcounter{exemplo} > > The latter both steps the counter and makes it the target for > cross-references.

Re: Cross-referencing a new environment

2007-02-21 Thread Helge Hafting
Ramon Flores wrote: Em Sexta, 16 de Fevereiro de 2007 17:36, o Richard Heck escreveu: This looks to be more a LaTeX issue than a layout issue. Instead of \addtocounter{exemplo}{1} use \refstepcounter{exemplo} The latter both steps the counter and makes it the target for cross-references.

Cross-referencing a new environment

2007-02-16 Thread Ramon Flores
Hi: I have written a layout that is similar to book, but with a new environment, called exemplo (example in English). This environment has a LabelType of type counter, and the counter works nicely almost always, both in LyX screen as in output. I.e. each new exemplo is numbered taking into

Re: Cross-referencing a new environment

2007-02-16 Thread Richard Heck
This looks to be more a LaTeX issue than a layout issue. Instead of \addtocounter{exemplo}{1} use \refstepcounter{exemplo} The latter both steps the counter and makes it the target for cross-references. Otherwise, the target remains whatever it was, probably section, which is why you're

Cross-referencing a new environment

2007-02-16 Thread Ramon Flores
Hi: I have written a layout that is similar to book, but with a new environment, called exemplo (example in English). This environment has a LabelType of type counter, and the counter works nicely almost always, both in LyX screen as in output. I.e. each new exemplo is numbered taking into

Re: Cross-referencing a new environment

2007-02-16 Thread Richard Heck
This looks to be more a LaTeX issue than a layout issue. Instead of \addtocounter{exemplo}{1} use \refstepcounter{exemplo} The latter both steps the counter and makes it the target for cross-references. Otherwise, the target remains whatever it was, probably section, which is why you're

Cross-referencing a new environment

2007-02-16 Thread Ramon Flores
Hi: I have written a layout that is similar to book, but with a new environment, called exemplo (example in English). This environment has a "LabelType" of type "counter", and the counter works nicely almost always, both in LyX screen as in output. I.e. each new "exemplo" is numbered taking

Re: Cross-referencing a new environment

2007-02-16 Thread Richard Heck
This looks to be more a LaTeX issue than a layout issue. Instead of \addtocounter{exemplo}{1} use \refstepcounter{exemplo} The latter both steps the counter and makes it the target for cross-references. Otherwise, the target remains whatever it was, probably section, which is why you're