On 09/07/2016 01:07 PM, Tadeus Ras wrote:
> Hello fellow Lyx users,
>
>
> In order to structure my thesis, I am using an Include for each
> chapter (starting from the included thesis template in
> Resources\examples\thesis —>
> https://wiki.lyx.org/Examples/Thesis#toc7). Further I would like to
> structure the different Includes by using Inputs for the associated
> sections. For each Input, I set the Include-file it is in as the main
> document. No problem so far.
>
> But I haven’t got to grips with my math macros file after several
> attempts (tried also with https://wiki.lyx.org/Tips/ChildMathMacros) :-(

I generally use the "Solution" after the "LyX<1.5" thing. I.e., in the
included file do:

[ERT]
\ifx\MathMacrosDefined\undefined
\def\MathMacrosDefined{Hi there}
[/ERT]

Math macros go here.

[ERT]
\fi
[/ERT]

Now the macros are is only included once.

Richard

Reply via email to