On 02/03/2011 5:21 PM, Tommaso Cucinotta wrote:
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.
Well, in some cases this is already done, but to me that is the wrong approach. I would like to see special-casing being done at the LyX level in the .layout files, not at the latex level.
Most cases where LyX defines \lyxinternal macros are workarounds for latex syntax which is unsupported by LyX. Less and less of these should be needed as support in LyX becomes available. For example the LyX layout language now has basic support for \macros[with]{lots of}{arguments}.
-- Julien