]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
GuiBox.cpp: fix button logic (fixes bug #9543)
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 488
3 \begin_document
4 \begin_header
5 \textclass scrbook
6 \begin_preamble
7 % DO NOT ALTER THIS PREAMBLE!!!
8 %
9 % This preamble is designed to ensure that this document prints
10 % out as advertised. If you mess with this preamble,
11 % parts of this document may not print out as expected.  If you
12 % have problems LaTeXing this file, please contact 
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
15
16 \usepackage{ifpdf} % part of the hyperref bundle
17 \ifpdf % if pdflatex is used
18
19  % set fonts for nicer pdf view
20  \IfFileExists{lmodern.sty}
21   {\usepackage{lmodern}}{}
22
23 \fi % end if pdflatex is used
24
25 % the pages of the TOC is numbered roman
26 % and a pdf-bookmark for the TOC is added
27 \let\myTOC\tableofcontents
28 \renewcommand\tableofcontents{%
29   \frontmatter
30   \pdfbookmark[1]{\contentsname}{}
31   \myTOC
32   \mainmatter }
33
34 % increase link area for cross-references and autoname them,
35 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
36 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
37 \addto\extrasenglish{%
38  \renewcommand*{\equationautorefname}[1]{}%
39  \renewcommand{\sectionautorefname}{sec.\negthinspace}%
40  \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
41  \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
42 }
43 \end_preamble
44 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
45 \use_default_options false
46 \begin_modules
47 logicalmkup
48 \end_modules
49 \maintain_unincluded_children false
50 \begin_local_layout
51 Format 35
52 InsetLayout Flex:MenuItem
53 LyxType               charstyle
54 LabelString           menu
55 LatexType             command
56 LatexName             menuitem
57 Font
58 Family              Sans
59 EndFont
60 Preamble
61 \newcommand*{\menuitem}[1]{{\sffamily #1}}
62 EndPreamble
63 End
64 # In case we need to do with sans...
65 #InsetLayout CharStyle:Code
66 #Font
67 #Family              Sans
68 #EndFont
69 #Preamble
70 #\renewcommand{\code}[1]{{\sffamily #1}}
71 #EndPreamble
72 #End
73 \end_local_layout
74 \language english
75 \language_package default
76 \inputencoding auto
77 \fontencoding global
78 \font_roman default
79 \font_sans default
80 \font_typewriter default
81 \font_math auto
82 \font_default_family default
83 \use_non_tex_fonts false
84 \font_sc false
85 \font_osf false
86 \font_sf_scale 100
87 \font_tt_scale 100
88 \graphics default
89 \default_output_format default
90 \output_sync 0
91 \bibtex_command default
92 \index_command default
93 \paperfontsize 12
94 \spacing single
95 \use_hyperref true
96 \pdf_title "LyX Configuration Manual"
97 \pdf_author "LyX Team"
98 \pdf_subject "LyX-documentation Customization"
99 \pdf_keywords "LyX, documentation, customization"
100 \pdf_bookmarks true
101 \pdf_bookmarksnumbered true
102 \pdf_bookmarksopen true
103 \pdf_bookmarksopenlevel 1
104 \pdf_breaklinks false
105 \pdf_pdfborder false
106 \pdf_colorlinks true
107 \pdf_backref false
108 \pdf_pdfusetitle false
109 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
110 \papersize default
111 \use_geometry false
112 \use_package amsmath 0
113 \use_package amssymb 0
114 \use_package cancel 0
115 \use_package esint 0
116 \use_package mathdots 1
117 \use_package mathtools 0
118 \use_package mhchem 0
119 \use_package stackrel 0
120 \use_package stmaryrd 0
121 \use_package undertilde 0
122 \cite_engine basic
123 \cite_engine_type default
124 \biblio_style plain
125 \use_bibtopic false
126 \use_indices false
127 \paperorientation portrait
128 \suppress_date false
129 \justification true
130 \use_refstyle 0
131 \branch OutDated
132 \selected 0
133 \filename_suffix 0
134 \color #f5fae7
135 \end_branch
136 \index Index
137 \shortcut idx
138 \color #008000
139 \end_index
140 \secnumdepth 3
141 \tocdepth 3
142 \paragraph_separation indent
143 \paragraph_indentation default
144 \quotes_language english
145 \papercolumns 1
146 \papersides 2
147 \paperpagestyle headings
148 \tracking_changes true
149 \output_changes false
150 \html_math_output 0
151 \html_css_as_file 0
152 \html_be_strict true
153 \author -712698321 "Jürgen Spitzmüller" 
154 \author -195340706 "Georg Baum" 
155 \author 155139281 "Jrgen Spitzmller" 
156 \author 274215730 "scott" 
157 \end_header
158
159 \begin_body
160
161 \begin_layout Title
162 Customizing \SpecialChar LyX
163 : Features for the Advanced User
164 \end_layout
165
166 \begin_layout Author
167 by the \SpecialChar LyX
168  Team
169 \begin_inset Foot
170 status collapsed
171
172 \begin_layout Plain Layout
173 \noindent
174 If you have comments or error corrections, please send them to the \SpecialChar LyX
175  Documentatio
176 n mailing list, 
177 \begin_inset CommandInset href
178 LatexCommand href
179 target "lyx-docs@lists.lyx.org"
180 type "mailto:"
181
182 \end_inset
183
184 .
185  Include 
186 \begin_inset Quotes eld
187 \end_inset
188
189 [Customization]
190 \begin_inset Quotes erd
191 \end_inset
192
193  in the subject header, and please cc the current maintainer of this file,
194  Richard Heck <rgheck@comcast.net>.
195 \end_layout
196
197 \end_inset
198
199
200 \begin_inset Newline newline
201 \end_inset
202
203
204 \begin_inset Newline newline
205 \end_inset
206
207 Version 2.1.x 
208 \end_layout
209
210 \begin_layout Standard
211 \begin_inset CommandInset toc
212 LatexCommand tableofcontents
213
214 \end_inset
215
216
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset Note Note
221 status open
222
223 \begin_layout Plain Layout
224 Please use change tracking when modifying this document.
225  This makes it easier for our translators to recognize things that have
226  been changed, and it helps the maintainer keep up-to-date with what's been
227  done.
228 \end_layout
229
230 \end_inset
231
232
233 \end_layout
234
235 \begin_layout Chapter
236 Introduction
237 \end_layout
238
239 \begin_layout Standard
240 This manual covers the customization features present in \SpecialChar LyX
241 .
242  In it, we discuss issues like keyboard shortcuts, screen previewing options,
243  printer options, sending commands to \SpecialChar LyX
244  via the \SpecialChar LyX
245  Server, internationalization,
246  installing new \SpecialChar LaTeX
247  classes and \SpecialChar LyX
248  layouts, etc.
249  We can't possibly hope to touch on everything you can change—our developers
250  add new features faster than we can document them—but we will explain the
251  most common customizations and hopefully point you in the right direction
252  for some of the more obscure ones.
253 \end_layout
254
255 \begin_layout Standard
256 \begin_inset Branch OutDated
257 status collapsed
258
259 \begin_layout Standard
260 Information from previous versions of this document that now seems to be
261  outdated is contained in the OutDated branch of this document.
262  By default, this information will not appear in the \SpecialChar LaTeX
263  output.
264 \end_layout
265
266 \end_inset
267
268
269 \end_layout
270
271 \begin_layout Chapter
272 \SpecialChar LyX
273  configuration files
274 \end_layout
275
276 \begin_layout Standard
277 This chapter aims to help you to find your way through the \SpecialChar LyX
278  configuration
279  files.
280  Before continuing to read this chapter, you should find out where your
281  \SpecialChar LyX
282  library and user directories are by using 
283 \begin_inset Flex MenuItem
284 status collapsed
285
286 \begin_layout Plain Layout
287 Help\SpecialChar menuseparator
288 About
289 \begin_inset space ~
290 \end_inset
291
292 \SpecialChar LyX
293
294 \end_layout
295
296 \end_inset
297
298 .
299  The library directory is the place where \SpecialChar LyX
300  places its system-wide configuration
301  files; the user directory is where you can place your modified versions.
302  We will call the former 
303 \begin_inset Flex Code
304 status collapsed
305
306 \begin_layout Plain Layout
307 \SpecialChar LyX
308 Dir
309 \end_layout
310
311 \end_inset
312
313  and the latter 
314 \begin_inset Flex MenuItem
315 status collapsed
316
317 \begin_layout Plain Layout
318 UserDir
319 \end_layout
320
321 \end_inset
322
323  in the remainder of this document.
324  
325 \end_layout
326
327 \begin_layout Section
328 What's in 
329 \begin_inset Flex Code
330 status collapsed
331
332 \begin_layout Plain Layout
333 \SpecialChar LyX
334 Dir
335 \end_layout
336
337 \end_inset
338
339 ?
340 \end_layout
341
342 \begin_layout Standard
343 \begin_inset Flex Code
344 status collapsed
345
346 \begin_layout Plain Layout
347 \SpecialChar LyX
348 Dir
349 \end_layout
350
351 \end_inset
352
353  and its sub-directories contain a number of files and that can be used
354  to customize \SpecialChar LyX
355 's behavior.
356  You can change many of these files from within \SpecialChar LyX
357  itself through the 
358 \begin_inset Flex MenuItem
359 status collapsed
360
361 \begin_layout Plain Layout
362 Tools\SpecialChar menuseparator
363 Preferences
364 \end_layout
365
366 \end_inset
367
368  dialog.
369  Most customization that you will want to do in \SpecialChar LyX
370  is possible through this
371  dialog.
372  However, many other inner aspects of \SpecialChar LyX
373  can be customized by modifying the
374  files in 
375 \begin_inset Flex Code
376 status collapsed
377
378 \begin_layout Plain Layout
379 \SpecialChar LyX
380 Dir
381 \end_layout
382
383 \end_inset
384
385 .
386  These files fall in different categories, described in the following subsection
387 s.
388 \end_layout
389
390 \begin_layout Subsection
391 Automatically generated files
392 \end_layout
393
394 \begin_layout Standard
395 The files, which are to be found in 
396 \begin_inset Flex MenuItem
397 status collapsed
398
399 \begin_layout Plain Layout
400 UserDir
401 \end_layout
402
403 \end_inset
404
405 , are generated when you configure \SpecialChar LyX
406 .
407  They contain various default values that are guessed by inspection.
408  In general, it is not a good idea to modify them, since they might be overwritt
409 en at any time.
410 \end_layout
411
412 \begin_layout Labeling
413 \labelwidthstring 00.00.0000
414 \begin_inset Flex Code
415 status collapsed
416
417 \begin_layout Plain Layout
418 lyxrc.defaults
419 \end_layout
420
421 \end_inset
422
423  contains defaults for various commands.
424 \end_layout
425
426 \begin_layout Labeling
427 \labelwidthstring 00.00.0000
428 \begin_inset Flex Code
429 status collapsed
430
431 \begin_layout Plain Layout
432 packages.lst
433 \end_layout
434
435 \end_inset
436
437  contains the list of packages that have been recognized by \SpecialChar LyX
438 .
439  It is currently unused by the \SpecialChar LyX
440  program itself, but the information extracted,
441  and more, is made available with 
442 \begin_inset Flex MenuItem
443 status collapsed
444
445 \begin_layout Plain Layout
446 Help\SpecialChar menuseparator
447 \SpecialChar LaTeX
448
449 \begin_inset space ~
450 \end_inset
451
452 Configuration
453 \end_layout
454
455 \end_inset
456
457 .
458 \end_layout
459
460 \begin_layout Labeling
461 \labelwidthstring 00.00.0000
462 \begin_inset Flex Code
463 status collapsed
464
465 \begin_layout Plain Layout
466 textclass.lst
467 \end_layout
468
469 \end_inset
470
471  the list of text classes that have been found in your 
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 layout/
477 \end_layout
478
479 \end_inset
480
481  directories, along with the associated \SpecialChar LaTeX
482  document class and their description.
483 \end_layout
484
485 \begin_layout Labeling
486 \labelwidthstring 00.00.0000
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491 lyxmodules.lst
492 \end_layout
493
494 \end_inset
495
496  the list of layout modules found in your 
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501 layout/
502 \end_layout
503
504 \end_inset
505
506  directories
507 \end_layout
508
509 \begin_layout Labeling
510 \labelwidthstring 00.00.0000
511 \begin_inset Flex Code
512 status collapsed
513
514 \begin_layout Plain Layout
515 *files.lst
516 \end_layout
517
518 \end_inset
519
520  lists of various sorts of \SpecialChar LaTeX
521 -related files found on your system
522 \end_layout
523
524 \begin_layout Labeling
525 \labelwidthstring 00.00.0000
526 \begin_inset Flex Code
527 status collapsed
528
529 \begin_layout Plain Layout
530 doc/\SpecialChar LaTeX
531 Config.lyx
532 \end_layout
533
534 \end_inset
535
536  is automatically generated during configuration from the file 
537 \begin_inset Flex Code
538 status collapsed
539
540 \begin_layout Plain Layout
541 \SpecialChar LaTeX
542 Config.lyx.in
543 \end_layout
544
545 \end_inset
546
547 .
548  It contains information on your \SpecialChar LaTeX
549  configuration.
550 \end_layout
551
552 \begin_layout Subsection
553 Directories
554 \end_layout
555
556 \begin_layout Standard
557 These directories are duplicated between 
558 \begin_inset Flex Code
559 status collapsed
560
561 \begin_layout Plain Layout
562 \SpecialChar LyX
563 Dir
564 \end_layout
565
566 \end_inset
567
568  and 
569 \begin_inset Flex Code
570 status collapsed
571
572 \begin_layout Plain Layout
573 UserDir
574 \end_layout
575
576 \end_inset
577
578 .
579  If a particular files exists in both places, the one in 
580 \begin_inset Flex Code
581 status collapsed
582
583 \begin_layout Plain Layout
584 UserDir
585 \end_layout
586
587 \end_inset
588
589  will be used.
590 \end_layout
591
592 \begin_layout Labeling
593 \labelwidthstring 00.00.0000
594 \begin_inset Flex Code
595 status collapsed
596
597 \begin_layout Plain Layout
598 bind/
599 \end_layout
600
601 \end_inset
602
603  this directory contains files with the extension 
604 \begin_inset Flex Code
605 status collapsed
606
607 \begin_layout Plain Layout
608 .bind
609 \end_layout
610
611 \end_inset
612
613  that define the keybindings used in \SpecialChar LyX
614 .
615  If there exists an internationalized version of the bind file named 
616 \begin_inset Flex Code
617 status collapsed
618
619 \begin_layout Plain Layout
620 $LANG_xxx.bind
621 \end_layout
622
623 \end_inset
624
625 , that will be used first.
626 \end_layout
627
628 \begin_layout Labeling
629 \labelwidthstring 00.00.0000
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 clipart/
635 \end_layout
636
637 \end_inset
638
639  contains graphics files that can be included in documents.
640  
641 \end_layout
642
643 \begin_layout Labeling
644 \labelwidthstring 00.00.0000
645 \begin_inset Flex Code
646 status collapsed
647
648 \begin_layout Plain Layout
649 doc/
650 \end_layout
651
652 \end_inset
653
654  contains \SpecialChar LyX
655  documentation files (including the one you are currently reading).
656  The file 
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661 \SpecialChar LaTeX
662 Config.lyx
663 \end_layout
664
665 \end_inset
666
667  deserves special attention, as noted above.
668  The internationalized help docs are in subdirectories 
669 \begin_inset Flex Code
670 status collapsed
671
672 \begin_layout Plain Layout
673 doc/xx
674 \end_layout
675
676 \end_inset
677
678  where 
679 \begin_inset Quotes eld
680 \end_inset
681
682 xx
683 \begin_inset Quotes erd
684 \end_inset
685
686  is the ISO language code.
687  See 
688 \begin_inset CommandInset ref
689 LatexCommand ref
690 reference "cha:Internationalizing-LyX"
691
692 \end_inset
693
694  for details.
695 \end_layout
696
697 \begin_layout Labeling
698 \labelwidthstring 00.00.0000
699 \begin_inset Flex Code
700 status collapsed
701
702 \begin_layout Plain Layout
703 examples/
704 \end_layout
705
706 \end_inset
707
708  contains example files that explain how to use some features.
709  In the file browser, press the 
710 \begin_inset Flex MenuItem
711 status collapsed
712
713 \begin_layout Plain Layout
714 Examples
715 \end_layout
716
717 \end_inset
718
719  button to get there.
720 \end_layout
721
722 \begin_layout Labeling
723 \labelwidthstring 00.00.0000
724 \begin_inset Flex Code
725 status collapsed
726
727 \begin_layout Plain Layout
728 images/
729 \end_layout
730
731 \end_inset
732
733  contains image files that are used by the 
734 \begin_inset Flex MenuItem
735 status collapsed
736
737 \begin_layout Plain Layout
738 Document
739 \end_layout
740
741 \end_inset
742
743  dialog.
744  In addition, it also contains the individual icons used in the toolbar
745  and the banners that can be shown when \SpecialChar LyX
746  is launched.
747 \end_layout
748
749 \begin_layout Labeling
750 \labelwidthstring 00.00.0000
751 \begin_inset Flex Code
752 status collapsed
753
754 \begin_layout Plain Layout
755 kbd/
756 \end_layout
757
758 \end_inset
759
760  contains keyboard keymapping files.
761  See 
762 \begin_inset CommandInset ref
763 LatexCommand ref
764 reference "sec:International-Keymap-Stuff"
765
766 \end_inset
767
768  for details.
769 \end_layout
770
771 \begin_layout Labeling
772 \labelwidthstring 00.00.0000
773 \begin_inset Flex Code
774 status collapsed
775
776 \begin_layout Plain Layout
777 layouts/
778 \end_layout
779
780 \end_inset
781
782  contains the text class and module files described in 
783 \begin_inset CommandInset ref
784 LatexCommand ref
785 reference "cha:Installing-New-Document"
786
787 \end_inset
788
789 .
790 \end_layout
791
792 \begin_layout Labeling
793 \labelwidthstring 00.00.0000
794 \begin_inset Flex Code
795 status collapsed
796
797 \begin_layout Plain Layout
798 lyx2lyx
799 \end_layout
800
801 \end_inset
802
803  contains the 
804 \begin_inset Flex Code
805 status collapsed
806
807 \begin_layout Plain Layout
808 lyx2lyx
809 \end_layout
810
811 \end_inset
812
813  Python scripts used to convert between \SpecialChar LyX
814  versions.
815  These can be run from the command line if, say, you want to batch-convert
816  files.
817 \end_layout
818
819 \begin_layout Labeling
820 \labelwidthstring 00.00.0000
821 \begin_inset Flex Code
822 status collapsed
823
824 \begin_layout Plain Layout
825 scripts/
826 \end_layout
827
828 \end_inset
829
830  contains some files that demonstrate the capabilities of the 
831 \begin_inset Flex MenuItem
832 status collapsed
833
834 \begin_layout Plain Layout
835 External
836 \begin_inset space ~
837 \end_inset
838
839 Template
840 \end_layout
841
842 \end_inset
843
844  feature.
845  Also contains some scripts used by \SpecialChar LyX
846  itself.
847 \end_layout
848
849 \begin_layout Labeling
850 \labelwidthstring 00.00.0000
851 \begin_inset Flex Code
852 status collapsed
853
854 \begin_layout Plain Layout
855 templates/
856 \end_layout
857
858 \end_inset
859
860  contains the standard \SpecialChar LyX
861  template files described in 
862 \begin_inset CommandInset ref
863 LatexCommand ref
864 reference "sub:Creating-Templates"
865
866 \end_inset
867
868 .
869 \end_layout
870
871 \begin_layout Labeling
872 \labelwidthstring 00.00.0000
873 \begin_inset Flex Code
874 status collapsed
875
876 \begin_layout Plain Layout
877 ui/
878 \end_layout
879
880 \end_inset
881
882  contains files with the extension 
883 \begin_inset Flex Code
884 status collapsed
885
886 \begin_layout Plain Layout
887 .ui
888 \end_layout
889
890 \end_inset
891
892  that define the user interface to \SpecialChar LyX
893 .
894  That is, the files define which items appear in which menus and the items
895  appearing on the toolbar.
896 \end_layout
897
898 \begin_layout Subsection
899 Files you don't want to modify
900 \end_layout
901
902 \begin_layout Standard
903 These files are used internally by \SpecialChar LyX
904  and you generally do not need to modify
905  them unless you are a developer.
906 \end_layout
907
908 \begin_layout Labeling
909 \labelwidthstring 00.00.0000
910 \begin_inset Flex Code
911 status collapsed
912
913 \begin_layout Plain Layout
914 CREDITS
915 \end_layout
916
917 \end_inset
918
919  this file contains the list of \SpecialChar LyX
920  developers.
921  The contents are displayed with the menu entry 
922 \begin_inset Flex MenuItem
923 status collapsed
924
925 \begin_layout Plain Layout
926 Help\SpecialChar menuseparator
927 About
928 \begin_inset space ~
929 \end_inset
930
931 \SpecialChar LyX
932
933 \end_layout
934
935 \end_inset
936
937 .
938 \end_layout
939
940 \begin_layout Labeling
941 \labelwidthstring 00.00.0000
942 \begin_inset Flex Code
943 status collapsed
944
945 \begin_layout Plain Layout
946 chkconfig.ltx
947 \end_layout
948
949 \end_inset
950
951  this is a \SpecialChar LaTeX
952  script used during the configuration process.
953  Do not run directly.
954 \end_layout
955
956 \begin_layout Labeling
957 \labelwidthstring 00.00.0000
958 \begin_inset Flex Code
959 status collapsed
960
961 \begin_layout Plain Layout
962 configure.py
963 \end_layout
964
965 \end_inset
966
967  this is a Python script that is used to re-configure \SpecialChar LyX
968 .
969  It creates configuration files in the directory it was run from.
970 \end_layout
971
972 \begin_layout Subsection
973 Other files needing a line or two
974 \end_layout
975
976 \begin_layout Labeling
977 \labelwidthstring 00.00.0000
978 \begin_inset Flex Code
979 status collapsed
980
981 \begin_layout Plain Layout
982 encodings
983 \end_layout
984
985 \end_inset
986
987  this contains tables describing how different character encodings can be
988  mapped to Unicode
989 \end_layout
990
991 \begin_layout Labeling
992 \labelwidthstring 00.00.0000
993 \begin_inset Flex Code
994 status collapsed
995
996 \begin_layout Plain Layout
997 external_templates
998 \end_layout
999
1000 \end_inset
1001
1002  this file contains the templates available to the new 
1003 \begin_inset Flex MenuItem
1004 status collapsed
1005
1006 \begin_layout Plain Layout
1007 External
1008 \begin_inset space ~
1009 \end_inset
1010
1011 Template
1012 \end_layout
1013
1014 \end_inset
1015
1016  feature, see 
1017 \begin_inset CommandInset ref
1018 LatexCommand ref
1019 reference "chap:Including-External-Material"
1020
1021 \end_inset
1022
1023 .
1024 \end_layout
1025
1026 \begin_layout Labeling
1027 \labelwidthstring 00.00.0000
1028 \begin_inset Flex Code
1029 status collapsed
1030
1031 \begin_layout Plain Layout
1032 languages
1033 \end_layout
1034
1035 \end_inset
1036
1037  this file contains a list of all the languages currently supported by \SpecialChar LyX
1038 .
1039 \end_layout
1040
1041 \begin_layout Labeling
1042 \labelwidthstring 00.00.0000
1043 \begin_inset Flex Code
1044 status collapsed
1045
1046 \begin_layout Plain Layout
1047 latexfonts
1048 \end_layout
1049
1050 \end_inset
1051
1052  contains information about the supported fonts.
1053 \end_layout
1054
1055 \begin_layout Labeling
1056 \labelwidthstring 00.00.0000
1057 \begin_inset Flex Code
1058 status collapsed
1059
1060 \begin_layout Plain Layout
1061 layouttranslations
1062 \end_layout
1063
1064 \end_inset
1065
1066  this file contains translations for internationalized paragraph styles
1067  (see 
1068 \begin_inset CommandInset ref
1069 LatexCommand ref
1070 reference "sub:I18n"
1071
1072 \end_inset
1073
1074 ).
1075 \end_layout
1076
1077 \begin_layout Labeling
1078 \labelwidthstring 00.00.0000
1079 \begin_inset Flex Code
1080 status collapsed
1081
1082 \begin_layout Plain Layout
1083 unicodesymbols
1084 \end_layout
1085
1086 \end_inset
1087
1088  this file contains information about unicode-encoded glyphs and the way
1089  they are supported by \SpecialChar LyX
1090  via \SpecialChar LaTeX
1091 .
1092 \end_layout
1093
1094 \begin_layout Section
1095 Your local configuration directory
1096 \end_layout
1097
1098 \begin_layout Standard
1099 Even if you are using \SpecialChar LyX
1100  as an unprivileged user, you might want to change
1101  \SpecialChar LyX
1102  configuration for your own use.
1103  The 
1104 \begin_inset Flex Code
1105 status collapsed
1106
1107 \begin_layout Plain Layout
1108 UserDir
1109 \end_layout
1110
1111 \end_inset
1112
1113  directory contains all your personal configuration files.
1114  This is the directory described as 
1115 \begin_inset Quotes eld
1116 \end_inset
1117
1118 user directory
1119 \begin_inset Quotes erd
1120 \end_inset
1121
1122  in 
1123 \begin_inset Flex MenuItem
1124 status collapsed
1125
1126 \begin_layout Plain Layout
1127 Help\SpecialChar menuseparator
1128 About
1129 \begin_inset space ~
1130 \end_inset
1131
1132 \SpecialChar LyX
1133
1134 \end_layout
1135
1136 \end_inset
1137
1138 .
1139  This directory is used as a mirror of 
1140 \begin_inset Flex Code
1141 status collapsed
1142
1143 \begin_layout Plain Layout
1144 \SpecialChar LyX
1145 Dir
1146 \end_layout
1147
1148 \end_inset
1149
1150 , which means that every file in 
1151 \begin_inset Flex Code
1152 status collapsed
1153
1154 \begin_layout Plain Layout
1155 UserDir
1156 \end_layout
1157
1158 \end_inset
1159
1160  is a replacement for the corresponding file in 
1161 \begin_inset Flex Code
1162 status collapsed
1163
1164 \begin_layout Plain Layout
1165 \SpecialChar LyX
1166 Dir
1167 \end_layout
1168
1169 \end_inset
1170
1171 .
1172  Any configuration file described in the above sections can be placed either
1173  in the system-wide directory, in which case it will affect all users, or
1174  in your local directory for your own use.
1175 \end_layout
1176
1177 \begin_layout Standard
1178 To make things clearer, let's provide a few examples:
1179 \end_layout
1180
1181 \begin_layout Itemize
1182 The preferences set in the 
1183 \begin_inset Flex MenuItem
1184 status collapsed
1185
1186 \begin_layout Plain Layout
1187 Tools\SpecialChar menuseparator
1188 Preferences
1189 \end_layout
1190
1191 \end_inset
1192
1193  dialog are saved to a file 
1194 \begin_inset Flex Code
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198 preferences
1199 \end_layout
1200
1201 \end_inset
1202
1203  in 
1204 \begin_inset Flex Code
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208 UserDir
1209 \end_layout
1210
1211 \end_inset
1212
1213 .
1214 \end_layout
1215
1216 \begin_layout Itemize
1217 When you reconfigure using 
1218 \begin_inset Flex MenuItem
1219 status collapsed
1220
1221 \begin_layout Plain Layout
1222 Tools\SpecialChar menuseparator
1223 Reconfigure
1224 \end_layout
1225
1226 \end_inset
1227
1228 , \SpecialChar LyX
1229  runs the 
1230 \begin_inset Flex Code
1231 status collapsed
1232
1233 \begin_layout Plain Layout
1234 configure.py
1235 \end_layout
1236
1237 \end_inset
1238
1239  script, and the resulting files are written in your local configuration
1240  directory.
1241  This means that any additional text class file that you might have added
1242  in 
1243 \begin_inset Flex Code
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 UserDir/layouts
1248 \end_layout
1249
1250 \end_inset
1251
1252  will be added to the list of classes in the 
1253 \begin_inset Flex MenuItem
1254 status collapsed
1255
1256 \begin_layout Plain Layout
1257 Document\SpecialChar menuseparator
1258 Settings
1259 \end_layout
1260
1261 \end_inset
1262
1263  dialog.
1264 \end_layout
1265
1266 \begin_layout Itemize
1267 If you get some updated documentation from \SpecialChar LyX
1268  ftp site and cannot install
1269  it because you do not have sysadmin rights on your system, you can just
1270  copy the files in 
1271 \begin_inset Flex Code
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275 UserDir/doc/
1276 \end_layout
1277
1278 \end_inset
1279
1280  and the items in the 
1281 \begin_inset Flex MenuItem
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Help
1286 \end_layout
1287
1288 \end_inset
1289
1290  menu will open them!
1291 \end_layout
1292
1293 \begin_layout Section
1294 Running \SpecialChar LyX
1295  with multiple configurations
1296 \end_layout
1297
1298 \begin_layout Standard
1299 The configuration freedom of the local configuration directory may not suffice
1300  if you want to have more than one configuration at your disposal.
1301  For example, you may want to be use different key bindings or printer settings
1302  at different times.
1303  You can achieve this by having several such directories.
1304  You then specify which directory to use at run-time.
1305 \end_layout
1306
1307 \begin_layout Standard
1308 Invoking \SpecialChar LyX
1309  with the command line switch 
1310 \begin_inset Flex Code
1311 status collapsed
1312
1313 \begin_layout Plain Layout
1314 -userdir
1315 \end_layout
1316
1317 \end_inset
1318
1319  
1320 \emph on
1321 <some directory>
1322 \emph default
1323  instructs the program to read the configuration from that directory, and
1324  not from the default directory.
1325  (You can determine the default directory by running \SpecialChar LyX
1326  without the 
1327 \begin_inset Flex Code
1328 status collapsed
1329
1330 \begin_layout Plain Layout
1331 -userdir
1332 \end_layout
1333
1334 \end_inset
1335
1336  switch.) If the specified directory does not exist, \SpecialChar LyX
1337  offers to create it
1338  for you, just like it does for the default directory on the first time
1339  you run the program.
1340  You can modify the configuration options in this additional user directory
1341  exactly as you would for the default directory.
1342  These directories are completely independent (but read on).
1343  Note that setting the environment variable 
1344 \begin_inset Flex Code
1345 status collapsed
1346
1347 \begin_layout Plain Layout
1348 LYX_USERDIR_VER
1349 \end_layout
1350
1351 \end_inset
1352
1353  to some value has exactly the same effect.
1354 \end_layout
1355
1356 \begin_layout Standard
1357 Having several configurations also requires more maintenance: if you want
1358  to add a new layout to 
1359 \begin_inset Flex Code
1360 status collapsed
1361
1362 \begin_layout Plain Layout
1363 NewUserDir/layouts
1364 \end_layout
1365
1366 \end_inset
1367
1368  which you want available from all your configurations, you must add it
1369  to each directory separately.
1370  You can avoid this with the following trick: after \SpecialChar LyX
1371  creates the additional
1372  directory, most of the subdirectories (see above) are empty.
1373  If you want the new configuration to mirror an existing one, replace the
1374  empty subdirectory with a symbolic link to the matching subdirectory in
1375  the existing configuration.
1376  Take care with the 
1377 \begin_inset Flex Code
1378 status collapsed
1379
1380 \begin_layout Plain Layout
1381 doc/
1382 \end_layout
1383
1384 \end_inset
1385
1386  subdirectory, however, since it contains a file written by the configuration
1387  script (also accessible through 
1388 \begin_inset Flex MenuItem
1389 status collapsed
1390
1391 \begin_layout Plain Layout
1392 Tools\SpecialChar menuseparator
1393 Reconfigure
1394 \end_layout
1395
1396 \end_inset
1397
1398 ) which is configuration-specific.
1399 \end_layout
1400
1401 \begin_layout Chapter
1402 The Preferences dialog
1403 \end_layout
1404
1405 \begin_layout Standard
1406 All options of the preferences dialog are described in the Appendix 
1407 \emph on
1408 The Preferences Dialog
1409 \emph default
1410  in the 
1411 \emph on
1412 User's Guide
1413 \emph default
1414 .
1415  For some options you might find here more details.
1416 \end_layout
1417
1418 \begin_layout Section
1419 Formats
1420 \begin_inset CommandInset label
1421 LatexCommand label
1422 name "sec:Formats"
1423
1424 \end_inset
1425
1426
1427 \end_layout
1428
1429 \begin_layout Standard
1430 The first step is to define your file formats if they are not already defined.
1431  To do so, open the 
1432 \begin_inset Flex MenuItem
1433 status collapsed
1434
1435 \begin_layout Plain Layout
1436 Tools\SpecialChar menuseparator
1437 Preferences
1438 \end_layout
1439
1440 \end_inset
1441
1442  dialog.
1443  Under 
1444 \begin_inset Flex MenuItem
1445 status collapsed
1446
1447 \begin_layout Plain Layout
1448 File Handling\SpecialChar menuseparator
1449 File formats
1450 \end_layout
1451
1452 \end_inset
1453
1454  press the 
1455 \begin_inset Flex MenuItem
1456 status collapsed
1457
1458 \begin_layout Plain Layout
1459 New
1460 \end_layout
1461
1462 \end_inset
1463
1464  button to define your new format.
1465  The 
1466 \begin_inset Flex MenuItem
1467 status collapsed
1468
1469 \begin_layout Plain Layout
1470 Format
1471 \end_layout
1472
1473 \end_inset
1474
1475  field contains the name used to identify the format in the GUI.
1476  The 
1477 \begin_inset Flex MenuItem
1478 status collapsed
1479
1480 \begin_layout Plain Layout
1481 Short Name
1482 \end_layout
1483
1484 \end_inset
1485
1486  is used to identify the format internally.
1487  You will also need to enter a file extension.
1488  These are all required.
1489  The optional 
1490 \begin_inset Flex MenuItem
1491 status collapsed
1492
1493 \begin_layout Plain Layout
1494 Shortcut
1495 \end_layout
1496
1497 \end_inset
1498
1499  field is used to provide a keyboard shortcut on the menus.
1500  (For example, pressing 
1501 \begin_inset Flex MenuItem
1502 status collapsed
1503
1504 \begin_layout Plain Layout
1505 Ctrl+D
1506 \end_layout
1507
1508 \end_inset
1509
1510  will 
1511 \begin_inset Flex MenuItem
1512 status collapsed
1513
1514 \begin_layout Plain Layout
1515 Document\SpecialChar menuseparator
1516 View (Other Formats)\SpecialChar menuseparator
1517 DVI
1518 \end_layout
1519
1520 \end_inset
1521
1522 .) 
1523 \end_layout
1524
1525 \begin_layout Standard
1526 A Format can have a 
1527 \begin_inset Flex MenuItem
1528 status collapsed
1529
1530 \begin_layout Plain Layout
1531 Viewer
1532 \end_layout
1533
1534 \end_inset
1535
1536  and an 
1537 \begin_inset Flex MenuItem
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 Editor
1542 \end_layout
1543
1544 \end_inset
1545
1546  associated with it.
1547  For example, you might want to use 
1548 \begin_inset Flex MenuItem
1549 status collapsed
1550
1551 \begin_layout Plain Layout
1552 Ghostview
1553 \end_layout
1554
1555 \end_inset
1556
1557  to view PostScript files.
1558  You can enter the command needed to start the program in the corresponding
1559  fields.
1560  In defining this command, you can use the four variables listed in the
1561  next section.
1562  The viewer is launched when you view an image in \SpecialChar LyX
1563  or use the 
1564 \begin_inset Flex MenuItem
1565 status collapsed
1566
1567 \begin_layout Plain Layout
1568 Document\SpecialChar menuseparator
1569 View
1570 \end_layout
1571
1572 \end_inset
1573
1574  menu.
1575  The editor is for example launched when you right-click on an image and
1576  choose 
1577 \begin_inset Flex MenuItem
1578 status collapsed
1579
1580 \begin_layout Plain Layout
1581 Edit externally
1582 \end_layout
1583
1584 \end_inset
1585
1586  in the appearing context menu.
1587 \end_layout
1588
1589 \begin_layout Standard
1590 The 
1591 \begin_inset Flex MenuItem
1592 status collapsed
1593
1594 \begin_layout Plain Layout
1595 MIME
1596 \end_layout
1597
1598 \end_inset
1599
1600  type of a format is optional, but if it is specified, it must be unique
1601  across all formats.
1602  It is used to detect files of this format from the file contents.
1603  For some important file formats there is no MIME type officially registered
1604  with the 
1605 \begin_inset CommandInset href
1606 LatexCommand href
1607 name "IANA"
1608 target "http://www.iana.org/assignments/media-types/"
1609
1610 \end_inset
1611
1612 .
1613  Therefore \SpecialChar LyX
1614  uses the extended list of MIME types as specified by 
1615 \begin_inset CommandInset href
1616 LatexCommand href
1617 name "freedesktop.org"
1618 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1619
1620 \end_inset
1621
1622 .
1623 \end_layout
1624
1625 \begin_layout Standard
1626 The 
1627 \begin_inset Flex MenuItem
1628 status collapsed
1629
1630 \begin_layout Plain Layout
1631 Document format
1632 \end_layout
1633
1634 \end_inset
1635
1636  option tells \SpecialChar LyX
1637  that a format is suitable for document export.
1638  If this is set and if a suitable conversion route exists (see 
1639 \begin_inset CommandInset ref
1640 LatexCommand ref
1641 reference "sec:Converters"
1642
1643 \end_inset
1644
1645 ), the format will appear in the 
1646 \begin_inset Flex MenuItem
1647 status collapsed
1648
1649 \begin_layout Plain Layout
1650 File\SpecialChar menuseparator
1651 Export
1652 \end_layout
1653
1654 \end_inset
1655
1656  menu.
1657  The format will also appear in the 
1658 \begin_inset Flex MenuItem
1659 status collapsed
1660
1661 \begin_layout Plain Layout
1662 Document\SpecialChar menuseparator
1663 View
1664 \end_layout
1665
1666 \end_inset
1667
1668  menu if a viewer is specified for the format.
1669  Pure image formats, such as 
1670 \begin_inset Flex Code
1671 status collapsed
1672
1673 \begin_layout Plain Layout
1674 png
1675 \end_layout
1676
1677 \end_inset
1678
1679 , should not use this option.
1680  Formats that can both represent vector graphics and documents like 
1681 \begin_inset Flex Code
1682 status collapsed
1683
1684 \begin_layout Plain Layout
1685 pdf
1686 \end_layout
1687
1688 \end_inset
1689
1690  should use it.
1691 \end_layout
1692
1693 \begin_layout Standard
1694 The option 
1695 \begin_inset Flex MenuItem
1696 status collapsed
1697
1698 \begin_layout Plain Layout
1699 Vector graphics format
1700 \end_layout
1701
1702 \end_inset
1703
1704  tells \SpecialChar LyX
1705  that a format can contain vector graphics.
1706  This information is used to determine the target format of included graphics
1707  for 
1708 \begin_inset Flex MenuItem
1709 status collapsed
1710
1711 \begin_layout Plain Layout
1712 pdflatex
1713 \end_layout
1714
1715 \end_inset
1716
1717  export.
1718  Included graphics may need to be converted to either 
1719 \begin_inset Flex MenuItem
1720 status collapsed
1721
1722 \begin_layout Plain Layout
1723 pdf
1724 \end_layout
1725
1726 \end_inset
1727
1728
1729 \begin_inset Flex MenuItem
1730 status collapsed
1731
1732 \begin_layout Plain Layout
1733 png
1734 \end_layout
1735
1736 \end_inset
1737
1738 , or 
1739 \begin_inset Flex MenuItem
1740 status collapsed
1741
1742 \begin_layout Plain Layout
1743 jpg
1744 \end_layout
1745
1746 \end_inset
1747
1748 , since 
1749 \begin_inset Flex MenuItem
1750 status collapsed
1751
1752 \begin_layout Plain Layout
1753 pdflatex
1754 \end_layout
1755
1756 \end_inset
1757
1758  cannot handle other image formats.
1759  If an included graphic is not already in 
1760 \begin_inset Flex MenuItem
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 pdf
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \begin_inset Flex MenuItem
1771 status collapsed
1772
1773 \begin_layout Plain Layout
1774 png
1775 \end_layout
1776
1777 \end_inset
1778
1779 , or 
1780 \begin_inset Flex MenuItem
1781 status collapsed
1782
1783 \begin_layout Plain Layout
1784 jpg
1785 \end_layout
1786
1787 \end_inset
1788
1789  format, it is converted to 
1790 \begin_inset Flex MenuItem
1791 status collapsed
1792
1793 \begin_layout Plain Layout
1794 pdf
1795 \end_layout
1796
1797 \end_inset
1798
1799  if the vector format option is set, and otherwise to 
1800 \begin_inset Flex MenuItem
1801 status collapsed
1802
1803 \begin_layout Plain Layout
1804 png
1805 \end_layout
1806
1807 \end_inset
1808
1809 .
1810 \end_layout
1811
1812 \begin_layout Section
1813 Copiers
1814 \end_layout
1815
1816 \begin_layout Standard
1817 Since all conversions from one format to another take place in \SpecialChar LyX
1818 's temporary
1819  directory, it is sometimes necessary to modify a file before copying it
1820  to the temporary directory in order that the conversion may be performed.
1821 \begin_inset Foot
1822 status collapsed
1823
1824 \begin_layout Plain Layout
1825 For example, the file may refer to other files—images, for example—using
1826  relative file names, and these may become invalid when the file is copied
1827  to the temporary directory.
1828 \end_layout
1829
1830 \end_inset
1831
1832  This is done by a Copier: It copies a file to (or from) the temporary directory
1833  and may modify it in the process.
1834 \end_layout
1835
1836 \begin_layout Standard
1837 The definitions of the copiers may use four variables:
1838 \end_layout
1839
1840 \begin_layout Labeling
1841 \labelwidthstring 00.00.0000
1842 \begin_inset Flex Code
1843 status collapsed
1844
1845 \begin_layout Plain Layout
1846 $$s
1847 \end_layout
1848
1849 \end_inset
1850
1851  The \SpecialChar LyX
1852  system directory (e.
1853 \begin_inset space \thinspace{}
1854 \end_inset
1855
1856 g.
1857 \begin_inset space \space{}
1858 \end_inset
1859
1860
1861 \begin_inset Flex MenuItem
1862 status collapsed
1863
1864 \begin_layout Plain Layout
1865 /usr/share/lyx
1866 \end_layout
1867
1868 \end_inset
1869
1870 ).
1871 \end_layout
1872
1873 \begin_layout Labeling
1874 \labelwidthstring 00.00.0000
1875 \begin_inset Flex Code
1876 status collapsed
1877
1878 \begin_layout Plain Layout
1879 $$i
1880 \end_layout
1881
1882 \end_inset
1883
1884  The input file
1885 \end_layout
1886
1887 \begin_layout Labeling
1888 \labelwidthstring 00.00.0000
1889 \begin_inset Flex Code
1890 status collapsed
1891
1892 \begin_layout Plain Layout
1893 $$o
1894 \end_layout
1895
1896 \end_inset
1897
1898  The output file
1899 \end_layout
1900
1901 \begin_layout Labeling
1902 \labelwidthstring 00.00.0000
1903 \begin_inset Flex Code
1904 status collapsed
1905
1906 \begin_layout Plain Layout
1907 $$b
1908 \end_layout
1909
1910 \end_inset
1911
1912  The base name (without filename extension) in the \SpecialChar LyX
1913  temporary directory
1914 \end_layout
1915
1916 \begin_layout Labeling
1917 \labelwidthstring 00.00.0000
1918 \begin_inset Flex Code
1919 status collapsed
1920
1921 \begin_layout Plain Layout
1922 $$p
1923 \end_layout
1924
1925 \end_inset
1926
1927  The full directory path of the \SpecialChar LyX
1928  temporary directory
1929 \end_layout
1930
1931 \begin_layout Labeling
1932 \labelwidthstring 00.00.0000
1933 \begin_inset Flex Code
1934 status collapsed
1935
1936 \begin_layout Plain Layout
1937 $$r
1938 \end_layout
1939
1940 \end_inset
1941
1942  The full pathname to the original \SpecialChar LyX
1943  file being processed
1944 \end_layout
1945
1946 \begin_layout Labeling
1947 \labelwidthstring 00.00.0000
1948 \begin_inset Flex Code
1949 status collapsed
1950
1951 \begin_layout Plain Layout
1952 $$f
1953 \end_layout
1954
1955 \end_inset
1956
1957  The filename (without any directory path) of the \SpecialChar LyX
1958  file.
1959 \end_layout
1960
1961 \begin_layout Labeling
1962 \labelwidthstring 00.00.0000
1963 \begin_inset Flex Code
1964 status collapsed
1965
1966 \begin_layout Plain Layout
1967 $$l
1968 \end_layout
1969
1970 \end_inset
1971
1972  The `\SpecialChar LaTeX
1973  name'
1974 \end_layout
1975
1976 \begin_layout Standard
1977 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1978 's 
1979 \series bold
1980
1981 \backslash
1982 include
1983 \series default
1984  command.
1985  It is relevant only when exporting files suitable for such inclusion.
1986 \end_layout
1987
1988 \begin_layout Standard
1989 Copiers can be used to do almost anything with output files.
1990  For example, suppose you want generated pdf files to be copied to a special
1991  directory, 
1992 \begin_inset Flex Code
1993 status collapsed
1994
1995 \begin_layout Plain Layout
1996 /home/you/pdf/
1997 \end_layout
1998
1999 \end_inset
2000
2001 .
2002  Then you could write a shell script such as this one:
2003 \end_layout
2004
2005 \begin_layout Standard
2006 \begin_inset listings
2007 inline false
2008 status open
2009
2010 \begin_layout Plain Layout
2011
2012 #!/bin/bash
2013 \end_layout
2014
2015 \begin_layout Plain Layout
2016
2017 FROMFILE=$1
2018 \end_layout
2019
2020 \begin_layout Plain Layout
2021
2022 TOFILE=`basename $2`
2023 \end_layout
2024
2025 \begin_layout Plain Layout
2026
2027 cp $FROMFILE /home/you/pdf/$TOFILE
2028 \end_layout
2029
2030 \end_inset
2031
2032 Save it in your local \SpecialChar LyX
2033  directory—say, 
2034 \begin_inset Flex Code
2035 status collapsed
2036
2037 \begin_layout Plain Layout
2038 /home/you/.lyx/scripts/pdfcopier.sh
2039 \end_layout
2040
2041 \end_inset
2042
2043 —and make it executable, if you need to do so on your platform.
2044  Then, in the 
2045 \begin_inset Flex MenuItem
2046 status collapsed
2047
2048 \begin_layout Plain Layout
2049 Tools\SpecialChar menuseparator
2050 Preferences
2051 \end_layout
2052
2053 \end_inset
2054
2055  dialog, select under 
2056 \begin_inset Flex MenuItem
2057 status collapsed
2058
2059 \begin_layout Plain Layout
2060 File Handling\SpecialChar menuseparator
2061 File formats
2062 \end_layout
2063
2064 \end_inset
2065
2066  the 
2067 \begin_inset Flex MenuItem
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071 PDF(pdflatex)
2072 \end_layout
2073
2074 \end_inset
2075
2076  format—or one of the other pdf formats—and enter 
2077 \begin_inset Flex Code
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 pdfcopier.sh $$i $$o
2082 \end_layout
2083
2084 \end_inset
2085
2086  into the 
2087 \begin_inset Flex MenuItem
2088 status collapsed
2089
2090 \begin_layout Plain Layout
2091 Copier
2092 \end_layout
2093
2094 \end_inset
2095
2096  field.
2097  
2098 \end_layout
2099
2100 \begin_layout Standard
2101 Copiers are used by \SpecialChar LyX
2102  in various of its own conversions.
2103  For example, if appropriate programs are found, \SpecialChar LyX
2104  will automatically install
2105  copiers for the 
2106 \begin_inset Flex MenuItem
2107 status collapsed
2108
2109 \begin_layout Plain Layout
2110 HTML
2111 \end_layout
2112
2113 \end_inset
2114
2115  and 
2116 \begin_inset Flex MenuItem
2117 status collapsed
2118
2119 \begin_layout Plain Layout
2120 HTML
2121 \begin_inset space ~
2122 \end_inset
2123
2124 (MS Word)
2125 \end_layout
2126
2127 \end_inset
2128
2129  formats.
2130  When these formats are exported, the copier sees that not just the main
2131  HTML file but various associated files (style files, images, etc.) are also
2132  copied.
2133  All these files are written to a subdirectory of the directory in which
2134  the original \SpecialChar LyX
2135  file was found.
2136 \begin_inset Foot
2137 status collapsed
2138
2139 \begin_layout Plain Layout
2140 This copier can be customized.
2141  The optional 
2142 \begin_inset Quotes eld
2143 \end_inset
2144
2145 -e
2146 \begin_inset Quotes erd
2147 \end_inset
2148
2149  argument takes a comma-separated list of extensions to be copied; if it
2150  is omitted, all files will be copied.
2151  The 
2152 \begin_inset Quotes eld
2153 \end_inset
2154
2155 -t
2156 \begin_inset Quotes erd
2157 \end_inset
2158
2159  argument determines the extension added to the generated directory.
2160  By default, it is 
2161 \begin_inset Quotes eld
2162 \end_inset
2163
2164
2165 \begin_inset Flex MenuItem
2166 status collapsed
2167
2168 \begin_layout Plain Layout
2169 \SpecialChar LyX
2170 conv
2171 \end_layout
2172
2173 \end_inset
2174
2175
2176 \begin_inset Quotes erd
2177 \end_inset
2178
2179 , so HTML generated from 
2180 \begin_inset Flex MenuItem
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 /path/to/filename.lyx
2185 \end_layout
2186
2187 \end_inset
2188
2189  will end up in 
2190 \begin_inset Flex MenuItem
2191 status collapsed
2192
2193 \begin_layout Plain Layout
2194 /path/to/filename.html.\SpecialChar LyX
2195 conv
2196 \end_layout
2197
2198 \end_inset
2199
2200 .
2201  
2202 \end_layout
2203
2204 \end_inset
2205
2206
2207 \end_layout
2208
2209 \begin_layout Section
2210 Converters
2211 \begin_inset CommandInset label
2212 LatexCommand label
2213 name "sec:Converters"
2214
2215 \end_inset
2216
2217
2218 \end_layout
2219
2220 \begin_layout Standard
2221 You can define your own Converters to convert files between different formats.
2222  This is done in the 
2223 \begin_inset Flex MenuItem
2224 status collapsed
2225
2226 \begin_layout Plain Layout
2227 Tools\SpecialChar menuseparator
2228 Preferences\SpecialChar menuseparator
2229 File Handling\SpecialChar menuseparator
2230 Converters
2231 \end_layout
2232
2233 \end_inset
2234
2235  dialog.
2236 \end_layout
2237
2238 \begin_layout Standard
2239 To define a new converter, select the 
2240 \begin_inset Flex MenuItem
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 From
2245 \begin_inset space ~
2246 \end_inset
2247
2248 format
2249 \end_layout
2250
2251 \end_inset
2252
2253  and 
2254 \begin_inset Flex MenuItem
2255 status collapsed
2256
2257 \begin_layout Plain Layout
2258 To
2259 \begin_inset space ~
2260 \end_inset
2261
2262 format
2263 \end_layout
2264
2265 \end_inset
2266
2267  from the drop-down lists, enter the command needed for the conversion,
2268  and then press the 
2269 \begin_inset Flex MenuItem
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 Add
2274 \end_layout
2275
2276 \end_inset
2277
2278  button.
2279  Several variables can be used in the definition of converters:
2280 \end_layout
2281
2282 \begin_layout Labeling
2283 \labelwidthstring 00.00.0000
2284 \begin_inset Flex Code
2285 status collapsed
2286
2287 \begin_layout Plain Layout
2288 $$s
2289 \end_layout
2290
2291 \end_inset
2292
2293  The \SpecialChar LyX
2294  system directory
2295 \end_layout
2296
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Flex Code
2300 status collapsed
2301
2302 \begin_layout Plain Layout
2303 $$i
2304 \end_layout
2305
2306 \end_inset
2307
2308  The input file
2309 \end_layout
2310
2311 \begin_layout Labeling
2312 \labelwidthstring 00.00.0000
2313 \begin_inset Flex Code
2314 status collapsed
2315
2316 \begin_layout Plain Layout
2317 $$o
2318 \end_layout
2319
2320 \end_inset
2321
2322  The output file
2323 \end_layout
2324
2325 \begin_layout Labeling
2326 \labelwidthstring 00.00.0000
2327 \begin_inset Flex Code
2328 status collapsed
2329
2330 \begin_layout Plain Layout
2331 $$b
2332 \end_layout
2333
2334 \end_inset
2335
2336  The base filename of the input file (i.
2337 \begin_inset space \thinspace{}
2338 \end_inset
2339
2340 g., without the extension)
2341 \end_layout
2342
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Flex Code
2346 status collapsed
2347
2348 \begin_layout Plain Layout
2349 $$p
2350 \end_layout
2351
2352 \end_inset
2353
2354  The path to the input file
2355 \end_layout
2356
2357 \begin_layout Labeling
2358 \labelwidthstring 00.00.0000
2359 \begin_inset Flex Code
2360 status collapsed
2361
2362 \begin_layout Plain Layout
2363 $$r
2364 \end_layout
2365
2366 \end_inset
2367
2368  The path to the original input file (this is different from $$p when a
2369  chain of converters is called)
2370 \end_layout
2371
2372 \begin_layout Labeling
2373 \labelwidthstring 00.00.0000
2374 \begin_inset Flex Code
2375 status collapsed
2376
2377 \begin_layout Plain Layout
2378 $$e
2379 \end_layout
2380
2381 \end_inset
2382
2383  The iconv name for the encoding of the document.
2384 \end_layout
2385
2386 \begin_layout Standard
2387 In the 
2388 \begin_inset Flex MenuItem
2389 status collapsed
2390
2391 \begin_layout Plain Layout
2392 Extra
2393 \begin_inset space ~
2394 \end_inset
2395
2396 Flag
2397 \end_layout
2398
2399 \end_inset
2400
2401  field you can enter the following flags, separated by commas:
2402 \end_layout
2403
2404 \begin_layout Labeling
2405 \labelwidthstring 00.00.0000
2406 \begin_inset Flex Code
2407 status collapsed
2408
2409 \begin_layout Plain Layout
2410 latex
2411 \end_layout
2412
2413 \end_inset
2414
2415  This converter runs some form of \SpecialChar LaTeX
2416 .
2417  This will make \SpecialChar LyX
2418 's \SpecialChar LaTeX
2419  error logs available.
2420 \end_layout
2421
2422 \begin_layout Labeling
2423 \labelwidthstring 00.00.0000
2424 \begin_inset Flex Code
2425 status collapsed
2426
2427 \begin_layout Plain Layout
2428 needaux
2429 \end_layout
2430
2431 \end_inset
2432
2433  Needs the \SpecialChar LaTeX
2434  
2435 \begin_inset Flex MenuItem
2436 status collapsed
2437
2438 \begin_layout Plain Layout
2439 .aux
2440 \end_layout
2441
2442 \end_inset
2443
2444  file for the conversion.
2445 \end_layout
2446
2447 \begin_layout Labeling
2448 \labelwidthstring 00.00.0000
2449 \begin_inset Flex Code
2450 status collapsed
2451
2452 \begin_layout Plain Layout
2453 nice
2454 \end_layout
2455
2456 \end_inset
2457
2458  Needs a 
2459 \begin_inset Quotes eld
2460 \end_inset
2461
2462 nice
2463 \begin_inset Quotes erd
2464 \end_inset
2465
2466  file from the backend, which in practice means a \SpecialChar LaTeX
2467  file like the one we
2468  would export, without 
2469 \begin_inset Flex Code
2470 status collapsed
2471
2472 \begin_layout Plain Layout
2473 input@path
2474 \end_layout
2475
2476 \end_inset
2477
2478 .
2479 \end_layout
2480
2481 \begin_layout Labeling
2482 \labelwidthstring 00.00.0000
2483 \begin_inset Flex Code
2484 status collapsed
2485
2486 \begin_layout Plain Layout
2487 xml
2488 \end_layout
2489
2490 \end_inset
2491
2492  Output is XML.
2493 \end_layout
2494
2495 \begin_layout Standard
2496 The following three flags are not really flags at all because they take
2497  an argument in the 
2498 \begin_inset Flex MenuItem
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 key
2503 \begin_inset space ~
2504 \end_inset
2505
2506 =
2507 \begin_inset space ~
2508 \end_inset
2509
2510 value
2511 \end_layout
2512
2513 \end_inset
2514
2515  format:
2516 \end_layout
2517
2518 \begin_layout Labeling
2519 \labelwidthstring 00.00.0000
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 parselog
2525 \end_layout
2526
2527 \end_inset
2528
2529  If set, the converter's standard error will be redirected to a file 
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 infile.out
2535 \end_layout
2536
2537 \end_inset
2538
2539 , and the script given as argument will be run as: 
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 script < infile.out > infile.log
2545 \end_layout
2546
2547 \end_inset
2548
2549 .
2550  The argument may contain 
2551 \begin_inset Flex Code
2552 status collapsed
2553
2554 \begin_layout Plain Layout
2555 $$s
2556 \end_layout
2557
2558 \end_inset
2559
2560 .
2561 \end_layout
2562
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2565 \begin_inset Flex Code
2566 status collapsed
2567
2568 \begin_layout Plain Layout
2569 resultdir
2570 \end_layout
2571
2572 \end_inset
2573
2574  The name of the directory in which the converter will dump the generated
2575  files.
2576  \SpecialChar LyX
2577  will not create this directory, and it does not copy anything into it,
2578  though it will copy this directory to the destination.
2579  The argument may contain 
2580 \begin_inset Flex Code
2581 status collapsed
2582
2583 \begin_layout Plain Layout
2584 $$b
2585 \end_layout
2586
2587 \end_inset
2588
2589 , which will be replaced by the base name of the input and output files,
2590  respectively, when the directory is copied.
2591 \begin_inset Newline newline
2592 \end_inset
2593
2594 Note that resultdir and usetempdir make no sense together.
2595  The latter will be ignored if the former is given.
2596 \end_layout
2597
2598 \begin_layout Labeling
2599 \labelwidthstring 00.00.0000
2600 \begin_inset Flex Code
2601 status collapsed
2602
2603 \begin_layout Plain Layout
2604 resultfile
2605 \end_layout
2606
2607 \end_inset
2608
2609  Determines the output file name and may, contain 
2610 \begin_inset Flex Code
2611 status collapsed
2612
2613 \begin_layout Plain Layout
2614 $$b
2615 \end_layout
2616
2617 \end_inset
2618
2619 .
2620  Sensible only with resultdir and optional even then; if not given, it defaults
2621  to `index'.
2622 \end_layout
2623
2624 \begin_layout Standard
2625 None of these last three are presently used in any of the converters that
2626  are installed with \SpecialChar LyX
2627 .
2628  
2629 \end_layout
2630
2631 \begin_layout Standard
2632 You do not have to define converters for all formats between which you want
2633  to convert.
2634  For example, you will note that there is no `\SpecialChar LyX
2635  to PostScript' converter,
2636  but \SpecialChar LyX
2637  will export PostScript.
2638  It does so by first creating a \SpecialChar LaTeX
2639  file (no converter needs to be defined
2640  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2641  to DVI' converter,
2642  and finally converting the resulting DVI file to PostScript.
2643  \SpecialChar LyX
2644  finds such `chains' of converters automatically, and it will always choose
2645  the shortest possible chain.
2646  You can, though, still define multiple conversion methods between file
2647  formats.
2648  For example, the standard \SpecialChar LyX
2649  configuration provides five ways to convert
2650  \SpecialChar LaTeX
2651  to PDF:
2652 \end_layout
2653
2654 \begin_layout Enumerate
2655 Directly, using 
2656 \begin_inset Flex MenuItem
2657 status collapsed
2658
2659 \begin_layout Plain Layout
2660 pdflatex
2661 \end_layout
2662
2663 \end_inset
2664
2665
2666 \end_layout
2667
2668 \begin_layout Enumerate
2669 via (DVI and) PostScript, using 
2670 \begin_inset Flex MenuItem
2671 status collapsed
2672
2673 \begin_layout Plain Layout
2674 ps2pdf
2675 \end_layout
2676
2677 \end_inset
2678
2679
2680 \end_layout
2681
2682 \begin_layout Enumerate
2683 via DVI, using 
2684 \begin_inset Flex MenuItem
2685 status collapsed
2686
2687 \begin_layout Plain Layout
2688 dvipdfm
2689 \end_layout
2690
2691 \end_inset
2692
2693
2694 \end_layout
2695
2696 \begin_layout Enumerate
2697 directly using 
2698 \begin_inset Flex MenuItem
2699 status collapsed
2700
2701 \begin_layout Plain Layout
2702 Xe\SpecialChar TeX
2703
2704 \end_layout
2705
2706 \end_inset
2707
2708
2709 \end_layout
2710
2711 \begin_layout Enumerate
2712 directly using 
2713 \begin_inset Flex MenuItem
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 Lua\SpecialChar TeX
2718
2719 \end_layout
2720
2721 \end_inset
2722
2723
2724 \end_layout
2725
2726 \begin_layout Standard
2727 To define such alternate chains, you must define multiple target `file formats',
2728  as described in 
2729 \begin_inset CommandInset ref
2730 LatexCommand ref
2731 reference "sec:Formats"
2732
2733 \end_inset
2734
2735 .
2736  For example, in the standard configuration, the formats named 
2737 \begin_inset Flex MenuItem
2738 status collapsed
2739
2740 \begin_layout Plain Layout
2741 pdf
2742 \end_layout
2743
2744 \end_inset
2745
2746  (for 
2747 \begin_inset Flex MenuItem
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 ps2pdf
2752 \end_layout
2753
2754 \end_inset
2755
2756 ), 
2757 \begin_inset Flex MenuItem
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 pdf2
2762 \end_layout
2763
2764 \end_inset
2765
2766  (for 
2767 \begin_inset Flex MenuItem
2768 status collapsed
2769
2770 \begin_layout Plain Layout
2771 pdflatex
2772 \end_layout
2773
2774 \end_inset
2775
2776 ), 
2777 \begin_inset Flex MenuItem
2778 status collapsed
2779
2780 \begin_layout Plain Layout
2781 pdf3
2782 \end_layout
2783
2784 \end_inset
2785
2786  (for 
2787 \begin_inset Flex MenuItem
2788 status collapsed
2789
2790 \begin_layout Plain Layout
2791 dvipdfm
2792 \end_layout
2793
2794 \end_inset
2795
2796 ), 
2797 \begin_inset Flex MenuItem
2798 status collapsed
2799
2800 \begin_layout Plain Layout
2801 pdf4
2802 \end_layout
2803
2804 \end_inset
2805
2806  (for 
2807 \begin_inset Flex MenuItem
2808 status collapsed
2809
2810 \begin_layout Plain Layout
2811 Xe\SpecialChar TeX
2812
2813 \end_layout
2814
2815 \end_inset
2816
2817 ), and 
2818 \begin_inset Flex MenuItem
2819 status collapsed
2820
2821 \begin_layout Plain Layout
2822 pdf5
2823 \end_layout
2824
2825 \end_inset
2826
2827  (for 
2828 \begin_inset Flex MenuItem
2829 status collapsed
2830
2831 \begin_layout Plain Layout
2832 Lua\SpecialChar TeX
2833
2834 \end_layout
2835
2836 \end_inset
2837
2838 ) are defined, all of which share the extension 
2839 \begin_inset Flex MenuItem
2840 status collapsed
2841
2842 \begin_layout Plain Layout
2843 .pdf
2844 \end_layout
2845
2846 \end_inset
2847
2848 , and which correspond to the conversion methods just mentioned.
2849 \end_layout
2850
2851 \begin_layout Chapter
2852 Internationalizing \SpecialChar LyX
2853
2854 \begin_inset CommandInset label
2855 LatexCommand label
2856 name "cha:Internationalizing-LyX"
2857
2858 \end_inset
2859
2860
2861 \end_layout
2862
2863 \begin_layout Standard
2864 \SpecialChar LyX
2865  supports using a translated interface.
2866  Last time we checked, \SpecialChar LyX
2867  provided text in thirty languages.
2868  The language of choice is called your 
2869 \emph on
2870 locale
2871 \emph default
2872 .
2873  (For further reading on locale settings, see also the documentation for
2874  locale that comes with your operating system.
2875  For Linux, the manual page for 
2876 \begin_inset Flex Code
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880 locale(5)
2881 \end_layout
2882
2883 \end_inset
2884
2885  could be a good place to start).
2886 \end_layout
2887
2888 \begin_layout Standard
2889 Notice that these translations will work, but do contain a few flaws.
2890  In particular, all dialogs have been designed with the English text in
2891  mind, which means that some of the translated text will be too large to
2892  fit within the space allocated.
2893  This is only a display problem and will not cause any harm.
2894  Also, you will find that some of the translations do not define shortcut
2895  keys for everything.
2896  Sometimes, there are simply not enough free letters to do it.
2897  Other times, the translator just hasn't got around to doing it yet.
2898  Our localization team, which you may wish to join,
2899 \begin_inset Foot
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903 If you are a fluent speaker of a language other than English, joining these
2904  teams is a great way to give back to the \SpecialChar LyX
2905  community!
2906 \end_layout
2907
2908 \end_inset
2909
2910  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2911 .
2912 \end_layout
2913
2914 \begin_layout Section
2915 Translating \SpecialChar LyX
2916
2917 \end_layout
2918
2919 \begin_layout Subsection
2920 Translating the graphical user interface (text messages).
2921 \end_layout
2922
2923 \begin_layout Standard
2924 \SpecialChar LyX
2925  uses the GNU 
2926 \begin_inset Flex Code
2927 status collapsed
2928
2929 \begin_layout Plain Layout
2930 gettext
2931 \end_layout
2932
2933 \end_inset
2934
2935  library to handle the internationalization of the interface.
2936  To have \SpecialChar LyX
2937  speak your favorite language in all menus and dialogs, you need
2938  a 
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 po
2944 \end_layout
2945
2946 \end_inset
2947
2948 -file for that language.
2949  When this is available, you'll have to generate a 
2950 \begin_inset Flex Code
2951 status collapsed
2952
2953 \begin_layout Plain Layout
2954 mo
2955 \end_layout
2956
2957 \end_inset
2958
2959 -file from it and install the 
2960 \begin_inset Flex Code
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964 mo
2965 \end_layout
2966
2967 \end_inset
2968
2969 -file.
2970  The process of doing all of this is explained in the documentation for
2971  GNU 
2972 \begin_inset Flex Code
2973 status collapsed
2974
2975 \begin_layout Plain Layout
2976 gettext
2977 \end_layout
2978
2979 \end_inset
2980
2981 .
2982  It is possible to do this just for yourself, but if you're going to do
2983  it, you might as well share the results of your labors with the rest of
2984  the \SpecialChar LyX
2985  community.
2986  Send a message to the \SpecialChar LyX
2987  developers' list for more information about how
2988  to proceed.
2989 \end_layout
2990
2991 \begin_layout Standard
2992 In short, this is what you should do (xx denotes the language code):
2993 \end_layout
2994
2995 \begin_layout Itemize
2996 Check out the \SpecialChar LyX
2997  source code.
2998  (See the 
2999 \begin_inset CommandInset href
3000 LatexCommand href
3001 name "information on the web"
3002 target "http://www.lyx.org/HowToUseSVN"
3003
3004 \end_inset
3005
3006 .)
3007 \end_layout
3008
3009 \begin_layout Itemize
3010 Copy the file 
3011 \begin_inset Flex Code
3012 status collapsed
3013
3014 \begin_layout Plain Layout
3015 lyx.pot
3016 \end_layout
3017
3018 \end_inset
3019
3020  to the folder of the 
3021 \begin_inset Flex Code
3022 status collapsed
3023
3024 \begin_layout Plain Layout
3025 **.po
3026 \end_layout
3027
3028 \end_inset
3029
3030  files.
3031  Then rename it to 
3032 \begin_inset Flex Code
3033 status collapsed
3034
3035 \begin_layout Plain Layout
3036 xx.po
3037 \end_layout
3038
3039 \end_inset
3040
3041 .
3042  (If 
3043 \begin_inset Flex Code
3044 status collapsed
3045
3046 \begin_layout Plain Layout
3047 lyx.pot
3048 \end_layout
3049
3050 \end_inset
3051
3052  doesn't exist anywhere, it can be remade with the console command 
3053 \begin_inset Flex Code
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057 make lyx.pot
3058 \end_layout
3059
3060 \end_inset
3061
3062  in that directory, or you can use an existing po-file for some other language
3063  as a template).
3064 \end_layout
3065
3066 \begin_layout Itemize
3067 Edit 
3068 \begin_inset Flex Code
3069 status collapsed
3070
3071 \begin_layout Plain Layout
3072 xx.po
3073 \end_layout
3074
3075 \end_inset
3076
3077 .
3078 \begin_inset Foot
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 This is just a text file, so it can be edited in any text editor.
3083  But there are also specialized programs that support such editing, such
3084  as 
3085 \family typewriter
3086 Poedit
3087 \family default
3088  (for all platforms) or 
3089 \family typewriter
3090 KBabel
3091 \family default
3092  (for KDE).
3093  
3094 \family typewriter
3095 Emacs
3096 \family default
3097  contains a `mode' for editing 
3098 \begin_inset Flex Code
3099 status collapsed
3100
3101 \begin_layout Plain Layout
3102 po
3103 \end_layout
3104
3105 \end_inset
3106
3107  files, as well.
3108 \end_layout
3109
3110 \end_inset
3111
3112  For some menu- and widget-labels, there are also shortcut keys that should
3113  be translated.
3114  Those keys are marked after a `|', and should be translated according to
3115  the words and phrases of the language.
3116  You should also fill also out the information at the beginning of the new
3117  
3118 \begin_inset Flex Code
3119 status collapsed
3120
3121 \begin_layout Plain Layout
3122 po
3123 \end_layout
3124
3125 \end_inset
3126
3127 -file with your email-address, etc., so people know where to reach you with
3128  suggestions and entertaining flames.
3129 \end_layout
3130
3131 \begin_layout Standard
3132 If you are just doing this on your own, then:
3133 \end_layout
3134
3135 \begin_layout Itemize
3136 Generate 
3137 \begin_inset Flex Code
3138 status collapsed
3139
3140 \begin_layout Plain Layout
3141 xx.mo
3142 \end_layout
3143
3144 \end_inset
3145
3146 .
3147  This can be done with 
3148 \begin_inset Flex Code
3149 status collapsed
3150
3151 \begin_layout Plain Layout
3152 msgfmt -o xx.mo < xx.po
3153 \end_layout
3154
3155 \end_inset
3156
3157 .
3158 \end_layout
3159
3160 \begin_layout Itemize
3161 Copy the 
3162 \begin_inset Flex Code
3163 status collapsed
3164
3165 \begin_layout Plain Layout
3166 mo
3167 \end_layout
3168
3169 \end_inset
3170
3171 -file to your locale-tree, at the correct directory for application messages
3172  for the language
3173 \series bold
3174  
3175 \series default
3176 xx, and under the name 
3177 \begin_inset Flex Code
3178 status collapsed
3179
3180 \begin_layout Plain Layout
3181 lyx.mo
3182 \end_layout
3183
3184 \end_inset
3185
3186  (e.
3187 \begin_inset space \thinspace{}
3188 \end_inset
3189
3190 g.
3191 \begin_inset space \space{}
3192 \end_inset
3193
3194
3195 \begin_inset Flex Code
3196 status collapsed
3197
3198 \begin_layout Plain Layout
3199 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3200 \end_layout
3201
3202 \end_inset
3203
3204
3205 \series bold
3206 .
3207 \end_layout
3208
3209 \begin_layout Standard
3210 As said, however, it would be best if the new 
3211 \begin_inset Flex Code
3212 status collapsed
3213
3214 \begin_layout Plain Layout
3215 po
3216 \end_layout
3217
3218 \end_inset
3219
3220 -file could be added to the \SpecialChar LyX
3221  distribution, so others can use it.
3222  Adding it involves making additional changes to \SpecialChar LyX
3223 .
3224  So send an email to the developers' mailing list if you're interested in
3225  doing that.
3226 \end_layout
3227
3228 \begin_layout Subsubsection
3229 Ambiguous messages
3230 \end_layout
3231
3232 \begin_layout Standard
3233 Sometimes it turns out that one English message needs to be translated into
3234  different messages in the target language.
3235  One example is the message 
3236 \begin_inset Flex Code
3237 status collapsed
3238
3239 \begin_layout Plain Layout
3240 To
3241 \end_layout
3242
3243 \end_inset
3244
3245  which has the German translation 
3246 \lang german
3247 Nach
3248 \lang english
3249  or 
3250 \lang german
3251 Bis
3252 \lang english
3253 , depending upon exactly what the English 
3254 \begin_inset Quotes eld
3255 \end_inset
3256
3257 to
3258 \begin_inset Quotes erd
3259 \end_inset
3260
3261  means.
3262  GNU 
3263 \begin_inset Flex Code
3264 status collapsed
3265
3266 \begin_layout Plain Layout
3267 gettext
3268 \end_layout
3269
3270 \end_inset
3271
3272  does not handle such ambiguous translations.
3273  Therefore you have to add some context information to the message: Instead
3274  of 
3275 \begin_inset Flex Code
3276 status collapsed
3277
3278 \begin_layout Plain Layout
3279 To
3280 \end_layout
3281
3282 \end_inset
3283
3284  it becomes 
3285 \begin_inset Flex Code
3286 status collapsed
3287
3288 \begin_layout Plain Layout
3289 To[[as in 'From format x to format y']]
3290 \end_layout
3291
3292 \end_inset
3293
3294  and 
3295 \begin_inset Flex Code
3296 status collapsed
3297
3298 \begin_layout Plain Layout
3299 To[[as in 'From page x to page y']].
3300 \end_layout
3301
3302 \end_inset
3303
3304  Now the two occurrences of 
3305 \begin_inset Flex Code
3306 status collapsed
3307
3308 \begin_layout Plain Layout
3309 To
3310 \end_layout
3311
3312 \end_inset
3313
3314  are different for 
3315 \begin_inset Flex Code
3316 status collapsed
3317
3318 \begin_layout Plain Layout
3319 gettext
3320 \end_layout
3321
3322 \end_inset
3323
3324  and can be translated correctly to 
3325 \lang german
3326 Nach
3327 \lang english
3328  and 
3329 \lang german
3330 Bis
3331 \lang english
3332 , respectively.
3333 \end_layout
3334
3335 \begin_layout Standard
3336 Of course the context information needs to be stripped off the original
3337  message when no translation is used.
3338  Therefore you have to put it in double square brackets at the end of the
3339  message (see the example above).
3340  The translation mechanism of \SpecialChar LyX
3341  ensures that everything in double square
3342  brackets at the end of messages is removed before displaying the message.
3343 \end_layout
3344
3345 \begin_layout Subsection
3346 Translating the documentation.
3347 \end_layout
3348
3349 \begin_layout Standard
3350 The online documentation (in the 
3351 \begin_inset Flex MenuItem
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355 Help
3356 \end_layout
3357
3358 \end_inset
3359
3360 -menu) can (and should!) be translated.
3361  If there are translated versions of the documentation available
3362 \begin_inset Foot
3363 status collapsed
3364
3365 \begin_layout Plain Layout
3366 As of March 2008, at least some of the documents have been translated into
3367  fourteen languages, with the Tutorial available in a few more.
3368 \end_layout
3369
3370 \end_inset
3371
3372  and the locale is set accordingly, these will be used automagically by
3373  \SpecialChar LyX
3374 .
3375  \SpecialChar LyX
3376  looks for translated versions as 
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 \SpecialChar LyX
3382 Dir/doc/xx/DocName.lyx
3383 \end_layout
3384
3385 \end_inset
3386
3387 , where 
3388 \begin_inset Flex Code
3389 status collapsed
3390
3391 \begin_layout Plain Layout
3392 xx
3393 \end_layout
3394
3395 \end_inset
3396
3397  is the code for the language currently in use.
3398  If there are no translated documents, the default English versions will
3399  be displayed.
3400  Note that the translated versions must have the same filenames (
3401 \begin_inset Flex Code
3402 status collapsed
3403
3404 \begin_layout Plain Layout
3405 DocName
3406 \end_layout
3407
3408 \end_inset
3409
3410  above) as the original.
3411  If you feel up to translating the documentation (an excellent way to proof-read
3412  the original documentation by the way!), there are a few things you should
3413  do right away:
3414 \end_layout
3415
3416 \begin_layout Itemize
3417 Check out the documentation translation web page at 
3418 \begin_inset CommandInset href
3419 LatexCommand href
3420 name "http://www.lyx.org/Translation"
3421 target "http://www.lyx.org/Translation"
3422
3423 \end_inset
3424
3425 .
3426  That way, you can find out which (if any) documents have already been translate
3427 d into your language.
3428  You can also find out who (if anyone) is organizing the effort to translate
3429  the documentation into your language.
3430  If no one is organizing the effort, please let us know that you're interested.
3431 \end_layout
3432
3433 \begin_layout Standard
3434 Once you get to actually translating, here's a few hints for you that may
3435  save you trouble:
3436 \end_layout
3437
3438 \begin_layout Itemize
3439 Join the documentation team! There is information on how to do that in 
3440 \begin_inset Flex Code
3441 status collapsed
3442
3443 \begin_layout Plain Layout
3444 Intro.lyx
3445 \end_layout
3446
3447 \end_inset
3448
3449  (
3450 \begin_inset Flex MenuItem
3451 status collapsed
3452
3453 \begin_layout Plain Layout
3454 Help\SpecialChar menuseparator
3455 Introduction
3456 \end_layout
3457
3458 \end_inset
3459
3460 ), which by the way is the first document you should translate.
3461 \end_layout
3462
3463 \begin_layout Itemize
3464 Learn the typographic conventions for the language you are translating to.
3465  Typography is an ancient art and over the centuries, a great variety of
3466  conventions have developed throughout different parts of the world.
3467  Also study the professional terminology amongst typographers in your country.
3468  Inventing your own terminology will only confuse the users.
3469  
3470 \emph on
3471 (Warning! Typography is addictive!)
3472 \end_layout
3473
3474 \begin_layout Itemize
3475 Make a copy of the document.
3476  This will be your working copy.
3477  You can use this as your personal translated help-file by placing it in
3478  your 
3479 \begin_inset Flex Code
3480 status collapsed
3481
3482 \begin_layout Plain Layout
3483 UserDir/doc/xx/
3484 \end_layout
3485
3486 \end_inset
3487
3488  directory.
3489 \end_layout
3490
3491 \begin_layout Itemize
3492 Sometimes the original document (from the \SpecialChar LyX
3493 -team) will be updated.
3494  Use the source viewer at 
3495 \begin_inset CommandInset href
3496 LatexCommand href
3497 name "http://www.lyx.org/trac/timeline"
3498 target "http://www.lyx.org/trac/timeline"
3499
3500 \end_inset
3501
3502  to see what has been changed.
3503  That way you can easily see which parts of the translated document need
3504  to be updated.
3505 \end_layout
3506
3507 \begin_layout Standard
3508 If you ever find an error in the original document, fix it and notify the
3509  rest of the documentation team of the changes! (You didn't forget to join
3510  the documentation team, did you?)
3511 \end_layout
3512
3513 \begin_layout Standard
3514 \begin_inset Branch OutDated
3515 status collapsed
3516
3517 \begin_layout Section
3518 International Keyboard Support
3519 \end_layout
3520
3521 \begin_layout Standard
3522
3523 \emph on
3524 [Editor's Note: The following section is by
3525 \emph default
3526  
3527 \shape smallcaps
3528 \emph on
3529 Ivan Schreter
3530 \shape default
3531 .
3532  It needs to be fixed to conform to the new Documentation Style sheet and
3533  to make use of the new v1.0 features.
3534  The whole thing also needs to be merged with the section following it.-jw
3535  It may also be badly out of date.-rh (2008)]
3536 \end_layout
3537
3538 \begin_layout Subsection
3539 Defining Own Keymaps: Keymap File Format
3540 \end_layout
3541
3542 \begin_layout Standard
3543 Let's look at a keyboard definition file a little closer.
3544  It is a plain text file defining
3545 \end_layout
3546
3547 \begin_layout Itemize
3548 key-to-key or key-to-string translations
3549 \end_layout
3550
3551 \begin_layout Itemize
3552 dead keys
3553 \end_layout
3554
3555 \begin_layout Itemize
3556 dead keys exceptions
3557 \end_layout
3558
3559 \begin_layout Standard
3560 To define key-to-key or key-to-string translation, use this command:
3561 \end_layout
3562
3563 \begin_layout Quotation
3564 \begin_inset Flex Code
3565 status collapsed
3566
3567 \begin_layout Plain Layout
3568
3569 \backslash
3570 kmap
3571 \end_layout
3572
3573 \end_inset
3574
3575  
3576 \begin_inset Flex Code
3577 status collapsed
3578
3579 \begin_layout Plain Layout
3580 key
3581 \end_layout
3582
3583 \end_inset
3584
3585  outstring 
3586 \end_layout
3587
3588 \begin_layout Standard
3589 where 
3590 \begin_inset Flex Code
3591 status collapsed
3592
3593 \begin_layout Plain Layout
3594 key
3595 \end_layout
3596
3597 \end_inset
3598
3599  is the key to be translated and 
3600 \begin_inset Flex Code
3601 status collapsed
3602
3603 \begin_layout Plain Layout
3604 outstring
3605 \end_layout
3606
3607 \end_inset
3608
3609  is the string to be inserted into the document.
3610  To define dead keys, use:
3611 \end_layout
3612
3613 \begin_layout Quotation
3614 \begin_inset Flex Code
3615 status collapsed
3616
3617 \begin_layout Plain Layout
3618
3619 \backslash
3620 kmod
3621 \end_layout
3622
3623 \end_inset
3624
3625  
3626 \begin_inset Flex Code
3627 status collapsed
3628
3629 \begin_layout Plain Layout
3630 key
3631 \end_layout
3632
3633 \end_inset
3634
3635  deadkey
3636 \end_layout
3637
3638 \begin_layout Standard
3639 where 
3640 \begin_inset Flex Code
3641 status collapsed
3642
3643 \begin_layout Plain Layout
3644 key
3645 \end_layout
3646
3647 \end_inset
3648
3649  is a keyboard key and 
3650 \begin_inset Flex Code
3651 status collapsed
3652
3653 \begin_layout Plain Layout
3654 deadkey
3655 \end_layout
3656
3657 \end_inset
3658
3659  is dead key name.
3660  The following dead keys are supported (shortcut name is in parentheses):
3661 \end_layout
3662
3663 \begin_layout Quotation
3664
3665 \emph on
3666 Name
3667 \begin_inset space \hfill{}
3668 \end_inset
3669
3670 Example
3671 \end_layout
3672
3673 \begin_layout Quotation
3674 acute (acu)
3675 \begin_inset space \hfill{}
3676 \end_inset
3677
3678 áéíóú
3679 \end_layout
3680
3681 \begin_layout Quotation
3682 grave (gra)
3683 \begin_inset space \hfill{}
3684 \end_inset
3685
3686 àèìòù
3687 \end_layout
3688
3689 \begin_layout Quotation
3690 macron (mac)
3691 \begin_inset space \hfill{}
3692 \end_inset
3693
3694  ō
3695 \end_layout
3696
3697 \begin_layout Quotation
3698 tilde (til)
3699 \begin_inset space \hfill{}
3700 \end_inset
3701
3702 ñÑ
3703 \end_layout
3704
3705 \begin_layout Quotation
3706 underbar (underb)
3707 \begin_inset space \hfill{}
3708 \end_inset
3709
3710
3711 \begin_inset ERT
3712 status open
3713
3714 \begin_layout Plain Layout
3715
3716
3717 \backslash
3718 b o
3719 \end_layout
3720
3721 \end_inset
3722
3723
3724 \end_layout
3725
3726 \begin_layout Quotation
3727 cedilla (ced)
3728 \begin_inset space \hfill{}
3729 \end_inset
3730
3731 çÇ
3732 \end_layout
3733
3734 \begin_layout Quotation
3735 underdot (underd)
3736 \begin_inset space \hfill{}
3737 \end_inset
3738
3739
3740 \begin_inset ERT
3741 status open
3742
3743 \begin_layout Plain Layout
3744
3745
3746 \backslash
3747 d o
3748 \end_layout
3749
3750 \end_inset
3751
3752
3753 \end_layout
3754
3755 \begin_layout Quotation
3756 circumflex (circu)
3757 \begin_inset space \hfill{}
3758 \end_inset
3759
3760 âêîôû
3761 \end_layout
3762
3763 \begin_layout Quotation
3764 circle (circl)
3765 \begin_inset space \hfill{}
3766 \end_inset
3767
3768 ÅůŮ
3769 \end_layout
3770
3771 \begin_layout Quotation
3772 tie (tie)
3773 \begin_inset space \hfill{}
3774 \end_inset
3775
3776
3777 \begin_inset ERT
3778 status open
3779
3780 \begin_layout Plain Layout
3781
3782
3783 \backslash
3784 t o
3785 \end_layout
3786
3787 \end_inset
3788
3789
3790 \end_layout
3791
3792 \begin_layout Quotation
3793 breve (bre)
3794 \begin_inset space \hfill{}
3795 \end_inset
3796
3797 ă
3798 \begin_inset ERT
3799 status open
3800
3801 \begin_layout Plain Layout
3802
3803
3804 \backslash
3805 u o
3806 \end_layout
3807
3808 \end_inset
3809
3810
3811 \end_layout
3812
3813 \begin_layout Quotation
3814 caron (car)
3815 \begin_inset space \hfill{}
3816 \end_inset
3817
3818 čšž
3819 \end_layout
3820
3821 \begin_layout Quotation
3822 hungarian umlaut (hug)
3823 \begin_inset space \hfill{}
3824 \end_inset
3825
3826 őű
3827 \end_layout
3828
3829 \begin_layout Quotation
3830 umlaut (uml)
3831 \begin_inset space \hfill{}
3832 \end_inset
3833
3834 äöü
3835 \end_layout
3836
3837 \begin_layout Quotation
3838 dot (dot)
3839 \begin_inset space \hfill{}
3840 \end_inset
3841
3842 ż
3843 \begin_inset ERT
3844 status open
3845
3846 \begin_layout Plain Layout
3847
3848
3849 \backslash
3850 .s
3851 \end_layout
3852
3853 \end_inset
3854
3855
3856 \end_layout
3857
3858 \begin_layout Standard
3859 Since in many international keyboards there are exceptions to what some
3860  dead keys should do, you can define them using
3861 \end_layout
3862
3863 \begin_layout Quotation
3864 \begin_inset Flex Code
3865 status collapsed
3866
3867 \begin_layout Plain Layout
3868
3869 \backslash
3870 kxmod
3871 \end_layout
3872
3873 \end_inset
3874
3875  deadkey key outstring
3876 \end_layout
3877
3878 \begin_layout Standard
3879 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3880 , so you put in
3881 \end_layout
3882
3883 \begin_layout Quotation
3884 \begin_inset Flex Code
3885 status collapsed
3886
3887 \begin_layout Plain Layout
3888
3889 \backslash
3890 kxmod
3891 \end_layout
3892
3893 \end_inset
3894
3895  caron o "
3896 \backslash
3897 ^o"
3898 \end_layout
3899
3900 \begin_layout Standard
3901 to make it work correctly.
3902  Also, you have to define as exceptions dead keys over i and j, to remove
3903  the dot from them before inserting an accent mark.
3904  I will change this when the time comes, but so far I haven't had time.
3905 \end_layout
3906
3907 \begin_layout Standard
3908 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3909  double backslash.
3910  Also, quotes and 
3911 \begin_inset Flex Code
3912 status collapsed
3913
3914 \begin_layout Plain Layout
3915 #
3916 \end_layout
3917
3918 \end_inset
3919
3920  have different meaning.
3921  
3922 \begin_inset Flex Code
3923 status collapsed
3924
3925 \begin_layout Plain Layout
3926 #
3927 \end_layout
3928
3929 \end_inset
3930
3931  marks comments, quotes start and end \SpecialChar LaTeX
3932 -style commands.
3933  To enter quote, you'll need to use 
3934 \begin_inset Flex Code
3935 status collapsed
3936
3937 \begin_layout Plain Layout
3938
3939 \backslash
3940 "
3941 \end_layout
3942
3943 \end_inset
3944
3945 , to enter 
3946 \begin_inset Flex Code
3947 status collapsed
3948
3949 \begin_layout Plain Layout
3950 #
3951 \end_layout
3952
3953 \end_inset
3954
3955 , use 
3956 \begin_inset Flex Code
3957 status collapsed
3958
3959 \begin_layout Plain Layout
3960
3961 \backslash
3962 #
3963 \end_layout
3964
3965 \end_inset
3966
3967 .
3968 \end_layout
3969
3970 \begin_layout Standard
3971 If you make a keyboard description file that works for your language, please
3972  mail it to me, so I can include it in the next keymap distribution.
3973 \end_layout
3974
3975 \begin_layout Standard
3976 More keywords will be supported in keymap configuration file in future,
3977  like
3978 \end_layout
3979
3980 \begin_layout Itemize
3981 \begin_inset Flex Code
3982 status collapsed
3983
3984 \begin_layout Plain Layout
3985
3986 \backslash
3987 kinclude filename
3988 \end_layout
3989
3990 \end_inset
3991
3992
3993 \emph on
3994
3995 \begin_inset space \hfill{}
3996 \end_inset
3997
3998
3999 \begin_inset Flex Code
4000 status collapsed
4001
4002 \begin_layout Plain Layout
4003 include
4004 \end_layout
4005
4006 \end_inset
4007
4008  another file
4009 \end_layout
4010
4011 \begin_layout Itemize
4012 \begin_inset Flex Code
4013 status collapsed
4014
4015 \begin_layout Plain Layout
4016
4017 \backslash
4018 kprog program
4019 \end_layout
4020
4021 \end_inset
4022
4023
4024 \emph on
4025
4026 \begin_inset space \hfill{}
4027 \end_inset
4028
4029
4030 \begin_inset Flex Code
4031 status collapsed
4032
4033 \begin_layout Plain Layout
4034 define
4035 \end_layout
4036
4037 \end_inset
4038
4039  an external keymap translation program 
4040 \end_layout
4041
4042 \begin_layout Standard
4043 Also, it should look into 
4044 \begin_inset Flex Code
4045 status collapsed
4046
4047 \begin_layout Plain Layout
4048 lyxrc
4049 \end_layout
4050
4051 \end_inset
4052
4053  file for defaults, too (for example, a 
4054 \begin_inset Flex Code
4055 status collapsed
4056
4057 \begin_layout Plain Layout
4058
4059 \backslash
4060 kinclude
4061 \end_layout
4062
4063 \end_inset
4064
4065  option to include default keyboard).
4066 \end_layout
4067
4068 \end_inset
4069
4070
4071 \end_layout
4072
4073 \begin_layout Section
4074 International Keymap Stuff
4075 \begin_inset CommandInset label
4076 LatexCommand label
4077 name "sec:International-Keymap-Stuff"
4078
4079 \end_inset
4080
4081
4082 \end_layout
4083
4084 \begin_layout Standard
4085 \begin_inset Note Note
4086 status open
4087
4088 \begin_layout Plain Layout
4089 In doing the revisions on this document in March 2008, I did not look over
4090  this stuff, as I do not understand it.
4091  It would be good if someone else could do so.
4092  (RH)
4093 \end_layout
4094
4095 \end_inset
4096
4097
4098 \end_layout
4099
4100 \begin_layout Standard
4101 The next two sections describe the 
4102 \begin_inset Flex Code
4103 status collapsed
4104
4105 \begin_layout Plain Layout
4106
4107 \shape up
4108 .kmap
4109 \end_layout
4110
4111 \end_inset
4112
4113  and 
4114 \begin_inset Flex Code
4115 status collapsed
4116
4117 \begin_layout Plain Layout
4118
4119 \shape up
4120 .cdef
4121 \end_layout
4122
4123 \end_inset
4124
4125  file syntax in detail.
4126  These sections should help you design your own key map if the ones provided
4127  do not meet your needs.
4128 \end_layout
4129
4130 \begin_layout Subsection
4131 The .kmap File
4132 \end_layout
4133
4134 \begin_layout Standard
4135
4136 \shape up
4137 .
4138 \begin_inset Flex Code
4139 status collapsed
4140
4141 \begin_layout Plain Layout
4142 kmap
4143 \end_layout
4144
4145 \end_inset
4146
4147  file maps keystrokes to characters or strings.
4148  As the name suggests, it sets a keyboard mapping.
4149  The 
4150 \begin_inset Flex Code
4151 status collapsed
4152
4153 \begin_layout Plain Layout
4154 .kmap
4155 \end_layout
4156
4157 \end_inset
4158
4159
4160 \shape default
4161  file keywords 
4162 \shape up
4163
4164 \begin_inset Flex Code
4165 status collapsed
4166
4167 \begin_layout Plain Layout
4168
4169 \shape up
4170 kmap
4171 \end_layout
4172
4173 \end_inset
4174
4175
4176 \shape default
4177 ,
4178 \shape up
4179  
4180 \shape default
4181
4182 \begin_inset Flex Code
4183 status collapsed
4184
4185 \begin_layout Plain Layout
4186
4187 \shape up
4188 kmod
4189 \end_layout
4190
4191 \end_inset
4192
4193 ,
4194 \shape up
4195  
4196 \shape default
4197
4198 \begin_inset Flex Code
4199 status collapsed
4200
4201 \begin_layout Plain Layout
4202
4203 \shape up
4204 kxmod
4205 \end_layout
4206
4207 \end_inset
4208
4209 , and 
4210 \begin_inset Flex Code
4211 status collapsed
4212
4213 \begin_layout Plain Layout
4214
4215 \shape up
4216 kcomb
4217 \end_layout
4218
4219 \end_inset
4220
4221  are described in this section.
4222 \end_layout
4223
4224 \begin_layout Labeling
4225 \labelwidthstring 00.00.0000
4226 \begin_inset Flex Code
4227 status collapsed
4228
4229 \begin_layout Plain Layout
4230
4231 \shape up
4232 kmap
4233 \end_layout
4234
4235 \end_inset
4236
4237  Map a character to a string
4238 \end_layout
4239
4240 \begin_layout LyX-Code
4241
4242 \backslash
4243 kmap 
4244 \family roman
4245 \emph on
4246 char
4247 \family default
4248 \emph default
4249  
4250 \family roman
4251 \emph on
4252 string
4253 \end_layout
4254
4255 \begin_layout Standard
4256 This will ma
4257 \family roman
4258 p
4259 \family default
4260  
4261 \family roman
4262 \emph on
4263 char
4264 \family default
4265 \emph default
4266  
4267 \family roman
4268 to
4269 \family default
4270  
4271 \family roman
4272 \emph on
4273 string
4274 \emph default
4275 .
4276  Note that in
4277 \family default
4278  
4279 \family roman
4280 \emph on
4281 string
4282 \emph default
4283 ,
4284 \family default
4285  
4286 \family roman
4287 \shape up
4288 the double-quote (")
4289 \family default
4290 \shape default
4291  
4292 \family roman
4293 and
4294 \family default
4295  
4296 \family roman
4297 \shape up
4298 the backslash (
4299 \backslash
4300 )
4301 \family default
4302 \shape default
4303  
4304 \family roman
4305 must be escaped with a preceding backslash (
4306 \shape up
4307
4308 \backslash
4309
4310 \shape default
4311 )
4312 \family default
4313 .
4314 \end_layout
4315
4316 \begin_layout Standard
4317 An example of a 
4318 \begin_inset Flex MenuItem
4319 status collapsed
4320
4321 \begin_layout Plain Layout
4322
4323 \shape up
4324 kmap
4325 \end_layout
4326
4327 \end_inset
4328
4329  statement to cause the symbol 
4330 \begin_inset Flex MenuItem
4331 status collapsed
4332
4333 \begin_layout Plain Layout
4334
4335 \shape up
4336 /
4337 \end_layout
4338
4339 \end_inset
4340
4341  to be output for the keystroke 
4342 \begin_inset Flex MenuItem
4343 status collapsed
4344
4345 \begin_layout Plain Layout
4346
4347 \shape up
4348 &
4349 \end_layout
4350
4351 \end_inset
4352
4353  is:
4354 \end_layout
4355
4356 \begin_layout LyX-Code
4357
4358 \backslash
4359 kmap & /
4360 \end_layout
4361
4362 \begin_layout Labeling
4363 \labelwidthstring 00.00.0000
4364 \begin_inset Flex Code
4365 status collapsed
4366
4367 \begin_layout Plain Layout
4368
4369 \shape up
4370 kmod
4371 \end_layout
4372
4373 \end_inset
4374
4375  Specify an accent character
4376 \end_layout
4377
4378 \begin_layout LyX-Code
4379
4380 \backslash
4381 kmod 
4382 \family roman
4383 \emph on
4384 char accent allowed
4385 \end_layout
4386
4387 \begin_layout Standard
4388 This will make the cha
4389 \family roman
4390 racter
4391 \family default
4392  
4393 \family roman
4394 \emph on
4395 char
4396 \family default
4397 \emph default
4398  
4399 \family roman
4400 \shape up
4401 \emph on
4402 be an accent
4403 \family default
4404 \shape default
4405 \emph default
4406  
4407 \family roman
4408 \shape up
4409 on the
4410 \family default
4411 \shape default
4412  
4413 \family roman
4414 \shape up
4415 \emph on
4416 allowed
4417 \family default
4418 \shape default
4419 \emph default
4420  
4421 \family roman
4422 \shape up
4423 cha
4424 \family default
4425 racter(s).
4426  This is the dead key
4427 \begin_inset Foot
4428 status collapsed
4429
4430 \begin_layout Plain Layout
4431 The term 
4432 \family roman
4433 \emph on
4434 dead key
4435 \family default
4436 \emph default
4437  refers to a key that does not produce a character by itself, but when followed
4438  with another key, produces the desired accent character.
4439  For example, a German characte
4440 \family roman
4441 r with an umlaut like
4442 \family default
4443  
4444 \family roman
4445 \emph on
4446 ä
4447 \family default
4448 \emph default
4449  
4450 \family roman
4451 can be produced in this manner.
4452 \end_layout
4453
4454 \end_inset
4455
4456  mechanism.
4457  
4458 \end_layout
4459
4460 \begin_layout Standard
4461 If you 
4462 \family roman
4463 hit
4464 \family default
4465  
4466 \family roman
4467 \emph on
4468 char
4469 \family default
4470 \emph default
4471  
4472 \family roman
4473 and then another key not in
4474 \family default
4475  
4476 \family roman
4477 \emph on
4478 allowed
4479 \emph default
4480 , you will get a
4481 \family default
4482  
4483 \family roman
4484 \emph on
4485 char
4486 \family default
4487 \emph default
4488  
4489 \family roman
4490 followed by the other, not allowed key, as output.
4491
4492 \family default
4493  Note that a 
4494 \begin_inset Flex MenuItem
4495 status collapsed
4496
4497 \begin_layout Plain Layout
4498
4499 \shape up
4500 Backspace
4501 \end_layout
4502
4503 \end_inset
4504
4505  cancels a dead key, so if 
4506 \family roman
4507 you hit
4508 \family default
4509  
4510 \family roman
4511 \emph on
4512 char
4513 \family default
4514 \emph default
4515  
4516 \begin_inset Flex MenuItem
4517 status collapsed
4518
4519 \begin_layout Plain Layout
4520
4521 \shape up
4522 \emph on
4523 Backspace
4524 \end_layout
4525
4526 \end_inset
4527
4528 , the cursor will not go one position backwards but will instead cancel
4529  the effect t
4530 \family roman
4531 hat
4532 \family default
4533  
4534 \family roman
4535 \shape up
4536 \emph on
4537 char
4538 \family default
4539 \shape default
4540 \emph default
4541  
4542 \family roman
4543 \shape up
4544 might have had on the next keystroke.
4545  
4546 \end_layout
4547
4548 \begin_layout Standard
4549 The following example specifies that the character ' is to be an acute accent,
4550  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4551 \end_layout
4552
4553 \begin_layout LyX-Code
4554
4555 \backslash
4556 kmod ' acute aeiouAEIOU
4557 \end_layout
4558
4559 \begin_layout Labeling
4560 \labelwidthstring 00.00.0000
4561 \begin_inset Flex Code
4562 status collapsed
4563
4564 \begin_layout Plain Layout
4565 kxmod
4566 \end_layout
4567
4568 \end_inset
4569
4570  Specify an exception to the accent character
4571 \end_layout
4572
4573 \begin_layout LyX-Code
4574
4575 \backslash
4576 kxmod  
4577 \family roman
4578 \emph on
4579 accent char result
4580 \end_layout
4581
4582 \begin_layout Standard
4583 This defines an exce
4584 \family roman
4585 ption for
4586 \family default
4587  
4588 \family roman
4589 \emph on
4590 accent
4591 \family default
4592 \emph default
4593  
4594 \family roman
4595 on
4596 \family default
4597  
4598 \family roman
4599 \emph on
4600 char
4601 \emph default
4602 .
4603  T
4604 \shape up
4605 he
4606 \family default
4607 \shape default
4608  
4609 \family roman
4610 \shape up
4611 \emph on
4612 accent
4613 \family default
4614 \shape default
4615 \emph default
4616  
4617 \family roman
4618 \shape up
4619 must
4620 \family default
4621 \shape default
4622  
4623 \shape up
4624 have been assigned a keystroke with a previous
4625 \shape default
4626  
4627 \begin_inset Flex Code
4628 status collapsed
4629
4630 \begin_layout Plain Layout
4631
4632 \shape up
4633
4634 \backslash
4635 kmo
4636 \shape default
4637 d
4638 \end_layout
4639
4640 \end_inset
4641
4642  declar
4643 \family roman
4644 ation and
4645 \family default
4646  
4647 \family roman
4648 \emph on
4649 char
4650 \family default
4651 \emph default
4652  
4653 \family roman
4654 must not belong in the
4655 \family default
4656  
4657 \family roman
4658 \emph on
4659 allowed
4660 \family default
4661 \emph default
4662  
4663 \family roman
4664 set of
4665 \family default
4666  
4667 \family roman
4668 \emph on
4669 accent
4670 \emph default
4671 .
4672  When
4673 \family default
4674  
4675 \family roman
4676 \shape up
4677 you enter the
4678 \family default
4679 \shape default
4680  
4681 \family roman
4682 \shape up
4683 \emph on
4684 accent char
4685 \family default
4686 \shape default
4687 \emph default
4688  
4689 \family roman
4690 \shape up
4691 sequence,
4692 \family default
4693 \shape default
4694  
4695 \family roman
4696 \shape up
4697 \emph on
4698 result
4699 \emph default
4700  is produced.
4701  If such a declaration does not exist in
4702 \family default
4703 \shape default
4704  
4705 \shape up
4706 the
4707 \shape default
4708  
4709 \begin_inset Flex Code
4710 status collapsed
4711
4712 \begin_layout Plain Layout
4713
4714 \shape up
4715 .kmap
4716 \end_layout
4717
4718 \end_inset
4719
4720  file and yo
4721 \family roman
4722 u enter
4723 \family default
4724  
4725 \family roman
4726 \emph on
4727 accent char
4728 \emph default
4729 , you get
4730 \family default
4731  
4732 \family roman
4733 \emph on
4734 accent_key char
4735 \emph default
4736  where
4737 \family default
4738  
4739 \family roman
4740 \emph on
4741 accent_key
4742 \emph default
4743  is the first arg
4744 \family default
4745 ument of the 
4746 \begin_inset Flex Code
4747 status collapsed
4748
4749 \begin_layout Plain Layout
4750
4751 \shape up
4752
4753 \backslash
4754 kmod
4755 \end_layout
4756
4757 \end_inset
4758
4759  declaration.
4760  
4761 \end_layout
4762
4763 \begin_layout Standard
4764 The following command produces causes äi to be produced when you enter acute-i
4765  ('i):
4766 \end_layout
4767
4768 \begin_layout LyX-Code
4769
4770 \backslash
4771 kxmod acute i "
4772 \backslash
4773
4774 \backslash
4775 '{
4776 \backslash
4777
4778 \backslash
4779 i}"
4780 \end_layout
4781
4782 \begin_layout Labeling
4783 \labelwidthstring 00.00.0000
4784 \begin_inset Flex Code
4785 status collapsed
4786
4787 \begin_layout Plain Layout
4788 kcomb
4789 \end_layout
4790
4791 \end_inset
4792
4793  Combine two accent characters
4794 \end_layout
4795
4796 \begin_layout LyX-Code
4797
4798 \backslash
4799 kcomb 
4800 \family roman
4801 \emph on
4802 accent1 accent2 allowed
4803 \end_layout
4804
4805 \begin_layout Standard
4806 This one is getting pretty esoteric.
4807  It allows you to combine the effect 
4808 \family roman
4809 of
4810 \family default
4811  
4812 \family roman
4813 \emph on
4814 accent1
4815 \family default
4816 \emph default
4817  
4818 \family roman
4819 and
4820 \family default
4821  
4822 \family roman
4823 \emph on
4824 accent2
4825 \family default
4826 \emph default
4827  
4828 \family roman
4829 (in that order!) on
4830 \family default
4831  
4832 \family roman
4833 \emph on
4834 allowed
4835 \family default
4836 \emph default
4837  
4838 \family roman
4839 chars.
4840  The keystrokes for
4841 \family default
4842  
4843 \family roman
4844 \emph on
4845 accent1
4846 \family default
4847 \emph default
4848  
4849 \family roman
4850 and
4851 \family default
4852  
4853 \family roman
4854 \emph on
4855 accent2
4856 \family default
4857 \emph default
4858  
4859 \family roman
4860 must have be
4861 \family default
4862 en set with a 
4863 \begin_inset Flex Code
4864 status collapsed
4865
4866 \begin_layout Plain Layout
4867
4868 \shape up
4869
4870 \backslash
4871 kmod
4872 \end_layout
4873
4874 \end_inset
4875
4876  command at 
4877 \family roman
4878 a
4879 \family default
4880  
4881 \family roman
4882 \emph on
4883 previous
4884 \family default
4885 \emph default
4886  
4887 \family roman
4888 point in the
4889 \family default
4890  file.
4891  
4892 \end_layout
4893
4894 \begin_layout Standard
4895 Consider this example from the 
4896 \begin_inset Flex Code
4897 status collapsed
4898
4899 \begin_layout Plain Layout
4900
4901 \shape up
4902 greek.kmap
4903 \end_layout
4904
4905 \end_inset
4906
4907  file:
4908 \end_layout
4909
4910 \begin_layout LyX-Code
4911
4912 \backslash
4913 kmod ; acute aeioyvhAEIOYVH 
4914 \backslash
4915 kmod : umlaut iyIY 
4916 \backslash
4917 kcomb acute umlaut iyIY
4918 \end_layout
4919
4920 \begin_layout Standard
4921 This allows you to press 
4922 \begin_inset Flex MenuItem
4923 status collapsed
4924
4925 \begin_layout Plain Layout
4926
4927 \shape up
4928 ;:i
4929 \end_layout
4930
4931 \end_inset
4932
4933  and get the effect of 
4934 \begin_inset Flex Code
4935 status collapsed
4936
4937 \begin_layout Plain Layout
4938
4939 \shape up
4940
4941 \backslash
4942 '{
4943 \backslash
4944 "{i}}
4945 \end_layout
4946
4947 \end_inset
4948
4949 .
4950  
4951 \family roman
4952 \shape up
4953 A backspace
4954 \family default
4955 \shape default
4956  in this case cancels the last dead key, so if you press 
4957 \begin_inset Flex MenuItem
4958 status collapsed
4959
4960 \begin_layout Plain Layout
4961
4962 \shape up
4963 ;: Backspace i
4964 \end_layout
4965
4966 \end_inset
4967
4968  you get 
4969 \begin_inset Flex Code
4970 status collapsed
4971
4972 \begin_layout Plain Layout
4973
4974 \shape up
4975
4976 \backslash
4977 '{i}
4978 \end_layout
4979
4980 \end_inset
4981
4982 .
4983 \end_layout
4984
4985 \begin_layout Subsection
4986 The .cdef File
4987 \end_layout
4988
4989 \begin_layout Standard
4990 After the 
4991 \begin_inset Flex Code
4992 status collapsed
4993
4994 \begin_layout Plain Layout
4995
4996 \shape up
4997 .kmap
4998 \end_layout
4999
5000 \end_inset
5001
5002  mapping is performed, a 
5003 \begin_inset Flex Code
5004 status collapsed
5005
5006 \begin_layout Plain Layout
5007
5008 \shape up
5009 .cde
5010 \shape default
5011 f
5012 \end_layout
5013
5014 \end_inset
5015
5016  file maps the strings that the symbols generate to characters in the current
5017  font.
5018  The \SpecialChar LyX
5019  distribution currently includes at least the 
5020 \begin_inset Flex Code
5021 status collapsed
5022
5023 \begin_layout Plain Layout
5024
5025 \shape up
5026 iso8859-1.cdef
5027 \end_layout
5028
5029 \end_inset
5030
5031  and 
5032 \begin_inset Flex Code
5033 status collapsed
5034
5035 \begin_layout Plain Layout
5036
5037 \shape up
5038 iso8859-2.cdef
5039 \end_layout
5040
5041 \end_inset
5042
5043  files.
5044 \end_layout
5045
5046 \begin_layout Standard
5047 In general the 
5048 \begin_inset Flex Code
5049 status collapsed
5050
5051 \begin_layout Plain Layout
5052
5053 \shape up
5054 .cdef
5055 \end_layout
5056
5057 \end_inset
5058
5059  file is a sequence of declarations of the form
5060 \end_layout
5061
5062 \begin_layout LyX-Code
5063
5064 \family roman
5065 \emph on
5066 char_index_in_set
5067 \family default
5068 \emph default
5069  
5070 \family roman
5071 \emph on
5072  string
5073 \end_layout
5074
5075 \begin_layout Standard
5076 For example, in order to map 
5077 \begin_inset Flex MenuItem
5078 status collapsed
5079
5080 \begin_layout Plain Layout
5081
5082 \shape up
5083
5084 \backslash
5085 '{e}
5086 \end_layout
5087
5088 \end_inset
5089
5090  to the corresponding character in the iso-8859-1 set (233), the following
5091  declaration is used
5092 \end_layout
5093
5094 \begin_layout LyX-Code
5095 233 "
5096 \backslash
5097
5098 \backslash
5099 '{e}"
5100 \end_layout
5101
5102 \begin_layout Standard
5103 with 
5104 \begin_inset Flex Code
5105 status collapsed
5106
5107 \begin_layout Plain Layout
5108
5109 \backslash
5110
5111 \end_layout
5112
5113 \end_inset
5114
5115  and 
5116 \begin_inset Flex Code
5117 status collapsed
5118
5119 \begin_layout Plain Layout
5120 "
5121 \end_layout
5122
5123 \end_inset
5124
5125  being escap
5126 \family roman
5127 ed in
5128 \family default
5129  
5130 \family roman
5131 \emph on
5132 string
5133 \emph default
5134 .
5135  Note that
5136 \family default
5137  the same character can apply to more than one string.
5138  In the 
5139 \begin_inset Flex Code
5140 status collapsed
5141
5142 \begin_layout Plain Layout
5143 i
5144 \shape up
5145 so-8859-7.cdef
5146 \end_layout
5147
5148 \end_inset
5149
5150  file you have
5151 \end_layout
5152
5153 \begin_layout LyX-Code
5154 192 "
5155 \backslash
5156
5157 \backslash
5158 '{
5159 \backslash
5160
5161 \backslash
5162
5163 \backslash
5164 "{i}}"
5165 \begin_inset Newline newline
5166 \end_inset
5167
5168 192 "
5169 \backslash
5170
5171 \backslash
5172
5173 \backslash
5174 "{
5175 \backslash
5176
5177 \backslash
5178 '{i}}"
5179 \end_layout
5180
5181 \begin_layout Standard
5182 If \SpecialChar LyX
5183  cannot find a mapping for the string produced by the keystroke or a
5184  deadkey sequence, it will check if it looks like an accented char and try
5185  to draw an accent over the character on screen.
5186 \end_layout
5187
5188 \begin_layout Subsection
5189 Dead Keys
5190 \end_layout
5191
5192 \begin_layout Standard
5193 There is a second way to add support for international characters through
5194  so-called dead-keys.
5195  A dead-key works in combination with a letter to produce an accented character.
5196  Here, we'll explain how to create a really simple dead-key to illustrate
5197  how they work.
5198 \end_layout
5199
5200 \begin_layout Standard
5201 Suppose you happen to need the circumflex character, 
5202 \begin_inset Quotes eld
5203 \end_inset
5204
5205  ̂
5206 \begin_inset Quotes erd
5207 \end_inset
5208
5209 .
5210  You could bind the 
5211 \begin_inset Flex MenuItem
5212 status collapsed
5213
5214 \begin_layout Plain Layout
5215 ^
5216 \end_layout
5217
5218 \end_inset
5219
5220 -key [a.k.a.
5221 \begin_inset space ~
5222 \end_inset
5223
5224
5225 \begin_inset Flex MenuItem
5226 status collapsed
5227
5228 \begin_layout Plain Layout
5229 Shift-6
5230 \end_layout
5231
5232 \end_inset
5233
5234 ] to the \SpecialChar LyX
5235  command 
5236 \begin_inset Flex Code
5237 status collapsed
5238
5239 \begin_layout Plain Layout
5240 accent-circumflex
5241 \end_layout
5242
5243 \end_inset
5244
5245  in your 
5246 \begin_inset Flex Code
5247 status collapsed
5248
5249 \begin_layout Plain Layout
5250 lyxrc
5251 \end_layout
5252
5253 \end_inset
5254
5255  file.
5256  Now, whenever you type the 
5257 \begin_inset Flex MenuItem
5258 status collapsed
5259
5260 \begin_layout Plain Layout
5261 ^
5262 \end_layout
5263
5264 \end_inset
5265
5266 -key followed by a letter, that letter will have a circumflex accent on
5267  it.
5268  For example, the sequence 
5269 \begin_inset Quotes eld
5270 \end_inset
5271
5272
5273 \begin_inset Flex MenuItem
5274 status collapsed
5275
5276 \begin_layout Plain Layout
5277 ^e
5278 \end_layout
5279
5280 \end_inset
5281
5282
5283 \begin_inset Quotes erd
5284 \end_inset
5285
5286  produces the letter: 
5287 \begin_inset Quotes eld
5288 \end_inset
5289
5290 ê
5291 \begin_inset Quotes erd
5292 \end_inset
5293
5294 .
5295  If you tried to type 
5296 \begin_inset Quotes eld
5297 \end_inset
5298
5299
5300 \begin_inset Flex MenuItem
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304 ^t
5305 \end_layout
5306
5307 \end_inset
5308
5309
5310 \begin_inset Quotes erd
5311 \end_inset
5312
5313 , however, \SpecialChar LyX
5314  will complain with a beep, since a 
5315 \begin_inset Quotes eld
5316 \end_inset
5317
5318
5319 \begin_inset Flex MenuItem
5320 status collapsed
5321
5322 \begin_layout Plain Layout
5323 t
5324 \end_layout
5325
5326 \end_inset
5327
5328
5329 \begin_inset Quotes erd
5330 \end_inset
5331
5332  never takes a circumflex accent.
5333  Hitting 
5334 \begin_inset Flex MenuItem
5335 status collapsed
5336
5337 \begin_layout Plain Layout
5338 Space
5339 \end_layout
5340
5341 \end_inset
5342
5343  after a dead-key produces the bare-accent.
5344  Please note this last point! If you bind a key to a dead-key, you'll need
5345  to rebind the character on that key to yet another key.
5346  Binding the 
5347 \begin_inset Flex MenuItem
5348 status collapsed
5349
5350 \begin_layout Plain Layout
5351 ,-key
5352 \end_layout
5353
5354 \end_inset
5355
5356  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5357 \end_layout
5358
5359 \begin_layout Standard
5360 One common way to bind dead-keys is to use 
5361 \begin_inset Flex MenuItem
5362 status collapsed
5363
5364 \begin_layout Plain Layout
5365 Meta-
5366 \end_layout
5367
5368 \end_inset
5369
5370
5371 \begin_inset Flex MenuItem
5372 status collapsed
5373
5374 \begin_layout Plain Layout
5375 Ctrl-
5376 \end_layout
5377
5378 \end_inset
5379
5380 , and 
5381 \begin_inset Flex MenuItem
5382 status collapsed
5383
5384 \begin_layout Plain Layout
5385 Shift-
5386 \end_layout
5387
5388 \end_inset
5389
5390  in combination with an accent, like 
5391 \begin_inset Quotes eld
5392 \end_inset
5393
5394
5395 \begin_inset Flex MenuItem
5396 status collapsed
5397
5398 \begin_layout Plain Layout
5399 ~
5400 \end_layout
5401
5402 \end_inset
5403
5404
5405 \begin_inset Quotes erd
5406 \end_inset
5407
5408  or 
5409 \begin_inset Quotes eld
5410 \end_inset
5411
5412
5413 \begin_inset Flex MenuItem
5414 status collapsed
5415
5416 \begin_layout Plain Layout
5417 ,
5418 \end_layout
5419
5420 \end_inset
5421
5422
5423 \begin_inset Quotes erd
5424 \end_inset
5425
5426  or 
5427 \begin_inset Quotes eld
5428 \end_inset
5429
5430
5431 \begin_inset Flex MenuItem
5432 status collapsed
5433
5434 \begin_layout Plain Layout
5435 ^
5436 \end_layout
5437
5438 \end_inset
5439
5440
5441 \begin_inset Quotes erd
5442 \end_inset
5443
5444 .
5445  Another way involves using 
5446 \begin_inset Flex Code
5447 status collapsed
5448
5449 \begin_layout Plain Layout
5450 xmodmap
5451 \end_layout
5452
5453 \end_inset
5454
5455  and 
5456 \begin_inset Flex Code
5457 status collapsed
5458
5459 \begin_layout Plain Layout
5460 xkeycaps
5461 \end_layout
5462
5463 \end_inset
5464
5465  to set up the special 
5466 \begin_inset Flex Code
5467 status collapsed
5468
5469 \begin_layout Plain Layout
5470 Mode_Switch
5471 \end_layout
5472
5473 \end_inset
5474
5475  key.
5476  The 
5477 \begin_inset Flex Code
5478 status collapsed
5479
5480 \begin_layout Plain Layout
5481 Mode_Switch
5482 \end_layout
5483
5484 \end_inset
5485
5486  acts in some ways just like 
5487 \begin_inset Flex MenuItem
5488 status collapsed
5489
5490 \begin_layout Plain Layout
5491 Shift
5492 \end_layout
5493
5494 \end_inset
5495
5496  and permits you to bind keys to accented characters.
5497  You can also turn keys into dead-keys by binding them to something like
5498  
5499 \begin_inset Flex Code
5500 status collapsed
5501
5502 \begin_layout Plain Layout
5503 usldead_cedilla
5504 \end_layout
5505
5506 \end_inset
5507
5508  and then binding this symbolic key to the corresponding \SpecialChar LyX
5509  command.
5510 \begin_inset Foot
5511 status collapsed
5512
5513 \begin_layout Plain Layout
5514 Note from 
5515 \noun on
5516 John Weiss
5517 \noun default
5518 : This is exactly what I do in my 
5519 \begin_inset Flex Code
5520 status collapsed
5521
5522 \begin_layout Plain Layout
5523 ~/.lyx/lyxrc
5524 \end_layout
5525
5526 \end_inset
5527
5528  and my 
5529 \begin_inset Flex Code
5530 status collapsed
5531
5532 \begin_layout Plain Layout
5533 ~/.xmodmap
5534 \end_layout
5535
5536 \end_inset
5537
5538  files.
5539  I have my 
5540 \begin_inset Flex MenuItem
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 Scroll
5545 \begin_inset space ~
5546 \end_inset
5547
5548 Lock
5549 \end_layout
5550
5551 \end_inset
5552
5553  key set up as 
5554 \begin_inset Flex Code
5555 status collapsed
5556
5557 \begin_layout Plain Layout
5558 Mode_Shift
5559 \end_layout
5560
5561 \end_inset
5562
5563  and a bunch of these 
5564 \begin_inset Quotes eld
5565 \end_inset
5566
5567
5568 \begin_inset Flex Code
5569 status collapsed
5570
5571 \begin_layout Plain Layout
5572 usldead_*
5573 \end_layout
5574
5575 \end_inset
5576
5577
5578 \begin_inset Quotes erd
5579 \end_inset
5580
5581  symbolic keys bound such things as 
5582 \begin_inset Flex MenuItem
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586 Scroll
5587 \begin_inset space ~
5588 \end_inset
5589
5590 Lock-^
5591 \end_layout
5592
5593 \end_inset
5594
5595  and 
5596 \begin_inset Flex MenuItem
5597 status collapsed
5598
5599 \begin_layout Plain Layout
5600 Scroll
5601 \begin_inset space ~
5602 \end_inset
5603
5604 Lock-~
5605 \end_layout
5606
5607 \end_inset
5608
5609 .
5610  This is how I produce my accented characters.
5611 \end_layout
5612
5613 \end_inset
5614
5615  You can make just about anything into the 
5616 \begin_inset Flex Code
5617 status collapsed
5618
5619 \begin_layout Plain Layout
5620 Mode_Switch
5621 \end_layout
5622
5623 \end_inset
5624
5625  key: One of the 
5626 \begin_inset Flex MenuItem
5627 status collapsed
5628
5629 \begin_layout Plain Layout
5630 Ctrl-
5631 \end_layout
5632
5633 \end_inset
5634
5635  keys, a spare function key, etc.
5636  As for the \SpecialChar LyX
5637  commands that produce accents, check the entry for 
5638 \begin_inset Flex Code
5639 status collapsed
5640
5641 \begin_layout Plain Layout
5642 accent-acute
5643 \end_layout
5644
5645 \end_inset
5646
5647  in the 
5648 \emph on
5649 Reference Manual
5650 \emph default
5651 .
5652  You'll find the complete list there.
5653 \end_layout
5654
5655 \begin_layout Subsection
5656 Saving your Language Configuration
5657 \end_layout
5658
5659 \begin_layout Standard
5660 You can edit your preferences so that your desired language environment
5661  is automatically configured when \SpecialChar LyX
5662  starts up, via the 
5663 \begin_inset Flex MenuItem
5664 status collapsed
5665
5666 \begin_layout Plain Layout
5667 Edit\SpecialChar menuseparator
5668 Preferences
5669 \end_layout
5670
5671 \end_inset
5672
5673  dialog.
5674 \end_layout
5675
5676 \begin_layout Chapter
5677 Installing New Document Classes, Layouts, and Templates
5678 \begin_inset CommandInset label
5679 LatexCommand label
5680 name "cha:Installing-New-Document"
5681
5682 \end_inset
5683
5684
5685 \begin_inset Argument 1
5686 status collapsed
5687
5688 \begin_layout Plain Layout
5689 Installing New Document Classes
5690 \end_layout
5691
5692 \end_inset
5693
5694
5695 \end_layout
5696
5697 \begin_layout Standard
5698 In this chapter, we describe the procedures for creating and installing
5699  new \SpecialChar LyX
5700  layout and template files, as well as offer a refresher on correctly
5701  installing new \SpecialChar LaTeX
5702  document classes.
5703  
5704 \end_layout
5705
5706 \begin_layout Standard
5707 First, let us a say a few words about how one ought to think about the relation
5708  between \SpecialChar LyX
5709  and \SpecialChar LaTeX
5710 .
5711  The thing to understand is that, in a certain sense, \SpecialChar LyX
5712  doesn't know anything
5713  about \SpecialChar LaTeX
5714 .
5715  Indeed, from \SpecialChar LyX
5716 's point of view, \SpecialChar LaTeX
5717  is just one of several 
5718 \begin_inset Quotes eld
5719 \end_inset
5720
5721 backend formats
5722 \begin_inset Quotes erd
5723 \end_inset
5724
5725  in which it is capable of producing output.
5726  Other such formats are DocBook, plaintext, and XHTML.
5727  \SpecialChar LaTeX
5728  is, of course, a particularly important format, but very little of the
5729  information \SpecialChar LyX
5730  has about \SpecialChar LaTeX
5731  is actually contained in the program itself.
5732 \begin_inset Foot
5733 status collapsed
5734
5735 \begin_layout Plain Layout
5736 Some commands are sufficiently complex that they are 
5737 \begin_inset Quotes eld
5738 \end_inset
5739
5740 hardcoded
5741 \begin_inset Quotes erd
5742 \end_inset
5743
5744  into \SpecialChar LyX
5745 .
5746  But the developers generally regard this as a Bad Thing.
5747 \end_layout
5748
5749 \end_inset
5750
5751  Rather, that information, even for the standard classes like 
5752 \begin_inset Flex Code
5753 status collapsed
5754
5755 \begin_layout Plain Layout
5756 article.cls
5757 \end_layout
5758
5759 \end_inset
5760
5761 , is contained in `layout files'.
5762  Similarly, \SpecialChar LyX
5763  itself does not know much about DocBook or XHTML.
5764  What it knows is contained in layout files.
5765 \end_layout
5766
5767 \begin_layout Standard
5768 You can think of the layout file for a given document class as a translation
5769  manual between \SpecialChar LyX
5770  constructs—paragraphs with their corresponding styles,
5771  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5772 , DocBook, or XHTML
5773  constructs.
5774  Almost everything \SpecialChar LyX
5775  knows about 
5776 \begin_inset Flex Code
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 article.cls
5781 \end_layout
5782
5783 \end_inset
5784
5785 , for example, is contained in the file 
5786 \begin_inset Flex Code
5787 status collapsed
5788
5789 \begin_layout Plain Layout
5790 article.layout
5791 \end_layout
5792
5793 \end_inset
5794
5795  and in various other files it includes.
5796  For this reason, anyone intending to write layout files should plan to
5797  study the existing files.
5798  A good place to start is with 
5799 \begin_inset Flex Code
5800 status collapsed
5801
5802 \begin_layout Plain Layout
5803 stdsections.inc
5804 \end_layout
5805
5806 \end_inset
5807
5808 , which is included in 
5809 \begin_inset Flex Code
5810 status collapsed
5811
5812 \begin_layout Plain Layout
5813 article.layout
5814 \end_layout
5815
5816 \end_inset
5817
5818
5819 \begin_inset Flex Code
5820 status collapsed
5821
5822 \begin_layout Plain Layout
5823 book.layout
5824 \end_layout
5825
5826 \end_inset
5827
5828 , and many of the other layout files for document classes.
5829  This file is where sections and the like are defined: 
5830 \begin_inset Flex Code
5831 status collapsed
5832
5833 \begin_layout Plain Layout
5834 stdsections.inc
5835 \end_layout
5836
5837 \end_inset
5838
5839  tells \SpecialChar LyX
5840  how paragraphs that are marked with the Section, Subsection, etc,
5841  styles can be translated into corresponding \SpecialChar LaTeX
5842 , DocBook, and XHTML commands
5843  and tags.
5844  The 
5845 \begin_inset Flex Code
5846 status collapsed
5847
5848 \begin_layout Plain Layout
5849 article.layout
5850 \end_layout
5851
5852 \end_inset
5853
5854  file basically just includes several of these 
5855 \begin_inset Flex Code
5856 status collapsed
5857
5858 \begin_layout Plain Layout
5859 std*.inc
5860 \end_layout
5861
5862 \end_inset
5863
5864  files.
5865 \end_layout
5866
5867 \begin_layout Standard
5868 Defining the \SpecialChar LyX
5869 –\SpecialChar LaTeX
5870  correspondence is not the only thing layout files do, though.
5871  Their other job is to define how the \SpecialChar LyX
5872  constructs themselves will appear
5873  on-screen.
5874  The fact that layout files have these two jobs is often a source of confusion,
5875  because they are completely separate.
5876  Telling \SpecialChar LyX
5877  how to translate a certain paragraph style into \SpecialChar LaTeX
5878  does not tell
5879  \SpecialChar LyX
5880  how to display it; conversely, telling \SpecialChar LyX
5881  how to display a certain paragraph
5882  style does not tell \SpecialChar LyX
5883  how to translate it into \SpecialChar LaTeX
5884  (let alone tell \SpecialChar LaTeX
5885  how to
5886  display it).
5887  So, in general, when you define a new \SpecialChar LyX
5888  construct, you must always do two
5889  quite separate things: (i)
5890 \begin_inset space ~
5891 \end_inset
5892
5893 tell \SpecialChar LyX
5894  how to translate it into \SpecialChar LaTeX
5895  and (ii)
5896 \begin_inset space ~
5897 \end_inset
5898
5899 tell \SpecialChar LyX
5900  how to display it.
5901 \end_layout
5902
5903 \begin_layout Standard
5904 Much the same is true, of course, as regards \SpecialChar LyX
5905 's other backend formats, though
5906  XHTML is in some ways different, because in that case \SpecialChar LyX
5907  
5908 \emph on
5909 is
5910 \emph default
5911  able, to some extent, to use information about how it should display a
5912  paragraph on the screen to output information (in the form of CSS) about
5913  how the paragraph should be displayed in a browser.
5914  Even in this case, however, the distinction between what \SpecialChar LyX
5915  does internally
5916  and how things are rendered externally remains in force, and the two can
5917  be controlled separately.
5918  See 
5919 \begin_inset CommandInset ref
5920 LatexCommand ref
5921 reference "sec:Tags-for-XHTML"
5922
5923 \end_inset
5924
5925  for the details.
5926 \end_layout
5927
5928 \begin_layout Section
5929 Installing new \SpecialChar LaTeX
5930  files
5931 \end_layout
5932
5933 \begin_layout Standard
5934 Some installations may not include a \SpecialChar LaTeX
5935  package or class file that you would
5936  like to use within \SpecialChar LyX
5937 .
5938  For example, you might need Foil\SpecialChar TeX
5939 , a package for preparing slides for overhead
5940  projectors.
5941  Modern \SpecialChar LaTeX
5942  distributions like \SpecialChar TeX
5943 Live (2008 or newer) or MiK\SpecialChar TeX
5944  provide a user interface
5945  for installing such packages.
5946  For example, with MiK\SpecialChar TeX
5947 , you start the program 
5948 \begin_inset Quotes eld
5949 \end_inset
5950
5951 Package
5952 \begin_inset space ~
5953 \end_inset
5954
5955 Manager
5956 \begin_inset Quotes erd
5957 \end_inset
5958
5959  to get a list of available packages.
5960  To install one of them, right click on it or use the corresponding toolbar
5961  button.
5962 \end_layout
5963
5964 \begin_layout Standard
5965 If your \SpecialChar LaTeX
5966  distribution does not provide such a `package manager', or if the
5967  package is not available from your distribution, then follow these steps
5968  to install it manually:
5969 \end_layout
5970
5971 \begin_layout Enumerate
5972 Get the package from 
5973 \begin_inset CommandInset href
5974 LatexCommand href
5975 name "CTAN"
5976 target "http://www.ctan.org/"
5977
5978 \end_inset
5979
5980  or wherever.
5981 \end_layout
5982
5983 \begin_layout Enumerate
5984 If the package contains a file with the ending 
5985 \begin_inset Quotes eld
5986 \end_inset
5987
5988
5989 \begin_inset Flex Code
5990 status collapsed
5991
5992 \begin_layout Plain Layout
5993 .ins
5994 \end_layout
5995
5996 \end_inset
5997
5998
5999 \begin_inset Quotes erd
6000 \end_inset
6001
6002  (is the case for Foil\SpecialChar TeX
6003 ) then open a console, change to the folder of this
6004  file and execute the command 
6005 \begin_inset Flex Code
6006 status collapsed
6007
6008 \begin_layout Plain Layout
6009 latex foiltex.ins
6010 \end_layout
6011
6012 \end_inset
6013
6014 .
6015  You have now unpacked the package and have all files to install it.
6016  Most \SpecialChar LaTeX
6017 -packages are not packed and you can skip this step.
6018 \end_layout
6019
6020 \begin_layout Enumerate
6021 Now you need to decide if the package should be available for all users
6022  or only for you.
6023 \begin_inset Separator parbreak
6024 \end_inset
6025
6026
6027 \end_layout
6028
6029 \begin_deeper
6030 \begin_layout Enumerate
6031 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6032  for all users on your system, then install it in your `local' \SpecialChar TeX
6033  tree, otherwise
6034  install it in your own `user' \SpecialChar TeX
6035  tree.
6036  Where these trees should be created, if they do not already exist, depends
6037  on your system.
6038  To find this out, look in the file 
6039 \begin_inset Flex Code
6040 status collapsed
6041
6042 \begin_layout Plain Layout
6043 texmf.cnf
6044 \end_layout
6045
6046 \end_inset
6047
6048 .
6049 \begin_inset Foot
6050 status collapsed
6051
6052 \begin_layout Plain Layout
6053 This is usually in the directory 
6054 \begin_inset Flex Code
6055 status collapsed
6056
6057 \begin_layout Plain Layout
6058 $TEXMF/web2c
6059 \end_layout
6060
6061 \end_inset
6062
6063 , though you can execute the command 
6064 \begin_inset Flex Code
6065 status collapsed
6066
6067 \begin_layout Plain Layout
6068 kpsewhich texmf.cnf
6069 \end_layout
6070
6071 \end_inset
6072
6073  to locate it.
6074 \end_layout
6075
6076 \end_inset
6077
6078  The location of the `local' \SpecialChar TeX
6079  tree is defined by the 
6080 \begin_inset Flex Code
6081 status collapsed
6082
6083 \begin_layout Plain Layout
6084 TEXMFLOCAL
6085 \end_layout
6086
6087 \end_inset
6088
6089  variable; this is usually somewhere like 
6090 \begin_inset Flex Code
6091 status collapsed
6092
6093 \begin_layout Plain Layout
6094 /usr/local/share/texmf
6095 \end_layout
6096
6097 \end_inset
6098
6099 .
6100  The location of the `user' \SpecialChar TeX
6101  tree is defined by 
6102 \begin_inset Flex Code
6103 status collapsed
6104
6105 \begin_layout Plain Layout
6106 TEXMFHOME
6107 \end_layout
6108
6109 \end_inset
6110
6111  and is commonly 
6112 \begin_inset Flex Code
6113 status collapsed
6114
6115 \begin_layout Plain Layout
6116 $HOME/texmf
6117 \end_layout
6118
6119 \end_inset
6120
6121 .
6122  (If these variables are not predefined, you have to define them.) You'll
6123  probably need root permissions to create or modify the `local' tree, but
6124  not for your `user' tree.
6125 \begin_inset Newline newline
6126 \end_inset
6127
6128 In general, it is recommended to install in the user tree because your user
6129  will not be modified or even overwritten when you upgrade your system.
6130  It will typically also be backed up together with everything else when
6131  you backup your home directory (which, of course, you do on a regular basis).
6132 \end_layout
6133
6134 \begin_layout Enumerate
6135 On Windows, if you want the new package to be available for all users on
6136  your system, change to the folder where \SpecialChar LaTeX
6137  is installed and then change to
6138  the subfolder 
6139 \begin_inset Flex Code
6140 status collapsed
6141
6142 \begin_layout Plain Layout
6143 ~
6144 \backslash
6145 tex
6146 \backslash
6147 latex
6148 \end_layout
6149
6150 \end_inset
6151
6152 .
6153  (For MiK\SpecialChar TeX
6154 , this would be by default the folder 
6155 \begin_inset Flex Code
6156 status collapsed
6157
6158 \begin_layout Plain Layout
6159 ~:
6160 \backslash
6161 Programs
6162 \backslash
6163 MiK\SpecialChar TeX
6164
6165 \backslash
6166 tex
6167 \backslash
6168 latex
6169 \end_layout
6170
6171 \end_inset
6172
6173 .)
6174 \begin_inset Foot
6175 status open
6176
6177 \begin_layout Plain Layout
6178 Note that this will be the correct path only on English installations.
6179  On a German one, it would be 
6180 \begin_inset Flex Code
6181 status collapsed
6182
6183 \begin_layout Plain Layout
6184 ~:
6185 \backslash
6186 Programme
6187 \backslash
6188 MiK\SpecialChar TeX
6189
6190 \backslash
6191 tex
6192 \backslash
6193 latex
6194 \end_layout
6195
6196 \end_inset
6197
6198 , and similarly for other languages.
6199 \end_layout
6200
6201 \end_inset
6202
6203  Create there a new folder 
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 foiltex
6209 \end_layout
6210
6211 \end_inset
6212
6213  and copy all files of the package into it.
6214  
6215 \begin_inset Newline newline
6216 \end_inset
6217
6218 If the package should only available for you or you don't have admin permissions
6219 , do the same, but in the local \SpecialChar LaTeX
6220  folder.
6221  E.
6222 \begin_inset space \thinspace{}
6223 \end_inset
6224
6225 g., for MiK\SpecialChar TeX
6226
6227 \begin_inset space ~
6228 \end_inset
6229
6230 2.8 under Windows XP, this would be the folder:
6231 \begin_inset Newline newline
6232 \end_inset
6233
6234
6235 \family sans
6236
6237 \begin_inset Flex Code
6238 status collapsed
6239
6240 \begin_layout Plain Layout
6241 ~:
6242 \backslash
6243 Documents and Settings
6244 \backslash
6245 <username>
6246 \backslash
6247 Application Data
6248 \backslash
6249
6250 \end_layout
6251
6252 \end_inset
6253
6254
6255 \begin_inset Newline newline
6256 \end_inset
6257
6258
6259 \family default
6260
6261 \begin_inset Phantom HPhantom
6262 status open
6263
6264 \begin_layout Plain Layout
6265
6266 \family sans
6267 ~:
6268 \backslash
6269
6270 \end_layout
6271
6272 \end_inset
6273
6274
6275 \begin_inset Flex Code
6276 status collapsed
6277
6278 \begin_layout Plain Layout
6279 MiK\SpecialChar TeX
6280
6281 \backslash
6282 2.8
6283 \backslash
6284 tex
6285 \backslash
6286 latex
6287 \end_layout
6288
6289 \end_inset
6290
6291
6292 \begin_inset Newline newline
6293 \end_inset
6294
6295 On Vista, it would be:
6296 \begin_inset Newline newline
6297 \end_inset
6298
6299
6300 \begin_inset Flex Code
6301 status collapsed
6302
6303 \begin_layout Plain Layout
6304 ~:
6305 \backslash
6306 Users
6307 \backslash
6308 <username>
6309 \backslash
6310 AppData
6311 \backslash
6312 Roaming
6313 \backslash
6314 2.8
6315 \backslash
6316 MiK\SpecialChar TeX
6317
6318 \backslash
6319 tex
6320 \backslash
6321 latex
6322 \end_layout
6323
6324 \end_inset
6325
6326
6327 \end_layout
6328
6329 \end_deeper
6330 \begin_layout Enumerate
6331 Now one only need to tell \SpecialChar LaTeX
6332  that there are new files.
6333  This depends on the used \SpecialChar LaTeX
6334 -Distribution:
6335 \begin_inset Separator parbreak
6336 \end_inset
6337
6338
6339 \end_layout
6340
6341 \begin_deeper
6342 \begin_layout Enumerate
6343 For \SpecialChar TeX
6344 Live execute the command 
6345 \begin_inset Flex Code
6346 status collapsed
6347
6348 \begin_layout Plain Layout
6349 texhash
6350 \end_layout
6351
6352 \end_inset
6353
6354  from a console.
6355  If you installed the package for all users, then you will probably need
6356  to have root permissions for that.
6357 \end_layout
6358
6359 \begin_layout Enumerate
6360 For MiK\SpecialChar TeX
6361 , if you have installed the package for all users, start the program
6362  
6363 \begin_inset Quotes eld
6364 \end_inset
6365
6366 Settings
6367 \begin_inset space ~
6368 \end_inset
6369
6370 (Admin)
6371 \begin_inset Quotes erd
6372 \end_inset
6373
6374  and press the button marked 
6375 \begin_inset Quotes eld
6376 \end_inset
6377
6378 Refresh FNDB
6379 \begin_inset Quotes erd
6380 \end_inset
6381
6382 .
6383  Otherwise start the program 
6384 \begin_inset Quotes eld
6385 \end_inset
6386
6387 Settings
6388 \begin_inset Quotes erd
6389 \end_inset
6390
6391  and do the same.
6392 \end_layout
6393
6394 \end_deeper
6395 \begin_layout Enumerate
6396 Finally, you need to tell \SpecialChar LyX
6397  that there are new packages available.
6398  So, in \SpecialChar LyX
6399 , use the menu 
6400 \begin_inset Flex MenuItem
6401 status collapsed
6402
6403 \begin_layout Plain Layout
6404 Tools
6405 \family sans
6406 \SpecialChar menuseparator
6407 Reconfigure
6408 \end_layout
6409
6410 \end_inset
6411
6412  and then restart \SpecialChar LyX
6413 .
6414 \end_layout
6415
6416 \begin_layout Standard
6417 Now the package is installed.
6418  In our example, the document class 
6419 \begin_inset Flex Code
6420 status collapsed
6421
6422 \begin_layout Plain Layout
6423 Slides
6424 \begin_inset space ~
6425 \end_inset
6426
6427 (FoilTe
6428 \begin_inset ERT
6429 status collapsed
6430
6431 \begin_layout Plain Layout
6432
6433 {}
6434 \end_layout
6435
6436 \end_inset
6437
6438 x)
6439 \end_layout
6440
6441 \end_inset
6442
6443  will now be available under 
6444 \begin_inset Flex MenuItem
6445 status collapsed
6446
6447 \begin_layout Plain Layout
6448 Document\SpecialChar menuseparator
6449 Settings\SpecialChar menuseparator
6450 Document Class
6451 \end_layout
6452
6453 \end_inset
6454
6455 .
6456  
6457 \end_layout
6458
6459 \begin_layout Standard
6460 If you would like to use a \SpecialChar LaTeX
6461  document class that is not even listed in the
6462  menu 
6463 \begin_inset Flex MenuItem
6464 status collapsed
6465
6466 \begin_layout Plain Layout
6467 Document\SpecialChar menuseparator
6468 Settings\SpecialChar menuseparator
6469 Document Class
6470 \end_layout
6471
6472 \end_inset
6473
6474 , then you need to create a `layout' file for it.
6475  That is the topic of the next section.
6476 \end_layout
6477
6478 \begin_layout Section
6479 Types of layout files
6480 \end_layout
6481
6482 \begin_layout Standard
6483 This section describes the various sorts of \SpecialChar LyX
6484  files that contain layout informati
6485 on.
6486  These files describe various paragraph and character styles, determining
6487  how \SpecialChar LyX
6488  should display them and how they should be translated into \SpecialChar LaTeX
6489 , DocBook,
6490  XHTML, or whatever output format is being used.
6491  
6492 \end_layout
6493
6494 \begin_layout Standard
6495 We shall try to provide a thorough description of the process of writing
6496  layout files here.
6497  However, there are so many different types of documents supported even
6498  by just \SpecialChar LaTeX
6499  that we can't hope to cover every different possibility or problem
6500  you might encounter.
6501  The \SpecialChar LyX
6502  users' list is frequented by people with lots of experience with layout
6503  design who are willing to share what they've learned, so please feel free
6504  to ask questions there.
6505 \end_layout
6506
6507 \begin_layout Standard
6508 As you prepare to write a new layout, it is extremely helpful to look at
6509  the layouts distributed with \SpecialChar LyX
6510 .
6511  If you write a \SpecialChar LyX
6512  layout for a \SpecialChar LaTeX
6513  document class that might also be used by
6514  others, or write a module that might be useful to others, then you should
6515  consider posting your layout to the 
6516 \begin_inset CommandInset href
6517 LatexCommand href
6518 name "layout section on the LyX wiki"
6519 target "http://wiki.lyx.org/Layouts/Layouts"
6520
6521 \end_inset
6522
6523  or even to the \SpecialChar LyX
6524  developers' list, so that it might be included in \SpecialChar LyX
6525  itself.
6526 \begin_inset Foot
6527 status collapsed
6528
6529 \begin_layout Plain Layout
6530 Note that \SpecialChar LyX
6531  is licensed under the General Public License, so any material
6532  that is contributed to \SpecialChar LyX
6533  must be similarly licensed.
6534 \end_layout
6535
6536 \end_inset
6537
6538
6539 \end_layout
6540
6541 \begin_layout Subsection
6542 Layout modules
6543 \begin_inset CommandInset label
6544 LatexCommand label
6545 name "sub:Layout-modules"
6546
6547 \end_inset
6548
6549
6550 \end_layout
6551
6552 \begin_layout Standard
6553 We have spoken to this point about `layout files'.
6554  But there are different sorts of files that contain layout information.
6555  Layout files, strictly so called, have the 
6556 \begin_inset Flex Code
6557 status collapsed
6558
6559 \begin_layout Plain Layout
6560 .layout
6561 \end_layout
6562
6563 \end_inset
6564
6565  extension and provide \SpecialChar LyX
6566  with information about document classes.
6567  Since \SpecialChar LyX
6568  1.6 layout information can also be contained in layout 
6569 \emph on
6570 modules
6571 \emph default
6572 , which have the 
6573 \begin_inset Flex Code
6574 status collapsed
6575
6576 \begin_layout Plain Layout
6577 .module
6578 \end_layout
6579
6580 \end_inset
6581
6582  extension.
6583  Modules are to \SpecialChar LaTeX
6584  packages much as layouts are to \SpecialChar LaTeX
6585  classes, and some modules—such
6586  as the 
6587 \begin_inset Flex Code
6588 status collapsed
6589
6590 \begin_layout Plain Layout
6591 endnotes
6592 \end_layout
6593
6594 \end_inset
6595
6596  module—specifically provide support for one package.
6597  In a sense, layout modules are similar to included
6598 \begin_inset Foot
6599 status collapsed
6600
6601 \begin_layout Plain Layout
6602 These can have any extension, but by convention have the 
6603 \begin_inset Flex Code
6604 status collapsed
6605
6606 \begin_layout Plain Layout
6607 .inc
6608 \end_layout
6609
6610 \end_inset
6611
6612  extension.
6613 \end_layout
6614
6615 \end_inset
6616
6617  files—files like 
6618 \begin_inset Flex Code
6619 status collapsed
6620
6621 \begin_layout Plain Layout
6622 stdsections.inc
6623 \end_layout
6624
6625 \end_inset
6626
6627 —in that modules are not specific to a given document class but may be used
6628  with many different classes.
6629  The difference is that using an included file with 
6630 \begin_inset Flex Code
6631 status collapsed
6632
6633 \begin_layout Plain Layout
6634 article.cls
6635 \end_layout
6636
6637 \end_inset
6638
6639  requires editing that file.
6640  Modules, by contrast, are selected in the 
6641 \begin_inset Flex MenuItem
6642 status collapsed
6643
6644 \begin_layout Plain Layout
6645 Document\SpecialChar menuseparator
6646 Settings
6647 \end_layout
6648
6649 \end_inset
6650
6651  dialog.
6652 \end_layout
6653
6654 \begin_layout Standard
6655 Building modules is the easiest way to get started with layout editing,
6656  since it can be as simple as adding a single new paragraph style or flex
6657  inset.
6658  But modules may, in principle, contain anything a layout file can contain.
6659 \end_layout
6660
6661 \begin_layout Standard
6662 After creating a new module and copying it to the 
6663 \begin_inset Flex Code
6664 status collapsed
6665
6666 \begin_layout Plain Layout
6667 layouts/
6668 \end_layout
6669
6670 \end_inset
6671
6672  folder, you will need to reconfigure and then restart \SpecialChar LyX
6673  for the module to
6674  appear in the menu.
6675  However, changes you make to the module will be seen immediately, if you
6676  open 
6677 \begin_inset Flex MenuItem
6678 status collapsed
6679
6680 \begin_layout Plain Layout
6681 Document\SpecialChar menuseparator
6682 Settings
6683 \end_layout
6684
6685 \end_inset
6686
6687 , highlight something, and then hit 
6688 \begin_inset Quotes eld
6689 \end_inset
6690
6691 OK
6692 \begin_inset Quotes erd
6693 \end_inset
6694
6695 .
6696  
6697 \emph on
6698 It is strongly recommended that you save your work before doing this
6699 \emph default
6700 .
6701  In fact, 
6702 \emph on
6703 it is strongly recommended that you not attempt to edit modules while simultaneo
6704 usly working on actual documents
6705 \emph default
6706 .
6707  Though of course the developers strive to keep \SpecialChar LyX
6708  stable in such situations,
6709  syntax errors and the like in your module file could cause strange behavior.
6710 \end_layout
6711
6712 \begin_layout Subsubsection
6713 Local Layout
6714 \end_layout
6715
6716 \begin_layout Standard
6717 Modules are to \SpecialChar LyX
6718  as packages are to \SpecialChar LaTeX
6719 .
6720  Sometimes, however, you find yourself wanting a specific inset or character
6721  style just for one document and writing a module that will also be available
6722  to other documents makes little sense.
6723  What you need is \SpecialChar LyX
6724 's 
6725 \begin_inset Quotes eld
6726 \end_inset
6727
6728 Local Layout
6729 \begin_inset Quotes erd
6730 \end_inset
6731
6732 .
6733 \end_layout
6734
6735 \begin_layout Standard
6736 You will find it under 
6737 \family sans
6738 Document\SpecialChar menuseparator
6739 Settings\SpecialChar menuseparator
6740 Local Layout
6741 \family default
6742 .
6743  The large text box allows you to enter anything that you might enter in
6744  a layout file or module.
6745  You can think of a document's local layout, in fact, as a module that belongs
6746  just to it.
6747  So, in particular, you must enter a 
6748 \begin_inset Flex Code
6749 status collapsed
6750
6751 \begin_layout Plain Layout
6752 Format
6753 \end_layout
6754
6755 \end_inset
6756
6757  tag.
6758  Any format is acceptable, but one would normally use the format current
6759  at the time.
6760  (In \SpecialChar LyX
6761  2.1, the current layout format is 48.) You should be aware that local
6762  layout is not supported by versions of \SpecialChar LyX
6763  prior to 1.6, so you should not
6764  use it if you want to be able to export your document to \SpecialChar LyX
6765  1.5 or earlier
6766  (without, that is, losing the local layout information).
6767  If you wish to be able to export to 1.6—local layout is supported in 1.6,
6768  though there is no UI for it—then you should use format 11 and, of course,
6769  use only layout constructs that were available in \SpecialChar LyX
6770  1.6.
6771 \end_layout
6772
6773 \begin_layout Standard
6774 When you have entered something in the 
6775 \begin_inset Flex Code
6776 status collapsed
6777
6778 \begin_layout Plain Layout
6779 Local Layout
6780 \end_layout
6781
6782 \end_inset
6783
6784  pane, \SpecialChar LyX
6785  will enable the 
6786 \begin_inset Quotes eld
6787 \end_inset
6788
6789 Validate
6790 \begin_inset Quotes erd
6791 \end_inset
6792
6793  button at the bottom.
6794  Clicking this button will cause \SpecialChar LyX
6795  to determine whether what you have entered
6796  is valid layout information for the chosen format.
6797  \SpecialChar LyX
6798  will report the result but, unfortunately, will not tell you what errors
6799  there might have been.
6800  These will be written to the terminal, however, if \SpecialChar LyX
6801  is started from a terminal.
6802  You will not be permitted to save your local layout until you have entered
6803  something valid.
6804 \end_layout
6805
6806 \begin_layout Standard
6807 The warnings at the end of the previous section apply here, too.
6808  Do not play with local layout while you are actually working, especially
6809  if you have not saved your document.
6810  That said, using local layout with a test document can be a very convenient
6811  way to try out layout ideas, or even to start developing a module.
6812 \end_layout
6813
6814 \begin_layout Subsection
6815 Layout for 
6816 \begin_inset Flex MenuItem
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 .sty
6821 \end_layout
6822
6823 \end_inset
6824
6825  files
6826 \end_layout
6827
6828 \begin_layout Standard
6829 There are two situations you are likely to encounter when wanting to support
6830  a new \SpecialChar LaTeX
6831  document class, involving style (
6832 \begin_inset Flex Code
6833 status collapsed
6834
6835 \begin_layout Plain Layout
6836 .sty
6837 \end_layout
6838
6839 \end_inset
6840
6841 ) files and \SpecialChar LaTeX2e
6842  class (
6843 \begin_inset Flex Code
6844 status collapsed
6845
6846 \begin_layout Plain Layout
6847 .cls
6848 \end_layout
6849
6850 \end_inset
6851
6852 ) .
6853  Supporting a style file is usually fairly easy.
6854  Supporting a new class file is a bit harder.
6855  We'll discuss the former in this section and the latter in the next.
6856  Similar remarks apply, of course, if you want to support a new DocBook
6857  DTD.
6858 \end_layout
6859
6860 \begin_layout Standard
6861 The easier case is the one in which your new document class is provided
6862  as a style file that is to be used in conjunction with an already supported
6863  document class.
6864  For the sake of the example, we'll assume that the style file is called
6865  
6866 \begin_inset Flex MenuItem
6867 status collapsed
6868
6869 \begin_layout Plain Layout
6870 myclass.sty
6871 \end_layout
6872
6873 \end_inset
6874
6875  and that it is meant to be used with 
6876 \begin_inset Flex MenuItem
6877 status collapsed
6878
6879 \begin_layout Plain Layout
6880 report.cls
6881 \end_layout
6882
6883 \end_inset
6884
6885 , which is a standard class.
6886  
6887 \end_layout
6888
6889 \begin_layout Standard
6890 Start by copying the existing class's layout file into your local directory:
6891 \begin_inset Foot
6892 status collapsed
6893
6894 \begin_layout Plain Layout
6895 Of course, which directory is your local directory will vary by platform,
6896  and \SpecialChar LyX
6897  allows you to specify your local directory on startup, too, using
6898  the 
6899 \begin_inset Flex Code
6900 status collapsed
6901
6902 \begin_layout Plain Layout
6903 -userdir
6904 \end_layout
6905
6906 \end_inset
6907
6908  option.
6909 \end_layout
6910
6911 \end_inset
6912
6913
6914 \end_layout
6915
6916 \begin_layout LyX-Code
6917 cp report.layout ~/.lyx/layouts/myclass.layout
6918 \end_layout
6919
6920 \begin_layout Standard
6921 Then edit 
6922 \begin_inset Flex Code
6923 status collapsed
6924
6925 \begin_layout Plain Layout
6926 myclass.layout
6927 \end_layout
6928
6929 \end_inset
6930
6931  and change the line: 
6932 \end_layout
6933
6934 \begin_layout LyX-Code
6935
6936 \backslash
6937 Declare\SpecialChar LaTeX
6938 Class{report}
6939 \end_layout
6940
6941 \begin_layout Standard
6942 to read
6943 \end_layout
6944
6945 \begin_layout LyX-Code
6946
6947 \backslash
6948 Declare\SpecialChar LaTeX
6949 Class[report, myclass.sty]{report (myclass)}
6950 \end_layout
6951
6952 \begin_layout Standard
6953 Then add:
6954 \end_layout
6955
6956 \begin_layout LyX-Code
6957 Preamble 
6958 \begin_inset Newline newline
6959 \end_inset
6960
6961     
6962 \backslash
6963 usepackage{myclass}
6964 \begin_inset Newline newline
6965 \end_inset
6966
6967 EndPreamble
6968 \end_layout
6969
6970 \begin_layout Standard
6971 near the top of the file.
6972 \end_layout
6973
6974 \begin_layout Standard
6975 Start \SpecialChar LyX
6976  and select 
6977 \begin_inset Flex MenuItem
6978 status collapsed
6979
6980 \begin_layout Plain Layout
6981 Tools\SpecialChar menuseparator
6982 Reconfigure
6983 \end_layout
6984
6985 \end_inset
6986
6987 .
6988  Then restart \SpecialChar LyX
6989  and try creating a new document.
6990  You should see "
6991 \begin_inset Flex MenuItem
6992 status collapsed
6993
6994 \begin_layout Plain Layout
6995 report (myclass)
6996 \end_layout
6997
6998 \end_inset
6999
7000 " as a document class option in the 
7001 \begin_inset Flex MenuItem
7002 status collapsed
7003
7004 \begin_layout Plain Layout
7005 Document\SpecialChar menuseparator
7006 Settings
7007 \end_layout
7008
7009 \end_inset
7010
7011  dialog.
7012  It is likely that some of the sectioning commands and such in your new
7013  class will work differently from how they worked in the base class—
7014 \begin_inset Flex Code
7015 status collapsed
7016
7017 \begin_layout Plain Layout
7018 report
7019 \end_layout
7020
7021 \end_inset
7022
7023  in this example—so you can fiddle around with the settings for the different
7024  sections if you wish.
7025  The layout information for sections is contained in 
7026 \begin_inset Flex Code
7027 status collapsed
7028
7029 \begin_layout Plain Layout
7030 stdsections.inc
7031 \end_layout
7032
7033 \end_inset
7034
7035 , but you do not need to copy and change this file.
7036  Instead, you can simply add your changes to your layout file, after the
7037  line 
7038 \begin_inset Flex Code
7039 status collapsed
7040
7041 \begin_layout Plain Layout
7042 Input stdclass.inc
7043 \end_layout
7044
7045 \end_inset
7046
7047 , which itself includes 
7048 \begin_inset Flex Code
7049 status collapsed
7050
7051 \begin_layout Plain Layout
7052 stdsections.inc
7053 \end_layout
7054
7055 \end_inset
7056
7057 .
7058  For example, you might add these lines:
7059 \end_layout
7060
7061 \begin_layout LyX-Code
7062 Style Chapter
7063 \end_layout
7064
7065 \begin_layout LyX-Code
7066     Font
7067 \end_layout
7068
7069 \begin_layout LyX-Code
7070         Family Sans
7071 \end_layout
7072
7073 \begin_layout LyX-Code
7074     EndFont
7075 \end_layout
7076
7077 \begin_layout LyX-Code
7078 End
7079 \end_layout
7080
7081 \begin_layout Standard
7082 to change the font for chapter headings to sans-serif.
7083  This will override (or, in this case, add to) the existing declaration
7084  for the Chapter style.
7085  
7086 \end_layout
7087
7088 \begin_layout Standard
7089 Your new package may also provide commands or environments not present in
7090  the base class.
7091  In this case, you will want to add these to the layout file.
7092  See 
7093 \begin_inset CommandInset ref
7094 LatexCommand ref
7095 reference "sec:TextClass"
7096
7097 \end_inset
7098
7099  for information on how to do so.
7100 \end_layout
7101
7102 \begin_layout Standard
7103 If 
7104 \begin_inset Flex MenuItem
7105 status collapsed
7106
7107 \begin_layout Plain Layout
7108 myclass.sty
7109 \end_layout
7110
7111 \end_inset
7112
7113  can be used with several different document classes, and even if it cannot,
7114  you might find it easiest just to write a module that you can load with
7115  the base class.
7116  The simplest possible such module would be:
7117 \end_layout
7118
7119 \begin_layout LyX-Code
7120 #
7121 \backslash
7122 Declare\SpecialChar LyX
7123 Module{My Package} 
7124 \end_layout
7125
7126 \begin_layout LyX-Code
7127 #DescriptionBegin 
7128 \end_layout
7129
7130 \begin_layout LyX-Code
7131 #Support for mypkg.sty.
7132 \end_layout
7133
7134 \begin_layout LyX-Code
7135 #DescriptionEnd
7136 \begin_inset Newline newline
7137 \end_inset
7138
7139
7140 \end_layout
7141
7142 \begin_layout LyX-Code
7143 Format 35
7144 \begin_inset Newline newline
7145 \end_inset
7146
7147
7148 \end_layout
7149
7150 \begin_layout LyX-Code
7151 Preamble
7152 \begin_inset Newline newline
7153 \end_inset
7154
7155     
7156 \backslash
7157 usepackage{mypkg}
7158 \begin_inset Newline newline
7159 \end_inset
7160
7161 EndPreamble
7162 \end_layout
7163
7164 \begin_layout Standard
7165 A more complex module might modify the behavior of some existing constructs
7166  or define some new ones.
7167  Again, see 
7168 \begin_inset CommandInset ref
7169 LatexCommand ref
7170 reference "sec:TextClass"
7171
7172 \end_inset
7173
7174  for discussion.
7175 \end_layout
7176
7177 \begin_layout Subsection
7178 Layout for 
7179 \begin_inset Flex MenuItem
7180 status collapsed
7181
7182 \begin_layout Plain Layout
7183 .cls
7184 \end_layout
7185
7186 \end_inset
7187
7188  files
7189 \end_layout
7190
7191 \begin_layout Standard
7192 There are two possibilities here.
7193  One is that the class file is itself based upon an existing document class.
7194  For example, many thesis classes are based upon 
7195 \begin_inset Flex MenuItem
7196 status collapsed
7197
7198 \begin_layout Plain Layout
7199 book.cls
7200 \end_layout
7201
7202 \end_inset
7203
7204 .
7205  To see whether yours is, look for a line like
7206 \end_layout
7207
7208 \begin_layout LyX-Code
7209
7210 \backslash
7211 LoadClass{book}
7212 \end_layout
7213
7214 \begin_layout Standard
7215 in the file.
7216  If so, then you may proceed largely as in the previous section, though
7217  the 
7218 \begin_inset Flex Code
7219 status collapsed
7220
7221 \begin_layout Plain Layout
7222 Declare\SpecialChar LaTeX
7223 Class
7224 \end_layout
7225
7226 \end_inset
7227
7228  line will be different.
7229  If your new class is 
7230 \begin_inset Flex Code
7231 status collapsed
7232
7233 \begin_layout Plain Layout
7234 thesis
7235 \end_layout
7236
7237 \end_inset
7238
7239  and it is based upon 
7240 \begin_inset Flex Code
7241 status collapsed
7242
7243 \begin_layout Plain Layout
7244 book
7245 \end_layout
7246
7247 \end_inset
7248
7249 , then the line should read:
7250 \begin_inset Foot
7251 status collapsed
7252
7253 \begin_layout Plain Layout
7254 And it will be easiest if you save the file to 
7255 \begin_inset Flex Code
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 thesis.layout
7260 \end_layout
7261
7262 \end_inset
7263
7264 : \SpecialChar LyX
7265  assumes that the document class has the same name as the layout file.
7266  
7267 \end_layout
7268
7269 \end_inset
7270
7271
7272 \end_layout
7273
7274 \begin_layout LyX-Code
7275
7276 \backslash
7277 Declare\SpecialChar LaTeX
7278 Class[thesis,book]{thesis}
7279 \end_layout
7280
7281 \begin_layout Standard
7282 If, on the other hand, the new class is not based upon an existing class,
7283  you will probably have to 
7284 \begin_inset Quotes eld
7285 \end_inset
7286
7287 roll your own
7288 \begin_inset Quotes erd
7289 \end_inset
7290
7291  layout.
7292  We strongly suggest copying an existing layout file which uses a similar
7293  \SpecialChar LaTeX
7294  class and then modifying it, if you can do so.
7295  At least use an existing file as a starting point so you can find out what
7296  items you need to worry about.
7297  Again, the specifics are covered below.
7298 \end_layout
7299
7300 \begin_layout Subsection
7301 Creating templates
7302 \begin_inset CommandInset label
7303 LatexCommand label
7304 name "sub:Creating-Templates"
7305
7306 \end_inset
7307
7308
7309 \end_layout
7310
7311 \begin_layout Standard
7312 Once you have written a layout file for a new document class, you might
7313  want to consider writing a 
7314 \emph on
7315 template
7316 \emph default
7317  for it, too.
7318  A template acts as a kind of tutorial for your layout, showing how it might
7319  be used, though containing dummy content.
7320  You can of course look at the various templates included with \SpecialChar LyX
7321  for ideas.
7322 \end_layout
7323
7324 \begin_layout Standard
7325 Templates are created just like usual documents: using \SpecialChar LyX
7326 .
7327  The only difference is that usual documents contain all possible settings,
7328  including the font scheme and the paper size.
7329  Usually a user doesn't want a template to overwrite his preferred settings
7330  for such parameters.
7331  For that reason, the designer of a template should remove the corresponding
7332  commands like 
7333 \begin_inset Flex Code
7334 status collapsed
7335
7336 \begin_layout Plain Layout
7337
7338 \backslash
7339 font_roman
7340 \end_layout
7341
7342 \end_inset
7343
7344  or 
7345 \begin_inset Flex Code
7346 status collapsed
7347
7348 \begin_layout Plain Layout
7349
7350 \backslash
7351 papersize
7352 \end_layout
7353
7354 \end_inset
7355
7356  from the template \SpecialChar LyX
7357  file.
7358  This can be done with any simple text-editor, for example 
7359 \begin_inset Flex Code
7360 status collapsed
7361
7362 \begin_layout Plain Layout
7363 vi
7364 \end_layout
7365
7366 \end_inset
7367
7368  or 
7369 \begin_inset Flex Code
7370 status collapsed
7371
7372 \begin_layout Plain Layout
7373 notepad
7374 \end_layout
7375
7376 \end_inset
7377
7378 .
7379 \end_layout
7380
7381 \begin_layout Standard
7382 Put the edited template files you create in 
7383 \begin_inset Flex Code
7384 status collapsed
7385
7386 \begin_layout Plain Layout
7387 UserDir/templates/
7388 \end_layout
7389
7390 \end_inset
7391
7392 , copy the ones you use from the global template directory in 
7393 \begin_inset Flex Code
7394 status collapsed
7395
7396 \begin_layout Plain Layout
7397 \SpecialChar LyX
7398 Dir/templates/
7399 \end_layout
7400
7401 \end_inset
7402
7403  to the same place, and redefine the template path in the 
7404 \begin_inset Flex MenuItem
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408 Tools\SpecialChar menuseparator
7409 Preferences\SpecialChar menuseparator
7410 Paths
7411 \end_layout
7412
7413 \end_inset
7414
7415  dialog.
7416 \end_layout
7417
7418 \begin_layout Standard
7419 Note, by the way, that there is a template which has a particular meaning:
7420  
7421 \begin_inset Flex Code
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425 defaults.lyx
7426 \end_layout
7427
7428 \end_inset
7429
7430 .
7431  This template is loaded every time you create a new document with 
7432 \begin_inset Flex MenuItem
7433 status collapsed
7434
7435 \begin_layout Plain Layout
7436 File\SpecialChar menuseparator
7437 New
7438 \end_layout
7439
7440 \end_inset
7441
7442  in order to provide useful defaults.
7443  To create this template from inside \SpecialChar LyX
7444 , all you have to do is to open a document
7445  with the correct settings, and use the 
7446 \begin_inset Flex MenuItem
7447 status collapsed
7448
7449 \begin_layout Plain Layout
7450 Save as Document Defaults
7451 \end_layout
7452
7453 \end_inset
7454
7455  button.
7456 \end_layout
7457
7458 \begin_layout Subsection
7459 Upgrading old layout files
7460 \end_layout
7461
7462 \begin_layout Standard
7463 The format of layout files changes with each \SpecialChar LyX
7464  release, so old layout files
7465  need to be converted to the new format.
7466  If \SpecialChar LyX
7467  reads a layout file in an older format, it automatically calls the
7468  script 
7469 \begin_inset Flex Code
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473 layout2layout.py
7474 \end_layout
7475
7476 \end_inset
7477
7478  to convert it to a temporary file in current format.
7479  The original file is left untouched.
7480  If you use the layout file often, then, you may want to convert it permanently,
7481  so that \SpecialChar LyX
7482  does not have to do so itself every time.
7483  To do this, you can call the converter manually:
7484 \end_layout
7485
7486 \begin_layout Enumerate
7487 rename the file 
7488 \begin_inset Flex Code
7489 status collapsed
7490
7491 \begin_layout Plain Layout
7492 myclass.layout
7493 \end_layout
7494
7495 \end_inset
7496
7497  to 
7498 \begin_inset Flex Code
7499 status collapsed
7500
7501 \begin_layout Plain Layout
7502 myclass.old
7503 \end_layout
7504
7505 \end_inset
7506
7507
7508 \end_layout
7509
7510 \begin_layout Enumerate
7511 Call the command
7512 \begin_inset Newline newline
7513 \end_inset
7514
7515
7516 \begin_inset Flex Code
7517 status collapsed
7518
7519 \begin_layout Plain Layout
7520 python \SpecialChar LyX
7521 Dir/scripts/layout2layout.py myclass.old myclass.layout
7522 \end_layout
7523
7524 \end_inset
7525
7526
7527 \begin_inset Newline newline
7528 \end_inset
7529
7530 where 
7531 \begin_inset Flex Code
7532 status collapsed
7533
7534 \begin_layout Plain Layout
7535 \SpecialChar LyX
7536 Dir
7537 \end_layout
7538
7539 \end_inset
7540
7541  is the name of your \SpecialChar LyX
7542  system directory.
7543 \end_layout
7544
7545 \begin_layout Standard
7546 Note that manual conversion does not affect included files, so these will
7547  have to be converted separately.
7548 \end_layout
7549
7550 \begin_layout Section
7551 \begin_inset CommandInset label
7552 LatexCommand label
7553 name "sec:TextClass"
7554
7555 \end_inset
7556
7557 The layout file format
7558 \end_layout
7559
7560 \begin_layout Standard
7561 The following sections describe how layout files are structured and written.
7562  Our advice is to go slowly, save and test often.
7563  It is really not that hard, except that the multitude of options can become
7564  overwhelming, especially if you try to check out too many at once.
7565  It becomes easier if you use existing layouts of \SpecialChar LyX
7566  as examples/reference
7567  or if you modify an existing layout to your needs.
7568 \end_layout
7569
7570 \begin_layout Standard
7571 Note that all the tags used in layout files are case-insensitive.
7572  This means that 
7573 \begin_inset Flex Code
7574 status collapsed
7575
7576 \begin_layout Plain Layout
7577 Style
7578 \end_layout
7579
7580 \end_inset
7581
7582
7583 \begin_inset Flex Code
7584 status collapsed
7585
7586 \begin_layout Plain Layout
7587 style
7588 \end_layout
7589
7590 \end_inset
7591
7592  and 
7593 \begin_inset Flex Code
7594 status collapsed
7595
7596 \begin_layout Plain Layout
7597 StYlE
7598 \end_layout
7599
7600 \end_inset
7601
7602  are really the same tag.
7603  The possible arguments are printed in brackets after the tag's name.
7604  The default argument is typeset 
7605 \begin_inset Flex Code
7606 status collapsed
7607
7608 \begin_layout Plain Layout
7609
7610 \emph on
7611 emphasized
7612 \end_layout
7613
7614 \end_inset
7615
7616 .
7617  If the argument has a data type like 
7618 \begin_inset Quotes eld
7619 \end_inset
7620
7621 string
7622 \begin_inset Quotes erd
7623 \end_inset
7624
7625  or 
7626 \begin_inset Quotes eld
7627 \end_inset
7628
7629 float
7630 \begin_inset Quotes erd
7631 \end_inset
7632
7633 , the default is shown like this: 
7634 \begin_inset Flex Code
7635 status collapsed
7636
7637 \begin_layout Plain Layout
7638 float=
7639 \emph on
7640 default
7641 \end_layout
7642
7643 \end_inset
7644
7645 .
7646 \end_layout
7647
7648 \begin_layout Subsection
7649 The document class declaration and classification
7650 \end_layout
7651
7652 \begin_layout Standard
7653 Lines in a layout file which begin with 
7654 \begin_inset Flex Code
7655 status collapsed
7656
7657 \begin_layout Plain Layout
7658 #
7659 \end_layout
7660
7661 \end_inset
7662
7663  are comments.
7664  There is one exception to this rule.
7665  All 
7666 \begin_inset Flex Code
7667 status collapsed
7668
7669 \begin_layout Plain Layout
7670 *.layout
7671 \end_layout
7672
7673 \end_inset
7674
7675  files should begin with lines like:
7676 \end_layout
7677
7678 \begin_layout LyX-Code
7679
7680 \size small
7681 #% Do not delete the line below; configure depends on this 
7682 \end_layout
7683
7684 \begin_layout LyX-Code
7685
7686 \size small
7687 #  
7688 \backslash
7689 DeclareLaT
7690 \size default
7691
7692 \begin_inset ERT
7693 status collapsed
7694
7695 \begin_layout Plain Layout
7696
7697 {}
7698 \end_layout
7699
7700 \end_inset
7701
7702
7703 \size small
7704 eXClass{Article (Standard Class)}
7705 \end_layout
7706
7707 \begin_layout LyX-Code
7708
7709 \size small
7710 #  
7711 \backslash
7712 DeclareCategory{Articles}
7713 \end_layout
7714
7715 \begin_layout Standard
7716 The second and third lines are used when you (re)configure \SpecialChar LyX
7717 .
7718  The layout file is read by the \SpecialChar LaTeX
7719  script 
7720 \begin_inset Flex Code
7721 status collapsed
7722
7723 \begin_layout Plain Layout
7724 chkconfig.ltx
7725 \end_layout
7726
7727 \end_inset
7728
7729 , in a special mode where 
7730 \begin_inset Flex Code
7731 status collapsed
7732
7733 \begin_layout Plain Layout
7734 #
7735 \end_layout
7736
7737 \end_inset
7738
7739  is ignored.
7740  The first line is just a \SpecialChar LaTeX
7741  comment, the second one contains the mandatory
7742  declaration of the text class and the third line contains the optional
7743  classification of the class.
7744  If these lines appear in a file named 
7745 \begin_inset Flex Code
7746 status collapsed
7747
7748 \begin_layout Plain Layout
7749 article.layout
7750 \end_layout
7751
7752 \end_inset
7753
7754 , then they define a text class of name 
7755 \begin_inset Flex Code
7756 status collapsed
7757
7758 \begin_layout Plain Layout
7759 article
7760 \end_layout
7761
7762 \end_inset
7763
7764  (the name of the layout file) which uses the \SpecialChar LaTeX
7765  document class 
7766 \begin_inset Flex Code
7767 status collapsed
7768
7769 \begin_layout Plain Layout
7770 article.cls
7771 \end_layout
7772
7773 \end_inset
7774
7775  (the default is to use the same name as the layout).
7776  The string 
7777 \begin_inset Quotes eld
7778 \end_inset
7779
7780 Article (Standard Class)
7781 \begin_inset Quotes erd
7782 \end_inset
7783
7784  that appears above is used as a description of the text class in the 
7785 \begin_inset Flex MenuItem
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789 Document\SpecialChar menuseparator
7790 Settings
7791 \end_layout
7792
7793 \end_inset
7794
7795  dialog.
7796  The category (
7797 \begin_inset Quotes eld
7798 \end_inset
7799
7800 Articles
7801 \begin_inset Quotes erd
7802 \end_inset
7803
7804  in the example) is also used in the 
7805 \begin_inset Flex MenuItem
7806 status collapsed
7807
7808 \begin_layout Plain Layout
7809 Document\SpecialChar menuseparator
7810 Settings
7811 \end_layout
7812
7813 \end_inset
7814
7815  dialog: the text classes are grouped by these categories (which are usually
7816  genres, so typical categories are 
7817 \begin_inset Quotes eld
7818 \end_inset
7819
7820 Articles
7821 \begin_inset Quotes erd
7822 \end_inset
7823
7824
7825 \begin_inset Quotes eld
7826 \end_inset
7827
7828 Books
7829 \begin_inset Quotes erd
7830 \end_inset
7831
7832
7833 \begin_inset Quotes eld
7834 \end_inset
7835
7836 Reports
7837 \begin_inset Quotes erd
7838 \end_inset
7839
7840
7841 \begin_inset Quotes eld
7842 \end_inset
7843
7844 Letters
7845 \begin_inset Quotes erd
7846 \end_inset
7847
7848
7849 \begin_inset Quotes eld
7850 \end_inset
7851
7852 Presentations
7853 \begin_inset Quotes erd
7854 \end_inset
7855
7856
7857 \begin_inset Quotes eld
7858 \end_inset
7859
7860 Curricula Vitae
7861 \begin_inset Quotes erd
7862 \end_inset
7863
7864  etc.).
7865  If no category has been declared, the class will be put in the 
7866 \begin_inset Quotes eld
7867 \end_inset
7868
7869 Uncategorized
7870 \begin_inset Quotes erd
7871 \end_inset
7872
7873  group.
7874 \end_layout
7875
7876 \begin_layout Standard
7877 Let's assume that you wrote your own text class that uses the 
7878 \begin_inset Flex Code
7879 status collapsed
7880
7881 \begin_layout Plain Layout
7882 article.cls
7883 \end_layout
7884
7885 \end_inset
7886
7887  document class, but where you changed the appearance of the section headings.
7888  If you put it in a file 
7889 \begin_inset Flex Code
7890 status collapsed
7891
7892 \begin_layout Plain Layout
7893 myarticle.layout
7894 \end_layout
7895
7896 \end_inset
7897
7898 , the header of this file should be:
7899 \end_layout
7900
7901 \begin_layout LyX-Code
7902
7903 \size small
7904 #% Do not delete the line below; configure depends on this 
7905 \end_layout
7906
7907 \begin_layout LyX-Code
7908
7909 \size small
7910 #  
7911 \backslash
7912 DeclareLaT
7913 \size default
7914
7915 \begin_inset ERT
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919
7920 {}
7921 \end_layout
7922
7923 \end_inset
7924
7925
7926 \size small
7927 eXClass[article]{Article (with My Own Headings)}
7928 \end_layout
7929
7930 \begin_layout LyX-Code
7931
7932 \size small
7933 #  
7934 \backslash
7935 DeclareCategory{Articles}
7936 \end_layout
7937
7938 \begin_layout Standard
7939 This declares a text class 
7940 \begin_inset Flex Code
7941 status collapsed
7942
7943 \begin_layout Plain Layout
7944 myarticle
7945 \end_layout
7946
7947 \end_inset
7948
7949 , associated with the \SpecialChar LaTeX
7950  document class 
7951 \begin_inset Flex Code
7952 status collapsed
7953
7954 \begin_layout Plain Layout
7955 article.cls
7956 \end_layout
7957
7958 \end_inset
7959
7960  and described as 
7961 \begin_inset Quotes eld
7962 \end_inset
7963
7964 Article (with My Own Headings)
7965 \begin_inset Quotes erd
7966 \end_inset
7967
7968 .
7969  If your text class depends on several packages, you can declare it as:
7970 \end_layout
7971
7972 \begin_layout LyX-Code
7973
7974 \size small
7975 #% Do not delete the line below; configure depends on this 
7976 \end_layout
7977
7978 \begin_layout LyX-Code
7979
7980 \size small
7981 #  
7982 \backslash
7983 DeclareLaT
7984 \size default
7985
7986 \begin_inset ERT
7987 status collapsed
7988
7989 \begin_layout Plain Layout
7990
7991 {}
7992 \end_layout
7993
7994 \end_inset
7995
7996
7997 \size small
7998 eXClass[article,foo.sty]{Article (with My Own Headings)}
7999 \end_layout
8000
8001 \begin_layout LyX-Code
8002
8003 \size small
8004 #  
8005 \backslash
8006 DeclareCategory{Articles}
8007 \end_layout
8008
8009 \begin_layout Standard
8010 This indicates that your text class uses the 
8011 \begin_inset Flex Code
8012 status collapsed
8013
8014 \begin_layout Plain Layout
8015 foo.sty
8016 \end_layout
8017
8018 \end_inset
8019
8020  package.
8021  Finally, it is also possible to declare classes for DocBook code.
8022  Typical declarations will look like:
8023 \end_layout
8024
8025 \begin_layout LyX-Code
8026
8027 \size small
8028 #% Do not delete the line below; configure depends on this 
8029 \end_layout
8030
8031 \begin_layout LyX-Code
8032
8033 \size small
8034
8035 \backslash
8036 DeclareDocBookClass[article]{SGML (DocBook Article)}
8037 \end_layout
8038
8039 \begin_layout LyX-Code
8040
8041 \size small
8042
8043 \backslash
8044 DeclareCategory{Articles (DocBook)}
8045 \end_layout
8046
8047 \begin_layout Standard
8048 Note that these declarations can also be given an optional parameter declaring
8049  the name of the document class (but not a list).
8050 \end_layout
8051
8052 \begin_layout Standard
8053 So, to be as explicit as possible, the form of the layout declaration is:
8054 \end_layout
8055
8056 \begin_layout LyX-Code
8057
8058 \size small
8059 #  
8060 \backslash
8061 DeclareLaT
8062 \size default
8063
8064 \begin_inset ERT
8065 status collapsed
8066
8067 \begin_layout Plain Layout
8068
8069 {}
8070 \end_layout
8071
8072 \end_inset
8073
8074
8075 \size small
8076 eXClass[class,package.sty]{layout description}
8077 \end_layout
8078
8079 \begin_layout LyX-Code
8080
8081 \size small
8082 #  
8083 \backslash
8084 DeclareCategory{category}
8085 \end_layout
8086
8087 \begin_layout Standard
8088 The class need only be specified if the name of the \SpecialChar LaTeX
8089  class file and the
8090  name of the layout file are different or if there are packages to load.
8091  If the name of the class file is not specified, then \SpecialChar LyX
8092  will simply assume
8093  that it is the same as the name of the layout file.
8094 \end_layout
8095
8096 \begin_layout Standard
8097 When the text class has been modified to your taste, all you have to do
8098  is to copy it either to 
8099 \begin_inset Flex Code
8100 status collapsed
8101
8102 \begin_layout Plain Layout
8103 \SpecialChar LyX
8104 Dir/layouts/
8105 \end_layout
8106
8107 \end_inset
8108
8109  or to 
8110 \begin_inset Flex Code
8111 status collapsed
8112
8113 \begin_layout Plain Layout
8114 UserDir/layouts
8115 \end_layout
8116
8117 \end_inset
8118
8119 , run 
8120 \begin_inset Flex MenuItem
8121 status collapsed
8122
8123 \begin_layout Plain Layout
8124 Tools\SpecialChar menuseparator
8125 Reconfigure
8126 \end_layout
8127
8128 \end_inset
8129
8130 , exit \SpecialChar LyX
8131  and restart.
8132  Then your new text class should be available along with the others.
8133 \end_layout
8134
8135 \begin_layout Standard
8136 Once the layout file is installed, you can edit it and see your changes
8137  without having to reconfigure or to restart \SpecialChar LyX
8138 .
8139  
8140 \begin_inset Foot
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 In versions of \SpecialChar LyX
8145  prior to 1.6, this was not true.
8146  As a result, editing layout files was very time consuming, since you had
8147  constantly to restart \SpecialChar LyX
8148  to see changes.
8149 \end_layout
8150
8151 \end_inset
8152
8153  You can force a reload of the current layout by using the \SpecialChar LyX
8154  function 
8155 \begin_inset Flex MenuItem
8156 status collapsed
8157
8158 \begin_layout Plain Layout
8159 layout-reload
8160 \end_layout
8161
8162 \end_inset
8163
8164 .
8165  There is no default binding for this function—though, of course, you can
8166  bind it to a key yourself.
8167  But you will normally use this function simply by entering it in the mini-buffe
8168 r.
8169  
8170 \end_layout
8171
8172 \begin_layout Standard
8173
8174 \emph on
8175 Warning
8176 \emph default
8177
8178 \begin_inset Flex MenuItem
8179 status collapsed
8180
8181 \begin_layout Plain Layout
8182 layout-reload
8183 \end_layout
8184
8185 \end_inset
8186
8187  is very much an `advanced feature'.
8188  It is 
8189 \emph on
8190 strongly
8191 \emph default
8192  recommended that you save your work before using this function.
8193  In fact, it is 
8194 \emph on
8195 strongly
8196 \emph default
8197  recommended that you not attempt to edit layout information while simultaneousl
8198 y working on a document that you care about.
8199  Use a test document.
8200  Syntax errors and the like in your layout file could cause peculiar behavior.
8201  In particular, such errors could cause \SpecialChar LyX
8202  to regard the current layout as
8203  invalid and to attempt to switch to some other layout.
8204 \begin_inset Foot
8205 status collapsed
8206
8207 \begin_layout Plain Layout
8208 Really bad syntax errors may even caused \SpecialChar LyX
8209  to exit.
8210  This is because certain sorts of errors may make \SpecialChar LyX
8211  unable to read 
8212 \emph on
8213 any
8214 \emph default
8215  layout information.
8216  Please be careful.
8217 \end_layout
8218
8219 \end_inset
8220
8221  The \SpecialChar LyX
8222  team strives to keep \SpecialChar LyX
8223  stable in such situations, but safe is better
8224  than sorry.
8225 \begin_inset Foot
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229 While we're giving advice: make regular backups.
8230  And be nice to your mother.
8231 \end_layout
8232
8233 \end_inset
8234
8235
8236 \end_layout
8237
8238 \begin_layout Subsection
8239 The Module declaration
8240 \end_layout
8241
8242 \begin_layout Standard
8243 A module must begin with a line like the following:
8244 \end_layout
8245
8246 \begin_layout LyX-Code
8247 #
8248 \backslash
8249 DeclareL
8250 \begin_inset ERT
8251 status collapsed
8252
8253 \begin_layout Plain Layout
8254
8255 {}
8256 \end_layout
8257
8258 \end_inset
8259
8260 yXModule[endnotes.sty]{Endnotes} 
8261 \end_layout
8262
8263 \begin_layout Standard
8264 The mandatory argument, in curly brackets, is the name of the module, as
8265  it should appear in 
8266 \begin_inset Flex MenuItem
8267 status collapsed
8268
8269 \begin_layout Plain Layout
8270 Document\SpecialChar menuseparator
8271 Settings\SpecialChar menuseparator
8272 Modules
8273 \end_layout
8274
8275 \end_inset
8276
8277 .
8278  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8279  packages
8280  on which the module depends.
8281  It is also possible to use the form 
8282 \begin_inset Flex MenuItem
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286 from->to
8287 \end_layout
8288
8289 \end_inset
8290
8291  as an optional argument, which declares that the module can only be used
8292  when there exists a conversion chain between the formats `
8293 \begin_inset Flex Code
8294 status collapsed
8295
8296 \begin_layout Plain Layout
8297 from
8298 \end_layout
8299
8300 \end_inset
8301
8302 ' and `
8303 \begin_inset Flex Code
8304 status collapsed
8305
8306 \begin_layout Plain Layout
8307 to
8308 \end_layout
8309
8310 \end_inset
8311
8312 '.
8313 \end_layout
8314
8315 \begin_layout Standard
8316 The module declaration should then be followed by lines like the following
8317 \begin_inset Foot
8318 status collapsed
8319
8320 \begin_layout Plain Layout
8321 Preferably in English if the module should be published with \SpecialChar LyX
8322 .
8323  This description will appear in the list of messages to be translated and
8324  will be thus translated with the next interface update.
8325 \end_layout
8326
8327 \end_inset
8328
8329 :
8330 \end_layout
8331
8332 \begin_layout LyX-Code
8333 #DescriptionBegin 
8334 \end_layout
8335
8336 \begin_layout LyX-Code
8337 #Adds an endnote command, in addition to footnotes.
8338  
8339 \end_layout
8340
8341 \begin_layout LyX-Code
8342 #You will need to add  
8343 \backslash
8344 theendnotes in \SpecialChar TeX
8345  code where you 
8346 \end_layout
8347
8348 \begin_layout LyX-Code
8349 #want the endnotes to appear.
8350  
8351 \end_layout
8352
8353 \begin_layout LyX-Code
8354 #DescriptionEnd 
8355 \end_layout
8356
8357 \begin_layout LyX-Code
8358 #Requires: somemodule | othermodule
8359 \end_layout
8360
8361 \begin_layout LyX-Code
8362 #Excludes: badmodule
8363 \end_layout
8364
8365 \begin_layout Standard
8366 The description is used in 
8367 \begin_inset Flex MenuItem
8368 status collapsed
8369
8370 \begin_layout Plain Layout
8371 Document\SpecialChar menuseparator
8372 Settings\SpecialChar menuseparator
8373 Modules
8374 \end_layout
8375
8376 \end_inset
8377
8378  to provide the user with information about what the module does.
8379  The 
8380 \begin_inset Flex Code
8381 status collapsed
8382
8383 \begin_layout Plain Layout
8384 Requires
8385 \end_layout
8386
8387 \end_inset
8388
8389  line is used to identify other modules with which this one must be used;
8390  the 
8391 \begin_inset Flex Code
8392 status collapsed
8393
8394 \begin_layout Plain Layout
8395 Excludes
8396 \end_layout
8397
8398 \end_inset
8399
8400  line is used to identify modules with which this one may not be used.
8401  Both are optional, and, as shown, multiple modules should be separated
8402  with the pipe symbol: |.
8403  Note that the required modules are treated disjunctively: 
8404 \emph on
8405 at least one
8406 \emph default
8407  of the required modules must be used.
8408  Similarly, 
8409 \emph on
8410 no
8411 \emph default
8412  excluded module may be used.
8413  Note that modules are identified here by their filenames without the 
8414 \begin_inset Flex Code
8415 status collapsed
8416
8417 \begin_layout Plain Layout
8418 .module
8419 \end_layout
8420
8421 \end_inset
8422
8423  extension.
8424  So 
8425 \begin_inset Flex Code
8426 status collapsed
8427
8428 \begin_layout Plain Layout
8429 somemodule
8430 \end_layout
8431
8432 \end_inset
8433
8434  is really 
8435 \begin_inset Flex Code
8436 status collapsed
8437
8438 \begin_layout Plain Layout
8439 somemodule.module
8440 \end_layout
8441
8442 \end_inset
8443
8444 .
8445 \end_layout
8446
8447 \begin_layout Subsection
8448 Format number
8449 \end_layout
8450
8451 \begin_layout Standard
8452 The first non-comment line of any layout file, included file, or module
8453  
8454 \emph on
8455 must
8456 \emph default
8457  contain the file format number:
8458 \end_layout
8459
8460 \begin_layout Description
8461 \begin_inset Flex Code
8462 status collapsed
8463
8464 \begin_layout Plain Layout
8465 Format
8466 \end_layout
8467
8468 \end_inset
8469
8470  [
8471 \begin_inset Flex Code
8472 status collapsed
8473
8474 \begin_layout Plain Layout
8475 int
8476 \end_layout
8477
8478 \end_inset
8479
8480 ] The format number of the layout file.
8481 \end_layout
8482
8483 \begin_layout Standard
8484 This tag was introduced with \SpecialChar LyX
8485
8486 \begin_inset space ~
8487 \end_inset
8488
8489 1.4.0.
8490  Layout files from older \SpecialChar LyX
8491  versions do not have an explicit file format and
8492  are considered to have 
8493 \begin_inset Flex Code
8494 status collapsed
8495
8496 \begin_layout Plain Layout
8497 Format
8498 \begin_inset space ~
8499 \end_inset
8500
8501 1
8502 \end_layout
8503
8504 \end_inset
8505
8506 .
8507  The format for the present version of \SpecialChar LyX
8508  is format 35.
8509  But each version of \SpecialChar LyX
8510  is capable of reading earlier versions' layout files,
8511  just as they are capable of reading files produced by earlier versions
8512  of \SpecialChar LyX
8513 .
8514  There is, however, no provision for converting to earlier formats.
8515 \end_layout
8516
8517 \begin_layout Subsection
8518 \begin_inset CommandInset label
8519 LatexCommand label
8520 name "sub:General-text-class"
8521
8522 \end_inset
8523
8524 General text class parameters
8525 \end_layout
8526
8527 \begin_layout Standard
8528 These are general parameters that govern the behavior of an entire document
8529  class.
8530  (This does 
8531 \emph on
8532 not
8533 \emph default
8534  mean that they must appear in 
8535 \begin_inset Flex Code
8536 status collapsed
8537
8538 \begin_layout Plain Layout
8539 .layout
8540 \end_layout
8541
8542 \end_inset
8543
8544  files rather than in modules.
8545  A module can contain any layout tag.)
8546 \end_layout
8547
8548 \begin_layout Description
8549 \begin_inset Flex Code
8550 status collapsed
8551
8552 \begin_layout Plain Layout
8553 AddToHTMLPreamble
8554 \end_layout
8555
8556 \end_inset
8557
8558  Adds information that will be output in the 
8559 \begin_inset Flex Code
8560 status collapsed
8561
8562 \begin_layout Plain Layout
8563 <head>
8564 \end_layout
8565
8566 \end_inset
8567
8568  block when the document is output to XHTML.
8569  Typically, this would be used to output CSS style information, but it can
8570  be used for anything that can appear in 
8571 \begin_inset Flex Code
8572 status collapsed
8573
8574 \begin_layout Plain Layout
8575 <head>
8576 \end_layout
8577
8578 \end_inset
8579
8580 .
8581  Must end with 
8582 \begin_inset Quotes eld
8583 \end_inset
8584
8585
8586 \begin_inset Flex Code
8587 status collapsed
8588
8589 \begin_layout Plain Layout
8590 EndPreamble
8591 \end_layout
8592
8593 \end_inset
8594
8595
8596 \begin_inset Quotes erd
8597 \end_inset
8598
8599 .
8600 \end_layout
8601
8602 \begin_layout Description
8603 \begin_inset Flex Code
8604 status collapsed
8605
8606 \begin_layout Plain Layout
8607 AddToPreamble
8608 \end_layout
8609
8610 \end_inset
8611
8612  Adds information to the document preamble.
8613  Must end with
8614 \begin_inset Newline newline
8615 \end_inset
8616
8617
8618 \begin_inset Quotes eld
8619 \end_inset
8620
8621
8622 \begin_inset Flex Code
8623 status collapsed
8624
8625 \begin_layout Plain Layout
8626 EndPreamble
8627 \end_layout
8628
8629 \end_inset
8630
8631
8632 \begin_inset Quotes erd
8633 \end_inset
8634
8635 .
8636 \end_layout
8637
8638 \begin_layout Description
8639 \begin_inset Flex Code
8640 status collapsed
8641
8642 \begin_layout Plain Layout
8643 CiteFormat
8644 \end_layout
8645
8646 \end_inset
8647
8648  Defines formats for use in the display of bibliographic information.
8649  See 
8650 \begin_inset CommandInset ref
8651 LatexCommand ref
8652 reference "sub:Citation-format-description"
8653
8654 \end_inset
8655
8656  for details.
8657  Must end with 
8658 \begin_inset Quotes eld
8659 \end_inset
8660
8661
8662 \begin_inset Flex Code
8663 status collapsed
8664
8665 \begin_layout Plain Layout
8666 End
8667 \end_layout
8668
8669 \end_inset
8670
8671
8672 \begin_inset Quotes erd
8673 \end_inset
8674
8675 .
8676 \end_layout
8677
8678 \begin_layout Description
8679 \begin_inset Flex Code
8680 status collapsed
8681
8682 \begin_layout Plain Layout
8683 ClassOptions
8684 \end_layout
8685
8686 \end_inset
8687
8688  Describes various global options supported by the document class.
8689  See 
8690 \begin_inset CommandInset ref
8691 LatexCommand ref
8692 reference "sub:ClassOptions"
8693
8694 \end_inset
8695
8696  for a description.
8697  Must end with 
8698 \begin_inset Quotes eld
8699 \end_inset
8700
8701
8702 \begin_inset Flex Code
8703 status collapsed
8704
8705 \begin_layout Plain Layout
8706 End
8707 \end_layout
8708
8709 \end_inset
8710
8711
8712 \begin_inset Quotes erd
8713 \end_inset
8714
8715 .
8716 \end_layout
8717
8718 \begin_layout Description
8719 \begin_inset Flex Code
8720 status collapsed
8721
8722 \begin_layout Plain Layout
8723 Columns
8724 \end_layout
8725
8726 \end_inset
8727
8728  [
8729 \begin_inset Flex Code
8730 status collapsed
8731
8732 \begin_layout Plain Layout
8733
8734 \emph on
8735 1
8736 \end_layout
8737
8738 \end_inset
8739
8740 ,
8741 \begin_inset space \thinspace{}
8742 \end_inset
8743
8744
8745 \begin_inset Flex Code
8746 status collapsed
8747
8748 \begin_layout Plain Layout
8749 2
8750 \end_layout
8751
8752 \end_inset
8753
8754 ] Whether the class should 
8755 \emph on
8756 default
8757 \emph default
8758  to having one or two columns.
8759  Can be changed in the 
8760 \begin_inset Flex MenuItem
8761 status collapsed
8762
8763 \begin_layout Plain Layout
8764 Document\SpecialChar menuseparator
8765 Settings
8766 \end_layout
8767
8768 \end_inset
8769
8770  dialog.
8771 \end_layout
8772
8773 \begin_layout Description
8774 \begin_inset Flex Code
8775 status collapsed
8776
8777 \begin_layout Plain Layout
8778 Counter
8779 \end_layout
8780
8781 \end_inset
8782
8783  [
8784 \begin_inset Flex Code
8785 status collapsed
8786
8787 \begin_layout Plain Layout
8788 string
8789 \end_layout
8790
8791 \end_inset
8792
8793 ] This sequence defines the properties for a counter.
8794  If the counter does not yet exist, it is created; if it does exist, it
8795  is modified.
8796  Must end with 
8797 \begin_inset Quotes eld
8798 \end_inset
8799
8800
8801 \begin_inset Flex Code
8802 status collapsed
8803
8804 \begin_layout Plain Layout
8805 End
8806 \end_layout
8807
8808 \end_inset
8809
8810
8811 \begin_inset Quotes erd
8812 \end_inset
8813
8814 .
8815 \begin_inset Newline newline
8816 \end_inset
8817
8818 See 
8819 \begin_inset CommandInset ref
8820 LatexCommand ref
8821 reference "sub:Counters"
8822
8823 \end_inset
8824
8825  for details on counters.
8826 \end_layout
8827
8828 \begin_layout Description
8829 \begin_inset Flex Code
8830 status collapsed
8831
8832 \begin_layout Plain Layout
8833 DefaultFont
8834 \end_layout
8835
8836 \end_inset
8837
8838  Sets the default font used to display the document.
8839  See 
8840 \begin_inset CommandInset ref
8841 LatexCommand ref
8842 reference "sub:Font-description"
8843
8844 \end_inset
8845
8846  for how to declare fonts.
8847  Must end with 
8848 \begin_inset Quotes eld
8849 \end_inset
8850
8851
8852 \begin_inset Flex Code
8853 status collapsed
8854
8855 \begin_layout Plain Layout
8856 EndFont
8857 \end_layout
8858
8859 \end_inset
8860
8861
8862 \begin_inset Quotes erd
8863 \end_inset
8864
8865 .
8866 \end_layout
8867
8868 \begin_layout Description
8869 \begin_inset Flex Code
8870 status collapsed
8871
8872 \begin_layout Plain Layout
8873 DefaultModule
8874 \end_layout
8875
8876 \end_inset
8877
8878  [
8879 \begin_inset Flex Code
8880 status collapsed
8881
8882 \begin_layout Plain Layout
8883 <module>
8884 \end_layout
8885
8886 \end_inset
8887
8888 ] Specifies a module to be included by default with this document class.
8889  The module is specified as filename without the 
8890 \begin_inset Flex Code
8891 status collapsed
8892
8893 \begin_layout Plain Layout
8894 .module
8895 \end_layout
8896
8897 \end_inset
8898
8899  extension.
8900  The user can still remove the module, but it will be active at the outset.
8901  (This applies only when new files are created, or when this class is chosen
8902  for an existing document.)
8903 \end_layout
8904
8905 \begin_layout Description
8906 \begin_inset Flex Code
8907 status collapsed
8908
8909 \begin_layout Plain Layout
8910 DefaultStyle
8911 \end_layout
8912
8913 \end_inset
8914
8915  [
8916 \begin_inset Flex Code
8917 status collapsed
8918
8919 \begin_layout Plain Layout
8920 <style>
8921 \end_layout
8922
8923 \end_inset
8924
8925 ] This is the style that will be assigned to new paragraphs, usually 
8926 \begin_inset Flex MenuItem
8927 status collapsed
8928
8929 \begin_layout Plain Layout
8930 Standard
8931 \end_layout
8932
8933 \end_inset
8934
8935 .
8936  This will default to the first defined style if not given, but you are
8937  encouraged to use this directive.
8938 \end_layout
8939
8940 \begin_layout Description
8941 \begin_inset Flex Code
8942 status collapsed
8943
8944 \begin_layout Plain Layout
8945 ExcludesModule
8946 \end_layout
8947
8948 \end_inset
8949
8950  [
8951 \begin_inset Flex Code
8952 status collapsed
8953
8954 \begin_layout Plain Layout
8955 <module>
8956 \end_layout
8957
8958 \end_inset
8959
8960 ] This tag indicates that the module (which is specified by filename without
8961  the 
8962 \begin_inset Flex Code
8963 status collapsed
8964
8965 \begin_layout Plain Layout
8966 .module
8967 \end_layout
8968
8969 \end_inset
8970
8971  extension) cannot be used with this document class.
8972  This might be used in a journal-specific layout file to prevent, say, the
8973  use of the 
8974 \begin_inset Flex Code
8975 status collapsed
8976
8977 \begin_layout Plain Layout
8978 theorems-sec
8979 \end_layout
8980
8981 \end_inset
8982
8983  module that numbers theorems by section.
8984  This tag may 
8985 \emph on
8986 not
8987 \emph default
8988  be used in a module.
8989  Modules have their own way of excluding other modules (see 
8990 \begin_inset CommandInset ref
8991 LatexCommand ref
8992 reference "sub:Layout-modules"
8993
8994 \end_inset
8995
8996 ).
8997 \end_layout
8998
8999 \begin_layout Description
9000 \begin_inset Flex Code
9001 status collapsed
9002
9003 \begin_layout Plain Layout
9004 Float
9005 \end_layout
9006
9007 \end_inset
9008
9009  Defines a new float.
9010  See 
9011 \begin_inset CommandInset ref
9012 LatexCommand ref
9013 reference "sub:Floats"
9014
9015 \end_inset
9016
9017  for details.
9018  Must end with 
9019 \begin_inset Quotes eld
9020 \end_inset
9021
9022
9023 \begin_inset Flex Code
9024 status collapsed
9025
9026 \begin_layout Plain Layout
9027 End
9028 \end_layout
9029
9030 \end_inset
9031
9032
9033 \begin_inset Quotes erd
9034 \end_inset
9035
9036 .
9037 \end_layout
9038
9039 \begin_layout Description
9040 \begin_inset Flex Code
9041 status collapsed
9042
9043 \begin_layout Plain Layout
9044 HTMLPreamble
9045 \end_layout
9046
9047 \end_inset
9048
9049  Sets the information that will be output in the 
9050 \begin_inset Flex Code
9051 status collapsed
9052
9053 \begin_layout Plain Layout
9054 <head>
9055 \end_layout
9056
9057 \end_inset
9058
9059  block when this document class is output to XHTML.
9060  Note that this will completely override any prior 
9061 \begin_inset Flex Code
9062 status collapsed
9063
9064 \begin_layout Plain Layout
9065 HTMLPreamble
9066 \end_layout
9067
9068 \end_inset
9069
9070  or 
9071 \begin_inset Flex Code
9072 status collapsed
9073
9074 \begin_layout Plain Layout
9075 AddToHTMLPreamble
9076 \end_layout
9077
9078 \end_inset
9079
9080  declarations.
9081  (Use
9082 \begin_inset Newline newline
9083 \end_inset
9084
9085
9086 \begin_inset Flex Code
9087 status collapsed
9088
9089 \begin_layout Plain Layout
9090 AddToHTMLPreamble
9091 \end_layout
9092
9093 \end_inset
9094
9095  if you just want to add material to the preamble.) Must end with 
9096 \begin_inset Quotes eld
9097 \end_inset
9098
9099
9100 \begin_inset Flex Code
9101 status collapsed
9102
9103 \begin_layout Plain Layout
9104 EndPreamble
9105 \end_layout
9106
9107 \end_inset
9108
9109
9110 \begin_inset Quotes erd
9111 \end_inset
9112
9113 .
9114 \end_layout
9115
9116 \begin_layout Description
9117 \begin_inset Flex Code
9118 status collapsed
9119
9120 \begin_layout Plain Layout
9121 HTMLTOCSection
9122 \end_layout
9123
9124 \end_inset
9125
9126  [
9127 \begin_inset Flex Code
9128 status collapsed
9129
9130 \begin_layout Plain Layout
9131 <style>
9132 \end_layout
9133
9134 \end_inset
9135
9136 ] The style to use for the table of contents, bibliography, and so forth,
9137  when the document is output to HTML.
9138  For articles, this should normally be 
9139 \begin_inset Flex Code
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 Section
9144 \end_layout
9145
9146 \end_inset
9147
9148 ; for books 
9149 \begin_inset Flex Code
9150 status collapsed
9151
9152 \begin_layout Plain Layout
9153 Chapter
9154 \end_layout
9155
9156 \end_inset
9157
9158 .
9159  If it is not given, then \SpecialChar LyX
9160  will attempt to figure out which layout to use.
9161 \end_layout
9162
9163 \begin_layout Description
9164 \begin_inset Flex Code
9165 status collapsed
9166
9167 \begin_layout Plain Layout
9168 IfCounter
9169 \end_layout
9170
9171 \end_inset
9172
9173  [
9174 \begin_inset Flex Code
9175 status collapsed
9176
9177 \begin_layout Plain Layout
9178 <counter>
9179 \end_layout
9180
9181 \end_inset
9182
9183 ] Modifies the properties of the given counter.
9184  If the counter does not exist, the statement is ignored.
9185  Must end with 
9186 \begin_inset Quotes eld
9187 \end_inset
9188
9189
9190 \begin_inset Flex Code
9191 status collapsed
9192
9193 \begin_layout Plain Layout
9194 End
9195 \end_layout
9196
9197 \end_inset
9198
9199
9200 \begin_inset Quotes erd
9201 \end_inset
9202
9203 .
9204 \begin_inset Newline newline
9205 \end_inset
9206
9207 See 
9208 \begin_inset CommandInset ref
9209 LatexCommand ref
9210 reference "sub:Counters"
9211
9212 \end_inset
9213
9214  for details on counters.
9215 \end_layout
9216
9217 \begin_layout Description
9218 \begin_inset Flex Code
9219 status collapsed
9220
9221 \begin_layout Plain Layout
9222 IfStyle
9223 \end_layout
9224
9225 \end_inset
9226
9227  [
9228 \begin_inset Flex Code
9229 status collapsed
9230
9231 \begin_layout Plain Layout
9232 <style>
9233 \end_layout
9234
9235 \end_inset
9236
9237 ] Modifies the properties of the given paragraph style.
9238  If the style does not exist, the statement is ignored.
9239  Must end with 
9240 \begin_inset Quotes eld
9241 \end_inset
9242
9243
9244 \begin_inset Flex Code
9245 status collapsed
9246
9247 \begin_layout Plain Layout
9248 End
9249 \end_layout
9250
9251 \end_inset
9252
9253
9254 \begin_inset Quotes erd
9255 \end_inset
9256
9257 .
9258 \end_layout
9259
9260 \begin_layout Description
9261 \begin_inset Flex Code
9262 status collapsed
9263
9264 \begin_layout Plain Layout
9265 Input
9266 \end_layout
9267
9268 \end_inset
9269
9270  [
9271 \begin_inset Flex Code
9272 status collapsed
9273
9274 \begin_layout Plain Layout
9275 <filename>
9276 \end_layout
9277
9278 \end_inset
9279
9280 ] This allows you to include another layout definition file within yours
9281  to avoid duplicating commands.
9282  Common examples are the standard layout files, for example, 
9283 \begin_inset Flex Code
9284 status collapsed
9285
9286 \begin_layout Plain Layout
9287 stdclass.inc
9288 \end_layout
9289
9290 \end_inset
9291
9292 , which contains most of the basic layouts.
9293 \end_layout
9294
9295 \begin_layout Description
9296 \begin_inset Flex Code
9297 status collapsed
9298
9299 \begin_layout Plain Layout
9300 InsetLayout
9301 \end_layout
9302
9303 \end_inset
9304
9305  [
9306 \begin_inset Flex Code
9307 status collapsed
9308
9309 \begin_layout Plain Layout
9310 <type>
9311 \end_layout
9312
9313 \end_inset
9314
9315 ] This section (re-)defines the layout of an inset.
9316  It can be applied to an existing inset or to a new, user-defined inset,
9317  e.g., a new character style.
9318  Must end with 
9319 \begin_inset Quotes eld
9320 \end_inset
9321
9322
9323 \begin_inset Flex Code
9324 status collapsed
9325
9326 \begin_layout Plain Layout
9327 End
9328 \end_layout
9329
9330 \end_inset
9331
9332
9333 \begin_inset Quotes erd
9334 \end_inset
9335
9336 .
9337 \begin_inset Newline newline
9338 \end_inset
9339
9340 See 
9341 \begin_inset CommandInset ref
9342 LatexCommand ref
9343 reference "sub:Flex-insets-and"
9344
9345 \end_inset
9346
9347  for more information.
9348  
9349 \end_layout
9350
9351 \begin_layout Description
9352 \begin_inset Flex Code
9353 status collapsed
9354
9355 \begin_layout Plain Layout
9356 LeftMargin
9357 \end_layout
9358
9359 \end_inset
9360
9361  [
9362 \begin_inset Flex Code
9363 status collapsed
9364
9365 \begin_layout Plain Layout
9366 string
9367 \end_layout
9368
9369 \end_inset
9370
9371 ] A string that indicates the width of the left margin on the screen, for
9372  example, 
9373 \begin_inset Quotes eld
9374 \end_inset
9375
9376
9377 \begin_inset Flex Code
9378 status collapsed
9379
9380 \begin_layout Plain Layout
9381 MMMMM
9382 \end_layout
9383
9384 \end_inset
9385
9386
9387 \begin_inset Quotes erd
9388 \end_inset
9389
9390 .
9391  (Note that this is not a `length', like 
9392 \begin_inset Quotes eld
9393 \end_inset
9394
9395 2ex
9396 \begin_inset Quotes erd
9397 \end_inset
9398
9399 .)
9400 \end_layout
9401
9402 \begin_layout Description
9403 \begin_inset Flex Code
9404 status collapsed
9405
9406 \begin_layout Plain Layout
9407 NoCounter
9408 \end_layout
9409
9410 \end_inset
9411
9412  [
9413 \begin_inset Flex Code
9414 status collapsed
9415
9416 \begin_layout Plain Layout
9417 <counter>
9418 \end_layout
9419
9420 \end_inset
9421
9422 ] Deletes an existing counter, usually one defined in an included file.
9423 \end_layout
9424
9425 \begin_layout Description
9426 \begin_inset Flex Code
9427 status collapsed
9428
9429 \begin_layout Plain Layout
9430 NoFloat
9431 \end_layout
9432
9433 \end_inset
9434
9435  [
9436 \begin_inset Flex Code
9437 status collapsed
9438
9439 \begin_layout Plain Layout
9440 <float>
9441 \end_layout
9442
9443 \end_inset
9444
9445 ] Deletes an existing float.
9446  This is particularly useful when you want to suppress a float that has
9447  been defined in an input file.
9448 \end_layout
9449
9450 \begin_layout Description
9451 \begin_inset Flex Code
9452 status collapsed
9453
9454 \begin_layout Plain Layout
9455 NoStyle
9456 \end_layout
9457
9458 \end_inset
9459
9460  [
9461 \begin_inset Flex Code
9462 status collapsed
9463
9464 \begin_layout Plain Layout
9465 <style>
9466 \end_layout
9467
9468 \end_inset
9469
9470 ] Deletes an existing style.
9471 \end_layout
9472
9473 \begin_layout Description
9474 \begin_inset Flex Code
9475 status collapsed
9476
9477 \begin_layout Plain Layout
9478 OutputFormat
9479 \end_layout
9480
9481 \end_inset
9482
9483  [
9484 \begin_inset Flex Code
9485 status collapsed
9486
9487 \begin_layout Plain Layout
9488 <format>
9489 \end_layout
9490
9491 \end_inset
9492
9493 ] The file format (as defined in the \SpecialChar LyX
9494  preferences) produced by this document
9495  class.
9496  It is mainly useful when 
9497 \begin_inset Flex Code
9498 status collapsed
9499
9500 \begin_layout Plain Layout
9501 OutputType
9502 \end_layout
9503
9504 \end_inset
9505
9506  is 
9507 \begin_inset Flex Code
9508 status collapsed
9509
9510 \begin_layout Plain Layout
9511 literate
9512 \end_layout
9513
9514 \end_inset
9515
9516  and one wants to define a new type of literate document.
9517  The format is reset to 
9518 \begin_inset Quotes eld
9519 \end_inset
9520
9521
9522 \begin_inset Flex Code
9523 status collapsed
9524
9525 \begin_layout Plain Layout
9526 docbook
9527 \end_layout
9528
9529 \end_inset
9530
9531
9532 \begin_inset Quotes erd
9533 \end_inset
9534
9535  or 
9536 \begin_inset Quotes eld
9537 \end_inset
9538
9539
9540 \begin_inset Flex Code
9541 status collapsed
9542
9543 \begin_layout Plain Layout
9544 latex
9545 \end_layout
9546
9547 \end_inset
9548
9549
9550 \begin_inset Quotes erd
9551 \end_inset
9552
9553  when the corresponding 
9554 \begin_inset Flex Code
9555 status collapsed
9556
9557 \begin_layout Plain Layout
9558 OutputType
9559 \end_layout
9560
9561 \end_inset
9562
9563  parameter is encountered.
9564 \end_layout
9565
9566 \begin_layout Description
9567 \begin_inset Flex Code
9568 status collapsed
9569
9570 \begin_layout Plain Layout
9571 OutputType
9572 \end_layout
9573
9574 \end_inset
9575
9576  [
9577 \begin_inset Flex Code
9578 status collapsed
9579
9580 \begin_layout Plain Layout
9581
9582 \emph on
9583 lat
9584 \emph default
9585 ex
9586 \end_layout
9587
9588 \end_inset
9589
9590
9591 \begin_inset Flex Code
9592 status collapsed
9593
9594 \begin_layout Plain Layout
9595 docbook
9596 \end_layout
9597
9598 \end_inset
9599
9600
9601 \begin_inset Flex Code
9602 status collapsed
9603
9604 \begin_layout Plain Layout
9605 literate
9606 \end_layout
9607
9608 \end_inset
9609
9610 ] Specifies what sort of output documents using this class will produce.
9611 \end_layout
9612
9613 \begin_layout Description
9614 \begin_inset Flex Code
9615 status collapsed
9616
9617 \begin_layout Plain Layout
9618 PackageOptions
9619 \end_layout
9620
9621 \end_inset
9622
9623  [
9624 \begin_inset Flex Code
9625 status collapsed
9626
9627 \begin_layout Plain Layout
9628 string
9629 \end_layout
9630
9631 \end_inset
9632
9633  
9634 \begin_inset Flex Code
9635 status collapsed
9636
9637 \begin_layout Plain Layout
9638 string
9639 \end_layout
9640
9641 \end_inset
9642
9643 ] Specifies options, given in the second string, for the package named by
9644  the first string.
9645  For example, 
9646 \begin_inset Quotes eld
9647 \end_inset
9648
9649
9650 \begin_inset Flex Code
9651 status collapsed
9652
9653 \begin_layout Plain Layout
9654 PackageOptions natbib square
9655 \end_layout
9656
9657 \end_inset
9658
9659
9660 \begin_inset Quotes erd
9661 \end_inset
9662
9663  will cause 
9664 \begin_inset Flex Code
9665 status collapsed
9666
9667 \begin_layout Plain Layout
9668 natbib
9669 \end_layout
9670
9671 \end_inset
9672
9673  to be loaded with the 
9674 \begin_inset Flex Code
9675 status collapsed
9676
9677 \begin_layout Plain Layout
9678 square
9679 \end_layout
9680
9681 \end_inset
9682
9683  option.
9684  (For \SpecialChar TeX
9685 perts, this causes \SpecialChar LyX
9686  to output: 
9687 \begin_inset Flex Code
9688 status collapsed
9689
9690 \begin_layout Plain Layout
9691
9692 \backslash
9693 PassOptionsToPackage{natbib}{square}
9694 \end_layout
9695
9696 \end_inset
9697
9698  prior to loading 
9699 \begin_inset Flex Code
9700 status collapsed
9701
9702 \begin_layout Plain Layout
9703 natbib
9704 \end_layout
9705
9706 \end_inset
9707
9708 .)
9709 \end_layout
9710
9711 \begin_layout Description
9712 \begin_inset Flex Code
9713 status collapsed
9714
9715 \begin_layout Plain Layout
9716 PageStyle
9717 \end_layout
9718
9719 \end_inset
9720
9721  [
9722 \begin_inset Flex Code
9723 status collapsed
9724
9725 \begin_layout Plain Layout
9726
9727 \emph on
9728 plain
9729 \end_layout
9730
9731 \end_inset
9732
9733
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 empty
9739 \end_layout
9740
9741 \end_inset
9742
9743
9744 \begin_inset Flex Code
9745 status collapsed
9746
9747 \begin_layout Plain Layout
9748 headings
9749 \end_layout
9750
9751 \end_inset
9752
9753 ] The default pagestyle.
9754  Can be changed in the 
9755 \begin_inset Flex MenuItem
9756 status collapsed
9757
9758 \begin_layout Plain Layout
9759 Document\SpecialChar menuseparator
9760 Settings
9761 \end_layout
9762
9763 \end_inset
9764
9765  dialog.
9766 \end_layout
9767
9768 \begin_layout Description
9769 \begin_inset Flex Code
9770 status collapsed
9771
9772 \begin_layout Plain Layout
9773 Preamble
9774 \end_layout
9775
9776 \end_inset
9777
9778  Sets the preamble for the \SpecialChar LaTeX
9779  document.
9780  Note that this will completely override any prior 
9781 \begin_inset Flex Code
9782 status collapsed
9783
9784 \begin_layout Plain Layout
9785 Preamble
9786 \end_layout
9787
9788 \end_inset
9789
9790  or 
9791 \begin_inset Flex Code
9792 status collapsed
9793
9794 \begin_layout Plain Layout
9795 AddToPreamble
9796 \end_layout
9797
9798 \end_inset
9799
9800  declarations.
9801  (Use 
9802 \begin_inset Flex Code
9803 status collapsed
9804
9805 \begin_layout Plain Layout
9806 AddToPreamble
9807 \end_layout
9808
9809 \end_inset
9810
9811  if you just want to add material to the preamble.) Must end with 
9812 \begin_inset Quotes eld
9813 \end_inset
9814
9815
9816 \begin_inset Flex Code
9817 status collapsed
9818
9819 \begin_layout Plain Layout
9820 EndPreamble
9821 \end_layout
9822
9823 \end_inset
9824
9825
9826 \begin_inset Quotes erd
9827 \end_inset
9828
9829 .
9830 \end_layout
9831
9832 \begin_layout Description
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 Provides
9838 \end_layout
9839
9840 \end_inset
9841
9842  [
9843 \begin_inset Flex Code
9844 status collapsed
9845
9846 \begin_layout Plain Layout
9847 string
9848 \end_layout
9849
9850 \end_inset
9851
9852 ] [
9853 \begin_inset Flex Code
9854 status collapsed
9855
9856 \begin_layout Plain Layout
9857
9858 \emph on
9859 0
9860 \end_layout
9861
9862 \end_inset
9863
9864 ,
9865 \begin_inset space \thinspace{}
9866 \end_inset
9867
9868
9869 \begin_inset Flex Code
9870 status collapsed
9871
9872 \begin_layout Plain Layout
9873 1
9874 \end_layout
9875
9876 \end_inset
9877
9878 ] Whether the class already provides the feature 
9879 \begin_inset Flex Code
9880 status collapsed
9881
9882 \begin_layout Plain Layout
9883 string
9884 \end_layout
9885
9886 \end_inset
9887
9888 .
9889  A feature is in general the name of a package (e.
9890 \begin_inset space \thinspace{}
9891 \end_inset
9892
9893 g.
9894 \begin_inset space \space{}
9895 \end_inset
9896
9897
9898 \begin_inset Flex Code
9899 status collapsed
9900
9901 \begin_layout Plain Layout
9902 amsmath
9903 \end_layout
9904
9905 \end_inset
9906
9907  or 
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 makeidx
9913 \end_layout
9914
9915 \end_inset
9916
9917 ) or a macro (e.
9918 \begin_inset space \thinspace{}
9919 \end_inset
9920
9921 g.
9922 \begin_inset space \space{}
9923 \end_inset
9924
9925
9926 \begin_inset Flex Code
9927 status collapsed
9928
9929 \begin_layout Plain Layout
9930 url
9931 \end_layout
9932
9933 \end_inset
9934
9935  or 
9936 \begin_inset Flex Code
9937 status collapsed
9938
9939 \begin_layout Plain Layout
9940 boldsymbol
9941 \end_layout
9942
9943 \end_inset
9944
9945 ).
9946  See 
9947 \begin_inset CommandInset ref
9948 LatexCommand ref
9949 reference "chap:List-of-functions"
9950
9951 \end_inset
9952
9953  for the list of features.
9954 \end_layout
9955
9956 \begin_layout Description
9957 \begin_inset Flex Code
9958 status collapsed
9959
9960 \begin_layout Plain Layout
9961 ProvidesModule
9962 \end_layout
9963
9964 \end_inset
9965
9966  [
9967 \begin_inset Flex Code
9968 status collapsed
9969
9970 \begin_layout Plain Layout
9971 string
9972 \end_layout
9973
9974 \end_inset
9975
9976 ] Indicates that this layout provides the functionality of the module mentioned,
9977  which should be specified by the filename without the 
9978 \begin_inset Flex Code
9979 status collapsed
9980
9981 \begin_layout Plain Layout
9982 .module
9983 \end_layout
9984
9985 \end_inset
9986
9987  extension.
9988  This will typically be used if the layout includes the module directly,
9989  rather than using the 
9990 \begin_inset Flex Code
9991 status collapsed
9992
9993 \begin_layout Plain Layout
9994 DefaultModule
9995 \end_layout
9996
9997 \end_inset
9998
9999  tag to indicate that it ought to be used.
10000  It could also be used in a module that provided an alternate implementation
10001  of the same functionality.
10002 \end_layout
10003
10004 \begin_layout Description
10005 \begin_inset Flex Code
10006 status collapsed
10007
10008 \begin_layout Plain Layout
10009 Requires
10010 \end_layout
10011
10012 \end_inset
10013
10014  [
10015 \begin_inset Flex Code
10016 status collapsed
10017
10018 \begin_layout Plain Layout
10019 string
10020 \end_layout
10021
10022 \end_inset
10023
10024 ] Whether the class requires the feature 
10025 \begin_inset Flex Code
10026 status collapsed
10027
10028 \begin_layout Plain Layout
10029 string
10030 \end_layout
10031
10032 \end_inset
10033
10034 .
10035  Multiple features must be separated by commas.
10036  Note that you can only request supported features.
10037  (See 
10038 \begin_inset CommandInset ref
10039 LatexCommand ref
10040 reference "chap:List-of-functions"
10041
10042 \end_inset
10043
10044  for the list of features.)
10045 \end_layout
10046
10047 \begin_layout Description
10048 \begin_inset Flex Code
10049 status collapsed
10050
10051 \begin_layout Plain Layout
10052 RightMargin
10053 \end_layout
10054
10055 \end_inset
10056
10057  [
10058 \begin_inset Flex Code
10059 status collapsed
10060
10061 \begin_layout Plain Layout
10062 string
10063 \end_layout
10064
10065 \end_inset
10066
10067 ] A string that indicates the width of the right margin on the screen, for
10068  example, 
10069 \begin_inset Quotes eld
10070 \end_inset
10071
10072
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 MMMMM
10078 \end_layout
10079
10080 \end_inset
10081
10082
10083 \begin_inset Quotes erd
10084 \end_inset
10085
10086 .
10087 \end_layout
10088
10089 \begin_layout Description
10090 \begin_inset Flex Code
10091 status collapsed
10092
10093 \begin_layout Plain Layout
10094 SecNumDepth
10095 \end_layout
10096
10097 \end_inset
10098
10099  [
10100 \begin_inset Flex Code
10101 status collapsed
10102
10103 \begin_layout Plain Layout
10104 int=3
10105 \end_layout
10106
10107 \end_inset
10108
10109 ] Sets which divisions get numbered.
10110  Corresponds to the
10111 \begin_inset Newline newline
10112 \end_inset
10113
10114
10115 \begin_inset Flex Code
10116 status collapsed
10117
10118 \begin_layout Plain Layout
10119 secnumdepth
10120 \end_layout
10121
10122 \end_inset
10123
10124  counter in \SpecialChar LaTeX
10125 .
10126 \end_layout
10127
10128 \begin_layout Description
10129 \begin_inset Flex Code
10130 status collapsed
10131
10132 \begin_layout Plain Layout
10133 Sides
10134 \end_layout
10135
10136 \end_inset
10137
10138  [
10139 \begin_inset Flex Code
10140 status collapsed
10141
10142 \begin_layout Plain Layout
10143
10144 \emph on
10145 1
10146 \end_layout
10147
10148 \end_inset
10149
10150 ,
10151 \begin_inset space \thinspace{}
10152 \end_inset
10153
10154
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159 2
10160 \end_layout
10161
10162 \end_inset
10163
10164 ] Whether the class-default should be printing on one or both sides of the
10165  paper.
10166  Can be changed in the 
10167 \begin_inset Flex MenuItem
10168 status collapsed
10169
10170 \begin_layout Plain Layout
10171 Document\SpecialChar menuseparator
10172 Settings
10173 \end_layout
10174
10175 \end_inset
10176
10177  dialog.
10178 \end_layout
10179
10180 \begin_layout Description
10181 \begin_inset Flex Code
10182 status collapsed
10183
10184 \begin_layout Plain Layout
10185 Style
10186 \end_layout
10187
10188 \end_inset
10189
10190  [
10191 \begin_inset Flex Code
10192 status collapsed
10193
10194 \begin_layout Plain Layout
10195 <name>
10196 \end_layout
10197
10198 \end_inset
10199
10200 ] This sequence defines a paragraph style.
10201  If the style does not yet exist, it is created; if it does exist, its parameter
10202 s are modified.
10203  Must end with 
10204 \begin_inset Quotes eld
10205 \end_inset
10206
10207
10208 \begin_inset Flex Code
10209 status collapsed
10210
10211 \begin_layout Plain Layout
10212 End
10213 \end_layout
10214
10215 \end_inset
10216
10217
10218 \begin_inset Quotes erd
10219 \end_inset
10220
10221 .
10222 \begin_inset Newline newline
10223 \end_inset
10224
10225 See 
10226 \begin_inset CommandInset ref
10227 LatexCommand ref
10228 reference "sub:Paragraph-Styles"
10229
10230 \end_inset
10231
10232  for details on paragraph styles.
10233 \end_layout
10234
10235 \begin_layout Description
10236 \begin_inset Flex Code
10237 status collapsed
10238
10239 \begin_layout Plain Layout
10240 TitleLatexName
10241 \end_layout
10242
10243 \end_inset
10244
10245  [
10246 \begin_inset Flex Code
10247 status collapsed
10248
10249 \begin_layout Plain Layout
10250 string="maketitle"
10251 \end_layout
10252
10253 \end_inset
10254
10255 ] The name of the command or environment to be used with 
10256 \begin_inset Flex Code
10257 status collapsed
10258
10259 \begin_layout Plain Layout
10260 TitleLatexType
10261 \end_layout
10262
10263 \end_inset
10264
10265 .
10266 \end_layout
10267
10268 \begin_layout Description
10269 \begin_inset Flex Code
10270 status collapsed
10271
10272 \begin_layout Plain Layout
10273 TitleLatexType
10274 \end_layout
10275
10276 \end_inset
10277
10278  [
10279 \begin_inset Flex Code
10280 status collapsed
10281
10282 \begin_layout Plain Layout
10283
10284 \emph on
10285 CommandAfter
10286 \end_layout
10287
10288 \end_inset
10289
10290
10291 \begin_inset Flex Code
10292 status collapsed
10293
10294 \begin_layout Plain Layout
10295 Environment
10296 \end_layout
10297
10298 \end_inset
10299
10300 ] Indicates what kind of markup is used to define the title of a document.
10301  
10302 \begin_inset Flex Code
10303 status collapsed
10304
10305 \begin_layout Plain Layout
10306 CommandAfter
10307 \end_layout
10308
10309 \end_inset
10310
10311  means that the macro with name 
10312 \begin_inset Flex Code
10313 status collapsed
10314
10315 \begin_layout Plain Layout
10316 TitleLatexName
10317 \end_layout
10318
10319 \end_inset
10320
10321  will be inserted after the last layout which has 
10322 \begin_inset Quotes eld
10323 \end_inset
10324
10325
10326 \begin_inset Flex Code
10327 status collapsed
10328
10329 \begin_layout Plain Layout
10330 InTitle
10331 \begin_inset space ~
10332 \end_inset
10333
10334 1
10335 \end_layout
10336
10337 \end_inset
10338
10339
10340 \begin_inset Quotes erd
10341 \end_inset
10342
10343 .
10344  
10345 \begin_inset Flex Code
10346 status collapsed
10347
10348 \begin_layout Plain Layout
10349 Environment
10350 \end_layout
10351
10352 \end_inset
10353
10354  corresponds to the case where all layouts which have 
10355 \begin_inset Quotes eld
10356 \end_inset
10357
10358
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363 InTitle
10364 \begin_inset space ~
10365 \end_inset
10366
10367 1
10368 \end_layout
10369
10370 \end_inset
10371
10372
10373 \begin_inset Quotes erd
10374 \end_inset
10375
10376  should be enclosed into the 
10377 \begin_inset Flex Code
10378 status collapsed
10379
10380 \begin_layout Plain Layout
10381 TitleLatexName
10382 \end_layout
10383
10384 \end_inset
10385
10386  environment.
10387 \end_layout
10388
10389 \begin_layout Description
10390 \begin_inset Flex Code
10391 status collapsed
10392
10393 \begin_layout Plain Layout
10394 TocDepth
10395 \end_layout
10396
10397 \end_inset
10398
10399  [
10400 \begin_inset Flex Code
10401 status collapsed
10402
10403 \begin_layout Plain Layout
10404 int=3
10405 \end_layout
10406
10407 \end_inset
10408
10409 ] Sets which divisions are included in the table of contents.
10410  Corresponds to the 
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415 tocdepth
10416 \end_layout
10417
10418 \end_inset
10419
10420  counter in \SpecialChar LaTeX
10421 .
10422 \end_layout
10423
10424 \begin_layout Subsection
10425 \begin_inset Flex Code
10426 status collapsed
10427
10428 \begin_layout Plain Layout
10429 ClassOptions
10430 \end_layout
10431
10432 \end_inset
10433
10434  section
10435 \begin_inset CommandInset label
10436 LatexCommand label
10437 name "sub:ClassOptions"
10438
10439 \end_inset
10440
10441
10442 \end_layout
10443
10444 \begin_layout Standard
10445 The 
10446 \begin_inset Flex Code
10447 status collapsed
10448
10449 \begin_layout Plain Layout
10450 ClassOptions
10451 \end_layout
10452
10453 \end_inset
10454
10455  section can contain the following entries:
10456 \end_layout
10457
10458 \begin_layout Description
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463 FontSize
10464 \end_layout
10465
10466 \end_inset
10467
10468  [
10469 \begin_inset Flex Code
10470 status collapsed
10471
10472 \begin_layout Plain Layout
10473 string="10|11|12"
10474 \end_layout
10475
10476 \end_inset
10477
10478 ] The list of available font sizes for the document's main font, separated
10479  by 
10480 \begin_inset Quotes eld
10481 \end_inset
10482
10483
10484 \begin_inset Flex Code
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488 |
10489 \end_layout
10490
10491 \end_inset
10492
10493
10494 \begin_inset Quotes erd
10495 \end_inset
10496
10497 .
10498 \end_layout
10499
10500 \begin_layout Description
10501 \begin_inset Flex Code
10502 status collapsed
10503
10504 \begin_layout Plain Layout
10505 Header
10506 \end_layout
10507
10508 \end_inset
10509
10510  Used to set the DTD line with XML-based output classes.
10511  E.
10512 \begin_inset space \thinspace{}
10513 \end_inset
10514
10515 g.: PUBLIC 
10516 \begin_inset Quotes eld
10517 \end_inset
10518
10519 -//OASIS//DTD DocBook V4.2//EN
10520 \begin_inset Quotes erd
10521 \end_inset
10522
10523 .
10524 \end_layout
10525
10526 \begin_layout Description
10527 \begin_inset Flex Code
10528 status collapsed
10529
10530 \begin_layout Plain Layout
10531 PageStyle
10532 \end_layout
10533
10534 \end_inset
10535
10536  [
10537 \begin_inset Flex Code
10538 status collapsed
10539
10540 \begin_layout Plain Layout
10541 string="empty|plain|headings|fancy"
10542 \end_layout
10543
10544 \end_inset
10545
10546 ] The list of available page sty\SpecialChar softhyphen
10547 les, separated by 
10548 \begin_inset Quotes eld
10549 \end_inset
10550
10551
10552 \begin_inset Flex Code
10553 status collapsed
10554
10555 \begin_layout Plain Layout
10556 |
10557 \end_layout
10558
10559 \end_inset
10560
10561
10562 \begin_inset Quotes erd
10563 \end_inset
10564
10565 .
10566 \end_layout
10567
10568 \begin_layout Description
10569 \begin_inset Flex Code
10570 status collapsed
10571
10572 \begin_layout Plain Layout
10573 Other
10574 \end_layout
10575
10576 \end_inset
10577
10578  [
10579 \begin_inset Flex Code
10580 status collapsed
10581
10582 \begin_layout Plain Layout
10583 string=""
10584 \end_layout
10585
10586 \end_inset
10587
10588 ] Some document class options, separated by a comma, that will be added
10589  to the optional part of the 
10590 \begin_inset Flex Code
10591 status collapsed
10592
10593 \begin_layout Plain Layout
10594
10595 \backslash
10596 documentclass
10597 \end_layout
10598
10599 \end_inset
10600
10601  command.
10602 \end_layout
10603
10604 \begin_layout Standard
10605 The 
10606 \begin_inset Flex Code
10607 status collapsed
10608
10609 \begin_layout Plain Layout
10610 ClassOptions
10611 \end_layout
10612
10613 \end_inset
10614
10615  section must end with 
10616 \begin_inset Quotes eld
10617 \end_inset
10618
10619
10620 \begin_inset Flex Code
10621 status collapsed
10622
10623 \begin_layout Plain Layout
10624 End
10625 \end_layout
10626
10627 \end_inset
10628
10629
10630 \begin_inset Quotes erd
10631 \end_inset
10632
10633 .
10634 \end_layout
10635
10636 \begin_layout Subsection
10637 Paragraph styles
10638 \begin_inset CommandInset label
10639 LatexCommand label
10640 name "sub:Paragraph-Styles"
10641
10642 \end_inset
10643
10644
10645 \end_layout
10646
10647 \begin_layout Standard
10648 A paragraph style description looks like this:
10649 \begin_inset Foot
10650 status collapsed
10651
10652 \begin_layout Plain Layout
10653 Note that this will either define a new style or modify an existing one.
10654 \end_layout
10655
10656 \end_inset
10657
10658
10659 \end_layout
10660
10661 \begin_layout LyX-Code
10662 Style 
10663 \family roman
10664 \emph on
10665 name
10666 \end_layout
10667
10668 \begin_layout LyX-Code
10669  ...
10670 \end_layout
10671
10672 \begin_layout LyX-Code
10673 End
10674 \end_layout
10675
10676 \begin_layout Standard
10677 where the following commands are allowed:
10678 \end_layout
10679
10680 \begin_layout Description
10681 \begin_inset Flex Code
10682 status collapsed
10683
10684 \begin_layout Plain Layout
10685 Align
10686 \end_layout
10687
10688 \end_inset
10689
10690  [
10691 \begin_inset Flex Code
10692 status collapsed
10693
10694 \begin_layout Plain Layout
10695
10696 \emph on
10697 block
10698 \emph default
10699 , left, right, center
10700 \end_layout
10701
10702 \end_inset
10703
10704 ] Paragraph alignment.
10705 \end_layout
10706
10707 \begin_layout Description
10708 \begin_inset Flex Code
10709 status collapsed
10710
10711 \begin_layout Plain Layout
10712 AlignPossible
10713 \end_layout
10714
10715 \end_inset
10716
10717  [
10718 \begin_inset Flex Code
10719 status collapsed
10720
10721 \begin_layout Plain Layout
10722
10723 \emph on
10724 block
10725 \emph default
10726 , left, right, center
10727 \end_layout
10728
10729 \end_inset
10730
10731 ] A comma separated list of permitted alignments.
10732  (Some \SpecialChar LaTeX
10733  styles prohibit certain alignments, since those wouldn't make sense.
10734  For example a right-aligned or centered enumeration isn't possible.)
10735 \end_layout
10736
10737 \begin_layout Description
10738 \begin_inset Flex Code
10739 status collapsed
10740
10741 \begin_layout Plain Layout
10742 Argument
10743 \end_layout
10744
10745 \end_inset
10746
10747  [
10748 \begin_inset Flex Code
10749 status collapsed
10750
10751 \begin_layout Plain Layout
10752 int
10753 \end_layout
10754
10755 \end_inset
10756
10757 ] Defines argument number <int> of a command\SpecialChar breakableslash
10758 environment associated with
10759  the current style.
10760  This is useful for things like section headings, and only makes sense with
10761  \SpecialChar LaTeX
10762 .
10763  Every (optional or required) argument of a command or environment – except
10764  for the required argument that is associated with the content of the paragraph
10765  itself – has a separate definition, where the number specifies the order
10766  of the arguments.
10767  The definition must end with 
10768 \begin_inset Flex Code
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772 EndArgument
10773 \end_layout
10774
10775 \end_inset
10776
10777 .
10778  So a command with two optional arguments has:
10779 \begin_inset Separator parbreak
10780 \end_inset
10781
10782
10783 \end_layout
10784
10785 \begin_deeper
10786 \begin_layout Quote
10787
10788 \family typewriter
10789 Argument 1
10790 \end_layout
10791
10792 \begin_layout Quote
10793
10794 \family typewriter
10795 ...
10796 \end_layout
10797
10798 \begin_layout Quote
10799
10800 \family typewriter
10801 EndArgument
10802 \end_layout
10803
10804 \begin_layout Quote
10805
10806 \family typewriter
10807 Argument 2
10808 \end_layout
10809
10810 \begin_layout Quote
10811
10812 \family typewriter
10813 ...
10814 \end_layout
10815
10816 \begin_layout Quote
10817
10818 \family typewriter
10819 EndArgument
10820 \end_layout
10821
10822 \begin_layout Standard
10823 Inside the 
10824 \begin_inset Flex Code
10825 status collapsed
10826
10827 \begin_layout Plain Layout
10828 Argument
10829 \end_layout
10830
10831 \end_inset
10832
10833  definition, the following specifications are possible:
10834 \end_layout
10835
10836 \begin_layout Itemize
10837 \begin_inset Flex Code
10838 status collapsed
10839
10840 \begin_layout Plain Layout
10841 LabelString
10842 \end_layout
10843
10844 \end_inset
10845
10846  
10847 \begin_inset Flex Code
10848 status collapsed
10849
10850 \begin_layout Plain Layout
10851 [string]
10852 \end_layout
10853
10854 \end_inset
10855
10856  The string that will appear both in the menu (to insert this argument)
10857  and on the argument inset button (unless you also specify a separate 
10858 \begin_inset Flex Code
10859 status collapsed
10860
10861 \begin_layout Plain Layout
10862 MenuString
10863 \end_layout
10864
10865 \end_inset
10866
10867 ).
10868  For the menu, you can define an accelerator by appending the respective
10869  character to the string, divided by 
10870 \begin_inset Quotes eld
10871 \end_inset
10872
10873 |
10874 \begin_inset Quotes erd
10875 \end_inset
10876
10877  (e.
10878 \begin_inset space \thinspace{}
10879 \end_inset
10880
10881 g.
10882 \begin_inset space \space{}
10883 \end_inset
10884
10885
10886 \begin_inset Quotes eld
10887 \end_inset
10888
10889
10890 \begin_inset Flex Code
10891 status collapsed
10892
10893 \begin_layout Plain Layout
10894 Short Title|S
10895 \end_layout
10896
10897 \end_inset
10898
10899
10900 \begin_inset Quotes erd
10901 \end_inset
10902
10903 ).
10904 \end_layout
10905
10906 \begin_layout Itemize
10907 \begin_inset Flex Code
10908 status collapsed
10909
10910 \begin_layout Plain Layout
10911 MenuString
10912 \end_layout
10913
10914 \end_inset
10915
10916  
10917 \begin_inset Flex Code
10918 status collapsed
10919
10920 \begin_layout Plain Layout
10921 [string]
10922 \end_layout
10923
10924 \end_inset
10925
10926  A separate string for the menu.
10927  You can define an accelerator by appending the respective character to
10928  the string, divided by 
10929 \begin_inset Quotes eld
10930 \end_inset
10931
10932 |
10933 \begin_inset Quotes erd
10934 \end_inset
10935
10936  (e.
10937 \begin_inset space \thinspace{}
10938 \end_inset
10939
10940 g.
10941 \begin_inset space \space{}
10942 \end_inset
10943
10944
10945 \begin_inset Quotes eld
10946 \end_inset
10947
10948
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953 Short Title|S
10954 \end_layout
10955
10956 \end_inset
10957
10958
10959 \begin_inset Quotes erd
10960 \end_inset
10961
10962 ).
10963  This specification is optional.
10964  If it is not given the 
10965 \begin_inset Flex Code
10966 status collapsed
10967
10968 \begin_layout Plain Layout
10969 LabelString
10970 \end_layout
10971
10972 \end_inset
10973
10974  will be used instead for the menu.
10975 \end_layout
10976
10977 \begin_layout Itemize
10978 \begin_inset Flex Code
10979 status collapsed
10980
10981 \begin_layout Plain Layout
10982 Tooltip
10983 \end_layout
10984
10985 \end_inset
10986
10987  
10988 \begin_inset Flex Code
10989 status collapsed
10990
10991 \begin_layout Plain Layout
10992 [string]
10993 \end_layout
10994
10995 \end_inset
10996
10997  A longer explanatory text that appears in the tooltip when hovering over
10998  the argument inset.
10999 \end_layout
11000
11001 \begin_layout Itemize
11002 \begin_inset Flex Code
11003 status collapsed
11004
11005 \begin_layout Plain Layout
11006 Mandatory
11007 \end_layout
11008
11009 \end_inset
11010
11011  [
11012 \begin_inset Flex Code
11013 status collapsed
11014
11015 \begin_layout Plain Layout
11016
11017 \emph on
11018 0
11019 \end_layout
11020
11021 \end_inset
11022
11023 ,
11024 \begin_inset space \thinspace{}
11025 \end_inset
11026
11027
11028 \begin_inset Flex Code
11029 status collapsed
11030
11031 \begin_layout Plain Layout
11032 1
11033 \end_layout
11034
11035 \end_inset
11036
11037 ] Declare if this is a mandatory (1) or an optional (0) argument.
11038  Mandatory arguments will be output empty if not given, while optional arguments
11039  will not be output at all.
11040  By default, mandatory arguments are delimited by 
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045 {...}
11046 \end_layout
11047
11048 \end_inset
11049
11050 , while optional arguments are delimited by 
11051 \begin_inset Flex Code
11052 status collapsed
11053
11054 \begin_layout Plain Layout
11055 [...]
11056 \end_layout
11057
11058 \end_inset
11059
11060
11061 \end_layout
11062
11063 \begin_layout Itemize
11064 \begin_inset Flex Code
11065 status collapsed
11066
11067 \begin_layout Plain Layout
11068 Requires
11069 \end_layout
11070
11071 \end_inset
11072
11073  
11074 \begin_inset Flex Code
11075 status collapsed
11076
11077 \begin_layout Plain Layout
11078 [int=0]
11079 \end_layout
11080
11081 \end_inset
11082
11083  defines another argument (by its number) which this argument requires to
11084  be output if it is itself output.
11085  E.
11086 \begin_inset space \thinspace{}
11087 \end_inset
11088
11089 g., in \SpecialChar LaTeX
11090  commands, optional arguments often require previous optional arguments
11091  to be output (at least empty), as in 
11092 \begin_inset Flex Code
11093 status collapsed
11094
11095 \begin_layout Plain Layout
11096
11097 \backslash
11098 command[][argument]{text}
11099 \end_layout
11100
11101 \end_inset
11102
11103 .
11104  This can be achieved by the statement 
11105 \begin_inset Flex Code
11106 status collapsed
11107
11108 \begin_layout Plain Layout
11109 Requires 1
11110 \end_layout
11111
11112 \end_inset
11113
11114  within 
11115 \begin_inset Flex Code
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119 Argument 2
11120 \end_layout
11121
11122 \end_inset
11123
11124 .
11125 \end_layout
11126
11127 \begin_layout Itemize
11128 \begin_inset Flex Code
11129 status collapsed
11130
11131 \begin_layout Plain Layout
11132 LeftDelim
11133 \end_layout
11134
11135 \end_inset
11136
11137  
11138 \begin_inset Flex Code
11139 status collapsed
11140
11141 \begin_layout Plain Layout
11142 [string]
11143 \end_layout
11144
11145 \end_inset
11146
11147  defines a custom left delimiter (instead of 
11148 \begin_inset Flex Code
11149 status collapsed
11150
11151 \begin_layout Plain Layout
11152 {
11153 \end_layout
11154
11155 \end_inset
11156
11157  or 
11158 \begin_inset Flex Code
11159 status collapsed
11160
11161 \begin_layout Plain Layout
11162 [
11163 \end_layout
11164
11165 \end_inset
11166
11167 ).
11168  A line break in the output can be indicated by 
11169 \begin_inset Flex Code
11170 status collapsed
11171
11172 \begin_layout Plain Layout
11173 <br/>
11174 \end_layout
11175
11176 \end_inset
11177
11178 .
11179 \end_layout
11180
11181 \begin_layout Itemize
11182 \begin_inset Flex Code
11183 status collapsed
11184
11185 \begin_layout Plain Layout
11186 RightDelim
11187 \end_layout
11188
11189 \end_inset
11190
11191  
11192 \begin_inset Flex Code
11193 status collapsed
11194
11195 \begin_layout Plain Layout
11196 [string]
11197 \end_layout
11198
11199 \end_inset
11200
11201  defines a custom right delimiter (instead of 
11202 \begin_inset Flex Code
11203 status collapsed
11204
11205 \begin_layout Plain Layout
11206 }
11207 \end_layout
11208
11209 \end_inset
11210
11211  or 
11212 \begin_inset Flex Code
11213 status collapsed
11214
11215 \begin_layout Plain Layout
11216 ]
11217 \end_layout
11218
11219 \end_inset
11220
11221 ).
11222  A line break in the output can be indicated by 
11223 \begin_inset Flex Code
11224 status collapsed
11225
11226 \begin_layout Plain Layout
11227 <br/>
11228 \end_layout
11229
11230 \end_inset
11231
11232 .
11233 \end_layout
11234
11235 \begin_layout Itemize
11236 \begin_inset Flex Code
11237 status collapsed
11238
11239 \begin_layout Plain Layout
11240 DefaultArg
11241 \end_layout
11242
11243 \end_inset
11244
11245  
11246 \begin_inset Flex Code
11247 status collapsed
11248
11249 \begin_layout Plain Layout
11250 [string]
11251 \end_layout
11252
11253 \end_inset
11254
11255  defines an argument that is inserted if and only if no user-specified arguments
11256  were given, i.
11257 \begin_inset space \thinspace{}
11258 \end_inset
11259
11260 e.
11261 \begin_inset space \space{}
11262 \end_inset
11263
11264 if no argument inset has been inserted (note that also an empty argument
11265  inset omits the DefaultArg).
11266  Multiple arguments need to be separated by comma.
11267 \end_layout
11268
11269 \begin_layout Itemize
11270 \begin_inset Flex Code
11271 status collapsed
11272
11273 \begin_layout Plain Layout
11274 PresetArg
11275 \end_layout
11276
11277 \end_inset
11278
11279  
11280 \begin_inset Flex Code
11281 status collapsed
11282
11283 \begin_layout Plain Layout
11284 [string]
11285 \end_layout
11286
11287 \end_inset
11288
11289  defines an argument that is inserted in any case (alone or in addition
11290  to user-specified arguments).
11291  Multiple arguments need to be separated by comma.
11292 \end_layout
11293
11294 \begin_layout Itemize
11295 \begin_inset Flex Code
11296 status collapsed
11297
11298 \begin_layout Plain Layout
11299 Font
11300 \end_layout
11301
11302 \end_inset
11303
11304  The font used for the argument content, see 
11305 \begin_inset CommandInset ref
11306 LatexCommand ref
11307 reference "sub:Font-description"
11308
11309 \end_inset
11310
11311 .
11312 \end_layout
11313
11314 \begin_layout Itemize
11315 \begin_inset Flex Code
11316 status collapsed
11317
11318 \begin_layout Plain Layout
11319 LabelFont
11320 \end_layout
11321
11322 \end_inset
11323
11324  The font used for the label; see 
11325 \begin_inset CommandInset ref
11326 LatexCommand ref
11327 reference "sub:Font-description"
11328
11329 \end_inset
11330
11331 .
11332 \end_layout
11333
11334 \begin_layout Itemize
11335 \begin_inset Flex Code
11336 status collapsed
11337
11338 \begin_layout Plain Layout
11339 Decoration
11340 \end_layout
11341
11342 \end_inset
11343
11344  [
11345 \begin_inset Flex Code
11346 status collapsed
11347
11348 \begin_layout Plain Layout
11349
11350 \emph on
11351 Classic
11352 \emph default
11353 , Minimalistic, Conglomerate
11354 \end_layout
11355
11356 \end_inset
11357
11358 ] describes the rendering style used for the inset's frame and buttons.
11359 \end_layout
11360
11361 \begin_layout Itemize
11362 \begin_inset Flex Code
11363 status collapsed
11364
11365 \begin_layout Plain Layout
11366 AutoInsert
11367 \end_layout
11368
11369 \end_inset
11370
11371  
11372 \begin_inset Flex Code
11373 status collapsed
11374
11375 \begin_layout Plain Layout
11376 [int=0]
11377 \end_layout
11378
11379 \end_inset
11380
11381  If this is set to 
11382 \begin_inset Flex Code
11383 status collapsed
11384
11385 \begin_layout Plain Layout
11386 1
11387 \end_layout
11388
11389 \end_inset
11390
11391 , this argument is automatically inserted when the respective style is selected.
11392  Currently, only one argument per style\SpecialChar breakableslash
11393 layout can be automatically inserted.
11394 \change_inserted -712698321 1431166542
11395
11396 \end_layout
11397
11398 \begin_layout Itemize
11399
11400 \change_inserted -712698321 1431166604
11401 \begin_inset Flex Code
11402 status collapsed
11403
11404 \begin_layout Plain Layout
11405
11406 \change_inserted -712698321 1431166548
11407 InsertCotext
11408 \end_layout
11409
11410 \end_inset
11411
11412  
11413 \begin_inset Flex Code
11414 status collapsed
11415
11416 \begin_layout Plain Layout
11417
11418 \change_inserted -712698321 1431166543
11419 [int=0]
11420 \end_layout
11421
11422 \end_inset
11423
11424  If this is set to 
11425 \begin_inset Flex Code
11426 status collapsed
11427
11428 \begin_layout Plain Layout
11429
11430 \change_inserted -712698321 1431166543
11431 1
11432 \end_layout
11433
11434 \end_inset
11435
11436 , this argument will bei inserted with a copy of the co-text (either selected
11437  text or the whole paragraph) as content.
11438 \end_layout
11439
11440 \begin_layout Itemize
11441
11442 \change_inserted -712698321 1431070588
11443
11444 \lang ngerman
11445 \begin_inset Flex Code
11446 status collapsed
11447
11448 \begin_layout Plain Layout
11449
11450 \change_inserted -712698321 1431070522
11451 PassThruChars
11452 \end_layout
11453
11454 \end_inset
11455
11456
11457 \lang english
11458  [
11459 \begin_inset Flex Code
11460 status collapsed
11461
11462 \begin_layout Plain Layout
11463
11464 \change_inserted -712698321 1431070522
11465 string of characters
11466 \end_layout
11467
11468 \end_inset
11469
11470 ]
11471 \family typewriter
11472  
11473 \family default
11474 Defines individual characters that should be output in raw form, meaning
11475  without special translations that \SpecialChar LaTeX
11476  would require.
11477  Note that, contrary to PassThru, this needs to be explicitly defined for
11478  arguments.
11479  That is, arguments do not inherit PassThruChars from their parent inset
11480  or layout.
11481 \change_unchanged
11482
11483 \end_layout
11484
11485 \begin_layout Standard
11486 By default, the text entered in the \SpecialChar LyX
11487  workarea in the respective layout is
11488  the last (mandatory) argument of a command if the 
11489 \begin_inset Flex Code
11490 status collapsed
11491
11492 \begin_layout Plain Layout
11493 LatexType
11494 \end_layout
11495
11496 \end_inset
11497
11498  is 
11499 \begin_inset Flex Code
11500 status collapsed
11501
11502 \begin_layout Plain Layout
11503 Command
11504 \end_layout
11505
11506 \end_inset
11507
11508 .
11509  However, arguments with the prefix 
11510 \begin_inset Flex Code
11511 status collapsed
11512
11513 \begin_layout Plain Layout
11514 post:
11515 \end_layout
11516
11517 \end_inset
11518
11519  are output after this workarea argument.
11520  Note that post-argument numbering restarts at 1, so the first argument
11521  following the workarea argument is 
11522 \begin_inset Flex Code
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526 post:1
11527 \end_layout
11528
11529 \end_inset
11530
11531 .
11532  Post-arguments are ignored in any other 
11533 \begin_inset Flex Code
11534 status collapsed
11535
11536 \begin_layout Plain Layout
11537 LatexType
11538 \end_layout
11539
11540 \end_inset
11541
11542  than 
11543 \begin_inset Flex Code
11544 status collapsed
11545
11546 \begin_layout Plain Layout
11547 Command
11548 \end_layout
11549
11550 \end_inset
11551
11552 .
11553 \end_layout
11554
11555 \begin_layout Standard
11556 Arguments for list 
11557 \begin_inset Flex Code
11558 status collapsed
11559
11560 \begin_layout Plain Layout
11561
11562 \backslash
11563 item
11564 \end_layout
11565
11566 \end_inset
11567
11568 s (as in 
11569 \begin_inset Flex Code
11570 status collapsed
11571
11572 \begin_layout Plain Layout
11573
11574 \backslash
11575 item[foo]
11576 \end_layout
11577
11578 \end_inset
11579
11580 ) have the prefix 
11581 \begin_inset Flex Code
11582 status collapsed
11583
11584 \begin_layout Plain Layout
11585 item:
11586 \end_layout
11587
11588 \end_inset
11589
11590  followed by the number (e.
11591 \begin_inset space \thinspace{}
11592 \end_inset
11593
11594 g.
11595 \begin_inset space \space{}
11596 \end_inset
11597
11598
11599 \begin_inset Flex Code
11600 status collapsed
11601
11602 \begin_layout Plain Layout
11603 Argument item:1
11604 \end_layout
11605
11606 \end_inset
11607
11608 )
11609 \end_layout
11610
11611 \end_deeper
11612 \begin_layout Description
11613 \begin_inset Flex Code
11614 status collapsed
11615
11616 \begin_layout Plain Layout
11617 BabelPreamble
11618 \end_layout
11619
11620 \end_inset
11621
11622  Note that this will completely override any prior 
11623 \begin_inset Flex Code
11624 status collapsed
11625
11626 \begin_layout Plain Layout
11627 BabelPreamble
11628 \end_layout
11629
11630 \end_inset
11631
11632  declaration for this style.
11633  Must end with 
11634 \begin_inset Quotes eld
11635 \end_inset
11636
11637
11638 \begin_inset Flex Code
11639 status collapsed
11640
11641 \begin_layout Plain Layout
11642 EndBabelPreamble
11643 \end_layout
11644
11645 \end_inset
11646
11647
11648 \begin_inset Quotes erd
11649 \end_inset
11650
11651 .
11652  See 
11653 \begin_inset CommandInset ref
11654 LatexCommand ref
11655 reference "sub:I18n"
11656
11657 \end_inset
11658
11659  for details on its use.
11660 \end_layout
11661
11662 \begin_layout Description
11663 \begin_inset Flex Code
11664 status collapsed
11665
11666 \begin_layout Plain Layout
11667 BottomSep
11668 \end_layout
11669
11670 \end_inset
11671
11672  [
11673 \begin_inset Flex Code
11674 status collapsed
11675
11676 \begin_layout Plain Layout
11677 float=0
11678 \end_layout
11679
11680 \end_inset
11681
11682 ]
11683 \begin_inset Foot
11684 status collapsed
11685
11686 \begin_layout Plain Layout
11687 Note that a `float' here is a real number, such as: 1.5.
11688 \end_layout
11689
11690 \end_inset
11691
11692  The vertical space with which the last of a chain of paragraphs with this
11693  style is separated from the following paragraph.
11694  If the next paragraph has another style, the separations are not simply
11695  added, but the maximum is taken.
11696 \end_layout
11697
11698 \begin_layout Description
11699 \begin_inset Flex Code
11700 status collapsed
11701
11702 \begin_layout Plain Layout
11703 Category
11704 \end_layout
11705
11706 \end_inset
11707
11708  [
11709 \begin_inset Flex Code
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713 string
11714 \end_layout
11715
11716 \end_inset
11717
11718 ] The category for this style.
11719  This is used to group related styles in the style combobox on the toolbar.
11720  Any string can be used, but you may want to use existing categories with
11721  your own styles.
11722  
11723 \end_layout
11724
11725 \begin_layout Description
11726 \begin_inset Flex Code
11727 status collapsed
11728
11729 \begin_layout Plain Layout
11730 CommandDepth
11731 \end_layout
11732
11733 \end_inset
11734
11735  Depth of XML command.
11736  Used only with XML-type formats.
11737 \end_layout
11738
11739 \begin_layout Description
11740 \begin_inset Flex Code
11741 status collapsed
11742
11743 \begin_layout Plain Layout
11744 CopyStyle
11745 \end_layout
11746
11747 \end_inset
11748
11749  [
11750 \begin_inset Flex Code
11751 status collapsed
11752
11753 \begin_layout Plain Layout
11754 string
11755 \end_layout
11756
11757 \end_inset
11758
11759 ] Copies all the features of an existing style into the current one.
11760  
11761 \end_layout
11762
11763 \begin_layout Description
11764 \begin_inset Flex Code
11765 status collapsed
11766
11767 \begin_layout Plain Layout
11768 DependsOn
11769 \end_layout
11770
11771 \end_inset
11772
11773  [
11774 \begin_inset Flex Code
11775 status collapsed
11776
11777 \begin_layout Plain Layout
11778 <name>
11779 \end_layout
11780
11781 \end_inset
11782
11783 ] The name of a style whose preamble should be output 
11784 \emph on
11785 before
11786 \emph default
11787  this one.
11788  This allows to ensure some ordering of the preamble snippets when macros
11789  definitions depend on one another.
11790 \begin_inset Foot
11791 status collapsed
11792
11793 \begin_layout Plain Layout
11794 Note that, besides that functionality, there is no way to ensure any ordering
11795  of preambles.
11796  The ordering that you see in a given version of \SpecialChar LyX
11797  may change without warning
11798  in later versions.
11799 \end_layout
11800
11801 \end_inset
11802
11803
11804 \end_layout
11805
11806 \begin_layout Description
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 EndLabeltype
11812 \end_layout
11813
11814 \end_inset
11815
11816  [
11817 \begin_inset Flex Code
11818 status collapsed
11819
11820 \begin_layout Plain Layout
11821
11822 \emph on
11823 No_Label
11824 \emph default
11825 , Box, Filled_Box, Static
11826 \end_layout
11827
11828 \end_inset
11829
11830 ] The type of label that stands at the end of the paragraph (or sequence
11831  of paragraphs if 
11832 \begin_inset Flex Code
11833 status collapsed
11834
11835 \begin_layout Plain Layout
11836 LatexType
11837 \end_layout
11838
11839 \end_inset
11840
11841  is
11842 \begin_inset Newline newline
11843 \end_inset
11844
11845
11846 \begin_inset Flex Code
11847 status collapsed
11848
11849 \begin_layout Plain Layout
11850 Environment
11851 \end_layout
11852
11853 \end_inset
11854
11855
11856 \begin_inset Flex Code
11857 status collapsed
11858
11859 \begin_layout Plain Layout
11860 Item_Environment
11861 \end_layout
11862
11863 \end_inset
11864
11865  or 
11866 \begin_inset Flex Code
11867 status collapsed
11868
11869 \begin_layout Plain Layout
11870 List_Environment
11871 \end_layout
11872
11873 \end_inset
11874
11875 ).
11876  
11877 \begin_inset Flex Code
11878 status collapsed
11879
11880 \begin_layout Plain Layout
11881 No_Label
11882 \end_layout
11883
11884 \end_inset
11885
11886  means 
11887 \begin_inset Quotes eld
11888 \end_inset
11889
11890 nothing
11891 \begin_inset Quotes erd
11892 \end_inset
11893
11894
11895 \begin_inset Flex Code
11896 status collapsed
11897
11898 \begin_layout Plain Layout
11899 Box
11900 \end_layout
11901
11902 \end_inset
11903
11904  (resp.
11905 \begin_inset space \space{}
11906 \end_inset
11907
11908
11909 \begin_inset Flex Code
11910 status collapsed
11911
11912 \begin_layout Plain Layout
11913 Filled_Box
11914 \end_layout
11915
11916 \end_inset
11917
11918 ) is a white (resp.
11919 \begin_inset space ~
11920 \end_inset
11921
11922 black) square suitable for end of proof markers, 
11923 \begin_inset Flex Code
11924 status collapsed
11925
11926 \begin_layout Plain Layout
11927 Static
11928 \end_layout
11929
11930 \end_inset
11931
11932  is an explicit text string.
11933 \end_layout
11934
11935 \begin_layout Description
11936 \begin_inset Flex Code
11937 status collapsed
11938
11939 \begin_layout Plain Layout
11940 EndLabelString
11941 \end_layout
11942
11943 \end_inset
11944
11945  [
11946 \begin_inset Flex Code
11947 status collapsed
11948
11949 \begin_layout Plain Layout
11950 string=""
11951 \end_layout
11952
11953 \end_inset
11954
11955 ] The string used for a label with a 
11956 \begin_inset Flex Code
11957 status collapsed
11958
11959 \begin_layout Plain Layout
11960 Static
11961 \end_layout
11962
11963 \end_inset
11964
11965
11966 \begin_inset Newline newline
11967 \end_inset
11968
11969
11970 \begin_inset Flex Code
11971 status collapsed
11972
11973 \begin_layout Plain Layout
11974 EndLabelType
11975 \end_layout
11976
11977 \end_inset
11978
11979 .
11980  
11981 \end_layout
11982
11983 \begin_layout Description
11984 \begin_inset Flex Code
11985 status collapsed
11986
11987 \begin_layout Plain Layout
11988 Font
11989 \end_layout
11990
11991 \end_inset
11992
11993  The font used for both the text body 
11994 \emph on
11995 and
11996 \emph default
11997  the label.
11998  See 
11999 \begin_inset CommandInset ref
12000 LatexCommand ref
12001 reference "sub:Font-description"
12002
12003 \end_inset
12004
12005 .
12006  Note that defining this font automatically defines the 
12007 \begin_inset Flex Code
12008 status collapsed
12009
12010 \begin_layout Plain Layout
12011 LabelFont
12012 \end_layout
12013
12014 \end_inset
12015
12016  to the same value.
12017  So you should define this one first if you also want to define 
12018 \begin_inset Flex Code
12019 status collapsed
12020
12021 \begin_layout Plain Layout
12022 LabelFont
12023 \end_layout
12024
12025 \end_inset
12026
12027 .
12028 \end_layout
12029
12030 \begin_layout Description
12031 \begin_inset Flex Code
12032 status collapsed
12033
12034 \begin_layout Plain Layout
12035 ForceLocal
12036 \end_layout
12037
12038 \end_inset
12039
12040  [
12041 \begin_inset Flex Code
12042 status collapsed
12043
12044 \begin_layout Plain Layout
12045 int=0
12046 \end_layout
12047
12048 \end_inset
12049
12050 ] Used for backporting new styles to stable \SpecialChar LyX
12051  versions.
12052  The first stable version that supports this tag is \SpecialChar LyX
12053  2.1.0.
12054  The argument is a number which may either be 0, -1 or any value greater
12055  than zero.
12056  If the 
12057 \begin_inset Flex Code
12058 status collapsed
12059
12060 \begin_layout Plain Layout
12061 ForceLocal
12062 \end_layout
12063
12064 \end_inset
12065
12066  flag of a style is greater than zero, it will always be written to the
12067  document header.
12068  If a .lyx file is read, the style definitions from the document header are
12069  added to the document class.
12070  Therefore even older \SpecialChar LyX
12071  versions can handle the style.
12072  The argument of 
12073 \begin_inset Flex Code
12074 status collapsed
12075
12076 \begin_layout Plain Layout
12077 ForceLocal
12078 \end_layout
12079
12080 \end_inset
12081
12082  is a version number: If the style is read, and the version number is less
12083  than the version number of the already existing style in the document class,
12084  the new style is ignored.
12085  If the version number is greater, the new style replaces the existing style.
12086  A value of -1 means an infinite version number, i.
12087 \begin_inset space \thinspace{}
12088 \end_inset
12089
12090 e.
12091 \begin_inset space \space{}
12092 \end_inset
12093
12094 the style is always used.
12095 \end_layout
12096
12097 \begin_layout Description
12098 \begin_inset Flex Code
12099 status collapsed
12100
12101 \begin_layout Plain Layout
12102 FreeSpacing
12103 \end_layout
12104
12105 \end_inset
12106
12107  [
12108 \begin_inset Flex Code
12109 status collapsed
12110
12111 \begin_layout Plain Layout
12112
12113 \emph on
12114 0
12115 \end_layout
12116
12117 \end_inset
12118
12119 ,
12120 \begin_inset space \thinspace{}
12121 \end_inset
12122
12123
12124 \begin_inset Flex Code
12125 status collapsed
12126
12127 \begin_layout Plain Layout
12128 1
12129 \end_layout
12130
12131 \end_inset
12132
12133 ] Usually \SpecialChar LyX
12134  does not allow you to insert more than one space between words,
12135  since a space is considered as the separation between two words, not a
12136  character or symbol of its own.
12137  This is a very fine thing but sometimes annoying, for example, when typing
12138  program code or plain \SpecialChar LaTeX
12139  code.
12140  For this reason, 
12141 \begin_inset Flex Code
12142 status collapsed
12143
12144 \begin_layout Plain Layout
12145 FreeSpacing
12146 \end_layout
12147
12148 \end_inset
12149
12150  can be enabled.
12151  Note that \SpecialChar LyX
12152  will create protected blanks for the additional blanks when
12153  in another mode than \SpecialChar LaTeX
12154 -mode.
12155 \end_layout
12156
12157 \begin_layout Description
12158 \begin_inset Flex Code
12159 status collapsed
12160
12161 \begin_layout Plain Layout
12162 HTML*
12163 \end_layout
12164
12165 \end_inset
12166
12167  These tags are used with XHTML output.
12168  See 
12169 \begin_inset CommandInset ref
12170 LatexCommand ref
12171 reference "sub:Paragraph-Style-XHTML"
12172
12173 \end_inset
12174
12175 .
12176 \end_layout
12177
12178 \begin_layout Description
12179 \begin_inset Flex Code
12180 status collapsed
12181
12182 \begin_layout Plain Layout
12183 InnerTag
12184 \end_layout
12185
12186 \end_inset
12187
12188  [FIXME] (Used only with XML-type formats.)
12189 \end_layout
12190
12191 \begin_layout Description
12192 \begin_inset Flex Code
12193 status collapsed
12194
12195 \begin_layout Plain Layout
12196 InPreamble
12197 \end_layout
12198
12199 \end_inset
12200
12201  [
12202 \begin_inset Flex Code
12203 status collapsed
12204
12205 \begin_layout Plain Layout
12206
12207 \emph on
12208 0
12209 \end_layout
12210
12211 \end_inset
12212
12213 ,
12214 \begin_inset space \thinspace{}
12215 \end_inset
12216
12217
12218 \begin_inset Flex Code
12219 status collapsed
12220
12221 \begin_layout Plain Layout
12222 1
12223 \end_layout
12224
12225 \end_inset
12226
12227 ] If 
12228 \begin_inset Flex Code
12229 status collapsed
12230
12231 \begin_layout Plain Layout
12232 1
12233 \end_layout
12234
12235 \end_inset
12236
12237 , marks the style as to be included in the document preamble and not in
12238  the document body.
12239  This is useful for document classes that want such information as the title
12240  and author to appear in the preamble.
12241  Note that this works only for styles for which the 
12242 \begin_inset Flex Code
12243 status collapsed
12244
12245 \begin_layout Plain Layout
12246 LatexType
12247 \end_layout
12248
12249 \end_inset
12250
12251  is 
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 Command
12257 \end_layout
12258
12259 \end_inset
12260
12261  or 
12262 \begin_inset Flex Code
12263 status collapsed
12264
12265 \begin_layout Plain Layout
12266 Paragraph
12267 \end_layout
12268
12269 \end_inset
12270
12271 .
12272 \end_layout
12273
12274 \begin_layout Description
12275 \begin_inset Flex Code
12276 status collapsed
12277
12278 \begin_layout Plain Layout
12279 InTitle
12280 \end_layout
12281
12282 \end_inset
12283
12284  [
12285 \begin_inset Flex Code
12286 status collapsed
12287
12288 \begin_layout Plain Layout
12289
12290 \emph on
12291 0
12292 \end_layout
12293
12294 \end_inset
12295
12296 ,
12297 \begin_inset space \thinspace{}
12298 \end_inset
12299
12300
12301 \begin_inset Flex Code
12302 status collapsed
12303
12304 \begin_layout Plain Layout
12305 1
12306 \end_layout
12307
12308 \end_inset
12309
12310 ] If 
12311 \begin_inset Flex Code
12312 status collapsed
12313
12314 \begin_layout Plain Layout
12315 1
12316 \end_layout
12317
12318 \end_inset
12319
12320 , marks the style as being part of a title block (see also the 
12321 \begin_inset Flex Code
12322 status collapsed
12323
12324 \begin_layout Plain Layout
12325 TitleLatexType
12326 \end_layout
12327
12328 \end_inset
12329
12330  and 
12331 \begin_inset Flex Code
12332 status collapsed
12333
12334 \begin_layout Plain Layout
12335 TitleLatexName
12336 \end_layout
12337
12338 \end_inset
12339
12340  global entries).
12341 \end_layout
12342
12343 \begin_layout Description
12344 \begin_inset Flex Code
12345 status collapsed
12346
12347 \begin_layout Plain Layout
12348 ItemCommand
12349 \end_layout
12350
12351 \end_inset
12352
12353  [
12354 \begin_inset Flex Code
12355 status collapsed
12356
12357 \begin_layout Plain Layout
12358 string="item"
12359 \end_layout
12360
12361 \end_inset
12362
12363 ] The \SpecialChar LaTeX
12364  command sequence declaring an item in a list.
12365  The command is to be defined without the preceding backslash (the default
12366  is 
12367 \begin_inset Quotes eld
12368 \end_inset
12369
12370 item
12371 \begin_inset Quotes erd
12372 \end_inset
12373
12374 , resulting in 
12375 \begin_inset Flex Code
12376 status collapsed
12377
12378 \begin_layout Plain Layout
12379
12380 \backslash
12381 item
12382 \end_layout
12383
12384 \end_inset
12385
12386  in the \SpecialChar LaTeX
12387  output).
12388 \end_layout
12389
12390 \begin_layout Description
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395 ItemSep
12396 \end_layout
12397
12398 \end_inset
12399
12400  [
12401 \begin_inset Flex Code
12402 status collapsed
12403
12404 \begin_layout Plain Layout
12405 float=0
12406 \end_layout
12407
12408 \end_inset
12409
12410 ] This provides extra space between paragraphs that have the same style.
12411  If you put other styles into an environment, each is separated with the
12412  environment's 
12413 \begin_inset Flex Code
12414 status collapsed
12415
12416 \begin_layout Plain Layout
12417 ParSep
12418 \end_layout
12419
12420 \end_inset
12421
12422 .
12423  But the whole items of the environment are additionally separated with
12424  this 
12425 \begin_inset Flex Code
12426 status collapsed
12427
12428 \begin_layout Plain Layout
12429 ItemSep
12430 \end_layout
12431
12432 \end_inset
12433
12434 .
12435  Note that this is a
12436 \emph on
12437  multiplier.
12438 \end_layout
12439
12440 \begin_layout Description
12441 \begin_inset Flex Code
12442 status collapsed
12443
12444 \begin_layout Plain Layout
12445 ItemTag
12446 \end_layout
12447
12448 \end_inset
12449
12450  [FIXME] (Used only with XML-type formats.)
12451 \end_layout
12452
12453 \begin_layout Description
12454 \begin_inset Flex Code
12455 status collapsed
12456
12457 \begin_layout Plain Layout
12458 KeepEmpty
12459 \end_layout
12460
12461 \end_inset
12462
12463  [
12464 \begin_inset Flex Code
12465 status collapsed
12466
12467 \begin_layout Plain Layout
12468
12469 \emph on
12470 0
12471 \end_layout
12472
12473 \end_inset
12474
12475 ,
12476 \begin_inset space \thinspace{}
12477 \end_inset
12478
12479
12480 \begin_inset Flex Code
12481 status collapsed
12482
12483 \begin_layout Plain Layout
12484 1
12485 \end_layout
12486
12487 \end_inset
12488
12489 ] Usually \SpecialChar LyX
12490  does not allow you to leave a paragraph empty, since it would
12491  lead to empty \SpecialChar LaTeX
12492  output.
12493  There are some cases where this could be desirable however: in a letter
12494  template, the required fields can be provided as empty fields, so that
12495  people do not forget them; in some special classes, a style can be used
12496  as some kind of break, which does not contain actual text.
12497 \end_layout
12498
12499 \begin_layout Description
12500 \begin_inset Flex Code
12501 status collapsed
12502
12503 \begin_layout Plain Layout
12504 LabelBottomsep
12505 \end_layout
12506
12507 \end_inset
12508
12509  [
12510 \begin_inset Flex Code
12511 status collapsed
12512
12513 \begin_layout Plain Layout
12514 float=0
12515 \end_layout
12516
12517 \end_inset
12518
12519 ] The vertical space between the label and the text body.
12520  Only used for labels that are above the text body (
12521 \begin_inset Flex Code
12522 status collapsed
12523
12524 \begin_layout Plain Layout
12525 Top_Environment
12526 \end_layout
12527
12528 \end_inset
12529
12530  and
12531 \begin_inset Newline newline
12532 \end_inset
12533
12534
12535 \begin_inset Flex Code
12536 status collapsed
12537
12538 \begin_layout Plain Layout
12539 Centered_Top_Environment
12540 \end_layout
12541
12542 \end_inset
12543
12544 ).
12545 \end_layout
12546
12547 \begin_layout Description
12548 \begin_inset Flex Code
12549 status collapsed
12550
12551 \begin_layout Plain Layout
12552 LabelCounter
12553 \end_layout
12554
12555 \end_inset
12556
12557  [
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562 string=""
12563 \end_layout
12564
12565 \end_inset
12566
12567 ] The name of the counter for automatic numbering.
12568  In order to have the counter appear with your label, you will need to reference
12569  it in the 
12570 \begin_inset Flex Code
12571 status collapsed
12572
12573 \begin_layout Plain Layout
12574
12575 \family typewriter
12576 LabelString
12577 \end_layout
12578
12579 \end_inset
12580
12581 .
12582  This will work with 
12583 \begin_inset Flex Code
12584 status collapsed
12585
12586 \begin_layout Plain Layout
12587 LabelType
12588 \end_layout
12589
12590 \end_inset
12591
12592 s, 
12593 \begin_inset Flex Code
12594 status collapsed
12595
12596 \begin_layout Plain Layout
12597 Static
12598 \end_layout
12599
12600 \end_inset
12601
12602
12603 \begin_inset Flex Code
12604 status collapsed
12605
12606 \begin_layout Plain Layout
12607 Above
12608 \end_layout
12609
12610 \end_inset
12611
12612  and 
12613 \begin_inset Flex Code
12614 status collapsed
12615
12616 \begin_layout Plain Layout
12617 Centered
12618 \end_layout
12619
12620 \end_inset
12621
12622 , at least.
12623 \begin_inset Newline newline
12624 \end_inset
12625
12626 This 
12627 \emph on
12628 may
12629 \emph default
12630  also be given if 
12631 \begin_inset Flex Code
12632 status collapsed
12633
12634 \begin_layout Plain Layout
12635 LabelType
12636 \end_layout
12637
12638 \end_inset
12639
12640  is 
12641 \begin_inset Flex Code
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645 Enumerate
12646 \end_layout
12647
12648 \end_inset
12649
12650 , though this case is a bit complicated.
12651  Suppose you declare 
12652 \begin_inset Quotes eld
12653 \end_inset
12654
12655
12656 \begin_inset Flex Code
12657 status collapsed
12658
12659 \begin_layout Plain Layout
12660 LabelCounter myenum
12661 \end_layout
12662
12663 \end_inset
12664
12665
12666 \begin_inset Quotes erd
12667 \end_inset
12668
12669 .
12670  Then the actual counters used are 
12671 \begin_inset Flex Code
12672 status collapsed
12673
12674 \begin_layout Plain Layout
12675 myenumi
12676 \end_layout
12677
12678 \end_inset
12679
12680
12681 \begin_inset Flex Code
12682 status collapsed
12683
12684 \begin_layout Plain Layout
12685 myenumii
12686 \end_layout
12687
12688 \end_inset
12689
12690
12691 \begin_inset Flex Code
12692 status collapsed
12693
12694 \begin_layout Plain Layout
12695 myenumiii
12696 \end_layout
12697
12698 \end_inset
12699
12700  and 
12701 \begin_inset Flex Code
12702 status collapsed
12703
12704 \begin_layout Plain Layout
12705 myenumiv
12706 \end_layout
12707
12708 \end_inset
12709
12710 , much as in \SpecialChar LaTeX
12711 .
12712  These counters must all be declared separately.
12713 \begin_inset Newline newline
12714 \end_inset
12715
12716 See 
12717 \begin_inset CommandInset ref
12718 LatexCommand ref
12719 reference "sub:Counters"
12720
12721 \end_inset
12722
12723  for details on counters.
12724 \end_layout
12725
12726 \begin_layout Description
12727 \begin_inset Flex Code
12728 status collapsed
12729
12730 \begin_layout Plain Layout
12731 LabelFont
12732 \end_layout
12733
12734 \end_inset
12735
12736  The font used for the label.
12737  See 
12738 \begin_inset CommandInset ref
12739 LatexCommand ref
12740 reference "sub:Font-description"
12741
12742 \end_inset
12743
12744 .
12745 \end_layout
12746
12747 \begin_layout Description
12748 \begin_inset Flex Code
12749 status collapsed
12750
12751 \begin_layout Plain Layout
12752 LabelIndent
12753 \end_layout
12754
12755 \end_inset
12756
12757  [
12758 \begin_inset Flex Code
12759 status collapsed
12760
12761 \begin_layout Plain Layout
12762 string=""
12763 \end_layout
12764
12765 \end_inset
12766
12767 ] Text that indicates how far a label should be indented.
12768 \end_layout
12769
12770 \begin_layout Description
12771 \begin_inset Flex Code
12772 status collapsed
12773
12774 \begin_layout Plain Layout
12775 LabelSep
12776 \end_layout
12777
12778 \end_inset
12779
12780  [
12781 \begin_inset Flex Code
12782 status collapsed
12783
12784 \begin_layout Plain Layout
12785 string=""
12786 \end_layout
12787
12788 \end_inset
12789
12790 ] Text that indicates the amount of horizontal space between the label and
12791  the text body.
12792  Only used for labels that are not above the text body.
12793 \end_layout
12794
12795 \begin_layout Description
12796 \begin_inset Flex Code
12797 status collapsed
12798
12799 \begin_layout Plain Layout
12800 LabelString
12801 \end_layout
12802
12803 \end_inset
12804
12805  [
12806 \begin_inset Flex Code
12807 status collapsed
12808
12809 \begin_layout Plain Layout
12810 string=""
12811 \end_layout
12812
12813 \end_inset
12814
12815 ] The string used for the label.
12816  When 
12817 \begin_inset Flex Code
12818 status collapsed
12819
12820 \begin_layout Plain Layout
12821 LabelCounter
12822 \end_layout
12823
12824 \end_inset
12825
12826  is set, this string can be contain the special formatting commands described
12827  in 
12828 \begin_inset CommandInset ref
12829 LatexCommand ref
12830 reference "sub:Counters"
12831
12832 \end_inset
12833
12834 .
12835 \end_layout
12836
12837 \begin_layout Description
12838 \begin_inset Flex Code
12839 status collapsed
12840
12841 \begin_layout Plain Layout
12842 LabelStringAppendix
12843 \end_layout
12844
12845 \end_inset
12846
12847  [
12848 \begin_inset Flex Code
12849 status collapsed
12850
12851 \begin_layout Plain Layout
12852 string=""
12853 \end_layout
12854
12855 \end_inset
12856
12857 ] This is used inside the appendix instead of
12858 \begin_inset Newline newline
12859 \end_inset
12860
12861
12862 \begin_inset Flex Code
12863 status collapsed
12864
12865 \begin_layout Plain Layout
12866 LabelString
12867 \end_layout
12868
12869 \end_inset
12870
12871 .
12872  Note that every 
12873 \begin_inset Flex Code
12874 status collapsed
12875
12876 \begin_layout Plain Layout
12877 LabelString
12878 \end_layout
12879
12880 \end_inset
12881
12882  statement resets
12883 \begin_inset Newline newline
12884 \end_inset
12885
12886
12887 \begin_inset Flex Code
12888 status collapsed
12889
12890 \begin_layout Plain Layout
12891 LabelStringAppendix
12892 \end_layout
12893
12894 \end_inset
12895
12896  too.
12897 \end_layout
12898
12899 \begin_layout Description
12900 \begin_inset Flex Code
12901 status collapsed
12902
12903 \begin_layout Plain Layout
12904 LabelTag
12905 \end_layout
12906
12907 \end_inset
12908
12909  [FIXME] (Used only with XML-type formats.)
12910 \end_layout
12911
12912 \begin_layout Description
12913 \begin_inset Flex Code
12914 status collapsed
12915
12916 \begin_layout Plain Layout
12917 LabelType
12918 \end_layout
12919
12920 \end_inset
12921
12922  [
12923 \begin_inset Flex Code
12924 status collapsed
12925
12926 \begin_layout Plain Layout
12927
12928 \emph on
12929 No_Label
12930 \emph default
12931 , Manual, Static, Above, 
12932 \begin_inset Newline newline
12933 \end_inset
12934
12935 Centered, Sensitive, Enumerate,
12936 \begin_inset Newline newline
12937 \end_inset
12938
12939 Itemize, Bibliography
12940 \end_layout
12941
12942 \end_inset
12943
12944 ]
12945 \begin_inset Separator parbreak
12946 \end_inset
12947
12948
12949 \end_layout
12950
12951 \begin_deeper
12952 \begin_layout Description
12953 \begin_inset Flex Code
12954 status collapsed
12955
12956 \begin_layout Plain Layout
12957 Manual
12958 \end_layout
12959
12960 \end_inset
12961
12962  means the label is the very first word (up to the first real blank).
12963  Use protected spaces if you want more than one word as the label.
12964  
12965 \end_layout
12966
12967 \begin_layout Description
12968 \begin_inset Flex Code
12969 status collapsed
12970
12971 \begin_layout Plain Layout
12972 Static
12973 \end_layout
12974
12975 \end_inset
12976
12977  means the label is simply what is declared as 
12978 \begin_inset Flex Code
12979 status collapsed
12980
12981 \begin_layout Plain Layout
12982 LabelString
12983 \end_layout
12984
12985 \end_inset
12986
12987 .
12988  This will be displayed 
12989 \begin_inset Quotes eld
12990 \end_inset
12991
12992 inline
12993 \begin_inset Quotes erd
12994 \end_inset
12995
12996 , at the beginning of the paragraph.
12997  If the 
12998 \begin_inset Flex Code
12999 status collapsed
13000
13001 \begin_layout Plain Layout
13002 LatexType
13003 \end_layout
13004
13005 \end_inset
13006
13007  is 
13008 \begin_inset Flex Code
13009 status collapsed
13010
13011 \begin_layout Plain Layout
13012 Environment
13013 \end_layout
13014
13015 \end_inset
13016
13017 , then it will be displayed only in the first paragraph of any sequence
13018  of paragraphs with the same 
13019 \begin_inset Flex Code
13020 status collapsed
13021
13022 \begin_layout Plain Layout
13023 Style
13024 \end_layout
13025
13026 \end_inset
13027
13028 .
13029 \end_layout
13030
13031 \begin_layout Description
13032 \begin_inset Flex Code
13033 status collapsed
13034
13035 \begin_layout Plain Layout
13036 Above
13037 \end_layout
13038
13039 \end_inset
13040
13041
13042 \begin_inset space ~
13043 \end_inset
13044
13045 and
13046 \begin_inset space ~
13047 \end_inset
13048
13049
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054 Centered
13055 \end_layout
13056
13057 \end_inset
13058
13059  are special cases of 
13060 \begin_inset Flex Code
13061 status collapsed
13062
13063 \begin_layout Plain Layout
13064 Static
13065 \end_layout
13066
13067 \end_inset
13068
13069 .
13070  The label will be printed above the paragraph either at the beginning of
13071  the line or centered.
13072 \end_layout
13073
13074 \begin_layout Description
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079 Sensitive
13080 \end_layout
13081
13082 \end_inset
13083
13084  is a special case for the caption-labels 
13085 \begin_inset Quotes eld
13086 \end_inset
13087
13088 Figure
13089 \begin_inset Quotes erd
13090 \end_inset
13091
13092  and 
13093 \begin_inset Quotes eld
13094 \end_inset
13095
13096 Table
13097 \begin_inset Quotes erd
13098 \end_inset
13099
13100 .
13101 \begin_inset Newline newline
13102 \end_inset
13103
13104
13105 \begin_inset Flex Code
13106 status collapsed
13107
13108 \begin_layout Plain Layout
13109 Sensitive
13110 \end_layout
13111
13112 \end_inset
13113
13114  means the (hardcoded) label string depends on the kind of float: It is
13115  hardcoded to be `FloatType N', where N is the value of the counter associated
13116  with the float.
13117  For the case that a caption is inserted outside of a float the 
13118 \begin_inset Flex Code
13119 status collapsed
13120
13121 \begin_layout Plain Layout
13122 LabelString
13123 \end_layout
13124
13125 \end_inset
13126
13127  will appear as 
13128 \begin_inset Quotes eld
13129 \end_inset
13130
13131 Senseless!
13132 \begin_inset Quotes erd
13133 \end_inset
13134
13135 .
13136 \end_layout
13137
13138 \begin_layout Description
13139 \begin_inset Flex Code
13140 status collapsed
13141
13142 \begin_layout Plain Layout
13143 Enumerate
13144 \end_layout
13145
13146 \end_inset
13147
13148  produces the usual sort of enumeration labels.
13149  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13150  small Roman numerals, and uppercase letters for the four possible depths.
13151 \end_layout
13152
13153 \begin_layout Description
13154 \begin_inset Flex Code
13155 status collapsed
13156
13157 \begin_layout Plain Layout
13158 Itemize
13159 \end_layout
13160
13161 \end_inset
13162
13163  produces various bullets at the different levels.
13164  It is also hardcoded.
13165 \end_layout
13166
13167 \begin_layout Description
13168 \begin_inset Flex Code
13169 status collapsed
13170
13171 \begin_layout Plain Layout
13172 Bibliography
13173 \end_layout
13174
13175 \end_inset
13176
13177  should be used only with 
13178 \begin_inset Flex Code
13179 status collapsed
13180
13181 \begin_layout Plain Layout
13182 LatexType BibEnvironment
13183 \end_layout
13184
13185 \end_inset
13186
13187 .
13188 \end_layout
13189
13190 \end_deeper
13191 \begin_layout Description
13192 \begin_inset Flex Code
13193 status collapsed
13194
13195 \begin_layout Plain Layout
13196 LangPreamble
13197 \end_layout
13198
13199 \end_inset
13200
13201  Note that this will completely override any prior 
13202 \begin_inset Flex Code
13203 status collapsed
13204
13205 \begin_layout Plain Layout
13206 LangPreamble
13207 \end_layout
13208
13209 \end_inset
13210
13211  declaration for this style.
13212  Must end with 
13213 \begin_inset Quotes eld
13214 \end_inset
13215
13216
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221 EndLangPreamble
13222 \end_layout
13223
13224 \end_inset
13225
13226
13227 \begin_inset Quotes erd
13228 \end_inset
13229
13230 .
13231  See 
13232 \begin_inset CommandInset ref
13233 LatexCommand ref
13234 reference "sub:I18n"
13235
13236 \end_inset
13237
13238  for details on its use.
13239 \end_layout
13240
13241 \begin_layout Description
13242 \begin_inset Flex Code
13243 status collapsed
13244
13245 \begin_layout Plain Layout
13246 LatexName
13247 \end_layout
13248
13249 \end_inset
13250
13251  [
13252 \begin_inset Flex Code
13253 status collapsed
13254
13255 \begin_layout Plain Layout
13256 <name>
13257 \end_layout
13258
13259 \end_inset
13260
13261 ] The name of the corresponding \SpecialChar LaTeX
13262  stuff.
13263  Either the environment or command name.
13264 \end_layout
13265
13266 \begin_layout Description
13267 \begin_inset Flex Code
13268 status collapsed
13269
13270 \begin_layout Plain Layout
13271 LatexParam
13272 \end_layout
13273
13274 \end_inset
13275
13276  [
13277 \begin_inset Flex Code
13278 status collapsed
13279
13280 \begin_layout Plain Layout
13281 <parameter>
13282 \end_layout
13283
13284 \end_inset
13285
13286 ] An optional parameter for the corresponding 
13287 \begin_inset Flex Code
13288 status collapsed
13289
13290 \begin_layout Plain Layout
13291 LatexName
13292 \end_layout
13293
13294 \end_inset
13295
13296  stuff.
13297  This parameter cannot be changed from within \SpecialChar LyX
13298  (use 
13299 \begin_inset Flex Code
13300 status collapsed
13301
13302 \begin_layout Plain Layout
13303 Argument
13304 \end_layout
13305
13306 \end_inset
13307
13308  for customizable parameters).
13309  This will be output as is after all \SpecialChar LaTeX
13310  
13311 \begin_inset Flex Code
13312 status collapsed
13313
13314 \begin_layout Plain Layout
13315 Argument
13316 \end_layout
13317
13318 \end_inset
13319
13320 s.
13321 \end_layout
13322
13323 \begin_layout Description
13324 \begin_inset Flex Code
13325 status collapsed
13326
13327 \begin_layout Plain Layout
13328 LatexType
13329 \end_layout
13330
13331 \end_inset
13332
13333  [
13334 \begin_inset Flex Code
13335 status collapsed
13336
13337 \begin_layout Plain Layout
13338
13339 \emph on
13340 Paragraph
13341 \emph default
13342 , Command, Environment, Item_Environment,
13343 \begin_inset Newline newline
13344 \end_inset
13345
13346 List_Environment, Bib_Environment
13347 \end_layout
13348
13349 \end_inset
13350
13351 ] How the style should be translated into \SpecialChar LaTeX
13352 .
13353 \begin_inset Foot
13354 status collapsed
13355
13356 \begin_layout Plain Layout
13357 \begin_inset Flex Code
13358 status collapsed
13359
13360 \begin_layout Plain Layout
13361 LatexType
13362 \end_layout
13363
13364 \end_inset
13365
13366  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13367  Visit the SGML class files for specific examples.
13368 \end_layout
13369
13370 \end_inset
13371
13372
13373 \begin_inset Separator parbreak
13374 \end_inset
13375
13376
13377 \end_layout
13378
13379 \begin_deeper
13380 \begin_layout Description
13381 \begin_inset Flex Code
13382 status collapsed
13383
13384 \begin_layout Plain Layout
13385 Paragraph
13386 \end_layout
13387
13388 \end_inset
13389
13390  means nothing special.
13391 \end_layout
13392
13393 \begin_layout Description
13394 \begin_inset Flex Code
13395 status collapsed
13396
13397 \begin_layout Plain Layout
13398 Command
13399 \end_layout
13400
13401 \end_inset
13402
13403  means 
13404 \begin_inset Flex Code
13405 status collapsed
13406
13407 \begin_layout Plain Layout
13408
13409 \backslash
13410
13411 \emph on
13412 LatexName
13413 \emph default
13414 {\SpecialChar ldots
13415 }
13416 \end_layout
13417
13418 \end_inset
13419
13420 .
13421 \end_layout
13422
13423 \begin_layout Description
13424 \begin_inset Flex Code
13425 status collapsed
13426
13427 \begin_layout Plain Layout
13428 Environment
13429 \end_layout
13430
13431 \end_inset
13432
13433  means 
13434 \begin_inset Flex Code
13435 status collapsed
13436
13437 \begin_layout Plain Layout
13438
13439 \backslash
13440 begin{
13441 \emph on
13442 LatexName
13443 \emph default
13444 }\SpecialChar ldots
13445
13446 \backslash
13447 end{
13448 \emph on
13449 LatexName
13450 \emph default
13451 }
13452 \end_layout
13453
13454 \end_inset
13455
13456 .
13457  
13458 \end_layout
13459
13460 \begin_layout Description
13461 \begin_inset Flex Code
13462 status collapsed
13463
13464 \begin_layout Plain Layout
13465 Item_Environment
13466 \end_layout
13467
13468 \end_inset
13469
13470  is the same as 
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475 Environment
13476 \end_layout
13477
13478 \end_inset
13479
13480 , except that an 
13481 \begin_inset Flex Code
13482 status collapsed
13483
13484 \begin_layout Plain Layout
13485
13486 \backslash
13487 item
13488 \end_layout
13489
13490 \end_inset
13491
13492  is generated for each paragraph of this environment.
13493  
13494 \end_layout
13495
13496 \begin_layout Description
13497 \begin_inset Flex Code
13498 status collapsed
13499
13500 \begin_layout Plain Layout
13501 List_Environment
13502 \end_layout
13503
13504 \end_inset
13505
13506  is the same as 
13507 \begin_inset Flex Code
13508 status collapsed
13509
13510 \begin_layout Plain Layout
13511 Item_Environment
13512 \end_layout
13513
13514 \end_inset
13515
13516 , except that
13517 \begin_inset Newline newline
13518 \end_inset
13519
13520
13521 \begin_inset Flex Code
13522 status collapsed
13523
13524 \begin_layout Plain Layout
13525 LabelWidthString
13526 \end_layout
13527
13528 \end_inset
13529
13530  is passed as an argument to the environment.
13531 \begin_inset Newline newline
13532 \end_inset
13533
13534
13535 \begin_inset Flex Code
13536 status collapsed
13537
13538 \begin_layout Plain Layout
13539 LabelWidthString
13540 \end_layout
13541
13542 \end_inset
13543
13544  can be defined in the 
13545 \begin_inset Flex MenuItem
13546 status collapsed
13547
13548 \begin_layout Plain Layout
13549 Edit\SpecialChar menuseparator
13550 Paragraph
13551 \begin_inset space ~
13552 \end_inset
13553
13554 settings
13555 \end_layout
13556
13557 \end_inset
13558
13559  dialog.
13560 \end_layout
13561
13562 \begin_layout Description
13563 \begin_inset Flex Code
13564 status collapsed
13565
13566 \begin_layout Plain Layout
13567 Bib_Environment
13568 \end_layout
13569
13570 \end_inset
13571
13572  is like 
13573 \begin_inset Flex Code
13574 status collapsed
13575
13576 \begin_layout Plain Layout
13577 Environment
13578 \end_layout
13579
13580 \end_inset
13581
13582  but adds additionally the necessary mandatory argument (the longest label)
13583  to the begin statement of the bibliography environment:
13584 \begin_inset Newline newline
13585 \end_inset
13586
13587
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592
13593 \backslash
13594 begin{thebibliography}{99}
13595 \end_layout
13596
13597 \end_inset
13598
13599  It is therefore only useful for bibliography environments.
13600  The default longest label 
13601 \begin_inset Quotes eld
13602 \end_inset
13603
13604 99
13605 \begin_inset Quotes erd
13606 \end_inset
13607
13608  can be changed by the user in the paragraph settings of a bibliography
13609  item.
13610 \end_layout
13611
13612 \begin_layout Standard
13613 Putting the last few things together, the \SpecialChar LaTeX
13614  output will be either: 
13615 \end_layout
13616
13617 \begin_layout LyX-Code
13618
13619 \backslash
13620 LatexName[LatexParam]{\SpecialChar ldots
13621 }
13622 \end_layout
13623
13624 \begin_layout Standard
13625 or: 
13626 \end_layout
13627
13628 \begin_layout LyX-Code
13629
13630 \backslash
13631 begin{LatexName}[LatexParam] \SpecialChar ldots
13632  
13633 \backslash
13634 end{LatexName}.
13635 \end_layout
13636
13637 \begin_layout Standard
13638 depending upon the \SpecialChar LaTeX
13639  type.
13640 \end_layout
13641
13642 \end_deeper
13643 \begin_layout Description
13644 \begin_inset Flex Code
13645 status collapsed
13646
13647 \begin_layout Plain Layout
13648 LeftDelim
13649 \end_layout
13650
13651 \end_inset
13652
13653  [
13654 \begin_inset Flex Code
13655 status collapsed
13656
13657 \begin_layout Plain Layout
13658 string
13659 \end_layout
13660
13661 \end_inset
13662
13663 ] A string that is put at the beginning of the style content.
13664  A line break in the output can be indicated by 
13665 \begin_inset Flex Code
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669 <br/>
13670 \end_layout
13671
13672 \end_inset
13673
13674 .
13675 \end_layout
13676
13677 \begin_layout Description
13678 \begin_inset Flex Code
13679 status collapsed
13680
13681 \begin_layout Plain Layout
13682 LeftMargin
13683 \end_layout
13684
13685 \end_inset
13686
13687  [
13688 \begin_inset Flex Code
13689 status collapsed
13690
13691 \begin_layout Plain Layout
13692 string=""
13693 \end_layout
13694
13695 \end_inset
13696
13697 ] If you put styles into environments, the different 
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 LeftMargin
13703 \end_layout
13704
13705 \end_inset
13706
13707  are not simply added, but added with a factor 
13708 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13709 \end_inset
13710
13711 .
13712  Note that this parameter is also used when 
13713 \begin_inset Flex Code
13714 status collapsed
13715
13716 \begin_layout Plain Layout
13717 Margin
13718 \end_layout
13719
13720 \end_inset
13721
13722  is defined as 
13723 \begin_inset Flex Code
13724 status collapsed
13725
13726 \begin_layout Plain Layout
13727 Manual
13728 \end_layout
13729
13730 \end_inset
13731
13732  or 
13733 \begin_inset Flex Code
13734 status collapsed
13735
13736 \begin_layout Plain Layout
13737 Dynamic
13738 \end_layout
13739
13740 \end_inset
13741
13742 .
13743  Then it is added to the manual or dynamic margin.
13744 \begin_inset Newline newline
13745 \end_inset
13746
13747 For example 
13748 \begin_inset Quotes eld
13749 \end_inset
13750
13751
13752 \begin_inset Flex Code
13753 status collapsed
13754
13755 \begin_layout Plain Layout
13756 MM
13757 \end_layout
13758
13759 \end_inset
13760
13761
13762 \begin_inset Quotes erd
13763 \end_inset
13764
13765  means that the paragraph is indented with the width of 
13766 \begin_inset Quotes eld
13767 \end_inset
13768
13769
13770 \begin_inset Flex Code
13771 status collapsed
13772
13773 \begin_layout Plain Layout
13774 MM
13775 \end_layout
13776
13777 \end_inset
13778
13779
13780 \begin_inset Quotes erd
13781 \end_inset
13782
13783  in the normal font.
13784  You can get a negative width by prefixing the string with 
13785 \begin_inset Quotes eld
13786 \end_inset
13787
13788
13789 \begin_inset Flex Code
13790 status collapsed
13791
13792 \begin_layout Plain Layout
13793 -
13794 \end_layout
13795
13796 \end_inset
13797
13798
13799 \begin_inset Quotes erd
13800 \end_inset
13801
13802 .
13803  This way was chosen so that the look is the same with each used screen
13804  font.
13805 \end_layout
13806
13807 \begin_layout Description
13808 \begin_inset Flex Code
13809 status collapsed
13810
13811 \begin_layout Plain Layout
13812 Margin
13813 \end_layout
13814
13815 \end_inset
13816
13817  [
13818 \begin_inset Flex Code
13819 status collapsed
13820
13821 \begin_layout Plain Layout
13822
13823 \emph on
13824 Static
13825 \emph default
13826 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13827 \end_layout
13828
13829 \end_inset
13830
13831
13832 \begin_inset Newline newline
13833 \end_inset
13834
13835 The kind of margin that the style has on the left side.
13836 \begin_inset Separator parbreak
13837 \end_inset
13838
13839
13840 \end_layout
13841
13842 \begin_deeper
13843 \begin_layout Description
13844 \begin_inset Flex Code
13845 status collapsed
13846
13847 \begin_layout Plain Layout
13848 Static
13849 \end_layout
13850
13851 \end_inset
13852
13853  just means a fixed margin.
13854 \end_layout
13855
13856 \begin_layout Description
13857 \begin_inset Flex Code
13858 status collapsed
13859
13860 \begin_layout Plain Layout
13861 Manual
13862 \end_layout
13863
13864 \end_inset
13865
13866  means that the left margin depends on the string entered in the 
13867 \begin_inset Flex MenuItem
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 Edit\SpecialChar menuseparator
13872 Paragraph
13873 \begin_inset space ~
13874 \end_inset
13875
13876 Settings
13877 \end_layout
13878
13879 \end_inset
13880
13881  dialog.
13882  This is used to typeset nice lists without tabulators.
13883 \end_layout
13884
13885 \begin_layout Description
13886 \begin_inset Flex Code
13887 status collapsed
13888
13889 \begin_layout Plain Layout
13890 Dynamic
13891 \end_layout
13892
13893 \end_inset
13894
13895  means that the margin depends on the size of the label.
13896  This is used for automatic enumerated headlines.
13897  It is obvious that the headline 
13898 \begin_inset Quotes eld
13899 \end_inset
13900
13901 5.4.3.2.1 Very long headline
13902 \begin_inset Quotes erd
13903 \end_inset
13904
13905  must have a wider left margin (as wide as 
13906 \begin_inset Quotes eld
13907 \end_inset
13908
13909 5.4.3.2.1
13910 \begin_inset Quotes erd
13911 \end_inset
13912
13913  plus the space) than 
13914 \begin_inset Quotes eld
13915 \end_inset
13916
13917 3.2 Very long headline
13918 \begin_inset Quotes erd
13919 \end_inset
13920
13921 , even if standard 
13922 \begin_inset Quotes eld
13923 \end_inset
13924
13925 word processors
13926 \begin_inset Quotes erd
13927 \end_inset
13928
13929  are not able to do this.
13930 \end_layout
13931
13932 \begin_layout Description
13933 \begin_inset Flex Code
13934 status collapsed
13935
13936 \begin_layout Plain Layout
13937 First_Dynamic
13938 \end_layout
13939
13940 \end_inset
13941
13942  is similar, but only the very first row of the paragraph is dynamic, while
13943  the others are static; this is used, for example, for descriptions.
13944 \end_layout
13945
13946 \begin_layout Description
13947 \begin_inset Flex Code
13948 status collapsed
13949
13950 \begin_layout Plain Layout
13951 Right_Address_Box
13952 \end_layout
13953
13954 \end_inset
13955
13956  means the margin is chosen in a way that the longest row of this paragraph
13957  fits to the right margin.
13958  This is used to typeset an address on the right edge of the page.
13959 \end_layout
13960
13961 \end_deeper
13962 \begin_layout Description
13963 \begin_inset Flex Code
13964 status collapsed
13965
13966 \begin_layout Plain Layout
13967 NeedProtect
13968 \end_layout
13969
13970 \end_inset
13971
13972  [
13973 \begin_inset Flex Code
13974 status collapsed
13975
13976 \begin_layout Plain Layout
13977
13978 \emph on
13979 0
13980 \end_layout
13981
13982 \end_inset
13983
13984 ,
13985 \begin_inset space \thinspace{}
13986 \end_inset
13987
13988
13989 \begin_inset Flex Code
13990 status collapsed
13991
13992 \begin_layout Plain Layout
13993 1
13994 \end_layout
13995
13996 \end_inset
13997
13998 ] Whether fragile commands in this style should be 
13999 \begin_inset Flex Code
14000 status collapsed
14001
14002 \begin_layout Plain Layout
14003
14004 \backslash
14005 protect
14006 \end_layout
14007
14008 \end_inset
14009
14010 'ed.
14011  (Note: This is 
14012 \emph on
14013 not
14014 \emph default
14015  whether this command should itself be protected.)
14016 \end_layout
14017
14018 \begin_layout Description
14019 \begin_inset Flex Code
14020 status collapsed
14021
14022 \begin_layout Plain Layout
14023 Newline
14024 \end_layout
14025
14026 \end_inset
14027
14028  [
14029 \begin_inset Flex Code
14030 status collapsed
14031
14032 \begin_layout Plain Layout
14033 0
14034 \end_layout
14035
14036 \end_inset
14037
14038 ,
14039 \begin_inset space \thinspace{}
14040 \end_inset
14041
14042
14043 \begin_inset Flex Code
14044 status collapsed
14045
14046 \begin_layout Plain Layout
14047
14048 \emph on
14049 1
14050 \end_layout
14051
14052 \end_inset
14053
14054 ] Whether newlines are translated into \SpecialChar LaTeX
14055  newlines (
14056 \begin_inset Flex Code
14057 status collapsed
14058
14059 \begin_layout Plain Layout
14060
14061 \backslash
14062
14063 \backslash
14064
14065 \end_layout
14066
14067 \end_inset
14068
14069 ) or not.
14070  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14071  editing
14072  inside \SpecialChar LyX
14073 .
14074 \end_layout
14075
14076 \begin_layout Description
14077 \begin_inset Flex Code
14078 status collapsed
14079
14080 \begin_layout Plain Layout
14081 NextNoIndent
14082 \end_layout
14083
14084 \end_inset
14085
14086  [
14087 \begin_inset Flex Code
14088 status collapsed
14089
14090 \begin_layout Plain Layout
14091
14092 \emph on
14093 0
14094 \end_layout
14095
14096 \end_inset
14097
14098 ,
14099 \begin_inset space \thinspace{}
14100 \end_inset
14101
14102
14103 \begin_inset Flex Code
14104 status collapsed
14105
14106 \begin_layout Plain Layout
14107 1
14108 \end_layout
14109
14110 \end_inset
14111
14112 ] If set to true, and if 
14113 \begin_inset Flex Code
14114 status collapsed
14115
14116 \begin_layout Plain Layout
14117 DefaultStyle
14118 \end_layout
14119
14120 \end_inset
14121
14122  (usually 
14123 \begin_inset Flex Code
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 Standard
14128 \end_layout
14129
14130 \end_inset
14131
14132 ) paragraphs are being indented, then the indentation of such a paragraph
14133  following one of this type will be suppressed.
14134  (So this will not affect the display of non-default paragraphs.)
14135 \end_layout
14136
14137 \begin_layout Description
14138 \begin_inset Flex Code
14139 status collapsed
14140
14141 \begin_layout Plain Layout
14142 ObsoletedBy
14143 \end_layout
14144
14145 \end_inset
14146
14147  [
14148 \begin_inset Flex Code
14149 status collapsed
14150
14151 \begin_layout Plain Layout
14152 <name>
14153 \end_layout
14154
14155 \end_inset
14156
14157 ] Name of a style that has replaced this style.
14158  This is used to rename a style, while keeping backward compatibility.
14159 \end_layout
14160
14161 \begin_layout Description
14162 \begin_inset Flex Code
14163 status collapsed
14164
14165 \begin_layout Plain Layout
14166 ParbreakIsNewline
14167 \end_layout
14168
14169 \end_inset
14170
14171  [
14172 \begin_inset Flex Code
14173 status collapsed
14174
14175 \begin_layout Plain Layout
14176
14177 \emph on
14178 0
14179 \end_layout
14180
14181 \end_inset
14182
14183 ,
14184 \begin_inset space \thinspace{}
14185 \end_inset
14186
14187
14188 \begin_inset Flex Code
14189 status collapsed
14190
14191 \begin_layout Plain Layout
14192 1
14193 \end_layout
14194
14195 \end_inset
14196
14197 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14198  output,
14199  but only by a line break; together with 
14200 \begin_inset Flex Code
14201 status collapsed
14202
14203 \begin_layout Plain Layout
14204 PassThru 1
14205 \end_layout
14206
14207 \end_inset
14208
14209 , this allows to emulate a plain text editor (like the ERT inset).
14210 \end_layout
14211
14212 \begin_layout Description
14213 \begin_inset Flex Code
14214 status collapsed
14215
14216 \begin_layout Plain Layout
14217 ParIndent
14218 \end_layout
14219
14220 \end_inset
14221
14222  [
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 string=""
14228 \end_layout
14229
14230 \end_inset
14231
14232 ] The indent of the very first line of a paragraph.
14233  The
14234 \begin_inset Newline newline
14235 \end_inset
14236
14237
14238 \begin_inset Flex Code
14239 status collapsed
14240
14241 \begin_layout Plain Layout
14242 Parindent
14243 \end_layout
14244
14245 \end_inset
14246
14247  will be fixed for a certain style.
14248  The exception is the default style, since the indentation for these paragraphs
14249  can be prohibited with 
14250 \begin_inset Flex Code
14251 status collapsed
14252
14253 \begin_layout Plain Layout
14254 NextNoIndent
14255 \end_layout
14256
14257 \end_inset
14258
14259 .
14260  Also, 
14261 \begin_inset Flex Code
14262 status collapsed
14263
14264 \begin_layout Plain Layout
14265 Standard
14266 \end_layout
14267
14268 \end_inset
14269
14270  style paragraphs inside environments use the 
14271 \begin_inset Flex Code
14272 status collapsed
14273
14274 \begin_layout Plain Layout
14275 Parindent
14276 \end_layout
14277
14278 \end_inset
14279
14280  of the environment, not their native one.
14281  For example, 
14282 \begin_inset Flex Code
14283 status collapsed
14284
14285 \begin_layout Plain Layout
14286 Standard
14287 \end_layout
14288
14289 \end_inset
14290
14291  paragraphs inside an enumeration are not indented.
14292 \end_layout
14293
14294 \begin_layout Description
14295 \begin_inset Flex Code
14296 status collapsed
14297
14298 \begin_layout Plain Layout
14299 ParSep
14300 \end_layout
14301
14302 \end_inset
14303
14304  [
14305 \begin_inset Flex Code
14306 status collapsed
14307
14308 \begin_layout Plain Layout
14309 float=0
14310 \end_layout
14311
14312 \end_inset
14313
14314 ] The vertical space between two paragraphs of this style.
14315 \end_layout
14316
14317 \begin_layout Description
14318 \begin_inset Flex Code
14319 status collapsed
14320
14321 \begin_layout Plain Layout
14322 Parskip
14323 \end_layout
14324
14325 \end_inset
14326
14327  [
14328 \begin_inset Flex Code
14329 status collapsed
14330
14331 \begin_layout Plain Layout
14332 float=0
14333 \end_layout
14334
14335 \end_inset
14336
14337 ] \SpecialChar LyX
14338  allows the user to choose either 
14339 \begin_inset Quotes eld
14340 \end_inset
14341
14342 indent
14343 \begin_inset Quotes erd
14344 \end_inset
14345
14346  or 
14347 \begin_inset Quotes eld
14348 \end_inset
14349
14350 skip
14351 \begin_inset Quotes erd
14352 \end_inset
14353
14354  to separate paragraphs.
14355  When 
14356 \begin_inset Quotes eld
14357 \end_inset
14358
14359 indent
14360 \begin_inset Quotes erd
14361 \end_inset
14362
14363  is chosen, 
14364 \begin_inset Flex Code
14365 status collapsed
14366
14367 \begin_layout Plain Layout
14368 Parskip
14369 \end_layout
14370
14371 \end_inset
14372
14373  is ignored.
14374  When 
14375 \begin_inset Quotes eld
14376 \end_inset
14377
14378 skip
14379 \begin_inset Quotes erd
14380 \end_inset
14381
14382  is chosen, 
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 ParIndent
14388 \end_layout
14389
14390 \end_inset
14391
14392  is ignored and all paragraphs are separated by the 
14393 \begin_inset Flex Code
14394 status collapsed
14395
14396 \begin_layout Plain Layout
14397 Parskip
14398 \end_layout
14399
14400 \end_inset
14401
14402  argument.
14403  The vertical space is calculated with 
14404 \begin_inset Flex Code
14405 status collapsed
14406
14407 \begin_layout Plain Layout
14408 Parskip
14409 \begin_inset space ~
14410 \end_inset
14411
14412 * DefaultHeight
14413 \end_layout
14414
14415 \end_inset
14416
14417  where 
14418 \begin_inset Flex Code
14419 status collapsed
14420
14421 \begin_layout Plain Layout
14422 DefaultHeight
14423 \end_layout
14424
14425 \end_inset
14426
14427  is the height of a row with the normal font.
14428  This way, the look stays the same with different screen fonts.
14429 \end_layout
14430
14431 \begin_layout Description
14432 \begin_inset Flex Code
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436 PassThru
14437 \end_layout
14438
14439 \end_inset
14440
14441  [
14442 \begin_inset Flex Code
14443 status collapsed
14444
14445 \begin_layout Plain Layout
14446
14447 \emph on
14448 0
14449 \end_layout
14450
14451 \end_inset
14452
14453 ,
14454 \begin_inset space \thinspace{}
14455 \end_inset
14456
14457
14458 \begin_inset Flex Code
14459 status collapsed
14460
14461 \begin_layout Plain Layout
14462 1
14463 \end_layout
14464
14465 \end_inset
14466
14467 ] Whether the contents of this paragraph should be output in raw form, meaning
14468  without special translations that \SpecialChar LaTeX
14469  would require.
14470 \change_inserted 155139281 1429534178
14471
14472 \end_layout
14473
14474 \begin_layout Description
14475
14476 \change_inserted 155139281 1429534242
14477
14478 \lang ngerman
14479 \begin_inset Flex Code
14480 status collapsed
14481
14482 \begin_layout Plain Layout
14483
14484 \change_inserted 155139281 1429534178
14485 PassThruChars
14486 \end_layout
14487
14488 \end_inset
14489
14490
14491 \lang english
14492  [
14493 \begin_inset Flex Code
14494 status collapsed
14495
14496 \begin_layout Plain Layout
14497
14498 \change_inserted 155139281 1429534178
14499 string of characters
14500 \end_layout
14501
14502 \end_inset
14503
14504 ]
14505 \family typewriter
14506  
14507 \family default
14508 Defines individual characters that should be output in raw form, meaning
14509  without special translations that \SpecialChar LaTeX
14510  would require.
14511 \change_unchanged
14512
14513 \end_layout
14514
14515 \begin_layout Description
14516 \begin_inset Flex Code
14517 status collapsed
14518
14519 \begin_layout Plain Layout
14520 Preamble
14521 \end_layout
14522
14523 \end_inset
14524
14525  Information to be included in the \SpecialChar LaTeX
14526  preamble when this style is used.
14527  Used to define macros, load packages, etc., required by this particular
14528  style.
14529  Must end with 
14530 \begin_inset Quotes eld
14531 \end_inset
14532
14533
14534 \begin_inset Flex Code
14535 status collapsed
14536
14537 \begin_layout Plain Layout
14538 EndPreamble
14539 \end_layout
14540
14541 \end_inset
14542
14543
14544 \begin_inset Quotes erd
14545 \end_inset
14546
14547 .
14548 \end_layout
14549
14550 \begin_layout Description
14551 \begin_inset Flex Code
14552 status collapsed
14553
14554 \begin_layout Plain Layout
14555 RefPrefix
14556 \end_layout
14557
14558 \end_inset
14559
14560  [
14561 \begin_inset Flex Code
14562 status collapsed
14563
14564 \begin_layout Plain Layout
14565 string
14566 \end_layout
14567
14568 \end_inset
14569
14570 ] The prefix to use when creating labels referring to paragraphs of this
14571  type.
14572  This allows the use of formatted references.
14573 \end_layout
14574
14575 \begin_layout Description
14576 \begin_inset Flex Code
14577 status collapsed
14578
14579 \begin_layout Plain Layout
14580 Requires 
14581 \end_layout
14582
14583 \end_inset
14584
14585  [
14586 \begin_inset Flex Code
14587 status collapsed
14588
14589 \begin_layout Plain Layout
14590 string
14591 \end_layout
14592
14593 \end_inset
14594
14595 ] Whether the style requires the feature 
14596 \begin_inset Flex Code
14597 status collapsed
14598
14599 \begin_layout Plain Layout
14600 string
14601 \end_layout
14602
14603 \end_inset
14604
14605 .
14606  See the description of 
14607 \begin_inset Flex Code
14608 status collapsed
14609
14610 \begin_layout Plain Layout
14611 Provides
14612 \end_layout
14613
14614 \end_inset
14615
14616  above (
14617 \begin_inset CommandInset ref
14618 LatexCommand ref
14619 reference "sub:General-text-class"
14620
14621 \end_inset
14622
14623 ) for information on `features'.
14624 \end_layout
14625
14626 \begin_layout Description
14627 \begin_inset Flex Code
14628 status collapsed
14629
14630 \begin_layout Plain Layout
14631 ResetArgs
14632 \end_layout
14633
14634 \end_inset
14635
14636  [
14637 \begin_inset Flex Code
14638 status collapsed
14639
14640 \begin_layout Plain Layout
14641
14642 \emph on
14643 0
14644 \end_layout
14645
14646 \end_inset
14647
14648 ,
14649 \begin_inset Flex Code
14650 status collapsed
14651
14652 \begin_layout Plain Layout
14653 1
14654 \end_layout
14655
14656 \end_inset
14657
14658 ] Resets the \SpecialChar LaTeX
14659  arguments of this style (as defined via the 
14660 \begin_inset Flex Code
14661 status collapsed
14662
14663 \begin_layout Plain Layout
14664 Argument
14665 \end_layout
14666
14667 \end_inset
14668
14669  tag).
14670  This is useful if you have copied a style via 
14671 \begin_inset Flex Code
14672 status collapsed
14673
14674 \begin_layout Plain Layout
14675 CopyStyle
14676 \end_layout
14677
14678 \end_inset
14679
14680 , but you do not want to inherit its (required and optional) arguments.
14681 \end_layout
14682
14683 \begin_layout Description
14684 \begin_inset Flex Code
14685 status collapsed
14686
14687 \begin_layout Plain Layout
14688 RightDelim
14689 \end_layout
14690
14691 \end_inset
14692
14693  [
14694 \begin_inset Flex Code
14695 status collapsed
14696
14697 \begin_layout Plain Layout
14698 string
14699 \end_layout
14700
14701 \end_inset
14702
14703 ] A string that is put at the end of the layout content.
14704  A line break in the output can be indicated by 
14705 \begin_inset Flex Code
14706 status collapsed
14707
14708 \begin_layout Plain Layout
14709 <br/>
14710 \end_layout
14711
14712 \end_inset
14713
14714 .
14715 \end_layout
14716
14717 \begin_layout Description
14718 \begin_inset Flex Code
14719 status collapsed
14720
14721 \begin_layout Plain Layout
14722 RightMargin
14723 \end_layout
14724
14725 \end_inset
14726
14727  [
14728 \begin_inset Flex Code
14729 status collapsed
14730
14731 \begin_layout Plain Layout
14732 string=""
14733 \end_layout
14734
14735 \end_inset
14736
14737 ] Similar to 
14738 \begin_inset Flex Code
14739 status collapsed
14740
14741 \begin_layout Plain Layout
14742 LeftMargin
14743 \end_layout
14744
14745 \end_inset
14746
14747 .
14748 \end_layout
14749
14750 \begin_layout Description
14751 \begin_inset Flex Code
14752 status collapsed
14753
14754 \begin_layout Plain Layout
14755 Spacing
14756 \end_layout
14757
14758 \end_inset
14759
14760  [
14761 \begin_inset Flex Code
14762 status collapsed
14763
14764 \begin_layout Plain Layout
14765
14766 \emph on
14767 single
14768 \end_layout
14769
14770 \end_inset
14771
14772
14773 \begin_inset Flex Code
14774 status collapsed
14775
14776 \begin_layout Plain Layout
14777 onehalf
14778 \end_layout
14779
14780 \end_inset
14781
14782
14783 \begin_inset Flex Code
14784 status collapsed
14785
14786 \begin_layout Plain Layout
14787 double
14788 \end_layout
14789
14790 \end_inset
14791
14792
14793 \begin_inset Flex Code
14794 status collapsed
14795
14796 \begin_layout Plain Layout
14797 other
14798 \begin_inset space ~
14799 \end_inset
14800
14801 <value>
14802 \end_layout
14803
14804 \end_inset
14805
14806 ] This defines what the default spacing should be in the style.
14807  The arguments 
14808 \begin_inset Flex Code
14809 status collapsed
14810
14811 \begin_layout Plain Layout
14812 single
14813 \end_layout
14814
14815 \end_inset
14816
14817
14818 \begin_inset Flex Code
14819 status collapsed
14820
14821 \begin_layout Plain Layout
14822 onehalf
14823 \end_layout
14824
14825 \end_inset
14826
14827  and 
14828 \begin_inset Flex Code
14829 status collapsed
14830
14831 \begin_layout Plain Layout
14832 double
14833 \end_layout
14834
14835 \end_inset
14836
14837  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14838  If you specify the argument 
14839 \begin_inset Flex Code
14840 status collapsed
14841
14842 \begin_layout Plain Layout
14843 other
14844 \end_layout
14845
14846 \end_inset
14847
14848 , then you must also provide a value argument which will be the actual multiplie
14849 r value.
14850  Note that, contrary to other parameters, 
14851 \begin_inset Flex Code
14852 status collapsed
14853
14854 \begin_layout Plain Layout
14855 Spacing
14856 \end_layout
14857
14858 \end_inset
14859
14860  implies the generation of specific \SpecialChar LaTeX
14861  code, using the \SpecialChar LaTeX
14862  package 
14863 \family roman
14864
14865 \begin_inset Flex Code
14866 status collapsed
14867
14868 \begin_layout Plain Layout
14869 setspace
14870 \end_layout
14871
14872 \end_inset
14873
14874 .
14875 \end_layout
14876
14877 \begin_layout Description
14878 \begin_inset Flex Code
14879 status collapsed
14880
14881 \begin_layout Plain Layout
14882 Spellcheck
14883 \end_layout
14884
14885 \end_inset
14886
14887  [
14888 \begin_inset Flex Code
14889 status collapsed
14890
14891 \begin_layout Plain Layout
14892 0
14893 \end_layout
14894
14895 \end_inset
14896
14897 ,
14898 \begin_inset space \thinspace{}
14899 \end_inset
14900
14901
14902 \begin_inset Flex Code
14903 status collapsed
14904
14905 \begin_layout Plain Layout
14906
14907 \emph on
14908 1
14909 \end_layout
14910
14911 \end_inset
14912
14913 ] Allow spell-checking paragraphs of this style.
14914  Default is true.
14915 \end_layout
14916
14917 \begin_layout Description
14918 \begin_inset Flex Code
14919 status collapsed
14920
14921 \begin_layout Plain Layout
14922 TextFont
14923 \end_layout
14924
14925 \end_inset
14926
14927  The font used for the text body .
14928  See 
14929 \begin_inset CommandInset ref
14930 LatexCommand ref
14931 reference "sub:Font-description"
14932
14933 \end_inset
14934
14935 .
14936 \end_layout
14937
14938 \begin_layout Description
14939 \begin_inset Flex Code
14940 status collapsed
14941
14942 \begin_layout Plain Layout
14943 TocLevel
14944 \end_layout
14945
14946 \end_inset
14947
14948
14949 \series medium
14950  [
14951 \begin_inset Flex Code
14952 status collapsed
14953
14954 \begin_layout Plain Layout
14955
14956 \series medium
14957 int=3
14958 \end_layout
14959
14960 \end_inset
14961
14962 ]
14963 \series default
14964  The level of the style in the table of contents.
14965  This is used for automatic numbering of section headings.
14966 \change_inserted -712698321 1401363541
14967
14968 \end_layout
14969
14970 \begin_layout Description
14971
14972 \change_inserted -712698321 1401363906
14973 \begin_inset Flex Code
14974 status collapsed
14975
14976 \begin_layout Plain Layout
14977
14978 \change_inserted -712698321 1401363547
14979 ToggleIndent
14980 \end_layout
14981
14982 \end_inset
14983
14984  [
14985 \emph on
14986
14987 \begin_inset Flex Code
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991
14992 \change_inserted -712698321 1401363664
14993
14994 \emph on
14995 default
14996 \change_unchanged
14997
14998 \end_layout
14999
15000 \end_inset
15001
15002
15003 \emph default
15004
15005 \begin_inset Flex Code
15006 status collapsed
15007
15008 \begin_layout Plain Layout
15009
15010 \change_inserted -712698321 1401363669
15011 always
15012 \change_unchanged
15013
15014 \end_layout
15015
15016 \end_inset
15017
15018
15019 \begin_inset Flex Code
15020 status collapsed
15021
15022 \begin_layout Plain Layout
15023
15024 \change_inserted -712698321 1401363675
15025 never
15026 \change_unchanged
15027
15028 \end_layout
15029
15030 \end_inset
15031
15032 ] This tag determines whether the first line indentation of this paragraph
15033  can be toggled via the Paragraph settings dialog.
15034  If 
15035 \emph on
15036
15037 \begin_inset Flex Code
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041
15042 \change_inserted -712698321 1401363761
15043
15044 \emph off
15045 default
15046 \end_layout
15047
15048 \end_inset
15049
15050
15051 \emph default
15052  is set, indentation can be toggled if the document settings use 
15053 \begin_inset Quotes eld
15054 \end_inset
15055
15056 indent
15057 \begin_inset Quotes erd
15058 \end_inset
15059
15060  paragraph style, with 
15061 \begin_inset Flex Code
15062 status collapsed
15063
15064 \begin_layout Plain Layout
15065
15066 \change_inserted -712698321 1401363844
15067 always
15068 \end_layout
15069
15070 \end_inset
15071
15072 , indentation can always be toggled, notwithstanding the document settings,
15073  with 
15074 \begin_inset Flex Code
15075 status collapsed
15076
15077 \begin_layout Plain Layout
15078
15079 \change_inserted -712698321 1401363901
15080 never
15081 \end_layout
15082
15083 \end_inset
15084
15085 , indentation can never be toggled.
15086 \change_unchanged
15087
15088 \end_layout
15089
15090 \begin_layout Description
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 TopSep
15096 \end_layout
15097
15098 \end_inset
15099
15100  [
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 float=0
15106 \end_layout
15107
15108 \end_inset
15109
15110 ] The vertical space with which the very first of a chain of paragraphs
15111  with this style is separated from the previous paragraph.
15112  If the previous paragraph has another style, the separations are not simply
15113  added, but the maximum is taken.
15114 \end_layout
15115
15116 \begin_layout Subsection
15117 \begin_inset CommandInset label
15118 LatexCommand label
15119 name "sub:I18n"
15120
15121 \end_inset
15122
15123 Internationalization of Paragraph Styles
15124 \end_layout
15125
15126 \begin_layout Standard
15127 \SpecialChar LyX
15128  has long supported internationalization of layout information, but, until
15129  version 2.0, this applied only to the user interface and not to, say, PDF
15130  output.
15131  Thus, French authors were forced to resort to ugly hacks if they wanted
15132  `
15133 \lang french
15134 Théorème
15135 \lang english
15136  1' instead of `Theorem 1'.
15137  Thanks to Georg Baum, that is no longer the case.
15138 \end_layout
15139
15140 \begin_layout Standard
15141 If a 
15142 \begin_inset Flex Code
15143 status collapsed
15144
15145 \begin_layout Plain Layout
15146 Style
15147 \end_layout
15148
15149 \end_inset
15150
15151  defines text that is to appear in the typeset document, it may use 
15152 \begin_inset Flex Code
15153 status collapsed
15154
15155 \begin_layout Plain Layout
15156 LangPreamble
15157 \end_layout
15158
15159 \end_inset
15160
15161  and 
15162 \begin_inset Flex Code
15163 status collapsed
15164
15165 \begin_layout Plain Layout
15166 BabelPreamble
15167 \end_layout
15168
15169 \end_inset
15170
15171  to support non-English and even multi-language documents correctly.
15172  The following excerpt (from the 
15173 \begin_inset Flex Code
15174 status collapsed
15175
15176 \begin_layout Plain Layout
15177 theorems-ams.inc
15178 \end_layout
15179
15180 \end_inset
15181
15182  file) shows how this works:
15183 \end_layout
15184
15185 \begin_layout LyX-Code
15186 Preamble
15187 \begin_inset Separator parbreak
15188 \end_inset
15189
15190
15191 \end_layout
15192
15193 \begin_deeper
15194 \begin_layout LyX-Code
15195   
15196 \backslash
15197 theoremstyle{remark}
15198 \end_layout
15199
15200 \begin_layout LyX-Code
15201   
15202 \backslash
15203 newtheorem{claim}[thm]{
15204 \backslash
15205 protect
15206 \backslash
15207 claimname}
15208 \end_layout
15209
15210 \begin_layout LyX-Code
15211 EndPreamble
15212 \end_layout
15213
15214 \begin_layout LyX-Code
15215 LangPreamble
15216 \end_layout
15217
15218 \begin_layout LyX-Code
15219   
15220 \backslash
15221 providecommand{
15222 \backslash
15223 claimname}{_(Claim)}
15224 \end_layout
15225
15226 \begin_layout LyX-Code
15227 EndLangPreamble
15228 \end_layout
15229
15230 \begin_layout LyX-Code
15231 BabelPreamble
15232 \end_layout
15233
15234 \begin_layout LyX-Code
15235     
15236 \backslash
15237 addto
15238 \backslash
15239 captions$$lang{
15240 \backslash
15241 renewcommand{
15242 \backslash
15243 claimname}{_(Claim)}}
15244 \end_layout
15245
15246 \begin_layout LyX-Code
15247 EndBabelPreamble
15248 \end_layout
15249
15250 \end_deeper
15251 \begin_layout Standard
15252 In principle, any legal \SpecialChar LaTeX
15253  may appear in the 
15254 \begin_inset Flex Code
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258 LangPreamble
15259 \end_layout
15260
15261 \end_inset
15262
15263  and 
15264 \begin_inset Flex Code
15265 status collapsed
15266
15267 \begin_layout Plain Layout
15268 BabelPreamble
15269 \end_layout
15270
15271 \end_inset
15272
15273  tags, but in practice they will typically look as they do here.
15274  The key to correct translation of the typeset text is the definition of
15275  the \SpecialChar LaTeX
15276  command 
15277 \begin_inset Flex Code
15278 status collapsed
15279
15280 \begin_layout Plain Layout
15281
15282 \backslash
15283 claimname
15284 \end_layout
15285
15286 \end_inset
15287
15288  and its use in 
15289 \begin_inset Flex Code
15290 status collapsed
15291
15292 \begin_layout Plain Layout
15293
15294 \backslash
15295 newtheorem
15296 \end_layout
15297
15298 \end_inset
15299
15300 .
15301  
15302 \end_layout
15303
15304 \begin_layout Standard
15305 The 
15306 \begin_inset Flex Code
15307 status collapsed
15308
15309 \begin_layout Plain Layout
15310 LangPreamble
15311 \end_layout
15312
15313 \end_inset
15314
15315  tag provides for internationalization based upon the overall language of
15316  the document.
15317  The contents of the tag will be included in the preamble, just as with
15318  the 
15319 \begin_inset Flex Code
15320 status collapsed
15321
15322 \begin_layout Plain Layout
15323 Preamble
15324 \end_layout
15325
15326 \end_inset
15327
15328  tag.
15329  What makes it special is the use of the 
15330 \begin_inset Quotes eld
15331 \end_inset
15332
15333 function
15334 \begin_inset Quotes erd
15335 \end_inset
15336
15337  
15338 \begin_inset Flex Code
15339 status collapsed
15340
15341 \begin_layout Plain Layout
15342 _()
15343 \end_layout
15344
15345 \end_inset
15346
15347 , which will be replaced, when \SpecialChar LyX
15348  produces \SpecialChar LaTeX
15349  output, with the translation of
15350  its argument into the document language.
15351 \end_layout
15352
15353 \begin_layout Standard
15354 The 
15355 \begin_inset Flex Code
15356 status collapsed
15357
15358 \begin_layout Plain Layout
15359 BabelPreamble
15360 \end_layout
15361
15362 \end_inset
15363
15364  tag is more complex, since it is meant to provide support for multi-language
15365  documents and so offers an interface to the 
15366 \begin_inset Flex Code
15367 status collapsed
15368
15369 \begin_layout Plain Layout
15370 babel
15371 \end_layout
15372
15373 \end_inset
15374
15375  package.
15376  Its contents will be added to the preamble once for each language that
15377  appears in the document.
15378  In this case, the argument to 
15379 \begin_inset Flex Code
15380 status collapsed
15381
15382 \begin_layout Plain Layout
15383 _()
15384 \end_layout
15385
15386 \end_inset
15387
15388  will be replaced with its translation into the language in question; the
15389  expression 
15390 \begin_inset Flex Code
15391 status collapsed
15392
15393 \begin_layout Plain Layout
15394 $$lang
15395 \end_layout
15396
15397 \end_inset
15398
15399  is replaced by the language name (as used by the babel package).
15400 \end_layout
15401
15402 \begin_layout Standard
15403 A German document that also included a French section would thus have the
15404  following in the preamble:
15405 \end_layout
15406
15407 \begin_layout LyX-Code
15408
15409 \backslash
15410 addto
15411 \backslash
15412 captionsfrench{
15413 \backslash
15414 renewcommand{
15415 \backslash
15416 claimname}{Affirmation}}
15417 \begin_inset Newline newline
15418 \end_inset
15419
15420
15421 \backslash
15422 addto
15423 \backslash
15424 captionsngerman{
15425 \backslash
15426 renewcommand{
15427 \backslash
15428 claimname}{Behauptung}}
15429 \begin_inset Newline newline
15430 \end_inset
15431
15432
15433 \backslash
15434 providecommand{
15435 \backslash
15436 claimname}{Behauptung}
15437 \end_layout
15438
15439 \begin_layout Standard
15440 \SpecialChar LaTeX
15441  and 
15442 \begin_inset Flex Code
15443 status collapsed
15444
15445 \begin_layout Plain Layout
15446 babel
15447 \end_layout
15448
15449 \end_inset
15450
15451  will then conspire to produce the correct text in the output.
15452 \end_layout
15453
15454 \begin_layout Standard
15455 One important point to note here is that the translations are provided by
15456  \SpecialChar LyX
15457  itself, through the file 
15458 \begin_inset Flex Code
15459 status collapsed
15460
15461 \begin_layout Plain Layout
15462 layouttranslations
15463 \end_layout
15464
15465 \end_inset
15466
15467 .
15468  This means, in effect, that 
15469 \begin_inset Flex Code
15470 status collapsed
15471
15472 \begin_layout Plain Layout
15473 LangPreamble
15474 \end_layout
15475
15476 \end_inset
15477
15478  and 
15479 \begin_inset Flex Code
15480 status collapsed
15481
15482 \begin_layout Plain Layout
15483 BabelPreamble
15484 \end_layout
15485
15486 \end_inset
15487
15488  are really only of use in layout files that are provided with \SpecialChar LyX
15489 , since text
15490  entered in user-created layout files will not be seen by \SpecialChar LyX
15491 's internationalizatio
15492 n routines unless the 
15493 \begin_inset Flex Code
15494 status collapsed
15495
15496 \begin_layout Plain Layout
15497 layouttranslations
15498 \end_layout
15499
15500 \end_inset
15501
15502  file is modified accordingly.
15503  That said, however, any layout created with the intention that it will
15504  be included with \SpecialChar LyX
15505  should use these tags where appropriate.
15506  Please note that the paragraph style translations provided by \SpecialChar LyX
15507  will never
15508  change with a minor update (e.
15509 \begin_inset space \thinspace{}
15510 \end_inset
15511
15512 g.
15513 \begin_inset space \space{}
15514 \end_inset
15515
15516 from version 2.1.x to 2.1.y).
15517  It is however quite likely that a major update (e.
15518 \begin_inset space \thinspace{}
15519 \end_inset
15520
15521 g.
15522 \begin_inset space \space{}
15523 \end_inset
15524
15525 from 2.0.x to 2.1.y) will introduce new translations or corrections.
15526 \end_layout
15527
15528 \begin_layout Subsection
15529 Floats
15530 \begin_inset CommandInset label
15531 LatexCommand label
15532 name "sub:Floats"
15533
15534 \end_inset
15535
15536
15537 \end_layout
15538
15539 \begin_layout Standard
15540 It is necessary to define the floats (
15541 \begin_inset Flex MenuItem
15542 status collapsed
15543
15544 \begin_layout Plain Layout
15545 figure
15546 \end_layout
15547
15548 \end_inset
15549
15550
15551 \begin_inset Flex MenuItem
15552 status collapsed
15553
15554 \begin_layout Plain Layout
15555 table
15556 \end_layout
15557
15558 \end_inset
15559
15560 , \SpecialChar ldots
15561 ) in the text class itself.
15562  Standard floats are included in the file 
15563 \begin_inset Flex Code
15564 status collapsed
15565
15566 \begin_layout Plain Layout
15567 stdfloats.inc
15568 \end_layout
15569
15570 \end_inset
15571
15572 , so you may have to do no more than add
15573 \end_layout
15574
15575 \begin_layout LyX-Code
15576 Input stdfloats.inc
15577 \end_layout
15578
15579 \begin_layout Standard
15580 to your layout file.
15581  If you want to implement a text class that proposes some other float types
15582  (like the AGU class bundled with \SpecialChar LyX
15583 ), the information below will hopefully
15584  help you:
15585 \end_layout
15586
15587 \begin_layout Description
15588 \begin_inset Flex Code
15589 status collapsed
15590
15591 \begin_layout Plain Layout
15592 Extension
15593 \end_layout
15594
15595 \end_inset
15596
15597  [
15598 \begin_inset Flex Code
15599 status collapsed
15600
15601 \begin_layout Plain Layout
15602 string
15603 \end_layout
15604
15605 \end_inset
15606
15607 =
15608 \begin_inset Quotes erd
15609 \end_inset
15610
15611
15612 \begin_inset Quotes erd
15613 \end_inset
15614
15615 ] The file name extension of an auxiliary file for the list of figures (or
15616  whatever).
15617  \SpecialChar LaTeX
15618  writes the captions to this file.
15619 \end_layout
15620
15621 \begin_layout Description
15622 \begin_inset Flex Code
15623 status collapsed
15624
15625 \begin_layout Plain Layout
15626 GuiName
15627 \end_layout
15628
15629 \end_inset
15630
15631  [
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636 string
15637 \end_layout
15638
15639 \end_inset
15640
15641 =
15642 \begin_inset Quotes erd
15643 \end_inset
15644
15645
15646 \begin_inset Quotes erd
15647 \end_inset
15648
15649 ] The string that will be used in the menus and also for the caption.
15650  This is translated to the current language if babel is used.
15651 \end_layout
15652
15653 \begin_layout Description
15654 \begin_inset Flex Code
15655 status collapsed
15656
15657 \begin_layout Plain Layout
15658 HTML*
15659 \end_layout
15660
15661 \end_inset
15662
15663  These tags control the XHTML output.
15664  See 
15665 \begin_inset CommandInset ref
15666 LatexCommand ref
15667 reference "sec:Tags-for-XHTML"
15668
15669 \end_inset
15670
15671 .
15672 \end_layout
15673
15674 \begin_layout Description
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679 IsPredefined
15680 \end_layout
15681
15682 \end_inset
15683
15684  [
15685 \emph on
15686
15687 \begin_inset Flex Code
15688 status collapsed
15689
15690 \begin_layout Plain Layout
15691 0
15692 \end_layout
15693
15694 \end_inset
15695
15696
15697 \emph default
15698 ,
15699 \begin_inset space \thinspace{}
15700 \end_inset
15701
15702
15703 \begin_inset Flex Code
15704 status collapsed
15705
15706 \begin_layout Plain Layout
15707 1
15708 \end_layout
15709
15710 \end_inset
15711
15712 ] Indicates whether the float is already defined in the document class or
15713  if instead the \SpecialChar LaTeX
15714  package 
15715 \begin_inset Flex Code
15716 status collapsed
15717
15718 \begin_layout Plain Layout
15719 float
15720 \end_layout
15721
15722 \end_inset
15723
15724  needs to be loaded to define it on-the-fly.
15725  The default is 
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730 0
15731 \end_layout
15732
15733 \end_inset
15734
15735 , which means: 
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 float
15741 \end_layout
15742
15743 \end_inset
15744
15745  is used.
15746  It should be set to 
15747 \begin_inset Flex Code
15748 status collapsed
15749
15750 \begin_layout Plain Layout
15751 1
15752 \end_layout
15753
15754 \end_inset
15755
15756  if the float is already defined by the \SpecialChar LaTeX
15757  document class.
15758 \end_layout
15759
15760 \begin_layout Description
15761 \begin_inset Flex Code
15762 status collapsed
15763
15764 \begin_layout Plain Layout
15765 ListCommand
15766 \end_layout
15767
15768 \end_inset
15769
15770  [
15771 \begin_inset Flex Code
15772 status collapsed
15773
15774 \begin_layout Plain Layout
15775 string
15776 \end_layout
15777
15778 \end_inset
15779
15780 =
15781 \begin_inset Quotes erd
15782 \end_inset
15783
15784
15785 \begin_inset Quotes erd
15786 \end_inset
15787
15788 ] The command used to generate a list of floats of this type; the leading
15789  `
15790 \backslash
15791 ' must be omitted.
15792  This 
15793 \emph on
15794 must
15795 \emph default
15796  be given if 
15797 \begin_inset Flex Code
15798 status collapsed
15799
15800 \begin_layout Plain Layout
15801 UsesFloatPkg
15802 \end_layout
15803
15804 \end_inset
15805
15806  is false, since there is no standard way to generate this command.
15807  It is ignored if 
15808 \begin_inset Flex Code
15809 status collapsed
15810
15811 \begin_layout Plain Layout
15812 UsesFloatPkg
15813 \end_layout
15814
15815 \end_inset
15816
15817  is true, since in that case there is a standard way to define the command.
15818 \end_layout
15819
15820 \begin_layout Description
15821 \begin_inset Flex Code
15822 status collapsed
15823
15824 \begin_layout Plain Layout
15825 ListName
15826 \end_layout
15827
15828 \end_inset
15829
15830  [
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 string
15836 \end_layout
15837
15838 \end_inset
15839
15840 =
15841 \begin_inset Quotes erd
15842 \end_inset
15843
15844
15845 \begin_inset Quotes erd
15846 \end_inset
15847
15848 ] A title for a list of floats of this kind (list of figures, tables, or
15849  whatever).
15850  It is used for the screen label within \SpecialChar LyX
15851 , it is used by \SpecialChar LaTeX
15852  for the title and
15853  it is used as the title in the XHTML output.
15854  It will be translated to the document language.
15855 \end_layout
15856
15857 \begin_layout Description
15858 \begin_inset Flex Code
15859 status collapsed
15860
15861 \begin_layout Plain Layout
15862 NumberWithin
15863 \end_layout
15864
15865 \end_inset
15866
15867  [
15868 \begin_inset Flex Code
15869 status collapsed
15870
15871 \begin_layout Plain Layout
15872 string
15873 \end_layout
15874
15875 \end_inset
15876
15877 =
15878 \begin_inset Quotes erd
15879 \end_inset
15880
15881
15882 \begin_inset Quotes erd
15883 \end_inset
15884
15885 ] This (optional) argument determines whether floats of this class will
15886  be numbered within some sectional unit of the document.
15887  For example, if 
15888 \begin_inset Flex Code
15889 status collapsed
15890
15891 \begin_layout Plain Layout
15892 NumberWithin
15893 \end_layout
15894
15895 \end_inset
15896
15897  is set to 
15898 \begin_inset Quotes eld
15899 \end_inset
15900
15901
15902 \begin_inset Flex Code
15903 status collapsed
15904
15905 \begin_layout Plain Layout
15906 chapter
15907 \end_layout
15908
15909 \end_inset
15910
15911
15912 \begin_inset Quotes erd
15913 \end_inset
15914
15915 , the floats will be numbered within chapters.
15916  
15917 \end_layout
15918
15919 \begin_layout Description
15920 \begin_inset Flex Code
15921 status collapsed
15922
15923 \begin_layout Plain Layout
15924 Placement
15925 \end_layout
15926
15927 \end_inset
15928
15929  [
15930 \begin_inset Flex Code
15931 status collapsed
15932
15933 \begin_layout Plain Layout
15934 string
15935 \end_layout
15936
15937 \end_inset
15938
15939 =
15940 \begin_inset Quotes erd
15941 \end_inset
15942
15943
15944 \begin_inset Quotes erd
15945 \end_inset
15946
15947 ] The default placement for the given class of floats.
15948  The string should be as in standard \SpecialChar LaTeX
15949
15950 \begin_inset Flex Code
15951 status collapsed
15952
15953 \begin_layout Plain Layout
15954 t
15955 \end_layout
15956
15957 \end_inset
15958
15959
15960 \begin_inset Flex Code
15961 status collapsed
15962
15963 \begin_layout Plain Layout
15964 b
15965 \end_layout
15966
15967 \end_inset
15968
15969
15970 \begin_inset Flex Code
15971 status collapsed
15972
15973 \begin_layout Plain Layout
15974 p
15975 \end_layout
15976
15977 \end_inset
15978
15979  and 
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984 h
15985 \end_layout
15986
15987 \end_inset
15988
15989  for top, bottom, page, and here, respectively.
15990 \begin_inset Foot
15991 status collapsed
15992
15993 \begin_layout Plain Layout
15994 Note that the order of these letters in the string is irrelevant, like in
15995  \SpecialChar LaTeX
15996 .
15997 \end_layout
15998
15999 \end_inset
16000
16001  On top of that there is a new type, 
16002 \begin_inset Flex Code
16003 status collapsed
16004
16005 \begin_layout Plain Layout
16006 H
16007 \end_layout
16008
16009 \end_inset
16010
16011 , which does not really correspond to a float, since it means: put it 
16012 \begin_inset Quotes eld
16013 \end_inset
16014
16015 here
16016 \begin_inset Quotes erd
16017 \end_inset
16018
16019  and nowhere else.
16020  Note however that the 
16021 \begin_inset Flex Code
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025 H
16026 \end_layout
16027
16028 \end_inset
16029
16030  specifier is special and, because of implementation details, cannot be
16031  used in non-built in float types.
16032  If you do not understand what this means, just use 
16033 \begin_inset Quotes eld
16034 \end_inset
16035
16036
16037 \begin_inset Flex Code
16038 status collapsed
16039
16040 \begin_layout Plain Layout
16041 tbp
16042 \end_layout
16043
16044 \end_inset
16045
16046
16047 \begin_inset Quotes erd
16048 \end_inset
16049
16050 .
16051 \end_layout
16052
16053 \begin_layout Description
16054 \begin_inset Flex Code
16055 status collapsed
16056
16057 \begin_layout Plain Layout
16058 RefPrefix
16059 \end_layout
16060
16061 \end_inset
16062
16063  [
16064 \begin_inset Flex Code
16065 status collapsed
16066
16067 \begin_layout Plain Layout
16068 string
16069 \end_layout
16070
16071 \end_inset
16072
16073 ] The prefix to use when creating labels referring to floats of this type.
16074  This allows the use of formatted references.
16075  Note that you can remove any 
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 RefPrefix
16081 \end_layout
16082
16083 \end_inset
16084
16085  set by a copied style by using the special value 
16086 \begin_inset Quotes eld
16087 \end_inset
16088
16089 OFF
16090 \begin_inset Quotes erd
16091 \end_inset
16092
16093 , which must be all caps.
16094 \end_layout
16095
16096 \begin_layout Description
16097 \begin_inset Flex Code
16098 status collapsed
16099
16100 \begin_layout Plain Layout
16101 Style
16102 \end_layout
16103
16104 \end_inset
16105
16106  [
16107 \begin_inset Flex Code
16108 status collapsed
16109
16110 \begin_layout Plain Layout
16111 string
16112 \end_layout
16113
16114 \end_inset
16115
16116 =
16117 \begin_inset Quotes erd
16118 \end_inset
16119
16120
16121 \begin_inset Quotes erd
16122 \end_inset
16123
16124 ] The style used when defining the float using 
16125 \begin_inset Flex Code
16126 status collapsed
16127
16128 \begin_layout Plain Layout
16129
16130 \backslash
16131 newfloat
16132 \end_layout
16133
16134 \end_inset
16135
16136 .
16137 \end_layout
16138
16139 \begin_layout Description
16140 \begin_inset Flex Code
16141 status collapsed
16142
16143 \begin_layout Plain Layout
16144 Type
16145 \end_layout
16146
16147 \end_inset
16148
16149  [
16150 \begin_inset Flex Code
16151 status collapsed
16152
16153 \begin_layout Plain Layout
16154 string
16155 \end_layout
16156
16157 \end_inset
16158
16159 =
16160 \begin_inset Quotes erd
16161 \end_inset
16162
16163
16164 \begin_inset Quotes erd
16165 \end_inset
16166
16167 ] The 
16168 \begin_inset Quotes eld
16169 \end_inset
16170
16171 type
16172 \begin_inset Quotes erd
16173 \end_inset
16174
16175  of the new class of floats, like program or algorithm.
16176  After the appropriate 
16177 \begin_inset Flex Code
16178 status collapsed
16179
16180 \begin_layout Plain Layout
16181
16182 \backslash
16183 newfloat
16184 \end_layout
16185
16186 \end_inset
16187
16188 , commands such as 
16189 \begin_inset Flex Code
16190 status collapsed
16191
16192 \begin_layout Plain Layout
16193
16194 \backslash
16195 begin{program}
16196 \end_layout
16197
16198 \end_inset
16199
16200  or 
16201 \begin_inset Flex Code
16202 status collapsed
16203
16204 \begin_layout Plain Layout
16205
16206 \backslash
16207 end{algorithm*}
16208 \end_layout
16209
16210 \end_inset
16211
16212  will be available.
16213 \end_layout
16214
16215 \begin_layout Description
16216 \begin_inset Flex Code
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220 UsesFloatPkg
16221 \end_layout
16222
16223 \end_inset
16224
16225  [
16226 \begin_inset Flex Code
16227 status collapsed
16228
16229 \begin_layout Plain Layout
16230 0
16231 \end_layout
16232
16233 \end_inset
16234
16235 ,
16236 \begin_inset space \thinspace{}
16237 \end_inset
16238
16239
16240 \begin_inset Flex Code
16241 status collapsed
16242
16243 \begin_layout Plain Layout
16244
16245 \emph on
16246 1
16247 \end_layout
16248
16249 \end_inset
16250
16251 ] Specifies whether this float is defined using the \SpecialChar LaTeX
16252  package 
16253 \begin_inset Flex Code
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257 float
16258 \end_layout
16259
16260 \end_inset
16261
16262 , either by the class file, another package or on-the-fly by \SpecialChar LyX
16263  itself.
16264 \end_layout
16265
16266 \begin_layout Standard
16267 Note that defining a float with type 
16268 \begin_inset Flex Code
16269 status collapsed
16270
16271 \begin_layout Plain Layout
16272
16273 \emph on
16274 type
16275 \end_layout
16276
16277 \end_inset
16278
16279  automatically defines the corresponding counter with name 
16280 \begin_inset Flex Code
16281 status collapsed
16282
16283 \begin_layout Plain Layout
16284
16285 \emph on
16286 type
16287 \end_layout
16288
16289 \end_inset
16290
16291 .
16292 \end_layout
16293
16294 \begin_layout Subsection
16295 Flex insets and InsetLayout
16296 \begin_inset CommandInset label
16297 LatexCommand label
16298 name "sub:Flex-insets-and"
16299
16300 \end_inset
16301
16302
16303 \end_layout
16304
16305 \begin_layout Standard
16306 Flex insets come in three different kinds: 
16307 \end_layout
16308
16309 \begin_layout Itemize
16310 character style (
16311 \begin_inset Flex Code
16312 status collapsed
16313
16314 \begin_layout Plain Layout
16315 CharStyle
16316 \end_layout
16317
16318 \end_inset
16319
16320 ): These define semantic markup corresponding to such \SpecialChar LaTeX
16321  commands as 
16322 \begin_inset Flex Code
16323 status collapsed
16324
16325 \begin_layout Plain Layout
16326
16327 \backslash
16328 noun
16329 \end_layout
16330
16331 \end_inset
16332
16333  and 
16334 \begin_inset Flex Code
16335 status collapsed
16336
16337 \begin_layout Plain Layout
16338
16339 \backslash
16340 code
16341 \end_layout
16342
16343 \end_inset
16344
16345 .
16346 \end_layout
16347
16348 \begin_layout Itemize
16349 user custom (
16350 \begin_inset Flex Code
16351 status collapsed
16352
16353 \begin_layout Plain Layout
16354 Custom
16355 \end_layout
16356
16357 \end_inset
16358
16359 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
16360  code,
16361  footnote, and the like.
16362  An obvious example is an endnote inset, which is defined in the 
16363 \begin_inset Flex Code
16364 status collapsed
16365
16366 \begin_layout Plain Layout
16367 endnote
16368 \end_layout
16369
16370 \end_inset
16371
16372  module.
16373 \end_layout
16374
16375 \begin_layout Itemize
16376 XML elements (
16377 \begin_inset Flex Code
16378 status collapsed
16379
16380 \begin_layout Plain Layout
16381 Element
16382 \end_layout
16383
16384 \end_inset
16385
16386 ): For use with DocBook classes.
16387 \end_layout
16388
16389 \begin_layout Standard
16390 Flex insets are defined using the 
16391 \begin_inset Flex Code
16392 status collapsed
16393
16394 \begin_layout Plain Layout
16395 InsetLayout
16396 \end_layout
16397
16398 \end_inset
16399
16400  tag, which shall be explained in a moment.
16401 \end_layout
16402
16403 \begin_layout Standard
16404 The 
16405 \begin_inset Flex Code
16406 status collapsed
16407
16408 \begin_layout Plain Layout
16409 InsetLayout
16410 \end_layout
16411
16412 \end_inset
16413
16414  tag also serves another function: It can be used to customize the general
16415  layout of many different types of insets.
16416  Currently, 
16417 \begin_inset Flex Code
16418 status collapsed
16419
16420 \begin_layout Plain Layout
16421 InsetLayout
16422 \end_layout
16423
16424 \end_inset
16425
16426  can be used to customize the layout parameters for footnotes, marginal
16427  notes, note insets, \SpecialChar TeX
16428  code (ERT) insets, branches, listings, indexes, boxes,
16429  tables, algorithms, URLs, and captions, as well as to define Flex insets.
16430 \end_layout
16431
16432 \begin_layout Standard
16433 The 
16434 \begin_inset Flex Code
16435 status collapsed
16436
16437 \begin_layout Plain Layout
16438 InsetLayout
16439 \end_layout
16440
16441 \end_inset
16442
16443  definition must begin with a line of the form:
16444 \end_layout
16445
16446 \begin_layout LyX-Code
16447 InsetLayout <type>
16448 \end_layout
16449
16450 \begin_layout Standard
16451 Here 
16452 \begin_inset Flex Code
16453 status collapsed
16454
16455 \begin_layout Plain Layout
16456 <Type>
16457 \end_layout
16458
16459 \end_inset
16460
16461  indicates the inset whose layout is being defined, and here there are four
16462  cases.
16463 \end_layout
16464
16465 \begin_layout Enumerate
16466 The layout for a pre-existing inset is being modified.
16467  In this case, can be 
16468 \begin_inset Flex Code
16469 status collapsed
16470
16471 \begin_layout Plain Layout
16472 <Type>
16473 \end_layout
16474
16475 \end_inset
16476
16477  any one of the following: 
16478 \begin_inset Flex Code
16479 status collapsed
16480
16481 \begin_layout Plain Layout
16482 Algorithm
16483 \end_layout
16484
16485 \end_inset
16486
16487
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492 Branch
16493 \end_layout
16494
16495 \end_inset
16496
16497
16498 \begin_inset Flex Code
16499 status collapsed
16500
16501 \begin_layout Plain Layout
16502 Box
16503 \end_layout
16504
16505 \end_inset
16506
16507
16508 \begin_inset Flex Code
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512 Box:shaded
16513 \end_layout
16514
16515 \end_inset
16516
16517
16518 \begin_inset Flex Code
16519 status collapsed
16520
16521 \begin_layout Plain Layout
16522 Caption:Standard
16523 \end_layout
16524
16525 \end_inset
16526
16527
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532 ERT
16533 \end_layout
16534
16535 \end_inset
16536
16537
16538 \begin_inset Flex Code
16539 status collapsed
16540
16541 \begin_layout Plain Layout
16542 Figure
16543 \end_layout
16544
16545 \end_inset
16546
16547
16548 \begin_inset Flex Code
16549 status collapsed
16550
16551 \begin_layout Plain Layout
16552 Foot
16553 \end_layout
16554
16555 \end_inset
16556
16557
16558 \begin_inset Flex Code
16559 status collapsed
16560
16561 \begin_layout Plain Layout
16562 Index
16563 \end_layout
16564
16565 \end_inset
16566
16567
16568 \begin_inset Flex Code
16569 status collapsed
16570
16571 \begin_layout Plain Layout
16572 Info
16573 \end_layout
16574
16575 \end_inset
16576
16577
16578 \begin_inset Flex Code
16579 status collapsed
16580
16581 \begin_layout Plain Layout
16582 Info:menu
16583 \end_layout
16584
16585 \end_inset
16586
16587
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 Info:shortcut
16593 \end_layout
16594
16595 \end_inset
16596
16597
16598 \begin_inset Flex Code
16599 status collapsed
16600
16601 \begin_layout Plain Layout
16602 Info:shortcuts
16603 \end_layout
16604
16605 \end_inset
16606
16607
16608 \begin_inset Flex Code
16609 status collapsed
16610
16611 \begin_layout Plain Layout
16612 Listings
16613 \end_layout
16614
16615 \end_inset
16616
16617
16618 \begin_inset Flex Code
16619 status collapsed
16620
16621 \begin_layout Plain Layout
16622 Marginal
16623 \end_layout
16624
16625 \end_inset
16626
16627
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 Note:Comment
16633 \end_layout
16634
16635 \end_inset
16636
16637
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 Note:Note
16643 \end_layout
16644
16645 \end_inset
16646
16647
16648 \begin_inset Flex Code
16649 status collapsed
16650
16651 \begin_layout Plain Layout
16652 Note:Greyedout
16653 \end_layout
16654
16655 \end_inset
16656
16657
16658 \begin_inset Flex Code
16659 status collapsed
16660
16661 \begin_layout Plain Layout
16662 Table
16663 \end_layout
16664
16665 \end_inset
16666
16667 , or 
16668 \begin_inset Flex Code
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672 URL
16673 \end_layout
16674
16675 \end_inset
16676
16677 .
16678 \end_layout
16679
16680 \begin_layout Enumerate
16681 The layout for a Flex inset is being defined.
16682  In this case, 
16683 \begin_inset Flex Code
16684 status collapsed
16685
16686 \begin_layout Plain Layout
16687 <Type>
16688 \end_layout
16689
16690 \end_inset
16691
16692  must be of the form 
16693 \begin_inset Quotes eld
16694 \end_inset
16695
16696
16697 \begin_inset Flex Code
16698 status collapsed
16699
16700 \begin_layout Plain Layout
16701 Flex:<name>
16702 \end_layout
16703
16704 \end_inset
16705
16706
16707 \begin_inset Quotes erd
16708 \end_inset
16709
16710 , where 
16711 \begin_inset Flex Code
16712 status collapsed
16713
16714 \begin_layout Plain Layout
16715 name
16716 \end_layout
16717
16718 \end_inset
16719
16720  may be be any valid identifier not used by a pre-existing Flex inset.
16721  The identifier may include spaces, but in that case the whole thing must
16722  be wrapped in quotes.
16723  Note that the definition of a flex inset 
16724 \emph on
16725 must 
16726 \emph default
16727 also include a 
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 \SpecialChar LyX
16733 Type
16734 \end_layout
16735
16736 \end_inset
16737
16738  entry, declaring which type of inset it defines.
16739 \end_layout
16740
16741 \begin_layout Enumerate
16742 The layout for user specific branch is being defined.
16743  In this case, 
16744 \begin_inset Flex Code
16745 status collapsed
16746
16747 \begin_layout Plain Layout
16748 <Type>
16749 \end_layout
16750
16751 \end_inset
16752
16753  must be of the form 
16754 \begin_inset Quotes eld
16755 \end_inset
16756
16757
16758 \begin_inset Flex Code
16759 status collapsed
16760
16761 \begin_layout Plain Layout
16762 Branch:<name>
16763 \end_layout
16764
16765 \end_inset
16766
16767
16768 \begin_inset Quotes erd
16769 \end_inset
16770
16771 , where 
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 name
16777 \end_layout
16778
16779 \end_inset
16780
16781  may be be any valid identifier of branch defined in user's document.
16782  The identifier may include spaces, but in that case the whole thing must
16783  be wrapped in quotes.
16784  The main purpose of this feature is to allow \SpecialChar LaTeX
16785  wrapping around specific
16786  branches as user needs.
16787 \end_layout
16788
16789 \begin_layout Enumerate
16790 The layout of a user (or class) specific caption is being defined.
16791  In this case, 
16792 \begin_inset Flex Code
16793 status collapsed
16794
16795 \begin_layout Plain Layout
16796 <Type>
16797 \end_layout
16798
16799 \end_inset
16800
16801  must be of the form 
16802 \begin_inset Quotes eld
16803 \end_inset
16804
16805
16806 \begin_inset Flex Code
16807 status collapsed
16808
16809 \begin_layout Plain Layout
16810 Caption:<name>
16811 \end_layout
16812
16813 \end_inset
16814
16815
16816 \begin_inset Quotes erd
16817 \end_inset
16818
16819 , where 
16820 \begin_inset Flex Code
16821 status collapsed
16822
16823 \begin_layout Plain Layout
16824 name
16825 \end_layout
16826
16827 \end_inset
16828
16829  specifies the name of the caption as it appears in the menu.
16830  Have a look at the standard caption (
16831 \begin_inset Flex Code
16832 status collapsed
16833
16834 \begin_layout Plain Layout
16835 Caption:Standard
16836 \end_layout
16837
16838 \end_inset
16839
16840 ), the specific captions of the KOMA-Script classes (
16841 \begin_inset Flex Code
16842 status collapsed
16843
16844 \begin_layout Plain Layout
16845 Caption:Above
16846 \end_layout
16847
16848 \end_inset
16849
16850
16851 \begin_inset Flex Code
16852 status collapsed
16853
16854 \begin_layout Plain Layout
16855 Caption:Below
16856 \end_layout
16857
16858 \end_inset
16859
16860 ) or the module 
16861 \family sans
16862 Multilingual
16863 \begin_inset space ~
16864 \end_inset
16865
16866 Captions 
16867 \family default
16868 (
16869 \begin_inset Flex Code
16870 status collapsed
16871
16872 \begin_layout Plain Layout
16873 Caption:Bicaption
16874 \end_layout
16875
16876 \end_inset
16877
16878 ) for applications.
16879 \end_layout
16880
16881 \begin_layout Standard
16882 The 
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 InsetLayout
16888 \end_layout
16889
16890 \end_inset
16891
16892  definition can contain the following entries:
16893 \end_layout
16894
16895 \begin_layout Description
16896 \begin_inset Flex Code
16897 status collapsed
16898
16899 \begin_layout Plain Layout
16900 Argument
16901 \end_layout
16902
16903 \end_inset
16904
16905  [
16906 \begin_inset Flex Code
16907 status collapsed
16908
16909 \begin_layout Plain Layout
16910 int
16911 \end_layout
16912
16913 \end_inset
16914
16915 ] Defines argument number of a command\SpecialChar breakableslash
16916 environment associated with the current
16917  layout.
16918  The definition must end with 
16919 \begin_inset Flex Code
16920 status collapsed
16921
16922 \begin_layout Plain Layout
16923 EndArgument
16924 \end_layout
16925
16926 \end_inset
16927
16928 .
16929  See 
16930 \begin_inset CommandInset ref
16931 LatexCommand ref
16932 reference "sub:Paragraph-Styles"
16933
16934 \end_inset
16935
16936  for details.
16937 \end_layout
16938
16939 \begin_layout Description
16940 \begin_inset Flex Code
16941 status collapsed
16942
16943 \begin_layout Plain Layout
16944 BabelPreamble
16945 \end_layout
16946
16947 \end_inset
16948
16949  Preamble for changing language commands; see 
16950 \begin_inset CommandInset ref
16951 LatexCommand ref
16952 reference "sub:I18n"
16953
16954 \end_inset
16955
16956 .
16957 \end_layout
16958
16959 \begin_layout Description
16960 \begin_inset Flex Code
16961 status collapsed
16962
16963 \begin_layout Plain Layout
16964 BgColor
16965 \end_layout
16966
16967 \end_inset
16968
16969  [
16970 \begin_inset Flex Code
16971 status collapsed
16972
16973 \begin_layout Plain Layout
16974 <name>
16975 \end_layout
16976
16977 \end_inset
16978
16979 ] The color for the inset's background.
16980  See 
16981 \begin_inset CommandInset ref
16982 LatexCommand ref
16983 reference "chap:Names-of-colors"
16984
16985 \end_inset
16986
16987  for a list of the available color names.
16988 \end_layout
16989
16990 \begin_layout Description
16991 \begin_inset Flex Code
16992 status collapsed
16993
16994 \begin_layout Plain Layout
16995 ContentAsLabel
16996 \end_layout
16997
16998 \end_inset
16999
17000  [
17001 \begin_inset Flex Code
17002 status collapsed
17003
17004 \begin_layout Plain Layout
17005
17006 \emph on
17007 0
17008 \end_layout
17009
17010 \end_inset
17011
17012 ,
17013 \begin_inset space \thinspace{}
17014 \end_inset
17015
17016
17017 \begin_inset Flex Code
17018 status collapsed
17019
17020 \begin_layout Plain Layout
17021 1
17022 \end_layout
17023
17024 \end_inset
17025
17026 ] Whether to use the content of the inset as the label, when the inset is
17027  closed.
17028  Default is false.
17029 \end_layout
17030
17031 \begin_layout Description
17032 \begin_inset Flex Code
17033 status collapsed
17034
17035 \begin_layout Plain Layout
17036 CopyStyle
17037 \end_layout
17038
17039 \end_inset
17040
17041  [
17042 \begin_inset Flex Code
17043 status collapsed
17044
17045 \begin_layout Plain Layout
17046 <type>
17047 \end_layout
17048
17049 \end_inset
17050
17051 ] As with paragraph styles, see 
17052 \begin_inset CommandInset ref
17053 LatexCommand ref
17054 reference "sub:Paragraph-Styles"
17055
17056 \end_inset
17057
17058 .
17059  Note that you need to specify the complete type, e.
17060 \begin_inset space \thinspace{}
17061 \end_inset
17062
17063 g.
17064 \begin_inset space ~
17065 \end_inset
17066
17067
17068 \begin_inset Flex Code
17069 status collapsed
17070
17071 \begin_layout Plain Layout
17072 CopyStyle Flex:<name>
17073 \end_layout
17074
17075 \end_inset
17076
17077 .
17078 \end_layout
17079
17080 \begin_layout Description
17081 \begin_inset Flex Code
17082 status collapsed
17083
17084 \begin_layout Plain Layout
17085 CustomPars
17086 \end_layout
17087
17088 \end_inset
17089
17090  [
17091 \begin_inset Flex Code
17092 status collapsed
17093
17094 \begin_layout Plain Layout
17095
17096 \emph on
17097 0
17098 \end_layout
17099
17100 \end_inset
17101
17102 ,
17103 \begin_inset space \thinspace{}
17104 \end_inset
17105
17106
17107 \begin_inset Flex Code
17108 status collapsed
17109
17110 \begin_layout Plain Layout
17111 1
17112 \end_layout
17113
17114 \end_inset
17115
17116 ] Indicates whether the user may employ the Paragraph Settings dialog to
17117  customize the paragraph.
17118 \end_layout
17119
17120 \begin_layout Description
17121 \begin_inset Flex Code
17122 status collapsed
17123
17124 \begin_layout Plain Layout
17125 Decoration
17126 \end_layout
17127
17128 \end_inset
17129
17130  can be 
17131 \begin_inset Flex Code
17132 status collapsed
17133
17134 \begin_layout Plain Layout
17135 Classic
17136 \end_layout
17137
17138 \end_inset
17139
17140
17141 \begin_inset Flex Code
17142 status collapsed
17143
17144 \begin_layout Plain Layout
17145 Minimalistic
17146 \end_layout
17147
17148 \end_inset
17149
17150 , or 
17151 \begin_inset Flex Code
17152 status collapsed
17153
17154 \begin_layout Plain Layout
17155 Conglomerate
17156 \end_layout
17157
17158 \end_inset
17159
17160 , describing the rendering style used for the inset's frame and buttons.
17161  Footnotes generally use 
17162 \begin_inset Flex Code
17163 status collapsed
17164
17165 \begin_layout Plain Layout
17166 Classic
17167 \end_layout
17168
17169 \end_inset
17170
17171 , ERT insets generally 
17172 \begin_inset Flex Code
17173 status collapsed
17174
17175 \begin_layout Plain Layout
17176 Minimalistic
17177 \end_layout
17178
17179 \end_inset
17180
17181 , and character styles 
17182 \begin_inset Flex Code
17183 status collapsed
17184
17185 \begin_layout Plain Layout
17186 Conglomerate
17187 \end_layout
17188
17189 \end_inset
17190
17191 .
17192 \end_layout
17193
17194 \begin_layout Description
17195 \begin_inset Flex Code
17196 status collapsed
17197
17198 \begin_layout Plain Layout
17199 Display
17200 \end_layout
17201
17202 \end_inset
17203
17204  [
17205 \begin_inset Flex Code
17206 status collapsed
17207
17208 \begin_layout Plain Layout
17209 0
17210 \end_layout
17211
17212 \end_inset
17213
17214 ,
17215 \emph on
17216
17217 \begin_inset space \thinspace{}
17218 \end_inset
17219
17220
17221 \emph default
17222
17223 \begin_inset Flex Code
17224 status collapsed
17225
17226 \begin_layout Plain Layout
17227
17228 \emph on
17229 1
17230 \end_layout
17231
17232 \end_inset
17233
17234 ] Only useful if 
17235 \begin_inset Flex Code
17236 status collapsed
17237
17238 \begin_layout Plain Layout
17239 LatexType
17240 \end_layout
17241
17242 \end_inset
17243
17244  is 
17245 \begin_inset Flex Code
17246 status collapsed
17247
17248 \begin_layout Plain Layout
17249 Environment
17250 \end_layout
17251
17252 \end_inset
17253
17254 .
17255  Indicates whether the environment will stand on its own in the output or
17256  will appear inline with the surrounding text.
17257  If set to false, it is supposed that the \SpecialChar LaTeX
17258  environment ignores white space
17259  (including one newline character) after the 
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264
17265 \backslash
17266 begin{
17267 \emph on
17268 LatexName
17269 \emph default
17270 }
17271 \end_layout
17272
17273 \end_inset
17274
17275  and 
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280
17281 \backslash
17282 end{
17283 \emph on
17284 LatexName
17285 \emph default
17286 }
17287 \end_layout
17288
17289 \end_inset
17290
17291  tags.
17292  Default is true.
17293 \end_layout
17294
17295 \begin_layout Description
17296 \begin_inset Flex Code
17297 status collapsed
17298
17299 \begin_layout Plain Layout
17300 End
17301 \end_layout
17302
17303 \end_inset
17304
17305  Required at the end of the 
17306 \begin_inset Flex Code
17307 status collapsed
17308
17309 \begin_layout Plain Layout
17310 InsetLayout
17311 \end_layout
17312
17313 \end_inset
17314
17315  declarations.
17316 \end_layout
17317
17318 \begin_layout Description
17319 \begin_inset Flex Code
17320 status collapsed
17321
17322 \begin_layout Plain Layout
17323 Font
17324 \end_layout
17325
17326 \end_inset
17327
17328  The font used for both the text body 
17329 \emph on
17330 and
17331 \emph default
17332  the label.
17333  See 
17334 \begin_inset CommandInset ref
17335 LatexCommand ref
17336 reference "sub:Font-description"
17337
17338 \end_inset
17339
17340 .
17341  Note that defining this font automatically defines the 
17342 \begin_inset Flex Code
17343 status collapsed
17344
17345 \begin_layout Plain Layout
17346 LabelFont
17347 \end_layout
17348
17349 \end_inset
17350
17351  to the same value, so define this first and define 
17352 \begin_inset Flex Code
17353 status collapsed
17354
17355 \begin_layout Plain Layout
17356 LabelFont
17357 \end_layout
17358
17359 \end_inset
17360
17361  later if you want them to be different.
17362 \change_inserted -195340706 1421002157
17363
17364 \end_layout
17365
17366 \begin_layout Description
17367
17368 \change_inserted -195340706 1421002157
17369 \begin_inset Flex Code
17370 status collapsed
17371
17372 \begin_layout Plain Layout
17373
17374 \change_inserted -195340706 1421002157
17375 FixedWidthPreambleEncoding
17376 \end_layout
17377
17378 \end_inset
17379
17380  [
17381 \begin_inset Flex Code
17382 status collapsed
17383
17384 \begin_layout Plain Layout
17385
17386 \change_inserted -195340706 1421002157
17387
17388 \emph on
17389 0
17390 \end_layout
17391
17392 \end_inset
17393
17394 ,
17395 \begin_inset space \thinspace{}
17396 \end_inset
17397
17398
17399 \begin_inset Flex Code
17400 status collapsed
17401
17402 \begin_layout Plain Layout
17403
17404 \change_inserted -195340706 1421002157
17405 1
17406 \end_layout
17407
17408 \end_inset
17409
17410 ] Force a fixed width encoding for the translated contents of 
17411 \begin_inset Flex Code
17412 status collapsed
17413
17414 \begin_layout Plain Layout
17415
17416 \change_inserted -195340706 1421002157
17417 BabelPreamble
17418 \end_layout
17419
17420 \end_inset
17421
17422  and 
17423 \begin_inset Flex Code
17424 status collapsed
17425
17426 \begin_layout Plain Layout
17427
17428 \change_inserted -195340706 1421002157
17429 LangPreamble
17430 \end_layout
17431
17432 \end_inset
17433
17434  code generated by this layout.
17435  This is needed for special packages like the listings package that do not
17436  work with variable width encodings such as utf8.
17437  Default is false.
17438  This setting is ignored if fully unicode aware \SpecialChar LaTeX
17439  backends such as Xe\SpecialChar LaTeX
17440  are
17441  used.
17442 \change_unchanged
17443
17444 \end_layout
17445
17446 \begin_layout Description
17447 \begin_inset Flex Code
17448 status collapsed
17449
17450 \begin_layout Plain Layout
17451 ForceLocalFontSwitch
17452 \end_layout
17453
17454 \end_inset
17455
17456  [
17457 \begin_inset Flex Code
17458 status collapsed
17459
17460 \begin_layout Plain Layout
17461
17462 \emph on
17463 0
17464 \end_layout
17465
17466 \end_inset
17467
17468 ,
17469 \begin_inset space \thinspace{}
17470 \end_inset
17471
17472
17473 \begin_inset Flex Code
17474 status collapsed
17475
17476 \begin_layout Plain Layout
17477 1
17478 \end_layout
17479
17480 \end_inset
17481
17482 ] When using babel, always use a local font switch (
17483 \begin_inset Flex Code
17484 status collapsed
17485
17486 \begin_layout Plain Layout
17487
17488 \backslash
17489 foreignlanguage
17490 \end_layout
17491
17492 \end_inset
17493
17494 ), never a global one (such as 
17495 \begin_inset Flex Code
17496 status collapsed
17497
17498 \begin_layout Plain Layout
17499
17500 \backslash
17501 selectlanguage
17502 \end_layout
17503
17504 \end_inset
17505
17506 ).
17507 \end_layout
17508
17509 \begin_layout Description
17510 \begin_inset Flex Code
17511 status collapsed
17512
17513 \begin_layout Plain Layout
17514 ForceLTR
17515 \end_layout
17516
17517 \end_inset
17518
17519  [
17520 \begin_inset Flex Code
17521 status collapsed
17522
17523 \begin_layout Plain Layout
17524
17525 \emph on
17526 0
17527 \end_layout
17528
17529 \end_inset
17530
17531 ,
17532 \begin_inset space \thinspace{}
17533 \end_inset
17534
17535
17536 \begin_inset Flex Code
17537 status collapsed
17538
17539 \begin_layout Plain Layout
17540 1
17541 \end_layout
17542
17543 \end_inset
17544
17545 ] Force the 
17546 \begin_inset Quotes eld
17547 \end_inset
17548
17549 latex
17550 \begin_inset Quotes erd
17551 \end_inset
17552
17553  language, leading to Left-to-Right (Latin) output, e.
17554 \begin_inset space \thinspace{}
17555 \end_inset
17556
17557 g.
17558 \begin_inset space \space{}
17559 \end_inset
17560
17561 in \SpecialChar TeX
17562  code or URL.
17563  A kludge.
17564 \change_inserted -712698321 1417441977
17565
17566 \end_layout
17567
17568 \begin_layout Description
17569
17570 \change_inserted -712698321 1417442090
17571 \begin_inset Flex Code
17572 status collapsed
17573
17574 \begin_layout Plain Layout
17575
17576 \change_inserted -712698321 1417441983
17577 ForceOwnlines
17578 \end_layout
17579
17580 \end_inset
17581
17582  [
17583 \begin_inset Flex Code
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587
17588 \change_inserted -712698321 1417441978
17589
17590 \emph on
17591 0
17592 \end_layout
17593
17594 \end_inset
17595
17596 ,
17597 \begin_inset space \thinspace{}
17598 \end_inset
17599
17600
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605
17606 \change_inserted -712698321 1417441978
17607 1
17608 \end_layout
17609
17610 \end_inset
17611
17612 ] Force a a line break in the \SpecialChar LaTeX
17613  output before the inset starts and after
17614  the inset ends.
17615  This assures the inset itself is output on its own lines, for parsing purposes.
17616
17617 \change_inserted 274215730 1419105878
17618  Default is false.
17619 \change_unchanged
17620
17621 \end_layout
17622
17623 \begin_layout Description
17624 \begin_inset Flex Code
17625 status collapsed
17626
17627 \begin_layout Plain Layout
17628 ForcePlain
17629 \end_layout
17630
17631 \end_inset
17632
17633  [
17634 \begin_inset Flex Code
17635 status collapsed
17636
17637 \begin_layout Plain Layout
17638
17639 \emph on
17640 0
17641 \end_layout
17642
17643 \end_inset
17644
17645 ,
17646 \begin_inset space \thinspace{}
17647 \end_inset
17648
17649
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 1
17655 \end_layout
17656
17657 \end_inset
17658
17659 ] Indicates whether the 
17660 \begin_inset Flex Code
17661 status collapsed
17662
17663 \begin_layout Plain Layout
17664 PlainLayout
17665 \end_layout
17666
17667 \end_inset
17668
17669  should be used or, instead, the user can change the paragraph style used
17670  in the inset.
17671  Default is false.
17672 \end_layout
17673
17674 \begin_layout Description
17675 \begin_inset Flex Code
17676 status collapsed
17677
17678 \begin_layout Plain Layout
17679 FreeSpacing
17680 \end_layout
17681
17682 \end_inset
17683
17684  [
17685 \begin_inset Flex Code
17686 status collapsed
17687
17688 \begin_layout Plain Layout
17689
17690 \emph on
17691 0
17692 \end_layout
17693
17694 \end_inset
17695
17696 ,
17697 \begin_inset space \thinspace{}
17698 \end_inset
17699
17700
17701 \begin_inset Flex Code
17702 status collapsed
17703
17704 \begin_layout Plain Layout
17705 1
17706 \end_layout
17707
17708 \end_inset
17709
17710 ] As with paragraph styles, see 
17711 \begin_inset CommandInset ref
17712 LatexCommand ref
17713 reference "sub:Paragraph-Styles"
17714
17715 \end_inset
17716
17717 .
17718 \end_layout
17719
17720 \begin_layout Description
17721 \begin_inset Flex Code
17722 status collapsed
17723
17724 \begin_layout Plain Layout
17725 HTML*
17726 \end_layout
17727
17728 \end_inset
17729
17730  These tags control the XHTML output.
17731  See 
17732 \begin_inset CommandInset ref
17733 LatexCommand ref
17734 reference "sec:Tags-for-XHTML"
17735
17736 \end_inset
17737
17738 .
17739 \end_layout
17740
17741 \begin_layout Description
17742 \begin_inset Flex Code
17743 status collapsed
17744
17745 \begin_layout Plain Layout
17746 InToc
17747 \end_layout
17748
17749 \end_inset
17750
17751  [
17752 \begin_inset Flex Code
17753 status collapsed
17754
17755 \begin_layout Plain Layout
17756
17757 \emph on
17758 0
17759 \end_layout
17760
17761 \end_inset
17762
17763 ,
17764 \begin_inset space \thinspace{}
17765 \end_inset
17766
17767
17768 \begin_inset Flex Code
17769 status collapsed
17770
17771 \begin_layout Plain Layout
17772 1
17773 \end_layout
17774
17775 \end_inset
17776
17777 ] Whether to include the contents of this inset in the strings generated
17778  for the `Outline' pane.
17779  One would not, for example, want the content of a footnote in a section
17780  header to be included in the TOC displayed in the outline, but one would
17781  normally want the content of a character style displayed.
17782  Default is false: not to include.
17783 \end_layout
17784
17785 \begin_layout Description
17786 \begin_inset Flex Code
17787 status collapsed
17788
17789 \begin_layout Plain Layout
17790 KeepEmpty
17791 \end_layout
17792
17793 \end_inset
17794
17795  [
17796 \emph on
17797
17798 \begin_inset Flex Code
17799 status collapsed
17800
17801 \begin_layout Plain Layout
17802 0
17803 \end_layout
17804
17805 \end_inset
17806
17807
17808 \emph default
17809 ,
17810 \begin_inset space \thinspace{}
17811 \end_inset
17812
17813
17814 \begin_inset Flex Code
17815 status collapsed
17816
17817 \begin_layout Plain Layout
17818 1
17819 \end_layout
17820
17821 \end_inset
17822
17823 ] As with paragraph styles, see 
17824 \begin_inset CommandInset ref
17825 LatexCommand ref
17826 reference "sub:Paragraph-Styles"
17827
17828 \end_inset
17829
17830 .
17831 \end_layout
17832
17833 \begin_layout Description
17834 \begin_inset Flex Code
17835 status collapsed
17836
17837 \begin_layout Plain Layout
17838 LabelFont
17839 \end_layout
17840
17841 \end_inset
17842
17843  The font used for the label.
17844  See 
17845 \begin_inset CommandInset ref
17846 LatexCommand ref
17847 reference "sub:Font-description"
17848
17849 \end_inset
17850
17851 .
17852  Note that this definition can never appear before 
17853 \begin_inset Flex Code
17854 status collapsed
17855
17856 \begin_layout Plain Layout
17857 Font
17858 \end_layout
17859
17860 \end_inset
17861
17862 , lest it be ineffective.
17863 \end_layout
17864
17865 \begin_layout Description
17866 \begin_inset Flex Code
17867 status collapsed
17868
17869 \begin_layout Plain Layout
17870 LabelString
17871 \end_layout
17872
17873 \end_inset
17874
17875  [
17876 \begin_inset Flex Code
17877 status collapsed
17878
17879 \begin_layout Plain Layout
17880 string
17881 \end_layout
17882
17883 \end_inset
17884
17885 =
17886 \begin_inset Quotes erd
17887 \end_inset
17888
17889
17890 \begin_inset Quotes erd
17891 \end_inset
17892
17893 ] What will be displayed on the button or elsewhere as the inset label.
17894  Some inset types (
17895 \begin_inset Flex Code
17896 status collapsed
17897
17898 \begin_layout Plain Layout
17899 \SpecialChar TeX
17900  code
17901 \end_layout
17902
17903 \end_inset
17904
17905  and 
17906 \begin_inset Flex Code
17907 status collapsed
17908
17909 \begin_layout Plain Layout
17910 Branch
17911 \end_layout
17912
17913 \end_inset
17914
17915 ) modify this label on the fly.
17916 \end_layout
17917
17918 \begin_layout Description
17919 \begin_inset Flex Code
17920 status collapsed
17921
17922 \begin_layout Plain Layout
17923 LangPreamble
17924 \end_layout
17925
17926 \end_inset
17927
17928  Language dependent preamble; see 
17929 \begin_inset CommandInset ref
17930 LatexCommand ref
17931 reference "sub:I18n"
17932
17933 \end_inset
17934
17935 .
17936 \end_layout
17937
17938 \begin_layout Description
17939 \begin_inset Flex Code
17940 status collapsed
17941
17942 \begin_layout Plain Layout
17943 LatexName
17944 \end_layout
17945
17946 \end_inset
17947
17948  [
17949 \begin_inset Flex Code
17950 status collapsed
17951
17952 \begin_layout Plain Layout
17953 <name>
17954 \end_layout
17955
17956 \end_inset
17957
17958 ] The name of the corresponding \SpecialChar LaTeX
17959  stuff.
17960  Either the environment or command name.
17961 \end_layout
17962
17963 \begin_layout Description
17964 \begin_inset Flex Code
17965 status collapsed
17966
17967 \begin_layout Plain Layout
17968 LatexParam
17969 \end_layout
17970
17971 \end_inset
17972
17973  [
17974 \begin_inset Flex Code
17975 status collapsed
17976
17977 \begin_layout Plain Layout
17978 <parameter>
17979 \end_layout
17980
17981 \end_inset
17982
17983 ] The optional parameter for the corresponding 
17984 \begin_inset Flex Code
17985 status collapsed
17986
17987 \begin_layout Plain Layout
17988 LatexName
17989 \end_layout
17990
17991 \end_inset
17992
17993  stuff, including possible bracket pairs like 
17994 \begin_inset Flex Code
17995 status collapsed
17996
17997 \begin_layout Plain Layout
17998 []
17999 \end_layout
18000
18001 \end_inset
18002
18003 .
18004  This parameter cannot be changed from within \SpecialChar LyX
18005  (use 
18006 \begin_inset Flex Code
18007 status collapsed
18008
18009 \begin_layout Plain Layout
18010 Argument
18011 \end_layout
18012
18013 \end_inset
18014
18015  for customizable parameters).
18016  It will be output as is after all \SpecialChar LaTeX
18017  
18018 \begin_inset Flex Code
18019 status collapsed
18020
18021 \begin_layout Plain Layout
18022 Argument
18023 \end_layout
18024
18025 \end_inset
18026
18027 s.
18028 \end_layout
18029
18030 \begin_layout Description
18031 \begin_inset Flex Code
18032 status collapsed
18033
18034 \begin_layout Plain Layout
18035 LatexType
18036 \end_layout
18037
18038 \end_inset
18039
18040  [
18041 \begin_inset Flex Code
18042 status collapsed
18043
18044 \begin_layout Plain Layout
18045 Command, Environment, None
18046 \end_layout
18047
18048 \end_inset
18049
18050 ] How the style should be translated into \SpecialChar LaTeX
18051 .
18052 \begin_inset Foot
18053 status collapsed
18054
18055 \begin_layout Plain Layout
18056 \begin_inset Flex Code
18057 status collapsed
18058
18059 \begin_layout Plain Layout
18060 LatexType
18061 \end_layout
18062
18063 \end_inset
18064
18065  is perhaps a bit misleading, since these rules apply to SGML classes too.
18066  Visit the SGML class files for specific examples.
18067 \end_layout
18068
18069 \end_inset
18070
18071
18072 \begin_inset Separator parbreak
18073 \end_inset
18074
18075
18076 \end_layout
18077
18078 \begin_deeper
18079 \begin_layout Description
18080 \begin_inset Flex Code
18081 status collapsed
18082
18083 \begin_layout Plain Layout
18084 None
18085 \end_layout
18086
18087 \end_inset
18088
18089  means nothing special
18090 \end_layout
18091
18092 \begin_layout Description
18093 \begin_inset Flex Code
18094 status collapsed
18095
18096 \begin_layout Plain Layout
18097 Command
18098 \end_layout
18099
18100 \end_inset
18101
18102  means 
18103 \begin_inset Flex Code
18104 status collapsed
18105
18106 \begin_layout Plain Layout
18107
18108 \backslash
18109
18110 \emph on
18111 LatexName
18112 \emph default
18113 {\SpecialChar ldots
18114 }
18115 \end_layout
18116
18117 \end_inset
18118
18119
18120 \end_layout
18121
18122 \begin_layout Description
18123 \begin_inset Flex Code
18124 status collapsed
18125
18126 \begin_layout Plain Layout
18127 Environment
18128 \end_layout
18129
18130 \end_inset
18131
18132  means 
18133 \begin_inset Flex Code
18134 status collapsed
18135
18136 \begin_layout Plain Layout
18137
18138 \backslash
18139 begin{
18140 \emph on
18141 LatexName
18142 \emph default
18143 }\SpecialChar ldots
18144
18145 \backslash
18146 end{
18147 \emph on
18148 LatexName
18149 \emph default
18150 }
18151 \end_layout
18152
18153 \end_inset
18154
18155
18156 \end_layout
18157
18158 \begin_layout Standard
18159 Putting the last few things together, the \SpecialChar LaTeX
18160  output will be either: 
18161 \end_layout
18162
18163 \begin_layout LyX-Code
18164
18165 \backslash
18166 LatexName[LatexParam]{\SpecialChar ldots
18167 }
18168 \end_layout
18169
18170 \begin_layout Standard
18171 or: 
18172 \end_layout
18173
18174 \begin_layout LyX-Code
18175
18176 \backslash
18177 begin{LatexName}[LatexParam] \SpecialChar ldots
18178  
18179 \backslash
18180 end{LatexName}
18181 \end_layout
18182
18183 \begin_layout Standard
18184 depending upon the \SpecialChar LaTeX
18185  type.
18186 \end_layout
18187
18188 \end_deeper
18189 \begin_layout Description
18190 \begin_inset Flex Code
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 LeftDelim
18195 \end_layout
18196
18197 \end_inset
18198
18199  [
18200 \begin_inset Flex Code
18201 status collapsed
18202
18203 \begin_layout Plain Layout
18204 string
18205 \end_layout
18206
18207 \end_inset
18208
18209 ] A string that is put at the beginning of the layout content.
18210  A line break in the output can be indicated by 
18211 \begin_inset Flex Code
18212 status collapsed
18213
18214 \begin_layout Plain Layout
18215 <br/>
18216 \end_layout
18217
18218 \end_inset
18219
18220 .
18221 \end_layout
18222
18223 \begin_layout Description
18224 \begin_inset Flex Code
18225 status collapsed
18226
18227 \begin_layout Plain Layout
18228 LyxType
18229 \end_layout
18230
18231 \end_inset
18232
18233  Can be 
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 charstyle
18239 \end_layout
18240
18241 \end_inset
18242
18243
18244 \begin_inset Flex Code
18245 status collapsed
18246
18247 \begin_layout Plain Layout
18248 custom
18249 \end_layout
18250
18251 \end_inset
18252
18253
18254 \begin_inset Flex Code
18255 status collapsed
18256
18257 \begin_layout Plain Layout
18258 element
18259 \end_layout
18260
18261 \end_inset
18262
18263  or 
18264 \begin_inset Flex Code
18265 status collapsed
18266
18267 \begin_layout Plain Layout
18268 end
18269 \end_layout
18270
18271 \end_inset
18272
18273  (indicating a dummy definition ending definitions of charstyles, etc).
18274  This entry is required in and is only meaningful for Flex insets.
18275  Among other things, it determines on which menu this inset will appear.
18276  Setting 
18277 \begin_inset Flex Code
18278 status collapsed
18279
18280 \begin_layout Plain Layout
18281 \SpecialChar LyX
18282 Type
18283 \end_layout
18284
18285 \end_inset
18286
18287  to 
18288 \begin_inset Flex Code
18289 status collapsed
18290
18291 \begin_layout Plain Layout
18292 charstyle
18293 \end_layout
18294
18295 \end_inset
18296
18297  will automatically set 
18298 \begin_inset Flex Code
18299 status collapsed
18300
18301 \begin_layout Plain Layout
18302 MultiPar
18303 \end_layout
18304
18305 \end_inset
18306
18307  to false.
18308  
18309 \begin_inset Flex Code
18310 status collapsed
18311
18312 \begin_layout Plain Layout
18313 MultiPar
18314 \end_layout
18315
18316 \end_inset
18317
18318  can be set to true for 
18319 \begin_inset Flex Code
18320 status collapsed
18321
18322 \begin_layout Plain Layout
18323 charstyle
18324 \end_layout
18325
18326 \end_inset
18327
18328  insets by setting it 
18329 \emph on
18330 after
18331 \emph default
18332  you set the 
18333 \begin_inset Flex Code
18334 status collapsed
18335
18336 \begin_layout Plain Layout
18337 \SpecialChar LyX
18338 Type
18339 \end_layout
18340
18341 \end_inset
18342
18343 .
18344 \end_layout
18345
18346 \begin_layout Description
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351 MultiPar
18352 \end_layout
18353
18354 \end_inset
18355
18356  [
18357 \begin_inset Flex Code
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361
18362 \emph on
18363 0
18364 \end_layout
18365
18366 \end_inset
18367
18368 ,
18369 \begin_inset space \thinspace{}
18370 \end_inset
18371
18372
18373 \begin_inset Flex Code
18374 status collapsed
18375
18376 \begin_layout Plain Layout
18377 1
18378 \end_layout
18379
18380 \end_inset
18381
18382 ] Whether multiple paragraphs are permitted in this inset.
18383  This will also set 
18384 \begin_inset Flex Code
18385 status collapsed
18386
18387 \begin_layout Plain Layout
18388 CustomPars
18389 \end_layout
18390
18391 \end_inset
18392
18393  to the same value and 
18394 \begin_inset Flex Code
18395 status collapsed
18396
18397 \begin_layout Plain Layout
18398 ForcePlain
18399 \end_layout
18400
18401 \end_inset
18402
18403  to the opposite value.
18404  These can be reset to other values, if they are used 
18405 \emph on
18406 after
18407 \emph default
18408  
18409 \begin_inset Flex Code
18410 status collapsed
18411
18412 \begin_layout Plain Layout
18413 MultiPar
18414 \end_layout
18415
18416 \end_inset
18417
18418 .
18419  Default is true.
18420 \end_layout
18421
18422 \begin_layout Description
18423 \begin_inset Flex Code
18424 status collapsed
18425
18426 \begin_layout Plain Layout
18427 NeedProtect
18428 \end_layout
18429
18430 \end_inset
18431
18432  [
18433 \begin_inset Flex Code
18434 status collapsed
18435
18436 \begin_layout Plain Layout
18437
18438 \emph on
18439 0
18440 \end_layout
18441
18442 \end_inset
18443
18444 ,
18445 \begin_inset space \thinspace{}
18446 \end_inset
18447
18448
18449 \begin_inset Flex Code
18450 status collapsed
18451
18452 \begin_layout Plain Layout
18453 1
18454 \end_layout
18455
18456 \end_inset
18457
18458 ] Whether fragile commands in this inset should be 
18459 \begin_inset Flex Code
18460 status collapsed
18461
18462 \begin_layout Plain Layout
18463
18464 \backslash
18465 protect
18466 \end_layout
18467
18468 \end_inset
18469
18470 'ed.
18471  (Note: This is 
18472 \emph on
18473 not
18474 \emph default
18475  whether the command should itself be protected.) Default is false.
18476 \end_layout
18477
18478 \begin_layout Description
18479 \begin_inset Flex Code
18480 status collapsed
18481
18482 \begin_layout Plain Layout
18483 NoInsetLayout
18484 \end_layout
18485
18486 \end_inset
18487
18488  [
18489 \begin_inset Flex Code
18490 status collapsed
18491
18492 \begin_layout Plain Layout
18493 <layout>
18494 \end_layout
18495
18496 \end_inset
18497
18498 ] Deletes an existing 
18499 \begin_inset Flex Code
18500 status collapsed
18501
18502 \begin_layout Plain Layout
18503 InsetLayout
18504 \end_layout
18505
18506 \end_inset
18507
18508 .
18509 \change_inserted -712698321 1417953494
18510
18511 \end_layout
18512
18513 \begin_layout Description
18514
18515 \change_inserted -712698321 1417953559
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520
18521 \change_inserted -712698321 1417953494
18522 ObsoletedBy
18523 \end_layout
18524
18525 \end_inset
18526
18527  [
18528 \begin_inset Flex Code
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532
18533 \change_inserted -712698321 1417953574
18534 <layout>
18535 \end_layout
18536
18537 \end_inset
18538
18539 ] Name of an 
18540 \begin_inset Flex Code
18541 status collapsed
18542
18543 \begin_layout Plain Layout
18544
18545 \change_inserted -712698321 1417953533
18546 InsetLayout
18547 \end_layout
18548
18549 \end_inset
18550
18551  that has replaced this 
18552 \begin_inset Flex Code
18553 status collapsed
18554
18555 \begin_layout Plain Layout
18556
18557 \change_inserted -712698321 1417953551
18558 InsetLayout
18559 \end_layout
18560
18561 \end_inset
18562
18563 .
18564  This is used to rename an 
18565 \begin_inset Flex Code
18566 status collapsed
18567
18568 \begin_layout Plain Layout
18569
18570 \change_inserted -712698321 1417953559
18571 InsetLayout
18572 \end_layout
18573
18574 \end_inset
18575
18576 , while keeping backward compatibility.
18577 \change_unchanged
18578
18579 \end_layout
18580
18581 \begin_layout Description
18582 \begin_inset Flex Code
18583 status collapsed
18584
18585 \begin_layout Plain Layout
18586 ParbreakIsNewline
18587 \end_layout
18588
18589 \end_inset
18590
18591  [
18592 \begin_inset Flex Code
18593 status collapsed
18594
18595 \begin_layout Plain Layout
18596
18597 \emph on
18598 0
18599 \end_layout
18600
18601 \end_inset
18602
18603 ,
18604 \begin_inset space \thinspace{}
18605 \end_inset
18606
18607
18608 \begin_inset Flex Code
18609 status collapsed
18610
18611 \begin_layout Plain Layout
18612 1
18613 \end_layout
18614
18615 \end_inset
18616
18617 ] As with paragraph styles, see 
18618 \begin_inset CommandInset ref
18619 LatexCommand ref
18620 reference "sub:Paragraph-Styles"
18621
18622 \end_inset
18623
18624 .
18625  Default is false.
18626 \end_layout
18627
18628 \begin_layout Description
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633 PassThru
18634 \end_layout
18635
18636 \end_inset
18637
18638  [
18639 \begin_inset Flex Code
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643
18644 \emph on
18645 0
18646 \end_layout
18647
18648 \end_inset
18649
18650 ,
18651 \begin_inset space \thinspace{}
18652 \end_inset
18653
18654
18655 \begin_inset Flex Code
18656 status collapsed
18657
18658 \begin_layout Plain Layout
18659 1
18660 \end_layout
18661
18662 \end_inset
18663
18664 ] As with paragraph styles, see 
18665 \begin_inset CommandInset ref
18666 LatexCommand ref
18667 reference "sub:Paragraph-Styles"
18668
18669 \end_inset
18670
18671 .
18672  Default is false.
18673 \end_layout
18674
18675 \begin_layout Description
18676 \begin_inset Flex Code
18677 status collapsed
18678
18679 \begin_layout Plain Layout
18680 Preamble
18681 \end_layout
18682
18683 \end_inset
18684
18685  As with paragraph styles, see 
18686 \begin_inset CommandInset ref
18687 LatexCommand ref
18688 reference "sub:Paragraph-Styles"
18689
18690 \end_inset
18691
18692 .
18693 \end_layout
18694
18695 \begin_layout Description
18696 \begin_inset Flex Code
18697 status collapsed
18698
18699 \begin_layout Plain Layout
18700 RefPrefix
18701 \end_layout
18702
18703 \end_inset
18704
18705  [
18706 \begin_inset Flex Code
18707 status collapsed
18708
18709 \begin_layout Plain Layout
18710 string
18711 \end_layout
18712
18713 \end_inset
18714
18715 ] The prefix to use when creating labels referring to insets of this type.
18716  This allows the use of formatted references.
18717 \end_layout
18718
18719 \begin_layout Description
18720 \begin_inset Flex Code
18721 status collapsed
18722
18723 \begin_layout Plain Layout
18724 Requires
18725 \end_layout
18726
18727 \end_inset
18728
18729  [
18730 \begin_inset Flex Code
18731 status collapsed
18732
18733 \begin_layout Plain Layout
18734 string
18735 \end_layout
18736
18737 \end_inset
18738
18739 ] As with paragraph styles, see 
18740 \begin_inset CommandInset ref
18741 LatexCommand ref
18742 reference "sub:Paragraph-Styles"
18743
18744 \end_inset
18745
18746 .
18747 \end_layout
18748
18749 \begin_layout Description
18750 \begin_inset Flex Code
18751 status collapsed
18752
18753 \begin_layout Plain Layout
18754 ResetArgs
18755 \end_layout
18756
18757 \end_inset
18758
18759  [
18760 \begin_inset Flex Code
18761 status collapsed
18762
18763 \begin_layout Plain Layout
18764
18765 \emph on
18766 0
18767 \end_layout
18768
18769 \end_inset
18770
18771 ,
18772 \begin_inset space \thinspace{}
18773 \end_inset
18774
18775
18776 \begin_inset Flex Code
18777 status collapsed
18778
18779 \begin_layout Plain Layout
18780 1
18781 \end_layout
18782
18783 \end_inset
18784
18785 ] Resets the \SpecialChar LaTeX
18786  arguments of this layout (as defined via the 
18787 \begin_inset Flex Code
18788 status collapsed
18789
18790 \begin_layout Plain Layout
18791 Argument
18792 \end_layout
18793
18794 \end_inset
18795
18796  tag).
18797  This is useful if you have copied a style via 
18798 \begin_inset Flex Code
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802 CopyStyle
18803 \end_layout
18804
18805 \end_inset
18806
18807 , but you do not want to inherit its (required and optional) arguments.
18808 \end_layout
18809
18810 \begin_layout Description
18811 \begin_inset Flex Code
18812 status collapsed
18813
18814 \begin_layout Plain Layout
18815 ResetsFont
18816 \end_layout
18817
18818 \end_inset
18819
18820  [
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 0
18826 \end_layout
18827
18828 \end_inset
18829
18830 ,
18831 \begin_inset space \thinspace{}
18832 \end_inset
18833
18834
18835 \begin_inset Flex Code
18836 status collapsed
18837
18838 \begin_layout Plain Layout
18839
18840 \emph on
18841 1
18842 \end_layout
18843
18844 \end_inset
18845
18846 ] Whether this inset should use the font of its surrounding environment
18847  or uses its own.
18848  Default is false: use the font of the surrounding environment.
18849 \end_layout
18850
18851 \begin_layout Description
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856 RightDelim
18857 \end_layout
18858
18859 \end_inset
18860
18861  [
18862 \begin_inset Flex Code
18863 status collapsed
18864
18865 \begin_layout Plain Layout
18866 string
18867 \end_layout
18868
18869 \end_inset
18870
18871 ] A string that is put at the end of the layout content.
18872  A line break in the output can be indicated by 
18873 \begin_inset Flex Code
18874 status collapsed
18875
18876 \begin_layout Plain Layout
18877 <br/>
18878 \end_layout
18879
18880 \end_inset
18881
18882 .
18883 \end_layout
18884
18885 \begin_layout Description
18886 \begin_inset Flex Code
18887 status collapsed
18888
18889 \begin_layout Plain Layout
18890 Spellcheck
18891 \end_layout
18892
18893 \end_inset
18894
18895  [
18896 \begin_inset Flex Code
18897 status collapsed
18898
18899 \begin_layout Plain Layout
18900 0
18901 \end_layout
18902
18903 \end_inset
18904
18905 ,
18906 \begin_inset space \thinspace{}
18907 \end_inset
18908
18909
18910 \begin_inset Flex Code
18911 status collapsed
18912
18913 \begin_layout Plain Layout
18914
18915 \emph on
18916 1
18917 \end_layout
18918
18919 \end_inset
18920
18921 ] Allow spell-checking the contents of this inset.
18922  Default is true.
18923 \end_layout
18924
18925 \begin_layout Subsection
18926 Counters
18927 \begin_inset CommandInset label
18928 LatexCommand label
18929 name "sub:Counters"
18930
18931 \end_inset
18932
18933
18934 \end_layout
18935
18936 \begin_layout Standard
18937 It is necessary to define the counters (
18938 \begin_inset Flex MenuItem
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 chapter
18943 \end_layout
18944
18945 \end_inset
18946
18947
18948 \begin_inset Flex MenuItem
18949 status collapsed
18950
18951 \begin_layout Plain Layout
18952 figure
18953 \end_layout
18954
18955 \end_inset
18956
18957 , \SpecialChar ldots
18958 ) in the text class itself.
18959  The standard counters are defined in the file 
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 stdcounters.inc
18965 \end_layout
18966
18967 \end_inset
18968
18969 , so you may have to do no more than add
18970 \end_layout
18971
18972 \begin_layout LyX-Code
18973 Input stdcounters.inc
18974 \end_layout
18975
18976 \begin_layout Standard
18977 to your layout file to get them to work.
18978  But if you want to define custom counters, then you can do so.
18979  The counter declaration must begin with:
18980 \end_layout
18981
18982 \begin_layout LyX-Code
18983 Counter CounterName
18984 \end_layout
18985
18986 \begin_layout Standard
18987 where of course `
18988 \begin_inset Flex Code
18989 status collapsed
18990
18991 \begin_layout Plain Layout
18992 CounterName
18993 \end_layout
18994
18995 \end_inset
18996
18997 ' is replaced by the name of the counter.
18998  And it must end with 
18999 \begin_inset Quotes eld
19000 \end_inset
19001
19002
19003 \begin_inset Flex Code
19004 status collapsed
19005
19006 \begin_layout Plain Layout
19007 End
19008 \end_layout
19009
19010 \end_inset
19011
19012
19013 \begin_inset Quotes erd
19014 \end_inset
19015
19016 .
19017  The following parameters can also be used:
19018 \end_layout
19019
19020 \begin_layout Description
19021 \begin_inset Flex Code
19022 status collapsed
19023
19024 \begin_layout Plain Layout
19025 InitialValue
19026 \end_layout
19027
19028 \end_inset
19029
19030  [
19031 \begin_inset Flex Code
19032 status collapsed
19033
19034 \begin_layout Plain Layout
19035 int=1
19036 \end_layout
19037
19038 \end_inset
19039
19040 ] Sets the initial value for the counter, to which it will be reset whenever
19041  that happens.
19042  Normally, one will want the default, 1.
19043 \end_layout
19044
19045 \begin_layout Description
19046 \begin_inset Flex Code
19047 status collapsed
19048
19049 \begin_layout Plain Layout
19050 LabelString
19051 \end_layout
19052
19053 \end_inset
19054
19055  [
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 string
19061 \end_layout
19062
19063 \end_inset
19064
19065 =
19066 \begin_inset Quotes erd
19067 \end_inset
19068
19069
19070 \begin_inset Quotes erd
19071 \end_inset
19072
19073 ] When defined, this string defines how the counter is displayed.
19074  Setting this value sets 
19075 \begin_inset Flex Code
19076 status collapsed
19077
19078 \begin_layout Plain Layout
19079 LabelStringAppendix
19080 \end_layout
19081
19082 \end_inset
19083
19084  to the same value.
19085  The following special constructs can be used in the string:
19086 \begin_inset Separator parbreak
19087 \end_inset
19088
19089
19090 \end_layout
19091
19092 \begin_deeper
19093 \begin_layout Itemize
19094 \begin_inset Flex Code
19095 status collapsed
19096
19097 \begin_layout Plain Layout
19098
19099 \backslash
19100 thecounter
19101 \end_layout
19102
19103 \end_inset
19104
19105  will be replaced by the expansion of the 
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 LabelString
19111 \end_layout
19112
19113 \end_inset
19114
19115  (or 
19116 \begin_inset Flex Code
19117 status collapsed
19118
19119 \begin_layout Plain Layout
19120 LabelStringAppendix
19121 \end_layout
19122
19123 \end_inset
19124
19125 ) of the counter 
19126 \begin_inset Flex Code
19127 status collapsed
19128
19129 \begin_layout Plain Layout
19130 counter
19131 \end_layout
19132
19133 \end_inset
19134
19135 .
19136  
19137 \end_layout
19138
19139 \begin_layout Itemize
19140 counter values can be expressed using \SpecialChar LaTeX
19141 -like macros
19142 \begin_inset Newline newline
19143 \end_inset
19144
19145
19146 \begin_inset Flex Code
19147 status collapsed
19148
19149 \begin_layout Plain Layout
19150
19151 \backslash
19152
19153 \emph on
19154 numbertype
19155 \emph default
19156 {
19157 \emph on
19158 counter
19159 \emph default
19160 }
19161 \end_layout
19162
19163 \end_inset
19164
19165 , where 
19166 \begin_inset Flex Code
19167 status collapsed
19168
19169 \begin_layout Plain Layout
19170
19171 \emph on
19172 numbertype
19173 \end_layout
19174
19175 \end_inset
19176
19177  can be:
19178 \begin_inset Foot
19179 status collapsed
19180
19181 \begin_layout Plain Layout
19182
19183 \family roman
19184 \series medium
19185 \shape up
19186 \size normal
19187 \emph off
19188 \bar no
19189 \noun off
19190 \color none
19191 Actually, the situation is a bit more complicated: any
19192 \family default
19193 \series default
19194 \shape default
19195 \emph default
19196 \bar default
19197  
19198 \size default
19199 \emph on
19200 \noun default
19201 \color inherit
19202 numbertype
19203 \family roman
19204 \series medium
19205 \shape up
19206 \size normal
19207 \emph off
19208 \bar no
19209 \noun off
19210  other than those described below will produce arabic numerals.
19211  It would not be surprising to see this change in the future.
19212 \end_layout
19213
19214 \end_inset
19215
19216  
19217 \begin_inset Flex Code
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221 arabic
19222 \end_layout
19223
19224 \end_inset
19225
19226 : 1, 2, 3,\SpecialChar ldots
19227
19228 \begin_inset Flex Code
19229 status collapsed
19230
19231 \begin_layout Plain Layout
19232 alph
19233 \end_layout
19234
19235 \end_inset
19236
19237  for lower-case letters: a, b, c, \SpecialChar ldots
19238
19239 \begin_inset Flex Code
19240 status collapsed
19241
19242 \begin_layout Plain Layout
19243 Alph
19244 \end_layout
19245
19246 \end_inset
19247
19248  for upper-case letters: A, B, C, \SpecialChar ldots
19249
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 roman
19255 \end_layout
19256
19257 \end_inset
19258
19259  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
19260
19261 \begin_inset Flex Code
19262 status collapsed
19263
19264 \begin_layout Plain Layout
19265 Roman
19266 \end_layout
19267
19268 \end_inset
19269
19270  for upper-case roman numerals: I, II, III\SpecialChar ldots
19271
19272 \begin_inset Flex Code
19273 status collapsed
19274
19275 \begin_layout Plain Layout
19276 hebrew
19277 \end_layout
19278
19279 \end_inset
19280
19281  for hebrew numerals.
19282 \end_layout
19283
19284 \end_deeper
19285 \begin_layout Standard
19286 If LabelString is not defined, a default value is constructed as follows:
19287  if the counter has a master counter 
19288 \begin_inset Flex Code
19289 status collapsed
19290
19291 \begin_layout Plain Layout
19292 master
19293 \end_layout
19294
19295 \end_inset
19296
19297  (defined via 
19298 \begin_inset Flex Code
19299 status collapsed
19300
19301 \begin_layout Plain Layout
19302 Within
19303 \end_layout
19304
19305 \end_inset
19306
19307 ), the string
19308 \begin_inset Newline newline
19309 \end_inset
19310
19311
19312 \begin_inset Flex Code
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316
19317 \backslash
19318 themaster.
19319 \backslash
19320 arabic{counter}
19321 \end_layout
19322
19323 \end_inset
19324
19325  is used; otherwise the string 
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330
19331 \backslash
19332 arabic{counter}
19333 \end_layout
19334
19335 \end_inset
19336
19337  is used.
19338 \end_layout
19339
19340 \begin_layout Description
19341 \begin_inset Flex Code
19342 status collapsed
19343
19344 \begin_layout Plain Layout
19345 LabelStringAppendix
19346 \end_layout
19347
19348 \end_inset
19349
19350  [
19351 \begin_inset Flex Code
19352 status collapsed
19353
19354 \begin_layout Plain Layout
19355 string
19356 \end_layout
19357
19358 \end_inset
19359
19360 =
19361 \begin_inset Quotes erd
19362 \end_inset
19363
19364
19365 \begin_inset Quotes erd
19366 \end_inset
19367
19368 ] Same as 
19369 \begin_inset Flex Code
19370 status collapsed
19371
19372 \begin_layout Plain Layout
19373 LabelString
19374 \end_layout
19375
19376 \end_inset
19377
19378 , but for use in the Appendix.
19379 \end_layout
19380
19381 \begin_layout Description
19382 \begin_inset Flex Code
19383 status collapsed
19384
19385 \begin_layout Plain Layout
19386 PrettyFormat
19387 \end_layout
19388
19389 \end_inset
19390
19391  [
19392 \begin_inset Flex Code
19393 status collapsed
19394
19395 \begin_layout Plain Layout
19396 string
19397 \end_layout
19398
19399 \end_inset
19400
19401 =
19402 \begin_inset Quotes erd
19403 \end_inset
19404
19405
19406 \begin_inset Quotes erd
19407 \end_inset
19408
19409 ] A format for use with formatted references to this counter.
19410  For example, one might want to have references to section numbers appear
19411  as 
19412 \begin_inset Quotes eld
19413 \end_inset
19414
19415 Section 2.4
19416 \begin_inset Quotes erd
19417 \end_inset
19418
19419 .
19420  The string should contain 
19421 \begin_inset Quotes eld
19422 \end_inset
19423
19424 ##
19425 \begin_inset Quotes erd
19426 \end_inset
19427
19428 .
19429  This will be replaced by the counter number itself.
19430  So, for sections, it would be: Section ##.
19431 \end_layout
19432
19433 \begin_layout Description
19434 \begin_inset Flex Code
19435 status collapsed
19436
19437 \begin_layout Plain Layout
19438 Within
19439 \end_layout
19440
19441 \end_inset
19442
19443  [
19444 \begin_inset Flex Code
19445 status collapsed
19446
19447 \begin_layout Plain Layout
19448 string
19449 \end_layout
19450
19451 \end_inset
19452
19453 =
19454 \begin_inset Quotes erd
19455 \end_inset
19456
19457
19458 \begin_inset Quotes erd
19459 \end_inset
19460
19461 ] If this is set to the name of another counter, the present counter will
19462  be reset every time the other one is increased.
19463  For example, 
19464 \begin_inset Flex Code
19465 status collapsed
19466
19467 \begin_layout Plain Layout
19468 subsection
19469 \end_layout
19470
19471 \end_inset
19472
19473  is numbered inside 
19474 \begin_inset Flex Code
19475 status collapsed
19476
19477 \begin_layout Plain Layout
19478 section
19479 \end_layout
19480
19481 \end_inset
19482
19483 .
19484 \end_layout
19485
19486 \begin_layout Subsection
19487 Font description
19488 \begin_inset CommandInset label
19489 LatexCommand label
19490 name "sub:Font-description"
19491
19492 \end_inset
19493
19494
19495 \end_layout
19496
19497 \begin_layout Standard
19498 A font description looks like this:
19499 \end_layout
19500
19501 \begin_layout LyX-Code
19502 Font 
19503 \family roman
19504 \emph on
19505 or
19506 \family default
19507 \emph default
19508  LabelFont
19509 \emph on
19510  or
19511 \emph default
19512  DefaultFont
19513 \end_layout
19514
19515 \begin_layout LyX-Code
19516  ...
19517 \end_layout
19518
19519 \begin_layout LyX-Code
19520 EndFont
19521 \end_layout
19522
19523 \begin_layout Standard
19524 The following commands are available:
19525 \end_layout
19526
19527 \begin_layout Description
19528 \begin_inset Flex Code
19529 status collapsed
19530
19531 \begin_layout Plain Layout
19532 Color
19533 \end_layout
19534
19535 \end_inset
19536
19537  [
19538 \begin_inset Flex Code
19539 status collapsed
19540
19541 \begin_layout Plain Layout
19542
19543 \emph on
19544 none
19545 \end_layout
19546
19547 \end_inset
19548
19549
19550 \begin_inset Flex Code
19551 status collapsed
19552
19553 \begin_layout Plain Layout
19554 black
19555 \end_layout
19556
19557 \end_inset
19558
19559
19560 \begin_inset Flex Code
19561 status collapsed
19562
19563 \begin_layout Plain Layout
19564 white
19565 \end_layout
19566
19567 \end_inset
19568
19569
19570 \begin_inset Flex Code
19571 status collapsed
19572
19573 \begin_layout Plain Layout
19574 red
19575 \end_layout
19576
19577 \end_inset
19578
19579
19580 \begin_inset Flex Code
19581 status collapsed
19582
19583 \begin_layout Plain Layout
19584 green
19585 \end_layout
19586
19587 \end_inset
19588
19589
19590 \begin_inset Flex Code
19591 status collapsed
19592
19593 \begin_layout Plain Layout
19594 blue
19595 \end_layout
19596
19597 \end_inset
19598
19599
19600 \begin_inset Flex Code
19601 status collapsed
19602
19603 \begin_layout Plain Layout
19604 cyan
19605 \end_layout
19606
19607 \end_inset
19608
19609
19610 \begin_inset Flex Code
19611 status collapsed
19612
19613 \begin_layout Plain Layout
19614 magenta
19615 \end_layout
19616
19617 \end_inset
19618
19619
19620 \begin_inset Flex Code
19621 status collapsed
19622
19623 \begin_layout Plain Layout
19624 yellow
19625 \end_layout
19626
19627 \end_inset
19628
19629 ]
19630 \end_layout
19631
19632 \begin_layout Description
19633 \begin_inset Flex Code
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637 Family
19638 \end_layout
19639
19640 \end_inset
19641
19642  [
19643 \begin_inset Flex Code
19644 status collapsed
19645
19646 \begin_layout Plain Layout
19647
19648 \emph on
19649 Roman
19650 \end_layout
19651
19652 \end_inset
19653
19654
19655 \begin_inset Flex Code
19656 status collapsed
19657
19658 \begin_layout Plain Layout
19659 Sans
19660 \end_layout
19661
19662 \end_inset
19663
19664
19665 \begin_inset Flex Code
19666 status collapsed
19667
19668 \begin_layout Plain Layout
19669 Typewriter
19670 \end_layout
19671
19672 \end_inset
19673
19674 ]
19675 \end_layout
19676
19677 \begin_layout Description
19678 \begin_inset Flex Code
19679 status collapsed
19680
19681 \begin_layout Plain Layout
19682 Misc
19683 \end_layout
19684
19685 \end_inset
19686
19687  [
19688 \begin_inset Flex Code
19689 status collapsed
19690
19691 \begin_layout Plain Layout
19692 string
19693 \end_layout
19694
19695 \end_inset
19696
19697 ] Valid arguments are: 
19698 \begin_inset Flex Code
19699 status collapsed
19700
19701 \begin_layout Plain Layout
19702 emph
19703 \end_layout
19704
19705 \end_inset
19706
19707
19708 \begin_inset Flex Code
19709 status collapsed
19710
19711 \begin_layout Plain Layout
19712 noun
19713 \end_layout
19714
19715 \end_inset
19716
19717
19718 \begin_inset Flex Code
19719 status collapsed
19720
19721 \begin_layout Plain Layout
19722 strikeout
19723 \end_layout
19724
19725 \end_inset
19726
19727
19728 \begin_inset Flex Code
19729 status collapsed
19730
19731 \begin_layout Plain Layout
19732 underbar
19733 \end_layout
19734
19735 \end_inset
19736
19737
19738 \begin_inset Flex Code
19739 status collapsed
19740
19741 \begin_layout Plain Layout
19742 uuline
19743 \end_layout
19744
19745 \end_inset
19746
19747
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 uwave
19753 \end_layout
19754
19755 \end_inset
19756
19757
19758 \begin_inset Flex Code
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762 no_emph
19763 \end_layout
19764
19765 \end_inset
19766
19767
19768 \begin_inset Flex Code
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 no_noun
19773 \end_layout
19774
19775 \end_inset
19776
19777
19778 \begin_inset Flex Code
19779 status collapsed
19780
19781 \begin_layout Plain Layout
19782 no_strikeout
19783 \end_layout
19784
19785 \end_inset
19786
19787
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792 no_bar
19793 \end_layout
19794
19795 \end_inset
19796
19797
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 no_uuline
19803 \end_layout
19804
19805 \end_inset
19806
19807  and 
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812 no_uwave
19813 \end_layout
19814
19815 \end_inset
19816
19817 .
19818  Each of these turns on or off the corresponding attribute.
19819  For example, 
19820 \begin_inset Flex Code
19821 status collapsed
19822
19823 \begin_layout Plain Layout
19824 emph
19825 \end_layout
19826
19827 \end_inset
19828
19829  turns on emphasis, and 
19830 \begin_inset Flex Code
19831 status collapsed
19832
19833 \begin_layout Plain Layout
19834 no_emph
19835 \end_layout
19836
19837 \end_inset
19838
19839  turns it off.
19840  
19841 \begin_inset Newline newline
19842 \end_inset
19843
19844 If the latter seems puzzling, remember that the font settings for the present
19845  context are generally inherited from the surrounding context.
19846  So 
19847 \begin_inset Flex Code
19848 status collapsed
19849
19850 \begin_layout Plain Layout
19851 no_emph
19852 \end_layout
19853
19854 \end_inset
19855
19856  would turn off the emphasis that was anyway in effect, say, in a theorem
19857  environment.
19858 \end_layout
19859
19860 \begin_layout Description
19861 \begin_inset Flex Code
19862 status collapsed
19863
19864 \begin_layout Plain Layout
19865 Series
19866 \end_layout
19867
19868 \end_inset
19869
19870  [
19871 \begin_inset Flex Code
19872 status collapsed
19873
19874 \begin_layout Plain Layout
19875
19876 \emph on
19877 Medium
19878 \end_layout
19879
19880 \end_inset
19881
19882
19883 \begin_inset Flex Code
19884 status collapsed
19885
19886 \begin_layout Plain Layout
19887 Bold
19888 \end_layout
19889
19890 \end_inset
19891
19892
19893 \end_layout
19894
19895 \begin_layout Description
19896 \begin_inset Flex Code
19897 status collapsed
19898
19899 \begin_layout Plain Layout
19900 Shape
19901 \end_layout
19902
19903 \end_inset
19904
19905  [
19906 \begin_inset Flex Code
19907 status collapsed
19908
19909 \begin_layout Plain Layout
19910
19911 \emph on
19912 Up
19913 \end_layout
19914
19915 \end_inset
19916
19917
19918 \begin_inset Flex Code
19919 status collapsed
19920
19921 \begin_layout Plain Layout
19922 Italic
19923 \end_layout
19924
19925 \end_inset
19926
19927
19928 \begin_inset Flex Code
19929 status collapsed
19930
19931 \begin_layout Plain Layout
19932 SmallCaps
19933 \end_layout
19934
19935 \end_inset
19936
19937
19938 \begin_inset Flex Code
19939 status collapsed
19940
19941 \begin_layout Plain Layout
19942 Slanted
19943 \end_layout
19944
19945 \end_inset
19946
19947
19948 \end_layout
19949
19950 \begin_layout Description
19951 \begin_inset Flex Code
19952 status collapsed
19953
19954 \begin_layout Plain Layout
19955 Size
19956 \end_layout
19957
19958 \end_inset
19959
19960  [
19961 \begin_inset Flex Code
19962 status collapsed
19963
19964 \begin_layout Plain Layout
19965 tiny
19966 \end_layout
19967
19968 \end_inset
19969
19970
19971 \begin_inset Flex Code
19972 status collapsed
19973
19974 \begin_layout Plain Layout
19975 small
19976 \end_layout
19977
19978 \end_inset
19979
19980
19981 \begin_inset Flex Code
19982 status collapsed
19983
19984 \begin_layout Plain Layout
19985
19986 \emph on
19987 normal
19988 \end_layout
19989
19990 \end_inset
19991
19992
19993 \begin_inset Flex Code
19994 status collapsed
19995
19996 \begin_layout Plain Layout
19997 large
19998 \end_layout
19999
20000 \end_inset
20001
20002
20003 \begin_inset Flex Code
20004 status collapsed
20005
20006 \begin_layout Plain Layout
20007 larger
20008 \end_layout
20009
20010 \end_inset
20011
20012
20013 \begin_inset Flex Code
20014 status collapsed
20015
20016 \begin_layout Plain Layout
20017 largest
20018 \end_layout
20019
20020 \end_inset
20021
20022
20023 \begin_inset Flex Code
20024 status collapsed
20025
20026 \begin_layout Plain Layout
20027 huge
20028 \end_layout
20029
20030 \end_inset
20031
20032
20033 \begin_inset Flex Code
20034 status collapsed
20035
20036 \begin_layout Plain Layout
20037 giant
20038 \end_layout
20039
20040 \end_inset
20041
20042 ]
20043 \end_layout
20044
20045 \begin_layout Subsection
20046 \begin_inset CommandInset label
20047 LatexCommand label
20048 name "sub:Citation-format-description"
20049
20050 \end_inset
20051
20052 Citation format description
20053 \end_layout
20054
20055 \begin_layout Standard
20056 The 
20057 \begin_inset Flex Code
20058 status collapsed
20059
20060 \begin_layout Plain Layout
20061 CiteFormat
20062 \end_layout
20063
20064 \end_inset
20065
20066  blocks are used to describe how bibliographic information should be displayed,
20067  both within \SpecialChar LyX
20068  itself (in the citation dialog and in tooltips, for example)
20069  and in XHTML output.
20070  Such a block might look like this:
20071 \end_layout
20072
20073 \begin_layout LyX-Code
20074 CiteFormat
20075 \end_layout
20076
20077 \begin_layout LyX-Code
20078  article ...
20079 \end_layout
20080
20081 \begin_layout LyX-Code
20082  book ...
20083 \end_layout
20084
20085 \begin_layout LyX-Code
20086 End
20087 \end_layout
20088
20089 \begin_layout Standard
20090 The individual lines define how the bibliographic information associated
20091  with an article or book, respectively, is to be displayed, and such a definitio
20092 n can be given for any `entry type' that might be present in a Bib\SpecialChar TeX
20093  file.
20094  \SpecialChar LyX
20095  defines a default format in the source code that will be used if no specific
20096  definition has been given.
20097  \SpecialChar LyX
20098  predefines several formats in the file 
20099 \begin_inset Flex Code
20100 status collapsed
20101
20102 \begin_layout Plain Layout
20103 stdciteformats.inc
20104 \end_layout
20105
20106 \end_inset
20107
20108 , which is included in most of \SpecialChar LyX
20109 's document classes.
20110 \end_layout
20111
20112 \begin_layout Standard
20113 The definitions use a simple language that allows Bib\SpecialChar TeX
20114  keys to be replaced
20115  with their values.
20116  Keys should be enclosed in 
20117 \begin_inset Flex Code
20118 status collapsed
20119
20120 \begin_layout Plain Layout
20121 %
20122 \end_layout
20123
20124 \end_inset
20125
20126  signs, e.g.: 
20127 \begin_inset Flex Code
20128 status collapsed
20129
20130 \begin_layout Plain Layout
20131 %author%
20132 \end_layout
20133
20134 \end_inset
20135
20136 .
20137  So a simple definition might look like this:
20138 \end_layout
20139
20140 \begin_layout LyX-Code
20141 misc %author%, 
20142 \begin_inset Quotes eld
20143 \end_inset
20144
20145 %title
20146 \begin_inset Quotes erd
20147 \end_inset
20148
20149 .
20150 \end_layout
20151
20152 \begin_layout Standard
20153 This would print the author, followed by a comma, followed by the title,
20154  in quotes, followed by a period.
20155 \end_layout
20156
20157 \begin_layout Standard
20158 Of course, sometimes you may want to print a key only if it exists.
20159  This can be done by using a conditional construction, such as: 
20160 \begin_inset Flex Code
20161 status collapsed
20162
20163 \begin_layout Plain Layout
20164 {%volume%[[vol.
20165 \begin_inset space ~
20166 \end_inset
20167
20168 %volume%]]}
20169 \end_layout
20170
20171 \end_inset
20172
20173 .
20174  This says: If the 
20175 \begin_inset Flex Code
20176 status collapsed
20177
20178 \begin_layout Plain Layout
20179 volume
20180 \end_layout
20181
20182 \end_inset
20183
20184  key exists, then print 
20185 \begin_inset Quotes eld
20186 \end_inset
20187
20188 vol.
20189 \begin_inset space ~
20190 \end_inset
20191
20192
20193 \begin_inset Quotes erd
20194 \end_inset
20195
20196  followed by the volume key.
20197  It is also possible to have an else clause in the conditional, such as:
20198 \begin_inset Newline newline
20199 \end_inset
20200
20201
20202 \begin_inset Flex Code
20203 status collapsed
20204
20205 \begin_layout Plain Layout
20206 {%author%[[%author%]][[%editor%, ed.]]}
20207 \end_layout
20208
20209 \end_inset
20210
20211 .
20212 \begin_inset Newline newline
20213 \end_inset
20214
20215 Here, the 
20216 \begin_inset Flex Code
20217 status collapsed
20218
20219 \begin_layout Plain Layout
20220 author
20221 \end_layout
20222
20223 \end_inset
20224
20225  key is printed if it exists; otherwise, the editor key is printed, followed
20226  by 
20227 \begin_inset Quotes eld
20228 \end_inset
20229
20230 ,
20231 \begin_inset space ~
20232 \end_inset
20233
20234 ed.
20235 \begin_inset Quotes erd
20236 \end_inset
20237
20238  Note that the key is again enclosed in 
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 %
20244 \end_layout
20245
20246 \end_inset
20247
20248  signs; the entire conditional is enclosed in braces; and the if and else
20249  clauses are enclosed in double brackets, 
20250 \begin_inset Quotes eld
20251 \end_inset
20252
20253
20254 \begin_inset Flex Code
20255 status collapsed
20256
20257 \begin_layout Plain Layout
20258 [[
20259 \end_layout
20260
20261 \end_inset
20262
20263
20264 \begin_inset Quotes eld
20265 \end_inset
20266
20267  and 
20268 \begin_inset Quotes eld
20269 \end_inset
20270
20271
20272 \begin_inset Flex Code
20273 status collapsed
20274
20275 \begin_layout Plain Layout
20276 ]]
20277 \end_layout
20278
20279 \end_inset
20280
20281
20282 \begin_inset Quotes erd
20283 \end_inset
20284
20285 .
20286  There must be no space between any of these.
20287 \end_layout
20288
20289 \begin_layout Standard
20290 There is one other piece of syntax available in definitions, which looks
20291  like this: 
20292 \begin_inset Flex Code
20293 status collapsed
20294
20295 \begin_layout Plain Layout
20296 {!<i>!}
20297 \end_layout
20298
20299 \end_inset
20300
20301 .
20302  This defines a piece of formatting information that is to be used when
20303  creating 
20304 \begin_inset Quotes eld
20305 \end_inset
20306
20307 rich text
20308 \begin_inset Quotes erd
20309 \end_inset
20310
20311 .
20312  Obviously, we do not want to output HTML tags when writing plain text,
20313  so they should be wrapped in 
20314 \begin_inset Quotes eld
20315 \end_inset
20316
20317 {!
20318 \begin_inset Quotes erd
20319 \end_inset
20320
20321  and 
20322 \begin_inset Quotes eld
20323 \end_inset
20324
20325 !}
20326 \begin_inset Quotes erd
20327 \end_inset
20328
20329 .
20330 \end_layout
20331
20332 \begin_layout Standard
20333 Two special sorts of definitions are also possible in a 
20334 \begin_inset Flex Code
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 CiteFormat
20339 \end_layout
20340
20341 \end_inset
20342
20343  block.
20344  An example of the first would be:
20345 \end_layout
20346
20347 \begin_layout LyX-Code
20348 !quotetitle 
20349 \begin_inset Quotes eld
20350 \end_inset
20351
20352 %title%
20353 \begin_inset Quotes erd
20354 \end_inset
20355
20356
20357 \end_layout
20358
20359 \begin_layout Standard
20360 This is an abbreviation, or macro, and it can be used by treating it as
20361  if it were a key: 
20362 \begin_inset Flex Code
20363 status collapsed
20364
20365 \begin_layout Plain Layout
20366 %!quotetitle%
20367 \end_layout
20368
20369 \end_inset
20370
20371 .
20372  \SpecialChar LyX
20373  will treat 
20374 \begin_inset Flex Code
20375 status collapsed
20376
20377 \begin_layout Plain Layout
20378 %!quotetitle%
20379 \end_layout
20380
20381 \end_inset
20382
20383  exactly as it would treat its definition.
20384  So, let us issue the obvious 
20385 \emph on
20386 warning
20387 \emph default
20388 .
20389  Do not do this:
20390 \end_layout
20391
20392 \begin_layout LyX-Code
20393 !funfun %funfun%
20394 \end_layout
20395
20396 \begin_layout Standard
20397 or anything like it.
20398  \SpecialChar LyX
20399  shouldn't go into an infinite loop, but it may go into a long one before
20400  it gives up.
20401 \end_layout
20402
20403 \begin_layout Standard
20404 The second sort of special definition might look like this:
20405 \end_layout
20406
20407 \begin_layout LyX-Code
20408 _pptext pp.
20409 \end_layout
20410
20411 \begin_layout Standard
20412 This defines a translatable piece of text, which allows relevant parts of
20413  the bibliography to be translated.
20414  It can be included in a definition by treating it as a key: 
20415 \begin_inset Flex Code
20416 status collapsed
20417
20418 \begin_layout Plain Layout
20419 %_pptext%
20420 \end_layout
20421
20422 \end_inset
20423
20424 .
20425  Several of these are predefined in 
20426 \begin_inset Flex Code
20427 status collapsed
20428
20429 \begin_layout Plain Layout
20430 stdciteformats.inc
20431 \end_layout
20432
20433 \end_inset
20434
20435 .
20436  Note that these are not macros, in the sense just defined.
20437  They will not be expanded.
20438 \end_layout
20439
20440 \begin_layout Standard
20441 So here then is an example that use all these features:
20442 \begin_inset VSpace defskip
20443 \end_inset
20444
20445
20446 \end_layout
20447
20448 \begin_layout Standard
20449 \noindent
20450
20451 \family typewriter
20452 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20453 \end_layout
20454
20455 \begin_layout Standard
20456 \begin_inset VSpace defskip
20457 \end_inset
20458
20459 This defines a macro that prints the author, followed by a comma, if the
20460  
20461 \begin_inset Flex Code
20462 status collapsed
20463
20464 \begin_layout Plain Layout
20465 author
20466 \end_layout
20467
20468 \end_inset
20469
20470  key is defined, or else prints the name of the editor, followed by the
20471  
20472 \begin_inset Flex Code
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476 _edtext
20477 \end_layout
20478
20479 \end_inset
20480
20481  or its translation (it is by default 
20482 \begin_inset Quotes eld
20483 \end_inset
20484
20485 ed.
20486 \begin_inset Quotes erd
20487 \end_inset
20488
20489 ), if the 
20490 \begin_inset Flex Code
20491 status collapsed
20492
20493 \begin_layout Plain Layout
20494 editor
20495 \end_layout
20496
20497 \end_inset
20498
20499  key is defined.
20500  Note that this is in fact defined in 
20501 \begin_inset Flex Code
20502 status collapsed
20503
20504 \begin_layout Plain Layout
20505 stdciteformats.inc
20506 \end_layout
20507
20508 \end_inset
20509
20510 , so you can use it in your own definitions, or re-definitions, if you load
20511  that file first.
20512 \end_layout
20513
20514 \begin_layout Section
20515 \begin_inset CommandInset label
20516 LatexCommand label
20517 name "sec:Tags-for-XHTML"
20518
20519 \end_inset
20520
20521 Tags for XHTML output
20522 \end_layout
20523
20524 \begin_layout Standard
20525 As with \SpecialChar LaTeX
20526  or DocBook, the format of \SpecialChar LyX
20527 's XHTML output is also controlled by
20528  layout information.
20529  In general, \SpecialChar LyX
20530  provides sensible defaults and, as mentioned earlier, it will
20531  even construct default CSS style rules from the other layout tags.
20532  For example, \SpecialChar LyX
20533  will attempt to use the information provided in the 
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538 Font
20539 \end_layout
20540
20541 \end_inset
20542
20543  declaration for the Chapter style to write CSS that will appropriately
20544  format chapter headings.
20545 \end_layout
20546
20547 \begin_layout Standard
20548 In many cases, then, you may not have to do anything at all to get acceptable
20549  XHTML output for your own environments, custom insets, and so forth.
20550  But in some cases you will, and so \SpecialChar LyX
20551  provides a number of layout tags that
20552  can be used to customize the XHTML and CSS that are generated.
20553 \end_layout
20554
20555 \begin_layout Standard
20556 Note that there are two tags, 
20557 \begin_inset Flex Code
20558 status collapsed
20559
20560 \begin_layout Plain Layout
20561 HTMLPreamble
20562 \end_layout
20563
20564 \end_inset
20565
20566  and 
20567 \begin_inset Flex Code
20568 status collapsed
20569
20570 \begin_layout Plain Layout
20571 AddToHTMLPreamble
20572 \end_layout
20573
20574 \end_inset
20575
20576  that may appear outside style and inset declarations.
20577  See 
20578 \begin_inset CommandInset ref
20579 LatexCommand ref
20580 reference "sub:General-text-class"
20581
20582 \end_inset
20583
20584  for details on these.
20585 \end_layout
20586
20587 \begin_layout Subsection
20588 \begin_inset CommandInset label
20589 LatexCommand label
20590 name "sub:Paragraph-Style-XHTML"
20591
20592 \end_inset
20593
20594 Paragraph styles
20595 \end_layout
20596
20597 \begin_layout Standard
20598 The sort of XHTML \SpecialChar LyX
20599  outputs for a paragraph depends upon whether we are dealing
20600  with a normal paragraph, a command, or an environment, where this is itself
20601  determined by the contents of the corresponding 
20602 \begin_inset Flex Code
20603 status collapsed
20604
20605 \begin_layout Plain Layout
20606 \SpecialChar LaTeX
20607 Type
20608 \end_layout
20609
20610 \end_inset
20611
20612  tag.
20613  
20614 \end_layout
20615
20616 \begin_layout Standard
20617 For a command or normal paragraph, the output XHTML has the following form:
20618 \end_layout
20619
20620 \begin_layout LyX-Code
20621 <tag attr=
20622 \begin_inset Quotes erd
20623 \end_inset
20624
20625 value
20626 \begin_inset Quotes erd
20627 \end_inset
20628
20629 >
20630 \end_layout
20631
20632 \begin_layout LyX-Code
20633 <labeltag attr=
20634 \begin_inset Quotes erd
20635 \end_inset
20636
20637 value
20638 \begin_inset Quotes erd
20639 \end_inset
20640
20641 >Label</labeltag>
20642 \end_layout
20643
20644 \begin_layout LyX-Code
20645 Contents of the paragraph.
20646 \end_layout
20647
20648 \begin_layout LyX-Code
20649 </tag>
20650 \end_layout
20651
20652 \begin_layout Standard
20653 The label tags are of course omitted if the paragraph does not have a label.
20654 \end_layout
20655
20656 \begin_layout Standard
20657 For an environment that is not some sort of list, the XHTML takes this form:
20658 \end_layout
20659
20660 \begin_layout LyX-Code
20661 <tag attr=
20662 \begin_inset Quotes erd
20663 \end_inset
20664
20665 value
20666 \begin_inset Quotes erd
20667 \end_inset
20668
20669 >
20670 \end_layout
20671
20672 \begin_layout LyX-Code
20673 <itemtag attr=
20674 \begin_inset Quotes erd
20675 \end_inset
20676
20677 value
20678 \begin_inset Quotes erd
20679 \end_inset
20680
20681 ><labeltag attr=
20682 \begin_inset Quotes erd
20683 \end_inset
20684
20685 value
20686 \begin_inset Quotes erd
20687 \end_inset
20688
20689 >Environment Label</labeltag>First paragraph.</itemtag>
20690 \end_layout
20691
20692 \begin_layout LyX-Code
20693 <itemtag>Second paragraph.</itemtag>
20694 \end_layout
20695
20696 \begin_layout LyX-Code
20697 </tag>
20698 \end_layout
20699
20700 \begin_layout Standard
20701 Note that the label is output only for the first paragraph, as it should
20702  be for a theorem, for example.
20703  
20704 \end_layout
20705
20706 \begin_layout Standard
20707 For a list, we have one of these forms:
20708 \end_layout
20709
20710 \begin_layout LyX-Code
20711 <tag attr=
20712 \begin_inset Quotes erd
20713 \end_inset
20714
20715 value
20716 \begin_inset Quotes erd
20717 \end_inset
20718
20719 >
20720 \end_layout
20721
20722 \begin_layout LyX-Code
20723 <itemtag attr=
20724 \begin_inset Quotes erd
20725 \end_inset
20726
20727 value
20728 \begin_inset Quotes erd
20729 \end_inset
20730
20731 ><labeltag attr=
20732 \begin_inset Quotes erd
20733 \end_inset
20734
20735 value
20736 \begin_inset Quotes erd
20737 \end_inset
20738
20739 >List Label</labeltag>First item.</itemtag>
20740 \end_layout
20741
20742 \begin_layout LyX-Code
20743 <itemtag attr=
20744 \begin_inset Quotes erd
20745 \end_inset
20746
20747 value
20748 \begin_inset Quotes erd
20749 \end_inset
20750
20751 ><labeltag attr=
20752 \begin_inset Quotes erd
20753 \end_inset
20754
20755 value
20756 \begin_inset Quotes erd
20757 \end_inset
20758
20759 >List Label</labeltag>Second item.</itemtag>
20760 \end_layout
20761
20762 \begin_layout LyX-Code
20763 </tag>
20764 \end_layout
20765
20766 \begin_layout LyX-Code
20767
20768 \end_layout
20769
20770 \begin_layout LyX-Code
20771 <tag attr=
20772 \begin_inset Quotes erd
20773 \end_inset
20774
20775 value
20776 \begin_inset Quotes erd
20777 \end_inset
20778
20779 >
20780 \end_layout
20781
20782 \begin_layout LyX-Code
20783 <labeltag attr=
20784 \begin_inset Quotes erd
20785 \end_inset
20786
20787 value
20788 \begin_inset Quotes erd
20789 \end_inset
20790
20791 >List Label</labeltag><itemtag attr=
20792 \begin_inset Quotes erd
20793 \end_inset
20794
20795 value
20796 \begin_inset Quotes erd
20797 \end_inset
20798
20799 >First item.</itemtag>
20800 \end_layout
20801
20802 \begin_layout LyX-Code
20803 <labeltag attr=
20804 \begin_inset Quotes erd
20805 \end_inset
20806
20807 value
20808 \begin_inset Quotes erd
20809 \end_inset
20810
20811 >List Label</labeltag><itemtag attr=
20812 \begin_inset Quotes erd
20813 \end_inset
20814
20815 value
20816 \begin_inset Quotes erd
20817 \end_inset
20818
20819 >Second item.</itemtag>
20820 \end_layout
20821
20822 \begin_layout LyX-Code
20823 </tag>
20824 \end_layout
20825
20826 \begin_layout Standard
20827 Note the different orders of 
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 labeltag
20833 \end_layout
20834
20835 \end_inset
20836
20837  and 
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 itemtag
20843 \end_layout
20844
20845 \end_inset
20846
20847 .
20848  Which order we get depends upon the setting of 
20849 \begin_inset Flex Code
20850 status collapsed
20851
20852 \begin_layout Plain Layout
20853 HTMLLabelFirst
20854 \end_layout
20855
20856 \end_inset
20857
20858 : If 
20859 \begin_inset Flex Code
20860 status collapsed
20861
20862 \begin_layout Plain Layout
20863 HTMLLabelFirst
20864 \end_layout
20865
20866 \end_inset
20867
20868  is false (the default), you get the first of these, with the label within
20869  the item; if true, you get the second, with the label outside the item.
20870 \end_layout
20871
20872 \begin_layout Standard
20873 The specific tags and attributes output for each paragraph type can be controlle
20874 d by means of the layout tags we are about to describe.
20875  As mentioned earlier, however, \SpecialChar LyX
20876  uses sensible defaults for many of these,
20877  so you often may not need to do very much to get good XHTML output.
20878  Think of the available tags as there so you can tweak things to your liking.
20879 \end_layout
20880
20881 \begin_layout Description
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886 HTMLAttr
20887 \end_layout
20888
20889 \end_inset
20890
20891  [
20892 \begin_inset Flex Code
20893 status collapsed
20894
20895 \begin_layout Plain Layout
20896 string
20897 \end_layout
20898
20899 \end_inset
20900
20901 ] Specifies attribute information to be output with the main tag.
20902  For example, 
20903 \begin_inset Quotes eld
20904 \end_inset
20905
20906
20907 \begin_inset Flex Code
20908 status collapsed
20909
20910 \begin_layout Plain Layout
20911 class=`mydiv'
20912 \end_layout
20913
20914 \end_inset
20915
20916
20917 \begin_inset Quotes erd
20918 \end_inset
20919
20920 .
20921  By default, \SpecialChar LyX
20922  will output 
20923 \begin_inset Quotes eld
20924 \end_inset
20925
20926
20927 \begin_inset Flex Code
20928 status collapsed
20929
20930 \begin_layout Plain Layout
20931 class=`layoutname'
20932 \end_layout
20933
20934 \end_inset
20935
20936
20937 \begin_inset Quotes erd
20938 \end_inset
20939
20940 , where 
20941 \begin_inset Flex Code
20942 status collapsed
20943
20944 \begin_layout Plain Layout
20945 layoutname
20946 \end_layout
20947
20948 \end_inset
20949
20950  is the \SpecialChar LyX
20951  name of the layout, made lowercase, for example: chapter.
20952  This should 
20953 \emph on
20954 not
20955 \emph default
20956  contain any style information.
20957  Use 
20958 \begin_inset Flex Code
20959 status collapsed
20960
20961 \begin_layout Plain Layout
20962 HTMLStyle
20963 \end_layout
20964
20965 \end_inset
20966
20967  for that purpose.
20968 \end_layout
20969
20970 \begin_layout Description
20971 \begin_inset Flex Code
20972 status collapsed
20973
20974 \begin_layout Plain Layout
20975 HTMLForceCSS
20976 \end_layout
20977
20978 \end_inset
20979
20980  [
20981 \begin_inset Flex Code
20982 status collapsed
20983
20984 \begin_layout Plain Layout
20985
20986 \emph on
20987 0
20988 \emph default
20989 ,1
20990 \end_layout
20991
20992 \end_inset
20993
20994 ] Whether to output the default CSS information \SpecialChar LyX
20995  generates for this layout,
20996  even if additional information is explicitly provided via 
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 HTMLStyle
21002 \end_layout
21003
21004 \end_inset
21005
21006 .
21007  Setting this to 
21008 \begin_inset Flex Code
21009 status collapsed
21010
21011 \begin_layout Plain Layout
21012 1
21013 \end_layout
21014
21015 \end_inset
21016
21017  allows you to alter or augment the generated CSS, rather than to override
21018  it completely.
21019  Default is 
21020 \begin_inset Flex Code
21021 status collapsed
21022
21023 \begin_layout Plain Layout
21024 0
21025 \end_layout
21026
21027 \end_inset
21028
21029 .
21030 \end_layout
21031
21032 \begin_layout Description
21033 \begin_inset Flex Code
21034 status collapsed
21035
21036 \begin_layout Plain Layout
21037 HTMLItem
21038 \end_layout
21039
21040 \end_inset
21041
21042  [
21043 \begin_inset Flex Code
21044 status collapsed
21045
21046 \begin_layout Plain Layout
21047 string
21048 \end_layout
21049
21050 \end_inset
21051
21052 ] The tag to be used for individual paragraphs of environments, replacing
21053  
21054 \begin_inset Flex Code
21055 status collapsed
21056
21057 \begin_layout Plain Layout
21058 itemtag
21059 \end_layout
21060
21061 \end_inset
21062
21063  in the examples above.
21064  Defaults to 
21065 \begin_inset Flex Code
21066 status collapsed
21067
21068 \begin_layout Plain Layout
21069 div
21070 \end_layout
21071
21072 \end_inset
21073
21074 .
21075 \end_layout
21076
21077 \begin_layout Description
21078 \begin_inset Flex Code
21079 status collapsed
21080
21081 \begin_layout Plain Layout
21082 HTMLItemAttr
21083 \end_layout
21084
21085 \end_inset
21086
21087  [
21088 \begin_inset Flex Code
21089 status collapsed
21090
21091 \begin_layout Plain Layout
21092 string
21093 \end_layout
21094
21095 \end_inset
21096
21097 ] Attributes for the item tag.
21098  Defaults to 
21099 \begin_inset Quotes eld
21100 \end_inset
21101
21102
21103 \begin_inset Flex Code
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107 class=`layoutname_item'
21108 \end_layout
21109
21110 \end_inset
21111
21112
21113 \begin_inset Quotes erd
21114 \end_inset
21115
21116 .
21117  This should 
21118 \emph on
21119 not
21120 \emph default
21121  contain any style information.
21122  Use 
21123 \begin_inset Flex Code
21124 status collapsed
21125
21126 \begin_layout Plain Layout
21127 HTMLStyle
21128 \end_layout
21129
21130 \end_inset
21131
21132  for that purpose.
21133 \end_layout
21134
21135 \begin_layout Description
21136 \begin_inset Flex Code
21137 status collapsed
21138
21139 \begin_layout Plain Layout
21140 HTMLLabel
21141 \end_layout
21142
21143 \end_inset
21144
21145  [
21146 \begin_inset Flex Code
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150 string
21151 \end_layout
21152
21153 \end_inset
21154
21155 ] The tag to be used for paragraph and item labels, replacing 
21156 \begin_inset Flex Code
21157 status collapsed
21158
21159 \begin_layout Plain Layout
21160 labeltag
21161 \end_layout
21162
21163 \end_inset
21164
21165  in the examples above.
21166  Defaults to 
21167 \begin_inset Flex Code
21168 status collapsed
21169
21170 \begin_layout Plain Layout
21171 span
21172 \end_layout
21173
21174 \end_inset
21175
21176 , unless 
21177 \begin_inset Flex Code
21178 status collapsed
21179
21180 \begin_layout Plain Layout
21181 LabelType
21182 \end_layout
21183
21184 \end_inset
21185
21186  is either 
21187 \begin_inset Flex Code
21188 status collapsed
21189
21190 \begin_layout Plain Layout
21191 Top_Environment
21192 \end_layout
21193
21194 \end_inset
21195
21196  or 
21197 \begin_inset Flex Code
21198 status collapsed
21199
21200 \begin_layout Plain Layout
21201 Centered_Top_Environment
21202 \end_layout
21203
21204 \end_inset
21205
21206 , in which case it defaults to 
21207 \begin_inset Flex Code
21208 status collapsed
21209
21210 \begin_layout Plain Layout
21211 div
21212 \end_layout
21213
21214 \end_inset
21215
21216 .
21217 \end_layout
21218
21219 \begin_layout Description
21220 \begin_inset Flex Code
21221 status collapsed
21222
21223 \begin_layout Plain Layout
21224 HTMLLabelAttr
21225 \end_layout
21226
21227 \end_inset
21228
21229  [
21230 \begin_inset Flex Code
21231 status collapsed
21232
21233 \begin_layout Plain Layout
21234 string
21235 \end_layout
21236
21237 \end_inset
21238
21239 ] Attributes for the label tag.
21240  Defaults to 
21241 \begin_inset Quotes eld
21242 \end_inset
21243
21244
21245 \begin_inset Flex Code
21246 status collapsed
21247
21248 \begin_layout Plain Layout
21249 class=`layoutname_label'
21250 \end_layout
21251
21252 \end_inset
21253
21254
21255 \begin_inset Quotes erd
21256 \end_inset
21257
21258 .
21259  This should 
21260 \emph on
21261 not
21262 \emph default
21263  contain any style information.
21264  Use 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 HTMLStyle
21270 \end_layout
21271
21272 \end_inset
21273
21274  for that purpose.
21275 \end_layout
21276
21277 \begin_layout Description
21278 \begin_inset Flex Code
21279 status collapsed
21280
21281 \begin_layout Plain Layout
21282 HTMLLabelFirst
21283 \end_layout
21284
21285 \end_inset
21286
21287  [
21288 \begin_inset Flex Code
21289 status collapsed
21290
21291 \begin_layout Plain Layout
21292
21293 \emph on
21294 0
21295 \emph default
21296 ,1
21297 \end_layout
21298
21299 \end_inset
21300
21301 ] Meaningful only for list-like environments, this tag controls whether
21302  the label tag is output before or inside the item tag.
21303  This is used, for example, in the description environment, where we want
21304  `
21305 \begin_inset Flex Code
21306 status collapsed
21307
21308 \begin_layout Plain Layout
21309 <dt>\SpecialChar ldots
21310 </dt><dd>\SpecialChar ldots
21311 </dd>
21312 \end_layout
21313
21314 \end_inset
21315
21316 .
21317  Default is 
21318 \begin_inset Flex Code
21319 status collapsed
21320
21321 \begin_layout Plain Layout
21322 0
21323 \end_layout
21324
21325 \end_inset
21326
21327 : The label tag is output inside the item tag.
21328 \end_layout
21329
21330 \begin_layout Description
21331 \begin_inset Flex Code
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 HTMLPreamble
21336 \end_layout
21337
21338 \end_inset
21339
21340  Information to be output in the 
21341 \begin_inset Flex Code
21342 status collapsed
21343
21344 \begin_layout Plain Layout
21345 <head>
21346 \end_layout
21347
21348 \end_inset
21349
21350  section when this style is used.
21351  This might, for example, be used to include a 
21352 \begin_inset Flex Code
21353 status collapsed
21354
21355 \begin_layout Plain Layout
21356 <script>
21357 \end_layout
21358
21359 \end_inset
21360
21361  block defining an 
21362 \begin_inset Flex Code
21363 status collapsed
21364
21365 \begin_layout Plain Layout
21366 onclick
21367 \end_layout
21368
21369 \end_inset
21370
21371  handler.
21372 \end_layout
21373
21374 \begin_layout Description
21375 \begin_inset Flex Code
21376 status collapsed
21377
21378 \begin_layout Plain Layout
21379 HTMLStyle
21380 \end_layout
21381
21382 \end_inset
21383
21384  CSS style information to be included when this style is used.
21385  Note that this will automatically be wrapped in a layout-generated 
21386 \begin_inset Flex Code
21387 status collapsed
21388
21389 \begin_layout Plain Layout
21390 <style>
21391 \end_layout
21392
21393 \end_inset
21394
21395  block, so only the CSS itself need be included.
21396  Must end with 
21397 \begin_inset Flex Code
21398 status collapsed
21399
21400 \begin_layout Plain Layout
21401 EndHTMLStyle
21402 \end_layout
21403
21404 \end_inset
21405
21406 .
21407 \end_layout
21408
21409 \begin_layout Description
21410 \begin_inset Flex Code
21411 status collapsed
21412
21413 \begin_layout Plain Layout
21414 HTMLTag
21415 \end_layout
21416
21417 \end_inset
21418
21419  [
21420 \begin_inset Flex Code
21421 status collapsed
21422
21423 \begin_layout Plain Layout
21424 string
21425 \end_layout
21426
21427 \end_inset
21428
21429 ] The tag to be used for the main label, replacing 
21430 \begin_inset Flex Code
21431 status collapsed
21432
21433 \begin_layout Plain Layout
21434 tag
21435 \end_layout
21436
21437 \end_inset
21438
21439  in the examples above.
21440  Defaults to 
21441 \begin_inset Flex Code
21442 status collapsed
21443
21444 \begin_layout Plain Layout
21445 div
21446 \end_layout
21447
21448 \end_inset
21449
21450 .
21451 \end_layout
21452
21453 \begin_layout Description
21454 \begin_inset Flex Code
21455 status collapsed
21456
21457 \begin_layout Plain Layout
21458 HTMLTitle
21459 \end_layout
21460
21461 \end_inset
21462
21463  [
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468
21469 \emph on
21470 0
21471 \emph default
21472 ,1
21473 \end_layout
21474
21475 \end_inset
21476
21477 ] Marks this style as the one to be used to generate the 
21478 \begin_inset Flex Code
21479 status collapsed
21480
21481 \begin_layout Plain Layout
21482 <title>
21483 \end_layout
21484
21485 \end_inset
21486
21487  tag for the XHTML file.
21488  By default, it is false.
21489  The 
21490 \begin_inset Flex Code
21491 status collapsed
21492
21493 \begin_layout Plain Layout
21494 stdtitle.inc
21495 \end_layout
21496
21497 \end_inset
21498
21499  file sets it to true for the 
21500 \begin_inset Flex Code
21501 status collapsed
21502
21503 \begin_layout Plain Layout
21504 title
21505 \end_layout
21506
21507 \end_inset
21508
21509  environment.
21510  
21511 \end_layout
21512
21513 \begin_layout Subsection
21514 InsetLayout XHTML
21515 \end_layout
21516
21517 \begin_layout Standard
21518 The XHTML output of insets can also be controlled by information in layout
21519  files.
21520 \begin_inset Foot
21521 status collapsed
21522
21523 \begin_layout Plain Layout
21524 At present, this is true only for 
21525 \begin_inset Quotes eld
21526 \end_inset
21527
21528 text
21529 \begin_inset Quotes erd
21530 \end_inset
21531
21532  insets (insets you can type into) and is not true for 
21533 \begin_inset Quotes eld
21534 \end_inset
21535
21536 command
21537 \begin_inset Quotes erd
21538 \end_inset
21539
21540  insets (insets that are associated with dialog boxes).
21541 \end_layout
21542
21543 \end_inset
21544
21545  Here, too, \SpecialChar LyX
21546  tries to provide sensible defaults, and it constructs default
21547  CSS style rules.
21548  But everything can be customized.
21549 \end_layout
21550
21551 \begin_layout Standard
21552 The XHTML \SpecialChar LyX
21553  outputs for an inset has the following form:
21554 \end_layout
21555
21556 \begin_layout LyX-Code
21557 <tag attr=
21558 \begin_inset Quotes erd
21559 \end_inset
21560
21561 value
21562 \begin_inset Quotes erd
21563 \end_inset
21564
21565 >
21566 \end_layout
21567
21568 \begin_layout LyX-Code
21569 <labeltag>Label</labeltag>
21570 \end_layout
21571
21572 \begin_layout LyX-Code
21573 <innertag attr=
21574 \begin_inset Quotes erd
21575 \end_inset
21576
21577 value
21578 \begin_inset Quotes erd
21579 \end_inset
21580
21581 >Contents of the inset.</innertag>
21582 \end_layout
21583
21584 \begin_layout LyX-Code
21585 </tag>
21586 \end_layout
21587
21588 \begin_layout Standard
21589 If the inset permits multiple paragraphs—that is, if 
21590 \begin_inset Flex Code
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594 MultiPar
21595 \end_layout
21596
21597 \end_inset
21598
21599  is true—then the contents of the inset will itself be output as paragraphs
21600  formatted according to the styles used for those paragraphs (standard,
21601  quote, and the like).
21602  The label tag is of course omitted if the paragraph does not have a label
21603  and, at present, is always 
21604 \begin_inset Flex Code
21605 status collapsed
21606
21607 \begin_layout Plain Layout
21608 span
21609 \end_layout
21610
21611 \end_inset
21612
21613 .
21614  The inner tag is optional and, by default, does not appear.
21615 \end_layout
21616
21617 \begin_layout Standard
21618 The specific tags and attributes output for each inset can be controlled
21619  by means of the following layout tags.
21620 \end_layout
21621
21622 \begin_layout Description
21623 \begin_inset Flex Code
21624 status collapsed
21625
21626 \begin_layout Plain Layout
21627 HTMLAttr
21628 \end_layout
21629
21630 \end_inset
21631
21632  [
21633 \begin_inset Flex Code
21634 status collapsed
21635
21636 \begin_layout Plain Layout
21637 string
21638 \end_layout
21639
21640 \end_inset
21641
21642 ] Specifies attribute information to be output with the main tag.
21643  For example, 
21644 \begin_inset Quotes eld
21645 \end_inset
21646
21647
21648 \begin_inset Flex Code
21649 status collapsed
21650
21651 \begin_layout Plain Layout
21652 class=`myinset' onclick=`\SpecialChar ldots
21653 '
21654 \end_layout
21655
21656 \end_inset
21657
21658
21659 \begin_inset Quotes erd
21660 \end_inset
21661
21662 .
21663  By default, \SpecialChar LyX
21664  will output 
21665 \begin_inset Quotes eld
21666 \end_inset
21667
21668
21669 \begin_inset Flex Code
21670 status collapsed
21671
21672 \begin_layout Plain Layout
21673 class=`insetname'
21674 \end_layout
21675
21676 \end_inset
21677
21678
21679 \begin_inset Quotes erd
21680 \end_inset
21681
21682 , where 
21683 \begin_inset Flex Code
21684 status collapsed
21685
21686 \begin_layout Plain Layout
21687 insetname
21688 \end_layout
21689
21690 \end_inset
21691
21692  is the \SpecialChar LyX
21693  name of the inset, made lowercase and with non-alphanumeric characters
21694  converted to underscores, for example: footnote.
21695 \end_layout
21696
21697 \begin_layout Description
21698 \begin_inset Flex Code
21699 status collapsed
21700
21701 \begin_layout Plain Layout
21702 HTMLForceCSS
21703 \end_layout
21704
21705 \end_inset
21706
21707  [
21708 \begin_inset Flex Code
21709 status collapsed
21710
21711 \begin_layout Plain Layout
21712
21713 \emph on
21714 0
21715 \emph default
21716 ,1
21717 \end_layout
21718
21719 \end_inset
21720
21721 ] Whether to output the default CSS information \SpecialChar LyX
21722  generates for this layout,
21723  even if additional information is explicitly provided via 
21724 \begin_inset Flex Code
21725 status collapsed
21726
21727 \begin_layout Plain Layout
21728 HTMLStyle
21729 \end_layout
21730
21731 \end_inset
21732
21733 .
21734  Setting this to 
21735 \begin_inset Flex Code
21736 status collapsed
21737
21738 \begin_layout Plain Layout
21739 1
21740 \end_layout
21741
21742 \end_inset
21743
21744  allows you to alter or augment the generated CSS, rather than to override
21745  it completely.
21746  Default is 0.
21747 \end_layout
21748
21749 \begin_layout Description
21750 \begin_inset Flex Code
21751 status collapsed
21752
21753 \begin_layout Plain Layout
21754 HTMLInnerAttr
21755 \end_layout
21756
21757 \end_inset
21758
21759  [
21760 \begin_inset Flex Code
21761 status collapsed
21762
21763 \begin_layout Plain Layout
21764 string
21765 \end_layout
21766
21767 \end_inset
21768
21769 ] Attributes for the inner tag.
21770  Defaults to 
21771 \begin_inset Quotes eld
21772 \end_inset
21773
21774
21775 \begin_inset Flex Code
21776 status collapsed
21777
21778 \begin_layout Plain Layout
21779 class=`insetname_inner'
21780 \end_layout
21781
21782 \end_inset
21783
21784
21785 \begin_inset Quotes erd
21786 \end_inset
21787
21788 .
21789 \end_layout
21790
21791 \begin_layout Description
21792 \begin_inset Flex Code
21793 status collapsed
21794
21795 \begin_layout Plain Layout
21796 HTMLInnerTag
21797 \end_layout
21798
21799 \end_inset
21800
21801  [
21802 \begin_inset Flex Code
21803 status collapsed
21804
21805 \begin_layout Plain Layout
21806 string
21807 \end_layout
21808
21809 \end_inset
21810
21811 ] The inner tag, replacing 
21812 \begin_inset Flex Code
21813 status collapsed
21814
21815 \begin_layout Plain Layout
21816 innertag
21817 \end_layout
21818
21819 \end_inset
21820
21821  in the examples above.
21822  By default, there is none.
21823 \end_layout
21824
21825 \begin_layout Description
21826 \begin_inset Flex Code
21827 status collapsed
21828
21829 \begin_layout Plain Layout
21830 HTMLIsBlock
21831 \end_layout
21832
21833 \end_inset
21834
21835  [
21836 \begin_inset Flex Code
21837 status collapsed
21838
21839 \begin_layout Plain Layout
21840 0,
21841 \emph on
21842 1
21843 \end_layout
21844
21845 \end_inset
21846
21847 ] Whether this inset represents a standalone block of text (such as a footnote)
21848  or instead represents material that is included in the surrounding text
21849  (such as a branch).
21850  Defaults to 1.
21851 \end_layout
21852
21853 \begin_layout Description
21854 \begin_inset Flex Code
21855 status collapsed
21856
21857 \begin_layout Plain Layout
21858 HTMLLabel
21859 \end_layout
21860
21861 \end_inset
21862
21863  [
21864 \begin_inset Flex Code
21865 status collapsed
21866
21867 \begin_layout Plain Layout
21868 string
21869 \end_layout
21870
21871 \end_inset
21872
21873 ] A label for this inset, possibly including a reference to a counter.
21874  For example, for footnote, it might be: 
21875 \begin_inset Flex Code
21876 status collapsed
21877
21878 \begin_layout Plain Layout
21879
21880 \backslash
21881 arabic{footnote}
21882 \end_layout
21883
21884 \end_inset
21885
21886 .
21887  This is optional, and there is no default.
21888 \end_layout
21889
21890 \begin_layout Description
21891 \begin_inset Flex Code
21892 status collapsed
21893
21894 \begin_layout Plain Layout
21895 HTMLPreamble
21896 \end_layout
21897
21898 \end_inset
21899
21900  Information to be output in the 
21901 \begin_inset Flex Code
21902 status collapsed
21903
21904 \begin_layout Plain Layout
21905 <head>
21906 \end_layout
21907
21908 \end_inset
21909
21910  section when this style is used.
21911  This might, for example, be used to include a 
21912 \begin_inset Flex Code
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916 <script>
21917 \end_layout
21918
21919 \end_inset
21920
21921  block defining an 
21922 \begin_inset Flex Code
21923 status collapsed
21924
21925 \begin_layout Plain Layout
21926 onclick
21927 \end_layout
21928
21929 \end_inset
21930
21931  handler.
21932 \end_layout
21933
21934 \begin_layout Description
21935 \begin_inset Flex Code
21936 status collapsed
21937
21938 \begin_layout Plain Layout
21939 HTMLStyle
21940 \end_layout
21941
21942 \end_inset
21943
21944  CSS style information to be included when this style is used.
21945  Note that this will automatically be wrapped in a layout-generated 
21946 \begin_inset Flex Code
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950 <style>
21951 \end_layout
21952
21953 \end_inset
21954
21955  block, so only the CSS itself need be included.
21956 \end_layout
21957
21958 \begin_layout Description
21959 \begin_inset Flex Code
21960 status collapsed
21961
21962 \begin_layout Plain Layout
21963 HTMLTag
21964 \end_layout
21965
21966 \end_inset
21967
21968  [
21969 \begin_inset Flex Code
21970 status collapsed
21971
21972 \begin_layout Plain Layout
21973 string
21974 \end_layout
21975
21976 \end_inset
21977
21978 ] The tag to be used for the main label, replacing 
21979 \begin_inset Flex Code
21980 status collapsed
21981
21982 \begin_layout Plain Layout
21983 tag
21984 \end_layout
21985
21986 \end_inset
21987
21988  in the examples above.
21989  The default depends upon the setting of 
21990 \begin_inset Flex Code
21991 status collapsed
21992
21993 \begin_layout Plain Layout
21994 MultiPar
21995 \end_layout
21996
21997 \end_inset
21998
21999 : If 
22000 \begin_inset Flex Code
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004 MultiPar
22005 \end_layout
22006
22007 \end_inset
22008
22009  is true, the default is 
22010 \begin_inset Flex Code
22011 status collapsed
22012
22013 \begin_layout Plain Layout
22014 div
22015 \end_layout
22016
22017 \end_inset
22018
22019 ; if it is false, the default is 
22020 \begin_inset Flex Code
22021 status collapsed
22022
22023 \begin_layout Plain Layout
22024 span
22025 \end_layout
22026
22027 \end_inset
22028
22029 .
22030 \end_layout
22031
22032 \begin_layout Subsection
22033 Float XHTML
22034 \end_layout
22035
22036 \begin_layout Standard
22037 The XHTML output for floats too can be controlled by layout information.
22038  The output has the following form:
22039 \end_layout
22040
22041 \begin_layout LyX-Code
22042 <tag attr=
22043 \begin_inset Quotes erd
22044 \end_inset
22045
22046 value
22047 \begin_inset Quotes erd
22048 \end_inset
22049
22050 >
22051 \end_layout
22052
22053 \begin_layout LyX-Code
22054 Contents of the float.
22055 \end_layout
22056
22057 \begin_layout LyX-Code
22058 </tag>
22059 \end_layout
22060
22061 \begin_layout Standard
22062 The caption, if there is one, is a separate inset and will be output as
22063  such.
22064  Its appearance can be controlled via the InsetLayout for caption insets.
22065  
22066 \end_layout
22067
22068 \begin_layout Description
22069 \begin_inset Flex Code
22070 status collapsed
22071
22072 \begin_layout Plain Layout
22073 HTMLAttr
22074 \end_layout
22075
22076 \end_inset
22077
22078  [
22079 \begin_inset Flex Code
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 string
22084 \end_layout
22085
22086 \end_inset
22087
22088 ] Specifies attribute information to be output with the main tag.
22089  For example, 
22090 \begin_inset Quotes eld
22091 \end_inset
22092
22093
22094 \begin_inset Flex Code
22095 status collapsed
22096
22097 \begin_layout Plain Layout
22098 class=`myfloat' onclick=`\SpecialChar ldots
22099 '
22100 \end_layout
22101
22102 \end_inset
22103
22104
22105 \begin_inset Quotes erd
22106 \end_inset
22107
22108 .
22109  By default, \SpecialChar LyX
22110  will output 
22111 \begin_inset Quotes eld
22112 \end_inset
22113
22114
22115 \begin_inset Flex Code
22116 status collapsed
22117
22118 \begin_layout Plain Layout
22119 class=`float float-floattype'
22120 \end_layout
22121
22122 \end_inset
22123
22124
22125 \begin_inset Quotes erd
22126 \end_inset
22127
22128 , where 
22129 \begin_inset Flex Code
22130 status collapsed
22131
22132 \begin_layout Plain Layout
22133 floattype
22134 \end_layout
22135
22136 \end_inset
22137
22138  is \SpecialChar LyX
22139 's name for this type of float, as determined by the float declaration
22140  (see 
22141 \begin_inset CommandInset ref
22142 LatexCommand ref
22143 reference "sub:Floats"
22144
22145 \end_inset
22146
22147 ), though made lowercase and with non-alphanumeric characters converted
22148  to underscores, for example: float-table.
22149 \end_layout
22150
22151 \begin_layout Description
22152 \begin_inset Flex Code
22153 status collapsed
22154
22155 \begin_layout Plain Layout
22156 HTMLStyle
22157 \end_layout
22158
22159 \end_inset
22160
22161  CSS style information to be included when this float is used.
22162  Note that this will automatically be wrapped in a layout-generated 
22163 \begin_inset Flex Code
22164 status collapsed
22165
22166 \begin_layout Plain Layout
22167 <style>
22168 \end_layout
22169
22170 \end_inset
22171
22172  block, so only the CSS itself need be included.
22173 \end_layout
22174
22175 \begin_layout Description
22176 \begin_inset Flex Code
22177 status collapsed
22178
22179 \begin_layout Plain Layout
22180 HTMLTag
22181 \end_layout
22182
22183 \end_inset
22184
22185  [
22186 \begin_inset Flex Code
22187 status collapsed
22188
22189 \begin_layout Plain Layout
22190 string
22191 \end_layout
22192
22193 \end_inset
22194
22195 ] The tag to be used for this float, replacing 
22196 \begin_inset Quotes eld
22197 \end_inset
22198
22199
22200 \begin_inset Flex Code
22201 status collapsed
22202
22203 \begin_layout Plain Layout
22204 tag
22205 \end_layout
22206
22207 \end_inset
22208
22209
22210 \begin_inset Quotes erd
22211 \end_inset
22212
22213  in the example above.
22214  The default is 
22215 \begin_inset Flex Code
22216 status collapsed
22217
22218 \begin_layout Plain Layout
22219 div
22220 \end_layout
22221
22222 \end_inset
22223
22224  and will rarely need changing.
22225 \end_layout
22226
22227 \begin_layout Subsection
22228 Bibliography formatting
22229 \end_layout
22230
22231 \begin_layout Standard
22232 The bibliography can be formatted using 
22233 \begin_inset Flex Code
22234 status collapsed
22235
22236 \begin_layout Plain Layout
22237 CiteFormat
22238 \end_layout
22239
22240 \end_inset
22241
22242  blocks.
22243  See 
22244 \begin_inset CommandInset ref
22245 LatexCommand ref
22246 reference "sub:Citation-format-description"
22247
22248 \end_inset
22249
22250  for the details.
22251 \end_layout
22252
22253 \begin_layout Subsection
22254 \SpecialChar LyX
22255 -generated CSS
22256 \end_layout
22257
22258 \begin_layout Standard
22259 We have several times mentioned that \SpecialChar LyX
22260  will generate default CSS style rules
22261  for both insets and paragraph styles, based upon the other layout information
22262  that is provided.
22263  In this section, we shall say a word about which layout information \SpecialChar LyX
22264  uses
22265  and how.
22266 \end_layout
22267
22268 \begin_layout Standard
22269 At present, \SpecialChar LyX
22270  auto-generates CSS only for font information, making use of
22271  the 
22272 \begin_inset Flex Code
22273 status collapsed
22274
22275 \begin_layout Plain Layout
22276 Family
22277 \end_layout
22278
22279 \end_inset
22280
22281
22282 \begin_inset Flex Code
22283 status collapsed
22284
22285 \begin_layout Plain Layout
22286 Series
22287 \end_layout
22288
22289 \end_inset
22290
22291
22292 \begin_inset Flex Code
22293 status collapsed
22294
22295 \begin_layout Plain Layout
22296 Shape
22297 \end_layout
22298
22299 \end_inset
22300
22301 , and 
22302 \begin_inset Flex Code
22303 status collapsed
22304
22305 \begin_layout Plain Layout
22306 Size
22307 \end_layout
22308
22309 \end_inset
22310
22311  specified in the 
22312 \begin_inset Flex Code
22313 status collapsed
22314
22315 \begin_layout Plain Layout
22316 Font
22317 \end_layout
22318
22319 \end_inset
22320
22321  declaration (see 
22322 \begin_inset CommandInset ref
22323 LatexCommand ref
22324 reference "sub:Font-description"
22325
22326 \end_inset
22327
22328 ).
22329  The translation is mostly straightforward and obvious.
22330  For example, 
22331 \begin_inset Quotes eld
22332 \end_inset
22333
22334
22335 \begin_inset Flex Code
22336 status collapsed
22337
22338 \begin_layout Plain Layout
22339 Family Sans
22340 \end_layout
22341
22342 \end_inset
22343
22344
22345 \begin_inset Quotes erd
22346 \end_inset
22347
22348  becomes 
22349 \begin_inset Quotes eld
22350 \end_inset
22351
22352
22353 \begin_inset Flex Code
22354 status collapsed
22355
22356 \begin_layout Plain Layout
22357 font-family: sans-serif;
22358 \end_layout
22359
22360 \end_inset
22361
22362
22363 \begin_inset Quotes erd
22364 \end_inset
22365
22366 .
22367  The correspondence of \SpecialChar LyX
22368  sizes and CSS sizes is a little less obvious but
22369  nonetheless intuitive.
22370  See the 
22371 \begin_inset Flex Code
22372 status collapsed
22373
22374 \begin_layout Plain Layout
22375 getSizeCSS()
22376 \end_layout
22377
22378 \end_inset
22379
22380  function in 
22381 \begin_inset Flex URL
22382 status collapsed
22383
22384 \begin_layout Plain Layout
22385
22386 src/FontInfo.cpp
22387 \end_layout
22388
22389 \end_inset
22390
22391  for the details.
22392 \end_layout
22393
22394 \begin_layout Chapter
22395 Including External Material
22396 \begin_inset CommandInset label
22397 LatexCommand label
22398 name "chap:Including-External-Material"
22399
22400 \end_inset
22401
22402
22403 \end_layout
22404
22405 \begin_layout Standard
22406 \begin_inset Box Shadowbox
22407 position "t"
22408 hor_pos "c"
22409 has_inner_box 1
22410 inner_pos "t"
22411 use_parbox 0
22412 use_makebox 0
22413 width "100col%"
22414 special "none"
22415 height "1in"
22416 height_special "totalheight"
22417 status open
22418
22419 \begin_layout Plain Layout
22420 WARNING: This portion of the documentation has not been updated for some
22421  time.
22422  We certainly hope that it is still accurate, but there are no guarantees.
22423 \end_layout
22424
22425 \end_inset
22426
22427
22428 \end_layout
22429
22430 \begin_layout Standard
22431 The use of material from sources external to \SpecialChar LyX
22432  is covered in detail in the
22433  
22434 \emph on
22435 Embedded Objects
22436 \emph default
22437  manual.
22438  This part of the manual covers what needs to happen behind the scenes for
22439  new sorts of material to be included.
22440 \end_layout
22441
22442 \begin_layout Section
22443 How does it work?
22444 \end_layout
22445
22446 \begin_layout Standard
22447 The external material feature is based on the concept of a 
22448 \emph on
22449 template
22450 \emph default
22451 .
22452  A template is a specification of how \SpecialChar LyX
22453  should interface with a certain kind
22454  of material.
22455  As bundled, \SpecialChar LyX
22456  comes with predefined templates for Xfig figures, various
22457  raster format images, chess diagrams, and LilyPond music notation.
22458  You can check the actual list by using the menu 
22459 \begin_inset Flex MenuItem
22460 status collapsed
22461
22462 \begin_layout Plain Layout
22463 Insert\SpecialChar menuseparator
22464 File\SpecialChar menuseparator
22465 External Material
22466 \end_layout
22467
22468 \end_inset
22469
22470 .
22471  Furthermore, it is possible to roll your own template to support a specific
22472  kind of material.
22473  Later we'll describe in more detail what is involved, and hopefully you
22474  will submit all the templates you create so we can include them in a later
22475  \SpecialChar LyX
22476  version.
22477 \end_layout
22478
22479 \begin_layout Standard
22480 Another basic idea of the external material feature is to distinguish between
22481  the original file that serves as a base for final material and the produced
22482  file that is included in your exported or printed document.
22483  For example, consider the case of a figure produced with 
22484 \begin_inset Flex Code
22485 status collapsed
22486
22487 \begin_layout Plain Layout
22488 Xfig
22489 \end_layout
22490
22491 \end_inset
22492
22493 .
22494  The Xfig application itself works on an original file with the 
22495 \begin_inset Flex Code
22496 status collapsed
22497
22498 \begin_layout Plain Layout
22499 .fig
22500 \end_layout
22501
22502 \end_inset
22503
22504  extension.
22505  Within Xfig, you create and change your figure, and when you are done,
22506  you save the 
22507 \begin_inset Flex Code
22508 status collapsed
22509
22510 \begin_layout Plain Layout
22511 fig
22512 \end_layout
22513
22514 \end_inset
22515
22516 -file.
22517  When you want to include the figure in your document, you invoke 
22518 \begin_inset Flex Code
22519 status collapsed
22520
22521 \begin_layout Plain Layout
22522 transfig
22523 \end_layout
22524
22525 \end_inset
22526
22527  in order to create a PostScript file that can readily be included in your
22528  \SpecialChar LaTeX
22529  file.
22530  In this case, the 
22531 \begin_inset Flex Code
22532 status collapsed
22533
22534 \begin_layout Plain Layout
22535 .fig
22536 \end_layout
22537
22538 \end_inset
22539
22540  file is the original file, and the PostScript file is the produced file.
22541 \end_layout
22542
22543 \begin_layout Standard
22544 This distinction is important in order to allow updating of the material
22545  while you are in the process of writing the document.
22546  Furthermore, it provides us with the flexibility that is needed to support
22547  multiple export formats.
22548  For instance, in the case of a plain text file, it is not exactly an award-winn
22549 ing idea to include the figure as raw PostScript.
22550  Instead, you would either prefer to just include a reference to the figure
22551  or try to invoke some graphics to ASCII converter to make the final result
22552  look similar to the real graphics.
22553  The external material management allows you to do this, because it is parametri
22554 zed on the different export formats that \SpecialChar LyX
22555  supports.
22556 \end_layout
22557
22558 \begin_layout Standard
22559 Besides supporting the production of different products according to the
22560  exported format, it supports tight integration with editing and viewing
22561  applications.
22562  In the case of an Xfig figure, you are able to invoke Xfig on the original
22563  file with a single click from within the external material dialog in \SpecialChar LyX
22564 ,
22565  and also preview the produced PostScript file with Ghostview with another
22566  click.
22567  No more fiddling around with the command line and/or file browsers to locate
22568  and manipulate the original or produced files.
22569  In this way, you are finally able to take full advantage of the many different
22570  applications that are relevant to use when you write your documents, and
22571  ultimately be more productive.
22572 \end_layout
22573
22574 \begin_layout Section
22575 The external template configuration file
22576 \end_layout
22577
22578 \begin_layout Standard
22579 It is relatively easy to add custom external template definitions to \SpecialChar LyX
22580 .
22581  However, be aware that doing this in an careless manner most probably 
22582 \emph on
22583 will
22584 \emph default
22585  introduce an easily exploitable security hole.
22586  So before you do this, please read the discussion about security in 
22587 \begin_inset CommandInset ref
22588 LatexCommand ref
22589 reference "sec:Security-discussion"
22590
22591 \end_inset
22592
22593 .
22594 \end_layout
22595
22596 \begin_layout Standard
22597 Having said that, we encourage you to submit any interesting templates that
22598  you create.
22599  
22600 \end_layout
22601
22602 \begin_layout Standard
22603 The external templates are defined in the 
22604 \begin_inset Flex Code
22605 status collapsed
22606
22607 \begin_layout Plain Layout
22608 \SpecialChar LyX
22609 Dir/lib/external_templates
22610 \end_layout
22611
22612 \end_inset
22613
22614  file.
22615  You can place your own version in 
22616 \begin_inset Flex Code
22617 status collapsed
22618
22619 \begin_layout Plain Layout
22620 UserDir/external_templates
22621 \end_layout
22622
22623 \end_inset
22624
22625 .
22626 \end_layout
22627
22628 \begin_layout Standard
22629 A typical template looks like this:
22630 \end_layout
22631
22632 \begin_layout LyX-Code
22633 Template XFig
22634 \end_layout
22635
22636 \begin_layout LyX-Code
22637 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22638 \end_layout
22639
22640 \begin_layout LyX-Code
22641 HelpText
22642 \end_layout
22643
22644 \begin_layout LyX-Code
22645 An XFig figure.
22646 \end_layout
22647
22648 \begin_layout LyX-Code
22649 HelpTextEnd
22650 \end_layout
22651
22652 \begin_layout LyX-Code
22653 InputFormat fig
22654 \end_layout
22655
22656 \begin_layout LyX-Code
22657 FileFilter "*.fig"
22658 \end_layout
22659
22660 \begin_layout LyX-Code
22661 AutomaticProduction true
22662 \end_layout
22663
22664 \begin_layout LyX-Code
22665 Transform Rotate
22666 \end_layout
22667
22668 \begin_layout LyX-Code
22669 Transform Resize
22670 \end_layout
22671
22672 \begin_layout LyX-Code
22673 Format \SpecialChar LaTeX
22674
22675 \end_layout
22676
22677 \begin_layout LyX-Code
22678 TransformCommand Rotate RotationLatexCommand
22679 \end_layout
22680
22681 \begin_layout LyX-Code
22682 TransformCommand Resize ResizeLatexCommand
22683 \end_layout
22684
22685 \begin_layout LyX-Code
22686 Product "$$RotateFront$$ResizeFront
22687 \end_layout
22688
22689 \begin_layout LyX-Code
22690          
22691 \backslash
22692
22693 \backslash
22694 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22695 \end_layout
22696
22697 \begin_layout LyX-Code
22698          $$ResizeBack$$RotateBack"
22699 \end_layout
22700
22701 \begin_layout LyX-Code
22702 UpdateFormat pstex
22703 \end_layout
22704
22705 \begin_layout LyX-Code
22706 UpdateResult "$$AbsPath$$Basename.pstex_t"
22707 \end_layout
22708
22709 \begin_layout LyX-Code
22710 Requirement "graphicx"
22711 \end_layout
22712
22713 \begin_layout LyX-Code
22714 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22715 \end_layout
22716
22717 \begin_layout LyX-Code
22718 ReferencedFile latex "$$AbsPath$$Basename.eps"
22719 \end_layout
22720
22721 \begin_layout LyX-Code
22722 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22723 \end_layout
22724
22725 \begin_layout LyX-Code
22726 FormatEnd
22727 \end_layout
22728
22729 \begin_layout LyX-Code
22730 Format PDF\SpecialChar LaTeX
22731
22732 \end_layout
22733
22734 \begin_layout LyX-Code
22735 TransformCommand Rotate RotationLatexCommand
22736 \end_layout
22737
22738 \begin_layout LyX-Code
22739 TransformCommand Resize ResizeLatexCommand
22740 \end_layout
22741
22742 \begin_layout LyX-Code
22743 Product "$$RotateFront$$ResizeFront
22744 \end_layout
22745
22746 \begin_layout LyX-Code
22747          
22748 \backslash
22749
22750 \backslash
22751 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22752 \end_layout
22753
22754 \begin_layout LyX-Code
22755          $$ResizeBack$$RotateBack"
22756 \end_layout
22757
22758 \begin_layout LyX-Code
22759 UpdateFormat pdftex
22760 \end_layout
22761
22762 \begin_layout LyX-Code
22763 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22764 \end_layout
22765
22766 \begin_layout LyX-Code
22767 Requirement "graphicx"
22768 \end_layout
22769
22770 \begin_layout LyX-Code
22771 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22772 \end_layout
22773
22774 \begin_layout LyX-Code
22775 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22776 \end_layout
22777
22778 \begin_layout LyX-Code
22779 FormatEnd
22780 \end_layout
22781
22782 \begin_layout LyX-Code
22783 Format Ascii
22784 \end_layout
22785
22786 \begin_layout LyX-Code
22787 Product "$$Contents(
22788 \backslash
22789 "$$AbsPath$$Basename.asc
22790 \backslash
22791 ")"
22792 \end_layout
22793
22794 \begin_layout LyX-Code
22795 UpdateFormat asciixfig
22796 \end_layout
22797
22798 \begin_layout LyX-Code
22799 UpdateResult "$$AbsPath$$Basename.asc"
22800 \end_layout
22801
22802 \begin_layout LyX-Code
22803 FormatEnd
22804 \end_layout
22805
22806 \begin_layout LyX-Code
22807 Format DocBook
22808 \end_layout
22809
22810 \begin_layout LyX-Code
22811 Product "<graphic fileref=
22812 \backslash
22813 "$$AbsOrRelPathMaster$$Basename.eps
22814 \backslash
22815 ">
22816 \end_layout
22817
22818 \begin_layout LyX-Code
22819          </graphic>"
22820 \end_layout
22821
22822 \begin_layout LyX-Code
22823 UpdateFormat eps
22824 \end_layout
22825
22826 \begin_layout LyX-Code
22827 UpdateResult "$$AbsPath$$Basename.eps"
22828 \end_layout
22829
22830 \begin_layout LyX-Code
22831 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22832 \end_layout
22833
22834 \begin_layout LyX-Code
22835 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22836 \end_layout
22837
22838 \begin_layout LyX-Code
22839 FormatEnd
22840 \end_layout
22841
22842 \begin_layout LyX-Code
22843 Product "[XFig: $$FName]"
22844 \end_layout
22845
22846 \begin_layout LyX-Code
22847 FormatEnd
22848 \end_layout
22849
22850 \begin_layout LyX-Code
22851 TemplateEnd
22852 \end_layout
22853
22854 \begin_layout Standard
22855 As you can see, the template is enclosed in 
22856 \begin_inset Flex Code
22857 status collapsed
22858
22859 \begin_layout Plain Layout
22860 Template
22861 \end_layout
22862
22863 \end_inset
22864
22865  \SpecialChar ldots
22866  
22867 \begin_inset Flex Code
22868 status collapsed
22869
22870 \begin_layout Plain Layout
22871 TemplateEnd
22872 \end_layout
22873
22874 \end_inset
22875
22876 .
22877  It contains a header specifying some general settings and, for each supported
22878  primary document file format, a section 
22879 \begin_inset Flex Code
22880 status collapsed
22881
22882 \begin_layout Plain Layout
22883 Format
22884 \end_layout
22885
22886 \end_inset
22887
22888  \SpecialChar ldots
22889  
22890 \begin_inset Flex Code
22891 status collapsed
22892
22893 \begin_layout Plain Layout
22894 FormatEnd
22895 \end_layout
22896
22897 \end_inset
22898
22899 .
22900 \end_layout
22901
22902 \begin_layout Subsection
22903 The template header
22904 \end_layout
22905
22906 \begin_layout Description
22907 \begin_inset Flex Code
22908 status collapsed
22909
22910 \begin_layout Plain Layout
22911 AutomaticProduction
22912 \begin_inset space ~
22913 \end_inset
22914
22915 true|false
22916 \end_layout
22917
22918 \end_inset
22919
22920  Whether the file represented by the template must be generated by \SpecialChar LyX
22921 .
22922  This command must occur exactly once.
22923 \end_layout
22924
22925 \begin_layout Description
22926 \begin_inset Flex Code
22927 status collapsed
22928
22929 \begin_layout Plain Layout
22930 FileFilter
22931 \begin_inset space ~
22932 \end_inset
22933
22934 <pattern>
22935 \end_layout
22936
22937 \end_inset
22938
22939  A glob pattern that is used in the file dialog to filter out the desired
22940  files.
22941  If there is more than one possible file extension (e.
22942 \begin_inset space \thinspace{}
22943 \end_inset
22944
22945 g.
22946 \begin_inset space \space{}
22947 \end_inset
22948
22949 tgif has 
22950 \begin_inset Flex Code
22951 status collapsed
22952
22953 \begin_layout Plain Layout
22954 .obj
22955 \end_layout
22956
22957 \end_inset
22958
22959  and 
22960 \begin_inset Flex Code
22961 status collapsed
22962
22963 \begin_layout Plain Layout
22964 .tgo
22965 \end_layout
22966
22967 \end_inset
22968
22969 ), use something like 
22970 \begin_inset Flex Code
22971 status collapsed
22972
22973 \begin_layout Plain Layout
22974 "*.{obj,tgo}"
22975 \end_layout
22976
22977 \end_inset
22978
22979 .
22980  This command must occur exactly once.
22981 \end_layout
22982
22983 \begin_layout Description
22984 \begin_inset Flex Code
22985 status collapsed
22986
22987 \begin_layout Plain Layout
22988 GuiName
22989 \begin_inset space ~
22990 \end_inset
22991
22992 <guiname>
22993 \end_layout
22994
22995 \end_inset
22996
22997  The text that is displayed on the button.
22998  This command must occur exactly once.
22999 \end_layout
23000
23001 \begin_layout Description
23002 \begin_inset Flex Code
23003 status collapsed
23004
23005 \begin_layout Plain Layout
23006 HelpText
23007 \begin_inset space ~
23008 \end_inset
23009
23010 <text>
23011 \begin_inset space ~
23012 \end_inset
23013
23014 HelpTextEnd
23015 \end_layout
23016
23017 \end_inset
23018
23019  The help text that is used in the External dialog.
23020  Provide enough information to explain to the user just what the template
23021  can provide him with.
23022  This command must occur exactly once.
23023 \end_layout
23024
23025 \begin_layout Description
23026 \begin_inset Flex Code
23027 status collapsed
23028
23029 \begin_layout Plain Layout
23030 InputFormat
23031 \begin_inset space ~
23032 \end_inset
23033
23034 <format>
23035 \end_layout
23036
23037 \end_inset
23038
23039  The file format of the original file.
23040  This must be the name of a format that is known to \SpecialChar LyX
23041  (see 
23042 \begin_inset CommandInset ref
23043 LatexCommand ref
23044 reference "sec:Formats"
23045
23046 \end_inset
23047
23048 ).
23049  Use 
23050 \begin_inset Quotes eld
23051 \end_inset
23052
23053
23054 \begin_inset Flex Code
23055 status collapsed
23056
23057 \begin_layout Plain Layout
23058 *
23059 \end_layout
23060
23061 \end_inset
23062
23063
23064 \begin_inset Quotes erd
23065 \end_inset
23066
23067  if the template can handle original files of more than one format.
23068  \SpecialChar LyX
23069  will attempt to interrogate the file itself in order to deduce its format
23070  in this case.
23071  This command must occur exactly once.
23072 \end_layout
23073
23074 \begin_layout Description
23075 \begin_inset Flex Code
23076 status collapsed
23077
23078 \begin_layout Plain Layout
23079 Template
23080 \begin_inset space ~
23081 \end_inset
23082
23083 <id>
23084 \end_layout
23085
23086 \end_inset
23087
23088  A unique name for the template.
23089  It must not contain substitution macros (see below).
23090 \end_layout
23091
23092 \begin_layout Description
23093 \begin_inset Flex Code
23094 status collapsed
23095
23096 \begin_layout Plain Layout
23097 Transform
23098 \begin_inset space ~
23099 \end_inset
23100
23101 Rotate|Resize|Clip|Extra
23102 \end_layout
23103
23104 \end_inset
23105
23106  This command specifies which transformations are supported by this template.
23107  It may occur zero or more times.
23108  This command enables the corresponding tabs in the external dialog.
23109  Each 
23110 \begin_inset Flex Code
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114 Transform
23115 \end_layout
23116
23117 \end_inset
23118
23119  command must have either a corresponding 
23120 \begin_inset Flex Code
23121 status collapsed
23122
23123 \begin_layout Plain Layout
23124 TransformCommand
23125 \end_layout
23126
23127 \end_inset
23128
23129  or a 
23130 \begin_inset Flex Code
23131 status collapsed
23132
23133 \begin_layout Plain Layout
23134 TransformOption
23135 \end_layout
23136
23137 \end_inset
23138
23139  command in the 
23140 \begin_inset Flex Code
23141 status collapsed
23142
23143 \begin_layout Plain Layout
23144 Format
23145 \end_layout
23146
23147 \end_inset
23148
23149  section.
23150  Otherwise the transformation will not be supported by that format.
23151 \end_layout
23152
23153 \begin_layout Subsection
23154 The Format section
23155 \end_layout
23156
23157 \begin_layout Description
23158 \begin_inset Flex Code
23159 status collapsed
23160
23161 \begin_layout Plain Layout
23162 Format
23163 \begin_inset space ~
23164 \end_inset
23165
23166 \SpecialChar LaTeX
23167 |PDF\SpecialChar LaTeX
23168 |PlainText|DocBook
23169 \end_layout
23170
23171 \end_inset
23172
23173  The primary document file format that this format definition is for.
23174  Not every template has a sensible representation in all document file formats.
23175  Please define nevertheless a 
23176 \begin_inset Flex Code
23177 status collapsed
23178
23179 \begin_layout Plain Layout
23180 Format
23181 \end_layout
23182
23183 \end_inset
23184
23185  section for all templates.
23186  Use a dummy text when no representation is available.
23187  Then you can at least see a reference to the external material in the exported
23188  document.
23189 \end_layout
23190
23191 \begin_layout Description
23192 \begin_inset Flex Code
23193 status collapsed
23194
23195 \begin_layout Plain Layout
23196 Option
23197 \begin_inset space ~
23198 \end_inset
23199
23200 <name>
23201 \begin_inset space ~
23202 \end_inset
23203
23204 <value>
23205 \end_layout
23206
23207 \end_inset
23208
23209  This command defines an additional macro 
23210 \begin_inset Flex Code
23211 status collapsed
23212
23213 \begin_layout Plain Layout
23214 $$<name>
23215 \end_layout
23216
23217 \end_inset
23218
23219  for substitution in 
23220 \begin_inset Flex Code
23221 status collapsed
23222
23223 \begin_layout Plain Layout
23224 Product
23225 \end_layout
23226
23227 \end_inset
23228
23229 .
23230  
23231 \begin_inset Flex Code
23232 status collapsed
23233
23234 \begin_layout Plain Layout
23235 <value>
23236 \end_layout
23237
23238 \end_inset
23239
23240  itself may contain substitution macros.
23241  The advantage over using 
23242 \begin_inset Flex Code
23243 status collapsed
23244
23245 \begin_layout Plain Layout
23246 <value>
23247 \end_layout
23248
23249 \end_inset
23250
23251  directly in 
23252 \begin_inset Flex Code
23253 status collapsed
23254
23255 \begin_layout Plain Layout
23256 Product
23257 \end_layout
23258
23259 \end_inset
23260
23261  is that the substituted value of 
23262 \begin_inset Flex Code
23263 status collapsed
23264
23265 \begin_layout Plain Layout
23266 $$<name>
23267 \end_layout
23268
23269 \end_inset
23270
23271  is sanitized so that it is a valid optional argument in the document format.
23272  This command may occur zero or more times.
23273 \end_layout
23274
23275 \begin_layout Description
23276 \begin_inset Flex Code
23277 status collapsed
23278
23279 \begin_layout Plain Layout
23280 Product
23281 \begin_inset space ~
23282 \end_inset
23283
23284 <text>
23285 \end_layout
23286
23287 \end_inset
23288
23289  The text that is inserted in the exported document.
23290  This is actually the most important command and can be quite complex.
23291  This command must occur exactly once.
23292 \end_layout
23293
23294 \begin_layout Description
23295 \begin_inset Flex Code
23296 status collapsed
23297
23298 \begin_layout Plain Layout
23299 Preamble
23300 \begin_inset space ~
23301 \end_inset
23302
23303 <name>
23304 \end_layout
23305
23306 \end_inset
23307
23308  This command specifies a preamble snippet that will be included in the
23309  \SpecialChar LaTeX
23310  preamble.
23311  It has to be defined using 
23312 \begin_inset Flex Code
23313 status collapsed
23314
23315 \begin_layout Plain Layout
23316 PreambleDef
23317 \end_layout
23318
23319 \end_inset
23320
23321  \SpecialChar ldots
23322  
23323 \begin_inset Flex Code
23324 status collapsed
23325
23326 \begin_layout Plain Layout
23327 PreambleDefEnd
23328 \end_layout
23329
23330 \end_inset
23331
23332 .
23333  This command may occur zero or more times.
23334 \end_layout
23335
23336 \begin_layout Description
23337 \begin_inset Flex Code
23338 status collapsed
23339
23340 \begin_layout Plain Layout
23341 ReferencedFile
23342 \begin_inset space ~
23343 \end_inset
23344
23345 <format>
23346 \begin_inset space ~
23347 \end_inset
23348
23349 <filename>
23350 \end_layout
23351
23352 \end_inset
23353
23354  This command denotes files that are created by the conversion process and
23355  are needed for a particular export format.
23356  If the filename is relative, it is interpreted relative to the master document.
23357  This command may be given zero or more times.
23358 \end_layout
23359
23360 \begin_layout Description
23361 \begin_inset Flex Code
23362 status collapsed
23363
23364 \begin_layout Plain Layout
23365 Requirement
23366 \begin_inset space ~
23367 \end_inset
23368
23369 <package>
23370 \end_layout
23371
23372 \end_inset
23373
23374  The name of a required \SpecialChar LaTeX
23375  package.
23376  The package is included via 
23377 \begin_inset Flex Code
23378 status collapsed
23379
23380 \begin_layout Plain Layout
23381
23382 \backslash
23383 usepackage{}
23384 \end_layout
23385
23386 \end_inset
23387
23388  in the \SpecialChar LaTeX
23389  preamble.
23390  This command may occur zero or more times.
23391 \end_layout
23392
23393 \begin_layout Description
23394 \begin_inset Flex Code
23395 status collapsed
23396
23397 \begin_layout Plain Layout
23398 TransformCommand
23399 \begin_inset space ~
23400 \end_inset
23401
23402 Rotate
23403 \begin_inset space ~
23404 \end_inset
23405
23406 RotationLatexCommand
23407 \end_layout
23408
23409 \end_inset
23410
23411  This command specifies that the built in \SpecialChar LaTeX
23412  command should be used for rotation.
23413  This command may occur once or not at all.
23414 \end_layout
23415
23416 \begin_layout Description
23417 \begin_inset Flex Code
23418 status collapsed
23419
23420 \begin_layout Plain Layout
23421 TransformCommand
23422 \begin_inset space ~
23423 \end_inset
23424
23425 Resize
23426 \begin_inset space ~
23427 \end_inset
23428
23429 ResizeLatexCommand
23430 \end_layout
23431
23432 \end_inset
23433
23434  This command specifies that the built in \SpecialChar LaTeX
23435  command should be used for resizing.
23436  This command may occur once or not at all.
23437 \end_layout
23438
23439 \begin_layout Description
23440 \begin_inset Flex Code
23441 status collapsed
23442
23443 \begin_layout Plain Layout
23444 TransformOption
23445 \begin_inset space ~
23446 \end_inset
23447
23448 Rotate
23449 \begin_inset space ~
23450 \end_inset
23451
23452 RotationLatexOption
23453 \end_layout
23454
23455 \end_inset
23456
23457  This command specifies that rotation is done via an optional argument.
23458  This command may occur once or not at all.
23459 \end_layout
23460
23461 \begin_layout Description
23462 \begin_inset Flex Code
23463 status collapsed
23464
23465 \begin_layout Plain Layout
23466 TransformOption
23467 \begin_inset space ~
23468 \end_inset
23469
23470 Resize
23471 \begin_inset space ~
23472 \end_inset
23473
23474 ResizeLatexOption
23475 \end_layout
23476
23477 \end_inset
23478
23479  This command specifies that resizing is done via an optional argument.
23480  This command may occur once or not at all.
23481 \end_layout
23482
23483 \begin_layout Description
23484 \begin_inset Flex Code
23485 status collapsed
23486
23487 \begin_layout Plain Layout
23488 TransformOption
23489 \begin_inset space ~
23490 \end_inset
23491
23492 Clip
23493 \begin_inset space ~
23494 \end_inset
23495
23496 ClipLatexOption
23497 \end_layout
23498
23499 \end_inset
23500
23501  This command specifies that clipping is done via an optional argument.
23502  This command may occur once or not at all.
23503 \end_layout
23504
23505 \begin_layout Description
23506 \begin_inset Flex Code
23507 status collapsed
23508
23509 \begin_layout Plain Layout
23510 TransformOption
23511 \begin_inset space ~
23512 \end_inset
23513
23514 Extra
23515 \begin_inset space ~
23516 \end_inset
23517
23518 ExtraLatexOption
23519 \end_layout
23520
23521 \end_inset
23522
23523  This command specifies that an extra optional argument is used.
23524  This command may occur once or not at all.
23525 \end_layout
23526
23527 \begin_layout Description
23528 \begin_inset Flex Code
23529 status collapsed
23530
23531 \begin_layout Plain Layout
23532 UpdateFormat
23533 \begin_inset space ~
23534 \end_inset
23535
23536 <format>
23537 \end_layout
23538
23539 \end_inset
23540
23541  The file format of the converted file.
23542  This must be the name of a format that is known to \SpecialChar LyX
23543  (see the 
23544 \begin_inset Flex MenuItem
23545 status collapsed
23546
23547 \begin_layout Plain Layout
23548 Tools\SpecialChar menuseparator
23549 Preferences\SpecialChar menuseparator
23550 File Handling\SpecialChar menuseparator
23551 File Format
23552 \end_layout
23553
23554 \end_inset
23555
23556  dialog).
23557  This command must occur exactly once.
23558  If the resulting file format is PDF, you need to specify the format 
23559 \begin_inset Flex Code
23560 status collapsed
23561
23562 \begin_layout Plain Layout
23563 pdf6
23564 \end_layout
23565
23566 \end_inset
23567
23568 .
23569  This is the PDF format used for including graphics.
23570  The other defined PDF formats are for document export.
23571 \end_layout
23572
23573 \begin_layout Description
23574 \begin_inset Flex Code
23575 status collapsed
23576
23577 \begin_layout Plain Layout
23578 UpdateResult
23579 \begin_inset space ~
23580 \end_inset
23581
23582 <filename>
23583 \end_layout
23584
23585 \end_inset
23586
23587  The file name of the converted file.
23588  The file name must be absolute.
23589  This command must occur exactly once.
23590 \end_layout
23591
23592 \begin_layout Subsection
23593 Preamble definitions
23594 \end_layout
23595
23596 \begin_layout Standard
23597 The external template configuration file may contain additional preamble
23598  definitions enclosed by 
23599 \begin_inset Flex Code
23600 status collapsed
23601
23602 \begin_layout Plain Layout
23603 PreambleDef
23604 \end_layout
23605
23606 \end_inset
23607
23608  \SpecialChar ldots
23609  
23610 \begin_inset Flex Code
23611 status collapsed
23612
23613 \begin_layout Plain Layout
23614 PreambleDefEnd
23615 \end_layout
23616
23617 \end_inset
23618
23619 .
23620  They can be used by the templates in the 
23621 \begin_inset Flex Code
23622 status collapsed
23623
23624 \begin_layout Plain Layout
23625 Format
23626 \end_layout
23627
23628 \end_inset
23629
23630  section.
23631 \end_layout
23632
23633 \begin_layout Section
23634 The substitution mechanism
23635 \end_layout
23636
23637 \begin_layout Standard
23638 When the external material facility invokes an external program, it is done
23639  on the basis of a command defined in the template configuration file.
23640  These commands can contain various macros that are expanded before execution.
23641  Execution always take place in the directory of the containing document.
23642 \end_layout
23643
23644 \begin_layout Standard
23645 Also, whenever external material is to be displayed, the name will be produced
23646  by the substitution mechanism, and most other commands in the template
23647  definition support substitution as well.
23648 \end_layout
23649
23650 \begin_layout Standard
23651 The available macros are the following:
23652 \end_layout
23653
23654 \begin_layout Description
23655 \begin_inset Flex Code
23656 status collapsed
23657
23658 \begin_layout Plain Layout
23659 $$AbsOrRelPathMaster
23660 \end_layout
23661
23662 \end_inset
23663
23664  The file path, absolute or relative to the master \SpecialChar LyX
23665  document.
23666 \end_layout
23667
23668 \begin_layout Description
23669 \begin_inset Flex Code
23670 status collapsed
23671
23672 \begin_layout Plain Layout
23673 $$AbsOrRelPathParent
23674 \end_layout
23675
23676 \end_inset
23677
23678  The file path, absolute or relative to the \SpecialChar LyX
23679  document.
23680 \end_layout
23681
23682 \begin_layout Description
23683 \begin_inset Flex Code
23684 status collapsed
23685
23686 \begin_layout Plain Layout
23687 $$AbsPath
23688 \end_layout
23689
23690 \end_inset
23691
23692  The absolute file path.
23693 \end_layout
23694
23695 \begin_layout Description
23696 \begin_inset Flex Code
23697 status collapsed
23698
23699 \begin_layout Plain Layout
23700 $$Basename
23701 \end_layout
23702
23703 \end_inset
23704
23705  The filename without path and without the extension.
23706 \end_layout
23707
23708 \begin_layout Description
23709 \begin_inset Flex Code
23710 status collapsed
23711
23712 \begin_layout Plain Layout
23713 $$Contents(
23714 \begin_inset Quotes eld
23715 \end_inset
23716
23717 filename.ext
23718 \begin_inset Quotes erd
23719 \end_inset
23720
23721 )
23722 \end_layout
23723
23724 \end_inset
23725
23726  This macro will expand to the contents of the file with the name 
23727 \begin_inset Flex Code
23728 status collapsed
23729
23730 \begin_layout Plain Layout
23731 filename.ext
23732 \end_layout
23733
23734 \end_inset
23735
23736 .
23737 \end_layout
23738
23739 \begin_layout Description
23740 \begin_inset Flex Code
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744 $$Extension
23745 \end_layout
23746
23747 \end_inset
23748
23749  The file extension (including the dot).
23750 \end_layout
23751
23752 \begin_layout Description
23753 \begin_inset Flex Code
23754 status collapsed
23755
23756 \begin_layout Plain Layout
23757 $$FName
23758 \end_layout
23759
23760 \end_inset
23761
23762  The filename of the file specified in the external material dialog.
23763  This is either an absolute name, or it is relative to the \SpecialChar LyX
23764  document.
23765 \end_layout
23766
23767 \begin_layout Description
23768 \begin_inset Flex Code
23769 status collapsed
23770
23771 \begin_layout Plain Layout
23772 $$FPath
23773 \end_layout
23774
23775 \end_inset
23776
23777  The path part of 
23778 \begin_inset Flex Code
23779 status collapsed
23780
23781 \begin_layout Plain Layout
23782 $$FName
23783 \end_layout
23784
23785 \end_inset
23786
23787  (absolute name or relative to the \SpecialChar LyX
23788  document).
23789 \end_layout
23790
23791 \begin_layout Description
23792 \begin_inset Flex Code
23793 status collapsed
23794
23795 \begin_layout Plain Layout
23796 $$RelPathMaster
23797 \end_layout
23798
23799 \end_inset
23800
23801  The file path, relative to the master \SpecialChar LyX
23802  document.
23803 \end_layout
23804
23805 \begin_layout Description
23806 \begin_inset Flex Code
23807 status collapsed
23808
23809 \begin_layout Plain Layout
23810 $$RelPathParent
23811 \end_layout
23812
23813 \end_inset
23814
23815  The file path, relative to the \SpecialChar LyX
23816  document.
23817 \end_layout
23818
23819 \begin_layout Description
23820 \begin_inset Flex Code
23821 status collapsed
23822
23823 \begin_layout Plain Layout
23824 $$Sysdir
23825 \end_layout
23826
23827 \end_inset
23828
23829  This macro will expand to the absolute path of the system directory.
23830  This is typically used to point to the various helper scripts that are
23831  bundled with \SpecialChar LyX
23832 .
23833 \end_layout
23834
23835 \begin_layout Description
23836 \begin_inset Flex Code
23837 status collapsed
23838
23839 \begin_layout Plain Layout
23840 $$Tempname
23841 \end_layout
23842
23843 \end_inset
23844
23845  A name and full path to a temporary file which will be automatically deleted
23846  whenever the containing document is closed, or the external material insertion
23847  deleted.
23848 \end_layout
23849
23850 \begin_layout Standard
23851 All path macros contain a trailing directory separator, so you can construct
23852  e.
23853 \begin_inset space \thinspace{}
23854 \end_inset
23855
23856 g.
23857 \begin_inset space \space{}
23858 \end_inset
23859
23860 the absolute filename with 
23861 \begin_inset Flex Code
23862 status collapsed
23863
23864 \begin_layout Plain Layout
23865 $$AbsPath$$Basename$$Extension
23866 \end_layout
23867
23868 \end_inset
23869
23870 .
23871 \end_layout
23872
23873 \begin_layout Standard
23874 The macros above are substituted in all commands unless otherwise noted.
23875  The command 
23876 \begin_inset Flex Code
23877 status collapsed
23878
23879 \begin_layout Plain Layout
23880 Product
23881 \end_layout
23882
23883 \end_inset
23884
23885  supports additionally the following substitutions if they are enabled by
23886  the 
23887 \begin_inset Flex Code
23888 status collapsed
23889
23890 \begin_layout Plain Layout
23891 Transform
23892 \end_layout
23893
23894 \end_inset
23895
23896  and 
23897 \begin_inset Flex Code
23898 status collapsed
23899
23900 \begin_layout Plain Layout
23901 TransformCommand
23902 \end_layout
23903
23904 \end_inset
23905
23906  commands:
23907 \end_layout
23908
23909 \begin_layout Description
23910 \begin_inset Flex Code
23911 status collapsed
23912
23913 \begin_layout Plain Layout
23914 $$ResizeFront
23915 \end_layout
23916
23917 \end_inset
23918
23919  The front part of the resize command.
23920 \end_layout
23921
23922 \begin_layout Description
23923 \begin_inset Flex Code
23924 status collapsed
23925
23926 \begin_layout Plain Layout
23927 $$ResizeBack
23928 \end_layout
23929
23930 \end_inset
23931
23932  The back part of the resize command.
23933 \end_layout
23934
23935 \begin_layout Description
23936 \begin_inset Flex Code
23937 status collapsed
23938
23939 \begin_layout Plain Layout
23940 $$RotateFront
23941 \end_layout
23942
23943 \end_inset
23944
23945  The front part of the rotation command.
23946 \end_layout
23947
23948 \begin_layout Description
23949 \begin_inset Flex Code
23950 status collapsed
23951
23952 \begin_layout Plain Layout
23953 $$RotateBack
23954 \end_layout
23955
23956 \end_inset
23957
23958  The back part of the rotation command.
23959 \end_layout
23960
23961 \begin_layout Standard
23962 The value string of the 
23963 \begin_inset Flex Code
23964 status collapsed
23965
23966 \begin_layout Plain Layout
23967 Option
23968 \end_layout
23969
23970 \end_inset
23971
23972  command supports additionally the following substitutions if they are enabled
23973  by the 
23974 \begin_inset Flex Code
23975 status collapsed
23976
23977 \begin_layout Plain Layout
23978 Transform
23979 \end_layout
23980
23981 \end_inset
23982
23983  and 
23984 \begin_inset Flex Code
23985 status collapsed
23986
23987 \begin_layout Plain Layout
23988 TransformOption
23989 \end_layout
23990
23991 \end_inset
23992
23993  commands:
23994 \end_layout
23995
23996 \begin_layout Description
23997 \begin_inset Flex Code
23998 status collapsed
23999
24000 \begin_layout Plain Layout
24001 $$Clip
24002 \end_layout
24003
24004 \end_inset
24005
24006  The clip option.
24007 \end_layout
24008
24009 \begin_layout Description
24010 \begin_inset Flex Code
24011 status collapsed
24012
24013 \begin_layout Plain Layout
24014 $$Extra
24015 \end_layout
24016
24017 \end_inset
24018
24019  The extra option.
24020 \end_layout
24021
24022 \begin_layout Description
24023 \begin_inset Flex Code
24024 status collapsed
24025
24026 \begin_layout Plain Layout
24027 $$Resize
24028 \end_layout
24029
24030 \end_inset
24031
24032  The resize option.
24033 \end_layout
24034
24035 \begin_layout Description
24036 \begin_inset Flex Code
24037 status collapsed
24038
24039 \begin_layout Plain Layout
24040 $$Rotate
24041 \end_layout
24042
24043 \end_inset
24044
24045  The rotation option.
24046 \end_layout
24047
24048 \begin_layout Standard
24049 You may ask why there are so many path macros.
24050  There are mainly two reasons:
24051 \end_layout
24052
24053 \begin_layout Enumerate
24054 Relative and absolute file names should remain relative or absolute, respectivel
24055 y.
24056  Users may have reasons to prefer either form.
24057  Relative names are useful for portable documents that should work on different
24058  machines, for example.
24059  Absolute names may be required by some programs.
24060 \end_layout
24061
24062 \begin_layout Enumerate
24063 \SpecialChar LaTeX
24064  treats relative file names differently than \SpecialChar LyX
24065  and other programs in nested
24066  included files.
24067  For \SpecialChar LyX
24068 , a relative file name is always relative to the document that contains
24069  the file name.
24070  For \SpecialChar LaTeX
24071 , it is always relative to the master document.
24072  These two definitions are identical if you have only one document, but
24073  differ if you have a master document that includes part documents.
24074  That means that relative filenames must be transformed when presented to
24075  \SpecialChar LaTeX
24076 .
24077  Fortunately \SpecialChar LyX
24078  does this automatically for you if you choose the right macros.
24079 \end_layout
24080
24081 \begin_layout Standard
24082 So which path macro should be used in new template definitions? The rule
24083  is not difficult:
24084 \end_layout
24085
24086 \begin_layout Itemize
24087 Use 
24088 \begin_inset Flex Code
24089 status collapsed
24090
24091 \begin_layout Plain Layout
24092 $$AbsPath
24093 \end_layout
24094
24095 \end_inset
24096
24097  if an absolute path is required.
24098 \end_layout
24099
24100 \begin_layout Itemize
24101 Use 
24102 \begin_inset Flex Code
24103 status collapsed
24104
24105 \begin_layout Plain Layout
24106 $$AbsOrRelPathMaster
24107 \end_layout
24108
24109 \end_inset
24110
24111  if the substituted string is some kind of \SpecialChar LaTeX
24112  input.
24113 \end_layout
24114
24115 \begin_layout Itemize
24116 Else use 
24117 \begin_inset Flex Code
24118 status collapsed
24119
24120 \begin_layout Plain Layout
24121 $$AbsOrRelPathParent
24122 \end_layout
24123
24124 \end_inset
24125
24126  in order to preserve the user's choice.
24127 \end_layout
24128
24129 \begin_layout Standard
24130 There are special cases where this rule does not work and e.
24131 \begin_inset space \thinspace{}
24132 \end_inset
24133
24134 g.
24135 \begin_inset space \space{}
24136 \end_inset
24137
24138 relative names are needed, but normally it will work just fine.
24139  One example for such a case is the command 
24140 \begin_inset Flex Code
24141 status collapsed
24142
24143 \begin_layout Plain Layout
24144 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24145 \end_layout
24146
24147 \end_inset
24148
24149  in the XFig template above: We can't use the absolute name because the
24150  copier for 
24151 \begin_inset Flex Code
24152 status collapsed
24153
24154 \begin_layout Plain Layout
24155 .pstex_t
24156 \end_layout
24157
24158 \end_inset
24159
24160  files needs the relative name in order to rewrite the file content.
24161 \end_layout
24162
24163 \begin_layout Section
24164 Security discussion
24165 \begin_inset CommandInset label
24166 LatexCommand label
24167 name "sec:Security-discussion"
24168
24169 \end_inset
24170
24171
24172 \end_layout
24173
24174 \begin_layout Standard
24175 The external material feature interfaces with a lot of external programs
24176  and does so automatically, so we have to consider the security implications
24177  of this.
24178  In particular, since you have the option of including your own filenames
24179  and/or parameter strings and those are expanded into a command, it seems
24180  that it would be possible to create a malicious document which executes
24181  arbitrary commands when a user views or prints the document.
24182  This is something we definitely want to avoid.
24183 \end_layout
24184
24185 \begin_layout Standard
24186 However, since the external program commands are specified in the template
24187  configuration file only, there are no security issues if \SpecialChar LyX
24188  is properly configure
24189 d with safe templates only.
24190  This is so because the external programs are invoked with the 
24191 \begin_inset Flex Code
24192 status collapsed
24193
24194 \begin_layout Plain Layout
24195 execvp
24196 \end_layout
24197
24198 \end_inset
24199
24200 -system call rather than the 
24201 \begin_inset Flex Code
24202 status collapsed
24203
24204 \begin_layout Plain Layout
24205 system
24206 \end_layout
24207
24208 \end_inset
24209
24210  system-call, so it's not possible to execute arbitrary commands from the
24211  filename or parameter section via the shell.
24212 \end_layout
24213
24214 \begin_layout Standard
24215 This also implies that you are restricted in what command strings you can
24216  use in the external material templates.
24217  In particular, pipes and redirection are not readily available.
24218  This has to be so if \SpecialChar LyX
24219  should remain safe.
24220  If you want to use some of the shell features, you should write a safe
24221  script to do this in a controlled manner, and then invoke the script from
24222  the command string.
24223  
24224 \end_layout
24225
24226 \begin_layout Standard
24227 It is possible to design a template that interacts directly with the shell,
24228  but since this would allow a malicious user to execute arbitrary commands
24229  by writing clever filenames and/or parameters, we generally recommend that
24230  you only use safe scripts that work with the 
24231 \begin_inset Flex Code
24232 status collapsed
24233
24234 \begin_layout Plain Layout
24235 execvp
24236 \end_layout
24237
24238 \end_inset
24239
24240  system call in a controlled manner.
24241  Of course, for use in a controlled environment, it can be tempting to just
24242  fall back to use ordinary shell scripts.
24243  If you do so, be aware that you 
24244 \emph on
24245 will
24246 \emph default
24247  provide an easily exploitable security hole in your system.
24248  Of course it stands to reason that such unsafe templates will never be
24249  included in the standard \SpecialChar LyX
24250  distribution, although we do encourage people
24251  to submit new templates in the open source tradition.
24252  But \SpecialChar LyX
24253  as shipped from the official distribution channels will never have
24254  unsafe templates.
24255 \end_layout
24256
24257 \begin_layout Standard
24258 Including external material provides a lot of power, and you have to be
24259  careful not to introduce security hazards with this power.
24260  A subtle error in a single line in an innocent looking script can open
24261  the door to huge security problems.
24262  So if you do not fully understand the issues, we recommend that you consult
24263  a knowledgeable security professional or the \SpecialChar LyX
24264  development team if you have
24265  any questions about whether a given template is safe or not.
24266  And do this before you use it in an uncontrolled environment.
24267 \end_layout
24268
24269 \begin_layout Chapter
24270 \start_of_appendix
24271 List of supported \SpecialChar LyX
24272  functions to be used in layouts
24273 \begin_inset CommandInset label
24274 LatexCommand label
24275 name "chap:List-of-functions"
24276
24277 \end_inset
24278
24279
24280 \end_layout
24281
24282 \begin_layout Standard
24283 \align center
24284 \begin_inset Tabular
24285 <lyxtabular version="3" rows="11" columns="8">
24286 <features tabularvalignment="middle">
24287 <column alignment="left" valignment="top">
24288 <column alignment="left" valignment="top">
24289 <column alignment="left" valignment="top">
24290 <column alignment="left" valignment="top">
24291 <column alignment="left" valignment="top">
24292 <column alignment="left" valignment="top">
24293 <column alignment="left" valignment="top">
24294 <column alignment="left" valignment="top">
24295 <row>
24296 <cell alignment="left" valignment="top" usebox="none">
24297 \begin_inset Text
24298
24299 \begin_layout Plain Layout
24300 accents
24301 \end_layout
24302
24303 \end_inset
24304 </cell>
24305 <cell alignment="left" valignment="top" usebox="none">
24306 \begin_inset Text
24307
24308 \begin_layout Plain Layout
24309 booktabs
24310 \end_layout
24311
24312 \end_inset
24313 </cell>
24314 <cell alignment="left" valignment="top" usebox="none">
24315 \begin_inset Text
24316
24317 \begin_layout Plain Layout
24318 feyn
24319 \end_layout
24320
24321 \end_inset
24322 </cell>
24323 <cell alignment="left" valignment="top" usebox="none">
24324 \begin_inset Text
24325
24326 \begin_layout Plain Layout
24327 listings
24328 \end_layout
24329
24330 \end_inset
24331 </cell>
24332 <cell alignment="center" valignment="top" usebox="none">
24333 \begin_inset Text
24334
24335 \begin_layout Plain Layout
24336 natbib
24337 \end_layout
24338
24339 \end_inset
24340 </cell>
24341 <cell alignment="center" valignment="top" usebox="none">
24342 \begin_inset Text
24343
24344 \begin_layout Plain Layout
24345 rotfloat
24346 \end_layout
24347
24348 \end_inset
24349 </cell>
24350 <cell alignment="center" valignment="top" usebox="none">
24351 \begin_inset Text
24352
24353 \begin_layout Plain Layout
24354 tfrupee
24355 \end_layout
24356
24357 \end_inset
24358 </cell>
24359 <cell alignment="center" valignment="top" usebox="none">
24360 \begin_inset Text
24361
24362 \begin_layout Plain Layout
24363 wasysym
24364 \end_layout
24365
24366 \end_inset
24367 </cell>
24368 </row>
24369 <row>
24370 <cell alignment="left" valignment="top" usebox="none">
24371 \begin_inset Text
24372
24373 \begin_layout Plain Layout
24374 amsbsy
24375 \end_layout
24376
24377 \end_inset
24378 </cell>
24379 <cell alignment="left" valignment="top" usebox="none">
24380 \begin_inset Text
24381
24382 \begin_layout Plain Layout
24383 calc
24384 \end_layout
24385
24386 \end_inset
24387 </cell>
24388 <cell alignment="left" valignment="top" usebox="none">
24389 \begin_inset Text
24390
24391 \begin_layout Plain Layout
24392 fixltx2e
24393 \end_layout
24394
24395 \end_inset
24396 </cell>
24397 <cell alignment="left" valignment="top" usebox="none">
24398 \begin_inset Text
24399
24400 \begin_layout Plain Layout
24401 longtable
24402 \end_layout
24403
24404 \end_inset
24405 </cell>
24406 <cell alignment="center" valignment="top" usebox="none">
24407 \begin_inset Text
24408
24409 \begin_layout Plain Layout
24410 nomencl
24411 \end_layout
24412
24413 \end_inset
24414 </cell>
24415 <cell alignment="center" valignment="top" usebox="none">
24416 \begin_inset Text
24417
24418 \begin_layout Plain Layout
24419 rsphrase
24420 \end_layout
24421
24422 \end_inset
24423 </cell>
24424 <cell alignment="center" valignment="top" usebox="none">
24425 \begin_inset Text
24426
24427 \begin_layout Plain Layout
24428 tipa
24429 \end_layout
24430
24431 \end_inset
24432 </cell>
24433 <cell alignment="center" valignment="top" usebox="none">
24434 \begin_inset Text
24435
24436 \begin_layout Plain Layout
24437 wrapfig
24438 \end_layout
24439
24440 \end_inset
24441 </cell>
24442 </row>
24443 <row>
24444 <cell alignment="left" valignment="top" usebox="none">
24445 \begin_inset Text
24446
24447 \begin_layout Plain Layout
24448 amscd
24449 \end_layout
24450
24451 \end_inset
24452 </cell>
24453 <cell alignment="left" valignment="top" usebox="none">
24454 \begin_inset Text
24455
24456 \begin_layout Plain Layout
24457 CJK
24458 \end_layout
24459
24460 \end_inset
24461 </cell>
24462 <cell alignment="left" valignment="top" usebox="none">
24463 \begin_inset Text
24464
24465 \begin_layout Plain Layout
24466 float
24467 \end_layout
24468
24469 \end_inset
24470 </cell>
24471 <cell alignment="left" valignment="top" usebox="none">
24472 \begin_inset Text
24473
24474 \begin_layout Plain Layout
24475 lyxskak
24476 \end_layout
24477
24478 \end_inset
24479 </cell>
24480 <cell alignment="center" valignment="top" usebox="none">
24481 \begin_inset Text
24482
24483 \begin_layout Plain Layout
24484 pdfcolmk
24485 \end_layout
24486
24487 \end_inset
24488 </cell>
24489 <cell alignment="center" valignment="top" usebox="none">
24490 \begin_inset Text
24491
24492 \begin_layout Plain Layout
24493 setspace
24494 \end_layout
24495
24496 \end_inset
24497 </cell>
24498 <cell alignment="center" valignment="top" usebox="none">
24499 \begin_inset Text
24500
24501 \begin_layout Plain Layout
24502 tipx
24503 \end_layout
24504
24505 \end_inset
24506 </cell>
24507 <cell alignment="center" valignment="top" usebox="none">
24508 \begin_inset Text
24509
24510 \begin_layout Plain Layout
24511 xargs
24512 \end_layout
24513
24514 \end_inset
24515 </cell>
24516 </row>
24517 <row>
24518 <cell alignment="left" valignment="top" usebox="none">
24519 \begin_inset Text
24520
24521 \begin_layout Plain Layout
24522 amsmath
24523 \end_layout
24524
24525 \end_inset
24526 </cell>
24527 <cell alignment="left" valignment="top" usebox="none">
24528 \begin_inset Text
24529
24530 \begin_layout Plain Layout
24531 color
24532 \end_layout
24533
24534 \end_inset
24535 </cell>
24536 <cell alignment="left" valignment="top" usebox="none">
24537 \begin_inset Text
24538
24539 \begin_layout Plain Layout
24540 framed
24541 \end_layout
24542
24543 \end_inset
24544 </cell>
24545 <cell alignment="left" valignment="top" usebox="none">
24546 \begin_inset Text
24547
24548 \begin_layout Plain Layout
24549 makeidx
24550 \end_layout
24551
24552 \end_inset
24553 </cell>
24554 <cell alignment="center" valignment="top" usebox="none">
24555 \begin_inset Text
24556
24557 \begin_layout Plain Layout
24558 pdfpages
24559 \end_layout
24560
24561 \end_inset
24562 </cell>
24563 <cell alignment="center" valignment="top" usebox="none">
24564 \begin_inset Text
24565
24566 \begin_layout Plain Layout
24567 shapepar
24568 \end_layout
24569
24570 \end_inset
24571 </cell>
24572 <cell alignment="center" valignment="top" usebox="none">
24573 \begin_inset Text
24574
24575 \begin_layout Plain Layout
24576 tone
24577 \end_layout
24578
24579 \end_inset
24580 </cell>
24581 <cell alignment="center" valignment="top" usebox="none">
24582 \begin_inset Text
24583
24584 \begin_layout Plain Layout
24585 xcolor
24586 \end_layout
24587
24588 \end_inset
24589 </cell>
24590 </row>
24591 <row>
24592 <cell alignment="left" valignment="top" usebox="none">
24593 \begin_inset Text
24594
24595 \begin_layout Plain Layout
24596 amssymb
24597 \end_layout
24598
24599 \end_inset
24600 </cell>
24601 <cell alignment="left" valignment="top" usebox="none">
24602 \begin_inset Text
24603
24604 \begin_layout Plain Layout
24605 covington
24606 \end_layout
24607
24608 \end_inset
24609 </cell>
24610 <cell alignment="left" valignment="top" usebox="none">
24611 \begin_inset Text
24612
24613 \begin_layout Plain Layout
24614 graphicx
24615 \end_layout
24616
24617 \end_inset
24618 </cell>
24619 <cell alignment="left" valignment="top" usebox="none">
24620 \begin_inset Text
24621
24622 \begin_layout Plain Layout
24623 marvosym
24624 \end_layout
24625
24626 \end_inset
24627 </cell>
24628 <cell alignment="center" valignment="top" usebox="none">
24629 \begin_inset Text
24630
24631 \begin_layout Plain Layout
24632 pifont
24633 \end_layout
24634
24635 \end_inset
24636 </cell>
24637 <cell alignment="center" valignment="top" usebox="none">
24638 \begin_inset Text
24639
24640 \begin_layout Plain Layout
24641 slashed
24642 \end_layout
24643
24644 \end_inset
24645 </cell>
24646 <cell alignment="center" valignment="top" usebox="none">
24647 \begin_inset Text
24648
24649 \begin_layout Plain Layout
24650 txfonts
24651 \end_layout
24652
24653 \end_inset
24654 </cell>
24655 <cell alignment="center" valignment="top" usebox="none">
24656 \begin_inset Text
24657
24658 \begin_layout Plain Layout
24659 xy
24660 \end_layout
24661
24662 \end_inset
24663 </cell>
24664 </row>
24665 <row>
24666 <cell alignment="left" valignment="top" usebox="none">
24667 \begin_inset Text
24668
24669 \begin_layout Plain Layout
24670 amstext
24671 \end_layout
24672
24673 \end_inset
24674 </cell>
24675 <cell alignment="left" valignment="top" usebox="none">
24676 \begin_inset Text
24677
24678 \begin_layout Plain Layout
24679 csquotes
24680 \end_layout
24681
24682 \end_inset
24683 </cell>
24684 <cell alignment="left" valignment="top" usebox="none">
24685 \begin_inset Text
24686
24687 \begin_layout Plain Layout
24688 hhline
24689 \end_layout
24690
24691 \end_inset
24692 </cell>
24693 <cell alignment="left" valignment="top" usebox="none">
24694 \begin_inset Text
24695
24696 \begin_layout Plain Layout
24697 mathdesign
24698 \end_layout
24699
24700 \end_inset
24701 </cell>
24702 <cell alignment="center" valignment="top" usebox="none">
24703 \begin_inset Text
24704
24705 \begin_layout Plain Layout
24706 pmboxdraw
24707 \end_layout
24708
24709 \end_inset
24710 </cell>
24711 <cell alignment="center" valignment="top" usebox="none">
24712 \begin_inset Text
24713
24714 \begin_layout Plain Layout
24715 soul
24716 \end_layout
24717
24718 \end_inset
24719 </cell>
24720 <cell alignment="center" valignment="top" usebox="none">
24721 \begin_inset Text
24722
24723 \begin_layout Plain Layout
24724 ulem
24725 \end_layout
24726
24727 \end_inset
24728 </cell>
24729 <cell alignment="center" valignment="top" usebox="none">
24730 \begin_inset Text
24731
24732 \begin_layout Plain Layout
24733 yhmath
24734 \end_layout
24735
24736 \end_inset
24737 </cell>
24738 </row>
24739 <row>
24740 <cell alignment="left" valignment="top" usebox="none">
24741 \begin_inset Text
24742
24743 \begin_layout Plain Layout
24744 amsthm
24745 \end_layout
24746
24747 \end_inset
24748 </cell>
24749 <cell alignment="left" valignment="top" usebox="none">
24750 \begin_inset Text
24751
24752 \begin_layout Plain Layout
24753 dvipost
24754 \end_layout
24755
24756 \end_inset
24757 </cell>
24758 <cell alignment="left" valignment="top" usebox="none">
24759 \begin_inset Text
24760
24761 \begin_layout Plain Layout
24762 hyperref
24763 \end_layout
24764
24765 \end_inset
24766 </cell>
24767 <cell alignment="left" valignment="top" usebox="none">
24768 \begin_inset Text
24769
24770 \begin_layout Plain Layout
24771 mathdots
24772 \end_layout
24773
24774 \end_inset
24775 </cell>
24776 <cell alignment="center" valignment="top" usebox="none">
24777 \begin_inset Text
24778
24779 \begin_layout Plain Layout
24780 polyglossia
24781 \end_layout
24782
24783 \end_inset
24784 </cell>
24785 <cell alignment="center" valignment="top" usebox="none">
24786 \begin_inset Text
24787
24788 \begin_layout Plain Layout
24789 splitidx
24790 \end_layout
24791
24792 \end_inset
24793 </cell>
24794 <cell alignment="center" valignment="top" usebox="none">
24795 \begin_inset Text
24796
24797 \begin_layout Plain Layout
24798 undertilde
24799 \end_layout
24800
24801 \end_inset
24802 </cell>
24803 <cell alignment="center" valignment="top" usebox="none">
24804 \begin_inset Text
24805
24806 \begin_layout Plain Layout
24807
24808 \end_layout
24809
24810 \end_inset
24811 </cell>
24812 </row>
24813 <row>
24814 <cell alignment="left" valignment="top" usebox="none">
24815 \begin_inset Text
24816
24817 \begin_layout Plain Layout
24818 array
24819 \end_layout
24820
24821 \end_inset
24822 </cell>
24823 <cell alignment="left" valignment="top" usebox="none">
24824 \begin_inset Text
24825
24826 \begin_layout Plain Layout
24827 endnotes
24828 \end_layout
24829
24830 \end_inset
24831 </cell>
24832 <cell alignment="left" valignment="top" usebox="none">
24833 \begin_inset Text
24834
24835 \begin_layout Plain Layout
24836 ifsym
24837 \end_layout
24838
24839 \end_inset
24840 </cell>
24841 <cell alignment="left" valignment="top" usebox="none">
24842 \begin_inset Text
24843
24844 \begin_layout Plain Layout
24845 mathrsfs
24846 \end_layout
24847
24848 \end_inset
24849 </cell>
24850 <cell alignment="center" valignment="top" usebox="none">
24851 \begin_inset Text
24852
24853 \begin_layout Plain Layout
24854 prettyref
24855 \end_layout
24856
24857 \end_inset
24858 </cell>
24859 <cell alignment="center" valignment="top" usebox="none">
24860 \begin_inset Text
24861
24862 \begin_layout Plain Layout
24863 subfig
24864 \end_layout
24865
24866 \end_inset
24867 </cell>
24868 <cell alignment="center" valignment="top" usebox="none">
24869 \begin_inset Text
24870
24871 \begin_layout Plain Layout
24872 units
24873 \end_layout
24874
24875 \end_inset
24876 </cell>
24877 <cell alignment="center" valignment="top" usebox="none">
24878 \begin_inset Text
24879
24880 \begin_layout Plain Layout
24881
24882 \end_layout
24883
24884 \end_inset
24885 </cell>
24886 </row>
24887 <row>
24888 <cell alignment="left" valignment="top" usebox="none">
24889 \begin_inset Text
24890
24891 \begin_layout Plain Layout
24892 ascii
24893 \end_layout
24894
24895 \end_inset
24896 </cell>
24897 <cell alignment="left" valignment="top" usebox="none">
24898 \begin_inset Text
24899
24900 \begin_layout Plain Layout
24901 enumitem
24902 \end_layout
24903
24904 \end_inset
24905 </cell>
24906 <cell alignment="left" valignment="top" usebox="none">
24907 \begin_inset Text
24908
24909 \begin_layout Plain Layout
24910 ifthen
24911 \end_layout
24912
24913 \end_inset
24914 </cell>
24915 <cell alignment="left" valignment="top" usebox="none">
24916 \begin_inset Text
24917
24918 \begin_layout Plain Layout
24919 mhchem
24920 \end_layout
24921
24922 \end_inset
24923 </cell>
24924 <cell alignment="center" valignment="top" usebox="none">
24925 \begin_inset Text
24926
24927 \begin_layout Plain Layout
24928 pxfonts
24929 \end_layout
24930
24931 \end_inset
24932 </cell>
24933 <cell alignment="center" valignment="top" usebox="none">
24934 \begin_inset Text
24935
24936 \begin_layout Plain Layout
24937 subscript
24938 \end_layout
24939
24940 \end_inset
24941 </cell>
24942 <cell alignment="center" valignment="top" usebox="none">
24943 \begin_inset Text
24944
24945 \begin_layout Plain Layout
24946 url
24947 \end_layout
24948
24949 \end_inset
24950 </cell>
24951 <cell alignment="center" valignment="top" usebox="none">
24952 \begin_inset Text
24953
24954 \begin_layout Plain Layout
24955
24956 \end_layout
24957
24958 \end_inset
24959 </cell>
24960 </row>
24961 <row>
24962 <cell alignment="left" valignment="top" usebox="none">
24963 \begin_inset Text
24964
24965 \begin_layout Plain Layout
24966 bbding
24967 \end_layout
24968
24969 \end_inset
24970 </cell>
24971 <cell alignment="left" valignment="top" usebox="none">
24972 \begin_inset Text
24973
24974 \begin_layout Plain Layout
24975 esint
24976 \end_layout
24977
24978 \end_inset
24979 </cell>
24980 <cell alignment="left" valignment="top" usebox="none">
24981 \begin_inset Text
24982
24983 \begin_layout Plain Layout
24984 jurabib
24985 \end_layout
24986
24987 \end_inset
24988 </cell>
24989 <cell alignment="left" valignment="top" usebox="none">
24990 \begin_inset Text
24991
24992 \begin_layout Plain Layout
24993 multicol
24994 \end_layout
24995
24996 \end_inset
24997 </cell>
24998 <cell alignment="center" valignment="top" usebox="none">
24999 \begin_inset Text
25000
25001 \begin_layout Plain Layout
25002 refstyle
25003 \end_layout
25004
25005 \end_inset
25006 </cell>
25007 <cell alignment="center" valignment="top" usebox="none">
25008 \begin_inset Text
25009
25010 \begin_layout Plain Layout
25011 textcomp
25012 \end_layout
25013
25014 \end_inset
25015 </cell>
25016 <cell alignment="center" valignment="top" usebox="none">
25017 \begin_inset Text
25018
25019 \begin_layout Plain Layout
25020 varioref
25021 \end_layout
25022
25023 \end_inset
25024 </cell>
25025 <cell alignment="center" valignment="top" usebox="none">
25026 \begin_inset Text
25027
25028 \begin_layout Plain Layout
25029
25030 \end_layout
25031
25032 \end_inset
25033 </cell>
25034 </row>
25035 <row>
25036 <cell alignment="center" valignment="top" usebox="none">
25037 \begin_inset Text
25038
25039 \begin_layout Plain Layout
25040 bm
25041 \end_layout
25042
25043 \end_inset
25044 </cell>
25045 <cell alignment="center" valignment="top" usebox="none">
25046 \begin_inset Text
25047
25048 \begin_layout Plain Layout
25049 fancybox
25050 \end_layout
25051
25052 \end_inset
25053 </cell>
25054 <cell alignment="center" valignment="top" usebox="none">
25055 \begin_inset Text
25056
25057 \begin_layout Plain Layout
25058 latexsym
25059 \end_layout
25060
25061 \end_inset
25062 </cell>
25063 <cell alignment="center" valignment="top" usebox="none">
25064 \begin_inset Text
25065
25066 \begin_layout Plain Layout
25067 multirow
25068 \end_layout
25069
25070 \end_inset
25071 </cell>
25072 <cell alignment="center" valignment="top" usebox="none">
25073 \begin_inset Text
25074
25075 \begin_layout Plain Layout
25076 rotating
25077 \end_layout
25078
25079 \end_inset
25080 </cell>
25081 <cell alignment="center" valignment="top" usebox="none">
25082 \begin_inset Text
25083
25084 \begin_layout Plain Layout
25085 textgreek
25086 \end_layout
25087
25088 \end_inset
25089 </cell>
25090 <cell alignment="center" valignment="top" usebox="none">
25091 \begin_inset Text
25092
25093 \begin_layout Plain Layout
25094 verbatim
25095 \end_layout
25096
25097 \end_inset
25098 </cell>
25099 <cell alignment="center" valignment="top" usebox="none">
25100 \begin_inset Text
25101
25102 \begin_layout Plain Layout
25103
25104 \end_layout
25105
25106 \end_inset
25107 </cell>
25108 </row>
25109 </lyxtabular>
25110
25111 \end_inset
25112
25113
25114 \end_layout
25115
25116 \begin_layout Chapter
25117 Names of available colors to be used in layouts
25118 \begin_inset CommandInset label
25119 LatexCommand label
25120 name "chap:Names-of-colors"
25121
25122 \end_inset
25123
25124
25125 \end_layout
25126
25127 \begin_layout Standard
25128 The colors listed here are the standard colors and the those that you can
25129  adjust in the \SpecialChar LyX
25130  preferences.
25131 \end_layout
25132
25133 \begin_layout Description
25134 none
25135 \family roman
25136 \series medium
25137 \shape up
25138 \size normal
25139 \emph off
25140 \bar no
25141 \strikeout off
25142 \uuline off
25143 \uwave off
25144 \noun off
25145 \color none
25146  No particular color – clear or default
25147 \end_layout
25148
25149 \begin_layout Description
25150 black
25151 \end_layout
25152
25153 \begin_layout Description
25154 white
25155 \end_layout
25156
25157 \begin_layout Description
25158 red
25159 \end_layout
25160
25161 \begin_layout Description
25162 green
25163 \end_layout
25164
25165 \begin_layout Description
25166 blue
25167 \end_layout
25168
25169 \begin_layout Description
25170 cyan
25171 \end_layout
25172
25173 \begin_layout Description
25174 magenta
25175 \end_layout
25176
25177 \begin_layout Description
25178 yellow
25179 \end_layout
25180
25181 \begin_layout Description
25182 added_space Added space marker color
25183 \end_layout
25184
25185 \begin_layout Description
25186 addedtext Added text color
25187 \end_layout
25188
25189 \begin_layout Description
25190 appendix Appendix marker color
25191 \end_layout
25192
25193 \begin_layout Description
25194 background Background color
25195 \end_layout
25196
25197 \begin_layout Description
25198 bottomarea Bottom area color
25199 \end_layout
25200
25201 \begin_layout Description
25202 branchlabel Label color for branches
25203 \end_layout
25204
25205 \begin_layout Description
25206 buttonbg Color used for bottom background
25207 \end_layout
25208
25209 \begin_layout Description
25210 buttonhoverbg Color used for button background under focus
25211 \end_layout
25212
25213 \begin_layout Description
25214 buttonframe Color for inset button frames
25215 \end_layout
25216
25217 \begin_layout Description
25218 changebar Changebar color
25219 \end_layout
25220
25221 \begin_layout Description
25222 changedtextauthor1 Changed text color author 1
25223 \end_layout
25224
25225 \begin_layout Description
25226 changedtextauthor2 Changed text color author 2
25227 \end_layout
25228
25229 \begin_layout Description
25230 changedtextauthor3 Changed text color author 3
25231 \end_layout
25232
25233 \begin_layout Description
25234 changedtextauthor4 Changed text color author 4
25235 \end_layout
25236
25237 \begin_layout Description
25238 changedtextauthor5 Changed text color author 5
25239 \end_layout
25240
25241 \begin_layout Description
25242 collapsable_inset_frame Collapsable insets framecolor
25243 \end_layout
25244
25245 \begin_layout Description
25246 collapsable_inset_text Collapsable insets text color
25247 \end_layout
25248
25249 \begin_layout Description
25250 command Text color for command insets
25251 \end_layout
25252
25253 \begin_layout Description
25254 commandbg Background color for command insets
25255 \end_layout
25256
25257 \begin_layout Description
25258 commandframe Frame color for command insets
25259 \end_layout
25260
25261 \begin_layout Description
25262 comment color for comments
25263 \end_layout
25264
25265 \begin_layout Description
25266 commentbg Background color of comments
25267 \end_layout
25268
25269 \begin_layout Description
25270 cursor Cursor color
25271 \end_layout
25272
25273 \begin_layout Description
25274 deletedtext Deleted text color
25275 \end_layout
25276
25277 \begin_layout Description
25278 deletedtextmodifier Deleted text modifying color
25279 \end_layout
25280
25281 \begin_layout Description
25282 depthbar Color for the depth bars in the margin
25283 \end_layout
25284
25285 \begin_layout Description
25286 eolmarker End of line marker color
25287 \end_layout
25288
25289 \begin_layout Description
25290 error Color of the \SpecialChar LaTeX
25291  error box
25292 \end_layout
25293
25294 \begin_layout Description
25295 footlabel Label color for footnotes
25296 \end_layout
25297
25298 \begin_layout Description
25299 graphicsbg Graphics inset background color
25300 \end_layout
25301
25302 \begin_layout Description
25303 greyedout Label color for greyedout insets
25304 \end_layout
25305
25306 \begin_layout Description
25307 greyedoutbg Background color of greyedout inset
25308 \end_layout
25309
25310 \begin_layout Description
25311 greyedouttext Color for greyedout inset text
25312 \end_layout
25313
25314 \begin_layout Description
25315 indexlabel Label color for index insets
25316 \end_layout
25317
25318 \begin_layout Description
25319 ignore The color is ignored
25320 \end_layout
25321
25322 \begin_layout Description
25323 inherit The color is inherited
25324 \end_layout
25325
25326 \begin_layout Description
25327 inlinecompletion Inline completion color
25328 \end_layout
25329
25330 \begin_layout Description
25331 insetbg Inset marker background color
25332 \end_layout
25333
25334 \begin_layout Description
25335 insetframe Inset marker frame color
25336 \end_layout
25337
25338 \begin_layout Description
25339 language Color for marking foreign language words
25340 \end_layout
25341
25342 \begin_layout Description
25343 latex Text color in \SpecialChar LaTeX
25344  mode
25345 \end_layout
25346
25347 \begin_layout Description
25348 listingsbg Background color of listings inset
25349 \end_layout
25350
25351 \begin_layout Description
25352 marginlabel Label color for margin notes
25353 \end_layout
25354
25355 \begin_layout Description
25356 math Math inset text color
25357 \end_layout
25358
25359 \begin_layout Description
25360 mathbg Math inset background color
25361 \end_layout
25362
25363 \begin_layout Description
25364 mathcorners Math inset frame color not under focus
25365 \end_layout
25366
25367 \begin_layout Description
25368 mathframe Math inset frame color under focus
25369 \end_layout
25370
25371 \begin_layout Description
25372 mathline Math line color
25373 \end_layout
25374
25375 \begin_layout Description
25376 mathmacrobg Macro math inset background color
25377 \end_layout
25378
25379 \begin_layout Description
25380 mathmacroblend Macro math blended color
25381 \end_layout
25382
25383 \begin_layout Description
25384 mathmacroframe Macro math frame color
25385 \end_layout
25386
25387 \begin_layout Description
25388 mathmacrohoverbg Macro math inset background color hovered
25389 \end_layout
25390
25391 \begin_layout Description
25392 mathmacrolabel Macro math label color
25393 \end_layout
25394
25395 \begin_layout Description
25396 mathmacronewarg Macro template color for new parameters
25397 \end_layout
25398
25399 \begin_layout Description
25400 mathmacrooldarg Macro template color for old parameters
25401 \end_layout
25402
25403 \begin_layout Description
25404 newpage New page color
25405 \end_layout
25406
25407 \begin_layout Description
25408 nonunique_inlinecompletion Inline completion color for the non-unique part
25409 \end_layout
25410
25411 \begin_layout Description
25412 notebg Background color of notes
25413 \end_layout
25414
25415 \begin_layout Description
25416 notelabel Label color for notes
25417 \end_layout
25418
25419 \begin_layout Description
25420 pagebreak Page break/line break color
25421 \end_layout
25422
25423 \begin_layout Description
25424 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25425 \end_layout
25426
25427 \begin_layout Description
25428 phantomtext Text color for phantom insets
25429 \end_layout
25430
25431 \begin_layout Description
25432 preview The color used for previews
25433 \end_layout
25434
25435 \begin_layout Description
25436 previewframe Preview frame color
25437 \end_layout
25438
25439 \begin_layout Description
25440 regexpframe Color for regexp frame
25441 \end_layout
25442
25443 \begin_layout Description
25444 selection Background color of selected text
25445 \end_layout
25446
25447 \begin_layout Description
25448 selectiontext Foreground color of selected text
25449 \end_layout
25450
25451 \begin_layout Description
25452 shadedbg Background color of shaded box
25453 \end_layout
25454
25455 \begin_layout Description
25456 special Special chars text color
25457 \end_layout
25458
25459 \begin_layout Description
25460 tabularline Table line color
25461 \end_layout
25462
25463 \begin_layout Description
25464 tabularonoffline Table line color
25465 \end_layout
25466
25467 \begin_layout Description
25468 urllabel Label color for URL insets
25469 \end_layout
25470
25471 \begin_layout Description
25472 urltext Color for URL inset text
25473 \end_layout
25474
25475 \end_body
25476 \end_document