On 01/03/2012 03:45 AM, Guenter Milde wrote:
On 2012-01-01, Bogdan wrote:
On 01-Jan-12 6:07 pm, Uwe Stöhr wrote:
Am 01.01.2012 16:15, schrieb Richard Heck:
On 12/31/2011 05:51 PM, Bogdan wrote:
Is there *any* way to make LyX add latex code before the
\documentclass{} call?
I do not think so.
And I have never seen this and I doubt that this will work because
without loading the document class or any package, you cannot do much.
There are several use cases. I remember a similar request some time (maybe
years) ago. A "hook" for pre-documentclass code could also solve some of the
"how do I configure auto-loaded packages" problems.
I could imagine a layout keyword like
PrePreamble
% this should appear before the \documentclass call in the latex source
EndPrePreamble
This could then be used by layouts like "IEEEtranA4" as well as
in idividual documents via the local layout feature.
If this is definitely needed, it is easy to provide it. Adding Layout
stuff is fairly trivial. I guess the question was: Do we need it? or is
there some other way around this?
Richard