]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Add entries for Hazard and Precautionary Statements, Risk and Safety Statements and...
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 612
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 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 no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
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_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7 #0a0518
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \change_bars false
134 \postpone_fragile_content false
135 \html_math_output 0
136 \html_css_as_file 0
137 \html_be_strict true
138 \docbook_table_output 0
139 \docbook_mathml_prefix 1
140 \author -970929547 "Thibaut Cuvelier"
141 \author -712698321 "Jürgen Spitzmüller"
142 \author -584632292 "Richard Kimberly Heck"
143 \author -495245474 "Jean-Marc Lasgouttes"
144 \author 177693 "x"
145 \author 5863208 "ab"
146 \author 34634807 "Jean-Pierre"
147 \author 232239728 "Owner"
148 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
149 \author 1075283030 "Thibaut"
150 \end_header
151
152 \begin_body
153
154 \begin_layout Title
155 Customizing \SpecialChar LyX
156 :
157  Features for the Advanced User
158 \end_layout
159
160 \begin_layout Author
161 by the \SpecialChar LyX
162  Team
163 \begin_inset Foot
164 status collapsed
165
166 \begin_layout Plain Layout
167 If you have comments or error corrections,
168  please send them to the \SpecialChar LyX
169  Documentation mailing list,
170  
171 \begin_inset CommandInset href
172 LatexCommand href
173 target "lyx-docs@lists.lyx.org"
174 type "mailto:"
175 literal "false"
176
177 \end_inset
178
179 .
180  Include 
181 \begin_inset Quotes eld
182 \end_inset
183
184 [Customization]
185 \begin_inset Quotes erd
186 \end_inset
187
188  in the subject header,
189  and please cc the current maintainer of this file,
190  Richard 
191 \change_inserted 5863208 1604930692
192 Kimberly 
193 \change_unchanged
194 Heck <
195 \change_inserted 5863208 1604930729
196 rikiheck@lyx.org
197 \change_deleted 5863208 1604930668
198 rikiheck@lyx.org
199 \change_unchanged
200 >.
201 \end_layout
202
203 \end_inset
204
205
206 \begin_inset Newline newline
207 \end_inset
208
209
210 \begin_inset Newline newline
211 \end_inset
212
213 Version 2.4.x
214 \end_layout
215
216 \begin_layout Standard
217 \begin_inset CommandInset toc
218 LatexCommand tableofcontents
219
220 \end_inset
221
222
223 \end_layout
224
225 \begin_layout Standard
226 \begin_inset Note Note
227 status open
228
229 \begin_layout Plain Layout
230 Please use change tracking when modifying this document.
231  This makes it easier for our translators to recognize things that have been changed,
232  and it helps the maintainer keep up-to-date with what's been done.
233 \end_layout
234
235 \end_inset
236
237
238 \end_layout
239
240 \begin_layout Chapter
241 Introduction
242 \end_layout
243
244 \begin_layout Standard
245 This manual covers the customization features present in \SpecialChar LyX
246 .
247  In it,
248  we discuss issues like keyboard shortcuts,
249  screen previewing options,
250  printer options,
251  sending commands to \SpecialChar LyX
252  via the \SpecialChar LyX
253  Server,
254  internationalization,
255  installing new \SpecialChar LaTeX
256  classes and \SpecialChar LyX
257  layouts,
258  etc.
259  We can't possibly hope to touch on everything you can change—
260 our developers add new features faster than we can document them—
261 but we will explain the most common customizations and hopefully point you in the right direction for some of the more obscure ones.
262 \end_layout
263
264 \begin_layout Standard
265 \begin_inset Branch OutDated
266 inverted 0
267 status collapsed
268
269 \begin_layout Standard
270 Information from previous versions of this document that now seems to be outdated is contained in the OutDated branch of this document.
271  By default,
272  this information will not appear in the \SpecialChar LaTeX
273  output.
274 \end_layout
275
276 \end_inset
277
278
279 \end_layout
280
281 \begin_layout Chapter
282 \SpecialChar LyX
283  configuration files
284 \end_layout
285
286 \begin_layout Standard
287 This chapter aims to help you to find your way through the \SpecialChar LyX
288  configuration files.
289  Before continuing to read this chapter,
290  you should find out where your \SpecialChar LyX
291  library and user directories are by using 
292 \begin_inset Flex Noun
293 status collapsed
294
295 \begin_layout Plain Layout
296 Help\SpecialChar menuseparator
297 About
298 \begin_inset space ~
299 \end_inset
300
301 LyX
302 \end_layout
303
304 \end_inset
305
306 .
307  The library directory is the place where \SpecialChar LyX
308  places its system-wide configuration files;
309  the user directory is where you can place your modified versions.
310  We will call the former 
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 the latter 
321 \begin_inset Flex Noun
322 status collapsed
323
324 \begin_layout Plain Layout
325 UserDir
326 \end_layout
327
328 \end_inset
329
330  in the remainder of this document.
331  
332 \end_layout
333
334 \begin_layout Section
335 What's in 
336 \begin_inset Flex Code
337 status collapsed
338
339 \begin_layout Plain Layout
340 LyXDir
341 \end_layout
342
343 \end_inset
344
345 ?
346 \end_layout
347
348 \begin_layout Standard
349 \begin_inset Flex Code
350 status collapsed
351
352 \begin_layout Plain Layout
353 LyXDir
354 \end_layout
355
356 \end_inset
357
358  and its sub-directories contain a number of files 
359 \change_deleted 232239728 1604787780
360 and
361 \change_unchanged
362  that can be used to customize \SpecialChar LyX
363 's behavior.
364  You can change many of these files from within \SpecialChar LyX
365  itself through the 
366 \begin_inset Flex Noun
367 status collapsed
368
369 \begin_layout Plain Layout
370 Tools\SpecialChar menuseparator
371 Preferences
372 \end_layout
373
374 \end_inset
375
376  dialog.
377  Most customization that you will want to do in \SpecialChar LyX
378  is possible through this dialog.
379  However,
380  many other inner aspects of \SpecialChar LyX
381  can be customized by modifying the files in 
382 \begin_inset Flex Code
383 status collapsed
384
385 \begin_layout Plain Layout
386 LyXDir
387 \end_layout
388
389 \end_inset
390
391 .
392  These files fall in different categories,
393  described in the following subsections.
394 \end_layout
395
396 \begin_layout Subsection
397 Automatically generated files
398 \end_layout
399
400 \begin_layout Standard
401 The files found in 
402 \begin_inset Flex Noun
403 status collapsed
404
405 \begin_layout Plain Layout
406 UserDir
407 \end_layout
408
409 \end_inset
410
411  are generated when you configure \SpecialChar LyX
412 .
413  They contain various default values that are 
414 \change_inserted 5863208 1604919565
415 automatically detected during reconfiguration.
416 \change_deleted 232239728 1604788241
417 guessed by inspection
418 \change_unchanged
419  In general,
420  it is not a good idea to modify them,
421  since they might be overwritten at any time.
422 \end_layout
423
424 \begin_layout Labeling
425 \labelwidthstring 00.00.0000
426 \begin_inset Flex Code
427 status collapsed
428
429 \begin_layout Plain Layout
430 lyxrc.defaults
431 \end_layout
432
433 \end_inset
434
435  
436 \change_deleted 5863208 1604919950
437
438 \begin_inset Note Note
439 status collapsed
440
441 \begin_layout Plain Layout
442
443 \change_inserted 232239728 1604853928
444 I capitalized the first word in all of these lists.
445  To me it looks better but it really is a stylistic thing,
446  your call.
447  However if you are not going to capitalize them,
448  the english in some needs to be modified to make it read correctly as a sentence.
449 \change_unchanged
450
451 \end_layout
452
453 \end_inset
454
455
456 \change_deleted 232239728 1604853510
457 c
458 \change_inserted 232239728 1604853510
459 C
460 \change_unchanged
461 ontains defaults for various commands.
462 \end_layout
463
464 \begin_layout Labeling
465 \labelwidthstring 00.00.0000
466 \begin_inset Flex Code
467 status collapsed
468
469 \begin_layout Plain Layout
470 packages.lst
471 \end_layout
472
473 \end_inset
474
475  
476 \change_deleted 232239728 1604853512
477 c
478 \change_inserted 232239728 1604853512
479 C
480 \change_unchanged
481 ontains the list of packages that have been recognized by \SpecialChar LyX
482 .
483  It is currently unused by the \SpecialChar LyX
484  program itself,
485  but the information extracted,
486  and more,
487  is made available with 
488 \begin_inset Flex Noun
489 status collapsed
490
491 \begin_layout Plain Layout
492 Help\SpecialChar menuseparator
493 \SpecialChar LaTeX
494
495 \begin_inset space ~
496 \end_inset
497
498 Configuration
499 \end_layout
500
501 \end_inset
502
503 .
504 \end_layout
505
506 \begin_layout Labeling
507 \labelwidthstring 00.00.0000
508 \begin_inset Flex Code
509 status collapsed
510
511 \begin_layout Plain Layout
512 textclass.lst
513 \end_layout
514
515 \end_inset
516
517  
518 \change_deleted 232239728 1604853515
519 t
520 \change_inserted 232239728 1604853515
521 T
522 \change_unchanged
523 he list of text classes that have been found in your 
524 \begin_inset Flex Code
525 status collapsed
526
527 \begin_layout Plain Layout
528 layout/
529 \end_layout
530
531 \end_inset
532
533  directories,
534  along with the associated \SpecialChar LaTeX
535  document class and their description.
536 \end_layout
537
538 \begin_layout Labeling
539 \labelwidthstring 00.00.0000
540 \begin_inset Flex Code
541 status collapsed
542
543 \begin_layout Plain Layout
544 lyxmodules.lst
545 \end_layout
546
547 \end_inset
548
549  
550 \change_deleted 232239728 1604853518
551 t
552 \change_inserted 232239728 1604853518
553 T
554 \change_unchanged
555 he list of layout modules found in your 
556 \begin_inset Flex Code
557 status collapsed
558
559 \begin_layout Plain Layout
560 layout/
561 \end_layout
562
563 \end_inset
564
565  directories
566 \end_layout
567
568 \begin_layout Labeling
569 \labelwidthstring 00.00.0000
570 \begin_inset Flex Code
571 status open
572
573 \begin_layout Plain Layout
574 *files.lst
575 \end_layout
576
577 \end_inset
578
579  
580 \change_deleted 232239728 1604853523
581 l
582 \change_inserted 232239728 1604853523
583 L
584 \change_unchanged
585 ists of various sorts of \SpecialChar LaTeX
586 -related files found on your system
587 \end_layout
588
589 \begin_layout Labeling
590 \labelwidthstring 00.00.0000
591 \begin_inset Flex Code
592 status open
593
594 \begin_layout Plain Layout
595 doc/\SpecialChar LaTeX
596 Config.lyx
597 \end_layout
598
599 \end_inset
600
601  is automatically generated during configuration from the file 
602 \begin_inset Flex Code
603 status collapsed
604
605 \begin_layout Plain Layout
606 \SpecialChar LaTeX
607 Config.lyx.in
608 \end_layout
609
610 \end_inset
611
612 .
613  It contains information on your \SpecialChar LaTeX
614  configuration.
615 \end_layout
616
617 \begin_layout Subsection
618 Directories
619 \end_layout
620
621 \begin_layout Standard
622 The
623 \change_deleted 5863208 1604928729
624 se
625 \change_unchanged
626  
627 \change_inserted 5863208 1604928636
628 following 
629 \change_unchanged
630 directories 
631 \change_inserted 5863208 1604928661
632 in 
633 \change_unchanged
634
635 \begin_inset Flex Code
636 status collapsed
637
638 \begin_layout Plain Layout
639 LyXDir
640 \end_layout
641
642 \end_inset
643
644
645 \change_inserted 5863208 1604928662
646  can be
647 \change_deleted 5863208 1604928642
648 are
649 \change_unchanged
650  duplicated 
651 \change_deleted 5863208 1604928669
652 between 
653 \begin_inset Flex Code
654 status collapsed
655
656 \begin_layout Plain Layout
657 LyXDir
658 \end_layout
659
660 \end_inset
661
662  and
663 \change_inserted 5863208 1604928680
664 in
665 \change_unchanged
666  
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 UserDir
672 \end_layout
673
674 \end_inset
675
676 .
677  If a particular file
678 \change_deleted 232239728 1604794430
679 s
680 \change_unchanged
681  exists in both places,
682  the one in 
683 \begin_inset Flex Code
684 status collapsed
685
686 \begin_layout Plain Layout
687 UserDir
688 \end_layout
689
690 \end_inset
691
692  will be used.
693 \end_layout
694
695 \begin_layout Labeling
696 \labelwidthstring 00.00.0000
697 \begin_inset Flex Code
698 status collapsed
699
700 \begin_layout Plain Layout
701 bind/
702 \end_layout
703
704 \end_inset
705
706  
707 \change_deleted 232239728 1604794460
708 t
709 \change_inserted 232239728 1604794460
710 T
711 \change_unchanged
712 his directory contains files with the extension 
713 \begin_inset Flex Code
714 status collapsed
715
716 \begin_layout Plain Layout
717 .bind
718 \end_layout
719
720 \end_inset
721
722  that define the keybindings used in \SpecialChar LyX
723 .
724  If there exists an internationalized version of the bind file 
725 \change_inserted -712698321 1669371749
726 in a subdirectory 
727 \change_deleted -712698321 1669371727
728 named 
729 \begin_inset Flex Code
730 status collapsed
731
732 \begin_layout Plain Layout
733 $LANG_xxx.bind
734 \end_layout
735
736 \end_inset
737
738
739 \change_inserted -712698321 1669371728
740
741 \begin_inset Flex Code
742 status collapsed
743
744 \begin_layout Plain Layout
745
746 \change_inserted -712698321 1669371732
747 bind/xx
748 \change_unchanged
749
750 \end_layout
751
752 \end_inset
753
754  where 
755 \begin_inset Quotes eld
756 \end_inset
757
758 xx
759 \begin_inset Quotes erd
760 \end_inset
761
762  is the ISO language code
763 \change_unchanged
764 ,
765  that will be used first.
766 \end_layout
767
768 \begin_layout Labeling
769 \labelwidthstring 00.00.0000
770 \begin_inset Flex Code
771 status collapsed
772
773 \begin_layout Plain Layout
774 citeengines/
775 \end_layout
776
777 \end_inset
778
779  
780 \change_deleted 232239728 1604794478
781 c
782 \change_inserted 232239728 1604794478
783 C
784 \change_unchanged
785 ontains files with the extension 
786 \begin_inset Flex Code
787 status collapsed
788
789 \begin_layout Plain Layout
790 .citeengine
791 \end_layout
792
793 \end_inset
794
795  which define the diverse citation possibilities (natbib,
796  biblatex etc.).
797  See 
798 \begin_inset CommandInset ref
799 LatexCommand ref
800 reference "subsec:Cite-Engine-Files"
801 plural "false"
802 caps "false"
803 noprefix "false"
804 nolink "false"
805
806 \end_inset
807
808  for details.
809 \end_layout
810
811 \begin_layout Labeling
812 \labelwidthstring 00.00.0000
813 \begin_inset Flex Code
814 status collapsed
815
816 \begin_layout Plain Layout
817 clipart/
818 \end_layout
819
820 \end_inset
821
822  
823 \change_deleted 232239728 1604794483
824 c
825 \change_inserted 232239728 1604794486
826 C
827 \change_unchanged
828 ontains graphics files that can be included in documents.
829  
830 \end_layout
831
832 \begin_layout Labeling
833 \labelwidthstring 00.00.0000
834 \begin_inset Flex Code
835 status collapsed
836
837 \begin_layout Plain Layout
838 doc/
839 \end_layout
840
841 \end_inset
842
843  
844 \change_deleted 232239728 1604794492
845 c
846 \change_inserted 232239728 1604794492
847 C
848 \change_unchanged
849 ontains \SpecialChar LyX
850  documentation files (including the one you are currently reading).
851  The file 
852 \begin_inset Flex Code
853 status collapsed
854
855 \begin_layout Plain Layout
856
857 \change_deleted 232239728 1604794660
858 \SpecialChar LaTeX
859
860 \change_inserted 232239728 1604794661
861 LaTex
862 \change_unchanged
863 Config.lyx
864 \end_layout
865
866 \end_inset
867
868  deserves special attention,
869  as noted above.
870  The internationalized help docs are in subdirectories 
871 \begin_inset Flex Code
872 status collapsed
873
874 \begin_layout Plain Layout
875 doc/xx
876 \end_layout
877
878 \end_inset
879
880  where 
881 \begin_inset Quotes eld
882 \end_inset
883
884 xx
885 \begin_inset Quotes erd
886 \end_inset
887
888  is the ISO language code.
889  See 
890 \begin_inset CommandInset ref
891 LatexCommand ref
892 reference "cha:Internationalizing-LyX"
893 nolink "false"
894
895 \end_inset
896
897  for details.
898 \end_layout
899
900 \begin_layout Labeling
901 \labelwidthstring 00.00.0000
902 \begin_inset Flex Code
903 status collapsed
904
905 \begin_layout Plain Layout
906 examples/
907 \end_layout
908
909 \end_inset
910
911  
912 \change_deleted 232239728 1604794497
913 c
914 \change_inserted 232239728 1604794497
915 C
916 \change_unchanged
917 ontains example files that explain how to use some features.
918  In the file browser,
919  press the 
920 \begin_inset Flex Noun
921 status collapsed
922
923 \begin_layout Plain Layout
924 Examples
925 \end_layout
926
927 \end_inset
928
929  button to get there.
930 \end_layout
931
932 \begin_layout Labeling
933 \labelwidthstring 00.00.0000
934 \begin_inset Flex Code
935 status collapsed
936
937 \begin_layout Plain Layout
938 images/
939 \end_layout
940
941 \end_inset
942
943  
944 \change_deleted 232239728 1604794500
945 c
946 \change_inserted 232239728 1604794500
947 C
948 \change_unchanged
949 ontains image files that are used by the 
950 \begin_inset Flex Noun
951 status collapsed
952
953 \begin_layout Plain Layout
954 Document
955 \end_layout
956
957 \end_inset
958
959  dialog.
960  In addition,
961  it also contains the individual icons used in the toolbar and the banners that can be shown when \SpecialChar LyX
962  is launched.
963 \end_layout
964
965 \begin_layout Labeling
966 \labelwidthstring 00.00.0000
967 \begin_inset Flex Code
968 status collapsed
969
970 \begin_layout Plain Layout
971 kbd/
972 \end_layout
973
974 \end_inset
975
976  
977 \change_deleted 232239728 1604794505
978 c
979 \change_inserted 232239728 1604794505
980 C
981 \change_unchanged
982 ontains keyboard keymapping files.
983  See 
984 \begin_inset CommandInset ref
985 LatexCommand ref
986 reference "sec:International-Keymap-Stuff"
987 nolink "false"
988
989 \end_inset
990
991  for details.
992 \end_layout
993
994 \begin_layout Labeling
995 \labelwidthstring 00.00.0000
996 \begin_inset Flex Code
997 status collapsed
998
999 \begin_layout Plain Layout
1000 layouts/
1001 \end_layout
1002
1003 \end_inset
1004
1005  
1006 \change_deleted 232239728 1604794508
1007 c
1008 \change_inserted 232239728 1604794508
1009 C
1010 \change_unchanged
1011 ontains the text class and module files described in 
1012 \begin_inset CommandInset ref
1013 LatexCommand ref
1014 reference "cha:Installing-New-Document"
1015 nolink "false"
1016
1017 \end_inset
1018
1019 .
1020 \end_layout
1021
1022 \begin_layout Labeling
1023 \labelwidthstring 00.00.0000
1024 \begin_inset Flex Code
1025 status collapsed
1026
1027 \begin_layout Plain Layout
1028 lyx2lyx
1029 \end_layout
1030
1031 \end_inset
1032
1033  
1034 \change_deleted 232239728 1604794513
1035 c
1036 \change_inserted 232239728 1604794513
1037 C
1038 \change_unchanged
1039 ontains the 
1040 \begin_inset Flex Code
1041 status collapsed
1042
1043 \begin_layout Plain Layout
1044 lyx2lyx
1045 \end_layout
1046
1047 \end_inset
1048
1049  Python scripts used to convert between \SpecialChar LyX
1050  versions.
1051  These can be run from the command line if
1052 \change_deleted 232239728 1604794749
1053 ,
1054  say,
1055
1056 \change_unchanged
1057  you want to batch-convert files.
1058 \end_layout
1059
1060 \begin_layout Labeling
1061 \labelwidthstring 00.00.0000
1062 \begin_inset Flex Code
1063 status collapsed
1064
1065 \begin_layout Plain Layout
1066 scripts/
1067 \end_layout
1068
1069 \end_inset
1070
1071  
1072 \change_deleted 232239728 1604794516
1073 c
1074 \change_inserted 232239728 1604794516
1075 C
1076 \change_unchanged
1077 ontains some files that demonstrate the capabilities of the 
1078 \begin_inset Flex Noun
1079 status collapsed
1080
1081 \begin_layout Plain Layout
1082 External
1083 \begin_inset space ~
1084 \end_inset
1085
1086 Template
1087 \end_layout
1088
1089 \end_inset
1090
1091  feature.
1092  Also contains some scripts used by \SpecialChar LyX
1093  itself.
1094 \end_layout
1095
1096 \begin_layout Labeling
1097 \labelwidthstring 00.00.0000
1098 \begin_inset Flex Code
1099 status collapsed
1100
1101 \begin_layout Plain Layout
1102 templates/
1103 \end_layout
1104
1105 \end_inset
1106
1107  
1108 \change_deleted 232239728 1604794520
1109 c
1110 \change_inserted 232239728 1604794520
1111 C
1112 \change_unchanged
1113 ontains the standard \SpecialChar LyX
1114  template files described in 
1115 \begin_inset CommandInset ref
1116 LatexCommand ref
1117 reference "subsec:Creating-Templates"
1118 nolink "false"
1119
1120 \end_inset
1121
1122 .
1123 \end_layout
1124
1125 \begin_layout Labeling
1126 \labelwidthstring 00.00.0000
1127 \begin_inset Flex Code
1128 status collapsed
1129
1130 \begin_layout Plain Layout
1131 ui/
1132 \end_layout
1133
1134 \end_inset
1135
1136  
1137 \change_deleted 232239728 1604794524
1138 c
1139 \change_inserted 232239728 1604794524
1140 C
1141 \change_unchanged
1142 ontains files with the extension 
1143 \begin_inset Flex Code
1144 status collapsed
1145
1146 \begin_layout Plain Layout
1147 .ui
1148 \end_layout
1149
1150 \end_inset
1151
1152  that define the user interface to \SpecialChar LyX
1153 .
1154  That is,
1155  the files define which items appear in which menus and the items appearing on the toolbar.
1156 \end_layout
1157
1158 \begin_layout Labeling
1159 \labelwidthstring 00.00.0000
1160 \begin_inset Flex Code
1161 status collapsed
1162
1163 \begin_layout Plain Layout
1164 xtemplates/
1165 \end_layout
1166
1167 \end_inset
1168
1169  
1170 \change_deleted 232239728 1604794528
1171 c
1172 \change_inserted 232239728 1604794528
1173 C
1174 \change_unchanged
1175 ontains files with the extension 
1176 \begin_inset Flex Code
1177 status collapsed
1178
1179 \begin_layout Plain Layout
1180 .xtemplate
1181 \end_layout
1182
1183 \end_inset
1184
1185  which define the templates for the insertion of external material to a \SpecialChar LyX
1186  document;
1187  see 
1188 \begin_inset CommandInset ref
1189 LatexCommand ref
1190 reference "chap:Including-External-Material"
1191 nolink "false"
1192
1193 \end_inset
1194
1195 .
1196 \end_layout
1197
1198 \begin_layout Subsection
1199 Files you don't want to modify
1200 \end_layout
1201
1202 \begin_layout Standard
1203 These files are used internally by \SpecialChar LyX
1204  and you generally do not need to modify them unless you are a developer.
1205 \end_layout
1206
1207 \begin_layout Labeling
1208 \labelwidthstring 00.00.0000
1209 \begin_inset Flex Code
1210 status collapsed
1211
1212 \begin_layout Plain Layout
1213 CREDITS
1214 \end_layout
1215
1216 \end_inset
1217
1218  
1219 \change_deleted 232239728 1604797616
1220 t
1221 \change_inserted 232239728 1604797616
1222 T
1223 \change_unchanged
1224 his file contains the list of \SpecialChar LyX
1225  developers.
1226  The contents are displayed with the menu entry 
1227 \begin_inset Flex Noun
1228 status collapsed
1229
1230 \begin_layout Plain Layout
1231 Help\SpecialChar menuseparator
1232 About
1233 \begin_inset space ~
1234 \end_inset
1235
1236 LyX
1237 \end_layout
1238
1239 \end_inset
1240
1241 .
1242 \end_layout
1243
1244 \begin_layout Labeling
1245 \labelwidthstring 00.00.0000
1246 \begin_inset Flex Code
1247 status collapsed
1248
1249 \begin_layout Plain Layout
1250 chkconfig.ltx
1251 \end_layout
1252
1253 \end_inset
1254
1255  
1256 \change_deleted 232239728 1604797620
1257 t
1258 \change_inserted 232239728 1604797620
1259 T
1260 \change_unchanged
1261 his is a \SpecialChar LaTeX
1262  script used during the configuration process.
1263  Do not run directly.
1264 \end_layout
1265
1266 \begin_layout Labeling
1267 \labelwidthstring 00.00.0000
1268 \begin_inset Flex Code
1269 status collapsed
1270
1271 \begin_layout Plain Layout
1272 configure.py
1273 \end_layout
1274
1275 \end_inset
1276
1277  
1278 \change_deleted 232239728 1604797624
1279 t
1280 \change_inserted 232239728 1604797624
1281 T
1282 \change_unchanged
1283 his is a Python script that is used to re-configure \SpecialChar LyX
1284 .
1285  It creates configuration files in the directory it was run from.
1286 \end_layout
1287
1288 \begin_layout Subsection
1289 Other files needing a line or two
1290 \end_layout
1291
1292 \begin_layout Labeling
1293 \labelwidthstring 00.00.0000
1294 \begin_inset Flex Code
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 encodings
1299 \end_layout
1300
1301 \end_inset
1302
1303  
1304 \change_deleted 232239728 1604797580
1305 t
1306 \change_inserted 232239728 1604797580
1307 T
1308 \change_unchanged
1309 his contains tables describing how different character encodings can be mapped to Unicode
1310 \end_layout
1311
1312 \begin_layout Labeling
1313 \labelwidthstring 00.00.0000
1314 \begin_inset Flex Code
1315 status collapsed
1316
1317 \begin_layout Plain Layout
1318 languages
1319 \end_layout
1320
1321 \end_inset
1322
1323  
1324 \change_deleted 232239728 1604797584
1325 t
1326 \change_inserted 232239728 1604797584
1327 T
1328 \change_unchanged
1329 his file contains a list of all the languages currently supported by \SpecialChar LyX
1330 .
1331 \end_layout
1332
1333 \begin_layout Labeling
1334 \labelwidthstring 00.00.0000
1335 \begin_inset Flex Code
1336 status collapsed
1337
1338 \begin_layout Plain Layout
1339 latexfonts
1340 \end_layout
1341
1342 \end_inset
1343
1344  
1345 \change_deleted 232239728 1604797587
1346 c
1347 \change_inserted 232239728 1604797587
1348 C
1349 \change_unchanged
1350 ontains information about the supported fonts.
1351 \end_layout
1352
1353 \begin_layout Labeling
1354 \labelwidthstring 00.00.0000
1355 \begin_inset Flex Code
1356 status collapsed
1357
1358 \begin_layout Plain Layout
1359 layouttranslations
1360 \end_layout
1361
1362 \end_inset
1363
1364  
1365 \change_deleted 232239728 1604797591
1366 t
1367 \change_inserted 232239728 1604797591
1368 T
1369 \change_unchanged
1370 his file contains translations for internationalized paragraph styles (see 
1371 \begin_inset CommandInset ref
1372 LatexCommand ref
1373 reference "subsec:I18n"
1374 nolink "false"
1375
1376 \end_inset
1377
1378 ).
1379 \end_layout
1380
1381 \begin_layout Labeling
1382 \labelwidthstring 00.00.0000
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387 unicodesymbols
1388 \end_layout
1389
1390 \end_inset
1391
1392  
1393 \change_deleted 232239728 1604797594
1394 t
1395 \change_inserted 232239728 1604797594
1396 T
1397 \change_unchanged
1398 his file contains information about Unicode-encoded glyphs and the way they are supported by \SpecialChar LyX
1399  via \SpecialChar LaTeX
1400 .
1401 \end_layout
1402
1403 \begin_layout Section
1404 Your local configuration directory
1405 \end_layout
1406
1407 \begin_layout Standard
1408 Even if you are using \SpecialChar LyX
1409  as an unprivileged user,
1410  you might want to change \SpecialChar LyX
1411  configuration for your own use.
1412  The 
1413 \begin_inset Flex Code
1414 status collapsed
1415
1416 \begin_layout Plain Layout
1417 UserDir
1418 \end_layout
1419
1420 \end_inset
1421
1422  directory contains all your personal configuration files.
1423  This is the directory described as 
1424 \begin_inset Quotes eld
1425 \end_inset
1426
1427 user directory
1428 \begin_inset Quotes erd
1429 \end_inset
1430
1431  in 
1432 \begin_inset Flex Noun
1433 status collapsed
1434
1435 \begin_layout Plain Layout
1436 Help\SpecialChar menuseparator
1437 About
1438 \begin_inset space ~
1439 \end_inset
1440
1441 LyX
1442 \end_layout
1443
1444 \end_inset
1445
1446 .
1447  This directory is used as a mirror of 
1448 \begin_inset Flex Code
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 LyXDir
1453 \end_layout
1454
1455 \end_inset
1456
1457 ,
1458  which means that every file in 
1459 \begin_inset Flex Code
1460 status collapsed
1461
1462 \begin_layout Plain Layout
1463 UserDir
1464 \end_layout
1465
1466 \end_inset
1467
1468  is a replacement for the corresponding file in 
1469 \begin_inset Flex Code
1470 status collapsed
1471
1472 \begin_layout Plain Layout
1473 LyXDir
1474 \end_layout
1475
1476 \end_inset
1477
1478 .
1479  Any configuration file described in the above sections can be placed either in the system-wide directory,
1480  in which case it will affect all users,
1481  or in your local directory for your own use.
1482 \end_layout
1483
1484 \begin_layout Standard
1485 To make things clearer,
1486  let's provide a few examples:
1487 \end_layout
1488
1489 \begin_layout Itemize
1490 The preferences set in the 
1491 \begin_inset Flex Noun
1492 status collapsed
1493
1494 \begin_layout Plain Layout
1495 Tools\SpecialChar menuseparator
1496 Preferences
1497 \end_layout
1498
1499 \end_inset
1500
1501  dialog are saved to a file 
1502 \begin_inset Flex Code
1503 status collapsed
1504
1505 \begin_layout Plain Layout
1506 preferences
1507 \end_layout
1508
1509 \end_inset
1510
1511  in 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 UserDir
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522 \end_layout
1523
1524 \begin_layout Itemize
1525 When you reconfigure using 
1526 \begin_inset Flex Noun
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530 Tools\SpecialChar menuseparator
1531 Reconfigure
1532 \end_layout
1533
1534 \end_inset
1535
1536 ,
1537  \SpecialChar LyX
1538  runs the 
1539 \begin_inset Flex Code
1540 status collapsed
1541
1542 \begin_layout Plain Layout
1543 configure.py
1544 \end_layout
1545
1546 \end_inset
1547
1548  script,
1549  and the resulting files are written in your local configuration directory.
1550  This means that any additional text class file that you might have added in 
1551 \begin_inset Flex Code
1552 status collapsed
1553
1554 \begin_layout Plain Layout
1555 UserDir/layouts
1556 \end_layout
1557
1558 \end_inset
1559
1560  will be added to the list of classes in the 
1561 \begin_inset Flex Noun
1562 status collapsed
1563
1564 \begin_layout Plain Layout
1565 Document\SpecialChar menuseparator
1566 Settings
1567 \end_layout
1568
1569 \end_inset
1570
1571  dialog.
1572 \end_layout
1573
1574 \begin_layout Itemize
1575 If you get some updated documentation from
1576 \change_inserted 232239728 1604798171
1577  a
1578 \change_unchanged
1579  \SpecialChar LyX
1580  ftp site and cannot install it because you do not have sysadmin rights on your system,
1581  you can just copy the files 
1582 \change_deleted 232239728 1604798193
1583 in
1584 \change_inserted 232239728 1604798193
1585 to
1586 \change_unchanged
1587  
1588 \begin_inset Flex Code
1589 status collapsed
1590
1591 \begin_layout Plain Layout
1592 UserDir/doc/
1593 \end_layout
1594
1595 \end_inset
1596
1597  and the items in the 
1598 \begin_inset Flex Noun
1599 status collapsed
1600
1601 \begin_layout Plain Layout
1602 Help
1603 \end_layout
1604
1605 \end_inset
1606
1607  menu will open them!
1608 \end_layout
1609
1610 \begin_layout Section
1611 Running \SpecialChar LyX
1612  with multiple configurations
1613 \end_layout
1614
1615 \begin_layout Standard
1616 The configuration freedom of the local configuration directory may not suffice if you want to have more than one configuration at your disposal.
1617  For example,
1618  you may want to 
1619 \change_deleted 232239728 1604798238
1620 be 
1621 \change_unchanged
1622 use different key bindings or printer settings at different times.
1623  You can achieve this by having several such directories.
1624  You then specify which directory to use at run-time.
1625 \end_layout
1626
1627 \begin_layout Standard
1628 Invoking \SpecialChar LyX
1629  with the command line switch 
1630 \begin_inset Flex Code
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 -userdir
1635 \end_layout
1636
1637 \end_inset
1638
1639  
1640 \emph on
1641 <some directory>
1642 \emph default
1643  instructs the program to read the configuration from that directory,
1644  and not from the default directory.
1645  (You can determine the default directory by running \SpecialChar LyX
1646  without the 
1647 \begin_inset Flex Code
1648 status collapsed
1649
1650 \begin_layout Plain Layout
1651 -userdir
1652 \end_layout
1653
1654 \end_inset
1655
1656  switch.) If the specified directory does not exist,
1657  \SpecialChar LyX
1658  offers to create it for you,
1659  just like it does for the default directory 
1660 \change_deleted 232239728 1604798318
1661 on
1662 \change_unchanged
1663  the first time you run the program.
1664  You can modify the configuration options in this additional user directory exactly as you would for the default directory.
1665  These directories are completely independent (but read on).
1666  Note that setting the environment variable 
1667 \begin_inset Flex Code
1668 status collapsed
1669
1670 \begin_layout Plain Layout
1671 LYX_USERDIR_24x
1672 \end_layout
1673
1674 \end_inset
1675
1676  to some value has exactly the same effect.
1677 \end_layout
1678
1679 \begin_layout Standard
1680 Having several configurations also requires more maintenance:
1681  if you want to add a new layout to 
1682 \begin_inset Flex Code
1683 status collapsed
1684
1685 \begin_layout Plain Layout
1686 NewUserDir/layouts
1687 \end_layout
1688
1689 \end_inset
1690
1691  which you want available from all your configurations,
1692  you must add it to each directory separately.
1693  You can avoid this with the following trick:
1694  after \SpecialChar LyX
1695  creates the additional directory,
1696  most of the subdirectories (see above) are empty.
1697  If you want the new configuration to mirror an existing one,
1698  replace the empty subdirectory with a symbolic link to the matching subdirectory in the existing configuration.
1699  Take care with the 
1700 \begin_inset Flex Code
1701 status collapsed
1702
1703 \begin_layout Plain Layout
1704 doc/
1705 \end_layout
1706
1707 \end_inset
1708
1709  subdirectory,
1710  however,
1711  since it contains a file written by the configuration script (also accessible through 
1712 \begin_inset Flex Noun
1713 status collapsed
1714
1715 \begin_layout Plain Layout
1716 Tools\SpecialChar menuseparator
1717 Reconfigure
1718 \end_layout
1719
1720 \end_inset
1721
1722 ) which is configuration
1723 \change_deleted 232239728 1604798083
1724 -
1725 \change_inserted 232239728 1604798100
1726  
1727 \change_unchanged
1728 specific.
1729 \end_layout
1730
1731 \begin_layout Chapter
1732 The Preferences dialog
1733 \end_layout
1734
1735 \begin_layout Standard
1736 All options of the preferences dialog are described in the Appendix 
1737 \emph on
1738 The Preferences Dialog
1739 \emph default
1740  in the 
1741 \emph on
1742 User's Guide
1743 \emph default
1744 .
1745  For some options you might find here more details.
1746 \end_layout
1747
1748 \begin_layout Section
1749 Formats
1750 \begin_inset CommandInset label
1751 LatexCommand label
1752 name "sec:Formats"
1753
1754 \end_inset
1755
1756
1757 \end_layout
1758
1759 \begin_layout Standard
1760 The first step is to define your file formats if they are not already defined.
1761  To do so,
1762  open the 
1763 \begin_inset Flex Noun
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 Tools\SpecialChar menuseparator
1768 Preferences
1769 \end_layout
1770
1771 \end_inset
1772
1773  dialog.
1774  Under 
1775 \begin_inset Flex Noun
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779 File Handling\SpecialChar menuseparator
1780 File formats
1781 \end_layout
1782
1783 \end_inset
1784
1785  press the 
1786 \begin_inset Flex Noun
1787 status collapsed
1788
1789 \begin_layout Plain Layout
1790 New
1791 \end_layout
1792
1793 \end_inset
1794
1795  button to define your new format.
1796  The 
1797 \begin_inset Flex Noun
1798 status collapsed
1799
1800 \begin_layout Plain Layout
1801 Format
1802 \end_layout
1803
1804 \end_inset
1805
1806  field contains the name used to identify the format in the GUI.
1807  The 
1808 \begin_inset Flex Noun
1809 status collapsed
1810
1811 \begin_layout Plain Layout
1812 Short Name
1813 \end_layout
1814
1815 \end_inset
1816
1817  is used to identify the format internally.
1818  You will also need to enter a file extension.
1819  These are all required.
1820  The optional 
1821 \begin_inset Flex Noun
1822 status collapsed
1823
1824 \begin_layout Plain Layout
1825 Shortcut
1826 \end_layout
1827
1828 \end_inset
1829
1830  field is used to provide a keyboard shortcut on the menus.
1831  (For example,
1832  pressing 
1833 \begin_inset Flex Noun
1834 status collapsed
1835
1836 \begin_layout Plain Layout
1837 Ctrl+D
1838 \end_layout
1839
1840 \end_inset
1841
1842  will 
1843 \begin_inset Flex Noun
1844 status collapsed
1845
1846 \begin_layout Plain Layout
1847 Document\SpecialChar menuseparator
1848 View (Other Formats)\SpecialChar menuseparator
1849 DVI
1850 \end_layout
1851
1852 \end_inset
1853
1854 .) 
1855 \end_layout
1856
1857 \begin_layout Standard
1858 A Format can have a 
1859 \begin_inset Flex Noun
1860 status collapsed
1861
1862 \begin_layout Plain Layout
1863 Viewer
1864 \end_layout
1865
1866 \end_inset
1867
1868  and an 
1869 \begin_inset Flex Noun
1870 status collapsed
1871
1872 \begin_layout Plain Layout
1873 Editor
1874 \end_layout
1875
1876 \end_inset
1877
1878  associated with it.
1879  For example,
1880  you might want to use 
1881 \begin_inset Flex Noun
1882 status collapsed
1883
1884 \begin_layout Plain Layout
1885 Ghostview
1886 \end_layout
1887
1888 \end_inset
1889
1890  to view PostScript files.
1891  You can enter the command needed to start the program in the corresponding fields.
1892  In defining this command,
1893  you can use the four variables listed in the next section.
1894  The viewer is launched when you view an image in \SpecialChar LyX
1895  or use the 
1896 \begin_inset Flex Noun
1897 status collapsed
1898
1899 \begin_layout Plain Layout
1900 Document\SpecialChar menuseparator
1901 View
1902 \end_layout
1903
1904 \end_inset
1905
1906  menu.
1907  The editor is for example launched when you right-click on an image and choose 
1908 \begin_inset Flex Noun
1909 status collapsed
1910
1911 \begin_layout Plain Layout
1912 Edit externally
1913 \end_layout
1914
1915 \end_inset
1916
1917  in the appearing context menu.
1918 \end_layout
1919
1920 \begin_layout Standard
1921 The 
1922 \begin_inset Flex Noun
1923 status collapsed
1924
1925 \begin_layout Plain Layout
1926 MIME
1927 \end_layout
1928
1929 \end_inset
1930
1931  type of a format is optional,
1932  but if it is specified,
1933  it must be unique across all formats.
1934  It is used to detect files of this format from the file contents.
1935  For some important file formats there is no MIME type officially registered with the 
1936 \begin_inset CommandInset href
1937 LatexCommand href
1938 name "IANA"
1939 target "http://www.iana.org/assignments/media-types/"
1940 literal "false"
1941
1942 \end_inset
1943
1944 .
1945  Therefore \SpecialChar LyX
1946  uses the extended list of MIME types as specified by 
1947 \begin_inset CommandInset href
1948 LatexCommand href
1949 name "freedesktop.org"
1950 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1951 literal "false"
1952
1953 \end_inset
1954
1955 .
1956 \end_layout
1957
1958 \begin_layout Standard
1959 The 
1960 \begin_inset Flex Noun
1961 status collapsed
1962
1963 \begin_layout Plain Layout
1964 Document format
1965 \end_layout
1966
1967 \end_inset
1968
1969  option tells \SpecialChar LyX
1970  that a format is suitable for document export.
1971  If this is set and if a suitable conversion route exists (see 
1972 \begin_inset CommandInset ref
1973 LatexCommand ref
1974 reference "sec:Converters"
1975 nolink "false"
1976
1977 \end_inset
1978
1979 ),
1980  the format will appear in the 
1981 \begin_inset Flex Noun
1982 status collapsed
1983
1984 \begin_layout Plain Layout
1985 File\SpecialChar menuseparator
1986 Export
1987 \end_layout
1988
1989 \end_inset
1990
1991  menu.
1992  The format will also appear in the 
1993 \begin_inset Flex Noun
1994 status collapsed
1995
1996 \begin_layout Plain Layout
1997 Document\SpecialChar menuseparator
1998 View
1999 \end_layout
2000
2001 \end_inset
2002
2003  menu if a viewer is specified for the format.
2004  Pure image formats,
2005  such as 
2006 \begin_inset Flex Code
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010 png
2011 \end_layout
2012
2013 \end_inset
2014
2015 ,
2016  should not use this option.
2017  Formats that can both represent vector graphics and documents like 
2018 \begin_inset Flex Code
2019 status collapsed
2020
2021 \begin_layout Plain Layout
2022 pdf
2023 \end_layout
2024
2025 \end_inset
2026
2027  should use it.
2028 \end_layout
2029
2030 \begin_layout Standard
2031 The option 
2032 \begin_inset Flex Noun
2033 status collapsed
2034
2035 \begin_layout Plain Layout
2036 Vector graphics format
2037 \end_layout
2038
2039 \end_inset
2040
2041  tells \SpecialChar LyX
2042  that a format can contain vector graphics.
2043  This information is used to determine the target format of included graphics for 
2044 \begin_inset Flex Noun
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048 pdflatex
2049 \end_layout
2050
2051 \end_inset
2052
2053  export.
2054  Included graphics may need to be converted to either 
2055 \begin_inset Flex Noun
2056 status collapsed
2057
2058 \begin_layout Plain Layout
2059 pdf
2060 \end_layout
2061
2062 \end_inset
2063
2064 ,
2065  
2066 \begin_inset Flex Noun
2067 status collapsed
2068
2069 \begin_layout Plain Layout
2070 png
2071 \end_layout
2072
2073 \end_inset
2074
2075 ,
2076  or 
2077 \begin_inset Flex Noun
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 jpg
2082 \end_layout
2083
2084 \end_inset
2085
2086 ,
2087  since 
2088 \begin_inset Flex Noun
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092 pdflatex
2093 \end_layout
2094
2095 \end_inset
2096
2097  cannot handle other image formats.
2098  If an included graphic is not already in 
2099 \begin_inset Flex Noun
2100 status collapsed
2101
2102 \begin_layout Plain Layout
2103 pdf
2104 \end_layout
2105
2106 \end_inset
2107
2108 ,
2109  
2110 \begin_inset Flex Noun
2111 status collapsed
2112
2113 \begin_layout Plain Layout
2114 png
2115 \end_layout
2116
2117 \end_inset
2118
2119 ,
2120  or 
2121 \begin_inset Flex Noun
2122 status collapsed
2123
2124 \begin_layout Plain Layout
2125 jpg
2126 \end_layout
2127
2128 \end_inset
2129
2130  format,
2131  it is converted to 
2132 \begin_inset Flex Noun
2133 status collapsed
2134
2135 \begin_layout Plain Layout
2136 pdf
2137 \end_layout
2138
2139 \end_inset
2140
2141  if the vector format option is set,
2142  and otherwise to 
2143 \begin_inset Flex Noun
2144 status collapsed
2145
2146 \begin_layout Plain Layout
2147 png
2148 \end_layout
2149
2150 \end_inset
2151
2152 .
2153 \end_layout
2154
2155 \begin_layout Section
2156 Copiers
2157 \end_layout
2158
2159 \begin_layout Standard
2160 Since all conversions from one format to another take place in \SpecialChar LyX
2161 's temporary directory,
2162  it is sometimes necessary to modify a file before copying it to the temporary directory in order that the conversion may be performed.
2163 \begin_inset Foot
2164 status collapsed
2165
2166 \begin_layout Plain Layout
2167 For example,
2168  the file may refer to other files—
2169 images,
2170  for example—
2171 using relative file names,
2172  and these may become invalid when the file is copied to the temporary directory.
2173 \end_layout
2174
2175 \end_inset
2176
2177  This is done by a Copier:
2178  It copies a file to (or from) the temporary directory and may modify it in the process.
2179 \end_layout
2180
2181 \begin_layout Standard
2182 The definitions of the copiers may use eight variables:
2183 \end_layout
2184
2185 \begin_layout Labeling
2186 \labelwidthstring 00.00.0000
2187 \begin_inset Flex Code
2188 status collapsed
2189
2190 \begin_layout Plain Layout
2191 $$s
2192 \end_layout
2193
2194 \end_inset
2195
2196  The \SpecialChar LyX
2197  system directory (e.
2198 \begin_inset space \thinspace{}
2199 \end_inset
2200
2201 g.
2202 \begin_inset space \space{}
2203 \end_inset
2204
2205
2206 \begin_inset Flex Noun
2207 status collapsed
2208
2209 \begin_layout Plain Layout
2210 /usr/share/lyx
2211 \end_layout
2212
2213 \end_inset
2214
2215 ).
2216 \end_layout
2217
2218 \begin_layout Labeling
2219 \labelwidthstring 00.00.0000
2220 \begin_inset Flex Code
2221 status collapsed
2222
2223 \begin_layout Plain Layout
2224 $$i
2225 \end_layout
2226
2227 \end_inset
2228
2229  The input file
2230 \end_layout
2231
2232 \begin_layout Labeling
2233 \labelwidthstring 00.00.0000
2234 \begin_inset Flex Code
2235 status collapsed
2236
2237 \begin_layout Plain Layout
2238 $$o
2239 \end_layout
2240
2241 \end_inset
2242
2243  The output file
2244 \end_layout
2245
2246 \begin_layout Labeling
2247 \labelwidthstring 00.00.0000
2248 \begin_inset Flex Code
2249 status collapsed
2250
2251 \begin_layout Plain Layout
2252 $$b
2253 \end_layout
2254
2255 \end_inset
2256
2257  The base name (without filename extension) in the \SpecialChar LyX
2258  temporary directory
2259 \end_layout
2260
2261 \begin_layout Labeling
2262 \labelwidthstring 00.00.0000
2263 \begin_inset Flex Code
2264 status collapsed
2265
2266 \begin_layout Plain Layout
2267 $$p
2268 \end_layout
2269
2270 \end_inset
2271
2272  The full directory path of the \SpecialChar LyX
2273  temporary directory
2274 \end_layout
2275
2276 \begin_layout Labeling
2277 \labelwidthstring 00.00.0000
2278 \begin_inset Flex Code
2279 status collapsed
2280
2281 \begin_layout Plain Layout
2282 $$r
2283 \end_layout
2284
2285 \end_inset
2286
2287  The full pathname to the original \SpecialChar LyX
2288  file being processed
2289 \end_layout
2290
2291 \begin_layout Labeling
2292 \labelwidthstring 00.00.0000
2293 \begin_inset Flex Code
2294 status collapsed
2295
2296 \begin_layout Plain Layout
2297 $$f
2298 \end_layout
2299
2300 \end_inset
2301
2302  The filename (without any directory path) of the \SpecialChar LyX
2303  file.
2304 \end_layout
2305
2306 \begin_layout Labeling
2307 \labelwidthstring 00.00.0000
2308 \begin_inset Flex Code
2309 status collapsed
2310
2311 \begin_layout Plain Layout
2312 $$l
2313 \end_layout
2314
2315 \end_inset
2316
2317  The `\SpecialChar LaTeX
2318  name'
2319 \end_layout
2320
2321 \begin_layout Standard
2322 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2323 's 
2324 \series bold
2325
2326 \backslash
2327 include
2328 \series default
2329  command.
2330  It is relevant only when exporting files suitable for such inclusion.
2331 \end_layout
2332
2333 \begin_layout Standard
2334 Copiers can be used to do almost anything with output files.
2335  For example,
2336  suppose you want generated pdf files to be copied to a special directory,
2337  
2338 \begin_inset Flex Code
2339 status collapsed
2340
2341 \begin_layout Plain Layout
2342 /home/you/pdf/
2343 \end_layout
2344
2345 \end_inset
2346
2347 .
2348  Then you could write a shell script such as this one:
2349 \end_layout
2350
2351 \begin_layout Standard
2352 \begin_inset listings
2353 inline false
2354 status open
2355
2356 \begin_layout Plain Layout
2357
2358 #!/bin/bash
2359 \end_layout
2360
2361 \begin_layout Plain Layout
2362
2363 FROMFILE=$1
2364 \end_layout
2365
2366 \begin_layout Plain Layout
2367
2368 TOFILE=`basename $2`
2369 \end_layout
2370
2371 \begin_layout Plain Layout
2372
2373 cp $FROMFILE /home/you/pdf/$TOFILE
2374 \end_layout
2375
2376 \end_inset
2377
2378 Save it in your local \SpecialChar LyX
2379  directory—
2380 say,
2381  
2382 \begin_inset Flex Code
2383 status collapsed
2384
2385 \begin_layout Plain Layout
2386 /home/you/.lyx/scripts/pdfcopier.sh
2387 \end_layout
2388
2389 \end_inset
2390
2391
2392 and make it executable,
2393  if you need to do so on your platform.
2394  Then,
2395  in the 
2396 \begin_inset Flex Noun
2397 status collapsed
2398
2399 \begin_layout Plain Layout
2400 Tools\SpecialChar menuseparator
2401 Preferences
2402 \end_layout
2403
2404 \end_inset
2405
2406  dialog,
2407  select under 
2408 \begin_inset Flex Noun
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412 File Handling\SpecialChar menuseparator
2413 File formats
2414 \end_layout
2415
2416 \end_inset
2417
2418  the 
2419 \begin_inset Flex Noun
2420 status collapsed
2421
2422 \begin_layout Plain Layout
2423 PDF(pdflatex)
2424 \end_layout
2425
2426 \end_inset
2427
2428  format—
2429 or one of the other pdf formats—
2430 and enter 
2431 \begin_inset Flex Code
2432 status collapsed
2433
2434 \begin_layout Plain Layout
2435 pdfcopier.sh $$i $$o
2436 \end_layout
2437
2438 \end_inset
2439
2440  into the 
2441 \begin_inset Flex Noun
2442 status collapsed
2443
2444 \begin_layout Plain Layout
2445 Copier
2446 \end_layout
2447
2448 \end_inset
2449
2450  field.
2451  
2452 \end_layout
2453
2454 \begin_layout Standard
2455 Copiers are used by \SpecialChar LyX
2456  in various of its own conversions.
2457  For example,
2458  if appropriate programs are found,
2459  \SpecialChar LyX
2460  will automatically install copiers for the 
2461 \begin_inset Flex Noun
2462 status collapsed
2463
2464 \begin_layout Plain Layout
2465 HTML
2466 \end_layout
2467
2468 \end_inset
2469
2470  and 
2471 \begin_inset Flex Noun
2472 status collapsed
2473
2474 \begin_layout Plain Layout
2475 HTML
2476 \begin_inset space ~
2477 \end_inset
2478
2479 (MS Word)
2480 \end_layout
2481
2482 \end_inset
2483
2484  formats.
2485  When these formats are exported,
2486  the copier sees that not just the main HTML file but various associated files (style files,
2487  images,
2488  etc.) are also copied.
2489  All these files are written to a subdirectory of the directory in which the original \SpecialChar LyX
2490  file was found.
2491 \begin_inset Foot
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 This copier can be customized.
2496  The optional 
2497 \begin_inset Quotes eld
2498 \end_inset
2499
2500 -e
2501 \begin_inset Quotes erd
2502 \end_inset
2503
2504  argument takes a comma-separated list of extensions to be copied;
2505  if it is omitted,
2506  all files will be copied.
2507  The 
2508 \begin_inset Quotes eld
2509 \end_inset
2510
2511 -t
2512 \begin_inset Quotes erd
2513 \end_inset
2514
2515  argument determines the extension added to the generated directory.
2516  By default,
2517  it is 
2518 \begin_inset Quotes eld
2519 \end_inset
2520
2521
2522 \begin_inset Flex Noun
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526 LyXconv
2527 \end_layout
2528
2529 \end_inset
2530
2531
2532 \begin_inset Quotes erd
2533 \end_inset
2534
2535 ,
2536  so HTML generated from 
2537 \begin_inset Flex Noun
2538 status collapsed
2539
2540 \begin_layout Plain Layout
2541 /path/to/filename.lyx
2542 \end_layout
2543
2544 \end_inset
2545
2546  will end up in 
2547 \begin_inset Flex Noun
2548 status collapsed
2549
2550 \begin_layout Plain Layout
2551 /path/to/filename.html.LyXconv
2552 \end_layout
2553
2554 \end_inset
2555
2556 .
2557  
2558 \end_layout
2559
2560 \end_inset
2561
2562
2563 \end_layout
2564
2565 \begin_layout Section
2566 Converters
2567 \begin_inset CommandInset label
2568 LatexCommand label
2569 name "sec:Converters"
2570
2571 \end_inset
2572
2573
2574 \end_layout
2575
2576 \begin_layout Standard
2577 You can define your own Converters to convert files between different formats.
2578  This is done in the 
2579 \begin_inset Flex Noun
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 Tools\SpecialChar menuseparator
2584 Preferences\SpecialChar menuseparator
2585 File Handling\SpecialChar menuseparator
2586 Converters
2587 \end_layout
2588
2589 \end_inset
2590
2591  dialog.
2592 \end_layout
2593
2594 \begin_layout Standard
2595 To define a new converter,
2596  select the 
2597 \begin_inset Flex Noun
2598 status collapsed
2599
2600 \begin_layout Plain Layout
2601 From
2602 \begin_inset space ~
2603 \end_inset
2604
2605 format
2606 \end_layout
2607
2608 \end_inset
2609
2610  and 
2611 \begin_inset Flex Noun
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615 To
2616 \begin_inset space ~
2617 \end_inset
2618
2619 format
2620 \end_layout
2621
2622 \end_inset
2623
2624  from the drop-down lists,
2625  enter the command needed for the conversion,
2626  and then press the 
2627 \begin_inset Flex Noun
2628 status collapsed
2629
2630 \begin_layout Plain Layout
2631 Add
2632 \end_layout
2633
2634 \end_inset
2635
2636  button.
2637  Several variables can be used in the definition of converters:
2638 \end_layout
2639
2640 \begin_layout Labeling
2641 \labelwidthstring 00.00.0000
2642 \begin_inset Flex Code
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646 $$s
2647 \end_layout
2648
2649 \end_inset
2650
2651  The \SpecialChar LyX
2652  system directory
2653 \end_layout
2654
2655 \begin_layout Labeling
2656 \labelwidthstring 00.00.0000
2657 \begin_inset Flex Code
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 $$i
2662 \end_layout
2663
2664 \end_inset
2665
2666  The input file
2667 \end_layout
2668
2669 \begin_layout Labeling
2670 \labelwidthstring 00.00.0000
2671 \begin_inset Flex Code
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 $$o
2676 \end_layout
2677
2678 \end_inset
2679
2680  The output file
2681 \end_layout
2682
2683 \begin_layout Labeling
2684 \labelwidthstring 00.00.0000
2685 \begin_inset Flex Code
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 $$b
2690 \end_layout
2691
2692 \end_inset
2693
2694  The base filename of the input file (i.
2695 \begin_inset space \thinspace{}
2696 \end_inset
2697
2698 g.,
2699  without the extension)
2700 \end_layout
2701
2702 \begin_layout Labeling
2703 \labelwidthstring 00.00.0000
2704 \begin_inset Flex Code
2705 status collapsed
2706
2707 \begin_layout Plain Layout
2708 $$p
2709 \end_layout
2710
2711 \end_inset
2712
2713  The path to the input file
2714 \end_layout
2715
2716 \begin_layout Labeling
2717 \labelwidthstring 00.00.0000
2718 \begin_inset Flex Code
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722 $$r
2723 \end_layout
2724
2725 \end_inset
2726
2727  The path to the original input file (this is different from $$p when a chain of converters is called)
2728 \end_layout
2729
2730 \begin_layout Labeling
2731 \labelwidthstring 00.00.0000
2732 \begin_inset Flex Code
2733 status collapsed
2734
2735 \begin_layout Plain Layout
2736 $$e
2737 \end_layout
2738
2739 \end_inset
2740
2741  The iconv name for the encoding of the document.
2742 \end_layout
2743
2744 \begin_layout Standard
2745 In the 
2746 \begin_inset Flex Noun
2747 status collapsed
2748
2749 \begin_layout Plain Layout
2750 Extra
2751 \begin_inset space ~
2752 \end_inset
2753
2754 Flag
2755 \end_layout
2756
2757 \end_inset
2758
2759  field you can enter the following flags,
2760  separated by commas:
2761 \end_layout
2762
2763 \begin_layout Labeling
2764 \labelwidthstring 00.00.0000
2765 \begin_inset Flex Code
2766 status collapsed
2767
2768 \begin_layout Plain Layout
2769 latex
2770 \change_inserted -712698321 1524656940
2771 =flavor
2772 \change_unchanged
2773
2774 \end_layout
2775
2776 \end_inset
2777
2778  This converter runs some form of \SpecialChar LaTeX
2779 .
2780  This will make \SpecialChar LyX
2781 's \SpecialChar LaTeX
2782  error logs available.
2783
2784 \change_inserted -712698321 1524657018
2785  The optional 
2786 \begin_inset Flex Code
2787 status open
2788
2789 \begin_layout Plain Layout
2790
2791 \change_inserted -712698321 1524657012
2792 flavor
2793 \change_unchanged
2794
2795 \end_layout
2796
2797 \end_inset
2798
2799  value specifies the form of \SpecialChar LaTeX
2800  that is run (
2801 \begin_inset Flex Code
2802 status open
2803
2804 \begin_layout Plain Layout
2805
2806 \change_inserted -712698321 1524657005
2807 latex,
2808  pdflatex,
2809  platex,
2810  xetex,
2811  luatex
2812 \change_unchanged
2813
2814 \end_layout
2815
2816 \end_inset
2817
2818 ).
2819  If no value is specified,
2820  
2821 \begin_inset Flex Code
2822 status open
2823
2824 \begin_layout Plain Layout
2825
2826 \change_inserted -712698321 1524657018
2827 latex
2828 \change_unchanged
2829
2830 \end_layout
2831
2832 \end_inset
2833
2834  is used.
2835 \change_unchanged
2836
2837 \end_layout
2838
2839 \begin_layout Labeling
2840 \labelwidthstring 00.00.0000
2841 \begin_inset Flex Code
2842 status collapsed
2843
2844 \begin_layout Plain Layout
2845 needaux
2846 \change_inserted -712698321 1524656935
2847 =flavor
2848 \change_unchanged
2849
2850 \end_layout
2851
2852 \end_inset
2853
2854  Needs the \SpecialChar LaTeX
2855  
2856 \begin_inset Flex Noun
2857 status collapsed
2858
2859 \begin_layout Plain Layout
2860 .aux
2861 \end_layout
2862
2863 \end_inset
2864
2865  file for the conversion.
2866
2867 \change_inserted -712698321 1524657047
2868  The optional 
2869 \begin_inset Flex Code
2870 status open
2871
2872 \begin_layout Plain Layout
2873
2874 \change_inserted -712698321 1524657030
2875 flavor
2876 \change_unchanged
2877
2878 \end_layout
2879
2880 \end_inset
2881
2882  value specifies the form of \SpecialChar LaTeX
2883  that is run in order to generate the 
2884 \begin_inset Flex Noun
2885 status collapsed
2886
2887 \begin_layout Plain Layout
2888
2889 \change_inserted -712698321 1524657047
2890 .aux
2891 \change_unchanged
2892
2893 \end_layout
2894
2895 \end_inset
2896
2897  file (
2898 \begin_inset Flex Code
2899 status open
2900
2901 \begin_layout Plain Layout
2902
2903 \change_inserted -712698321 1524657030
2904 latex,
2905  pdflatex,
2906  platex,
2907  xetex,
2908  luatex
2909 \change_unchanged
2910
2911 \end_layout
2912
2913 \end_inset
2914
2915 ).
2916  If no value is specified,
2917  
2918 \begin_inset Flex Code
2919 status open
2920
2921 \begin_layout Plain Layout
2922
2923 \change_inserted -712698321 1524657030
2924 latex
2925 \change_unchanged
2926
2927 \end_layout
2928
2929 \end_inset
2930
2931  is used.
2932 \change_unchanged
2933
2934 \end_layout
2935
2936 \begin_layout Labeling
2937 \labelwidthstring 00.00.0000
2938 \begin_inset Flex Code
2939 status collapsed
2940
2941 \begin_layout Plain Layout
2942 nice
2943 \end_layout
2944
2945 \end_inset
2946
2947  Needs a 
2948 \begin_inset Quotes eld
2949 \end_inset
2950
2951 nice
2952 \begin_inset Quotes erd
2953 \end_inset
2954
2955  file from the backend,
2956  which in practice means a \SpecialChar LaTeX
2957  file like the one we would export,
2958  without 
2959 \begin_inset Flex Code
2960 status collapsed
2961
2962 \begin_layout Plain Layout
2963 input@path
2964 \end_layout
2965
2966 \end_inset
2967
2968 .
2969 \end_layout
2970
2971 \begin_layout Labeling
2972 \labelwidthstring 00.00.0000
2973 \begin_inset Flex Code
2974 status collapsed
2975
2976 \begin_layout Plain Layout
2977 xml
2978 \end_layout
2979
2980 \end_inset
2981
2982  Output is XML.
2983 \end_layout
2984
2985 \begin_layout Standard
2986 The following three flags are not really flags at all because they take an argument in the 
2987 \begin_inset Flex Noun
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 key
2992 \begin_inset space ~
2993 \end_inset
2994
2995 =
2996 \begin_inset space ~
2997 \end_inset
2998
2999 value
3000 \end_layout
3001
3002 \end_inset
3003
3004  format:
3005 \end_layout
3006
3007 \begin_layout Labeling
3008 \labelwidthstring 00.00.0000
3009
3010 \change_inserted -712698321 1523206314
3011 \begin_inset Flex Code
3012 status collapsed
3013
3014 \begin_layout Plain Layout
3015
3016 \change_inserted -712698321 1523206193
3017 hyperref-driver
3018 \change_unchanged
3019
3020 \end_layout
3021
3022 \end_inset
3023
3024  The name of the driver that needs to be loaded with the 
3025 \family sans
3026 hyperref
3027 \family default
3028  package for this converter.
3029  The loading of the correct driver is necessary to get some PDF-specific features.
3030  See the 
3031 \family sans
3032 hyperref
3033 \family default
3034  manual for details.
3035 \end_layout
3036
3037 \begin_layout Labeling
3038 \labelwidthstring 00.00.0000
3039 \begin_inset Flex Code
3040 status collapsed
3041
3042 \begin_layout Plain Layout
3043 parselog
3044 \end_layout
3045
3046 \end_inset
3047
3048  If set,
3049  the converter's standard error will be redirected to a file 
3050 \begin_inset Flex Code
3051 status collapsed
3052
3053 \begin_layout Plain Layout
3054 infile.out
3055 \end_layout
3056
3057 \end_inset
3058
3059 ,
3060  and the script given as argument will be run as:
3061  
3062 \begin_inset Flex Code
3063 status collapsed
3064
3065 \begin_layout Plain Layout
3066 script < infile.out > infile.log
3067 \end_layout
3068
3069 \end_inset
3070
3071 .
3072  The argument may contain 
3073 \begin_inset Flex Code
3074 status collapsed
3075
3076 \begin_layout Plain Layout
3077 $$s
3078 \end_layout
3079
3080 \end_inset
3081
3082 .
3083 \end_layout
3084
3085 \begin_layout Labeling
3086 \labelwidthstring 00.00.0000
3087 \begin_inset Flex Code
3088 status collapsed
3089
3090 \begin_layout Plain Layout
3091 resultdir
3092 \end_layout
3093
3094 \end_inset
3095
3096  The name of the directory in which the converter will dump the generated files.
3097  \SpecialChar LyX
3098  will not create this directory,
3099  and it does not copy anything into it,
3100  though it will copy this directory to the destination.
3101  The argument may contain 
3102 \begin_inset Flex Code
3103 status collapsed
3104
3105 \begin_layout Plain Layout
3106 $$b
3107 \end_layout
3108
3109 \end_inset
3110
3111 ,
3112  which will be replaced by the base name of the input and output files,
3113  respectively,
3114  when the directory is copied.
3115 \begin_inset Newline newline
3116 \end_inset
3117
3118 Note that resultdir and usetempdir make no sense together.
3119  The latter will be ignored if the former is given.
3120 \end_layout
3121
3122 \begin_layout Labeling
3123 \labelwidthstring 00.00.0000
3124 \begin_inset Flex Code
3125 status collapsed
3126
3127 \begin_layout Plain Layout
3128 resultfile
3129 \end_layout
3130
3131 \end_inset
3132
3133  Determines the output file name and may,
3134  contain 
3135 \begin_inset Flex Code
3136 status collapsed
3137
3138 \begin_layout Plain Layout
3139 $$b
3140 \end_layout
3141
3142 \end_inset
3143
3144 .
3145  Sensible only with resultdir and optional even then;
3146  if not given,
3147  it defaults to `index'.
3148 \end_layout
3149
3150 \begin_layout Standard
3151
3152 \change_inserted -712698321 1523206384
3153 A suitable hyperref-driver is set for some converters that are installed with \SpecialChar LyX
3154 .
3155  
3156 \change_deleted -712698321 1523206388
3157 None of these
3158 \change_inserted -712698321 1523206389
3159 The
3160 \change_unchanged
3161  last three
3162 \change_inserted -712698321 1523206400
3163  flags,
3164  however,
3165
3166 \change_unchanged
3167  are presently 
3168 \change_inserted -712698321 1523206407
3169 not 
3170 \change_unchanged
3171 used in any of the 
3172 \change_inserted -712698321 1523206437
3173 pre-installed 
3174 \change_unchanged
3175 converters
3176 \change_deleted -712698321 1523206442
3177  that are installed with \SpecialChar LyX
3178
3179 \change_unchanged
3180 .
3181  
3182 \end_layout
3183
3184 \begin_layout Standard
3185 You do not have to define converters for all formats between which you want to convert.
3186  For example,
3187  you will note that there is no `\SpecialChar LyX
3188  to PostScript' converter,
3189  but \SpecialChar LyX
3190  will export PostScript.
3191  It does so by first creating a \SpecialChar LaTeX
3192  file (no converter needs to be defined for this) which is then converted to DVI using the `\SpecialChar LaTeX
3193  to DVI' converter,
3194  and finally converting the resulting DVI file to PostScript.
3195  \SpecialChar LyX
3196  finds such `chains' of converters automatically,
3197  and it will always choose the shortest possible chain.
3198  You can,
3199  though,
3200  still define multiple conversion methods between file formats.
3201  For example,
3202  the standard \SpecialChar LyX
3203  configuration provides five ways to convert \SpecialChar LaTeX
3204  to PDF:
3205 \end_layout
3206
3207 \begin_layout Enumerate
3208 Directly,
3209  using 
3210 \begin_inset Flex Noun
3211 status collapsed
3212
3213 \begin_layout Plain Layout
3214 pdflatex
3215 \end_layout
3216
3217 \end_inset
3218
3219
3220 \end_layout
3221
3222 \begin_layout Enumerate
3223 via (DVI and) PostScript,
3224  using 
3225 \begin_inset Flex Noun
3226 status collapsed
3227
3228 \begin_layout Plain Layout
3229 ps2pdf
3230 \end_layout
3231
3232 \end_inset
3233
3234
3235 \end_layout
3236
3237 \begin_layout Enumerate
3238 via DVI,
3239  using 
3240 \begin_inset Flex Noun
3241 status collapsed
3242
3243 \begin_layout Plain Layout
3244 dvipdfm
3245 \end_layout
3246
3247 \end_inset
3248
3249
3250 \end_layout
3251
3252 \begin_layout Enumerate
3253 directly using 
3254 \begin_inset Flex Noun
3255 status collapsed
3256
3257 \begin_layout Plain Layout
3258 Xe\SpecialChar TeX
3259
3260 \end_layout
3261
3262 \end_inset
3263
3264
3265 \end_layout
3266
3267 \begin_layout Enumerate
3268 directly using 
3269 \begin_inset Flex Noun
3270 status collapsed
3271
3272 \begin_layout Plain Layout
3273 Lua\SpecialChar TeX
3274
3275 \end_layout
3276
3277 \end_inset
3278
3279
3280 \end_layout
3281
3282 \begin_layout Standard
3283 To define such alternate chains,
3284  you must define multiple target `file formats',
3285  as described in 
3286 \begin_inset CommandInset ref
3287 LatexCommand ref
3288 reference "sec:Formats"
3289 nolink "false"
3290
3291 \end_inset
3292
3293 .
3294  For example,
3295  in the standard configuration,
3296  the formats named 
3297 \begin_inset Flex Noun
3298 status collapsed
3299
3300 \begin_layout Plain Layout
3301 pdf
3302 \end_layout
3303
3304 \end_inset
3305
3306  (for 
3307 \begin_inset Flex Noun
3308 status collapsed
3309
3310 \begin_layout Plain Layout
3311 ps2pdf
3312 \end_layout
3313
3314 \end_inset
3315
3316 ),
3317  
3318 \begin_inset Flex Noun
3319 status collapsed
3320
3321 \begin_layout Plain Layout
3322 pdf2
3323 \end_layout
3324
3325 \end_inset
3326
3327  (for 
3328 \begin_inset Flex Noun
3329 status collapsed
3330
3331 \begin_layout Plain Layout
3332 pdflatex
3333 \end_layout
3334
3335 \end_inset
3336
3337 ),
3338  
3339 \begin_inset Flex Noun
3340 status collapsed
3341
3342 \begin_layout Plain Layout
3343 pdf3
3344 \end_layout
3345
3346 \end_inset
3347
3348  (for 
3349 \begin_inset Flex Noun
3350 status collapsed
3351
3352 \begin_layout Plain Layout
3353 dvipdfm
3354 \end_layout
3355
3356 \end_inset
3357
3358 ),
3359  
3360 \begin_inset Flex Noun
3361 status collapsed
3362
3363 \begin_layout Plain Layout
3364 pdf4
3365 \end_layout
3366
3367 \end_inset
3368
3369  (for 
3370 \begin_inset Flex Noun
3371 status collapsed
3372
3373 \begin_layout Plain Layout
3374 Xe\SpecialChar TeX
3375
3376 \end_layout
3377
3378 \end_inset
3379
3380 ),
3381  and 
3382 \begin_inset Flex Noun
3383 status collapsed
3384
3385 \begin_layout Plain Layout
3386 pdf5
3387 \end_layout
3388
3389 \end_inset
3390
3391  (for 
3392 \begin_inset Flex Noun
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396 Lua\SpecialChar TeX
3397
3398 \end_layout
3399
3400 \end_inset
3401
3402 ) are defined,
3403  all of which share the extension 
3404 \begin_inset Flex Noun
3405 status collapsed
3406
3407 \begin_layout Plain Layout
3408 .pdf
3409 \end_layout
3410
3411 \end_inset
3412
3413 ,
3414  and which correspond to the conversion methods just mentioned.
3415 \end_layout
3416
3417 \begin_layout Chapter
3418 Internationalizing \SpecialChar LyX
3419
3420 \begin_inset CommandInset label
3421 LatexCommand label
3422 name "cha:Internationalizing-LyX"
3423
3424 \end_inset
3425
3426
3427 \end_layout
3428
3429 \begin_layout Standard
3430 \SpecialChar LyX
3431  supports using a translated interface.
3432  Last time we checked,
3433  \SpecialChar LyX
3434  provided text in thirty languages.
3435  The language of choice is called your 
3436 \emph on
3437 locale
3438 \emph default
3439 .
3440  (For further reading on locale settings,
3441  see also the documentation for locale that comes with your operating system.
3442  For Linux,
3443  the manual page for 
3444 \begin_inset Flex Code
3445 status collapsed
3446
3447 \begin_layout Plain Layout
3448 locale(5)
3449 \end_layout
3450
3451 \end_inset
3452
3453  could be a good place to start).
3454 \end_layout
3455
3456 \begin_layout Standard
3457 Notice that these translations will work,
3458  but do contain a few flaws.
3459  In particular,
3460  all dialogs have been designed with the English text in mind,
3461  which means that some of the translated text will be too large to fit within the space allocated.
3462  This is only a display problem and will not cause any harm.
3463  Also,
3464  you will find that some of the translations do not define shortcut keys for everything.
3465  Sometimes,
3466  there are simply not enough free letters to do it.
3467  Other times,
3468  the translator just hasn't got around to doing it yet.
3469  Our localization team,
3470  which you may wish to join,
3471 \begin_inset Foot
3472 status collapsed
3473
3474 \begin_layout Plain Layout
3475 If you are a fluent speaker of a language other than English,
3476  joining these teams is a great way to give back to the \SpecialChar LyX
3477  community!
3478 \end_layout
3479
3480 \end_inset
3481
3482  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3483 .
3484 \end_layout
3485
3486 \begin_layout Section
3487 Translating \SpecialChar LyX
3488
3489 \end_layout
3490
3491 \begin_layout Subsection
3492 Translating the graphical user interface (text messages).
3493 \end_layout
3494
3495 \begin_layout Standard
3496 \SpecialChar LyX
3497  uses the GNU 
3498 \begin_inset Flex Code
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502 gettext
3503 \end_layout
3504
3505 \end_inset
3506
3507  library to handle the internationalization of the interface.
3508  To have \SpecialChar LyX
3509  speak your favorite language in all menus and dialogs,
3510  you need a 
3511 \begin_inset Flex Code
3512 status collapsed
3513
3514 \begin_layout Plain Layout
3515 po
3516 \end_layout
3517
3518 \end_inset
3519
3520 -file for that language.
3521  When this is available,
3522  you'll have to generate a 
3523 \begin_inset Flex Code
3524 status collapsed
3525
3526 \begin_layout Plain Layout
3527 mo
3528 \end_layout
3529
3530 \end_inset
3531
3532 -file from it and install the 
3533 \begin_inset Flex Code
3534 status collapsed
3535
3536 \begin_layout Plain Layout
3537 mo
3538 \end_layout
3539
3540 \end_inset
3541
3542 -file.
3543  The process of doing all of this is explained in the documentation for GNU 
3544 \begin_inset Flex Code
3545 status collapsed
3546
3547 \begin_layout Plain Layout
3548 gettext
3549 \end_layout
3550
3551 \end_inset
3552
3553 .
3554  It is possible to do this just for yourself,
3555  but if you're going to do it,
3556  you might as well share the results of your labors with the rest of the \SpecialChar LyX
3557  community.
3558  Send a message to the \SpecialChar LyX
3559  developers' list for more information about how to proceed.
3560 \end_layout
3561
3562 \begin_layout Standard
3563 In short,
3564  this is what you should do (xx denotes the language code):
3565 \end_layout
3566
3567 \begin_layout Itemize
3568 Check out the \SpecialChar LyX
3569  source code.
3570  (See the 
3571 \begin_inset CommandInset href
3572 LatexCommand href
3573 name "information on the web"
3574 target "https://www.lyx.org/HowToUseGIT"
3575 literal "false"
3576
3577 \end_inset
3578
3579 .)
3580 \end_layout
3581
3582 \begin_layout Itemize
3583 Copy the file 
3584 \begin_inset Flex Code
3585 status collapsed
3586
3587 \begin_layout Plain Layout
3588 lyx.pot
3589 \end_layout
3590
3591 \end_inset
3592
3593  to the folder of the 
3594 \begin_inset Flex Code
3595 status collapsed
3596
3597 \begin_layout Plain Layout
3598 **.po
3599 \end_layout
3600
3601 \end_inset
3602
3603  files.
3604  Then rename it to 
3605 \begin_inset Flex Code
3606 status collapsed
3607
3608 \begin_layout Plain Layout
3609 xx.po
3610 \end_layout
3611
3612 \end_inset
3613
3614 .
3615  (If 
3616 \begin_inset Flex Code
3617 status collapsed
3618
3619 \begin_layout Plain Layout
3620 lyx.pot
3621 \end_layout
3622
3623 \end_inset
3624
3625  doesn't exist anywhere,
3626  it can be remade with the console command 
3627 \begin_inset Flex Code
3628 status collapsed
3629
3630 \begin_layout Plain Layout
3631 make lyx.pot
3632 \end_layout
3633
3634 \end_inset
3635
3636  in that directory,
3637  or you can use an existing po-file for some other language as a template).
3638 \end_layout
3639
3640 \begin_layout Itemize
3641 Edit 
3642 \begin_inset Flex Code
3643 status collapsed
3644
3645 \begin_layout Plain Layout
3646 xx.po
3647 \end_layout
3648
3649 \end_inset
3650
3651 .
3652 \begin_inset Foot
3653 status collapsed
3654
3655 \begin_layout Plain Layout
3656 This is just a text file,
3657  so it can be edited in any text editor.
3658  But there are also specialized programs that support such editing,
3659  such as 
3660 \family typewriter
3661 Poedit
3662 \family default
3663  (for all platforms) or 
3664 \family typewriter
3665 KBabel
3666 \family default
3667  (for KDE).
3668  
3669 \family typewriter
3670 Emacs
3671 \family default
3672  contains a `mode' for editing 
3673 \begin_inset Flex Code
3674 status collapsed
3675
3676 \begin_layout Plain Layout
3677 po
3678 \end_layout
3679
3680 \end_inset
3681
3682  files,
3683  as well,
3684  see 
3685 \begin_inset Flex URL
3686 status open
3687
3688 \begin_layout Plain Layout
3689
3690 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3691 \end_layout
3692
3693 \end_inset
3694
3695 .
3696 \end_layout
3697
3698 \end_inset
3699
3700  For some menu- and widget-labels,
3701  there are also shortcut keys that should be translated.
3702  Those keys are marked after a `|',
3703  and should be translated according to the words and phrases of the language.
3704  You should also fill also out the information at the beginning of the new 
3705 \begin_inset Flex Code
3706 status collapsed
3707
3708 \begin_layout Plain Layout
3709 po
3710 \end_layout
3711
3712 \end_inset
3713
3714 -file with your email-address,
3715  etc.,
3716  so people know where to reach you with suggestions and entertaining flames.
3717 \end_layout
3718
3719 \begin_layout Standard
3720 If you are just doing this on your own,
3721  then:
3722 \end_layout
3723
3724 \begin_layout Itemize
3725 Generate 
3726 \begin_inset Flex Code
3727 status collapsed
3728
3729 \begin_layout Plain Layout
3730 xx.mo
3731 \end_layout
3732
3733 \end_inset
3734
3735 .
3736  This can be done with 
3737 \begin_inset Flex Code
3738 status collapsed
3739
3740 \begin_layout Plain Layout
3741 msgfmt -o xx.mo < xx.po
3742 \end_layout
3743
3744 \end_inset
3745
3746 .
3747 \end_layout
3748
3749 \begin_layout Itemize
3750 Copy the 
3751 \begin_inset Flex Code
3752 status collapsed
3753
3754 \begin_layout Plain Layout
3755 mo
3756 \end_layout
3757
3758 \end_inset
3759
3760 -file to your locale-tree,
3761  at the correct directory for application messages for the language
3762 \series bold
3763  
3764 \series default
3765 xx,
3766  and under the name 
3767 \begin_inset Flex Code
3768 status collapsed
3769
3770 \begin_layout Plain Layout
3771 lyx.mo
3772 \end_layout
3773
3774 \end_inset
3775
3776  (e.
3777 \begin_inset space \thinspace{}
3778 \end_inset
3779
3780 g.
3781 \begin_inset space \space{}
3782 \end_inset
3783
3784
3785 \begin_inset Flex Code
3786 status collapsed
3787
3788 \begin_layout Plain Layout
3789 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3790 \end_layout
3791
3792 \end_inset
3793
3794
3795 \series bold
3796 .
3797 \end_layout
3798
3799 \begin_layout Standard
3800 As said,
3801  however,
3802  it would be best if the new 
3803 \begin_inset Flex Code
3804 status collapsed
3805
3806 \begin_layout Plain Layout
3807 po
3808 \end_layout
3809
3810 \end_inset
3811
3812  file could be added to the \SpecialChar LyX
3813  distribution,
3814  so others can use it.
3815  Adding it involves making additional changes to \SpecialChar LyX
3816 .
3817  So send an email to the developers' mailing list if you're interested in doing that.
3818 \end_layout
3819
3820 \begin_layout Subsubsection
3821 Ambiguous messages
3822 \end_layout
3823
3824 \begin_layout Standard
3825 Sometimes it turns out that one English message needs to be translated into different messages in the target language.
3826  One example is the message 
3827 \begin_inset Flex Code
3828 status collapsed
3829
3830 \begin_layout Plain Layout
3831 To
3832 \end_layout
3833
3834 \end_inset
3835
3836  which has the German translation 
3837 \lang german
3838 Nach
3839 \lang english
3840  or 
3841 \lang german
3842 Bis
3843 \lang english
3844 ,
3845  depending upon exactly what the English 
3846 \begin_inset Quotes eld
3847 \end_inset
3848
3849 to
3850 \begin_inset Quotes erd
3851 \end_inset
3852
3853  means.
3854  GNU 
3855 \begin_inset Flex Code
3856 status collapsed
3857
3858 \begin_layout Plain Layout
3859 gettext
3860 \end_layout
3861
3862 \end_inset
3863
3864  does not handle such ambiguous translations.
3865  Therefore you have to add some context information to the message:
3866  Instead of 
3867 \begin_inset Flex Code
3868 status collapsed
3869
3870 \begin_layout Plain Layout
3871 To
3872 \end_layout
3873
3874 \end_inset
3875
3876  it becomes 
3877 \begin_inset Flex Code
3878 status collapsed
3879
3880 \begin_layout Plain Layout
3881 To[[as in 'From format x to format y']]
3882 \end_layout
3883
3884 \end_inset
3885
3886  and 
3887 \begin_inset Flex Code
3888 status collapsed
3889
3890 \begin_layout Plain Layout
3891 To[[as in 'From page x to page y']].
3892 \end_layout
3893
3894 \end_inset
3895
3896  Now the two occurrences of 
3897 \begin_inset Flex Code
3898 status collapsed
3899
3900 \begin_layout Plain Layout
3901 To
3902 \end_layout
3903
3904 \end_inset
3905
3906  are different for 
3907 \begin_inset Flex Code
3908 status collapsed
3909
3910 \begin_layout Plain Layout
3911 gettext
3912 \end_layout
3913
3914 \end_inset
3915
3916  and can be translated correctly to 
3917 \lang german
3918 Nach
3919 \lang english
3920  and 
3921 \lang german
3922 Bis
3923 \lang english
3924 ,
3925  respectively.
3926 \end_layout
3927
3928 \begin_layout Standard
3929 Of course the context information needs to be stripped off the original message when no translation is used.
3930  Therefore you have to put it in double square brackets at the end of the message (see the example above).
3931  The translation mechanism of \SpecialChar LyX
3932  ensures that everything in double square brackets at the end of messages is removed before displaying the message.
3933 \end_layout
3934
3935 \begin_layout Subsection
3936 Translating the documentation.
3937 \end_layout
3938
3939 \begin_layout Standard
3940 The online documentation (in the 
3941 \begin_inset Flex Noun
3942 status collapsed
3943
3944 \begin_layout Plain Layout
3945 Help
3946 \end_layout
3947
3948 \end_inset
3949
3950 -menu) can (and should!) be translated.
3951  If there are translated versions of the documentation available
3952 \begin_inset Foot
3953 status collapsed
3954
3955 \begin_layout Plain Layout
3956 As of March 2008,
3957  at least some of the documents have been translated into fourteen languages,
3958  with the Tutorial available in a few more.
3959 \end_layout
3960
3961 \end_inset
3962
3963  and the locale is set accordingly,
3964  these will be used automagically by \SpecialChar LyX
3965 .
3966  \SpecialChar LyX
3967  looks for translated versions as 
3968 \begin_inset Flex Code
3969 status collapsed
3970
3971 \begin_layout Plain Layout
3972 LyXDir/doc/xx/DocName.lyx
3973 \end_layout
3974
3975 \end_inset
3976
3977 ,
3978  where 
3979 \begin_inset Flex Code
3980 status collapsed
3981
3982 \begin_layout Plain Layout
3983 xx
3984 \end_layout
3985
3986 \end_inset
3987
3988  is the code for the language currently in use.
3989  If there are no translated documents,
3990  the default English versions will be displayed.
3991  Note that the translated versions must have the same filenames (
3992 \begin_inset Flex Code
3993 status collapsed
3994
3995 \begin_layout Plain Layout
3996 DocName
3997 \end_layout
3998
3999 \end_inset
4000
4001  above) as the original.
4002  If you feel up to translating the documentation (an excellent way to proof-read the original documentation by the way!),
4003  there are a few things you should do right away:
4004 \end_layout
4005
4006 \begin_layout Itemize
4007 Check out the documentation translation web page at 
4008 \begin_inset CommandInset href
4009 LatexCommand href
4010 name "https://www.lyx.org/Translation"
4011 target "https://www.lyx.org/Translation"
4012 literal "false"
4013
4014 \end_inset
4015
4016 .
4017  That way,
4018  you can find out which (if any) documents have already been translated into your language.
4019  You can also find out who (if anyone) is organizing the effort to translate the documentation into your language.
4020  If no one is organizing the effort,
4021  please let us know that you're interested.
4022 \end_layout
4023
4024 \begin_layout Standard
4025 Once you get to actually translating,
4026  here's a few hints for you that may save you trouble:
4027 \end_layout
4028
4029 \begin_layout Itemize
4030 Join the documentation team!
4031  There is information on how to do that in 
4032 \begin_inset Flex Code
4033 status collapsed
4034
4035 \begin_layout Plain Layout
4036 Intro.lyx
4037 \end_layout
4038
4039 \end_inset
4040
4041  (
4042 \begin_inset Flex Noun
4043 status collapsed
4044
4045 \begin_layout Plain Layout
4046 Help\SpecialChar menuseparator
4047 Introduction
4048 \end_layout
4049
4050 \end_inset
4051
4052 ),
4053  which by the way is the first document you should translate.
4054 \end_layout
4055
4056 \begin_layout Itemize
4057 Learn the typographic conventions for the language you are translating to.
4058  Typography is an ancient art and over the centuries,
4059  a great variety of conventions have developed throughout different parts of the world.
4060  Also study the professional terminology amongst typographers in your country.
4061  Inventing your own terminology will only confuse the users.
4062  
4063 \emph on
4064 (Warning!
4065  Typography is addictive!)
4066 \end_layout
4067
4068 \begin_layout Itemize
4069 Make a copy of the document.
4070  This will be your working copy.
4071  You can use this as your personal translated help-file by placing it in your 
4072 \begin_inset Flex Code
4073 status collapsed
4074
4075 \begin_layout Plain Layout
4076 UserDir/doc/xx/
4077 \end_layout
4078
4079 \end_inset
4080
4081  directory.
4082 \begin_inset Note Greyedout
4083 status open
4084
4085 \begin_layout Plain Layout
4086
4087 \series bold
4088 Note:
4089
4090 \series default
4091  For a complex document with external material (images,
4092  etc.),
4093  if you make a copy e.
4094 \begin_inset space \thinspace{}
4095 \end_inset
4096
4097 g.
4098 \begin_inset space \space{}
4099 \end_inset
4100
4101 in a temp dir,
4102  beware that the links to external material may be broken when the document is moved to a different place.
4103  The best way is to retrieve the \SpecialChar LyX
4104  tree from git (see 
4105 \begin_inset Flex URL
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109
4110 https://www.lyx.org/HowToUseGIT
4111 \end_layout
4112
4113 \end_inset
4114
4115 ) and to edit the doc file in place.
4116 \end_layout
4117
4118 \end_inset
4119
4120
4121 \end_layout
4122
4123 \begin_layout Itemize
4124 Sometimes the original document (from the \SpecialChar LyX
4125  team) will be updated.
4126  Use the source viewer at 
4127 \begin_inset CommandInset href
4128 LatexCommand href
4129 name "https://www.lyx.org/trac/timeline"
4130 target "https://www.lyx.org/trac/timeline"
4131 literal "false"
4132
4133 \end_inset
4134
4135  to see what has been changed.
4136  That way you can easily see which parts of the translated document need to be updated.
4137 \end_layout
4138
4139 \begin_layout Standard
4140 If you ever find an error in the original document,
4141  fix it and notify the rest of the documentation team of the changes!
4142  (You didn't forget to join the documentation team,
4143  did you?)
4144 \end_layout
4145
4146 \begin_layout Standard
4147 \begin_inset Branch OutDated
4148 inverted 0
4149 status collapsed
4150
4151 \begin_layout Section
4152 International Keyboard Support
4153 \end_layout
4154
4155 \begin_layout Standard
4156
4157 \emph on
4158 [Editor's Note:
4159  The following section is by
4160 \emph default
4161  
4162 \shape smallcaps
4163 \emph on
4164 Ivan Schreter
4165 \shape default
4166 .
4167  It needs to be fixed to conform to the new Documentation Style sheet and to make use of the new v1.0 features.
4168  The whole thing also needs to be merged with the section following it.-jw It may also be badly out of date.-rh (2008)]
4169 \end_layout
4170
4171 \begin_layout Subsection
4172 Defining Own Keymaps:
4173  Keymap File Format
4174 \end_layout
4175
4176 \begin_layout Standard
4177 Let's look at a keyboard definition file a little closer.
4178  It is a plain text file defining
4179 \end_layout
4180
4181 \begin_layout Itemize
4182 key-to-key or key-to-string translations
4183 \end_layout
4184
4185 \begin_layout Itemize
4186 dead keys
4187 \end_layout
4188
4189 \begin_layout Itemize
4190 dead keys exceptions
4191 \end_layout
4192
4193 \begin_layout Standard
4194 To define key-to-key or key-to-string translation,
4195  use this command:
4196 \end_layout
4197
4198 \begin_layout Quotation
4199 \begin_inset Flex Code
4200 status collapsed
4201
4202 \begin_layout Plain Layout
4203
4204 \backslash
4205 kmap
4206 \end_layout
4207
4208 \end_inset
4209
4210  
4211 \begin_inset Flex Code
4212 status collapsed
4213
4214 \begin_layout Plain Layout
4215 key
4216 \end_layout
4217
4218 \end_inset
4219
4220  outstring 
4221 \end_layout
4222
4223 \begin_layout Standard
4224 where 
4225 \begin_inset Flex Code
4226 status collapsed
4227
4228 \begin_layout Plain Layout
4229 key
4230 \end_layout
4231
4232 \end_inset
4233
4234  is the key to be translated and 
4235 \begin_inset Flex Code
4236 status collapsed
4237
4238 \begin_layout Plain Layout
4239 outstring
4240 \end_layout
4241
4242 \end_inset
4243
4244  is the string to be inserted into the document.
4245  To define dead keys,
4246  use:
4247 \end_layout
4248
4249 \begin_layout Quotation
4250 \begin_inset Flex Code
4251 status collapsed
4252
4253 \begin_layout Plain Layout
4254
4255 \backslash
4256 kmod
4257 \end_layout
4258
4259 \end_inset
4260
4261  
4262 \begin_inset Flex Code
4263 status collapsed
4264
4265 \begin_layout Plain Layout
4266 key
4267 \end_layout
4268
4269 \end_inset
4270
4271  deadkey
4272 \end_layout
4273
4274 \begin_layout Standard
4275 where 
4276 \begin_inset Flex Code
4277 status collapsed
4278
4279 \begin_layout Plain Layout
4280 key
4281 \end_layout
4282
4283 \end_inset
4284
4285  is a keyboard key and 
4286 \begin_inset Flex Code
4287 status collapsed
4288
4289 \begin_layout Plain Layout
4290 deadkey
4291 \end_layout
4292
4293 \end_inset
4294
4295  is dead key name.
4296  The following dead keys are supported (shortcut name is in parentheses):
4297 \end_layout
4298
4299 \begin_layout Quotation
4300
4301 \emph on
4302 Name
4303 \begin_inset space \hfill{}
4304 \end_inset
4305
4306 Example
4307 \end_layout
4308
4309 \begin_layout Quotation
4310 acute (acu)
4311 \begin_inset space \hfill{}
4312 \end_inset
4313
4314 áéíóú
4315 \end_layout
4316
4317 \begin_layout Quotation
4318 grave (gra)
4319 \begin_inset space \hfill{}
4320 \end_inset
4321
4322 àèìòù
4323 \end_layout
4324
4325 \begin_layout Quotation
4326 macron (mac)
4327 \begin_inset space \hfill{}
4328 \end_inset
4329
4330  ō
4331 \end_layout
4332
4333 \begin_layout Quotation
4334 tilde (til)
4335 \begin_inset space \hfill{}
4336 \end_inset
4337
4338 ñÑ
4339 \end_layout
4340
4341 \begin_layout Quotation
4342 underbar (underb)
4343 \begin_inset space \hfill{}
4344 \end_inset
4345
4346
4347 \begin_inset ERT
4348 status open
4349
4350 \begin_layout Plain Layout
4351
4352
4353 \backslash
4354 b o
4355 \end_layout
4356
4357 \end_inset
4358
4359
4360 \end_layout
4361
4362 \begin_layout Quotation
4363 cedilla (ced)
4364 \begin_inset space \hfill{}
4365 \end_inset
4366
4367 çÇ
4368 \end_layout
4369
4370 \begin_layout Quotation
4371 underdot (underd)
4372 \begin_inset space \hfill{}
4373 \end_inset
4374
4375
4376 \begin_inset ERT
4377 status open
4378
4379 \begin_layout Plain Layout
4380
4381
4382 \backslash
4383 d o
4384 \end_layout
4385
4386 \end_inset
4387
4388
4389 \end_layout
4390
4391 \begin_layout Quotation
4392 circumflex (circu)
4393 \begin_inset space \hfill{}
4394 \end_inset
4395
4396 âêîôû
4397 \end_layout
4398
4399 \begin_layout Quotation
4400 circle (circl)
4401 \begin_inset space \hfill{}
4402 \end_inset
4403
4404 ÅůŮ
4405 \end_layout
4406
4407 \begin_layout Quotation
4408 tie (tie)
4409 \begin_inset space \hfill{}
4410 \end_inset
4411
4412
4413 \begin_inset ERT
4414 status open
4415
4416 \begin_layout Plain Layout
4417
4418
4419 \backslash
4420 t o
4421 \end_layout
4422
4423 \end_inset
4424
4425
4426 \end_layout
4427
4428 \begin_layout Quotation
4429 breve (bre)
4430 \begin_inset space \hfill{}
4431 \end_inset
4432
4433 ă
4434 \begin_inset ERT
4435 status open
4436
4437 \begin_layout Plain Layout
4438
4439
4440 \backslash
4441 u o
4442 \end_layout
4443
4444 \end_inset
4445
4446
4447 \end_layout
4448
4449 \begin_layout Quotation
4450 caron (car)
4451 \begin_inset space \hfill{}
4452 \end_inset
4453
4454 čšž
4455 \end_layout
4456
4457 \begin_layout Quotation
4458 hungarian umlaut (hug)
4459 \begin_inset space \hfill{}
4460 \end_inset
4461
4462 őű
4463 \end_layout
4464
4465 \begin_layout Quotation
4466 umlaut (uml)
4467 \begin_inset space \hfill{}
4468 \end_inset
4469
4470 äöü
4471 \end_layout
4472
4473 \begin_layout Quotation
4474 dot (dot)
4475 \begin_inset space \hfill{}
4476 \end_inset
4477
4478 ż
4479 \begin_inset ERT
4480 status open
4481
4482 \begin_layout Plain Layout
4483
4484
4485 \backslash
4486 .s
4487 \end_layout
4488
4489 \end_inset
4490
4491
4492 \end_layout
4493
4494 \begin_layout Standard
4495 Since in many international keyboards there are exceptions to what some dead keys should do,
4496  you can define them using
4497 \end_layout
4498
4499 \begin_layout Quotation
4500 \begin_inset Flex Code
4501 status collapsed
4502
4503 \begin_layout Plain Layout
4504
4505 \backslash
4506 kxmod
4507 \end_layout
4508
4509 \end_inset
4510
4511  deadkey key outstring
4512 \end_layout
4513
4514 \begin_layout Standard
4515 For example,
4516  on Slovak keyboard,
4517  if you enter caron-o,
4518  it generates circumflex-o,
4519  so you put in
4520 \end_layout
4521
4522 \begin_layout Quotation
4523 \begin_inset Flex Code
4524 status collapsed
4525
4526 \begin_layout Plain Layout
4527
4528 \backslash
4529 kxmod
4530 \end_layout
4531
4532 \end_inset
4533
4534  caron o "
4535 \backslash
4536 ^o"
4537 \end_layout
4538
4539 \begin_layout Standard
4540 to make it work correctly.
4541  Also,
4542  you have to define as exceptions dead keys over i and j,
4543  to remove the dot from them before inserting an accent mark.
4544  I will change this when the time comes,
4545  but so far I haven't had time.
4546 \end_layout
4547
4548 \begin_layout Standard
4549 Oh,
4550  and about characters:
4551  backslash is escaped,
4552  so to enter it,
4553  you'll need double backslash.
4554  Also,
4555  quotes and 
4556 \begin_inset Flex Code
4557 status collapsed
4558
4559 \begin_layout Plain Layout
4560 #
4561 \end_layout
4562
4563 \end_inset
4564
4565  have different meaning.
4566  
4567 \begin_inset Flex Code
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571 #
4572 \end_layout
4573
4574 \end_inset
4575
4576  marks comments,
4577  quotes start and end \SpecialChar LaTeX
4578 -style commands.
4579  To enter quote,
4580  you'll need to use 
4581 \begin_inset Flex Code
4582 status collapsed
4583
4584 \begin_layout Plain Layout
4585
4586 \backslash
4587 "
4588 \end_layout
4589
4590 \end_inset
4591
4592 ,
4593  to enter 
4594 \begin_inset Flex Code
4595 status collapsed
4596
4597 \begin_layout Plain Layout
4598 #
4599 \end_layout
4600
4601 \end_inset
4602
4603 ,
4604  use 
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609
4610 \backslash
4611 #
4612 \end_layout
4613
4614 \end_inset
4615
4616 .
4617 \end_layout
4618
4619 \begin_layout Standard
4620 If you make a keyboard description file that works for your language,
4621  please mail it to me,
4622  so I can include it in the next keymap distribution.
4623 \end_layout
4624
4625 \begin_layout Standard
4626 More keywords will be supported in keymap configuration file in future,
4627  like
4628 \end_layout
4629
4630 \begin_layout Itemize
4631 \begin_inset Flex Code
4632 status collapsed
4633
4634 \begin_layout Plain Layout
4635
4636 \backslash
4637 kinclude filename
4638 \end_layout
4639
4640 \end_inset
4641
4642
4643 \emph on
4644
4645 \begin_inset space \hfill{}
4646 \end_inset
4647
4648
4649 \begin_inset Flex Code
4650 status collapsed
4651
4652 \begin_layout Plain Layout
4653 include
4654 \end_layout
4655
4656 \end_inset
4657
4658  another file
4659 \end_layout
4660
4661 \begin_layout Itemize
4662 \begin_inset Flex Code
4663 status collapsed
4664
4665 \begin_layout Plain Layout
4666
4667 \backslash
4668 kprog program
4669 \end_layout
4670
4671 \end_inset
4672
4673
4674 \emph on
4675
4676 \begin_inset space \hfill{}
4677 \end_inset
4678
4679
4680 \begin_inset Flex Code
4681 status collapsed
4682
4683 \begin_layout Plain Layout
4684 define
4685 \end_layout
4686
4687 \end_inset
4688
4689  an external keymap translation program 
4690 \end_layout
4691
4692 \begin_layout Standard
4693 Also,
4694  it should look into 
4695 \begin_inset Flex Code
4696 status collapsed
4697
4698 \begin_layout Plain Layout
4699 lyxrc
4700 \end_layout
4701
4702 \end_inset
4703
4704  file for defaults,
4705  too (for example,
4706  a 
4707 \begin_inset Flex Code
4708 status collapsed
4709
4710 \begin_layout Plain Layout
4711
4712 \backslash
4713 kinclude
4714 \end_layout
4715
4716 \end_inset
4717
4718  option to include default keyboard).
4719 \end_layout
4720
4721 \end_inset
4722
4723
4724 \end_layout
4725
4726 \begin_layout Section
4727 International Keymap Stuff
4728 \begin_inset CommandInset label
4729 LatexCommand label
4730 name "sec:International-Keymap-Stuff"
4731
4732 \end_inset
4733
4734
4735 \end_layout
4736
4737 \begin_layout Standard
4738 \begin_inset Note Note
4739 status open
4740
4741 \begin_layout Plain Layout
4742 In doing the revisions on this document in March 2008,
4743  I did not look over this stuff,
4744  as I do not understand it.
4745  It would be good if someone else could do so.
4746  (RH)
4747 \end_layout
4748
4749 \end_inset
4750
4751
4752 \end_layout
4753
4754 \begin_layout Standard
4755 The next two sections describe the 
4756 \begin_inset Flex Code
4757 status collapsed
4758
4759 \begin_layout Plain Layout
4760
4761 \shape up
4762 .kmap
4763 \end_layout
4764
4765 \end_inset
4766
4767  and 
4768 \begin_inset Flex Code
4769 status collapsed
4770
4771 \begin_layout Plain Layout
4772
4773 \shape up
4774 .cdef
4775 \end_layout
4776
4777 \end_inset
4778
4779  file syntax in detail.
4780  These sections should help you design your own key map if the ones provided do not meet your needs.
4781 \end_layout
4782
4783 \begin_layout Subsection
4784 The .kmap File
4785 \end_layout
4786
4787 \begin_layout Standard
4788
4789 \shape up
4790 .
4791 \begin_inset Flex Code
4792 status collapsed
4793
4794 \begin_layout Plain Layout
4795 kmap
4796 \end_layout
4797
4798 \end_inset
4799
4800  file maps keystrokes to characters or strings.
4801  As the name suggests,
4802  it sets a keyboard mapping.
4803  The 
4804 \begin_inset Flex Code
4805 status collapsed
4806
4807 \begin_layout Plain Layout
4808 .kmap
4809 \end_layout
4810
4811 \end_inset
4812
4813
4814 \shape default
4815  file keywords 
4816 \shape up
4817
4818 \begin_inset Flex Code
4819 status collapsed
4820
4821 \begin_layout Plain Layout
4822
4823 \shape up
4824 kmap
4825 \end_layout
4826
4827 \end_inset
4828
4829
4830 \shape default
4831 ,
4832
4833 \shape up
4834  
4835 \shape default
4836
4837 \begin_inset Flex Code
4838 status collapsed
4839
4840 \begin_layout Plain Layout
4841
4842 \shape up
4843 kmod
4844 \end_layout
4845
4846 \end_inset
4847
4848 ,
4849
4850 \shape up
4851  
4852 \shape default
4853
4854 \begin_inset Flex Code
4855 status collapsed
4856
4857 \begin_layout Plain Layout
4858
4859 \shape up
4860 kxmod
4861 \end_layout
4862
4863 \end_inset
4864
4865 ,
4866  and 
4867 \begin_inset Flex Code
4868 status collapsed
4869
4870 \begin_layout Plain Layout
4871
4872 \shape up
4873 kcomb
4874 \end_layout
4875
4876 \end_inset
4877
4878  are described in this section.
4879 \end_layout
4880
4881 \begin_layout Labeling
4882 \labelwidthstring 00.00.0000
4883 \begin_inset Flex Code
4884 status collapsed
4885
4886 \begin_layout Plain Layout
4887
4888 \shape up
4889 kmap
4890 \end_layout
4891
4892 \end_inset
4893
4894  Map a character to a string
4895 \end_layout
4896
4897 \begin_layout LyX-Code
4898
4899 \backslash
4900 kmap 
4901 \family roman
4902 \emph on
4903 char
4904 \family default
4905 \emph default
4906  
4907 \family roman
4908 \emph on
4909 string
4910 \end_layout
4911
4912 \begin_layout Standard
4913 This will ma
4914 \family roman
4915 p
4916 \family default
4917  
4918 \family roman
4919 \emph on
4920 char
4921 \family default
4922 \emph default
4923  
4924 \family roman
4925 to
4926 \family default
4927  
4928 \family roman
4929 \emph on
4930 string
4931 \emph default
4932 .
4933  Note that in
4934 \family default
4935  
4936 \family roman
4937 \emph on
4938 string
4939 \emph default
4940 ,
4941
4942 \family default
4943  
4944 \family roman
4945 \shape up
4946 the double-quote (")
4947 \family default
4948 \shape default
4949  
4950 \family roman
4951 and
4952 \family default
4953  
4954 \family roman
4955 \shape up
4956 the backslash (
4957 \backslash
4958 )
4959 \family default
4960 \shape default
4961  
4962 \family roman
4963 must be escaped with a preceding backslash (
4964 \shape up
4965
4966 \backslash
4967
4968 \shape default
4969 )
4970 \family default
4971 .
4972 \end_layout
4973
4974 \begin_layout Standard
4975 An example of a 
4976 \begin_inset Flex Noun
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980
4981 \shape up
4982 kmap
4983 \end_layout
4984
4985 \end_inset
4986
4987  statement to cause the symbol 
4988 \begin_inset Flex Noun
4989 status collapsed
4990
4991 \begin_layout Plain Layout
4992
4993 \shape up
4994 /
4995 \end_layout
4996
4997 \end_inset
4998
4999  to be output for the keystroke 
5000 \begin_inset Flex Noun
5001 status collapsed
5002
5003 \begin_layout Plain Layout
5004
5005 \shape up
5006 &
5007 \end_layout
5008
5009 \end_inset
5010
5011  is:
5012 \end_layout
5013
5014 \begin_layout LyX-Code
5015
5016 \backslash
5017 kmap & /
5018 \end_layout
5019
5020 \begin_layout Labeling
5021 \labelwidthstring 00.00.0000
5022 \begin_inset Flex Code
5023 status collapsed
5024
5025 \begin_layout Plain Layout
5026
5027 \shape up
5028 kmod
5029 \end_layout
5030
5031 \end_inset
5032
5033  Specify an accent character
5034 \end_layout
5035
5036 \begin_layout LyX-Code
5037
5038 \backslash
5039 kmod 
5040 \family roman
5041 \emph on
5042 char accent allowed
5043 \end_layout
5044
5045 \begin_layout Standard
5046 This will make the cha
5047 \family roman
5048 racter
5049 \family default
5050  
5051 \family roman
5052 \emph on
5053 char
5054 \family default
5055 \emph default
5056  
5057 \family roman
5058 \shape up
5059 \emph on
5060 be an accent
5061 \family default
5062 \shape default
5063 \emph default
5064  
5065 \family roman
5066 \shape up
5067 on the
5068 \family default
5069 \shape default
5070  
5071 \family roman
5072 \shape up
5073 \emph on
5074 allowed
5075 \family default
5076 \shape default
5077 \emph default
5078  
5079 \family roman
5080 \shape up
5081 cha
5082 \family default
5083 racter(s).
5084  This is the dead key
5085 \begin_inset Foot
5086 status collapsed
5087
5088 \begin_layout Plain Layout
5089 The term 
5090 \family roman
5091 \emph on
5092 dead key
5093 \family default
5094 \emph default
5095  refers to a key that does not produce a character by itself,
5096  but when followed with another key,
5097  produces the desired accent character.
5098  For example,
5099  a German characte
5100 \family roman
5101 r with an umlaut like
5102 \family default
5103  
5104 \family roman
5105 \emph on
5106 ä
5107 \family default
5108 \emph default
5109  
5110 \family roman
5111 can be produced in this manner.
5112 \end_layout
5113
5114 \end_inset
5115
5116  mechanism.
5117  
5118 \end_layout
5119
5120 \begin_layout Standard
5121 If you 
5122 \family roman
5123 hit
5124 \family default
5125  
5126 \family roman
5127 \emph on
5128 char
5129 \family default
5130 \emph default
5131  
5132 \family roman
5133 and then another key not in
5134 \family default
5135  
5136 \family roman
5137 \emph on
5138 allowed
5139 \emph default
5140 ,
5141  you will get a
5142 \family default
5143  
5144 \family roman
5145 \emph on
5146 char
5147 \family default
5148 \emph default
5149  
5150 \family roman
5151 followed by the other,
5152  not allowed key,
5153  as output.
5154
5155 \family default
5156  Note that a 
5157 \begin_inset Flex Noun
5158 status collapsed
5159
5160 \begin_layout Plain Layout
5161
5162 \shape up
5163 Backspace
5164 \end_layout
5165
5166 \end_inset
5167
5168  cancels a dead key,
5169  so if 
5170 \family roman
5171 you hit
5172 \family default
5173  
5174 \family roman
5175 \emph on
5176 char
5177 \family default
5178 \emph default
5179  
5180 \begin_inset Flex Noun
5181 status collapsed
5182
5183 \begin_layout Plain Layout
5184
5185 \shape up
5186 \emph on
5187 Backspace
5188 \end_layout
5189
5190 \end_inset
5191
5192 ,
5193  the cursor will not go one position backwards but will instead cancel the effect t
5194 \family roman
5195 hat
5196 \family default
5197  
5198 \family roman
5199 \shape up
5200 \emph on
5201 char
5202 \family default
5203 \shape default
5204 \emph default
5205  
5206 \family roman
5207 \shape up
5208 might have had on the next keystroke.
5209  
5210 \end_layout
5211
5212 \begin_layout Standard
5213 The following example specifies that the character ' is to be an acute accent,
5214  allowed on the characters a,
5215  e,
5216  i,
5217  o,
5218  u,
5219  A,
5220  E,
5221  I,
5222  O,
5223  and U:
5224 \end_layout
5225
5226 \begin_layout LyX-Code
5227
5228 \backslash
5229 kmod ' acute aeiouAEIOU
5230 \end_layout
5231
5232 \begin_layout Labeling
5233 \labelwidthstring 00.00.0000
5234 \begin_inset Flex Code
5235 status collapsed
5236
5237 \begin_layout Plain Layout
5238 kxmod
5239 \end_layout
5240
5241 \end_inset
5242
5243  Specify an exception to the accent character
5244 \end_layout
5245
5246 \begin_layout LyX-Code
5247
5248 \backslash
5249 kxmod  
5250 \family roman
5251 \emph on
5252 accent char result
5253 \end_layout
5254
5255 \begin_layout Standard
5256 This defines an exce
5257 \family roman
5258 ption for
5259 \family default
5260  
5261 \family roman
5262 \emph on
5263 accent
5264 \family default
5265 \emph default
5266  
5267 \family roman
5268 on
5269 \family default
5270  
5271 \family roman
5272 \emph on
5273 char
5274 \emph default
5275 .
5276  T
5277 \shape up
5278 he
5279 \family default
5280 \shape default
5281  
5282 \family roman
5283 \shape up
5284 \emph on
5285 accent
5286 \family default
5287 \shape default
5288 \emph default
5289  
5290 \family roman
5291 \shape up
5292 must
5293 \family default
5294 \shape default
5295  
5296 \shape up
5297 have been assigned a keystroke with a previous
5298 \shape default
5299  
5300 \begin_inset Flex Code
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304
5305 \shape up
5306
5307 \backslash
5308 kmo
5309 \shape default
5310 d
5311 \end_layout
5312
5313 \end_inset
5314
5315  declar
5316 \family roman
5317 ation and
5318 \family default
5319  
5320 \family roman
5321 \emph on
5322 char
5323 \family default
5324 \emph default
5325  
5326 \family roman
5327 must not belong in the
5328 \family default
5329  
5330 \family roman
5331 \emph on
5332 allowed
5333 \family default
5334 \emph default
5335  
5336 \family roman
5337 set of
5338 \family default
5339  
5340 \family roman
5341 \emph on
5342 accent
5343 \emph default
5344 .
5345  When
5346 \family default
5347  
5348 \family roman
5349 \shape up
5350 you enter the
5351 \family default
5352 \shape default
5353  
5354 \family roman
5355 \shape up
5356 \emph on
5357 accent char
5358 \family default
5359 \shape default
5360 \emph default
5361  
5362 \family roman
5363 \shape up
5364 sequence,
5365
5366 \family default
5367 \shape default
5368  
5369 \family roman
5370 \shape up
5371 \emph on
5372 result
5373 \emph default
5374  is produced.
5375  If such a declaration does not exist in
5376 \family default
5377 \shape default
5378  
5379 \shape up
5380 the
5381 \shape default
5382  
5383 \begin_inset Flex Code
5384 status collapsed
5385
5386 \begin_layout Plain Layout
5387
5388 \shape up
5389 .kmap
5390 \end_layout
5391
5392 \end_inset
5393
5394  file and yo
5395 \family roman
5396 u enter
5397 \family default
5398  
5399 \family roman
5400 \emph on
5401 accent char
5402 \emph default
5403 ,
5404  you get
5405 \family default
5406  
5407 \family roman
5408 \emph on
5409 accent_key char
5410 \emph default
5411  where
5412 \family default
5413  
5414 \family roman
5415 \emph on
5416 accent_key
5417 \emph default
5418  is the first arg
5419 \family default
5420 ument of the 
5421 \begin_inset Flex Code
5422 status collapsed
5423
5424 \begin_layout Plain Layout
5425
5426 \shape up
5427
5428 \backslash
5429 kmod
5430 \end_layout
5431
5432 \end_inset
5433
5434  declaration.
5435  
5436 \end_layout
5437
5438 \begin_layout Standard
5439 The following command produces causes äi to be produced when you enter acute-i ('i):
5440 \end_layout
5441
5442 \begin_layout LyX-Code
5443
5444 \backslash
5445 kxmod acute i "
5446 \backslash
5447
5448 \backslash
5449 '{
5450 \backslash
5451
5452 \backslash
5453 i}"
5454 \end_layout
5455
5456 \begin_layout Labeling
5457 \labelwidthstring 00.00.0000
5458 \begin_inset Flex Code
5459 status collapsed
5460
5461 \begin_layout Plain Layout
5462 kcomb
5463 \end_layout
5464
5465 \end_inset
5466
5467  Combine two accent characters
5468 \end_layout
5469
5470 \begin_layout LyX-Code
5471
5472 \backslash
5473 kcomb 
5474 \family roman
5475 \emph on
5476 accent1 accent2 allowed
5477 \end_layout
5478
5479 \begin_layout Standard
5480 This one is getting pretty esoteric.
5481  It allows you to combine the effect 
5482 \family roman
5483 of
5484 \family default
5485  
5486 \family roman
5487 \emph on
5488 accent1
5489 \family default
5490 \emph default
5491  
5492 \family roman
5493 and
5494 \family default
5495  
5496 \family roman
5497 \emph on
5498 accent2
5499 \family default
5500 \emph default
5501  
5502 \family roman
5503 (in that order!) on
5504 \family default
5505  
5506 \family roman
5507 \emph on
5508 allowed
5509 \family default
5510 \emph default
5511  
5512 \family roman
5513 chars.
5514  The keystrokes for
5515 \family default
5516  
5517 \family roman
5518 \emph on
5519 accent1
5520 \family default
5521 \emph default
5522  
5523 \family roman
5524 and
5525 \family default
5526  
5527 \family roman
5528 \emph on
5529 accent2
5530 \family default
5531 \emph default
5532  
5533 \family roman
5534 must have be
5535 \family default
5536 en set with a 
5537 \begin_inset Flex Code
5538 status collapsed
5539
5540 \begin_layout Plain Layout
5541
5542 \shape up
5543
5544 \backslash
5545 kmod
5546 \end_layout
5547
5548 \end_inset
5549
5550  command at 
5551 \family roman
5552 a
5553 \family default
5554  
5555 \family roman
5556 \emph on
5557 previous
5558 \family default
5559 \emph default
5560  
5561 \family roman
5562 point in the
5563 \family default
5564  file.
5565  
5566 \end_layout
5567
5568 \begin_layout Standard
5569 Consider this example from the 
5570 \begin_inset Flex Code
5571 status collapsed
5572
5573 \begin_layout Plain Layout
5574
5575 \shape up
5576 greek.kmap
5577 \end_layout
5578
5579 \end_inset
5580
5581  file:
5582 \end_layout
5583
5584 \begin_layout LyX-Code
5585
5586 \backslash
5587 kmod ;
5588  acute aeioyvhAEIOYVH 
5589 \backslash
5590 kmod :
5591  umlaut iyIY 
5592 \backslash
5593 kcomb acute umlaut iyIY
5594 \end_layout
5595
5596 \begin_layout Standard
5597 This allows you to press 
5598 \begin_inset Flex Noun
5599 status collapsed
5600
5601 \begin_layout Plain Layout
5602
5603 \shape up
5604 ;:i
5605 \end_layout
5606
5607 \end_inset
5608
5609  and get the effect of 
5610 \begin_inset Flex Code
5611 status collapsed
5612
5613 \begin_layout Plain Layout
5614
5615 \shape up
5616
5617 \backslash
5618 '{
5619 \backslash
5620 "{i}}
5621 \end_layout
5622
5623 \end_inset
5624
5625 .
5626  
5627 \family roman
5628 \shape up
5629 A backspace
5630 \family default
5631 \shape default
5632  in this case cancels the last dead key,
5633  so if you press 
5634 \begin_inset Flex Noun
5635 status collapsed
5636
5637 \begin_layout Plain Layout
5638
5639 \shape up
5640 ;:
5641  Backspace i
5642 \end_layout
5643
5644 \end_inset
5645
5646  you get 
5647 \begin_inset Flex Code
5648 status collapsed
5649
5650 \begin_layout Plain Layout
5651
5652 \shape up
5653
5654 \backslash
5655 '{i}
5656 \end_layout
5657
5658 \end_inset
5659
5660 .
5661 \end_layout
5662
5663 \begin_layout Subsection
5664 The .cdef File
5665 \end_layout
5666
5667 \begin_layout Standard
5668 After the 
5669 \begin_inset Flex Code
5670 status collapsed
5671
5672 \begin_layout Plain Layout
5673
5674 \shape up
5675 .kmap
5676 \end_layout
5677
5678 \end_inset
5679
5680  mapping is performed,
5681  a 
5682 \begin_inset Flex Code
5683 status collapsed
5684
5685 \begin_layout Plain Layout
5686
5687 \shape up
5688 .cde
5689 \shape default
5690 f
5691 \end_layout
5692
5693 \end_inset
5694
5695  file maps the strings that the symbols generate to characters in the current font.
5696  The \SpecialChar LyX
5697  distribution currently includes at least the 
5698 \begin_inset Flex Code
5699 status collapsed
5700
5701 \begin_layout Plain Layout
5702
5703 \shape up
5704 iso8859-1.cdef
5705 \end_layout
5706
5707 \end_inset
5708
5709  and 
5710 \begin_inset Flex Code
5711 status collapsed
5712
5713 \begin_layout Plain Layout
5714
5715 \shape up
5716 iso8859-2.cdef
5717 \end_layout
5718
5719 \end_inset
5720
5721  files.
5722 \end_layout
5723
5724 \begin_layout Standard
5725 In general the 
5726 \begin_inset Flex Code
5727 status collapsed
5728
5729 \begin_layout Plain Layout
5730
5731 \shape up
5732 .cdef
5733 \end_layout
5734
5735 \end_inset
5736
5737  file is a sequence of declarations of the form
5738 \end_layout
5739
5740 \begin_layout LyX-Code
5741
5742 \family roman
5743 \emph on
5744 char_index_in_set
5745 \family default
5746 \emph default
5747  
5748 \family roman
5749 \emph on
5750  string
5751 \end_layout
5752
5753 \begin_layout Standard
5754 For example,
5755  in order to map 
5756 \begin_inset Flex Noun
5757 status collapsed
5758
5759 \begin_layout Plain Layout
5760
5761 \shape up
5762
5763 \backslash
5764 '{e}
5765 \end_layout
5766
5767 \end_inset
5768
5769  to the corresponding character in the iso-8859-1 set (233),
5770  the following declaration is used
5771 \end_layout
5772
5773 \begin_layout LyX-Code
5774 233 "
5775 \backslash
5776
5777 \backslash
5778 '{e}"
5779 \end_layout
5780
5781 \begin_layout Standard
5782 with 
5783 \begin_inset Flex Code
5784 status collapsed
5785
5786 \begin_layout Plain Layout
5787
5788 \backslash
5789
5790 \end_layout
5791
5792 \end_inset
5793
5794  and 
5795 \begin_inset Flex Code
5796 status collapsed
5797
5798 \begin_layout Plain Layout
5799 "
5800 \end_layout
5801
5802 \end_inset
5803
5804  being escap
5805 \family roman
5806 ed in
5807 \family default
5808  
5809 \family roman
5810 \emph on
5811 string
5812 \emph default
5813 .
5814  Note that
5815 \family default
5816  the same character can apply to more than one string.
5817  In the 
5818 \begin_inset Flex Code
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822 i
5823 \shape up
5824 so-8859-7.cdef
5825 \end_layout
5826
5827 \end_inset
5828
5829  file you have
5830 \end_layout
5831
5832 \begin_layout LyX-Code
5833 192 "
5834 \backslash
5835
5836 \backslash
5837 '{
5838 \backslash
5839
5840 \backslash
5841
5842 \backslash
5843 "{i}}"
5844 \begin_inset Newline newline
5845 \end_inset
5846
5847 192 "
5848 \backslash
5849
5850 \backslash
5851
5852 \backslash
5853 "{
5854 \backslash
5855
5856 \backslash
5857 '{i}}"
5858 \end_layout
5859
5860 \begin_layout Standard
5861 If \SpecialChar LyX
5862  cannot find a mapping for the string produced by the keystroke or a deadkey sequence,
5863  it will check if it looks like an accented char and try to draw an accent over the character on screen.
5864 \end_layout
5865
5866 \begin_layout Subsection
5867 Dead Keys
5868 \end_layout
5869
5870 \begin_layout Standard
5871 There is a second way to add support for international characters through so-called dead-keys.
5872  A dead-key works in combination with a letter to produce an accented character.
5873  Here,
5874  we'll explain how to create a really simple dead-key to illustrate how they work.
5875 \end_layout
5876
5877 \begin_layout Standard
5878 Suppose you happen to need the circumflex character,
5879  
5880 \begin_inset Quotes eld
5881 \end_inset
5882
5883  ̂
5884 \begin_inset Quotes erd
5885 \end_inset
5886
5887 .
5888  You could bind the 
5889 \begin_inset Flex Noun
5890 status collapsed
5891
5892 \begin_layout Plain Layout
5893 ^
5894 \end_layout
5895
5896 \end_inset
5897
5898 -key [a.k.a.
5899 \begin_inset space ~
5900 \end_inset
5901
5902
5903 \begin_inset Flex Noun
5904 status collapsed
5905
5906 \begin_layout Plain Layout
5907 Shift-6
5908 \end_layout
5909
5910 \end_inset
5911
5912 ] to the \SpecialChar LyX
5913  command 
5914 \begin_inset Flex Code
5915 status collapsed
5916
5917 \begin_layout Plain Layout
5918 accent-circumflex
5919 \end_layout
5920
5921 \end_inset
5922
5923  in your 
5924 \begin_inset Flex Code
5925 status collapsed
5926
5927 \begin_layout Plain Layout
5928 lyxrc
5929 \end_layout
5930
5931 \end_inset
5932
5933  file.
5934  Now,
5935  whenever you type the 
5936 \begin_inset Flex Noun
5937 status collapsed
5938
5939 \begin_layout Plain Layout
5940 ^
5941 \end_layout
5942
5943 \end_inset
5944
5945 -key followed by a letter,
5946  that letter will have a circumflex accent on it.
5947  For example,
5948  the sequence 
5949 \begin_inset Quotes eld
5950 \end_inset
5951
5952
5953 \begin_inset Flex Noun
5954 status collapsed
5955
5956 \begin_layout Plain Layout
5957 ^e
5958 \end_layout
5959
5960 \end_inset
5961
5962
5963 \begin_inset Quotes erd
5964 \end_inset
5965
5966  produces the letter:
5967  
5968 \begin_inset Quotes eld
5969 \end_inset
5970
5971 ê
5972 \begin_inset Quotes erd
5973 \end_inset
5974
5975 .
5976  If you tried to type 
5977 \begin_inset Quotes eld
5978 \end_inset
5979
5980
5981 \begin_inset Flex Noun
5982 status collapsed
5983
5984 \begin_layout Plain Layout
5985 ^t
5986 \end_layout
5987
5988 \end_inset
5989
5990
5991 \begin_inset Quotes erd
5992 \end_inset
5993
5994 ,
5995  however,
5996  \SpecialChar LyX
5997  will complain with a beep,
5998  since a 
5999 \begin_inset Quotes eld
6000 \end_inset
6001
6002
6003 \begin_inset Flex Noun
6004 status collapsed
6005
6006 \begin_layout Plain Layout
6007 t
6008 \end_layout
6009
6010 \end_inset
6011
6012
6013 \begin_inset Quotes erd
6014 \end_inset
6015
6016  never takes a circumflex accent.
6017  Hitting 
6018 \begin_inset Flex Noun
6019 status collapsed
6020
6021 \begin_layout Plain Layout
6022 Space
6023 \end_layout
6024
6025 \end_inset
6026
6027  after a dead-key produces the bare-accent.
6028  Please note this last point!
6029  If you bind a key to a dead-key,
6030  you'll need to rebind the character on that key to yet another key.
6031  Binding the 
6032 \begin_inset Flex Noun
6033 status collapsed
6034
6035 \begin_layout Plain Layout
6036 ,-key
6037 \end_layout
6038
6039 \end_inset
6040
6041  to a cedilla is a bad idea,
6042  since you'll only get cedillas instead of commas.
6043 \end_layout
6044
6045 \begin_layout Standard
6046 One common way to bind dead-keys is to use 
6047 \begin_inset Flex Noun
6048 status collapsed
6049
6050 \begin_layout Plain Layout
6051 Meta-
6052 \end_layout
6053
6054 \end_inset
6055
6056 ,
6057  
6058 \begin_inset Flex Noun
6059 status collapsed
6060
6061 \begin_layout Plain Layout
6062 Ctrl-
6063 \end_layout
6064
6065 \end_inset
6066
6067 ,
6068  and 
6069 \begin_inset Flex Noun
6070 status collapsed
6071
6072 \begin_layout Plain Layout
6073 Shift-
6074 \end_layout
6075
6076 \end_inset
6077
6078  in combination with an accent,
6079  like 
6080 \begin_inset Quotes eld
6081 \end_inset
6082
6083
6084 \begin_inset Flex Noun
6085 status collapsed
6086
6087 \begin_layout Plain Layout
6088 ~
6089 \end_layout
6090
6091 \end_inset
6092
6093
6094 \begin_inset Quotes erd
6095 \end_inset
6096
6097  or 
6098 \begin_inset Quotes eld
6099 \end_inset
6100
6101
6102 \begin_inset Flex Noun
6103 status collapsed
6104
6105 \begin_layout Plain Layout
6106 ,
6107 \end_layout
6108
6109 \end_inset
6110
6111
6112 \begin_inset Quotes erd
6113 \end_inset
6114
6115  or 
6116 \begin_inset Quotes eld
6117 \end_inset
6118
6119
6120 \begin_inset Flex Noun
6121 status collapsed
6122
6123 \begin_layout Plain Layout
6124 ^
6125 \end_layout
6126
6127 \end_inset
6128
6129
6130 \begin_inset Quotes erd
6131 \end_inset
6132
6133 .
6134  Another way involves using 
6135 \begin_inset Flex Code
6136 status collapsed
6137
6138 \begin_layout Plain Layout
6139 xmodmap
6140 \end_layout
6141
6142 \end_inset
6143
6144  and 
6145 \begin_inset Flex Code
6146 status collapsed
6147
6148 \begin_layout Plain Layout
6149 xkeycaps
6150 \end_layout
6151
6152 \end_inset
6153
6154  to set up the special 
6155 \begin_inset Flex Code
6156 status collapsed
6157
6158 \begin_layout Plain Layout
6159 Mode_Switch
6160 \end_layout
6161
6162 \end_inset
6163
6164  key.
6165  The 
6166 \begin_inset Flex Code
6167 status collapsed
6168
6169 \begin_layout Plain Layout
6170 Mode_Switch
6171 \end_layout
6172
6173 \end_inset
6174
6175  acts in some ways just like 
6176 \begin_inset Flex Noun
6177 status collapsed
6178
6179 \begin_layout Plain Layout
6180 Shift
6181 \end_layout
6182
6183 \end_inset
6184
6185  and permits you to bind keys to accented characters.
6186  You can also turn keys into dead-keys by binding them to something like 
6187 \begin_inset Flex Code
6188 status collapsed
6189
6190 \begin_layout Plain Layout
6191 usldead_cedilla
6192 \end_layout
6193
6194 \end_inset
6195
6196  and then binding this symbolic key to the corresponding \SpecialChar LyX
6197  command.
6198 \begin_inset Foot
6199 status collapsed
6200
6201 \begin_layout Plain Layout
6202 Note from 
6203 \noun on
6204 John Weiss
6205 \noun default
6206 :
6207  This is exactly what I do in my 
6208 \begin_inset Flex Code
6209 status collapsed
6210
6211 \begin_layout Plain Layout
6212 ~/.lyx/lyxrc
6213 \end_layout
6214
6215 \end_inset
6216
6217  and my 
6218 \begin_inset Flex Code
6219 status collapsed
6220
6221 \begin_layout Plain Layout
6222 ~/.xmodmap
6223 \end_layout
6224
6225 \end_inset
6226
6227  files.
6228  I have my 
6229 \begin_inset Flex Noun
6230 status collapsed
6231
6232 \begin_layout Plain Layout
6233 Scroll
6234 \begin_inset space ~
6235 \end_inset
6236
6237 Lock
6238 \end_layout
6239
6240 \end_inset
6241
6242  key set up as 
6243 \begin_inset Flex Code
6244 status collapsed
6245
6246 \begin_layout Plain Layout
6247 Mode_Shift
6248 \end_layout
6249
6250 \end_inset
6251
6252  and a bunch of these 
6253 \begin_inset Quotes eld
6254 \end_inset
6255
6256
6257 \begin_inset Flex Code
6258 status collapsed
6259
6260 \begin_layout Plain Layout
6261 usldead_*
6262 \end_layout
6263
6264 \end_inset
6265
6266
6267 \begin_inset Quotes erd
6268 \end_inset
6269
6270  symbolic keys bound such things as 
6271 \begin_inset Flex Noun
6272 status collapsed
6273
6274 \begin_layout Plain Layout
6275 Scroll
6276 \begin_inset space ~
6277 \end_inset
6278
6279 Lock-^
6280 \end_layout
6281
6282 \end_inset
6283
6284  and 
6285 \begin_inset Flex Noun
6286 status collapsed
6287
6288 \begin_layout Plain Layout
6289 Scroll
6290 \begin_inset space ~
6291 \end_inset
6292
6293 Lock-~
6294 \end_layout
6295
6296 \end_inset
6297
6298 .
6299  This is how I produce my accented characters.
6300 \end_layout
6301
6302 \end_inset
6303
6304  You can make just about anything into the 
6305 \begin_inset Flex Code
6306 status collapsed
6307
6308 \begin_layout Plain Layout
6309 Mode_Switch
6310 \end_layout
6311
6312 \end_inset
6313
6314  key:
6315  One of the 
6316 \begin_inset Flex Noun
6317 status collapsed
6318
6319 \begin_layout Plain Layout
6320 Ctrl-
6321 \end_layout
6322
6323 \end_inset
6324
6325  keys,
6326  a spare function key,
6327  etc.
6328  As for the \SpecialChar LyX
6329  commands that produce accents,
6330  check the entry for 
6331 \begin_inset Flex Code
6332 status collapsed
6333
6334 \begin_layout Plain Layout
6335 accent-acute
6336 \end_layout
6337
6338 \end_inset
6339
6340  in the 
6341 \emph on
6342 Reference Manual
6343 \emph default
6344 .
6345  You'll find the complete list there.
6346 \end_layout
6347
6348 \begin_layout Subsection
6349 Saving your Language Configuration
6350 \end_layout
6351
6352 \begin_layout Standard
6353 You can edit your preferences so that your desired language environment is automatically configured when \SpecialChar LyX
6354  starts up,
6355  via the 
6356 \begin_inset Flex Noun
6357 status collapsed
6358
6359 \begin_layout Plain Layout
6360 Edit\SpecialChar menuseparator
6361 Preferences
6362 \end_layout
6363
6364 \end_inset
6365
6366  dialog.
6367 \end_layout
6368
6369 \begin_layout Chapter
6370
6371 \change_inserted -584632292 1610232084
6372 Creating and 
6373 \change_unchanged
6374 Installing New Document Classes,
6375  Layouts,
6376  and Templates
6377 \begin_inset CommandInset label
6378 LatexCommand label
6379 name "cha:Installing-New-Document"
6380
6381 \end_inset
6382
6383
6384 \begin_inset Argument 1
6385 status collapsed
6386
6387 \begin_layout Plain Layout
6388 Installing New Document Classes
6389 \end_layout
6390
6391 \end_inset
6392
6393
6394 \end_layout
6395
6396 \begin_layout Standard
6397 In this chapter,
6398  we describe the procedures for creating and installing new \SpecialChar LyX
6399  layout and template files,
6400  as well as offer a refresher on correctly installing new \SpecialChar LaTeX
6401  document classes.
6402  
6403 \end_layout
6404
6405 \begin_layout Standard
6406 First,
6407  let us a say a few words about how one ought to think about the relation between \SpecialChar LyX
6408  and \SpecialChar LaTeX
6409 .
6410  The thing to understand is that,
6411  in a certain sense,
6412  \SpecialChar LyX
6413  doesn't know anything about \SpecialChar LaTeX
6414 .
6415  Indeed,
6416  from \SpecialChar LyX
6417 's point of view,
6418  \SpecialChar LaTeX
6419  is just one of several 
6420 \begin_inset Quotes eld
6421 \end_inset
6422
6423 backend formats
6424 \begin_inset Quotes erd
6425 \end_inset
6426
6427  in which it is capable of producing output.
6428  Other such formats are DocBook,
6429  plaintext,
6430  and XHTML.
6431  \SpecialChar LaTeX
6432  is,
6433  of course,
6434  a particularly important format,
6435  but very little of the information \SpecialChar LyX
6436  has about \SpecialChar LaTeX
6437  is actually contained in the program itself.
6438 \begin_inset Foot
6439 status collapsed
6440
6441 \begin_layout Plain Layout
6442 Some commands are sufficiently complex that they are 
6443 \begin_inset Quotes eld
6444 \end_inset
6445
6446 hardcoded
6447 \begin_inset Quotes erd
6448 \end_inset
6449
6450  into \SpecialChar LyX
6451 .
6452  But the developers generally regard this as a Bad Thing.
6453 \end_layout
6454
6455 \end_inset
6456
6457  Rather,
6458  that information,
6459  even for the standard classes like 
6460 \begin_inset Flex Code
6461 status collapsed
6462
6463 \begin_layout Plain Layout
6464 article.cls
6465 \end_layout
6466
6467 \end_inset
6468
6469 ,
6470  is contained in `layout files'.
6471  Similarly,
6472  \SpecialChar LyX
6473  itself does not know much about DocBook or XHTML.
6474  What it knows is contained in layout files.
6475 \end_layout
6476
6477 \begin_layout Standard
6478 You can think of the layout file for a given document class as a translation manual between \SpecialChar LyX
6479  constructs—
6480 paragraphs with their corresponding styles,
6481  certain sorts of insets,
6482  etc—
6483 and the corresponding \SpecialChar LaTeX
6484 ,
6485  DocBook,
6486  or XHTML constructs.
6487  Almost everything \SpecialChar LyX
6488  knows about 
6489 \begin_inset Flex Code
6490 status collapsed
6491
6492 \begin_layout Plain Layout
6493 article.cls
6494 \end_layout
6495
6496 \end_inset
6497
6498 ,
6499  for example,
6500  is contained in the file 
6501 \begin_inset Flex Code
6502 status collapsed
6503
6504 \begin_layout Plain Layout
6505 article.layout
6506 \end_layout
6507
6508 \end_inset
6509
6510  and in various other files it includes.
6511  For this reason,
6512  anyone intending to write layout files should plan to study the existing files.
6513  A good place to start is with 
6514 \begin_inset Flex Code
6515 status collapsed
6516
6517 \begin_layout Plain Layout
6518 stdsections.inc
6519 \end_layout
6520
6521 \end_inset
6522
6523 ,
6524  which is included in 
6525 \begin_inset Flex Code
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529 article.layout
6530 \end_layout
6531
6532 \end_inset
6533
6534 ,
6535  
6536 \begin_inset Flex Code
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 book.layout
6541 \end_layout
6542
6543 \end_inset
6544
6545 ,
6546  and many of the other layout files for document classes.
6547  This file is where sections and the like are defined:
6548  
6549 \begin_inset Flex Code
6550 status collapsed
6551
6552 \begin_layout Plain Layout
6553 stdsections.inc
6554 \end_layout
6555
6556 \end_inset
6557
6558  tells \SpecialChar LyX
6559  how paragraphs that are marked with the Section,
6560  Subsection,
6561  etc,
6562  styles can be translated into corresponding \SpecialChar LaTeX
6563 ,
6564  DocBook,
6565  and XHTML commands and tags.
6566  The 
6567 \begin_inset Flex Code
6568 status collapsed
6569
6570 \begin_layout Plain Layout
6571 article.layout
6572 \end_layout
6573
6574 \end_inset
6575
6576  file basically just includes several of these 
6577 \begin_inset Flex Code
6578 status collapsed
6579
6580 \begin_layout Plain Layout
6581 std*.inc
6582 \end_layout
6583
6584 \end_inset
6585
6586  files.
6587 \end_layout
6588
6589 \begin_layout Standard
6590 Defining the \SpecialChar LyX
6591 –\SpecialChar LaTeX
6592  correspondence is not the only thing layout files do,
6593  though.
6594  Their other job is to define how the \SpecialChar LyX
6595  constructs themselves will appear on-screen.
6596  The fact that layout files have these two jobs is often a source of confusion,
6597  because they are completely separate.
6598  Telling \SpecialChar LyX
6599  how to translate a certain paragraph style into \SpecialChar LaTeX
6600  does not tell \SpecialChar LyX
6601  how to display it;
6602  conversely,
6603  telling \SpecialChar LyX
6604  how to display a certain paragraph style does not tell \SpecialChar LyX
6605  how to translate it into \SpecialChar LaTeX
6606  (let alone tell \SpecialChar LaTeX
6607  how to display it).
6608  So,
6609  in general,
6610  when you define a new \SpecialChar LyX
6611  construct,
6612  you must always do two quite separate things:
6613  (i)
6614 \begin_inset space ~
6615 \end_inset
6616
6617 tell \SpecialChar LyX
6618  how to translate it into \SpecialChar LaTeX
6619  and (ii)
6620 \begin_inset space ~
6621 \end_inset
6622
6623 tell \SpecialChar LyX
6624  how to display it.
6625 \end_layout
6626
6627 \begin_layout Standard
6628 Much the same is true,
6629  of course,
6630  as regards \SpecialChar LyX
6631 's other backend formats,
6632  though XHTML is in some ways different,
6633  because in that case \SpecialChar LyX
6634  
6635 \emph on
6636 is
6637 \emph default
6638  able,
6639  to some extent,
6640  to use information about how it should display a paragraph on the screen to output information (in the form of CSS) about how the paragraph should be displayed in a browser.
6641  Even in this case,
6642  however,
6643  the distinction between what \SpecialChar LyX
6644  does internally and how things are rendered externally remains in force,
6645  and the two can be controlled separately.
6646  See 
6647 \begin_inset CommandInset ref
6648 LatexCommand ref
6649 reference "sec:Tags-for-XHTML"
6650 nolink "false"
6651
6652 \end_inset
6653
6654  for the details.
6655 \end_layout
6656
6657 \begin_layout Section
6658 Installing new \SpecialChar LaTeX
6659  files
6660 \end_layout
6661
6662 \begin_layout Standard
6663 Some installations may not include a \SpecialChar LaTeX
6664  package or class file that you would like to use within \SpecialChar LyX
6665 .
6666  For example,
6667  you might need Foil\SpecialChar TeX
6668 ,
6669  a package for preparing slides for overhead projectors.
6670  Modern \SpecialChar LaTeX
6671  distributions like \SpecialChar TeX
6672 Live (2008 or newer) or MiK\SpecialChar TeX
6673  provide a user interface for installing such packages.
6674  For example,
6675  with MiK\SpecialChar TeX
6676 ,
6677  you start the program 
6678 \begin_inset Quotes eld
6679 \end_inset
6680
6681 Package
6682 \begin_inset space ~
6683 \end_inset
6684
6685 Manager
6686 \begin_inset Quotes erd
6687 \end_inset
6688
6689  to get a list of available packages.
6690  To install one of them,
6691  right click on it or use the corresponding toolbar button.
6692 \end_layout
6693
6694 \begin_layout Standard
6695 If your \SpecialChar LaTeX
6696  distribution does not provide such a `package manager',
6697  or if the package is not available from your distribution,
6698  then follow these steps to install it manually:
6699 \end_layout
6700
6701 \begin_layout Enumerate
6702 Get the package from 
6703 \begin_inset CommandInset href
6704 LatexCommand href
6705 name "CTAN"
6706 target "http://www.ctan.org/"
6707 literal "false"
6708
6709 \end_inset
6710
6711  or wherever.
6712 \end_layout
6713
6714 \begin_layout Enumerate
6715 If the package contains a file with the ending 
6716 \begin_inset Quotes eld
6717 \end_inset
6718
6719
6720 \begin_inset Flex Code
6721 status collapsed
6722
6723 \begin_layout Plain Layout
6724 .ins
6725 \end_layout
6726
6727 \end_inset
6728
6729
6730 \begin_inset Quotes erd
6731 \end_inset
6732
6733  (is the case for Foil\SpecialChar TeX
6734 ) then open a console,
6735  change to the folder of this file and execute the command 
6736 \begin_inset Flex Code
6737 status collapsed
6738
6739 \begin_layout Plain Layout
6740 latex foiltex.ins
6741 \end_layout
6742
6743 \end_inset
6744
6745 .
6746  You have now unpacked the package and have all files to install it.
6747  Most \SpecialChar LaTeX
6748 -packages are not packed and you can skip this step.
6749 \end_layout
6750
6751 \begin_layout Enumerate
6752 Now you need to decide if the package should be available for all users or only for you.
6753 \end_layout
6754
6755 \begin_deeper
6756 \begin_layout Enumerate
6757 On *nix systems (Linux,
6758  OSX,
6759  etc.),
6760  if you want the new package to be available for all users on your system,
6761  then install it in your `local' \SpecialChar TeX
6762  tree,
6763  otherwise install it in your own `user' \SpecialChar TeX
6764  tree.
6765  Where these trees should be created,
6766  if they do not already exist,
6767  depends on your system.
6768  To find this out,
6769  look in the file 
6770 \begin_inset Flex Code
6771 status collapsed
6772
6773 \begin_layout Plain Layout
6774 texmf.cnf
6775 \end_layout
6776
6777 \end_inset
6778
6779 .
6780 \begin_inset Foot
6781 status collapsed
6782
6783 \begin_layout Plain Layout
6784 This is usually in the directory 
6785 \begin_inset Flex Code
6786 status collapsed
6787
6788 \begin_layout Plain Layout
6789 $TEXMF/web2c
6790 \end_layout
6791
6792 \end_inset
6793
6794 ,
6795  though you can execute the command 
6796 \begin_inset Flex Code
6797 status collapsed
6798
6799 \begin_layout Plain Layout
6800 kpsewhich texmf.cnf
6801 \end_layout
6802
6803 \end_inset
6804
6805  to locate it.
6806 \end_layout
6807
6808 \end_inset
6809
6810  The location of the `local' \SpecialChar TeX
6811  tree is defined by the 
6812 \begin_inset Flex Code
6813 status collapsed
6814
6815 \begin_layout Plain Layout
6816 TEXMFLOCAL
6817 \end_layout
6818
6819 \end_inset
6820
6821  variable;
6822  this is usually somewhere like 
6823 \begin_inset Flex Code
6824 status collapsed
6825
6826 \begin_layout Plain Layout
6827 /usr/local/share/texmf
6828 \end_layout
6829
6830 \end_inset
6831
6832  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6833 Live distribution.
6834  The location of the `user' \SpecialChar TeX
6835  tree is defined by 
6836 \begin_inset Flex Code
6837 status collapsed
6838
6839 \begin_layout Plain Layout
6840 TEXMFHOME
6841 \end_layout
6842
6843 \end_inset
6844
6845  and is commonly 
6846 \begin_inset Flex Code
6847 status collapsed
6848
6849 \begin_layout Plain Layout
6850 $HOME/texmf
6851 \end_layout
6852
6853 \end_inset
6854
6855  or 
6856 \begin_inset Flex Code
6857 status collapsed
6858
6859 \begin_layout Plain Layout
6860
6861 \family sans
6862 $HOME/.texliveXXXX
6863 \end_layout
6864
6865 \end_inset
6866
6867 .
6868  (If these variables are not predefined,
6869  you have to define them.) You'll probably need root permissions to create or modify the `local' tree,
6870  but not for your `user' tree.
6871 \begin_inset Newline newline
6872 \end_inset
6873
6874 In general,
6875  it is recommended to install in the user tree because your user will not be modified or even overwritten when you upgrade your system.
6876  It will typically also be backed up together with everything else when you backup your home directory (which,
6877  of course,
6878  you do on a regular basis).
6879 \end_layout
6880
6881 \begin_layout Enumerate
6882 On Windows,
6883  if you want the new package to be available for all users on your system,
6884  change to the folder where \SpecialChar LaTeX
6885  is installed and then change to the subfolder 
6886 \begin_inset Flex Code
6887 status collapsed
6888
6889 \begin_layout Plain Layout
6890 ~
6891 \backslash
6892 tex
6893 \backslash
6894 latex
6895 \end_layout
6896
6897 \end_inset
6898
6899 .
6900  (For MiK\SpecialChar TeX
6901 ,
6902  this would be by default the folder 
6903 \begin_inset Flex Code
6904 status collapsed
6905
6906 \begin_layout Plain Layout
6907 ~:
6908 \backslash
6909 Programs
6910 \backslash
6911 MiKTeX
6912 \backslash
6913 tex
6914 \backslash
6915 latex
6916 \end_layout
6917
6918 \end_inset
6919
6920 .)
6921 \begin_inset Foot
6922 status collapsed
6923
6924 \begin_layout Plain Layout
6925 Note that this will be the correct path only on English installations.
6926  On a German one,
6927  it would be 
6928 \begin_inset Flex Code
6929 status collapsed
6930
6931 \begin_layout Plain Layout
6932 ~:
6933 \backslash
6934 Programme
6935 \backslash
6936 MiKTeX
6937 \backslash
6938 tex
6939 \backslash
6940 latex
6941 \end_layout
6942
6943 \end_inset
6944
6945 ,
6946  and similarly for other languages.
6947 \end_layout
6948
6949 \end_inset
6950
6951  Create there a new folder 
6952 \begin_inset Flex Code
6953 status collapsed
6954
6955 \begin_layout Plain Layout
6956 foiltex
6957 \end_layout
6958
6959 \end_inset
6960
6961  and copy all files of the package into it.
6962  
6963 \begin_inset Newline newline
6964 \end_inset
6965
6966 If the package should only available for you or you don't have admin permissions,
6967  do the same,
6968  but in the local \SpecialChar LaTeX
6969  folder.
6970  E.
6971 \begin_inset space \thinspace{}
6972 \end_inset
6973
6974 g.,
6975  for MiK\SpecialChar TeX
6976
6977 \begin_inset space ~
6978 \end_inset
6979
6980 2.8 under Windows XP,
6981  this would be the folder:
6982 \begin_inset Newline newline
6983 \end_inset
6984
6985
6986 \family sans
6987
6988 \begin_inset Flex Code
6989 status collapsed
6990
6991 \begin_layout Plain Layout
6992 ~:
6993 \backslash
6994 Documents and Settings
6995 \backslash
6996 <username>
6997 \backslash
6998 Application Data
6999 \backslash
7000
7001 \end_layout
7002
7003 \end_inset
7004
7005
7006 \begin_inset Newline newline
7007 \end_inset
7008
7009
7010 \family default
7011
7012 \begin_inset Phantom HPhantom
7013 status open
7014
7015 \begin_layout Plain Layout
7016
7017 \family sans
7018 ~:
7019 \backslash
7020
7021 \end_layout
7022
7023 \end_inset
7024
7025
7026 \begin_inset Flex Code
7027 status collapsed
7028
7029 \begin_layout Plain Layout
7030 MiKTeX
7031 \backslash
7032 2.8
7033 \backslash
7034 tex
7035 \backslash
7036 latex
7037 \end_layout
7038
7039 \end_inset
7040
7041
7042 \begin_inset Newline newline
7043 \end_inset
7044
7045 On Vista,
7046  it would be:
7047 \begin_inset Newline newline
7048 \end_inset
7049
7050
7051 \begin_inset Flex Code
7052 status collapsed
7053
7054 \begin_layout Plain Layout
7055 ~:
7056 \backslash
7057 Users
7058 \backslash
7059 <username>
7060 \backslash
7061 AppData
7062 \backslash
7063 Roaming
7064 \backslash
7065 2.8
7066 \backslash
7067 MiKTeX
7068 \backslash
7069 tex
7070 \backslash
7071 latex
7072 \end_layout
7073
7074 \end_inset
7075
7076
7077 \end_layout
7078
7079 \end_deeper
7080 \begin_layout Enumerate
7081 Now one only need to tell \SpecialChar LaTeX
7082  that there are new files.
7083  This depends on the used \SpecialChar LaTeX
7084 -Distribution:
7085 \end_layout
7086
7087 \begin_deeper
7088 \begin_layout Enumerate
7089 For \SpecialChar TeX
7090 Live execute the command 
7091 \begin_inset Flex Code
7092 status collapsed
7093
7094 \begin_layout Plain Layout
7095 texhash
7096 \end_layout
7097
7098 \end_inset
7099
7100  from a console.
7101  If you installed the package for all users,
7102  then you will probably need to have root permissions for that.
7103 \end_layout
7104
7105 \begin_layout Enumerate
7106 For MiK\SpecialChar TeX
7107 ,
7108  if you have installed the package for all users,
7109  start the program 
7110 \begin_inset Quotes eld
7111 \end_inset
7112
7113 Settings
7114 \begin_inset space ~
7115 \end_inset
7116
7117 (Admin)
7118 \begin_inset Quotes erd
7119 \end_inset
7120
7121  and press the button marked 
7122 \begin_inset Quotes eld
7123 \end_inset
7124
7125 Refresh FNDB
7126 \begin_inset Quotes erd
7127 \end_inset
7128
7129 .
7130  Otherwise start the program 
7131 \begin_inset Quotes eld
7132 \end_inset
7133
7134 Settings
7135 \begin_inset Quotes erd
7136 \end_inset
7137
7138  and do the same.
7139 \end_layout
7140
7141 \end_deeper
7142 \begin_layout Enumerate
7143 Finally,
7144  you need to tell \SpecialChar LyX
7145  that there are new packages available.
7146  So,
7147  in \SpecialChar LyX
7148 ,
7149  use the menu 
7150 \begin_inset Flex Noun
7151 status collapsed
7152
7153 \begin_layout Plain Layout
7154 Tools
7155 \family sans
7156 \SpecialChar menuseparator
7157 Reconfigure
7158 \end_layout
7159
7160 \end_inset
7161
7162  and then restart \SpecialChar LyX
7163 .
7164 \end_layout
7165
7166 \begin_layout Standard
7167 Now the package is installed.
7168  In our example,
7169  the document class 
7170 \begin_inset Flex Code
7171 status collapsed
7172
7173 \begin_layout Plain Layout
7174 FoilTex
7175 \end_layout
7176
7177 \end_inset
7178
7179  will now be available under 
7180 \begin_inset Flex Noun
7181 status collapsed
7182
7183 \begin_layout Plain Layout
7184 Document\SpecialChar menuseparator
7185 Settings\SpecialChar menuseparator
7186 Document Class
7187 \end_layout
7188
7189 \end_inset
7190
7191  (in the 
7192 \begin_inset Quotes eld
7193 \end_inset
7194
7195 Presentations
7196 \begin_inset Quotes erd
7197 \end_inset
7198
7199  category).
7200  
7201 \end_layout
7202
7203 \begin_layout Standard
7204 If you would like to use a \SpecialChar LaTeX
7205  document class that is not even listed in the menu 
7206 \begin_inset Flex Noun
7207 status collapsed
7208
7209 \begin_layout Plain Layout
7210 Document\SpecialChar menuseparator
7211 Settings\SpecialChar menuseparator
7212 Document Class
7213 \end_layout
7214
7215 \end_inset
7216
7217 ,
7218  then you need to create a `layout' file for it.
7219  That is the topic of the next section.
7220 \end_layout
7221
7222 \begin_layout Section
7223 Types of layout files
7224 \end_layout
7225
7226 \begin_layout Standard
7227 This section describes the various sorts of \SpecialChar LyX
7228  files that contain layout information.
7229  These files describe various paragraph and character styles,
7230  determining how \SpecialChar LyX
7231  should display them and how they should be translated into \SpecialChar LaTeX
7232 ,
7233  DocBook,
7234  XHTML,
7235  or whatever output format is being used.
7236  
7237 \end_layout
7238
7239 \begin_layout Standard
7240 We shall try to provide a thorough description of the process of writing layout files here.
7241  However,
7242  there are so many different types of documents supported even by just \SpecialChar LaTeX
7243  that we can't hope to cover every different possibility or problem you might encounter.
7244  The \SpecialChar LyX
7245  users' list is frequented by people with lots of experience with layout design who are willing to share what they've learned,
7246  so please feel free to ask questions there.
7247 \end_layout
7248
7249 \begin_layout Standard
7250 As you prepare to write a new layout,
7251  it is extremely helpful to look at the layouts distributed with \SpecialChar LyX
7252 .
7253  If you write a \SpecialChar LyX
7254  layout for a \SpecialChar LaTeX
7255  document class that might also be used by others,
7256  or write a module that might be useful to others,
7257  then you should consider posting your layout to the 
7258 \begin_inset CommandInset href
7259 LatexCommand href
7260 name "layout section on the LyX wiki"
7261 target "https://wiki.lyx.org/Layouts/Layouts"
7262 literal "false"
7263
7264 \end_inset
7265
7266  or even to the \SpecialChar LyX
7267  developers' list,
7268  so that it might be included in \SpecialChar LyX
7269  itself.
7270 \begin_inset Foot
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 Note that \SpecialChar LyX
7275  is licensed under the General Public License,
7276  so any material that is contributed to \SpecialChar LyX
7277  must be similarly licensed.
7278 \end_layout
7279
7280 \end_inset
7281
7282
7283 \end_layout
7284
7285 \begin_layout Subsection
7286 Layout modules
7287 \begin_inset CommandInset label
7288 LatexCommand label
7289 name "subsec:Layout-modules"
7290
7291 \end_inset
7292
7293
7294 \end_layout
7295
7296 \begin_layout Standard
7297 We have spoken to this point about `layout files'.
7298  But there are different sorts of files that contain layout information.
7299  Layout files,
7300  strictly so called,
7301  have the 
7302 \begin_inset Flex Code
7303 status collapsed
7304
7305 \begin_layout Plain Layout
7306 .layout
7307 \end_layout
7308
7309 \end_inset
7310
7311  extension and provide \SpecialChar LyX
7312  with information about document classes.
7313  Since \SpecialChar LyX
7314  1.6 layout information can also be contained in layout 
7315 \emph on
7316 modules
7317 \emph default
7318 ,
7319  which have the 
7320 \begin_inset Flex Code
7321 status collapsed
7322
7323 \begin_layout Plain Layout
7324 .module
7325 \end_layout
7326
7327 \end_inset
7328
7329  extension.
7330  Modules are to \SpecialChar LaTeX
7331  packages much as layouts are to \SpecialChar LaTeX
7332  classes,
7333  and some modules—
7334 such as the 
7335 \begin_inset Flex Code
7336 status collapsed
7337
7338 \begin_layout Plain Layout
7339 endnotes
7340 \end_layout
7341
7342 \end_inset
7343
7344  module—
7345 specifically provide support for one package.
7346  In a sense,
7347  layout modules are similar to included
7348 \begin_inset Foot
7349 status collapsed
7350
7351 \begin_layout Plain Layout
7352 These can have any extension,
7353  but by convention have the 
7354 \begin_inset Flex Code
7355 status collapsed
7356
7357 \begin_layout Plain Layout
7358 .inc
7359 \end_layout
7360
7361 \end_inset
7362
7363  extension.
7364 \end_layout
7365
7366 \end_inset
7367
7368  files—
7369 files like 
7370 \begin_inset Flex Code
7371 status collapsed
7372
7373 \begin_layout Plain Layout
7374 stdsections.inc
7375 \end_layout
7376
7377 \end_inset
7378
7379
7380 in that modules are not specific to a given document class but may be used with many different classes.
7381  The difference is that using an included file with 
7382 \begin_inset Flex Code
7383 status collapsed
7384
7385 \begin_layout Plain Layout
7386 article.cls
7387 \end_layout
7388
7389 \end_inset
7390
7391  requires editing that file.
7392  Modules,
7393  by contrast,
7394  are selected in the 
7395 \begin_inset Flex Noun
7396 status collapsed
7397
7398 \begin_layout Plain Layout
7399 Document\SpecialChar menuseparator
7400 Settings
7401 \end_layout
7402
7403 \end_inset
7404
7405  dialog.
7406 \end_layout
7407
7408 \begin_layout Standard
7409 Building modules is the easiest way to get started with layout editing,
7410  since it can be as simple as adding a single new paragraph style or flex inset.
7411  But modules may,
7412  in principle,
7413  contain anything a layout file can contain.
7414 \end_layout
7415
7416 \begin_layout Standard
7417 After creating a new module and copying it to the 
7418 \begin_inset Flex Code
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 layouts/
7423 \end_layout
7424
7425 \end_inset
7426
7427  folder,
7428  you will need to reconfigure and then restart \SpecialChar LyX
7429  for the module to appear in the menu.
7430  However,
7431  changes you make to the module will be seen immediately,
7432  if you open 
7433 \begin_inset Flex Noun
7434 status collapsed
7435
7436 \begin_layout Plain Layout
7437 Document\SpecialChar menuseparator
7438 Settings
7439 \end_layout
7440
7441 \end_inset
7442
7443 ,
7444  highlight something,
7445  and then hit 
7446 \begin_inset Quotes eld
7447 \end_inset
7448
7449 OK
7450 \begin_inset Quotes erd
7451 \end_inset
7452
7453 .
7454  
7455 \emph on
7456 It is strongly recommended that you save your work before doing this
7457 \emph default
7458 .
7459  In fact,
7460  
7461 \emph on
7462 it is strongly recommended that you not attempt to edit modules while simultaneously working on actual documents
7463 \emph default
7464 .
7465  Though of course the developers strive to keep \SpecialChar LyX
7466  stable in such situations,
7467  syntax errors and the like in your module file could cause strange behavior.
7468 \end_layout
7469
7470 \begin_layout Subsubsection
7471 Local Layout
7472 \end_layout
7473
7474 \begin_layout Standard
7475 Modules are to \SpecialChar LyX
7476  as packages are to \SpecialChar LaTeX
7477 .
7478  Sometimes,
7479  however,
7480  you find yourself wanting a specific inset or character style just for one document and writing a module that will also be available to other documents makes little sense.
7481  What you need is \SpecialChar LyX
7482 's 
7483 \begin_inset Quotes eld
7484 \end_inset
7485
7486 Local Layout
7487 \begin_inset Quotes erd
7488 \end_inset
7489
7490 .
7491 \end_layout
7492
7493 \begin_layout Standard
7494 You will find it under 
7495 \family sans
7496 Document\SpecialChar menuseparator
7497 Settings\SpecialChar menuseparator
7498 Local Layout
7499 \family default
7500 .
7501  The large text box allows you to enter anything that you might enter in a layout file or module.
7502  You can think of a document's local layout,
7503  in fact,
7504  as a module that belongs just to it.
7505  So,
7506  in particular,
7507  you must enter a 
7508 \begin_inset Flex Code
7509 status collapsed
7510
7511 \begin_layout Plain Layout
7512 Format
7513 \end_layout
7514
7515 \end_inset
7516
7517  tag.
7518  Any format is acceptable,
7519  but one would normally use the format current at the time.
7520  (In \SpecialChar LyX
7521  
7522 \begin_inset Info
7523 type  "lyxinfo"
7524 arg   "version"
7525 \end_inset
7526
7527 ,
7528  the current layout format is 
7529 \begin_inset Info
7530 type  "lyxinfo"
7531 arg   "layoutformat"
7532 \end_inset
7533
7534 .)
7535 \end_layout
7536
7537 \begin_layout Standard
7538 When you have entered something in the 
7539 \begin_inset Flex Code
7540 status collapsed
7541
7542 \begin_layout Plain Layout
7543 Local Layout
7544 \end_layout
7545
7546 \end_inset
7547
7548  pane,
7549  \SpecialChar LyX
7550  will enable the 
7551 \begin_inset Quotes eld
7552 \end_inset
7553
7554 Validate
7555 \begin_inset Quotes erd
7556 \end_inset
7557
7558  button at the bottom.
7559  Clicking this button will cause \SpecialChar LyX
7560  to determine whether what you have entered is valid layout information for the chosen format.
7561  \SpecialChar LyX
7562  will report the result but,
7563  unfortunately,
7564  will not tell you what errors there might have been.
7565  These will be written to the terminal,
7566  however,
7567  if \SpecialChar LyX
7568  is started from a terminal.
7569  You will not be permitted to save your local layout until you have entered something valid.
7570 \end_layout
7571
7572 \begin_layout Standard
7573 The warnings at the end of the previous section apply here,
7574  too.
7575  Do not play with local layout while you are actually working,
7576  especially if you have not saved your document.
7577  That said,
7578  using local layout with a test document can be a very convenient way to try out layout ideas,
7579  or even to start developing a module.
7580 \end_layout
7581
7582 \begin_layout Subsection
7583 Layout for 
7584 \begin_inset Flex Noun
7585 status collapsed
7586
7587 \begin_layout Plain Layout
7588 .sty
7589 \end_layout
7590
7591 \end_inset
7592
7593  files
7594 \end_layout
7595
7596 \begin_layout Standard
7597 There are two situations you are likely to encounter when wanting to support a new \SpecialChar LaTeX
7598  document class,
7599  involving style (
7600 \begin_inset Flex Code
7601 status collapsed
7602
7603 \begin_layout Plain Layout
7604 .sty
7605 \end_layout
7606
7607 \end_inset
7608
7609 ) files and \SpecialChar LaTeX2e
7610  class (
7611 \begin_inset Flex Code
7612 status collapsed
7613
7614 \begin_layout Plain Layout
7615 .cls
7616 \end_layout
7617
7618 \end_inset
7619
7620 ) .
7621  Supporting a style file is usually fairly easy.
7622  Supporting a new class file is a bit harder.
7623  We'll discuss the former in this section and the latter in the next.
7624  
7625 \change_deleted 5863208 1594239023
7626 Similar remarks apply,
7627  of course,
7628  if you want to support a new DocBook DTD.
7629 \change_unchanged
7630
7631 \end_layout
7632
7633 \begin_layout Standard
7634 The easier case is the one in which your new document class is provided as a style file that is to be used in conjunction with an already supported document class.
7635  For the sake of the example,
7636  we'll assume that the style file is called 
7637 \begin_inset Flex Noun
7638 status collapsed
7639
7640 \begin_layout Plain Layout
7641 myclass.sty
7642 \end_layout
7643
7644 \end_inset
7645
7646  and that it is meant to be used with 
7647 \begin_inset Flex Noun
7648 status collapsed
7649
7650 \begin_layout Plain Layout
7651 report.cls
7652 \end_layout
7653
7654 \end_inset
7655
7656 ,
7657  which is a standard class.
7658  
7659 \end_layout
7660
7661 \begin_layout Standard
7662 Start by copying the existing class's layout file into your local directory:
7663 \begin_inset Foot
7664 status collapsed
7665
7666 \begin_layout Plain Layout
7667 Of course,
7668  which directory is your local directory will vary by platform,
7669  and \SpecialChar LyX
7670  allows you to specify your local directory on startup,
7671  too,
7672  using the 
7673 \begin_inset Flex Code
7674 status collapsed
7675
7676 \begin_layout Plain Layout
7677 -userdir
7678 \end_layout
7679
7680 \end_inset
7681
7682  option.
7683 \end_layout
7684
7685 \end_inset
7686
7687
7688 \end_layout
7689
7690 \begin_layout LyX-Code
7691 cp report.layout ~/.lyx/layouts/myclass.layout
7692 \end_layout
7693
7694 \begin_layout Standard
7695 Then edit 
7696 \begin_inset Flex Code
7697 status collapsed
7698
7699 \begin_layout Plain Layout
7700 myclass.layout
7701 \end_layout
7702
7703 \end_inset
7704
7705  and change the line:
7706  
7707 \end_layout
7708
7709 \begin_layout LyX-Code
7710
7711 \backslash
7712 DeclareLaTeXClass{Report (Standard Class)}
7713 \end_layout
7714
7715 \begin_layout Standard
7716 to read
7717 \end_layout
7718
7719 \begin_layout LyX-Code
7720
7721 \backslash
7722 DeclareLaTeXClass[report,
7723  myclass.sty]{Report (My Class)}
7724 \end_layout
7725
7726 \begin_layout Standard
7727 Then add:
7728 \end_layout
7729
7730 \begin_layout LyX-Code
7731 Preamble 
7732 \begin_inset Newline newline
7733 \end_inset
7734
7735     
7736 \backslash
7737 usepackage{myclass}
7738 \begin_inset Newline newline
7739 \end_inset
7740
7741 EndPreamble
7742 \end_layout
7743
7744 \begin_layout Standard
7745 near the top of the file.
7746 \end_layout
7747
7748 \begin_layout Standard
7749 Start \SpecialChar LyX
7750  and select 
7751 \begin_inset Flex Noun
7752 status collapsed
7753
7754 \begin_layout Plain Layout
7755 Tools\SpecialChar menuseparator
7756 Reconfigure
7757 \end_layout
7758
7759 \end_inset
7760
7761 .
7762  Then restart \SpecialChar LyX
7763  and try creating a new document.
7764  You should see "
7765 \begin_inset Flex Noun
7766 status collapsed
7767
7768 \begin_layout Plain Layout
7769 Report (My Class)
7770 \end_layout
7771
7772 \end_inset
7773
7774 " as a document class option in the 
7775 \begin_inset Flex Noun
7776 status collapsed
7777
7778 \begin_layout Plain Layout
7779 Document\SpecialChar menuseparator
7780 Settings
7781 \end_layout
7782
7783 \end_inset
7784
7785  dialog.
7786  It is likely that some of the sectioning commands and such in your new class will work differently from how they worked in the base class—
7787
7788 \begin_inset Flex Code
7789 status collapsed
7790
7791 \begin_layout Plain Layout
7792 report
7793 \end_layout
7794
7795 \end_inset
7796
7797  in this example—
7798 so you can fiddle around with the settings for the different sections if you wish.
7799  The layout information for sections is contained in 
7800 \begin_inset Flex Code
7801 status collapsed
7802
7803 \begin_layout Plain Layout
7804 stdsections.inc
7805 \end_layout
7806
7807 \end_inset
7808
7809 ,
7810  but you do not need to copy and change this file.
7811  Instead,
7812  you can simply add your changes to your layout file,
7813  after the line 
7814 \begin_inset Flex Code
7815 status collapsed
7816
7817 \begin_layout Plain Layout
7818 Input stdclass.inc
7819 \end_layout
7820
7821 \end_inset
7822
7823 ,
7824  which itself includes 
7825 \begin_inset Flex Code
7826 status collapsed
7827
7828 \begin_layout Plain Layout
7829 stdsections.inc
7830 \end_layout
7831
7832 \end_inset
7833
7834 .
7835  For example,
7836  you might add these lines:
7837 \end_layout
7838
7839 \begin_layout LyX-Code
7840 Style Chapter
7841 \end_layout
7842
7843 \begin_layout LyX-Code
7844     Font
7845 \end_layout
7846
7847 \begin_layout LyX-Code
7848         Family Sans
7849 \end_layout
7850
7851 \begin_layout LyX-Code
7852     EndFont
7853 \end_layout
7854
7855 \begin_layout LyX-Code
7856 End
7857 \end_layout
7858
7859 \begin_layout Standard
7860 to change the font for chapter headings to sans-serif.
7861  This will override (or,
7862  in this case,
7863  add to) the existing declaration for the Chapter style.
7864  
7865 \end_layout
7866
7867 \begin_layout Standard
7868 Your new package may also provide commands or environments not present in the base class.
7869  In this case,
7870  you will want to add these to the layout file.
7871  See 
7872 \begin_inset CommandInset ref
7873 LatexCommand ref
7874 reference "sec:TextClass"
7875 nolink "false"
7876
7877 \end_inset
7878
7879  for information on how to do so.
7880 \end_layout
7881
7882 \begin_layout Standard
7883 If 
7884 \begin_inset Flex Noun
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 myclass.sty
7889 \end_layout
7890
7891 \end_inset
7892
7893  can be used with several different document classes,
7894  and even if it cannot,
7895  you might find it easiest just to write a module that you can load with the base class.
7896  The simplest possible such module would be:
7897 \end_layout
7898
7899 \begin_layout LyX-Code
7900 #
7901 \backslash
7902 DeclareLyXModule{My Class} 
7903 \end_layout
7904
7905 \begin_layout LyX-Code
7906 #DescriptionBegin 
7907 \end_layout
7908
7909 \begin_layout LyX-Code
7910 #Support for myclass.sty.
7911 \end_layout
7912
7913 \begin_layout LyX-Code
7914 #DescriptionEnd
7915 \begin_inset Newline newline
7916 \end_inset
7917
7918
7919 \end_layout
7920
7921 \begin_layout LyX-Code
7922 Format 
7923 \begin_inset Info
7924 type  "lyxinfo"
7925 arg   "layoutformat"
7926 \end_inset
7927
7928
7929 \begin_inset Newline newline
7930 \end_inset
7931
7932
7933 \end_layout
7934
7935 \begin_layout LyX-Code
7936 Preamble
7937 \begin_inset Newline newline
7938 \end_inset
7939
7940     
7941 \backslash
7942 usepackage{myclass}
7943 \begin_inset Newline newline
7944 \end_inset
7945
7946 EndPreamble
7947 \end_layout
7948
7949 \begin_layout Standard
7950 A more complex module might modify the behavior of some existing constructs or define some new ones.
7951  Again,
7952  see 
7953 \begin_inset CommandInset ref
7954 LatexCommand ref
7955 reference "sec:TextClass"
7956 nolink "false"
7957
7958 \end_inset
7959
7960  for discussion.
7961 \end_layout
7962
7963 \begin_layout Subsection
7964 Layout for 
7965 \begin_inset Flex Noun
7966 status collapsed
7967
7968 \begin_layout Plain Layout
7969 .cls
7970 \end_layout
7971
7972 \end_inset
7973
7974  files
7975 \end_layout
7976
7977 \begin_layout Standard
7978 There are two possibilities here.
7979  One is that the class file is itself based upon an existing document class.
7980  For example,
7981  many thesis classes are based upon 
7982 \begin_inset Flex Noun
7983 status collapsed
7984
7985 \begin_layout Plain Layout
7986 book.cls
7987 \end_layout
7988
7989 \end_inset
7990
7991 .
7992  To see whether yours is,
7993  look for a line like
7994 \end_layout
7995
7996 \begin_layout LyX-Code
7997
7998 \backslash
7999 LoadClass{book}
8000 \end_layout
8001
8002 \begin_layout Standard
8003 in the file.
8004  If so,
8005  then you may proceed largely as in the previous section,
8006  though the 
8007 \begin_inset Flex Code
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 Declare\SpecialChar LaTeX
8012 Class
8013 \end_layout
8014
8015 \end_inset
8016
8017  line will be different.
8018  If your new class is 
8019 \begin_inset Flex Code
8020 status collapsed
8021
8022 \begin_layout Plain Layout
8023 thesis
8024 \end_layout
8025
8026 \end_inset
8027
8028  and it is based upon 
8029 \begin_inset Flex Code
8030 status collapsed
8031
8032 \begin_layout Plain Layout
8033 book
8034 \end_layout
8035
8036 \end_inset
8037
8038 ,
8039  then the line should read:
8040 \begin_inset Foot
8041 status collapsed
8042
8043 \begin_layout Plain Layout
8044 And it will be easiest if you save the file to 
8045 \begin_inset Flex Code
8046 status collapsed
8047
8048 \begin_layout Plain Layout
8049 thesis.layout
8050 \end_layout
8051
8052 \end_inset
8053
8054 :
8055  \SpecialChar LyX
8056  assumes that the document class has the same name as the layout file.
8057  
8058 \end_layout
8059
8060 \end_inset
8061
8062
8063 \end_layout
8064
8065 \begin_layout LyX-Code
8066
8067 \backslash
8068 DeclareLaTeXClass[thesis,book]{thesis}
8069 \end_layout
8070
8071 \begin_layout Standard
8072 If,
8073  on the other hand,
8074  the new class is not based upon an existing class,
8075  you will probably have to 
8076 \begin_inset Quotes eld
8077 \end_inset
8078
8079 roll your own
8080 \begin_inset Quotes erd
8081 \end_inset
8082
8083  layout.
8084  We strongly suggest copying an existing layout file which uses a similar \SpecialChar LaTeX
8085  class and then modifying it,
8086  if you can do so.
8087  At least use an existing file as a starting point so you can find out what items you need to worry about.
8088  Again,
8089  the specifics are covered below.
8090 \end_layout
8091
8092 \begin_layout Subsection
8093 Creating templates
8094 \begin_inset CommandInset label
8095 LatexCommand label
8096 name "subsec:Creating-Templates"
8097
8098 \end_inset
8099
8100
8101 \end_layout
8102
8103 \begin_layout Standard
8104 Once you have written a layout file for a new document class,
8105  you might want to consider writing a 
8106 \emph on
8107 template
8108 \emph default
8109  for it,
8110  too.
8111  A template acts as a kind of tutorial for your layout,
8112  showing how it might be used,
8113  though containing dummy content.
8114  You can of course look at the various templates included with \SpecialChar LyX
8115  for ideas.
8116 \end_layout
8117
8118 \begin_layout Standard
8119 Templates are created just like usual documents:
8120  using \SpecialChar LyX
8121 .
8122  The only difference is that usual documents contain all possible settings,
8123  including the font scheme and the paper size.
8124  Usually a user doesn't want a template to overwrite his preferred settings for such parameters.
8125  For that reason,
8126  the designer of a template should remove the corresponding commands like 
8127 \begin_inset Flex Code
8128 status collapsed
8129
8130 \begin_layout Plain Layout
8131
8132 \backslash
8133 font_roman
8134 \end_layout
8135
8136 \end_inset
8137
8138  or 
8139 \begin_inset Flex Code
8140 status collapsed
8141
8142 \begin_layout Plain Layout
8143
8144 \backslash
8145 papersize
8146 \end_layout
8147
8148 \end_inset
8149
8150  from the template \SpecialChar LyX
8151  file.
8152  This can be done with any simple text-editor,
8153  for example 
8154 \begin_inset Flex Code
8155 status collapsed
8156
8157 \begin_layout Plain Layout
8158 vi
8159 \end_layout
8160
8161 \end_inset
8162
8163  or 
8164 \begin_inset Flex Code
8165 status collapsed
8166
8167 \begin_layout Plain Layout
8168 notepad
8169 \end_layout
8170
8171 \end_inset
8172
8173 .
8174 \end_layout
8175
8176 \begin_layout Standard
8177 Put the edited template files you create in 
8178 \begin_inset Flex Code
8179 status collapsed
8180
8181 \begin_layout Plain Layout
8182 UserDir/templates/
8183 \end_layout
8184
8185 \end_inset
8186
8187 ,
8188  copy the ones you use from the global template directory in 
8189 \begin_inset Flex Code
8190 status collapsed
8191
8192 \begin_layout Plain Layout
8193 LyXDir/templates/
8194 \end_layout
8195
8196 \end_inset
8197
8198  to the same place,
8199  and redefine the template path in the 
8200 \begin_inset Flex Noun
8201 status collapsed
8202
8203 \begin_layout Plain Layout
8204 Tools\SpecialChar menuseparator
8205 Preferences\SpecialChar menuseparator
8206 Paths
8207 \end_layout
8208
8209 \end_inset
8210
8211  dialog.
8212 \end_layout
8213
8214 \begin_layout Standard
8215 Note,
8216  by the way,
8217  that there is a template which has a particular meaning:
8218 \begin_inset Newline linebreak
8219 \end_inset
8220
8221
8222 \begin_inset Flex Code
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226 defaults.lyx
8227 \end_layout
8228
8229 \end_inset
8230
8231 .
8232  This template is loaded every time you create a new document with 
8233 \begin_inset Flex Noun
8234 status collapsed
8235
8236 \begin_layout Plain Layout
8237 File\SpecialChar menuseparator
8238 New
8239 \end_layout
8240
8241 \end_inset
8242
8243  in order to provide useful defaults.
8244  To create this template from inside \SpecialChar LyX
8245 ,
8246  all you have to do is to open a document with the correct settings,
8247  and use the 
8248 \begin_inset Flex Noun
8249 status collapsed
8250
8251 \begin_layout Plain Layout
8252 Save as Document Defaults
8253 \end_layout
8254
8255 \end_inset
8256
8257  button.
8258 \end_layout
8259
8260 \begin_layout Subsection
8261 Upgrading old layout files
8262 \end_layout
8263
8264 \begin_layout Standard
8265 The format of layout files changes with each \SpecialChar LyX
8266  release,
8267  so old layout files need to be converted to the new format.
8268  If \SpecialChar LyX
8269  reads a layout file in an older format,
8270  it automatically calls the script 
8271 \begin_inset Flex Code
8272 status collapsed
8273
8274 \begin_layout Plain Layout
8275 layout2layout.py
8276 \end_layout
8277
8278 \end_inset
8279
8280  to convert it to a temporary file in current format.
8281  The original file is left untouched.
8282  If you use the layout file often,
8283  then,
8284  you may want to convert it permanently,
8285  so that \SpecialChar LyX
8286  does not have to do so itself every time.
8287  To do this,
8288  you can call the converter manually:
8289 \end_layout
8290
8291 \begin_layout Enumerate
8292 rename the file 
8293 \begin_inset Flex Code
8294 status collapsed
8295
8296 \begin_layout Plain Layout
8297 myclass.layout
8298 \end_layout
8299
8300 \end_inset
8301
8302  to 
8303 \begin_inset Flex Code
8304 status collapsed
8305
8306 \begin_layout Plain Layout
8307 myclass.old
8308 \end_layout
8309
8310 \end_inset
8311
8312
8313 \end_layout
8314
8315 \begin_layout Enumerate
8316 Call the command
8317 \begin_inset Newline newline
8318 \end_inset
8319
8320
8321 \begin_inset Flex Code
8322 status collapsed
8323
8324 \begin_layout Plain Layout
8325 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8326 \end_layout
8327
8328 \end_inset
8329
8330
8331 \begin_inset Newline newline
8332 \end_inset
8333
8334 where 
8335 \begin_inset Flex Code
8336 status collapsed
8337
8338 \begin_layout Plain Layout
8339 LyXDir
8340 \end_layout
8341
8342 \end_inset
8343
8344  is the name of your \SpecialChar LyX
8345  system directory.
8346 \end_layout
8347
8348 \begin_layout Standard
8349 Note that manual conversion does not affect included files,
8350  so these will have to be converted separately.
8351 \end_layout
8352
8353 \begin_layout Subsection
8354 \begin_inset CommandInset label
8355 LatexCommand label
8356 name "subsec:Cite-Engine-Files"
8357
8358 \end_inset
8359
8360 Cite engine files
8361 \end_layout
8362
8363 \begin_layout Standard
8364 A specific form of layout files are the so-called 
8365 \begin_inset Flex Code
8366 status collapsed
8367
8368 \begin_layout Plain Layout
8369 *.citeengine
8370 \end_layout
8371
8372 \end_inset
8373
8374  files that are located in the 
8375 \begin_inset Flex Code
8376 status collapsed
8377
8378 \begin_layout Plain Layout
8379 citeengines/
8380 \end_layout
8381
8382 \end_inset
8383
8384  sub-directory.
8385  Their purpose is to define the specifics of \SpecialChar LaTeX
8386  packages aimed at bibliography generation,
8387  such as 
8388 \family sans
8389 natbib
8390 \family default
8391 ,
8392
8393 \family sans
8394  jurabib
8395 \family default
8396  or 
8397 \family sans
8398 biblatex
8399 \family default
8400 ,
8401  but also the way how normal Bib\SpecialChar TeX
8402  citations (without additional packages) are handled in \SpecialChar LyX
8403  is defined in such a file.
8404  
8405 \end_layout
8406
8407 \begin_layout Standard
8408 More specifically,
8409  it is defined which packages \SpecialChar LyX
8410  needs to load,
8411  which citation commands are available,
8412  how these are to be displayed in \SpecialChar LyX
8413  (in the workarea,
8414  the dialogs,
8415  the context menus) as well as in the XHTML and plain text output.
8416  Furthermore,
8417  the files specify available style variants (author-year,
8418  numerical,
8419  etc.) and their specifics.
8420  The cite engine files are also used to generate the options that are available in 
8421 \family sans
8422 Document\SpecialChar menuseparator
8423 Settings\SpecialChar menuseparator
8424 Bibliography\SpecialChar menuseparator
8425 Style engine
8426 \family default
8427 .
8428 \end_layout
8429
8430 \begin_layout Standard
8431 Even though a cite engine file is essentially a normal layout file that could theoretically include any layout information,
8432  it usually primarily includes some specific parameters such as 
8433 \begin_inset Flex Code
8434 status collapsed
8435
8436 \begin_layout Plain Layout
8437 MaxCiteNames
8438 \end_layout
8439
8440 \end_inset
8441
8442 ,
8443  
8444 \begin_inset Flex Code
8445 status collapsed
8446
8447 \begin_layout Plain Layout
8448 CiteFramework
8449 \end_layout
8450
8451 \end_inset
8452
8453 ,
8454  
8455 \begin_inset Flex Code
8456 status collapsed
8457
8458 \begin_layout Plain Layout
8459 CiteEngine
8460 \end_layout
8461
8462 \end_inset
8463
8464  and 
8465 \begin_inset Flex Code
8466 status collapsed
8467
8468 \begin_layout Plain Layout
8469 CiteFormat
8470 \end_layout
8471
8472 \end_inset
8473
8474  blocks.
8475  The syntax of the latter two is described in 
8476 \begin_inset CommandInset ref
8477 LatexCommand ref
8478 reference "subsec:Citation-engine-description"
8479 plural "false"
8480 caps "false"
8481 noprefix "false"
8482 nolink "false"
8483
8484 \end_inset
8485
8486  and 
8487 \begin_inset CommandInset ref
8488 LatexCommand ref
8489 reference "subsec:Citation-format-description"
8490 nolink "false"
8491
8492 \end_inset
8493
8494 ,
8495  as well as in the files themselves.
8496 \end_layout
8497
8498 \begin_layout Section
8499 \begin_inset CommandInset label
8500 LatexCommand label
8501 name "sec:TextClass"
8502
8503 \end_inset
8504
8505 The layout file format
8506 \end_layout
8507
8508 \begin_layout Standard
8509 The following sections describe how layout files are structured and written.
8510  Our advice is to go slowly,
8511  save and test often.
8512  It is really not that hard,
8513  except that the multitude of options can become overwhelming,
8514  especially if you try to check out too many at once.
8515  It becomes easier if you use existing layouts of \SpecialChar LyX
8516  as examples/reference or if you modify an existing layout to your needs.
8517 \end_layout
8518
8519 \begin_layout Standard
8520 Note that all the tags used in layout files are case-insensitive.
8521  This means that 
8522 \begin_inset Flex Code
8523 status collapsed
8524
8525 \begin_layout Plain Layout
8526 Style
8527 \end_layout
8528
8529 \end_inset
8530
8531 ,
8532  
8533 \begin_inset Flex Code
8534 status collapsed
8535
8536 \begin_layout Plain Layout
8537 style
8538 \end_layout
8539
8540 \end_inset
8541
8542  and 
8543 \begin_inset Flex Code
8544 status collapsed
8545
8546 \begin_layout Plain Layout
8547 StYlE
8548 \end_layout
8549
8550 \end_inset
8551
8552  are really the same tag.
8553  The possible arguments are printed in brackets after the tag's name.
8554  The default argument is typeset 
8555 \begin_inset Flex Code
8556 status collapsed
8557
8558 \begin_layout Plain Layout
8559
8560 \emph on
8561 emphasized
8562 \end_layout
8563
8564 \end_inset
8565
8566 .
8567  If the argument has a data type like 
8568 \begin_inset Quotes eld
8569 \end_inset
8570
8571 string
8572 \begin_inset Quotes erd
8573 \end_inset
8574
8575  or 
8576 \begin_inset Quotes eld
8577 \end_inset
8578
8579 float
8580 \begin_inset Quotes erd
8581 \end_inset
8582
8583 ,
8584  the default is shown like this:
8585  
8586 \begin_inset Flex Code
8587 status collapsed
8588
8589 \begin_layout Plain Layout
8590 float=
8591 \emph on
8592 default
8593 \end_layout
8594
8595 \end_inset
8596
8597 .
8598 \end_layout
8599
8600 \begin_layout Subsection
8601 The document class declaration and classification
8602 \end_layout
8603
8604 \begin_layout Standard
8605 Lines in a layout file which begin with 
8606 \begin_inset Flex Code
8607 status collapsed
8608
8609 \begin_layout Plain Layout
8610 #
8611 \end_layout
8612
8613 \end_inset
8614
8615  are comments.
8616  There is one exception to this rule.
8617  All 
8618 \begin_inset Flex Code
8619 status collapsed
8620
8621 \begin_layout Plain Layout
8622 *.layout
8623 \end_layout
8624
8625 \end_inset
8626
8627  files should begin with lines like:
8628 \end_layout
8629
8630 \begin_layout LyX-Code
8631
8632 \size small
8633 #% Do not delete the line below;
8634  configure depends on this 
8635 \end_layout
8636
8637 \begin_layout LyX-Code
8638
8639 \size small
8640 #  
8641 \backslash
8642 DeclareLaTeXClass{Article (Standard Class)}
8643 \end_layout
8644
8645 \begin_layout LyX-Code
8646
8647 \size small
8648 #  
8649 \backslash
8650 DeclareCategory{Articles}
8651 \end_layout
8652
8653 \begin_layout Standard
8654 The second and third lines are used when you (re)configure \SpecialChar LyX
8655 .
8656  The layout file is read by the \SpecialChar LaTeX
8657  script 
8658 \begin_inset Flex Code
8659 status collapsed
8660
8661 \begin_layout Plain Layout
8662 chkconfig.ltx
8663 \end_layout
8664
8665 \end_inset
8666
8667 ,
8668  in a special mode where 
8669 \begin_inset Flex Code
8670 status collapsed
8671
8672 \begin_layout Plain Layout
8673 #
8674 \end_layout
8675
8676 \end_inset
8677
8678  is ignored.
8679  The first line is just a \SpecialChar LaTeX
8680  comment,
8681  the second one contains the mandatory declaration of the text class and the third line contains the optional classification of the class.
8682  If these lines appear in a file named 
8683 \begin_inset Flex Code
8684 status collapsed
8685
8686 \begin_layout Plain Layout
8687 article.layout
8688 \end_layout
8689
8690 \end_inset
8691
8692 ,
8693  then they define a text class of name 
8694 \begin_inset Flex Code
8695 status collapsed
8696
8697 \begin_layout Plain Layout
8698 article
8699 \end_layout
8700
8701 \end_inset
8702
8703  (the name of the layout file) which uses the \SpecialChar LaTeX
8704  document class 
8705 \begin_inset Flex Code
8706 status collapsed
8707
8708 \begin_layout Plain Layout
8709 article.cls
8710 \end_layout
8711
8712 \end_inset
8713
8714  (the default is to use the same name as the layout).
8715  The string 
8716 \begin_inset Quotes eld
8717 \end_inset
8718
8719 Article (Standard Class)
8720 \begin_inset Quotes erd
8721 \end_inset
8722
8723  that appears above is used as a description of the text class in the 
8724 \begin_inset Flex Noun
8725 status collapsed
8726
8727 \begin_layout Plain Layout
8728 Document\SpecialChar menuseparator
8729 Settings
8730 \end_layout
8731
8732 \end_inset
8733
8734  dialog.
8735  The category (
8736 \begin_inset Quotes eld
8737 \end_inset
8738
8739 Articles
8740 \begin_inset Quotes erd
8741 \end_inset
8742
8743  in the example) is also used in the 
8744 \begin_inset Flex Noun
8745 status collapsed
8746
8747 \begin_layout Plain Layout
8748 Document\SpecialChar menuseparator
8749 Settings
8750 \end_layout
8751
8752 \end_inset
8753
8754  dialog:
8755  the text classes are grouped by these categories (which are usually genres,
8756  so typical categories are 
8757 \begin_inset Quotes eld
8758 \end_inset
8759
8760 Articles
8761 \begin_inset Quotes erd
8762 \end_inset
8763
8764 ,
8765  
8766 \begin_inset Quotes eld
8767 \end_inset
8768
8769 Books
8770 \begin_inset Quotes erd
8771 \end_inset
8772
8773 ,
8774  
8775 \begin_inset Quotes eld
8776 \end_inset
8777
8778 Reports
8779 \begin_inset Quotes erd
8780 \end_inset
8781
8782 ,
8783  
8784 \begin_inset Quotes eld
8785 \end_inset
8786
8787 Letters
8788 \begin_inset Quotes erd
8789 \end_inset
8790
8791 ,
8792  
8793 \begin_inset Quotes eld
8794 \end_inset
8795
8796 Presentations
8797 \begin_inset Quotes erd
8798 \end_inset
8799
8800 ,
8801  
8802 \begin_inset Quotes eld
8803 \end_inset
8804
8805 Curricula Vitae
8806 \begin_inset Quotes erd
8807 \end_inset
8808
8809  etc.).
8810  If no category has been declared,
8811  the class will be put in the 
8812 \begin_inset Quotes eld
8813 \end_inset
8814
8815 Uncategorized
8816 \begin_inset Quotes erd
8817 \end_inset
8818
8819  group.
8820 \end_layout
8821
8822 \begin_layout Standard
8823 Let's assume that you wrote your own text class that uses the 
8824 \begin_inset Flex Code
8825 status collapsed
8826
8827 \begin_layout Plain Layout
8828 article.cls
8829 \end_layout
8830
8831 \end_inset
8832
8833  document class,
8834  but where you changed the appearance of the section headings.
8835  If you put it in a file 
8836 \begin_inset Flex Code
8837 status collapsed
8838
8839 \begin_layout Plain Layout
8840 myarticle.layout
8841 \end_layout
8842
8843 \end_inset
8844
8845 ,
8846  the header of this file should be:
8847 \end_layout
8848
8849 \begin_layout LyX-Code
8850
8851 \size small
8852 #% Do not delete the line below;
8853  configure depends on this 
8854 \end_layout
8855
8856 \begin_layout LyX-Code
8857
8858 \size small
8859 #  
8860 \backslash
8861 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8862 \end_layout
8863
8864 \begin_layout LyX-Code
8865
8866 \size small
8867 #  
8868 \backslash
8869 DeclareCategory{Articles}
8870 \end_layout
8871
8872 \begin_layout Standard
8873 This declares a text class 
8874 \begin_inset Flex Code
8875 status collapsed
8876
8877 \begin_layout Plain Layout
8878 myarticle
8879 \end_layout
8880
8881 \end_inset
8882
8883 ,
8884  associated with the \SpecialChar LaTeX
8885  document class 
8886 \begin_inset Flex Code
8887 status collapsed
8888
8889 \begin_layout Plain Layout
8890 article.cls
8891 \end_layout
8892
8893 \end_inset
8894
8895  and described as 
8896 \begin_inset Quotes eld
8897 \end_inset
8898
8899 Article (with My Own Headings)
8900 \begin_inset Quotes erd
8901 \end_inset
8902
8903 .
8904  If your text class depends on several packages,
8905  you can declare it as:
8906 \end_layout
8907
8908 \begin_layout LyX-Code
8909
8910 \size small
8911 #% Do not delete the line below;
8912  configure depends on this 
8913 \end_layout
8914
8915 \begin_layout LyX-Code
8916
8917 \size small
8918 #  
8919 \backslash
8920 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8921 \end_layout
8922
8923 \begin_layout LyX-Code
8924
8925 \size small
8926 #  
8927 \backslash
8928 DeclareCategory{Articles}
8929 \end_layout
8930
8931 \begin_layout Standard
8932 This indicates that your text class uses the 
8933 \begin_inset Flex Code
8934 status collapsed
8935
8936 \begin_layout Plain Layout
8937 foo.sty
8938 \end_layout
8939
8940 \end_inset
8941
8942  package.
8943  
8944 \change_deleted 5863208 1594239179
8945 Finally,
8946  it is also possible to declare classes for DocBook code.
8947  Typical declarations will look like:
8948 \end_layout
8949
8950 \begin_layout LyX-Code
8951
8952 \change_deleted 5863208 1594239179
8953
8954 \size small
8955 #% Do not delete the line below;
8956  configure depends on this 
8957 \end_layout
8958
8959 \begin_layout LyX-Code
8960
8961 \change_deleted 5863208 1594239179
8962
8963 \size small
8964
8965 \backslash
8966 DeclareDocBookClass[article]{SGML (DocBook Article)}
8967 \end_layout
8968
8969 \begin_layout LyX-Code
8970
8971 \change_deleted 5863208 1594239179
8972
8973 \size small
8974
8975 \backslash
8976 DeclareCategory{Articles (DocBook)}
8977 \change_unchanged
8978
8979 \end_layout
8980
8981 \begin_layout Standard
8982 Note that these declarations can also be given an optional parameter declaring the name of the document class (but not a list).
8983 \end_layout
8984
8985 \begin_layout Standard
8986 So,
8987  to be as explicit as possible,
8988  the form of the layout declaration is:
8989 \end_layout
8990
8991 \begin_layout LyX-Code
8992
8993 \size small
8994 #  
8995 \backslash
8996 DeclareLaTeXClass[class,package.sty]{layout description}
8997 \end_layout
8998
8999 \begin_layout LyX-Code
9000
9001 \size small
9002 #  
9003 \backslash
9004 DeclareCategory{category}
9005 \end_layout
9006
9007 \begin_layout Standard
9008 The class need only be specified if the name of the \SpecialChar LaTeX
9009  class file and the name of the layout file are different or if there are packages to load.
9010  If the name of the class file is not specified,
9011  then \SpecialChar LyX
9012  will simply assume that it is the same as the name of the layout file.
9013 \end_layout
9014
9015 \begin_layout Standard
9016 When the text class has been modified to your taste,
9017  all you have to do is to copy it either to 
9018 \begin_inset Flex Code
9019 status collapsed
9020
9021 \begin_layout Plain Layout
9022 LyXDir/layouts/
9023 \end_layout
9024
9025 \end_inset
9026
9027  or to 
9028 \begin_inset Flex Code
9029 status collapsed
9030
9031 \begin_layout Plain Layout
9032 UserDir/layouts
9033 \end_layout
9034
9035 \end_inset
9036
9037 ,
9038  run 
9039 \begin_inset Flex Noun
9040 status collapsed
9041
9042 \begin_layout Plain Layout
9043 Tools\SpecialChar menuseparator
9044 Reconfigure
9045 \end_layout
9046
9047 \end_inset
9048
9049 ,
9050  exit \SpecialChar LyX
9051  and restart.
9052  Then your new text class should be available along with the others.
9053 \end_layout
9054
9055 \begin_layout Standard
9056 Once the layout file is installed,
9057  you can edit it and see your changes without having to reconfigure or to restart \SpecialChar LyX
9058 .
9059 \begin_inset Foot
9060 status collapsed
9061
9062 \begin_layout Plain Layout
9063 In versions of \SpecialChar LyX
9064  prior to 1.6,
9065  this was not true.
9066  As a result,
9067  editing layout files was very time consuming,
9068  since you had constantly to restart \SpecialChar LyX
9069  to see changes.
9070 \end_layout
9071
9072 \end_inset
9073
9074  You can force a reload of the current layout by using the \SpecialChar LyX
9075  function 
9076 \begin_inset Flex Noun
9077 status collapsed
9078
9079 \begin_layout Plain Layout
9080 layout-reload
9081 \end_layout
9082
9083 \end_inset
9084
9085 .
9086  There is no default binding for this function—
9087 though,
9088  of course,
9089  you can bind it to a key yourself.
9090  But you will normally use this function simply by entering it in the mini-buffer.
9091  
9092 \end_layout
9093
9094 \begin_layout Standard
9095
9096 \emph on
9097 Warning
9098 \emph default
9099 :
9100  
9101 \begin_inset Flex Noun
9102 status collapsed
9103
9104 \begin_layout Plain Layout
9105 layout-reload
9106 \end_layout
9107
9108 \end_inset
9109
9110  is very much an `advanced feature'.
9111  It is 
9112 \emph on
9113 strongly
9114 \emph default
9115  recommended that you save your work before using this function.
9116  In fact,
9117  it is 
9118 \emph on
9119 strongly
9120 \emph default
9121  recommended that you not attempt to edit layout information while simultaneously working on a document that you care about.
9122  Use a test document.
9123  Syntax errors and the like in your layout file could cause peculiar behavior.
9124  In particular,
9125  such errors could cause \SpecialChar LyX
9126  to regard the current layout as invalid and to attempt to switch to some other layout.
9127 \begin_inset Foot
9128 status collapsed
9129
9130 \begin_layout Plain Layout
9131 Really bad syntax errors may even caused \SpecialChar LyX
9132  to exit.
9133  This is because certain sorts of errors may make \SpecialChar LyX
9134  unable to read 
9135 \emph on
9136 any
9137 \emph default
9138  layout information.
9139  Please be careful.
9140 \end_layout
9141
9142 \end_inset
9143
9144  The \SpecialChar LyX
9145  team strives to keep \SpecialChar LyX
9146  stable in such situations,
9147  but safe is better than sorry.
9148 \begin_inset Foot
9149 status collapsed
9150
9151 \begin_layout Plain Layout
9152 While we're giving advice:
9153  make regular backups.
9154  And be nice to your mother.
9155 \end_layout
9156
9157 \end_inset
9158
9159
9160 \end_layout
9161
9162 \begin_layout Subsection
9163 The Module declaration
9164 \end_layout
9165
9166 \begin_layout Standard
9167 A module must begin with a line like the following:
9168 \end_layout
9169
9170 \begin_layout LyX-Code
9171 #
9172 \backslash
9173 DeclareLyXModule[endnotes.sty]{Endnotes}
9174 \change_inserted -712698321 1554395911
9175
9176 \end_layout
9177
9178 \begin_layout LyX-Code
9179
9180 \change_inserted -712698321 1554395924
9181
9182 \size small
9183 #
9184 \backslash
9185 DeclareCategory{Foot- and Endnotes}
9186 \change_deleted -712698321 1554395911
9187
9188 \size default
9189  
9190 \change_unchanged
9191
9192 \end_layout
9193
9194 \begin_layout Standard
9195 The mandatory argument
9196 \change_inserted -712698321 1554395956
9197  of 
9198 \family typewriter
9199
9200 \backslash
9201 DeclareLyXModule
9202 \change_unchanged
9203
9204 \family default
9205 ,
9206  in curly brackets,
9207  is the name of the module,
9208  as it should appear in 
9209 \begin_inset Flex Noun
9210 status collapsed
9211
9212 \begin_layout Plain Layout
9213 Document\SpecialChar menuseparator
9214 Settings\SpecialChar menuseparator
9215 Modules
9216 \end_layout
9217
9218 \end_inset
9219
9220 .
9221  The argument in square brackets is optional:
9222  It declares any \SpecialChar LaTeX
9223  packages on which the module depends.
9224  It is also possible to use the form 
9225 \begin_inset Flex Noun
9226 status collapsed
9227
9228 \begin_layout Plain Layout
9229 from->to
9230 \end_layout
9231
9232 \end_inset
9233
9234  as an optional argument,
9235  which declares that the module can only be used when there exists a conversion chain between the formats `
9236 \begin_inset Flex Code
9237 status collapsed
9238
9239 \begin_layout Plain Layout
9240 from
9241 \end_layout
9242
9243 \end_inset
9244
9245 ' and `
9246 \begin_inset Flex Code
9247 status collapsed
9248
9249 \begin_layout Plain Layout
9250 to
9251 \end_layout
9252
9253 \end_inset
9254
9255 '.
9256
9257 \change_inserted -712698321 1554396133
9258  The 
9259 \family typewriter
9260
9261 \backslash
9262 DeclareCategory
9263 \family default
9264  declaration is not strictly mandatory,
9265  but you should add it,
9266  since it is helpful to find the module.
9267  Please have a look at the existing module categories and if appropriate,
9268  use one of those.
9269 \change_unchanged
9270
9271 \end_layout
9272
9273 \begin_layout Standard
9274 The module 
9275 \change_inserted -712698321 1554395988
9276 and category 
9277 \change_unchanged
9278 declaration should then be followed by lines like the following:
9279 \begin_inset Foot
9280 status collapsed
9281
9282 \begin_layout Plain Layout
9283 Preferably in English if the module should be published with \SpecialChar LyX
9284 .
9285  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9286 \end_layout
9287
9288 \end_inset
9289
9290
9291 \end_layout
9292
9293 \begin_layout LyX-Code
9294 #DescriptionBegin 
9295 \end_layout
9296
9297 \begin_layout LyX-Code
9298 #Adds an endnote command,
9299  in addition to footnotes.
9300  
9301 \end_layout
9302
9303 \begin_layout LyX-Code
9304 #You will need to add  
9305 \backslash
9306 theendnotes in TeX code where you 
9307 \end_layout
9308
9309 \begin_layout LyX-Code
9310 #want the endnotes to appear.
9311  
9312 \end_layout
9313
9314 \begin_layout LyX-Code
9315 #DescriptionEnd 
9316 \end_layout
9317
9318 \begin_layout LyX-Code
9319 #Requires:
9320  somemodule | othermodule
9321 \end_layout
9322
9323 \begin_layout LyX-Code
9324 #Excludes:
9325  badmodule
9326 \end_layout
9327
9328 \begin_layout Standard
9329 The description is used in 
9330 \begin_inset Flex Noun
9331 status collapsed
9332
9333 \begin_layout Plain Layout
9334 Document\SpecialChar menuseparator
9335 Settings\SpecialChar menuseparator
9336 Modules
9337 \end_layout
9338
9339 \end_inset
9340
9341  to provide the user with information about what the module does.
9342  The 
9343 \begin_inset Flex Code
9344 status collapsed
9345
9346 \begin_layout Plain Layout
9347 Requires
9348 \end_layout
9349
9350 \end_inset
9351
9352  line is used to identify other modules with which this one must be used;
9353  the 
9354 \begin_inset Flex Code
9355 status collapsed
9356
9357 \begin_layout Plain Layout
9358 Excludes
9359 \end_layout
9360
9361 \end_inset
9362
9363  line is used to identify modules with which this one may not be used.
9364  Both are optional,
9365  and,
9366  as shown,
9367  multiple modules should be separated with the pipe symbol:
9368  |.
9369  Note that the required modules are treated disjunctively:
9370  
9371 \emph on
9372 at least one
9373 \emph default
9374  of the required modules must be used.
9375  Similarly,
9376  
9377 \emph on
9378 no
9379 \emph default
9380  excluded module may be used.
9381  Note that modules are identified here by their filenames without the 
9382 \begin_inset Flex Code
9383 status collapsed
9384
9385 \begin_layout Plain Layout
9386 .module
9387 \end_layout
9388
9389 \end_inset
9390
9391  extension.
9392  So 
9393 \begin_inset Flex Code
9394 status collapsed
9395
9396 \begin_layout Plain Layout
9397 somemodule
9398 \end_layout
9399
9400 \end_inset
9401
9402  is really 
9403 \begin_inset Flex Code
9404 status collapsed
9405
9406 \begin_layout Plain Layout
9407 somemodule.module
9408 \end_layout
9409
9410 \end_inset
9411
9412 .
9413 \end_layout
9414
9415 \begin_layout Subsection
9416 The CiteEngine file declaration
9417 \end_layout
9418
9419 \begin_layout Standard
9420 A cite engine file must begin with a line like the following:
9421 \end_layout
9422
9423 \begin_layout LyX-Code
9424 #
9425 \backslash
9426 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9427 \end_layout
9428
9429 \begin_layout Standard
9430 The mandatory argument,
9431  in curly brackets,
9432  is the name of the cite style,
9433  as it should appear in 
9434 \begin_inset Flex Noun
9435 status collapsed
9436
9437 \begin_layout Plain Layout
9438 Document\SpecialChar menuseparator
9439 Settings\SpecialChar menuseparator
9440 Bibliography
9441 \end_layout
9442
9443 \end_inset
9444
9445 .
9446  The argument in square brackets is optional:
9447  It declares any \SpecialChar LaTeX
9448  packages on which the cite engine depends.
9449 \end_layout
9450
9451 \begin_layout Standard
9452 The cite engine declaration should then be followed by lines like the following:
9453 \begin_inset Foot
9454 status collapsed
9455
9456 \begin_layout Plain Layout
9457 Preferably in English if the module should be published with \SpecialChar LyX
9458 .
9459  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9460 \end_layout
9461
9462 \end_inset
9463
9464
9465 \end_layout
9466
9467 \begin_layout LyX-Code
9468 # DescriptionBegin
9469 \end_layout
9470
9471 \begin_layout LyX-Code
9472 #   Biblatex supports many author-year and numerical styles.
9473 \end_layout
9474
9475 \begin_layout LyX-Code
9476 #   It is mainly aimed at the Humanities.
9477  It is highly
9478 \end_layout
9479
9480 \begin_layout LyX-Code
9481 #   customizable,
9482  fully localized and provides many features
9483 \end_layout
9484
9485 \begin_layout LyX-Code
9486 #   that are not possible with BibTeX.
9487  The use of 'biber' as
9488 \end_layout
9489
9490 \begin_layout LyX-Code
9491 #   bibliography processor is advised.
9492 \end_layout
9493
9494 \begin_layout LyX-Code
9495 # DescriptionEnd
9496 \end_layout
9497
9498 \begin_layout Standard
9499 The description is used in 
9500 \begin_inset Flex Noun
9501 status collapsed
9502
9503 \begin_layout Plain Layout
9504 Document\SpecialChar menuseparator
9505 Settings\SpecialChar menuseparator
9506 Bibliography
9507 \end_layout
9508
9509 \end_inset
9510
9511  to provide the user with information about the cite engine.
9512 \end_layout
9513
9514 \begin_layout Subsection
9515 Format number
9516 \end_layout
9517
9518 \begin_layout Standard
9519 The first non-comment line of any layout file,
9520  included file,
9521  or module 
9522 \emph on
9523 must
9524 \emph default
9525  contain the file format number:
9526 \end_layout
9527
9528 \begin_layout Description
9529 \begin_inset Flex Code
9530 status collapsed
9531
9532 \begin_layout Plain Layout
9533 Format
9534 \end_layout
9535
9536 \end_inset
9537
9538  [
9539 \begin_inset Flex Code
9540 status collapsed
9541
9542 \begin_layout Plain Layout
9543 int
9544 \end_layout
9545
9546 \end_inset
9547
9548 ] The format number of the layout file.
9549 \end_layout
9550
9551 \begin_layout Standard
9552 This tag was introduced with \SpecialChar LyX
9553
9554 \begin_inset space ~
9555 \end_inset
9556
9557 1.4.0.
9558  Layout files from older \SpecialChar LyX
9559  versions do not have an explicit file format and are considered to have 
9560 \begin_inset Flex Code
9561 status collapsed
9562
9563 \begin_layout Plain Layout
9564 Format
9565 \begin_inset space ~
9566 \end_inset
9567
9568 1
9569 \end_layout
9570
9571 \end_inset
9572
9573 .
9574  The format for the present version of \SpecialChar LyX
9575  is format 60.
9576  But each version of \SpecialChar LyX
9577  is capable of reading earlier versions' layout files,
9578  just as they are capable of reading files produced by earlier versions of \SpecialChar LyX
9579 .
9580  There is,
9581  however,
9582  no provision for converting to earlier formats.
9583 \end_layout
9584
9585 \begin_layout Subsection
9586 \begin_inset CommandInset label
9587 LatexCommand label
9588 name "subsec:General-text-class"
9589
9590 \end_inset
9591
9592 General text class parameters
9593 \end_layout
9594
9595 \begin_layout Standard
9596 These are general parameters that govern the behavior of an entire document class.
9597  (This does 
9598 \emph on
9599 not
9600 \emph default
9601  mean that they must appear in 
9602 \begin_inset Flex Code
9603 status collapsed
9604
9605 \begin_layout Plain Layout
9606 .layout
9607 \end_layout
9608
9609 \end_inset
9610
9611  files rather than in modules.
9612  A module can contain any layout tag.)
9613 \end_layout
9614
9615 \begin_layout Description
9616
9617 \change_inserted -712698321 1526899478
9618 \begin_inset Flex Code
9619 status collapsed
9620
9621 \begin_layout Plain Layout
9622
9623 \change_inserted -712698321 1526898610
9624 AddToCiteEngine <engine>
9625 \change_unchanged
9626
9627 \end_layout
9628
9629 \end_inset
9630
9631  Extends the possibilities for displaying citation references.
9632  See 
9633 \begin_inset CommandInset ref
9634 LatexCommand ref
9635 reference "subsec:Citation-engine-description"
9636 plural "false"
9637 caps "false"
9638 noprefix "false"
9639 nolink "false"
9640
9641 \end_inset
9642
9643  for details.
9644  Must end with 
9645 \begin_inset Flex Code
9646 status collapsed
9647
9648 \begin_layout Plain Layout
9649
9650 \change_inserted -712698321 1526898823
9651 End
9652 \change_unchanged
9653
9654 \end_layout
9655
9656 \end_inset
9657
9658 .
9659 \end_layout
9660
9661 \begin_layout Description
9662 \begin_inset Flex Code
9663 status collapsed
9664
9665 \begin_layout Plain Layout
9666 AddToHTMLPreamble
9667 \end_layout
9668
9669 \end_inset
9670
9671  Adds information that will be output in the 
9672 \begin_inset Flex Code
9673 status collapsed
9674
9675 \begin_layout Plain Layout
9676 <head>
9677 \end_layout
9678
9679 \end_inset
9680
9681  block when the document is output to XHTML.
9682  Typically,
9683  this would be used to output CSS style information,
9684  but it can be used for anything that can appear in 
9685 \begin_inset Flex Code
9686 status collapsed
9687
9688 \begin_layout Plain Layout
9689 <head>
9690 \end_layout
9691
9692 \end_inset
9693
9694 .
9695  Must end with 
9696 \begin_inset Quotes eld
9697 \end_inset
9698
9699
9700 \begin_inset Flex Code
9701 status collapsed
9702
9703 \begin_layout Plain Layout
9704 EndPreamble
9705 \end_layout
9706
9707 \end_inset
9708
9709
9710 \begin_inset Quotes erd
9711 \end_inset
9712
9713 .
9714 \end_layout
9715
9716 \begin_layout Description
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 AddToPreamble
9722 \end_layout
9723
9724 \end_inset
9725
9726  Adds information to the document preamble.
9727  Must end with
9728 \begin_inset Newline newline
9729 \end_inset
9730
9731
9732 \begin_inset Quotes eld
9733 \end_inset
9734
9735
9736 \begin_inset Flex Code
9737 status collapsed
9738
9739 \begin_layout Plain Layout
9740 EndPreamble
9741 \end_layout
9742
9743 \end_inset
9744
9745
9746 \begin_inset Quotes erd
9747 \end_inset
9748
9749 .
9750 \change_inserted -712698321 1562592950
9751
9752 \end_layout
9753
9754 \begin_layout Description
9755
9756 \change_inserted -712698321 1562593040
9757 \begin_inset Flex Code
9758 status collapsed
9759
9760 \begin_layout Plain Layout
9761
9762 \change_inserted -712698321 1562592954
9763 BibInToc
9764 \change_unchanged
9765
9766 \end_layout
9767
9768 \end_inset
9769
9770  [
9771 \begin_inset Flex Code
9772 status collapsed
9773
9774 \begin_layout Plain Layout
9775
9776 \change_inserted -712698321 1562592950
9777
9778 \emph on
9779 0
9780 \change_unchanged
9781
9782 \end_layout
9783
9784 \end_inset
9785
9786 ,
9787 \begin_inset space \thinspace{}
9788 \end_inset
9789
9790
9791 \begin_inset Flex Code
9792 status collapsed
9793
9794 \begin_layout Plain Layout
9795
9796 \change_inserted -712698321 1562592950
9797 1
9798 \change_unchanged
9799
9800 \end_layout
9801
9802 \end_inset
9803
9804 ] If the document class adds the bibliography to the table of contents,
9805  add this option with value 
9806 \begin_inset Flex Code
9807 status collapsed
9808
9809 \begin_layout Plain Layout
9810
9811 \change_inserted -712698321 1562592996
9812 1
9813 \change_unchanged
9814
9815 \end_layout
9816
9817 \end_inset
9818
9819  (or 
9820 \begin_inset Flex Code
9821 status collapsed
9822
9823 \begin_layout Plain Layout
9824
9825 \change_inserted -712698321 1562593006
9826 true
9827 \change_unchanged
9828
9829 \end_layout
9830
9831 \end_inset
9832
9833 ).
9834  This prevents the bibliography from being added twice.
9835 \change_unchanged
9836
9837 \end_layout
9838
9839 \begin_layout Description
9840 \begin_inset Flex Code
9841 status collapsed
9842
9843 \begin_layout Plain Layout
9844 CiteEngine <engine>
9845 \end_layout
9846
9847 \end_inset
9848
9849  Defines the possibilities for displaying citation references.
9850  See 
9851 \begin_inset CommandInset ref
9852 LatexCommand ref
9853 reference "subsec:Citation-engine-description"
9854 plural "false"
9855 caps "false"
9856 noprefix "false"
9857 nolink "false"
9858
9859 \end_inset
9860
9861  for details.
9862  Must end with 
9863 \begin_inset Quotes eld
9864 \end_inset
9865
9866
9867 \begin_inset Flex Code
9868 status collapsed
9869
9870 \begin_layout Plain Layout
9871 End
9872 \end_layout
9873
9874 \end_inset
9875
9876
9877 \begin_inset Quotes erd
9878 \end_inset
9879
9880 .
9881  Primarily used in cite engine files (see 
9882 \begin_inset CommandInset ref
9883 LatexCommand ref
9884 reference "subsec:Cite-Engine-Files"
9885 plural "false"
9886 caps "false"
9887 noprefix "false"
9888 nolink "false"
9889
9890 \end_inset
9891
9892 ).
9893
9894 \change_inserted -712698321 1526898530
9895  Note that if you specify this in a layout file or module,
9896  any cite engine definition will be overridden.
9897  Also see 
9898 \begin_inset Flex Code
9899 status collapsed
9900
9901 \begin_layout Plain Layout
9902
9903 \change_inserted -712698321 1526898530
9904 AddToCiteEngine
9905 \change_unchanged
9906
9907 \end_layout
9908
9909 \end_inset
9910
9911 .
9912 \change_unchanged
9913
9914 \end_layout
9915
9916 \begin_layout Description
9917 \begin_inset Flex Code
9918 status collapsed
9919
9920 \begin_layout Plain Layout
9921 CiteFormat
9922 \end_layout
9923
9924 \end_inset
9925
9926  Defines formats for use in the display of bibliographic information.
9927  See 
9928 \begin_inset CommandInset ref
9929 LatexCommand ref
9930 reference "subsec:Citation-format-description"
9931 nolink "false"
9932
9933 \end_inset
9934
9935  for details.
9936  Must end with 
9937 \begin_inset Quotes eld
9938 \end_inset
9939
9940
9941 \begin_inset Flex Code
9942 status collapsed
9943
9944 \begin_layout Plain Layout
9945 End
9946 \end_layout
9947
9948 \end_inset
9949
9950
9951 \begin_inset Quotes erd
9952 \end_inset
9953
9954 .
9955  Primarily used in cite engine files (see 
9956 \begin_inset CommandInset ref
9957 LatexCommand ref
9958 reference "subsec:Cite-Engine-Files"
9959 plural "false"
9960 caps "false"
9961 noprefix "false"
9962 nolink "false"
9963
9964 \end_inset
9965
9966 ).
9967
9968 \change_inserted -712698321 1526898585
9969  A cite format defined in a layout or module will override the cite engine definition.
9970 \change_unchanged
9971
9972 \end_layout
9973
9974 \begin_layout Description
9975 \begin_inset Flex Code
9976 status collapsed
9977
9978 \begin_layout Plain Layout
9979 CiteFramework
9980 \end_layout
9981
9982 \end_inset
9983
9984  [
9985 \begin_inset Flex Code
9986 status collapsed
9987
9988 \begin_layout Plain Layout
9989
9990 \emph on
9991 bibtex
9992 \end_layout
9993
9994 \end_inset
9995
9996 ,
9997 \begin_inset Flex Code
9998 status collapsed
9999
10000 \begin_layout Plain Layout
10001 biblatex
10002 \end_layout
10003
10004 \end_inset
10005
10006 ] Determines whether 
10007 \family sans
10008 Biblatex
10009 \family default
10010  or Bib\SpecialChar TeX
10011  is used to generate a Bibliography.
10012  Primarily used in cite engine files (see 
10013 \begin_inset CommandInset ref
10014 LatexCommand ref
10015 reference "subsec:Cite-Engine-Files"
10016 plural "false"
10017 caps "false"
10018 noprefix "false"
10019 nolink "false"
10020
10021 \end_inset
10022
10023 ).
10024 \end_layout
10025
10026 \begin_layout Description
10027 \begin_inset Flex Code
10028 status collapsed
10029
10030 \begin_layout Plain Layout
10031 ClassOptions
10032 \end_layout
10033
10034 \end_inset
10035
10036  Describes various global options supported by the document class.
10037  See 
10038 \begin_inset CommandInset ref
10039 LatexCommand ref
10040 reference "subsec:ClassOptions"
10041 nolink "false"
10042
10043 \end_inset
10044
10045  for a description.
10046  Must end with 
10047 \begin_inset Quotes eld
10048 \end_inset
10049
10050
10051 \begin_inset Flex Code
10052 status collapsed
10053
10054 \begin_layout Plain Layout
10055 End
10056 \end_layout
10057
10058 \end_inset
10059
10060
10061 \begin_inset Quotes erd
10062 \end_inset
10063
10064 .
10065 \end_layout
10066
10067 \begin_layout Description
10068 \begin_inset Flex Code
10069 status collapsed
10070
10071 \begin_layout Plain Layout
10072 Columns
10073 \end_layout
10074
10075 \end_inset
10076
10077  [
10078 \begin_inset Flex Code
10079 status collapsed
10080
10081 \begin_layout Plain Layout
10082
10083 \emph on
10084 1
10085 \end_layout
10086
10087 \end_inset
10088
10089 ,
10090 \begin_inset space \thinspace{}
10091 \end_inset
10092
10093
10094 \begin_inset Flex Code
10095 status collapsed
10096
10097 \begin_layout Plain Layout
10098 2
10099 \end_layout
10100
10101 \end_inset
10102
10103 ] Whether the class should 
10104 \emph on
10105 default
10106 \emph default
10107  to having one or two columns.
10108  Can be changed in the 
10109 \begin_inset Flex Noun
10110 status collapsed
10111
10112 \begin_layout Plain Layout
10113 Document\SpecialChar menuseparator
10114 Settings
10115 \end_layout
10116
10117 \end_inset
10118
10119  dialog.
10120 \end_layout
10121
10122 \begin_layout Description
10123 \begin_inset Flex Code
10124 status collapsed
10125
10126 \begin_layout Plain Layout
10127 Counter
10128 \end_layout
10129
10130 \end_inset
10131
10132  [
10133 \begin_inset Flex Code
10134 status collapsed
10135
10136 \begin_layout Plain Layout
10137 string
10138 \end_layout
10139
10140 \end_inset
10141
10142 ] This sequence defines the properties for a counter.
10143  If the counter does not yet exist,
10144  it is created;
10145  if it does exist,
10146  it is modified.
10147  Must end with 
10148 \begin_inset Quotes eld
10149 \end_inset
10150
10151
10152 \begin_inset Flex Code
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156 End
10157 \end_layout
10158
10159 \end_inset
10160
10161
10162 \begin_inset Quotes erd
10163 \end_inset
10164
10165 .
10166 \begin_inset Newline newline
10167 \end_inset
10168
10169 See 
10170 \begin_inset CommandInset ref
10171 LatexCommand ref
10172 reference "subsec:Counters"
10173 nolink "false"
10174
10175 \end_inset
10176
10177  for details on counters.
10178 \end_layout
10179
10180 \begin_layout Description
10181 \begin_inset Flex Code
10182 status collapsed
10183
10184 \begin_layout Plain Layout
10185 DefaultFont
10186 \end_layout
10187
10188 \end_inset
10189
10190  Sets the default font used to display the document.
10191  See 
10192 \begin_inset CommandInset ref
10193 LatexCommand ref
10194 reference "subsec:Font-description"
10195 nolink "false"
10196
10197 \end_inset
10198
10199  for how to declare fonts.
10200  Must end with 
10201 \begin_inset Quotes eld
10202 \end_inset
10203
10204
10205 \begin_inset Flex Code
10206 status collapsed
10207
10208 \begin_layout Plain Layout
10209 EndFont
10210 \end_layout
10211
10212 \end_inset
10213
10214
10215 \begin_inset Quotes erd
10216 \end_inset
10217
10218 .
10219 \end_layout
10220
10221 \begin_layout Description
10222 \begin_inset Flex Code
10223 status collapsed
10224
10225 \begin_layout Plain Layout
10226 DefaultModule
10227 \end_layout
10228
10229 \end_inset
10230
10231  [
10232 \begin_inset Flex Code
10233 status collapsed
10234
10235 \begin_layout Plain Layout
10236 <module>
10237 \end_layout
10238
10239 \end_inset
10240
10241 ] Specifies a module to be included by default with this document class.
10242  The module is specified as filename without the 
10243 \begin_inset Flex Code
10244 status collapsed
10245
10246 \begin_layout Plain Layout
10247 .module
10248 \end_layout
10249
10250 \end_inset
10251
10252  extension.
10253  The user can still remove the module,
10254  but it will be active at the outset.
10255  (This applies only when new files are created,
10256  or when this class is chosen for an existing document.)
10257 \end_layout
10258
10259 \begin_layout Description
10260 \begin_inset Flex Code
10261 status collapsed
10262
10263 \begin_layout Plain Layout
10264 DefaultStyle
10265 \end_layout
10266
10267 \end_inset
10268
10269  [
10270 \begin_inset Flex Code
10271 status collapsed
10272
10273 \begin_layout Plain Layout
10274 <style>
10275 \end_layout
10276
10277 \end_inset
10278
10279 ] This is the style that will be assigned to new paragraphs,
10280  usually 
10281 \begin_inset Flex Noun
10282 status collapsed
10283
10284 \begin_layout Plain Layout
10285 Standard
10286 \end_layout
10287
10288 \end_inset
10289
10290 .
10291  This will default to the first defined style if not given,
10292  but you are encouraged to use this directive.
10293 \end_layout
10294
10295 \begin_layout Description
10296
10297 \change_inserted -970929547 1515112870
10298 \begin_inset Flex Code
10299 status collapsed
10300
10301 \begin_layout Plain Layout
10302
10303 \change_inserted -970929547 1515112782
10304 DocBookRoot
10305 \change_unchanged
10306
10307 \end_layout
10308
10309 \end_inset
10310
10311  [
10312 \begin_inset Flex Code
10313 status collapsed
10314
10315 \begin_layout Plain Layout
10316
10317 \change_inserted -970929547 1515112766
10318 string
10319 \change_unchanged
10320
10321 \end_layout
10322
10323 \end_inset
10324
10325 ] The root element (at the top of the document) to use when outputting documents with this class in DocBook.
10326  The default value is 
10327 \begin_inset Quotes eld
10328 \end_inset
10329
10330
10331 \begin_inset Flex Code
10332 status collapsed
10333
10334 \begin_layout Plain Layout
10335
10336 \change_inserted -970929547 1515112845
10337 article
10338 \change_unchanged
10339
10340 \end_layout
10341
10342 \end_inset
10343
10344
10345 \begin_inset Quotes erd
10346 \end_inset
10347
10348 .
10349
10350 \change_deleted 1075283030 1594226862
10351  
10352 \change_inserted 1075283030 1594226777
10353
10354 \end_layout
10355
10356 \begin_layout Description
10357
10358 \change_inserted 1075283030 1594226859
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363
10364 \change_inserted 1075283030 1594226785
10365 DocBookForceAbstract
10366 \change_unchanged
10367
10368 \end_layout
10369
10370 \end_inset
10371
10372  [
10373 \begin_inset Flex Code
10374 status collapsed
10375
10376 \begin_layout Plain Layout
10377
10378 \change_inserted 1075283030 1594226804
10379 boolean
10380 \change_unchanged
10381
10382 \end_layout
10383
10384 \end_inset
10385
10386 ] If 
10387 \begin_inset Quotes eld
10388 \end_inset
10389
10390
10391 \family typewriter
10392 true
10393 \family default
10394
10395 \begin_inset Quotes erd
10396 \end_inset
10397
10398 ,
10399  the root element will always have an 
10400 \family typewriter
10401 <abstract>
10402 \family default
10403  tag.
10404  The default value is 
10405 \begin_inset Quotes eld
10406 \end_inset
10407
10408
10409 \family typewriter
10410 false
10411 \family default
10412
10413 \begin_inset Quotes erd
10414 \end_inset
10415
10416 .
10417 \change_unchanged
10418
10419 \end_layout
10420
10421 \begin_layout Description
10422 \begin_inset Flex Code
10423 status collapsed
10424
10425 \begin_layout Plain Layout
10426 ExcludesModule
10427 \end_layout
10428
10429 \end_inset
10430
10431  [
10432 \begin_inset Flex Code
10433 status collapsed
10434
10435 \begin_layout Plain Layout
10436 <module>
10437 \end_layout
10438
10439 \end_inset
10440
10441 ] This tag indicates that the module (which is specified by filename without the 
10442 \begin_inset Flex Code
10443 status collapsed
10444
10445 \begin_layout Plain Layout
10446 .module
10447 \end_layout
10448
10449 \end_inset
10450
10451  extension) cannot be used with this document class.
10452  This might be used in a journal-specific layout file to prevent,
10453  say,
10454  the use of the 
10455 \begin_inset Flex Code
10456 status collapsed
10457
10458 \begin_layout Plain Layout
10459 theorems-sec
10460 \end_layout
10461
10462 \end_inset
10463
10464  module that numbers theorems by section.
10465  This tag may 
10466 \emph on
10467 not
10468 \emph default
10469  be used in a module.
10470  Modules have their own way of excluding other modules (see 
10471 \begin_inset CommandInset ref
10472 LatexCommand ref
10473 reference "subsec:Layout-modules"
10474 nolink "false"
10475
10476 \end_inset
10477
10478 ).
10479 \end_layout
10480
10481 \begin_layout Description
10482 \begin_inset Flex Code
10483 status collapsed
10484
10485 \begin_layout Plain Layout
10486 Float
10487 \end_layout
10488
10489 \end_inset
10490
10491  Defines a new float.
10492  See 
10493 \begin_inset CommandInset ref
10494 LatexCommand ref
10495 reference "subsec:Floats"
10496 nolink "false"
10497
10498 \end_inset
10499
10500  for details.
10501  Must end with 
10502 \begin_inset Quotes eld
10503 \end_inset
10504
10505
10506 \begin_inset Flex Code
10507 status collapsed
10508
10509 \begin_layout Plain Layout
10510 End
10511 \end_layout
10512
10513 \end_inset
10514
10515
10516 \begin_inset Quotes erd
10517 \end_inset
10518
10519 .
10520 \end_layout
10521
10522 \begin_layout Description
10523 \begin_inset Flex Code
10524 status collapsed
10525
10526 \begin_layout Plain Layout
10527 HTMLPreamble
10528 \end_layout
10529
10530 \end_inset
10531
10532  Sets the information that will be output in the 
10533 \begin_inset Flex Code
10534 status collapsed
10535
10536 \begin_layout Plain Layout
10537 <head>
10538 \end_layout
10539
10540 \end_inset
10541
10542  block when this document class is output to XHTML.
10543  Note that this will completely override any prior 
10544 \begin_inset Flex Code
10545 status collapsed
10546
10547 \begin_layout Plain Layout
10548 HTMLPreamble
10549 \end_layout
10550
10551 \end_inset
10552
10553  or 
10554 \begin_inset Flex Code
10555 status collapsed
10556
10557 \begin_layout Plain Layout
10558 AddToHTMLPreamble
10559 \end_layout
10560
10561 \end_inset
10562
10563  declarations.
10564  (Use
10565 \begin_inset Newline newline
10566 \end_inset
10567
10568
10569 \begin_inset Flex Code
10570 status collapsed
10571
10572 \begin_layout Plain Layout
10573 AddToHTMLPreamble
10574 \end_layout
10575
10576 \end_inset
10577
10578  if you just want to add material to the preamble.) Must end with 
10579 \begin_inset Quotes eld
10580 \end_inset
10581
10582
10583 \begin_inset Flex Code
10584 status collapsed
10585
10586 \begin_layout Plain Layout
10587 EndPreamble
10588 \end_layout
10589
10590 \end_inset
10591
10592
10593 \begin_inset Quotes erd
10594 \end_inset
10595
10596 .
10597 \end_layout
10598
10599 \begin_layout Description
10600 \begin_inset Flex Code
10601 status collapsed
10602
10603 \begin_layout Plain Layout
10604 HTMLTOCSection
10605 \end_layout
10606
10607 \end_inset
10608
10609  [
10610 \begin_inset Flex Code
10611 status collapsed
10612
10613 \begin_layout Plain Layout
10614 <style>
10615 \end_layout
10616
10617 \end_inset
10618
10619 ] The style to use for the table of contents,
10620  bibliography,
10621  and so forth,
10622  when the document is output to HTML.
10623  For articles,
10624  this should normally be 
10625 \begin_inset Flex Code
10626 status collapsed
10627
10628 \begin_layout Plain Layout
10629 Section
10630 \end_layout
10631
10632 \end_inset
10633
10634 ;
10635  for books 
10636 \begin_inset Flex Code
10637 status collapsed
10638
10639 \begin_layout Plain Layout
10640 Chapter
10641 \end_layout
10642
10643 \end_inset
10644
10645 .
10646  If it is not given,
10647  then \SpecialChar LyX
10648  will attempt to figure out which layout to use.
10649 \end_layout
10650
10651 \begin_layout Description
10652 \begin_inset Flex Code
10653 status collapsed
10654
10655 \begin_layout Plain Layout
10656 IfCounter
10657 \end_layout
10658
10659 \end_inset
10660
10661  [
10662 \begin_inset Flex Code
10663 status collapsed
10664
10665 \begin_layout Plain Layout
10666 <counter>
10667 \end_layout
10668
10669 \end_inset
10670
10671 ] Modifies the properties of the given counter.
10672  If the counter does not exist,
10673  the statement is ignored.
10674  Must end with 
10675 \begin_inset Quotes eld
10676 \end_inset
10677
10678
10679 \begin_inset Flex Code
10680 status collapsed
10681
10682 \begin_layout Plain Layout
10683 End
10684 \end_layout
10685
10686 \end_inset
10687
10688
10689 \begin_inset Quotes erd
10690 \end_inset
10691
10692 .
10693 \begin_inset Newline newline
10694 \end_inset
10695
10696 See 
10697 \begin_inset CommandInset ref
10698 LatexCommand ref
10699 reference "subsec:Counters"
10700 nolink "false"
10701
10702 \end_inset
10703
10704  for details on counters.
10705 \end_layout
10706
10707 \begin_layout Description
10708 \begin_inset Flex Code
10709 status collapsed
10710
10711 \begin_layout Plain Layout
10712 Input
10713 \end_layout
10714
10715 \end_inset
10716
10717  [
10718 \begin_inset Flex Code
10719 status collapsed
10720
10721 \begin_layout Plain Layout
10722 <filename>
10723 \end_layout
10724
10725 \end_inset
10726
10727 ] This allows you to include another layout definition file within yours to avoid duplicating commands.
10728  Common examples are the standard layout files,
10729  for example,
10730  
10731 \begin_inset Flex Code
10732 status collapsed
10733
10734 \begin_layout Plain Layout
10735 stdclass.inc
10736 \end_layout
10737
10738 \end_inset
10739
10740 ,
10741  which contains most of the basic layouts.
10742 \change_inserted -712698321 1611646803
10743
10744 \end_layout
10745
10746 \begin_layout Description
10747
10748 \change_inserted -712698321 1611646804
10749 \begin_inset Flex Code
10750 status collapsed
10751
10752 \begin_layout Plain Layout
10753
10754 \change_inserted -712698321 1611646837
10755 InputGlobal
10756 \change_unchanged
10757
10758 \end_layout
10759
10760 \end_inset
10761
10762  [
10763 \begin_inset Flex Code
10764 status collapsed
10765
10766 \begin_layout Plain Layout
10767
10768 \change_inserted -712698321 1611646804
10769 <filename>
10770 \change_unchanged
10771
10772 \end_layout
10773
10774 \end_inset
10775
10776 ] is a variant of the 
10777 \begin_inset Flex Code
10778 status collapsed
10779
10780 \begin_layout Plain Layout
10781
10782 \change_inserted -712698321 1611646804
10783 Input
10784 \change_unchanged
10785
10786 \end_layout
10787
10788 \end_inset
10789
10790  command which does not look for files in the user directory.
10791  This allows to create a file 
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796
10797 \change_inserted -712698321 1611646804
10798 name.layout
10799 \change_unchanged
10800
10801 \end_layout
10802
10803 \end_inset
10804
10805  or 
10806 \begin_inset Flex Code
10807 status collapsed
10808
10809 \begin_layout Plain Layout
10810
10811 \change_inserted -712698321 1611646804
10812 name.inc
10813 \change_unchanged
10814
10815 \end_layout
10816
10817 \end_inset
10818
10819  in the user directory which includes a global file with the same name via 
10820 \begin_inset Flex Code
10821 status collapsed
10822
10823 \begin_layout Plain Layout
10824
10825 \change_inserted -712698321 1611646853
10826 InputGlobal name
10827 \change_unchanged
10828
10829 \end_layout
10830
10831 \end_inset
10832
10833  or 
10834 \begin_inset Flex Code
10835 status collapsed
10836
10837 \begin_layout Plain Layout
10838
10839 \change_inserted -712698321 1611646855
10840 InputGlobal name.inc
10841 \change_unchanged
10842
10843 \end_layout
10844
10845 \end_inset
10846
10847 ,
10848  respectively (with 
10849 \begin_inset Flex Code
10850 status collapsed
10851
10852 \begin_layout Plain Layout
10853
10854 \change_inserted -712698321 1611646804
10855 Input
10856 \change_unchanged
10857
10858 \end_layout
10859
10860 \end_inset
10861
10862 ,
10863  the file would recursively include itself).
10864  This way,
10865  you can modify global files without having to completely copy them.
10866 \change_unchanged
10867
10868 \end_layout
10869
10870 \begin_layout Description
10871 \begin_inset Flex Code
10872 status collapsed
10873
10874 \begin_layout Plain Layout
10875 InsetLayout
10876 \end_layout
10877
10878 \end_inset
10879
10880  [
10881 \begin_inset Flex Code
10882 status collapsed
10883
10884 \begin_layout Plain Layout
10885 <type>
10886 \end_layout
10887
10888 \end_inset
10889
10890 ] This section (re-)defines the layout of an inset.
10891  It can be applied to an existing inset or to a new,
10892  user-defined inset,
10893  e.g.,
10894  a new character style.
10895  Must end with 
10896 \begin_inset Quotes eld
10897 \end_inset
10898
10899
10900 \begin_inset Flex Code
10901 status collapsed
10902
10903 \begin_layout Plain Layout
10904 End
10905 \end_layout
10906
10907 \end_inset
10908
10909
10910 \begin_inset Quotes erd
10911 \end_inset
10912
10913 .
10914 \begin_inset Newline newline
10915 \end_inset
10916
10917 See 
10918 \begin_inset CommandInset ref
10919 LatexCommand ref
10920 reference "subsec:Flex-insets-and"
10921 nolink "false"
10922
10923 \end_inset
10924
10925  for more information.
10926  
10927 \end_layout
10928
10929 \begin_layout Description
10930 \begin_inset Flex Code
10931 status collapsed
10932
10933 \begin_layout Plain Layout
10934 LeftMargin
10935 \end_layout
10936
10937 \end_inset
10938
10939  [
10940 \begin_inset Flex Code
10941 status collapsed
10942
10943 \begin_layout Plain Layout
10944 string
10945 \end_layout
10946
10947 \end_inset
10948
10949 ] A string that indicates the width of the left margin on the screen,
10950  for example,
10951  
10952 \begin_inset Quotes eld
10953 \end_inset
10954
10955
10956 \begin_inset Flex Code
10957 status collapsed
10958
10959 \begin_layout Plain Layout
10960 MMMMM
10961 \end_layout
10962
10963 \end_inset
10964
10965
10966 \begin_inset Quotes erd
10967 \end_inset
10968
10969 .
10970  (Note that this is not a `length',
10971  like 
10972 \begin_inset Quotes eld
10973 \end_inset
10974
10975 2ex
10976 \begin_inset Quotes erd
10977 \end_inset
10978
10979 .)
10980 \end_layout
10981
10982 \begin_layout Description
10983 \begin_inset Flex Code
10984 status collapsed
10985
10986 \begin_layout Plain Layout
10987 MaxCiteNames
10988 \end_layout
10989
10990 \end_inset
10991
10992  [
10993 \begin_inset Flex Code
10994 status collapsed
10995
10996 \begin_layout Plain Layout
10997 integer
10998 \end_layout
10999
11000 \end_inset
11001
11002 ] An integer that determines the maximal number of names displayed in an author-year citation before the citation switches to 
11003 \begin_inset Quotes eld
11004 \end_inset
11005
11006 FirstAuthor et al.
11007 \begin_inset Quotes erd
11008 \end_inset
11009
11010 .
11011  Primarily used in cite engine files (see 
11012 \begin_inset CommandInset ref
11013 LatexCommand ref
11014 reference "subsec:Cite-Engine-Files"
11015 plural "false"
11016 caps "false"
11017 noprefix "false"
11018 nolink "false"
11019
11020 \end_inset
11021
11022 ).
11023 \end_layout
11024
11025 \begin_layout Description
11026
11027 \change_inserted -712698321 1612018485
11028 \begin_inset Flex Code
11029 status collapsed
11030
11031 \begin_layout Plain Layout
11032
11033 \change_inserted -712698321 1612018457
11034 ModifyInsetLayout
11035 \change_unchanged
11036
11037 \end_layout
11038
11039 \end_inset
11040
11041  [
11042 \begin_inset Flex Code
11043 status collapsed
11044
11045 \begin_layout Plain Layout
11046
11047 \change_inserted -712698321 1612018466
11048 <type>
11049 \change_unchanged
11050
11051 \end_layout
11052
11053 \end_inset
11054
11055 ] Modifies the layout of an inset.
11056  If the layout does not exist,
11057  this section is ignored.
11058  Must end with 
11059 \begin_inset Quotes eld
11060 \end_inset
11061
11062
11063 \begin_inset Flex Code
11064 status collapsed
11065
11066 \begin_layout Plain Layout
11067
11068 \change_inserted -712698321 1612018452
11069 End
11070 \change_unchanged
11071
11072 \end_layout
11073
11074 \end_inset
11075
11076
11077 \begin_inset Quotes erd
11078 \end_inset
11079
11080 .
11081 \end_layout
11082
11083 \begin_layout Description
11084 \begin_inset Flex Code
11085 status collapsed
11086
11087 \begin_layout Plain Layout
11088 ModifyStyle
11089 \end_layout
11090
11091 \end_inset
11092
11093  [
11094 \begin_inset Flex Code
11095 status collapsed
11096
11097 \begin_layout Plain Layout
11098 <style>
11099 \end_layout
11100
11101 \end_inset
11102
11103 ] Modifies the properties of the given paragraph style.
11104  If the style does not exist,
11105  this section is ignored.
11106  Must end with 
11107 \begin_inset Quotes eld
11108 \end_inset
11109
11110
11111 \begin_inset Flex Code
11112 status collapsed
11113
11114 \begin_layout Plain Layout
11115 End
11116 \end_layout
11117
11118 \end_inset
11119
11120
11121 \begin_inset Quotes erd
11122 \end_inset
11123
11124 .
11125 \end_layout
11126
11127 \begin_layout Description
11128 \begin_inset Flex Code
11129 status collapsed
11130
11131 \begin_layout Plain Layout
11132 NoCounter
11133 \end_layout
11134
11135 \end_inset
11136
11137  [
11138 \begin_inset Flex Code
11139 status collapsed
11140
11141 \begin_layout Plain Layout
11142 <counter>
11143 \end_layout
11144
11145 \end_inset
11146
11147 ] Deletes an existing counter,
11148  usually one defined in an included file.
11149 \end_layout
11150
11151 \begin_layout Description
11152 \begin_inset Flex Code
11153 status collapsed
11154
11155 \begin_layout Plain Layout
11156 NoFloat
11157 \end_layout
11158
11159 \end_inset
11160
11161  [
11162 \begin_inset Flex Code
11163 status collapsed
11164
11165 \begin_layout Plain Layout
11166 <float>
11167 \end_layout
11168
11169 \end_inset
11170
11171 ] Deletes an existing float.
11172  This is particularly useful when you want to suppress a float that has been defined in an input file.
11173 \end_layout
11174
11175 \begin_layout Description
11176 \begin_inset Flex Code
11177 status collapsed
11178
11179 \begin_layout Plain Layout
11180 NoStyle
11181 \end_layout
11182
11183 \end_inset
11184
11185  [
11186 \begin_inset Flex Code
11187 status collapsed
11188
11189 \begin_layout Plain Layout
11190 <style>
11191 \end_layout
11192
11193 \end_inset
11194
11195 ] Deletes an existing style.
11196 \end_layout
11197
11198 \begin_layout Description
11199 \begin_inset Flex Code
11200 status collapsed
11201
11202 \begin_layout Plain Layout
11203 OutlinerName
11204 \end_layout
11205
11206 \end_inset
11207
11208  [
11209 \begin_inset Flex Code
11210 status collapsed
11211
11212 \begin_layout Plain Layout
11213 <type>
11214 \end_layout
11215
11216 \end_inset
11217
11218 ] [
11219 \begin_inset Flex Code
11220 status collapsed
11221
11222 \begin_layout Plain Layout
11223 <string>
11224 \end_layout
11225
11226 \end_inset
11227
11228 ] Define a new table of contents with type 
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 <type>
11234 \end_layout
11235
11236 \end_inset
11237
11238  and name 
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243 <string>
11244 \end_layout
11245
11246 \end_inset
11247
11248 .
11249  See also the AddToToc commands.
11250 \end_layout
11251
11252 \begin_layout Description
11253 \begin_inset Flex Code
11254 status collapsed
11255
11256 \begin_layout Plain Layout
11257 OutputFormat
11258 \end_layout
11259
11260 \end_inset
11261
11262  [
11263 \begin_inset Flex Code
11264 status collapsed
11265
11266 \begin_layout Plain Layout
11267 <format>
11268 \end_layout
11269
11270 \end_inset
11271
11272 ] The file format (as defined in the \SpecialChar LyX
11273  preferences) produced by this document class.
11274  It is mainly useful when 
11275 \begin_inset Flex Code
11276 status collapsed
11277
11278 \begin_layout Plain Layout
11279 OutputType
11280 \end_layout
11281
11282 \end_inset
11283
11284  is 
11285 \begin_inset Flex Code
11286 status collapsed
11287
11288 \begin_layout Plain Layout
11289 literate
11290 \end_layout
11291
11292 \end_inset
11293
11294  and one wants to define a new type of literate document.
11295  The format is reset to 
11296 \change_deleted 5863208 1594239413
11297
11298 \begin_inset Quotes eld
11299 \end_inset
11300
11301
11302 \begin_inset Flex Code
11303 status collapsed
11304
11305 \begin_layout Plain Layout
11306 docbook
11307 \end_layout
11308
11309 \end_inset
11310
11311
11312 \begin_inset Quotes erd
11313 \end_inset
11314
11315  or
11316 \change_unchanged
11317  
11318 \begin_inset Quotes eld
11319 \end_inset
11320
11321
11322 \begin_inset Flex Code
11323 status collapsed
11324
11325 \begin_layout Plain Layout
11326 latex
11327 \end_layout
11328
11329 \end_inset
11330
11331
11332 \begin_inset Quotes erd
11333 \end_inset
11334
11335  when the corresponding 
11336 \begin_inset Flex Code
11337 status collapsed
11338
11339 \begin_layout Plain Layout
11340 OutputType
11341 \end_layout
11342
11343 \end_inset
11344
11345  parameter is encountered.
11346 \end_layout
11347
11348 \begin_layout Description
11349 \begin_inset Flex Code
11350 status collapsed
11351
11352 \begin_layout Plain Layout
11353 OutputType
11354 \end_layout
11355
11356 \end_inset
11357
11358  [
11359 \begin_inset Flex Code
11360 status collapsed
11361
11362 \begin_layout Plain Layout
11363
11364 \emph on
11365 lat
11366 \emph default
11367 ex
11368 \end_layout
11369
11370 \end_inset
11371
11372 ,
11373  
11374 \change_deleted 5863208 1594239430
11375
11376 \begin_inset Flex Code
11377 status collapsed
11378
11379 \begin_layout Plain Layout
11380 docbook
11381 \end_layout
11382
11383 \end_inset
11384
11385 ,
11386
11387 \change_unchanged
11388  
11389 \begin_inset Flex Code
11390 status collapsed
11391
11392 \begin_layout Plain Layout
11393 literate
11394 \end_layout
11395
11396 \end_inset
11397
11398 ] Specifies what sort of output documents using this class will produce.
11399 \end_layout
11400
11401 \begin_layout Description
11402 \begin_inset Flex Code
11403 status collapsed
11404
11405 \begin_layout Plain Layout
11406 PackageOptions
11407 \end_layout
11408
11409 \end_inset
11410
11411  [
11412 \begin_inset Flex Code
11413 status collapsed
11414
11415 \begin_layout Plain Layout
11416 string
11417 \end_layout
11418
11419 \end_inset
11420
11421  
11422 \begin_inset Flex Code
11423 status collapsed
11424
11425 \begin_layout Plain Layout
11426 string
11427 \end_layout
11428
11429 \end_inset
11430
11431 ] Specifies options,
11432  given in the second string,
11433  for the package named by the first string.
11434  For example,
11435  
11436 \begin_inset Quotes eld
11437 \end_inset
11438
11439
11440 \begin_inset Flex Code
11441 status collapsed
11442
11443 \begin_layout Plain Layout
11444 PackageOptions natbib square
11445 \end_layout
11446
11447 \end_inset
11448
11449
11450 \begin_inset Quotes erd
11451 \end_inset
11452
11453  will cause 
11454 \begin_inset Flex Code
11455 status collapsed
11456
11457 \begin_layout Plain Layout
11458 natbib
11459 \end_layout
11460
11461 \end_inset
11462
11463  to be loaded with the 
11464 \begin_inset Flex Code
11465 status collapsed
11466
11467 \begin_layout Plain Layout
11468 square
11469 \end_layout
11470
11471 \end_inset
11472
11473  option.
11474  (For \SpecialChar TeX
11475 perts,
11476  this causes \SpecialChar LyX
11477  to output:
11478  
11479 \begin_inset Flex Code
11480 status collapsed
11481
11482 \begin_layout Plain Layout
11483
11484 \backslash
11485 PassOptionsToPackage{natbib}{square}
11486 \end_layout
11487
11488 \end_inset
11489
11490  prior to loading 
11491 \begin_inset Flex Code
11492 status collapsed
11493
11494 \begin_layout Plain Layout
11495 natbib
11496 \end_layout
11497
11498 \end_inset
11499
11500 .)
11501 \change_inserted -712698321 1565102364
11502
11503 \end_layout
11504
11505 \begin_layout Description
11506
11507 \change_inserted -712698321 1565102470
11508 \begin_inset Flex Code
11509 status collapsed
11510
11511 \begin_layout Plain Layout
11512
11513 \change_inserted -712698321 1565102365
11514 PageSize
11515 \change_unchanged
11516
11517 \end_layout
11518
11519 \end_inset
11520
11521  [
11522 \begin_inset Flex Code
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526
11527 \change_inserted -712698321 1565105222
11528
11529 \emph on
11530 custom
11531 \emph default
11532 ,
11533  letter,
11534  legal,
11535  executive,
11536  a0,
11537  a1,
11538  a2,
11539  a3,
11540  a4,
11541  a5,
11542  a6,
11543  b0,
11544  b1,
11545  b2,
11546  b3,
11547  b4,
11548  b5,
11549  b6,
11550  c0,
11551  c1,
11552  c2,
11553  c3,
11554  c4,
11555  c5,
11556  c6,
11557  b0j,
11558  b1j,
11559  b2j,
11560  b3j,
11561  b4j,
11562  b5j,
11563  b6j
11564 \change_unchanged
11565
11566 \end_layout
11567
11568 \end_inset
11569
11570 ] The default page size.
11571  This is used by some converters.
11572 \change_unchanged
11573
11574 \end_layout
11575
11576 \begin_layout Description
11577 \begin_inset Flex Code
11578 status collapsed
11579
11580 \begin_layout Plain Layout
11581 PageStyle
11582 \end_layout
11583
11584 \end_inset
11585
11586  [
11587 \begin_inset Flex Code
11588 status collapsed
11589
11590 \begin_layout Plain Layout
11591
11592 \emph on
11593 plain
11594 \end_layout
11595
11596 \end_inset
11597
11598 ,
11599  
11600 \begin_inset Flex Code
11601 status collapsed
11602
11603 \begin_layout Plain Layout
11604 empty
11605 \end_layout
11606
11607 \end_inset
11608
11609 ,
11610  
11611 \begin_inset Flex Code
11612 status collapsed
11613
11614 \begin_layout Plain Layout
11615 headings
11616 \end_layout
11617
11618 \end_inset
11619
11620 ] The default pagestyle.
11621  Can be changed in the 
11622 \begin_inset Flex Noun
11623 status collapsed
11624
11625 \begin_layout Plain Layout
11626 Document\SpecialChar menuseparator
11627 Settings
11628 \end_layout
11629
11630 \end_inset
11631
11632  dialog.
11633 \end_layout
11634
11635 \begin_layout Description
11636 \begin_inset Flex Code
11637 status collapsed
11638
11639 \begin_layout Plain Layout
11640 Preamble
11641 \end_layout
11642
11643 \end_inset
11644
11645  Sets the preamble for the \SpecialChar LaTeX
11646  document.
11647  Note that this will completely override any prior 
11648 \begin_inset Flex Code
11649 status collapsed
11650
11651 \begin_layout Plain Layout
11652 Preamble
11653 \end_layout
11654
11655 \end_inset
11656
11657  or 
11658 \begin_inset Flex Code
11659 status collapsed
11660
11661 \begin_layout Plain Layout
11662 AddToPreamble
11663 \end_layout
11664
11665 \end_inset
11666
11667  declarations.
11668  (Use 
11669 \begin_inset Flex Code
11670 status collapsed
11671
11672 \begin_layout Plain Layout
11673 AddToPreamble
11674 \end_layout
11675
11676 \end_inset
11677
11678  if you just want to add material to the preamble.) Must end with 
11679 \begin_inset Quotes eld
11680 \end_inset
11681
11682
11683 \begin_inset Flex Code
11684 status collapsed
11685
11686 \begin_layout Plain Layout
11687 EndPreamble
11688 \end_layout
11689
11690 \end_inset
11691
11692
11693 \begin_inset Quotes erd
11694 \end_inset
11695
11696 .
11697 \change_inserted -712698321 1612018500
11698
11699 \end_layout
11700
11701 \begin_layout Description
11702
11703 \change_inserted -712698321 1612018547
11704 \begin_inset Flex Code
11705 status collapsed
11706
11707 \begin_layout Plain Layout
11708
11709 \change_inserted -712698321 1612018506
11710 ProvideInsetLayout
11711 \change_unchanged
11712
11713 \end_layout
11714
11715 \end_inset
11716
11717  [
11718 \begin_inset Flex Code
11719 status collapsed
11720
11721 \begin_layout Plain Layout
11722
11723 \change_inserted -712698321 1612018509
11724 <type>
11725 \change_unchanged
11726
11727 \end_layout
11728
11729 \end_inset
11730
11731 ] Defines the layout of an inset if it does not already exist.
11732  If the layout does exist,
11733  this section is ignored.
11734  Must end with 
11735 \begin_inset Quotes eld
11736 \end_inset
11737
11738
11739 \begin_inset Flex Code
11740 status collapsed
11741
11742 \begin_layout Plain Layout
11743
11744 \change_inserted -712698321 1612018500
11745 End
11746 \change_unchanged
11747
11748 \end_layout
11749
11750 \end_inset
11751
11752
11753 \begin_inset Quotes erd
11754 \end_inset
11755
11756 .
11757 \change_unchanged
11758
11759 \end_layout
11760
11761 \begin_layout Description
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766 Provides
11767 \end_layout
11768
11769 \end_inset
11770
11771  [
11772 \begin_inset Flex Code
11773 status collapsed
11774
11775 \begin_layout Plain Layout
11776 string
11777 \end_layout
11778
11779 \end_inset
11780
11781 ] [
11782 \begin_inset Flex Code
11783 status collapsed
11784
11785 \begin_layout Plain Layout
11786
11787 \emph on
11788 0
11789 \end_layout
11790
11791 \end_inset
11792
11793 ,
11794 \begin_inset space \thinspace{}
11795 \end_inset
11796
11797
11798 \begin_inset Flex Code
11799 status collapsed
11800
11801 \begin_layout Plain Layout
11802 1
11803 \end_layout
11804
11805 \end_inset
11806
11807 ] Whether the class already provides the feature 
11808 \begin_inset Flex Code
11809 status collapsed
11810
11811 \begin_layout Plain Layout
11812 string
11813 \end_layout
11814
11815 \end_inset
11816
11817 .
11818  A feature is in general the name of a package (e.
11819 \begin_inset space \thinspace{}
11820 \end_inset
11821
11822 g.
11823 \begin_inset space \space{}
11824 \end_inset
11825
11826
11827 \begin_inset Flex Code
11828 status collapsed
11829
11830 \begin_layout Plain Layout
11831 amsmath
11832 \end_layout
11833
11834 \end_inset
11835
11836  or 
11837 \begin_inset Flex Code
11838 status collapsed
11839
11840 \begin_layout Plain Layout
11841 makeidx
11842 \end_layout
11843
11844 \end_inset
11845
11846 ) or a macro (e.
11847 \begin_inset space \thinspace{}
11848 \end_inset
11849
11850 g.
11851 \begin_inset space \space{}
11852 \end_inset
11853
11854
11855 \begin_inset Flex Code
11856 status collapsed
11857
11858 \begin_layout Plain Layout
11859 url
11860 \end_layout
11861
11862 \end_inset
11863
11864  or 
11865 \begin_inset Flex Code
11866 status collapsed
11867
11868 \begin_layout Plain Layout
11869 boldsymbol
11870 \end_layout
11871
11872 \end_inset
11873
11874 ).
11875  See 
11876 \begin_inset CommandInset ref
11877 LatexCommand ref
11878 reference "chap:List-of-functions"
11879 nolink "false"
11880
11881 \end_inset
11882
11883  for the list of features.
11884 \end_layout
11885
11886 \begin_layout Description
11887 \begin_inset Flex Code
11888 status collapsed
11889
11890 \begin_layout Plain Layout
11891 ProvidesModule
11892 \end_layout
11893
11894 \end_inset
11895
11896  [
11897 \begin_inset Flex Code
11898 status collapsed
11899
11900 \begin_layout Plain Layout
11901 string
11902 \end_layout
11903
11904 \end_inset
11905
11906 ] Indicates that this layout provides the functionality of the module mentioned,
11907  which should be specified by the filename without the 
11908 \begin_inset Flex Code
11909 status collapsed
11910
11911 \begin_layout Plain Layout
11912 .module
11913 \end_layout
11914
11915 \end_inset
11916
11917  extension.
11918  This will typically be used if the layout includes the module directly,
11919  rather than using the 
11920 \begin_inset Flex Code
11921 status collapsed
11922
11923 \begin_layout Plain Layout
11924 DefaultModule
11925 \end_layout
11926
11927 \end_inset
11928
11929  tag to indicate that it ought to be used.
11930  It could also be used in a module that provided an alternate implementation of the same functionality.
11931 \end_layout
11932
11933 \begin_layout Description
11934 \begin_inset Flex Code
11935 status collapsed
11936
11937 \begin_layout Plain Layout
11938 ProvideStyle
11939 \end_layout
11940
11941 \end_inset
11942
11943  [
11944 \begin_inset Flex Code
11945 status collapsed
11946
11947 \begin_layout Plain Layout
11948 <style>
11949 \end_layout
11950
11951 \end_inset
11952
11953 ] Creates a new paragraph style if it does not already exist.
11954  If the style does exist,
11955  this section is ignored.
11956  Must end with 
11957 \begin_inset Quotes eld
11958 \end_inset
11959
11960
11961 \begin_inset Flex Code
11962 status collapsed
11963
11964 \begin_layout Plain Layout
11965 End
11966 \end_layout
11967
11968 \end_inset
11969
11970
11971 \begin_inset Quotes erd
11972 \end_inset
11973
11974 .
11975 \end_layout
11976
11977 \begin_layout Description
11978 \begin_inset Flex Code
11979 status collapsed
11980
11981 \begin_layout Plain Layout
11982 Requires
11983 \end_layout
11984
11985 \end_inset
11986
11987  [
11988 \begin_inset Flex Code
11989 status collapsed
11990
11991 \begin_layout Plain Layout
11992 string
11993 \end_layout
11994
11995 \end_inset
11996
11997 ] Whether the class requires the feature 
11998 \begin_inset Flex Code
11999 status collapsed
12000
12001 \begin_layout Plain Layout
12002 string
12003 \end_layout
12004
12005 \end_inset
12006
12007 .
12008  Multiple features must be separated by commas.
12009  Note that you can only request supported features.
12010  (See 
12011 \begin_inset CommandInset ref
12012 LatexCommand ref
12013 reference "chap:List-of-functions"
12014 nolink "false"
12015
12016 \end_inset
12017
12018  for the list of features.).
12019  If you require a package with specific options,
12020  you can additionally use 
12021 \begin_inset Flex Code
12022 status collapsed
12023
12024 \begin_layout Plain Layout
12025 PackageOptions
12026 \end_layout
12027
12028 \end_inset
12029
12030 .
12031 \end_layout
12032
12033 \begin_layout Description
12034 \begin_inset Flex Code
12035 status collapsed
12036
12037 \begin_layout Plain Layout
12038 RightMargin
12039 \end_layout
12040
12041 \end_inset
12042
12043  [
12044 \begin_inset Flex Code
12045 status collapsed
12046
12047 \begin_layout Plain Layout
12048 string
12049 \end_layout
12050
12051 \end_inset
12052
12053 ] A string that indicates the width of the right margin on the screen,
12054  for example,
12055  
12056 \begin_inset Quotes eld
12057 \end_inset
12058
12059
12060 \begin_inset Flex Code
12061 status collapsed
12062
12063 \begin_layout Plain Layout
12064 MMMMM
12065 \end_layout
12066
12067 \end_inset
12068
12069
12070 \begin_inset Quotes erd
12071 \end_inset
12072
12073 .
12074 \end_layout
12075
12076 \begin_layout Description
12077 \begin_inset Flex Code
12078 status collapsed
12079
12080 \begin_layout Plain Layout
12081 SecNumDepth
12082 \end_layout
12083
12084 \end_inset
12085
12086  [
12087 \begin_inset Flex Code
12088 status collapsed
12089
12090 \begin_layout Plain Layout
12091 int=3
12092 \end_layout
12093
12094 \end_inset
12095
12096 ] Sets which divisions get numbered.
12097  Corresponds to the
12098 \begin_inset Newline newline
12099 \end_inset
12100
12101
12102 \begin_inset Flex Code
12103 status collapsed
12104
12105 \begin_layout Plain Layout
12106 secnumdepth
12107 \end_layout
12108
12109 \end_inset
12110
12111  counter in \SpecialChar LaTeX
12112 .
12113 \end_layout
12114
12115 \begin_layout Description
12116 \begin_inset Flex Code
12117 status collapsed
12118
12119 \begin_layout Plain Layout
12120 Sides
12121 \end_layout
12122
12123 \end_inset
12124
12125  [
12126 \begin_inset Flex Code
12127 status collapsed
12128
12129 \begin_layout Plain Layout
12130
12131 \emph on
12132 1
12133 \end_layout
12134
12135 \end_inset
12136
12137 ,
12138 \begin_inset space \thinspace{}
12139 \end_inset
12140
12141
12142 \begin_inset Flex Code
12143 status collapsed
12144
12145 \begin_layout Plain Layout
12146 2
12147 \end_layout
12148
12149 \end_inset
12150
12151 ] Whether the class-default should be printing on one or both sides of the paper.
12152  Can be changed in the 
12153 \begin_inset Flex Noun
12154 status collapsed
12155
12156 \begin_layout Plain Layout
12157 Document\SpecialChar menuseparator
12158 Settings
12159 \end_layout
12160
12161 \end_inset
12162
12163  dialog.
12164 \end_layout
12165
12166 \begin_layout Description
12167 \begin_inset Flex Code
12168 status collapsed
12169
12170 \begin_layout Plain Layout
12171 Style
12172 \end_layout
12173
12174 \end_inset
12175
12176  [
12177 \begin_inset Flex Code
12178 status collapsed
12179
12180 \begin_layout Plain Layout
12181 <name>
12182 \end_layout
12183
12184 \end_inset
12185
12186 ] This sequence defines a paragraph style.
12187  If the style does not yet exist,
12188  it is created;
12189  if it does exist,
12190  its parameters are modified.
12191  Must end with 
12192 \begin_inset Quotes eld
12193 \end_inset
12194
12195
12196 \begin_inset Flex Code
12197 status collapsed
12198
12199 \begin_layout Plain Layout
12200 End
12201 \end_layout
12202
12203 \end_inset
12204
12205
12206 \begin_inset Quotes erd
12207 \end_inset
12208
12209 .
12210 \begin_inset Newline newline
12211 \end_inset
12212
12213 See 
12214 \begin_inset CommandInset ref
12215 LatexCommand ref
12216 reference "subsec:Paragraph-Styles"
12217 nolink "false"
12218
12219 \end_inset
12220
12221  for details on paragraph styles.
12222 \change_inserted -712698321 1553617804
12223
12224 \end_layout
12225
12226 \begin_layout Description
12227
12228 \change_inserted -712698321 1553617862
12229 \begin_inset Flex Code
12230 status collapsed
12231
12232 \begin_layout Plain Layout
12233
12234 \change_inserted -712698321 1553617809
12235 TableStyle
12236 \change_unchanged
12237
12238 \end_layout
12239
12240 \end_inset
12241
12242  [
12243 \begin_inset Flex Code
12244 status collapsed
12245
12246 \begin_layout Plain Layout
12247
12248 \change_inserted -712698321 1553617805
12249 <name>
12250 \change_unchanged
12251
12252 \end_layout
12253
12254 \end_inset
12255
12256 ] defines the default table style that is used when inserting a table.
12257  The following styles are available:
12258 \end_layout
12259
12260 \begin_deeper
12261 \begin_layout Itemize
12262
12263 \change_inserted -712698321 1554308039
12264 \begin_inset Flex Code
12265 status collapsed
12266
12267 \begin_layout Plain Layout
12268
12269 \change_inserted -712698321 1554307928
12270 Formal_with_Footline
12271 \change_unchanged
12272
12273 \end_layout
12274
12275 \end_inset
12276
12277 :
12278  formal (
12279 \begin_inset Quotes eld
12280 \end_inset
12281
12282 booktabs
12283 \begin_inset Quotes erd
12284 \end_inset
12285
12286 ) style with horizontal lines only,
12287  using a bold top and bottom line,
12288  the first and last row are additionally separated from the table body with a thin middle line.
12289 \end_layout
12290
12291 \begin_layout Itemize
12292
12293 \change_inserted -712698321 1554308087
12294 \begin_inset Flex Code
12295 status collapsed
12296
12297 \begin_layout Plain Layout
12298
12299 \change_inserted -712698321 1554308042
12300 Formal_without_Footline
12301 \change_unchanged
12302
12303 \end_layout
12304
12305 \end_inset
12306
12307 :
12308  same as the above,
12309  but the last row is not separated with a middle line from the body.
12310 \end_layout
12311
12312 \begin_layout Itemize
12313
12314 \change_inserted -712698321 1553618031
12315 \begin_inset Flex Code
12316 status collapsed
12317
12318 \begin_layout Plain Layout
12319
12320 \change_inserted -712698321 1553618006
12321 Simple_Grid
12322 \change_unchanged
12323
12324 \end_layout
12325
12326 \end_inset
12327
12328 :
12329  Simple table lines.
12330 \end_layout
12331
12332 \begin_layout Itemize
12333
12334 \change_inserted -712698321 1553618309
12335 \begin_inset Flex Code
12336 status collapsed
12337
12338 \begin_layout Plain Layout
12339
12340 \change_inserted -712698321 1553618031
12341 Grid_with_Head
12342 \change_unchanged
12343
12344 \end_layout
12345
12346 \end_inset
12347
12348 :
12349  Like 
12350 \begin_inset Flex Code
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354
12355 \change_inserted -712698321 1553618043
12356 Simple_Grid
12357 \change_unchanged
12358
12359 \end_layout
12360
12361 \end_inset
12362
12363 ,
12364  but with the header 
12365 \change_deleted 34634807 1619712593
12366 column
12367 \change_inserted 34634807 1619712594
12368 row
12369 \change_inserted -712698321 1553618309
12370  offset with a second horizontal line.
12371  This is also the default style of \SpecialChar LyX
12372 .
12373 \end_layout
12374
12375 \begin_layout Itemize
12376
12377 \change_inserted -712698321 1553618280
12378 \begin_inset Flex Code
12379 status collapsed
12380
12381 \begin_layout Plain Layout
12382
12383 \change_inserted -712698321 1553618261
12384 No_Borders
12385 \change_unchanged
12386
12387 \end_layout
12388
12389 \end_inset
12390
12391 :
12392  Table without lines.
12393 \change_unchanged
12394
12395 \end_layout
12396
12397 \end_deeper
12398 \begin_layout Description
12399 \begin_inset Flex Code
12400 status collapsed
12401
12402 \begin_layout Plain Layout
12403 TitleLatexName
12404 \end_layout
12405
12406 \end_inset
12407
12408  [
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 string="maketitle"
12414 \end_layout
12415
12416 \end_inset
12417
12418 ] The name of the command or environment to be used with 
12419 \begin_inset Flex Code
12420 status collapsed
12421
12422 \begin_layout Plain Layout
12423 TitleLatexType
12424 \end_layout
12425
12426 \end_inset
12427
12428 .
12429 \end_layout
12430
12431 \begin_layout Description
12432 \begin_inset Flex Code
12433 status collapsed
12434
12435 \begin_layout Plain Layout
12436 TitleLatexType
12437 \end_layout
12438
12439 \end_inset
12440
12441  [
12442 \begin_inset Flex Code
12443 status collapsed
12444
12445 \begin_layout Plain Layout
12446
12447 \emph on
12448 CommandAfter
12449 \end_layout
12450
12451 \end_inset
12452
12453 ,
12454  
12455 \begin_inset Flex Code
12456 status collapsed
12457
12458 \begin_layout Plain Layout
12459 Environment
12460 \end_layout
12461
12462 \end_inset
12463
12464 ] Indicates what kind of markup is used to define the title of a document.
12465  
12466 \begin_inset Flex Code
12467 status collapsed
12468
12469 \begin_layout Plain Layout
12470 CommandAfter
12471 \end_layout
12472
12473 \end_inset
12474
12475  means that the macro with name 
12476 \begin_inset Flex Code
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480 TitleLatexName
12481 \end_layout
12482
12483 \end_inset
12484
12485  will be inserted after the last layout which has 
12486 \begin_inset Quotes eld
12487 \end_inset
12488
12489
12490 \begin_inset Flex Code
12491 status collapsed
12492
12493 \begin_layout Plain Layout
12494 InTitle
12495 \begin_inset space ~
12496 \end_inset
12497
12498 1
12499 \end_layout
12500
12501 \end_inset
12502
12503
12504 \begin_inset Quotes erd
12505 \end_inset
12506
12507 .
12508  
12509 \begin_inset Flex Code
12510 status collapsed
12511
12512 \begin_layout Plain Layout
12513 Environment
12514 \end_layout
12515
12516 \end_inset
12517
12518  corresponds to the case where all layouts which have 
12519 \begin_inset Quotes eld
12520 \end_inset
12521
12522
12523 \begin_inset Flex Code
12524 status collapsed
12525
12526 \begin_layout Plain Layout
12527 InTitle
12528 \begin_inset space ~
12529 \end_inset
12530
12531 1
12532 \end_layout
12533
12534 \end_inset
12535
12536
12537 \begin_inset Quotes erd
12538 \end_inset
12539
12540  should be enclosed into the 
12541 \begin_inset Flex Code
12542 status collapsed
12543
12544 \begin_layout Plain Layout
12545 TitleLatexName
12546 \end_layout
12547
12548 \end_inset
12549
12550  environment.
12551 \end_layout
12552
12553 \begin_layout Description
12554 \begin_inset Flex Code
12555 status collapsed
12556
12557 \begin_layout Plain Layout
12558 TocDepth
12559 \end_layout
12560
12561 \end_inset
12562
12563  [
12564 \begin_inset Flex Code
12565 status collapsed
12566
12567 \begin_layout Plain Layout
12568 int=3
12569 \end_layout
12570
12571 \end_inset
12572
12573 ] Sets which divisions are included in the table of contents.
12574  Corresponds to the 
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 tocdepth
12580 \end_layout
12581
12582 \end_inset
12583
12584  counter in \SpecialChar LaTeX
12585 .
12586 \end_layout
12587
12588 \begin_layout Subsection
12589 \begin_inset Flex Code
12590 status collapsed
12591
12592 \begin_layout Plain Layout
12593 ClassOptions
12594 \end_layout
12595
12596 \end_inset
12597
12598  section
12599 \begin_inset CommandInset label
12600 LatexCommand label
12601 name "subsec:ClassOptions"
12602
12603 \end_inset
12604
12605
12606 \end_layout
12607
12608 \begin_layout Standard
12609 The 
12610 \begin_inset Flex Code
12611 status collapsed
12612
12613 \begin_layout Plain Layout
12614 ClassOptions
12615 \end_layout
12616
12617 \end_inset
12618
12619  section can contain the following entries:
12620 \end_layout
12621
12622 \begin_layout Description
12623 \begin_inset Flex Code
12624 status collapsed
12625
12626 \begin_layout Plain Layout
12627 FontSize
12628 \end_layout
12629
12630 \end_inset
12631
12632  [
12633 \begin_inset Flex Code
12634 status collapsed
12635
12636 \begin_layout Plain Layout
12637 string="10|11|12"
12638 \end_layout
12639
12640 \end_inset
12641
12642 ] The list of available font sizes for the document's main font,
12643  separated by 
12644 \begin_inset Quotes eld
12645 \end_inset
12646
12647
12648 \begin_inset Flex Code
12649 status collapsed
12650
12651 \begin_layout Plain Layout
12652 |
12653 \end_layout
12654
12655 \end_inset
12656
12657
12658 \begin_inset Quotes erd
12659 \end_inset
12660
12661 .
12662
12663 \change_inserted -712698321 1565110196
12664  Any number is possible.
12665 \end_layout
12666
12667 \begin_layout Description
12668
12669 \change_inserted -712698321 1565110259
12670 \begin_inset Flex Code
12671 status collapsed
12672
12673 \begin_layout Plain Layout
12674
12675 \change_inserted -712698321 1565110199
12676 FontSizeFormat
12677 \change_unchanged
12678
12679 \end_layout
12680
12681 \end_inset
12682
12683  [
12684 \begin_inset Flex Code
12685 status collapsed
12686
12687 \begin_layout Plain Layout
12688
12689 \change_inserted -712698321 1565110196
12690 string
12691 \change_unchanged
12692
12693 \end_layout
12694
12695 \end_inset
12696
12697 ] The format for the font size option.
12698  Default:
12699  
12700 \begin_inset Flex Code
12701 status collapsed
12702
12703 \begin_layout Plain Layout
12704
12705 \change_inserted -712698321 1565110238
12706 $$spt
12707 \change_unchanged
12708
12709 \end_layout
12710
12711 \end_inset
12712
12713 .
12714  
12715 \begin_inset Flex Code
12716 status collapsed
12717
12718 \begin_layout Plain Layout
12719
12720 \change_inserted -712698321 1565110248
12721 $$s
12722 \change_unchanged
12723
12724 \end_layout
12725
12726 \end_inset
12727
12728  is a placeholder for the font size.
12729 \change_unchanged
12730
12731 \end_layout
12732
12733 \begin_layout Description
12734
12735 \change_deleted 5863208 1594239483
12736 \begin_inset Flex Code
12737 status collapsed
12738
12739 \begin_layout Plain Layout
12740 Header
12741 \end_layout
12742
12743 \end_inset
12744
12745  Used to set the DTD line with XML-based output classes.
12746  E.
12747 \begin_inset space \thinspace{}
12748 \end_inset
12749
12750 g.:
12751  PUBLIC 
12752 \begin_inset Quotes eld
12753 \end_inset
12754
12755 -//OASIS//DTD DocBook V4.2//EN
12756 \begin_inset Quotes erd
12757 \end_inset
12758
12759 .
12760 \change_inserted -712698321 1565101761
12761
12762 \end_layout
12763
12764 \begin_layout Description
12765
12766 \change_inserted -712698321 1565180598
12767 \begin_inset Flex Code
12768 status collapsed
12769
12770 \begin_layout Plain Layout
12771
12772 \change_inserted -712698321 1565101918
12773 PageSize
12774 \change_unchanged
12775
12776 \end_layout
12777
12778 \end_inset
12779
12780  [
12781 \begin_inset Flex Code
12782 status collapsed
12783
12784 \begin_layout Plain Layout
12785
12786 \change_inserted -712698321 1565105399
12787 string="letter|\SpecialChar allowbreak
12788 legal|\SpecialChar allowbreak
12789 executive|\SpecialChar allowbreak
12790 a0|\SpecialChar allowbreak
12791 a1|\SpecialChar allowbreak
12792 a2|\SpecialChar allowbreak
12793 a3|\SpecialChar allowbreak
12794 a4|\SpecialChar allowbreak
12795 a5|\SpecialChar allowbreak
12796 a6|\SpecialChar allowbreak
12797 b0|\SpecialChar allowbreak
12798 b1|\SpecialChar allowbreak
12799 b2|\SpecialChar allowbreak
12800 b3|\SpecialChar allowbreak
12801 b4|\SpecialChar allowbreak
12802 b5|\SpecialChar allowbreak
12803 b6|\SpecialChar allowbreak
12804 c0|\SpecialChar allowbreak
12805 c1|\SpecialChar allowbreak
12806 c2|\SpecialChar allowbreak
12807 c3|\SpecialChar allowbreak
12808 c4|\SpecialChar allowbreak
12809 c5|\SpecialChar allowbreak
12810 c6|\SpecialChar allowbreak
12811 b0j|\SpecialChar allowbreak
12812 b1j|\SpecialChar allowbreak
12813 b2j|\SpecialChar allowbreak
12814 b3j|\SpecialChar allowbreak
12815 b4j|\SpecialChar allowbreak
12816 b5j|\SpecialChar allowbreak
12817 b6j"
12818 \change_unchanged
12819
12820 \end_layout
12821
12822 \end_inset
12823
12824 ] The list of available page sizes,
12825  separated by 
12826 \begin_inset Quotes eld
12827 \end_inset
12828
12829
12830 \begin_inset Flex Code
12831 status collapsed
12832
12833 \begin_layout Plain Layout
12834
12835 \change_inserted -712698321 1565101779
12836 |
12837 \change_unchanged
12838
12839 \end_layout
12840
12841 \end_inset
12842
12843
12844 \begin_inset Quotes erd
12845 \end_inset
12846
12847 .
12848  Currently,
12849  only the listed sizes are supported.
12850  Other sizes might be entered as custom class option.
12851 \end_layout
12852
12853 \begin_layout Description
12854
12855 \change_inserted -712698321 1565180623
12856 \begin_inset Flex Code
12857 status collapsed
12858
12859 \begin_layout Plain Layout
12860
12861 \change_inserted -712698321 1565180605
12862 PageSizeFormat
12863 \change_unchanged
12864
12865 \end_layout
12866
12867 \end_inset
12868
12869  [
12870 \begin_inset Flex Code
12871 status collapsed
12872
12873 \begin_layout Plain Layout
12874
12875 \change_inserted -712698321 1565180601
12876 string
12877 \change_unchanged
12878
12879 \end_layout
12880
12881 \end_inset
12882
12883 ] The format for the page size option.
12884  Default:
12885  
12886 \begin_inset Flex Code
12887 status collapsed
12888
12889 \begin_layout Plain Layout
12890
12891 \change_inserted -712698321 1565180618
12892 $$spaper
12893 \change_unchanged
12894
12895 \end_layout
12896
12897 \end_inset
12898
12899 .
12900  
12901 \begin_inset Flex Code
12902 status collapsed
12903
12904 \begin_layout Plain Layout
12905
12906 \change_inserted -712698321 1565180601
12907 $$s
12908 \change_unchanged
12909
12910 \end_layout
12911
12912 \end_inset
12913
12914  is a placeholder for the paper size.
12915 \change_unchanged
12916
12917 \end_layout
12918
12919 \begin_layout Description
12920 \begin_inset Flex Code
12921 status collapsed
12922
12923 \begin_layout Plain Layout
12924 PageStyle
12925 \end_layout
12926
12927 \end_inset
12928
12929  [
12930 \begin_inset Flex Code
12931 status collapsed
12932
12933 \begin_layout Plain Layout
12934 string="empty|plain|headings|fancy"
12935 \end_layout
12936
12937 \end_inset
12938
12939 ] The list of available page sty\SpecialChar softhyphen
12940 les,
12941  separated by 
12942 \begin_inset Quotes eld
12943 \end_inset
12944
12945
12946 \begin_inset Flex Code
12947 status collapsed
12948
12949 \begin_layout Plain Layout
12950 |
12951 \end_layout
12952
12953 \end_inset
12954
12955
12956 \begin_inset Quotes erd
12957 \end_inset
12958
12959 .
12960 \end_layout
12961
12962 \begin_layout Description
12963 \begin_inset Flex Code
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967 Other
12968 \end_layout
12969
12970 \end_inset
12971
12972  [
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977 string=""
12978 \end_layout
12979
12980 \end_inset
12981
12982 ] Some document class options,
12983  separated by a comma,
12984  that will be added to the optional part of the 
12985 \begin_inset Flex Code
12986 status collapsed
12987
12988 \begin_layout Plain Layout
12989
12990 \backslash
12991 documentclass
12992 \end_layout
12993
12994 \end_inset
12995
12996  command.
12997 \end_layout
12998
12999 \begin_layout Standard
13000 The 
13001 \begin_inset Flex Code
13002 status collapsed
13003
13004 \begin_layout Plain Layout
13005 ClassOptions
13006 \end_layout
13007
13008 \end_inset
13009
13010  section must end with 
13011 \begin_inset Quotes eld
13012 \end_inset
13013
13014
13015 \begin_inset Flex Code
13016 status collapsed
13017
13018 \begin_layout Plain Layout
13019 End
13020 \end_layout
13021
13022 \end_inset
13023
13024
13025 \begin_inset Quotes erd
13026 \end_inset
13027
13028 .
13029 \end_layout
13030
13031 \begin_layout Subsection
13032 Paragraph styles
13033 \begin_inset CommandInset label
13034 LatexCommand label
13035 name "subsec:Paragraph-Styles"
13036
13037 \end_inset
13038
13039
13040 \end_layout
13041
13042 \begin_layout Standard
13043 A paragraph style description looks like this:
13044 \begin_inset Foot
13045 status collapsed
13046
13047 \begin_layout Plain Layout
13048 Note that this will either define a new style or modify an existing one.
13049 \end_layout
13050
13051 \end_inset
13052
13053
13054 \end_layout
13055
13056 \begin_layout LyX-Code
13057 Style 
13058 \family roman
13059 \emph on
13060 name
13061 \end_layout
13062
13063 \begin_layout LyX-Code
13064  ...
13065 \end_layout
13066
13067 \begin_layout LyX-Code
13068 End
13069 \end_layout
13070
13071 \begin_layout Standard
13072 where the following commands are allowed:
13073 \end_layout
13074
13075 \begin_layout Description
13076 \begin_inset Flex Code
13077 status collapsed
13078
13079 \begin_layout Plain Layout
13080 AddToToc
13081 \end_layout
13082
13083 \end_inset
13084
13085  [
13086 \begin_inset Flex Code
13087 status collapsed
13088
13089 \begin_layout Plain Layout
13090 string
13091 \end_layout
13092
13093 \end_inset
13094
13095 =""] This paragraph will appear in the table of contents of the given type.
13096  An empty string disables.
13097  See also the OutlinerName and the IsTocCaption commands.
13098  Default:
13099  disabled.
13100 \end_layout
13101
13102 \begin_layout Description
13103 \begin_inset Flex Code
13104 status collapsed
13105
13106 \begin_layout Plain Layout
13107 Align
13108 \end_layout
13109
13110 \end_inset
13111
13112  [
13113 \begin_inset Flex Code
13114 status collapsed
13115
13116 \begin_layout Plain Layout
13117
13118 \emph on
13119 block
13120 \emph default
13121 ,
13122  left,
13123  right,
13124  center
13125 \end_layout
13126
13127 \end_inset
13128
13129 ] Paragraph alignment.
13130 \end_layout
13131
13132 \begin_layout Description
13133 \begin_inset Flex Code
13134 status collapsed
13135
13136 \begin_layout Plain Layout
13137 AlignPossible
13138 \end_layout
13139
13140 \end_inset
13141
13142  [
13143 \begin_inset Flex Code
13144 status collapsed
13145
13146 \begin_layout Plain Layout
13147
13148 \emph on
13149 block
13150 \emph default
13151 ,
13152  left,
13153  right,
13154  center
13155 \end_layout
13156
13157 \end_inset
13158
13159 ] A comma separated list of permitted alignments.
13160  (Some \SpecialChar LaTeX
13161  styles prohibit certain alignments,
13162  since those wouldn't make sense.
13163  For example a right-aligned or centered enumeration isn't possible.)
13164 \end_layout
13165
13166 \begin_layout Description
13167 \begin_inset Flex Code
13168 status collapsed
13169
13170 \begin_layout Plain Layout
13171 Argument
13172 \end_layout
13173
13174 \end_inset
13175
13176  [
13177 \begin_inset Flex Code
13178 status collapsed
13179
13180 \begin_layout Plain Layout
13181 int
13182 \end_layout
13183
13184 \end_inset
13185
13186 ] Defines argument number <int> of a command\SpecialChar breakableslash
13187 environment associated with the current style.
13188
13189 \change_inserted -584632292 1615846868
13190  The definition must end with 
13191 \begin_inset Flex Code
13192 status collapsed
13193
13194 \begin_layout Plain Layout
13195
13196 \change_inserted -584632292 1615846867
13197 EndArgument
13198 \change_unchanged
13199
13200 \end_layout
13201
13202 \end_inset
13203
13204 .
13205
13206 \change_unchanged
13207  
13208 \change_inserted -584632292 1615846880
13209 See 
13210 \begin_inset CommandInset ref
13211 LatexCommand ref
13212 reference "subsec:Arguments"
13213 plural "false"
13214 caps "false"
13215 noprefix "false"
13216 nolink "false"
13217
13218 \end_inset
13219
13220  for more information.
13221  
13222 \change_deleted -584632292 1615846694
13223 This is useful for things like section headings,
13224  and only makes sense with \SpecialChar LaTeX
13225 .
13226  Every (optional or required) argument of a command or environment – except for the required argument that is associated with the content of the paragraph itself – has a separate definition,
13227  where the number specifies the order of the arguments.
13228  The definition must end with 
13229 \begin_inset Flex Code
13230 status collapsed
13231
13232 \begin_layout Plain Layout
13233 EndArgument
13234 \end_layout
13235
13236 \end_inset
13237
13238 .
13239  So a command with two optional arguments has:
13240 \end_layout
13241
13242 \begin_deeper
13243 \begin_layout Quote
13244
13245 \change_deleted -584632292 1615846694
13246
13247 \family typewriter
13248 Argument 1
13249 \end_layout
13250
13251 \begin_layout Quote
13252
13253 \change_deleted -584632292 1615846694
13254
13255 \family typewriter
13256 ...
13257 \end_layout
13258
13259 \begin_layout Quote
13260
13261 \change_deleted -584632292 1615846694
13262
13263 \family typewriter
13264 EndArgument
13265 \end_layout
13266
13267 \begin_layout Quote
13268
13269 \change_deleted -584632292 1615846694
13270
13271 \family typewriter
13272 Argument 2
13273 \end_layout
13274
13275 \begin_layout Quote
13276
13277 \change_deleted -584632292 1615846694
13278
13279 \family typewriter
13280 ...
13281 \end_layout
13282
13283 \begin_layout Quote
13284
13285 \change_deleted -584632292 1615846694
13286
13287 \family typewriter
13288 EndArgument
13289 \end_layout
13290
13291 \begin_layout Standard
13292
13293 \change_deleted -584632292 1615846694
13294 Inside the 
13295 \begin_inset Flex Code
13296 status collapsed
13297
13298 \begin_layout Plain Layout
13299 Argument
13300 \end_layout
13301
13302 \end_inset
13303
13304  definition,
13305  the following specifications are possible:
13306 \end_layout
13307
13308 \begin_layout Itemize
13309
13310 \change_deleted -584632292 1615846694
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  
13321 \begin_inset Flex Code
13322 status collapsed
13323
13324 \begin_layout Plain Layout
13325 [string]
13326 \end_layout
13327
13328 \end_inset
13329
13330  The string that will appear both in the menu (to insert this argument) and on the argument inset button (unless you also specify a separate 
13331 \begin_inset Flex Code
13332 status collapsed
13333
13334 \begin_layout Plain Layout
13335 MenuString
13336 \end_layout
13337
13338 \end_inset
13339
13340 ).
13341  For the menu,
13342  you can define an accelerator by appending the respective character to the string,
13343  divided by 
13344 \begin_inset Quotes eld
13345 \end_inset
13346
13347 |
13348 \begin_inset Quotes erd
13349 \end_inset
13350
13351  (e.
13352 \begin_inset space \thinspace{}
13353 \end_inset
13354
13355 g.
13356 \begin_inset space \space{}
13357 \end_inset
13358
13359
13360 \begin_inset Quotes eld
13361 \end_inset
13362
13363
13364 \begin_inset Flex Code
13365 status collapsed
13366
13367 \begin_layout Plain Layout
13368 Short Title|S
13369 \end_layout
13370
13371 \end_inset
13372
13373
13374 \begin_inset Quotes erd
13375 \end_inset
13376
13377 ).
13378 \end_layout
13379
13380 \begin_layout Itemize
13381
13382 \change_deleted -584632292 1615846694
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 MenuString
13388 \end_layout
13389
13390 \end_inset
13391
13392  
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 [string]
13398 \end_layout
13399
13400 \end_inset
13401
13402  A separate string for the menu.
13403  You can define an accelerator by appending the respective character to the string,
13404  divided by 
13405 \begin_inset Quotes eld
13406 \end_inset
13407
13408 |
13409 \begin_inset Quotes erd
13410 \end_inset
13411
13412  (e.
13413 \begin_inset space \thinspace{}
13414 \end_inset
13415
13416 g.
13417 \begin_inset space \space{}
13418 \end_inset
13419
13420
13421 \begin_inset Quotes eld
13422 \end_inset
13423
13424
13425 \begin_inset Flex Code
13426 status collapsed
13427
13428 \begin_layout Plain Layout
13429 Short Title|S
13430 \end_layout
13431
13432 \end_inset
13433
13434
13435 \begin_inset Quotes erd
13436 \end_inset
13437
13438 ).
13439  This specification is optional.
13440  If it is not given the 
13441 \begin_inset Flex Code
13442 status collapsed
13443
13444 \begin_layout Plain Layout
13445 LabelString
13446 \end_layout
13447
13448 \end_inset
13449
13450  will be used instead for the menu.
13451 \end_layout
13452
13453 \begin_layout Itemize
13454
13455 \change_deleted -584632292 1615846694
13456 \begin_inset Flex Code
13457 status collapsed
13458
13459 \begin_layout Plain Layout
13460 Tooltip
13461 \end_layout
13462
13463 \end_inset
13464
13465  
13466 \begin_inset Flex Code
13467 status collapsed
13468
13469 \begin_layout Plain Layout
13470 [string]
13471 \end_layout
13472
13473 \end_inset
13474
13475  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
13476 \end_layout
13477
13478 \begin_layout Itemize
13479
13480 \change_deleted -584632292 1615846694
13481 \begin_inset Flex Code
13482 status collapsed
13483
13484 \begin_layout Plain Layout
13485 Mandatory
13486 \end_layout
13487
13488 \end_inset
13489
13490  [
13491 \begin_inset Flex Code
13492 status collapsed
13493
13494 \begin_layout Plain Layout
13495
13496 \emph on
13497 0
13498 \end_layout
13499
13500 \end_inset
13501
13502 ,
13503 \begin_inset space \thinspace{}
13504 \end_inset
13505
13506
13507 \begin_inset Flex Code
13508 status collapsed
13509
13510 \begin_layout Plain Layout
13511 1
13512 \end_layout
13513
13514 \end_inset
13515
13516 ] Declare if this is a mandatory (1) or an optional (0) argument.
13517  Mandatory arguments will be output empty if not given,
13518  while optional arguments will not be output at all.
13519  By default,
13520  mandatory arguments are delimited by 
13521 \begin_inset Flex Code
13522 status collapsed
13523
13524 \begin_layout Plain Layout
13525 {...}
13526 \end_layout
13527
13528 \end_inset
13529
13530 ,
13531  while optional arguments are delimited by 
13532 \begin_inset Flex Code
13533 status collapsed
13534
13535 \begin_layout Plain Layout
13536 [...]
13537 \end_layout
13538
13539 \end_inset
13540
13541
13542 \end_layout
13543
13544 \begin_layout Itemize
13545
13546 \change_deleted -584632292 1615846694
13547 \begin_inset Flex Code
13548 status collapsed
13549
13550 \begin_layout Plain Layout
13551
13552 \change_inserted -712698321 1555579780
13553 NewlineCmd
13554 \change_unchanged
13555
13556 \end_layout
13557
13558 \end_inset
13559
13560  
13561 \begin_inset Flex Code
13562 status collapsed
13563
13564 \begin_layout Plain Layout
13565
13566 \change_inserted -712698321 1555579780
13567 [string]
13568 \change_unchanged
13569
13570 \end_layout
13571
13572 \end_inset
13573
13574  Option to define a different command (from the default 
13575 \begin_inset Flex Code
13576 status collapsed
13577
13578 \begin_layout Plain Layout
13579
13580 \change_inserted -712698321 1555579780
13581
13582 \backslash
13583
13584 \backslash
13585
13586 \change_unchanged
13587
13588 \end_layout
13589
13590 \end_inset
13591
13592 ) to be used for line breaks.
13593  The initial backslash must not be specified.
13594 \end_layout
13595
13596 \begin_layout Itemize
13597
13598 \change_deleted -584632292 1615846694
13599 \begin_inset Flex Code
13600 status collapsed
13601
13602 \begin_layout Plain Layout
13603 Requires
13604 \end_layout
13605
13606 \end_inset
13607
13608  
13609 \begin_inset Flex Code
13610 status collapsed
13611
13612 \begin_layout Plain Layout
13613 [int=0]
13614 \end_layout
13615
13616 \end_inset
13617
13618  defines another argument (by its number) which this argument requires to be output if it is itself output.
13619  E.
13620 \begin_inset space \thinspace{}
13621 \end_inset
13622
13623 g.,
13624  in \SpecialChar LaTeX
13625  commands,
13626  optional arguments often require previous optional arguments to be output (at least empty),
13627  as in 
13628 \begin_inset Flex Code
13629 status collapsed
13630
13631 \begin_layout Plain Layout
13632
13633 \backslash
13634 command[][argument]{text}
13635 \end_layout
13636
13637 \end_inset
13638
13639 .
13640  This can be achieved by the statement 
13641 \begin_inset Flex Code
13642 status collapsed
13643
13644 \begin_layout Plain Layout
13645 Requires 1
13646 \end_layout
13647
13648 \end_inset
13649
13650  within 
13651 \begin_inset Flex Code
13652 status collapsed
13653
13654 \begin_layout Plain Layout
13655 Argument 2
13656 \end_layout
13657
13658 \end_inset
13659
13660 .
13661 \end_layout
13662
13663 \begin_layout Itemize
13664
13665 \change_deleted -584632292 1615846694
13666 \begin_inset Flex Code
13667 status collapsed
13668
13669 \begin_layout Plain Layout
13670 LeftDelim
13671 \end_layout
13672
13673 \end_inset
13674
13675  
13676 \begin_inset Flex Code
13677 status collapsed
13678
13679 \begin_layout Plain Layout
13680 [string]
13681 \end_layout
13682
13683 \end_inset
13684
13685  defines a custom left delimiter (instead of 
13686 \begin_inset Flex Code
13687 status collapsed
13688
13689 \begin_layout Plain Layout
13690 {
13691 \end_layout
13692
13693 \end_inset
13694
13695  or 
13696 \begin_inset Flex Code
13697 status collapsed
13698
13699 \begin_layout Plain Layout
13700 [
13701 \end_layout
13702
13703 \end_inset
13704
13705 ).
13706  A line break in the output can be indicated by 
13707 \begin_inset Flex Code
13708 status collapsed
13709
13710 \begin_layout Plain Layout
13711 <br/>
13712 \end_layout
13713
13714 \end_inset
13715
13716 .
13717 \end_layout
13718
13719 \begin_layout Itemize
13720
13721 \change_deleted -584632292 1615846694
13722 \begin_inset Flex Code
13723 status collapsed
13724
13725 \begin_layout Plain Layout
13726 RightDelim
13727 \end_layout
13728
13729 \end_inset
13730
13731  
13732 \begin_inset Flex Code
13733 status collapsed
13734
13735 \begin_layout Plain Layout
13736 [string]
13737 \end_layout
13738
13739 \end_inset
13740
13741  defines a custom right delimiter (instead of 
13742 \begin_inset Flex Code
13743 status collapsed
13744
13745 \begin_layout Plain Layout
13746 }
13747 \end_layout
13748
13749 \end_inset
13750
13751  or 
13752 \begin_inset Flex Code
13753 status collapsed
13754
13755 \begin_layout Plain Layout
13756 ]
13757 \end_layout
13758
13759 \end_inset
13760
13761 ).
13762  A line break in the output can be indicated by 
13763 \begin_inset Flex Code
13764 status collapsed
13765
13766 \begin_layout Plain Layout
13767 <br/>
13768 \end_layout
13769
13770 \end_inset
13771
13772 .
13773 \end_layout
13774
13775 \begin_layout Itemize
13776
13777 \change_deleted -584632292 1615846694
13778 \begin_inset Flex Code
13779 status collapsed
13780
13781 \begin_layout Plain Layout
13782 DefaultArg
13783 \end_layout
13784
13785 \end_inset
13786
13787  
13788 \begin_inset Flex Code
13789 status collapsed
13790
13791 \begin_layout Plain Layout
13792 [string]
13793 \end_layout
13794
13795 \end_inset
13796
13797  defines an argument that is inserted if and only if no user-specified arguments were given,
13798  i.
13799 \begin_inset space \thinspace{}
13800 \end_inset
13801
13802 e.
13803 \begin_inset space \space{}
13804 \end_inset
13805
13806 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
13807  Multiple arguments need to be separated by comma.
13808 \end_layout
13809
13810 \begin_layout Itemize
13811
13812 \change_deleted -584632292 1615846694
13813 \begin_inset Flex Code
13814 status collapsed
13815
13816 \begin_layout Plain Layout
13817 PresetArg
13818 \end_layout
13819
13820 \end_inset
13821
13822  
13823 \begin_inset Flex Code
13824 status collapsed
13825
13826 \begin_layout Plain Layout
13827 [string]
13828 \end_layout
13829
13830 \end_inset
13831
13832  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
13833  Multiple arguments need to be separated by comma.
13834 \end_layout
13835
13836 \begin_layout Itemize
13837
13838 \change_deleted -584632292 1615846694
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 Font
13844 \end_layout
13845
13846 \end_inset
13847
13848  The font used for the argument content,
13849  see 
13850 \begin_inset CommandInset ref
13851 LatexCommand ref
13852 reference "subsec:Font-description"
13853 nolink "false"
13854
13855 \end_inset
13856
13857 .
13858 \end_layout
13859
13860 \begin_layout Itemize
13861
13862 \change_deleted -584632292 1615846694
13863 \begin_inset Flex Code
13864 status collapsed
13865
13866 \begin_layout Plain Layout
13867
13868 \change_inserted -712698321 1559484228
13869 FreeSpacing
13870 \change_unchanged
13871
13872 \end_layout
13873
13874 \end_inset
13875
13876  [
13877 \begin_inset Flex Code
13878 status collapsed
13879
13880 \begin_layout Plain Layout
13881
13882 \change_inserted -712698321 1559484228
13883
13884 \emph on
13885 0
13886 \change_unchanged
13887
13888 \end_layout
13889
13890 \end_inset
13891
13892 ,
13893 \begin_inset space \thinspace{}
13894 \end_inset
13895
13896
13897 \begin_inset Flex Code
13898 status collapsed
13899
13900 \begin_layout Plain Layout
13901
13902 \change_inserted -712698321 1559484228
13903 1
13904 \change_unchanged
13905
13906 \end_layout
13907
13908 \end_inset
13909
13910 ] As with paragraph styles,
13911  see 
13912 \begin_inset CommandInset ref
13913 LatexCommand ref
13914 reference "subsec:Paragraph-Styles"
13915 nolink "false"
13916
13917 \end_inset
13918
13919 .
13920 \end_layout
13921
13922 \begin_layout Itemize
13923
13924 \change_deleted -584632292 1615846694
13925 \begin_inset Flex Code
13926 status collapsed
13927
13928 \begin_layout Plain Layout
13929 LabelFont
13930 \end_layout
13931
13932 \end_inset
13933
13934  The font used for the label;
13935  see 
13936 \begin_inset CommandInset ref
13937 LatexCommand ref
13938 reference "subsec:Font-description"
13939 nolink "false"
13940
13941 \end_inset
13942
13943 .
13944 \end_layout
13945
13946 \begin_layout Itemize
13947
13948 \change_deleted -584632292 1615846694
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 Decoration
13954 \end_layout
13955
13956 \end_inset
13957
13958  [
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963
13964 \emph on
13965 Classic
13966 \emph default
13967 ,
13968  Minimalistic,
13969  Conglomerate
13970 \end_layout
13971
13972 \end_inset
13973
13974 ] describes the rendering style used for the inset's frame and buttons.
13975 \end_layout
13976
13977 \begin_layout Itemize
13978
13979 \change_deleted -584632292 1615846694
13980 \begin_inset Flex Code
13981 status collapsed
13982
13983 \begin_layout Plain Layout
13984 AutoInsert
13985 \end_layout
13986
13987 \end_inset
13988
13989  
13990 \begin_inset Flex Code
13991 status collapsed
13992
13993 \begin_layout Plain Layout
13994 [int=0]
13995 \end_layout
13996
13997 \end_inset
13998
13999  If this is set to 
14000 \begin_inset Flex Code
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004 1
14005 \end_layout
14006
14007 \end_inset
14008
14009 ,
14010  this argument is automatically inserted when the respective style is selected.
14011
14012 \change_deleted -712698321 1559484200
14013  Currently,
14014  only one argument per style\SpecialChar breakableslash
14015 layout can be automatically inserted.
14016 \change_deleted -584632292 1615846694
14017
14018 \end_layout
14019
14020 \begin_layout Itemize
14021
14022 \change_deleted -584632292 1615846694
14023 \begin_inset Flex Code
14024 status collapsed
14025
14026 \begin_layout Plain Layout
14027
14028 \change_inserted -712698321 1559490711
14029 InsertOnNewline
14030 \change_unchanged
14031
14032 \end_layout
14033
14034 \end_inset
14035
14036  
14037 \begin_inset Flex Code
14038 status collapsed
14039
14040 \begin_layout Plain Layout
14041
14042 \change_inserted -712698321 1559490703
14043 [int=0]
14044 \change_unchanged
14045
14046 \end_layout
14047
14048 \end_inset
14049
14050  If this is set to 
14051 \begin_inset Flex Code
14052 status collapsed
14053
14054 \begin_layout Plain Layout
14055
14056 \change_inserted -712698321 1559490703
14057 1
14058 \change_unchanged
14059
14060 \end_layout
14061
14062 \end_inset
14063
14064 ,
14065  this argument will be inserted on a new line with 
14066 \begin_inset Flex Code
14067 status collapsed
14068
14069 \begin_layout Plain Layout
14070
14071 \change_inserted -712698321 1559491402
14072 AutoInsert
14073 \change_unchanged
14074
14075 \end_layout
14076
14077 \end_inset
14078
14079  (only available within Flex insets).
14080 \end_layout
14081
14082 \begin_layout Itemize
14083
14084 \change_deleted -584632292 1615846694
14085 \begin_inset Flex Code
14086 status collapsed
14087
14088 \begin_layout Plain Layout
14089 InsertCotext
14090 \end_layout
14091
14092 \end_inset
14093
14094  
14095 \begin_inset Flex Code
14096 status collapsed
14097
14098 \begin_layout Plain Layout
14099 [int=0]
14100 \end_layout
14101
14102 \end_inset
14103
14104  If this is set to 
14105 \begin_inset Flex Code
14106 status collapsed
14107
14108 \begin_layout Plain Layout
14109 1
14110 \end_layout
14111
14112 \end_inset
14113
14114 ,
14115  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
14116 \end_layout
14117
14118 \begin_layout Itemize
14119
14120 \change_deleted -584632292 1615846694
14121 \begin_inset Flex Code
14122 status collapsed
14123
14124 \begin_layout Plain Layout
14125 PassThru
14126 \end_layout
14127
14128 \end_inset
14129
14130  [
14131 \begin_inset Flex Code
14132 status collapsed
14133
14134 \begin_layout Plain Layout
14135
14136 \emph on
14137 inherited
14138 \emph default
14139 ,
14140  true,
14141  false
14142 \end_layout
14143
14144 \end_inset
14145
14146 ] Whether the contents of this argument should be output in raw form,
14147  meaning without special translations that \SpecialChar LaTeX
14148  would require.
14149  By default,
14150  the 
14151 \begin_inset Flex Code
14152 status collapsed
14153
14154 \begin_layout Plain Layout
14155 PassThru
14156 \end_layout
14157
14158 \end_inset
14159
14160  status is inherited by the inset or paragraph layout the argument belongs to,
14161  true and false change the status for the given argument only.
14162 \end_layout
14163
14164 \begin_layout Itemize
14165
14166 \change_deleted -584632292 1615846694
14167 \begin_inset Flex Code
14168 status collapsed
14169
14170 \begin_layout Plain Layout
14171 PassThruChars
14172 \end_layout
14173
14174 \end_inset
14175
14176  [
14177 \begin_inset Flex Code
14178 status collapsed
14179
14180 \begin_layout Plain Layout
14181 string of characters
14182 \end_layout
14183
14184 \end_inset
14185
14186 ]
14187 \family typewriter
14188  
14189 \family default
14190 Defines individual characters
14191 \begin_inset Newline linebreak
14192 \end_inset
14193
14194 that should be output in raw form,
14195  meaning without special translations that \SpecialChar LaTeX
14196  would require.
14197  Note that,
14198  contrary to PassThru,
14199  this needs to be explicitly defined for arguments.
14200  That is,
14201  arguments do not inherit PassThruChars from their parent inset or layout.
14202 \end_layout
14203
14204 \begin_layout Itemize
14205
14206 \change_deleted -584632292 1615846694
14207 \begin_inset Flex Code
14208 status collapsed
14209
14210 \begin_layout Plain Layout
14211 IsTocCaption
14212 \end_layout
14213
14214 \end_inset
14215
14216  [
14217 \begin_inset Flex Code
14218 status collapsed
14219
14220 \begin_layout Plain Layout
14221
14222 \emph on
14223 0
14224 \end_layout
14225
14226 \end_inset
14227
14228 ,
14229 \begin_inset space \thinspace{}
14230 \end_inset
14231
14232
14233 \begin_inset Flex Code
14234 status collapsed
14235
14236 \begin_layout Plain Layout
14237 1
14238 \end_layout
14239
14240 \end_inset
14241
14242 ] If this is set to 1,
14243  the argument will output its content in the corresponding item in the table of contents.
14244  See AddToToc.
14245 \end_layout
14246
14247 \begin_layout Standard
14248
14249 \change_deleted -584632292 1615846694
14250 By default,
14251  the text entered in the \SpecialChar LyX
14252  workarea in the respective layout is the last (mandatory) argument of a command if the 
14253 \begin_inset Flex Code
14254 status collapsed
14255
14256 \begin_layout Plain Layout
14257 LatexType
14258 \end_layout
14259
14260 \end_inset
14261
14262  is 
14263 \begin_inset Flex Code
14264 status collapsed
14265
14266 \begin_layout Plain Layout
14267 Command
14268 \end_layout
14269
14270 \end_inset
14271
14272 .
14273  However,
14274  arguments with the prefix 
14275 \begin_inset Flex Code
14276 status collapsed
14277
14278 \begin_layout Plain Layout
14279 post:
14280 \end_layout
14281
14282 \end_inset
14283
14284  are output after this workarea argument.
14285  Note that post-argument numbering restarts at 1,
14286  so the first argument following the workarea argument is 
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 post:1
14292 \end_layout
14293
14294 \end_inset
14295
14296 .
14297  Post-arguments are ignored in any other 
14298 \begin_inset Flex Code
14299 status collapsed
14300
14301 \begin_layout Plain Layout
14302 LatexType
14303 \end_layout
14304
14305 \end_inset
14306
14307  than 
14308 \begin_inset Flex Code
14309 status collapsed
14310
14311 \begin_layout Plain Layout
14312 Command
14313 \end_layout
14314
14315 \end_inset
14316
14317 .
14318 \end_layout
14319
14320 \begin_layout Standard
14321
14322 \change_deleted -584632292 1615846694
14323 Arguments for list 
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328
14329 \backslash
14330 item
14331 \end_layout
14332
14333 \end_inset
14334
14335 s (as in 
14336 \begin_inset Flex Code
14337 status collapsed
14338
14339 \begin_layout Plain Layout
14340
14341 \backslash
14342 item[foo]
14343 \end_layout
14344
14345 \end_inset
14346
14347 ) have the prefix 
14348 \begin_inset Flex Code
14349 status collapsed
14350
14351 \begin_layout Plain Layout
14352 item:
14353 \end_layout
14354
14355 \end_inset
14356
14357  followed by the number (e.
14358 \begin_inset space \thinspace{}
14359 \end_inset
14360
14361 g.
14362 \begin_inset space \space{}
14363 \end_inset
14364
14365
14366 \begin_inset Flex Code
14367 status collapsed
14368
14369 \begin_layout Plain Layout
14370 Argument item:1
14371 \end_layout
14372
14373 \end_inset
14374
14375 ).
14376 \end_layout
14377
14378 \begin_layout Standard
14379
14380 \change_deleted -584632292 1615846694
14381 Finally,
14382  there is a special argument type with the prefix 
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387
14388 \change_inserted -712698321 1534487844
14389 listpreamble:
14390 \change_unchanged
14391
14392 \end_layout
14393
14394 \end_inset
14395
14396 .
14397  It is not really an argument,
14398  but uses the argument interface (thus,
14399  the prefix is also followed by a number,
14400  e.
14401 \begin_inset space \thinspace{}
14402 \end_inset
14403
14404 g.
14405  
14406 \begin_inset Flex Code
14407 status collapsed
14408
14409 \begin_layout Plain Layout
14410
14411 \change_inserted -712698321 1534488412
14412 Argument listpreamble:1
14413 \change_unchanged
14414
14415 \end_layout
14416
14417 \end_inset
14418
14419 ).
14420  As the name implies,
14421  it is targeted at lists such as 
14422 \family sans
14423 Itemize
14424 \family default
14425 ,
14426  
14427 \family sans
14428 Enumerate
14429 \family default
14430 ,
14431  
14432 \family sans
14433 Description
14434 \family default
14435 ,
14436  or 
14437 \family sans
14438 Bibliography
14439 \family default
14440 .
14441  Its content will be output at the list start,
14442  before the first 
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447
14448 \change_inserted -712698321 1534488058
14449
14450 \backslash
14451 item
14452 \change_unchanged
14453
14454 \end_layout
14455
14456 \end_inset
14457
14458 ,
14459  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
14460 ).
14461  This way,
14462  users can insert redefinitions (of lengths etc.) to individual lists.
14463  By default,
14464  these arguments do not have a delimiter.
14465 \change_unchanged
14466
14467 \end_layout
14468
14469 \end_deeper
14470 \begin_layout Description
14471 \begin_inset Flex Code
14472 status collapsed
14473
14474 \begin_layout Plain Layout
14475 AutoNests
14476 \end_layout
14477
14478 \end_inset
14479
14480  Includes a comma-separated list of layouts that should be nested in and after the current layout.
14481  Only makes sense for nestable layouts (such as environments).
14482  Must be ended by 
14483 \begin_inset Quotes eld
14484 \end_inset
14485
14486
14487 \begin_inset Flex Code
14488 status collapsed
14489
14490 \begin_layout Plain Layout
14491 EndAutoNests
14492 \end_layout
14493
14494 \end_inset
14495
14496
14497 \begin_inset Quotes erd
14498 \end_inset
14499
14500 .
14501  See also 
14502 \begin_inset Flex Code
14503 status collapsed
14504
14505 \begin_layout Plain Layout
14506 IsAutoNestedBy
14507 \end_layout
14508
14509 \end_inset
14510
14511 .
14512 \end_layout
14513
14514 \begin_layout Description
14515 \begin_inset Flex Code
14516 status collapsed
14517
14518 \begin_layout Plain Layout
14519 BabelPreamble
14520 \end_layout
14521
14522 \end_inset
14523
14524  Note that this will completely override any prior 
14525 \begin_inset Flex Code
14526 status collapsed
14527
14528 \begin_layout Plain Layout
14529 BabelPreamble
14530 \end_layout
14531
14532 \end_inset
14533
14534  declaration for this style.
14535  Must end with 
14536 \begin_inset Quotes eld
14537 \end_inset
14538
14539
14540 \begin_inset Flex Code
14541 status collapsed
14542
14543 \begin_layout Plain Layout
14544 EndBabelPreamble
14545 \end_layout
14546
14547 \end_inset
14548
14549
14550 \begin_inset Quotes erd
14551 \end_inset
14552
14553 .
14554  See 
14555 \begin_inset CommandInset ref
14556 LatexCommand ref
14557 reference "subsec:I18n"
14558 nolink "false"
14559
14560 \end_inset
14561
14562  for details on its use.
14563 \end_layout
14564
14565 \begin_layout Description
14566 \begin_inset Flex Code
14567 status collapsed
14568
14569 \begin_layout Plain Layout
14570 BottomSep
14571 \end_layout
14572
14573 \end_inset
14574
14575  [
14576 \begin_inset Flex Code
14577 status collapsed
14578
14579 \begin_layout Plain Layout
14580 float=0
14581 \end_layout
14582
14583 \end_inset
14584
14585 ]
14586 \begin_inset Foot
14587 status collapsed
14588
14589 \begin_layout Plain Layout
14590 Note that a `float' here is a real number,
14591  such as:
14592  1.5.
14593 \end_layout
14594
14595 \end_inset
14596
14597  The vertical space with which the last of a chain of paragraphs with this style is separated from the following paragraph.
14598  If the next paragraph has another style,
14599  the separations are not simply added,
14600  but the maximum is taken.
14601 \end_layout
14602
14603 \begin_layout Description
14604 \begin_inset Flex Code
14605 status collapsed
14606
14607 \begin_layout Plain Layout
14608 Category
14609 \end_layout
14610
14611 \end_inset
14612
14613  [
14614 \begin_inset Flex Code
14615 status collapsed
14616
14617 \begin_layout Plain Layout
14618 string
14619 \end_layout
14620
14621 \end_inset
14622
14623 ] The category for this style.
14624  This is used to group related styles in the style combobox on the toolbar.
14625  Any string can be used,
14626  but you may want to use existing categories with your own styles.
14627  
14628 \end_layout
14629
14630 \begin_layout Description
14631 \begin_inset Flex Code
14632 status collapsed
14633
14634 \begin_layout Plain Layout
14635 CommandDepth
14636 \end_layout
14637
14638 \end_inset
14639
14640  Depth of XML command.
14641  Used only with XML-type formats.
14642 \end_layout
14643
14644 \begin_layout Description
14645 \begin_inset Flex Code
14646 status collapsed
14647
14648 \begin_layout Plain Layout
14649 CopyStyle
14650 \end_layout
14651
14652 \end_inset
14653
14654  [
14655 \begin_inset Flex Code
14656 status collapsed
14657
14658 \begin_layout Plain Layout
14659 string
14660 \end_layout
14661
14662 \end_inset
14663
14664 ] Copies all the features of an existing style into the current one.
14665  
14666 \end_layout
14667
14668 \begin_layout Description
14669 \begin_inset Flex Code
14670 status collapsed
14671
14672 \begin_layout Plain Layout
14673 DependsOn
14674 \end_layout
14675
14676 \end_inset
14677
14678  [
14679 \begin_inset Flex Code
14680 status collapsed
14681
14682 \begin_layout Plain Layout
14683 <name>
14684 \end_layout
14685
14686 \end_inset
14687
14688 ] The name of a style whose preamble should be output 
14689 \emph on
14690 before
14691 \emph default
14692  this one.
14693  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
14694 \begin_inset Foot
14695 status collapsed
14696
14697 \begin_layout Plain Layout
14698 Note that,
14699  besides that functionality,
14700  there is no way to ensure any ordering of preambles.
14701  The ordering that you see in a given version of \SpecialChar LyX
14702  may change without warning in later versions.
14703 \end_layout
14704
14705 \end_inset
14706
14707
14708 \end_layout
14709
14710 \begin_layout Description
14711 \begin_inset Flex Code
14712 status collapsed
14713
14714 \begin_layout Plain Layout
14715 EndLabelType
14716 \end_layout
14717
14718 \end_inset
14719
14720  [
14721 \begin_inset Flex Code
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725
14726 \emph on
14727 No_Label
14728 \emph default
14729 ,
14730  Box,
14731  Filled_Box,
14732  Static
14733 \end_layout
14734
14735 \end_inset
14736
14737 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
14738 \begin_inset Flex Code
14739 status collapsed
14740
14741 \begin_layout Plain Layout
14742 LatexType
14743 \end_layout
14744
14745 \end_inset
14746
14747  is
14748 \begin_inset Newline newline
14749 \end_inset
14750
14751
14752 \begin_inset Flex Code
14753 status collapsed
14754
14755 \begin_layout Plain Layout
14756 Environment
14757 \end_layout
14758
14759 \end_inset
14760
14761 ,
14762  
14763 \begin_inset Flex Code
14764 status collapsed
14765
14766 \begin_layout Plain Layout
14767 Item_Environment
14768 \end_layout
14769
14770 \end_inset
14771
14772  or 
14773 \begin_inset Flex Code
14774 status collapsed
14775
14776 \begin_layout Plain Layout
14777 List_Environment
14778 \end_layout
14779
14780 \end_inset
14781
14782 ).
14783  
14784 \begin_inset Flex Code
14785 status collapsed
14786
14787 \begin_layout Plain Layout
14788 No_Label
14789 \end_layout
14790
14791 \end_inset
14792
14793  means 
14794 \begin_inset Quotes eld
14795 \end_inset
14796
14797 nothing
14798 \begin_inset Quotes erd
14799 \end_inset
14800
14801 ,
14802  
14803 \begin_inset Flex Code
14804 status collapsed
14805
14806 \begin_layout Plain Layout
14807 Box
14808 \end_layout
14809
14810 \end_inset
14811
14812  (resp.
14813 \begin_inset space \space{}
14814 \end_inset
14815
14816
14817 \begin_inset Flex Code
14818 status collapsed
14819
14820 \begin_layout Plain Layout
14821 Filled_Box
14822 \end_layout
14823
14824 \end_inset
14825
14826 ) is a white (resp.
14827 \begin_inset space ~
14828 \end_inset
14829
14830 black) square suitable for end of proof markers,
14831  
14832 \begin_inset Flex Code
14833 status collapsed
14834
14835 \begin_layout Plain Layout
14836 Static
14837 \end_layout
14838
14839 \end_inset
14840
14841  is an explicit text string.
14842 \end_layout
14843
14844 \begin_layout Description
14845 \begin_inset Flex Code
14846 status collapsed
14847
14848 \begin_layout Plain Layout
14849 EndLabelString
14850 \end_layout
14851
14852 \end_inset
14853
14854  [
14855 \begin_inset Flex Code
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859 string=""
14860 \end_layout
14861
14862 \end_inset
14863
14864 ] The string used for a label with a 
14865 \begin_inset Flex Code
14866 status collapsed
14867
14868 \begin_layout Plain Layout
14869 Static
14870 \end_layout
14871
14872 \end_inset
14873
14874
14875 \begin_inset Newline newline
14876 \end_inset
14877
14878
14879 \begin_inset Flex Code
14880 status collapsed
14881
14882 \begin_layout Plain Layout
14883 EndLabelType
14884 \end_layout
14885
14886 \end_inset
14887
14888 .
14889  
14890 \end_layout
14891
14892 \begin_layout Description
14893 \begin_inset Flex Code
14894 status collapsed
14895
14896 \begin_layout Plain Layout
14897 Font
14898 \end_layout
14899
14900 \end_inset
14901
14902  The font used for both the text body 
14903 \emph on
14904 and
14905 \emph default
14906  the label.
14907  See 
14908 \begin_inset CommandInset ref
14909 LatexCommand ref
14910 reference "subsec:Font-description"
14911 nolink "false"
14912
14913 \end_inset
14914
14915 .
14916  Note that defining this font automatically defines the 
14917 \begin_inset Flex Code
14918 status collapsed
14919
14920 \begin_layout Plain Layout
14921 LabelFont
14922 \end_layout
14923
14924 \end_inset
14925
14926  to the same value.
14927  So you should define this one first if you also want to define 
14928 \begin_inset Flex Code
14929 status collapsed
14930
14931 \begin_layout Plain Layout
14932 LabelFont
14933 \end_layout
14934
14935 \end_inset
14936
14937 .
14938 \end_layout
14939
14940 \begin_layout Description
14941 \begin_inset Flex Code
14942 status collapsed
14943
14944 \begin_layout Plain Layout
14945 ForceLocal
14946 \end_layout
14947
14948 \end_inset
14949
14950  [
14951 \begin_inset Flex Code
14952 status collapsed
14953
14954 \begin_layout Plain Layout
14955 int=0
14956 \end_layout
14957
14958 \end_inset
14959
14960 ] Used for backporting new styles to stable \SpecialChar LyX
14961  versions.
14962  The first stable version that supports this tag is \SpecialChar LyX
14963  2.1.0.
14964  The argument is a number which may either be 0,
14965  -1 or any value greater than zero.
14966  If the 
14967 \begin_inset Flex Code
14968 status collapsed
14969
14970 \begin_layout Plain Layout
14971 ForceLocal
14972 \end_layout
14973
14974 \end_inset
14975
14976  flag of a style is greater than zero,
14977  it will always be written to the document header.
14978  If a .lyx file is read,
14979  the style definitions from the document header are added to the document class.
14980  Therefore even older \SpecialChar LyX
14981  versions can handle the style.
14982  The argument of 
14983 \begin_inset Flex Code
14984 status collapsed
14985
14986 \begin_layout Plain Layout
14987 ForceLocal
14988 \end_layout
14989
14990 \end_inset
14991
14992  is a version number:
14993  if the style is read,
14994  and the version number is less than the version number of the already existing style in the document class,
14995  the new style is ignored.
14996  If the version number is greater,
14997  the new style replaces the existing style.
14998  A value of -1 means an infinite version number,
14999  i.
15000 \begin_inset space \thinspace{}
15001 \end_inset
15002
15003 e.
15004 \begin_inset space \space{}
15005 \end_inset
15006
15007 the style is always used.
15008 \end_layout
15009
15010 \begin_layout Description
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 FreeSpacing
15016 \end_layout
15017
15018 \end_inset
15019
15020  [
15021 \begin_inset Flex Code
15022 status collapsed
15023
15024 \begin_layout Plain Layout
15025
15026 \emph on
15027 0
15028 \end_layout
15029
15030 \end_inset
15031
15032 ,
15033 \begin_inset space \thinspace{}
15034 \end_inset
15035
15036
15037 \begin_inset Flex Code
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041 1
15042 \end_layout
15043
15044 \end_inset
15045
15046 ] Usually \SpecialChar LyX
15047  does not allow you to insert more than one space between words,
15048  since a space is considered as the separation between two words,
15049  not a character or symbol of its own.
15050  This is a very fine thing but sometimes annoying,
15051  for example,
15052  when typing program code or plain \SpecialChar LaTeX
15053  code.
15054  For this reason,
15055  
15056 \begin_inset Flex Code
15057 status collapsed
15058
15059 \begin_layout Plain Layout
15060 FreeSpacing
15061 \end_layout
15062
15063 \end_inset
15064
15065  can be enabled.
15066  
15067 \change_deleted -495245474 1550490105
15068 Note that 
15069 \change_unchanged
15070 \SpecialChar LyX
15071  will create 
15072 \change_deleted 177693 1654669077
15073 protected
15074 \change_inserted 177693 1654669079
15075 non-breaking
15076 \change_unchanged
15077  
15078 \change_deleted 177693 1654669082
15079 blanks
15080 \change_inserted 177693 1654669082
15081 spaces
15082 \change_unchanged
15083  for the additional blanks when
15084 \change_deleted 34634807 1619626461
15085  in
15086 \change_unchanged
15087  
15088 \change_inserted -495245474 1550490096
15089
15090 \begin_inset Flex Code
15091 status collapsed
15092
15093 \begin_layout Plain Layout
15094
15095 \change_inserted -495245474 1550490089
15096 Passthru 1
15097 \change_unchanged
15098
15099 \end_layout
15100
15101 \end_inset
15102
15103  is not specified.
15104 \change_deleted -495245474 1550490116
15105 another mode than \SpecialChar LaTeX
15106 -mode.
15107
15108 \change_inserted -495245474 1550247760
15109  Note that 
15110 \begin_inset Flex Code
15111 status collapsed
15112
15113 \begin_layout Plain Layout
15114
15115 \change_inserted -495245474 1550247736
15116 FreeSpacing
15117 \change_unchanged
15118
15119 \end_layout
15120
15121 \end_inset
15122
15123  implies 
15124 \begin_inset Flex Code
15125 status collapsed
15126
15127 \begin_layout Plain Layout
15128
15129 \change_inserted -495245474 1550247755
15130 KeepEmpty
15131 \change_unchanged
15132
15133 \end_layout
15134
15135 \end_inset
15136
15137 .
15138 \change_unchanged
15139
15140 \end_layout
15141
15142 \begin_layout Description
15143 \begin_inset Flex Code
15144 status collapsed
15145
15146 \begin_layout Plain Layout
15147 HTML*
15148 \end_layout
15149
15150 \end_inset
15151
15152  These tags are used with XHTML output.
15153  See 
15154 \begin_inset CommandInset ref
15155 LatexCommand ref
15156 reference "subsec:Paragraph-Style-XHTML"
15157 nolink "false"
15158
15159 \end_inset
15160
15161 .
15162 \end_layout
15163
15164 \begin_layout Description
15165 \begin_inset Flex Code
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169 InnerTag
15170 \end_layout
15171
15172 \end_inset
15173
15174  [FIXME] (Used only with XML-type formats.)
15175 \end_layout
15176
15177 \begin_layout Description
15178 \begin_inset Flex Code
15179 status collapsed
15180
15181 \begin_layout Plain Layout
15182 InPreamble
15183 \end_layout
15184
15185 \end_inset
15186
15187  [
15188 \begin_inset Flex Code
15189 status collapsed
15190
15191 \begin_layout Plain Layout
15192
15193 \emph on
15194 0
15195 \end_layout
15196
15197 \end_inset
15198
15199 ,
15200 \begin_inset space \thinspace{}
15201 \end_inset
15202
15203
15204 \begin_inset Flex Code
15205 status collapsed
15206
15207 \begin_layout Plain Layout
15208 1
15209 \end_layout
15210
15211 \end_inset
15212
15213 ] If 
15214 \begin_inset Flex Code
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218 1
15219 \end_layout
15220
15221 \end_inset
15222
15223 ,
15224  marks the style as to be included in the document preamble and not in the document body.
15225  This is useful for document classes that want such information as the title and author to appear in the preamble.
15226  Note that this works only for styles for which the 
15227 \begin_inset Flex Code
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231 LatexType
15232 \end_layout
15233
15234 \end_inset
15235
15236  is 
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 Command
15242 \end_layout
15243
15244 \end_inset
15245
15246  or 
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251 Paragraph
15252 \end_layout
15253
15254 \end_inset
15255
15256 .
15257 \end_layout
15258
15259 \begin_layout Description
15260 \begin_inset Flex Code
15261 status collapsed
15262
15263 \begin_layout Plain Layout
15264 InTitle
15265 \end_layout
15266
15267 \end_inset
15268
15269  [
15270 \begin_inset Flex Code
15271 status collapsed
15272
15273 \begin_layout Plain Layout
15274
15275 \emph on
15276 0
15277 \end_layout
15278
15279 \end_inset
15280
15281 ,
15282 \begin_inset space \thinspace{}
15283 \end_inset
15284
15285
15286 \begin_inset Flex Code
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290 1
15291 \end_layout
15292
15293 \end_inset
15294
15295 ] If 
15296 \begin_inset Flex Code
15297 status collapsed
15298
15299 \begin_layout Plain Layout
15300 1
15301 \end_layout
15302
15303 \end_inset
15304
15305 ,
15306  marks the style as being part of a title block (see also the 
15307 \begin_inset Flex Code
15308 status collapsed
15309
15310 \begin_layout Plain Layout
15311 TitleLatexType
15312 \end_layout
15313
15314 \end_inset
15315
15316  and 
15317 \begin_inset Flex Code
15318 status collapsed
15319
15320 \begin_layout Plain Layout
15321 TitleLatexName
15322 \end_layout
15323
15324 \end_inset
15325
15326  global entries).
15327 \end_layout
15328
15329 \begin_layout Description
15330 \begin_inset Flex Code
15331 status collapsed
15332
15333 \begin_layout Plain Layout
15334 IsAutoNestedBy
15335 \end_layout
15336
15337 \end_inset
15338
15339  Includes a comma-separated list of layouts after which this one should be nested.
15340  Only makes sense with regard to nestable layouts (such as environments).
15341  Must be ended by 
15342 \begin_inset Quotes eld
15343 \end_inset
15344
15345
15346 \begin_inset Flex Code
15347 status collapsed
15348
15349 \begin_layout Plain Layout
15350 EndIsAutoNestedBy
15351 \end_layout
15352
15353 \end_inset
15354
15355
15356 \begin_inset Quotes erd
15357 \end_inset
15358
15359 .
15360  See also 
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 AutoNests
15366 \end_layout
15367
15368 \end_inset
15369
15370 .
15371 \end_layout
15372
15373 \begin_layout Description
15374 \begin_inset Flex Code
15375 status collapsed
15376
15377 \begin_layout Plain Layout
15378 IsTocCaption
15379 \end_layout
15380
15381 \end_inset
15382
15383  [
15384 \begin_inset Flex Code
15385 status collapsed
15386
15387 \begin_layout Plain Layout
15388
15389 \emph on
15390 0
15391 \end_layout
15392
15393 \end_inset
15394
15395 ,
15396 \begin_inset space \thinspace{}
15397 \end_inset
15398
15399
15400 \begin_inset Flex Code
15401 status collapsed
15402
15403 \begin_layout Plain Layout
15404 1
15405 \end_layout
15406
15407 \end_inset
15408
15409 ] If this is set to 1 and AddToToc is enabled,
15410  the paragraph adds a summary of its contents in its item in the table of contents.
15411  Otherwise,
15412  only the label,
15413  if it exists,
15414  appears.
15415 \end_layout
15416
15417 \begin_layout Description
15418 \begin_inset Flex Code
15419 status collapsed
15420
15421 \begin_layout Plain Layout
15422 ItemCommand
15423 \end_layout
15424
15425 \end_inset
15426
15427  [
15428 \begin_inset Flex Code
15429 status collapsed
15430
15431 \begin_layout Plain Layout
15432 string="item"
15433 \end_layout
15434
15435 \end_inset
15436
15437 ] The \SpecialChar LaTeX
15438  command sequence declaring an item in a list.
15439  The command is to be defined without the preceding backslash (the default is 
15440 \begin_inset Quotes eld
15441 \end_inset
15442
15443 item
15444 \begin_inset Quotes erd
15445 \end_inset
15446
15447 ,
15448  resulting in 
15449 \begin_inset Flex Code
15450 status collapsed
15451
15452 \begin_layout Plain Layout
15453
15454 \backslash
15455 item
15456 \end_layout
15457
15458 \end_inset
15459
15460  in the \SpecialChar LaTeX
15461  output).
15462 \end_layout
15463
15464 \begin_layout Description
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 ItemSep
15470 \end_layout
15471
15472 \end_inset
15473
15474  [
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479 float=0
15480 \end_layout
15481
15482 \end_inset
15483
15484 ] This provides extra space between paragraphs that have the same style.
15485  If you put other styles into an environment,
15486  each is separated with the environment's 
15487 \begin_inset Flex Code
15488 status collapsed
15489
15490 \begin_layout Plain Layout
15491 ParSep
15492 \end_layout
15493
15494 \end_inset
15495
15496 .
15497  But the whole items of the environment are additionally separated with this 
15498 \begin_inset Flex Code
15499 status collapsed
15500
15501 \begin_layout Plain Layout
15502 ItemSep
15503 \end_layout
15504
15505 \end_inset
15506
15507 .
15508  Note that this is a
15509 \emph on
15510  multiplier.
15511 \end_layout
15512
15513 \begin_layout Description
15514 \begin_inset Flex Code
15515 status collapsed
15516
15517 \begin_layout Plain Layout
15518 ItemTag
15519 \end_layout
15520
15521 \end_inset
15522
15523  [FIXME] (Used only with XML-type formats.)
15524 \end_layout
15525
15526 \begin_layout Description
15527 \begin_inset Flex Code
15528 status collapsed
15529
15530 \begin_layout Plain Layout
15531 KeepEmpty
15532 \end_layout
15533
15534 \end_inset
15535
15536  [
15537 \begin_inset Flex Code
15538 status collapsed
15539
15540 \begin_layout Plain Layout
15541
15542 \emph on
15543 0
15544 \end_layout
15545
15546 \end_inset
15547
15548 ,
15549 \begin_inset space \thinspace{}
15550 \end_inset
15551
15552
15553 \begin_inset Flex Code
15554 status collapsed
15555
15556 \begin_layout Plain Layout
15557 1
15558 \end_layout
15559
15560 \end_inset
15561
15562 ] Usually \SpecialChar LyX
15563  does not allow you to leave a paragraph empty,
15564  since it would lead to empty \SpecialChar LaTeX
15565  output.
15566  There are some cases where this could be desirable however:
15567  in a letter template,
15568  the required fields can be provided as empty fields,
15569  so that people do not forget them;
15570  in some special classes,
15571  a style can be used as some kind of break,
15572  which does not contain actual text.
15573 \end_layout
15574
15575 \begin_layout Description
15576 \begin_inset Flex Code
15577 status collapsed
15578
15579 \begin_layout Plain Layout
15580 LabelBottomsep
15581 \end_layout
15582
15583 \end_inset
15584
15585  [
15586 \begin_inset Flex Code
15587 status collapsed
15588
15589 \begin_layout Plain Layout
15590 float=0
15591 \end_layout
15592
15593 \end_inset
15594
15595 ] The vertical space between the label and the text body.
15596  Only used for labels that are above the text body (
15597 \begin_inset Flex Code
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601 Top_Environment
15602 \end_layout
15603
15604 \end_inset
15605
15606  and
15607 \begin_inset Newline newline
15608 \end_inset
15609
15610
15611 \begin_inset Flex Code
15612 status collapsed
15613
15614 \begin_layout Plain Layout
15615 Centered_Top_Environment
15616 \end_layout
15617
15618 \end_inset
15619
15620 ).
15621 \end_layout
15622
15623 \begin_layout Description
15624 \begin_inset Flex Code
15625 status collapsed
15626
15627 \begin_layout Plain Layout
15628 LabelCounter
15629 \end_layout
15630
15631 \end_inset
15632
15633  [
15634 \begin_inset Flex Code
15635 status collapsed
15636
15637 \begin_layout Plain Layout
15638 string=""
15639 \end_layout
15640
15641 \end_inset
15642
15643 ] The name of the counter for automatic numbering.
15644  In order to have the counter appear with your label,
15645  you will need to reference it in the 
15646 \begin_inset Flex Code
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650
15651 \family typewriter
15652 LabelString
15653 \end_layout
15654
15655 \end_inset
15656
15657 .
15658  This will work with 
15659 \begin_inset Flex Code
15660 status collapsed
15661
15662 \begin_layout Plain Layout
15663 LabelType
15664 \end_layout
15665
15666 \end_inset
15667
15668 s,
15669  
15670 \begin_inset Flex Code
15671 status collapsed
15672
15673 \begin_layout Plain Layout
15674 Static
15675 \end_layout
15676
15677 \end_inset
15678
15679 ,
15680  
15681 \begin_inset Flex Code
15682 status collapsed
15683
15684 \begin_layout Plain Layout
15685 Above
15686 \end_layout
15687
15688 \end_inset
15689
15690  and 
15691 \begin_inset Flex Code
15692 status collapsed
15693
15694 \begin_layout Plain Layout
15695 Centered
15696 \end_layout
15697
15698 \end_inset
15699
15700 ,
15701  at least.
15702 \begin_inset Newline newline
15703 \end_inset
15704
15705 This 
15706 \emph on
15707 may
15708 \emph default
15709  also be given if 
15710 \begin_inset Flex Code
15711 status collapsed
15712
15713 \begin_layout Plain Layout
15714 LabelType
15715 \end_layout
15716
15717 \end_inset
15718
15719  is 
15720 \begin_inset Flex Code
15721 status collapsed
15722
15723 \begin_layout Plain Layout
15724 Enumerate
15725 \end_layout
15726
15727 \end_inset
15728
15729 ,
15730  though this case is a bit complicated.
15731  Suppose you declare 
15732 \begin_inset Quotes eld
15733 \end_inset
15734
15735
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 LabelCounter myenum
15741 \end_layout
15742
15743 \end_inset
15744
15745
15746 \begin_inset Quotes erd
15747 \end_inset
15748
15749 .
15750  Then the actual counters used are 
15751 \begin_inset Flex Code
15752 status collapsed
15753
15754 \begin_layout Plain Layout
15755 myenumi
15756 \end_layout
15757
15758 \end_inset
15759
15760 ,
15761  
15762 \begin_inset Flex Code
15763 status collapsed
15764
15765 \begin_layout Plain Layout
15766 myenumii
15767 \end_layout
15768
15769 \end_inset
15770
15771 ,
15772  
15773 \begin_inset Flex Code
15774 status collapsed
15775
15776 \begin_layout Plain Layout
15777 myenumiii
15778 \end_layout
15779
15780 \end_inset
15781
15782  and 
15783 \begin_inset Flex Code
15784 status collapsed
15785
15786 \begin_layout Plain Layout
15787 myenumiv
15788 \end_layout
15789
15790 \end_inset
15791
15792 ,
15793  much as in \SpecialChar LaTeX
15794 .
15795  These counters must all be declared separately.
15796 \begin_inset Newline newline
15797 \end_inset
15798
15799 See 
15800 \begin_inset CommandInset ref
15801 LatexCommand ref
15802 reference "subsec:Counters"
15803 nolink "false"
15804
15805 \end_inset
15806
15807  for details on counters.
15808 \end_layout
15809
15810 \begin_layout Description
15811 \begin_inset Flex Code
15812 status collapsed
15813
15814 \begin_layout Plain Layout
15815 LabelFont
15816 \end_layout
15817
15818 \end_inset
15819
15820  The font used for the label.
15821  See 
15822 \begin_inset CommandInset ref
15823 LatexCommand ref
15824 reference "subsec:Font-description"
15825 nolink "false"
15826
15827 \end_inset
15828
15829 .
15830 \end_layout
15831
15832 \begin_layout Description
15833 \begin_inset Flex Code
15834 status collapsed
15835
15836 \begin_layout Plain Layout
15837 LabelIndent
15838 \end_layout
15839
15840 \end_inset
15841
15842  [
15843 \begin_inset Flex Code
15844 status collapsed
15845
15846 \begin_layout Plain Layout
15847 string=""
15848 \end_layout
15849
15850 \end_inset
15851
15852 ] Text that indicates how far a label should be indented.
15853 \end_layout
15854
15855 \begin_layout Description
15856 \begin_inset Flex Code
15857 status collapsed
15858
15859 \begin_layout Plain Layout
15860 LabelSep
15861 \end_layout
15862
15863 \end_inset
15864
15865  [
15866 \begin_inset Flex Code
15867 status collapsed
15868
15869 \begin_layout Plain Layout
15870 string=""
15871 \end_layout
15872
15873 \end_inset
15874
15875 ] Text that indicates the amount of horizontal space between the label and the text body.
15876  Only used for labels that are not above the text body.
15877 \end_layout
15878
15879 \begin_layout Description
15880 \begin_inset Flex Code
15881 status collapsed
15882
15883 \begin_layout Plain Layout
15884 LabelString
15885 \end_layout
15886
15887 \end_inset
15888
15889  [
15890 \begin_inset Flex Code
15891 status collapsed
15892
15893 \begin_layout Plain Layout
15894 string=""
15895 \end_layout
15896
15897 \end_inset
15898
15899 ] The string used for the label.
15900  When 
15901 \begin_inset Flex Code
15902 status collapsed
15903
15904 \begin_layout Plain Layout
15905 LabelCounter
15906 \end_layout
15907
15908 \end_inset
15909
15910  is set,
15911  this string can be contain the special formatting commands described in 
15912 \begin_inset CommandInset ref
15913 LatexCommand ref
15914 reference "subsec:Counters"
15915 nolink "false"
15916
15917 \end_inset
15918
15919 .
15920 \end_layout
15921
15922 \begin_layout Description
15923 \begin_inset Flex Code
15924 status collapsed
15925
15926 \begin_layout Plain Layout
15927 LabelStringAppendix
15928 \end_layout
15929
15930 \end_inset
15931
15932  [
15933 \begin_inset Flex Code
15934 status collapsed
15935
15936 \begin_layout Plain Layout
15937 string=""
15938 \end_layout
15939
15940 \end_inset
15941
15942 ] This is used inside the appendix instead of
15943 \begin_inset Newline newline
15944 \end_inset
15945
15946
15947 \begin_inset Flex Code
15948 status collapsed
15949
15950 \begin_layout Plain Layout
15951 LabelString
15952 \end_layout
15953
15954 \end_inset
15955
15956 .
15957  Note that every 
15958 \begin_inset Flex Code
15959 status collapsed
15960
15961 \begin_layout Plain Layout
15962 LabelString
15963 \end_layout
15964
15965 \end_inset
15966
15967  statement resets
15968 \begin_inset Newline newline
15969 \end_inset
15970
15971
15972 \begin_inset Flex Code
15973 status collapsed
15974
15975 \begin_layout Plain Layout
15976 LabelStringAppendix
15977 \end_layout
15978
15979 \end_inset
15980
15981  too.
15982 \end_layout
15983
15984 \begin_layout Description
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 LabelTag
15990 \end_layout
15991
15992 \end_inset
15993
15994  [FIXME] (Used only with XML-type formats.)
15995 \end_layout
15996
15997 \begin_layout Description
15998 \begin_inset Flex Code
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002 LabelType
16003 \end_layout
16004
16005 \end_inset
16006
16007  [
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012
16013 \emph on
16014 No_Label
16015 \emph default
16016 ,
16017  Manual,
16018  Static,
16019  Above,
16020  
16021 \begin_inset Newline newline
16022 \end_inset
16023
16024 Centered,
16025  Sensitive,
16026  Enumerate,
16027 \begin_inset Newline newline
16028 \end_inset
16029
16030 Itemize,
16031  Bibliography
16032 \end_layout
16033
16034 \end_inset
16035
16036 ]
16037 \end_layout
16038
16039 \begin_deeper
16040 \begin_layout Description
16041 \begin_inset Flex Code
16042 status collapsed
16043
16044 \begin_layout Plain Layout
16045 Manual
16046 \end_layout
16047
16048 \end_inset
16049
16050  means the label is the very first word (up to the first real blank).
16051  Use 
16052 \change_deleted 177693 1654669087
16053 protected
16054 \change_inserted 177693 1654669089
16055 non-breaking
16056 \change_unchanged
16057  spaces if you want more than one word as the label.
16058  
16059 \end_layout
16060
16061 \begin_layout Description
16062 \begin_inset Flex Code
16063 status collapsed
16064
16065 \begin_layout Plain Layout
16066 Static
16067 \end_layout
16068
16069 \end_inset
16070
16071  means the label is simply what is declared as 
16072 \begin_inset Flex Code
16073 status collapsed
16074
16075 \begin_layout Plain Layout
16076 LabelString
16077 \end_layout
16078
16079 \end_inset
16080
16081 .
16082  This will be displayed 
16083 \begin_inset Quotes eld
16084 \end_inset
16085
16086 inline
16087 \begin_inset Quotes erd
16088 \end_inset
16089
16090 ,
16091  at the beginning of the paragraph.
16092  If the 
16093 \begin_inset Flex Code
16094 status collapsed
16095
16096 \begin_layout Plain Layout
16097 LatexType
16098 \end_layout
16099
16100 \end_inset
16101
16102  is 
16103 \begin_inset Flex Code
16104 status collapsed
16105
16106 \begin_layout Plain Layout
16107 Environment
16108 \end_layout
16109
16110 \end_inset
16111
16112 ,
16113  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
16114 \begin_inset Flex Code
16115 status collapsed
16116
16117 \begin_layout Plain Layout
16118 Style
16119 \end_layout
16120
16121 \end_inset
16122
16123 .
16124 \end_layout
16125
16126 \begin_layout Description
16127 \begin_inset Flex Code
16128 status collapsed
16129
16130 \begin_layout Plain Layout
16131 Above
16132 \end_layout
16133
16134 \end_inset
16135
16136
16137 \begin_inset space ~
16138 \end_inset
16139
16140 and
16141 \begin_inset space ~
16142 \end_inset
16143
16144
16145 \begin_inset Flex Code
16146 status collapsed
16147
16148 \begin_layout Plain Layout
16149 Centered
16150 \end_layout
16151
16152 \end_inset
16153
16154  are special cases of 
16155 \begin_inset Flex Code
16156 status collapsed
16157
16158 \begin_layout Plain Layout
16159 Static
16160 \end_layout
16161
16162 \end_inset
16163
16164 .
16165  The label will be printed above the paragraph either at the beginning of the line or centered.
16166 \end_layout
16167
16168 \begin_layout Description
16169 \begin_inset Flex Code
16170 status collapsed
16171
16172 \begin_layout Plain Layout
16173 Sensitive
16174 \end_layout
16175
16176 \end_inset
16177
16178  is a special case for the caption-labels 
16179 \begin_inset Quotes eld
16180 \end_inset
16181
16182 Figure
16183 \begin_inset Quotes erd
16184 \end_inset
16185
16186  and 
16187 \begin_inset Quotes eld
16188 \end_inset
16189
16190 Table
16191 \begin_inset Quotes erd
16192 \end_inset
16193
16194 .
16195 \begin_inset Newline newline
16196 \end_inset
16197
16198
16199 \begin_inset Flex Code
16200 status collapsed
16201
16202 \begin_layout Plain Layout
16203 Sensitive
16204 \end_layout
16205
16206 \end_inset
16207
16208  means the (hardcoded) label string depends on the kind of float:
16209  It is hardcoded to be `FloatType N',
16210  where N is the value of the counter associated with the float.
16211  For the case that a caption is inserted outside of a float the 
16212 \begin_inset Flex Code
16213 status collapsed
16214
16215 \begin_layout Plain Layout
16216 LabelString
16217 \end_layout
16218
16219 \end_inset
16220
16221  will appear as 
16222 \begin_inset Quotes eld
16223 \end_inset
16224
16225 Senseless!
16226 \begin_inset Quotes erd
16227 \end_inset
16228
16229 .
16230 \end_layout
16231
16232 \begin_layout Description
16233 \begin_inset Flex Code
16234 status collapsed
16235
16236 \begin_layout Plain Layout
16237 Enumerate
16238 \end_layout
16239
16240 \end_inset
16241
16242  produces the usual sort of enumeration labels.
16243  The number type needs to be set in the 
16244 \family sans
16245 Counter
16246 \family default
16247 ,
16248  see 
16249 \begin_inset CommandInset ref
16250 LatexCommand ref
16251 reference "subsec:Counters"
16252 nolink "false"
16253
16254 \end_inset
16255
16256 .
16257 \end_layout
16258
16259 \begin_layout Description
16260 \begin_inset Flex Code
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264 Itemize
16265 \end_layout
16266
16267 \end_inset
16268
16269  produces various bullets at the different levels.
16270  The bullet types displayed can be set via 
16271 \begin_inset Flex Noun
16272 status collapsed
16273
16274 \begin_layout Plain Layout
16275 Document\SpecialChar menuseparator
16276 Settings\SpecialChar menuseparator
16277 Bullets
16278 \end_layout
16279
16280 \end_inset
16281
16282 .
16283 \end_layout
16284
16285 \begin_layout Description
16286 \begin_inset Flex Code
16287 status collapsed
16288
16289 \begin_layout Plain Layout
16290 Bibliography
16291 \end_layout
16292
16293 \end_inset
16294
16295  should be used only with 
16296 \begin_inset Flex Code
16297 status collapsed
16298
16299 \begin_layout Plain Layout
16300 LatexType BibEnvironment
16301 \end_layout
16302
16303 \end_inset
16304
16305 .
16306 \end_layout
16307
16308 \end_deeper
16309 \begin_layout Description
16310 \begin_inset Flex Code
16311 status collapsed
16312
16313 \begin_layout Plain Layout
16314 LangPreamble
16315 \end_layout
16316
16317 \end_inset
16318
16319  Note that this will completely override any prior 
16320 \begin_inset Flex Code
16321 status collapsed
16322
16323 \begin_layout Plain Layout
16324 LangPreamble
16325 \end_layout
16326
16327 \end_inset
16328
16329  declaration for this style.
16330  Must end with 
16331 \begin_inset Quotes eld
16332 \end_inset
16333
16334
16335 \begin_inset Flex Code
16336 status collapsed
16337
16338 \begin_layout Plain Layout
16339 EndLangPreamble
16340 \end_layout
16341
16342 \end_inset
16343
16344
16345 \begin_inset Quotes erd
16346 \end_inset
16347
16348 .
16349  See 
16350 \begin_inset CommandInset ref
16351 LatexCommand ref
16352 reference "subsec:I18n"
16353 nolink "false"
16354
16355 \end_inset
16356
16357  for details on its use.
16358 \end_layout
16359
16360 \begin_layout Description
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 LatexName
16366 \end_layout
16367
16368 \end_inset
16369
16370  [
16371 \begin_inset Flex Code
16372 status collapsed
16373
16374 \begin_layout Plain Layout
16375 <name>
16376 \end_layout
16377
16378 \end_inset
16379
16380 ] The name of the corresponding \SpecialChar LaTeX
16381  stuff.
16382  Either the environment or command name.
16383 \end_layout
16384
16385 \begin_layout Description
16386 \begin_inset Flex Code
16387 status collapsed
16388
16389 \begin_layout Plain Layout
16390 LatexParam
16391 \end_layout
16392
16393 \end_inset
16394
16395  [
16396 \begin_inset Flex Code
16397 status collapsed
16398
16399 \begin_layout Plain Layout
16400 <parameter>
16401 \end_layout
16402
16403 \end_inset
16404
16405 ] An optional parameter for the corresponding 
16406 \begin_inset Flex Code
16407 status collapsed
16408
16409 \begin_layout Plain Layout
16410 LatexName
16411 \end_layout
16412
16413 \end_inset
16414
16415  stuff.
16416  This parameter cannot be changed from within \SpecialChar LyX
16417  (use 
16418 \begin_inset Flex Code
16419 status collapsed
16420
16421 \begin_layout Plain Layout
16422 Argument
16423 \end_layout
16424
16425 \end_inset
16426
16427  for customizable parameters).
16428  This will be output as is after all \SpecialChar LaTeX
16429  
16430 \begin_inset Flex Code
16431 status collapsed
16432
16433 \begin_layout Plain Layout
16434 Argument
16435 \end_layout
16436
16437 \end_inset
16438
16439 s.
16440 \end_layout
16441
16442 \begin_layout Description
16443 \begin_inset Flex Code
16444 status collapsed
16445
16446 \begin_layout Plain Layout
16447 LatexType
16448 \end_layout
16449
16450 \end_inset
16451
16452  [
16453 \begin_inset Flex Code
16454 status collapsed
16455
16456 \begin_layout Plain Layout
16457
16458 \emph on
16459 Paragraph
16460 \emph default
16461 ,
16462  Command,
16463  Environment,
16464  Item_Environment,
16465 \begin_inset Newline newline
16466 \end_inset
16467
16468 List_Environment,
16469  Bib_Environment
16470 \end_layout
16471
16472 \end_inset
16473
16474 ] How the style should be translated into \SpecialChar LaTeX
16475 .
16476 \begin_inset Foot
16477 status collapsed
16478
16479 \begin_layout Plain Layout
16480 \begin_inset Flex Code
16481 status collapsed
16482
16483 \begin_layout Plain Layout
16484 LatexType
16485 \end_layout
16486
16487 \end_inset
16488
16489  is perhaps a bit misleading,
16490  since these rules apply to SGML classes,
16491  too.
16492  Visit the SGML class files for specific examples.
16493 \end_layout
16494
16495 \end_inset
16496
16497
16498 \end_layout
16499
16500 \begin_deeper
16501 \begin_layout Description
16502 \begin_inset Flex Code
16503 status collapsed
16504
16505 \begin_layout Plain Layout
16506 Paragraph
16507 \end_layout
16508
16509 \end_inset
16510
16511  means nothing special.
16512 \end_layout
16513
16514 \begin_layout Description
16515 \begin_inset Flex Code
16516 status collapsed
16517
16518 \begin_layout Plain Layout
16519 Command
16520 \end_layout
16521
16522 \end_inset
16523
16524  means 
16525 \begin_inset Flex Code
16526 status collapsed
16527
16528 \begin_layout Plain Layout
16529
16530 \backslash
16531
16532 \emph on
16533 LatexName
16534 \emph default
16535 {\SpecialChar ldots
16536 }
16537 \end_layout
16538
16539 \end_inset
16540
16541 .
16542 \end_layout
16543
16544 \begin_layout Description
16545 \begin_inset Flex Code
16546 status collapsed
16547
16548 \begin_layout Plain Layout
16549 Environment
16550 \end_layout
16551
16552 \end_inset
16553
16554  means 
16555 \begin_inset Flex Code
16556 status collapsed
16557
16558 \begin_layout Plain Layout
16559
16560 \backslash
16561 begin{
16562 \emph on
16563 LatexName
16564 \emph default
16565 }\SpecialChar ldots
16566
16567 \backslash
16568 end{
16569 \emph on
16570 LatexName
16571 \emph default
16572 }
16573 \end_layout
16574
16575 \end_inset
16576
16577 .
16578  
16579 \end_layout
16580
16581 \begin_layout Description
16582 \begin_inset Flex Code
16583 status collapsed
16584
16585 \begin_layout Plain Layout
16586 Item_Environment
16587 \end_layout
16588
16589 \end_inset
16590
16591  is the same as 
16592 \begin_inset Flex Code
16593 status collapsed
16594
16595 \begin_layout Plain Layout
16596 Environment
16597 \end_layout
16598
16599 \end_inset
16600
16601 ,
16602  except that an 
16603 \begin_inset Flex Code
16604 status collapsed
16605
16606 \begin_layout Plain Layout
16607
16608 \backslash
16609 item
16610 \end_layout
16611
16612 \end_inset
16613
16614  is generated for each paragraph of this environment.
16615  
16616 \end_layout
16617
16618 \begin_layout Description
16619 \begin_inset Flex Code
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623 List_Environment
16624 \end_layout
16625
16626 \end_inset
16627
16628  is the same as 
16629 \begin_inset Flex Code
16630 status collapsed
16631
16632 \begin_layout Plain Layout
16633 Item_Environment
16634 \end_layout
16635
16636 \end_inset
16637
16638 ,
16639  except that
16640 \begin_inset Newline newline
16641 \end_inset
16642
16643
16644 \begin_inset Flex Code
16645 status collapsed
16646
16647 \begin_layout Plain Layout
16648 LabelWidthString
16649 \end_layout
16650
16651 \end_inset
16652
16653  is passed as an argument to the environment.
16654 \begin_inset Newline newline
16655 \end_inset
16656
16657
16658 \begin_inset Flex Code
16659 status collapsed
16660
16661 \begin_layout Plain Layout
16662 LabelWidthString
16663 \end_layout
16664
16665 \end_inset
16666
16667  can be defined in the 
16668 \begin_inset Flex Noun
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672 Edit\SpecialChar menuseparator
16673 Paragraph
16674 \begin_inset space ~
16675 \end_inset
16676
16677 settings
16678 \end_layout
16679
16680 \end_inset
16681
16682  dialog.
16683 \end_layout
16684
16685 \begin_layout Description
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 Bib_Environment
16691 \end_layout
16692
16693 \end_inset
16694
16695  is like 
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700 Environment
16701 \end_layout
16702
16703 \end_inset
16704
16705  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
16706 \begin_inset Newline newline
16707 \end_inset
16708
16709
16710 \begin_inset Flex Code
16711 status collapsed
16712
16713 \begin_layout Plain Layout
16714
16715 \backslash
16716 begin{thebibliography}{99}
16717 \end_layout
16718
16719 \end_inset
16720
16721 .
16722  It is therefore only useful for bibliography environments.
16723  The default longest label 
16724 \begin_inset Quotes eld
16725 \end_inset
16726
16727 99
16728 \begin_inset Quotes erd
16729 \end_inset
16730
16731  can be changed by the user in the paragraph settings of a bibliography item.
16732 \end_layout
16733
16734 \begin_layout Standard
16735 Putting the last few things together,
16736  the \SpecialChar LaTeX
16737  output will be either:
16738  
16739 \end_layout
16740
16741 \begin_layout LyX-Code
16742
16743 \backslash
16744 LatexName[LatexParam]{\SpecialChar ldots
16745 }
16746 \end_layout
16747
16748 \begin_layout Standard
16749 or:
16750  
16751 \end_layout
16752
16753 \begin_layout LyX-Code
16754
16755 \backslash
16756 begin{LatexName}[LatexParam] \SpecialChar ldots
16757  
16758 \backslash
16759 end{LatexName}.
16760 \end_layout
16761
16762 \begin_layout Standard
16763 depending upon the \SpecialChar LaTeX
16764  type.
16765 \end_layout
16766
16767 \end_deeper
16768 \begin_layout Description
16769 \begin_inset Flex Code
16770 status collapsed
16771
16772 \begin_layout Plain Layout
16773 LeftDelim
16774 \end_layout
16775
16776 \end_inset
16777
16778  [
16779 \begin_inset Flex Code
16780 status collapsed
16781
16782 \begin_layout Plain Layout
16783 string
16784 \end_layout
16785
16786 \end_inset
16787
16788 ] A string that is put at the beginning of the style content.
16789  A line break in the output can be indicated by 
16790 \begin_inset Flex Code
16791 status collapsed
16792
16793 \begin_layout Plain Layout
16794 <br/>
16795 \end_layout
16796
16797 \end_inset
16798
16799 .
16800 \end_layout
16801
16802 \begin_layout Description
16803 \begin_inset Flex Code
16804 status collapsed
16805
16806 \begin_layout Plain Layout
16807 LeftMargin
16808 \end_layout
16809
16810 \end_inset
16811
16812  [
16813 \begin_inset Flex Code
16814 status collapsed
16815
16816 \begin_layout Plain Layout
16817 string=""
16818 \end_layout
16819
16820 \end_inset
16821
16822 ] If you put styles into environments,
16823  the different 
16824 \begin_inset Flex Code
16825 status collapsed
16826
16827 \begin_layout Plain Layout
16828 LeftMargin
16829 \end_layout
16830
16831 \end_inset
16832
16833  are not simply added,
16834  but added with a factor 
16835 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16836 \end_inset
16837
16838 .
16839  Note that this parameter is also used when 
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 Margin
16845 \end_layout
16846
16847 \end_inset
16848
16849  is defined as 
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854 Manual
16855 \end_layout
16856
16857 \end_inset
16858
16859  or 
16860 \begin_inset Flex Code
16861 status collapsed
16862
16863 \begin_layout Plain Layout
16864 Dynamic
16865 \end_layout
16866
16867 \end_inset
16868
16869 .
16870  Then it is added to the manual or dynamic margin.
16871 \begin_inset Newline newline
16872 \end_inset
16873
16874 For example 
16875 \begin_inset Quotes eld
16876 \end_inset
16877
16878
16879 \begin_inset Flex Code
16880 status collapsed
16881
16882 \begin_layout Plain Layout
16883 MM
16884 \end_layout
16885
16886 \end_inset
16887
16888
16889 \begin_inset Quotes erd
16890 \end_inset
16891
16892  means that the paragraph is indented with the width of 
16893 \begin_inset Quotes eld
16894 \end_inset
16895
16896
16897 \begin_inset Flex Code
16898 status collapsed
16899
16900 \begin_layout Plain Layout
16901 MM
16902 \end_layout
16903
16904 \end_inset
16905
16906
16907 \begin_inset Quotes erd
16908 \end_inset
16909
16910  in the normal font.
16911  You can get a negative width by prefixing the string with 
16912 \begin_inset Quotes eld
16913 \end_inset
16914
16915
16916 \begin_inset Flex Code
16917 status collapsed
16918
16919 \begin_layout Plain Layout
16920 -
16921 \end_layout
16922
16923 \end_inset
16924
16925
16926 \begin_inset Quotes erd
16927 \end_inset
16928
16929 .
16930  This way was chosen so that the look is the same with each used screen font.
16931 \end_layout
16932
16933 \begin_layout Description
16934 \begin_inset Flex Code
16935 status collapsed
16936
16937 \begin_layout Plain Layout
16938 Margin
16939 \end_layout
16940
16941 \end_inset
16942
16943  [
16944 \begin_inset Flex Code
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948
16949 \emph on
16950 Static
16951 \emph default
16952 ,
16953  Manual,
16954  Dynamic,
16955  First_Dynamic,
16956  Right_Address_Box
16957 \end_layout
16958
16959 \end_inset
16960
16961
16962 \begin_inset Newline newline
16963 \end_inset
16964
16965 The kind of margin that the style has on the left side.
16966 \end_layout
16967
16968 \begin_deeper
16969 \begin_layout Description
16970 \begin_inset Flex Code
16971 status collapsed
16972
16973 \begin_layout Plain Layout
16974 Static
16975 \end_layout
16976
16977 \end_inset
16978
16979  just means a fixed margin.
16980 \end_layout
16981
16982 \begin_layout Description
16983 \begin_inset Flex Code
16984 status collapsed
16985
16986 \begin_layout Plain Layout
16987 Manual
16988 \end_layout
16989
16990 \end_inset
16991
16992  means that the left margin depends on the string entered in the 
16993 \begin_inset Flex Noun
16994 status collapsed
16995
16996 \begin_layout Plain Layout
16997 Edit\SpecialChar menuseparator
16998 Paragraph
16999 \begin_inset space ~
17000 \end_inset
17001
17002 Settings
17003 \end_layout
17004
17005 \end_inset
17006
17007  dialog.
17008  This is used to typeset nice lists without tabulators.
17009 \end_layout
17010
17011 \begin_layout Description
17012 \begin_inset Flex Code
17013 status collapsed
17014
17015 \begin_layout Plain Layout
17016 Dynamic
17017 \end_layout
17018
17019 \end_inset
17020
17021  means that the margin depends on the size of the label.
17022  This is used for automatic enumerated headlines.
17023  It is obvious that the headline 
17024 \begin_inset Quotes eld
17025 \end_inset
17026
17027 5.4.3.2.1 Very long headline
17028 \begin_inset Quotes erd
17029 \end_inset
17030
17031  must have a wider left margin (as wide as 
17032 \begin_inset Quotes eld
17033 \end_inset
17034
17035 5.4.3.2.1
17036 \begin_inset Quotes erd
17037 \end_inset
17038
17039  plus the space) than 
17040 \begin_inset Quotes eld
17041 \end_inset
17042
17043 3.2 Very long headline
17044 \begin_inset Quotes erd
17045 \end_inset
17046
17047 ,
17048  even if standard 
17049 \begin_inset Quotes eld
17050 \end_inset
17051
17052 word processors
17053 \begin_inset Quotes erd
17054 \end_inset
17055
17056  are not able to do this.
17057 \end_layout
17058
17059 \begin_layout Description
17060 \begin_inset Flex Code
17061 status collapsed
17062
17063 \begin_layout Plain Layout
17064 First_Dynamic
17065 \end_layout
17066
17067 \end_inset
17068
17069  is similar,
17070  but only the very first row of the paragraph is dynamic,
17071  while the others are static;
17072  this is used,
17073  for example,
17074  for descriptions.
17075 \end_layout
17076
17077 \begin_layout Description
17078 \begin_inset Flex Code
17079 status collapsed
17080
17081 \begin_layout Plain Layout
17082 Right_Address_Box
17083 \end_layout
17084
17085 \end_inset
17086
17087  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
17088  This is used to typeset an address on the right edge of the page.
17089 \end_layout
17090
17091 \end_deeper
17092 \begin_layout Description
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097 NeedProtect
17098 \end_layout
17099
17100 \end_inset
17101
17102  [
17103 \begin_inset Flex Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107
17108 \emph on
17109 0
17110 \end_layout
17111
17112 \end_inset
17113
17114 ,
17115 \begin_inset space \thinspace{}
17116 \end_inset
17117
17118
17119 \begin_inset Flex Code
17120 status collapsed
17121
17122 \begin_layout Plain Layout
17123 1
17124 \end_layout
17125
17126 \end_inset
17127
17128 ] Whether fragile commands in this style should be 
17129 \begin_inset Flex Code
17130 status collapsed
17131
17132 \begin_layout Plain Layout
17133
17134 \backslash
17135 protect
17136 \end_layout
17137
17138 \end_inset
17139
17140 'ed.
17141  (Note:
17142  This is 
17143 \emph on
17144 not
17145 \emph default
17146  whether this command should itself be protected.)
17147 \change_inserted -712698321 1523696949
17148
17149 \end_layout
17150
17151 \begin_layout Description
17152
17153 \change_inserted -712698321 1552395557
17154 \begin_inset Flex Code
17155 status collapsed
17156
17157 \begin_layout Plain Layout
17158
17159 \change_inserted -712698321 1523696950
17160 NeedCProtect
17161 \change_unchanged
17162
17163 \end_layout
17164
17165 \end_inset
17166
17167  [
17168 \begin_inset Flex Code
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172
17173 \change_inserted -712698321 1523696950
17174
17175 \emph on
17176 0
17177 \change_unchanged
17178
17179 \end_layout
17180
17181 \end_inset
17182
17183 ,
17184 \begin_inset space \thinspace{}
17185 \end_inset
17186
17187
17188 \begin_inset Flex Code
17189 status collapsed
17190
17191 \begin_layout Plain Layout
17192
17193 \change_inserted -712698321 1523696950
17194 1
17195 \change_unchanged
17196
17197 \end_layout
17198
17199 \end_inset
17200
17201 ] This causes macros that contain this layout to be protected with 
17202 \begin_inset Flex Code
17203 status collapsed
17204
17205 \begin_layout Plain Layout
17206
17207 \change_inserted -712698321 1523696950
17208
17209 \backslash
17210 cprotect
17211 \change_unchanged
17212
17213 \end_layout
17214
17215 \end_inset
17216
17217  (cf.
17218  package 
17219 \family sans
17220 cprotect
17221 \family default
17222 ) if necessary and thus allows (some) verbatim stuff in macros.
17223 \end_layout
17224
17225 \begin_layout Description
17226
17227 \change_inserted -712698321 1552395844
17228 \begin_inset Flex Code
17229 status collapsed
17230
17231 \begin_layout Plain Layout
17232
17233 \change_inserted -712698321 1552395561
17234 NeedMBoxProtect
17235 \change_unchanged
17236
17237 \end_layout
17238
17239 \end_inset
17240
17241  [
17242 \begin_inset Flex Code
17243 status collapsed
17244
17245 \begin_layout Plain Layout
17246
17247 \change_inserted -712698321 1552395557
17248
17249 \emph on
17250 0
17251 \change_unchanged
17252
17253 \end_layout
17254
17255 \end_inset
17256
17257 ,
17258 \begin_inset space \thinspace{}
17259 \end_inset
17260
17261
17262 \begin_inset Flex Code
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266
17267 \change_inserted -712698321 1552395557
17268 1
17269 \change_unchanged
17270
17271 \end_layout
17272
17273 \end_inset
17274
17275 ] Whether specific commands in this style (such as 
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280
17281 \change_inserted -712698321 1552395655
17282
17283 \backslash
17284 cite
17285 \change_unchanged
17286
17287 \end_layout
17288
17289 \end_inset
17290
17291  and 
17292 \begin_inset Flex Code
17293 status collapsed
17294
17295 \begin_layout Plain Layout
17296
17297 \change_inserted -712698321 1552395661
17298
17299 \backslash
17300 ref
17301 \change_unchanged
17302
17303 \end_layout
17304
17305 \end_inset
17306
17307 ) should be protected in an 
17308 \begin_inset Flex Code
17309 status collapsed
17310
17311 \begin_layout Plain Layout
17312
17313 \change_inserted -712698321 1552395631
17314
17315 \backslash
17316 mbox
17317 \change_unchanged
17318
17319 \end_layout
17320
17321 \end_inset
17322
17323 .
17324  This is particularly needed for styles that draw on 
17325 \family sans
17326 ulem
17327 \family default
17328  or 
17329 \family sans
17330 soul
17331 \family default
17332  commands which parse their content in complex ways.
17333 \change_unchanged
17334
17335 \end_layout
17336
17337 \begin_layout Description
17338 \begin_inset Flex Code
17339 status collapsed
17340
17341 \begin_layout Plain Layout
17342 Newline
17343 \end_layout
17344
17345 \end_inset
17346
17347  [
17348 \begin_inset Flex Code
17349 status collapsed
17350
17351 \begin_layout Plain Layout
17352 0
17353 \end_layout
17354
17355 \end_inset
17356
17357 ,
17358 \begin_inset space \thinspace{}
17359 \end_inset
17360
17361
17362 \begin_inset Flex Code
17363 status collapsed
17364
17365 \begin_layout Plain Layout
17366
17367 \emph on
17368 1
17369 \end_layout
17370
17371 \end_inset
17372
17373 ] Whether newlines are translated into \SpecialChar LaTeX
17374  newlines (
17375 \begin_inset Flex Code
17376 status collapsed
17377
17378 \begin_layout Plain Layout
17379
17380 \backslash
17381
17382 \backslash
17383
17384 \end_layout
17385
17386 \end_inset
17387
17388 ) or not.
17389  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
17390  editing inside \SpecialChar LyX
17391 .
17392 \end_layout
17393
17394 \begin_layout Description
17395 \begin_inset Flex Code
17396 status collapsed
17397
17398 \begin_layout Plain Layout
17399 NextNoIndent
17400 \end_layout
17401
17402 \end_inset
17403
17404  [
17405 \begin_inset Flex Code
17406 status collapsed
17407
17408 \begin_layout Plain Layout
17409
17410 \emph on
17411 0
17412 \end_layout
17413
17414 \end_inset
17415
17416 ,
17417 \begin_inset space \thinspace{}
17418 \end_inset
17419
17420
17421 \begin_inset Flex Code
17422 status collapsed
17423
17424 \begin_layout Plain Layout
17425 1
17426 \end_layout
17427
17428 \end_inset
17429
17430 ] If set to true,
17431  and if 
17432 \begin_inset Flex Code
17433 status collapsed
17434
17435 \begin_layout Plain Layout
17436 DefaultStyle
17437 \end_layout
17438
17439 \end_inset
17440
17441  (usually 
17442 \begin_inset Flex Code
17443 status collapsed
17444
17445 \begin_layout Plain Layout
17446 Standard
17447 \end_layout
17448
17449 \end_inset
17450
17451 ) paragraphs are being indented,
17452  then the indentation of such a paragraph following one of this type will be suppressed.
17453  (So this will not affect the display of non-default paragraphs.)
17454 \end_layout
17455
17456 \begin_layout Description
17457 \begin_inset Flex Code
17458 status collapsed
17459
17460 \begin_layout Plain Layout
17461 ObsoletedBy
17462 \end_layout
17463
17464 \end_inset
17465
17466  [
17467 \begin_inset Flex Code
17468 status collapsed
17469
17470 \begin_layout Plain Layout
17471 <name>
17472 \end_layout
17473
17474 \end_inset
17475
17476 ] Name of a style that has replaced this style.
17477  This is used to rename a style,
17478  while keeping backward compatibility.
17479 \end_layout
17480
17481 \begin_layout Description
17482 \begin_inset Flex Code
17483 status collapsed
17484
17485 \begin_layout Plain Layout
17486 ParagraphGroup
17487 \end_layout
17488
17489 \end_inset
17490
17491  [
17492 \begin_inset Flex Code
17493 status collapsed
17494
17495 \begin_layout Plain Layout
17496 0
17497 \end_layout
17498
17499 \end_inset
17500
17501 ,
17502 \begin_inset space \thinspace{}
17503 \end_inset
17504
17505
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 1
17511 \end_layout
17512
17513 \end_inset
17514
17515 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
17516  This has the effect that the 
17517 \begin_inset Flex Code
17518 status collapsed
17519
17520 \begin_layout Plain Layout
17521 GuiLabel
17522 \end_layout
17523
17524 \end_inset
17525
17526  is only printed once before such a group.
17527  By default,
17528  this is true for 
17529 \begin_inset Flex Code
17530 status collapsed
17531
17532 \begin_layout Plain Layout
17533 LaTeXType
17534 \end_layout
17535
17536 \end_inset
17537
17538  
17539 \begin_inset Flex Code
17540 status collapsed
17541
17542 \begin_layout Plain Layout
17543 Environment
17544 \end_layout
17545
17546 \end_inset
17547
17548  and 
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553 Bib_Environment
17554 \end_layout
17555
17556 \end_inset
17557
17558  and false for all other types.
17559 \end_layout
17560
17561 \begin_layout Description
17562 \begin_inset Flex Code
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566 ParbreakIsNewline
17567 \end_layout
17568
17569 \end_inset
17570
17571  [
17572 \begin_inset Flex Code
17573 status collapsed
17574
17575 \begin_layout Plain Layout
17576
17577 \emph on
17578 0
17579 \end_layout
17580
17581 \end_inset
17582
17583 ,
17584 \begin_inset space \thinspace{}
17585 \end_inset
17586
17587
17588 \begin_inset Flex Code
17589 status collapsed
17590
17591 \begin_layout Plain Layout
17592 1
17593 \end_layout
17594
17595 \end_inset
17596
17597 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17598  output,
17599  but only by a line break;
17600  together with 
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605 PassThru 1
17606 \end_layout
17607
17608 \end_inset
17609
17610 ,
17611  this allows to emulate a plain text editor (like the ERT inset).
17612 \end_layout
17613
17614 \begin_layout Description
17615 \begin_inset Flex Code
17616 status collapsed
17617
17618 \begin_layout Plain Layout
17619 ParIndent
17620 \end_layout
17621
17622 \end_inset
17623
17624  [
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 string=""
17630 \end_layout
17631
17632 \end_inset
17633
17634 ] The indent of the very first line of a paragraph.
17635  The
17636 \begin_inset Newline newline
17637 \end_inset
17638
17639
17640 \begin_inset Flex Code
17641 status collapsed
17642
17643 \begin_layout Plain Layout
17644 Parindent
17645 \end_layout
17646
17647 \end_inset
17648
17649  will be fixed for a certain style.
17650  The exception is the default style,
17651  since the indentation for these paragraphs can be prohibited with 
17652 \begin_inset Flex Code
17653 status collapsed
17654
17655 \begin_layout Plain Layout
17656 NextNoIndent
17657 \end_layout
17658
17659 \end_inset
17660
17661 .
17662  Also,
17663  
17664 \begin_inset Flex Code
17665 status collapsed
17666
17667 \begin_layout Plain Layout
17668 Standard
17669 \end_layout
17670
17671 \end_inset
17672
17673  style paragraphs inside environments use the 
17674 \begin_inset Flex Code
17675 status collapsed
17676
17677 \begin_layout Plain Layout
17678 Parindent
17679 \end_layout
17680
17681 \end_inset
17682
17683  of the environment,
17684  not their native one.
17685  For example,
17686  
17687 \begin_inset Flex Code
17688 status collapsed
17689
17690 \begin_layout Plain Layout
17691 Standard
17692 \end_layout
17693
17694 \end_inset
17695
17696  paragraphs inside an enumeration are not indented.
17697 \end_layout
17698
17699 \begin_layout Description
17700 \begin_inset Flex Code
17701 status collapsed
17702
17703 \begin_layout Plain Layout
17704 ParSep
17705 \end_layout
17706
17707 \end_inset
17708
17709  [
17710 \begin_inset Flex Code
17711 status collapsed
17712
17713 \begin_layout Plain Layout
17714 float=0
17715 \end_layout
17716
17717 \end_inset
17718
17719 ] The vertical space between two paragraphs of this style.
17720 \end_layout
17721
17722 \begin_layout Description
17723 \begin_inset Flex Code
17724 status collapsed
17725
17726 \begin_layout Plain Layout
17727 Parskip
17728 \end_layout
17729
17730 \end_inset
17731
17732  [
17733 \begin_inset Flex Code
17734 status collapsed
17735
17736 \begin_layout Plain Layout
17737 float=0
17738 \end_layout
17739
17740 \end_inset
17741
17742 ] \SpecialChar LyX
17743  allows the user to choose either 
17744 \begin_inset Quotes eld
17745 \end_inset
17746
17747 indent
17748 \begin_inset Quotes erd
17749 \end_inset
17750
17751  or 
17752 \begin_inset Quotes eld
17753 \end_inset
17754
17755 skip
17756 \begin_inset Quotes erd
17757 \end_inset
17758
17759  to separate paragraphs.
17760  When 
17761 \begin_inset Quotes eld
17762 \end_inset
17763
17764 indent
17765 \begin_inset Quotes erd
17766 \end_inset
17767
17768  is chosen,
17769  
17770 \begin_inset Flex Code
17771 status collapsed
17772
17773 \begin_layout Plain Layout
17774 Parskip
17775 \end_layout
17776
17777 \end_inset
17778
17779  is ignored.
17780  When 
17781 \begin_inset Quotes eld
17782 \end_inset
17783
17784 skip
17785 \begin_inset Quotes erd
17786 \end_inset
17787
17788  is chosen,
17789  
17790 \begin_inset Flex Code
17791 status collapsed
17792
17793 \begin_layout Plain Layout
17794 ParIndent
17795 \end_layout
17796
17797 \end_inset
17798
17799  is ignored and all paragraphs are separated by the 
17800 \begin_inset Flex Code
17801 status collapsed
17802
17803 \begin_layout Plain Layout
17804 Parskip
17805 \end_layout
17806
17807 \end_inset
17808
17809  argument.
17810  The vertical space is calculated with 
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 Parskip
17816 \begin_inset space ~
17817 \end_inset
17818
17819 * DefaultHeight
17820 \end_layout
17821
17822 \end_inset
17823
17824  where 
17825 \begin_inset Flex Code
17826 status collapsed
17827
17828 \begin_layout Plain Layout
17829 DefaultHeight
17830 \end_layout
17831
17832 \end_inset
17833
17834  is the height of a row with the normal font.
17835  This way,
17836  the look stays the same with different screen fonts.
17837 \end_layout
17838
17839 \begin_layout Description
17840 \begin_inset Flex Code
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844 PassThru
17845 \end_layout
17846
17847 \end_inset
17848
17849  [
17850 \begin_inset Flex Code
17851 status collapsed
17852
17853 \begin_layout Plain Layout
17854
17855 \emph on
17856 0
17857 \end_layout
17858
17859 \end_inset
17860
17861 ,
17862 \begin_inset space \thinspace{}
17863 \end_inset
17864
17865
17866 \begin_inset Flex Code
17867 status collapsed
17868
17869 \begin_layout Plain Layout
17870 1
17871 \end_layout
17872
17873 \end_inset
17874
17875 ] Whether the contents of this paragraph should be output in raw form,
17876  meaning without special translations that \SpecialChar LaTeX
17877  would require.
17878 \end_layout
17879
17880 \begin_layout Description
17881 \begin_inset Flex Code
17882 status collapsed
17883
17884 \begin_layout Plain Layout
17885 PassThruChars
17886 \end_layout
17887
17888 \end_inset
17889
17890  [
17891 \begin_inset Flex Code
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895 string
17896 \end_layout
17897
17898 \end_inset
17899
17900 ]
17901 \family typewriter
17902  
17903 \family default
17904 Defines individual characters that should be output in raw form,
17905  meaning without special translations that \SpecialChar LaTeX
17906  would require.
17907 \end_layout
17908
17909 \begin_layout Description
17910 \begin_inset Flex Code
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914 Preamble
17915 \end_layout
17916
17917 \end_inset
17918
17919  Information to be included in the \SpecialChar LaTeX
17920  preamble when this style is used.
17921  Used to define macros,
17922  load packages,
17923  etc.,
17924  required by this particular style.
17925  Must end with 
17926 \begin_inset Quotes eld
17927 \end_inset
17928
17929
17930 \begin_inset Flex Code
17931 status collapsed
17932
17933 \begin_layout Plain Layout
17934 EndPreamble
17935 \end_layout
17936
17937 \end_inset
17938
17939
17940 \begin_inset Quotes erd
17941 \end_inset
17942
17943 .
17944 \end_layout
17945
17946 \begin_layout Description
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 RefPrefix
17952 \end_layout
17953
17954 \end_inset
17955
17956  [
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 string
17962 \end_layout
17963
17964 \end_inset
17965
17966 ] The prefix to use when creating labels referring to paragraphs of this type.
17967  This allows the use of formatted references.
17968 \end_layout
17969
17970 \begin_layout Description
17971 \begin_inset Flex Code
17972 status collapsed
17973
17974 \begin_layout Plain Layout
17975 Requires 
17976 \end_layout
17977
17978 \end_inset
17979
17980  [
17981 \begin_inset Flex Code
17982 status collapsed
17983
17984 \begin_layout Plain Layout
17985 string
17986 \end_layout
17987
17988 \end_inset
17989
17990 ] Whether the style requires the feature 
17991 \begin_inset Flex Code
17992 status collapsed
17993
17994 \begin_layout Plain Layout
17995 string
17996 \end_layout
17997
17998 \end_inset
17999
18000  (see 
18001 \begin_inset CommandInset ref
18002 LatexCommand ref
18003 reference "chap:List-of-functions"
18004 nolink "false"
18005
18006 \end_inset
18007
18008  for the list of features).
18009  If you require a package with specific options,
18010  you can additionally use 
18011 \begin_inset Flex Code
18012 status collapsed
18013
18014 \begin_layout Plain Layout
18015 PackageOptions
18016 \end_layout
18017
18018 \end_inset
18019
18020  as a general text class parameter (see 
18021 \begin_inset CommandInset ref
18022 LatexCommand ref
18023 reference "subsec:General-text-class"
18024 nolink "false"
18025
18026 \end_inset
18027
18028 ).
18029 \end_layout
18030
18031 \begin_layout Description
18032 \begin_inset Flex Code
18033 status collapsed
18034
18035 \begin_layout Plain Layout
18036 ResetArgs
18037 \end_layout
18038
18039 \end_inset
18040
18041  [
18042 \begin_inset Flex Code
18043 status collapsed
18044
18045 \begin_layout Plain Layout
18046
18047 \emph on
18048 0
18049 \end_layout
18050
18051 \end_inset
18052
18053 ,
18054 \begin_inset Flex Code
18055 status collapsed
18056
18057 \begin_layout Plain Layout
18058 1
18059 \end_layout
18060
18061 \end_inset
18062
18063 ] Resets the \SpecialChar LaTeX
18064  arguments of this style (as defined via the 
18065 \begin_inset Flex Code
18066 status collapsed
18067
18068 \begin_layout Plain Layout
18069 Argument
18070 \end_layout
18071
18072 \end_inset
18073
18074  tag).
18075  This is useful if you have copied a style via 
18076 \begin_inset Flex Code
18077 status collapsed
18078
18079 \begin_layout Plain Layout
18080 CopyStyle
18081 \end_layout
18082
18083 \end_inset
18084
18085 ,
18086  but you do not want to inherit its (required and optional) arguments.
18087 \end_layout
18088
18089 \begin_layout Description
18090 \begin_inset Flex Code
18091 status collapsed
18092
18093 \begin_layout Plain Layout
18094 ResumeCounter
18095 \end_layout
18096
18097 \end_inset
18098
18099  [
18100 \begin_inset Flex Code
18101 status collapsed
18102
18103 \begin_layout Plain Layout
18104
18105 \emph on
18106 0
18107 \end_layout
18108
18109 \end_inset
18110
18111 ,
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116 1
18117 \end_layout
18118
18119 \end_inset
18120
18121 ] Resumes a counter that is usually reset at each new sequence of layouts.
18122  This is currently only useful when 
18123 \begin_inset Flex Code
18124 status collapsed
18125
18126 \begin_layout Plain Layout
18127 LabelType
18128 \end_layout
18129
18130 \end_inset
18131
18132  is 
18133 \begin_inset Flex Code
18134 status collapsed
18135
18136 \begin_layout Plain Layout
18137 Enumerate
18138 \end_layout
18139
18140 \end_inset
18141
18142 .
18143 \end_layout
18144
18145 \begin_layout Description
18146 \begin_inset Flex Code
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150 RightDelim
18151 \end_layout
18152
18153 \end_inset
18154
18155  [
18156 \begin_inset Flex Code
18157 status collapsed
18158
18159 \begin_layout Plain Layout
18160 string
18161 \end_layout
18162
18163 \end_inset
18164
18165 ] A string that is put at the end of the layout content.
18166  A line break in the output can be indicated by 
18167 \begin_inset Flex Code
18168 status collapsed
18169
18170 \begin_layout Plain Layout
18171 <br/>
18172 \end_layout
18173
18174 \end_inset
18175
18176 .
18177 \end_layout
18178
18179 \begin_layout Description
18180 \begin_inset Flex Code
18181 status collapsed
18182
18183 \begin_layout Plain Layout
18184 RightMargin
18185 \end_layout
18186
18187 \end_inset
18188
18189  [
18190 \begin_inset Flex Code
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 string=""
18195 \end_layout
18196
18197 \end_inset
18198
18199 ] Similar to 
18200 \begin_inset Flex Code
18201 status collapsed
18202
18203 \begin_layout Plain Layout
18204 LeftMargin
18205 \end_layout
18206
18207 \end_inset
18208
18209 .
18210 \end_layout
18211
18212 \begin_layout Description
18213 \begin_inset Flex Code
18214 status collapsed
18215
18216 \begin_layout Plain Layout
18217 Spacing
18218 \end_layout
18219
18220 \end_inset
18221
18222  [
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227
18228 \emph on
18229 single
18230 \end_layout
18231
18232 \end_inset
18233
18234 ,
18235  
18236 \begin_inset Flex Code
18237 status collapsed
18238
18239 \begin_layout Plain Layout
18240 onehalf
18241 \end_layout
18242
18243 \end_inset
18244
18245 ,
18246  
18247 \begin_inset Flex Code
18248 status collapsed
18249
18250 \begin_layout Plain Layout
18251 double
18252 \end_layout
18253
18254 \end_inset
18255
18256 ,
18257  
18258 \begin_inset Flex Code
18259 status collapsed
18260
18261 \begin_layout Plain Layout
18262 other
18263 \begin_inset space ~
18264 \end_inset
18265
18266 <value>
18267 \end_layout
18268
18269 \end_inset
18270
18271 ] This defines what the default spacing should be in the style.
18272  The arguments 
18273 \begin_inset Flex Code
18274 status collapsed
18275
18276 \begin_layout Plain Layout
18277 single
18278 \end_layout
18279
18280 \end_inset
18281
18282 ,
18283  
18284 \begin_inset Flex Code
18285 status collapsed
18286
18287 \begin_layout Plain Layout
18288 onehalf
18289 \end_layout
18290
18291 \end_inset
18292
18293  and 
18294 \begin_inset Flex Code
18295 status collapsed
18296
18297 \begin_layout Plain Layout
18298 double
18299 \end_layout
18300
18301 \end_inset
18302
18303  correspond respectively to a multiplier value of 1,
18304  1.25 and 1.667.
18305  If you specify the argument 
18306 \begin_inset Flex Code
18307 status collapsed
18308
18309 \begin_layout Plain Layout
18310 other
18311 \end_layout
18312
18313 \end_inset
18314
18315 ,
18316  then you must also provide a value argument which will be the actual multiplier value.
18317  Note that,
18318  contrary to other parameters,
18319  
18320 \begin_inset Flex Code
18321 status collapsed
18322
18323 \begin_layout Plain Layout
18324 Spacing
18325 \end_layout
18326
18327 \end_inset
18328
18329  implies the generation of specific \SpecialChar LaTeX
18330  code,
18331  using the \SpecialChar LaTeX
18332  package 
18333 \family roman
18334
18335 \begin_inset Flex Code
18336 status collapsed
18337
18338 \begin_layout Plain Layout
18339 setspace
18340 \end_layout
18341
18342 \end_inset
18343
18344 .
18345 \end_layout
18346
18347 \begin_layout Description
18348 \begin_inset Flex Code
18349 status collapsed
18350
18351 \begin_layout Plain Layout
18352 Spellcheck
18353 \end_layout
18354
18355 \end_inset
18356
18357  [
18358 \begin_inset Flex Code
18359 status collapsed
18360
18361 \begin_layout Plain Layout
18362 0
18363 \end_layout
18364
18365 \end_inset
18366
18367 ,
18368 \begin_inset space \thinspace{}
18369 \end_inset
18370
18371
18372 \begin_inset Flex Code
18373 status collapsed
18374
18375 \begin_layout Plain Layout
18376
18377 \emph on
18378 1
18379 \end_layout
18380
18381 \end_inset
18382
18383 ] Allow spell-checking paragraphs of this style.
18384  Default is true.
18385 \end_layout
18386
18387 \begin_layout Description
18388 \begin_inset Flex Code
18389 status collapsed
18390
18391 \begin_layout Plain Layout
18392 Step
18393 \change_deleted 731793113 1604355211
18394 Master
18395 \change_inserted 731793113 1604355212
18396 Parent
18397 \change_unchanged
18398 Counter
18399 \end_layout
18400
18401 \end_inset
18402
18403  [
18404 \begin_inset Flex Code
18405 status collapsed
18406
18407 \begin_layout Plain Layout
18408
18409 \emph on
18410 0
18411 \end_layout
18412
18413 \end_inset
18414
18415 ,
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 1
18421 \end_layout
18422
18423 \end_inset
18424
18425 ] Steps the 
18426 \change_deleted 731793113 1604355214
18427 master
18428 \change_inserted 731793113 1604355216
18429 parent
18430 \change_unchanged
18431  counter of a given counter at the beginning of a new sequence of layouts.
18432  This is currently only useful when 
18433 \begin_inset Flex Code
18434 status collapsed
18435
18436 \begin_layout Plain Layout
18437 LabelType
18438 \end_layout
18439
18440 \end_inset
18441
18442  is 
18443 \begin_inset Flex Code
18444 status collapsed
18445
18446 \begin_layout Plain Layout
18447 Enumerate
18448 \end_layout
18449
18450 \end_inset
18451
18452 .
18453 \end_layout
18454
18455 \begin_layout Description
18456 \begin_inset Flex Code
18457 status collapsed
18458
18459 \begin_layout Plain Layout
18460 TextFont
18461 \end_layout
18462
18463 \end_inset
18464
18465  The font used for the text body .
18466  See 
18467 \begin_inset CommandInset ref
18468 LatexCommand ref
18469 reference "subsec:Font-description"
18470 nolink "false"
18471
18472 \end_inset
18473
18474 .
18475 \end_layout
18476
18477 \begin_layout Description
18478 \begin_inset Flex Code
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 TocLevel
18483 \end_layout
18484
18485 \end_inset
18486
18487
18488 \series medium
18489  [
18490 \begin_inset Flex Code
18491 status collapsed
18492
18493 \begin_layout Plain Layout
18494
18495 \series medium
18496 int=3
18497 \end_layout
18498
18499 \end_inset
18500
18501 ]
18502 \series default
18503  The level of the style in the table of contents.
18504  This is used for automatic numbering of section headings.
18505 \end_layout
18506
18507 \begin_layout Description
18508 \begin_inset Flex Code
18509 status collapsed
18510
18511 \begin_layout Plain Layout
18512 ToggleIndent
18513 \end_layout
18514
18515 \end_inset
18516
18517  [
18518 \emph on
18519
18520 \begin_inset Flex Code
18521 status collapsed
18522
18523 \begin_layout Plain Layout
18524
18525 \emph on
18526 default
18527 \end_layout
18528
18529 \end_inset
18530
18531
18532 \emph default
18533 ,
18534  
18535 \begin_inset Flex Code
18536 status collapsed
18537
18538 \begin_layout Plain Layout
18539 always
18540 \end_layout
18541
18542 \end_inset
18543
18544 ,
18545  
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550 never
18551 \end_layout
18552
18553 \end_inset
18554
18555 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
18556  If 
18557 \emph on
18558
18559 \begin_inset Flex Code
18560 status collapsed
18561
18562 \begin_layout Plain Layout
18563
18564 \emph off
18565 default
18566 \end_layout
18567
18568 \end_inset
18569
18570
18571 \emph default
18572  is set,
18573  indentation can be toggled if the document settings use 
18574 \begin_inset Quotes eld
18575 \end_inset
18576
18577 indent
18578 \begin_inset Quotes erd
18579 \end_inset
18580
18581  paragraph style,
18582  with 
18583 \begin_inset Flex Code
18584 status collapsed
18585
18586 \begin_layout Plain Layout
18587 always
18588 \end_layout
18589
18590 \end_inset
18591
18592 ,
18593  indentation can always be toggled,
18594  notwithstanding the document settings,
18595  with 
18596 \begin_inset Flex Code
18597 status collapsed
18598
18599 \begin_layout Plain Layout
18600 never
18601 \end_layout
18602
18603 \end_inset
18604
18605 ,
18606  indentation can never be toggled.
18607 \end_layout
18608
18609 \begin_layout Description
18610 \begin_inset Flex Code
18611 status collapsed
18612
18613 \begin_layout Plain Layout
18614 TopSep
18615 \end_layout
18616
18617 \end_inset
18618
18619  [
18620 \begin_inset Flex Code
18621 status collapsed
18622
18623 \begin_layout Plain Layout
18624 float=0
18625 \end_layout
18626
18627 \end_inset
18628
18629 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
18630  If the previous paragraph has another style,
18631  the separations are not simply added,
18632  but the maximum is taken.
18633 \end_layout
18634
18635 \begin_layout Subsection
18636 \begin_inset CommandInset label
18637 LatexCommand label
18638 name "subsec:I18n"
18639
18640 \end_inset
18641
18642 Internationalization of Paragraph Styles
18643 \end_layout
18644
18645 \begin_layout Standard
18646 \SpecialChar LyX
18647  has long supported internationalization of layout information,
18648  but,
18649  until version 2.0,
18650  this applied only to the user interface and not to,
18651  say,
18652  PDF output.
18653  Thus,
18654  French authors were forced to resort to ugly hacks if they wanted `
18655 \lang french
18656 Théorème
18657 \lang english
18658  1' instead of `Theorem 1'.
18659  Thanks to Georg Baum,
18660  that is no longer the case.
18661 \end_layout
18662
18663 \begin_layout Standard
18664 If a 
18665 \begin_inset Flex Code
18666 status collapsed
18667
18668 \begin_layout Plain Layout
18669 Style
18670 \end_layout
18671
18672 \end_inset
18673
18674  defines text that is to appear in the typeset document,
18675  it may use 
18676 \begin_inset Flex Code
18677 status collapsed
18678
18679 \begin_layout Plain Layout
18680 LangPreamble
18681 \end_layout
18682
18683 \end_inset
18684
18685  and 
18686 \begin_inset Flex Code
18687 status collapsed
18688
18689 \begin_layout Plain Layout
18690 BabelPreamble
18691 \end_layout
18692
18693 \end_inset
18694
18695  to support non-English and even multi-language documents correctly.
18696  The following excerpt (from the 
18697 \begin_inset Flex Code
18698 status collapsed
18699
18700 \begin_layout Plain Layout
18701 theorems-ams.inc
18702 \end_layout
18703
18704 \end_inset
18705
18706  file) shows how this works:
18707 \end_layout
18708
18709 \begin_layout LyX-Code
18710 Preamble
18711 \end_layout
18712
18713 \begin_deeper
18714 \begin_layout LyX-Code
18715   
18716 \backslash
18717 theoremstyle{remark}
18718 \end_layout
18719
18720 \begin_layout LyX-Code
18721   
18722 \backslash
18723 newtheorem{claim}[thm]{
18724 \backslash
18725 protect
18726 \backslash
18727 claimname}
18728 \end_layout
18729
18730 \begin_layout LyX-Code
18731 EndPreamble
18732 \end_layout
18733
18734 \begin_layout LyX-Code
18735 LangPreamble
18736 \end_layout
18737
18738 \begin_layout LyX-Code
18739   
18740 \backslash
18741 providecommand{
18742 \backslash
18743 claimname}{_(Claim)}
18744 \end_layout
18745
18746 \begin_layout LyX-Code
18747 EndLangPreamble
18748 \end_layout
18749
18750 \begin_layout LyX-Code
18751 BabelPreamble
18752 \end_layout
18753
18754 \begin_layout LyX-Code
18755     
18756 \backslash
18757 addto
18758 \backslash
18759 captions$$lang{
18760 \backslash
18761 renewcommand{
18762 \backslash
18763 claimname}{_(Claim)}}
18764 \end_layout
18765
18766 \begin_layout LyX-Code
18767 EndBabelPreamble
18768 \end_layout
18769
18770 \end_deeper
18771 \begin_layout Standard
18772 In principle,
18773  any legal \SpecialChar LaTeX
18774  may appear in the 
18775 \begin_inset Flex Code
18776 status collapsed
18777
18778 \begin_layout Plain Layout
18779 LangPreamble
18780 \end_layout
18781
18782 \end_inset
18783
18784  and 
18785 \begin_inset Flex Code
18786 status collapsed
18787
18788 \begin_layout Plain Layout
18789 BabelPreamble
18790 \end_layout
18791
18792 \end_inset
18793
18794  tags,
18795  but in practice they will typically look as they do here.
18796  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
18797  command 
18798 \begin_inset Flex Code
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802
18803 \backslash
18804 claimname
18805 \end_layout
18806
18807 \end_inset
18808
18809  and its use in 
18810 \begin_inset Flex Code
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814
18815 \backslash
18816 newtheorem
18817 \end_layout
18818
18819 \end_inset
18820
18821 .
18822  
18823 \end_layout
18824
18825 \begin_layout Standard
18826 The 
18827 \begin_inset Flex Code
18828 status collapsed
18829
18830 \begin_layout Plain Layout
18831 LangPreamble
18832 \end_layout
18833
18834 \end_inset
18835
18836  tag provides for internationalization based upon the overall language of the document.
18837  The contents of the tag will be included in the preamble,
18838  just as with the 
18839 \begin_inset Flex Code
18840 status collapsed
18841
18842 \begin_layout Plain Layout
18843 Preamble
18844 \end_layout
18845
18846 \end_inset
18847
18848  tag.
18849  What makes it special is the use of the 
18850 \begin_inset Quotes eld
18851 \end_inset
18852
18853 function
18854 \begin_inset Quotes erd
18855 \end_inset
18856
18857  
18858 \begin_inset Flex Code
18859 status collapsed
18860
18861 \begin_layout Plain Layout
18862 _()
18863 \end_layout
18864
18865 \end_inset
18866
18867 ,
18868  which will be replaced,
18869  when \SpecialChar LyX
18870  produces \SpecialChar LaTeX
18871  output,
18872  with the translation of its argument into the document language.
18873 \end_layout
18874
18875 \begin_layout Standard
18876 The 
18877 \begin_inset Flex Code
18878 status collapsed
18879
18880 \begin_layout Plain Layout
18881 BabelPreamble
18882 \end_layout
18883
18884 \end_inset
18885
18886  tag is more complex,
18887  since it is meant to provide support for multi-language documents and so offers an interface to the 
18888 \begin_inset Flex Code
18889 status collapsed
18890
18891 \begin_layout Plain Layout
18892 babel
18893 \end_layout
18894
18895 \end_inset
18896
18897  package.
18898  Its contents will be added to the preamble once for each language that appears in the document.
18899  In this case,
18900  the argument to 
18901 \begin_inset Flex Code
18902 status collapsed
18903
18904 \begin_layout Plain Layout
18905 _()
18906 \end_layout
18907
18908 \end_inset
18909
18910  will be replaced with its translation into the language in question;
18911  the expression 
18912 \begin_inset Flex Code
18913 status collapsed
18914
18915 \begin_layout Plain Layout
18916 $$lang
18917 \end_layout
18918
18919 \end_inset
18920
18921  is replaced by the language name (as used by the babel package).
18922 \end_layout
18923
18924 \begin_layout Standard
18925 A German document that also included a French section would thus have the following in the preamble:
18926 \end_layout
18927
18928 \begin_layout LyX-Code
18929
18930 \backslash
18931 addto
18932 \backslash
18933 captionsfrench{
18934 \backslash
18935 renewcommand{
18936 \backslash
18937 claimname}{Affirmation}}
18938 \begin_inset Newline newline
18939 \end_inset
18940
18941
18942 \backslash
18943 addto
18944 \backslash
18945 captionsngerman{
18946 \backslash
18947 renewcommand{
18948 \backslash
18949 claimname}{Behauptung}}
18950 \begin_inset Newline newline
18951 \end_inset
18952
18953
18954 \backslash
18955 providecommand{
18956 \backslash
18957 claimname}{Behauptung}
18958 \end_layout
18959
18960 \begin_layout Standard
18961 \SpecialChar LaTeX
18962  and 
18963 \begin_inset Flex Code
18964 status collapsed
18965
18966 \begin_layout Plain Layout
18967 babel
18968 \end_layout
18969
18970 \end_inset
18971
18972  will then conspire to produce the correct text in the output.
18973 \end_layout
18974
18975 \begin_layout Standard
18976 One important point to note here is that the translations are provided by \SpecialChar LyX
18977  itself,
18978  through the file 
18979 \begin_inset Flex Code
18980 status collapsed
18981
18982 \begin_layout Plain Layout
18983 layouttranslations
18984 \end_layout
18985
18986 \end_inset
18987
18988 .
18989  This means,
18990  in effect,
18991  that 
18992 \begin_inset Flex Code
18993 status collapsed
18994
18995 \begin_layout Plain Layout
18996 LangPreamble
18997 \end_layout
18998
18999 \end_inset
19000
19001  and 
19002 \begin_inset Flex Code
19003 status collapsed
19004
19005 \begin_layout Plain Layout
19006 BabelPreamble
19007 \end_layout
19008
19009 \end_inset
19010
19011  are really only of use in layout files that are provided with \SpecialChar LyX
19012 ,
19013  since text entered in user-created layout files will not be seen by \SpecialChar LyX
19014 's internationalization routines unless the 
19015 \begin_inset Flex Code
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 layouttranslations
19020 \end_layout
19021
19022 \end_inset
19023
19024  file is modified accordingly.
19025  That said,
19026  however,
19027  any layout created with the intention that it will be included with \SpecialChar LyX
19028  should use these tags where appropriate.
19029  Please note that the paragraph style translations provided by \SpecialChar LyX
19030  will never change with a minor update (e.
19031 \begin_inset space \thinspace{}
19032 \end_inset
19033
19034 g.
19035 \begin_inset space \space{}
19036 \end_inset
19037
19038 from version 2.1.x to 2.1.y).
19039  It is however quite likely that a major update (e.
19040 \begin_inset space \thinspace{}
19041 \end_inset
19042
19043 g.
19044 \begin_inset space \space{}
19045 \end_inset
19046
19047 from 2.0.x to 2.1.0) will introduce new translations or corrections.
19048 \end_layout
19049
19050 \begin_layout Subsection
19051 Floats
19052 \begin_inset CommandInset label
19053 LatexCommand label
19054 name "subsec:Floats"
19055
19056 \end_inset
19057
19058
19059 \end_layout
19060
19061 \begin_layout Standard
19062 It is necessary to define the floats (
19063 \begin_inset Flex Noun
19064 status collapsed
19065
19066 \begin_layout Plain Layout
19067 figure
19068 \end_layout
19069
19070 \end_inset
19071
19072 ,
19073  
19074 \begin_inset Flex Noun
19075 status collapsed
19076
19077 \begin_layout Plain Layout
19078 table
19079 \end_layout
19080
19081 \end_inset
19082
19083 ,
19084  \SpecialChar ldots
19085 ) in the text class itself.
19086  Standard floats are included in the file 
19087 \begin_inset Flex Code
19088 status collapsed
19089
19090 \begin_layout Plain Layout
19091 stdfloats.inc
19092 \end_layout
19093
19094 \end_inset
19095
19096 ,
19097  so you may have to do no more than add
19098 \end_layout
19099
19100 \begin_layout LyX-Code
19101 Input stdfloats.inc
19102 \end_layout
19103
19104 \begin_layout Standard
19105 to your layout file.
19106  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
19107 ),
19108  the information below will hopefully help you:
19109 \end_layout
19110
19111 \begin_layout Description
19112 \begin_inset Flex Code
19113 status collapsed
19114
19115 \begin_layout Plain Layout
19116 AllowedPlacement
19117 \end_layout
19118
19119 \end_inset
19120
19121  [
19122 \begin_inset Flex Code
19123 status collapsed
19124
19125 \begin_layout Plain Layout
19126 string
19127 \end_layout
19128
19129 \end_inset
19130
19131 =!htbpH] Allowed placement options for this float type.
19132  The value is a string of placement characters.
19133  Possible characters include:
19134  
19135 \emph on
19136 h
19137 \emph default
19138  (
19139 \begin_inset Quotes eld
19140 \end_inset
19141
19142 here if possible
19143 \begin_inset Quotes erd
19144 \end_inset
19145
19146 ),
19147  
19148 \emph on
19149 t
19150 \emph default
19151  (
19152 \begin_inset Quotes eld
19153 \end_inset
19154
19155 top of page
19156 \begin_inset Quotes erd
19157 \end_inset
19158
19159 ),
19160  
19161 \emph on
19162 b
19163 \emph default
19164  (
19165 \begin_inset Quotes eld
19166 \end_inset
19167
19168 bottom of page
19169 \begin_inset Quotes erd
19170 \end_inset
19171
19172 ),
19173  
19174 \emph on
19175 p
19176 \emph default
19177  (
19178 \begin_inset Quotes eld
19179 \end_inset
19180
19181 page of floats
19182 \begin_inset Quotes erd
19183 \end_inset
19184
19185 ),
19186  
19187 \emph on
19188 H
19189 \emph default
19190  (
19191 \begin_inset Quotes eld
19192 \end_inset
19193
19194 here definitely
19195 \begin_inset Quotes erd
19196 \end_inset
19197
19198 ) and 
19199 \emph on
19200 !
19201
19202 \emph default
19203  (
19204 \begin_inset Quotes eld
19205 \end_inset
19206
19207 ignore LaTeX rules
19208 \begin_inset Quotes erd
19209 \end_inset
19210
19211 ).
19212  The order of the characters in the string does not matter.
19213  If no placement options are allowed,
19214  use the string 
19215 \emph on
19216 none
19217 \emph default
19218 .
19219 \end_layout
19220
19221 \begin_layout Description
19222 \begin_inset Flex Code
19223 status collapsed
19224
19225 \begin_layout Plain Layout
19226 AllowsSideways
19227 \end_layout
19228
19229 \end_inset
19230
19231  [
19232 \begin_inset Flex Code
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236
19237 \emph off
19238 0
19239 \end_layout
19240
19241 \end_inset
19242
19243 ,
19244 \begin_inset space \thinspace{}
19245 \end_inset
19246
19247
19248 \emph on
19249
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254
19255 \emph on
19256 1
19257 \end_layout
19258
19259 \end_inset
19260
19261
19262 \emph default
19263 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
19264 -package 
19265 \family typewriter
19266 rotfloat
19267 \family default
19268  (sidewaysfloat).
19269  Set to 
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 0
19275 \end_layout
19276
19277 \end_inset
19278
19279  if the float does not support this feature.
19280 \end_layout
19281
19282 \begin_layout Description
19283 \begin_inset Flex Code
19284 status collapsed
19285
19286 \begin_layout Plain Layout
19287 AllowsWide
19288 \end_layout
19289
19290 \end_inset
19291
19292  [
19293 \begin_inset Flex Code
19294 status collapsed
19295
19296 \begin_layout Plain Layout
19297
19298 \emph off
19299 0
19300 \end_layout
19301
19302 \end_inset
19303
19304 ,
19305 \begin_inset space \thinspace{}
19306 \end_inset
19307
19308
19309 \emph on
19310
19311 \begin_inset Flex Code
19312 status collapsed
19313
19314 \begin_layout Plain Layout
19315
19316 \emph on
19317 1
19318 \end_layout
19319
19320 \end_inset
19321
19322
19323 \emph default
19324 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
19325  Set to 
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330 0
19331 \end_layout
19332
19333 \end_inset
19334
19335  if the float does not support this feature.
19336 \end_layout
19337
19338 \begin_layout Description
19339 \begin_inset Flex Code
19340 status collapsed
19341
19342 \begin_layout Plain Layout
19343 Extension
19344 \end_layout
19345
19346 \end_inset
19347
19348  [
19349 \begin_inset Flex Code
19350 status collapsed
19351
19352 \begin_layout Plain Layout
19353 string
19354 \end_layout
19355
19356 \end_inset
19357
19358 =
19359 \begin_inset Quotes erd
19360 \end_inset
19361
19362
19363 \begin_inset Quotes erd
19364 \end_inset
19365
19366 ] The file name extension of an auxiliary file for the list of figures (or whatever).
19367  \SpecialChar LaTeX
19368  writes the captions to this file.
19369 \end_layout
19370
19371 \begin_layout Description
19372 \begin_inset Flex Code
19373 status collapsed
19374
19375 \begin_layout Plain Layout
19376 GuiName
19377 \end_layout
19378
19379 \end_inset
19380
19381  [
19382 \begin_inset Flex Code
19383 status collapsed
19384
19385 \begin_layout Plain Layout
19386 string
19387 \end_layout
19388
19389 \end_inset
19390
19391 =
19392 \begin_inset Quotes erd
19393 \end_inset
19394
19395
19396 \begin_inset Quotes erd
19397 \end_inset
19398
19399 ] The string that will be used in the menus and also for the caption.
19400  This is translated to the current language if babel is used.
19401 \end_layout
19402
19403 \begin_layout Description
19404 \begin_inset Flex Code
19405 status collapsed
19406
19407 \begin_layout Plain Layout
19408 HTML*
19409 \end_layout
19410
19411 \end_inset
19412
19413  These tags control the XHTML output.
19414  See 
19415 \begin_inset CommandInset ref
19416 LatexCommand ref
19417 reference "sec:Tags-for-XHTML"
19418 nolink "false"
19419
19420 \end_inset
19421
19422 .
19423 \end_layout
19424
19425 \begin_layout Description
19426 \begin_inset Flex Code
19427 status collapsed
19428
19429 \begin_layout Plain Layout
19430 IsPredefined
19431 \end_layout
19432
19433 \end_inset
19434
19435  [
19436 \emph on
19437
19438 \begin_inset Flex Code
19439 status collapsed
19440
19441 \begin_layout Plain Layout
19442 0
19443 \end_layout
19444
19445 \end_inset
19446
19447
19448 \emph default
19449 ,
19450 \begin_inset space \thinspace{}
19451 \end_inset
19452
19453
19454 \begin_inset Flex Code
19455 status collapsed
19456
19457 \begin_layout Plain Layout
19458 1
19459 \end_layout
19460
19461 \end_inset
19462
19463 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
19464  package 
19465 \begin_inset Flex Code
19466 status collapsed
19467
19468 \begin_layout Plain Layout
19469 float
19470 \end_layout
19471
19472 \end_inset
19473
19474  needs to be loaded to define it on-the-fly.
19475  The default is 
19476 \begin_inset Flex Code
19477 status collapsed
19478
19479 \begin_layout Plain Layout
19480 0
19481 \end_layout
19482
19483 \end_inset
19484
19485 ,
19486  which means:
19487  
19488 \begin_inset Flex Code
19489 status collapsed
19490
19491 \begin_layout Plain Layout
19492 float
19493 \end_layout
19494
19495 \end_inset
19496
19497  is used.
19498  It should be set to 
19499 \begin_inset Flex Code
19500 status collapsed
19501
19502 \begin_layout Plain Layout
19503 1
19504 \end_layout
19505
19506 \end_inset
19507
19508  if the float is already defined by the \SpecialChar LaTeX
19509  document class.
19510 \end_layout
19511
19512 \begin_layout Description
19513 \begin_inset Flex Code
19514 status collapsed
19515
19516 \begin_layout Plain Layout
19517 ListCommand
19518 \end_layout
19519
19520 \end_inset
19521
19522  [
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 string
19528 \end_layout
19529
19530 \end_inset
19531
19532 =
19533 \begin_inset Quotes erd
19534 \end_inset
19535
19536
19537 \begin_inset Quotes erd
19538 \end_inset
19539
19540 ] The command used to generate a list of floats of this type;
19541  the leading `
19542 \backslash
19543 ' must be omitted.
19544  This 
19545 \emph on
19546 must
19547 \emph default
19548  be given if 
19549 \begin_inset Flex Code
19550 status collapsed
19551
19552 \begin_layout Plain Layout
19553 UsesFloatPkg
19554 \end_layout
19555
19556 \end_inset
19557
19558  is false,
19559  since there is no standard way to generate this command.
19560  It is ignored if 
19561 \begin_inset Flex Code
19562 status collapsed
19563
19564 \begin_layout Plain Layout
19565 UsesFloatPkg
19566 \end_layout
19567
19568 \end_inset
19569
19570  is true,
19571  since in that case there is a standard way to define the command.
19572 \end_layout
19573
19574 \begin_layout Description
19575 \begin_inset Flex Code
19576 status collapsed
19577
19578 \begin_layout Plain Layout
19579 ListName
19580 \end_layout
19581
19582 \end_inset
19583
19584  [
19585 \begin_inset Flex Code
19586 status collapsed
19587
19588 \begin_layout Plain Layout
19589 string
19590 \end_layout
19591
19592 \end_inset
19593
19594 =
19595 \begin_inset Quotes erd
19596 \end_inset
19597
19598
19599 \begin_inset Quotes erd
19600 \end_inset
19601
19602 ] A title for a list of floats of this kind (list of figures,
19603  tables,
19604  or whatever).
19605  It is used for the screen label within \SpecialChar LyX
19606 ,
19607  it is used by \SpecialChar LaTeX
19608  for the title and it is used as the title in the XHTML output.
19609  It will be translated to the document language.
19610 \end_layout
19611
19612 \begin_layout Description
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 NumberWithin
19618 \end_layout
19619
19620 \end_inset
19621
19622  [
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 string
19628 \end_layout
19629
19630 \end_inset
19631
19632 =
19633 \begin_inset Quotes erd
19634 \end_inset
19635
19636
19637 \begin_inset Quotes erd
19638 \end_inset
19639
19640 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
19641  For example,
19642  if 
19643 \begin_inset Flex Code
19644 status collapsed
19645
19646 \begin_layout Plain Layout
19647 NumberWithin
19648 \end_layout
19649
19650 \end_inset
19651
19652  is set to 
19653 \begin_inset Quotes eld
19654 \end_inset
19655
19656
19657 \begin_inset Flex Code
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661 chapter
19662 \end_layout
19663
19664 \end_inset
19665
19666
19667 \begin_inset Quotes erd
19668 \end_inset
19669
19670 ,
19671  the floats will be numbered within chapters.
19672  
19673 \end_layout
19674
19675 \begin_layout Description
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 Placement
19681 \end_layout
19682
19683 \end_inset
19684
19685  [
19686 \begin_inset Flex Code
19687 status collapsed
19688
19689 \begin_layout Plain Layout
19690 string
19691 \end_layout
19692
19693 \end_inset
19694
19695 =
19696 \begin_inset Quotes erd
19697 \end_inset
19698
19699
19700 \begin_inset Quotes erd
19701 \end_inset
19702
19703 ] The default placement for the given class of floats.
19704  The string should be as in standard \SpecialChar LaTeX
19705 :
19706  
19707 \begin_inset Flex Code
19708 status collapsed
19709
19710 \begin_layout Plain Layout
19711 t
19712 \end_layout
19713
19714 \end_inset
19715
19716 ,
19717  
19718 \begin_inset Flex Code
19719 status collapsed
19720
19721 \begin_layout Plain Layout
19722 b
19723 \end_layout
19724
19725 \end_inset
19726
19727 ,
19728  
19729 \begin_inset Flex Code
19730 status collapsed
19731
19732 \begin_layout Plain Layout
19733 p
19734 \end_layout
19735
19736 \end_inset
19737
19738  and 
19739 \begin_inset Flex Code
19740 status collapsed
19741
19742 \begin_layout Plain Layout
19743 h
19744 \end_layout
19745
19746 \end_inset
19747
19748  for top,
19749  bottom,
19750  page,
19751  and here,
19752  respectively.
19753 \begin_inset Foot
19754 status collapsed
19755
19756 \begin_layout Plain Layout
19757 Note that the order of these letters in the string is irrelevant,
19758  like in \SpecialChar LaTeX
19759 .
19760 \end_layout
19761
19762 \end_inset
19763
19764  On top of that there is a new type,
19765  
19766 \begin_inset Flex Code
19767 status collapsed
19768
19769 \begin_layout Plain Layout
19770 H
19771 \end_layout
19772
19773 \end_inset
19774
19775 ,
19776  which does not really correspond to a float,
19777  since it means:
19778  put it 
19779 \begin_inset Quotes eld
19780 \end_inset
19781
19782 here
19783 \begin_inset Quotes erd
19784 \end_inset
19785
19786  and nowhere else.
19787  Note however that the 
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792 H
19793 \end_layout
19794
19795 \end_inset
19796
19797  specifier is special and,
19798  because of implementation details,
19799  cannot be used in non-built in float types.
19800  If you do not understand what this means,
19801  just use 
19802 \begin_inset Quotes eld
19803 \end_inset
19804
19805
19806 \begin_inset Flex Code
19807 status collapsed
19808
19809 \begin_layout Plain Layout
19810 tbp
19811 \end_layout
19812
19813 \end_inset
19814
19815
19816 \begin_inset Quotes erd
19817 \end_inset
19818
19819 .
19820 \end_layout
19821
19822 \begin_layout Description
19823 \begin_inset Flex Code
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 RefPrefix
19828 \end_layout
19829
19830 \end_inset
19831
19832  [
19833 \begin_inset Flex Code
19834 status collapsed
19835
19836 \begin_layout Plain Layout
19837 string
19838 \end_layout
19839
19840 \end_inset
19841
19842 ] The prefix to use when creating labels referring to floats of this type.
19843  This allows the use of formatted references.
19844  Note that you can remove any 
19845 \begin_inset Flex Code
19846 status collapsed
19847
19848 \begin_layout Plain Layout
19849 RefPrefix
19850 \end_layout
19851
19852 \end_inset
19853
19854  set by a copied style by using the special value 
19855 \begin_inset Quotes eld
19856 \end_inset
19857
19858 OFF
19859 \begin_inset Quotes erd
19860 \end_inset
19861
19862 ,
19863  which must be all caps.
19864 \change_inserted -712698321 1565605014
19865
19866 \end_layout
19867
19868 \begin_layout Description
19869
19870 \change_inserted -712698321 1565605014
19871 \begin_inset Flex Code
19872 status collapsed
19873
19874 \begin_layout Plain Layout
19875
19876 \change_inserted -712698321 1565605014
19877 Requires
19878 \change_unchanged
19879
19880 \end_layout
19881
19882 \end_inset
19883
19884  [
19885 \begin_inset Flex Code
19886 status collapsed
19887
19888 \begin_layout Plain Layout
19889
19890 \change_inserted -712698321 1565605014
19891 string
19892 \change_unchanged
19893
19894 \end_layout
19895
19896 \end_inset
19897
19898 ] As with paragraph styles,
19899  see 
19900 \begin_inset CommandInset ref
19901 LatexCommand ref
19902 reference "subsec:Paragraph-Styles"
19903 nolink "false"
19904
19905 \end_inset
19906
19907 .
19908 \change_unchanged
19909
19910 \end_layout
19911
19912 \begin_layout Description
19913 \begin_inset Flex Code
19914 status collapsed
19915
19916 \begin_layout Plain Layout
19917 Style
19918 \end_layout
19919
19920 \end_inset
19921
19922  [
19923 \begin_inset Flex Code
19924 status collapsed
19925
19926 \begin_layout Plain Layout
19927 string
19928 \end_layout
19929
19930 \end_inset
19931
19932 =
19933 \begin_inset Quotes erd
19934 \end_inset
19935
19936
19937 \begin_inset Quotes erd
19938 \end_inset
19939
19940 ] The style used when defining the float using 
19941 \begin_inset Flex Code
19942 status collapsed
19943
19944 \begin_layout Plain Layout
19945
19946 \backslash
19947 newfloat
19948 \end_layout
19949
19950 \end_inset
19951
19952 .
19953 \end_layout
19954
19955 \begin_layout Description
19956 \begin_inset Flex Code
19957 status collapsed
19958
19959 \begin_layout Plain Layout
19960 Type
19961 \end_layout
19962
19963 \end_inset
19964
19965  [
19966 \begin_inset Flex Code
19967 status collapsed
19968
19969 \begin_layout Plain Layout
19970 string
19971 \end_layout
19972
19973 \end_inset
19974
19975 =
19976 \begin_inset Quotes erd
19977 \end_inset
19978
19979
19980 \begin_inset Quotes erd
19981 \end_inset
19982
19983 ] The 
19984 \begin_inset Quotes eld
19985 \end_inset
19986
19987 type
19988 \begin_inset Quotes erd
19989 \end_inset
19990
19991  of the new class of floats,
19992  like program or algorithm.
19993  After the appropriate 
19994 \begin_inset Flex Code
19995 status collapsed
19996
19997 \begin_layout Plain Layout
19998
19999 \backslash
20000 newfloat
20001 \end_layout
20002
20003 \end_inset
20004
20005 ,
20006  commands such as 
20007 \begin_inset Flex Code
20008 status collapsed
20009
20010 \begin_layout Plain Layout
20011
20012 \backslash
20013 begin{program}
20014 \end_layout
20015
20016 \end_inset
20017
20018  or 
20019 \begin_inset Flex Code
20020 status collapsed
20021
20022 \begin_layout Plain Layout
20023
20024 \backslash
20025 end{algorithm*}
20026 \end_layout
20027
20028 \end_inset
20029
20030  will be available.
20031 \end_layout
20032
20033 \begin_layout Description
20034 \begin_inset Flex Code
20035 status collapsed
20036
20037 \begin_layout Plain Layout
20038 UsesFloatPkg
20039 \end_layout
20040
20041 \end_inset
20042
20043  [
20044 \begin_inset Flex Code
20045 status collapsed
20046
20047 \begin_layout Plain Layout
20048 0
20049 \end_layout
20050
20051 \end_inset
20052
20053 ,
20054 \begin_inset space \thinspace{}
20055 \end_inset
20056
20057
20058 \begin_inset Flex Code
20059 status collapsed
20060
20061 \begin_layout Plain Layout
20062
20063 \emph on
20064 1
20065 \end_layout
20066
20067 \end_inset
20068
20069 ] Specifies whether this float is defined using the \SpecialChar LaTeX
20070  package 
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 float
20076 \end_layout
20077
20078 \end_inset
20079
20080 ,
20081  either by the class file,
20082  another package or on-the-fly by \SpecialChar LyX
20083  itself.
20084 \end_layout
20085
20086 \begin_layout Standard
20087 Note that defining a float with type 
20088 \begin_inset Flex Code
20089 status collapsed
20090
20091 \begin_layout Plain Layout
20092
20093 \emph on
20094 type
20095 \end_layout
20096
20097 \end_inset
20098
20099  automatically defines the corresponding counter with name 
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104
20105 \emph on
20106 type
20107 \end_layout
20108
20109 \end_inset
20110
20111 .
20112 \end_layout
20113
20114 \begin_layout Subsection
20115 Flex insets and InsetLayout
20116 \begin_inset CommandInset label
20117 LatexCommand label
20118 name "subsec:Flex-insets-and"
20119
20120 \end_inset
20121
20122
20123 \end_layout
20124
20125 \begin_layout Standard
20126 Flex insets come in 
20127 \change_deleted 5863208 1594239511
20128 three
20129 \change_inserted 5863208 1594239512
20130 two
20131 \change_unchanged
20132  different kinds:
20133  
20134 \end_layout
20135
20136 \begin_layout Itemize
20137 character style (
20138 \begin_inset Flex Code
20139 status collapsed
20140
20141 \begin_layout Plain Layout
20142 CharStyle
20143 \end_layout
20144
20145 \end_inset
20146
20147 ):
20148  These define semantic markup corresponding to such \SpecialChar LaTeX
20149  commands as 
20150 \begin_inset Flex Code
20151 status collapsed
20152
20153 \begin_layout Plain Layout
20154
20155 \backslash
20156 noun
20157 \end_layout
20158
20159 \end_inset
20160
20161  and 
20162 \begin_inset Flex Code
20163 status collapsed
20164
20165 \begin_layout Plain Layout
20166
20167 \backslash
20168 code
20169 \end_layout
20170
20171 \end_inset
20172
20173 .
20174 \end_layout
20175
20176 \begin_layout Itemize
20177 user custom (
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 Custom
20183 \end_layout
20184
20185 \end_inset
20186
20187 ):
20188  These can be used to define custom collapsible insets,
20189  similar to \SpecialChar TeX
20190  code,
20191  footnote,
20192  and the like.
20193  An obvious example is an endnote inset,
20194  which is defined in the 
20195 \begin_inset Flex Code
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 endnote
20200 \end_layout
20201
20202 \end_inset
20203
20204  module.
20205 \end_layout
20206
20207 \begin_layout Itemize
20208
20209 \change_deleted 5863208 1594239528
20210 XML elements (
20211 \begin_inset Flex Code
20212 status collapsed
20213
20214 \begin_layout Plain Layout
20215 Element
20216 \end_layout
20217
20218 \end_inset
20219
20220 ):
20221  For use with DocBook classes.
20222 \change_unchanged
20223
20224 \end_layout
20225
20226 \begin_layout Standard
20227 Flex insets are defined using the 
20228 \begin_inset Flex Code
20229 status collapsed
20230
20231 \begin_layout Plain Layout
20232 InsetLayout
20233 \end_layout
20234
20235 \end_inset
20236
20237  tag,
20238  which shall be explained in a moment.
20239 \end_layout
20240
20241 \begin_layout Standard
20242 The 
20243 \begin_inset Flex Code
20244 status collapsed
20245
20246 \begin_layout Plain Layout
20247 InsetLayout
20248 \end_layout
20249
20250 \end_inset
20251
20252  tag also serves another function:
20253  It can be used to customize the general layout of many different types of insets.
20254  Currently,
20255  
20256 \begin_inset Flex Code
20257 status collapsed
20258
20259 \begin_layout Plain Layout
20260 InsetLayout
20261 \end_layout
20262
20263 \end_inset
20264
20265  can be used to customize the layout parameters for footnotes,
20266  marginal notes,
20267  note insets,
20268  \SpecialChar TeX
20269  code (ERT) insets,
20270  branches,
20271  listings,
20272  indexes,
20273  boxes,
20274  tables,
20275  algorithms,
20276  URLs,
20277  and captions,
20278  as well as to define Flex insets.
20279 \end_layout
20280
20281 \begin_layout Standard
20282 The 
20283 \begin_inset Flex Code
20284 status collapsed
20285
20286 \begin_layout Plain Layout
20287 InsetLayout
20288 \end_layout
20289
20290 \end_inset
20291
20292  definition must begin with a line of the form:
20293 \end_layout
20294
20295 \begin_layout LyX-Code
20296 InsetLayout <type>
20297 \end_layout
20298
20299 \begin_layout Standard
20300 Here 
20301 \begin_inset Flex Code
20302 status collapsed
20303
20304 \begin_layout Plain Layout
20305 <Type>
20306 \end_layout
20307
20308 \end_inset
20309
20310  indicates the inset whose layout is being defined,
20311  and here there are four cases.
20312 \end_layout
20313
20314 \begin_layout Enumerate
20315 The layout for a pre-existing inset is being modified.
20316  In this case,
20317  can be 
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 <Type>
20323 \end_layout
20324
20325 \end_inset
20326
20327  any one of the following:
20328  
20329 \begin_inset Flex Code
20330 status collapsed
20331
20332 \begin_layout Plain Layout
20333 Algorithm
20334 \end_layout
20335
20336 \end_inset
20337
20338 ,
20339  
20340 \begin_inset Flex Code
20341 status collapsed
20342
20343 \begin_layout Plain Layout
20344 Branch
20345 \end_layout
20346
20347 \end_inset
20348
20349 ,
20350  
20351 \begin_inset Flex Code
20352 status collapsed
20353
20354 \begin_layout Plain Layout
20355 Box
20356 \end_layout
20357
20358 \end_inset
20359
20360 ,
20361  
20362 \begin_inset Flex Code
20363 status collapsed
20364
20365 \begin_layout Plain Layout
20366 Box:shaded
20367 \end_layout
20368
20369 \end_inset
20370
20371 ,
20372  
20373 \begin_inset Flex Code
20374 status collapsed
20375
20376 \begin_layout Plain Layout
20377 Caption:Standard
20378 \end_layout
20379
20380 \end_inset
20381
20382 ,
20383  
20384 \begin_inset Flex Code
20385 status collapsed
20386
20387 \begin_layout Plain Layout
20388 ERT
20389 \end_layout
20390
20391 \end_inset
20392
20393 ,
20394  
20395 \begin_inset Flex Code
20396 status collapsed
20397
20398 \begin_layout Plain Layout
20399 Figure
20400 \end_layout
20401
20402 \end_inset
20403
20404 ,
20405  
20406 \begin_inset Flex Code
20407 status collapsed
20408
20409 \begin_layout Plain Layout
20410 Foot
20411 \end_layout
20412
20413 \end_inset
20414
20415 ,
20416  
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421 Index
20422 \end_layout
20423
20424 \end_inset
20425
20426 ,
20427  
20428 \begin_inset Flex Code
20429 status collapsed
20430
20431 \begin_layout Plain Layout
20432 Info
20433 \end_layout
20434
20435 \end_inset
20436
20437 ,
20438  
20439 \begin_inset Flex Code
20440 status collapsed
20441
20442 \begin_layout Plain Layout
20443 Info:menu
20444 \end_layout
20445
20446 \end_inset
20447
20448 ,
20449  
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 Info:shortcut
20455 \end_layout
20456
20457 \end_inset
20458
20459 ,
20460  
20461 \begin_inset Flex Code
20462 status collapsed
20463
20464 \begin_layout Plain Layout
20465 Info:shortcuts
20466 \end_layout
20467
20468 \end_inset
20469
20470 ,
20471  
20472 \begin_inset Flex Code
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476 Listings
20477 \end_layout
20478
20479 \end_inset
20480
20481 ,
20482  
20483 \begin_inset Flex Code
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487 Marginal
20488 \end_layout
20489
20490 \end_inset
20491
20492 ,
20493  
20494 \begin_inset Flex Code
20495 status collapsed
20496
20497 \begin_layout Plain Layout
20498 Note:Comment
20499 \end_layout
20500
20501 \end_inset
20502
20503 ,
20504  
20505 \begin_inset Flex Code
20506 status collapsed
20507
20508 \begin_layout Plain Layout
20509 Note:Note
20510 \end_layout
20511
20512 \end_inset
20513
20514 ,
20515  
20516 \begin_inset Flex Code
20517 status collapsed
20518
20519 \begin_layout Plain Layout
20520 Note:Greyedout
20521 \end_layout
20522
20523 \end_inset
20524
20525 ,
20526  
20527 \begin_inset Flex Code
20528 status collapsed
20529
20530 \begin_layout Plain Layout
20531 Table
20532 \end_layout
20533
20534 \end_inset
20535
20536 ,
20537  or 
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 URL
20543 \end_layout
20544
20545 \end_inset
20546
20547 .
20548 \end_layout
20549
20550 \begin_layout Enumerate
20551 The layout for a Flex inset is being defined.
20552  In this case,
20553  
20554 \begin_inset Flex Code
20555 status collapsed
20556
20557 \begin_layout Plain Layout
20558 <Type>
20559 \end_layout
20560
20561 \end_inset
20562
20563  must be of the form 
20564 \begin_inset Quotes eld
20565 \end_inset
20566
20567
20568 \begin_inset Flex Code
20569 status collapsed
20570
20571 \begin_layout Plain Layout
20572 Flex:<name>
20573 \end_layout
20574
20575 \end_inset
20576
20577
20578 \begin_inset Quotes erd
20579 \end_inset
20580
20581 ,
20582  where 
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 name
20588 \end_layout
20589
20590 \end_inset
20591
20592  may be any valid identifier not used by a pre-existing Flex inset.
20593  The identifier may include spaces,
20594  but in that case the whole thing must be wrapped in quotes.
20595  Note that the definition of a flex inset 
20596 \emph on
20597 must 
20598 \emph default
20599 also include a 
20600 \begin_inset Flex Code
20601 status collapsed
20602
20603 \begin_layout Plain Layout
20604 LyXType
20605 \end_layout
20606
20607 \end_inset
20608
20609  entry,
20610  declaring which type of inset it defines.
20611 \end_layout
20612
20613 \begin_layout Enumerate
20614 The layout for user specific branch is being defined.
20615  In this case,
20616  
20617 \begin_inset Flex Code
20618 status collapsed
20619
20620 \begin_layout Plain Layout
20621 <Type>
20622 \end_layout
20623
20624 \end_inset
20625
20626  must be of the form 
20627 \begin_inset Quotes eld
20628 \end_inset
20629
20630
20631 \begin_inset Flex Code
20632 status collapsed
20633
20634 \begin_layout Plain Layout
20635 Branch:<name>
20636 \end_layout
20637
20638 \end_inset
20639
20640
20641 \begin_inset Quotes erd
20642 \end_inset
20643
20644 ,
20645  where 
20646 \begin_inset Flex Code
20647 status collapsed
20648
20649 \begin_layout Plain Layout
20650 name
20651 \end_layout
20652
20653 \end_inset
20654
20655  may be any valid identifier of branch defined in user's document.
20656  The identifier may include spaces,
20657  but in that case the whole thing must be wrapped in quotes.
20658  The main purpose of this feature is to allow \SpecialChar LaTeX
20659  wrapping around specific branches as user needs.
20660 \end_layout
20661
20662 \begin_layout Enumerate
20663 The layout of a user (or class) specific caption is being defined.
20664  In this case,
20665  
20666 \begin_inset Flex Code
20667 status collapsed
20668
20669 \begin_layout Plain Layout
20670 <Type>
20671 \end_layout
20672
20673 \end_inset
20674
20675  must be of the form 
20676 \begin_inset Quotes eld
20677 \end_inset
20678
20679
20680 \begin_inset Flex Code
20681 status collapsed
20682
20683 \begin_layout Plain Layout
20684 Caption:<name>
20685 \end_layout
20686
20687 \end_inset
20688
20689
20690 \begin_inset Quotes erd
20691 \end_inset
20692
20693 ,
20694  where 
20695 \begin_inset Flex Code
20696 status collapsed
20697
20698 \begin_layout Plain Layout
20699 name
20700 \end_layout
20701
20702 \end_inset
20703
20704  specifies the name of the caption as it appears in the menu.
20705  Have a look at the standard caption (
20706 \begin_inset Flex Code
20707 status collapsed
20708
20709 \begin_layout Plain Layout
20710 Caption:Standard
20711 \end_layout
20712
20713 \end_inset
20714
20715 ),
20716  the specific captions of the KOMA-Script classes (
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 Caption:Above
20722 \end_layout
20723
20724 \end_inset
20725
20726 ,
20727  
20728 \begin_inset Flex Code
20729 status collapsed
20730
20731 \begin_layout Plain Layout
20732 Caption:Below
20733 \end_layout
20734
20735 \end_inset
20736
20737 ) or the module 
20738 \family sans
20739 Multilingual
20740 \begin_inset space ~
20741 \end_inset
20742
20743 Captions
20744 \begin_inset Newline linebreak
20745 \end_inset
20746
20747
20748 \family default
20749 (
20750 \begin_inset Flex Code
20751 status collapsed
20752
20753 \begin_layout Plain Layout
20754 Caption:Bicaption
20755 \end_layout
20756
20757 \end_inset
20758
20759 ) for applications.
20760 \end_layout
20761
20762 \begin_layout Standard
20763 The 
20764 \begin_inset Flex Code
20765 status collapsed
20766
20767 \begin_layout Plain Layout
20768 InsetLayout
20769 \end_layout
20770
20771 \end_inset
20772
20773  definition can contain the following entries:
20774 \end_layout
20775
20776 \begin_layout Description
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 AddToToc
20782 \end_layout
20783
20784 \end_inset
20785
20786  [
20787 \begin_inset Flex Code
20788 status collapsed
20789
20790 \begin_layout Plain Layout
20791 string
20792 \end_layout
20793
20794 \end_inset
20795
20796 =""] This inset will appear in the table of contents of the given type.
20797  An empty string disables.
20798  See also the OutlinerName and the IsTocCaption commands.
20799  This is only implemented for Flex insets.
20800  Default:
20801  disabled.
20802 \end_layout
20803
20804 \begin_layout Description
20805 \begin_inset Flex Code
20806 status collapsed
20807
20808 \begin_layout Plain Layout
20809 Argument
20810 \end_layout
20811
20812 \end_inset
20813
20814  [
20815 \begin_inset Flex Code
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819 int
20820 \end_layout
20821
20822 \end_inset
20823
20824 ] Defines argument number of a command\SpecialChar breakableslash
20825 environment associated with the current layout.
20826  The definition must end with 
20827 \begin_inset Flex Code
20828 status collapsed
20829
20830 \begin_layout Plain Layout
20831 EndArgument
20832 \end_layout
20833
20834 \end_inset
20835
20836 .
20837  See 
20838 \change_inserted -584632292 1615846847
20839
20840 \begin_inset CommandInset ref
20841 LatexCommand ref
20842 reference "subsec:Arguments"
20843 plural "false"
20844 caps "false"
20845 noprefix "false"
20846 nolink "false"
20847
20848 \end_inset
20849
20850
20851 \change_deleted -584632292 1615846847
20852
20853 \begin_inset CommandInset ref
20854 LatexCommand ref
20855 reference "subsec:Paragraph-Styles"
20856 nolink "false"
20857
20858 \end_inset
20859
20860
20861 \change_unchanged
20862  for 
20863 \change_deleted -584632292 1615846902
20864 details
20865 \change_inserted -584632292 1615846906
20866 more information
20867 \change_unchanged
20868 .
20869 \end_layout
20870
20871 \begin_layout Description
20872 \begin_inset Flex Code
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 BabelPreamble
20877 \end_layout
20878
20879 \end_inset
20880
20881  Preamble for changing language commands;
20882  see 
20883 \begin_inset CommandInset ref
20884 LatexCommand ref
20885 reference "subsec:I18n"
20886 nolink "false"
20887
20888 \end_inset
20889
20890 .
20891 \end_layout
20892
20893 \begin_layout Description
20894 \begin_inset Flex Code
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898 BgColor
20899 \end_layout
20900
20901 \end_inset
20902
20903  [
20904 \begin_inset Flex Code
20905 status collapsed
20906
20907 \begin_layout Plain Layout
20908 <name>
20909 \end_layout
20910
20911 \end_inset
20912
20913 ] The color for the inset's background.
20914  See 
20915 \begin_inset CommandInset ref
20916 LatexCommand ref
20917 reference "chap:Names-of-colors"
20918 nolink "false"
20919
20920 \end_inset
20921
20922  for a list of the available color names.
20923 \end_layout
20924
20925 \begin_layout Description
20926 \begin_inset Flex Code
20927 status collapsed
20928
20929 \begin_layout Plain Layout
20930 ContentAsLabel
20931 \end_layout
20932
20933 \end_inset
20934
20935  [
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940
20941 \emph on
20942 0
20943 \end_layout
20944
20945 \end_inset
20946
20947 ,
20948 \begin_inset space \thinspace{}
20949 \end_inset
20950
20951
20952 \begin_inset Flex Code
20953 status collapsed
20954
20955 \begin_layout Plain Layout
20956 1
20957 \end_layout
20958
20959 \end_inset
20960
20961 ] Whether to use the content of the inset as the label,
20962  when the inset is closed.
20963  Default is false.
20964 \end_layout
20965
20966 \begin_layout Description
20967 \begin_inset Flex Code
20968 status collapsed
20969
20970 \begin_layout Plain Layout
20971 CopyStyle
20972 \end_layout
20973
20974 \end_inset
20975
20976  [
20977 \begin_inset Flex Code
20978 status collapsed
20979
20980 \begin_layout Plain Layout
20981 <type>
20982 \end_layout
20983
20984 \end_inset
20985
20986 ] As with paragraph styles,
20987  see 
20988 \begin_inset CommandInset ref
20989 LatexCommand ref
20990 reference "subsec:Paragraph-Styles"
20991 nolink "false"
20992
20993 \end_inset
20994
20995 .
20996  Note that you need to specify the complete type,
20997  e.
20998 \begin_inset space \thinspace{}
20999 \end_inset
21000
21001 g.
21002 \begin_inset space ~
21003 \end_inset
21004
21005
21006 \begin_inset Flex Code
21007 status collapsed
21008
21009 \begin_layout Plain Layout
21010 CopyStyle Flex:<name>
21011 \end_layout
21012
21013 \end_inset
21014
21015 .
21016 \end_layout
21017
21018 \begin_layout Description
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023 CustomPars
21024 \end_layout
21025
21026 \end_inset
21027
21028  [
21029 \begin_inset Flex Code
21030 status collapsed
21031
21032 \begin_layout Plain Layout
21033
21034 \emph on
21035 0
21036 \end_layout
21037
21038 \end_inset
21039
21040 ,
21041 \begin_inset space \thinspace{}
21042 \end_inset
21043
21044
21045 \begin_inset Flex Code
21046 status collapsed
21047
21048 \begin_layout Plain Layout
21049 1
21050 \end_layout
21051
21052 \end_inset
21053
21054 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
21055 \end_layout
21056
21057 \begin_layout Description
21058 \begin_inset Flex Code
21059 status collapsed
21060
21061 \begin_layout Plain Layout
21062 Decoration
21063 \end_layout
21064
21065 \end_inset
21066
21067  can be 
21068 \begin_inset Flex Code
21069 status collapsed
21070
21071 \begin_layout Plain Layout
21072 Classic
21073 \end_layout
21074
21075 \end_inset
21076
21077 ,
21078  
21079 \begin_inset Flex Code
21080 status collapsed
21081
21082 \begin_layout Plain Layout
21083 Minimalistic
21084 \end_layout
21085
21086 \end_inset
21087
21088 ,
21089  or 
21090 \begin_inset Flex Code
21091 status collapsed
21092
21093 \begin_layout Plain Layout
21094 Conglomerate
21095 \end_layout
21096
21097 \end_inset
21098
21099 ,
21100  describing the rendering style used for the inset's frame and buttons.
21101  Footnotes generally use 
21102 \begin_inset Flex Code
21103 status collapsed
21104
21105 \begin_layout Plain Layout
21106 Classic
21107 \end_layout
21108
21109 \end_inset
21110
21111 ,
21112  ERT insets generally 
21113 \begin_inset Flex Code
21114 status collapsed
21115
21116 \begin_layout Plain Layout
21117 Minimalistic
21118 \end_layout
21119
21120 \end_inset
21121
21122 ,
21123  and character styles 
21124 \begin_inset Flex Code
21125 status collapsed
21126
21127 \begin_layout Plain Layout
21128 Conglomerate
21129 \end_layout
21130
21131 \end_inset
21132
21133 .
21134 \end_layout
21135
21136 \begin_layout Description
21137 \begin_inset Flex Code
21138 status collapsed
21139
21140 \begin_layout Plain Layout
21141 Display
21142 \end_layout
21143
21144 \end_inset
21145
21146  [
21147 \begin_inset Flex Code
21148 status collapsed
21149
21150 \begin_layout Plain Layout
21151 0
21152 \end_layout
21153
21154 \end_inset
21155
21156 ,
21157 \emph on
21158
21159 \begin_inset space \thinspace{}
21160 \end_inset
21161
21162
21163 \emph default
21164
21165 \begin_inset Flex Code
21166 status collapsed
21167
21168 \begin_layout Plain Layout
21169
21170 \emph on
21171 1
21172 \end_layout
21173
21174 \end_inset
21175
21176 ] Only useful if 
21177 \begin_inset Flex Code
21178 status collapsed
21179
21180 \begin_layout Plain Layout
21181 LatexType
21182 \end_layout
21183
21184 \end_inset
21185
21186  is 
21187 \begin_inset Flex Code
21188 status collapsed
21189
21190 \begin_layout Plain Layout
21191 Environment
21192 \end_layout
21193
21194 \end_inset
21195
21196 .
21197  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
21198  If set to false,
21199  it is supposed that the \SpecialChar LaTeX
21200  environment ignores white space (including one newline character) after the 
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205
21206 \backslash
21207 begin{
21208 \emph on
21209 LatexName
21210 \emph default
21211 }
21212 \end_layout
21213
21214 \end_inset
21215
21216  and 
21217 \begin_inset Flex Code
21218 status collapsed
21219
21220 \begin_layout Plain Layout
21221
21222 \backslash
21223 end{
21224 \emph on
21225 LatexName
21226 \emph default
21227 }
21228 \end_layout
21229
21230 \end_inset
21231
21232  tags.
21233  Default is true.
21234 \change_inserted 731793113 1538674858
21235
21236 \end_layout
21237
21238 \begin_layout Description
21239
21240 \change_inserted 731793113 1538674891
21241 \begin_inset Flex Code
21242 status open
21243
21244 \begin_layout Plain Layout
21245
21246 \change_inserted 731793113 1538674863
21247 EditExternal
21248 \change_unchanged
21249
21250 \end_layout
21251
21252 \end_inset
21253
21254  [
21255 \emph on
21256 0
21257 \emph default
21258 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
21259 \change_unchanged
21260
21261 \end_layout
21262
21263 \begin_layout Description
21264 \begin_inset Flex Code
21265 status collapsed
21266
21267 \begin_layout Plain Layout
21268 End
21269 \end_layout
21270
21271 \end_inset
21272
21273  Required at the end of the 
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278 InsetLayout
21279 \end_layout
21280
21281 \end_inset
21282
21283  declarations.
21284 \end_layout
21285
21286 \begin_layout Description
21287 \begin_inset Flex Code
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 Font
21292 \end_layout
21293
21294 \end_inset
21295
21296  The font used for both the text body 
21297 \emph on
21298 and
21299 \emph default
21300  the label.
21301  See 
21302 \begin_inset CommandInset ref
21303 LatexCommand ref
21304 reference "subsec:Font-description"
21305 nolink "false"
21306
21307 \end_inset
21308
21309 .
21310  Note that defining this font automatically defines the 
21311 \begin_inset Flex Code
21312 status collapsed
21313
21314 \begin_layout Plain Layout
21315 LabelFont
21316 \end_layout
21317
21318 \end_inset
21319
21320  to the same value,
21321  so define this first and define 
21322 \begin_inset Flex Code
21323 status collapsed
21324
21325 \begin_layout Plain Layout
21326 LabelFont
21327 \end_layout
21328
21329 \end_inset
21330
21331  later if you want them to be different.
21332 \end_layout
21333
21334 \begin_layout Description
21335 \begin_inset Flex Code
21336 status collapsed
21337
21338 \begin_layout Plain Layout
21339 FixedWidthPreambleEncoding
21340 \end_layout
21341
21342 \end_inset
21343
21344  [
21345 \begin_inset Flex Code
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349
21350 \emph on
21351 0
21352 \end_layout
21353
21354 \end_inset
21355
21356 ,
21357 \begin_inset space \thinspace{}
21358 \end_inset
21359
21360
21361 \begin_inset Flex Code
21362 status collapsed
21363
21364 \begin_layout Plain Layout
21365 1
21366 \end_layout
21367
21368 \end_inset
21369
21370 ] Force a fixed width encoding for the translated contents of 
21371 \begin_inset Flex Code
21372 status collapsed
21373
21374 \begin_layout Plain Layout
21375 BabelPreamble
21376 \end_layout
21377
21378 \end_inset
21379
21380  and 
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 LangPreamble
21386 \end_layout
21387
21388 \end_inset
21389
21390  code generated by this layout.
21391  This is needed for special \SpecialChar LaTeX
21392 -packages like 
21393 \family typewriter
21394 listings
21395 \family default
21396  that do not work with variable width encodings such as 
21397 \family sans
21398 utf8
21399 \family default
21400 .
21401  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
21402  backends such as Xe\SpecialChar TeX
21403  or Lua\SpecialChar TeX
21404  are used.
21405 \end_layout
21406
21407 \begin_layout Description
21408 \begin_inset Flex Code
21409 status collapsed
21410
21411 \begin_layout Plain Layout
21412 ForceLocalFontSwitch
21413 \end_layout
21414
21415 \end_inset
21416
21417  [
21418 \begin_inset Flex Code
21419 status collapsed
21420
21421 \begin_layout Plain Layout
21422
21423 \emph on
21424 0
21425 \end_layout
21426
21427 \end_inset
21428
21429 ,
21430 \begin_inset space \thinspace{}
21431 \end_inset
21432
21433
21434 \begin_inset Flex Code
21435 status collapsed
21436
21437 \begin_layout Plain Layout
21438 1
21439 \end_layout
21440
21441 \end_inset
21442
21443 ] When using babel,
21444  always use a local font switch (
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449
21450 \backslash
21451 foreignlanguage
21452 \end_layout
21453
21454 \end_inset
21455
21456 ),
21457  never a global one (such as 
21458 \begin_inset Flex Code
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462
21463 \backslash
21464 selectlanguage
21465 \end_layout
21466
21467 \end_inset
21468
21469 ).
21470 \end_layout
21471
21472 \begin_layout Description
21473 \begin_inset Flex Code
21474 status collapsed
21475
21476 \begin_layout Plain Layout
21477 ForceLTR
21478 \end_layout
21479
21480 \end_inset
21481
21482  [
21483 \begin_inset Flex Code
21484 status collapsed
21485
21486 \begin_layout Plain Layout
21487
21488 \emph on
21489 0
21490 \end_layout
21491
21492 \end_inset
21493
21494 ,
21495 \begin_inset space \thinspace{}
21496 \end_inset
21497
21498
21499 \begin_inset Flex Code
21500 status collapsed
21501
21502 \begin_layout Plain Layout
21503 1
21504 \end_layout
21505
21506 \end_inset
21507
21508 ] Force the 
21509 \begin_inset Quotes eld
21510 \end_inset
21511
21512 latex
21513 \begin_inset Quotes erd
21514 \end_inset
21515
21516  language,
21517  leading to Left-to-Right (Latin) output,
21518  e.
21519 \begin_inset space \thinspace{}
21520 \end_inset
21521
21522 g.
21523 \begin_inset space \space{}
21524 \end_inset
21525
21526 in \SpecialChar TeX
21527  code or URL.
21528  A kludge.
21529 \end_layout
21530
21531 \begin_layout Description
21532 \begin_inset Flex Code
21533 status collapsed
21534
21535 \begin_layout Plain Layout
21536 ForceOwnlines
21537 \end_layout
21538
21539 \end_inset
21540
21541  [
21542 \begin_inset Flex Code
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546
21547 \emph on
21548 0
21549 \end_layout
21550
21551 \end_inset
21552
21553 ,
21554 \begin_inset space \thinspace{}
21555 \end_inset
21556
21557
21558 \begin_inset Flex Code
21559 status collapsed
21560
21561 \begin_layout Plain Layout
21562 1
21563 \end_layout
21564
21565 \end_inset
21566
21567 ] Force a line break in the \SpecialChar LaTeX
21568  output before the inset starts and after the inset ends.
21569  This assures the inset itself is output on its own lines,
21570  for parsing purposes.
21571 \end_layout
21572
21573 \begin_layout Description
21574 \begin_inset Flex Code
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578 ForcePlain
21579 \end_layout
21580
21581 \end_inset
21582
21583  [
21584 \begin_inset Flex Code
21585 status collapsed
21586
21587 \begin_layout Plain Layout
21588
21589 \emph on
21590 0
21591 \end_layout
21592
21593 \end_inset
21594
21595 ,
21596 \begin_inset space \thinspace{}
21597 \end_inset
21598
21599
21600 \begin_inset Flex Code
21601 status collapsed
21602
21603 \begin_layout Plain Layout
21604 1
21605 \end_layout
21606
21607 \end_inset
21608
21609 ] Indicates whether the 
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 PlainLayout
21615 \end_layout
21616
21617 \end_inset
21618
21619  should be used or,
21620  instead,
21621  the user can change the paragraph style used in the inset.
21622  Default is false.
21623 \end_layout
21624
21625 \begin_layout Description
21626 \begin_inset Flex Code
21627 status collapsed
21628
21629 \begin_layout Plain Layout
21630 FreeSpacing
21631 \end_layout
21632
21633 \end_inset
21634
21635  [
21636 \begin_inset Flex Code
21637 status collapsed
21638
21639 \begin_layout Plain Layout
21640
21641 \emph on
21642 0
21643 \end_layout
21644
21645 \end_inset
21646
21647 ,
21648 \begin_inset space \thinspace{}
21649 \end_inset
21650
21651
21652 \begin_inset Flex Code
21653 status collapsed
21654
21655 \begin_layout Plain Layout
21656 1
21657 \end_layout
21658
21659 \end_inset
21660
21661 ] As with paragraph styles,
21662  see 
21663 \begin_inset CommandInset ref
21664 LatexCommand ref
21665 reference "subsec:Paragraph-Styles"
21666 nolink "false"
21667
21668 \end_inset
21669
21670 .
21671 \end_layout
21672
21673 \begin_layout Description
21674 \begin_inset Flex Code
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 HTML*
21679 \end_layout
21680
21681 \end_inset
21682
21683  These tags control the XHTML output.
21684  See 
21685 \begin_inset CommandInset ref
21686 LatexCommand ref
21687 reference "sec:Tags-for-XHTML"
21688 nolink "false"
21689
21690 \end_inset
21691
21692 .
21693 \end_layout
21694
21695 \begin_layout Description
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700 InToc
21701 \end_layout
21702
21703 \end_inset
21704
21705  [
21706 \begin_inset Flex Code
21707 status collapsed
21708
21709 \begin_layout Plain Layout
21710
21711 \emph on
21712 0
21713 \end_layout
21714
21715 \end_inset
21716
21717 ,
21718 \begin_inset space \thinspace{}
21719 \end_inset
21720
21721
21722 \begin_inset Flex Code
21723 status collapsed
21724
21725 \begin_layout Plain Layout
21726 1
21727 \end_layout
21728
21729 \end_inset
21730
21731 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
21732  regardless of the AddToToc setting.
21733  One would not,
21734  for example,
21735  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
21736  but one would normally want the content of a character style displayed.
21737  Default is false:
21738  not to include.
21739 \end_layout
21740
21741 \begin_layout Description
21742 \begin_inset Flex Code
21743 status collapsed
21744
21745 \begin_layout Plain Layout
21746 IsTocCaption
21747 \end_layout
21748
21749 \end_inset
21750
21751  [
21752 \begin_inset Flex Code
21753 status collapsed
21754
21755 \begin_layout Plain Layout
21756
21757 \emph on
21758 0
21759 \end_layout
21760
21761 \end_inset
21762
21763 ,
21764 \begin_inset space \thinspace{}
21765 \end_inset
21766
21767
21768 \begin_inset Flex Code
21769 status collapsed
21770
21771 \begin_layout Plain Layout
21772 1
21773 \end_layout
21774
21775 \end_inset
21776
21777 ] If this is set to 1 and AddToToc is enabled,
21778  the inset adds a summary of its contents in its item in the table of contents.
21779  Otherwise,
21780  only the label appears.
21781 \end_layout
21782
21783 \begin_layout Description
21784 \begin_inset Flex Code
21785 status collapsed
21786
21787 \begin_layout Plain Layout
21788 KeepEmpty
21789 \end_layout
21790
21791 \end_inset
21792
21793  [
21794 \emph on
21795
21796 \begin_inset Flex Code
21797 status collapsed
21798
21799 \begin_layout Plain Layout
21800 0
21801 \end_layout
21802
21803 \end_inset
21804
21805
21806 \emph default
21807 ,
21808 \begin_inset space \thinspace{}
21809 \end_inset
21810
21811
21812 \begin_inset Flex Code
21813 status collapsed
21814
21815 \begin_layout Plain Layout
21816 1
21817 \end_layout
21818
21819 \end_inset
21820
21821 ] As with paragraph styles,
21822  see 
21823 \begin_inset CommandInset ref
21824 LatexCommand ref
21825 reference "subsec:Paragraph-Styles"
21826 nolink "false"
21827
21828 \end_inset
21829
21830 .
21831 \end_layout
21832
21833 \begin_layout Description
21834 \begin_inset Flex Code
21835 status collapsed
21836
21837 \begin_layout Plain Layout
21838 LabelFont
21839 \end_layout
21840
21841 \end_inset
21842
21843  The font used for the label.
21844  See 
21845 \begin_inset CommandInset ref
21846 LatexCommand ref
21847 reference "subsec:Font-description"
21848 nolink "false"
21849
21850 \end_inset
21851
21852 .
21853  Note that this definition can never appear before 
21854 \begin_inset Flex Code
21855 status collapsed
21856
21857 \begin_layout Plain Layout
21858 Font
21859 \end_layout
21860
21861 \end_inset
21862
21863 ,
21864  lest it be ineffective.
21865 \end_layout
21866
21867 \begin_layout Description
21868 \begin_inset Flex Code
21869 status collapsed
21870
21871 \begin_layout Plain Layout
21872 LabelString
21873 \end_layout
21874
21875 \end_inset
21876
21877  [
21878 \begin_inset Flex Code
21879 status collapsed
21880
21881 \begin_layout Plain Layout
21882 string
21883 \end_layout
21884
21885 \end_inset
21886
21887 =
21888 \begin_inset Quotes erd
21889 \end_inset
21890
21891
21892 \begin_inset Quotes erd
21893 \end_inset
21894
21895 ] What will be displayed on the button or elsewhere as the inset label.
21896  Some inset types (
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901 \SpecialChar TeX
21902  code
21903 \end_layout
21904
21905 \end_inset
21906
21907  and 
21908 \begin_inset Flex Code
21909 status collapsed
21910
21911 \begin_layout Plain Layout
21912 Branch
21913 \end_layout
21914
21915 \end_inset
21916
21917 ) modify this label on the fly.
21918 \end_layout
21919
21920 \begin_layout Description
21921 \begin_inset Flex Code
21922 status collapsed
21923
21924 \begin_layout Plain Layout
21925 LangPreamble
21926 \end_layout
21927
21928 \end_inset
21929
21930  Language dependent preamble;
21931  see 
21932 \begin_inset CommandInset ref
21933 LatexCommand ref
21934 reference "subsec:I18n"
21935 nolink "false"
21936
21937 \end_inset
21938
21939 .
21940 \end_layout
21941
21942 \begin_layout Description
21943 \begin_inset Flex Code
21944 status collapsed
21945
21946 \begin_layout Plain Layout
21947 LatexName
21948 \end_layout
21949
21950 \end_inset
21951
21952  [
21953 \begin_inset Flex Code
21954 status collapsed
21955
21956 \begin_layout Plain Layout
21957 <name>
21958 \end_layout
21959
21960 \end_inset
21961
21962 ] The name of the corresponding \SpecialChar LaTeX
21963  stuff.
21964  Either the environment or command name.
21965 \end_layout
21966
21967 \begin_layout Description
21968 \begin_inset Flex Code
21969 status collapsed
21970
21971 \begin_layout Plain Layout
21972 LatexParam
21973 \end_layout
21974
21975 \end_inset
21976
21977  [
21978 \begin_inset Flex Code
21979 status collapsed
21980
21981 \begin_layout Plain Layout
21982 <parameter>
21983 \end_layout
21984
21985 \end_inset
21986
21987 ] The optional parameter for the corresponding 
21988 \begin_inset Flex Code
21989 status collapsed
21990
21991 \begin_layout Plain Layout
21992 LatexName
21993 \end_layout
21994
21995 \end_inset
21996
21997  stuff,
21998  including possible bracket pairs like 
21999 \begin_inset Flex Code
22000 status collapsed
22001
22002 \begin_layout Plain Layout
22003 []
22004 \end_layout
22005
22006 \end_inset
22007
22008 .
22009  This parameter cannot be changed from within \SpecialChar LyX
22010  (use 
22011 \begin_inset Flex Code
22012 status collapsed
22013
22014 \begin_layout Plain Layout
22015 Argument
22016 \end_layout
22017
22018 \end_inset
22019
22020  for customizable parameters).
22021  It will be output as is after all \SpecialChar LaTeX
22022  
22023 \begin_inset Flex Code
22024 status collapsed
22025
22026 \begin_layout Plain Layout
22027 Argument
22028 \end_layout
22029
22030 \end_inset
22031
22032 s.
22033 \end_layout
22034
22035 \begin_layout Description
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 LatexType
22041 \end_layout
22042
22043 \end_inset
22044
22045  [
22046 \begin_inset Flex Code
22047 status collapsed
22048
22049 \begin_layout Plain Layout
22050 Command,
22051  Environment,
22052  None
22053 \end_layout
22054
22055 \end_inset
22056
22057 ] How the style should be translated into \SpecialChar LaTeX
22058 .
22059 \begin_inset Foot
22060 status collapsed
22061
22062 \begin_layout Plain Layout
22063 \begin_inset Flex Code
22064 status collapsed
22065
22066 \begin_layout Plain Layout
22067 LatexType
22068 \end_layout
22069
22070 \end_inset
22071
22072  is perhaps a bit misleading,
22073  since these rules apply to SGML classes too.
22074  Visit the SGML class files for specific examples.
22075 \end_layout
22076
22077 \end_inset
22078
22079
22080 \end_layout
22081
22082 \begin_deeper
22083 \begin_layout Description
22084 \begin_inset Flex Code
22085 status collapsed
22086
22087 \begin_layout Plain Layout
22088 None
22089 \end_layout
22090
22091 \end_inset
22092
22093  means nothing special
22094 \end_layout
22095
22096 \begin_layout Description
22097 \begin_inset Flex Code
22098 status collapsed
22099
22100 \begin_layout Plain Layout
22101 Command
22102 \end_layout
22103
22104 \end_inset
22105
22106  means 
22107 \begin_inset Flex Code
22108 status collapsed
22109
22110 \begin_layout Plain Layout
22111
22112 \backslash
22113
22114 \emph on
22115 LatexName
22116 \emph default
22117 {\SpecialChar ldots
22118 }
22119 \end_layout
22120
22121 \end_inset
22122
22123
22124 \end_layout
22125
22126 \begin_layout Description
22127 \begin_inset Flex Code
22128 status collapsed
22129
22130 \begin_layout Plain Layout
22131 Environment
22132 \end_layout
22133
22134 \end_inset
22135
22136  means 
22137 \begin_inset Flex Code
22138 status collapsed
22139
22140 \begin_layout Plain Layout
22141
22142 \backslash
22143 begin{
22144 \emph on
22145 LatexName
22146 \emph default
22147 }\SpecialChar ldots
22148
22149 \backslash
22150 end{
22151 \emph on
22152 LatexName
22153 \emph default
22154 }
22155 \end_layout
22156
22157 \end_inset
22158
22159
22160 \end_layout
22161
22162 \begin_layout Standard
22163 Putting the last few things together,
22164  the \SpecialChar LaTeX
22165  output will be either:
22166  
22167 \end_layout
22168
22169 \begin_layout LyX-Code
22170
22171 \backslash
22172 LatexName[LatexParam]{\SpecialChar ldots
22173 }
22174 \end_layout
22175
22176 \begin_layout Standard
22177 or:
22178  
22179 \end_layout
22180
22181 \begin_layout LyX-Code
22182
22183 \backslash
22184 begin{LatexName}[LatexParam] \SpecialChar ldots
22185  
22186 \backslash
22187 end{LatexName}
22188 \end_layout
22189
22190 \begin_layout Standard
22191 depending upon the \SpecialChar LaTeX
22192  type.
22193 \end_layout
22194
22195 \end_deeper
22196 \begin_layout Description
22197 \begin_inset Flex Code
22198 status collapsed
22199
22200 \begin_layout Plain Layout
22201 LeftDelim
22202 \end_layout
22203
22204 \end_inset
22205
22206  [
22207 \begin_inset Flex Code
22208 status collapsed
22209
22210 \begin_layout Plain Layout
22211 string
22212 \end_layout
22213
22214 \end_inset
22215
22216 ] A string that is put at the beginning of the layout content.
22217  A line break in the output can be indicated by 
22218 \begin_inset Flex Code
22219 status collapsed
22220
22221 \begin_layout Plain Layout
22222 <br/>
22223 \end_layout
22224
22225 \end_inset
22226
22227 .
22228 \end_layout
22229
22230 \begin_layout Description
22231 \begin_inset Flex Code
22232 status collapsed
22233
22234 \begin_layout Plain Layout
22235 LyxType
22236 \end_layout
22237
22238 \end_inset
22239
22240  Can be 
22241 \begin_inset Flex Code
22242 status collapsed
22243
22244 \begin_layout Plain Layout
22245 charstyle
22246 \end_layout
22247
22248 \end_inset
22249
22250 ,
22251  
22252 \begin_inset Flex Code
22253 status collapsed
22254
22255 \begin_layout Plain Layout
22256 custom
22257 \end_layout
22258
22259 \end_inset
22260
22261 ,
22262  
22263 \change_deleted -584632292 1615846609
22264
22265 \begin_inset Flex Code
22266 status collapsed
22267
22268 \begin_layout Plain Layout
22269 element
22270 \end_layout
22271
22272 \end_inset
22273
22274  
22275 \change_unchanged
22276 or 
22277 \begin_inset Flex Code
22278 status collapsed
22279
22280 \begin_layout Plain Layout
22281 end
22282 \end_layout
22283
22284 \end_inset
22285
22286  (indicating a dummy definition ending definitions of charstyles,
22287  etc).
22288  This entry is required in and is only meaningful for Flex insets.
22289  Among other things,
22290  it determines on which menu this inset will appear.
22291  Setting 
22292 \begin_inset Flex Code
22293 status collapsed
22294
22295 \begin_layout Plain Layout
22296 LyxType
22297 \end_layout
22298
22299 \end_inset
22300
22301  to 
22302 \begin_inset Flex Code
22303 status collapsed
22304
22305 \begin_layout Plain Layout
22306 charstyle
22307 \end_layout
22308
22309 \end_inset
22310
22311  will automatically set 
22312 \begin_inset Flex Code
22313 status collapsed
22314
22315 \begin_layout Plain Layout
22316 MultiPar
22317 \end_layout
22318
22319 \end_inset
22320
22321  to false and 
22322 \begin_inset Flex Code
22323 status collapsed
22324
22325 \begin_layout Plain Layout
22326 ForcePlain
22327 \end_layout
22328
22329 \end_inset
22330
22331  to true.
22332  
22333 \begin_inset Flex Code
22334 status collapsed
22335
22336 \begin_layout Plain Layout
22337 MultiPar
22338 \end_layout
22339
22340 \end_inset
22341
22342  can be set to true,
22343  or 
22344 \begin_inset Flex Code
22345 status collapsed
22346
22347 \begin_layout Plain Layout
22348 ForcePlain
22349 \end_layout
22350
22351 \end_inset
22352
22353  to false,
22354  for 
22355 \begin_inset Flex Code
22356 status collapsed
22357
22358 \begin_layout Plain Layout
22359 charstyle
22360 \end_layout
22361
22362 \end_inset
22363
22364  insets by setting it 
22365 \emph on
22366 after
22367 \emph default
22368  you set the 
22369 \begin_inset Flex Code
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373 LyxType
22374 \end_layout
22375
22376 \end_inset
22377
22378 .
22379 \change_inserted -712698321 1555575738
22380
22381 \end_layout
22382
22383 \begin_layout Description
22384
22385 \change_inserted -712698321 1555575844
22386 \begin_inset Flex Code
22387 status collapsed
22388
22389 \begin_layout Plain Layout
22390
22391 \change_inserted -712698321 1555575740
22392 MenuString
22393 \change_unchanged
22394
22395 \end_layout
22396
22397 \end_inset
22398
22399  
22400 \begin_inset Flex Code
22401 status collapsed
22402
22403 \begin_layout Plain Layout
22404
22405 \change_inserted -712698321 1555575740
22406 [string]
22407 \change_unchanged
22408
22409 \end_layout
22410
22411 \end_inset
22412
22413  A dedicated string for the menu.
22414  You can define an accelerator by appending the respective character to the string,
22415  divided by 
22416 \begin_inset Quotes eld
22417 \end_inset
22418
22419 |
22420 \begin_inset Quotes erd
22421 \end_inset
22422
22423  (e.
22424 \begin_inset space \thinspace{}
22425 \end_inset
22426
22427 g.
22428 \begin_inset space \space{}
22429 \end_inset
22430
22431
22432 \begin_inset Quotes eld
22433 \end_inset
22434
22435
22436 \begin_inset Flex Code
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440
22441 \change_inserted -712698321 1555575781
22442 My Inset|M
22443 \change_unchanged
22444
22445 \end_layout
22446
22447 \end_inset
22448
22449
22450 \begin_inset Quotes erd
22451 \end_inset
22452
22453 ).
22454  This specification is optional.
22455  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
22456 \change_unchanged
22457
22458 \end_layout
22459
22460 \begin_layout Description
22461 \begin_inset Flex Code
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465 MultiPar
22466 \end_layout
22467
22468 \end_inset
22469
22470  [
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475
22476 \emph on
22477 0
22478 \end_layout
22479
22480 \end_inset
22481
22482 ,
22483 \begin_inset space \thinspace{}
22484 \end_inset
22485
22486
22487 \begin_inset Flex Code
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491 1
22492 \end_layout
22493
22494 \end_inset
22495
22496 ] Whether multiple paragraphs are permitted in this inset.
22497  This will also set 
22498 \begin_inset Flex Code
22499 status collapsed
22500
22501 \begin_layout Plain Layout
22502 CustomPars
22503 \end_layout
22504
22505 \end_inset
22506
22507  to the same value and 
22508 \begin_inset Flex Code
22509 status collapsed
22510
22511 \begin_layout Plain Layout
22512 ForcePlain
22513 \end_layout
22514
22515 \end_inset
22516
22517  to the opposite value.
22518  These can be reset to other values,
22519  if they are used 
22520 \emph on
22521 after
22522 \emph default
22523  
22524 \begin_inset Flex Code
22525 status collapsed
22526
22527 \begin_layout Plain Layout
22528 MultiPar
22529 \end_layout
22530
22531 \end_inset
22532
22533 .
22534  Default is true.
22535 \end_layout
22536
22537 \begin_layout Description
22538 \begin_inset Flex Code
22539 status collapsed
22540
22541 \begin_layout Plain Layout
22542 NeedProtect
22543 \end_layout
22544
22545 \end_inset
22546
22547  [
22548 \begin_inset Flex Code
22549 status collapsed
22550
22551 \begin_layout Plain Layout
22552
22553 \emph on
22554 0
22555 \end_layout
22556
22557 \end_inset
22558
22559 ,
22560 \begin_inset space \thinspace{}
22561 \end_inset
22562
22563
22564 \begin_inset Flex Code
22565 status collapsed
22566
22567 \begin_layout Plain Layout
22568 1
22569 \end_layout
22570
22571 \end_inset
22572
22573 ] Whether fragile commands in this inset should be 
22574 \begin_inset Flex Code
22575 status collapsed
22576
22577 \begin_layout Plain Layout
22578
22579 \backslash
22580 protect
22581 \end_layout
22582
22583 \end_inset
22584
22585 'ed.
22586  (Note:
22587  This is 
22588 \emph on
22589 not
22590 \emph default
22591  whether the command should itself be protected.) Default is false.
22592 \change_inserted -712698321 1523633958
22593
22594 \end_layout
22595
22596 \begin_layout Description
22597
22598 \change_inserted -712698321 1552395786
22599 \begin_inset Flex Code
22600 status collapsed
22601
22602 \begin_layout Plain Layout
22603
22604 \change_inserted -712698321 1523633961
22605 NeedCProtect
22606 \change_unchanged
22607
22608 \end_layout
22609
22610 \end_inset
22611
22612  [
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617
22618 \change_inserted -712698321 1523633958
22619
22620 \emph on
22621 0
22622 \change_unchanged
22623
22624 \end_layout
22625
22626 \end_inset
22627
22628 ,
22629 \begin_inset space \thinspace{}
22630 \end_inset
22631
22632
22633 \begin_inset Flex Code
22634 status collapsed
22635
22636 \begin_layout Plain Layout
22637
22638 \change_inserted -712698321 1523633958
22639 1
22640 \change_unchanged
22641
22642 \end_layout
22643
22644 \end_inset
22645
22646 ] This causes macros that contain this inset to be protected with 
22647 \begin_inset Flex Code
22648 status collapsed
22649
22650 \begin_layout Plain Layout
22651
22652 \change_inserted -712698321 1523634038
22653
22654 \backslash
22655 cprotect
22656 \change_unchanged
22657
22658 \end_layout
22659
22660 \end_inset
22661
22662  (cf.
22663  package 
22664 \family sans
22665 cprotect
22666 \family default
22667 ) if necessary and thus allows (some) verbatim stuff in macros.
22668  Default is false.
22669 \end_layout
22670
22671 \begin_layout Description
22672
22673 \change_inserted -712698321 1555579651
22674 \begin_inset Flex Code
22675 status collapsed
22676
22677 \begin_layout Plain Layout
22678
22679 \change_inserted -712698321 1552395787
22680 NeedMBoxProtect
22681 \change_unchanged
22682
22683 \end_layout
22684
22685 \end_inset
22686
22687  [
22688 \begin_inset Flex Code
22689 status collapsed
22690
22691 \begin_layout Plain Layout
22692
22693 \change_inserted -712698321 1552395787
22694
22695 \emph on
22696 0
22697 \change_unchanged
22698
22699 \end_layout
22700
22701 \end_inset
22702
22703 ,
22704 \begin_inset space \thinspace{}
22705 \end_inset
22706
22707
22708 \begin_inset Flex Code
22709 status collapsed
22710
22711 \begin_layout Plain Layout
22712
22713 \change_inserted -712698321 1552395787
22714 1
22715 \change_unchanged
22716
22717 \end_layout
22718
22719 \end_inset
22720
22721 ] Whether specific commands in this inset (such as 
22722 \begin_inset Flex Code
22723 status collapsed
22724
22725 \begin_layout Plain Layout
22726
22727 \change_inserted -712698321 1552395787
22728
22729 \backslash
22730 cite
22731 \change_unchanged
22732
22733 \end_layout
22734
22735 \end_inset
22736
22737  and 
22738 \begin_inset Flex Code
22739 status collapsed
22740
22741 \begin_layout Plain Layout
22742
22743 \change_inserted -712698321 1552395787
22744
22745 \backslash
22746 ref
22747 \change_unchanged
22748
22749 \end_layout
22750
22751 \end_inset
22752
22753 ) should be protected in an 
22754 \begin_inset Flex Code
22755 status collapsed
22756
22757 \begin_layout Plain Layout
22758
22759 \change_inserted -712698321 1552395787
22760
22761 \backslash
22762 mbox
22763 \change_unchanged
22764
22765 \end_layout
22766
22767 \end_inset
22768
22769 .
22770  This is particularly needed for insets that draw on 
22771 \family sans
22772 ulem
22773 \family default
22774  or 
22775 \family sans
22776 soul
22777 \family default
22778  commands which parse their content in complex ways.
22779  Default is false.
22780 \end_layout
22781
22782 \begin_layout Description
22783
22784 \change_inserted -712698321 1555579742
22785 \begin_inset Flex Code
22786 status collapsed
22787
22788 \begin_layout Plain Layout
22789
22790 \change_inserted -712698321 1555579658
22791 NewlineCmd
22792 \change_unchanged
22793
22794 \end_layout
22795
22796 \end_inset
22797
22798  
22799 \begin_inset Flex Code
22800 status collapsed
22801
22802 \begin_layout Plain Layout
22803
22804 \change_inserted -712698321 1555579651
22805 [string]
22806 \change_unchanged
22807
22808 \end_layout
22809
22810 \end_inset
22811
22812  Option to define a different command (from the default 
22813 \begin_inset Flex Code
22814 status collapsed
22815
22816 \begin_layout Plain Layout
22817
22818 \change_inserted -712698321 1555579742
22819
22820 \backslash
22821
22822 \backslash
22823
22824 \change_unchanged
22825
22826 \end_layout
22827
22828 \end_inset
22829
22830 ) to be used for line breaks.
22831  The initial backslash must not be specified.
22832 \change_unchanged
22833
22834 \end_layout
22835
22836 \begin_layout Description
22837 \begin_inset Flex Code
22838 status collapsed
22839
22840 \begin_layout Plain Layout
22841 NoInsetLayout
22842 \end_layout
22843
22844 \end_inset
22845
22846  [
22847 \begin_inset Flex Code
22848 status collapsed
22849
22850 \begin_layout Plain Layout
22851 <layout>
22852 \end_layout
22853
22854 \end_inset
22855
22856 ] Deletes an existing 
22857 \begin_inset Flex Code
22858 status collapsed
22859
22860 \begin_layout Plain Layout
22861 InsetLayout
22862 \end_layout
22863
22864 \end_inset
22865
22866 .
22867 \end_layout
22868
22869 \begin_layout Description
22870 \begin_inset Flex Code
22871 status collapsed
22872
22873 \begin_layout Plain Layout
22874 ObsoletedBy
22875 \end_layout
22876
22877 \end_inset
22878
22879  [
22880 \begin_inset Flex Code
22881 status collapsed
22882
22883 \begin_layout Plain Layout
22884 <layout>
22885 \end_layout
22886
22887 \end_inset
22888
22889 ] Name of an 
22890 \begin_inset Flex Code
22891 status collapsed
22892
22893 \begin_layout Plain Layout
22894 InsetLayout
22895 \end_layout
22896
22897 \end_inset
22898
22899  that has replaced this 
22900 \begin_inset Flex Code
22901 status collapsed
22902
22903 \begin_layout Plain Layout
22904 InsetLayout
22905 \end_layout
22906
22907 \end_inset
22908
22909 .
22910  This is used to rename an 
22911 \begin_inset Flex Code
22912 status collapsed
22913
22914 \begin_layout Plain Layout
22915 InsetLayout
22916 \end_layout
22917
22918 \end_inset
22919
22920 ,
22921  while keeping backward compatibility.
22922 \change_inserted -712698321 1559491850
22923
22924 \end_layout
22925
22926 \begin_layout Description
22927
22928 \change_inserted -712698321 1559492002
22929 \begin_inset Flex Code
22930 status collapsed
22931
22932 \begin_layout Plain Layout
22933
22934 \change_inserted -712698321 1559491854
22935 ParbreakIgnored
22936 \change_unchanged
22937
22938 \end_layout
22939
22940 \end_inset
22941
22942  [
22943 \begin_inset Flex Code
22944 status collapsed
22945
22946 \begin_layout Plain Layout
22947
22948 \change_inserted -712698321 1559491850
22949
22950 \emph on
22951 0
22952 \change_unchanged
22953
22954 \end_layout
22955
22956 \end_inset
22957
22958 ,
22959 \begin_inset space \thinspace{}
22960 \end_inset
22961
22962
22963 \begin_inset Flex Code
22964 status collapsed
22965
22966 \begin_layout Plain Layout
22967
22968 \change_inserted -712698321 1559491850
22969 1
22970 \change_unchanged
22971
22972 \end_layout
22973
22974 \end_inset
22975
22976 ] If this is set to 
22977 \begin_inset Flex Code
22978 status collapsed
22979
22980 \begin_layout Plain Layout
22981
22982 \change_inserted -712698321 1559491881
22983 1
22984 \change_unchanged
22985
22986 \end_layout
22987
22988 \end_inset
22989
22990 ,
22991  paragraph breaks will be ignored in the output.
22992  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
22993  workarea,
22994  without any effect in the output.
22995 \change_unchanged
22996
22997 \end_layout
22998
22999 \begin_layout Description
23000 \begin_inset Flex Code
23001 status collapsed
23002
23003 \begin_layout Plain Layout
23004 ParbreakIsNewline
23005 \end_layout
23006
23007 \end_inset
23008
23009  [
23010 \begin_inset Flex Code
23011 status collapsed
23012
23013 \begin_layout Plain Layout
23014
23015 \emph on
23016 0
23017 \end_layout
23018
23019 \end_inset
23020
23021 ,
23022 \begin_inset space \thinspace{}
23023 \end_inset
23024
23025
23026 \begin_inset Flex Code
23027 status collapsed
23028
23029 \begin_layout Plain Layout
23030 1
23031 \end_layout
23032
23033 \end_inset
23034
23035 ] As with paragraph styles,
23036  see 
23037 \begin_inset CommandInset ref
23038 LatexCommand ref
23039 reference "subsec:Paragraph-Styles"
23040 nolink "false"
23041
23042 \end_inset
23043
23044 .
23045  Default is false.
23046 \end_layout
23047
23048 \begin_layout Description
23049 \begin_inset Flex Code
23050 status collapsed
23051
23052 \begin_layout Plain Layout
23053 PassThru
23054 \end_layout
23055
23056 \end_inset
23057
23058  [
23059 \begin_inset Flex Code
23060 status collapsed
23061
23062 \begin_layout Plain Layout
23063
23064 \emph on
23065 0
23066 \end_layout
23067
23068 \end_inset
23069
23070 ,
23071 \begin_inset space \thinspace{}
23072 \end_inset
23073
23074
23075 \begin_inset Flex Code
23076 status collapsed
23077
23078 \begin_layout Plain Layout
23079 1
23080 \end_layout
23081
23082 \end_inset
23083
23084 ] As with paragraph styles,
23085  see 
23086 \begin_inset CommandInset ref
23087 LatexCommand ref
23088 reference "subsec:Paragraph-Styles"
23089 nolink "false"
23090
23091 \end_inset
23092
23093 .
23094  Default is false.
23095 \end_layout
23096
23097 \begin_layout Description
23098 \begin_inset Flex Code
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102 Preamble
23103 \end_layout
23104
23105 \end_inset
23106
23107  As with paragraph styles,
23108  see 
23109 \begin_inset CommandInset ref
23110 LatexCommand ref
23111 reference "subsec:Paragraph-Styles"
23112 nolink "false"
23113
23114 \end_inset
23115
23116 .
23117 \end_layout
23118
23119 \begin_layout Description
23120 \begin_inset Flex Code
23121 status collapsed
23122
23123 \begin_layout Plain Layout
23124 RefPrefix
23125 \end_layout
23126
23127 \end_inset
23128
23129  [
23130 \begin_inset Flex Code
23131 status collapsed
23132
23133 \begin_layout Plain Layout
23134 string
23135 \end_layout
23136
23137 \end_inset
23138
23139 ] The prefix to use when creating labels referring to insets of this type.
23140  This allows the use of formatted references.
23141 \end_layout
23142
23143 \begin_layout Description
23144 \begin_inset Flex Code
23145 status collapsed
23146
23147 \begin_layout Plain Layout
23148 Requires
23149 \end_layout
23150
23151 \end_inset
23152
23153  [
23154 \begin_inset Flex Code
23155 status collapsed
23156
23157 \begin_layout Plain Layout
23158 string
23159 \end_layout
23160
23161 \end_inset
23162
23163 ] As with paragraph styles,
23164  see 
23165 \begin_inset CommandInset ref
23166 LatexCommand ref
23167 reference "subsec:Paragraph-Styles"
23168 nolink "false"
23169
23170 \end_inset
23171
23172 .
23173 \end_layout
23174
23175 \begin_layout Description
23176 \begin_inset Flex Code
23177 status collapsed
23178
23179 \begin_layout Plain Layout
23180 ResetArgs
23181 \end_layout
23182
23183 \end_inset
23184
23185  [
23186 \begin_inset Flex Code
23187 status collapsed
23188
23189 \begin_layout Plain Layout
23190
23191 \emph on
23192 0
23193 \end_layout
23194
23195 \end_inset
23196
23197 ,
23198 \begin_inset space \thinspace{}
23199 \end_inset
23200
23201
23202 \begin_inset Flex Code
23203 status collapsed
23204
23205 \begin_layout Plain Layout
23206 1
23207 \end_layout
23208
23209 \end_inset
23210
23211 ] Resets the \SpecialChar LaTeX
23212  arguments of this layout (as defined via the 
23213 \begin_inset Flex Code
23214 status collapsed
23215
23216 \begin_layout Plain Layout
23217 Argument
23218 \end_layout
23219
23220 \end_inset
23221
23222  tag).
23223  This is useful if you have copied a style via 
23224 \begin_inset Flex Code
23225 status collapsed
23226
23227 \begin_layout Plain Layout
23228 CopyStyle
23229 \end_layout
23230
23231 \end_inset
23232
23233 ,
23234  but you do not want to inherit its (required and optional) arguments.
23235 \end_layout
23236
23237 \begin_layout Description
23238 \begin_inset Flex Code
23239 status collapsed
23240
23241 \begin_layout Plain Layout
23242 ResetsFont
23243 \end_layout
23244
23245 \end_inset
23246
23247  [
23248 \begin_inset Flex Code
23249 status collapsed
23250
23251 \begin_layout Plain Layout
23252
23253 \emph on
23254 0
23255 \end_layout
23256
23257 \end_inset
23258
23259 ,
23260 \begin_inset space \thinspace{}
23261 \end_inset
23262
23263
23264 \begin_inset Flex Code
23265 status collapsed
23266
23267 \begin_layout Plain Layout
23268 1
23269 \end_layout
23270
23271 \end_inset
23272
23273
23274 \change_inserted -712698321 1597733473
23275 If 
23276 \begin_inset Flex Code
23277 status collapsed
23278
23279 \begin_layout Plain Layout
23280
23281 \change_inserted -712698321 1597732178
23282 1
23283 \change_unchanged
23284
23285 \end_layout
23286
23287 \end_inset
23288
23289 ,
23290  font changes are redone inside the respective inset (in the output) even if the inset itself is in the context of this font changes (e.
23291 \begin_inset space \thinspace{}
23292 \end_inset
23293
23294 g.,
23295  
23296 \begin_inset Flex Code
23297 status collapsed
23298
23299 \begin_layout Plain Layout
23300
23301 \change_inserted -712698321 1597733683
23302
23303 \backslash
23304 textbf{Sourrounding text 
23305 \backslash
23306 myinset{
23307 \backslash
23308 textbf{content}}\SpecialChar ldots
23309 }
23310 \change_unchanged
23311
23312 \end_layout
23313
23314 \end_inset
23315
23316  rather than 
23317 \begin_inset Flex Code
23318 status collapsed
23319
23320 \begin_layout Plain Layout
23321
23322 \change_inserted -712698321 1597733686
23323
23324 \backslash
23325 textbf{Sourrounding text 
23326 \backslash
23327 myinset{content}\SpecialChar ldots
23328 }
23329 \change_unchanged
23330
23331 \end_layout
23332
23333 \end_inset
23334
23335 .
23336  Setting this makes sense for commands that internally reset font settings (e.
23337 \begin_inset space \thinspace{}
23338 \end_inset
23339
23340 g.,
23341  footnotes).
23342  Note that wrongly setting this might lead to unwanted result (e.
23343 \begin_inset space \thinspace{}
23344 \end_inset
23345
23346 g.,
23347  with 
23348 \begin_inset Flex Code
23349 status collapsed
23350
23351 \begin_layout Plain Layout
23352
23353 \change_inserted -712698321 1597733688
23354
23355 \backslash
23356 emph{Sourrounding text 
23357 \backslash
23358 myinset{
23359 \backslash
23360 emph{content}}\SpecialChar ldots
23361 }
23362 \change_unchanged
23363
23364 \end_layout
23365
23366 \end_inset
23367
23368 ,
23369  content is upright,
23370  as 
23371 \begin_inset Flex Code
23372 status collapsed
23373
23374 \begin_layout Plain Layout
23375
23376 \change_inserted -712698321 1597733278
23377
23378 \backslash
23379 emph
23380 \change_unchanged
23381
23382 \end_layout
23383
23384 \end_inset
23385
23386  toggles.
23387  
23388 \change_deleted -712698321 1597733283
23389 Whether this inset should use the font of its surrounding environment or uses its own.
23390  
23391 \change_unchanged
23392 Default is 
23393 \change_deleted -712698321 1597733290
23394 false
23395 \change_inserted -712698321 1597733290
23396
23397 \begin_inset Flex Code
23398 status collapsed
23399
23400 \begin_layout Plain Layout
23401
23402 \change_inserted -712698321 1597733292
23403 0
23404 \change_unchanged
23405
23406 \end_layout
23407
23408 \end_inset
23409
23410
23411 \change_unchanged
23412 :
23413  
23414 \change_deleted -712698321 1597733327
23415 use the font of the surrounding environment
23416 \change_inserted -712698321 1597733343
23417 font changes are not redone inside the inset
23418 \change_unchanged
23419 .
23420 \end_layout
23421
23422 \begin_layout Description
23423 \begin_inset Flex Code
23424 status collapsed
23425
23426 \begin_layout Plain Layout
23427 RightDelim
23428 \end_layout
23429
23430 \end_inset
23431
23432  [
23433 \begin_inset Flex Code
23434 status collapsed
23435
23436 \begin_layout Plain Layout
23437 string
23438 \end_layout
23439
23440 \end_inset
23441
23442 ] A string that is put at the end of the layout content.
23443  A line break in the output can be indicated by 
23444 \begin_inset Flex Code
23445 status collapsed
23446
23447 \begin_layout Plain Layout
23448 <br/>
23449 \end_layout
23450
23451 \end_inset
23452
23453 .
23454 \end_layout
23455
23456 \begin_layout Description
23457 \begin_inset Flex Code
23458 status collapsed
23459
23460 \begin_layout Plain Layout
23461 Spellcheck
23462 \end_layout
23463
23464 \end_inset
23465
23466  [
23467 \begin_inset Flex Code
23468 status collapsed
23469
23470 \begin_layout Plain Layout
23471 0
23472 \end_layout
23473
23474 \end_inset
23475
23476 ,
23477 \begin_inset space \thinspace{}
23478 \end_inset
23479
23480
23481 \begin_inset Flex Code
23482 status collapsed
23483
23484 \begin_layout Plain Layout
23485
23486 \emph on
23487 1
23488 \end_layout
23489
23490 \end_inset
23491
23492 ] Allow spell-checking the contents of this inset.
23493  Default is true.
23494 \change_inserted -584632292 1615846659
23495
23496 \end_layout
23497
23498 \begin_layout Subsection
23499
23500 \change_inserted -584632292 1615846729
23501 Arguments
23502 \begin_inset CommandInset label
23503 LatexCommand label
23504 name "subsec:Arguments"
23505
23506 \end_inset
23507
23508
23509 \end_layout
23510
23511 \begin_layout Standard
23512
23513 \change_inserted -584632292 1615846807
23514 Both paragraph styles and inset layouts allow for 
23515 \emph on
23516 arguments
23517 \emph default
23518  as well as the main content.
23519  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
23520 .
23521  Each (optional or required) argument of a command or environment—
23522 except for the required argument that is associated with the content—
23523 has a separate definition,
23524  where the number specifies the order of the arguments.
23525  The definition must end with 
23526 \begin_inset Flex Code
23527 status collapsed
23528
23529 \begin_layout Plain Layout
23530
23531 \change_inserted -584632292 1615846730
23532 EndArgument
23533 \change_unchanged
23534
23535 \end_layout
23536
23537 \end_inset
23538
23539 .
23540  So a command with two optional arguments looks like:
23541 \end_layout
23542
23543 \begin_layout Quote
23544
23545 \change_inserted -584632292 1615846730
23546
23547 \family typewriter
23548 Argument 1
23549 \end_layout
23550
23551 \begin_layout Quote
23552
23553 \change_inserted -584632292 1615846730
23554
23555 \family typewriter
23556 ...
23557 \end_layout
23558
23559 \begin_layout Quote
23560
23561 \change_inserted -584632292 1615846730
23562
23563 \family typewriter
23564 EndArgument
23565 \end_layout
23566
23567 \begin_layout Quote
23568
23569 \change_inserted -584632292 1615846730
23570
23571 \family typewriter
23572 Argument 2
23573 \end_layout
23574
23575 \begin_layout Quote
23576
23577 \change_inserted -584632292 1615846730
23578
23579 \family typewriter
23580 ...
23581 \end_layout
23582
23583 \begin_layout Quote
23584
23585 \change_inserted -584632292 1615846730
23586
23587 \family typewriter
23588 EndArgument
23589 \end_layout
23590
23591 \begin_layout Standard
23592
23593 \change_inserted -584632292 1615846730
23594 Inside the 
23595 \begin_inset Flex Code
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599
23600 \change_inserted -584632292 1615846730
23601 Argument
23602 \change_unchanged
23603
23604 \end_layout
23605
23606 \end_inset
23607
23608  definition,
23609  the following specifications are possible:
23610 \end_layout
23611
23612 \begin_layout Itemize
23613
23614 \change_inserted -584632292 1615846730
23615 \begin_inset Flex Code
23616 status collapsed
23617
23618 \begin_layout Plain Layout
23619
23620 \change_inserted -584632292 1615846730
23621 LabelString
23622 \change_unchanged
23623
23624 \end_layout
23625
23626 \end_inset
23627
23628  
23629 \begin_inset Flex Code
23630 status collapsed
23631
23632 \begin_layout Plain Layout
23633
23634 \change_inserted -584632292 1615846730
23635 [string]
23636 \change_unchanged
23637
23638 \end_layout
23639
23640 \end_inset
23641
23642  The string that will appear both in the menu (to insert this argument) and on the argument inset button (unless you also specify a separate 
23643 \begin_inset Flex Code
23644 status collapsed
23645
23646 \begin_layout Plain Layout
23647
23648 \change_inserted -584632292 1615846730
23649 MenuString
23650 \change_unchanged
23651
23652 \end_layout
23653
23654 \end_inset
23655
23656 ).
23657  For the menu,
23658  you can define an accelerator by appending the respective character to the string,
23659  divided by 
23660 \begin_inset Quotes eld
23661 \end_inset
23662
23663 |
23664 \begin_inset Quotes erd
23665 \end_inset
23666
23667  (e.
23668 \begin_inset space \thinspace{}
23669 \end_inset
23670
23671 g.
23672 \begin_inset space \space{}
23673 \end_inset
23674
23675
23676 \begin_inset Quotes eld
23677 \end_inset
23678
23679
23680 \begin_inset Flex Code
23681 status collapsed
23682
23683 \begin_layout Plain Layout
23684
23685 \change_inserted -584632292 1615846730
23686 Short Title|S
23687 \change_unchanged
23688
23689 \end_layout
23690
23691 \end_inset
23692
23693
23694 \begin_inset Quotes erd
23695 \end_inset
23696
23697 ).
23698 \end_layout
23699
23700 \begin_layout Itemize
23701
23702 \change_inserted -584632292 1615846730
23703 \begin_inset Flex Code
23704 status collapsed
23705
23706 \begin_layout Plain Layout
23707
23708 \change_inserted -584632292 1615846730
23709 MenuString
23710 \change_unchanged
23711
23712 \end_layout
23713
23714 \end_inset
23715
23716  
23717 \begin_inset Flex Code
23718 status collapsed
23719
23720 \begin_layout Plain Layout
23721
23722 \change_inserted -584632292 1615846730
23723 [string]
23724 \change_unchanged
23725
23726 \end_layout
23727
23728 \end_inset
23729
23730  A separate string for the menu.
23731  You can define an accelerator by appending the respective character to the string,
23732  divided by 
23733 \begin_inset Quotes eld
23734 \end_inset
23735
23736 |
23737 \begin_inset Quotes erd
23738 \end_inset
23739
23740  (e.
23741 \begin_inset space \thinspace{}
23742 \end_inset
23743
23744 g.
23745 \begin_inset space \space{}
23746 \end_inset
23747
23748
23749 \begin_inset Quotes eld
23750 \end_inset
23751
23752
23753 \begin_inset Flex Code
23754 status collapsed
23755
23756 \begin_layout Plain Layout
23757
23758 \change_inserted -584632292 1615846730
23759 Short Title|S
23760 \change_unchanged
23761
23762 \end_layout
23763
23764 \end_inset
23765
23766
23767 \begin_inset Quotes erd
23768 \end_inset
23769
23770 ).
23771  This specification is optional.
23772  If it is not given the 
23773 \begin_inset Flex Code
23774 status collapsed
23775
23776 \begin_layout Plain Layout
23777
23778 \change_inserted -584632292 1615846730
23779 LabelString
23780 \change_unchanged
23781
23782 \end_layout
23783
23784 \end_inset
23785
23786  will be used instead for the menu.
23787 \end_layout
23788
23789 \begin_layout Itemize
23790
23791 \change_inserted -584632292 1615846730
23792 \begin_inset Flex Code
23793 status collapsed
23794
23795 \begin_layout Plain Layout
23796
23797 \change_inserted -584632292 1615846730
23798 Tooltip
23799 \change_unchanged
23800
23801 \end_layout
23802
23803 \end_inset
23804
23805  
23806 \begin_inset Flex Code
23807 status collapsed
23808
23809 \begin_layout Plain Layout
23810
23811 \change_inserted -584632292 1615846730
23812 [string]
23813 \change_unchanged
23814
23815 \end_layout
23816
23817 \end_inset
23818
23819  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
23820 \end_layout
23821
23822 \begin_layout Itemize
23823
23824 \change_inserted -584632292 1615846730
23825 \begin_inset Flex Code
23826 status collapsed
23827
23828 \begin_layout Plain Layout
23829
23830 \change_inserted -584632292 1615846730
23831 Mandatory
23832 \change_unchanged
23833
23834 \end_layout
23835
23836 \end_inset
23837
23838  [
23839 \begin_inset Flex Code
23840 status collapsed
23841
23842 \begin_layout Plain Layout
23843
23844 \change_inserted -584632292 1615846730
23845
23846 \emph on
23847 0
23848 \change_unchanged
23849
23850 \end_layout
23851
23852 \end_inset
23853
23854 ,
23855 \begin_inset space \thinspace{}
23856 \end_inset
23857
23858
23859 \begin_inset Flex Code
23860 status collapsed
23861
23862 \begin_layout Plain Layout
23863
23864 \change_inserted -584632292 1615846730
23865 1
23866 \change_unchanged
23867
23868 \end_layout
23869
23870 \end_inset
23871
23872 ] Declare if this is a mandatory (1) or an optional (0) argument.
23873  Mandatory arguments will be output empty if not given,
23874  while optional arguments will not be output at all.
23875  By default,
23876  mandatory arguments are delimited by 
23877 \begin_inset Flex Code
23878 status collapsed
23879
23880 \begin_layout Plain Layout
23881
23882 \change_inserted -584632292 1615846730
23883 {...}
23884 \change_unchanged
23885
23886 \end_layout
23887
23888 \end_inset
23889
23890 ,
23891  while optional arguments are delimited by 
23892 \begin_inset Flex Code
23893 status collapsed
23894
23895 \begin_layout Plain Layout
23896
23897 \change_inserted -584632292 1615846730
23898 [...]
23899 \change_unchanged
23900
23901 \end_layout
23902
23903 \end_inset
23904
23905
23906 \end_layout
23907
23908 \begin_layout Itemize
23909
23910 \change_inserted -584632292 1615846730
23911 \begin_inset Flex Code
23912 status collapsed
23913
23914 \begin_layout Plain Layout
23915
23916 \change_inserted -584632292 1615846730
23917 NewlineCmd
23918 \change_unchanged
23919
23920 \end_layout
23921
23922 \end_inset
23923
23924  
23925 \begin_inset Flex Code
23926 status collapsed
23927
23928 \begin_layout Plain Layout
23929
23930 \change_inserted -584632292 1615846730
23931 [string]
23932 \change_unchanged
23933
23934 \end_layout
23935
23936 \end_inset
23937
23938  Option to define a different command (from the default 
23939 \begin_inset Flex Code
23940 status collapsed
23941
23942 \begin_layout Plain Layout
23943
23944 \change_inserted -584632292 1615846730
23945
23946 \backslash
23947
23948 \backslash
23949
23950 \change_unchanged
23951
23952 \end_layout
23953
23954 \end_inset
23955
23956 ) to be used for line breaks.
23957  The initial backslash must not be specified.
23958 \end_layout
23959
23960 \begin_layout Itemize
23961
23962 \change_inserted -584632292 1615846730
23963 \begin_inset Flex Code
23964 status collapsed
23965
23966 \begin_layout Plain Layout
23967
23968 \change_inserted -584632292 1615846730
23969 Requires
23970 \change_unchanged
23971
23972 \end_layout
23973
23974 \end_inset
23975
23976  
23977 \begin_inset Flex Code
23978 status collapsed
23979
23980 \begin_layout Plain Layout
23981
23982 \change_inserted -584632292 1615846730
23983 [int=0]
23984 \change_unchanged
23985
23986 \end_layout
23987
23988 \end_inset
23989
23990  defines another argument (by its number) which this argument requires to be output if it is itself output.
23991  E.
23992 \begin_inset space \thinspace{}
23993 \end_inset
23994
23995 g.,
23996  in \SpecialChar LaTeX
23997  commands,
23998  optional arguments often require previous optional arguments to be output (at least empty),
23999  as in 
24000 \begin_inset Flex Code
24001 status collapsed
24002
24003 \begin_layout Plain Layout
24004
24005 \change_inserted -584632292 1615846730
24006
24007 \backslash
24008 command[][argument]{text}
24009 \change_unchanged
24010
24011 \end_layout
24012
24013 \end_inset
24014
24015 .
24016  This can be achieved by the statement 
24017 \begin_inset Flex Code
24018 status collapsed
24019
24020 \begin_layout Plain Layout
24021
24022 \change_inserted -584632292 1615846730
24023 Requires 1
24024 \change_unchanged
24025
24026 \end_layout
24027
24028 \end_inset
24029
24030  within 
24031 \begin_inset Flex Code
24032 status collapsed
24033
24034 \begin_layout Plain Layout
24035
24036 \change_inserted -584632292 1615846730
24037 Argument 2
24038 \change_unchanged
24039
24040 \end_layout
24041
24042 \end_inset
24043
24044 .
24045 \end_layout
24046
24047 \begin_layout Itemize
24048
24049 \change_inserted -584632292 1615846730
24050 \begin_inset Flex Code
24051 status collapsed
24052
24053 \begin_layout Plain Layout
24054
24055 \change_inserted -584632292 1615846730
24056 LeftDelim
24057 \change_unchanged
24058
24059 \end_layout
24060
24061 \end_inset
24062
24063  
24064 \begin_inset Flex Code
24065 status collapsed
24066
24067 \begin_layout Plain Layout
24068
24069 \change_inserted -584632292 1615846730
24070 [string]
24071 \change_unchanged
24072
24073 \end_layout
24074
24075 \end_inset
24076
24077  defines a custom left delimiter (instead of 
24078 \begin_inset Flex Code
24079 status collapsed
24080
24081 \begin_layout Plain Layout
24082
24083 \change_inserted -584632292 1615846730
24084 {
24085 \change_unchanged
24086
24087 \end_layout
24088
24089 \end_inset
24090
24091  or 
24092 \begin_inset Flex Code
24093 status collapsed
24094
24095 \begin_layout Plain Layout
24096
24097 \change_inserted -584632292 1615846730
24098 [
24099 \change_unchanged
24100
24101 \end_layout
24102
24103 \end_inset
24104
24105 ).
24106  A line break in the output can be indicated by 
24107 \begin_inset Flex Code
24108 status collapsed
24109
24110 \begin_layout Plain Layout
24111
24112 \change_inserted -584632292 1615846730
24113 <br/>
24114 \change_unchanged
24115
24116 \end_layout
24117
24118 \end_inset
24119
24120 .
24121 \end_layout
24122
24123 \begin_layout Itemize
24124
24125 \change_inserted -584632292 1615846730
24126 \begin_inset Flex Code
24127 status collapsed
24128
24129 \begin_layout Plain Layout
24130
24131 \change_inserted -584632292 1615846730
24132 RightDelim
24133 \change_unchanged
24134
24135 \end_layout
24136
24137 \end_inset
24138
24139  
24140 \begin_inset Flex Code
24141 status collapsed
24142
24143 \begin_layout Plain Layout
24144
24145 \change_inserted -584632292 1615846730
24146 [string]
24147 \change_unchanged
24148
24149 \end_layout
24150
24151 \end_inset
24152
24153  defines a custom right delimiter (instead of 
24154 \begin_inset Flex Code
24155 status collapsed
24156
24157 \begin_layout Plain Layout
24158
24159 \change_inserted -584632292 1615846730
24160 }
24161 \change_unchanged
24162
24163 \end_layout
24164
24165 \end_inset
24166
24167  or 
24168 \begin_inset Flex Code
24169 status collapsed
24170
24171 \begin_layout Plain Layout
24172
24173 \change_inserted -584632292 1615846730
24174 ]
24175 \change_unchanged
24176
24177 \end_layout
24178
24179 \end_inset
24180
24181 ).
24182  A line break in the output can be indicated by 
24183 \begin_inset Flex Code
24184 status collapsed
24185
24186 \begin_layout Plain Layout
24187
24188 \change_inserted -584632292 1615846730
24189 <br/>
24190 \change_unchanged
24191
24192 \end_layout
24193
24194 \end_inset
24195
24196 .
24197 \end_layout
24198
24199 \begin_layout Itemize
24200
24201 \change_inserted -584632292 1615846730
24202 \begin_inset Flex Code
24203 status collapsed
24204
24205 \begin_layout Plain Layout
24206
24207 \change_inserted -584632292 1615846730
24208 DefaultArg
24209 \change_unchanged
24210
24211 \end_layout
24212
24213 \end_inset
24214
24215  
24216 \begin_inset Flex Code
24217 status collapsed
24218
24219 \begin_layout Plain Layout
24220
24221 \change_inserted -584632292 1615846730
24222 [string]
24223 \change_unchanged
24224
24225 \end_layout
24226
24227 \end_inset
24228
24229  defines an argument that is inserted if and only if no user-specified arguments were given,
24230  i.
24231 \begin_inset space \thinspace{}
24232 \end_inset
24233
24234 e.
24235 \begin_inset space \space{}
24236 \end_inset
24237
24238 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
24239  Multiple arguments need to be separated by comma.
24240 \end_layout
24241
24242 \begin_layout Itemize
24243
24244 \change_inserted -584632292 1615846730
24245 \begin_inset Flex Code
24246 status collapsed
24247
24248 \begin_layout Plain Layout
24249
24250 \change_inserted -584632292 1615846730
24251 PresetArg
24252 \change_unchanged
24253
24254 \end_layout
24255
24256 \end_inset
24257
24258  
24259 \begin_inset Flex Code
24260 status collapsed
24261
24262 \begin_layout Plain Layout
24263
24264 \change_inserted -584632292 1615846730
24265 [string]
24266 \change_unchanged
24267
24268 \end_layout
24269
24270 \end_inset
24271
24272  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
24273  Multiple arguments need to be separated by comma.
24274 \end_layout
24275
24276 \begin_layout Itemize
24277
24278 \change_inserted -584632292 1615846730
24279 \begin_inset Flex Code
24280 status collapsed
24281
24282 \begin_layout Plain Layout
24283
24284 \change_inserted -584632292 1615846730
24285 Font
24286 \change_unchanged
24287
24288 \end_layout
24289
24290 \end_inset
24291
24292  The font used for the argument content,
24293  see 
24294 \begin_inset CommandInset ref
24295 LatexCommand ref
24296 reference "subsec:Font-description"
24297 nolink "false"
24298
24299 \end_inset
24300
24301 .
24302 \end_layout
24303
24304 \begin_layout Itemize
24305
24306 \change_inserted -584632292 1615846730
24307 \begin_inset Flex Code
24308 status collapsed
24309
24310 \begin_layout Plain Layout
24311
24312 \change_inserted -584632292 1615846730
24313 FreeSpacing
24314 \change_unchanged
24315
24316 \end_layout
24317
24318 \end_inset
24319
24320  [
24321 \begin_inset Flex Code
24322 status collapsed
24323
24324 \begin_layout Plain Layout
24325
24326 \change_inserted -584632292 1615846730
24327
24328 \emph on
24329 0
24330 \change_unchanged
24331
24332 \end_layout
24333
24334 \end_inset
24335
24336 ,
24337 \begin_inset space \thinspace{}
24338 \end_inset
24339
24340
24341 \begin_inset Flex Code
24342 status collapsed
24343
24344 \begin_layout Plain Layout
24345
24346 \change_inserted -584632292 1615846730
24347 1
24348 \change_unchanged
24349
24350 \end_layout
24351
24352 \end_inset
24353
24354 ] As with paragraph styles,
24355  see 
24356 \begin_inset CommandInset ref
24357 LatexCommand ref
24358 reference "subsec:Paragraph-Styles"
24359 nolink "false"
24360
24361 \end_inset
24362
24363 .
24364 \end_layout
24365
24366 \begin_layout Itemize
24367
24368 \change_inserted -584632292 1615846730
24369 \begin_inset Flex Code
24370 status collapsed
24371
24372 \begin_layout Plain Layout
24373
24374 \change_inserted -584632292 1615846730
24375 LabelFont
24376 \change_unchanged
24377
24378 \end_layout
24379
24380 \end_inset
24381
24382  The font used for the label;
24383  see 
24384 \begin_inset CommandInset ref
24385 LatexCommand ref
24386 reference "subsec:Font-description"
24387 nolink "false"
24388
24389 \end_inset
24390
24391 .
24392 \end_layout
24393
24394 \begin_layout Itemize
24395
24396 \change_inserted -584632292 1615846730
24397 \begin_inset Flex Code
24398 status collapsed
24399
24400 \begin_layout Plain Layout
24401
24402 \change_inserted -584632292 1615846730
24403 Decoration
24404 \change_unchanged
24405
24406 \end_layout
24407
24408 \end_inset
24409
24410  [
24411 \begin_inset Flex Code
24412 status collapsed
24413
24414 \begin_layout Plain Layout
24415
24416 \change_inserted -584632292 1615846730
24417
24418 \emph on
24419 Classic
24420 \emph default
24421 ,
24422  Minimalistic,
24423  Conglomerate
24424 \change_unchanged
24425
24426 \end_layout
24427
24428 \end_inset
24429
24430 ] describes the rendering style used for the inset's frame and buttons.
24431 \end_layout
24432
24433 \begin_layout Itemize
24434
24435 \change_inserted -584632292 1615846730
24436 \begin_inset Flex Code
24437 status collapsed
24438
24439 \begin_layout Plain Layout
24440
24441 \change_inserted -584632292 1615846730
24442 AutoInsert
24443 \change_unchanged
24444
24445 \end_layout
24446
24447 \end_inset
24448
24449  
24450 \begin_inset Flex Code
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454
24455 \change_inserted -584632292 1615846730
24456 [int=0]
24457 \change_unchanged
24458
24459 \end_layout
24460
24461 \end_inset
24462
24463  If this is set to 
24464 \begin_inset Flex Code
24465 status collapsed
24466
24467 \begin_layout Plain Layout
24468
24469 \change_inserted -584632292 1615846730
24470 1
24471 \change_unchanged
24472
24473 \end_layout
24474
24475 \end_inset
24476
24477 ,
24478  this argument is automatically inserted when the respective style is selected.
24479 \end_layout
24480
24481 \begin_layout Itemize
24482
24483 \change_inserted -584632292 1615846730
24484 \begin_inset Flex Code
24485 status collapsed
24486
24487 \begin_layout Plain Layout
24488
24489 \change_inserted -584632292 1615846730
24490 InsertOnNewline
24491 \change_unchanged
24492
24493 \end_layout
24494
24495 \end_inset
24496
24497  
24498 \begin_inset Flex Code
24499 status collapsed
24500
24501 \begin_layout Plain Layout
24502
24503 \change_inserted -584632292 1615846730
24504 [int=0]
24505 \change_unchanged
24506
24507 \end_layout
24508
24509 \end_inset
24510
24511  If this is set to 
24512 \begin_inset Flex Code
24513 status collapsed
24514
24515 \begin_layout Plain Layout
24516
24517 \change_inserted -584632292 1615846730
24518 1
24519 \change_unchanged
24520
24521 \end_layout
24522
24523 \end_inset
24524
24525 ,
24526  this argument will be inserted on a new line with 
24527 \begin_inset Flex Code
24528 status collapsed
24529
24530 \begin_layout Plain Layout
24531
24532 \change_inserted -584632292 1615846730
24533 AutoInsert
24534 \change_unchanged
24535
24536 \end_layout
24537
24538 \end_inset
24539
24540  (only available within Flex insets).
24541 \end_layout
24542
24543 \begin_layout Itemize
24544
24545 \change_inserted -584632292 1615846730
24546 \begin_inset Flex Code
24547 status collapsed
24548
24549 \begin_layout Plain Layout
24550
24551 \change_inserted -584632292 1615846730
24552 InsertCotext
24553 \change_unchanged
24554
24555 \end_layout
24556
24557 \end_inset
24558
24559  
24560 \begin_inset Flex Code
24561 status collapsed
24562
24563 \begin_layout Plain Layout
24564
24565 \change_inserted -584632292 1615846730
24566 [int=0]
24567 \change_unchanged
24568
24569 \end_layout
24570
24571 \end_inset
24572
24573  If this is set to 
24574 \begin_inset Flex Code
24575 status collapsed
24576
24577 \begin_layout Plain Layout
24578
24579 \change_inserted -584632292 1615846730
24580 1
24581 \change_unchanged
24582
24583 \end_layout
24584
24585 \end_inset
24586
24587 ,
24588  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
24589 \end_layout
24590
24591 \begin_layout Itemize
24592
24593 \change_inserted -584632292 1615846730
24594 \begin_inset Flex Code
24595 status collapsed
24596
24597 \begin_layout Plain Layout
24598
24599 \change_inserted -584632292 1615846730
24600 PassThru
24601 \change_unchanged
24602
24603 \end_layout
24604
24605 \end_inset
24606
24607  [
24608 \begin_inset Flex Code
24609 status collapsed
24610
24611 \begin_layout Plain Layout
24612
24613 \change_inserted -584632292 1615846730
24614
24615 \emph on
24616 inherited
24617 \emph default
24618 ,
24619  true,
24620  false
24621 \change_unchanged
24622
24623 \end_layout
24624
24625 \end_inset
24626
24627 ] Whether the contents of this argument should be output in raw form,
24628  meaning without special translations that \SpecialChar LaTeX
24629  would require.
24630  By default,
24631  the 
24632 \begin_inset Flex Code
24633 status collapsed
24634
24635 \begin_layout Plain Layout
24636
24637 \change_inserted -584632292 1615846730
24638 PassThru
24639 \change_unchanged
24640
24641 \end_layout
24642
24643 \end_inset
24644
24645  status is inherited by the inset or paragraph layout the argument belongs to,
24646  true and false change the status for the given argument only.
24647 \end_layout
24648
24649 \begin_layout Itemize
24650
24651 \change_inserted -584632292 1615846730
24652 \begin_inset Flex Code
24653 status collapsed
24654
24655 \begin_layout Plain Layout
24656
24657 \change_inserted -584632292 1615846730
24658 PassThruChars
24659 \change_unchanged
24660
24661 \end_layout
24662
24663 \end_inset
24664
24665  [
24666 \begin_inset Flex Code
24667 status collapsed
24668
24669 \begin_layout Plain Layout
24670
24671 \change_inserted -584632292 1615846730
24672 string of characters
24673 \change_unchanged
24674
24675 \end_layout
24676
24677 \end_inset
24678
24679 ]
24680 \family typewriter
24681  
24682 \family default
24683 Defines individual characters
24684 \begin_inset Newline linebreak
24685 \end_inset
24686
24687 that should be output in raw form,
24688  meaning without special translations that \SpecialChar LaTeX
24689  would require.
24690  Note that,
24691  contrary to PassThru,
24692  this needs to be explicitly defined for arguments.
24693  That is,
24694  arguments do not inherit PassThruChars from their parent inset or layout.
24695 \end_layout
24696
24697 \begin_layout Itemize
24698
24699 \change_inserted -584632292 1615846730
24700 \begin_inset Flex Code
24701 status collapsed
24702
24703 \begin_layout Plain Layout
24704
24705 \change_inserted -584632292 1615846730
24706 IsTocCaption
24707 \change_unchanged
24708
24709 \end_layout
24710
24711 \end_inset
24712
24713  [
24714 \begin_inset Flex Code
24715 status collapsed
24716
24717 \begin_layout Plain Layout
24718
24719 \change_inserted -584632292 1615846730
24720
24721 \emph on
24722 0
24723 \change_unchanged
24724
24725 \end_layout
24726
24727 \end_inset
24728
24729 ,
24730 \begin_inset space \thinspace{}
24731 \end_inset
24732
24733
24734 \begin_inset Flex Code
24735 status collapsed
24736
24737 \begin_layout Plain Layout
24738
24739 \change_inserted -584632292 1615846730
24740 1
24741 \change_unchanged
24742
24743 \end_layout
24744
24745 \end_inset
24746
24747 ] If this is set to 1,
24748  the argument will output its content in the corresponding item in the table of contents.
24749  See AddToToc.
24750 \end_layout
24751
24752 \begin_layout Standard
24753
24754 \change_inserted -584632292 1615846730
24755 By default,
24756  the text entered in the \SpecialChar LyX
24757  workarea in the respective layout is the last (mandatory) argument of a command if the 
24758 \begin_inset Flex Code
24759 status collapsed
24760
24761 \begin_layout Plain Layout
24762
24763 \change_inserted -584632292 1615846730
24764 LatexType
24765 \change_unchanged
24766
24767 \end_layout
24768
24769 \end_inset
24770
24771  is 
24772 \begin_inset Flex Code
24773 status collapsed
24774
24775 \begin_layout Plain Layout
24776
24777 \change_inserted -584632292 1615846730
24778 Command
24779 \change_unchanged
24780
24781 \end_layout
24782
24783 \end_inset
24784
24785 .
24786  However,
24787  arguments with the prefix 
24788 \begin_inset Flex Code
24789 status collapsed
24790
24791 \begin_layout Plain Layout
24792
24793 \change_inserted -584632292 1615846730
24794 post:
24795 \change_unchanged
24796
24797 \end_layout
24798
24799 \end_inset
24800
24801  are output after this workarea argument.
24802  Note that post-argument numbering restarts at 1,
24803  so the first argument following the workarea argument is 
24804 \begin_inset Flex Code
24805 status collapsed
24806
24807 \begin_layout Plain Layout
24808
24809 \change_inserted -584632292 1615846730
24810 post:1
24811 \change_unchanged
24812
24813 \end_layout
24814
24815 \end_inset
24816
24817 .
24818  Post-arguments are ignored in any other 
24819 \begin_inset Flex Code
24820 status collapsed
24821
24822 \begin_layout Plain Layout
24823
24824 \change_inserted -584632292 1615846730
24825 LatexType
24826 \change_unchanged
24827
24828 \end_layout
24829
24830 \end_inset
24831
24832  than 
24833 \begin_inset Flex Code
24834 status collapsed
24835
24836 \begin_layout Plain Layout
24837
24838 \change_inserted -584632292 1615846730
24839 Command
24840 \change_unchanged
24841
24842 \end_layout
24843
24844 \end_inset
24845
24846 .
24847 \end_layout
24848
24849 \begin_layout Standard
24850
24851 \change_inserted -584632292 1615846730
24852 Arguments for list 
24853 \begin_inset Flex Code
24854 status collapsed
24855
24856 \begin_layout Plain Layout
24857
24858 \change_inserted -584632292 1615846730
24859
24860 \backslash
24861 item
24862 \change_unchanged
24863
24864 \end_layout
24865
24866 \end_inset
24867
24868 s (as in 
24869 \begin_inset Flex Code
24870 status collapsed
24871
24872 \begin_layout Plain Layout
24873
24874 \change_inserted -584632292 1615846730
24875
24876 \backslash
24877 item[foo]
24878 \change_unchanged
24879
24880 \end_layout
24881
24882 \end_inset
24883
24884 ) have the prefix 
24885 \begin_inset Flex Code
24886 status collapsed
24887
24888 \begin_layout Plain Layout
24889
24890 \change_inserted -584632292 1615846730
24891 item:
24892 \change_unchanged
24893
24894 \end_layout
24895
24896 \end_inset
24897
24898  followed by the number (e.
24899 \begin_inset space \thinspace{}
24900 \end_inset
24901
24902 g.
24903 \begin_inset space \space{}
24904 \end_inset
24905
24906
24907 \begin_inset Flex Code
24908 status collapsed
24909
24910 \begin_layout Plain Layout
24911
24912 \change_inserted -584632292 1615846730
24913 Argument item:1
24914 \change_unchanged
24915
24916 \end_layout
24917
24918 \end_inset
24919
24920 ).
24921 \end_layout
24922
24923 \begin_layout Standard
24924
24925 \change_inserted -584632292 1615846730
24926 Finally,
24927  there is a special argument type with the prefix 
24928 \begin_inset Flex Code
24929 status collapsed
24930
24931 \begin_layout Plain Layout
24932
24933 \change_inserted -584632292 1615846730
24934 listpreamble:
24935 \change_unchanged
24936
24937 \end_layout
24938
24939 \end_inset
24940
24941 .
24942  It is not really an argument,
24943  but uses the argument interface (thus,
24944  the prefix is also followed by a number,
24945  e.
24946 \begin_inset space \thinspace{}
24947 \end_inset
24948
24949 g.
24950  
24951 \begin_inset Flex Code
24952 status collapsed
24953
24954 \begin_layout Plain Layout
24955
24956 \change_inserted -584632292 1615846730
24957 Argument listpreamble:1
24958 \change_unchanged
24959
24960 \end_layout
24961
24962 \end_inset
24963
24964 ).
24965  As the name implies,
24966  it is targeted at lists such as 
24967 \family sans
24968 Itemize
24969 \family default
24970 ,
24971  
24972 \family sans
24973 Enumerate
24974 \family default
24975 ,
24976  
24977 \family sans
24978 Description
24979 \family default
24980 ,
24981  or 
24982 \family sans
24983 Bibliography
24984 \family default
24985 .
24986  Its content will be output at the list start,
24987  before the first 
24988 \begin_inset Flex Code
24989 status collapsed
24990
24991 \begin_layout Plain Layout
24992
24993 \change_inserted -584632292 1615846730
24994
24995 \backslash
24996 item
24997 \change_unchanged
24998
24999 \end_layout
25000
25001 \end_inset
25002
25003 ,
25004  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
25005 ).
25006  This way,
25007  users can insert redefinitions (of lengths etc.) to individual lists.
25008  By default,
25009  these arguments do not have a delimiter.
25010 \change_unchanged
25011
25012 \end_layout
25013
25014 \begin_layout Subsection
25015 Counters
25016 \begin_inset CommandInset label
25017 LatexCommand label
25018 name "subsec:Counters"
25019
25020 \end_inset
25021
25022
25023 \end_layout
25024
25025 \begin_layout Standard
25026 It is necessary to define the counters (
25027 \begin_inset Flex Noun
25028 status collapsed
25029
25030 \begin_layout Plain Layout
25031 chapter
25032 \end_layout
25033
25034 \end_inset
25035
25036 ,
25037  
25038 \begin_inset Flex Noun
25039 status collapsed
25040
25041 \begin_layout Plain Layout
25042 figure
25043 \end_layout
25044
25045 \end_inset
25046
25047 ,
25048  \SpecialChar ldots
25049 ) in the text class itself.
25050  The standard counters are defined in the file 
25051 \begin_inset Flex Code
25052 status collapsed
25053
25054 \begin_layout Plain Layout
25055 stdcounters.inc
25056 \end_layout
25057
25058 \end_inset
25059
25060 ,
25061  so you may have to do no more than add
25062 \end_layout
25063
25064 \begin_layout LyX-Code
25065 Input stdcounters.inc
25066 \end_layout
25067
25068 \begin_layout Standard
25069 to your layout file to get them to work.
25070  But if you want to define custom counters,
25071  then you can do so.
25072  The counter declaration must begin with:
25073 \end_layout
25074
25075 \begin_layout LyX-Code
25076 Counter CounterName
25077 \end_layout
25078
25079 \begin_layout Standard
25080 where of course `
25081 \begin_inset Flex Code
25082 status collapsed
25083
25084 \begin_layout Plain Layout
25085 CounterName
25086 \end_layout
25087
25088 \end_inset
25089
25090 ' is replaced by the name of the counter.
25091  And it must end with 
25092 \begin_inset Quotes eld
25093 \end_inset
25094
25095
25096 \begin_inset Flex Code
25097 status collapsed
25098
25099 \begin_layout Plain Layout
25100 End
25101 \end_layout
25102
25103 \end_inset
25104
25105
25106 \begin_inset Quotes erd
25107 \end_inset
25108
25109 .
25110  The following parameters can also be used:
25111 \end_layout
25112
25113 \begin_layout Description
25114 \begin_inset Flex Code
25115 status collapsed
25116
25117 \begin_layout Plain Layout
25118 InitialValue
25119 \end_layout
25120
25121 \end_inset
25122
25123  [
25124 \begin_inset Flex Code
25125 status collapsed
25126
25127 \begin_layout Plain Layout
25128 int=1
25129 \end_layout
25130
25131 \end_inset
25132
25133 ] Sets the initial value for the counter,
25134  to which it will be reset whenever that happens.
25135  Normally,
25136  one will want the default,
25137  1.
25138 \end_layout
25139
25140 \begin_layout Description
25141 \begin_inset Flex Code
25142 status collapsed
25143
25144 \begin_layout Plain Layout
25145 LabelString
25146 \end_layout
25147
25148 \end_inset
25149
25150  [
25151 \begin_inset Flex Code
25152 status collapsed
25153
25154 \begin_layout Plain Layout
25155 string
25156 \end_layout
25157
25158 \end_inset
25159
25160 =
25161 \begin_inset Quotes erd
25162 \end_inset
25163
25164
25165 \begin_inset Quotes erd
25166 \end_inset
25167
25168 ] When defined,
25169  this string defines how the counter is displayed.
25170  Setting this value sets 
25171 \begin_inset Flex Code
25172 status collapsed
25173
25174 \begin_layout Plain Layout
25175 LabelStringAppendix
25176 \end_layout
25177
25178 \end_inset
25179
25180  to the same value.
25181  The following special constructs can be used in the string:
25182 \end_layout
25183
25184 \begin_deeper
25185 \begin_layout Itemize
25186 \begin_inset Flex Code
25187 status collapsed
25188
25189 \begin_layout Plain Layout
25190
25191 \backslash
25192 thecounter
25193 \end_layout
25194
25195 \end_inset
25196
25197  will be replaced by the expansion of the 
25198 \begin_inset Flex Code
25199 status collapsed
25200
25201 \begin_layout Plain Layout
25202 LabelString
25203 \end_layout
25204
25205 \end_inset
25206
25207  (or 
25208 \begin_inset Flex Code
25209 status collapsed
25210
25211 \begin_layout Plain Layout
25212 LabelStringAppendix
25213 \end_layout
25214
25215 \end_inset
25216
25217 ) of the counter 
25218 \begin_inset Flex Code
25219 status collapsed
25220
25221 \begin_layout Plain Layout
25222 counter
25223 \end_layout
25224
25225 \end_inset
25226
25227 .
25228  
25229 \end_layout
25230
25231 \begin_layout Itemize
25232 counter values can be expressed using \SpecialChar LaTeX
25233 -like macros
25234 \begin_inset Newline newline
25235 \end_inset
25236
25237
25238 \begin_inset Flex Code
25239 status collapsed
25240
25241 \begin_layout Plain Layout
25242
25243 \backslash
25244
25245 \emph on
25246 numbertype
25247 \emph default
25248 {
25249 \emph on
25250 counter
25251 \emph default
25252 }
25253 \end_layout
25254
25255 \end_inset
25256
25257 ,
25258  where 
25259 \begin_inset Flex Code
25260 status collapsed
25261
25262 \begin_layout Plain Layout
25263
25264 \emph on
25265 numbertype
25266 \end_layout
25267
25268 \end_inset
25269
25270  can be:
25271 \begin_inset Foot
25272 status collapsed
25273
25274 \begin_layout Plain Layout
25275
25276 \family roman
25277 \series medium
25278 \shape up
25279 \size normal
25280 \emph off
25281 \bar no
25282 \noun off
25283 \color none
25284 Actually,
25285  the situation is a bit more complicated:
25286  any
25287 \family default
25288 \series default
25289 \shape default
25290 \emph default
25291 \bar default
25292  
25293 \size default
25294 \emph on
25295 \noun default
25296 \color inherit
25297 numbertype
25298 \family roman
25299 \series medium
25300 \shape up
25301 \size normal
25302 \emph off
25303 \bar no
25304 \noun off
25305  other than those described below will produce arabic numerals.
25306  It would not be surprising to see this change in the future.
25307 \end_layout
25308
25309 \end_inset
25310
25311  
25312 \begin_inset Flex Code
25313 status collapsed
25314
25315 \begin_layout Plain Layout
25316 arabic
25317 \end_layout
25318
25319 \end_inset
25320
25321 :
25322  1,
25323  2,
25324  3,\SpecialChar ldots
25325 ;
25326  
25327 \begin_inset Flex Code
25328 status collapsed
25329
25330 \begin_layout Plain Layout
25331 alph
25332 \end_layout
25333
25334 \end_inset
25335
25336  for lower-case letters:
25337  a,
25338  b,
25339  c,
25340  \SpecialChar ldots
25341 ;
25342  
25343 \begin_inset Flex Code
25344 status collapsed
25345
25346 \begin_layout Plain Layout
25347 Alph
25348 \end_layout
25349
25350 \end_inset
25351
25352  for upper-case letters:
25353  A,
25354  B,
25355  C,
25356  \SpecialChar ldots
25357 ;
25358  
25359 \begin_inset Flex Code
25360 status collapsed
25361
25362 \begin_layout Plain Layout
25363 roman
25364 \end_layout
25365
25366 \end_inset
25367
25368  for lower-case roman numerals:
25369  i,
25370  ii,
25371  iii,
25372  \SpecialChar ldots
25373 ;
25374  
25375 \begin_inset Flex Code
25376 status collapsed
25377
25378 \begin_layout Plain Layout
25379 Roman
25380 \end_layout
25381
25382 \end_inset
25383
25384  for upper-case roman numerals:
25385  I,
25386  II,
25387  III\SpecialChar ldots
25388 ;
25389  
25390 \begin_inset Flex Code
25391 status collapsed
25392
25393 \begin_layout Plain Layout
25394 hebrew
25395 \end_layout
25396
25397 \end_inset
25398
25399  for hebrew numerals.
25400 \end_layout
25401
25402 \end_deeper
25403 \begin_layout Standard
25404 If LabelString is not defined,
25405  a default value is constructed as follows:
25406  if the counter has a 
25407 \change_deleted 731793113 1604355218
25408 master
25409 \change_inserted 731793113 1604355221
25410 parent
25411 \change_unchanged
25412  counter 
25413 \begin_inset Flex Code
25414 status collapsed
25415
25416 \begin_layout Plain Layout
25417
25418 \change_deleted 731793113 1604355223
25419 master
25420 \change_inserted 731793113 1604355226
25421 parent
25422 \change_unchanged
25423
25424 \end_layout
25425
25426 \end_inset
25427
25428  (defined via 
25429 \begin_inset Flex Code
25430 status collapsed
25431
25432 \begin_layout Plain Layout
25433 Within
25434 \end_layout
25435
25436 \end_inset
25437
25438 ),
25439  the string
25440 \begin_inset Newline newline
25441 \end_inset
25442
25443
25444 \begin_inset Flex Code
25445 status collapsed
25446
25447 \begin_layout Plain Layout
25448
25449 \backslash
25450 the
25451 \change_inserted 731793113 1604355228
25452 parent
25453 \change_deleted 731793113 1604355230
25454 master
25455 \change_unchanged
25456 .
25457 \backslash
25458 arabic{counter}
25459 \end_layout
25460
25461 \end_inset
25462
25463  is used;
25464  otherwise the string 
25465 \begin_inset Flex Code
25466 status collapsed
25467
25468 \begin_layout Plain Layout
25469
25470 \backslash
25471 arabic{counter}
25472 \end_layout
25473
25474 \end_inset
25475
25476  is used.
25477 \end_layout
25478
25479 \begin_layout Description
25480 \begin_inset Flex Code
25481 status collapsed
25482
25483 \begin_layout Plain Layout
25484 LabelStringAppendix
25485 \end_layout
25486
25487 \end_inset
25488
25489  [
25490 \begin_inset Flex Code
25491 status collapsed
25492
25493 \begin_layout Plain Layout
25494 string
25495 \end_layout
25496
25497 \end_inset
25498
25499
25500 \begin_inset Quotes eld
25501 \end_inset
25502
25503
25504 \begin_inset Quotes erd
25505 \end_inset
25506
25507 ] Same as 
25508 \begin_inset Flex Code
25509 status collapsed
25510
25511 \begin_layout Plain Layout
25512 LabelString
25513 \end_layout
25514
25515 \end_inset
25516
25517 ,
25518  but for use in the Appendix.
25519 \change_inserted -584632292 1607202551
25520
25521 \end_layout
25522
25523 \begin_layout Description
25524
25525 \change_inserted -584632292 1607202682
25526 \begin_inset Flex Code
25527 status open
25528
25529 \begin_layout Plain Layout
25530 LaTeXName
25531 \end_layout
25532
25533 \end_inset
25534
25535  [
25536 \begin_inset Flex Code
25537 status open
25538
25539 \begin_layout Plain Layout
25540
25541 \change_inserted -584632292 1607202576
25542 string
25543 \change_unchanged
25544
25545 \end_layout
25546
25547 \end_inset
25548
25549  = 
25550 \begin_inset Quotes eld
25551 \end_inset
25552
25553
25554 \begin_inset Quotes erd
25555 \end_inset
25556
25557 ] The counter name as used in \SpecialChar LaTeX
25558 .
25559  (
25560 \change_inserted 34634807 1619711355
25561 e
25562 \change_deleted 34634807 1619711355
25563 E
25564 \change_inserted -584632292 1607202682
25565 .g.,
25566  in \SpecialChar LyX
25567 ,
25568  there is a counter named `theorem',
25569  but it is output to \SpecialChar LaTeX
25570  as `thm'.)
25571 \change_unchanged
25572
25573 \end_layout
25574
25575 \begin_layout Description
25576 \begin_inset Flex Code
25577 status collapsed
25578
25579 \begin_layout Plain Layout
25580 PrettyFormat
25581 \end_layout
25582
25583 \end_inset
25584
25585  [
25586 \begin_inset Flex Code
25587 status collapsed
25588
25589 \begin_layout Plain Layout
25590 string
25591 \end_layout
25592
25593 \end_inset
25594
25595 =
25596 \begin_inset Quotes erd
25597 \end_inset
25598
25599
25600 \begin_inset Quotes erd
25601 \end_inset
25602
25603 ] A format for use with formatted references to this counter.
25604  For example,
25605  one might want to have references to section numbers appear as 
25606 \begin_inset Quotes eld
25607 \end_inset
25608
25609 Section 2.4
25610 \begin_inset Quotes erd
25611 \end_inset
25612
25613 .
25614  The string should contain 
25615 \begin_inset Quotes eld
25616 \end_inset
25617
25618 ##
25619 \begin_inset Quotes erd
25620 \end_inset
25621
25622 .
25623  This will be replaced by the counter number itself.
25624  So,
25625  for sections,
25626  it would be:
25627  Section ##.
25628 \end_layout
25629
25630 \begin_layout Description
25631 \begin_inset Flex Code
25632 status collapsed
25633
25634 \begin_layout Plain Layout
25635 Within
25636 \end_layout
25637
25638 \end_inset
25639
25640  [
25641 \begin_inset Flex Code
25642 status collapsed
25643
25644 \begin_layout Plain Layout
25645 string
25646 \end_layout
25647
25648 \end_inset
25649
25650 =
25651 \begin_inset Quotes erd
25652 \end_inset
25653
25654
25655 \begin_inset Quotes erd
25656 \end_inset
25657
25658 ] If this is set to the name of another counter,
25659  the present counter will be reset every time the other one is increased.
25660  For example,
25661  
25662 \begin_inset Flex Code
25663 status collapsed
25664
25665 \begin_layout Plain Layout
25666 subsection
25667 \end_layout
25668
25669 \end_inset
25670
25671  is numbered inside 
25672 \begin_inset Flex Code
25673 status collapsed
25674
25675 \begin_layout Plain Layout
25676 section
25677 \end_layout
25678
25679 \end_inset
25680
25681 .
25682 \end_layout
25683
25684 \begin_layout Subsection
25685 Font description
25686 \begin_inset CommandInset label
25687 LatexCommand label
25688 name "subsec:Font-description"
25689
25690 \end_inset
25691
25692
25693 \end_layout
25694
25695 \begin_layout Standard
25696 A font description looks like this:
25697 \end_layout
25698
25699 \begin_layout LyX-Code
25700 Font 
25701 \family roman
25702 \emph on
25703 or
25704 \family default
25705 \emph default
25706  LabelFont
25707 \emph on
25708  
25709 \family roman
25710 or
25711 \family default
25712 \emph default
25713  DefaultFont
25714 \end_layout
25715
25716 \begin_layout LyX-Code
25717  ...
25718 \end_layout
25719
25720 \begin_layout LyX-Code
25721 EndFont
25722 \end_layout
25723
25724 \begin_layout Standard
25725 The following commands are available:
25726 \end_layout
25727
25728 \begin_layout Description
25729 \begin_inset Flex Code
25730 status collapsed
25731
25732 \begin_layout Plain Layout
25733 Color
25734 \end_layout
25735
25736 \end_inset
25737
25738  [
25739 \change_deleted -712698321 1607682984
25740
25741 \begin_inset Flex Code
25742 status collapsed
25743
25744 \begin_layout Plain Layout
25745
25746 \emph on
25747 none
25748 \end_layout
25749
25750 \end_inset
25751
25752 ,
25753  
25754 \begin_inset Flex Code
25755 status collapsed
25756
25757 \begin_layout Plain Layout
25758 black
25759 \end_layout
25760
25761 \end_inset
25762
25763 ,
25764  
25765 \begin_inset Flex Code
25766 status collapsed
25767
25768 \begin_layout Plain Layout
25769 white
25770 \end_layout
25771
25772 \end_inset
25773
25774 ,
25775  
25776 \begin_inset Flex Code
25777 status collapsed
25778
25779 \begin_layout Plain Layout
25780 red
25781 \end_layout
25782
25783 \end_inset
25784
25785 ,
25786  
25787 \begin_inset Flex Code
25788 status collapsed
25789
25790 \begin_layout Plain Layout
25791 green
25792 \end_layout
25793
25794 \end_inset
25795
25796 ,
25797  
25798 \begin_inset Flex Code
25799 status collapsed
25800
25801 \begin_layout Plain Layout
25802 blue
25803 \end_layout
25804
25805 \end_inset
25806
25807 ,
25808  
25809 \begin_inset Flex Code
25810 status collapsed
25811
25812 \begin_layout Plain Layout
25813 cyan
25814 \end_layout
25815
25816 \end_inset
25817
25818 ,
25819  
25820 \begin_inset Flex Code
25821 status collapsed
25822
25823 \begin_layout Plain Layout
25824 magenta
25825 \end_layout
25826
25827 \end_inset
25828
25829 ,
25830  
25831 \begin_inset Flex Code
25832 status collapsed
25833
25834 \begin_layout Plain Layout
25835 yellow
25836 \end_layout
25837
25838 \end_inset
25839
25840 ,
25841  
25842 \begin_inset Flex Code
25843 status collapsed
25844
25845 \begin_layout Plain Layout
25846 brown
25847 \end_layout
25848
25849 \end_inset
25850
25851 ,
25852  
25853 \begin_inset Flex Code
25854 status collapsed
25855
25856 \begin_layout Plain Layout
25857 darkgray
25858 \end_layout
25859
25860 \end_inset
25861
25862 ,
25863  
25864 \begin_inset Flex Code
25865 status collapsed
25866
25867 \begin_layout Plain Layout
25868 gray
25869 \end_layout
25870
25871 \end_inset
25872
25873 ,
25874  
25875 \begin_inset Flex Code
25876 status collapsed
25877
25878 \begin_layout Plain Layout
25879 lightgray
25880 \end_layout
25881
25882 \end_inset
25883
25884 ,
25885  
25886 \begin_inset Flex Code
25887 status collapsed
25888
25889 \begin_layout Plain Layout
25890 lime
25891 \end_layout
25892
25893 \end_inset
25894
25895 ,
25896  
25897 \begin_inset Flex Code
25898 status collapsed
25899
25900 \begin_layout Plain Layout
25901 orange
25902 \end_layout
25903
25904 \end_inset
25905
25906 ,
25907  
25908 \begin_inset Flex Code
25909 status collapsed
25910
25911 \begin_layout Plain Layout
25912 olive
25913 \end_layout
25914
25915 \end_inset
25916
25917 ,
25918  
25919 \begin_inset Flex Code
25920 status collapsed
25921
25922 \begin_layout Plain Layout
25923 pink
25924 \end_layout
25925
25926 \end_inset
25927
25928 ,
25929  
25930 \begin_inset Flex Code
25931 status collapsed
25932
25933 \begin_layout Plain Layout
25934 purple
25935 \end_layout
25936
25937 \end_inset
25938
25939 ,
25940  
25941 \begin_inset Flex Code
25942 status collapsed
25943
25944 \begin_layout Plain Layout
25945 teal
25946 \end_layout
25947
25948 \end_inset
25949
25950 ,
25951  
25952 \begin_inset Flex Code
25953 status collapsed
25954
25955 \begin_layout Plain Layout
25956 violet
25957 \end_layout
25958
25959 \end_inset
25960
25961
25962 \change_inserted -712698321 1607683139
25963
25964 \begin_inset Flex Code
25965 status collapsed
25966
25967 \begin_layout Plain Layout
25968
25969 \change_inserted -712698321 1607683135
25970 string
25971 \change_unchanged
25972
25973 \end_layout
25974
25975 \end_inset
25976
25977 ] See appendix
25978 \begin_inset space ~
25979 \end_inset
25980
25981
25982 \begin_inset CommandInset ref
25983 LatexCommand ref
25984 reference "chap:Names-of-colors"
25985 plural "false"
25986 caps "false"
25987 noprefix "false"
25988 nolink "false"
25989
25990 \end_inset
25991
25992  for 
25993 \change_deleted -712698321 1607683144
25994 ]
25995 \change_inserted -712698321 1607683146
25996 valid arguments.
25997 \change_unchanged
25998
25999 \end_layout
26000
26001 \begin_layout Description
26002 \begin_inset Flex Code
26003 status collapsed
26004
26005 \begin_layout Plain Layout
26006 Family
26007 \end_layout
26008
26009 \end_inset
26010
26011  [
26012 \begin_inset Flex Code
26013 status collapsed
26014
26015 \begin_layout Plain Layout
26016
26017 \emph on
26018 Roman
26019 \end_layout
26020
26021 \end_inset
26022
26023 ,
26024  
26025 \begin_inset Flex Code
26026 status collapsed
26027
26028 \begin_layout Plain Layout
26029 Sans
26030 \end_layout
26031
26032 \end_inset
26033
26034 ,
26035  
26036 \begin_inset Flex Code
26037 status collapsed
26038
26039 \begin_layout Plain Layout
26040 Typewriter
26041 \end_layout
26042
26043 \end_inset
26044
26045 ]
26046 \end_layout
26047
26048 \begin_layout Description
26049 \begin_inset Flex Code
26050 status collapsed
26051
26052 \begin_layout Plain Layout
26053 Misc
26054 \end_layout
26055
26056 \end_inset
26057
26058  [
26059 \begin_inset Flex Code
26060 status collapsed
26061
26062 \begin_layout Plain Layout
26063 string
26064 \end_layout
26065
26066 \end_inset
26067
26068 ] Valid arguments are:
26069  
26070 \begin_inset Flex Code
26071 status collapsed
26072
26073 \begin_layout Plain Layout
26074 emph
26075 \end_layout
26076
26077 \end_inset
26078
26079 ,
26080  
26081 \begin_inset Flex Code
26082 status collapsed
26083
26084 \begin_layout Plain Layout
26085 noun
26086 \end_layout
26087
26088 \end_inset
26089
26090 ,
26091  
26092 \begin_inset Flex Code
26093 status collapsed
26094
26095 \begin_layout Plain Layout
26096 strikeout
26097 \end_layout
26098
26099 \end_inset
26100
26101 ,
26102  
26103 \begin_inset Flex Code
26104 status collapsed
26105
26106 \begin_layout Plain Layout
26107 underbar
26108 \end_layout
26109
26110 \end_inset
26111
26112 ,
26113  
26114 \begin_inset Flex Code
26115 status collapsed
26116
26117 \begin_layout Plain Layout
26118 uuline
26119 \end_layout
26120
26121 \end_inset
26122
26123 ,
26124  
26125 \begin_inset Flex Code
26126 status collapsed
26127
26128 \begin_layout Plain Layout
26129 uwave
26130 \end_layout
26131
26132 \end_inset
26133
26134 ,
26135  
26136 \begin_inset Flex Code
26137 status collapsed
26138
26139 \begin_layout Plain Layout
26140 no_emph
26141 \end_layout
26142
26143 \end_inset
26144
26145 ,
26146  
26147 \begin_inset Flex Code
26148 status collapsed
26149
26150 \begin_layout Plain Layout
26151 no_noun
26152 \end_layout
26153
26154 \end_inset
26155
26156 ,
26157  
26158 \begin_inset Flex Code
26159 status collapsed
26160
26161 \begin_layout Plain Layout
26162 no_strikeout
26163 \end_layout
26164
26165 \end_inset
26166
26167 ,
26168  
26169 \begin_inset Flex Code
26170 status collapsed
26171
26172 \begin_layout Plain Layout
26173 no_bar
26174 \end_layout
26175
26176 \end_inset
26177
26178 ,
26179  
26180 \begin_inset Flex Code
26181 status collapsed
26182
26183 \begin_layout Plain Layout
26184 no_uuline
26185 \end_layout
26186
26187 \end_inset
26188
26189  and 
26190 \begin_inset Flex Code
26191 status collapsed
26192
26193 \begin_layout Plain Layout
26194 no_uwave
26195 \end_layout
26196
26197 \end_inset
26198
26199 .
26200  Each of these turns on or off the corresponding attribute.
26201  For example,
26202  
26203 \begin_inset Flex Code
26204 status collapsed
26205
26206 \begin_layout Plain Layout
26207 emph
26208 \end_layout
26209
26210 \end_inset
26211
26212  turns on emphasis,
26213  and 
26214 \begin_inset Flex Code
26215 status collapsed
26216
26217 \begin_layout Plain Layout
26218 no_emph
26219 \end_layout
26220
26221 \end_inset
26222
26223  turns it off.
26224  
26225 \begin_inset Newline newline
26226 \end_inset
26227
26228 If the latter seems puzzling,
26229  remember that the font settings for the present context are generally inherited from the surrounding context.
26230  So 
26231 \begin_inset Flex Code
26232 status collapsed
26233
26234 \begin_layout Plain Layout
26235 no_emph
26236 \end_layout
26237
26238 \end_inset
26239
26240  would turn off the emphasis that was anyway in effect,
26241  say,
26242  in a theorem environment.
26243 \end_layout
26244
26245 \begin_layout Description
26246 \begin_inset Flex Code
26247 status collapsed
26248
26249 \begin_layout Plain Layout
26250 Series
26251 \end_layout
26252
26253 \end_inset
26254
26255  [
26256 \begin_inset Flex Code
26257 status collapsed
26258
26259 \begin_layout Plain Layout
26260
26261 \emph on
26262 Medium
26263 \end_layout
26264
26265 \end_inset
26266
26267 ,
26268  
26269 \begin_inset Flex Code
26270 status collapsed
26271
26272 \begin_layout Plain Layout
26273 Bold
26274 \end_layout
26275
26276 \end_inset
26277
26278
26279 \end_layout
26280
26281 \begin_layout Description
26282 \begin_inset Flex Code
26283 status collapsed
26284
26285 \begin_layout Plain Layout
26286 Shape
26287 \end_layout
26288
26289 \end_inset
26290
26291  [
26292 \begin_inset Flex Code
26293 status collapsed
26294
26295 \begin_layout Plain Layout
26296
26297 \emph on
26298 Up
26299 \end_layout
26300
26301 \end_inset
26302
26303 ,
26304  
26305 \begin_inset Flex Code
26306 status collapsed
26307
26308 \begin_layout Plain Layout
26309 Italic
26310 \end_layout
26311
26312 \end_inset
26313
26314 ,
26315  
26316 \begin_inset Flex Code
26317 status collapsed
26318
26319 \begin_layout Plain Layout
26320 SmallCaps
26321 \end_layout
26322
26323 \end_inset
26324
26325 ,
26326  
26327 \begin_inset Flex Code
26328 status collapsed
26329
26330 \begin_layout Plain Layout
26331 Slanted
26332 \end_layout
26333
26334 \end_inset
26335
26336
26337 \end_layout
26338
26339 \begin_layout Description
26340 \begin_inset Flex Code
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344 Size
26345 \end_layout
26346
26347 \end_inset
26348
26349  [
26350 \begin_inset Flex Code
26351 status collapsed
26352
26353 \begin_layout Plain Layout
26354 tiny
26355 \end_layout
26356
26357 \end_inset
26358
26359 ,
26360  
26361 \begin_inset Flex Code
26362 status collapsed
26363
26364 \begin_layout Plain Layout
26365 small
26366 \end_layout
26367
26368 \end_inset
26369
26370 ,
26371  
26372 \begin_inset Flex Code
26373 status collapsed
26374
26375 \begin_layout Plain Layout
26376
26377 \emph on
26378 normal
26379 \end_layout
26380
26381 \end_inset
26382
26383 ,
26384  
26385 \begin_inset Flex Code
26386 status collapsed
26387
26388 \begin_layout Plain Layout
26389 large
26390 \end_layout
26391
26392 \end_inset
26393
26394 ,
26395  
26396 \begin_inset Flex Code
26397 status collapsed
26398
26399 \begin_layout Plain Layout
26400 larger
26401 \end_layout
26402
26403 \end_inset
26404
26405 ,
26406  
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 largest
26412 \end_layout
26413
26414 \end_inset
26415
26416 ,
26417  
26418 \begin_inset Flex Code
26419 status collapsed
26420
26421 \begin_layout Plain Layout
26422 huge
26423 \end_layout
26424
26425 \end_inset
26426
26427 ,
26428  
26429 \begin_inset Flex Code
26430 status collapsed
26431
26432 \begin_layout Plain Layout
26433 giant
26434 \end_layout
26435
26436 \end_inset
26437
26438 ]
26439 \end_layout
26440
26441 \begin_layout Subsection
26442 \begin_inset CommandInset label
26443 LatexCommand label
26444 name "subsec:Citation-engine-description"
26445
26446 \end_inset
26447
26448 Cite engine description
26449 \end_layout
26450
26451 \begin_layout Standard
26452 The 
26453 \begin_inset Flex Code
26454 status collapsed
26455
26456 \begin_layout Plain Layout
26457 CiteEngine
26458 \end_layout
26459
26460 \end_inset
26461
26462  blocks,
26463  as used mainly in cite engine files (see 
26464 \begin_inset CommandInset ref
26465 LatexCommand ref
26466 reference "subsec:Cite-Engine-Files"
26467 plural "false"
26468 caps "false"
26469 noprefix "false"
26470 nolink "false"
26471
26472 \end_inset
26473
26474 ),
26475  define the citation commands provided by a specific 
26476 \begin_inset Quotes eld
26477 \end_inset
26478
26479 cite engine
26480 \begin_inset Quotes erd
26481 \end_inset
26482
26483 .
26484  A cite engine,
26485  in \SpecialChar LyX
26486  terms,
26487  is way specific way to format citations,
26488  using numbers,
26489  author names and/or years.
26490  Currently,
26491  \SpecialChar LyX
26492  supports three such engine types,
26493  namely:
26494 \end_layout
26495
26496 \begin_layout Enumerate
26497 \begin_inset Flex Code
26498 status collapsed
26499
26500 \begin_layout Plain Layout
26501 default
26502 \end_layout
26503
26504 \end_inset
26505
26506 :
26507  the default Bib\SpecialChar TeX
26508  way to format citations,
26509  a simple numeric style (e.
26510 \begin_inset space \thinspace{}
26511 \end_inset
26512
26513 g.,
26514  
26515 \begin_inset Quotes eld
26516 \end_inset
26517
26518 [1]
26519 \begin_inset Quotes erd
26520 \end_inset
26521
26522 )
26523 \end_layout
26524
26525 \begin_layout Enumerate
26526 \begin_inset Flex Code
26527 status collapsed
26528
26529 \begin_layout Plain Layout
26530 authoryear
26531 \end_layout
26532
26533 \end_inset
26534
26535 :
26536  Harvard-styled citations using author names and publication year (e.
26537 \begin_inset space \thinspace{}
26538 \end_inset
26539
26540 g.,
26541  
26542 \begin_inset Quotes eld
26543 \end_inset
26544
26545 Smith and Miller (2017b)
26546 \begin_inset Quotes erd
26547 \end_inset
26548
26549 )
26550 \end_layout
26551
26552 \begin_layout Enumerate
26553 \begin_inset Flex Code
26554 status collapsed
26555
26556 \begin_layout Plain Layout
26557 numerical
26558 \end_layout
26559
26560 \end_inset
26561
26562 :
26563  extended numerical citations that also allow for author or title next to the number (e.
26564 \begin_inset space \thinspace{}
26565 \end_inset
26566
26567 g.,
26568  
26569 \begin_inset Quotes eld
26570 \end_inset
26571
26572 Smith and Miller [1]
26573 \begin_inset Quotes erd
26574 \end_inset
26575
26576 )
26577 \end_layout
26578
26579 \begin_layout Standard
26580 \begin_inset Flex Code
26581 status collapsed
26582
26583 \begin_layout Plain Layout
26584 CiteEngine
26585 \end_layout
26586
26587 \end_inset
26588
26589  blocks look like this:
26590 \end_layout
26591
26592 \begin_layout LyX-Code
26593 CiteEngine default
26594 \end_layout
26595
26596 \begin_layout LyX-Code
26597  cite
26598 \end_layout
26599
26600 \begin_layout LyX-Code
26601  Citep*[][]
26602 \end_layout
26603
26604 \begin_layout LyX-Code
26605  citeyearpar[][]=parencite*
26606 \end_layout
26607
26608 \begin_layout LyX-Code
26609  ...
26610 \end_layout
26611
26612 \begin_layout LyX-Code
26613 End
26614 \end_layout
26615
26616 \begin_layout Standard
26617 The tag following 
26618 \begin_inset Flex Code
26619 status collapsed
26620
26621 \begin_layout Plain Layout
26622 CiteEngine
26623 \end_layout
26624
26625 \end_inset
26626
26627  denotes the engine.
26628  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
26629  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
26630  command and the \SpecialChar LaTeX
26631  output or more complex in order to differentiate things.
26632  The full syntax is:
26633 \end_layout
26634
26635 \begin_layout LyX-Code
26636 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
26637 \end_layout
26638
26639 \begin_layout Itemize
26640 \begin_inset Flex Code
26641 status collapsed
26642
26643 \begin_layout Plain Layout
26644 LyXName
26645 \end_layout
26646
26647 \end_inset
26648
26649 :
26650  The name as used in the 
26651 \begin_inset Flex Code
26652 status collapsed
26653
26654 \begin_layout Plain Layout
26655 *.lyx
26656 \end_layout
26657
26658 \end_inset
26659
26660  file.
26661 \end_layout
26662
26663 \begin_deeper
26664 \begin_layout Standard
26665 For portability reasons,
26666  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
26667  and thus we need to differentiate a 
26668 \begin_inset Flex Code
26669 status collapsed
26670
26671 \begin_layout Plain Layout
26672 latexcmd
26673 \end_layout
26674
26675 \end_inset
26676
26677  sometimes,
26678  if the \SpecialChar LaTeX
26679  command names differ).
26680 \end_layout
26681
26682 \end_deeper
26683 \begin_layout Itemize
26684 \begin_inset Flex Code
26685 status collapsed
26686
26687 \begin_layout Plain Layout
26688 alias
26689 \end_layout
26690
26691 \end_inset
26692
26693 :
26694  a (comma-separated) list of commands that fall back to the given 
26695 \begin_inset Flex Code
26696 status collapsed
26697
26698 \begin_layout Plain Layout
26699 LyXName
26700 \end_layout
26701
26702 \end_inset
26703
26704  in the current engine.
26705  This eases the switch of citation packages and engines.
26706  The 
26707 \begin_inset Flex Code
26708 status collapsed
26709
26710 \begin_layout Plain Layout
26711 alias
26712 \end_layout
26713
26714 \end_inset
26715
26716  can be compared to 
26717 \begin_inset Flex Code
26718 status collapsed
26719
26720 \begin_layout Plain Layout
26721 ObsoletedBy
26722 \end_layout
26723
26724 \end_inset
26725
26726  in layout definitions.
26727 \end_layout
26728
26729 \begin_layout Itemize
26730 \begin_inset Flex Code
26731 status collapsed
26732
26733 \begin_layout Plain Layout
26734 latexcmd
26735 \end_layout
26736
26737 \end_inset
26738
26739 :
26740  The actual \SpecialChar LaTeX
26741  command that is output.
26742  
26743 \end_layout
26744
26745 \begin_layout Standard
26746 \begin_inset Flex Code
26747 status collapsed
26748
26749 \begin_layout Plain Layout
26750 Alias
26751 \end_layout
26752
26753 \end_inset
26754
26755  and 
26756 \begin_inset Flex Code
26757 status collapsed
26758
26759 \begin_layout Plain Layout
26760 latexcmd
26761 \end_layout
26762
26763 \end_inset
26764
26765  are optional.
26766  If no 
26767 \begin_inset Flex Code
26768 status collapsed
26769
26770 \begin_layout Plain Layout
26771 latexcmd
26772 \end_layout
26773
26774 \end_inset
26775
26776  is given,
26777  the 
26778 \begin_inset Flex Code
26779 status collapsed
26780
26781 \begin_layout Plain Layout
26782 LyXName
26783 \end_layout
26784
26785 \end_inset
26786
26787  will be output to \SpecialChar LaTeX
26788 .
26789 \end_layout
26790
26791 \begin_layout Standard
26792 Note further:
26793 \end_layout
26794
26795 \begin_layout Itemize
26796 Capitalization indicates that the command also has a capitalized form (
26797 \begin_inset Flex Code
26798 status collapsed
26799
26800 \begin_layout Plain Layout
26801
26802 \backslash
26803 Latexcmd
26804 \end_layout
26805
26806 \end_inset
26807
26808  vs.
26809  
26810 \begin_inset Flex Code
26811 status collapsed
26812
26813 \begin_layout Plain Layout
26814
26815 \backslash
26816 latexcmd
26817 \end_layout
26818
26819 \end_inset
26820
26821 ).
26822  These usually enforce up-casing of name prefixes (
26823 \emph on
26824 von Goethe
26825 \emph default
26826  
26827 \begin_inset Formula $\Rightarrow$
26828 \end_inset
26829
26830  
26831 \emph on
26832 Von Goethe
26833 \emph default
26834 ).
26835 \end_layout
26836
26837 \begin_layout Itemize
26838 Brackets 
26839 \begin_inset Flex Code
26840 status collapsed
26841
26842 \begin_layout Plain Layout
26843 []
26844 \end_layout
26845
26846 \end_inset
26847
26848  indicate the number of optional arguments (there can be 0–2).
26849 \end_layout
26850
26851 \begin_layout Itemize
26852 A star 
26853 \begin_inset Flex Code
26854 status collapsed
26855
26856 \begin_layout Plain Layout
26857 *
26858 \end_layout
26859
26860 \end_inset
26861
26862  indicates there is a starred version of the command (
26863 \begin_inset Flex Code
26864 status collapsed
26865
26866 \begin_layout Plain Layout
26867
26868 \backslash
26869 latexcmd*
26870 \end_layout
26871
26872 \end_inset
26873
26874  vs.
26875  
26876 \begin_inset Flex Code
26877 status collapsed
26878
26879 \begin_layout Plain Layout
26880
26881 \backslash
26882 latexcmd
26883 \end_layout
26884
26885 \end_inset
26886
26887 ).
26888  
26889 \end_layout
26890
26891 \begin_deeper
26892 \begin_layout Standard
26893 By default,
26894  the starred version means:
26895  Output all authors even if it should be shortened with 
26896 \begin_inset Quotes eld
26897 \end_inset
26898
26899 et al.
26900 \begin_inset Quotes erd
26901 \end_inset
26902
26903  due to the 
26904 \begin_inset Flex Code
26905 status collapsed
26906
26907 \begin_layout Plain Layout
26908 MaxCiteNames
26909 \end_layout
26910
26911 \end_inset
26912
26913  threshold.
26914 \end_layout
26915
26916 \begin_layout Standard
26917 If the star has a different meaning for a given command,
26918  it can be specified in angle brackets:
26919  
26920 \begin_inset Flex Code
26921 status collapsed
26922
26923 \begin_layout Plain Layout
26924 <!_stardesc!_stardesctooltip>
26925 \end_layout
26926
26927 \end_inset
26928
26929 .
26930  Maximal two translatable macro keywords,
26931  marked by the prefix 
26932 \begin_inset Flex Code
26933 status collapsed
26934
26935 \begin_layout Plain Layout
26936 !_
26937 \end_layout
26938
26939 \end_inset
26940
26941 ,
26942  can be given.
26943  The first points to the string that replaces the 
26944 \begin_inset Quotes eld
26945 \end_inset
26946
26947 Full aut&hor list
26948 \begin_inset Quotes erd
26949 \end_inset
26950
26951  checkbox label in the citation dialog,
26952  the second one to an optional tool tip for this checkbox.
26953  
26954 \end_layout
26955
26956 \begin_layout Standard
26957 Note that these two macros have to be defined in a 
26958 \begin_inset Flex Code
26959 status collapsed
26960
26961 \begin_layout Plain Layout
26962 CiteFormat
26963 \end_layout
26964
26965 \end_inset
26966
26967  (see next section),
26968  dropping the 
26969 \begin_inset Flex Code
26970 status collapsed
26971
26972 \begin_layout Plain Layout
26973 !
26974 \end_layout
26975
26976 \end_inset
26977
26978  from the prefix,
26979  like this:
26980  
26981 \end_layout
26982
26983 \begin_layout LyX-Code
26984 _stardesc Sta&rred command label
26985 \end_layout
26986
26987 \begin_layout LyX-Code
26988 _stardesctooltip Tooltip for the starred command checkbox.
26989 \end_layout
26990
26991 \end_deeper
26992 \begin_layout Itemize
26993 A dollar sign 
26994 \begin_inset Flex Code
26995 status collapsed
26996
26997 \begin_layout Plain Layout
26998 $
26999 \end_layout
27000
27001 \end_inset
27002
27003  indicates that this command features 
27004 \begin_inset Quotes eld
27005 \end_inset
27006
27007 qualified citation lists
27008 \begin_inset Quotes erd
27009 \end_inset
27010
27011 .
27012  This is a 
27013 \family sans
27014 Biblatex
27015 \family default
27016 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
27017  Please refer to the 
27018 \family sans
27019 Biblatex
27020 \family default
27021  manual for details.
27022 \change_inserted -712698321 1526898670
27023
27024 \end_layout
27025
27026 \begin_layout Standard
27027
27028 \change_inserted -712698321 1526899524
27029 If you want to add a cite command to a cite engine (e.
27030 \begin_inset space \thinspace{}
27031 \end_inset
27032
27033 g.,
27034  add a specific command provided by a class),
27035  you can use 
27036 \begin_inset Flex Code
27037 status collapsed
27038
27039 \begin_layout Plain Layout
27040
27041 \change_inserted -712698321 1526898768
27042 AddToCiteEngine <engine type> \SpecialChar ldots
27043  End
27044 \change_unchanged
27045
27046 \end_layout
27047
27048 \end_inset
27049
27050 .
27051  Note that only cite commands that do not exist yet are added.
27052 \change_unchanged
27053
27054 \end_layout
27055
27056 \begin_layout Subsection
27057 \begin_inset CommandInset label
27058 LatexCommand label
27059 name "subsec:Citation-format-description"
27060
27061 \end_inset
27062
27063 Cite format description
27064 \end_layout
27065
27066 \begin_layout Standard
27067 The 
27068 \begin_inset Flex Code
27069 status collapsed
27070
27071 \begin_layout Plain Layout
27072 CiteFormat
27073 \end_layout
27074
27075 \end_inset
27076
27077  blocks are used to describe how bibliographic information should be displayed,
27078  both within \SpecialChar LyX
27079  itself (in the citation dialog and in tooltips,
27080  for example) and in XHTML output.
27081  Such a block might look like this:
27082 \end_layout
27083
27084 \begin_layout LyX-Code
27085 CiteFormat
27086 \end_layout
27087
27088 \begin_layout LyX-Code
27089  article ...
27090 \end_layout
27091
27092 \begin_layout LyX-Code
27093  book ...
27094 \end_layout
27095
27096 \begin_layout LyX-Code
27097 End
27098 \end_layout
27099
27100 \begin_layout Standard
27101 or
27102 \end_layout
27103
27104 \begin_layout LyX-Code
27105 CiteFormat
27106 \end_layout
27107
27108 \begin_layout LyX-Code
27109  cite ...
27110 \end_layout
27111
27112 \begin_layout LyX-Code
27113  citet*[][] ...
27114 \end_layout
27115
27116 \begin_layout LyX-Code
27117 End
27118 \end_layout
27119
27120 \begin_layout Standard
27121 In the first case,
27122  the individual lines define how the bibliographic information associated with an article or book,
27123  respectively,
27124  is to be displayed,
27125  and such a definition can be given for any 
27126 \begin_inset Quotes els
27127 \end_inset
27128
27129 entry type
27130 \begin_inset Quotes ers
27131 \end_inset
27132
27133  that might be present in a Bib\SpecialChar TeX
27134  file.
27135  \SpecialChar LyX
27136  defines a default format in the source code that will be used if no specific definition has been given.
27137  \SpecialChar LyX
27138  predefines several formats in the file 
27139 \begin_inset Flex Code
27140 status collapsed
27141
27142 \begin_layout Plain Layout
27143 stdciteformats.inc
27144 \end_layout
27145
27146 \end_inset
27147
27148 ,
27149  which is included in most of \SpecialChar LyX
27150 's document classes.
27151 \end_layout
27152
27153 \begin_layout Standard
27154 In the second case,
27155  the lines define how a specific citation command (in the example 
27156 \begin_inset Flex Code
27157 status collapsed
27158
27159 \begin_layout Plain Layout
27160
27161 \backslash
27162 cite
27163 \end_layout
27164
27165 \end_inset
27166
27167 ,
27168  
27169 \begin_inset Flex Code
27170 status collapsed
27171
27172 \begin_layout Plain Layout
27173
27174 \backslash
27175 citet
27176 \end_layout
27177
27178 \end_inset
27179
27180 ) is to be displayed on the citation inset label,
27181  in the citation dialog,
27182  menu or XHTML output.
27183  \SpecialChar LyX
27184  defines such formats for the citation style variants it supports via 
27185 \family sans
27186 Document\SpecialChar menuseparator
27187 Setting\SpecialChar menuseparator
27188 Bibliography\SpecialChar ldots
27189
27190 \family default
27191  in specific 
27192 \begin_inset Flex Code
27193 status collapsed
27194
27195 \begin_layout Plain Layout
27196 *.citeengine
27197 \end_layout
27198
27199 \end_inset
27200
27201  files that are shipped with \SpecialChar LyX
27202  (see 
27203 \begin_inset CommandInset ref
27204 LatexCommand ref
27205 reference "subsec:Cite-Engine-Files"
27206 plural "false"
27207 caps "false"
27208 noprefix "false"
27209 nolink "false"
27210
27211 \end_inset
27212
27213 ).
27214 \end_layout
27215
27216 \begin_layout Standard
27217 The definitions use a simple language that allows Bib\SpecialChar TeX
27218  keys to be replaced with their values.
27219  Keys should be enclosed in 
27220 \begin_inset Flex Code
27221 status collapsed
27222
27223 \begin_layout Plain Layout
27224 %
27225 \end_layout
27226
27227 \end_inset
27228
27229  signs,
27230  e.g.:
27231  
27232 \begin_inset Flex Code
27233 status collapsed
27234
27235 \begin_layout Plain Layout
27236 %author%
27237 \end_layout
27238
27239 \end_inset
27240
27241 .
27242  So a simple definition might look like this:
27243 \end_layout
27244
27245 \begin_layout LyX-Code
27246 misc %author%,
27247  
27248 \begin_inset Quotes eld
27249 \end_inset
27250
27251 %title%
27252 \begin_inset Quotes erd
27253 \end_inset
27254
27255 .
27256 \end_layout
27257
27258 \begin_layout Standard
27259 This would print the author,
27260  followed by a comma,
27261  followed by the title,
27262  in quotes,
27263  followed by a period.
27264 \end_layout
27265
27266 \begin_layout Standard
27267 Of course,
27268  sometimes you may want to print a key only if it exists.
27269  This can be done by using a conditional construction,
27270  such as:
27271  
27272 \begin_inset Flex Code
27273 status collapsed
27274
27275 \begin_layout Plain Layout
27276 {%volume%[[vol.
27277 \begin_inset space ~
27278 \end_inset
27279
27280 %volume%]]}
27281 \end_layout
27282
27283 \end_inset
27284
27285 .
27286  This says:
27287  If the 
27288 \begin_inset Flex Code
27289 status collapsed
27290
27291 \begin_layout Plain Layout
27292 volume
27293 \end_layout
27294
27295 \end_inset
27296
27297  key exists,
27298  then print 
27299 \begin_inset Quotes eld
27300 \end_inset
27301
27302 vol.
27303 \begin_inset space ~
27304 \end_inset
27305
27306
27307 \begin_inset Quotes erd
27308 \end_inset
27309
27310  followed by the volume key.
27311  It is also possible to have an else clause in the conditional,
27312  such as:
27313 \begin_inset Newline newline
27314 \end_inset
27315
27316
27317 \begin_inset Flex Code
27318 status collapsed
27319
27320 \begin_layout Plain Layout
27321 {%author%[[%author%]][[%editor%,
27322  ed.]]}
27323 \end_layout
27324
27325 \end_inset
27326
27327 .
27328 \begin_inset Newline newline
27329 \end_inset
27330
27331 Here,
27332  the 
27333 \begin_inset Flex Code
27334 status collapsed
27335
27336 \begin_layout Plain Layout
27337 author
27338 \end_layout
27339
27340 \end_inset
27341
27342  key is printed if it exists;
27343  otherwise,
27344  the editor key is printed,
27345  followed by 
27346 \begin_inset Quotes eld
27347 \end_inset
27348
27349 ,
27350 \begin_inset space ~
27351 \end_inset
27352
27353 ed.
27354 \begin_inset Quotes erd
27355 \end_inset
27356
27357  Note that the key is again enclosed in 
27358 \begin_inset Flex Code
27359 status collapsed
27360
27361 \begin_layout Plain Layout
27362 %
27363 \end_layout
27364
27365 \end_inset
27366
27367  signs;
27368  the entire conditional is enclosed in braces;
27369  and the if and else clauses are enclosed in double brackets,
27370  
27371 \begin_inset Quotes eld
27372 \end_inset
27373
27374
27375 \begin_inset Flex Code
27376 status collapsed
27377
27378 \begin_layout Plain Layout
27379 [[
27380 \end_layout
27381
27382 \end_inset
27383
27384
27385 \begin_inset Quotes eld
27386 \end_inset
27387
27388  and 
27389 \begin_inset Quotes eld
27390 \end_inset
27391
27392
27393 \begin_inset Flex Code
27394 status collapsed
27395
27396 \begin_layout Plain Layout
27397 ]]
27398 \end_layout
27399
27400 \end_inset
27401
27402
27403 \begin_inset Quotes erd
27404 \end_inset
27405
27406 .
27407  There must be no space between any of these.
27408 \end_layout
27409
27410 \begin_layout Standard
27411 Next to the entry keys,
27412  there are some special keys that can be used for these conditionals:
27413 \end_layout
27414
27415 \begin_layout Itemize
27416 \begin_inset Flex Code
27417 status collapsed
27418
27419 \begin_layout Plain Layout
27420 {%dialog%[[true]][[false]]}
27421 \end_layout
27422
27423 \end_inset
27424
27425 :
27426  process the 
27427 \begin_inset Quotes eld
27428 \end_inset
27429
27430 true
27431 \begin_inset Quotes erd
27432 \end_inset
27433
27434  part for dialogs and menus,
27435  the 
27436 \begin_inset Quotes eld
27437 \end_inset
27438
27439 false
27440 \begin_inset Quotes erd
27441 \end_inset
27442
27443  part for other contexts (workarea,
27444  export)
27445 \end_layout
27446
27447 \begin_layout Itemize
27448 \begin_inset Flex Code
27449 status collapsed
27450
27451 \begin_layout Plain Layout
27452 {%export%[[true]][[false]]}
27453 \end_layout
27454
27455 \end_inset
27456
27457 :
27458  process the 
27459 \begin_inset Quotes eld
27460 \end_inset
27461
27462 true
27463 \begin_inset Quotes erd
27464 \end_inset
27465
27466  part for export and menus,
27467  the 
27468 \begin_inset Quotes eld
27469 \end_inset
27470
27471 false
27472 \begin_inset Quotes erd
27473 \end_inset
27474
27475  part for other contexts (workarea,
27476  dialog)
27477 \end_layout
27478
27479 \begin_layout Itemize
27480 \begin_inset Flex Code
27481 status collapsed
27482
27483 \begin_layout Plain Layout
27484 {%next%[[true]]}
27485 \end_layout
27486
27487 \end_inset
27488
27489 :
27490  process the 
27491 \begin_inset Quotes eld
27492 \end_inset
27493
27494 true
27495 \begin_inset Quotes erd
27496 \end_inset
27497
27498  part if another item follows (e.
27499 \begin_inset space \thinspace{}
27500 \end_inset
27501
27502 g.,
27503  in a citation with multiple keys)
27504 \end_layout
27505
27506 \begin_layout Itemize
27507 \begin_inset Flex Code
27508 status collapsed
27509
27510 \begin_layout Plain Layout
27511 {%second%[[true]][[false]]}
27512 \end_layout
27513
27514 \end_inset
27515
27516 :
27517  process the 
27518 \begin_inset Quotes eld
27519 \end_inset
27520
27521 true
27522 \begin_inset Quotes erd
27523 \end_inset
27524
27525  if this is the second of multiple items,
27526  else the 
27527 \begin_inset Quotes eld
27528 \end_inset
27529
27530 false
27531 \begin_inset Quotes erd
27532 \end_inset
27533
27534  part
27535 \end_layout
27536
27537 \begin_layout Itemize
27538 \begin_inset Flex Code
27539 status collapsed
27540
27541 \begin_layout Plain Layout
27542 {%ifstar%[[true]][[false]]}
27543 \end_layout
27544
27545 \end_inset
27546
27547 :
27548  process the 
27549 \begin_inset Quotes eld
27550 \end_inset
27551
27552 true
27553 \begin_inset Quotes erd
27554 \end_inset
27555
27556  part for starred citation commands (such as 
27557 \begin_inset Flex Code
27558 status collapsed
27559
27560 \begin_layout Plain Layout
27561
27562 \backslash
27563 cite*
27564 \end_layout
27565
27566 \end_inset
27567
27568 ),
27569  the false part for unstarred
27570 \end_layout
27571
27572 \begin_layout Itemize
27573 \begin_inset Flex Code
27574 status collapsed
27575
27576 \begin_layout Plain Layout
27577 {%ifentrytype:<type>%[[true]][[false]]}
27578 \end_layout
27579
27580 \end_inset
27581
27582 :
27583  process the 
27584 \begin_inset Quotes eld
27585 \end_inset
27586
27587 true
27588 \begin_inset Quotes erd
27589 \end_inset
27590
27591  if the current entry type matches 
27592 \begin_inset Flex Code
27593 status collapsed
27594
27595 \begin_layout Plain Layout
27596 <type>
27597 \end_layout
27598
27599 \end_inset
27600
27601 ,
27602  else the false part (e.g.,
27603  in a citation definition:
27604  
27605 \begin_inset Flex Code
27606 status collapsed
27607
27608 \begin_layout Plain Layout
27609 {%ifentrytype:book%[[this is a book]][[this is no book]]}
27610 \end_layout
27611
27612 \end_inset
27613
27614 )
27615 \end_layout
27616
27617 \begin_layout Itemize
27618 \begin_inset Flex Code
27619 status collapsed
27620
27621 \begin_layout Plain Layout
27622 {%ifmultiple:<authortype>%[[true]][[false]]}
27623 \end_layout
27624
27625 \end_inset
27626
27627 :
27628  process the 
27629 \begin_inset Quotes eld
27630 \end_inset
27631
27632 true
27633 \begin_inset Quotes erd
27634 \end_inset
27635
27636  if the current author type (author,
27637  editor etc.) has multiple authors,
27638  else the false part (e.g.,
27639  in a bibliography definition:
27640  
27641 \begin_inset Flex Code
27642 status collapsed
27643
27644 \begin_layout Plain Layout
27645 {%ifmultiple:editor%[[eds.]][[ed.]]}
27646 \end_layout
27647
27648 \end_inset
27649
27650 )
27651 \end_layout
27652
27653 \begin_layout Itemize
27654 \begin_inset Flex Code
27655 status collapsed
27656
27657 \begin_layout Plain Layout
27658 {%ifqualified%[[true]][[false]]}
27659 \end_layout
27660
27661 \end_inset
27662
27663 :
27664  process the 
27665 \begin_inset Quotes eld
27666 \end_inset
27667
27668 true
27669 \begin_inset Quotes erd
27670 \end_inset
27671
27672  part if the current citation is a qualified citation list (a specific 
27673 \family sans
27674 Biblatex
27675 \family default
27676  format for multi-reference citations),
27677  the false part if this is not the case.
27678 \end_layout
27679
27680 \begin_layout Standard
27681 We said that 
27682 \begin_inset Flex Code
27683 status collapsed
27684
27685 \begin_layout Plain Layout
27686 %author%
27687 \end_layout
27688
27689 \end_inset
27690
27691  prints the author key as it is recorded in the bibliography file.
27692  This might not be what you want,
27693  since it will result in a string such as 
27694 \begin_inset Quotes eld
27695 \end_inset
27696
27697 Miller,
27698  Peter and Smith,
27699  Mary and White,
27700  Jane
27701 \begin_inset Quotes erd
27702 \end_inset
27703
27704  (since 
27705 \begin_inset Quotes eld
27706 \end_inset
27707
27708 and
27709 \begin_inset Quotes erd
27710 \end_inset
27711
27712  is used by Bib\SpecialChar TeX
27713  to delimit authors).
27714  \SpecialChar LyX
27715  therefore provides some methods to get properly formatted name lists (which will also get translated).
27716  The following keys are provided:
27717 \end_layout
27718
27719 \begin_layout Enumerate
27720 For name lists with pre- and surname,
27721  suitable for the main authors/editors of a bibliography item.
27722  The 
27723 \begin_inset Flex Code
27724 status collapsed
27725
27726 \begin_layout Plain Layout
27727 <nametype>
27728 \end_layout
27729
27730 \end_inset
27731
27732  part denotes the kind of list that is requested (e.g.
27733  
27734 \begin_inset Flex Code
27735 status collapsed
27736
27737 \begin_layout Plain Layout
27738 <nametype:author>
27739 \end_layout
27740
27741 \end_inset
27742
27743 ):
27744 \end_layout
27745
27746 \begin_deeper
27747 \begin_layout Itemize
27748 \begin_inset Flex Code
27749 status collapsed
27750
27751 \begin_layout Plain Layout
27752 %abbrvnames:<nametype>%
27753 \end_layout
27754
27755 \end_inset
27756
27757 :
27758  Provides a name list which is abbreviated (with 
27759 \begin_inset Quotes eld
27760 \end_inset
27761
27762 et al.
27763 \begin_inset Quotes erd
27764 \end_inset
27765
27766 ) when 
27767 \begin_inset Flex Code
27768 status collapsed
27769
27770 \begin_layout Plain Layout
27771 MaxCiteNames
27772 \end_layout
27773
27774 \end_inset
27775
27776  is reached.
27777 \end_layout
27778
27779 \begin_layout Itemize
27780 \begin_inset Flex Code
27781 status collapsed
27782
27783 \begin_layout Plain Layout
27784 %fullnames:<nametype>%
27785 \end_layout
27786
27787 \end_inset
27788
27789 :
27790  Provides a full name list (never abbreviated with 
27791 \begin_inset Quotes eld
27792 \end_inset
27793
27794 et al.
27795 \begin_inset Quotes erd
27796 \end_inset
27797
27798 ).
27799 \end_layout
27800
27801 \begin_layout Itemize
27802 \begin_inset Flex Code
27803 status collapsed
27804
27805 \begin_layout Plain Layout
27806 %forceabbrvnames:<nametype>%
27807 \end_layout
27808
27809 \end_inset
27810
27811 :
27812  Provides a name list which is always abbreviated (with 
27813 \begin_inset Quotes eld
27814 \end_inset
27815
27816 et al.
27817 \begin_inset Quotes erd
27818 \end_inset
27819
27820 ) irrespective of 
27821 \begin_inset Flex Code
27822 status collapsed
27823
27824 \begin_layout Plain Layout
27825 MaxCiteNames
27826 \end_layout
27827
27828 \end_inset
27829
27830 .
27831 \end_layout
27832
27833 \end_deeper
27834 \begin_layout Enumerate
27835 Alternative name lists with pre- and surname,
27836  if the order of pre- and surname inside the bibliography item differs (as in:
27837  
27838 \begin_inset Quotes eld
27839 \end_inset
27840
27841 Miller,
27842  John:
27843  Some text,
27844  in:
27845  Mary Smith,
27846  ed.:
27847  A volume
27848 \begin_inset Quotes erd
27849 \end_inset
27850
27851 ):
27852 \end_layout
27853
27854 \begin_deeper
27855 \begin_layout Itemize
27856 \begin_inset Flex Code
27857 status collapsed
27858
27859 \begin_layout Plain Layout
27860 %abbrvbynames:<nametype>%
27861 \end_layout
27862
27863 \end_inset
27864
27865 :
27866  Provides a name list which is abbreviated (with 
27867 \begin_inset Quotes eld
27868 \end_inset
27869
27870 et al.
27871 \begin_inset Quotes erd
27872 \end_inset
27873
27874 ) when 
27875 \begin_inset Flex Code
27876 status collapsed
27877
27878 \begin_layout Plain Layout
27879 MaxCiteNames
27880 \end_layout
27881
27882 \end_inset
27883
27884  is reached.
27885 \end_layout
27886
27887 \begin_layout Itemize
27888 \begin_inset Flex Code
27889 status collapsed
27890
27891 \begin_layout Plain Layout
27892 %fullbynames:<nametype>%
27893 \end_layout
27894
27895 \end_inset
27896
27897 :
27898  Provides a full name list (never abbreviated with 
27899 \begin_inset Quotes eld
27900 \end_inset
27901
27902 et al.
27903 \begin_inset Quotes erd
27904 \end_inset
27905
27906 ).
27907 \end_layout
27908
27909 \begin_layout Itemize
27910 \begin_inset Flex Code
27911 status collapsed
27912
27913 \begin_layout Plain Layout
27914 %forceabbrvbynames:<nametype>%
27915 \end_layout
27916
27917 \end_inset
27918
27919 :
27920  Provides a name list which is always abbreviated (with 
27921 \begin_inset Quotes eld
27922 \end_inset
27923
27924 et al.
27925 \begin_inset Quotes erd
27926 \end_inset
27927
27928 ) irrespective of 
27929 \begin_inset Flex Code
27930 status collapsed
27931
27932 \begin_layout Plain Layout
27933 MaxCiteNames
27934 \end_layout
27935
27936 \end_inset
27937
27938 .
27939 \end_layout
27940
27941 \end_deeper
27942 \begin_layout Enumerate
27943 And finally name lists which consist of family names only,
27944  as used in author-year citation labels.
27945  These do not take a 
27946 \begin_inset Flex Code
27947 status collapsed
27948
27949 \begin_layout Plain Layout
27950 <nametype>
27951 \end_layout
27952
27953 \end_inset
27954
27955  part,
27956  but always return either an author list or,
27957  if this does not exist,
27958  an editor list (as common in author-year labels):
27959 \end_layout
27960
27961 \begin_deeper
27962 \begin_layout Itemize
27963 \begin_inset Flex Code
27964 status collapsed
27965
27966 \begin_layout Plain Layout
27967 %abbrvciteauthor%
27968 \end_layout
27969
27970 \end_inset
27971
27972 :
27973  Provides a name list which is abbreviated (with 
27974 \begin_inset Quotes eld
27975 \end_inset
27976
27977 et al.
27978 \begin_inset Quotes erd
27979 \end_inset
27980
27981 ) when 
27982 \begin_inset Flex Code
27983 status collapsed
27984
27985 \begin_layout Plain Layout
27986 MaxCiteNames
27987 \end_layout
27988
27989 \end_inset
27990
27991  is reached.
27992 \end_layout
27993
27994 \begin_layout Itemize
27995 \begin_inset Flex Code
27996 status collapsed
27997
27998 \begin_layout Plain Layout
27999 %fullciteauthor%
28000 \end_layout
28001
28002 \end_inset
28003
28004 :
28005  Provides a full name list (never abbreviated with 
28006 \begin_inset Quotes eld
28007 \end_inset
28008
28009 et al.
28010 \begin_inset Quotes erd
28011 \end_inset
28012
28013 ).
28014 \end_layout
28015
28016 \begin_layout Itemize
28017 \begin_inset Flex Code
28018 status collapsed
28019
28020 \begin_layout Plain Layout
28021 %forceabbrvciteauthor%
28022 \end_layout
28023
28024 \end_inset
28025
28026 :
28027  Provides a name list which is always abbreviated (with 
28028 \begin_inset Quotes eld
28029 \end_inset
28030
28031 et al.
28032 \begin_inset Quotes erd
28033 \end_inset
28034
28035 ) irrespective of 
28036 \begin_inset Flex Code
28037 status collapsed
28038
28039 \begin_layout Plain Layout
28040 MaxCiteNames
28041 \end_layout
28042
28043 \end_inset
28044
28045 .
28046 \end_layout
28047
28048 \end_deeper
28049 \begin_layout Standard
28050 The order of pre- and surname in the former two lists can be adjusted by these macros:
28051 \end_layout
28052
28053 \begin_layout Itemize
28054 \begin_inset Flex Code
28055 status collapsed
28056
28057 \begin_layout Plain Layout
28058 !firstnameform %surname%,
28059  %prename%
28060 \end_layout
28061
28062 \end_inset
28063
28064  (first author in lists of type 1)
28065 \end_layout
28066
28067 \begin_layout Itemize
28068 \begin_inset Flex Code
28069 status collapsed
28070
28071 \begin_layout Plain Layout
28072 !othernameform %surname%,
28073  %prename%
28074 \end_layout
28075
28076 \end_inset
28077
28078  (other authors in lists of type 1)
28079 \end_layout
28080
28081 \begin_layout Itemize
28082 \begin_inset Flex Code
28083 status collapsed
28084
28085 \begin_layout Plain Layout
28086 !firstbynameform %prename% %surname%
28087 \end_layout
28088
28089 \end_inset
28090
28091  (first author in lists of type 2)
28092 \end_layout
28093
28094 \begin_layout Itemize
28095 \begin_inset Flex Code
28096 status collapsed
28097
28098 \begin_layout Plain Layout
28099 !otherbynameform %prename% %surname%
28100 \end_layout
28101
28102 \end_inset
28103
28104  (other authors in lists of type 2)
28105 \end_layout
28106
28107 \begin_layout Standard
28108 This allows you to configure namings like 
28109 \begin_inset Quotes eld
28110 \end_inset
28111
28112 Miller,
28113  Peter and Mary Smith:
28114  \SpecialChar ldots
28115 ,
28116  in:
28117  John Doe and Pat Green,
28118  eds.:\SpecialChar ldots
28119
28120 \begin_inset Quotes erd
28121 \end_inset
28122
28123 .
28124 \end_layout
28125
28126 \begin_layout Standard
28127 There is one other piece of syntax available in definitions,
28128  which looks like this:
28129  
28130 \begin_inset Flex Code
28131 status collapsed
28132
28133 \begin_layout Plain Layout
28134 {!<i>!}
28135 \end_layout
28136
28137 \end_inset
28138
28139 .
28140  This defines a piece of formatting information that is to be used when creating 
28141 \begin_inset Quotes eld
28142 \end_inset
28143
28144 rich text
28145 \begin_inset Quotes erd
28146 \end_inset
28147
28148 .
28149  Obviously,
28150  we do not want to output HTML tags when writing plain text,
28151  so they should be wrapped in 
28152 \begin_inset Quotes eld
28153 \end_inset
28154
28155 {!
28156 \begin_inset Quotes erd
28157 \end_inset
28158
28159  and 
28160 \begin_inset Quotes eld
28161 \end_inset
28162
28163 !}
28164 \begin_inset Quotes erd
28165 \end_inset
28166
28167 .
28168 \end_layout
28169
28170 \begin_layout Standard
28171 Two special sorts of definitions are also possible in a 
28172 \begin_inset Flex Code
28173 status collapsed
28174
28175 \begin_layout Plain Layout
28176 CiteFormat
28177 \end_layout
28178
28179 \end_inset
28180
28181  block.
28182  An example of the first would be:
28183 \end_layout
28184
28185 \begin_layout LyX-Code
28186 !quotetitle 
28187 \begin_inset Quotes eld
28188 \end_inset
28189
28190 %title%
28191 \begin_inset Quotes erd
28192 \end_inset
28193
28194
28195 \end_layout
28196
28197 \begin_layout Standard
28198 This is an abbreviation,
28199  or macro,
28200  and it can be used by treating it as if it were a key:
28201  
28202 \begin_inset Flex Code
28203 status collapsed
28204
28205 \begin_layout Plain Layout
28206 %!quotetitle%
28207 \end_layout
28208
28209 \end_inset
28210
28211 .
28212  \SpecialChar LyX
28213  will treat 
28214 \begin_inset Flex Code
28215 status collapsed
28216
28217 \begin_layout Plain Layout
28218 %!quotetitle%
28219 \end_layout
28220
28221 \end_inset
28222
28223  exactly as it would treat its definition.
28224  So,
28225  let us issue the obvious 
28226 \emph on
28227 warning
28228 \emph default
28229 .
28230  Do not do this:
28231 \end_layout
28232
28233 \begin_layout LyX-Code
28234 !funfun %funfun%
28235 \end_layout
28236
28237 \begin_layout Standard
28238 or anything like it.
28239  \SpecialChar LyX
28240  shouldn't go into an infinite loop,
28241  but it may go into a long one before it gives up.
28242 \end_layout
28243
28244 \begin_layout Standard
28245 The second sort of special definition might look like this:
28246 \end_layout
28247
28248 \begin_layout LyX-Code
28249 B_pptext pp.
28250 \end_layout
28251
28252 \begin_layout Standard
28253 This defines a translatable piece of text,
28254  which allows relevant parts of the bibliography or citation to be translated.
28255  It can be included in a definition by treating it as a key:
28256  
28257 \begin_inset Flex Code
28258 status collapsed
28259
28260 \begin_layout Plain Layout
28261 %B_pptext%
28262 \end_layout
28263
28264 \end_inset
28265
28266 .
28267  Note that there are two different translation paths:
28268  All definitions starting with 
28269 \begin_inset Flex Code
28270 status collapsed
28271
28272 \begin_layout Plain Layout
28273 B_
28274 \end_layout
28275
28276 \end_inset
28277
28278 ,
28279  such as in the example above,
28280  will be translated to the currently active buffer language (so the translation will match the generated document).
28281  All definitions starting with underscore only will be translated to the GUI language.
28282  This is the proper translation for strings that only occur in the dialogs or on buttons,
28283  such as this one:
28284 \end_layout
28285
28286 \begin_layout LyX-Code
28287 _addtobib Add to bibliography only.
28288 \end_layout
28289
28290 \begin_layout Standard
28291 Several of these translatable strings are predefined in 
28292 \begin_inset Flex Code
28293 status collapsed
28294
28295 \begin_layout Plain Layout
28296 stdciteformats.inc
28297 \end_layout
28298
28299 \end_inset
28300
28301  and the diverse 
28302 \begin_inset Flex Code
28303 status collapsed
28304
28305 \begin_layout Plain Layout
28306 *.citeengine
28307 \end_layout
28308
28309 \end_inset
28310
28311  files.
28312  Note that these are not macros,
28313  in the sense just defined.
28314  They will not be expanded.
28315 \end_layout
28316
28317 \begin_layout Standard
28318 So here then is an example that uses several of these features:
28319 \begin_inset VSpace defskip
28320 \end_inset
28321
28322
28323 \end_layout
28324
28325 \begin_layout Standard
28326 \noindent
28327
28328 \family sans
28329 !authoredit {%author%[[%author%,
28330  ]][[{%editor%[[%editor%,
28331  %B_edtext%,
28332  ]]}]]}
28333 \end_layout
28334
28335 \begin_layout Standard
28336 \begin_inset VSpace defskip
28337 \end_inset
28338
28339 This defines a macro that prints the author,
28340  followed by a comma,
28341  if the 
28342 \begin_inset Flex Code
28343 status collapsed
28344
28345 \begin_layout Plain Layout
28346 author
28347 \end_layout
28348
28349 \end_inset
28350
28351  key is defined,
28352  or else prints the name of the editor,
28353  followed by the 
28354 \begin_inset Flex Code
28355 status collapsed
28356
28357 \begin_layout Plain Layout
28358 B_edtext
28359 \end_layout
28360
28361 \end_inset
28362
28363  or its translation (it is by default 
28364 \begin_inset Quotes eld
28365 \end_inset
28366
28367 ed.
28368 \begin_inset Quotes erd
28369 \end_inset
28370
28371 ),
28372  if the 
28373 \begin_inset Flex Code
28374 status collapsed
28375
28376 \begin_layout Plain Layout
28377 editor
28378 \end_layout
28379
28380 \end_inset
28381
28382  key is defined.
28383  Note that this is in fact defined in 
28384 \begin_inset Flex Code
28385 status collapsed
28386
28387 \begin_layout Plain Layout
28388 stdciteformats.inc
28389 \end_layout
28390
28391 \end_inset
28392
28393 ,
28394  so you can use it in your own definitions,
28395  or re-definitions,
28396  if you load that file first.
28397 \end_layout
28398
28399 \begin_layout Section
28400 \begin_inset CommandInset label
28401 LatexCommand label
28402 name "sec:Tags-for-XHTML"
28403
28404 \end_inset
28405
28406 Tags for XHTML output
28407 \end_layout
28408
28409 \begin_layout Standard
28410 As with \SpecialChar LaTeX
28411  or DocBook,
28412  the format of \SpecialChar LyX
28413 's XHTML output is also controlled by layout information.
28414  In general,
28415  \SpecialChar LyX
28416  provides sensible defaults and,
28417  as mentioned earlier,
28418  it will even construct default CSS style rules from the other layout tags.
28419  For example,
28420  \SpecialChar LyX
28421  will attempt to use the information provided in the 
28422 \begin_inset Flex Code
28423 status collapsed
28424
28425 \begin_layout Plain Layout
28426 Font
28427 \end_layout
28428
28429 \end_inset
28430
28431  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
28432 \end_layout
28433
28434 \begin_layout Standard
28435 In many cases,
28436  then,
28437  you may not have to do anything at all to get acceptable XHTML output for your own environments,
28438  custom insets,
28439  and so forth.
28440  But in some cases you will,
28441  and so \SpecialChar LyX
28442  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
28443 \end_layout
28444
28445 \begin_layout Standard
28446 Note that there are two tags,
28447  
28448 \begin_inset Flex Code
28449 status collapsed
28450
28451 \begin_layout Plain Layout
28452 HTMLPreamble
28453 \end_layout
28454
28455 \end_inset
28456
28457  and 
28458 \begin_inset Flex Code
28459 status collapsed
28460
28461 \begin_layout Plain Layout
28462 AddToHTMLPreamble
28463 \end_layout
28464
28465 \end_inset
28466
28467  that may appear outside style and inset declarations.
28468  See 
28469 \begin_inset CommandInset ref
28470 LatexCommand ref
28471 reference "subsec:General-text-class"
28472 nolink "false"
28473
28474 \end_inset
28475
28476  for details on these.
28477 \end_layout
28478
28479 \begin_layout Subsection
28480 \begin_inset CommandInset label
28481 LatexCommand label
28482 name "subsec:Paragraph-Style-XHTML"
28483
28484 \end_inset
28485
28486 Paragraph styles
28487 \end_layout
28488
28489 \begin_layout Standard
28490 The sort of XHTML \SpecialChar LyX
28491  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
28492  a command,
28493  or an environment,
28494  where this is itself determined by the contents of the corresponding 
28495 \begin_inset Flex Code
28496 status collapsed
28497
28498 \begin_layout Plain Layout
28499 \SpecialChar LaTeX
28500 Type
28501 \end_layout
28502
28503 \end_inset
28504
28505  tag.
28506  
28507 \end_layout
28508
28509 \begin_layout Standard
28510 For a command or normal paragraph,
28511  the output XHTML has the following form:
28512 \end_layout
28513
28514 \begin_layout LyX-Code
28515
28516 \family sans
28517 <tag attr=
28518 \begin_inset Quotes erd
28519 \end_inset
28520
28521 value
28522 \begin_inset Quotes erd
28523 \end_inset
28524
28525 >
28526 \end_layout
28527
28528 \begin_layout LyX-Code
28529
28530 \family sans
28531 <labeltag attr=
28532 \begin_inset Quotes erd
28533 \end_inset
28534
28535 value
28536 \begin_inset Quotes erd
28537 \end_inset
28538
28539 >Label</labeltag>
28540 \end_layout
28541
28542 \begin_layout LyX-Code
28543
28544 \family sans
28545 Contents of the paragraph.
28546 \end_layout
28547
28548 \begin_layout LyX-Code
28549
28550 \family sans
28551 </tag>
28552 \end_layout
28553
28554 \begin_layout Standard
28555 The label tags are of course omitted if the paragraph does not have a label.
28556 \end_layout
28557
28558 \begin_layout Standard
28559 For an environment that is not some sort of list,
28560  the XHTML takes this form:
28561 \end_layout
28562
28563 \begin_layout LyX-Code
28564
28565 \family sans
28566 <tag attr=
28567 \begin_inset Quotes erd
28568 \end_inset
28569
28570 value
28571 \begin_inset Quotes erd
28572 \end_inset
28573
28574 >
28575 \end_layout
28576
28577 \begin_layout LyX-Code
28578
28579 \family sans
28580 <itemtag attr=
28581 \begin_inset Quotes erd
28582 \end_inset
28583
28584 value
28585 \begin_inset Quotes erd
28586 \end_inset
28587
28588 ><labeltag attr=
28589 \begin_inset Quotes erd
28590 \end_inset
28591
28592 value
28593 \begin_inset Quotes erd
28594 \end_inset
28595
28596 >Environment Label</labeltag>First paragraph.</itemtag>
28597 \end_layout
28598
28599 \begin_layout LyX-Code
28600
28601 \family sans
28602 <itemtag>Second paragraph.</itemtag>
28603 \end_layout
28604
28605 \begin_layout LyX-Code
28606
28607 \family sans
28608 </tag>
28609 \end_layout
28610
28611 \begin_layout Standard
28612 Note that the label is output only for the first paragraph,
28613  as it should be for a theorem,
28614  for example.
28615  
28616 \end_layout
28617
28618 \begin_layout Standard
28619 For a list,
28620  we have one of these forms:
28621 \end_layout
28622
28623 \begin_layout LyX-Code
28624
28625 \family sans
28626 <tag attr=
28627 \begin_inset Quotes erd
28628 \end_inset
28629
28630 value
28631 \begin_inset Quotes erd
28632 \end_inset
28633
28634 >
28635 \end_layout
28636
28637 \begin_layout LyX-Code
28638
28639 \family sans
28640 <itemtag attr=
28641 \begin_inset Quotes erd
28642 \end_inset
28643
28644 value
28645 \begin_inset Quotes erd
28646 \end_inset
28647
28648 ><labeltag attr=
28649 \begin_inset Quotes erd
28650 \end_inset
28651
28652 value
28653 \begin_inset Quotes erd
28654 \end_inset
28655
28656 >List Label</labeltag>First item.</itemtag>
28657 \end_layout
28658
28659 \begin_layout LyX-Code
28660
28661 \family sans
28662 <itemtag attr=
28663 \begin_inset Quotes erd
28664 \end_inset
28665
28666 value
28667 \begin_inset Quotes erd
28668 \end_inset
28669
28670 ><labeltag attr=
28671 \begin_inset Quotes erd
28672 \end_inset
28673
28674 value
28675 \begin_inset Quotes erd
28676 \end_inset
28677
28678 >List Label</labeltag>Second item.</itemtag>
28679 \end_layout
28680
28681 \begin_layout LyX-Code
28682
28683 \family sans
28684 </tag>
28685 \end_layout
28686
28687 \begin_layout LyX-Code
28688
28689 \end_layout
28690
28691 \begin_layout LyX-Code
28692
28693 \family sans
28694 <tag attr=
28695 \begin_inset Quotes erd
28696 \end_inset
28697
28698 value
28699 \begin_inset Quotes erd
28700 \end_inset
28701
28702 >
28703 \end_layout
28704
28705 \begin_layout LyX-Code
28706
28707 \family sans
28708 <labeltag attr=
28709 \begin_inset Quotes erd
28710 \end_inset
28711
28712 value
28713 \begin_inset Quotes erd
28714 \end_inset
28715
28716 >List Label</labeltag><itemtag attr=
28717 \begin_inset Quotes erd
28718 \end_inset
28719
28720 value
28721 \begin_inset Quotes erd
28722 \end_inset
28723
28724 >First item.</itemtag>
28725 \end_layout
28726
28727 \begin_layout LyX-Code
28728
28729 \family sans
28730 <labeltag attr=
28731 \begin_inset Quotes erd
28732 \end_inset
28733
28734 value
28735 \begin_inset Quotes erd
28736 \end_inset
28737
28738 >List Label</labeltag><itemtag attr=
28739 \begin_inset Quotes erd
28740 \end_inset
28741
28742 value
28743 \begin_inset Quotes erd
28744 \end_inset
28745
28746 >Second item.</itemtag>
28747 \end_layout
28748
28749 \begin_layout LyX-Code
28750
28751 \family sans
28752 </tag>
28753 \end_layout
28754
28755 \begin_layout Standard
28756 Note the different orders of 
28757 \begin_inset Flex Code
28758 status collapsed
28759
28760 \begin_layout Plain Layout
28761 labeltag
28762 \end_layout
28763
28764 \end_inset
28765
28766  and 
28767 \begin_inset Flex Code
28768 status collapsed
28769
28770 \begin_layout Plain Layout
28771 itemtag
28772 \end_layout
28773
28774 \end_inset
28775
28776 .
28777  Which order we get depends upon the setting of 
28778 \begin_inset Flex Code
28779 status collapsed
28780
28781 \begin_layout Plain Layout
28782 HTMLLabelFirst
28783 \end_layout
28784
28785 \end_inset
28786
28787 :
28788  If 
28789 \begin_inset Flex Code
28790 status collapsed
28791
28792 \begin_layout Plain Layout
28793 HTMLLabelFirst
28794 \end_layout
28795
28796 \end_inset
28797
28798  is false (the default),
28799  you get the first of these,
28800  with the label within the item;
28801  if true,
28802  you get the second,
28803  with the label outside the item.
28804 \end_layout
28805
28806 \begin_layout Standard
28807 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
28808  As mentioned earlier,
28809  however,
28810  \SpecialChar LyX
28811  uses sensible defaults for many of these,
28812  so you often may not need to do very much to get good XHTML output.
28813  Think of the available tags as there so you can tweak things to your liking.
28814 \end_layout
28815
28816 \begin_layout Description
28817 \begin_inset Flex Code
28818 status collapsed
28819
28820 \begin_layout Plain Layout
28821 HTMLAttr
28822 \end_layout
28823
28824 \end_inset
28825
28826  [
28827 \begin_inset Flex Code
28828 status collapsed
28829
28830 \begin_layout Plain Layout
28831 string
28832 \end_layout
28833
28834 \end_inset
28835
28836 ] Specifies attribute information to be output with the main tag.
28837  For example,
28838  
28839 \begin_inset Quotes eld
28840 \end_inset
28841
28842
28843 \begin_inset Flex Code
28844 status collapsed
28845
28846 \begin_layout Plain Layout
28847 class=`mydiv'
28848 \end_layout
28849
28850 \end_inset
28851
28852
28853 \begin_inset Quotes erd
28854 \end_inset
28855
28856 .
28857  By default,
28858  \SpecialChar LyX
28859  will output 
28860 \begin_inset Quotes eld
28861 \end_inset
28862
28863
28864 \begin_inset Flex Code
28865 status collapsed
28866
28867 \begin_layout Plain Layout
28868 class=`layoutname'
28869 \end_layout
28870
28871 \end_inset
28872
28873
28874 \begin_inset Quotes erd
28875 \end_inset
28876
28877 ,
28878  where 
28879 \begin_inset Flex Code
28880 status collapsed
28881
28882 \begin_layout Plain Layout
28883 layoutname
28884 \end_layout
28885
28886 \end_inset
28887
28888  is the \SpecialChar LyX
28889  name of the layout,
28890  made lowercase,
28891  for example:
28892  chapter.
28893  This should 
28894 \emph on
28895 not
28896 \emph default
28897  contain any style information.
28898  Use 
28899 \begin_inset Flex Code
28900 status collapsed
28901
28902 \begin_layout Plain Layout
28903 HTMLStyle
28904 \end_layout
28905
28906 \end_inset
28907
28908  for that purpose.
28909 \change_inserted -584632292 1670182206
28910
28911 \end_layout
28912
28913 \begin_layout Description
28914
28915 \change_inserted -584632292 1670182369
28916 \begin_inset Flex Code
28917 status collapsed
28918
28919 \begin_layout Plain Layout
28920
28921 \change_inserted -584632292 1670182222
28922 HTMLClass
28923 \change_unchanged
28924
28925 \end_layout
28926
28927 \end_inset
28928
28929  [
28930 \begin_inset Flex Code
28931 status collapsed
28932
28933 \begin_layout Plain Layout
28934
28935 \change_inserted -584632292 1670182217
28936 string
28937 \change_unchanged
28938
28939 \end_layout
28940
28941 \end_inset
28942
28943 ] The CSS class to use for this paragraph.
28944  Note that,
28945  if the paragarph is of enumerate or itemize type,
28946  then the default will be 
28947 \begin_inset Quotes eld
28948 \end_inset
28949
28950 lyxenum
28951 \begin_inset Quotes erd
28952 \end_inset
28953
28954  or 
28955 \begin_inset Quotes eld
28956 \end_inset
28957
28958 lyxitem
28959 \begin_inset Quotes erd
28960 \end_inset
28961
28962 ,
28963  plus 
28964 \begin_inset Quotes eld
28965 \end_inset
28966
28967 i
28968 \begin_inset Quotes erd
28969 \end_inset
28970
28971 ,
28972  
28973 \begin_inset Quotes eld
28974 \end_inset
28975
28976 ii
28977 \begin_inset Quotes erd
28978 \end_inset
28979
28980 ,
28981  
28982 \begin_inset Quotes eld
28983 \end_inset
28984
28985 iii
28986 \begin_inset Quotes erd
28987 \end_inset
28988
28989 ,
28990  or 
28991 \begin_inset Quotes eld
28992 \end_inset
28993
28994 iv
28995 \begin_inset Quotes erd
28996 \end_inset
28997
28998 ,
28999  depending upon the depth.
29000  That can be over-ridden here.
29001  However,
29002  the suffix will not be added in that case.
29003  I.e.,
29004  the CSS class will always be exactly what it is declared to be here.
29005 \change_unchanged
29006
29007 \end_layout
29008
29009 \begin_layout Description
29010 \begin_inset Flex Code
29011 status collapsed
29012
29013 \begin_layout Plain Layout
29014 HTMLForceCSS
29015 \end_layout
29016
29017 \end_inset
29018
29019  [
29020 \begin_inset Flex Code
29021 status collapsed
29022
29023 \begin_layout Plain Layout
29024
29025 \emph on
29026 0
29027 \emph default
29028 ,1
29029 \end_layout
29030
29031 \end_inset
29032
29033 ] Whether to output the default CSS information \SpecialChar LyX
29034  generates for this layout,
29035  even if additional information is explicitly provided via 
29036 \begin_inset Flex Code
29037 status collapsed
29038
29039 \begin_layout Plain Layout
29040 HTMLStyle
29041 \end_layout
29042
29043 \end_inset
29044
29045 .
29046  Setting this to 
29047 \begin_inset Flex Code
29048 status collapsed
29049
29050 \begin_layout Plain Layout
29051 1
29052 \end_layout
29053
29054 \end_inset
29055
29056  allows you to alter or augment the generated CSS,
29057  rather than to override it completely.
29058  Default is 
29059 \begin_inset Flex Code
29060 status collapsed
29061
29062 \begin_layout Plain Layout
29063 0
29064 \end_layout
29065
29066 \end_inset
29067
29068 .
29069 \change_inserted -584632292 1670132213
29070
29071 \end_layout
29072
29073 \begin_layout Description
29074
29075 \change_inserted -584632292 1670132277
29076 \begin_inset Flex Code
29077 status collapsed
29078
29079 \begin_layout Plain Layout
29080
29081 \change_inserted -584632292 1670132221
29082 HTMLInToc
29083 \change_unchanged
29084
29085 \end_layout
29086
29087 \end_inset
29088
29089  [
29090 \begin_inset Flex Code
29091 status open
29092
29093 \begin_layout Plain Layout
29094
29095 \change_inserted -584632292 1670132214
29096 0,
29097 \emph on
29098 1
29099 \change_unchanged
29100
29101 \end_layout
29102
29103 \end_inset
29104
29105 ] Whether to include this paragraph (usually,
29106  a section or something of the sort) in the TOC.
29107  By default,
29108  true,
29109  so it should be set to false e.g.
29110 \begin_inset space ~
29111 \end_inset
29112
29113 for starred sections.
29114 \change_unchanged
29115
29116 \end_layout
29117
29118 \begin_layout Description
29119 \begin_inset Flex Code
29120 status collapsed
29121
29122 \begin_layout Plain Layout
29123 HTMLItem
29124 \end_layout
29125
29126 \end_inset
29127
29128  [
29129 \begin_inset Flex Code
29130 status collapsed
29131
29132 \begin_layout Plain Layout
29133 string
29134 \end_layout
29135
29136 \end_inset
29137
29138 ] The tag to be used for individual paragraphs of environments,
29139  replacing 
29140 \begin_inset Flex Code
29141 status collapsed
29142
29143 \begin_layout Plain Layout
29144 itemtag
29145 \end_layout
29146
29147 \end_inset
29148
29149  in the examples above.
29150  Defaults to 
29151 \begin_inset Flex Code
29152 status collapsed
29153
29154 \begin_layout Plain Layout
29155 div
29156 \end_layout
29157
29158 \end_inset
29159
29160 .
29161 \end_layout
29162
29163 \begin_layout Description
29164 \begin_inset Flex Code
29165 status collapsed
29166
29167 \begin_layout Plain Layout
29168 HTMLItemAttr
29169 \end_layout
29170
29171 \end_inset
29172
29173  [
29174 \begin_inset Flex Code
29175 status collapsed
29176
29177 \begin_layout Plain Layout
29178 string
29179 \end_layout
29180
29181 \end_inset
29182
29183 ] Attributes for the item tag.
29184  Defaults to
29185 \begin_inset Newline newline
29186 \end_inset
29187
29188
29189 \begin_inset Quotes eld
29190 \end_inset
29191
29192
29193 \begin_inset Flex Code
29194 status collapsed
29195
29196 \begin_layout Plain Layout
29197 class=`layoutname_item'
29198 \end_layout
29199
29200 \end_inset
29201
29202
29203 \begin_inset Quotes erd
29204 \end_inset
29205
29206 .
29207  This should 
29208 \emph on
29209 not
29210 \emph default
29211  contain any style information.
29212  Use 
29213 \begin_inset Flex Code
29214 status collapsed
29215
29216 \begin_layout Plain Layout
29217 HTMLStyle
29218 \end_layout
29219
29220 \end_inset
29221
29222  for that purpose.
29223 \end_layout
29224
29225 \begin_layout Description
29226 \begin_inset Flex Code
29227 status collapsed
29228
29229 \begin_layout Plain Layout
29230 HTMLLabel
29231 \end_layout
29232
29233 \end_inset
29234
29235  [
29236 \begin_inset Flex Code
29237 status collapsed
29238
29239 \begin_layout Plain Layout
29240 string
29241 \end_layout
29242
29243 \end_inset
29244
29245 ] The tag to be used for paragraph and item labels,
29246  replacing 
29247 \begin_inset Flex Code
29248 status collapsed
29249
29250 \begin_layout Plain Layout
29251 labeltag
29252 \end_layout
29253
29254 \end_inset
29255
29256  in the examples above.
29257  Defaults to 
29258 \begin_inset Flex Code
29259 status collapsed
29260
29261 \begin_layout Plain Layout
29262 span
29263 \end_layout
29264
29265 \end_inset
29266
29267 ,
29268  unless 
29269 \begin_inset Flex Code
29270 status collapsed
29271
29272 \begin_layout Plain Layout
29273 LabelType
29274 \end_layout
29275
29276 \end_inset
29277
29278  is either 
29279 \begin_inset Flex Code
29280 status collapsed
29281
29282 \begin_layout Plain Layout
29283 Top_Environment
29284 \end_layout
29285
29286 \end_inset
29287
29288  or 
29289 \begin_inset Flex Code
29290 status collapsed
29291
29292 \begin_layout Plain Layout
29293 Centered_Top_Environment
29294 \end_layout
29295
29296 \end_inset
29297
29298 ,
29299  in which case it defaults to 
29300 \begin_inset Flex Code
29301 status collapsed
29302
29303 \begin_layout Plain Layout
29304 div
29305 \end_layout
29306
29307 \end_inset
29308
29309 .
29310 \end_layout
29311
29312 \begin_layout Description
29313 \begin_inset Flex Code
29314 status collapsed
29315
29316 \begin_layout Plain Layout
29317 HTMLLabelAttr
29318 \end_layout
29319
29320 \end_inset
29321
29322  [
29323 \begin_inset Flex Code
29324 status collapsed
29325
29326 \begin_layout Plain Layout
29327 string
29328 \end_layout
29329
29330 \end_inset
29331
29332 ] Attributes for the label tag.
29333  Defaults to
29334 \begin_inset Newline newline
29335 \end_inset
29336
29337
29338 \begin_inset Quotes eld
29339 \end_inset
29340
29341
29342 \begin_inset Flex Code
29343 status collapsed
29344
29345 \begin_layout Plain Layout
29346 class=`layoutname_label'
29347 \end_layout
29348
29349 \end_inset
29350
29351
29352 \begin_inset Quotes erd
29353 \end_inset
29354
29355 .
29356  This should 
29357 \emph on
29358 not
29359 \emph default
29360  contain any style information.
29361  Use 
29362 \begin_inset Flex Code
29363 status collapsed
29364
29365 \begin_layout Plain Layout
29366 HTMLStyle
29367 \end_layout
29368
29369 \end_inset
29370
29371  for that purpose.
29372 \end_layout
29373
29374 \begin_layout Description
29375 \begin_inset Flex Code
29376 status collapsed
29377
29378 \begin_layout Plain Layout
29379 HTMLLabelFirst
29380 \end_layout
29381
29382 \end_inset
29383
29384  [
29385 \begin_inset Flex Code
29386 status collapsed
29387
29388 \begin_layout Plain Layout
29389
29390 \emph on
29391 0
29392 \emph default
29393 ,1
29394 \end_layout
29395
29396 \end_inset
29397
29398 ] Meaningful only for list-like environments,
29399  this tag controls whether the label tag is output before or inside the item tag.
29400  This is used,
29401  for example,
29402  in the description environment,
29403  where we want `
29404 \begin_inset Flex Code
29405 status collapsed
29406
29407 \begin_layout Plain Layout
29408 <dt>\SpecialChar ldots
29409 </dt><dd>\SpecialChar ldots
29410 </dd>
29411 \end_layout
29412
29413 \end_inset
29414
29415 .
29416  Default is 
29417 \begin_inset Flex Code
29418 status collapsed
29419
29420 \begin_layout Plain Layout
29421 0
29422 \end_layout
29423
29424 \end_inset
29425
29426 :
29427  The label tag is output inside the item tag.
29428 \end_layout
29429
29430 \begin_layout Description
29431 \begin_inset Flex Code
29432 status collapsed
29433
29434 \begin_layout Plain Layout
29435 HTMLPreamble
29436 \end_layout
29437
29438 \end_inset
29439
29440  Information to be output in the 
29441 \begin_inset Flex Code
29442 status collapsed
29443
29444 \begin_layout Plain Layout
29445 <head>
29446 \end_layout
29447
29448 \end_inset
29449
29450  section when this style is used.
29451  This might,
29452  for example,
29453  be used to include a 
29454 \begin_inset Flex Code
29455 status collapsed
29456
29457 \begin_layout Plain Layout
29458 <script>
29459 \end_layout
29460
29461 \end_inset
29462
29463  block defining an 
29464 \begin_inset Flex Code
29465 status collapsed
29466
29467 \begin_layout Plain Layout
29468 onclick
29469 \end_layout
29470
29471 \end_inset
29472
29473  handler.
29474 \end_layout
29475
29476 \begin_layout Description
29477 \begin_inset Flex Code
29478 status collapsed
29479
29480 \begin_layout Plain Layout
29481 HTMLStyle
29482 \end_layout
29483
29484 \end_inset
29485
29486  CSS style information to be included when this style is used.
29487  Note that this will automatically be wrapped in a layout-generated 
29488 \begin_inset Flex Code
29489 status collapsed
29490
29491 \begin_layout Plain Layout
29492 <style>
29493 \end_layout
29494
29495 \end_inset
29496
29497  block,
29498  so only the CSS itself need be included.
29499  Must end with 
29500 \begin_inset Flex Code
29501 status collapsed
29502
29503 \begin_layout Plain Layout
29504 EndHTMLStyle
29505 \end_layout
29506
29507 \end_inset
29508
29509 .
29510 \end_layout
29511
29512 \begin_layout Description
29513 \begin_inset Flex Code
29514 status collapsed
29515
29516 \begin_layout Plain Layout
29517 HTMLTag
29518 \end_layout
29519
29520 \end_inset
29521
29522  [
29523 \begin_inset Flex Code
29524 status collapsed
29525
29526 \begin_layout Plain Layout
29527 string
29528 \end_layout
29529
29530 \end_inset
29531
29532 ] The tag to be used for the main label,
29533  replacing 
29534 \begin_inset Flex Code
29535 status collapsed
29536
29537 \begin_layout Plain Layout
29538 tag
29539 \end_layout
29540
29541 \end_inset
29542
29543  in the examples above.
29544  Defaults to 
29545 \begin_inset Flex Code
29546 status collapsed
29547
29548 \begin_layout Plain Layout
29549 div
29550 \end_layout
29551
29552 \end_inset
29553
29554 .
29555 \end_layout
29556
29557 \begin_layout Description
29558 \begin_inset Flex Code
29559 status collapsed
29560
29561 \begin_layout Plain Layout
29562 HTMLTitle
29563 \end_layout
29564
29565 \end_inset
29566
29567  [
29568 \begin_inset Flex Code
29569 status collapsed
29570
29571 \begin_layout Plain Layout
29572
29573 \emph on
29574 0
29575 \emph default
29576 ,1
29577 \end_layout
29578
29579 \end_inset
29580
29581 ] Marks this style as the one to be used to generate the 
29582 \begin_inset Flex Code
29583 status collapsed
29584
29585 \begin_layout Plain Layout
29586 <title>
29587 \end_layout
29588
29589 \end_inset
29590
29591  tag for the XHTML file.
29592  By default,
29593  it is false.
29594  The 
29595 \begin_inset Flex Code
29596 status collapsed
29597
29598 \begin_layout Plain Layout
29599 stdtitle.inc
29600 \end_layout
29601
29602 \end_inset
29603
29604  file sets it to true for the 
29605 \begin_inset Flex Code
29606 status collapsed
29607
29608 \begin_layout Plain Layout
29609 title
29610 \end_layout
29611
29612 \end_inset
29613
29614  environment.
29615  
29616 \end_layout
29617
29618 \begin_layout Subsection
29619 InsetLayout XHTML
29620 \end_layout
29621
29622 \begin_layout Standard
29623 The XHTML output of insets can also be controlled by information in layout files.
29624 \begin_inset Foot
29625 status collapsed
29626
29627 \begin_layout Plain Layout
29628 At present,
29629  this is true only for 
29630 \begin_inset Quotes eld
29631 \end_inset
29632
29633 text
29634 \begin_inset Quotes erd
29635 \end_inset
29636
29637  insets (insets you can type into) and is not true for 
29638 \begin_inset Quotes eld
29639 \end_inset
29640
29641 command
29642 \begin_inset Quotes erd
29643 \end_inset
29644
29645  insets (insets that are associated with dialog boxes).
29646 \end_layout
29647
29648 \end_inset
29649
29650  Here,
29651  too,
29652  \SpecialChar LyX
29653  tries to provide sensible defaults,
29654  and it constructs default CSS style rules.
29655  But everything can be customized.
29656 \end_layout
29657
29658 \begin_layout Standard
29659 The XHTML \SpecialChar LyX
29660  outputs for an inset has the following form:
29661 \end_layout
29662
29663 \begin_layout LyX-Code
29664 <tag attr=
29665 \begin_inset Quotes erd
29666 \end_inset
29667
29668 value
29669 \begin_inset Quotes erd
29670 \end_inset
29671
29672 >
29673 \end_layout
29674
29675 \begin_layout LyX-Code
29676 <labeltag>Label</labeltag>
29677 \end_layout
29678
29679 \begin_layout LyX-Code
29680 <innertag attr=
29681 \begin_inset Quotes erd
29682 \end_inset
29683
29684 value
29685 \begin_inset Quotes erd
29686 \end_inset
29687
29688 >Contents of the inset.</innertag>
29689 \end_layout
29690
29691 \begin_layout LyX-Code
29692 </tag>
29693 \end_layout
29694
29695 \begin_layout Standard
29696 If the inset permits multiple paragraphs—
29697 that is,
29698  if 
29699 \begin_inset Flex Code
29700 status collapsed
29701
29702 \begin_layout Plain Layout
29703 MultiPar
29704 \end_layout
29705
29706 \end_inset
29707
29708  is true—
29709 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
29710  quote,
29711  and the like).
29712  The label tag is of course omitted if the paragraph does not have a label and,
29713  at present,
29714  is always 
29715 \begin_inset Flex Code
29716 status collapsed
29717
29718 \begin_layout Plain Layout
29719 span
29720 \end_layout
29721
29722 \end_inset
29723
29724 .
29725  The inner tag is optional and,
29726  by default,
29727  does not appear.
29728 \end_layout
29729
29730 \begin_layout Standard
29731 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
29732 \end_layout
29733
29734 \begin_layout Description
29735 \begin_inset Flex Code
29736 status collapsed
29737
29738 \begin_layout Plain Layout
29739 HTMLAttr
29740 \end_layout
29741
29742 \end_inset
29743
29744  [
29745 \begin_inset Flex Code
29746 status collapsed
29747
29748 \begin_layout Plain Layout
29749 string
29750 \end_layout
29751
29752 \end_inset
29753
29754 ] Specifies attribute information to be output with the main tag.
29755  For example,
29756  
29757 \begin_inset Quotes eld
29758 \end_inset
29759
29760
29761 \begin_inset Flex Code
29762 status collapsed
29763
29764 \begin_layout Plain Layout
29765 class=`myinset' onclick=`\SpecialChar ldots
29766 '
29767 \end_layout
29768
29769 \end_inset
29770
29771
29772 \begin_inset Quotes erd
29773 \end_inset
29774
29775 .
29776  By default,
29777  \SpecialChar LyX
29778  will output 
29779 \begin_inset Quotes eld
29780 \end_inset
29781
29782
29783 \begin_inset Flex Code
29784 status collapsed
29785
29786 \begin_layout Plain Layout
29787 class=`insetname'
29788 \end_layout
29789
29790 \end_inset
29791
29792
29793 \begin_inset Quotes erd
29794 \end_inset
29795
29796 ,
29797  where 
29798 \begin_inset Flex Code
29799 status collapsed
29800
29801 \begin_layout Plain Layout
29802 insetname
29803 \end_layout
29804
29805 \end_inset
29806
29807  is the \SpecialChar LyX
29808  name of the inset,
29809  made lowercase and with non-alphanumeric characters converted to underscores,
29810  for example:
29811  footnote.
29812 \end_layout
29813
29814 \begin_layout Description
29815 \begin_inset Flex Code
29816 status collapsed
29817
29818 \begin_layout Plain Layout
29819 HTMLForceCSS
29820 \end_layout
29821
29822 \end_inset
29823
29824  [
29825 \begin_inset Flex Code
29826 status collapsed
29827
29828 \begin_layout Plain Layout
29829
29830 \emph on
29831 0
29832 \emph default
29833 ,1
29834 \end_layout
29835
29836 \end_inset
29837
29838 ] Whether to output the default CSS information \SpecialChar LyX
29839  generates for this layout,
29840  even if additional information is explicitly provided via 
29841 \begin_inset Flex Code
29842 status collapsed
29843
29844 \begin_layout Plain Layout
29845 HTMLStyle
29846 \end_layout
29847
29848 \end_inset
29849
29850 .
29851  Setting this to 
29852 \begin_inset Flex Code
29853 status collapsed
29854
29855 \begin_layout Plain Layout
29856 1
29857 \end_layout
29858
29859 \end_inset
29860
29861  allows you to alter or augment the generated CSS,
29862  rather than to override it completely.
29863  Default is 0.
29864 \end_layout
29865
29866 \begin_layout Description
29867 \begin_inset Flex Code
29868 status collapsed
29869
29870 \begin_layout Plain Layout
29871 HTMLInnerAttr
29872 \end_layout
29873
29874 \end_inset
29875
29876  [
29877 \begin_inset Flex Code
29878 status collapsed
29879
29880 \begin_layout Plain Layout
29881 string
29882 \end_layout
29883
29884 \end_inset
29885
29886 ] Attributes for the inner tag.
29887  Defaults to
29888 \begin_inset Newline newline
29889 \end_inset
29890
29891
29892 \begin_inset Quotes eld
29893 \end_inset
29894
29895
29896 \begin_inset Flex Code
29897 status collapsed
29898
29899 \begin_layout Plain Layout
29900 class=`insetname_inner'
29901 \end_layout
29902
29903 \end_inset
29904
29905
29906 \begin_inset Quotes erd
29907 \end_inset
29908
29909 .
29910 \end_layout
29911
29912 \begin_layout Description
29913 \begin_inset Flex Code
29914 status collapsed
29915
29916 \begin_layout Plain Layout
29917 HTMLInnerTag
29918 \end_layout
29919
29920 \end_inset
29921
29922  [
29923 \begin_inset Flex Code
29924 status collapsed
29925
29926 \begin_layout Plain Layout
29927 string
29928 \end_layout
29929
29930 \end_inset
29931
29932 ] The inner tag,
29933  replacing 
29934 \begin_inset Flex Code
29935 status collapsed
29936
29937 \begin_layout Plain Layout
29938 innertag
29939 \end_layout
29940
29941 \end_inset
29942
29943  in the examples above.
29944  By default,
29945  there is none.
29946 \end_layout
29947
29948 \begin_layout Description
29949 \begin_inset Flex Code
29950 status collapsed
29951
29952 \begin_layout Plain Layout
29953 HTMLIsBlock
29954 \end_layout
29955
29956 \end_inset
29957
29958  [
29959 \begin_inset Flex Code
29960 status collapsed
29961
29962 \begin_layout Plain Layout
29963 0,
29964 \emph on
29965 1
29966 \end_layout
29967
29968 \end_inset
29969
29970 ] Whether this inset represents a standalone block of text (such as a footnote) or instead represents material that is included in the surrounding text (such as a branch).
29971  Defaults to 1.
29972 \end_layout
29973
29974 \begin_layout Description
29975 \begin_inset Flex Code
29976 status collapsed
29977
29978 \begin_layout Plain Layout
29979 HTMLLabel
29980 \end_layout
29981
29982 \end_inset
29983
29984  [
29985 \begin_inset Flex Code
29986 status collapsed
29987
29988 \begin_layout Plain Layout
29989 string
29990 \end_layout
29991
29992 \end_inset
29993
29994 ] A label for this inset,
29995  possibly including a reference to a counter.
29996  For example,
29997  for footnote,
29998  it might be:
29999  
30000 \begin_inset Flex Code
30001 status collapsed
30002
30003 \begin_layout Plain Layout
30004
30005 \backslash
30006 arabic{footnote}
30007 \end_layout
30008
30009 \end_inset
30010
30011 .
30012  This is optional,
30013  and there is no default.
30014 \end_layout
30015
30016 \begin_layout Description
30017 \begin_inset Flex Code
30018 status collapsed
30019
30020 \begin_layout Plain Layout
30021 HTMLPreamble
30022 \end_layout
30023
30024 \end_inset
30025
30026  Information to be output in the 
30027 \begin_inset Flex Code
30028 status collapsed
30029
30030 \begin_layout Plain Layout
30031 <head>
30032 \end_layout
30033
30034 \end_inset
30035
30036  section when this style is used.
30037  This might,
30038  for example,
30039  be used to include a 
30040 \begin_inset Flex Code
30041 status collapsed
30042
30043 \begin_layout Plain Layout
30044 <script>
30045 \end_layout
30046
30047 \end_inset
30048
30049  block defining an 
30050 \begin_inset Flex Code
30051 status collapsed
30052
30053 \begin_layout Plain Layout
30054 onclick
30055 \end_layout
30056
30057 \end_inset
30058
30059  handler.
30060 \end_layout
30061
30062 \begin_layout Description
30063 \begin_inset Flex Code
30064 status collapsed
30065
30066 \begin_layout Plain Layout
30067 HTMLStyle
30068 \end_layout
30069
30070 \end_inset
30071
30072  CSS style information to be included when this style is used.
30073  Note that this will automatically be wrapped in a layout-generated 
30074 \begin_inset Flex Code
30075 status collapsed
30076
30077 \begin_layout Plain Layout
30078 <style>
30079 \end_layout
30080
30081 \end_inset
30082
30083  block,
30084  so only the CSS itself need be included.
30085 \end_layout
30086
30087 \begin_layout Description
30088 \begin_inset Flex Code
30089 status collapsed
30090
30091 \begin_layout Plain Layout
30092 HTMLTag
30093 \end_layout
30094
30095 \end_inset
30096
30097  [
30098 \begin_inset Flex Code
30099 status collapsed
30100
30101 \begin_layout Plain Layout
30102 string
30103 \end_layout
30104
30105 \end_inset
30106
30107 ] The tag to be used for the main label,
30108  replacing 
30109 \begin_inset Flex Code
30110 status collapsed
30111
30112 \begin_layout Plain Layout
30113 tag
30114 \end_layout
30115
30116 \end_inset
30117
30118  in the examples above.
30119  The default depends upon the setting of 
30120 \begin_inset Flex Code
30121 status collapsed
30122
30123 \begin_layout Plain Layout
30124 MultiPar
30125 \end_layout
30126
30127 \end_inset
30128
30129 :
30130  If 
30131 \begin_inset Flex Code
30132 status collapsed
30133
30134 \begin_layout Plain Layout
30135 MultiPar
30136 \end_layout
30137
30138 \end_inset
30139
30140  is true,
30141  the default is 
30142 \begin_inset Flex Code
30143 status collapsed
30144
30145 \begin_layout Plain Layout
30146 div
30147 \end_layout
30148
30149 \end_inset
30150
30151 ;
30152  if it is false,
30153  the default is 
30154 \begin_inset Flex Code
30155 status collapsed
30156
30157 \begin_layout Plain Layout
30158 span
30159 \end_layout
30160
30161 \end_inset
30162
30163 .
30164 \end_layout
30165
30166 \begin_layout Subsection
30167 Float XHTML
30168 \end_layout
30169
30170 \begin_layout Standard
30171 The XHTML output for floats too can be controlled by layout information.
30172  The output has the following form:
30173 \end_layout
30174
30175 \begin_layout LyX-Code
30176 <tag attr=
30177 \begin_inset Quotes erd
30178 \end_inset
30179
30180 value
30181 \begin_inset Quotes erd
30182 \end_inset
30183
30184 >
30185 \end_layout
30186
30187 \begin_layout LyX-Code
30188 Contents of the float.
30189 \end_layout
30190
30191 \begin_layout LyX-Code
30192 </tag>
30193 \end_layout
30194
30195 \begin_layout Standard
30196 The caption,
30197  if there is one,
30198  is a separate inset and will be output as such.
30199  Its appearance can be controlled via the InsetLayout for caption insets.
30200  
30201 \end_layout
30202
30203 \begin_layout Description
30204 \begin_inset Flex Code
30205 status collapsed
30206
30207 \begin_layout Plain Layout
30208 HTMLAttr
30209 \end_layout
30210
30211 \end_inset
30212
30213  [
30214 \begin_inset Flex Code
30215 status collapsed
30216
30217 \begin_layout Plain Layout
30218 string
30219 \end_layout
30220
30221 \end_inset
30222
30223 ] Specifies attribute information to be output with the main tag.
30224  For example,
30225  
30226 \begin_inset Quotes eld
30227 \end_inset
30228
30229
30230 \begin_inset Flex Code
30231 status collapsed
30232
30233 \begin_layout Plain Layout
30234 class=`myfloat' onclick=`\SpecialChar ldots
30235 '
30236 \end_layout
30237
30238 \end_inset
30239
30240
30241 \begin_inset Quotes erd
30242 \end_inset
30243
30244 .
30245  By default,
30246  \SpecialChar LyX
30247  will output 
30248 \begin_inset Quotes eld
30249 \end_inset
30250
30251
30252 \begin_inset Flex Code
30253 status collapsed
30254
30255 \begin_layout Plain Layout
30256 class=`float float-floattype'
30257 \end_layout
30258
30259 \end_inset
30260
30261
30262 \begin_inset Quotes erd
30263 \end_inset
30264
30265 ,
30266  where 
30267 \begin_inset Flex Code
30268 status collapsed
30269
30270 \begin_layout Plain Layout
30271 floattype
30272 \end_layout
30273
30274 \end_inset
30275
30276  is \SpecialChar LyX
30277 's name for this type of float,
30278  as determined by the float declaration (see 
30279 \begin_inset CommandInset ref
30280 LatexCommand ref
30281 reference "subsec:Floats"
30282 nolink "false"
30283
30284 \end_inset
30285
30286 ),
30287  though made lowercase and with non-alphanumeric characters converted to underscores,
30288  for example:
30289  float-table.
30290 \end_layout
30291
30292 \begin_layout Description
30293 \begin_inset Flex Code
30294 status collapsed
30295
30296 \begin_layout Plain Layout
30297 HTMLStyle
30298 \end_layout
30299
30300 \end_inset
30301
30302  CSS style information to be included when this float is used.
30303  Note that this will automatically be wrapped in a layout-generated 
30304 \begin_inset Flex Code
30305 status collapsed
30306
30307 \begin_layout Plain Layout
30308 <style>
30309 \end_layout
30310
30311 \end_inset
30312
30313  block,
30314  so only the CSS itself need be included.
30315 \end_layout
30316
30317 \begin_layout Description
30318 \begin_inset Flex Code
30319 status collapsed
30320
30321 \begin_layout Plain Layout
30322 HTMLTag
30323 \end_layout
30324
30325 \end_inset
30326
30327  [
30328 \begin_inset Flex Code
30329 status collapsed
30330
30331 \begin_layout Plain Layout
30332 string
30333 \end_layout
30334
30335 \end_inset
30336
30337 ] The tag to be used for this float,
30338  replacing 
30339 \begin_inset Quotes eld
30340 \end_inset
30341
30342
30343 \begin_inset Flex Code
30344 status collapsed
30345
30346 \begin_layout Plain Layout
30347 tag
30348 \end_layout
30349
30350 \end_inset
30351
30352
30353 \begin_inset Quotes erd
30354 \end_inset
30355
30356  in the example above.
30357  The default is 
30358 \begin_inset Flex Code
30359 status collapsed
30360
30361 \begin_layout Plain Layout
30362 div
30363 \end_layout
30364
30365 \end_inset
30366
30367  and will rarely need changing.
30368 \end_layout
30369
30370 \begin_layout Subsection
30371 Bibliography formatting
30372 \end_layout
30373
30374 \begin_layout Standard
30375 The bibliography can be formatted using 
30376 \begin_inset Flex Code
30377 status collapsed
30378
30379 \begin_layout Plain Layout
30380 CiteFormat
30381 \end_layout
30382
30383 \end_inset
30384
30385  blocks.
30386  See 
30387 \begin_inset CommandInset ref
30388 LatexCommand ref
30389 reference "subsec:Citation-format-description"
30390 nolink "false"
30391
30392 \end_inset
30393
30394  for the details.
30395 \end_layout
30396
30397 \begin_layout Subsection
30398 \SpecialChar LyX
30399 -generated CSS
30400 \end_layout
30401
30402 \begin_layout Standard
30403 We have several times mentioned that \SpecialChar LyX
30404  will generate default CSS style rules for both insets and paragraph styles,
30405  based upon the other layout information that is provided.
30406  In this section,
30407  we shall say a word about which layout information \SpecialChar LyX
30408  uses and how.
30409 \end_layout
30410
30411 \begin_layout Standard
30412 At present,
30413  \SpecialChar LyX
30414  auto-generates CSS only for font information,
30415  making use of the 
30416 \begin_inset Flex Code
30417 status collapsed
30418
30419 \begin_layout Plain Layout
30420 Family
30421 \end_layout
30422
30423 \end_inset
30424
30425 ,
30426  
30427 \begin_inset Flex Code
30428 status collapsed
30429
30430 \begin_layout Plain Layout
30431 Series
30432 \end_layout
30433
30434 \end_inset
30435
30436 ,
30437  
30438 \begin_inset Flex Code
30439 status collapsed
30440
30441 \begin_layout Plain Layout
30442 Shape
30443 \end_layout
30444
30445 \end_inset
30446
30447 ,
30448  and 
30449 \begin_inset Flex Code
30450 status collapsed
30451
30452 \begin_layout Plain Layout
30453 Size
30454 \end_layout
30455
30456 \end_inset
30457
30458  specified in the 
30459 \begin_inset Flex Code
30460 status collapsed
30461
30462 \begin_layout Plain Layout
30463 Font
30464 \end_layout
30465
30466 \end_inset
30467
30468  declaration (see 
30469 \begin_inset CommandInset ref
30470 LatexCommand ref
30471 reference "subsec:Font-description"
30472 nolink "false"
30473
30474 \end_inset
30475
30476 ).
30477  The translation is mostly straightforward and obvious.
30478  For example,
30479  
30480 \begin_inset Quotes eld
30481 \end_inset
30482
30483
30484 \begin_inset Flex Code
30485 status collapsed
30486
30487 \begin_layout Plain Layout
30488 Family Sans
30489 \end_layout
30490
30491 \end_inset
30492
30493
30494 \begin_inset Quotes erd
30495 \end_inset
30496
30497  becomes 
30498 \begin_inset Quotes eld
30499 \end_inset
30500
30501
30502 \begin_inset Flex Code
30503 status collapsed
30504
30505 \begin_layout Plain Layout
30506 font-family:
30507  sans-serif;
30508 \end_layout
30509
30510 \end_inset
30511
30512
30513 \begin_inset Quotes erd
30514 \end_inset
30515
30516 .
30517  The correspondence of \SpecialChar LyX
30518  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
30519  See the 
30520 \begin_inset Flex Code
30521 status collapsed
30522
30523 \begin_layout Plain Layout
30524 getSizeCSS()
30525 \end_layout
30526
30527 \end_inset
30528
30529  function in 
30530 \begin_inset Flex URL
30531 status collapsed
30532
30533 \begin_layout Plain Layout
30534
30535 src/FontInfo.cpp
30536 \end_layout
30537
30538 \end_inset
30539
30540  for the details.
30541 \change_inserted -970929547 1496610908
30542
30543 \end_layout
30544
30545 \begin_layout Section
30546
30547 \change_inserted -970929547 1496610966
30548 \begin_inset CommandInset label
30549 LatexCommand label
30550 name "sec:Tags-for-DocBook"
30551
30552 \end_inset
30553
30554 Tags for DocBook output
30555 \end_layout
30556
30557 \begin_layout Standard
30558
30559 \change_inserted -970929547 1496611615
30560 As with \SpecialChar LaTeX
30561  or XHTML,
30562  the format of \SpecialChar LyX
30563 's DocBook output is also controlled by layout information.
30564  In general,
30565  \SpecialChar LyX
30566  provides sensible defaults;
30567  however,
30568  much of the styling is lost during the conversion,
30569  as DocBook is strictly semantic and does not allow formatting.
30570  When possible,
30571  information from \SpecialChar LyX
30572  will be rendered in 
30573 \family typewriter
30574 role
30575 \family default
30576  attributes.
30577  
30578 \end_layout
30579
30580 \begin_layout Standard
30581
30582 \change_inserted -970929547 1496612080
30583 In many cases,
30584  then,
30585  you may not have to do anything at all to get acceptable DocBook output for your own environments,
30586  custom insets,
30587  and so forth.
30588  But in some cases you will,
30589  and so \SpecialChar LyX
30590  provides a number of layout tags that can be used to customize the DocBook that is generated.
30591 \end_layout
30592
30593 \begin_layout Standard
30594
30595 \change_inserted -970929547 1515109912
30596 Labels are rarely output,
30597  as they are redundant in DocBook:
30598  this information is carried by the tags themselves,
30599  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
30600  However,
30601  sometimes,
30602  labels are not redundant content,
30603  such as definition lists:
30604  in this case,
30605  the term being defined will be the label.
30606  
30607 \end_layout
30608
30609 \begin_layout Subsection
30610
30611 \change_inserted 1075283030 1597699417
30612 \begin_inset CommandInset label
30613 LatexCommand label
30614 name "subsec:Paragraph-Style-DocBook"
30615
30616 \end_inset
30617
30618
30619 \change_deleted 1075283030 1597699417
30620
30621 \begin_inset CommandInset label
30622 LatexCommand label
30623 name "subsec:Paragraph-Style-XHTML-1"
30624
30625 \end_inset
30626
30627
30628 \change_inserted -970929547 1496610966
30629 Paragraph styles
30630 \end_layout
30631
30632 \begin_layout Standard
30633
30634 \change_inserted -970929547 1496612059
30635 The sort of DocBook \SpecialChar LyX
30636  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
30637  a command,
30638  or an environment,
30639  where this is itself determined by the contents of the corresponding 
30640 \begin_inset Flex Code
30641 status collapsed
30642
30643 \begin_layout Plain Layout
30644
30645 \change_inserted -970929547 1496610966
30646 \SpecialChar LaTeX
30647 Type
30648 \change_unchanged
30649
30650 \end_layout
30651
30652 \end_inset
30653
30654  tag.
30655  
30656 \end_layout
30657
30658 \begin_layout Standard
30659
30660 \change_inserted -970929547 1496612107
30661 For a command or normal paragraph,
30662  the output DocBook has the following form:
30663 \end_layout
30664
30665 \begin_layout LyX-Code
30666
30667 \change_inserted -970929547 1515109666
30668 <tag attr>
30669 \end_layout
30670
30671 \begin_layout LyX-Code
30672
30673 \change_inserted -970929547 1496610966
30674 Contents of the paragraph.
30675 \end_layout
30676
30677 \begin_layout LyX-Code
30678
30679 \change_inserted -970929547 1496610966
30680 </tag>
30681 \end_layout
30682
30683 \begin_layout Standard
30684
30685 \change_inserted -970929547 1515109821
30686 For an environment that is not some sort of list,
30687  the generated DocBook takes this form:
30688 \end_layout
30689
30690 \begin_layout LyX-Code
30691
30692 \change_inserted -970929547 1515109671
30693 <tag attr>
30694 \end_layout
30695
30696 \begin_layout LyX-Code
30697
30698 \change_inserted -970929547 1496612114
30699 <itemtag>First paragraph.</itemtag>
30700 \end_layout
30701
30702 \begin_layout LyX-Code
30703
30704 \change_inserted -970929547 1496610966
30705 <itemtag>Second paragraph.</itemtag>
30706 \end_layout
30707
30708 \begin_layout LyX-Code
30709
30710 \change_inserted -970929547 1496610966
30711 </tag>
30712 \end_layout
30713
30714 \begin_layout Standard
30715
30716 \change_inserted -970929547 1515109825
30717 For a list,
30718  the resulting DocBook takes this form:
30719 \end_layout
30720
30721 \begin_layout LyX-Code
30722
30723 \change_inserted -970929547 1515109672
30724 <tag attr>
30725 \end_layout
30726
30727 \begin_layout LyX-Code
30728
30729 \change_inserted -970929547 1515109676
30730 <itemtag attr>First item.</itemtag>
30731 \end_layout
30732
30733 \begin_layout LyX-Code
30734
30735 \change_inserted -970929547 1515109678
30736 <itemtag attr>Second item.</itemtag>
30737 \end_layout
30738
30739 \begin_layout LyX-Code
30740
30741 \change_inserted -970929547 1496610966
30742 </tag>
30743 \end_layout
30744
30745 \begin_layout Standard
30746
30747 \change_inserted -970929547 1496612243
30748 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
30749  Please note that,
30750  due to the very nature of DocBook,
30751  no sensible defaults really exist,
30752  and the values must always be carefully chosen.
30753  
30754 \end_layout
30755
30756 \begin_layout Description
30757
30758 \change_inserted -970929547 1515110057
30759 \begin_inset Flex Code
30760 status collapsed
30761
30762 \begin_layout Plain Layout
30763
30764 \change_inserted -970929547 1515109656
30765 DocBookAttr
30766 \change_unchanged
30767
30768 \end_layout
30769
30770 \end_inset
30771
30772  [
30773 \begin_inset Flex Code
30774 status collapsed
30775
30776 \begin_layout Plain Layout
30777
30778 \change_inserted -970929547 1496610966
30779 string
30780 \change_unchanged
30781
30782 \end_layout
30783
30784 \end_inset
30785
30786 ] Specifies attribute information to be output with the main tag,
30787  replacing 
30788 \begin_inset Quotes eld
30789 \end_inset
30790
30791
30792 \begin_inset Flex Code
30793 status collapsed
30794
30795 \begin_layout Plain Layout
30796
30797 \change_inserted -970929547 1515110057
30798 attr
30799 \change_unchanged
30800
30801 \end_layout
30802
30803 \end_inset
30804
30805
30806 \begin_inset Quotes erd
30807 \end_inset
30808
30809  in the example above.
30810  This information can be used in further processing of the DocBook files.
30811  
30812 \change_unchanged
30813
30814 \end_layout
30815
30816 \begin_layout Description
30817
30818 \change_inserted -970929547 1496612296
30819 \begin_inset Flex Code
30820 status collapsed
30821
30822 \begin_layout Plain Layout
30823
30824 \change_inserted -970929547 1496612269
30825 DocBookTag
30826 \change_unchanged
30827
30828 \end_layout
30829
30830 \end_inset
30831
30832  [
30833 \begin_inset Flex Code
30834 status collapsed
30835
30836 \begin_layout Plain Layout
30837
30838 \change_inserted -970929547 1496610966
30839 string
30840 \change_unchanged
30841
30842 \end_layout
30843
30844 \end_inset
30845
30846 ] The tag to be used for this inset,
30847  replacing 
30848 \begin_inset Quotes eld
30849 \end_inset
30850
30851
30852 \begin_inset Flex Code
30853 status collapsed
30854
30855 \begin_layout Plain Layout
30856
30857 \change_inserted -970929547 1496612296
30858 tag
30859 \change_unchanged
30860
30861 \end_layout
30862
30863 \end_inset
30864
30865
30866 \begin_inset Quotes erd
30867 \end_inset
30868
30869  in the example above.
30870  The default is the name of the float and always needs to be changed,
30871  as DocBook provides no generic tag.
30872 \change_inserted 1075283030 1597698868
30873
30874 \end_layout
30875
30876 \begin_layout Description
30877
30878 \change_inserted 1075283030 1597699399
30879 \begin_inset Flex Code
30880 status collapsed
30881
30882 \begin_layout Plain Layout
30883
30884 \change_inserted 1075283030 1597698872
30885 DocBookTagType
30886 \change_unchanged
30887
30888 \end_layout
30889
30890 \end_inset
30891
30892  [
30893 \begin_inset Flex Code
30894 status collapsed
30895
30896 \begin_layout Plain Layout
30897
30898 \change_inserted 1075283030 1597700585
30899 block,
30900  paragraph,
30901  inline
30902 \change_unchanged
30903
30904 \end_layout
30905
30906 \end_inset
30907
30908 ] The new-line policy for this tag,
30909  see Section
30910 \begin_inset space ~
30911 \end_inset
30912
30913
30914 \begin_inset CommandInset ref
30915 LatexCommand ref
30916 reference "subsec:DocBook-New-line-policy"
30917 plural "false"
30918 caps "false"
30919 noprefix "false"
30920 nolink "false"
30921
30922 \end_inset
30923
30924  for the details.
30925  
30926 \change_unchanged
30927
30928 \end_layout
30929
30930 \begin_layout Subsection
30931
30932 \change_inserted 1075283030 1597699385
30933 New-line policy
30934 \begin_inset CommandInset label
30935 LatexCommand label
30936 name "subsec:DocBook-New-line-policy"
30937
30938 \end_inset
30939
30940
30941 \end_layout
30942
30943 \begin_layout Standard
30944
30945 \change_inserted 1075283030 1597698993
30946 For all tags,
30947  there are three possible policies for outputting new lines (given in the 
30948 \begin_inset Flex Code
30949 status collapsed
30950
30951 \begin_layout Plain Layout
30952
30953 \change_inserted 1075283030 1597698987
30954 DocBook*TagType
30955 \change_unchanged
30956
30957 \end_layout
30958
30959 \end_inset
30960
30961  attribute):
30962  
30963 \end_layout
30964
30965 \begin_layout Itemize
30966
30967 \change_inserted 1075283030 1597699279
30968 \begin_inset Quotes eld
30969 \end_inset
30970
30971
30972 \begin_inset Flex Code
30973 status collapsed
30974
30975 \begin_layout Plain Layout
30976
30977 \change_inserted 1075283030 1597699012
30978 block
30979 \change_unchanged
30980
30981 \end_layout
30982
30983 \end_inset
30984
30985
30986 \begin_inset Quotes erd
30987 \end_inset
30988
30989 :
30990  the opening and closing tags are on their own lines (i.e.
30991  a line feed after and before the opening and the closing tags).
30992  Typical elements are floats.
30993  For instance:
30994  
30995 \end_layout
30996
30997 \begin_layout LyX-Code
30998
30999 \change_inserted 1075283030 1597699194
31000 Content before
31001 \end_layout
31002
31003 \begin_layout LyX-Code
31004
31005 \change_inserted 1075283030 1597699194
31006 <blocktag>
31007 \end_layout
31008
31009 \begin_layout LyX-Code
31010
31011 \change_inserted 1075283030 1597699098
31012   Contents of the block.
31013 \end_layout
31014
31015 \begin_layout LyX-Code
31016
31017 \change_inserted 1075283030 1597699196
31018 </blocktag>
31019 \end_layout
31020
31021 \begin_layout LyX-Code
31022
31023 \change_inserted 1075283030 1597699198
31024 Content after
31025 \end_layout
31026
31027 \begin_layout Itemize
31028
31029 \change_inserted 1075283030 1597699289
31030 \begin_inset Quotes eld
31031 \end_inset
31032
31033
31034 \begin_inset Flex Code
31035 status collapsed
31036
31037 \begin_layout Plain Layout
31038
31039 \change_inserted 1075283030 1597699113
31040 paragraph
31041 \change_unchanged
31042
31043 \end_layout
31044
31045 \end_inset
31046
31047
31048 \begin_inset Quotes erd
31049 \end_inset
31050
31051 :
31052  the opening and closing tags are on the same,
31053  new line;
31054  a line feed is output before the opening tag and after the closing tag.
31055  Typical elements are paragraphs and list items.
31056  For instance:
31057  
31058 \end_layout
31059
31060 \begin_layout LyX-Code
31061
31062 \change_inserted 1075283030 1597699186
31063 Content before
31064 \end_layout
31065
31066 \begin_layout LyX-Code
31067
31068 \change_inserted 1075283030 1597699357
31069 <paratag>Contents of the paragraph.</paratag>
31070 \end_layout
31071
31072 \begin_layout LyX-Code
31073
31074 \change_inserted 1075283030 1597699231
31075 Content after
31076 \end_layout
31077
31078 \begin_layout Itemize
31079
31080 \change_inserted 1075283030 1597699343
31081 \begin_inset Quotes eld
31082 \end_inset
31083
31084
31085 \begin_inset Flex Code
31086 status collapsed
31087
31088 \begin_layout Plain Layout
31089
31090 \change_inserted 1075283030 1597699307
31091 inline
31092 \change_unchanged
31093
31094 \end_layout
31095
31096 \end_inset
31097
31098
31099 \begin_inset Quotes erd
31100 \end_inset
31101
31102 :
31103  the opening and closing tags are on the same line as the rest of the content.
31104  No line feeds are output.
31105  Typical elements are fonts.
31106  For instance:
31107  
31108 \end_layout
31109
31110 \begin_layout LyX-Code
31111
31112 \change_inserted 1075283030 1597699585
31113 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
31114 \end_layout
31115
31116 \begin_layout Standard
31117
31118 \change_inserted 1075283030 1597699585
31119 The default value is always 
31120 \begin_inset Quotes eld
31121 \end_inset
31122
31123
31124 \begin_inset Flex Code
31125 status collapsed
31126
31127 \begin_layout Plain Layout
31128
31129 \change_inserted 1075283030 1597699585
31130 block
31131 \change_unchanged
31132
31133 \end_layout
31134
31135 \end_inset
31136
31137
31138 \begin_inset Quotes erd
31139 \end_inset
31140
31141 .
31142 \change_unchanged
31143
31144 \end_layout
31145
31146 \begin_layout Subsection
31147
31148 \change_inserted -970929547 1515111533
31149 InsetLayout DocBook
31150 \change_unchanged
31151
31152 \end_layout
31153
31154 \begin_layout Standard
31155
31156 \change_inserted -970929547 1496611894
31157 The DocBook output of insets can also be controlled by information in layout files.
31158 \end_layout
31159
31160 \begin_layout Standard
31161
31162 \change_inserted -970929547 1496612045
31163 The DocBook \SpecialChar LyX
31164  outputs for an inset has the following form:
31165 \end_layout
31166
31167 \begin_layout LyX-Code
31168
31169 \change_inserted -970929547 1515110861
31170 <wrappertag wrapperattr>
31171 \end_layout
31172
31173 \begin_layout LyX-Code
31174
31175 \change_inserted -970929547 1515110868
31176   <tag attr>
31177 \end_layout
31178
31179 \begin_layout LyX-Code
31180
31181 \change_inserted -970929547 1515110869
31182     <innertag innerattr>
31183 \end_layout
31184
31185 \begin_layout LyX-Code
31186
31187 \change_inserted -970929547 1515110869
31188       Contents of the inset.
31189 \end_layout
31190
31191 \begin_layout LyX-Code
31192
31193 \change_inserted -970929547 1515110870
31194     </innertag>
31195 \end_layout
31196
31197 \begin_layout LyX-Code
31198
31199 \change_inserted -970929547 1515110871
31200   </tag>
31201 \end_layout
31202
31203 \begin_layout LyX-Code
31204
31205 \change_inserted -970929547 1515111172
31206 </wrappertag>
31207 \end_layout
31208
31209 \begin_layout Standard
31210
31211 \change_inserted -970929547 1515111186
31212 For an itemising inset,
31213  it rather looks like this:
31214  
31215 \end_layout
31216
31217 \begin_layout LyX-Code
31218
31219 \change_inserted -970929547 1515111186
31220 <wrappertag wrapperattr>
31221 \end_layout
31222
31223 \begin_layout LyX-Code
31224
31225 \change_inserted -970929547 1515111186
31226   <tag attr>
31227 \end_layout
31228
31229 \begin_layout LyX-Code
31230
31231 \change_inserted -970929547 1515111186
31232     <innertag innerattr>
31233 \end_layout
31234
31235 \begin_layout LyX-Code
31236
31237 \change_inserted -970929547 1515111362
31238       <itemwrappertag itemwrapperattr>
31239 \end_layout
31240
31241 \begin_layout LyX-Code
31242
31243 \change_inserted -970929547 1515111364
31244         <itemlabeltag itemattr>
31245 \end_layout
31246
31247 \begin_layout LyX-Code
31248
31249 \change_inserted -970929547 1515111367
31250           Label of the first item.
31251 \end_layout
31252
31253 \begin_layout LyX-Code
31254
31255 \change_inserted -970929547 1515111362
31256         </itemtag>
31257 \change_unchanged
31258
31259 \end_layout
31260
31261 \begin_layout LyX-Code
31262
31263 \change_inserted -970929547 1515111517
31264         <itemtag itemattr>
31265 \end_layout
31266
31267 \begin_layout LyX-Code
31268
31269 \change_inserted -970929547 1515111517
31270           <itemtag itemattr>
31271 \change_unchanged
31272
31273 \end_layout
31274
31275 \begin_layout LyX-Code
31276
31277 \change_inserted -970929547 1515111516
31278             Contents of the first item.
31279 \end_layout
31280
31281 \begin_layout LyX-Code
31282
31283 \change_inserted -970929547 1515111514
31284           </itemtag>
31285 \change_unchanged
31286
31287 \end_layout
31288
31289 \begin_layout LyX-Code
31290
31291 \change_inserted -970929547 1515111247
31292         </itemtag>
31293 \change_unchanged
31294
31295 \end_layout
31296
31297 \begin_layout LyX-Code
31298
31299 \change_inserted -970929547 1515111221
31300       </itemwrappertag>
31301 \end_layout
31302
31303 \begin_layout LyX-Code
31304
31305 \change_inserted -970929547 1515111370
31306       <itemwrappertag itemwrapperattr>
31307 \end_layout
31308
31309 \begin_layout LyX-Code
31310
31311 \change_inserted -970929547 1515111370
31312         <itemlabeltag itemattr>
31313 \end_layout
31314
31315 \begin_layout LyX-Code
31316
31317 \change_inserted -970929547 1515111372
31318           Label of the second item.
31319 \end_layout
31320
31321 \begin_layout LyX-Code
31322
31323 \change_inserted -970929547 1515111370
31324         </itemtag>
31325 \change_unchanged
31326
31327 \end_layout
31328
31329 \begin_layout LyX-Code
31330
31331 \change_inserted -970929547 1515111504
31332         <itemtag itemattr>
31333 \end_layout
31334
31335 \begin_layout LyX-Code
31336
31337 \change_inserted -970929547 1515111505
31338           <itemtag itemattr>
31339 \change_unchanged
31340
31341 \end_layout
31342
31343 \begin_layout LyX-Code
31344
31345 \change_inserted -970929547 1515111507
31346             Contents of the second item.
31347 \end_layout
31348
31349 \begin_layout LyX-Code
31350
31351 \change_inserted -970929547 1515111509
31352           </itemtag>
31353 \change_unchanged
31354
31355 \end_layout
31356
31357 \begin_layout LyX-Code
31358
31359 \change_inserted -970929547 1515111251
31360         </itemtag>
31361 \change_unchanged
31362
31363 \end_layout
31364
31365 \begin_layout LyX-Code
31366
31367 \change_inserted -970929547 1515111221
31368       </itemwrappertag>
31369 \change_unchanged
31370
31371 \end_layout
31372
31373 \begin_layout LyX-Code
31374
31375 \change_inserted -970929547 1515111219
31376       ...
31377 \change_unchanged
31378
31379 \end_layout
31380
31381 \begin_layout LyX-Code
31382
31383 \change_inserted -970929547 1515111186
31384     </innertag>
31385 \end_layout
31386
31387 \begin_layout LyX-Code
31388
31389 \change_inserted -970929547 1515111186
31390   </tag>
31391 \end_layout
31392
31393 \begin_layout LyX-Code
31394
31395 \change_inserted -970929547 1515111186
31396 </wrappertag>
31397 \end_layout
31398
31399 \begin_layout Standard
31400
31401 \change_inserted -970929547 1515111183
31402 If the inset permits multiple paragraphs—
31403 that is,
31404  if 
31405 \begin_inset Flex Code
31406 status collapsed
31407
31408 \begin_layout Plain Layout
31409
31410 \change_inserted -970929547 1496610966
31411 MultiPar
31412 \change_unchanged
31413
31414 \end_layout
31415
31416 \end_inset
31417
31418  is true—
31419 then the contents of the inset will 
31420 \change_deleted 34634807 1620029217
31421 itself
31422 \change_inserted 34634807 1620029219
31423 themselves
31424 \change_inserted -970929547 1515111183
31425  be output as paragraphs formatted according to the styles used for those paragraphs (standard,
31426  quote,
31427  and the like).
31428  The inner tag is optional and,
31429  by default,
31430  does not appear.
31431 \end_layout
31432
31433 \begin_layout Standard
31434
31435 \change_inserted -970929547 1496610966
31436 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
31437 \end_layout
31438
31439 \begin_layout Description
31440
31441 \change_inserted -970929547 1515110317
31442 \begin_inset Flex Code
31443 status collapsed
31444
31445 \begin_layout Plain Layout
31446
31447 \change_inserted -970929547 1515109695
31448 DocBookAttr
31449 \change_unchanged
31450
31451 \end_layout
31452
31453 \end_inset
31454
31455  [
31456 \begin_inset Flex Code
31457 status collapsed
31458
31459 \begin_layout Plain Layout
31460
31461 \change_inserted -970929547 1496611854
31462 string
31463 \change_unchanged
31464
31465 \end_layout
31466
31467 \end_inset
31468
31469 ] Specifies attribute information to be output with the main tag,
31470  replacing 
31471 \begin_inset Quotes eld
31472 \end_inset
31473
31474
31475 \begin_inset Flex Code
31476 status collapsed
31477
31478 \begin_layout Plain Layout
31479
31480 \change_inserted -970929547 1515110044
31481 attr
31482 \change_unchanged
31483
31484 \end_layout
31485
31486 \end_inset
31487
31488
31489 \begin_inset Quotes erd
31490 \end_inset
31491
31492  in the example above.
31493  This information can be used in further processing of the DocBook files.
31494  
31495 \end_layout
31496
31497 \begin_layout Description
31498
31499 \change_inserted -970929547 1515110973
31500 \begin_inset Flex Code
31501 status collapsed
31502
31503 \begin_layout Plain Layout
31504
31505 \change_inserted -970929547 1515110319
31506 DocBookInInfo
31507 \change_unchanged
31508
31509 \end_layout
31510
31511 \end_inset
31512
31513  [
31514 \begin_inset Flex Code
31515 status collapsed
31516
31517 \begin_layout Plain Layout
31518
31519 \change_inserted -970929547 1515110384
31520 never,
31521  always,
31522  maybe
31523 \change_unchanged
31524
31525 \end_layout
31526
31527 \end_inset
31528
31529 ] Specifies whether this tag goes into the 
31530 \begin_inset Flex Code
31531 status collapsed
31532
31533 \begin_layout Plain Layout
31534
31535 \change_inserted -970929547 1515110412
31536 <info>
31537 \change_unchanged
31538
31539 \end_layout
31540
31541 \end_inset
31542
31543  tag at the beginning of the parent layout.
31544  
31545 \begin_inset Flex Code
31546 status collapsed
31547
31548 \begin_layout Plain Layout
31549
31550 \change_inserted -970929547 1515110437
31551 never
31552 \change_unchanged
31553
31554 \end_layout
31555
31556 \end_inset
31557
31558  indicates that the tag never goes into 
31559 \begin_inset Flex Code
31560 status collapsed
31561
31562 \begin_layout Plain Layout
31563
31564 \change_inserted -970929547 1515110497
31565 <info>
31566 \change_unchanged
31567
31568 \end_layout
31569
31570 \end_inset
31571
31572  (this is default value,
31573  and corresponds to usual content).
31574  
31575 \begin_inset Flex Code
31576 status collapsed
31577
31578 \begin_layout Plain Layout
31579
31580 \change_inserted -970929547 1515110517
31581 always
31582 \change_unchanged
31583
31584 \end_layout
31585
31586 \end_inset
31587
31588  indicates that the tag always goes into 
31589 \begin_inset Flex Code
31590 status collapsed
31591
31592 \begin_layout Plain Layout
31593
31594 \change_inserted -970929547 1515110514
31595 <info>
31596 \change_unchanged
31597
31598 \end_layout
31599
31600 \end_inset
31601
31602  (this corresponds to usual metadata):
31603  if there is no 
31604 \begin_inset Flex Code
31605 status collapsed
31606
31607 \begin_layout Plain Layout
31608
31609 \change_inserted -970929547 1515110550
31610 <info>
31611 \change_unchanged
31612
31613 \end_layout
31614
31615 \end_inset
31616
31617  tag for the parent,
31618  one 
31619 \series bold
31620 will
31621 \series default
31622  be generated.
31623  
31624 \begin_inset Flex Code
31625 status collapsed
31626
31627 \begin_layout Plain Layout
31628
31629 \change_inserted -970929547 1515110540
31630 maybe
31631 \change_unchanged
31632
31633 \end_layout
31634
31635 \end_inset
31636
31637  indicates that the tag may go into 
31638 \begin_inset Flex Code
31639 status collapsed
31640
31641 \begin_layout Plain Layout
31642
31643 \change_inserted -970929547 1515110538
31644 <info>
31645 \change_unchanged
31646
31647 \end_layout
31648
31649 \end_inset
31650
31651  (this is only the case for titles):
31652  if there is no 
31653 \begin_inset Flex Code
31654 status collapsed
31655
31656 \begin_layout Plain Layout
31657
31658 \change_inserted -970929547 1515110585
31659 <info>
31660 \change_unchanged
31661
31662 \end_layout
31663
31664 \end_inset
31665
31666  tag for the parent,
31667  
31668 \series bold
31669 none
31670 \series default
31671  will be generated,
31672  the corresponding tag will be output directly as content.
31673  
31674 \end_layout
31675
31676 \begin_layout Description
31677
31678 \change_inserted -970929547 1515111461
31679 \begin_inset Flex Code
31680 status collapsed
31681
31682 \begin_layout Plain Layout
31683
31684 \change_inserted -970929547 1515110974
31685 DocBookItemAttr
31686 \change_unchanged
31687
31688 \end_layout
31689
31690 \end_inset
31691
31692  [
31693 \begin_inset Flex Code
31694 status collapsed
31695
31696 \begin_layout Plain Layout
31697
31698 \change_inserted -970929547 1515110973
31699 string
31700 \change_unchanged
31701
31702 \end_layout
31703
31704 \end_inset
31705
31706 ] Specifies attribute information to be output with the item tag,
31707  replacing 
31708 \begin_inset Quotes eld
31709 \end_inset
31710
31711
31712 \begin_inset Flex Code
31713 status collapsed
31714
31715 \begin_layout Plain Layout
31716
31717 \change_inserted -970929547 1515110984
31718 itemattr
31719 \change_unchanged
31720
31721 \end_layout
31722
31723 \end_inset
31724
31725
31726 \begin_inset Quotes erd
31727 \end_inset
31728
31729  in the example above.
31730  This information can be used in further processing of the DocBook files.
31731  
31732 \end_layout
31733
31734 \begin_layout Description
31735
31736 \change_inserted -970929547 1515111471
31737 \begin_inset Flex Code
31738 status collapsed
31739
31740 \begin_layout Plain Layout
31741
31742 \change_inserted -970929547 1515111465
31743 DocBookItemInnerAttr
31744 \change_unchanged
31745
31746 \end_layout
31747
31748 \end_inset
31749
31750  [
31751 \begin_inset Flex Code
31752 status collapsed
31753
31754 \begin_layout Plain Layout
31755
31756 \change_inserted -970929547 1515111461
31757 string
31758 \change_unchanged
31759
31760 \end_layout
31761
31762 \end_inset
31763
31764 ] Specifies attribute information to be output with the item inner tag,
31765  replacing 
31766 \begin_inset Quotes eld
31767 \end_inset
31768
31769
31770 \begin_inset Flex Code
31771 status collapsed
31772
31773 \begin_layout Plain Layout
31774
31775 \change_inserted -970929547 1515111476
31776 iteminnerattr
31777 \change_unchanged
31778
31779 \end_layout
31780
31781 \end_inset
31782
31783
31784 \begin_inset Quotes erd
31785 \end_inset
31786
31787  in the example above.
31788  This information can be used in further processing of the DocBook files.
31789  
31790 \end_layout
31791
31792 \begin_layout Description
31793
31794 \change_inserted -970929547 1515111494
31795 \begin_inset Flex Code
31796 status collapsed
31797
31798 \begin_layout Plain Layout
31799
31800 \change_inserted -970929547 1515111467
31801 DocBookItemInnerTag
31802 \change_unchanged
31803
31804 \end_layout
31805
31806 \end_inset
31807
31808  [
31809 \begin_inset Flex Code
31810 status collapsed
31811
31812 \begin_layout Plain Layout
31813
31814 \change_inserted -970929547 1515111461
31815 string
31816 \change_unchanged
31817
31818 \end_layout
31819
31820 \end_inset
31821
31822 ] The tag to be used for the item inner tag within the inset,
31823  replacing 
31824 \begin_inset Quotes eld
31825 \end_inset
31826
31827
31828 \begin_inset Flex Code
31829 status collapsed
31830
31831 \begin_layout Plain Layout
31832
31833 \change_inserted -970929547 1515111486
31834 iteminnertag
31835 \change_unchanged
31836
31837 \end_layout
31838
31839 \end_inset
31840
31841
31842 \begin_inset Quotes erd
31843 \end_inset
31844
31845  in the example above.
31846  The default is 
31847 \begin_inset Flex Code
31848 status collapsed
31849
31850 \begin_layout Plain Layout
31851
31852 \change_inserted -970929547 1515111461
31853 NONE
31854 \change_unchanged
31855
31856 \end_layout
31857
31858 \end_inset
31859
31860 ,
31861  indicating that there is no item inner tag:
31862  content is directly output without it for each itemised element.
31863  This parameter only makes sense when itemising layouts are used,
31864  such as lists.
31865  
31866 \change_inserted 1075283030 1598469472
31867 The most likely value is 
31868 \begin_inset Quotes eld
31869 \end_inset
31870
31871
31872 \begin_inset Flex Code
31873 status collapsed
31874
31875 \begin_layout Plain Layout
31876
31877 \change_inserted 1075283030 1598469476
31878 para
31879 \change_unchanged
31880
31881 \end_layout
31882
31883 \end_inset
31884
31885
31886 \begin_inset Quotes erd
31887 \end_inset
31888
31889 .
31890 \begin_inset Newline newline
31891 \end_inset
31892
31893 When a list item is split using a new line,
31894  the item inner tag will be repeated for each part of the paragraph,
31895  parts being separated by new lines.
31896  
31897 \end_layout
31898
31899 \begin_layout Description
31900
31901 \change_inserted 1075283030 1597699866
31902 \begin_inset Flex Code
31903 status collapsed
31904
31905 \begin_layout Plain Layout
31906
31907 \change_inserted 1075283030 1597699853
31908 DocBookItemInnerTagType
31909 \change_unchanged
31910
31911 \end_layout
31912
31913 \end_inset
31914
31915  [
31916 \begin_inset Flex Code
31917 status collapsed
31918
31919 \begin_layout Plain Layout
31920
31921 \change_inserted 1075283030 1597699866
31922 block,
31923  paragraph,
31924  inline
31925 \change_unchanged
31926
31927 \end_layout
31928
31929 \end_inset
31930
31931 ] The new-line policy for this tag,
31932  see Section
31933 \begin_inset space ~
31934 \end_inset
31935
31936
31937 \begin_inset CommandInset ref
31938 LatexCommand ref
31939 reference "subsec:DocBook-New-line-policy"
31940 plural "false"
31941 caps "false"
31942 noprefix "false"
31943 nolink "false"
31944
31945 \end_inset
31946
31947  for the details.
31948  
31949 \change_unchanged
31950
31951 \end_layout
31952
31953 \begin_layout Description
31954
31955 \change_inserted -970929547 1515111290
31956 \begin_inset Flex Code
31957 status collapsed
31958
31959 \begin_layout Plain Layout
31960
31961 \change_inserted -970929547 1515111283
31962 DocBookItemLabelAttr
31963 \change_unchanged
31964
31965 \end_layout
31966
31967 \end_inset
31968
31969  [
31970 \begin_inset Flex Code
31971 status collapsed
31972
31973 \begin_layout Plain Layout
31974
31975 \change_inserted -970929547 1515111279
31976 string
31977 \change_unchanged
31978
31979 \end_layout
31980
31981 \end_inset
31982
31983 ] Specifies attribute information to be output with the item label tag,
31984  replacing 
31985 \begin_inset Quotes eld
31986 \end_inset
31987
31988
31989 \begin_inset Flex Code
31990 status collapsed
31991
31992 \begin_layout Plain Layout
31993
31994 \change_inserted -970929547 1515111304
31995 itemlabelattr
31996 \change_unchanged
31997
31998 \end_layout
31999
32000 \end_inset
32001
32002
32003 \begin_inset Quotes erd
32004 \end_inset
32005
32006  in the example above.
32007  This information can be used in further processing of the DocBook files.
32008  
32009 \end_layout
32010
32011 \begin_layout Description
32012
32013 \change_inserted -970929547 1515111337
32014 \begin_inset Flex Code
32015 status collapsed
32016
32017 \begin_layout Plain Layout
32018
32019 \change_inserted -970929547 1515111285
32020 DocBookItemLabelTag
32021 \change_unchanged
32022
32023 \end_layout
32024
32025 \end_inset
32026
32027  [
32028 \begin_inset Flex Code
32029 status collapsed
32030
32031 \begin_layout Plain Layout
32032
32033 \change_inserted -970929547 1515111279
32034 string
32035 \change_unchanged
32036
32037 \end_layout
32038
32039 \end_inset
32040
32041 ] The tag to be used for the item label tag within the inset,
32042  replacing 
32043 \begin_inset Quotes eld
32044 \end_inset
32045
32046
32047 \begin_inset Flex Code
32048 status collapsed
32049
32050 \begin_layout Plain Layout
32051
32052 \change_inserted -970929547 1515111311
32053 itemlabeltag
32054 \change_unchanged
32055
32056 \end_layout
32057
32058 \end_inset
32059
32060
32061 \begin_inset Quotes erd
32062 \end_inset
32063
32064  in the example above.
32065  This parameter only makes sense when itemising layouts are used with a notion of labels,
32066  such as definition lists.
32067  
32068 \change_inserted 1075283030 1597699874
32069
32070 \end_layout
32071
32072 \begin_layout Description
32073
32074 \change_inserted 1075283030 1597699874
32075 \begin_inset Flex Code
32076 status collapsed
32077
32078 \begin_layout Plain Layout
32079
32080 \change_inserted 1075283030 1597699880
32081 DocBookItemLabelTagType
32082 \change_unchanged
32083
32084 \end_layout
32085
32086 \end_inset
32087
32088  [
32089 \begin_inset Flex Code
32090 status collapsed
32091
32092 \begin_layout Plain Layout
32093
32094 \change_inserted 1075283030 1597699874
32095 block,
32096  paragraph,
32097  inline
32098 \change_unchanged
32099
32100 \end_layout
32101
32102 \end_inset
32103
32104 ] The new-line policy for this tag,
32105  see Section
32106 \begin_inset space ~
32107 \end_inset
32108
32109
32110 \begin_inset CommandInset ref
32111 LatexCommand ref
32112 reference "subsec:DocBook-New-line-policy"
32113 plural "false"
32114 caps "false"
32115 noprefix "false"
32116 nolink "false"
32117
32118 \end_inset
32119
32120  for the details.
32121  
32122 \change_unchanged
32123
32124 \end_layout
32125
32126 \begin_layout Description
32127
32128 \change_inserted -970929547 1515111124
32129 \begin_inset Flex Code
32130 status collapsed
32131
32132 \begin_layout Plain Layout
32133
32134 \change_inserted -970929547 1515111060
32135 DocBookItemTag
32136 \change_unchanged
32137
32138 \end_layout
32139
32140 \end_inset
32141
32142  [
32143 \begin_inset Flex Code
32144 status collapsed
32145
32146 \begin_layout Plain Layout
32147
32148 \change_inserted -970929547 1515111060
32149 string
32150 \change_unchanged
32151
32152 \end_layout
32153
32154 \end_inset
32155
32156 ] The tag to be used for the item tag within the inset,
32157  replacing 
32158 \begin_inset Quotes eld
32159 \end_inset
32160
32161
32162 \begin_inset Flex Code
32163 status collapsed
32164
32165 \begin_layout Plain Layout
32166
32167 \change_inserted -970929547 1515111060
32168 itemtag
32169 \change_unchanged
32170
32171 \end_layout
32172
32173 \end_inset
32174
32175
32176 \begin_inset Quotes erd
32177 \end_inset
32178
32179  in the example above.
32180  The default is 
32181 \begin_inset Flex Code
32182 status collapsed
32183
32184 \begin_layout Plain Layout
32185
32186 \change_inserted -970929547 1515111060
32187 NONE
32188 \change_unchanged
32189
32190 \end_layout
32191
32192 \end_inset
32193
32194 ,
32195  indicating that there is no item tag.
32196  This parameter only makes sense when itemising layouts are used,
32197  such as lists.
32198  
32199 \change_inserted 1075283030 1597699890
32200
32201 \end_layout
32202
32203 \begin_layout Description
32204
32205 \change_inserted 1075283030 1597699890
32206 \begin_inset Flex Code
32207 status collapsed
32208
32209 \begin_layout Plain Layout
32210
32211 \change_inserted 1075283030 1597699890
32212 DocBookItemTagType
32213 \change_unchanged
32214
32215 \end_layout
32216
32217 \end_inset
32218
32219  [
32220 \begin_inset Flex Code
32221 status collapsed
32222
32223 \begin_layout Plain Layout
32224
32225 \change_inserted 1075283030 1597699890
32226 block,
32227  paragraph,
32228  inline
32229 \change_unchanged
32230
32231 \end_layout
32232
32233 \end_inset
32234
32235 ] The new-line policy for this tag,
32236  see Section
32237 \begin_inset space ~
32238 \end_inset
32239
32240
32241 \begin_inset CommandInset ref
32242 LatexCommand ref
32243 reference "subsec:DocBook-New-line-policy"
32244 plural "false"
32245 caps "false"
32246 noprefix "false"
32247 nolink "false"
32248
32249 \end_inset
32250
32251  for the details.
32252  
32253 \change_unchanged
32254
32255 \end_layout
32256
32257 \begin_layout Description
32258
32259 \change_inserted -970929547 1515111298
32260 \begin_inset Flex Code
32261 status collapsed
32262
32263 \begin_layout Plain Layout
32264
32265 \change_inserted -970929547 1515111124
32266 DocBookItemWrapperAttr
32267 \change_unchanged
32268
32269 \end_layout
32270
32271 \end_inset
32272
32273  [
32274 \begin_inset Flex Code
32275 status collapsed
32276
32277 \begin_layout Plain Layout
32278
32279 \change_inserted -970929547 1515111124
32280 string
32281 \change_unchanged
32282
32283 \end_layout
32284
32285 \end_inset
32286
32287 ] Specifies attribute information to be output with the item wrapper tag,
32288  replacing 
32289 \begin_inset Quotes eld
32290 \end_inset
32291
32292
32293 \begin_inset Flex Code
32294 status collapsed
32295
32296 \begin_layout Plain Layout
32297
32298 \change_inserted -970929547 1515111150
32299 itemwrapperattr
32300 \change_unchanged
32301
32302 \end_layout
32303
32304 \end_inset
32305
32306
32307 \begin_inset Quotes erd
32308 \end_inset
32309
32310  in the example above.
32311  This information can be used in further processing of the DocBook files.
32312  
32313 \change_unchanged
32314
32315 \end_layout
32316
32317 \begin_layout Description
32318
32319 \change_inserted -970929547 1515111113
32320 \begin_inset Flex Code
32321 status collapsed
32322
32323 \begin_layout Plain Layout
32324
32325 \change_inserted -970929547 1515111073
32326 DocBookItemWrapperTag
32327 \change_unchanged
32328
32329 \end_layout
32330
32331 \end_inset
32332
32333  [
32334 \begin_inset Flex Code
32335 status collapsed
32336
32337 \begin_layout Plain Layout
32338
32339 \change_inserted -970929547 1515111073
32340 string
32341 \change_unchanged
32342
32343 \end_layout
32344
32345 \end_inset
32346
32347 ] The tag to be used for the item wrapper tag within the inset,
32348  replacing 
32349 \begin_inset Quotes eld
32350 \end_inset
32351
32352
32353 \begin_inset Flex Code
32354 status collapsed
32355
32356 \begin_layout Plain Layout
32357
32358 \change_inserted -970929547 1515111083
32359 itemwrappertag
32360 \change_unchanged
32361
32362 \end_layout
32363
32364 \end_inset
32365
32366
32367 \begin_inset Quotes erd
32368 \end_inset
32369
32370  in the example above.
32371  The default is 
32372 \begin_inset Flex Code
32373 status collapsed
32374
32375 \begin_layout Plain Layout
32376
32377 \change_inserted -970929547 1515111073
32378 NONE
32379 \change_unchanged
32380
32381 \end_layout
32382
32383 \end_inset
32384
32385 ,
32386  indicating that there is no item wrapper tag:
32387  tag and content are directly output without it for each itemised element.
32388  This parameter only makes sense when itemising layouts are used,
32389  such as lists.
32390  
32391 \change_inserted 1075283030 1597699897
32392
32393 \end_layout
32394
32395 \begin_layout Description
32396
32397 \change_inserted 1075283030 1597699897
32398 \begin_inset Flex Code
32399 status collapsed
32400
32401 \begin_layout Plain Layout
32402
32403 \change_inserted 1075283030 1597699900
32404 DocBookItemWrapperTagType
32405 \change_unchanged
32406
32407 \end_layout
32408
32409 \end_inset
32410
32411  [
32412 \begin_inset Flex Code
32413 status collapsed
32414
32415 \begin_layout Plain Layout
32416
32417 \change_inserted 1075283030 1597699897
32418 block,
32419  paragraph,
32420  inline
32421 \change_unchanged
32422
32423 \end_layout
32424
32425 \end_inset
32426
32427 ] The new-line policy for this tag,
32428  see Section
32429 \begin_inset space ~
32430 \end_inset
32431
32432
32433 \begin_inset CommandInset ref
32434 LatexCommand ref
32435 reference "subsec:DocBook-New-line-policy"
32436 plural "false"
32437 caps "false"
32438 noprefix "false"
32439 nolink "false"
32440
32441 \end_inset
32442
32443  for the details.
32444  
32445 \change_unchanged
32446
32447 \end_layout
32448
32449 \begin_layout Description
32450
32451 \change_inserted -970929547 1515110104
32452 \begin_inset Flex Code
32453 status collapsed
32454
32455 \begin_layout Plain Layout
32456
32457 \change_inserted -970929547 1515110104
32458 DocBookInnerAttr
32459 \change_unchanged
32460
32461 \end_layout
32462
32463 \end_inset
32464
32465  [
32466 \begin_inset Flex Code
32467 status collapsed
32468
32469 \begin_layout Plain Layout
32470
32471 \change_inserted -970929547 1515110104
32472 string
32473 \change_unchanged
32474
32475 \end_layout
32476
32477 \end_inset
32478
32479 ] Specifies attribute information to be output with the inner tag,
32480  replacing 
32481 \begin_inset Quotes eld
32482 \end_inset
32483
32484
32485 \begin_inset Flex Code
32486 status collapsed
32487
32488 \begin_layout Plain Layout
32489
32490 \change_inserted -970929547 1515110104
32491 innerattr
32492 \change_unchanged
32493
32494 \end_layout
32495
32496 \end_inset
32497
32498
32499 \begin_inset Quotes erd
32500 \end_inset
32501
32502  in the example above.
32503  This information can be used in further processing of the DocBook files.
32504  
32505 \end_layout
32506
32507 \begin_layout Description
32508
32509 \change_inserted -970929547 1515110906
32510 \begin_inset Flex Code
32511 status collapsed
32512
32513 \begin_layout Plain Layout
32514
32515 \change_inserted -970929547 1515110104
32516 DocBookInnerTag
32517 \change_unchanged
32518
32519 \end_layout
32520
32521 \end_inset
32522
32523  [
32524 \begin_inset Flex Code
32525 status collapsed
32526
32527 \begin_layout Plain Layout
32528
32529 \change_inserted -970929547 1515110104
32530 string
32531 \change_unchanged
32532
32533 \end_layout
32534
32535 \end_inset
32536
32537 ] The tag to be used for the inner tag within the inset,
32538  replacing 
32539 \begin_inset Quotes eld
32540 \end_inset
32541
32542
32543 \begin_inset Flex Code
32544 status collapsed
32545
32546 \begin_layout Plain Layout
32547
32548 \change_inserted -970929547 1515110104
32549 innertag
32550 \change_unchanged
32551
32552 \end_layout
32553
32554 \end_inset
32555
32556
32557 \begin_inset Quotes erd
32558 \end_inset
32559
32560  in the example above.
32561  The default is 
32562 \begin_inset Flex Code
32563 status collapsed
32564
32565 \begin_layout Plain Layout
32566
32567 \change_inserted -970929547 1515110791
32568 NONE
32569 \change_unchanged
32570
32571 \end_layout
32572
32573 \end_inset
32574
32575 ,
32576  indicating that there is no inner tag:
32577  content is directly output without it.
32578 \change_inserted 1075283030 1597699904
32579
32580 \end_layout
32581
32582 \begin_layout Description
32583
32584 \change_inserted 1075283030 1597699904
32585 \begin_inset Flex Code
32586 status collapsed
32587
32588 \begin_layout Plain Layout
32589
32590 \change_inserted 1075283030 1597699904
32591 DocBookInnerTagType
32592 \change_unchanged
32593
32594 \end_layout
32595
32596 \end_inset
32597
32598  [
32599 \begin_inset Flex Code
32600 status collapsed
32601
32602 \begin_layout Plain Layout
32603
32604 \change_inserted 1075283030 1597699904
32605 block,
32606  paragraph,
32607  inline
32608 \change_unchanged
32609
32610 \end_layout
32611
32612 \end_inset
32613
32614 ] The new-line policy for this tag,
32615  see Section
32616 \begin_inset space ~
32617 \end_inset
32618
32619
32620 \begin_inset CommandInset ref
32621 LatexCommand ref
32622 reference "subsec:DocBook-New-line-policy"
32623 plural "false"
32624 caps "false"
32625 noprefix "false"
32626 nolink "false"
32627
32628 \end_inset
32629
32630  for the details.
32631  
32632 \change_unchanged
32633
32634 \end_layout
32635
32636 \begin_layout Description
32637
32638 \change_inserted -970929547 1515110753
32639 \begin_inset Flex Code
32640 status collapsed
32641
32642 \begin_layout Plain Layout
32643
32644 \change_inserted -970929547 1515110665
32645 DocBookSectionTag
32646 \change_unchanged
32647
32648 \end_layout
32649
32650 \end_inset
32651
32652  [
32653 \begin_inset Flex Code
32654 status collapsed
32655
32656 \begin_layout Plain Layout
32657
32658 \change_inserted -970929547 1515110661
32659 string
32660 \change_unchanged
32661
32662 \end_layout
32663
32664 \end_inset
32665
32666 ] Specifies the tag that corresponds to this kind of section.
32667  This parameter only makes sense for sectioning elements (part,
32668  chapter,
32669  section,
32670  etc.).
32671  The default value is 
32672 \begin_inset Flex Code
32673 status collapsed
32674
32675 \begin_layout Plain Layout
32676
32677 \change_inserted -970929547 1515110721
32678 section
32679 \change_unchanged
32680
32681 \end_layout
32682
32683 \end_inset
32684
32685 ,
32686  and is only overridden when DocBook uses something else for sectioning (
32687 \change_inserted 1075283030 1597699921
32688 typically,
32689  
32690 \change_inserted -970929547 1515110753
32691 parts and chapters of a book).
32692  
32693 \change_unchanged
32694
32695 \end_layout
32696
32697 \begin_layout Description
32698
32699 \change_inserted -970929547 1515110811
32700 \begin_inset Flex Code
32701 status collapsed
32702
32703 \begin_layout Plain Layout
32704
32705 \change_inserted -970929547 1496612023
32706 DocBookTag
32707 \change_unchanged
32708
32709 \end_layout
32710
32711 \end_inset
32712
32713  [
32714 \begin_inset Flex Code
32715 status collapsed
32716
32717 \begin_layout Plain Layout
32718
32719 \change_inserted -970929547 1496610966
32720 string
32721 \change_unchanged
32722
32723 \end_layout
32724
32725 \end_inset
32726
32727 ] The tag to be used for this inset,
32728  replacing 
32729 \begin_inset Quotes eld
32730 \end_inset
32731
32732
32733 \begin_inset Flex Code
32734 status collapsed
32735
32736 \begin_layout Plain Layout
32737
32738 \change_inserted -970929547 1496612033
32739 tag
32740 \change_unchanged
32741
32742 \end_layout
32743
32744 \end_inset
32745
32746
32747 \begin_inset Quotes erd
32748 \end_inset
32749
32750  in the example above.
32751  The default is the name of the float and always needs to be changed,
32752  as DocBook provides no generic inset tag.
32753 \change_inserted 1075283030 1597699924
32754
32755 \end_layout
32756
32757 \begin_layout Description
32758
32759 \change_inserted 1075283030 1597699924
32760 \begin_inset Flex Code
32761 status collapsed
32762
32763 \begin_layout Plain Layout
32764
32765 \change_inserted 1075283030 1597699924
32766 DocBookTagType
32767 \change_unchanged
32768
32769 \end_layout
32770
32771 \end_inset
32772
32773  [
32774 \begin_inset Flex Code
32775 status collapsed
32776
32777 \begin_layout Plain Layout
32778
32779 \change_inserted 1075283030 1597699924
32780 block,
32781  paragraph,
32782  inline
32783 \change_unchanged
32784
32785 \end_layout
32786
32787 \end_inset
32788
32789 ] The new-line policy for this tag,
32790  see Section
32791 \begin_inset space ~
32792 \end_inset
32793
32794
32795 \begin_inset CommandInset ref
32796 LatexCommand ref
32797 reference "subsec:DocBook-New-line-policy"
32798 plural "false"
32799 caps "false"
32800 noprefix "false"
32801 nolink "false"
32802
32803 \end_inset
32804
32805  for the details.
32806  
32807 \change_unchanged
32808
32809 \end_layout
32810
32811 \begin_layout Description
32812
32813 \change_inserted -970929547 1515110832
32814 \begin_inset Flex Code
32815 status collapsed
32816
32817 \begin_layout Plain Layout
32818
32819 \change_inserted -970929547 1515110822
32820 DocBookWrapperAttr
32821 \change_unchanged
32822
32823 \end_layout
32824
32825 \end_inset
32826
32827  [
32828 \begin_inset Flex Code
32829 status collapsed
32830
32831 \begin_layout Plain Layout
32832
32833 \change_inserted -970929547 1515110811
32834 string
32835 \change_unchanged
32836
32837 \end_layout
32838
32839 \end_inset
32840
32841 ] Specifies attribute information to be output with the outer 
32842 \change_inserted 34634807 1620057958
32843 wrapper 
32844 \change_inserted -970929547 1515110832
32845 tag,
32846  replacing 
32847 \begin_inset Quotes eld
32848 \end_inset
32849
32850
32851 \begin_inset Flex Code
32852 status collapsed
32853
32854 \begin_layout Plain Layout
32855
32856 \change_inserted -970929547 1515110845
32857 wrapperattr
32858 \change_unchanged
32859
32860 \end_layout
32861
32862 \end_inset
32863
32864
32865 \begin_inset Quotes erd
32866 \end_inset
32867
32868  in the example above.
32869  This information can be used in further processing of the DocBook files.
32870  
32871 \end_layout
32872
32873 \begin_layout Description
32874
32875 \change_inserted -970929547 1515110917
32876 \begin_inset Flex Code
32877 status collapsed
32878
32879 \begin_layout Plain Layout
32880
32881 \change_inserted -970929547 1515110826
32882 DocBookWrapperTag
32883 \change_unchanged
32884
32885 \end_layout
32886
32887 \end_inset
32888
32889  [
32890 \begin_inset Flex Code
32891 status collapsed
32892
32893 \begin_layout Plain Layout
32894
32895 \change_inserted -970929547 1515110811
32896 string
32897 \change_unchanged
32898
32899 \end_layout
32900
32901 \end_inset
32902
32903 ] The tag to be used for the wrapper tag around the inset,
32904  replacing 
32905 \begin_inset Quotes eld
32906 \end_inset
32907
32908
32909 \begin_inset Flex Code
32910 status collapsed
32911
32912 \begin_layout Plain Layout
32913
32914 \change_inserted -970929547 1515110842
32915 wrappertag
32916 \change_unchanged
32917
32918 \end_layout
32919
32920 \end_inset
32921
32922
32923 \begin_inset Quotes erd
32924 \end_inset
32925
32926  in the example above.
32927  The default is 
32928 \begin_inset Flex Code
32929 status collapsed
32930
32931 \begin_layout Plain Layout
32932
32933 \change_inserted -970929547 1515110811
32934 NONE
32935 \change_unchanged
32936
32937 \end_layout
32938
32939 \end_inset
32940
32941 ,
32942  indicating that there is no wrapper tag:
32943  tag and content are directly output without it.
32944 \change_inserted 1075283030 1597699929
32945
32946 \end_layout
32947
32948 \begin_layout Description
32949
32950 \change_inserted 1075283030 1597699929
32951 \begin_inset Flex Code
32952 status collapsed
32953
32954 \begin_layout Plain Layout
32955
32956 \change_inserted 1075283030 1597699932
32957 DocBookWrapperTagType
32958 \change_unchanged
32959
32960 \end_layout
32961
32962 \end_inset
32963
32964  [
32965 \begin_inset Flex Code
32966 status collapsed
32967
32968 \begin_layout Plain Layout
32969
32970 \change_inserted 1075283030 1597699929
32971 block,
32972  paragraph,
32973  inline
32974 \change_unchanged
32975
32976 \end_layout
32977
32978 \end_inset
32979
32980 ] The new-line policy for this tag,
32981  see Section
32982 \begin_inset space ~
32983 \end_inset
32984
32985
32986 \begin_inset CommandInset ref
32987 LatexCommand ref
32988 reference "subsec:DocBook-New-line-policy"
32989 plural "false"
32990 caps "false"
32991 noprefix "false"
32992 nolink "false"
32993
32994 \end_inset
32995
32996  for the details.
32997  
32998 \change_unchanged
32999
33000 \end_layout
33001
33002 \begin_layout Subsection
33003
33004 \change_inserted -970929547 1515110040
33005 Float DocBook
33006 \end_layout
33007
33008 \begin_layout Standard
33009
33010 \change_inserted -970929547 1496611700
33011 The DocBook output for floats too can be controlled by layout information.
33012  The output has the following form:
33013 \end_layout
33014
33015 \begin_layout LyX-Code
33016
33017 \change_inserted -970929547 1515109700
33018 <tag attr>
33019 \end_layout
33020
33021 \begin_layout LyX-Code
33022
33023 \change_inserted -970929547 1515110138
33024   Contents of the float as DocBook.
33025 \end_layout
33026
33027 \begin_layout LyX-Code
33028
33029 \change_inserted -970929547 1496610966
33030 </tag>
33031 \end_layout
33032
33033 \begin_layout Standard
33034
33035 \change_inserted -970929547 1496611715
33036 The caption,
33037  if there is one,
33038  is a separate inset and will be output as a title.
33039  
33040 \end_layout
33041
33042 \begin_layout Description
33043
33044 \change_inserted -970929547 1515110033
33045 \begin_inset Flex Code
33046 status collapsed
33047
33048 \begin_layout Plain Layout
33049
33050 \change_inserted -970929547 1515109702
33051 DocBookAttr
33052 \change_unchanged
33053
33054 \end_layout
33055
33056 \end_inset
33057
33058  [
33059 \begin_inset Flex Code
33060 status collapsed
33061
33062 \begin_layout Plain Layout
33063
33064 \change_inserted -970929547 1496610966
33065 string
33066 \change_unchanged
33067
33068 \end_layout
33069
33070 \end_inset
33071
33072 ] Specifies attribute information to be output with the main tag,
33073  replacing 
33074 \begin_inset Quotes eld
33075 \end_inset
33076
33077
33078 \begin_inset Flex Code
33079 status collapsed
33080
33081 \begin_layout Plain Layout
33082
33083 \change_inserted -970929547 1515110035
33084 attr
33085 \change_unchanged
33086
33087 \end_layout
33088
33089 \end_inset
33090
33091
33092 \begin_inset Quotes erd
33093 \end_inset
33094
33095  in the example above.
33096  This information can be used in further processing of the DocBook files.
33097  
33098 \end_layout
33099
33100 \begin_layout Description
33101
33102 \change_inserted -970929547 1515110157
33103 \begin_inset Flex Code
33104 status collapsed
33105
33106 \begin_layout Plain Layout
33107
33108 \change_inserted -970929547 1496611782
33109 DocBookTag
33110 \change_unchanged
33111
33112 \end_layout
33113
33114 \end_inset
33115
33116  [
33117 \begin_inset Flex Code
33118 status collapsed
33119
33120 \begin_layout Plain Layout
33121
33122 \change_inserted -970929547 1496610966
33123 string
33124 \change_unchanged
33125
33126 \end_layout
33127
33128 \end_inset
33129
33130 ] The tag to be used for this float,
33131  replacing 
33132 \begin_inset Quotes eld
33133 \end_inset
33134
33135
33136 \begin_inset Flex Code
33137 status collapsed
33138
33139 \begin_layout Plain Layout
33140
33141 \change_inserted -970929547 1496610966
33142 tag
33143 \change_unchanged
33144
33145 \end_layout
33146
33147 \end_inset
33148
33149
33150 \begin_inset Quotes erd
33151 \end_inset
33152
33153  in the example above.
33154  The default is the name of the float and always needs to be changed,
33155  as DocBook provides no generic float tag.
33156 \end_layout
33157
33158 \begin_layout Subsection
33159
33160 \change_inserted -970929547 1515110157
33161 Bibliography formatting
33162 \end_layout
33163
33164 \begin_layout Standard
33165
33166 \change_deleted 1075283030 1597699984
33167 The 
33168 \change_inserted 1075283030 1597699985
33169 Included 
33170 \change_inserted -970929547 1515110187
33171 bibliograph
33172 \change_deleted 1075283030 1597699987
33173 y
33174 \change_inserted 1075283030 1597699987
33175 ies
33176 \change_inserted -970929547 1515110187
33177  cannot be formatted:
33178  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file)
33179 \change_inserted 1075283030 1597700117
33180 ,
33181  using the 
33182 \begin_inset Flex Code
33183 status collapsed
33184
33185 \begin_layout Plain Layout
33186
33187 \change_inserted 1075283030 1597700120
33188 biblioentry
33189 \change_unchanged
33190
33191 \end_layout
33192
33193 \end_inset
33194
33195  tag
33196 \change_inserted -970929547 1515110187
33197 .
33198 \change_inserted 1075283030 1597700092
33199
33200 \end_layout
33201
33202 \begin_layout Standard
33203
33204 \change_inserted 1075283030 1597700112
33205 When the bibliographic entries are manually inserted into the 
33206 \change_deleted 34634807 1620057319
33207 LyX
33208 \change_inserted 34634807 1620057319
33209 \SpecialChar LyX
33210
33211 \change_inserted 1075283030 1597700112
33212  document as Bibliography Items,
33213  the user deals with formatting 
33214 \change_unchanged
33215 them
33216 \change_inserted 1075283030 1597700112
33217 self:
33218  there is no attempt of parsing what the user wrote,
33219  the string is directly used (with the 
33220 \begin_inset Flex Code
33221 status collapsed
33222
33223 \begin_layout Plain Layout
33224
33225 \change_inserted 1075283030 1597700076
33226 bibliomixed
33227 \change_unchanged
33228
33229 \end_layout
33230
33231 \end_inset
33232
33233  tag).
33234  
33235 \change_unchanged
33236
33237 \end_layout
33238
33239 \begin_layout Chapter
33240 Including External Material
33241 \begin_inset CommandInset label
33242 LatexCommand label
33243 name "chap:Including-External-Material"
33244
33245 \end_inset
33246
33247
33248 \end_layout
33249
33250 \begin_layout Standard
33251 \begin_inset Box Shadowbox
33252 position "t"
33253 hor_pos "c"
33254 has_inner_box 1
33255 inner_pos "t"
33256 use_parbox 0
33257 use_makebox 0
33258 width "100col%"
33259 special "none"
33260 height "1in"
33261 height_special "totalheight"
33262 thickness "0.4pt"
33263 separation "3pt"
33264 shadowsize "4pt"
33265 framecolor "black"
33266 backgroundcolor "none"
33267 status open
33268
33269 \begin_layout Plain Layout
33270 WARNING:
33271  This portion of the documentation has not been updated for some time.
33272  We certainly hope that it is still accurate,
33273  but there are no guarantees.
33274 \end_layout
33275
33276 \end_inset
33277
33278
33279 \end_layout
33280
33281 \begin_layout Standard
33282 The use of material from sources external to \SpecialChar LyX
33283  is covered in detail in the 
33284 \emph on
33285 Embedded Objects
33286 \emph default
33287  manual.
33288  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
33289 \end_layout
33290
33291 \begin_layout Section
33292 How does it work?
33293 \end_layout
33294
33295 \begin_layout Standard
33296 The external material feature is based on the concept of a 
33297 \emph on
33298 template
33299 \emph default
33300 .
33301  A template is a specification of how \SpecialChar LyX
33302  should interface with a certain kind of material.
33303  As bundled,
33304  \SpecialChar LyX
33305  comes with predefined templates for Xfig figures,
33306  various raster format images,
33307  chess diagrams,
33308  and LilyPond music notation.
33309  You can check the actual list by using the menu 
33310 \begin_inset Flex Noun
33311 status collapsed
33312
33313 \begin_layout Plain Layout
33314 Insert\SpecialChar menuseparator
33315 File\SpecialChar menuseparator
33316 External Material
33317 \end_layout
33318
33319 \end_inset
33320
33321 .
33322  Furthermore,
33323  it is possible to roll your own template to support a specific kind of material.
33324  Later we'll describe in more detail what is involved,
33325  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
33326  version.
33327 \end_layout
33328
33329 \begin_layout Standard
33330 Another basic idea of the external material feature is to distinguish between the original file that serves as a base for final material and the produced file that is included in your exported or printed document.
33331  For example,
33332  consider the case of a figure produced with 
33333 \begin_inset Flex Code
33334 status collapsed
33335
33336 \begin_layout Plain Layout
33337 Xfig
33338 \end_layout
33339
33340 \end_inset
33341
33342 .
33343  The Xfig application itself works on an original file with the 
33344 \begin_inset Flex Code
33345 status collapsed
33346
33347 \begin_layout Plain Layout
33348 .fig
33349 \end_layout
33350
33351 \end_inset
33352
33353  extension.
33354  Within Xfig,
33355  you create and change your figure,
33356  and when you are done,
33357  you save the 
33358 \begin_inset Flex Code
33359 status collapsed
33360
33361 \begin_layout Plain Layout
33362 fig
33363 \end_layout
33364
33365 \end_inset
33366
33367 -file.
33368  When you want to include the figure in your document,
33369  you invoke 
33370 \begin_inset Flex Code
33371 status collapsed
33372
33373 \begin_layout Plain Layout
33374 transfig
33375 \end_layout
33376
33377 \end_inset
33378
33379  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
33380  file.
33381  In this case,
33382  the 
33383 \begin_inset Flex Code
33384 status collapsed
33385
33386 \begin_layout Plain Layout
33387 .fig
33388 \end_layout
33389
33390 \end_inset
33391
33392  file is the original file,
33393  and the PostScript file is the produced file.
33394 \end_layout
33395
33396 \begin_layout Standard
33397 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
33398  Furthermore,
33399  it provides us with the flexibility that is needed to support multiple export formats.
33400  For instance,
33401  in the case of a plain text file,
33402  it is not exactly an award-winning idea to include the figure as raw PostScript.
33403  Instead,
33404  you would either prefer to just include a reference to the figure or try to invoke some graphics to ASCII converter to make the final result look similar to the real graphics.
33405  The external material management allows you to do this,
33406  because it is parametrized on the different export formats that \SpecialChar LyX
33407  supports.
33408 \end_layout
33409
33410 \begin_layout Standard
33411 Besides supporting the production of different products according to the exported format,
33412  it supports tight integration with editing and viewing applications.
33413  In the case of an Xfig figure,
33414  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
33415 ,
33416  and also preview the produced PostScript file with Ghostview with another click.
33417  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
33418  In this way,
33419  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
33420  and ultimately be more productive.
33421 \end_layout
33422
33423 \begin_layout Section
33424 The external template configuration files
33425 \end_layout
33426
33427 \begin_layout Standard
33428 It is relatively easy to add custom external template definitions to \SpecialChar LyX
33429 .
33430  However,
33431  be aware that doing this in an careless manner most probably 
33432 \emph on
33433 will
33434 \emph default
33435  introduce an easily exploitable security hole.
33436  So before you do this,
33437  please read the discussion about security in 
33438 \begin_inset CommandInset ref
33439 LatexCommand ref
33440 reference "sec:Security-discussion"
33441 nolink "false"
33442
33443 \end_inset
33444
33445 .
33446 \end_layout
33447
33448 \begin_layout Standard
33449 Having said that,
33450  we encourage you to submit any interesting templates that you create.
33451  
33452 \end_layout
33453
33454 \begin_layout Standard
33455 The external templates are defined in the 
33456 \begin_inset Flex Code
33457 status collapsed
33458
33459 \begin_layout Plain Layout
33460 *.xtemplate
33461 \end_layout
33462
33463 \end_inset
33464
33465  files that are stored in the 
33466 \begin_inset Flex Code
33467 status collapsed
33468
33469 \begin_layout Plain Layout
33470 LyXDir/lib/xtemplates/
33471 \end_layout
33472
33473 \end_inset
33474
33475  directory.
33476  Each template is defined in a file of its own.
33477  You can place your own templates in 
33478 \begin_inset Flex Code
33479 status collapsed
33480
33481 \begin_layout Plain Layout
33482 UserDir/xtemplates/
33483 \end_layout
33484
33485 \end_inset
33486
33487  or copy existing templates to that directory in order to modify them.
33488 \end_layout
33489
33490 \begin_layout Standard
33491 A typical template looks like this:
33492 \end_layout
33493
33494 \begin_layout LyX-Code
33495 Template XFig
33496 \end_layout
33497
33498 \begin_layout LyX-Code
33499 GuiName "XFig:
33500  $$AbsOrRelPathParent$$Basename"
33501 \end_layout
33502
33503 \begin_layout LyX-Code
33504 HelpText
33505 \end_layout
33506
33507 \begin_layout LyX-Code
33508 An XFig figure.
33509 \end_layout
33510
33511 \begin_layout LyX-Code
33512 HelpTextEnd
33513 \end_layout
33514
33515 \begin_layout LyX-Code
33516 InputFormat fig
33517 \end_layout
33518
33519 \begin_layout LyX-Code
33520 FileFilter "*.fig"
33521 \end_layout
33522
33523 \begin_layout LyX-Code
33524 AutomaticProduction true
33525 \end_layout
33526
33527 \begin_layout LyX-Code
33528 Transform Rotate
33529 \end_layout
33530
33531 \begin_layout LyX-Code
33532 Transform Resize
33533 \end_layout
33534
33535 \begin_layout LyX-Code
33536 Format LaTeX
33537 \end_layout
33538
33539 \begin_layout LyX-Code
33540 TransformCommand Rotate RotationLatexCommand
33541 \end_layout
33542
33543 \begin_layout LyX-Code
33544 TransformCommand Resize ResizeLatexCommand
33545 \end_layout
33546
33547 \begin_layout LyX-Code
33548 Product "$$RotateFront$$ResizeFront
33549 \end_layout
33550
33551 \begin_layout LyX-Code
33552          
33553 \backslash
33554
33555 \backslash
33556 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
33557 \end_layout
33558
33559 \begin_layout LyX-Code
33560          $$ResizeBack$$RotateBack"
33561 \end_layout
33562
33563 \begin_layout LyX-Code
33564 UpdateFormat pstex
33565 \end_layout
33566
33567 \begin_layout LyX-Code
33568 UpdateResult "$$AbsPath$$Basename.pstex_t"
33569 \end_layout
33570
33571 \begin_layout LyX-Code
33572 Requirement "graphicx"
33573 \end_layout
33574
33575 \begin_layout LyX-Code
33576 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
33577 \end_layout
33578
33579 \begin_layout LyX-Code
33580 ReferencedFile latex "$$AbsPath$$Basename.eps"
33581 \end_layout
33582
33583 \begin_layout LyX-Code
33584 ReferencedFile dvi "$$AbsPath$$Basename.eps"
33585 \end_layout
33586
33587 \begin_layout LyX-Code
33588 FormatEnd
33589 \end_layout
33590
33591 \begin_layout LyX-Code
33592 Format PDFLaTeX
33593 \end_layout
33594
33595 \begin_layout LyX-Code
33596 TransformCommand Rotate RotationLatexCommand
33597 \end_layout
33598
33599 \begin_layout LyX-Code
33600 TransformCommand Resize ResizeLatexCommand
33601 \end_layout
33602
33603 \begin_layout LyX-Code
33604 Product "$$RotateFront$$ResizeFront
33605 \end_layout
33606
33607 \begin_layout LyX-Code
33608          
33609 \backslash
33610
33611 \backslash
33612 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
33613 \end_layout
33614
33615 \begin_layout LyX-Code
33616          $$ResizeBack$$RotateBack"
33617 \end_layout
33618
33619 \begin_layout LyX-Code
33620 UpdateFormat pdftex
33621 \end_layout
33622
33623 \begin_layout LyX-Code
33624 UpdateResult "$$AbsPath$$Basename.pdftex_t"
33625 \end_layout
33626
33627 \begin_layout LyX-Code
33628 Requirement "graphicx"
33629 \end_layout
33630
33631 \begin_layout LyX-Code
33632 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
33633 \end_layout
33634
33635 \begin_layout LyX-Code
33636 ReferencedFile latex "$$AbsPath$$Basename.pdf"
33637 \end_layout
33638
33639 \begin_layout LyX-Code
33640 FormatEnd
33641 \end_layout
33642
33643 \begin_layout LyX-Code
33644 Format Ascii
33645 \end_layout
33646
33647 \begin_layout LyX-Code
33648 Product "[XFig:
33649  $$FName]"
33650 \end_layout
33651
33652 \begin_layout LyX-Code
33653 FormatEnd
33654 \end_layout
33655
33656 \begin_layout LyX-Code
33657 Format DocBook
33658 \end_layout
33659
33660 \begin_layout LyX-Code
33661 Product "<graphic fileref=
33662 \backslash
33663 "$$AbsOrRelPathMaster$$Basename.eps
33664 \backslash
33665 ">
33666 \end_layout
33667
33668 \begin_layout LyX-Code
33669          </graphic>"
33670 \end_layout
33671
33672 \begin_layout LyX-Code
33673 UpdateFormat eps
33674 \end_layout
33675
33676 \begin_layout LyX-Code
33677 UpdateResult "$$AbsPath$$Basename.eps"
33678 \end_layout
33679
33680 \begin_layout LyX-Code
33681 ReferencedFile docbook "$$AbsPath$$Basename.eps"
33682 \end_layout
33683
33684 \begin_layout LyX-Code
33685 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
33686 \end_layout
33687
33688 \begin_layout LyX-Code
33689 FormatEnd
33690 \end_layout
33691
33692 \begin_layout LyX-Code
33693 TemplateEnd
33694 \end_layout
33695
33696 \begin_layout Standard
33697 As you can see,
33698  the template is enclosed in 
33699 \begin_inset Flex Code
33700 status collapsed
33701
33702 \begin_layout Plain Layout
33703 Template
33704 \end_layout
33705
33706 \end_inset
33707
33708  \SpecialChar ldots
33709  
33710 \begin_inset Flex Code
33711 status collapsed
33712
33713 \begin_layout Plain Layout
33714 TemplateEnd
33715 \end_layout
33716
33717 \end_inset
33718
33719 .
33720  It contains a header specifying some general settings and,
33721  for each supported primary document file format,
33722  a section 
33723 \begin_inset Flex Code
33724 status collapsed
33725
33726 \begin_layout Plain Layout
33727 Format
33728 \end_layout
33729
33730 \end_inset
33731
33732  \SpecialChar ldots
33733  
33734 \begin_inset Flex Code
33735 status collapsed
33736
33737 \begin_layout Plain Layout
33738 FormatEnd
33739 \end_layout
33740
33741 \end_inset
33742
33743 .
33744 \end_layout
33745
33746 \begin_layout Subsection
33747 The template header
33748 \end_layout
33749
33750 \begin_layout Description
33751 \begin_inset Flex Code
33752 status collapsed
33753
33754 \begin_layout Plain Layout
33755 AutomaticProduction
33756 \begin_inset space ~
33757 \end_inset
33758
33759 true|false
33760 \end_layout
33761
33762 \end_inset
33763
33764  Whether the file represented by the template must be generated by \SpecialChar LyX
33765 .
33766  This command must occur exactly once.
33767 \end_layout
33768
33769 \begin_layout Description
33770 \begin_inset Flex Code
33771 status collapsed
33772
33773 \begin_layout Plain Layout
33774 FileFilter
33775 \begin_inset space ~
33776 \end_inset
33777
33778 <pattern>
33779 \end_layout
33780
33781 \end_inset
33782
33783  A glob pattern that is used in the file dialog to filter out the desired files.
33784  If there is more than one possible file extension (e.
33785 \begin_inset space \thinspace{}
33786 \end_inset
33787
33788 g.
33789 \begin_inset space \space{}
33790 \end_inset
33791
33792 tgif has 
33793 \begin_inset Flex Code
33794 status collapsed
33795
33796 \begin_layout Plain Layout
33797 .obj
33798 \end_layout
33799
33800 \end_inset
33801
33802  and 
33803 \begin_inset Flex Code
33804 status collapsed
33805
33806 \begin_layout Plain Layout
33807 .tgo
33808 \end_layout
33809
33810 \end_inset
33811
33812 ),
33813  use something like 
33814 \begin_inset Flex Code
33815 status collapsed
33816
33817 \begin_layout Plain Layout
33818 "*.{obj,tgo}"
33819 \end_layout
33820
33821 \end_inset
33822
33823 .
33824  This command must occur exactly once.
33825 \end_layout
33826
33827 \begin_layout Description
33828 \begin_inset Flex Code
33829 status collapsed
33830
33831 \begin_layout Plain Layout
33832 GuiName
33833 \begin_inset space ~
33834 \end_inset
33835
33836 <guiname>
33837 \end_layout
33838
33839 \end_inset
33840
33841  The text that is displayed on the button.
33842  This command must occur exactly once.
33843 \end_layout
33844
33845 \begin_layout Description
33846 \begin_inset Flex Code
33847 status collapsed
33848
33849 \begin_layout Plain Layout
33850 HelpText
33851 \begin_inset space ~
33852 \end_inset
33853
33854 <text>
33855 \begin_inset space ~
33856 \end_inset
33857
33858 HelpTextEnd
33859 \end_layout
33860
33861 \end_inset
33862
33863  The help text that is used in the External dialog.
33864  Provide enough information to explain to the user just what the template can provide him with.
33865  This command must occur exactly once.
33866 \end_layout
33867
33868 \begin_layout Description
33869 \begin_inset Flex Code
33870 status collapsed
33871
33872 \begin_layout Plain Layout
33873 InputFormat
33874 \begin_inset space ~
33875 \end_inset
33876
33877 <format>
33878 \end_layout
33879
33880 \end_inset
33881
33882  The file format of the original file.
33883  This must be the name of a format that is known to \SpecialChar LyX
33884  (see 
33885 \begin_inset CommandInset ref
33886 LatexCommand ref
33887 reference "sec:Formats"
33888 nolink "false"
33889
33890 \end_inset
33891
33892 ).
33893  Use 
33894 \begin_inset Quotes eld
33895 \end_inset
33896
33897
33898 \begin_inset Flex Code
33899 status collapsed
33900
33901 \begin_layout Plain Layout
33902 *
33903 \end_layout
33904
33905 \end_inset
33906
33907
33908 \begin_inset Quotes erd
33909 \end_inset
33910
33911  if the template can handle original files of more than one format.
33912  \SpecialChar LyX
33913  will attempt to interrogate the file itself in order to deduce its format in this case.
33914  This command must occur exactly once.
33915 \end_layout
33916
33917 \begin_layout Description
33918 \begin_inset Flex Code
33919 status collapsed
33920
33921 \begin_layout Plain Layout
33922 Template
33923 \begin_inset space ~
33924 \end_inset
33925
33926 <id>
33927 \end_layout
33928
33929 \end_inset
33930
33931  A unique name for the template.
33932  It must not contain substitution macros (see below).
33933 \end_layout
33934
33935 \begin_layout Description
33936 \begin_inset Flex Code
33937 status collapsed
33938
33939 \begin_layout Plain Layout
33940 Transform
33941 \begin_inset space ~
33942 \end_inset
33943
33944 Rotate|Resize|Clip|Extra
33945 \end_layout
33946
33947 \end_inset
33948
33949  This command specifies which transformations are supported by this template.
33950  It may occur zero or more times.
33951  This command enables the corresponding tabs in the external dialog.
33952  Each 
33953 \begin_inset Flex Code
33954 status collapsed
33955
33956 \begin_layout Plain Layout
33957 Transform
33958 \end_layout
33959
33960 \end_inset
33961
33962  command must have either a corresponding 
33963 \begin_inset Flex Code
33964 status collapsed
33965
33966 \begin_layout Plain Layout
33967 TransformCommand
33968 \end_layout
33969
33970 \end_inset
33971
33972  or a 
33973 \begin_inset Flex Code
33974 status collapsed
33975
33976 \begin_layout Plain Layout
33977 TransformOption
33978 \end_layout
33979
33980 \end_inset
33981
33982  command in the 
33983 \begin_inset Flex Code
33984 status collapsed
33985
33986 \begin_layout Plain Layout
33987 Format
33988 \end_layout
33989
33990 \end_inset
33991
33992  section.
33993  Otherwise the transformation will not be supported by that format.
33994 \end_layout
33995
33996 \begin_layout Subsection
33997 The Format section
33998 \end_layout
33999
34000 \begin_layout Description
34001 \begin_inset Flex Code
34002 status collapsed
34003
34004 \begin_layout Plain Layout
34005 Format
34006 \begin_inset space ~
34007 \end_inset
34008
34009 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
34010 \end_layout
34011
34012 \end_inset
34013
34014  The primary document file format that this format definition is for.
34015  Not every template has a sensible representation in all document file formats.
34016  Please define nevertheless a 
34017 \begin_inset Flex Code
34018 status collapsed
34019
34020 \begin_layout Plain Layout
34021 Format
34022 \end_layout
34023
34024 \end_inset
34025
34026  section for all templates.
34027  Use a dummy text when no representation is available.
34028  Then you can at least see a reference to the external material in the exported document.
34029 \end_layout
34030
34031 \begin_layout Description
34032 \begin_inset Flex Code
34033 status collapsed
34034
34035 \begin_layout Plain Layout
34036 Option
34037 \begin_inset space ~
34038 \end_inset
34039
34040 <name>
34041 \begin_inset space ~
34042 \end_inset
34043
34044 <value>
34045 \end_layout
34046
34047 \end_inset
34048
34049  This command defines an additional macro 
34050 \begin_inset Flex Code
34051 status collapsed
34052
34053 \begin_layout Plain Layout
34054 $$<name>
34055 \end_layout
34056
34057 \end_inset
34058
34059  for substitution in 
34060 \begin_inset Flex Code
34061 status collapsed
34062
34063 \begin_layout Plain Layout
34064 Product
34065 \end_layout
34066
34067 \end_inset
34068
34069 .
34070  
34071 \begin_inset Flex Code
34072 status collapsed
34073
34074 \begin_layout Plain Layout
34075 <value>
34076 \end_layout
34077
34078 \end_inset
34079
34080  itself may contain substitution macros.
34081  The advantage over using 
34082 \begin_inset Flex Code
34083 status collapsed
34084
34085 \begin_layout Plain Layout
34086 <value>
34087 \end_layout
34088
34089 \end_inset
34090
34091  directly in 
34092 \begin_inset Flex Code
34093 status collapsed
34094
34095 \begin_layout Plain Layout
34096 Product
34097 \end_layout
34098
34099 \end_inset
34100
34101  is that the substituted value of 
34102 \begin_inset Flex Code
34103 status collapsed
34104
34105 \begin_layout Plain Layout
34106 $$<name>
34107 \end_layout
34108
34109 \end_inset
34110
34111  is sanitized so that it is a valid optional argument in the document format.
34112  This command may occur zero or more times.
34113 \end_layout
34114
34115 \begin_layout Description
34116 \begin_inset Flex Code
34117 status collapsed
34118
34119 \begin_layout Plain Layout
34120 Product
34121 \begin_inset space ~
34122 \end_inset
34123
34124 <text>
34125 \end_layout
34126
34127 \end_inset
34128
34129  The text that is inserted in the exported document.
34130  This is actually the most important command and can be quite complex.
34131  This command must occur exactly once.
34132 \end_layout
34133
34134 \begin_layout Description
34135 \begin_inset Flex Code
34136 status collapsed
34137
34138 \begin_layout Plain Layout
34139 Preamble
34140 \begin_inset space ~
34141 \end_inset
34142
34143 <name>
34144 \end_layout
34145
34146 \end_inset
34147
34148  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
34149  preamble.
34150  It has to be defined using 
34151 \begin_inset Flex Code
34152 status collapsed
34153
34154 \begin_layout Plain Layout
34155 PreambleDef
34156 \end_layout
34157
34158 \end_inset
34159
34160  \SpecialChar ldots
34161  
34162 \begin_inset Flex Code
34163 status collapsed
34164
34165 \begin_layout Plain Layout
34166 PreambleDefEnd
34167 \end_layout
34168
34169 \end_inset
34170
34171 .
34172  This command may occur zero or more times.
34173 \end_layout
34174
34175 \begin_layout Description
34176 \begin_inset Flex Code
34177 status collapsed
34178
34179 \begin_layout Plain Layout
34180 ReferencedFile
34181 \begin_inset space ~
34182 \end_inset
34183
34184 <format>
34185 \begin_inset space ~
34186 \end_inset
34187
34188 <filename>
34189 \end_layout
34190
34191 \end_inset
34192
34193  This command denotes files that are created by the conversion process and are needed for a particular export format.
34194  If the filename is relative,
34195  it is interpreted relative to the master document.
34196  This command may be given zero or more times.
34197 \end_layout
34198
34199 \begin_layout Description
34200 \begin_inset Flex Code
34201 status collapsed
34202
34203 \begin_layout Plain Layout
34204 Requirement
34205 \begin_inset space ~
34206 \end_inset
34207
34208 <package>
34209 \end_layout
34210
34211 \end_inset
34212
34213  The name of a required \SpecialChar LaTeX
34214  package.
34215  The package is included via 
34216 \begin_inset Flex Code
34217 status collapsed
34218
34219 \begin_layout Plain Layout
34220
34221 \backslash
34222 usepackage{}
34223 \end_layout
34224
34225 \end_inset
34226
34227  in the \SpecialChar LaTeX
34228  preamble.
34229  This command may occur zero or more times.
34230 \end_layout
34231
34232 \begin_layout Description
34233 \begin_inset Flex Code
34234 status collapsed
34235
34236 \begin_layout Plain Layout
34237 TransformCommand
34238 \begin_inset space ~
34239 \end_inset
34240
34241 Rotate
34242 \begin_inset space ~
34243 \end_inset
34244
34245 RotationLatexCommand
34246 \end_layout
34247
34248 \end_inset
34249
34250  This command specifies that the built in \SpecialChar LaTeX
34251  command should be used for rotation.
34252  This command may occur once or not at all.
34253 \end_layout
34254
34255 \begin_layout Description
34256 \begin_inset Flex Code
34257 status collapsed
34258
34259 \begin_layout Plain Layout
34260 TransformCommand
34261 \begin_inset space ~
34262 \end_inset
34263
34264 Resize
34265 \begin_inset space ~
34266 \end_inset
34267
34268 ResizeLatexCommand
34269 \end_layout
34270
34271 \end_inset
34272
34273  This command specifies that the built in \SpecialChar LaTeX
34274  command should be used for resizing.
34275  This command may occur once or not at all.
34276 \end_layout
34277
34278 \begin_layout Description
34279 \begin_inset Flex Code
34280 status collapsed
34281
34282 \begin_layout Plain Layout
34283 TransformOption
34284 \begin_inset space ~
34285 \end_inset
34286
34287 Rotate
34288 \begin_inset space ~
34289 \end_inset
34290
34291 RotationLatexOption
34292 \end_layout
34293
34294 \end_inset
34295
34296  This command specifies that rotation is done via an optional argument.
34297  This command may occur once or not at all.
34298 \end_layout
34299
34300 \begin_layout Description
34301 \begin_inset Flex Code
34302 status collapsed
34303
34304 \begin_layout Plain Layout
34305 TransformOption
34306 \begin_inset space ~
34307 \end_inset
34308
34309 Resize
34310 \begin_inset space ~
34311 \end_inset
34312
34313 ResizeLatexOption
34314 \end_layout
34315
34316 \end_inset
34317
34318  This command specifies that resizing is done via an optional argument.
34319  This command may occur once or not at all.
34320 \end_layout
34321
34322 \begin_layout Description
34323 \begin_inset Flex Code
34324 status collapsed
34325
34326 \begin_layout Plain Layout
34327 TransformOption
34328 \begin_inset space ~
34329 \end_inset
34330
34331 Clip
34332 \begin_inset space ~
34333 \end_inset
34334
34335 ClipLatexOption
34336 \end_layout
34337
34338 \end_inset
34339
34340  This command specifies that clipping is done via an optional argument.
34341  This command may occur once or not at all.
34342 \end_layout
34343
34344 \begin_layout Description
34345 \begin_inset Flex Code
34346 status collapsed
34347
34348 \begin_layout Plain Layout
34349 TransformOption
34350 \begin_inset space ~
34351 \end_inset
34352
34353 Extra
34354 \begin_inset space ~
34355 \end_inset
34356
34357 ExtraLatexOption
34358 \end_layout
34359
34360 \end_inset
34361
34362  This command specifies that an extra optional argument is used.
34363  This command may occur once or not at all.
34364 \end_layout
34365
34366 \begin_layout Description
34367 \begin_inset Flex Code
34368 status collapsed
34369
34370 \begin_layout Plain Layout
34371 UpdateFormat
34372 \begin_inset space ~
34373 \end_inset
34374
34375 <format>
34376 \end_layout
34377
34378 \end_inset
34379
34380  The file format of the converted file.
34381  This must be the name of a format that is known to \SpecialChar LyX
34382  (see the 
34383 \begin_inset Flex Noun
34384 status collapsed
34385
34386 \begin_layout Plain Layout
34387 Tools\SpecialChar menuseparator
34388 Preferences\SpecialChar menuseparator
34389 File Handling\SpecialChar menuseparator
34390 File Format
34391 \end_layout
34392
34393 \end_inset
34394
34395  dialog).
34396  This command must occur exactly once.
34397  If the resulting file format is PDF,
34398  you need to specify the format 
34399 \begin_inset Flex Code
34400 status collapsed
34401
34402 \begin_layout Plain Layout
34403 pdf6
34404 \end_layout
34405
34406 \end_inset
34407
34408 .
34409  This is the PDF format used for including graphics.
34410  The other defined PDF formats are for document export.
34411 \end_layout
34412
34413 \begin_layout Description
34414 \begin_inset Flex Code
34415 status collapsed
34416
34417 \begin_layout Plain Layout
34418 UpdateResult
34419 \begin_inset space ~
34420 \end_inset
34421
34422 <filename>
34423 \end_layout
34424
34425 \end_inset
34426
34427  The file name of the converted file.
34428  The file name must be absolute.
34429  This command must occur exactly once.
34430 \end_layout
34431
34432 \begin_layout Subsection
34433 Preamble definitions
34434 \end_layout
34435
34436 \begin_layout Standard
34437 The external template configuration file may contain additional preamble definitions enclosed by 
34438 \begin_inset Flex Code
34439 status collapsed
34440
34441 \begin_layout Plain Layout
34442 PreambleDef
34443 \end_layout
34444
34445 \end_inset
34446
34447  \SpecialChar ldots
34448  
34449 \begin_inset Flex Code
34450 status collapsed
34451
34452 \begin_layout Plain Layout
34453 PreambleDefEnd
34454 \end_layout
34455
34456 \end_inset
34457
34458 .
34459  They can be used by the templates in the 
34460 \begin_inset Flex Code
34461 status collapsed
34462
34463 \begin_layout Plain Layout
34464 Format
34465 \end_layout
34466
34467 \end_inset
34468
34469  section.
34470 \end_layout
34471
34472 \begin_layout Section
34473 The substitution mechanism
34474 \end_layout
34475
34476 \begin_layout Standard
34477 When the external material facility invokes an external program,
34478  it is done on the basis of a command defined in the template configuration file.
34479  These commands can contain various macros that are expanded before execution.
34480  Execution always take place in the directory of the containing document.
34481 \end_layout
34482
34483 \begin_layout Standard
34484 Also,
34485  whenever external material is to be displayed,
34486  the name will be produced by the substitution mechanism,
34487  and most other commands in the template definition support substitution as well.
34488 \end_layout
34489
34490 \begin_layout Standard
34491 The available macros are the following:
34492 \end_layout
34493
34494 \begin_layout Description
34495 \begin_inset Flex Code
34496 status collapsed
34497
34498 \begin_layout Plain Layout
34499 $$AbsOrRelPathMaster
34500 \end_layout
34501
34502 \end_inset
34503
34504  The file path,
34505  absolute or relative to the master \SpecialChar LyX
34506  document.
34507 \end_layout
34508
34509 \begin_layout Description
34510 \begin_inset Flex Code
34511 status collapsed
34512
34513 \begin_layout Plain Layout
34514 $$AbsOrRelPathParent
34515 \end_layout
34516
34517 \end_inset
34518
34519  The file path,
34520  absolute or relative to the \SpecialChar LyX
34521  document.
34522 \end_layout
34523
34524 \begin_layout Description
34525 \begin_inset Flex Code
34526 status collapsed
34527
34528 \begin_layout Plain Layout
34529 $$AbsPath
34530 \end_layout
34531
34532 \end_inset
34533
34534  The absolute file path.
34535 \end_layout
34536
34537 \begin_layout Description
34538 \begin_inset Flex Code
34539 status collapsed
34540
34541 \begin_layout Plain Layout
34542 $$Basename
34543 \end_layout
34544
34545 \end_inset
34546
34547  The filename without path and without the extension.
34548 \end_layout
34549
34550 \begin_layout Description
34551 \begin_inset Flex Code
34552 status collapsed
34553
34554 \begin_layout Plain Layout
34555 $$Contents(
34556 \begin_inset Quotes eld
34557 \end_inset
34558
34559 filename.ext
34560 \begin_inset Quotes erd
34561 \end_inset
34562
34563 )
34564 \end_layout
34565
34566 \end_inset
34567
34568  This macro will expand to the contents of the file with the name 
34569 \begin_inset Flex Code
34570 status collapsed
34571
34572 \begin_layout Plain Layout
34573 filename.ext
34574 \end_layout
34575
34576 \end_inset
34577
34578 .
34579 \end_layout
34580
34581 \begin_layout Description
34582 \begin_inset Flex Code
34583 status collapsed
34584
34585 \begin_layout Plain Layout
34586 $$Extension
34587 \end_layout
34588
34589 \end_inset
34590
34591  The file extension (including the dot).
34592 \end_layout
34593
34594 \begin_layout Description
34595 \begin_inset Flex Code
34596 status collapsed
34597
34598 \begin_layout Plain Layout
34599 $$pngOrjpg
34600 \end_layout
34601
34602 \end_inset
34603
34604  This will be the string 
34605 \begin_inset Quotes eld
34606 \end_inset
34607
34608 jpg
34609 \begin_inset Quotes erd
34610 \end_inset
34611
34612  if the file is in JPEG format,
34613  otherwise it will be the string 
34614 \begin_inset Quotes eld
34615 \end_inset
34616
34617 png
34618 \begin_inset Quotes erd
34619 \end_inset
34620
34621 .
34622  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
34623  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
34624  output format.
34625 \end_layout
34626
34627 \begin_layout Description
34628 \begin_inset Flex Code
34629 status collapsed
34630
34631 \begin_layout Plain Layout
34632 $$FName
34633 \end_layout
34634
34635 \end_inset
34636
34637  The filename of the file specified in the external material dialog.
34638  This is either an absolute name,
34639  or it is relative to the \SpecialChar LyX
34640  document.
34641 \end_layout
34642
34643 \begin_layout Description
34644 \begin_inset Flex Code
34645 status collapsed
34646
34647 \begin_layout Plain Layout
34648 $$FPath
34649 \end_layout
34650
34651 \end_inset
34652
34653  The path part of 
34654 \begin_inset Flex Code
34655 status collapsed
34656
34657 \begin_layout Plain Layout
34658 $$FName
34659 \end_layout
34660
34661 \end_inset
34662
34663  (absolute name or relative to the \SpecialChar LyX
34664  document).
34665 \end_layout
34666
34667 \begin_layout Description
34668 \begin_inset Flex Code
34669 status collapsed
34670
34671 \begin_layout Plain Layout
34672 $$RelPathMaster
34673 \end_layout
34674
34675 \end_inset
34676
34677  The file path,
34678  relative to the master \SpecialChar LyX
34679  document.
34680 \end_layout
34681
34682 \begin_layout Description
34683 \begin_inset Flex Code
34684 status collapsed
34685
34686 \begin_layout Plain Layout
34687 $$RelPathParent
34688 \end_layout
34689
34690 \end_inset
34691
34692  The file path,
34693  relative to the \SpecialChar LyX
34694  document.
34695 \end_layout
34696
34697 \begin_layout Description
34698 \begin_inset Flex Code
34699 status collapsed
34700
34701 \begin_layout Plain Layout
34702 $$Sysdir
34703 \end_layout
34704
34705 \end_inset
34706
34707  This macro will expand to the absolute path of the system directory.
34708  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
34709 .
34710 \end_layout
34711
34712 \begin_layout Description
34713 \begin_inset Flex Code
34714 status collapsed
34715
34716 \begin_layout Plain Layout
34717 $$Tempname
34718 \end_layout
34719
34720 \end_inset
34721
34722  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
34723  or the external material insertion deleted.
34724 \end_layout
34725
34726 \begin_layout Standard
34727 All path macros contain a trailing directory separator,
34728  so you can construct e.
34729 \begin_inset space \thinspace{}
34730 \end_inset
34731
34732 g.
34733 \begin_inset space \space{}
34734 \end_inset
34735
34736 the absolute filename with 
34737 \begin_inset Flex Code
34738 status collapsed
34739
34740 \begin_layout Plain Layout
34741 $$AbsPath$$Basename$$Extension
34742 \end_layout
34743
34744 \end_inset
34745
34746 .
34747 \end_layout
34748
34749 \begin_layout Standard
34750 The macros above are substituted in all commands unless otherwise noted.
34751  The command 
34752 \begin_inset Flex Code
34753 status collapsed
34754
34755 \begin_layout Plain Layout
34756 Product
34757 \end_layout
34758
34759 \end_inset
34760
34761  supports additionally the following substitutions if they are enabled by the 
34762 \begin_inset Flex Code
34763 status collapsed
34764
34765 \begin_layout Plain Layout
34766 Transform
34767 \end_layout
34768
34769 \end_inset
34770
34771  and 
34772 \begin_inset Flex Code
34773 status collapsed
34774
34775 \begin_layout Plain Layout
34776 TransformCommand
34777 \end_layout
34778
34779 \end_inset
34780
34781  commands:
34782 \end_layout
34783
34784 \begin_layout Description
34785 \begin_inset Flex Code
34786 status collapsed
34787
34788 \begin_layout Plain Layout
34789 $$ResizeFront
34790 \end_layout
34791
34792 \end_inset
34793
34794  The front part of the resize command.
34795 \end_layout
34796
34797 \begin_layout Description
34798 \begin_inset Flex Code
34799 status collapsed
34800
34801 \begin_layout Plain Layout
34802 $$ResizeBack
34803 \end_layout
34804
34805 \end_inset
34806
34807  The back part of the resize command.
34808 \end_layout
34809
34810 \begin_layout Description
34811 \begin_inset Flex Code
34812 status collapsed
34813
34814 \begin_layout Plain Layout
34815 $$RotateFront
34816 \end_layout
34817
34818 \end_inset
34819
34820  The front part of the rotation command.
34821 \end_layout
34822
34823 \begin_layout Description
34824 \begin_inset Flex Code
34825 status collapsed
34826
34827 \begin_layout Plain Layout
34828 $$RotateBack
34829 \end_layout
34830
34831 \end_inset
34832
34833  The back part of the rotation command.
34834 \end_layout
34835
34836 \begin_layout Standard
34837 The value string of the 
34838 \begin_inset Flex Code
34839 status collapsed
34840
34841 \begin_layout Plain Layout
34842 Option
34843 \end_layout
34844
34845 \end_inset
34846
34847  command supports additionally the following substitutions if they are enabled by the 
34848 \begin_inset Flex Code
34849 status collapsed
34850
34851 \begin_layout Plain Layout
34852 Transform
34853 \end_layout
34854
34855 \end_inset
34856
34857  and 
34858 \begin_inset Flex Code
34859 status collapsed
34860
34861 \begin_layout Plain Layout
34862 TransformOption
34863 \end_layout
34864
34865 \end_inset
34866
34867  commands:
34868 \end_layout
34869
34870 \begin_layout Description
34871 \begin_inset Flex Code
34872 status collapsed
34873
34874 \begin_layout Plain Layout
34875 $$Clip
34876 \end_layout
34877
34878 \end_inset
34879
34880  The clip option.
34881 \end_layout
34882
34883 \begin_layout Description
34884 \begin_inset Flex Code
34885 status collapsed
34886
34887 \begin_layout Plain Layout
34888 $$Extra
34889 \end_layout
34890
34891 \end_inset
34892
34893  The extra option.
34894 \end_layout
34895
34896 \begin_layout Description
34897 \begin_inset Flex Code
34898 status collapsed
34899
34900 \begin_layout Plain Layout
34901 $$Resize
34902 \end_layout
34903
34904 \end_inset
34905
34906  The resize option.
34907 \end_layout
34908
34909 \begin_layout Description
34910 \begin_inset Flex Code
34911 status collapsed
34912
34913 \begin_layout Plain Layout
34914 $$Rotate
34915 \end_layout
34916
34917 \end_inset
34918
34919  The rotation option.
34920 \end_layout
34921
34922 \begin_layout Standard
34923 You may ask why there are so many path macros.
34924  There are mainly two reasons:
34925 \end_layout
34926
34927 \begin_layout Enumerate
34928 Relative and absolute file names should remain relative or absolute,
34929  respectively.
34930  Users may have reasons to prefer either form.
34931  Relative names are useful for portable documents that should work on different machines,
34932  for example.
34933  Absolute names may be required by some programs.
34934 \end_layout
34935
34936 \begin_layout Enumerate
34937 \SpecialChar LaTeX
34938  treats relative file names differently than \SpecialChar LyX
34939  and other programs in nested included files.
34940  For \SpecialChar LyX
34941 ,
34942  a relative file name is always relative to the document that contains the file name.
34943  For \SpecialChar LaTeX
34944 ,
34945  it is always relative to the master document.
34946  These two definitions are identical if you have only one document,
34947  but differ if you have a master document that includes part documents.
34948  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
34949 .
34950  Fortunately \SpecialChar LyX
34951  does this automatically for you if you choose the right macros.
34952 \end_layout
34953
34954 \begin_layout Standard
34955 So which path macro should be used in new template definitions?
34956  The rule is not difficult:
34957 \end_layout
34958
34959 \begin_layout Itemize
34960 Use 
34961 \begin_inset Flex Code
34962 status collapsed
34963
34964 \begin_layout Plain Layout
34965 $$AbsPath
34966 \end_layout
34967
34968 \end_inset
34969
34970  if an absolute path is required.
34971 \end_layout
34972
34973 \begin_layout Itemize
34974 Use 
34975 \begin_inset Flex Code
34976 status collapsed
34977
34978 \begin_layout Plain Layout
34979 $$AbsOrRelPathMaster
34980 \end_layout
34981
34982 \end_inset
34983
34984  if the substituted string is some kind of \SpecialChar LaTeX
34985  input.
34986 \end_layout
34987
34988 \begin_layout Itemize
34989 Else use 
34990 \begin_inset Flex Code
34991 status collapsed
34992
34993 \begin_layout Plain Layout
34994 $$AbsOrRelPathParent
34995 \end_layout
34996
34997 \end_inset
34998
34999  in order to preserve the user's choice.
35000 \end_layout
35001
35002 \begin_layout Standard
35003 There are special cases where this rule does not work and e.
35004 \begin_inset space \thinspace{}
35005 \end_inset
35006
35007 g.
35008 \begin_inset space \space{}
35009 \end_inset
35010
35011 relative names are needed,
35012  but normally it will work just fine.
35013  One example for such a case is the command 
35014 \begin_inset Flex Code
35015 status collapsed
35016
35017 \begin_layout Plain Layout
35018 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
35019 \end_layout
35020
35021 \end_inset
35022
35023  in the XFig template above:
35024  We can't use the absolute name because the copier for 
35025 \begin_inset Flex Code
35026 status collapsed
35027
35028 \begin_layout Plain Layout
35029 .pstex_t
35030 \end_layout
35031
35032 \end_inset
35033
35034  files needs the relative name in order to rewrite the file content.
35035 \end_layout
35036
35037 \begin_layout Section
35038 Security discussion
35039 \begin_inset CommandInset label
35040 LatexCommand label
35041 name "sec:Security-discussion"
35042
35043 \end_inset
35044
35045
35046 \end_layout
35047
35048 \begin_layout Standard
35049 The external material feature interfaces with a lot of external programs and does so automatically,
35050  so we have to consider the security implications of this.
35051  In particular,
35052  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
35053  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
35054  This is something we definitely want to avoid.
35055 \end_layout
35056
35057 \begin_layout Standard
35058 However,
35059  since the external program commands are specified in the template configuration file only,
35060  there are no security issues if \SpecialChar LyX
35061  is properly configured with safe templates only.
35062  This is so because the external programs are invoked with the 
35063 \begin_inset Flex Code
35064 status collapsed
35065
35066 \begin_layout Plain Layout
35067 execvp
35068 \end_layout
35069
35070 \end_inset
35071
35072 -system call rather than the 
35073 \begin_inset Flex Code
35074 status collapsed
35075
35076 \begin_layout Plain Layout
35077 system
35078 \end_layout
35079
35080 \end_inset
35081
35082  system-call,
35083  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
35084 \end_layout
35085
35086 \begin_layout Standard
35087 This also implies that you are restricted in what command strings you can use in the external material templates.
35088  In particular,
35089  pipes and redirection are not readily available.
35090  This has to be so if \SpecialChar LyX
35091  should remain safe.
35092  If you want to use some of the shell features,
35093  you should write a safe script to do this in a controlled manner,
35094  and then invoke the script from the command string.
35095  
35096 \end_layout
35097
35098 \begin_layout Standard
35099 It is possible to design a template that interacts directly with the shell,
35100  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
35101  we generally recommend that you only use safe scripts that work with the 
35102 \begin_inset Flex Code
35103 status collapsed
35104
35105 \begin_layout Plain Layout
35106 execvp
35107 \end_layout
35108
35109 \end_inset
35110
35111  system call in a controlled manner.
35112  Of course,
35113  for use in a controlled environment,
35114  it can be tempting to just fall back to use ordinary shell scripts.
35115  If you do so,
35116  be aware that you 
35117 \emph on
35118 will
35119 \emph default
35120  provide an easily exploitable security hole in your system.
35121  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
35122  distribution,
35123  although we do encourage people to submit new templates in the open source tradition.
35124  But \SpecialChar LyX
35125  as shipped from the official distribution channels will never have unsafe templates.
35126 \end_layout
35127
35128 \begin_layout Standard
35129 Including external material provides a lot of power,
35130  and you have to be careful not to introduce security hazards with this power.
35131  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
35132  So if you do not fully understand the issues,
35133  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
35134  development team if you have any questions about whether a given template is safe or not.
35135  And do this before you use it in an uncontrolled environment.
35136 \end_layout
35137
35138 \begin_layout Chapter
35139 \start_of_appendix
35140 List of supported \SpecialChar LyX
35141  functions to be used in layouts
35142 \begin_inset CommandInset label
35143 LatexCommand label
35144 name "chap:List-of-functions"
35145
35146 \end_inset
35147
35148
35149 \end_layout
35150
35151 \begin_layout Standard
35152 \align center
35153 \begin_inset Tabular
35154 <lyxtabular version="3" rows="11" columns="8">
35155 <features tabularvalignment="middle">
35156 <column alignment="left" valignment="top">
35157 <column alignment="left" valignment="top">
35158 <column alignment="left" valignment="top">
35159 <column alignment="left" valignment="top">
35160 <column alignment="left" valignment="top">
35161 <column alignment="left" valignment="top">
35162 <column alignment="left" valignment="top">
35163 <column alignment="left" valignment="top">
35164 <row>
35165 <cell alignment="left" valignment="top" usebox="none">
35166 \begin_inset Text
35167
35168 \begin_layout Plain Layout
35169 accents
35170 \end_layout
35171
35172 \end_inset
35173 </cell>
35174 <cell alignment="left" valignment="top" usebox="none">
35175 \begin_inset Text
35176
35177 \begin_layout Plain Layout
35178 booktabs
35179 \end_layout
35180
35181 \end_inset
35182 </cell>
35183 <cell alignment="left" valignment="top" usebox="none">
35184 \begin_inset Text
35185
35186 \begin_layout Plain Layout
35187 feyn
35188 \end_layout
35189
35190 \end_inset
35191 </cell>
35192 <cell alignment="left" valignment="top" usebox="none">
35193 \begin_inset Text
35194
35195 \begin_layout Plain Layout
35196 listings
35197 \end_layout
35198
35199 \end_inset
35200 </cell>
35201 <cell alignment="center" valignment="top" usebox="none">
35202 \begin_inset Text
35203
35204 \begin_layout Plain Layout
35205 natbib
35206 \end_layout
35207
35208 \end_inset
35209 </cell>
35210 <cell alignment="center" valignment="top" usebox="none">
35211 \begin_inset Text
35212
35213 \begin_layout Plain Layout
35214 rotfloat
35215 \end_layout
35216
35217 \end_inset
35218 </cell>
35219 <cell alignment="center" valignment="top" usebox="none">
35220 \begin_inset Text
35221
35222 \begin_layout Plain Layout
35223 tfrupee
35224 \end_layout
35225
35226 \end_inset
35227 </cell>
35228 <cell alignment="center" valignment="top" usebox="none">
35229 \begin_inset Text
35230
35231 \begin_layout Plain Layout
35232 wasysym
35233 \end_layout
35234
35235 \end_inset
35236 </cell>
35237 </row>
35238 <row>
35239 <cell alignment="left" valignment="top" usebox="none">
35240 \begin_inset Text
35241
35242 \begin_layout Plain Layout
35243 amsbsy
35244 \end_layout
35245
35246 \end_inset
35247 </cell>
35248 <cell alignment="left" valignment="top" usebox="none">
35249 \begin_inset Text
35250
35251 \begin_layout Plain Layout
35252 calc
35253 \end_layout
35254
35255 \end_inset
35256 </cell>
35257 <cell alignment="left" valignment="top" usebox="none">
35258 \begin_inset Text
35259
35260 \begin_layout Plain Layout
35261 fixltx2e
35262 \end_layout
35263
35264 \end_inset
35265 </cell>
35266 <cell alignment="left" valignment="top" usebox="none">
35267 \begin_inset Text
35268
35269 \begin_layout Plain Layout
35270 longtable
35271 \end_layout
35272
35273 \end_inset
35274 </cell>
35275 <cell alignment="center" valignment="top" usebox="none">
35276 \begin_inset Text
35277
35278 \begin_layout Plain Layout
35279 nomencl
35280 \end_layout
35281
35282 \end_inset
35283 </cell>
35284 <cell alignment="center" valignment="top" usebox="none">
35285 \begin_inset Text
35286
35287 \begin_layout Plain Layout
35288 rsphrase
35289 \end_layout
35290
35291 \end_inset
35292 </cell>
35293 <cell alignment="center" valignment="top" usebox="none">
35294 \begin_inset Text
35295
35296 \begin_layout Plain Layout
35297 tipa
35298 \end_layout
35299
35300 \end_inset
35301 </cell>
35302 <cell alignment="center" valignment="top" usebox="none">
35303 \begin_inset Text
35304
35305 \begin_layout Plain Layout
35306 wrapfig
35307 \end_layout
35308
35309 \end_inset
35310 </cell>
35311 </row>
35312 <row>
35313 <cell alignment="left" valignment="top" usebox="none">
35314 \begin_inset Text
35315
35316 \begin_layout Plain Layout
35317 amscd
35318 \end_layout
35319
35320 \end_inset
35321 </cell>
35322 <cell alignment="left" valignment="top" usebox="none">
35323 \begin_inset Text
35324
35325 \begin_layout Plain Layout
35326 CJK
35327 \end_layout
35328
35329 \end_inset
35330 </cell>
35331 <cell alignment="left" valignment="top" usebox="none">
35332 \begin_inset Text
35333
35334 \begin_layout Plain Layout
35335 float
35336 \end_layout
35337
35338 \end_inset
35339 </cell>
35340 <cell alignment="left" valignment="top" usebox="none">
35341 \begin_inset Text
35342
35343 \begin_layout Plain Layout
35344 lyxskak
35345 \end_layout
35346
35347 \end_inset
35348 </cell>
35349 <cell alignment="center" valignment="top" usebox="none">
35350 \begin_inset Text
35351
35352 \begin_layout Plain Layout
35353 pdfcolmk
35354 \end_layout
35355
35356 \end_inset
35357 </cell>
35358 <cell alignment="center" valignment="top" usebox="none">
35359 \begin_inset Text
35360
35361 \begin_layout Plain Layout
35362 setspace
35363 \end_layout
35364
35365 \end_inset
35366 </cell>
35367 <cell alignment="center" valignment="top" usebox="none">
35368 \begin_inset Text
35369
35370 \begin_layout Plain Layout
35371 tipx
35372 \end_layout
35373
35374 \end_inset
35375 </cell>
35376 <cell alignment="center" valignment="top" usebox="none">
35377 \begin_inset Text
35378
35379 \begin_layout Plain Layout
35380 xargs
35381 \end_layout
35382
35383 \end_inset
35384 </cell>
35385 </row>
35386 <row>
35387 <cell alignment="left" valignment="top" usebox="none">
35388 \begin_inset Text
35389
35390 \begin_layout Plain Layout
35391 amsmath
35392 \end_layout
35393
35394 \end_inset
35395 </cell>
35396 <cell alignment="left" valignment="top" usebox="none">
35397 \begin_inset Text
35398
35399 \begin_layout Plain Layout
35400 color
35401 \end_layout
35402
35403 \end_inset
35404 </cell>
35405 <cell alignment="left" valignment="top" usebox="none">
35406 \begin_inset Text
35407
35408 \begin_layout Plain Layout
35409 framed
35410 \end_layout
35411
35412 \end_inset
35413 </cell>
35414 <cell alignment="left" valignment="top" usebox="none">
35415 \begin_inset Text
35416
35417 \begin_layout Plain Layout
35418 makeidx
35419 \end_layout
35420
35421 \end_inset
35422 </cell>
35423 <cell alignment="center" valignment="top" usebox="none">
35424 \begin_inset Text
35425
35426 \begin_layout Plain Layout
35427 pdfpages
35428 \end_layout
35429
35430 \end_inset
35431 </cell>
35432 <cell alignment="center" valignment="top" usebox="none">
35433 \begin_inset Text
35434
35435 \begin_layout Plain Layout
35436 shapepar
35437 \end_layout
35438
35439 \end_inset
35440 </cell>
35441 <cell alignment="center" valignment="top" usebox="none">
35442 \begin_inset Text
35443
35444 \begin_layout Plain Layout
35445 tone
35446 \end_layout
35447
35448 \end_inset
35449 </cell>
35450 <cell alignment="center" valignment="top" usebox="none">
35451 \begin_inset Text
35452
35453 \begin_layout Plain Layout
35454 xcolor
35455 \end_layout
35456
35457 \end_inset
35458 </cell>
35459 </row>
35460 <row>
35461 <cell alignment="left" valignment="top" usebox="none">
35462 \begin_inset Text
35463
35464 \begin_layout Plain Layout
35465 amssymb
35466 \end_layout
35467
35468 \end_inset
35469 </cell>
35470 <cell alignment="left" valignment="top" usebox="none">
35471 \begin_inset Text
35472
35473 \begin_layout Plain Layout
35474 covington
35475 \end_layout
35476
35477 \end_inset
35478 </cell>
35479 <cell alignment="left" valignment="top" usebox="none">
35480 \begin_inset Text
35481
35482 \begin_layout Plain Layout
35483 graphicx
35484 \end_layout
35485
35486 \end_inset
35487 </cell>
35488 <cell alignment="left" valignment="top" usebox="none">
35489 \begin_inset Text
35490
35491 \begin_layout Plain Layout
35492 marvosym
35493 \end_layout
35494
35495 \end_inset
35496 </cell>
35497 <cell alignment="center" valignment="top" usebox="none">
35498 \begin_inset Text
35499
35500 \begin_layout Plain Layout
35501 pifont
35502 \end_layout
35503
35504 \end_inset
35505 </cell>
35506 <cell alignment="center" valignment="top" usebox="none">
35507 \begin_inset Text
35508
35509 \begin_layout Plain Layout
35510 slashed
35511 \end_layout
35512
35513 \end_inset
35514 </cell>
35515 <cell alignment="center" valignment="top" usebox="none">
35516 \begin_inset Text
35517
35518 \begin_layout Plain Layout
35519 txfonts
35520 \end_layout
35521
35522 \end_inset
35523 </cell>
35524 <cell alignment="center" valignment="top" usebox="none">
35525 \begin_inset Text
35526
35527 \begin_layout Plain Layout
35528 xy
35529 \end_layout
35530
35531 \end_inset
35532 </cell>
35533 </row>
35534 <row>
35535 <cell alignment="left" valignment="top" usebox="none">
35536 \begin_inset Text
35537
35538 \begin_layout Plain Layout
35539 amstext
35540 \end_layout
35541
35542 \end_inset
35543 </cell>
35544 <cell alignment="left" valignment="top" usebox="none">
35545 \begin_inset Text
35546
35547 \begin_layout Plain Layout
35548 csquotes
35549 \end_layout
35550
35551 \end_inset
35552 </cell>
35553 <cell alignment="left" valignment="top" usebox="none">
35554 \begin_inset Text
35555
35556 \begin_layout Plain Layout
35557 hhline
35558 \end_layout
35559
35560 \end_inset
35561 </cell>
35562 <cell alignment="left" valignment="top" usebox="none">
35563 \begin_inset Text
35564
35565 \begin_layout Plain Layout
35566 mathdesign
35567 \end_layout
35568
35569 \end_inset
35570 </cell>
35571 <cell alignment="center" valignment="top" usebox="none">
35572 \begin_inset Text
35573
35574 \begin_layout Plain Layout
35575 pmboxdraw
35576 \end_layout
35577
35578 \end_inset
35579 </cell>
35580 <cell alignment="center" valignment="top" usebox="none">
35581 \begin_inset Text
35582
35583 \begin_layout Plain Layout
35584 soul
35585 \end_layout
35586
35587 \end_inset
35588 </cell>
35589 <cell alignment="center" valignment="top" usebox="none">
35590 \begin_inset Text
35591
35592 \begin_layout Plain Layout
35593 ulem
35594 \end_layout
35595
35596 \end_inset
35597 </cell>
35598 <cell alignment="center" valignment="top" usebox="none">
35599 \begin_inset Text
35600
35601 \begin_layout Plain Layout
35602 yhmath
35603 \end_layout
35604
35605 \end_inset
35606 </cell>
35607 </row>
35608 <row>
35609 <cell alignment="left" valignment="top" usebox="none">
35610 \begin_inset Text
35611
35612 \begin_layout Plain Layout
35613 amsthm
35614 \end_layout
35615
35616 \end_inset
35617 </cell>
35618 <cell alignment="left" valignment="top" usebox="none">
35619 \begin_inset Text
35620
35621 \begin_layout Plain Layout
35622 dvipost
35623 \end_layout
35624
35625 \end_inset
35626 </cell>
35627 <cell alignment="left" valignment="top" usebox="none">
35628 \begin_inset Text
35629
35630 \begin_layout Plain Layout
35631 hyperref
35632 \end_layout
35633
35634 \end_inset
35635 </cell>
35636 <cell alignment="left" valignment="top" usebox="none">
35637 \begin_inset Text
35638
35639 \begin_layout Plain Layout
35640 mathdots
35641 \end_layout
35642
35643 \end_inset
35644 </cell>
35645 <cell alignment="center" valignment="top" usebox="none">
35646 \begin_inset Text
35647
35648 \begin_layout Plain Layout
35649 polyglossia
35650 \end_layout
35651
35652 \end_inset
35653 </cell>
35654 <cell alignment="center" valignment="top" usebox="none">
35655 \begin_inset Text
35656
35657 \begin_layout Plain Layout
35658 splitidx
35659 \end_layout
35660
35661 \end_inset
35662 </cell>
35663 <cell alignment="center" valignment="top" usebox="none">
35664 \begin_inset Text
35665
35666 \begin_layout Plain Layout
35667 undertilde
35668 \end_layout
35669
35670 \end_inset
35671 </cell>
35672 <cell alignment="center" valignment="top" usebox="none">
35673 \begin_inset Text
35674
35675 \begin_layout Plain Layout
35676
35677 \end_layout
35678
35679 \end_inset
35680 </cell>
35681 </row>
35682 <row>
35683 <cell alignment="left" valignment="top" usebox="none">
35684 \begin_inset Text
35685
35686 \begin_layout Plain Layout
35687 array
35688 \end_layout
35689
35690 \end_inset
35691 </cell>
35692 <cell alignment="left" valignment="top" usebox="none">
35693 \begin_inset Text
35694
35695 \begin_layout Plain Layout
35696 endnotes
35697 \end_layout
35698
35699 \end_inset
35700 </cell>
35701 <cell alignment="left" valignment="top" usebox="none">
35702 \begin_inset Text
35703
35704 \begin_layout Plain Layout
35705 ifsym
35706 \end_layout
35707
35708 \end_inset
35709 </cell>
35710 <cell alignment="left" valignment="top" usebox="none">
35711 \begin_inset Text
35712
35713 \begin_layout Plain Layout
35714 mathrsfs
35715 \end_layout
35716
35717 \end_inset
35718 </cell>
35719 <cell alignment="center" valignment="top" usebox="none">
35720 \begin_inset Text
35721
35722 \begin_layout Plain Layout
35723 prettyref
35724 \end_layout
35725
35726 \end_inset
35727 </cell>
35728 <cell alignment="center" valignment="top" usebox="none">
35729 \begin_inset Text
35730
35731 \begin_layout Plain Layout
35732 subfig
35733 \end_layout
35734
35735 \end_inset
35736 </cell>
35737 <cell alignment="center" valignment="top" usebox="none">
35738 \begin_inset Text
35739
35740 \begin_layout Plain Layout
35741 units
35742 \end_layout
35743
35744 \end_inset
35745 </cell>
35746 <cell alignment="center" valignment="top" usebox="none">
35747 \begin_inset Text
35748
35749 \begin_layout Plain Layout
35750
35751 \end_layout
35752
35753 \end_inset
35754 </cell>
35755 </row>
35756 <row>
35757 <cell alignment="left" valignment="top" usebox="none">
35758 \begin_inset Text
35759
35760 \begin_layout Plain Layout
35761 ascii
35762 \end_layout
35763
35764 \end_inset
35765 </cell>
35766 <cell alignment="left" valignment="top" usebox="none">
35767 \begin_inset Text
35768
35769 \begin_layout Plain Layout
35770 enumitem
35771 \end_layout
35772
35773 \end_inset
35774 </cell>
35775 <cell alignment="left" valignment="top" usebox="none">
35776 \begin_inset Text
35777
35778 \begin_layout Plain Layout
35779 ifthen
35780 \end_layout
35781
35782 \end_inset
35783 </cell>
35784 <cell alignment="left" valignment="top" usebox="none">
35785 \begin_inset Text
35786
35787 \begin_layout Plain Layout
35788 mhchem
35789 \end_layout
35790
35791 \end_inset
35792 </cell>
35793 <cell alignment="center" valignment="top" usebox="none">
35794 \begin_inset Text
35795
35796 \begin_layout Plain Layout
35797 pxfonts
35798 \end_layout
35799
35800 \end_inset
35801 </cell>
35802 <cell alignment="center" valignment="top" usebox="none">
35803 \begin_inset Text
35804
35805 \begin_layout Plain Layout
35806 subscript
35807 \end_layout
35808
35809 \end_inset
35810 </cell>
35811 <cell alignment="center" valignment="top" usebox="none">
35812 \begin_inset Text
35813
35814 \begin_layout Plain Layout
35815 url
35816 \end_layout
35817
35818 \end_inset
35819 </cell>
35820 <cell alignment="center" valignment="top" usebox="none">
35821 \begin_inset Text
35822
35823 \begin_layout Plain Layout
35824
35825 \end_layout
35826
35827 \end_inset
35828 </cell>
35829 </row>
35830 <row>
35831 <cell alignment="left" valignment="top" usebox="none">
35832 \begin_inset Text
35833
35834 \begin_layout Plain Layout
35835 bbding
35836 \end_layout
35837
35838 \end_inset
35839 </cell>
35840 <cell alignment="left" valignment="top" usebox="none">
35841 \begin_inset Text
35842
35843 \begin_layout Plain Layout
35844 esint
35845 \end_layout
35846
35847 \end_inset
35848 </cell>
35849 <cell alignment="left" valignment="top" usebox="none">
35850 \begin_inset Text
35851
35852 \begin_layout Plain Layout
35853 jurabib
35854 \end_layout
35855
35856 \end_inset
35857 </cell>
35858 <cell alignment="left" valignment="top" usebox="none">
35859 \begin_inset Text
35860
35861 \begin_layout Plain Layout
35862 multicol
35863 \end_layout
35864
35865 \end_inset
35866 </cell>
35867 <cell alignment="center" valignment="top" usebox="none">
35868 \begin_inset Text
35869
35870 \begin_layout Plain Layout
35871 refstyle
35872 \end_layout
35873
35874 \end_inset
35875 </cell>
35876 <cell alignment="center" valignment="top" usebox="none">
35877 \begin_inset Text
35878
35879 \begin_layout Plain Layout
35880 textcomp
35881 \end_layout
35882
35883 \end_inset
35884 </cell>
35885 <cell alignment="center" valignment="top" usebox="none">
35886 \begin_inset Text
35887
35888 \begin_layout Plain Layout
35889 varioref
35890 \end_layout
35891
35892 \end_inset
35893 </cell>
35894 <cell alignment="center" valignment="top" usebox="none">
35895 \begin_inset Text
35896
35897 \begin_layout Plain Layout
35898
35899 \end_layout
35900
35901 \end_inset
35902 </cell>
35903 </row>
35904 <row>
35905 <cell alignment="center" valignment="top" usebox="none">
35906 \begin_inset Text
35907
35908 \begin_layout Plain Layout
35909 bm
35910 \end_layout
35911
35912 \end_inset
35913 </cell>
35914 <cell alignment="center" valignment="top" usebox="none">
35915 \begin_inset Text
35916
35917 \begin_layout Plain Layout
35918 fancybox
35919 \end_layout
35920
35921 \end_inset
35922 </cell>
35923 <cell alignment="center" valignment="top" usebox="none">
35924 \begin_inset Text
35925
35926 \begin_layout Plain Layout
35927 latexsym
35928 \end_layout
35929
35930 \end_inset
35931 </cell>
35932 <cell alignment="center" valignment="top" usebox="none">
35933 \begin_inset Text
35934
35935 \begin_layout Plain Layout
35936 multirow
35937 \end_layout
35938
35939 \end_inset
35940 </cell>
35941 <cell alignment="center" valignment="top" usebox="none">
35942 \begin_inset Text
35943
35944 \begin_layout Plain Layout
35945 rotating
35946 \end_layout
35947
35948 \end_inset
35949 </cell>
35950 <cell alignment="center" valignment="top" usebox="none">
35951 \begin_inset Text
35952
35953 \begin_layout Plain Layout
35954 textgreek
35955 \end_layout
35956
35957 \end_inset
35958 </cell>
35959 <cell alignment="center" valignment="top" usebox="none">
35960 \begin_inset Text
35961
35962 \begin_layout Plain Layout
35963 verbatim
35964 \end_layout
35965
35966 \end_inset
35967 </cell>
35968 <cell alignment="center" valignment="top" usebox="none">
35969 \begin_inset Text
35970
35971 \begin_layout Plain Layout
35972
35973 \end_layout
35974
35975 \end_inset
35976 </cell>
35977 </row>
35978 </lyxtabular>
35979
35980 \end_inset
35981
35982
35983 \end_layout
35984
35985 \begin_layout Chapter
35986 Names of available colors to be used in layouts
35987 \begin_inset CommandInset label
35988 LatexCommand label
35989 name "chap:Names-of-colors"
35990
35991 \end_inset
35992
35993
35994 \end_layout
35995
35996 \begin_layout Standard
35997 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
35998  preferences.
35999 \end_layout
36000
36001 \begin_layout Section
36002 Color functions
36003 \end_layout
36004
36005 \begin_layout Standard
36006 The following are no real colors,
36007  but rather act on color definitions:
36008 \end_layout
36009
36010 \begin_layout Description
36011 ignore The color is ignored
36012 \end_layout
36013
36014 \begin_layout Description
36015 inherit The color is inherited
36016 \end_layout
36017
36018 \begin_layout Description
36019 none
36020 \family roman
36021 \series medium
36022 \shape up
36023 \size normal
36024 \emph off
36025 \bar no
36026 \strikeout off
36027 \uuline off
36028 \uwave off
36029 \noun off
36030 \color none
36031  No particular color – clear or default
36032 \end_layout
36033
36034 \begin_layout Section
36035 Static colors
36036 \end_layout
36037
36038 \begin_layout Standard
36039 These are fixed colors that cannot be customized
36040 \change_inserted -712698321 1607683177
36041 .
36042  Please do 
36043 \emph on
36044 not
36045 \emph default
36046  use these colors in layout definitions,
36047  since they will not work well with some color themes (such as dark themes)
36048 \change_unchanged
36049 :
36050 \end_layout
36051
36052 \begin_layout Description
36053 black
36054 \end_layout
36055
36056 \begin_layout Description
36057 white
36058 \end_layout
36059
36060 \begin_layout Description
36061 blue
36062 \end_layout
36063
36064 \begin_layout Description
36065 brown
36066 \end_layout
36067
36068 \begin_layout Description
36069 cyan
36070 \end_layout
36071
36072 \begin_layout Description
36073 darkgray
36074 \end_layout
36075
36076 \begin_layout Description
36077 gray
36078 \end_layout
36079
36080 \begin_layout Description
36081 green
36082 \end_layout
36083
36084 \begin_layout Description
36085 lightgray
36086 \end_layout
36087
36088 \begin_layout Description
36089 lime
36090 \end_layout
36091
36092 \begin_layout Description
36093 magenta
36094 \end_layout
36095
36096 \begin_layout Description
36097 olive
36098 \end_layout
36099
36100 \begin_layout Description
36101 orange
36102 \end_layout
36103
36104 \begin_layout Description
36105 pink
36106 \end_layout
36107
36108 \begin_layout Description
36109 purple
36110 \end_layout
36111
36112 \begin_layout Description
36113 red
36114 \end_layout
36115
36116 \begin_layout Description
36117 teal
36118 \end_layout
36119
36120 \begin_layout Description
36121 violet
36122 \end_layout
36123
36124 \begin_layout Description
36125 yellow
36126 \end_layout
36127
36128 \begin_layout Section
36129 Dynamic colors
36130 \end_layout
36131
36132 \begin_layout Standard
36133 These are the colors allocated to specific elements in 
36134 \begin_inset Info
36135 type  "menu"
36136 arg   "dialog-show prefs"
36137 \end_inset
36138
36139 :
36140 \end_layout
36141
36142 \begin_layout Description
36143 added_space Added space color
36144 \end_layout
36145
36146 \begin_layout Description
36147 addedtext Added text color
36148 \end_layout
36149
36150 \begin_layout Description
36151 appendix Appendix marker color
36152 \end_layout
36153
36154 \begin_layout Description
36155 background Background color
36156 \end_layout
36157
36158 \begin_layout Description
36159 bottomarea Bottom area color
36160 \end_layout
36161
36162 \begin_layout Description
36163 branchlabel Label color for branches
36164 \end_layout
36165
36166 \begin_layout Description
36167 buttonbg Color used for button background
36168 \end_layout
36169
36170 \begin_layout Description
36171 buttonframe Color for inset button frames
36172 \end_layout
36173
36174 \begin_layout Description
36175 buttonhoverbg Color used for button background under focus
36176 \end_layout
36177
36178 \begin_layout Description
36179 changebar Changebar color
36180 \end_layout
36181
36182 \begin_layout Description
36183 changedtextauthor1 Changed text color author 1
36184 \end_layout
36185
36186 \begin_layout Description
36187 changedtextauthor2 Changed text color author 2
36188 \end_layout
36189
36190 \begin_layout Description
36191 changedtextauthor3 Changed text color author 3
36192 \end_layout
36193
36194 \begin_layout Description
36195 changedtextauthor4 Changed text color author 4
36196 \end_layout
36197
36198 \begin_layout Description
36199 changedtextauthor5 Changed text color author 5
36200 \end_layout
36201
36202 \begin_layout Description
36203 collapsible Collapsible insets text color
36204 \end_layout
36205
36206 \begin_layout Description
36207 collapsibleframe Collapsible insets framecolor
36208 \end_layout
36209
36210 \begin_layout Description
36211 command Text color for command insets
36212 \end_layout
36213
36214 \begin_layout Description
36215 commandbg Background color for command insets
36216 \end_layout
36217
36218 \begin_layout Description
36219 commandframe Frame color for command insets
36220 \end_layout
36221
36222 \begin_layout Description
36223 comment Label color for comments
36224 \end_layout
36225
36226 \begin_layout Description
36227 commentbg Background color of comments
36228 \end_layout
36229
36230 \begin_layout Description
36231 cursor Cursor color
36232 \end_layout
36233
36234 \begin_layout Description
36235 deletedtext Deleted text color
36236 \end_layout
36237
36238 \begin_layout Description
36239 deletedtextmodifier Deleted text modifying color
36240 \end_layout
36241
36242 \begin_layout Description
36243 depthbar Color for the depth bars in the margin
36244 \end_layout
36245
36246 \begin_layout Description
36247 eolmarker End of line marker color
36248 \end_layout
36249
36250 \begin_layout Description
36251 error Color of the \SpecialChar LaTeX
36252  error box
36253 \end_layout
36254
36255 \begin_layout Description
36256 footlabel Label color for footnotes
36257 \end_layout
36258
36259 \begin_layout Description
36260 foreground Foreground color
36261 \end_layout
36262
36263 \begin_layout Description
36264 graphicsbg Graphics inset background color
36265 \end_layout
36266
36267 \begin_layout Description
36268 greyedoutbg Background color of greyedout inset
36269 \end_layout
36270
36271 \begin_layout Description
36272 greyedoutlabel Label color for greyedout insets
36273 \end_layout
36274
36275 \begin_layout Description
36276 greyedouttext Color for greyedout inset text
36277 \end_layout
36278
36279 \begin_layout Description
36280 indexlabel Label color for index insets
36281 \end_layout
36282
36283 \begin_layout Description
36284 inlinecompletion Inline completion color
36285 \end_layout
36286
36287 \begin_layout Description
36288 insetbg Inset marker background color
36289 \end_layout
36290
36291 \begin_layout Description
36292 insetframe Inset marker frame color
36293 \end_layout
36294
36295 \begin_layout Description
36296 language Color for marking foreign language words
36297 \end_layout
36298
36299 \begin_layout Description
36300 latex Text color in \SpecialChar LaTeX
36301  mode
36302 \end_layout
36303
36304 \begin_layout Description
36305 listingsbg Background color of listings inset
36306 \end_layout
36307
36308 \begin_layout Description
36309 marginlabel Label color for margin notes
36310 \end_layout
36311
36312 \begin_layout Description
36313 math Math inset text color
36314 \end_layout
36315
36316 \begin_layout Description
36317 mathbg Math inset background color
36318 \end_layout
36319
36320 \begin_layout Description
36321 mathcorners Math inset frame color not under focus
36322 \end_layout
36323
36324 \begin_layout Description
36325 mathframe Math inset frame color under focus
36326 \end_layout
36327
36328 \begin_layout Description
36329 mathline Math line color
36330 \end_layout
36331
36332 \begin_layout Description
36333 mathmacrobg Macro math inset background color
36334 \end_layout
36335
36336 \begin_layout Description
36337 mathmacroblend Macro math blended color
36338 \end_layout
36339
36340 \begin_layout Description
36341 mathmacroframe Macro math frame color
36342 \end_layout
36343
36344 \begin_layout Description
36345 mathmacrohoverbg Macro math inset background color hovered
36346 \end_layout
36347
36348 \begin_layout Description
36349 mathmacrolabel Macro math label color
36350 \end_layout
36351
36352 \begin_layout Description
36353 mathmacronewarg Macro template color for new parameters
36354 \end_layout
36355
36356 \begin_layout Description
36357 mathmacrooldarg Macro template color for old parameters
36358 \end_layout
36359
36360 \begin_layout Description
36361 newpage New page color
36362 \end_layout
36363
36364 \begin_layout Description
36365 nonunique_inlinecompletion Inline completion color for the non-unique part
36366 \end_layout
36367
36368 \begin_layout Description
36369 note Label color for notes
36370 \end_layout
36371
36372 \begin_layout Description
36373 notebg Background color of notes
36374 \end_layout
36375
36376 \begin_layout Description
36377 pagebreak Page break/line break color
36378 \end_layout
36379
36380 \begin_layout Description
36381 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
36382 \end_layout
36383
36384 \begin_layout Description
36385 phantomtext Text color for phantom insets
36386 \end_layout
36387
36388 \begin_layout Description
36389 preview The color used for previews
36390 \end_layout
36391
36392 \begin_layout Description
36393 previewframe Preview frame color
36394 \end_layout
36395
36396 \begin_layout Description
36397 regexpframe Color for regexp frame
36398 \end_layout
36399
36400 \begin_layout Description
36401 scroll Color that indicates when a row can be scrolled 
36402 \end_layout
36403
36404 \begin_layout Description
36405 selection Background color of selected text
36406 \end_layout
36407
36408 \begin_layout Description
36409 selectiontext Foreground color of selected text
36410 \end_layout
36411
36412 \begin_layout Description
36413 shadedbg Background color of shaded box
36414 \end_layout
36415
36416 \begin_layout Description
36417 special Special chars text color
36418 \end_layout
36419
36420 \begin_layout Description
36421 tabularline Table line color
36422 \end_layout
36423
36424 \begin_layout Description
36425 tabularonoffline Table line color
36426 \change_inserted -712698321 1607682522
36427
36428 \end_layout
36429
36430 \begin_layout Description
36431
36432 \change_inserted -712698321 1607682563
36433 textlabel1 Color 1 of layout and custom inset labels
36434 \end_layout
36435
36436 \begin_layout Description
36437
36438 \change_inserted -712698321 1607682565
36439 textlabel2 Color 2 of layout and custom inset labels
36440 \end_layout
36441
36442 \begin_layout Description
36443
36444 \change_inserted -712698321 1607682568
36445 textlabel3 Color 3 of layout and custom inset labels
36446 \change_unchanged
36447
36448 \end_layout
36449
36450 \begin_layout Description
36451 urllabel Label color for URL insets
36452 \end_layout
36453
36454 \begin_layout Description
36455 urltext Color for URL inset text
36456 \end_layout
36457
36458 \end_body
36459 \end_document