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