1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that this document 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
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
23 \pdfbookmark[1]{\contentsname}{}
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31 \addto\extrasenglish{%
32 \renewcommand*{\equationautorefname}[1]{}%
33 \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34 \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
44 \maintain_unincluded_children false
46 \language_package default
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
60 \use_dash_ligatures true
62 \default_output_format pdf2
64 \bibtex_command default
65 \index_command default
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \use_package amsmath 1
86 \use_package amssymb 1
89 \use_package mathdots 1
90 \use_package mathtools 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
96 \cite_engine_type default
100 \paperorientation portrait
105 \notefontcolor #0000ff
117 \paragraph_separation indent
118 \paragraph_indentation default
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
126 \paperpagestyle headings
128 \tracking_changes true
129 \output_changes false
133 \author -712698321 "Jürgen Spitzmüller"
134 \author -495245474 "Jean-Marc Lasgouttes"
135 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
141 Customizing \SpecialChar LyX
142 : Features for the Advanced User
146 by the \SpecialChar LyX
151 \begin_layout Plain Layout
153 If you have comments or error corrections, please send them to the \SpecialChar LyX
156 \begin_inset CommandInset href
158 target "lyx-docs@lists.lyx.org"
166 \begin_inset Quotes eld
170 \begin_inset Quotes erd
173 in the subject header, and please cc the current maintainer of this file,
174 Richard Heck <rgheck@comcast.net>.
180 \begin_inset Newline newline
184 \begin_inset Newline newline
190 \begin_layout Standard
191 \begin_inset CommandInset toc
192 LatexCommand tableofcontents
199 \begin_layout Standard
200 \begin_inset Note Note
203 \begin_layout Plain Layout
204 Please use change tracking when modifying this document.
205 This makes it easier for our translators to recognize things that have
206 been changed, and it helps the maintainer keep up-to-date with what's been
215 \begin_layout Chapter
219 \begin_layout Standard
220 This manual covers the customization features present in \SpecialChar LyX
222 In it, we discuss issues like keyboard shortcuts, screen previewing options,
223 printer options, sending commands to \SpecialChar LyX
224 via the \SpecialChar LyX
225 Server, internationalization,
226 installing new \SpecialChar LaTeX
227 classes and \SpecialChar LyX
229 We can't possibly hope to touch on everything you can change—our developers
230 add new features faster than we can document them—but we will explain the
231 most common customizations and hopefully point you in the right direction
232 for some of the more obscure ones.
235 \begin_layout Standard
236 \begin_inset Branch OutDated
240 \begin_layout Standard
241 Information from previous versions of this document that now seems to be
242 outdated is contained in the OutDated branch of this document.
243 By default, this information will not appear in the \SpecialChar LaTeX
252 \begin_layout Chapter
257 \begin_layout Standard
258 This chapter aims to help you to find your way through the \SpecialChar LyX
261 Before continuing to read this chapter, you should find out where your
263 library and user directories are by using
264 \begin_inset Flex Noun
267 \begin_layout Plain Layout
268 Help\SpecialChar menuseparator
279 The library directory is the place where \SpecialChar LyX
280 places its system-wide configuration
281 files; the user directory is where you can place your modified versions.
282 We will call the former
283 \begin_inset Flex Code
286 \begin_layout Plain Layout
293 \begin_inset Flex Noun
296 \begin_layout Plain Layout
302 in the remainder of this document.
306 \begin_layout Section
308 \begin_inset Flex Code
311 \begin_layout Plain Layout
320 \begin_layout Standard
321 \begin_inset Flex Code
324 \begin_layout Plain Layout
330 and its sub-directories contain a number of files and that can be used
331 to customize \SpecialChar LyX
333 You can change many of these files from within \SpecialChar LyX
335 \begin_inset Flex Noun
338 \begin_layout Plain Layout
339 Tools\SpecialChar menuseparator
346 Most customization that you will want to do in \SpecialChar LyX
347 is possible through this
349 However, many other inner aspects of \SpecialChar LyX
350 can be customized by modifying the
352 \begin_inset Flex Code
355 \begin_layout Plain Layout
362 These files fall in different categories, described in the following subsection
366 \begin_layout Subsection
367 Automatically generated files
370 \begin_layout Standard
371 The files, which are to be found in
372 \begin_inset Flex Noun
375 \begin_layout Plain Layout
381 , are generated when you configure \SpecialChar LyX
383 They contain various default values that are guessed by inspection.
384 In general, it is not a good idea to modify them, since they might be overwritt
388 \begin_layout Labeling
389 \labelwidthstring 00.00.0000
390 \begin_inset Flex Code
393 \begin_layout Plain Layout
399 contains defaults for various commands.
402 \begin_layout Labeling
403 \labelwidthstring 00.00.0000
404 \begin_inset Flex Code
407 \begin_layout Plain Layout
413 contains the list of packages that have been recognized by \SpecialChar LyX
415 It is currently unused by the \SpecialChar LyX
416 program itself, but the information extracted,
417 and more, is made available with
418 \begin_inset Flex Noun
421 \begin_layout Plain Layout
422 Help\SpecialChar menuseparator
436 \begin_layout Labeling
437 \labelwidthstring 00.00.0000
438 \begin_inset Flex Code
441 \begin_layout Plain Layout
447 the list of text classes that have been found in your
448 \begin_inset Flex Code
451 \begin_layout Plain Layout
457 directories, along with the associated \SpecialChar LaTeX
458 document class and their description.
461 \begin_layout Labeling
462 \labelwidthstring 00.00.0000
463 \begin_inset Flex Code
466 \begin_layout Plain Layout
472 the list of layout modules found in your
473 \begin_inset Flex Code
476 \begin_layout Plain Layout
485 \begin_layout Labeling
486 \labelwidthstring 00.00.0000
487 \begin_inset Flex Code
490 \begin_layout Plain Layout
496 lists of various sorts of \SpecialChar LaTeX
497 -related files found on your system
500 \begin_layout Labeling
501 \labelwidthstring 00.00.0000
502 \begin_inset Flex Code
505 \begin_layout Plain Layout
506 doc/\SpecialChar LaTeX
512 is automatically generated during configuration from the file
513 \begin_inset Flex Code
516 \begin_layout Plain Layout
524 It contains information on your \SpecialChar LaTeX
528 \begin_layout Subsection
532 \begin_layout Standard
533 These directories are duplicated between
534 \begin_inset Flex Code
537 \begin_layout Plain Layout
544 \begin_inset Flex Code
547 \begin_layout Plain Layout
554 If a particular files exists in both places, the one in
555 \begin_inset Flex Code
558 \begin_layout Plain Layout
567 \begin_layout Labeling
568 \labelwidthstring 00.00.0000
569 \begin_inset Flex Code
572 \begin_layout Plain Layout
578 this directory contains files with the extension
579 \begin_inset Flex Code
582 \begin_layout Plain Layout
588 that define the keybindings used in \SpecialChar LyX
590 If there exists an internationalized version of the bind file named
591 \begin_inset Flex Code
594 \begin_layout Plain Layout
600 , that will be used first.
603 \begin_layout Labeling
604 \labelwidthstring 00.00.0000
605 \begin_inset Flex Code
608 \begin_layout Plain Layout
614 contains files with the extension
615 \begin_inset Flex Code
618 \begin_layout Plain Layout
624 which define the diverse citation possibilities (natbib, biblatex etc.).
626 \begin_inset CommandInset ref
628 reference "subsec:Cite-Engine-Files"
638 \begin_layout Labeling
639 \labelwidthstring 00.00.0000
640 \begin_inset Flex Code
643 \begin_layout Plain Layout
649 contains graphics files that can be included in documents.
653 \begin_layout Labeling
654 \labelwidthstring 00.00.0000
655 \begin_inset Flex Code
658 \begin_layout Plain Layout
664 contains \SpecialChar LyX
665 documentation files (including the one you are currently reading).
667 \begin_inset Flex Code
670 \begin_layout Plain Layout
677 deserves special attention, as noted above.
678 The internationalized help docs are in subdirectories
679 \begin_inset Flex Code
682 \begin_layout Plain Layout
689 \begin_inset Quotes eld
693 \begin_inset Quotes erd
696 is the ISO language code.
698 \begin_inset CommandInset ref
700 reference "cha:Internationalizing-LyX"
707 \begin_layout Labeling
708 \labelwidthstring 00.00.0000
709 \begin_inset Flex Code
712 \begin_layout Plain Layout
718 contains example files that explain how to use some features.
719 In the file browser, press the
720 \begin_inset Flex Noun
723 \begin_layout Plain Layout
732 \begin_layout Labeling
733 \labelwidthstring 00.00.0000
734 \begin_inset Flex Code
737 \begin_layout Plain Layout
743 contains image files that are used by the
744 \begin_inset Flex Noun
747 \begin_layout Plain Layout
754 In addition, it also contains the individual icons used in the toolbar
755 and the banners that can be shown when \SpecialChar LyX
759 \begin_layout Labeling
760 \labelwidthstring 00.00.0000
761 \begin_inset Flex Code
764 \begin_layout Plain Layout
770 contains keyboard keymapping files.
772 \begin_inset CommandInset ref
774 reference "sec:International-Keymap-Stuff"
781 \begin_layout Labeling
782 \labelwidthstring 00.00.0000
783 \begin_inset Flex Code
786 \begin_layout Plain Layout
792 contains the text class and module files described in
793 \begin_inset CommandInset ref
795 reference "cha:Installing-New-Document"
802 \begin_layout Labeling
803 \labelwidthstring 00.00.0000
804 \begin_inset Flex Code
807 \begin_layout Plain Layout
814 \begin_inset Flex Code
817 \begin_layout Plain Layout
823 Python scripts used to convert between \SpecialChar LyX
825 These can be run from the command line if, say, you want to batch-convert
829 \begin_layout Labeling
830 \labelwidthstring 00.00.0000
831 \begin_inset Flex Code
834 \begin_layout Plain Layout
840 contains some files that demonstrate the capabilities of the
841 \begin_inset Flex Noun
844 \begin_layout Plain Layout
855 Also contains some scripts used by \SpecialChar LyX
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
864 \begin_layout Plain Layout
870 contains the standard \SpecialChar LyX
871 template files described in
872 \begin_inset CommandInset ref
874 reference "subsec:Creating-Templates"
881 \begin_layout Labeling
882 \labelwidthstring 00.00.0000
883 \begin_inset Flex Code
886 \begin_layout Plain Layout
892 contains files with the extension
893 \begin_inset Flex Code
896 \begin_layout Plain Layout
902 that define the user interface to \SpecialChar LyX
904 That is, the files define which items appear in which menus and the items
905 appearing on the toolbar.
908 \begin_layout Labeling
909 \labelwidthstring 00.00.0000
910 \begin_inset Flex Code
913 \begin_layout Plain Layout
919 contains files with the extension
920 \begin_inset Flex Code
923 \begin_layout Plain Layout
929 which define the templates for the insertion of external material to a
932 \begin_inset CommandInset ref
934 reference "chap:Including-External-Material"
941 \begin_layout Subsection
942 Files you don't want to modify
945 \begin_layout Standard
946 These files are used internally by \SpecialChar LyX
947 and you generally do not need to modify
948 them unless you are a developer.
951 \begin_layout Labeling
952 \labelwidthstring 00.00.0000
953 \begin_inset Flex Code
956 \begin_layout Plain Layout
962 this file contains the list of \SpecialChar LyX
964 The contents are displayed with the menu entry
965 \begin_inset Flex Noun
968 \begin_layout Plain Layout
969 Help\SpecialChar menuseparator
982 \begin_layout Labeling
983 \labelwidthstring 00.00.0000
984 \begin_inset Flex Code
987 \begin_layout Plain Layout
993 this is a \SpecialChar LaTeX
994 script used during the configuration process.
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1003 \begin_layout Plain Layout
1009 this is a Python script that is used to re-configure \SpecialChar LyX
1011 It creates configuration files in the directory it was run from.
1014 \begin_layout Subsection
1015 Other files needing a line or two
1018 \begin_layout Labeling
1019 \labelwidthstring 00.00.0000
1020 \begin_inset Flex Code
1023 \begin_layout Plain Layout
1029 this contains tables describing how different character encodings can be
1033 \begin_layout Labeling
1034 \labelwidthstring 00.00.0000
1035 \begin_inset Flex Code
1038 \begin_layout Plain Layout
1044 this file contains a list of all the languages currently supported by \SpecialChar LyX
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1053 \begin_layout Plain Layout
1059 contains information about the supported fonts.
1062 \begin_layout Labeling
1063 \labelwidthstring 00.00.0000
1064 \begin_inset Flex Code
1067 \begin_layout Plain Layout
1073 this file contains translations for internationalized paragraph styles
1075 \begin_inset CommandInset ref
1077 reference "subsec:I18n"
1084 \begin_layout Labeling
1085 \labelwidthstring 00.00.0000
1086 \begin_inset Flex Code
1089 \begin_layout Plain Layout
1095 this file contains information about Unicode-encoded glyphs and the way
1096 they are supported by \SpecialChar LyX
1097 via \SpecialChar LaTeX
1101 \begin_layout Section
1102 Your local configuration directory
1105 \begin_layout Standard
1106 Even if you are using \SpecialChar LyX
1107 as an unprivileged user, you might want to change
1109 configuration for your own use.
1111 \begin_inset Flex Code
1114 \begin_layout Plain Layout
1120 directory contains all your personal configuration files.
1121 This is the directory described as
1122 \begin_inset Quotes eld
1126 \begin_inset Quotes erd
1130 \begin_inset Flex Noun
1133 \begin_layout Plain Layout
1134 Help\SpecialChar menuseparator
1136 \begin_inset space ~
1145 This directory is used as a mirror of
1146 \begin_inset Flex Code
1149 \begin_layout Plain Layout
1155 , which means that every file in
1156 \begin_inset Flex Code
1159 \begin_layout Plain Layout
1165 is a replacement for the corresponding file in
1166 \begin_inset Flex Code
1169 \begin_layout Plain Layout
1176 Any configuration file described in the above sections can be placed either
1177 in the system-wide directory, in which case it will affect all users, or
1178 in your local directory for your own use.
1181 \begin_layout Standard
1182 To make things clearer, let's provide a few examples:
1185 \begin_layout Itemize
1186 The preferences set in the
1187 \begin_inset Flex Noun
1190 \begin_layout Plain Layout
1191 Tools\SpecialChar menuseparator
1197 dialog are saved to a file
1198 \begin_inset Flex Code
1201 \begin_layout Plain Layout
1208 \begin_inset Flex Code
1211 \begin_layout Plain Layout
1220 \begin_layout Itemize
1221 When you reconfigure using
1222 \begin_inset Flex Noun
1225 \begin_layout Plain Layout
1226 Tools\SpecialChar menuseparator
1234 \begin_inset Flex Code
1237 \begin_layout Plain Layout
1243 script, and the resulting files are written in your local configuration
1245 This means that any additional text class file that you might have added
1247 \begin_inset Flex Code
1250 \begin_layout Plain Layout
1256 will be added to the list of classes in the
1257 \begin_inset Flex Noun
1260 \begin_layout Plain Layout
1261 Document\SpecialChar menuseparator
1270 \begin_layout Itemize
1271 If you get some updated documentation from \SpecialChar LyX
1272 ftp site and cannot install
1273 it because you do not have sysadmin rights on your system, you can just
1275 \begin_inset Flex Code
1278 \begin_layout Plain Layout
1284 and the items in the
1285 \begin_inset Flex Noun
1288 \begin_layout Plain Layout
1294 menu will open them!
1297 \begin_layout Section
1298 Running \SpecialChar LyX
1299 with multiple configurations
1302 \begin_layout Standard
1303 The configuration freedom of the local configuration directory may not suffice
1304 if you want to have more than one configuration at your disposal.
1305 For example, you may want to be use different key bindings or printer settings
1307 You can achieve this by having several such directories.
1308 You then specify which directory to use at run-time.
1311 \begin_layout Standard
1312 Invoking \SpecialChar LyX
1313 with the command line switch
1314 \begin_inset Flex Code
1317 \begin_layout Plain Layout
1327 instructs the program to read the configuration from that directory, and
1328 not from the default directory.
1329 (You can determine the default directory by running \SpecialChar LyX
1331 \begin_inset Flex Code
1334 \begin_layout Plain Layout
1340 switch.) If the specified directory does not exist, \SpecialChar LyX
1342 for you, just like it does for the default directory on the first time
1343 you run the program.
1344 You can modify the configuration options in this additional user directory
1345 exactly as you would for the default directory.
1346 These directories are completely independent (but read on).
1347 Note that setting the environment variable
1348 \begin_inset Flex Code
1351 \begin_layout Plain Layout
1357 to some value has exactly the same effect.
1360 \begin_layout Standard
1361 Having several configurations also requires more maintenance: if you want
1362 to add a new layout to
1363 \begin_inset Flex Code
1366 \begin_layout Plain Layout
1372 which you want available from all your configurations, you must add it
1373 to each directory separately.
1374 You can avoid this with the following trick: after \SpecialChar LyX
1375 creates the additional
1376 directory, most of the subdirectories (see above) are empty.
1377 If you want the new configuration to mirror an existing one, replace the
1378 empty subdirectory with a symbolic link to the matching subdirectory in
1379 the existing configuration.
1381 \begin_inset Flex Code
1384 \begin_layout Plain Layout
1390 subdirectory, however, since it contains a file written by the configuration
1391 script (also accessible through
1392 \begin_inset Flex Noun
1395 \begin_layout Plain Layout
1396 Tools\SpecialChar menuseparator
1402 ) which is configuration-specific.
1405 \begin_layout Chapter
1406 The Preferences dialog
1409 \begin_layout Standard
1410 All options of the preferences dialog are described in the Appendix
1412 The Preferences Dialog
1419 For some options you might find here more details.
1422 \begin_layout Section
1424 \begin_inset CommandInset label
1433 \begin_layout Standard
1434 The first step is to define your file formats if they are not already defined.
1436 \begin_inset Flex Noun
1439 \begin_layout Plain Layout
1440 Tools\SpecialChar menuseparator
1448 \begin_inset Flex Noun
1451 \begin_layout Plain Layout
1452 File Handling\SpecialChar menuseparator
1459 \begin_inset Flex Noun
1462 \begin_layout Plain Layout
1468 button to define your new format.
1470 \begin_inset Flex Noun
1473 \begin_layout Plain Layout
1479 field contains the name used to identify the format in the GUI.
1481 \begin_inset Flex Noun
1484 \begin_layout Plain Layout
1490 is used to identify the format internally.
1491 You will also need to enter a file extension.
1492 These are all required.
1494 \begin_inset Flex Noun
1497 \begin_layout Plain Layout
1503 field is used to provide a keyboard shortcut on the menus.
1504 (For example, pressing
1505 \begin_inset Flex Noun
1508 \begin_layout Plain Layout
1515 \begin_inset Flex Noun
1518 \begin_layout Plain Layout
1519 Document\SpecialChar menuseparator
1520 View (Other Formats)\SpecialChar menuseparator
1529 \begin_layout Standard
1531 \begin_inset Flex Noun
1534 \begin_layout Plain Layout
1541 \begin_inset Flex Noun
1544 \begin_layout Plain Layout
1551 For example, you might want to use
1552 \begin_inset Flex Noun
1555 \begin_layout Plain Layout
1561 to view PostScript files.
1562 You can enter the command needed to start the program in the corresponding
1564 In defining this command, you can use the four variables listed in the
1566 The viewer is launched when you view an image in \SpecialChar LyX
1568 \begin_inset Flex Noun
1571 \begin_layout Plain Layout
1572 Document\SpecialChar menuseparator
1579 The editor is for example launched when you right-click on an image and
1581 \begin_inset Flex Noun
1584 \begin_layout Plain Layout
1590 in the appearing context menu.
1593 \begin_layout Standard
1595 \begin_inset Flex Noun
1598 \begin_layout Plain Layout
1604 type of a format is optional, but if it is specified, it must be unique
1606 It is used to detect files of this format from the file contents.
1607 For some important file formats there is no MIME type officially registered
1609 \begin_inset CommandInset href
1612 target "http://www.iana.org/assignments/media-types/"
1618 Therefore \SpecialChar LyX
1619 uses the extended list of MIME types as specified by
1620 \begin_inset CommandInset href
1622 name "freedesktop.org"
1623 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1631 \begin_layout Standard
1633 \begin_inset Flex Noun
1636 \begin_layout Plain Layout
1642 option tells \SpecialChar LyX
1643 that a format is suitable for document export.
1644 If this is set and if a suitable conversion route exists (see
1645 \begin_inset CommandInset ref
1647 reference "sec:Converters"
1651 ), the format will appear in the
1652 \begin_inset Flex Noun
1655 \begin_layout Plain Layout
1656 File\SpecialChar menuseparator
1663 The format will also appear in the
1664 \begin_inset Flex Noun
1667 \begin_layout Plain Layout
1668 Document\SpecialChar menuseparator
1674 menu if a viewer is specified for the format.
1675 Pure image formats, such as
1676 \begin_inset Flex Code
1679 \begin_layout Plain Layout
1685 , should not use this option.
1686 Formats that can both represent vector graphics and documents like
1687 \begin_inset Flex Code
1690 \begin_layout Plain Layout
1699 \begin_layout Standard
1701 \begin_inset Flex Noun
1704 \begin_layout Plain Layout
1705 Vector graphics format
1710 tells \SpecialChar LyX
1711 that a format can contain vector graphics.
1712 This information is used to determine the target format of included graphics
1714 \begin_inset Flex Noun
1717 \begin_layout Plain Layout
1724 Included graphics may need to be converted to either
1725 \begin_inset Flex Noun
1728 \begin_layout Plain Layout
1735 \begin_inset Flex Noun
1738 \begin_layout Plain Layout
1745 \begin_inset Flex Noun
1748 \begin_layout Plain Layout
1755 \begin_inset Flex Noun
1758 \begin_layout Plain Layout
1764 cannot handle other image formats.
1765 If an included graphic is not already in
1766 \begin_inset Flex Noun
1769 \begin_layout Plain Layout
1776 \begin_inset Flex Noun
1779 \begin_layout Plain Layout
1786 \begin_inset Flex Noun
1789 \begin_layout Plain Layout
1795 format, it is converted to
1796 \begin_inset Flex Noun
1799 \begin_layout Plain Layout
1805 if the vector format option is set, and otherwise to
1806 \begin_inset Flex Noun
1809 \begin_layout Plain Layout
1818 \begin_layout Section
1822 \begin_layout Standard
1823 Since all conversions from one format to another take place in \SpecialChar LyX
1825 directory, it is sometimes necessary to modify a file before copying it
1826 to the temporary directory in order that the conversion may be performed.
1830 \begin_layout Plain Layout
1831 For example, the file may refer to other files—images, for example—using
1832 relative file names, and these may become invalid when the file is copied
1833 to the temporary directory.
1838 This is done by a Copier: It copies a file to (or from) the temporary directory
1839 and may modify it in the process.
1842 \begin_layout Standard
1843 The definitions of the copiers may use eight variables:
1846 \begin_layout Labeling
1847 \labelwidthstring 00.00.0000
1848 \begin_inset Flex Code
1851 \begin_layout Plain Layout
1857 The \SpecialChar LyX
1858 system directory (e.
1859 \begin_inset space \thinspace{}
1863 \begin_inset space \space{}
1867 \begin_inset Flex Noun
1870 \begin_layout Plain Layout
1879 \begin_layout Labeling
1880 \labelwidthstring 00.00.0000
1881 \begin_inset Flex Code
1884 \begin_layout Plain Layout
1893 \begin_layout Labeling
1894 \labelwidthstring 00.00.0000
1895 \begin_inset Flex Code
1898 \begin_layout Plain Layout
1907 \begin_layout Labeling
1908 \labelwidthstring 00.00.0000
1909 \begin_inset Flex Code
1912 \begin_layout Plain Layout
1918 The base name (without filename extension) in the \SpecialChar LyX
1922 \begin_layout Labeling
1923 \labelwidthstring 00.00.0000
1924 \begin_inset Flex Code
1927 \begin_layout Plain Layout
1933 The full directory path of the \SpecialChar LyX
1937 \begin_layout Labeling
1938 \labelwidthstring 00.00.0000
1939 \begin_inset Flex Code
1942 \begin_layout Plain Layout
1948 The full pathname to the original \SpecialChar LyX
1949 file being processed
1952 \begin_layout Labeling
1953 \labelwidthstring 00.00.0000
1954 \begin_inset Flex Code
1957 \begin_layout Plain Layout
1963 The filename (without any directory path) of the \SpecialChar LyX
1967 \begin_layout Labeling
1968 \labelwidthstring 00.00.0000
1969 \begin_inset Flex Code
1972 \begin_layout Plain Layout
1978 The `\SpecialChar LaTeX
1982 \begin_layout Standard
1983 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1991 It is relevant only when exporting files suitable for such inclusion.
1994 \begin_layout Standard
1995 Copiers can be used to do almost anything with output files.
1996 For example, suppose you want generated pdf files to be copied to a special
1998 \begin_inset Flex Code
2001 \begin_layout Plain Layout
2008 Then you could write a shell script such as this one:
2011 \begin_layout Standard
2012 \begin_inset listings
2016 \begin_layout Plain Layout
2021 \begin_layout Plain Layout
2026 \begin_layout Plain Layout
2028 TOFILE=`basename $2`
2031 \begin_layout Plain Layout
2033 cp $FROMFILE /home/you/pdf/$TOFILE
2038 Save it in your local \SpecialChar LyX
2040 \begin_inset Flex Code
2043 \begin_layout Plain Layout
2044 /home/you/.lyx/scripts/pdfcopier.sh
2049 —and make it executable, if you need to do so on your platform.
2051 \begin_inset Flex Noun
2054 \begin_layout Plain Layout
2055 Tools\SpecialChar menuseparator
2061 dialog, select under
2062 \begin_inset Flex Noun
2065 \begin_layout Plain Layout
2066 File Handling\SpecialChar menuseparator
2073 \begin_inset Flex Noun
2076 \begin_layout Plain Layout
2082 format—or one of the other pdf formats—and enter
2083 \begin_inset Flex Code
2086 \begin_layout Plain Layout
2087 pdfcopier.sh $$i $$o
2093 \begin_inset Flex Noun
2096 \begin_layout Plain Layout
2106 \begin_layout Standard
2107 Copiers are used by \SpecialChar LyX
2108 in various of its own conversions.
2109 For example, if appropriate programs are found, \SpecialChar LyX
2110 will automatically install
2112 \begin_inset Flex Noun
2115 \begin_layout Plain Layout
2122 \begin_inset Flex Noun
2125 \begin_layout Plain Layout
2127 \begin_inset space ~
2136 When these formats are exported, the copier sees that not just the main
2137 HTML file but various associated files (style files, images, etc.) are also
2139 All these files are written to a subdirectory of the directory in which
2140 the original \SpecialChar LyX
2145 \begin_layout Plain Layout
2146 This copier can be customized.
2148 \begin_inset Quotes eld
2152 \begin_inset Quotes erd
2155 argument takes a comma-separated list of extensions to be copied; if it
2156 is omitted, all files will be copied.
2158 \begin_inset Quotes eld
2162 \begin_inset Quotes erd
2165 argument determines the extension added to the generated directory.
2167 \begin_inset Quotes eld
2171 \begin_inset Flex Noun
2174 \begin_layout Plain Layout
2181 \begin_inset Quotes erd
2184 , so HTML generated from
2185 \begin_inset Flex Noun
2188 \begin_layout Plain Layout
2189 /path/to/filename.lyx
2195 \begin_inset Flex Noun
2198 \begin_layout Plain Layout
2199 /path/to/filename.html.LyXconv
2213 \begin_layout Section
2215 \begin_inset CommandInset label
2217 name "sec:Converters"
2224 \begin_layout Standard
2225 You can define your own Converters to convert files between different formats.
2227 \begin_inset Flex Noun
2230 \begin_layout Plain Layout
2231 Tools\SpecialChar menuseparator
2232 Preferences\SpecialChar menuseparator
2233 File Handling\SpecialChar menuseparator
2242 \begin_layout Standard
2243 To define a new converter, select the
2244 \begin_inset Flex Noun
2247 \begin_layout Plain Layout
2249 \begin_inset space ~
2258 \begin_inset Flex Noun
2261 \begin_layout Plain Layout
2263 \begin_inset space ~
2271 from the drop-down lists, enter the command needed for the conversion,
2273 \begin_inset Flex Noun
2276 \begin_layout Plain Layout
2283 Several variables can be used in the definition of converters:
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Flex Code
2291 \begin_layout Plain Layout
2297 The \SpecialChar LyX
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Flex Code
2306 \begin_layout Plain Layout
2315 \begin_layout Labeling
2316 \labelwidthstring 00.00.0000
2317 \begin_inset Flex Code
2320 \begin_layout Plain Layout
2329 \begin_layout Labeling
2330 \labelwidthstring 00.00.0000
2331 \begin_inset Flex Code
2334 \begin_layout Plain Layout
2340 The base filename of the input file (i.
2341 \begin_inset space \thinspace{}
2344 g., without the extension)
2347 \begin_layout Labeling
2348 \labelwidthstring 00.00.0000
2349 \begin_inset Flex Code
2352 \begin_layout Plain Layout
2358 The path to the input file
2361 \begin_layout Labeling
2362 \labelwidthstring 00.00.0000
2363 \begin_inset Flex Code
2366 \begin_layout Plain Layout
2372 The path to the original input file (this is different from $$p when a
2373 chain of converters is called)
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Flex Code
2381 \begin_layout Plain Layout
2387 The iconv name for the encoding of the document.
2390 \begin_layout Standard
2392 \begin_inset Flex Noun
2395 \begin_layout Plain Layout
2397 \begin_inset space ~
2405 field you can enter the following flags, separated by commas:
2408 \begin_layout Labeling
2409 \labelwidthstring 00.00.0000
2410 \begin_inset Flex Code
2413 \begin_layout Plain Layout
2415 \change_inserted -712698321 1524656940
2423 This converter runs some form of \SpecialChar LaTeX
2425 This will make \SpecialChar LyX
2426 's \SpecialChar LaTeX
2427 error logs available.
2429 \change_inserted -712698321 1524657018
2431 \begin_inset Flex Code
2434 \begin_layout Plain Layout
2436 \change_inserted -712698321 1524657012
2444 value specifies the form of \SpecialChar LaTeX
2446 \begin_inset Flex Code
2449 \begin_layout Plain Layout
2451 \change_inserted -712698321 1524657005
2452 latex, pdflatex, platex, xetex, luatex
2460 If no value is specified,
2461 \begin_inset Flex Code
2464 \begin_layout Plain Layout
2466 \change_inserted -712698321 1524657018
2479 \begin_layout Labeling
2480 \labelwidthstring 00.00.0000
2481 \begin_inset Flex Code
2484 \begin_layout Plain Layout
2486 \change_inserted -712698321 1524656935
2494 Needs the \SpecialChar LaTeX
2496 \begin_inset Flex Noun
2499 \begin_layout Plain Layout
2505 file for the conversion.
2507 \change_inserted -712698321 1524657047
2509 \begin_inset Flex Code
2512 \begin_layout Plain Layout
2514 \change_inserted -712698321 1524657030
2520 value specifies the form of \SpecialChar LaTeX
2521 that is run in order to generate the
2522 \begin_inset Flex Noun
2525 \begin_layout Plain Layout
2527 \change_inserted -712698321 1524657047
2534 \begin_inset Flex Code
2537 \begin_layout Plain Layout
2539 \change_inserted -712698321 1524657030
2540 latex, pdflatex, platex, xetex, luatex
2546 If no value is specified,
2547 \begin_inset Flex Code
2550 \begin_layout Plain Layout
2552 \change_inserted -712698321 1524657030
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2565 \begin_inset Flex Code
2568 \begin_layout Plain Layout
2575 \begin_inset Quotes eld
2579 \begin_inset Quotes erd
2582 file from the backend, which in practice means a \SpecialChar LaTeX
2583 file like the one we
2584 would export, without
2585 \begin_inset Flex Code
2588 \begin_layout Plain Layout
2597 \begin_layout Labeling
2598 \labelwidthstring 00.00.0000
2599 \begin_inset Flex Code
2602 \begin_layout Plain Layout
2611 \begin_layout Standard
2612 The following three flags are not really flags at all because they take
2614 \begin_inset Flex Noun
2617 \begin_layout Plain Layout
2619 \begin_inset space ~
2623 \begin_inset space ~
2634 \begin_layout Labeling
2635 \labelwidthstring 00.00.0000
2637 \change_inserted -712698321 1523206314
2638 \begin_inset Flex Code
2641 \begin_layout Plain Layout
2643 \change_inserted -712698321 1523206193
2649 The name of the driver that needs to be loaded with the
2653 package for this converter.
2654 The loading of the correct driver is necessary to get some PDF-specific
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2665 \begin_inset Flex Code
2668 \begin_layout Plain Layout
2674 If set, the converter's standard error will be redirected to a file
2675 \begin_inset Flex Code
2678 \begin_layout Plain Layout
2684 , and the script given as argument will be run as:
2685 \begin_inset Flex Code
2688 \begin_layout Plain Layout
2689 script < infile.out > infile.log
2695 The argument may contain
2696 \begin_inset Flex Code
2699 \begin_layout Plain Layout
2708 \begin_layout Labeling
2709 \labelwidthstring 00.00.0000
2710 \begin_inset Flex Code
2713 \begin_layout Plain Layout
2719 The name of the directory in which the converter will dump the generated
2722 will not create this directory, and it does not copy anything into it,
2723 though it will copy this directory to the destination.
2724 The argument may contain
2725 \begin_inset Flex Code
2728 \begin_layout Plain Layout
2734 , which will be replaced by the base name of the input and output files,
2735 respectively, when the directory is copied.
2736 \begin_inset Newline newline
2739 Note that resultdir and usetempdir make no sense together.
2740 The latter will be ignored if the former is given.
2743 \begin_layout Labeling
2744 \labelwidthstring 00.00.0000
2745 \begin_inset Flex Code
2748 \begin_layout Plain Layout
2754 Determines the output file name and may, contain
2755 \begin_inset Flex Code
2758 \begin_layout Plain Layout
2765 Sensible only with resultdir and optional even then; if not given, it defaults
2769 \begin_layout Standard
2771 \change_inserted -712698321 1523206384
2772 A suitable hyperref-driver is set for some converters that are installed
2773 with \SpecialChar LyX
2776 \change_deleted -712698321 1523206388
2778 \change_inserted -712698321 1523206389
2782 \change_inserted -712698321 1523206400
2786 \change_inserted -712698321 1523206407
2790 \change_inserted -712698321 1523206437
2794 \change_deleted -712698321 1523206442
2795 that are installed with \SpecialChar LyX
2802 \begin_layout Standard
2803 You do not have to define converters for all formats between which you want
2805 For example, you will note that there is no `\SpecialChar LyX
2806 to PostScript' converter,
2807 but \SpecialChar LyX
2808 will export PostScript.
2809 It does so by first creating a \SpecialChar LaTeX
2810 file (no converter needs to be defined
2811 for this) which is then converted to DVI using the `\SpecialChar LaTeX
2813 and finally converting the resulting DVI file to PostScript.
2815 finds such `chains' of converters automatically, and it will always choose
2816 the shortest possible chain.
2817 You can, though, still define multiple conversion methods between file
2819 For example, the standard \SpecialChar LyX
2820 configuration provides five ways to convert
2825 \begin_layout Enumerate
2827 \begin_inset Flex Noun
2830 \begin_layout Plain Layout
2839 \begin_layout Enumerate
2840 via (DVI and) PostScript, using
2841 \begin_inset Flex Noun
2844 \begin_layout Plain Layout
2853 \begin_layout Enumerate
2855 \begin_inset Flex Noun
2858 \begin_layout Plain Layout
2867 \begin_layout Enumerate
2869 \begin_inset Flex Noun
2872 \begin_layout Plain Layout
2882 \begin_layout Enumerate
2884 \begin_inset Flex Noun
2887 \begin_layout Plain Layout
2897 \begin_layout Standard
2898 To define such alternate chains, you must define multiple target `file formats',
2900 \begin_inset CommandInset ref
2902 reference "sec:Formats"
2907 For example, in the standard configuration, the formats named
2908 \begin_inset Flex Noun
2911 \begin_layout Plain Layout
2918 \begin_inset Flex Noun
2921 \begin_layout Plain Layout
2928 \begin_inset Flex Noun
2931 \begin_layout Plain Layout
2938 \begin_inset Flex Noun
2941 \begin_layout Plain Layout
2948 \begin_inset Flex Noun
2951 \begin_layout Plain Layout
2958 \begin_inset Flex Noun
2961 \begin_layout Plain Layout
2968 \begin_inset Flex Noun
2971 \begin_layout Plain Layout
2978 \begin_inset Flex Noun
2981 \begin_layout Plain Layout
2989 \begin_inset Flex Noun
2992 \begin_layout Plain Layout
2999 \begin_inset Flex Noun
3002 \begin_layout Plain Layout
3009 ) are defined, all of which share the extension
3010 \begin_inset Flex Noun
3013 \begin_layout Plain Layout
3019 , and which correspond to the conversion methods just mentioned.
3022 \begin_layout Chapter
3023 Internationalizing \SpecialChar LyX
3025 \begin_inset CommandInset label
3027 name "cha:Internationalizing-LyX"
3034 \begin_layout Standard
3036 supports using a translated interface.
3037 Last time we checked, \SpecialChar LyX
3038 provided text in thirty languages.
3039 The language of choice is called your
3044 (For further reading on locale settings, see also the documentation for
3045 locale that comes with your operating system.
3046 For Linux, the manual page for
3047 \begin_inset Flex Code
3050 \begin_layout Plain Layout
3056 could be a good place to start).
3059 \begin_layout Standard
3060 Notice that these translations will work, but do contain a few flaws.
3061 In particular, all dialogs have been designed with the English text in
3062 mind, which means that some of the translated text will be too large to
3063 fit within the space allocated.
3064 This is only a display problem and will not cause any harm.
3065 Also, you will find that some of the translations do not define shortcut
3066 keys for everything.
3067 Sometimes, there are simply not enough free letters to do it.
3068 Other times, the translator just hasn't got around to doing it yet.
3069 Our localization team, which you may wish to join,
3073 \begin_layout Plain Layout
3074 If you are a fluent speaker of a language other than English, joining these
3075 teams is a great way to give back to the \SpecialChar LyX
3081 will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3085 \begin_layout Section
3086 Translating \SpecialChar LyX
3090 \begin_layout Subsection
3091 Translating the graphical user interface (text messages).
3094 \begin_layout Standard
3097 \begin_inset Flex Code
3100 \begin_layout Plain Layout
3106 library to handle the internationalization of the interface.
3107 To have \SpecialChar LyX
3108 speak your favorite language in all menus and dialogs, you need
3110 \begin_inset Flex Code
3113 \begin_layout Plain Layout
3119 -file for that language.
3120 When this is available, you'll have to generate a
3121 \begin_inset Flex Code
3124 \begin_layout Plain Layout
3130 -file from it and install the
3131 \begin_inset Flex Code
3134 \begin_layout Plain Layout
3141 The process of doing all of this is explained in the documentation for
3143 \begin_inset Flex Code
3146 \begin_layout Plain Layout
3153 It is possible to do this just for yourself, but if you're going to do
3154 it, you might as well share the results of your labors with the rest of
3155 the \SpecialChar LyX
3157 Send a message to the \SpecialChar LyX
3158 developers' list for more information about how
3162 \begin_layout Standard
3163 In short, this is what you should do (xx denotes the language code):
3166 \begin_layout Itemize
3167 Check out the \SpecialChar LyX
3170 \begin_inset CommandInset href
3172 name "information on the web"
3173 target "https://www.lyx.org/HowToUseGIT"
3181 \begin_layout Itemize
3183 \begin_inset Flex Code
3186 \begin_layout Plain Layout
3192 to the folder of the
3193 \begin_inset Flex Code
3196 \begin_layout Plain Layout
3204 \begin_inset Flex Code
3207 \begin_layout Plain Layout
3215 \begin_inset Flex Code
3218 \begin_layout Plain Layout
3224 doesn't exist anywhere, it can be remade with the console command
3225 \begin_inset Flex Code
3228 \begin_layout Plain Layout
3234 in that directory, or you can use an existing po-file for some other language
3238 \begin_layout Itemize
3240 \begin_inset Flex Code
3243 \begin_layout Plain Layout
3253 \begin_layout Plain Layout
3254 This is just a text file, so it can be edited in any text editor.
3255 But there are also specialized programs that support such editing, such
3260 (for all platforms) or
3269 contains a `mode' for editing
3270 \begin_inset Flex Code
3273 \begin_layout Plain Layout
3280 \begin_inset Flex URL
3283 \begin_layout Plain Layout
3285 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3295 For some menu- and widget-labels, there are also shortcut keys that should
3297 Those keys are marked after a `|', and should be translated according to
3298 the words and phrases of the language.
3299 You should also fill also out the information at the beginning of the new
3301 \begin_inset Flex Code
3304 \begin_layout Plain Layout
3310 -file with your email-address, etc., so people know where to reach you with
3311 suggestions and entertaining flames.
3314 \begin_layout Standard
3315 If you are just doing this on your own, then:
3318 \begin_layout Itemize
3320 \begin_inset Flex Code
3323 \begin_layout Plain Layout
3330 This can be done with
3331 \begin_inset Flex Code
3334 \begin_layout Plain Layout
3335 msgfmt -o xx.mo < xx.po
3343 \begin_layout Itemize
3345 \begin_inset Flex Code
3348 \begin_layout Plain Layout
3354 -file to your locale-tree, at the correct directory for application messages
3359 xx, and under the name
3360 \begin_inset Flex Code
3363 \begin_layout Plain Layout
3370 \begin_inset space \thinspace{}
3374 \begin_inset space \space{}
3378 \begin_inset Flex Code
3381 \begin_layout Plain Layout
3382 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3392 \begin_layout Standard
3393 As said, however, it would be best if the new
3394 \begin_inset Flex Code
3397 \begin_layout Plain Layout
3403 file could be added to the \SpecialChar LyX
3404 distribution, so others can use it.
3405 Adding it involves making additional changes to \SpecialChar LyX
3407 So send an email to the developers' mailing list if you're interested in
3411 \begin_layout Subsubsection
3415 \begin_layout Standard
3416 Sometimes it turns out that one English message needs to be translated into
3417 different messages in the target language.
3418 One example is the message
3419 \begin_inset Flex Code
3422 \begin_layout Plain Layout
3428 which has the German translation
3436 , depending upon exactly what the English
3437 \begin_inset Quotes eld
3441 \begin_inset Quotes erd
3446 \begin_inset Flex Code
3449 \begin_layout Plain Layout
3455 does not handle such ambiguous translations.
3456 Therefore you have to add some context information to the message: Instead
3458 \begin_inset Flex Code
3461 \begin_layout Plain Layout
3468 \begin_inset Flex Code
3471 \begin_layout Plain Layout
3472 To[[as in 'From format x to format y']]
3478 \begin_inset Flex Code
3481 \begin_layout Plain Layout
3482 To[[as in 'From page x to page y']].
3487 Now the two occurrences of
3488 \begin_inset Flex Code
3491 \begin_layout Plain Layout
3498 \begin_inset Flex Code
3501 \begin_layout Plain Layout
3507 and can be translated correctly to
3518 \begin_layout Standard
3519 Of course the context information needs to be stripped off the original
3520 message when no translation is used.
3521 Therefore you have to put it in double square brackets at the end of the
3522 message (see the example above).
3523 The translation mechanism of \SpecialChar LyX
3524 ensures that everything in double square
3525 brackets at the end of messages is removed before displaying the message.
3528 \begin_layout Subsection
3529 Translating the documentation.
3532 \begin_layout Standard
3533 The online documentation (in the
3534 \begin_inset Flex Noun
3537 \begin_layout Plain Layout
3543 -menu) can (and should!) be translated.
3544 If there are translated versions of the documentation available
3548 \begin_layout Plain Layout
3549 As of March 2008, at least some of the documents have been translated into
3550 fourteen languages, with the Tutorial available in a few more.
3555 and the locale is set accordingly, these will be used automagically by
3559 looks for translated versions as
3560 \begin_inset Flex Code
3563 \begin_layout Plain Layout
3564 LyXDir/doc/xx/DocName.lyx
3570 \begin_inset Flex Code
3573 \begin_layout Plain Layout
3579 is the code for the language currently in use.
3580 If there are no translated documents, the default English versions will
3582 Note that the translated versions must have the same filenames (
3583 \begin_inset Flex Code
3586 \begin_layout Plain Layout
3592 above) as the original.
3593 If you feel up to translating the documentation (an excellent way to proof-read
3594 the original documentation by the way!), there are a few things you should
3598 \begin_layout Itemize
3599 Check out the documentation translation web page at
3600 \begin_inset CommandInset href
3602 name "https://www.lyx.org/Translation"
3603 target "https://www.lyx.org/Translation"
3609 That way, you can find out which (if any) documents have already been translate
3610 d into your language.
3611 You can also find out who (if anyone) is organizing the effort to translate
3612 the documentation into your language.
3613 If no one is organizing the effort, please let us know that you're interested.
3616 \begin_layout Standard
3617 Once you get to actually translating, here's a few hints for you that may
3621 \begin_layout Itemize
3622 Join the documentation team! There is information on how to do that in
3623 \begin_inset Flex Code
3626 \begin_layout Plain Layout
3633 \begin_inset Flex Noun
3636 \begin_layout Plain Layout
3637 Help\SpecialChar menuseparator
3643 ), which by the way is the first document you should translate.
3646 \begin_layout Itemize
3647 Learn the typographic conventions for the language you are translating to.
3648 Typography is an ancient art and over the centuries, a great variety of
3649 conventions have developed throughout different parts of the world.
3650 Also study the professional terminology amongst typographers in your country.
3651 Inventing your own terminology will only confuse the users.
3654 (Warning! Typography is addictive!)
3657 \begin_layout Itemize
3658 Make a copy of the document.
3659 This will be your working copy.
3660 You can use this as your personal translated help-file by placing it in
3662 \begin_inset Flex Code
3665 \begin_layout Plain Layout
3672 \begin_inset Note Greyedout
3675 \begin_layout Plain Layout
3680 For a complex document with external material (images, etc.), if you make
3682 \begin_inset space \thinspace{}
3686 \begin_inset space \space{}
3689 in a temp dir, beware that the links to external material may be broken
3690 when the document is moved to a different place.
3691 The best way is to retrieve the \SpecialChar LyX
3693 \begin_inset Flex URL
3696 \begin_layout Plain Layout
3698 https://www.lyx.org/HowToUseGIT
3703 ) and to edit the doc file in place.
3711 \begin_layout Itemize
3712 Sometimes the original document (from the \SpecialChar LyX
3713 team) will be updated.
3714 Use the source viewer at
3715 \begin_inset CommandInset href
3717 name "https://www.lyx.org/trac/timeline"
3718 target "https://www.lyx.org/trac/timeline"
3723 to see what has been changed.
3724 That way you can easily see which parts of the translated document need
3728 \begin_layout Standard
3729 If you ever find an error in the original document, fix it and notify the
3730 rest of the documentation team of the changes! (You didn't forget to join
3731 the documentation team, did you?)
3734 \begin_layout Standard
3735 \begin_inset Branch OutDated
3739 \begin_layout Section
3740 International Keyboard Support
3743 \begin_layout Standard
3746 [Editor's Note: The following section is by
3754 It needs to be fixed to conform to the new Documentation Style sheet and
3755 to make use of the new v1.0 features.
3756 The whole thing also needs to be merged with the section following it.-jw
3757 It may also be badly out of date.-rh (2008)]
3760 \begin_layout Subsection
3761 Defining Own Keymaps: Keymap File Format
3764 \begin_layout Standard
3765 Let's look at a keyboard definition file a little closer.
3766 It is a plain text file defining
3769 \begin_layout Itemize
3770 key-to-key or key-to-string translations
3773 \begin_layout Itemize
3777 \begin_layout Itemize
3778 dead keys exceptions
3781 \begin_layout Standard
3782 To define key-to-key or key-to-string translation, use this command:
3785 \begin_layout Quotation
3786 \begin_inset Flex Code
3789 \begin_layout Plain Layout
3798 \begin_inset Flex Code
3801 \begin_layout Plain Layout
3810 \begin_layout Standard
3812 \begin_inset Flex Code
3815 \begin_layout Plain Layout
3821 is the key to be translated and
3822 \begin_inset Flex Code
3825 \begin_layout Plain Layout
3831 is the string to be inserted into the document.
3832 To define dead keys, use:
3835 \begin_layout Quotation
3836 \begin_inset Flex Code
3839 \begin_layout Plain Layout
3848 \begin_inset Flex Code
3851 \begin_layout Plain Layout
3860 \begin_layout Standard
3862 \begin_inset Flex Code
3865 \begin_layout Plain Layout
3871 is a keyboard key and
3872 \begin_inset Flex Code
3875 \begin_layout Plain Layout
3882 The following dead keys are supported (shortcut name is in parentheses):
3885 \begin_layout Quotation
3889 \begin_inset space \hfill{}
3895 \begin_layout Quotation
3897 \begin_inset space \hfill{}
3903 \begin_layout Quotation
3905 \begin_inset space \hfill{}
3911 \begin_layout Quotation
3913 \begin_inset space \hfill{}
3919 \begin_layout Quotation
3921 \begin_inset space \hfill{}
3927 \begin_layout Quotation
3929 \begin_inset space \hfill{}
3936 \begin_layout Plain Layout
3948 \begin_layout Quotation
3950 \begin_inset space \hfill{}
3956 \begin_layout Quotation
3958 \begin_inset space \hfill{}
3965 \begin_layout Plain Layout
3977 \begin_layout Quotation
3979 \begin_inset space \hfill{}
3985 \begin_layout Quotation
3987 \begin_inset space \hfill{}
3993 \begin_layout Quotation
3995 \begin_inset space \hfill{}
4002 \begin_layout Plain Layout
4014 \begin_layout Quotation
4016 \begin_inset space \hfill{}
4023 \begin_layout Plain Layout
4035 \begin_layout Quotation
4037 \begin_inset space \hfill{}
4043 \begin_layout Quotation
4044 hungarian umlaut (hug)
4045 \begin_inset space \hfill{}
4051 \begin_layout Quotation
4053 \begin_inset space \hfill{}
4059 \begin_layout Quotation
4061 \begin_inset space \hfill{}
4068 \begin_layout Plain Layout
4080 \begin_layout Standard
4081 Since in many international keyboards there are exceptions to what some
4082 dead keys should do, you can define them using
4085 \begin_layout Quotation
4086 \begin_inset Flex Code
4089 \begin_layout Plain Layout
4097 deadkey key outstring
4100 \begin_layout Standard
4101 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4105 \begin_layout Quotation
4106 \begin_inset Flex Code
4109 \begin_layout Plain Layout
4122 \begin_layout Standard
4123 to make it work correctly.
4124 Also, you have to define as exceptions dead keys over i and j, to remove
4125 the dot from them before inserting an accent mark.
4126 I will change this when the time comes, but so far I haven't had time.
4129 \begin_layout Standard
4130 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4133 \begin_inset Flex Code
4136 \begin_layout Plain Layout
4142 have different meaning.
4144 \begin_inset Flex Code
4147 \begin_layout Plain Layout
4153 marks comments, quotes start and end \SpecialChar LaTeX
4155 To enter quote, you'll need to use
4156 \begin_inset Flex Code
4159 \begin_layout Plain Layout
4168 \begin_inset Flex Code
4171 \begin_layout Plain Layout
4178 \begin_inset Flex Code
4181 \begin_layout Plain Layout
4192 \begin_layout Standard
4193 If you make a keyboard description file that works for your language, please
4194 mail it to me, so I can include it in the next keymap distribution.
4197 \begin_layout Standard
4198 More keywords will be supported in keymap configuration file in future,
4202 \begin_layout Itemize
4203 \begin_inset Flex Code
4206 \begin_layout Plain Layout
4217 \begin_inset space \hfill{}
4221 \begin_inset Flex Code
4224 \begin_layout Plain Layout
4233 \begin_layout Itemize
4234 \begin_inset Flex Code
4237 \begin_layout Plain Layout
4248 \begin_inset space \hfill{}
4252 \begin_inset Flex Code
4255 \begin_layout Plain Layout
4261 an external keymap translation program
4264 \begin_layout Standard
4265 Also, it should look into
4266 \begin_inset Flex Code
4269 \begin_layout Plain Layout
4275 file for defaults, too (for example, a
4276 \begin_inset Flex Code
4279 \begin_layout Plain Layout
4287 option to include default keyboard).
4295 \begin_layout Section
4296 International Keymap Stuff
4297 \begin_inset CommandInset label
4299 name "sec:International-Keymap-Stuff"
4306 \begin_layout Standard
4307 \begin_inset Note Note
4310 \begin_layout Plain Layout
4311 In doing the revisions on this document in March 2008, I did not look over
4312 this stuff, as I do not understand it.
4313 It would be good if someone else could do so.
4322 \begin_layout Standard
4323 The next two sections describe the
4324 \begin_inset Flex Code
4327 \begin_layout Plain Layout
4336 \begin_inset Flex Code
4339 \begin_layout Plain Layout
4347 file syntax in detail.
4348 These sections should help you design your own key map if the ones provided
4349 do not meet your needs.
4352 \begin_layout Subsection
4356 \begin_layout Standard
4360 \begin_inset Flex Code
4363 \begin_layout Plain Layout
4369 file maps keystrokes to characters or strings.
4370 As the name suggests, it sets a keyboard mapping.
4372 \begin_inset Flex Code
4375 \begin_layout Plain Layout
4386 \begin_inset Flex Code
4389 \begin_layout Plain Layout
4404 \begin_inset Flex Code
4407 \begin_layout Plain Layout
4420 \begin_inset Flex Code
4423 \begin_layout Plain Layout
4432 \begin_inset Flex Code
4435 \begin_layout Plain Layout
4443 are described in this section.
4446 \begin_layout Labeling
4447 \labelwidthstring 00.00.0000
4448 \begin_inset Flex Code
4451 \begin_layout Plain Layout
4459 Map a character to a string
4462 \begin_layout LyX-Code
4477 \begin_layout Standard
4510 the double-quote (")
4527 must be escaped with a preceding backslash (
4538 \begin_layout Standard
4540 \begin_inset Flex Noun
4543 \begin_layout Plain Layout
4551 statement to cause the symbol
4552 \begin_inset Flex Noun
4555 \begin_layout Plain Layout
4563 to be output for the keystroke
4564 \begin_inset Flex Noun
4567 \begin_layout Plain Layout
4578 \begin_layout LyX-Code
4584 \begin_layout Labeling
4585 \labelwidthstring 00.00.0000
4586 \begin_inset Flex Code
4589 \begin_layout Plain Layout
4597 Specify an accent character
4600 \begin_layout LyX-Code
4609 \begin_layout Standard
4610 This will make the cha
4648 This is the dead key
4652 \begin_layout Plain Layout
4659 refers to a key that does not produce a character by itself, but when followed
4660 with another key, produces the desired accent character.
4661 For example, a German characte
4663 r with an umlaut like
4673 can be produced in this manner.
4682 \begin_layout Standard
4695 and then another key not in
4712 followed by the other, not allowed key, as output.
4716 \begin_inset Flex Noun
4719 \begin_layout Plain Layout
4727 cancels a dead key, so if
4738 \begin_inset Flex Noun
4741 \begin_layout Plain Layout
4750 , the cursor will not go one position backwards but will instead cancel
4766 might have had on the next keystroke.
4770 \begin_layout Standard
4771 The following example specifies that the character ' is to be an acute accent,
4772 allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4775 \begin_layout LyX-Code
4778 kmod ' acute aeiouAEIOU
4781 \begin_layout Labeling
4782 \labelwidthstring 00.00.0000
4783 \begin_inset Flex Code
4786 \begin_layout Plain Layout
4792 Specify an exception to the accent character
4795 \begin_layout LyX-Code
4804 \begin_layout Standard
4805 This defines an exce
4846 have been assigned a keystroke with a previous
4849 \begin_inset Flex Code
4852 \begin_layout Plain Layout
4876 must not belong in the
4923 If such a declaration does not exist in
4931 \begin_inset Flex Code
4934 \begin_layout Plain Layout
4968 \begin_inset Flex Code
4971 \begin_layout Plain Layout
4985 \begin_layout Standard
4986 The following command produces causes äi to be produced when you enter acute-i
4990 \begin_layout LyX-Code
5004 \begin_layout Labeling
5005 \labelwidthstring 00.00.0000
5006 \begin_inset Flex Code
5009 \begin_layout Plain Layout
5015 Combine two accent characters
5018 \begin_layout LyX-Code
5024 accent1 accent2 allowed
5027 \begin_layout Standard
5028 This one is getting pretty esoteric.
5029 It allows you to combine the effect
5085 \begin_inset Flex Code
5088 \begin_layout Plain Layout
5116 \begin_layout Standard
5117 Consider this example from the
5118 \begin_inset Flex Code
5121 \begin_layout Plain Layout
5132 \begin_layout LyX-Code
5135 kmod ; acute aeioyvhAEIOYVH
5139 kcomb acute umlaut iyIY
5142 \begin_layout Standard
5143 This allows you to press
5144 \begin_inset Flex Noun
5147 \begin_layout Plain Layout
5155 and get the effect of
5156 \begin_inset Flex Code
5159 \begin_layout Plain Layout
5178 in this case cancels the last dead key, so if you press
5179 \begin_inset Flex Noun
5182 \begin_layout Plain Layout
5191 \begin_inset Flex Code
5194 \begin_layout Plain Layout
5207 \begin_layout Subsection
5211 \begin_layout Standard
5213 \begin_inset Flex Code
5216 \begin_layout Plain Layout
5224 mapping is performed, a
5225 \begin_inset Flex Code
5228 \begin_layout Plain Layout
5238 file maps the strings that the symbols generate to characters in the current
5240 The \SpecialChar LyX
5241 distribution currently includes at least the
5242 \begin_inset Flex Code
5245 \begin_layout Plain Layout
5254 \begin_inset Flex Code
5257 \begin_layout Plain Layout
5268 \begin_layout Standard
5270 \begin_inset Flex Code
5273 \begin_layout Plain Layout
5281 file is a sequence of declarations of the form
5284 \begin_layout LyX-Code
5297 \begin_layout Standard
5298 For example, in order to map
5299 \begin_inset Flex Noun
5302 \begin_layout Plain Layout
5312 to the corresponding character in the iso-8859-1 set (233), the following
5316 \begin_layout LyX-Code
5324 \begin_layout Standard
5326 \begin_inset Flex Code
5329 \begin_layout Plain Layout
5338 \begin_inset Flex Code
5341 \begin_layout Plain Layout
5359 the same character can apply to more than one string.
5361 \begin_inset Flex Code
5364 \begin_layout Plain Layout
5375 \begin_layout LyX-Code
5387 \begin_inset Newline newline
5403 \begin_layout Standard
5405 cannot find a mapping for the string produced by the keystroke or a
5406 deadkey sequence, it will check if it looks like an accented char and try
5407 to draw an accent over the character on screen.
5410 \begin_layout Subsection
5414 \begin_layout Standard
5415 There is a second way to add support for international characters through
5416 so-called dead-keys.
5417 A dead-key works in combination with a letter to produce an accented character.
5418 Here, we'll explain how to create a really simple dead-key to illustrate
5422 \begin_layout Standard
5423 Suppose you happen to need the circumflex character,
5424 \begin_inset Quotes eld
5428 \begin_inset Quotes erd
5433 \begin_inset Flex Noun
5436 \begin_layout Plain Layout
5443 \begin_inset space ~
5447 \begin_inset Flex Noun
5450 \begin_layout Plain Layout
5456 ] to the \SpecialChar LyX
5458 \begin_inset Flex Code
5461 \begin_layout Plain Layout
5468 \begin_inset Flex Code
5471 \begin_layout Plain Layout
5478 Now, whenever you type the
5479 \begin_inset Flex Noun
5482 \begin_layout Plain Layout
5488 -key followed by a letter, that letter will have a circumflex accent on
5490 For example, the sequence
5491 \begin_inset Quotes eld
5495 \begin_inset Flex Noun
5498 \begin_layout Plain Layout
5505 \begin_inset Quotes erd
5508 produces the letter:
5509 \begin_inset Quotes eld
5513 \begin_inset Quotes erd
5517 If you tried to type
5518 \begin_inset Quotes eld
5522 \begin_inset Flex Noun
5525 \begin_layout Plain Layout
5532 \begin_inset Quotes erd
5535 , however, \SpecialChar LyX
5536 will complain with a beep, since a
5537 \begin_inset Quotes eld
5541 \begin_inset Flex Noun
5544 \begin_layout Plain Layout
5551 \begin_inset Quotes erd
5554 never takes a circumflex accent.
5556 \begin_inset Flex Noun
5559 \begin_layout Plain Layout
5565 after a dead-key produces the bare-accent.
5566 Please note this last point! If you bind a key to a dead-key, you'll need
5567 to rebind the character on that key to yet another key.
5569 \begin_inset Flex Noun
5572 \begin_layout Plain Layout
5578 to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5581 \begin_layout Standard
5582 One common way to bind dead-keys is to use
5583 \begin_inset Flex Noun
5586 \begin_layout Plain Layout
5593 \begin_inset Flex Noun
5596 \begin_layout Plain Layout
5603 \begin_inset Flex Noun
5606 \begin_layout Plain Layout
5612 in combination with an accent, like
5613 \begin_inset Quotes eld
5617 \begin_inset Flex Noun
5620 \begin_layout Plain Layout
5627 \begin_inset Quotes erd
5631 \begin_inset Quotes eld
5635 \begin_inset Flex Noun
5638 \begin_layout Plain Layout
5645 \begin_inset Quotes erd
5649 \begin_inset Quotes eld
5653 \begin_inset Flex Noun
5656 \begin_layout Plain Layout
5663 \begin_inset Quotes erd
5667 Another way involves using
5668 \begin_inset Flex Code
5671 \begin_layout Plain Layout
5678 \begin_inset Flex Code
5681 \begin_layout Plain Layout
5687 to set up the special
5688 \begin_inset Flex Code
5691 \begin_layout Plain Layout
5699 \begin_inset Flex Code
5702 \begin_layout Plain Layout
5708 acts in some ways just like
5709 \begin_inset Flex Noun
5712 \begin_layout Plain Layout
5718 and permits you to bind keys to accented characters.
5719 You can also turn keys into dead-keys by binding them to something like
5721 \begin_inset Flex Code
5724 \begin_layout Plain Layout
5730 and then binding this symbolic key to the corresponding \SpecialChar LyX
5735 \begin_layout Plain Layout
5740 : This is exactly what I do in my
5741 \begin_inset Flex Code
5744 \begin_layout Plain Layout
5751 \begin_inset Flex Code
5754 \begin_layout Plain Layout
5762 \begin_inset Flex Noun
5765 \begin_layout Plain Layout
5767 \begin_inset space ~
5776 \begin_inset Flex Code
5779 \begin_layout Plain Layout
5785 and a bunch of these
5786 \begin_inset Quotes eld
5790 \begin_inset Flex Code
5793 \begin_layout Plain Layout
5800 \begin_inset Quotes erd
5803 symbolic keys bound such things as
5804 \begin_inset Flex Noun
5807 \begin_layout Plain Layout
5809 \begin_inset space ~
5818 \begin_inset Flex Noun
5821 \begin_layout Plain Layout
5823 \begin_inset space ~
5832 This is how I produce my accented characters.
5837 You can make just about anything into the
5838 \begin_inset Flex Code
5841 \begin_layout Plain Layout
5848 \begin_inset Flex Noun
5851 \begin_layout Plain Layout
5857 keys, a spare function key, etc.
5858 As for the \SpecialChar LyX
5859 commands that produce accents, check the entry for
5860 \begin_inset Flex Code
5863 \begin_layout Plain Layout
5874 You'll find the complete list there.
5877 \begin_layout Subsection
5878 Saving your Language Configuration
5881 \begin_layout Standard
5882 You can edit your preferences so that your desired language environment
5883 is automatically configured when \SpecialChar LyX
5885 \begin_inset Flex Noun
5888 \begin_layout Plain Layout
5889 Edit\SpecialChar menuseparator
5898 \begin_layout Chapter
5899 Installing New Document Classes, Layouts, and Templates
5900 \begin_inset CommandInset label
5902 name "cha:Installing-New-Document"
5907 \begin_inset Argument 1
5910 \begin_layout Plain Layout
5911 Installing New Document Classes
5919 \begin_layout Standard
5920 In this chapter, we describe the procedures for creating and installing
5921 new \SpecialChar LyX
5922 layout and template files, as well as offer a refresher on correctly
5923 installing new \SpecialChar LaTeX
5928 \begin_layout Standard
5929 First, let us a say a few words about how one ought to think about the relation
5930 between \SpecialChar LyX
5931 and \SpecialChar LaTeX
5933 The thing to understand is that, in a certain sense, \SpecialChar LyX
5934 doesn't know anything
5935 about \SpecialChar LaTeX
5937 Indeed, from \SpecialChar LyX
5938 's point of view, \SpecialChar LaTeX
5939 is just one of several
5940 \begin_inset Quotes eld
5944 \begin_inset Quotes erd
5947 in which it is capable of producing output.
5948 Other such formats are DocBook, plaintext, and XHTML.
5950 is, of course, a particularly important format, but very little of the
5951 information \SpecialChar LyX
5952 has about \SpecialChar LaTeX
5953 is actually contained in the program itself.
5957 \begin_layout Plain Layout
5958 Some commands are sufficiently complex that they are
5959 \begin_inset Quotes eld
5963 \begin_inset Quotes erd
5966 into \SpecialChar LyX
5968 But the developers generally regard this as a Bad Thing.
5973 Rather, that information, even for the standard classes like
5974 \begin_inset Flex Code
5977 \begin_layout Plain Layout
5983 , is contained in `layout files'.
5984 Similarly, \SpecialChar LyX
5985 itself does not know much about DocBook or XHTML.
5986 What it knows is contained in layout files.
5989 \begin_layout Standard
5990 You can think of the layout file for a given document class as a translation
5991 manual between \SpecialChar LyX
5992 constructs—paragraphs with their corresponding styles,
5993 certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5996 Almost everything \SpecialChar LyX
5998 \begin_inset Flex Code
6001 \begin_layout Plain Layout
6007 , for example, is contained in the file
6008 \begin_inset Flex Code
6011 \begin_layout Plain Layout
6017 and in various other files it includes.
6018 For this reason, anyone intending to write layout files should plan to
6019 study the existing files.
6020 A good place to start is with
6021 \begin_inset Flex Code
6024 \begin_layout Plain Layout
6030 , which is included in
6031 \begin_inset Flex Code
6034 \begin_layout Plain Layout
6041 \begin_inset Flex Code
6044 \begin_layout Plain Layout
6050 , and many of the other layout files for document classes.
6051 This file is where sections and the like are defined:
6052 \begin_inset Flex Code
6055 \begin_layout Plain Layout
6061 tells \SpecialChar LyX
6062 how paragraphs that are marked with the Section, Subsection, etc,
6063 styles can be translated into corresponding \SpecialChar LaTeX
6064 , DocBook, and XHTML commands
6067 \begin_inset Flex Code
6070 \begin_layout Plain Layout
6076 file basically just includes several of these
6077 \begin_inset Flex Code
6080 \begin_layout Plain Layout
6089 \begin_layout Standard
6090 Defining the \SpecialChar LyX
6092 correspondence is not the only thing layout files do, though.
6093 Their other job is to define how the \SpecialChar LyX
6094 constructs themselves will appear
6096 The fact that layout files have these two jobs is often a source of confusion,
6097 because they are completely separate.
6098 Telling \SpecialChar LyX
6099 how to translate a certain paragraph style into \SpecialChar LaTeX
6102 how to display it; conversely, telling \SpecialChar LyX
6103 how to display a certain paragraph
6104 style does not tell \SpecialChar LyX
6105 how to translate it into \SpecialChar LaTeX
6106 (let alone tell \SpecialChar LaTeX
6109 So, in general, when you define a new \SpecialChar LyX
6110 construct, you must always do two
6111 quite separate things: (i)
6112 \begin_inset space ~
6115 tell \SpecialChar LyX
6116 how to translate it into \SpecialChar LaTeX
6118 \begin_inset space ~
6121 tell \SpecialChar LyX
6125 \begin_layout Standard
6126 Much the same is true, of course, as regards \SpecialChar LyX
6127 's other backend formats, though
6128 XHTML is in some ways different, because in that case \SpecialChar LyX
6133 able, to some extent, to use information about how it should display a
6134 paragraph on the screen to output information (in the form of CSS) about
6135 how the paragraph should be displayed in a browser.
6136 Even in this case, however, the distinction between what \SpecialChar LyX
6138 and how things are rendered externally remains in force, and the two can
6139 be controlled separately.
6141 \begin_inset CommandInset ref
6143 reference "sec:Tags-for-XHTML"
6150 \begin_layout Section
6151 Installing new \SpecialChar LaTeX
6155 \begin_layout Standard
6156 Some installations may not include a \SpecialChar LaTeX
6157 package or class file that you would
6158 like to use within \SpecialChar LyX
6160 For example, you might need Foil\SpecialChar TeX
6161 , a package for preparing slides for overhead
6163 Modern \SpecialChar LaTeX
6164 distributions like \SpecialChar TeX
6165 Live (2008 or newer) or MiK\SpecialChar TeX
6166 provide a user interface
6167 for installing such packages.
6168 For example, with MiK\SpecialChar TeX
6169 , you start the program
6170 \begin_inset Quotes eld
6174 \begin_inset space ~
6178 \begin_inset Quotes erd
6181 to get a list of available packages.
6182 To install one of them, right click on it or use the corresponding toolbar
6186 \begin_layout Standard
6187 If your \SpecialChar LaTeX
6188 distribution does not provide such a `package manager', or if the
6189 package is not available from your distribution, then follow these steps
6190 to install it manually:
6193 \begin_layout Enumerate
6194 Get the package from
6195 \begin_inset CommandInset href
6198 target "http://www.ctan.org/"
6206 \begin_layout Enumerate
6207 If the package contains a file with the ending
6208 \begin_inset Quotes eld
6212 \begin_inset Flex Code
6215 \begin_layout Plain Layout
6222 \begin_inset Quotes erd
6225 (is the case for Foil\SpecialChar TeX
6226 ) then open a console, change to the folder of this
6227 file and execute the command
6228 \begin_inset Flex Code
6231 \begin_layout Plain Layout
6238 You have now unpacked the package and have all files to install it.
6239 Most \SpecialChar LaTeX
6240 -packages are not packed and you can skip this step.
6243 \begin_layout Enumerate
6244 Now you need to decide if the package should be available for all users
6249 \begin_layout Enumerate
6250 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6251 for all users on your system, then install it in your `local' \SpecialChar TeX
6253 install it in your own `user' \SpecialChar TeX
6255 Where these trees should be created, if they do not already exist, depends
6257 To find this out, look in the file
6258 \begin_inset Flex Code
6261 \begin_layout Plain Layout
6271 \begin_layout Plain Layout
6272 This is usually in the directory
6273 \begin_inset Flex Code
6276 \begin_layout Plain Layout
6282 , though you can execute the command
6283 \begin_inset Flex Code
6286 \begin_layout Plain Layout
6297 The location of the `local' \SpecialChar TeX
6298 tree is defined by the
6299 \begin_inset Flex Code
6302 \begin_layout Plain Layout
6308 variable; this is usually somewhere like
6309 \begin_inset Flex Code
6312 \begin_layout Plain Layout
6313 /usr/local/share/texmf
6318 or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6321 The location of the `user' \SpecialChar TeX
6323 \begin_inset Flex Code
6326 \begin_layout Plain Layout
6333 \begin_inset Flex Code
6336 \begin_layout Plain Layout
6343 \begin_inset Flex Code
6346 \begin_layout Plain Layout
6355 (If these variables are not predefined, you have to define them.) You'll
6356 probably need root permissions to create or modify the `local' tree, but
6357 not for your `user' tree.
6358 \begin_inset Newline newline
6361 In general, it is recommended to install in the user tree because your user
6362 will not be modified or even overwritten when you upgrade your system.
6363 It will typically also be backed up together with everything else when
6364 you backup your home directory (which, of course, you do on a regular basis).
6367 \begin_layout Enumerate
6368 On Windows, if you want the new package to be available for all users on
6369 your system, change to the folder where \SpecialChar LaTeX
6370 is installed and then change to
6372 \begin_inset Flex Code
6375 \begin_layout Plain Layout
6386 (For MiK\SpecialChar TeX
6387 , this would be by default the folder
6388 \begin_inset Flex Code
6391 \begin_layout Plain Layout
6409 \begin_layout Plain Layout
6410 Note that this will be the correct path only on English installations.
6411 On a German one, it would be
6412 \begin_inset Flex Code
6415 \begin_layout Plain Layout
6429 , and similarly for other languages.
6434 Create there a new folder
6435 \begin_inset Flex Code
6438 \begin_layout Plain Layout
6444 and copy all files of the package into it.
6446 \begin_inset Newline newline
6449 If the package should only available for you or you don't have admin permissions
6450 , do the same, but in the local \SpecialChar LaTeX
6453 \begin_inset space \thinspace{}
6456 g., for MiK\SpecialChar TeX
6458 \begin_inset space ~
6461 2.8 under Windows XP, this would be the folder:
6462 \begin_inset Newline newline
6468 \begin_inset Flex Code
6471 \begin_layout Plain Layout
6474 Documents and Settings
6486 \begin_inset Newline newline
6492 \begin_inset Phantom HPhantom
6495 \begin_layout Plain Layout
6506 \begin_inset Flex Code
6509 \begin_layout Plain Layout
6522 \begin_inset Newline newline
6525 On Vista, it would be:
6526 \begin_inset Newline newline
6530 \begin_inset Flex Code
6533 \begin_layout Plain Layout
6559 \begin_layout Enumerate
6560 Now one only need to tell \SpecialChar LaTeX
6561 that there are new files.
6562 This depends on the used \SpecialChar LaTeX
6567 \begin_layout Enumerate
6568 For \SpecialChar TeX
6569 Live execute the command
6570 \begin_inset Flex Code
6573 \begin_layout Plain Layout
6580 If you installed the package for all users, then you will probably need
6581 to have root permissions for that.
6584 \begin_layout Enumerate
6585 For MiK\SpecialChar TeX
6586 , if you have installed the package for all users, start the program
6588 \begin_inset Quotes eld
6592 \begin_inset space ~
6596 \begin_inset Quotes erd
6599 and press the button marked
6600 \begin_inset Quotes eld
6604 \begin_inset Quotes erd
6608 Otherwise start the program
6609 \begin_inset Quotes eld
6613 \begin_inset Quotes erd
6620 \begin_layout Enumerate
6621 Finally, you need to tell \SpecialChar LyX
6622 that there are new packages available.
6623 So, in \SpecialChar LyX
6625 \begin_inset Flex Noun
6628 \begin_layout Plain Layout
6631 \SpecialChar menuseparator
6637 and then restart \SpecialChar LyX
6641 \begin_layout Standard
6642 Now the package is installed.
6643 In our example, the document class
6644 \begin_inset Flex Code
6647 \begin_layout Plain Layout
6653 will now be available under
6654 \begin_inset Flex Noun
6657 \begin_layout Plain Layout
6658 Document\SpecialChar menuseparator
6659 Settings\SpecialChar menuseparator
6666 \begin_inset Quotes eld
6670 \begin_inset Quotes erd
6677 \begin_layout Standard
6678 If you would like to use a \SpecialChar LaTeX
6679 document class that is not even listed in the
6681 \begin_inset Flex Noun
6684 \begin_layout Plain Layout
6685 Document\SpecialChar menuseparator
6686 Settings\SpecialChar menuseparator
6692 , then you need to create a `layout' file for it.
6693 That is the topic of the next section.
6696 \begin_layout Section
6697 Types of layout files
6700 \begin_layout Standard
6701 This section describes the various sorts of \SpecialChar LyX
6702 files that contain layout informati
6704 These files describe various paragraph and character styles, determining
6705 how \SpecialChar LyX
6706 should display them and how they should be translated into \SpecialChar LaTeX
6708 XHTML, or whatever output format is being used.
6712 \begin_layout Standard
6713 We shall try to provide a thorough description of the process of writing
6715 However, there are so many different types of documents supported even
6716 by just \SpecialChar LaTeX
6717 that we can't hope to cover every different possibility or problem
6718 you might encounter.
6719 The \SpecialChar LyX
6720 users' list is frequented by people with lots of experience with layout
6721 design who are willing to share what they've learned, so please feel free
6722 to ask questions there.
6725 \begin_layout Standard
6726 As you prepare to write a new layout, it is extremely helpful to look at
6727 the layouts distributed with \SpecialChar LyX
6729 If you write a \SpecialChar LyX
6730 layout for a \SpecialChar LaTeX
6731 document class that might also be used by
6732 others, or write a module that might be useful to others, then you should
6733 consider posting your layout to the
6734 \begin_inset CommandInset href
6736 name "layout section on the LyX wiki"
6737 target "https://wiki.lyx.org/Layouts/Layouts"
6742 or even to the \SpecialChar LyX
6743 developers' list, so that it might be included in \SpecialChar LyX
6748 \begin_layout Plain Layout
6749 Note that \SpecialChar LyX
6750 is licensed under the General Public License, so any material
6751 that is contributed to \SpecialChar LyX
6752 must be similarly licensed.
6760 \begin_layout Subsection
6762 \begin_inset CommandInset label
6764 name "subsec:Layout-modules"
6771 \begin_layout Standard
6772 We have spoken to this point about `layout files'.
6773 But there are different sorts of files that contain layout information.
6774 Layout files, strictly so called, have the
6775 \begin_inset Flex Code
6778 \begin_layout Plain Layout
6784 extension and provide \SpecialChar LyX
6785 with information about document classes.
6786 Since \SpecialChar LyX
6787 1.6 layout information can also be contained in layout
6792 \begin_inset Flex Code
6795 \begin_layout Plain Layout
6802 Modules are to \SpecialChar LaTeX
6803 packages much as layouts are to \SpecialChar LaTeX
6804 classes, and some modules—such
6806 \begin_inset Flex Code
6809 \begin_layout Plain Layout
6815 module—specifically provide support for one package.
6816 In a sense, layout modules are similar to included
6820 \begin_layout Plain Layout
6821 These can have any extension, but by convention have the
6822 \begin_inset Flex Code
6825 \begin_layout Plain Layout
6837 \begin_inset Flex Code
6840 \begin_layout Plain Layout
6846 —in that modules are not specific to a given document class but may be used
6847 with many different classes.
6848 The difference is that using an included file with
6849 \begin_inset Flex Code
6852 \begin_layout Plain Layout
6858 requires editing that file.
6859 Modules, by contrast, are selected in the
6860 \begin_inset Flex Noun
6863 \begin_layout Plain Layout
6864 Document\SpecialChar menuseparator
6873 \begin_layout Standard
6874 Building modules is the easiest way to get started with layout editing,
6875 since it can be as simple as adding a single new paragraph style or flex
6877 But modules may, in principle, contain anything a layout file can contain.
6880 \begin_layout Standard
6881 After creating a new module and copying it to the
6882 \begin_inset Flex Code
6885 \begin_layout Plain Layout
6891 folder, you will need to reconfigure and then restart \SpecialChar LyX
6894 However, changes you make to the module will be seen immediately, if you
6896 \begin_inset Flex Noun
6899 \begin_layout Plain Layout
6900 Document\SpecialChar menuseparator
6906 , highlight something, and then hit
6907 \begin_inset Quotes eld
6911 \begin_inset Quotes erd
6917 It is strongly recommended that you save your work before doing this
6922 it is strongly recommended that you not attempt to edit modules while simultaneo
6923 usly working on actual documents
6926 Though of course the developers strive to keep \SpecialChar LyX
6927 stable in such situations,
6928 syntax errors and the like in your module file could cause strange behavior.
6931 \begin_layout Subsubsection
6935 \begin_layout Standard
6936 Modules are to \SpecialChar LyX
6937 as packages are to \SpecialChar LaTeX
6939 Sometimes, however, you find yourself wanting a specific inset or character
6940 style just for one document and writing a module that will also be available
6941 to other documents makes little sense.
6942 What you need is \SpecialChar LyX
6944 \begin_inset Quotes eld
6948 \begin_inset Quotes erd
6954 \begin_layout Standard
6955 You will find it under
6957 Document\SpecialChar menuseparator
6958 Settings\SpecialChar menuseparator
6962 The large text box allows you to enter anything that you might enter in
6963 a layout file or module.
6964 You can think of a document's local layout, in fact, as a module that belongs
6966 So, in particular, you must enter a
6967 \begin_inset Flex Code
6970 \begin_layout Plain Layout
6977 Any format is acceptable, but one would normally use the format current
6979 (In \SpecialChar LyX
6986 , the current layout format is
6995 \begin_layout Standard
6996 When you have entered something in the
6997 \begin_inset Flex Code
7000 \begin_layout Plain Layout
7006 pane, \SpecialChar LyX
7008 \begin_inset Quotes eld
7012 \begin_inset Quotes erd
7015 button at the bottom.
7016 Clicking this button will cause \SpecialChar LyX
7017 to determine whether what you have entered
7018 is valid layout information for the chosen format.
7020 will report the result but, unfortunately, will not tell you what errors
7021 there might have been.
7022 These will be written to the terminal, however, if \SpecialChar LyX
7023 is started from a terminal.
7024 You will not be permitted to save your local layout until you have entered
7028 \begin_layout Standard
7029 The warnings at the end of the previous section apply here, too.
7030 Do not play with local layout while you are actually working, especially
7031 if you have not saved your document.
7032 That said, using local layout with a test document can be a very convenient
7033 way to try out layout ideas, or even to start developing a module.
7036 \begin_layout Subsection
7038 \begin_inset Flex Noun
7041 \begin_layout Plain Layout
7050 \begin_layout Standard
7051 There are two situations you are likely to encounter when wanting to support
7052 a new \SpecialChar LaTeX
7053 document class, involving style (
7054 \begin_inset Flex Code
7057 \begin_layout Plain Layout
7063 ) files and \SpecialChar LaTeX2e
7065 \begin_inset Flex Code
7068 \begin_layout Plain Layout
7075 Supporting a style file is usually fairly easy.
7076 Supporting a new class file is a bit harder.
7077 We'll discuss the former in this section and the latter in the next.
7078 Similar remarks apply, of course, if you want to support a new DocBook
7082 \begin_layout Standard
7083 The easier case is the one in which your new document class is provided
7084 as a style file that is to be used in conjunction with an already supported
7086 For the sake of the example, we'll assume that the style file is called
7088 \begin_inset Flex Noun
7091 \begin_layout Plain Layout
7097 and that it is meant to be used with
7098 \begin_inset Flex Noun
7101 \begin_layout Plain Layout
7107 , which is a standard class.
7111 \begin_layout Standard
7112 Start by copying the existing class's layout file into your local directory:
7116 \begin_layout Plain Layout
7117 Of course, which directory is your local directory will vary by platform,
7118 and \SpecialChar LyX
7119 allows you to specify your local directory on startup, too, using
7121 \begin_inset Flex Code
7124 \begin_layout Plain Layout
7138 \begin_layout LyX-Code
7139 cp report.layout ~/.lyx/layouts/myclass.layout
7142 \begin_layout Standard
7144 \begin_inset Flex Code
7147 \begin_layout Plain Layout
7153 and change the line:
7156 \begin_layout LyX-Code
7159 DeclareLaTeXClass{Report (Standard Class)}
7162 \begin_layout Standard
7166 \begin_layout LyX-Code
7169 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7172 \begin_layout Standard
7176 \begin_layout LyX-Code
7178 \begin_inset Newline newline
7184 \begin_inset Newline newline
7190 \begin_layout Standard
7191 near the top of the file.
7194 \begin_layout Standard
7195 Start \SpecialChar LyX
7197 \begin_inset Flex Noun
7200 \begin_layout Plain Layout
7201 Tools\SpecialChar menuseparator
7208 Then restart \SpecialChar LyX
7209 and try creating a new document.
7211 \begin_inset Flex Noun
7214 \begin_layout Plain Layout
7220 " as a document class option in the
7221 \begin_inset Flex Noun
7224 \begin_layout Plain Layout
7225 Document\SpecialChar menuseparator
7232 It is likely that some of the sectioning commands and such in your new
7233 class will work differently from how they worked in the base class—
7234 \begin_inset Flex Code
7237 \begin_layout Plain Layout
7243 in this example—so you can fiddle around with the settings for the different
7244 sections if you wish.
7245 The layout information for sections is contained in
7246 \begin_inset Flex Code
7249 \begin_layout Plain Layout
7255 , but you do not need to copy and change this file.
7256 Instead, you can simply add your changes to your layout file, after the
7258 \begin_inset Flex Code
7261 \begin_layout Plain Layout
7267 , which itself includes
7268 \begin_inset Flex Code
7271 \begin_layout Plain Layout
7278 For example, you might add these lines:
7281 \begin_layout LyX-Code
7285 \begin_layout LyX-Code
7289 \begin_layout LyX-Code
7293 \begin_layout LyX-Code
7297 \begin_layout LyX-Code
7301 \begin_layout Standard
7302 to change the font for chapter headings to sans-serif.
7303 This will override (or, in this case, add to) the existing declaration
7304 for the Chapter style.
7308 \begin_layout Standard
7309 Your new package may also provide commands or environments not present in
7311 In this case, you will want to add these to the layout file.
7313 \begin_inset CommandInset ref
7315 reference "sec:TextClass"
7319 for information on how to do so.
7322 \begin_layout Standard
7324 \begin_inset Flex Noun
7327 \begin_layout Plain Layout
7333 can be used with several different document classes, and even if it cannot,
7334 you might find it easiest just to write a module that you can load with
7336 The simplest possible such module would be:
7339 \begin_layout LyX-Code
7342 DeclareLyXModule{My Class}
7345 \begin_layout LyX-Code
7349 \begin_layout LyX-Code
7350 #Support for myclass.sty.
7353 \begin_layout LyX-Code
7355 \begin_inset Newline newline
7361 \begin_layout LyX-Code
7369 \begin_inset Newline newline
7375 \begin_layout LyX-Code
7377 \begin_inset Newline newline
7383 \begin_inset Newline newline
7389 \begin_layout Standard
7390 A more complex module might modify the behavior of some existing constructs
7391 or define some new ones.
7393 \begin_inset CommandInset ref
7395 reference "sec:TextClass"
7402 \begin_layout Subsection
7404 \begin_inset Flex Noun
7407 \begin_layout Plain Layout
7416 \begin_layout Standard
7417 There are two possibilities here.
7418 One is that the class file is itself based upon an existing document class.
7419 For example, many thesis classes are based upon
7420 \begin_inset Flex Noun
7423 \begin_layout Plain Layout
7430 To see whether yours is, look for a line like
7433 \begin_layout LyX-Code
7439 \begin_layout Standard
7441 If so, then you may proceed largely as in the previous section, though
7443 \begin_inset Flex Code
7446 \begin_layout Plain Layout
7447 Declare\SpecialChar LaTeX
7453 line will be different.
7454 If your new class is
7455 \begin_inset Flex Code
7458 \begin_layout Plain Layout
7464 and it is based upon
7465 \begin_inset Flex Code
7468 \begin_layout Plain Layout
7474 , then the line should read:
7478 \begin_layout Plain Layout
7479 And it will be easiest if you save the file to
7480 \begin_inset Flex Code
7483 \begin_layout Plain Layout
7490 assumes that the document class has the same name as the layout file.
7499 \begin_layout LyX-Code
7502 DeclareLaTeXClass[thesis,book]{thesis}
7505 \begin_layout Standard
7506 If, on the other hand, the new class is not based upon an existing class,
7507 you will probably have to
7508 \begin_inset Quotes eld
7512 \begin_inset Quotes erd
7516 We strongly suggest copying an existing layout file which uses a similar
7518 class and then modifying it, if you can do so.
7519 At least use an existing file as a starting point so you can find out what
7520 items you need to worry about.
7521 Again, the specifics are covered below.
7524 \begin_layout Subsection
7526 \begin_inset CommandInset label
7528 name "subsec:Creating-Templates"
7535 \begin_layout Standard
7536 Once you have written a layout file for a new document class, you might
7537 want to consider writing a
7542 A template acts as a kind of tutorial for your layout, showing how it might
7543 be used, though containing dummy content.
7544 You can of course look at the various templates included with \SpecialChar LyX
7548 \begin_layout Standard
7549 Templates are created just like usual documents: using \SpecialChar LyX
7551 The only difference is that usual documents contain all possible settings,
7552 including the font scheme and the paper size.
7553 Usually a user doesn't want a template to overwrite his preferred settings
7554 for such parameters.
7555 For that reason, the designer of a template should remove the corresponding
7557 \begin_inset Flex Code
7560 \begin_layout Plain Layout
7569 \begin_inset Flex Code
7572 \begin_layout Plain Layout
7580 from the template \SpecialChar LyX
7582 This can be done with any simple text-editor, for example
7583 \begin_inset Flex Code
7586 \begin_layout Plain Layout
7593 \begin_inset Flex Code
7596 \begin_layout Plain Layout
7605 \begin_layout Standard
7606 Put the edited template files you create in
7607 \begin_inset Flex Code
7610 \begin_layout Plain Layout
7616 , copy the ones you use from the global template directory in
7617 \begin_inset Flex Code
7620 \begin_layout Plain Layout
7626 to the same place, and redefine the template path in the
7627 \begin_inset Flex Noun
7630 \begin_layout Plain Layout
7631 Tools\SpecialChar menuseparator
7632 Preferences\SpecialChar menuseparator
7641 \begin_layout Standard
7642 Note, by the way, that there is a template which has a particular meaning:
7643 \begin_inset Newline linebreak
7647 \begin_inset Flex Code
7650 \begin_layout Plain Layout
7657 This template is loaded every time you create a new document with
7658 \begin_inset Flex Noun
7661 \begin_layout Plain Layout
7662 File\SpecialChar menuseparator
7668 in order to provide useful defaults.
7669 To create this template from inside \SpecialChar LyX
7670 , all you have to do is to open a document
7671 with the correct settings, and use the
7672 \begin_inset Flex Noun
7675 \begin_layout Plain Layout
7676 Save as Document Defaults
7684 \begin_layout Subsection
7685 Upgrading old layout files
7688 \begin_layout Standard
7689 The format of layout files changes with each \SpecialChar LyX
7690 release, so old layout files
7691 need to be converted to the new format.
7693 reads a layout file in an older format, it automatically calls the
7695 \begin_inset Flex Code
7698 \begin_layout Plain Layout
7704 to convert it to a temporary file in current format.
7705 The original file is left untouched.
7706 If you use the layout file often, then, you may want to convert it permanently,
7707 so that \SpecialChar LyX
7708 does not have to do so itself every time.
7709 To do this, you can call the converter manually:
7712 \begin_layout Enumerate
7714 \begin_inset Flex Code
7717 \begin_layout Plain Layout
7724 \begin_inset Flex Code
7727 \begin_layout Plain Layout
7736 \begin_layout Enumerate
7738 \begin_inset Newline newline
7742 \begin_inset Flex Code
7745 \begin_layout Plain Layout
7746 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7752 \begin_inset Newline newline
7756 \begin_inset Flex Code
7759 \begin_layout Plain Layout
7765 is the name of your \SpecialChar LyX
7769 \begin_layout Standard
7770 Note that manual conversion does not affect included files, so these will
7771 have to be converted separately.
7774 \begin_layout Subsection
7775 \begin_inset CommandInset label
7777 name "subsec:Cite-Engine-Files"
7784 \begin_layout Standard
7785 A specific form of layout files are the so-called
7786 \begin_inset Flex Code
7789 \begin_layout Plain Layout
7795 files that are located in the
7796 \begin_inset Flex Code
7799 \begin_layout Plain Layout
7806 Their purpose is to define the specifics of \SpecialChar LaTeX
7807 packages aimed at bibliography
7820 , but also the way how normal Bib\SpecialChar TeX
7821 citations (without additional packages)
7822 are handled in \SpecialChar LyX
7823 is defined in such a file.
7827 \begin_layout Standard
7828 More specifically, it is defined which packages \SpecialChar LyX
7829 needs to load, which citation
7830 commands are available, how these are to be displayed in \SpecialChar LyX
7832 the dialogs, the context menus) as well as in the XHTML and plain text
7834 Furthermore, the files specify available style variants (author-year, numerical
7835 , etc.) and their specifics.
7836 The cite engine files are also used to generate the options that are available
7839 Document\SpecialChar menuseparator
7840 Settings\SpecialChar menuseparator
7841 Bibliography\SpecialChar menuseparator
7847 \begin_layout Standard
7848 Even though a cite engine file is essentially a normal layout file that
7849 could theoretically include any layout information, it usually primarily
7850 includes some specific parameters such as
7851 \begin_inset Flex Code
7854 \begin_layout Plain Layout
7861 \begin_inset Flex Code
7864 \begin_layout Plain Layout
7871 \begin_inset Flex Code
7874 \begin_layout Plain Layout
7881 \begin_inset Flex Code
7884 \begin_layout Plain Layout
7891 The syntax of the latter two is described in
7892 \begin_inset CommandInset ref
7894 reference "subsec:Citation-engine-description"
7902 \begin_inset CommandInset ref
7904 reference "subsec:Citation-format-description"
7908 , as well as in the files themselves.
7911 \begin_layout Section
7912 \begin_inset CommandInset label
7914 name "sec:TextClass"
7918 The layout file format
7921 \begin_layout Standard
7922 The following sections describe how layout files are structured and written.
7923 Our advice is to go slowly, save and test often.
7924 It is really not that hard, except that the multitude of options can become
7925 overwhelming, especially if you try to check out too many at once.
7926 It becomes easier if you use existing layouts of \SpecialChar LyX
7927 as examples/reference
7928 or if you modify an existing layout to your needs.
7931 \begin_layout Standard
7932 Note that all the tags used in layout files are case-insensitive.
7934 \begin_inset Flex Code
7937 \begin_layout Plain Layout
7944 \begin_inset Flex Code
7947 \begin_layout Plain Layout
7954 \begin_inset Flex Code
7957 \begin_layout Plain Layout
7963 are really the same tag.
7964 The possible arguments are printed in brackets after the tag's name.
7965 The default argument is typeset
7966 \begin_inset Flex Code
7969 \begin_layout Plain Layout
7978 If the argument has a data type like
7979 \begin_inset Quotes eld
7983 \begin_inset Quotes erd
7987 \begin_inset Quotes eld
7991 \begin_inset Quotes erd
7994 , the default is shown like this:
7995 \begin_inset Flex Code
7998 \begin_layout Plain Layout
8009 \begin_layout Subsection
8010 The document class declaration and classification
8013 \begin_layout Standard
8014 Lines in a layout file which begin with
8015 \begin_inset Flex Code
8018 \begin_layout Plain Layout
8025 There is one exception to this rule.
8027 \begin_inset Flex Code
8030 \begin_layout Plain Layout
8036 files should begin with lines like:
8039 \begin_layout LyX-Code
8042 #% Do not delete the line below; configure depends on this
8045 \begin_layout LyX-Code
8050 DeclareLaTeXClass{Article (Standard Class)}
8053 \begin_layout LyX-Code
8058 DeclareCategory{Articles}
8061 \begin_layout Standard
8062 The second and third lines are used when you (re)configure \SpecialChar LyX
8064 The layout file is read by the \SpecialChar LaTeX
8066 \begin_inset Flex Code
8069 \begin_layout Plain Layout
8075 , in a special mode where
8076 \begin_inset Flex Code
8079 \begin_layout Plain Layout
8086 The first line is just a \SpecialChar LaTeX
8087 comment, the second one contains the mandatory
8088 declaration of the text class and the third line contains the optional
8089 classification of the class.
8090 If these lines appear in a file named
8091 \begin_inset Flex Code
8094 \begin_layout Plain Layout
8100 , then they define a text class of name
8101 \begin_inset Flex Code
8104 \begin_layout Plain Layout
8110 (the name of the layout file) which uses the \SpecialChar LaTeX
8112 \begin_inset Flex Code
8115 \begin_layout Plain Layout
8121 (the default is to use the same name as the layout).
8123 \begin_inset Quotes eld
8126 Article (Standard Class)
8127 \begin_inset Quotes erd
8130 that appears above is used as a description of the text class in the
8131 \begin_inset Flex Noun
8134 \begin_layout Plain Layout
8135 Document\SpecialChar menuseparator
8143 \begin_inset Quotes eld
8147 \begin_inset Quotes erd
8150 in the example) is also used in the
8151 \begin_inset Flex Noun
8154 \begin_layout Plain Layout
8155 Document\SpecialChar menuseparator
8161 dialog: the text classes are grouped by these categories (which are usually
8162 genres, so typical categories are
8163 \begin_inset Quotes eld
8167 \begin_inset Quotes erd
8171 \begin_inset Quotes eld
8175 \begin_inset Quotes erd
8179 \begin_inset Quotes eld
8183 \begin_inset Quotes erd
8187 \begin_inset Quotes eld
8191 \begin_inset Quotes erd
8195 \begin_inset Quotes eld
8199 \begin_inset Quotes erd
8203 \begin_inset Quotes eld
8207 \begin_inset Quotes erd
8211 If no category has been declared, the class will be put in the
8212 \begin_inset Quotes eld
8216 \begin_inset Quotes erd
8222 \begin_layout Standard
8223 Let's assume that you wrote your own text class that uses the
8224 \begin_inset Flex Code
8227 \begin_layout Plain Layout
8233 document class, but where you changed the appearance of the section headings.
8234 If you put it in a file
8235 \begin_inset Flex Code
8238 \begin_layout Plain Layout
8244 , the header of this file should be:
8247 \begin_layout LyX-Code
8250 #% Do not delete the line below; configure depends on this
8253 \begin_layout LyX-Code
8258 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8261 \begin_layout LyX-Code
8266 DeclareCategory{Articles}
8269 \begin_layout Standard
8270 This declares a text class
8271 \begin_inset Flex Code
8274 \begin_layout Plain Layout
8280 , associated with the \SpecialChar LaTeX
8282 \begin_inset Flex Code
8285 \begin_layout Plain Layout
8292 \begin_inset Quotes eld
8295 Article (with My Own Headings)
8296 \begin_inset Quotes erd
8300 If your text class depends on several packages, you can declare it as:
8303 \begin_layout LyX-Code
8306 #% Do not delete the line below; configure depends on this
8309 \begin_layout LyX-Code
8314 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8317 \begin_layout LyX-Code
8322 DeclareCategory{Articles}
8325 \begin_layout Standard
8326 This indicates that your text class uses the
8327 \begin_inset Flex Code
8330 \begin_layout Plain Layout
8337 Finally, it is also possible to declare classes for DocBook code.
8338 Typical declarations will look like:
8341 \begin_layout LyX-Code
8344 #% Do not delete the line below; configure depends on this
8347 \begin_layout LyX-Code
8352 DeclareDocBookClass[article]{SGML (DocBook Article)}
8355 \begin_layout LyX-Code
8360 DeclareCategory{Articles (DocBook)}
8363 \begin_layout Standard
8364 Note that these declarations can also be given an optional parameter declaring
8365 the name of the document class (but not a list).
8368 \begin_layout Standard
8369 So, to be as explicit as possible, the form of the layout declaration is:
8372 \begin_layout LyX-Code
8377 DeclareLaTeXClass[class,package.sty]{layout description}
8380 \begin_layout LyX-Code
8385 DeclareCategory{category}
8388 \begin_layout Standard
8389 The class need only be specified if the name of the \SpecialChar LaTeX
8391 name of the layout file are different or if there are packages to load.
8392 If the name of the class file is not specified, then \SpecialChar LyX
8394 that it is the same as the name of the layout file.
8397 \begin_layout Standard
8398 When the text class has been modified to your taste, all you have to do
8399 is to copy it either to
8400 \begin_inset Flex Code
8403 \begin_layout Plain Layout
8410 \begin_inset Flex Code
8413 \begin_layout Plain Layout
8420 \begin_inset Flex Noun
8423 \begin_layout Plain Layout
8424 Tools\SpecialChar menuseparator
8430 , exit \SpecialChar LyX
8432 Then your new text class should be available along with the others.
8435 \begin_layout Standard
8436 Once the layout file is installed, you can edit it and see your changes
8437 without having to reconfigure or to restart \SpecialChar LyX
8442 \begin_layout Plain Layout
8443 In versions of \SpecialChar LyX
8444 prior to 1.6, this was not true.
8445 As a result, editing layout files was very time consuming, since you had
8446 constantly to restart \SpecialChar LyX
8452 You can force a reload of the current layout by using the \SpecialChar LyX
8454 \begin_inset Flex Noun
8457 \begin_layout Plain Layout
8464 There is no default binding for this function—though, of course, you can
8465 bind it to a key yourself.
8466 But you will normally use this function simply by entering it in the mini-buffe
8471 \begin_layout Standard
8477 \begin_inset Flex Noun
8480 \begin_layout Plain Layout
8486 is very much an `advanced feature'.
8491 recommended that you save your work before using this function.
8496 recommended that you not attempt to edit layout information while simultaneousl
8497 y working on a document that you care about.
8498 Use a test document.
8499 Syntax errors and the like in your layout file could cause peculiar behavior.
8500 In particular, such errors could cause \SpecialChar LyX
8501 to regard the current layout as
8502 invalid and to attempt to switch to some other layout.
8506 \begin_layout Plain Layout
8507 Really bad syntax errors may even caused \SpecialChar LyX
8509 This is because certain sorts of errors may make \SpecialChar LyX
8520 The \SpecialChar LyX
8521 team strives to keep \SpecialChar LyX
8522 stable in such situations, but safe is better
8527 \begin_layout Plain Layout
8528 While we're giving advice: make regular backups.
8529 And be nice to your mother.
8537 \begin_layout Subsection
8538 The Module declaration
8541 \begin_layout Standard
8542 A module must begin with a line like the following:
8545 \begin_layout LyX-Code
8548 DeclareLyXModule[endnotes.sty]{Endnotes}
8549 \change_inserted -712698321 1554395911
8553 \begin_layout LyX-Code
8555 \change_inserted -712698321 1554395924
8560 DeclareCategory{Foot- and Endnotes}
8561 \change_deleted -712698321 1554395911
8569 \begin_layout Standard
8570 The mandatory argument
8571 \change_inserted -712698321 1554395956
8580 , in curly brackets, is the name of the module, as it should appear in
8581 \begin_inset Flex Noun
8584 \begin_layout Plain Layout
8585 Document\SpecialChar menuseparator
8586 Settings\SpecialChar menuseparator
8593 The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8595 on which the module depends.
8596 It is also possible to use the form
8597 \begin_inset Flex Noun
8600 \begin_layout Plain Layout
8606 as an optional argument, which declares that the module can only be used
8607 when there exists a conversion chain between the formats `
8608 \begin_inset Flex Code
8611 \begin_layout Plain Layout
8618 \begin_inset Flex Code
8621 \begin_layout Plain Layout
8629 \change_inserted -712698321 1554396133
8636 declaration is not strictly mandatory, but you should add it, since it
8637 is helpful to find the module.
8638 Please have a look at the existing module categories and if appropriate,
8644 \begin_layout Standard
8646 \change_inserted -712698321 1554395988
8649 declaration should then be followed by lines like the following:
8653 \begin_layout Plain Layout
8654 Preferably in English if the module should be published with \SpecialChar LyX
8656 This description will appear in the list of messages to be translated and
8657 will be thus translated with the next interface update.
8665 \begin_layout LyX-Code
8669 \begin_layout LyX-Code
8670 #Adds an endnote command, in addition to footnotes.
8674 \begin_layout LyX-Code
8675 #You will need to add
8677 theendnotes in TeX code where you
8680 \begin_layout LyX-Code
8681 #want the endnotes to appear.
8685 \begin_layout LyX-Code
8689 \begin_layout LyX-Code
8690 #Requires: somemodule | othermodule
8693 \begin_layout LyX-Code
8694 #Excludes: badmodule
8697 \begin_layout Standard
8698 The description is used in
8699 \begin_inset Flex Noun
8702 \begin_layout Plain Layout
8703 Document\SpecialChar menuseparator
8704 Settings\SpecialChar menuseparator
8710 to provide the user with information about what the module does.
8712 \begin_inset Flex Code
8715 \begin_layout Plain Layout
8721 line is used to identify other modules with which this one must be used;
8723 \begin_inset Flex Code
8726 \begin_layout Plain Layout
8732 line is used to identify modules with which this one may not be used.
8733 Both are optional, and, as shown, multiple modules should be separated
8734 with the pipe symbol: |.
8735 Note that the required modules are treated disjunctively:
8739 of the required modules must be used.
8744 excluded module may be used.
8745 Note that modules are identified here by their filenames without the
8746 \begin_inset Flex Code
8749 \begin_layout Plain Layout
8757 \begin_inset Flex Code
8760 \begin_layout Plain Layout
8767 \begin_inset Flex Code
8770 \begin_layout Plain Layout
8779 \begin_layout Subsection
8780 The CiteEngine file declaration
8783 \begin_layout Standard
8784 A cite engine file must begin with a line like the following:
8787 \begin_layout LyX-Code
8790 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8793 \begin_layout Standard
8794 The mandatory argument, in curly brackets, is the name of the cite style,
8795 as it should appear in
8796 \begin_inset Flex Noun
8799 \begin_layout Plain Layout
8800 Document\SpecialChar menuseparator
8801 Settings\SpecialChar menuseparator
8808 The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8810 on which the cite engine depends.
8813 \begin_layout Standard
8814 The cite engine declaration should then be followed by lines like the following:
8818 \begin_layout Plain Layout
8819 Preferably in English if the module should be published with \SpecialChar LyX
8821 This description will appear in the list of messages to be translated and
8822 will be thus translated with the next interface update.
8830 \begin_layout LyX-Code
8834 \begin_layout LyX-Code
8835 # Biblatex supports many author-year and numerical styles.
8838 \begin_layout LyX-Code
8839 # It is mainly aimed at the Humanities.
8843 \begin_layout LyX-Code
8844 # customizable, fully localized and provides many features
8847 \begin_layout LyX-Code
8848 # that are not possible with BibTeX.
8849 The use of 'biber' as
8852 \begin_layout LyX-Code
8853 # bibliography processor is advised.
8856 \begin_layout LyX-Code
8860 \begin_layout Standard
8861 The description is used in
8862 \begin_inset Flex Noun
8865 \begin_layout Plain Layout
8866 Document\SpecialChar menuseparator
8867 Settings\SpecialChar menuseparator
8873 to provide the user with information about the cite engine.
8876 \begin_layout Subsection
8880 \begin_layout Standard
8881 The first non-comment line of any layout file, included file, or module
8886 contain the file format number:
8889 \begin_layout Description
8890 \begin_inset Flex Code
8893 \begin_layout Plain Layout
8900 \begin_inset Flex Code
8903 \begin_layout Plain Layout
8909 ] The format number of the layout file.
8912 \begin_layout Standard
8913 This tag was introduced with \SpecialChar LyX
8915 \begin_inset space ~
8919 Layout files from older \SpecialChar LyX
8920 versions do not have an explicit file format and
8921 are considered to have
8922 \begin_inset Flex Code
8925 \begin_layout Plain Layout
8927 \begin_inset space ~
8936 The format for the present version of \SpecialChar LyX
8938 But each version of \SpecialChar LyX
8939 is capable of reading earlier versions' layout files,
8940 just as they are capable of reading files produced by earlier versions
8943 There is, however, no provision for converting to earlier formats.
8946 \begin_layout Subsection
8947 \begin_inset CommandInset label
8949 name "subsec:General-text-class"
8953 General text class parameters
8956 \begin_layout Standard
8957 These are general parameters that govern the behavior of an entire document
8963 mean that they must appear in
8964 \begin_inset Flex Code
8967 \begin_layout Plain Layout
8973 files rather than in modules.
8974 A module can contain any layout tag.)
8977 \begin_layout Description
8979 \change_inserted -712698321 1526899478
8980 \begin_inset Flex Code
8983 \begin_layout Plain Layout
8985 \change_inserted -712698321 1526898610
8986 AddToCiteEngine <engine>
8991 Extends the possibilities for displaying citation references.
8993 \begin_inset CommandInset ref
8995 reference "subsec:Citation-engine-description"
9004 \begin_inset Flex Code
9007 \begin_layout Plain Layout
9009 \change_inserted -712698321 1526898823
9020 \begin_layout Description
9021 \begin_inset Flex Code
9024 \begin_layout Plain Layout
9030 Adds information that will be output in the
9031 \begin_inset Flex Code
9034 \begin_layout Plain Layout
9040 block when the document is output to XHTML.
9041 Typically, this would be used to output CSS style information, but it can
9042 be used for anything that can appear in
9043 \begin_inset Flex Code
9046 \begin_layout Plain Layout
9054 \begin_inset Quotes eld
9058 \begin_inset Flex Code
9061 \begin_layout Plain Layout
9068 \begin_inset Quotes erd
9074 \begin_layout Description
9075 \begin_inset Flex Code
9078 \begin_layout Plain Layout
9084 Adds information to the document preamble.
9086 \begin_inset Newline newline
9090 \begin_inset Quotes eld
9094 \begin_inset Flex Code
9097 \begin_layout Plain Layout
9104 \begin_inset Quotes erd
9110 \begin_layout Description
9111 \begin_inset Flex Code
9114 \begin_layout Plain Layout
9120 Defines the possibilities for displaying citation references.
9122 \begin_inset CommandInset ref
9124 reference "subsec:Citation-engine-description"
9133 \begin_inset Quotes eld
9137 \begin_inset Flex Code
9140 \begin_layout Plain Layout
9147 \begin_inset Quotes erd
9151 Primarily used in cite engine files (see
9152 \begin_inset CommandInset ref
9154 reference "subsec:Cite-Engine-Files"
9163 \change_inserted -712698321 1526898530
9164 Note that if you specify this in a layout file or module, any cite engine
9165 definition will be overridden.
9167 \begin_inset Flex Code
9170 \begin_layout Plain Layout
9172 \change_inserted -712698321 1526898530
9185 \begin_layout Description
9186 \begin_inset Flex Code
9189 \begin_layout Plain Layout
9195 Defines formats for use in the display of bibliographic information.
9197 \begin_inset CommandInset ref
9199 reference "subsec:Citation-format-description"
9205 \begin_inset Quotes eld
9209 \begin_inset Flex Code
9212 \begin_layout Plain Layout
9219 \begin_inset Quotes erd
9223 Primarily used in cite engine files (see
9224 \begin_inset CommandInset ref
9226 reference "subsec:Cite-Engine-Files"
9235 \change_inserted -712698321 1526898585
9236 A cite format defined in a layout or module will override the cite engine
9242 \begin_layout Description
9243 \begin_inset Flex Code
9246 \begin_layout Plain Layout
9253 \begin_inset Flex Code
9256 \begin_layout Plain Layout
9265 \begin_inset Flex Code
9268 \begin_layout Plain Layout
9274 ] Determines whether
9278 or Bib\SpecialChar TeX
9279 is used to generate a Bibliography.
9280 Primarily used in cite engine files (see
9281 \begin_inset CommandInset ref
9283 reference "subsec:Cite-Engine-Files"
9293 \begin_layout Description
9294 \begin_inset Flex Code
9297 \begin_layout Plain Layout
9303 Describes various global options supported by the document class.
9305 \begin_inset CommandInset ref
9307 reference "subsec:ClassOptions"
9313 \begin_inset Quotes eld
9317 \begin_inset Flex Code
9320 \begin_layout Plain Layout
9327 \begin_inset Quotes erd
9333 \begin_layout Description
9334 \begin_inset Flex Code
9337 \begin_layout Plain Layout
9344 \begin_inset Flex Code
9347 \begin_layout Plain Layout
9356 \begin_inset space \thinspace{}
9360 \begin_inset Flex Code
9363 \begin_layout Plain Layout
9369 ] Whether the class should
9373 to having one or two columns.
9374 Can be changed in the
9375 \begin_inset Flex Noun
9378 \begin_layout Plain Layout
9379 Document\SpecialChar menuseparator
9388 \begin_layout Description
9389 \begin_inset Flex Code
9392 \begin_layout Plain Layout
9399 \begin_inset Flex Code
9402 \begin_layout Plain Layout
9408 ] This sequence defines the properties for a counter.
9409 If the counter does not yet exist, it is created; if it does exist, it
9412 \begin_inset Quotes eld
9416 \begin_inset Flex Code
9419 \begin_layout Plain Layout
9426 \begin_inset Quotes erd
9430 \begin_inset Newline newline
9434 \begin_inset CommandInset ref
9436 reference "subsec:Counters"
9440 for details on counters.
9443 \begin_layout Description
9444 \begin_inset Flex Code
9447 \begin_layout Plain Layout
9453 Sets the default font used to display the document.
9455 \begin_inset CommandInset ref
9457 reference "subsec:Font-description"
9461 for how to declare fonts.
9463 \begin_inset Quotes eld
9467 \begin_inset Flex Code
9470 \begin_layout Plain Layout
9477 \begin_inset Quotes erd
9483 \begin_layout Description
9484 \begin_inset Flex Code
9487 \begin_layout Plain Layout
9494 \begin_inset Flex Code
9497 \begin_layout Plain Layout
9503 ] Specifies a module to be included by default with this document class.
9504 The module is specified as filename without the
9505 \begin_inset Flex Code
9508 \begin_layout Plain Layout
9515 The user can still remove the module, but it will be active at the outset.
9516 (This applies only when new files are created, or when this class is chosen
9517 for an existing document.)
9520 \begin_layout Description
9521 \begin_inset Flex Code
9524 \begin_layout Plain Layout
9531 \begin_inset Flex Code
9534 \begin_layout Plain Layout
9540 ] This is the style that will be assigned to new paragraphs, usually
9541 \begin_inset Flex Noun
9544 \begin_layout Plain Layout
9551 This will default to the first defined style if not given, but you are
9552 encouraged to use this directive.
9555 \begin_layout Description
9556 \begin_inset Flex Code
9559 \begin_layout Plain Layout
9566 \begin_inset Flex Code
9569 \begin_layout Plain Layout
9575 ] This tag indicates that the module (which is specified by filename without
9577 \begin_inset Flex Code
9580 \begin_layout Plain Layout
9586 extension) cannot be used with this document class.
9587 This might be used in a journal-specific layout file to prevent, say, the
9589 \begin_inset Flex Code
9592 \begin_layout Plain Layout
9598 module that numbers theorems by section.
9603 be used in a module.
9604 Modules have their own way of excluding other modules (see
9605 \begin_inset CommandInset ref
9607 reference "subsec:Layout-modules"
9614 \begin_layout Description
9615 \begin_inset Flex Code
9618 \begin_layout Plain Layout
9624 Defines a new float.
9626 \begin_inset CommandInset ref
9628 reference "subsec:Floats"
9634 \begin_inset Quotes eld
9638 \begin_inset Flex Code
9641 \begin_layout Plain Layout
9648 \begin_inset Quotes erd
9654 \begin_layout Description
9655 \begin_inset Flex Code
9658 \begin_layout Plain Layout
9664 Sets the information that will be output in the
9665 \begin_inset Flex Code
9668 \begin_layout Plain Layout
9674 block when this document class is output to XHTML.
9675 Note that this will completely override any prior
9676 \begin_inset Flex Code
9679 \begin_layout Plain Layout
9686 \begin_inset Flex Code
9689 \begin_layout Plain Layout
9697 \begin_inset Newline newline
9701 \begin_inset Flex Code
9704 \begin_layout Plain Layout
9710 if you just want to add material to the preamble.) Must end with
9711 \begin_inset Quotes eld
9715 \begin_inset Flex Code
9718 \begin_layout Plain Layout
9725 \begin_inset Quotes erd
9731 \begin_layout Description
9732 \begin_inset Flex Code
9735 \begin_layout Plain Layout
9742 \begin_inset Flex Code
9745 \begin_layout Plain Layout
9751 ] The style to use for the table of contents, bibliography, and so forth,
9752 when the document is output to HTML.
9753 For articles, this should normally be
9754 \begin_inset Flex Code
9757 \begin_layout Plain Layout
9764 \begin_inset Flex Code
9767 \begin_layout Plain Layout
9774 If it is not given, then \SpecialChar LyX
9775 will attempt to figure out which layout to use.
9778 \begin_layout Description
9779 \begin_inset Flex Code
9782 \begin_layout Plain Layout
9789 \begin_inset Flex Code
9792 \begin_layout Plain Layout
9798 ] Modifies the properties of the given counter.
9799 If the counter does not exist, the statement is ignored.
9801 \begin_inset Quotes eld
9805 \begin_inset Flex Code
9808 \begin_layout Plain Layout
9815 \begin_inset Quotes erd
9819 \begin_inset Newline newline
9823 \begin_inset CommandInset ref
9825 reference "subsec:Counters"
9829 for details on counters.
9832 \begin_layout Description
9833 \begin_inset Flex Code
9836 \begin_layout Plain Layout
9843 \begin_inset Flex Code
9846 \begin_layout Plain Layout
9852 ] This allows you to include another layout definition file within yours
9853 to avoid duplicating commands.
9854 Common examples are the standard layout files, for example,
9855 \begin_inset Flex Code
9858 \begin_layout Plain Layout
9864 , which contains most of the basic layouts.
9867 \begin_layout Description
9868 \begin_inset Flex Code
9871 \begin_layout Plain Layout
9878 \begin_inset Flex Code
9881 \begin_layout Plain Layout
9887 ] This section (re-)defines the layout of an inset.
9888 It can be applied to an existing inset or to a new, user-defined inset,
9889 e.g., a new character style.
9891 \begin_inset Quotes eld
9895 \begin_inset Flex Code
9898 \begin_layout Plain Layout
9905 \begin_inset Quotes erd
9909 \begin_inset Newline newline
9913 \begin_inset CommandInset ref
9915 reference "subsec:Flex-insets-and"
9919 for more information.
9923 \begin_layout Description
9924 \begin_inset Flex Code
9927 \begin_layout Plain Layout
9934 \begin_inset Flex Code
9937 \begin_layout Plain Layout
9943 ] A string that indicates the width of the left margin on the screen, for
9945 \begin_inset Quotes eld
9949 \begin_inset Flex Code
9952 \begin_layout Plain Layout
9959 \begin_inset Quotes erd
9963 (Note that this is not a `length', like
9964 \begin_inset Quotes eld
9968 \begin_inset Quotes erd
9974 \begin_layout Description
9975 \begin_inset Flex Code
9978 \begin_layout Plain Layout
9985 \begin_inset Flex Code
9988 \begin_layout Plain Layout
9994 ] An integer that determines the maximal number of names displayed in an
9995 author-year citation before the citation switches to
9996 \begin_inset Quotes eld
10000 \begin_inset Quotes erd
10004 Primarily used in cite engine files (see
10005 \begin_inset CommandInset ref
10007 reference "subsec:Cite-Engine-Files"
10017 \begin_layout Description
10018 \begin_inset Flex Code
10021 \begin_layout Plain Layout
10028 \begin_inset Flex Code
10031 \begin_layout Plain Layout
10037 ] Modifies the properties of the given paragraph style.
10038 If the style does not exist, this section is ignored.
10040 \begin_inset Quotes eld
10044 \begin_inset Flex Code
10047 \begin_layout Plain Layout
10054 \begin_inset Quotes erd
10060 \begin_layout Description
10061 \begin_inset Flex Code
10064 \begin_layout Plain Layout
10071 \begin_inset Flex Code
10074 \begin_layout Plain Layout
10080 ] Deletes an existing counter, usually one defined in an included file.
10083 \begin_layout Description
10084 \begin_inset Flex Code
10087 \begin_layout Plain Layout
10094 \begin_inset Flex Code
10097 \begin_layout Plain Layout
10103 ] Deletes an existing float.
10104 This is particularly useful when you want to suppress a float that has
10105 been defined in an input file.
10108 \begin_layout Description
10109 \begin_inset Flex Code
10112 \begin_layout Plain Layout
10119 \begin_inset Flex Code
10122 \begin_layout Plain Layout
10128 ] Deletes an existing style.
10131 \begin_layout Description
10132 \begin_inset Flex Code
10135 \begin_layout Plain Layout
10142 \begin_inset Flex Code
10145 \begin_layout Plain Layout
10152 \begin_inset Flex Code
10155 \begin_layout Plain Layout
10161 ] Define a new table of contents with type
10162 \begin_inset Flex Code
10165 \begin_layout Plain Layout
10172 \begin_inset Flex Code
10175 \begin_layout Plain Layout
10182 See also the AddToToc commands.
10185 \begin_layout Description
10186 \begin_inset Flex Code
10189 \begin_layout Plain Layout
10196 \begin_inset Flex Code
10199 \begin_layout Plain Layout
10205 ] The file format (as defined in the \SpecialChar LyX
10206 preferences) produced by this document
10208 It is mainly useful when
10209 \begin_inset Flex Code
10212 \begin_layout Plain Layout
10219 \begin_inset Flex Code
10222 \begin_layout Plain Layout
10228 and one wants to define a new type of literate document.
10229 The format is reset to
10230 \begin_inset Quotes eld
10234 \begin_inset Flex Code
10237 \begin_layout Plain Layout
10244 \begin_inset Quotes erd
10248 \begin_inset Quotes eld
10252 \begin_inset Flex Code
10255 \begin_layout Plain Layout
10262 \begin_inset Quotes erd
10265 when the corresponding
10266 \begin_inset Flex Code
10269 \begin_layout Plain Layout
10275 parameter is encountered.
10278 \begin_layout Description
10279 \begin_inset Flex Code
10282 \begin_layout Plain Layout
10289 \begin_inset Flex Code
10292 \begin_layout Plain Layout
10303 \begin_inset Flex Code
10306 \begin_layout Plain Layout
10313 \begin_inset Flex Code
10316 \begin_layout Plain Layout
10322 ] Specifies what sort of output documents using this class will produce.
10325 \begin_layout Description
10326 \begin_inset Flex Code
10329 \begin_layout Plain Layout
10336 \begin_inset Flex Code
10339 \begin_layout Plain Layout
10346 \begin_inset Flex Code
10349 \begin_layout Plain Layout
10355 ] Specifies options, given in the second string, for the package named by
10358 \begin_inset Quotes eld
10362 \begin_inset Flex Code
10365 \begin_layout Plain Layout
10366 PackageOptions natbib square
10372 \begin_inset Quotes erd
10376 \begin_inset Flex Code
10379 \begin_layout Plain Layout
10385 to be loaded with the
10386 \begin_inset Flex Code
10389 \begin_layout Plain Layout
10396 (For \SpecialChar TeX
10397 perts, this causes \SpecialChar LyX
10399 \begin_inset Flex Code
10402 \begin_layout Plain Layout
10405 PassOptionsToPackage{natbib}{square}
10411 \begin_inset Flex Code
10414 \begin_layout Plain Layout
10423 \begin_layout Description
10424 \begin_inset Flex Code
10427 \begin_layout Plain Layout
10434 \begin_inset Flex Code
10437 \begin_layout Plain Layout
10446 \begin_inset Flex Code
10449 \begin_layout Plain Layout
10456 \begin_inset Flex Code
10459 \begin_layout Plain Layout
10465 ] The default pagestyle.
10466 Can be changed in the
10467 \begin_inset Flex Noun
10470 \begin_layout Plain Layout
10471 Document\SpecialChar menuseparator
10480 \begin_layout Description
10481 \begin_inset Flex Code
10484 \begin_layout Plain Layout
10490 Sets the preamble for the \SpecialChar LaTeX
10492 Note that this will completely override any prior
10493 \begin_inset Flex Code
10496 \begin_layout Plain Layout
10503 \begin_inset Flex Code
10506 \begin_layout Plain Layout
10514 \begin_inset Flex Code
10517 \begin_layout Plain Layout
10523 if you just want to add material to the preamble.) Must end with
10524 \begin_inset Quotes eld
10528 \begin_inset Flex Code
10531 \begin_layout Plain Layout
10538 \begin_inset Quotes erd
10544 \begin_layout Description
10545 \begin_inset Flex Code
10548 \begin_layout Plain Layout
10555 \begin_inset Flex Code
10558 \begin_layout Plain Layout
10565 \begin_inset Flex Code
10568 \begin_layout Plain Layout
10577 \begin_inset space \thinspace{}
10581 \begin_inset Flex Code
10584 \begin_layout Plain Layout
10590 ] Whether the class already provides the feature
10591 \begin_inset Flex Code
10594 \begin_layout Plain Layout
10601 A feature is in general the name of a package (e.
10602 \begin_inset space \thinspace{}
10606 \begin_inset space \space{}
10610 \begin_inset Flex Code
10613 \begin_layout Plain Layout
10620 \begin_inset Flex Code
10623 \begin_layout Plain Layout
10630 \begin_inset space \thinspace{}
10634 \begin_inset space \space{}
10638 \begin_inset Flex Code
10641 \begin_layout Plain Layout
10648 \begin_inset Flex Code
10651 \begin_layout Plain Layout
10659 \begin_inset CommandInset ref
10661 reference "chap:List-of-functions"
10665 for the list of features.
10668 \begin_layout Description
10669 \begin_inset Flex Code
10672 \begin_layout Plain Layout
10679 \begin_inset Flex Code
10682 \begin_layout Plain Layout
10688 ] Indicates that this layout provides the functionality of the module mentioned,
10689 which should be specified by the filename without the
10690 \begin_inset Flex Code
10693 \begin_layout Plain Layout
10700 This will typically be used if the layout includes the module directly,
10701 rather than using the
10702 \begin_inset Flex Code
10705 \begin_layout Plain Layout
10711 tag to indicate that it ought to be used.
10712 It could also be used in a module that provided an alternate implementation
10713 of the same functionality.
10716 \begin_layout Description
10717 \begin_inset Flex Code
10720 \begin_layout Plain Layout
10727 \begin_inset Flex Code
10730 \begin_layout Plain Layout
10736 ] Creates a new paragraph style if it does not already exist.
10737 If the style does exist, this section is ignored.
10739 \begin_inset Quotes eld
10743 \begin_inset Flex Code
10746 \begin_layout Plain Layout
10753 \begin_inset Quotes erd
10759 \begin_layout Description
10760 \begin_inset Flex Code
10763 \begin_layout Plain Layout
10770 \begin_inset Flex Code
10773 \begin_layout Plain Layout
10779 ] Whether the class requires the feature
10780 \begin_inset Flex Code
10783 \begin_layout Plain Layout
10790 Multiple features must be separated by commas.
10791 Note that you can only request supported features.
10793 \begin_inset CommandInset ref
10795 reference "chap:List-of-functions"
10799 for the list of features.).
10800 If you require a package with specific options, you can additionally use
10802 \begin_inset Flex Code
10805 \begin_layout Plain Layout
10814 \begin_layout Description
10815 \begin_inset Flex Code
10818 \begin_layout Plain Layout
10825 \begin_inset Flex Code
10828 \begin_layout Plain Layout
10834 ] A string that indicates the width of the right margin on the screen, for
10836 \begin_inset Quotes eld
10840 \begin_inset Flex Code
10843 \begin_layout Plain Layout
10850 \begin_inset Quotes erd
10856 \begin_layout Description
10857 \begin_inset Flex Code
10860 \begin_layout Plain Layout
10867 \begin_inset Flex Code
10870 \begin_layout Plain Layout
10876 ] Sets which divisions get numbered.
10878 \begin_inset Newline newline
10882 \begin_inset Flex Code
10885 \begin_layout Plain Layout
10891 counter in \SpecialChar LaTeX
10895 \begin_layout Description
10896 \begin_inset Flex Code
10899 \begin_layout Plain Layout
10906 \begin_inset Flex Code
10909 \begin_layout Plain Layout
10918 \begin_inset space \thinspace{}
10922 \begin_inset Flex Code
10925 \begin_layout Plain Layout
10931 ] Whether the class-default should be printing on one or both sides of the
10933 Can be changed in the
10934 \begin_inset Flex Noun
10937 \begin_layout Plain Layout
10938 Document\SpecialChar menuseparator
10947 \begin_layout Description
10948 \begin_inset Flex Code
10951 \begin_layout Plain Layout
10958 \begin_inset Flex Code
10961 \begin_layout Plain Layout
10967 ] This sequence defines a paragraph style.
10968 If the style does not yet exist, it is created; if it does exist, its parameter
10971 \begin_inset Quotes eld
10975 \begin_inset Flex Code
10978 \begin_layout Plain Layout
10985 \begin_inset Quotes erd
10989 \begin_inset Newline newline
10993 \begin_inset CommandInset ref
10995 reference "subsec:Paragraph-Styles"
10999 for details on paragraph styles.
11000 \change_inserted -712698321 1553617804
11004 \begin_layout Description
11006 \change_inserted -712698321 1553617862
11007 \begin_inset Flex Code
11010 \begin_layout Plain Layout
11012 \change_inserted -712698321 1553617809
11019 \begin_inset Flex Code
11022 \begin_layout Plain Layout
11024 \change_inserted -712698321 1553617805
11030 ] defines the default table style that is used when inserting a table.
11031 The following styles are available:
11035 \begin_layout Itemize
11037 \change_inserted -712698321 1554308039
11038 \begin_inset Flex Code
11041 \begin_layout Plain Layout
11043 \change_inserted -712698321 1554307928
11044 Formal_with_Footline
11052 \begin_inset Quotes eld
11056 \begin_inset Quotes erd
11059 ) style with horizontal lines only, using a bold top and bottom line, the
11060 first and last row are additionally separated from the table body with
11061 a thin middle line.
11064 \begin_layout Itemize
11066 \change_inserted -712698321 1554308087
11067 \begin_inset Flex Code
11070 \begin_layout Plain Layout
11072 \change_inserted -712698321 1554308042
11073 Formal_without_Footline
11078 : same as the above, but the last row is not separated with a middle line
11082 \begin_layout Itemize
11084 \change_inserted -712698321 1553618031
11085 \begin_inset Flex Code
11088 \begin_layout Plain Layout
11090 \change_inserted -712698321 1553618006
11096 : Simple table lines.
11099 \begin_layout Itemize
11101 \change_inserted -712698321 1553618309
11102 \begin_inset Flex Code
11105 \begin_layout Plain Layout
11107 \change_inserted -712698321 1553618031
11114 \begin_inset Flex Code
11117 \begin_layout Plain Layout
11119 \change_inserted -712698321 1553618043
11125 , but with the header column offset with a second horizontal line.
11126 This is also the default style of \SpecialChar LyX
11130 \begin_layout Itemize
11132 \change_inserted -712698321 1553618280
11133 \begin_inset Flex Code
11136 \begin_layout Plain Layout
11138 \change_inserted -712698321 1553618261
11144 : Table without lines.
11150 \begin_layout Description
11151 \begin_inset Flex Code
11154 \begin_layout Plain Layout
11161 \begin_inset Flex Code
11164 \begin_layout Plain Layout
11170 ] The name of the command or environment to be used with
11171 \begin_inset Flex Code
11174 \begin_layout Plain Layout
11183 \begin_layout Description
11184 \begin_inset Flex Code
11187 \begin_layout Plain Layout
11194 \begin_inset Flex Code
11197 \begin_layout Plain Layout
11206 \begin_inset Flex Code
11209 \begin_layout Plain Layout
11215 ] Indicates what kind of markup is used to define the title of a document.
11217 \begin_inset Flex Code
11220 \begin_layout Plain Layout
11226 means that the macro with name
11227 \begin_inset Flex Code
11230 \begin_layout Plain Layout
11236 will be inserted after the last layout which has
11237 \begin_inset Quotes eld
11241 \begin_inset Flex Code
11244 \begin_layout Plain Layout
11246 \begin_inset space ~
11255 \begin_inset Quotes erd
11260 \begin_inset Flex Code
11263 \begin_layout Plain Layout
11269 corresponds to the case where all layouts which have
11270 \begin_inset Quotes eld
11274 \begin_inset Flex Code
11277 \begin_layout Plain Layout
11279 \begin_inset space ~
11288 \begin_inset Quotes erd
11291 should be enclosed into the
11292 \begin_inset Flex Code
11295 \begin_layout Plain Layout
11304 \begin_layout Description
11305 \begin_inset Flex Code
11308 \begin_layout Plain Layout
11315 \begin_inset Flex Code
11318 \begin_layout Plain Layout
11324 ] Sets which divisions are included in the table of contents.
11326 \begin_inset Flex Code
11329 \begin_layout Plain Layout
11335 counter in \SpecialChar LaTeX
11339 \begin_layout Subsection
11340 \begin_inset Flex Code
11343 \begin_layout Plain Layout
11350 \begin_inset CommandInset label
11352 name "subsec:ClassOptions"
11359 \begin_layout Standard
11361 \begin_inset Flex Code
11364 \begin_layout Plain Layout
11370 section can contain the following entries:
11373 \begin_layout Description
11374 \begin_inset Flex Code
11377 \begin_layout Plain Layout
11384 \begin_inset Flex Code
11387 \begin_layout Plain Layout
11393 ] The list of available font sizes for the document's main font, separated
11395 \begin_inset Quotes eld
11399 \begin_inset Flex Code
11402 \begin_layout Plain Layout
11409 \begin_inset Quotes erd
11415 \begin_layout Description
11416 \begin_inset Flex Code
11419 \begin_layout Plain Layout
11425 Used to set the DTD line with XML-based output classes.
11427 \begin_inset space \thinspace{}
11431 \begin_inset Quotes eld
11434 -//OASIS//DTD DocBook V4.2//EN
11435 \begin_inset Quotes erd
11441 \begin_layout Description
11442 \begin_inset Flex Code
11445 \begin_layout Plain Layout
11452 \begin_inset Flex Code
11455 \begin_layout Plain Layout
11456 string="empty|plain|headings|fancy"
11461 ] The list of available page sty\SpecialChar softhyphen
11463 \begin_inset Quotes eld
11467 \begin_inset Flex Code
11470 \begin_layout Plain Layout
11477 \begin_inset Quotes erd
11483 \begin_layout Description
11484 \begin_inset Flex Code
11487 \begin_layout Plain Layout
11494 \begin_inset Flex Code
11497 \begin_layout Plain Layout
11503 ] Some document class options, separated by a comma, that will be added
11504 to the optional part of the
11505 \begin_inset Flex Code
11508 \begin_layout Plain Layout
11519 \begin_layout Standard
11521 \begin_inset Flex Code
11524 \begin_layout Plain Layout
11530 section must end with
11531 \begin_inset Quotes eld
11535 \begin_inset Flex Code
11538 \begin_layout Plain Layout
11545 \begin_inset Quotes erd
11551 \begin_layout Subsection
11553 \begin_inset CommandInset label
11555 name "subsec:Paragraph-Styles"
11562 \begin_layout Standard
11563 A paragraph style description looks like this:
11567 \begin_layout Plain Layout
11568 Note that this will either define a new style or modify an existing one.
11576 \begin_layout LyX-Code
11583 \begin_layout LyX-Code
11587 \begin_layout LyX-Code
11591 \begin_layout Standard
11592 where the following commands are allowed:
11595 \begin_layout Description
11596 \begin_inset Flex Code
11599 \begin_layout Plain Layout
11606 \begin_inset Flex Code
11609 \begin_layout Plain Layout
11615 =""] This paragraph will appear in the table of contents of the given type.
11616 An empty string disables.
11617 See also the OutlinerName and the IsTocCaption commands.
11621 \begin_layout Description
11622 \begin_inset Flex Code
11625 \begin_layout Plain Layout
11632 \begin_inset Flex Code
11635 \begin_layout Plain Layout
11640 , left, right, center
11645 ] Paragraph alignment.
11648 \begin_layout Description
11649 \begin_inset Flex Code
11652 \begin_layout Plain Layout
11659 \begin_inset Flex Code
11662 \begin_layout Plain Layout
11667 , left, right, center
11672 ] A comma separated list of permitted alignments.
11673 (Some \SpecialChar LaTeX
11674 styles prohibit certain alignments, since those wouldn't make sense.
11675 For example a right-aligned or centered enumeration isn't possible.)
11678 \begin_layout Description
11679 \begin_inset Flex Code
11682 \begin_layout Plain Layout
11689 \begin_inset Flex Code
11692 \begin_layout Plain Layout
11698 ] Defines argument number <int> of a command\SpecialChar breakableslash
11699 environment associated with
11701 This is useful for things like section headings, and only makes sense with
11704 Every (optional or required) argument of a command or environment – except
11705 for the required argument that is associated with the content of the paragraph
11706 itself – has a separate definition, where the number specifies the order
11708 The definition must end with
11709 \begin_inset Flex Code
11712 \begin_layout Plain Layout
11719 So a command with two optional arguments has:
11723 \begin_layout Quote
11729 \begin_layout Quote
11735 \begin_layout Quote
11741 \begin_layout Quote
11747 \begin_layout Quote
11753 \begin_layout Quote
11759 \begin_layout Standard
11761 \begin_inset Flex Code
11764 \begin_layout Plain Layout
11770 definition, the following specifications are possible:
11773 \begin_layout Itemize
11774 \begin_inset Flex Code
11777 \begin_layout Plain Layout
11784 \begin_inset Flex Code
11787 \begin_layout Plain Layout
11793 The string that will appear both in the menu (to insert this argument)
11794 and on the argument inset button (unless you also specify a separate
11795 \begin_inset Flex Code
11798 \begin_layout Plain Layout
11805 For the menu, you can define an accelerator by appending the respective
11806 character to the string, divided by
11807 \begin_inset Quotes eld
11811 \begin_inset Quotes erd
11815 \begin_inset space \thinspace{}
11819 \begin_inset space \space{}
11823 \begin_inset Quotes eld
11827 \begin_inset Flex Code
11830 \begin_layout Plain Layout
11837 \begin_inset Quotes erd
11843 \begin_layout Itemize
11844 \begin_inset Flex Code
11847 \begin_layout Plain Layout
11854 \begin_inset Flex Code
11857 \begin_layout Plain Layout
11863 A separate string for the menu.
11864 You can define an accelerator by appending the respective character to
11865 the string, divided by
11866 \begin_inset Quotes eld
11870 \begin_inset Quotes erd
11874 \begin_inset space \thinspace{}
11878 \begin_inset space \space{}
11882 \begin_inset Quotes eld
11886 \begin_inset Flex Code
11889 \begin_layout Plain Layout
11896 \begin_inset Quotes erd
11900 This specification is optional.
11901 If it is not given the
11902 \begin_inset Flex Code
11905 \begin_layout Plain Layout
11911 will be used instead for the menu.
11914 \begin_layout Itemize
11915 \begin_inset Flex Code
11918 \begin_layout Plain Layout
11925 \begin_inset Flex Code
11928 \begin_layout Plain Layout
11934 A longer explanatory text that appears in the tooltip when hovering over
11935 the argument inset.
11938 \begin_layout Itemize
11939 \begin_inset Flex Code
11942 \begin_layout Plain Layout
11949 \begin_inset Flex Code
11952 \begin_layout Plain Layout
11961 \begin_inset space \thinspace{}
11965 \begin_inset Flex Code
11968 \begin_layout Plain Layout
11974 ] Declare if this is a mandatory (1) or an optional (0) argument.
11975 Mandatory arguments will be output empty if not given, while optional arguments
11976 will not be output at all.
11977 By default, mandatory arguments are delimited by
11978 \begin_inset Flex Code
11981 \begin_layout Plain Layout
11987 , while optional arguments are delimited by
11988 \begin_inset Flex Code
11991 \begin_layout Plain Layout
12000 \begin_layout Itemize
12001 \begin_inset Flex Code
12004 \begin_layout Plain Layout
12011 \begin_inset Flex Code
12014 \begin_layout Plain Layout
12020 defines another argument (by its number) which this argument requires to
12021 be output if it is itself output.
12023 \begin_inset space \thinspace{}
12026 g., in \SpecialChar LaTeX
12027 commands, optional arguments often require previous optional arguments
12028 to be output (at least empty), as in
12029 \begin_inset Flex Code
12032 \begin_layout Plain Layout
12035 command[][argument]{text}
12041 This can be achieved by the statement
12042 \begin_inset Flex Code
12045 \begin_layout Plain Layout
12052 \begin_inset Flex Code
12055 \begin_layout Plain Layout
12064 \begin_layout Itemize
12065 \begin_inset Flex Code
12068 \begin_layout Plain Layout
12075 \begin_inset Flex Code
12078 \begin_layout Plain Layout
12084 defines a custom left delimiter (instead of
12085 \begin_inset Flex Code
12088 \begin_layout Plain Layout
12095 \begin_inset Flex Code
12098 \begin_layout Plain Layout
12105 A line break in the output can be indicated by
12106 \begin_inset Flex Code
12109 \begin_layout Plain Layout
12118 \begin_layout Itemize
12119 \begin_inset Flex Code
12122 \begin_layout Plain Layout
12129 \begin_inset Flex Code
12132 \begin_layout Plain Layout
12138 defines a custom right delimiter (instead of
12139 \begin_inset Flex Code
12142 \begin_layout Plain Layout
12149 \begin_inset Flex Code
12152 \begin_layout Plain Layout
12159 A line break in the output can be indicated by
12160 \begin_inset Flex Code
12163 \begin_layout Plain Layout
12172 \begin_layout Itemize
12173 \begin_inset Flex Code
12176 \begin_layout Plain Layout
12183 \begin_inset Flex Code
12186 \begin_layout Plain Layout
12192 defines an argument that is inserted if and only if no user-specified arguments
12194 \begin_inset space \thinspace{}
12198 \begin_inset space \space{}
12201 if no argument inset has been inserted (note that also an empty argument
12202 inset omits the DefaultArg).
12203 Multiple arguments need to be separated by comma.
12206 \begin_layout Itemize
12207 \begin_inset Flex Code
12210 \begin_layout Plain Layout
12217 \begin_inset Flex Code
12220 \begin_layout Plain Layout
12226 defines an argument that is inserted in any case (alone or in addition
12227 to user-specified arguments).
12228 Multiple arguments need to be separated by comma.
12231 \begin_layout Itemize
12232 \begin_inset Flex Code
12235 \begin_layout Plain Layout
12241 The font used for the argument content, see
12242 \begin_inset CommandInset ref
12244 reference "subsec:Font-description"
12251 \begin_layout Itemize
12252 \begin_inset Flex Code
12255 \begin_layout Plain Layout
12261 The font used for the label; see
12262 \begin_inset CommandInset ref
12264 reference "subsec:Font-description"
12271 \begin_layout Itemize
12272 \begin_inset Flex Code
12275 \begin_layout Plain Layout
12282 \begin_inset Flex Code
12285 \begin_layout Plain Layout
12290 , Minimalistic, Conglomerate
12295 ] describes the rendering style used for the inset's frame and buttons.
12298 \begin_layout Itemize
12299 \begin_inset Flex Code
12302 \begin_layout Plain Layout
12309 \begin_inset Flex Code
12312 \begin_layout Plain Layout
12319 \begin_inset Flex Code
12322 \begin_layout Plain Layout
12328 , this argument is automatically inserted when the respective style is selected.
12329 Currently, only one argument per style\SpecialChar breakableslash
12330 layout can be automatically inserted.
12333 \begin_layout Itemize
12334 \begin_inset Flex Code
12337 \begin_layout Plain Layout
12344 \begin_inset Flex Code
12347 \begin_layout Plain Layout
12354 \begin_inset Flex Code
12357 \begin_layout Plain Layout
12363 , this argument will be inserted with a copy of the co-text (either selected
12364 text or the whole paragraph) as content.
12367 \begin_layout Itemize
12368 \begin_inset Flex Code
12371 \begin_layout Plain Layout
12378 \begin_inset Flex Code
12381 \begin_layout Plain Layout
12391 ] Whether the contents of this argument should be output in raw form, meaning
12392 without special translations that \SpecialChar LaTeX
12395 \begin_inset Flex Code
12398 \begin_layout Plain Layout
12404 status is inherited by the inset or paragraph layout the argument belongs
12405 to, true and false change the status for the given argument only.
12408 \begin_layout Itemize
12409 \begin_inset Flex Code
12412 \begin_layout Plain Layout
12419 \begin_inset Flex Code
12422 \begin_layout Plain Layout
12423 string of characters
12432 Defines individual characters
12433 \begin_inset Newline linebreak
12436 that should be output in raw form, meaning without special translations
12437 that \SpecialChar LaTeX
12439 Note that, contrary to PassThru, this needs to be explicitly defined for
12441 That is, arguments do not inherit PassThruChars from their parent inset
12445 \begin_layout Itemize
12446 \begin_inset Flex Code
12449 \begin_layout Plain Layout
12456 \begin_inset Flex Code
12459 \begin_layout Plain Layout
12468 \begin_inset space \thinspace{}
12472 \begin_inset Flex Code
12475 \begin_layout Plain Layout
12481 ] If this is set to 1, the argument will output its content in the corresponding
12482 item in the table of contents.
12486 \begin_layout Standard
12487 By default, the text entered in the \SpecialChar LyX
12488 workarea in the respective layout is
12489 the last (mandatory) argument of a command if the
12490 \begin_inset Flex Code
12493 \begin_layout Plain Layout
12500 \begin_inset Flex Code
12503 \begin_layout Plain Layout
12510 However, arguments with the prefix
12511 \begin_inset Flex Code
12514 \begin_layout Plain Layout
12520 are output after this workarea argument.
12521 Note that post-argument numbering restarts at 1, so the first argument
12522 following the workarea argument is
12523 \begin_inset Flex Code
12526 \begin_layout Plain Layout
12533 Post-arguments are ignored in any other
12534 \begin_inset Flex Code
12537 \begin_layout Plain Layout
12544 \begin_inset Flex Code
12547 \begin_layout Plain Layout
12556 \begin_layout Standard
12558 \begin_inset Flex Code
12561 \begin_layout Plain Layout
12570 \begin_inset Flex Code
12573 \begin_layout Plain Layout
12582 \begin_inset Flex Code
12585 \begin_layout Plain Layout
12591 followed by the number (e.
12592 \begin_inset space \thinspace{}
12596 \begin_inset space \space{}
12600 \begin_inset Flex Code
12603 \begin_layout Plain Layout
12610 \change_inserted -712698321 1534487781
12614 \begin_layout Standard
12616 \change_inserted -712698321 1534488561
12617 Finally, there is a special argument type with the prefix
12618 \begin_inset Flex Code
12621 \begin_layout Plain Layout
12623 \change_inserted -712698321 1534487844
12632 It is not really an argument, but uses the argument interface (thus, the
12633 prefix is also followed by a number, e.
12634 \begin_inset space \thinspace{}
12639 \begin_inset Flex Code
12642 \begin_layout Plain Layout
12644 \change_inserted -712698321 1534488412
12645 Argument listpreamble:1
12651 As the name implies, it is targeted at lists such as
12668 Its content will be output at the list start, before the first
12669 \begin_inset Flex Code
12672 \begin_layout Plain Layout
12674 \change_inserted -712698321 1534488058
12684 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
12686 This way, users can insert redefinitions (of lengths etc.) to individual
12688 By default, these arguments do not have a delimiter.
12694 \begin_layout Description
12695 \begin_inset Flex Code
12698 \begin_layout Plain Layout
12704 Includes a comma-separated list of layouts that should be nested in and
12705 after the current layout.
12706 Only makes sense for nestable layouts (such as environments).
12708 \begin_inset Quotes eld
12712 \begin_inset Flex Code
12715 \begin_layout Plain Layout
12722 \begin_inset Quotes erd
12727 \begin_inset Flex Code
12730 \begin_layout Plain Layout
12739 \begin_layout Description
12740 \begin_inset Flex Code
12743 \begin_layout Plain Layout
12749 Note that this will completely override any prior
12750 \begin_inset Flex Code
12753 \begin_layout Plain Layout
12759 declaration for this style.
12761 \begin_inset Quotes eld
12765 \begin_inset Flex Code
12768 \begin_layout Plain Layout
12775 \begin_inset Quotes erd
12780 \begin_inset CommandInset ref
12782 reference "subsec:I18n"
12786 for details on its use.
12789 \begin_layout Description
12790 \begin_inset Flex Code
12793 \begin_layout Plain Layout
12800 \begin_inset Flex Code
12803 \begin_layout Plain Layout
12813 \begin_layout Plain Layout
12814 Note that a `float' here is a real number, such as: 1.5.
12819 The vertical space with which the last of a chain of paragraphs with this
12820 style is separated from the following paragraph.
12821 If the next paragraph has another style, the separations are not simply
12822 added, but the maximum is taken.
12825 \begin_layout Description
12826 \begin_inset Flex Code
12829 \begin_layout Plain Layout
12836 \begin_inset Flex Code
12839 \begin_layout Plain Layout
12845 ] The category for this style.
12846 This is used to group related styles in the style combobox on the toolbar.
12847 Any string can be used, but you may want to use existing categories with
12852 \begin_layout Description
12853 \begin_inset Flex Code
12856 \begin_layout Plain Layout
12862 Depth of XML command.
12863 Used only with XML-type formats.
12866 \begin_layout Description
12867 \begin_inset Flex Code
12870 \begin_layout Plain Layout
12877 \begin_inset Flex Code
12880 \begin_layout Plain Layout
12886 ] Copies all the features of an existing style into the current one.
12890 \begin_layout Description
12891 \begin_inset Flex Code
12894 \begin_layout Plain Layout
12901 \begin_inset Flex Code
12904 \begin_layout Plain Layout
12910 ] The name of a style whose preamble should be output
12915 This allows to ensure some ordering of the preamble snippets when macros
12916 definitions depend on one another.
12920 \begin_layout Plain Layout
12921 Note that, besides that functionality, there is no way to ensure any ordering
12923 The ordering that you see in a given version of \SpecialChar LyX
12924 may change without warning
12933 \begin_layout Description
12934 \begin_inset Flex Code
12937 \begin_layout Plain Layout
12944 \begin_inset Flex Code
12947 \begin_layout Plain Layout
12952 , Box, Filled_Box, Static
12957 ] The type of label that stands at the end of the paragraph (or sequence
12959 \begin_inset Flex Code
12962 \begin_layout Plain Layout
12969 \begin_inset Newline newline
12973 \begin_inset Flex Code
12976 \begin_layout Plain Layout
12983 \begin_inset Flex Code
12986 \begin_layout Plain Layout
12993 \begin_inset Flex Code
12996 \begin_layout Plain Layout
13004 \begin_inset Flex Code
13007 \begin_layout Plain Layout
13014 \begin_inset Quotes eld
13018 \begin_inset Quotes erd
13022 \begin_inset Flex Code
13025 \begin_layout Plain Layout
13032 \begin_inset space \space{}
13036 \begin_inset Flex Code
13039 \begin_layout Plain Layout
13045 ) is a white (resp.
13046 \begin_inset space ~
13049 black) square suitable for end of proof markers,
13050 \begin_inset Flex Code
13053 \begin_layout Plain Layout
13059 is an explicit text string.
13062 \begin_layout Description
13063 \begin_inset Flex Code
13066 \begin_layout Plain Layout
13073 \begin_inset Flex Code
13076 \begin_layout Plain Layout
13082 ] The string used for a label with a
13083 \begin_inset Flex Code
13086 \begin_layout Plain Layout
13093 \begin_inset Newline newline
13097 \begin_inset Flex Code
13100 \begin_layout Plain Layout
13110 \begin_layout Description
13111 \begin_inset Flex Code
13114 \begin_layout Plain Layout
13120 The font used for both the text body
13126 \begin_inset CommandInset ref
13128 reference "subsec:Font-description"
13133 Note that defining this font automatically defines the
13134 \begin_inset Flex Code
13137 \begin_layout Plain Layout
13144 So you should define this one first if you also want to define
13145 \begin_inset Flex Code
13148 \begin_layout Plain Layout
13157 \begin_layout Description
13158 \begin_inset Flex Code
13161 \begin_layout Plain Layout
13168 \begin_inset Flex Code
13171 \begin_layout Plain Layout
13177 ] Used for backporting new styles to stable \SpecialChar LyX
13179 The first stable version that supports this tag is \SpecialChar LyX
13181 The argument is a number which may either be 0, -1 or any value greater
13184 \begin_inset Flex Code
13187 \begin_layout Plain Layout
13193 flag of a style is greater than zero, it will always be written to the
13195 If a .lyx file is read, the style definitions from the document header are
13196 added to the document class.
13197 Therefore even older \SpecialChar LyX
13198 versions can handle the style.
13200 \begin_inset Flex Code
13203 \begin_layout Plain Layout
13209 is a version number: if the style is read, and the version number is less
13210 than the version number of the already existing style in the document class,
13211 the new style is ignored.
13212 If the version number is greater, the new style replaces the existing style.
13213 A value of -1 means an infinite version number, i.
13214 \begin_inset space \thinspace{}
13218 \begin_inset space \space{}
13221 the style is always used.
13224 \begin_layout Description
13225 \begin_inset Flex Code
13228 \begin_layout Plain Layout
13235 \begin_inset Flex Code
13238 \begin_layout Plain Layout
13247 \begin_inset space \thinspace{}
13251 \begin_inset Flex Code
13254 \begin_layout Plain Layout
13260 ] Usually \SpecialChar LyX
13261 does not allow you to insert more than one space between words,
13262 since a space is considered as the separation between two words, not a
13263 character or symbol of its own.
13264 This is a very fine thing but sometimes annoying, for example, when typing
13265 program code or plain \SpecialChar LaTeX
13268 \begin_inset Flex Code
13271 \begin_layout Plain Layout
13279 \change_deleted -495245474 1550490105
13283 will create protected blanks for the additional blanks when in
13284 \change_inserted -495245474 1550490096
13286 \begin_inset Flex Code
13289 \begin_layout Plain Layout
13291 \change_inserted -495245474 1550490089
13298 \change_deleted -495245474 1550490116
13299 another mode than \SpecialChar LaTeX
13302 \change_inserted -495245474 1550247760
13304 \begin_inset Flex Code
13307 \begin_layout Plain Layout
13309 \change_inserted -495245474 1550247736
13316 \begin_inset Flex Code
13319 \begin_layout Plain Layout
13321 \change_inserted -495245474 1550247755
13332 \begin_layout Description
13333 \begin_inset Flex Code
13336 \begin_layout Plain Layout
13342 These tags are used with XHTML output.
13344 \begin_inset CommandInset ref
13346 reference "subsec:Paragraph-Style-XHTML"
13353 \begin_layout Description
13354 \begin_inset Flex Code
13357 \begin_layout Plain Layout
13363 [FIXME] (Used only with XML-type formats.)
13366 \begin_layout Description
13367 \begin_inset Flex Code
13370 \begin_layout Plain Layout
13377 \begin_inset Flex Code
13380 \begin_layout Plain Layout
13389 \begin_inset space \thinspace{}
13393 \begin_inset Flex Code
13396 \begin_layout Plain Layout
13403 \begin_inset Flex Code
13406 \begin_layout Plain Layout
13412 , marks the style as to be included in the document preamble and not in
13414 This is useful for document classes that want such information as the title
13415 and author to appear in the preamble.
13416 Note that this works only for styles for which the
13417 \begin_inset Flex Code
13420 \begin_layout Plain Layout
13427 \begin_inset Flex Code
13430 \begin_layout Plain Layout
13437 \begin_inset Flex Code
13440 \begin_layout Plain Layout
13449 \begin_layout Description
13450 \begin_inset Flex Code
13453 \begin_layout Plain Layout
13460 \begin_inset Flex Code
13463 \begin_layout Plain Layout
13472 \begin_inset space \thinspace{}
13476 \begin_inset Flex Code
13479 \begin_layout Plain Layout
13486 \begin_inset Flex Code
13489 \begin_layout Plain Layout
13495 , marks the style as being part of a title block (see also the
13496 \begin_inset Flex Code
13499 \begin_layout Plain Layout
13506 \begin_inset Flex Code
13509 \begin_layout Plain Layout
13518 \begin_layout Description
13519 \begin_inset Flex Code
13522 \begin_layout Plain Layout
13528 Includes a comma-separated list of layouts after which this one should
13530 Only makes sense with regard to nestable layouts (such as environments).
13532 \begin_inset Quotes eld
13536 \begin_inset Flex Code
13539 \begin_layout Plain Layout
13546 \begin_inset Quotes erd
13551 \begin_inset Flex Code
13554 \begin_layout Plain Layout
13563 \begin_layout Description
13564 \begin_inset Flex Code
13567 \begin_layout Plain Layout
13574 \begin_inset Flex Code
13577 \begin_layout Plain Layout
13586 \begin_inset space \thinspace{}
13590 \begin_inset Flex Code
13593 \begin_layout Plain Layout
13599 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13600 of its contents in its item in the table of contents.
13601 Otherwise, only the label, if it exists, appears.
13604 \begin_layout Description
13605 \begin_inset Flex Code
13608 \begin_layout Plain Layout
13615 \begin_inset Flex Code
13618 \begin_layout Plain Layout
13624 ] The \SpecialChar LaTeX
13625 command sequence declaring an item in a list.
13626 The command is to be defined without the preceding backslash (the default
13628 \begin_inset Quotes eld
13632 \begin_inset Quotes erd
13636 \begin_inset Flex Code
13639 \begin_layout Plain Layout
13647 in the \SpecialChar LaTeX
13651 \begin_layout Description
13652 \begin_inset Flex Code
13655 \begin_layout Plain Layout
13662 \begin_inset Flex Code
13665 \begin_layout Plain Layout
13671 ] This provides extra space between paragraphs that have the same style.
13672 If you put other styles into an environment, each is separated with the
13674 \begin_inset Flex Code
13677 \begin_layout Plain Layout
13684 But the whole items of the environment are additionally separated with
13686 \begin_inset Flex Code
13689 \begin_layout Plain Layout
13696 Note that this is a
13701 \begin_layout Description
13702 \begin_inset Flex Code
13705 \begin_layout Plain Layout
13711 [FIXME] (Used only with XML-type formats.)
13714 \begin_layout Description
13715 \begin_inset Flex Code
13718 \begin_layout Plain Layout
13725 \begin_inset Flex Code
13728 \begin_layout Plain Layout
13737 \begin_inset space \thinspace{}
13741 \begin_inset Flex Code
13744 \begin_layout Plain Layout
13750 ] Usually \SpecialChar LyX
13751 does not allow you to leave a paragraph empty, since it would
13752 lead to empty \SpecialChar LaTeX
13754 There are some cases where this could be desirable however: in a letter
13755 template, the required fields can be provided as empty fields, so that
13756 people do not forget them; in some special classes, a style can be used
13757 as some kind of break, which does not contain actual text.
13760 \begin_layout Description
13761 \begin_inset Flex Code
13764 \begin_layout Plain Layout
13771 \begin_inset Flex Code
13774 \begin_layout Plain Layout
13780 ] The vertical space between the label and the text body.
13781 Only used for labels that are above the text body (
13782 \begin_inset Flex Code
13785 \begin_layout Plain Layout
13792 \begin_inset Newline newline
13796 \begin_inset Flex Code
13799 \begin_layout Plain Layout
13800 Centered_Top_Environment
13808 \begin_layout Description
13809 \begin_inset Flex Code
13812 \begin_layout Plain Layout
13819 \begin_inset Flex Code
13822 \begin_layout Plain Layout
13828 ] The name of the counter for automatic numbering.
13829 In order to have the counter appear with your label, you will need to reference
13831 \begin_inset Flex Code
13834 \begin_layout Plain Layout
13843 This will work with
13844 \begin_inset Flex Code
13847 \begin_layout Plain Layout
13854 \begin_inset Flex Code
13857 \begin_layout Plain Layout
13864 \begin_inset Flex Code
13867 \begin_layout Plain Layout
13874 \begin_inset Flex Code
13877 \begin_layout Plain Layout
13884 \begin_inset Newline newline
13892 \begin_inset Flex Code
13895 \begin_layout Plain Layout
13902 \begin_inset Flex Code
13905 \begin_layout Plain Layout
13911 , though this case is a bit complicated.
13912 Suppose you declare
13913 \begin_inset Quotes eld
13917 \begin_inset Flex Code
13920 \begin_layout Plain Layout
13921 LabelCounter myenum
13927 \begin_inset Quotes erd
13931 Then the actual counters used are
13932 \begin_inset Flex Code
13935 \begin_layout Plain Layout
13942 \begin_inset Flex Code
13945 \begin_layout Plain Layout
13952 \begin_inset Flex Code
13955 \begin_layout Plain Layout
13962 \begin_inset Flex Code
13965 \begin_layout Plain Layout
13971 , much as in \SpecialChar LaTeX
13973 These counters must all be declared separately.
13974 \begin_inset Newline newline
13978 \begin_inset CommandInset ref
13980 reference "subsec:Counters"
13984 for details on counters.
13987 \begin_layout Description
13988 \begin_inset Flex Code
13991 \begin_layout Plain Layout
13997 The font used for the label.
13999 \begin_inset CommandInset ref
14001 reference "subsec:Font-description"
14008 \begin_layout Description
14009 \begin_inset Flex Code
14012 \begin_layout Plain Layout
14019 \begin_inset Flex Code
14022 \begin_layout Plain Layout
14028 ] Text that indicates how far a label should be indented.
14031 \begin_layout Description
14032 \begin_inset Flex Code
14035 \begin_layout Plain Layout
14042 \begin_inset Flex Code
14045 \begin_layout Plain Layout
14051 ] Text that indicates the amount of horizontal space between the label and
14053 Only used for labels that are not above the text body.
14056 \begin_layout Description
14057 \begin_inset Flex Code
14060 \begin_layout Plain Layout
14067 \begin_inset Flex Code
14070 \begin_layout Plain Layout
14076 ] The string used for the label.
14078 \begin_inset Flex Code
14081 \begin_layout Plain Layout
14087 is set, this string can be contain the special formatting commands described
14089 \begin_inset CommandInset ref
14091 reference "subsec:Counters"
14098 \begin_layout Description
14099 \begin_inset Flex Code
14102 \begin_layout Plain Layout
14103 LabelStringAppendix
14109 \begin_inset Flex Code
14112 \begin_layout Plain Layout
14118 ] This is used inside the appendix instead of
14119 \begin_inset Newline newline
14123 \begin_inset Flex Code
14126 \begin_layout Plain Layout
14134 \begin_inset Flex Code
14137 \begin_layout Plain Layout
14144 \begin_inset Newline newline
14148 \begin_inset Flex Code
14151 \begin_layout Plain Layout
14152 LabelStringAppendix
14160 \begin_layout Description
14161 \begin_inset Flex Code
14164 \begin_layout Plain Layout
14170 [FIXME] (Used only with XML-type formats.)
14173 \begin_layout Description
14174 \begin_inset Flex Code
14177 \begin_layout Plain Layout
14184 \begin_inset Flex Code
14187 \begin_layout Plain Layout
14192 , Manual, Static, Above,
14193 \begin_inset Newline newline
14196 Centered, Sensitive, Enumerate,
14197 \begin_inset Newline newline
14200 Itemize, Bibliography
14209 \begin_layout Description
14210 \begin_inset Flex Code
14213 \begin_layout Plain Layout
14219 means the label is the very first word (up to the first real blank).
14220 Use protected spaces if you want more than one word as the label.
14224 \begin_layout Description
14225 \begin_inset Flex Code
14228 \begin_layout Plain Layout
14234 means the label is simply what is declared as
14235 \begin_inset Flex Code
14238 \begin_layout Plain Layout
14245 This will be displayed
14246 \begin_inset Quotes eld
14250 \begin_inset Quotes erd
14253 , at the beginning of the paragraph.
14255 \begin_inset Flex Code
14258 \begin_layout Plain Layout
14265 \begin_inset Flex Code
14268 \begin_layout Plain Layout
14274 , then it will be displayed only in the first paragraph of any sequence
14275 of paragraphs with the same
14276 \begin_inset Flex Code
14279 \begin_layout Plain Layout
14288 \begin_layout Description
14289 \begin_inset Flex Code
14292 \begin_layout Plain Layout
14299 \begin_inset space ~
14303 \begin_inset space ~
14307 \begin_inset Flex Code
14310 \begin_layout Plain Layout
14316 are special cases of
14317 \begin_inset Flex Code
14320 \begin_layout Plain Layout
14327 The label will be printed above the paragraph either at the beginning of
14328 the line or centered.
14331 \begin_layout Description
14332 \begin_inset Flex Code
14335 \begin_layout Plain Layout
14341 is a special case for the caption-labels
14342 \begin_inset Quotes eld
14346 \begin_inset Quotes erd
14350 \begin_inset Quotes eld
14354 \begin_inset Quotes erd
14358 \begin_inset Newline newline
14362 \begin_inset Flex Code
14365 \begin_layout Plain Layout
14371 means the (hardcoded) label string depends on the kind of float: It is
14372 hardcoded to be `FloatType N', where N is the value of the counter associated
14374 For the case that a caption is inserted outside of a float the
14375 \begin_inset Flex Code
14378 \begin_layout Plain Layout
14385 \begin_inset Quotes eld
14389 \begin_inset Quotes erd
14395 \begin_layout Description
14396 \begin_inset Flex Code
14399 \begin_layout Plain Layout
14405 produces the usual sort of enumeration labels.
14406 The number type needs to be set in the
14411 \begin_inset CommandInset ref
14413 reference "subsec:Counters"
14420 \begin_layout Description
14421 \begin_inset Flex Code
14424 \begin_layout Plain Layout
14430 produces various bullets at the different levels.
14431 The bullet types displayed can be set via
14432 \begin_inset Flex Noun
14435 \begin_layout Plain Layout
14436 Document\SpecialChar menuseparator
14437 Settings\SpecialChar menuseparator
14446 \begin_layout Description
14447 \begin_inset Flex Code
14450 \begin_layout Plain Layout
14456 should be used only with
14457 \begin_inset Flex Code
14460 \begin_layout Plain Layout
14461 LatexType BibEnvironment
14470 \begin_layout Description
14471 \begin_inset Flex Code
14474 \begin_layout Plain Layout
14480 Note that this will completely override any prior
14481 \begin_inset Flex Code
14484 \begin_layout Plain Layout
14490 declaration for this style.
14492 \begin_inset Quotes eld
14496 \begin_inset Flex Code
14499 \begin_layout Plain Layout
14506 \begin_inset Quotes erd
14511 \begin_inset CommandInset ref
14513 reference "subsec:I18n"
14517 for details on its use.
14520 \begin_layout Description
14521 \begin_inset Flex Code
14524 \begin_layout Plain Layout
14531 \begin_inset Flex Code
14534 \begin_layout Plain Layout
14540 ] The name of the corresponding \SpecialChar LaTeX
14542 Either the environment or command name.
14545 \begin_layout Description
14546 \begin_inset Flex Code
14549 \begin_layout Plain Layout
14556 \begin_inset Flex Code
14559 \begin_layout Plain Layout
14565 ] An optional parameter for the corresponding
14566 \begin_inset Flex Code
14569 \begin_layout Plain Layout
14576 This parameter cannot be changed from within \SpecialChar LyX
14578 \begin_inset Flex Code
14581 \begin_layout Plain Layout
14587 for customizable parameters).
14588 This will be output as is after all \SpecialChar LaTeX
14590 \begin_inset Flex Code
14593 \begin_layout Plain Layout
14602 \begin_layout Description
14603 \begin_inset Flex Code
14606 \begin_layout Plain Layout
14613 \begin_inset Flex Code
14616 \begin_layout Plain Layout
14621 , Command, Environment, Item_Environment,
14622 \begin_inset Newline newline
14625 List_Environment, Bib_Environment
14630 ] How the style should be translated into \SpecialChar LaTeX
14635 \begin_layout Plain Layout
14636 \begin_inset Flex Code
14639 \begin_layout Plain Layout
14645 is perhaps a bit misleading, since these rules apply to SGML classes, too.
14646 Visit the SGML class files for specific examples.
14655 \begin_layout Description
14656 \begin_inset Flex Code
14659 \begin_layout Plain Layout
14665 means nothing special.
14668 \begin_layout Description
14669 \begin_inset Flex Code
14672 \begin_layout Plain Layout
14679 \begin_inset Flex Code
14682 \begin_layout Plain Layout
14689 {\SpecialChar ldots
14698 \begin_layout Description
14699 \begin_inset Flex Code
14702 \begin_layout Plain Layout
14709 \begin_inset Flex Code
14712 \begin_layout Plain Layout
14719 }\SpecialChar ldots
14735 \begin_layout Description
14736 \begin_inset Flex Code
14739 \begin_layout Plain Layout
14746 \begin_inset Flex Code
14749 \begin_layout Plain Layout
14756 \begin_inset Flex Code
14759 \begin_layout Plain Layout
14767 is generated for each paragraph of this environment.
14771 \begin_layout Description
14772 \begin_inset Flex Code
14775 \begin_layout Plain Layout
14782 \begin_inset Flex Code
14785 \begin_layout Plain Layout
14792 \begin_inset Newline newline
14796 \begin_inset Flex Code
14799 \begin_layout Plain Layout
14805 is passed as an argument to the environment.
14806 \begin_inset Newline newline
14810 \begin_inset Flex Code
14813 \begin_layout Plain Layout
14819 can be defined in the
14820 \begin_inset Flex Noun
14823 \begin_layout Plain Layout
14824 Edit\SpecialChar menuseparator
14826 \begin_inset space ~
14837 \begin_layout Description
14838 \begin_inset Flex Code
14841 \begin_layout Plain Layout
14848 \begin_inset Flex Code
14851 \begin_layout Plain Layout
14857 but adds the necessary mandatory argument (the longest label) to the begin
14858 statement of the bibliography environment:
14859 \begin_inset Newline newline
14863 \begin_inset Flex Code
14866 \begin_layout Plain Layout
14869 begin{thebibliography}{99}
14875 It is therefore only useful for bibliography environments.
14876 The default longest label
14877 \begin_inset Quotes eld
14881 \begin_inset Quotes erd
14884 can be changed by the user in the paragraph settings of a bibliography
14888 \begin_layout Standard
14889 Putting the last few things together, the \SpecialChar LaTeX
14890 output will be either:
14893 \begin_layout LyX-Code
14896 LatexName[LatexParam]{\SpecialChar ldots
14900 \begin_layout Standard
14904 \begin_layout LyX-Code
14907 begin{LatexName}[LatexParam] \SpecialChar ldots
14913 \begin_layout Standard
14914 depending upon the \SpecialChar LaTeX
14919 \begin_layout Description
14920 \begin_inset Flex Code
14923 \begin_layout Plain Layout
14930 \begin_inset Flex Code
14933 \begin_layout Plain Layout
14939 ] A string that is put at the beginning of the style content.
14940 A line break in the output can be indicated by
14941 \begin_inset Flex Code
14944 \begin_layout Plain Layout
14953 \begin_layout Description
14954 \begin_inset Flex Code
14957 \begin_layout Plain Layout
14964 \begin_inset Flex Code
14967 \begin_layout Plain Layout
14973 ] If you put styles into environments, the different
14974 \begin_inset Flex Code
14977 \begin_layout Plain Layout
14983 are not simply added, but added with a factor
14984 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14988 Note that this parameter is also used when
14989 \begin_inset Flex Code
14992 \begin_layout Plain Layout
14999 \begin_inset Flex Code
15002 \begin_layout Plain Layout
15009 \begin_inset Flex Code
15012 \begin_layout Plain Layout
15019 Then it is added to the manual or dynamic margin.
15020 \begin_inset Newline newline
15024 \begin_inset Quotes eld
15028 \begin_inset Flex Code
15031 \begin_layout Plain Layout
15038 \begin_inset Quotes erd
15041 means that the paragraph is indented with the width of
15042 \begin_inset Quotes eld
15046 \begin_inset Flex Code
15049 \begin_layout Plain Layout
15056 \begin_inset Quotes erd
15059 in the normal font.
15060 You can get a negative width by prefixing the string with
15061 \begin_inset Quotes eld
15065 \begin_inset Flex Code
15068 \begin_layout Plain Layout
15075 \begin_inset Quotes erd
15079 This way was chosen so that the look is the same with each used screen
15083 \begin_layout Description
15084 \begin_inset Flex Code
15087 \begin_layout Plain Layout
15094 \begin_inset Flex Code
15097 \begin_layout Plain Layout
15102 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15108 \begin_inset Newline newline
15111 The kind of margin that the style has on the left side.
15115 \begin_layout Description
15116 \begin_inset Flex Code
15119 \begin_layout Plain Layout
15125 just means a fixed margin.
15128 \begin_layout Description
15129 \begin_inset Flex Code
15132 \begin_layout Plain Layout
15138 means that the left margin depends on the string entered in the
15139 \begin_inset Flex Noun
15142 \begin_layout Plain Layout
15143 Edit\SpecialChar menuseparator
15145 \begin_inset space ~
15154 This is used to typeset nice lists without tabulators.
15157 \begin_layout Description
15158 \begin_inset Flex Code
15161 \begin_layout Plain Layout
15167 means that the margin depends on the size of the label.
15168 This is used for automatic enumerated headlines.
15169 It is obvious that the headline
15170 \begin_inset Quotes eld
15173 5.4.3.2.1 Very long headline
15174 \begin_inset Quotes erd
15177 must have a wider left margin (as wide as
15178 \begin_inset Quotes eld
15182 \begin_inset Quotes erd
15185 plus the space) than
15186 \begin_inset Quotes eld
15189 3.2 Very long headline
15190 \begin_inset Quotes erd
15194 \begin_inset Quotes eld
15198 \begin_inset Quotes erd
15201 are not able to do this.
15204 \begin_layout Description
15205 \begin_inset Flex Code
15208 \begin_layout Plain Layout
15214 is similar, but only the very first row of the paragraph is dynamic, while
15215 the others are static; this is used, for example, for descriptions.
15218 \begin_layout Description
15219 \begin_inset Flex Code
15222 \begin_layout Plain Layout
15228 means the margin is chosen in a way that the longest row of this paragraph
15229 fits to the right margin.
15230 This is used to typeset an address on the right edge of the page.
15234 \begin_layout Description
15235 \begin_inset Flex Code
15238 \begin_layout Plain Layout
15245 \begin_inset Flex Code
15248 \begin_layout Plain Layout
15257 \begin_inset space \thinspace{}
15261 \begin_inset Flex Code
15264 \begin_layout Plain Layout
15270 ] Whether fragile commands in this style should be
15271 \begin_inset Flex Code
15274 \begin_layout Plain Layout
15287 whether this command should itself be protected.)
15288 \change_inserted -712698321 1523696949
15292 \begin_layout Description
15294 \change_inserted -712698321 1552395557
15295 \begin_inset Flex Code
15298 \begin_layout Plain Layout
15300 \change_inserted -712698321 1523696950
15307 \begin_inset Flex Code
15310 \begin_layout Plain Layout
15312 \change_inserted -712698321 1523696950
15321 \begin_inset space \thinspace{}
15325 \begin_inset Flex Code
15328 \begin_layout Plain Layout
15330 \change_inserted -712698321 1523696950
15336 ] This causes macros that contain this layout to be protected with
15337 \begin_inset Flex Code
15340 \begin_layout Plain Layout
15342 \change_inserted -712698321 1523696950
15355 ) if necessary and thus allows (some) verbatim stuff in macros.
15358 \begin_layout Description
15360 \change_inserted -712698321 1552395844
15361 \begin_inset Flex Code
15364 \begin_layout Plain Layout
15366 \change_inserted -712698321 1552395561
15373 \begin_inset Flex Code
15376 \begin_layout Plain Layout
15378 \change_inserted -712698321 1552395557
15387 \begin_inset space \thinspace{}
15391 \begin_inset Flex Code
15394 \begin_layout Plain Layout
15396 \change_inserted -712698321 1552395557
15402 ] Whether specific commands in this style (such as
15403 \begin_inset Flex Code
15406 \begin_layout Plain Layout
15408 \change_inserted -712698321 1552395655
15419 \begin_inset Flex Code
15422 \begin_layout Plain Layout
15424 \change_inserted -712698321 1552395661
15434 ) should be protected in an
15435 \begin_inset Flex Code
15438 \begin_layout Plain Layout
15440 \change_inserted -712698321 1552395631
15451 This is particularly needed for styles that draw on
15459 commands which parse their content in complex ways.
15464 \begin_layout Description
15465 \begin_inset Flex Code
15468 \begin_layout Plain Layout
15475 \begin_inset Flex Code
15478 \begin_layout Plain Layout
15485 \begin_inset space \thinspace{}
15489 \begin_inset Flex Code
15492 \begin_layout Plain Layout
15500 ] Whether newlines are translated into \SpecialChar LaTeX
15502 \begin_inset Flex Code
15505 \begin_layout Plain Layout
15516 The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15518 inside \SpecialChar LyX
15522 \begin_layout Description
15523 \begin_inset Flex Code
15526 \begin_layout Plain Layout
15533 \begin_inset Flex Code
15536 \begin_layout Plain Layout
15545 \begin_inset space \thinspace{}
15549 \begin_inset Flex Code
15552 \begin_layout Plain Layout
15558 ] If set to true, and if
15559 \begin_inset Flex Code
15562 \begin_layout Plain Layout
15569 \begin_inset Flex Code
15572 \begin_layout Plain Layout
15578 ) paragraphs are being indented, then the indentation of such a paragraph
15579 following one of this type will be suppressed.
15580 (So this will not affect the display of non-default paragraphs.)
15583 \begin_layout Description
15584 \begin_inset Flex Code
15587 \begin_layout Plain Layout
15594 \begin_inset Flex Code
15597 \begin_layout Plain Layout
15603 ] Name of a style that has replaced this style.
15604 This is used to rename a style, while keeping backward compatibility.
15607 \begin_layout Description
15608 \begin_inset Flex Code
15611 \begin_layout Plain Layout
15618 \begin_inset Flex Code
15621 \begin_layout Plain Layout
15628 \begin_inset space \thinspace{}
15632 \begin_inset Flex Code
15635 \begin_layout Plain Layout
15641 ] Determines whether consecutive paragraphs of the same type are treated
15642 as belonging together.
15643 This has the effect that the
15644 \begin_inset Flex Code
15647 \begin_layout Plain Layout
15653 is only printed once before such a group.
15654 By default, this is true for
15655 \begin_inset Flex Code
15658 \begin_layout Plain Layout
15665 \begin_inset Flex Code
15668 \begin_layout Plain Layout
15675 \begin_inset Flex Code
15678 \begin_layout Plain Layout
15684 and false for all other types.
15687 \begin_layout Description
15688 \begin_inset Flex Code
15691 \begin_layout Plain Layout
15698 \begin_inset Flex Code
15701 \begin_layout Plain Layout
15710 \begin_inset space \thinspace{}
15714 \begin_inset Flex Code
15717 \begin_layout Plain Layout
15723 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15725 but only by a line break; together with
15726 \begin_inset Flex Code
15729 \begin_layout Plain Layout
15735 , this allows to emulate a plain text editor (like the ERT inset).
15738 \begin_layout Description
15739 \begin_inset Flex Code
15742 \begin_layout Plain Layout
15749 \begin_inset Flex Code
15752 \begin_layout Plain Layout
15758 ] The indent of the very first line of a paragraph.
15760 \begin_inset Newline newline
15764 \begin_inset Flex Code
15767 \begin_layout Plain Layout
15773 will be fixed for a certain style.
15774 The exception is the default style, since the indentation for these paragraphs
15775 can be prohibited with
15776 \begin_inset Flex Code
15779 \begin_layout Plain Layout
15787 \begin_inset Flex Code
15790 \begin_layout Plain Layout
15796 style paragraphs inside environments use the
15797 \begin_inset Flex Code
15800 \begin_layout Plain Layout
15806 of the environment, not their native one.
15808 \begin_inset Flex Code
15811 \begin_layout Plain Layout
15817 paragraphs inside an enumeration are not indented.
15820 \begin_layout Description
15821 \begin_inset Flex Code
15824 \begin_layout Plain Layout
15831 \begin_inset Flex Code
15834 \begin_layout Plain Layout
15840 ] The vertical space between two paragraphs of this style.
15843 \begin_layout Description
15844 \begin_inset Flex Code
15847 \begin_layout Plain Layout
15854 \begin_inset Flex Code
15857 \begin_layout Plain Layout
15864 allows the user to choose either
15865 \begin_inset Quotes eld
15869 \begin_inset Quotes erd
15873 \begin_inset Quotes eld
15877 \begin_inset Quotes erd
15880 to separate paragraphs.
15882 \begin_inset Quotes eld
15886 \begin_inset Quotes erd
15890 \begin_inset Flex Code
15893 \begin_layout Plain Layout
15901 \begin_inset Quotes eld
15905 \begin_inset Quotes erd
15909 \begin_inset Flex Code
15912 \begin_layout Plain Layout
15918 is ignored and all paragraphs are separated by the
15919 \begin_inset Flex Code
15922 \begin_layout Plain Layout
15929 The vertical space is calculated with
15930 \begin_inset Flex Code
15933 \begin_layout Plain Layout
15935 \begin_inset space ~
15944 \begin_inset Flex Code
15947 \begin_layout Plain Layout
15953 is the height of a row with the normal font.
15954 This way, the look stays the same with different screen fonts.
15957 \begin_layout Description
15958 \begin_inset Flex Code
15961 \begin_layout Plain Layout
15968 \begin_inset Flex Code
15971 \begin_layout Plain Layout
15980 \begin_inset space \thinspace{}
15984 \begin_inset Flex Code
15987 \begin_layout Plain Layout
15993 ] Whether the contents of this paragraph should be output in raw form, meaning
15994 without special translations that \SpecialChar LaTeX
15998 \begin_layout Description
15999 \begin_inset Flex Code
16002 \begin_layout Plain Layout
16009 \begin_inset Flex Code
16012 \begin_layout Plain Layout
16022 Defines individual characters that should be output in raw form, meaning
16023 without special translations that \SpecialChar LaTeX
16027 \begin_layout Description
16028 \begin_inset Flex Code
16031 \begin_layout Plain Layout
16037 Information to be included in the \SpecialChar LaTeX
16038 preamble when this style is used.
16039 Used to define macros, load packages, etc., required by this particular
16042 \begin_inset Quotes eld
16046 \begin_inset Flex Code
16049 \begin_layout Plain Layout
16056 \begin_inset Quotes erd
16062 \begin_layout Description
16063 \begin_inset Flex Code
16066 \begin_layout Plain Layout
16073 \begin_inset Flex Code
16076 \begin_layout Plain Layout
16082 ] The prefix to use when creating labels referring to paragraphs of this
16084 This allows the use of formatted references.
16087 \begin_layout Description
16088 \begin_inset Flex Code
16091 \begin_layout Plain Layout
16098 \begin_inset Flex Code
16101 \begin_layout Plain Layout
16107 ] Whether the style requires the feature
16108 \begin_inset Flex Code
16111 \begin_layout Plain Layout
16118 \begin_inset CommandInset ref
16120 reference "chap:List-of-functions"
16124 for the list of features).
16125 If you require a package with specific options, you can additionally use
16127 \begin_inset Flex Code
16130 \begin_layout Plain Layout
16136 as a general text class parameter (see
16137 \begin_inset CommandInset ref
16139 reference "subsec:General-text-class"
16146 \begin_layout Description
16147 \begin_inset Flex Code
16150 \begin_layout Plain Layout
16157 \begin_inset Flex Code
16160 \begin_layout Plain Layout
16169 \begin_inset Flex Code
16172 \begin_layout Plain Layout
16178 ] Resets the \SpecialChar LaTeX
16179 arguments of this style (as defined via the
16180 \begin_inset Flex Code
16183 \begin_layout Plain Layout
16190 This is useful if you have copied a style via
16191 \begin_inset Flex Code
16194 \begin_layout Plain Layout
16200 , but you do not want to inherit its (required and optional) arguments.
16203 \begin_layout Description
16204 \begin_inset Flex Code
16207 \begin_layout Plain Layout
16214 \begin_inset Flex Code
16217 \begin_layout Plain Layout
16226 \begin_inset Flex Code
16229 \begin_layout Plain Layout
16235 ] Resumes a counter that is usually reset at each new sequence of layouts.
16236 This is currently only useful when
16237 \begin_inset Flex Code
16240 \begin_layout Plain Layout
16247 \begin_inset Flex Code
16250 \begin_layout Plain Layout
16259 \begin_layout Description
16260 \begin_inset Flex Code
16263 \begin_layout Plain Layout
16270 \begin_inset Flex Code
16273 \begin_layout Plain Layout
16279 ] A string that is put at the end of the layout content.
16280 A line break in the output can be indicated by
16281 \begin_inset Flex Code
16284 \begin_layout Plain Layout
16293 \begin_layout Description
16294 \begin_inset Flex Code
16297 \begin_layout Plain Layout
16304 \begin_inset Flex Code
16307 \begin_layout Plain Layout
16314 \begin_inset Flex Code
16317 \begin_layout Plain Layout
16326 \begin_layout Description
16327 \begin_inset Flex Code
16330 \begin_layout Plain Layout
16337 \begin_inset Flex Code
16340 \begin_layout Plain Layout
16349 \begin_inset Flex Code
16352 \begin_layout Plain Layout
16359 \begin_inset Flex Code
16362 \begin_layout Plain Layout
16369 \begin_inset Flex Code
16372 \begin_layout Plain Layout
16374 \begin_inset space ~
16382 ] This defines what the default spacing should be in the style.
16384 \begin_inset Flex Code
16387 \begin_layout Plain Layout
16394 \begin_inset Flex Code
16397 \begin_layout Plain Layout
16404 \begin_inset Flex Code
16407 \begin_layout Plain Layout
16413 correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16414 If you specify the argument
16415 \begin_inset Flex Code
16418 \begin_layout Plain Layout
16424 , then you must also provide a value argument which will be the actual multiplie
16426 Note that, contrary to other parameters,
16427 \begin_inset Flex Code
16430 \begin_layout Plain Layout
16436 implies the generation of specific \SpecialChar LaTeX
16437 code, using the \SpecialChar LaTeX
16441 \begin_inset Flex Code
16444 \begin_layout Plain Layout
16453 \begin_layout Description
16454 \begin_inset Flex Code
16457 \begin_layout Plain Layout
16464 \begin_inset Flex Code
16467 \begin_layout Plain Layout
16474 \begin_inset space \thinspace{}
16478 \begin_inset Flex Code
16481 \begin_layout Plain Layout
16489 ] Allow spell-checking paragraphs of this style.
16493 \begin_layout Description
16494 \begin_inset Flex Code
16497 \begin_layout Plain Layout
16504 \begin_inset Flex Code
16507 \begin_layout Plain Layout
16516 \begin_inset Flex Code
16519 \begin_layout Plain Layout
16525 ] Steps the master counter of a given counter at the beginning of a new
16526 sequence of layouts.
16527 This is currently only useful when
16528 \begin_inset Flex Code
16531 \begin_layout Plain Layout
16538 \begin_inset Flex Code
16541 \begin_layout Plain Layout
16550 \begin_layout Description
16551 \begin_inset Flex Code
16554 \begin_layout Plain Layout
16560 The font used for the text body .
16562 \begin_inset CommandInset ref
16564 reference "subsec:Font-description"
16571 \begin_layout Description
16572 \begin_inset Flex Code
16575 \begin_layout Plain Layout
16584 \begin_inset Flex Code
16587 \begin_layout Plain Layout
16597 The level of the style in the table of contents.
16598 This is used for automatic numbering of section headings.
16601 \begin_layout Description
16602 \begin_inset Flex Code
16605 \begin_layout Plain Layout
16614 \begin_inset Flex Code
16617 \begin_layout Plain Layout
16628 \begin_inset Flex Code
16631 \begin_layout Plain Layout
16638 \begin_inset Flex Code
16641 \begin_layout Plain Layout
16647 ] This tag determines whether the first line indentation of this paragraph
16648 can be toggled via the Paragraph settings dialog.
16652 \begin_inset Flex Code
16655 \begin_layout Plain Layout
16665 is set, indentation can be toggled if the document settings use
16666 \begin_inset Quotes eld
16670 \begin_inset Quotes erd
16673 paragraph style, with
16674 \begin_inset Flex Code
16677 \begin_layout Plain Layout
16683 , indentation can always be toggled, notwithstanding the document settings,
16685 \begin_inset Flex Code
16688 \begin_layout Plain Layout
16694 , indentation can never be toggled.
16697 \begin_layout Description
16698 \begin_inset Flex Code
16701 \begin_layout Plain Layout
16708 \begin_inset Flex Code
16711 \begin_layout Plain Layout
16717 ] The vertical space with which the very first of a chain of paragraphs
16718 with this style is separated from the previous paragraph.
16719 If the previous paragraph has another style, the separations are not simply
16720 added, but the maximum is taken.
16723 \begin_layout Subsection
16724 \begin_inset CommandInset label
16730 Internationalization of Paragraph Styles
16733 \begin_layout Standard
16735 has long supported internationalization of layout information, but, until
16736 version 2.0, this applied only to the user interface and not to, say, PDF
16738 Thus, French authors were forced to resort to ugly hacks if they wanted
16743 1' instead of `Theorem 1'.
16744 Thanks to Georg Baum, that is no longer the case.
16747 \begin_layout Standard
16749 \begin_inset Flex Code
16752 \begin_layout Plain Layout
16758 defines text that is to appear in the typeset document, it may use
16759 \begin_inset Flex Code
16762 \begin_layout Plain Layout
16769 \begin_inset Flex Code
16772 \begin_layout Plain Layout
16778 to support non-English and even multi-language documents correctly.
16779 The following excerpt (from the
16780 \begin_inset Flex Code
16783 \begin_layout Plain Layout
16789 file) shows how this works:
16792 \begin_layout LyX-Code
16797 \begin_layout LyX-Code
16800 theoremstyle{remark}
16803 \begin_layout LyX-Code
16806 newtheorem{claim}[thm]{
16813 \begin_layout LyX-Code
16817 \begin_layout LyX-Code
16821 \begin_layout LyX-Code
16826 claimname}{_(Claim)}
16829 \begin_layout LyX-Code
16833 \begin_layout LyX-Code
16837 \begin_layout LyX-Code
16846 claimname}{_(Claim)}}
16849 \begin_layout LyX-Code
16854 \begin_layout Standard
16855 In principle, any legal \SpecialChar LaTeX
16857 \begin_inset Flex Code
16860 \begin_layout Plain Layout
16867 \begin_inset Flex Code
16870 \begin_layout Plain Layout
16876 tags, but in practice they will typically look as they do here.
16877 The key to correct translation of the typeset text is the definition of
16878 the \SpecialChar LaTeX
16880 \begin_inset Flex Code
16883 \begin_layout Plain Layout
16892 \begin_inset Flex Code
16895 \begin_layout Plain Layout
16907 \begin_layout Standard
16909 \begin_inset Flex Code
16912 \begin_layout Plain Layout
16918 tag provides for internationalization based upon the overall language of
16920 The contents of the tag will be included in the preamble, just as with
16922 \begin_inset Flex Code
16925 \begin_layout Plain Layout
16932 What makes it special is the use of the
16933 \begin_inset Quotes eld
16937 \begin_inset Quotes erd
16941 \begin_inset Flex Code
16944 \begin_layout Plain Layout
16950 , which will be replaced, when \SpecialChar LyX
16951 produces \SpecialChar LaTeX
16952 output, with the translation of
16953 its argument into the document language.
16956 \begin_layout Standard
16958 \begin_inset Flex Code
16961 \begin_layout Plain Layout
16967 tag is more complex, since it is meant to provide support for multi-language
16968 documents and so offers an interface to the
16969 \begin_inset Flex Code
16972 \begin_layout Plain Layout
16979 Its contents will be added to the preamble once for each language that
16980 appears in the document.
16981 In this case, the argument to
16982 \begin_inset Flex Code
16985 \begin_layout Plain Layout
16991 will be replaced with its translation into the language in question; the
16993 \begin_inset Flex Code
16996 \begin_layout Plain Layout
17002 is replaced by the language name (as used by the babel package).
17005 \begin_layout Standard
17006 A German document that also included a French section would thus have the
17007 following in the preamble:
17010 \begin_layout LyX-Code
17019 claimname}{Affirmation}}
17020 \begin_inset Newline newline
17031 claimname}{Behauptung}}
17032 \begin_inset Newline newline
17039 claimname}{Behauptung}
17042 \begin_layout Standard
17045 \begin_inset Flex Code
17048 \begin_layout Plain Layout
17054 will then conspire to produce the correct text in the output.
17057 \begin_layout Standard
17058 One important point to note here is that the translations are provided by
17060 itself, through the file
17061 \begin_inset Flex Code
17064 \begin_layout Plain Layout
17071 This means, in effect, that
17072 \begin_inset Flex Code
17075 \begin_layout Plain Layout
17082 \begin_inset Flex Code
17085 \begin_layout Plain Layout
17091 are really only of use in layout files that are provided with \SpecialChar LyX
17093 entered in user-created layout files will not be seen by \SpecialChar LyX
17094 's internationalizatio
17095 n routines unless the
17096 \begin_inset Flex Code
17099 \begin_layout Plain Layout
17105 file is modified accordingly.
17106 That said, however, any layout created with the intention that it will
17107 be included with \SpecialChar LyX
17108 should use these tags where appropriate.
17109 Please note that the paragraph style translations provided by \SpecialChar LyX
17111 change with a minor update (e.
17112 \begin_inset space \thinspace{}
17116 \begin_inset space \space{}
17119 from version 2.1.x to 2.1.y).
17120 It is however quite likely that a major update (e.
17121 \begin_inset space \thinspace{}
17125 \begin_inset space \space{}
17128 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17131 \begin_layout Subsection
17133 \begin_inset CommandInset label
17135 name "subsec:Floats"
17142 \begin_layout Standard
17143 It is necessary to define the floats (
17144 \begin_inset Flex Noun
17147 \begin_layout Plain Layout
17154 \begin_inset Flex Noun
17157 \begin_layout Plain Layout
17163 , \SpecialChar ldots
17164 ) in the text class itself.
17165 Standard floats are included in the file
17166 \begin_inset Flex Code
17169 \begin_layout Plain Layout
17175 , so you may have to do no more than add
17178 \begin_layout LyX-Code
17179 Input stdfloats.inc
17182 \begin_layout Standard
17183 to your layout file.
17184 If you want to implement a text class that proposes some other float types
17185 (like the AGU class bundled with \SpecialChar LyX
17186 ), the information below will hopefully
17190 \begin_layout Description
17191 \begin_inset Flex Code
17194 \begin_layout Plain Layout
17201 \begin_inset Flex Code
17204 \begin_layout Plain Layout
17210 =!htbpH] Allowed placement options for this float type.
17211 The value is a string of placement characters.
17212 Possible characters include:
17217 \begin_inset Quotes eld
17221 \begin_inset Quotes erd
17229 \begin_inset Quotes eld
17233 \begin_inset Quotes erd
17241 \begin_inset Quotes eld
17245 \begin_inset Quotes erd
17253 \begin_inset Quotes eld
17257 \begin_inset Quotes erd
17265 \begin_inset Quotes eld
17269 \begin_inset Quotes erd
17277 \begin_inset Quotes eld
17281 \begin_inset Quotes erd
17285 The order of the characters in the string does not matter.
17286 If no placement options are allowed, use the string
17293 \begin_layout Description
17294 \begin_inset Flex Code
17297 \begin_layout Plain Layout
17304 \begin_inset Flex Code
17307 \begin_layout Plain Layout
17316 \begin_inset space \thinspace{}
17322 \begin_inset Flex Code
17325 \begin_layout Plain Layout
17335 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17342 \begin_inset Flex Code
17345 \begin_layout Plain Layout
17351 if the float does not support this feature.
17354 \begin_layout Description
17355 \begin_inset Flex Code
17358 \begin_layout Plain Layout
17365 \begin_inset Flex Code
17368 \begin_layout Plain Layout
17377 \begin_inset space \thinspace{}
17383 \begin_inset Flex Code
17386 \begin_layout Plain Layout
17396 ] Defines whether the float has a starred variant that spans columns in
17397 a two column paragraph.
17399 \begin_inset Flex Code
17402 \begin_layout Plain Layout
17408 if the float does not support this feature.
17411 \begin_layout Description
17412 \begin_inset Flex Code
17415 \begin_layout Plain Layout
17422 \begin_inset Flex Code
17425 \begin_layout Plain Layout
17432 \begin_inset Quotes erd
17436 \begin_inset Quotes erd
17439 ] The file name extension of an auxiliary file for the list of figures (or
17442 writes the captions to this file.
17445 \begin_layout Description
17446 \begin_inset Flex Code
17449 \begin_layout Plain Layout
17456 \begin_inset Flex Code
17459 \begin_layout Plain Layout
17466 \begin_inset Quotes erd
17470 \begin_inset Quotes erd
17473 ] The string that will be used in the menus and also for the caption.
17474 This is translated to the current language if babel is used.
17477 \begin_layout Description
17478 \begin_inset Flex Code
17481 \begin_layout Plain Layout
17487 These tags control the XHTML output.
17489 \begin_inset CommandInset ref
17491 reference "sec:Tags-for-XHTML"
17498 \begin_layout Description
17499 \begin_inset Flex Code
17502 \begin_layout Plain Layout
17511 \begin_inset Flex Code
17514 \begin_layout Plain Layout
17523 \begin_inset space \thinspace{}
17527 \begin_inset Flex Code
17530 \begin_layout Plain Layout
17536 ] Indicates whether the float is already defined in the document class or
17537 if instead the \SpecialChar LaTeX
17539 \begin_inset Flex Code
17542 \begin_layout Plain Layout
17548 needs to be loaded to define it on-the-fly.
17550 \begin_inset Flex Code
17553 \begin_layout Plain Layout
17560 \begin_inset Flex Code
17563 \begin_layout Plain Layout
17570 It should be set to
17571 \begin_inset Flex Code
17574 \begin_layout Plain Layout
17580 if the float is already defined by the \SpecialChar LaTeX
17584 \begin_layout Description
17585 \begin_inset Flex Code
17588 \begin_layout Plain Layout
17595 \begin_inset Flex Code
17598 \begin_layout Plain Layout
17605 \begin_inset Quotes erd
17609 \begin_inset Quotes erd
17612 ] The command used to generate a list of floats of this type; the leading
17621 \begin_inset Flex Code
17624 \begin_layout Plain Layout
17630 is false, since there is no standard way to generate this command.
17632 \begin_inset Flex Code
17635 \begin_layout Plain Layout
17641 is true, since in that case there is a standard way to define the command.
17644 \begin_layout Description
17645 \begin_inset Flex Code
17648 \begin_layout Plain Layout
17655 \begin_inset Flex Code
17658 \begin_layout Plain Layout
17665 \begin_inset Quotes erd
17669 \begin_inset Quotes erd
17672 ] A title for a list of floats of this kind (list of figures, tables, or
17674 It is used for the screen label within \SpecialChar LyX
17675 , it is used by \SpecialChar LaTeX
17677 it is used as the title in the XHTML output.
17678 It will be translated to the document language.
17681 \begin_layout Description
17682 \begin_inset Flex Code
17685 \begin_layout Plain Layout
17692 \begin_inset Flex Code
17695 \begin_layout Plain Layout
17702 \begin_inset Quotes erd
17706 \begin_inset Quotes erd
17709 ] This (optional) argument determines whether floats of this class will
17710 be numbered within some sectional unit of the document.
17712 \begin_inset Flex Code
17715 \begin_layout Plain Layout
17722 \begin_inset Quotes eld
17726 \begin_inset Flex Code
17729 \begin_layout Plain Layout
17736 \begin_inset Quotes erd
17739 , the floats will be numbered within chapters.
17743 \begin_layout Description
17744 \begin_inset Flex Code
17747 \begin_layout Plain Layout
17754 \begin_inset Flex Code
17757 \begin_layout Plain Layout
17764 \begin_inset Quotes erd
17768 \begin_inset Quotes erd
17771 ] The default placement for the given class of floats.
17772 The string should be as in standard \SpecialChar LaTeX
17774 \begin_inset Flex Code
17777 \begin_layout Plain Layout
17784 \begin_inset Flex Code
17787 \begin_layout Plain Layout
17794 \begin_inset Flex Code
17797 \begin_layout Plain Layout
17804 \begin_inset Flex Code
17807 \begin_layout Plain Layout
17813 for top, bottom, page, and here, respectively.
17817 \begin_layout Plain Layout
17818 Note that the order of these letters in the string is irrelevant, like in
17825 On top of that there is a new type,
17826 \begin_inset Flex Code
17829 \begin_layout Plain Layout
17835 , which does not really correspond to a float, since it means: put it
17836 \begin_inset Quotes eld
17840 \begin_inset Quotes erd
17844 Note however that the
17845 \begin_inset Flex Code
17848 \begin_layout Plain Layout
17854 specifier is special and, because of implementation details, cannot be
17855 used in non-built in float types.
17856 If you do not understand what this means, just use
17857 \begin_inset Quotes eld
17861 \begin_inset Flex Code
17864 \begin_layout Plain Layout
17871 \begin_inset Quotes erd
17877 \begin_layout Description
17878 \begin_inset Flex Code
17881 \begin_layout Plain Layout
17888 \begin_inset Flex Code
17891 \begin_layout Plain Layout
17897 ] The prefix to use when creating labels referring to floats of this type.
17898 This allows the use of formatted references.
17899 Note that you can remove any
17900 \begin_inset Flex Code
17903 \begin_layout Plain Layout
17909 set by a copied style by using the special value
17910 \begin_inset Quotes eld
17914 \begin_inset Quotes erd
17917 , which must be all caps.
17920 \begin_layout Description
17921 \begin_inset Flex Code
17924 \begin_layout Plain Layout
17931 \begin_inset Flex Code
17934 \begin_layout Plain Layout
17941 \begin_inset Quotes erd
17945 \begin_inset Quotes erd
17948 ] The style used when defining the float using
17949 \begin_inset Flex Code
17952 \begin_layout Plain Layout
17963 \begin_layout Description
17964 \begin_inset Flex Code
17967 \begin_layout Plain Layout
17974 \begin_inset Flex Code
17977 \begin_layout Plain Layout
17984 \begin_inset Quotes erd
17988 \begin_inset Quotes erd
17992 \begin_inset Quotes eld
17996 \begin_inset Quotes erd
17999 of the new class of floats, like program or algorithm.
18000 After the appropriate
18001 \begin_inset Flex Code
18004 \begin_layout Plain Layout
18013 \begin_inset Flex Code
18016 \begin_layout Plain Layout
18025 \begin_inset Flex Code
18028 \begin_layout Plain Layout
18039 \begin_layout Description
18040 \begin_inset Flex Code
18043 \begin_layout Plain Layout
18050 \begin_inset Flex Code
18053 \begin_layout Plain Layout
18060 \begin_inset space \thinspace{}
18064 \begin_inset Flex Code
18067 \begin_layout Plain Layout
18075 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18077 \begin_inset Flex Code
18080 \begin_layout Plain Layout
18086 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18090 \begin_layout Standard
18091 Note that defining a float with type
18092 \begin_inset Flex Code
18095 \begin_layout Plain Layout
18103 automatically defines the corresponding counter with name
18104 \begin_inset Flex Code
18107 \begin_layout Plain Layout
18118 \begin_layout Subsection
18119 Flex insets and InsetLayout
18120 \begin_inset CommandInset label
18122 name "subsec:Flex-insets-and"
18129 \begin_layout Standard
18130 Flex insets come in three different kinds:
18133 \begin_layout Itemize
18135 \begin_inset Flex Code
18138 \begin_layout Plain Layout
18144 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18146 \begin_inset Flex Code
18149 \begin_layout Plain Layout
18158 \begin_inset Flex Code
18161 \begin_layout Plain Layout
18172 \begin_layout Itemize
18174 \begin_inset Flex Code
18177 \begin_layout Plain Layout
18183 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18185 footnote, and the like.
18186 An obvious example is an endnote inset, which is defined in the
18187 \begin_inset Flex Code
18190 \begin_layout Plain Layout
18199 \begin_layout Itemize
18201 \begin_inset Flex Code
18204 \begin_layout Plain Layout
18210 ): For use with DocBook classes.
18213 \begin_layout Standard
18214 Flex insets are defined using the
18215 \begin_inset Flex Code
18218 \begin_layout Plain Layout
18224 tag, which shall be explained in a moment.
18227 \begin_layout Standard
18229 \begin_inset Flex Code
18232 \begin_layout Plain Layout
18238 tag also serves another function: It can be used to customize the general
18239 layout of many different types of insets.
18241 \begin_inset Flex Code
18244 \begin_layout Plain Layout
18250 can be used to customize the layout parameters for footnotes, marginal
18251 notes, note insets, \SpecialChar TeX
18252 code (ERT) insets, branches, listings, indexes, boxes,
18253 tables, algorithms, URLs, and captions, as well as to define Flex insets.
18256 \begin_layout Standard
18258 \begin_inset Flex Code
18261 \begin_layout Plain Layout
18267 definition must begin with a line of the form:
18270 \begin_layout LyX-Code
18274 \begin_layout Standard
18276 \begin_inset Flex Code
18279 \begin_layout Plain Layout
18285 indicates the inset whose layout is being defined, and here there are four
18289 \begin_layout Enumerate
18290 The layout for a pre-existing inset is being modified.
18291 In this case, can be
18292 \begin_inset Flex Code
18295 \begin_layout Plain Layout
18301 any one of the following:
18302 \begin_inset Flex Code
18305 \begin_layout Plain Layout
18312 \begin_inset Flex Code
18315 \begin_layout Plain Layout
18322 \begin_inset Flex Code
18325 \begin_layout Plain Layout
18332 \begin_inset Flex Code
18335 \begin_layout Plain Layout
18342 \begin_inset Flex Code
18345 \begin_layout Plain Layout
18352 \begin_inset Flex Code
18355 \begin_layout Plain Layout
18362 \begin_inset Flex Code
18365 \begin_layout Plain Layout
18372 \begin_inset Flex Code
18375 \begin_layout Plain Layout
18382 \begin_inset Flex Code
18385 \begin_layout Plain Layout
18392 \begin_inset Flex Code
18395 \begin_layout Plain Layout
18402 \begin_inset Flex Code
18405 \begin_layout Plain Layout
18412 \begin_inset Flex Code
18415 \begin_layout Plain Layout
18422 \begin_inset Flex Code
18425 \begin_layout Plain Layout
18432 \begin_inset Flex Code
18435 \begin_layout Plain Layout
18442 \begin_inset Flex Code
18445 \begin_layout Plain Layout
18452 \begin_inset Flex Code
18455 \begin_layout Plain Layout
18462 \begin_inset Flex Code
18465 \begin_layout Plain Layout
18472 \begin_inset Flex Code
18475 \begin_layout Plain Layout
18482 \begin_inset Flex Code
18485 \begin_layout Plain Layout
18492 \begin_inset Flex Code
18495 \begin_layout Plain Layout
18504 \begin_layout Enumerate
18505 The layout for a Flex inset is being defined.
18507 \begin_inset Flex Code
18510 \begin_layout Plain Layout
18516 must be of the form
18517 \begin_inset Quotes eld
18521 \begin_inset Flex Code
18524 \begin_layout Plain Layout
18531 \begin_inset Quotes erd
18535 \begin_inset Flex Code
18538 \begin_layout Plain Layout
18544 may be be any valid identifier not used by a pre-existing Flex inset.
18545 The identifier may include spaces, but in that case the whole thing must
18546 be wrapped in quotes.
18547 Note that the definition of a flex inset
18552 \begin_inset Flex Code
18555 \begin_layout Plain Layout
18561 entry, declaring which type of inset it defines.
18564 \begin_layout Enumerate
18565 The layout for user specific branch is being defined.
18567 \begin_inset Flex Code
18570 \begin_layout Plain Layout
18576 must be of the form
18577 \begin_inset Quotes eld
18581 \begin_inset Flex Code
18584 \begin_layout Plain Layout
18591 \begin_inset Quotes erd
18595 \begin_inset Flex Code
18598 \begin_layout Plain Layout
18604 may be be any valid identifier of branch defined in user's document.
18605 The identifier may include spaces, but in that case the whole thing must
18606 be wrapped in quotes.
18607 The main purpose of this feature is to allow \SpecialChar LaTeX
18608 wrapping around specific
18609 branches as user needs.
18612 \begin_layout Enumerate
18613 The layout of a user (or class) specific caption is being defined.
18615 \begin_inset Flex Code
18618 \begin_layout Plain Layout
18624 must be of the form
18625 \begin_inset Quotes eld
18629 \begin_inset Flex Code
18632 \begin_layout Plain Layout
18639 \begin_inset Quotes erd
18643 \begin_inset Flex Code
18646 \begin_layout Plain Layout
18652 specifies the name of the caption as it appears in the menu.
18653 Have a look at the standard caption (
18654 \begin_inset Flex Code
18657 \begin_layout Plain Layout
18663 ), the specific captions of the KOMA-Script classes (
18664 \begin_inset Flex Code
18667 \begin_layout Plain Layout
18674 \begin_inset Flex Code
18677 \begin_layout Plain Layout
18686 \begin_inset space ~
18690 \begin_inset Newline linebreak
18696 \begin_inset Flex Code
18699 \begin_layout Plain Layout
18705 ) for applications.
18708 \begin_layout Standard
18710 \begin_inset Flex Code
18713 \begin_layout Plain Layout
18719 definition can contain the following entries:
18722 \begin_layout Description
18723 \begin_inset Flex Code
18726 \begin_layout Plain Layout
18733 \begin_inset Flex Code
18736 \begin_layout Plain Layout
18742 =""] This inset will appear in the table of contents of the given type.
18743 An empty string disables.
18744 See also the OutlinerName and the IsTocCaption commands.
18745 This is only implemented for Flex insets.
18749 \begin_layout Description
18750 \begin_inset Flex Code
18753 \begin_layout Plain Layout
18760 \begin_inset Flex Code
18763 \begin_layout Plain Layout
18769 ] Defines argument number of a command\SpecialChar breakableslash
18770 environment associated with the current
18772 The definition must end with
18773 \begin_inset Flex Code
18776 \begin_layout Plain Layout
18784 \begin_inset CommandInset ref
18786 reference "subsec:Paragraph-Styles"
18793 \begin_layout Description
18794 \begin_inset Flex Code
18797 \begin_layout Plain Layout
18803 Preamble for changing language commands; see
18804 \begin_inset CommandInset ref
18806 reference "subsec:I18n"
18813 \begin_layout Description
18814 \begin_inset Flex Code
18817 \begin_layout Plain Layout
18824 \begin_inset Flex Code
18827 \begin_layout Plain Layout
18833 ] The color for the inset's background.
18835 \begin_inset CommandInset ref
18837 reference "chap:Names-of-colors"
18841 for a list of the available color names.
18844 \begin_layout Description
18845 \begin_inset Flex Code
18848 \begin_layout Plain Layout
18855 \begin_inset Flex Code
18858 \begin_layout Plain Layout
18867 \begin_inset space \thinspace{}
18871 \begin_inset Flex Code
18874 \begin_layout Plain Layout
18880 ] Whether to use the content of the inset as the label, when the inset is
18885 \begin_layout Description
18886 \begin_inset Flex Code
18889 \begin_layout Plain Layout
18896 \begin_inset Flex Code
18899 \begin_layout Plain Layout
18905 ] As with paragraph styles, see
18906 \begin_inset CommandInset ref
18908 reference "subsec:Paragraph-Styles"
18913 Note that you need to specify the complete type, e.
18914 \begin_inset space \thinspace{}
18918 \begin_inset space ~
18922 \begin_inset Flex Code
18925 \begin_layout Plain Layout
18926 CopyStyle Flex:<name>
18934 \begin_layout Description
18935 \begin_inset Flex Code
18938 \begin_layout Plain Layout
18945 \begin_inset Flex Code
18948 \begin_layout Plain Layout
18957 \begin_inset space \thinspace{}
18961 \begin_inset Flex Code
18964 \begin_layout Plain Layout
18970 ] Indicates whether the user may employ the Paragraph Settings dialog to
18971 customize the paragraph.
18974 \begin_layout Description
18975 \begin_inset Flex Code
18978 \begin_layout Plain Layout
18985 \begin_inset Flex Code
18988 \begin_layout Plain Layout
18995 \begin_inset Flex Code
18998 \begin_layout Plain Layout
19005 \begin_inset Flex Code
19008 \begin_layout Plain Layout
19014 , describing the rendering style used for the inset's frame and buttons.
19015 Footnotes generally use
19016 \begin_inset Flex Code
19019 \begin_layout Plain Layout
19025 , ERT insets generally
19026 \begin_inset Flex Code
19029 \begin_layout Plain Layout
19035 , and character styles
19036 \begin_inset Flex Code
19039 \begin_layout Plain Layout
19048 \begin_layout Description
19049 \begin_inset Flex Code
19052 \begin_layout Plain Layout
19059 \begin_inset Flex Code
19062 \begin_layout Plain Layout
19071 \begin_inset space \thinspace{}
19077 \begin_inset Flex Code
19080 \begin_layout Plain Layout
19089 \begin_inset Flex Code
19092 \begin_layout Plain Layout
19099 \begin_inset Flex Code
19102 \begin_layout Plain Layout
19109 Indicates whether the environment will stand on its own in the output or
19110 will appear inline with the surrounding text.
19111 If set to false, it is supposed that the \SpecialChar LaTeX
19112 environment ignores white space
19113 (including one newline character) after the
19114 \begin_inset Flex Code
19117 \begin_layout Plain Layout
19130 \begin_inset Flex Code
19133 \begin_layout Plain Layout
19147 \change_inserted 731793113 1538674858
19151 \begin_layout Description
19153 \change_inserted 731793113 1538674891
19154 \begin_inset Flex Code
19157 \begin_layout Plain Layout
19159 \change_inserted 731793113 1538674863
19171 ,1] Allow the contents of the inset to be edited externally (using whatever
19172 editor is defined for the document's output format).
19177 \begin_layout Description
19178 \begin_inset Flex Code
19181 \begin_layout Plain Layout
19187 Required at the end of the
19188 \begin_inset Flex Code
19191 \begin_layout Plain Layout
19200 \begin_layout Description
19201 \begin_inset Flex Code
19204 \begin_layout Plain Layout
19210 The font used for both the text body
19216 \begin_inset CommandInset ref
19218 reference "subsec:Font-description"
19223 Note that defining this font automatically defines the
19224 \begin_inset Flex Code
19227 \begin_layout Plain Layout
19233 to the same value, so define this first and define
19234 \begin_inset Flex Code
19237 \begin_layout Plain Layout
19243 later if you want them to be different.
19246 \begin_layout Description
19247 \begin_inset Flex Code
19250 \begin_layout Plain Layout
19251 FixedWidthPreambleEncoding
19257 \begin_inset Flex Code
19260 \begin_layout Plain Layout
19269 \begin_inset space \thinspace{}
19273 \begin_inset Flex Code
19276 \begin_layout Plain Layout
19282 ] Force a fixed width encoding for the translated contents of
19283 \begin_inset Flex Code
19286 \begin_layout Plain Layout
19293 \begin_inset Flex Code
19296 \begin_layout Plain Layout
19302 code generated by this layout.
19303 This is needed for special \SpecialChar LaTeX
19308 that do not work with variable width encodings such as
19313 This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19314 backends such as Xe\SpecialChar TeX
19316 Lua\SpecialChar TeX
19320 \begin_layout Description
19321 \begin_inset Flex Code
19324 \begin_layout Plain Layout
19325 ForceLocalFontSwitch
19331 \begin_inset Flex Code
19334 \begin_layout Plain Layout
19343 \begin_inset space \thinspace{}
19347 \begin_inset Flex Code
19350 \begin_layout Plain Layout
19356 ] When using babel, always use a local font switch (
19357 \begin_inset Flex Code
19360 \begin_layout Plain Layout
19368 ), never a global one (such as
19369 \begin_inset Flex Code
19372 \begin_layout Plain Layout
19383 \begin_layout Description
19384 \begin_inset Flex Code
19387 \begin_layout Plain Layout
19394 \begin_inset Flex Code
19397 \begin_layout Plain Layout
19406 \begin_inset space \thinspace{}
19410 \begin_inset Flex Code
19413 \begin_layout Plain Layout
19420 \begin_inset Quotes eld
19424 \begin_inset Quotes erd
19427 language, leading to Left-to-Right (Latin) output, e.
19428 \begin_inset space \thinspace{}
19432 \begin_inset space \space{}
19435 in \SpecialChar TeX
19440 \begin_layout Description
19441 \begin_inset Flex Code
19444 \begin_layout Plain Layout
19451 \begin_inset Flex Code
19454 \begin_layout Plain Layout
19463 \begin_inset space \thinspace{}
19467 \begin_inset Flex Code
19470 \begin_layout Plain Layout
19476 ] Force a a line break in the \SpecialChar LaTeX
19477 output before the inset starts and after
19479 This assures the inset itself is output on its own lines, for parsing purposes.
19482 \begin_layout Description
19483 \begin_inset Flex Code
19486 \begin_layout Plain Layout
19493 \begin_inset Flex Code
19496 \begin_layout Plain Layout
19505 \begin_inset space \thinspace{}
19509 \begin_inset Flex Code
19512 \begin_layout Plain Layout
19518 ] Indicates whether the
19519 \begin_inset Flex Code
19522 \begin_layout Plain Layout
19528 should be used or, instead, the user can change the paragraph style used
19533 \begin_layout Description
19534 \begin_inset Flex Code
19537 \begin_layout Plain Layout
19544 \begin_inset Flex Code
19547 \begin_layout Plain Layout
19556 \begin_inset space \thinspace{}
19560 \begin_inset Flex Code
19563 \begin_layout Plain Layout
19569 ] As with paragraph styles, see
19570 \begin_inset CommandInset ref
19572 reference "subsec:Paragraph-Styles"
19579 \begin_layout Description
19580 \begin_inset Flex Code
19583 \begin_layout Plain Layout
19589 These tags control the XHTML output.
19591 \begin_inset CommandInset ref
19593 reference "sec:Tags-for-XHTML"
19600 \begin_layout Description
19601 \begin_inset Flex Code
19604 \begin_layout Plain Layout
19611 \begin_inset Flex Code
19614 \begin_layout Plain Layout
19623 \begin_inset space \thinspace{}
19627 \begin_inset Flex Code
19630 \begin_layout Plain Layout
19636 ] Whether to include the contents of this inset in the strings generated
19637 for the `Outline' pane for all table of contents, regardless of the AddToToc
19639 One would not, for example, want the content of a footnote in a section
19640 header to be included in the TOC displayed in the outline, but one would
19641 normally want the content of a character style displayed.
19642 Default is false: not to include.
19645 \begin_layout Description
19646 \begin_inset Flex Code
19649 \begin_layout Plain Layout
19656 \begin_inset Flex Code
19659 \begin_layout Plain Layout
19668 \begin_inset space \thinspace{}
19672 \begin_inset Flex Code
19675 \begin_layout Plain Layout
19681 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19682 of its contents in its item in the table of contents.
19683 Otherwise, only the label appears.
19686 \begin_layout Description
19687 \begin_inset Flex Code
19690 \begin_layout Plain Layout
19699 \begin_inset Flex Code
19702 \begin_layout Plain Layout
19711 \begin_inset space \thinspace{}
19715 \begin_inset Flex Code
19718 \begin_layout Plain Layout
19724 ] As with paragraph styles, see
19725 \begin_inset CommandInset ref
19727 reference "subsec:Paragraph-Styles"
19734 \begin_layout Description
19735 \begin_inset Flex Code
19738 \begin_layout Plain Layout
19744 The font used for the label.
19746 \begin_inset CommandInset ref
19748 reference "subsec:Font-description"
19753 Note that this definition can never appear before
19754 \begin_inset Flex Code
19757 \begin_layout Plain Layout
19763 , lest it be ineffective.
19766 \begin_layout Description
19767 \begin_inset Flex Code
19770 \begin_layout Plain Layout
19777 \begin_inset Flex Code
19780 \begin_layout Plain Layout
19787 \begin_inset Quotes erd
19791 \begin_inset Quotes erd
19794 ] What will be displayed on the button or elsewhere as the inset label.
19796 \begin_inset Flex Code
19799 \begin_layout Plain Layout
19807 \begin_inset Flex Code
19810 \begin_layout Plain Layout
19816 ) modify this label on the fly.
19819 \begin_layout Description
19820 \begin_inset Flex Code
19823 \begin_layout Plain Layout
19829 Language dependent preamble; see
19830 \begin_inset CommandInset ref
19832 reference "subsec:I18n"
19839 \begin_layout Description
19840 \begin_inset Flex Code
19843 \begin_layout Plain Layout
19850 \begin_inset Flex Code
19853 \begin_layout Plain Layout
19859 ] The name of the corresponding \SpecialChar LaTeX
19861 Either the environment or command name.
19864 \begin_layout Description
19865 \begin_inset Flex Code
19868 \begin_layout Plain Layout
19875 \begin_inset Flex Code
19878 \begin_layout Plain Layout
19884 ] The optional parameter for the corresponding
19885 \begin_inset Flex Code
19888 \begin_layout Plain Layout
19894 stuff, including possible bracket pairs like
19895 \begin_inset Flex Code
19898 \begin_layout Plain Layout
19905 This parameter cannot be changed from within \SpecialChar LyX
19907 \begin_inset Flex Code
19910 \begin_layout Plain Layout
19916 for customizable parameters).
19917 It will be output as is after all \SpecialChar LaTeX
19919 \begin_inset Flex Code
19922 \begin_layout Plain Layout
19931 \begin_layout Description
19932 \begin_inset Flex Code
19935 \begin_layout Plain Layout
19942 \begin_inset Flex Code
19945 \begin_layout Plain Layout
19946 Command, Environment, None
19951 ] How the style should be translated into \SpecialChar LaTeX
19956 \begin_layout Plain Layout
19957 \begin_inset Flex Code
19960 \begin_layout Plain Layout
19966 is perhaps a bit misleading, since these rules apply to SGML classes too.
19967 Visit the SGML class files for specific examples.
19976 \begin_layout Description
19977 \begin_inset Flex Code
19980 \begin_layout Plain Layout
19986 means nothing special
19989 \begin_layout Description
19990 \begin_inset Flex Code
19993 \begin_layout Plain Layout
20000 \begin_inset Flex Code
20003 \begin_layout Plain Layout
20010 {\SpecialChar ldots
20019 \begin_layout Description
20020 \begin_inset Flex Code
20023 \begin_layout Plain Layout
20030 \begin_inset Flex Code
20033 \begin_layout Plain Layout
20040 }\SpecialChar ldots
20055 \begin_layout Standard
20056 Putting the last few things together, the \SpecialChar LaTeX
20057 output will be either:
20060 \begin_layout LyX-Code
20063 LatexName[LatexParam]{\SpecialChar ldots
20067 \begin_layout Standard
20071 \begin_layout LyX-Code
20074 begin{LatexName}[LatexParam] \SpecialChar ldots
20080 \begin_layout Standard
20081 depending upon the \SpecialChar LaTeX
20086 \begin_layout Description
20087 \begin_inset Flex Code
20090 \begin_layout Plain Layout
20097 \begin_inset Flex Code
20100 \begin_layout Plain Layout
20106 ] A string that is put at the beginning of the layout content.
20107 A line break in the output can be indicated by
20108 \begin_inset Flex Code
20111 \begin_layout Plain Layout
20120 \begin_layout Description
20121 \begin_inset Flex Code
20124 \begin_layout Plain Layout
20131 \begin_inset Flex Code
20134 \begin_layout Plain Layout
20141 \begin_inset Flex Code
20144 \begin_layout Plain Layout
20151 \begin_inset Flex Code
20154 \begin_layout Plain Layout
20161 \begin_inset Flex Code
20164 \begin_layout Plain Layout
20170 (indicating a dummy definition ending definitions of charstyles, etc).
20171 This entry is required in and is only meaningful for Flex insets.
20172 Among other things, it determines on which menu this inset will appear.
20174 \begin_inset Flex Code
20177 \begin_layout Plain Layout
20184 \begin_inset Flex Code
20187 \begin_layout Plain Layout
20193 will automatically set
20194 \begin_inset Flex Code
20197 \begin_layout Plain Layout
20204 \begin_inset Flex Code
20207 \begin_layout Plain Layout
20215 \begin_inset Flex Code
20218 \begin_layout Plain Layout
20224 can be set to true, or
20225 \begin_inset Flex Code
20228 \begin_layout Plain Layout
20235 \begin_inset Flex Code
20238 \begin_layout Plain Layout
20244 insets by setting it
20249 \begin_inset Flex Code
20252 \begin_layout Plain Layout
20261 \begin_layout Description
20262 \begin_inset Flex Code
20265 \begin_layout Plain Layout
20272 \begin_inset Flex Code
20275 \begin_layout Plain Layout
20284 \begin_inset space \thinspace{}
20288 \begin_inset Flex Code
20291 \begin_layout Plain Layout
20297 ] Whether multiple paragraphs are permitted in this inset.
20299 \begin_inset Flex Code
20302 \begin_layout Plain Layout
20308 to the same value and
20309 \begin_inset Flex Code
20312 \begin_layout Plain Layout
20318 to the opposite value.
20319 These can be reset to other values, if they are used
20324 \begin_inset Flex Code
20327 \begin_layout Plain Layout
20337 \begin_layout Description
20338 \begin_inset Flex Code
20341 \begin_layout Plain Layout
20348 \begin_inset Flex Code
20351 \begin_layout Plain Layout
20360 \begin_inset space \thinspace{}
20364 \begin_inset Flex Code
20367 \begin_layout Plain Layout
20373 ] Whether fragile commands in this inset should be
20374 \begin_inset Flex Code
20377 \begin_layout Plain Layout
20390 whether the command should itself be protected.) Default is false.
20391 \change_inserted -712698321 1523633958
20395 \begin_layout Description
20397 \change_inserted -712698321 1552395786
20398 \begin_inset Flex Code
20401 \begin_layout Plain Layout
20403 \change_inserted -712698321 1523633961
20410 \begin_inset Flex Code
20413 \begin_layout Plain Layout
20415 \change_inserted -712698321 1523633958
20424 \begin_inset space \thinspace{}
20428 \begin_inset Flex Code
20431 \begin_layout Plain Layout
20433 \change_inserted -712698321 1523633958
20439 ] This causes macros that contain this inset to be protected with
20440 \begin_inset Flex Code
20443 \begin_layout Plain Layout
20445 \change_inserted -712698321 1523634038
20460 ) if necessary and thus allows (some) verbatim stuff in macros.
20464 \begin_layout Description
20466 \change_inserted -712698321 1552395824
20467 \begin_inset Flex Code
20470 \begin_layout Plain Layout
20472 \change_inserted -712698321 1552395787
20479 \begin_inset Flex Code
20482 \begin_layout Plain Layout
20484 \change_inserted -712698321 1552395787
20493 \begin_inset space \thinspace{}
20497 \begin_inset Flex Code
20500 \begin_layout Plain Layout
20502 \change_inserted -712698321 1552395787
20508 ] Whether specific commands in this inset (such as
20509 \begin_inset Flex Code
20512 \begin_layout Plain Layout
20514 \change_inserted -712698321 1552395787
20523 \begin_inset Flex Code
20526 \begin_layout Plain Layout
20528 \change_inserted -712698321 1552395787
20536 ) should be protected in an
20537 \begin_inset Flex Code
20540 \begin_layout Plain Layout
20542 \change_inserted -712698321 1552395787
20551 This is particularly needed for insets that draw on
20559 commands which parse their content in complex ways.
20565 \begin_layout Description
20566 \begin_inset Flex Code
20569 \begin_layout Plain Layout
20576 \begin_inset Flex Code
20579 \begin_layout Plain Layout
20585 ] Deletes an existing
20586 \begin_inset Flex Code
20589 \begin_layout Plain Layout
20598 \begin_layout Description
20599 \begin_inset Flex Code
20602 \begin_layout Plain Layout
20609 \begin_inset Flex Code
20612 \begin_layout Plain Layout
20619 \begin_inset Flex Code
20622 \begin_layout Plain Layout
20628 that has replaced this
20629 \begin_inset Flex Code
20632 \begin_layout Plain Layout
20639 This is used to rename an
20640 \begin_inset Flex Code
20643 \begin_layout Plain Layout
20649 , while keeping backward compatibility.
20652 \begin_layout Description
20653 \begin_inset Flex Code
20656 \begin_layout Plain Layout
20663 \begin_inset Flex Code
20666 \begin_layout Plain Layout
20675 \begin_inset space \thinspace{}
20679 \begin_inset Flex Code
20682 \begin_layout Plain Layout
20688 ] As with paragraph styles, see
20689 \begin_inset CommandInset ref
20691 reference "subsec:Paragraph-Styles"
20699 \begin_layout Description
20700 \begin_inset Flex Code
20703 \begin_layout Plain Layout
20710 \begin_inset Flex Code
20713 \begin_layout Plain Layout
20722 \begin_inset space \thinspace{}
20726 \begin_inset Flex Code
20729 \begin_layout Plain Layout
20735 ] As with paragraph styles, see
20736 \begin_inset CommandInset ref
20738 reference "subsec:Paragraph-Styles"
20746 \begin_layout Description
20747 \begin_inset Flex Code
20750 \begin_layout Plain Layout
20756 As with paragraph styles, see
20757 \begin_inset CommandInset ref
20759 reference "subsec:Paragraph-Styles"
20766 \begin_layout Description
20767 \begin_inset Flex Code
20770 \begin_layout Plain Layout
20777 \begin_inset Flex Code
20780 \begin_layout Plain Layout
20786 ] The prefix to use when creating labels referring to insets of this type.
20787 This allows the use of formatted references.
20790 \begin_layout Description
20791 \begin_inset Flex Code
20794 \begin_layout Plain Layout
20801 \begin_inset Flex Code
20804 \begin_layout Plain Layout
20810 ] As with paragraph styles, see
20811 \begin_inset CommandInset ref
20813 reference "subsec:Paragraph-Styles"
20820 \begin_layout Description
20821 \begin_inset Flex Code
20824 \begin_layout Plain Layout
20831 \begin_inset Flex Code
20834 \begin_layout Plain Layout
20843 \begin_inset space \thinspace{}
20847 \begin_inset Flex Code
20850 \begin_layout Plain Layout
20856 ] Resets the \SpecialChar LaTeX
20857 arguments of this layout (as defined via the
20858 \begin_inset Flex Code
20861 \begin_layout Plain Layout
20868 This is useful if you have copied a style via
20869 \begin_inset Flex Code
20872 \begin_layout Plain Layout
20878 , but you do not want to inherit its (required and optional) arguments.
20881 \begin_layout Description
20882 \begin_inset Flex Code
20885 \begin_layout Plain Layout
20892 \begin_inset Flex Code
20895 \begin_layout Plain Layout
20902 \begin_inset space \thinspace{}
20906 \begin_inset Flex Code
20909 \begin_layout Plain Layout
20917 ] Whether this inset should use the font of its surrounding environment
20919 Default is false: use the font of the surrounding environment.
20922 \begin_layout Description
20923 \begin_inset Flex Code
20926 \begin_layout Plain Layout
20933 \begin_inset Flex Code
20936 \begin_layout Plain Layout
20942 ] A string that is put at the end of the layout content.
20943 A line break in the output can be indicated by
20944 \begin_inset Flex Code
20947 \begin_layout Plain Layout
20956 \begin_layout Description
20957 \begin_inset Flex Code
20960 \begin_layout Plain Layout
20967 \begin_inset Flex Code
20970 \begin_layout Plain Layout
20977 \begin_inset space \thinspace{}
20981 \begin_inset Flex Code
20984 \begin_layout Plain Layout
20992 ] Allow spell-checking the contents of this inset.
20996 \begin_layout Subsection
20998 \begin_inset CommandInset label
21000 name "subsec:Counters"
21007 \begin_layout Standard
21008 It is necessary to define the counters (
21009 \begin_inset Flex Noun
21012 \begin_layout Plain Layout
21019 \begin_inset Flex Noun
21022 \begin_layout Plain Layout
21028 , \SpecialChar ldots
21029 ) in the text class itself.
21030 The standard counters are defined in the file
21031 \begin_inset Flex Code
21034 \begin_layout Plain Layout
21040 , so you may have to do no more than add
21043 \begin_layout LyX-Code
21044 Input stdcounters.inc
21047 \begin_layout Standard
21048 to your layout file to get them to work.
21049 But if you want to define custom counters, then you can do so.
21050 The counter declaration must begin with:
21053 \begin_layout LyX-Code
21054 Counter CounterName
21057 \begin_layout Standard
21059 \begin_inset Flex Code
21062 \begin_layout Plain Layout
21068 ' is replaced by the name of the counter.
21069 And it must end with
21070 \begin_inset Quotes eld
21074 \begin_inset Flex Code
21077 \begin_layout Plain Layout
21084 \begin_inset Quotes erd
21088 The following parameters can also be used:
21091 \begin_layout Description
21092 \begin_inset Flex Code
21095 \begin_layout Plain Layout
21102 \begin_inset Flex Code
21105 \begin_layout Plain Layout
21111 ] Sets the initial value for the counter, to which it will be reset whenever
21113 Normally, one will want the default, 1.
21116 \begin_layout Description
21117 \begin_inset Flex Code
21120 \begin_layout Plain Layout
21127 \begin_inset Flex Code
21130 \begin_layout Plain Layout
21137 \begin_inset Quotes erd
21141 \begin_inset Quotes erd
21144 ] When defined, this string defines how the counter is displayed.
21145 Setting this value sets
21146 \begin_inset Flex Code
21149 \begin_layout Plain Layout
21150 LabelStringAppendix
21156 The following special constructs can be used in the string:
21160 \begin_layout Itemize
21161 \begin_inset Flex Code
21164 \begin_layout Plain Layout
21172 will be replaced by the expansion of the
21173 \begin_inset Flex Code
21176 \begin_layout Plain Layout
21183 \begin_inset Flex Code
21186 \begin_layout Plain Layout
21187 LabelStringAppendix
21193 \begin_inset Flex Code
21196 \begin_layout Plain Layout
21206 \begin_layout Itemize
21207 counter values can be expressed using \SpecialChar LaTeX
21209 \begin_inset Newline newline
21213 \begin_inset Flex Code
21216 \begin_layout Plain Layout
21233 \begin_inset Flex Code
21236 \begin_layout Plain Layout
21248 \begin_layout Plain Layout
21258 Actually, the situation is a bit more complicated: any
21277 other than those described below will produce arabic numerals.
21278 It would not be surprising to see this change in the future.
21284 \begin_inset Flex Code
21287 \begin_layout Plain Layout
21293 : 1, 2, 3,\SpecialChar ldots
21295 \begin_inset Flex Code
21298 \begin_layout Plain Layout
21304 for lower-case letters: a, b, c, \SpecialChar ldots
21306 \begin_inset Flex Code
21309 \begin_layout Plain Layout
21315 for upper-case letters: A, B, C, \SpecialChar ldots
21317 \begin_inset Flex Code
21320 \begin_layout Plain Layout
21326 for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
21328 \begin_inset Flex Code
21331 \begin_layout Plain Layout
21337 for upper-case roman numerals: I, II, III\SpecialChar ldots
21339 \begin_inset Flex Code
21342 \begin_layout Plain Layout
21348 for hebrew numerals.
21352 \begin_layout Standard
21353 If LabelString is not defined, a default value is constructed as follows:
21354 if the counter has a master counter
21355 \begin_inset Flex Code
21358 \begin_layout Plain Layout
21365 \begin_inset Flex Code
21368 \begin_layout Plain Layout
21375 \begin_inset Newline newline
21379 \begin_inset Flex Code
21382 \begin_layout Plain Layout
21392 is used; otherwise the string
21393 \begin_inset Flex Code
21396 \begin_layout Plain Layout
21407 \begin_layout Description
21408 \begin_inset Flex Code
21411 \begin_layout Plain Layout
21412 LabelStringAppendix
21418 \begin_inset Flex Code
21421 \begin_layout Plain Layout
21428 \begin_inset Quotes erd
21432 \begin_inset Quotes erd
21436 \begin_inset Flex Code
21439 \begin_layout Plain Layout
21445 , but for use in the Appendix.
21448 \begin_layout Description
21449 \begin_inset Flex Code
21452 \begin_layout Plain Layout
21459 \begin_inset Flex Code
21462 \begin_layout Plain Layout
21469 \begin_inset Quotes erd
21473 \begin_inset Quotes erd
21476 ] A format for use with formatted references to this counter.
21477 For example, one might want to have references to section numbers appear
21479 \begin_inset Quotes eld
21483 \begin_inset Quotes erd
21487 The string should contain
21488 \begin_inset Quotes eld
21492 \begin_inset Quotes erd
21496 This will be replaced by the counter number itself.
21497 So, for sections, it would be: Section ##.
21500 \begin_layout Description
21501 \begin_inset Flex Code
21504 \begin_layout Plain Layout
21511 \begin_inset Flex Code
21514 \begin_layout Plain Layout
21521 \begin_inset Quotes erd
21525 \begin_inset Quotes erd
21528 ] If this is set to the name of another counter, the present counter will
21529 be reset every time the other one is increased.
21531 \begin_inset Flex Code
21534 \begin_layout Plain Layout
21541 \begin_inset Flex Code
21544 \begin_layout Plain Layout
21553 \begin_layout Subsection
21555 \begin_inset CommandInset label
21557 name "subsec:Font-description"
21564 \begin_layout Standard
21565 A font description looks like this:
21568 \begin_layout LyX-Code
21585 \begin_layout LyX-Code
21589 \begin_layout LyX-Code
21593 \begin_layout Standard
21594 The following commands are available:
21597 \begin_layout Description
21598 \begin_inset Flex Code
21601 \begin_layout Plain Layout
21608 \begin_inset Flex Code
21611 \begin_layout Plain Layout
21620 \begin_inset Flex Code
21623 \begin_layout Plain Layout
21630 \begin_inset Flex Code
21633 \begin_layout Plain Layout
21640 \begin_inset Flex Code
21643 \begin_layout Plain Layout
21650 \begin_inset Flex Code
21653 \begin_layout Plain Layout
21660 \begin_inset Flex Code
21663 \begin_layout Plain Layout
21670 \begin_inset Flex Code
21673 \begin_layout Plain Layout
21680 \begin_inset Flex Code
21683 \begin_layout Plain Layout
21690 \begin_inset Flex Code
21693 \begin_layout Plain Layout
21700 \begin_inset Flex Code
21703 \begin_layout Plain Layout
21710 \begin_inset Flex Code
21713 \begin_layout Plain Layout
21720 \begin_inset Flex Code
21723 \begin_layout Plain Layout
21730 \begin_inset Flex Code
21733 \begin_layout Plain Layout
21740 \begin_inset Flex Code
21743 \begin_layout Plain Layout
21750 \begin_inset Flex Code
21753 \begin_layout Plain Layout
21760 \begin_inset Flex Code
21763 \begin_layout Plain Layout
21770 \begin_inset Flex Code
21773 \begin_layout Plain Layout
21780 \begin_inset Flex Code
21783 \begin_layout Plain Layout
21790 \begin_inset Flex Code
21793 \begin_layout Plain Layout
21800 \begin_inset Flex Code
21803 \begin_layout Plain Layout
21812 \begin_layout Description
21813 \begin_inset Flex Code
21816 \begin_layout Plain Layout
21823 \begin_inset Flex Code
21826 \begin_layout Plain Layout
21835 \begin_inset Flex Code
21838 \begin_layout Plain Layout
21845 \begin_inset Flex Code
21848 \begin_layout Plain Layout
21857 \begin_layout Description
21858 \begin_inset Flex Code
21861 \begin_layout Plain Layout
21868 \begin_inset Flex Code
21871 \begin_layout Plain Layout
21877 ] Valid arguments are:
21878 \begin_inset Flex Code
21881 \begin_layout Plain Layout
21888 \begin_inset Flex Code
21891 \begin_layout Plain Layout
21898 \begin_inset Flex Code
21901 \begin_layout Plain Layout
21908 \begin_inset Flex Code
21911 \begin_layout Plain Layout
21918 \begin_inset Flex Code
21921 \begin_layout Plain Layout
21928 \begin_inset Flex Code
21931 \begin_layout Plain Layout
21938 \begin_inset Flex Code
21941 \begin_layout Plain Layout
21948 \begin_inset Flex Code
21951 \begin_layout Plain Layout
21958 \begin_inset Flex Code
21961 \begin_layout Plain Layout
21968 \begin_inset Flex Code
21971 \begin_layout Plain Layout
21978 \begin_inset Flex Code
21981 \begin_layout Plain Layout
21988 \begin_inset Flex Code
21991 \begin_layout Plain Layout
21998 Each of these turns on or off the corresponding attribute.
22000 \begin_inset Flex Code
22003 \begin_layout Plain Layout
22009 turns on emphasis, and
22010 \begin_inset Flex Code
22013 \begin_layout Plain Layout
22021 \begin_inset Newline newline
22024 If the latter seems puzzling, remember that the font settings for the present
22025 context are generally inherited from the surrounding context.
22027 \begin_inset Flex Code
22030 \begin_layout Plain Layout
22036 would turn off the emphasis that was anyway in effect, say, in a theorem
22040 \begin_layout Description
22041 \begin_inset Flex Code
22044 \begin_layout Plain Layout
22051 \begin_inset Flex Code
22054 \begin_layout Plain Layout
22063 \begin_inset Flex Code
22066 \begin_layout Plain Layout
22075 \begin_layout Description
22076 \begin_inset Flex Code
22079 \begin_layout Plain Layout
22086 \begin_inset Flex Code
22089 \begin_layout Plain Layout
22098 \begin_inset Flex Code
22101 \begin_layout Plain Layout
22108 \begin_inset Flex Code
22111 \begin_layout Plain Layout
22118 \begin_inset Flex Code
22121 \begin_layout Plain Layout
22130 \begin_layout Description
22131 \begin_inset Flex Code
22134 \begin_layout Plain Layout
22141 \begin_inset Flex Code
22144 \begin_layout Plain Layout
22151 \begin_inset Flex Code
22154 \begin_layout Plain Layout
22161 \begin_inset Flex Code
22164 \begin_layout Plain Layout
22173 \begin_inset Flex Code
22176 \begin_layout Plain Layout
22183 \begin_inset Flex Code
22186 \begin_layout Plain Layout
22193 \begin_inset Flex Code
22196 \begin_layout Plain Layout
22203 \begin_inset Flex Code
22206 \begin_layout Plain Layout
22213 \begin_inset Flex Code
22216 \begin_layout Plain Layout
22225 \begin_layout Subsection
22226 \begin_inset CommandInset label
22228 name "subsec:Citation-engine-description"
22232 Cite engine description
22235 \begin_layout Standard
22237 \begin_inset Flex Code
22240 \begin_layout Plain Layout
22246 blocks, as used mainly in cite engine files (see
22247 \begin_inset CommandInset ref
22249 reference "subsec:Cite-Engine-Files"
22256 ), define the citation commands provided by a specific
22257 \begin_inset Quotes eld
22261 \begin_inset Quotes erd
22265 A cite engine, in \SpecialChar LyX
22266 terms, is way specific way to format citations, using
22267 numbers, author names and/or years.
22268 Currently, \SpecialChar LyX
22269 supports three such engine types, namely:
22272 \begin_layout Enumerate
22273 \begin_inset Flex Code
22276 \begin_layout Plain Layout
22282 : the default Bib\SpecialChar TeX
22283 way to format citations, a simple numeric style (e.
22284 \begin_inset space \thinspace{}
22288 \begin_inset Quotes eld
22292 \begin_inset Quotes erd
22298 \begin_layout Enumerate
22299 \begin_inset Flex Code
22302 \begin_layout Plain Layout
22308 : Harvard-styled citations using author names and publication year (e.
22309 \begin_inset space \thinspace{}
22313 \begin_inset Quotes eld
22316 Smith and Miller (2017b)
22317 \begin_inset Quotes erd
22323 \begin_layout Enumerate
22324 \begin_inset Flex Code
22327 \begin_layout Plain Layout
22333 : extended numerical citations that also allow for author or title next
22335 \begin_inset space \thinspace{}
22339 \begin_inset Quotes eld
22342 Smith and Miller [1]
22343 \begin_inset Quotes erd
22349 \begin_layout Standard
22350 \begin_inset Flex Code
22353 \begin_layout Plain Layout
22359 blocks look like this:
22362 \begin_layout LyX-Code
22366 \begin_layout LyX-Code
22370 \begin_layout LyX-Code
22374 \begin_layout LyX-Code
22375 citeyearpar[][]=parencite*
22378 \begin_layout LyX-Code
22382 \begin_layout LyX-Code
22386 \begin_layout Standard
22388 \begin_inset Flex Code
22391 \begin_layout Plain Layout
22397 denotes the engine.
22398 The individual lines respectively define a cite command or cite command
22399 paradigm supported by this engine.
22400 The line can be as simple as a cite command that is used both to name the
22401 respective \SpecialChar LyX
22402 command and the \SpecialChar LaTeX
22403 output or more complex in order to differentiate
22405 The full syntax is:
22408 \begin_layout LyX-Code
22409 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22412 \begin_layout Itemize
22413 \begin_inset Flex Code
22416 \begin_layout Plain Layout
22422 : The name as used in the
22423 \begin_inset Flex Code
22426 \begin_layout Plain Layout
22436 \begin_layout Standard
22437 For portability reasons, we try to use the same name for same-formatted
22438 commands in different cite packages (thus many names stem from natbib,
22439 and thus we need to differentiate a
22440 \begin_inset Flex Code
22443 \begin_layout Plain Layout
22449 sometimes, if the \SpecialChar LaTeX
22450 command names differ).
22454 \begin_layout Itemize
22455 \begin_inset Flex Code
22458 \begin_layout Plain Layout
22464 : a (comma-separated) list of commands that fall back to the given
22465 \begin_inset Flex Code
22468 \begin_layout Plain Layout
22474 in the current engine.
22475 This eases the switch of citation packages and engines.
22477 \begin_inset Flex Code
22480 \begin_layout Plain Layout
22487 \begin_inset Flex Code
22490 \begin_layout Plain Layout
22496 in layout definitions.
22499 \begin_layout Itemize
22500 \begin_inset Flex Code
22503 \begin_layout Plain Layout
22509 : The actual \SpecialChar LaTeX
22510 command that is output.
22514 \begin_layout Standard
22515 \begin_inset Flex Code
22518 \begin_layout Plain Layout
22525 \begin_inset Flex Code
22528 \begin_layout Plain Layout
22536 \begin_inset Flex Code
22539 \begin_layout Plain Layout
22546 \begin_inset Flex Code
22549 \begin_layout Plain Layout
22555 will be output to \SpecialChar LaTeX
22559 \begin_layout Standard
22563 \begin_layout Itemize
22564 Capitalization indicates that the command also has a capitalized form (
22565 \begin_inset Flex Code
22568 \begin_layout Plain Layout
22578 \begin_inset Flex Code
22581 \begin_layout Plain Layout
22590 These usually enforce up-casing of name prefixes (
22595 \begin_inset Formula $\Rightarrow$
22605 \begin_layout Itemize
22607 \begin_inset Flex Code
22610 \begin_layout Plain Layout
22616 indicate the number of optional arguments (there can be 0–2).
22619 \begin_layout Itemize
22621 \begin_inset Flex Code
22624 \begin_layout Plain Layout
22630 indicates there is a starred version of the command (
22631 \begin_inset Flex Code
22634 \begin_layout Plain Layout
22644 \begin_inset Flex Code
22647 \begin_layout Plain Layout
22660 \begin_layout Standard
22661 By default, the starred version means: Output all authors even if it should
22663 \begin_inset Quotes eld
22667 \begin_inset Quotes erd
22671 \begin_inset Flex Code
22674 \begin_layout Plain Layout
22683 \begin_layout Standard
22684 If the star has a different meaning for a given command, it can be specified
22686 \begin_inset Flex Code
22689 \begin_layout Plain Layout
22690 <!_stardesc!_stardesctooltip>
22696 Maximal two translatable macro keywords, marked by the prefix
22697 \begin_inset Flex Code
22700 \begin_layout Plain Layout
22707 The first points to the string that replaces the
22708 \begin_inset Quotes eld
22712 \begin_inset Quotes erd
22715 checkbox label in the citation dialog, the second one to an optional tool
22716 tip for this checkbox.
22720 \begin_layout Standard
22721 Note that these two macros have to be defined in a
22722 \begin_inset Flex Code
22725 \begin_layout Plain Layout
22731 (see next section), dropping the
22732 \begin_inset Flex Code
22735 \begin_layout Plain Layout
22741 from the prefix, like this:
22744 \begin_layout LyX-Code
22745 _stardesc Sta&rred command label
22748 \begin_layout LyX-Code
22749 _stardesctooltip Tooltip for the starred command checkbox.
22753 \begin_layout Itemize
22755 \begin_inset Flex Code
22758 \begin_layout Plain Layout
22764 indicates that this command features
22765 \begin_inset Quotes eld
22768 qualified citation lists
22769 \begin_inset Quotes erd
22777 -specific feature for multi-reference citations where an individual pre-
22778 and postnote can be given to each reference in the list.
22779 Please refer to the
22783 manual for details.
22784 \change_inserted -712698321 1526898670
22788 \begin_layout Standard
22790 \change_inserted -712698321 1526899524
22791 If you want to add a cite command to a cite engine (e.
22792 \begin_inset space \thinspace{}
22795 g., add a specific command provided by a class), you can use
22796 \begin_inset Flex Code
22799 \begin_layout Plain Layout
22801 \change_inserted -712698321 1526898768
22802 AddToCiteEngine <engine type> \SpecialChar ldots
22811 Note that only cite commands that do not exist yet are added.
22816 \begin_layout Subsection
22817 \begin_inset CommandInset label
22819 name "subsec:Citation-format-description"
22823 Cite format description
22826 \begin_layout Standard
22828 \begin_inset Flex Code
22831 \begin_layout Plain Layout
22837 blocks are used to describe how bibliographic information should be displayed,
22838 both within \SpecialChar LyX
22839 itself (in the citation dialog and in tooltips, for example)
22840 and in XHTML output.
22841 Such a block might look like this:
22844 \begin_layout LyX-Code
22848 \begin_layout LyX-Code
22852 \begin_layout LyX-Code
22856 \begin_layout LyX-Code
22860 \begin_layout Standard
22864 \begin_layout LyX-Code
22868 \begin_layout LyX-Code
22872 \begin_layout LyX-Code
22876 \begin_layout LyX-Code
22880 \begin_layout Standard
22881 In the first case, the individual lines define how the bibliographic information
22882 associated with an article or book, respectively, is to be displayed, and
22883 such a definition can be given for any
22884 \begin_inset Quotes els
22888 \begin_inset Quotes ers
22891 that might be present in a Bib\SpecialChar TeX
22894 defines a default format in the source code that will be used if no specific
22895 definition has been given.
22897 predefines several formats in the file
22898 \begin_inset Flex Code
22901 \begin_layout Plain Layout
22907 , which is included in most of \SpecialChar LyX
22908 's document classes.
22911 \begin_layout Standard
22912 In the second case, the lines define how a specific citation command (in
22914 \begin_inset Flex Code
22917 \begin_layout Plain Layout
22926 \begin_inset Flex Code
22929 \begin_layout Plain Layout
22937 ) is to be displayed on the citation inset label, in the citation dialog,
22938 menu or XHTML output.
22940 defines such formats for the citation style variants it supports via
22942 Document\SpecialChar menuseparator
22943 Setting\SpecialChar menuseparator
22944 Bibliography\SpecialChar ldots
22948 \begin_inset Flex Code
22951 \begin_layout Plain Layout
22957 files that are shipped with \SpecialChar LyX
22959 \begin_inset CommandInset ref
22961 reference "subsec:Cite-Engine-Files"
22971 \begin_layout Standard
22972 The definitions use a simple language that allows Bib\SpecialChar TeX
22973 keys to be replaced
22975 Keys should be enclosed in
22976 \begin_inset Flex Code
22979 \begin_layout Plain Layout
22986 \begin_inset Flex Code
22989 \begin_layout Plain Layout
22996 So a simple definition might look like this:
22999 \begin_layout LyX-Code
23001 \begin_inset Quotes eld
23005 \begin_inset Quotes erd
23011 \begin_layout Standard
23012 This would print the author, followed by a comma, followed by the title,
23013 in quotes, followed by a period.
23016 \begin_layout Standard
23017 Of course, sometimes you may want to print a key only if it exists.
23018 This can be done by using a conditional construction, such as:
23019 \begin_inset Flex Code
23022 \begin_layout Plain Layout
23024 \begin_inset space ~
23034 \begin_inset Flex Code
23037 \begin_layout Plain Layout
23043 key exists, then print
23044 \begin_inset Quotes eld
23048 \begin_inset space ~
23052 \begin_inset Quotes erd
23055 followed by the volume key.
23056 It is also possible to have an else clause in the conditional, such as:
23057 \begin_inset Newline newline
23061 \begin_inset Flex Code
23064 \begin_layout Plain Layout
23065 {%author%[[%author%]][[%editor%, ed.]]}
23071 \begin_inset Newline newline
23075 \begin_inset Flex Code
23078 \begin_layout Plain Layout
23084 key is printed if it exists; otherwise, the editor key is printed, followed
23086 \begin_inset Quotes eld
23090 \begin_inset space ~
23094 \begin_inset Quotes erd
23097 Note that the key is again enclosed in
23098 \begin_inset Flex Code
23101 \begin_layout Plain Layout
23107 signs; the entire conditional is enclosed in braces; and the if and else
23108 clauses are enclosed in double brackets,
23109 \begin_inset Quotes eld
23113 \begin_inset Flex Code
23116 \begin_layout Plain Layout
23123 \begin_inset Quotes eld
23127 \begin_inset Quotes eld
23131 \begin_inset Flex Code
23134 \begin_layout Plain Layout
23141 \begin_inset Quotes erd
23145 There must be no space between any of these.
23148 \begin_layout Standard
23149 Next to the entry keys, there are some special keys that can be used for
23150 these conditionals:
23153 \begin_layout Itemize
23154 \begin_inset Flex Code
23157 \begin_layout Plain Layout
23158 {%dialog%[[true]][[false]]}
23164 \begin_inset Quotes eld
23168 \begin_inset Quotes erd
23171 part for dialogs and menus, the
23172 \begin_inset Quotes eld
23176 \begin_inset Quotes erd
23179 part for other contexts (workarea, export)
23182 \begin_layout Itemize
23183 \begin_inset Flex Code
23186 \begin_layout Plain Layout
23187 {%export%[[true]][[false]]}
23193 \begin_inset Quotes eld
23197 \begin_inset Quotes erd
23200 part for export and menus, the
23201 \begin_inset Quotes eld
23205 \begin_inset Quotes erd
23208 part for other contexts (workarea, dialog)
23211 \begin_layout Itemize
23212 \begin_inset Flex Code
23215 \begin_layout Plain Layout
23222 \begin_inset Quotes eld
23226 \begin_inset Quotes erd
23229 part if another item follows (e.
23230 \begin_inset space \thinspace{}
23233 g., in a citation with multiple keys)
23236 \begin_layout Itemize
23237 \begin_inset Flex Code
23240 \begin_layout Plain Layout
23241 {%second%[[true]][[false]]}
23247 \begin_inset Quotes eld
23251 \begin_inset Quotes erd
23254 if this is the second of multiple items, else the
23255 \begin_inset Quotes eld
23259 \begin_inset Quotes erd
23265 \begin_layout Itemize
23266 \begin_inset Flex Code
23269 \begin_layout Plain Layout
23270 {%ifstar%[[true]][[false]]}
23276 \begin_inset Quotes eld
23280 \begin_inset Quotes erd
23283 part for starred citation commands (such as
23284 \begin_inset Flex Code
23287 \begin_layout Plain Layout
23295 ), the false part for unstarred
23298 \begin_layout Itemize
23299 \begin_inset Flex Code
23302 \begin_layout Plain Layout
23303 {%ifentrytype:<type>%[[true]][[false]]}
23309 \begin_inset Quotes eld
23313 \begin_inset Quotes erd
23316 if the current entry type matches
23317 \begin_inset Flex Code
23320 \begin_layout Plain Layout
23326 , else the false part (e.g., in a citation definition:
23327 \begin_inset Flex Code
23330 \begin_layout Plain Layout
23331 {%ifentrytype:book%[[this is a book]][[this is no book]]}
23339 \begin_layout Itemize
23340 \begin_inset Flex Code
23343 \begin_layout Plain Layout
23344 {%ifmultiple:<authortype>%[[true]][[false]]}
23350 \begin_inset Quotes eld
23354 \begin_inset Quotes erd
23357 if the current author type (author, editor etc.) has multiple authors, else
23358 the false part (e.g., in a bibliography definition:
23359 \begin_inset Flex Code
23362 \begin_layout Plain Layout
23363 {%ifmultiple:editor%[[eds.]][[ed.]]}
23371 \begin_layout Itemize
23372 \begin_inset Flex Code
23375 \begin_layout Plain Layout
23376 {%ifqualified%[[true]][[false]]}
23382 \begin_inset Quotes eld
23386 \begin_inset Quotes erd
23389 part if the current citation is a qualified citation list (a specific
23393 format for multi-reference citations), the false part if this is not the
23397 \begin_layout Standard
23399 \begin_inset Flex Code
23402 \begin_layout Plain Layout
23408 prints the author key as it is recorded in the bibliography file.
23409 This might not be what you want, since it will result in a string such
23411 \begin_inset Quotes eld
23414 Miller, Peter and Smith, Mary and White, Jane
23415 \begin_inset Quotes erd
23419 \begin_inset Quotes eld
23423 \begin_inset Quotes erd
23426 is used by Bib\SpecialChar TeX
23427 to delimit authors).
23429 therefore provides some methods to get properly formatted name lists (which
23430 will also get translated).
23431 The following keys are provided:
23434 \begin_layout Enumerate
23435 For name lists with pre- and surname, suitable for the main authors/editors
23436 of a bibliography item.
23438 \begin_inset Flex Code
23441 \begin_layout Plain Layout
23447 part denotes the kind of list that is requested (e.g.
23449 \begin_inset Flex Code
23452 \begin_layout Plain Layout
23462 \begin_layout Itemize
23463 \begin_inset Flex Code
23466 \begin_layout Plain Layout
23467 %abbrvnames:<nametype>%
23472 : Provides a name list which is abbreviated (with
23473 \begin_inset Quotes eld
23477 \begin_inset Quotes erd
23481 \begin_inset Flex Code
23484 \begin_layout Plain Layout
23493 \begin_layout Itemize
23494 \begin_inset Flex Code
23497 \begin_layout Plain Layout
23498 %fullnames:<nametype>%
23503 : Provides a full name list (never abbreviated with
23504 \begin_inset Quotes eld
23508 \begin_inset Quotes erd
23514 \begin_layout Itemize
23515 \begin_inset Flex Code
23518 \begin_layout Plain Layout
23519 %forceabbrvnames:<nametype>%
23524 : Provides a name list which is always abbreviated (with
23525 \begin_inset Quotes eld
23529 \begin_inset Quotes erd
23533 \begin_inset Flex Code
23536 \begin_layout Plain Layout
23546 \begin_layout Enumerate
23547 Alternative name lists with pre- and surname, if the order of pre- and surname
23548 inside the bibliography item differs (as in:
23549 \begin_inset Quotes eld
23552 Miller, John: Some text, in: Mary Smith, ed.: A volume
23553 \begin_inset Quotes erd
23560 \begin_layout Itemize
23561 \begin_inset Flex Code
23564 \begin_layout Plain Layout
23565 %abbrvbynames:<nametype>%
23570 : Provides a name list which is abbreviated (with
23571 \begin_inset Quotes eld
23575 \begin_inset Quotes erd
23579 \begin_inset Flex Code
23582 \begin_layout Plain Layout
23591 \begin_layout Itemize
23592 \begin_inset Flex Code
23595 \begin_layout Plain Layout
23596 %fullbynames:<nametype>%
23601 : Provides a full name list (never abbreviated with
23602 \begin_inset Quotes eld
23606 \begin_inset Quotes erd
23612 \begin_layout Itemize
23613 \begin_inset Flex Code
23616 \begin_layout Plain Layout
23617 %forceabbrvbynames:<nametype>%
23622 : Provides a name list which is always abbreviated (with
23623 \begin_inset Quotes eld
23627 \begin_inset Quotes erd
23631 \begin_inset Flex Code
23634 \begin_layout Plain Layout
23644 \begin_layout Enumerate
23645 And finally name lists which consist of family names only, as used in author-yea
23647 These do not take a
23648 \begin_inset Flex Code
23651 \begin_layout Plain Layout
23657 part, but always return either an author list or, if this does not exist,
23658 an editor list (as common in author-year labels):
23662 \begin_layout Itemize
23663 \begin_inset Flex Code
23666 \begin_layout Plain Layout
23672 : Provides a name list which is abbreviated (with
23673 \begin_inset Quotes eld
23677 \begin_inset Quotes erd
23681 \begin_inset Flex Code
23684 \begin_layout Plain Layout
23693 \begin_layout Itemize
23694 \begin_inset Flex Code
23697 \begin_layout Plain Layout
23703 : Provides a full name list (never abbreviated with
23704 \begin_inset Quotes eld
23708 \begin_inset Quotes erd
23714 \begin_layout Itemize
23715 \begin_inset Flex Code
23718 \begin_layout Plain Layout
23719 %forceabbrvciteauthor%
23724 : Provides a name list which is always abbreviated (with
23725 \begin_inset Quotes eld
23729 \begin_inset Quotes erd
23733 \begin_inset Flex Code
23736 \begin_layout Plain Layout
23746 \begin_layout Standard
23747 The order of pre- and surname in the former two lists can be adjusted by
23751 \begin_layout Itemize
23752 \begin_inset Flex Code
23755 \begin_layout Plain Layout
23756 !firstnameform %surname%, %prename%
23761 (first author in lists of type 1)
23764 \begin_layout Itemize
23765 \begin_inset Flex Code
23768 \begin_layout Plain Layout
23769 !othernameform %surname%, %prename%
23774 (other authors in lists of type 1)
23777 \begin_layout Itemize
23778 \begin_inset Flex Code
23781 \begin_layout Plain Layout
23782 !firstbynameform %prename% %surname%
23787 (first author in lists of type 2)
23790 \begin_layout Itemize
23791 \begin_inset Flex Code
23794 \begin_layout Plain Layout
23795 !otherbynameform %prename% %surname%
23800 (other authors in lists of type 2)
23803 \begin_layout Standard
23804 This allows you to configure namings like
23805 \begin_inset Quotes eld
23808 Miller, Peter and Mary Smith: \SpecialChar ldots
23809 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23811 \begin_inset Quotes erd
23817 \begin_layout Standard
23818 There is one other piece of syntax available in definitions, which looks
23820 \begin_inset Flex Code
23823 \begin_layout Plain Layout
23830 This defines a piece of formatting information that is to be used when
23832 \begin_inset Quotes eld
23836 \begin_inset Quotes erd
23840 Obviously, we do not want to output HTML tags when writing plain text,
23841 so they should be wrapped in
23842 \begin_inset Quotes eld
23846 \begin_inset Quotes erd
23850 \begin_inset Quotes eld
23854 \begin_inset Quotes erd
23860 \begin_layout Standard
23861 Two special sorts of definitions are also possible in a
23862 \begin_inset Flex Code
23865 \begin_layout Plain Layout
23872 An example of the first would be:
23875 \begin_layout LyX-Code
23877 \begin_inset Quotes eld
23881 \begin_inset Quotes erd
23887 \begin_layout Standard
23888 This is an abbreviation, or macro, and it can be used by treating it as
23890 \begin_inset Flex Code
23893 \begin_layout Plain Layout
23902 \begin_inset Flex Code
23905 \begin_layout Plain Layout
23911 exactly as it would treat its definition.
23912 So, let us issue the obvious
23920 \begin_layout LyX-Code
23924 \begin_layout Standard
23925 or anything like it.
23927 shouldn't go into an infinite loop, but it may go into a long one before
23931 \begin_layout Standard
23932 The second sort of special definition might look like this:
23935 \begin_layout LyX-Code
23939 \begin_layout Standard
23940 This defines a translatable piece of text, which allows relevant parts of
23941 the bibliography or citation to be translated.
23942 It can be included in a definition by treating it as a key:
23943 \begin_inset Flex Code
23946 \begin_layout Plain Layout
23953 Note that there are two different translation paths: All definitions starting
23955 \begin_inset Flex Code
23958 \begin_layout Plain Layout
23964 , such as in the example above, will be translated to the currently active
23965 buffer language (so the translation will match the generated document).
23966 All definitions starting with underscore only will be translated to the
23968 This is the proper translation for strings that only occur in the dialogs
23969 or on buttons, such as this one:
23972 \begin_layout LyX-Code
23973 _addtobib Add to bibliography only.
23976 \begin_layout Standard
23977 Several of these translatable strings are predefined in
23978 \begin_inset Flex Code
23981 \begin_layout Plain Layout
23988 \begin_inset Flex Code
23991 \begin_layout Plain Layout
23998 Note that these are not macros, in the sense just defined.
23999 They will not be expanded.
24002 \begin_layout Standard
24003 So here then is an example that uses several of these features:
24004 \begin_inset VSpace defskip
24010 \begin_layout Standard
24014 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24017 \begin_layout Standard
24018 \begin_inset VSpace defskip
24021 This defines a macro that prints the author, followed by a comma, if the
24023 \begin_inset Flex Code
24026 \begin_layout Plain Layout
24032 key is defined, or else prints the name of the editor, followed by the
24034 \begin_inset Flex Code
24037 \begin_layout Plain Layout
24043 or its translation (it is by default
24044 \begin_inset Quotes eld
24048 \begin_inset Quotes erd
24052 \begin_inset Flex Code
24055 \begin_layout Plain Layout
24062 Note that this is in fact defined in
24063 \begin_inset Flex Code
24066 \begin_layout Plain Layout
24072 , so you can use it in your own definitions, or re-definitions, if you load
24076 \begin_layout Section
24077 \begin_inset CommandInset label
24079 name "sec:Tags-for-XHTML"
24083 Tags for XHTML output
24086 \begin_layout Standard
24087 As with \SpecialChar LaTeX
24088 or DocBook, the format of \SpecialChar LyX
24089 's XHTML output is also controlled by
24090 layout information.
24091 In general, \SpecialChar LyX
24092 provides sensible defaults and, as mentioned earlier, it will
24093 even construct default CSS style rules from the other layout tags.
24094 For example, \SpecialChar LyX
24095 will attempt to use the information provided in the
24096 \begin_inset Flex Code
24099 \begin_layout Plain Layout
24105 declaration for the Chapter style to write CSS that will appropriately
24106 format chapter headings.
24109 \begin_layout Standard
24110 In many cases, then, you may not have to do anything at all to get acceptable
24111 XHTML output for your own environments, custom insets, and so forth.
24112 But in some cases you will, and so \SpecialChar LyX
24113 provides a number of layout tags that
24114 can be used to customize the XHTML and CSS that are generated.
24117 \begin_layout Standard
24118 Note that there are two tags,
24119 \begin_inset Flex Code
24122 \begin_layout Plain Layout
24129 \begin_inset Flex Code
24132 \begin_layout Plain Layout
24138 that may appear outside style and inset declarations.
24140 \begin_inset CommandInset ref
24142 reference "subsec:General-text-class"
24146 for details on these.
24149 \begin_layout Subsection
24150 \begin_inset CommandInset label
24152 name "subsec:Paragraph-Style-XHTML"
24159 \begin_layout Standard
24160 The sort of XHTML \SpecialChar LyX
24161 outputs for a paragraph depends upon whether we are dealing
24162 with a normal paragraph, a command, or an environment, where this is itself
24163 determined by the contents of the corresponding
24164 \begin_inset Flex Code
24167 \begin_layout Plain Layout
24178 \begin_layout Standard
24179 For a command or normal paragraph, the output XHTML has the following form:
24182 \begin_layout LyX-Code
24186 \begin_inset Quotes erd
24190 \begin_inset Quotes erd
24196 \begin_layout LyX-Code
24200 \begin_inset Quotes erd
24204 \begin_inset Quotes erd
24210 \begin_layout LyX-Code
24213 Contents of the paragraph.
24216 \begin_layout LyX-Code
24222 \begin_layout Standard
24223 The label tags are of course omitted if the paragraph does not have a label.
24226 \begin_layout Standard
24227 For an environment that is not some sort of list, the XHTML takes this form:
24230 \begin_layout LyX-Code
24234 \begin_inset Quotes erd
24238 \begin_inset Quotes erd
24244 \begin_layout LyX-Code
24248 \begin_inset Quotes erd
24252 \begin_inset Quotes erd
24256 \begin_inset Quotes erd
24260 \begin_inset Quotes erd
24263 >Environment Label</labeltag>First paragraph.</itemtag>
24266 \begin_layout LyX-Code
24269 <itemtag>Second paragraph.</itemtag>
24272 \begin_layout LyX-Code
24278 \begin_layout Standard
24279 Note that the label is output only for the first paragraph, as it should
24280 be for a theorem, for example.
24284 \begin_layout Standard
24285 For a list, we have one of these forms:
24288 \begin_layout LyX-Code
24292 \begin_inset Quotes erd
24296 \begin_inset Quotes erd
24302 \begin_layout LyX-Code
24306 \begin_inset Quotes erd
24310 \begin_inset Quotes erd
24314 \begin_inset Quotes erd
24318 \begin_inset Quotes erd
24321 >List Label</labeltag>First item.</itemtag>
24324 \begin_layout LyX-Code
24328 \begin_inset Quotes erd
24332 \begin_inset Quotes erd
24336 \begin_inset Quotes erd
24340 \begin_inset Quotes erd
24343 >List Label</labeltag>Second item.</itemtag>
24346 \begin_layout LyX-Code
24352 \begin_layout LyX-Code
24356 \begin_layout LyX-Code
24360 \begin_inset Quotes erd
24364 \begin_inset Quotes erd
24370 \begin_layout LyX-Code
24374 \begin_inset Quotes erd
24378 \begin_inset Quotes erd
24381 >List Label</labeltag><itemtag attr=
24382 \begin_inset Quotes erd
24386 \begin_inset Quotes erd
24389 >First item.</itemtag>
24392 \begin_layout LyX-Code
24396 \begin_inset Quotes erd
24400 \begin_inset Quotes erd
24403 >List Label</labeltag><itemtag attr=
24404 \begin_inset Quotes erd
24408 \begin_inset Quotes erd
24411 >Second item.</itemtag>
24414 \begin_layout LyX-Code
24420 \begin_layout Standard
24421 Note the different orders of
24422 \begin_inset Flex Code
24425 \begin_layout Plain Layout
24432 \begin_inset Flex Code
24435 \begin_layout Plain Layout
24442 Which order we get depends upon the setting of
24443 \begin_inset Flex Code
24446 \begin_layout Plain Layout
24453 \begin_inset Flex Code
24456 \begin_layout Plain Layout
24462 is false (the default), you get the first of these, with the label within
24463 the item; if true, you get the second, with the label outside the item.
24466 \begin_layout Standard
24467 The specific tags and attributes output for each paragraph type can be controlle
24468 d by means of the layout tags we are about to describe.
24469 As mentioned earlier, however, \SpecialChar LyX
24470 uses sensible defaults for many of these,
24471 so you often may not need to do very much to get good XHTML output.
24472 Think of the available tags as there so you can tweak things to your liking.
24475 \begin_layout Description
24476 \begin_inset Flex Code
24479 \begin_layout Plain Layout
24486 \begin_inset Flex Code
24489 \begin_layout Plain Layout
24495 ] Specifies attribute information to be output with the main tag.
24497 \begin_inset Quotes eld
24501 \begin_inset Flex Code
24504 \begin_layout Plain Layout
24511 \begin_inset Quotes erd
24515 By default, \SpecialChar LyX
24517 \begin_inset Quotes eld
24521 \begin_inset Flex Code
24524 \begin_layout Plain Layout
24531 \begin_inset Quotes erd
24535 \begin_inset Flex Code
24538 \begin_layout Plain Layout
24544 is the \SpecialChar LyX
24545 name of the layout, made lowercase, for example: chapter.
24550 contain any style information.
24552 \begin_inset Flex Code
24555 \begin_layout Plain Layout
24564 \begin_layout Description
24565 \begin_inset Flex Code
24568 \begin_layout Plain Layout
24575 \begin_inset Flex Code
24578 \begin_layout Plain Layout
24588 ] Whether to output the default CSS information \SpecialChar LyX
24589 generates for this layout,
24590 even if additional information is explicitly provided via
24591 \begin_inset Flex Code
24594 \begin_layout Plain Layout
24602 \begin_inset Flex Code
24605 \begin_layout Plain Layout
24611 allows you to alter or augment the generated CSS, rather than to override
24614 \begin_inset Flex Code
24617 \begin_layout Plain Layout
24626 \begin_layout Description
24627 \begin_inset Flex Code
24630 \begin_layout Plain Layout
24637 \begin_inset Flex Code
24640 \begin_layout Plain Layout
24646 ] The tag to be used for individual paragraphs of environments, replacing
24648 \begin_inset Flex Code
24651 \begin_layout Plain Layout
24657 in the examples above.
24659 \begin_inset Flex Code
24662 \begin_layout Plain Layout
24671 \begin_layout Description
24672 \begin_inset Flex Code
24675 \begin_layout Plain Layout
24682 \begin_inset Flex Code
24685 \begin_layout Plain Layout
24691 ] Attributes for the item tag.
24693 \begin_inset Newline newline
24697 \begin_inset Quotes eld
24701 \begin_inset Flex Code
24704 \begin_layout Plain Layout
24705 class=`layoutname_item'
24711 \begin_inset Quotes erd
24719 contain any style information.
24721 \begin_inset Flex Code
24724 \begin_layout Plain Layout
24733 \begin_layout Description
24734 \begin_inset Flex Code
24737 \begin_layout Plain Layout
24744 \begin_inset Flex Code
24747 \begin_layout Plain Layout
24753 ] The tag to be used for paragraph and item labels, replacing
24754 \begin_inset Flex Code
24757 \begin_layout Plain Layout
24763 in the examples above.
24765 \begin_inset Flex Code
24768 \begin_layout Plain Layout
24775 \begin_inset Flex Code
24778 \begin_layout Plain Layout
24785 \begin_inset Flex Code
24788 \begin_layout Plain Layout
24795 \begin_inset Flex Code
24798 \begin_layout Plain Layout
24799 Centered_Top_Environment
24804 , in which case it defaults to
24805 \begin_inset Flex Code
24808 \begin_layout Plain Layout
24817 \begin_layout Description
24818 \begin_inset Flex Code
24821 \begin_layout Plain Layout
24828 \begin_inset Flex Code
24831 \begin_layout Plain Layout
24837 ] Attributes for the label tag.
24839 \begin_inset Newline newline
24843 \begin_inset Quotes eld
24847 \begin_inset Flex Code
24850 \begin_layout Plain Layout
24851 class=`layoutname_label'
24857 \begin_inset Quotes erd
24865 contain any style information.
24867 \begin_inset Flex Code
24870 \begin_layout Plain Layout
24879 \begin_layout Description
24880 \begin_inset Flex Code
24883 \begin_layout Plain Layout
24890 \begin_inset Flex Code
24893 \begin_layout Plain Layout
24903 ] Meaningful only for list-like environments, this tag controls whether
24904 the label tag is output before or inside the item tag.
24905 This is used, for example, in the description environment, where we want
24907 \begin_inset Flex Code
24910 \begin_layout Plain Layout
24911 <dt>\SpecialChar ldots
24912 </dt><dd>\SpecialChar ldots
24920 \begin_inset Flex Code
24923 \begin_layout Plain Layout
24929 : The label tag is output inside the item tag.
24932 \begin_layout Description
24933 \begin_inset Flex Code
24936 \begin_layout Plain Layout
24942 Information to be output in the
24943 \begin_inset Flex Code
24946 \begin_layout Plain Layout
24952 section when this style is used.
24953 This might, for example, be used to include a
24954 \begin_inset Flex Code
24957 \begin_layout Plain Layout
24964 \begin_inset Flex Code
24967 \begin_layout Plain Layout
24976 \begin_layout Description
24977 \begin_inset Flex Code
24980 \begin_layout Plain Layout
24986 CSS style information to be included when this style is used.
24987 Note that this will automatically be wrapped in a layout-generated
24988 \begin_inset Flex Code
24991 \begin_layout Plain Layout
24997 block, so only the CSS itself need be included.
24999 \begin_inset Flex Code
25002 \begin_layout Plain Layout
25011 \begin_layout Description
25012 \begin_inset Flex Code
25015 \begin_layout Plain Layout
25022 \begin_inset Flex Code
25025 \begin_layout Plain Layout
25031 ] The tag to be used for the main label, replacing
25032 \begin_inset Flex Code
25035 \begin_layout Plain Layout
25041 in the examples above.
25043 \begin_inset Flex Code
25046 \begin_layout Plain Layout
25055 \begin_layout Description
25056 \begin_inset Flex Code
25059 \begin_layout Plain Layout
25066 \begin_inset Flex Code
25069 \begin_layout Plain Layout
25079 ] Marks this style as the one to be used to generate the
25080 \begin_inset Flex Code
25083 \begin_layout Plain Layout
25089 tag for the XHTML file.
25090 By default, it is false.
25092 \begin_inset Flex Code
25095 \begin_layout Plain Layout
25101 file sets it to true for the
25102 \begin_inset Flex Code
25105 \begin_layout Plain Layout
25115 \begin_layout Subsection
25119 \begin_layout Standard
25120 The XHTML output of insets can also be controlled by information in layout
25125 \begin_layout Plain Layout
25126 At present, this is true only for
25127 \begin_inset Quotes eld
25131 \begin_inset Quotes erd
25134 insets (insets you can type into) and is not true for
25135 \begin_inset Quotes eld
25139 \begin_inset Quotes erd
25142 insets (insets that are associated with dialog boxes).
25147 Here, too, \SpecialChar LyX
25148 tries to provide sensible defaults, and it constructs default
25150 But everything can be customized.
25153 \begin_layout Standard
25154 The XHTML \SpecialChar LyX
25155 outputs for an inset has the following form:
25158 \begin_layout LyX-Code
25160 \begin_inset Quotes erd
25164 \begin_inset Quotes erd
25170 \begin_layout LyX-Code
25171 <labeltag>Label</labeltag>
25174 \begin_layout LyX-Code
25176 \begin_inset Quotes erd
25180 \begin_inset Quotes erd
25183 >Contents of the inset.</innertag>
25186 \begin_layout LyX-Code
25190 \begin_layout Standard
25191 If the inset permits multiple paragraphs—that is, if
25192 \begin_inset Flex Code
25195 \begin_layout Plain Layout
25201 is true—then the contents of the inset will itself be output as paragraphs
25202 formatted according to the styles used for those paragraphs (standard,
25203 quote, and the like).
25204 The label tag is of course omitted if the paragraph does not have a label
25205 and, at present, is always
25206 \begin_inset Flex Code
25209 \begin_layout Plain Layout
25216 The inner tag is optional and, by default, does not appear.
25219 \begin_layout Standard
25220 The specific tags and attributes output for each inset can be controlled
25221 by means of the following layout tags.
25224 \begin_layout Description
25225 \begin_inset Flex Code
25228 \begin_layout Plain Layout
25235 \begin_inset Flex Code
25238 \begin_layout Plain Layout
25244 ] Specifies attribute information to be output with the main tag.
25246 \begin_inset Quotes eld
25250 \begin_inset Flex Code
25253 \begin_layout Plain Layout
25254 class=`myinset' onclick=`\SpecialChar ldots
25261 \begin_inset Quotes erd
25265 By default, \SpecialChar LyX
25267 \begin_inset Quotes eld
25271 \begin_inset Flex Code
25274 \begin_layout Plain Layout
25281 \begin_inset Quotes erd
25285 \begin_inset Flex Code
25288 \begin_layout Plain Layout
25294 is the \SpecialChar LyX
25295 name of the inset, made lowercase and with non-alphanumeric characters
25296 converted to underscores, for example: footnote.
25299 \begin_layout Description
25300 \begin_inset Flex Code
25303 \begin_layout Plain Layout
25310 \begin_inset Flex Code
25313 \begin_layout Plain Layout
25323 ] Whether to output the default CSS information \SpecialChar LyX
25324 generates for this layout,
25325 even if additional information is explicitly provided via
25326 \begin_inset Flex Code
25329 \begin_layout Plain Layout
25337 \begin_inset Flex Code
25340 \begin_layout Plain Layout
25346 allows you to alter or augment the generated CSS, rather than to override
25351 \begin_layout Description
25352 \begin_inset Flex Code
25355 \begin_layout Plain Layout
25362 \begin_inset Flex Code
25365 \begin_layout Plain Layout
25371 ] Attributes for the inner tag.
25373 \begin_inset Newline newline
25377 \begin_inset Quotes eld
25381 \begin_inset Flex Code
25384 \begin_layout Plain Layout
25385 class=`insetname_inner'
25391 \begin_inset Quotes erd
25397 \begin_layout Description
25398 \begin_inset Flex Code
25401 \begin_layout Plain Layout
25408 \begin_inset Flex Code
25411 \begin_layout Plain Layout
25417 ] The inner tag, replacing
25418 \begin_inset Flex Code
25421 \begin_layout Plain Layout
25427 in the examples above.
25428 By default, there is none.
25431 \begin_layout Description
25432 \begin_inset Flex Code
25435 \begin_layout Plain Layout
25442 \begin_inset Flex Code
25445 \begin_layout Plain Layout
25453 ] Whether this inset represents a standalone block of text (such as a footnote)
25454 or instead represents material that is included in the surrounding text
25455 (such as a branch).
25459 \begin_layout Description
25460 \begin_inset Flex Code
25463 \begin_layout Plain Layout
25470 \begin_inset Flex Code
25473 \begin_layout Plain Layout
25479 ] A label for this inset, possibly including a reference to a counter.
25480 For example, for footnote, it might be:
25481 \begin_inset Flex Code
25484 \begin_layout Plain Layout
25493 This is optional, and there is no default.
25496 \begin_layout Description
25497 \begin_inset Flex Code
25500 \begin_layout Plain Layout
25506 Information to be output in the
25507 \begin_inset Flex Code
25510 \begin_layout Plain Layout
25516 section when this style is used.
25517 This might, for example, be used to include a
25518 \begin_inset Flex Code
25521 \begin_layout Plain Layout
25528 \begin_inset Flex Code
25531 \begin_layout Plain Layout
25540 \begin_layout Description
25541 \begin_inset Flex Code
25544 \begin_layout Plain Layout
25550 CSS style information to be included when this style is used.
25551 Note that this will automatically be wrapped in a layout-generated
25552 \begin_inset Flex Code
25555 \begin_layout Plain Layout
25561 block, so only the CSS itself need be included.
25564 \begin_layout Description
25565 \begin_inset Flex Code
25568 \begin_layout Plain Layout
25575 \begin_inset Flex Code
25578 \begin_layout Plain Layout
25584 ] The tag to be used for the main label, replacing
25585 \begin_inset Flex Code
25588 \begin_layout Plain Layout
25594 in the examples above.
25595 The default depends upon the setting of
25596 \begin_inset Flex Code
25599 \begin_layout Plain Layout
25606 \begin_inset Flex Code
25609 \begin_layout Plain Layout
25615 is true, the default is
25616 \begin_inset Flex Code
25619 \begin_layout Plain Layout
25625 ; if it is false, the default is
25626 \begin_inset Flex Code
25629 \begin_layout Plain Layout
25638 \begin_layout Subsection
25642 \begin_layout Standard
25643 The XHTML output for floats too can be controlled by layout information.
25644 The output has the following form:
25647 \begin_layout LyX-Code
25649 \begin_inset Quotes erd
25653 \begin_inset Quotes erd
25659 \begin_layout LyX-Code
25660 Contents of the float.
25663 \begin_layout LyX-Code
25667 \begin_layout Standard
25668 The caption, if there is one, is a separate inset and will be output as
25670 Its appearance can be controlled via the InsetLayout for caption insets.
25674 \begin_layout Description
25675 \begin_inset Flex Code
25678 \begin_layout Plain Layout
25685 \begin_inset Flex Code
25688 \begin_layout Plain Layout
25694 ] Specifies attribute information to be output with the main tag.
25696 \begin_inset Quotes eld
25700 \begin_inset Flex Code
25703 \begin_layout Plain Layout
25704 class=`myfloat' onclick=`\SpecialChar ldots
25711 \begin_inset Quotes erd
25715 By default, \SpecialChar LyX
25717 \begin_inset Quotes eld
25721 \begin_inset Flex Code
25724 \begin_layout Plain Layout
25725 class=`float float-floattype'
25731 \begin_inset Quotes erd
25735 \begin_inset Flex Code
25738 \begin_layout Plain Layout
25744 is \SpecialChar LyX
25745 's name for this type of float, as determined by the float declaration
25747 \begin_inset CommandInset ref
25749 reference "subsec:Floats"
25753 ), though made lowercase and with non-alphanumeric characters converted
25754 to underscores, for example: float-table.
25757 \begin_layout Description
25758 \begin_inset Flex Code
25761 \begin_layout Plain Layout
25767 CSS style information to be included when this float is used.
25768 Note that this will automatically be wrapped in a layout-generated
25769 \begin_inset Flex Code
25772 \begin_layout Plain Layout
25778 block, so only the CSS itself need be included.
25781 \begin_layout Description
25782 \begin_inset Flex Code
25785 \begin_layout Plain Layout
25792 \begin_inset Flex Code
25795 \begin_layout Plain Layout
25801 ] The tag to be used for this float, replacing
25802 \begin_inset Quotes eld
25806 \begin_inset Flex Code
25809 \begin_layout Plain Layout
25816 \begin_inset Quotes erd
25819 in the example above.
25821 \begin_inset Flex Code
25824 \begin_layout Plain Layout
25830 and will rarely need changing.
25833 \begin_layout Subsection
25834 Bibliography formatting
25837 \begin_layout Standard
25838 The bibliography can be formatted using
25839 \begin_inset Flex Code
25842 \begin_layout Plain Layout
25850 \begin_inset CommandInset ref
25852 reference "subsec:Citation-format-description"
25859 \begin_layout Subsection
25864 \begin_layout Standard
25865 We have several times mentioned that \SpecialChar LyX
25866 will generate default CSS style rules
25867 for both insets and paragraph styles, based upon the other layout information
25869 In this section, we shall say a word about which layout information \SpecialChar LyX
25874 \begin_layout Standard
25875 At present, \SpecialChar LyX
25876 auto-generates CSS only for font information, making use of
25878 \begin_inset Flex Code
25881 \begin_layout Plain Layout
25888 \begin_inset Flex Code
25891 \begin_layout Plain Layout
25898 \begin_inset Flex Code
25901 \begin_layout Plain Layout
25908 \begin_inset Flex Code
25911 \begin_layout Plain Layout
25918 \begin_inset Flex Code
25921 \begin_layout Plain Layout
25928 \begin_inset CommandInset ref
25930 reference "subsec:Font-description"
25935 The translation is mostly straightforward and obvious.
25937 \begin_inset Quotes eld
25941 \begin_inset Flex Code
25944 \begin_layout Plain Layout
25951 \begin_inset Quotes erd
25955 \begin_inset Quotes eld
25959 \begin_inset Flex Code
25962 \begin_layout Plain Layout
25963 font-family: sans-serif;
25969 \begin_inset Quotes erd
25973 The correspondence of \SpecialChar LyX
25974 sizes and CSS sizes is a little less obvious but
25975 nonetheless intuitive.
25977 \begin_inset Flex Code
25980 \begin_layout Plain Layout
25987 \begin_inset Flex URL
25990 \begin_layout Plain Layout
26000 \begin_layout Chapter
26001 Including External Material
26002 \begin_inset CommandInset label
26004 name "chap:Including-External-Material"
26011 \begin_layout Standard
26012 \begin_inset Box Shadowbox
26022 height_special "totalheight"
26027 backgroundcolor "none"
26030 \begin_layout Plain Layout
26031 WARNING: This portion of the documentation has not been updated for some
26033 We certainly hope that it is still accurate, but there are no guarantees.
26041 \begin_layout Standard
26042 The use of material from sources external to \SpecialChar LyX
26043 is covered in detail in the
26049 This part of the manual covers what needs to happen behind the scenes for
26050 new sorts of material to be included.
26053 \begin_layout Section
26057 \begin_layout Standard
26058 The external material feature is based on the concept of a
26063 A template is a specification of how \SpecialChar LyX
26064 should interface with a certain kind
26066 As bundled, \SpecialChar LyX
26067 comes with predefined templates for Xfig figures, various
26068 raster format images, chess diagrams, and LilyPond music notation.
26069 You can check the actual list by using the menu
26070 \begin_inset Flex Noun
26073 \begin_layout Plain Layout
26074 Insert\SpecialChar menuseparator
26075 File\SpecialChar menuseparator
26082 Furthermore, it is possible to roll your own template to support a specific
26084 Later we'll describe in more detail what is involved, and hopefully you
26085 will submit all the templates you create so we can include them in a later
26090 \begin_layout Standard
26091 Another basic idea of the external material feature is to distinguish between
26092 the original file that serves as a base for final material and the produced
26093 file that is included in your exported or printed document.
26094 For example, consider the case of a figure produced with
26095 \begin_inset Flex Code
26098 \begin_layout Plain Layout
26105 The Xfig application itself works on an original file with the
26106 \begin_inset Flex Code
26109 \begin_layout Plain Layout
26116 Within Xfig, you create and change your figure, and when you are done,
26118 \begin_inset Flex Code
26121 \begin_layout Plain Layout
26128 When you want to include the figure in your document, you invoke
26129 \begin_inset Flex Code
26132 \begin_layout Plain Layout
26138 in order to create a PostScript file that can readily be included in your
26142 \begin_inset Flex Code
26145 \begin_layout Plain Layout
26151 file is the original file, and the PostScript file is the produced file.
26154 \begin_layout Standard
26155 This distinction is important in order to allow updating of the material
26156 while you are in the process of writing the document.
26157 Furthermore, it provides us with the flexibility that is needed to support
26158 multiple export formats.
26159 For instance, in the case of a plain text file, it is not exactly an award-winn
26160 ing idea to include the figure as raw PostScript.
26161 Instead, you would either prefer to just include a reference to the figure
26162 or try to invoke some graphics to ASCII converter to make the final result
26163 look similar to the real graphics.
26164 The external material management allows you to do this, because it is parametri
26165 zed on the different export formats that \SpecialChar LyX
26169 \begin_layout Standard
26170 Besides supporting the production of different products according to the
26171 exported format, it supports tight integration with editing and viewing
26173 In the case of an Xfig figure, you are able to invoke Xfig on the original
26174 file with a single click from within the external material dialog in \SpecialChar LyX
26176 and also preview the produced PostScript file with Ghostview with another
26178 No more fiddling around with the command line and/or file browsers to locate
26179 and manipulate the original or produced files.
26180 In this way, you are finally able to take full advantage of the many different
26181 applications that are relevant to use when you write your documents, and
26182 ultimately be more productive.
26185 \begin_layout Section
26186 The external template configuration files
26189 \begin_layout Standard
26190 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26192 However, be aware that doing this in an careless manner most probably
26196 introduce an easily exploitable security hole.
26197 So before you do this, please read the discussion about security in
26198 \begin_inset CommandInset ref
26200 reference "sec:Security-discussion"
26207 \begin_layout Standard
26208 Having said that, we encourage you to submit any interesting templates that
26213 \begin_layout Standard
26214 The external templates are defined in the
26215 \begin_inset Flex Code
26218 \begin_layout Plain Layout
26224 files that are stored in the
26225 \begin_inset Flex Code
26228 \begin_layout Plain Layout
26229 LyXDir/lib/xtemplates/
26235 Each template is defined in a file of its own.
26236 You can place your own templates in
26237 \begin_inset Flex Code
26240 \begin_layout Plain Layout
26241 UserDir/xtemplates/
26246 or copy existing templates to that directory in order to modify them.
26249 \begin_layout Standard
26250 A typical template looks like this:
26253 \begin_layout LyX-Code
26257 \begin_layout LyX-Code
26258 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26261 \begin_layout LyX-Code
26265 \begin_layout LyX-Code
26269 \begin_layout LyX-Code
26273 \begin_layout LyX-Code
26277 \begin_layout LyX-Code
26281 \begin_layout LyX-Code
26282 AutomaticProduction true
26285 \begin_layout LyX-Code
26289 \begin_layout LyX-Code
26293 \begin_layout LyX-Code
26297 \begin_layout LyX-Code
26298 TransformCommand Rotate RotationLatexCommand
26301 \begin_layout LyX-Code
26302 TransformCommand Resize ResizeLatexCommand
26305 \begin_layout LyX-Code
26306 Product "$$RotateFront$$ResizeFront
26309 \begin_layout LyX-Code
26314 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26317 \begin_layout LyX-Code
26318 $$ResizeBack$$RotateBack"
26321 \begin_layout LyX-Code
26325 \begin_layout LyX-Code
26326 UpdateResult "$$AbsPath$$Basename.pstex_t"
26329 \begin_layout LyX-Code
26330 Requirement "graphicx"
26333 \begin_layout LyX-Code
26334 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26337 \begin_layout LyX-Code
26338 ReferencedFile latex "$$AbsPath$$Basename.eps"
26341 \begin_layout LyX-Code
26342 ReferencedFile dvi "$$AbsPath$$Basename.eps"
26345 \begin_layout LyX-Code
26349 \begin_layout LyX-Code
26353 \begin_layout LyX-Code
26354 TransformCommand Rotate RotationLatexCommand
26357 \begin_layout LyX-Code
26358 TransformCommand Resize ResizeLatexCommand
26361 \begin_layout LyX-Code
26362 Product "$$RotateFront$$ResizeFront
26365 \begin_layout LyX-Code
26370 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
26373 \begin_layout LyX-Code
26374 $$ResizeBack$$RotateBack"
26377 \begin_layout LyX-Code
26378 UpdateFormat pdftex
26381 \begin_layout LyX-Code
26382 UpdateResult "$$AbsPath$$Basename.pdftex_t"
26385 \begin_layout LyX-Code
26386 Requirement "graphicx"
26389 \begin_layout LyX-Code
26390 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
26393 \begin_layout LyX-Code
26394 ReferencedFile latex "$$AbsPath$$Basename.pdf"
26397 \begin_layout LyX-Code
26401 \begin_layout LyX-Code
26405 \begin_layout LyX-Code
26406 Product "[XFig: $$FName]"
26409 \begin_layout LyX-Code
26413 \begin_layout LyX-Code
26417 \begin_layout LyX-Code
26418 Product "<graphic fileref=
26420 "$$AbsOrRelPathMaster$$Basename.eps
26425 \begin_layout LyX-Code
26429 \begin_layout LyX-Code
26433 \begin_layout LyX-Code
26434 UpdateResult "$$AbsPath$$Basename.eps"
26437 \begin_layout LyX-Code
26438 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26441 \begin_layout LyX-Code
26442 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26445 \begin_layout LyX-Code
26449 \begin_layout LyX-Code
26453 \begin_layout Standard
26454 As you can see, the template is enclosed in
26455 \begin_inset Flex Code
26458 \begin_layout Plain Layout
26466 \begin_inset Flex Code
26469 \begin_layout Plain Layout
26476 It contains a header specifying some general settings and, for each supported
26477 primary document file format, a section
26478 \begin_inset Flex Code
26481 \begin_layout Plain Layout
26489 \begin_inset Flex Code
26492 \begin_layout Plain Layout
26501 \begin_layout Subsection
26502 The template header
26505 \begin_layout Description
26506 \begin_inset Flex Code
26509 \begin_layout Plain Layout
26510 AutomaticProduction
26511 \begin_inset space ~
26519 Whether the file represented by the template must be generated by \SpecialChar LyX
26521 This command must occur exactly once.
26524 \begin_layout Description
26525 \begin_inset Flex Code
26528 \begin_layout Plain Layout
26530 \begin_inset space ~
26538 A glob pattern that is used in the file dialog to filter out the desired
26540 If there is more than one possible file extension (e.
26541 \begin_inset space \thinspace{}
26545 \begin_inset space \space{}
26549 \begin_inset Flex Code
26552 \begin_layout Plain Layout
26559 \begin_inset Flex Code
26562 \begin_layout Plain Layout
26568 ), use something like
26569 \begin_inset Flex Code
26572 \begin_layout Plain Layout
26579 This command must occur exactly once.
26582 \begin_layout Description
26583 \begin_inset Flex Code
26586 \begin_layout Plain Layout
26588 \begin_inset space ~
26596 The text that is displayed on the button.
26597 This command must occur exactly once.
26600 \begin_layout Description
26601 \begin_inset Flex Code
26604 \begin_layout Plain Layout
26606 \begin_inset space ~
26610 \begin_inset space ~
26618 The help text that is used in the External dialog.
26619 Provide enough information to explain to the user just what the template
26620 can provide him with.
26621 This command must occur exactly once.
26624 \begin_layout Description
26625 \begin_inset Flex Code
26628 \begin_layout Plain Layout
26630 \begin_inset space ~
26638 The file format of the original file.
26639 This must be the name of a format that is known to \SpecialChar LyX
26641 \begin_inset CommandInset ref
26643 reference "sec:Formats"
26649 \begin_inset Quotes eld
26653 \begin_inset Flex Code
26656 \begin_layout Plain Layout
26663 \begin_inset Quotes erd
26666 if the template can handle original files of more than one format.
26668 will attempt to interrogate the file itself in order to deduce its format
26670 This command must occur exactly once.
26673 \begin_layout Description
26674 \begin_inset Flex Code
26677 \begin_layout Plain Layout
26679 \begin_inset space ~
26687 A unique name for the template.
26688 It must not contain substitution macros (see below).
26691 \begin_layout Description
26692 \begin_inset Flex Code
26695 \begin_layout Plain Layout
26697 \begin_inset space ~
26700 Rotate|Resize|Clip|Extra
26705 This command specifies which transformations are supported by this template.
26706 It may occur zero or more times.
26707 This command enables the corresponding tabs in the external dialog.
26709 \begin_inset Flex Code
26712 \begin_layout Plain Layout
26718 command must have either a corresponding
26719 \begin_inset Flex Code
26722 \begin_layout Plain Layout
26729 \begin_inset Flex Code
26732 \begin_layout Plain Layout
26739 \begin_inset Flex Code
26742 \begin_layout Plain Layout
26749 Otherwise the transformation will not be supported by that format.
26752 \begin_layout Subsection
26756 \begin_layout Description
26757 \begin_inset Flex Code
26760 \begin_layout Plain Layout
26762 \begin_inset space ~
26765 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26770 The primary document file format that this format definition is for.
26771 Not every template has a sensible representation in all document file formats.
26772 Please define nevertheless a
26773 \begin_inset Flex Code
26776 \begin_layout Plain Layout
26782 section for all templates.
26783 Use a dummy text when no representation is available.
26784 Then you can at least see a reference to the external material in the exported
26788 \begin_layout Description
26789 \begin_inset Flex Code
26792 \begin_layout Plain Layout
26794 \begin_inset space ~
26798 \begin_inset space ~
26806 This command defines an additional macro
26807 \begin_inset Flex Code
26810 \begin_layout Plain Layout
26816 for substitution in
26817 \begin_inset Flex Code
26820 \begin_layout Plain Layout
26828 \begin_inset Flex Code
26831 \begin_layout Plain Layout
26837 itself may contain substitution macros.
26838 The advantage over using
26839 \begin_inset Flex Code
26842 \begin_layout Plain Layout
26849 \begin_inset Flex Code
26852 \begin_layout Plain Layout
26858 is that the substituted value of
26859 \begin_inset Flex Code
26862 \begin_layout Plain Layout
26868 is sanitized so that it is a valid optional argument in the document format.
26869 This command may occur zero or more times.
26872 \begin_layout Description
26873 \begin_inset Flex Code
26876 \begin_layout Plain Layout
26878 \begin_inset space ~
26886 The text that is inserted in the exported document.
26887 This is actually the most important command and can be quite complex.
26888 This command must occur exactly once.
26891 \begin_layout Description
26892 \begin_inset Flex Code
26895 \begin_layout Plain Layout
26897 \begin_inset space ~
26905 This command specifies a preamble snippet that will be included in the
26908 It has to be defined using
26909 \begin_inset Flex Code
26912 \begin_layout Plain Layout
26920 \begin_inset Flex Code
26923 \begin_layout Plain Layout
26930 This command may occur zero or more times.
26933 \begin_layout Description
26934 \begin_inset Flex Code
26937 \begin_layout Plain Layout
26939 \begin_inset space ~
26943 \begin_inset space ~
26951 This command denotes files that are created by the conversion process and
26952 are needed for a particular export format.
26953 If the filename is relative, it is interpreted relative to the master document.
26954 This command may be given zero or more times.
26957 \begin_layout Description
26958 \begin_inset Flex Code
26961 \begin_layout Plain Layout
26963 \begin_inset space ~
26971 The name of a required \SpecialChar LaTeX
26973 The package is included via
26974 \begin_inset Flex Code
26977 \begin_layout Plain Layout
26985 in the \SpecialChar LaTeX
26987 This command may occur zero or more times.
26990 \begin_layout Description
26991 \begin_inset Flex Code
26994 \begin_layout Plain Layout
26996 \begin_inset space ~
27000 \begin_inset space ~
27003 RotationLatexCommand
27008 This command specifies that the built in \SpecialChar LaTeX
27009 command should be used for rotation.
27010 This command may occur once or not at all.
27013 \begin_layout Description
27014 \begin_inset Flex Code
27017 \begin_layout Plain Layout
27019 \begin_inset space ~
27023 \begin_inset space ~
27031 This command specifies that the built in \SpecialChar LaTeX
27032 command should be used for resizing.
27033 This command may occur once or not at all.
27036 \begin_layout Description
27037 \begin_inset Flex Code
27040 \begin_layout Plain Layout
27042 \begin_inset space ~
27046 \begin_inset space ~
27049 RotationLatexOption
27054 This command specifies that rotation is done via an optional argument.
27055 This command may occur once or not at all.
27058 \begin_layout Description
27059 \begin_inset Flex Code
27062 \begin_layout Plain Layout
27064 \begin_inset space ~
27068 \begin_inset space ~
27076 This command specifies that resizing is done via an optional argument.
27077 This command may occur once or not at all.
27080 \begin_layout Description
27081 \begin_inset Flex Code
27084 \begin_layout Plain Layout
27086 \begin_inset space ~
27090 \begin_inset space ~
27098 This command specifies that clipping is done via an optional argument.
27099 This command may occur once or not at all.
27102 \begin_layout Description
27103 \begin_inset Flex Code
27106 \begin_layout Plain Layout
27108 \begin_inset space ~
27112 \begin_inset space ~
27120 This command specifies that an extra optional argument is used.
27121 This command may occur once or not at all.
27124 \begin_layout Description
27125 \begin_inset Flex Code
27128 \begin_layout Plain Layout
27130 \begin_inset space ~
27138 The file format of the converted file.
27139 This must be the name of a format that is known to \SpecialChar LyX
27141 \begin_inset Flex Noun
27144 \begin_layout Plain Layout
27145 Tools\SpecialChar menuseparator
27146 Preferences\SpecialChar menuseparator
27147 File Handling\SpecialChar menuseparator
27154 This command must occur exactly once.
27155 If the resulting file format is PDF, you need to specify the format
27156 \begin_inset Flex Code
27159 \begin_layout Plain Layout
27166 This is the PDF format used for including graphics.
27167 The other defined PDF formats are for document export.
27170 \begin_layout Description
27171 \begin_inset Flex Code
27174 \begin_layout Plain Layout
27176 \begin_inset space ~
27184 The file name of the converted file.
27185 The file name must be absolute.
27186 This command must occur exactly once.
27189 \begin_layout Subsection
27190 Preamble definitions
27193 \begin_layout Standard
27194 The external template configuration file may contain additional preamble
27195 definitions enclosed by
27196 \begin_inset Flex Code
27199 \begin_layout Plain Layout
27207 \begin_inset Flex Code
27210 \begin_layout Plain Layout
27217 They can be used by the templates in the
27218 \begin_inset Flex Code
27221 \begin_layout Plain Layout
27230 \begin_layout Section
27231 The substitution mechanism
27234 \begin_layout Standard
27235 When the external material facility invokes an external program, it is done
27236 on the basis of a command defined in the template configuration file.
27237 These commands can contain various macros that are expanded before execution.
27238 Execution always take place in the directory of the containing document.
27241 \begin_layout Standard
27242 Also, whenever external material is to be displayed, the name will be produced
27243 by the substitution mechanism, and most other commands in the template
27244 definition support substitution as well.
27247 \begin_layout Standard
27248 The available macros are the following:
27251 \begin_layout Description
27252 \begin_inset Flex Code
27255 \begin_layout Plain Layout
27256 $$AbsOrRelPathMaster
27261 The file path, absolute or relative to the master \SpecialChar LyX
27265 \begin_layout Description
27266 \begin_inset Flex Code
27269 \begin_layout Plain Layout
27270 $$AbsOrRelPathParent
27275 The file path, absolute or relative to the \SpecialChar LyX
27279 \begin_layout Description
27280 \begin_inset Flex Code
27283 \begin_layout Plain Layout
27289 The absolute file path.
27292 \begin_layout Description
27293 \begin_inset Flex Code
27296 \begin_layout Plain Layout
27302 The filename without path and without the extension.
27305 \begin_layout Description
27306 \begin_inset Flex Code
27309 \begin_layout Plain Layout
27311 \begin_inset Quotes eld
27315 \begin_inset Quotes erd
27323 This macro will expand to the contents of the file with the name
27324 \begin_inset Flex Code
27327 \begin_layout Plain Layout
27336 \begin_layout Description
27337 \begin_inset Flex Code
27340 \begin_layout Plain Layout
27346 The file extension (including the dot).
27349 \begin_layout Description
27350 \begin_inset Flex Code
27353 \begin_layout Plain Layout
27359 This will be the string
27360 \begin_inset Quotes eld
27364 \begin_inset Quotes erd
27367 if the file is in JPEG format, otherwise it will be the string
27368 \begin_inset Quotes eld
27372 \begin_inset Quotes erd
27376 This is useful to avoid uneeded conversions for output formats that support
27377 both PNG and JPEG fomats.
27378 The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
27383 \begin_layout Description
27384 \begin_inset Flex Code
27387 \begin_layout Plain Layout
27393 The filename of the file specified in the external material dialog.
27394 This is either an absolute name, or it is relative to the \SpecialChar LyX
27398 \begin_layout Description
27399 \begin_inset Flex Code
27402 \begin_layout Plain Layout
27409 \begin_inset Flex Code
27412 \begin_layout Plain Layout
27418 (absolute name or relative to the \SpecialChar LyX
27422 \begin_layout Description
27423 \begin_inset Flex Code
27426 \begin_layout Plain Layout
27432 The file path, relative to the master \SpecialChar LyX
27436 \begin_layout Description
27437 \begin_inset Flex Code
27440 \begin_layout Plain Layout
27446 The file path, relative to the \SpecialChar LyX
27450 \begin_layout Description
27451 \begin_inset Flex Code
27454 \begin_layout Plain Layout
27460 This macro will expand to the absolute path of the system directory.
27461 This is typically used to point to the various helper scripts that are
27462 bundled with \SpecialChar LyX
27466 \begin_layout Description
27467 \begin_inset Flex Code
27470 \begin_layout Plain Layout
27476 A name and full path to a temporary file which will be automatically deleted
27477 whenever the containing document is closed, or the external material insertion
27481 \begin_layout Standard
27482 All path macros contain a trailing directory separator, so you can construct
27484 \begin_inset space \thinspace{}
27488 \begin_inset space \space{}
27491 the absolute filename with
27492 \begin_inset Flex Code
27495 \begin_layout Plain Layout
27496 $$AbsPath$$Basename$$Extension
27504 \begin_layout Standard
27505 The macros above are substituted in all commands unless otherwise noted.
27507 \begin_inset Flex Code
27510 \begin_layout Plain Layout
27516 supports additionally the following substitutions if they are enabled by
27518 \begin_inset Flex Code
27521 \begin_layout Plain Layout
27528 \begin_inset Flex Code
27531 \begin_layout Plain Layout
27540 \begin_layout Description
27541 \begin_inset Flex Code
27544 \begin_layout Plain Layout
27550 The front part of the resize command.
27553 \begin_layout Description
27554 \begin_inset Flex Code
27557 \begin_layout Plain Layout
27563 The back part of the resize command.
27566 \begin_layout Description
27567 \begin_inset Flex Code
27570 \begin_layout Plain Layout
27576 The front part of the rotation command.
27579 \begin_layout Description
27580 \begin_inset Flex Code
27583 \begin_layout Plain Layout
27589 The back part of the rotation command.
27592 \begin_layout Standard
27593 The value string of the
27594 \begin_inset Flex Code
27597 \begin_layout Plain Layout
27603 command supports additionally the following substitutions if they are enabled
27605 \begin_inset Flex Code
27608 \begin_layout Plain Layout
27615 \begin_inset Flex Code
27618 \begin_layout Plain Layout
27627 \begin_layout Description
27628 \begin_inset Flex Code
27631 \begin_layout Plain Layout
27640 \begin_layout Description
27641 \begin_inset Flex Code
27644 \begin_layout Plain Layout
27653 \begin_layout Description
27654 \begin_inset Flex Code
27657 \begin_layout Plain Layout
27666 \begin_layout Description
27667 \begin_inset Flex Code
27670 \begin_layout Plain Layout
27676 The rotation option.
27679 \begin_layout Standard
27680 You may ask why there are so many path macros.
27681 There are mainly two reasons:
27684 \begin_layout Enumerate
27685 Relative and absolute file names should remain relative or absolute, respectivel
27687 Users may have reasons to prefer either form.
27688 Relative names are useful for portable documents that should work on different
27689 machines, for example.
27690 Absolute names may be required by some programs.
27693 \begin_layout Enumerate
27695 treats relative file names differently than \SpecialChar LyX
27696 and other programs in nested
27698 For \SpecialChar LyX
27699 , a relative file name is always relative to the document that contains
27701 For \SpecialChar LaTeX
27702 , it is always relative to the master document.
27703 These two definitions are identical if you have only one document, but
27704 differ if you have a master document that includes part documents.
27705 That means that relative filenames must be transformed when presented to
27708 Fortunately \SpecialChar LyX
27709 does this automatically for you if you choose the right macros.
27712 \begin_layout Standard
27713 So which path macro should be used in new template definitions? The rule
27717 \begin_layout Itemize
27719 \begin_inset Flex Code
27722 \begin_layout Plain Layout
27728 if an absolute path is required.
27731 \begin_layout Itemize
27733 \begin_inset Flex Code
27736 \begin_layout Plain Layout
27737 $$AbsOrRelPathMaster
27742 if the substituted string is some kind of \SpecialChar LaTeX
27746 \begin_layout Itemize
27748 \begin_inset Flex Code
27751 \begin_layout Plain Layout
27752 $$AbsOrRelPathParent
27757 in order to preserve the user's choice.
27760 \begin_layout Standard
27761 There are special cases where this rule does not work and e.
27762 \begin_inset space \thinspace{}
27766 \begin_inset space \space{}
27769 relative names are needed, but normally it will work just fine.
27770 One example for such a case is the command
27771 \begin_inset Flex Code
27774 \begin_layout Plain Layout
27775 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27780 in the XFig template above: We can't use the absolute name because the
27782 \begin_inset Flex Code
27785 \begin_layout Plain Layout
27791 files needs the relative name in order to rewrite the file content.
27794 \begin_layout Section
27795 Security discussion
27796 \begin_inset CommandInset label
27798 name "sec:Security-discussion"
27805 \begin_layout Standard
27806 The external material feature interfaces with a lot of external programs
27807 and does so automatically, so we have to consider the security implications
27809 In particular, since you have the option of including your own filenames
27810 and/or parameter strings and those are expanded into a command, it seems
27811 that it would be possible to create a malicious document which executes
27812 arbitrary commands when a user views or prints the document.
27813 This is something we definitely want to avoid.
27816 \begin_layout Standard
27817 However, since the external program commands are specified in the template
27818 configuration file only, there are no security issues if \SpecialChar LyX
27819 is properly configure
27820 d with safe templates only.
27821 This is so because the external programs are invoked with the
27822 \begin_inset Flex Code
27825 \begin_layout Plain Layout
27831 -system call rather than the
27832 \begin_inset Flex Code
27835 \begin_layout Plain Layout
27841 system-call, so it's not possible to execute arbitrary commands from the
27842 filename or parameter section via the shell.
27845 \begin_layout Standard
27846 This also implies that you are restricted in what command strings you can
27847 use in the external material templates.
27848 In particular, pipes and redirection are not readily available.
27849 This has to be so if \SpecialChar LyX
27850 should remain safe.
27851 If you want to use some of the shell features, you should write a safe
27852 script to do this in a controlled manner, and then invoke the script from
27853 the command string.
27857 \begin_layout Standard
27858 It is possible to design a template that interacts directly with the shell,
27859 but since this would allow a malicious user to execute arbitrary commands
27860 by writing clever filenames and/or parameters, we generally recommend that
27861 you only use safe scripts that work with the
27862 \begin_inset Flex Code
27865 \begin_layout Plain Layout
27871 system call in a controlled manner.
27872 Of course, for use in a controlled environment, it can be tempting to just
27873 fall back to use ordinary shell scripts.
27874 If you do so, be aware that you
27878 provide an easily exploitable security hole in your system.
27879 Of course it stands to reason that such unsafe templates will never be
27880 included in the standard \SpecialChar LyX
27881 distribution, although we do encourage people
27882 to submit new templates in the open source tradition.
27883 But \SpecialChar LyX
27884 as shipped from the official distribution channels will never have
27888 \begin_layout Standard
27889 Including external material provides a lot of power, and you have to be
27890 careful not to introduce security hazards with this power.
27891 A subtle error in a single line in an innocent looking script can open
27892 the door to huge security problems.
27893 So if you do not fully understand the issues, we recommend that you consult
27894 a knowledgeable security professional or the \SpecialChar LyX
27895 development team if you have
27896 any questions about whether a given template is safe or not.
27897 And do this before you use it in an uncontrolled environment.
27900 \begin_layout Chapter
27902 List of supported \SpecialChar LyX
27903 functions to be used in layouts
27904 \begin_inset CommandInset label
27906 name "chap:List-of-functions"
27913 \begin_layout Standard
27915 \begin_inset Tabular
27916 <lyxtabular version="3" rows="11" columns="8">
27917 <features tabularvalignment="middle">
27918 <column alignment="left" valignment="top">
27919 <column alignment="left" valignment="top">
27920 <column alignment="left" valignment="top">
27921 <column alignment="left" valignment="top">
27922 <column alignment="left" valignment="top">
27923 <column alignment="left" valignment="top">
27924 <column alignment="left" valignment="top">
27925 <column alignment="left" valignment="top">
27927 <cell alignment="left" valignment="top" usebox="none">
27930 \begin_layout Plain Layout
27936 <cell alignment="left" valignment="top" usebox="none">
27939 \begin_layout Plain Layout
27945 <cell alignment="left" valignment="top" usebox="none">
27948 \begin_layout Plain Layout
27954 <cell alignment="left" valignment="top" usebox="none">
27957 \begin_layout Plain Layout
27963 <cell alignment="center" valignment="top" usebox="none">
27966 \begin_layout Plain Layout
27972 <cell alignment="center" valignment="top" usebox="none">
27975 \begin_layout Plain Layout
27981 <cell alignment="center" valignment="top" usebox="none">
27984 \begin_layout Plain Layout
27990 <cell alignment="center" valignment="top" usebox="none">
27993 \begin_layout Plain Layout
28001 <cell alignment="left" valignment="top" usebox="none">
28004 \begin_layout Plain Layout
28010 <cell alignment="left" valignment="top" usebox="none">
28013 \begin_layout Plain Layout
28019 <cell alignment="left" valignment="top" usebox="none">
28022 \begin_layout Plain Layout
28028 <cell alignment="left" valignment="top" usebox="none">
28031 \begin_layout Plain Layout
28037 <cell alignment="center" valignment="top" usebox="none">
28040 \begin_layout Plain Layout
28046 <cell alignment="center" valignment="top" usebox="none">
28049 \begin_layout Plain Layout
28055 <cell alignment="center" valignment="top" usebox="none">
28058 \begin_layout Plain Layout
28064 <cell alignment="center" valignment="top" usebox="none">
28067 \begin_layout Plain Layout
28075 <cell alignment="left" valignment="top" usebox="none">
28078 \begin_layout Plain Layout
28084 <cell alignment="left" valignment="top" usebox="none">
28087 \begin_layout Plain Layout
28093 <cell alignment="left" valignment="top" usebox="none">
28096 \begin_layout Plain Layout
28102 <cell alignment="left" valignment="top" usebox="none">
28105 \begin_layout Plain Layout
28111 <cell alignment="center" valignment="top" usebox="none">
28114 \begin_layout Plain Layout
28120 <cell alignment="center" valignment="top" usebox="none">
28123 \begin_layout Plain Layout
28129 <cell alignment="center" valignment="top" usebox="none">
28132 \begin_layout Plain Layout
28138 <cell alignment="center" valignment="top" usebox="none">
28141 \begin_layout Plain Layout
28149 <cell alignment="left" valignment="top" usebox="none">
28152 \begin_layout Plain Layout
28158 <cell alignment="left" valignment="top" usebox="none">
28161 \begin_layout Plain Layout
28167 <cell alignment="left" valignment="top" usebox="none">
28170 \begin_layout Plain Layout
28176 <cell alignment="left" valignment="top" usebox="none">
28179 \begin_layout Plain Layout
28185 <cell alignment="center" valignment="top" usebox="none">
28188 \begin_layout Plain Layout
28194 <cell alignment="center" valignment="top" usebox="none">
28197 \begin_layout Plain Layout
28203 <cell alignment="center" valignment="top" usebox="none">
28206 \begin_layout Plain Layout
28212 <cell alignment="center" valignment="top" usebox="none">
28215 \begin_layout Plain Layout
28223 <cell alignment="left" valignment="top" usebox="none">
28226 \begin_layout Plain Layout
28232 <cell alignment="left" valignment="top" usebox="none">
28235 \begin_layout Plain Layout
28241 <cell alignment="left" valignment="top" usebox="none">
28244 \begin_layout Plain Layout
28250 <cell alignment="left" valignment="top" usebox="none">
28253 \begin_layout Plain Layout
28259 <cell alignment="center" valignment="top" usebox="none">
28262 \begin_layout Plain Layout
28268 <cell alignment="center" valignment="top" usebox="none">
28271 \begin_layout Plain Layout
28277 <cell alignment="center" valignment="top" usebox="none">
28280 \begin_layout Plain Layout
28286 <cell alignment="center" valignment="top" usebox="none">
28289 \begin_layout Plain Layout
28297 <cell alignment="left" valignment="top" usebox="none">
28300 \begin_layout Plain Layout
28306 <cell alignment="left" valignment="top" usebox="none">
28309 \begin_layout Plain Layout
28315 <cell alignment="left" valignment="top" usebox="none">
28318 \begin_layout Plain Layout
28324 <cell alignment="left" valignment="top" usebox="none">
28327 \begin_layout Plain Layout
28333 <cell alignment="center" valignment="top" usebox="none">
28336 \begin_layout Plain Layout
28342 <cell alignment="center" valignment="top" usebox="none">
28345 \begin_layout Plain Layout
28351 <cell alignment="center" valignment="top" usebox="none">
28354 \begin_layout Plain Layout
28360 <cell alignment="center" valignment="top" usebox="none">
28363 \begin_layout Plain Layout
28371 <cell alignment="left" valignment="top" usebox="none">
28374 \begin_layout Plain Layout
28380 <cell alignment="left" valignment="top" usebox="none">
28383 \begin_layout Plain Layout
28389 <cell alignment="left" valignment="top" usebox="none">
28392 \begin_layout Plain Layout
28398 <cell alignment="left" valignment="top" usebox="none">
28401 \begin_layout Plain Layout
28407 <cell alignment="center" valignment="top" usebox="none">
28410 \begin_layout Plain Layout
28416 <cell alignment="center" valignment="top" usebox="none">
28419 \begin_layout Plain Layout
28425 <cell alignment="center" valignment="top" usebox="none">
28428 \begin_layout Plain Layout
28434 <cell alignment="center" valignment="top" usebox="none">
28437 \begin_layout Plain Layout
28445 <cell alignment="left" valignment="top" usebox="none">
28448 \begin_layout Plain Layout
28454 <cell alignment="left" valignment="top" usebox="none">
28457 \begin_layout Plain Layout
28463 <cell alignment="left" valignment="top" usebox="none">
28466 \begin_layout Plain Layout
28472 <cell alignment="left" valignment="top" usebox="none">
28475 \begin_layout Plain Layout
28481 <cell alignment="center" valignment="top" usebox="none">
28484 \begin_layout Plain Layout
28490 <cell alignment="center" valignment="top" usebox="none">
28493 \begin_layout Plain Layout
28499 <cell alignment="center" valignment="top" usebox="none">
28502 \begin_layout Plain Layout
28508 <cell alignment="center" valignment="top" usebox="none">
28511 \begin_layout Plain Layout
28519 <cell alignment="left" valignment="top" usebox="none">
28522 \begin_layout Plain Layout
28528 <cell alignment="left" valignment="top" usebox="none">
28531 \begin_layout Plain Layout
28537 <cell alignment="left" valignment="top" usebox="none">
28540 \begin_layout Plain Layout
28546 <cell alignment="left" valignment="top" usebox="none">
28549 \begin_layout Plain Layout
28555 <cell alignment="center" valignment="top" usebox="none">
28558 \begin_layout Plain Layout
28564 <cell alignment="center" valignment="top" usebox="none">
28567 \begin_layout Plain Layout
28573 <cell alignment="center" valignment="top" usebox="none">
28576 \begin_layout Plain Layout
28582 <cell alignment="center" valignment="top" usebox="none">
28585 \begin_layout Plain Layout
28593 <cell alignment="left" valignment="top" usebox="none">
28596 \begin_layout Plain Layout
28602 <cell alignment="left" valignment="top" usebox="none">
28605 \begin_layout Plain Layout
28611 <cell alignment="left" valignment="top" usebox="none">
28614 \begin_layout Plain Layout
28620 <cell alignment="left" valignment="top" usebox="none">
28623 \begin_layout Plain Layout
28629 <cell alignment="center" valignment="top" usebox="none">
28632 \begin_layout Plain Layout
28638 <cell alignment="center" valignment="top" usebox="none">
28641 \begin_layout Plain Layout
28647 <cell alignment="center" valignment="top" usebox="none">
28650 \begin_layout Plain Layout
28656 <cell alignment="center" valignment="top" usebox="none">
28659 \begin_layout Plain Layout
28667 <cell alignment="center" valignment="top" usebox="none">
28670 \begin_layout Plain Layout
28676 <cell alignment="center" valignment="top" usebox="none">
28679 \begin_layout Plain Layout
28685 <cell alignment="center" valignment="top" usebox="none">
28688 \begin_layout Plain Layout
28694 <cell alignment="center" valignment="top" usebox="none">
28697 \begin_layout Plain Layout
28703 <cell alignment="center" valignment="top" usebox="none">
28706 \begin_layout Plain Layout
28712 <cell alignment="center" valignment="top" usebox="none">
28715 \begin_layout Plain Layout
28721 <cell alignment="center" valignment="top" usebox="none">
28724 \begin_layout Plain Layout
28730 <cell alignment="center" valignment="top" usebox="none">
28733 \begin_layout Plain Layout
28747 \begin_layout Chapter
28748 Names of available colors to be used in layouts
28749 \begin_inset CommandInset label
28751 name "chap:Names-of-colors"
28758 \begin_layout Standard
28759 The colors listed below are the standard colors and those that you can adjust
28760 in the \SpecialChar LyX
28764 \begin_layout Section
28768 \begin_layout Standard
28769 The following are no real colors, but rather act on color definitions:
28772 \begin_layout Description
28773 ignore The color is ignored
28776 \begin_layout Description
28777 inherit The color is inherited
28780 \begin_layout Description
28793 No particular color – clear or default
28796 \begin_layout Section
28800 \begin_layout Standard
28801 These are fixed colors that cannot me customized:
28804 \begin_layout Description
28808 \begin_layout Description
28812 \begin_layout Description
28816 \begin_layout Description
28820 \begin_layout Description
28824 \begin_layout Description
28828 \begin_layout Description
28832 \begin_layout Description
28836 \begin_layout Description
28840 \begin_layout Description
28844 \begin_layout Description
28848 \begin_layout Description
28852 \begin_layout Description
28856 \begin_layout Description
28860 \begin_layout Description
28864 \begin_layout Description
28868 \begin_layout Description
28872 \begin_layout Description
28876 \begin_layout Description
28880 \begin_layout Section
28884 \begin_layout Standard
28885 These are the colors allocated to specific elements in
28888 arg "dialog-show prefs"
28894 \begin_layout Description
28895 added_space Added space color
28898 \begin_layout Description
28899 addedtext Added text color
28902 \begin_layout Description
28903 appendix Appendix marker color
28906 \begin_layout Description
28907 background Background color
28910 \begin_layout Description
28911 bottomarea Bottom area color
28914 \begin_layout Description
28915 branchlabel Label color for branches
28918 \begin_layout Description
28919 buttonbg Color used for button background
28922 \begin_layout Description
28923 buttonframe Color for inset button frames
28926 \begin_layout Description
28927 buttonhoverbg Color used for button background under focus
28930 \begin_layout Description
28931 changebar Changebar color
28934 \begin_layout Description
28935 changedtextauthor1 Changed text color author 1
28938 \begin_layout Description
28939 changedtextauthor2 Changed text color author 2
28942 \begin_layout Description
28943 changedtextauthor3 Changed text color author 3
28946 \begin_layout Description
28947 changedtextauthor4 Changed text color author 4
28950 \begin_layout Description
28951 changedtextauthor5 Changed text color author 5
28954 \begin_layout Description
28955 collapsible Collapsible insets text color
28958 \begin_layout Description
28959 collapsibleframe Collapsible insets framecolor
28962 \begin_layout Description
28963 command Text color for command insets
28966 \begin_layout Description
28967 commandbg Background color for command insets
28970 \begin_layout Description
28971 commandframe Frame color for command insets
28974 \begin_layout Description
28975 comment Label color for comments
28978 \begin_layout Description
28979 commentbg Background color of comments
28982 \begin_layout Description
28983 cursor Cursor color
28986 \begin_layout Description
28987 deletedtext Deleted text color
28990 \begin_layout Description
28991 deletedtextmodifier Deleted text modifying color
28994 \begin_layout Description
28995 depthbar Color for the depth bars in the margin
28998 \begin_layout Description
28999 eolmarker End of line marker color
29002 \begin_layout Description
29003 error Color of the \SpecialChar LaTeX
29007 \begin_layout Description
29008 footlabel Label color for footnotes
29011 \begin_layout Description
29012 foreground Foreground color
29015 \begin_layout Description
29016 graphicsbg Graphics inset background color
29019 \begin_layout Description
29020 greyedoutbg Background color of greyedout inset
29023 \begin_layout Description
29024 greyedoutlabel Label color for greyedout insets
29027 \begin_layout Description
29028 greyedouttext Color for greyedout inset text
29031 \begin_layout Description
29032 indexlabel Label color for index insets
29035 \begin_layout Description
29036 inlinecompletion Inline completion color
29039 \begin_layout Description
29040 insetbg Inset marker background color
29043 \begin_layout Description
29044 insetframe Inset marker frame color
29047 \begin_layout Description
29048 language Color for marking foreign language words
29051 \begin_layout Description
29052 latex Text color in \SpecialChar LaTeX
29056 \begin_layout Description
29057 listingsbg Background color of listings inset
29060 \begin_layout Description
29061 marginlabel Label color for margin notes
29064 \begin_layout Description
29065 math Math inset text color
29068 \begin_layout Description
29069 mathbg Math inset background color
29072 \begin_layout Description
29073 mathcorners Math inset frame color not under focus
29076 \begin_layout Description
29077 mathframe Math inset frame color under focus
29080 \begin_layout Description
29081 mathline Math line color
29084 \begin_layout Description
29085 mathmacrobg Macro math inset background color
29088 \begin_layout Description
29089 mathmacroblend Macro math blended color
29092 \begin_layout Description
29093 mathmacroframe Macro math frame color
29096 \begin_layout Description
29097 mathmacrohoverbg Macro math inset background color hovered
29100 \begin_layout Description
29101 mathmacrolabel Macro math label color
29104 \begin_layout Description
29105 mathmacronewarg Macro template color for new parameters
29108 \begin_layout Description
29109 mathmacrooldarg Macro template color for old parameters
29112 \begin_layout Description
29113 newpage New page color
29116 \begin_layout Description
29117 nonunique_inlinecompletion Inline completion color for the non-unique part
29120 \begin_layout Description
29121 note Label color for notes
29124 \begin_layout Description
29125 notebg Background color of notes
29128 \begin_layout Description
29129 pagebreak Page break/line break color
29132 \begin_layout Description
29133 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29136 \begin_layout Description
29137 phantomtext Text color for phantom insets
29140 \begin_layout Description
29141 preview The color used for previews
29144 \begin_layout Description
29145 previewframe Preview frame color
29148 \begin_layout Description
29149 regexpframe Color for regexp frame
29152 \begin_layout Description
29153 scroll Color that indicates when a row can be scrolled
29156 \begin_layout Description
29157 selection Background color of selected text
29160 \begin_layout Description
29161 selectiontext Foreground color of selected text
29164 \begin_layout Description
29165 shadedbg Background color of shaded box
29168 \begin_layout Description
29169 special Special chars text color
29172 \begin_layout Description
29173 tabularline Table line color
29176 \begin_layout Description
29177 tabularonoffline Table line color
29180 \begin_layout Description
29181 urllabel Label color for URL insets
29184 \begin_layout Description
29185 urltext Color for URL inset text