]> git.lyx.org Git - lyx.git/blob - autotests/export/docbook/math_in_font.lyx
DocBook: Springer, complete test case without inclusion.
[lyx.git] / autotests / export / docbook / math_in_font.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 598
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass scrartcl
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the file prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % solves the following problem:
19 % If the dection number consits of too many numerals the section heading
20 % will be printed in the TOC without a space between it and the section number.
21 % As solution more space between the number and the heading is inserted:
22 \renewcommand{\l@subsection}{\@dottedtocline{2}{1.5em}{2.8em}}
23 \renewcommand{\l@subsubsection}{\@dottedtocline{3}{4.3em}{3.6em}}
24
25 % increase link area for cross-references and autoname them,
26 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
27 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
28 \@ifpackageloaded{babel}{
29  \addto\extrasenglish{%
30   \renewcommand*{\equationautorefname}[1]{}%
31   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
32   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
33   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
34  }
35 }{}
36
37 % don't load packages twice
38 % see first footnote in sec. 9.3
39 \@ifundefined{textcolor}{\usepackage{color}}{}
40
41 % the pages of the TOC are numbered roman
42 % and a PDF-bookmark for the TOC is added
43 \pagenumbering{roman}
44 \let\myTOC\tableofcontents
45 \renewcommand{\tableofcontents}{%
46  \vspace{1cm}
47  \pdfbookmark[1]{\contentsname}{}
48  \myTOC
49  \cleardoublepage
50  \pagenumbering{arabic}}
51
52 % add 0.5 mm vertical space for table rows
53 \@ifundefined{extrarowheight} {\usepackage{array}}{}
54 \setlength{\extrarowheight}{0.5mm}
55
56 % insert additional vertical space of 1.5 mm between footnotes,
57 \let\myFoot\footnote
58 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
59
60 % makes caption labels bold
61 \setkomafont{captionlabel}{\bfseries}
62
63 % enables calculation of values
64 \usepackage{calc}
65
66 % for multiple columns used in sec. 24.7
67 \usepackage{multicol}
68
69 % needed in sec. 19.4
70 \usepackage{remreset}
71
72 % for the Fourier transformation symbol
73 \usepackage{mathrsfs}
74
75 % define a color, used in sec.9.3
76 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
77
78 % declare operators (see sec. 10.4 and sec. 15.2)
79 \DeclareMathOperator*{\Lozenge}{\blacklozenge}
80 \DeclareMathOperator{\sgn}{sgn}
81
82 % example definitions for sec. 20.1 
83 \newcommand{\gr}{\Longrightarrow}
84 \newcommand{\us}[1]{\underline{#1}}
85 \newcommand{\fb}[3]{\framebox#1#2{$#3$}}
86 \newcommand{\cb}[3][white]{\fcolorbox{#2}{#1}{$#3$}}
87 \newcommand{\fracS}[3][]{\genfrac{}{}{#1}{}{#2}{#3}}
88
89 % example macro from sec. 19.4
90 %\AtBeginDocument{
91 %\def\tagform@#1{\maketag@@@{|#1|}}
92 %}
93
94 % ------------------------------------
95 % used to check for needed LaTeX packages
96 \usepackage{ifthen}
97
98 % check for package undertilde
99 % used for the command \utilde
100 \newboolean{undertilde}
101 \IfFileExists{undertilde.sty}
102  {\usepackage{undertilde}
103   \setboolean{undertilde}{true}}
104  {\setboolean{undertilde}{false}}
105
106 % check for package eurosym
107 % used for the Euro symbol
108 \newboolean{eurosym}
109 \IfFileExists{eurosym.sty}
110  {\usepackage[gennarrow]{eurosym}
111   \setboolean{eurosym}{true}}
112  {\setboolean{eurosym}{false}}
113
114 % check for package braket
115 % used for physical vectors
116 \newboolean{braket}
117 \IfFileExists{braket.sty}
118  {\usepackage{braket}
119   \setboolean{braket}{true}}
120  {\setboolean{braket}{false}}
121
122 % check for package cancel
123 \newboolean{cancel}
124 \IfFileExists{cancel.sty}
125  {\usepackage{cancel}
126   \setboolean{cancel}{true}}
127  {\setboolean{cancel}{false}}
128
129 % check for package upgreek
130 \newboolean{upgreek}
131 \IfFileExists{upgreek.sty}
132  {\usepackage{upgreek}
133   \setboolean{upgreek}{true}}
134  {\setboolean{upgreek}{false}}
135 % Added by lyx2lyx
136 \setlength{\parskip}{\medskipamount}
137 \setlength{\parindent}{0pt}
138 \end_preamble
139 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
140 \use_default_options false
141 \begin_modules
142 subequations
143 \end_modules
144 \maintain_unincluded_children no
145 \language english
146 \language_package default
147 \inputencoding utf8
148 \fontencoding auto
149 \font_roman "lmodern" "default"
150 \font_sans "lmss" "default"
151 \font_typewriter "lmtt" "default"
152 \font_math "auto" "auto"
153 \font_default_family default
154 \use_non_tex_fonts false
155 \font_sc false
156 \font_roman_osf false
157 \font_sans_osf false
158 \font_typewriter_osf false
159 \font_sf_scale 100 100
160 \font_tt_scale 100 100
161 \use_microtype false
162 \use_dash_ligatures false
163 \graphics default
164 \default_output_format pdf2
165 \output_sync 0
166 \bibtex_command default
167 \index_command makeindex
168 \paperfontsize 12
169 \spacing single
170 \use_hyperref true
171 \pdf_title "LyX's Math Manual"
172 \pdf_author "LyX Team, Uwe Stöhr"
173 \pdf_subject "LyX-documentation about math"
174 \pdf_keywords "LyX, Mathed"
175 \pdf_bookmarks true
176 \pdf_bookmarksnumbered true
177 \pdf_bookmarksopen true
178 \pdf_bookmarksopenlevel 1
179 \pdf_breaklinks false
180 \pdf_pdfborder false
181 \pdf_colorlinks true
182 \pdf_backref false
183 \pdf_pdfusetitle false
184 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
185 \papersize a4
186 \use_geometry false
187 \use_package amsmath 2
188 \use_package amssymb 2
189 \use_package cancel 1
190 \use_package esint 1
191 \use_package mathdots 1
192 \use_package mathtools 2
193 \use_package mhchem 1
194 \use_package stackrel 1
195 \use_package stmaryrd 1
196 \use_package undertilde 0
197 \cite_engine basic
198 \cite_engine_type default
199 \biblio_style plain
200 \use_bibtopic false
201 \use_indices false
202 \paperorientation portrait
203 \suppress_date false
204 \justification true
205 \use_refstyle 0
206 \use_minted 0
207 \use_lineno 0
208 \notefontcolor #0000ff
209 \index Index
210 \shortcut idx
211 \color #008000
212 \end_index
213 \secnumdepth 4
214 \tocdepth 3
215 \paragraph_separation indent
216 \paragraph_indentation default
217 \is_math_indent 0
218 \math_numbering_side default
219 \quotes_style english
220 \dynamic_quotes 0
221 \papercolumns 1
222 \papersides 2
223 \paperpagestyle plain
224 \tablestyle default
225 \bullet 1 0 6 -1
226 \bullet 2 2 35 -1
227 \bullet 3 2 7 -1
228 \tracking_changes false
229 \output_changes false
230 \change_bars false
231 \postpone_fragile_content false
232 \html_math_output 0
233 \html_css_as_file 0
234 \html_be_strict false
235 \docbook_table_output 0
236 \end_header
237
238 \begin_body
239
240 \begin_layout Title
241 LyX
242 \end_layout
243
244 \begin_layout Standard
245 Some text before.
246 \end_layout
247
248 \begin_layout Standard
249
250 \series bold
251 \begin_inset Formula 
252 \[
253 \cfrac[l]{A}{B+C}\,,\,\cfrac{A}{B+C}\,,\,\cfrac[r]{A}{B+C}
254 \]
255
256 \end_inset
257
258
259 \end_layout
260
261 \begin_layout Standard
262 Some text after.
263 \end_layout
264
265 \end_body
266 \end_document