What is the recommended way to put something in the preamble that gets
written to a .tex file?

-----

Has anybody strong feelings on how a 'macro pool' should be implemented?
I.e. currently we write macro definitions to the .lyx/.tex file according
to their position in the document. This does not work with macro provided
in macro_table.C since they do not have a fixed position in the document,
and as we had discussed ealier, macro definitions are not exactly part of
the body of the document. 

So for writing .tex we would need some mechanism like:

1. Write everything as usual, except macro definitions, if we encounter
an macro, put its name into a list.  After the body of the document has
been written, _pre_pend the definitions of all used macros

-or-

2. Write each macro definition to the preamble first and write everything 
else as usual.

-or-

3. Something I have not thought of yet.

I'd think 2 would probably best, since it is easier and does not lose
information (unused macros).

The .lyx file could contain macro definitions in its haeder and the GUI
should provide a way to edit macro definitions outside the document
"text".

Comments?

Main problem with all of this is that it goes beyond the scope of mathed
and I do not really want to do it...


Andre'


-- 
André Pönitz ............................................. [EMAIL PROTECTED]

Reply via email to