1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
5 \origin /systemlyxdir/doc/
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 \addto\extrasenglish{%
39 \renewcommand*{\equationautorefname}[1]{}%
40 \renewcommand{\sectionautorefname}{sec.\negthinspace}%
41 \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
42 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
45 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
46 \use_default_options false
50 \maintain_unincluded_children false
53 InsetLayout Flex:MenuItem
62 \newcommand*{\menuitem}[1]{{\sffamily #1}}
65 # In case we need to do with sans...
66 #InsetLayout CharStyle:Code
71 #\renewcommand{\code}[1]{{\sffamily #1}}
76 \language_package default
81 \font_typewriter default
83 \font_default_family default
84 \use_non_tex_fonts false
90 \default_output_format default
92 \bibtex_command default
93 \index_command default
97 \pdf_title "LyX Configuration Manual"
98 \pdf_author "LyX Team"
99 \pdf_subject "LyX-documentation Customization"
100 \pdf_keywords "LyX, documentation, customization"
102 \pdf_bookmarksnumbered true
103 \pdf_bookmarksopen true
104 \pdf_bookmarksopenlevel 1
105 \pdf_breaklinks false
109 \pdf_pdfusetitle false
110 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
113 \use_package amsmath 0
114 \use_package amssymb 0
115 \use_package cancel 0
117 \use_package mathdots 1
118 \use_package mathtools 0
119 \use_package mhchem 0
120 \use_package stackrel 0
121 \use_package stmaryrd 0
122 \use_package undertilde 0
124 \cite_engine_type default
128 \paperorientation portrait
143 \paragraph_separation indent
144 \paragraph_indentation default
145 \quotes_language english
148 \paperpagestyle headings
149 \tracking_changes true
150 \output_changes false
154 \author -712698321 "Jürgen Spitzmüller"
155 \author -195340706 "Georg Baum"
156 \author 155139281 "Jrgen Spitzmller"
157 \author 274215730 "scott"
163 Customizing \SpecialChar LyX
164 : Features for the Advanced User
168 by the \SpecialChar LyX
173 \begin_layout Plain Layout
175 If you have comments or error corrections, please send them to the \SpecialChar LyX
178 \begin_inset CommandInset href
180 target "lyx-docs@lists.lyx.org"
187 \begin_inset Quotes eld
191 \begin_inset Quotes erd
194 in the subject header, and please cc the current maintainer of this file,
195 Richard Heck <rgheck@comcast.net>.
201 \begin_inset Newline newline
205 \begin_inset Newline newline
211 \begin_layout Standard
212 \begin_inset CommandInset toc
213 LatexCommand tableofcontents
220 \begin_layout Standard
221 \begin_inset Note Note
224 \begin_layout Plain Layout
225 Please use change tracking when modifying this document.
226 This makes it easier for our translators to recognize things that have
227 been changed, and it helps the maintainer keep up-to-date with what's been
236 \begin_layout Chapter
240 \begin_layout Standard
241 This manual covers the customization features present in \SpecialChar LyX
243 In it, we discuss issues like keyboard shortcuts, screen previewing options,
244 printer options, sending commands to \SpecialChar LyX
245 via the \SpecialChar LyX
246 Server, internationalization,
247 installing new \SpecialChar LaTeX
248 classes and \SpecialChar LyX
250 We can't possibly hope to touch on everything you can change—our developers
251 add new features faster than we can document them—but we will explain the
252 most common customizations and hopefully point you in the right direction
253 for some of the more obscure ones.
256 \begin_layout Standard
257 \begin_inset Branch OutDated
260 \begin_layout Standard
261 Information from previous versions of this document that now seems to be
262 outdated is contained in the OutDated branch of this document.
263 By default, this information will not appear in the \SpecialChar LaTeX
272 \begin_layout Chapter
277 \begin_layout Standard
278 This chapter aims to help you to find your way through the \SpecialChar LyX
281 Before continuing to read this chapter, you should find out where your
283 library and user directories are by using
284 \begin_inset Flex MenuItem
287 \begin_layout Plain Layout
288 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
315 \begin_inset Flex MenuItem
318 \begin_layout Plain Layout
324 in the remainder of this document.
328 \begin_layout Section
330 \begin_inset Flex Code
333 \begin_layout Plain Layout
343 \begin_layout Standard
344 \begin_inset Flex Code
347 \begin_layout Plain Layout
354 and its sub-directories contain a number of files and that can be used
355 to customize \SpecialChar LyX
357 You can change many of these files from within \SpecialChar LyX
359 \begin_inset Flex MenuItem
362 \begin_layout Plain Layout
363 Tools\SpecialChar menuseparator
370 Most customization that you will want to do in \SpecialChar LyX
371 is possible through this
373 However, many other inner aspects of \SpecialChar LyX
374 can be customized by modifying the
376 \begin_inset Flex Code
379 \begin_layout Plain Layout
387 These files fall in different categories, described in the following subsection
391 \begin_layout Subsection
392 Automatically generated files
395 \begin_layout Standard
396 The files, which are to be found in
397 \begin_inset Flex MenuItem
400 \begin_layout Plain Layout
406 , are generated when you configure \SpecialChar LyX
408 They contain various default values that are guessed by inspection.
409 In general, it is not a good idea to modify them, since they might be overwritt
413 \begin_layout Labeling
414 \labelwidthstring 00.00.0000
415 \begin_inset Flex Code
418 \begin_layout Plain Layout
424 contains defaults for various commands.
427 \begin_layout Labeling
428 \labelwidthstring 00.00.0000
429 \begin_inset Flex Code
432 \begin_layout Plain Layout
438 contains the list of packages that have been recognized by \SpecialChar LyX
440 It is currently unused by the \SpecialChar LyX
441 program itself, but the information extracted,
442 and more, is made available with
443 \begin_inset Flex MenuItem
446 \begin_layout Plain Layout
447 Help\SpecialChar menuseparator
461 \begin_layout Labeling
462 \labelwidthstring 00.00.0000
463 \begin_inset Flex Code
466 \begin_layout Plain Layout
472 the list of text classes that have been found in your
473 \begin_inset Flex Code
476 \begin_layout Plain Layout
482 directories, along with the associated \SpecialChar LaTeX
483 document class and their description.
486 \begin_layout Labeling
487 \labelwidthstring 00.00.0000
488 \begin_inset Flex Code
491 \begin_layout Plain Layout
497 the list of layout modules found in your
498 \begin_inset Flex Code
501 \begin_layout Plain Layout
510 \begin_layout Labeling
511 \labelwidthstring 00.00.0000
512 \begin_inset Flex Code
515 \begin_layout Plain Layout
521 lists of various sorts of \SpecialChar LaTeX
522 -related files found on your system
525 \begin_layout Labeling
526 \labelwidthstring 00.00.0000
527 \begin_inset Flex Code
530 \begin_layout Plain Layout
531 doc/\SpecialChar LaTeX
537 is automatically generated during configuration from the file
538 \begin_inset Flex Code
541 \begin_layout Plain Layout
549 It contains information on your \SpecialChar LaTeX
553 \begin_layout Subsection
557 \begin_layout Standard
558 These directories are duplicated between
559 \begin_inset Flex Code
562 \begin_layout Plain Layout
570 \begin_inset Flex Code
573 \begin_layout Plain Layout
580 If a particular files exists in both places, the one in
581 \begin_inset Flex Code
584 \begin_layout Plain Layout
593 \begin_layout Labeling
594 \labelwidthstring 00.00.0000
595 \begin_inset Flex Code
598 \begin_layout Plain Layout
604 this directory contains files with the extension
605 \begin_inset Flex Code
608 \begin_layout Plain Layout
614 that define the keybindings used in \SpecialChar LyX
616 If there exists an internationalized version of the bind file named
617 \begin_inset Flex Code
620 \begin_layout Plain Layout
626 , that will be used first.
629 \begin_layout Labeling
630 \labelwidthstring 00.00.0000
631 \begin_inset Flex Code
634 \begin_layout Plain Layout
640 contains graphics files that can be included in documents.
644 \begin_layout Labeling
645 \labelwidthstring 00.00.0000
646 \begin_inset Flex Code
649 \begin_layout Plain Layout
655 contains \SpecialChar LyX
656 documentation files (including the one you are currently reading).
658 \begin_inset Flex Code
661 \begin_layout Plain Layout
668 deserves special attention, as noted above.
669 The internationalized help docs are in subdirectories
670 \begin_inset Flex Code
673 \begin_layout Plain Layout
680 \begin_inset Quotes eld
684 \begin_inset Quotes erd
687 is the ISO language code.
689 \begin_inset CommandInset ref
691 reference "cha:Internationalizing-LyX"
698 \begin_layout Labeling
699 \labelwidthstring 00.00.0000
700 \begin_inset Flex Code
703 \begin_layout Plain Layout
709 contains example files that explain how to use some features.
710 In the file browser, press the
711 \begin_inset Flex MenuItem
714 \begin_layout Plain Layout
723 \begin_layout Labeling
724 \labelwidthstring 00.00.0000
725 \begin_inset Flex Code
728 \begin_layout Plain Layout
734 contains image files that are used by the
735 \begin_inset Flex MenuItem
738 \begin_layout Plain Layout
745 In addition, it also contains the individual icons used in the toolbar
746 and the banners that can be shown when \SpecialChar LyX
750 \begin_layout Labeling
751 \labelwidthstring 00.00.0000
752 \begin_inset Flex Code
755 \begin_layout Plain Layout
761 contains keyboard keymapping files.
763 \begin_inset CommandInset ref
765 reference "sec:International-Keymap-Stuff"
772 \begin_layout Labeling
773 \labelwidthstring 00.00.0000
774 \begin_inset Flex Code
777 \begin_layout Plain Layout
783 contains the text class and module files described in
784 \begin_inset CommandInset ref
786 reference "cha:Installing-New-Document"
793 \begin_layout Labeling
794 \labelwidthstring 00.00.0000
795 \begin_inset Flex Code
798 \begin_layout Plain Layout
805 \begin_inset Flex Code
808 \begin_layout Plain Layout
814 Python scripts used to convert between \SpecialChar LyX
816 These can be run from the command line if, say, you want to batch-convert
820 \begin_layout Labeling
821 \labelwidthstring 00.00.0000
822 \begin_inset Flex Code
825 \begin_layout Plain Layout
831 contains some files that demonstrate the capabilities of the
832 \begin_inset Flex MenuItem
835 \begin_layout Plain Layout
846 Also contains some scripts used by \SpecialChar LyX
850 \begin_layout Labeling
851 \labelwidthstring 00.00.0000
852 \begin_inset Flex Code
855 \begin_layout Plain Layout
861 contains the standard \SpecialChar LyX
862 template files described in
863 \begin_inset CommandInset ref
865 reference "subsec:Creating-Templates"
872 \begin_layout Labeling
873 \labelwidthstring 00.00.0000
874 \begin_inset Flex Code
877 \begin_layout Plain Layout
883 contains files with the extension
884 \begin_inset Flex Code
887 \begin_layout Plain Layout
893 that define the user interface to \SpecialChar LyX
895 That is, the files define which items appear in which menus and the items
896 appearing on the toolbar.
899 \begin_layout Subsection
900 Files you don't want to modify
903 \begin_layout Standard
904 These files are used internally by \SpecialChar LyX
905 and you generally do not need to modify
906 them unless you are a developer.
909 \begin_layout Labeling
910 \labelwidthstring 00.00.0000
911 \begin_inset Flex Code
914 \begin_layout Plain Layout
920 this file contains the list of \SpecialChar LyX
922 The contents are displayed with the menu entry
923 \begin_inset Flex MenuItem
926 \begin_layout Plain Layout
927 Help\SpecialChar menuseparator
941 \begin_layout Labeling
942 \labelwidthstring 00.00.0000
943 \begin_inset Flex Code
946 \begin_layout Plain Layout
952 this is a \SpecialChar LaTeX
953 script used during the configuration process.
957 \begin_layout Labeling
958 \labelwidthstring 00.00.0000
959 \begin_inset Flex Code
962 \begin_layout Plain Layout
968 this is a Python script that is used to re-configure \SpecialChar LyX
970 It creates configuration files in the directory it was run from.
973 \begin_layout Subsection
974 Other files needing a line or two
977 \begin_layout Labeling
978 \labelwidthstring 00.00.0000
979 \begin_inset Flex Code
982 \begin_layout Plain Layout
988 this contains tables describing how different character encodings can be
992 \begin_layout Labeling
993 \labelwidthstring 00.00.0000
994 \begin_inset Flex Code
997 \begin_layout Plain Layout
1003 this file contains the templates available to the new
1004 \begin_inset Flex MenuItem
1007 \begin_layout Plain Layout
1009 \begin_inset space ~
1018 \begin_inset CommandInset ref
1020 reference "chap:Including-External-Material"
1027 \begin_layout Labeling
1028 \labelwidthstring 00.00.0000
1029 \begin_inset Flex Code
1032 \begin_layout Plain Layout
1038 this file contains a list of all the languages currently supported by \SpecialChar LyX
1042 \begin_layout Labeling
1043 \labelwidthstring 00.00.0000
1044 \begin_inset Flex Code
1047 \begin_layout Plain Layout
1053 contains information about the supported fonts.
1056 \begin_layout Labeling
1057 \labelwidthstring 00.00.0000
1058 \begin_inset Flex Code
1061 \begin_layout Plain Layout
1067 this file contains translations for internationalized paragraph styles
1069 \begin_inset CommandInset ref
1071 reference "subsec:I18n"
1078 \begin_layout Labeling
1079 \labelwidthstring 00.00.0000
1080 \begin_inset Flex Code
1083 \begin_layout Plain Layout
1089 this file contains information about unicode-encoded glyphs and the way
1090 they are supported by \SpecialChar LyX
1091 via \SpecialChar LaTeX
1095 \begin_layout Section
1096 Your local configuration directory
1099 \begin_layout Standard
1100 Even if you are using \SpecialChar LyX
1101 as an unprivileged user, you might want to change
1103 configuration for your own use.
1105 \begin_inset Flex Code
1108 \begin_layout Plain Layout
1114 directory contains all your personal configuration files.
1115 This is the directory described as
1116 \begin_inset Quotes eld
1120 \begin_inset Quotes erd
1124 \begin_inset Flex MenuItem
1127 \begin_layout Plain Layout
1128 Help\SpecialChar menuseparator
1130 \begin_inset space ~
1140 This directory is used as a mirror of
1141 \begin_inset Flex Code
1144 \begin_layout Plain Layout
1151 , which means that every file in
1152 \begin_inset Flex Code
1155 \begin_layout Plain Layout
1161 is a replacement for the corresponding file in
1162 \begin_inset Flex Code
1165 \begin_layout Plain Layout
1173 Any configuration file described in the above sections can be placed either
1174 in the system-wide directory, in which case it will affect all users, or
1175 in your local directory for your own use.
1178 \begin_layout Standard
1179 To make things clearer, let's provide a few examples:
1182 \begin_layout Itemize
1183 The preferences set in the
1184 \begin_inset Flex MenuItem
1187 \begin_layout Plain Layout
1188 Tools\SpecialChar menuseparator
1194 dialog are saved to a file
1195 \begin_inset Flex Code
1198 \begin_layout Plain Layout
1205 \begin_inset Flex Code
1208 \begin_layout Plain Layout
1217 \begin_layout Itemize
1218 When you reconfigure using
1219 \begin_inset Flex MenuItem
1222 \begin_layout Plain Layout
1223 Tools\SpecialChar menuseparator
1231 \begin_inset Flex Code
1234 \begin_layout Plain Layout
1240 script, and the resulting files are written in your local configuration
1242 This means that any additional text class file that you might have added
1244 \begin_inset Flex Code
1247 \begin_layout Plain Layout
1253 will be added to the list of classes in the
1254 \begin_inset Flex MenuItem
1257 \begin_layout Plain Layout
1258 Document\SpecialChar menuseparator
1267 \begin_layout Itemize
1268 If you get some updated documentation from \SpecialChar LyX
1269 ftp site and cannot install
1270 it because you do not have sysadmin rights on your system, you can just
1272 \begin_inset Flex Code
1275 \begin_layout Plain Layout
1281 and the items in the
1282 \begin_inset Flex MenuItem
1285 \begin_layout Plain Layout
1291 menu will open them!
1294 \begin_layout Section
1295 Running \SpecialChar LyX
1296 with multiple configurations
1299 \begin_layout Standard
1300 The configuration freedom of the local configuration directory may not suffice
1301 if you want to have more than one configuration at your disposal.
1302 For example, you may want to be use different key bindings or printer settings
1304 You can achieve this by having several such directories.
1305 You then specify which directory to use at run-time.
1308 \begin_layout Standard
1309 Invoking \SpecialChar LyX
1310 with the command line switch
1311 \begin_inset Flex Code
1314 \begin_layout Plain Layout
1324 instructs the program to read the configuration from that directory, and
1325 not from the default directory.
1326 (You can determine the default directory by running \SpecialChar LyX
1328 \begin_inset Flex Code
1331 \begin_layout Plain Layout
1337 switch.) If the specified directory does not exist, \SpecialChar LyX
1339 for you, just like it does for the default directory on the first time
1340 you run the program.
1341 You can modify the configuration options in this additional user directory
1342 exactly as you would for the default directory.
1343 These directories are completely independent (but read on).
1344 Note that setting the environment variable
1345 \begin_inset Flex Code
1348 \begin_layout Plain Layout
1354 to some value has exactly the same effect.
1357 \begin_layout Standard
1358 Having several configurations also requires more maintenance: if you want
1359 to add a new layout to
1360 \begin_inset Flex Code
1363 \begin_layout Plain Layout
1369 which you want available from all your configurations, you must add it
1370 to each directory separately.
1371 You can avoid this with the following trick: after \SpecialChar LyX
1372 creates the additional
1373 directory, most of the subdirectories (see above) are empty.
1374 If you want the new configuration to mirror an existing one, replace the
1375 empty subdirectory with a symbolic link to the matching subdirectory in
1376 the existing configuration.
1378 \begin_inset Flex Code
1381 \begin_layout Plain Layout
1387 subdirectory, however, since it contains a file written by the configuration
1388 script (also accessible through
1389 \begin_inset Flex MenuItem
1392 \begin_layout Plain Layout
1393 Tools\SpecialChar menuseparator
1399 ) which is configuration-specific.
1402 \begin_layout Chapter
1403 The Preferences dialog
1406 \begin_layout Standard
1407 All options of the preferences dialog are described in the Appendix
1409 The Preferences Dialog
1416 For some options you might find here more details.
1419 \begin_layout Section
1421 \begin_inset CommandInset label
1430 \begin_layout Standard
1431 The first step is to define your file formats if they are not already defined.
1433 \begin_inset Flex MenuItem
1436 \begin_layout Plain Layout
1437 Tools\SpecialChar menuseparator
1445 \begin_inset Flex MenuItem
1448 \begin_layout Plain Layout
1449 File Handling\SpecialChar menuseparator
1456 \begin_inset Flex MenuItem
1459 \begin_layout Plain Layout
1465 button to define your new format.
1467 \begin_inset Flex MenuItem
1470 \begin_layout Plain Layout
1476 field contains the name used to identify the format in the GUI.
1478 \begin_inset Flex MenuItem
1481 \begin_layout Plain Layout
1487 is used to identify the format internally.
1488 You will also need to enter a file extension.
1489 These are all required.
1491 \begin_inset Flex MenuItem
1494 \begin_layout Plain Layout
1500 field is used to provide a keyboard shortcut on the menus.
1501 (For example, pressing
1502 \begin_inset Flex MenuItem
1505 \begin_layout Plain Layout
1512 \begin_inset Flex MenuItem
1515 \begin_layout Plain Layout
1516 Document\SpecialChar menuseparator
1517 View (Other Formats)\SpecialChar menuseparator
1526 \begin_layout Standard
1528 \begin_inset Flex MenuItem
1531 \begin_layout Plain Layout
1538 \begin_inset Flex MenuItem
1541 \begin_layout Plain Layout
1548 For example, you might want to use
1549 \begin_inset Flex MenuItem
1552 \begin_layout Plain Layout
1558 to view PostScript files.
1559 You can enter the command needed to start the program in the corresponding
1561 In defining this command, you can use the four variables listed in the
1563 The viewer is launched when you view an image in \SpecialChar LyX
1565 \begin_inset Flex MenuItem
1568 \begin_layout Plain Layout
1569 Document\SpecialChar menuseparator
1576 The editor is for example launched when you right-click on an image and
1578 \begin_inset Flex MenuItem
1581 \begin_layout Plain Layout
1587 in the appearing context menu.
1590 \begin_layout Standard
1592 \begin_inset Flex MenuItem
1595 \begin_layout Plain Layout
1601 type of a format is optional, but if it is specified, it must be unique
1603 It is used to detect files of this format from the file contents.
1604 For some important file formats there is no MIME type officially registered
1606 \begin_inset CommandInset href
1609 target "http://www.iana.org/assignments/media-types/"
1614 Therefore \SpecialChar LyX
1615 uses the extended list of MIME types as specified by
1616 \begin_inset CommandInset href
1618 name "freedesktop.org"
1619 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1626 \begin_layout Standard
1628 \begin_inset Flex MenuItem
1631 \begin_layout Plain Layout
1637 option tells \SpecialChar LyX
1638 that a format is suitable for document export.
1639 If this is set and if a suitable conversion route exists (see
1640 \begin_inset CommandInset ref
1642 reference "sec:Converters"
1646 ), the format will appear in the
1647 \begin_inset Flex MenuItem
1650 \begin_layout Plain Layout
1651 File\SpecialChar menuseparator
1658 The format will also appear in the
1659 \begin_inset Flex MenuItem
1662 \begin_layout Plain Layout
1663 Document\SpecialChar menuseparator
1669 menu if a viewer is specified for the format.
1670 Pure image formats, such as
1671 \begin_inset Flex Code
1674 \begin_layout Plain Layout
1680 , should not use this option.
1681 Formats that can both represent vector graphics and documents like
1682 \begin_inset Flex Code
1685 \begin_layout Plain Layout
1694 \begin_layout Standard
1696 \begin_inset Flex MenuItem
1699 \begin_layout Plain Layout
1700 Vector graphics format
1705 tells \SpecialChar LyX
1706 that a format can contain vector graphics.
1707 This information is used to determine the target format of included graphics
1709 \begin_inset Flex MenuItem
1712 \begin_layout Plain Layout
1719 Included graphics may need to be converted to either
1720 \begin_inset Flex MenuItem
1723 \begin_layout Plain Layout
1730 \begin_inset Flex MenuItem
1733 \begin_layout Plain Layout
1740 \begin_inset Flex MenuItem
1743 \begin_layout Plain Layout
1750 \begin_inset Flex MenuItem
1753 \begin_layout Plain Layout
1759 cannot handle other image formats.
1760 If an included graphic is not already in
1761 \begin_inset Flex MenuItem
1764 \begin_layout Plain Layout
1771 \begin_inset Flex MenuItem
1774 \begin_layout Plain Layout
1781 \begin_inset Flex MenuItem
1784 \begin_layout Plain Layout
1790 format, it is converted to
1791 \begin_inset Flex MenuItem
1794 \begin_layout Plain Layout
1800 if the vector format option is set, and otherwise to
1801 \begin_inset Flex MenuItem
1804 \begin_layout Plain Layout
1813 \begin_layout Section
1817 \begin_layout Standard
1818 Since all conversions from one format to another take place in \SpecialChar LyX
1820 directory, it is sometimes necessary to modify a file before copying it
1821 to the temporary directory in order that the conversion may be performed.
1825 \begin_layout Plain Layout
1826 For example, the file may refer to other files—images, for example—using
1827 relative file names, and these may become invalid when the file is copied
1828 to the temporary directory.
1833 This is done by a Copier: It copies a file to (or from) the temporary directory
1834 and may modify it in the process.
1837 \begin_layout Standard
1838 The definitions of the copiers may use four variables:
1841 \begin_layout Labeling
1842 \labelwidthstring 00.00.0000
1843 \begin_inset Flex Code
1846 \begin_layout Plain Layout
1852 The \SpecialChar LyX
1853 system directory (e.
1854 \begin_inset space \thinspace{}
1858 \begin_inset space \space{}
1862 \begin_inset Flex MenuItem
1865 \begin_layout Plain Layout
1874 \begin_layout Labeling
1875 \labelwidthstring 00.00.0000
1876 \begin_inset Flex Code
1879 \begin_layout Plain Layout
1888 \begin_layout Labeling
1889 \labelwidthstring 00.00.0000
1890 \begin_inset Flex Code
1893 \begin_layout Plain Layout
1902 \begin_layout Labeling
1903 \labelwidthstring 00.00.0000
1904 \begin_inset Flex Code
1907 \begin_layout Plain Layout
1913 The base name (without filename extension) in the \SpecialChar LyX
1917 \begin_layout Labeling
1918 \labelwidthstring 00.00.0000
1919 \begin_inset Flex Code
1922 \begin_layout Plain Layout
1928 The full directory path of the \SpecialChar LyX
1932 \begin_layout Labeling
1933 \labelwidthstring 00.00.0000
1934 \begin_inset Flex Code
1937 \begin_layout Plain Layout
1943 The full pathname to the original \SpecialChar LyX
1944 file being processed
1947 \begin_layout Labeling
1948 \labelwidthstring 00.00.0000
1949 \begin_inset Flex Code
1952 \begin_layout Plain Layout
1958 The filename (without any directory path) of the \SpecialChar LyX
1962 \begin_layout Labeling
1963 \labelwidthstring 00.00.0000
1964 \begin_inset Flex Code
1967 \begin_layout Plain Layout
1973 The `\SpecialChar LaTeX
1977 \begin_layout Standard
1978 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1986 It is relevant only when exporting files suitable for such inclusion.
1989 \begin_layout Standard
1990 Copiers can be used to do almost anything with output files.
1991 For example, suppose you want generated pdf files to be copied to a special
1993 \begin_inset Flex Code
1996 \begin_layout Plain Layout
2003 Then you could write a shell script such as this one:
2006 \begin_layout Standard
2007 \begin_inset listings
2011 \begin_layout Plain Layout
2016 \begin_layout Plain Layout
2021 \begin_layout Plain Layout
2023 TOFILE=`basename $2`
2026 \begin_layout Plain Layout
2028 cp $FROMFILE /home/you/pdf/$TOFILE
2033 Save it in your local \SpecialChar LyX
2035 \begin_inset Flex Code
2038 \begin_layout Plain Layout
2039 /home/you/.lyx/scripts/pdfcopier.sh
2044 —and make it executable, if you need to do so on your platform.
2046 \begin_inset Flex MenuItem
2049 \begin_layout Plain Layout
2050 Tools\SpecialChar menuseparator
2056 dialog, select under
2057 \begin_inset Flex MenuItem
2060 \begin_layout Plain Layout
2061 File Handling\SpecialChar menuseparator
2068 \begin_inset Flex MenuItem
2071 \begin_layout Plain Layout
2077 format—or one of the other pdf formats—and enter
2078 \begin_inset Flex Code
2081 \begin_layout Plain Layout
2082 pdfcopier.sh $$i $$o
2088 \begin_inset Flex MenuItem
2091 \begin_layout Plain Layout
2101 \begin_layout Standard
2102 Copiers are used by \SpecialChar LyX
2103 in various of its own conversions.
2104 For example, if appropriate programs are found, \SpecialChar LyX
2105 will automatically install
2107 \begin_inset Flex MenuItem
2110 \begin_layout Plain Layout
2117 \begin_inset Flex MenuItem
2120 \begin_layout Plain Layout
2122 \begin_inset space ~
2131 When these formats are exported, the copier sees that not just the main
2132 HTML file but various associated files (style files, images, etc.) are also
2134 All these files are written to a subdirectory of the directory in which
2135 the original \SpecialChar LyX
2140 \begin_layout Plain Layout
2141 This copier can be customized.
2143 \begin_inset Quotes eld
2147 \begin_inset Quotes erd
2150 argument takes a comma-separated list of extensions to be copied; if it
2151 is omitted, all files will be copied.
2153 \begin_inset Quotes eld
2157 \begin_inset Quotes erd
2160 argument determines the extension added to the generated directory.
2162 \begin_inset Quotes eld
2166 \begin_inset Flex MenuItem
2169 \begin_layout Plain Layout
2177 \begin_inset Quotes erd
2180 , so HTML generated from
2181 \begin_inset Flex MenuItem
2184 \begin_layout Plain Layout
2185 /path/to/filename.lyx
2191 \begin_inset Flex MenuItem
2194 \begin_layout Plain Layout
2195 /path/to/filename.html.\SpecialChar LyX
2210 \begin_layout Section
2212 \begin_inset CommandInset label
2214 name "sec:Converters"
2221 \begin_layout Standard
2222 You can define your own Converters to convert files between different formats.
2224 \begin_inset Flex MenuItem
2227 \begin_layout Plain Layout
2228 Tools\SpecialChar menuseparator
2229 Preferences\SpecialChar menuseparator
2230 File Handling\SpecialChar menuseparator
2239 \begin_layout Standard
2240 To define a new converter, select the
2241 \begin_inset Flex MenuItem
2244 \begin_layout Plain Layout
2246 \begin_inset space ~
2255 \begin_inset Flex MenuItem
2258 \begin_layout Plain Layout
2260 \begin_inset space ~
2268 from the drop-down lists, enter the command needed for the conversion,
2270 \begin_inset Flex MenuItem
2273 \begin_layout Plain Layout
2280 Several variables can be used in the definition of converters:
2283 \begin_layout Labeling
2284 \labelwidthstring 00.00.0000
2285 \begin_inset Flex Code
2288 \begin_layout Plain Layout
2294 The \SpecialChar LyX
2298 \begin_layout Labeling
2299 \labelwidthstring 00.00.0000
2300 \begin_inset Flex Code
2303 \begin_layout Plain Layout
2312 \begin_layout Labeling
2313 \labelwidthstring 00.00.0000
2314 \begin_inset Flex Code
2317 \begin_layout Plain Layout
2326 \begin_layout Labeling
2327 \labelwidthstring 00.00.0000
2328 \begin_inset Flex Code
2331 \begin_layout Plain Layout
2337 The base filename of the input file (i.
2338 \begin_inset space \thinspace{}
2341 g., without the extension)
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2349 \begin_layout Plain Layout
2355 The path to the input file
2358 \begin_layout Labeling
2359 \labelwidthstring 00.00.0000
2360 \begin_inset Flex Code
2363 \begin_layout Plain Layout
2369 The path to the original input file (this is different from $$p when a
2370 chain of converters is called)
2373 \begin_layout Labeling
2374 \labelwidthstring 00.00.0000
2375 \begin_inset Flex Code
2378 \begin_layout Plain Layout
2384 The iconv name for the encoding of the document.
2387 \begin_layout Standard
2389 \begin_inset Flex MenuItem
2392 \begin_layout Plain Layout
2394 \begin_inset space ~
2402 field you can enter the following flags, separated by commas:
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Flex Code
2410 \begin_layout Plain Layout
2416 This converter runs some form of \SpecialChar LaTeX
2418 This will make \SpecialChar LyX
2419 's \SpecialChar LaTeX
2420 error logs available.
2423 \begin_layout Labeling
2424 \labelwidthstring 00.00.0000
2425 \begin_inset Flex Code
2428 \begin_layout Plain Layout
2434 Needs the \SpecialChar LaTeX
2436 \begin_inset Flex MenuItem
2439 \begin_layout Plain Layout
2445 file for the conversion.
2448 \begin_layout Labeling
2449 \labelwidthstring 00.00.0000
2450 \begin_inset Flex Code
2453 \begin_layout Plain Layout
2460 \begin_inset Quotes eld
2464 \begin_inset Quotes erd
2467 file from the backend, which in practice means a \SpecialChar LaTeX
2468 file like the one we
2469 would export, without
2470 \begin_inset Flex Code
2473 \begin_layout Plain Layout
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2484 \begin_inset Flex Code
2487 \begin_layout Plain Layout
2496 \begin_layout Standard
2497 The following three flags are not really flags at all because they take
2499 \begin_inset Flex MenuItem
2502 \begin_layout Plain Layout
2504 \begin_inset space ~
2508 \begin_inset space ~
2519 \begin_layout Labeling
2520 \labelwidthstring 00.00.0000
2521 \begin_inset Flex Code
2524 \begin_layout Plain Layout
2530 If set, the converter's standard error will be redirected to a file
2531 \begin_inset Flex Code
2534 \begin_layout Plain Layout
2540 , and the script given as argument will be run as:
2541 \begin_inset Flex Code
2544 \begin_layout Plain Layout
2545 script < infile.out > infile.log
2551 The argument may contain
2552 \begin_inset Flex Code
2555 \begin_layout Plain Layout
2564 \begin_layout Labeling
2565 \labelwidthstring 00.00.0000
2566 \begin_inset Flex Code
2569 \begin_layout Plain Layout
2575 The name of the directory in which the converter will dump the generated
2578 will not create this directory, and it does not copy anything into it,
2579 though it will copy this directory to the destination.
2580 The argument may contain
2581 \begin_inset Flex Code
2584 \begin_layout Plain Layout
2590 , which will be replaced by the base name of the input and output files,
2591 respectively, when the directory is copied.
2592 \begin_inset Newline newline
2595 Note that resultdir and usetempdir make no sense together.
2596 The latter will be ignored if the former is given.
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2601 \begin_inset Flex Code
2604 \begin_layout Plain Layout
2610 Determines the output file name and may, contain
2611 \begin_inset Flex Code
2614 \begin_layout Plain Layout
2621 Sensible only with resultdir and optional even then; if not given, it defaults
2625 \begin_layout Standard
2626 None of these last three are presently used in any of the converters that
2627 are installed with \SpecialChar LyX
2632 \begin_layout Standard
2633 You do not have to define converters for all formats between which you want
2635 For example, you will note that there is no `\SpecialChar LyX
2636 to PostScript' converter,
2637 but \SpecialChar LyX
2638 will export PostScript.
2639 It does so by first creating a \SpecialChar LaTeX
2640 file (no converter needs to be defined
2641 for this) which is then converted to DVI using the `\SpecialChar LaTeX
2643 and finally converting the resulting DVI file to PostScript.
2645 finds such `chains' of converters automatically, and it will always choose
2646 the shortest possible chain.
2647 You can, though, still define multiple conversion methods between file
2649 For example, the standard \SpecialChar LyX
2650 configuration provides five ways to convert
2655 \begin_layout Enumerate
2657 \begin_inset Flex MenuItem
2660 \begin_layout Plain Layout
2669 \begin_layout Enumerate
2670 via (DVI and) PostScript, using
2671 \begin_inset Flex MenuItem
2674 \begin_layout Plain Layout
2683 \begin_layout Enumerate
2685 \begin_inset Flex MenuItem
2688 \begin_layout Plain Layout
2697 \begin_layout Enumerate
2699 \begin_inset Flex MenuItem
2702 \begin_layout Plain Layout
2712 \begin_layout Enumerate
2714 \begin_inset Flex MenuItem
2717 \begin_layout Plain Layout
2727 \begin_layout Standard
2728 To define such alternate chains, you must define multiple target `file formats',
2730 \begin_inset CommandInset ref
2732 reference "sec:Formats"
2737 For example, in the standard configuration, the formats named
2738 \begin_inset Flex MenuItem
2741 \begin_layout Plain Layout
2748 \begin_inset Flex MenuItem
2751 \begin_layout Plain Layout
2758 \begin_inset Flex MenuItem
2761 \begin_layout Plain Layout
2768 \begin_inset Flex MenuItem
2771 \begin_layout Plain Layout
2778 \begin_inset Flex MenuItem
2781 \begin_layout Plain Layout
2788 \begin_inset Flex MenuItem
2791 \begin_layout Plain Layout
2798 \begin_inset Flex MenuItem
2801 \begin_layout Plain Layout
2808 \begin_inset Flex MenuItem
2811 \begin_layout Plain Layout
2819 \begin_inset Flex MenuItem
2822 \begin_layout Plain Layout
2829 \begin_inset Flex MenuItem
2832 \begin_layout Plain Layout
2839 ) are defined, all of which share the extension
2840 \begin_inset Flex MenuItem
2843 \begin_layout Plain Layout
2849 , and which correspond to the conversion methods just mentioned.
2852 \begin_layout Chapter
2853 Internationalizing \SpecialChar LyX
2855 \begin_inset CommandInset label
2857 name "cha:Internationalizing-LyX"
2864 \begin_layout Standard
2866 supports using a translated interface.
2867 Last time we checked, \SpecialChar LyX
2868 provided text in thirty languages.
2869 The language of choice is called your
2874 (For further reading on locale settings, see also the documentation for
2875 locale that comes with your operating system.
2876 For Linux, the manual page for
2877 \begin_inset Flex Code
2880 \begin_layout Plain Layout
2886 could be a good place to start).
2889 \begin_layout Standard
2890 Notice that these translations will work, but do contain a few flaws.
2891 In particular, all dialogs have been designed with the English text in
2892 mind, which means that some of the translated text will be too large to
2893 fit within the space allocated.
2894 This is only a display problem and will not cause any harm.
2895 Also, you will find that some of the translations do not define shortcut
2896 keys for everything.
2897 Sometimes, there are simply not enough free letters to do it.
2898 Other times, the translator just hasn't got around to doing it yet.
2899 Our localization team, which you may wish to join,
2903 \begin_layout Plain Layout
2904 If you are a fluent speaker of a language other than English, joining these
2905 teams is a great way to give back to the \SpecialChar LyX
2911 will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2915 \begin_layout Section
2916 Translating \SpecialChar LyX
2920 \begin_layout Subsection
2921 Translating the graphical user interface (text messages).
2924 \begin_layout Standard
2927 \begin_inset Flex Code
2930 \begin_layout Plain Layout
2936 library to handle the internationalization of the interface.
2937 To have \SpecialChar LyX
2938 speak your favorite language in all menus and dialogs, you need
2940 \begin_inset Flex Code
2943 \begin_layout Plain Layout
2949 -file for that language.
2950 When this is available, you'll have to generate a
2951 \begin_inset Flex Code
2954 \begin_layout Plain Layout
2960 -file from it and install the
2961 \begin_inset Flex Code
2964 \begin_layout Plain Layout
2971 The process of doing all of this is explained in the documentation for
2973 \begin_inset Flex Code
2976 \begin_layout Plain Layout
2983 It is possible to do this just for yourself, but if you're going to do
2984 it, you might as well share the results of your labors with the rest of
2985 the \SpecialChar LyX
2987 Send a message to the \SpecialChar LyX
2988 developers' list for more information about how
2992 \begin_layout Standard
2993 In short, this is what you should do (xx denotes the language code):
2996 \begin_layout Itemize
2997 Check out the \SpecialChar LyX
3000 \begin_inset CommandInset href
3002 name "information on the web"
3003 target "http://www.lyx.org/HowToUseSVN"
3010 \begin_layout Itemize
3012 \begin_inset Flex Code
3015 \begin_layout Plain Layout
3021 to the folder of the
3022 \begin_inset Flex Code
3025 \begin_layout Plain Layout
3033 \begin_inset Flex Code
3036 \begin_layout Plain Layout
3044 \begin_inset Flex Code
3047 \begin_layout Plain Layout
3053 doesn't exist anywhere, it can be remade with the console command
3054 \begin_inset Flex Code
3057 \begin_layout Plain Layout
3063 in that directory, or you can use an existing po-file for some other language
3067 \begin_layout Itemize
3069 \begin_inset Flex Code
3072 \begin_layout Plain Layout
3082 \begin_layout Plain Layout
3083 This is just a text file, so it can be edited in any text editor.
3084 But there are also specialized programs that support such editing, such
3089 (for all platforms) or
3098 contains a `mode' for editing
3099 \begin_inset Flex Code
3102 \begin_layout Plain Layout
3113 For some menu- and widget-labels, there are also shortcut keys that should
3115 Those keys are marked after a `|', and should be translated according to
3116 the words and phrases of the language.
3117 You should also fill also out the information at the beginning of the new
3119 \begin_inset Flex Code
3122 \begin_layout Plain Layout
3128 -file with your email-address, etc., so people know where to reach you with
3129 suggestions and entertaining flames.
3132 \begin_layout Standard
3133 If you are just doing this on your own, then:
3136 \begin_layout Itemize
3138 \begin_inset Flex Code
3141 \begin_layout Plain Layout
3148 This can be done with
3149 \begin_inset Flex Code
3152 \begin_layout Plain Layout
3153 msgfmt -o xx.mo < xx.po
3161 \begin_layout Itemize
3163 \begin_inset Flex Code
3166 \begin_layout Plain Layout
3172 -file to your locale-tree, at the correct directory for application messages
3177 xx, and under the name
3178 \begin_inset Flex Code
3181 \begin_layout Plain Layout
3188 \begin_inset space \thinspace{}
3192 \begin_inset space \space{}
3196 \begin_inset Flex Code
3199 \begin_layout Plain Layout
3200 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3210 \begin_layout Standard
3211 As said, however, it would be best if the new
3212 \begin_inset Flex Code
3215 \begin_layout Plain Layout
3221 -file could be added to the \SpecialChar LyX
3222 distribution, so others can use it.
3223 Adding it involves making additional changes to \SpecialChar LyX
3225 So send an email to the developers' mailing list if you're interested in
3229 \begin_layout Subsubsection
3233 \begin_layout Standard
3234 Sometimes it turns out that one English message needs to be translated into
3235 different messages in the target language.
3236 One example is the message
3237 \begin_inset Flex Code
3240 \begin_layout Plain Layout
3246 which has the German translation
3254 , depending upon exactly what the English
3255 \begin_inset Quotes eld
3259 \begin_inset Quotes erd
3264 \begin_inset Flex Code
3267 \begin_layout Plain Layout
3273 does not handle such ambiguous translations.
3274 Therefore you have to add some context information to the message: Instead
3276 \begin_inset Flex Code
3279 \begin_layout Plain Layout
3286 \begin_inset Flex Code
3289 \begin_layout Plain Layout
3290 To[[as in 'From format x to format y']]
3296 \begin_inset Flex Code
3299 \begin_layout Plain Layout
3300 To[[as in 'From page x to page y']].
3305 Now the two occurrences of
3306 \begin_inset Flex Code
3309 \begin_layout Plain Layout
3316 \begin_inset Flex Code
3319 \begin_layout Plain Layout
3325 and can be translated correctly to
3336 \begin_layout Standard
3337 Of course the context information needs to be stripped off the original
3338 message when no translation is used.
3339 Therefore you have to put it in double square brackets at the end of the
3340 message (see the example above).
3341 The translation mechanism of \SpecialChar LyX
3342 ensures that everything in double square
3343 brackets at the end of messages is removed before displaying the message.
3346 \begin_layout Subsection
3347 Translating the documentation.
3350 \begin_layout Standard
3351 The online documentation (in the
3352 \begin_inset Flex MenuItem
3355 \begin_layout Plain Layout
3361 -menu) can (and should!) be translated.
3362 If there are translated versions of the documentation available
3366 \begin_layout Plain Layout
3367 As of March 2008, at least some of the documents have been translated into
3368 fourteen languages, with the Tutorial available in a few more.
3373 and the locale is set accordingly, these will be used automagically by
3377 looks for translated versions as
3378 \begin_inset Flex Code
3381 \begin_layout Plain Layout
3383 Dir/doc/xx/DocName.lyx
3389 \begin_inset Flex Code
3392 \begin_layout Plain Layout
3398 is the code for the language currently in use.
3399 If there are no translated documents, the default English versions will
3401 Note that the translated versions must have the same filenames (
3402 \begin_inset Flex Code
3405 \begin_layout Plain Layout
3411 above) as the original.
3412 If you feel up to translating the documentation (an excellent way to proof-read
3413 the original documentation by the way!), there are a few things you should
3417 \begin_layout Itemize
3418 Check out the documentation translation web page at
3419 \begin_inset CommandInset href
3421 name "http://www.lyx.org/Translation"
3422 target "http://www.lyx.org/Translation"
3427 That way, you can find out which (if any) documents have already been translate
3428 d into your language.
3429 You can also find out who (if anyone) is organizing the effort to translate
3430 the documentation into your language.
3431 If no one is organizing the effort, please let us know that you're interested.
3434 \begin_layout Standard
3435 Once you get to actually translating, here's a few hints for you that may
3439 \begin_layout Itemize
3440 Join the documentation team! There is information on how to do that in
3441 \begin_inset Flex Code
3444 \begin_layout Plain Layout
3451 \begin_inset Flex MenuItem
3454 \begin_layout Plain Layout
3455 Help\SpecialChar menuseparator
3461 ), which by the way is the first document you should translate.
3464 \begin_layout Itemize
3465 Learn the typographic conventions for the language you are translating to.
3466 Typography is an ancient art and over the centuries, a great variety of
3467 conventions have developed throughout different parts of the world.
3468 Also study the professional terminology amongst typographers in your country.
3469 Inventing your own terminology will only confuse the users.
3472 (Warning! Typography is addictive!)
3475 \begin_layout Itemize
3476 Make a copy of the document.
3477 This will be your working copy.
3478 You can use this as your personal translated help-file by placing it in
3480 \begin_inset Flex Code
3483 \begin_layout Plain Layout
3492 \begin_layout Itemize
3493 Sometimes the original document (from the \SpecialChar LyX
3494 -team) will be updated.
3495 Use the source viewer at
3496 \begin_inset CommandInset href
3498 name "http://www.lyx.org/trac/timeline"
3499 target "http://www.lyx.org/trac/timeline"
3503 to see what has been changed.
3504 That way you can easily see which parts of the translated document need
3508 \begin_layout Standard
3509 If you ever find an error in the original document, fix it and notify the
3510 rest of the documentation team of the changes! (You didn't forget to join
3511 the documentation team, did you?)
3514 \begin_layout Standard
3515 \begin_inset Branch OutDated
3518 \begin_layout Section
3519 International Keyboard Support
3522 \begin_layout Standard
3525 [Editor's Note: The following section is by
3533 It needs to be fixed to conform to the new Documentation Style sheet and
3534 to make use of the new v1.0 features.
3535 The whole thing also needs to be merged with the section following it.-jw
3536 It may also be badly out of date.-rh (2008)]
3539 \begin_layout Subsection
3540 Defining Own Keymaps: Keymap File Format
3543 \begin_layout Standard
3544 Let's look at a keyboard definition file a little closer.
3545 It is a plain text file defining
3548 \begin_layout Itemize
3549 key-to-key or key-to-string translations
3552 \begin_layout Itemize
3556 \begin_layout Itemize
3557 dead keys exceptions
3560 \begin_layout Standard
3561 To define key-to-key or key-to-string translation, use this command:
3564 \begin_layout Quotation
3565 \begin_inset Flex Code
3568 \begin_layout Plain Layout
3577 \begin_inset Flex Code
3580 \begin_layout Plain Layout
3589 \begin_layout Standard
3591 \begin_inset Flex Code
3594 \begin_layout Plain Layout
3600 is the key to be translated and
3601 \begin_inset Flex Code
3604 \begin_layout Plain Layout
3610 is the string to be inserted into the document.
3611 To define dead keys, use:
3614 \begin_layout Quotation
3615 \begin_inset Flex Code
3618 \begin_layout Plain Layout
3627 \begin_inset Flex Code
3630 \begin_layout Plain Layout
3639 \begin_layout Standard
3641 \begin_inset Flex Code
3644 \begin_layout Plain Layout
3650 is a keyboard key and
3651 \begin_inset Flex Code
3654 \begin_layout Plain Layout
3661 The following dead keys are supported (shortcut name is in parentheses):
3664 \begin_layout Quotation
3668 \begin_inset space \hfill{}
3674 \begin_layout Quotation
3676 \begin_inset space \hfill{}
3682 \begin_layout Quotation
3684 \begin_inset space \hfill{}
3690 \begin_layout Quotation
3692 \begin_inset space \hfill{}
3698 \begin_layout Quotation
3700 \begin_inset space \hfill{}
3706 \begin_layout Quotation
3708 \begin_inset space \hfill{}
3715 \begin_layout Plain Layout
3727 \begin_layout Quotation
3729 \begin_inset space \hfill{}
3735 \begin_layout Quotation
3737 \begin_inset space \hfill{}
3744 \begin_layout Plain Layout
3756 \begin_layout Quotation
3758 \begin_inset space \hfill{}
3764 \begin_layout Quotation
3766 \begin_inset space \hfill{}
3772 \begin_layout Quotation
3774 \begin_inset space \hfill{}
3781 \begin_layout Plain Layout
3793 \begin_layout Quotation
3795 \begin_inset space \hfill{}
3802 \begin_layout Plain Layout
3814 \begin_layout Quotation
3816 \begin_inset space \hfill{}
3822 \begin_layout Quotation
3823 hungarian umlaut (hug)
3824 \begin_inset space \hfill{}
3830 \begin_layout Quotation
3832 \begin_inset space \hfill{}
3838 \begin_layout Quotation
3840 \begin_inset space \hfill{}
3847 \begin_layout Plain Layout
3859 \begin_layout Standard
3860 Since in many international keyboards there are exceptions to what some
3861 dead keys should do, you can define them using
3864 \begin_layout Quotation
3865 \begin_inset Flex Code
3868 \begin_layout Plain Layout
3876 deadkey key outstring
3879 \begin_layout Standard
3880 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3884 \begin_layout Quotation
3885 \begin_inset Flex Code
3888 \begin_layout Plain Layout
3901 \begin_layout Standard
3902 to make it work correctly.
3903 Also, you have to define as exceptions dead keys over i and j, to remove
3904 the dot from them before inserting an accent mark.
3905 I will change this when the time comes, but so far I haven't had time.
3908 \begin_layout Standard
3909 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3912 \begin_inset Flex Code
3915 \begin_layout Plain Layout
3921 have different meaning.
3923 \begin_inset Flex Code
3926 \begin_layout Plain Layout
3932 marks comments, quotes start and end \SpecialChar LaTeX
3934 To enter quote, you'll need to use
3935 \begin_inset Flex Code
3938 \begin_layout Plain Layout
3947 \begin_inset Flex Code
3950 \begin_layout Plain Layout
3957 \begin_inset Flex Code
3960 \begin_layout Plain Layout
3971 \begin_layout Standard
3972 If you make a keyboard description file that works for your language, please
3973 mail it to me, so I can include it in the next keymap distribution.
3976 \begin_layout Standard
3977 More keywords will be supported in keymap configuration file in future,
3981 \begin_layout Itemize
3982 \begin_inset Flex Code
3985 \begin_layout Plain Layout
3996 \begin_inset space \hfill{}
4000 \begin_inset Flex Code
4003 \begin_layout Plain Layout
4012 \begin_layout Itemize
4013 \begin_inset Flex Code
4016 \begin_layout Plain Layout
4027 \begin_inset space \hfill{}
4031 \begin_inset Flex Code
4034 \begin_layout Plain Layout
4040 an external keymap translation program
4043 \begin_layout Standard
4044 Also, it should look into
4045 \begin_inset Flex Code
4048 \begin_layout Plain Layout
4054 file for defaults, too (for example, a
4055 \begin_inset Flex Code
4058 \begin_layout Plain Layout
4066 option to include default keyboard).
4074 \begin_layout Section
4075 International Keymap Stuff
4076 \begin_inset CommandInset label
4078 name "sec:International-Keymap-Stuff"
4085 \begin_layout Standard
4086 \begin_inset Note Note
4089 \begin_layout Plain Layout
4090 In doing the revisions on this document in March 2008, I did not look over
4091 this stuff, as I do not understand it.
4092 It would be good if someone else could do so.
4101 \begin_layout Standard
4102 The next two sections describe the
4103 \begin_inset Flex Code
4106 \begin_layout Plain Layout
4115 \begin_inset Flex Code
4118 \begin_layout Plain Layout
4126 file syntax in detail.
4127 These sections should help you design your own key map if the ones provided
4128 do not meet your needs.
4131 \begin_layout Subsection
4135 \begin_layout Standard
4139 \begin_inset Flex Code
4142 \begin_layout Plain Layout
4148 file maps keystrokes to characters or strings.
4149 As the name suggests, it sets a keyboard mapping.
4151 \begin_inset Flex Code
4154 \begin_layout Plain Layout
4165 \begin_inset Flex Code
4168 \begin_layout Plain Layout
4183 \begin_inset Flex Code
4186 \begin_layout Plain Layout
4199 \begin_inset Flex Code
4202 \begin_layout Plain Layout
4211 \begin_inset Flex Code
4214 \begin_layout Plain Layout
4222 are described in this section.
4225 \begin_layout Labeling
4226 \labelwidthstring 00.00.0000
4227 \begin_inset Flex Code
4230 \begin_layout Plain Layout
4238 Map a character to a string
4241 \begin_layout LyX-Code
4256 \begin_layout Standard
4289 the double-quote (")
4306 must be escaped with a preceding backslash (
4317 \begin_layout Standard
4319 \begin_inset Flex MenuItem
4322 \begin_layout Plain Layout
4330 statement to cause the symbol
4331 \begin_inset Flex MenuItem
4334 \begin_layout Plain Layout
4342 to be output for the keystroke
4343 \begin_inset Flex MenuItem
4346 \begin_layout Plain Layout
4357 \begin_layout LyX-Code
4363 \begin_layout Labeling
4364 \labelwidthstring 00.00.0000
4365 \begin_inset Flex Code
4368 \begin_layout Plain Layout
4376 Specify an accent character
4379 \begin_layout LyX-Code
4388 \begin_layout Standard
4389 This will make the cha
4427 This is the dead key
4431 \begin_layout Plain Layout
4438 refers to a key that does not produce a character by itself, but when followed
4439 with another key, produces the desired accent character.
4440 For example, a German characte
4442 r with an umlaut like
4452 can be produced in this manner.
4461 \begin_layout Standard
4474 and then another key not in
4491 followed by the other, not allowed key, as output.
4495 \begin_inset Flex MenuItem
4498 \begin_layout Plain Layout
4506 cancels a dead key, so if
4517 \begin_inset Flex MenuItem
4520 \begin_layout Plain Layout
4529 , the cursor will not go one position backwards but will instead cancel
4545 might have had on the next keystroke.
4549 \begin_layout Standard
4550 The following example specifies that the character ' is to be an acute accent,
4551 allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4554 \begin_layout LyX-Code
4557 kmod ' acute aeiouAEIOU
4560 \begin_layout Labeling
4561 \labelwidthstring 00.00.0000
4562 \begin_inset Flex Code
4565 \begin_layout Plain Layout
4571 Specify an exception to the accent character
4574 \begin_layout LyX-Code
4583 \begin_layout Standard
4584 This defines an exce
4625 have been assigned a keystroke with a previous
4628 \begin_inset Flex Code
4631 \begin_layout Plain Layout
4655 must not belong in the
4702 If such a declaration does not exist in
4710 \begin_inset Flex Code
4713 \begin_layout Plain Layout
4747 \begin_inset Flex Code
4750 \begin_layout Plain Layout
4764 \begin_layout Standard
4765 The following command produces causes äi to be produced when you enter acute-i
4769 \begin_layout LyX-Code
4783 \begin_layout Labeling
4784 \labelwidthstring 00.00.0000
4785 \begin_inset Flex Code
4788 \begin_layout Plain Layout
4794 Combine two accent characters
4797 \begin_layout LyX-Code
4803 accent1 accent2 allowed
4806 \begin_layout Standard
4807 This one is getting pretty esoteric.
4808 It allows you to combine the effect
4864 \begin_inset Flex Code
4867 \begin_layout Plain Layout
4895 \begin_layout Standard
4896 Consider this example from the
4897 \begin_inset Flex Code
4900 \begin_layout Plain Layout
4911 \begin_layout LyX-Code
4914 kmod ; acute aeioyvhAEIOYVH
4918 kcomb acute umlaut iyIY
4921 \begin_layout Standard
4922 This allows you to press
4923 \begin_inset Flex MenuItem
4926 \begin_layout Plain Layout
4934 and get the effect of
4935 \begin_inset Flex Code
4938 \begin_layout Plain Layout
4957 in this case cancels the last dead key, so if you press
4958 \begin_inset Flex MenuItem
4961 \begin_layout Plain Layout
4970 \begin_inset Flex Code
4973 \begin_layout Plain Layout
4986 \begin_layout Subsection
4990 \begin_layout Standard
4992 \begin_inset Flex Code
4995 \begin_layout Plain Layout
5003 mapping is performed, a
5004 \begin_inset Flex Code
5007 \begin_layout Plain Layout
5017 file maps the strings that the symbols generate to characters in the current
5019 The \SpecialChar LyX
5020 distribution currently includes at least the
5021 \begin_inset Flex Code
5024 \begin_layout Plain Layout
5033 \begin_inset Flex Code
5036 \begin_layout Plain Layout
5047 \begin_layout Standard
5049 \begin_inset Flex Code
5052 \begin_layout Plain Layout
5060 file is a sequence of declarations of the form
5063 \begin_layout LyX-Code
5076 \begin_layout Standard
5077 For example, in order to map
5078 \begin_inset Flex MenuItem
5081 \begin_layout Plain Layout
5091 to the corresponding character in the iso-8859-1 set (233), the following
5095 \begin_layout LyX-Code
5103 \begin_layout Standard
5105 \begin_inset Flex Code
5108 \begin_layout Plain Layout
5117 \begin_inset Flex Code
5120 \begin_layout Plain Layout
5138 the same character can apply to more than one string.
5140 \begin_inset Flex Code
5143 \begin_layout Plain Layout
5154 \begin_layout LyX-Code
5166 \begin_inset Newline newline
5182 \begin_layout Standard
5184 cannot find a mapping for the string produced by the keystroke or a
5185 deadkey sequence, it will check if it looks like an accented char and try
5186 to draw an accent over the character on screen.
5189 \begin_layout Subsection
5193 \begin_layout Standard
5194 There is a second way to add support for international characters through
5195 so-called dead-keys.
5196 A dead-key works in combination with a letter to produce an accented character.
5197 Here, we'll explain how to create a really simple dead-key to illustrate
5201 \begin_layout Standard
5202 Suppose you happen to need the circumflex character,
5203 \begin_inset Quotes eld
5207 \begin_inset Quotes erd
5212 \begin_inset Flex MenuItem
5215 \begin_layout Plain Layout
5222 \begin_inset space ~
5226 \begin_inset Flex MenuItem
5229 \begin_layout Plain Layout
5235 ] to the \SpecialChar LyX
5237 \begin_inset Flex Code
5240 \begin_layout Plain Layout
5247 \begin_inset Flex Code
5250 \begin_layout Plain Layout
5257 Now, whenever you type the
5258 \begin_inset Flex MenuItem
5261 \begin_layout Plain Layout
5267 -key followed by a letter, that letter will have a circumflex accent on
5269 For example, the sequence
5270 \begin_inset Quotes eld
5274 \begin_inset Flex MenuItem
5277 \begin_layout Plain Layout
5284 \begin_inset Quotes erd
5287 produces the letter:
5288 \begin_inset Quotes eld
5292 \begin_inset Quotes erd
5296 If you tried to type
5297 \begin_inset Quotes eld
5301 \begin_inset Flex MenuItem
5304 \begin_layout Plain Layout
5311 \begin_inset Quotes erd
5314 , however, \SpecialChar LyX
5315 will complain with a beep, since a
5316 \begin_inset Quotes eld
5320 \begin_inset Flex MenuItem
5323 \begin_layout Plain Layout
5330 \begin_inset Quotes erd
5333 never takes a circumflex accent.
5335 \begin_inset Flex MenuItem
5338 \begin_layout Plain Layout
5344 after a dead-key produces the bare-accent.
5345 Please note this last point! If you bind a key to a dead-key, you'll need
5346 to rebind the character on that key to yet another key.
5348 \begin_inset Flex MenuItem
5351 \begin_layout Plain Layout
5357 to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5360 \begin_layout Standard
5361 One common way to bind dead-keys is to use
5362 \begin_inset Flex MenuItem
5365 \begin_layout Plain Layout
5372 \begin_inset Flex MenuItem
5375 \begin_layout Plain Layout
5382 \begin_inset Flex MenuItem
5385 \begin_layout Plain Layout
5391 in combination with an accent, like
5392 \begin_inset Quotes eld
5396 \begin_inset Flex MenuItem
5399 \begin_layout Plain Layout
5406 \begin_inset Quotes erd
5410 \begin_inset Quotes eld
5414 \begin_inset Flex MenuItem
5417 \begin_layout Plain Layout
5424 \begin_inset Quotes erd
5428 \begin_inset Quotes eld
5432 \begin_inset Flex MenuItem
5435 \begin_layout Plain Layout
5442 \begin_inset Quotes erd
5446 Another way involves using
5447 \begin_inset Flex Code
5450 \begin_layout Plain Layout
5457 \begin_inset Flex Code
5460 \begin_layout Plain Layout
5466 to set up the special
5467 \begin_inset Flex Code
5470 \begin_layout Plain Layout
5478 \begin_inset Flex Code
5481 \begin_layout Plain Layout
5487 acts in some ways just like
5488 \begin_inset Flex MenuItem
5491 \begin_layout Plain Layout
5497 and permits you to bind keys to accented characters.
5498 You can also turn keys into dead-keys by binding them to something like
5500 \begin_inset Flex Code
5503 \begin_layout Plain Layout
5509 and then binding this symbolic key to the corresponding \SpecialChar LyX
5514 \begin_layout Plain Layout
5519 : This is exactly what I do in my
5520 \begin_inset Flex Code
5523 \begin_layout Plain Layout
5530 \begin_inset Flex Code
5533 \begin_layout Plain Layout
5541 \begin_inset Flex MenuItem
5544 \begin_layout Plain Layout
5546 \begin_inset space ~
5555 \begin_inset Flex Code
5558 \begin_layout Plain Layout
5564 and a bunch of these
5565 \begin_inset Quotes eld
5569 \begin_inset Flex Code
5572 \begin_layout Plain Layout
5579 \begin_inset Quotes erd
5582 symbolic keys bound such things as
5583 \begin_inset Flex MenuItem
5586 \begin_layout Plain Layout
5588 \begin_inset space ~
5597 \begin_inset Flex MenuItem
5600 \begin_layout Plain Layout
5602 \begin_inset space ~
5611 This is how I produce my accented characters.
5616 You can make just about anything into the
5617 \begin_inset Flex Code
5620 \begin_layout Plain Layout
5627 \begin_inset Flex MenuItem
5630 \begin_layout Plain Layout
5636 keys, a spare function key, etc.
5637 As for the \SpecialChar LyX
5638 commands that produce accents, check the entry for
5639 \begin_inset Flex Code
5642 \begin_layout Plain Layout
5653 You'll find the complete list there.
5656 \begin_layout Subsection
5657 Saving your Language Configuration
5660 \begin_layout Standard
5661 You can edit your preferences so that your desired language environment
5662 is automatically configured when \SpecialChar LyX
5664 \begin_inset Flex MenuItem
5667 \begin_layout Plain Layout
5668 Edit\SpecialChar menuseparator
5677 \begin_layout Chapter
5678 Installing New Document Classes, Layouts, and Templates
5679 \begin_inset CommandInset label
5681 name "cha:Installing-New-Document"
5686 \begin_inset Argument 1
5689 \begin_layout Plain Layout
5690 Installing New Document Classes
5698 \begin_layout Standard
5699 In this chapter, we describe the procedures for creating and installing
5700 new \SpecialChar LyX
5701 layout and template files, as well as offer a refresher on correctly
5702 installing new \SpecialChar LaTeX
5707 \begin_layout Standard
5708 First, let us a say a few words about how one ought to think about the relation
5709 between \SpecialChar LyX
5710 and \SpecialChar LaTeX
5712 The thing to understand is that, in a certain sense, \SpecialChar LyX
5713 doesn't know anything
5714 about \SpecialChar LaTeX
5716 Indeed, from \SpecialChar LyX
5717 's point of view, \SpecialChar LaTeX
5718 is just one of several
5719 \begin_inset Quotes eld
5723 \begin_inset Quotes erd
5726 in which it is capable of producing output.
5727 Other such formats are DocBook, plaintext, and XHTML.
5729 is, of course, a particularly important format, but very little of the
5730 information \SpecialChar LyX
5731 has about \SpecialChar LaTeX
5732 is actually contained in the program itself.
5736 \begin_layout Plain Layout
5737 Some commands are sufficiently complex that they are
5738 \begin_inset Quotes eld
5742 \begin_inset Quotes erd
5745 into \SpecialChar LyX
5747 But the developers generally regard this as a Bad Thing.
5752 Rather, that information, even for the standard classes like
5753 \begin_inset Flex Code
5756 \begin_layout Plain Layout
5762 , is contained in `layout files'.
5763 Similarly, \SpecialChar LyX
5764 itself does not know much about DocBook or XHTML.
5765 What it knows is contained in layout files.
5768 \begin_layout Standard
5769 You can think of the layout file for a given document class as a translation
5770 manual between \SpecialChar LyX
5771 constructs—paragraphs with their corresponding styles,
5772 certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5775 Almost everything \SpecialChar LyX
5777 \begin_inset Flex Code
5780 \begin_layout Plain Layout
5786 , for example, is contained in the file
5787 \begin_inset Flex Code
5790 \begin_layout Plain Layout
5796 and in various other files it includes.
5797 For this reason, anyone intending to write layout files should plan to
5798 study the existing files.
5799 A good place to start is with
5800 \begin_inset Flex Code
5803 \begin_layout Plain Layout
5809 , which is included in
5810 \begin_inset Flex Code
5813 \begin_layout Plain Layout
5820 \begin_inset Flex Code
5823 \begin_layout Plain Layout
5829 , and many of the other layout files for document classes.
5830 This file is where sections and the like are defined:
5831 \begin_inset Flex Code
5834 \begin_layout Plain Layout
5840 tells \SpecialChar LyX
5841 how paragraphs that are marked with the Section, Subsection, etc,
5842 styles can be translated into corresponding \SpecialChar LaTeX
5843 , DocBook, and XHTML commands
5846 \begin_inset Flex Code
5849 \begin_layout Plain Layout
5855 file basically just includes several of these
5856 \begin_inset Flex Code
5859 \begin_layout Plain Layout
5868 \begin_layout Standard
5869 Defining the \SpecialChar LyX
5871 correspondence is not the only thing layout files do, though.
5872 Their other job is to define how the \SpecialChar LyX
5873 constructs themselves will appear
5875 The fact that layout files have these two jobs is often a source of confusion,
5876 because they are completely separate.
5877 Telling \SpecialChar LyX
5878 how to translate a certain paragraph style into \SpecialChar LaTeX
5881 how to display it; conversely, telling \SpecialChar LyX
5882 how to display a certain paragraph
5883 style does not tell \SpecialChar LyX
5884 how to translate it into \SpecialChar LaTeX
5885 (let alone tell \SpecialChar LaTeX
5888 So, in general, when you define a new \SpecialChar LyX
5889 construct, you must always do two
5890 quite separate things: (i)
5891 \begin_inset space ~
5894 tell \SpecialChar LyX
5895 how to translate it into \SpecialChar LaTeX
5897 \begin_inset space ~
5900 tell \SpecialChar LyX
5904 \begin_layout Standard
5905 Much the same is true, of course, as regards \SpecialChar LyX
5906 's other backend formats, though
5907 XHTML is in some ways different, because in that case \SpecialChar LyX
5912 able, to some extent, to use information about how it should display a
5913 paragraph on the screen to output information (in the form of CSS) about
5914 how the paragraph should be displayed in a browser.
5915 Even in this case, however, the distinction between what \SpecialChar LyX
5917 and how things are rendered externally remains in force, and the two can
5918 be controlled separately.
5920 \begin_inset CommandInset ref
5922 reference "sec:Tags-for-XHTML"
5929 \begin_layout Section
5930 Installing new \SpecialChar LaTeX
5934 \begin_layout Standard
5935 Some installations may not include a \SpecialChar LaTeX
5936 package or class file that you would
5937 like to use within \SpecialChar LyX
5939 For example, you might need Foil\SpecialChar TeX
5940 , a package for preparing slides for overhead
5942 Modern \SpecialChar LaTeX
5943 distributions like \SpecialChar TeX
5944 Live (2008 or newer) or MiK\SpecialChar TeX
5945 provide a user interface
5946 for installing such packages.
5947 For example, with MiK\SpecialChar TeX
5948 , you start the program
5949 \begin_inset Quotes eld
5953 \begin_inset space ~
5957 \begin_inset Quotes erd
5960 to get a list of available packages.
5961 To install one of them, right click on it or use the corresponding toolbar
5965 \begin_layout Standard
5966 If your \SpecialChar LaTeX
5967 distribution does not provide such a `package manager', or if the
5968 package is not available from your distribution, then follow these steps
5969 to install it manually:
5972 \begin_layout Enumerate
5973 Get the package from
5974 \begin_inset CommandInset href
5977 target "http://www.ctan.org/"
5984 \begin_layout Enumerate
5985 If the package contains a file with the ending
5986 \begin_inset Quotes eld
5990 \begin_inset Flex Code
5993 \begin_layout Plain Layout
6000 \begin_inset Quotes erd
6003 (is the case for Foil\SpecialChar TeX
6004 ) then open a console, change to the folder of this
6005 file and execute the command
6006 \begin_inset Flex Code
6009 \begin_layout Plain Layout
6016 You have now unpacked the package and have all files to install it.
6017 Most \SpecialChar LaTeX
6018 -packages are not packed and you can skip this step.
6021 \begin_layout Enumerate
6022 Now you need to decide if the package should be available for all users
6024 \begin_inset Separator parbreak
6031 \begin_layout Enumerate
6032 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6033 for all users on your system, then install it in your `local' \SpecialChar TeX
6035 install it in your own `user' \SpecialChar TeX
6037 Where these trees should be created, if they do not already exist, depends
6039 To find this out, look in the file
6040 \begin_inset Flex Code
6043 \begin_layout Plain Layout
6053 \begin_layout Plain Layout
6054 This is usually in the directory
6055 \begin_inset Flex Code
6058 \begin_layout Plain Layout
6064 , though you can execute the command
6065 \begin_inset Flex Code
6068 \begin_layout Plain Layout
6079 The location of the `local' \SpecialChar TeX
6080 tree is defined by the
6081 \begin_inset Flex Code
6084 \begin_layout Plain Layout
6090 variable; this is usually somewhere like
6091 \begin_inset Flex Code
6094 \begin_layout Plain Layout
6095 /usr/local/share/texmf
6101 The location of the `user' \SpecialChar TeX
6103 \begin_inset Flex Code
6106 \begin_layout Plain Layout
6113 \begin_inset Flex Code
6116 \begin_layout Plain Layout
6123 (If these variables are not predefined, you have to define them.) You'll
6124 probably need root permissions to create or modify the `local' tree, but
6125 not for your `user' tree.
6126 \begin_inset Newline newline
6129 In general, it is recommended to install in the user tree because your user
6130 will not be modified or even overwritten when you upgrade your system.
6131 It will typically also be backed up together with everything else when
6132 you backup your home directory (which, of course, you do on a regular basis).
6135 \begin_layout Enumerate
6136 On Windows, if you want the new package to be available for all users on
6137 your system, change to the folder where \SpecialChar LaTeX
6138 is installed and then change to
6140 \begin_inset Flex Code
6143 \begin_layout Plain Layout
6154 (For MiK\SpecialChar TeX
6155 , this would be by default the folder
6156 \begin_inset Flex Code
6159 \begin_layout Plain Layout
6178 \begin_layout Plain Layout
6179 Note that this will be the correct path only on English installations.
6180 On a German one, it would be
6181 \begin_inset Flex Code
6184 \begin_layout Plain Layout
6199 , and similarly for other languages.
6204 Create there a new folder
6205 \begin_inset Flex Code
6208 \begin_layout Plain Layout
6214 and copy all files of the package into it.
6216 \begin_inset Newline newline
6219 If the package should only available for you or you don't have admin permissions
6220 , do the same, but in the local \SpecialChar LaTeX
6223 \begin_inset space \thinspace{}
6226 g., for MiK\SpecialChar TeX
6228 \begin_inset space ~
6231 2.8 under Windows XP, this would be the folder:
6232 \begin_inset Newline newline
6238 \begin_inset Flex Code
6241 \begin_layout Plain Layout
6244 Documents and Settings
6256 \begin_inset Newline newline
6262 \begin_inset Phantom HPhantom
6265 \begin_layout Plain Layout
6276 \begin_inset Flex Code
6279 \begin_layout Plain Layout
6293 \begin_inset Newline newline
6296 On Vista, it would be:
6297 \begin_inset Newline newline
6301 \begin_inset Flex Code
6304 \begin_layout Plain Layout
6331 \begin_layout Enumerate
6332 Now one only need to tell \SpecialChar LaTeX
6333 that there are new files.
6334 This depends on the used \SpecialChar LaTeX
6336 \begin_inset Separator parbreak
6343 \begin_layout Enumerate
6344 For \SpecialChar TeX
6345 Live execute the command
6346 \begin_inset Flex Code
6349 \begin_layout Plain Layout
6356 If you installed the package for all users, then you will probably need
6357 to have root permissions for that.
6360 \begin_layout Enumerate
6361 For MiK\SpecialChar TeX
6362 , if you have installed the package for all users, start the program
6364 \begin_inset Quotes eld
6368 \begin_inset space ~
6372 \begin_inset Quotes erd
6375 and press the button marked
6376 \begin_inset Quotes eld
6380 \begin_inset Quotes erd
6384 Otherwise start the program
6385 \begin_inset Quotes eld
6389 \begin_inset Quotes erd
6396 \begin_layout Enumerate
6397 Finally, you need to tell \SpecialChar LyX
6398 that there are new packages available.
6399 So, in \SpecialChar LyX
6401 \begin_inset Flex MenuItem
6404 \begin_layout Plain Layout
6407 \SpecialChar menuseparator
6413 and then restart \SpecialChar LyX
6417 \begin_layout Standard
6418 Now the package is installed.
6419 In our example, the document class
6420 \begin_inset Flex Code
6423 \begin_layout Plain Layout
6425 \begin_inset space ~
6432 \begin_layout Plain Layout
6444 will now be available under
6445 \begin_inset Flex MenuItem
6448 \begin_layout Plain Layout
6449 Document\SpecialChar menuseparator
6450 Settings\SpecialChar menuseparator
6460 \begin_layout Standard
6461 If you would like to use a \SpecialChar LaTeX
6462 document class that is not even listed in the
6464 \begin_inset Flex MenuItem
6467 \begin_layout Plain Layout
6468 Document\SpecialChar menuseparator
6469 Settings\SpecialChar menuseparator
6475 , then you need to create a `layout' file for it.
6476 That is the topic of the next section.
6479 \begin_layout Section
6480 Types of layout files
6483 \begin_layout Standard
6484 This section describes the various sorts of \SpecialChar LyX
6485 files that contain layout informati
6487 These files describe various paragraph and character styles, determining
6488 how \SpecialChar LyX
6489 should display them and how they should be translated into \SpecialChar LaTeX
6491 XHTML, or whatever output format is being used.
6495 \begin_layout Standard
6496 We shall try to provide a thorough description of the process of writing
6498 However, there are so many different types of documents supported even
6499 by just \SpecialChar LaTeX
6500 that we can't hope to cover every different possibility or problem
6501 you might encounter.
6502 The \SpecialChar LyX
6503 users' list is frequented by people with lots of experience with layout
6504 design who are willing to share what they've learned, so please feel free
6505 to ask questions there.
6508 \begin_layout Standard
6509 As you prepare to write a new layout, it is extremely helpful to look at
6510 the layouts distributed with \SpecialChar LyX
6512 If you write a \SpecialChar LyX
6513 layout for a \SpecialChar LaTeX
6514 document class that might also be used by
6515 others, or write a module that might be useful to others, then you should
6516 consider posting your layout to the
6517 \begin_inset CommandInset href
6519 name "layout section on the LyX wiki"
6520 target "http://wiki.lyx.org/Layouts/Layouts"
6524 or even to the \SpecialChar LyX
6525 developers' list, so that it might be included in \SpecialChar LyX
6530 \begin_layout Plain Layout
6531 Note that \SpecialChar LyX
6532 is licensed under the General Public License, so any material
6533 that is contributed to \SpecialChar LyX
6534 must be similarly licensed.
6542 \begin_layout Subsection
6544 \begin_inset CommandInset label
6546 name "subsec:Layout-modules"
6553 \begin_layout Standard
6554 We have spoken to this point about `layout files'.
6555 But there are different sorts of files that contain layout information.
6556 Layout files, strictly so called, have the
6557 \begin_inset Flex Code
6560 \begin_layout Plain Layout
6566 extension and provide \SpecialChar LyX
6567 with information about document classes.
6568 Since \SpecialChar LyX
6569 1.6 layout information can also be contained in layout
6574 \begin_inset Flex Code
6577 \begin_layout Plain Layout
6584 Modules are to \SpecialChar LaTeX
6585 packages much as layouts are to \SpecialChar LaTeX
6586 classes, and some modules—such
6588 \begin_inset Flex Code
6591 \begin_layout Plain Layout
6597 module—specifically provide support for one package.
6598 In a sense, layout modules are similar to included
6602 \begin_layout Plain Layout
6603 These can have any extension, but by convention have the
6604 \begin_inset Flex Code
6607 \begin_layout Plain Layout
6619 \begin_inset Flex Code
6622 \begin_layout Plain Layout
6628 —in that modules are not specific to a given document class but may be used
6629 with many different classes.
6630 The difference is that using an included file with
6631 \begin_inset Flex Code
6634 \begin_layout Plain Layout
6640 requires editing that file.
6641 Modules, by contrast, are selected in the
6642 \begin_inset Flex MenuItem
6645 \begin_layout Plain Layout
6646 Document\SpecialChar menuseparator
6655 \begin_layout Standard
6656 Building modules is the easiest way to get started with layout editing,
6657 since it can be as simple as adding a single new paragraph style or flex
6659 But modules may, in principle, contain anything a layout file can contain.
6662 \begin_layout Standard
6663 After creating a new module and copying it to the
6664 \begin_inset Flex Code
6667 \begin_layout Plain Layout
6673 folder, you will need to reconfigure and then restart \SpecialChar LyX
6676 However, changes you make to the module will be seen immediately, if you
6678 \begin_inset Flex MenuItem
6681 \begin_layout Plain Layout
6682 Document\SpecialChar menuseparator
6688 , highlight something, and then hit
6689 \begin_inset Quotes eld
6693 \begin_inset Quotes erd
6699 It is strongly recommended that you save your work before doing this
6704 it is strongly recommended that you not attempt to edit modules while simultaneo
6705 usly working on actual documents
6708 Though of course the developers strive to keep \SpecialChar LyX
6709 stable in such situations,
6710 syntax errors and the like in your module file could cause strange behavior.
6713 \begin_layout Subsubsection
6717 \begin_layout Standard
6718 Modules are to \SpecialChar LyX
6719 as packages are to \SpecialChar LaTeX
6721 Sometimes, however, you find yourself wanting a specific inset or character
6722 style just for one document and writing a module that will also be available
6723 to other documents makes little sense.
6724 What you need is \SpecialChar LyX
6726 \begin_inset Quotes eld
6730 \begin_inset Quotes erd
6736 \begin_layout Standard
6737 You will find it under
6739 Document\SpecialChar menuseparator
6740 Settings\SpecialChar menuseparator
6744 The large text box allows you to enter anything that you might enter in
6745 a layout file or module.
6746 You can think of a document's local layout, in fact, as a module that belongs
6748 So, in particular, you must enter a
6749 \begin_inset Flex Code
6752 \begin_layout Plain Layout
6759 Any format is acceptable, but one would normally use the format current
6761 (In \SpecialChar LyX
6762 2.1, the current layout format is 48.) You should be aware that local
6763 layout is not supported by versions of \SpecialChar LyX
6764 prior to 1.6, so you should not
6765 use it if you want to be able to export your document to \SpecialChar LyX
6767 (without, that is, losing the local layout information).
6768 If you wish to be able to export to 1.6—local layout is supported in 1.6,
6769 though there is no UI for it—then you should use format 11 and, of course,
6770 use only layout constructs that were available in \SpecialChar LyX
6774 \begin_layout Standard
6775 When you have entered something in the
6776 \begin_inset Flex Code
6779 \begin_layout Plain Layout
6785 pane, \SpecialChar LyX
6787 \begin_inset Quotes eld
6791 \begin_inset Quotes erd
6794 button at the bottom.
6795 Clicking this button will cause \SpecialChar LyX
6796 to determine whether what you have entered
6797 is valid layout information for the chosen format.
6799 will report the result but, unfortunately, will not tell you what errors
6800 there might have been.
6801 These will be written to the terminal, however, if \SpecialChar LyX
6802 is started from a terminal.
6803 You will not be permitted to save your local layout until you have entered
6807 \begin_layout Standard
6808 The warnings at the end of the previous section apply here, too.
6809 Do not play with local layout while you are actually working, especially
6810 if you have not saved your document.
6811 That said, using local layout with a test document can be a very convenient
6812 way to try out layout ideas, or even to start developing a module.
6815 \begin_layout Subsection
6817 \begin_inset Flex MenuItem
6820 \begin_layout Plain Layout
6829 \begin_layout Standard
6830 There are two situations you are likely to encounter when wanting to support
6831 a new \SpecialChar LaTeX
6832 document class, involving style (
6833 \begin_inset Flex Code
6836 \begin_layout Plain Layout
6842 ) files and \SpecialChar LaTeX2e
6844 \begin_inset Flex Code
6847 \begin_layout Plain Layout
6854 Supporting a style file is usually fairly easy.
6855 Supporting a new class file is a bit harder.
6856 We'll discuss the former in this section and the latter in the next.
6857 Similar remarks apply, of course, if you want to support a new DocBook
6861 \begin_layout Standard
6862 The easier case is the one in which your new document class is provided
6863 as a style file that is to be used in conjunction with an already supported
6865 For the sake of the example, we'll assume that the style file is called
6867 \begin_inset Flex MenuItem
6870 \begin_layout Plain Layout
6876 and that it is meant to be used with
6877 \begin_inset Flex MenuItem
6880 \begin_layout Plain Layout
6886 , which is a standard class.
6890 \begin_layout Standard
6891 Start by copying the existing class's layout file into your local directory:
6895 \begin_layout Plain Layout
6896 Of course, which directory is your local directory will vary by platform,
6897 and \SpecialChar LyX
6898 allows you to specify your local directory on startup, too, using
6900 \begin_inset Flex Code
6903 \begin_layout Plain Layout
6917 \begin_layout LyX-Code
6918 cp report.layout ~/.lyx/layouts/myclass.layout
6921 \begin_layout Standard
6923 \begin_inset Flex Code
6926 \begin_layout Plain Layout
6932 and change the line:
6935 \begin_layout LyX-Code
6938 Declare\SpecialChar LaTeX
6942 \begin_layout Standard
6946 \begin_layout LyX-Code
6949 Declare\SpecialChar LaTeX
6950 Class[report, myclass.sty]{report (myclass)}
6953 \begin_layout Standard
6957 \begin_layout LyX-Code
6959 \begin_inset Newline newline
6965 \begin_inset Newline newline
6971 \begin_layout Standard
6972 near the top of the file.
6975 \begin_layout Standard
6976 Start \SpecialChar LyX
6978 \begin_inset Flex MenuItem
6981 \begin_layout Plain Layout
6982 Tools\SpecialChar menuseparator
6989 Then restart \SpecialChar LyX
6990 and try creating a new document.
6992 \begin_inset Flex MenuItem
6995 \begin_layout Plain Layout
7001 " as a document class option in the
7002 \begin_inset Flex MenuItem
7005 \begin_layout Plain Layout
7006 Document\SpecialChar menuseparator
7013 It is likely that some of the sectioning commands and such in your new
7014 class will work differently from how they worked in the base class—
7015 \begin_inset Flex Code
7018 \begin_layout Plain Layout
7024 in this example—so you can fiddle around with the settings for the different
7025 sections if you wish.
7026 The layout information for sections is contained in
7027 \begin_inset Flex Code
7030 \begin_layout Plain Layout
7036 , but you do not need to copy and change this file.
7037 Instead, you can simply add your changes to your layout file, after the
7039 \begin_inset Flex Code
7042 \begin_layout Plain Layout
7048 , which itself includes
7049 \begin_inset Flex Code
7052 \begin_layout Plain Layout
7059 For example, you might add these lines:
7062 \begin_layout LyX-Code
7066 \begin_layout LyX-Code
7070 \begin_layout LyX-Code
7074 \begin_layout LyX-Code
7078 \begin_layout LyX-Code
7082 \begin_layout Standard
7083 to change the font for chapter headings to sans-serif.
7084 This will override (or, in this case, add to) the existing declaration
7085 for the Chapter style.
7089 \begin_layout Standard
7090 Your new package may also provide commands or environments not present in
7092 In this case, you will want to add these to the layout file.
7094 \begin_inset CommandInset ref
7096 reference "sec:TextClass"
7100 for information on how to do so.
7103 \begin_layout Standard
7105 \begin_inset Flex MenuItem
7108 \begin_layout Plain Layout
7114 can be used with several different document classes, and even if it cannot,
7115 you might find it easiest just to write a module that you can load with
7117 The simplest possible such module would be:
7120 \begin_layout LyX-Code
7123 Declare\SpecialChar LyX
7127 \begin_layout LyX-Code
7131 \begin_layout LyX-Code
7132 #Support for mypkg.sty.
7135 \begin_layout LyX-Code
7137 \begin_inset Newline newline
7143 \begin_layout LyX-Code
7145 \begin_inset Newline newline
7151 \begin_layout LyX-Code
7153 \begin_inset Newline newline
7159 \begin_inset Newline newline
7165 \begin_layout Standard
7166 A more complex module might modify the behavior of some existing constructs
7167 or define some new ones.
7169 \begin_inset CommandInset ref
7171 reference "sec:TextClass"
7178 \begin_layout Subsection
7180 \begin_inset Flex MenuItem
7183 \begin_layout Plain Layout
7192 \begin_layout Standard
7193 There are two possibilities here.
7194 One is that the class file is itself based upon an existing document class.
7195 For example, many thesis classes are based upon
7196 \begin_inset Flex MenuItem
7199 \begin_layout Plain Layout
7206 To see whether yours is, look for a line like
7209 \begin_layout LyX-Code
7215 \begin_layout Standard
7217 If so, then you may proceed largely as in the previous section, though
7219 \begin_inset Flex Code
7222 \begin_layout Plain Layout
7223 Declare\SpecialChar LaTeX
7229 line will be different.
7230 If your new class is
7231 \begin_inset Flex Code
7234 \begin_layout Plain Layout
7240 and it is based upon
7241 \begin_inset Flex Code
7244 \begin_layout Plain Layout
7250 , then the line should read:
7254 \begin_layout Plain Layout
7255 And it will be easiest if you save the file to
7256 \begin_inset Flex Code
7259 \begin_layout Plain Layout
7266 assumes that the document class has the same name as the layout file.
7275 \begin_layout LyX-Code
7278 Declare\SpecialChar LaTeX
7279 Class[thesis,book]{thesis}
7282 \begin_layout Standard
7283 If, on the other hand, the new class is not based upon an existing class,
7284 you will probably have to
7285 \begin_inset Quotes eld
7289 \begin_inset Quotes erd
7293 We strongly suggest copying an existing layout file which uses a similar
7295 class and then modifying it, if you can do so.
7296 At least use an existing file as a starting point so you can find out what
7297 items you need to worry about.
7298 Again, the specifics are covered below.
7301 \begin_layout Subsection
7303 \begin_inset CommandInset label
7305 name "subsec:Creating-Templates"
7312 \begin_layout Standard
7313 Once you have written a layout file for a new document class, you might
7314 want to consider writing a
7319 A template acts as a kind of tutorial for your layout, showing how it might
7320 be used, though containing dummy content.
7321 You can of course look at the various templates included with \SpecialChar LyX
7325 \begin_layout Standard
7326 Templates are created just like usual documents: using \SpecialChar LyX
7328 The only difference is that usual documents contain all possible settings,
7329 including the font scheme and the paper size.
7330 Usually a user doesn't want a template to overwrite his preferred settings
7331 for such parameters.
7332 For that reason, the designer of a template should remove the corresponding
7334 \begin_inset Flex Code
7337 \begin_layout Plain Layout
7346 \begin_inset Flex Code
7349 \begin_layout Plain Layout
7357 from the template \SpecialChar LyX
7359 This can be done with any simple text-editor, for example
7360 \begin_inset Flex Code
7363 \begin_layout Plain Layout
7370 \begin_inset Flex Code
7373 \begin_layout Plain Layout
7382 \begin_layout Standard
7383 Put the edited template files you create in
7384 \begin_inset Flex Code
7387 \begin_layout Plain Layout
7393 , copy the ones you use from the global template directory in
7394 \begin_inset Flex Code
7397 \begin_layout Plain Layout
7404 to the same place, and redefine the template path in the
7405 \begin_inset Flex MenuItem
7408 \begin_layout Plain Layout
7409 Tools\SpecialChar menuseparator
7410 Preferences\SpecialChar menuseparator
7419 \begin_layout Standard
7420 Note, by the way, that there is a template which has a particular meaning:
7422 \begin_inset Flex Code
7425 \begin_layout Plain Layout
7432 This template is loaded every time you create a new document with
7433 \begin_inset Flex MenuItem
7436 \begin_layout Plain Layout
7437 File\SpecialChar menuseparator
7443 in order to provide useful defaults.
7444 To create this template from inside \SpecialChar LyX
7445 , all you have to do is to open a document
7446 with the correct settings, and use the
7447 \begin_inset Flex MenuItem
7450 \begin_layout Plain Layout
7451 Save as Document Defaults
7459 \begin_layout Subsection
7460 Upgrading old layout files
7463 \begin_layout Standard
7464 The format of layout files changes with each \SpecialChar LyX
7465 release, so old layout files
7466 need to be converted to the new format.
7468 reads a layout file in an older format, it automatically calls the
7470 \begin_inset Flex Code
7473 \begin_layout Plain Layout
7479 to convert it to a temporary file in current format.
7480 The original file is left untouched.
7481 If you use the layout file often, then, you may want to convert it permanently,
7482 so that \SpecialChar LyX
7483 does not have to do so itself every time.
7484 To do this, you can call the converter manually:
7487 \begin_layout Enumerate
7489 \begin_inset Flex Code
7492 \begin_layout Plain Layout
7499 \begin_inset Flex Code
7502 \begin_layout Plain Layout
7511 \begin_layout Enumerate
7513 \begin_inset Newline newline
7517 \begin_inset Flex Code
7520 \begin_layout Plain Layout
7521 python \SpecialChar LyX
7522 Dir/scripts/layout2layout.py myclass.old myclass.layout
7528 \begin_inset Newline newline
7532 \begin_inset Flex Code
7535 \begin_layout Plain Layout
7542 is the name of your \SpecialChar LyX
7546 \begin_layout Standard
7547 Note that manual conversion does not affect included files, so these will
7548 have to be converted separately.
7551 \begin_layout Section
7552 \begin_inset CommandInset label
7554 name "sec:TextClass"
7558 The layout file format
7561 \begin_layout Standard
7562 The following sections describe how layout files are structured and written.
7563 Our advice is to go slowly, save and test often.
7564 It is really not that hard, except that the multitude of options can become
7565 overwhelming, especially if you try to check out too many at once.
7566 It becomes easier if you use existing layouts of \SpecialChar LyX
7567 as examples/reference
7568 or if you modify an existing layout to your needs.
7571 \begin_layout Standard
7572 Note that all the tags used in layout files are case-insensitive.
7574 \begin_inset Flex Code
7577 \begin_layout Plain Layout
7584 \begin_inset Flex Code
7587 \begin_layout Plain Layout
7594 \begin_inset Flex Code
7597 \begin_layout Plain Layout
7603 are really the same tag.
7604 The possible arguments are printed in brackets after the tag's name.
7605 The default argument is typeset
7606 \begin_inset Flex Code
7609 \begin_layout Plain Layout
7618 If the argument has a data type like
7619 \begin_inset Quotes eld
7623 \begin_inset Quotes erd
7627 \begin_inset Quotes eld
7631 \begin_inset Quotes erd
7634 , the default is shown like this:
7635 \begin_inset Flex Code
7638 \begin_layout Plain Layout
7649 \begin_layout Subsection
7650 The document class declaration and classification
7653 \begin_layout Standard
7654 Lines in a layout file which begin with
7655 \begin_inset Flex Code
7658 \begin_layout Plain Layout
7665 There is one exception to this rule.
7667 \begin_inset Flex Code
7670 \begin_layout Plain Layout
7676 files should begin with lines like:
7679 \begin_layout LyX-Code
7682 #% Do not delete the line below; configure depends on this
7685 \begin_layout LyX-Code
7696 \begin_layout Plain Layout
7705 eXClass{Article (Standard Class)}
7708 \begin_layout LyX-Code
7713 DeclareCategory{Articles}
7716 \begin_layout Standard
7717 The second and third lines are used when you (re)configure \SpecialChar LyX
7719 The layout file is read by the \SpecialChar LaTeX
7721 \begin_inset Flex Code
7724 \begin_layout Plain Layout
7730 , in a special mode where
7731 \begin_inset Flex Code
7734 \begin_layout Plain Layout
7741 The first line is just a \SpecialChar LaTeX
7742 comment, the second one contains the mandatory
7743 declaration of the text class and the third line contains the optional
7744 classification of the class.
7745 If these lines appear in a file named
7746 \begin_inset Flex Code
7749 \begin_layout Plain Layout
7755 , then they define a text class of name
7756 \begin_inset Flex Code
7759 \begin_layout Plain Layout
7765 (the name of the layout file) which uses the \SpecialChar LaTeX
7767 \begin_inset Flex Code
7770 \begin_layout Plain Layout
7776 (the default is to use the same name as the layout).
7778 \begin_inset Quotes eld
7781 Article (Standard Class)
7782 \begin_inset Quotes erd
7785 that appears above is used as a description of the text class in the
7786 \begin_inset Flex MenuItem
7789 \begin_layout Plain Layout
7790 Document\SpecialChar menuseparator
7798 \begin_inset Quotes eld
7802 \begin_inset Quotes erd
7805 in the example) is also used in the
7806 \begin_inset Flex MenuItem
7809 \begin_layout Plain Layout
7810 Document\SpecialChar menuseparator
7816 dialog: the text classes are grouped by these categories (which are usually
7817 genres, so typical categories are
7818 \begin_inset Quotes eld
7822 \begin_inset Quotes erd
7826 \begin_inset Quotes eld
7830 \begin_inset Quotes erd
7834 \begin_inset Quotes eld
7838 \begin_inset Quotes erd
7842 \begin_inset Quotes eld
7846 \begin_inset Quotes erd
7850 \begin_inset Quotes eld
7854 \begin_inset Quotes erd
7858 \begin_inset Quotes eld
7862 \begin_inset Quotes erd
7866 If no category has been declared, the class will be put in the
7867 \begin_inset Quotes eld
7871 \begin_inset Quotes erd
7877 \begin_layout Standard
7878 Let's assume that you wrote your own text class that uses the
7879 \begin_inset Flex Code
7882 \begin_layout Plain Layout
7888 document class, but where you changed the appearance of the section headings.
7889 If you put it in a file
7890 \begin_inset Flex Code
7893 \begin_layout Plain Layout
7899 , the header of this file should be:
7902 \begin_layout LyX-Code
7905 #% Do not delete the line below; configure depends on this
7908 \begin_layout LyX-Code
7919 \begin_layout Plain Layout
7928 eXClass[article]{Article (with My Own Headings)}
7931 \begin_layout LyX-Code
7936 DeclareCategory{Articles}
7939 \begin_layout Standard
7940 This declares a text class
7941 \begin_inset Flex Code
7944 \begin_layout Plain Layout
7950 , associated with the \SpecialChar LaTeX
7952 \begin_inset Flex Code
7955 \begin_layout Plain Layout
7962 \begin_inset Quotes eld
7965 Article (with My Own Headings)
7966 \begin_inset Quotes erd
7970 If your text class depends on several packages, you can declare it as:
7973 \begin_layout LyX-Code
7976 #% Do not delete the line below; configure depends on this
7979 \begin_layout LyX-Code
7990 \begin_layout Plain Layout
7999 eXClass[article,foo.sty]{Article (with My Own Headings)}
8002 \begin_layout LyX-Code
8007 DeclareCategory{Articles}
8010 \begin_layout Standard
8011 This indicates that your text class uses the
8012 \begin_inset Flex Code
8015 \begin_layout Plain Layout
8022 Finally, it is also possible to declare classes for DocBook code.
8023 Typical declarations will look like:
8026 \begin_layout LyX-Code
8029 #% Do not delete the line below; configure depends on this
8032 \begin_layout LyX-Code
8037 DeclareDocBookClass[article]{SGML (DocBook Article)}
8040 \begin_layout LyX-Code
8045 DeclareCategory{Articles (DocBook)}
8048 \begin_layout Standard
8049 Note that these declarations can also be given an optional parameter declaring
8050 the name of the document class (but not a list).
8053 \begin_layout Standard
8054 So, to be as explicit as possible, the form of the layout declaration is:
8057 \begin_layout LyX-Code
8068 \begin_layout Plain Layout
8077 eXClass[class,package.sty]{layout description}
8080 \begin_layout LyX-Code
8085 DeclareCategory{category}
8088 \begin_layout Standard
8089 The class need only be specified if the name of the \SpecialChar LaTeX
8091 name of the layout file are different or if there are packages to load.
8092 If the name of the class file is not specified, then \SpecialChar LyX
8094 that it is the same as the name of the layout file.
8097 \begin_layout Standard
8098 When the text class has been modified to your taste, all you have to do
8099 is to copy it either to
8100 \begin_inset Flex Code
8103 \begin_layout Plain Layout
8111 \begin_inset Flex Code
8114 \begin_layout Plain Layout
8121 \begin_inset Flex MenuItem
8124 \begin_layout Plain Layout
8125 Tools\SpecialChar menuseparator
8131 , exit \SpecialChar LyX
8133 Then your new text class should be available along with the others.
8136 \begin_layout Standard
8137 Once the layout file is installed, you can edit it and see your changes
8138 without having to reconfigure or to restart \SpecialChar LyX
8144 \begin_layout Plain Layout
8145 In versions of \SpecialChar LyX
8146 prior to 1.6, this was not true.
8147 As a result, editing layout files was very time consuming, since you had
8148 constantly to restart \SpecialChar LyX
8154 You can force a reload of the current layout by using the \SpecialChar LyX
8156 \begin_inset Flex MenuItem
8159 \begin_layout Plain Layout
8166 There is no default binding for this function—though, of course, you can
8167 bind it to a key yourself.
8168 But you will normally use this function simply by entering it in the mini-buffe
8173 \begin_layout Standard
8179 \begin_inset Flex MenuItem
8182 \begin_layout Plain Layout
8188 is very much an `advanced feature'.
8193 recommended that you save your work before using this function.
8198 recommended that you not attempt to edit layout information while simultaneousl
8199 y working on a document that you care about.
8200 Use a test document.
8201 Syntax errors and the like in your layout file could cause peculiar behavior.
8202 In particular, such errors could cause \SpecialChar LyX
8203 to regard the current layout as
8204 invalid and to attempt to switch to some other layout.
8208 \begin_layout Plain Layout
8209 Really bad syntax errors may even caused \SpecialChar LyX
8211 This is because certain sorts of errors may make \SpecialChar LyX
8222 The \SpecialChar LyX
8223 team strives to keep \SpecialChar LyX
8224 stable in such situations, but safe is better
8229 \begin_layout Plain Layout
8230 While we're giving advice: make regular backups.
8231 And be nice to your mother.
8239 \begin_layout Subsection
8240 The Module declaration
8243 \begin_layout Standard
8244 A module must begin with a line like the following:
8247 \begin_layout LyX-Code
8254 \begin_layout Plain Layout
8261 yXModule[endnotes.sty]{Endnotes}
8264 \begin_layout Standard
8265 The mandatory argument, in curly brackets, is the name of the module, as
8267 \begin_inset Flex MenuItem
8270 \begin_layout Plain Layout
8271 Document\SpecialChar menuseparator
8272 Settings\SpecialChar menuseparator
8279 The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8281 on which the module depends.
8282 It is also possible to use the form
8283 \begin_inset Flex MenuItem
8286 \begin_layout Plain Layout
8292 as an optional argument, which declares that the module can only be used
8293 when there exists a conversion chain between the formats `
8294 \begin_inset Flex Code
8297 \begin_layout Plain Layout
8304 \begin_inset Flex Code
8307 \begin_layout Plain Layout
8316 \begin_layout Standard
8317 The module declaration should then be followed by lines like the following
8321 \begin_layout Plain Layout
8322 Preferably in English if the module should be published with \SpecialChar LyX
8324 This description will appear in the list of messages to be translated and
8325 will be thus translated with the next interface update.
8333 \begin_layout LyX-Code
8337 \begin_layout LyX-Code
8338 #Adds an endnote command, in addition to footnotes.
8342 \begin_layout LyX-Code
8343 #You will need to add
8345 theendnotes in \SpecialChar TeX
8349 \begin_layout LyX-Code
8350 #want the endnotes to appear.
8354 \begin_layout LyX-Code
8358 \begin_layout LyX-Code
8359 #Requires: somemodule | othermodule
8362 \begin_layout LyX-Code
8363 #Excludes: badmodule
8366 \begin_layout Standard
8367 The description is used in
8368 \begin_inset Flex MenuItem
8371 \begin_layout Plain Layout
8372 Document\SpecialChar menuseparator
8373 Settings\SpecialChar menuseparator
8379 to provide the user with information about what the module does.
8381 \begin_inset Flex Code
8384 \begin_layout Plain Layout
8390 line is used to identify other modules with which this one must be used;
8392 \begin_inset Flex Code
8395 \begin_layout Plain Layout
8401 line is used to identify modules with which this one may not be used.
8402 Both are optional, and, as shown, multiple modules should be separated
8403 with the pipe symbol: |.
8404 Note that the required modules are treated disjunctively:
8408 of the required modules must be used.
8413 excluded module may be used.
8414 Note that modules are identified here by their filenames without the
8415 \begin_inset Flex Code
8418 \begin_layout Plain Layout
8426 \begin_inset Flex Code
8429 \begin_layout Plain Layout
8436 \begin_inset Flex Code
8439 \begin_layout Plain Layout
8448 \begin_layout Subsection
8452 \begin_layout Standard
8453 The first non-comment line of any layout file, included file, or module
8458 contain the file format number:
8461 \begin_layout Description
8462 \begin_inset Flex Code
8465 \begin_layout Plain Layout
8472 \begin_inset Flex Code
8475 \begin_layout Plain Layout
8481 ] The format number of the layout file.
8484 \begin_layout Standard
8485 This tag was introduced with \SpecialChar LyX
8487 \begin_inset space ~
8491 Layout files from older \SpecialChar LyX
8492 versions do not have an explicit file format and
8493 are considered to have
8494 \begin_inset Flex Code
8497 \begin_layout Plain Layout
8499 \begin_inset space ~
8508 The format for the present version of \SpecialChar LyX
8510 But each version of \SpecialChar LyX
8511 is capable of reading earlier versions' layout files,
8512 just as they are capable of reading files produced by earlier versions
8515 There is, however, no provision for converting to earlier formats.
8518 \begin_layout Subsection
8519 \begin_inset CommandInset label
8521 name "subsec:General-text-class"
8525 General text class parameters
8528 \begin_layout Standard
8529 These are general parameters that govern the behavior of an entire document
8535 mean that they must appear in
8536 \begin_inset Flex Code
8539 \begin_layout Plain Layout
8545 files rather than in modules.
8546 A module can contain any layout tag.)
8549 \begin_layout Description
8550 \begin_inset Flex Code
8553 \begin_layout Plain Layout
8559 Adds information that will be output in the
8560 \begin_inset Flex Code
8563 \begin_layout Plain Layout
8569 block when the document is output to XHTML.
8570 Typically, this would be used to output CSS style information, but it can
8571 be used for anything that can appear in
8572 \begin_inset Flex Code
8575 \begin_layout Plain Layout
8583 \begin_inset Quotes eld
8587 \begin_inset Flex Code
8590 \begin_layout Plain Layout
8597 \begin_inset Quotes erd
8603 \begin_layout Description
8604 \begin_inset Flex Code
8607 \begin_layout Plain Layout
8613 Adds information to the document preamble.
8615 \begin_inset Newline newline
8619 \begin_inset Quotes eld
8623 \begin_inset Flex Code
8626 \begin_layout Plain Layout
8633 \begin_inset Quotes erd
8639 \begin_layout Description
8640 \begin_inset Flex Code
8643 \begin_layout Plain Layout
8649 Defines formats for use in the display of bibliographic information.
8651 \begin_inset CommandInset ref
8653 reference "subsec:Citation-format-description"
8659 \begin_inset Quotes eld
8663 \begin_inset Flex Code
8666 \begin_layout Plain Layout
8673 \begin_inset Quotes erd
8679 \begin_layout Description
8680 \begin_inset Flex Code
8683 \begin_layout Plain Layout
8689 Describes various global options supported by the document class.
8691 \begin_inset CommandInset ref
8693 reference "subsec:ClassOptions"
8699 \begin_inset Quotes eld
8703 \begin_inset Flex Code
8706 \begin_layout Plain Layout
8713 \begin_inset Quotes erd
8719 \begin_layout Description
8720 \begin_inset Flex Code
8723 \begin_layout Plain Layout
8730 \begin_inset Flex Code
8733 \begin_layout Plain Layout
8742 \begin_inset space \thinspace{}
8746 \begin_inset Flex Code
8749 \begin_layout Plain Layout
8755 ] Whether the class should
8759 to having one or two columns.
8760 Can be changed in the
8761 \begin_inset Flex MenuItem
8764 \begin_layout Plain Layout
8765 Document\SpecialChar menuseparator
8774 \begin_layout Description
8775 \begin_inset Flex Code
8778 \begin_layout Plain Layout
8785 \begin_inset Flex Code
8788 \begin_layout Plain Layout
8794 ] This sequence defines the properties for a counter.
8795 If the counter does not yet exist, it is created; if it does exist, it
8798 \begin_inset Quotes eld
8802 \begin_inset Flex Code
8805 \begin_layout Plain Layout
8812 \begin_inset Quotes erd
8816 \begin_inset Newline newline
8820 \begin_inset CommandInset ref
8822 reference "subsec:Counters"
8826 for details on counters.
8829 \begin_layout Description
8830 \begin_inset Flex Code
8833 \begin_layout Plain Layout
8839 Sets the default font used to display the document.
8841 \begin_inset CommandInset ref
8843 reference "subsec:Font-description"
8847 for how to declare fonts.
8849 \begin_inset Quotes eld
8853 \begin_inset Flex Code
8856 \begin_layout Plain Layout
8863 \begin_inset Quotes erd
8869 \begin_layout Description
8870 \begin_inset Flex Code
8873 \begin_layout Plain Layout
8880 \begin_inset Flex Code
8883 \begin_layout Plain Layout
8889 ] Specifies a module to be included by default with this document class.
8890 The module is specified as filename without the
8891 \begin_inset Flex Code
8894 \begin_layout Plain Layout
8901 The user can still remove the module, but it will be active at the outset.
8902 (This applies only when new files are created, or when this class is chosen
8903 for an existing document.)
8906 \begin_layout Description
8907 \begin_inset Flex Code
8910 \begin_layout Plain Layout
8917 \begin_inset Flex Code
8920 \begin_layout Plain Layout
8926 ] This is the style that will be assigned to new paragraphs, usually
8927 \begin_inset Flex MenuItem
8930 \begin_layout Plain Layout
8937 This will default to the first defined style if not given, but you are
8938 encouraged to use this directive.
8941 \begin_layout Description
8942 \begin_inset Flex Code
8945 \begin_layout Plain Layout
8952 \begin_inset Flex Code
8955 \begin_layout Plain Layout
8961 ] This tag indicates that the module (which is specified by filename without
8963 \begin_inset Flex Code
8966 \begin_layout Plain Layout
8972 extension) cannot be used with this document class.
8973 This might be used in a journal-specific layout file to prevent, say, the
8975 \begin_inset Flex Code
8978 \begin_layout Plain Layout
8984 module that numbers theorems by section.
8989 be used in a module.
8990 Modules have their own way of excluding other modules (see
8991 \begin_inset CommandInset ref
8993 reference "subsec:Layout-modules"
9000 \begin_layout Description
9001 \begin_inset Flex Code
9004 \begin_layout Plain Layout
9010 Defines a new float.
9012 \begin_inset CommandInset ref
9014 reference "subsec:Floats"
9020 \begin_inset Quotes eld
9024 \begin_inset Flex Code
9027 \begin_layout Plain Layout
9034 \begin_inset Quotes erd
9040 \begin_layout Description
9041 \begin_inset Flex Code
9044 \begin_layout Plain Layout
9050 Sets the information that will be output in the
9051 \begin_inset Flex Code
9054 \begin_layout Plain Layout
9060 block when this document class is output to XHTML.
9061 Note that this will completely override any prior
9062 \begin_inset Flex Code
9065 \begin_layout Plain Layout
9072 \begin_inset Flex Code
9075 \begin_layout Plain Layout
9083 \begin_inset Newline newline
9087 \begin_inset Flex Code
9090 \begin_layout Plain Layout
9096 if you just want to add material to the preamble.) Must end with
9097 \begin_inset Quotes eld
9101 \begin_inset Flex Code
9104 \begin_layout Plain Layout
9111 \begin_inset Quotes erd
9117 \begin_layout Description
9118 \begin_inset Flex Code
9121 \begin_layout Plain Layout
9128 \begin_inset Flex Code
9131 \begin_layout Plain Layout
9137 ] The style to use for the table of contents, bibliography, and so forth,
9138 when the document is output to HTML.
9139 For articles, this should normally be
9140 \begin_inset Flex Code
9143 \begin_layout Plain Layout
9150 \begin_inset Flex Code
9153 \begin_layout Plain Layout
9160 If it is not given, then \SpecialChar LyX
9161 will attempt to figure out which layout to use.
9164 \begin_layout Description
9165 \begin_inset Flex Code
9168 \begin_layout Plain Layout
9175 \begin_inset Flex Code
9178 \begin_layout Plain Layout
9184 ] Modifies the properties of the given counter.
9185 If the counter does not exist, the statement is ignored.
9187 \begin_inset Quotes eld
9191 \begin_inset Flex Code
9194 \begin_layout Plain Layout
9201 \begin_inset Quotes erd
9205 \begin_inset Newline newline
9209 \begin_inset CommandInset ref
9211 reference "subsec:Counters"
9215 for details on counters.
9218 \begin_layout Description
9219 \begin_inset Flex Code
9222 \begin_layout Plain Layout
9229 \begin_inset Flex Code
9232 \begin_layout Plain Layout
9238 ] Modifies the properties of the given paragraph style.
9239 If the style does not exist, the statement is ignored.
9241 \begin_inset Quotes eld
9245 \begin_inset Flex Code
9248 \begin_layout Plain Layout
9255 \begin_inset Quotes erd
9261 \begin_layout Description
9262 \begin_inset Flex Code
9265 \begin_layout Plain Layout
9272 \begin_inset Flex Code
9275 \begin_layout Plain Layout
9281 ] This allows you to include another layout definition file within yours
9282 to avoid duplicating commands.
9283 Common examples are the standard layout files, for example,
9284 \begin_inset Flex Code
9287 \begin_layout Plain Layout
9293 , which contains most of the basic layouts.
9296 \begin_layout Description
9297 \begin_inset Flex Code
9300 \begin_layout Plain Layout
9307 \begin_inset Flex Code
9310 \begin_layout Plain Layout
9316 ] This section (re-)defines the layout of an inset.
9317 It can be applied to an existing inset or to a new, user-defined inset,
9318 e.g., a new character style.
9320 \begin_inset Quotes eld
9324 \begin_inset Flex Code
9327 \begin_layout Plain Layout
9334 \begin_inset Quotes erd
9338 \begin_inset Newline newline
9342 \begin_inset CommandInset ref
9344 reference "subsec:Flex-insets-and"
9348 for more information.
9352 \begin_layout Description
9353 \begin_inset Flex Code
9356 \begin_layout Plain Layout
9363 \begin_inset Flex Code
9366 \begin_layout Plain Layout
9372 ] A string that indicates the width of the left margin on the screen, for
9374 \begin_inset Quotes eld
9378 \begin_inset Flex Code
9381 \begin_layout Plain Layout
9388 \begin_inset Quotes erd
9392 (Note that this is not a `length', like
9393 \begin_inset Quotes eld
9397 \begin_inset Quotes erd
9403 \begin_layout Description
9404 \begin_inset Flex Code
9407 \begin_layout Plain Layout
9414 \begin_inset Flex Code
9417 \begin_layout Plain Layout
9423 ] Deletes an existing counter, usually one defined in an included file.
9426 \begin_layout Description
9427 \begin_inset Flex Code
9430 \begin_layout Plain Layout
9437 \begin_inset Flex Code
9440 \begin_layout Plain Layout
9446 ] Deletes an existing float.
9447 This is particularly useful when you want to suppress a float that has
9448 been defined in an input file.
9451 \begin_layout Description
9452 \begin_inset Flex Code
9455 \begin_layout Plain Layout
9462 \begin_inset Flex Code
9465 \begin_layout Plain Layout
9471 ] Deletes an existing style.
9474 \begin_layout Description
9475 \begin_inset Flex Code
9478 \begin_layout Plain Layout
9485 \begin_inset Flex Code
9488 \begin_layout Plain Layout
9494 ] The file format (as defined in the \SpecialChar LyX
9495 preferences) produced by this document
9497 It is mainly useful when
9498 \begin_inset Flex Code
9501 \begin_layout Plain Layout
9508 \begin_inset Flex Code
9511 \begin_layout Plain Layout
9517 and one wants to define a new type of literate document.
9518 The format is reset to
9519 \begin_inset Quotes eld
9523 \begin_inset Flex Code
9526 \begin_layout Plain Layout
9533 \begin_inset Quotes erd
9537 \begin_inset Quotes eld
9541 \begin_inset Flex Code
9544 \begin_layout Plain Layout
9551 \begin_inset Quotes erd
9554 when the corresponding
9555 \begin_inset Flex Code
9558 \begin_layout Plain Layout
9564 parameter is encountered.
9567 \begin_layout Description
9568 \begin_inset Flex Code
9571 \begin_layout Plain Layout
9578 \begin_inset Flex Code
9581 \begin_layout Plain Layout
9592 \begin_inset Flex Code
9595 \begin_layout Plain Layout
9602 \begin_inset Flex Code
9605 \begin_layout Plain Layout
9611 ] Specifies what sort of output documents using this class will produce.
9614 \begin_layout Description
9615 \begin_inset Flex Code
9618 \begin_layout Plain Layout
9625 \begin_inset Flex Code
9628 \begin_layout Plain Layout
9635 \begin_inset Flex Code
9638 \begin_layout Plain Layout
9644 ] Specifies options, given in the second string, for the package named by
9647 \begin_inset Quotes eld
9651 \begin_inset Flex Code
9654 \begin_layout Plain Layout
9655 PackageOptions natbib square
9661 \begin_inset Quotes erd
9665 \begin_inset Flex Code
9668 \begin_layout Plain Layout
9674 to be loaded with the
9675 \begin_inset Flex Code
9678 \begin_layout Plain Layout
9685 (For \SpecialChar TeX
9686 perts, this causes \SpecialChar LyX
9688 \begin_inset Flex Code
9691 \begin_layout Plain Layout
9694 PassOptionsToPackage{natbib}{square}
9700 \begin_inset Flex Code
9703 \begin_layout Plain Layout
9712 \begin_layout Description
9713 \begin_inset Flex Code
9716 \begin_layout Plain Layout
9723 \begin_inset Flex Code
9726 \begin_layout Plain Layout
9735 \begin_inset Flex Code
9738 \begin_layout Plain Layout
9745 \begin_inset Flex Code
9748 \begin_layout Plain Layout
9754 ] The default pagestyle.
9755 Can be changed in the
9756 \begin_inset Flex MenuItem
9759 \begin_layout Plain Layout
9760 Document\SpecialChar menuseparator
9769 \begin_layout Description
9770 \begin_inset Flex Code
9773 \begin_layout Plain Layout
9779 Sets the preamble for the \SpecialChar LaTeX
9781 Note that this will completely override any prior
9782 \begin_inset Flex Code
9785 \begin_layout Plain Layout
9792 \begin_inset Flex Code
9795 \begin_layout Plain Layout
9803 \begin_inset Flex Code
9806 \begin_layout Plain Layout
9812 if you just want to add material to the preamble.) Must end with
9813 \begin_inset Quotes eld
9817 \begin_inset Flex Code
9820 \begin_layout Plain Layout
9827 \begin_inset Quotes erd
9833 \begin_layout Description
9834 \begin_inset Flex Code
9837 \begin_layout Plain Layout
9844 \begin_inset Flex Code
9847 \begin_layout Plain Layout
9854 \begin_inset Flex Code
9857 \begin_layout Plain Layout
9866 \begin_inset space \thinspace{}
9870 \begin_inset Flex Code
9873 \begin_layout Plain Layout
9879 ] Whether the class already provides the feature
9880 \begin_inset Flex Code
9883 \begin_layout Plain Layout
9890 A feature is in general the name of a package (e.
9891 \begin_inset space \thinspace{}
9895 \begin_inset space \space{}
9899 \begin_inset Flex Code
9902 \begin_layout Plain Layout
9909 \begin_inset Flex Code
9912 \begin_layout Plain Layout
9919 \begin_inset space \thinspace{}
9923 \begin_inset space \space{}
9927 \begin_inset Flex Code
9930 \begin_layout Plain Layout
9937 \begin_inset Flex Code
9940 \begin_layout Plain Layout
9948 \begin_inset CommandInset ref
9950 reference "chap:List-of-functions"
9954 for the list of features.
9957 \begin_layout Description
9958 \begin_inset Flex Code
9961 \begin_layout Plain Layout
9968 \begin_inset Flex Code
9971 \begin_layout Plain Layout
9977 ] Indicates that this layout provides the functionality of the module mentioned,
9978 which should be specified by the filename without the
9979 \begin_inset Flex Code
9982 \begin_layout Plain Layout
9989 This will typically be used if the layout includes the module directly,
9990 rather than using the
9991 \begin_inset Flex Code
9994 \begin_layout Plain Layout
10000 tag to indicate that it ought to be used.
10001 It could also be used in a module that provided an alternate implementation
10002 of the same functionality.
10005 \begin_layout Description
10006 \begin_inset Flex Code
10009 \begin_layout Plain Layout
10016 \begin_inset Flex Code
10019 \begin_layout Plain Layout
10025 ] Whether the class requires the feature
10026 \begin_inset Flex Code
10029 \begin_layout Plain Layout
10036 Multiple features must be separated by commas.
10037 Note that you can only request supported features.
10039 \begin_inset CommandInset ref
10041 reference "chap:List-of-functions"
10045 for the list of features.)
10048 \begin_layout Description
10049 \begin_inset Flex Code
10052 \begin_layout Plain Layout
10059 \begin_inset Flex Code
10062 \begin_layout Plain Layout
10068 ] A string that indicates the width of the right margin on the screen, for
10070 \begin_inset Quotes eld
10074 \begin_inset Flex Code
10077 \begin_layout Plain Layout
10084 \begin_inset Quotes erd
10090 \begin_layout Description
10091 \begin_inset Flex Code
10094 \begin_layout Plain Layout
10101 \begin_inset Flex Code
10104 \begin_layout Plain Layout
10110 ] Sets which divisions get numbered.
10112 \begin_inset Newline newline
10116 \begin_inset Flex Code
10119 \begin_layout Plain Layout
10125 counter in \SpecialChar LaTeX
10129 \begin_layout Description
10130 \begin_inset Flex Code
10133 \begin_layout Plain Layout
10140 \begin_inset Flex Code
10143 \begin_layout Plain Layout
10152 \begin_inset space \thinspace{}
10156 \begin_inset Flex Code
10159 \begin_layout Plain Layout
10165 ] Whether the class-default should be printing on one or both sides of the
10167 Can be changed in the
10168 \begin_inset Flex MenuItem
10171 \begin_layout Plain Layout
10172 Document\SpecialChar menuseparator
10181 \begin_layout Description
10182 \begin_inset Flex Code
10185 \begin_layout Plain Layout
10192 \begin_inset Flex Code
10195 \begin_layout Plain Layout
10201 ] This sequence defines a paragraph style.
10202 If the style does not yet exist, it is created; if it does exist, its parameter
10205 \begin_inset Quotes eld
10209 \begin_inset Flex Code
10212 \begin_layout Plain Layout
10219 \begin_inset Quotes erd
10223 \begin_inset Newline newline
10227 \begin_inset CommandInset ref
10229 reference "subsec:Paragraph-Styles"
10233 for details on paragraph styles.
10236 \begin_layout Description
10237 \begin_inset Flex Code
10240 \begin_layout Plain Layout
10247 \begin_inset Flex Code
10250 \begin_layout Plain Layout
10256 ] The name of the command or environment to be used with
10257 \begin_inset Flex Code
10260 \begin_layout Plain Layout
10269 \begin_layout Description
10270 \begin_inset Flex Code
10273 \begin_layout Plain Layout
10280 \begin_inset Flex Code
10283 \begin_layout Plain Layout
10292 \begin_inset Flex Code
10295 \begin_layout Plain Layout
10301 ] Indicates what kind of markup is used to define the title of a document.
10303 \begin_inset Flex Code
10306 \begin_layout Plain Layout
10312 means that the macro with name
10313 \begin_inset Flex Code
10316 \begin_layout Plain Layout
10322 will be inserted after the last layout which has
10323 \begin_inset Quotes eld
10327 \begin_inset Flex Code
10330 \begin_layout Plain Layout
10332 \begin_inset space ~
10341 \begin_inset Quotes erd
10346 \begin_inset Flex Code
10349 \begin_layout Plain Layout
10355 corresponds to the case where all layouts which have
10356 \begin_inset Quotes eld
10360 \begin_inset Flex Code
10363 \begin_layout Plain Layout
10365 \begin_inset space ~
10374 \begin_inset Quotes erd
10377 should be enclosed into the
10378 \begin_inset Flex Code
10381 \begin_layout Plain Layout
10390 \begin_layout Description
10391 \begin_inset Flex Code
10394 \begin_layout Plain Layout
10401 \begin_inset Flex Code
10404 \begin_layout Plain Layout
10410 ] Sets which divisions are included in the table of contents.
10412 \begin_inset Flex Code
10415 \begin_layout Plain Layout
10421 counter in \SpecialChar LaTeX
10425 \begin_layout Subsection
10426 \begin_inset Flex Code
10429 \begin_layout Plain Layout
10436 \begin_inset CommandInset label
10438 name "subsec:ClassOptions"
10445 \begin_layout Standard
10447 \begin_inset Flex Code
10450 \begin_layout Plain Layout
10456 section can contain the following entries:
10459 \begin_layout Description
10460 \begin_inset Flex Code
10463 \begin_layout Plain Layout
10470 \begin_inset Flex Code
10473 \begin_layout Plain Layout
10479 ] The list of available font sizes for the document's main font, separated
10481 \begin_inset Quotes eld
10485 \begin_inset Flex Code
10488 \begin_layout Plain Layout
10495 \begin_inset Quotes erd
10501 \begin_layout Description
10502 \begin_inset Flex Code
10505 \begin_layout Plain Layout
10511 Used to set the DTD line with XML-based output classes.
10513 \begin_inset space \thinspace{}
10517 \begin_inset Quotes eld
10520 -//OASIS//DTD DocBook V4.2//EN
10521 \begin_inset Quotes erd
10527 \begin_layout Description
10528 \begin_inset Flex Code
10531 \begin_layout Plain Layout
10538 \begin_inset Flex Code
10541 \begin_layout Plain Layout
10542 string="empty|plain|headings|fancy"
10547 ] The list of available page sty\SpecialChar softhyphen
10549 \begin_inset Quotes eld
10553 \begin_inset Flex Code
10556 \begin_layout Plain Layout
10563 \begin_inset Quotes erd
10569 \begin_layout Description
10570 \begin_inset Flex Code
10573 \begin_layout Plain Layout
10580 \begin_inset Flex Code
10583 \begin_layout Plain Layout
10589 ] Some document class options, separated by a comma, that will be added
10590 to the optional part of the
10591 \begin_inset Flex Code
10594 \begin_layout Plain Layout
10605 \begin_layout Standard
10607 \begin_inset Flex Code
10610 \begin_layout Plain Layout
10616 section must end with
10617 \begin_inset Quotes eld
10621 \begin_inset Flex Code
10624 \begin_layout Plain Layout
10631 \begin_inset Quotes erd
10637 \begin_layout Subsection
10639 \begin_inset CommandInset label
10641 name "subsec:Paragraph-Styles"
10648 \begin_layout Standard
10649 A paragraph style description looks like this:
10653 \begin_layout Plain Layout
10654 Note that this will either define a new style or modify an existing one.
10662 \begin_layout LyX-Code
10669 \begin_layout LyX-Code
10673 \begin_layout LyX-Code
10677 \begin_layout Standard
10678 where the following commands are allowed:
10681 \begin_layout Description
10682 \begin_inset Flex Code
10685 \begin_layout Plain Layout
10692 \begin_inset Flex Code
10695 \begin_layout Plain Layout
10700 , left, right, center
10705 ] Paragraph alignment.
10708 \begin_layout Description
10709 \begin_inset Flex Code
10712 \begin_layout Plain Layout
10719 \begin_inset Flex Code
10722 \begin_layout Plain Layout
10727 , left, right, center
10732 ] A comma separated list of permitted alignments.
10733 (Some \SpecialChar LaTeX
10734 styles prohibit certain alignments, since those wouldn't make sense.
10735 For example a right-aligned or centered enumeration isn't possible.)
10738 \begin_layout Description
10739 \begin_inset Flex Code
10742 \begin_layout Plain Layout
10749 \begin_inset Flex Code
10752 \begin_layout Plain Layout
10758 ] Defines argument number <int> of a command\SpecialChar breakableslash
10759 environment associated with
10761 This is useful for things like section headings, and only makes sense with
10764 Every (optional or required) argument of a command or environment – except
10765 for the required argument that is associated with the content of the paragraph
10766 itself – has a separate definition, where the number specifies the order
10768 The definition must end with
10769 \begin_inset Flex Code
10772 \begin_layout Plain Layout
10779 So a command with two optional arguments has:
10780 \begin_inset Separator parbreak
10787 \begin_layout Quote
10793 \begin_layout Quote
10799 \begin_layout Quote
10805 \begin_layout Quote
10811 \begin_layout Quote
10817 \begin_layout Quote
10823 \begin_layout Standard
10825 \begin_inset Flex Code
10828 \begin_layout Plain Layout
10834 definition, the following specifications are possible:
10837 \begin_layout Itemize
10838 \begin_inset Flex Code
10841 \begin_layout Plain Layout
10848 \begin_inset Flex Code
10851 \begin_layout Plain Layout
10857 The string that will appear both in the menu (to insert this argument)
10858 and on the argument inset button (unless you also specify a separate
10859 \begin_inset Flex Code
10862 \begin_layout Plain Layout
10869 For the menu, you can define an accelerator by appending the respective
10870 character to the string, divided by
10871 \begin_inset Quotes eld
10875 \begin_inset Quotes erd
10879 \begin_inset space \thinspace{}
10883 \begin_inset space \space{}
10887 \begin_inset Quotes eld
10891 \begin_inset Flex Code
10894 \begin_layout Plain Layout
10901 \begin_inset Quotes erd
10907 \begin_layout Itemize
10908 \begin_inset Flex Code
10911 \begin_layout Plain Layout
10918 \begin_inset Flex Code
10921 \begin_layout Plain Layout
10927 A separate string for the menu.
10928 You can define an accelerator by appending the respective character to
10929 the string, divided by
10930 \begin_inset Quotes eld
10934 \begin_inset Quotes erd
10938 \begin_inset space \thinspace{}
10942 \begin_inset space \space{}
10946 \begin_inset Quotes eld
10950 \begin_inset Flex Code
10953 \begin_layout Plain Layout
10960 \begin_inset Quotes erd
10964 This specification is optional.
10965 If it is not given the
10966 \begin_inset Flex Code
10969 \begin_layout Plain Layout
10975 will be used instead for the menu.
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 A longer explanatory text that appears in the tooltip when hovering over
10999 the argument inset.
11002 \begin_layout Itemize
11003 \begin_inset Flex Code
11006 \begin_layout Plain Layout
11013 \begin_inset Flex Code
11016 \begin_layout Plain Layout
11025 \begin_inset space \thinspace{}
11029 \begin_inset Flex Code
11032 \begin_layout Plain Layout
11038 ] Declare if this is a mandatory (1) or an optional (0) argument.
11039 Mandatory arguments will be output empty if not given, while optional arguments
11040 will not be output at all.
11041 By default, mandatory arguments are delimited by
11042 \begin_inset Flex Code
11045 \begin_layout Plain Layout
11051 , while optional arguments are delimited by
11052 \begin_inset Flex Code
11055 \begin_layout Plain Layout
11064 \begin_layout Itemize
11065 \begin_inset Flex Code
11068 \begin_layout Plain Layout
11075 \begin_inset Flex Code
11078 \begin_layout Plain Layout
11084 defines another argument (by its number) which this argument requires to
11085 be output if it is itself output.
11087 \begin_inset space \thinspace{}
11090 g., in \SpecialChar LaTeX
11091 commands, optional arguments often require previous optional arguments
11092 to be output (at least empty), as in
11093 \begin_inset Flex Code
11096 \begin_layout Plain Layout
11099 command[][argument]{text}
11105 This can be achieved by the statement
11106 \begin_inset Flex Code
11109 \begin_layout Plain Layout
11116 \begin_inset Flex Code
11119 \begin_layout Plain Layout
11128 \begin_layout Itemize
11129 \begin_inset Flex Code
11132 \begin_layout Plain Layout
11139 \begin_inset Flex Code
11142 \begin_layout Plain Layout
11148 defines a custom left delimiter (instead of
11149 \begin_inset Flex Code
11152 \begin_layout Plain Layout
11159 \begin_inset Flex Code
11162 \begin_layout Plain Layout
11169 A line break in the output can be indicated by
11170 \begin_inset Flex Code
11173 \begin_layout Plain Layout
11182 \begin_layout Itemize
11183 \begin_inset Flex Code
11186 \begin_layout Plain Layout
11193 \begin_inset Flex Code
11196 \begin_layout Plain Layout
11202 defines a custom right delimiter (instead of
11203 \begin_inset Flex Code
11206 \begin_layout Plain Layout
11213 \begin_inset Flex Code
11216 \begin_layout Plain Layout
11223 A line break in the output can be indicated by
11224 \begin_inset Flex Code
11227 \begin_layout Plain Layout
11236 \begin_layout Itemize
11237 \begin_inset Flex Code
11240 \begin_layout Plain Layout
11247 \begin_inset Flex Code
11250 \begin_layout Plain Layout
11256 defines an argument that is inserted if and only if no user-specified arguments
11258 \begin_inset space \thinspace{}
11262 \begin_inset space \space{}
11265 if no argument inset has been inserted (note that also an empty argument
11266 inset omits the DefaultArg).
11267 Multiple arguments need to be separated by comma.
11270 \begin_layout Itemize
11271 \begin_inset Flex Code
11274 \begin_layout Plain Layout
11281 \begin_inset Flex Code
11284 \begin_layout Plain Layout
11290 defines an argument that is inserted in any case (alone or in addition
11291 to user-specified arguments).
11292 Multiple arguments need to be separated by comma.
11295 \begin_layout Itemize
11296 \begin_inset Flex Code
11299 \begin_layout Plain Layout
11305 The font used for the argument content, see
11306 \begin_inset CommandInset ref
11308 reference "subsec:Font-description"
11315 \begin_layout Itemize
11316 \begin_inset Flex Code
11319 \begin_layout Plain Layout
11325 The font used for the label; see
11326 \begin_inset CommandInset ref
11328 reference "subsec:Font-description"
11335 \begin_layout Itemize
11336 \begin_inset Flex Code
11339 \begin_layout Plain Layout
11346 \begin_inset Flex Code
11349 \begin_layout Plain Layout
11354 , Minimalistic, Conglomerate
11359 ] describes the rendering style used for the inset's frame and buttons.
11362 \begin_layout Itemize
11363 \begin_inset Flex Code
11366 \begin_layout Plain Layout
11373 \begin_inset Flex Code
11376 \begin_layout Plain Layout
11383 \begin_inset Flex Code
11386 \begin_layout Plain Layout
11392 , this argument is automatically inserted when the respective style is selected.
11393 Currently, only one argument per style\SpecialChar breakableslash
11394 layout can be automatically inserted.
11395 \change_inserted -712698321 1431166542
11399 \begin_layout Itemize
11401 \change_inserted -712698321 1431166604
11402 \begin_inset Flex Code
11405 \begin_layout Plain Layout
11407 \change_inserted -712698321 1431166548
11414 \begin_inset Flex Code
11417 \begin_layout Plain Layout
11419 \change_inserted -712698321 1431166543
11426 \begin_inset Flex Code
11429 \begin_layout Plain Layout
11431 \change_inserted -712698321 1431166543
11437 , this argument will bei inserted with a copy of the co-text (either selected
11438 text or the whole paragraph) as content.
11441 \begin_layout Itemize
11443 \change_inserted -712698321 1431070588
11444 \begin_inset Flex Code
11447 \begin_layout Plain Layout
11449 \change_inserted -712698321 1431070522
11456 \begin_inset Flex Code
11459 \begin_layout Plain Layout
11461 \change_inserted -712698321 1431070522
11462 string of characters
11471 Defines individual characters that should be output in raw form, meaning
11472 without special translations that \SpecialChar LaTeX
11474 Note that, contrary to PassThru, this needs to be explicitly defined for
11476 That is, arguments do not inherit PassThruChars from their parent inset
11482 \begin_layout Standard
11483 By default, the text entered in the \SpecialChar LyX
11484 workarea in the respective layout is
11485 the last (mandatory) argument of a command if the
11486 \begin_inset Flex Code
11489 \begin_layout Plain Layout
11496 \begin_inset Flex Code
11499 \begin_layout Plain Layout
11506 However, arguments with the prefix
11507 \begin_inset Flex Code
11510 \begin_layout Plain Layout
11516 are output after this workarea argument.
11517 Note that post-argument numbering restarts at 1, so the first argument
11518 following the workarea argument is
11519 \begin_inset Flex Code
11522 \begin_layout Plain Layout
11529 Post-arguments are ignored in any other
11530 \begin_inset Flex Code
11533 \begin_layout Plain Layout
11540 \begin_inset Flex Code
11543 \begin_layout Plain Layout
11552 \begin_layout Standard
11554 \begin_inset Flex Code
11557 \begin_layout Plain Layout
11566 \begin_inset Flex Code
11569 \begin_layout Plain Layout
11578 \begin_inset Flex Code
11581 \begin_layout Plain Layout
11587 followed by the number (e.
11588 \begin_inset space \thinspace{}
11592 \begin_inset space \space{}
11596 \begin_inset Flex Code
11599 \begin_layout Plain Layout
11609 \begin_layout Description
11610 \begin_inset Flex Code
11613 \begin_layout Plain Layout
11619 Note that this will completely override any prior
11620 \begin_inset Flex Code
11623 \begin_layout Plain Layout
11629 declaration for this style.
11631 \begin_inset Quotes eld
11635 \begin_inset Flex Code
11638 \begin_layout Plain Layout
11645 \begin_inset Quotes erd
11650 \begin_inset CommandInset ref
11652 reference "subsec:I18n"
11656 for details on its use.
11659 \begin_layout Description
11660 \begin_inset Flex Code
11663 \begin_layout Plain Layout
11670 \begin_inset Flex Code
11673 \begin_layout Plain Layout
11683 \begin_layout Plain Layout
11684 Note that a `float' here is a real number, such as: 1.5.
11689 The vertical space with which the last of a chain of paragraphs with this
11690 style is separated from the following paragraph.
11691 If the next paragraph has another style, the separations are not simply
11692 added, but the maximum is taken.
11695 \begin_layout Description
11696 \begin_inset Flex Code
11699 \begin_layout Plain Layout
11706 \begin_inset Flex Code
11709 \begin_layout Plain Layout
11715 ] The category for this style.
11716 This is used to group related styles in the style combobox on the toolbar.
11717 Any string can be used, but you may want to use existing categories with
11722 \begin_layout Description
11723 \begin_inset Flex Code
11726 \begin_layout Plain Layout
11732 Depth of XML command.
11733 Used only with XML-type formats.
11736 \begin_layout Description
11737 \begin_inset Flex Code
11740 \begin_layout Plain Layout
11747 \begin_inset Flex Code
11750 \begin_layout Plain Layout
11756 ] Copies all the features of an existing style into the current one.
11760 \begin_layout Description
11761 \begin_inset Flex Code
11764 \begin_layout Plain Layout
11771 \begin_inset Flex Code
11774 \begin_layout Plain Layout
11780 ] The name of a style whose preamble should be output
11785 This allows to ensure some ordering of the preamble snippets when macros
11786 definitions depend on one another.
11790 \begin_layout Plain Layout
11791 Note that, besides that functionality, there is no way to ensure any ordering
11793 The ordering that you see in a given version of \SpecialChar LyX
11794 may change without warning
11803 \begin_layout Description
11804 \begin_inset Flex Code
11807 \begin_layout Plain Layout
11814 \begin_inset Flex Code
11817 \begin_layout Plain Layout
11822 , Box, Filled_Box, Static
11827 ] The type of label that stands at the end of the paragraph (or sequence
11829 \begin_inset Flex Code
11832 \begin_layout Plain Layout
11839 \begin_inset Newline newline
11843 \begin_inset Flex Code
11846 \begin_layout Plain Layout
11853 \begin_inset Flex Code
11856 \begin_layout Plain Layout
11863 \begin_inset Flex Code
11866 \begin_layout Plain Layout
11874 \begin_inset Flex Code
11877 \begin_layout Plain Layout
11884 \begin_inset Quotes eld
11888 \begin_inset Quotes erd
11892 \begin_inset Flex Code
11895 \begin_layout Plain Layout
11902 \begin_inset space \space{}
11906 \begin_inset Flex Code
11909 \begin_layout Plain Layout
11915 ) is a white (resp.
11916 \begin_inset space ~
11919 black) square suitable for end of proof markers,
11920 \begin_inset Flex Code
11923 \begin_layout Plain Layout
11929 is an explicit text string.
11932 \begin_layout Description
11933 \begin_inset Flex Code
11936 \begin_layout Plain Layout
11943 \begin_inset Flex Code
11946 \begin_layout Plain Layout
11952 ] The string used for a label with a
11953 \begin_inset Flex Code
11956 \begin_layout Plain Layout
11963 \begin_inset Newline newline
11967 \begin_inset Flex Code
11970 \begin_layout Plain Layout
11980 \begin_layout Description
11981 \begin_inset Flex Code
11984 \begin_layout Plain Layout
11990 The font used for both the text body
11996 \begin_inset CommandInset ref
11998 reference "subsec:Font-description"
12003 Note that defining this font automatically defines the
12004 \begin_inset Flex Code
12007 \begin_layout Plain Layout
12014 So you should define this one first if you also want to define
12015 \begin_inset Flex Code
12018 \begin_layout Plain Layout
12027 \begin_layout Description
12028 \begin_inset Flex Code
12031 \begin_layout Plain Layout
12038 \begin_inset Flex Code
12041 \begin_layout Plain Layout
12047 ] Used for backporting new styles to stable \SpecialChar LyX
12049 The first stable version that supports this tag is \SpecialChar LyX
12051 The argument is a number which may either be 0, -1 or any value greater
12054 \begin_inset Flex Code
12057 \begin_layout Plain Layout
12063 flag of a style is greater than zero, it will always be written to the
12065 If a .lyx file is read, the style definitions from the document header are
12066 added to the document class.
12067 Therefore even older \SpecialChar LyX
12068 versions can handle the style.
12070 \begin_inset Flex Code
12073 \begin_layout Plain Layout
12079 is a version number: If the style is read, and the version number is less
12080 than the version number of the already existing style in the document class,
12081 the new style is ignored.
12082 If the version number is greater, the new style replaces the existing style.
12083 A value of -1 means an infinite version number, i.
12084 \begin_inset space \thinspace{}
12088 \begin_inset space \space{}
12091 the style is always used.
12094 \begin_layout Description
12095 \begin_inset Flex Code
12098 \begin_layout Plain Layout
12105 \begin_inset Flex Code
12108 \begin_layout Plain Layout
12117 \begin_inset space \thinspace{}
12121 \begin_inset Flex Code
12124 \begin_layout Plain Layout
12130 ] Usually \SpecialChar LyX
12131 does not allow you to insert more than one space between words,
12132 since a space is considered as the separation between two words, not a
12133 character or symbol of its own.
12134 This is a very fine thing but sometimes annoying, for example, when typing
12135 program code or plain \SpecialChar LaTeX
12138 \begin_inset Flex Code
12141 \begin_layout Plain Layout
12148 Note that \SpecialChar LyX
12149 will create protected blanks for the additional blanks when
12150 in another mode than \SpecialChar LaTeX
12154 \begin_layout Description
12155 \begin_inset Flex Code
12158 \begin_layout Plain Layout
12164 These tags are used with XHTML output.
12166 \begin_inset CommandInset ref
12168 reference "subsec:Paragraph-Style-XHTML"
12175 \begin_layout Description
12176 \begin_inset Flex Code
12179 \begin_layout Plain Layout
12185 [FIXME] (Used only with XML-type formats.)
12188 \begin_layout Description
12189 \begin_inset Flex Code
12192 \begin_layout Plain Layout
12199 \begin_inset Flex Code
12202 \begin_layout Plain Layout
12211 \begin_inset space \thinspace{}
12215 \begin_inset Flex Code
12218 \begin_layout Plain Layout
12225 \begin_inset Flex Code
12228 \begin_layout Plain Layout
12234 , marks the style as to be included in the document preamble and not in
12236 This is useful for document classes that want such information as the title
12237 and author to appear in the preamble.
12238 Note that this works only for styles for which the
12239 \begin_inset Flex Code
12242 \begin_layout Plain Layout
12249 \begin_inset Flex Code
12252 \begin_layout Plain Layout
12259 \begin_inset Flex Code
12262 \begin_layout Plain Layout
12271 \begin_layout Description
12272 \begin_inset Flex Code
12275 \begin_layout Plain Layout
12282 \begin_inset Flex Code
12285 \begin_layout Plain Layout
12294 \begin_inset space \thinspace{}
12298 \begin_inset Flex Code
12301 \begin_layout Plain Layout
12308 \begin_inset Flex Code
12311 \begin_layout Plain Layout
12317 , marks the style as being part of a title block (see also the
12318 \begin_inset Flex Code
12321 \begin_layout Plain Layout
12328 \begin_inset Flex Code
12331 \begin_layout Plain Layout
12340 \begin_layout Description
12341 \begin_inset Flex Code
12344 \begin_layout Plain Layout
12351 \begin_inset Flex Code
12354 \begin_layout Plain Layout
12360 ] The \SpecialChar LaTeX
12361 command sequence declaring an item in a list.
12362 The command is to be defined without the preceding backslash (the default
12364 \begin_inset Quotes eld
12368 \begin_inset Quotes erd
12372 \begin_inset Flex Code
12375 \begin_layout Plain Layout
12383 in the \SpecialChar LaTeX
12387 \begin_layout Description
12388 \begin_inset Flex Code
12391 \begin_layout Plain Layout
12398 \begin_inset Flex Code
12401 \begin_layout Plain Layout
12407 ] This provides extra space between paragraphs that have the same style.
12408 If you put other styles into an environment, each is separated with the
12410 \begin_inset Flex Code
12413 \begin_layout Plain Layout
12420 But the whole items of the environment are additionally separated with
12422 \begin_inset Flex Code
12425 \begin_layout Plain Layout
12432 Note that this is a
12437 \begin_layout Description
12438 \begin_inset Flex Code
12441 \begin_layout Plain Layout
12447 [FIXME] (Used only with XML-type formats.)
12450 \begin_layout Description
12451 \begin_inset Flex Code
12454 \begin_layout Plain Layout
12461 \begin_inset Flex Code
12464 \begin_layout Plain Layout
12473 \begin_inset space \thinspace{}
12477 \begin_inset Flex Code
12480 \begin_layout Plain Layout
12486 ] Usually \SpecialChar LyX
12487 does not allow you to leave a paragraph empty, since it would
12488 lead to empty \SpecialChar LaTeX
12490 There are some cases where this could be desirable however: in a letter
12491 template, the required fields can be provided as empty fields, so that
12492 people do not forget them; in some special classes, a style can be used
12493 as some kind of break, which does not contain actual text.
12496 \begin_layout Description
12497 \begin_inset Flex Code
12500 \begin_layout Plain Layout
12507 \begin_inset Flex Code
12510 \begin_layout Plain Layout
12516 ] The vertical space between the label and the text body.
12517 Only used for labels that are above the text body (
12518 \begin_inset Flex Code
12521 \begin_layout Plain Layout
12528 \begin_inset Newline newline
12532 \begin_inset Flex Code
12535 \begin_layout Plain Layout
12536 Centered_Top_Environment
12544 \begin_layout Description
12545 \begin_inset Flex Code
12548 \begin_layout Plain Layout
12555 \begin_inset Flex Code
12558 \begin_layout Plain Layout
12564 ] The name of the counter for automatic numbering.
12565 In order to have the counter appear with your label, you will need to reference
12567 \begin_inset Flex Code
12570 \begin_layout Plain Layout
12579 This will work with
12580 \begin_inset Flex Code
12583 \begin_layout Plain Layout
12590 \begin_inset Flex Code
12593 \begin_layout Plain Layout
12600 \begin_inset Flex Code
12603 \begin_layout Plain Layout
12610 \begin_inset Flex Code
12613 \begin_layout Plain Layout
12620 \begin_inset Newline newline
12628 \begin_inset Flex Code
12631 \begin_layout Plain Layout
12638 \begin_inset Flex Code
12641 \begin_layout Plain Layout
12647 , though this case is a bit complicated.
12648 Suppose you declare
12649 \begin_inset Quotes eld
12653 \begin_inset Flex Code
12656 \begin_layout Plain Layout
12657 LabelCounter myenum
12663 \begin_inset Quotes erd
12667 Then the actual counters used are
12668 \begin_inset Flex Code
12671 \begin_layout Plain Layout
12678 \begin_inset Flex Code
12681 \begin_layout Plain Layout
12688 \begin_inset Flex Code
12691 \begin_layout Plain Layout
12698 \begin_inset Flex Code
12701 \begin_layout Plain Layout
12707 , much as in \SpecialChar LaTeX
12709 These counters must all be declared separately.
12710 \begin_inset Newline newline
12714 \begin_inset CommandInset ref
12716 reference "subsec:Counters"
12720 for details on counters.
12723 \begin_layout Description
12724 \begin_inset Flex Code
12727 \begin_layout Plain Layout
12733 The font used for the label.
12735 \begin_inset CommandInset ref
12737 reference "subsec:Font-description"
12744 \begin_layout Description
12745 \begin_inset Flex Code
12748 \begin_layout Plain Layout
12755 \begin_inset Flex Code
12758 \begin_layout Plain Layout
12764 ] Text that indicates how far a label should be indented.
12767 \begin_layout Description
12768 \begin_inset Flex Code
12771 \begin_layout Plain Layout
12778 \begin_inset Flex Code
12781 \begin_layout Plain Layout
12787 ] Text that indicates the amount of horizontal space between the label and
12789 Only used for labels that are not above the text body.
12792 \begin_layout Description
12793 \begin_inset Flex Code
12796 \begin_layout Plain Layout
12803 \begin_inset Flex Code
12806 \begin_layout Plain Layout
12812 ] The string used for the label.
12814 \begin_inset Flex Code
12817 \begin_layout Plain Layout
12823 is set, this string can be contain the special formatting commands described
12825 \begin_inset CommandInset ref
12827 reference "subsec:Counters"
12834 \begin_layout Description
12835 \begin_inset Flex Code
12838 \begin_layout Plain Layout
12839 LabelStringAppendix
12845 \begin_inset Flex Code
12848 \begin_layout Plain Layout
12854 ] This is used inside the appendix instead of
12855 \begin_inset Newline newline
12859 \begin_inset Flex Code
12862 \begin_layout Plain Layout
12870 \begin_inset Flex Code
12873 \begin_layout Plain Layout
12880 \begin_inset Newline newline
12884 \begin_inset Flex Code
12887 \begin_layout Plain Layout
12888 LabelStringAppendix
12896 \begin_layout Description
12897 \begin_inset Flex Code
12900 \begin_layout Plain Layout
12906 [FIXME] (Used only with XML-type formats.)
12909 \begin_layout Description
12910 \begin_inset Flex Code
12913 \begin_layout Plain Layout
12920 \begin_inset Flex Code
12923 \begin_layout Plain Layout
12928 , Manual, Static, Above,
12929 \begin_inset Newline newline
12932 Centered, Sensitive, Enumerate,
12933 \begin_inset Newline newline
12936 Itemize, Bibliography
12942 \begin_inset Separator parbreak
12949 \begin_layout Description
12950 \begin_inset Flex Code
12953 \begin_layout Plain Layout
12959 means the label is the very first word (up to the first real blank).
12960 Use protected spaces if you want more than one word as the label.
12964 \begin_layout Description
12965 \begin_inset Flex Code
12968 \begin_layout Plain Layout
12974 means the label is simply what is declared as
12975 \begin_inset Flex Code
12978 \begin_layout Plain Layout
12985 This will be displayed
12986 \begin_inset Quotes eld
12990 \begin_inset Quotes erd
12993 , at the beginning of the paragraph.
12995 \begin_inset Flex Code
12998 \begin_layout Plain Layout
13005 \begin_inset Flex Code
13008 \begin_layout Plain Layout
13014 , then it will be displayed only in the first paragraph of any sequence
13015 of paragraphs with the same
13016 \begin_inset Flex Code
13019 \begin_layout Plain Layout
13028 \begin_layout Description
13029 \begin_inset Flex Code
13032 \begin_layout Plain Layout
13039 \begin_inset space ~
13043 \begin_inset space ~
13047 \begin_inset Flex Code
13050 \begin_layout Plain Layout
13056 are special cases of
13057 \begin_inset Flex Code
13060 \begin_layout Plain Layout
13067 The label will be printed above the paragraph either at the beginning of
13068 the line or centered.
13071 \begin_layout Description
13072 \begin_inset Flex Code
13075 \begin_layout Plain Layout
13081 is a special case for the caption-labels
13082 \begin_inset Quotes eld
13086 \begin_inset Quotes erd
13090 \begin_inset Quotes eld
13094 \begin_inset Quotes erd
13098 \begin_inset Newline newline
13102 \begin_inset Flex Code
13105 \begin_layout Plain Layout
13111 means the (hardcoded) label string depends on the kind of float: It is
13112 hardcoded to be `FloatType N', where N is the value of the counter associated
13114 For the case that a caption is inserted outside of a float the
13115 \begin_inset Flex Code
13118 \begin_layout Plain Layout
13125 \begin_inset Quotes eld
13129 \begin_inset Quotes erd
13135 \begin_layout Description
13136 \begin_inset Flex Code
13139 \begin_layout Plain Layout
13145 produces the usual sort of enumeration labels.
13146 At present, it is hardcoded to use Arabic numerals, lowercase letters,
13147 small Roman numerals, and uppercase letters for the four possible depths.
13150 \begin_layout Description
13151 \begin_inset Flex Code
13154 \begin_layout Plain Layout
13160 produces various bullets at the different levels.
13161 It is also hardcoded.
13164 \begin_layout Description
13165 \begin_inset Flex Code
13168 \begin_layout Plain Layout
13174 should be used only with
13175 \begin_inset Flex Code
13178 \begin_layout Plain Layout
13179 LatexType BibEnvironment
13188 \begin_layout Description
13189 \begin_inset Flex Code
13192 \begin_layout Plain Layout
13198 Note that this will completely override any prior
13199 \begin_inset Flex Code
13202 \begin_layout Plain Layout
13208 declaration for this style.
13210 \begin_inset Quotes eld
13214 \begin_inset Flex Code
13217 \begin_layout Plain Layout
13224 \begin_inset Quotes erd
13229 \begin_inset CommandInset ref
13231 reference "subsec:I18n"
13235 for details on its use.
13238 \begin_layout Description
13239 \begin_inset Flex Code
13242 \begin_layout Plain Layout
13249 \begin_inset Flex Code
13252 \begin_layout Plain Layout
13258 ] The name of the corresponding \SpecialChar LaTeX
13260 Either the environment or command name.
13263 \begin_layout Description
13264 \begin_inset Flex Code
13267 \begin_layout Plain Layout
13274 \begin_inset Flex Code
13277 \begin_layout Plain Layout
13283 ] An optional parameter for the corresponding
13284 \begin_inset Flex Code
13287 \begin_layout Plain Layout
13294 This parameter cannot be changed from within \SpecialChar LyX
13296 \begin_inset Flex Code
13299 \begin_layout Plain Layout
13305 for customizable parameters).
13306 This will be output as is after all \SpecialChar LaTeX
13308 \begin_inset Flex Code
13311 \begin_layout Plain Layout
13320 \begin_layout Description
13321 \begin_inset Flex Code
13324 \begin_layout Plain Layout
13331 \begin_inset Flex Code
13334 \begin_layout Plain Layout
13339 , Command, Environment, Item_Environment,
13340 \begin_inset Newline newline
13343 List_Environment, Bib_Environment
13348 ] How the style should be translated into \SpecialChar LaTeX
13353 \begin_layout Plain Layout
13354 \begin_inset Flex Code
13357 \begin_layout Plain Layout
13363 is perhaps a bit misleading, since these rules apply to SGML classes, too.
13364 Visit the SGML class files for specific examples.
13370 \begin_inset Separator parbreak
13377 \begin_layout Description
13378 \begin_inset Flex Code
13381 \begin_layout Plain Layout
13387 means nothing special.
13390 \begin_layout Description
13391 \begin_inset Flex Code
13394 \begin_layout Plain Layout
13401 \begin_inset Flex Code
13404 \begin_layout Plain Layout
13411 {\SpecialChar ldots
13420 \begin_layout Description
13421 \begin_inset Flex Code
13424 \begin_layout Plain Layout
13431 \begin_inset Flex Code
13434 \begin_layout Plain Layout
13441 }\SpecialChar ldots
13457 \begin_layout Description
13458 \begin_inset Flex Code
13461 \begin_layout Plain Layout
13468 \begin_inset Flex Code
13471 \begin_layout Plain Layout
13478 \begin_inset Flex Code
13481 \begin_layout Plain Layout
13489 is generated for each paragraph of this environment.
13493 \begin_layout Description
13494 \begin_inset Flex Code
13497 \begin_layout Plain Layout
13504 \begin_inset Flex Code
13507 \begin_layout Plain Layout
13514 \begin_inset Newline newline
13518 \begin_inset Flex Code
13521 \begin_layout Plain Layout
13527 is passed as an argument to the environment.
13528 \begin_inset Newline newline
13532 \begin_inset Flex Code
13535 \begin_layout Plain Layout
13541 can be defined in the
13542 \begin_inset Flex MenuItem
13545 \begin_layout Plain Layout
13546 Edit\SpecialChar menuseparator
13548 \begin_inset space ~
13559 \begin_layout Description
13560 \begin_inset Flex Code
13563 \begin_layout Plain Layout
13570 \begin_inset Flex Code
13573 \begin_layout Plain Layout
13579 but adds additionally the necessary mandatory argument (the longest label)
13580 to the begin statement of the bibliography environment:
13581 \begin_inset Newline newline
13585 \begin_inset Flex Code
13588 \begin_layout Plain Layout
13591 begin{thebibliography}{99}
13596 It is therefore only useful for bibliography environments.
13597 The default longest label
13598 \begin_inset Quotes eld
13602 \begin_inset Quotes erd
13605 can be changed by the user in the paragraph settings of a bibliography
13609 \begin_layout Standard
13610 Putting the last few things together, the \SpecialChar LaTeX
13611 output will be either:
13614 \begin_layout LyX-Code
13617 LatexName[LatexParam]{\SpecialChar ldots
13621 \begin_layout Standard
13625 \begin_layout LyX-Code
13628 begin{LatexName}[LatexParam] \SpecialChar ldots
13634 \begin_layout Standard
13635 depending upon the \SpecialChar LaTeX
13640 \begin_layout Description
13641 \begin_inset Flex Code
13644 \begin_layout Plain Layout
13651 \begin_inset Flex Code
13654 \begin_layout Plain Layout
13660 ] A string that is put at the beginning of the style content.
13661 A line break in the output can be indicated by
13662 \begin_inset Flex Code
13665 \begin_layout Plain Layout
13674 \begin_layout Description
13675 \begin_inset Flex Code
13678 \begin_layout Plain Layout
13685 \begin_inset Flex Code
13688 \begin_layout Plain Layout
13694 ] If you put styles into environments, the different
13695 \begin_inset Flex Code
13698 \begin_layout Plain Layout
13704 are not simply added, but added with a factor
13705 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13709 Note that this parameter is also used when
13710 \begin_inset Flex Code
13713 \begin_layout Plain Layout
13720 \begin_inset Flex Code
13723 \begin_layout Plain Layout
13730 \begin_inset Flex Code
13733 \begin_layout Plain Layout
13740 Then it is added to the manual or dynamic margin.
13741 \begin_inset Newline newline
13745 \begin_inset Quotes eld
13749 \begin_inset Flex Code
13752 \begin_layout Plain Layout
13759 \begin_inset Quotes erd
13762 means that the paragraph is indented with the width of
13763 \begin_inset Quotes eld
13767 \begin_inset Flex Code
13770 \begin_layout Plain Layout
13777 \begin_inset Quotes erd
13780 in the normal font.
13781 You can get a negative width by prefixing the string with
13782 \begin_inset Quotes eld
13786 \begin_inset Flex Code
13789 \begin_layout Plain Layout
13796 \begin_inset Quotes erd
13800 This way was chosen so that the look is the same with each used screen
13804 \begin_layout Description
13805 \begin_inset Flex Code
13808 \begin_layout Plain Layout
13815 \begin_inset Flex Code
13818 \begin_layout Plain Layout
13823 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13829 \begin_inset Newline newline
13832 The kind of margin that the style has on the left side.
13833 \begin_inset Separator parbreak
13840 \begin_layout Description
13841 \begin_inset Flex Code
13844 \begin_layout Plain Layout
13850 just means a fixed margin.
13853 \begin_layout Description
13854 \begin_inset Flex Code
13857 \begin_layout Plain Layout
13863 means that the left margin depends on the string entered in the
13864 \begin_inset Flex MenuItem
13867 \begin_layout Plain Layout
13868 Edit\SpecialChar menuseparator
13870 \begin_inset space ~
13879 This is used to typeset nice lists without tabulators.
13882 \begin_layout Description
13883 \begin_inset Flex Code
13886 \begin_layout Plain Layout
13892 means that the margin depends on the size of the label.
13893 This is used for automatic enumerated headlines.
13894 It is obvious that the headline
13895 \begin_inset Quotes eld
13898 5.4.3.2.1 Very long headline
13899 \begin_inset Quotes erd
13902 must have a wider left margin (as wide as
13903 \begin_inset Quotes eld
13907 \begin_inset Quotes erd
13910 plus the space) than
13911 \begin_inset Quotes eld
13914 3.2 Very long headline
13915 \begin_inset Quotes erd
13919 \begin_inset Quotes eld
13923 \begin_inset Quotes erd
13926 are not able to do this.
13929 \begin_layout Description
13930 \begin_inset Flex Code
13933 \begin_layout Plain Layout
13939 is similar, but only the very first row of the paragraph is dynamic, while
13940 the others are static; this is used, for example, for descriptions.
13943 \begin_layout Description
13944 \begin_inset Flex Code
13947 \begin_layout Plain Layout
13953 means the margin is chosen in a way that the longest row of this paragraph
13954 fits to the right margin.
13955 This is used to typeset an address on the right edge of the page.
13959 \begin_layout Description
13960 \begin_inset Flex Code
13963 \begin_layout Plain Layout
13970 \begin_inset Flex Code
13973 \begin_layout Plain Layout
13982 \begin_inset space \thinspace{}
13986 \begin_inset Flex Code
13989 \begin_layout Plain Layout
13995 ] Whether fragile commands in this style should be
13996 \begin_inset Flex Code
13999 \begin_layout Plain Layout
14012 whether this command should itself be protected.)
14015 \begin_layout Description
14016 \begin_inset Flex Code
14019 \begin_layout Plain Layout
14026 \begin_inset Flex Code
14029 \begin_layout Plain Layout
14036 \begin_inset space \thinspace{}
14040 \begin_inset Flex Code
14043 \begin_layout Plain Layout
14051 ] Whether newlines are translated into \SpecialChar LaTeX
14053 \begin_inset Flex Code
14056 \begin_layout Plain Layout
14067 The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14069 inside \SpecialChar LyX
14073 \begin_layout Description
14074 \begin_inset Flex Code
14077 \begin_layout Plain Layout
14084 \begin_inset Flex Code
14087 \begin_layout Plain Layout
14096 \begin_inset space \thinspace{}
14100 \begin_inset Flex Code
14103 \begin_layout Plain Layout
14109 ] If set to true, and if
14110 \begin_inset Flex Code
14113 \begin_layout Plain Layout
14120 \begin_inset Flex Code
14123 \begin_layout Plain Layout
14129 ) paragraphs are being indented, then the indentation of such a paragraph
14130 following one of this type will be suppressed.
14131 (So this will not affect the display of non-default paragraphs.)
14134 \begin_layout Description
14135 \begin_inset Flex Code
14138 \begin_layout Plain Layout
14145 \begin_inset Flex Code
14148 \begin_layout Plain Layout
14154 ] Name of a style that has replaced this style.
14155 This is used to rename a style, while keeping backward compatibility.
14156 \change_inserted -712698321 1432986397
14160 \begin_layout Description
14162 \change_inserted -712698321 1432986583
14163 \begin_inset Flex Code
14166 \begin_layout Plain Layout
14168 \change_inserted -712698321 1432986403
14175 \begin_inset Flex Code
14178 \begin_layout Plain Layout
14180 \change_inserted -712698321 1432986397
14187 \begin_inset space \thinspace{}
14191 \begin_inset Flex Code
14194 \begin_layout Plain Layout
14196 \change_inserted -712698321 1432986397
14202 ] Determines whether consecutive pragraphs of the same type are treated
14203 as belonging together.
14204 This has the effect that the
14205 \begin_inset Flex Code
14208 \begin_layout Plain Layout
14210 \change_inserted -712698321 1432986460
14216 is only printed once before such a group.
14217 By default, this is true for
14218 \begin_inset Flex Code
14221 \begin_layout Plain Layout
14223 \change_inserted -712698321 1432986491
14230 \begin_inset Flex Code
14233 \begin_layout Plain Layout
14235 \change_inserted -712698321 1432986583
14244 \begin_inset Flex Code
14247 \begin_layout Plain Layout
14249 \change_inserted -712698321 1432986572
14257 and false for all other types.
14262 \begin_layout Description
14263 \begin_inset Flex Code
14266 \begin_layout Plain Layout
14273 \begin_inset Flex Code
14276 \begin_layout Plain Layout
14285 \begin_inset space \thinspace{}
14289 \begin_inset Flex Code
14292 \begin_layout Plain Layout
14298 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14300 but only by a line break; together with
14301 \begin_inset Flex Code
14304 \begin_layout Plain Layout
14310 , this allows to emulate a plain text editor (like the ERT inset).
14313 \begin_layout Description
14314 \begin_inset Flex Code
14317 \begin_layout Plain Layout
14324 \begin_inset Flex Code
14327 \begin_layout Plain Layout
14333 ] The indent of the very first line of a paragraph.
14335 \begin_inset Newline newline
14339 \begin_inset Flex Code
14342 \begin_layout Plain Layout
14348 will be fixed for a certain style.
14349 The exception is the default style, since the indentation for these paragraphs
14350 can be prohibited with
14351 \begin_inset Flex Code
14354 \begin_layout Plain Layout
14362 \begin_inset Flex Code
14365 \begin_layout Plain Layout
14371 style paragraphs inside environments use the
14372 \begin_inset Flex Code
14375 \begin_layout Plain Layout
14381 of the environment, not their native one.
14383 \begin_inset Flex Code
14386 \begin_layout Plain Layout
14392 paragraphs inside an enumeration are not indented.
14395 \begin_layout Description
14396 \begin_inset Flex Code
14399 \begin_layout Plain Layout
14406 \begin_inset Flex Code
14409 \begin_layout Plain Layout
14415 ] The vertical space between two paragraphs of this style.
14418 \begin_layout Description
14419 \begin_inset Flex Code
14422 \begin_layout Plain Layout
14429 \begin_inset Flex Code
14432 \begin_layout Plain Layout
14439 allows the user to choose either
14440 \begin_inset Quotes eld
14444 \begin_inset Quotes erd
14448 \begin_inset Quotes eld
14452 \begin_inset Quotes erd
14455 to separate paragraphs.
14457 \begin_inset Quotes eld
14461 \begin_inset Quotes erd
14465 \begin_inset Flex Code
14468 \begin_layout Plain Layout
14476 \begin_inset Quotes eld
14480 \begin_inset Quotes erd
14484 \begin_inset Flex Code
14487 \begin_layout Plain Layout
14493 is ignored and all paragraphs are separated by the
14494 \begin_inset Flex Code
14497 \begin_layout Plain Layout
14504 The vertical space is calculated with
14505 \begin_inset Flex Code
14508 \begin_layout Plain Layout
14510 \begin_inset space ~
14519 \begin_inset Flex Code
14522 \begin_layout Plain Layout
14528 is the height of a row with the normal font.
14529 This way, the look stays the same with different screen fonts.
14532 \begin_layout Description
14533 \begin_inset Flex Code
14536 \begin_layout Plain Layout
14543 \begin_inset Flex Code
14546 \begin_layout Plain Layout
14555 \begin_inset space \thinspace{}
14559 \begin_inset Flex Code
14562 \begin_layout Plain Layout
14568 ] Whether the contents of this paragraph should be output in raw form, meaning
14569 without special translations that \SpecialChar LaTeX
14571 \change_inserted 155139281 1429534178
14575 \begin_layout Description
14577 \change_inserted 155139281 1429534242
14580 \begin_inset Flex Code
14583 \begin_layout Plain Layout
14585 \change_inserted 155139281 1429534178
14594 \begin_inset Flex Code
14597 \begin_layout Plain Layout
14599 \change_inserted 155139281 1429534178
14600 string of characters
14609 Defines individual characters that should be output in raw form, meaning
14610 without special translations that \SpecialChar LaTeX
14616 \begin_layout Description
14617 \begin_inset Flex Code
14620 \begin_layout Plain Layout
14626 Information to be included in the \SpecialChar LaTeX
14627 preamble when this style is used.
14628 Used to define macros, load packages, etc., required by this particular
14631 \begin_inset Quotes eld
14635 \begin_inset Flex Code
14638 \begin_layout Plain Layout
14645 \begin_inset Quotes erd
14651 \begin_layout Description
14652 \begin_inset Flex Code
14655 \begin_layout Plain Layout
14662 \begin_inset Flex Code
14665 \begin_layout Plain Layout
14671 ] The prefix to use when creating labels referring to paragraphs of this
14673 This allows the use of formatted references.
14676 \begin_layout Description
14677 \begin_inset Flex Code
14680 \begin_layout Plain Layout
14687 \begin_inset Flex Code
14690 \begin_layout Plain Layout
14696 ] Whether the style requires the feature
14697 \begin_inset Flex Code
14700 \begin_layout Plain Layout
14707 See the description of
14708 \begin_inset Flex Code
14711 \begin_layout Plain Layout
14718 \begin_inset CommandInset ref
14720 reference "subsec:General-text-class"
14724 ) for information on `features'.
14727 \begin_layout Description
14728 \begin_inset Flex Code
14731 \begin_layout Plain Layout
14738 \begin_inset Flex Code
14741 \begin_layout Plain Layout
14750 \begin_inset Flex Code
14753 \begin_layout Plain Layout
14759 ] Resets the \SpecialChar LaTeX
14760 arguments of this style (as defined via the
14761 \begin_inset Flex Code
14764 \begin_layout Plain Layout
14771 This is useful if you have copied a style via
14772 \begin_inset Flex Code
14775 \begin_layout Plain Layout
14781 , but you do not want to inherit its (required and optional) arguments.
14784 \begin_layout Description
14785 \begin_inset Flex Code
14788 \begin_layout Plain Layout
14795 \begin_inset Flex Code
14798 \begin_layout Plain Layout
14804 ] A string that is put at the end of the layout content.
14805 A line break in the output can be indicated by
14806 \begin_inset Flex Code
14809 \begin_layout Plain Layout
14818 \begin_layout Description
14819 \begin_inset Flex Code
14822 \begin_layout Plain Layout
14829 \begin_inset Flex Code
14832 \begin_layout Plain Layout
14839 \begin_inset Flex Code
14842 \begin_layout Plain Layout
14851 \begin_layout Description
14852 \begin_inset Flex Code
14855 \begin_layout Plain Layout
14862 \begin_inset Flex Code
14865 \begin_layout Plain Layout
14874 \begin_inset Flex Code
14877 \begin_layout Plain Layout
14884 \begin_inset Flex Code
14887 \begin_layout Plain Layout
14894 \begin_inset Flex Code
14897 \begin_layout Plain Layout
14899 \begin_inset space ~
14907 ] This defines what the default spacing should be in the style.
14909 \begin_inset Flex Code
14912 \begin_layout Plain Layout
14919 \begin_inset Flex Code
14922 \begin_layout Plain Layout
14929 \begin_inset Flex Code
14932 \begin_layout Plain Layout
14938 correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14939 If you specify the argument
14940 \begin_inset Flex Code
14943 \begin_layout Plain Layout
14949 , then you must also provide a value argument which will be the actual multiplie
14951 Note that, contrary to other parameters,
14952 \begin_inset Flex Code
14955 \begin_layout Plain Layout
14961 implies the generation of specific \SpecialChar LaTeX
14962 code, using the \SpecialChar LaTeX
14966 \begin_inset Flex Code
14969 \begin_layout Plain Layout
14978 \begin_layout Description
14979 \begin_inset Flex Code
14982 \begin_layout Plain Layout
14989 \begin_inset Flex Code
14992 \begin_layout Plain Layout
14999 \begin_inset space \thinspace{}
15003 \begin_inset Flex Code
15006 \begin_layout Plain Layout
15014 ] Allow spell-checking paragraphs of this style.
15018 \begin_layout Description
15019 \begin_inset Flex Code
15022 \begin_layout Plain Layout
15028 The font used for the text body .
15030 \begin_inset CommandInset ref
15032 reference "subsec:Font-description"
15039 \begin_layout Description
15040 \begin_inset Flex Code
15043 \begin_layout Plain Layout
15052 \begin_inset Flex Code
15055 \begin_layout Plain Layout
15065 The level of the style in the table of contents.
15066 This is used for automatic numbering of section headings.
15067 \change_inserted -712698321 1401363541
15071 \begin_layout Description
15073 \change_inserted -712698321 1401363906
15074 \begin_inset Flex Code
15077 \begin_layout Plain Layout
15079 \change_inserted -712698321 1401363547
15088 \begin_inset Flex Code
15091 \begin_layout Plain Layout
15093 \change_inserted -712698321 1401363664
15106 \begin_inset Flex Code
15109 \begin_layout Plain Layout
15111 \change_inserted -712698321 1401363669
15120 \begin_inset Flex Code
15123 \begin_layout Plain Layout
15125 \change_inserted -712698321 1401363675
15133 ] This tag determines whether the first line indentation of this paragraph
15134 can be toggled via the Paragraph settings dialog.
15138 \begin_inset Flex Code
15141 \begin_layout Plain Layout
15143 \change_inserted -712698321 1401363761
15153 is set, indentation can be toggled if the document settings use
15154 \begin_inset Quotes eld
15158 \begin_inset Quotes erd
15161 paragraph style, with
15162 \begin_inset Flex Code
15165 \begin_layout Plain Layout
15167 \change_inserted -712698321 1401363844
15173 , indentation can always be toggled, notwithstanding the document settings,
15175 \begin_inset Flex Code
15178 \begin_layout Plain Layout
15180 \change_inserted -712698321 1401363901
15186 , indentation can never be toggled.
15191 \begin_layout Description
15192 \begin_inset Flex Code
15195 \begin_layout Plain Layout
15202 \begin_inset Flex Code
15205 \begin_layout Plain Layout
15211 ] The vertical space with which the very first of a chain of paragraphs
15212 with this style is separated from the previous paragraph.
15213 If the previous paragraph has another style, the separations are not simply
15214 added, but the maximum is taken.
15217 \begin_layout Subsection
15218 \begin_inset CommandInset label
15224 Internationalization of Paragraph Styles
15227 \begin_layout Standard
15229 has long supported internationalization of layout information, but, until
15230 version 2.0, this applied only to the user interface and not to, say, PDF
15232 Thus, French authors were forced to resort to ugly hacks if they wanted
15237 1' instead of `Theorem 1'.
15238 Thanks to Georg Baum, that is no longer the case.
15241 \begin_layout Standard
15243 \begin_inset Flex Code
15246 \begin_layout Plain Layout
15252 defines text that is to appear in the typeset document, it may use
15253 \begin_inset Flex Code
15256 \begin_layout Plain Layout
15263 \begin_inset Flex Code
15266 \begin_layout Plain Layout
15272 to support non-English and even multi-language documents correctly.
15273 The following excerpt (from the
15274 \begin_inset Flex Code
15277 \begin_layout Plain Layout
15283 file) shows how this works:
15286 \begin_layout LyX-Code
15288 \begin_inset Separator parbreak
15295 \begin_layout LyX-Code
15298 theoremstyle{remark}
15301 \begin_layout LyX-Code
15304 newtheorem{claim}[thm]{
15311 \begin_layout LyX-Code
15315 \begin_layout LyX-Code
15319 \begin_layout LyX-Code
15324 claimname}{_(Claim)}
15327 \begin_layout LyX-Code
15331 \begin_layout LyX-Code
15335 \begin_layout LyX-Code
15344 claimname}{_(Claim)}}
15347 \begin_layout LyX-Code
15352 \begin_layout Standard
15353 In principle, any legal \SpecialChar LaTeX
15355 \begin_inset Flex Code
15358 \begin_layout Plain Layout
15365 \begin_inset Flex Code
15368 \begin_layout Plain Layout
15374 tags, but in practice they will typically look as they do here.
15375 The key to correct translation of the typeset text is the definition of
15376 the \SpecialChar LaTeX
15378 \begin_inset Flex Code
15381 \begin_layout Plain Layout
15390 \begin_inset Flex Code
15393 \begin_layout Plain Layout
15405 \begin_layout Standard
15407 \begin_inset Flex Code
15410 \begin_layout Plain Layout
15416 tag provides for internationalization based upon the overall language of
15418 The contents of the tag will be included in the preamble, just as with
15420 \begin_inset Flex Code
15423 \begin_layout Plain Layout
15430 What makes it special is the use of the
15431 \begin_inset Quotes eld
15435 \begin_inset Quotes erd
15439 \begin_inset Flex Code
15442 \begin_layout Plain Layout
15448 , which will be replaced, when \SpecialChar LyX
15449 produces \SpecialChar LaTeX
15450 output, with the translation of
15451 its argument into the document language.
15454 \begin_layout Standard
15456 \begin_inset Flex Code
15459 \begin_layout Plain Layout
15465 tag is more complex, since it is meant to provide support for multi-language
15466 documents and so offers an interface to the
15467 \begin_inset Flex Code
15470 \begin_layout Plain Layout
15477 Its contents will be added to the preamble once for each language that
15478 appears in the document.
15479 In this case, the argument to
15480 \begin_inset Flex Code
15483 \begin_layout Plain Layout
15489 will be replaced with its translation into the language in question; the
15491 \begin_inset Flex Code
15494 \begin_layout Plain Layout
15500 is replaced by the language name (as used by the babel package).
15503 \begin_layout Standard
15504 A German document that also included a French section would thus have the
15505 following in the preamble:
15508 \begin_layout LyX-Code
15517 claimname}{Affirmation}}
15518 \begin_inset Newline newline
15529 claimname}{Behauptung}}
15530 \begin_inset Newline newline
15537 claimname}{Behauptung}
15540 \begin_layout Standard
15543 \begin_inset Flex Code
15546 \begin_layout Plain Layout
15552 will then conspire to produce the correct text in the output.
15555 \begin_layout Standard
15556 One important point to note here is that the translations are provided by
15558 itself, through the file
15559 \begin_inset Flex Code
15562 \begin_layout Plain Layout
15569 This means, in effect, that
15570 \begin_inset Flex Code
15573 \begin_layout Plain Layout
15580 \begin_inset Flex Code
15583 \begin_layout Plain Layout
15589 are really only of use in layout files that are provided with \SpecialChar LyX
15591 entered in user-created layout files will not be seen by \SpecialChar LyX
15592 's internationalizatio
15593 n routines unless the
15594 \begin_inset Flex Code
15597 \begin_layout Plain Layout
15603 file is modified accordingly.
15604 That said, however, any layout created with the intention that it will
15605 be included with \SpecialChar LyX
15606 should use these tags where appropriate.
15607 Please note that the paragraph style translations provided by \SpecialChar LyX
15609 change with a minor update (e.
15610 \begin_inset space \thinspace{}
15614 \begin_inset space \space{}
15617 from version 2.1.x to 2.1.y).
15618 It is however quite likely that a major update (e.
15619 \begin_inset space \thinspace{}
15623 \begin_inset space \space{}
15626 from 2.0.x to 2.1.y) will introduce new translations or corrections.
15629 \begin_layout Subsection
15631 \begin_inset CommandInset label
15633 name "subsec:Floats"
15640 \begin_layout Standard
15641 It is necessary to define the floats (
15642 \begin_inset Flex MenuItem
15645 \begin_layout Plain Layout
15652 \begin_inset Flex MenuItem
15655 \begin_layout Plain Layout
15661 , \SpecialChar ldots
15662 ) in the text class itself.
15663 Standard floats are included in the file
15664 \begin_inset Flex Code
15667 \begin_layout Plain Layout
15673 , so you may have to do no more than add
15676 \begin_layout LyX-Code
15677 Input stdfloats.inc
15680 \begin_layout Standard
15681 to your layout file.
15682 If you want to implement a text class that proposes some other float types
15683 (like the AGU class bundled with \SpecialChar LyX
15684 ), the information below will hopefully
15686 \change_inserted -712698321 1432283506
15690 \begin_layout Description
15692 \change_inserted -712698321 1432313622
15693 \begin_inset Flex Code
15696 \begin_layout Plain Layout
15698 \change_inserted -712698321 1432283514
15705 \begin_inset Flex Code
15708 \begin_layout Plain Layout
15710 \change_inserted -712698321 1432283507
15716 =!htbpH] Allowed placement options for this float type.
15717 The value is a string of placement characters.
15718 Possible characters include:
15723 \begin_inset Quotes eld
15727 \begin_inset Quotes erd
15735 \begin_inset Quotes eld
15739 \begin_inset Quotes erd
15747 \begin_inset Quotes eld
15751 \begin_inset Quotes erd
15759 \begin_inset Quotes eld
15763 \begin_inset Quotes erd
15771 \begin_inset Quotes eld
15775 \begin_inset Quotes erd
15783 \begin_inset Quotes eld
15787 \begin_inset Quotes erd
15791 The order of the characters in the string does not matter.
15792 If no placement options are allowed, use the string
15799 \begin_layout Description
15801 \change_inserted -712698321 1432313755
15802 \begin_inset Flex Code
15805 \begin_layout Plain Layout
15807 \change_inserted -712698321 1432313630
15814 \begin_inset Flex Code
15817 \begin_layout Plain Layout
15819 \change_inserted -712698321 1432313646
15828 \begin_inset space \thinspace{}
15834 \begin_inset Flex Code
15837 \begin_layout Plain Layout
15839 \change_inserted -712698321 1432313646
15849 ] Defines whether the float allows to be rotated via the rotfloat package
15852 \begin_inset Flex Code
15855 \begin_layout Plain Layout
15857 \change_inserted -712698321 1432313721
15863 if the float does not support this feature.
15866 \begin_layout Description
15868 \change_inserted -712698321 1432313802
15869 \begin_inset Flex Code
15872 \begin_layout Plain Layout
15874 \change_inserted -712698321 1432313759
15881 \begin_inset Flex Code
15884 \begin_layout Plain Layout
15886 \change_inserted -712698321 1432313755
15895 \begin_inset space \thinspace{}
15901 \begin_inset Flex Code
15904 \begin_layout Plain Layout
15906 \change_inserted -712698321 1432313755
15916 ] Defines whether the float has a starred variant that spans columns in
15917 a two column paragraph.
15919 \begin_inset Flex Code
15922 \begin_layout Plain Layout
15924 \change_inserted -712698321 1432313755
15930 if the float does not support this feature.
15935 \begin_layout Description
15936 \begin_inset Flex Code
15939 \begin_layout Plain Layout
15946 \begin_inset Flex Code
15949 \begin_layout Plain Layout
15956 \begin_inset Quotes erd
15960 \begin_inset Quotes erd
15963 ] The file name extension of an auxiliary file for the list of figures (or
15966 writes the captions to this file.
15969 \begin_layout Description
15970 \begin_inset Flex Code
15973 \begin_layout Plain Layout
15980 \begin_inset Flex Code
15983 \begin_layout Plain Layout
15990 \begin_inset Quotes erd
15994 \begin_inset Quotes erd
15997 ] The string that will be used in the menus and also for the caption.
15998 This is translated to the current language if babel is used.
16001 \begin_layout Description
16002 \begin_inset Flex Code
16005 \begin_layout Plain Layout
16011 These tags control the XHTML output.
16013 \begin_inset CommandInset ref
16015 reference "sec:Tags-for-XHTML"
16022 \begin_layout Description
16023 \begin_inset Flex Code
16026 \begin_layout Plain Layout
16035 \begin_inset Flex Code
16038 \begin_layout Plain Layout
16047 \begin_inset space \thinspace{}
16051 \begin_inset Flex Code
16054 \begin_layout Plain Layout
16060 ] Indicates whether the float is already defined in the document class or
16061 if instead the \SpecialChar LaTeX
16063 \begin_inset Flex Code
16066 \begin_layout Plain Layout
16072 needs to be loaded to define it on-the-fly.
16074 \begin_inset Flex Code
16077 \begin_layout Plain Layout
16084 \begin_inset Flex Code
16087 \begin_layout Plain Layout
16094 It should be set to
16095 \begin_inset Flex Code
16098 \begin_layout Plain Layout
16104 if the float is already defined by the \SpecialChar LaTeX
16108 \begin_layout Description
16109 \begin_inset Flex Code
16112 \begin_layout Plain Layout
16119 \begin_inset Flex Code
16122 \begin_layout Plain Layout
16129 \begin_inset Quotes erd
16133 \begin_inset Quotes erd
16136 ] The command used to generate a list of floats of this type; the leading
16145 \begin_inset Flex Code
16148 \begin_layout Plain Layout
16154 is false, since there is no standard way to generate this command.
16156 \begin_inset Flex Code
16159 \begin_layout Plain Layout
16165 is true, since in that case there is a standard way to define the command.
16168 \begin_layout Description
16169 \begin_inset Flex Code
16172 \begin_layout Plain Layout
16179 \begin_inset Flex Code
16182 \begin_layout Plain Layout
16189 \begin_inset Quotes erd
16193 \begin_inset Quotes erd
16196 ] A title for a list of floats of this kind (list of figures, tables, or
16198 It is used for the screen label within \SpecialChar LyX
16199 , it is used by \SpecialChar LaTeX
16201 it is used as the title in the XHTML output.
16202 It will be translated to the document language.
16205 \begin_layout Description
16206 \begin_inset Flex Code
16209 \begin_layout Plain Layout
16216 \begin_inset Flex Code
16219 \begin_layout Plain Layout
16226 \begin_inset Quotes erd
16230 \begin_inset Quotes erd
16233 ] This (optional) argument determines whether floats of this class will
16234 be numbered within some sectional unit of the document.
16236 \begin_inset Flex Code
16239 \begin_layout Plain Layout
16246 \begin_inset Quotes eld
16250 \begin_inset Flex Code
16253 \begin_layout Plain Layout
16260 \begin_inset Quotes erd
16263 , the floats will be numbered within chapters.
16267 \begin_layout Description
16268 \begin_inset Flex Code
16271 \begin_layout Plain Layout
16278 \begin_inset Flex Code
16281 \begin_layout Plain Layout
16288 \begin_inset Quotes erd
16292 \begin_inset Quotes erd
16295 ] The default placement for the given class of floats.
16296 The string should be as in standard \SpecialChar LaTeX
16298 \begin_inset Flex Code
16301 \begin_layout Plain Layout
16308 \begin_inset Flex Code
16311 \begin_layout Plain Layout
16318 \begin_inset Flex Code
16321 \begin_layout Plain Layout
16328 \begin_inset Flex Code
16331 \begin_layout Plain Layout
16337 for top, bottom, page, and here, respectively.
16341 \begin_layout Plain Layout
16342 Note that the order of these letters in the string is irrelevant, like in
16349 On top of that there is a new type,
16350 \begin_inset Flex Code
16353 \begin_layout Plain Layout
16359 , which does not really correspond to a float, since it means: put it
16360 \begin_inset Quotes eld
16364 \begin_inset Quotes erd
16368 Note however that the
16369 \begin_inset Flex Code
16372 \begin_layout Plain Layout
16378 specifier is special and, because of implementation details, cannot be
16379 used in non-built in float types.
16380 If you do not understand what this means, just use
16381 \begin_inset Quotes eld
16385 \begin_inset Flex Code
16388 \begin_layout Plain Layout
16395 \begin_inset Quotes erd
16401 \begin_layout Description
16402 \begin_inset Flex Code
16405 \begin_layout Plain Layout
16412 \begin_inset Flex Code
16415 \begin_layout Plain Layout
16421 ] The prefix to use when creating labels referring to floats of this type.
16422 This allows the use of formatted references.
16423 Note that you can remove any
16424 \begin_inset Flex Code
16427 \begin_layout Plain Layout
16433 set by a copied style by using the special value
16434 \begin_inset Quotes eld
16438 \begin_inset Quotes erd
16441 , which must be all caps.
16444 \begin_layout Description
16445 \begin_inset Flex Code
16448 \begin_layout Plain Layout
16455 \begin_inset Flex Code
16458 \begin_layout Plain Layout
16465 \begin_inset Quotes erd
16469 \begin_inset Quotes erd
16472 ] The style used when defining the float using
16473 \begin_inset Flex Code
16476 \begin_layout Plain Layout
16487 \begin_layout Description
16488 \begin_inset Flex Code
16491 \begin_layout Plain Layout
16498 \begin_inset Flex Code
16501 \begin_layout Plain Layout
16508 \begin_inset Quotes erd
16512 \begin_inset Quotes erd
16516 \begin_inset Quotes eld
16520 \begin_inset Quotes erd
16523 of the new class of floats, like program or algorithm.
16524 After the appropriate
16525 \begin_inset Flex Code
16528 \begin_layout Plain Layout
16537 \begin_inset Flex Code
16540 \begin_layout Plain Layout
16549 \begin_inset Flex Code
16552 \begin_layout Plain Layout
16563 \begin_layout Description
16564 \begin_inset Flex Code
16567 \begin_layout Plain Layout
16574 \begin_inset Flex Code
16577 \begin_layout Plain Layout
16584 \begin_inset space \thinspace{}
16588 \begin_inset Flex Code
16591 \begin_layout Plain Layout
16599 ] Specifies whether this float is defined using the \SpecialChar LaTeX
16601 \begin_inset Flex Code
16604 \begin_layout Plain Layout
16610 , either by the class file, another package or on-the-fly by \SpecialChar LyX
16614 \begin_layout Standard
16615 Note that defining a float with type
16616 \begin_inset Flex Code
16619 \begin_layout Plain Layout
16627 automatically defines the corresponding counter with name
16628 \begin_inset Flex Code
16631 \begin_layout Plain Layout
16642 \begin_layout Subsection
16643 Flex insets and InsetLayout
16644 \begin_inset CommandInset label
16646 name "subsec:Flex-insets-and"
16653 \begin_layout Standard
16654 Flex insets come in three different kinds:
16657 \begin_layout Itemize
16659 \begin_inset Flex Code
16662 \begin_layout Plain Layout
16668 ): These define semantic markup corresponding to such \SpecialChar LaTeX
16670 \begin_inset Flex Code
16673 \begin_layout Plain Layout
16682 \begin_inset Flex Code
16685 \begin_layout Plain Layout
16696 \begin_layout Itemize
16698 \begin_inset Flex Code
16701 \begin_layout Plain Layout
16707 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
16709 footnote, and the like.
16710 An obvious example is an endnote inset, which is defined in the
16711 \begin_inset Flex Code
16714 \begin_layout Plain Layout
16723 \begin_layout Itemize
16725 \begin_inset Flex Code
16728 \begin_layout Plain Layout
16734 ): For use with DocBook classes.
16737 \begin_layout Standard
16738 Flex insets are defined using the
16739 \begin_inset Flex Code
16742 \begin_layout Plain Layout
16748 tag, which shall be explained in a moment.
16751 \begin_layout Standard
16753 \begin_inset Flex Code
16756 \begin_layout Plain Layout
16762 tag also serves another function: It can be used to customize the general
16763 layout of many different types of insets.
16765 \begin_inset Flex Code
16768 \begin_layout Plain Layout
16774 can be used to customize the layout parameters for footnotes, marginal
16775 notes, note insets, \SpecialChar TeX
16776 code (ERT) insets, branches, listings, indexes, boxes,
16777 tables, algorithms, URLs, and captions, as well as to define Flex insets.
16780 \begin_layout Standard
16782 \begin_inset Flex Code
16785 \begin_layout Plain Layout
16791 definition must begin with a line of the form:
16794 \begin_layout LyX-Code
16798 \begin_layout Standard
16800 \begin_inset Flex Code
16803 \begin_layout Plain Layout
16809 indicates the inset whose layout is being defined, and here there are four
16813 \begin_layout Enumerate
16814 The layout for a pre-existing inset is being modified.
16815 In this case, can be
16816 \begin_inset Flex Code
16819 \begin_layout Plain Layout
16825 any one of the following:
16826 \begin_inset Flex Code
16829 \begin_layout Plain Layout
16836 \begin_inset Flex Code
16839 \begin_layout Plain Layout
16846 \begin_inset Flex Code
16849 \begin_layout Plain Layout
16856 \begin_inset Flex Code
16859 \begin_layout Plain Layout
16866 \begin_inset Flex Code
16869 \begin_layout Plain Layout
16876 \begin_inset Flex Code
16879 \begin_layout Plain Layout
16886 \begin_inset Flex Code
16889 \begin_layout Plain Layout
16896 \begin_inset Flex Code
16899 \begin_layout Plain Layout
16906 \begin_inset Flex Code
16909 \begin_layout Plain Layout
16916 \begin_inset Flex Code
16919 \begin_layout Plain Layout
16926 \begin_inset Flex Code
16929 \begin_layout Plain Layout
16936 \begin_inset Flex Code
16939 \begin_layout Plain Layout
16946 \begin_inset Flex Code
16949 \begin_layout Plain Layout
16956 \begin_inset Flex Code
16959 \begin_layout Plain Layout
16966 \begin_inset Flex Code
16969 \begin_layout Plain Layout
16976 \begin_inset Flex Code
16979 \begin_layout Plain Layout
16986 \begin_inset Flex Code
16989 \begin_layout Plain Layout
16996 \begin_inset Flex Code
16999 \begin_layout Plain Layout
17006 \begin_inset Flex Code
17009 \begin_layout Plain Layout
17016 \begin_inset Flex Code
17019 \begin_layout Plain Layout
17028 \begin_layout Enumerate
17029 The layout for a Flex inset is being defined.
17031 \begin_inset Flex Code
17034 \begin_layout Plain Layout
17040 must be of the form
17041 \begin_inset Quotes eld
17045 \begin_inset Flex Code
17048 \begin_layout Plain Layout
17055 \begin_inset Quotes erd
17059 \begin_inset Flex Code
17062 \begin_layout Plain Layout
17068 may be be any valid identifier not used by a pre-existing Flex inset.
17069 The identifier may include spaces, but in that case the whole thing must
17070 be wrapped in quotes.
17071 Note that the definition of a flex inset
17076 \begin_inset Flex Code
17079 \begin_layout Plain Layout
17086 entry, declaring which type of inset it defines.
17089 \begin_layout Enumerate
17090 The layout for user specific branch is being defined.
17092 \begin_inset Flex Code
17095 \begin_layout Plain Layout
17101 must be of the form
17102 \begin_inset Quotes eld
17106 \begin_inset Flex Code
17109 \begin_layout Plain Layout
17116 \begin_inset Quotes erd
17120 \begin_inset Flex Code
17123 \begin_layout Plain Layout
17129 may be be any valid identifier of branch defined in user's document.
17130 The identifier may include spaces, but in that case the whole thing must
17131 be wrapped in quotes.
17132 The main purpose of this feature is to allow \SpecialChar LaTeX
17133 wrapping around specific
17134 branches as user needs.
17137 \begin_layout Enumerate
17138 The layout of a user (or class) specific caption is being defined.
17140 \begin_inset Flex Code
17143 \begin_layout Plain Layout
17149 must be of the form
17150 \begin_inset Quotes eld
17154 \begin_inset Flex Code
17157 \begin_layout Plain Layout
17164 \begin_inset Quotes erd
17168 \begin_inset Flex Code
17171 \begin_layout Plain Layout
17177 specifies the name of the caption as it appears in the menu.
17178 Have a look at the standard caption (
17179 \begin_inset Flex Code
17182 \begin_layout Plain Layout
17188 ), the specific captions of the KOMA-Script classes (
17189 \begin_inset Flex Code
17192 \begin_layout Plain Layout
17199 \begin_inset Flex Code
17202 \begin_layout Plain Layout
17211 \begin_inset space ~
17217 \begin_inset Flex Code
17220 \begin_layout Plain Layout
17226 ) for applications.
17229 \begin_layout Standard
17231 \begin_inset Flex Code
17234 \begin_layout Plain Layout
17240 definition can contain the following entries:
17243 \begin_layout Description
17244 \begin_inset Flex Code
17247 \begin_layout Plain Layout
17254 \begin_inset Flex Code
17257 \begin_layout Plain Layout
17263 ] Defines argument number of a command\SpecialChar breakableslash
17264 environment associated with the current
17266 The definition must end with
17267 \begin_inset Flex Code
17270 \begin_layout Plain Layout
17278 \begin_inset CommandInset ref
17280 reference "subsec:Paragraph-Styles"
17287 \begin_layout Description
17288 \begin_inset Flex Code
17291 \begin_layout Plain Layout
17297 Preamble for changing language commands; see
17298 \begin_inset CommandInset ref
17300 reference "subsec:I18n"
17307 \begin_layout Description
17308 \begin_inset Flex Code
17311 \begin_layout Plain Layout
17318 \begin_inset Flex Code
17321 \begin_layout Plain Layout
17327 ] The color for the inset's background.
17329 \begin_inset CommandInset ref
17331 reference "chap:Names-of-colors"
17335 for a list of the available color names.
17338 \begin_layout Description
17339 \begin_inset Flex Code
17342 \begin_layout Plain Layout
17349 \begin_inset Flex Code
17352 \begin_layout Plain Layout
17361 \begin_inset space \thinspace{}
17365 \begin_inset Flex Code
17368 \begin_layout Plain Layout
17374 ] Whether to use the content of the inset as the label, when the inset is
17379 \begin_layout Description
17380 \begin_inset Flex Code
17383 \begin_layout Plain Layout
17390 \begin_inset Flex Code
17393 \begin_layout Plain Layout
17399 ] As with paragraph styles, see
17400 \begin_inset CommandInset ref
17402 reference "subsec:Paragraph-Styles"
17407 Note that you need to specify the complete type, e.
17408 \begin_inset space \thinspace{}
17412 \begin_inset space ~
17416 \begin_inset Flex Code
17419 \begin_layout Plain Layout
17420 CopyStyle Flex:<name>
17428 \begin_layout Description
17429 \begin_inset Flex Code
17432 \begin_layout Plain Layout
17439 \begin_inset Flex Code
17442 \begin_layout Plain Layout
17451 \begin_inset space \thinspace{}
17455 \begin_inset Flex Code
17458 \begin_layout Plain Layout
17464 ] Indicates whether the user may employ the Paragraph Settings dialog to
17465 customize the paragraph.
17468 \begin_layout Description
17469 \begin_inset Flex Code
17472 \begin_layout Plain Layout
17479 \begin_inset Flex Code
17482 \begin_layout Plain Layout
17489 \begin_inset Flex Code
17492 \begin_layout Plain Layout
17499 \begin_inset Flex Code
17502 \begin_layout Plain Layout
17508 , describing the rendering style used for the inset's frame and buttons.
17509 Footnotes generally use
17510 \begin_inset Flex Code
17513 \begin_layout Plain Layout
17519 , ERT insets generally
17520 \begin_inset Flex Code
17523 \begin_layout Plain Layout
17529 , and character styles
17530 \begin_inset Flex Code
17533 \begin_layout Plain Layout
17542 \begin_layout Description
17543 \begin_inset Flex Code
17546 \begin_layout Plain Layout
17553 \begin_inset Flex Code
17556 \begin_layout Plain Layout
17565 \begin_inset space \thinspace{}
17571 \begin_inset Flex Code
17574 \begin_layout Plain Layout
17583 \begin_inset Flex Code
17586 \begin_layout Plain Layout
17593 \begin_inset Flex Code
17596 \begin_layout Plain Layout
17603 Indicates whether the environment will stand on its own in the output or
17604 will appear inline with the surrounding text.
17605 If set to false, it is supposed that the \SpecialChar LaTeX
17606 environment ignores white space
17607 (including one newline character) after the
17608 \begin_inset Flex Code
17611 \begin_layout Plain Layout
17624 \begin_inset Flex Code
17627 \begin_layout Plain Layout
17643 \begin_layout Description
17644 \begin_inset Flex Code
17647 \begin_layout Plain Layout
17653 Required at the end of the
17654 \begin_inset Flex Code
17657 \begin_layout Plain Layout
17666 \begin_layout Description
17667 \begin_inset Flex Code
17670 \begin_layout Plain Layout
17676 The font used for both the text body
17682 \begin_inset CommandInset ref
17684 reference "subsec:Font-description"
17689 Note that defining this font automatically defines the
17690 \begin_inset Flex Code
17693 \begin_layout Plain Layout
17699 to the same value, so define this first and define
17700 \begin_inset Flex Code
17703 \begin_layout Plain Layout
17709 later if you want them to be different.
17710 \change_inserted -195340706 1421002157
17714 \begin_layout Description
17716 \change_inserted -195340706 1421002157
17717 \begin_inset Flex Code
17720 \begin_layout Plain Layout
17722 \change_inserted -195340706 1421002157
17723 FixedWidthPreambleEncoding
17729 \begin_inset Flex Code
17732 \begin_layout Plain Layout
17734 \change_inserted -195340706 1421002157
17743 \begin_inset space \thinspace{}
17747 \begin_inset Flex Code
17750 \begin_layout Plain Layout
17752 \change_inserted -195340706 1421002157
17758 ] Force a fixed width encoding for the translated contents of
17759 \begin_inset Flex Code
17762 \begin_layout Plain Layout
17764 \change_inserted -195340706 1421002157
17771 \begin_inset Flex Code
17774 \begin_layout Plain Layout
17776 \change_inserted -195340706 1421002157
17782 code generated by this layout.
17783 This is needed for special packages like the listings package that do not
17784 work with variable width encodings such as utf8.
17786 This setting is ignored if fully unicode aware \SpecialChar LaTeX
17787 backends such as Xe\SpecialChar LaTeX
17794 \begin_layout Description
17795 \begin_inset Flex Code
17798 \begin_layout Plain Layout
17799 ForceLocalFontSwitch
17805 \begin_inset Flex Code
17808 \begin_layout Plain Layout
17817 \begin_inset space \thinspace{}
17821 \begin_inset Flex Code
17824 \begin_layout Plain Layout
17830 ] When using babel, always use a local font switch (
17831 \begin_inset Flex Code
17834 \begin_layout Plain Layout
17842 ), never a global one (such as
17843 \begin_inset Flex Code
17846 \begin_layout Plain Layout
17857 \begin_layout Description
17858 \begin_inset Flex Code
17861 \begin_layout Plain Layout
17868 \begin_inset Flex Code
17871 \begin_layout Plain Layout
17880 \begin_inset space \thinspace{}
17884 \begin_inset Flex Code
17887 \begin_layout Plain Layout
17894 \begin_inset Quotes eld
17898 \begin_inset Quotes erd
17901 language, leading to Left-to-Right (Latin) output, e.
17902 \begin_inset space \thinspace{}
17906 \begin_inset space \space{}
17909 in \SpecialChar TeX
17912 \change_inserted -712698321 1417441977
17916 \begin_layout Description
17918 \change_inserted -712698321 1417442090
17919 \begin_inset Flex Code
17922 \begin_layout Plain Layout
17924 \change_inserted -712698321 1417441983
17931 \begin_inset Flex Code
17934 \begin_layout Plain Layout
17936 \change_inserted -712698321 1417441978
17945 \begin_inset space \thinspace{}
17949 \begin_inset Flex Code
17952 \begin_layout Plain Layout
17954 \change_inserted -712698321 1417441978
17960 ] Force a a line break in the \SpecialChar LaTeX
17961 output before the inset starts and after
17963 This assures the inset itself is output on its own lines, for parsing purposes.
17965 \change_inserted 274215730 1419105878
17971 \begin_layout Description
17972 \begin_inset Flex Code
17975 \begin_layout Plain Layout
17982 \begin_inset Flex Code
17985 \begin_layout Plain Layout
17994 \begin_inset space \thinspace{}
17998 \begin_inset Flex Code
18001 \begin_layout Plain Layout
18007 ] Indicates whether the
18008 \begin_inset Flex Code
18011 \begin_layout Plain Layout
18017 should be used or, instead, the user can change the paragraph style used
18022 \begin_layout Description
18023 \begin_inset Flex Code
18026 \begin_layout Plain Layout
18033 \begin_inset Flex Code
18036 \begin_layout Plain Layout
18045 \begin_inset space \thinspace{}
18049 \begin_inset Flex Code
18052 \begin_layout Plain Layout
18058 ] As with paragraph styles, see
18059 \begin_inset CommandInset ref
18061 reference "subsec:Paragraph-Styles"
18068 \begin_layout Description
18069 \begin_inset Flex Code
18072 \begin_layout Plain Layout
18078 These tags control the XHTML output.
18080 \begin_inset CommandInset ref
18082 reference "sec:Tags-for-XHTML"
18089 \begin_layout Description
18090 \begin_inset Flex Code
18093 \begin_layout Plain Layout
18100 \begin_inset Flex Code
18103 \begin_layout Plain Layout
18112 \begin_inset space \thinspace{}
18116 \begin_inset Flex Code
18119 \begin_layout Plain Layout
18125 ] Whether to include the contents of this inset in the strings generated
18126 for the `Outline' pane.
18127 One would not, for example, want the content of a footnote in a section
18128 header to be included in the TOC displayed in the outline, but one would
18129 normally want the content of a character style displayed.
18130 Default is false: not to include.
18133 \begin_layout Description
18134 \begin_inset Flex Code
18137 \begin_layout Plain Layout
18146 \begin_inset Flex Code
18149 \begin_layout Plain Layout
18158 \begin_inset space \thinspace{}
18162 \begin_inset Flex Code
18165 \begin_layout Plain Layout
18171 ] As with paragraph styles, see
18172 \begin_inset CommandInset ref
18174 reference "subsec:Paragraph-Styles"
18181 \begin_layout Description
18182 \begin_inset Flex Code
18185 \begin_layout Plain Layout
18191 The font used for the label.
18193 \begin_inset CommandInset ref
18195 reference "subsec:Font-description"
18200 Note that this definition can never appear before
18201 \begin_inset Flex Code
18204 \begin_layout Plain Layout
18210 , lest it be ineffective.
18213 \begin_layout Description
18214 \begin_inset Flex Code
18217 \begin_layout Plain Layout
18224 \begin_inset Flex Code
18227 \begin_layout Plain Layout
18234 \begin_inset Quotes erd
18238 \begin_inset Quotes erd
18241 ] What will be displayed on the button or elsewhere as the inset label.
18243 \begin_inset Flex Code
18246 \begin_layout Plain Layout
18254 \begin_inset Flex Code
18257 \begin_layout Plain Layout
18263 ) modify this label on the fly.
18266 \begin_layout Description
18267 \begin_inset Flex Code
18270 \begin_layout Plain Layout
18276 Language dependent preamble; see
18277 \begin_inset CommandInset ref
18279 reference "subsec:I18n"
18286 \begin_layout Description
18287 \begin_inset Flex Code
18290 \begin_layout Plain Layout
18297 \begin_inset Flex Code
18300 \begin_layout Plain Layout
18306 ] The name of the corresponding \SpecialChar LaTeX
18308 Either the environment or command name.
18311 \begin_layout Description
18312 \begin_inset Flex Code
18315 \begin_layout Plain Layout
18322 \begin_inset Flex Code
18325 \begin_layout Plain Layout
18331 ] The optional parameter for the corresponding
18332 \begin_inset Flex Code
18335 \begin_layout Plain Layout
18341 stuff, including possible bracket pairs like
18342 \begin_inset Flex Code
18345 \begin_layout Plain Layout
18352 This parameter cannot be changed from within \SpecialChar LyX
18354 \begin_inset Flex Code
18357 \begin_layout Plain Layout
18363 for customizable parameters).
18364 It will be output as is after all \SpecialChar LaTeX
18366 \begin_inset Flex Code
18369 \begin_layout Plain Layout
18378 \begin_layout Description
18379 \begin_inset Flex Code
18382 \begin_layout Plain Layout
18389 \begin_inset Flex Code
18392 \begin_layout Plain Layout
18393 Command, Environment, None
18398 ] How the style should be translated into \SpecialChar LaTeX
18403 \begin_layout Plain Layout
18404 \begin_inset Flex Code
18407 \begin_layout Plain Layout
18413 is perhaps a bit misleading, since these rules apply to SGML classes too.
18414 Visit the SGML class files for specific examples.
18420 \begin_inset Separator parbreak
18427 \begin_layout Description
18428 \begin_inset Flex Code
18431 \begin_layout Plain Layout
18437 means nothing special
18440 \begin_layout Description
18441 \begin_inset Flex Code
18444 \begin_layout Plain Layout
18451 \begin_inset Flex Code
18454 \begin_layout Plain Layout
18461 {\SpecialChar ldots
18470 \begin_layout Description
18471 \begin_inset Flex Code
18474 \begin_layout Plain Layout
18481 \begin_inset Flex Code
18484 \begin_layout Plain Layout
18491 }\SpecialChar ldots
18506 \begin_layout Standard
18507 Putting the last few things together, the \SpecialChar LaTeX
18508 output will be either:
18511 \begin_layout LyX-Code
18514 LatexName[LatexParam]{\SpecialChar ldots
18518 \begin_layout Standard
18522 \begin_layout LyX-Code
18525 begin{LatexName}[LatexParam] \SpecialChar ldots
18531 \begin_layout Standard
18532 depending upon the \SpecialChar LaTeX
18537 \begin_layout Description
18538 \begin_inset Flex Code
18541 \begin_layout Plain Layout
18548 \begin_inset Flex Code
18551 \begin_layout Plain Layout
18557 ] A string that is put at the beginning of the layout content.
18558 A line break in the output can be indicated by
18559 \begin_inset Flex Code
18562 \begin_layout Plain Layout
18571 \begin_layout Description
18572 \begin_inset Flex Code
18575 \begin_layout Plain Layout
18582 \begin_inset Flex Code
18585 \begin_layout Plain Layout
18592 \begin_inset Flex Code
18595 \begin_layout Plain Layout
18602 \begin_inset Flex Code
18605 \begin_layout Plain Layout
18612 \begin_inset Flex Code
18615 \begin_layout Plain Layout
18621 (indicating a dummy definition ending definitions of charstyles, etc).
18622 This entry is required in and is only meaningful for Flex insets.
18623 Among other things, it determines on which menu this inset will appear.
18625 \begin_inset Flex Code
18628 \begin_layout Plain Layout
18636 \begin_inset Flex Code
18639 \begin_layout Plain Layout
18645 will automatically set
18646 \begin_inset Flex Code
18649 \begin_layout Plain Layout
18657 \begin_inset Flex Code
18660 \begin_layout Plain Layout
18666 can be set to true for
18667 \begin_inset Flex Code
18670 \begin_layout Plain Layout
18676 insets by setting it
18681 \begin_inset Flex Code
18684 \begin_layout Plain Layout
18694 \begin_layout Description
18695 \begin_inset Flex Code
18698 \begin_layout Plain Layout
18705 \begin_inset Flex Code
18708 \begin_layout Plain Layout
18717 \begin_inset space \thinspace{}
18721 \begin_inset Flex Code
18724 \begin_layout Plain Layout
18730 ] Whether multiple paragraphs are permitted in this inset.
18732 \begin_inset Flex Code
18735 \begin_layout Plain Layout
18741 to the same value and
18742 \begin_inset Flex Code
18745 \begin_layout Plain Layout
18751 to the opposite value.
18752 These can be reset to other values, if they are used
18757 \begin_inset Flex Code
18760 \begin_layout Plain Layout
18770 \begin_layout Description
18771 \begin_inset Flex Code
18774 \begin_layout Plain Layout
18781 \begin_inset Flex Code
18784 \begin_layout Plain Layout
18793 \begin_inset space \thinspace{}
18797 \begin_inset Flex Code
18800 \begin_layout Plain Layout
18806 ] Whether fragile commands in this inset should be
18807 \begin_inset Flex Code
18810 \begin_layout Plain Layout
18823 whether the command should itself be protected.) Default is false.
18826 \begin_layout Description
18827 \begin_inset Flex Code
18830 \begin_layout Plain Layout
18837 \begin_inset Flex Code
18840 \begin_layout Plain Layout
18846 ] Deletes an existing
18847 \begin_inset Flex Code
18850 \begin_layout Plain Layout
18857 \change_inserted -712698321 1417953494
18861 \begin_layout Description
18863 \change_inserted -712698321 1417953559
18864 \begin_inset Flex Code
18867 \begin_layout Plain Layout
18869 \change_inserted -712698321 1417953494
18876 \begin_inset Flex Code
18879 \begin_layout Plain Layout
18881 \change_inserted -712698321 1417953574
18888 \begin_inset Flex Code
18891 \begin_layout Plain Layout
18893 \change_inserted -712698321 1417953533
18899 that has replaced this
18900 \begin_inset Flex Code
18903 \begin_layout Plain Layout
18905 \change_inserted -712698321 1417953551
18912 This is used to rename an
18913 \begin_inset Flex Code
18916 \begin_layout Plain Layout
18918 \change_inserted -712698321 1417953559
18924 , while keeping backward compatibility.
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
18987 \begin_inset Flex Code
18990 \begin_layout Plain Layout
18999 \begin_inset space \thinspace{}
19003 \begin_inset Flex Code
19006 \begin_layout Plain Layout
19012 ] As with paragraph styles, see
19013 \begin_inset CommandInset ref
19015 reference "subsec:Paragraph-Styles"
19023 \begin_layout Description
19024 \begin_inset Flex Code
19027 \begin_layout Plain Layout
19033 As with paragraph styles, see
19034 \begin_inset CommandInset ref
19036 reference "subsec:Paragraph-Styles"
19043 \begin_layout Description
19044 \begin_inset Flex Code
19047 \begin_layout Plain Layout
19054 \begin_inset Flex Code
19057 \begin_layout Plain Layout
19063 ] The prefix to use when creating labels referring to insets of this type.
19064 This allows the use of formatted references.
19067 \begin_layout Description
19068 \begin_inset Flex Code
19071 \begin_layout Plain Layout
19078 \begin_inset Flex Code
19081 \begin_layout Plain Layout
19087 ] As with paragraph styles, see
19088 \begin_inset CommandInset ref
19090 reference "subsec:Paragraph-Styles"
19097 \begin_layout Description
19098 \begin_inset Flex Code
19101 \begin_layout Plain Layout
19108 \begin_inset Flex Code
19111 \begin_layout Plain Layout
19120 \begin_inset space \thinspace{}
19124 \begin_inset Flex Code
19127 \begin_layout Plain Layout
19133 ] Resets the \SpecialChar LaTeX
19134 arguments of this layout (as defined via the
19135 \begin_inset Flex Code
19138 \begin_layout Plain Layout
19145 This is useful if you have copied a style via
19146 \begin_inset Flex Code
19149 \begin_layout Plain Layout
19155 , but you do not want to inherit its (required and optional) arguments.
19158 \begin_layout Description
19159 \begin_inset Flex Code
19162 \begin_layout Plain Layout
19169 \begin_inset Flex Code
19172 \begin_layout Plain Layout
19179 \begin_inset space \thinspace{}
19183 \begin_inset Flex Code
19186 \begin_layout Plain Layout
19194 ] Whether this inset should use the font of its surrounding environment
19196 Default is false: use the font of the surrounding environment.
19199 \begin_layout Description
19200 \begin_inset Flex Code
19203 \begin_layout Plain Layout
19210 \begin_inset Flex Code
19213 \begin_layout Plain Layout
19219 ] A string that is put at the end of the layout content.
19220 A line break in the output can be indicated by
19221 \begin_inset Flex Code
19224 \begin_layout Plain Layout
19233 \begin_layout Description
19234 \begin_inset Flex Code
19237 \begin_layout Plain Layout
19244 \begin_inset Flex Code
19247 \begin_layout Plain Layout
19254 \begin_inset space \thinspace{}
19258 \begin_inset Flex Code
19261 \begin_layout Plain Layout
19269 ] Allow spell-checking the contents of this inset.
19273 \begin_layout Subsection
19275 \begin_inset CommandInset label
19277 name "subsec:Counters"
19284 \begin_layout Standard
19285 It is necessary to define the counters (
19286 \begin_inset Flex MenuItem
19289 \begin_layout Plain Layout
19296 \begin_inset Flex MenuItem
19299 \begin_layout Plain Layout
19305 , \SpecialChar ldots
19306 ) in the text class itself.
19307 The standard counters are defined in the file
19308 \begin_inset Flex Code
19311 \begin_layout Plain Layout
19317 , so you may have to do no more than add
19320 \begin_layout LyX-Code
19321 Input stdcounters.inc
19324 \begin_layout Standard
19325 to your layout file to get them to work.
19326 But if you want to define custom counters, then you can do so.
19327 The counter declaration must begin with:
19330 \begin_layout LyX-Code
19331 Counter CounterName
19334 \begin_layout Standard
19336 \begin_inset Flex Code
19339 \begin_layout Plain Layout
19345 ' is replaced by the name of the counter.
19346 And it must end with
19347 \begin_inset Quotes eld
19351 \begin_inset Flex Code
19354 \begin_layout Plain Layout
19361 \begin_inset Quotes erd
19365 The following parameters can also be used:
19368 \begin_layout Description
19369 \begin_inset Flex Code
19372 \begin_layout Plain Layout
19379 \begin_inset Flex Code
19382 \begin_layout Plain Layout
19388 ] Sets the initial value for the counter, to which it will be reset whenever
19390 Normally, one will want the default, 1.
19393 \begin_layout Description
19394 \begin_inset Flex Code
19397 \begin_layout Plain Layout
19404 \begin_inset Flex Code
19407 \begin_layout Plain Layout
19414 \begin_inset Quotes erd
19418 \begin_inset Quotes erd
19421 ] When defined, this string defines how the counter is displayed.
19422 Setting this value sets
19423 \begin_inset Flex Code
19426 \begin_layout Plain Layout
19427 LabelStringAppendix
19433 The following special constructs can be used in the string:
19434 \begin_inset Separator parbreak
19441 \begin_layout Itemize
19442 \begin_inset Flex Code
19445 \begin_layout Plain Layout
19453 will be replaced by the expansion of the
19454 \begin_inset Flex Code
19457 \begin_layout Plain Layout
19464 \begin_inset Flex Code
19467 \begin_layout Plain Layout
19468 LabelStringAppendix
19474 \begin_inset Flex Code
19477 \begin_layout Plain Layout
19487 \begin_layout Itemize
19488 counter values can be expressed using \SpecialChar LaTeX
19490 \begin_inset Newline newline
19494 \begin_inset Flex Code
19497 \begin_layout Plain Layout
19514 \begin_inset Flex Code
19517 \begin_layout Plain Layout
19529 \begin_layout Plain Layout
19539 Actually, the situation is a bit more complicated: any
19558 other than those described below will produce arabic numerals.
19559 It would not be surprising to see this change in the future.
19565 \begin_inset Flex Code
19568 \begin_layout Plain Layout
19574 : 1, 2, 3,\SpecialChar ldots
19576 \begin_inset Flex Code
19579 \begin_layout Plain Layout
19585 for lower-case letters: a, b, c, \SpecialChar ldots
19587 \begin_inset Flex Code
19590 \begin_layout Plain Layout
19596 for upper-case letters: A, B, C, \SpecialChar ldots
19598 \begin_inset Flex Code
19601 \begin_layout Plain Layout
19607 for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
19609 \begin_inset Flex Code
19612 \begin_layout Plain Layout
19618 for upper-case roman numerals: I, II, III\SpecialChar ldots
19620 \begin_inset Flex Code
19623 \begin_layout Plain Layout
19629 for hebrew numerals.
19633 \begin_layout Standard
19634 If LabelString is not defined, a default value is constructed as follows:
19635 if the counter has a master counter
19636 \begin_inset Flex Code
19639 \begin_layout Plain Layout
19646 \begin_inset Flex Code
19649 \begin_layout Plain Layout
19656 \begin_inset Newline newline
19660 \begin_inset Flex Code
19663 \begin_layout Plain Layout
19673 is used; otherwise the string
19674 \begin_inset Flex Code
19677 \begin_layout Plain Layout
19688 \begin_layout Description
19689 \begin_inset Flex Code
19692 \begin_layout Plain Layout
19693 LabelStringAppendix
19699 \begin_inset Flex Code
19702 \begin_layout Plain Layout
19709 \begin_inset Quotes erd
19713 \begin_inset Quotes erd
19717 \begin_inset Flex Code
19720 \begin_layout Plain Layout
19726 , but for use in the Appendix.
19729 \begin_layout Description
19730 \begin_inset Flex Code
19733 \begin_layout Plain Layout
19740 \begin_inset Flex Code
19743 \begin_layout Plain Layout
19750 \begin_inset Quotes erd
19754 \begin_inset Quotes erd
19757 ] A format for use with formatted references to this counter.
19758 For example, one might want to have references to section numbers appear
19760 \begin_inset Quotes eld
19764 \begin_inset Quotes erd
19768 The string should contain
19769 \begin_inset Quotes eld
19773 \begin_inset Quotes erd
19777 This will be replaced by the counter number itself.
19778 So, for sections, it would be: Section ##.
19781 \begin_layout Description
19782 \begin_inset Flex Code
19785 \begin_layout Plain Layout
19792 \begin_inset Flex Code
19795 \begin_layout Plain Layout
19802 \begin_inset Quotes erd
19806 \begin_inset Quotes erd
19809 ] If this is set to the name of another counter, the present counter will
19810 be reset every time the other one is increased.
19812 \begin_inset Flex Code
19815 \begin_layout Plain Layout
19822 \begin_inset Flex Code
19825 \begin_layout Plain Layout
19834 \begin_layout Subsection
19836 \begin_inset CommandInset label
19838 name "subsec:Font-description"
19845 \begin_layout Standard
19846 A font description looks like this:
19849 \begin_layout LyX-Code
19863 \begin_layout LyX-Code
19867 \begin_layout LyX-Code
19871 \begin_layout Standard
19872 The following commands are available:
19875 \begin_layout Description
19876 \begin_inset Flex Code
19879 \begin_layout Plain Layout
19886 \begin_inset Flex Code
19889 \begin_layout Plain Layout
19898 \begin_inset Flex Code
19901 \begin_layout Plain Layout
19908 \begin_inset Flex Code
19911 \begin_layout Plain Layout
19918 \begin_inset Flex Code
19921 \begin_layout Plain Layout
19928 \begin_inset Flex Code
19931 \begin_layout Plain Layout
19938 \begin_inset Flex Code
19941 \begin_layout Plain Layout
19948 \begin_inset Flex Code
19951 \begin_layout Plain Layout
19958 \begin_inset Flex Code
19961 \begin_layout Plain Layout
19968 \begin_inset Flex Code
19971 \begin_layout Plain Layout
19980 \begin_layout Description
19981 \begin_inset Flex Code
19984 \begin_layout Plain Layout
19991 \begin_inset Flex Code
19994 \begin_layout Plain Layout
20003 \begin_inset Flex Code
20006 \begin_layout Plain Layout
20013 \begin_inset Flex Code
20016 \begin_layout Plain Layout
20025 \begin_layout Description
20026 \begin_inset Flex Code
20029 \begin_layout Plain Layout
20036 \begin_inset Flex Code
20039 \begin_layout Plain Layout
20045 ] Valid arguments are:
20046 \begin_inset Flex Code
20049 \begin_layout Plain Layout
20056 \begin_inset Flex Code
20059 \begin_layout Plain Layout
20066 \begin_inset Flex Code
20069 \begin_layout Plain Layout
20076 \begin_inset Flex Code
20079 \begin_layout Plain Layout
20086 \begin_inset Flex Code
20089 \begin_layout Plain Layout
20096 \begin_inset Flex Code
20099 \begin_layout Plain Layout
20106 \begin_inset Flex Code
20109 \begin_layout Plain Layout
20116 \begin_inset Flex Code
20119 \begin_layout Plain Layout
20126 \begin_inset Flex Code
20129 \begin_layout Plain Layout
20136 \begin_inset Flex Code
20139 \begin_layout Plain Layout
20146 \begin_inset Flex Code
20149 \begin_layout Plain Layout
20156 \begin_inset Flex Code
20159 \begin_layout Plain Layout
20166 Each of these turns on or off the corresponding attribute.
20168 \begin_inset Flex Code
20171 \begin_layout Plain Layout
20177 turns on emphasis, and
20178 \begin_inset Flex Code
20181 \begin_layout Plain Layout
20189 \begin_inset Newline newline
20192 If the latter seems puzzling, remember that the font settings for the present
20193 context are generally inherited from the surrounding context.
20195 \begin_inset Flex Code
20198 \begin_layout Plain Layout
20204 would turn off the emphasis that was anyway in effect, say, in a theorem
20208 \begin_layout Description
20209 \begin_inset Flex Code
20212 \begin_layout Plain Layout
20219 \begin_inset Flex Code
20222 \begin_layout Plain Layout
20231 \begin_inset Flex Code
20234 \begin_layout Plain Layout
20243 \begin_layout Description
20244 \begin_inset Flex Code
20247 \begin_layout Plain Layout
20254 \begin_inset Flex Code
20257 \begin_layout Plain Layout
20266 \begin_inset Flex Code
20269 \begin_layout Plain Layout
20276 \begin_inset Flex Code
20279 \begin_layout Plain Layout
20286 \begin_inset Flex Code
20289 \begin_layout Plain Layout
20298 \begin_layout Description
20299 \begin_inset Flex Code
20302 \begin_layout Plain Layout
20309 \begin_inset Flex Code
20312 \begin_layout Plain Layout
20319 \begin_inset Flex Code
20322 \begin_layout Plain Layout
20329 \begin_inset Flex Code
20332 \begin_layout Plain Layout
20341 \begin_inset Flex Code
20344 \begin_layout Plain Layout
20351 \begin_inset Flex Code
20354 \begin_layout Plain Layout
20361 \begin_inset Flex Code
20364 \begin_layout Plain Layout
20371 \begin_inset Flex Code
20374 \begin_layout Plain Layout
20381 \begin_inset Flex Code
20384 \begin_layout Plain Layout
20393 \begin_layout Subsection
20394 \begin_inset CommandInset label
20396 name "subsec:Citation-format-description"
20400 Citation format description
20403 \begin_layout Standard
20405 \begin_inset Flex Code
20408 \begin_layout Plain Layout
20414 blocks are used to describe how bibliographic information should be displayed,
20415 both within \SpecialChar LyX
20416 itself (in the citation dialog and in tooltips, for example)
20417 and in XHTML output.
20418 Such a block might look like this:
20421 \begin_layout LyX-Code
20425 \begin_layout LyX-Code
20429 \begin_layout LyX-Code
20433 \begin_layout LyX-Code
20437 \begin_layout Standard
20438 The individual lines define how the bibliographic information associated
20439 with an article or book, respectively, is to be displayed, and such a definitio
20440 n can be given for any `entry type' that might be present in a Bib\SpecialChar TeX
20443 defines a default format in the source code that will be used if no specific
20444 definition has been given.
20446 predefines several formats in the file
20447 \begin_inset Flex Code
20450 \begin_layout Plain Layout
20456 , which is included in most of \SpecialChar LyX
20457 's document classes.
20460 \begin_layout Standard
20461 The definitions use a simple language that allows Bib\SpecialChar TeX
20462 keys to be replaced
20464 Keys should be enclosed in
20465 \begin_inset Flex Code
20468 \begin_layout Plain Layout
20475 \begin_inset Flex Code
20478 \begin_layout Plain Layout
20485 So a simple definition might look like this:
20488 \begin_layout LyX-Code
20490 \begin_inset Quotes eld
20494 \begin_inset Quotes erd
20500 \begin_layout Standard
20501 This would print the author, followed by a comma, followed by the title,
20502 in quotes, followed by a period.
20505 \begin_layout Standard
20506 Of course, sometimes you may want to print a key only if it exists.
20507 This can be done by using a conditional construction, such as:
20508 \begin_inset Flex Code
20511 \begin_layout Plain Layout
20513 \begin_inset space ~
20523 \begin_inset Flex Code
20526 \begin_layout Plain Layout
20532 key exists, then print
20533 \begin_inset Quotes eld
20537 \begin_inset space ~
20541 \begin_inset Quotes erd
20544 followed by the volume key.
20545 It is also possible to have an else clause in the conditional, such as:
20546 \begin_inset Newline newline
20550 \begin_inset Flex Code
20553 \begin_layout Plain Layout
20554 {%author%[[%author%]][[%editor%, ed.]]}
20560 \begin_inset Newline newline
20564 \begin_inset Flex Code
20567 \begin_layout Plain Layout
20573 key is printed if it exists; otherwise, the editor key is printed, followed
20575 \begin_inset Quotes eld
20579 \begin_inset space ~
20583 \begin_inset Quotes erd
20586 Note that the key is again enclosed in
20587 \begin_inset Flex Code
20590 \begin_layout Plain Layout
20596 signs; the entire conditional is enclosed in braces; and the if and else
20597 clauses are enclosed in double brackets,
20598 \begin_inset Quotes eld
20602 \begin_inset Flex Code
20605 \begin_layout Plain Layout
20612 \begin_inset Quotes eld
20616 \begin_inset Quotes eld
20620 \begin_inset Flex Code
20623 \begin_layout Plain Layout
20630 \begin_inset Quotes erd
20634 There must be no space between any of these.
20637 \begin_layout Standard
20638 There is one other piece of syntax available in definitions, which looks
20640 \begin_inset Flex Code
20643 \begin_layout Plain Layout
20650 This defines a piece of formatting information that is to be used when
20652 \begin_inset Quotes eld
20656 \begin_inset Quotes erd
20660 Obviously, we do not want to output HTML tags when writing plain text,
20661 so they should be wrapped in
20662 \begin_inset Quotes eld
20666 \begin_inset Quotes erd
20670 \begin_inset Quotes eld
20674 \begin_inset Quotes erd
20680 \begin_layout Standard
20681 Two special sorts of definitions are also possible in a
20682 \begin_inset Flex Code
20685 \begin_layout Plain Layout
20692 An example of the first would be:
20695 \begin_layout LyX-Code
20697 \begin_inset Quotes eld
20701 \begin_inset Quotes erd
20707 \begin_layout Standard
20708 This is an abbreviation, or macro, and it can be used by treating it as
20710 \begin_inset Flex Code
20713 \begin_layout Plain Layout
20722 \begin_inset Flex Code
20725 \begin_layout Plain Layout
20731 exactly as it would treat its definition.
20732 So, let us issue the obvious
20740 \begin_layout LyX-Code
20744 \begin_layout Standard
20745 or anything like it.
20747 shouldn't go into an infinite loop, but it may go into a long one before
20751 \begin_layout Standard
20752 The second sort of special definition might look like this:
20755 \begin_layout LyX-Code
20759 \begin_layout Standard
20760 This defines a translatable piece of text, which allows relevant parts of
20761 the bibliography to be translated.
20762 It can be included in a definition by treating it as a key:
20763 \begin_inset Flex Code
20766 \begin_layout Plain Layout
20773 Several of these are predefined in
20774 \begin_inset Flex Code
20777 \begin_layout Plain Layout
20784 Note that these are not macros, in the sense just defined.
20785 They will not be expanded.
20788 \begin_layout Standard
20789 So here then is an example that use all these features:
20790 \begin_inset VSpace defskip
20796 \begin_layout Standard
20800 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20803 \begin_layout Standard
20804 \begin_inset VSpace defskip
20807 This defines a macro that prints the author, followed by a comma, if the
20809 \begin_inset Flex Code
20812 \begin_layout Plain Layout
20818 key is defined, or else prints the name of the editor, followed by the
20820 \begin_inset Flex Code
20823 \begin_layout Plain Layout
20829 or its translation (it is by default
20830 \begin_inset Quotes eld
20834 \begin_inset Quotes erd
20838 \begin_inset Flex Code
20841 \begin_layout Plain Layout
20848 Note that this is in fact defined in
20849 \begin_inset Flex Code
20852 \begin_layout Plain Layout
20858 , so you can use it in your own definitions, or re-definitions, if you load
20862 \begin_layout Section
20863 \begin_inset CommandInset label
20865 name "sec:Tags-for-XHTML"
20869 Tags for XHTML output
20872 \begin_layout Standard
20873 As with \SpecialChar LaTeX
20874 or DocBook, the format of \SpecialChar LyX
20875 's XHTML output is also controlled by
20876 layout information.
20877 In general, \SpecialChar LyX
20878 provides sensible defaults and, as mentioned earlier, it will
20879 even construct default CSS style rules from the other layout tags.
20880 For example, \SpecialChar LyX
20881 will attempt to use the information provided in the
20882 \begin_inset Flex Code
20885 \begin_layout Plain Layout
20891 declaration for the Chapter style to write CSS that will appropriately
20892 format chapter headings.
20895 \begin_layout Standard
20896 In many cases, then, you may not have to do anything at all to get acceptable
20897 XHTML output for your own environments, custom insets, and so forth.
20898 But in some cases you will, and so \SpecialChar LyX
20899 provides a number of layout tags that
20900 can be used to customize the XHTML and CSS that are generated.
20903 \begin_layout Standard
20904 Note that there are two tags,
20905 \begin_inset Flex Code
20908 \begin_layout Plain Layout
20915 \begin_inset Flex Code
20918 \begin_layout Plain Layout
20924 that may appear outside style and inset declarations.
20926 \begin_inset CommandInset ref
20928 reference "subsec:General-text-class"
20932 for details on these.
20935 \begin_layout Subsection
20936 \begin_inset CommandInset label
20938 name "subsec:Paragraph-Style-XHTML"
20945 \begin_layout Standard
20946 The sort of XHTML \SpecialChar LyX
20947 outputs for a paragraph depends upon whether we are dealing
20948 with a normal paragraph, a command, or an environment, where this is itself
20949 determined by the contents of the corresponding
20950 \begin_inset Flex Code
20953 \begin_layout Plain Layout
20964 \begin_layout Standard
20965 For a command or normal paragraph, the output XHTML has the following form:
20968 \begin_layout LyX-Code
20970 \begin_inset Quotes erd
20974 \begin_inset Quotes erd
20980 \begin_layout LyX-Code
20982 \begin_inset Quotes erd
20986 \begin_inset Quotes erd
20992 \begin_layout LyX-Code
20993 Contents of the paragraph.
20996 \begin_layout LyX-Code
21000 \begin_layout Standard
21001 The label tags are of course omitted if the paragraph does not have a label.
21004 \begin_layout Standard
21005 For an environment that is not some sort of list, the XHTML takes this form:
21008 \begin_layout LyX-Code
21010 \begin_inset Quotes erd
21014 \begin_inset Quotes erd
21020 \begin_layout LyX-Code
21022 \begin_inset Quotes erd
21026 \begin_inset Quotes erd
21030 \begin_inset Quotes erd
21034 \begin_inset Quotes erd
21037 >Environment Label</labeltag>First paragraph.</itemtag>
21040 \begin_layout LyX-Code
21041 <itemtag>Second paragraph.</itemtag>
21044 \begin_layout LyX-Code
21048 \begin_layout Standard
21049 Note that the label is output only for the first paragraph, as it should
21050 be for a theorem, for example.
21054 \begin_layout Standard
21055 For a list, we have one of these forms:
21058 \begin_layout LyX-Code
21060 \begin_inset Quotes erd
21064 \begin_inset Quotes erd
21070 \begin_layout LyX-Code
21072 \begin_inset Quotes erd
21076 \begin_inset Quotes erd
21080 \begin_inset Quotes erd
21084 \begin_inset Quotes erd
21087 >List Label</labeltag>First item.</itemtag>
21090 \begin_layout LyX-Code
21092 \begin_inset Quotes erd
21096 \begin_inset Quotes erd
21100 \begin_inset Quotes erd
21104 \begin_inset Quotes erd
21107 >List Label</labeltag>Second item.</itemtag>
21110 \begin_layout LyX-Code
21114 \begin_layout LyX-Code
21118 \begin_layout LyX-Code
21120 \begin_inset Quotes erd
21124 \begin_inset Quotes erd
21130 \begin_layout LyX-Code
21132 \begin_inset Quotes erd
21136 \begin_inset Quotes erd
21139 >List Label</labeltag><itemtag attr=
21140 \begin_inset Quotes erd
21144 \begin_inset Quotes erd
21147 >First item.</itemtag>
21150 \begin_layout LyX-Code
21152 \begin_inset Quotes erd
21156 \begin_inset Quotes erd
21159 >List Label</labeltag><itemtag attr=
21160 \begin_inset Quotes erd
21164 \begin_inset Quotes erd
21167 >Second item.</itemtag>
21170 \begin_layout LyX-Code
21174 \begin_layout Standard
21175 Note the different orders of
21176 \begin_inset Flex Code
21179 \begin_layout Plain Layout
21186 \begin_inset Flex Code
21189 \begin_layout Plain Layout
21196 Which order we get depends upon the setting of
21197 \begin_inset Flex Code
21200 \begin_layout Plain Layout
21207 \begin_inset Flex Code
21210 \begin_layout Plain Layout
21216 is false (the default), you get the first of these, with the label within
21217 the item; if true, you get the second, with the label outside the item.
21220 \begin_layout Standard
21221 The specific tags and attributes output for each paragraph type can be controlle
21222 d by means of the layout tags we are about to describe.
21223 As mentioned earlier, however, \SpecialChar LyX
21224 uses sensible defaults for many of these,
21225 so you often may not need to do very much to get good XHTML output.
21226 Think of the available tags as there so you can tweak things to your liking.
21229 \begin_layout Description
21230 \begin_inset Flex Code
21233 \begin_layout Plain Layout
21240 \begin_inset Flex Code
21243 \begin_layout Plain Layout
21249 ] Specifies attribute information to be output with the main tag.
21251 \begin_inset Quotes eld
21255 \begin_inset Flex Code
21258 \begin_layout Plain Layout
21265 \begin_inset Quotes erd
21269 By default, \SpecialChar LyX
21271 \begin_inset Quotes eld
21275 \begin_inset Flex Code
21278 \begin_layout Plain Layout
21285 \begin_inset Quotes erd
21289 \begin_inset Flex Code
21292 \begin_layout Plain Layout
21298 is the \SpecialChar LyX
21299 name of the layout, made lowercase, for example: chapter.
21304 contain any style information.
21306 \begin_inset Flex Code
21309 \begin_layout Plain Layout
21318 \begin_layout Description
21319 \begin_inset Flex Code
21322 \begin_layout Plain Layout
21329 \begin_inset Flex Code
21332 \begin_layout Plain Layout
21342 ] Whether to output the default CSS information \SpecialChar LyX
21343 generates for this layout,
21344 even if additional information is explicitly provided via
21345 \begin_inset Flex Code
21348 \begin_layout Plain Layout
21356 \begin_inset Flex Code
21359 \begin_layout Plain Layout
21365 allows you to alter or augment the generated CSS, rather than to override
21368 \begin_inset Flex Code
21371 \begin_layout Plain Layout
21380 \begin_layout Description
21381 \begin_inset Flex Code
21384 \begin_layout Plain Layout
21391 \begin_inset Flex Code
21394 \begin_layout Plain Layout
21400 ] The tag to be used for individual paragraphs of environments, replacing
21402 \begin_inset Flex Code
21405 \begin_layout Plain Layout
21411 in the examples above.
21413 \begin_inset Flex Code
21416 \begin_layout Plain Layout
21425 \begin_layout Description
21426 \begin_inset Flex Code
21429 \begin_layout Plain Layout
21436 \begin_inset Flex Code
21439 \begin_layout Plain Layout
21445 ] Attributes for the item tag.
21447 \begin_inset Quotes eld
21451 \begin_inset Flex Code
21454 \begin_layout Plain Layout
21455 class=`layoutname_item'
21461 \begin_inset Quotes erd
21469 contain any style information.
21471 \begin_inset Flex Code
21474 \begin_layout Plain Layout
21483 \begin_layout Description
21484 \begin_inset Flex Code
21487 \begin_layout Plain Layout
21494 \begin_inset Flex Code
21497 \begin_layout Plain Layout
21503 ] The tag to be used for paragraph and item labels, replacing
21504 \begin_inset Flex Code
21507 \begin_layout Plain Layout
21513 in the examples above.
21515 \begin_inset Flex Code
21518 \begin_layout Plain Layout
21525 \begin_inset Flex Code
21528 \begin_layout Plain Layout
21535 \begin_inset Flex Code
21538 \begin_layout Plain Layout
21545 \begin_inset Flex Code
21548 \begin_layout Plain Layout
21549 Centered_Top_Environment
21554 , in which case it defaults to
21555 \begin_inset Flex Code
21558 \begin_layout Plain Layout
21567 \begin_layout Description
21568 \begin_inset Flex Code
21571 \begin_layout Plain Layout
21578 \begin_inset Flex Code
21581 \begin_layout Plain Layout
21587 ] Attributes for the label tag.
21589 \begin_inset Quotes eld
21593 \begin_inset Flex Code
21596 \begin_layout Plain Layout
21597 class=`layoutname_label'
21603 \begin_inset Quotes erd
21611 contain any style information.
21613 \begin_inset Flex Code
21616 \begin_layout Plain Layout
21625 \begin_layout Description
21626 \begin_inset Flex Code
21629 \begin_layout Plain Layout
21636 \begin_inset Flex Code
21639 \begin_layout Plain Layout
21649 ] Meaningful only for list-like environments, this tag controls whether
21650 the label tag is output before or inside the item tag.
21651 This is used, for example, in the description environment, where we want
21653 \begin_inset Flex Code
21656 \begin_layout Plain Layout
21657 <dt>\SpecialChar ldots
21658 </dt><dd>\SpecialChar ldots
21666 \begin_inset Flex Code
21669 \begin_layout Plain Layout
21675 : The label tag is output inside the item tag.
21678 \begin_layout Description
21679 \begin_inset Flex Code
21682 \begin_layout Plain Layout
21688 Information to be output in the
21689 \begin_inset Flex Code
21692 \begin_layout Plain Layout
21698 section when this style is used.
21699 This might, for example, be used to include a
21700 \begin_inset Flex Code
21703 \begin_layout Plain Layout
21710 \begin_inset Flex Code
21713 \begin_layout Plain Layout
21722 \begin_layout Description
21723 \begin_inset Flex Code
21726 \begin_layout Plain Layout
21732 CSS style information to be included when this style is used.
21733 Note that this will automatically be wrapped in a layout-generated
21734 \begin_inset Flex Code
21737 \begin_layout Plain Layout
21743 block, so only the CSS itself need be included.
21745 \begin_inset Flex Code
21748 \begin_layout Plain Layout
21757 \begin_layout Description
21758 \begin_inset Flex Code
21761 \begin_layout Plain Layout
21768 \begin_inset Flex Code
21771 \begin_layout Plain Layout
21777 ] The tag to be used for the main label, replacing
21778 \begin_inset Flex Code
21781 \begin_layout Plain Layout
21787 in the examples above.
21789 \begin_inset Flex Code
21792 \begin_layout Plain Layout
21801 \begin_layout Description
21802 \begin_inset Flex Code
21805 \begin_layout Plain Layout
21812 \begin_inset Flex Code
21815 \begin_layout Plain Layout
21825 ] Marks this style as the one to be used to generate the
21826 \begin_inset Flex Code
21829 \begin_layout Plain Layout
21835 tag for the XHTML file.
21836 By default, it is false.
21838 \begin_inset Flex Code
21841 \begin_layout Plain Layout
21847 file sets it to true for the
21848 \begin_inset Flex Code
21851 \begin_layout Plain Layout
21861 \begin_layout Subsection
21865 \begin_layout Standard
21866 The XHTML output of insets can also be controlled by information in layout
21871 \begin_layout Plain Layout
21872 At present, this is true only for
21873 \begin_inset Quotes eld
21877 \begin_inset Quotes erd
21880 insets (insets you can type into) and is not true for
21881 \begin_inset Quotes eld
21885 \begin_inset Quotes erd
21888 insets (insets that are associated with dialog boxes).
21893 Here, too, \SpecialChar LyX
21894 tries to provide sensible defaults, and it constructs default
21896 But everything can be customized.
21899 \begin_layout Standard
21900 The XHTML \SpecialChar LyX
21901 outputs for an inset has the following form:
21904 \begin_layout LyX-Code
21906 \begin_inset Quotes erd
21910 \begin_inset Quotes erd
21916 \begin_layout LyX-Code
21917 <labeltag>Label</labeltag>
21920 \begin_layout LyX-Code
21922 \begin_inset Quotes erd
21926 \begin_inset Quotes erd
21929 >Contents of the inset.</innertag>
21932 \begin_layout LyX-Code
21936 \begin_layout Standard
21937 If the inset permits multiple paragraphs—that is, if
21938 \begin_inset Flex Code
21941 \begin_layout Plain Layout
21947 is true—then the contents of the inset will itself be output as paragraphs
21948 formatted according to the styles used for those paragraphs (standard,
21949 quote, and the like).
21950 The label tag is of course omitted if the paragraph does not have a label
21951 and, at present, is always
21952 \begin_inset Flex Code
21955 \begin_layout Plain Layout
21962 The inner tag is optional and, by default, does not appear.
21965 \begin_layout Standard
21966 The specific tags and attributes output for each inset can be controlled
21967 by means of the following layout tags.
21970 \begin_layout Description
21971 \begin_inset Flex Code
21974 \begin_layout Plain Layout
21981 \begin_inset Flex Code
21984 \begin_layout Plain Layout
21990 ] Specifies attribute information to be output with the main tag.
21992 \begin_inset Quotes eld
21996 \begin_inset Flex Code
21999 \begin_layout Plain Layout
22000 class=`myinset' onclick=`\SpecialChar ldots
22007 \begin_inset Quotes erd
22011 By default, \SpecialChar LyX
22013 \begin_inset Quotes eld
22017 \begin_inset Flex Code
22020 \begin_layout Plain Layout
22027 \begin_inset Quotes erd
22031 \begin_inset Flex Code
22034 \begin_layout Plain Layout
22040 is the \SpecialChar LyX
22041 name of the inset, made lowercase and with non-alphanumeric characters
22042 converted to underscores, for example: footnote.
22045 \begin_layout Description
22046 \begin_inset Flex Code
22049 \begin_layout Plain Layout
22056 \begin_inset Flex Code
22059 \begin_layout Plain Layout
22069 ] Whether to output the default CSS information \SpecialChar LyX
22070 generates for this layout,
22071 even if additional information is explicitly provided via
22072 \begin_inset Flex Code
22075 \begin_layout Plain Layout
22083 \begin_inset Flex Code
22086 \begin_layout Plain Layout
22092 allows you to alter or augment the generated CSS, rather than to override
22097 \begin_layout Description
22098 \begin_inset Flex Code
22101 \begin_layout Plain Layout
22108 \begin_inset Flex Code
22111 \begin_layout Plain Layout
22117 ] Attributes for the inner tag.
22119 \begin_inset Quotes eld
22123 \begin_inset Flex Code
22126 \begin_layout Plain Layout
22127 class=`insetname_inner'
22133 \begin_inset Quotes erd
22139 \begin_layout Description
22140 \begin_inset Flex Code
22143 \begin_layout Plain Layout
22150 \begin_inset Flex Code
22153 \begin_layout Plain Layout
22159 ] The inner tag, replacing
22160 \begin_inset Flex Code
22163 \begin_layout Plain Layout
22169 in the examples above.
22170 By default, there is none.
22173 \begin_layout Description
22174 \begin_inset Flex Code
22177 \begin_layout Plain Layout
22184 \begin_inset Flex Code
22187 \begin_layout Plain Layout
22195 ] Whether this inset represents a standalone block of text (such as a footnote)
22196 or instead represents material that is included in the surrounding text
22197 (such as a branch).
22201 \begin_layout Description
22202 \begin_inset Flex Code
22205 \begin_layout Plain Layout
22212 \begin_inset Flex Code
22215 \begin_layout Plain Layout
22221 ] A label for this inset, possibly including a reference to a counter.
22222 For example, for footnote, it might be:
22223 \begin_inset Flex Code
22226 \begin_layout Plain Layout
22235 This is optional, and there is no default.
22238 \begin_layout Description
22239 \begin_inset Flex Code
22242 \begin_layout Plain Layout
22248 Information to be output in the
22249 \begin_inset Flex Code
22252 \begin_layout Plain Layout
22258 section when this style is used.
22259 This might, for example, be used to include a
22260 \begin_inset Flex Code
22263 \begin_layout Plain Layout
22270 \begin_inset Flex Code
22273 \begin_layout Plain Layout
22282 \begin_layout Description
22283 \begin_inset Flex Code
22286 \begin_layout Plain Layout
22292 CSS style information to be included when this style is used.
22293 Note that this will automatically be wrapped in a layout-generated
22294 \begin_inset Flex Code
22297 \begin_layout Plain Layout
22303 block, so only the CSS itself need be included.
22306 \begin_layout Description
22307 \begin_inset Flex Code
22310 \begin_layout Plain Layout
22317 \begin_inset Flex Code
22320 \begin_layout Plain Layout
22326 ] The tag to be used for the main label, replacing
22327 \begin_inset Flex Code
22330 \begin_layout Plain Layout
22336 in the examples above.
22337 The default depends upon the setting of
22338 \begin_inset Flex Code
22341 \begin_layout Plain Layout
22348 \begin_inset Flex Code
22351 \begin_layout Plain Layout
22357 is true, the default is
22358 \begin_inset Flex Code
22361 \begin_layout Plain Layout
22367 ; if it is false, the default is
22368 \begin_inset Flex Code
22371 \begin_layout Plain Layout
22380 \begin_layout Subsection
22384 \begin_layout Standard
22385 The XHTML output for floats too can be controlled by layout information.
22386 The output has the following form:
22389 \begin_layout LyX-Code
22391 \begin_inset Quotes erd
22395 \begin_inset Quotes erd
22401 \begin_layout LyX-Code
22402 Contents of the float.
22405 \begin_layout LyX-Code
22409 \begin_layout Standard
22410 The caption, if there is one, is a separate inset and will be output as
22412 Its appearance can be controlled via the InsetLayout for caption insets.
22416 \begin_layout Description
22417 \begin_inset Flex Code
22420 \begin_layout Plain Layout
22427 \begin_inset Flex Code
22430 \begin_layout Plain Layout
22436 ] Specifies attribute information to be output with the main tag.
22438 \begin_inset Quotes eld
22442 \begin_inset Flex Code
22445 \begin_layout Plain Layout
22446 class=`myfloat' onclick=`\SpecialChar ldots
22453 \begin_inset Quotes erd
22457 By default, \SpecialChar LyX
22459 \begin_inset Quotes eld
22463 \begin_inset Flex Code
22466 \begin_layout Plain Layout
22467 class=`float float-floattype'
22473 \begin_inset Quotes erd
22477 \begin_inset Flex Code
22480 \begin_layout Plain Layout
22486 is \SpecialChar LyX
22487 's name for this type of float, as determined by the float declaration
22489 \begin_inset CommandInset ref
22491 reference "subsec:Floats"
22495 ), though made lowercase and with non-alphanumeric characters converted
22496 to underscores, for example: float-table.
22499 \begin_layout Description
22500 \begin_inset Flex Code
22503 \begin_layout Plain Layout
22509 CSS style information to be included when this float is used.
22510 Note that this will automatically be wrapped in a layout-generated
22511 \begin_inset Flex Code
22514 \begin_layout Plain Layout
22520 block, so only the CSS itself need be included.
22523 \begin_layout Description
22524 \begin_inset Flex Code
22527 \begin_layout Plain Layout
22534 \begin_inset Flex Code
22537 \begin_layout Plain Layout
22543 ] The tag to be used for this float, replacing
22544 \begin_inset Quotes eld
22548 \begin_inset Flex Code
22551 \begin_layout Plain Layout
22558 \begin_inset Quotes erd
22561 in the example above.
22563 \begin_inset Flex Code
22566 \begin_layout Plain Layout
22572 and will rarely need changing.
22575 \begin_layout Subsection
22576 Bibliography formatting
22579 \begin_layout Standard
22580 The bibliography can be formatted using
22581 \begin_inset Flex Code
22584 \begin_layout Plain Layout
22592 \begin_inset CommandInset ref
22594 reference "subsec:Citation-format-description"
22601 \begin_layout Subsection
22606 \begin_layout Standard
22607 We have several times mentioned that \SpecialChar LyX
22608 will generate default CSS style rules
22609 for both insets and paragraph styles, based upon the other layout information
22611 In this section, we shall say a word about which layout information \SpecialChar LyX
22616 \begin_layout Standard
22617 At present, \SpecialChar LyX
22618 auto-generates CSS only for font information, making use of
22620 \begin_inset Flex Code
22623 \begin_layout Plain Layout
22630 \begin_inset Flex Code
22633 \begin_layout Plain Layout
22640 \begin_inset Flex Code
22643 \begin_layout Plain Layout
22650 \begin_inset Flex Code
22653 \begin_layout Plain Layout
22660 \begin_inset Flex Code
22663 \begin_layout Plain Layout
22670 \begin_inset CommandInset ref
22672 reference "subsec:Font-description"
22677 The translation is mostly straightforward and obvious.
22679 \begin_inset Quotes eld
22683 \begin_inset Flex Code
22686 \begin_layout Plain Layout
22693 \begin_inset Quotes erd
22697 \begin_inset Quotes eld
22701 \begin_inset Flex Code
22704 \begin_layout Plain Layout
22705 font-family: sans-serif;
22711 \begin_inset Quotes erd
22715 The correspondence of \SpecialChar LyX
22716 sizes and CSS sizes is a little less obvious but
22717 nonetheless intuitive.
22719 \begin_inset Flex Code
22722 \begin_layout Plain Layout
22729 \begin_inset Flex URL
22732 \begin_layout Plain Layout
22742 \begin_layout Chapter
22743 Including External Material
22744 \begin_inset CommandInset label
22746 name "chap:Including-External-Material"
22753 \begin_layout Standard
22754 \begin_inset Box Shadowbox
22764 height_special "totalheight"
22769 backgroundcolor "none"
22772 \begin_layout Plain Layout
22773 WARNING: This portion of the documentation has not been updated for some
22775 We certainly hope that it is still accurate, but there are no guarantees.
22783 \begin_layout Standard
22784 The use of material from sources external to \SpecialChar LyX
22785 is covered in detail in the
22791 This part of the manual covers what needs to happen behind the scenes for
22792 new sorts of material to be included.
22795 \begin_layout Section
22799 \begin_layout Standard
22800 The external material feature is based on the concept of a
22805 A template is a specification of how \SpecialChar LyX
22806 should interface with a certain kind
22808 As bundled, \SpecialChar LyX
22809 comes with predefined templates for Xfig figures, various
22810 raster format images, chess diagrams, and LilyPond music notation.
22811 You can check the actual list by using the menu
22812 \begin_inset Flex MenuItem
22815 \begin_layout Plain Layout
22816 Insert\SpecialChar menuseparator
22817 File\SpecialChar menuseparator
22824 Furthermore, it is possible to roll your own template to support a specific
22826 Later we'll describe in more detail what is involved, and hopefully you
22827 will submit all the templates you create so we can include them in a later
22832 \begin_layout Standard
22833 Another basic idea of the external material feature is to distinguish between
22834 the original file that serves as a base for final material and the produced
22835 file that is included in your exported or printed document.
22836 For example, consider the case of a figure produced with
22837 \begin_inset Flex Code
22840 \begin_layout Plain Layout
22847 The Xfig application itself works on an original file with the
22848 \begin_inset Flex Code
22851 \begin_layout Plain Layout
22858 Within Xfig, you create and change your figure, and when you are done,
22860 \begin_inset Flex Code
22863 \begin_layout Plain Layout
22870 When you want to include the figure in your document, you invoke
22871 \begin_inset Flex Code
22874 \begin_layout Plain Layout
22880 in order to create a PostScript file that can readily be included in your
22884 \begin_inset Flex Code
22887 \begin_layout Plain Layout
22893 file is the original file, and the PostScript file is the produced file.
22896 \begin_layout Standard
22897 This distinction is important in order to allow updating of the material
22898 while you are in the process of writing the document.
22899 Furthermore, it provides us with the flexibility that is needed to support
22900 multiple export formats.
22901 For instance, in the case of a plain text file, it is not exactly an award-winn
22902 ing idea to include the figure as raw PostScript.
22903 Instead, you would either prefer to just include a reference to the figure
22904 or try to invoke some graphics to ASCII converter to make the final result
22905 look similar to the real graphics.
22906 The external material management allows you to do this, because it is parametri
22907 zed on the different export formats that \SpecialChar LyX
22911 \begin_layout Standard
22912 Besides supporting the production of different products according to the
22913 exported format, it supports tight integration with editing and viewing
22915 In the case of an Xfig figure, you are able to invoke Xfig on the original
22916 file with a single click from within the external material dialog in \SpecialChar LyX
22918 and also preview the produced PostScript file with Ghostview with another
22920 No more fiddling around with the command line and/or file browsers to locate
22921 and manipulate the original or produced files.
22922 In this way, you are finally able to take full advantage of the many different
22923 applications that are relevant to use when you write your documents, and
22924 ultimately be more productive.
22927 \begin_layout Section
22928 The external template configuration file
22931 \begin_layout Standard
22932 It is relatively easy to add custom external template definitions to \SpecialChar LyX
22934 However, be aware that doing this in an careless manner most probably
22938 introduce an easily exploitable security hole.
22939 So before you do this, please read the discussion about security in
22940 \begin_inset CommandInset ref
22942 reference "sec:Security-discussion"
22949 \begin_layout Standard
22950 Having said that, we encourage you to submit any interesting templates that
22955 \begin_layout Standard
22956 The external templates are defined in the
22957 \begin_inset Flex Code
22960 \begin_layout Plain Layout
22962 Dir/lib/external_templates
22968 You can place your own version in
22969 \begin_inset Flex Code
22972 \begin_layout Plain Layout
22973 UserDir/external_templates
22981 \begin_layout Standard
22982 A typical template looks like this:
22985 \begin_layout LyX-Code
22989 \begin_layout LyX-Code
22990 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22993 \begin_layout LyX-Code
22997 \begin_layout LyX-Code
23001 \begin_layout LyX-Code
23005 \begin_layout LyX-Code
23009 \begin_layout LyX-Code
23013 \begin_layout LyX-Code
23014 AutomaticProduction true
23017 \begin_layout LyX-Code
23021 \begin_layout LyX-Code
23025 \begin_layout LyX-Code
23026 Format \SpecialChar LaTeX
23030 \begin_layout LyX-Code
23031 TransformCommand Rotate RotationLatexCommand
23034 \begin_layout LyX-Code
23035 TransformCommand Resize ResizeLatexCommand
23038 \begin_layout LyX-Code
23039 Product "$$RotateFront$$ResizeFront
23042 \begin_layout LyX-Code
23047 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
23050 \begin_layout LyX-Code
23051 $$ResizeBack$$RotateBack"
23054 \begin_layout LyX-Code
23058 \begin_layout LyX-Code
23059 UpdateResult "$$AbsPath$$Basename.pstex_t"
23062 \begin_layout LyX-Code
23063 Requirement "graphicx"
23066 \begin_layout LyX-Code
23067 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23070 \begin_layout LyX-Code
23071 ReferencedFile latex "$$AbsPath$$Basename.eps"
23074 \begin_layout LyX-Code
23075 ReferencedFile dvi "$$AbsPath$$Basename.eps"
23078 \begin_layout LyX-Code
23082 \begin_layout LyX-Code
23083 Format PDF\SpecialChar LaTeX
23087 \begin_layout LyX-Code
23088 TransformCommand Rotate RotationLatexCommand
23091 \begin_layout LyX-Code
23092 TransformCommand Resize ResizeLatexCommand
23095 \begin_layout LyX-Code
23096 Product "$$RotateFront$$ResizeFront
23099 \begin_layout LyX-Code
23104 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
23107 \begin_layout LyX-Code
23108 $$ResizeBack$$RotateBack"
23111 \begin_layout LyX-Code
23112 UpdateFormat pdftex
23115 \begin_layout LyX-Code
23116 UpdateResult "$$AbsPath$$Basename.pdftex_t"
23119 \begin_layout LyX-Code
23120 Requirement "graphicx"
23123 \begin_layout LyX-Code
23124 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
23127 \begin_layout LyX-Code
23128 ReferencedFile latex "$$AbsPath$$Basename.pdf"
23131 \begin_layout LyX-Code
23135 \begin_layout LyX-Code
23139 \begin_layout LyX-Code
23140 Product "$$Contents(
23142 "$$AbsPath$$Basename.asc
23147 \begin_layout LyX-Code
23148 UpdateFormat asciixfig
23151 \begin_layout LyX-Code
23152 UpdateResult "$$AbsPath$$Basename.asc"
23155 \begin_layout LyX-Code
23159 \begin_layout LyX-Code
23163 \begin_layout LyX-Code
23164 Product "<graphic fileref=
23166 "$$AbsOrRelPathMaster$$Basename.eps
23171 \begin_layout LyX-Code
23175 \begin_layout LyX-Code
23179 \begin_layout LyX-Code
23180 UpdateResult "$$AbsPath$$Basename.eps"
23183 \begin_layout LyX-Code
23184 ReferencedFile docbook "$$AbsPath$$Basename.eps"
23187 \begin_layout LyX-Code
23188 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
23191 \begin_layout LyX-Code
23195 \begin_layout LyX-Code
23196 Product "[XFig: $$FName]"
23199 \begin_layout LyX-Code
23203 \begin_layout LyX-Code
23207 \begin_layout Standard
23208 As you can see, the template is enclosed in
23209 \begin_inset Flex Code
23212 \begin_layout Plain Layout
23220 \begin_inset Flex Code
23223 \begin_layout Plain Layout
23230 It contains a header specifying some general settings and, for each supported
23231 primary document file format, a section
23232 \begin_inset Flex Code
23235 \begin_layout Plain Layout
23243 \begin_inset Flex Code
23246 \begin_layout Plain Layout
23255 \begin_layout Subsection
23256 The template header
23259 \begin_layout Description
23260 \begin_inset Flex Code
23263 \begin_layout Plain Layout
23264 AutomaticProduction
23265 \begin_inset space ~
23273 Whether the file represented by the template must be generated by \SpecialChar LyX
23275 This command must occur exactly once.
23278 \begin_layout Description
23279 \begin_inset Flex Code
23282 \begin_layout Plain Layout
23284 \begin_inset space ~
23292 A glob pattern that is used in the file dialog to filter out the desired
23294 If there is more than one possible file extension (e.
23295 \begin_inset space \thinspace{}
23299 \begin_inset space \space{}
23303 \begin_inset Flex Code
23306 \begin_layout Plain Layout
23313 \begin_inset Flex Code
23316 \begin_layout Plain Layout
23322 ), use something like
23323 \begin_inset Flex Code
23326 \begin_layout Plain Layout
23333 This command must occur exactly once.
23336 \begin_layout Description
23337 \begin_inset Flex Code
23340 \begin_layout Plain Layout
23342 \begin_inset space ~
23350 The text that is displayed on the button.
23351 This command must occur exactly once.
23354 \begin_layout Description
23355 \begin_inset Flex Code
23358 \begin_layout Plain Layout
23360 \begin_inset space ~
23364 \begin_inset space ~
23372 The help text that is used in the External dialog.
23373 Provide enough information to explain to the user just what the template
23374 can provide him with.
23375 This command must occur exactly once.
23378 \begin_layout Description
23379 \begin_inset Flex Code
23382 \begin_layout Plain Layout
23384 \begin_inset space ~
23392 The file format of the original file.
23393 This must be the name of a format that is known to \SpecialChar LyX
23395 \begin_inset CommandInset ref
23397 reference "sec:Formats"
23403 \begin_inset Quotes eld
23407 \begin_inset Flex Code
23410 \begin_layout Plain Layout
23417 \begin_inset Quotes erd
23420 if the template can handle original files of more than one format.
23422 will attempt to interrogate the file itself in order to deduce its format
23424 This command must occur exactly once.
23427 \begin_layout Description
23428 \begin_inset Flex Code
23431 \begin_layout Plain Layout
23433 \begin_inset space ~
23441 A unique name for the template.
23442 It must not contain substitution macros (see below).
23445 \begin_layout Description
23446 \begin_inset Flex Code
23449 \begin_layout Plain Layout
23451 \begin_inset space ~
23454 Rotate|Resize|Clip|Extra
23459 This command specifies which transformations are supported by this template.
23460 It may occur zero or more times.
23461 This command enables the corresponding tabs in the external dialog.
23463 \begin_inset Flex Code
23466 \begin_layout Plain Layout
23472 command must have either a corresponding
23473 \begin_inset Flex Code
23476 \begin_layout Plain Layout
23483 \begin_inset Flex Code
23486 \begin_layout Plain Layout
23493 \begin_inset Flex Code
23496 \begin_layout Plain Layout
23503 Otherwise the transformation will not be supported by that format.
23506 \begin_layout Subsection
23510 \begin_layout Description
23511 \begin_inset Flex Code
23514 \begin_layout Plain Layout
23516 \begin_inset space ~
23520 |PDF\SpecialChar LaTeX
23526 The primary document file format that this format definition is for.
23527 Not every template has a sensible representation in all document file formats.
23528 Please define nevertheless a
23529 \begin_inset Flex Code
23532 \begin_layout Plain Layout
23538 section for all templates.
23539 Use a dummy text when no representation is available.
23540 Then you can at least see a reference to the external material in the exported
23544 \begin_layout Description
23545 \begin_inset Flex Code
23548 \begin_layout Plain Layout
23550 \begin_inset space ~
23554 \begin_inset space ~
23562 This command defines an additional macro
23563 \begin_inset Flex Code
23566 \begin_layout Plain Layout
23572 for substitution in
23573 \begin_inset Flex Code
23576 \begin_layout Plain Layout
23584 \begin_inset Flex Code
23587 \begin_layout Plain Layout
23593 itself may contain substitution macros.
23594 The advantage over using
23595 \begin_inset Flex Code
23598 \begin_layout Plain Layout
23605 \begin_inset Flex Code
23608 \begin_layout Plain Layout
23614 is that the substituted value of
23615 \begin_inset Flex Code
23618 \begin_layout Plain Layout
23624 is sanitized so that it is a valid optional argument in the document format.
23625 This command may occur zero or more times.
23628 \begin_layout Description
23629 \begin_inset Flex Code
23632 \begin_layout Plain Layout
23634 \begin_inset space ~
23642 The text that is inserted in the exported document.
23643 This is actually the most important command and can be quite complex.
23644 This command must occur exactly once.
23647 \begin_layout Description
23648 \begin_inset Flex Code
23651 \begin_layout Plain Layout
23653 \begin_inset space ~
23661 This command specifies a preamble snippet that will be included in the
23664 It has to be defined using
23665 \begin_inset Flex Code
23668 \begin_layout Plain Layout
23676 \begin_inset Flex Code
23679 \begin_layout Plain Layout
23686 This command may occur zero or more times.
23689 \begin_layout Description
23690 \begin_inset Flex Code
23693 \begin_layout Plain Layout
23695 \begin_inset space ~
23699 \begin_inset space ~
23707 This command denotes files that are created by the conversion process and
23708 are needed for a particular export format.
23709 If the filename is relative, it is interpreted relative to the master document.
23710 This command may be given zero or more times.
23713 \begin_layout Description
23714 \begin_inset Flex Code
23717 \begin_layout Plain Layout
23719 \begin_inset space ~
23727 The name of a required \SpecialChar LaTeX
23729 The package is included via
23730 \begin_inset Flex Code
23733 \begin_layout Plain Layout
23741 in the \SpecialChar LaTeX
23743 This command may occur zero or more times.
23746 \begin_layout Description
23747 \begin_inset Flex Code
23750 \begin_layout Plain Layout
23752 \begin_inset space ~
23756 \begin_inset space ~
23759 RotationLatexCommand
23764 This command specifies that the built in \SpecialChar LaTeX
23765 command should be used for rotation.
23766 This command may occur once or not at all.
23769 \begin_layout Description
23770 \begin_inset Flex Code
23773 \begin_layout Plain Layout
23775 \begin_inset space ~
23779 \begin_inset space ~
23787 This command specifies that the built in \SpecialChar LaTeX
23788 command should be used for resizing.
23789 This command may occur once or not at all.
23792 \begin_layout Description
23793 \begin_inset Flex Code
23796 \begin_layout Plain Layout
23798 \begin_inset space ~
23802 \begin_inset space ~
23805 RotationLatexOption
23810 This command specifies that rotation is done via an optional argument.
23811 This command may occur once or not at all.
23814 \begin_layout Description
23815 \begin_inset Flex Code
23818 \begin_layout Plain Layout
23820 \begin_inset space ~
23824 \begin_inset space ~
23832 This command specifies that resizing is done via an optional argument.
23833 This command may occur once or not at all.
23836 \begin_layout Description
23837 \begin_inset Flex Code
23840 \begin_layout Plain Layout
23842 \begin_inset space ~
23846 \begin_inset space ~
23854 This command specifies that clipping is done via an optional argument.
23855 This command may occur once or not at all.
23858 \begin_layout Description
23859 \begin_inset Flex Code
23862 \begin_layout Plain Layout
23864 \begin_inset space ~
23868 \begin_inset space ~
23876 This command specifies that an extra optional argument is used.
23877 This command may occur once or not at all.
23880 \begin_layout Description
23881 \begin_inset Flex Code
23884 \begin_layout Plain Layout
23886 \begin_inset space ~
23894 The file format of the converted file.
23895 This must be the name of a format that is known to \SpecialChar LyX
23897 \begin_inset Flex MenuItem
23900 \begin_layout Plain Layout
23901 Tools\SpecialChar menuseparator
23902 Preferences\SpecialChar menuseparator
23903 File Handling\SpecialChar menuseparator
23910 This command must occur exactly once.
23911 If the resulting file format is PDF, you need to specify the format
23912 \begin_inset Flex Code
23915 \begin_layout Plain Layout
23922 This is the PDF format used for including graphics.
23923 The other defined PDF formats are for document export.
23926 \begin_layout Description
23927 \begin_inset Flex Code
23930 \begin_layout Plain Layout
23932 \begin_inset space ~
23940 The file name of the converted file.
23941 The file name must be absolute.
23942 This command must occur exactly once.
23945 \begin_layout Subsection
23946 Preamble definitions
23949 \begin_layout Standard
23950 The external template configuration file may contain additional preamble
23951 definitions enclosed by
23952 \begin_inset Flex Code
23955 \begin_layout Plain Layout
23963 \begin_inset Flex Code
23966 \begin_layout Plain Layout
23973 They can be used by the templates in the
23974 \begin_inset Flex Code
23977 \begin_layout Plain Layout
23986 \begin_layout Section
23987 The substitution mechanism
23990 \begin_layout Standard
23991 When the external material facility invokes an external program, it is done
23992 on the basis of a command defined in the template configuration file.
23993 These commands can contain various macros that are expanded before execution.
23994 Execution always take place in the directory of the containing document.
23997 \begin_layout Standard
23998 Also, whenever external material is to be displayed, the name will be produced
23999 by the substitution mechanism, and most other commands in the template
24000 definition support substitution as well.
24003 \begin_layout Standard
24004 The available macros are the following:
24007 \begin_layout Description
24008 \begin_inset Flex Code
24011 \begin_layout Plain Layout
24012 $$AbsOrRelPathMaster
24017 The file path, absolute or relative to the master \SpecialChar LyX
24021 \begin_layout Description
24022 \begin_inset Flex Code
24025 \begin_layout Plain Layout
24026 $$AbsOrRelPathParent
24031 The file path, absolute or relative to the \SpecialChar LyX
24035 \begin_layout Description
24036 \begin_inset Flex Code
24039 \begin_layout Plain Layout
24045 The absolute file path.
24048 \begin_layout Description
24049 \begin_inset Flex Code
24052 \begin_layout Plain Layout
24058 The filename without path and without the extension.
24061 \begin_layout Description
24062 \begin_inset Flex Code
24065 \begin_layout Plain Layout
24067 \begin_inset Quotes eld
24071 \begin_inset Quotes erd
24079 This macro will expand to the contents of the file with the name
24080 \begin_inset Flex Code
24083 \begin_layout Plain Layout
24092 \begin_layout Description
24093 \begin_inset Flex Code
24096 \begin_layout Plain Layout
24102 The file extension (including the dot).
24105 \begin_layout Description
24106 \begin_inset Flex Code
24109 \begin_layout Plain Layout
24115 The filename of the file specified in the external material dialog.
24116 This is either an absolute name, or it is relative to the \SpecialChar LyX
24120 \begin_layout Description
24121 \begin_inset Flex Code
24124 \begin_layout Plain Layout
24131 \begin_inset Flex Code
24134 \begin_layout Plain Layout
24140 (absolute name or relative to the \SpecialChar LyX
24144 \begin_layout Description
24145 \begin_inset Flex Code
24148 \begin_layout Plain Layout
24154 The file path, relative to the master \SpecialChar LyX
24158 \begin_layout Description
24159 \begin_inset Flex Code
24162 \begin_layout Plain Layout
24168 The file path, relative to the \SpecialChar LyX
24172 \begin_layout Description
24173 \begin_inset Flex Code
24176 \begin_layout Plain Layout
24182 This macro will expand to the absolute path of the system directory.
24183 This is typically used to point to the various helper scripts that are
24184 bundled with \SpecialChar LyX
24188 \begin_layout Description
24189 \begin_inset Flex Code
24192 \begin_layout Plain Layout
24198 A name and full path to a temporary file which will be automatically deleted
24199 whenever the containing document is closed, or the external material insertion
24203 \begin_layout Standard
24204 All path macros contain a trailing directory separator, so you can construct
24206 \begin_inset space \thinspace{}
24210 \begin_inset space \space{}
24213 the absolute filename with
24214 \begin_inset Flex Code
24217 \begin_layout Plain Layout
24218 $$AbsPath$$Basename$$Extension
24226 \begin_layout Standard
24227 The macros above are substituted in all commands unless otherwise noted.
24229 \begin_inset Flex Code
24232 \begin_layout Plain Layout
24238 supports additionally the following substitutions if they are enabled by
24240 \begin_inset Flex Code
24243 \begin_layout Plain Layout
24250 \begin_inset Flex Code
24253 \begin_layout Plain Layout
24262 \begin_layout Description
24263 \begin_inset Flex Code
24266 \begin_layout Plain Layout
24272 The front part of the resize command.
24275 \begin_layout Description
24276 \begin_inset Flex Code
24279 \begin_layout Plain Layout
24285 The back part of the resize command.
24288 \begin_layout Description
24289 \begin_inset Flex Code
24292 \begin_layout Plain Layout
24298 The front part of the rotation command.
24301 \begin_layout Description
24302 \begin_inset Flex Code
24305 \begin_layout Plain Layout
24311 The back part of the rotation command.
24314 \begin_layout Standard
24315 The value string of the
24316 \begin_inset Flex Code
24319 \begin_layout Plain Layout
24325 command supports additionally the following substitutions if they are enabled
24327 \begin_inset Flex Code
24330 \begin_layout Plain Layout
24337 \begin_inset Flex Code
24340 \begin_layout Plain Layout
24349 \begin_layout Description
24350 \begin_inset Flex Code
24353 \begin_layout Plain Layout
24362 \begin_layout Description
24363 \begin_inset Flex Code
24366 \begin_layout Plain Layout
24375 \begin_layout Description
24376 \begin_inset Flex Code
24379 \begin_layout Plain Layout
24388 \begin_layout Description
24389 \begin_inset Flex Code
24392 \begin_layout Plain Layout
24398 The rotation option.
24401 \begin_layout Standard
24402 You may ask why there are so many path macros.
24403 There are mainly two reasons:
24406 \begin_layout Enumerate
24407 Relative and absolute file names should remain relative or absolute, respectivel
24409 Users may have reasons to prefer either form.
24410 Relative names are useful for portable documents that should work on different
24411 machines, for example.
24412 Absolute names may be required by some programs.
24415 \begin_layout Enumerate
24417 treats relative file names differently than \SpecialChar LyX
24418 and other programs in nested
24420 For \SpecialChar LyX
24421 , a relative file name is always relative to the document that contains
24423 For \SpecialChar LaTeX
24424 , it is always relative to the master document.
24425 These two definitions are identical if you have only one document, but
24426 differ if you have a master document that includes part documents.
24427 That means that relative filenames must be transformed when presented to
24430 Fortunately \SpecialChar LyX
24431 does this automatically for you if you choose the right macros.
24434 \begin_layout Standard
24435 So which path macro should be used in new template definitions? The rule
24439 \begin_layout Itemize
24441 \begin_inset Flex Code
24444 \begin_layout Plain Layout
24450 if an absolute path is required.
24453 \begin_layout Itemize
24455 \begin_inset Flex Code
24458 \begin_layout Plain Layout
24459 $$AbsOrRelPathMaster
24464 if the substituted string is some kind of \SpecialChar LaTeX
24468 \begin_layout Itemize
24470 \begin_inset Flex Code
24473 \begin_layout Plain Layout
24474 $$AbsOrRelPathParent
24479 in order to preserve the user's choice.
24482 \begin_layout Standard
24483 There are special cases where this rule does not work and e.
24484 \begin_inset space \thinspace{}
24488 \begin_inset space \space{}
24491 relative names are needed, but normally it will work just fine.
24492 One example for such a case is the command
24493 \begin_inset Flex Code
24496 \begin_layout Plain Layout
24497 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24502 in the XFig template above: We can't use the absolute name because the
24504 \begin_inset Flex Code
24507 \begin_layout Plain Layout
24513 files needs the relative name in order to rewrite the file content.
24516 \begin_layout Section
24517 Security discussion
24518 \begin_inset CommandInset label
24520 name "sec:Security-discussion"
24527 \begin_layout Standard
24528 The external material feature interfaces with a lot of external programs
24529 and does so automatically, so we have to consider the security implications
24531 In particular, since you have the option of including your own filenames
24532 and/or parameter strings and those are expanded into a command, it seems
24533 that it would be possible to create a malicious document which executes
24534 arbitrary commands when a user views or prints the document.
24535 This is something we definitely want to avoid.
24538 \begin_layout Standard
24539 However, since the external program commands are specified in the template
24540 configuration file only, there are no security issues if \SpecialChar LyX
24541 is properly configure
24542 d with safe templates only.
24543 This is so because the external programs are invoked with the
24544 \begin_inset Flex Code
24547 \begin_layout Plain Layout
24553 -system call rather than the
24554 \begin_inset Flex Code
24557 \begin_layout Plain Layout
24563 system-call, so it's not possible to execute arbitrary commands from the
24564 filename or parameter section via the shell.
24567 \begin_layout Standard
24568 This also implies that you are restricted in what command strings you can
24569 use in the external material templates.
24570 In particular, pipes and redirection are not readily available.
24571 This has to be so if \SpecialChar LyX
24572 should remain safe.
24573 If you want to use some of the shell features, you should write a safe
24574 script to do this in a controlled manner, and then invoke the script from
24575 the command string.
24579 \begin_layout Standard
24580 It is possible to design a template that interacts directly with the shell,
24581 but since this would allow a malicious user to execute arbitrary commands
24582 by writing clever filenames and/or parameters, we generally recommend that
24583 you only use safe scripts that work with the
24584 \begin_inset Flex Code
24587 \begin_layout Plain Layout
24593 system call in a controlled manner.
24594 Of course, for use in a controlled environment, it can be tempting to just
24595 fall back to use ordinary shell scripts.
24596 If you do so, be aware that you
24600 provide an easily exploitable security hole in your system.
24601 Of course it stands to reason that such unsafe templates will never be
24602 included in the standard \SpecialChar LyX
24603 distribution, although we do encourage people
24604 to submit new templates in the open source tradition.
24605 But \SpecialChar LyX
24606 as shipped from the official distribution channels will never have
24610 \begin_layout Standard
24611 Including external material provides a lot of power, and you have to be
24612 careful not to introduce security hazards with this power.
24613 A subtle error in a single line in an innocent looking script can open
24614 the door to huge security problems.
24615 So if you do not fully understand the issues, we recommend that you consult
24616 a knowledgeable security professional or the \SpecialChar LyX
24617 development team if you have
24618 any questions about whether a given template is safe or not.
24619 And do this before you use it in an uncontrolled environment.
24622 \begin_layout Chapter
24624 List of supported \SpecialChar LyX
24625 functions to be used in layouts
24626 \begin_inset CommandInset label
24628 name "chap:List-of-functions"
24635 \begin_layout Standard
24637 \begin_inset Tabular
24638 <lyxtabular version="3" rows="11" columns="8">
24639 <features tabularvalignment="middle">
24640 <column alignment="left" valignment="top">
24641 <column alignment="left" valignment="top">
24642 <column alignment="left" valignment="top">
24643 <column alignment="left" valignment="top">
24644 <column alignment="left" valignment="top">
24645 <column alignment="left" valignment="top">
24646 <column alignment="left" valignment="top">
24647 <column alignment="left" valignment="top">
24649 <cell alignment="left" valignment="top" usebox="none">
24652 \begin_layout Plain Layout
24658 <cell alignment="left" valignment="top" usebox="none">
24661 \begin_layout Plain Layout
24667 <cell alignment="left" valignment="top" usebox="none">
24670 \begin_layout Plain Layout
24676 <cell alignment="left" valignment="top" usebox="none">
24679 \begin_layout Plain Layout
24685 <cell alignment="center" valignment="top" usebox="none">
24688 \begin_layout Plain Layout
24694 <cell alignment="center" valignment="top" usebox="none">
24697 \begin_layout Plain Layout
24703 <cell alignment="center" valignment="top" usebox="none">
24706 \begin_layout Plain Layout
24712 <cell alignment="center" valignment="top" usebox="none">
24715 \begin_layout Plain Layout
24723 <cell alignment="left" valignment="top" usebox="none">
24726 \begin_layout Plain Layout
24732 <cell alignment="left" valignment="top" usebox="none">
24735 \begin_layout Plain Layout
24741 <cell alignment="left" valignment="top" usebox="none">
24744 \begin_layout Plain Layout
24750 <cell alignment="left" valignment="top" usebox="none">
24753 \begin_layout Plain Layout
24759 <cell alignment="center" valignment="top" usebox="none">
24762 \begin_layout Plain Layout
24768 <cell alignment="center" valignment="top" usebox="none">
24771 \begin_layout Plain Layout
24777 <cell alignment="center" valignment="top" usebox="none">
24780 \begin_layout Plain Layout
24786 <cell alignment="center" valignment="top" usebox="none">
24789 \begin_layout Plain Layout
24797 <cell alignment="left" valignment="top" usebox="none">
24800 \begin_layout Plain Layout
24806 <cell alignment="left" valignment="top" usebox="none">
24809 \begin_layout Plain Layout
24815 <cell alignment="left" valignment="top" usebox="none">
24818 \begin_layout Plain Layout
24824 <cell alignment="left" valignment="top" usebox="none">
24827 \begin_layout Plain Layout
24833 <cell alignment="center" valignment="top" usebox="none">
24836 \begin_layout Plain Layout
24842 <cell alignment="center" valignment="top" usebox="none">
24845 \begin_layout Plain Layout
24851 <cell alignment="center" valignment="top" usebox="none">
24854 \begin_layout Plain Layout
24860 <cell alignment="center" valignment="top" usebox="none">
24863 \begin_layout Plain Layout
24871 <cell alignment="left" valignment="top" usebox="none">
24874 \begin_layout Plain Layout
24880 <cell alignment="left" valignment="top" usebox="none">
24883 \begin_layout Plain Layout
24889 <cell alignment="left" valignment="top" usebox="none">
24892 \begin_layout Plain Layout
24898 <cell alignment="left" valignment="top" usebox="none">
24901 \begin_layout Plain Layout
24907 <cell alignment="center" valignment="top" usebox="none">
24910 \begin_layout Plain Layout
24916 <cell alignment="center" valignment="top" usebox="none">
24919 \begin_layout Plain Layout
24925 <cell alignment="center" valignment="top" usebox="none">
24928 \begin_layout Plain Layout
24934 <cell alignment="center" valignment="top" usebox="none">
24937 \begin_layout Plain Layout
24945 <cell alignment="left" valignment="top" usebox="none">
24948 \begin_layout Plain Layout
24954 <cell alignment="left" valignment="top" usebox="none">
24957 \begin_layout Plain Layout
24963 <cell alignment="left" valignment="top" usebox="none">
24966 \begin_layout Plain Layout
24972 <cell alignment="left" valignment="top" usebox="none">
24975 \begin_layout Plain Layout
24981 <cell alignment="center" valignment="top" usebox="none">
24984 \begin_layout Plain Layout
24990 <cell alignment="center" valignment="top" usebox="none">
24993 \begin_layout Plain Layout
24999 <cell alignment="center" valignment="top" usebox="none">
25002 \begin_layout Plain Layout
25008 <cell alignment="center" valignment="top" usebox="none">
25011 \begin_layout Plain Layout
25019 <cell alignment="left" valignment="top" usebox="none">
25022 \begin_layout Plain Layout
25028 <cell alignment="left" valignment="top" usebox="none">
25031 \begin_layout Plain Layout
25037 <cell alignment="left" valignment="top" usebox="none">
25040 \begin_layout Plain Layout
25046 <cell alignment="left" valignment="top" usebox="none">
25049 \begin_layout Plain Layout
25055 <cell alignment="center" valignment="top" usebox="none">
25058 \begin_layout Plain Layout
25064 <cell alignment="center" valignment="top" usebox="none">
25067 \begin_layout Plain Layout
25073 <cell alignment="center" valignment="top" usebox="none">
25076 \begin_layout Plain Layout
25082 <cell alignment="center" valignment="top" usebox="none">
25085 \begin_layout Plain Layout
25093 <cell alignment="left" valignment="top" usebox="none">
25096 \begin_layout Plain Layout
25102 <cell alignment="left" valignment="top" usebox="none">
25105 \begin_layout Plain Layout
25111 <cell alignment="left" valignment="top" usebox="none">
25114 \begin_layout Plain Layout
25120 <cell alignment="left" valignment="top" usebox="none">
25123 \begin_layout Plain Layout
25129 <cell alignment="center" valignment="top" usebox="none">
25132 \begin_layout Plain Layout
25138 <cell alignment="center" valignment="top" usebox="none">
25141 \begin_layout Plain Layout
25147 <cell alignment="center" valignment="top" usebox="none">
25150 \begin_layout Plain Layout
25156 <cell alignment="center" valignment="top" usebox="none">
25159 \begin_layout Plain Layout
25167 <cell alignment="left" valignment="top" usebox="none">
25170 \begin_layout Plain Layout
25176 <cell alignment="left" valignment="top" usebox="none">
25179 \begin_layout Plain Layout
25185 <cell alignment="left" valignment="top" usebox="none">
25188 \begin_layout Plain Layout
25194 <cell alignment="left" valignment="top" usebox="none">
25197 \begin_layout Plain Layout
25203 <cell alignment="center" valignment="top" usebox="none">
25206 \begin_layout Plain Layout
25212 <cell alignment="center" valignment="top" usebox="none">
25215 \begin_layout Plain Layout
25221 <cell alignment="center" valignment="top" usebox="none">
25224 \begin_layout Plain Layout
25230 <cell alignment="center" valignment="top" usebox="none">
25233 \begin_layout Plain Layout
25241 <cell alignment="left" valignment="top" usebox="none">
25244 \begin_layout Plain Layout
25250 <cell alignment="left" valignment="top" usebox="none">
25253 \begin_layout Plain Layout
25259 <cell alignment="left" valignment="top" usebox="none">
25262 \begin_layout Plain Layout
25268 <cell alignment="left" valignment="top" usebox="none">
25271 \begin_layout Plain Layout
25277 <cell alignment="center" valignment="top" usebox="none">
25280 \begin_layout Plain Layout
25286 <cell alignment="center" valignment="top" usebox="none">
25289 \begin_layout Plain Layout
25295 <cell alignment="center" valignment="top" usebox="none">
25298 \begin_layout Plain Layout
25304 <cell alignment="center" valignment="top" usebox="none">
25307 \begin_layout Plain Layout
25315 <cell alignment="left" valignment="top" usebox="none">
25318 \begin_layout Plain Layout
25324 <cell alignment="left" valignment="top" usebox="none">
25327 \begin_layout Plain Layout
25333 <cell alignment="left" valignment="top" usebox="none">
25336 \begin_layout Plain Layout
25342 <cell alignment="left" valignment="top" usebox="none">
25345 \begin_layout Plain Layout
25351 <cell alignment="center" valignment="top" usebox="none">
25354 \begin_layout Plain Layout
25360 <cell alignment="center" valignment="top" usebox="none">
25363 \begin_layout Plain Layout
25369 <cell alignment="center" valignment="top" usebox="none">
25372 \begin_layout Plain Layout
25378 <cell alignment="center" valignment="top" usebox="none">
25381 \begin_layout Plain Layout
25389 <cell alignment="center" valignment="top" usebox="none">
25392 \begin_layout Plain Layout
25398 <cell alignment="center" valignment="top" usebox="none">
25401 \begin_layout Plain Layout
25407 <cell alignment="center" valignment="top" usebox="none">
25410 \begin_layout Plain Layout
25416 <cell alignment="center" valignment="top" usebox="none">
25419 \begin_layout Plain Layout
25425 <cell alignment="center" valignment="top" usebox="none">
25428 \begin_layout Plain Layout
25434 <cell alignment="center" valignment="top" usebox="none">
25437 \begin_layout Plain Layout
25443 <cell alignment="center" valignment="top" usebox="none">
25446 \begin_layout Plain Layout
25452 <cell alignment="center" valignment="top" usebox="none">
25455 \begin_layout Plain Layout
25469 \begin_layout Chapter
25470 Names of available colors to be used in layouts
25471 \begin_inset CommandInset label
25473 name "chap:Names-of-colors"
25480 \begin_layout Standard
25481 The colors listed here are the standard colors and the those that you can
25482 adjust in the \SpecialChar LyX
25486 \begin_layout Description
25499 No particular color – clear or default
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
25534 \begin_layout Description
25535 added_space Added space marker color
25538 \begin_layout Description
25539 addedtext Added text color
25542 \begin_layout Description
25543 appendix Appendix marker color
25546 \begin_layout Description
25547 background Background color
25550 \begin_layout Description
25551 bottomarea Bottom area color
25554 \begin_layout Description
25555 branchlabel Label color for branches
25558 \begin_layout Description
25559 buttonbg Color used for bottom background
25562 \begin_layout Description
25563 buttonhoverbg Color used for button background under focus
25566 \begin_layout Description
25567 buttonframe Color for inset button frames
25570 \begin_layout Description
25571 changebar Changebar color
25574 \begin_layout Description
25575 changedtextauthor1 Changed text color author 1
25578 \begin_layout Description
25579 changedtextauthor2 Changed text color author 2
25582 \begin_layout Description
25583 changedtextauthor3 Changed text color author 3
25586 \begin_layout Description
25587 changedtextauthor4 Changed text color author 4
25590 \begin_layout Description
25591 changedtextauthor5 Changed text color author 5
25594 \begin_layout Description
25595 collapsable_inset_frame Collapsable insets framecolor
25598 \begin_layout Description
25599 collapsable_inset_text Collapsable insets text color
25602 \begin_layout Description
25603 command Text color for command insets
25606 \begin_layout Description
25607 commandbg Background color for command insets
25610 \begin_layout Description
25611 commandframe Frame color for command insets
25614 \begin_layout Description
25615 comment color for comments
25618 \begin_layout Description
25619 commentbg Background color of comments
25622 \begin_layout Description
25623 cursor Cursor color
25626 \begin_layout Description
25627 deletedtext Deleted text color
25630 \begin_layout Description
25631 deletedtextmodifier Deleted text modifying color
25634 \begin_layout Description
25635 depthbar Color for the depth bars in the margin
25638 \begin_layout Description
25639 eolmarker End of line marker color
25642 \begin_layout Description
25643 error Color of the \SpecialChar LaTeX
25647 \begin_layout Description
25648 footlabel Label color for footnotes
25651 \begin_layout Description
25652 graphicsbg Graphics inset background color
25655 \begin_layout Description
25656 greyedout Label color for greyedout insets
25659 \begin_layout Description
25660 greyedoutbg Background color of greyedout inset
25663 \begin_layout Description
25664 greyedouttext Color for greyedout inset text
25667 \begin_layout Description
25668 indexlabel Label color for index insets
25671 \begin_layout Description
25672 ignore The color is ignored
25675 \begin_layout Description
25676 inherit The color is inherited
25679 \begin_layout Description
25680 inlinecompletion Inline completion color
25683 \begin_layout Description
25684 insetbg Inset marker background color
25687 \begin_layout Description
25688 insetframe Inset marker frame color
25691 \begin_layout Description
25692 language Color for marking foreign language words
25695 \begin_layout Description
25696 latex Text color in \SpecialChar LaTeX
25700 \begin_layout Description
25701 listingsbg Background color of listings inset
25704 \begin_layout Description
25705 marginlabel Label color for margin notes
25708 \begin_layout Description
25709 math Math inset text color
25712 \begin_layout Description
25713 mathbg Math inset background color
25716 \begin_layout Description
25717 mathcorners Math inset frame color not under focus
25720 \begin_layout Description
25721 mathframe Math inset frame color under focus
25724 \begin_layout Description
25725 mathline Math line color
25728 \begin_layout Description
25729 mathmacrobg Macro math inset background color
25732 \begin_layout Description
25733 mathmacroblend Macro math blended color
25736 \begin_layout Description
25737 mathmacroframe Macro math frame color
25740 \begin_layout Description
25741 mathmacrohoverbg Macro math inset background color hovered
25744 \begin_layout Description
25745 mathmacrolabel Macro math label color
25748 \begin_layout Description
25749 mathmacronewarg Macro template color for new parameters
25752 \begin_layout Description
25753 mathmacrooldarg Macro template color for old parameters
25756 \begin_layout Description
25757 newpage New page color
25760 \begin_layout Description
25761 nonunique_inlinecompletion Inline completion color for the non-unique part
25764 \begin_layout Description
25765 notebg Background color of notes
25768 \begin_layout Description
25769 notelabel Label color for notes
25772 \begin_layout Description
25773 pagebreak Page break/line break color
25776 \begin_layout Description
25777 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25780 \begin_layout Description
25781 phantomtext Text color for phantom insets
25784 \begin_layout Description
25785 preview The color used for previews
25788 \begin_layout Description
25789 previewframe Preview frame color
25792 \begin_layout Description
25793 regexpframe Color for regexp frame
25796 \begin_layout Description
25797 selection Background color of selected text
25800 \begin_layout Description
25801 selectiontext Foreground color of selected text
25804 \begin_layout Description
25805 shadedbg Background color of shaded box
25808 \begin_layout Description
25809 special Special chars text color
25812 \begin_layout Description
25813 tabularline Table line color
25816 \begin_layout Description
25817 tabularonoffline Table line color
25820 \begin_layout Description
25821 urllabel Label color for URL insets
25824 \begin_layout Description
25825 urltext Color for URL inset text