1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
7 \use_default_options false
8 \maintain_unincluded_children false
10 \language_package default
13 \font_roman "default" "default"
14 \font_sans "default" "default"
15 \font_typewriter "default" "default"
16 \font_math "auto" "auto"
17 \font_default_family default
18 \use_non_tex_fonts false
21 \font_sf_scale 100 100
22 \font_tt_scale 100 100
24 \default_output_format default
26 \bibtex_command default
27 \index_command default
28 \paperfontsize default
32 \use_package amsmath 1
33 \use_package amssymb 1
36 \use_package mathdots 0
37 \use_package mathtools 1
39 \use_package stackrel 1
40 \use_package stmaryrd 1
41 \use_package undertilde 1
43 \cite_engine_type default
47 \paperorientation portrait
57 \paragraph_separation indent
58 \paragraph_indentation default
59 \quotes_language english
62 \paperpagestyle default
63 \tracking_changes false
73 Child and Master Testcases
76 \begin_layout Standard
78 Let's define some macros:
79 \begin_inset FormulaMacro
84 \begin_inset FormulaMacro
89 \begin_inset FormulaMacro
90 \newcommand{\foooo}{C}
96 & \foo\mbox{ should be }A\\
97 & \fooo\mbox{ should be }B\\
98 & \foooo\mbox{ should be }C
106 \begin_layout Section
110 \begin_layout Standard
111 \begin_inset CommandInset include
113 filename "Spacechild1.lyx"
120 \begin_layout Standard
121 Now back in the master:
124 \foo\mbox{ should be }A1
132 \begin_layout Standard
133 Let's redefine it again.
135 \begin_inset FormulaMacro
136 \renewcommand{\foo}{AA}
142 \foo\mbox{ should be \foo}
150 \begin_layout Section
151 Same Child Document embedded again
154 \begin_layout Standard
155 \begin_inset CommandInset include
157 filename "Spacechild1.lyx"
164 \begin_layout Standard
168 \foo\mbox{ should be }A1
176 \begin_layout Standard
177 Let's redefine it once again:
178 \begin_inset FormulaMacro
179 \renewcommand{\foo}{AAA}
185 \foo\mbox{ should be }AAA
193 \begin_layout Section
194 A Child Document with another Child Document
197 \begin_layout Standard
198 \begin_inset CommandInset include
200 filename "Spacechild2.lyx"
207 \begin_layout Standard
211 \foo\mbox{ should be }A3
219 \begin_layout Standard
220 And finally overwriting it a last time:
221 \begin_inset FormulaMacro
222 \renewcommand{\foo}{AAAA}
228 \foo\mbox{ should be }AAAA
236 \begin_layout Section
237 A Child Document inside of font changes
240 \begin_layout Standard
244 \begin_inset Quotes eld
248 \begin_inset Quotes erd
254 \begin_inset CommandInset include
256 filename "Spacechild1.lyx"
263 \foo\mbox{ should be }A1.
271 \begin_layout Standard
272 \begin_inset FormulaMacro
273 \renewcommand{\foo}{AAAA}
279 \begin_layout Standard
287 \begin_inset CommandInset include
289 filename "Spacechild1.lyx"
296 \begin_layout Standard
300 \foo\mbox{ should be }A1.
308 \begin_layout Standard
309 \begin_inset FormulaMacro
310 \renewcommand{\foo}{AAAA}
316 \begin_layout Standard
320 \begin_inset Quotes eld
324 \begin_inset Quotes erd
332 \begin_inset CommandInset include
334 filename "Spacechild1.lyx"
341 \begin_layout Standard
345 \foo\mbox{ should be }A1.
353 \begin_layout Standard
354 \begin_inset FormulaMacro
355 \renewcommand{\foo}{AAAA}
361 \begin_layout Standard
362 \begin_inset Box Frameless
372 height_special "totalheight"
377 backgroundcolor "none"
380 \begin_layout Plain Layout
383 \begin_inset CommandInset include
385 filename "Spacechild1.lyx"
397 \begin_layout Standard
400 \foo\mbox{ should be }A1
408 \begin_layout Standard
409 \begin_inset FormulaMacro
410 \renewcommand{\foo}{AAAA}
416 \begin_inset FormulaMacro
417 \renewcommand{\foo}{BBBB}
425 \foo\mbox{ should }BBBB