lyx_mirror/autotests/mathmacros/masterOfSpace.lyx

435 lines
5.8 KiB
Plaintext
Raw Permalink Normal View History

#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 503
\begin_document
\begin_header
\origin unavailable
\textclass article
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 0
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\html_math_output 0
\html_css_as_file 0
\output_changes false
\html_be_strict false
\end_header
\begin_body
\begin_layout Title
Child and Master Testcases
\end_layout
\begin_layout Standard
This is the master.
Let's define some macros:
\begin_inset FormulaMacro
\newcommand{\foo}{A}
\end_inset
\begin_inset FormulaMacro
\newcommand{\fooo}{B}
\end_inset
\begin_inset FormulaMacro
\newcommand{\foooo}{C}
\end_inset
\begin_inset Formula
\begin{eqnarray*}
& \foo\mbox{ should be }A\\
& \fooo\mbox{ should be }B\\
& \foooo\mbox{ should be }C
\end{eqnarray*}
\end_inset
\end_layout
\begin_layout Section
Child Document
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand input
filename "Spacechild1.lyx"
\end_inset
\end_layout
\begin_layout Standard
Now back in the master:
\begin_inset Formula
\[
\foo\mbox{ should be }A1
\]
\end_inset
\end_layout
\begin_layout Standard
Let's redefine it again.
\begin_inset FormulaMacro
\renewcommand{\foo}{AA}
\end_inset
\begin_inset Formula
\[
\foo\mbox{ should be \foo}
\]
\end_inset
\end_layout
\begin_layout Section
Same Child Document embedded again
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand input
filename "Spacechild1.lyx"
\end_inset
\end_layout
\begin_layout Standard
Back in the master:
\begin_inset Formula
\[
\foo\mbox{ should be }A1
\]
\end_inset
\end_layout
\begin_layout Standard
Let's redefine it once again:
\begin_inset FormulaMacro
\renewcommand{\foo}{AAA}
\end_inset
\begin_inset Formula
\[
\foo\mbox{ should be }AAA
\]
\end_inset
\end_layout
\begin_layout Section
A Child Document with another Child Document
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand input
filename "Spacechild2.lyx"
\end_inset
\end_layout
\begin_layout Standard
Back in the master:
\begin_inset Formula
\[
\foo\mbox{ should be }A3
\]
\end_inset
\end_layout
\begin_layout Standard
And finally overwriting it a last time:
\begin_inset FormulaMacro
\renewcommand{\foo}{AAAA}
\end_inset
\begin_inset Formula
\[
\foo\mbox{ should be }AAAA
\]
\end_inset
\end_layout
\begin_layout Section
A Child Document inside of font changes
\end_layout
\begin_layout Standard
This is
\emph on
\begin_inset Quotes eld
\end_inset
input
\begin_inset Quotes erd
\end_inset
ed
\emph default
without font change:
\begin_inset CommandInset include
LatexCommand input
filename "Spacechild1.lyx"
\end_inset
\begin_inset Formula
\[
\foo\mbox{ should be }A1.
\]
\end_inset
\end_layout
\begin_layout Standard
\begin_inset FormulaMacro
\renewcommand{\foo}{AAAA}
\end_inset
\end_layout
\begin_layout Standard
This is
\emph on
included
\emph default
with a
\series bold
font change:
\begin_inset CommandInset include
LatexCommand include
filename "Spacechild1.lyx"
\end_inset
\end_layout
\begin_layout Standard
Back in master:
\begin_inset Formula
\[
\foo\mbox{ should be }A1.
\]
\end_inset
\end_layout
\begin_layout Standard
\begin_inset FormulaMacro
\renewcommand{\foo}{AAAA}
\end_inset
\end_layout
\begin_layout Standard
This is
\emph on
\begin_inset Quotes eld
\end_inset
input
\begin_inset Quotes erd
\end_inset
ed
\emph default
with a
\series bold
font change:
\begin_inset CommandInset include
LatexCommand input
filename "Spacechild1.lyx"
\end_inset
\end_layout
\begin_layout Standard
Back in master:
\begin_inset Formula
\[
\foo\mbox{ should be }A1.
\]
\end_inset
\end_layout
\begin_layout Standard
\begin_inset FormulaMacro
\renewcommand{\foo}{AAAA}
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Box Frameless
position "t"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
use_makebox 0
width "100col%"
special "none"
height "1in"
height_special "totalheight"
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
framecolor "black"
backgroundcolor "none"
status open
\begin_layout Plain Layout
\series bold
\begin_inset CommandInset include
LatexCommand include
filename "Spacechild1.lyx"
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Formula
\[
\foo\mbox{ should be }A1
\]
\end_inset
\end_layout
\begin_layout Standard
\begin_inset FormulaMacro
\renewcommand{\foo}{AAAA}
\end_inset
A macro inside of
\series bold
bold
\begin_inset FormulaMacro
\renewcommand{\foo}{BBBB}
\end_inset
text
\series default
.
\begin_inset Formula
\[
\foo\mbox{ should }BBBB
\]
\end_inset
\end_layout
\end_body
\end_document