]> git.lyx.org Git - lyx.git/blob - autotests/export/docbook/subfigures_EmbeddedObjects.lyx
DocBook: output inline equations in their own paragraph if they are the only inset...
[lyx.git] / autotests / export / docbook / subfigures_EmbeddedObjects.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 scrbook
8 \begin_preamble
9 % that links to image floats jumps
10 % to the beginning of the float and 
11 % not to its caption
12 \usepackage[figure]{hypcap}
13
14 % the pages of the TOC are numbered roman
15 % and a PDF-bookmark for the TOC is added
16 \let\myTOC\tableofcontents
17 \renewcommand\tableofcontents{%
18   \frontmatter
19   \pdfbookmark[1]{\contentsname}{}
20   \myTOC
21   \mainmatter }
22
23 % provides caption formatting
24 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
25
26 % provides commands to set caption
27 % beside tables/images
28 \newcommand{\TabBesBeg}[1][1.0]{%
29  \let\MyTable\table
30  \let\MyEndtable\endtable
31  \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
32
33 \newcommand{\TabBesEnd}{%
34  \let\table\MyTable
35  \let\endtable\MyEndtable}
36
37 \newcommand{\FigBesBeg}[1][1.0]{%
38  \let\MyFigure\figure
39  \let\MyEndfigure\endfigure
40  \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
41
42 \newcommand{\FigBesEnd}{%
43  \let\figure\MyFigure
44  \let\endfigure\MyEndfigure}
45
46 % enables calculation of values,
47 \usepackage{calc}
48
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
51
52 % avoids that floats are placed before their
53 % corresponding section starts
54 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
55
56 % speed up the longtable calculation
57 \setcounter{LTchunksize}{100}
58
59 % used for colored tables
60 \@ifundefined{textcolor}
61  {\usepackage{color}}{}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
63 \definecolor{lightgrey}{gray}{0.8}
64
65 % check for package colortbl
66 % used for colored table cells
67 \newboolean{colortbl}
68 \IfFileExists{colortbl.sty}
69  {\usepackage{colortbl}
70   \setboolean{colortbl}{true}}
71  {\setboolean{colortbl}{false}}
72
73 % used to have extra space in table cells
74 \@ifundefined{extrarowheight}
75  {\usepackage{array}}{}
76 \setlength{\extrarowheight}{2pt}
77
78 % used for customized tables
79 % ---
80 \newcolumntype{M}[1]
81  {>{\centering\hspace{0pt}}m{#1}}
82
83 \newcolumntype{S}[2]
84  {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
85
86 \newcolumntype{K}[1]
87  {>{\columncolor{#1}\hspace{0pt}}c}
88
89 \newcolumntype{V}{!{\vrule width 1.5pt}}
90
91 \newcolumntype{W}{!{\color{green}\vline}}
92 % ---
93
94 % insert additional vertical space of
95 % 1.5 mm between footnotes
96 \let\myFoot\footnote
97 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
98
99 % number algorithm floats within chapters
100 \numberwithin{algorithm}{chapter}
101
102 % ------------------------------------
103 % used to check for needed LaTeX packages
104 \usepackage{ifthen}
105
106 % check for package arydshln
107 % used for tables with dashed lines
108 \newboolean{arydshln}
109 \IfFileExists{arydshln.sty}
110  {\usepackage{arydshln}
111   \setboolean{arydshln}{true}}
112  {\setboolean{arydshln}{false}}
113
114 % check for package marginnote
115 % used for margin notes
116 \newboolean{marginnote}
117 \IfFileExists{marginnote.sty}
118  {\usepackage{marginnote}
119   \let\marginpar\marginnote
120   \setboolean{marginnote}{true}}
121  {\setboolean{marginnote}{false}}
122
123 % check for package sidecap
124 % used for captions on the side
125 \newboolean{sidecap}
126 \IfFileExists{sidecap.sty}
127  {\usepackage{sidecap}
128   \setboolean{sidecap}{true}}
129  {\setboolean{sidecap}{false}}
130
131 % check for picinpar
132 % used for surrounded fixed objects
133 \newboolean{picinpar}
134 \IfFileExists{picinpar.sty}
135  {\usepackage{picinpar}
136   \setboolean{picinpar}{true}}
137  {\setboolean{picinpar}{false}}
138
139 % check for lettrine
140 \newboolean{lettrine}
141 \IfFileExists{lettrine.sty}
142  {\usepackage{lettrine}
143   \setboolean{lettrine}{true}}
144  {\setboolean{lettrine}{false}}
145
146 % check for diagbox
147 \newboolean{diagbox}
148 \IfFileExists{diagbox.sty}
149  {\usepackage{diagbox}
150   \setboolean{diagbox}{true}}
151  {\setboolean{diagbox}{false}}
152 % Added by lyx2lyx
153 \setlength{\parskip}{\medskipamount}
154 \setlength{\parindent}{0pt}
155 \end_preamble
156 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
157 \use_default_options false
158 \begin_modules
159 initials
160 graphicboxes
161 varwidth
162 \end_modules
163 \maintain_unincluded_children no
164 \language english
165 \language_package default
166 \inputencoding utf8
167 \fontencoding auto
168 \font_roman "lmodern" "default"
169 \font_sans "lmss" "default"
170 \font_typewriter "lmtt" "default"
171 \font_math "auto" "auto"
172 \font_default_family default
173 \use_non_tex_fonts false
174 \font_sc false
175 \font_roman_osf false
176 \font_sans_osf false
177 \font_typewriter_osf false
178 \font_sf_scale 100 100
179 \font_tt_scale 100 100
180 \use_microtype false
181 \use_dash_ligatures true
182 \graphics default
183 \default_output_format pdf2
184 \output_sync 0
185 \bibtex_command default
186 \index_command makeindex
187 \paperfontsize 12
188 \spacing single
189 \use_hyperref true
190 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
191 \pdf_author "LyX Team, Uwe Stöhr"
192 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
193 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
194 \pdf_bookmarks true
195 \pdf_bookmarksnumbered true
196 \pdf_bookmarksopen true
197 \pdf_bookmarksopenlevel 1
198 \pdf_breaklinks false
199 \pdf_pdfborder false
200 \pdf_colorlinks true
201 \pdf_backref false
202 \pdf_pdfusetitle false
203 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
204 \papersize default
205 \use_geometry false
206 \use_package amsmath 1
207 \use_package amssymb 1
208 \use_package cancel 1
209 \use_package esint 1
210 \use_package mathdots 1
211 \use_package mathtools 1
212 \use_package mhchem 1
213 \use_package stackrel 1
214 \use_package stmaryrd 1
215 \use_package undertilde 1
216 \cite_engine basic
217 \cite_engine_type default
218 \biblio_style plain
219 \use_bibtopic false
220 \use_indices false
221 \paperorientation portrait
222 \suppress_date false
223 \justification true
224 \use_refstyle 0
225 \use_minted 0
226 \use_lineno 0
227 \notefontcolor #0000ff
228 \index Index
229 \shortcut idx
230 \color #008000
231 \end_index
232 \secnumdepth 3
233 \tocdepth 3
234 \paragraph_separation indent
235 \paragraph_indentation default
236 \is_math_indent 0
237 \math_numbering_side default
238 \quotes_style english
239 \dynamic_quotes 0
240 \papercolumns 1
241 \papersides 2
242 \paperpagestyle default
243 \tablestyle default
244 \tracking_changes false
245 \output_changes false
246 \change_bars false
247 \postpone_fragile_content false
248 \html_math_output 0
249 \html_css_as_file 0
250 \html_be_strict false
251 \docbook_table_output 0
252 \end_header
253
254 \begin_body
255
256 \begin_layout Title
257 \SpecialChar LyX
258 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
259 \end_layout
260
261 \begin_layout Chapter
262 Figures
263 \end_layout
264
265 \begin_layout Section
266 Figure Floats
267 \end_layout
268
269 \begin_layout Standard
270 Normally only one image is inserted to a figure float, but sometimes you
271  might want to use two images with separate subcaptions.
272  This can be done by inserting image floats into existing image floats.
273  Note that only the main caption of the float is added to the List of Figures.
274  Figure
275 \begin_inset space ~
276 \end_inset
277
278
279 \begin_inset CommandInset ref
280 LatexCommand ref
281 reference "fig:Two-distorted-images"
282
283 \end_inset
284
285  is an example of a figure float with two images set side by side.
286  You can also set the images one below the other.
287  Figure
288 \begin_inset space ~
289 \end_inset
290
291
292 \begin_inset CommandInset ref
293 LatexCommand ref
294 reference "fig:Pink-object"
295
296 \end_inset
297
298  and 
299 \begin_inset CommandInset ref
300 LatexCommand ref
301 reference "fig:A-star"
302
303 \end_inset
304
305  are the subfigures.
306 \end_layout
307
308 \begin_layout Standard
309 \begin_inset Float figure
310 placement document
311 alignment document
312 wide false
313 sideways false
314 status open
315
316 \begin_layout Plain Layout
317 \begin_inset space \hfill{}
318 \end_inset
319
320
321 \begin_inset Float figure
322 placement document
323 alignment document
324 wide false
325 sideways false
326 status open
327
328 \begin_layout Plain Layout
329 \begin_inset Caption Standard
330
331 \begin_layout Plain Layout
332 \begin_inset CommandInset label
333 LatexCommand label
334 name "fig:Pink-object"
335
336 \end_inset
337
338 Pink object.
339 \end_layout
340
341 \end_inset
342
343
344 \end_layout
345
346 \begin_layout Plain Layout
347 \begin_inset Graphics
348         filename ../../../lib/doc/clipart/3D-structure-distort.pdf
349         width 45col%
350         scaleBeforeRotation
351         groupId distorted
352
353 \end_inset
354
355
356 \end_layout
357
358 \end_inset
359
360
361 \begin_inset space \hfill{}
362 \end_inset
363
364
365 \begin_inset Float figure
366 placement document
367 alignment document
368 wide false
369 sideways false
370 status open
371
372 \begin_layout Plain Layout
373 \begin_inset Caption Standard
374
375 \begin_layout Plain Layout
376 \begin_inset CommandInset label
377 LatexCommand label
378 name "fig:A-star"
379
380 \end_inset
381
382 A star.
383 \end_layout
384
385 \end_inset
386
387
388 \end_layout
389
390 \begin_layout Plain Layout
391 \begin_inset Graphics
392         filename ../../../lib/doc/clipart/Star-structure.pdf
393         width 45col%
394         scaleBeforeRotation
395         groupId distorted
396
397 \end_inset
398
399
400 \end_layout
401
402 \end_inset
403
404
405 \begin_inset space \hfill{}
406 \end_inset
407
408
409 \end_layout
410
411 \begin_layout Plain Layout
412 \begin_inset Caption Standard
413
414 \begin_layout Plain Layout
415 \begin_inset CommandInset label
416 LatexCommand label
417 name "fig:Two-distorted-images"
418
419 \end_inset
420
421 Two distorted images.
422  Both images are in the image settings group named 
423 \begin_inset Quotes eld
424 \end_inset
425
426 distorted
427 \begin_inset Quotes erd
428 \end_inset
429
430 .
431 \end_layout
432
433 \end_inset
434
435
436 \end_layout
437
438 \end_inset
439
440
441 \end_layout
442
443 \end_body
444 \end_document