]> git.lyx.org Git - lyx.git/blob - autotests/mathmacros/Spacechild2.lyx
Farsi document with custom font encoding OT1 fails.
[lyx.git] / autotests / mathmacros / Spacechild2.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass article
7 \use_default_options false
8 \maintain_unincluded_children false
9 \language english
10 \language_package default
11 \inputencoding auto
12 \fontencoding global
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
19 \font_sc false
20 \font_osf false
21 \font_sf_scale 100 100
22 \font_tt_scale 100 100
23 \graphics default
24 \default_output_format default
25 \output_sync 0
26 \bibtex_command default
27 \index_command default
28 \paperfontsize default
29 \use_hyperref false
30 \papersize default
31 \use_geometry false
32 \use_package amsmath 1
33 \use_package amssymb 1
34 \use_package cancel 1
35 \use_package esint 1
36 \use_package mathdots 0
37 \use_package mathtools 1
38 \use_package mhchem 1
39 \use_package stackrel 1
40 \use_package stmaryrd 1
41 \use_package undertilde 1
42 \cite_engine basic
43 \cite_engine_type default
44 \biblio_style plain
45 \use_bibtopic false
46 \use_indices false
47 \paperorientation portrait
48 \suppress_date false
49 \justification true
50 \use_refstyle 0
51 \index Index
52 \shortcut idx
53 \color #008000
54 \end_index
55 \secnumdepth 3
56 \tocdepth 3
57 \paragraph_separation indent
58 \paragraph_indentation default
59 \quotes_language english
60 \papercolumns 1
61 \papersides 1
62 \paperpagestyle default
63 \tracking_changes false
64 \html_math_output 0
65 \html_css_as_file 0
66 \output_changes false
67 \html_be_strict false
68 \end_header
69
70 \begin_body
71
72 \begin_layout Standard
73 This is the child document 
74 \begin_inset Formula $2$
75 \end_inset
76
77 .
78  It overwrites the macro 
79 \begin_inset Formula $\foo$
80 \end_inset
81
82  (should be 
83 \begin_inset Formula $AAA$
84 \end_inset
85
86 ).
87  
88 \begin_inset FormulaMacro
89 \newcommand{\foo}{A2}
90 \end_inset
91
92
93 \begin_inset Formula 
94 \[
95 \foo\mbox{ should be }A2
96 \]
97
98 \end_inset
99
100
101 \end_layout
102
103 \begin_layout Standard
104 \begin_inset CommandInset include
105 LatexCommand input
106 filename "Spacechild3.lyx"
107
108 \end_inset
109
110
111 \end_layout
112
113 \begin_layout Standard
114 Back in document 
115 \begin_inset Formula $2$
116 \end_inset
117
118 :
119 \begin_inset Formula 
120 \[
121 \foo\mbox{ should be }A3
122 \]
123
124 \end_inset
125
126
127 \end_layout
128
129 \end_body
130 \end_document