On Thu, 22 Oct 1998, Fred Hucht wrote:
> o math macro table: What do you mean by "share"? In LyX, presently you
> have the problem that once you have defined a macro somewhere in the
> text, you can use it anywhere, even before the point where it is
> defined. When you LaTeX the doc, you get an error message (Undefined
> control sequence). I think the best fix to this is to always put
> macros at the start of the LaTeX file (after the \begin{document}),
> then macros would be document properties and could be shared with
> other documents.
agreed.
> I also could imagine a "macro page", where the
> macro definitions are displayed (accessible via Options->Macros...).
> BTW, why don't you display macro just like equation, with the macro
> name as label? This would be better IMHO as the present way, where
> you normally only see "Macro: <name>" and must click on it to see
> the definition.
Do you really want to have all your macros displayed all the time?
> o Nice if the TOC would also be shared.
Of course, the TOC from the parent document would include pointers
to its childs sections.
> I think it's better to use the mentioned \use_master bla.lyx. Imagine
> you have a doc (call it GPL.lyx) that is included by more than one
> document. Which one is the master?
Yes, what about this:
- If a document has an specific parent inset/document property, it
would inherit it's parent settings.
- If a document is included by others, but has not explicit
parent, then only the document that includes it, and its
explicit childs, would share the references generated by
the "orphan" document.
> The document settings should be copied from the master when the master
> file is present. Then you also can work without the master.
exactly.
> And please think about my proposed text input field for referencing
> labels where you know the name.
under discussion.
> You're welcome! I love it, I even misuse it a bit. Example: I need a
> \sum with a prime, i.e.
> ---' in LaTeX, this is a bit tricky, the clean solution in Knuth's
> \ TeX book has 8 lines hard TeX. Hence I defined a macro in LyX
> / (simply containing \sum') and renewcommand'ed it below to the
> --- real TeX code. So I have a readable primed sum in LyX and a
> perfect one in the output. It would be nice when the macro code would
> allow such a redefinition, more than half of my macros are redefined
> in this way...
Is not this contradictory to your suggestion to have all the macros in the
preamble?
Greets,
Alejandro