1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
8 % DO NOT ALTER THIS PREAMBLE!!!
10 % This preamble is designed to ensure that this document prints
11 % out as advertised. If you mess with this preamble,
12 % parts of this document may not print out as expected. If you
13 % have problems LaTeXing this file, please contact
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
17 \usepackage{ifpdf} % part of the hyperref bundle
18 \ifpdf % if pdflatex is used
20 % set fonts for nicer pdf view
21 \IfFileExists{lmodern.sty}
22 {\usepackage{lmodern}}{}
24 \fi % end if pdflatex is used
26 % the pages of the TOC is numbered roman
27 % and a pdf-bookmark for the TOC is added
28 \let\myTOC\tableofcontents
29 \renewcommand\tableofcontents{%
31 \pdfbookmark[1]{\contentsname}{}
35 % increase link area for cross-references and autoname them,
36 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
37 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
38 \@ifpackageloaded{babel}{
39 \addto\extrasenglish{%
40 \renewcommand*{\equationautorefname}[1]{}%
41 \renewcommand{\sectionautorefname}{sec.\negthinspace}%
42 \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
43 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
47 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
48 \use_default_options false
52 \maintain_unincluded_children false
55 InsetLayout Flex:MenuItem
64 \newcommand*{\menuitem}[1]{{\sffamily #1}}
67 # In case we need to do with sans...
68 #InsetLayout CharStyle:Code
73 #\renewcommand{\code}[1]{{\sffamily #1}}
78 \language_package default
81 \font_roman "default" "default"
82 \font_sans "default" "default"
83 \font_typewriter "default" "default"
84 \font_math "auto" "auto"
85 \font_default_family default
86 \use_non_tex_fonts false
89 \font_sf_scale 100 100
90 \font_tt_scale 100 100
92 \default_output_format default
94 \bibtex_command default
95 \index_command default
99 \pdf_title "LyX Configuration Manual"
100 \pdf_author "LyX Team"
101 \pdf_subject "LyX-documentation Customization"
102 \pdf_keywords "LyX, documentation, customization"
104 \pdf_bookmarksnumbered true
105 \pdf_bookmarksopen true
106 \pdf_bookmarksopenlevel 1
107 \pdf_breaklinks false
111 \pdf_pdfusetitle false
112 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
115 \use_package amsmath 0
116 \use_package amssymb 0
117 \use_package cancel 0
119 \use_package mathdots 1
120 \use_package mathtools 0
121 \use_package mhchem 0
122 \use_package stackrel 0
123 \use_package stmaryrd 0
124 \use_package undertilde 0
126 \cite_engine_type default
130 \paperorientation portrait
145 \paragraph_separation indent
146 \paragraph_indentation default
147 \quotes_language english
150 \paperpagestyle headings
151 \tracking_changes true
152 \output_changes false
156 \author -712698321 "Jürgen Spitzmüller"
157 \author -195340706 "Georg Baum"
158 \author 274215730 "scott"
164 Customizing \SpecialChar LyX
165 : Features for the Advanced User
169 by the \SpecialChar LyX
174 \begin_layout Plain Layout
176 If you have comments or error corrections, please send them to the \SpecialChar LyX
179 \begin_inset CommandInset href
181 target "lyx-docs@lists.lyx.org"
188 \begin_inset Quotes eld
192 \begin_inset Quotes erd
195 in the subject header, and please cc the current maintainer of this file,
196 Richard Heck <rgheck@comcast.net>.
202 \begin_inset Newline newline
206 \begin_inset Newline newline
212 \begin_layout Standard
213 \begin_inset CommandInset toc
214 LatexCommand tableofcontents
221 \begin_layout Standard
222 \begin_inset Note Note
225 \begin_layout Plain Layout
226 Please use change tracking when modifying this document.
227 This makes it easier for our translators to recognize things that have
228 been changed, and it helps the maintainer keep up-to-date with what's been
237 \begin_layout Chapter
241 \begin_layout Standard
242 This manual covers the customization features present in \SpecialChar LyX
244 In it, we discuss issues like keyboard shortcuts, screen previewing options,
245 printer options, sending commands to \SpecialChar LyX
246 via the \SpecialChar LyX
247 Server, internationalization,
248 installing new \SpecialChar LaTeX
249 classes and \SpecialChar LyX
251 We can't possibly hope to touch on everything you can change—our developers
252 add new features faster than we can document them—but we will explain the
253 most common customizations and hopefully point you in the right direction
254 for some of the more obscure ones.
257 \begin_layout Standard
258 \begin_inset Branch OutDated
261 \begin_layout Standard
262 Information from previous versions of this document that now seems to be
263 outdated is contained in the OutDated branch of this document.
264 By default, this information will not appear in the \SpecialChar LaTeX
273 \begin_layout Chapter
278 \begin_layout Standard
279 This chapter aims to help you to find your way through the \SpecialChar LyX
282 Before continuing to read this chapter, you should find out where your
284 library and user directories are by using
285 \begin_inset Flex MenuItem
288 \begin_layout Plain Layout
289 Help\SpecialChar menuseparator
300 The library directory is the place where \SpecialChar LyX
301 places its system-wide configuration
302 files; the user directory is where you can place your modified versions.
303 We will call the former
304 \begin_inset Flex Code
307 \begin_layout Plain Layout
314 \begin_inset Flex MenuItem
317 \begin_layout Plain Layout
323 in the remainder of this document.
327 \begin_layout Section
329 \begin_inset Flex Code
332 \begin_layout Plain Layout
341 \begin_layout Standard
342 \begin_inset Flex Code
345 \begin_layout Plain Layout
351 and its sub-directories contain a number of files and that can be used
352 to customize \SpecialChar LyX
354 You can change many of these files from within \SpecialChar LyX
356 \begin_inset Flex MenuItem
359 \begin_layout Plain Layout
360 Tools\SpecialChar menuseparator
367 Most customization that you will want to do in \SpecialChar LyX
368 is possible through this
370 However, many other inner aspects of \SpecialChar LyX
371 can be customized by modifying the
373 \begin_inset Flex Code
376 \begin_layout Plain Layout
383 These files fall in different categories, described in the following subsection
387 \begin_layout Subsection
388 Automatically generated files
391 \begin_layout Standard
392 The files, which are to be found in
393 \begin_inset Flex MenuItem
396 \begin_layout Plain Layout
402 , are generated when you configure \SpecialChar LyX
404 They contain various default values that are guessed by inspection.
405 In general, it is not a good idea to modify them, since they might be overwritt
409 \begin_layout Labeling
410 \labelwidthstring 00.00.0000
411 \begin_inset Flex Code
414 \begin_layout Plain Layout
420 contains defaults for various commands.
423 \begin_layout Labeling
424 \labelwidthstring 00.00.0000
425 \begin_inset Flex Code
428 \begin_layout Plain Layout
434 contains the list of packages that have been recognized by \SpecialChar LyX
436 It is currently unused by the \SpecialChar LyX
437 program itself, but the information extracted,
438 and more, is made available with
439 \begin_inset Flex MenuItem
442 \begin_layout Plain Layout
443 Help\SpecialChar menuseparator
457 \begin_layout Labeling
458 \labelwidthstring 00.00.0000
459 \begin_inset Flex Code
462 \begin_layout Plain Layout
468 the list of text classes that have been found in your
469 \begin_inset Flex Code
472 \begin_layout Plain Layout
478 directories, along with the associated \SpecialChar LaTeX
479 document class and their description.
482 \begin_layout Labeling
483 \labelwidthstring 00.00.0000
484 \begin_inset Flex Code
487 \begin_layout Plain Layout
493 the list of layout modules found in your
494 \begin_inset Flex Code
497 \begin_layout Plain Layout
506 \begin_layout Labeling
507 \labelwidthstring 00.00.0000
508 \begin_inset Flex Code
511 \begin_layout Plain Layout
517 lists of various sorts of \SpecialChar LaTeX
518 -related files found on your system
521 \begin_layout Labeling
522 \labelwidthstring 00.00.0000
523 \begin_inset Flex Code
526 \begin_layout Plain Layout
527 doc/\SpecialChar LaTeX
533 is automatically generated during configuration from the file
534 \begin_inset Flex Code
537 \begin_layout Plain Layout
545 It contains information on your \SpecialChar LaTeX
549 \begin_layout Subsection
553 \begin_layout Standard
554 These directories are duplicated between
555 \begin_inset Flex Code
558 \begin_layout Plain Layout
565 \begin_inset Flex Code
568 \begin_layout Plain Layout
575 If a particular files exists in both places, the one in
576 \begin_inset Flex Code
579 \begin_layout Plain Layout
588 \begin_layout Labeling
589 \labelwidthstring 00.00.0000
590 \begin_inset Flex Code
593 \begin_layout Plain Layout
599 this directory contains files with the extension
600 \begin_inset Flex Code
603 \begin_layout Plain Layout
609 that define the keybindings used in \SpecialChar LyX
611 If there exists an internationalized version of the bind file named
612 \begin_inset Flex Code
615 \begin_layout Plain Layout
621 , that will be used first.
624 \begin_layout Labeling
625 \labelwidthstring 00.00.0000
626 \begin_inset Flex Code
629 \begin_layout Plain Layout
635 contains graphics files that can be included in documents.
639 \begin_layout Labeling
640 \labelwidthstring 00.00.0000
641 \begin_inset Flex Code
644 \begin_layout Plain Layout
650 contains \SpecialChar LyX
651 documentation files (including the one you are currently reading).
653 \begin_inset Flex Code
656 \begin_layout Plain Layout
663 deserves special attention, as noted above.
664 The internationalized help docs are in subdirectories
665 \begin_inset Flex Code
668 \begin_layout Plain Layout
675 \begin_inset Quotes eld
679 \begin_inset Quotes erd
682 is the ISO language code.
684 \begin_inset CommandInset ref
686 reference "cha:Internationalizing-LyX"
693 \begin_layout Labeling
694 \labelwidthstring 00.00.0000
695 \begin_inset Flex Code
698 \begin_layout Plain Layout
704 contains example files that explain how to use some features.
705 In the file browser, press the
706 \begin_inset Flex MenuItem
709 \begin_layout Plain Layout
718 \begin_layout Labeling
719 \labelwidthstring 00.00.0000
720 \begin_inset Flex Code
723 \begin_layout Plain Layout
729 contains image files that are used by the
730 \begin_inset Flex MenuItem
733 \begin_layout Plain Layout
740 In addition, it also contains the individual icons used in the toolbar
741 and the banners that can be shown when \SpecialChar LyX
745 \begin_layout Labeling
746 \labelwidthstring 00.00.0000
747 \begin_inset Flex Code
750 \begin_layout Plain Layout
756 contains keyboard keymapping files.
758 \begin_inset CommandInset ref
760 reference "sec:International-Keymap-Stuff"
767 \begin_layout Labeling
768 \labelwidthstring 00.00.0000
769 \begin_inset Flex Code
772 \begin_layout Plain Layout
778 contains the text class and module files described in
779 \begin_inset CommandInset ref
781 reference "cha:Installing-New-Document"
788 \begin_layout Labeling
789 \labelwidthstring 00.00.0000
790 \begin_inset Flex Code
793 \begin_layout Plain Layout
800 \begin_inset Flex Code
803 \begin_layout Plain Layout
809 Python scripts used to convert between \SpecialChar LyX
811 These can be run from the command line if, say, you want to batch-convert
815 \begin_layout Labeling
816 \labelwidthstring 00.00.0000
817 \begin_inset Flex Code
820 \begin_layout Plain Layout
826 contains some files that demonstrate the capabilities of the
827 \begin_inset Flex MenuItem
830 \begin_layout Plain Layout
841 Also contains some scripts used by \SpecialChar LyX
845 \begin_layout Labeling
846 \labelwidthstring 00.00.0000
847 \begin_inset Flex Code
850 \begin_layout Plain Layout
856 contains the standard \SpecialChar LyX
857 template files described in
858 \begin_inset CommandInset ref
860 reference "subsec:Creating-Templates"
867 \begin_layout Labeling
868 \labelwidthstring 00.00.0000
869 \begin_inset Flex Code
872 \begin_layout Plain Layout
878 contains files with the extension
879 \begin_inset Flex Code
882 \begin_layout Plain Layout
888 that define the user interface to \SpecialChar LyX
890 That is, the files define which items appear in which menus and the items
891 appearing on the toolbar.
894 \begin_layout Subsection
895 Files you don't want to modify
898 \begin_layout Standard
899 These files are used internally by \SpecialChar LyX
900 and you generally do not need to modify
901 them unless you are a developer.
904 \begin_layout Labeling
905 \labelwidthstring 00.00.0000
906 \begin_inset Flex Code
909 \begin_layout Plain Layout
915 this file contains the list of \SpecialChar LyX
917 The contents are displayed with the menu entry
918 \begin_inset Flex MenuItem
921 \begin_layout Plain Layout
922 Help\SpecialChar menuseparator
935 \begin_layout Labeling
936 \labelwidthstring 00.00.0000
937 \begin_inset Flex Code
940 \begin_layout Plain Layout
946 this is a \SpecialChar LaTeX
947 script used during the configuration process.
951 \begin_layout Labeling
952 \labelwidthstring 00.00.0000
953 \begin_inset Flex Code
956 \begin_layout Plain Layout
962 this is a Python script that is used to re-configure \SpecialChar LyX
964 It creates configuration files in the directory it was run from.
967 \begin_layout Subsection
968 Other files needing a line or two
971 \begin_layout Labeling
972 \labelwidthstring 00.00.0000
973 \begin_inset Flex Code
976 \begin_layout Plain Layout
982 this contains tables describing how different character encodings can be
986 \begin_layout Labeling
987 \labelwidthstring 00.00.0000
988 \begin_inset Flex Code
991 \begin_layout Plain Layout
997 this file contains the templates available to the new
998 \begin_inset Flex MenuItem
1001 \begin_layout Plain Layout
1003 \begin_inset space ~
1012 \begin_inset CommandInset ref
1014 reference "chap:Including-External-Material"
1021 \begin_layout Labeling
1022 \labelwidthstring 00.00.0000
1023 \begin_inset Flex Code
1026 \begin_layout Plain Layout
1032 this file contains a list of all the languages currently supported by \SpecialChar LyX
1036 \begin_layout Labeling
1037 \labelwidthstring 00.00.0000
1038 \begin_inset Flex Code
1041 \begin_layout Plain Layout
1047 contains information about the supported fonts.
1050 \begin_layout Labeling
1051 \labelwidthstring 00.00.0000
1052 \begin_inset Flex Code
1055 \begin_layout Plain Layout
1061 this file contains translations for internationalized paragraph styles
1063 \begin_inset CommandInset ref
1065 reference "subsec:I18n"
1072 \begin_layout Labeling
1073 \labelwidthstring 00.00.0000
1074 \begin_inset Flex Code
1077 \begin_layout Plain Layout
1083 this file contains information about unicode-encoded glyphs and the way
1084 they are supported by \SpecialChar LyX
1085 via \SpecialChar LaTeX
1089 \begin_layout Section
1090 Your local configuration directory
1093 \begin_layout Standard
1094 Even if you are using \SpecialChar LyX
1095 as an unprivileged user, you might want to change
1097 configuration for your own use.
1099 \begin_inset Flex Code
1102 \begin_layout Plain Layout
1108 directory contains all your personal configuration files.
1109 This is the directory described as
1110 \begin_inset Quotes eld
1114 \begin_inset Quotes erd
1118 \begin_inset Flex MenuItem
1121 \begin_layout Plain Layout
1122 Help\SpecialChar menuseparator
1124 \begin_inset space ~
1133 This directory is used as a mirror of
1134 \begin_inset Flex Code
1137 \begin_layout Plain Layout
1143 , which means that every file in
1144 \begin_inset Flex Code
1147 \begin_layout Plain Layout
1153 is a replacement for the corresponding file in
1154 \begin_inset Flex Code
1157 \begin_layout Plain Layout
1164 Any configuration file described in the above sections can be placed either
1165 in the system-wide directory, in which case it will affect all users, or
1166 in your local directory for your own use.
1169 \begin_layout Standard
1170 To make things clearer, let's provide a few examples:
1173 \begin_layout Itemize
1174 The preferences set in the
1175 \begin_inset Flex MenuItem
1178 \begin_layout Plain Layout
1179 Tools\SpecialChar menuseparator
1185 dialog are saved to a file
1186 \begin_inset Flex Code
1189 \begin_layout Plain Layout
1196 \begin_inset Flex Code
1199 \begin_layout Plain Layout
1208 \begin_layout Itemize
1209 When you reconfigure using
1210 \begin_inset Flex MenuItem
1213 \begin_layout Plain Layout
1214 Tools\SpecialChar menuseparator
1222 \begin_inset Flex Code
1225 \begin_layout Plain Layout
1231 script, and the resulting files are written in your local configuration
1233 This means that any additional text class file that you might have added
1235 \begin_inset Flex Code
1238 \begin_layout Plain Layout
1244 will be added to the list of classes in the
1245 \begin_inset Flex MenuItem
1248 \begin_layout Plain Layout
1249 Document\SpecialChar menuseparator
1258 \begin_layout Itemize
1259 If you get some updated documentation from \SpecialChar LyX
1260 ftp site and cannot install
1261 it because you do not have sysadmin rights on your system, you can just
1263 \begin_inset Flex Code
1266 \begin_layout Plain Layout
1272 and the items in the
1273 \begin_inset Flex MenuItem
1276 \begin_layout Plain Layout
1282 menu will open them!
1285 \begin_layout Section
1286 Running \SpecialChar LyX
1287 with multiple configurations
1290 \begin_layout Standard
1291 The configuration freedom of the local configuration directory may not suffice
1292 if you want to have more than one configuration at your disposal.
1293 For example, you may want to be use different key bindings or printer settings
1295 You can achieve this by having several such directories.
1296 You then specify which directory to use at run-time.
1299 \begin_layout Standard
1300 Invoking \SpecialChar LyX
1301 with the command line switch
1302 \begin_inset Flex Code
1305 \begin_layout Plain Layout
1315 instructs the program to read the configuration from that directory, and
1316 not from the default directory.
1317 (You can determine the default directory by running \SpecialChar LyX
1319 \begin_inset Flex Code
1322 \begin_layout Plain Layout
1328 switch.) If the specified directory does not exist, \SpecialChar LyX
1330 for you, just like it does for the default directory on the first time
1331 you run the program.
1332 You can modify the configuration options in this additional user directory
1333 exactly as you would for the default directory.
1334 These directories are completely independent (but read on).
1335 Note that setting the environment variable
1336 \begin_inset Flex Code
1339 \begin_layout Plain Layout
1345 to some value has exactly the same effect.
1348 \begin_layout Standard
1349 Having several configurations also requires more maintenance: if you want
1350 to add a new layout to
1351 \begin_inset Flex Code
1354 \begin_layout Plain Layout
1360 which you want available from all your configurations, you must add it
1361 to each directory separately.
1362 You can avoid this with the following trick: after \SpecialChar LyX
1363 creates the additional
1364 directory, most of the subdirectories (see above) are empty.
1365 If you want the new configuration to mirror an existing one, replace the
1366 empty subdirectory with a symbolic link to the matching subdirectory in
1367 the existing configuration.
1369 \begin_inset Flex Code
1372 \begin_layout Plain Layout
1378 subdirectory, however, since it contains a file written by the configuration
1379 script (also accessible through
1380 \begin_inset Flex MenuItem
1383 \begin_layout Plain Layout
1384 Tools\SpecialChar menuseparator
1390 ) which is configuration-specific.
1393 \begin_layout Chapter
1394 The Preferences dialog
1397 \begin_layout Standard
1398 All options of the preferences dialog are described in the Appendix
1400 The Preferences Dialog
1407 For some options you might find here more details.
1410 \begin_layout Section
1412 \begin_inset CommandInset label
1421 \begin_layout Standard
1422 The first step is to define your file formats if they are not already defined.
1424 \begin_inset Flex MenuItem
1427 \begin_layout Plain Layout
1428 Tools\SpecialChar menuseparator
1436 \begin_inset Flex MenuItem
1439 \begin_layout Plain Layout
1440 File Handling\SpecialChar menuseparator
1447 \begin_inset Flex MenuItem
1450 \begin_layout Plain Layout
1456 button to define your new format.
1458 \begin_inset Flex MenuItem
1461 \begin_layout Plain Layout
1467 field contains the name used to identify the format in the GUI.
1469 \begin_inset Flex MenuItem
1472 \begin_layout Plain Layout
1478 is used to identify the format internally.
1479 You will also need to enter a file extension.
1480 These are all required.
1482 \begin_inset Flex MenuItem
1485 \begin_layout Plain Layout
1491 field is used to provide a keyboard shortcut on the menus.
1492 (For example, pressing
1493 \begin_inset Flex MenuItem
1496 \begin_layout Plain Layout
1503 \begin_inset Flex MenuItem
1506 \begin_layout Plain Layout
1507 Document\SpecialChar menuseparator
1508 View (Other Formats)\SpecialChar menuseparator
1517 \begin_layout Standard
1519 \begin_inset Flex MenuItem
1522 \begin_layout Plain Layout
1529 \begin_inset Flex MenuItem
1532 \begin_layout Plain Layout
1539 For example, you might want to use
1540 \begin_inset Flex MenuItem
1543 \begin_layout Plain Layout
1549 to view PostScript files.
1550 You can enter the command needed to start the program in the corresponding
1552 In defining this command, you can use the four variables listed in the
1554 The viewer is launched when you view an image in \SpecialChar LyX
1556 \begin_inset Flex MenuItem
1559 \begin_layout Plain Layout
1560 Document\SpecialChar menuseparator
1567 The editor is for example launched when you right-click on an image and
1569 \begin_inset Flex MenuItem
1572 \begin_layout Plain Layout
1578 in the appearing context menu.
1581 \begin_layout Standard
1583 \begin_inset Flex MenuItem
1586 \begin_layout Plain Layout
1592 type of a format is optional, but if it is specified, it must be unique
1594 It is used to detect files of this format from the file contents.
1595 For some important file formats there is no MIME type officially registered
1597 \begin_inset CommandInset href
1600 target "http://www.iana.org/assignments/media-types/"
1605 Therefore \SpecialChar LyX
1606 uses the extended list of MIME types as specified by
1607 \begin_inset CommandInset href
1609 name "freedesktop.org"
1610 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1617 \begin_layout Standard
1619 \begin_inset Flex MenuItem
1622 \begin_layout Plain Layout
1628 option tells \SpecialChar LyX
1629 that a format is suitable for document export.
1630 If this is set and if a suitable conversion route exists (see
1631 \begin_inset CommandInset ref
1633 reference "sec:Converters"
1637 ), the format will appear in the
1638 \begin_inset Flex MenuItem
1641 \begin_layout Plain Layout
1642 File\SpecialChar menuseparator
1649 The format will also appear in the
1650 \begin_inset Flex MenuItem
1653 \begin_layout Plain Layout
1654 Document\SpecialChar menuseparator
1660 menu if a viewer is specified for the format.
1661 Pure image formats, such as
1662 \begin_inset Flex Code
1665 \begin_layout Plain Layout
1671 , should not use this option.
1672 Formats that can both represent vector graphics and documents like
1673 \begin_inset Flex Code
1676 \begin_layout Plain Layout
1685 \begin_layout Standard
1687 \begin_inset Flex MenuItem
1690 \begin_layout Plain Layout
1691 Vector graphics format
1696 tells \SpecialChar LyX
1697 that a format can contain vector graphics.
1698 This information is used to determine the target format of included graphics
1700 \begin_inset Flex MenuItem
1703 \begin_layout Plain Layout
1710 Included graphics may need to be converted to either
1711 \begin_inset Flex MenuItem
1714 \begin_layout Plain Layout
1721 \begin_inset Flex MenuItem
1724 \begin_layout Plain Layout
1731 \begin_inset Flex MenuItem
1734 \begin_layout Plain Layout
1741 \begin_inset Flex MenuItem
1744 \begin_layout Plain Layout
1750 cannot handle other image formats.
1751 If an included graphic is not already in
1752 \begin_inset Flex MenuItem
1755 \begin_layout Plain Layout
1762 \begin_inset Flex MenuItem
1765 \begin_layout Plain Layout
1772 \begin_inset Flex MenuItem
1775 \begin_layout Plain Layout
1781 format, it is converted to
1782 \begin_inset Flex MenuItem
1785 \begin_layout Plain Layout
1791 if the vector format option is set, and otherwise to
1792 \begin_inset Flex MenuItem
1795 \begin_layout Plain Layout
1804 \begin_layout Section
1808 \begin_layout Standard
1809 Since all conversions from one format to another take place in \SpecialChar LyX
1811 directory, it is sometimes necessary to modify a file before copying it
1812 to the temporary directory in order that the conversion may be performed.
1816 \begin_layout Plain Layout
1817 For example, the file may refer to other files—images, for example—using
1818 relative file names, and these may become invalid when the file is copied
1819 to the temporary directory.
1824 This is done by a Copier: It copies a file to (or from) the temporary directory
1825 and may modify it in the process.
1828 \begin_layout Standard
1829 The definitions of the copiers may use four variables:
1832 \begin_layout Labeling
1833 \labelwidthstring 00.00.0000
1834 \begin_inset Flex Code
1837 \begin_layout Plain Layout
1843 The \SpecialChar LyX
1844 system directory (e.
1845 \begin_inset space \thinspace{}
1849 \begin_inset space \space{}
1853 \begin_inset Flex MenuItem
1856 \begin_layout Plain Layout
1865 \begin_layout Labeling
1866 \labelwidthstring 00.00.0000
1867 \begin_inset Flex Code
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
1904 The base name (without filename extension) in the \SpecialChar LyX
1908 \begin_layout Labeling
1909 \labelwidthstring 00.00.0000
1910 \begin_inset Flex Code
1913 \begin_layout Plain Layout
1919 The full directory path of the \SpecialChar LyX
1923 \begin_layout Labeling
1924 \labelwidthstring 00.00.0000
1925 \begin_inset Flex Code
1928 \begin_layout Plain Layout
1934 The full pathname to the original \SpecialChar LyX
1935 file being processed
1938 \begin_layout Labeling
1939 \labelwidthstring 00.00.0000
1940 \begin_inset Flex Code
1943 \begin_layout Plain Layout
1949 The filename (without any directory path) of the \SpecialChar LyX
1953 \begin_layout Labeling
1954 \labelwidthstring 00.00.0000
1955 \begin_inset Flex Code
1958 \begin_layout Plain Layout
1964 The `\SpecialChar LaTeX
1968 \begin_layout Standard
1969 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1977 It is relevant only when exporting files suitable for such inclusion.
1980 \begin_layout Standard
1981 Copiers can be used to do almost anything with output files.
1982 For example, suppose you want generated pdf files to be copied to a special
1984 \begin_inset Flex Code
1987 \begin_layout Plain Layout
1994 Then you could write a shell script such as this one:
1997 \begin_layout Standard
1998 \begin_inset listings
2002 \begin_layout Plain Layout
2007 \begin_layout Plain Layout
2012 \begin_layout Plain Layout
2014 TOFILE=`basename $2`
2017 \begin_layout Plain Layout
2019 cp $FROMFILE /home/you/pdf/$TOFILE
2024 Save it in your local \SpecialChar LyX
2026 \begin_inset Flex Code
2029 \begin_layout Plain Layout
2030 /home/you/.lyx/scripts/pdfcopier.sh
2035 —and make it executable, if you need to do so on your platform.
2037 \begin_inset Flex MenuItem
2040 \begin_layout Plain Layout
2041 Tools\SpecialChar menuseparator
2047 dialog, select under
2048 \begin_inset Flex MenuItem
2051 \begin_layout Plain Layout
2052 File Handling\SpecialChar menuseparator
2059 \begin_inset Flex MenuItem
2062 \begin_layout Plain Layout
2068 format—or one of the other pdf formats—and enter
2069 \begin_inset Flex Code
2072 \begin_layout Plain Layout
2073 pdfcopier.sh $$i $$o
2079 \begin_inset Flex MenuItem
2082 \begin_layout Plain Layout
2092 \begin_layout Standard
2093 Copiers are used by \SpecialChar LyX
2094 in various of its own conversions.
2095 For example, if appropriate programs are found, \SpecialChar LyX
2096 will automatically install
2098 \begin_inset Flex MenuItem
2101 \begin_layout Plain Layout
2108 \begin_inset Flex MenuItem
2111 \begin_layout Plain Layout
2113 \begin_inset space ~
2122 When these formats are exported, the copier sees that not just the main
2123 HTML file but various associated files (style files, images, etc.) are also
2125 All these files are written to a subdirectory of the directory in which
2126 the original \SpecialChar LyX
2131 \begin_layout Plain Layout
2132 This copier can be customized.
2134 \begin_inset Quotes eld
2138 \begin_inset Quotes erd
2141 argument takes a comma-separated list of extensions to be copied; if it
2142 is omitted, all files will be copied.
2144 \begin_inset Quotes eld
2148 \begin_inset Quotes erd
2151 argument determines the extension added to the generated directory.
2153 \begin_inset Quotes eld
2157 \begin_inset Flex MenuItem
2160 \begin_layout Plain Layout
2167 \begin_inset Quotes erd
2170 , so HTML generated from
2171 \begin_inset Flex MenuItem
2174 \begin_layout Plain Layout
2175 /path/to/filename.lyx
2181 \begin_inset Flex MenuItem
2184 \begin_layout Plain Layout
2185 /path/to/filename.html.LyXconv
2199 \begin_layout Section
2201 \begin_inset CommandInset label
2203 name "sec:Converters"
2210 \begin_layout Standard
2211 You can define your own Converters to convert files between different formats.
2213 \begin_inset Flex MenuItem
2216 \begin_layout Plain Layout
2217 Tools\SpecialChar menuseparator
2218 Preferences\SpecialChar menuseparator
2219 File Handling\SpecialChar menuseparator
2228 \begin_layout Standard
2229 To define a new converter, select the
2230 \begin_inset Flex MenuItem
2233 \begin_layout Plain Layout
2235 \begin_inset space ~
2244 \begin_inset Flex MenuItem
2247 \begin_layout Plain Layout
2249 \begin_inset space ~
2257 from the drop-down lists, enter the command needed for the conversion,
2259 \begin_inset Flex MenuItem
2262 \begin_layout Plain Layout
2269 Several variables can be used in the definition of converters:
2272 \begin_layout Labeling
2273 \labelwidthstring 00.00.0000
2274 \begin_inset Flex Code
2277 \begin_layout Plain Layout
2283 The \SpecialChar LyX
2287 \begin_layout Labeling
2288 \labelwidthstring 00.00.0000
2289 \begin_inset Flex Code
2292 \begin_layout Plain Layout
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
2326 The base filename of the input file (i.
2327 \begin_inset space \thinspace{}
2330 g., without the extension)
2333 \begin_layout Labeling
2334 \labelwidthstring 00.00.0000
2335 \begin_inset Flex Code
2338 \begin_layout Plain Layout
2344 The path to the input file
2347 \begin_layout Labeling
2348 \labelwidthstring 00.00.0000
2349 \begin_inset Flex Code
2352 \begin_layout Plain Layout
2358 The path to the original input file (this is different from $$p when a
2359 chain of converters is called)
2362 \begin_layout Labeling
2363 \labelwidthstring 00.00.0000
2364 \begin_inset Flex Code
2367 \begin_layout Plain Layout
2373 The iconv name for the encoding of the document.
2376 \begin_layout Standard
2378 \begin_inset Flex MenuItem
2381 \begin_layout Plain Layout
2383 \begin_inset space ~
2391 field you can enter the following flags, separated by commas:
2394 \begin_layout Labeling
2395 \labelwidthstring 00.00.0000
2396 \begin_inset Flex Code
2399 \begin_layout Plain Layout
2405 This converter runs some form of \SpecialChar LaTeX
2407 This will make \SpecialChar LyX
2408 's \SpecialChar LaTeX
2409 error logs available.
2412 \begin_layout Labeling
2413 \labelwidthstring 00.00.0000
2414 \begin_inset Flex Code
2417 \begin_layout Plain Layout
2423 Needs the \SpecialChar LaTeX
2425 \begin_inset Flex MenuItem
2428 \begin_layout Plain Layout
2434 file for the conversion.
2437 \begin_layout Labeling
2438 \labelwidthstring 00.00.0000
2439 \begin_inset Flex Code
2442 \begin_layout Plain Layout
2449 \begin_inset Quotes eld
2453 \begin_inset Quotes erd
2456 file from the backend, which in practice means a \SpecialChar LaTeX
2457 file like the one we
2458 would export, without
2459 \begin_inset Flex Code
2462 \begin_layout Plain Layout
2471 \begin_layout Labeling
2472 \labelwidthstring 00.00.0000
2473 \begin_inset Flex Code
2476 \begin_layout Plain Layout
2485 \begin_layout Standard
2486 The following three flags are not really flags at all because they take
2488 \begin_inset Flex MenuItem
2491 \begin_layout Plain Layout
2493 \begin_inset space ~
2497 \begin_inset space ~
2508 \begin_layout Labeling
2509 \labelwidthstring 00.00.0000
2510 \begin_inset Flex Code
2513 \begin_layout Plain Layout
2519 If set, the converter's standard error will be redirected to a file
2520 \begin_inset Flex Code
2523 \begin_layout Plain Layout
2529 , and the script given as argument will be run as:
2530 \begin_inset Flex Code
2533 \begin_layout Plain Layout
2534 script < infile.out > infile.log
2540 The argument may contain
2541 \begin_inset Flex Code
2544 \begin_layout Plain Layout
2553 \begin_layout Labeling
2554 \labelwidthstring 00.00.0000
2555 \begin_inset Flex Code
2558 \begin_layout Plain Layout
2564 The name of the directory in which the converter will dump the generated
2567 will not create this directory, and it does not copy anything into it,
2568 though it will copy this directory to the destination.
2569 The argument may contain
2570 \begin_inset Flex Code
2573 \begin_layout Plain Layout
2579 , which will be replaced by the base name of the input and output files,
2580 respectively, when the directory is copied.
2581 \begin_inset Newline newline
2584 Note that resultdir and usetempdir make no sense together.
2585 The latter will be ignored if the former is given.
2588 \begin_layout Labeling
2589 \labelwidthstring 00.00.0000
2590 \begin_inset Flex Code
2593 \begin_layout Plain Layout
2599 Determines the output file name and may, contain
2600 \begin_inset Flex Code
2603 \begin_layout Plain Layout
2610 Sensible only with resultdir and optional even then; if not given, it defaults
2614 \begin_layout Standard
2615 None of these last three are presently used in any of the converters that
2616 are installed with \SpecialChar LyX
2621 \begin_layout Standard
2622 You do not have to define converters for all formats between which you want
2624 For example, you will note that there is no `\SpecialChar LyX
2625 to PostScript' converter,
2626 but \SpecialChar LyX
2627 will export PostScript.
2628 It does so by first creating a \SpecialChar LaTeX
2629 file (no converter needs to be defined
2630 for this) which is then converted to DVI using the `\SpecialChar LaTeX
2632 and finally converting the resulting DVI file to PostScript.
2634 finds such `chains' of converters automatically, and it will always choose
2635 the shortest possible chain.
2636 You can, though, still define multiple conversion methods between file
2638 For example, the standard \SpecialChar LyX
2639 configuration provides five ways to convert
2644 \begin_layout Enumerate
2646 \begin_inset Flex MenuItem
2649 \begin_layout Plain Layout
2658 \begin_layout Enumerate
2659 via (DVI and) PostScript, using
2660 \begin_inset Flex MenuItem
2663 \begin_layout Plain Layout
2672 \begin_layout Enumerate
2674 \begin_inset Flex MenuItem
2677 \begin_layout Plain Layout
2686 \begin_layout Enumerate
2688 \begin_inset Flex MenuItem
2691 \begin_layout Plain Layout
2701 \begin_layout Enumerate
2703 \begin_inset Flex MenuItem
2706 \begin_layout Plain Layout
2716 \begin_layout Standard
2717 To define such alternate chains, you must define multiple target `file formats',
2719 \begin_inset CommandInset ref
2721 reference "sec:Formats"
2726 For example, in the standard configuration, the formats named
2727 \begin_inset Flex MenuItem
2730 \begin_layout Plain Layout
2737 \begin_inset Flex MenuItem
2740 \begin_layout Plain Layout
2747 \begin_inset Flex MenuItem
2750 \begin_layout Plain Layout
2757 \begin_inset Flex MenuItem
2760 \begin_layout Plain Layout
2767 \begin_inset Flex MenuItem
2770 \begin_layout Plain Layout
2777 \begin_inset Flex MenuItem
2780 \begin_layout Plain Layout
2787 \begin_inset Flex MenuItem
2790 \begin_layout Plain Layout
2797 \begin_inset Flex MenuItem
2800 \begin_layout Plain Layout
2808 \begin_inset Flex MenuItem
2811 \begin_layout Plain Layout
2818 \begin_inset Flex MenuItem
2821 \begin_layout Plain Layout
2828 ) are defined, all of which share the extension
2829 \begin_inset Flex MenuItem
2832 \begin_layout Plain Layout
2838 , and which correspond to the conversion methods just mentioned.
2841 \begin_layout Chapter
2842 Internationalizing \SpecialChar LyX
2844 \begin_inset CommandInset label
2846 name "cha:Internationalizing-LyX"
2853 \begin_layout Standard
2855 supports using a translated interface.
2856 Last time we checked, \SpecialChar LyX
2857 provided text in thirty languages.
2858 The language of choice is called your
2863 (For further reading on locale settings, see also the documentation for
2864 locale that comes with your operating system.
2865 For Linux, the manual page for
2866 \begin_inset Flex Code
2869 \begin_layout Plain Layout
2875 could be a good place to start).
2878 \begin_layout Standard
2879 Notice that these translations will work, but do contain a few flaws.
2880 In particular, all dialogs have been designed with the English text in
2881 mind, which means that some of the translated text will be too large to
2882 fit within the space allocated.
2883 This is only a display problem and will not cause any harm.
2884 Also, you will find that some of the translations do not define shortcut
2885 keys for everything.
2886 Sometimes, there are simply not enough free letters to do it.
2887 Other times, the translator just hasn't got around to doing it yet.
2888 Our localization team, which you may wish to join,
2892 \begin_layout Plain Layout
2893 If you are a fluent speaker of a language other than English, joining these
2894 teams is a great way to give back to the \SpecialChar LyX
2900 will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2904 \begin_layout Section
2905 Translating \SpecialChar LyX
2909 \begin_layout Subsection
2910 Translating the graphical user interface (text messages).
2913 \begin_layout Standard
2916 \begin_inset Flex Code
2919 \begin_layout Plain Layout
2925 library to handle the internationalization of the interface.
2926 To have \SpecialChar LyX
2927 speak your favorite language in all menus and dialogs, you need
2929 \begin_inset Flex Code
2932 \begin_layout Plain Layout
2938 -file for that language.
2939 When this is available, you'll have to generate a
2940 \begin_inset Flex Code
2943 \begin_layout Plain Layout
2949 -file from it and install the
2950 \begin_inset Flex Code
2953 \begin_layout Plain Layout
2960 The process of doing all of this is explained in the documentation for
2962 \begin_inset Flex Code
2965 \begin_layout Plain Layout
2972 It is possible to do this just for yourself, but if you're going to do
2973 it, you might as well share the results of your labors with the rest of
2974 the \SpecialChar LyX
2976 Send a message to the \SpecialChar LyX
2977 developers' list for more information about how
2981 \begin_layout Standard
2982 In short, this is what you should do (xx denotes the language code):
2985 \begin_layout Itemize
2986 Check out the \SpecialChar LyX
2989 \begin_inset CommandInset href
2991 name "information on the web"
2992 target "http://www.lyx.org/HowToUseSVN"
2999 \begin_layout Itemize
3001 \begin_inset Flex Code
3004 \begin_layout Plain Layout
3010 to the folder of the
3011 \begin_inset Flex Code
3014 \begin_layout Plain Layout
3022 \begin_inset Flex Code
3025 \begin_layout Plain Layout
3033 \begin_inset Flex Code
3036 \begin_layout Plain Layout
3042 doesn't exist anywhere, it can be remade with the console command
3043 \begin_inset Flex Code
3046 \begin_layout Plain Layout
3052 in that directory, or you can use an existing po-file for some other language
3056 \begin_layout Itemize
3058 \begin_inset Flex Code
3061 \begin_layout Plain Layout
3071 \begin_layout Plain Layout
3072 This is just a text file, so it can be edited in any text editor.
3073 But there are also specialized programs that support such editing, such
3078 (for all platforms) or
3087 contains a `mode' for editing
3088 \begin_inset Flex Code
3091 \begin_layout Plain Layout
3102 For some menu- and widget-labels, there are also shortcut keys that should
3104 Those keys are marked after a `|', and should be translated according to
3105 the words and phrases of the language.
3106 You should also fill also out the information at the beginning of the new
3108 \begin_inset Flex Code
3111 \begin_layout Plain Layout
3117 -file with your email-address, etc., so people know where to reach you with
3118 suggestions and entertaining flames.
3121 \begin_layout Standard
3122 If you are just doing this on your own, then:
3125 \begin_layout Itemize
3127 \begin_inset Flex Code
3130 \begin_layout Plain Layout
3137 This can be done with
3138 \begin_inset Flex Code
3141 \begin_layout Plain Layout
3142 msgfmt -o xx.mo < xx.po
3150 \begin_layout Itemize
3152 \begin_inset Flex Code
3155 \begin_layout Plain Layout
3161 -file to your locale-tree, at the correct directory for application messages
3166 xx, and under the name
3167 \begin_inset Flex Code
3170 \begin_layout Plain Layout
3177 \begin_inset space \thinspace{}
3181 \begin_inset space \space{}
3185 \begin_inset Flex Code
3188 \begin_layout Plain Layout
3189 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3199 \begin_layout Standard
3200 As said, however, it would be best if the new
3201 \begin_inset Flex Code
3204 \begin_layout Plain Layout
3210 file could be added to the \SpecialChar LyX
3211 distribution, so others can use it.
3212 Adding it involves making additional changes to \SpecialChar LyX
3214 So send an email to the developers' mailing list if you're interested in
3218 \begin_layout Subsubsection
3222 \begin_layout Standard
3223 Sometimes it turns out that one English message needs to be translated into
3224 different messages in the target language.
3225 One example is the message
3226 \begin_inset Flex Code
3229 \begin_layout Plain Layout
3235 which has the German translation
3243 , depending upon exactly what the English
3244 \begin_inset Quotes eld
3248 \begin_inset Quotes erd
3253 \begin_inset Flex Code
3256 \begin_layout Plain Layout
3262 does not handle such ambiguous translations.
3263 Therefore you have to add some context information to the message: Instead
3265 \begin_inset Flex Code
3268 \begin_layout Plain Layout
3275 \begin_inset Flex Code
3278 \begin_layout Plain Layout
3279 To[[as in 'From format x to format y']]
3285 \begin_inset Flex Code
3288 \begin_layout Plain Layout
3289 To[[as in 'From page x to page y']].
3294 Now the two occurrences of
3295 \begin_inset Flex Code
3298 \begin_layout Plain Layout
3305 \begin_inset Flex Code
3308 \begin_layout Plain Layout
3314 and can be translated correctly to
3325 \begin_layout Standard
3326 Of course the context information needs to be stripped off the original
3327 message when no translation is used.
3328 Therefore you have to put it in double square brackets at the end of the
3329 message (see the example above).
3330 The translation mechanism of \SpecialChar LyX
3331 ensures that everything in double square
3332 brackets at the end of messages is removed before displaying the message.
3335 \begin_layout Subsection
3336 Translating the documentation.
3339 \begin_layout Standard
3340 The online documentation (in the
3341 \begin_inset Flex MenuItem
3344 \begin_layout Plain Layout
3350 -menu) can (and should!) be translated.
3351 If there are translated versions of the documentation available
3355 \begin_layout Plain Layout
3356 As of March 2008, at least some of the documents have been translated into
3357 fourteen languages, with the Tutorial available in a few more.
3362 and the locale is set accordingly, these will be used automagically by
3366 looks for translated versions as
3367 \begin_inset Flex Code
3370 \begin_layout Plain Layout
3371 LyXDir/doc/xx/DocName.lyx
3377 \begin_inset Flex Code
3380 \begin_layout Plain Layout
3386 is the code for the language currently in use.
3387 If there are no translated documents, the default English versions will
3389 Note that the translated versions must have the same filenames (
3390 \begin_inset Flex Code
3393 \begin_layout Plain Layout
3399 above) as the original.
3400 If you feel up to translating the documentation (an excellent way to proof-read
3401 the original documentation by the way!), there are a few things you should
3405 \begin_layout Itemize
3406 Check out the documentation translation web page at
3407 \begin_inset CommandInset href
3409 name "http://www.lyx.org/Translation"
3410 target "http://www.lyx.org/Translation"
3415 That way, you can find out which (if any) documents have already been translate
3416 d into your language.
3417 You can also find out who (if anyone) is organizing the effort to translate
3418 the documentation into your language.
3419 If no one is organizing the effort, please let us know that you're interested.
3422 \begin_layout Standard
3423 Once you get to actually translating, here's a few hints for you that may
3427 \begin_layout Itemize
3428 Join the documentation team! There is information on how to do that in
3429 \begin_inset Flex Code
3432 \begin_layout Plain Layout
3439 \begin_inset Flex MenuItem
3442 \begin_layout Plain Layout
3443 Help\SpecialChar menuseparator
3449 ), which by the way is the first document you should translate.
3452 \begin_layout Itemize
3453 Learn the typographic conventions for the language you are translating to.
3454 Typography is an ancient art and over the centuries, a great variety of
3455 conventions have developed throughout different parts of the world.
3456 Also study the professional terminology amongst typographers in your country.
3457 Inventing your own terminology will only confuse the users.
3460 (Warning! Typography is addictive!)
3463 \begin_layout Itemize
3464 Make a copy of the document.
3465 This will be your working copy.
3466 You can use this as your personal translated help-file by placing it in
3468 \begin_inset Flex Code
3471 \begin_layout Plain Layout
3480 \begin_layout Itemize
3481 Sometimes the original document (from the \SpecialChar LyX
3482 team) will be updated.
3483 Use the source viewer at
3484 \begin_inset CommandInset href
3486 name "http://www.lyx.org/trac/timeline"
3487 target "http://www.lyx.org/trac/timeline"
3491 to see what has been changed.
3492 That way you can easily see which parts of the translated document need
3496 \begin_layout Standard
3497 If you ever find an error in the original document, fix it and notify the
3498 rest of the documentation team of the changes! (You didn't forget to join
3499 the documentation team, did you?)
3502 \begin_layout Standard
3503 \begin_inset Branch OutDated
3506 \begin_layout Section
3507 International Keyboard Support
3510 \begin_layout Standard
3513 [Editor's Note: The following section is by
3521 It needs to be fixed to conform to the new Documentation Style sheet and
3522 to make use of the new v1.0 features.
3523 The whole thing also needs to be merged with the section following it.-jw
3524 It may also be badly out of date.-rh (2008)]
3527 \begin_layout Subsection
3528 Defining Own Keymaps: Keymap File Format
3531 \begin_layout Standard
3532 Let's look at a keyboard definition file a little closer.
3533 It is a plain text file defining
3536 \begin_layout Itemize
3537 key-to-key or key-to-string translations
3540 \begin_layout Itemize
3544 \begin_layout Itemize
3545 dead keys exceptions
3548 \begin_layout Standard
3549 To define key-to-key or key-to-string translation, use this command:
3552 \begin_layout Quotation
3553 \begin_inset Flex Code
3556 \begin_layout Plain Layout
3565 \begin_inset Flex Code
3568 \begin_layout Plain Layout
3577 \begin_layout Standard
3579 \begin_inset Flex Code
3582 \begin_layout Plain Layout
3588 is the key to be translated and
3589 \begin_inset Flex Code
3592 \begin_layout Plain Layout
3598 is the string to be inserted into the document.
3599 To define dead keys, use:
3602 \begin_layout Quotation
3603 \begin_inset Flex Code
3606 \begin_layout Plain Layout
3615 \begin_inset Flex Code
3618 \begin_layout Plain Layout
3627 \begin_layout Standard
3629 \begin_inset Flex Code
3632 \begin_layout Plain Layout
3638 is a keyboard key and
3639 \begin_inset Flex Code
3642 \begin_layout Plain Layout
3649 The following dead keys are supported (shortcut name is in parentheses):
3652 \begin_layout Quotation
3656 \begin_inset space \hfill{}
3662 \begin_layout Quotation
3664 \begin_inset space \hfill{}
3670 \begin_layout Quotation
3672 \begin_inset space \hfill{}
3678 \begin_layout Quotation
3680 \begin_inset space \hfill{}
3686 \begin_layout Quotation
3688 \begin_inset space \hfill{}
3694 \begin_layout Quotation
3696 \begin_inset space \hfill{}
3703 \begin_layout Plain Layout
3715 \begin_layout Quotation
3717 \begin_inset space \hfill{}
3723 \begin_layout Quotation
3725 \begin_inset space \hfill{}
3732 \begin_layout Plain Layout
3744 \begin_layout Quotation
3746 \begin_inset space \hfill{}
3752 \begin_layout Quotation
3754 \begin_inset space \hfill{}
3760 \begin_layout Quotation
3762 \begin_inset space \hfill{}
3769 \begin_layout Plain Layout
3781 \begin_layout Quotation
3783 \begin_inset space \hfill{}
3790 \begin_layout Plain Layout
3802 \begin_layout Quotation
3804 \begin_inset space \hfill{}
3810 \begin_layout Quotation
3811 hungarian umlaut (hug)
3812 \begin_inset space \hfill{}
3818 \begin_layout Quotation
3820 \begin_inset space \hfill{}
3826 \begin_layout Quotation
3828 \begin_inset space \hfill{}
3835 \begin_layout Plain Layout
3847 \begin_layout Standard
3848 Since in many international keyboards there are exceptions to what some
3849 dead keys should do, you can define them using
3852 \begin_layout Quotation
3853 \begin_inset Flex Code
3856 \begin_layout Plain Layout
3864 deadkey key outstring
3867 \begin_layout Standard
3868 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3872 \begin_layout Quotation
3873 \begin_inset Flex Code
3876 \begin_layout Plain Layout
3889 \begin_layout Standard
3890 to make it work correctly.
3891 Also, you have to define as exceptions dead keys over i and j, to remove
3892 the dot from them before inserting an accent mark.
3893 I will change this when the time comes, but so far I haven't had time.
3896 \begin_layout Standard
3897 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3900 \begin_inset Flex Code
3903 \begin_layout Plain Layout
3909 have different meaning.
3911 \begin_inset Flex Code
3914 \begin_layout Plain Layout
3920 marks comments, quotes start and end \SpecialChar LaTeX
3922 To enter quote, you'll need to use
3923 \begin_inset Flex Code
3926 \begin_layout Plain Layout
3935 \begin_inset Flex Code
3938 \begin_layout Plain Layout
3945 \begin_inset Flex Code
3948 \begin_layout Plain Layout
3959 \begin_layout Standard
3960 If you make a keyboard description file that works for your language, please
3961 mail it to me, so I can include it in the next keymap distribution.
3964 \begin_layout Standard
3965 More keywords will be supported in keymap configuration file in future,
3969 \begin_layout Itemize
3970 \begin_inset Flex Code
3973 \begin_layout Plain Layout
3984 \begin_inset space \hfill{}
3988 \begin_inset Flex Code
3991 \begin_layout Plain Layout
4000 \begin_layout Itemize
4001 \begin_inset Flex Code
4004 \begin_layout Plain Layout
4015 \begin_inset space \hfill{}
4019 \begin_inset Flex Code
4022 \begin_layout Plain Layout
4028 an external keymap translation program
4031 \begin_layout Standard
4032 Also, it should look into
4033 \begin_inset Flex Code
4036 \begin_layout Plain Layout
4042 file for defaults, too (for example, a
4043 \begin_inset Flex Code
4046 \begin_layout Plain Layout
4054 option to include default keyboard).
4062 \begin_layout Section
4063 International Keymap Stuff
4064 \begin_inset CommandInset label
4066 name "sec:International-Keymap-Stuff"
4073 \begin_layout Standard
4074 \begin_inset Note Note
4077 \begin_layout Plain Layout
4078 In doing the revisions on this document in March 2008, I did not look over
4079 this stuff, as I do not understand it.
4080 It would be good if someone else could do so.
4089 \begin_layout Standard
4090 The next two sections describe the
4091 \begin_inset Flex Code
4094 \begin_layout Plain Layout
4103 \begin_inset Flex Code
4106 \begin_layout Plain Layout
4114 file syntax in detail.
4115 These sections should help you design your own key map if the ones provided
4116 do not meet your needs.
4119 \begin_layout Subsection
4123 \begin_layout Standard
4127 \begin_inset Flex Code
4130 \begin_layout Plain Layout
4136 file maps keystrokes to characters or strings.
4137 As the name suggests, it sets a keyboard mapping.
4139 \begin_inset Flex Code
4142 \begin_layout Plain Layout
4153 \begin_inset Flex Code
4156 \begin_layout Plain Layout
4171 \begin_inset Flex Code
4174 \begin_layout Plain Layout
4187 \begin_inset Flex Code
4190 \begin_layout Plain Layout
4199 \begin_inset Flex Code
4202 \begin_layout Plain Layout
4210 are described in this section.
4213 \begin_layout Labeling
4214 \labelwidthstring 00.00.0000
4215 \begin_inset Flex Code
4218 \begin_layout Plain Layout
4226 Map a character to a string
4229 \begin_layout LyX-Code
4244 \begin_layout Standard
4277 the double-quote (")
4294 must be escaped with a preceding backslash (
4305 \begin_layout Standard
4307 \begin_inset Flex MenuItem
4310 \begin_layout Plain Layout
4318 statement to cause the symbol
4319 \begin_inset Flex MenuItem
4322 \begin_layout Plain Layout
4330 to be output for the keystroke
4331 \begin_inset Flex MenuItem
4334 \begin_layout Plain Layout
4345 \begin_layout LyX-Code
4351 \begin_layout Labeling
4352 \labelwidthstring 00.00.0000
4353 \begin_inset Flex Code
4356 \begin_layout Plain Layout
4364 Specify an accent character
4367 \begin_layout LyX-Code
4376 \begin_layout Standard
4377 This will make the cha
4415 This is the dead key
4419 \begin_layout Plain Layout
4426 refers to a key that does not produce a character by itself, but when followed
4427 with another key, produces the desired accent character.
4428 For example, a German characte
4430 r with an umlaut like
4440 can be produced in this manner.
4449 \begin_layout Standard
4462 and then another key not in
4479 followed by the other, not allowed key, as output.
4483 \begin_inset Flex MenuItem
4486 \begin_layout Plain Layout
4494 cancels a dead key, so if
4505 \begin_inset Flex MenuItem
4508 \begin_layout Plain Layout
4517 , the cursor will not go one position backwards but will instead cancel
4533 might have had on the next keystroke.
4537 \begin_layout Standard
4538 The following example specifies that the character ' is to be an acute accent,
4539 allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4542 \begin_layout LyX-Code
4545 kmod ' acute aeiouAEIOU
4548 \begin_layout Labeling
4549 \labelwidthstring 00.00.0000
4550 \begin_inset Flex Code
4553 \begin_layout Plain Layout
4559 Specify an exception to the accent character
4562 \begin_layout LyX-Code
4571 \begin_layout Standard
4572 This defines an exce
4613 have been assigned a keystroke with a previous
4616 \begin_inset Flex Code
4619 \begin_layout Plain Layout
4643 must not belong in the
4690 If such a declaration does not exist in
4698 \begin_inset Flex Code
4701 \begin_layout Plain Layout
4735 \begin_inset Flex Code
4738 \begin_layout Plain Layout
4752 \begin_layout Standard
4753 The following command produces causes äi to be produced when you enter acute-i
4757 \begin_layout LyX-Code
4771 \begin_layout Labeling
4772 \labelwidthstring 00.00.0000
4773 \begin_inset Flex Code
4776 \begin_layout Plain Layout
4782 Combine two accent characters
4785 \begin_layout LyX-Code
4791 accent1 accent2 allowed
4794 \begin_layout Standard
4795 This one is getting pretty esoteric.
4796 It allows you to combine the effect
4852 \begin_inset Flex Code
4855 \begin_layout Plain Layout
4883 \begin_layout Standard
4884 Consider this example from the
4885 \begin_inset Flex Code
4888 \begin_layout Plain Layout
4899 \begin_layout LyX-Code
4902 kmod ; acute aeioyvhAEIOYVH
4906 kcomb acute umlaut iyIY
4909 \begin_layout Standard
4910 This allows you to press
4911 \begin_inset Flex MenuItem
4914 \begin_layout Plain Layout
4922 and get the effect of
4923 \begin_inset Flex Code
4926 \begin_layout Plain Layout
4945 in this case cancels the last dead key, so if you press
4946 \begin_inset Flex MenuItem
4949 \begin_layout Plain Layout
4958 \begin_inset Flex Code
4961 \begin_layout Plain Layout
4974 \begin_layout Subsection
4978 \begin_layout Standard
4980 \begin_inset Flex Code
4983 \begin_layout Plain Layout
4991 mapping is performed, a
4992 \begin_inset Flex Code
4995 \begin_layout Plain Layout
5005 file maps the strings that the symbols generate to characters in the current
5007 The \SpecialChar LyX
5008 distribution currently includes at least the
5009 \begin_inset Flex Code
5012 \begin_layout Plain Layout
5021 \begin_inset Flex Code
5024 \begin_layout Plain Layout
5035 \begin_layout Standard
5037 \begin_inset Flex Code
5040 \begin_layout Plain Layout
5048 file is a sequence of declarations of the form
5051 \begin_layout LyX-Code
5064 \begin_layout Standard
5065 For example, in order to map
5066 \begin_inset Flex MenuItem
5069 \begin_layout Plain Layout
5079 to the corresponding character in the iso-8859-1 set (233), the following
5083 \begin_layout LyX-Code
5091 \begin_layout Standard
5093 \begin_inset Flex Code
5096 \begin_layout Plain Layout
5105 \begin_inset Flex Code
5108 \begin_layout Plain Layout
5126 the same character can apply to more than one string.
5128 \begin_inset Flex Code
5131 \begin_layout Plain Layout
5142 \begin_layout LyX-Code
5154 \begin_inset Newline newline
5170 \begin_layout Standard
5172 cannot find a mapping for the string produced by the keystroke or a
5173 deadkey sequence, it will check if it looks like an accented char and try
5174 to draw an accent over the character on screen.
5177 \begin_layout Subsection
5181 \begin_layout Standard
5182 There is a second way to add support for international characters through
5183 so-called dead-keys.
5184 A dead-key works in combination with a letter to produce an accented character.
5185 Here, we'll explain how to create a really simple dead-key to illustrate
5189 \begin_layout Standard
5190 Suppose you happen to need the circumflex character,
5191 \begin_inset Quotes eld
5195 \begin_inset Quotes erd
5200 \begin_inset Flex MenuItem
5203 \begin_layout Plain Layout
5210 \begin_inset space ~
5214 \begin_inset Flex MenuItem
5217 \begin_layout Plain Layout
5223 ] to the \SpecialChar LyX
5225 \begin_inset Flex Code
5228 \begin_layout Plain Layout
5235 \begin_inset Flex Code
5238 \begin_layout Plain Layout
5245 Now, whenever you type the
5246 \begin_inset Flex MenuItem
5249 \begin_layout Plain Layout
5255 -key followed by a letter, that letter will have a circumflex accent on
5257 For example, the sequence
5258 \begin_inset Quotes eld
5262 \begin_inset Flex MenuItem
5265 \begin_layout Plain Layout
5272 \begin_inset Quotes erd
5275 produces the letter:
5276 \begin_inset Quotes eld
5280 \begin_inset Quotes erd
5284 If you tried to type
5285 \begin_inset Quotes eld
5289 \begin_inset Flex MenuItem
5292 \begin_layout Plain Layout
5299 \begin_inset Quotes erd
5302 , however, \SpecialChar LyX
5303 will complain with a beep, since a
5304 \begin_inset Quotes eld
5308 \begin_inset Flex MenuItem
5311 \begin_layout Plain Layout
5318 \begin_inset Quotes erd
5321 never takes a circumflex accent.
5323 \begin_inset Flex MenuItem
5326 \begin_layout Plain Layout
5332 after a dead-key produces the bare-accent.
5333 Please note this last point! If you bind a key to a dead-key, you'll need
5334 to rebind the character on that key to yet another key.
5336 \begin_inset Flex MenuItem
5339 \begin_layout Plain Layout
5345 to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5348 \begin_layout Standard
5349 One common way to bind dead-keys is to use
5350 \begin_inset Flex MenuItem
5353 \begin_layout Plain Layout
5360 \begin_inset Flex MenuItem
5363 \begin_layout Plain Layout
5370 \begin_inset Flex MenuItem
5373 \begin_layout Plain Layout
5379 in combination with an accent, like
5380 \begin_inset Quotes eld
5384 \begin_inset Flex MenuItem
5387 \begin_layout Plain Layout
5394 \begin_inset Quotes erd
5398 \begin_inset Quotes eld
5402 \begin_inset Flex MenuItem
5405 \begin_layout Plain Layout
5412 \begin_inset Quotes erd
5416 \begin_inset Quotes eld
5420 \begin_inset Flex MenuItem
5423 \begin_layout Plain Layout
5430 \begin_inset Quotes erd
5434 Another way involves using
5435 \begin_inset Flex Code
5438 \begin_layout Plain Layout
5445 \begin_inset Flex Code
5448 \begin_layout Plain Layout
5454 to set up the special
5455 \begin_inset Flex Code
5458 \begin_layout Plain Layout
5466 \begin_inset Flex Code
5469 \begin_layout Plain Layout
5475 acts in some ways just like
5476 \begin_inset Flex MenuItem
5479 \begin_layout Plain Layout
5485 and permits you to bind keys to accented characters.
5486 You can also turn keys into dead-keys by binding them to something like
5488 \begin_inset Flex Code
5491 \begin_layout Plain Layout
5497 and then binding this symbolic key to the corresponding \SpecialChar LyX
5502 \begin_layout Plain Layout
5507 : This is exactly what I do in my
5508 \begin_inset Flex Code
5511 \begin_layout Plain Layout
5518 \begin_inset Flex Code
5521 \begin_layout Plain Layout
5529 \begin_inset Flex MenuItem
5532 \begin_layout Plain Layout
5534 \begin_inset space ~
5543 \begin_inset Flex Code
5546 \begin_layout Plain Layout
5552 and a bunch of these
5553 \begin_inset Quotes eld
5557 \begin_inset Flex Code
5560 \begin_layout Plain Layout
5567 \begin_inset Quotes erd
5570 symbolic keys bound such things as
5571 \begin_inset Flex MenuItem
5574 \begin_layout Plain Layout
5576 \begin_inset space ~
5585 \begin_inset Flex MenuItem
5588 \begin_layout Plain Layout
5590 \begin_inset space ~
5599 This is how I produce my accented characters.
5604 You can make just about anything into the
5605 \begin_inset Flex Code
5608 \begin_layout Plain Layout
5615 \begin_inset Flex MenuItem
5618 \begin_layout Plain Layout
5624 keys, a spare function key, etc.
5625 As for the \SpecialChar LyX
5626 commands that produce accents, check the entry for
5627 \begin_inset Flex Code
5630 \begin_layout Plain Layout
5641 You'll find the complete list there.
5644 \begin_layout Subsection
5645 Saving your Language Configuration
5648 \begin_layout Standard
5649 You can edit your preferences so that your desired language environment
5650 is automatically configured when \SpecialChar LyX
5652 \begin_inset Flex MenuItem
5655 \begin_layout Plain Layout
5656 Edit\SpecialChar menuseparator
5665 \begin_layout Chapter
5666 Installing New Document Classes, Layouts, and Templates
5667 \begin_inset CommandInset label
5669 name "cha:Installing-New-Document"
5674 \begin_inset Argument 1
5677 \begin_layout Plain Layout
5678 Installing New Document Classes
5686 \begin_layout Standard
5687 In this chapter, we describe the procedures for creating and installing
5688 new \SpecialChar LyX
5689 layout and template files, as well as offer a refresher on correctly
5690 installing new \SpecialChar LaTeX
5695 \begin_layout Standard
5696 First, let us a say a few words about how one ought to think about the relation
5697 between \SpecialChar LyX
5698 and \SpecialChar LaTeX
5700 The thing to understand is that, in a certain sense, \SpecialChar LyX
5701 doesn't know anything
5702 about \SpecialChar LaTeX
5704 Indeed, from \SpecialChar LyX
5705 's point of view, \SpecialChar LaTeX
5706 is just one of several
5707 \begin_inset Quotes eld
5711 \begin_inset Quotes erd
5714 in which it is capable of producing output.
5715 Other such formats are DocBook, plaintext, and XHTML.
5717 is, of course, a particularly important format, but very little of the
5718 information \SpecialChar LyX
5719 has about \SpecialChar LaTeX
5720 is actually contained in the program itself.
5724 \begin_layout Plain Layout
5725 Some commands are sufficiently complex that they are
5726 \begin_inset Quotes eld
5730 \begin_inset Quotes erd
5733 into \SpecialChar LyX
5735 But the developers generally regard this as a Bad Thing.
5740 Rather, that information, even for the standard classes like
5741 \begin_inset Flex Code
5744 \begin_layout Plain Layout
5750 , is contained in `layout files'.
5751 Similarly, \SpecialChar LyX
5752 itself does not know much about DocBook or XHTML.
5753 What it knows is contained in layout files.
5756 \begin_layout Standard
5757 You can think of the layout file for a given document class as a translation
5758 manual between \SpecialChar LyX
5759 constructs—paragraphs with their corresponding styles,
5760 certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5763 Almost everything \SpecialChar LyX
5765 \begin_inset Flex Code
5768 \begin_layout Plain Layout
5774 , for example, is contained in the file
5775 \begin_inset Flex Code
5778 \begin_layout Plain Layout
5784 and in various other files it includes.
5785 For this reason, anyone intending to write layout files should plan to
5786 study the existing files.
5787 A good place to start is with
5788 \begin_inset Flex Code
5791 \begin_layout Plain Layout
5797 , which is included in
5798 \begin_inset Flex Code
5801 \begin_layout Plain Layout
5808 \begin_inset Flex Code
5811 \begin_layout Plain Layout
5817 , and many of the other layout files for document classes.
5818 This file is where sections and the like are defined:
5819 \begin_inset Flex Code
5822 \begin_layout Plain Layout
5828 tells \SpecialChar LyX
5829 how paragraphs that are marked with the Section, Subsection, etc,
5830 styles can be translated into corresponding \SpecialChar LaTeX
5831 , DocBook, and XHTML commands
5834 \begin_inset Flex Code
5837 \begin_layout Plain Layout
5843 file basically just includes several of these
5844 \begin_inset Flex Code
5847 \begin_layout Plain Layout
5856 \begin_layout Standard
5857 Defining the \SpecialChar LyX
5859 correspondence is not the only thing layout files do, though.
5860 Their other job is to define how the \SpecialChar LyX
5861 constructs themselves will appear
5863 The fact that layout files have these two jobs is often a source of confusion,
5864 because they are completely separate.
5865 Telling \SpecialChar LyX
5866 how to translate a certain paragraph style into \SpecialChar LaTeX
5869 how to display it; conversely, telling \SpecialChar LyX
5870 how to display a certain paragraph
5871 style does not tell \SpecialChar LyX
5872 how to translate it into \SpecialChar LaTeX
5873 (let alone tell \SpecialChar LaTeX
5876 So, in general, when you define a new \SpecialChar LyX
5877 construct, you must always do two
5878 quite separate things: (i)
5879 \begin_inset space ~
5882 tell \SpecialChar LyX
5883 how to translate it into \SpecialChar LaTeX
5885 \begin_inset space ~
5888 tell \SpecialChar LyX
5892 \begin_layout Standard
5893 Much the same is true, of course, as regards \SpecialChar LyX
5894 's other backend formats, though
5895 XHTML is in some ways different, because in that case \SpecialChar LyX
5900 able, to some extent, to use information about how it should display a
5901 paragraph on the screen to output information (in the form of CSS) about
5902 how the paragraph should be displayed in a browser.
5903 Even in this case, however, the distinction between what \SpecialChar LyX
5905 and how things are rendered externally remains in force, and the two can
5906 be controlled separately.
5908 \begin_inset CommandInset ref
5910 reference "sec:Tags-for-XHTML"
5917 \begin_layout Section
5918 Installing new \SpecialChar LaTeX
5922 \begin_layout Standard
5923 Some installations may not include a \SpecialChar LaTeX
5924 package or class file that you would
5925 like to use within \SpecialChar LyX
5927 For example, you might need Foil\SpecialChar TeX
5928 , a package for preparing slides for overhead
5930 Modern \SpecialChar LaTeX
5931 distributions like \SpecialChar TeX
5932 Live (2008 or newer) or MiK\SpecialChar TeX
5933 provide a user interface
5934 for installing such packages.
5935 For example, with MiK\SpecialChar TeX
5936 , you start the program
5937 \begin_inset Quotes eld
5941 \begin_inset space ~
5945 \begin_inset Quotes erd
5948 to get a list of available packages.
5949 To install one of them, right click on it or use the corresponding toolbar
5953 \begin_layout Standard
5954 If your \SpecialChar LaTeX
5955 distribution does not provide such a `package manager', or if the
5956 package is not available from your distribution, then follow these steps
5957 to install it manually:
5960 \begin_layout Enumerate
5961 Get the package from
5962 \begin_inset CommandInset href
5965 target "http://www.ctan.org/"
5972 \begin_layout Enumerate
5973 If the package contains a file with the ending
5974 \begin_inset Quotes eld
5978 \begin_inset Flex Code
5981 \begin_layout Plain Layout
5988 \begin_inset Quotes erd
5991 (is the case for Foil\SpecialChar TeX
5992 ) then open a console, change to the folder of this
5993 file and execute the command
5994 \begin_inset Flex Code
5997 \begin_layout Plain Layout
6004 You have now unpacked the package and have all files to install it.
6005 Most \SpecialChar LaTeX
6006 -packages are not packed and you can skip this step.
6009 \begin_layout Enumerate
6010 Now you need to decide if the package should be available for all users
6012 \begin_inset Separator parbreak
6019 \begin_layout Enumerate
6020 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6021 for all users on your system, then install it in your `local' \SpecialChar TeX
6023 install it in your own `user' \SpecialChar TeX
6025 Where these trees should be created, if they do not already exist, depends
6027 To find this out, look in the file
6028 \begin_inset Flex Code
6031 \begin_layout Plain Layout
6041 \begin_layout Plain Layout
6042 This is usually in the directory
6043 \begin_inset Flex Code
6046 \begin_layout Plain Layout
6052 , though you can execute the command
6053 \begin_inset Flex Code
6056 \begin_layout Plain Layout
6067 The location of the `local' \SpecialChar TeX
6068 tree is defined by the
6069 \begin_inset Flex Code
6072 \begin_layout Plain Layout
6078 variable; this is usually somewhere like
6079 \begin_inset Flex Code
6082 \begin_layout Plain Layout
6083 /usr/local/share/texmf
6089 The location of the `user' \SpecialChar TeX
6091 \begin_inset Flex Code
6094 \begin_layout Plain Layout
6101 \begin_inset Flex Code
6104 \begin_layout Plain Layout
6111 (If these variables are not predefined, you have to define them.) You'll
6112 probably need root permissions to create or modify the `local' tree, but
6113 not for your `user' tree.
6114 \begin_inset Newline newline
6117 In general, it is recommended to install in the user tree because your user
6118 will not be modified or even overwritten when you upgrade your system.
6119 It will typically also be backed up together with everything else when
6120 you backup your home directory (which, of course, you do on a regular basis).
6123 \begin_layout Enumerate
6124 On Windows, if you want the new package to be available for all users on
6125 your system, change to the folder where \SpecialChar LaTeX
6126 is installed and then change to
6128 \begin_inset Flex Code
6131 \begin_layout Plain Layout
6142 (For MiK\SpecialChar TeX
6143 , this would be by default the folder
6144 \begin_inset Flex Code
6147 \begin_layout Plain Layout
6165 \begin_layout Plain Layout
6166 Note that this will be the correct path only on English installations.
6167 On a German one, it would be
6168 \begin_inset Flex Code
6171 \begin_layout Plain Layout
6185 , and similarly for other languages.
6190 Create there a new folder
6191 \begin_inset Flex Code
6194 \begin_layout Plain Layout
6200 and copy all files of the package into it.
6202 \begin_inset Newline newline
6205 If the package should only available for you or you don't have admin permissions
6206 , do the same, but in the local \SpecialChar LaTeX
6209 \begin_inset space \thinspace{}
6212 g., for MiK\SpecialChar TeX
6214 \begin_inset space ~
6217 2.8 under Windows XP, this would be the folder:
6218 \begin_inset Newline newline
6224 \begin_inset Flex Code
6227 \begin_layout Plain Layout
6230 Documents and Settings
6242 \begin_inset Newline newline
6248 \begin_inset Phantom HPhantom
6251 \begin_layout Plain Layout
6262 \begin_inset Flex Code
6265 \begin_layout Plain Layout
6278 \begin_inset Newline newline
6281 On Vista, it would be:
6282 \begin_inset Newline newline
6286 \begin_inset Flex Code
6289 \begin_layout Plain Layout
6315 \begin_layout Enumerate
6316 Now one only need to tell \SpecialChar LaTeX
6317 that there are new files.
6318 This depends on the used \SpecialChar LaTeX
6320 \begin_inset Separator parbreak
6327 \begin_layout Enumerate
6328 For \SpecialChar TeX
6329 Live execute the command
6330 \begin_inset Flex Code
6333 \begin_layout Plain Layout
6340 If you installed the package for all users, then you will probably need
6341 to have root permissions for that.
6344 \begin_layout Enumerate
6345 For MiK\SpecialChar TeX
6346 , if you have installed the package for all users, start the program
6348 \begin_inset Quotes eld
6352 \begin_inset space ~
6356 \begin_inset Quotes erd
6359 and press the button marked
6360 \begin_inset Quotes eld
6364 \begin_inset Quotes erd
6368 Otherwise start the program
6369 \begin_inset Quotes eld
6373 \begin_inset Quotes erd
6380 \begin_layout Enumerate
6381 Finally, you need to tell \SpecialChar LyX
6382 that there are new packages available.
6383 So, in \SpecialChar LyX
6385 \begin_inset Flex MenuItem
6388 \begin_layout Plain Layout
6391 \SpecialChar menuseparator
6397 and then restart \SpecialChar LyX
6401 \begin_layout Standard
6402 Now the package is installed.
6403 In our example, the document class
6404 \begin_inset Flex Code
6407 \begin_layout Plain Layout
6409 \begin_inset space ~
6417 will now be available under
6418 \begin_inset Flex MenuItem
6421 \begin_layout Plain Layout
6422 Document\SpecialChar menuseparator
6423 Settings\SpecialChar menuseparator
6433 \begin_layout Standard
6434 If you would like to use a \SpecialChar LaTeX
6435 document class that is not even listed in the
6437 \begin_inset Flex MenuItem
6440 \begin_layout Plain Layout
6441 Document\SpecialChar menuseparator
6442 Settings\SpecialChar menuseparator
6448 , then you need to create a `layout' file for it.
6449 That is the topic of the next section.
6452 \begin_layout Section
6453 Types of layout files
6456 \begin_layout Standard
6457 This section describes the various sorts of \SpecialChar LyX
6458 files that contain layout informati
6460 These files describe various paragraph and character styles, determining
6461 how \SpecialChar LyX
6462 should display them and how they should be translated into \SpecialChar LaTeX
6464 XHTML, or whatever output format is being used.
6468 \begin_layout Standard
6469 We shall try to provide a thorough description of the process of writing
6471 However, there are so many different types of documents supported even
6472 by just \SpecialChar LaTeX
6473 that we can't hope to cover every different possibility or problem
6474 you might encounter.
6475 The \SpecialChar LyX
6476 users' list is frequented by people with lots of experience with layout
6477 design who are willing to share what they've learned, so please feel free
6478 to ask questions there.
6481 \begin_layout Standard
6482 As you prepare to write a new layout, it is extremely helpful to look at
6483 the layouts distributed with \SpecialChar LyX
6485 If you write a \SpecialChar LyX
6486 layout for a \SpecialChar LaTeX
6487 document class that might also be used by
6488 others, or write a module that might be useful to others, then you should
6489 consider posting your layout to the
6490 \begin_inset CommandInset href
6492 name "layout section on the LyX wiki"
6493 target "http://wiki.lyx.org/Layouts/Layouts"
6497 or even to the \SpecialChar LyX
6498 developers' list, so that it might be included in \SpecialChar LyX
6503 \begin_layout Plain Layout
6504 Note that \SpecialChar LyX
6505 is licensed under the General Public License, so any material
6506 that is contributed to \SpecialChar LyX
6507 must be similarly licensed.
6515 \begin_layout Subsection
6517 \begin_inset CommandInset label
6519 name "subsec:Layout-modules"
6526 \begin_layout Standard
6527 We have spoken to this point about `layout files'.
6528 But there are different sorts of files that contain layout information.
6529 Layout files, strictly so called, have the
6530 \begin_inset Flex Code
6533 \begin_layout Plain Layout
6539 extension and provide \SpecialChar LyX
6540 with information about document classes.
6541 Since \SpecialChar LyX
6542 1.6 layout information can also be contained in layout
6547 \begin_inset Flex Code
6550 \begin_layout Plain Layout
6557 Modules are to \SpecialChar LaTeX
6558 packages much as layouts are to \SpecialChar LaTeX
6559 classes, and some modules—such
6561 \begin_inset Flex Code
6564 \begin_layout Plain Layout
6570 module—specifically provide support for one package.
6571 In a sense, layout modules are similar to included
6575 \begin_layout Plain Layout
6576 These can have any extension, but by convention have the
6577 \begin_inset Flex Code
6580 \begin_layout Plain Layout
6592 \begin_inset Flex Code
6595 \begin_layout Plain Layout
6601 —in that modules are not specific to a given document class but may be used
6602 with many different classes.
6603 The difference is that using an included file with
6604 \begin_inset Flex Code
6607 \begin_layout Plain Layout
6613 requires editing that file.
6614 Modules, by contrast, are selected in the
6615 \begin_inset Flex MenuItem
6618 \begin_layout Plain Layout
6619 Document\SpecialChar menuseparator
6628 \begin_layout Standard
6629 Building modules is the easiest way to get started with layout editing,
6630 since it can be as simple as adding a single new paragraph style or flex
6632 But modules may, in principle, contain anything a layout file can contain.
6635 \begin_layout Standard
6636 After creating a new module and copying it to the
6637 \begin_inset Flex Code
6640 \begin_layout Plain Layout
6646 folder, you will need to reconfigure and then restart \SpecialChar LyX
6649 However, changes you make to the module will be seen immediately, if you
6651 \begin_inset Flex MenuItem
6654 \begin_layout Plain Layout
6655 Document\SpecialChar menuseparator
6661 , highlight something, and then hit
6662 \begin_inset Quotes eld
6666 \begin_inset Quotes erd
6672 It is strongly recommended that you save your work before doing this
6677 it is strongly recommended that you not attempt to edit modules while simultaneo
6678 usly working on actual documents
6681 Though of course the developers strive to keep \SpecialChar LyX
6682 stable in such situations,
6683 syntax errors and the like in your module file could cause strange behavior.
6686 \begin_layout Subsubsection
6690 \begin_layout Standard
6691 Modules are to \SpecialChar LyX
6692 as packages are to \SpecialChar LaTeX
6694 Sometimes, however, you find yourself wanting a specific inset or character
6695 style just for one document and writing a module that will also be available
6696 to other documents makes little sense.
6697 What you need is \SpecialChar LyX
6699 \begin_inset Quotes eld
6703 \begin_inset Quotes erd
6709 \begin_layout Standard
6710 You will find it under
6712 Document\SpecialChar menuseparator
6713 Settings\SpecialChar menuseparator
6717 The large text box allows you to enter anything that you might enter in
6718 a layout file or module.
6719 You can think of a document's local layout, in fact, as a module that belongs
6721 So, in particular, you must enter a
6722 \begin_inset Flex Code
6725 \begin_layout Plain Layout
6732 Any format is acceptable, but one would normally use the format current
6734 (In \SpecialChar LyX
6735 2.1, the current layout format is 48.) You should be aware that local
6736 layout is not supported by versions of \SpecialChar LyX
6737 prior to 1.6, so you should not
6738 use it if you want to be able to export your document to \SpecialChar LyX
6740 (without, that is, losing the local layout information).
6741 If you wish to be able to export to 1.6—local layout is supported in 1.6,
6742 though there is no UI for it—then you should use format 11 and, of course,
6743 use only layout constructs that were available in \SpecialChar LyX
6747 \begin_layout Standard
6748 When you have entered something in the
6749 \begin_inset Flex Code
6752 \begin_layout Plain Layout
6758 pane, \SpecialChar LyX
6760 \begin_inset Quotes eld
6764 \begin_inset Quotes erd
6767 button at the bottom.
6768 Clicking this button will cause \SpecialChar LyX
6769 to determine whether what you have entered
6770 is valid layout information for the chosen format.
6772 will report the result but, unfortunately, will not tell you what errors
6773 there might have been.
6774 These will be written to the terminal, however, if \SpecialChar LyX
6775 is started from a terminal.
6776 You will not be permitted to save your local layout until you have entered
6780 \begin_layout Standard
6781 The warnings at the end of the previous section apply here, too.
6782 Do not play with local layout while you are actually working, especially
6783 if you have not saved your document.
6784 That said, using local layout with a test document can be a very convenient
6785 way to try out layout ideas, or even to start developing a module.
6788 \begin_layout Subsection
6790 \begin_inset Flex MenuItem
6793 \begin_layout Plain Layout
6802 \begin_layout Standard
6803 There are two situations you are likely to encounter when wanting to support
6804 a new \SpecialChar LaTeX
6805 document class, involving style (
6806 \begin_inset Flex Code
6809 \begin_layout Plain Layout
6815 ) files and \SpecialChar LaTeX2e
6817 \begin_inset Flex Code
6820 \begin_layout Plain Layout
6827 Supporting a style file is usually fairly easy.
6828 Supporting a new class file is a bit harder.
6829 We'll discuss the former in this section and the latter in the next.
6830 Similar remarks apply, of course, if you want to support a new DocBook
6834 \begin_layout Standard
6835 The easier case is the one in which your new document class is provided
6836 as a style file that is to be used in conjunction with an already supported
6838 For the sake of the example, we'll assume that the style file is called
6840 \begin_inset Flex MenuItem
6843 \begin_layout Plain Layout
6849 and that it is meant to be used with
6850 \begin_inset Flex MenuItem
6853 \begin_layout Plain Layout
6859 , which is a standard class.
6863 \begin_layout Standard
6864 Start by copying the existing class's layout file into your local directory:
6868 \begin_layout Plain Layout
6869 Of course, which directory is your local directory will vary by platform,
6870 and \SpecialChar LyX
6871 allows you to specify your local directory on startup, too, using
6873 \begin_inset Flex Code
6876 \begin_layout Plain Layout
6890 \begin_layout LyX-Code
6891 cp report.layout ~/.lyx/layouts/myclass.layout
6894 \begin_layout Standard
6896 \begin_inset Flex Code
6899 \begin_layout Plain Layout
6905 and change the line:
6908 \begin_layout LyX-Code
6911 Declare\SpecialChar LaTeX
6915 \begin_layout Standard
6919 \begin_layout LyX-Code
6922 Declare\SpecialChar LaTeX
6923 Class[report, myclass.sty]{report (myclass)}
6926 \begin_layout Standard
6930 \begin_layout LyX-Code
6932 \begin_inset Newline newline
6938 \begin_inset Newline newline
6944 \begin_layout Standard
6945 near the top of the file.
6948 \begin_layout Standard
6949 Start \SpecialChar LyX
6951 \begin_inset Flex MenuItem
6954 \begin_layout Plain Layout
6955 Tools\SpecialChar menuseparator
6962 Then restart \SpecialChar LyX
6963 and try creating a new document.
6965 \begin_inset Flex MenuItem
6968 \begin_layout Plain Layout
6974 " as a document class option in the
6975 \begin_inset Flex MenuItem
6978 \begin_layout Plain Layout
6979 Document\SpecialChar menuseparator
6986 It is likely that some of the sectioning commands and such in your new
6987 class will work differently from how they worked in the base class—
6988 \begin_inset Flex Code
6991 \begin_layout Plain Layout
6997 in this example—so you can fiddle around with the settings for the different
6998 sections if you wish.
6999 The layout information for sections is contained in
7000 \begin_inset Flex Code
7003 \begin_layout Plain Layout
7009 , but you do not need to copy and change this file.
7010 Instead, you can simply add your changes to your layout file, after the
7012 \begin_inset Flex Code
7015 \begin_layout Plain Layout
7021 , which itself includes
7022 \begin_inset Flex Code
7025 \begin_layout Plain Layout
7032 For example, you might add these lines:
7035 \begin_layout LyX-Code
7039 \begin_layout LyX-Code
7043 \begin_layout LyX-Code
7047 \begin_layout LyX-Code
7051 \begin_layout LyX-Code
7055 \begin_layout Standard
7056 to change the font for chapter headings to sans-serif.
7057 This will override (or, in this case, add to) the existing declaration
7058 for the Chapter style.
7062 \begin_layout Standard
7063 Your new package may also provide commands or environments not present in
7065 In this case, you will want to add these to the layout file.
7067 \begin_inset CommandInset ref
7069 reference "sec:TextClass"
7073 for information on how to do so.
7076 \begin_layout Standard
7078 \begin_inset Flex MenuItem
7081 \begin_layout Plain Layout
7087 can be used with several different document classes, and even if it cannot,
7088 you might find it easiest just to write a module that you can load with
7090 The simplest possible such module would be:
7093 \begin_layout LyX-Code
7096 DeclareLyXModule{My Package}
7099 \begin_layout LyX-Code
7103 \begin_layout LyX-Code
7104 #Support for mypkg.sty.
7107 \begin_layout LyX-Code
7109 \begin_inset Newline newline
7115 \begin_layout LyX-Code
7117 \begin_inset Newline newline
7123 \begin_layout LyX-Code
7125 \begin_inset Newline newline
7131 \begin_inset Newline newline
7137 \begin_layout Standard
7138 A more complex module might modify the behavior of some existing constructs
7139 or define some new ones.
7141 \begin_inset CommandInset ref
7143 reference "sec:TextClass"
7150 \begin_layout Subsection
7152 \begin_inset Flex MenuItem
7155 \begin_layout Plain Layout
7164 \begin_layout Standard
7165 There are two possibilities here.
7166 One is that the class file is itself based upon an existing document class.
7167 For example, many thesis classes are based upon
7168 \begin_inset Flex MenuItem
7171 \begin_layout Plain Layout
7178 To see whether yours is, look for a line like
7181 \begin_layout LyX-Code
7187 \begin_layout Standard
7189 If so, then you may proceed largely as in the previous section, though
7191 \begin_inset Flex Code
7194 \begin_layout Plain Layout
7195 Declare\SpecialChar LaTeX
7201 line will be different.
7202 If your new class is
7203 \begin_inset Flex Code
7206 \begin_layout Plain Layout
7212 and it is based upon
7213 \begin_inset Flex Code
7216 \begin_layout Plain Layout
7222 , then the line should read:
7226 \begin_layout Plain Layout
7227 And it will be easiest if you save the file to
7228 \begin_inset Flex Code
7231 \begin_layout Plain Layout
7238 assumes that the document class has the same name as the layout file.
7247 \begin_layout LyX-Code
7250 Declare\SpecialChar LaTeX
7251 Class[thesis,book]{thesis}
7254 \begin_layout Standard
7255 If, on the other hand, the new class is not based upon an existing class,
7256 you will probably have to
7257 \begin_inset Quotes eld
7261 \begin_inset Quotes erd
7265 We strongly suggest copying an existing layout file which uses a similar
7267 class and then modifying it, if you can do so.
7268 At least use an existing file as a starting point so you can find out what
7269 items you need to worry about.
7270 Again, the specifics are covered below.
7273 \begin_layout Subsection
7275 \begin_inset CommandInset label
7277 name "subsec:Creating-Templates"
7284 \begin_layout Standard
7285 Once you have written a layout file for a new document class, you might
7286 want to consider writing a
7291 A template acts as a kind of tutorial for your layout, showing how it might
7292 be used, though containing dummy content.
7293 You can of course look at the various templates included with \SpecialChar LyX
7297 \begin_layout Standard
7298 Templates are created just like usual documents: using \SpecialChar LyX
7300 The only difference is that usual documents contain all possible settings,
7301 including the font scheme and the paper size.
7302 Usually a user doesn't want a template to overwrite his preferred settings
7303 for such parameters.
7304 For that reason, the designer of a template should remove the corresponding
7306 \begin_inset Flex Code
7309 \begin_layout Plain Layout
7318 \begin_inset Flex Code
7321 \begin_layout Plain Layout
7329 from the template \SpecialChar LyX
7331 This can be done with any simple text-editor, for example
7332 \begin_inset Flex Code
7335 \begin_layout Plain Layout
7342 \begin_inset Flex Code
7345 \begin_layout Plain Layout
7354 \begin_layout Standard
7355 Put the edited template files you create in
7356 \begin_inset Flex Code
7359 \begin_layout Plain Layout
7365 , copy the ones you use from the global template directory in
7366 \begin_inset Flex Code
7369 \begin_layout Plain Layout
7375 to the same place, and redefine the template path in the
7376 \begin_inset Flex MenuItem
7379 \begin_layout Plain Layout
7380 Tools\SpecialChar menuseparator
7381 Preferences\SpecialChar menuseparator
7390 \begin_layout Standard
7391 Note, by the way, that there is a template which has a particular meaning:
7393 \begin_inset Flex Code
7396 \begin_layout Plain Layout
7403 This template is loaded every time you create a new document with
7404 \begin_inset Flex MenuItem
7407 \begin_layout Plain Layout
7408 File\SpecialChar menuseparator
7414 in order to provide useful defaults.
7415 To create this template from inside \SpecialChar LyX
7416 , all you have to do is to open a document
7417 with the correct settings, and use the
7418 \begin_inset Flex MenuItem
7421 \begin_layout Plain Layout
7422 Save as Document Defaults
7430 \begin_layout Subsection
7431 Upgrading old layout files
7434 \begin_layout Standard
7435 The format of layout files changes with each \SpecialChar LyX
7436 release, so old layout files
7437 need to be converted to the new format.
7439 reads a layout file in an older format, it automatically calls the
7441 \begin_inset Flex Code
7444 \begin_layout Plain Layout
7450 to convert it to a temporary file in current format.
7451 The original file is left untouched.
7452 If you use the layout file often, then, you may want to convert it permanently,
7453 so that \SpecialChar LyX
7454 does not have to do so itself every time.
7455 To do this, you can call the converter manually:
7458 \begin_layout Enumerate
7460 \begin_inset Flex Code
7463 \begin_layout Plain Layout
7470 \begin_inset Flex Code
7473 \begin_layout Plain Layout
7482 \begin_layout Enumerate
7484 \begin_inset Newline newline
7488 \begin_inset Flex Code
7491 \begin_layout Plain Layout
7492 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7498 \begin_inset Newline newline
7502 \begin_inset Flex Code
7505 \begin_layout Plain Layout
7511 is the name of your \SpecialChar LyX
7515 \begin_layout Standard
7516 Note that manual conversion does not affect included files, so these will
7517 have to be converted separately.
7520 \begin_layout Section
7521 \begin_inset CommandInset label
7523 name "sec:TextClass"
7527 The layout file format
7530 \begin_layout Standard
7531 The following sections describe how layout files are structured and written.
7532 Our advice is to go slowly, save and test often.
7533 It is really not that hard, except that the multitude of options can become
7534 overwhelming, especially if you try to check out too many at once.
7535 It becomes easier if you use existing layouts of \SpecialChar LyX
7536 as examples/reference
7537 or if you modify an existing layout to your needs.
7540 \begin_layout Standard
7541 Note that all the tags used in layout files are case-insensitive.
7543 \begin_inset Flex Code
7546 \begin_layout Plain Layout
7553 \begin_inset Flex Code
7556 \begin_layout Plain Layout
7563 \begin_inset Flex Code
7566 \begin_layout Plain Layout
7572 are really the same tag.
7573 The possible arguments are printed in brackets after the tag's name.
7574 The default argument is typeset
7575 \begin_inset Flex Code
7578 \begin_layout Plain Layout
7587 If the argument has a data type like
7588 \begin_inset Quotes eld
7592 \begin_inset Quotes erd
7596 \begin_inset Quotes eld
7600 \begin_inset Quotes erd
7603 , the default is shown like this:
7604 \begin_inset Flex Code
7607 \begin_layout Plain Layout
7618 \begin_layout Subsection
7619 The document class declaration and classification
7622 \begin_layout Standard
7623 Lines in a layout file which begin with
7624 \begin_inset Flex Code
7627 \begin_layout Plain Layout
7634 There is one exception to this rule.
7636 \begin_inset Flex Code
7639 \begin_layout Plain Layout
7645 files should begin with lines like:
7648 \begin_layout LyX-Code
7651 #% Do not delete the line below; configure depends on this
7654 \begin_layout LyX-Code
7659 DeclareLaTeXClass{Article (Standard Class)}
7662 \begin_layout LyX-Code
7667 DeclareCategory{Articles}
7670 \begin_layout Standard
7671 The second and third lines are used when you (re)configure \SpecialChar LyX
7673 The layout file is read by the \SpecialChar LaTeX
7675 \begin_inset Flex Code
7678 \begin_layout Plain Layout
7684 , in a special mode where
7685 \begin_inset Flex Code
7688 \begin_layout Plain Layout
7695 The first line is just a \SpecialChar LaTeX
7696 comment, the second one contains the mandatory
7697 declaration of the text class and the third line contains the optional
7698 classification of the class.
7699 If these lines appear in a file named
7700 \begin_inset Flex Code
7703 \begin_layout Plain Layout
7709 , then they define a text class of name
7710 \begin_inset Flex Code
7713 \begin_layout Plain Layout
7719 (the name of the layout file) which uses the \SpecialChar LaTeX
7721 \begin_inset Flex Code
7724 \begin_layout Plain Layout
7730 (the default is to use the same name as the layout).
7732 \begin_inset Quotes eld
7735 Article (Standard Class)
7736 \begin_inset Quotes erd
7739 that appears above is used as a description of the text class in the
7740 \begin_inset Flex MenuItem
7743 \begin_layout Plain Layout
7744 Document\SpecialChar menuseparator
7752 \begin_inset Quotes eld
7756 \begin_inset Quotes erd
7759 in the example) is also used in the
7760 \begin_inset Flex MenuItem
7763 \begin_layout Plain Layout
7764 Document\SpecialChar menuseparator
7770 dialog: the text classes are grouped by these categories (which are usually
7771 genres, so typical categories are
7772 \begin_inset Quotes eld
7776 \begin_inset Quotes erd
7780 \begin_inset Quotes eld
7784 \begin_inset Quotes erd
7788 \begin_inset Quotes eld
7792 \begin_inset Quotes erd
7796 \begin_inset Quotes eld
7800 \begin_inset Quotes erd
7804 \begin_inset Quotes eld
7808 \begin_inset Quotes erd
7812 \begin_inset Quotes eld
7816 \begin_inset Quotes erd
7820 If no category has been declared, the class will be put in the
7821 \begin_inset Quotes eld
7825 \begin_inset Quotes erd
7831 \begin_layout Standard
7832 Let's assume that you wrote your own text class that uses the
7833 \begin_inset Flex Code
7836 \begin_layout Plain Layout
7842 document class, but where you changed the appearance of the section headings.
7843 If you put it in a file
7844 \begin_inset Flex Code
7847 \begin_layout Plain Layout
7853 , the header of this file should be:
7856 \begin_layout LyX-Code
7859 #% Do not delete the line below; configure depends on this
7862 \begin_layout LyX-Code
7867 DeclareLaTeXClass[article]{Article (with My Own Headings)}
7870 \begin_layout LyX-Code
7875 DeclareCategory{Articles}
7878 \begin_layout Standard
7879 This declares a text class
7880 \begin_inset Flex Code
7883 \begin_layout Plain Layout
7889 , associated with the \SpecialChar LaTeX
7891 \begin_inset Flex Code
7894 \begin_layout Plain Layout
7901 \begin_inset Quotes eld
7904 Article (with My Own Headings)
7905 \begin_inset Quotes erd
7909 If your text class depends on several packages, you can declare it as:
7912 \begin_layout LyX-Code
7915 #% Do not delete the line below; configure depends on this
7918 \begin_layout LyX-Code
7923 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
7926 \begin_layout LyX-Code
7931 DeclareCategory{Articles}
7934 \begin_layout Standard
7935 This indicates that your text class uses the
7936 \begin_inset Flex Code
7939 \begin_layout Plain Layout
7946 Finally, it is also possible to declare classes for DocBook code.
7947 Typical declarations will look like:
7950 \begin_layout LyX-Code
7953 #% Do not delete the line below; configure depends on this
7956 \begin_layout LyX-Code
7961 DeclareDocBookClass[article]{SGML (DocBook Article)}
7964 \begin_layout LyX-Code
7969 DeclareCategory{Articles (DocBook)}
7972 \begin_layout Standard
7973 Note that these declarations can also be given an optional parameter declaring
7974 the name of the document class (but not a list).
7977 \begin_layout Standard
7978 So, to be as explicit as possible, the form of the layout declaration is:
7981 \begin_layout LyX-Code
7986 DeclareLaTeXClass[class,package.sty]{layout description}
7989 \begin_layout LyX-Code
7994 DeclareCategory{category}
7997 \begin_layout Standard
7998 The class need only be specified if the name of the \SpecialChar LaTeX
8000 name of the layout file are different or if there are packages to load.
8001 If the name of the class file is not specified, then \SpecialChar LyX
8003 that it is the same as the name of the layout file.
8006 \begin_layout Standard
8007 When the text class has been modified to your taste, all you have to do
8008 is to copy it either to
8009 \begin_inset Flex Code
8012 \begin_layout Plain Layout
8019 \begin_inset Flex Code
8022 \begin_layout Plain Layout
8029 \begin_inset Flex MenuItem
8032 \begin_layout Plain Layout
8033 Tools\SpecialChar menuseparator
8039 , exit \SpecialChar LyX
8041 Then your new text class should be available along with the others.
8044 \begin_layout Standard
8045 Once the layout file is installed, you can edit it and see your changes
8046 without having to reconfigure or to restart \SpecialChar LyX
8052 \begin_layout Plain Layout
8053 In versions of \SpecialChar LyX
8054 prior to 1.6, this was not true.
8055 As a result, editing layout files was very time consuming, since you had
8056 constantly to restart \SpecialChar LyX
8062 You can force a reload of the current layout by using the \SpecialChar LyX
8064 \begin_inset Flex MenuItem
8067 \begin_layout Plain Layout
8074 There is no default binding for this function—though, of course, you can
8075 bind it to a key yourself.
8076 But you will normally use this function simply by entering it in the mini-buffe
8081 \begin_layout Standard
8087 \begin_inset Flex MenuItem
8090 \begin_layout Plain Layout
8096 is very much an `advanced feature'.
8101 recommended that you save your work before using this function.
8106 recommended that you not attempt to edit layout information while simultaneousl
8107 y working on a document that you care about.
8108 Use a test document.
8109 Syntax errors and the like in your layout file could cause peculiar behavior.
8110 In particular, such errors could cause \SpecialChar LyX
8111 to regard the current layout as
8112 invalid and to attempt to switch to some other layout.
8116 \begin_layout Plain Layout
8117 Really bad syntax errors may even caused \SpecialChar LyX
8119 This is because certain sorts of errors may make \SpecialChar LyX
8130 The \SpecialChar LyX
8131 team strives to keep \SpecialChar LyX
8132 stable in such situations, but safe is better
8137 \begin_layout Plain Layout
8138 While we're giving advice: make regular backups.
8139 And be nice to your mother.
8147 \begin_layout Subsection
8148 The Module declaration
8151 \begin_layout Standard
8152 A module must begin with a line like the following:
8155 \begin_layout LyX-Code
8158 DeclareLyXModule[endnotes.sty]{Endnotes}
8161 \begin_layout Standard
8162 The mandatory argument, in curly brackets, is the name of the module, as
8164 \begin_inset Flex MenuItem
8167 \begin_layout Plain Layout
8168 Document\SpecialChar menuseparator
8169 Settings\SpecialChar menuseparator
8176 The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8178 on which the module depends.
8179 It is also possible to use the form
8180 \begin_inset Flex MenuItem
8183 \begin_layout Plain Layout
8189 as an optional argument, which declares that the module can only be used
8190 when there exists a conversion chain between the formats `
8191 \begin_inset Flex Code
8194 \begin_layout Plain Layout
8201 \begin_inset Flex Code
8204 \begin_layout Plain Layout
8213 \begin_layout Standard
8214 The module declaration should then be followed by lines like the following
8218 \begin_layout Plain Layout
8219 Preferably in English if the module should be published with \SpecialChar LyX
8221 This description will appear in the list of messages to be translated and
8222 will be thus translated with the next interface update.
8230 \begin_layout LyX-Code
8234 \begin_layout LyX-Code
8235 #Adds an endnote command, in addition to footnotes.
8239 \begin_layout LyX-Code
8240 #You will need to add
8242 theendnotes in TeX code where you
8245 \begin_layout LyX-Code
8246 #want the endnotes to appear.
8250 \begin_layout LyX-Code
8254 \begin_layout LyX-Code
8255 #Requires: somemodule | othermodule
8258 \begin_layout LyX-Code
8259 #Excludes: badmodule
8262 \begin_layout Standard
8263 The description is used in
8264 \begin_inset Flex MenuItem
8267 \begin_layout Plain Layout
8268 Document\SpecialChar menuseparator
8269 Settings\SpecialChar menuseparator
8275 to provide the user with information about what the module does.
8277 \begin_inset Flex Code
8280 \begin_layout Plain Layout
8286 line is used to identify other modules with which this one must be used;
8288 \begin_inset Flex Code
8291 \begin_layout Plain Layout
8297 line is used to identify modules with which this one may not be used.
8298 Both are optional, and, as shown, multiple modules should be separated
8299 with the pipe symbol: |.
8300 Note that the required modules are treated disjunctively:
8304 of the required modules must be used.
8309 excluded module may be used.
8310 Note that modules are identified here by their filenames without the
8311 \begin_inset Flex Code
8314 \begin_layout Plain Layout
8322 \begin_inset Flex Code
8325 \begin_layout Plain Layout
8332 \begin_inset Flex Code
8335 \begin_layout Plain Layout
8344 \begin_layout Subsection
8348 \begin_layout Standard
8349 The first non-comment line of any layout file, included file, or module
8354 contain the file format number:
8357 \begin_layout Description
8358 \begin_inset Flex Code
8361 \begin_layout Plain Layout
8368 \begin_inset Flex Code
8371 \begin_layout Plain Layout
8377 ] The format number of the layout file.
8380 \begin_layout Standard
8381 This tag was introduced with \SpecialChar LyX
8383 \begin_inset space ~
8387 Layout files from older \SpecialChar LyX
8388 versions do not have an explicit file format and
8389 are considered to have
8390 \begin_inset Flex Code
8393 \begin_layout Plain Layout
8395 \begin_inset space ~
8404 The format for the present version of \SpecialChar LyX
8406 But each version of \SpecialChar LyX
8407 is capable of reading earlier versions' layout files,
8408 just as they are capable of reading files produced by earlier versions
8411 There is, however, no provision for converting to earlier formats.
8414 \begin_layout Subsection
8415 \begin_inset CommandInset label
8417 name "subsec:General-text-class"
8421 General text class parameters
8424 \begin_layout Standard
8425 These are general parameters that govern the behavior of an entire document
8431 mean that they must appear in
8432 \begin_inset Flex Code
8435 \begin_layout Plain Layout
8441 files rather than in modules.
8442 A module can contain any layout tag.)
8445 \begin_layout Description
8446 \begin_inset Flex Code
8449 \begin_layout Plain Layout
8455 Adds information that will be output in the
8456 \begin_inset Flex Code
8459 \begin_layout Plain Layout
8465 block when the document is output to XHTML.
8466 Typically, this would be used to output CSS style information, but it can
8467 be used for anything that can appear in
8468 \begin_inset Flex Code
8471 \begin_layout Plain Layout
8479 \begin_inset Quotes eld
8483 \begin_inset Flex Code
8486 \begin_layout Plain Layout
8493 \begin_inset Quotes erd
8499 \begin_layout Description
8500 \begin_inset Flex Code
8503 \begin_layout Plain Layout
8509 Adds information to the document preamble.
8511 \begin_inset Newline newline
8515 \begin_inset Quotes eld
8519 \begin_inset Flex Code
8522 \begin_layout Plain Layout
8529 \begin_inset Quotes erd
8535 \begin_layout Description
8536 \begin_inset Flex Code
8539 \begin_layout Plain Layout
8545 Defines formats for use in the display of bibliographic information.
8547 \begin_inset CommandInset ref
8549 reference "subsec:Citation-format-description"
8555 \begin_inset Quotes eld
8559 \begin_inset Flex Code
8562 \begin_layout Plain Layout
8569 \begin_inset Quotes erd
8575 \begin_layout Description
8576 \begin_inset Flex Code
8579 \begin_layout Plain Layout
8585 Describes various global options supported by the document class.
8587 \begin_inset CommandInset ref
8589 reference "subsec:ClassOptions"
8595 \begin_inset Quotes eld
8599 \begin_inset Flex Code
8602 \begin_layout Plain Layout
8609 \begin_inset Quotes erd
8615 \begin_layout Description
8616 \begin_inset Flex Code
8619 \begin_layout Plain Layout
8626 \begin_inset Flex Code
8629 \begin_layout Plain Layout
8638 \begin_inset space \thinspace{}
8642 \begin_inset Flex Code
8645 \begin_layout Plain Layout
8651 ] Whether the class should
8655 to having one or two columns.
8656 Can be changed in the
8657 \begin_inset Flex MenuItem
8660 \begin_layout Plain Layout
8661 Document\SpecialChar menuseparator
8670 \begin_layout Description
8671 \begin_inset Flex Code
8674 \begin_layout Plain Layout
8681 \begin_inset Flex Code
8684 \begin_layout Plain Layout
8690 ] This sequence defines the properties for a counter.
8691 If the counter does not yet exist, it is created; if it does exist, it
8694 \begin_inset Quotes eld
8698 \begin_inset Flex Code
8701 \begin_layout Plain Layout
8708 \begin_inset Quotes erd
8712 \begin_inset Newline newline
8716 \begin_inset CommandInset ref
8718 reference "subsec:Counters"
8722 for details on counters.
8725 \begin_layout Description
8726 \begin_inset Flex Code
8729 \begin_layout Plain Layout
8735 Sets the default font used to display the document.
8737 \begin_inset CommandInset ref
8739 reference "subsec:Font-description"
8743 for how to declare fonts.
8745 \begin_inset Quotes eld
8749 \begin_inset Flex Code
8752 \begin_layout Plain Layout
8759 \begin_inset Quotes erd
8765 \begin_layout Description
8766 \begin_inset Flex Code
8769 \begin_layout Plain Layout
8776 \begin_inset Flex Code
8779 \begin_layout Plain Layout
8785 ] Specifies a module to be included by default with this document class.
8786 The module is specified as filename without the
8787 \begin_inset Flex Code
8790 \begin_layout Plain Layout
8797 The user can still remove the module, but it will be active at the outset.
8798 (This applies only when new files are created, or when this class is chosen
8799 for an existing document.)
8802 \begin_layout Description
8803 \begin_inset Flex Code
8806 \begin_layout Plain Layout
8813 \begin_inset Flex Code
8816 \begin_layout Plain Layout
8822 ] This is the style that will be assigned to new paragraphs, usually
8823 \begin_inset Flex MenuItem
8826 \begin_layout Plain Layout
8833 This will default to the first defined style if not given, but you are
8834 encouraged to use this directive.
8837 \begin_layout Description
8838 \begin_inset Flex Code
8841 \begin_layout Plain Layout
8848 \begin_inset Flex Code
8851 \begin_layout Plain Layout
8857 ] This tag indicates that the module (which is specified by filename without
8859 \begin_inset Flex Code
8862 \begin_layout Plain Layout
8868 extension) cannot be used with this document class.
8869 This might be used in a journal-specific layout file to prevent, say, the
8871 \begin_inset Flex Code
8874 \begin_layout Plain Layout
8880 module that numbers theorems by section.
8885 be used in a module.
8886 Modules have their own way of excluding other modules (see
8887 \begin_inset CommandInset ref
8889 reference "subsec:Layout-modules"
8896 \begin_layout Description
8897 \begin_inset Flex Code
8900 \begin_layout Plain Layout
8906 Defines a new float.
8908 \begin_inset CommandInset ref
8910 reference "subsec:Floats"
8916 \begin_inset Quotes eld
8920 \begin_inset Flex Code
8923 \begin_layout Plain Layout
8930 \begin_inset Quotes erd
8936 \begin_layout Description
8937 \begin_inset Flex Code
8940 \begin_layout Plain Layout
8946 Sets the information that will be output in the
8947 \begin_inset Flex Code
8950 \begin_layout Plain Layout
8956 block when this document class is output to XHTML.
8957 Note that this will completely override any prior
8958 \begin_inset Flex Code
8961 \begin_layout Plain Layout
8968 \begin_inset Flex Code
8971 \begin_layout Plain Layout
8979 \begin_inset Newline newline
8983 \begin_inset Flex Code
8986 \begin_layout Plain Layout
8992 if you just want to add material to the preamble.) Must end with
8993 \begin_inset Quotes eld
8997 \begin_inset Flex Code
9000 \begin_layout Plain Layout
9007 \begin_inset Quotes erd
9013 \begin_layout Description
9014 \begin_inset Flex Code
9017 \begin_layout Plain Layout
9024 \begin_inset Flex Code
9027 \begin_layout Plain Layout
9033 ] The style to use for the table of contents, bibliography, and so forth,
9034 when the document is output to HTML.
9035 For articles, this should normally be
9036 \begin_inset Flex Code
9039 \begin_layout Plain Layout
9046 \begin_inset Flex Code
9049 \begin_layout Plain Layout
9056 If it is not given, then \SpecialChar LyX
9057 will attempt to figure out which layout to use.
9060 \begin_layout Description
9061 \begin_inset Flex Code
9064 \begin_layout Plain Layout
9071 \begin_inset Flex Code
9074 \begin_layout Plain Layout
9080 ] Modifies the properties of the given counter.
9081 If the counter does not exist, the statement is ignored.
9083 \begin_inset Quotes eld
9087 \begin_inset Flex Code
9090 \begin_layout Plain Layout
9097 \begin_inset Quotes erd
9101 \begin_inset Newline newline
9105 \begin_inset CommandInset ref
9107 reference "subsec:Counters"
9111 for details on counters.
9114 \begin_layout Description
9115 \begin_inset Flex Code
9118 \begin_layout Plain Layout
9125 \begin_inset Flex Code
9128 \begin_layout Plain Layout
9134 ] Modifies the properties of the given paragraph style.
9135 If the style does not exist, the statement is ignored.
9137 \begin_inset Quotes eld
9141 \begin_inset Flex Code
9144 \begin_layout Plain Layout
9151 \begin_inset Quotes erd
9157 \begin_layout Description
9158 \begin_inset Flex Code
9161 \begin_layout Plain Layout
9168 \begin_inset Flex Code
9171 \begin_layout Plain Layout
9177 ] This allows you to include another layout definition file within yours
9178 to avoid duplicating commands.
9179 Common examples are the standard layout files, for example,
9180 \begin_inset Flex Code
9183 \begin_layout Plain Layout
9189 , which contains most of the basic layouts.
9192 \begin_layout Description
9193 \begin_inset Flex Code
9196 \begin_layout Plain Layout
9203 \begin_inset Flex Code
9206 \begin_layout Plain Layout
9212 ] This section (re-)defines the layout of an inset.
9213 It can be applied to an existing inset or to a new, user-defined inset,
9214 e.g., a new character style.
9216 \begin_inset Quotes eld
9220 \begin_inset Flex Code
9223 \begin_layout Plain Layout
9230 \begin_inset Quotes erd
9234 \begin_inset Newline newline
9238 \begin_inset CommandInset ref
9240 reference "subsec:Flex-insets-and"
9244 for more information.
9248 \begin_layout Description
9249 \begin_inset Flex Code
9252 \begin_layout Plain Layout
9259 \begin_inset Flex Code
9262 \begin_layout Plain Layout
9268 ] A string that indicates the width of the left margin on the screen, for
9270 \begin_inset Quotes eld
9274 \begin_inset Flex Code
9277 \begin_layout Plain Layout
9284 \begin_inset Quotes erd
9288 (Note that this is not a `length', like
9289 \begin_inset Quotes eld
9293 \begin_inset Quotes erd
9299 \begin_layout Description
9300 \begin_inset Flex Code
9303 \begin_layout Plain Layout
9310 \begin_inset Flex Code
9313 \begin_layout Plain Layout
9319 ] Deletes an existing counter, usually one defined in an included file.
9322 \begin_layout Description
9323 \begin_inset Flex Code
9326 \begin_layout Plain Layout
9333 \begin_inset Flex Code
9336 \begin_layout Plain Layout
9342 ] Deletes an existing float.
9343 This is particularly useful when you want to suppress a float that has
9344 been defined in an input file.
9347 \begin_layout Description
9348 \begin_inset Flex Code
9351 \begin_layout Plain Layout
9358 \begin_inset Flex Code
9361 \begin_layout Plain Layout
9367 ] Deletes an existing style.
9370 \begin_layout Description
9371 \begin_inset Flex Code
9374 \begin_layout Plain Layout
9381 \begin_inset Flex Code
9384 \begin_layout Plain Layout
9390 ] The file format (as defined in the \SpecialChar LyX
9391 preferences) produced by this document
9393 It is mainly useful when
9394 \begin_inset Flex Code
9397 \begin_layout Plain Layout
9404 \begin_inset Flex Code
9407 \begin_layout Plain Layout
9413 and one wants to define a new type of literate document.
9414 The format is reset to
9415 \begin_inset Quotes eld
9419 \begin_inset Flex Code
9422 \begin_layout Plain Layout
9429 \begin_inset Quotes erd
9433 \begin_inset Quotes eld
9437 \begin_inset Flex Code
9440 \begin_layout Plain Layout
9447 \begin_inset Quotes erd
9450 when the corresponding
9451 \begin_inset Flex Code
9454 \begin_layout Plain Layout
9460 parameter is encountered.
9463 \begin_layout Description
9464 \begin_inset Flex Code
9467 \begin_layout Plain Layout
9474 \begin_inset Flex Code
9477 \begin_layout Plain Layout
9488 \begin_inset Flex Code
9491 \begin_layout Plain Layout
9498 \begin_inset Flex Code
9501 \begin_layout Plain Layout
9507 ] Specifies what sort of output documents using this class will produce.
9510 \begin_layout Description
9511 \begin_inset Flex Code
9514 \begin_layout Plain Layout
9521 \begin_inset Flex Code
9524 \begin_layout Plain Layout
9531 \begin_inset Flex Code
9534 \begin_layout Plain Layout
9540 ] Specifies options, given in the second string, for the package named by
9543 \begin_inset Quotes eld
9547 \begin_inset Flex Code
9550 \begin_layout Plain Layout
9551 PackageOptions natbib square
9557 \begin_inset Quotes erd
9561 \begin_inset Flex Code
9564 \begin_layout Plain Layout
9570 to be loaded with the
9571 \begin_inset Flex Code
9574 \begin_layout Plain Layout
9581 (For \SpecialChar TeX
9582 perts, this causes \SpecialChar LyX
9584 \begin_inset Flex Code
9587 \begin_layout Plain Layout
9590 PassOptionsToPackage{natbib}{square}
9596 \begin_inset Flex Code
9599 \begin_layout Plain Layout
9608 \begin_layout Description
9609 \begin_inset Flex Code
9612 \begin_layout Plain Layout
9619 \begin_inset Flex Code
9622 \begin_layout Plain Layout
9631 \begin_inset Flex Code
9634 \begin_layout Plain Layout
9641 \begin_inset Flex Code
9644 \begin_layout Plain Layout
9650 ] The default pagestyle.
9651 Can be changed in the
9652 \begin_inset Flex MenuItem
9655 \begin_layout Plain Layout
9656 Document\SpecialChar menuseparator
9665 \begin_layout Description
9666 \begin_inset Flex Code
9669 \begin_layout Plain Layout
9675 Sets the preamble for the \SpecialChar LaTeX
9677 Note that this will completely override any prior
9678 \begin_inset Flex Code
9681 \begin_layout Plain Layout
9688 \begin_inset Flex Code
9691 \begin_layout Plain Layout
9699 \begin_inset Flex Code
9702 \begin_layout Plain Layout
9708 if you just want to add material to the preamble.) Must end with
9709 \begin_inset Quotes eld
9713 \begin_inset Flex Code
9716 \begin_layout Plain Layout
9723 \begin_inset Quotes erd
9729 \begin_layout Description
9730 \begin_inset Flex Code
9733 \begin_layout Plain Layout
9740 \begin_inset Flex Code
9743 \begin_layout Plain Layout
9750 \begin_inset Flex Code
9753 \begin_layout Plain Layout
9762 \begin_inset space \thinspace{}
9766 \begin_inset Flex Code
9769 \begin_layout Plain Layout
9775 ] Whether the class already provides the feature
9776 \begin_inset Flex Code
9779 \begin_layout Plain Layout
9786 A feature is in general the name of a package (e.
9787 \begin_inset space \thinspace{}
9791 \begin_inset space \space{}
9795 \begin_inset Flex Code
9798 \begin_layout Plain Layout
9805 \begin_inset Flex Code
9808 \begin_layout Plain Layout
9815 \begin_inset space \thinspace{}
9819 \begin_inset space \space{}
9823 \begin_inset Flex Code
9826 \begin_layout Plain Layout
9833 \begin_inset Flex Code
9836 \begin_layout Plain Layout
9844 \begin_inset CommandInset ref
9846 reference "chap:List-of-functions"
9850 for the list of features.
9853 \begin_layout Description
9854 \begin_inset Flex Code
9857 \begin_layout Plain Layout
9864 \begin_inset Flex Code
9867 \begin_layout Plain Layout
9873 ] Indicates that this layout provides the functionality of the module mentioned,
9874 which should be specified by the filename without the
9875 \begin_inset Flex Code
9878 \begin_layout Plain Layout
9885 This will typically be used if the layout includes the module directly,
9886 rather than using the
9887 \begin_inset Flex Code
9890 \begin_layout Plain Layout
9896 tag to indicate that it ought to be used.
9897 It could also be used in a module that provided an alternate implementation
9898 of the same functionality.
9901 \begin_layout Description
9902 \begin_inset Flex Code
9905 \begin_layout Plain Layout
9912 \begin_inset Flex Code
9915 \begin_layout Plain Layout
9921 ] Whether the class requires the feature
9922 \begin_inset Flex Code
9925 \begin_layout Plain Layout
9932 Multiple features must be separated by commas.
9933 Note that you can only request supported features.
9935 \begin_inset CommandInset ref
9937 reference "chap:List-of-functions"
9941 for the list of features.)
9942 \change_inserted -712698321 1438601536
9944 If you require a package with specific options, you can additionally use
9946 \begin_inset Flex Code
9949 \begin_layout Plain Layout
9951 \change_inserted -712698321 1438601526
9962 \begin_layout Description
9963 \begin_inset Flex Code
9966 \begin_layout Plain Layout
9973 \begin_inset Flex Code
9976 \begin_layout Plain Layout
9982 ] A string that indicates the width of the right margin on the screen, for
9984 \begin_inset Quotes eld
9988 \begin_inset Flex Code
9991 \begin_layout Plain Layout
9998 \begin_inset Quotes erd
10004 \begin_layout Description
10005 \begin_inset Flex Code
10008 \begin_layout Plain Layout
10015 \begin_inset Flex Code
10018 \begin_layout Plain Layout
10024 ] Sets which divisions get numbered.
10026 \begin_inset Newline newline
10030 \begin_inset Flex Code
10033 \begin_layout Plain Layout
10039 counter in \SpecialChar LaTeX
10043 \begin_layout Description
10044 \begin_inset Flex Code
10047 \begin_layout Plain Layout
10054 \begin_inset Flex Code
10057 \begin_layout Plain Layout
10066 \begin_inset space \thinspace{}
10070 \begin_inset Flex Code
10073 \begin_layout Plain Layout
10079 ] Whether the class-default should be printing on one or both sides of the
10081 Can be changed in the
10082 \begin_inset Flex MenuItem
10085 \begin_layout Plain Layout
10086 Document\SpecialChar menuseparator
10095 \begin_layout Description
10096 \begin_inset Flex Code
10099 \begin_layout Plain Layout
10106 \begin_inset Flex Code
10109 \begin_layout Plain Layout
10115 ] This sequence defines a paragraph style.
10116 If the style does not yet exist, it is created; if it does exist, its parameter
10119 \begin_inset Quotes eld
10123 \begin_inset Flex Code
10126 \begin_layout Plain Layout
10133 \begin_inset Quotes erd
10137 \begin_inset Newline newline
10141 \begin_inset CommandInset ref
10143 reference "subsec:Paragraph-Styles"
10147 for details on paragraph styles.
10150 \begin_layout Description
10151 \begin_inset Flex Code
10154 \begin_layout Plain Layout
10161 \begin_inset Flex Code
10164 \begin_layout Plain Layout
10170 ] The name of the command or environment to be used with
10171 \begin_inset Flex Code
10174 \begin_layout Plain Layout
10183 \begin_layout Description
10184 \begin_inset Flex Code
10187 \begin_layout Plain Layout
10194 \begin_inset Flex Code
10197 \begin_layout Plain Layout
10206 \begin_inset Flex Code
10209 \begin_layout Plain Layout
10215 ] Indicates what kind of markup is used to define the title of a document.
10217 \begin_inset Flex Code
10220 \begin_layout Plain Layout
10226 means that the macro with name
10227 \begin_inset Flex Code
10230 \begin_layout Plain Layout
10236 will be inserted after the last layout which has
10237 \begin_inset Quotes eld
10241 \begin_inset Flex Code
10244 \begin_layout Plain Layout
10246 \begin_inset space ~
10255 \begin_inset Quotes erd
10260 \begin_inset Flex Code
10263 \begin_layout Plain Layout
10269 corresponds to the case where all layouts which have
10270 \begin_inset Quotes eld
10274 \begin_inset Flex Code
10277 \begin_layout Plain Layout
10279 \begin_inset space ~
10288 \begin_inset Quotes erd
10291 should be enclosed into the
10292 \begin_inset Flex Code
10295 \begin_layout Plain Layout
10304 \begin_layout Description
10305 \begin_inset Flex Code
10308 \begin_layout Plain Layout
10315 \begin_inset Flex Code
10318 \begin_layout Plain Layout
10324 ] Sets which divisions are included in the table of contents.
10326 \begin_inset Flex Code
10329 \begin_layout Plain Layout
10335 counter in \SpecialChar LaTeX
10339 \begin_layout Subsection
10340 \begin_inset Flex Code
10343 \begin_layout Plain Layout
10350 \begin_inset CommandInset label
10352 name "subsec:ClassOptions"
10359 \begin_layout Standard
10361 \begin_inset Flex Code
10364 \begin_layout Plain Layout
10370 section can contain the following entries:
10373 \begin_layout Description
10374 \begin_inset Flex Code
10377 \begin_layout Plain Layout
10384 \begin_inset Flex Code
10387 \begin_layout Plain Layout
10393 ] The list of available font sizes for the document's main font, separated
10395 \begin_inset Quotes eld
10399 \begin_inset Flex Code
10402 \begin_layout Plain Layout
10409 \begin_inset Quotes erd
10415 \begin_layout Description
10416 \begin_inset Flex Code
10419 \begin_layout Plain Layout
10425 Used to set the DTD line with XML-based output classes.
10427 \begin_inset space \thinspace{}
10431 \begin_inset Quotes eld
10434 -//OASIS//DTD DocBook V4.2//EN
10435 \begin_inset Quotes erd
10441 \begin_layout Description
10442 \begin_inset Flex Code
10445 \begin_layout Plain Layout
10452 \begin_inset Flex Code
10455 \begin_layout Plain Layout
10456 string="empty|plain|headings|fancy"
10461 ] The list of available page sty\SpecialChar softhyphen
10463 \begin_inset Quotes eld
10467 \begin_inset Flex Code
10470 \begin_layout Plain Layout
10477 \begin_inset Quotes erd
10483 \begin_layout Description
10484 \begin_inset Flex Code
10487 \begin_layout Plain Layout
10494 \begin_inset Flex Code
10497 \begin_layout Plain Layout
10503 ] Some document class options, separated by a comma, that will be added
10504 to the optional part of the
10505 \begin_inset Flex Code
10508 \begin_layout Plain Layout
10519 \begin_layout Standard
10521 \begin_inset Flex Code
10524 \begin_layout Plain Layout
10530 section must end with
10531 \begin_inset Quotes eld
10535 \begin_inset Flex Code
10538 \begin_layout Plain Layout
10545 \begin_inset Quotes erd
10551 \begin_layout Subsection
10553 \begin_inset CommandInset label
10555 name "subsec:Paragraph-Styles"
10562 \begin_layout Standard
10563 A paragraph style description looks like this:
10567 \begin_layout Plain Layout
10568 Note that this will either define a new style or modify an existing one.
10576 \begin_layout LyX-Code
10583 \begin_layout LyX-Code
10587 \begin_layout LyX-Code
10591 \begin_layout Standard
10592 where the following commands are allowed:
10595 \begin_layout Description
10596 \begin_inset Flex Code
10599 \begin_layout Plain Layout
10606 \begin_inset Flex Code
10609 \begin_layout Plain Layout
10614 , left, right, center
10619 ] Paragraph alignment.
10622 \begin_layout Description
10623 \begin_inset Flex Code
10626 \begin_layout Plain Layout
10633 \begin_inset Flex Code
10636 \begin_layout Plain Layout
10641 , left, right, center
10646 ] A comma separated list of permitted alignments.
10647 (Some \SpecialChar LaTeX
10648 styles prohibit certain alignments, since those wouldn't make sense.
10649 For example a right-aligned or centered enumeration isn't possible.)
10652 \begin_layout Description
10653 \begin_inset Flex Code
10656 \begin_layout Plain Layout
10663 \begin_inset Flex Code
10666 \begin_layout Plain Layout
10672 ] Defines argument number <int> of a command\SpecialChar breakableslash
10673 environment associated with
10675 This is useful for things like section headings, and only makes sense with
10678 Every (optional or required) argument of a command or environment – except
10679 for the required argument that is associated with the content of the paragraph
10680 itself – has a separate definition, where the number specifies the order
10682 The definition must end with
10683 \begin_inset Flex Code
10686 \begin_layout Plain Layout
10693 So a command with two optional arguments has:
10694 \begin_inset Separator parbreak
10701 \begin_layout Quote
10707 \begin_layout Quote
10713 \begin_layout Quote
10719 \begin_layout Quote
10725 \begin_layout Quote
10731 \begin_layout Quote
10737 \begin_layout Standard
10739 \begin_inset Flex Code
10742 \begin_layout Plain Layout
10748 definition, the following specifications are possible:
10751 \begin_layout Itemize
10752 \begin_inset Flex Code
10755 \begin_layout Plain Layout
10762 \begin_inset Flex Code
10765 \begin_layout Plain Layout
10771 The string that will appear both in the menu (to insert this argument)
10772 and on the argument inset button (unless you also specify a separate
10773 \begin_inset Flex Code
10776 \begin_layout Plain Layout
10783 For the menu, you can define an accelerator by appending the respective
10784 character to the string, divided by
10785 \begin_inset Quotes eld
10789 \begin_inset Quotes erd
10793 \begin_inset space \thinspace{}
10797 \begin_inset space \space{}
10801 \begin_inset Quotes eld
10805 \begin_inset Flex Code
10808 \begin_layout Plain Layout
10815 \begin_inset Quotes erd
10821 \begin_layout Itemize
10822 \begin_inset Flex Code
10825 \begin_layout Plain Layout
10832 \begin_inset Flex Code
10835 \begin_layout Plain Layout
10841 A separate string for the menu.
10842 You can define an accelerator by appending the respective character to
10843 the string, divided by
10844 \begin_inset Quotes eld
10848 \begin_inset Quotes erd
10852 \begin_inset space \thinspace{}
10856 \begin_inset space \space{}
10860 \begin_inset Quotes eld
10864 \begin_inset Flex Code
10867 \begin_layout Plain Layout
10874 \begin_inset Quotes erd
10878 This specification is optional.
10879 If it is not given the
10880 \begin_inset Flex Code
10883 \begin_layout Plain Layout
10889 will be used instead for the menu.
10892 \begin_layout Itemize
10893 \begin_inset Flex Code
10896 \begin_layout Plain Layout
10903 \begin_inset Flex Code
10906 \begin_layout Plain Layout
10912 A longer explanatory text that appears in the tooltip when hovering over
10913 the argument inset.
10916 \begin_layout Itemize
10917 \begin_inset Flex Code
10920 \begin_layout Plain Layout
10927 \begin_inset Flex Code
10930 \begin_layout Plain Layout
10939 \begin_inset space \thinspace{}
10943 \begin_inset Flex Code
10946 \begin_layout Plain Layout
10952 ] Declare if this is a mandatory (1) or an optional (0) argument.
10953 Mandatory arguments will be output empty if not given, while optional arguments
10954 will not be output at all.
10955 By default, mandatory arguments are delimited by
10956 \begin_inset Flex Code
10959 \begin_layout Plain Layout
10965 , while optional arguments are delimited by
10966 \begin_inset Flex Code
10969 \begin_layout Plain Layout
10978 \begin_layout Itemize
10979 \begin_inset Flex Code
10982 \begin_layout Plain Layout
10989 \begin_inset Flex Code
10992 \begin_layout Plain Layout
10998 defines another argument (by its number) which this argument requires to
10999 be output if it is itself output.
11001 \begin_inset space \thinspace{}
11004 g., in \SpecialChar LaTeX
11005 commands, optional arguments often require previous optional arguments
11006 to be output (at least empty), as in
11007 \begin_inset Flex Code
11010 \begin_layout Plain Layout
11013 command[][argument]{text}
11019 This can be achieved by the statement
11020 \begin_inset Flex Code
11023 \begin_layout Plain Layout
11030 \begin_inset Flex Code
11033 \begin_layout Plain Layout
11042 \begin_layout Itemize
11043 \begin_inset Flex Code
11046 \begin_layout Plain Layout
11053 \begin_inset Flex Code
11056 \begin_layout Plain Layout
11062 defines a custom left delimiter (instead of
11063 \begin_inset Flex Code
11066 \begin_layout Plain Layout
11073 \begin_inset Flex Code
11076 \begin_layout Plain Layout
11083 A line break in the output can be indicated by
11084 \begin_inset Flex Code
11087 \begin_layout Plain Layout
11096 \begin_layout Itemize
11097 \begin_inset Flex Code
11100 \begin_layout Plain Layout
11107 \begin_inset Flex Code
11110 \begin_layout Plain Layout
11116 defines a custom right delimiter (instead of
11117 \begin_inset Flex Code
11120 \begin_layout Plain Layout
11127 \begin_inset Flex Code
11130 \begin_layout Plain Layout
11137 A line break in the output can be indicated by
11138 \begin_inset Flex Code
11141 \begin_layout Plain Layout
11150 \begin_layout Itemize
11151 \begin_inset Flex Code
11154 \begin_layout Plain Layout
11161 \begin_inset Flex Code
11164 \begin_layout Plain Layout
11170 defines an argument that is inserted if and only if no user-specified arguments
11172 \begin_inset space \thinspace{}
11176 \begin_inset space \space{}
11179 if no argument inset has been inserted (note that also an empty argument
11180 inset omits the DefaultArg).
11181 Multiple arguments need to be separated by comma.
11184 \begin_layout Itemize
11185 \begin_inset Flex Code
11188 \begin_layout Plain Layout
11195 \begin_inset Flex Code
11198 \begin_layout Plain Layout
11204 defines an argument that is inserted in any case (alone or in addition
11205 to user-specified arguments).
11206 Multiple arguments need to be separated by comma.
11209 \begin_layout Itemize
11210 \begin_inset Flex Code
11213 \begin_layout Plain Layout
11219 The font used for the argument content, see
11220 \begin_inset CommandInset ref
11222 reference "subsec:Font-description"
11229 \begin_layout Itemize
11230 \begin_inset Flex Code
11233 \begin_layout Plain Layout
11239 The font used for the label; see
11240 \begin_inset CommandInset ref
11242 reference "subsec:Font-description"
11249 \begin_layout Itemize
11250 \begin_inset Flex Code
11253 \begin_layout Plain Layout
11260 \begin_inset Flex Code
11263 \begin_layout Plain Layout
11268 , Minimalistic, Conglomerate
11273 ] describes the rendering style used for the inset's frame and buttons.
11276 \begin_layout Itemize
11277 \begin_inset Flex Code
11280 \begin_layout Plain Layout
11287 \begin_inset Flex Code
11290 \begin_layout Plain Layout
11297 \begin_inset Flex Code
11300 \begin_layout Plain Layout
11306 , this argument is automatically inserted when the respective style is selected.
11307 Currently, only one argument per style\SpecialChar breakableslash
11308 layout can be automatically inserted.
11309 \change_inserted -712698321 1431166542
11313 \begin_layout Itemize
11315 \change_inserted -712698321 1431166604
11316 \begin_inset Flex Code
11319 \begin_layout Plain Layout
11321 \change_inserted -712698321 1431166548
11328 \begin_inset Flex Code
11331 \begin_layout Plain Layout
11333 \change_inserted -712698321 1431166543
11340 \begin_inset Flex Code
11343 \begin_layout Plain Layout
11345 \change_inserted -712698321 1431166543
11351 , this argument will be inserted with a copy of the co-text (either selected
11352 text or the whole paragraph) as content.
11355 \begin_layout Itemize
11357 \change_inserted -712698321 1431070588
11358 \begin_inset Flex Code
11361 \begin_layout Plain Layout
11363 \change_inserted -712698321 1431070522
11370 \begin_inset Flex Code
11373 \begin_layout Plain Layout
11375 \change_inserted -712698321 1431070522
11376 string of characters
11385 Defines individual characters that should be output in raw form, meaning
11386 without special translations that \SpecialChar LaTeX
11388 Note that, contrary to PassThru, this needs to be explicitly defined for
11390 That is, arguments do not inherit PassThruChars from their parent inset
11396 \begin_layout Standard
11397 By default, the text entered in the \SpecialChar LyX
11398 workarea in the respective layout is
11399 the last (mandatory) argument of a command if the
11400 \begin_inset Flex Code
11403 \begin_layout Plain Layout
11410 \begin_inset Flex Code
11413 \begin_layout Plain Layout
11420 However, arguments with the prefix
11421 \begin_inset Flex Code
11424 \begin_layout Plain Layout
11430 are output after this workarea argument.
11431 Note that post-argument numbering restarts at 1, so the first argument
11432 following the workarea argument is
11433 \begin_inset Flex Code
11436 \begin_layout Plain Layout
11443 Post-arguments are ignored in any other
11444 \begin_inset Flex Code
11447 \begin_layout Plain Layout
11454 \begin_inset Flex Code
11457 \begin_layout Plain Layout
11466 \begin_layout Standard
11468 \begin_inset Flex Code
11471 \begin_layout Plain Layout
11480 \begin_inset Flex Code
11483 \begin_layout Plain Layout
11492 \begin_inset Flex Code
11495 \begin_layout Plain Layout
11501 followed by the number (e.
11502 \begin_inset space \thinspace{}
11506 \begin_inset space \space{}
11510 \begin_inset Flex Code
11513 \begin_layout Plain Layout
11523 \begin_layout Description
11524 \begin_inset Flex Code
11527 \begin_layout Plain Layout
11533 Note that this will completely override any prior
11534 \begin_inset Flex Code
11537 \begin_layout Plain Layout
11543 declaration for this style.
11545 \begin_inset Quotes eld
11549 \begin_inset Flex Code
11552 \begin_layout Plain Layout
11559 \begin_inset Quotes erd
11564 \begin_inset CommandInset ref
11566 reference "subsec:I18n"
11570 for details on its use.
11573 \begin_layout Description
11574 \begin_inset Flex Code
11577 \begin_layout Plain Layout
11584 \begin_inset Flex Code
11587 \begin_layout Plain Layout
11597 \begin_layout Plain Layout
11598 Note that a `float' here is a real number, such as: 1.5.
11603 The vertical space with which the last of a chain of paragraphs with this
11604 style is separated from the following paragraph.
11605 If the next paragraph has another style, the separations are not simply
11606 added, but the maximum is taken.
11609 \begin_layout Description
11610 \begin_inset Flex Code
11613 \begin_layout Plain Layout
11620 \begin_inset Flex Code
11623 \begin_layout Plain Layout
11629 ] The category for this style.
11630 This is used to group related styles in the style combobox on the toolbar.
11631 Any string can be used, but you may want to use existing categories with
11636 \begin_layout Description
11637 \begin_inset Flex Code
11640 \begin_layout Plain Layout
11646 Depth of XML command.
11647 Used only with XML-type formats.
11650 \begin_layout Description
11651 \begin_inset Flex Code
11654 \begin_layout Plain Layout
11661 \begin_inset Flex Code
11664 \begin_layout Plain Layout
11670 ] Copies all the features of an existing style into the current one.
11674 \begin_layout Description
11675 \begin_inset Flex Code
11678 \begin_layout Plain Layout
11685 \begin_inset Flex Code
11688 \begin_layout Plain Layout
11694 ] The name of a style whose preamble should be output
11699 This allows to ensure some ordering of the preamble snippets when macros
11700 definitions depend on one another.
11704 \begin_layout Plain Layout
11705 Note that, besides that functionality, there is no way to ensure any ordering
11707 The ordering that you see in a given version of \SpecialChar LyX
11708 may change without warning
11717 \begin_layout Description
11718 \begin_inset Flex Code
11721 \begin_layout Plain Layout
11728 \begin_inset Flex Code
11731 \begin_layout Plain Layout
11736 , Box, Filled_Box, Static
11741 ] The type of label that stands at the end of the paragraph (or sequence
11743 \begin_inset Flex Code
11746 \begin_layout Plain Layout
11753 \begin_inset Newline newline
11757 \begin_inset Flex Code
11760 \begin_layout Plain Layout
11767 \begin_inset Flex Code
11770 \begin_layout Plain Layout
11777 \begin_inset Flex Code
11780 \begin_layout Plain Layout
11788 \begin_inset Flex Code
11791 \begin_layout Plain Layout
11798 \begin_inset Quotes eld
11802 \begin_inset Quotes erd
11806 \begin_inset Flex Code
11809 \begin_layout Plain Layout
11816 \begin_inset space \space{}
11820 \begin_inset Flex Code
11823 \begin_layout Plain Layout
11829 ) is a white (resp.
11830 \begin_inset space ~
11833 black) square suitable for end of proof markers,
11834 \begin_inset Flex Code
11837 \begin_layout Plain Layout
11843 is an explicit text string.
11846 \begin_layout Description
11847 \begin_inset Flex Code
11850 \begin_layout Plain Layout
11857 \begin_inset Flex Code
11860 \begin_layout Plain Layout
11866 ] The string used for a label with a
11867 \begin_inset Flex Code
11870 \begin_layout Plain Layout
11877 \begin_inset Newline newline
11881 \begin_inset Flex Code
11884 \begin_layout Plain Layout
11894 \begin_layout Description
11895 \begin_inset Flex Code
11898 \begin_layout Plain Layout
11904 The font used for both the text body
11910 \begin_inset CommandInset ref
11912 reference "subsec:Font-description"
11917 Note that defining this font automatically defines the
11918 \begin_inset Flex Code
11921 \begin_layout Plain Layout
11928 So you should define this one first if you also want to define
11929 \begin_inset Flex Code
11932 \begin_layout Plain Layout
11941 \begin_layout Description
11942 \begin_inset Flex Code
11945 \begin_layout Plain Layout
11952 \begin_inset Flex Code
11955 \begin_layout Plain Layout
11961 ] Used for backporting new styles to stable \SpecialChar LyX
11963 The first stable version that supports this tag is \SpecialChar LyX
11965 The argument is a number which may either be 0, -1 or any value greater
11968 \begin_inset Flex Code
11971 \begin_layout Plain Layout
11977 flag of a style is greater than zero, it will always be written to the
11979 If a .lyx file is read, the style definitions from the document header are
11980 added to the document class.
11981 Therefore even older \SpecialChar LyX
11982 versions can handle the style.
11984 \begin_inset Flex Code
11987 \begin_layout Plain Layout
11993 is a version number: If the style is read, and the version number is less
11994 than the version number of the already existing style in the document class,
11995 the new style is ignored.
11996 If the version number is greater, the new style replaces the existing style.
11997 A value of -1 means an infinite version number, i.
11998 \begin_inset space \thinspace{}
12002 \begin_inset space \space{}
12005 the style is always used.
12008 \begin_layout Description
12009 \begin_inset Flex Code
12012 \begin_layout Plain Layout
12019 \begin_inset Flex Code
12022 \begin_layout Plain Layout
12031 \begin_inset space \thinspace{}
12035 \begin_inset Flex Code
12038 \begin_layout Plain Layout
12044 ] Usually \SpecialChar LyX
12045 does not allow you to insert more than one space between words,
12046 since a space is considered as the separation between two words, not a
12047 character or symbol of its own.
12048 This is a very fine thing but sometimes annoying, for example, when typing
12049 program code or plain \SpecialChar LaTeX
12052 \begin_inset Flex Code
12055 \begin_layout Plain Layout
12062 Note that \SpecialChar LyX
12063 will create protected blanks for the additional blanks when
12064 in another mode than \SpecialChar LaTeX
12068 \begin_layout Description
12069 \begin_inset Flex Code
12072 \begin_layout Plain Layout
12078 These tags are used with XHTML output.
12080 \begin_inset CommandInset ref
12082 reference "subsec:Paragraph-Style-XHTML"
12089 \begin_layout Description
12090 \begin_inset Flex Code
12093 \begin_layout Plain Layout
12099 [FIXME] (Used only with XML-type formats.)
12102 \begin_layout Description
12103 \begin_inset Flex Code
12106 \begin_layout Plain Layout
12113 \begin_inset Flex Code
12116 \begin_layout Plain Layout
12125 \begin_inset space \thinspace{}
12129 \begin_inset Flex Code
12132 \begin_layout Plain Layout
12139 \begin_inset Flex Code
12142 \begin_layout Plain Layout
12148 , marks the style as to be included in the document preamble and not in
12150 This is useful for document classes that want such information as the title
12151 and author to appear in the preamble.
12152 Note that this works only for styles for which the
12153 \begin_inset Flex Code
12156 \begin_layout Plain Layout
12163 \begin_inset Flex Code
12166 \begin_layout Plain Layout
12173 \begin_inset Flex Code
12176 \begin_layout Plain Layout
12185 \begin_layout Description
12186 \begin_inset Flex Code
12189 \begin_layout Plain Layout
12196 \begin_inset Flex Code
12199 \begin_layout Plain Layout
12208 \begin_inset space \thinspace{}
12212 \begin_inset Flex Code
12215 \begin_layout Plain Layout
12222 \begin_inset Flex Code
12225 \begin_layout Plain Layout
12231 , marks the style as being part of a title block (see also the
12232 \begin_inset Flex Code
12235 \begin_layout Plain Layout
12242 \begin_inset Flex Code
12245 \begin_layout Plain Layout
12254 \begin_layout Description
12255 \begin_inset Flex Code
12258 \begin_layout Plain Layout
12265 \begin_inset Flex Code
12268 \begin_layout Plain Layout
12274 ] The \SpecialChar LaTeX
12275 command sequence declaring an item in a list.
12276 The command is to be defined without the preceding backslash (the default
12278 \begin_inset Quotes eld
12282 \begin_inset Quotes erd
12286 \begin_inset Flex Code
12289 \begin_layout Plain Layout
12297 in the \SpecialChar LaTeX
12301 \begin_layout Description
12302 \begin_inset Flex Code
12305 \begin_layout Plain Layout
12312 \begin_inset Flex Code
12315 \begin_layout Plain Layout
12321 ] This provides extra space between paragraphs that have the same style.
12322 If you put other styles into an environment, each is separated with the
12324 \begin_inset Flex Code
12327 \begin_layout Plain Layout
12334 But the whole items of the environment are additionally separated with
12336 \begin_inset Flex Code
12339 \begin_layout Plain Layout
12346 Note that this is a
12351 \begin_layout Description
12352 \begin_inset Flex Code
12355 \begin_layout Plain Layout
12361 [FIXME] (Used only with XML-type formats.)
12364 \begin_layout Description
12365 \begin_inset Flex Code
12368 \begin_layout Plain Layout
12375 \begin_inset Flex Code
12378 \begin_layout Plain Layout
12387 \begin_inset space \thinspace{}
12391 \begin_inset Flex Code
12394 \begin_layout Plain Layout
12400 ] Usually \SpecialChar LyX
12401 does not allow you to leave a paragraph empty, since it would
12402 lead to empty \SpecialChar LaTeX
12404 There are some cases where this could be desirable however: in a letter
12405 template, the required fields can be provided as empty fields, so that
12406 people do not forget them; in some special classes, a style can be used
12407 as some kind of break, which does not contain actual text.
12410 \begin_layout Description
12411 \begin_inset Flex Code
12414 \begin_layout Plain Layout
12421 \begin_inset Flex Code
12424 \begin_layout Plain Layout
12430 ] The vertical space between the label and the text body.
12431 Only used for labels that are above the text body (
12432 \begin_inset Flex Code
12435 \begin_layout Plain Layout
12442 \begin_inset Newline newline
12446 \begin_inset Flex Code
12449 \begin_layout Plain Layout
12450 Centered_Top_Environment
12458 \begin_layout Description
12459 \begin_inset Flex Code
12462 \begin_layout Plain Layout
12469 \begin_inset Flex Code
12472 \begin_layout Plain Layout
12478 ] The name of the counter for automatic numbering.
12479 In order to have the counter appear with your label, you will need to reference
12481 \begin_inset Flex Code
12484 \begin_layout Plain Layout
12493 This will work with
12494 \begin_inset Flex Code
12497 \begin_layout Plain Layout
12504 \begin_inset Flex Code
12507 \begin_layout Plain Layout
12514 \begin_inset Flex Code
12517 \begin_layout Plain Layout
12524 \begin_inset Flex Code
12527 \begin_layout Plain Layout
12534 \begin_inset Newline newline
12542 \begin_inset Flex Code
12545 \begin_layout Plain Layout
12552 \begin_inset Flex Code
12555 \begin_layout Plain Layout
12561 , though this case is a bit complicated.
12562 Suppose you declare
12563 \begin_inset Quotes eld
12567 \begin_inset Flex Code
12570 \begin_layout Plain Layout
12571 LabelCounter myenum
12577 \begin_inset Quotes erd
12581 Then the actual counters used are
12582 \begin_inset Flex Code
12585 \begin_layout Plain Layout
12592 \begin_inset Flex Code
12595 \begin_layout Plain Layout
12602 \begin_inset Flex Code
12605 \begin_layout Plain Layout
12612 \begin_inset Flex Code
12615 \begin_layout Plain Layout
12621 , much as in \SpecialChar LaTeX
12623 These counters must all be declared separately.
12624 \begin_inset Newline newline
12628 \begin_inset CommandInset ref
12630 reference "subsec:Counters"
12634 for details on counters.
12637 \begin_layout Description
12638 \begin_inset Flex Code
12641 \begin_layout Plain Layout
12647 The font used for the label.
12649 \begin_inset CommandInset ref
12651 reference "subsec:Font-description"
12658 \begin_layout Description
12659 \begin_inset Flex Code
12662 \begin_layout Plain Layout
12669 \begin_inset Flex Code
12672 \begin_layout Plain Layout
12678 ] Text that indicates how far a label should be indented.
12681 \begin_layout Description
12682 \begin_inset Flex Code
12685 \begin_layout Plain Layout
12692 \begin_inset Flex Code
12695 \begin_layout Plain Layout
12701 ] Text that indicates the amount of horizontal space between the label and
12703 Only used for labels that are not above the text body.
12706 \begin_layout Description
12707 \begin_inset Flex Code
12710 \begin_layout Plain Layout
12717 \begin_inset Flex Code
12720 \begin_layout Plain Layout
12726 ] The string used for the label.
12728 \begin_inset Flex Code
12731 \begin_layout Plain Layout
12737 is set, this string can be contain the special formatting commands described
12739 \begin_inset CommandInset ref
12741 reference "subsec:Counters"
12748 \begin_layout Description
12749 \begin_inset Flex Code
12752 \begin_layout Plain Layout
12753 LabelStringAppendix
12759 \begin_inset Flex Code
12762 \begin_layout Plain Layout
12768 ] This is used inside the appendix instead of
12769 \begin_inset Newline newline
12773 \begin_inset Flex Code
12776 \begin_layout Plain Layout
12784 \begin_inset Flex Code
12787 \begin_layout Plain Layout
12794 \begin_inset Newline newline
12798 \begin_inset Flex Code
12801 \begin_layout Plain Layout
12802 LabelStringAppendix
12810 \begin_layout Description
12811 \begin_inset Flex Code
12814 \begin_layout Plain Layout
12820 [FIXME] (Used only with XML-type formats.)
12823 \begin_layout Description
12824 \begin_inset Flex Code
12827 \begin_layout Plain Layout
12834 \begin_inset Flex Code
12837 \begin_layout Plain Layout
12842 , Manual, Static, Above,
12843 \begin_inset Newline newline
12846 Centered, Sensitive, Enumerate,
12847 \begin_inset Newline newline
12850 Itemize, Bibliography
12856 \begin_inset Separator parbreak
12863 \begin_layout Description
12864 \begin_inset Flex Code
12867 \begin_layout Plain Layout
12873 means the label is the very first word (up to the first real blank).
12874 Use protected spaces if you want more than one word as the label.
12878 \begin_layout Description
12879 \begin_inset Flex Code
12882 \begin_layout Plain Layout
12888 means the label is simply what is declared as
12889 \begin_inset Flex Code
12892 \begin_layout Plain Layout
12899 This will be displayed
12900 \begin_inset Quotes eld
12904 \begin_inset Quotes erd
12907 , at the beginning of the paragraph.
12909 \begin_inset Flex Code
12912 \begin_layout Plain Layout
12919 \begin_inset Flex Code
12922 \begin_layout Plain Layout
12928 , then it will be displayed only in the first paragraph of any sequence
12929 of paragraphs with the same
12930 \begin_inset Flex Code
12933 \begin_layout Plain Layout
12942 \begin_layout Description
12943 \begin_inset Flex Code
12946 \begin_layout Plain Layout
12953 \begin_inset space ~
12957 \begin_inset space ~
12961 \begin_inset Flex Code
12964 \begin_layout Plain Layout
12970 are special cases of
12971 \begin_inset Flex Code
12974 \begin_layout Plain Layout
12981 The label will be printed above the paragraph either at the beginning of
12982 the line or centered.
12985 \begin_layout Description
12986 \begin_inset Flex Code
12989 \begin_layout Plain Layout
12995 is a special case for the caption-labels
12996 \begin_inset Quotes eld
13000 \begin_inset Quotes erd
13004 \begin_inset Quotes eld
13008 \begin_inset Quotes erd
13012 \begin_inset Newline newline
13016 \begin_inset Flex Code
13019 \begin_layout Plain Layout
13025 means the (hardcoded) label string depends on the kind of float: It is
13026 hardcoded to be `FloatType N', where N is the value of the counter associated
13028 For the case that a caption is inserted outside of a float the
13029 \begin_inset Flex Code
13032 \begin_layout Plain Layout
13039 \begin_inset Quotes eld
13043 \begin_inset Quotes erd
13049 \begin_layout Description
13050 \begin_inset Flex Code
13053 \begin_layout Plain Layout
13059 produces the usual sort of enumeration labels.
13060 At present, it is hardcoded to use Arabic numerals, lowercase letters,
13061 small Roman numerals, and uppercase letters for the four possible depths.
13064 \begin_layout Description
13065 \begin_inset Flex Code
13068 \begin_layout Plain Layout
13074 produces various bullets at the different levels.
13075 It is also hardcoded.
13078 \begin_layout Description
13079 \begin_inset Flex Code
13082 \begin_layout Plain Layout
13088 should be used only with
13089 \begin_inset Flex Code
13092 \begin_layout Plain Layout
13093 LatexType BibEnvironment
13102 \begin_layout Description
13103 \begin_inset Flex Code
13106 \begin_layout Plain Layout
13112 Note that this will completely override any prior
13113 \begin_inset Flex Code
13116 \begin_layout Plain Layout
13122 declaration for this style.
13124 \begin_inset Quotes eld
13128 \begin_inset Flex Code
13131 \begin_layout Plain Layout
13138 \begin_inset Quotes erd
13143 \begin_inset CommandInset ref
13145 reference "subsec:I18n"
13149 for details on its use.
13152 \begin_layout Description
13153 \begin_inset Flex Code
13156 \begin_layout Plain Layout
13163 \begin_inset Flex Code
13166 \begin_layout Plain Layout
13172 ] The name of the corresponding \SpecialChar LaTeX
13174 Either the environment or command name.
13177 \begin_layout Description
13178 \begin_inset Flex Code
13181 \begin_layout Plain Layout
13188 \begin_inset Flex Code
13191 \begin_layout Plain Layout
13197 ] An optional parameter for the corresponding
13198 \begin_inset Flex Code
13201 \begin_layout Plain Layout
13208 This parameter cannot be changed from within \SpecialChar LyX
13210 \begin_inset Flex Code
13213 \begin_layout Plain Layout
13219 for customizable parameters).
13220 This will be output as is after all \SpecialChar LaTeX
13222 \begin_inset Flex Code
13225 \begin_layout Plain Layout
13234 \begin_layout Description
13235 \begin_inset Flex Code
13238 \begin_layout Plain Layout
13245 \begin_inset Flex Code
13248 \begin_layout Plain Layout
13253 , Command, Environment, Item_Environment,
13254 \begin_inset Newline newline
13257 List_Environment, Bib_Environment
13262 ] How the style should be translated into \SpecialChar LaTeX
13267 \begin_layout Plain Layout
13268 \begin_inset Flex Code
13271 \begin_layout Plain Layout
13277 is perhaps a bit misleading, since these rules apply to SGML classes, too.
13278 Visit the SGML class files for specific examples.
13284 \begin_inset Separator parbreak
13291 \begin_layout Description
13292 \begin_inset Flex Code
13295 \begin_layout Plain Layout
13301 means nothing special.
13304 \begin_layout Description
13305 \begin_inset Flex Code
13308 \begin_layout Plain Layout
13315 \begin_inset Flex Code
13318 \begin_layout Plain Layout
13325 {\SpecialChar ldots
13334 \begin_layout Description
13335 \begin_inset Flex Code
13338 \begin_layout Plain Layout
13345 \begin_inset Flex Code
13348 \begin_layout Plain Layout
13355 }\SpecialChar ldots
13371 \begin_layout Description
13372 \begin_inset Flex Code
13375 \begin_layout Plain Layout
13382 \begin_inset Flex Code
13385 \begin_layout Plain Layout
13392 \begin_inset Flex Code
13395 \begin_layout Plain Layout
13403 is generated for each paragraph of this environment.
13407 \begin_layout Description
13408 \begin_inset Flex Code
13411 \begin_layout Plain Layout
13418 \begin_inset Flex Code
13421 \begin_layout Plain Layout
13428 \begin_inset Newline newline
13432 \begin_inset Flex Code
13435 \begin_layout Plain Layout
13441 is passed as an argument to the environment.
13442 \begin_inset Newline newline
13446 \begin_inset Flex Code
13449 \begin_layout Plain Layout
13455 can be defined in the
13456 \begin_inset Flex MenuItem
13459 \begin_layout Plain Layout
13460 Edit\SpecialChar menuseparator
13462 \begin_inset space ~
13473 \begin_layout Description
13474 \begin_inset Flex Code
13477 \begin_layout Plain Layout
13484 \begin_inset Flex Code
13487 \begin_layout Plain Layout
13493 but adds additionally the necessary mandatory argument (the longest label)
13494 to the begin statement of the bibliography environment:
13495 \begin_inset Newline newline
13499 \begin_inset Flex Code
13502 \begin_layout Plain Layout
13505 begin{thebibliography}{99}
13510 It is therefore only useful for bibliography environments.
13511 The default longest label
13512 \begin_inset Quotes eld
13516 \begin_inset Quotes erd
13519 can be changed by the user in the paragraph settings of a bibliography
13523 \begin_layout Standard
13524 Putting the last few things together, the \SpecialChar LaTeX
13525 output will be either:
13528 \begin_layout LyX-Code
13531 LatexName[LatexParam]{\SpecialChar ldots
13535 \begin_layout Standard
13539 \begin_layout LyX-Code
13542 begin{LatexName}[LatexParam] \SpecialChar ldots
13548 \begin_layout Standard
13549 depending upon the \SpecialChar LaTeX
13554 \begin_layout Description
13555 \begin_inset Flex Code
13558 \begin_layout Plain Layout
13565 \begin_inset Flex Code
13568 \begin_layout Plain Layout
13574 ] A string that is put at the beginning of the style content.
13575 A line break in the output can be indicated by
13576 \begin_inset Flex Code
13579 \begin_layout Plain Layout
13588 \begin_layout Description
13589 \begin_inset Flex Code
13592 \begin_layout Plain Layout
13599 \begin_inset Flex Code
13602 \begin_layout Plain Layout
13608 ] If you put styles into environments, the different
13609 \begin_inset Flex Code
13612 \begin_layout Plain Layout
13618 are not simply added, but added with a factor
13619 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13623 Note that this parameter is also used when
13624 \begin_inset Flex Code
13627 \begin_layout Plain Layout
13634 \begin_inset Flex Code
13637 \begin_layout Plain Layout
13644 \begin_inset Flex Code
13647 \begin_layout Plain Layout
13654 Then it is added to the manual or dynamic margin.
13655 \begin_inset Newline newline
13659 \begin_inset Quotes eld
13663 \begin_inset Flex Code
13666 \begin_layout Plain Layout
13673 \begin_inset Quotes erd
13676 means that the paragraph is indented with the width of
13677 \begin_inset Quotes eld
13681 \begin_inset Flex Code
13684 \begin_layout Plain Layout
13691 \begin_inset Quotes erd
13694 in the normal font.
13695 You can get a negative width by prefixing the string with
13696 \begin_inset Quotes eld
13700 \begin_inset Flex Code
13703 \begin_layout Plain Layout
13710 \begin_inset Quotes erd
13714 This way was chosen so that the look is the same with each used screen
13718 \begin_layout Description
13719 \begin_inset Flex Code
13722 \begin_layout Plain Layout
13729 \begin_inset Flex Code
13732 \begin_layout Plain Layout
13737 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13743 \begin_inset Newline newline
13746 The kind of margin that the style has on the left side.
13747 \begin_inset Separator parbreak
13754 \begin_layout Description
13755 \begin_inset Flex Code
13758 \begin_layout Plain Layout
13764 just means a fixed margin.
13767 \begin_layout Description
13768 \begin_inset Flex Code
13771 \begin_layout Plain Layout
13777 means that the left margin depends on the string entered in the
13778 \begin_inset Flex MenuItem
13781 \begin_layout Plain Layout
13782 Edit\SpecialChar menuseparator
13784 \begin_inset space ~
13793 This is used to typeset nice lists without tabulators.
13796 \begin_layout Description
13797 \begin_inset Flex Code
13800 \begin_layout Plain Layout
13806 means that the margin depends on the size of the label.
13807 This is used for automatic enumerated headlines.
13808 It is obvious that the headline
13809 \begin_inset Quotes eld
13812 5.4.3.2.1 Very long headline
13813 \begin_inset Quotes erd
13816 must have a wider left margin (as wide as
13817 \begin_inset Quotes eld
13821 \begin_inset Quotes erd
13824 plus the space) than
13825 \begin_inset Quotes eld
13828 3.2 Very long headline
13829 \begin_inset Quotes erd
13833 \begin_inset Quotes eld
13837 \begin_inset Quotes erd
13840 are not able to do this.
13843 \begin_layout Description
13844 \begin_inset Flex Code
13847 \begin_layout Plain Layout
13853 is similar, but only the very first row of the paragraph is dynamic, while
13854 the others are static; this is used, for example, for descriptions.
13857 \begin_layout Description
13858 \begin_inset Flex Code
13861 \begin_layout Plain Layout
13867 means the margin is chosen in a way that the longest row of this paragraph
13868 fits to the right margin.
13869 This is used to typeset an address on the right edge of the page.
13873 \begin_layout Description
13874 \begin_inset Flex Code
13877 \begin_layout Plain Layout
13884 \begin_inset Flex Code
13887 \begin_layout Plain Layout
13896 \begin_inset space \thinspace{}
13900 \begin_inset Flex Code
13903 \begin_layout Plain Layout
13909 ] Whether fragile commands in this style should be
13910 \begin_inset Flex Code
13913 \begin_layout Plain Layout
13926 whether this command should itself be protected.)
13929 \begin_layout Description
13930 \begin_inset Flex Code
13933 \begin_layout Plain Layout
13940 \begin_inset Flex Code
13943 \begin_layout Plain Layout
13950 \begin_inset space \thinspace{}
13954 \begin_inset Flex Code
13957 \begin_layout Plain Layout
13965 ] Whether newlines are translated into \SpecialChar LaTeX
13967 \begin_inset Flex Code
13970 \begin_layout Plain Layout
13981 The translation can be switched off to allow more comfortable \SpecialChar LaTeX
13983 inside \SpecialChar LyX
13987 \begin_layout Description
13988 \begin_inset Flex Code
13991 \begin_layout Plain Layout
13998 \begin_inset Flex Code
14001 \begin_layout Plain Layout
14010 \begin_inset space \thinspace{}
14014 \begin_inset Flex Code
14017 \begin_layout Plain Layout
14023 ] If set to true, and if
14024 \begin_inset Flex Code
14027 \begin_layout Plain Layout
14034 \begin_inset Flex Code
14037 \begin_layout Plain Layout
14043 ) paragraphs are being indented, then the indentation of such a paragraph
14044 following one of this type will be suppressed.
14045 (So this will not affect the display of non-default paragraphs.)
14048 \begin_layout Description
14049 \begin_inset Flex Code
14052 \begin_layout Plain Layout
14059 \begin_inset Flex Code
14062 \begin_layout Plain Layout
14068 ] Name of a style that has replaced this style.
14069 This is used to rename a style, while keeping backward compatibility.
14070 \change_inserted -712698321 1432986397
14074 \begin_layout Description
14076 \change_inserted -712698321 1432986583
14077 \begin_inset Flex Code
14080 \begin_layout Plain Layout
14082 \change_inserted -712698321 1432986403
14089 \begin_inset Flex Code
14092 \begin_layout Plain Layout
14094 \change_inserted -712698321 1432986397
14101 \begin_inset space \thinspace{}
14105 \begin_inset Flex Code
14108 \begin_layout Plain Layout
14110 \change_inserted -712698321 1432986397
14116 ] Determines whether consecutive pragraphs of the same type are treated
14117 as belonging together.
14118 This has the effect that the
14119 \begin_inset Flex Code
14122 \begin_layout Plain Layout
14124 \change_inserted -712698321 1432986460
14130 is only printed once before such a group.
14131 By default, this is true for
14132 \begin_inset Flex Code
14135 \begin_layout Plain Layout
14137 \change_inserted -712698321 1432986491
14144 \begin_inset Flex Code
14147 \begin_layout Plain Layout
14149 \change_inserted -712698321 1432986583
14158 \begin_inset Flex Code
14161 \begin_layout Plain Layout
14163 \change_inserted -712698321 1432986572
14171 and false for all other types.
14176 \begin_layout Description
14177 \begin_inset Flex Code
14180 \begin_layout Plain Layout
14187 \begin_inset Flex Code
14190 \begin_layout Plain Layout
14199 \begin_inset space \thinspace{}
14203 \begin_inset Flex Code
14206 \begin_layout Plain Layout
14212 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14214 but only by a line break; together with
14215 \begin_inset Flex Code
14218 \begin_layout Plain Layout
14224 , this allows to emulate a plain text editor (like the ERT inset).
14227 \begin_layout Description
14228 \begin_inset Flex Code
14231 \begin_layout Plain Layout
14238 \begin_inset Flex Code
14241 \begin_layout Plain Layout
14247 ] The indent of the very first line of a paragraph.
14249 \begin_inset Newline newline
14253 \begin_inset Flex Code
14256 \begin_layout Plain Layout
14262 will be fixed for a certain style.
14263 The exception is the default style, since the indentation for these paragraphs
14264 can be prohibited with
14265 \begin_inset Flex Code
14268 \begin_layout Plain Layout
14276 \begin_inset Flex Code
14279 \begin_layout Plain Layout
14285 style paragraphs inside environments use the
14286 \begin_inset Flex Code
14289 \begin_layout Plain Layout
14295 of the environment, not their native one.
14297 \begin_inset Flex Code
14300 \begin_layout Plain Layout
14306 paragraphs inside an enumeration are not indented.
14309 \begin_layout Description
14310 \begin_inset Flex Code
14313 \begin_layout Plain Layout
14320 \begin_inset Flex Code
14323 \begin_layout Plain Layout
14329 ] The vertical space between two paragraphs of this style.
14332 \begin_layout Description
14333 \begin_inset Flex Code
14336 \begin_layout Plain Layout
14343 \begin_inset Flex Code
14346 \begin_layout Plain Layout
14353 allows the user to choose either
14354 \begin_inset Quotes eld
14358 \begin_inset Quotes erd
14362 \begin_inset Quotes eld
14366 \begin_inset Quotes erd
14369 to separate paragraphs.
14371 \begin_inset Quotes eld
14375 \begin_inset Quotes erd
14379 \begin_inset Flex Code
14382 \begin_layout Plain Layout
14390 \begin_inset Quotes eld
14394 \begin_inset Quotes erd
14398 \begin_inset Flex Code
14401 \begin_layout Plain Layout
14407 is ignored and all paragraphs are separated by the
14408 \begin_inset Flex Code
14411 \begin_layout Plain Layout
14418 The vertical space is calculated with
14419 \begin_inset Flex Code
14422 \begin_layout Plain Layout
14424 \begin_inset space ~
14433 \begin_inset Flex Code
14436 \begin_layout Plain Layout
14442 is the height of a row with the normal font.
14443 This way, the look stays the same with different screen fonts.
14446 \begin_layout Description
14447 \begin_inset Flex Code
14450 \begin_layout Plain Layout
14457 \begin_inset Flex Code
14460 \begin_layout Plain Layout
14469 \begin_inset space \thinspace{}
14473 \begin_inset Flex Code
14476 \begin_layout Plain Layout
14482 ] Whether the contents of this paragraph should be output in raw form, meaning
14483 without special translations that \SpecialChar LaTeX
14485 \change_inserted -712698321 1429534178
14489 \begin_layout Description
14491 \change_inserted -712698321 1429534242
14494 \begin_inset Flex Code
14497 \begin_layout Plain Layout
14499 \change_inserted -712698321 1429534178
14508 \begin_inset Flex Code
14511 \begin_layout Plain Layout
14513 \change_inserted -712698321 1429534178
14514 string of characters
14523 Defines individual characters that should be output in raw form, meaning
14524 without special translations that \SpecialChar LaTeX
14530 \begin_layout Description
14531 \begin_inset Flex Code
14534 \begin_layout Plain Layout
14540 Information to be included in the \SpecialChar LaTeX
14541 preamble when this style is used.
14542 Used to define macros, load packages, etc., required by this particular
14545 \begin_inset Quotes eld
14549 \begin_inset Flex Code
14552 \begin_layout Plain Layout
14559 \begin_inset Quotes erd
14565 \begin_layout Description
14566 \begin_inset Flex Code
14569 \begin_layout Plain Layout
14576 \begin_inset Flex Code
14579 \begin_layout Plain Layout
14585 ] The prefix to use when creating labels referring to paragraphs of this
14587 This allows the use of formatted references.
14590 \begin_layout Description
14591 \begin_inset Flex Code
14594 \begin_layout Plain Layout
14601 \begin_inset Flex Code
14604 \begin_layout Plain Layout
14610 ] Whether the style requires the feature
14611 \begin_inset Flex Code
14614 \begin_layout Plain Layout
14621 \change_deleted -712698321 1438601713
14626 \change_deleted -712698321 1438601638
14627 See the description of
14628 \begin_inset Flex Code
14631 \begin_layout Plain Layout
14638 \begin_inset CommandInset ref
14640 reference "subsec:General-text-class"
14644 ) for information on `features'.
14645 \change_inserted -712698321 1438601711
14647 \begin_inset CommandInset ref
14649 reference "chap:List-of-functions"
14653 for the list of features).
14654 If you require a package with specific options, you can additionally use
14656 \begin_inset Flex Code
14659 \begin_layout Plain Layout
14661 \change_inserted -712698321 1438601638
14667 as a general text class parameter (see sec.
14668 \begin_inset space ~
14672 \begin_inset CommandInset ref
14674 reference "subsec:General-text-class"
14683 \begin_layout Description
14684 \begin_inset Flex Code
14687 \begin_layout Plain Layout
14694 \begin_inset Flex Code
14697 \begin_layout Plain Layout
14706 \begin_inset Flex Code
14709 \begin_layout Plain Layout
14715 ] Resets the \SpecialChar LaTeX
14716 arguments of this style (as defined via the
14717 \begin_inset Flex Code
14720 \begin_layout Plain Layout
14727 This is useful if you have copied a style via
14728 \begin_inset Flex Code
14731 \begin_layout Plain Layout
14737 , but you do not want to inherit its (required and optional) arguments.
14740 \begin_layout Description
14741 \begin_inset Flex Code
14744 \begin_layout Plain Layout
14751 \begin_inset Flex Code
14754 \begin_layout Plain Layout
14760 ] A string that is put at the end of the layout content.
14761 A line break in the output can be indicated by
14762 \begin_inset Flex Code
14765 \begin_layout Plain Layout
14774 \begin_layout Description
14775 \begin_inset Flex Code
14778 \begin_layout Plain Layout
14785 \begin_inset Flex Code
14788 \begin_layout Plain Layout
14795 \begin_inset Flex Code
14798 \begin_layout Plain Layout
14807 \begin_layout Description
14808 \begin_inset Flex Code
14811 \begin_layout Plain Layout
14818 \begin_inset Flex Code
14821 \begin_layout Plain Layout
14830 \begin_inset Flex Code
14833 \begin_layout Plain Layout
14840 \begin_inset Flex Code
14843 \begin_layout Plain Layout
14850 \begin_inset Flex Code
14853 \begin_layout Plain Layout
14855 \begin_inset space ~
14863 ] This defines what the default spacing should be in the style.
14865 \begin_inset Flex Code
14868 \begin_layout Plain Layout
14875 \begin_inset Flex Code
14878 \begin_layout Plain Layout
14885 \begin_inset Flex Code
14888 \begin_layout Plain Layout
14894 correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14895 If you specify the argument
14896 \begin_inset Flex Code
14899 \begin_layout Plain Layout
14905 , then you must also provide a value argument which will be the actual multiplie
14907 Note that, contrary to other parameters,
14908 \begin_inset Flex Code
14911 \begin_layout Plain Layout
14917 implies the generation of specific \SpecialChar LaTeX
14918 code, using the \SpecialChar LaTeX
14922 \begin_inset Flex Code
14925 \begin_layout Plain Layout
14934 \begin_layout Description
14935 \begin_inset Flex Code
14938 \begin_layout Plain Layout
14945 \begin_inset Flex Code
14948 \begin_layout Plain Layout
14955 \begin_inset space \thinspace{}
14959 \begin_inset Flex Code
14962 \begin_layout Plain Layout
14970 ] Allow spell-checking paragraphs of this style.
14974 \begin_layout Description
14975 \begin_inset Flex Code
14978 \begin_layout Plain Layout
14984 The font used for the text body .
14986 \begin_inset CommandInset ref
14988 reference "subsec:Font-description"
14995 \begin_layout Description
14996 \begin_inset Flex Code
14999 \begin_layout Plain Layout
15008 \begin_inset Flex Code
15011 \begin_layout Plain Layout
15021 The level of the style in the table of contents.
15022 This is used for automatic numbering of section headings.
15023 \change_inserted -712698321 1401363541
15027 \begin_layout Description
15029 \change_inserted -712698321 1401363906
15030 \begin_inset Flex Code
15033 \begin_layout Plain Layout
15035 \change_inserted -712698321 1401363547
15044 \begin_inset Flex Code
15047 \begin_layout Plain Layout
15049 \change_inserted -712698321 1401363664
15062 \begin_inset Flex Code
15065 \begin_layout Plain Layout
15067 \change_inserted -712698321 1401363669
15076 \begin_inset Flex Code
15079 \begin_layout Plain Layout
15081 \change_inserted -712698321 1401363675
15089 ] This tag determines whether the first line indentation of this paragraph
15090 can be toggled via the Paragraph settings dialog.
15094 \begin_inset Flex Code
15097 \begin_layout Plain Layout
15099 \change_inserted -712698321 1401363761
15109 is set, indentation can be toggled if the document settings use
15110 \begin_inset Quotes eld
15114 \begin_inset Quotes erd
15117 paragraph style, with
15118 \begin_inset Flex Code
15121 \begin_layout Plain Layout
15123 \change_inserted -712698321 1401363844
15129 , indentation can always be toggled, notwithstanding the document settings,
15131 \begin_inset Flex Code
15134 \begin_layout Plain Layout
15136 \change_inserted -712698321 1401363901
15142 , indentation can never be toggled.
15147 \begin_layout Description
15148 \begin_inset Flex Code
15151 \begin_layout Plain Layout
15158 \begin_inset Flex Code
15161 \begin_layout Plain Layout
15167 ] The vertical space with which the very first of a chain of paragraphs
15168 with this style is separated from the previous paragraph.
15169 If the previous paragraph has another style, the separations are not simply
15170 added, but the maximum is taken.
15173 \begin_layout Subsection
15174 \begin_inset CommandInset label
15180 Internationalization of Paragraph Styles
15183 \begin_layout Standard
15185 has long supported internationalization of layout information, but, until
15186 version 2.0, this applied only to the user interface and not to, say, PDF
15188 Thus, French authors were forced to resort to ugly hacks if they wanted
15193 1' instead of `Theorem 1'.
15194 Thanks to Georg Baum, that is no longer the case.
15197 \begin_layout Standard
15199 \begin_inset Flex Code
15202 \begin_layout Plain Layout
15208 defines text that is to appear in the typeset document, it may use
15209 \begin_inset Flex Code
15212 \begin_layout Plain Layout
15219 \begin_inset Flex Code
15222 \begin_layout Plain Layout
15228 to support non-English and even multi-language documents correctly.
15229 The following excerpt (from the
15230 \begin_inset Flex Code
15233 \begin_layout Plain Layout
15239 file) shows how this works:
15242 \begin_layout LyX-Code
15244 \begin_inset Separator parbreak
15251 \begin_layout LyX-Code
15254 theoremstyle{remark}
15257 \begin_layout LyX-Code
15260 newtheorem{claim}[thm]{
15267 \begin_layout LyX-Code
15271 \begin_layout LyX-Code
15275 \begin_layout LyX-Code
15280 claimname}{_(Claim)}
15283 \begin_layout LyX-Code
15287 \begin_layout LyX-Code
15291 \begin_layout LyX-Code
15300 claimname}{_(Claim)}}
15303 \begin_layout LyX-Code
15308 \begin_layout Standard
15309 In principle, any legal \SpecialChar LaTeX
15311 \begin_inset Flex Code
15314 \begin_layout Plain Layout
15321 \begin_inset Flex Code
15324 \begin_layout Plain Layout
15330 tags, but in practice they will typically look as they do here.
15331 The key to correct translation of the typeset text is the definition of
15332 the \SpecialChar LaTeX
15334 \begin_inset Flex Code
15337 \begin_layout Plain Layout
15346 \begin_inset Flex Code
15349 \begin_layout Plain Layout
15361 \begin_layout Standard
15363 \begin_inset Flex Code
15366 \begin_layout Plain Layout
15372 tag provides for internationalization based upon the overall language of
15374 The contents of the tag will be included in the preamble, just as with
15376 \begin_inset Flex Code
15379 \begin_layout Plain Layout
15386 What makes it special is the use of the
15387 \begin_inset Quotes eld
15391 \begin_inset Quotes erd
15395 \begin_inset Flex Code
15398 \begin_layout Plain Layout
15404 , which will be replaced, when \SpecialChar LyX
15405 produces \SpecialChar LaTeX
15406 output, with the translation of
15407 its argument into the document language.
15410 \begin_layout Standard
15412 \begin_inset Flex Code
15415 \begin_layout Plain Layout
15421 tag is more complex, since it is meant to provide support for multi-language
15422 documents and so offers an interface to the
15423 \begin_inset Flex Code
15426 \begin_layout Plain Layout
15433 Its contents will be added to the preamble once for each language that
15434 appears in the document.
15435 In this case, the argument to
15436 \begin_inset Flex Code
15439 \begin_layout Plain Layout
15445 will be replaced with its translation into the language in question; the
15447 \begin_inset Flex Code
15450 \begin_layout Plain Layout
15456 is replaced by the language name (as used by the babel package).
15459 \begin_layout Standard
15460 A German document that also included a French section would thus have the
15461 following in the preamble:
15464 \begin_layout LyX-Code
15473 claimname}{Affirmation}}
15474 \begin_inset Newline newline
15485 claimname}{Behauptung}}
15486 \begin_inset Newline newline
15493 claimname}{Behauptung}
15496 \begin_layout Standard
15499 \begin_inset Flex Code
15502 \begin_layout Plain Layout
15508 will then conspire to produce the correct text in the output.
15511 \begin_layout Standard
15512 One important point to note here is that the translations are provided by
15514 itself, through the file
15515 \begin_inset Flex Code
15518 \begin_layout Plain Layout
15525 This means, in effect, that
15526 \begin_inset Flex Code
15529 \begin_layout Plain Layout
15536 \begin_inset Flex Code
15539 \begin_layout Plain Layout
15545 are really only of use in layout files that are provided with \SpecialChar LyX
15547 entered in user-created layout files will not be seen by \SpecialChar LyX
15548 's internationalizatio
15549 n routines unless the
15550 \begin_inset Flex Code
15553 \begin_layout Plain Layout
15559 file is modified accordingly.
15560 That said, however, any layout created with the intention that it will
15561 be included with \SpecialChar LyX
15562 should use these tags where appropriate.
15563 Please note that the paragraph style translations provided by \SpecialChar LyX
15565 change with a minor update (e.
15566 \begin_inset space \thinspace{}
15570 \begin_inset space \space{}
15573 from version 2.1.x to 2.1.y).
15574 It is however quite likely that a major update (e.
15575 \begin_inset space \thinspace{}
15579 \begin_inset space \space{}
15582 from 2.0.x to 2.1.y) will introduce new translations or corrections.
15585 \begin_layout Subsection
15587 \begin_inset CommandInset label
15589 name "subsec:Floats"
15596 \begin_layout Standard
15597 It is necessary to define the floats (
15598 \begin_inset Flex MenuItem
15601 \begin_layout Plain Layout
15608 \begin_inset Flex MenuItem
15611 \begin_layout Plain Layout
15617 , \SpecialChar ldots
15618 ) in the text class itself.
15619 Standard floats are included in the file
15620 \begin_inset Flex Code
15623 \begin_layout Plain Layout
15629 , so you may have to do no more than add
15632 \begin_layout LyX-Code
15633 Input stdfloats.inc
15636 \begin_layout Standard
15637 to your layout file.
15638 If you want to implement a text class that proposes some other float types
15639 (like the AGU class bundled with \SpecialChar LyX
15640 ), the information below will hopefully
15642 \change_inserted -712698321 1432283506
15646 \begin_layout Description
15648 \change_inserted -712698321 1432313622
15649 \begin_inset Flex Code
15652 \begin_layout Plain Layout
15654 \change_inserted -712698321 1432283514
15661 \begin_inset Flex Code
15664 \begin_layout Plain Layout
15666 \change_inserted -712698321 1432283507
15672 =!htbpH] Allowed placement options for this float type.
15673 The value is a string of placement characters.
15674 Possible characters include:
15679 \begin_inset Quotes eld
15683 \begin_inset Quotes erd
15691 \begin_inset Quotes eld
15695 \begin_inset Quotes erd
15703 \begin_inset Quotes eld
15707 \begin_inset Quotes erd
15715 \begin_inset Quotes eld
15719 \begin_inset Quotes erd
15727 \begin_inset Quotes eld
15731 \begin_inset Quotes erd
15739 \begin_inset Quotes eld
15743 \begin_inset Quotes erd
15747 The order of the characters in the string does not matter.
15748 If no placement options are allowed, use the string
15755 \begin_layout Description
15757 \change_inserted -712698321 1432313755
15758 \begin_inset Flex Code
15761 \begin_layout Plain Layout
15763 \change_inserted -712698321 1432313630
15770 \begin_inset Flex Code
15773 \begin_layout Plain Layout
15775 \change_inserted -712698321 1432313646
15784 \begin_inset space \thinspace{}
15790 \begin_inset Flex Code
15793 \begin_layout Plain Layout
15795 \change_inserted -712698321 1432313646
15805 ] Defines whether the float allows to be rotated via the rotfloat package
15808 \begin_inset Flex Code
15811 \begin_layout Plain Layout
15813 \change_inserted -712698321 1432313721
15819 if the float does not support this feature.
15822 \begin_layout Description
15824 \change_inserted -712698321 1432313802
15825 \begin_inset Flex Code
15828 \begin_layout Plain Layout
15830 \change_inserted -712698321 1432313759
15837 \begin_inset Flex Code
15840 \begin_layout Plain Layout
15842 \change_inserted -712698321 1432313755
15851 \begin_inset space \thinspace{}
15857 \begin_inset Flex Code
15860 \begin_layout Plain Layout
15862 \change_inserted -712698321 1432313755
15872 ] Defines whether the float has a starred variant that spans columns in
15873 a two column paragraph.
15875 \begin_inset Flex Code
15878 \begin_layout Plain Layout
15880 \change_inserted -712698321 1432313755
15886 if the float does not support this feature.
15891 \begin_layout Description
15892 \begin_inset Flex Code
15895 \begin_layout Plain Layout
15902 \begin_inset Flex Code
15905 \begin_layout Plain Layout
15912 \begin_inset Quotes erd
15916 \begin_inset Quotes erd
15919 ] The file name extension of an auxiliary file for the list of figures (or
15922 writes the captions to this file.
15925 \begin_layout Description
15926 \begin_inset Flex Code
15929 \begin_layout Plain Layout
15936 \begin_inset Flex Code
15939 \begin_layout Plain Layout
15946 \begin_inset Quotes erd
15950 \begin_inset Quotes erd
15953 ] The string that will be used in the menus and also for the caption.
15954 This is translated to the current language if babel is used.
15957 \begin_layout Description
15958 \begin_inset Flex Code
15961 \begin_layout Plain Layout
15967 These tags control the XHTML output.
15969 \begin_inset CommandInset ref
15971 reference "sec:Tags-for-XHTML"
15978 \begin_layout Description
15979 \begin_inset Flex Code
15982 \begin_layout Plain Layout
15991 \begin_inset Flex Code
15994 \begin_layout Plain Layout
16003 \begin_inset space \thinspace{}
16007 \begin_inset Flex Code
16010 \begin_layout Plain Layout
16016 ] Indicates whether the float is already defined in the document class or
16017 if instead the \SpecialChar LaTeX
16019 \begin_inset Flex Code
16022 \begin_layout Plain Layout
16028 needs to be loaded to define it on-the-fly.
16030 \begin_inset Flex Code
16033 \begin_layout Plain Layout
16040 \begin_inset Flex Code
16043 \begin_layout Plain Layout
16050 It should be set to
16051 \begin_inset Flex Code
16054 \begin_layout Plain Layout
16060 if the float is already defined by the \SpecialChar LaTeX
16064 \begin_layout Description
16065 \begin_inset Flex Code
16068 \begin_layout Plain Layout
16075 \begin_inset Flex Code
16078 \begin_layout Plain Layout
16085 \begin_inset Quotes erd
16089 \begin_inset Quotes erd
16092 ] The command used to generate a list of floats of this type; the leading
16101 \begin_inset Flex Code
16104 \begin_layout Plain Layout
16110 is false, since there is no standard way to generate this command.
16112 \begin_inset Flex Code
16115 \begin_layout Plain Layout
16121 is true, since in that case there is a standard way to define the command.
16124 \begin_layout Description
16125 \begin_inset Flex Code
16128 \begin_layout Plain Layout
16135 \begin_inset Flex Code
16138 \begin_layout Plain Layout
16145 \begin_inset Quotes erd
16149 \begin_inset Quotes erd
16152 ] A title for a list of floats of this kind (list of figures, tables, or
16154 It is used for the screen label within \SpecialChar LyX
16155 , it is used by \SpecialChar LaTeX
16157 it is used as the title in the XHTML output.
16158 It will be translated to the document language.
16161 \begin_layout Description
16162 \begin_inset Flex Code
16165 \begin_layout Plain Layout
16172 \begin_inset Flex Code
16175 \begin_layout Plain Layout
16182 \begin_inset Quotes erd
16186 \begin_inset Quotes erd
16189 ] This (optional) argument determines whether floats of this class will
16190 be numbered within some sectional unit of the document.
16192 \begin_inset Flex Code
16195 \begin_layout Plain Layout
16202 \begin_inset Quotes eld
16206 \begin_inset Flex Code
16209 \begin_layout Plain Layout
16216 \begin_inset Quotes erd
16219 , the floats will be numbered within chapters.
16223 \begin_layout Description
16224 \begin_inset Flex Code
16227 \begin_layout Plain Layout
16234 \begin_inset Flex Code
16237 \begin_layout Plain Layout
16244 \begin_inset Quotes erd
16248 \begin_inset Quotes erd
16251 ] The default placement for the given class of floats.
16252 The string should be as in standard \SpecialChar LaTeX
16254 \begin_inset Flex Code
16257 \begin_layout Plain Layout
16264 \begin_inset Flex Code
16267 \begin_layout Plain Layout
16274 \begin_inset Flex Code
16277 \begin_layout Plain Layout
16284 \begin_inset Flex Code
16287 \begin_layout Plain Layout
16293 for top, bottom, page, and here, respectively.
16297 \begin_layout Plain Layout
16298 Note that the order of these letters in the string is irrelevant, like in
16305 On top of that there is a new type,
16306 \begin_inset Flex Code
16309 \begin_layout Plain Layout
16315 , which does not really correspond to a float, since it means: put it
16316 \begin_inset Quotes eld
16320 \begin_inset Quotes erd
16324 Note however that the
16325 \begin_inset Flex Code
16328 \begin_layout Plain Layout
16334 specifier is special and, because of implementation details, cannot be
16335 used in non-built in float types.
16336 If you do not understand what this means, just use
16337 \begin_inset Quotes eld
16341 \begin_inset Flex Code
16344 \begin_layout Plain Layout
16351 \begin_inset Quotes erd
16357 \begin_layout Description
16358 \begin_inset Flex Code
16361 \begin_layout Plain Layout
16368 \begin_inset Flex Code
16371 \begin_layout Plain Layout
16377 ] The prefix to use when creating labels referring to floats of this type.
16378 This allows the use of formatted references.
16379 Note that you can remove any
16380 \begin_inset Flex Code
16383 \begin_layout Plain Layout
16389 set by a copied style by using the special value
16390 \begin_inset Quotes eld
16394 \begin_inset Quotes erd
16397 , which must be all caps.
16400 \begin_layout Description
16401 \begin_inset Flex Code
16404 \begin_layout Plain Layout
16411 \begin_inset Flex Code
16414 \begin_layout Plain Layout
16421 \begin_inset Quotes erd
16425 \begin_inset Quotes erd
16428 ] The style used when defining the float using
16429 \begin_inset Flex Code
16432 \begin_layout Plain Layout
16443 \begin_layout Description
16444 \begin_inset Flex Code
16447 \begin_layout Plain Layout
16454 \begin_inset Flex Code
16457 \begin_layout Plain Layout
16464 \begin_inset Quotes erd
16468 \begin_inset Quotes erd
16472 \begin_inset Quotes eld
16476 \begin_inset Quotes erd
16479 of the new class of floats, like program or algorithm.
16480 After the appropriate
16481 \begin_inset Flex Code
16484 \begin_layout Plain Layout
16493 \begin_inset Flex Code
16496 \begin_layout Plain Layout
16505 \begin_inset Flex Code
16508 \begin_layout Plain Layout
16519 \begin_layout Description
16520 \begin_inset Flex Code
16523 \begin_layout Plain Layout
16530 \begin_inset Flex Code
16533 \begin_layout Plain Layout
16540 \begin_inset space \thinspace{}
16544 \begin_inset Flex Code
16547 \begin_layout Plain Layout
16555 ] Specifies whether this float is defined using the \SpecialChar LaTeX
16557 \begin_inset Flex Code
16560 \begin_layout Plain Layout
16566 , either by the class file, another package or on-the-fly by \SpecialChar LyX
16570 \begin_layout Standard
16571 Note that defining a float with type
16572 \begin_inset Flex Code
16575 \begin_layout Plain Layout
16583 automatically defines the corresponding counter with name
16584 \begin_inset Flex Code
16587 \begin_layout Plain Layout
16598 \begin_layout Subsection
16599 Flex insets and InsetLayout
16600 \begin_inset CommandInset label
16602 name "subsec:Flex-insets-and"
16609 \begin_layout Standard
16610 Flex insets come in three different kinds:
16613 \begin_layout Itemize
16615 \begin_inset Flex Code
16618 \begin_layout Plain Layout
16624 ): These define semantic markup corresponding to such \SpecialChar LaTeX
16626 \begin_inset Flex Code
16629 \begin_layout Plain Layout
16638 \begin_inset Flex Code
16641 \begin_layout Plain Layout
16652 \begin_layout Itemize
16654 \begin_inset Flex Code
16657 \begin_layout Plain Layout
16663 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
16665 footnote, and the like.
16666 An obvious example is an endnote inset, which is defined in the
16667 \begin_inset Flex Code
16670 \begin_layout Plain Layout
16679 \begin_layout Itemize
16681 \begin_inset Flex Code
16684 \begin_layout Plain Layout
16690 ): For use with DocBook classes.
16693 \begin_layout Standard
16694 Flex insets are defined using the
16695 \begin_inset Flex Code
16698 \begin_layout Plain Layout
16704 tag, which shall be explained in a moment.
16707 \begin_layout Standard
16709 \begin_inset Flex Code
16712 \begin_layout Plain Layout
16718 tag also serves another function: It can be used to customize the general
16719 layout of many different types of insets.
16721 \begin_inset Flex Code
16724 \begin_layout Plain Layout
16730 can be used to customize the layout parameters for footnotes, marginal
16731 notes, note insets, \SpecialChar TeX
16732 code (ERT) insets, branches, listings, indexes, boxes,
16733 tables, algorithms, URLs, and captions, as well as to define Flex insets.
16736 \begin_layout Standard
16738 \begin_inset Flex Code
16741 \begin_layout Plain Layout
16747 definition must begin with a line of the form:
16750 \begin_layout LyX-Code
16754 \begin_layout Standard
16756 \begin_inset Flex Code
16759 \begin_layout Plain Layout
16765 indicates the inset whose layout is being defined, and here there are four
16769 \begin_layout Enumerate
16770 The layout for a pre-existing inset is being modified.
16771 In this case, can be
16772 \begin_inset Flex Code
16775 \begin_layout Plain Layout
16781 any one of the following:
16782 \begin_inset Flex Code
16785 \begin_layout Plain Layout
16792 \begin_inset Flex Code
16795 \begin_layout Plain Layout
16802 \begin_inset Flex Code
16805 \begin_layout Plain Layout
16812 \begin_inset Flex Code
16815 \begin_layout Plain Layout
16822 \begin_inset Flex Code
16825 \begin_layout Plain Layout
16832 \begin_inset Flex Code
16835 \begin_layout Plain Layout
16842 \begin_inset Flex Code
16845 \begin_layout Plain Layout
16852 \begin_inset Flex Code
16855 \begin_layout Plain Layout
16862 \begin_inset Flex Code
16865 \begin_layout Plain Layout
16872 \begin_inset Flex Code
16875 \begin_layout Plain Layout
16882 \begin_inset Flex Code
16885 \begin_layout Plain Layout
16892 \begin_inset Flex Code
16895 \begin_layout Plain Layout
16902 \begin_inset Flex Code
16905 \begin_layout Plain Layout
16912 \begin_inset Flex Code
16915 \begin_layout Plain Layout
16922 \begin_inset Flex Code
16925 \begin_layout Plain Layout
16932 \begin_inset Flex Code
16935 \begin_layout Plain Layout
16942 \begin_inset Flex Code
16945 \begin_layout Plain Layout
16952 \begin_inset Flex Code
16955 \begin_layout Plain Layout
16962 \begin_inset Flex Code
16965 \begin_layout Plain Layout
16972 \begin_inset Flex Code
16975 \begin_layout Plain Layout
16984 \begin_layout Enumerate
16985 The layout for a Flex inset is being defined.
16987 \begin_inset Flex Code
16990 \begin_layout Plain Layout
16996 must be of the form
16997 \begin_inset Quotes eld
17001 \begin_inset Flex Code
17004 \begin_layout Plain Layout
17011 \begin_inset Quotes erd
17015 \begin_inset Flex Code
17018 \begin_layout Plain Layout
17024 may be be any valid identifier not used by a pre-existing Flex inset.
17025 The identifier may include spaces, but in that case the whole thing must
17026 be wrapped in quotes.
17027 Note that the definition of a flex inset
17032 \begin_inset Flex Code
17035 \begin_layout Plain Layout
17041 entry, declaring which type of inset it defines.
17044 \begin_layout Enumerate
17045 The layout for user specific branch is being defined.
17047 \begin_inset Flex Code
17050 \begin_layout Plain Layout
17056 must be of the form
17057 \begin_inset Quotes eld
17061 \begin_inset Flex Code
17064 \begin_layout Plain Layout
17071 \begin_inset Quotes erd
17075 \begin_inset Flex Code
17078 \begin_layout Plain Layout
17084 may be be any valid identifier of branch defined in user's document.
17085 The identifier may include spaces, but in that case the whole thing must
17086 be wrapped in quotes.
17087 The main purpose of this feature is to allow \SpecialChar LaTeX
17088 wrapping around specific
17089 branches as user needs.
17092 \begin_layout Enumerate
17093 The layout of a user (or class) specific caption is being defined.
17095 \begin_inset Flex Code
17098 \begin_layout Plain Layout
17104 must be of the form
17105 \begin_inset Quotes eld
17109 \begin_inset Flex Code
17112 \begin_layout Plain Layout
17119 \begin_inset Quotes erd
17123 \begin_inset Flex Code
17126 \begin_layout Plain Layout
17132 specifies the name of the caption as it appears in the menu.
17133 Have a look at the standard caption (
17134 \begin_inset Flex Code
17137 \begin_layout Plain Layout
17143 ), the specific captions of the KOMA-Script classes (
17144 \begin_inset Flex Code
17147 \begin_layout Plain Layout
17154 \begin_inset Flex Code
17157 \begin_layout Plain Layout
17166 \begin_inset space ~
17172 \begin_inset Flex Code
17175 \begin_layout Plain Layout
17181 ) for applications.
17184 \begin_layout Standard
17186 \begin_inset Flex Code
17189 \begin_layout Plain Layout
17195 definition can contain the following entries:
17198 \begin_layout Description
17199 \begin_inset Flex Code
17202 \begin_layout Plain Layout
17209 \begin_inset Flex Code
17212 \begin_layout Plain Layout
17218 ] Defines argument number of a command\SpecialChar breakableslash
17219 environment associated with the current
17221 The definition must end with
17222 \begin_inset Flex Code
17225 \begin_layout Plain Layout
17233 \begin_inset CommandInset ref
17235 reference "subsec:Paragraph-Styles"
17242 \begin_layout Description
17243 \begin_inset Flex Code
17246 \begin_layout Plain Layout
17252 Preamble for changing language commands; see
17253 \begin_inset CommandInset ref
17255 reference "subsec:I18n"
17262 \begin_layout Description
17263 \begin_inset Flex Code
17266 \begin_layout Plain Layout
17273 \begin_inset Flex Code
17276 \begin_layout Plain Layout
17282 ] The color for the inset's background.
17284 \begin_inset CommandInset ref
17286 reference "chap:Names-of-colors"
17290 for a list of the available color names.
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{}
17320 \begin_inset Flex Code
17323 \begin_layout Plain Layout
17329 ] Whether to use the content of the inset as the label, when the inset is
17334 \begin_layout Description
17335 \begin_inset Flex Code
17338 \begin_layout Plain Layout
17345 \begin_inset Flex Code
17348 \begin_layout Plain Layout
17354 ] As with paragraph styles, see
17355 \begin_inset CommandInset ref
17357 reference "subsec:Paragraph-Styles"
17362 Note that you need to specify the complete type, e.
17363 \begin_inset space \thinspace{}
17367 \begin_inset space ~
17371 \begin_inset Flex Code
17374 \begin_layout Plain Layout
17375 CopyStyle Flex:<name>
17383 \begin_layout Description
17384 \begin_inset Flex Code
17387 \begin_layout Plain Layout
17394 \begin_inset Flex Code
17397 \begin_layout Plain Layout
17406 \begin_inset space \thinspace{}
17410 \begin_inset Flex Code
17413 \begin_layout Plain Layout
17419 ] Indicates whether the user may employ the Paragraph Settings dialog to
17420 customize the paragraph.
17423 \begin_layout Description
17424 \begin_inset Flex Code
17427 \begin_layout Plain Layout
17434 \begin_inset Flex Code
17437 \begin_layout Plain Layout
17444 \begin_inset Flex Code
17447 \begin_layout Plain Layout
17454 \begin_inset Flex Code
17457 \begin_layout Plain Layout
17463 , describing the rendering style used for the inset's frame and buttons.
17464 Footnotes generally use
17465 \begin_inset Flex Code
17468 \begin_layout Plain Layout
17474 , ERT insets generally
17475 \begin_inset Flex Code
17478 \begin_layout Plain Layout
17484 , and character styles
17485 \begin_inset Flex Code
17488 \begin_layout Plain Layout
17497 \begin_layout Description
17498 \begin_inset Flex Code
17501 \begin_layout Plain Layout
17508 \begin_inset Flex Code
17511 \begin_layout Plain Layout
17520 \begin_inset space \thinspace{}
17526 \begin_inset Flex Code
17529 \begin_layout Plain Layout
17538 \begin_inset Flex Code
17541 \begin_layout Plain Layout
17548 \begin_inset Flex Code
17551 \begin_layout Plain Layout
17558 Indicates whether the environment will stand on its own in the output or
17559 will appear inline with the surrounding text.
17560 If set to false, it is supposed that the \SpecialChar LaTeX
17561 environment ignores white space
17562 (including one newline character) after the
17563 \begin_inset Flex Code
17566 \begin_layout Plain Layout
17579 \begin_inset Flex Code
17582 \begin_layout Plain Layout
17598 \begin_layout Description
17599 \begin_inset Flex Code
17602 \begin_layout Plain Layout
17608 Required at the end of the
17609 \begin_inset Flex Code
17612 \begin_layout Plain Layout
17621 \begin_layout Description
17622 \begin_inset Flex Code
17625 \begin_layout Plain Layout
17631 The font used for both the text body
17637 \begin_inset CommandInset ref
17639 reference "subsec:Font-description"
17644 Note that defining this font automatically defines the
17645 \begin_inset Flex Code
17648 \begin_layout Plain Layout
17654 to the same value, so define this first and define
17655 \begin_inset Flex Code
17658 \begin_layout Plain Layout
17664 later if you want them to be different.
17665 \change_inserted -195340706 1421002157
17669 \begin_layout Description
17671 \change_inserted -195340706 1421002157
17672 \begin_inset Flex Code
17675 \begin_layout Plain Layout
17677 \change_inserted -195340706 1421002157
17678 FixedWidthPreambleEncoding
17684 \begin_inset Flex Code
17687 \begin_layout Plain Layout
17689 \change_inserted -195340706 1421002157
17698 \begin_inset space \thinspace{}
17702 \begin_inset Flex Code
17705 \begin_layout Plain Layout
17707 \change_inserted -195340706 1421002157
17713 ] Force a fixed width encoding for the translated contents of
17714 \begin_inset Flex Code
17717 \begin_layout Plain Layout
17719 \change_inserted -195340706 1421002157
17726 \begin_inset Flex Code
17729 \begin_layout Plain Layout
17731 \change_inserted -195340706 1421002157
17737 code generated by this layout.
17738 This is needed for special packages like the listings package that do not
17739 work with variable width encodings such as utf8.
17741 This setting is ignored if fully unicode aware \SpecialChar LaTeX
17742 backends such as Xe\SpecialChar LaTeX
17749 \begin_layout Description
17750 \begin_inset Flex Code
17753 \begin_layout Plain Layout
17754 ForceLocalFontSwitch
17760 \begin_inset Flex Code
17763 \begin_layout Plain Layout
17772 \begin_inset space \thinspace{}
17776 \begin_inset Flex Code
17779 \begin_layout Plain Layout
17785 ] When using babel, always use a local font switch (
17786 \begin_inset Flex Code
17789 \begin_layout Plain Layout
17797 ), never a global one (such as
17798 \begin_inset Flex Code
17801 \begin_layout Plain Layout
17812 \begin_layout Description
17813 \begin_inset Flex Code
17816 \begin_layout Plain Layout
17823 \begin_inset Flex Code
17826 \begin_layout Plain Layout
17835 \begin_inset space \thinspace{}
17839 \begin_inset Flex Code
17842 \begin_layout Plain Layout
17849 \begin_inset Quotes eld
17853 \begin_inset Quotes erd
17856 language, leading to Left-to-Right (Latin) output, e.
17857 \begin_inset space \thinspace{}
17861 \begin_inset space \space{}
17864 in \SpecialChar TeX
17867 \change_inserted -712698321 1417441977
17871 \begin_layout Description
17873 \change_inserted -712698321 1417442090
17874 \begin_inset Flex Code
17877 \begin_layout Plain Layout
17879 \change_inserted -712698321 1417441983
17886 \begin_inset Flex Code
17889 \begin_layout Plain Layout
17891 \change_inserted -712698321 1417441978
17900 \begin_inset space \thinspace{}
17904 \begin_inset Flex Code
17907 \begin_layout Plain Layout
17909 \change_inserted -712698321 1417441978
17915 ] Force a a line break in the \SpecialChar LaTeX
17916 output before the inset starts and after
17918 This assures the inset itself is output on its own lines, for parsing purposes.
17920 \change_inserted 274215730 1419105878
17926 \begin_layout Description
17927 \begin_inset Flex Code
17930 \begin_layout Plain Layout
17937 \begin_inset Flex Code
17940 \begin_layout Plain Layout
17949 \begin_inset space \thinspace{}
17953 \begin_inset Flex Code
17956 \begin_layout Plain Layout
17962 ] Indicates whether the
17963 \begin_inset Flex Code
17966 \begin_layout Plain Layout
17972 should be used or, instead, the user can change the paragraph style used
17977 \begin_layout Description
17978 \begin_inset Flex Code
17981 \begin_layout Plain Layout
17988 \begin_inset Flex Code
17991 \begin_layout Plain Layout
18000 \begin_inset space \thinspace{}
18004 \begin_inset Flex Code
18007 \begin_layout Plain Layout
18013 ] As with paragraph styles, see
18014 \begin_inset CommandInset ref
18016 reference "subsec:Paragraph-Styles"
18023 \begin_layout Description
18024 \begin_inset Flex Code
18027 \begin_layout Plain Layout
18033 These tags control the XHTML output.
18035 \begin_inset CommandInset ref
18037 reference "sec:Tags-for-XHTML"
18044 \begin_layout Description
18045 \begin_inset Flex Code
18048 \begin_layout Plain Layout
18055 \begin_inset Flex Code
18058 \begin_layout Plain Layout
18067 \begin_inset space \thinspace{}
18071 \begin_inset Flex Code
18074 \begin_layout Plain Layout
18080 ] Whether to include the contents of this inset in the strings generated
18081 for the `Outline' pane.
18082 One would not, for example, want the content of a footnote in a section
18083 header to be included in the TOC displayed in the outline, but one would
18084 normally want the content of a character style displayed.
18085 Default is false: not to include.
18088 \begin_layout Description
18089 \begin_inset Flex Code
18092 \begin_layout Plain Layout
18101 \begin_inset Flex Code
18104 \begin_layout Plain Layout
18113 \begin_inset space \thinspace{}
18117 \begin_inset Flex Code
18120 \begin_layout Plain Layout
18126 ] As with paragraph styles, see
18127 \begin_inset CommandInset ref
18129 reference "subsec:Paragraph-Styles"
18136 \begin_layout Description
18137 \begin_inset Flex Code
18140 \begin_layout Plain Layout
18146 The font used for the label.
18148 \begin_inset CommandInset ref
18150 reference "subsec:Font-description"
18155 Note that this definition can never appear before
18156 \begin_inset Flex Code
18159 \begin_layout Plain Layout
18165 , lest it be ineffective.
18168 \begin_layout Description
18169 \begin_inset Flex Code
18172 \begin_layout Plain Layout
18179 \begin_inset Flex Code
18182 \begin_layout Plain Layout
18189 \begin_inset Quotes erd
18193 \begin_inset Quotes erd
18196 ] What will be displayed on the button or elsewhere as the inset label.
18198 \begin_inset Flex Code
18201 \begin_layout Plain Layout
18209 \begin_inset Flex Code
18212 \begin_layout Plain Layout
18218 ) modify this label on the fly.
18221 \begin_layout Description
18222 \begin_inset Flex Code
18225 \begin_layout Plain Layout
18231 Language dependent preamble; see
18232 \begin_inset CommandInset ref
18234 reference "subsec:I18n"
18241 \begin_layout Description
18242 \begin_inset Flex Code
18245 \begin_layout Plain Layout
18252 \begin_inset Flex Code
18255 \begin_layout Plain Layout
18261 ] The name of the corresponding \SpecialChar LaTeX
18263 Either the environment or command name.
18266 \begin_layout Description
18267 \begin_inset Flex Code
18270 \begin_layout Plain Layout
18277 \begin_inset Flex Code
18280 \begin_layout Plain Layout
18286 ] The optional parameter for the corresponding
18287 \begin_inset Flex Code
18290 \begin_layout Plain Layout
18296 stuff, including possible bracket pairs like
18297 \begin_inset Flex Code
18300 \begin_layout Plain Layout
18307 This parameter cannot be changed from within \SpecialChar LyX
18309 \begin_inset Flex Code
18312 \begin_layout Plain Layout
18318 for customizable parameters).
18319 It will be output as is after all \SpecialChar LaTeX
18321 \begin_inset Flex Code
18324 \begin_layout Plain Layout
18333 \begin_layout Description
18334 \begin_inset Flex Code
18337 \begin_layout Plain Layout
18344 \begin_inset Flex Code
18347 \begin_layout Plain Layout
18348 Command, Environment, None
18353 ] How the style should be translated into \SpecialChar LaTeX
18358 \begin_layout Plain Layout
18359 \begin_inset Flex Code
18362 \begin_layout Plain Layout
18368 is perhaps a bit misleading, since these rules apply to SGML classes too.
18369 Visit the SGML class files for specific examples.
18375 \begin_inset Separator parbreak
18382 \begin_layout Description
18383 \begin_inset Flex Code
18386 \begin_layout Plain Layout
18392 means nothing special
18395 \begin_layout Description
18396 \begin_inset Flex Code
18399 \begin_layout Plain Layout
18406 \begin_inset Flex Code
18409 \begin_layout Plain Layout
18416 {\SpecialChar ldots
18425 \begin_layout Description
18426 \begin_inset Flex Code
18429 \begin_layout Plain Layout
18436 \begin_inset Flex Code
18439 \begin_layout Plain Layout
18446 }\SpecialChar ldots
18461 \begin_layout Standard
18462 Putting the last few things together, the \SpecialChar LaTeX
18463 output will be either:
18466 \begin_layout LyX-Code
18469 LatexName[LatexParam]{\SpecialChar ldots
18473 \begin_layout Standard
18477 \begin_layout LyX-Code
18480 begin{LatexName}[LatexParam] \SpecialChar ldots
18486 \begin_layout Standard
18487 depending upon the \SpecialChar LaTeX
18492 \begin_layout Description
18493 \begin_inset Flex Code
18496 \begin_layout Plain Layout
18503 \begin_inset Flex Code
18506 \begin_layout Plain Layout
18512 ] A string that is put at the beginning of the layout content.
18513 A line break in the output can be indicated by
18514 \begin_inset Flex Code
18517 \begin_layout Plain Layout
18526 \begin_layout Description
18527 \begin_inset Flex Code
18530 \begin_layout Plain Layout
18537 \begin_inset Flex Code
18540 \begin_layout Plain Layout
18547 \begin_inset Flex Code
18550 \begin_layout Plain Layout
18557 \begin_inset Flex Code
18560 \begin_layout Plain Layout
18567 \begin_inset Flex Code
18570 \begin_layout Plain Layout
18576 (indicating a dummy definition ending definitions of charstyles, etc).
18577 This entry is required in and is only meaningful for Flex insets.
18578 Among other things, it determines on which menu this inset will appear.
18580 \begin_inset Flex Code
18583 \begin_layout Plain Layout
18590 \begin_inset Flex Code
18593 \begin_layout Plain Layout
18599 will automatically set
18600 \begin_inset Flex Code
18603 \begin_layout Plain Layout
18611 \begin_inset Flex Code
18614 \begin_layout Plain Layout
18620 can be set to true for
18621 \begin_inset Flex Code
18624 \begin_layout Plain Layout
18630 insets by setting it
18635 \begin_inset Flex Code
18638 \begin_layout Plain Layout
18647 \begin_layout Description
18648 \begin_inset Flex Code
18651 \begin_layout Plain Layout
18658 \begin_inset Flex Code
18661 \begin_layout Plain Layout
18670 \begin_inset space \thinspace{}
18674 \begin_inset Flex Code
18677 \begin_layout Plain Layout
18683 ] Whether multiple paragraphs are permitted in this inset.
18685 \begin_inset Flex Code
18688 \begin_layout Plain Layout
18694 to the same value and
18695 \begin_inset Flex Code
18698 \begin_layout Plain Layout
18704 to the opposite value.
18705 These can be reset to other values, if they are used
18710 \begin_inset Flex Code
18713 \begin_layout Plain Layout
18723 \begin_layout Description
18724 \begin_inset Flex Code
18727 \begin_layout Plain Layout
18734 \begin_inset Flex Code
18737 \begin_layout Plain Layout
18746 \begin_inset space \thinspace{}
18750 \begin_inset Flex Code
18753 \begin_layout Plain Layout
18759 ] Whether fragile commands in this inset should be
18760 \begin_inset Flex Code
18763 \begin_layout Plain Layout
18776 whether the command should itself be protected.) Default is false.
18779 \begin_layout Description
18780 \begin_inset Flex Code
18783 \begin_layout Plain Layout
18790 \begin_inset Flex Code
18793 \begin_layout Plain Layout
18799 ] Deletes an existing
18800 \begin_inset Flex Code
18803 \begin_layout Plain Layout
18810 \change_inserted -712698321 1417953494
18814 \begin_layout Description
18816 \change_inserted -712698321 1417953559
18817 \begin_inset Flex Code
18820 \begin_layout Plain Layout
18822 \change_inserted -712698321 1417953494
18829 \begin_inset Flex Code
18832 \begin_layout Plain Layout
18834 \change_inserted -712698321 1417953574
18841 \begin_inset Flex Code
18844 \begin_layout Plain Layout
18846 \change_inserted -712698321 1417953533
18852 that has replaced this
18853 \begin_inset Flex Code
18856 \begin_layout Plain Layout
18858 \change_inserted -712698321 1417953551
18865 This is used to rename an
18866 \begin_inset Flex Code
18869 \begin_layout Plain Layout
18871 \change_inserted -712698321 1417953559
18877 , while keeping backward compatibility.
18882 \begin_layout Description
18883 \begin_inset Flex Code
18886 \begin_layout Plain Layout
18893 \begin_inset Flex Code
18896 \begin_layout Plain Layout
18905 \begin_inset space \thinspace{}
18909 \begin_inset Flex Code
18912 \begin_layout Plain Layout
18918 ] As with paragraph styles, see
18919 \begin_inset CommandInset ref
18921 reference "subsec:Paragraph-Styles"
18929 \begin_layout Description
18930 \begin_inset Flex Code
18933 \begin_layout Plain Layout
18940 \begin_inset Flex Code
18943 \begin_layout Plain Layout
18952 \begin_inset space \thinspace{}
18956 \begin_inset Flex Code
18959 \begin_layout Plain Layout
18965 ] As with paragraph styles, see
18966 \begin_inset CommandInset ref
18968 reference "subsec:Paragraph-Styles"
18976 \begin_layout Description
18977 \begin_inset Flex Code
18980 \begin_layout Plain Layout
18986 As with paragraph styles, see
18987 \begin_inset CommandInset ref
18989 reference "subsec:Paragraph-Styles"
18996 \begin_layout Description
18997 \begin_inset Flex Code
19000 \begin_layout Plain Layout
19007 \begin_inset Flex Code
19010 \begin_layout Plain Layout
19016 ] The prefix to use when creating labels referring to insets of this type.
19017 This allows the use of formatted references.
19020 \begin_layout Description
19021 \begin_inset Flex Code
19024 \begin_layout Plain Layout
19031 \begin_inset Flex Code
19034 \begin_layout Plain Layout
19040 ] As with paragraph styles, see
19041 \begin_inset CommandInset ref
19043 reference "subsec:Paragraph-Styles"
19050 \begin_layout Description
19051 \begin_inset Flex Code
19054 \begin_layout Plain Layout
19061 \begin_inset Flex Code
19064 \begin_layout Plain Layout
19073 \begin_inset space \thinspace{}
19077 \begin_inset Flex Code
19080 \begin_layout Plain Layout
19086 ] Resets the \SpecialChar LaTeX
19087 arguments of this layout (as defined via the
19088 \begin_inset Flex Code
19091 \begin_layout Plain Layout
19098 This is useful if you have copied a style via
19099 \begin_inset Flex Code
19102 \begin_layout Plain Layout
19108 , but you do not want to inherit its (required and optional) arguments.
19111 \begin_layout Description
19112 \begin_inset Flex Code
19115 \begin_layout Plain Layout
19122 \begin_inset Flex Code
19125 \begin_layout Plain Layout
19132 \begin_inset space \thinspace{}
19136 \begin_inset Flex Code
19139 \begin_layout Plain Layout
19147 ] Whether this inset should use the font of its surrounding environment
19149 Default is false: use the font of the surrounding environment.
19152 \begin_layout Description
19153 \begin_inset Flex Code
19156 \begin_layout Plain Layout
19163 \begin_inset Flex Code
19166 \begin_layout Plain Layout
19172 ] A string that is put at the end of the layout content.
19173 A line break in the output can be indicated by
19174 \begin_inset Flex Code
19177 \begin_layout Plain Layout
19186 \begin_layout Description
19187 \begin_inset Flex Code
19190 \begin_layout Plain Layout
19197 \begin_inset Flex Code
19200 \begin_layout Plain Layout
19207 \begin_inset space \thinspace{}
19211 \begin_inset Flex Code
19214 \begin_layout Plain Layout
19222 ] Allow spell-checking the contents of this inset.
19226 \begin_layout Subsection
19228 \begin_inset CommandInset label
19230 name "subsec:Counters"
19237 \begin_layout Standard
19238 It is necessary to define the counters (
19239 \begin_inset Flex MenuItem
19242 \begin_layout Plain Layout
19249 \begin_inset Flex MenuItem
19252 \begin_layout Plain Layout
19258 , \SpecialChar ldots
19259 ) in the text class itself.
19260 The standard counters are defined in the file
19261 \begin_inset Flex Code
19264 \begin_layout Plain Layout
19270 , so you may have to do no more than add
19273 \begin_layout LyX-Code
19274 Input stdcounters.inc
19277 \begin_layout Standard
19278 to your layout file to get them to work.
19279 But if you want to define custom counters, then you can do so.
19280 The counter declaration must begin with:
19283 \begin_layout LyX-Code
19284 Counter CounterName
19287 \begin_layout Standard
19289 \begin_inset Flex Code
19292 \begin_layout Plain Layout
19298 ' is replaced by the name of the counter.
19299 And it must end with
19300 \begin_inset Quotes eld
19304 \begin_inset Flex Code
19307 \begin_layout Plain Layout
19314 \begin_inset Quotes erd
19318 The following parameters can also be used:
19321 \begin_layout Description
19322 \begin_inset Flex Code
19325 \begin_layout Plain Layout
19332 \begin_inset Flex Code
19335 \begin_layout Plain Layout
19341 ] Sets the initial value for the counter, to which it will be reset whenever
19343 Normally, one will want the default, 1.
19346 \begin_layout Description
19347 \begin_inset Flex Code
19350 \begin_layout Plain Layout
19357 \begin_inset Flex Code
19360 \begin_layout Plain Layout
19367 \begin_inset Quotes erd
19371 \begin_inset Quotes erd
19374 ] When defined, this string defines how the counter is displayed.
19375 Setting this value sets
19376 \begin_inset Flex Code
19379 \begin_layout Plain Layout
19380 LabelStringAppendix
19386 The following special constructs can be used in the string:
19387 \begin_inset Separator parbreak
19394 \begin_layout Itemize
19395 \begin_inset Flex Code
19398 \begin_layout Plain Layout
19406 will be replaced by the expansion of the
19407 \begin_inset Flex Code
19410 \begin_layout Plain Layout
19417 \begin_inset Flex Code
19420 \begin_layout Plain Layout
19421 LabelStringAppendix
19427 \begin_inset Flex Code
19430 \begin_layout Plain Layout
19440 \begin_layout Itemize
19441 counter values can be expressed using \SpecialChar LaTeX
19443 \begin_inset Newline newline
19447 \begin_inset Flex Code
19450 \begin_layout Plain Layout
19467 \begin_inset Flex Code
19470 \begin_layout Plain Layout
19482 \begin_layout Plain Layout
19492 Actually, the situation is a bit more complicated: any
19511 other than those described below will produce arabic numerals.
19512 It would not be surprising to see this change in the future.
19518 \begin_inset Flex Code
19521 \begin_layout Plain Layout
19527 : 1, 2, 3,\SpecialChar ldots
19529 \begin_inset Flex Code
19532 \begin_layout Plain Layout
19538 for lower-case letters: a, b, c, \SpecialChar ldots
19540 \begin_inset Flex Code
19543 \begin_layout Plain Layout
19549 for upper-case letters: A, B, C, \SpecialChar ldots
19551 \begin_inset Flex Code
19554 \begin_layout Plain Layout
19560 for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
19562 \begin_inset Flex Code
19565 \begin_layout Plain Layout
19571 for upper-case roman numerals: I, II, III\SpecialChar ldots
19573 \begin_inset Flex Code
19576 \begin_layout Plain Layout
19582 for hebrew numerals.
19586 \begin_layout Standard
19587 If LabelString is not defined, a default value is constructed as follows:
19588 if the counter has a master counter
19589 \begin_inset Flex Code
19592 \begin_layout Plain Layout
19599 \begin_inset Flex Code
19602 \begin_layout Plain Layout
19609 \begin_inset Newline newline
19613 \begin_inset Flex Code
19616 \begin_layout Plain Layout
19626 is used; otherwise the string
19627 \begin_inset Flex Code
19630 \begin_layout Plain Layout
19641 \begin_layout Description
19642 \begin_inset Flex Code
19645 \begin_layout Plain Layout
19646 LabelStringAppendix
19652 \begin_inset Flex Code
19655 \begin_layout Plain Layout
19662 \begin_inset Quotes erd
19666 \begin_inset Quotes erd
19670 \begin_inset Flex Code
19673 \begin_layout Plain Layout
19679 , but for use in the Appendix.
19682 \begin_layout Description
19683 \begin_inset Flex Code
19686 \begin_layout Plain Layout
19693 \begin_inset Flex Code
19696 \begin_layout Plain Layout
19703 \begin_inset Quotes erd
19707 \begin_inset Quotes erd
19710 ] A format for use with formatted references to this counter.
19711 For example, one might want to have references to section numbers appear
19713 \begin_inset Quotes eld
19717 \begin_inset Quotes erd
19721 The string should contain
19722 \begin_inset Quotes eld
19726 \begin_inset Quotes erd
19730 This will be replaced by the counter number itself.
19731 So, for sections, it would be: Section ##.
19734 \begin_layout Description
19735 \begin_inset Flex Code
19738 \begin_layout Plain Layout
19745 \begin_inset Flex Code
19748 \begin_layout Plain Layout
19755 \begin_inset Quotes erd
19759 \begin_inset Quotes erd
19762 ] If this is set to the name of another counter, the present counter will
19763 be reset every time the other one is increased.
19765 \begin_inset Flex Code
19768 \begin_layout Plain Layout
19775 \begin_inset Flex Code
19778 \begin_layout Plain Layout
19787 \begin_layout Subsection
19789 \begin_inset CommandInset label
19791 name "subsec:Font-description"
19798 \begin_layout Standard
19799 A font description looks like this:
19802 \begin_layout LyX-Code
19816 \begin_layout LyX-Code
19820 \begin_layout LyX-Code
19824 \begin_layout Standard
19825 The following commands are available:
19828 \begin_layout Description
19829 \begin_inset Flex Code
19832 \begin_layout Plain Layout
19839 \begin_inset Flex Code
19842 \begin_layout Plain Layout
19851 \begin_inset Flex Code
19854 \begin_layout Plain Layout
19861 \begin_inset Flex Code
19864 \begin_layout Plain Layout
19871 \begin_inset Flex Code
19874 \begin_layout Plain Layout
19881 \begin_inset Flex Code
19884 \begin_layout Plain Layout
19891 \begin_inset Flex Code
19894 \begin_layout Plain Layout
19901 \begin_inset Flex Code
19904 \begin_layout Plain Layout
19911 \begin_inset Flex Code
19914 \begin_layout Plain Layout
19921 \begin_inset Flex Code
19924 \begin_layout Plain Layout
19933 \begin_layout Description
19934 \begin_inset Flex Code
19937 \begin_layout Plain Layout
19944 \begin_inset Flex Code
19947 \begin_layout Plain Layout
19956 \begin_inset Flex Code
19959 \begin_layout Plain Layout
19966 \begin_inset Flex Code
19969 \begin_layout Plain Layout
19978 \begin_layout Description
19979 \begin_inset Flex Code
19982 \begin_layout Plain Layout
19989 \begin_inset Flex Code
19992 \begin_layout Plain Layout
19998 ] Valid arguments are:
19999 \begin_inset Flex Code
20002 \begin_layout Plain Layout
20009 \begin_inset Flex Code
20012 \begin_layout Plain Layout
20019 \begin_inset Flex Code
20022 \begin_layout Plain Layout
20029 \begin_inset Flex Code
20032 \begin_layout Plain Layout
20039 \begin_inset Flex Code
20042 \begin_layout Plain Layout
20049 \begin_inset Flex Code
20052 \begin_layout Plain Layout
20059 \begin_inset Flex Code
20062 \begin_layout Plain Layout
20069 \begin_inset Flex Code
20072 \begin_layout Plain Layout
20079 \begin_inset Flex Code
20082 \begin_layout Plain Layout
20089 \begin_inset Flex Code
20092 \begin_layout Plain Layout
20099 \begin_inset Flex Code
20102 \begin_layout Plain Layout
20109 \begin_inset Flex Code
20112 \begin_layout Plain Layout
20119 Each of these turns on or off the corresponding attribute.
20121 \begin_inset Flex Code
20124 \begin_layout Plain Layout
20130 turns on emphasis, and
20131 \begin_inset Flex Code
20134 \begin_layout Plain Layout
20142 \begin_inset Newline newline
20145 If the latter seems puzzling, remember that the font settings for the present
20146 context are generally inherited from the surrounding context.
20148 \begin_inset Flex Code
20151 \begin_layout Plain Layout
20157 would turn off the emphasis that was anyway in effect, say, in a theorem
20161 \begin_layout Description
20162 \begin_inset Flex Code
20165 \begin_layout Plain Layout
20172 \begin_inset Flex Code
20175 \begin_layout Plain Layout
20184 \begin_inset Flex Code
20187 \begin_layout Plain Layout
20196 \begin_layout Description
20197 \begin_inset Flex Code
20200 \begin_layout Plain Layout
20207 \begin_inset Flex Code
20210 \begin_layout Plain Layout
20219 \begin_inset Flex Code
20222 \begin_layout Plain Layout
20229 \begin_inset Flex Code
20232 \begin_layout Plain Layout
20239 \begin_inset Flex Code
20242 \begin_layout Plain Layout
20251 \begin_layout Description
20252 \begin_inset Flex Code
20255 \begin_layout Plain Layout
20262 \begin_inset Flex Code
20265 \begin_layout Plain Layout
20272 \begin_inset Flex Code
20275 \begin_layout Plain Layout
20282 \begin_inset Flex Code
20285 \begin_layout Plain Layout
20294 \begin_inset Flex Code
20297 \begin_layout Plain Layout
20304 \begin_inset Flex Code
20307 \begin_layout Plain Layout
20314 \begin_inset Flex Code
20317 \begin_layout Plain Layout
20324 \begin_inset Flex Code
20327 \begin_layout Plain Layout
20334 \begin_inset Flex Code
20337 \begin_layout Plain Layout
20346 \begin_layout Subsection
20347 \begin_inset CommandInset label
20349 name "subsec:Citation-format-description"
20353 Citation format description
20356 \begin_layout Standard
20358 \begin_inset Flex Code
20361 \begin_layout Plain Layout
20367 blocks are used to describe how bibliographic information should be displayed,
20368 both within \SpecialChar LyX
20369 itself (in the citation dialog and in tooltips, for example)
20370 and in XHTML output.
20371 Such a block might look like this:
20374 \begin_layout LyX-Code
20378 \begin_layout LyX-Code
20382 \begin_layout LyX-Code
20386 \begin_layout LyX-Code
20390 \begin_layout Standard
20391 The individual lines define how the bibliographic information associated
20392 with an article or book, respectively, is to be displayed, and such a definitio
20393 n can be given for any `entry type' that might be present in a Bib\SpecialChar TeX
20396 defines a default format in the source code that will be used if no specific
20397 definition has been given.
20399 predefines several formats in the file
20400 \begin_inset Flex Code
20403 \begin_layout Plain Layout
20409 , which is included in most of \SpecialChar LyX
20410 's document classes.
20413 \begin_layout Standard
20414 The definitions use a simple language that allows Bib\SpecialChar TeX
20415 keys to be replaced
20417 Keys should be enclosed in
20418 \begin_inset Flex Code
20421 \begin_layout Plain Layout
20428 \begin_inset Flex Code
20431 \begin_layout Plain Layout
20438 So a simple definition might look like this:
20441 \begin_layout LyX-Code
20443 \begin_inset Quotes eld
20447 \begin_inset Quotes erd
20453 \begin_layout Standard
20454 This would print the author, followed by a comma, followed by the title,
20455 in quotes, followed by a period.
20458 \begin_layout Standard
20459 Of course, sometimes you may want to print a key only if it exists.
20460 This can be done by using a conditional construction, such as:
20461 \begin_inset Flex Code
20464 \begin_layout Plain Layout
20466 \begin_inset space ~
20476 \begin_inset Flex Code
20479 \begin_layout Plain Layout
20485 key exists, then print
20486 \begin_inset Quotes eld
20490 \begin_inset space ~
20494 \begin_inset Quotes erd
20497 followed by the volume key.
20498 It is also possible to have an else clause in the conditional, such as:
20499 \begin_inset Newline newline
20503 \begin_inset Flex Code
20506 \begin_layout Plain Layout
20507 {%author%[[%author%]][[%editor%, ed.]]}
20513 \begin_inset Newline newline
20517 \begin_inset Flex Code
20520 \begin_layout Plain Layout
20526 key is printed if it exists; otherwise, the editor key is printed, followed
20528 \begin_inset Quotes eld
20532 \begin_inset space ~
20536 \begin_inset Quotes erd
20539 Note that the key is again enclosed in
20540 \begin_inset Flex Code
20543 \begin_layout Plain Layout
20549 signs; the entire conditional is enclosed in braces; and the if and else
20550 clauses are enclosed in double brackets,
20551 \begin_inset Quotes eld
20555 \begin_inset Flex Code
20558 \begin_layout Plain Layout
20565 \begin_inset Quotes eld
20569 \begin_inset Quotes eld
20573 \begin_inset Flex Code
20576 \begin_layout Plain Layout
20583 \begin_inset Quotes erd
20587 There must be no space between any of these.
20590 \begin_layout Standard
20591 There is one other piece of syntax available in definitions, which looks
20593 \begin_inset Flex Code
20596 \begin_layout Plain Layout
20603 This defines a piece of formatting information that is to be used when
20605 \begin_inset Quotes eld
20609 \begin_inset Quotes erd
20613 Obviously, we do not want to output HTML tags when writing plain text,
20614 so they should be wrapped in
20615 \begin_inset Quotes eld
20619 \begin_inset Quotes erd
20623 \begin_inset Quotes eld
20627 \begin_inset Quotes erd
20633 \begin_layout Standard
20634 Two special sorts of definitions are also possible in a
20635 \begin_inset Flex Code
20638 \begin_layout Plain Layout
20645 An example of the first would be:
20648 \begin_layout LyX-Code
20650 \begin_inset Quotes eld
20654 \begin_inset Quotes erd
20660 \begin_layout Standard
20661 This is an abbreviation, or macro, and it can be used by treating it as
20663 \begin_inset Flex Code
20666 \begin_layout Plain Layout
20675 \begin_inset Flex Code
20678 \begin_layout Plain Layout
20684 exactly as it would treat its definition.
20685 So, let us issue the obvious
20693 \begin_layout LyX-Code
20697 \begin_layout Standard
20698 or anything like it.
20700 shouldn't go into an infinite loop, but it may go into a long one before
20704 \begin_layout Standard
20705 The second sort of special definition might look like this:
20708 \begin_layout LyX-Code
20712 \begin_layout Standard
20713 This defines a translatable piece of text, which allows relevant parts of
20714 the bibliography to be translated.
20715 It can be included in a definition by treating it as a key:
20716 \begin_inset Flex Code
20719 \begin_layout Plain Layout
20726 Several of these are predefined in
20727 \begin_inset Flex Code
20730 \begin_layout Plain Layout
20737 Note that these are not macros, in the sense just defined.
20738 They will not be expanded.
20741 \begin_layout Standard
20742 So here then is an example that use all these features:
20743 \begin_inset VSpace defskip
20749 \begin_layout Standard
20753 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20756 \begin_layout Standard
20757 \begin_inset VSpace defskip
20760 This defines a macro that prints the author, followed by a comma, if the
20762 \begin_inset Flex Code
20765 \begin_layout Plain Layout
20771 key is defined, or else prints the name of the editor, followed by the
20773 \begin_inset Flex Code
20776 \begin_layout Plain Layout
20782 or its translation (it is by default
20783 \begin_inset Quotes eld
20787 \begin_inset Quotes erd
20791 \begin_inset Flex Code
20794 \begin_layout Plain Layout
20801 Note that this is in fact defined in
20802 \begin_inset Flex Code
20805 \begin_layout Plain Layout
20811 , so you can use it in your own definitions, or re-definitions, if you load
20815 \begin_layout Section
20816 \begin_inset CommandInset label
20818 name "sec:Tags-for-XHTML"
20822 Tags for XHTML output
20825 \begin_layout Standard
20826 As with \SpecialChar LaTeX
20827 or DocBook, the format of \SpecialChar LyX
20828 's XHTML output is also controlled by
20829 layout information.
20830 In general, \SpecialChar LyX
20831 provides sensible defaults and, as mentioned earlier, it will
20832 even construct default CSS style rules from the other layout tags.
20833 For example, \SpecialChar LyX
20834 will attempt to use the information provided in the
20835 \begin_inset Flex Code
20838 \begin_layout Plain Layout
20844 declaration for the Chapter style to write CSS that will appropriately
20845 format chapter headings.
20848 \begin_layout Standard
20849 In many cases, then, you may not have to do anything at all to get acceptable
20850 XHTML output for your own environments, custom insets, and so forth.
20851 But in some cases you will, and so \SpecialChar LyX
20852 provides a number of layout tags that
20853 can be used to customize the XHTML and CSS that are generated.
20856 \begin_layout Standard
20857 Note that there are two tags,
20858 \begin_inset Flex Code
20861 \begin_layout Plain Layout
20868 \begin_inset Flex Code
20871 \begin_layout Plain Layout
20877 that may appear outside style and inset declarations.
20879 \begin_inset CommandInset ref
20881 reference "subsec:General-text-class"
20885 for details on these.
20888 \begin_layout Subsection
20889 \begin_inset CommandInset label
20891 name "subsec:Paragraph-Style-XHTML"
20898 \begin_layout Standard
20899 The sort of XHTML \SpecialChar LyX
20900 outputs for a paragraph depends upon whether we are dealing
20901 with a normal paragraph, a command, or an environment, where this is itself
20902 determined by the contents of the corresponding
20903 \begin_inset Flex Code
20906 \begin_layout Plain Layout
20917 \begin_layout Standard
20918 For a command or normal paragraph, the output XHTML has the following form:
20921 \begin_layout LyX-Code
20923 \begin_inset Quotes erd
20927 \begin_inset Quotes erd
20933 \begin_layout LyX-Code
20935 \begin_inset Quotes erd
20939 \begin_inset Quotes erd
20945 \begin_layout LyX-Code
20946 Contents of the paragraph.
20949 \begin_layout LyX-Code
20953 \begin_layout Standard
20954 The label tags are of course omitted if the paragraph does not have a label.
20957 \begin_layout Standard
20958 For an environment that is not some sort of list, the XHTML takes this form:
20961 \begin_layout LyX-Code
20963 \begin_inset Quotes erd
20967 \begin_inset Quotes erd
20973 \begin_layout LyX-Code
20975 \begin_inset Quotes erd
20979 \begin_inset Quotes erd
20983 \begin_inset Quotes erd
20987 \begin_inset Quotes erd
20990 >Environment Label</labeltag>First paragraph.</itemtag>
20993 \begin_layout LyX-Code
20994 <itemtag>Second paragraph.</itemtag>
20997 \begin_layout LyX-Code
21001 \begin_layout Standard
21002 Note that the label is output only for the first paragraph, as it should
21003 be for a theorem, for example.
21007 \begin_layout Standard
21008 For a list, we have one of these forms:
21011 \begin_layout LyX-Code
21013 \begin_inset Quotes erd
21017 \begin_inset Quotes erd
21023 \begin_layout LyX-Code
21025 \begin_inset Quotes erd
21029 \begin_inset Quotes erd
21033 \begin_inset Quotes erd
21037 \begin_inset Quotes erd
21040 >List Label</labeltag>First item.</itemtag>
21043 \begin_layout LyX-Code
21045 \begin_inset Quotes erd
21049 \begin_inset Quotes erd
21053 \begin_inset Quotes erd
21057 \begin_inset Quotes erd
21060 >List Label</labeltag>Second item.</itemtag>
21063 \begin_layout LyX-Code
21067 \begin_layout LyX-Code
21071 \begin_layout LyX-Code
21073 \begin_inset Quotes erd
21077 \begin_inset Quotes erd
21083 \begin_layout LyX-Code
21085 \begin_inset Quotes erd
21089 \begin_inset Quotes erd
21092 >List Label</labeltag><itemtag attr=
21093 \begin_inset Quotes erd
21097 \begin_inset Quotes erd
21100 >First item.</itemtag>
21103 \begin_layout LyX-Code
21105 \begin_inset Quotes erd
21109 \begin_inset Quotes erd
21112 >List Label</labeltag><itemtag attr=
21113 \begin_inset Quotes erd
21117 \begin_inset Quotes erd
21120 >Second item.</itemtag>
21123 \begin_layout LyX-Code
21127 \begin_layout Standard
21128 Note the different orders of
21129 \begin_inset Flex Code
21132 \begin_layout Plain Layout
21139 \begin_inset Flex Code
21142 \begin_layout Plain Layout
21149 Which order we get depends upon the setting of
21150 \begin_inset Flex Code
21153 \begin_layout Plain Layout
21160 \begin_inset Flex Code
21163 \begin_layout Plain Layout
21169 is false (the default), you get the first of these, with the label within
21170 the item; if true, you get the second, with the label outside the item.
21173 \begin_layout Standard
21174 The specific tags and attributes output for each paragraph type can be controlle
21175 d by means of the layout tags we are about to describe.
21176 As mentioned earlier, however, \SpecialChar LyX
21177 uses sensible defaults for many of these,
21178 so you often may not need to do very much to get good XHTML output.
21179 Think of the available tags as there so you can tweak things to your liking.
21182 \begin_layout Description
21183 \begin_inset Flex Code
21186 \begin_layout Plain Layout
21193 \begin_inset Flex Code
21196 \begin_layout Plain Layout
21202 ] Specifies attribute information to be output with the main tag.
21204 \begin_inset Quotes eld
21208 \begin_inset Flex Code
21211 \begin_layout Plain Layout
21218 \begin_inset Quotes erd
21222 By default, \SpecialChar LyX
21224 \begin_inset Quotes eld
21228 \begin_inset Flex Code
21231 \begin_layout Plain Layout
21238 \begin_inset Quotes erd
21242 \begin_inset Flex Code
21245 \begin_layout Plain Layout
21251 is the \SpecialChar LyX
21252 name of the layout, made lowercase, for example: chapter.
21257 contain any style information.
21259 \begin_inset Flex Code
21262 \begin_layout Plain Layout
21271 \begin_layout Description
21272 \begin_inset Flex Code
21275 \begin_layout Plain Layout
21282 \begin_inset Flex Code
21285 \begin_layout Plain Layout
21295 ] Whether to output the default CSS information \SpecialChar LyX
21296 generates for this layout,
21297 even if additional information is explicitly provided via
21298 \begin_inset Flex Code
21301 \begin_layout Plain Layout
21309 \begin_inset Flex Code
21312 \begin_layout Plain Layout
21318 allows you to alter or augment the generated CSS, rather than to override
21321 \begin_inset Flex Code
21324 \begin_layout Plain Layout
21333 \begin_layout Description
21334 \begin_inset Flex Code
21337 \begin_layout Plain Layout
21344 \begin_inset Flex Code
21347 \begin_layout Plain Layout
21353 ] The tag to be used for individual paragraphs of environments, replacing
21355 \begin_inset Flex Code
21358 \begin_layout Plain Layout
21364 in the examples above.
21366 \begin_inset Flex Code
21369 \begin_layout Plain Layout
21378 \begin_layout Description
21379 \begin_inset Flex Code
21382 \begin_layout Plain Layout
21389 \begin_inset Flex Code
21392 \begin_layout Plain Layout
21398 ] Attributes for the item tag.
21400 \begin_inset Quotes eld
21404 \begin_inset Flex Code
21407 \begin_layout Plain Layout
21408 class=`layoutname_item'
21414 \begin_inset Quotes erd
21422 contain any style information.
21424 \begin_inset Flex Code
21427 \begin_layout Plain Layout
21436 \begin_layout Description
21437 \begin_inset Flex Code
21440 \begin_layout Plain Layout
21447 \begin_inset Flex Code
21450 \begin_layout Plain Layout
21456 ] The tag to be used for paragraph and item labels, replacing
21457 \begin_inset Flex Code
21460 \begin_layout Plain Layout
21466 in the examples above.
21468 \begin_inset Flex Code
21471 \begin_layout Plain Layout
21478 \begin_inset Flex Code
21481 \begin_layout Plain Layout
21488 \begin_inset Flex Code
21491 \begin_layout Plain Layout
21498 \begin_inset Flex Code
21501 \begin_layout Plain Layout
21502 Centered_Top_Environment
21507 , in which case it defaults to
21508 \begin_inset Flex Code
21511 \begin_layout Plain Layout
21520 \begin_layout Description
21521 \begin_inset Flex Code
21524 \begin_layout Plain Layout
21531 \begin_inset Flex Code
21534 \begin_layout Plain Layout
21540 ] Attributes for the label tag.
21542 \begin_inset Quotes eld
21546 \begin_inset Flex Code
21549 \begin_layout Plain Layout
21550 class=`layoutname_label'
21556 \begin_inset Quotes erd
21564 contain any style information.
21566 \begin_inset Flex Code
21569 \begin_layout Plain Layout
21578 \begin_layout Description
21579 \begin_inset Flex Code
21582 \begin_layout Plain Layout
21589 \begin_inset Flex Code
21592 \begin_layout Plain Layout
21602 ] Meaningful only for list-like environments, this tag controls whether
21603 the label tag is output before or inside the item tag.
21604 This is used, for example, in the description environment, where we want
21606 \begin_inset Flex Code
21609 \begin_layout Plain Layout
21610 <dt>\SpecialChar ldots
21611 </dt><dd>\SpecialChar ldots
21619 \begin_inset Flex Code
21622 \begin_layout Plain Layout
21628 : The label tag is output inside the item tag.
21631 \begin_layout Description
21632 \begin_inset Flex Code
21635 \begin_layout Plain Layout
21641 Information to be output in the
21642 \begin_inset Flex Code
21645 \begin_layout Plain Layout
21651 section when this style is used.
21652 This might, for example, be used to include a
21653 \begin_inset Flex Code
21656 \begin_layout Plain Layout
21663 \begin_inset Flex Code
21666 \begin_layout Plain Layout
21675 \begin_layout Description
21676 \begin_inset Flex Code
21679 \begin_layout Plain Layout
21685 CSS style information to be included when this style is used.
21686 Note that this will automatically be wrapped in a layout-generated
21687 \begin_inset Flex Code
21690 \begin_layout Plain Layout
21696 block, so only the CSS itself need be included.
21698 \begin_inset Flex Code
21701 \begin_layout Plain Layout
21710 \begin_layout Description
21711 \begin_inset Flex Code
21714 \begin_layout Plain Layout
21721 \begin_inset Flex Code
21724 \begin_layout Plain Layout
21730 ] The tag to be used for the main label, replacing
21731 \begin_inset Flex Code
21734 \begin_layout Plain Layout
21740 in the examples above.
21742 \begin_inset Flex Code
21745 \begin_layout Plain Layout
21754 \begin_layout Description
21755 \begin_inset Flex Code
21758 \begin_layout Plain Layout
21765 \begin_inset Flex Code
21768 \begin_layout Plain Layout
21778 ] Marks this style as the one to be used to generate the
21779 \begin_inset Flex Code
21782 \begin_layout Plain Layout
21788 tag for the XHTML file.
21789 By default, it is false.
21791 \begin_inset Flex Code
21794 \begin_layout Plain Layout
21800 file sets it to true for the
21801 \begin_inset Flex Code
21804 \begin_layout Plain Layout
21814 \begin_layout Subsection
21818 \begin_layout Standard
21819 The XHTML output of insets can also be controlled by information in layout
21824 \begin_layout Plain Layout
21825 At present, this is true only for
21826 \begin_inset Quotes eld
21830 \begin_inset Quotes erd
21833 insets (insets you can type into) and is not true for
21834 \begin_inset Quotes eld
21838 \begin_inset Quotes erd
21841 insets (insets that are associated with dialog boxes).
21846 Here, too, \SpecialChar LyX
21847 tries to provide sensible defaults, and it constructs default
21849 But everything can be customized.
21852 \begin_layout Standard
21853 The XHTML \SpecialChar LyX
21854 outputs for an inset has the following form:
21857 \begin_layout LyX-Code
21859 \begin_inset Quotes erd
21863 \begin_inset Quotes erd
21869 \begin_layout LyX-Code
21870 <labeltag>Label</labeltag>
21873 \begin_layout LyX-Code
21875 \begin_inset Quotes erd
21879 \begin_inset Quotes erd
21882 >Contents of the inset.</innertag>
21885 \begin_layout LyX-Code
21889 \begin_layout Standard
21890 If the inset permits multiple paragraphs—that is, if
21891 \begin_inset Flex Code
21894 \begin_layout Plain Layout
21900 is true—then the contents of the inset will itself be output as paragraphs
21901 formatted according to the styles used for those paragraphs (standard,
21902 quote, and the like).
21903 The label tag is of course omitted if the paragraph does not have a label
21904 and, at present, is always
21905 \begin_inset Flex Code
21908 \begin_layout Plain Layout
21915 The inner tag is optional and, by default, does not appear.
21918 \begin_layout Standard
21919 The specific tags and attributes output for each inset can be controlled
21920 by means of the following layout tags.
21923 \begin_layout Description
21924 \begin_inset Flex Code
21927 \begin_layout Plain Layout
21934 \begin_inset Flex Code
21937 \begin_layout Plain Layout
21943 ] Specifies attribute information to be output with the main tag.
21945 \begin_inset Quotes eld
21949 \begin_inset Flex Code
21952 \begin_layout Plain Layout
21953 class=`myinset' onclick=`\SpecialChar ldots
21960 \begin_inset Quotes erd
21964 By default, \SpecialChar LyX
21966 \begin_inset Quotes eld
21970 \begin_inset Flex Code
21973 \begin_layout Plain Layout
21980 \begin_inset Quotes erd
21984 \begin_inset Flex Code
21987 \begin_layout Plain Layout
21993 is the \SpecialChar LyX
21994 name of the inset, made lowercase and with non-alphanumeric characters
21995 converted to underscores, for example: footnote.
21998 \begin_layout Description
21999 \begin_inset Flex Code
22002 \begin_layout Plain Layout
22009 \begin_inset Flex Code
22012 \begin_layout Plain Layout
22022 ] Whether to output the default CSS information \SpecialChar LyX
22023 generates for this layout,
22024 even if additional information is explicitly provided via
22025 \begin_inset Flex Code
22028 \begin_layout Plain Layout
22036 \begin_inset Flex Code
22039 \begin_layout Plain Layout
22045 allows you to alter or augment the generated CSS, rather than to override
22050 \begin_layout Description
22051 \begin_inset Flex Code
22054 \begin_layout Plain Layout
22061 \begin_inset Flex Code
22064 \begin_layout Plain Layout
22070 ] Attributes for the inner tag.
22072 \begin_inset Quotes eld
22076 \begin_inset Flex Code
22079 \begin_layout Plain Layout
22080 class=`insetname_inner'
22086 \begin_inset Quotes erd
22092 \begin_layout Description
22093 \begin_inset Flex Code
22096 \begin_layout Plain Layout
22103 \begin_inset Flex Code
22106 \begin_layout Plain Layout
22112 ] The inner tag, replacing
22113 \begin_inset Flex Code
22116 \begin_layout Plain Layout
22122 in the examples above.
22123 By default, there is none.
22126 \begin_layout Description
22127 \begin_inset Flex Code
22130 \begin_layout Plain Layout
22137 \begin_inset Flex Code
22140 \begin_layout Plain Layout
22148 ] Whether this inset represents a standalone block of text (such as a footnote)
22149 or instead represents material that is included in the surrounding text
22150 (such as a branch).
22154 \begin_layout Description
22155 \begin_inset Flex Code
22158 \begin_layout Plain Layout
22165 \begin_inset Flex Code
22168 \begin_layout Plain Layout
22174 ] A label for this inset, possibly including a reference to a counter.
22175 For example, for footnote, it might be:
22176 \begin_inset Flex Code
22179 \begin_layout Plain Layout
22188 This is optional, and there is no default.
22191 \begin_layout Description
22192 \begin_inset Flex Code
22195 \begin_layout Plain Layout
22201 Information to be output in the
22202 \begin_inset Flex Code
22205 \begin_layout Plain Layout
22211 section when this style is used.
22212 This might, for example, be used to include a
22213 \begin_inset Flex Code
22216 \begin_layout Plain Layout
22223 \begin_inset Flex Code
22226 \begin_layout Plain Layout
22235 \begin_layout Description
22236 \begin_inset Flex Code
22239 \begin_layout Plain Layout
22245 CSS style information to be included when this style is used.
22246 Note that this will automatically be wrapped in a layout-generated
22247 \begin_inset Flex Code
22250 \begin_layout Plain Layout
22256 block, so only the CSS itself need be included.
22259 \begin_layout Description
22260 \begin_inset Flex Code
22263 \begin_layout Plain Layout
22270 \begin_inset Flex Code
22273 \begin_layout Plain Layout
22279 ] The tag to be used for the main label, replacing
22280 \begin_inset Flex Code
22283 \begin_layout Plain Layout
22289 in the examples above.
22290 The default depends upon the setting of
22291 \begin_inset Flex Code
22294 \begin_layout Plain Layout
22301 \begin_inset Flex Code
22304 \begin_layout Plain Layout
22310 is true, the default is
22311 \begin_inset Flex Code
22314 \begin_layout Plain Layout
22320 ; if it is false, the default is
22321 \begin_inset Flex Code
22324 \begin_layout Plain Layout
22333 \begin_layout Subsection
22337 \begin_layout Standard
22338 The XHTML output for floats too can be controlled by layout information.
22339 The output has the following form:
22342 \begin_layout LyX-Code
22344 \begin_inset Quotes erd
22348 \begin_inset Quotes erd
22354 \begin_layout LyX-Code
22355 Contents of the float.
22358 \begin_layout LyX-Code
22362 \begin_layout Standard
22363 The caption, if there is one, is a separate inset and will be output as
22365 Its appearance can be controlled via the InsetLayout for caption insets.
22369 \begin_layout Description
22370 \begin_inset Flex Code
22373 \begin_layout Plain Layout
22380 \begin_inset Flex Code
22383 \begin_layout Plain Layout
22389 ] Specifies attribute information to be output with the main tag.
22391 \begin_inset Quotes eld
22395 \begin_inset Flex Code
22398 \begin_layout Plain Layout
22399 class=`myfloat' onclick=`\SpecialChar ldots
22406 \begin_inset Quotes erd
22410 By default, \SpecialChar LyX
22412 \begin_inset Quotes eld
22416 \begin_inset Flex Code
22419 \begin_layout Plain Layout
22420 class=`float float-floattype'
22426 \begin_inset Quotes erd
22430 \begin_inset Flex Code
22433 \begin_layout Plain Layout
22439 is \SpecialChar LyX
22440 's name for this type of float, as determined by the float declaration
22442 \begin_inset CommandInset ref
22444 reference "subsec:Floats"
22448 ), though made lowercase and with non-alphanumeric characters converted
22449 to underscores, for example: float-table.
22452 \begin_layout Description
22453 \begin_inset Flex Code
22456 \begin_layout Plain Layout
22462 CSS style information to be included when this float is used.
22463 Note that this will automatically be wrapped in a layout-generated
22464 \begin_inset Flex Code
22467 \begin_layout Plain Layout
22473 block, so only the CSS itself need be included.
22476 \begin_layout Description
22477 \begin_inset Flex Code
22480 \begin_layout Plain Layout
22487 \begin_inset Flex Code
22490 \begin_layout Plain Layout
22496 ] The tag to be used for this float, replacing
22497 \begin_inset Quotes eld
22501 \begin_inset Flex Code
22504 \begin_layout Plain Layout
22511 \begin_inset Quotes erd
22514 in the example above.
22516 \begin_inset Flex Code
22519 \begin_layout Plain Layout
22525 and will rarely need changing.
22528 \begin_layout Subsection
22529 Bibliography formatting
22532 \begin_layout Standard
22533 The bibliography can be formatted using
22534 \begin_inset Flex Code
22537 \begin_layout Plain Layout
22545 \begin_inset CommandInset ref
22547 reference "subsec:Citation-format-description"
22554 \begin_layout Subsection
22559 \begin_layout Standard
22560 We have several times mentioned that \SpecialChar LyX
22561 will generate default CSS style rules
22562 for both insets and paragraph styles, based upon the other layout information
22564 In this section, we shall say a word about which layout information \SpecialChar LyX
22569 \begin_layout Standard
22570 At present, \SpecialChar LyX
22571 auto-generates CSS only for font information, making use of
22573 \begin_inset Flex Code
22576 \begin_layout Plain Layout
22583 \begin_inset Flex Code
22586 \begin_layout Plain Layout
22593 \begin_inset Flex Code
22596 \begin_layout Plain Layout
22603 \begin_inset Flex Code
22606 \begin_layout Plain Layout
22613 \begin_inset Flex Code
22616 \begin_layout Plain Layout
22623 \begin_inset CommandInset ref
22625 reference "subsec:Font-description"
22630 The translation is mostly straightforward and obvious.
22632 \begin_inset Quotes eld
22636 \begin_inset Flex Code
22639 \begin_layout Plain Layout
22646 \begin_inset Quotes erd
22650 \begin_inset Quotes eld
22654 \begin_inset Flex Code
22657 \begin_layout Plain Layout
22658 font-family: sans-serif;
22664 \begin_inset Quotes erd
22668 The correspondence of \SpecialChar LyX
22669 sizes and CSS sizes is a little less obvious but
22670 nonetheless intuitive.
22672 \begin_inset Flex Code
22675 \begin_layout Plain Layout
22682 \begin_inset Flex URL
22685 \begin_layout Plain Layout
22695 \begin_layout Chapter
22696 Including External Material
22697 \begin_inset CommandInset label
22699 name "chap:Including-External-Material"
22706 \begin_layout Standard
22707 \begin_inset Box Shadowbox
22717 height_special "totalheight"
22722 backgroundcolor "none"
22725 \begin_layout Plain Layout
22726 WARNING: This portion of the documentation has not been updated for some
22728 We certainly hope that it is still accurate, but there are no guarantees.
22736 \begin_layout Standard
22737 The use of material from sources external to \SpecialChar LyX
22738 is covered in detail in the
22744 This part of the manual covers what needs to happen behind the scenes for
22745 new sorts of material to be included.
22748 \begin_layout Section
22752 \begin_layout Standard
22753 The external material feature is based on the concept of a
22758 A template is a specification of how \SpecialChar LyX
22759 should interface with a certain kind
22761 As bundled, \SpecialChar LyX
22762 comes with predefined templates for Xfig figures, various
22763 raster format images, chess diagrams, and LilyPond music notation.
22764 You can check the actual list by using the menu
22765 \begin_inset Flex MenuItem
22768 \begin_layout Plain Layout
22769 Insert\SpecialChar menuseparator
22770 File\SpecialChar menuseparator
22777 Furthermore, it is possible to roll your own template to support a specific
22779 Later we'll describe in more detail what is involved, and hopefully you
22780 will submit all the templates you create so we can include them in a later
22785 \begin_layout Standard
22786 Another basic idea of the external material feature is to distinguish between
22787 the original file that serves as a base for final material and the produced
22788 file that is included in your exported or printed document.
22789 For example, consider the case of a figure produced with
22790 \begin_inset Flex Code
22793 \begin_layout Plain Layout
22800 The Xfig application itself works on an original file with the
22801 \begin_inset Flex Code
22804 \begin_layout Plain Layout
22811 Within Xfig, you create and change your figure, and when you are done,
22813 \begin_inset Flex Code
22816 \begin_layout Plain Layout
22823 When you want to include the figure in your document, you invoke
22824 \begin_inset Flex Code
22827 \begin_layout Plain Layout
22833 in order to create a PostScript file that can readily be included in your
22837 \begin_inset Flex Code
22840 \begin_layout Plain Layout
22846 file is the original file, and the PostScript file is the produced file.
22849 \begin_layout Standard
22850 This distinction is important in order to allow updating of the material
22851 while you are in the process of writing the document.
22852 Furthermore, it provides us with the flexibility that is needed to support
22853 multiple export formats.
22854 For instance, in the case of a plain text file, it is not exactly an award-winn
22855 ing idea to include the figure as raw PostScript.
22856 Instead, you would either prefer to just include a reference to the figure
22857 or try to invoke some graphics to ASCII converter to make the final result
22858 look similar to the real graphics.
22859 The external material management allows you to do this, because it is parametri
22860 zed on the different export formats that \SpecialChar LyX
22864 \begin_layout Standard
22865 Besides supporting the production of different products according to the
22866 exported format, it supports tight integration with editing and viewing
22868 In the case of an Xfig figure, you are able to invoke Xfig on the original
22869 file with a single click from within the external material dialog in \SpecialChar LyX
22871 and also preview the produced PostScript file with Ghostview with another
22873 No more fiddling around with the command line and/or file browsers to locate
22874 and manipulate the original or produced files.
22875 In this way, you are finally able to take full advantage of the many different
22876 applications that are relevant to use when you write your documents, and
22877 ultimately be more productive.
22880 \begin_layout Section
22881 The external template configuration file
22884 \begin_layout Standard
22885 It is relatively easy to add custom external template definitions to \SpecialChar LyX
22887 However, be aware that doing this in an careless manner most probably
22891 introduce an easily exploitable security hole.
22892 So before you do this, please read the discussion about security in
22893 \begin_inset CommandInset ref
22895 reference "sec:Security-discussion"
22902 \begin_layout Standard
22903 Having said that, we encourage you to submit any interesting templates that
22908 \begin_layout Standard
22909 The external templates are defined in the
22910 \begin_inset Flex Code
22913 \begin_layout Plain Layout
22914 LyXDir/lib/external_templates
22920 You can place your own version in
22921 \begin_inset Flex Code
22924 \begin_layout Plain Layout
22925 UserDir/external_templates
22933 \begin_layout Standard
22934 A typical template looks like this:
22937 \begin_layout LyX-Code
22941 \begin_layout LyX-Code
22942 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22945 \begin_layout LyX-Code
22949 \begin_layout LyX-Code
22953 \begin_layout LyX-Code
22957 \begin_layout LyX-Code
22961 \begin_layout LyX-Code
22965 \begin_layout LyX-Code
22966 AutomaticProduction true
22969 \begin_layout LyX-Code
22973 \begin_layout LyX-Code
22977 \begin_layout LyX-Code
22978 Format \SpecialChar LaTeX
22982 \begin_layout LyX-Code
22983 TransformCommand Rotate RotationLatexCommand
22986 \begin_layout LyX-Code
22987 TransformCommand Resize ResizeLatexCommand
22990 \begin_layout LyX-Code
22991 Product "$$RotateFront$$ResizeFront
22994 \begin_layout LyX-Code
22999 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
23002 \begin_layout LyX-Code
23003 $$ResizeBack$$RotateBack"
23006 \begin_layout LyX-Code
23010 \begin_layout LyX-Code
23011 UpdateResult "$$AbsPath$$Basename.pstex_t"
23014 \begin_layout LyX-Code
23015 Requirement "graphicx"
23018 \begin_layout LyX-Code
23019 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23022 \begin_layout LyX-Code
23023 ReferencedFile latex "$$AbsPath$$Basename.eps"
23026 \begin_layout LyX-Code
23027 ReferencedFile dvi "$$AbsPath$$Basename.eps"
23030 \begin_layout LyX-Code
23034 \begin_layout LyX-Code
23035 Format PDF\SpecialChar LaTeX
23039 \begin_layout LyX-Code
23040 TransformCommand Rotate RotationLatexCommand
23043 \begin_layout LyX-Code
23044 TransformCommand Resize ResizeLatexCommand
23047 \begin_layout LyX-Code
23048 Product "$$RotateFront$$ResizeFront
23051 \begin_layout LyX-Code
23056 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
23059 \begin_layout LyX-Code
23060 $$ResizeBack$$RotateBack"
23063 \begin_layout LyX-Code
23064 UpdateFormat pdftex
23067 \begin_layout LyX-Code
23068 UpdateResult "$$AbsPath$$Basename.pdftex_t"
23071 \begin_layout LyX-Code
23072 Requirement "graphicx"
23075 \begin_layout LyX-Code
23076 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
23079 \begin_layout LyX-Code
23080 ReferencedFile latex "$$AbsPath$$Basename.pdf"
23083 \begin_layout LyX-Code
23087 \begin_layout LyX-Code
23091 \begin_layout LyX-Code
23092 Product "$$Contents(
23094 "$$AbsPath$$Basename.asc
23099 \begin_layout LyX-Code
23100 UpdateFormat asciixfig
23103 \begin_layout LyX-Code
23104 UpdateResult "$$AbsPath$$Basename.asc"
23107 \begin_layout LyX-Code
23111 \begin_layout LyX-Code
23115 \begin_layout LyX-Code
23116 Product "<graphic fileref=
23118 "$$AbsOrRelPathMaster$$Basename.eps
23123 \begin_layout LyX-Code
23127 \begin_layout LyX-Code
23131 \begin_layout LyX-Code
23132 UpdateResult "$$AbsPath$$Basename.eps"
23135 \begin_layout LyX-Code
23136 ReferencedFile docbook "$$AbsPath$$Basename.eps"
23139 \begin_layout LyX-Code
23140 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
23143 \begin_layout LyX-Code
23147 \begin_layout LyX-Code
23148 Product "[XFig: $$FName]"
23151 \begin_layout LyX-Code
23155 \begin_layout LyX-Code
23159 \begin_layout Standard
23160 As you can see, the template is enclosed in
23161 \begin_inset Flex Code
23164 \begin_layout Plain Layout
23172 \begin_inset Flex Code
23175 \begin_layout Plain Layout
23182 It contains a header specifying some general settings and, for each supported
23183 primary document file format, a section
23184 \begin_inset Flex Code
23187 \begin_layout Plain Layout
23195 \begin_inset Flex Code
23198 \begin_layout Plain Layout
23207 \begin_layout Subsection
23208 The template header
23211 \begin_layout Description
23212 \begin_inset Flex Code
23215 \begin_layout Plain Layout
23216 AutomaticProduction
23217 \begin_inset space ~
23225 Whether the file represented by the template must be generated by \SpecialChar LyX
23227 This command must occur exactly once.
23230 \begin_layout Description
23231 \begin_inset Flex Code
23234 \begin_layout Plain Layout
23236 \begin_inset space ~
23244 A glob pattern that is used in the file dialog to filter out the desired
23246 If there is more than one possible file extension (e.
23247 \begin_inset space \thinspace{}
23251 \begin_inset space \space{}
23255 \begin_inset Flex Code
23258 \begin_layout Plain Layout
23265 \begin_inset Flex Code
23268 \begin_layout Plain Layout
23274 ), use something like
23275 \begin_inset Flex Code
23278 \begin_layout Plain Layout
23285 This command must occur exactly once.
23288 \begin_layout Description
23289 \begin_inset Flex Code
23292 \begin_layout Plain Layout
23294 \begin_inset space ~
23302 The text that is displayed on the button.
23303 This command must occur exactly once.
23306 \begin_layout Description
23307 \begin_inset Flex Code
23310 \begin_layout Plain Layout
23312 \begin_inset space ~
23316 \begin_inset space ~
23324 The help text that is used in the External dialog.
23325 Provide enough information to explain to the user just what the template
23326 can provide him with.
23327 This command must occur exactly once.
23330 \begin_layout Description
23331 \begin_inset Flex Code
23334 \begin_layout Plain Layout
23336 \begin_inset space ~
23344 The file format of the original file.
23345 This must be the name of a format that is known to \SpecialChar LyX
23347 \begin_inset CommandInset ref
23349 reference "sec:Formats"
23355 \begin_inset Quotes eld
23359 \begin_inset Flex Code
23362 \begin_layout Plain Layout
23369 \begin_inset Quotes erd
23372 if the template can handle original files of more than one format.
23374 will attempt to interrogate the file itself in order to deduce its format
23376 This command must occur exactly once.
23379 \begin_layout Description
23380 \begin_inset Flex Code
23383 \begin_layout Plain Layout
23385 \begin_inset space ~
23393 A unique name for the template.
23394 It must not contain substitution macros (see below).
23397 \begin_layout Description
23398 \begin_inset Flex Code
23401 \begin_layout Plain Layout
23403 \begin_inset space ~
23406 Rotate|Resize|Clip|Extra
23411 This command specifies which transformations are supported by this template.
23412 It may occur zero or more times.
23413 This command enables the corresponding tabs in the external dialog.
23415 \begin_inset Flex Code
23418 \begin_layout Plain Layout
23424 command must have either a corresponding
23425 \begin_inset Flex Code
23428 \begin_layout Plain Layout
23435 \begin_inset Flex Code
23438 \begin_layout Plain Layout
23445 \begin_inset Flex Code
23448 \begin_layout Plain Layout
23455 Otherwise the transformation will not be supported by that format.
23458 \begin_layout Subsection
23462 \begin_layout Description
23463 \begin_inset Flex Code
23466 \begin_layout Plain Layout
23468 \begin_inset space ~
23471 LaTeX|PDFLaTeX|PlainText|DocBook
23476 The primary document file format that this format definition is for.
23477 Not every template has a sensible representation in all document file formats.
23478 Please define nevertheless a
23479 \begin_inset Flex Code
23482 \begin_layout Plain Layout
23488 section for all templates.
23489 Use a dummy text when no representation is available.
23490 Then you can at least see a reference to the external material in the exported
23494 \begin_layout Description
23495 \begin_inset Flex Code
23498 \begin_layout Plain Layout
23500 \begin_inset space ~
23504 \begin_inset space ~
23512 This command defines an additional macro
23513 \begin_inset Flex Code
23516 \begin_layout Plain Layout
23522 for substitution in
23523 \begin_inset Flex Code
23526 \begin_layout Plain Layout
23534 \begin_inset Flex Code
23537 \begin_layout Plain Layout
23543 itself may contain substitution macros.
23544 The advantage over using
23545 \begin_inset Flex Code
23548 \begin_layout Plain Layout
23555 \begin_inset Flex Code
23558 \begin_layout Plain Layout
23564 is that the substituted value of
23565 \begin_inset Flex Code
23568 \begin_layout Plain Layout
23574 is sanitized so that it is a valid optional argument in the document format.
23575 This command may occur zero or more times.
23578 \begin_layout Description
23579 \begin_inset Flex Code
23582 \begin_layout Plain Layout
23584 \begin_inset space ~
23592 The text that is inserted in the exported document.
23593 This is actually the most important command and can be quite complex.
23594 This command must occur exactly once.
23597 \begin_layout Description
23598 \begin_inset Flex Code
23601 \begin_layout Plain Layout
23603 \begin_inset space ~
23611 This command specifies a preamble snippet that will be included in the
23614 It has to be defined using
23615 \begin_inset Flex Code
23618 \begin_layout Plain Layout
23626 \begin_inset Flex Code
23629 \begin_layout Plain Layout
23636 This command may occur zero or more times.
23639 \begin_layout Description
23640 \begin_inset Flex Code
23643 \begin_layout Plain Layout
23645 \begin_inset space ~
23649 \begin_inset space ~
23657 This command denotes files that are created by the conversion process and
23658 are needed for a particular export format.
23659 If the filename is relative, it is interpreted relative to the master document.
23660 This command may be given zero or more times.
23663 \begin_layout Description
23664 \begin_inset Flex Code
23667 \begin_layout Plain Layout
23669 \begin_inset space ~
23677 The name of a required \SpecialChar LaTeX
23679 The package is included via
23680 \begin_inset Flex Code
23683 \begin_layout Plain Layout
23691 in the \SpecialChar LaTeX
23693 This command may occur zero or more times.
23696 \begin_layout Description
23697 \begin_inset Flex Code
23700 \begin_layout Plain Layout
23702 \begin_inset space ~
23706 \begin_inset space ~
23709 RotationLatexCommand
23714 This command specifies that the built in \SpecialChar LaTeX
23715 command should be used for rotation.
23716 This command may occur once or not at all.
23719 \begin_layout Description
23720 \begin_inset Flex Code
23723 \begin_layout Plain Layout
23725 \begin_inset space ~
23729 \begin_inset space ~
23737 This command specifies that the built in \SpecialChar LaTeX
23738 command should be used for resizing.
23739 This command may occur once or not at all.
23742 \begin_layout Description
23743 \begin_inset Flex Code
23746 \begin_layout Plain Layout
23748 \begin_inset space ~
23752 \begin_inset space ~
23755 RotationLatexOption
23760 This command specifies that rotation is done via an optional argument.
23761 This command may occur once or not at all.
23764 \begin_layout Description
23765 \begin_inset Flex Code
23768 \begin_layout Plain Layout
23770 \begin_inset space ~
23774 \begin_inset space ~
23782 This command specifies that resizing is done via an optional argument.
23783 This command may occur once or not at all.
23786 \begin_layout Description
23787 \begin_inset Flex Code
23790 \begin_layout Plain Layout
23792 \begin_inset space ~
23796 \begin_inset space ~
23804 This command specifies that clipping is done via an optional argument.
23805 This command may occur once or not at all.
23808 \begin_layout Description
23809 \begin_inset Flex Code
23812 \begin_layout Plain Layout
23814 \begin_inset space ~
23818 \begin_inset space ~
23826 This command specifies that an extra optional argument is used.
23827 This command may occur once or not at all.
23830 \begin_layout Description
23831 \begin_inset Flex Code
23834 \begin_layout Plain Layout
23836 \begin_inset space ~
23844 The file format of the converted file.
23845 This must be the name of a format that is known to \SpecialChar LyX
23847 \begin_inset Flex MenuItem
23850 \begin_layout Plain Layout
23851 Tools\SpecialChar menuseparator
23852 Preferences\SpecialChar menuseparator
23853 File Handling\SpecialChar menuseparator
23860 This command must occur exactly once.
23861 If the resulting file format is PDF, you need to specify the format
23862 \begin_inset Flex Code
23865 \begin_layout Plain Layout
23872 This is the PDF format used for including graphics.
23873 The other defined PDF formats are for document export.
23876 \begin_layout Description
23877 \begin_inset Flex Code
23880 \begin_layout Plain Layout
23882 \begin_inset space ~
23890 The file name of the converted file.
23891 The file name must be absolute.
23892 This command must occur exactly once.
23895 \begin_layout Subsection
23896 Preamble definitions
23899 \begin_layout Standard
23900 The external template configuration file may contain additional preamble
23901 definitions enclosed by
23902 \begin_inset Flex Code
23905 \begin_layout Plain Layout
23913 \begin_inset Flex Code
23916 \begin_layout Plain Layout
23923 They can be used by the templates in the
23924 \begin_inset Flex Code
23927 \begin_layout Plain Layout
23936 \begin_layout Section
23937 The substitution mechanism
23940 \begin_layout Standard
23941 When the external material facility invokes an external program, it is done
23942 on the basis of a command defined in the template configuration file.
23943 These commands can contain various macros that are expanded before execution.
23944 Execution always take place in the directory of the containing document.
23947 \begin_layout Standard
23948 Also, whenever external material is to be displayed, the name will be produced
23949 by the substitution mechanism, and most other commands in the template
23950 definition support substitution as well.
23953 \begin_layout Standard
23954 The available macros are the following:
23957 \begin_layout Description
23958 \begin_inset Flex Code
23961 \begin_layout Plain Layout
23962 $$AbsOrRelPathMaster
23967 The file path, absolute or relative to the master \SpecialChar LyX
23971 \begin_layout Description
23972 \begin_inset Flex Code
23975 \begin_layout Plain Layout
23976 $$AbsOrRelPathParent
23981 The file path, absolute or relative to the \SpecialChar LyX
23985 \begin_layout Description
23986 \begin_inset Flex Code
23989 \begin_layout Plain Layout
23995 The absolute file path.
23998 \begin_layout Description
23999 \begin_inset Flex Code
24002 \begin_layout Plain Layout
24008 The filename without path and without the extension.
24011 \begin_layout Description
24012 \begin_inset Flex Code
24015 \begin_layout Plain Layout
24017 \begin_inset Quotes eld
24021 \begin_inset Quotes erd
24029 This macro will expand to the contents of the file with the name
24030 \begin_inset Flex Code
24033 \begin_layout Plain Layout
24042 \begin_layout Description
24043 \begin_inset Flex Code
24046 \begin_layout Plain Layout
24052 The file extension (including the dot).
24053 \change_inserted -195340706 1437418878
24057 \begin_layout Description
24059 \change_inserted -195340706 1437418878
24060 \begin_inset Flex Code
24063 \begin_layout Plain Layout
24065 \change_inserted -195340706 1437418878
24071 This will be the string
24072 \begin_inset Quotes eld
24076 \begin_inset Quotes erd
24079 if the file is in JPEG format, otherwise it will be the string
24080 \begin_inset Quotes eld
24084 \begin_inset Quotes erd
24088 This is useful to avoid uneeded conversions for output formats that support
24089 both PNG and JPEG fomats.
24090 The predefined RasterImage template uses this macro for the PDFL
24091 \change_deleted -712698321 1437634446
24093 \change_inserted -712698321 1437634446
24095 \change_inserted -195340706 1437418878
24101 \begin_layout Description
24102 \begin_inset Flex Code
24105 \begin_layout Plain Layout
24111 The filename of the file specified in the external material dialog.
24112 This is either an absolute name, or it is relative to the \SpecialChar LyX
24116 \begin_layout Description
24117 \begin_inset Flex Code
24120 \begin_layout Plain Layout
24127 \begin_inset Flex Code
24130 \begin_layout Plain Layout
24136 (absolute name or relative to the \SpecialChar LyX
24140 \begin_layout Description
24141 \begin_inset Flex Code
24144 \begin_layout Plain Layout
24150 The file path, relative to the master \SpecialChar LyX
24154 \begin_layout Description
24155 \begin_inset Flex Code
24158 \begin_layout Plain Layout
24164 The file path, relative to the \SpecialChar LyX
24168 \begin_layout Description
24169 \begin_inset Flex Code
24172 \begin_layout Plain Layout
24178 This macro will expand to the absolute path of the system directory.
24179 This is typically used to point to the various helper scripts that are
24180 bundled with \SpecialChar LyX
24184 \begin_layout Description
24185 \begin_inset Flex Code
24188 \begin_layout Plain Layout
24194 A name and full path to a temporary file which will be automatically deleted
24195 whenever the containing document is closed, or the external material insertion
24199 \begin_layout Standard
24200 All path macros contain a trailing directory separator, so you can construct
24202 \begin_inset space \thinspace{}
24206 \begin_inset space \space{}
24209 the absolute filename with
24210 \begin_inset Flex Code
24213 \begin_layout Plain Layout
24214 $$AbsPath$$Basename$$Extension
24222 \begin_layout Standard
24223 The macros above are substituted in all commands unless otherwise noted.
24225 \begin_inset Flex Code
24228 \begin_layout Plain Layout
24234 supports additionally the following substitutions if they are enabled by
24236 \begin_inset Flex Code
24239 \begin_layout Plain Layout
24246 \begin_inset Flex Code
24249 \begin_layout Plain Layout
24258 \begin_layout Description
24259 \begin_inset Flex Code
24262 \begin_layout Plain Layout
24268 The front part of the resize command.
24271 \begin_layout Description
24272 \begin_inset Flex Code
24275 \begin_layout Plain Layout
24281 The back part of the resize command.
24284 \begin_layout Description
24285 \begin_inset Flex Code
24288 \begin_layout Plain Layout
24294 The front part of the rotation command.
24297 \begin_layout Description
24298 \begin_inset Flex Code
24301 \begin_layout Plain Layout
24307 The back part of the rotation command.
24310 \begin_layout Standard
24311 The value string of the
24312 \begin_inset Flex Code
24315 \begin_layout Plain Layout
24321 command supports additionally the following substitutions if they are enabled
24323 \begin_inset Flex Code
24326 \begin_layout Plain Layout
24333 \begin_inset Flex Code
24336 \begin_layout Plain Layout
24345 \begin_layout Description
24346 \begin_inset Flex Code
24349 \begin_layout Plain Layout
24358 \begin_layout Description
24359 \begin_inset Flex Code
24362 \begin_layout Plain Layout
24371 \begin_layout Description
24372 \begin_inset Flex Code
24375 \begin_layout Plain Layout
24384 \begin_layout Description
24385 \begin_inset Flex Code
24388 \begin_layout Plain Layout
24394 The rotation option.
24397 \begin_layout Standard
24398 You may ask why there are so many path macros.
24399 There are mainly two reasons:
24402 \begin_layout Enumerate
24403 Relative and absolute file names should remain relative or absolute, respectivel
24405 Users may have reasons to prefer either form.
24406 Relative names are useful for portable documents that should work on different
24407 machines, for example.
24408 Absolute names may be required by some programs.
24411 \begin_layout Enumerate
24413 treats relative file names differently than \SpecialChar LyX
24414 and other programs in nested
24416 For \SpecialChar LyX
24417 , a relative file name is always relative to the document that contains
24419 For \SpecialChar LaTeX
24420 , it is always relative to the master document.
24421 These two definitions are identical if you have only one document, but
24422 differ if you have a master document that includes part documents.
24423 That means that relative filenames must be transformed when presented to
24426 Fortunately \SpecialChar LyX
24427 does this automatically for you if you choose the right macros.
24430 \begin_layout Standard
24431 So which path macro should be used in new template definitions? The rule
24435 \begin_layout Itemize
24437 \begin_inset Flex Code
24440 \begin_layout Plain Layout
24446 if an absolute path is required.
24449 \begin_layout Itemize
24451 \begin_inset Flex Code
24454 \begin_layout Plain Layout
24455 $$AbsOrRelPathMaster
24460 if the substituted string is some kind of \SpecialChar LaTeX
24464 \begin_layout Itemize
24466 \begin_inset Flex Code
24469 \begin_layout Plain Layout
24470 $$AbsOrRelPathParent
24475 in order to preserve the user's choice.
24478 \begin_layout Standard
24479 There are special cases where this rule does not work and e.
24480 \begin_inset space \thinspace{}
24484 \begin_inset space \space{}
24487 relative names are needed, but normally it will work just fine.
24488 One example for such a case is the command
24489 \begin_inset Flex Code
24492 \begin_layout Plain Layout
24493 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24498 in the XFig template above: We can't use the absolute name because the
24500 \begin_inset Flex Code
24503 \begin_layout Plain Layout
24509 files needs the relative name in order to rewrite the file content.
24512 \begin_layout Section
24513 Security discussion
24514 \begin_inset CommandInset label
24516 name "sec:Security-discussion"
24523 \begin_layout Standard
24524 The external material feature interfaces with a lot of external programs
24525 and does so automatically, so we have to consider the security implications
24527 In particular, since you have the option of including your own filenames
24528 and/or parameter strings and those are expanded into a command, it seems
24529 that it would be possible to create a malicious document which executes
24530 arbitrary commands when a user views or prints the document.
24531 This is something we definitely want to avoid.
24534 \begin_layout Standard
24535 However, since the external program commands are specified in the template
24536 configuration file only, there are no security issues if \SpecialChar LyX
24537 is properly configure
24538 d with safe templates only.
24539 This is so because the external programs are invoked with the
24540 \begin_inset Flex Code
24543 \begin_layout Plain Layout
24549 -system call rather than the
24550 \begin_inset Flex Code
24553 \begin_layout Plain Layout
24559 system-call, so it's not possible to execute arbitrary commands from the
24560 filename or parameter section via the shell.
24563 \begin_layout Standard
24564 This also implies that you are restricted in what command strings you can
24565 use in the external material templates.
24566 In particular, pipes and redirection are not readily available.
24567 This has to be so if \SpecialChar LyX
24568 should remain safe.
24569 If you want to use some of the shell features, you should write a safe
24570 script to do this in a controlled manner, and then invoke the script from
24571 the command string.
24575 \begin_layout Standard
24576 It is possible to design a template that interacts directly with the shell,
24577 but since this would allow a malicious user to execute arbitrary commands
24578 by writing clever filenames and/or parameters, we generally recommend that
24579 you only use safe scripts that work with the
24580 \begin_inset Flex Code
24583 \begin_layout Plain Layout
24589 system call in a controlled manner.
24590 Of course, for use in a controlled environment, it can be tempting to just
24591 fall back to use ordinary shell scripts.
24592 If you do so, be aware that you
24596 provide an easily exploitable security hole in your system.
24597 Of course it stands to reason that such unsafe templates will never be
24598 included in the standard \SpecialChar LyX
24599 distribution, although we do encourage people
24600 to submit new templates in the open source tradition.
24601 But \SpecialChar LyX
24602 as shipped from the official distribution channels will never have
24606 \begin_layout Standard
24607 Including external material provides a lot of power, and you have to be
24608 careful not to introduce security hazards with this power.
24609 A subtle error in a single line in an innocent looking script can open
24610 the door to huge security problems.
24611 So if you do not fully understand the issues, we recommend that you consult
24612 a knowledgeable security professional or the \SpecialChar LyX
24613 development team if you have
24614 any questions about whether a given template is safe or not.
24615 And do this before you use it in an uncontrolled environment.
24618 \begin_layout Chapter
24620 List of supported \SpecialChar LyX
24621 functions to be used in layouts
24622 \begin_inset CommandInset label
24624 name "chap:List-of-functions"
24631 \begin_layout Standard
24633 \begin_inset Tabular
24634 <lyxtabular version="3" rows="11" columns="8">
24635 <features tabularvalignment="middle">
24636 <column alignment="left" valignment="top">
24637 <column alignment="left" valignment="top">
24638 <column alignment="left" valignment="top">
24639 <column alignment="left" valignment="top">
24640 <column alignment="left" valignment="top">
24641 <column alignment="left" valignment="top">
24642 <column alignment="left" valignment="top">
24643 <column alignment="left" valignment="top">
24645 <cell alignment="left" valignment="top" usebox="none">
24648 \begin_layout Plain Layout
24654 <cell alignment="left" valignment="top" usebox="none">
24657 \begin_layout Plain Layout
24663 <cell alignment="left" valignment="top" usebox="none">
24666 \begin_layout Plain Layout
24672 <cell alignment="left" valignment="top" usebox="none">
24675 \begin_layout Plain Layout
24681 <cell alignment="center" valignment="top" usebox="none">
24684 \begin_layout Plain Layout
24690 <cell alignment="center" valignment="top" usebox="none">
24693 \begin_layout Plain Layout
24699 <cell alignment="center" valignment="top" usebox="none">
24702 \begin_layout Plain Layout
24708 <cell alignment="center" valignment="top" usebox="none">
24711 \begin_layout Plain Layout
24719 <cell alignment="left" valignment="top" usebox="none">
24722 \begin_layout Plain Layout
24728 <cell alignment="left" valignment="top" usebox="none">
24731 \begin_layout Plain Layout
24737 <cell alignment="left" valignment="top" usebox="none">
24740 \begin_layout Plain Layout
24746 <cell alignment="left" valignment="top" usebox="none">
24749 \begin_layout Plain Layout
24755 <cell alignment="center" valignment="top" usebox="none">
24758 \begin_layout Plain Layout
24764 <cell alignment="center" valignment="top" usebox="none">
24767 \begin_layout Plain Layout
24773 <cell alignment="center" valignment="top" usebox="none">
24776 \begin_layout Plain Layout
24782 <cell alignment="center" valignment="top" usebox="none">
24785 \begin_layout Plain Layout
24793 <cell alignment="left" valignment="top" usebox="none">
24796 \begin_layout Plain Layout
24802 <cell alignment="left" valignment="top" usebox="none">
24805 \begin_layout Plain Layout
24811 <cell alignment="left" valignment="top" usebox="none">
24814 \begin_layout Plain Layout
24820 <cell alignment="left" valignment="top" usebox="none">
24823 \begin_layout Plain Layout
24829 <cell alignment="center" valignment="top" usebox="none">
24832 \begin_layout Plain Layout
24838 <cell alignment="center" valignment="top" usebox="none">
24841 \begin_layout Plain Layout
24847 <cell alignment="center" valignment="top" usebox="none">
24850 \begin_layout Plain Layout
24856 <cell alignment="center" valignment="top" usebox="none">
24859 \begin_layout Plain Layout
24867 <cell alignment="left" valignment="top" usebox="none">
24870 \begin_layout Plain Layout
24876 <cell alignment="left" valignment="top" usebox="none">
24879 \begin_layout Plain Layout
24885 <cell alignment="left" valignment="top" usebox="none">
24888 \begin_layout Plain Layout
24894 <cell alignment="left" valignment="top" usebox="none">
24897 \begin_layout Plain Layout
24903 <cell alignment="center" valignment="top" usebox="none">
24906 \begin_layout Plain Layout
24912 <cell alignment="center" valignment="top" usebox="none">
24915 \begin_layout Plain Layout
24921 <cell alignment="center" valignment="top" usebox="none">
24924 \begin_layout Plain Layout
24930 <cell alignment="center" valignment="top" usebox="none">
24933 \begin_layout Plain Layout
24941 <cell alignment="left" valignment="top" usebox="none">
24944 \begin_layout Plain Layout
24950 <cell alignment="left" valignment="top" usebox="none">
24953 \begin_layout Plain Layout
24959 <cell alignment="left" valignment="top" usebox="none">
24962 \begin_layout Plain Layout
24968 <cell alignment="left" valignment="top" usebox="none">
24971 \begin_layout Plain Layout
24977 <cell alignment="center" valignment="top" usebox="none">
24980 \begin_layout Plain Layout
24986 <cell alignment="center" valignment="top" usebox="none">
24989 \begin_layout Plain Layout
24995 <cell alignment="center" valignment="top" usebox="none">
24998 \begin_layout Plain Layout
25004 <cell alignment="center" valignment="top" usebox="none">
25007 \begin_layout Plain Layout
25015 <cell alignment="left" valignment="top" usebox="none">
25018 \begin_layout Plain Layout
25024 <cell alignment="left" valignment="top" usebox="none">
25027 \begin_layout Plain Layout
25033 <cell alignment="left" valignment="top" usebox="none">
25036 \begin_layout Plain Layout
25042 <cell alignment="left" valignment="top" usebox="none">
25045 \begin_layout Plain Layout
25051 <cell alignment="center" valignment="top" usebox="none">
25054 \begin_layout Plain Layout
25060 <cell alignment="center" valignment="top" usebox="none">
25063 \begin_layout Plain Layout
25069 <cell alignment="center" valignment="top" usebox="none">
25072 \begin_layout Plain Layout
25078 <cell alignment="center" valignment="top" usebox="none">
25081 \begin_layout Plain Layout
25089 <cell alignment="left" valignment="top" usebox="none">
25092 \begin_layout Plain Layout
25098 <cell alignment="left" valignment="top" usebox="none">
25101 \begin_layout Plain Layout
25107 <cell alignment="left" valignment="top" usebox="none">
25110 \begin_layout Plain Layout
25116 <cell alignment="left" valignment="top" usebox="none">
25119 \begin_layout Plain Layout
25125 <cell alignment="center" valignment="top" usebox="none">
25128 \begin_layout Plain Layout
25134 <cell alignment="center" valignment="top" usebox="none">
25137 \begin_layout Plain Layout
25143 <cell alignment="center" valignment="top" usebox="none">
25146 \begin_layout Plain Layout
25152 <cell alignment="center" valignment="top" usebox="none">
25155 \begin_layout Plain Layout
25163 <cell alignment="left" valignment="top" usebox="none">
25166 \begin_layout Plain Layout
25172 <cell alignment="left" valignment="top" usebox="none">
25175 \begin_layout Plain Layout
25181 <cell alignment="left" valignment="top" usebox="none">
25184 \begin_layout Plain Layout
25190 <cell alignment="left" valignment="top" usebox="none">
25193 \begin_layout Plain Layout
25199 <cell alignment="center" valignment="top" usebox="none">
25202 \begin_layout Plain Layout
25208 <cell alignment="center" valignment="top" usebox="none">
25211 \begin_layout Plain Layout
25217 <cell alignment="center" valignment="top" usebox="none">
25220 \begin_layout Plain Layout
25226 <cell alignment="center" valignment="top" usebox="none">
25229 \begin_layout Plain Layout
25237 <cell alignment="left" valignment="top" usebox="none">
25240 \begin_layout Plain Layout
25246 <cell alignment="left" valignment="top" usebox="none">
25249 \begin_layout Plain Layout
25255 <cell alignment="left" valignment="top" usebox="none">
25258 \begin_layout Plain Layout
25264 <cell alignment="left" valignment="top" usebox="none">
25267 \begin_layout Plain Layout
25273 <cell alignment="center" valignment="top" usebox="none">
25276 \begin_layout Plain Layout
25282 <cell alignment="center" valignment="top" usebox="none">
25285 \begin_layout Plain Layout
25291 <cell alignment="center" valignment="top" usebox="none">
25294 \begin_layout Plain Layout
25300 <cell alignment="center" valignment="top" usebox="none">
25303 \begin_layout Plain Layout
25311 <cell alignment="left" valignment="top" usebox="none">
25314 \begin_layout Plain Layout
25320 <cell alignment="left" valignment="top" usebox="none">
25323 \begin_layout Plain Layout
25329 <cell alignment="left" valignment="top" usebox="none">
25332 \begin_layout Plain Layout
25338 <cell alignment="left" valignment="top" usebox="none">
25341 \begin_layout Plain Layout
25347 <cell alignment="center" valignment="top" usebox="none">
25350 \begin_layout Plain Layout
25356 <cell alignment="center" valignment="top" usebox="none">
25359 \begin_layout Plain Layout
25365 <cell alignment="center" valignment="top" usebox="none">
25368 \begin_layout Plain Layout
25374 <cell alignment="center" valignment="top" usebox="none">
25377 \begin_layout Plain Layout
25385 <cell alignment="center" valignment="top" usebox="none">
25388 \begin_layout Plain Layout
25394 <cell alignment="center" valignment="top" usebox="none">
25397 \begin_layout Plain Layout
25403 <cell alignment="center" valignment="top" usebox="none">
25406 \begin_layout Plain Layout
25412 <cell alignment="center" valignment="top" usebox="none">
25415 \begin_layout Plain Layout
25421 <cell alignment="center" valignment="top" usebox="none">
25424 \begin_layout Plain Layout
25430 <cell alignment="center" valignment="top" usebox="none">
25433 \begin_layout Plain Layout
25439 <cell alignment="center" valignment="top" usebox="none">
25442 \begin_layout Plain Layout
25448 <cell alignment="center" valignment="top" usebox="none">
25451 \begin_layout Plain Layout
25465 \begin_layout Chapter
25466 Names of available colors to be used in layouts
25467 \begin_inset CommandInset label
25469 name "chap:Names-of-colors"
25476 \begin_layout Standard
25477 The colors listed here are the standard colors and the those that you can
25478 adjust in the \SpecialChar LyX
25482 \begin_layout Description
25495 No particular color – clear or default
25498 \begin_layout Description
25502 \begin_layout Description
25506 \begin_layout Description
25510 \begin_layout Description
25514 \begin_layout Description
25518 \begin_layout Description
25522 \begin_layout Description
25526 \begin_layout Description
25530 \begin_layout Description
25531 added_space Added space marker color
25534 \begin_layout Description
25535 addedtext Added text color
25538 \begin_layout Description
25539 appendix Appendix marker color
25542 \begin_layout Description
25543 background Background color
25546 \begin_layout Description
25547 bottomarea Bottom area color
25550 \begin_layout Description
25551 branchlabel Label color for branches
25554 \begin_layout Description
25555 buttonbg Color used for bottom background
25558 \begin_layout Description
25559 buttonhoverbg Color used for button background under focus
25562 \begin_layout Description
25563 buttonframe Color for inset button frames
25566 \begin_layout Description
25567 changebar Changebar color
25570 \begin_layout Description
25571 changedtextauthor1 Changed text color author 1
25574 \begin_layout Description
25575 changedtextauthor2 Changed text color author 2
25578 \begin_layout Description
25579 changedtextauthor3 Changed text color author 3
25582 \begin_layout Description
25583 changedtextauthor4 Changed text color author 4
25586 \begin_layout Description
25587 changedtextauthor5 Changed text color author 5
25590 \begin_layout Description
25591 collapsable_inset_frame Collapsable insets framecolor
25594 \begin_layout Description
25595 collapsable_inset_text Collapsable insets text color
25598 \begin_layout Description
25599 command Text color for command insets
25602 \begin_layout Description
25603 commandbg Background color for command insets
25606 \begin_layout Description
25607 commandframe Frame color for command insets
25610 \begin_layout Description
25611 comment color for comments
25614 \begin_layout Description
25615 commentbg Background color of comments
25618 \begin_layout Description
25619 cursor Cursor color
25622 \begin_layout Description
25623 deletedtext Deleted text color
25626 \begin_layout Description
25627 deletedtextmodifier Deleted text modifying color
25630 \begin_layout Description
25631 depthbar Color for the depth bars in the margin
25634 \begin_layout Description
25635 eolmarker End of line marker color
25638 \begin_layout Description
25639 error Color of the \SpecialChar LaTeX
25643 \begin_layout Description
25644 footlabel Label color for footnotes
25647 \begin_layout Description
25648 graphicsbg Graphics inset background color
25651 \begin_layout Description
25652 greyedout Label color for greyedout insets
25655 \begin_layout Description
25656 greyedoutbg Background color of greyedout inset
25659 \begin_layout Description
25660 greyedouttext Color for greyedout inset text
25663 \begin_layout Description
25664 indexlabel Label color for index insets
25667 \begin_layout Description
25668 ignore The color is ignored
25671 \begin_layout Description
25672 inherit The color is inherited
25675 \begin_layout Description
25676 inlinecompletion Inline completion color
25679 \begin_layout Description
25680 insetbg Inset marker background color
25683 \begin_layout Description
25684 insetframe Inset marker frame color
25687 \begin_layout Description
25688 language Color for marking foreign language words
25691 \begin_layout Description
25692 latex Text color in \SpecialChar LaTeX
25696 \begin_layout Description
25697 listingsbg Background color of listings inset
25700 \begin_layout Description
25701 marginlabel Label color for margin notes
25704 \begin_layout Description
25705 math Math inset text color
25708 \begin_layout Description
25709 mathbg Math inset background color
25712 \begin_layout Description
25713 mathcorners Math inset frame color not under focus
25716 \begin_layout Description
25717 mathframe Math inset frame color under focus
25720 \begin_layout Description
25721 mathline Math line color
25724 \begin_layout Description
25725 mathmacrobg Macro math inset background color
25728 \begin_layout Description
25729 mathmacroblend Macro math blended color
25732 \begin_layout Description
25733 mathmacroframe Macro math frame color
25736 \begin_layout Description
25737 mathmacrohoverbg Macro math inset background color hovered
25740 \begin_layout Description
25741 mathmacrolabel Macro math label color
25744 \begin_layout Description
25745 mathmacronewarg Macro template color for new parameters
25748 \begin_layout Description
25749 mathmacrooldarg Macro template color for old parameters
25752 \begin_layout Description
25753 newpage New page color
25756 \begin_layout Description
25757 nonunique_inlinecompletion Inline completion color for the non-unique part
25760 \begin_layout Description
25761 notebg Background color of notes
25764 \begin_layout Description
25765 notelabel Label color for notes
25768 \begin_layout Description
25769 pagebreak Page break/line break color
25772 \begin_layout Description
25773 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25776 \begin_layout Description
25777 phantomtext Text color for phantom insets
25780 \begin_layout Description
25781 preview The color used for previews
25784 \begin_layout Description
25785 previewframe Preview frame color
25788 \begin_layout Description
25789 regexpframe Color for regexp frame
25792 \begin_layout Description
25793 selection Background color of selected text
25796 \begin_layout Description
25797 selectiontext Foreground color of selected text
25800 \begin_layout Description
25801 shadedbg Background color of shaded box
25804 \begin_layout Description
25805 special Special chars text color
25808 \begin_layout Description
25809 tabularline Table line color
25812 \begin_layout Description
25813 tabularonoffline Table line color
25816 \begin_layout Description
25817 urllabel Label color for URL insets
25820 \begin_layout Description
25821 urltext Color for URL inset text