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