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