Counter feature: should counter name be the LaTeX name?

Richard Kimberly Heck rikiheck at lyx.org
Sat Dec 5 17:02:30 UTC 2020


On 12/4/20 4:14 PM, Scott Kostyshak wrote:
> See the attached .lyx file. It gives an error, whose cause is easily seen from the LaTeX:
>
>   \begin{thm}
>   Hello
>   \end{thm}
>   abc
>   
>   \setcounter{theorem}{0}
>   \begin{thm}
>   Again
>   \end{thm}
>
> LatexName of the style Theorem is set to "thm". Is that what should be used as the counter name? Do we currently use the layout name?

We use the counter name, which in LyX is "theorem". Believe it or not,
there's no facility to say what the LaTeX equivalent is. I guess I will
have to add that!

Riki




More information about the lyx-devel mailing list