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