On 05/08/2012 01:00 PM, Rudi Gaelzer wrote:
I would like to know if the topic discussed in this thread:
http://marc.info/?l=lyx-users&m=116195922003640&w=2
has evolved since 2006.

I have a lot of math macros defined on the preamble of a master document, which
has several childs.  When I process the document, the math macros are
correctly parsed on the output (pdf) of all child documents, but instant
preview does not display the correct layout for the macro.  Usualy, it will
only show a blank instead.

A workaround I've found is to define the macros not on the master's preamble,
but on its body, using LyX's function at Insert ->  Math ->  Macro.  That way,
the math expressions is correctly displayed on all child docs.
If you want to define the macros manually in the preamble, then put them
in a separate file, macros.tex, and include that file in the preamble of the
master *and also in the children*. I think that should do it.

But, as you note, if you use LyX's macro facility, all is handled properly.

Richard

Reply via email to