From 2c856f0612a46f2d275eb21d79e0a3f86bad0af9 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Mon, 21 Dec 2015 11:39:48 +0100 Subject: [PATCH] Extracted and renamed files from testcases_master_child.zip Preparing to add them to the tests. --- autotests/mathmacros/Spacechild1.lyx | 82 ++++ autotests/mathmacros/Spacechild2.lyx | 130 ++++++ autotests/mathmacros/Spacechild3.lyx | 116 +++++ autotests/mathmacros/masterOfSpace.lyx | 434 ++++++++++++++++++ .../mathmacros/testcases_master_child.zip | Bin 3210 -> 0 bytes 5 files changed, 762 insertions(+) create mode 100644 autotests/mathmacros/Spacechild1.lyx create mode 100644 autotests/mathmacros/Spacechild2.lyx create mode 100644 autotests/mathmacros/Spacechild3.lyx create mode 100644 autotests/mathmacros/masterOfSpace.lyx delete mode 100644 autotests/mathmacros/testcases_master_child.zip diff --git a/autotests/mathmacros/Spacechild1.lyx b/autotests/mathmacros/Spacechild1.lyx new file mode 100644 index 0000000000..7c5df6bd57 --- /dev/null +++ b/autotests/mathmacros/Spacechild1.lyx @@ -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 index 0000000000..2a7e5715cc --- /dev/null +++ b/autotests/mathmacros/Spacechild2.lyx @@ -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 index 0000000000..421b2f93bc --- /dev/null +++ b/autotests/mathmacros/Spacechild3.lyx @@ -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 index 0000000000..59fbdd484b --- /dev/null +++ b/autotests/mathmacros/masterOfSpace.lyx @@ -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 index a1e6d57d2b04d26259992b958c5a866c84bf281f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3210 zcmd5;c{CJUA0Et%C5bFW(PEntNn;HuN{p$=n%$Tg#%>ns^`gd-oorLm%oq|XktO6c zg~+}pTS7xK3|YoYBtE_0AK&*n=llD6?>+aPbDwjcbAIQZ=RUs&0pkNo0001iopltz z_?SI>69@pPNdo|Tb`Vs6KM~_kRP+7q*1Wx+kG!_%7UPZkP@mLBee!99IYYNbP6D5= zctYYeMjD1HiM1U`uV7Ul+pfzC!_6g~PND?X$qOE{@2vHpO2aq-U3Rw{&?|Y{SR-kMP~YjpWWQ3r3Sh*s;@k5Qk7 z_wT*(5LIk!%EfNpk+79ir3g)d6a6#0Us{J~LKWPSN35zU!WosT1hNraT~}}RXB51z z0cityDP|EZSp%6FI8QWvVK5DfVIMAbhUTs{Nugmv{sRe@WXRNX=eLiY)9jSqMNjNy zJu=1!c(60E>t{9hys~s}PY;Suh`eCWml;$~cTb^46~W9T9nXJtuzwl;q6b-C|H&%U zADWp8kJClp&OZq;Yu+|nrN1JDhQBFGA|QjD@x4kMKiF$Wo97da<^kx4MsYjgXeSBZ zR7`F0ke)i?u5~l4z6EYI6z(yl+fno=HA8_Li|an@ad4Pf9>eKq8wjD}ny3?&pt~G< zdIb==|8ri7K)XADH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