>>>>> "John" == John Keane <[EMAIL PROTECTED]> writes:

John> It's a personal preference, as my colleagues don't use Lyx, so
John> revisions have to be made on latex files - it's nice if they're
John> as simple as possible. 

I agree with that. We would be interested too by patches that make the
latex output more human-readable (although the idea of human-readable
depends on the particular human being reading the file :)

John> (e.g. I'd like if \providecommand{\LyX} wasn't always specified
John> unless needed - would you accept a patch for this??)

I think we would, but there may be a performance problem due to the
stupid way this automatic LyX->\LyX transformation is done. The right
solution, of course, would be to remove this automatic transformation
feature, and implment proper support for \LaTeX, \LyX... in
insetspecialchar.[Ch] and have conversion code to make them appear
when needed.  But this is probably beyond the scope of what you were
thinking about.

A less ambitious version is to look at Paragraph::validate, and add
there some code similar to what is in
Paragraph::Pimpl::simpleTeXSpecialChars (look for the call to
Paragraph::Pimpl::isTextAt). Note that there is a bad performance
problem in isTextAt. I fixed it in the main branch, but I have not
tested it well enough to be confident that it works perfectly.

Hope this helps.

JMarc

Reply via email to