Il 02/03/2011 02:03, Julien Rioux ha scritto:
You are right! The multiplicity of styles when it comes to macro names
in latex is very annoying. In LyX it can be worked around and I think
this should be looked into very seriously. Then you can easily switch
from layout to layout in a document without problems, i.e. not have
the environments get messed up. The environment names should be
standardized in a meaningful way and let the .layout file perform the
translation \author --> \IEEEauthor etc.
This requires some more thinking from the LyX side to establish a
standard but it would be worthwhile in my opinion.
one possibility could be of course to define a lyx-specific LaTeX macro
package which is actually used when generating latex code, for example
in the "author style" case, one would generate smth. like \lyxauthor{}
or \lyxsection{} similar. Then, these macros could be implemented in a
different way depending on the style that is being used.
Such a package could seem wonderful to me (e.g., think of when you
change your mind and submit to a different conference or journal, or
simply you extend/rework a previously rejected paper -- you would only
change the macro package you use :-) ).
However, I can spot a problem in that the generated LaTeX export would
contain these lyx-specific macros which would probably make unhappy
people (and sometimes publishers require you to not use custom macros as
much as possible).
What could be perhaps more appreciated or more concretely usable, would
be to have the possibility to expand those lyx-specific macros in the
generated LaTeX.
Bye,
T.