Re: Math macros inside child documents

2011-05-09 Thread Diego Queiroz
> > Yes I am able to do what you describe in 1.6. In your example child doc, > you did not set the master setting, did you? > Indeed. I was in a hurry and I forgot it. ;/ --- Diego Queiroz

Re: Math macros inside child documents

2011-05-09 Thread Richard Heck
On 05/09/2011 02:38 PM, Julien Rioux wrote: > > Yes I am able to do what you describe in 1.6. In your example child > doc, you did not set the master setting, did you? But anyway, I > corrected it and still in 2.1.0svn the compilation of the child is > broken: > > Undefined control sequence \anymac

Re: Math macros inside child documents

2011-05-09 Thread Tommaso Cucinotta
Il 09/05/2011 20:23, Diego Queiroz ha scritto: I've attached two files: the child and the master document. I can't compile the child document. Can you try? I can confirm the child doesn't compile as standalone, despite the macro is correctly expanded on the screen. T. $\anymacro $ The c

Re: Math macros inside child documents

2011-05-09 Thread Julien Rioux
On 09/05/2011 2:23 PM, Diego Queiroz wrote: Which workaround? You said math macros don't work within child docs, I say they work for me. No workaround necessary. Maybe I misunderstood you. I was citing your workaround to include bibtex in the childs. "I use a branch named "child only", whic

Re: Math macros inside child documents

2011-05-09 Thread Diego Queiroz
> > Which workaround? You said math macros don't work within child docs, I say > they work for me. No workaround necessary. > Maybe I misunderstood you. I was citing your workaround to include bibtex in the childs. >> "I use a branch named "child only", which is activated in child docs but deacti

Re: Math macros inside child documents

2011-05-09 Thread Julien Rioux
On 09/05/2011 1:44 PM, Diego Queiroz wrote: So, I do not experience your problem. However document settings and stuff that gets defined in the preamble need to be set in both master and child docs. -- Julien Actually, the answer is: yes, you do experience the very same problem. Otherwise you

Re: Math macros inside child documents

2011-05-09 Thread Julien Rioux
On 09/05/2011 1:44 PM, Diego Queiroz wrote: So, I do not experience your problem. However document settings and stuff that gets defined in the preamble need to be set in both master and child docs. -- Julien Actually, the answer is: yes, you do experience the very same problem. Otherwise you

Re: Math macros inside child documents

2011-05-09 Thread Diego Queiroz
> > So, I do not experience your problem. However document settings and stuff > that gets defined in the preamble need to be set in both master and child > docs. > -- > Julien > Actually, the answer is: yes, you do experience the very same problem. Otherwise you won't need to go after a workaround

Re: Math macros inside child documents

2011-05-09 Thread Julien Rioux
On 09/05/2011 10:22 AM, Diego Queiroz wrote: I'm not sure if this is a bug report or a feature request. Probably the second one. In LyX it's ok to define a Math Macro in a Master document and use it in a child one. It's also ok to use math macros that are defined in a child and use it in other c

Re: Math macros inside child documents

2011-05-09 Thread Diego Queiroz
> > But what if you really want to compile it as a standalone document? > People do this. > > Richard > But if it was really a standalone document, I would have to unset master document property, right? Anyway, in my case, the problem is that my child document with the macros also define Nomencla

Re: Math macros inside child documents

2011-05-09 Thread Richard Heck
On 05/09/2011 11:05 AM, Diego Queiroz wrote: > >> If you want to compile just one chapter as part of a larger document, >> then you need to use the \includeonly support, accessible from >> Document>Settings. > I was not aware of this feature. Thanks for the hint. > It's new in 2.0.0. > But it is a

Re: Math macros inside child documents

2011-05-09 Thread Diego Queiroz
> > If you ask to compile just the child, then you are asking to compile it > as a standalone document, so it is no surprise that this does not work. > Exactly. :-) > If you want to compile just one chapter as part of a larger document, > then you need to use the \includeonly support, accessibl

Re: Math macros inside child documents

2011-05-09 Thread Richard Heck
On 05/09/2011 10:22 AM, Diego Queiroz wrote: > I'm not sure if this is a bug report or a feature request. Probably the > second one. > > In LyX it's ok to define a Math Macro in a Master document and use it in a > child one. It's also ok to use math macros that are defined in a child and > use it i

Math macros inside child documents

2011-05-09 Thread Diego Queiroz
I'm not sure if this is a bug report or a feature request. Probably the second one. In LyX it's ok to define a Math Macro in a Master document and use it in a child one. It's also ok to use math macros that are defined in a child and use it in other child document. In both cases, I am able to vie