]> git.lyx.org Git - lyx.git/commitdiff
Extracted and renamed files from testcases_master_child.zip
authorKornel Benko <kornel@lyx.org>
Mon, 21 Dec 2015 10:39:48 +0000 (11:39 +0100)
committerKornel Benko <kornel@lyx.org>
Mon, 21 Dec 2015 10:39:48 +0000 (11:39 +0100)
Preparing to add them to the tests.

autotests/mathmacros/Spacechild1.lyx [new file with mode: 0644]
autotests/mathmacros/Spacechild2.lyx [new file with mode: 0644]
autotests/mathmacros/Spacechild3.lyx [new file with mode: 0644]
autotests/mathmacros/masterOfSpace.lyx [new file with mode: 0644]
autotests/mathmacros/testcases_master_child.zip [deleted file]

diff --git a/autotests/mathmacros/Spacechild1.lyx b/autotests/mathmacros/Spacechild1.lyx
new file mode 100644 (file)
index 0000000..7c5df6b
--- /dev/null
@@ -0,0 +1,82 @@
+#LyX 1.6svn created this file. For more info see http://www.lyx.org/
+\lyxformat 318
+\begin_document
+\begin_header
+\textclass article
+\language english
+\inputencoding auto
+\font_roman default
+\font_sans default
+\font_typewriter default
+\font_default_family default
+\font_sc false
+\font_osf false
+\font_sf_scale 100
+\font_tt_scale 100
+\graphics default
+\paperfontsize default
+\use_hyperref false
+\papersize default
+\use_geometry false
+\use_amsmath 1
+\use_esint 1
+\cite_engine basic
+\use_bibtopic false
+\paperorientation portrait
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\defskip medskip
+\quotes_language english
+\papercolumns 1
+\papersides 1
+\paperpagestyle default
+\tracking_changes false
+\output_changes false
+\author "" 
+\author "" 
+\extra_embedded_files ""
+\end_header
+
+\begin_body
+
+\begin_layout Standard
+This is the child document 
+\begin_inset Formula $1$
+\end_inset
+
+.
+ It overwrites the macro 
+\begin_inset Formula $\foo$
+\end_inset
+
+
+\begin_inset Foot
+status open
+
+\begin_layout PlainLayout
+(should be 
+\begin_inset Formula $A$
+\end_inset
+
+ in LyX and after first inclusion in TeX).
+\end_layout
+
+\end_inset
+
+\begin_inset FormulaMacro
+\renewcommand{\foo}{A1}
+\end_inset
+
+
+\begin_inset Formula \[
+\foo\mbox{ should be }A1\]
+
+\end_inset
+
+
+\end_layout
+
+\end_body
+\end_document
diff --git a/autotests/mathmacros/Spacechild2.lyx b/autotests/mathmacros/Spacechild2.lyx
new file mode 100644 (file)
index 0000000..2a7e571
--- /dev/null
@@ -0,0 +1,130 @@
+#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 Standard
+This is the child document 
+\begin_inset Formula $2$
+\end_inset
+
+.
+ It overwrites the macro 
+\begin_inset Formula $\foo$
+\end_inset
+
+ (should be 
+\begin_inset Formula $AAA$
+\end_inset
+
+).
+\begin_inset FormulaMacro
+\newcommand{\foo}{A2}
+\end_inset
+
+
+\begin_inset Formula 
+\[
+\foo\mbox{ should be }A2
+\]
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset CommandInset include
+LatexCommand input
+filename "Spacechild3.lyx"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Back in document 
+\begin_inset Formula $2$
+\end_inset
+
+:
+\begin_inset Formula 
+\[
+\foo\mbox{ should be }A3
+\]
+
+\end_inset
+
+
+\end_layout
+
+\end_body
+\end_document
diff --git a/autotests/mathmacros/Spacechild3.lyx b/autotests/mathmacros/Spacechild3.lyx
new file mode 100644 (file)
index 0000000..421b2f9
--- /dev/null
@@ -0,0 +1,116 @@
+#LyX 2.2 created this file. For more info see http://www.lyx.org/
+\lyxformat 503
+\begin_document
+\begin_header
+\origin unavailable
+\textclass article
+\begin_preamble
+\usepackage{pgfplots}
+\end_preamble
+\use_default_options false
+\maintain_unincluded_children false
+\language ngerman
+\language_package default
+\inputencoding auto
+\fontencoding global
+\font_roman "default" "TeX Gyre Termes"
+\font_sans "default" "TeX Gyre Pagella"
+\font_typewriter "default" "TeX Gyre Cursor"
+\font_math "auto" "auto"
+\font_default_family default
+\use_non_tex_fonts true
+\font_sc false
+\font_osf false
+\font_sf_scale 100 100
+\font_tt_scale 100 100
+\graphics default
+\default_output_format pdf5
+\output_sync 0
+\bibtex_command default
+\index_command default
+\paperfontsize default
+\spacing single
+\use_hyperref false
+\papersize a4paper
+\use_geometry false
+\use_package amsmath 0
+\use_package amssymb 0
+\use_package cancel 0
+\use_package esint 0
+\use_package mathdots 0
+\use_package mathtools 0
+\use_package mhchem 0
+\use_package stackrel 0
+\use_package stmaryrd 0
+\use_package undertilde 0
+\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 Register
+\shortcut idx
+\color #008000
+\end_index
+\paperwidth 22cm
+\paperheight 11cm
+\leftmargin 1cm
+\topmargin 0cm
+\rightmargin 1cm
+\bottommargin 0cm
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation skip
+\defskip medskip
+\quotes_language german
+\papercolumns 1
+\papersides 1
+\paperpagestyle empty
+\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 Standard
+
+\lang english
+This is the child document 
+\begin_inset Formula $2$
+\end_inset
+
+.
+ It overwrites the macro 
+\begin_inset Formula $A3$
+\end_inset
+
+ (should be 
+\begin_inset Formula $AAA$
+\end_inset
+
+).
+\begin_inset FormulaMacro
+\renewcommand{\foo}{A3}
+\end_inset
+
+
+\begin_inset Formula 
+\[
+\foo\mbox{ should be }A3
+\]
+
+\end_inset
+
+
+\end_layout
+
+\end_body
+\end_document
diff --git a/autotests/mathmacros/masterOfSpace.lyx b/autotests/mathmacros/masterOfSpace.lyx
new file mode 100644 (file)
index 0000000..59fbdd4
--- /dev/null
@@ -0,0 +1,434 @@
+#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
diff --git a/autotests/mathmacros/testcases_master_child.zip b/autotests/mathmacros/testcases_master_child.zip
deleted file mode 100644 (file)
index a1e6d57..0000000
Binary files a/autotests/mathmacros/testcases_master_child.zip and /dev/null differ