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