Re: Label in User-Defined Environment

2006-07-20 Thread Richard Heck
Here's a version of the formula environment that works in LyX. \newcounter{formula} \newenvironment{Formula}% {% \begin{list}{\theformula}% {% \setlength{\labelwidth}{\leftmargin - \labelsep}% \let\olditem=\item% \renewcomman

Re: Label in User-Defined Environment

2006-07-20 Thread Bruce Pourciau
Thank you very much, Richard. I'll forward your solution to my colleague. He'll be _very_ happy. Bruce On Jul 20, 2006, at 11:20 AM, Richard Heck wrote: Does he want automatically to have the label created every time he creates the environment? Or does he just want to put a label in it manu

Re: Label in User-Defined Environment

2006-07-20 Thread Richard Heck
Does he want automatically to have the label created every time he creates the environment? Or does he just want to put a label in it manually, after he creates it, so he can cross-reference to it? If the latter, it's trivial: Just put the label there. You can do this, for example, with the lemma

Label in User-Defined Environment

2006-07-20 Thread Bruce Pourciau
Thinking I knew much more LaTeX than I do, a colleague asked me how to introduce a label command in a user-defined environment so he could cross-reference. I said I'd check with the LaTeX experts on the LyX list. What say you? Bruce