SUMMARY : postscript export fails if document class does not define labelitemiii and labelitemiv CAVEAT : this may be an already known issue (but quite hard to find some info about it on the net).

---------------
Dear all,

This is a nice feature to be able to customize label itemized item,
and so does Lyx up to the fourth level.

YET
I downloaded the elsart.cls from Elsevier in order to publish some stuff. After install, article (elsevier) is there, editing under lyx is ok, but postscript output fails.

Exporting as .tex shows that this customizing item labels is done by adding :

\AtBeginDocument{
  \renewcommand{\labelitemii}{\(\bullet\)}
  \renewcommand{\labelitemiii}{\(\bullet\)}
  \renewcommand{\labelitemiv}{\footnotesize\(\bullet\)}
}

before \begin{document}.

So far, so good.
(seems to be hard-coded though).


BUG : if the document class DOES NOT DEFINE labelitemiii and labelitemiv
(and, no, elsart does not, only defines labelitemi and labelitemii),
the "renew" fails as it should be "new" instead,
and so does PostScript Export from within Lyx for the same reason (and gives that error).

I guess there should be some testing around there to switch case if the attempting renewed command is already defined or not . As an alternative, a switch box to enable customization of label item or not in the Document Layout Tab. As an even better alternative, only includes in the customization the levels found in the class description.
Best regards,

jacques./


Reply via email to