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