]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
UserGuide.lyx: some corrections
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 470
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 \change_inserted -195340706 1364753581
11905
11906 \end_layout
11907
11908 \begin_layout Description
11909
11910 \change_inserted -195340706 1364753581
11911 \begin_inset Flex Code
11912 status collapsed
11913
11914 \begin_layout Plain Layout
11915
11916 \change_inserted -195340706 1364753581
11917 ForceLocal n
11918 \end_layout
11919
11920 \end_inset
11921
11922  Used for backporting new styles to stable LyX versions.
11923  The first stable version that supports this tag is LyX 2.1.0.
11924  
11925 \begin_inset Flex Code
11926 status collapsed
11927
11928 \begin_layout Plain Layout
11929
11930 \change_inserted -195340706 1364753581
11931 n
11932 \end_layout
11933
11934 \end_inset
11935
11936  is a number which may either be 0 (this is the default if the tag is not
11937  given), -1 or any value greater than zero.
11938  If the 
11939 \begin_inset Flex Code
11940 status collapsed
11941
11942 \begin_layout Plain Layout
11943
11944 \change_inserted -195340706 1364753581
11945 ForceLocal
11946 \end_layout
11947
11948 \end_inset
11949
11950  flag of a style is greater than zero, it will always be written to the
11951  document header.
11952  If a .lyx file is read, the style definitions from the document header are
11953  added to the document class.
11954  Therefore even older versions can handle the style.
11955  The argument of 
11956 \begin_inset Flex Code
11957 status collapsed
11958
11959 \begin_layout Plain Layout
11960
11961 \change_inserted -195340706 1364753581
11962 ForceLocal
11963 \end_layout
11964
11965 \end_inset
11966
11967  is a version number: If such a style is read, and the version number is
11968  less than the version number of the already existing style in the document
11969  class, the new style is ignored.
11970  If the version number is higher, the new style replaces the existing style.
11971  A value of -1 means an infinite version number, i.e.
11972  it is always used.
11973 \change_unchanged
11974
11975 \end_layout
11976
11977 \begin_layout Description
11978 \begin_inset Flex Code
11979 status collapsed
11980
11981 \begin_layout Plain Layout
11982 FreeSpacing
11983 \end_layout
11984
11985 \end_inset
11986
11987  [
11988 \begin_inset Flex Code
11989 status collapsed
11990
11991 \begin_layout Plain Layout
11992
11993 \emph on
11994 0
11995 \end_layout
11996
11997 \end_inset
11998
11999 ,
12000 \begin_inset space \thinspace{}
12001 \end_inset
12002
12003
12004 \begin_inset Flex Code
12005 status collapsed
12006
12007 \begin_layout Plain Layout
12008 1
12009 \end_layout
12010
12011 \end_inset
12012
12013 ] Usually LyX does not allow you to insert more than one space between words,
12014  since a space is considered as the separation between two words, not a
12015  character or symbol of its own.
12016  This is a very fine thing but sometimes annoying, for example, when typing
12017  program code or plain LaTeX code.
12018  For this reason, 
12019 \begin_inset Flex Code
12020 status collapsed
12021
12022 \begin_layout Plain Layout
12023 FreeSpacing
12024 \end_layout
12025
12026 \end_inset
12027
12028  can be enabled.
12029  Note that LyX will create protected blanks for the additional blanks when
12030  in another mode than LaTeX-mode.
12031 \end_layout
12032
12033 \begin_layout Description
12034 \begin_inset Flex Code
12035 status collapsed
12036
12037 \begin_layout Plain Layout
12038 HTML*
12039 \end_layout
12040
12041 \end_inset
12042
12043  These tags are used with XHTML output.
12044  See 
12045 \begin_inset CommandInset ref
12046 LatexCommand ref
12047 reference "sub:Paragraph-Style-XHTML"
12048
12049 \end_inset
12050
12051 .
12052 \end_layout
12053
12054 \begin_layout Description
12055 \begin_inset Flex Code
12056 status collapsed
12057
12058 \begin_layout Plain Layout
12059 InnerTag
12060 \end_layout
12061
12062 \end_inset
12063
12064  [FIXME] (Used only with XML-type formats.)
12065 \end_layout
12066
12067 \begin_layout Description
12068 \begin_inset Flex Code
12069 status collapsed
12070
12071 \begin_layout Plain Layout
12072 InPreamble
12073 \end_layout
12074
12075 \end_inset
12076
12077  [
12078 \begin_inset Flex Code
12079 status collapsed
12080
12081 \begin_layout Plain Layout
12082
12083 \emph on
12084 0
12085 \end_layout
12086
12087 \end_inset
12088
12089 ,
12090 \begin_inset space \thinspace{}
12091 \end_inset
12092
12093
12094 \begin_inset Flex Code
12095 status collapsed
12096
12097 \begin_layout Plain Layout
12098 1
12099 \end_layout
12100
12101 \end_inset
12102
12103 ] If 
12104 \begin_inset Flex Code
12105 status collapsed
12106
12107 \begin_layout Plain Layout
12108 1
12109 \end_layout
12110
12111 \end_inset
12112
12113 , marks the style as to be included in the document preamble and not in
12114  the document body.
12115  This is useful for document classes that want such information as the title
12116  and author to appear in the preamble.
12117  Note that this works only for styles for which the 
12118 \begin_inset Flex Code
12119 status collapsed
12120
12121 \begin_layout Plain Layout
12122 LatexType
12123 \end_layout
12124
12125 \end_inset
12126
12127  is 
12128 \begin_inset Flex Code
12129 status collapsed
12130
12131 \begin_layout Plain Layout
12132 Command
12133 \end_layout
12134
12135 \end_inset
12136
12137  or 
12138 \begin_inset Flex Code
12139 status collapsed
12140
12141 \begin_layout Plain Layout
12142 Paragraph
12143 \end_layout
12144
12145 \end_inset
12146
12147 .
12148 \end_layout
12149
12150 \begin_layout Description
12151 \begin_inset Flex Code
12152 status collapsed
12153
12154 \begin_layout Plain Layout
12155 InTitle
12156 \end_layout
12157
12158 \end_inset
12159
12160  [
12161 \begin_inset Flex Code
12162 status collapsed
12163
12164 \begin_layout Plain Layout
12165
12166 \emph on
12167 0
12168 \end_layout
12169
12170 \end_inset
12171
12172 ,
12173 \begin_inset space \thinspace{}
12174 \end_inset
12175
12176
12177 \begin_inset Flex Code
12178 status collapsed
12179
12180 \begin_layout Plain Layout
12181 1
12182 \end_layout
12183
12184 \end_inset
12185
12186 ] If 
12187 \begin_inset Flex Code
12188 status collapsed
12189
12190 \begin_layout Plain Layout
12191 1
12192 \end_layout
12193
12194 \end_inset
12195
12196 , marks the style as being part of a title block (see also the 
12197 \begin_inset Flex Code
12198 status collapsed
12199
12200 \begin_layout Plain Layout
12201 TitleLatexType
12202 \end_layout
12203
12204 \end_inset
12205
12206  and 
12207 \begin_inset Flex Code
12208 status collapsed
12209
12210 \begin_layout Plain Layout
12211 TitleLatexName
12212 \end_layout
12213
12214 \end_inset
12215
12216  global entries).
12217 \end_layout
12218
12219 \begin_layout Description
12220
12221 \change_inserted -712698321 1355932296
12222 \begin_inset Flex Code
12223 status collapsed
12224
12225 \begin_layout Plain Layout
12226
12227 \change_inserted -712698321 1355932178
12228 ItemCommand
12229 \end_layout
12230
12231 \end_inset
12232
12233  [
12234 \begin_inset Flex Code
12235 status collapsed
12236
12237 \begin_layout Plain Layout
12238
12239 \change_inserted -712698321 1355932181
12240 string="item"
12241 \end_layout
12242
12243 \end_inset
12244
12245 ] The LaTeX command sequence declaring an item in a list.
12246  The command is to be defined without the preceding backslash (the default
12247  is 
12248 \begin_inset Quotes eld
12249 \end_inset
12250
12251 item
12252 \begin_inset Quotes erd
12253 \end_inset
12254
12255 , resulting in 
12256 \begin_inset Flex Code
12257 status collapsed
12258
12259 \begin_layout Plain Layout
12260
12261 \change_inserted -712698321 1355932279
12262
12263 \backslash
12264 item
12265 \change_unchanged
12266
12267 \end_layout
12268
12269 \end_inset
12270
12271  in the LaTeX output).
12272 \end_layout
12273
12274 \begin_layout Description
12275 \begin_inset Flex Code
12276 status collapsed
12277
12278 \begin_layout Plain Layout
12279 ItemSep
12280 \end_layout
12281
12282 \end_inset
12283
12284  [
12285 \begin_inset Flex Code
12286 status collapsed
12287
12288 \begin_layout Plain Layout
12289 float=0
12290 \end_layout
12291
12292 \end_inset
12293
12294 ] This provides extra space between paragraphs that have the same style.
12295  If you put other styles into an environment, each is separated with the
12296  environment's 
12297 \begin_inset Flex Code
12298 status collapsed
12299
12300 \begin_layout Plain Layout
12301 ParSep
12302 \end_layout
12303
12304 \end_inset
12305
12306 .
12307  But the whole items of the environment are additionally separated with
12308  this 
12309 \begin_inset Flex Code
12310 status collapsed
12311
12312 \begin_layout Plain Layout
12313 ItemSep
12314 \end_layout
12315
12316 \end_inset
12317
12318 .
12319  Note that this is a
12320 \emph on
12321  multiplier.
12322 \end_layout
12323
12324 \begin_layout Description
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 ItemTag
12330 \end_layout
12331
12332 \end_inset
12333
12334  [FIXME] (Used only with XML-type formats.)
12335 \end_layout
12336
12337 \begin_layout Description
12338 \begin_inset Flex Code
12339 status collapsed
12340
12341 \begin_layout Plain Layout
12342 KeepEmpty
12343 \end_layout
12344
12345 \end_inset
12346
12347  [
12348 \begin_inset Flex Code
12349 status collapsed
12350
12351 \begin_layout Plain Layout
12352
12353 \emph on
12354 0
12355 \end_layout
12356
12357 \end_inset
12358
12359 ,
12360 \begin_inset space \thinspace{}
12361 \end_inset
12362
12363
12364 \begin_inset Flex Code
12365 status collapsed
12366
12367 \begin_layout Plain Layout
12368 1
12369 \end_layout
12370
12371 \end_inset
12372
12373 ] Usually LyX does not allow you to leave a paragraph empty, since it would
12374  lead to empty LaTeX output.
12375  There are some cases where this could be desirable however: in a letter
12376  template, the required fields can be provided as empty fields, so that
12377  people do not forget them; in some special classes, a style can be used
12378  as some kind of break, which does not contain actual text.
12379 \end_layout
12380
12381 \begin_layout Description
12382 \begin_inset Flex Code
12383 status collapsed
12384
12385 \begin_layout Plain Layout
12386 LabelBottomsep
12387 \end_layout
12388
12389 \end_inset
12390
12391  [
12392 \begin_inset Flex Code
12393 status collapsed
12394
12395 \begin_layout Plain Layout
12396 float=0
12397 \end_layout
12398
12399 \end_inset
12400
12401 ] The vertical space between the label and the text body.
12402  Only used for labels that are above the text body (
12403 \begin_inset Flex Code
12404 status collapsed
12405
12406 \begin_layout Plain Layout
12407 Top_Environment
12408 \end_layout
12409
12410 \end_inset
12411
12412  and
12413 \begin_inset Newline newline
12414 \end_inset
12415
12416
12417 \begin_inset Flex Code
12418 status collapsed
12419
12420 \begin_layout Plain Layout
12421 Centered_Top_Environment
12422 \end_layout
12423
12424 \end_inset
12425
12426 ).
12427 \end_layout
12428
12429 \begin_layout Description
12430 \begin_inset Flex Code
12431 status collapsed
12432
12433 \begin_layout Plain Layout
12434 LabelCounter
12435 \end_layout
12436
12437 \end_inset
12438
12439  [
12440 \begin_inset Flex Code
12441 status collapsed
12442
12443 \begin_layout Plain Layout
12444 string=""
12445 \end_layout
12446
12447 \end_inset
12448
12449 ] The name of the counter for automatic numbering.
12450
12451 \change_inserted 1414654397 1360434581
12452  In order to have the counter appear with your label, you will need to reference
12453  it in the LabelString.
12454  This will work with 
12455 \begin_inset Flex Code
12456 status open
12457
12458 \begin_layout Plain Layout
12459
12460 \change_inserted 1414654397 1360434565
12461 LabelType
12462 \change_unchanged
12463
12464 \end_layout
12465
12466 \end_inset
12467
12468
12469 \begin_inset Flex Code
12470 status open
12471
12472 \begin_layout Plain Layout
12473
12474 \change_inserted 1414654397 1360434569
12475 Static
12476 \change_unchanged
12477
12478 \end_layout
12479
12480 \end_inset
12481
12482
12483 \begin_inset Flex Code
12484 status open
12485
12486 \begin_layout Plain Layout
12487
12488 \change_inserted 1414654397 1360434574
12489 Above
12490 \change_unchanged
12491
12492 \end_layout
12493
12494 \end_inset
12495
12496 , and 
12497 \begin_inset Flex Code
12498 status open
12499
12500 \begin_layout Plain Layout
12501
12502 \change_inserted 1414654397 1360434578
12503 Centered
12504 \change_unchanged
12505
12506 \end_layout
12507
12508 \end_inset
12509
12510 , at least.
12511 \change_unchanged
12512
12513 \begin_inset Newline newline
12514 \end_inset
12515
12516
12517 \change_deleted 1414654397 1360434393
12518 This 
12519 \emph on
12520 must
12521 \emph default
12522  be given if 
12523 \begin_inset Flex Code
12524 status collapsed
12525
12526 \begin_layout Plain Layout
12527 LabelType
12528 \end_layout
12529
12530 \end_inset
12531
12532  is 
12533 \begin_inset Flex Code
12534 status collapsed
12535
12536 \begin_layout Plain Layout
12537 Counter
12538 \end_layout
12539
12540 \end_inset
12541
12542 .
12543  In that case, the counter will be stepped each time the style appears.
12544 \begin_inset Newline newline
12545 \end_inset
12546
12547
12548 \change_unchanged
12549 This 
12550 \emph on
12551 may
12552 \emph default
12553  also be given if 
12554 \begin_inset Flex Code
12555 status collapsed
12556
12557 \begin_layout Plain Layout
12558 LabelType
12559 \end_layout
12560
12561 \end_inset
12562
12563  is 
12564 \begin_inset Flex Code
12565 status collapsed
12566
12567 \begin_layout Plain Layout
12568 Enumerate
12569 \end_layout
12570
12571 \end_inset
12572
12573 , though this case is a bit complicated.
12574  Suppose you declare 
12575 \begin_inset Quotes eld
12576 \end_inset
12577
12578
12579 \begin_inset Flex Code
12580 status collapsed
12581
12582 \begin_layout Plain Layout
12583 LabelCounter myenum
12584 \end_layout
12585
12586 \end_inset
12587
12588
12589 \begin_inset Quotes erd
12590 \end_inset
12591
12592 .
12593  Then the actual counters used are 
12594 \begin_inset Flex Code
12595 status collapsed
12596
12597 \begin_layout Plain Layout
12598 myenumi
12599 \end_layout
12600
12601 \end_inset
12602
12603
12604 \begin_inset Flex Code
12605 status collapsed
12606
12607 \begin_layout Plain Layout
12608 myenumii
12609 \end_layout
12610
12611 \end_inset
12612
12613
12614 \begin_inset Flex Code
12615 status collapsed
12616
12617 \begin_layout Plain Layout
12618 myenumiii
12619 \end_layout
12620
12621 \end_inset
12622
12623  and 
12624 \begin_inset Flex Code
12625 status collapsed
12626
12627 \begin_layout Plain Layout
12628 myenumiv
12629 \end_layout
12630
12631 \end_inset
12632
12633 , much as in LaTeX.
12634  These counters must all be declared separately.
12635 \begin_inset Newline newline
12636 \end_inset
12637
12638 See Section 
12639 \begin_inset CommandInset ref
12640 LatexCommand ref
12641 reference "sub:Counters"
12642
12643 \end_inset
12644
12645  for details on counters.
12646 \end_layout
12647
12648 \begin_layout Description
12649 \begin_inset Flex Code
12650 status collapsed
12651
12652 \begin_layout Plain Layout
12653 LabelFont
12654 \end_layout
12655
12656 \end_inset
12657
12658  The font used for the label.
12659  See section
12660 \begin_inset space ~
12661 \end_inset
12662
12663
12664 \begin_inset CommandInset ref
12665 LatexCommand ref
12666 reference "sub:Font-description"
12667
12668 \end_inset
12669
12670 .
12671 \end_layout
12672
12673 \begin_layout Description
12674 \begin_inset Flex Code
12675 status collapsed
12676
12677 \begin_layout Plain Layout
12678 LabelIndent
12679 \end_layout
12680
12681 \end_inset
12682
12683  [
12684 \begin_inset Flex Code
12685 status collapsed
12686
12687 \begin_layout Plain Layout
12688 string=""
12689 \end_layout
12690
12691 \end_inset
12692
12693 ] Text that indicates how far a label should be indented.
12694 \end_layout
12695
12696 \begin_layout Description
12697 \begin_inset Flex Code
12698 status collapsed
12699
12700 \begin_layout Plain Layout
12701 LabelSep
12702 \end_layout
12703
12704 \end_inset
12705
12706  [
12707 \begin_inset Flex Code
12708 status collapsed
12709
12710 \begin_layout Plain Layout
12711 string=""
12712 \end_layout
12713
12714 \end_inset
12715
12716 ] Text that indicates the amount of horizontal space between the label and
12717  the text body.
12718  Only used for labels that are not above the text body.
12719 \end_layout
12720
12721 \begin_layout Description
12722 \begin_inset Flex Code
12723 status collapsed
12724
12725 \begin_layout Plain Layout
12726 LabelString
12727 \end_layout
12728
12729 \end_inset
12730
12731  [
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736 string=""
12737 \end_layout
12738
12739 \end_inset
12740
12741 ] The string used for
12742 \change_inserted 1414654397 1360434358
12743  the label
12744 \change_deleted 1414654397 1360434353
12745  a label with a 
12746 \change_unchanged
12747 .
12748  When 
12749 \begin_inset Flex Code
12750 status collapsed
12751
12752 \begin_layout Plain Layout
12753 LabelCounter
12754 \end_layout
12755
12756 \end_inset
12757
12758  is set, this string can be contain the special formatting commands described
12759  in Section 
12760 \begin_inset CommandInset ref
12761 LatexCommand ref
12762 reference "sub:Counters"
12763
12764 \end_inset
12765
12766 .
12767 \end_layout
12768
12769 \begin_layout Description
12770 \begin_inset Flex Code
12771 status collapsed
12772
12773 \begin_layout Plain Layout
12774 LabelStringAppendix
12775 \end_layout
12776
12777 \end_inset
12778
12779  [
12780 \begin_inset Flex Code
12781 status collapsed
12782
12783 \begin_layout Plain Layout
12784 string=""
12785 \end_layout
12786
12787 \end_inset
12788
12789 ] This is used inside the appendix instead of
12790 \begin_inset Newline newline
12791 \end_inset
12792
12793
12794 \begin_inset Flex Code
12795 status collapsed
12796
12797 \begin_layout Plain Layout
12798 LabelString
12799 \end_layout
12800
12801 \end_inset
12802
12803 .
12804  Note that every 
12805 \begin_inset Flex Code
12806 status collapsed
12807
12808 \begin_layout Plain Layout
12809 LabelString
12810 \end_layout
12811
12812 \end_inset
12813
12814  statement resets
12815 \begin_inset Newline newline
12816 \end_inset
12817
12818
12819 \begin_inset Flex Code
12820 status collapsed
12821
12822 \begin_layout Plain Layout
12823 LabelStringAppendix
12824 \end_layout
12825
12826 \end_inset
12827
12828  too.
12829 \end_layout
12830
12831 \begin_layout Description
12832 \begin_inset Flex Code
12833 status collapsed
12834
12835 \begin_layout Plain Layout
12836 LabelTag
12837 \end_layout
12838
12839 \end_inset
12840
12841  [FIXME] (Used only with XML-type formats.)
12842 \end_layout
12843
12844 \begin_layout Description
12845 \begin_inset Flex Code
12846 status collapsed
12847
12848 \begin_layout Plain Layout
12849 LabelType
12850 \end_layout
12851
12852 \end_inset
12853
12854  [
12855 \begin_inset Flex Code
12856 status collapsed
12857
12858 \begin_layout Plain Layout
12859
12860 \emph on
12861 No_Label
12862 \emph default
12863 , Manual, Static, 
12864 \change_inserted 1414654397 1360434611
12865 Above, 
12866 \change_deleted 1414654397 1360434612
12867 Top_Environment,
12868 \change_unchanged
12869
12870 \begin_inset Newline newline
12871 \end_inset
12872
12873 Centered
12874 \change_inserted 1414654397 1360434627
12875
12876 \change_deleted 1414654397 1360434623
12877 _Top_Environment, Counter, 
12878 \change_unchanged
12879 Sensitive, Enumerate,
12880 \begin_inset Newline newline
12881 \end_inset
12882
12883 Itemize, Bibliography
12884 \end_layout
12885
12886 \end_inset
12887
12888 ]
12889 \end_layout
12890
12891 \begin_deeper
12892 \begin_layout Description
12893 \begin_inset Flex Code
12894 status collapsed
12895
12896 \begin_layout Plain Layout
12897 Manual
12898 \end_layout
12899
12900 \end_inset
12901
12902  means the label is the very first word (up to the first real blank).
12903  Use protected spaces if you want more than one word as the label.
12904  
12905 \end_layout
12906
12907 \begin_layout Description
12908 \begin_inset Flex Code
12909 status collapsed
12910
12911 \begin_layout Plain Layout
12912 Static
12913 \end_layout
12914
12915 \end_inset
12916
12917  means the label is simply what is declared as 
12918 \begin_inset Flex Code
12919 status collapsed
12920
12921 \begin_layout Plain Layout
12922 LabelString
12923 \end_layout
12924
12925 \end_inset
12926
12927 .
12928
12929 \change_deleted 1414654397 1360434660
12930  Note that this really is `static'.
12931
12932 \change_inserted 1414654397 1360434794
12933  This will be displayed 
12934 \begin_inset Quotes eld
12935 \end_inset
12936
12937 inline
12938 \begin_inset Quotes erd
12939 \end_inset
12940
12941 , at the beginning of the paragraph.
12942  If the 
12943 \begin_inset Flex Code
12944 status open
12945
12946 \begin_layout Plain Layout
12947
12948 \change_inserted 1414654397 1360434743
12949 LatexType
12950 \change_unchanged
12951
12952 \end_layout
12953
12954 \end_inset
12955
12956  is 
12957 \begin_inset Flex Code
12958 status open
12959
12960 \begin_layout Plain Layout
12961
12962 \change_inserted 1414654397 1360434747
12963 Environment
12964 \change_unchanged
12965
12966 \end_layout
12967
12968 \end_inset
12969
12970 , then it will be displayed only in the first paragraph in any sequence
12971  of paragraphs with the same 
12972 \begin_inset Flex Code
12973 status open
12974
12975 \begin_layout Plain Layout
12976
12977 \change_inserted 1414654397 1360434794
12978 Style
12979 \change_unchanged
12980
12981 \end_layout
12982
12983 \end_inset
12984
12985 .
12986 \change_unchanged
12987
12988 \end_layout
12989
12990 \begin_layout Description
12991 \begin_inset Flex Code
12992 status collapsed
12993
12994 \begin_layout Plain Layout
12995
12996 \change_deleted 1414654397 1360434641
12997 Top_Environment
12998 \change_inserted 1414654397 1360434643
12999 Above
13000 \change_unchanged
13001
13002 \end_layout
13003
13004 \end_inset
13005
13006
13007 \begin_inset space ~
13008 \end_inset
13009
13010 and
13011 \begin_inset space ~
13012 \end_inset
13013
13014
13015 \begin_inset Flex Code
13016 status collapsed
13017
13018 \begin_layout Plain Layout
13019 Centered
13020 \change_deleted 1414654397 1360434649
13021 _Top_Environment
13022 \change_unchanged
13023
13024 \end_layout
13025
13026 \end_inset
13027
13028  are special cases of 
13029 \begin_inset Flex Code
13030 status collapsed
13031
13032 \begin_layout Plain Layout
13033 Static
13034 \end_layout
13035
13036 \end_inset
13037
13038 .
13039  The label will be printed above the paragraph
13040 \change_inserted 1414654397 1360434839
13041  either at the beginning of the line or centered
13042 \change_deleted 1414654397 1360434813
13043 , but only at the top of an environment or the top of a chain of paragraphs
13044  with this style.
13045  This might be used with the 
13046 \begin_inset Flex MenuItem
13047 status collapsed
13048
13049 \begin_layout Plain Layout
13050 Abstract
13051 \end_layout
13052
13053 \end_inset
13054
13055  style, for example
13056 \change_unchanged
13057 .
13058 \end_layout
13059
13060 \begin_layout Description
13061 \begin_inset Flex Code
13062 status collapsed
13063
13064 \begin_layout Plain Layout
13065 Sensitive
13066 \end_layout
13067
13068 \end_inset
13069
13070  is a special case for the caption-labels 
13071 \begin_inset Quotes eld
13072 \end_inset
13073
13074 Figure
13075 \begin_inset Quotes erd
13076 \end_inset
13077
13078  and 
13079 \begin_inset Quotes eld
13080 \end_inset
13081
13082 Table
13083 \begin_inset Quotes erd
13084 \end_inset
13085
13086 .
13087 \begin_inset Newline newline
13088 \end_inset
13089
13090
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095 Sensitive
13096 \end_layout
13097
13098 \end_inset
13099
13100  means the (hardcoded) label string depends on the kind of float: It is
13101  hardcoded to be `FloatType N', where N is the value of the counter associated
13102  with the float.
13103  For the case that a caption is inserted outside of a float
13104 \change_inserted 1414654397 1360434861
13105  the
13106 \change_unchanged
13107  
13108 \begin_inset Flex Code
13109 status collapsed
13110
13111 \begin_layout Plain Layout
13112 LabelString
13113 \end_layout
13114
13115 \end_inset
13116
13117  
13118 \change_inserted 1414654397 1360434866
13119 will appear as 
13120 \change_deleted 1414654397 1360434868
13121 should be set to e.
13122 \begin_inset space \thinspace{}
13123 \end_inset
13124
13125 g
13126 \begin_inset space \space{}
13127 \end_inset
13128
13129
13130 \change_unchanged
13131
13132 \begin_inset Quotes eld
13133 \end_inset
13134
13135 Senseless!
13136 \begin_inset Quotes erd
13137 \end_inset
13138
13139 .
13140 \end_layout
13141
13142 \begin_layout Description
13143
13144 \change_deleted 1414654397 1360434875
13145 \begin_inset Flex Code
13146 status collapsed
13147
13148 \begin_layout Plain Layout
13149 Counter
13150 \end_layout
13151
13152 \end_inset
13153
13154  defines automatically numbered labels.
13155  The 
13156 \begin_inset Flex Code
13157 status collapsed
13158
13159 \begin_layout Plain Layout
13160 LabelString
13161 \end_layout
13162
13163 \end_inset
13164
13165  will be expanded to contain any counters: So the result will for example
13166  be 
13167 \begin_inset Quotes eld
13168 \end_inset
13169
13170
13171 \begin_inset Flex Code
13172 status collapsed
13173
13174 \begin_layout Plain Layout
13175 Section 
13176 \backslash
13177 thechapter.
13178 \backslash
13179 thesection
13180 \end_layout
13181
13182 \end_inset
13183
13184
13185 \begin_inset Quotes erd
13186 \end_inset
13187
13188 .
13189  See Section
13190 \begin_inset space ~
13191 \end_inset
13192
13193
13194 \begin_inset CommandInset ref
13195 LatexCommand ref
13196 reference "sub:Counters"
13197
13198 \end_inset
13199
13200  for more information on counters.
13201 \end_layout
13202
13203 \begin_layout Description
13204 \begin_inset Flex Code
13205 status collapsed
13206
13207 \begin_layout Plain Layout
13208 Enumerate
13209 \end_layout
13210
13211 \end_inset
13212
13213  produces the usual sort of enumeration labels.
13214  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13215  small Roman numerals, and uppercase letters for the four possible depths.
13216 \end_layout
13217
13218 \begin_layout Description
13219 \begin_inset Flex Code
13220 status collapsed
13221
13222 \begin_layout Plain Layout
13223 Itemize
13224 \end_layout
13225
13226 \end_inset
13227
13228  produces various bullets at the different levels.
13229  It is also hardcoded.
13230 \end_layout
13231
13232 \begin_layout Description
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 Bibliography
13238 \end_layout
13239
13240 \end_inset
13241
13242  
13243 \change_deleted 1414654397 1360434898
13244 is used internally by LyX and 
13245 \change_unchanged
13246 should be used only with 
13247 \begin_inset Flex Code
13248 status collapsed
13249
13250 \begin_layout Plain Layout
13251 LatexType BibEnvironment
13252 \end_layout
13253
13254 \end_inset
13255
13256 .
13257 \end_layout
13258
13259 \end_deeper
13260 \begin_layout Description
13261 \begin_inset Flex Code
13262 status collapsed
13263
13264 \begin_layout Plain Layout
13265 LangPreamble
13266 \end_layout
13267
13268 \end_inset
13269
13270  Note that this will completely override any prior 
13271 \begin_inset Flex Code
13272 status collapsed
13273
13274 \begin_layout Plain Layout
13275 LangPreamble
13276 \end_layout
13277
13278 \end_inset
13279
13280  declaration for this style.
13281  Must end with 
13282 \begin_inset Quotes eld
13283 \end_inset
13284
13285
13286 \begin_inset Flex Code
13287 status collapsed
13288
13289 \begin_layout Plain Layout
13290 EndLangPreamble
13291 \end_layout
13292
13293 \end_inset
13294
13295
13296 \begin_inset Quotes erd
13297 \end_inset
13298
13299 .
13300  See section 
13301 \begin_inset CommandInset ref
13302 LatexCommand ref
13303 reference "sub:I18n"
13304
13305 \end_inset
13306
13307  for details on its use.
13308 \end_layout
13309
13310 \begin_layout Description
13311 \begin_inset Flex Code
13312 status collapsed
13313
13314 \begin_layout Plain Layout
13315 LatexName
13316 \end_layout
13317
13318 \end_inset
13319
13320  [
13321 \begin_inset Flex Code
13322 status collapsed
13323
13324 \begin_layout Plain Layout
13325 <name>
13326 \end_layout
13327
13328 \end_inset
13329
13330 ] The name of the corresponding LaTeX stuff.
13331  Either the environment or command name.
13332 \end_layout
13333
13334 \begin_layout Description
13335 \begin_inset Flex Code
13336 status collapsed
13337
13338 \begin_layout Plain Layout
13339 LatexParam
13340 \end_layout
13341
13342 \end_inset
13343
13344  [
13345 \begin_inset Flex Code
13346 status collapsed
13347
13348 \begin_layout Plain Layout
13349 <parameter>
13350 \end_layout
13351
13352 \end_inset
13353
13354 ] An optional parameter for the corresponding 
13355 \begin_inset Flex Code
13356 status collapsed
13357
13358 \begin_layout Plain Layout
13359 LatexName
13360 \end_layout
13361
13362 \end_inset
13363
13364  stuff.
13365  This parameter cannot be changed from within LyX
13366 \change_inserted -712698321 1355144804
13367  (use 
13368 \begin_inset Flex Code
13369 status collapsed
13370
13371 \begin_layout Plain Layout
13372
13373 \change_inserted -712698321 1355144804
13374 Argument
13375 \end_layout
13376
13377 \end_inset
13378
13379  for customizable parameters)
13380 \change_unchanged
13381 .
13382
13383 \change_inserted -712698321 1355144804
13384  This will be output as is after all LaTeX 
13385 \begin_inset Flex Code
13386 status collapsed
13387
13388 \begin_layout Plain Layout
13389
13390 \change_inserted -712698321 1355144658
13391 Arguments
13392 \change_unchanged
13393
13394 \end_layout
13395
13396 \end_inset
13397
13398 .
13399 \change_unchanged
13400
13401 \end_layout
13402
13403 \begin_layout Description
13404 \begin_inset Flex Code
13405 status collapsed
13406
13407 \begin_layout Plain Layout
13408 LatexType
13409 \end_layout
13410
13411 \end_inset
13412
13413  [
13414 \begin_inset Flex Code
13415 status collapsed
13416
13417 \begin_layout Plain Layout
13418
13419 \emph on
13420 Paragraph
13421 \emph default
13422 , Command, Environment, Item_Environment,
13423 \begin_inset Newline newline
13424 \end_inset
13425
13426 List_Environment, Bib_Environment
13427 \end_layout
13428
13429 \end_inset
13430
13431 ] How the style should be translated into LaTeX.
13432 \begin_inset Foot
13433 status collapsed
13434
13435 \begin_layout Plain Layout
13436 \begin_inset Flex Code
13437 status collapsed
13438
13439 \begin_layout Plain Layout
13440 LatexType
13441 \end_layout
13442
13443 \end_inset
13444
13445  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13446  Visit the SGML class files for specific examples.
13447 \end_layout
13448
13449 \end_inset
13450
13451
13452 \end_layout
13453
13454 \begin_deeper
13455 \begin_layout Description
13456 \begin_inset Flex Code
13457 status collapsed
13458
13459 \begin_layout Plain Layout
13460 Paragraph
13461 \end_layout
13462
13463 \end_inset
13464
13465  means nothing special.
13466 \end_layout
13467
13468 \begin_layout Description
13469 \begin_inset Flex Code
13470 status collapsed
13471
13472 \begin_layout Plain Layout
13473 Command
13474 \end_layout
13475
13476 \end_inset
13477
13478  means 
13479 \begin_inset Flex Code
13480 status collapsed
13481
13482 \begin_layout Plain Layout
13483
13484 \backslash
13485
13486 \emph on
13487 LatexName
13488 \emph default
13489 {\SpecialChar \ldots{}
13490 }
13491 \end_layout
13492
13493 \end_inset
13494
13495 .
13496 \end_layout
13497
13498 \begin_layout Description
13499 \begin_inset Flex Code
13500 status collapsed
13501
13502 \begin_layout Plain Layout
13503 Environment
13504 \end_layout
13505
13506 \end_inset
13507
13508  means 
13509 \begin_inset Flex Code
13510 status collapsed
13511
13512 \begin_layout Plain Layout
13513
13514 \backslash
13515 begin{
13516 \emph on
13517 LatexName
13518 \emph default
13519 }\SpecialChar \ldots{}
13520
13521 \backslash
13522 end{
13523 \emph on
13524 LatexName
13525 \emph default
13526 }
13527 \end_layout
13528
13529 \end_inset
13530
13531 .
13532  
13533 \end_layout
13534
13535 \begin_layout Description
13536 \begin_inset Flex Code
13537 status collapsed
13538
13539 \begin_layout Plain Layout
13540 Item_Environment
13541 \end_layout
13542
13543 \end_inset
13544
13545  is the same as 
13546 \begin_inset Flex Code
13547 status collapsed
13548
13549 \begin_layout Plain Layout
13550 Environment
13551 \end_layout
13552
13553 \end_inset
13554
13555 , except that an 
13556 \begin_inset Flex Code
13557 status collapsed
13558
13559 \begin_layout Plain Layout
13560
13561 \backslash
13562 item
13563 \end_layout
13564
13565 \end_inset
13566
13567  is generated for each paragraph of this environment.
13568  
13569 \end_layout
13570
13571 \begin_layout Description
13572 \begin_inset Flex Code
13573 status collapsed
13574
13575 \begin_layout Plain Layout
13576 List_Environment
13577 \end_layout
13578
13579 \end_inset
13580
13581  is the same as 
13582 \begin_inset Flex Code
13583 status collapsed
13584
13585 \begin_layout Plain Layout
13586 Item_Environment
13587 \end_layout
13588
13589 \end_inset
13590
13591 , except that
13592 \begin_inset Newline newline
13593 \end_inset
13594
13595
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600 LabelWidthString
13601 \end_layout
13602
13603 \end_inset
13604
13605  is passed as an argument to the environment.
13606 \begin_inset Newline newline
13607 \end_inset
13608
13609
13610 \begin_inset Flex Code
13611 status collapsed
13612
13613 \begin_layout Plain Layout
13614 LabelWidthString
13615 \end_layout
13616
13617 \end_inset
13618
13619  can be defined in the 
13620 \begin_inset Flex MenuItem
13621 status collapsed
13622
13623 \begin_layout Plain Layout
13624 Edit\SpecialChar \menuseparator
13625 Paragraph
13626 \begin_inset space ~
13627 \end_inset
13628
13629 settings
13630 \end_layout
13631
13632 \end_inset
13633
13634  dialog.
13635 \end_layout
13636
13637 \begin_layout Description
13638 \begin_inset Flex Code
13639 status collapsed
13640
13641 \begin_layout Plain Layout
13642 Bib_Environment
13643 \end_layout
13644
13645 \end_inset
13646
13647  is like 
13648 \begin_inset Flex Code
13649 status collapsed
13650
13651 \begin_layout Plain Layout
13652 Environment
13653 \end_layout
13654
13655 \end_inset
13656
13657  but adds additionally the necessary mandatory argument (the longest label)
13658  to the begin statement of the bibliography environment:
13659 \begin_inset Newline newline
13660 \end_inset
13661
13662
13663 \begin_inset Flex Code
13664 status collapsed
13665
13666 \begin_layout Plain Layout
13667
13668 \backslash
13669 begin{thebibliography}{99}
13670 \end_layout
13671
13672 \end_inset
13673
13674  It is therefore only useful for bibliography environments.
13675  The default longest label 
13676 \begin_inset Quotes eld
13677 \end_inset
13678
13679 99
13680 \begin_inset Quotes erd
13681 \end_inset
13682
13683  can be changed by the user in the paragraph settings of a bibliography
13684  item.
13685 \end_layout
13686
13687 \begin_layout Standard
13688 Putting the last few things together, the LaTeX output will be either: 
13689 \end_layout
13690
13691 \begin_layout LyX-Code
13692
13693 \backslash
13694 LatexName[LatexParam]{\SpecialChar \ldots{}
13695 }
13696 \end_layout
13697
13698 \begin_layout Standard
13699 or: 
13700 \end_layout
13701
13702 \begin_layout LyX-Code
13703
13704 \backslash
13705 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
13706  
13707 \backslash
13708 end{LatexName}.
13709 \end_layout
13710
13711 \begin_layout Standard
13712 depending upon the LaTeX type.
13713 \end_layout
13714
13715 \end_deeper
13716 \begin_layout Description
13717
13718 \change_inserted -712698321 1354263086
13719 \begin_inset Flex Code
13720 status collapsed
13721
13722 \begin_layout Plain Layout
13723
13724 \change_inserted -712698321 1353866852
13725 LeftDelim
13726 \end_layout
13727
13728 \end_inset
13729
13730  [
13731 \begin_inset Flex Code
13732 status collapsed
13733
13734 \begin_layout Plain Layout
13735
13736 \change_inserted -712698321 1353866852
13737 string
13738 \end_layout
13739
13740 \end_inset
13741
13742 ] A string that is put at the beginning of the style content.
13743  A line break in the output can be indicated by 
13744 \begin_inset Flex Code
13745 status collapsed
13746
13747 \begin_layout Plain Layout
13748
13749 \change_inserted -712698321 1354263086
13750 <br/>
13751 \end_layout
13752
13753 \end_inset
13754
13755 .
13756 \change_unchanged
13757
13758 \end_layout
13759
13760 \begin_layout Description
13761 \begin_inset Flex Code
13762 status collapsed
13763
13764 \begin_layout Plain Layout
13765 LeftMargin
13766 \end_layout
13767
13768 \end_inset
13769
13770  [
13771 \begin_inset Flex Code
13772 status collapsed
13773
13774 \begin_layout Plain Layout
13775 string=""
13776 \end_layout
13777
13778 \end_inset
13779
13780 ] If you put styles into environments, the different 
13781 \begin_inset Flex Code
13782 status collapsed
13783
13784 \begin_layout Plain Layout
13785 LeftMargin
13786 \end_layout
13787
13788 \end_inset
13789
13790  are not simply added, but added with a factor 
13791 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13792 \end_inset
13793
13794 .
13795  Note that this parameter is also used when 
13796 \begin_inset Flex Code
13797 status collapsed
13798
13799 \begin_layout Plain Layout
13800 Margin
13801 \end_layout
13802
13803 \end_inset
13804
13805  is defined as 
13806 \begin_inset Flex Code
13807 status collapsed
13808
13809 \begin_layout Plain Layout
13810 Manual
13811 \end_layout
13812
13813 \end_inset
13814
13815  or 
13816 \begin_inset Flex Code
13817 status collapsed
13818
13819 \begin_layout Plain Layout
13820 Dynamic
13821 \end_layout
13822
13823 \end_inset
13824
13825 .
13826  Then it is added to the manual or dynamic margin.
13827 \begin_inset Newline newline
13828 \end_inset
13829
13830 For example 
13831 \begin_inset Quotes eld
13832 \end_inset
13833
13834
13835 \begin_inset Flex Code
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 MM
13840 \end_layout
13841
13842 \end_inset
13843
13844
13845 \begin_inset Quotes erd
13846 \end_inset
13847
13848  means that the paragraph is indented with the width of 
13849 \begin_inset Quotes eld
13850 \end_inset
13851
13852
13853 \begin_inset Flex Code
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 MM
13858 \end_layout
13859
13860 \end_inset
13861
13862
13863 \begin_inset Quotes erd
13864 \end_inset
13865
13866  in the normal font.
13867  You can get a negative width by prefixing the string with 
13868 \begin_inset Quotes eld
13869 \end_inset
13870
13871
13872 \begin_inset Flex Code
13873 status collapsed
13874
13875 \begin_layout Plain Layout
13876 -
13877 \end_layout
13878
13879 \end_inset
13880
13881
13882 \begin_inset Quotes erd
13883 \end_inset
13884
13885 .
13886  This way was chosen so that the look is the same with each used screen
13887  font.
13888 \end_layout
13889
13890 \begin_layout Description
13891 \begin_inset Flex Code
13892 status collapsed
13893
13894 \begin_layout Plain Layout
13895 Margin
13896 \end_layout
13897
13898 \end_inset
13899
13900  [
13901 \begin_inset Flex Code
13902 status collapsed
13903
13904 \begin_layout Plain Layout
13905
13906 \emph on
13907 Static
13908 \emph default
13909 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13910 \end_layout
13911
13912 \end_inset
13913
13914
13915 \begin_inset Newline newline
13916 \end_inset
13917
13918 The kind of margin that the style has on the left side.
13919 \end_layout
13920
13921 \begin_deeper
13922 \begin_layout Description
13923 \begin_inset Flex Code
13924 status collapsed
13925
13926 \begin_layout Plain Layout
13927 Static
13928 \end_layout
13929
13930 \end_inset
13931
13932  just means a fixed margin.
13933 \end_layout
13934
13935 \begin_layout Description
13936 \begin_inset Flex Code
13937 status collapsed
13938
13939 \begin_layout Plain Layout
13940 Manual
13941 \end_layout
13942
13943 \end_inset
13944
13945  means that the left margin depends on the string entered in the 
13946 \begin_inset Flex MenuItem
13947 status collapsed
13948
13949 \begin_layout Plain Layout
13950 Edit\SpecialChar \menuseparator
13951 Paragraph
13952 \begin_inset space ~
13953 \end_inset
13954
13955 Settings
13956 \end_layout
13957
13958 \end_inset
13959
13960  dialog.
13961  This is used to typeset nice lists without tabulators.
13962 \end_layout
13963
13964 \begin_layout Description
13965 \begin_inset Flex Code
13966 status collapsed
13967
13968 \begin_layout Plain Layout
13969 Dynamic
13970 \end_layout
13971
13972 \end_inset
13973
13974  means that the margin depends on the size of the label.
13975  This is used for automatic enumerated headlines.
13976  It is obvious that the headline 
13977 \begin_inset Quotes eld
13978 \end_inset
13979
13980 5.4.3.2.1 Very long headline
13981 \begin_inset Quotes erd
13982 \end_inset
13983
13984  must have a wider left margin (as wide as 
13985 \begin_inset Quotes eld
13986 \end_inset
13987
13988 5.4.3.2.1
13989 \begin_inset Quotes erd
13990 \end_inset
13991
13992  plus the space) than 
13993 \begin_inset Quotes eld
13994 \end_inset
13995
13996 3.2 Very long headline
13997 \begin_inset Quotes erd
13998 \end_inset
13999
14000 , even if standard 
14001 \begin_inset Quotes eld
14002 \end_inset
14003
14004 word processors
14005 \begin_inset Quotes erd
14006 \end_inset
14007
14008  are not able to do this.
14009 \end_layout
14010
14011 \begin_layout Description
14012 \begin_inset Flex Code
14013 status collapsed
14014
14015 \begin_layout Plain Layout
14016 First_Dynamic
14017 \end_layout
14018
14019 \end_inset
14020
14021  is similar, but only the very first row of the paragraph is dynamic, while
14022  the others are static; this is used, for example, for descriptions.
14023 \end_layout
14024
14025 \begin_layout Description
14026 \begin_inset Flex Code
14027 status collapsed
14028
14029 \begin_layout Plain Layout
14030 Right_Address_Box
14031 \end_layout
14032
14033 \end_inset
14034
14035  means the margin is chosen in a way that the longest row of this paragraph
14036  fits to the right margin.
14037  This is used to typeset an address on the right edge of the page.
14038 \end_layout
14039
14040 \end_deeper
14041 \begin_layout Description
14042 \begin_inset Flex Code
14043 status collapsed
14044
14045 \begin_layout Plain Layout
14046 NeedProtect
14047 \end_layout
14048
14049 \end_inset
14050
14051  [
14052 \begin_inset Flex Code
14053 status collapsed
14054
14055 \begin_layout Plain Layout
14056
14057 \emph on
14058 0
14059 \end_layout
14060
14061 \end_inset
14062
14063 ,
14064 \begin_inset space \thinspace{}
14065 \end_inset
14066
14067
14068 \begin_inset Flex Code
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 1
14073 \end_layout
14074
14075 \end_inset
14076
14077 ] Whether fragile commands in this style should be 
14078 \begin_inset Flex Code
14079 status collapsed
14080
14081 \begin_layout Plain Layout
14082
14083 \backslash
14084 protect
14085 \end_layout
14086
14087 \end_inset
14088
14089 'ed.
14090  (Note: This is 
14091 \emph on
14092 not
14093 \emph default
14094  whether this command should itself be protected.)
14095 \end_layout
14096
14097 \begin_layout Description
14098 \begin_inset Flex Code
14099 status collapsed
14100
14101 \begin_layout Plain Layout
14102 Newline
14103 \end_layout
14104
14105 \end_inset
14106
14107  [
14108 \begin_inset Flex Code
14109 status collapsed
14110
14111 \begin_layout Plain Layout
14112 0
14113 \end_layout
14114
14115 \end_inset
14116
14117 ,
14118 \begin_inset space \thinspace{}
14119 \end_inset
14120
14121
14122 \begin_inset Flex Code
14123 status collapsed
14124
14125 \begin_layout Plain Layout
14126
14127 \emph on
14128 1
14129 \end_layout
14130
14131 \end_inset
14132
14133 ] Whether newlines are translated into LaTeX newlines (
14134 \begin_inset Flex Code
14135 status collapsed
14136
14137 \begin_layout Plain Layout
14138
14139 \backslash
14140
14141 \backslash
14142
14143 \end_layout
14144
14145 \end_inset
14146
14147 ) or not.
14148  The translation can be switched off to allow more comfortable LaTeX editing
14149  inside LyX.
14150 \end_layout
14151
14152 \begin_layout Description
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 NextNoIndent
14158 \end_layout
14159
14160 \end_inset
14161
14162  [
14163 \begin_inset Flex Code
14164 status collapsed
14165
14166 \begin_layout Plain Layout
14167
14168 \emph on
14169 0
14170 \end_layout
14171
14172 \end_inset
14173
14174 ,
14175 \begin_inset space \thinspace{}
14176 \end_inset
14177
14178
14179 \begin_inset Flex Code
14180 status collapsed
14181
14182 \begin_layout Plain Layout
14183 1
14184 \end_layout
14185
14186 \end_inset
14187
14188 ] If set to true, and if 
14189 \begin_inset Flex Code
14190 status collapsed
14191
14192 \begin_layout Plain Layout
14193 DefaultStyle
14194 \end_layout
14195
14196 \end_inset
14197
14198  (usually 
14199 \begin_inset Flex Code
14200 status collapsed
14201
14202 \begin_layout Plain Layout
14203 Standard
14204 \end_layout
14205
14206 \end_inset
14207
14208 ) paragraphs are being indented, then the indentation of such a paragraph
14209  following one of this type will be suppressed.
14210  (So this will not affect the display of non-default paragraphs.)
14211 \end_layout
14212
14213 \begin_layout Description
14214 \begin_inset Flex Code
14215 status collapsed
14216
14217 \begin_layout Plain Layout
14218 ObsoletedBy
14219 \end_layout
14220
14221 \end_inset
14222
14223  [
14224 \begin_inset Flex Code
14225 status collapsed
14226
14227 \begin_layout Plain Layout
14228 <name>
14229 \end_layout
14230
14231 \end_inset
14232
14233 ] Name of a style that has replaced this style.
14234  This is used to rename a style, while keeping backward compatibility.
14235 \end_layout
14236
14237 \begin_layout Description
14238
14239 \change_deleted -712698321 1353679722
14240 \begin_inset Flex Code
14241 status collapsed
14242
14243 \begin_layout Plain Layout
14244 OptionalArgs
14245 \end_layout
14246
14247 \end_inset
14248
14249  [
14250 \begin_inset Flex Code
14251 status collapsed
14252
14253 \begin_layout Plain Layout
14254 int=0
14255 \end_layout
14256
14257 \end_inset
14258
14259 ] The number of optional arguments that can be used with this style.
14260  This is useful for things like section headings, and only makes sense with
14261  LaTeX.
14262  Note that, on output, the optional arguments will all precede any required
14263  arguments (see below).
14264  So one can have constructs like:
14265 \end_layout
14266
14267 \begin_deeper
14268 \begin_layout LyX-Code
14269
14270 \change_deleted -712698321 1353679722
14271
14272 \backslash
14273 mycmd[opt1]{req1}{contents of paragraph}
14274 \end_layout
14275
14276 \begin_layout Standard
14277
14278 \change_deleted -712698321 1353679722
14279 but one cannot have things like: 
14280 \end_layout
14281
14282 \begin_layout LyX-Code
14283
14284 \change_deleted -712698321 1353679722
14285
14286 \backslash
14287 mycmd[opt1]{req1}[opt2]{contents of paragraph}
14288 \end_layout
14289
14290 \begin_layout Standard
14291
14292 \change_deleted -712698321 1353679722
14293 at least, not without ERT (with which you can have anything).
14294  
14295 \change_unchanged
14296
14297 \end_layout
14298
14299 \end_deeper
14300 \begin_layout Description
14301 \begin_inset Flex Code
14302 status collapsed
14303
14304 \begin_layout Plain Layout
14305 ParbreakIsNewline
14306 \end_layout
14307
14308 \end_inset
14309
14310  [
14311 \begin_inset Flex Code
14312 status collapsed
14313
14314 \begin_layout Plain Layout
14315
14316 \emph on
14317 0
14318 \end_layout
14319
14320 \end_inset
14321
14322 ,
14323 \begin_inset space \thinspace{}
14324 \end_inset
14325
14326
14327 \begin_inset Flex Code
14328 status collapsed
14329
14330 \begin_layout Plain Layout
14331 1
14332 \end_layout
14333
14334 \end_inset
14335
14336 ] Indicates that paragraphs will not be separated by an empty line in LaTeX
14337  output, but only by a line break; together with 
14338 \begin_inset Flex Code
14339 status collapsed
14340
14341 \begin_layout Plain Layout
14342 PassThru 1
14343 \end_layout
14344
14345 \end_inset
14346
14347 , this allows to emulate a plain text editor (like the ERT inset).
14348 \end_layout
14349
14350 \begin_layout Description
14351 \begin_inset Flex Code
14352 status collapsed
14353
14354 \begin_layout Plain Layout
14355 ParIndent
14356 \end_layout
14357
14358 \end_inset
14359
14360  [
14361 \begin_inset Flex Code
14362 status collapsed
14363
14364 \begin_layout Plain Layout
14365 string=""
14366 \end_layout
14367
14368 \end_inset
14369
14370 ] The indent of the very first line of a paragraph.
14371  The
14372 \begin_inset Newline newline
14373 \end_inset
14374
14375
14376 \begin_inset Flex Code
14377 status collapsed
14378
14379 \begin_layout Plain Layout
14380 Parindent
14381 \end_layout
14382
14383 \end_inset
14384
14385  will be fixed for a certain style.
14386  The exception is the default style, since the indentation for these paragraphs
14387  can be prohibited with 
14388 \begin_inset Flex Code
14389 status collapsed
14390
14391 \begin_layout Plain Layout
14392 NextNoIndent
14393 \end_layout
14394
14395 \end_inset
14396
14397 .
14398  Also, 
14399 \begin_inset Flex Code
14400 status collapsed
14401
14402 \begin_layout Plain Layout
14403 Standard
14404 \end_layout
14405
14406 \end_inset
14407
14408  style paragraphs inside environments use the 
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 Parindent
14414 \end_layout
14415
14416 \end_inset
14417
14418  of the environment, not their native one.
14419  For example, 
14420 \begin_inset Flex Code
14421 status collapsed
14422
14423 \begin_layout Plain Layout
14424 Standard
14425 \end_layout
14426
14427 \end_inset
14428
14429  paragraphs inside an enumeration are not indented.
14430 \end_layout
14431
14432 \begin_layout Description
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 ParSep
14438 \end_layout
14439
14440 \end_inset
14441
14442  [
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447 float=0
14448 \end_layout
14449
14450 \end_inset
14451
14452 ] The vertical space between two paragraphs of this style.
14453 \end_layout
14454
14455 \begin_layout Description
14456 \begin_inset Flex Code
14457 status collapsed
14458
14459 \begin_layout Plain Layout
14460 Parskip
14461 \end_layout
14462
14463 \end_inset
14464
14465  [
14466 \begin_inset Flex Code
14467 status collapsed
14468
14469 \begin_layout Plain Layout
14470 float=0
14471 \end_layout
14472
14473 \end_inset
14474
14475 ] LyX allows the user to choose either 
14476 \begin_inset Quotes eld
14477 \end_inset
14478
14479 indent
14480 \begin_inset Quotes erd
14481 \end_inset
14482
14483  or 
14484 \begin_inset Quotes eld
14485 \end_inset
14486
14487 skip
14488 \begin_inset Quotes erd
14489 \end_inset
14490
14491  to separate paragraphs.
14492  When 
14493 \begin_inset Quotes eld
14494 \end_inset
14495
14496 indent
14497 \begin_inset Quotes erd
14498 \end_inset
14499
14500  is chosen, 
14501 \begin_inset Flex Code
14502 status collapsed
14503
14504 \begin_layout Plain Layout
14505 Parskip
14506 \end_layout
14507
14508 \end_inset
14509
14510  is ignored.
14511  When 
14512 \begin_inset Quotes eld
14513 \end_inset
14514
14515 skip
14516 \begin_inset Quotes erd
14517 \end_inset
14518
14519  is chosen, 
14520 \begin_inset Flex Code
14521 status collapsed
14522
14523 \begin_layout Plain Layout
14524 ParIndent
14525 \end_layout
14526
14527 \end_inset
14528
14529  is ignored and all paragraphs are separated by the 
14530 \begin_inset Flex Code
14531 status collapsed
14532
14533 \begin_layout Plain Layout
14534 Parskip
14535 \end_layout
14536
14537 \end_inset
14538
14539  argument.
14540  The vertical space is calculated with 
14541 \begin_inset Flex Code
14542 status collapsed
14543
14544 \begin_layout Plain Layout
14545 Parskip
14546 \begin_inset space ~
14547 \end_inset
14548
14549 * DefaultHeight
14550 \end_layout
14551
14552 \end_inset
14553
14554  where 
14555 \begin_inset Flex Code
14556 status collapsed
14557
14558 \begin_layout Plain Layout
14559 DefaultHeight
14560 \end_layout
14561
14562 \end_inset
14563
14564  is the height of a row with the normal font.
14565  This way, the look stays the same with different screen fonts.
14566 \end_layout
14567
14568 \begin_layout Description
14569 \begin_inset Flex Code
14570 status collapsed
14571
14572 \begin_layout Plain Layout
14573 PassThru
14574 \end_layout
14575
14576 \end_inset
14577
14578  [
14579 \begin_inset Flex Code
14580 status collapsed
14581
14582 \begin_layout Plain Layout
14583
14584 \emph on
14585 0
14586 \end_layout
14587
14588 \end_inset
14589
14590 ,
14591 \begin_inset space \thinspace{}
14592 \end_inset
14593
14594
14595 \begin_inset Flex Code
14596 status collapsed
14597
14598 \begin_layout Plain Layout
14599 1
14600 \end_layout
14601
14602 \end_inset
14603
14604 ] Whether the contents of this paragraph should be output in raw form, meaning
14605  without special translations that LaTeX would require.
14606 \end_layout
14607
14608 \begin_layout Description
14609 \begin_inset Flex Code
14610 status collapsed
14611
14612 \begin_layout Plain Layout
14613 Preamble
14614 \end_layout
14615
14616 \end_inset
14617
14618  Information to be included in the LaTeX preamble when this style is used.
14619  Used to define macros, load packages, etc., required by this particular
14620  style.
14621  Must end with 
14622 \begin_inset Quotes eld
14623 \end_inset
14624
14625
14626 \begin_inset Flex Code
14627 status collapsed
14628
14629 \begin_layout Plain Layout
14630 EndPreamble
14631 \end_layout
14632
14633 \end_inset
14634
14635
14636 \begin_inset Quotes erd
14637 \end_inset
14638
14639 .
14640 \end_layout
14641
14642 \begin_layout Description
14643 \begin_inset Flex Code
14644 status collapsed
14645
14646 \begin_layout Plain Layout
14647 RefPrefix
14648 \end_layout
14649
14650 \end_inset
14651
14652  [
14653 \begin_inset Flex Code
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 string
14658 \end_layout
14659
14660 \end_inset
14661
14662 ] The prefix to use when creating labels referring to paragraphs of this
14663  type.
14664  This allows the use of formatted references.
14665 \end_layout
14666
14667 \begin_layout Description
14668
14669 \change_deleted -712698321 1353681258
14670 \begin_inset Flex Code
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 RequiredArgs
14675 \end_layout
14676
14677 \end_inset
14678
14679  [
14680 \begin_inset Flex Code
14681 status collapsed
14682
14683 \begin_layout Plain Layout
14684 int=0
14685 \end_layout
14686
14687 \end_inset
14688
14689 ] The number of required arguments that the LaTeX command or environment
14690  corresponding to this style expects.
14691  In the case of a command, these are required arguments 
14692 \emph on
14693 other than
14694 \emph default
14695  that associated with the content of the paragraph itself.
14696  These do not actually have to be provided: LyX will output empty arguments
14697  if necessary.
14698  Note that optional arguments will be output before required arguments.
14699  See the discussion of the 
14700 \begin_inset Flex Code
14701 status collapsed
14702
14703 \begin_layout Plain Layout
14704 OptionalArgs
14705 \end_layout
14706
14707 \end_inset
14708
14709  tag above for more information.
14710 \change_unchanged
14711
14712 \end_layout
14713
14714 \begin_layout Description
14715 \begin_inset Flex Code
14716 status collapsed
14717
14718 \begin_layout Plain Layout
14719 Requires 
14720 \end_layout
14721
14722 \end_inset
14723
14724  [
14725 \begin_inset Flex Code
14726 status collapsed
14727
14728 \begin_layout Plain Layout
14729 string
14730 \end_layout
14731
14732 \end_inset
14733
14734 ] Whether the style requires the feature 
14735 \begin_inset Flex Code
14736 status collapsed
14737
14738 \begin_layout Plain Layout
14739 string
14740 \end_layout
14741
14742 \end_inset
14743
14744 .
14745  See the description of 
14746 \begin_inset Flex Code
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 Provides
14751 \end_layout
14752
14753 \end_inset
14754
14755  above (sec.
14756 \begin_inset space ~
14757 \end_inset
14758
14759
14760 \begin_inset CommandInset ref
14761 LatexCommand ref
14762 reference "sub:General-text-class"
14763
14764 \end_inset
14765
14766 ) for information on `features'.
14767 \end_layout
14768
14769 \begin_layout Description
14770
14771 \change_inserted -712698321 1353693371
14772 \begin_inset Flex Code
14773 status collapsed
14774
14775 \begin_layout Plain Layout
14776
14777 \change_inserted -712698321 1353693146
14778 ResetArgs
14779 \change_unchanged
14780
14781 \end_layout
14782
14783 \end_inset
14784
14785  [
14786 \begin_inset Flex Code
14787 status collapsed
14788
14789 \begin_layout Plain Layout
14790
14791 \change_inserted -712698321 1353693235
14792
14793 \emph on
14794 0
14795 \end_layout
14796
14797 \end_inset
14798
14799 ,
14800 \begin_inset Flex Code
14801 status collapsed
14802
14803 \begin_layout Plain Layout
14804
14805 \change_inserted -712698321 1353693235
14806 1
14807 \end_layout
14808
14809 \end_inset
14810
14811 ] Resets the LaTeX arguments of this style (as defined via the 
14812 \begin_inset Flex Code
14813 status collapsed
14814
14815 \begin_layout Plain Layout
14816
14817 \change_inserted -712698321 1353693371
14818 Argument
14819 \change_unchanged
14820
14821 \end_layout
14822
14823 \end_inset
14824
14825  tag).
14826  This is useful if you have copied a style via 
14827 \begin_inset Flex Code
14828 status collapsed
14829
14830 \begin_layout Plain Layout
14831
14832 \change_inserted -712698321 1353693302
14833 CopyStyle
14834 \change_unchanged
14835
14836 \end_layout
14837
14838 \end_inset
14839
14840 , but you do not want to inherit its (required and optional) arguments.
14841 \change_unchanged
14842
14843 \end_layout
14844
14845 \begin_layout Description
14846
14847 \change_inserted -712698321 1354263074
14848 \begin_inset Flex Code
14849 status collapsed
14850
14851 \begin_layout Plain Layout
14852
14853 \change_inserted -712698321 1353866876
14854 RightDelim
14855 \end_layout
14856
14857 \end_inset
14858
14859  [
14860 \begin_inset Flex Code
14861 status collapsed
14862
14863 \begin_layout Plain Layout
14864
14865 \change_inserted -712698321 1353866873
14866 string
14867 \end_layout
14868
14869 \end_inset
14870
14871 ] A string that is put at the end of the layout content.
14872  A line break in the output can be indicated by 
14873 \begin_inset Flex Code
14874 status collapsed
14875
14876 \begin_layout Plain Layout
14877
14878 \change_inserted -712698321 1354263069
14879 <br/>
14880 \change_unchanged
14881
14882 \end_layout
14883
14884 \end_inset
14885
14886 .
14887 \end_layout
14888
14889 \begin_layout Description
14890 \begin_inset Flex Code
14891 status collapsed
14892
14893 \begin_layout Plain Layout
14894 RightMargin
14895 \end_layout
14896
14897 \end_inset
14898
14899  [
14900 \begin_inset Flex Code
14901 status collapsed
14902
14903 \begin_layout Plain Layout
14904 string=""
14905 \end_layout
14906
14907 \end_inset
14908
14909 ] Similar to 
14910 \begin_inset Flex Code
14911 status collapsed
14912
14913 \begin_layout Plain Layout
14914 LeftMargin
14915 \end_layout
14916
14917 \end_inset
14918
14919 .
14920 \end_layout
14921
14922 \begin_layout Description
14923 \begin_inset Flex Code
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927 Spacing
14928 \end_layout
14929
14930 \end_inset
14931
14932  [
14933 \begin_inset Flex Code
14934 status collapsed
14935
14936 \begin_layout Plain Layout
14937
14938 \emph on
14939 single
14940 \end_layout
14941
14942 \end_inset
14943
14944
14945 \begin_inset Flex Code
14946 status collapsed
14947
14948 \begin_layout Plain Layout
14949 onehalf
14950 \end_layout
14951
14952 \end_inset
14953
14954
14955 \begin_inset Flex Code
14956 status collapsed
14957
14958 \begin_layout Plain Layout
14959 double
14960 \end_layout
14961
14962 \end_inset
14963
14964
14965 \begin_inset Flex Code
14966 status collapsed
14967
14968 \begin_layout Plain Layout
14969 other
14970 \begin_inset space ~
14971 \end_inset
14972
14973 <value>
14974 \end_layout
14975
14976 \end_inset
14977
14978 ] This defines what the default spacing should be in the style.
14979  The arguments 
14980 \begin_inset Flex Code
14981 status collapsed
14982
14983 \begin_layout Plain Layout
14984 single
14985 \end_layout
14986
14987 \end_inset
14988
14989
14990 \begin_inset Flex Code
14991 status collapsed
14992
14993 \begin_layout Plain Layout
14994 onehalf
14995 \end_layout
14996
14997 \end_inset
14998
14999  and 
15000 \begin_inset Flex Code
15001 status collapsed
15002
15003 \begin_layout Plain Layout
15004 double
15005 \end_layout
15006
15007 \end_inset
15008
15009  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15010  If you specify the argument 
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 other
15016 \end_layout
15017
15018 \end_inset
15019
15020 , then you must also provide a value argument which will be the actual multiplie
15021 r value.
15022  Note that, contrary to other parameters, 
15023 \begin_inset Flex Code
15024 status collapsed
15025
15026 \begin_layout Plain Layout
15027 Spacing
15028 \end_layout
15029
15030 \end_inset
15031
15032  implies the generation of specific LaTeX code, using the LaTeX package
15033  
15034 \family roman
15035
15036 \begin_inset Flex Code
15037 status collapsed
15038
15039 \begin_layout Plain Layout
15040 setspace
15041 \end_layout
15042
15043 \end_inset
15044
15045 .
15046 \end_layout
15047
15048 \begin_layout Description
15049 \begin_inset Flex Code
15050 status collapsed
15051
15052 \begin_layout Plain Layout
15053 Spellcheck
15054 \end_layout
15055
15056 \end_inset
15057
15058  [
15059 \begin_inset Flex Code
15060 status collapsed
15061
15062 \begin_layout Plain Layout
15063 0
15064 \end_layout
15065
15066 \end_inset
15067
15068 ,
15069 \begin_inset space \thinspace{}
15070 \end_inset
15071
15072
15073 \begin_inset Flex Code
15074 status collapsed
15075
15076 \begin_layout Plain Layout
15077
15078 \emph on
15079 1
15080 \end_layout
15081
15082 \end_inset
15083
15084 ] Allow spell-checking paragraphs of this style.
15085  Default is true.
15086 \end_layout
15087
15088 \begin_layout Description
15089 \begin_inset Flex Code
15090 status collapsed
15091
15092 \begin_layout Plain Layout
15093 TextFont
15094 \end_layout
15095
15096 \end_inset
15097
15098  The font used for the text body .
15099  See section 
15100 \begin_inset CommandInset ref
15101 LatexCommand ref
15102 reference "sub:Font-description"
15103
15104 \end_inset
15105
15106 .
15107 \end_layout
15108
15109 \begin_layout Description
15110 \begin_inset Flex Code
15111 status collapsed
15112
15113 \begin_layout Plain Layout
15114 TocLevel
15115 \end_layout
15116
15117 \end_inset
15118
15119
15120 \series medium
15121  [
15122 \begin_inset Flex Code
15123 status collapsed
15124
15125 \begin_layout Plain Layout
15126
15127 \series medium
15128 int=3
15129 \end_layout
15130
15131 \end_inset
15132
15133 ]
15134 \series default
15135  The level of the style in the table of contents.
15136  This is used for automatic numbering of section headings.
15137 \end_layout
15138
15139 \begin_layout Description
15140 \begin_inset Flex Code
15141 status collapsed
15142
15143 \begin_layout Plain Layout
15144 TopSep
15145 \end_layout
15146
15147 \end_inset
15148
15149  [
15150 \begin_inset Flex Code
15151 status collapsed
15152
15153 \begin_layout Plain Layout
15154 float=0
15155 \end_layout
15156
15157 \end_inset
15158
15159 ] The vertical space with which the very first of a chain of paragraphs
15160  with this style is separated from the previous paragraph.
15161  If the previous paragraph has another style, the separations are not simply
15162  added, but the maximum is taken.
15163 \end_layout
15164
15165 \begin_layout Subsection
15166 \begin_inset CommandInset label
15167 LatexCommand label
15168 name "sub:I18n"
15169
15170 \end_inset
15171
15172 Internationalization of Paragraph Styles
15173 \end_layout
15174
15175 \begin_layout Standard
15176 LyX has long supported internationalization of layout information, but,
15177  until version 2.0, this applied only to the user interface and not to, say,
15178  PDF output.
15179  Thus, French authors were forced to resort to ugly hacks if they wanted
15180  `
15181 \lang french
15182 Théorème
15183 \lang english
15184  1' instead of `Theorem 1'.
15185  Thanks to Georg Baum, that is no longer the case.
15186 \end_layout
15187
15188 \begin_layout Standard
15189 If a 
15190 \begin_inset Flex Code
15191 status collapsed
15192
15193 \begin_layout Plain Layout
15194 Style
15195 \end_layout
15196
15197 \end_inset
15198
15199  defines text that is to appear in the typeset document, it may use 
15200 \begin_inset Flex Code
15201 status collapsed
15202
15203 \begin_layout Plain Layout
15204 LangPreamble
15205 \end_layout
15206
15207 \end_inset
15208
15209  and 
15210 \begin_inset Flex Code
15211 status collapsed
15212
15213 \begin_layout Plain Layout
15214 BabelPreamble
15215 \end_layout
15216
15217 \end_inset
15218
15219  to support non-English and even multi-language documents correctly.
15220  The following excerpt (from the 
15221 \begin_inset Flex Code
15222 status collapsed
15223
15224 \begin_layout Plain Layout
15225 theorems-ams.inc
15226 \end_layout
15227
15228 \end_inset
15229
15230  file) shows how this works:
15231 \end_layout
15232
15233 \begin_layout LyX-Code
15234 Preamble
15235 \end_layout
15236
15237 \begin_deeper
15238 \begin_layout LyX-Code
15239   
15240 \backslash
15241 theoremstyle{remark}
15242 \end_layout
15243
15244 \begin_layout LyX-Code
15245   
15246 \backslash
15247 newtheorem{claim}[thm]{
15248 \backslash
15249 protect
15250 \backslash
15251 claimname}
15252 \end_layout
15253
15254 \begin_layout LyX-Code
15255 EndPreamble
15256 \end_layout
15257
15258 \begin_layout LyX-Code
15259 LangPreamble
15260 \end_layout
15261
15262 \begin_layout LyX-Code
15263   
15264 \backslash
15265 providecommand{
15266 \backslash
15267 claimname}{_(Claim)}
15268 \end_layout
15269
15270 \begin_layout LyX-Code
15271 EndLangPreamble
15272 \end_layout
15273
15274 \begin_layout LyX-Code
15275 BabelPreamble
15276 \end_layout
15277
15278 \begin_layout LyX-Code
15279     
15280 \backslash
15281 addto
15282 \backslash
15283 captions$$lang{
15284 \backslash
15285 renewcommand{
15286 \backslash
15287 claimname}{_(Claim)}}
15288 \end_layout
15289
15290 \begin_layout LyX-Code
15291 EndBabelPreamble
15292 \end_layout
15293
15294 \end_deeper
15295 \begin_layout Standard
15296 In principle, any legal LaTeX may appear in the 
15297 \begin_inset Flex Code
15298 status collapsed
15299
15300 \begin_layout Plain Layout
15301 LangPreamble
15302 \end_layout
15303
15304 \end_inset
15305
15306  and 
15307 \begin_inset Flex Code
15308 status collapsed
15309
15310 \begin_layout Plain Layout
15311 BabelPreamble
15312 \end_layout
15313
15314 \end_inset
15315
15316  tags, but in practice they will typically look as they do here.
15317  The key to correct translation of the typeset text is the definition of
15318  the LaTeX command 
15319 \begin_inset Flex Code
15320 status collapsed
15321
15322 \begin_layout Plain Layout
15323
15324 \backslash
15325 claimname
15326 \end_layout
15327
15328 \end_inset
15329
15330  and its use in 
15331 \begin_inset Flex Code
15332 status collapsed
15333
15334 \begin_layout Plain Layout
15335
15336 \backslash
15337 newtheorem
15338 \end_layout
15339
15340 \end_inset
15341
15342 .
15343  
15344 \end_layout
15345
15346 \begin_layout Standard
15347 The 
15348 \begin_inset Flex Code
15349 status collapsed
15350
15351 \begin_layout Plain Layout
15352 LangPreamble
15353 \end_layout
15354
15355 \end_inset
15356
15357  tag provides for internationalization based upon the overall language of
15358  the document.
15359  The contents of the tag will be included in the preamble, just as with
15360  the 
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 Preamble
15366 \end_layout
15367
15368 \end_inset
15369
15370  tag.
15371  What makes it special is the use of the 
15372 \begin_inset Quotes eld
15373 \end_inset
15374
15375 function
15376 \begin_inset Quotes erd
15377 \end_inset
15378
15379  
15380 \begin_inset Flex Code
15381 status collapsed
15382
15383 \begin_layout Plain Layout
15384 _()
15385 \end_layout
15386
15387 \end_inset
15388
15389 , which will be replaced, when LyX produces LaTeX output, with the translation
15390  of its argument into the document language.
15391 \end_layout
15392
15393 \begin_layout Standard
15394 The 
15395 \begin_inset Flex Code
15396 status collapsed
15397
15398 \begin_layout Plain Layout
15399 BabelPreamble
15400 \end_layout
15401
15402 \end_inset
15403
15404  tag is more complex, since it is meant to provide support for multi-language
15405  documents and so offers an interface to the 
15406 \begin_inset Flex Code
15407 status collapsed
15408
15409 \begin_layout Plain Layout
15410 babel
15411 \end_layout
15412
15413 \end_inset
15414
15415  package.
15416  Its contents will be added to the preamble once for each language that
15417  appears in the document.
15418  In this case, the argument to 
15419 \begin_inset Flex Code
15420 status collapsed
15421
15422 \begin_layout Plain Layout
15423 _()
15424 \end_layout
15425
15426 \end_inset
15427
15428  will be replaced with its translation into the language in question; the
15429  expression 
15430 \begin_inset Flex Code
15431 status collapsed
15432
15433 \begin_layout Plain Layout
15434 $$lang
15435 \end_layout
15436
15437 \end_inset
15438
15439  is replaced by the language name (as used by the babel package).
15440 \end_layout
15441
15442 \begin_layout Standard
15443 A German document that also included a French section would thus have the
15444  following in the preamble:
15445 \end_layout
15446
15447 \begin_layout LyX-Code
15448
15449 \backslash
15450 addto
15451 \backslash
15452 captionsfrench{
15453 \backslash
15454 renewcommand{
15455 \backslash
15456 claimname}{Affirmation}}
15457 \begin_inset Newline newline
15458 \end_inset
15459
15460
15461 \backslash
15462 addto
15463 \backslash
15464 captionsngerman{
15465 \backslash
15466 renewcommand{
15467 \backslash
15468 claimname}{Behauptung}}
15469 \begin_inset Newline newline
15470 \end_inset
15471
15472
15473 \backslash
15474 providecommand{
15475 \backslash
15476 claimname}{Behauptung}
15477 \end_layout
15478
15479 \begin_layout Standard
15480 LaTeX and 
15481 \begin_inset Flex Code
15482 status collapsed
15483
15484 \begin_layout Plain Layout
15485 babel
15486 \end_layout
15487
15488 \end_inset
15489
15490  will then conspire to produce the correct text in the output.
15491 \end_layout
15492
15493 \begin_layout Standard
15494 One important point to note here is that the translations are provided by
15495  LyX itself, through the 
15496 \change_inserted -195340706 1334775793
15497 file 
15498 \begin_inset Flex Code
15499 status collapsed
15500
15501 \begin_layout Plain Layout
15502
15503 \change_inserted -195340706 1334775793
15504 layouttranslations
15505 \end_layout
15506
15507 \end_inset
15508
15509
15510 \change_deleted -195340706 1334775793
15511 same mechanism it uses for internationalization of the user interface
15512 \change_unchanged
15513 .
15514  This means, in effect, that 
15515 \begin_inset Flex Code
15516 status collapsed
15517
15518 \begin_layout Plain Layout
15519 LangPreamble
15520 \end_layout
15521
15522 \end_inset
15523
15524  and 
15525 \begin_inset Flex Code
15526 status collapsed
15527
15528 \begin_layout Plain Layout
15529 BabelPreamble
15530 \end_layout
15531
15532 \end_inset
15533
15534  are really only of use in layout files that are provided with LyX, since
15535  text entered in user-created layout files will not be seen by LyX's internation
15536 alization routines
15537 \change_inserted -195340706 1334775793
15538  unless the 
15539 \begin_inset Flex Code
15540 status collapsed
15541
15542 \begin_layout Plain Layout
15543
15544 \change_inserted -195340706 1334775793
15545 layouttranslations
15546 \end_layout
15547
15548 \end_inset
15549
15550  file is modified accordingly
15551 \change_unchanged
15552 .
15553  That said, however, any layout created with the intention that it will
15554  be included with LyX should use these tags where appropriate.
15555
15556 \change_inserted -195340706 1334775793
15557  Please note that the paragraph style translations provided by LyX will
15558  never change with a minor update (e.g.
15559  from version 2.1.x to 2.1.y).
15560  It is however quite likely that a major update (e.g.
15561  from 2.0.x to 2.1.y) will introduce new translations or corrections.
15562 \change_unchanged
15563
15564 \end_layout
15565
15566 \begin_layout Subsection
15567 Floats
15568 \begin_inset CommandInset label
15569 LatexCommand label
15570 name "sub:Floats"
15571
15572 \end_inset
15573
15574
15575 \end_layout
15576
15577 \begin_layout Standard
15578 It is necessary to define the floats (
15579 \begin_inset Flex MenuItem
15580 status collapsed
15581
15582 \begin_layout Plain Layout
15583 figure
15584 \end_layout
15585
15586 \end_inset
15587
15588
15589 \begin_inset Flex MenuItem
15590 status collapsed
15591
15592 \begin_layout Plain Layout
15593 table
15594 \end_layout
15595
15596 \end_inset
15597
15598 , \SpecialChar \ldots{}
15599 ) in the text class itself.
15600  Standard floats are included in the file 
15601 \begin_inset Flex Code
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605 stdfloats.inc
15606 \end_layout
15607
15608 \end_inset
15609
15610 , so you may have to do no more than add
15611 \end_layout
15612
15613 \begin_layout LyX-Code
15614 Input stdfloats.inc
15615 \end_layout
15616
15617 \begin_layout Standard
15618 to your layout file.
15619  If you want to implement a text class that proposes some other float types
15620  (like the AGU class bundled with LyX), the information below will hopefully
15621  help you:
15622 \end_layout
15623
15624 \begin_layout Description
15625 \begin_inset Flex Code
15626 status collapsed
15627
15628 \begin_layout Plain Layout
15629 Extension
15630 \end_layout
15631
15632 \end_inset
15633
15634  [
15635 \begin_inset Flex Code
15636 status collapsed
15637
15638 \begin_layout Plain Layout
15639 string
15640 \end_layout
15641
15642 \end_inset
15643
15644 =
15645 \begin_inset Quotes erd
15646 \end_inset
15647
15648
15649 \begin_inset Quotes erd
15650 \end_inset
15651
15652 ] The file name extension of an auxiliary file for the list of figures (or
15653  whatever).
15654  LaTeX writes the captions to this file.
15655 \end_layout
15656
15657 \begin_layout Description
15658 \begin_inset Flex Code
15659 status collapsed
15660
15661 \begin_layout Plain Layout
15662 GuiName
15663 \end_layout
15664
15665 \end_inset
15666
15667  [
15668 \begin_inset Flex Code
15669 status collapsed
15670
15671 \begin_layout Plain Layout
15672 string
15673 \end_layout
15674
15675 \end_inset
15676
15677 =
15678 \begin_inset Quotes erd
15679 \end_inset
15680
15681
15682 \begin_inset Quotes erd
15683 \end_inset
15684
15685 ] The string that will be used in the menus and also for the caption.
15686  This is translated to the current language if babel is used.
15687 \end_layout
15688
15689 \begin_layout Description
15690 \begin_inset Flex Code
15691 status collapsed
15692
15693 \begin_layout Plain Layout
15694 HTML*
15695 \end_layout
15696
15697 \end_inset
15698
15699  These tags control the XHTML output.
15700  See section
15701 \begin_inset space ~
15702 \end_inset
15703
15704
15705 \begin_inset CommandInset ref
15706 LatexCommand ref
15707 reference "sec:Tags-for-XHTML"
15708
15709 \end_inset
15710
15711 .
15712 \end_layout
15713
15714 \begin_layout Description
15715 \begin_inset Flex Code
15716 status collapsed
15717
15718 \begin_layout Plain Layout
15719 IsPredefined
15720 \end_layout
15721
15722 \end_inset
15723
15724  [
15725 \emph on
15726
15727 \begin_inset Flex Code
15728 status collapsed
15729
15730 \begin_layout Plain Layout
15731 0
15732 \end_layout
15733
15734 \end_inset
15735
15736
15737 \emph default
15738 ,
15739 \begin_inset space \thinspace{}
15740 \end_inset
15741
15742
15743 \begin_inset Flex Code
15744 status collapsed
15745
15746 \begin_layout Plain Layout
15747 1
15748 \end_layout
15749
15750 \end_inset
15751
15752 ] Indicates whether the float is already defined in the document class or
15753  if instead the LaTeX package 
15754 \begin_inset Flex Code
15755 status collapsed
15756
15757 \begin_layout Plain Layout
15758 float
15759 \end_layout
15760
15761 \end_inset
15762
15763  needs to be loaded to define it on-the-fly.
15764  The default is 
15765 \begin_inset Flex Code
15766 status collapsed
15767
15768 \begin_layout Plain Layout
15769 0
15770 \end_layout
15771
15772 \end_inset
15773
15774 , which means: 
15775 \begin_inset Flex Code
15776 status collapsed
15777
15778 \begin_layout Plain Layout
15779 float
15780 \end_layout
15781
15782 \end_inset
15783
15784  is used.
15785  It should be set to 
15786 \begin_inset Flex Code
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790 1
15791 \end_layout
15792
15793 \end_inset
15794
15795  if the float is already defined by the LaTeX document class.
15796 \end_layout
15797
15798 \begin_layout Description
15799 \begin_inset Flex Code
15800 status collapsed
15801
15802 \begin_layout Plain Layout
15803 ListCommand
15804 \end_layout
15805
15806 \end_inset
15807
15808  [
15809 \begin_inset Flex Code
15810 status collapsed
15811
15812 \begin_layout Plain Layout
15813 string
15814 \end_layout
15815
15816 \end_inset
15817
15818 =
15819 \begin_inset Quotes erd
15820 \end_inset
15821
15822
15823 \begin_inset Quotes erd
15824 \end_inset
15825
15826 ] The command used to generate a list of floats of this type; the leading
15827  `
15828 \backslash
15829 ' must be omitted.
15830  This 
15831 \emph on
15832 must
15833 \emph default
15834  be given if 
15835 \begin_inset Flex Code
15836 status collapsed
15837
15838 \begin_layout Plain Layout
15839 UsesFloatPkg
15840 \end_layout
15841
15842 \end_inset
15843
15844  is false, since there is no standard way to generate this command.
15845  It is ignored if 
15846 \begin_inset Flex Code
15847 status collapsed
15848
15849 \begin_layout Plain Layout
15850 UsesFloatPkg
15851 \end_layout
15852
15853 \end_inset
15854
15855  is true, since in that case there is a standard way to define the command.
15856 \end_layout
15857
15858 \begin_layout Description
15859 \begin_inset Flex Code
15860 status collapsed
15861
15862 \begin_layout Plain Layout
15863 ListName
15864 \end_layout
15865
15866 \end_inset
15867
15868  [
15869 \begin_inset Flex Code
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 string
15874 \end_layout
15875
15876 \end_inset
15877
15878 =
15879 \begin_inset Quotes erd
15880 \end_inset
15881
15882
15883 \begin_inset Quotes erd
15884 \end_inset
15885
15886 ] A title for a list of floats of this kind (list of figures, tables, or
15887  whatever).
15888  It is used for the screen label within LyX, it is used by LaTeX for the
15889  title and it is used as the title in the XHTML output.
15890  It will be translated to the document language.
15891 \end_layout
15892
15893 \begin_layout Description
15894 \begin_inset Flex Code
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898 NumberWithin
15899 \end_layout
15900
15901 \end_inset
15902
15903  [
15904 \begin_inset Flex Code
15905 status collapsed
15906
15907 \begin_layout Plain Layout
15908 string
15909 \end_layout
15910
15911 \end_inset
15912
15913 =
15914 \begin_inset Quotes erd
15915 \end_inset
15916
15917
15918 \begin_inset Quotes erd
15919 \end_inset
15920
15921 ] This (optional) argument determines whether floats of this class will
15922  be numbered within some sectional unit of the document.
15923  For example, if 
15924 \begin_inset Flex Code
15925 status collapsed
15926
15927 \begin_layout Plain Layout
15928 NumberWithin
15929 \end_layout
15930
15931 \end_inset
15932
15933  is set to 
15934 \begin_inset Quotes eld
15935 \end_inset
15936
15937
15938 \begin_inset Flex Code
15939 status collapsed
15940
15941 \begin_layout Plain Layout
15942 chapter
15943 \end_layout
15944
15945 \end_inset
15946
15947
15948 \begin_inset Quotes erd
15949 \end_inset
15950
15951 , the floats will be numbered within chapters.
15952  
15953 \end_layout
15954
15955 \begin_layout Description
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 Placement
15961 \end_layout
15962
15963 \end_inset
15964
15965  [
15966 \begin_inset Flex Code
15967 status collapsed
15968
15969 \begin_layout Plain Layout
15970 string
15971 \end_layout
15972
15973 \end_inset
15974
15975 =
15976 \begin_inset Quotes erd
15977 \end_inset
15978
15979
15980 \begin_inset Quotes erd
15981 \end_inset
15982
15983 ] The default placement for the given class of floats.
15984  The string should be as in standard LaTeX: 
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 t
15990 \end_layout
15991
15992 \end_inset
15993
15994
15995 \begin_inset Flex Code
15996 status collapsed
15997
15998 \begin_layout Plain Layout
15999 b
16000 \end_layout
16001
16002 \end_inset
16003
16004
16005 \begin_inset Flex Code
16006 status collapsed
16007
16008 \begin_layout Plain Layout
16009 p
16010 \end_layout
16011
16012 \end_inset
16013
16014  and 
16015 \begin_inset Flex Code
16016 status collapsed
16017
16018 \begin_layout Plain Layout
16019 h
16020 \end_layout
16021
16022 \end_inset
16023
16024  for top, bottom, page, and here, respectively.
16025 \begin_inset Foot
16026 status collapsed
16027
16028 \begin_layout Plain Layout
16029 Note that the order of these letters in the string is irrelevant, like in
16030  LaTeX.
16031 \end_layout
16032
16033 \end_inset
16034
16035  On top of that there is a new type, 
16036 \begin_inset Flex Code
16037 status collapsed
16038
16039 \begin_layout Plain Layout
16040 H
16041 \end_layout
16042
16043 \end_inset
16044
16045 , which does not really correspond to a float, since it means: put it 
16046 \begin_inset Quotes eld
16047 \end_inset
16048
16049 here
16050 \begin_inset Quotes erd
16051 \end_inset
16052
16053  and nowhere else.
16054  Note however that the 
16055 \begin_inset Flex Code
16056 status collapsed
16057
16058 \begin_layout Plain Layout
16059 H
16060 \end_layout
16061
16062 \end_inset
16063
16064  specifier is special and, because of implementation details, cannot be
16065  used in non-built in float types.
16066  If you do not understand what this means, just use 
16067 \begin_inset Quotes eld
16068 \end_inset
16069
16070
16071 \begin_inset Flex Code
16072 status collapsed
16073
16074 \begin_layout Plain Layout
16075 tbp
16076 \end_layout
16077
16078 \end_inset
16079
16080
16081 \begin_inset Quotes erd
16082 \end_inset
16083
16084 .
16085 \end_layout
16086
16087 \begin_layout Description
16088 \begin_inset Flex Code
16089 status collapsed
16090
16091 \begin_layout Plain Layout
16092 RefPrefix
16093 \end_layout
16094
16095 \end_inset
16096
16097  [
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 string
16103 \end_layout
16104
16105 \end_inset
16106
16107 ] The prefix to use when creating labels referring to floats of this type.
16108  This allows the use of formatted references.
16109  Note that you can remove any 
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 RefPrefix
16115 \end_layout
16116
16117 \end_inset
16118
16119  set by a copied style by using the special value 
16120 \begin_inset Quotes eld
16121 \end_inset
16122
16123 OFF
16124 \begin_inset Quotes erd
16125 \end_inset
16126
16127 , which must be all caps.
16128 \end_layout
16129
16130 \begin_layout Description
16131 \begin_inset Flex Code
16132 status collapsed
16133
16134 \begin_layout Plain Layout
16135 Style
16136 \end_layout
16137
16138 \end_inset
16139
16140  [
16141 \begin_inset Flex Code
16142 status collapsed
16143
16144 \begin_layout Plain Layout
16145 string
16146 \end_layout
16147
16148 \end_inset
16149
16150 =
16151 \begin_inset Quotes erd
16152 \end_inset
16153
16154
16155 \begin_inset Quotes erd
16156 \end_inset
16157
16158 ] The style used when defining the float using 
16159 \begin_inset Flex Code
16160 status collapsed
16161
16162 \begin_layout Plain Layout
16163
16164 \backslash
16165 newfloat
16166 \end_layout
16167
16168 \end_inset
16169
16170 .
16171 \end_layout
16172
16173 \begin_layout Description
16174 \begin_inset Flex Code
16175 status collapsed
16176
16177 \begin_layout Plain Layout
16178 Type
16179 \end_layout
16180
16181 \end_inset
16182
16183  [
16184 \begin_inset Flex Code
16185 status collapsed
16186
16187 \begin_layout Plain Layout
16188 string
16189 \end_layout
16190
16191 \end_inset
16192
16193 =
16194 \begin_inset Quotes erd
16195 \end_inset
16196
16197
16198 \begin_inset Quotes erd
16199 \end_inset
16200
16201 ] The 
16202 \begin_inset Quotes eld
16203 \end_inset
16204
16205 type
16206 \begin_inset Quotes erd
16207 \end_inset
16208
16209  of the new class of floats, like program or algorithm.
16210  After the appropriate 
16211 \begin_inset Flex Code
16212 status collapsed
16213
16214 \begin_layout Plain Layout
16215
16216 \backslash
16217 newfloat
16218 \end_layout
16219
16220 \end_inset
16221
16222 , commands such as 
16223 \begin_inset Flex Code
16224 status collapsed
16225
16226 \begin_layout Plain Layout
16227
16228 \backslash
16229 begin{program}
16230 \end_layout
16231
16232 \end_inset
16233
16234  or 
16235 \begin_inset Flex Code
16236 status collapsed
16237
16238 \begin_layout Plain Layout
16239
16240 \backslash
16241 end{algorithm*}
16242 \end_layout
16243
16244 \end_inset
16245
16246  will be available.
16247 \end_layout
16248
16249 \begin_layout Description
16250 \begin_inset Flex Code
16251 status collapsed
16252
16253 \begin_layout Plain Layout
16254 UsesFloatPkg
16255 \end_layout
16256
16257 \end_inset
16258
16259  [
16260 \begin_inset Flex Code
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264 0
16265 \end_layout
16266
16267 \end_inset
16268
16269 ,
16270 \begin_inset space \thinspace{}
16271 \end_inset
16272
16273
16274 \begin_inset Flex Code
16275 status collapsed
16276
16277 \begin_layout Plain Layout
16278
16279 \emph on
16280 1
16281 \end_layout
16282
16283 \end_inset
16284
16285 ] Specifies whether this float is defined using the LaTeX package 
16286 \begin_inset Flex Code
16287 status collapsed
16288
16289 \begin_layout Plain Layout
16290 float
16291 \end_layout
16292
16293 \end_inset
16294
16295 , either by the class file, another package or on-the-fly by LyX itself.
16296 \end_layout
16297
16298 \begin_layout Standard
16299 Note that defining a float with type 
16300 \begin_inset Flex Code
16301 status collapsed
16302
16303 \begin_layout Plain Layout
16304
16305 \emph on
16306 type
16307 \end_layout
16308
16309 \end_inset
16310
16311  automatically defines the corresponding counter with name 
16312 \begin_inset Flex Code
16313 status collapsed
16314
16315 \begin_layout Plain Layout
16316
16317 \emph on
16318 type
16319 \end_layout
16320
16321 \end_inset
16322
16323 .
16324 \end_layout
16325
16326 \begin_layout Subsection
16327 Flex insets and InsetLayout
16328 \begin_inset CommandInset label
16329 LatexCommand label
16330 name "sub:Flex-insets-and"
16331
16332 \end_inset
16333
16334
16335 \end_layout
16336
16337 \begin_layout Standard
16338 Flex insets come in three different kinds: 
16339 \end_layout
16340
16341 \begin_layout Itemize
16342 character style (
16343 \begin_inset Flex Code
16344 status collapsed
16345
16346 \begin_layout Plain Layout
16347 CharStyle
16348 \end_layout
16349
16350 \end_inset
16351
16352 ): These define semantic markup corresponding to such LaTeX commands as
16353  
16354 \begin_inset Flex Code
16355 status collapsed
16356
16357 \begin_layout Plain Layout
16358
16359 \backslash
16360 noun
16361 \end_layout
16362
16363 \end_inset
16364
16365  and 
16366 \begin_inset Flex Code
16367 status collapsed
16368
16369 \begin_layout Plain Layout
16370
16371 \backslash
16372 code
16373 \end_layout
16374
16375 \end_inset
16376
16377 .
16378 \end_layout
16379
16380 \begin_layout Itemize
16381 user custom (
16382 \begin_inset Flex Code
16383 status collapsed
16384
16385 \begin_layout Plain Layout
16386 Custom
16387 \end_layout
16388
16389 \end_inset
16390
16391 ): These can be used to define custom collapsible insets, similar to TeX
16392  code, footnote, and the like.
16393  An obvious example is an endnote inset, which is defined in the 
16394 \begin_inset Flex Code
16395 status collapsed
16396
16397 \begin_layout Plain Layout
16398 endnote
16399 \end_layout
16400
16401 \end_inset
16402
16403  module.
16404 \end_layout
16405
16406 \begin_layout Itemize
16407 XML elements (
16408 \begin_inset Flex Code
16409 status collapsed
16410
16411 \begin_layout Plain Layout
16412 Element
16413 \end_layout
16414
16415 \end_inset
16416
16417 ): For use with DocBook classes.
16418 \end_layout
16419
16420 \begin_layout Standard
16421 Flex insets are defined using the 
16422 \begin_inset Flex Code
16423 status collapsed
16424
16425 \begin_layout Plain Layout
16426 InsetLayout
16427 \end_layout
16428
16429 \end_inset
16430
16431  tag, which shall be explained in a moment.
16432 \end_layout
16433
16434 \begin_layout Standard
16435 The 
16436 \begin_inset Flex Code
16437 status collapsed
16438
16439 \begin_layout Plain Layout
16440 InsetLayout
16441 \end_layout
16442
16443 \end_inset
16444
16445  tag also serves another function: It can be used to customize the general
16446  layout of many different types of insets.
16447  Currently, 
16448 \begin_inset Flex Code
16449 status collapsed
16450
16451 \begin_layout Plain Layout
16452 InsetLayout
16453 \end_layout
16454
16455 \end_inset
16456
16457  can be used to customize the layout parameters for footnotes, marginal
16458  notes, note insets, TeX code (ERT) insets, branches, listings, indexes,
16459  boxes, tables, algorithms, URLs, and 
16460 \change_deleted -712698321 1356964515
16461 optional argument
16462 \change_inserted -712698321 1356964516
16463 caption
16464 \change_unchanged
16465 s, as well as to define Flex insets.
16466 \end_layout
16467
16468 \begin_layout Standard
16469 The 
16470 \begin_inset Flex Code
16471 status collapsed
16472
16473 \begin_layout Plain Layout
16474 InsetLayout
16475 \end_layout
16476
16477 \end_inset
16478
16479  definition must begin with a line of the form:
16480 \end_layout
16481
16482 \begin_layout LyX-Code
16483 InsetLayout <type>
16484 \end_layout
16485
16486 \begin_layout Standard
16487 Here 
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492 <Type>
16493 \end_layout
16494
16495 \end_inset
16496
16497  indicates the inset whose layout is being defined, and here there are 
16498 \change_deleted -712698321 1356964888
16499 three
16500 \change_inserted -712698321 1356964888
16501 four
16502 \change_deleted 5863208 1334489267
16503 two
16504 \change_unchanged
16505  cases.
16506 \end_layout
16507
16508 \begin_layout Enumerate
16509 The layout for a pre-existing inset is being modified.
16510  In this case, can be 
16511 \begin_inset Flex Code
16512 status collapsed
16513
16514 \begin_layout Plain Layout
16515 <Type>
16516 \end_layout
16517
16518 \end_inset
16519
16520  any one of the following: 
16521 \begin_inset Flex Code
16522 status collapsed
16523
16524 \begin_layout Plain Layout
16525 Algorithm
16526 \end_layout
16527
16528 \end_inset
16529
16530
16531 \begin_inset Flex Code
16532 status collapsed
16533
16534 \begin_layout Plain Layout
16535 Branch
16536 \end_layout
16537
16538 \end_inset
16539
16540
16541 \begin_inset Flex Code
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545 Box
16546 \end_layout
16547
16548 \end_inset
16549
16550
16551 \begin_inset Flex Code
16552 status collapsed
16553
16554 \begin_layout Plain Layout
16555 Box:shaded
16556 \end_layout
16557
16558 \end_inset
16559
16560
16561 \change_inserted -712698321 1356964563
16562
16563 \begin_inset Flex Code
16564 status collapsed
16565
16566 \begin_layout Plain Layout
16567
16568 \change_inserted -712698321 1356964560
16569 Caption:Standard
16570 \change_unchanged
16571
16572 \end_layout
16573
16574 \end_inset
16575
16576
16577 \change_unchanged
16578
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 ERT
16584 \end_layout
16585
16586 \end_inset
16587
16588
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593 Figure
16594 \end_layout
16595
16596 \end_inset
16597
16598
16599 \begin_inset Flex Code
16600 status collapsed
16601
16602 \begin_layout Plain Layout
16603 Foot
16604 \end_layout
16605
16606 \end_inset
16607
16608
16609 \begin_inset Flex Code
16610 status collapsed
16611
16612 \begin_layout Plain Layout
16613 Index
16614 \end_layout
16615
16616 \end_inset
16617
16618
16619 \begin_inset Flex Code
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623 Info
16624 \end_layout
16625
16626 \end_inset
16627
16628
16629 \begin_inset Flex Code
16630 status collapsed
16631
16632 \begin_layout Plain Layout
16633 Info:menu
16634 \end_layout
16635
16636 \end_inset
16637
16638
16639 \begin_inset Flex Code
16640 status collapsed
16641
16642 \begin_layout Plain Layout
16643 Info:shortcut
16644 \end_layout
16645
16646 \end_inset
16647
16648
16649 \begin_inset Flex Code
16650 status collapsed
16651
16652 \begin_layout Plain Layout
16653 Info:shortcuts
16654 \end_layout
16655
16656 \end_inset
16657
16658
16659 \begin_inset Flex Code
16660 status collapsed
16661
16662 \begin_layout Plain Layout
16663 Listings
16664 \end_layout
16665
16666 \end_inset
16667
16668
16669 \begin_inset Flex Code
16670 status collapsed
16671
16672 \begin_layout Plain Layout
16673 Marginal
16674 \end_layout
16675
16676 \end_inset
16677
16678
16679 \begin_inset Flex Code
16680 status collapsed
16681
16682 \begin_layout Plain Layout
16683 Note:Comment
16684 \end_layout
16685
16686 \end_inset
16687
16688
16689 \begin_inset Flex Code
16690 status collapsed
16691
16692 \begin_layout Plain Layout
16693 Note:Note
16694 \end_layout
16695
16696 \end_inset
16697
16698
16699 \begin_inset Flex Code
16700 status collapsed
16701
16702 \begin_layout Plain Layout
16703 Note:Greyedout
16704 \end_layout
16705
16706 \end_inset
16707
16708
16709 \change_deleted -712698321 1356964592
16710
16711 \begin_inset Flex Code
16712 status collapsed
16713
16714 \begin_layout Plain Layout
16715
16716 \change_deleted -712698321 1353866704
16717 Opt
16718 \change_unchanged
16719 Arg
16720 \change_inserted -712698321 1353866707
16721 ument
16722 \change_unchanged
16723
16724 \end_layout
16725
16726 \end_inset
16727
16728
16729 \change_unchanged
16730
16731 \begin_inset Flex Code
16732 status collapsed
16733
16734 \begin_layout Plain Layout
16735 Table
16736 \end_layout
16737
16738 \end_inset
16739
16740 , or 
16741 \begin_inset Flex Code
16742 status collapsed
16743
16744 \begin_layout Plain Layout
16745 URL
16746 \end_layout
16747
16748 \end_inset
16749
16750 .
16751 \end_layout
16752
16753 \begin_layout Enumerate
16754 The layout for a Flex inset is being defined.
16755  In this case, 
16756 \begin_inset Flex Code
16757 status collapsed
16758
16759 \begin_layout Plain Layout
16760 <Type>
16761 \end_layout
16762
16763 \end_inset
16764
16765  must be of the form 
16766 \begin_inset Quotes eld
16767 \end_inset
16768
16769
16770 \begin_inset Flex Code
16771 status collapsed
16772
16773 \begin_layout Plain Layout
16774 Flex:<name>
16775 \end_layout
16776
16777 \end_inset
16778
16779
16780 \begin_inset Quotes erd
16781 \end_inset
16782
16783 , where 
16784 \begin_inset Flex Code
16785 status collapsed
16786
16787 \begin_layout Plain Layout
16788 name
16789 \end_layout
16790
16791 \end_inset
16792
16793  may be be any valid identifier not used by a pre-existing Flex inset.
16794  The identifier may include spaces, but in that case the whole thing must
16795  be wrapped in quotes.
16796  Note that the definition of a flex inset 
16797 \emph on
16798 must 
16799 \emph default
16800 also include a 
16801 \begin_inset Flex Code
16802 status collapsed
16803
16804 \begin_layout Plain Layout
16805 LyXType
16806 \end_layout
16807
16808 \end_inset
16809
16810  entry, declaring which type of inset it defines.
16811 \change_inserted 5863208 1334489312
16812
16813 \end_layout
16814
16815 \begin_layout Enumerate
16816
16817 \change_inserted 5863208 1334492248
16818 The layout for user specific branch is being defined.
16819  In this case, 
16820 \begin_inset Flex Code
16821 status collapsed
16822
16823 \begin_layout Plain Layout
16824
16825 \change_inserted 5863208 1334489384
16826 <Type>
16827 \end_layout
16828
16829 \end_inset
16830
16831  must be of the form 
16832 \begin_inset Quotes eld
16833 \end_inset
16834
16835
16836 \begin_inset Flex Code
16837 status collapsed
16838
16839 \begin_layout Plain Layout
16840
16841 \change_inserted 5863208 1334489392
16842 Branch:<name>
16843 \end_layout
16844
16845 \end_inset
16846
16847
16848 \begin_inset Quotes erd
16849 \end_inset
16850
16851 , where 
16852 \begin_inset Flex Code
16853 status collapsed
16854
16855 \begin_layout Plain Layout
16856
16857 \change_inserted 5863208 1334489384
16858 name
16859 \end_layout
16860
16861 \end_inset
16862
16863  may be be any valid identifier of branch defined in user's document.
16864  The identifier may include spaces, but in that case the whole thing must
16865  be wrapped in quotes.
16866  The main purpose of this feature is to allow LaTeX wrapping around specific
16867  branches as user needs.
16868 \change_inserted -712698321 1356964893
16869
16870 \end_layout
16871
16872 \begin_layout Enumerate
16873
16874 \change_inserted -712698321 1356965125
16875 The layout of a user (or class) specific caption is being defined.
16876  In this case, 
16877 \begin_inset Flex Code
16878 status collapsed
16879
16880 \begin_layout Plain Layout
16881
16882 \change_inserted -712698321 1356964939
16883 <Type>
16884 \end_layout
16885
16886 \end_inset
16887
16888  must be of the form 
16889 \begin_inset Quotes eld
16890 \end_inset
16891
16892
16893 \begin_inset Flex Code
16894 status collapsed
16895
16896 \begin_layout Plain Layout
16897
16898 \change_inserted -712698321 1356964943
16899 Caption:<name>
16900 \end_layout
16901
16902 \end_inset
16903
16904
16905 \begin_inset Quotes erd
16906 \end_inset
16907
16908 , where 
16909 \begin_inset Flex Code
16910 status collapsed
16911
16912 \begin_layout Plain Layout
16913
16914 \change_inserted -712698321 1356964939
16915 name
16916 \end_layout
16917
16918 \end_inset
16919
16920  specifies the name of the caption as it appears in the menu.
16921  Have a look at the standard caption (
16922 \begin_inset Flex Code
16923 status collapsed
16924
16925 \begin_layout Plain Layout
16926
16927 \change_inserted -712698321 1356964987
16928 Caption:Standard
16929 \end_layout
16930
16931 \end_inset
16932
16933 ), the specific captions of the KOMA-Script classes (
16934 \begin_inset Flex Code
16935 status collapsed
16936
16937 \begin_layout Plain Layout
16938
16939 \change_inserted -712698321 1356965018
16940 Caption:Above
16941 \end_layout
16942
16943 \end_inset
16944
16945
16946 \begin_inset Flex Code
16947 status collapsed
16948
16949 \begin_layout Plain Layout
16950
16951 \change_inserted -712698321 1356965021
16952 Caption:Below
16953 \end_layout
16954
16955 \end_inset
16956
16957 ) or the 
16958 \emph on
16959 biling
16960 \emph default
16961  module (
16962 \begin_inset Flex Code
16963 status collapsed
16964
16965 \begin_layout Plain Layout
16966
16967 \change_inserted -712698321 1356965045
16968 Caption:Bicaption
16969 \end_layout
16970
16971 \end_inset
16972
16973 ) for applications.
16974 \change_unchanged
16975
16976 \end_layout
16977
16978 \begin_layout Standard
16979 The 
16980 \begin_inset Flex Code
16981 status collapsed
16982
16983 \begin_layout Plain Layout
16984 InsetLayout
16985 \end_layout
16986
16987 \end_inset
16988
16989  definition can contain the following entries:
16990 \end_layout
16991
16992 \begin_layout Description
16993
16994 \change_inserted -712698321 1353681390
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999
17000 \change_inserted -712698321 1353681344
17001 Argument
17002 \end_layout
17003
17004 \end_inset
17005
17006  [
17007 \begin_inset Flex Code
17008 status collapsed
17009
17010 \begin_layout Plain Layout
17011
17012 \change_inserted -712698321 1353681344
17013 int
17014 \end_layout
17015
17016 \end_inset
17017
17018 ] Defines argument number <int> of a command\SpecialChar \slash{}
17019 environment associated with
17020  the current layout.
17021  The definition must end with 
17022 \begin_inset Flex Code
17023 status collapsed
17024
17025 \begin_layout Plain Layout
17026
17027 \change_inserted -712698321 1353681344
17028 EndArgument
17029 \end_layout
17030
17031 \end_inset
17032
17033 .
17034  See section
17035 \begin_inset space ~
17036 \end_inset
17037
17038
17039 \begin_inset CommandInset ref
17040 LatexCommand ref
17041 reference "sub:Paragraph-Styles"
17042
17043 \end_inset
17044
17045  for details.
17046 \end_layout
17047
17048 \begin_layout Description
17049
17050 \change_inserted -195340706 1333913893
17051 \begin_inset Flex Code
17052 status collapsed
17053
17054 \begin_layout Plain Layout
17055 BabelPreamble
17056 \end_layout
17057
17058 \end_inset
17059
17060  Preamble for changing languages.
17061  See section
17062 \begin_inset space ~
17063 \end_inset
17064
17065
17066 \begin_inset CommandInset ref
17067 LatexCommand ref
17068 reference "sub:I18n"
17069
17070 \end_inset
17071
17072 .
17073 \end_layout
17074
17075 \begin_layout Description
17076 \begin_inset Flex Code
17077 status collapsed
17078
17079 \begin_layout Plain Layout
17080 BgColor
17081 \end_layout
17082
17083 \end_inset
17084
17085  [
17086 \begin_inset Flex Code
17087 status collapsed
17088
17089 \begin_layout Plain Layout
17090 <name>
17091 \end_layout
17092
17093 \end_inset
17094
17095 ] The color for the inset's background.
17096  See chapter
17097 \begin_inset space ~
17098 \end_inset
17099
17100
17101 \begin_inset CommandInset ref
17102 LatexCommand ref
17103 reference "chap:Names-of-colors"
17104
17105 \end_inset
17106
17107  for a list of the available color names.
17108 \end_layout
17109
17110 \begin_layout Description
17111 \begin_inset Flex Code
17112 status collapsed
17113
17114 \begin_layout Plain Layout
17115 ContentAsLabel
17116 \end_layout
17117
17118 \end_inset
17119
17120  [
17121 \begin_inset Flex Code
17122 status collapsed
17123
17124 \begin_layout Plain Layout
17125
17126 \emph on
17127 0
17128 \end_layout
17129
17130 \end_inset
17131
17132 ,
17133 \begin_inset space \thinspace{}
17134 \end_inset
17135
17136
17137 \begin_inset Flex Code
17138 status collapsed
17139
17140 \begin_layout Plain Layout
17141 1
17142 \end_layout
17143
17144 \end_inset
17145
17146 ] Whether to use the content of the inset as the label, when the inset is
17147  closed.
17148  Default is false.
17149 \end_layout
17150
17151 \begin_layout Description
17152 \begin_inset Flex Code
17153 status collapsed
17154
17155 \begin_layout Plain Layout
17156 CopyStyle
17157 \end_layout
17158
17159 \end_inset
17160
17161  [
17162 \begin_inset Flex Code
17163 status collapsed
17164
17165 \begin_layout Plain Layout
17166 <type>
17167 \end_layout
17168
17169 \end_inset
17170
17171 ] As with paragraph styles, see sec.
17172 \begin_inset space ~
17173 \end_inset
17174
17175
17176 \begin_inset CommandInset ref
17177 LatexCommand ref
17178 reference "sub:Paragraph-Styles"
17179
17180 \end_inset
17181
17182 .
17183  Note that you need to specify the complete type, e.
17184 \begin_inset space \thinspace{}
17185 \end_inset
17186
17187 g.
17188 \begin_inset space ~
17189 \end_inset
17190
17191
17192 \begin_inset Flex Code
17193 status collapsed
17194
17195 \begin_layout Plain Layout
17196 CopyStyle Flex:<name>
17197 \end_layout
17198
17199 \end_inset
17200
17201 .
17202 \end_layout
17203
17204 \begin_layout Description
17205 \begin_inset Flex Code
17206 status collapsed
17207
17208 \begin_layout Plain Layout
17209 CustomPars
17210 \end_layout
17211
17212 \end_inset
17213
17214  [
17215 \begin_inset Flex Code
17216 status collapsed
17217
17218 \begin_layout Plain Layout
17219
17220 \emph on
17221 0
17222 \end_layout
17223
17224 \end_inset
17225
17226 ,
17227 \begin_inset space \thinspace{}
17228 \end_inset
17229
17230
17231 \begin_inset Flex Code
17232 status collapsed
17233
17234 \begin_layout Plain Layout
17235 1
17236 \end_layout
17237
17238 \end_inset
17239
17240 ] Indicates whether the user may employ the Paragraph Settings dialog to
17241  customize the paragraph.
17242 \end_layout
17243
17244 \begin_layout Description
17245 \begin_inset Flex Code
17246 status collapsed
17247
17248 \begin_layout Plain Layout
17249 Decoration
17250 \end_layout
17251
17252 \end_inset
17253
17254  can be 
17255 \begin_inset Flex Code
17256 status collapsed
17257
17258 \begin_layout Plain Layout
17259 Classic
17260 \end_layout
17261
17262 \end_inset
17263
17264
17265 \begin_inset Flex Code
17266 status collapsed
17267
17268 \begin_layout Plain Layout
17269 Minimalistic
17270 \end_layout
17271
17272 \end_inset
17273
17274 , or 
17275 \begin_inset Flex Code
17276 status collapsed
17277
17278 \begin_layout Plain Layout
17279 Conglomerate
17280 \end_layout
17281
17282 \end_inset
17283
17284 , describing the rendering style used for the inset's frame and buttons.
17285  Footnotes generally use 
17286 \begin_inset Flex Code
17287 status collapsed
17288
17289 \begin_layout Plain Layout
17290 Classic
17291 \end_layout
17292
17293 \end_inset
17294
17295 , ERT insets generally 
17296 \begin_inset Flex Code
17297 status collapsed
17298
17299 \begin_layout Plain Layout
17300 Minimalistic
17301 \end_layout
17302
17303 \end_inset
17304
17305 , and character styles 
17306 \begin_inset Flex Code
17307 status collapsed
17308
17309 \begin_layout Plain Layout
17310 Conglomerate
17311 \end_layout
17312
17313 \end_inset
17314
17315 .
17316 \end_layout
17317
17318 \begin_layout Description
17319 \begin_inset Flex Code
17320 status collapsed
17321
17322 \begin_layout Plain Layout
17323 Display
17324 \end_layout
17325
17326 \end_inset
17327
17328  [
17329 \begin_inset Flex Code
17330 status collapsed
17331
17332 \begin_layout Plain Layout
17333 0
17334 \end_layout
17335
17336 \end_inset
17337
17338 ,
17339 \emph on
17340
17341 \begin_inset space \thinspace{}
17342 \end_inset
17343
17344
17345 \emph default
17346
17347 \begin_inset Flex Code
17348 status collapsed
17349
17350 \begin_layout Plain Layout
17351
17352 \emph on
17353 1
17354 \end_layout
17355
17356 \end_inset
17357
17358 ] Only useful if 
17359 \begin_inset Flex Code
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363 LatexType
17364 \end_layout
17365
17366 \end_inset
17367
17368  is 
17369 \begin_inset Flex Code
17370 status collapsed
17371
17372 \begin_layout Plain Layout
17373 Environment
17374 \end_layout
17375
17376 \end_inset
17377
17378 .
17379  Indicates whether the environment will stand on its own in the output or
17380  will appear inline with the surrounding text.
17381  If set to false, it is supposed that the LaTeX environment ignores white
17382  space (including one newline character) after the 
17383 \begin_inset Flex Code
17384 status collapsed
17385
17386 \begin_layout Plain Layout
17387
17388 \backslash
17389 begin{
17390 \emph on
17391 LatexName
17392 \emph default
17393 }
17394 \end_layout
17395
17396 \end_inset
17397
17398  and 
17399 \begin_inset Flex Code
17400 status collapsed
17401
17402 \begin_layout Plain Layout
17403
17404 \backslash
17405 end{
17406 \emph on
17407 LatexName
17408 \emph default
17409 }
17410 \end_layout
17411
17412 \end_inset
17413
17414  tags.
17415  Default is true.
17416 \end_layout
17417
17418 \begin_layout Description
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423 End
17424 \end_layout
17425
17426 \end_inset
17427
17428  Required at the end of the 
17429 \begin_inset Flex Code
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433 InsetLayout
17434 \end_layout
17435
17436 \end_inset
17437
17438  declarations.
17439 \end_layout
17440
17441 \begin_layout Description
17442 \begin_inset Flex Code
17443 status collapsed
17444
17445 \begin_layout Plain Layout
17446 Font
17447 \end_layout
17448
17449 \end_inset
17450
17451  The font used for both the text body 
17452 \emph on
17453 and
17454 \emph default
17455  the label.
17456  See section
17457 \begin_inset space ~
17458 \end_inset
17459
17460
17461 \begin_inset CommandInset ref
17462 LatexCommand ref
17463 reference "sub:Font-description"
17464
17465 \end_inset
17466
17467 .
17468  Note that defining this font automatically defines the 
17469 \begin_inset Flex Code
17470 status collapsed
17471
17472 \begin_layout Plain Layout
17473 LabelFont
17474 \end_layout
17475
17476 \end_inset
17477
17478  to the same value, so define this first and define 
17479 \begin_inset Flex Code
17480 status collapsed
17481
17482 \begin_layout Plain Layout
17483 LabelFont
17484 \end_layout
17485
17486 \end_inset
17487
17488  later if you want them to be different.
17489 \change_inserted 155139281 1354130923
17490
17491 \end_layout
17492
17493 \begin_layout Description
17494
17495 \change_inserted 155139281 1354130923
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500
17501 \change_inserted 155139281 1354130923
17502 ForceLocalFontSwitch
17503 \end_layout
17504
17505 \end_inset
17506
17507  [
17508 \begin_inset Flex Code
17509 status collapsed
17510
17511 \begin_layout Plain Layout
17512
17513 \change_inserted 155139281 1354130923
17514
17515 \emph on
17516 0
17517 \end_layout
17518
17519 \end_inset
17520
17521 ,
17522 \begin_inset Flex Code
17523 status collapsed
17524
17525 \begin_layout Plain Layout
17526
17527 \change_inserted 155139281 1354130923
17528 1
17529 \end_layout
17530
17531 \end_inset
17532
17533 ] When using babel, always use a local font switch (
17534 \begin_inset Flex Code
17535 status collapsed
17536
17537 \begin_layout Plain Layout
17538
17539 \change_inserted 155139281 1354130923
17540
17541 \backslash
17542 foreignlanguage
17543 \end_layout
17544
17545 \end_inset
17546
17547 ), never a global one (such as 
17548 \begin_inset Flex Code
17549 status collapsed
17550
17551 \begin_layout Plain Layout
17552
17553 \change_inserted 155139281 1354130923
17554
17555 \backslash
17556 selectlanguage
17557 \end_layout
17558
17559 \end_inset
17560
17561 ).
17562 \change_unchanged
17563
17564 \end_layout
17565
17566 \begin_layout Description
17567 \begin_inset Flex Code
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571 ForceLTR
17572 \end_layout
17573
17574 \end_inset
17575
17576  [
17577 \begin_inset Flex Code
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581
17582 \emph on
17583 0
17584 \end_layout
17585
17586 \end_inset
17587
17588 ,
17589 \begin_inset space \thinspace{}
17590 \end_inset
17591
17592
17593 \begin_inset Flex Code
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597 1
17598 \end_layout
17599
17600 \end_inset
17601
17602 ] Force the 
17603 \begin_inset Quotes eld
17604 \end_inset
17605
17606 latex
17607 \begin_inset Quotes erd
17608 \end_inset
17609
17610  language, leading to Left-to-Right (Latin) output, e.
17611 \begin_inset space \thinspace{}
17612 \end_inset
17613
17614 g.
17615 \begin_inset space \space{}
17616 \end_inset
17617
17618 in TeX code or URL.
17619  A kludge.
17620 \end_layout
17621
17622 \begin_layout Description
17623 \begin_inset Flex Code
17624 status collapsed
17625
17626 \begin_layout Plain Layout
17627 ForcePlain
17628 \end_layout
17629
17630 \end_inset
17631
17632  [
17633 \begin_inset Flex Code
17634 status collapsed
17635
17636 \begin_layout Plain Layout
17637
17638 \emph on
17639 0
17640 \end_layout
17641
17642 \end_inset
17643
17644 ,
17645 \begin_inset space \thinspace{}
17646 \end_inset
17647
17648
17649 \begin_inset Flex Code
17650 status collapsed
17651
17652 \begin_layout Plain Layout
17653 1
17654 \end_layout
17655
17656 \end_inset
17657
17658 ] Indicates whether the 
17659 \begin_inset Flex Code
17660 status collapsed
17661
17662 \begin_layout Plain Layout
17663 PlainLayout
17664 \end_layout
17665
17666 \end_inset
17667
17668  should be used or, instead, the user can change the paragraph style used
17669  in the inset.
17670  Default is false.
17671 \end_layout
17672
17673 \begin_layout Description
17674 \begin_inset Flex Code
17675 status collapsed
17676
17677 \begin_layout Plain Layout
17678 FreeSpacing
17679 \end_layout
17680
17681 \end_inset
17682
17683  [
17684 \begin_inset Flex Code
17685 status collapsed
17686
17687 \begin_layout Plain Layout
17688
17689 \emph on
17690 0
17691 \end_layout
17692
17693 \end_inset
17694
17695 ,
17696 \begin_inset space \thinspace{}
17697 \end_inset
17698
17699
17700 \begin_inset Flex Code
17701 status collapsed
17702
17703 \begin_layout Plain Layout
17704 1
17705 \end_layout
17706
17707 \end_inset
17708
17709 ] As with paragraph styles, see sec.
17710 \begin_inset space ~
17711 \end_inset
17712
17713
17714 \begin_inset CommandInset ref
17715 LatexCommand ref
17716 reference "sub:Paragraph-Styles"
17717
17718 \end_inset
17719
17720 .
17721 \end_layout
17722
17723 \begin_layout Description
17724 \begin_inset Flex Code
17725 status collapsed
17726
17727 \begin_layout Plain Layout
17728 HTML*
17729 \end_layout
17730
17731 \end_inset
17732
17733  These tags control the XHTML output.
17734  See section
17735 \begin_inset space ~
17736 \end_inset
17737
17738
17739 \begin_inset CommandInset ref
17740 LatexCommand ref
17741 reference "sec:Tags-for-XHTML"
17742
17743 \end_inset
17744
17745 .
17746 \end_layout
17747
17748 \begin_layout Description
17749 \begin_inset Flex Code
17750 status collapsed
17751
17752 \begin_layout Plain Layout
17753 InToc
17754 \end_layout
17755
17756 \end_inset
17757
17758  [
17759 \begin_inset Flex Code
17760 status collapsed
17761
17762 \begin_layout Plain Layout
17763
17764 \emph on
17765 0
17766 \end_layout
17767
17768 \end_inset
17769
17770 ,
17771 \begin_inset space \thinspace{}
17772 \end_inset
17773
17774
17775 \begin_inset Flex Code
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 1
17780 \end_layout
17781
17782 \end_inset
17783
17784 ] Whether to include the contents of this inset in the strings generated
17785  for the `Outline' pane.
17786  One would not, for example, want the content of a footnote in a section
17787  header to be included in the TOC displayed in the outline, but one would
17788  normally want the content of a character style displayed.
17789  Default is false: not to include.
17790 \end_layout
17791
17792 \begin_layout Description
17793 \begin_inset Flex Code
17794 status collapsed
17795
17796 \begin_layout Plain Layout
17797 KeepEmpty
17798 \end_layout
17799
17800 \end_inset
17801
17802  [
17803 \emph on
17804
17805 \begin_inset Flex Code
17806 status collapsed
17807
17808 \begin_layout Plain Layout
17809 0
17810 \end_layout
17811
17812 \end_inset
17813
17814
17815 \emph default
17816 ,
17817 \begin_inset space \thinspace{}
17818 \end_inset
17819
17820
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825 1
17826 \end_layout
17827
17828 \end_inset
17829
17830 ] As with paragraph styles, see sec.
17831 \begin_inset space ~
17832 \end_inset
17833
17834
17835 \begin_inset CommandInset ref
17836 LatexCommand ref
17837 reference "sub:Paragraph-Styles"
17838
17839 \end_inset
17840
17841 .
17842 \end_layout
17843
17844 \begin_layout Description
17845 \begin_inset Flex Code
17846 status collapsed
17847
17848 \begin_layout Plain Layout
17849 LabelFont
17850 \end_layout
17851
17852 \end_inset
17853
17854  The font used for the label.
17855  See section
17856 \begin_inset space ~
17857 \end_inset
17858
17859
17860 \begin_inset CommandInset ref
17861 LatexCommand ref
17862 reference "sub:Font-description"
17863
17864 \end_inset
17865
17866 .
17867  Note that this definition can never appear before 
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 Font
17873 \end_layout
17874
17875 \end_inset
17876
17877 , lest it be ineffective.
17878 \end_layout
17879
17880 \begin_layout Description
17881 \begin_inset Flex Code
17882 status collapsed
17883
17884 \begin_layout Plain Layout
17885 LabelString
17886 \end_layout
17887
17888 \end_inset
17889
17890  [
17891 \begin_inset Flex Code
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895 string
17896 \end_layout
17897
17898 \end_inset
17899
17900 =
17901 \begin_inset Quotes erd
17902 \end_inset
17903
17904
17905 \begin_inset Quotes erd
17906 \end_inset
17907
17908 ] What will be displayed on the button or elsewhere as the inset label.
17909  Some inset types (
17910 \begin_inset Flex Code
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914 TeX code
17915 \end_layout
17916
17917 \end_inset
17918
17919  and 
17920 \begin_inset Flex Code
17921 status collapsed
17922
17923 \begin_layout Plain Layout
17924 Branch
17925 \end_layout
17926
17927 \end_inset
17928
17929 ) modify this label on the fly.
17930 \end_layout
17931
17932 \begin_layout Description
17933
17934 \change_inserted -195340706 1333913893
17935 \begin_inset Flex Code
17936 status collapsed
17937
17938 \begin_layout Plain Layout
17939 LangPreamble
17940 \end_layout
17941
17942 \end_inset
17943
17944  Language dependent preamble.
17945  See section
17946 \begin_inset space ~
17947 \end_inset
17948
17949
17950 \begin_inset CommandInset ref
17951 LatexCommand ref
17952 reference "sub:I18n"
17953
17954 \end_inset
17955
17956 .
17957 \end_layout
17958
17959 \begin_layout Description
17960 \begin_inset Flex Code
17961 status collapsed
17962
17963 \begin_layout Plain Layout
17964 LatexName
17965 \end_layout
17966
17967 \end_inset
17968
17969  [
17970 \begin_inset Flex Code
17971 status collapsed
17972
17973 \begin_layout Plain Layout
17974 <name>
17975 \end_layout
17976
17977 \end_inset
17978
17979 ] The name of the corresponding LaTeX stuff.
17980  Either the environment or command name.
17981 \end_layout
17982
17983 \begin_layout Description
17984 \begin_inset Flex Code
17985 status collapsed
17986
17987 \begin_layout Plain Layout
17988 LatexParam
17989 \end_layout
17990
17991 \end_inset
17992
17993  [
17994 \begin_inset Flex Code
17995 status collapsed
17996
17997 \begin_layout Plain Layout
17998 <parameter>
17999 \end_layout
18000
18001 \end_inset
18002
18003 ] The optional parameter for the corresponding 
18004 \begin_inset Flex Code
18005 status collapsed
18006
18007 \begin_layout Plain Layout
18008 LatexName
18009 \end_layout
18010
18011 \end_inset
18012
18013  stuff, including possible bracket pairs like 
18014 \begin_inset Flex Code
18015 status collapsed
18016
18017 \begin_layout Plain Layout
18018 []
18019 \end_layout
18020
18021 \end_inset
18022
18023 .
18024  
18025 \change_inserted -712698321 1355144715
18026 This will be output as is after all LaTeX 
18027 \begin_inset Flex Code
18028 status collapsed
18029
18030 \begin_layout Plain Layout
18031
18032 \change_inserted -712698321 1355144713
18033 Arguments
18034 \end_layout
18035
18036 \end_inset
18037
18038 .
18039  
18040 \change_unchanged
18041 This parameter cannot be changed from within LyX
18042 \change_inserted -712698321 1355144775
18043  (use 
18044 \begin_inset Flex Code
18045 status collapsed
18046
18047 \begin_layout Plain Layout
18048
18049 \change_inserted -712698321 1355144747
18050 Argument
18051 \end_layout
18052
18053 \end_inset
18054
18055  for customizable parameters)
18056 \change_unchanged
18057 .
18058 \end_layout
18059
18060 \begin_layout Description
18061 \begin_inset Flex Code
18062 status collapsed
18063
18064 \begin_layout Plain Layout
18065 LatexType
18066 \end_layout
18067
18068 \end_inset
18069
18070  [
18071 \begin_inset Flex Code
18072 status collapsed
18073
18074 \begin_layout Plain Layout
18075
18076 \change_deleted -712698321 1353867544
18077
18078 \emph on
18079 Paragraph
18080 \emph default
18081
18082 \change_unchanged
18083 Command, Environment, 
18084 \change_inserted -712698321 1353867573
18085 None
18086 \change_deleted -712698321 1353867557
18087 Item_Environment,
18088 \change_unchanged
18089
18090 \end_layout
18091
18092 \end_inset
18093
18094  
18095 \begin_inset Flex Code
18096 status collapsed
18097
18098 \begin_layout Plain Layout
18099
18100 \change_deleted -712698321 1353867564
18101 List_Environment
18102 \change_unchanged
18103
18104 \change_deleted -712698321 1353867569
18105 Bib_Environment
18106 \change_unchanged
18107
18108 \end_layout
18109
18110 \end_inset
18111
18112 ] How the style should be translated into LaTeX.
18113 \begin_inset Foot
18114 status collapsed
18115
18116 \begin_layout Plain Layout
18117 \begin_inset Flex Code
18118 status collapsed
18119
18120 \begin_layout Plain Layout
18121 LatexType
18122 \end_layout
18123
18124 \end_inset
18125
18126  is perhaps a bit misleading, since these rules apply to SGML classes, too.
18127  Visit the SGML class files for specific examples.
18128 \end_layout
18129
18130 \end_inset
18131
18132
18133 \end_layout
18134
18135 \begin_deeper
18136 \begin_layout Description
18137 \begin_inset Flex Code
18138 status collapsed
18139
18140 \begin_layout Plain Layout
18141
18142 \change_deleted -712698321 1353867582
18143 Paragraph
18144 \change_inserted -712698321 1353867583
18145 None
18146 \change_unchanged
18147
18148 \end_layout
18149
18150 \end_inset
18151
18152  means nothing special.
18153  
18154 \end_layout
18155
18156 \begin_layout Description
18157 \begin_inset Flex Code
18158 status collapsed
18159
18160 \begin_layout Plain Layout
18161 Command
18162 \end_layout
18163
18164 \end_inset
18165
18166  means 
18167 \begin_inset Flex Code
18168 status collapsed
18169
18170 \begin_layout Plain Layout
18171
18172 \backslash
18173
18174 \emph on
18175 LatexName
18176 \emph default
18177 {\SpecialChar \ldots{}
18178 }
18179 \end_layout
18180
18181 \end_inset
18182
18183 .
18184 \end_layout
18185
18186 \begin_layout Description
18187 \begin_inset Flex Code
18188 status collapsed
18189
18190 \begin_layout Plain Layout
18191 Environment
18192 \end_layout
18193
18194 \end_inset
18195
18196  means 
18197 \begin_inset Flex Code
18198 status collapsed
18199
18200 \begin_layout Plain Layout
18201
18202 \backslash
18203 begin{
18204 \emph on
18205 LatexName
18206 \emph default
18207 }\SpecialChar \ldots{}
18208
18209 \backslash
18210 end{
18211 \emph on
18212 LatexName
18213 \emph default
18214 }
18215 \end_layout
18216
18217 \end_inset
18218
18219 .
18220  
18221 \end_layout
18222
18223 \begin_layout Description
18224
18225 \change_deleted -712698321 1353867600
18226 \begin_inset Flex Code
18227 status collapsed
18228
18229 \begin_layout Plain Layout
18230 Item_Environment
18231 \end_layout
18232
18233 \end_inset
18234
18235  is the same as 
18236 \begin_inset Flex Code
18237 status collapsed
18238
18239 \begin_layout Plain Layout
18240 Environment
18241 \end_layout
18242
18243 \end_inset
18244
18245 , except that an 
18246 \begin_inset Flex Code
18247 status collapsed
18248
18249 \begin_layout Plain Layout
18250
18251 \backslash
18252 item
18253 \end_layout
18254
18255 \end_inset
18256
18257  is generated for each paragraph of this environment.
18258  
18259 \end_layout
18260
18261 \begin_layout Description
18262
18263 \change_deleted -712698321 1353867600
18264 \begin_inset Flex Code
18265 status collapsed
18266
18267 \begin_layout Plain Layout
18268 List_Environment
18269 \end_layout
18270
18271 \end_inset
18272
18273  is the same as 
18274 \begin_inset Flex Code
18275 status collapsed
18276
18277 \begin_layout Plain Layout
18278 Item_Environment
18279 \end_layout
18280
18281 \end_inset
18282
18283 , except that 
18284 \begin_inset Flex Code
18285 status collapsed
18286
18287 \begin_layout Plain Layout
18288 LabelWidthString
18289 \end_layout
18290
18291 \end_inset
18292
18293  is passed as an argument to the environment.
18294  
18295 \begin_inset Flex Code
18296 status collapsed
18297
18298 \begin_layout Plain Layout
18299 LabelWidthString
18300 \end_layout
18301
18302 \end_inset
18303
18304  can be defined in the 
18305 \begin_inset Flex MenuItem
18306 status collapsed
18307
18308 \begin_layout Plain Layout
18309
18310 \bar under
18311 Edit
18312 \bar default
18313 \SpecialChar \menuseparator
18314
18315 \bar under
18316 P
18317 \bar default
18318 aragraph
18319 \begin_inset space ~
18320 \end_inset
18321
18322 settings
18323 \end_layout
18324
18325 \end_inset
18326
18327  dialog.
18328  
18329 \change_unchanged
18330
18331 \end_layout
18332
18333 \begin_layout Standard
18334 Putting the last few things together, the LaTeX output will be either: 
18335 \end_layout
18336
18337 \begin_layout LyX-Code
18338
18339 \backslash
18340
18341 \change_deleted 2090807402 1356919073
18342 latexname
18343 \change_inserted 2090807402 1356919073
18344 LatexName
18345 \change_unchanged
18346 [
18347 \change_deleted 2090807402 1356919073
18348 latexparam
18349 \change_inserted 2090807402 1356919002
18350 LatexParam
18351 \change_unchanged
18352 ]{\SpecialChar \ldots{}
18353 }
18354 \end_layout
18355
18356 \begin_layout Standard
18357 or: 
18358 \end_layout
18359
18360 \begin_layout LyX-Code
18361
18362 \backslash
18363 begin{
18364 \change_deleted 2090807402 1356919013
18365 latexname
18366 \change_inserted 2090807402 1356919014
18367 LatexName
18368 \change_unchanged
18369 }[
18370 \change_deleted 2090807402 1356919013
18371 latexparam
18372 \change_inserted 2090807402 1356919008
18373 LatexParam
18374 \change_unchanged
18375 ] \SpecialChar \ldots{}
18376  
18377 \backslash
18378 end{
18379 \change_deleted 2090807402 1356919016
18380 latexname
18381 \change_inserted 2090807402 1356919016
18382 LatexName
18383 \change_unchanged
18384 }.
18385 \end_layout
18386
18387 \begin_layout Standard
18388 depending upon the LaTeX type.
18389 \end_layout
18390
18391 \end_deeper
18392 \begin_layout Description
18393
18394 \change_inserted -712698321 1354263128
18395 \begin_inset Flex Code
18396 status collapsed
18397
18398 \begin_layout Plain Layout
18399
18400 \change_inserted -712698321 1353866742
18401 LeftDelim
18402 \change_unchanged
18403
18404 \end_layout
18405
18406 \end_inset
18407
18408  [
18409 \begin_inset Flex Code
18410 status collapsed
18411
18412 \begin_layout Plain Layout
18413
18414 \change_inserted -712698321 1353866752
18415 string
18416 \end_layout
18417
18418 \end_inset
18419
18420 ] A string that is put at the beginning of the layout content.
18421  A line break in the output can be indicated by 
18422 \begin_inset Flex Code
18423 status collapsed
18424
18425 \begin_layout Plain Layout
18426
18427 \change_inserted -712698321 1354263128
18428 <br/>
18429 \end_layout
18430
18431 \end_inset
18432
18433 .
18434 \change_unchanged
18435
18436 \end_layout
18437
18438 \begin_layout Description
18439 \begin_inset Flex Code
18440 status collapsed
18441
18442 \begin_layout Plain Layout
18443 LyxType
18444 \end_layout
18445
18446 \end_inset
18447
18448  Can be 
18449 \begin_inset Flex Code
18450 status collapsed
18451
18452 \begin_layout Plain Layout
18453 charstyle
18454 \end_layout
18455
18456 \end_inset
18457
18458
18459 \begin_inset Flex Code
18460 status collapsed
18461
18462 \begin_layout Plain Layout
18463 custom
18464 \end_layout
18465
18466 \end_inset
18467
18468
18469 \begin_inset Flex Code
18470 status collapsed
18471
18472 \begin_layout Plain Layout
18473 element
18474 \end_layout
18475
18476 \end_inset
18477
18478  or 
18479 \begin_inset Flex Code
18480 status collapsed
18481
18482 \begin_layout Plain Layout
18483 end
18484 \end_layout
18485
18486 \end_inset
18487
18488  (indicating a dummy definition ending definitions of charstyles, etc).
18489  This entry is required in and is only meaningful for Flex insets.
18490  Among other things, it determines on which menu this inset will appear.
18491  Setting 
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496 LyXType
18497 \end_layout
18498
18499 \end_inset
18500
18501  to 
18502 \begin_inset Flex Code
18503 status collapsed
18504
18505 \begin_layout Plain Layout
18506 charstyle
18507 \end_layout
18508
18509 \end_inset
18510
18511  will automatically set 
18512 \begin_inset Flex Code
18513 status collapsed
18514
18515 \begin_layout Plain Layout
18516 MultiPar
18517 \end_layout
18518
18519 \end_inset
18520
18521  to false.
18522  
18523 \begin_inset Flex Code
18524 status collapsed
18525
18526 \begin_layout Plain Layout
18527 MultiPar
18528 \end_layout
18529
18530 \end_inset
18531
18532  can be set to true for 
18533 \begin_inset Flex Code
18534 status collapsed
18535
18536 \begin_layout Plain Layout
18537 charstyle
18538 \end_layout
18539
18540 \end_inset
18541
18542  insets by setting it 
18543 \emph on
18544 after
18545 \emph default
18546  you set the 
18547 \begin_inset Flex Code
18548 status collapsed
18549
18550 \begin_layout Plain Layout
18551 LyXType
18552 \end_layout
18553
18554 \end_inset
18555
18556 .
18557 \end_layout
18558
18559 \begin_layout Description
18560 \begin_inset Flex Code
18561 status collapsed
18562
18563 \begin_layout Plain Layout
18564 MultiPar
18565 \end_layout
18566
18567 \end_inset
18568
18569  [
18570 \begin_inset Flex Code
18571 status collapsed
18572
18573 \begin_layout Plain Layout
18574
18575 \emph on
18576 0
18577 \end_layout
18578
18579 \end_inset
18580
18581 ,
18582 \begin_inset space \thinspace{}
18583 \end_inset
18584
18585
18586 \begin_inset Flex Code
18587 status collapsed
18588
18589 \begin_layout Plain Layout
18590 1
18591 \end_layout
18592
18593 \end_inset
18594
18595 ] Whether multiple paragraphs are permitted in this inset.
18596  This will also set 
18597 \begin_inset Flex Code
18598 status collapsed
18599
18600 \begin_layout Plain Layout
18601 CustomPars
18602 \end_layout
18603
18604 \end_inset
18605
18606  to the same value and 
18607 \begin_inset Flex Code
18608 status collapsed
18609
18610 \begin_layout Plain Layout
18611 ForcePlain
18612 \end_layout
18613
18614 \end_inset
18615
18616  to the opposite value.
18617  These can be reset to other values, if they are used 
18618 \emph on
18619 after
18620 \emph default
18621  
18622 \begin_inset Flex Code
18623 status collapsed
18624
18625 \begin_layout Plain Layout
18626 MultiPar
18627 \end_layout
18628
18629 \end_inset
18630
18631 .
18632  Default is true.
18633 \end_layout
18634
18635 \begin_layout Description
18636 \begin_inset Flex Code
18637 status collapsed
18638
18639 \begin_layout Plain Layout
18640 NeedProtect
18641 \end_layout
18642
18643 \end_inset
18644
18645  [
18646 \begin_inset Flex Code
18647 status collapsed
18648
18649 \begin_layout Plain Layout
18650
18651 \emph on
18652 0
18653 \end_layout
18654
18655 \end_inset
18656
18657 ,
18658 \begin_inset space \thinspace{}
18659 \end_inset
18660
18661
18662 \begin_inset Flex Code
18663 status collapsed
18664
18665 \begin_layout Plain Layout
18666 1
18667 \end_layout
18668
18669 \end_inset
18670
18671 ] Whether fragile commands in this inset should be 
18672 \begin_inset Flex Code
18673 status collapsed
18674
18675 \begin_layout Plain Layout
18676
18677 \backslash
18678 protect
18679 \end_layout
18680
18681 \end_inset
18682
18683 'ed.
18684  (Note: This is 
18685 \emph on
18686 not
18687 \emph default
18688  whether the command should itself be protected.) Default is false.
18689 \change_inserted 1414654397 1360681873
18690
18691 \end_layout
18692
18693 \begin_layout Description
18694
18695 \change_inserted 1414654397 1360681892
18696 \begin_inset Flex Code
18697 status collapsed
18698
18699 \begin_layout Plain Layout
18700
18701 \change_inserted 1414654397 1360681880
18702 NoInsetLayout
18703 \end_layout
18704
18705 \end_inset
18706
18707  [
18708 \begin_inset Flex Code
18709 status collapsed
18710
18711 \begin_layout Plain Layout
18712
18713 \change_inserted 1414654397 1360681883
18714 <layout>
18715 \end_layout
18716
18717 \end_inset
18718
18719 ] Deletes an existing 
18720 \begin_inset Flex Code
18721 status open
18722
18723 \begin_layout Plain Layout
18724
18725 \change_inserted 1414654397 1360681892
18726 InsetLayout
18727 \change_unchanged
18728
18729 \end_layout
18730
18731 \end_inset
18732
18733 .
18734 \end_layout
18735
18736 \begin_layout Description
18737 \begin_inset Flex Code
18738 status collapsed
18739
18740 \begin_layout Plain Layout
18741 ParbreakIsNewline
18742 \end_layout
18743
18744 \end_inset
18745
18746  [
18747 \begin_inset Flex Code
18748 status collapsed
18749
18750 \begin_layout Plain Layout
18751
18752 \emph on
18753 0
18754 \end_layout
18755
18756 \end_inset
18757
18758 ,
18759 \begin_inset space \thinspace{}
18760 \end_inset
18761
18762
18763 \begin_inset Flex Code
18764 status collapsed
18765
18766 \begin_layout Plain Layout
18767 1
18768 \end_layout
18769
18770 \end_inset
18771
18772 ] As with paragraph styles, see sec.
18773 \begin_inset space ~
18774 \end_inset
18775
18776
18777 \begin_inset CommandInset ref
18778 LatexCommand ref
18779 reference "sub:Paragraph-Styles"
18780
18781 \end_inset
18782
18783 .
18784  Default is false.
18785 \end_layout
18786
18787 \begin_layout Description
18788 \begin_inset Flex Code
18789 status collapsed
18790
18791 \begin_layout Plain Layout
18792 PassThru
18793 \end_layout
18794
18795 \end_inset
18796
18797  [
18798 \begin_inset Flex Code
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802
18803 \emph on
18804 0
18805 \end_layout
18806
18807 \end_inset
18808
18809 ,
18810 \begin_inset space \thinspace{}
18811 \end_inset
18812
18813
18814 \begin_inset Flex Code
18815 status collapsed
18816
18817 \begin_layout Plain Layout
18818 1
18819 \end_layout
18820
18821 \end_inset
18822
18823 ] As with paragraph styles, see sec.
18824 \begin_inset space ~
18825 \end_inset
18826
18827
18828 \begin_inset CommandInset ref
18829 LatexCommand ref
18830 reference "sub:Paragraph-Styles"
18831
18832 \end_inset
18833
18834 .
18835  Default is false.
18836 \end_layout
18837
18838 \begin_layout Description
18839 \begin_inset Flex Code
18840 status collapsed
18841
18842 \begin_layout Plain Layout
18843 Preamble
18844 \end_layout
18845
18846 \end_inset
18847
18848  As with paragraph styles, see sec.
18849 \begin_inset space ~
18850 \end_inset
18851
18852
18853 \begin_inset CommandInset ref
18854 LatexCommand ref
18855 reference "sub:Paragraph-Styles"
18856
18857 \end_inset
18858
18859 .
18860 \end_layout
18861
18862 \begin_layout Description
18863 \begin_inset Flex Code
18864 status collapsed
18865
18866 \begin_layout Plain Layout
18867 RefPrefix
18868 \end_layout
18869
18870 \end_inset
18871
18872  [
18873 \begin_inset Flex Code
18874 status collapsed
18875
18876 \begin_layout Plain Layout
18877 string
18878 \end_layout
18879
18880 \end_inset
18881
18882 ] The prefix to use when creating labels referring to insets of this type.
18883  This allows the use of formatted references.
18884 \end_layout
18885
18886 \begin_layout Description
18887 \begin_inset Flex Code
18888 status collapsed
18889
18890 \begin_layout Plain Layout
18891 Requires
18892 \end_layout
18893
18894 \end_inset
18895
18896  [
18897 \begin_inset Flex Code
18898 status collapsed
18899
18900 \begin_layout Plain Layout
18901 string
18902 \end_layout
18903
18904 \end_inset
18905
18906 ] As with paragraph styles, see sec.
18907 \begin_inset space ~
18908 \end_inset
18909
18910
18911 \begin_inset CommandInset ref
18912 LatexCommand ref
18913 reference "sub:Paragraph-Styles"
18914
18915 \end_inset
18916
18917 .
18918 \change_inserted -712698321 1354439699
18919
18920 \end_layout
18921
18922 \begin_layout Description
18923
18924 \change_inserted -712698321 1354439705
18925 \begin_inset Flex Code
18926 status collapsed
18927
18928 \begin_layout Plain Layout
18929
18930 \change_inserted -712698321 1354439699
18931 ResetArgs
18932 \end_layout
18933
18934 \end_inset
18935
18936  [
18937 \begin_inset Flex Code
18938 status collapsed
18939
18940 \begin_layout Plain Layout
18941
18942 \change_inserted -712698321 1354439699
18943
18944 \emph on
18945 0
18946 \end_layout
18947
18948 \end_inset
18949
18950 ,
18951 \begin_inset Flex Code
18952 status collapsed
18953
18954 \begin_layout Plain Layout
18955
18956 \change_inserted -712698321 1354439699
18957 1
18958 \end_layout
18959
18960 \end_inset
18961
18962 ] Resets the LaTeX arguments of this layout (as defined via the 
18963 \begin_inset Flex Code
18964 status collapsed
18965
18966 \begin_layout Plain Layout
18967
18968 \change_inserted -712698321 1354439699
18969 Argument
18970 \end_layout
18971
18972 \end_inset
18973
18974  tag).
18975  This is useful if you have copied a style via 
18976 \begin_inset Flex Code
18977 status collapsed
18978
18979 \begin_layout Plain Layout
18980
18981 \change_inserted -712698321 1354439699
18982 CopyStyle
18983 \end_layout
18984
18985 \end_inset
18986
18987 , but you do not want to inherit its (required and optional) arguments.
18988
18989 \change_deleted -712698321 1354439698
18990  
18991 \change_unchanged
18992
18993 \end_layout
18994
18995 \begin_layout Description
18996 \begin_inset Flex Code
18997 status collapsed
18998
18999 \begin_layout Plain Layout
19000 ResetsFont
19001 \end_layout
19002
19003 \end_inset
19004
19005  [
19006 \begin_inset Flex Code
19007 status collapsed
19008
19009 \begin_layout Plain Layout
19010 0
19011 \end_layout
19012
19013 \end_inset
19014
19015 ,
19016 \begin_inset space \thinspace{}
19017 \end_inset
19018
19019
19020 \begin_inset Flex Code
19021 status collapsed
19022
19023 \begin_layout Plain Layout
19024
19025 \emph on
19026 1
19027 \end_layout
19028
19029 \end_inset
19030
19031 ] Whether this inset should use the font of its surrounding environment
19032  or uses its own.
19033  Default is true: uses its own.
19034 \end_layout
19035
19036 \begin_layout Description
19037
19038 \change_inserted -712698321 1354263134
19039 \begin_inset Flex Code
19040 status collapsed
19041
19042 \begin_layout Plain Layout
19043
19044 \change_inserted -712698321 1353866810
19045 RightDelim
19046 \end_layout
19047
19048 \end_inset
19049
19050  [
19051 \begin_inset Flex Code
19052 status collapsed
19053
19054 \begin_layout Plain Layout
19055
19056 \change_inserted -712698321 1353866806
19057 string
19058 \end_layout
19059
19060 \end_inset
19061
19062 ] A string that is put at the end of the layout content.
19063  A line break in the output can be indicated by 
19064 \begin_inset Flex Code
19065 status collapsed
19066
19067 \begin_layout Plain Layout
19068
19069 \change_inserted -712698321 1354263134
19070 <br/>
19071 \end_layout
19072
19073 \end_inset
19074
19075 .
19076 \change_unchanged
19077
19078 \end_layout
19079
19080 \begin_layout Description
19081 \begin_inset Flex Code
19082 status collapsed
19083
19084 \begin_layout Plain Layout
19085 Spellcheck
19086 \end_layout
19087
19088 \end_inset
19089
19090  [
19091 \begin_inset Flex Code
19092 status collapsed
19093
19094 \begin_layout Plain Layout
19095 0
19096 \end_layout
19097
19098 \end_inset
19099
19100 ,
19101 \begin_inset space \thinspace{}
19102 \end_inset
19103
19104
19105 \begin_inset Flex Code
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109
19110 \emph on
19111 1
19112 \end_layout
19113
19114 \end_inset
19115
19116 ] Allow spell-checking the contents of this inset.
19117  Default is true.
19118 \end_layout
19119
19120 \begin_layout Subsection
19121 Counters
19122 \begin_inset CommandInset label
19123 LatexCommand label
19124 name "sub:Counters"
19125
19126 \end_inset
19127
19128
19129 \end_layout
19130
19131 \begin_layout Standard
19132 It is necessary to define the counters (
19133 \begin_inset Flex MenuItem
19134 status collapsed
19135
19136 \begin_layout Plain Layout
19137 chapter
19138 \end_layout
19139
19140 \end_inset
19141
19142
19143 \begin_inset Flex MenuItem
19144 status collapsed
19145
19146 \begin_layout Plain Layout
19147 figure
19148 \end_layout
19149
19150 \end_inset
19151
19152 , \SpecialChar \ldots{}
19153 ) in the text class itself.
19154  The standard counters are defined in the file 
19155 \begin_inset Flex Code
19156 status collapsed
19157
19158 \begin_layout Plain Layout
19159 stdcounters.inc
19160 \end_layout
19161
19162 \end_inset
19163
19164 , so you may have to do no more than add
19165 \end_layout
19166
19167 \begin_layout LyX-Code
19168 Input stdcounters.inc
19169 \end_layout
19170
19171 \begin_layout Standard
19172 to your layout file to get them to work.
19173  But if you want to define custom counters, then you can do so.
19174  The counter declaration must begin with:
19175 \end_layout
19176
19177 \begin_layout LyX-Code
19178 Counter CounterName
19179 \end_layout
19180
19181 \begin_layout Standard
19182 where of course `
19183 \begin_inset Flex Code
19184 status collapsed
19185
19186 \begin_layout Plain Layout
19187 CounterName
19188 \end_layout
19189
19190 \end_inset
19191
19192 ' is replaced by the name of the counter.
19193  And it must end with 
19194 \begin_inset Quotes eld
19195 \end_inset
19196
19197
19198 \begin_inset Flex Code
19199 status collapsed
19200
19201 \begin_layout Plain Layout
19202 End
19203 \end_layout
19204
19205 \end_inset
19206
19207
19208 \begin_inset Quotes erd
19209 \end_inset
19210
19211 .
19212  The following parameters can also be used:
19213 \end_layout
19214
19215 \begin_layout Description
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220 LabelString
19221 \end_layout
19222
19223 \end_inset
19224
19225  [
19226 \begin_inset Flex Code
19227 status collapsed
19228
19229 \begin_layout Plain Layout
19230 string
19231 \end_layout
19232
19233 \end_inset
19234
19235 =
19236 \begin_inset Quotes erd
19237 \end_inset
19238
19239
19240 \begin_inset Quotes erd
19241 \end_inset
19242
19243 ] When defined, this string defines how the counter is displayed.
19244  Setting this value sets 
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 LabelStringAppendix
19250 \end_layout
19251
19252 \end_inset
19253
19254  to the same value.
19255  The following special constructs can be used in the string:
19256 \end_layout
19257
19258 \begin_deeper
19259 \begin_layout Itemize
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264
19265 \backslash
19266 thecounter
19267 \end_layout
19268
19269 \end_inset
19270
19271  will be replaced by the expansion of the 
19272 \begin_inset Flex Code
19273 status collapsed
19274
19275 \begin_layout Plain Layout
19276 LabelString
19277 \end_layout
19278
19279 \end_inset
19280
19281  (or 
19282 \begin_inset Flex Code
19283 status collapsed
19284
19285 \begin_layout Plain Layout
19286 LabelStringAppendix
19287 \end_layout
19288
19289 \end_inset
19290
19291 ) of the counter 
19292 \begin_inset Flex Code
19293 status collapsed
19294
19295 \begin_layout Plain Layout
19296 counter
19297 \end_layout
19298
19299 \end_inset
19300
19301 .
19302  
19303 \end_layout
19304
19305 \begin_layout Itemize
19306 counter values can be expressed using LaTeX-like macros
19307 \begin_inset Newline newline
19308 \end_inset
19309
19310
19311 \begin_inset Flex Code
19312 status collapsed
19313
19314 \begin_layout Plain Layout
19315
19316 \backslash
19317
19318 \emph on
19319 numbertype
19320 \emph default
19321 {
19322 \emph on
19323 counter
19324 \emph default
19325 }
19326 \end_layout
19327
19328 \end_inset
19329
19330 , where 
19331 \begin_inset Flex Code
19332 status collapsed
19333
19334 \begin_layout Plain Layout
19335
19336 \emph on
19337 numbertype
19338 \end_layout
19339
19340 \end_inset
19341
19342  can be:
19343 \begin_inset Foot
19344 status collapsed
19345
19346 \begin_layout Plain Layout
19347
19348 \family roman
19349 \series medium
19350 \shape up
19351 \size normal
19352 \emph off
19353 \bar no
19354 \noun off
19355 \color none
19356 Actually, the situation is a bit more complicated: any
19357 \family default
19358 \series default
19359 \shape default
19360 \emph default
19361 \bar default
19362  
19363 \size default
19364 \emph on
19365 \noun default
19366 \color inherit
19367 numbertype
19368 \family roman
19369 \series medium
19370 \shape up
19371 \size normal
19372 \emph off
19373 \bar no
19374 \noun off
19375  other than those described below will produce arabic numerals.
19376  It would not be surprising to see this change in the future.
19377 \end_layout
19378
19379 \end_inset
19380
19381  
19382 \begin_inset Flex Code
19383 status collapsed
19384
19385 \begin_layout Plain Layout
19386 arabic
19387 \end_layout
19388
19389 \end_inset
19390
19391 : 1, 2, 3,\SpecialChar \ldots{}
19392
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 alph
19398 \end_layout
19399
19400 \end_inset
19401
19402  for lower-case letters: a, b, c, \SpecialChar \ldots{}
19403
19404 \begin_inset Flex Code
19405 status collapsed
19406
19407 \begin_layout Plain Layout
19408 Alph
19409 \end_layout
19410
19411 \end_inset
19412
19413  for upper-case letters: A, B, C, \SpecialChar \ldots{}
19414
19415 \begin_inset Flex Code
19416 status collapsed
19417
19418 \begin_layout Plain Layout
19419 roman
19420 \end_layout
19421
19422 \end_inset
19423
19424  for lower-case roman numerals: i, ii, iii, \SpecialChar \ldots{}
19425
19426 \begin_inset Flex Code
19427 status collapsed
19428
19429 \begin_layout Plain Layout
19430 Roman
19431 \end_layout
19432
19433 \end_inset
19434
19435  for upper-case roman numerals: I, II, III\SpecialChar \ldots{}
19436
19437 \begin_inset Flex Code
19438 status collapsed
19439
19440 \begin_layout Plain Layout
19441 hebrew
19442 \end_layout
19443
19444 \end_inset
19445
19446  for hebrew numerals.
19447 \end_layout
19448
19449 \end_deeper
19450 \begin_layout Standard
19451 If LabelString is not defined, a default value is constructed as follows:
19452  if the counter has a master counter 
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 master
19458 \end_layout
19459
19460 \end_inset
19461
19462  (defined via 
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 Within
19468 \end_layout
19469
19470 \end_inset
19471
19472 ), the string
19473 \begin_inset Newline newline
19474 \end_inset
19475
19476
19477 \begin_inset Flex Code
19478 status collapsed
19479
19480 \begin_layout Plain Layout
19481
19482 \backslash
19483 themaster.
19484 \backslash
19485 arabic{counter}
19486 \end_layout
19487
19488 \end_inset
19489
19490  is used; otherwise the string 
19491 \begin_inset Flex Code
19492 status collapsed
19493
19494 \begin_layout Plain Layout
19495
19496 \backslash
19497 arabic{counter}
19498 \end_layout
19499
19500 \end_inset
19501
19502  is used.
19503 \end_layout
19504
19505 \begin_layout Description
19506 \begin_inset Flex Code
19507 status collapsed
19508
19509 \begin_layout Plain Layout
19510 LabelStringAppendix
19511 \end_layout
19512
19513 \end_inset
19514
19515  [
19516 \begin_inset Flex Code
19517 status collapsed
19518
19519 \begin_layout Plain Layout
19520 string
19521 \end_layout
19522
19523 \end_inset
19524
19525 =
19526 \begin_inset Quotes erd
19527 \end_inset
19528
19529
19530 \begin_inset Quotes erd
19531 \end_inset
19532
19533 ] Same as 
19534 \begin_inset Flex Code
19535 status collapsed
19536
19537 \begin_layout Plain Layout
19538 LabelString
19539 \end_layout
19540
19541 \end_inset
19542
19543 , but for use in the Appendix.
19544 \end_layout
19545
19546 \begin_layout Description
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551 PrettyFormat
19552 \end_layout
19553
19554 \end_inset
19555
19556  [
19557 \begin_inset Flex Code
19558 status collapsed
19559
19560 \begin_layout Plain Layout
19561 string
19562 \end_layout
19563
19564 \end_inset
19565
19566 =
19567 \begin_inset Quotes erd
19568 \end_inset
19569
19570
19571 \begin_inset Quotes erd
19572 \end_inset
19573
19574 ] A format for use with formatted references to this counter.
19575  For example, one might want to have references to section numbers appear
19576  as 
19577 \begin_inset Quotes eld
19578 \end_inset
19579
19580 Section 2.4
19581 \begin_inset Quotes erd
19582 \end_inset
19583
19584 .
19585  The string should contain 
19586 \begin_inset Quotes eld
19587 \end_inset
19588
19589 ##
19590 \begin_inset Quotes erd
19591 \end_inset
19592
19593 .
19594  This will be replaced by the counter number itself.
19595  So, for sections, it would be: Section ##.
19596 \end_layout
19597
19598 \begin_layout Description
19599 \begin_inset Flex Code
19600 status collapsed
19601
19602 \begin_layout Plain Layout
19603 Within
19604 \end_layout
19605
19606 \end_inset
19607
19608  [
19609 \begin_inset Flex Code
19610 status collapsed
19611
19612 \begin_layout Plain Layout
19613 string
19614 \end_layout
19615
19616 \end_inset
19617
19618 =
19619 \begin_inset Quotes erd
19620 \end_inset
19621
19622
19623 \begin_inset Quotes erd
19624 \end_inset
19625
19626 ] If this is set to the name of another counter, the present counter will
19627  be reset every time the other one is increased.
19628  For example, 
19629 \begin_inset Flex Code
19630 status collapsed
19631
19632 \begin_layout Plain Layout
19633 subsection
19634 \end_layout
19635
19636 \end_inset
19637
19638  is numbered inside 
19639 \begin_inset Flex Code
19640 status collapsed
19641
19642 \begin_layout Plain Layout
19643 section
19644 \end_layout
19645
19646 \end_inset
19647
19648 .
19649 \end_layout
19650
19651 \begin_layout Subsection
19652 Font description
19653 \begin_inset CommandInset label
19654 LatexCommand label
19655 name "sub:Font-description"
19656
19657 \end_inset
19658
19659
19660 \end_layout
19661
19662 \begin_layout Standard
19663 A font description looks like this:
19664 \end_layout
19665
19666 \begin_layout LyX-Code
19667 Font 
19668 \family roman
19669 \emph on
19670 or
19671 \family default
19672 \emph default
19673  LabelFont
19674 \emph on
19675  or
19676 \emph default
19677  DefaultFont
19678 \end_layout
19679
19680 \begin_layout LyX-Code
19681  ...
19682 \end_layout
19683
19684 \begin_layout LyX-Code
19685 EndFont
19686 \end_layout
19687
19688 \begin_layout Standard
19689 The following commands are available:
19690 \end_layout
19691
19692 \begin_layout Description
19693 \begin_inset Flex Code
19694 status collapsed
19695
19696 \begin_layout Plain Layout
19697 Color
19698 \end_layout
19699
19700 \end_inset
19701
19702  [
19703 \begin_inset Flex Code
19704 status collapsed
19705
19706 \begin_layout Plain Layout
19707
19708 \emph on
19709 none
19710 \end_layout
19711
19712 \end_inset
19713
19714
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 black
19720 \end_layout
19721
19722 \end_inset
19723
19724
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 white
19730 \end_layout
19731
19732 \end_inset
19733
19734
19735 \begin_inset Flex Code
19736 status collapsed
19737
19738 \begin_layout Plain Layout
19739 red
19740 \end_layout
19741
19742 \end_inset
19743
19744
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 green
19750 \end_layout
19751
19752 \end_inset
19753
19754
19755 \begin_inset Flex Code
19756 status collapsed
19757
19758 \begin_layout Plain Layout
19759 blue
19760 \end_layout
19761
19762 \end_inset
19763
19764
19765 \begin_inset Flex Code
19766 status collapsed
19767
19768 \begin_layout Plain Layout
19769 cyan
19770 \end_layout
19771
19772 \end_inset
19773
19774
19775 \begin_inset Flex Code
19776 status collapsed
19777
19778 \begin_layout Plain Layout
19779 magenta
19780 \end_layout
19781
19782 \end_inset
19783
19784
19785 \begin_inset Flex Code
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789 yellow
19790 \end_layout
19791
19792 \end_inset
19793
19794 ]
19795 \end_layout
19796
19797 \begin_layout Description
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 Family
19803 \end_layout
19804
19805 \end_inset
19806
19807  [
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812
19813 \emph on
19814 Roman
19815 \end_layout
19816
19817 \end_inset
19818
19819
19820 \begin_inset Flex Code
19821 status collapsed
19822
19823 \begin_layout Plain Layout
19824 Sans
19825 \end_layout
19826
19827 \end_inset
19828
19829
19830 \begin_inset Flex Code
19831 status collapsed
19832
19833 \begin_layout Plain Layout
19834 Typewriter
19835 \end_layout
19836
19837 \end_inset
19838
19839 ]
19840 \end_layout
19841
19842 \begin_layout Description
19843 \begin_inset Flex Code
19844 status collapsed
19845
19846 \begin_layout Plain Layout
19847 Misc
19848 \end_layout
19849
19850 \end_inset
19851
19852  [
19853 \begin_inset Flex Code
19854 status collapsed
19855
19856 \begin_layout Plain Layout
19857 string
19858 \end_layout
19859
19860 \end_inset
19861
19862 ] Valid arguments are: 
19863 \begin_inset Flex Code
19864 status collapsed
19865
19866 \begin_layout Plain Layout
19867 emph
19868 \end_layout
19869
19870 \end_inset
19871
19872
19873 \begin_inset Flex Code
19874 status collapsed
19875
19876 \begin_layout Plain Layout
19877 noun
19878 \end_layout
19879
19880 \end_inset
19881
19882
19883 \begin_inset Flex Code
19884 status collapsed
19885
19886 \begin_layout Plain Layout
19887 strikeout
19888 \end_layout
19889
19890 \end_inset
19891
19892
19893 \begin_inset Flex Code
19894 status collapsed
19895
19896 \begin_layout Plain Layout
19897 underbar
19898 \end_layout
19899
19900 \end_inset
19901
19902
19903 \begin_inset Flex Code
19904 status collapsed
19905
19906 \begin_layout Plain Layout
19907 uuline
19908 \end_layout
19909
19910 \end_inset
19911
19912
19913 \begin_inset Flex Code
19914 status collapsed
19915
19916 \begin_layout Plain Layout
19917 uwave
19918 \end_layout
19919
19920 \end_inset
19921
19922
19923 \begin_inset Flex Code
19924 status collapsed
19925
19926 \begin_layout Plain Layout
19927 no_emph
19928 \end_layout
19929
19930 \end_inset
19931
19932
19933 \begin_inset Flex Code
19934 status collapsed
19935
19936 \begin_layout Plain Layout
19937 no_noun
19938 \end_layout
19939
19940 \end_inset
19941
19942
19943 \begin_inset Flex Code
19944 status collapsed
19945
19946 \begin_layout Plain Layout
19947 no_strikeout
19948 \end_layout
19949
19950 \end_inset
19951
19952
19953 \begin_inset Flex Code
19954 status collapsed
19955
19956 \begin_layout Plain Layout
19957 no_bar
19958 \end_layout
19959
19960 \end_inset
19961
19962
19963 \begin_inset Flex Code
19964 status collapsed
19965
19966 \begin_layout Plain Layout
19967 no_uuline
19968 \end_layout
19969
19970 \end_inset
19971
19972  and 
19973 \begin_inset Flex Code
19974 status collapsed
19975
19976 \begin_layout Plain Layout
19977 no_uwave
19978 \end_layout
19979
19980 \end_inset
19981
19982 .
19983  Each of these turns on or off the corresponding attribute.
19984  For example, 
19985 \begin_inset Flex Code
19986 status collapsed
19987
19988 \begin_layout Plain Layout
19989 emph
19990 \end_layout
19991
19992 \end_inset
19993
19994  turns on emphasis, and 
19995 \begin_inset Flex Code
19996 status collapsed
19997
19998 \begin_layout Plain Layout
19999 no_emph
20000 \end_layout
20001
20002 \end_inset
20003
20004  turns it off.
20005  
20006 \begin_inset Newline newline
20007 \end_inset
20008
20009 If the latter seems puzzling, remember that the font settings for the present
20010  context are generally inherited from the surrounding context.
20011  So 
20012 \begin_inset Flex Code
20013 status collapsed
20014
20015 \begin_layout Plain Layout
20016 no_emph
20017 \end_layout
20018
20019 \end_inset
20020
20021  would turn off the emphasis that was anyway in effect, say, in a theorem
20022  environment.
20023 \end_layout
20024
20025 \begin_layout Description
20026 \begin_inset Flex Code
20027 status collapsed
20028
20029 \begin_layout Plain Layout
20030 Series
20031 \end_layout
20032
20033 \end_inset
20034
20035  [
20036 \begin_inset Flex Code
20037 status collapsed
20038
20039 \begin_layout Plain Layout
20040
20041 \emph on
20042 Medium
20043 \end_layout
20044
20045 \end_inset
20046
20047
20048 \begin_inset Flex Code
20049 status collapsed
20050
20051 \begin_layout Plain Layout
20052 Bold
20053 \end_layout
20054
20055 \end_inset
20056
20057
20058 \end_layout
20059
20060 \begin_layout Description
20061 \begin_inset Flex Code
20062 status collapsed
20063
20064 \begin_layout Plain Layout
20065 Shape
20066 \end_layout
20067
20068 \end_inset
20069
20070  [
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075
20076 \emph on
20077 Up
20078 \end_layout
20079
20080 \end_inset
20081
20082
20083 \begin_inset Flex Code
20084 status collapsed
20085
20086 \begin_layout Plain Layout
20087 Italic
20088 \end_layout
20089
20090 \end_inset
20091
20092
20093 \begin_inset Flex Code
20094 status collapsed
20095
20096 \begin_layout Plain Layout
20097 SmallCaps
20098 \end_layout
20099
20100 \end_inset
20101
20102
20103 \begin_inset Flex Code
20104 status collapsed
20105
20106 \begin_layout Plain Layout
20107 Slanted
20108 \end_layout
20109
20110 \end_inset
20111
20112
20113 \end_layout
20114
20115 \begin_layout Description
20116 \begin_inset Flex Code
20117 status collapsed
20118
20119 \begin_layout Plain Layout
20120 Size
20121 \end_layout
20122
20123 \end_inset
20124
20125  [
20126 \begin_inset Flex Code
20127 status collapsed
20128
20129 \begin_layout Plain Layout
20130 tiny
20131 \end_layout
20132
20133 \end_inset
20134
20135
20136 \begin_inset Flex Code
20137 status collapsed
20138
20139 \begin_layout Plain Layout
20140 small
20141 \end_layout
20142
20143 \end_inset
20144
20145
20146 \begin_inset Flex Code
20147 status collapsed
20148
20149 \begin_layout Plain Layout
20150
20151 \emph on
20152 normal
20153 \end_layout
20154
20155 \end_inset
20156
20157
20158 \begin_inset Flex Code
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162 large
20163 \end_layout
20164
20165 \end_inset
20166
20167
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 larger
20173 \end_layout
20174
20175 \end_inset
20176
20177
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 largest
20183 \end_layout
20184
20185 \end_inset
20186
20187
20188 \begin_inset Flex Code
20189 status collapsed
20190
20191 \begin_layout Plain Layout
20192 huge
20193 \end_layout
20194
20195 \end_inset
20196
20197
20198 \begin_inset Flex Code
20199 status collapsed
20200
20201 \begin_layout Plain Layout
20202 giant
20203 \end_layout
20204
20205 \end_inset
20206
20207 ]
20208 \end_layout
20209
20210 \begin_layout Subsection
20211 \begin_inset CommandInset label
20212 LatexCommand label
20213 name "sub:Citation-format-description"
20214
20215 \end_inset
20216
20217 Citation format description
20218 \end_layout
20219
20220 \begin_layout Standard
20221 The 
20222 \begin_inset Flex Code
20223 status collapsed
20224
20225 \begin_layout Plain Layout
20226 CiteFormat
20227 \end_layout
20228
20229 \end_inset
20230
20231  blocks are used to describe how bibliographic information should be displayed,
20232  both within LyX itself (in the citation dialog and in tooltips, for example)
20233  and in XHTML output.
20234  Such a block might look like this:
20235 \end_layout
20236
20237 \begin_layout LyX-Code
20238 CiteFormat
20239 \end_layout
20240
20241 \begin_layout LyX-Code
20242  article ...
20243 \end_layout
20244
20245 \begin_layout LyX-Code
20246  book ...
20247 \end_layout
20248
20249 \begin_layout LyX-Code
20250 End
20251 \end_layout
20252
20253 \begin_layout Standard
20254 The individual lines define how the bibliographic information associated
20255  with an article or book, respectively, is to be displayed, and such a definitio
20256 n can be given for any `entry type' that might be present in a BibTeX file.
20257  LyX defines a default format in the source code that will be used if no
20258  specific definition has been given.
20259  LyX predefines several formats in the file 
20260 \begin_inset Flex Code
20261 status collapsed
20262
20263 \begin_layout Plain Layout
20264 stdciteformats.inc
20265 \end_layout
20266
20267 \end_inset
20268
20269 , which is included in most of LyX's document classes.
20270 \end_layout
20271
20272 \begin_layout Standard
20273 The definitions use a simple language that allows BibTeX keys to be replaced
20274  with their values.
20275  Keys should be enclosed in 
20276 \begin_inset Flex Code
20277 status collapsed
20278
20279 \begin_layout Plain Layout
20280 %
20281 \end_layout
20282
20283 \end_inset
20284
20285  signs, e.g.: 
20286 \begin_inset Flex Code
20287 status collapsed
20288
20289 \begin_layout Plain Layout
20290 %author%
20291 \end_layout
20292
20293 \end_inset
20294
20295 .
20296  So a simple definition might look like this:
20297 \end_layout
20298
20299 \begin_layout LyX-Code
20300 misc %author%, 
20301 \begin_inset Quotes eld
20302 \end_inset
20303
20304 %title
20305 \begin_inset Quotes erd
20306 \end_inset
20307
20308 .
20309 \end_layout
20310
20311 \begin_layout Standard
20312 This would print the author, followed by a comma, followed by the title,
20313  in quotes, followed by a period.
20314 \end_layout
20315
20316 \begin_layout Standard
20317 Of course, sometimes you may want to print a key only if it exists.
20318  This can be done by using a conditional construction, such as: 
20319 \begin_inset Flex Code
20320 status collapsed
20321
20322 \begin_layout Plain Layout
20323 {%volume%[[vol.
20324 \begin_inset space ~
20325 \end_inset
20326
20327 %volume%]]}
20328 \end_layout
20329
20330 \end_inset
20331
20332 .
20333  This says: If the 
20334 \begin_inset Flex Code
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 volume
20339 \end_layout
20340
20341 \end_inset
20342
20343  key exists, then print 
20344 \begin_inset Quotes eld
20345 \end_inset
20346
20347 vol.
20348 \begin_inset space ~
20349 \end_inset
20350
20351
20352 \begin_inset Quotes erd
20353 \end_inset
20354
20355  followed by the volume key.
20356  It is also possible to have an else clause in the conditional, such as:
20357 \begin_inset Newline newline
20358 \end_inset
20359
20360
20361 \begin_inset Flex Code
20362 status collapsed
20363
20364 \begin_layout Plain Layout
20365 {%author%[[%author%]][[%editor%, ed.]]}
20366 \end_layout
20367
20368 \end_inset
20369
20370 .
20371 \begin_inset Newline newline
20372 \end_inset
20373
20374 Here, the 
20375 \begin_inset Flex Code
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379 author
20380 \end_layout
20381
20382 \end_inset
20383
20384  key is printed if it exists; otherwise, the editor key is printed, followed
20385  by 
20386 \begin_inset Quotes eld
20387 \end_inset
20388
20389 ,
20390 \begin_inset space ~
20391 \end_inset
20392
20393 ed.
20394 \begin_inset Quotes erd
20395 \end_inset
20396
20397  Note that the key is again enclosed in 
20398 \begin_inset Flex Code
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 %
20403 \end_layout
20404
20405 \end_inset
20406
20407  signs; the entire conditional is enclosed in braces; and the if and else
20408  clauses are enclosed in double brackets, 
20409 \begin_inset Quotes eld
20410 \end_inset
20411
20412
20413 \begin_inset Flex Code
20414 status collapsed
20415
20416 \begin_layout Plain Layout
20417 [[
20418 \end_layout
20419
20420 \end_inset
20421
20422
20423 \begin_inset Quotes eld
20424 \end_inset
20425
20426  and 
20427 \begin_inset Quotes eld
20428 \end_inset
20429
20430
20431 \begin_inset Flex Code
20432 status collapsed
20433
20434 \begin_layout Plain Layout
20435 ]]
20436 \end_layout
20437
20438 \end_inset
20439
20440
20441 \begin_inset Quotes erd
20442 \end_inset
20443
20444 .
20445  There must be no space between any of these.
20446 \end_layout
20447
20448 \begin_layout Standard
20449 There is one other piece of syntax available in definitions, which looks
20450  like this: 
20451 \begin_inset Flex Code
20452 status collapsed
20453
20454 \begin_layout Plain Layout
20455 {!<i>!}
20456 \end_layout
20457
20458 \end_inset
20459
20460 .
20461  This defines a piece of formatting information that is to be used when
20462  creating 
20463 \begin_inset Quotes eld
20464 \end_inset
20465
20466 rich text
20467 \begin_inset Quotes erd
20468 \end_inset
20469
20470 .
20471  Obviously, we do not want to output HTML tags when writing plain text,
20472  so they should be wrapped in 
20473 \begin_inset Quotes eld
20474 \end_inset
20475
20476 {!
20477 \begin_inset Quotes erd
20478 \end_inset
20479
20480  and 
20481 \begin_inset Quotes eld
20482 \end_inset
20483
20484 !}
20485 \begin_inset Quotes erd
20486 \end_inset
20487
20488 .
20489 \end_layout
20490
20491 \begin_layout Standard
20492 Two special sorts of definitions are also possible in a 
20493 \begin_inset Flex Code
20494 status collapsed
20495
20496 \begin_layout Plain Layout
20497 CiteFormat
20498 \end_layout
20499
20500 \end_inset
20501
20502  block.
20503  An example of the first would be:
20504 \end_layout
20505
20506 \begin_layout LyX-Code
20507 !quotetitle 
20508 \begin_inset Quotes eld
20509 \end_inset
20510
20511 %title%
20512 \begin_inset Quotes erd
20513 \end_inset
20514
20515
20516 \end_layout
20517
20518 \begin_layout Standard
20519 This is an abbreviation, or macro, and it can be used by treating it as
20520  if it were a key: 
20521 \begin_inset Flex Code
20522 status collapsed
20523
20524 \begin_layout Plain Layout
20525 %!quotetitle%
20526 \end_layout
20527
20528 \end_inset
20529
20530 .
20531  LyX will treat 
20532 \begin_inset Flex Code
20533 status collapsed
20534
20535 \begin_layout Plain Layout
20536 %!quotetitle%
20537 \end_layout
20538
20539 \end_inset
20540
20541  exactly as it would treat its definition.
20542  So, let us issue the obvious 
20543 \emph on
20544 warning
20545 \emph default
20546 .
20547  Do not do this:
20548 \end_layout
20549
20550 \begin_layout LyX-Code
20551 !funfun %funfun%
20552 \end_layout
20553
20554 \begin_layout Standard
20555 or anything like it.
20556  LyX shouldn't go into an infinite loop, but it may go into a long one before
20557  it gives up.
20558 \end_layout
20559
20560 \begin_layout Standard
20561 The second sort of special definition might look like this:
20562 \end_layout
20563
20564 \begin_layout LyX-Code
20565 _pptext pp.
20566 \end_layout
20567
20568 \begin_layout Standard
20569 This defines a translatable piece of text, which allows relevant parts of
20570  the bibliography to be translated.
20571  It can be included in a definition by treating it as a key: 
20572 \begin_inset Flex Code
20573 status collapsed
20574
20575 \begin_layout Plain Layout
20576 %_pptext%
20577 \end_layout
20578
20579 \end_inset
20580
20581 .
20582  Several of these are predefined in 
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 stdciteformats.inc
20588 \end_layout
20589
20590 \end_inset
20591
20592 .
20593  Note that these are not macros, in the sense just defined.
20594  They will not be expanded.
20595 \end_layout
20596
20597 \begin_layout Standard
20598 So here then is an example that use all these features:
20599 \begin_inset VSpace defskip
20600 \end_inset
20601
20602
20603 \end_layout
20604
20605 \begin_layout Standard
20606 \noindent
20607
20608 \family typewriter
20609 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20610 \end_layout
20611
20612 \begin_layout Standard
20613 \begin_inset VSpace defskip
20614 \end_inset
20615
20616 This defines a macro that prints the author, followed by a comma, if the
20617  
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 author
20623 \end_layout
20624
20625 \end_inset
20626
20627  key is defined, or else prints the name of the editor, followed by the
20628  
20629 \begin_inset Flex Code
20630 status collapsed
20631
20632 \begin_layout Plain Layout
20633 _edtext
20634 \end_layout
20635
20636 \end_inset
20637
20638  or its translation (it is by default 
20639 \begin_inset Quotes eld
20640 \end_inset
20641
20642 ed.
20643 \begin_inset Quotes erd
20644 \end_inset
20645
20646 ), if the 
20647 \begin_inset Flex Code
20648 status collapsed
20649
20650 \begin_layout Plain Layout
20651 editor
20652 \end_layout
20653
20654 \end_inset
20655
20656  key is defined.
20657  Note that this is in fact defined in 
20658 \begin_inset Flex Code
20659 status collapsed
20660
20661 \begin_layout Plain Layout
20662 stdciteformats.inc
20663 \end_layout
20664
20665 \end_inset
20666
20667 , so you can use it in your own definitions, or re-definitions, if you load
20668  that file first.
20669 \end_layout
20670
20671 \begin_layout Section
20672 \begin_inset CommandInset label
20673 LatexCommand label
20674 name "sec:Tags-for-XHTML"
20675
20676 \end_inset
20677
20678 Tags for XHTML output
20679 \end_layout
20680
20681 \begin_layout Standard
20682 As with LaTeX or DocBook, the format of LyX's XHTML output is also controlled
20683  by layout information.
20684  In general, LyX provides sensible defaults and, as mentioned earlier, it
20685  will even construct default CSS style rules from the other layout tags.
20686  For example, LyX will attempt to use the information provided in the 
20687 \begin_inset Flex Code
20688 status collapsed
20689
20690 \begin_layout Plain Layout
20691 Font
20692 \end_layout
20693
20694 \end_inset
20695
20696  declaration for the Chapter style to write CSS that will appropriately
20697  format chapter headings.
20698 \end_layout
20699
20700 \begin_layout Standard
20701 In many cases, then, you may not have to do anything at all to get acceptable
20702  XHTML output for your own environments, custom insets, and so forth.
20703  But in some cases you will, and so LyX provides a number of layout tags
20704  that can be used to customize the XHTML and CSS that are generated.
20705 \end_layout
20706
20707 \begin_layout Standard
20708 Note that there are two tags, 
20709 \begin_inset Flex Code
20710 status collapsed
20711
20712 \begin_layout Plain Layout
20713 HTMLPreamble
20714 \end_layout
20715
20716 \end_inset
20717
20718  and 
20719 \begin_inset Flex Code
20720 status collapsed
20721
20722 \begin_layout Plain Layout
20723 AddToHTMLPreamble
20724 \end_layout
20725
20726 \end_inset
20727
20728  that may appear outside style and inset declarations.
20729  See 
20730 \begin_inset CommandInset ref
20731 LatexCommand ref
20732 reference "sub:General-text-class"
20733
20734 \end_inset
20735
20736  for details on these.
20737 \end_layout
20738
20739 \begin_layout Subsection
20740 \begin_inset CommandInset label
20741 LatexCommand label
20742 name "sub:Paragraph-Style-XHTML"
20743
20744 \end_inset
20745
20746 Paragraph styles
20747 \end_layout
20748
20749 \begin_layout Standard
20750 The sort of XHTML LyX outputs for a paragraph depends upon whether we are
20751  dealing with a normal paragraph, a command, or an environment, where this
20752  is itself determined by the contents of the corresponding 
20753 \begin_inset Flex Code
20754 status collapsed
20755
20756 \begin_layout Plain Layout
20757 LaTeXType
20758 \end_layout
20759
20760 \end_inset
20761
20762  tag.
20763  
20764 \end_layout
20765
20766 \begin_layout Standard
20767 For a command or normal paragraph, the output XHTML has the following form:
20768 \end_layout
20769
20770 \begin_layout LyX-Code
20771 <tag attr=
20772 \begin_inset Quotes erd
20773 \end_inset
20774
20775 value
20776 \begin_inset Quotes erd
20777 \end_inset
20778
20779 >
20780 \end_layout
20781
20782 \begin_layout LyX-Code
20783 <labeltag attr=
20784 \begin_inset Quotes erd
20785 \end_inset
20786
20787 value
20788 \begin_inset Quotes erd
20789 \end_inset
20790
20791 >Label</labeltag>
20792 \end_layout
20793
20794 \begin_layout LyX-Code
20795 Contents of the paragraph.
20796 \end_layout
20797
20798 \begin_layout LyX-Code
20799 </tag>
20800 \end_layout
20801
20802 \begin_layout Standard
20803 The label tags are of course omitted if the paragraph does not have a label.
20804 \end_layout
20805
20806 \begin_layout Standard
20807 For an environment that is not some sort of list, the XHTML takes this form:
20808 \end_layout
20809
20810 \begin_layout LyX-Code
20811 <tag attr=
20812 \begin_inset Quotes erd
20813 \end_inset
20814
20815 value
20816 \begin_inset Quotes erd
20817 \end_inset
20818
20819 >
20820 \end_layout
20821
20822 \begin_layout LyX-Code
20823 <itemtag attr=
20824 \begin_inset Quotes erd
20825 \end_inset
20826
20827 value
20828 \begin_inset Quotes erd
20829 \end_inset
20830
20831 ><labeltag attr=
20832 \begin_inset Quotes erd
20833 \end_inset
20834
20835 value
20836 \begin_inset Quotes erd
20837 \end_inset
20838
20839 >Environment Label</labeltag>First paragraph.</itemtag>
20840 \end_layout
20841
20842 \begin_layout LyX-Code
20843 <itemtag>Second paragraph.</itemtag>
20844 \end_layout
20845
20846 \begin_layout LyX-Code
20847 </tag>
20848 \end_layout
20849
20850 \begin_layout Standard
20851 Note that the label is output only for the first paragraph, as it should
20852  be for a theorem, for example.
20853  
20854 \end_layout
20855
20856 \begin_layout Standard
20857 For a list, we have one of these forms:
20858 \end_layout
20859
20860 \begin_layout LyX-Code
20861 <tag attr=
20862 \begin_inset Quotes erd
20863 \end_inset
20864
20865 value
20866 \begin_inset Quotes erd
20867 \end_inset
20868
20869 >
20870 \end_layout
20871
20872 \begin_layout LyX-Code
20873 <itemtag attr=
20874 \begin_inset Quotes erd
20875 \end_inset
20876
20877 value
20878 \begin_inset Quotes erd
20879 \end_inset
20880
20881 ><labeltag attr=
20882 \begin_inset Quotes erd
20883 \end_inset
20884
20885 value
20886 \begin_inset Quotes erd
20887 \end_inset
20888
20889 >List Label</labeltag>First item.</itemtag>
20890 \end_layout
20891
20892 \begin_layout LyX-Code
20893 <itemtag attr=
20894 \begin_inset Quotes erd
20895 \end_inset
20896
20897 value
20898 \begin_inset Quotes erd
20899 \end_inset
20900
20901 ><labeltag attr=
20902 \begin_inset Quotes erd
20903 \end_inset
20904
20905 value
20906 \begin_inset Quotes erd
20907 \end_inset
20908
20909 >List Label</labeltag>Second item.</itemtag>
20910 \end_layout
20911
20912 \begin_layout LyX-Code
20913 </tag>
20914 \end_layout
20915
20916 \begin_layout LyX-Code
20917
20918 \end_layout
20919
20920 \begin_layout LyX-Code
20921 <tag attr=
20922 \begin_inset Quotes erd
20923 \end_inset
20924
20925 value
20926 \begin_inset Quotes erd
20927 \end_inset
20928
20929 >
20930 \end_layout
20931
20932 \begin_layout LyX-Code
20933 <labeltag attr=
20934 \begin_inset Quotes erd
20935 \end_inset
20936
20937 value
20938 \begin_inset Quotes erd
20939 \end_inset
20940
20941 >List Label</labeltag><itemtag attr=
20942 \begin_inset Quotes erd
20943 \end_inset
20944
20945 value
20946 \begin_inset Quotes erd
20947 \end_inset
20948
20949 >First item.</itemtag>
20950 \end_layout
20951
20952 \begin_layout LyX-Code
20953 <labeltag attr=
20954 \begin_inset Quotes erd
20955 \end_inset
20956
20957 value
20958 \begin_inset Quotes erd
20959 \end_inset
20960
20961 >List Label</labeltag><itemtag attr=
20962 \begin_inset Quotes erd
20963 \end_inset
20964
20965 value
20966 \begin_inset Quotes erd
20967 \end_inset
20968
20969 >Second item.</itemtag>
20970 \end_layout
20971
20972 \begin_layout LyX-Code
20973 </tag>
20974 \end_layout
20975
20976 \begin_layout Standard
20977 Note the different orders of 
20978 \begin_inset Flex Code
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982 labeltag
20983 \end_layout
20984
20985 \end_inset
20986
20987  and 
20988 \begin_inset Flex Code
20989 status collapsed
20990
20991 \begin_layout Plain Layout
20992 itemtag
20993 \end_layout
20994
20995 \end_inset
20996
20997 .
20998  Which order we get depends upon the setting of 
20999 \begin_inset Flex Code
21000 status collapsed
21001
21002 \begin_layout Plain Layout
21003 HTMLLabelFirst
21004 \end_layout
21005
21006 \end_inset
21007
21008 : If 
21009 \begin_inset Flex Code
21010 status collapsed
21011
21012 \begin_layout Plain Layout
21013 HTMLLabelFirst
21014 \end_layout
21015
21016 \end_inset
21017
21018  is false (the default), you get the first of these, with the label within
21019  the item; if true, you get the second, with the label outside the item.
21020 \end_layout
21021
21022 \begin_layout Standard
21023 The specific tags and attributes output for each paragraph type can be controlle
21024 d by means of the layout tags we are about to describe.
21025  As mentioned earlier, however, LyX uses sensible defaults for many of these,
21026  so you often may not need to do very much to get good XHTML output.
21027  Think of the available tags as there so you can tweak things to your liking.
21028 \end_layout
21029
21030 \begin_layout Description
21031 \begin_inset Flex Code
21032 status collapsed
21033
21034 \begin_layout Plain Layout
21035 HTMLAttr
21036 \end_layout
21037
21038 \end_inset
21039
21040  [
21041 \begin_inset Flex Code
21042 status collapsed
21043
21044 \begin_layout Plain Layout
21045 string
21046 \end_layout
21047
21048 \end_inset
21049
21050 ] Specifies attribute information to be output with the main tag.
21051  For example, 
21052 \begin_inset Quotes eld
21053 \end_inset
21054
21055
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 class=`mydiv'
21061 \end_layout
21062
21063 \end_inset
21064
21065
21066 \begin_inset Quotes erd
21067 \end_inset
21068
21069 .
21070  By default, LyX will output 
21071 \begin_inset Quotes eld
21072 \end_inset
21073
21074
21075 \begin_inset Flex Code
21076 status collapsed
21077
21078 \begin_layout Plain Layout
21079 class=`layoutname'
21080 \end_layout
21081
21082 \end_inset
21083
21084
21085 \begin_inset Quotes erd
21086 \end_inset
21087
21088 , where 
21089 \begin_inset Flex Code
21090 status collapsed
21091
21092 \begin_layout Plain Layout
21093 layoutname
21094 \end_layout
21095
21096 \end_inset
21097
21098  is the LyX name of the layout, made lowercase, for example: chapter.
21099  This should 
21100 \emph on
21101 not
21102 \emph default
21103  contain any style information.
21104  Use 
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 HTMLStyle
21110 \end_layout
21111
21112 \end_inset
21113
21114  for that purpose.
21115 \end_layout
21116
21117 \begin_layout Description
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 HTMLForceCSS
21123 \end_layout
21124
21125 \end_inset
21126
21127  [
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132
21133 \emph on
21134 0
21135 \emph default
21136 ,1
21137 \end_layout
21138
21139 \end_inset
21140
21141 ] Whether to output the default CSS information LyX generates for this layout,
21142  even if additional information is explicitly provided via 
21143 \begin_inset Flex Code
21144 status collapsed
21145
21146 \begin_layout Plain Layout
21147 HTMLStyle
21148 \end_layout
21149
21150 \end_inset
21151
21152 .
21153  Setting this to 
21154 \begin_inset Flex Code
21155 status collapsed
21156
21157 \begin_layout Plain Layout
21158 1
21159 \end_layout
21160
21161 \end_inset
21162
21163  allows you to alter or augment the generated CSS, rather than to override
21164  it completely.
21165  Default is 
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 0
21171 \end_layout
21172
21173 \end_inset
21174
21175 .
21176 \end_layout
21177
21178 \begin_layout Description
21179 \begin_inset Flex Code
21180 status collapsed
21181
21182 \begin_layout Plain Layout
21183 HTMLItem
21184 \end_layout
21185
21186 \end_inset
21187
21188  [
21189 \begin_inset Flex Code
21190 status collapsed
21191
21192 \begin_layout Plain Layout
21193 string
21194 \end_layout
21195
21196 \end_inset
21197
21198 ] The tag to be used for individual paragraphs of environments, replacing
21199  
21200 \begin_inset Flex Code
21201 status collapsed
21202
21203 \begin_layout Plain Layout
21204 itemtag
21205 \end_layout
21206
21207 \end_inset
21208
21209  in the examples above.
21210  Defaults to 
21211 \begin_inset Flex Code
21212 status collapsed
21213
21214 \begin_layout Plain Layout
21215 div
21216 \end_layout
21217
21218 \end_inset
21219
21220 .
21221 \end_layout
21222
21223 \begin_layout Description
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 HTMLItemAttr
21229 \end_layout
21230
21231 \end_inset
21232
21233  [
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 string
21239 \end_layout
21240
21241 \end_inset
21242
21243 ] Attributes for the item tag.
21244  Defaults to 
21245 \begin_inset Quotes eld
21246 \end_inset
21247
21248
21249 \begin_inset Flex Code
21250 status collapsed
21251
21252 \begin_layout Plain Layout
21253 class=`layoutname_item'
21254 \end_layout
21255
21256 \end_inset
21257
21258
21259 \begin_inset Quotes erd
21260 \end_inset
21261
21262 .
21263  This should 
21264 \emph on
21265 not
21266 \emph default
21267  contain any style information.
21268  Use 
21269 \begin_inset Flex Code
21270 status collapsed
21271
21272 \begin_layout Plain Layout
21273 HTMLStyle
21274 \end_layout
21275
21276 \end_inset
21277
21278  for that purpose.
21279 \end_layout
21280
21281 \begin_layout Description
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 HTMLLabel
21287 \end_layout
21288
21289 \end_inset
21290
21291  [
21292 \begin_inset Flex Code
21293 status collapsed
21294
21295 \begin_layout Plain Layout
21296 string
21297 \end_layout
21298
21299 \end_inset
21300
21301 ] The tag to be used for paragraph and item labels, replacing 
21302 \begin_inset Flex Code
21303 status collapsed
21304
21305 \begin_layout Plain Layout
21306 labeltag
21307 \end_layout
21308
21309 \end_inset
21310
21311  in the examples above.
21312  Defaults to 
21313 \begin_inset Flex Code
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317 span
21318 \end_layout
21319
21320 \end_inset
21321
21322 , unless 
21323 \begin_inset Flex Code
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327 LabelType
21328 \end_layout
21329
21330 \end_inset
21331
21332  is either 
21333 \begin_inset Flex Code
21334 status collapsed
21335
21336 \begin_layout Plain Layout
21337 Top_Environment
21338 \end_layout
21339
21340 \end_inset
21341
21342  or 
21343 \begin_inset Flex Code
21344 status collapsed
21345
21346 \begin_layout Plain Layout
21347 Centered_Top_Environment
21348 \end_layout
21349
21350 \end_inset
21351
21352 , in which case it defaults to 
21353 \begin_inset Flex Code
21354 status collapsed
21355
21356 \begin_layout Plain Layout
21357 div
21358 \end_layout
21359
21360 \end_inset
21361
21362 .
21363 \end_layout
21364
21365 \begin_layout Description
21366 \begin_inset Flex Code
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370 HTMLLabelAttr
21371 \end_layout
21372
21373 \end_inset
21374
21375  [
21376 \begin_inset Flex Code
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380 string
21381 \end_layout
21382
21383 \end_inset
21384
21385 ] Attributes for the label tag.
21386  Defaults to 
21387 \begin_inset Quotes eld
21388 \end_inset
21389
21390
21391 \begin_inset Flex Code
21392 status collapsed
21393
21394 \begin_layout Plain Layout
21395 class=`layoutname_label'
21396 \end_layout
21397
21398 \end_inset
21399
21400
21401 \begin_inset Quotes erd
21402 \end_inset
21403
21404 .
21405  This should 
21406 \emph on
21407 not
21408 \emph default
21409  contain any style information.
21410  Use 
21411 \begin_inset Flex Code
21412 status collapsed
21413
21414 \begin_layout Plain Layout
21415 HTMLStyle
21416 \end_layout
21417
21418 \end_inset
21419
21420  for that purpose.
21421 \end_layout
21422
21423 \begin_layout Description
21424 \begin_inset Flex Code
21425 status collapsed
21426
21427 \begin_layout Plain Layout
21428 HTMLLabelFirst
21429 \end_layout
21430
21431 \end_inset
21432
21433  [
21434 \begin_inset Flex Code
21435 status collapsed
21436
21437 \begin_layout Plain Layout
21438
21439 \emph on
21440 0
21441 \emph default
21442 ,1
21443 \end_layout
21444
21445 \end_inset
21446
21447 ] Meaningful only for list-like environments, this tag controls whether
21448  the label tag is output before or inside the item tag.
21449  This is used, for example, in the description environment, where we want
21450  `
21451 \begin_inset Flex Code
21452 status collapsed
21453
21454 \begin_layout Plain Layout
21455 <dt>\SpecialChar \ldots{}
21456 </dt><dd>\SpecialChar \ldots{}
21457 </dd>
21458 \end_layout
21459
21460 \end_inset
21461
21462 .
21463  Default is 
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468 0
21469 \end_layout
21470
21471 \end_inset
21472
21473 : The label tag is output inside the item tag.
21474 \end_layout
21475
21476 \begin_layout Description
21477 \begin_inset Flex Code
21478 status collapsed
21479
21480 \begin_layout Plain Layout
21481 HTMLPreamble
21482 \end_layout
21483
21484 \end_inset
21485
21486  Information to be output in the 
21487 \begin_inset Flex Code
21488 status collapsed
21489
21490 \begin_layout Plain Layout
21491 <head>
21492 \end_layout
21493
21494 \end_inset
21495
21496  section when this style is used.
21497  This might, for example, be used to include a 
21498 \begin_inset Flex Code
21499 status collapsed
21500
21501 \begin_layout Plain Layout
21502 <script>
21503 \end_layout
21504
21505 \end_inset
21506
21507  block defining an 
21508 \begin_inset Flex Code
21509 status collapsed
21510
21511 \begin_layout Plain Layout
21512 onclick
21513 \end_layout
21514
21515 \end_inset
21516
21517  handler.
21518 \end_layout
21519
21520 \begin_layout Description
21521 \begin_inset Flex Code
21522 status collapsed
21523
21524 \begin_layout Plain Layout
21525 HTMLStyle
21526 \end_layout
21527
21528 \end_inset
21529
21530  CSS style information to be included when this style is used.
21531  Note that this will automatically be wrapped in a layout-generated 
21532 \begin_inset Flex Code
21533 status collapsed
21534
21535 \begin_layout Plain Layout
21536 <style>
21537 \end_layout
21538
21539 \end_inset
21540
21541  block, so only the CSS itself need be included.
21542
21543 \change_inserted 1414654397 1364133464
21544  Must end with 
21545 \begin_inset Flex Code
21546 status open
21547
21548 \begin_layout Plain Layout
21549
21550 \change_inserted 1414654397 1364133462
21551 EndHTMLStyle
21552 \change_unchanged
21553
21554 \end_layout
21555
21556 \end_inset
21557
21558 .
21559 \change_unchanged
21560
21561 \end_layout
21562
21563 \begin_layout Description
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568 HTMLTag
21569 \end_layout
21570
21571 \end_inset
21572
21573  [
21574 \begin_inset Flex Code
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578 string
21579 \end_layout
21580
21581 \end_inset
21582
21583 ] The tag to be used for the main label, replacing 
21584 \begin_inset Flex Code
21585 status collapsed
21586
21587 \begin_layout Plain Layout
21588 tag
21589 \end_layout
21590
21591 \end_inset
21592
21593  in the examples above.
21594  Defaults to 
21595 \begin_inset Flex Code
21596 status collapsed
21597
21598 \begin_layout Plain Layout
21599 div
21600 \end_layout
21601
21602 \end_inset
21603
21604 .
21605 \end_layout
21606
21607 \begin_layout Description
21608 \begin_inset Flex Code
21609 status collapsed
21610
21611 \begin_layout Plain Layout
21612 HTMLTitle
21613 \end_layout
21614
21615 \end_inset
21616
21617  [
21618 \begin_inset Flex Code
21619 status collapsed
21620
21621 \begin_layout Plain Layout
21622
21623 \emph on
21624 0
21625 \emph default
21626 ,1
21627 \end_layout
21628
21629 \end_inset
21630
21631 ] Marks this style as the one to be used to generate the 
21632 \begin_inset Flex Code
21633 status collapsed
21634
21635 \begin_layout Plain Layout
21636 <title>
21637 \end_layout
21638
21639 \end_inset
21640
21641  tag for the XHTML file.
21642  By default, it is false.
21643  The 
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 stdtitle.inc
21649 \end_layout
21650
21651 \end_inset
21652
21653  file sets it to true for the 
21654 \begin_inset Flex Code
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658 title
21659 \end_layout
21660
21661 \end_inset
21662
21663  environment.
21664  
21665 \end_layout
21666
21667 \begin_layout Subsection
21668 InsetLayout XHTML
21669 \end_layout
21670
21671 \begin_layout Standard
21672 The XHTML output of insets can also be controlled by information in layout
21673  files.
21674 \begin_inset Foot
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 At present, this is true only for 
21679 \begin_inset Quotes eld
21680 \end_inset
21681
21682 text
21683 \begin_inset Quotes erd
21684 \end_inset
21685
21686  insets (insets you can type into) and is not true for 
21687 \begin_inset Quotes eld
21688 \end_inset
21689
21690 command
21691 \begin_inset Quotes erd
21692 \end_inset
21693
21694  insets (insets that are associated with dialog boxes).
21695 \end_layout
21696
21697 \end_inset
21698
21699  Here, too, LyX tries to provide sensible defaults, and it constructs default
21700  CSS style rules.
21701  But everything can be customized.
21702 \end_layout
21703
21704 \begin_layout Standard
21705 The XHTML LyX outputs for an inset has the following form:
21706 \end_layout
21707
21708 \begin_layout LyX-Code
21709 <tag attr=
21710 \begin_inset Quotes erd
21711 \end_inset
21712
21713 value
21714 \begin_inset Quotes erd
21715 \end_inset
21716
21717 >
21718 \end_layout
21719
21720 \begin_layout LyX-Code
21721 <labeltag>Label</labeltag>
21722 \end_layout
21723
21724 \begin_layout LyX-Code
21725 <innertag attr=
21726 \begin_inset Quotes erd
21727 \end_inset
21728
21729 value
21730 \begin_inset Quotes erd
21731 \end_inset
21732
21733 >Contents of the inset.</innertag>
21734 \end_layout
21735
21736 \begin_layout LyX-Code
21737 </tag>
21738 \end_layout
21739
21740 \begin_layout Standard
21741 If the inset permits multiple paragraphs---that is, if 
21742 \begin_inset Flex Code
21743 status collapsed
21744
21745 \begin_layout Plain Layout
21746 MultiPar
21747 \end_layout
21748
21749 \end_inset
21750
21751  is true---then the contents of the inset will itself be output as paragraphs
21752  formatted according to the styles used for those paragraphs (standard,
21753  quote, and the like).
21754  The label tag is of course omitted if the paragraph does not have a label
21755  and, at present, is always 
21756 \begin_inset Flex Code
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 span
21761 \end_layout
21762
21763 \end_inset
21764
21765 .
21766  The inner tag is optional and, by default, does not appear.
21767 \end_layout
21768
21769 \begin_layout Standard
21770 The specific tags and attributes output for each inset can be controlled
21771  by means of the following layout tags.
21772 \end_layout
21773
21774 \begin_layout Description
21775 \begin_inset Flex Code
21776 status collapsed
21777
21778 \begin_layout Plain Layout
21779 HTMLAttr
21780 \end_layout
21781
21782 \end_inset
21783
21784  [
21785 \begin_inset Flex Code
21786 status collapsed
21787
21788 \begin_layout Plain Layout
21789 string
21790 \end_layout
21791
21792 \end_inset
21793
21794 ] Specifies attribute information to be output with the main tag.
21795  For example, 
21796 \begin_inset Quotes eld
21797 \end_inset
21798
21799
21800 \begin_inset Flex Code
21801 status collapsed
21802
21803 \begin_layout Plain Layout
21804 class=`myinset' onclick=`\SpecialChar \ldots{}
21805 '
21806 \end_layout
21807
21808 \end_inset
21809
21810
21811 \begin_inset Quotes erd
21812 \end_inset
21813
21814 .
21815  By default, LyX will output 
21816 \begin_inset Quotes eld
21817 \end_inset
21818
21819
21820 \begin_inset Flex Code
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824 class=`insetname'
21825 \end_layout
21826
21827 \end_inset
21828
21829
21830 \begin_inset Quotes erd
21831 \end_inset
21832
21833 , where 
21834 \begin_inset Flex Code
21835 status collapsed
21836
21837 \begin_layout Plain Layout
21838 insetname
21839 \end_layout
21840
21841 \end_inset
21842
21843  is the LyX name of the inset, made lowercase and with non-alphanumeric
21844  characters converted to underscores, for example: footnote.
21845 \end_layout
21846
21847 \begin_layout Description
21848 \begin_inset Flex Code
21849 status collapsed
21850
21851 \begin_layout Plain Layout
21852 HTMLForceCSS
21853 \end_layout
21854
21855 \end_inset
21856
21857  [
21858 \begin_inset Flex Code
21859 status collapsed
21860
21861 \begin_layout Plain Layout
21862
21863 \emph on
21864 0
21865 \emph default
21866 ,1
21867 \end_layout
21868
21869 \end_inset
21870
21871 ] Whether to output the default CSS information LyX generates for this layout,
21872  even if additional information is explicitly provided via 
21873 \begin_inset Flex Code
21874 status collapsed
21875
21876 \begin_layout Plain Layout
21877 HTMLStyle
21878 \end_layout
21879
21880 \end_inset
21881
21882 .
21883  Setting this to 
21884 \begin_inset Flex Code
21885 status collapsed
21886
21887 \begin_layout Plain Layout
21888 1
21889 \end_layout
21890
21891 \end_inset
21892
21893  allows you to alter or augment the generated CSS, rather than to override
21894  it completely.
21895  Default is 0.
21896 \end_layout
21897
21898 \begin_layout Description
21899 \begin_inset Flex Code
21900 status collapsed
21901
21902 \begin_layout Plain Layout
21903 HTMLInnerAttr
21904 \end_layout
21905
21906 \end_inset
21907
21908  [
21909 \begin_inset Flex Code
21910 status collapsed
21911
21912 \begin_layout Plain Layout
21913 string
21914 \end_layout
21915
21916 \end_inset
21917
21918 ] Attributes for the inner tag.
21919  Defaults to 
21920 \begin_inset Quotes eld
21921 \end_inset
21922
21923
21924 \begin_inset Flex Code
21925 status collapsed
21926
21927 \begin_layout Plain Layout
21928 class=`insetname_inner'
21929 \end_layout
21930
21931 \end_inset
21932
21933
21934 \begin_inset Quotes erd
21935 \end_inset
21936
21937 .
21938 \end_layout
21939
21940 \begin_layout Description
21941 \begin_inset Flex Code
21942 status collapsed
21943
21944 \begin_layout Plain Layout
21945 HTMLInnerTag
21946 \end_layout
21947
21948 \end_inset
21949
21950  [
21951 \begin_inset Flex Code
21952 status collapsed
21953
21954 \begin_layout Plain Layout
21955 string
21956 \end_layout
21957
21958 \end_inset
21959
21960 ] The inner tag, replacing 
21961 \begin_inset Flex Code
21962 status collapsed
21963
21964 \begin_layout Plain Layout
21965 innertag
21966 \end_layout
21967
21968 \end_inset
21969
21970  in the examples above.
21971  By default, there is none.
21972 \end_layout
21973
21974 \begin_layout Description
21975 \begin_inset Flex Code
21976 status collapsed
21977
21978 \begin_layout Plain Layout
21979 HTMLIsBlock
21980 \end_layout
21981
21982 \end_inset
21983
21984  [
21985 \begin_inset Flex Code
21986 status collapsed
21987
21988 \begin_layout Plain Layout
21989 0,
21990 \emph on
21991 1
21992 \end_layout
21993
21994 \end_inset
21995
21996 ] Whether this inset represents a standalone block of text (such as a footnote)
21997  or instead represents material that is included in the surrounding text
21998  (such as a branch).
21999  Defaults to 1.
22000 \end_layout
22001
22002 \begin_layout Description
22003 \begin_inset Flex Code
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007 HTMLLabel
22008 \end_layout
22009
22010 \end_inset
22011
22012  [
22013 \begin_inset Flex Code
22014 status collapsed
22015
22016 \begin_layout Plain Layout
22017 string
22018 \end_layout
22019
22020 \end_inset
22021
22022 ] A label for this inset, possibly including a reference to a counter.
22023  For example, for footnote, it might be: 
22024 \begin_inset Flex Code
22025 status collapsed
22026
22027 \begin_layout Plain Layout
22028
22029 \backslash
22030 arabic{footnote}
22031 \end_layout
22032
22033 \end_inset
22034
22035 .
22036  This is optional, and there is no default.
22037 \end_layout
22038
22039 \begin_layout Description
22040 \begin_inset Flex Code
22041 status collapsed
22042
22043 \begin_layout Plain Layout
22044 HTMLPreamble
22045 \end_layout
22046
22047 \end_inset
22048
22049  Information to be output in the 
22050 \begin_inset Flex Code
22051 status collapsed
22052
22053 \begin_layout Plain Layout
22054 <head>
22055 \end_layout
22056
22057 \end_inset
22058
22059  section when this style is used.
22060  This might, for example, be used to include a 
22061 \begin_inset Flex Code
22062 status collapsed
22063
22064 \begin_layout Plain Layout
22065 <script>
22066 \end_layout
22067
22068 \end_inset
22069
22070  block defining an 
22071 \begin_inset Flex Code
22072 status collapsed
22073
22074 \begin_layout Plain Layout
22075 onclick
22076 \end_layout
22077
22078 \end_inset
22079
22080  handler.
22081 \end_layout
22082
22083 \begin_layout Description
22084 \begin_inset Flex Code
22085 status collapsed
22086
22087 \begin_layout Plain Layout
22088 HTMLStyle
22089 \end_layout
22090
22091 \end_inset
22092
22093  CSS style information to be included when this style is used.
22094  Note that this will automatically be wrapped in a layout-generated 
22095 \begin_inset Flex Code
22096 status collapsed
22097
22098 \begin_layout Plain Layout
22099 <style>
22100 \end_layout
22101
22102 \end_inset
22103
22104  block, so only the CSS itself need be included.
22105 \end_layout
22106
22107 \begin_layout Description
22108 \begin_inset Flex Code
22109 status collapsed
22110
22111 \begin_layout Plain Layout
22112 HTMLTag
22113 \end_layout
22114
22115 \end_inset
22116
22117  [
22118 \begin_inset Flex Code
22119 status collapsed
22120
22121 \begin_layout Plain Layout
22122 string
22123 \end_layout
22124
22125 \end_inset
22126
22127 ] The tag to be used for the main label, replacing 
22128 \begin_inset Flex Code
22129 status collapsed
22130
22131 \begin_layout Plain Layout
22132 tag
22133 \end_layout
22134
22135 \end_inset
22136
22137  in the examples above.
22138  The default depends upon the setting of 
22139 \begin_inset Flex Code
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 MultiPar
22144 \end_layout
22145
22146 \end_inset
22147
22148 : If 
22149 \begin_inset Flex Code
22150 status collapsed
22151
22152 \begin_layout Plain Layout
22153 MultiPar
22154 \end_layout
22155
22156 \end_inset
22157
22158  is true, the default is 
22159 \begin_inset Flex Code
22160 status collapsed
22161
22162 \begin_layout Plain Layout
22163 div
22164 \end_layout
22165
22166 \end_inset
22167
22168 ; if it is false, the default is 
22169 \begin_inset Flex Code
22170 status collapsed
22171
22172 \begin_layout Plain Layout
22173 span
22174 \end_layout
22175
22176 \end_inset
22177
22178 .
22179 \end_layout
22180
22181 \begin_layout Subsection
22182 Float XHTML
22183 \end_layout
22184
22185 \begin_layout Standard
22186 The XHTML output for floats too can be controlled by layout information.
22187  The output has the following form:
22188 \end_layout
22189
22190 \begin_layout LyX-Code
22191 <tag attr=
22192 \begin_inset Quotes erd
22193 \end_inset
22194
22195 value
22196 \begin_inset Quotes erd
22197 \end_inset
22198
22199 >
22200 \end_layout
22201
22202 \begin_layout LyX-Code
22203 Contents of the float.
22204 \end_layout
22205
22206 \begin_layout LyX-Code
22207 </tag>
22208 \end_layout
22209
22210 \begin_layout Standard
22211 The caption, if there is one, is a separate inset and will be output as
22212  such.
22213  Its appearance can be controlled via the InsetLayout for caption insets.
22214  
22215 \end_layout
22216
22217 \begin_layout Description
22218 \begin_inset Flex Code
22219 status collapsed
22220
22221 \begin_layout Plain Layout
22222 HTMLAttr
22223 \end_layout
22224
22225 \end_inset
22226
22227  [
22228 \begin_inset Flex Code
22229 status collapsed
22230
22231 \begin_layout Plain Layout
22232 string
22233 \end_layout
22234
22235 \end_inset
22236
22237 ] Specifies attribute information to be output with the main tag.
22238  For example, 
22239 \begin_inset Quotes eld
22240 \end_inset
22241
22242
22243 \begin_inset Flex Code
22244 status collapsed
22245
22246 \begin_layout Plain Layout
22247 class=`myfloat' onclick=`\SpecialChar \ldots{}
22248 '
22249 \end_layout
22250
22251 \end_inset
22252
22253
22254 \begin_inset Quotes erd
22255 \end_inset
22256
22257 .
22258  By default, LyX will output 
22259 \begin_inset Quotes eld
22260 \end_inset
22261
22262
22263 \begin_inset Flex Code
22264 status collapsed
22265
22266 \begin_layout Plain Layout
22267 class=`float float-floattype'
22268 \end_layout
22269
22270 \end_inset
22271
22272
22273 \begin_inset Quotes erd
22274 \end_inset
22275
22276 , where 
22277 \begin_inset Flex Code
22278 status collapsed
22279
22280 \begin_layout Plain Layout
22281 floattype
22282 \end_layout
22283
22284 \end_inset
22285
22286  is LyX's name for this type of float, as determined by the float declaration
22287  (see 
22288 \begin_inset CommandInset ref
22289 LatexCommand ref
22290 reference "sub:Floats"
22291
22292 \end_inset
22293
22294 ), though made lowercase and with non-alphanumeric characters converted
22295  to underscores, for example: float-table.
22296 \end_layout
22297
22298 \begin_layout Description
22299 \begin_inset Flex Code
22300 status collapsed
22301
22302 \begin_layout Plain Layout
22303 HTMLStyle
22304 \end_layout
22305
22306 \end_inset
22307
22308  CSS style information to be included when this float is used.
22309  Note that this will automatically be wrapped in a layout-generated 
22310 \begin_inset Flex Code
22311 status collapsed
22312
22313 \begin_layout Plain Layout
22314 <style>
22315 \end_layout
22316
22317 \end_inset
22318
22319  block, so only the CSS itself need be included.
22320 \end_layout
22321
22322 \begin_layout Description
22323 \begin_inset Flex Code
22324 status collapsed
22325
22326 \begin_layout Plain Layout
22327 HTMLTag
22328 \end_layout
22329
22330 \end_inset
22331
22332  [
22333 \begin_inset Flex Code
22334 status collapsed
22335
22336 \begin_layout Plain Layout
22337 string
22338 \end_layout
22339
22340 \end_inset
22341
22342 ] The tag to be used for this float, replacing 
22343 \begin_inset Quotes eld
22344 \end_inset
22345
22346
22347 \begin_inset Flex Code
22348 status collapsed
22349
22350 \begin_layout Plain Layout
22351 tag
22352 \end_layout
22353
22354 \end_inset
22355
22356
22357 \begin_inset Quotes erd
22358 \end_inset
22359
22360  in the example above.
22361  The default is 
22362 \begin_inset Flex Code
22363 status collapsed
22364
22365 \begin_layout Plain Layout
22366 div
22367 \end_layout
22368
22369 \end_inset
22370
22371  and will rarely need changing.
22372 \end_layout
22373
22374 \begin_layout Subsection
22375 Bibliography formatting
22376 \end_layout
22377
22378 \begin_layout Standard
22379 The bibliography can be formatted using 
22380 \begin_inset Flex Code
22381 status collapsed
22382
22383 \begin_layout Plain Layout
22384 CiteFormat
22385 \end_layout
22386
22387 \end_inset
22388
22389  blocks.
22390  See Section 
22391 \begin_inset CommandInset ref
22392 LatexCommand ref
22393 reference "sub:Citation-format-description"
22394
22395 \end_inset
22396
22397  for the details.
22398 \end_layout
22399
22400 \begin_layout Subsection
22401 LyX-generated CSS
22402 \end_layout
22403
22404 \begin_layout Standard
22405 We have several times mentioned that LyX will generate default CSS style
22406  rules for both insets and paragraph styles, based upon the other layout
22407  information that is provided.
22408  In this section, we shall say a word about which layout information LyX
22409  uses and how.
22410 \end_layout
22411
22412 \begin_layout Standard
22413 At present, LyX auto-generates CSS only for font information, making use
22414  of the 
22415 \begin_inset Flex Code
22416 status collapsed
22417
22418 \begin_layout Plain Layout
22419 Family
22420 \end_layout
22421
22422 \end_inset
22423
22424
22425 \begin_inset Flex Code
22426 status collapsed
22427
22428 \begin_layout Plain Layout
22429 Series
22430 \end_layout
22431
22432 \end_inset
22433
22434
22435 \begin_inset Flex Code
22436 status collapsed
22437
22438 \begin_layout Plain Layout
22439 Shape
22440 \end_layout
22441
22442 \end_inset
22443
22444 , and 
22445 \begin_inset Flex Code
22446 status collapsed
22447
22448 \begin_layout Plain Layout
22449 Size
22450 \end_layout
22451
22452 \end_inset
22453
22454  specified in the 
22455 \begin_inset Flex Code
22456 status collapsed
22457
22458 \begin_layout Plain Layout
22459 Font
22460 \end_layout
22461
22462 \end_inset
22463
22464  declaration.
22465  (See 
22466 \begin_inset CommandInset ref
22467 LatexCommand ref
22468 reference "sub:Font-description"
22469
22470 \end_inset
22471
22472 .) The translation is mostly straightforward and obvious.
22473  For example, 
22474 \begin_inset Quotes eld
22475 \end_inset
22476
22477
22478 \begin_inset Flex Code
22479 status collapsed
22480
22481 \begin_layout Plain Layout
22482 Family Sans
22483 \end_layout
22484
22485 \end_inset
22486
22487
22488 \begin_inset Quotes erd
22489 \end_inset
22490
22491  becomes 
22492 \begin_inset Quotes eld
22493 \end_inset
22494
22495
22496 \begin_inset Flex Code
22497 status collapsed
22498
22499 \begin_layout Plain Layout
22500 font-family: sans-serif;
22501 \end_layout
22502
22503 \end_inset
22504
22505
22506 \begin_inset Quotes erd
22507 \end_inset
22508
22509 .
22510  The correspondence of LyX sizes and CSS sizes is a little less obvious
22511  but nonetheless intuitive.
22512  See the 
22513 \begin_inset Flex Code
22514 status collapsed
22515
22516 \begin_layout Plain Layout
22517 getSizeCSS()
22518 \end_layout
22519
22520 \end_inset
22521
22522  function in 
22523 \begin_inset Flex URL
22524 status collapsed
22525
22526 \begin_layout Plain Layout
22527
22528 src/FontInfo.cpp
22529 \end_layout
22530
22531 \end_inset
22532
22533  for the details.
22534 \end_layout
22535
22536 \begin_layout Chapter
22537 Including External Material
22538 \end_layout
22539
22540 \begin_layout Standard
22541 \begin_inset Box Shadowbox
22542 position "t"
22543 hor_pos "c"
22544 has_inner_box 1
22545 inner_pos "t"
22546 use_parbox 0
22547 use_makebox 0
22548 width "100col%"
22549 special "none"
22550 height "1in"
22551 height_special "totalheight"
22552 status open
22553
22554 \begin_layout Plain Layout
22555 WARNING: This portion of the documentation has not been updated for some
22556  time.
22557  We certainly hope that it is still accurate, but there are no guarantees.
22558 \end_layout
22559
22560 \end_inset
22561
22562
22563 \end_layout
22564
22565 \begin_layout Standard
22566 The use of material from sources external to LyX is covered in detail in
22567  the 
22568 \emph on
22569 Embedded Objects
22570 \emph default
22571  manual.
22572  This part of the manual covers what needs to happen behind the scenes for
22573  new sorts of material to be included.
22574 \end_layout
22575
22576 \begin_layout Section
22577 How does it work?
22578 \end_layout
22579
22580 \begin_layout Standard
22581 The external material feature is based on the concept of a 
22582 \emph on
22583 template
22584 \emph default
22585 .
22586  A template is a specification of how LyX should interface with a certain
22587  kind of material.
22588  As bundled, LyX comes with predefined templates for Xfig figures, various
22589  raster format images, chess diagrams, and LilyPond music notation.
22590  You can check the actual list by using the menu 
22591 \begin_inset Flex MenuItem
22592 status collapsed
22593
22594 \begin_layout Plain Layout
22595 Insert\SpecialChar \menuseparator
22596 File\SpecialChar \menuseparator
22597 External Material
22598 \end_layout
22599
22600 \end_inset
22601
22602 .
22603  Furthermore, it is possible to roll your own template to support a specific
22604  kind of material.
22605  Later we'll describe in more detail what is involved, and hopefully you
22606  will submit all the templates you create so we can include them in a later
22607  LyX version.
22608 \end_layout
22609
22610 \begin_layout Standard
22611 Another basic idea of the external material feature is to distinguish between
22612  the original file that serves as a base for final material and the produced
22613  file that is included in your exported or printed document.
22614  For example, consider the case of a figure produced with 
22615 \begin_inset Flex Code
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619 Xfig
22620 \end_layout
22621
22622 \end_inset
22623
22624 .
22625  The Xfig application itself works on an original file with the 
22626 \begin_inset Flex Code
22627 status collapsed
22628
22629 \begin_layout Plain Layout
22630 .fig
22631 \end_layout
22632
22633 \end_inset
22634
22635  extension.
22636  Within Xfig, you create and change your figure, and when you are done,
22637  you save the 
22638 \begin_inset Flex Code
22639 status collapsed
22640
22641 \begin_layout Plain Layout
22642 fig
22643 \end_layout
22644
22645 \end_inset
22646
22647 -file.
22648  When you want to include the figure in your document, you invoke 
22649 \begin_inset Flex Code
22650 status collapsed
22651
22652 \begin_layout Plain Layout
22653 transfig
22654 \end_layout
22655
22656 \end_inset
22657
22658  in order to create a PostScript file that can readily be included in your
22659  LaTeX file.
22660  In this case, the 
22661 \begin_inset Flex Code
22662 status collapsed
22663
22664 \begin_layout Plain Layout
22665 .fig
22666 \end_layout
22667
22668 \end_inset
22669
22670  file is the original file, and the PostScript file is the produced file.
22671 \end_layout
22672
22673 \begin_layout Standard
22674 This distinction is important in order to allow updating of the material
22675  while you are in the process of writing the document.
22676  Furthermore, it provides us with the flexibility that is needed to support
22677  multiple export formats.
22678  For instance, in the case of a plain text file, it is not exactly an award-winn
22679 ing idea to include the figure as raw PostScript.
22680  Instead, you would either prefer to just include a reference to the figure
22681  or try to invoke some graphics to ASCII converter to make the final result
22682  look similar to the real graphics.
22683  The external material management allows you to do this, because it is parametri
22684 zed on the different export formats that LyX supports.
22685 \end_layout
22686
22687 \begin_layout Standard
22688 Besides supporting the production of different products according to the
22689  exported format, it supports tight integration with editing and viewing
22690  applications.
22691  In the case of an Xfig figure, you are able to invoke Xfig on the original
22692  file with a single click from within the external material dialog in LyX,
22693  and also preview the produced PostScript file with Ghostview with another
22694  click.
22695  No more fiddling around with the command line and/or file browsers to locate
22696  and manipulate the original or produced files.
22697  In this way, you are finally able to take full advantage of the many different
22698  applications that are relevant to use when you write your documents, and
22699  ultimately be more productive.
22700 \end_layout
22701
22702 \begin_layout Section
22703 The external template configuration file
22704 \end_layout
22705
22706 \begin_layout Standard
22707 It is relatively easy to add custom external template definitions to LyX.
22708  However, be aware that doing this in an careless manner most probably 
22709 \emph on
22710 will
22711 \emph default
22712  introduce an easily exploitable security hole.
22713  So before you do this, please read the discussion about security in section
22714  
22715 \begin_inset CommandInset ref
22716 LatexCommand ref
22717 reference "sec:Security-discussion"
22718
22719 \end_inset
22720
22721 .
22722 \end_layout
22723
22724 \begin_layout Standard
22725 Having said that, we encourage you to submit any interesting templates that
22726  you create.
22727  
22728 \end_layout
22729
22730 \begin_layout Standard
22731 The external templates are defined in the 
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736 LyXDir/lib/external_templates
22737 \end_layout
22738
22739 \end_inset
22740
22741  file.
22742  You can place your own version in 
22743 \begin_inset Flex Code
22744 status collapsed
22745
22746 \begin_layout Plain Layout
22747 UserDir/external_templates
22748 \end_layout
22749
22750 \end_inset
22751
22752 .
22753 \end_layout
22754
22755 \begin_layout Standard
22756 A typical template looks like this:
22757 \end_layout
22758
22759 \begin_layout LyX-Code
22760 Template XFig
22761 \end_layout
22762
22763 \begin_layout LyX-Code
22764 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22765 \end_layout
22766
22767 \begin_layout LyX-Code
22768 HelpText
22769 \end_layout
22770
22771 \begin_layout LyX-Code
22772 An XFig figure.
22773 \end_layout
22774
22775 \begin_layout LyX-Code
22776 HelpTextEnd
22777 \end_layout
22778
22779 \begin_layout LyX-Code
22780 InputFormat fig
22781 \end_layout
22782
22783 \begin_layout LyX-Code
22784 FileFilter "*.fig"
22785 \end_layout
22786
22787 \begin_layout LyX-Code
22788 AutomaticProduction true
22789 \end_layout
22790
22791 \begin_layout LyX-Code
22792 Transform Rotate
22793 \end_layout
22794
22795 \begin_layout LyX-Code
22796 Transform Resize
22797 \end_layout
22798
22799 \begin_layout LyX-Code
22800 Format LaTeX
22801 \end_layout
22802
22803 \begin_layout LyX-Code
22804 TransformCommand Rotate RotationLatexCommand
22805 \end_layout
22806
22807 \begin_layout LyX-Code
22808 TransformCommand Resize ResizeLatexCommand
22809 \end_layout
22810
22811 \begin_layout LyX-Code
22812 Product "$$RotateFront$$ResizeFront
22813 \end_layout
22814
22815 \begin_layout LyX-Code
22816          
22817 \backslash
22818
22819 \backslash
22820 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22821 \end_layout
22822
22823 \begin_layout LyX-Code
22824          $$ResizeBack$$RotateBack"
22825 \end_layout
22826
22827 \begin_layout LyX-Code
22828 UpdateFormat pstex
22829 \end_layout
22830
22831 \begin_layout LyX-Code
22832 UpdateResult "$$AbsPath$$Basename.pstex_t"
22833 \end_layout
22834
22835 \begin_layout LyX-Code
22836 Requirement "graphicx"
22837 \end_layout
22838
22839 \begin_layout LyX-Code
22840 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22841 \end_layout
22842
22843 \begin_layout LyX-Code
22844 ReferencedFile latex "$$AbsPath$$Basename.eps"
22845 \end_layout
22846
22847 \begin_layout LyX-Code
22848 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22849 \end_layout
22850
22851 \begin_layout LyX-Code
22852 FormatEnd
22853 \end_layout
22854
22855 \begin_layout LyX-Code
22856 Format PDFLaTeX
22857 \end_layout
22858
22859 \begin_layout LyX-Code
22860 TransformCommand Rotate RotationLatexCommand
22861 \end_layout
22862
22863 \begin_layout LyX-Code
22864 TransformCommand Resize ResizeLatexCommand
22865 \end_layout
22866
22867 \begin_layout LyX-Code
22868 Product "$$RotateFront$$ResizeFront
22869 \end_layout
22870
22871 \begin_layout LyX-Code
22872          
22873 \backslash
22874
22875 \backslash
22876 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22877 \end_layout
22878
22879 \begin_layout LyX-Code
22880          $$ResizeBack$$RotateBack"
22881 \end_layout
22882
22883 \begin_layout LyX-Code
22884 UpdateFormat pdftex
22885 \end_layout
22886
22887 \begin_layout LyX-Code
22888 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22889 \end_layout
22890
22891 \begin_layout LyX-Code
22892 Requirement "graphicx"
22893 \end_layout
22894
22895 \begin_layout LyX-Code
22896 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22897 \end_layout
22898
22899 \begin_layout LyX-Code
22900 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22901 \end_layout
22902
22903 \begin_layout LyX-Code
22904 FormatEnd
22905 \end_layout
22906
22907 \begin_layout LyX-Code
22908 Format Ascii
22909 \end_layout
22910
22911 \begin_layout LyX-Code
22912 Product "$$Contents(
22913 \backslash
22914 "$$AbsPath$$Basename.asc
22915 \backslash
22916 ")"
22917 \end_layout
22918
22919 \begin_layout LyX-Code
22920 UpdateFormat asciixfig
22921 \end_layout
22922
22923 \begin_layout LyX-Code
22924 UpdateResult "$$AbsPath$$Basename.asc"
22925 \end_layout
22926
22927 \begin_layout LyX-Code
22928 FormatEnd
22929 \end_layout
22930
22931 \begin_layout LyX-Code
22932 Format DocBook
22933 \end_layout
22934
22935 \begin_layout LyX-Code
22936 Product "<graphic fileref=
22937 \backslash
22938 "$$AbsOrRelPathMaster$$Basename.eps
22939 \backslash
22940 ">
22941 \end_layout
22942
22943 \begin_layout LyX-Code
22944          </graphic>"
22945 \end_layout
22946
22947 \begin_layout LyX-Code
22948 UpdateFormat eps
22949 \end_layout
22950
22951 \begin_layout LyX-Code
22952 UpdateResult "$$AbsPath$$Basename.eps"
22953 \end_layout
22954
22955 \begin_layout LyX-Code
22956 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22957 \end_layout
22958
22959 \begin_layout LyX-Code
22960 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22961 \end_layout
22962
22963 \begin_layout LyX-Code
22964 FormatEnd
22965 \end_layout
22966
22967 \begin_layout LyX-Code
22968 Product "[XFig: $$FName]"
22969 \end_layout
22970
22971 \begin_layout LyX-Code
22972 FormatEnd
22973 \end_layout
22974
22975 \begin_layout LyX-Code
22976 TemplateEnd
22977 \end_layout
22978
22979 \begin_layout Standard
22980 As you can see, the template is enclosed in 
22981 \begin_inset Flex Code
22982 status collapsed
22983
22984 \begin_layout Plain Layout
22985 Template
22986 \end_layout
22987
22988 \end_inset
22989
22990  \SpecialChar \ldots{}
22991  
22992 \begin_inset Flex Code
22993 status collapsed
22994
22995 \begin_layout Plain Layout
22996 TemplateEnd
22997 \end_layout
22998
22999 \end_inset
23000
23001 .
23002  It contains a header specifying some general settings and, for each supported
23003  primary document file format, a section 
23004 \begin_inset Flex Code
23005 status collapsed
23006
23007 \begin_layout Plain Layout
23008 Format
23009 \end_layout
23010
23011 \end_inset
23012
23013  \SpecialChar \ldots{}
23014  
23015 \begin_inset Flex Code
23016 status collapsed
23017
23018 \begin_layout Plain Layout
23019 FormatEnd
23020 \end_layout
23021
23022 \end_inset
23023
23024 .
23025 \end_layout
23026
23027 \begin_layout Subsection
23028 The template header
23029 \end_layout
23030
23031 \begin_layout Description
23032 \begin_inset Flex Code
23033 status collapsed
23034
23035 \begin_layout Plain Layout
23036 AutomaticProduction
23037 \begin_inset space ~
23038 \end_inset
23039
23040 true|false
23041 \end_layout
23042
23043 \end_inset
23044
23045  Whether the file represented by the template must be generated by LyX.
23046  This command must occur exactly once.
23047 \end_layout
23048
23049 \begin_layout Description
23050 \begin_inset Flex Code
23051 status collapsed
23052
23053 \begin_layout Plain Layout
23054 FileFilter
23055 \begin_inset space ~
23056 \end_inset
23057
23058 <pattern>
23059 \end_layout
23060
23061 \end_inset
23062
23063  A glob pattern that is used in the file dialog to filter out the desired
23064  files.
23065  If there is more than one possible file extension (e.
23066 \begin_inset space \thinspace{}
23067 \end_inset
23068
23069 g.
23070 \begin_inset space \space{}
23071 \end_inset
23072
23073 tgif has 
23074 \begin_inset Flex Code
23075 status collapsed
23076
23077 \begin_layout Plain Layout
23078 .obj
23079 \end_layout
23080
23081 \end_inset
23082
23083  and 
23084 \begin_inset Flex Code
23085 status collapsed
23086
23087 \begin_layout Plain Layout
23088 .tgo
23089 \end_layout
23090
23091 \end_inset
23092
23093 ), use something like 
23094 \begin_inset Flex Code
23095 status collapsed
23096
23097 \begin_layout Plain Layout
23098 "*.{obj,tgo}"
23099 \end_layout
23100
23101 \end_inset
23102
23103 .
23104  This command must occur exactly once.
23105 \end_layout
23106
23107 \begin_layout Description
23108 \begin_inset Flex Code
23109 status collapsed
23110
23111 \begin_layout Plain Layout
23112 GuiName
23113 \begin_inset space ~
23114 \end_inset
23115
23116 <guiname>
23117 \end_layout
23118
23119 \end_inset
23120
23121  The text that is displayed on the button.
23122  This command must occur exactly once.
23123 \end_layout
23124
23125 \begin_layout Description
23126 \begin_inset Flex Code
23127 status collapsed
23128
23129 \begin_layout Plain Layout
23130 HelpText
23131 \begin_inset space ~
23132 \end_inset
23133
23134 <text>
23135 \begin_inset space ~
23136 \end_inset
23137
23138 HelpTextEnd
23139 \end_layout
23140
23141 \end_inset
23142
23143  The help text that is used in the External dialog.
23144  Provide enough information to explain to the user just what the template
23145  can provide him with.
23146  This command must occur exactly once.
23147 \end_layout
23148
23149 \begin_layout Description
23150 \begin_inset Flex Code
23151 status collapsed
23152
23153 \begin_layout Plain Layout
23154 InputFormat
23155 \begin_inset space ~
23156 \end_inset
23157
23158 <format>
23159 \end_layout
23160
23161 \end_inset
23162
23163  The file format of the original file.
23164  This must be the name of a format that is known to LyX (see section
23165 \begin_inset space ~
23166 \end_inset
23167
23168
23169 \begin_inset CommandInset ref
23170 LatexCommand ref
23171 reference "sec:Formats"
23172
23173 \end_inset
23174
23175 ).
23176  Use 
23177 \begin_inset Quotes eld
23178 \end_inset
23179
23180
23181 \begin_inset Flex Code
23182 status collapsed
23183
23184 \begin_layout Plain Layout
23185 *
23186 \end_layout
23187
23188 \end_inset
23189
23190
23191 \begin_inset Quotes erd
23192 \end_inset
23193
23194  if the template can handle original files of more than one format.
23195  LyX will attempt to interrogate the file itself in order to deduce its
23196  format in this case.
23197  This command must occur exactly once.
23198 \end_layout
23199
23200 \begin_layout Description
23201 \begin_inset Flex Code
23202 status collapsed
23203
23204 \begin_layout Plain Layout
23205 Template
23206 \begin_inset space ~
23207 \end_inset
23208
23209 <id>
23210 \end_layout
23211
23212 \end_inset
23213
23214  A unique name for the template.
23215  It must not contain substitution macros (see below).
23216 \end_layout
23217
23218 \begin_layout Description
23219 \begin_inset Flex Code
23220 status collapsed
23221
23222 \begin_layout Plain Layout
23223 Transform
23224 \begin_inset space ~
23225 \end_inset
23226
23227 Rotate|Resize|Clip|Extra
23228 \end_layout
23229
23230 \end_inset
23231
23232  This command specifies which transformations are supported by this template.
23233  It may occur zero or more times.
23234  This command enables the corresponding tabs in the external dialog.
23235  Each 
23236 \begin_inset Flex Code
23237 status collapsed
23238
23239 \begin_layout Plain Layout
23240 Transform
23241 \end_layout
23242
23243 \end_inset
23244
23245  command must have either a corresponding 
23246 \begin_inset Flex Code
23247 status collapsed
23248
23249 \begin_layout Plain Layout
23250 TransformCommand
23251 \end_layout
23252
23253 \end_inset
23254
23255  or a 
23256 \begin_inset Flex Code
23257 status collapsed
23258
23259 \begin_layout Plain Layout
23260 TransformOption
23261 \end_layout
23262
23263 \end_inset
23264
23265  command in the 
23266 \begin_inset Flex Code
23267 status collapsed
23268
23269 \begin_layout Plain Layout
23270 Format
23271 \end_layout
23272
23273 \end_inset
23274
23275  section.
23276  Otherwise the transformation will not be supported by that format.
23277 \end_layout
23278
23279 \begin_layout Subsection
23280 The Format section
23281 \end_layout
23282
23283 \begin_layout Description
23284 \begin_inset Flex Code
23285 status collapsed
23286
23287 \begin_layout Plain Layout
23288 Format
23289 \begin_inset space ~
23290 \end_inset
23291
23292 LaTeX|PDFLaTeX|PlainText|DocBook
23293 \end_layout
23294
23295 \end_inset
23296
23297  The primary document file format that this format definition is for.
23298  Not every template has a sensible representation in all document file formats.
23299  Please define nevertheless a 
23300 \begin_inset Flex Code
23301 status collapsed
23302
23303 \begin_layout Plain Layout
23304 Format
23305 \end_layout
23306
23307 \end_inset
23308
23309  section for all templates.
23310  Use a dummy text when no representation is available.
23311  Then you can at least see a reference to the external material in the exported
23312  document.
23313 \end_layout
23314
23315 \begin_layout Description
23316 \begin_inset Flex Code
23317 status collapsed
23318
23319 \begin_layout Plain Layout
23320 Option
23321 \begin_inset space ~
23322 \end_inset
23323
23324 <name>
23325 \begin_inset space ~
23326 \end_inset
23327
23328 <value>
23329 \end_layout
23330
23331 \end_inset
23332
23333  This command defines an additional macro 
23334 \begin_inset Flex Code
23335 status collapsed
23336
23337 \begin_layout Plain Layout
23338 $$<name>
23339 \end_layout
23340
23341 \end_inset
23342
23343  for substitution in 
23344 \begin_inset Flex Code
23345 status collapsed
23346
23347 \begin_layout Plain Layout
23348 Product
23349 \end_layout
23350
23351 \end_inset
23352
23353 .
23354  
23355 \begin_inset Flex Code
23356 status collapsed
23357
23358 \begin_layout Plain Layout
23359 <value>
23360 \end_layout
23361
23362 \end_inset
23363
23364  itself may contain substitution macros.
23365  The advantage over using 
23366 \begin_inset Flex Code
23367 status collapsed
23368
23369 \begin_layout Plain Layout
23370 <value>
23371 \end_layout
23372
23373 \end_inset
23374
23375  directly in 
23376 \begin_inset Flex Code
23377 status collapsed
23378
23379 \begin_layout Plain Layout
23380 Product
23381 \end_layout
23382
23383 \end_inset
23384
23385  is that the substituted value of 
23386 \begin_inset Flex Code
23387 status collapsed
23388
23389 \begin_layout Plain Layout
23390 $$<name>
23391 \end_layout
23392
23393 \end_inset
23394
23395  is sanitized so that it is a valid optional argument in the document format.
23396  This command may occur zero or more times.
23397 \end_layout
23398
23399 \begin_layout Description
23400 \begin_inset Flex Code
23401 status collapsed
23402
23403 \begin_layout Plain Layout
23404 Product
23405 \begin_inset space ~
23406 \end_inset
23407
23408 <text>
23409 \end_layout
23410
23411 \end_inset
23412
23413  The text that is inserted in the exported document.
23414  This is actually the most important command and can be quite complex.
23415  This command must occur exactly once.
23416 \end_layout
23417
23418 \begin_layout Description
23419 \begin_inset Flex Code
23420 status collapsed
23421
23422 \begin_layout Plain Layout
23423 Preamble
23424 \begin_inset space ~
23425 \end_inset
23426
23427 <name>
23428 \end_layout
23429
23430 \end_inset
23431
23432  This command specifies a preamble snippet that will be included in the
23433  LaTeX preamble.
23434  It has to be defined using 
23435 \begin_inset Flex Code
23436 status collapsed
23437
23438 \begin_layout Plain Layout
23439 PreambleDef
23440 \end_layout
23441
23442 \end_inset
23443
23444  \SpecialChar \ldots{}
23445  
23446 \begin_inset Flex Code
23447 status collapsed
23448
23449 \begin_layout Plain Layout
23450 PreambleDefEnd
23451 \end_layout
23452
23453 \end_inset
23454
23455 .
23456  This command may occur zero or more times.
23457 \end_layout
23458
23459 \begin_layout Description
23460 \begin_inset Flex Code
23461 status collapsed
23462
23463 \begin_layout Plain Layout
23464 ReferencedFile
23465 \begin_inset space ~
23466 \end_inset
23467
23468 <format>
23469 \begin_inset space ~
23470 \end_inset
23471
23472 <filename>
23473 \end_layout
23474
23475 \end_inset
23476
23477  This command denotes files that are created by the conversion process and
23478  are needed for a particular export format.
23479  If the filename is relative, it is interpreted relative to the master document.
23480  This command may be given zero or more times.
23481 \end_layout
23482
23483 \begin_layout Description
23484 \begin_inset Flex Code
23485 status collapsed
23486
23487 \begin_layout Plain Layout
23488 Requirement
23489 \begin_inset space ~
23490 \end_inset
23491
23492 <package>
23493 \end_layout
23494
23495 \end_inset
23496
23497  The name of a required LaTeX package.
23498  The package is included via 
23499 \begin_inset Flex Code
23500 status collapsed
23501
23502 \begin_layout Plain Layout
23503
23504 \backslash
23505 usepackage{}
23506 \end_layout
23507
23508 \end_inset
23509
23510  in the LaTeX preamble.
23511  This command may occur zero or more times.
23512 \end_layout
23513
23514 \begin_layout Description
23515 \begin_inset Flex Code
23516 status collapsed
23517
23518 \begin_layout Plain Layout
23519 TransformCommand
23520 \begin_inset space ~
23521 \end_inset
23522
23523 Rotate
23524 \begin_inset space ~
23525 \end_inset
23526
23527 RotationLatexCommand
23528 \end_layout
23529
23530 \end_inset
23531
23532  This command specifies that the built in LaTeX command should be used for
23533  rotation.
23534  This command may occur once or not at all.
23535 \end_layout
23536
23537 \begin_layout Description
23538 \begin_inset Flex Code
23539 status collapsed
23540
23541 \begin_layout Plain Layout
23542 TransformCommand
23543 \begin_inset space ~
23544 \end_inset
23545
23546 Resize
23547 \begin_inset space ~
23548 \end_inset
23549
23550 ResizeLatexCommand
23551 \end_layout
23552
23553 \end_inset
23554
23555  This command specifies that the built in LaTeX command should be used for
23556  resizing.
23557  This command may occur once or not at all.
23558 \end_layout
23559
23560 \begin_layout Description
23561 \begin_inset Flex Code
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 TransformOption
23566 \begin_inset space ~
23567 \end_inset
23568
23569 Rotate
23570 \begin_inset space ~
23571 \end_inset
23572
23573 RotationLatexOption
23574 \end_layout
23575
23576 \end_inset
23577
23578  This command specifies that rotation is done via an optional argument.
23579  This command may occur once or not at all.
23580 \end_layout
23581
23582 \begin_layout Description
23583 \begin_inset Flex Code
23584 status collapsed
23585
23586 \begin_layout Plain Layout
23587 TransformOption
23588 \begin_inset space ~
23589 \end_inset
23590
23591 Resize
23592 \begin_inset space ~
23593 \end_inset
23594
23595 ResizeLatexOption
23596 \end_layout
23597
23598 \end_inset
23599
23600  This command specifies that resizing is done via an optional argument.
23601  This command may occur once or not at all.
23602 \end_layout
23603
23604 \begin_layout Description
23605 \begin_inset Flex Code
23606 status collapsed
23607
23608 \begin_layout Plain Layout
23609 TransformOption
23610 \begin_inset space ~
23611 \end_inset
23612
23613 Clip
23614 \begin_inset space ~
23615 \end_inset
23616
23617 ClipLatexOption
23618 \end_layout
23619
23620 \end_inset
23621
23622  This command specifies that clipping is done via an optional argument.
23623  This command may occur once or not at all.
23624 \end_layout
23625
23626 \begin_layout Description
23627 \begin_inset Flex Code
23628 status collapsed
23629
23630 \begin_layout Plain Layout
23631 TransformOption
23632 \begin_inset space ~
23633 \end_inset
23634
23635 Extra
23636 \begin_inset space ~
23637 \end_inset
23638
23639 ExtraLatexOption
23640 \end_layout
23641
23642 \end_inset
23643
23644  This command specifies that an extra optional argument is used.
23645  This command may occur once or not at all.
23646 \end_layout
23647
23648 \begin_layout Description
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653 UpdateFormat
23654 \begin_inset space ~
23655 \end_inset
23656
23657 <format>
23658 \end_layout
23659
23660 \end_inset
23661
23662  The file format of the converted file.
23663  This must be the name of a format that is known to LyX (see the 
23664 \begin_inset Flex MenuItem
23665 status collapsed
23666
23667 \begin_layout Plain Layout
23668
23669 \bar under
23670 T
23671 \bar default
23672 ools\SpecialChar \menuseparator
23673
23674 \bar under
23675 P
23676 \bar default
23677 references\SpecialChar \menuseparator
23678 File Handling\SpecialChar \menuseparator
23679 File Format
23680 \end_layout
23681
23682 \end_inset
23683
23684  dialog).
23685  This command must occur exactly once.
23686
23687 \change_inserted -195340706 1363813305
23688  If the resulting file format is PDF, you need to specify the format 
23689 \begin_inset Flex Code
23690 status collapsed
23691
23692 \begin_layout Plain Layout
23693
23694 \change_inserted -195340706 1363813269
23695 pdf6
23696 \end_layout
23697
23698 \end_inset
23699
23700 .
23701  This is the PDF format used for including graphics.
23702  The other defined PDF formats are for document export.
23703 \change_unchanged
23704
23705 \end_layout
23706
23707 \begin_layout Description
23708 \begin_inset Flex Code
23709 status collapsed
23710
23711 \begin_layout Plain Layout
23712 UpdateResult
23713 \begin_inset space ~
23714 \end_inset
23715
23716 <filename>
23717 \end_layout
23718
23719 \end_inset
23720
23721  The file name of the converted file.
23722  The file name must be absolute.
23723  This command must occur exactly once.
23724 \end_layout
23725
23726 \begin_layout Subsection
23727 Preamble definitions
23728 \end_layout
23729
23730 \begin_layout Standard
23731 The external template configuration file may contain additional preamble
23732  definitions enclosed by 
23733 \begin_inset Flex Code
23734 status collapsed
23735
23736 \begin_layout Plain Layout
23737 PreambleDef
23738 \end_layout
23739
23740 \end_inset
23741
23742  \SpecialChar \ldots{}
23743  
23744 \begin_inset Flex Code
23745 status collapsed
23746
23747 \begin_layout Plain Layout
23748 PreambleDefEnd
23749 \end_layout
23750
23751 \end_inset
23752
23753 .
23754  They can be used by the templates in the 
23755 \begin_inset Flex Code
23756 status collapsed
23757
23758 \begin_layout Plain Layout
23759 Format
23760 \end_layout
23761
23762 \end_inset
23763
23764  section.
23765 \end_layout
23766
23767 \begin_layout Section
23768 The substitution mechanism
23769 \end_layout
23770
23771 \begin_layout Standard
23772 When the external material facility invokes an external program, it is done
23773  on the basis of a command defined in the template configuration file.
23774  These commands can contain various macros that are expanded before execution.
23775  Execution always take place in the directory of the containing document.
23776 \end_layout
23777
23778 \begin_layout Standard
23779 Also, whenever external material is to be displayed, the name will be produced
23780  by the substitution mechanism, and most other commands in the template
23781  definition support substitution as well.
23782 \end_layout
23783
23784 \begin_layout Standard
23785 The available macros are the following:
23786 \end_layout
23787
23788 \begin_layout Description
23789 \begin_inset Flex Code
23790 status collapsed
23791
23792 \begin_layout Plain Layout
23793 $$AbsOrRelPathMaster
23794 \end_layout
23795
23796 \end_inset
23797
23798  The file path, absolute or relative to the master LyX document.
23799 \end_layout
23800
23801 \begin_layout Description
23802 \begin_inset Flex Code
23803 status collapsed
23804
23805 \begin_layout Plain Layout
23806 $$AbsOrRelPathParent
23807 \end_layout
23808
23809 \end_inset
23810
23811  The file path, absolute or relative to the LyX document.
23812 \end_layout
23813
23814 \begin_layout Description
23815 \begin_inset Flex Code
23816 status collapsed
23817
23818 \begin_layout Plain Layout
23819 $$AbsPath
23820 \end_layout
23821
23822 \end_inset
23823
23824  The absolute file path.
23825 \end_layout
23826
23827 \begin_layout Description
23828 \begin_inset Flex Code
23829 status collapsed
23830
23831 \begin_layout Plain Layout
23832 $$Basename
23833 \end_layout
23834
23835 \end_inset
23836
23837  The filename without path and without the extension.
23838 \end_layout
23839
23840 \begin_layout Description
23841 \begin_inset Flex Code
23842 status collapsed
23843
23844 \begin_layout Plain Layout
23845 $$Contents(
23846 \begin_inset Quotes eld
23847 \end_inset
23848
23849 filename.ext
23850 \begin_inset Quotes erd
23851 \end_inset
23852
23853 )
23854 \end_layout
23855
23856 \end_inset
23857
23858  This macro will expand to the contents of the file with the name 
23859 \begin_inset Flex Code
23860 status collapsed
23861
23862 \begin_layout Plain Layout
23863 filename.ext
23864 \end_layout
23865
23866 \end_inset
23867
23868 .
23869 \end_layout
23870
23871 \begin_layout Description
23872 \begin_inset Flex Code
23873 status collapsed
23874
23875 \begin_layout Plain Layout
23876 $$Extension
23877 \end_layout
23878
23879 \end_inset
23880
23881  The file extension (including the dot).
23882 \end_layout
23883
23884 \begin_layout Description
23885 \begin_inset Flex Code
23886 status collapsed
23887
23888 \begin_layout Plain Layout
23889 $$FName
23890 \end_layout
23891
23892 \end_inset
23893
23894  The filename of the file specified in the external material dialog.
23895  This is either an absolute name, or it is relative to the LyX document.
23896 \end_layout
23897
23898 \begin_layout Description
23899 \begin_inset Flex Code
23900 status collapsed
23901
23902 \begin_layout Plain Layout
23903 $$FPath
23904 \end_layout
23905
23906 \end_inset
23907
23908  The path part of 
23909 \begin_inset Flex Code
23910 status collapsed
23911
23912 \begin_layout Plain Layout
23913 $$FName
23914 \end_layout
23915
23916 \end_inset
23917
23918  (absolute name or relative to the LyX document).
23919 \end_layout
23920
23921 \begin_layout Description
23922 \begin_inset Flex Code
23923 status collapsed
23924
23925 \begin_layout Plain Layout
23926 $$RelPathMaster
23927 \end_layout
23928
23929 \end_inset
23930
23931  The file path, relative to the master LyX document.
23932 \end_layout
23933
23934 \begin_layout Description
23935 \begin_inset Flex Code
23936 status collapsed
23937
23938 \begin_layout Plain Layout
23939 $$RelPathParent
23940 \end_layout
23941
23942 \end_inset
23943
23944  The file path, relative to the LyX document.
23945 \end_layout
23946
23947 \begin_layout Description
23948 \begin_inset Flex Code
23949 status collapsed
23950
23951 \begin_layout Plain Layout
23952 $$Sysdir
23953 \end_layout
23954
23955 \end_inset
23956
23957  This macro will expand to the absolute path of the system directory.
23958  This is typically used to point to the various helper scripts that are
23959  bundled with LyX.
23960 \end_layout
23961
23962 \begin_layout Description
23963 \begin_inset Flex Code
23964 status collapsed
23965
23966 \begin_layout Plain Layout
23967 $$Tempname
23968 \end_layout
23969
23970 \end_inset
23971
23972  A name and full path to a temporary file which will be automatically deleted
23973  whenever the containing document is closed, or the external material insertion
23974  deleted.
23975 \end_layout
23976
23977 \begin_layout Standard
23978 All path macros contain a trailing directory separator, so you can construct
23979  e.
23980 \begin_inset space \thinspace{}
23981 \end_inset
23982
23983 g.
23984 \begin_inset space \space{}
23985 \end_inset
23986
23987 the absolute filename with 
23988 \begin_inset Flex Code
23989 status collapsed
23990
23991 \begin_layout Plain Layout
23992 $$AbsPath$$Basename$$Extension
23993 \end_layout
23994
23995 \end_inset
23996
23997 .
23998 \end_layout
23999
24000 \begin_layout Standard
24001 The macros above are substituted in all commands unless otherwise noted.
24002  The command 
24003 \begin_inset Flex Code
24004 status collapsed
24005
24006 \begin_layout Plain Layout
24007 Product
24008 \end_layout
24009
24010 \end_inset
24011
24012  supports additionally the following substitutions if they are enabled by
24013  the 
24014 \begin_inset Flex Code
24015 status collapsed
24016
24017 \begin_layout Plain Layout
24018 Transform
24019 \end_layout
24020
24021 \end_inset
24022
24023  and 
24024 \begin_inset Flex Code
24025 status collapsed
24026
24027 \begin_layout Plain Layout
24028 TransformCommand
24029 \end_layout
24030
24031 \end_inset
24032
24033  commands:
24034 \end_layout
24035
24036 \begin_layout Description
24037 \begin_inset Flex Code
24038 status collapsed
24039
24040 \begin_layout Plain Layout
24041 $$ResizeFront
24042 \end_layout
24043
24044 \end_inset
24045
24046  The front part of the resize command.
24047 \end_layout
24048
24049 \begin_layout Description
24050 \begin_inset Flex Code
24051 status collapsed
24052
24053 \begin_layout Plain Layout
24054 $$ResizeBack
24055 \end_layout
24056
24057 \end_inset
24058
24059  The back part of the resize command.
24060 \end_layout
24061
24062 \begin_layout Description
24063 \begin_inset Flex Code
24064 status collapsed
24065
24066 \begin_layout Plain Layout
24067 $$RotateFront
24068 \end_layout
24069
24070 \end_inset
24071
24072  The front part of the rotation command.
24073 \end_layout
24074
24075 \begin_layout Description
24076 \begin_inset Flex Code
24077 status collapsed
24078
24079 \begin_layout Plain Layout
24080 $$RotateBack
24081 \end_layout
24082
24083 \end_inset
24084
24085  The back part of the rotation command.
24086 \end_layout
24087
24088 \begin_layout Standard
24089 The value string of the 
24090 \begin_inset Flex Code
24091 status collapsed
24092
24093 \begin_layout Plain Layout
24094 Option
24095 \end_layout
24096
24097 \end_inset
24098
24099  command supports additionally the following substitutions if they are enabled
24100  by the 
24101 \begin_inset Flex Code
24102 status collapsed
24103
24104 \begin_layout Plain Layout
24105 Transform
24106 \end_layout
24107
24108 \end_inset
24109
24110  and 
24111 \begin_inset Flex Code
24112 status collapsed
24113
24114 \begin_layout Plain Layout
24115 TransformOption
24116 \end_layout
24117
24118 \end_inset
24119
24120  commands:
24121 \end_layout
24122
24123 \begin_layout Description
24124 \begin_inset Flex Code
24125 status collapsed
24126
24127 \begin_layout Plain Layout
24128 $$Clip
24129 \end_layout
24130
24131 \end_inset
24132
24133  The clip option.
24134 \end_layout
24135
24136 \begin_layout Description
24137 \begin_inset Flex Code
24138 status collapsed
24139
24140 \begin_layout Plain Layout
24141 $$Extra
24142 \end_layout
24143
24144 \end_inset
24145
24146  The extra option.
24147 \end_layout
24148
24149 \begin_layout Description
24150 \begin_inset Flex Code
24151 status collapsed
24152
24153 \begin_layout Plain Layout
24154 $$Resize
24155 \end_layout
24156
24157 \end_inset
24158
24159  The resize option.
24160 \end_layout
24161
24162 \begin_layout Description
24163 \begin_inset Flex Code
24164 status collapsed
24165
24166 \begin_layout Plain Layout
24167 $$Rotate
24168 \end_layout
24169
24170 \end_inset
24171
24172  The rotation option.
24173 \end_layout
24174
24175 \begin_layout Standard
24176 You may ask why there are so many path macros.
24177  There are mainly two reasons:
24178 \end_layout
24179
24180 \begin_layout Enumerate
24181 Relative and absolute file names should remain relative or absolute, respectivel
24182 y.
24183  Users may have reasons to prefer either form.
24184  Relative names are useful for portable documents that should work on different
24185  machines, for example.
24186  Absolute names may be required by some programs.
24187 \end_layout
24188
24189 \begin_layout Enumerate
24190 LaTeX treats relative file names differently than LyX and other programs
24191  in nested included files.
24192  For LyX, a relative file name is always relative to the document that contains
24193  the file name.
24194  For LaTeX, it is always relative to the master document.
24195  These two definitions are identical if you have only one document, but
24196  differ if you have a master document that includes part documents.
24197  That means that relative filenames must be transformed when presented to
24198  LaTeX.
24199  Fortunately LyX does this automatically for you if you choose the right
24200  macros.
24201 \end_layout
24202
24203 \begin_layout Standard
24204 So which path macro should be used in new template definitions? The rule
24205  is not difficult:
24206 \end_layout
24207
24208 \begin_layout Itemize
24209 Use 
24210 \begin_inset Flex Code
24211 status collapsed
24212
24213 \begin_layout Plain Layout
24214 $$AbsPath
24215 \end_layout
24216
24217 \end_inset
24218
24219  if an absolute path is required.
24220 \end_layout
24221
24222 \begin_layout Itemize
24223 Use 
24224 \begin_inset Flex Code
24225 status collapsed
24226
24227 \begin_layout Plain Layout
24228 $$AbsOrRelPathMaster
24229 \end_layout
24230
24231 \end_inset
24232
24233  if the substituted string is some kind of LaTeX input.
24234 \end_layout
24235
24236 \begin_layout Itemize
24237 Else use 
24238 \begin_inset Flex Code
24239 status collapsed
24240
24241 \begin_layout Plain Layout
24242 $$AbsOrRelPathParent
24243 \end_layout
24244
24245 \end_inset
24246
24247  in order to preserve the user's choice.
24248 \end_layout
24249
24250 \begin_layout Standard
24251 There are special cases where this rule does not work and e.
24252 \begin_inset space \thinspace{}
24253 \end_inset
24254
24255 g.
24256 \begin_inset space \space{}
24257 \end_inset
24258
24259 relative names are needed, but normally it will work just fine.
24260  One example for such a case is the command 
24261 \begin_inset Flex Code
24262 status collapsed
24263
24264 \begin_layout Plain Layout
24265 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24266 \end_layout
24267
24268 \end_inset
24269
24270  in the XFig template above: We can't use the absolute name because the
24271  copier for 
24272 \begin_inset Flex Code
24273 status collapsed
24274
24275 \begin_layout Plain Layout
24276 .pstex_t
24277 \end_layout
24278
24279 \end_inset
24280
24281  files needs the relative name in order to rewrite the file content.
24282 \end_layout
24283
24284 \begin_layout Section
24285 Security discussion
24286 \begin_inset CommandInset label
24287 LatexCommand label
24288 name "sec:Security-discussion"
24289
24290 \end_inset
24291
24292
24293 \end_layout
24294
24295 \begin_layout Standard
24296 The external material feature interfaces with a lot of external programs
24297  and does so automatically, so we have to consider the security implications
24298  of this.
24299  In particular, since you have the option of including your own filenames
24300  and/or parameter strings and those are expanded into a command, it seems
24301  that it would be possible to create a malicious document which executes
24302  arbitrary commands when a user views or prints the document.
24303  This is something we definitely want to avoid.
24304 \end_layout
24305
24306 \begin_layout Standard
24307 However, since the external program commands are specified in the template
24308  configuration file only, there are no security issues if LyX is properly
24309  configured with safe templates only.
24310  This is so because the external programs are invoked with the 
24311 \begin_inset Flex Code
24312 status collapsed
24313
24314 \begin_layout Plain Layout
24315 execvp
24316 \end_layout
24317
24318 \end_inset
24319
24320 -system call rather than the 
24321 \begin_inset Flex Code
24322 status collapsed
24323
24324 \begin_layout Plain Layout
24325 system
24326 \end_layout
24327
24328 \end_inset
24329
24330  system-call, so it's not possible to execute arbitrary commands from the
24331  filename or parameter section via the shell.
24332 \end_layout
24333
24334 \begin_layout Standard
24335 This also implies that you are restricted in what command strings you can
24336  use in the external material templates.
24337  In particular, pipes and redirection are not readily available.
24338  This has to be so if LyX should remain safe.
24339  If you want to use some of the shell features, you should write a safe
24340  script to do this in a controlled manner, and then invoke the script from
24341  the command string.
24342  
24343 \end_layout
24344
24345 \begin_layout Standard
24346 It is possible to design a template that interacts directly with the shell,
24347  but since this would allow a malicious user to execute arbitrary commands
24348  by writing clever filenames and/or parameters, we generally recommend that
24349  you only use safe scripts that work with the 
24350 \begin_inset Flex Code
24351 status collapsed
24352
24353 \begin_layout Plain Layout
24354 execvp
24355 \end_layout
24356
24357 \end_inset
24358
24359  system call in a controlled manner.
24360  Of course, for use in a controlled environment, it can be tempting to just
24361  fall back to use ordinary shell scripts.
24362  If you do so, be aware that you 
24363 \emph on
24364 will
24365 \emph default
24366  provide an easily exploitable security hole in your system.
24367  Of course it stands to reason that such unsafe templates will never be
24368  included in the standard LyX distribution, although we do encourage people
24369  to submit new templates in the open source tradition.
24370  But LyX as shipped from the official distribution channels will never have
24371  unsafe templates.
24372 \end_layout
24373
24374 \begin_layout Standard
24375 Including external material provides a lot of power, and you have to be
24376  careful not to introduce security hazards with this power.
24377  A subtle error in a single line in an innocent looking script can open
24378  the door to huge security problems.
24379  So if you do not fully understand the issues, we recommend that you consult
24380  a knowledgeable security professional or the LyX development team if you
24381  have any questions about whether a given template is safe or not.
24382  And do this before you use it in an uncontrolled environment.
24383 \end_layout
24384
24385 \begin_layout Chapter
24386 \start_of_appendix
24387 List of functions to be used in layouts
24388 \begin_inset CommandInset label
24389 LatexCommand label
24390 name "chap:List-of-functions"
24391
24392 \end_inset
24393
24394
24395 \end_layout
24396
24397 \begin_layout Standard
24398 \align center
24399 \begin_inset Tabular
24400 <lyxtabular version="3" rows="10" columns="6">
24401 <features rotate="0" tabularvalignment="middle">
24402 <column alignment="left" valignment="top" width="14col%">
24403 <column alignment="left" valignment="top" width="14col%">
24404 <column alignment="left" valignment="top" width="14col%">
24405 <column alignment="left" valignment="top" width="14col%">
24406 <column alignment="left" valignment="top" width="14col%">
24407 <column alignment="left" valignment="top" width="14col%">
24408 <row>
24409 <cell alignment="left" valignment="top" usebox="none">
24410 \begin_inset Text
24411
24412 \begin_layout Plain Layout
24413 accents
24414 \end_layout
24415
24416 \end_inset
24417 </cell>
24418 <cell alignment="left" valignment="top" usebox="none">
24419 \begin_inset Text
24420
24421 \begin_layout Plain Layout
24422 bbding
24423 \end_layout
24424
24425 \end_inset
24426 </cell>
24427 <cell alignment="left" valignment="top" usebox="none">
24428 \begin_inset Text
24429
24430 \begin_layout Plain Layout
24431 dvipost
24432 \end_layout
24433
24434 \end_inset
24435 </cell>
24436 <cell alignment="left" valignment="top" usebox="none">
24437 \begin_inset Text
24438
24439 \begin_layout Plain Layout
24440 fancybox
24441 \end_layout
24442
24443 \end_inset
24444 </cell>
24445 <cell alignment="left" valignment="top" usebox="none">
24446 \begin_inset Text
24447
24448 \begin_layout Plain Layout
24449 hhline
24450 \end_layout
24451
24452 \end_inset
24453 </cell>
24454 <cell alignment="left" valignment="top" usebox="none">
24455 \begin_inset Text
24456
24457 \begin_layout Plain Layout
24458 latexsym
24459 \end_layout
24460
24461 \end_inset
24462 </cell>
24463 </row>
24464 <row>
24465 <cell alignment="left" valignment="top" usebox="none">
24466 \begin_inset Text
24467
24468 \begin_layout Plain Layout
24469 amsbsy
24470 \end_layout
24471
24472 \end_inset
24473 </cell>
24474 <cell alignment="left" valignment="top" usebox="none">
24475 \begin_inset Text
24476
24477 \begin_layout Plain Layout
24478 bm
24479 \end_layout
24480
24481 \end_inset
24482 </cell>
24483 <cell alignment="left" valignment="top" usebox="none">
24484 \begin_inset Text
24485
24486 \begin_layout Plain Layout
24487
24488 \end_layout
24489
24490 \end_inset
24491 </cell>
24492 <cell alignment="left" valignment="top" usebox="none">
24493 \begin_inset Text
24494
24495 \begin_layout Plain Layout
24496 feyn
24497 \end_layout
24498
24499 \end_inset
24500 </cell>
24501 <cell alignment="left" valignment="top" usebox="none">
24502 \begin_inset Text
24503
24504 \begin_layout Plain Layout
24505 hyperref
24506 \end_layout
24507
24508 \end_inset
24509 </cell>
24510 <cell alignment="left" valignment="top" usebox="none">
24511 \begin_inset Text
24512
24513 \begin_layout Plain Layout
24514 listings
24515 \end_layout
24516
24517 \end_inset
24518 </cell>
24519 </row>
24520 <row>
24521 <cell alignment="left" valignment="top" usebox="none">
24522 \begin_inset Text
24523
24524 \begin_layout Plain Layout
24525 amscd
24526 \end_layout
24527
24528 \end_inset
24529 </cell>
24530 <cell alignment="left" valignment="top" usebox="none">
24531 \begin_inset Text
24532
24533 \begin_layout Plain Layout
24534 booktabs
24535 \end_layout
24536
24537 \end_inset
24538 </cell>
24539 <cell alignment="left" valignment="top" usebox="none">
24540 \begin_inset Text
24541
24542 \begin_layout Plain Layout
24543 endnotes
24544 \end_layout
24545
24546 \end_inset
24547 </cell>
24548 <cell alignment="left" valignment="top" usebox="none">
24549 \begin_inset Text
24550
24551 \begin_layout Plain Layout
24552 fixltx2e
24553 \end_layout
24554
24555 \end_inset
24556 </cell>
24557 <cell alignment="left" valignment="top" usebox="none">
24558 \begin_inset Text
24559
24560 \begin_layout Plain Layout
24561
24562 \end_layout
24563
24564 \end_inset
24565 </cell>
24566 <cell alignment="left" valignment="top" usebox="none">
24567 \begin_inset Text
24568
24569 \begin_layout Plain Layout
24570 longtable
24571 \end_layout
24572
24573 \end_inset
24574 </cell>
24575 </row>
24576 <row>
24577 <cell alignment="left" valignment="top" usebox="none">
24578 \begin_inset Text
24579
24580 \begin_layout Plain Layout
24581 amsmath
24582 \end_layout
24583
24584 \end_inset
24585 </cell>
24586 <cell alignment="left" valignment="top" usebox="none">
24587 \begin_inset Text
24588
24589 \begin_layout Plain Layout
24590
24591 \end_layout
24592
24593 \end_inset
24594 </cell>
24595 <cell alignment="left" valignment="top" usebox="none">
24596 \begin_inset Text
24597
24598 \begin_layout Plain Layout
24599 enumitem
24600 \end_layout
24601
24602 \end_inset
24603 </cell>
24604 <cell alignment="left" valignment="top" usebox="none">
24605 \begin_inset Text
24606
24607 \begin_layout Plain Layout
24608 float
24609 \end_layout
24610
24611 \end_inset
24612 </cell>
24613 <cell alignment="left" valignment="top" usebox="none">
24614 \begin_inset Text
24615
24616 \begin_layout Plain Layout
24617 ifsym
24618 \end_layout
24619
24620 \end_inset
24621 </cell>
24622 <cell alignment="left" valignment="top" usebox="none">
24623 \begin_inset Text
24624
24625 \begin_layout Plain Layout
24626 lyxskak
24627 \end_layout
24628
24629 \end_inset
24630 </cell>
24631 </row>
24632 <row>
24633 <cell alignment="left" valignment="top" usebox="none">
24634 \begin_inset Text
24635
24636 \begin_layout Plain Layout
24637 amssymb
24638 \end_layout
24639
24640 \end_inset
24641 </cell>
24642 <cell alignment="left" valignment="top" usebox="none">
24643 \begin_inset Text
24644
24645 \begin_layout Plain Layout
24646 CJK
24647 \end_layout
24648
24649 \end_inset
24650 </cell>
24651 <cell alignment="left" valignment="top" usebox="none">
24652 \begin_inset Text
24653
24654 \begin_layout Plain Layout
24655 esint
24656 \end_layout
24657
24658 \end_inset
24659 </cell>
24660 <cell alignment="left" valignment="top" usebox="none">
24661 \begin_inset Text
24662
24663 \begin_layout Plain Layout
24664 framed
24665 \end_layout
24666
24667 \end_inset
24668 </cell>
24669 <cell alignment="left" valignment="top" usebox="none">
24670 \begin_inset Text
24671
24672 \begin_layout Plain Layout
24673 ifthen
24674 \end_layout
24675
24676 \end_inset
24677 </cell>
24678 <cell alignment="left" valignment="top" usebox="none">
24679 \begin_inset Text
24680
24681 \begin_layout Plain Layout
24682
24683 \end_layout
24684
24685 \end_inset
24686 </cell>
24687 </row>
24688 <row>
24689 <cell alignment="left" valignment="top" usebox="none">
24690 \begin_inset Text
24691
24692 \begin_layout Plain Layout
24693 amstext
24694 \end_layout
24695
24696 \end_inset
24697 </cell>
24698 <cell alignment="left" valignment="top" usebox="none">
24699 \begin_inset Text
24700
24701 \begin_layout Plain Layout
24702 color
24703 \end_layout
24704
24705 \end_inset
24706 </cell>
24707 <cell alignment="left" valignment="top" usebox="none">
24708 \begin_inset Text
24709
24710 \begin_layout Plain Layout
24711
24712 \end_layout
24713
24714 \end_inset
24715 </cell>
24716 <cell alignment="left" valignment="top" usebox="none">
24717 \begin_inset Text
24718
24719 \begin_layout Plain Layout
24720
24721 \end_layout
24722
24723 \end_inset
24724 </cell>
24725 <cell alignment="left" valignment="top" usebox="none">
24726 \begin_inset Text
24727
24728 \begin_layout Plain Layout
24729
24730 \end_layout
24731
24732 \end_inset
24733 </cell>
24734 <cell alignment="left" valignment="top" usebox="none">
24735 \begin_inset Text
24736
24737 \begin_layout Plain Layout
24738 makeidx
24739 \end_layout
24740
24741 \end_inset
24742 </cell>
24743 </row>
24744 <row>
24745 <cell alignment="left" valignment="top" usebox="none">
24746 \begin_inset Text
24747
24748 \begin_layout Plain Layout
24749 amsthm
24750 \end_layout
24751
24752 \end_inset
24753 </cell>
24754 <cell alignment="left" valignment="top" usebox="none">
24755 \begin_inset Text
24756
24757 \begin_layout Plain Layout
24758 covington
24759 \end_layout
24760
24761 \end_inset
24762 </cell>
24763 <cell alignment="left" valignment="top" usebox="none">
24764 \begin_inset Text
24765
24766 \begin_layout Plain Layout
24767
24768 \end_layout
24769
24770 \end_inset
24771 </cell>
24772 <cell alignment="left" valignment="top" usebox="none">
24773 \begin_inset Text
24774
24775 \begin_layout Plain Layout
24776 graphicx
24777 \end_layout
24778
24779 \end_inset
24780 </cell>
24781 <cell alignment="left" valignment="top" usebox="none">
24782 \begin_inset Text
24783
24784 \begin_layout Plain Layout
24785 jurabib
24786 \end_layout
24787
24788 \end_inset
24789 </cell>
24790 <cell alignment="left" valignment="top" usebox="none">
24791 \begin_inset Text
24792
24793 \begin_layout Plain Layout
24794 marvosym
24795 \end_layout
24796
24797 \end_inset
24798 </cell>
24799 </row>
24800 <row>
24801 <cell alignment="left" valignment="top" usebox="none">
24802 \begin_inset Text
24803
24804 \begin_layout Plain Layout
24805 array
24806 \end_layout
24807
24808 \end_inset
24809 </cell>
24810 <cell alignment="left" valignment="top" usebox="none">
24811 \begin_inset Text
24812
24813 \begin_layout Plain Layout
24814 csquotes
24815 \end_layout
24816
24817 \end_inset
24818 </cell>
24819 <cell alignment="left" valignment="top" usebox="none">
24820 \begin_inset Text
24821
24822 \begin_layout Plain Layout
24823
24824 \end_layout
24825
24826 \end_inset
24827 </cell>
24828 <cell alignment="left" valignment="top" usebox="none">
24829 \begin_inset Text
24830
24831 \begin_layout Plain Layout
24832
24833 \end_layout
24834
24835 \end_inset
24836 </cell>
24837 <cell alignment="left" valignment="top" usebox="none">
24838 \begin_inset Text
24839
24840 \begin_layout Plain Layout
24841
24842 \end_layout
24843
24844 \end_inset
24845 </cell>
24846 <cell alignment="left" valignment="top" usebox="none">
24847 \begin_inset Text
24848
24849 \begin_layout Plain Layout
24850 mathdesign
24851 \end_layout
24852
24853 \end_inset
24854 </cell>
24855 </row>
24856 <row>
24857 <cell alignment="left" valignment="top" usebox="none">
24858 \begin_inset Text
24859
24860 \begin_layout Plain Layout
24861 ascii
24862 \end_layout
24863
24864 \end_inset
24865 </cell>
24866 <cell alignment="left" valignment="top" usebox="none">
24867 \begin_inset Text
24868
24869 \begin_layout Plain Layout
24870
24871 \end_layout
24872
24873 \end_inset
24874 </cell>
24875 <cell alignment="left" valignment="top" usebox="none">
24876 \begin_inset Text
24877
24878 \begin_layout Plain Layout
24879
24880 \end_layout
24881
24882 \end_inset
24883 </cell>
24884 <cell alignment="left" valignment="top" usebox="none">
24885 \begin_inset Text
24886
24887 \begin_layout Plain Layout
24888 mathdesign
24889 \end_layout
24890
24891 \end_inset
24892 </cell>
24893 <cell alignment="left" valignment="top" usebox="none">
24894 \begin_inset Text
24895
24896 \begin_layout Plain Layout
24897
24898 \end_layout
24899
24900 \end_inset
24901 </cell>
24902 <cell alignment="left" valignment="top" usebox="none">
24903 \begin_inset Text
24904
24905 \begin_layout Plain Layout
24906 mathdots
24907 \end_layout
24908
24909 \end_inset
24910 </cell>
24911 </row>
24912 <row>
24913 <cell alignment="left" valignment="top" usebox="none">
24914 \begin_inset Text
24915
24916 \begin_layout Plain Layout
24917
24918 \end_layout
24919
24920 \end_inset
24921 </cell>
24922 <cell alignment="left" valignment="top" usebox="none">
24923 \begin_inset Text
24924
24925 \begin_layout Plain Layout
24926
24927 \end_layout
24928
24929 \end_inset
24930 </cell>
24931 <cell alignment="left" valignment="top" usebox="none">
24932 \begin_inset Text
24933
24934 \begin_layout Plain Layout
24935
24936 \end_layout
24937
24938 \end_inset
24939 </cell>
24940 <cell alignment="left" valignment="top" usebox="none">
24941 \begin_inset Text
24942
24943 \begin_layout Plain Layout
24944 mathdots
24945 \end_layout
24946
24947 \end_inset
24948 </cell>
24949 <cell alignment="left" valignment="top" usebox="none">
24950 \begin_inset Text
24951
24952 \begin_layout Plain Layout
24953
24954 \end_layout
24955
24956 \end_inset
24957 </cell>
24958 <cell alignment="left" valignment="top" usebox="none">
24959 \begin_inset Text
24960
24961 \begin_layout Plain Layout
24962 subfig
24963 \end_layout
24964
24965 \end_inset
24966 </cell>
24967 </row>
24968 </lyxtabular>
24969
24970 \end_inset
24971
24972
24973 \end_layout
24974
24975 \begin_layout Standard
24976 \align center
24977 \begin_inset Tabular
24978 <lyxtabular version="3" rows="10" columns="6">
24979 <features rotate="0" tabularvalignment="middle">
24980 <column alignment="left" valignment="top" width="14col%">
24981 <column alignment="left" valignment="top" width="14col%">
24982 <column alignment="left" valignment="top" width="14col%">
24983 <column alignment="left" valignment="top" width="14col%">
24984 <column alignment="left" valignment="top" width="14col%">
24985 <column alignment="left" valignment="top" width="14col%">
24986 <row>
24987 <cell alignment="left" valignment="top" usebox="none">
24988 \begin_inset Text
24989
24990 \begin_layout Plain Layout
24991 makeidx
24992 \end_layout
24993
24994 \end_inset
24995 </cell>
24996 <cell alignment="left" valignment="top" usebox="none">
24997 \begin_inset Text
24998
24999 \begin_layout Plain Layout
25000 pdfcolmk
25001 \end_layout
25002
25003 \end_inset
25004 </cell>
25005 <cell alignment="left" valignment="top" usebox="none">
25006 \begin_inset Text
25007
25008 \begin_layout Plain Layout
25009 setspace
25010 \end_layout
25011
25012 \end_inset
25013 </cell>
25014 <cell alignment="left" valignment="top" usebox="none">
25015 \begin_inset Text
25016
25017 \begin_layout Plain Layout
25018 textcomp
25019 \end_layout
25020
25021 \end_inset
25022 </cell>
25023 <cell alignment="left" valignment="top" usebox="none">
25024 \begin_inset Text
25025
25026 \begin_layout Plain Layout
25027 ulem
25028 \end_layout
25029
25030 \end_inset
25031 </cell>
25032 <cell alignment="left" valignment="top" usebox="none">
25033 \begin_inset Text
25034
25035 \begin_layout Plain Layout
25036 xargs
25037 \end_layout
25038
25039 \end_inset
25040 </cell>
25041 </row>
25042 <row>
25043 <cell alignment="left" valignment="top" usebox="none">
25044 \begin_inset Text
25045
25046 \begin_layout Plain Layout
25047 marvosym
25048 \end_layout
25049
25050 \end_inset
25051 </cell>
25052 <cell alignment="left" valignment="top" usebox="none">
25053 \begin_inset Text
25054
25055 \begin_layout Plain Layout
25056 pdfpages
25057 \end_layout
25058
25059 \end_inset
25060 </cell>
25061 <cell alignment="left" valignment="top" usebox="none">
25062 \begin_inset Text
25063
25064 \begin_layout Plain Layout
25065 slashed
25066 \end_layout
25067
25068 \end_inset
25069 </cell>
25070 <cell alignment="left" valignment="top" usebox="none">
25071 \begin_inset Text
25072
25073 \begin_layout Plain Layout
25074 textgreek
25075 \end_layout
25076
25077 \end_inset
25078 </cell>
25079 <cell alignment="left" valignment="top" usebox="none">
25080 \begin_inset Text
25081
25082 \begin_layout Plain Layout
25083 undertilde
25084 \end_layout
25085
25086 \end_inset
25087 </cell>
25088 <cell alignment="left" valignment="top" usebox="none">
25089 \begin_inset Text
25090
25091 \begin_layout Plain Layout
25092 xcolor
25093 \end_layout
25094
25095 \end_inset
25096 </cell>
25097 </row>
25098 <row>
25099 <cell alignment="left" valignment="top" usebox="none">
25100 \begin_inset Text
25101
25102 \begin_layout Plain Layout
25103 mathdesign
25104 \end_layout
25105
25106 \end_inset
25107 </cell>
25108 <cell alignment="left" valignment="top" usebox="none">
25109 \begin_inset Text
25110
25111 \begin_layout Plain Layout
25112 pifont
25113 \end_layout
25114
25115 \end_inset
25116 </cell>
25117 <cell alignment="left" valignment="top" usebox="none">
25118 \begin_inset Text
25119
25120 \begin_layout Plain Layout
25121 soul
25122 \end_layout
25123
25124 \end_inset
25125 </cell>
25126 <cell alignment="left" valignment="top" usebox="none">
25127 \begin_inset Text
25128
25129 \begin_layout Plain Layout
25130 tfrupee
25131 \end_layout
25132
25133 \end_inset
25134 </cell>
25135 <cell alignment="left" valignment="top" usebox="none">
25136 \begin_inset Text
25137
25138 \begin_layout Plain Layout
25139 units
25140 \end_layout
25141
25142 \end_inset
25143 </cell>
25144 <cell alignment="left" valignment="top" usebox="none">
25145 \begin_inset Text
25146
25147 \begin_layout Plain Layout
25148 xy
25149 \end_layout
25150
25151 \end_inset
25152 </cell>
25153 </row>
25154 <row>
25155 <cell alignment="left" valignment="top" usebox="none">
25156 \begin_inset Text
25157
25158 \begin_layout Plain Layout
25159 mathdots
25160 \end_layout
25161
25162 \end_inset
25163 </cell>
25164 <cell alignment="left" valignment="top" usebox="none">
25165 \begin_inset Text
25166
25167 \begin_layout Plain Layout
25168 pmboxdraw
25169 \end_layout
25170
25171 \end_inset
25172 </cell>
25173 <cell alignment="left" valignment="top" usebox="none">
25174 \begin_inset Text
25175
25176 \begin_layout Plain Layout
25177 splitidx
25178 \end_layout
25179
25180 \end_inset
25181 </cell>
25182 <cell alignment="left" valignment="top" usebox="none">
25183 \begin_inset Text
25184
25185 \begin_layout Plain Layout
25186 tipa
25187 \end_layout
25188
25189 \end_inset
25190 </cell>
25191 <cell alignment="left" valignment="top" usebox="none">
25192 \begin_inset Text
25193
25194 \begin_layout Plain Layout
25195 url
25196 \end_layout
25197
25198 \end_inset
25199 </cell>
25200 <cell alignment="left" valignment="top" usebox="none">
25201 \begin_inset Text
25202
25203 \begin_layout Plain Layout
25204
25205 \end_layout
25206
25207 \end_inset
25208 </cell>
25209 </row>
25210 <row>
25211 <cell alignment="left" valignment="top" usebox="none">
25212 \begin_inset Text
25213
25214 \begin_layout Plain Layout
25215 mathrsfs
25216 \end_layout
25217
25218 \end_inset
25219 </cell>
25220 <cell alignment="left" valignment="top" usebox="none">
25221 \begin_inset Text
25222
25223 \begin_layout Plain Layout
25224 polyglossia
25225 \end_layout
25226
25227 \end_inset
25228 </cell>
25229 <cell alignment="left" valignment="top" usebox="none">
25230 \begin_inset Text
25231
25232 \begin_layout Plain Layout
25233 subfig
25234 \end_layout
25235
25236 \end_inset
25237 </cell>
25238 <cell alignment="left" valignment="top" usebox="none">
25239 \begin_inset Text
25240
25241 \begin_layout Plain Layout
25242 tipx
25243 \end_layout
25244
25245 \end_inset
25246 </cell>
25247 <cell alignment="left" valignment="top" usebox="none">
25248 \begin_inset Text
25249
25250 \begin_layout Plain Layout
25251
25252 \end_layout
25253
25254 \end_inset
25255 </cell>
25256 <cell alignment="left" valignment="top" usebox="none">
25257 \begin_inset Text
25258
25259 \begin_layout Plain Layout
25260 yhmath
25261 \end_layout
25262
25263 \end_inset
25264 </cell>
25265 </row>
25266 <row>
25267 <cell alignment="left" valignment="top" usebox="none">
25268 \begin_inset Text
25269
25270 \begin_layout Plain Layout
25271 mhchem
25272 \end_layout
25273
25274 \end_inset
25275 </cell>
25276 <cell alignment="left" valignment="top" usebox="none">
25277 \begin_inset Text
25278
25279 \begin_layout Plain Layout
25280 prettyref
25281 \end_layout
25282
25283 \end_inset
25284 </cell>
25285 <cell alignment="left" valignment="top" usebox="none">
25286 \begin_inset Text
25287
25288 \begin_layout Plain Layout
25289 subscript
25290 \end_layout
25291
25292 \end_inset
25293 </cell>
25294 <cell alignment="left" valignment="top" usebox="none">
25295 \begin_inset Text
25296
25297 \begin_layout Plain Layout
25298 tone
25299 \end_layout
25300
25301 \end_inset
25302 </cell>
25303 <cell alignment="left" valignment="top" usebox="none">
25304 \begin_inset Text
25305
25306 \begin_layout Plain Layout
25307 varioref
25308 \end_layout
25309
25310 \end_inset
25311 </cell>
25312 <cell alignment="left" valignment="top" usebox="none">
25313 \begin_inset Text
25314
25315 \begin_layout Plain Layout
25316
25317 \end_layout
25318
25319 \end_inset
25320 </cell>
25321 </row>
25322 <row>
25323 <cell alignment="left" valignment="top" usebox="none">
25324 \begin_inset Text
25325
25326 \begin_layout Plain Layout
25327 multirow
25328 \end_layout
25329
25330 \end_inset
25331 </cell>
25332 <cell alignment="left" valignment="top" usebox="none">
25333 \begin_inset Text
25334
25335 \begin_layout Plain Layout
25336 pxfonts
25337 \end_layout
25338
25339 \end_inset
25340 </cell>
25341 <cell alignment="left" valignment="top" usebox="none">
25342 \begin_inset Text
25343
25344 \begin_layout Plain Layout
25345
25346 \end_layout
25347
25348 \end_inset
25349 </cell>
25350 <cell alignment="left" valignment="top" usebox="none">
25351 \begin_inset Text
25352
25353 \begin_layout Plain Layout
25354 txfonts
25355 \end_layout
25356
25357 \end_inset
25358 </cell>
25359 <cell alignment="left" valignment="top" usebox="none">
25360 \begin_inset Text
25361
25362 \begin_layout Plain Layout
25363 verbatim
25364 \end_layout
25365
25366 \end_inset
25367 </cell>
25368 <cell alignment="left" valignment="top" usebox="none">
25369 \begin_inset Text
25370
25371 \begin_layout Plain Layout
25372
25373 \end_layout
25374
25375 \end_inset
25376 </cell>
25377 </row>
25378 <row>
25379 <cell alignment="left" valignment="top" usebox="none">
25380 \begin_inset Text
25381
25382 \begin_layout Plain Layout
25383
25384 \end_layout
25385
25386 \end_inset
25387 </cell>
25388 <cell alignment="left" valignment="top" usebox="none">
25389 \begin_inset Text
25390
25391 \begin_layout Plain Layout
25392
25393 \end_layout
25394
25395 \end_inset
25396 </cell>
25397 <cell alignment="left" valignment="top" usebox="none">
25398 \begin_inset Text
25399
25400 \begin_layout Plain Layout
25401
25402 \end_layout
25403
25404 \end_inset
25405 </cell>
25406 <cell alignment="left" valignment="top" usebox="none">
25407 \begin_inset Text
25408
25409 \begin_layout Plain Layout
25410
25411 \end_layout
25412
25413 \end_inset
25414 </cell>
25415 <cell alignment="left" valignment="top" usebox="none">
25416 \begin_inset Text
25417
25418 \begin_layout Plain Layout
25419
25420 \end_layout
25421
25422 \end_inset
25423 </cell>
25424 <cell alignment="left" valignment="top" usebox="none">
25425 \begin_inset Text
25426
25427 \begin_layout Plain Layout
25428
25429 \end_layout
25430
25431 \end_inset
25432 </cell>
25433 </row>
25434 <row>
25435 <cell alignment="left" valignment="top" usebox="none">
25436 \begin_inset Text
25437
25438 \begin_layout Plain Layout
25439 natbib
25440 \end_layout
25441
25442 \end_inset
25443 </cell>
25444 <cell alignment="left" valignment="top" usebox="none">
25445 \begin_inset Text
25446
25447 \begin_layout Plain Layout
25448 rotating
25449 \end_layout
25450
25451 \end_inset
25452 </cell>
25453 <cell alignment="left" valignment="top" usebox="none">
25454 \begin_inset Text
25455
25456 \begin_layout Plain Layout
25457
25458 \end_layout
25459
25460 \end_inset
25461 </cell>
25462 <cell alignment="left" valignment="top" usebox="none">
25463 \begin_inset Text
25464
25465 \begin_layout Plain Layout
25466
25467 \end_layout
25468
25469 \end_inset
25470 </cell>
25471 <cell alignment="left" valignment="top" usebox="none">
25472 \begin_inset Text
25473
25474 \begin_layout Plain Layout
25475 wasysym
25476 \end_layout
25477
25478 \end_inset
25479 </cell>
25480 <cell alignment="left" valignment="top" usebox="none">
25481 \begin_inset Text
25482
25483 \begin_layout Plain Layout
25484
25485 \end_layout
25486
25487 \end_inset
25488 </cell>
25489 </row>
25490 <row>
25491 <cell alignment="left" valignment="top" usebox="none">
25492 \begin_inset Text
25493
25494 \begin_layout Plain Layout
25495 nomencl
25496 \end_layout
25497
25498 \end_inset
25499 </cell>
25500 <cell alignment="left" valignment="top" usebox="none">
25501 \begin_inset Text
25502
25503 \begin_layout Plain Layout
25504 rotfloat
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
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
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 wrapfig
25532 \end_layout
25533
25534 \end_inset
25535 </cell>
25536 <cell alignment="left" valignment="top" usebox="none">
25537 \begin_inset Text
25538
25539 \begin_layout Plain Layout
25540
25541 \end_layout
25542
25543 \end_inset
25544 </cell>
25545 </row>
25546 </lyxtabular>
25547
25548 \end_inset
25549
25550
25551 \end_layout
25552
25553 \begin_layout Chapter
25554 List of supported LyX functions to be used in layouts
25555 \end_layout
25556
25557 \begin_layout Standard
25558 \align center
25559 \begin_inset Tabular
25560 <lyxtabular version="3" rows="10" columns="8">
25561 <features rotate="0" tabularvalignment="middle">
25562 <column alignment="left" valignment="top" width="0">
25563 <column alignment="left" valignment="top" width="0">
25564 <column alignment="left" valignment="top" width="0">
25565 <column alignment="left" valignment="top" width="0">
25566 <column alignment="left" valignment="top" width="0">
25567 <column alignment="left" valignment="top" width="0">
25568 <column alignment="left" valignment="top" width="0">
25569 <column alignment="left" valignment="top" width="0">
25570 <row>
25571 <cell alignment="left" valignment="top" usebox="none">
25572 \begin_inset Text
25573
25574 \begin_layout Plain Layout
25575 accents
25576 \end_layout
25577
25578 \end_inset
25579 </cell>
25580 <cell alignment="left" valignment="top" usebox="none">
25581 \begin_inset Text
25582
25583 \begin_layout Plain Layout
25584 bm
25585 \end_layout
25586
25587 \end_inset
25588 </cell>
25589 <cell alignment="left" valignment="top" usebox="none">
25590 \begin_inset Text
25591
25592 \begin_layout Plain Layout
25593 esint
25594 \end_layout
25595
25596 \end_inset
25597 </cell>
25598 <cell alignment="left" valignment="top" usebox="none">
25599 \begin_inset Text
25600
25601 \begin_layout Plain Layout
25602 ifthen
25603 \end_layout
25604
25605 \end_inset
25606 </cell>
25607 <cell alignment="center" valignment="top" usebox="none">
25608 \begin_inset Text
25609
25610 \begin_layout Plain Layout
25611 mathrsfs
25612 \end_layout
25613
25614 \end_inset
25615 </cell>
25616 <cell alignment="center" valignment="top" usebox="none">
25617 \begin_inset Text
25618
25619 \begin_layout Plain Layout
25620 prettyref
25621 \end_layout
25622
25623 \end_inset
25624 </cell>
25625 <cell alignment="center" valignment="top" usebox="none">
25626 \begin_inset Text
25627
25628 \begin_layout Plain Layout
25629 subscript
25630 \end_layout
25631
25632 \end_inset
25633 </cell>
25634 <cell alignment="center" valignment="top" usebox="none">
25635 \begin_inset Text
25636
25637 \begin_layout Plain Layout
25638 units
25639 \end_layout
25640
25641 \end_inset
25642 </cell>
25643 </row>
25644 <row>
25645 <cell alignment="left" valignment="top" usebox="none">
25646 \begin_inset Text
25647
25648 \begin_layout Plain Layout
25649 amsbsy
25650 \end_layout
25651
25652 \end_inset
25653 </cell>
25654 <cell alignment="left" valignment="top" usebox="none">
25655 \begin_inset Text
25656
25657 \begin_layout Plain Layout
25658 booktabs
25659 \end_layout
25660
25661 \end_inset
25662 </cell>
25663 <cell alignment="left" valignment="top" usebox="none">
25664 \begin_inset Text
25665
25666 \begin_layout Plain Layout
25667 fancybox
25668 \end_layout
25669
25670 \end_inset
25671 </cell>
25672 <cell alignment="left" valignment="top" usebox="none">
25673 \begin_inset Text
25674
25675 \begin_layout Plain Layout
25676 jurabib
25677 \end_layout
25678
25679 \end_inset
25680 </cell>
25681 <cell alignment="center" valignment="top" usebox="none">
25682 \begin_inset Text
25683
25684 \begin_layout Plain Layout
25685 mhchem
25686 \end_layout
25687
25688 \end_inset
25689 </cell>
25690 <cell alignment="center" valignment="top" usebox="none">
25691 \begin_inset Text
25692
25693 \begin_layout Plain Layout
25694 pxfonts
25695 \end_layout
25696
25697 \end_inset
25698 </cell>
25699 <cell alignment="center" valignment="top" usebox="none">
25700 \begin_inset Text
25701
25702 \begin_layout Plain Layout
25703 textcomp
25704 \end_layout
25705
25706 \end_inset
25707 </cell>
25708 <cell alignment="center" valignment="top" usebox="none">
25709 \begin_inset Text
25710
25711 \begin_layout Plain Layout
25712 url
25713 \end_layout
25714
25715 \end_inset
25716 </cell>
25717 </row>
25718 <row>
25719 <cell alignment="left" valignment="top" usebox="none">
25720 \begin_inset Text
25721
25722 \begin_layout Plain Layout
25723 amscd
25724 \end_layout
25725
25726 \end_inset
25727 </cell>
25728 <cell alignment="left" valignment="top" usebox="none">
25729 \begin_inset Text
25730
25731 \begin_layout Plain Layout
25732 calc
25733 \end_layout
25734
25735 \end_inset
25736 </cell>
25737 <cell alignment="left" valignment="top" usebox="none">
25738 \begin_inset Text
25739
25740 \begin_layout Plain Layout
25741 feyn
25742 \end_layout
25743
25744 \end_inset
25745 </cell>
25746 <cell alignment="left" valignment="top" usebox="none">
25747 \begin_inset Text
25748
25749 \begin_layout Plain Layout
25750 latexsym
25751 \end_layout
25752
25753 \end_inset
25754 </cell>
25755 <cell alignment="center" valignment="top" usebox="none">
25756 \begin_inset Text
25757
25758 \begin_layout Plain Layout
25759 multirow
25760 \end_layout
25761
25762 \end_inset
25763 </cell>
25764 <cell alignment="center" valignment="top" usebox="none">
25765 \begin_inset Text
25766
25767 \begin_layout Plain Layout
25768 refstyle
25769 \end_layout
25770
25771 \end_inset
25772 </cell>
25773 <cell alignment="center" valignment="top" usebox="none">
25774 \begin_inset Text
25775
25776 \begin_layout Plain Layout
25777 textgreek
25778 \end_layout
25779
25780 \end_inset
25781 </cell>
25782 <cell alignment="center" valignment="top" usebox="none">
25783 \begin_inset Text
25784
25785 \begin_layout Plain Layout
25786 varioref
25787 \end_layout
25788
25789 \end_inset
25790 </cell>
25791 </row>
25792 <row>
25793 <cell alignment="left" valignment="top" usebox="none">
25794 \begin_inset Text
25795
25796 \begin_layout Plain Layout
25797 amsmath
25798 \end_layout
25799
25800 \end_inset
25801 </cell>
25802 <cell alignment="left" valignment="top" usebox="none">
25803 \begin_inset Text
25804
25805 \begin_layout Plain Layout
25806 CJK
25807 \end_layout
25808
25809 \end_inset
25810 </cell>
25811 <cell alignment="left" valignment="top" usebox="none">
25812 \begin_inset Text
25813
25814 \begin_layout Plain Layout
25815 fixltx2e
25816 \end_layout
25817
25818 \end_inset
25819 </cell>
25820 <cell alignment="left" valignment="top" usebox="none">
25821 \begin_inset Text
25822
25823 \begin_layout Plain Layout
25824 listings
25825 \end_layout
25826
25827 \end_inset
25828 </cell>
25829 <cell alignment="center" valignment="top" usebox="none">
25830 \begin_inset Text
25831
25832 \begin_layout Plain Layout
25833 natbib
25834 \end_layout
25835
25836 \end_inset
25837 </cell>
25838 <cell alignment="center" valignment="top" usebox="none">
25839 \begin_inset Text
25840
25841 \begin_layout Plain Layout
25842 rotating
25843 \end_layout
25844
25845 \end_inset
25846 </cell>
25847 <cell alignment="center" valignment="top" usebox="none">
25848 \begin_inset Text
25849
25850 \begin_layout Plain Layout
25851 tfrupee
25852 \end_layout
25853
25854 \end_inset
25855 </cell>
25856 <cell alignment="center" valignment="top" usebox="none">
25857 \begin_inset Text
25858
25859 \begin_layout Plain Layout
25860 verbatim
25861 \end_layout
25862
25863 \end_inset
25864 </cell>
25865 </row>
25866 <row>
25867 <cell alignment="left" valignment="top" usebox="none">
25868 \begin_inset Text
25869
25870 \begin_layout Plain Layout
25871 amssymb
25872 \end_layout
25873
25874 \end_inset
25875 </cell>
25876 <cell alignment="left" valignment="top" usebox="none">
25877 \begin_inset Text
25878
25879 \begin_layout Plain Layout
25880 color
25881 \end_layout
25882
25883 \end_inset
25884 </cell>
25885 <cell alignment="left" valignment="top" usebox="none">
25886 \begin_inset Text
25887
25888 \begin_layout Plain Layout
25889 float
25890 \end_layout
25891
25892 \end_inset
25893 </cell>
25894 <cell alignment="left" valignment="top" usebox="none">
25895 \begin_inset Text
25896
25897 \begin_layout Plain Layout
25898 longtable
25899 \end_layout
25900
25901 \end_inset
25902 </cell>
25903 <cell alignment="center" valignment="top" usebox="none">
25904 \begin_inset Text
25905
25906 \begin_layout Plain Layout
25907 nomencl
25908 \end_layout
25909
25910 \end_inset
25911 </cell>
25912 <cell alignment="center" valignment="top" usebox="none">
25913 \begin_inset Text
25914
25915 \begin_layout Plain Layout
25916 rotfloat
25917 \end_layout
25918
25919 \end_inset
25920 </cell>
25921 <cell alignment="center" valignment="top" usebox="none">
25922 \begin_inset Text
25923
25924 \begin_layout Plain Layout
25925 tipa
25926 \end_layout
25927
25928 \end_inset
25929 </cell>
25930 <cell alignment="center" valignment="top" usebox="none">
25931 \begin_inset Text
25932
25933 \begin_layout Plain Layout
25934 wasysym
25935 \end_layout
25936
25937 \end_inset
25938 </cell>
25939 </row>
25940 <row>
25941 <cell alignment="left" valignment="top" usebox="none">
25942 \begin_inset Text
25943
25944 \begin_layout Plain Layout
25945 amstext
25946 \end_layout
25947
25948 \end_inset
25949 </cell>
25950 <cell alignment="left" valignment="top" usebox="none">
25951 \begin_inset Text
25952
25953 \begin_layout Plain Layout
25954 covington
25955 \end_layout
25956
25957 \end_inset
25958 </cell>
25959 <cell alignment="left" valignment="top" usebox="none">
25960 \begin_inset Text
25961
25962 \begin_layout Plain Layout
25963 framed
25964 \end_layout
25965
25966 \end_inset
25967 </cell>
25968 <cell alignment="left" valignment="top" usebox="none">
25969 \begin_inset Text
25970
25971 \begin_layout Plain Layout
25972 lyxskak
25973 \end_layout
25974
25975 \end_inset
25976 </cell>
25977 <cell alignment="center" valignment="top" usebox="none">
25978 \begin_inset Text
25979
25980 \begin_layout Plain Layout
25981 pdfcolmk
25982 \end_layout
25983
25984 \end_inset
25985 </cell>
25986 <cell alignment="center" valignment="top" usebox="none">
25987 \begin_inset Text
25988
25989 \begin_layout Plain Layout
25990 setspace
25991 \end_layout
25992
25993 \end_inset
25994 </cell>
25995 <cell alignment="center" valignment="top" usebox="none">
25996 \begin_inset Text
25997
25998 \begin_layout Plain Layout
25999 tipx
26000 \end_layout
26001
26002 \end_inset
26003 </cell>
26004 <cell alignment="center" valignment="top" usebox="none">
26005 \begin_inset Text
26006
26007 \begin_layout Plain Layout
26008 wrapfig
26009 \end_layout
26010
26011 \end_inset
26012 </cell>
26013 </row>
26014 <row>
26015 <cell alignment="left" valignment="top" usebox="none">
26016 \begin_inset Text
26017
26018 \begin_layout Plain Layout
26019 amsthm
26020 \end_layout
26021
26022 \end_inset
26023 </cell>
26024 <cell alignment="left" valignment="top" usebox="none">
26025 \begin_inset Text
26026
26027 \begin_layout Plain Layout
26028 csquotes
26029 \end_layout
26030
26031 \end_inset
26032 </cell>
26033 <cell alignment="left" valignment="top" usebox="none">
26034 \begin_inset Text
26035
26036 \begin_layout Plain Layout
26037 graphicx
26038 \end_layout
26039
26040 \end_inset
26041 </cell>
26042 <cell alignment="left" valignment="top" usebox="none">
26043 \begin_inset Text
26044
26045 \begin_layout Plain Layout
26046 makeidx
26047 \end_layout
26048
26049 \end_inset
26050 </cell>
26051 <cell alignment="center" valignment="top" usebox="none">
26052 \begin_inset Text
26053
26054 \begin_layout Plain Layout
26055 pdfpages
26056 \end_layout
26057
26058 \end_inset
26059 </cell>
26060 <cell alignment="center" valignment="top" usebox="none">
26061 \begin_inset Text
26062
26063 \begin_layout Plain Layout
26064 slashed
26065 \end_layout
26066
26067 \end_inset
26068 </cell>
26069 <cell alignment="center" valignment="top" usebox="none">
26070 \begin_inset Text
26071
26072 \begin_layout Plain Layout
26073 tone
26074 \end_layout
26075
26076 \end_inset
26077 </cell>
26078 <cell alignment="center" valignment="top" usebox="none">
26079 \begin_inset Text
26080
26081 \begin_layout Plain Layout
26082 xargs
26083 \end_layout
26084
26085 \end_inset
26086 </cell>
26087 </row>
26088 <row>
26089 <cell alignment="left" valignment="top" usebox="none">
26090 \begin_inset Text
26091
26092 \begin_layout Plain Layout
26093 array
26094 \end_layout
26095
26096 \end_inset
26097 </cell>
26098 <cell alignment="left" valignment="top" usebox="none">
26099 \begin_inset Text
26100
26101 \begin_layout Plain Layout
26102 dvipost
26103 \end_layout
26104
26105 \end_inset
26106 </cell>
26107 <cell alignment="left" valignment="top" usebox="none">
26108 \begin_inset Text
26109
26110 \begin_layout Plain Layout
26111 hhline
26112 \end_layout
26113
26114 \end_inset
26115 </cell>
26116 <cell alignment="left" valignment="top" usebox="none">
26117 \begin_inset Text
26118
26119 \begin_layout Plain Layout
26120 marvosym
26121 \end_layout
26122
26123 \end_inset
26124 </cell>
26125 <cell alignment="center" valignment="top" usebox="none">
26126 \begin_inset Text
26127
26128 \begin_layout Plain Layout
26129 pifont
26130 \end_layout
26131
26132 \end_inset
26133 </cell>
26134 <cell alignment="center" valignment="top" usebox="none">
26135 \begin_inset Text
26136
26137 \begin_layout Plain Layout
26138 soul
26139 \end_layout
26140
26141 \end_inset
26142 </cell>
26143 <cell alignment="center" valignment="top" usebox="none">
26144 \begin_inset Text
26145
26146 \begin_layout Plain Layout
26147 txfonts
26148 \end_layout
26149
26150 \end_inset
26151 </cell>
26152 <cell alignment="center" valignment="top" usebox="none">
26153 \begin_inset Text
26154
26155 \begin_layout Plain Layout
26156 xcolor
26157 \end_layout
26158
26159 \end_inset
26160 </cell>
26161 </row>
26162 <row>
26163 <cell alignment="left" valignment="top" usebox="none">
26164 \begin_inset Text
26165
26166 \begin_layout Plain Layout
26167 ascii
26168 \end_layout
26169
26170 \end_inset
26171 </cell>
26172 <cell alignment="left" valignment="top" usebox="none">
26173 \begin_inset Text
26174
26175 \begin_layout Plain Layout
26176 endnotes
26177 \end_layout
26178
26179 \end_inset
26180 </cell>
26181 <cell alignment="left" valignment="top" usebox="none">
26182 \begin_inset Text
26183
26184 \begin_layout Plain Layout
26185 hyperref
26186 \end_layout
26187
26188 \end_inset
26189 </cell>
26190 <cell alignment="left" valignment="top" usebox="none">
26191 \begin_inset Text
26192
26193 \begin_layout Plain Layout
26194 mathdesign
26195 \end_layout
26196
26197 \end_inset
26198 </cell>
26199 <cell alignment="center" valignment="top" usebox="none">
26200 \begin_inset Text
26201
26202 \begin_layout Plain Layout
26203 pmboxdraw
26204 \end_layout
26205
26206 \end_inset
26207 </cell>
26208 <cell alignment="center" valignment="top" usebox="none">
26209 \begin_inset Text
26210
26211 \begin_layout Plain Layout
26212 splitidx
26213 \end_layout
26214
26215 \end_inset
26216 </cell>
26217 <cell alignment="center" valignment="top" usebox="none">
26218 \begin_inset Text
26219
26220 \begin_layout Plain Layout
26221 ulem
26222 \end_layout
26223
26224 \end_inset
26225 </cell>
26226 <cell alignment="center" valignment="top" usebox="none">
26227 \begin_inset Text
26228
26229 \begin_layout Plain Layout
26230 xy
26231 \end_layout
26232
26233 \end_inset
26234 </cell>
26235 </row>
26236 <row>
26237 <cell alignment="left" valignment="top" usebox="none">
26238 \begin_inset Text
26239
26240 \begin_layout Plain Layout
26241 bbding
26242 \end_layout
26243
26244 \end_inset
26245 </cell>
26246 <cell alignment="left" valignment="top" usebox="none">
26247 \begin_inset Text
26248
26249 \begin_layout Plain Layout
26250 enumitem
26251 \end_layout
26252
26253 \end_inset
26254 </cell>
26255 <cell alignment="left" valignment="top" usebox="none">
26256 \begin_inset Text
26257
26258 \begin_layout Plain Layout
26259 ifsym
26260 \end_layout
26261
26262 \end_inset
26263 </cell>
26264 <cell alignment="left" valignment="top" usebox="none">
26265 \begin_inset Text
26266
26267 \begin_layout Plain Layout
26268 mathdots
26269 \end_layout
26270
26271 \end_inset
26272 </cell>
26273 <cell alignment="center" valignment="top" usebox="none">
26274 \begin_inset Text
26275
26276 \begin_layout Plain Layout
26277 polyglossia
26278 \end_layout
26279
26280 \end_inset
26281 </cell>
26282 <cell alignment="center" valignment="top" usebox="none">
26283 \begin_inset Text
26284
26285 \begin_layout Plain Layout
26286 subfig
26287 \end_layout
26288
26289 \end_inset
26290 </cell>
26291 <cell alignment="center" valignment="top" usebox="none">
26292 \begin_inset Text
26293
26294 \begin_layout Plain Layout
26295 undertilde
26296 \end_layout
26297
26298 \end_inset
26299 </cell>
26300 <cell alignment="center" valignment="top" usebox="none">
26301 \begin_inset Text
26302
26303 \begin_layout Plain Layout
26304 yhmath
26305 \end_layout
26306
26307 \end_inset
26308 </cell>
26309 </row>
26310 </lyxtabular>
26311
26312 \end_inset
26313
26314
26315 \end_layout
26316
26317 \begin_layout Standard
26318 accents amsbsy amscd amsmath amssymb amstext amsthm array ascii bbding bm
26319  booktabs calc CJK color covington csquotes dvipost endnotes enumitem esint
26320  fancybox feyn fixltx2e float framed graphicx hhline hyperref ifsym ifthen
26321  jurabib latexsym listings longtable lyxskak makeidx marvosym mathdesign
26322  mathdots mathrsfs mhchem multirow natbib nomencl pdfcolmk pdfpages pifont
26323  pmboxdraw polyglossia prettyref pxfonts refstyle rotating rotfloat setspace
26324  slashed soul splitidx subfig subscript textcomp textgreek tfrupee tipa
26325  tipx tone txfonts ulem undertilde units url varioref verbatim wasysym wrapfig
26326  xargs xcolor xy yhmath 
26327 \end_layout
26328
26329 \begin_layout Chapter
26330 Names of available colors to be used in layouts
26331 \begin_inset CommandInset label
26332 LatexCommand label
26333 name "chap:Names-of-colors"
26334
26335 \end_inset
26336
26337
26338 \end_layout
26339
26340 \begin_layout Standard
26341 The colors listed here are the standard colors and the those that you can
26342  adjust in the LyX preferences.
26343 \end_layout
26344
26345 \begin_layout Description
26346 none
26347 \family roman
26348 \series medium
26349 \shape up
26350 \size normal
26351 \emph off
26352 \bar no
26353 \strikeout off
26354 \uuline off
26355 \uwave off
26356 \noun off
26357 \color none
26358  No particular color -- clear or default
26359 \end_layout
26360
26361 \begin_layout Description
26362 black
26363 \end_layout
26364
26365 \begin_layout Description
26366 white
26367 \end_layout
26368
26369 \begin_layout Description
26370 red
26371 \end_layout
26372
26373 \begin_layout Description
26374 green
26375 \end_layout
26376
26377 \begin_layout Description
26378 blue
26379 \end_layout
26380
26381 \begin_layout Description
26382 cyan
26383 \end_layout
26384
26385 \begin_layout Description
26386 magenta
26387 \end_layout
26388
26389 \begin_layout Description
26390 yellow
26391 \end_layout
26392
26393 \begin_layout Description
26394 cursor Cursor color
26395 \end_layout
26396
26397 \begin_layout Description
26398 background Background color
26399 \end_layout
26400
26401 \begin_layout Description
26402 foreground Foreground color
26403 \end_layout
26404
26405 \begin_layout Description
26406 selection Background color of selected text
26407 \end_layout
26408
26409 \begin_layout Description
26410 selectiontext Foreground color of selected text
26411 \end_layout
26412
26413 \begin_layout Description
26414 latex Text color in LaTeX mode 
26415 \end_layout
26416
26417 \begin_layout Description
26418 preview The color used for previews
26419 \end_layout
26420
26421 \begin_layout Description
26422 inlinecompletion Inline completion color 
26423 \end_layout
26424
26425 \begin_layout Description
26426 nonunique_inlinecompletion Inline completion color for the non-unique part
26427 \end_layout
26428
26429 \begin_layout Description
26430 notelabel Label color for notes
26431 \end_layout
26432
26433 \begin_layout Description
26434 notebg Background color of notes
26435 \end_layout
26436
26437 \begin_layout Description
26438 commentlabel Label color for comments
26439 \end_layout
26440
26441 \begin_layout Description
26442 commentbg Background color of comments
26443 \end_layout
26444
26445 \begin_layout Description
26446 greyedoutlabel Label color for greyedout insets
26447 \end_layout
26448
26449 \begin_layout Description
26450 greyedouttext Color for greyedout inset text
26451 \end_layout
26452
26453 \begin_layout Description
26454 greyedoutbg Background color of greyedout inset
26455 \end_layout
26456
26457 \begin_layout Description
26458 shadedbg Background color of shaded box
26459 \end_layout
26460
26461 \begin_layout Description
26462 listingsbg Background color of listings inset
26463 \end_layout
26464
26465 \begin_layout Description
26466 branchlabel Label color for branches
26467 \end_layout
26468
26469 \begin_layout Description
26470 footlabel Label color for footnotes
26471 \end_layout
26472
26473 \begin_layout Description
26474 indexlabel Label color for index insets 
26475 \end_layout
26476
26477 \begin_layout Description
26478 marginlabel Label color for margin notes 
26479 \end_layout
26480
26481 \begin_layout Description
26482 phantomtext Text color for phantom insets 
26483 \end_layout
26484
26485 \begin_layout Description
26486 urllabel Label color for URL insets
26487 \end_layout
26488
26489 \begin_layout Description
26490 urltext Color for URL inset text
26491 \end_layout
26492
26493 \begin_layout Description
26494 depthbar Color for the depth bars in the margin
26495 \end_layout
26496
26497 \begin_layout Description
26498 language Color for marking foreign language words
26499 \end_layout
26500
26501 \begin_layout Description
26502 command Text color for command insets
26503 \end_layout
26504
26505 \begin_layout Description
26506 commandbg Background color for command insets 
26507 \end_layout
26508
26509 \begin_layout Description
26510 commandframe Frame color for command insets
26511 \end_layout
26512
26513 \begin_layout Description
26514 special Special chars text color
26515 \end_layout
26516
26517 \begin_layout Description
26518 graphicsbg Graphics inset background color 
26519 \end_layout
26520
26521 \begin_layout Description
26522 math Math inset text color 
26523 \end_layout
26524
26525 \begin_layout Description
26526 mathbg Math inset background color
26527 \end_layout
26528
26529 \begin_layout Description
26530 mathmacrobg Macro math inset background color
26531 \end_layout
26532
26533 \begin_layout Description
26534 mathmacrohoverbg Macro math inset background color hovered
26535 \end_layout
26536
26537 \begin_layout Description
26538 mathmacrolabel Macro math label color
26539 \end_layout
26540
26541 \begin_layout Description
26542 mathmacroframe Macro math frame color
26543 \end_layout
26544
26545 \begin_layout Description
26546 mathmacroblend Macro math blended color
26547 \end_layout
26548
26549 \begin_layout Description
26550 mathmacrooldarg Macro template color for old parameters 
26551 \end_layout
26552
26553 \begin_layout Description
26554 mathmacronewarg Macro template color for new parameters
26555 \end_layout
26556
26557 \begin_layout Description
26558 mathframe Math inset frame color under focus 
26559 \end_layout
26560
26561 \begin_layout Description
26562 mathcorners Math inset frame color not under focus
26563 \end_layout
26564
26565 \begin_layout Description
26566 mathline Math line color
26567 \end_layout
26568
26569 \begin_layout Description
26570 collapsable Collapsable insets text 
26571 \end_layout
26572
26573 \begin_layout Description
26574 collapsableframe Collapsable insets frame
26575 \end_layout
26576
26577 \begin_layout Description
26578 insetbg Inset marker background color
26579 \end_layout
26580
26581 \begin_layout Description
26582 insetframe Inset marker frame color
26583 \end_layout
26584
26585 \begin_layout Description
26586 error Error box text color
26587 \end_layout
26588
26589 \begin_layout Description
26590 eolmarker End of line marker color
26591 \end_layout
26592
26593 \begin_layout Description
26594 added_space Added space colour
26595 \end_layout
26596
26597 \begin_layout Description
26598 appendix Appendix marker color
26599 \end_layout
26600
26601 \begin_layout Description
26602 changebar Changebar color
26603 \end_layout
26604
26605 \begin_layout Description
26606 deletedtext Deleted text color
26607 \end_layout
26608
26609 \begin_layout Description
26610 addedtext Added text color
26611 \end_layout
26612
26613 \begin_layout Description
26614 changedtextauthor1 Changed text color author 1
26615 \end_layout
26616
26617 \begin_layout Description
26618 changedtextauthor2 Changed text color author 2
26619 \end_layout
26620
26621 \begin_layout Description
26622 changedtextauthor3 Changed text color author 3
26623 \end_layout
26624
26625 \begin_layout Description
26626 changedtextauthor4 Changed text color author 4
26627 \end_layout
26628
26629 \begin_layout Description
26630 changedtextauthor5 Changed text color author 5
26631 \end_layout
26632
26633 \begin_layout Description
26634 deletedtextmodifier Deleted text modifying color
26635 \end_layout
26636
26637 \begin_layout Description
26638 tabularline Table line color
26639 \end_layout
26640
26641 \begin_layout Description
26642 tabularonoffline Table line color 
26643 \end_layout
26644
26645 \begin_layout Description
26646 bottomarea Bottom area color
26647 \end_layout
26648
26649 \begin_layout Description
26650 newpage New page color 
26651 \end_layout
26652
26653 \begin_layout Description
26654 pagebreak Page break color
26655 \end_layout
26656
26657 \begin_layout Description
26658 buttonframe Color used for button frame
26659 \end_layout
26660
26661 \begin_layout Description
26662 buttonbg Color used for bottom background
26663 \end_layout
26664
26665 \begin_layout Description
26666 buttonhoverbg Color used for buttom under focus 
26667 \end_layout
26668
26669 \begin_layout Description
26670 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
26671  
26672 \end_layout
26673
26674 \begin_layout Description
26675 previewframe Preview frame color
26676 \end_layout
26677
26678 \begin_layout Description
26679 inherit Color is inherited 
26680 \end_layout
26681
26682 \begin_layout Description
26683 regexpframe Color for regexp frame
26684 \end_layout
26685
26686 \begin_layout Description
26687 ignore For ignoring updates of a color
26688 \end_layout
26689
26690 \end_body
26691 \end_document