]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Additional.lyx: further fixes #2
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 614
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
14632 \change_deleted 1075283030 1672014981
14633 \begin_inset Flex Code
14634 status collapsed
14635
14636 \begin_layout Plain Layout
14637 CommandDepth
14638 \end_layout
14639
14640 \end_inset
14641
14642  Depth of XML command.
14643  Used only with XML-type formats.
14644 \end_layout
14645
14646 \begin_layout Description
14647 \begin_inset Flex Code
14648 status collapsed
14649
14650 \begin_layout Plain Layout
14651 CopyStyle
14652 \end_layout
14653
14654 \end_inset
14655
14656  [
14657 \begin_inset Flex Code
14658 status collapsed
14659
14660 \begin_layout Plain Layout
14661 string
14662 \end_layout
14663
14664 \end_inset
14665
14666 ] Copies all the features of an existing style into the current one.
14667 \change_inserted 1075283030 1671679774
14668
14669 \end_layout
14670
14671 \begin_layout Description
14672
14673 \change_inserted 1075283030 1672014806
14674 \begin_inset Flex Code
14675 status collapsed
14676
14677 \begin_layout Plain Layout
14678
14679 \change_inserted 1075283030 1671679781
14680 DocBookGenerateTitle
14681 \change_unchanged
14682
14683 \end_layout
14684
14685 \end_inset
14686
14687  [
14688 \begin_inset Flex Code
14689 status collapsed
14690
14691 \begin_layout Plain Layout
14692
14693 \change_inserted 1075283030 1672014763
14694 bool=false
14695 \change_unchanged
14696
14697 \end_layout
14698
14699 \end_inset
14700
14701 ] Generates a
14702 \begin_inset Flex Code
14703 status collapsed
14704
14705 \begin_layout Plain Layout
14706
14707 \change_inserted 1075283030 1672014789
14708 title
14709 \end_layout
14710
14711 \end_inset
14712
14713  tag after the wrapper tag.
14714  This parameter should only be used with
14715 \begin_inset Flex Code
14716 status collapsed
14717
14718 \begin_layout Plain Layout
14719
14720 \change_inserted 1075283030 1671679828
14721 DocBookWrapperTag
14722 \change_unchanged
14723
14724 \end_layout
14725
14726 \end_inset
14727
14728 ,
14729  otherwise the title will be output
14730 \emph on
14731  before
14732 \emph default
14733  the contents of the environment.
14734  The generated title is the same as the LyXHTML label:
14735  a combination of the environment type and its number.
14736  A major use is when DocBook has no close mapping for LaTeX environments and users must fallback to using a generic container such as
14737 \begin_inset Flex Code
14738 status collapsed
14739
14740 \begin_layout Plain Layout
14741
14742 \change_inserted 1075283030 1672014801
14743 figure
14744 \end_layout
14745
14746 \end_inset
14747
14748 ,
14749  which requires a title although there is none in LaTeX.
14750  This feature is heavily used for theorem-like environments.
14751 \change_unchanged
14752
14753 \end_layout
14754
14755 \begin_layout Description
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 DependsOn
14761 \end_layout
14762
14763 \end_inset
14764
14765  [
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770 <name>
14771 \end_layout
14772
14773 \end_inset
14774
14775 ] The name of a style whose preamble should be output 
14776 \emph on
14777 before
14778 \emph default
14779  this one.
14780  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
14781 \begin_inset Foot
14782 status collapsed
14783
14784 \begin_layout Plain Layout
14785 Note that,
14786  besides that functionality,
14787  there is no way to ensure any ordering of preambles.
14788  The ordering that you see in a given version of \SpecialChar LyX
14789  may change without warning in later versions.
14790 \end_layout
14791
14792 \end_inset
14793
14794
14795 \end_layout
14796
14797 \begin_layout Description
14798 \begin_inset Flex Code
14799 status collapsed
14800
14801 \begin_layout Plain Layout
14802 EndLabelType
14803 \end_layout
14804
14805 \end_inset
14806
14807  [
14808 \begin_inset Flex Code
14809 status collapsed
14810
14811 \begin_layout Plain Layout
14812
14813 \emph on
14814 No_Label
14815 \emph default
14816 ,
14817  Box,
14818  Filled_Box,
14819  Static
14820 \end_layout
14821
14822 \end_inset
14823
14824 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
14825 \begin_inset Flex Code
14826 status collapsed
14827
14828 \begin_layout Plain Layout
14829 LatexType
14830 \end_layout
14831
14832 \end_inset
14833
14834  is
14835 \begin_inset Newline newline
14836 \end_inset
14837
14838
14839 \begin_inset Flex Code
14840 status collapsed
14841
14842 \begin_layout Plain Layout
14843 Environment
14844 \end_layout
14845
14846 \end_inset
14847
14848 ,
14849  
14850 \begin_inset Flex Code
14851 status collapsed
14852
14853 \begin_layout Plain Layout
14854 Item_Environment
14855 \end_layout
14856
14857 \end_inset
14858
14859  or 
14860 \begin_inset Flex Code
14861 status collapsed
14862
14863 \begin_layout Plain Layout
14864 List_Environment
14865 \end_layout
14866
14867 \end_inset
14868
14869 ).
14870  
14871 \begin_inset Flex Code
14872 status collapsed
14873
14874 \begin_layout Plain Layout
14875 No_Label
14876 \end_layout
14877
14878 \end_inset
14879
14880  means 
14881 \begin_inset Quotes eld
14882 \end_inset
14883
14884 nothing
14885 \begin_inset Quotes erd
14886 \end_inset
14887
14888 ,
14889  
14890 \begin_inset Flex Code
14891 status collapsed
14892
14893 \begin_layout Plain Layout
14894 Box
14895 \end_layout
14896
14897 \end_inset
14898
14899  (resp.
14900 \begin_inset space \space{}
14901 \end_inset
14902
14903
14904 \begin_inset Flex Code
14905 status collapsed
14906
14907 \begin_layout Plain Layout
14908 Filled_Box
14909 \end_layout
14910
14911 \end_inset
14912
14913 ) is a white (resp.
14914 \begin_inset space ~
14915 \end_inset
14916
14917 black) square suitable for end of proof markers,
14918  
14919 \begin_inset Flex Code
14920 status collapsed
14921
14922 \begin_layout Plain Layout
14923 Static
14924 \end_layout
14925
14926 \end_inset
14927
14928  is an explicit text string.
14929 \end_layout
14930
14931 \begin_layout Description
14932 \begin_inset Flex Code
14933 status collapsed
14934
14935 \begin_layout Plain Layout
14936 EndLabelString
14937 \end_layout
14938
14939 \end_inset
14940
14941  [
14942 \begin_inset Flex Code
14943 status collapsed
14944
14945 \begin_layout Plain Layout
14946 string=""
14947 \end_layout
14948
14949 \end_inset
14950
14951 ] The string used for a label with a 
14952 \begin_inset Flex Code
14953 status collapsed
14954
14955 \begin_layout Plain Layout
14956 Static
14957 \end_layout
14958
14959 \end_inset
14960
14961
14962 \begin_inset Newline newline
14963 \end_inset
14964
14965
14966 \begin_inset Flex Code
14967 status collapsed
14968
14969 \begin_layout Plain Layout
14970 EndLabelType
14971 \end_layout
14972
14973 \end_inset
14974
14975 .
14976  
14977 \end_layout
14978
14979 \begin_layout Description
14980 \begin_inset Flex Code
14981 status collapsed
14982
14983 \begin_layout Plain Layout
14984 Font
14985 \end_layout
14986
14987 \end_inset
14988
14989  The font used for both the text body 
14990 \emph on
14991 and
14992 \emph default
14993  the label.
14994  See 
14995 \begin_inset CommandInset ref
14996 LatexCommand ref
14997 reference "subsec:Font-description"
14998 nolink "false"
14999
15000 \end_inset
15001
15002 .
15003  Note that defining this font automatically defines the 
15004 \begin_inset Flex Code
15005 status collapsed
15006
15007 \begin_layout Plain Layout
15008 LabelFont
15009 \end_layout
15010
15011 \end_inset
15012
15013  to the same value.
15014  So you should define this one first if you also want to define 
15015 \begin_inset Flex Code
15016 status collapsed
15017
15018 \begin_layout Plain Layout
15019 LabelFont
15020 \end_layout
15021
15022 \end_inset
15023
15024 .
15025 \end_layout
15026
15027 \begin_layout Description
15028 \begin_inset Flex Code
15029 status collapsed
15030
15031 \begin_layout Plain Layout
15032 ForceLocal
15033 \end_layout
15034
15035 \end_inset
15036
15037  [
15038 \begin_inset Flex Code
15039 status collapsed
15040
15041 \begin_layout Plain Layout
15042 int=0
15043 \end_layout
15044
15045 \end_inset
15046
15047 ] Used for backporting new styles to stable \SpecialChar LyX
15048  versions.
15049  The first stable version that supports this tag is \SpecialChar LyX
15050  2.1.0.
15051  The argument is a number which may either be 0,
15052  -1 or any value greater than zero.
15053  If the 
15054 \begin_inset Flex Code
15055 status collapsed
15056
15057 \begin_layout Plain Layout
15058 ForceLocal
15059 \end_layout
15060
15061 \end_inset
15062
15063  flag of a style is greater than zero,
15064  it will always be written to the document header.
15065  If a .lyx file is read,
15066  the style definitions from the document header are added to the document class.
15067  Therefore even older \SpecialChar LyX
15068  versions can handle the style.
15069  The argument of 
15070 \begin_inset Flex Code
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074 ForceLocal
15075 \end_layout
15076
15077 \end_inset
15078
15079  is a version number:
15080  if the style is read,
15081  and the version number is less than the version number of the already existing style in the document class,
15082  the new style is ignored.
15083  If the version number is greater,
15084  the new style replaces the existing style.
15085  A value of -1 means an infinite version number,
15086  i.
15087 \begin_inset space \thinspace{}
15088 \end_inset
15089
15090 e.
15091 \begin_inset space \space{}
15092 \end_inset
15093
15094 the style is always used.
15095 \end_layout
15096
15097 \begin_layout Description
15098 \begin_inset Flex Code
15099 status collapsed
15100
15101 \begin_layout Plain Layout
15102 FreeSpacing
15103 \end_layout
15104
15105 \end_inset
15106
15107  [
15108 \begin_inset Flex Code
15109 status collapsed
15110
15111 \begin_layout Plain Layout
15112
15113 \emph on
15114 0
15115 \end_layout
15116
15117 \end_inset
15118
15119 ,
15120 \begin_inset space \thinspace{}
15121 \end_inset
15122
15123
15124 \begin_inset Flex Code
15125 status collapsed
15126
15127 \begin_layout Plain Layout
15128 1
15129 \end_layout
15130
15131 \end_inset
15132
15133 ] Usually \SpecialChar LyX
15134  does not allow you to insert more than one space between words,
15135  since a space is considered as the separation between two words,
15136  not a character or symbol of its own.
15137  This is a very fine thing but sometimes annoying,
15138  for example,
15139  when typing program code or plain \SpecialChar LaTeX
15140  code.
15141  For this reason,
15142  
15143 \begin_inset Flex Code
15144 status collapsed
15145
15146 \begin_layout Plain Layout
15147 FreeSpacing
15148 \end_layout
15149
15150 \end_inset
15151
15152  can be enabled.
15153  
15154 \change_deleted -495245474 1550490105
15155 Note that 
15156 \change_unchanged
15157 \SpecialChar LyX
15158  will create 
15159 \change_deleted 177693 1654669077
15160 protected
15161 \change_inserted 177693 1654669079
15162 non-breaking
15163 \change_unchanged
15164  
15165 \change_deleted 177693 1654669082
15166 blanks
15167 \change_inserted 177693 1654669082
15168 spaces
15169 \change_unchanged
15170  for the additional blanks when
15171 \change_deleted 34634807 1619626461
15172  in
15173 \change_unchanged
15174  
15175 \change_inserted -495245474 1550490096
15176
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181
15182 \change_inserted -495245474 1550490089
15183 Passthru 1
15184 \change_unchanged
15185
15186 \end_layout
15187
15188 \end_inset
15189
15190  is not specified.
15191 \change_deleted -495245474 1550490116
15192 another mode than \SpecialChar LaTeX
15193 -mode.
15194
15195 \change_inserted -495245474 1550247760
15196  Note that 
15197 \begin_inset Flex Code
15198 status collapsed
15199
15200 \begin_layout Plain Layout
15201
15202 \change_inserted -495245474 1550247736
15203 FreeSpacing
15204 \change_unchanged
15205
15206 \end_layout
15207
15208 \end_inset
15209
15210  implies 
15211 \begin_inset Flex Code
15212 status collapsed
15213
15214 \begin_layout Plain Layout
15215
15216 \change_inserted -495245474 1550247755
15217 KeepEmpty
15218 \change_unchanged
15219
15220 \end_layout
15221
15222 \end_inset
15223
15224 .
15225 \change_unchanged
15226
15227 \end_layout
15228
15229 \begin_layout Description
15230 \begin_inset Flex Code
15231 status collapsed
15232
15233 \begin_layout Plain Layout
15234 HTML*
15235 \end_layout
15236
15237 \end_inset
15238
15239  These tags are used with XHTML output.
15240  See 
15241 \begin_inset CommandInset ref
15242 LatexCommand ref
15243 reference "subsec:Paragraph-Style-XHTML"
15244 nolink "false"
15245
15246 \end_inset
15247
15248 .
15249 \end_layout
15250
15251 \begin_layout Description
15252
15253 \change_deleted 1075283030 1672014684
15254 \begin_inset Flex Code
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258 InnerTag
15259 \end_layout
15260
15261 \end_inset
15262
15263  [FIXME] (Used only with XML-type formats.)
15264 \change_unchanged
15265
15266 \end_layout
15267
15268 \begin_layout Description
15269 \begin_inset Flex Code
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 InPreamble
15274 \end_layout
15275
15276 \end_inset
15277
15278  [
15279 \begin_inset Flex Code
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283
15284 \emph on
15285 0
15286 \end_layout
15287
15288 \end_inset
15289
15290 ,
15291 \begin_inset space \thinspace{}
15292 \end_inset
15293
15294
15295 \begin_inset Flex Code
15296 status collapsed
15297
15298 \begin_layout Plain Layout
15299 1
15300 \end_layout
15301
15302 \end_inset
15303
15304 ] If 
15305 \begin_inset Flex Code
15306 status collapsed
15307
15308 \begin_layout Plain Layout
15309 1
15310 \end_layout
15311
15312 \end_inset
15313
15314 ,
15315  marks the style as to be included in the document preamble and not in the document body.
15316  This is useful for document classes that want such information as the title and author to appear in the preamble.
15317  Note that this works only for styles for which the 
15318 \begin_inset Flex Code
15319 status collapsed
15320
15321 \begin_layout Plain Layout
15322 LatexType
15323 \end_layout
15324
15325 \end_inset
15326
15327  is 
15328 \begin_inset Flex Code
15329 status collapsed
15330
15331 \begin_layout Plain Layout
15332 Command
15333 \end_layout
15334
15335 \end_inset
15336
15337  or 
15338 \begin_inset Flex Code
15339 status collapsed
15340
15341 \begin_layout Plain Layout
15342 Paragraph
15343 \end_layout
15344
15345 \end_inset
15346
15347 .
15348 \end_layout
15349
15350 \begin_layout Description
15351 \begin_inset Flex Code
15352 status collapsed
15353
15354 \begin_layout Plain Layout
15355 InTitle
15356 \end_layout
15357
15358 \end_inset
15359
15360  [
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365
15366 \emph on
15367 0
15368 \end_layout
15369
15370 \end_inset
15371
15372 ,
15373 \begin_inset space \thinspace{}
15374 \end_inset
15375
15376
15377 \begin_inset Flex Code
15378 status collapsed
15379
15380 \begin_layout Plain Layout
15381 1
15382 \end_layout
15383
15384 \end_inset
15385
15386 ] If 
15387 \begin_inset Flex Code
15388 status collapsed
15389
15390 \begin_layout Plain Layout
15391 1
15392 \end_layout
15393
15394 \end_inset
15395
15396 ,
15397  marks the style as being part of a title block (see also the 
15398 \begin_inset Flex Code
15399 status collapsed
15400
15401 \begin_layout Plain Layout
15402 TitleLatexType
15403 \end_layout
15404
15405 \end_inset
15406
15407  and 
15408 \begin_inset Flex Code
15409 status collapsed
15410
15411 \begin_layout Plain Layout
15412 TitleLatexName
15413 \end_layout
15414
15415 \end_inset
15416
15417  global entries).
15418 \end_layout
15419
15420 \begin_layout Description
15421 \begin_inset Flex Code
15422 status collapsed
15423
15424 \begin_layout Plain Layout
15425 IsAutoNestedBy
15426 \end_layout
15427
15428 \end_inset
15429
15430  Includes a comma-separated list of layouts after which this one should be nested.
15431  Only makes sense with regard to nestable layouts (such as environments).
15432  Must be ended by 
15433 \begin_inset Quotes eld
15434 \end_inset
15435
15436
15437 \begin_inset Flex Code
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441 EndIsAutoNestedBy
15442 \end_layout
15443
15444 \end_inset
15445
15446
15447 \begin_inset Quotes erd
15448 \end_inset
15449
15450 .
15451  See also 
15452 \begin_inset Flex Code
15453 status collapsed
15454
15455 \begin_layout Plain Layout
15456 AutoNests
15457 \end_layout
15458
15459 \end_inset
15460
15461 .
15462 \end_layout
15463
15464 \begin_layout Description
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 IsTocCaption
15470 \end_layout
15471
15472 \end_inset
15473
15474  [
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479
15480 \emph on
15481 0
15482 \end_layout
15483
15484 \end_inset
15485
15486 ,
15487 \begin_inset space \thinspace{}
15488 \end_inset
15489
15490
15491 \begin_inset Flex Code
15492 status collapsed
15493
15494 \begin_layout Plain Layout
15495 1
15496 \end_layout
15497
15498 \end_inset
15499
15500 ] If this is set to 1 and AddToToc is enabled,
15501  the paragraph adds a summary of its contents in its item in the table of contents.
15502  Otherwise,
15503  only the label,
15504  if it exists,
15505  appears.
15506 \end_layout
15507
15508 \begin_layout Description
15509 \begin_inset Flex Code
15510 status collapsed
15511
15512 \begin_layout Plain Layout
15513 ItemCommand
15514 \end_layout
15515
15516 \end_inset
15517
15518  [
15519 \begin_inset Flex Code
15520 status collapsed
15521
15522 \begin_layout Plain Layout
15523 string="item"
15524 \end_layout
15525
15526 \end_inset
15527
15528 ] The \SpecialChar LaTeX
15529  command sequence declaring an item in a list.
15530  The command is to be defined without the preceding backslash (the default is 
15531 \begin_inset Quotes eld
15532 \end_inset
15533
15534 item
15535 \begin_inset Quotes erd
15536 \end_inset
15537
15538 ,
15539  resulting in 
15540 \begin_inset Flex Code
15541 status collapsed
15542
15543 \begin_layout Plain Layout
15544
15545 \backslash
15546 item
15547 \end_layout
15548
15549 \end_inset
15550
15551  in the \SpecialChar LaTeX
15552  output).
15553 \end_layout
15554
15555 \begin_layout Description
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 ItemSep
15561 \end_layout
15562
15563 \end_inset
15564
15565  [
15566 \begin_inset Flex Code
15567 status collapsed
15568
15569 \begin_layout Plain Layout
15570 float=0
15571 \end_layout
15572
15573 \end_inset
15574
15575 ] This provides extra space between paragraphs that have the same style.
15576  If you put other styles into an environment,
15577  each is separated with the environment's 
15578 \begin_inset Flex Code
15579 status collapsed
15580
15581 \begin_layout Plain Layout
15582 ParSep
15583 \end_layout
15584
15585 \end_inset
15586
15587 .
15588  But the whole items of the environment are additionally separated with this 
15589 \begin_inset Flex Code
15590 status collapsed
15591
15592 \begin_layout Plain Layout
15593 ItemSep
15594 \end_layout
15595
15596 \end_inset
15597
15598 .
15599  Note that this is a
15600 \emph on
15601  multiplier.
15602 \end_layout
15603
15604 \begin_layout Description
15605
15606 \change_deleted 1075283030 1672014680
15607 \begin_inset Flex Code
15608 status collapsed
15609
15610 \begin_layout Plain Layout
15611 ItemTag
15612 \end_layout
15613
15614 \end_inset
15615
15616  [FIXME] (Used only with XML-type formats.)
15617 \change_unchanged
15618
15619 \end_layout
15620
15621 \begin_layout Description
15622 \begin_inset Flex Code
15623 status collapsed
15624
15625 \begin_layout Plain Layout
15626 KeepEmpty
15627 \end_layout
15628
15629 \end_inset
15630
15631  [
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636
15637 \emph on
15638 0
15639 \end_layout
15640
15641 \end_inset
15642
15643 ,
15644 \begin_inset space \thinspace{}
15645 \end_inset
15646
15647
15648 \begin_inset Flex Code
15649 status collapsed
15650
15651 \begin_layout Plain Layout
15652 1
15653 \end_layout
15654
15655 \end_inset
15656
15657 ] Usually \SpecialChar LyX
15658  does not allow you to leave a paragraph empty,
15659  since it would lead to empty \SpecialChar LaTeX
15660  output.
15661  There are some cases where this could be desirable however:
15662  in a letter template,
15663  the required fields can be provided as empty fields,
15664  so that people do not forget them;
15665  in some special classes,
15666  a style can be used as some kind of break,
15667  which does not contain actual text.
15668 \end_layout
15669
15670 \begin_layout Description
15671 \begin_inset Flex Code
15672 status collapsed
15673
15674 \begin_layout Plain Layout
15675 LabelBottomsep
15676 \end_layout
15677
15678 \end_inset
15679
15680  [
15681 \begin_inset Flex Code
15682 status collapsed
15683
15684 \begin_layout Plain Layout
15685 float=0
15686 \end_layout
15687
15688 \end_inset
15689
15690 ] The vertical space between the label and the text body.
15691  Only used for labels that are above the text body (
15692 \begin_inset Flex Code
15693 status collapsed
15694
15695 \begin_layout Plain Layout
15696 Top_Environment
15697 \end_layout
15698
15699 \end_inset
15700
15701  and
15702 \begin_inset Newline newline
15703 \end_inset
15704
15705
15706 \begin_inset Flex Code
15707 status collapsed
15708
15709 \begin_layout Plain Layout
15710 Centered_Top_Environment
15711 \end_layout
15712
15713 \end_inset
15714
15715 ).
15716 \end_layout
15717
15718 \begin_layout Description
15719 \begin_inset Flex Code
15720 status collapsed
15721
15722 \begin_layout Plain Layout
15723 LabelCounter
15724 \end_layout
15725
15726 \end_inset
15727
15728  [
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733 string=""
15734 \end_layout
15735
15736 \end_inset
15737
15738 ] The name of the counter for automatic numbering.
15739  In order to have the counter appear with your label,
15740  you will need to reference it in the 
15741 \begin_inset Flex Code
15742 status collapsed
15743
15744 \begin_layout Plain Layout
15745
15746 \family typewriter
15747 LabelString
15748 \end_layout
15749
15750 \end_inset
15751
15752 .
15753  This will work with 
15754 \begin_inset Flex Code
15755 status collapsed
15756
15757 \begin_layout Plain Layout
15758 LabelType
15759 \end_layout
15760
15761 \end_inset
15762
15763 s,
15764  
15765 \begin_inset Flex Code
15766 status collapsed
15767
15768 \begin_layout Plain Layout
15769 Static
15770 \end_layout
15771
15772 \end_inset
15773
15774 ,
15775  
15776 \begin_inset Flex Code
15777 status collapsed
15778
15779 \begin_layout Plain Layout
15780 Above
15781 \end_layout
15782
15783 \end_inset
15784
15785  and 
15786 \begin_inset Flex Code
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790 Centered
15791 \end_layout
15792
15793 \end_inset
15794
15795 ,
15796  at least.
15797 \begin_inset Newline newline
15798 \end_inset
15799
15800 This 
15801 \emph on
15802 may
15803 \emph default
15804  also be given if 
15805 \begin_inset Flex Code
15806 status collapsed
15807
15808 \begin_layout Plain Layout
15809 LabelType
15810 \end_layout
15811
15812 \end_inset
15813
15814  is 
15815 \begin_inset Flex Code
15816 status collapsed
15817
15818 \begin_layout Plain Layout
15819 Enumerate
15820 \end_layout
15821
15822 \end_inset
15823
15824 ,
15825  though this case is a bit complicated.
15826  Suppose you declare 
15827 \begin_inset Quotes eld
15828 \end_inset
15829
15830
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 LabelCounter myenum
15836 \end_layout
15837
15838 \end_inset
15839
15840
15841 \begin_inset Quotes erd
15842 \end_inset
15843
15844 .
15845  Then the actual counters used are 
15846 \begin_inset Flex Code
15847 status collapsed
15848
15849 \begin_layout Plain Layout
15850 myenumi
15851 \end_layout
15852
15853 \end_inset
15854
15855 ,
15856  
15857 \begin_inset Flex Code
15858 status collapsed
15859
15860 \begin_layout Plain Layout
15861 myenumii
15862 \end_layout
15863
15864 \end_inset
15865
15866 ,
15867  
15868 \begin_inset Flex Code
15869 status collapsed
15870
15871 \begin_layout Plain Layout
15872 myenumiii
15873 \end_layout
15874
15875 \end_inset
15876
15877  and 
15878 \begin_inset Flex Code
15879 status collapsed
15880
15881 \begin_layout Plain Layout
15882 myenumiv
15883 \end_layout
15884
15885 \end_inset
15886
15887 ,
15888  much as in \SpecialChar LaTeX
15889 .
15890  These counters must all be declared separately.
15891 \begin_inset Newline newline
15892 \end_inset
15893
15894 See 
15895 \begin_inset CommandInset ref
15896 LatexCommand ref
15897 reference "subsec:Counters"
15898 nolink "false"
15899
15900 \end_inset
15901
15902  for details on counters.
15903 \end_layout
15904
15905 \begin_layout Description
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910 LabelFont
15911 \end_layout
15912
15913 \end_inset
15914
15915  The font used for the label.
15916  See 
15917 \begin_inset CommandInset ref
15918 LatexCommand ref
15919 reference "subsec:Font-description"
15920 nolink "false"
15921
15922 \end_inset
15923
15924 .
15925 \end_layout
15926
15927 \begin_layout Description
15928 \begin_inset Flex Code
15929 status collapsed
15930
15931 \begin_layout Plain Layout
15932 LabelIndent
15933 \end_layout
15934
15935 \end_inset
15936
15937  [
15938 \begin_inset Flex Code
15939 status collapsed
15940
15941 \begin_layout Plain Layout
15942 string=""
15943 \end_layout
15944
15945 \end_inset
15946
15947 ] Text that indicates how far a label should be indented.
15948 \end_layout
15949
15950 \begin_layout Description
15951 \begin_inset Flex Code
15952 status collapsed
15953
15954 \begin_layout Plain Layout
15955 LabelSep
15956 \end_layout
15957
15958 \end_inset
15959
15960  [
15961 \begin_inset Flex Code
15962 status collapsed
15963
15964 \begin_layout Plain Layout
15965 string=""
15966 \end_layout
15967
15968 \end_inset
15969
15970 ] Text that indicates the amount of horizontal space between the label and the text body.
15971  Only used for labels that are not above the text body.
15972 \end_layout
15973
15974 \begin_layout Description
15975 \begin_inset Flex Code
15976 status collapsed
15977
15978 \begin_layout Plain Layout
15979 LabelString
15980 \end_layout
15981
15982 \end_inset
15983
15984  [
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 string=""
15990 \end_layout
15991
15992 \end_inset
15993
15994 ] The string used for the label.
15995  When 
15996 \begin_inset Flex Code
15997 status collapsed
15998
15999 \begin_layout Plain Layout
16000 LabelCounter
16001 \end_layout
16002
16003 \end_inset
16004
16005  is set,
16006  this string can be contain the special formatting commands described in 
16007 \begin_inset CommandInset ref
16008 LatexCommand ref
16009 reference "subsec:Counters"
16010 nolink "false"
16011
16012 \end_inset
16013
16014 .
16015 \end_layout
16016
16017 \begin_layout Description
16018 \begin_inset Flex Code
16019 status collapsed
16020
16021 \begin_layout Plain Layout
16022 LabelStringAppendix
16023 \end_layout
16024
16025 \end_inset
16026
16027  [
16028 \begin_inset Flex Code
16029 status collapsed
16030
16031 \begin_layout Plain Layout
16032 string=""
16033 \end_layout
16034
16035 \end_inset
16036
16037 ] This is used inside the appendix instead of
16038 \begin_inset Newline newline
16039 \end_inset
16040
16041
16042 \begin_inset Flex Code
16043 status collapsed
16044
16045 \begin_layout Plain Layout
16046 LabelString
16047 \end_layout
16048
16049 \end_inset
16050
16051 .
16052  Note that every 
16053 \begin_inset Flex Code
16054 status collapsed
16055
16056 \begin_layout Plain Layout
16057 LabelString
16058 \end_layout
16059
16060 \end_inset
16061
16062  statement resets
16063 \begin_inset Newline newline
16064 \end_inset
16065
16066
16067 \begin_inset Flex Code
16068 status collapsed
16069
16070 \begin_layout Plain Layout
16071 LabelStringAppendix
16072 \end_layout
16073
16074 \end_inset
16075
16076  too.
16077 \change_deleted 1075283030 1672015070
16078
16079 \end_layout
16080
16081 \begin_layout Description
16082
16083 \change_deleted 1075283030 1672015070
16084 \begin_inset Flex Code
16085 status collapsed
16086
16087 \begin_layout Plain Layout
16088 LabelTag
16089 \end_layout
16090
16091 \end_inset
16092
16093  [FIXME] (Used only with XML-type formats.)
16094 \change_unchanged
16095
16096 \end_layout
16097
16098 \begin_layout Description
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 LabelType
16104 \end_layout
16105
16106 \end_inset
16107
16108  [
16109 \begin_inset Flex Code
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113
16114 \emph on
16115 No_Label
16116 \emph default
16117 ,
16118  Manual,
16119  Static,
16120  Above,
16121  
16122 \begin_inset Newline newline
16123 \end_inset
16124
16125 Centered,
16126  Sensitive,
16127  Enumerate,
16128 \begin_inset Newline newline
16129 \end_inset
16130
16131 Itemize,
16132  Bibliography
16133 \end_layout
16134
16135 \end_inset
16136
16137 ]
16138 \end_layout
16139
16140 \begin_deeper
16141 \begin_layout Description
16142 \begin_inset Flex Code
16143 status collapsed
16144
16145 \begin_layout Plain Layout
16146 Manual
16147 \end_layout
16148
16149 \end_inset
16150
16151  means the label is the very first word (up to the first real blank).
16152  Use 
16153 \change_deleted 177693 1654669087
16154 protected
16155 \change_inserted 177693 1654669089
16156 non-breaking
16157 \change_unchanged
16158  spaces if you want more than one word as the label.
16159  
16160 \end_layout
16161
16162 \begin_layout Description
16163 \begin_inset Flex Code
16164 status collapsed
16165
16166 \begin_layout Plain Layout
16167 Static
16168 \end_layout
16169
16170 \end_inset
16171
16172  means the label is simply what is declared as 
16173 \begin_inset Flex Code
16174 status collapsed
16175
16176 \begin_layout Plain Layout
16177 LabelString
16178 \end_layout
16179
16180 \end_inset
16181
16182 .
16183  This will be displayed 
16184 \begin_inset Quotes eld
16185 \end_inset
16186
16187 inline
16188 \begin_inset Quotes erd
16189 \end_inset
16190
16191 ,
16192  at the beginning of the paragraph.
16193  If the 
16194 \begin_inset Flex Code
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198 LatexType
16199 \end_layout
16200
16201 \end_inset
16202
16203  is 
16204 \begin_inset Flex Code
16205 status collapsed
16206
16207 \begin_layout Plain Layout
16208 Environment
16209 \end_layout
16210
16211 \end_inset
16212
16213 ,
16214  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
16215 \begin_inset Flex Code
16216 status collapsed
16217
16218 \begin_layout Plain Layout
16219 Style
16220 \end_layout
16221
16222 \end_inset
16223
16224 .
16225 \end_layout
16226
16227 \begin_layout Description
16228 \begin_inset Flex Code
16229 status collapsed
16230
16231 \begin_layout Plain Layout
16232 Above
16233 \end_layout
16234
16235 \end_inset
16236
16237
16238 \begin_inset space ~
16239 \end_inset
16240
16241 and
16242 \begin_inset space ~
16243 \end_inset
16244
16245
16246 \begin_inset Flex Code
16247 status collapsed
16248
16249 \begin_layout Plain Layout
16250 Centered
16251 \end_layout
16252
16253 \end_inset
16254
16255  are special cases of 
16256 \begin_inset Flex Code
16257 status collapsed
16258
16259 \begin_layout Plain Layout
16260 Static
16261 \end_layout
16262
16263 \end_inset
16264
16265 .
16266  The label will be printed above the paragraph either at the beginning of the line or centered.
16267 \end_layout
16268
16269 \begin_layout Description
16270 \begin_inset Flex Code
16271 status collapsed
16272
16273 \begin_layout Plain Layout
16274 Sensitive
16275 \end_layout
16276
16277 \end_inset
16278
16279  is a special case for the caption-labels 
16280 \begin_inset Quotes eld
16281 \end_inset
16282
16283 Figure
16284 \begin_inset Quotes erd
16285 \end_inset
16286
16287  and 
16288 \begin_inset Quotes eld
16289 \end_inset
16290
16291 Table
16292 \begin_inset Quotes erd
16293 \end_inset
16294
16295 .
16296 \begin_inset Newline newline
16297 \end_inset
16298
16299
16300 \begin_inset Flex Code
16301 status collapsed
16302
16303 \begin_layout Plain Layout
16304 Sensitive
16305 \end_layout
16306
16307 \end_inset
16308
16309  means the (hardcoded) label string depends on the kind of float:
16310  It is hardcoded to be `FloatType N',
16311  where N is the value of the counter associated with the float.
16312  For the case that a caption is inserted outside of a float the 
16313 \begin_inset Flex Code
16314 status collapsed
16315
16316 \begin_layout Plain Layout
16317 LabelString
16318 \end_layout
16319
16320 \end_inset
16321
16322  will appear as 
16323 \begin_inset Quotes eld
16324 \end_inset
16325
16326 Senseless!
16327 \begin_inset Quotes erd
16328 \end_inset
16329
16330 .
16331 \end_layout
16332
16333 \begin_layout Description
16334 \begin_inset Flex Code
16335 status collapsed
16336
16337 \begin_layout Plain Layout
16338 Enumerate
16339 \end_layout
16340
16341 \end_inset
16342
16343  produces the usual sort of enumeration labels.
16344  The number type needs to be set in the 
16345 \family sans
16346 Counter
16347 \family default
16348 ,
16349  see 
16350 \begin_inset CommandInset ref
16351 LatexCommand ref
16352 reference "subsec:Counters"
16353 nolink "false"
16354
16355 \end_inset
16356
16357 .
16358 \end_layout
16359
16360 \begin_layout Description
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 Itemize
16366 \end_layout
16367
16368 \end_inset
16369
16370  produces various bullets at the different levels.
16371  The bullet types displayed can be set via 
16372 \begin_inset Flex Noun
16373 status collapsed
16374
16375 \begin_layout Plain Layout
16376 Document\SpecialChar menuseparator
16377 Settings\SpecialChar menuseparator
16378 Bullets
16379 \end_layout
16380
16381 \end_inset
16382
16383 .
16384 \end_layout
16385
16386 \begin_layout Description
16387 \begin_inset Flex Code
16388 status collapsed
16389
16390 \begin_layout Plain Layout
16391 Bibliography
16392 \end_layout
16393
16394 \end_inset
16395
16396  should be used only with 
16397 \begin_inset Flex Code
16398 status collapsed
16399
16400 \begin_layout Plain Layout
16401 LatexType BibEnvironment
16402 \end_layout
16403
16404 \end_inset
16405
16406 .
16407 \end_layout
16408
16409 \end_deeper
16410 \begin_layout Description
16411 \begin_inset Flex Code
16412 status collapsed
16413
16414 \begin_layout Plain Layout
16415 LangPreamble
16416 \end_layout
16417
16418 \end_inset
16419
16420  Note that this will completely override any prior 
16421 \begin_inset Flex Code
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425 LangPreamble
16426 \end_layout
16427
16428 \end_inset
16429
16430  declaration for this style.
16431  Must end with 
16432 \begin_inset Quotes eld
16433 \end_inset
16434
16435
16436 \begin_inset Flex Code
16437 status collapsed
16438
16439 \begin_layout Plain Layout
16440 EndLangPreamble
16441 \end_layout
16442
16443 \end_inset
16444
16445
16446 \begin_inset Quotes erd
16447 \end_inset
16448
16449 .
16450  See 
16451 \begin_inset CommandInset ref
16452 LatexCommand ref
16453 reference "subsec:I18n"
16454 nolink "false"
16455
16456 \end_inset
16457
16458  for details on its use.
16459 \end_layout
16460
16461 \begin_layout Description
16462 \begin_inset Flex Code
16463 status collapsed
16464
16465 \begin_layout Plain Layout
16466 LatexName
16467 \end_layout
16468
16469 \end_inset
16470
16471  [
16472 \begin_inset Flex Code
16473 status collapsed
16474
16475 \begin_layout Plain Layout
16476 <name>
16477 \end_layout
16478
16479 \end_inset
16480
16481 ] The name of the corresponding \SpecialChar LaTeX
16482  stuff.
16483  Either the environment or command name.
16484 \end_layout
16485
16486 \begin_layout Description
16487 \begin_inset Flex Code
16488 status collapsed
16489
16490 \begin_layout Plain Layout
16491 LatexParam
16492 \end_layout
16493
16494 \end_inset
16495
16496  [
16497 \begin_inset Flex Code
16498 status collapsed
16499
16500 \begin_layout Plain Layout
16501 <parameter>
16502 \end_layout
16503
16504 \end_inset
16505
16506 ] An optional parameter for the corresponding 
16507 \begin_inset Flex Code
16508 status collapsed
16509
16510 \begin_layout Plain Layout
16511 LatexName
16512 \end_layout
16513
16514 \end_inset
16515
16516  stuff.
16517  This parameter cannot be changed from within \SpecialChar LyX
16518  (use 
16519 \begin_inset Flex Code
16520 status collapsed
16521
16522 \begin_layout Plain Layout
16523 Argument
16524 \end_layout
16525
16526 \end_inset
16527
16528  for customizable parameters).
16529  This will be output as is after all \SpecialChar LaTeX
16530  
16531 \begin_inset Flex Code
16532 status collapsed
16533
16534 \begin_layout Plain Layout
16535 Argument
16536 \end_layout
16537
16538 \end_inset
16539
16540 s.
16541 \end_layout
16542
16543 \begin_layout Description
16544 \begin_inset Flex Code
16545 status collapsed
16546
16547 \begin_layout Plain Layout
16548 LatexType
16549 \end_layout
16550
16551 \end_inset
16552
16553  [
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558
16559 \emph on
16560 Paragraph
16561 \emph default
16562 ,
16563  Command,
16564  Environment,
16565  Item_Environment,
16566 \begin_inset Newline newline
16567 \end_inset
16568
16569 List_Environment,
16570  Bib_Environment
16571 \end_layout
16572
16573 \end_inset
16574
16575 ] How the style should be translated into \SpecialChar LaTeX
16576 .
16577 \begin_inset Foot
16578 status collapsed
16579
16580 \begin_layout Plain Layout
16581 \begin_inset Flex Code
16582 status collapsed
16583
16584 \begin_layout Plain Layout
16585 LatexType
16586 \end_layout
16587
16588 \end_inset
16589
16590  is perhaps a bit misleading,
16591  since these rules apply to SGML classes,
16592  too.
16593  Visit the SGML class files for specific examples.
16594 \end_layout
16595
16596 \end_inset
16597
16598
16599 \end_layout
16600
16601 \begin_deeper
16602 \begin_layout Description
16603 \begin_inset Flex Code
16604 status collapsed
16605
16606 \begin_layout Plain Layout
16607 Paragraph
16608 \end_layout
16609
16610 \end_inset
16611
16612  means nothing special.
16613 \end_layout
16614
16615 \begin_layout Description
16616 \begin_inset Flex Code
16617 status collapsed
16618
16619 \begin_layout Plain Layout
16620 Command
16621 \end_layout
16622
16623 \end_inset
16624
16625  means 
16626 \begin_inset Flex Code
16627 status collapsed
16628
16629 \begin_layout Plain Layout
16630
16631 \backslash
16632
16633 \emph on
16634 LatexName
16635 \emph default
16636 {\SpecialChar ldots
16637 }
16638 \end_layout
16639
16640 \end_inset
16641
16642 .
16643 \end_layout
16644
16645 \begin_layout Description
16646 \begin_inset Flex Code
16647 status collapsed
16648
16649 \begin_layout Plain Layout
16650 Environment
16651 \end_layout
16652
16653 \end_inset
16654
16655  means 
16656 \begin_inset Flex Code
16657 status collapsed
16658
16659 \begin_layout Plain Layout
16660
16661 \backslash
16662 begin{
16663 \emph on
16664 LatexName
16665 \emph default
16666 }\SpecialChar ldots
16667
16668 \backslash
16669 end{
16670 \emph on
16671 LatexName
16672 \emph default
16673 }
16674 \end_layout
16675
16676 \end_inset
16677
16678 .
16679  
16680 \end_layout
16681
16682 \begin_layout Description
16683 \begin_inset Flex Code
16684 status collapsed
16685
16686 \begin_layout Plain Layout
16687 Item_Environment
16688 \end_layout
16689
16690 \end_inset
16691
16692  is the same as 
16693 \begin_inset Flex Code
16694 status collapsed
16695
16696 \begin_layout Plain Layout
16697 Environment
16698 \end_layout
16699
16700 \end_inset
16701
16702 ,
16703  except that an 
16704 \begin_inset Flex Code
16705 status collapsed
16706
16707 \begin_layout Plain Layout
16708
16709 \backslash
16710 item
16711 \end_layout
16712
16713 \end_inset
16714
16715  is generated for each paragraph of this environment.
16716  
16717 \end_layout
16718
16719 \begin_layout Description
16720 \begin_inset Flex Code
16721 status collapsed
16722
16723 \begin_layout Plain Layout
16724 List_Environment
16725 \end_layout
16726
16727 \end_inset
16728
16729  is the same as 
16730 \begin_inset Flex Code
16731 status collapsed
16732
16733 \begin_layout Plain Layout
16734 Item_Environment
16735 \end_layout
16736
16737 \end_inset
16738
16739 ,
16740  except that
16741 \begin_inset Newline newline
16742 \end_inset
16743
16744
16745 \begin_inset Flex Code
16746 status collapsed
16747
16748 \begin_layout Plain Layout
16749 LabelWidthString
16750 \end_layout
16751
16752 \end_inset
16753
16754  is passed as an argument to the environment.
16755 \begin_inset Newline newline
16756 \end_inset
16757
16758
16759 \begin_inset Flex Code
16760 status collapsed
16761
16762 \begin_layout Plain Layout
16763 LabelWidthString
16764 \end_layout
16765
16766 \end_inset
16767
16768  can be defined in the 
16769 \begin_inset Flex Noun
16770 status collapsed
16771
16772 \begin_layout Plain Layout
16773 Edit\SpecialChar menuseparator
16774 Paragraph
16775 \begin_inset space ~
16776 \end_inset
16777
16778 settings
16779 \end_layout
16780
16781 \end_inset
16782
16783  dialog.
16784 \end_layout
16785
16786 \begin_layout Description
16787 \begin_inset Flex Code
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791 Bib_Environment
16792 \end_layout
16793
16794 \end_inset
16795
16796  is like 
16797 \begin_inset Flex Code
16798 status collapsed
16799
16800 \begin_layout Plain Layout
16801 Environment
16802 \end_layout
16803
16804 \end_inset
16805
16806  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
16807 \begin_inset Newline newline
16808 \end_inset
16809
16810
16811 \begin_inset Flex Code
16812 status collapsed
16813
16814 \begin_layout Plain Layout
16815
16816 \backslash
16817 begin{thebibliography}{99}
16818 \end_layout
16819
16820 \end_inset
16821
16822 .
16823  It is therefore only useful for bibliography environments.
16824  The default longest label 
16825 \begin_inset Quotes eld
16826 \end_inset
16827
16828 99
16829 \begin_inset Quotes erd
16830 \end_inset
16831
16832  can be changed by the user in the paragraph settings of a bibliography item.
16833 \end_layout
16834
16835 \begin_layout Standard
16836 Putting the last few things together,
16837  the \SpecialChar LaTeX
16838  output will be either:
16839  
16840 \end_layout
16841
16842 \begin_layout LyX-Code
16843
16844 \backslash
16845 LatexName[LatexParam]{\SpecialChar ldots
16846 }
16847 \end_layout
16848
16849 \begin_layout Standard
16850 or:
16851  
16852 \end_layout
16853
16854 \begin_layout LyX-Code
16855
16856 \backslash
16857 begin{LatexName}[LatexParam] \SpecialChar ldots
16858  
16859 \backslash
16860 end{LatexName}.
16861 \end_layout
16862
16863 \begin_layout Standard
16864 depending upon the \SpecialChar LaTeX
16865  type.
16866 \end_layout
16867
16868 \end_deeper
16869 \begin_layout Description
16870 \begin_inset Flex Code
16871 status collapsed
16872
16873 \begin_layout Plain Layout
16874 LeftDelim
16875 \end_layout
16876
16877 \end_inset
16878
16879  [
16880 \begin_inset Flex Code
16881 status collapsed
16882
16883 \begin_layout Plain Layout
16884 string
16885 \end_layout
16886
16887 \end_inset
16888
16889 ] A string that is put at the beginning of the style content.
16890  A line break in the output can be indicated by 
16891 \begin_inset Flex Code
16892 status collapsed
16893
16894 \begin_layout Plain Layout
16895 <br/>
16896 \end_layout
16897
16898 \end_inset
16899
16900 .
16901 \end_layout
16902
16903 \begin_layout Description
16904 \begin_inset Flex Code
16905 status collapsed
16906
16907 \begin_layout Plain Layout
16908 LeftMargin
16909 \end_layout
16910
16911 \end_inset
16912
16913  [
16914 \begin_inset Flex Code
16915 status collapsed
16916
16917 \begin_layout Plain Layout
16918 string=""
16919 \end_layout
16920
16921 \end_inset
16922
16923 ] If you put styles into environments,
16924  the different 
16925 \begin_inset Flex Code
16926 status collapsed
16927
16928 \begin_layout Plain Layout
16929 LeftMargin
16930 \end_layout
16931
16932 \end_inset
16933
16934  are not simply added,
16935  but added with a factor 
16936 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16937 \end_inset
16938
16939 .
16940  Note that this parameter is also used when 
16941 \begin_inset Flex Code
16942 status collapsed
16943
16944 \begin_layout Plain Layout
16945 Margin
16946 \end_layout
16947
16948 \end_inset
16949
16950  is defined as 
16951 \begin_inset Flex Code
16952 status collapsed
16953
16954 \begin_layout Plain Layout
16955 Manual
16956 \end_layout
16957
16958 \end_inset
16959
16960  or 
16961 \begin_inset Flex Code
16962 status collapsed
16963
16964 \begin_layout Plain Layout
16965 Dynamic
16966 \end_layout
16967
16968 \end_inset
16969
16970 .
16971  Then it is added to the manual or dynamic margin.
16972 \begin_inset Newline newline
16973 \end_inset
16974
16975 For example 
16976 \begin_inset Quotes eld
16977 \end_inset
16978
16979
16980 \begin_inset Flex Code
16981 status collapsed
16982
16983 \begin_layout Plain Layout
16984 MM
16985 \end_layout
16986
16987 \end_inset
16988
16989
16990 \begin_inset Quotes erd
16991 \end_inset
16992
16993  means that the paragraph is indented with the width of 
16994 \begin_inset Quotes eld
16995 \end_inset
16996
16997
16998 \begin_inset Flex Code
16999 status collapsed
17000
17001 \begin_layout Plain Layout
17002 MM
17003 \end_layout
17004
17005 \end_inset
17006
17007
17008 \begin_inset Quotes erd
17009 \end_inset
17010
17011  in the normal font.
17012  You can get a negative width by prefixing the string with 
17013 \begin_inset Quotes eld
17014 \end_inset
17015
17016
17017 \begin_inset Flex Code
17018 status collapsed
17019
17020 \begin_layout Plain Layout
17021 -
17022 \end_layout
17023
17024 \end_inset
17025
17026
17027 \begin_inset Quotes erd
17028 \end_inset
17029
17030 .
17031  This way was chosen so that the look is the same with each used screen font.
17032 \end_layout
17033
17034 \begin_layout Description
17035 \begin_inset Flex Code
17036 status collapsed
17037
17038 \begin_layout Plain Layout
17039 Margin
17040 \end_layout
17041
17042 \end_inset
17043
17044  [
17045 \begin_inset Flex Code
17046 status collapsed
17047
17048 \begin_layout Plain Layout
17049
17050 \emph on
17051 Static
17052 \emph default
17053 ,
17054  Manual,
17055  Dynamic,
17056  First_Dynamic,
17057  Right_Address_Box
17058 \end_layout
17059
17060 \end_inset
17061
17062
17063 \begin_inset Newline newline
17064 \end_inset
17065
17066 The kind of margin that the style has on the left side.
17067 \end_layout
17068
17069 \begin_deeper
17070 \begin_layout Description
17071 \begin_inset Flex Code
17072 status collapsed
17073
17074 \begin_layout Plain Layout
17075 Static
17076 \end_layout
17077
17078 \end_inset
17079
17080  just means a fixed margin.
17081 \end_layout
17082
17083 \begin_layout Description
17084 \begin_inset Flex Code
17085 status collapsed
17086
17087 \begin_layout Plain Layout
17088 Manual
17089 \end_layout
17090
17091 \end_inset
17092
17093  means that the left margin depends on the string entered in the 
17094 \begin_inset Flex Noun
17095 status collapsed
17096
17097 \begin_layout Plain Layout
17098 Edit\SpecialChar menuseparator
17099 Paragraph
17100 \begin_inset space ~
17101 \end_inset
17102
17103 Settings
17104 \end_layout
17105
17106 \end_inset
17107
17108  dialog.
17109  This is used to typeset nice lists without tabulators.
17110 \end_layout
17111
17112 \begin_layout Description
17113 \begin_inset Flex Code
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117 Dynamic
17118 \end_layout
17119
17120 \end_inset
17121
17122  means that the margin depends on the size of the label.
17123  This is used for automatic enumerated headlines.
17124  It is obvious that the headline 
17125 \begin_inset Quotes eld
17126 \end_inset
17127
17128 5.4.3.2.1 Very long headline
17129 \begin_inset Quotes erd
17130 \end_inset
17131
17132  must have a wider left margin (as wide as 
17133 \begin_inset Quotes eld
17134 \end_inset
17135
17136 5.4.3.2.1
17137 \begin_inset Quotes erd
17138 \end_inset
17139
17140  plus the space) than 
17141 \begin_inset Quotes eld
17142 \end_inset
17143
17144 3.2 Very long headline
17145 \begin_inset Quotes erd
17146 \end_inset
17147
17148 ,
17149  even if standard 
17150 \begin_inset Quotes eld
17151 \end_inset
17152
17153 word processors
17154 \begin_inset Quotes erd
17155 \end_inset
17156
17157  are not able to do this.
17158 \end_layout
17159
17160 \begin_layout Description
17161 \begin_inset Flex Code
17162 status collapsed
17163
17164 \begin_layout Plain Layout
17165 First_Dynamic
17166 \end_layout
17167
17168 \end_inset
17169
17170  is similar,
17171  but only the very first row of the paragraph is dynamic,
17172  while the others are static;
17173  this is used,
17174  for example,
17175  for descriptions.
17176 \end_layout
17177
17178 \begin_layout Description
17179 \begin_inset Flex Code
17180 status collapsed
17181
17182 \begin_layout Plain Layout
17183 Right_Address_Box
17184 \end_layout
17185
17186 \end_inset
17187
17188  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
17189  This is used to typeset an address on the right edge of the page.
17190 \end_layout
17191
17192 \end_deeper
17193 \begin_layout Description
17194 \begin_inset Flex Code
17195 status collapsed
17196
17197 \begin_layout Plain Layout
17198 NeedProtect
17199 \end_layout
17200
17201 \end_inset
17202
17203  [
17204 \begin_inset Flex Code
17205 status collapsed
17206
17207 \begin_layout Plain Layout
17208
17209 \emph on
17210 0
17211 \end_layout
17212
17213 \end_inset
17214
17215 ,
17216 \begin_inset space \thinspace{}
17217 \end_inset
17218
17219
17220 \begin_inset Flex Code
17221 status collapsed
17222
17223 \begin_layout Plain Layout
17224 1
17225 \end_layout
17226
17227 \end_inset
17228
17229 ] Whether fragile commands in this style should be 
17230 \begin_inset Flex Code
17231 status collapsed
17232
17233 \begin_layout Plain Layout
17234
17235 \backslash
17236 protect
17237 \end_layout
17238
17239 \end_inset
17240
17241 'ed.
17242  (Note:
17243  This is 
17244 \emph on
17245 not
17246 \emph default
17247  whether this command should itself be protected.)
17248 \change_inserted -712698321 1523696949
17249
17250 \end_layout
17251
17252 \begin_layout Description
17253
17254 \change_inserted -712698321 1552395557
17255 \begin_inset Flex Code
17256 status collapsed
17257
17258 \begin_layout Plain Layout
17259
17260 \change_inserted -712698321 1523696950
17261 NeedCProtect
17262 \change_unchanged
17263
17264 \end_layout
17265
17266 \end_inset
17267
17268  [
17269 \begin_inset Flex Code
17270 status collapsed
17271
17272 \begin_layout Plain Layout
17273
17274 \change_inserted -712698321 1523696950
17275
17276 \emph on
17277 0
17278 \change_unchanged
17279
17280 \end_layout
17281
17282 \end_inset
17283
17284 ,
17285 \begin_inset space \thinspace{}
17286 \end_inset
17287
17288
17289 \begin_inset Flex Code
17290 status collapsed
17291
17292 \begin_layout Plain Layout
17293
17294 \change_inserted -712698321 1523696950
17295 1
17296 \change_unchanged
17297
17298 \end_layout
17299
17300 \end_inset
17301
17302 ] This causes macros that contain this layout to be protected with 
17303 \begin_inset Flex Code
17304 status collapsed
17305
17306 \begin_layout Plain Layout
17307
17308 \change_inserted -712698321 1523696950
17309
17310 \backslash
17311 cprotect
17312 \change_unchanged
17313
17314 \end_layout
17315
17316 \end_inset
17317
17318  (cf.
17319  package 
17320 \family sans
17321 cprotect
17322 \family default
17323 ) if necessary and thus allows (some) verbatim stuff in macros.
17324 \end_layout
17325
17326 \begin_layout Description
17327
17328 \change_inserted -712698321 1552395844
17329 \begin_inset Flex Code
17330 status collapsed
17331
17332 \begin_layout Plain Layout
17333
17334 \change_inserted -712698321 1552395561
17335 NeedMBoxProtect
17336 \change_unchanged
17337
17338 \end_layout
17339
17340 \end_inset
17341
17342  [
17343 \begin_inset Flex Code
17344 status collapsed
17345
17346 \begin_layout Plain Layout
17347
17348 \change_inserted -712698321 1552395557
17349
17350 \emph on
17351 0
17352 \change_unchanged
17353
17354 \end_layout
17355
17356 \end_inset
17357
17358 ,
17359 \begin_inset space \thinspace{}
17360 \end_inset
17361
17362
17363 \begin_inset Flex Code
17364 status collapsed
17365
17366 \begin_layout Plain Layout
17367
17368 \change_inserted -712698321 1552395557
17369 1
17370 \change_unchanged
17371
17372 \end_layout
17373
17374 \end_inset
17375
17376 ] Whether specific commands in this style (such as 
17377 \begin_inset Flex Code
17378 status collapsed
17379
17380 \begin_layout Plain Layout
17381
17382 \change_inserted -712698321 1552395655
17383
17384 \backslash
17385 cite
17386 \change_unchanged
17387
17388 \end_layout
17389
17390 \end_inset
17391
17392  and 
17393 \begin_inset Flex Code
17394 status collapsed
17395
17396 \begin_layout Plain Layout
17397
17398 \change_inserted -712698321 1552395661
17399
17400 \backslash
17401 ref
17402 \change_unchanged
17403
17404 \end_layout
17405
17406 \end_inset
17407
17408 ) should be protected in an 
17409 \begin_inset Flex Code
17410 status collapsed
17411
17412 \begin_layout Plain Layout
17413
17414 \change_inserted -712698321 1552395631
17415
17416 \backslash
17417 mbox
17418 \change_unchanged
17419
17420 \end_layout
17421
17422 \end_inset
17423
17424 .
17425  This is particularly needed for styles that draw on 
17426 \family sans
17427 ulem
17428 \family default
17429  or 
17430 \family sans
17431 soul
17432 \family default
17433  commands which parse their content in complex ways.
17434 \change_unchanged
17435
17436 \end_layout
17437
17438 \begin_layout Description
17439 \begin_inset Flex Code
17440 status collapsed
17441
17442 \begin_layout Plain Layout
17443 Newline
17444 \end_layout
17445
17446 \end_inset
17447
17448  [
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 0
17454 \end_layout
17455
17456 \end_inset
17457
17458 ,
17459 \begin_inset space \thinspace{}
17460 \end_inset
17461
17462
17463 \begin_inset Flex Code
17464 status collapsed
17465
17466 \begin_layout Plain Layout
17467
17468 \emph on
17469 1
17470 \end_layout
17471
17472 \end_inset
17473
17474 ] Whether newlines are translated into \SpecialChar LaTeX
17475  newlines (
17476 \begin_inset Flex Code
17477 status collapsed
17478
17479 \begin_layout Plain Layout
17480
17481 \backslash
17482
17483 \backslash
17484
17485 \end_layout
17486
17487 \end_inset
17488
17489 ) or not.
17490  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
17491  editing inside \SpecialChar LyX
17492 .
17493 \end_layout
17494
17495 \begin_layout Description
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500 NextNoIndent
17501 \end_layout
17502
17503 \end_inset
17504
17505  [
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510
17511 \emph on
17512 0
17513 \end_layout
17514
17515 \end_inset
17516
17517 ,
17518 \begin_inset space \thinspace{}
17519 \end_inset
17520
17521
17522 \begin_inset Flex Code
17523 status collapsed
17524
17525 \begin_layout Plain Layout
17526 1
17527 \end_layout
17528
17529 \end_inset
17530
17531 ] If set to true,
17532  and if 
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537 DefaultStyle
17538 \end_layout
17539
17540 \end_inset
17541
17542  (usually 
17543 \begin_inset Flex Code
17544 status collapsed
17545
17546 \begin_layout Plain Layout
17547 Standard
17548 \end_layout
17549
17550 \end_inset
17551
17552 ) paragraphs are being indented,
17553  then the indentation of such a paragraph following one of this type will be suppressed.
17554  (So this will not affect the display of non-default paragraphs.)
17555 \end_layout
17556
17557 \begin_layout Description
17558 \begin_inset Flex Code
17559 status collapsed
17560
17561 \begin_layout Plain Layout
17562 ObsoletedBy
17563 \end_layout
17564
17565 \end_inset
17566
17567  [
17568 \begin_inset Flex Code
17569 status collapsed
17570
17571 \begin_layout Plain Layout
17572 <name>
17573 \end_layout
17574
17575 \end_inset
17576
17577 ] Name of a style that has replaced this style.
17578  This is used to rename a style,
17579  while keeping backward compatibility.
17580 \end_layout
17581
17582 \begin_layout Description
17583 \begin_inset Flex Code
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 ParagraphGroup
17588 \end_layout
17589
17590 \end_inset
17591
17592  [
17593 \begin_inset Flex Code
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597 0
17598 \end_layout
17599
17600 \end_inset
17601
17602 ,
17603 \begin_inset space \thinspace{}
17604 \end_inset
17605
17606
17607 \begin_inset Flex Code
17608 status collapsed
17609
17610 \begin_layout Plain Layout
17611 1
17612 \end_layout
17613
17614 \end_inset
17615
17616 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
17617  This has the effect that the 
17618 \begin_inset Flex Code
17619 status collapsed
17620
17621 \begin_layout Plain Layout
17622 GuiLabel
17623 \end_layout
17624
17625 \end_inset
17626
17627  is only printed once before such a group.
17628  By default,
17629  this is true for 
17630 \begin_inset Flex Code
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634 LaTeXType
17635 \end_layout
17636
17637 \end_inset
17638
17639  
17640 \begin_inset Flex Code
17641 status collapsed
17642
17643 \begin_layout Plain Layout
17644 Environment
17645 \end_layout
17646
17647 \end_inset
17648
17649  and 
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 Bib_Environment
17655 \end_layout
17656
17657 \end_inset
17658
17659  and false for all other types.
17660 \end_layout
17661
17662 \begin_layout Description
17663 \begin_inset Flex Code
17664 status collapsed
17665
17666 \begin_layout Plain Layout
17667 ParbreakIsNewline
17668 \end_layout
17669
17670 \end_inset
17671
17672  [
17673 \begin_inset Flex Code
17674 status collapsed
17675
17676 \begin_layout Plain Layout
17677
17678 \emph on
17679 0
17680 \end_layout
17681
17682 \end_inset
17683
17684 ,
17685 \begin_inset space \thinspace{}
17686 \end_inset
17687
17688
17689 \begin_inset Flex Code
17690 status collapsed
17691
17692 \begin_layout Plain Layout
17693 1
17694 \end_layout
17695
17696 \end_inset
17697
17698 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17699  output,
17700  but only by a line break;
17701  together with 
17702 \begin_inset Flex Code
17703 status collapsed
17704
17705 \begin_layout Plain Layout
17706 PassThru 1
17707 \end_layout
17708
17709 \end_inset
17710
17711 ,
17712  this allows to emulate a plain text editor (like the ERT inset).
17713 \end_layout
17714
17715 \begin_layout Description
17716 \begin_inset Flex Code
17717 status collapsed
17718
17719 \begin_layout Plain Layout
17720 ParIndent
17721 \end_layout
17722
17723 \end_inset
17724
17725  [
17726 \begin_inset Flex Code
17727 status collapsed
17728
17729 \begin_layout Plain Layout
17730 string=""
17731 \end_layout
17732
17733 \end_inset
17734
17735 ] The indent of the very first line of a paragraph.
17736  The
17737 \begin_inset Newline newline
17738 \end_inset
17739
17740
17741 \begin_inset Flex Code
17742 status collapsed
17743
17744 \begin_layout Plain Layout
17745 Parindent
17746 \end_layout
17747
17748 \end_inset
17749
17750  will be fixed for a certain style.
17751  The exception is the default style,
17752  since the indentation for these paragraphs can be prohibited with 
17753 \begin_inset Flex Code
17754 status collapsed
17755
17756 \begin_layout Plain Layout
17757 NextNoIndent
17758 \end_layout
17759
17760 \end_inset
17761
17762 .
17763  Also,
17764  
17765 \begin_inset Flex Code
17766 status collapsed
17767
17768 \begin_layout Plain Layout
17769 Standard
17770 \end_layout
17771
17772 \end_inset
17773
17774  style paragraphs inside environments use the 
17775 \begin_inset Flex Code
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 Parindent
17780 \end_layout
17781
17782 \end_inset
17783
17784  of the environment,
17785  not their native one.
17786  For example,
17787  
17788 \begin_inset Flex Code
17789 status collapsed
17790
17791 \begin_layout Plain Layout
17792 Standard
17793 \end_layout
17794
17795 \end_inset
17796
17797  paragraphs inside an enumeration are not indented.
17798 \end_layout
17799
17800 \begin_layout Description
17801 \begin_inset Flex Code
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 ParSep
17806 \end_layout
17807
17808 \end_inset
17809
17810  [
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 float=0
17816 \end_layout
17817
17818 \end_inset
17819
17820 ] The vertical space between two paragraphs of this style.
17821 \end_layout
17822
17823 \begin_layout Description
17824 \begin_inset Flex Code
17825 status collapsed
17826
17827 \begin_layout Plain Layout
17828 Parskip
17829 \end_layout
17830
17831 \end_inset
17832
17833  [
17834 \begin_inset Flex Code
17835 status collapsed
17836
17837 \begin_layout Plain Layout
17838 float=0
17839 \end_layout
17840
17841 \end_inset
17842
17843 ] \SpecialChar LyX
17844  allows the user to choose either 
17845 \begin_inset Quotes eld
17846 \end_inset
17847
17848 indent
17849 \begin_inset Quotes erd
17850 \end_inset
17851
17852  or 
17853 \begin_inset Quotes eld
17854 \end_inset
17855
17856 skip
17857 \begin_inset Quotes erd
17858 \end_inset
17859
17860  to separate paragraphs.
17861  When 
17862 \begin_inset Quotes eld
17863 \end_inset
17864
17865 indent
17866 \begin_inset Quotes erd
17867 \end_inset
17868
17869  is chosen,
17870  
17871 \begin_inset Flex Code
17872 status collapsed
17873
17874 \begin_layout Plain Layout
17875 Parskip
17876 \end_layout
17877
17878 \end_inset
17879
17880  is ignored.
17881  When 
17882 \begin_inset Quotes eld
17883 \end_inset
17884
17885 skip
17886 \begin_inset Quotes erd
17887 \end_inset
17888
17889  is chosen,
17890  
17891 \begin_inset Flex Code
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895 ParIndent
17896 \end_layout
17897
17898 \end_inset
17899
17900  is ignored and all paragraphs are separated by the 
17901 \begin_inset Flex Code
17902 status collapsed
17903
17904 \begin_layout Plain Layout
17905 Parskip
17906 \end_layout
17907
17908 \end_inset
17909
17910  argument.
17911  The vertical space is calculated with 
17912 \begin_inset Flex Code
17913 status collapsed
17914
17915 \begin_layout Plain Layout
17916 Parskip
17917 \begin_inset space ~
17918 \end_inset
17919
17920 * DefaultHeight
17921 \end_layout
17922
17923 \end_inset
17924
17925  where 
17926 \begin_inset Flex Code
17927 status collapsed
17928
17929 \begin_layout Plain Layout
17930 DefaultHeight
17931 \end_layout
17932
17933 \end_inset
17934
17935  is the height of a row with the normal font.
17936  This way,
17937  the look stays the same with different screen fonts.
17938 \end_layout
17939
17940 \begin_layout Description
17941 \begin_inset Flex Code
17942 status collapsed
17943
17944 \begin_layout Plain Layout
17945 PassThru
17946 \end_layout
17947
17948 \end_inset
17949
17950  [
17951 \begin_inset Flex Code
17952 status collapsed
17953
17954 \begin_layout Plain Layout
17955
17956 \emph on
17957 0
17958 \end_layout
17959
17960 \end_inset
17961
17962 ,
17963 \begin_inset space \thinspace{}
17964 \end_inset
17965
17966
17967 \begin_inset Flex Code
17968 status collapsed
17969
17970 \begin_layout Plain Layout
17971 1
17972 \end_layout
17973
17974 \end_inset
17975
17976 ] Whether the contents of this paragraph should be output in raw form,
17977  meaning without special translations that \SpecialChar LaTeX
17978  would require.
17979 \end_layout
17980
17981 \begin_layout Description
17982 \begin_inset Flex Code
17983 status collapsed
17984
17985 \begin_layout Plain Layout
17986 PassThruChars
17987 \end_layout
17988
17989 \end_inset
17990
17991  [
17992 \begin_inset Flex Code
17993 status collapsed
17994
17995 \begin_layout Plain Layout
17996 string
17997 \end_layout
17998
17999 \end_inset
18000
18001 ]
18002 \family typewriter
18003  
18004 \family default
18005 Defines individual characters that should be output in raw form,
18006  meaning without special translations that \SpecialChar LaTeX
18007  would require.
18008 \end_layout
18009
18010 \begin_layout Description
18011 \begin_inset Flex Code
18012 status collapsed
18013
18014 \begin_layout Plain Layout
18015 Preamble
18016 \end_layout
18017
18018 \end_inset
18019
18020  Information to be included in the \SpecialChar LaTeX
18021  preamble when this style is used.
18022  Used to define macros,
18023  load packages,
18024  etc.,
18025  required by this particular style.
18026  Must end with 
18027 \begin_inset Quotes eld
18028 \end_inset
18029
18030
18031 \begin_inset Flex Code
18032 status collapsed
18033
18034 \begin_layout Plain Layout
18035 EndPreamble
18036 \end_layout
18037
18038 \end_inset
18039
18040
18041 \begin_inset Quotes erd
18042 \end_inset
18043
18044 .
18045 \end_layout
18046
18047 \begin_layout Description
18048 \begin_inset Flex Code
18049 status collapsed
18050
18051 \begin_layout Plain Layout
18052 RefPrefix
18053 \end_layout
18054
18055 \end_inset
18056
18057  [
18058 \begin_inset Flex Code
18059 status collapsed
18060
18061 \begin_layout Plain Layout
18062 string
18063 \end_layout
18064
18065 \end_inset
18066
18067 ] The prefix to use when creating labels referring to paragraphs of this type.
18068  This allows the use of formatted references.
18069 \end_layout
18070
18071 \begin_layout Description
18072 \begin_inset Flex Code
18073 status collapsed
18074
18075 \begin_layout Plain Layout
18076 Requires 
18077 \end_layout
18078
18079 \end_inset
18080
18081  [
18082 \begin_inset Flex Code
18083 status collapsed
18084
18085 \begin_layout Plain Layout
18086 string
18087 \end_layout
18088
18089 \end_inset
18090
18091 ] Whether the style requires the feature 
18092 \begin_inset Flex Code
18093 status collapsed
18094
18095 \begin_layout Plain Layout
18096 string
18097 \end_layout
18098
18099 \end_inset
18100
18101  (see 
18102 \begin_inset CommandInset ref
18103 LatexCommand ref
18104 reference "chap:List-of-functions"
18105 nolink "false"
18106
18107 \end_inset
18108
18109  for the list of features).
18110  If you require a package with specific options,
18111  you can additionally use 
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116 PackageOptions
18117 \end_layout
18118
18119 \end_inset
18120
18121  as a general text class parameter (see 
18122 \begin_inset CommandInset ref
18123 LatexCommand ref
18124 reference "subsec:General-text-class"
18125 nolink "false"
18126
18127 \end_inset
18128
18129 ).
18130 \end_layout
18131
18132 \begin_layout Description
18133 \begin_inset Flex Code
18134 status collapsed
18135
18136 \begin_layout Plain Layout
18137 ResetArgs
18138 \end_layout
18139
18140 \end_inset
18141
18142  [
18143 \begin_inset Flex Code
18144 status collapsed
18145
18146 \begin_layout Plain Layout
18147
18148 \emph on
18149 0
18150 \end_layout
18151
18152 \end_inset
18153
18154 ,
18155 \begin_inset Flex Code
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159 1
18160 \end_layout
18161
18162 \end_inset
18163
18164 ] Resets the \SpecialChar LaTeX
18165  arguments of this style (as defined via the 
18166 \begin_inset Flex Code
18167 status collapsed
18168
18169 \begin_layout Plain Layout
18170 Argument
18171 \end_layout
18172
18173 \end_inset
18174
18175  tag).
18176  This is useful if you have copied a style via 
18177 \begin_inset Flex Code
18178 status collapsed
18179
18180 \begin_layout Plain Layout
18181 CopyStyle
18182 \end_layout
18183
18184 \end_inset
18185
18186 ,
18187  but you do not want to inherit its (required and optional) arguments.
18188 \end_layout
18189
18190 \begin_layout Description
18191 \begin_inset Flex Code
18192 status collapsed
18193
18194 \begin_layout Plain Layout
18195 ResumeCounter
18196 \end_layout
18197
18198 \end_inset
18199
18200  [
18201 \begin_inset Flex Code
18202 status collapsed
18203
18204 \begin_layout Plain Layout
18205
18206 \emph on
18207 0
18208 \end_layout
18209
18210 \end_inset
18211
18212 ,
18213 \begin_inset Flex Code
18214 status collapsed
18215
18216 \begin_layout Plain Layout
18217 1
18218 \end_layout
18219
18220 \end_inset
18221
18222 ] Resumes a counter that is usually reset at each new sequence of layouts.
18223  This is currently only useful when 
18224 \begin_inset Flex Code
18225 status collapsed
18226
18227 \begin_layout Plain Layout
18228 LabelType
18229 \end_layout
18230
18231 \end_inset
18232
18233  is 
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 Enumerate
18239 \end_layout
18240
18241 \end_inset
18242
18243 .
18244 \end_layout
18245
18246 \begin_layout Description
18247 \begin_inset Flex Code
18248 status collapsed
18249
18250 \begin_layout Plain Layout
18251 RightDelim
18252 \end_layout
18253
18254 \end_inset
18255
18256  [
18257 \begin_inset Flex Code
18258 status collapsed
18259
18260 \begin_layout Plain Layout
18261 string
18262 \end_layout
18263
18264 \end_inset
18265
18266 ] A string that is put at the end of the layout content.
18267  A line break in the output can be indicated by 
18268 \begin_inset Flex Code
18269 status collapsed
18270
18271 \begin_layout Plain Layout
18272 <br/>
18273 \end_layout
18274
18275 \end_inset
18276
18277 .
18278 \end_layout
18279
18280 \begin_layout Description
18281 \begin_inset Flex Code
18282 status collapsed
18283
18284 \begin_layout Plain Layout
18285 RightMargin
18286 \end_layout
18287
18288 \end_inset
18289
18290  [
18291 \begin_inset Flex Code
18292 status collapsed
18293
18294 \begin_layout Plain Layout
18295 string=""
18296 \end_layout
18297
18298 \end_inset
18299
18300 ] Similar to 
18301 \begin_inset Flex Code
18302 status collapsed
18303
18304 \begin_layout Plain Layout
18305 LeftMargin
18306 \end_layout
18307
18308 \end_inset
18309
18310 .
18311 \end_layout
18312
18313 \begin_layout Description
18314 \begin_inset Flex Code
18315 status collapsed
18316
18317 \begin_layout Plain Layout
18318 Spacing
18319 \end_layout
18320
18321 \end_inset
18322
18323  [
18324 \begin_inset Flex Code
18325 status collapsed
18326
18327 \begin_layout Plain Layout
18328
18329 \emph on
18330 single
18331 \end_layout
18332
18333 \end_inset
18334
18335 ,
18336  
18337 \begin_inset Flex Code
18338 status collapsed
18339
18340 \begin_layout Plain Layout
18341 onehalf
18342 \end_layout
18343
18344 \end_inset
18345
18346 ,
18347  
18348 \begin_inset Flex Code
18349 status collapsed
18350
18351 \begin_layout Plain Layout
18352 double
18353 \end_layout
18354
18355 \end_inset
18356
18357 ,
18358  
18359 \begin_inset Flex Code
18360 status collapsed
18361
18362 \begin_layout Plain Layout
18363 other
18364 \begin_inset space ~
18365 \end_inset
18366
18367 <value>
18368 \end_layout
18369
18370 \end_inset
18371
18372 ] This defines what the default spacing should be in the style.
18373  The arguments 
18374 \begin_inset Flex Code
18375 status collapsed
18376
18377 \begin_layout Plain Layout
18378 single
18379 \end_layout
18380
18381 \end_inset
18382
18383 ,
18384  
18385 \begin_inset Flex Code
18386 status collapsed
18387
18388 \begin_layout Plain Layout
18389 onehalf
18390 \end_layout
18391
18392 \end_inset
18393
18394  and 
18395 \begin_inset Flex Code
18396 status collapsed
18397
18398 \begin_layout Plain Layout
18399 double
18400 \end_layout
18401
18402 \end_inset
18403
18404  correspond respectively to a multiplier value of 1,
18405  1.25 and 1.667.
18406  If you specify the argument 
18407 \begin_inset Flex Code
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411 other
18412 \end_layout
18413
18414 \end_inset
18415
18416 ,
18417  then you must also provide a value argument which will be the actual multiplier value.
18418  Note that,
18419  contrary to other parameters,
18420  
18421 \begin_inset Flex Code
18422 status collapsed
18423
18424 \begin_layout Plain Layout
18425 Spacing
18426 \end_layout
18427
18428 \end_inset
18429
18430  implies the generation of specific \SpecialChar LaTeX
18431  code,
18432  using the \SpecialChar LaTeX
18433  package 
18434 \family roman
18435
18436 \begin_inset Flex Code
18437 status collapsed
18438
18439 \begin_layout Plain Layout
18440 setspace
18441 \end_layout
18442
18443 \end_inset
18444
18445 .
18446 \end_layout
18447
18448 \begin_layout Description
18449 \begin_inset Flex Code
18450 status collapsed
18451
18452 \begin_layout Plain Layout
18453 Spellcheck
18454 \end_layout
18455
18456 \end_inset
18457
18458  [
18459 \begin_inset Flex Code
18460 status collapsed
18461
18462 \begin_layout Plain Layout
18463 0
18464 \end_layout
18465
18466 \end_inset
18467
18468 ,
18469 \begin_inset space \thinspace{}
18470 \end_inset
18471
18472
18473 \begin_inset Flex Code
18474 status collapsed
18475
18476 \begin_layout Plain Layout
18477
18478 \emph on
18479 1
18480 \end_layout
18481
18482 \end_inset
18483
18484 ] Allow spell-checking paragraphs of this style.
18485  Default is true.
18486 \end_layout
18487
18488 \begin_layout Description
18489 \begin_inset Flex Code
18490 status collapsed
18491
18492 \begin_layout Plain Layout
18493 Step
18494 \change_deleted 731793113 1604355211
18495 Master
18496 \change_inserted 731793113 1604355212
18497 Parent
18498 \change_unchanged
18499 Counter
18500 \end_layout
18501
18502 \end_inset
18503
18504  [
18505 \begin_inset Flex Code
18506 status collapsed
18507
18508 \begin_layout Plain Layout
18509
18510 \emph on
18511 0
18512 \end_layout
18513
18514 \end_inset
18515
18516 ,
18517 \begin_inset Flex Code
18518 status collapsed
18519
18520 \begin_layout Plain Layout
18521 1
18522 \end_layout
18523
18524 \end_inset
18525
18526 ] Steps the 
18527 \change_deleted 731793113 1604355214
18528 master
18529 \change_inserted 731793113 1604355216
18530 parent
18531 \change_unchanged
18532  counter of a given counter at the beginning of a new sequence of layouts.
18533  This is currently only useful when 
18534 \begin_inset Flex Code
18535 status collapsed
18536
18537 \begin_layout Plain Layout
18538 LabelType
18539 \end_layout
18540
18541 \end_inset
18542
18543  is 
18544 \begin_inset Flex Code
18545 status collapsed
18546
18547 \begin_layout Plain Layout
18548 Enumerate
18549 \end_layout
18550
18551 \end_inset
18552
18553 .
18554 \end_layout
18555
18556 \begin_layout Description
18557 \begin_inset Flex Code
18558 status collapsed
18559
18560 \begin_layout Plain Layout
18561 TextFont
18562 \end_layout
18563
18564 \end_inset
18565
18566  The font used for the text body .
18567  See 
18568 \begin_inset CommandInset ref
18569 LatexCommand ref
18570 reference "subsec:Font-description"
18571 nolink "false"
18572
18573 \end_inset
18574
18575 .
18576 \end_layout
18577
18578 \begin_layout Description
18579 \begin_inset Flex Code
18580 status collapsed
18581
18582 \begin_layout Plain Layout
18583 TocLevel
18584 \end_layout
18585
18586 \end_inset
18587
18588
18589 \series medium
18590  [
18591 \begin_inset Flex Code
18592 status collapsed
18593
18594 \begin_layout Plain Layout
18595
18596 \series medium
18597 int=3
18598 \end_layout
18599
18600 \end_inset
18601
18602 ]
18603 \series default
18604  The level of the style in the table of contents.
18605  This is used for automatic numbering of section headings.
18606 \end_layout
18607
18608 \begin_layout Description
18609 \begin_inset Flex Code
18610 status collapsed
18611
18612 \begin_layout Plain Layout
18613 ToggleIndent
18614 \end_layout
18615
18616 \end_inset
18617
18618  [
18619 \emph on
18620
18621 \begin_inset Flex Code
18622 status collapsed
18623
18624 \begin_layout Plain Layout
18625
18626 \emph on
18627 default
18628 \end_layout
18629
18630 \end_inset
18631
18632
18633 \emph default
18634 ,
18635  
18636 \begin_inset Flex Code
18637 status collapsed
18638
18639 \begin_layout Plain Layout
18640 always
18641 \end_layout
18642
18643 \end_inset
18644
18645 ,
18646  
18647 \begin_inset Flex Code
18648 status collapsed
18649
18650 \begin_layout Plain Layout
18651 never
18652 \end_layout
18653
18654 \end_inset
18655
18656 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
18657  If 
18658 \emph on
18659
18660 \begin_inset Flex Code
18661 status collapsed
18662
18663 \begin_layout Plain Layout
18664
18665 \emph off
18666 default
18667 \end_layout
18668
18669 \end_inset
18670
18671
18672 \emph default
18673  is set,
18674  indentation can be toggled if the document settings use 
18675 \begin_inset Quotes eld
18676 \end_inset
18677
18678 indent
18679 \begin_inset Quotes erd
18680 \end_inset
18681
18682  paragraph style,
18683  with 
18684 \begin_inset Flex Code
18685 status collapsed
18686
18687 \begin_layout Plain Layout
18688 always
18689 \end_layout
18690
18691 \end_inset
18692
18693 ,
18694  indentation can always be toggled,
18695  notwithstanding the document settings,
18696  with 
18697 \begin_inset Flex Code
18698 status collapsed
18699
18700 \begin_layout Plain Layout
18701 never
18702 \end_layout
18703
18704 \end_inset
18705
18706 ,
18707  indentation can never be toggled.
18708 \end_layout
18709
18710 \begin_layout Description
18711 \begin_inset Flex Code
18712 status collapsed
18713
18714 \begin_layout Plain Layout
18715 TopSep
18716 \end_layout
18717
18718 \end_inset
18719
18720  [
18721 \begin_inset Flex Code
18722 status collapsed
18723
18724 \begin_layout Plain Layout
18725 float=0
18726 \end_layout
18727
18728 \end_inset
18729
18730 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
18731  If the previous paragraph has another style,
18732  the separations are not simply added,
18733  but the maximum is taken.
18734 \end_layout
18735
18736 \begin_layout Subsection
18737 \begin_inset CommandInset label
18738 LatexCommand label
18739 name "subsec:I18n"
18740
18741 \end_inset
18742
18743 Internationalization of Paragraph Styles
18744 \end_layout
18745
18746 \begin_layout Standard
18747 \SpecialChar LyX
18748  has long supported internationalization of layout information,
18749  but,
18750  until version 2.0,
18751  this applied only to the user interface and not to,
18752  say,
18753  PDF output.
18754  Thus,
18755  French authors were forced to resort to ugly hacks if they wanted `
18756 \lang french
18757 Théorème
18758 \lang english
18759  1' instead of `Theorem 1'.
18760  Thanks to Georg Baum,
18761  that is no longer the case.
18762 \end_layout
18763
18764 \begin_layout Standard
18765 If a 
18766 \begin_inset Flex Code
18767 status collapsed
18768
18769 \begin_layout Plain Layout
18770 Style
18771 \end_layout
18772
18773 \end_inset
18774
18775  defines text that is to appear in the typeset document,
18776  it may use 
18777 \begin_inset Flex Code
18778 status collapsed
18779
18780 \begin_layout Plain Layout
18781 LangPreamble
18782 \end_layout
18783
18784 \end_inset
18785
18786  and 
18787 \begin_inset Flex Code
18788 status collapsed
18789
18790 \begin_layout Plain Layout
18791 BabelPreamble
18792 \end_layout
18793
18794 \end_inset
18795
18796  to support non-English and even multi-language documents correctly.
18797  The following excerpt (from the 
18798 \begin_inset Flex Code
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802 theorems-ams.inc
18803 \end_layout
18804
18805 \end_inset
18806
18807  file) shows how this works:
18808 \end_layout
18809
18810 \begin_layout LyX-Code
18811 Preamble
18812 \end_layout
18813
18814 \begin_deeper
18815 \begin_layout LyX-Code
18816   
18817 \backslash
18818 theoremstyle{remark}
18819 \end_layout
18820
18821 \begin_layout LyX-Code
18822   
18823 \backslash
18824 newtheorem{claim}[thm]{
18825 \backslash
18826 protect
18827 \backslash
18828 claimname}
18829 \end_layout
18830
18831 \begin_layout LyX-Code
18832 EndPreamble
18833 \end_layout
18834
18835 \begin_layout LyX-Code
18836 LangPreamble
18837 \end_layout
18838
18839 \begin_layout LyX-Code
18840   
18841 \backslash
18842 providecommand{
18843 \backslash
18844 claimname}{_(Claim)}
18845 \end_layout
18846
18847 \begin_layout LyX-Code
18848 EndLangPreamble
18849 \end_layout
18850
18851 \begin_layout LyX-Code
18852 BabelPreamble
18853 \end_layout
18854
18855 \begin_layout LyX-Code
18856     
18857 \backslash
18858 addto
18859 \backslash
18860 captions$$lang{
18861 \backslash
18862 renewcommand{
18863 \backslash
18864 claimname}{_(Claim)}}
18865 \end_layout
18866
18867 \begin_layout LyX-Code
18868 EndBabelPreamble
18869 \end_layout
18870
18871 \end_deeper
18872 \begin_layout Standard
18873 In principle,
18874  any legal \SpecialChar LaTeX
18875  may appear in the 
18876 \begin_inset Flex Code
18877 status collapsed
18878
18879 \begin_layout Plain Layout
18880 LangPreamble
18881 \end_layout
18882
18883 \end_inset
18884
18885  and 
18886 \begin_inset Flex Code
18887 status collapsed
18888
18889 \begin_layout Plain Layout
18890 BabelPreamble
18891 \end_layout
18892
18893 \end_inset
18894
18895  tags,
18896  but in practice they will typically look as they do here.
18897  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
18898  command 
18899 \begin_inset Flex Code
18900 status collapsed
18901
18902 \begin_layout Plain Layout
18903
18904 \backslash
18905 claimname
18906 \end_layout
18907
18908 \end_inset
18909
18910  and its use in 
18911 \begin_inset Flex Code
18912 status collapsed
18913
18914 \begin_layout Plain Layout
18915
18916 \backslash
18917 newtheorem
18918 \end_layout
18919
18920 \end_inset
18921
18922 .
18923  
18924 \end_layout
18925
18926 \begin_layout Standard
18927 The 
18928 \begin_inset Flex Code
18929 status collapsed
18930
18931 \begin_layout Plain Layout
18932 LangPreamble
18933 \end_layout
18934
18935 \end_inset
18936
18937  tag provides for internationalization based upon the overall language of the document.
18938  The contents of the tag will be included in the preamble,
18939  just as with the 
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 Preamble
18945 \end_layout
18946
18947 \end_inset
18948
18949  tag.
18950  What makes it special is the use of the 
18951 \begin_inset Quotes eld
18952 \end_inset
18953
18954 function
18955 \begin_inset Quotes erd
18956 \end_inset
18957
18958  
18959 \begin_inset Flex Code
18960 status collapsed
18961
18962 \begin_layout Plain Layout
18963 _()
18964 \end_layout
18965
18966 \end_inset
18967
18968 ,
18969  which will be replaced,
18970  when \SpecialChar LyX
18971  produces \SpecialChar LaTeX
18972  output,
18973  with the translation of its argument into the document language.
18974 \end_layout
18975
18976 \begin_layout Standard
18977 The 
18978 \begin_inset Flex Code
18979 status collapsed
18980
18981 \begin_layout Plain Layout
18982 BabelPreamble
18983 \end_layout
18984
18985 \end_inset
18986
18987  tag is more complex,
18988  since it is meant to provide support for multi-language documents and so offers an interface to the 
18989 \begin_inset Flex Code
18990 status collapsed
18991
18992 \begin_layout Plain Layout
18993 babel
18994 \end_layout
18995
18996 \end_inset
18997
18998  package.
18999  Its contents will be added to the preamble once for each language that appears in the document.
19000  In this case,
19001  the argument to 
19002 \begin_inset Flex Code
19003 status collapsed
19004
19005 \begin_layout Plain Layout
19006 _()
19007 \end_layout
19008
19009 \end_inset
19010
19011  will be replaced with its translation into the language in question;
19012  the expression 
19013 \begin_inset Flex Code
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 $$lang
19018 \end_layout
19019
19020 \end_inset
19021
19022  is replaced by the language name (as used by the babel package).
19023 \end_layout
19024
19025 \begin_layout Standard
19026 A German document that also included a French section would thus have the following in the preamble:
19027 \end_layout
19028
19029 \begin_layout LyX-Code
19030
19031 \backslash
19032 addto
19033 \backslash
19034 captionsfrench{
19035 \backslash
19036 renewcommand{
19037 \backslash
19038 claimname}{Affirmation}}
19039 \begin_inset Newline newline
19040 \end_inset
19041
19042
19043 \backslash
19044 addto
19045 \backslash
19046 captionsngerman{
19047 \backslash
19048 renewcommand{
19049 \backslash
19050 claimname}{Behauptung}}
19051 \begin_inset Newline newline
19052 \end_inset
19053
19054
19055 \backslash
19056 providecommand{
19057 \backslash
19058 claimname}{Behauptung}
19059 \end_layout
19060
19061 \begin_layout Standard
19062 \SpecialChar LaTeX
19063  and 
19064 \begin_inset Flex Code
19065 status collapsed
19066
19067 \begin_layout Plain Layout
19068 babel
19069 \end_layout
19070
19071 \end_inset
19072
19073  will then conspire to produce the correct text in the output.
19074 \end_layout
19075
19076 \begin_layout Standard
19077 One important point to note here is that the translations are provided by \SpecialChar LyX
19078  itself,
19079  through the file 
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 layouttranslations
19085 \end_layout
19086
19087 \end_inset
19088
19089 .
19090  This means,
19091  in effect,
19092  that 
19093 \begin_inset Flex Code
19094 status collapsed
19095
19096 \begin_layout Plain Layout
19097 LangPreamble
19098 \end_layout
19099
19100 \end_inset
19101
19102  and 
19103 \begin_inset Flex Code
19104 status collapsed
19105
19106 \begin_layout Plain Layout
19107 BabelPreamble
19108 \end_layout
19109
19110 \end_inset
19111
19112  are really only of use in layout files that are provided with \SpecialChar LyX
19113 ,
19114  since text entered in user-created layout files will not be seen by \SpecialChar LyX
19115 's internationalization routines unless the 
19116 \begin_inset Flex Code
19117 status collapsed
19118
19119 \begin_layout Plain Layout
19120 layouttranslations
19121 \end_layout
19122
19123 \end_inset
19124
19125  file is modified accordingly.
19126  That said,
19127  however,
19128  any layout created with the intention that it will be included with \SpecialChar LyX
19129  should use these tags where appropriate.
19130  Please note that the paragraph style translations provided by \SpecialChar LyX
19131  will never change with a minor update (e.
19132 \begin_inset space \thinspace{}
19133 \end_inset
19134
19135 g.
19136 \begin_inset space \space{}
19137 \end_inset
19138
19139 from version 2.1.x to 2.1.y).
19140  It is however quite likely that a major update (e.
19141 \begin_inset space \thinspace{}
19142 \end_inset
19143
19144 g.
19145 \begin_inset space \space{}
19146 \end_inset
19147
19148 from 2.0.x to 2.1.0) will introduce new translations or corrections.
19149 \end_layout
19150
19151 \begin_layout Subsection
19152 Floats
19153 \begin_inset CommandInset label
19154 LatexCommand label
19155 name "subsec:Floats"
19156
19157 \end_inset
19158
19159
19160 \end_layout
19161
19162 \begin_layout Standard
19163 It is necessary to define the floats (
19164 \begin_inset Flex Noun
19165 status collapsed
19166
19167 \begin_layout Plain Layout
19168 figure
19169 \end_layout
19170
19171 \end_inset
19172
19173 ,
19174  
19175 \begin_inset Flex Noun
19176 status collapsed
19177
19178 \begin_layout Plain Layout
19179 table
19180 \end_layout
19181
19182 \end_inset
19183
19184 ,
19185  \SpecialChar ldots
19186 ) in the text class itself.
19187  Standard floats are included in the file 
19188 \begin_inset Flex Code
19189 status collapsed
19190
19191 \begin_layout Plain Layout
19192 stdfloats.inc
19193 \end_layout
19194
19195 \end_inset
19196
19197 ,
19198  so you may have to do no more than add
19199 \end_layout
19200
19201 \begin_layout LyX-Code
19202 Input stdfloats.inc
19203 \end_layout
19204
19205 \begin_layout Standard
19206 to your layout file.
19207  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
19208 ),
19209  the information below will hopefully help you:
19210 \end_layout
19211
19212 \begin_layout Description
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 AllowedPlacement
19218 \end_layout
19219
19220 \end_inset
19221
19222  [
19223 \begin_inset Flex Code
19224 status collapsed
19225
19226 \begin_layout Plain Layout
19227 string
19228 \end_layout
19229
19230 \end_inset
19231
19232 =!htbpH] Allowed placement options for this float type.
19233  The value is a string of placement characters.
19234  Possible characters include:
19235  
19236 \emph on
19237 h
19238 \emph default
19239  (
19240 \begin_inset Quotes eld
19241 \end_inset
19242
19243 here if possible
19244 \begin_inset Quotes erd
19245 \end_inset
19246
19247 ),
19248  
19249 \emph on
19250 t
19251 \emph default
19252  (
19253 \begin_inset Quotes eld
19254 \end_inset
19255
19256 top of page
19257 \begin_inset Quotes erd
19258 \end_inset
19259
19260 ),
19261  
19262 \emph on
19263 b
19264 \emph default
19265  (
19266 \begin_inset Quotes eld
19267 \end_inset
19268
19269 bottom of page
19270 \begin_inset Quotes erd
19271 \end_inset
19272
19273 ),
19274  
19275 \emph on
19276 p
19277 \emph default
19278  (
19279 \begin_inset Quotes eld
19280 \end_inset
19281
19282 page of floats
19283 \begin_inset Quotes erd
19284 \end_inset
19285
19286 ),
19287  
19288 \emph on
19289 H
19290 \emph default
19291  (
19292 \begin_inset Quotes eld
19293 \end_inset
19294
19295 here definitely
19296 \begin_inset Quotes erd
19297 \end_inset
19298
19299 ) and 
19300 \emph on
19301 !
19302
19303 \emph default
19304  (
19305 \begin_inset Quotes eld
19306 \end_inset
19307
19308 ignore LaTeX rules
19309 \begin_inset Quotes erd
19310 \end_inset
19311
19312 ).
19313  The order of the characters in the string does not matter.
19314  If no placement options are allowed,
19315  use the string 
19316 \emph on
19317 none
19318 \emph default
19319 .
19320 \end_layout
19321
19322 \begin_layout Description
19323 \begin_inset Flex Code
19324 status collapsed
19325
19326 \begin_layout Plain Layout
19327 AllowsSideways
19328 \end_layout
19329
19330 \end_inset
19331
19332  [
19333 \begin_inset Flex Code
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337
19338 \emph off
19339 0
19340 \end_layout
19341
19342 \end_inset
19343
19344 ,
19345 \begin_inset space \thinspace{}
19346 \end_inset
19347
19348
19349 \emph on
19350
19351 \begin_inset Flex Code
19352 status collapsed
19353
19354 \begin_layout Plain Layout
19355
19356 \emph on
19357 1
19358 \end_layout
19359
19360 \end_inset
19361
19362
19363 \emph default
19364 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
19365 -package 
19366 \family typewriter
19367 rotfloat
19368 \family default
19369  (sidewaysfloat).
19370  Set to 
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375 0
19376 \end_layout
19377
19378 \end_inset
19379
19380  if the float does not support this feature.
19381 \end_layout
19382
19383 \begin_layout Description
19384 \begin_inset Flex Code
19385 status collapsed
19386
19387 \begin_layout Plain Layout
19388 AllowsWide
19389 \end_layout
19390
19391 \end_inset
19392
19393  [
19394 \begin_inset Flex Code
19395 status collapsed
19396
19397 \begin_layout Plain Layout
19398
19399 \emph off
19400 0
19401 \end_layout
19402
19403 \end_inset
19404
19405 ,
19406 \begin_inset space \thinspace{}
19407 \end_inset
19408
19409
19410 \emph on
19411
19412 \begin_inset Flex Code
19413 status collapsed
19414
19415 \begin_layout Plain Layout
19416
19417 \emph on
19418 1
19419 \end_layout
19420
19421 \end_inset
19422
19423
19424 \emph default
19425 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
19426  Set to 
19427 \begin_inset Flex Code
19428 status collapsed
19429
19430 \begin_layout Plain Layout
19431 0
19432 \end_layout
19433
19434 \end_inset
19435
19436  if the float does not support this feature.
19437 \end_layout
19438
19439 \begin_layout Description
19440 \begin_inset Flex Code
19441 status collapsed
19442
19443 \begin_layout Plain Layout
19444 Extension
19445 \end_layout
19446
19447 \end_inset
19448
19449  [
19450 \begin_inset Flex Code
19451 status collapsed
19452
19453 \begin_layout Plain Layout
19454 string
19455 \end_layout
19456
19457 \end_inset
19458
19459 =
19460 \begin_inset Quotes erd
19461 \end_inset
19462
19463
19464 \begin_inset Quotes erd
19465 \end_inset
19466
19467 ] The file name extension of an auxiliary file for the list of figures (or whatever).
19468  \SpecialChar LaTeX
19469  writes the captions to this file.
19470 \end_layout
19471
19472 \begin_layout Description
19473 \begin_inset Flex Code
19474 status collapsed
19475
19476 \begin_layout Plain Layout
19477 GuiName
19478 \end_layout
19479
19480 \end_inset
19481
19482  [
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 string
19488 \end_layout
19489
19490 \end_inset
19491
19492 =
19493 \begin_inset Quotes erd
19494 \end_inset
19495
19496
19497 \begin_inset Quotes erd
19498 \end_inset
19499
19500 ] The string that will be used in the menus and also for the caption.
19501  This is translated to the current language if babel is used.
19502 \end_layout
19503
19504 \begin_layout Description
19505 \begin_inset Flex Code
19506 status collapsed
19507
19508 \begin_layout Plain Layout
19509 HTML*
19510 \end_layout
19511
19512 \end_inset
19513
19514  These tags control the XHTML output.
19515  See 
19516 \begin_inset CommandInset ref
19517 LatexCommand ref
19518 reference "sec:Tags-for-XHTML"
19519 nolink "false"
19520
19521 \end_inset
19522
19523 .
19524 \end_layout
19525
19526 \begin_layout Description
19527 \begin_inset Flex Code
19528 status collapsed
19529
19530 \begin_layout Plain Layout
19531 IsPredefined
19532 \end_layout
19533
19534 \end_inset
19535
19536  [
19537 \emph on
19538
19539 \begin_inset Flex Code
19540 status collapsed
19541
19542 \begin_layout Plain Layout
19543 0
19544 \end_layout
19545
19546 \end_inset
19547
19548
19549 \emph default
19550 ,
19551 \begin_inset space \thinspace{}
19552 \end_inset
19553
19554
19555 \begin_inset Flex Code
19556 status collapsed
19557
19558 \begin_layout Plain Layout
19559 1
19560 \end_layout
19561
19562 \end_inset
19563
19564 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
19565  package 
19566 \begin_inset Flex Code
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570 float
19571 \end_layout
19572
19573 \end_inset
19574
19575  needs to be loaded to define it on-the-fly.
19576  The default is 
19577 \begin_inset Flex Code
19578 status collapsed
19579
19580 \begin_layout Plain Layout
19581 0
19582 \end_layout
19583
19584 \end_inset
19585
19586 ,
19587  which means:
19588  
19589 \begin_inset Flex Code
19590 status collapsed
19591
19592 \begin_layout Plain Layout
19593 float
19594 \end_layout
19595
19596 \end_inset
19597
19598  is used.
19599  It should be set to 
19600 \begin_inset Flex Code
19601 status collapsed
19602
19603 \begin_layout Plain Layout
19604 1
19605 \end_layout
19606
19607 \end_inset
19608
19609  if the float is already defined by the \SpecialChar LaTeX
19610  document class.
19611 \end_layout
19612
19613 \begin_layout Description
19614 \begin_inset Flex Code
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618 ListCommand
19619 \end_layout
19620
19621 \end_inset
19622
19623  [
19624 \begin_inset Flex Code
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628 string
19629 \end_layout
19630
19631 \end_inset
19632
19633 =
19634 \begin_inset Quotes erd
19635 \end_inset
19636
19637
19638 \begin_inset Quotes erd
19639 \end_inset
19640
19641 ] The command used to generate a list of floats of this type;
19642  the leading `
19643 \backslash
19644 ' must be omitted.
19645  This 
19646 \emph on
19647 must
19648 \emph default
19649  be given if 
19650 \begin_inset Flex Code
19651 status collapsed
19652
19653 \begin_layout Plain Layout
19654 UsesFloatPkg
19655 \end_layout
19656
19657 \end_inset
19658
19659  is false,
19660  since there is no standard way to generate this command.
19661  It is ignored if 
19662 \begin_inset Flex Code
19663 status collapsed
19664
19665 \begin_layout Plain Layout
19666 UsesFloatPkg
19667 \end_layout
19668
19669 \end_inset
19670
19671  is true,
19672  since in that case there is a standard way to define the command.
19673 \end_layout
19674
19675 \begin_layout Description
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 ListName
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 ] A title for a list of floats of this kind (list of figures,
19704  tables,
19705  or whatever).
19706  It is used for the screen label within \SpecialChar LyX
19707 ,
19708  it is used by \SpecialChar LaTeX
19709  for the title and it is used as the title in the XHTML output.
19710  It will be translated to the document language.
19711 \end_layout
19712
19713 \begin_layout Description
19714 \begin_inset Flex Code
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718 NumberWithin
19719 \end_layout
19720
19721 \end_inset
19722
19723  [
19724 \begin_inset Flex Code
19725 status collapsed
19726
19727 \begin_layout Plain Layout
19728 string
19729 \end_layout
19730
19731 \end_inset
19732
19733 =
19734 \begin_inset Quotes erd
19735 \end_inset
19736
19737
19738 \begin_inset Quotes erd
19739 \end_inset
19740
19741 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
19742  For example,
19743  if 
19744 \begin_inset Flex Code
19745 status collapsed
19746
19747 \begin_layout Plain Layout
19748 NumberWithin
19749 \end_layout
19750
19751 \end_inset
19752
19753  is set to 
19754 \begin_inset Quotes eld
19755 \end_inset
19756
19757
19758 \begin_inset Flex Code
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762 chapter
19763 \end_layout
19764
19765 \end_inset
19766
19767
19768 \begin_inset Quotes erd
19769 \end_inset
19770
19771 ,
19772  the floats will be numbered within chapters.
19773  
19774 \end_layout
19775
19776 \begin_layout Description
19777 \begin_inset Flex Code
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781 Placement
19782 \end_layout
19783
19784 \end_inset
19785
19786  [
19787 \begin_inset Flex Code
19788 status collapsed
19789
19790 \begin_layout Plain Layout
19791 string
19792 \end_layout
19793
19794 \end_inset
19795
19796 =
19797 \begin_inset Quotes erd
19798 \end_inset
19799
19800
19801 \begin_inset Quotes erd
19802 \end_inset
19803
19804 ] The default placement for the given class of floats.
19805  The string should be as in standard \SpecialChar LaTeX
19806 :
19807  
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812 t
19813 \end_layout
19814
19815 \end_inset
19816
19817 ,
19818  
19819 \begin_inset Flex Code
19820 status collapsed
19821
19822 \begin_layout Plain Layout
19823 b
19824 \end_layout
19825
19826 \end_inset
19827
19828 ,
19829  
19830 \begin_inset Flex Code
19831 status collapsed
19832
19833 \begin_layout Plain Layout
19834 p
19835 \end_layout
19836
19837 \end_inset
19838
19839  and 
19840 \begin_inset Flex Code
19841 status collapsed
19842
19843 \begin_layout Plain Layout
19844 h
19845 \end_layout
19846
19847 \end_inset
19848
19849  for top,
19850  bottom,
19851  page,
19852  and here,
19853  respectively.
19854 \begin_inset Foot
19855 status collapsed
19856
19857 \begin_layout Plain Layout
19858 Note that the order of these letters in the string is irrelevant,
19859  like in \SpecialChar LaTeX
19860 .
19861 \end_layout
19862
19863 \end_inset
19864
19865  On top of that there is a new type,
19866  
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871 H
19872 \end_layout
19873
19874 \end_inset
19875
19876 ,
19877  which does not really correspond to a float,
19878  since it means:
19879  put it 
19880 \begin_inset Quotes eld
19881 \end_inset
19882
19883 here
19884 \begin_inset Quotes erd
19885 \end_inset
19886
19887  and nowhere else.
19888  Note however that the 
19889 \begin_inset Flex Code
19890 status collapsed
19891
19892 \begin_layout Plain Layout
19893 H
19894 \end_layout
19895
19896 \end_inset
19897
19898  specifier is special and,
19899  because of implementation details,
19900  cannot be used in non-built in float types.
19901  If you do not understand what this means,
19902  just use 
19903 \begin_inset Quotes eld
19904 \end_inset
19905
19906
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911 tbp
19912 \end_layout
19913
19914 \end_inset
19915
19916
19917 \begin_inset Quotes erd
19918 \end_inset
19919
19920 .
19921 \end_layout
19922
19923 \begin_layout Description
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 RefPrefix
19929 \end_layout
19930
19931 \end_inset
19932
19933  [
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 string
19939 \end_layout
19940
19941 \end_inset
19942
19943 ] The prefix to use when creating labels referring to floats of this type.
19944  This allows the use of formatted references.
19945  Note that you can remove any 
19946 \begin_inset Flex Code
19947 status collapsed
19948
19949 \begin_layout Plain Layout
19950 RefPrefix
19951 \end_layout
19952
19953 \end_inset
19954
19955  set by a copied style by using the special value 
19956 \begin_inset Quotes eld
19957 \end_inset
19958
19959 OFF
19960 \begin_inset Quotes erd
19961 \end_inset
19962
19963 ,
19964  which must be all caps.
19965 \change_inserted -712698321 1565605014
19966
19967 \end_layout
19968
19969 \begin_layout Description
19970
19971 \change_inserted -712698321 1565605014
19972 \begin_inset Flex Code
19973 status collapsed
19974
19975 \begin_layout Plain Layout
19976
19977 \change_inserted -712698321 1565605014
19978 Requires
19979 \change_unchanged
19980
19981 \end_layout
19982
19983 \end_inset
19984
19985  [
19986 \begin_inset Flex Code
19987 status collapsed
19988
19989 \begin_layout Plain Layout
19990
19991 \change_inserted -712698321 1565605014
19992 string
19993 \change_unchanged
19994
19995 \end_layout
19996
19997 \end_inset
19998
19999 ] As with paragraph styles,
20000  see 
20001 \begin_inset CommandInset ref
20002 LatexCommand ref
20003 reference "subsec:Paragraph-Styles"
20004 nolink "false"
20005
20006 \end_inset
20007
20008 .
20009 \change_unchanged
20010
20011 \end_layout
20012
20013 \begin_layout Description
20014 \begin_inset Flex Code
20015 status collapsed
20016
20017 \begin_layout Plain Layout
20018 Style
20019 \end_layout
20020
20021 \end_inset
20022
20023  [
20024 \begin_inset Flex Code
20025 status collapsed
20026
20027 \begin_layout Plain Layout
20028 string
20029 \end_layout
20030
20031 \end_inset
20032
20033 =
20034 \begin_inset Quotes erd
20035 \end_inset
20036
20037
20038 \begin_inset Quotes erd
20039 \end_inset
20040
20041 ] The style used when defining the float using 
20042 \begin_inset Flex Code
20043 status collapsed
20044
20045 \begin_layout Plain Layout
20046
20047 \backslash
20048 newfloat
20049 \end_layout
20050
20051 \end_inset
20052
20053 .
20054 \end_layout
20055
20056 \begin_layout Description
20057 \begin_inset Flex Code
20058 status collapsed
20059
20060 \begin_layout Plain Layout
20061 Type
20062 \end_layout
20063
20064 \end_inset
20065
20066  [
20067 \begin_inset Flex Code
20068 status collapsed
20069
20070 \begin_layout Plain Layout
20071 string
20072 \end_layout
20073
20074 \end_inset
20075
20076 =
20077 \begin_inset Quotes erd
20078 \end_inset
20079
20080
20081 \begin_inset Quotes erd
20082 \end_inset
20083
20084 ] The 
20085 \begin_inset Quotes eld
20086 \end_inset
20087
20088 type
20089 \begin_inset Quotes erd
20090 \end_inset
20091
20092  of the new class of floats,
20093  like program or algorithm.
20094  After the appropriate 
20095 \begin_inset Flex Code
20096 status collapsed
20097
20098 \begin_layout Plain Layout
20099
20100 \backslash
20101 newfloat
20102 \end_layout
20103
20104 \end_inset
20105
20106 ,
20107  commands such as 
20108 \begin_inset Flex Code
20109 status collapsed
20110
20111 \begin_layout Plain Layout
20112
20113 \backslash
20114 begin{program}
20115 \end_layout
20116
20117 \end_inset
20118
20119  or 
20120 \begin_inset Flex Code
20121 status collapsed
20122
20123 \begin_layout Plain Layout
20124
20125 \backslash
20126 end{algorithm*}
20127 \end_layout
20128
20129 \end_inset
20130
20131  will be available.
20132 \end_layout
20133
20134 \begin_layout Description
20135 \begin_inset Flex Code
20136 status collapsed
20137
20138 \begin_layout Plain Layout
20139 UsesFloatPkg
20140 \end_layout
20141
20142 \end_inset
20143
20144  [
20145 \begin_inset Flex Code
20146 status collapsed
20147
20148 \begin_layout Plain Layout
20149 0
20150 \end_layout
20151
20152 \end_inset
20153
20154 ,
20155 \begin_inset space \thinspace{}
20156 \end_inset
20157
20158
20159 \begin_inset Flex Code
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163
20164 \emph on
20165 1
20166 \end_layout
20167
20168 \end_inset
20169
20170 ] Specifies whether this float is defined using the \SpecialChar LaTeX
20171  package 
20172 \begin_inset Flex Code
20173 status collapsed
20174
20175 \begin_layout Plain Layout
20176 float
20177 \end_layout
20178
20179 \end_inset
20180
20181 ,
20182  either by the class file,
20183  another package or on-the-fly by \SpecialChar LyX
20184  itself.
20185 \end_layout
20186
20187 \begin_layout Standard
20188 Note that defining a float with type 
20189 \begin_inset Flex Code
20190 status collapsed
20191
20192 \begin_layout Plain Layout
20193
20194 \emph on
20195 type
20196 \end_layout
20197
20198 \end_inset
20199
20200  automatically defines the corresponding counter with name 
20201 \begin_inset Flex Code
20202 status collapsed
20203
20204 \begin_layout Plain Layout
20205
20206 \emph on
20207 type
20208 \end_layout
20209
20210 \end_inset
20211
20212 .
20213 \end_layout
20214
20215 \begin_layout Subsection
20216 Flex insets and InsetLayout
20217 \begin_inset CommandInset label
20218 LatexCommand label
20219 name "subsec:Flex-insets-and"
20220
20221 \end_inset
20222
20223
20224 \end_layout
20225
20226 \begin_layout Standard
20227 Flex insets come in 
20228 \change_deleted 5863208 1594239511
20229 three
20230 \change_inserted 5863208 1594239512
20231 two
20232 \change_unchanged
20233  different kinds:
20234  
20235 \end_layout
20236
20237 \begin_layout Itemize
20238 character style (
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 CharStyle
20244 \end_layout
20245
20246 \end_inset
20247
20248 ):
20249  These define semantic markup corresponding to such \SpecialChar LaTeX
20250  commands as 
20251 \begin_inset Flex Code
20252 status collapsed
20253
20254 \begin_layout Plain Layout
20255
20256 \backslash
20257 noun
20258 \end_layout
20259
20260 \end_inset
20261
20262  and 
20263 \begin_inset Flex Code
20264 status collapsed
20265
20266 \begin_layout Plain Layout
20267
20268 \backslash
20269 code
20270 \end_layout
20271
20272 \end_inset
20273
20274 .
20275 \end_layout
20276
20277 \begin_layout Itemize
20278 user custom (
20279 \begin_inset Flex Code
20280 status collapsed
20281
20282 \begin_layout Plain Layout
20283 Custom
20284 \end_layout
20285
20286 \end_inset
20287
20288 ):
20289  These can be used to define custom collapsible insets,
20290  similar to \SpecialChar TeX
20291  code,
20292  footnote,
20293  and the like.
20294  An obvious example is an endnote inset,
20295  which is defined in the 
20296 \begin_inset Flex Code
20297 status collapsed
20298
20299 \begin_layout Plain Layout
20300 endnote
20301 \end_layout
20302
20303 \end_inset
20304
20305  module.
20306 \end_layout
20307
20308 \begin_layout Itemize
20309
20310 \change_deleted 5863208 1594239528
20311 XML elements (
20312 \begin_inset Flex Code
20313 status collapsed
20314
20315 \begin_layout Plain Layout
20316 Element
20317 \end_layout
20318
20319 \end_inset
20320
20321 ):
20322  For use with DocBook classes.
20323 \change_unchanged
20324
20325 \end_layout
20326
20327 \begin_layout Standard
20328 Flex insets are defined using the 
20329 \begin_inset Flex Code
20330 status collapsed
20331
20332 \begin_layout Plain Layout
20333 InsetLayout
20334 \end_layout
20335
20336 \end_inset
20337
20338  tag,
20339  which shall be explained in a moment.
20340 \end_layout
20341
20342 \begin_layout Standard
20343 The 
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 InsetLayout
20349 \end_layout
20350
20351 \end_inset
20352
20353  tag also serves another function:
20354  It can be used to customize the general layout of many different types of insets.
20355  Currently,
20356  
20357 \begin_inset Flex Code
20358 status collapsed
20359
20360 \begin_layout Plain Layout
20361 InsetLayout
20362 \end_layout
20363
20364 \end_inset
20365
20366  can be used to customize the layout parameters for footnotes,
20367  marginal notes,
20368  note insets,
20369  \SpecialChar TeX
20370  code (ERT) insets,
20371  branches,
20372  listings,
20373  indexes,
20374  boxes,
20375  tables,
20376  algorithms,
20377  URLs,
20378  and captions,
20379  as well as to define Flex insets.
20380 \end_layout
20381
20382 \begin_layout Standard
20383 The 
20384 \begin_inset Flex Code
20385 status collapsed
20386
20387 \begin_layout Plain Layout
20388 InsetLayout
20389 \end_layout
20390
20391 \end_inset
20392
20393  definition must begin with a line of the form:
20394 \end_layout
20395
20396 \begin_layout LyX-Code
20397 InsetLayout <type>
20398 \end_layout
20399
20400 \begin_layout Standard
20401 Here 
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406 <Type>
20407 \end_layout
20408
20409 \end_inset
20410
20411  indicates the inset whose layout is being defined,
20412  and here there are four cases.
20413 \end_layout
20414
20415 \begin_layout Enumerate
20416 The layout for a pre-existing inset is being modified.
20417  In this case,
20418  can be 
20419 \begin_inset Flex Code
20420 status collapsed
20421
20422 \begin_layout Plain Layout
20423 <Type>
20424 \end_layout
20425
20426 \end_inset
20427
20428  any one of the following:
20429  
20430 \begin_inset Flex Code
20431 status collapsed
20432
20433 \begin_layout Plain Layout
20434 Algorithm
20435 \end_layout
20436
20437 \end_inset
20438
20439 ,
20440  
20441 \begin_inset Flex Code
20442 status collapsed
20443
20444 \begin_layout Plain Layout
20445 Branch
20446 \end_layout
20447
20448 \end_inset
20449
20450 ,
20451  
20452 \begin_inset Flex Code
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456 Box
20457 \end_layout
20458
20459 \end_inset
20460
20461 ,
20462  
20463 \begin_inset Flex Code
20464 status collapsed
20465
20466 \begin_layout Plain Layout
20467 Box:shaded
20468 \end_layout
20469
20470 \end_inset
20471
20472 ,
20473  
20474 \begin_inset Flex Code
20475 status collapsed
20476
20477 \begin_layout Plain Layout
20478 Caption:Standard
20479 \end_layout
20480
20481 \end_inset
20482
20483 ,
20484  
20485 \begin_inset Flex Code
20486 status collapsed
20487
20488 \begin_layout Plain Layout
20489 ERT
20490 \end_layout
20491
20492 \end_inset
20493
20494 ,
20495  
20496 \begin_inset Flex Code
20497 status collapsed
20498
20499 \begin_layout Plain Layout
20500 Figure
20501 \end_layout
20502
20503 \end_inset
20504
20505 ,
20506  
20507 \begin_inset Flex Code
20508 status collapsed
20509
20510 \begin_layout Plain Layout
20511 Foot
20512 \end_layout
20513
20514 \end_inset
20515
20516 ,
20517  
20518 \begin_inset Flex Code
20519 status collapsed
20520
20521 \begin_layout Plain Layout
20522 Index
20523 \end_layout
20524
20525 \end_inset
20526
20527 ,
20528  
20529 \begin_inset Flex Code
20530 status collapsed
20531
20532 \begin_layout Plain Layout
20533 Info
20534 \end_layout
20535
20536 \end_inset
20537
20538 ,
20539  
20540 \begin_inset Flex Code
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544 Info:menu
20545 \end_layout
20546
20547 \end_inset
20548
20549 ,
20550  
20551 \begin_inset Flex Code
20552 status collapsed
20553
20554 \begin_layout Plain Layout
20555 Info:shortcut
20556 \end_layout
20557
20558 \end_inset
20559
20560 ,
20561  
20562 \begin_inset Flex Code
20563 status collapsed
20564
20565 \begin_layout Plain Layout
20566 Info:shortcuts
20567 \end_layout
20568
20569 \end_inset
20570
20571 ,
20572  
20573 \begin_inset Flex Code
20574 status collapsed
20575
20576 \begin_layout Plain Layout
20577 Listings
20578 \end_layout
20579
20580 \end_inset
20581
20582 ,
20583  
20584 \begin_inset Flex Code
20585 status collapsed
20586
20587 \begin_layout Plain Layout
20588 Marginal
20589 \end_layout
20590
20591 \end_inset
20592
20593 ,
20594  
20595 \begin_inset Flex Code
20596 status collapsed
20597
20598 \begin_layout Plain Layout
20599 Note:Comment
20600 \end_layout
20601
20602 \end_inset
20603
20604 ,
20605  
20606 \begin_inset Flex Code
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610 Note:Note
20611 \end_layout
20612
20613 \end_inset
20614
20615 ,
20616  
20617 \begin_inset Flex Code
20618 status collapsed
20619
20620 \begin_layout Plain Layout
20621 Note:Greyedout
20622 \end_layout
20623
20624 \end_inset
20625
20626 ,
20627  
20628 \begin_inset Flex Code
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632 Table
20633 \end_layout
20634
20635 \end_inset
20636
20637 ,
20638  or 
20639 \begin_inset Flex Code
20640 status collapsed
20641
20642 \begin_layout Plain Layout
20643 URL
20644 \end_layout
20645
20646 \end_inset
20647
20648 .
20649 \end_layout
20650
20651 \begin_layout Enumerate
20652 The layout for a Flex inset is being defined.
20653  In this case,
20654  
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659 <Type>
20660 \end_layout
20661
20662 \end_inset
20663
20664  must be of the form 
20665 \begin_inset Quotes eld
20666 \end_inset
20667
20668
20669 \begin_inset Flex Code
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673 Flex:<name>
20674 \end_layout
20675
20676 \end_inset
20677
20678
20679 \begin_inset Quotes erd
20680 \end_inset
20681
20682 ,
20683  where 
20684 \begin_inset Flex Code
20685 status collapsed
20686
20687 \begin_layout Plain Layout
20688 name
20689 \end_layout
20690
20691 \end_inset
20692
20693  may be any valid identifier not used by a pre-existing Flex inset.
20694  The identifier may include spaces,
20695  but in that case the whole thing must be wrapped in quotes.
20696  Note that the definition of a flex inset 
20697 \emph on
20698 must 
20699 \emph default
20700 also include a 
20701 \begin_inset Flex Code
20702 status collapsed
20703
20704 \begin_layout Plain Layout
20705 LyXType
20706 \end_layout
20707
20708 \end_inset
20709
20710  entry,
20711  declaring which type of inset it defines.
20712 \end_layout
20713
20714 \begin_layout Enumerate
20715 The layout for user specific branch is being defined.
20716  In this case,
20717  
20718 \begin_inset Flex Code
20719 status collapsed
20720
20721 \begin_layout Plain Layout
20722 <Type>
20723 \end_layout
20724
20725 \end_inset
20726
20727  must be of the form 
20728 \begin_inset Quotes eld
20729 \end_inset
20730
20731
20732 \begin_inset Flex Code
20733 status collapsed
20734
20735 \begin_layout Plain Layout
20736 Branch:<name>
20737 \end_layout
20738
20739 \end_inset
20740
20741
20742 \begin_inset Quotes erd
20743 \end_inset
20744
20745 ,
20746  where 
20747 \begin_inset Flex Code
20748 status collapsed
20749
20750 \begin_layout Plain Layout
20751 name
20752 \end_layout
20753
20754 \end_inset
20755
20756  may be any valid identifier of branch defined in user's document.
20757  The identifier may include spaces,
20758  but in that case the whole thing must be wrapped in quotes.
20759  The main purpose of this feature is to allow \SpecialChar LaTeX
20760  wrapping around specific branches as user needs.
20761 \end_layout
20762
20763 \begin_layout Enumerate
20764 The layout of a user (or class) specific caption is being defined.
20765  In this case,
20766  
20767 \begin_inset Flex Code
20768 status collapsed
20769
20770 \begin_layout Plain Layout
20771 <Type>
20772 \end_layout
20773
20774 \end_inset
20775
20776  must be of the form 
20777 \begin_inset Quotes eld
20778 \end_inset
20779
20780
20781 \begin_inset Flex Code
20782 status collapsed
20783
20784 \begin_layout Plain Layout
20785 Caption:<name>
20786 \end_layout
20787
20788 \end_inset
20789
20790
20791 \begin_inset Quotes erd
20792 \end_inset
20793
20794 ,
20795  where 
20796 \begin_inset Flex Code
20797 status collapsed
20798
20799 \begin_layout Plain Layout
20800 name
20801 \end_layout
20802
20803 \end_inset
20804
20805  specifies the name of the caption as it appears in the menu.
20806  Have a look at the standard caption (
20807 \begin_inset Flex Code
20808 status collapsed
20809
20810 \begin_layout Plain Layout
20811 Caption:Standard
20812 \end_layout
20813
20814 \end_inset
20815
20816 ),
20817  the specific captions of the KOMA-Script classes (
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 Caption:Above
20823 \end_layout
20824
20825 \end_inset
20826
20827 ,
20828  
20829 \begin_inset Flex Code
20830 status collapsed
20831
20832 \begin_layout Plain Layout
20833 Caption:Below
20834 \end_layout
20835
20836 \end_inset
20837
20838 ) or the module 
20839 \family sans
20840 Multilingual
20841 \begin_inset space ~
20842 \end_inset
20843
20844 Captions
20845 \begin_inset Newline linebreak
20846 \end_inset
20847
20848
20849 \family default
20850 (
20851 \begin_inset Flex Code
20852 status collapsed
20853
20854 \begin_layout Plain Layout
20855 Caption:Bicaption
20856 \end_layout
20857
20858 \end_inset
20859
20860 ) for applications.
20861 \end_layout
20862
20863 \begin_layout Standard
20864 The 
20865 \begin_inset Flex Code
20866 status collapsed
20867
20868 \begin_layout Plain Layout
20869 InsetLayout
20870 \end_layout
20871
20872 \end_inset
20873
20874  definition can contain the following entries:
20875 \end_layout
20876
20877 \begin_layout Description
20878 \begin_inset Flex Code
20879 status collapsed
20880
20881 \begin_layout Plain Layout
20882 AddToToc
20883 \end_layout
20884
20885 \end_inset
20886
20887  [
20888 \begin_inset Flex Code
20889 status collapsed
20890
20891 \begin_layout Plain Layout
20892 string
20893 \end_layout
20894
20895 \end_inset
20896
20897 =""] This inset will appear in the table of contents of the given type.
20898  An empty string disables.
20899  See also the OutlinerName and the IsTocCaption commands.
20900  This is only implemented for Flex insets.
20901  Default:
20902  disabled.
20903 \end_layout
20904
20905 \begin_layout Description
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 Argument
20911 \end_layout
20912
20913 \end_inset
20914
20915  [
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920 int
20921 \end_layout
20922
20923 \end_inset
20924
20925 ] Defines argument number of a command\SpecialChar breakableslash
20926 environment associated with the current layout.
20927  The definition must end with 
20928 \begin_inset Flex Code
20929 status collapsed
20930
20931 \begin_layout Plain Layout
20932 EndArgument
20933 \end_layout
20934
20935 \end_inset
20936
20937 .
20938  See 
20939 \change_inserted -584632292 1615846847
20940
20941 \begin_inset CommandInset ref
20942 LatexCommand ref
20943 reference "subsec:Arguments"
20944 plural "false"
20945 caps "false"
20946 noprefix "false"
20947 nolink "false"
20948
20949 \end_inset
20950
20951
20952 \change_deleted -584632292 1615846847
20953
20954 \begin_inset CommandInset ref
20955 LatexCommand ref
20956 reference "subsec:Paragraph-Styles"
20957 nolink "false"
20958
20959 \end_inset
20960
20961
20962 \change_unchanged
20963  for 
20964 \change_deleted -584632292 1615846902
20965 details
20966 \change_inserted -584632292 1615846906
20967 more information
20968 \change_unchanged
20969 .
20970 \end_layout
20971
20972 \begin_layout Description
20973 \begin_inset Flex Code
20974 status collapsed
20975
20976 \begin_layout Plain Layout
20977 BabelPreamble
20978 \end_layout
20979
20980 \end_inset
20981
20982  Preamble for changing language commands;
20983  see 
20984 \begin_inset CommandInset ref
20985 LatexCommand ref
20986 reference "subsec:I18n"
20987 nolink "false"
20988
20989 \end_inset
20990
20991 .
20992 \end_layout
20993
20994 \begin_layout Description
20995 \begin_inset Flex Code
20996 status collapsed
20997
20998 \begin_layout Plain Layout
20999 BgColor
21000 \end_layout
21001
21002 \end_inset
21003
21004  [
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 <name>
21010 \end_layout
21011
21012 \end_inset
21013
21014 ] The color for the inset's background.
21015  See 
21016 \begin_inset CommandInset ref
21017 LatexCommand ref
21018 reference "chap:Names-of-colors"
21019 nolink "false"
21020
21021 \end_inset
21022
21023  for a list of the available color names.
21024 \end_layout
21025
21026 \begin_layout Description
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 ContentAsLabel
21032 \end_layout
21033
21034 \end_inset
21035
21036  [
21037 \begin_inset Flex Code
21038 status collapsed
21039
21040 \begin_layout Plain Layout
21041
21042 \emph on
21043 0
21044 \end_layout
21045
21046 \end_inset
21047
21048 ,
21049 \begin_inset space \thinspace{}
21050 \end_inset
21051
21052
21053 \begin_inset Flex Code
21054 status collapsed
21055
21056 \begin_layout Plain Layout
21057 1
21058 \end_layout
21059
21060 \end_inset
21061
21062 ] Whether to use the content of the inset as the label,
21063  when the inset is closed.
21064  Default is false.
21065 \end_layout
21066
21067 \begin_layout Description
21068 \begin_inset Flex Code
21069 status collapsed
21070
21071 \begin_layout Plain Layout
21072 CopyStyle
21073 \end_layout
21074
21075 \end_inset
21076
21077  [
21078 \begin_inset Flex Code
21079 status collapsed
21080
21081 \begin_layout Plain Layout
21082 <type>
21083 \end_layout
21084
21085 \end_inset
21086
21087 ] As with paragraph styles,
21088  see 
21089 \begin_inset CommandInset ref
21090 LatexCommand ref
21091 reference "subsec:Paragraph-Styles"
21092 nolink "false"
21093
21094 \end_inset
21095
21096 .
21097  Note that you need to specify the complete type,
21098  e.
21099 \begin_inset space \thinspace{}
21100 \end_inset
21101
21102 g.
21103 \begin_inset space ~
21104 \end_inset
21105
21106
21107 \begin_inset Flex Code
21108 status collapsed
21109
21110 \begin_layout Plain Layout
21111 CopyStyle Flex:<name>
21112 \end_layout
21113
21114 \end_inset
21115
21116 .
21117 \end_layout
21118
21119 \begin_layout Description
21120 \begin_inset Flex Code
21121 status collapsed
21122
21123 \begin_layout Plain Layout
21124 CustomPars
21125 \end_layout
21126
21127 \end_inset
21128
21129  [
21130 \begin_inset Flex Code
21131 status collapsed
21132
21133 \begin_layout Plain Layout
21134
21135 \emph on
21136 0
21137 \end_layout
21138
21139 \end_inset
21140
21141 ,
21142 \begin_inset space \thinspace{}
21143 \end_inset
21144
21145
21146 \begin_inset Flex Code
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150 1
21151 \end_layout
21152
21153 \end_inset
21154
21155 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
21156 \end_layout
21157
21158 \begin_layout Description
21159 \begin_inset Flex Code
21160 status collapsed
21161
21162 \begin_layout Plain Layout
21163 Decoration
21164 \end_layout
21165
21166 \end_inset
21167
21168  can be 
21169 \begin_inset Flex Code
21170 status collapsed
21171
21172 \begin_layout Plain Layout
21173 Classic
21174 \end_layout
21175
21176 \end_inset
21177
21178 ,
21179  
21180 \begin_inset Flex Code
21181 status collapsed
21182
21183 \begin_layout Plain Layout
21184 Minimalistic
21185 \end_layout
21186
21187 \end_inset
21188
21189 ,
21190  or 
21191 \begin_inset Flex Code
21192 status collapsed
21193
21194 \begin_layout Plain Layout
21195 Conglomerate
21196 \end_layout
21197
21198 \end_inset
21199
21200 ,
21201  describing the rendering style used for the inset's frame and buttons.
21202  Footnotes generally use 
21203 \begin_inset Flex Code
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207 Classic
21208 \end_layout
21209
21210 \end_inset
21211
21212 ,
21213  ERT insets generally 
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218 Minimalistic
21219 \end_layout
21220
21221 \end_inset
21222
21223 ,
21224  and character styles 
21225 \begin_inset Flex Code
21226 status collapsed
21227
21228 \begin_layout Plain Layout
21229 Conglomerate
21230 \end_layout
21231
21232 \end_inset
21233
21234 .
21235 \end_layout
21236
21237 \begin_layout Description
21238 \begin_inset Flex Code
21239 status collapsed
21240
21241 \begin_layout Plain Layout
21242 Display
21243 \end_layout
21244
21245 \end_inset
21246
21247  [
21248 \begin_inset Flex Code
21249 status collapsed
21250
21251 \begin_layout Plain Layout
21252 0
21253 \end_layout
21254
21255 \end_inset
21256
21257 ,
21258 \emph on
21259
21260 \begin_inset space \thinspace{}
21261 \end_inset
21262
21263
21264 \emph default
21265
21266 \begin_inset Flex Code
21267 status collapsed
21268
21269 \begin_layout Plain Layout
21270
21271 \emph on
21272 1
21273 \end_layout
21274
21275 \end_inset
21276
21277 ] Only useful if 
21278 \begin_inset Flex Code
21279 status collapsed
21280
21281 \begin_layout Plain Layout
21282 LatexType
21283 \end_layout
21284
21285 \end_inset
21286
21287  is 
21288 \begin_inset Flex Code
21289 status collapsed
21290
21291 \begin_layout Plain Layout
21292 Environment
21293 \end_layout
21294
21295 \end_inset
21296
21297 .
21298  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
21299  If set to false,
21300  it is supposed that the \SpecialChar LaTeX
21301  environment ignores white space (including one newline character) after the 
21302 \begin_inset Flex Code
21303 status collapsed
21304
21305 \begin_layout Plain Layout
21306
21307 \backslash
21308 begin{
21309 \emph on
21310 LatexName
21311 \emph default
21312 }
21313 \end_layout
21314
21315 \end_inset
21316
21317  and 
21318 \begin_inset Flex Code
21319 status collapsed
21320
21321 \begin_layout Plain Layout
21322
21323 \backslash
21324 end{
21325 \emph on
21326 LatexName
21327 \emph default
21328 }
21329 \end_layout
21330
21331 \end_inset
21332
21333  tags.
21334  Default is true.
21335 \change_inserted 731793113 1538674858
21336
21337 \end_layout
21338
21339 \begin_layout Description
21340
21341 \change_inserted 731793113 1538674891
21342 \begin_inset Flex Code
21343 status open
21344
21345 \begin_layout Plain Layout
21346
21347 \change_inserted 731793113 1538674863
21348 EditExternal
21349 \change_unchanged
21350
21351 \end_layout
21352
21353 \end_inset
21354
21355  [
21356 \emph on
21357 0
21358 \emph default
21359 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
21360 \change_unchanged
21361
21362 \end_layout
21363
21364 \begin_layout Description
21365 \begin_inset Flex Code
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369 End
21370 \end_layout
21371
21372 \end_inset
21373
21374  Required at the end of the 
21375 \begin_inset Flex Code
21376 status collapsed
21377
21378 \begin_layout Plain Layout
21379 InsetLayout
21380 \end_layout
21381
21382 \end_inset
21383
21384  declarations.
21385 \end_layout
21386
21387 \begin_layout Description
21388 \begin_inset Flex Code
21389 status collapsed
21390
21391 \begin_layout Plain Layout
21392 Font
21393 \end_layout
21394
21395 \end_inset
21396
21397  The font used for both the text body 
21398 \emph on
21399 and
21400 \emph default
21401  the label.
21402  See 
21403 \begin_inset CommandInset ref
21404 LatexCommand ref
21405 reference "subsec:Font-description"
21406 nolink "false"
21407
21408 \end_inset
21409
21410 .
21411  Note that defining this font automatically defines the 
21412 \begin_inset Flex Code
21413 status collapsed
21414
21415 \begin_layout Plain Layout
21416 LabelFont
21417 \end_layout
21418
21419 \end_inset
21420
21421  to the same value,
21422  so define this first and define 
21423 \begin_inset Flex Code
21424 status collapsed
21425
21426 \begin_layout Plain Layout
21427 LabelFont
21428 \end_layout
21429
21430 \end_inset
21431
21432  later if you want them to be different.
21433 \end_layout
21434
21435 \begin_layout Description
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 FixedWidthPreambleEncoding
21441 \end_layout
21442
21443 \end_inset
21444
21445  [
21446 \begin_inset Flex Code
21447 status collapsed
21448
21449 \begin_layout Plain Layout
21450
21451 \emph on
21452 0
21453 \end_layout
21454
21455 \end_inset
21456
21457 ,
21458 \begin_inset space \thinspace{}
21459 \end_inset
21460
21461
21462 \begin_inset Flex Code
21463 status collapsed
21464
21465 \begin_layout Plain Layout
21466 1
21467 \end_layout
21468
21469 \end_inset
21470
21471 ] Force a fixed width encoding for the translated contents of 
21472 \begin_inset Flex Code
21473 status collapsed
21474
21475 \begin_layout Plain Layout
21476 BabelPreamble
21477 \end_layout
21478
21479 \end_inset
21480
21481  and 
21482 \begin_inset Flex Code
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 LangPreamble
21487 \end_layout
21488
21489 \end_inset
21490
21491  code generated by this layout.
21492  This is needed for special \SpecialChar LaTeX
21493 -packages like 
21494 \family typewriter
21495 listings
21496 \family default
21497  that do not work with variable width encodings such as 
21498 \family sans
21499 utf8
21500 \family default
21501 .
21502  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
21503  backends such as Xe\SpecialChar TeX
21504  or Lua\SpecialChar TeX
21505  are used.
21506 \end_layout
21507
21508 \begin_layout Description
21509 \begin_inset Flex Code
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 ForceLocalFontSwitch
21514 \end_layout
21515
21516 \end_inset
21517
21518  [
21519 \begin_inset Flex Code
21520 status collapsed
21521
21522 \begin_layout Plain Layout
21523
21524 \emph on
21525 0
21526 \end_layout
21527
21528 \end_inset
21529
21530 ,
21531 \begin_inset space \thinspace{}
21532 \end_inset
21533
21534
21535 \begin_inset Flex Code
21536 status collapsed
21537
21538 \begin_layout Plain Layout
21539 1
21540 \end_layout
21541
21542 \end_inset
21543
21544 ] When using babel,
21545  always use a local font switch (
21546 \begin_inset Flex Code
21547 status collapsed
21548
21549 \begin_layout Plain Layout
21550
21551 \backslash
21552 foreignlanguage
21553 \end_layout
21554
21555 \end_inset
21556
21557 ),
21558  never a global one (such as 
21559 \begin_inset Flex Code
21560 status collapsed
21561
21562 \begin_layout Plain Layout
21563
21564 \backslash
21565 selectlanguage
21566 \end_layout
21567
21568 \end_inset
21569
21570 ).
21571 \end_layout
21572
21573 \begin_layout Description
21574 \begin_inset Flex Code
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578 ForceLTR
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 ] Force the 
21610 \begin_inset Quotes eld
21611 \end_inset
21612
21613 latex
21614 \begin_inset Quotes erd
21615 \end_inset
21616
21617  language,
21618  leading to Left-to-Right (Latin) output,
21619  e.
21620 \begin_inset space \thinspace{}
21621 \end_inset
21622
21623 g.
21624 \begin_inset space \space{}
21625 \end_inset
21626
21627 in \SpecialChar TeX
21628  code or URL.
21629  A kludge.
21630 \end_layout
21631
21632 \begin_layout Description
21633 \begin_inset Flex Code
21634 status collapsed
21635
21636 \begin_layout Plain Layout
21637 ForceOwnlines
21638 \end_layout
21639
21640 \end_inset
21641
21642  [
21643 \begin_inset Flex Code
21644 status collapsed
21645
21646 \begin_layout Plain Layout
21647
21648 \emph on
21649 0
21650 \end_layout
21651
21652 \end_inset
21653
21654 ,
21655 \begin_inset space \thinspace{}
21656 \end_inset
21657
21658
21659 \begin_inset Flex Code
21660 status collapsed
21661
21662 \begin_layout Plain Layout
21663 1
21664 \end_layout
21665
21666 \end_inset
21667
21668 ] Force a line break in the \SpecialChar LaTeX
21669  output before the inset starts and after the inset ends.
21670  This assures the inset itself is output on its own lines,
21671  for parsing purposes.
21672 \end_layout
21673
21674 \begin_layout Description
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679 ForcePlain
21680 \end_layout
21681
21682 \end_inset
21683
21684  [
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689
21690 \emph on
21691 0
21692 \end_layout
21693
21694 \end_inset
21695
21696 ,
21697 \begin_inset space \thinspace{}
21698 \end_inset
21699
21700
21701 \begin_inset Flex Code
21702 status collapsed
21703
21704 \begin_layout Plain Layout
21705 1
21706 \end_layout
21707
21708 \end_inset
21709
21710 ] Indicates whether the 
21711 \begin_inset Flex Code
21712 status collapsed
21713
21714 \begin_layout Plain Layout
21715 PlainLayout
21716 \end_layout
21717
21718 \end_inset
21719
21720  should be used or,
21721  instead,
21722  the user can change the paragraph style used in the inset.
21723  Default is false.
21724 \end_layout
21725
21726 \begin_layout Description
21727 \begin_inset Flex Code
21728 status collapsed
21729
21730 \begin_layout Plain Layout
21731 FreeSpacing
21732 \end_layout
21733
21734 \end_inset
21735
21736  [
21737 \begin_inset Flex Code
21738 status collapsed
21739
21740 \begin_layout Plain Layout
21741
21742 \emph on
21743 0
21744 \end_layout
21745
21746 \end_inset
21747
21748 ,
21749 \begin_inset space \thinspace{}
21750 \end_inset
21751
21752
21753 \begin_inset Flex Code
21754 status collapsed
21755
21756 \begin_layout Plain Layout
21757 1
21758 \end_layout
21759
21760 \end_inset
21761
21762 ] As with paragraph styles,
21763  see 
21764 \begin_inset CommandInset ref
21765 LatexCommand ref
21766 reference "subsec:Paragraph-Styles"
21767 nolink "false"
21768
21769 \end_inset
21770
21771 .
21772 \end_layout
21773
21774 \begin_layout Description
21775 \begin_inset Flex Code
21776 status collapsed
21777
21778 \begin_layout Plain Layout
21779 HTML*
21780 \end_layout
21781
21782 \end_inset
21783
21784  These tags control the XHTML output.
21785  See 
21786 \begin_inset CommandInset ref
21787 LatexCommand ref
21788 reference "sec:Tags-for-XHTML"
21789 nolink "false"
21790
21791 \end_inset
21792
21793 .
21794 \end_layout
21795
21796 \begin_layout Description
21797 \begin_inset Flex Code
21798 status collapsed
21799
21800 \begin_layout Plain Layout
21801 InToc
21802 \end_layout
21803
21804 \end_inset
21805
21806  [
21807 \begin_inset Flex Code
21808 status collapsed
21809
21810 \begin_layout Plain Layout
21811
21812 \emph on
21813 0
21814 \end_layout
21815
21816 \end_inset
21817
21818 ,
21819 \begin_inset space \thinspace{}
21820 \end_inset
21821
21822
21823 \begin_inset Flex Code
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 1
21828 \end_layout
21829
21830 \end_inset
21831
21832 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
21833  regardless of the AddToToc setting.
21834  One would not,
21835  for example,
21836  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
21837  but one would normally want the content of a character style displayed.
21838  Default is false:
21839  not to include.
21840 \end_layout
21841
21842 \begin_layout Description
21843 \begin_inset Flex Code
21844 status collapsed
21845
21846 \begin_layout Plain Layout
21847 IsTocCaption
21848 \end_layout
21849
21850 \end_inset
21851
21852  [
21853 \begin_inset Flex Code
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857
21858 \emph on
21859 0
21860 \end_layout
21861
21862 \end_inset
21863
21864 ,
21865 \begin_inset space \thinspace{}
21866 \end_inset
21867
21868
21869 \begin_inset Flex Code
21870 status collapsed
21871
21872 \begin_layout Plain Layout
21873 1
21874 \end_layout
21875
21876 \end_inset
21877
21878 ] If this is set to 1 and AddToToc is enabled,
21879  the inset adds a summary of its contents in its item in the table of contents.
21880  Otherwise,
21881  only the label appears.
21882 \end_layout
21883
21884 \begin_layout Description
21885 \begin_inset Flex Code
21886 status collapsed
21887
21888 \begin_layout Plain Layout
21889 KeepEmpty
21890 \end_layout
21891
21892 \end_inset
21893
21894  [
21895 \emph on
21896
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901 0
21902 \end_layout
21903
21904 \end_inset
21905
21906
21907 \emph default
21908 ,
21909 \begin_inset space \thinspace{}
21910 \end_inset
21911
21912
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917 1
21918 \end_layout
21919
21920 \end_inset
21921
21922 ] As with paragraph styles,
21923  see 
21924 \begin_inset CommandInset ref
21925 LatexCommand ref
21926 reference "subsec:Paragraph-Styles"
21927 nolink "false"
21928
21929 \end_inset
21930
21931 .
21932 \end_layout
21933
21934 \begin_layout Description
21935 \begin_inset Flex Code
21936 status collapsed
21937
21938 \begin_layout Plain Layout
21939 LabelFont
21940 \end_layout
21941
21942 \end_inset
21943
21944  The font used for the label.
21945  See 
21946 \begin_inset CommandInset ref
21947 LatexCommand ref
21948 reference "subsec:Font-description"
21949 nolink "false"
21950
21951 \end_inset
21952
21953 .
21954  Note that this definition can never appear before 
21955 \begin_inset Flex Code
21956 status collapsed
21957
21958 \begin_layout Plain Layout
21959 Font
21960 \end_layout
21961
21962 \end_inset
21963
21964 ,
21965  lest it be ineffective.
21966 \end_layout
21967
21968 \begin_layout Description
21969 \begin_inset Flex Code
21970 status collapsed
21971
21972 \begin_layout Plain Layout
21973 LabelString
21974 \end_layout
21975
21976 \end_inset
21977
21978  [
21979 \begin_inset Flex Code
21980 status collapsed
21981
21982 \begin_layout Plain Layout
21983 string
21984 \end_layout
21985
21986 \end_inset
21987
21988 =
21989 \begin_inset Quotes erd
21990 \end_inset
21991
21992
21993 \begin_inset Quotes erd
21994 \end_inset
21995
21996 ] What will be displayed on the button or elsewhere as the inset label.
21997  Some inset types (
21998 \begin_inset Flex Code
21999 status collapsed
22000
22001 \begin_layout Plain Layout
22002 \SpecialChar TeX
22003  code
22004 \end_layout
22005
22006 \end_inset
22007
22008  and 
22009 \begin_inset Flex Code
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013 Branch
22014 \end_layout
22015
22016 \end_inset
22017
22018 ) modify this label on the fly.
22019 \end_layout
22020
22021 \begin_layout Description
22022 \begin_inset Flex Code
22023 status collapsed
22024
22025 \begin_layout Plain Layout
22026 LangPreamble
22027 \end_layout
22028
22029 \end_inset
22030
22031  Language dependent preamble;
22032  see 
22033 \begin_inset CommandInset ref
22034 LatexCommand ref
22035 reference "subsec:I18n"
22036 nolink "false"
22037
22038 \end_inset
22039
22040 .
22041 \end_layout
22042
22043 \begin_layout Description
22044 \begin_inset Flex Code
22045 status collapsed
22046
22047 \begin_layout Plain Layout
22048 LatexName
22049 \end_layout
22050
22051 \end_inset
22052
22053  [
22054 \begin_inset Flex Code
22055 status collapsed
22056
22057 \begin_layout Plain Layout
22058 <name>
22059 \end_layout
22060
22061 \end_inset
22062
22063 ] The name of the corresponding \SpecialChar LaTeX
22064  stuff.
22065  Either the environment or command name.
22066 \end_layout
22067
22068 \begin_layout Description
22069 \begin_inset Flex Code
22070 status collapsed
22071
22072 \begin_layout Plain Layout
22073 LatexParam
22074 \end_layout
22075
22076 \end_inset
22077
22078  [
22079 \begin_inset Flex Code
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 <parameter>
22084 \end_layout
22085
22086 \end_inset
22087
22088 ] The optional parameter for the corresponding 
22089 \begin_inset Flex Code
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093 LatexName
22094 \end_layout
22095
22096 \end_inset
22097
22098  stuff,
22099  including possible bracket pairs like 
22100 \begin_inset Flex Code
22101 status collapsed
22102
22103 \begin_layout Plain Layout
22104 []
22105 \end_layout
22106
22107 \end_inset
22108
22109 .
22110  This parameter cannot be changed from within \SpecialChar LyX
22111  (use 
22112 \begin_inset Flex Code
22113 status collapsed
22114
22115 \begin_layout Plain Layout
22116 Argument
22117 \end_layout
22118
22119 \end_inset
22120
22121  for customizable parameters).
22122  It will be output as is after all \SpecialChar LaTeX
22123  
22124 \begin_inset Flex Code
22125 status collapsed
22126
22127 \begin_layout Plain Layout
22128 Argument
22129 \end_layout
22130
22131 \end_inset
22132
22133 s.
22134 \end_layout
22135
22136 \begin_layout Description
22137 \begin_inset Flex Code
22138 status collapsed
22139
22140 \begin_layout Plain Layout
22141 LatexType
22142 \end_layout
22143
22144 \end_inset
22145
22146  [
22147 \begin_inset Flex Code
22148 status collapsed
22149
22150 \begin_layout Plain Layout
22151 Command,
22152  Environment,
22153  None
22154 \end_layout
22155
22156 \end_inset
22157
22158 ] How the style should be translated into \SpecialChar LaTeX
22159 .
22160 \begin_inset Foot
22161 status collapsed
22162
22163 \begin_layout Plain Layout
22164 \begin_inset Flex Code
22165 status collapsed
22166
22167 \begin_layout Plain Layout
22168 LatexType
22169 \end_layout
22170
22171 \end_inset
22172
22173  is perhaps a bit misleading,
22174  since these rules apply to SGML classes too.
22175  Visit the SGML class files for specific examples.
22176 \end_layout
22177
22178 \end_inset
22179
22180
22181 \end_layout
22182
22183 \begin_deeper
22184 \begin_layout Description
22185 \begin_inset Flex Code
22186 status collapsed
22187
22188 \begin_layout Plain Layout
22189 None
22190 \end_layout
22191
22192 \end_inset
22193
22194  means nothing special
22195 \end_layout
22196
22197 \begin_layout Description
22198 \begin_inset Flex Code
22199 status collapsed
22200
22201 \begin_layout Plain Layout
22202 Command
22203 \end_layout
22204
22205 \end_inset
22206
22207  means 
22208 \begin_inset Flex Code
22209 status collapsed
22210
22211 \begin_layout Plain Layout
22212
22213 \backslash
22214
22215 \emph on
22216 LatexName
22217 \emph default
22218 {\SpecialChar ldots
22219 }
22220 \end_layout
22221
22222 \end_inset
22223
22224
22225 \end_layout
22226
22227 \begin_layout Description
22228 \begin_inset Flex Code
22229 status collapsed
22230
22231 \begin_layout Plain Layout
22232 Environment
22233 \end_layout
22234
22235 \end_inset
22236
22237  means 
22238 \begin_inset Flex Code
22239 status collapsed
22240
22241 \begin_layout Plain Layout
22242
22243 \backslash
22244 begin{
22245 \emph on
22246 LatexName
22247 \emph default
22248 }\SpecialChar ldots
22249
22250 \backslash
22251 end{
22252 \emph on
22253 LatexName
22254 \emph default
22255 }
22256 \end_layout
22257
22258 \end_inset
22259
22260
22261 \end_layout
22262
22263 \begin_layout Standard
22264 Putting the last few things together,
22265  the \SpecialChar LaTeX
22266  output will be either:
22267  
22268 \end_layout
22269
22270 \begin_layout LyX-Code
22271
22272 \backslash
22273 LatexName[LatexParam]{\SpecialChar ldots
22274 }
22275 \end_layout
22276
22277 \begin_layout Standard
22278 or:
22279  
22280 \end_layout
22281
22282 \begin_layout LyX-Code
22283
22284 \backslash
22285 begin{LatexName}[LatexParam] \SpecialChar ldots
22286  
22287 \backslash
22288 end{LatexName}
22289 \end_layout
22290
22291 \begin_layout Standard
22292 depending upon the \SpecialChar LaTeX
22293  type.
22294 \end_layout
22295
22296 \end_deeper
22297 \begin_layout Description
22298 \begin_inset Flex Code
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 LeftDelim
22303 \end_layout
22304
22305 \end_inset
22306
22307  [
22308 \begin_inset Flex Code
22309 status collapsed
22310
22311 \begin_layout Plain Layout
22312 string
22313 \end_layout
22314
22315 \end_inset
22316
22317 ] A string that is put at the beginning of the layout content.
22318  A line break in the output can be indicated by 
22319 \begin_inset Flex Code
22320 status collapsed
22321
22322 \begin_layout Plain Layout
22323 <br/>
22324 \end_layout
22325
22326 \end_inset
22327
22328 .
22329 \end_layout
22330
22331 \begin_layout Description
22332 \begin_inset Flex Code
22333 status collapsed
22334
22335 \begin_layout Plain Layout
22336 LyxType
22337 \end_layout
22338
22339 \end_inset
22340
22341  Can be 
22342 \begin_inset Flex Code
22343 status collapsed
22344
22345 \begin_layout Plain Layout
22346 charstyle
22347 \end_layout
22348
22349 \end_inset
22350
22351 ,
22352  
22353 \begin_inset Flex Code
22354 status collapsed
22355
22356 \begin_layout Plain Layout
22357 custom
22358 \end_layout
22359
22360 \end_inset
22361
22362 ,
22363  
22364 \change_deleted -584632292 1615846609
22365
22366 \begin_inset Flex Code
22367 status collapsed
22368
22369 \begin_layout Plain Layout
22370 element
22371 \end_layout
22372
22373 \end_inset
22374
22375  
22376 \change_unchanged
22377 or 
22378 \begin_inset Flex Code
22379 status collapsed
22380
22381 \begin_layout Plain Layout
22382 end
22383 \end_layout
22384
22385 \end_inset
22386
22387  (indicating a dummy definition ending definitions of charstyles,
22388  etc).
22389  This entry is required in and is only meaningful for Flex insets.
22390  Among other things,
22391  it determines on which menu this inset will appear.
22392  Setting 
22393 \begin_inset Flex Code
22394 status collapsed
22395
22396 \begin_layout Plain Layout
22397 LyxType
22398 \end_layout
22399
22400 \end_inset
22401
22402  to 
22403 \begin_inset Flex Code
22404 status collapsed
22405
22406 \begin_layout Plain Layout
22407 charstyle
22408 \end_layout
22409
22410 \end_inset
22411
22412  will automatically set 
22413 \begin_inset Flex Code
22414 status collapsed
22415
22416 \begin_layout Plain Layout
22417 MultiPar
22418 \end_layout
22419
22420 \end_inset
22421
22422  to false and 
22423 \begin_inset Flex Code
22424 status collapsed
22425
22426 \begin_layout Plain Layout
22427 ForcePlain
22428 \end_layout
22429
22430 \end_inset
22431
22432  to true.
22433  
22434 \begin_inset Flex Code
22435 status collapsed
22436
22437 \begin_layout Plain Layout
22438 MultiPar
22439 \end_layout
22440
22441 \end_inset
22442
22443  can be set to true,
22444  or 
22445 \begin_inset Flex Code
22446 status collapsed
22447
22448 \begin_layout Plain Layout
22449 ForcePlain
22450 \end_layout
22451
22452 \end_inset
22453
22454  to false,
22455  for 
22456 \begin_inset Flex Code
22457 status collapsed
22458
22459 \begin_layout Plain Layout
22460 charstyle
22461 \end_layout
22462
22463 \end_inset
22464
22465  insets by setting it 
22466 \emph on
22467 after
22468 \emph default
22469  you set the 
22470 \begin_inset Flex Code
22471 status collapsed
22472
22473 \begin_layout Plain Layout
22474 LyxType
22475 \end_layout
22476
22477 \end_inset
22478
22479 .
22480 \change_inserted -712698321 1555575738
22481
22482 \end_layout
22483
22484 \begin_layout Description
22485
22486 \change_inserted -712698321 1555575844
22487 \begin_inset Flex Code
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491
22492 \change_inserted -712698321 1555575740
22493 MenuString
22494 \change_unchanged
22495
22496 \end_layout
22497
22498 \end_inset
22499
22500  
22501 \begin_inset Flex Code
22502 status collapsed
22503
22504 \begin_layout Plain Layout
22505
22506 \change_inserted -712698321 1555575740
22507 [string]
22508 \change_unchanged
22509
22510 \end_layout
22511
22512 \end_inset
22513
22514  A dedicated string for the menu.
22515  You can define an accelerator by appending the respective character to the string,
22516  divided by 
22517 \begin_inset Quotes eld
22518 \end_inset
22519
22520 |
22521 \begin_inset Quotes erd
22522 \end_inset
22523
22524  (e.
22525 \begin_inset space \thinspace{}
22526 \end_inset
22527
22528 g.
22529 \begin_inset space \space{}
22530 \end_inset
22531
22532
22533 \begin_inset Quotes eld
22534 \end_inset
22535
22536
22537 \begin_inset Flex Code
22538 status collapsed
22539
22540 \begin_layout Plain Layout
22541
22542 \change_inserted -712698321 1555575781
22543 My Inset|M
22544 \change_unchanged
22545
22546 \end_layout
22547
22548 \end_inset
22549
22550
22551 \begin_inset Quotes erd
22552 \end_inset
22553
22554 ).
22555  This specification is optional.
22556  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
22557 \change_unchanged
22558
22559 \end_layout
22560
22561 \begin_layout Description
22562 \begin_inset Flex Code
22563 status collapsed
22564
22565 \begin_layout Plain Layout
22566 MultiPar
22567 \end_layout
22568
22569 \end_inset
22570
22571  [
22572 \begin_inset Flex Code
22573 status collapsed
22574
22575 \begin_layout Plain Layout
22576
22577 \emph on
22578 0
22579 \end_layout
22580
22581 \end_inset
22582
22583 ,
22584 \begin_inset space \thinspace{}
22585 \end_inset
22586
22587
22588 \begin_inset Flex Code
22589 status collapsed
22590
22591 \begin_layout Plain Layout
22592 1
22593 \end_layout
22594
22595 \end_inset
22596
22597 ] Whether multiple paragraphs are permitted in this inset.
22598  This will also set 
22599 \begin_inset Flex Code
22600 status collapsed
22601
22602 \begin_layout Plain Layout
22603 CustomPars
22604 \end_layout
22605
22606 \end_inset
22607
22608  to the same value and 
22609 \begin_inset Flex Code
22610 status collapsed
22611
22612 \begin_layout Plain Layout
22613 ForcePlain
22614 \end_layout
22615
22616 \end_inset
22617
22618  to the opposite value.
22619  These can be reset to other values,
22620  if they are used 
22621 \emph on
22622 after
22623 \emph default
22624  
22625 \begin_inset Flex Code
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629 MultiPar
22630 \end_layout
22631
22632 \end_inset
22633
22634 .
22635  Default is true.
22636 \end_layout
22637
22638 \begin_layout Description
22639 \begin_inset Flex Code
22640 status collapsed
22641
22642 \begin_layout Plain Layout
22643 NeedProtect
22644 \end_layout
22645
22646 \end_inset
22647
22648  [
22649 \begin_inset Flex Code
22650 status collapsed
22651
22652 \begin_layout Plain Layout
22653
22654 \emph on
22655 0
22656 \end_layout
22657
22658 \end_inset
22659
22660 ,
22661 \begin_inset space \thinspace{}
22662 \end_inset
22663
22664
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 1
22670 \end_layout
22671
22672 \end_inset
22673
22674 ] Whether fragile commands in this inset should be 
22675 \begin_inset Flex Code
22676 status collapsed
22677
22678 \begin_layout Plain Layout
22679
22680 \backslash
22681 protect
22682 \end_layout
22683
22684 \end_inset
22685
22686 'ed.
22687  (Note:
22688  This is 
22689 \emph on
22690 not
22691 \emph default
22692  whether the command should itself be protected.) Default is false.
22693 \change_inserted -712698321 1523633958
22694
22695 \end_layout
22696
22697 \begin_layout Description
22698
22699 \change_inserted -712698321 1552395786
22700 \begin_inset Flex Code
22701 status collapsed
22702
22703 \begin_layout Plain Layout
22704
22705 \change_inserted -712698321 1523633961
22706 NeedCProtect
22707 \change_unchanged
22708
22709 \end_layout
22710
22711 \end_inset
22712
22713  [
22714 \begin_inset Flex Code
22715 status collapsed
22716
22717 \begin_layout Plain Layout
22718
22719 \change_inserted -712698321 1523633958
22720
22721 \emph on
22722 0
22723 \change_unchanged
22724
22725 \end_layout
22726
22727 \end_inset
22728
22729 ,
22730 \begin_inset space \thinspace{}
22731 \end_inset
22732
22733
22734 \begin_inset Flex Code
22735 status collapsed
22736
22737 \begin_layout Plain Layout
22738
22739 \change_inserted -712698321 1523633958
22740 1
22741 \change_unchanged
22742
22743 \end_layout
22744
22745 \end_inset
22746
22747 ] This causes macros that contain this inset to be protected with 
22748 \begin_inset Flex Code
22749 status collapsed
22750
22751 \begin_layout Plain Layout
22752
22753 \change_inserted -712698321 1523634038
22754
22755 \backslash
22756 cprotect
22757 \change_unchanged
22758
22759 \end_layout
22760
22761 \end_inset
22762
22763  (cf.
22764  package 
22765 \family sans
22766 cprotect
22767 \family default
22768 ) if necessary and thus allows (some) verbatim stuff in macros.
22769  Default is false.
22770 \end_layout
22771
22772 \begin_layout Description
22773
22774 \change_inserted -712698321 1555579651
22775 \begin_inset Flex Code
22776 status collapsed
22777
22778 \begin_layout Plain Layout
22779
22780 \change_inserted -712698321 1552395787
22781 NeedMBoxProtect
22782 \change_unchanged
22783
22784 \end_layout
22785
22786 \end_inset
22787
22788  [
22789 \begin_inset Flex Code
22790 status collapsed
22791
22792 \begin_layout Plain Layout
22793
22794 \change_inserted -712698321 1552395787
22795
22796 \emph on
22797 0
22798 \change_unchanged
22799
22800 \end_layout
22801
22802 \end_inset
22803
22804 ,
22805 \begin_inset space \thinspace{}
22806 \end_inset
22807
22808
22809 \begin_inset Flex Code
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813
22814 \change_inserted -712698321 1552395787
22815 1
22816 \change_unchanged
22817
22818 \end_layout
22819
22820 \end_inset
22821
22822 ] Whether specific commands in this inset (such as 
22823 \begin_inset Flex Code
22824 status collapsed
22825
22826 \begin_layout Plain Layout
22827
22828 \change_inserted -712698321 1552395787
22829
22830 \backslash
22831 cite
22832 \change_unchanged
22833
22834 \end_layout
22835
22836 \end_inset
22837
22838  and 
22839 \begin_inset Flex Code
22840 status collapsed
22841
22842 \begin_layout Plain Layout
22843
22844 \change_inserted -712698321 1552395787
22845
22846 \backslash
22847 ref
22848 \change_unchanged
22849
22850 \end_layout
22851
22852 \end_inset
22853
22854 ) should be protected in an 
22855 \begin_inset Flex Code
22856 status collapsed
22857
22858 \begin_layout Plain Layout
22859
22860 \change_inserted -712698321 1552395787
22861
22862 \backslash
22863 mbox
22864 \change_unchanged
22865
22866 \end_layout
22867
22868 \end_inset
22869
22870 .
22871  This is particularly needed for insets that draw on 
22872 \family sans
22873 ulem
22874 \family default
22875  or 
22876 \family sans
22877 soul
22878 \family default
22879  commands which parse their content in complex ways.
22880  Default is false.
22881 \end_layout
22882
22883 \begin_layout Description
22884
22885 \change_inserted -712698321 1555579742
22886 \begin_inset Flex Code
22887 status collapsed
22888
22889 \begin_layout Plain Layout
22890
22891 \change_inserted -712698321 1555579658
22892 NewlineCmd
22893 \change_unchanged
22894
22895 \end_layout
22896
22897 \end_inset
22898
22899  
22900 \begin_inset Flex Code
22901 status collapsed
22902
22903 \begin_layout Plain Layout
22904
22905 \change_inserted -712698321 1555579651
22906 [string]
22907 \change_unchanged
22908
22909 \end_layout
22910
22911 \end_inset
22912
22913  Option to define a different command (from the default 
22914 \begin_inset Flex Code
22915 status collapsed
22916
22917 \begin_layout Plain Layout
22918
22919 \change_inserted -712698321 1555579742
22920
22921 \backslash
22922
22923 \backslash
22924
22925 \change_unchanged
22926
22927 \end_layout
22928
22929 \end_inset
22930
22931 ) to be used for line breaks.
22932  The initial backslash must not be specified.
22933 \change_unchanged
22934
22935 \end_layout
22936
22937 \begin_layout Description
22938 \begin_inset Flex Code
22939 status collapsed
22940
22941 \begin_layout Plain Layout
22942 NoInsetLayout
22943 \end_layout
22944
22945 \end_inset
22946
22947  [
22948 \begin_inset Flex Code
22949 status collapsed
22950
22951 \begin_layout Plain Layout
22952 <layout>
22953 \end_layout
22954
22955 \end_inset
22956
22957 ] Deletes an existing 
22958 \begin_inset Flex Code
22959 status collapsed
22960
22961 \begin_layout Plain Layout
22962 InsetLayout
22963 \end_layout
22964
22965 \end_inset
22966
22967 .
22968 \end_layout
22969
22970 \begin_layout Description
22971 \begin_inset Flex Code
22972 status collapsed
22973
22974 \begin_layout Plain Layout
22975 ObsoletedBy
22976 \end_layout
22977
22978 \end_inset
22979
22980  [
22981 \begin_inset Flex Code
22982 status collapsed
22983
22984 \begin_layout Plain Layout
22985 <layout>
22986 \end_layout
22987
22988 \end_inset
22989
22990 ] Name of an 
22991 \begin_inset Flex Code
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995 InsetLayout
22996 \end_layout
22997
22998 \end_inset
22999
23000  that has replaced this 
23001 \begin_inset Flex Code
23002 status collapsed
23003
23004 \begin_layout Plain Layout
23005 InsetLayout
23006 \end_layout
23007
23008 \end_inset
23009
23010 .
23011  This is used to rename an 
23012 \begin_inset Flex Code
23013 status collapsed
23014
23015 \begin_layout Plain Layout
23016 InsetLayout
23017 \end_layout
23018
23019 \end_inset
23020
23021 ,
23022  while keeping backward compatibility.
23023 \change_inserted -712698321 1559491850
23024
23025 \end_layout
23026
23027 \begin_layout Description
23028
23029 \change_inserted -712698321 1559492002
23030 \begin_inset Flex Code
23031 status collapsed
23032
23033 \begin_layout Plain Layout
23034
23035 \change_inserted -712698321 1559491854
23036 ParbreakIgnored
23037 \change_unchanged
23038
23039 \end_layout
23040
23041 \end_inset
23042
23043  [
23044 \begin_inset Flex Code
23045 status collapsed
23046
23047 \begin_layout Plain Layout
23048
23049 \change_inserted -712698321 1559491850
23050
23051 \emph on
23052 0
23053 \change_unchanged
23054
23055 \end_layout
23056
23057 \end_inset
23058
23059 ,
23060 \begin_inset space \thinspace{}
23061 \end_inset
23062
23063
23064 \begin_inset Flex Code
23065 status collapsed
23066
23067 \begin_layout Plain Layout
23068
23069 \change_inserted -712698321 1559491850
23070 1
23071 \change_unchanged
23072
23073 \end_layout
23074
23075 \end_inset
23076
23077 ] If this is set to 
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082
23083 \change_inserted -712698321 1559491881
23084 1
23085 \change_unchanged
23086
23087 \end_layout
23088
23089 \end_inset
23090
23091 ,
23092  paragraph breaks will be ignored in the output.
23093  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
23094  workarea,
23095  without any effect in the output.
23096 \change_unchanged
23097
23098 \end_layout
23099
23100 \begin_layout Description
23101 \begin_inset Flex Code
23102 status collapsed
23103
23104 \begin_layout Plain Layout
23105 ParbreakIsNewline
23106 \end_layout
23107
23108 \end_inset
23109
23110  [
23111 \begin_inset Flex Code
23112 status collapsed
23113
23114 \begin_layout Plain Layout
23115
23116 \emph on
23117 0
23118 \end_layout
23119
23120 \end_inset
23121
23122 ,
23123 \begin_inset space \thinspace{}
23124 \end_inset
23125
23126
23127 \begin_inset Flex Code
23128 status collapsed
23129
23130 \begin_layout Plain Layout
23131 1
23132 \end_layout
23133
23134 \end_inset
23135
23136 ] As with paragraph styles,
23137  see 
23138 \begin_inset CommandInset ref
23139 LatexCommand ref
23140 reference "subsec:Paragraph-Styles"
23141 nolink "false"
23142
23143 \end_inset
23144
23145 .
23146  Default is false.
23147 \end_layout
23148
23149 \begin_layout Description
23150 \begin_inset Flex Code
23151 status collapsed
23152
23153 \begin_layout Plain Layout
23154 PassThru
23155 \end_layout
23156
23157 \end_inset
23158
23159  [
23160 \begin_inset Flex Code
23161 status collapsed
23162
23163 \begin_layout Plain Layout
23164
23165 \emph on
23166 0
23167 \end_layout
23168
23169 \end_inset
23170
23171 ,
23172 \begin_inset space \thinspace{}
23173 \end_inset
23174
23175
23176 \begin_inset Flex Code
23177 status collapsed
23178
23179 \begin_layout Plain Layout
23180 1
23181 \end_layout
23182
23183 \end_inset
23184
23185 ] As with paragraph styles,
23186  see 
23187 \begin_inset CommandInset ref
23188 LatexCommand ref
23189 reference "subsec:Paragraph-Styles"
23190 nolink "false"
23191
23192 \end_inset
23193
23194 .
23195  Default is false.
23196 \end_layout
23197
23198 \begin_layout Description
23199 \begin_inset Flex Code
23200 status collapsed
23201
23202 \begin_layout Plain Layout
23203 Preamble
23204 \end_layout
23205
23206 \end_inset
23207
23208  As with paragraph styles,
23209  see 
23210 \begin_inset CommandInset ref
23211 LatexCommand ref
23212 reference "subsec:Paragraph-Styles"
23213 nolink "false"
23214
23215 \end_inset
23216
23217 .
23218 \end_layout
23219
23220 \begin_layout Description
23221 \begin_inset Flex Code
23222 status collapsed
23223
23224 \begin_layout Plain Layout
23225 RefPrefix
23226 \end_layout
23227
23228 \end_inset
23229
23230  [
23231 \begin_inset Flex Code
23232 status collapsed
23233
23234 \begin_layout Plain Layout
23235 string
23236 \end_layout
23237
23238 \end_inset
23239
23240 ] The prefix to use when creating labels referring to insets of this type.
23241  This allows the use of formatted references.
23242 \end_layout
23243
23244 \begin_layout Description
23245 \begin_inset Flex Code
23246 status collapsed
23247
23248 \begin_layout Plain Layout
23249 Requires
23250 \end_layout
23251
23252 \end_inset
23253
23254  [
23255 \begin_inset Flex Code
23256 status collapsed
23257
23258 \begin_layout Plain Layout
23259 string
23260 \end_layout
23261
23262 \end_inset
23263
23264 ] As with paragraph styles,
23265  see 
23266 \begin_inset CommandInset ref
23267 LatexCommand ref
23268 reference "subsec:Paragraph-Styles"
23269 nolink "false"
23270
23271 \end_inset
23272
23273 .
23274 \end_layout
23275
23276 \begin_layout Description
23277 \begin_inset Flex Code
23278 status collapsed
23279
23280 \begin_layout Plain Layout
23281 ResetArgs
23282 \end_layout
23283
23284 \end_inset
23285
23286  [
23287 \begin_inset Flex Code
23288 status collapsed
23289
23290 \begin_layout Plain Layout
23291
23292 \emph on
23293 0
23294 \end_layout
23295
23296 \end_inset
23297
23298 ,
23299 \begin_inset space \thinspace{}
23300 \end_inset
23301
23302
23303 \begin_inset Flex Code
23304 status collapsed
23305
23306 \begin_layout Plain Layout
23307 1
23308 \end_layout
23309
23310 \end_inset
23311
23312 ] Resets the \SpecialChar LaTeX
23313  arguments of this layout (as defined via the 
23314 \begin_inset Flex Code
23315 status collapsed
23316
23317 \begin_layout Plain Layout
23318 Argument
23319 \end_layout
23320
23321 \end_inset
23322
23323  tag).
23324  This is useful if you have copied a style via 
23325 \begin_inset Flex Code
23326 status collapsed
23327
23328 \begin_layout Plain Layout
23329 CopyStyle
23330 \end_layout
23331
23332 \end_inset
23333
23334 ,
23335  but you do not want to inherit its (required and optional) arguments.
23336 \end_layout
23337
23338 \begin_layout Description
23339 \begin_inset Flex Code
23340 status collapsed
23341
23342 \begin_layout Plain Layout
23343 ResetsFont
23344 \end_layout
23345
23346 \end_inset
23347
23348  [
23349 \begin_inset Flex Code
23350 status collapsed
23351
23352 \begin_layout Plain Layout
23353
23354 \emph on
23355 0
23356 \end_layout
23357
23358 \end_inset
23359
23360 ,
23361 \begin_inset space \thinspace{}
23362 \end_inset
23363
23364
23365 \begin_inset Flex Code
23366 status collapsed
23367
23368 \begin_layout Plain Layout
23369 1
23370 \end_layout
23371
23372 \end_inset
23373
23374
23375 \change_inserted -712698321 1597733473
23376 If 
23377 \begin_inset Flex Code
23378 status collapsed
23379
23380 \begin_layout Plain Layout
23381
23382 \change_inserted -712698321 1597732178
23383 1
23384 \change_unchanged
23385
23386 \end_layout
23387
23388 \end_inset
23389
23390 ,
23391  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.
23392 \begin_inset space \thinspace{}
23393 \end_inset
23394
23395 g.,
23396  
23397 \begin_inset Flex Code
23398 status collapsed
23399
23400 \begin_layout Plain Layout
23401
23402 \change_inserted -712698321 1597733683
23403
23404 \backslash
23405 textbf{Sourrounding text 
23406 \backslash
23407 myinset{
23408 \backslash
23409 textbf{content}}\SpecialChar ldots
23410 }
23411 \change_unchanged
23412
23413 \end_layout
23414
23415 \end_inset
23416
23417  rather than 
23418 \begin_inset Flex Code
23419 status collapsed
23420
23421 \begin_layout Plain Layout
23422
23423 \change_inserted -712698321 1597733686
23424
23425 \backslash
23426 textbf{Sourrounding text 
23427 \backslash
23428 myinset{content}\SpecialChar ldots
23429 }
23430 \change_unchanged
23431
23432 \end_layout
23433
23434 \end_inset
23435
23436 .
23437  Setting this makes sense for commands that internally reset font settings (e.
23438 \begin_inset space \thinspace{}
23439 \end_inset
23440
23441 g.,
23442  footnotes).
23443  Note that wrongly setting this might lead to unwanted result (e.
23444 \begin_inset space \thinspace{}
23445 \end_inset
23446
23447 g.,
23448  with 
23449 \begin_inset Flex Code
23450 status collapsed
23451
23452 \begin_layout Plain Layout
23453
23454 \change_inserted -712698321 1597733688
23455
23456 \backslash
23457 emph{Sourrounding text 
23458 \backslash
23459 myinset{
23460 \backslash
23461 emph{content}}\SpecialChar ldots
23462 }
23463 \change_unchanged
23464
23465 \end_layout
23466
23467 \end_inset
23468
23469 ,
23470  content is upright,
23471  as 
23472 \begin_inset Flex Code
23473 status collapsed
23474
23475 \begin_layout Plain Layout
23476
23477 \change_inserted -712698321 1597733278
23478
23479 \backslash
23480 emph
23481 \change_unchanged
23482
23483 \end_layout
23484
23485 \end_inset
23486
23487  toggles.
23488  
23489 \change_deleted -712698321 1597733283
23490 Whether this inset should use the font of its surrounding environment or uses its own.
23491  
23492 \change_unchanged
23493 Default is 
23494 \change_deleted -712698321 1597733290
23495 false
23496 \change_inserted -712698321 1597733290
23497
23498 \begin_inset Flex Code
23499 status collapsed
23500
23501 \begin_layout Plain Layout
23502
23503 \change_inserted -712698321 1597733292
23504 0
23505 \change_unchanged
23506
23507 \end_layout
23508
23509 \end_inset
23510
23511
23512 \change_unchanged
23513 :
23514  
23515 \change_deleted -712698321 1597733327
23516 use the font of the surrounding environment
23517 \change_inserted -712698321 1597733343
23518 font changes are not redone inside the inset
23519 \change_unchanged
23520 .
23521 \end_layout
23522
23523 \begin_layout Description
23524 \begin_inset Flex Code
23525 status collapsed
23526
23527 \begin_layout Plain Layout
23528 RightDelim
23529 \end_layout
23530
23531 \end_inset
23532
23533  [
23534 \begin_inset Flex Code
23535 status collapsed
23536
23537 \begin_layout Plain Layout
23538 string
23539 \end_layout
23540
23541 \end_inset
23542
23543 ] A string that is put at the end of the layout content.
23544  A line break in the output can be indicated by 
23545 \begin_inset Flex Code
23546 status collapsed
23547
23548 \begin_layout Plain Layout
23549 <br/>
23550 \end_layout
23551
23552 \end_inset
23553
23554 .
23555 \end_layout
23556
23557 \begin_layout Description
23558 \begin_inset Flex Code
23559 status collapsed
23560
23561 \begin_layout Plain Layout
23562 Spellcheck
23563 \end_layout
23564
23565 \end_inset
23566
23567  [
23568 \begin_inset Flex Code
23569 status collapsed
23570
23571 \begin_layout Plain Layout
23572 0
23573 \end_layout
23574
23575 \end_inset
23576
23577 ,
23578 \begin_inset space \thinspace{}
23579 \end_inset
23580
23581
23582 \begin_inset Flex Code
23583 status collapsed
23584
23585 \begin_layout Plain Layout
23586
23587 \emph on
23588 1
23589 \end_layout
23590
23591 \end_inset
23592
23593 ] Allow spell-checking the contents of this inset.
23594  Default is true.
23595 \change_inserted -584632292 1615846659
23596
23597 \end_layout
23598
23599 \begin_layout Subsection
23600
23601 \change_inserted -584632292 1615846729
23602 Arguments
23603 \begin_inset CommandInset label
23604 LatexCommand label
23605 name "subsec:Arguments"
23606
23607 \end_inset
23608
23609
23610 \end_layout
23611
23612 \begin_layout Standard
23613
23614 \change_inserted -584632292 1615846807
23615 Both paragraph styles and inset layouts allow for 
23616 \emph on
23617 arguments
23618 \emph default
23619  as well as the main content.
23620  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
23621 .
23622  Each (optional or required) argument of a command or environment—
23623 except for the required argument that is associated with the content—
23624 has a separate definition,
23625  where the number specifies the order of the arguments.
23626  The definition must end with 
23627 \begin_inset Flex Code
23628 status collapsed
23629
23630 \begin_layout Plain Layout
23631
23632 \change_inserted -584632292 1615846730
23633 EndArgument
23634 \change_unchanged
23635
23636 \end_layout
23637
23638 \end_inset
23639
23640 .
23641  So a command with two optional arguments looks like:
23642 \end_layout
23643
23644 \begin_layout Quote
23645
23646 \change_inserted -584632292 1615846730
23647
23648 \family typewriter
23649 Argument 1
23650 \end_layout
23651
23652 \begin_layout Quote
23653
23654 \change_inserted -584632292 1615846730
23655
23656 \family typewriter
23657 ...
23658 \end_layout
23659
23660 \begin_layout Quote
23661
23662 \change_inserted -584632292 1615846730
23663
23664 \family typewriter
23665 EndArgument
23666 \end_layout
23667
23668 \begin_layout Quote
23669
23670 \change_inserted -584632292 1615846730
23671
23672 \family typewriter
23673 Argument 2
23674 \end_layout
23675
23676 \begin_layout Quote
23677
23678 \change_inserted -584632292 1615846730
23679
23680 \family typewriter
23681 ...
23682 \end_layout
23683
23684 \begin_layout Quote
23685
23686 \change_inserted -584632292 1615846730
23687
23688 \family typewriter
23689 EndArgument
23690 \end_layout
23691
23692 \begin_layout Standard
23693
23694 \change_inserted -584632292 1615846730
23695 Inside the 
23696 \begin_inset Flex Code
23697 status collapsed
23698
23699 \begin_layout Plain Layout
23700
23701 \change_inserted -584632292 1615846730
23702 Argument
23703 \change_unchanged
23704
23705 \end_layout
23706
23707 \end_inset
23708
23709  definition,
23710  the following specifications are possible:
23711 \end_layout
23712
23713 \begin_layout Itemize
23714
23715 \change_inserted -584632292 1615846730
23716 \begin_inset Flex Code
23717 status collapsed
23718
23719 \begin_layout Plain Layout
23720
23721 \change_inserted -584632292 1615846730
23722 LabelString
23723 \change_unchanged
23724
23725 \end_layout
23726
23727 \end_inset
23728
23729  
23730 \begin_inset Flex Code
23731 status collapsed
23732
23733 \begin_layout Plain Layout
23734
23735 \change_inserted -584632292 1615846730
23736 [string]
23737 \change_unchanged
23738
23739 \end_layout
23740
23741 \end_inset
23742
23743  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 
23744 \begin_inset Flex Code
23745 status collapsed
23746
23747 \begin_layout Plain Layout
23748
23749 \change_inserted -584632292 1615846730
23750 MenuString
23751 \change_unchanged
23752
23753 \end_layout
23754
23755 \end_inset
23756
23757 ).
23758  For the menu,
23759  you can define an accelerator by appending the respective character to the string,
23760  divided by 
23761 \begin_inset Quotes eld
23762 \end_inset
23763
23764 |
23765 \begin_inset Quotes erd
23766 \end_inset
23767
23768  (e.
23769 \begin_inset space \thinspace{}
23770 \end_inset
23771
23772 g.
23773 \begin_inset space \space{}
23774 \end_inset
23775
23776
23777 \begin_inset Quotes eld
23778 \end_inset
23779
23780
23781 \begin_inset Flex Code
23782 status collapsed
23783
23784 \begin_layout Plain Layout
23785
23786 \change_inserted -584632292 1615846730
23787 Short Title|S
23788 \change_unchanged
23789
23790 \end_layout
23791
23792 \end_inset
23793
23794
23795 \begin_inset Quotes erd
23796 \end_inset
23797
23798 ).
23799 \end_layout
23800
23801 \begin_layout Itemize
23802
23803 \change_inserted -584632292 1615846730
23804 \begin_inset Flex Code
23805 status collapsed
23806
23807 \begin_layout Plain Layout
23808
23809 \change_inserted -584632292 1615846730
23810 MenuString
23811 \change_unchanged
23812
23813 \end_layout
23814
23815 \end_inset
23816
23817  
23818 \begin_inset Flex Code
23819 status collapsed
23820
23821 \begin_layout Plain Layout
23822
23823 \change_inserted -584632292 1615846730
23824 [string]
23825 \change_unchanged
23826
23827 \end_layout
23828
23829 \end_inset
23830
23831  A separate string for the menu.
23832  You can define an accelerator by appending the respective character to the string,
23833  divided by 
23834 \begin_inset Quotes eld
23835 \end_inset
23836
23837 |
23838 \begin_inset Quotes erd
23839 \end_inset
23840
23841  (e.
23842 \begin_inset space \thinspace{}
23843 \end_inset
23844
23845 g.
23846 \begin_inset space \space{}
23847 \end_inset
23848
23849
23850 \begin_inset Quotes eld
23851 \end_inset
23852
23853
23854 \begin_inset Flex Code
23855 status collapsed
23856
23857 \begin_layout Plain Layout
23858
23859 \change_inserted -584632292 1615846730
23860 Short Title|S
23861 \change_unchanged
23862
23863 \end_layout
23864
23865 \end_inset
23866
23867
23868 \begin_inset Quotes erd
23869 \end_inset
23870
23871 ).
23872  This specification is optional.
23873  If it is not given the 
23874 \begin_inset Flex Code
23875 status collapsed
23876
23877 \begin_layout Plain Layout
23878
23879 \change_inserted -584632292 1615846730
23880 LabelString
23881 \change_unchanged
23882
23883 \end_layout
23884
23885 \end_inset
23886
23887  will be used instead for the menu.
23888 \end_layout
23889
23890 \begin_layout Itemize
23891
23892 \change_inserted -584632292 1615846730
23893 \begin_inset Flex Code
23894 status collapsed
23895
23896 \begin_layout Plain Layout
23897
23898 \change_inserted -584632292 1615846730
23899 Tooltip
23900 \change_unchanged
23901
23902 \end_layout
23903
23904 \end_inset
23905
23906  
23907 \begin_inset Flex Code
23908 status collapsed
23909
23910 \begin_layout Plain Layout
23911
23912 \change_inserted -584632292 1615846730
23913 [string]
23914 \change_unchanged
23915
23916 \end_layout
23917
23918 \end_inset
23919
23920  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
23921 \end_layout
23922
23923 \begin_layout Itemize
23924
23925 \change_inserted -584632292 1615846730
23926 \begin_inset Flex Code
23927 status collapsed
23928
23929 \begin_layout Plain Layout
23930
23931 \change_inserted -584632292 1615846730
23932 Mandatory
23933 \change_unchanged
23934
23935 \end_layout
23936
23937 \end_inset
23938
23939  [
23940 \begin_inset Flex Code
23941 status collapsed
23942
23943 \begin_layout Plain Layout
23944
23945 \change_inserted -584632292 1615846730
23946
23947 \emph on
23948 0
23949 \change_unchanged
23950
23951 \end_layout
23952
23953 \end_inset
23954
23955 ,
23956 \begin_inset space \thinspace{}
23957 \end_inset
23958
23959
23960 \begin_inset Flex Code
23961 status collapsed
23962
23963 \begin_layout Plain Layout
23964
23965 \change_inserted -584632292 1615846730
23966 1
23967 \change_unchanged
23968
23969 \end_layout
23970
23971 \end_inset
23972
23973 ] Declare if this is a mandatory (1) or an optional (0) argument.
23974  Mandatory arguments will be output empty if not given,
23975  while optional arguments will not be output at all.
23976  By default,
23977  mandatory arguments are delimited by 
23978 \begin_inset Flex Code
23979 status collapsed
23980
23981 \begin_layout Plain Layout
23982
23983 \change_inserted -584632292 1615846730
23984 {...}
23985 \change_unchanged
23986
23987 \end_layout
23988
23989 \end_inset
23990
23991 ,
23992  while optional arguments are delimited by 
23993 \begin_inset Flex Code
23994 status collapsed
23995
23996 \begin_layout Plain Layout
23997
23998 \change_inserted -584632292 1615846730
23999 [...]
24000 \change_unchanged
24001
24002 \end_layout
24003
24004 \end_inset
24005
24006
24007 \end_layout
24008
24009 \begin_layout Itemize
24010
24011 \change_inserted -584632292 1615846730
24012 \begin_inset Flex Code
24013 status collapsed
24014
24015 \begin_layout Plain Layout
24016
24017 \change_inserted -584632292 1615846730
24018 NewlineCmd
24019 \change_unchanged
24020
24021 \end_layout
24022
24023 \end_inset
24024
24025  
24026 \begin_inset Flex Code
24027 status collapsed
24028
24029 \begin_layout Plain Layout
24030
24031 \change_inserted -584632292 1615846730
24032 [string]
24033 \change_unchanged
24034
24035 \end_layout
24036
24037 \end_inset
24038
24039  Option to define a different command (from the default 
24040 \begin_inset Flex Code
24041 status collapsed
24042
24043 \begin_layout Plain Layout
24044
24045 \change_inserted -584632292 1615846730
24046
24047 \backslash
24048
24049 \backslash
24050
24051 \change_unchanged
24052
24053 \end_layout
24054
24055 \end_inset
24056
24057 ) to be used for line breaks.
24058  The initial backslash must not be specified.
24059 \end_layout
24060
24061 \begin_layout Itemize
24062
24063 \change_inserted -584632292 1615846730
24064 \begin_inset Flex Code
24065 status collapsed
24066
24067 \begin_layout Plain Layout
24068
24069 \change_inserted -584632292 1615846730
24070 Requires
24071 \change_unchanged
24072
24073 \end_layout
24074
24075 \end_inset
24076
24077  
24078 \begin_inset Flex Code
24079 status collapsed
24080
24081 \begin_layout Plain Layout
24082
24083 \change_inserted -584632292 1615846730
24084 [int=0]
24085 \change_unchanged
24086
24087 \end_layout
24088
24089 \end_inset
24090
24091  defines another argument (by its number) which this argument requires to be output if it is itself output.
24092  E.
24093 \begin_inset space \thinspace{}
24094 \end_inset
24095
24096 g.,
24097  in \SpecialChar LaTeX
24098  commands,
24099  optional arguments often require previous optional arguments to be output (at least empty),
24100  as in 
24101 \begin_inset Flex Code
24102 status collapsed
24103
24104 \begin_layout Plain Layout
24105
24106 \change_inserted -584632292 1615846730
24107
24108 \backslash
24109 command[][argument]{text}
24110 \change_unchanged
24111
24112 \end_layout
24113
24114 \end_inset
24115
24116 .
24117  This can be achieved by the statement 
24118 \begin_inset Flex Code
24119 status collapsed
24120
24121 \begin_layout Plain Layout
24122
24123 \change_inserted -584632292 1615846730
24124 Requires 1
24125 \change_unchanged
24126
24127 \end_layout
24128
24129 \end_inset
24130
24131  within 
24132 \begin_inset Flex Code
24133 status collapsed
24134
24135 \begin_layout Plain Layout
24136
24137 \change_inserted -584632292 1615846730
24138 Argument 2
24139 \change_unchanged
24140
24141 \end_layout
24142
24143 \end_inset
24144
24145 .
24146 \end_layout
24147
24148 \begin_layout Itemize
24149
24150 \change_inserted -584632292 1615846730
24151 \begin_inset Flex Code
24152 status collapsed
24153
24154 \begin_layout Plain Layout
24155
24156 \change_inserted -584632292 1615846730
24157 LeftDelim
24158 \change_unchanged
24159
24160 \end_layout
24161
24162 \end_inset
24163
24164  
24165 \begin_inset Flex Code
24166 status collapsed
24167
24168 \begin_layout Plain Layout
24169
24170 \change_inserted -584632292 1615846730
24171 [string]
24172 \change_unchanged
24173
24174 \end_layout
24175
24176 \end_inset
24177
24178  defines a custom left delimiter (instead of 
24179 \begin_inset Flex Code
24180 status collapsed
24181
24182 \begin_layout Plain Layout
24183
24184 \change_inserted -584632292 1615846730
24185 {
24186 \change_unchanged
24187
24188 \end_layout
24189
24190 \end_inset
24191
24192  or 
24193 \begin_inset Flex Code
24194 status collapsed
24195
24196 \begin_layout Plain Layout
24197
24198 \change_inserted -584632292 1615846730
24199 [
24200 \change_unchanged
24201
24202 \end_layout
24203
24204 \end_inset
24205
24206 ).
24207  A line break in the output can be indicated by 
24208 \begin_inset Flex Code
24209 status collapsed
24210
24211 \begin_layout Plain Layout
24212
24213 \change_inserted -584632292 1615846730
24214 <br/>
24215 \change_unchanged
24216
24217 \end_layout
24218
24219 \end_inset
24220
24221 .
24222 \end_layout
24223
24224 \begin_layout Itemize
24225
24226 \change_inserted -584632292 1615846730
24227 \begin_inset Flex Code
24228 status collapsed
24229
24230 \begin_layout Plain Layout
24231
24232 \change_inserted -584632292 1615846730
24233 RightDelim
24234 \change_unchanged
24235
24236 \end_layout
24237
24238 \end_inset
24239
24240  
24241 \begin_inset Flex Code
24242 status collapsed
24243
24244 \begin_layout Plain Layout
24245
24246 \change_inserted -584632292 1615846730
24247 [string]
24248 \change_unchanged
24249
24250 \end_layout
24251
24252 \end_inset
24253
24254  defines a custom right delimiter (instead of 
24255 \begin_inset Flex Code
24256 status collapsed
24257
24258 \begin_layout Plain Layout
24259
24260 \change_inserted -584632292 1615846730
24261 }
24262 \change_unchanged
24263
24264 \end_layout
24265
24266 \end_inset
24267
24268  or 
24269 \begin_inset Flex Code
24270 status collapsed
24271
24272 \begin_layout Plain Layout
24273
24274 \change_inserted -584632292 1615846730
24275 ]
24276 \change_unchanged
24277
24278 \end_layout
24279
24280 \end_inset
24281
24282 ).
24283  A line break in the output can be indicated by 
24284 \begin_inset Flex Code
24285 status collapsed
24286
24287 \begin_layout Plain Layout
24288
24289 \change_inserted -584632292 1615846730
24290 <br/>
24291 \change_unchanged
24292
24293 \end_layout
24294
24295 \end_inset
24296
24297 .
24298 \end_layout
24299
24300 \begin_layout Itemize
24301
24302 \change_inserted -584632292 1615846730
24303 \begin_inset Flex Code
24304 status collapsed
24305
24306 \begin_layout Plain Layout
24307
24308 \change_inserted -584632292 1615846730
24309 DefaultArg
24310 \change_unchanged
24311
24312 \end_layout
24313
24314 \end_inset
24315
24316  
24317 \begin_inset Flex Code
24318 status collapsed
24319
24320 \begin_layout Plain Layout
24321
24322 \change_inserted -584632292 1615846730
24323 [string]
24324 \change_unchanged
24325
24326 \end_layout
24327
24328 \end_inset
24329
24330  defines an argument that is inserted if and only if no user-specified arguments were given,
24331  i.
24332 \begin_inset space \thinspace{}
24333 \end_inset
24334
24335 e.
24336 \begin_inset space \space{}
24337 \end_inset
24338
24339 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
24340  Multiple arguments need to be separated by comma.
24341 \end_layout
24342
24343 \begin_layout Itemize
24344
24345 \change_inserted -584632292 1615846730
24346 \begin_inset Flex Code
24347 status collapsed
24348
24349 \begin_layout Plain Layout
24350
24351 \change_inserted -584632292 1615846730
24352 PresetArg
24353 \change_unchanged
24354
24355 \end_layout
24356
24357 \end_inset
24358
24359  
24360 \begin_inset Flex Code
24361 status collapsed
24362
24363 \begin_layout Plain Layout
24364
24365 \change_inserted -584632292 1615846730
24366 [string]
24367 \change_unchanged
24368
24369 \end_layout
24370
24371 \end_inset
24372
24373  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
24374  Multiple arguments need to be separated by comma.
24375 \end_layout
24376
24377 \begin_layout Itemize
24378
24379 \change_inserted -584632292 1615846730
24380 \begin_inset Flex Code
24381 status collapsed
24382
24383 \begin_layout Plain Layout
24384
24385 \change_inserted -584632292 1615846730
24386 Font
24387 \change_unchanged
24388
24389 \end_layout
24390
24391 \end_inset
24392
24393  The font used for the argument content,
24394  see 
24395 \begin_inset CommandInset ref
24396 LatexCommand ref
24397 reference "subsec:Font-description"
24398 nolink "false"
24399
24400 \end_inset
24401
24402 .
24403 \end_layout
24404
24405 \begin_layout Itemize
24406
24407 \change_inserted -584632292 1615846730
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412
24413 \change_inserted -584632292 1615846730
24414 FreeSpacing
24415 \change_unchanged
24416
24417 \end_layout
24418
24419 \end_inset
24420
24421  [
24422 \begin_inset Flex Code
24423 status collapsed
24424
24425 \begin_layout Plain Layout
24426
24427 \change_inserted -584632292 1615846730
24428
24429 \emph on
24430 0
24431 \change_unchanged
24432
24433 \end_layout
24434
24435 \end_inset
24436
24437 ,
24438 \begin_inset space \thinspace{}
24439 \end_inset
24440
24441
24442 \begin_inset Flex Code
24443 status collapsed
24444
24445 \begin_layout Plain Layout
24446
24447 \change_inserted -584632292 1615846730
24448 1
24449 \change_unchanged
24450
24451 \end_layout
24452
24453 \end_inset
24454
24455 ] As with paragraph styles,
24456  see 
24457 \begin_inset CommandInset ref
24458 LatexCommand ref
24459 reference "subsec:Paragraph-Styles"
24460 nolink "false"
24461
24462 \end_inset
24463
24464 .
24465 \end_layout
24466
24467 \begin_layout Itemize
24468
24469 \change_inserted -584632292 1615846730
24470 \begin_inset Flex Code
24471 status collapsed
24472
24473 \begin_layout Plain Layout
24474
24475 \change_inserted -584632292 1615846730
24476 LabelFont
24477 \change_unchanged
24478
24479 \end_layout
24480
24481 \end_inset
24482
24483  The font used for the label;
24484  see 
24485 \begin_inset CommandInset ref
24486 LatexCommand ref
24487 reference "subsec:Font-description"
24488 nolink "false"
24489
24490 \end_inset
24491
24492 .
24493 \end_layout
24494
24495 \begin_layout Itemize
24496
24497 \change_inserted -584632292 1615846730
24498 \begin_inset Flex Code
24499 status collapsed
24500
24501 \begin_layout Plain Layout
24502
24503 \change_inserted -584632292 1615846730
24504 Decoration
24505 \change_unchanged
24506
24507 \end_layout
24508
24509 \end_inset
24510
24511  [
24512 \begin_inset Flex Code
24513 status collapsed
24514
24515 \begin_layout Plain Layout
24516
24517 \change_inserted -584632292 1615846730
24518
24519 \emph on
24520 Classic
24521 \emph default
24522 ,
24523  Minimalistic,
24524  Conglomerate
24525 \change_unchanged
24526
24527 \end_layout
24528
24529 \end_inset
24530
24531 ] describes the rendering style used for the inset's frame and buttons.
24532 \end_layout
24533
24534 \begin_layout Itemize
24535
24536 \change_inserted -584632292 1615846730
24537 \begin_inset Flex Code
24538 status collapsed
24539
24540 \begin_layout Plain Layout
24541
24542 \change_inserted -584632292 1615846730
24543 AutoInsert
24544 \change_unchanged
24545
24546 \end_layout
24547
24548 \end_inset
24549
24550  
24551 \begin_inset Flex Code
24552 status collapsed
24553
24554 \begin_layout Plain Layout
24555
24556 \change_inserted -584632292 1615846730
24557 [int=0]
24558 \change_unchanged
24559
24560 \end_layout
24561
24562 \end_inset
24563
24564  If this is set to 
24565 \begin_inset Flex Code
24566 status collapsed
24567
24568 \begin_layout Plain Layout
24569
24570 \change_inserted -584632292 1615846730
24571 1
24572 \change_unchanged
24573
24574 \end_layout
24575
24576 \end_inset
24577
24578 ,
24579  this argument is automatically inserted when the respective style is selected.
24580 \end_layout
24581
24582 \begin_layout Itemize
24583
24584 \change_inserted -584632292 1615846730
24585 \begin_inset Flex Code
24586 status collapsed
24587
24588 \begin_layout Plain Layout
24589
24590 \change_inserted -584632292 1615846730
24591 InsertOnNewline
24592 \change_unchanged
24593
24594 \end_layout
24595
24596 \end_inset
24597
24598  
24599 \begin_inset Flex Code
24600 status collapsed
24601
24602 \begin_layout Plain Layout
24603
24604 \change_inserted -584632292 1615846730
24605 [int=0]
24606 \change_unchanged
24607
24608 \end_layout
24609
24610 \end_inset
24611
24612  If this is set to 
24613 \begin_inset Flex Code
24614 status collapsed
24615
24616 \begin_layout Plain Layout
24617
24618 \change_inserted -584632292 1615846730
24619 1
24620 \change_unchanged
24621
24622 \end_layout
24623
24624 \end_inset
24625
24626 ,
24627  this argument will be inserted on a new line with 
24628 \begin_inset Flex Code
24629 status collapsed
24630
24631 \begin_layout Plain Layout
24632
24633 \change_inserted -584632292 1615846730
24634 AutoInsert
24635 \change_unchanged
24636
24637 \end_layout
24638
24639 \end_inset
24640
24641  (only available within Flex insets).
24642 \end_layout
24643
24644 \begin_layout Itemize
24645
24646 \change_inserted -584632292 1615846730
24647 \begin_inset Flex Code
24648 status collapsed
24649
24650 \begin_layout Plain Layout
24651
24652 \change_inserted -584632292 1615846730
24653 InsertCotext
24654 \change_unchanged
24655
24656 \end_layout
24657
24658 \end_inset
24659
24660  
24661 \begin_inset Flex Code
24662 status collapsed
24663
24664 \begin_layout Plain Layout
24665
24666 \change_inserted -584632292 1615846730
24667 [int=0]
24668 \change_unchanged
24669
24670 \end_layout
24671
24672 \end_inset
24673
24674  If this is set to 
24675 \begin_inset Flex Code
24676 status collapsed
24677
24678 \begin_layout Plain Layout
24679
24680 \change_inserted -584632292 1615846730
24681 1
24682 \change_unchanged
24683
24684 \end_layout
24685
24686 \end_inset
24687
24688 ,
24689  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
24690 \end_layout
24691
24692 \begin_layout Itemize
24693
24694 \change_inserted -584632292 1615846730
24695 \begin_inset Flex Code
24696 status collapsed
24697
24698 \begin_layout Plain Layout
24699
24700 \change_inserted -584632292 1615846730
24701 PassThru
24702 \change_unchanged
24703
24704 \end_layout
24705
24706 \end_inset
24707
24708  [
24709 \begin_inset Flex Code
24710 status collapsed
24711
24712 \begin_layout Plain Layout
24713
24714 \change_inserted -584632292 1615846730
24715
24716 \emph on
24717 inherited
24718 \emph default
24719 ,
24720  true,
24721  false
24722 \change_unchanged
24723
24724 \end_layout
24725
24726 \end_inset
24727
24728 ] Whether the contents of this argument should be output in raw form,
24729  meaning without special translations that \SpecialChar LaTeX
24730  would require.
24731  By default,
24732  the 
24733 \begin_inset Flex Code
24734 status collapsed
24735
24736 \begin_layout Plain Layout
24737
24738 \change_inserted -584632292 1615846730
24739 PassThru
24740 \change_unchanged
24741
24742 \end_layout
24743
24744 \end_inset
24745
24746  status is inherited by the inset or paragraph layout the argument belongs to,
24747  true and false change the status for the given argument only.
24748 \end_layout
24749
24750 \begin_layout Itemize
24751
24752 \change_inserted -584632292 1615846730
24753 \begin_inset Flex Code
24754 status collapsed
24755
24756 \begin_layout Plain Layout
24757
24758 \change_inserted -584632292 1615846730
24759 PassThruChars
24760 \change_unchanged
24761
24762 \end_layout
24763
24764 \end_inset
24765
24766  [
24767 \begin_inset Flex Code
24768 status collapsed
24769
24770 \begin_layout Plain Layout
24771
24772 \change_inserted -584632292 1615846730
24773 string of characters
24774 \change_unchanged
24775
24776 \end_layout
24777
24778 \end_inset
24779
24780 ]
24781 \family typewriter
24782  
24783 \family default
24784 Defines individual characters
24785 \begin_inset Newline linebreak
24786 \end_inset
24787
24788 that should be output in raw form,
24789  meaning without special translations that \SpecialChar LaTeX
24790  would require.
24791  Note that,
24792  contrary to PassThru,
24793  this needs to be explicitly defined for arguments.
24794  That is,
24795  arguments do not inherit PassThruChars from their parent inset or layout.
24796 \end_layout
24797
24798 \begin_layout Itemize
24799
24800 \change_inserted -584632292 1615846730
24801 \begin_inset Flex Code
24802 status collapsed
24803
24804 \begin_layout Plain Layout
24805
24806 \change_inserted -584632292 1615846730
24807 IsTocCaption
24808 \change_unchanged
24809
24810 \end_layout
24811
24812 \end_inset
24813
24814  [
24815 \begin_inset Flex Code
24816 status collapsed
24817
24818 \begin_layout Plain Layout
24819
24820 \change_inserted -584632292 1615846730
24821
24822 \emph on
24823 0
24824 \change_unchanged
24825
24826 \end_layout
24827
24828 \end_inset
24829
24830 ,
24831 \begin_inset space \thinspace{}
24832 \end_inset
24833
24834
24835 \begin_inset Flex Code
24836 status collapsed
24837
24838 \begin_layout Plain Layout
24839
24840 \change_inserted -584632292 1615846730
24841 1
24842 \change_unchanged
24843
24844 \end_layout
24845
24846 \end_inset
24847
24848 ] If this is set to 1,
24849  the argument will output its content in the corresponding item in the table of contents.
24850  See AddToToc.
24851 \end_layout
24852
24853 \begin_layout Standard
24854
24855 \change_inserted -584632292 1615846730
24856 By default,
24857  the text entered in the \SpecialChar LyX
24858  workarea in the respective layout is the last (mandatory) argument of a command if the 
24859 \begin_inset Flex Code
24860 status collapsed
24861
24862 \begin_layout Plain Layout
24863
24864 \change_inserted -584632292 1615846730
24865 LatexType
24866 \change_unchanged
24867
24868 \end_layout
24869
24870 \end_inset
24871
24872  is 
24873 \begin_inset Flex Code
24874 status collapsed
24875
24876 \begin_layout Plain Layout
24877
24878 \change_inserted -584632292 1615846730
24879 Command
24880 \change_unchanged
24881
24882 \end_layout
24883
24884 \end_inset
24885
24886 .
24887  However,
24888  arguments with the prefix 
24889 \begin_inset Flex Code
24890 status collapsed
24891
24892 \begin_layout Plain Layout
24893
24894 \change_inserted -584632292 1615846730
24895 post:
24896 \change_unchanged
24897
24898 \end_layout
24899
24900 \end_inset
24901
24902  are output after this workarea argument.
24903  Note that post-argument numbering restarts at 1,
24904  so the first argument following the workarea argument is 
24905 \begin_inset Flex Code
24906 status collapsed
24907
24908 \begin_layout Plain Layout
24909
24910 \change_inserted -584632292 1615846730
24911 post:1
24912 \change_unchanged
24913
24914 \end_layout
24915
24916 \end_inset
24917
24918 .
24919  Post-arguments are ignored in any other 
24920 \begin_inset Flex Code
24921 status collapsed
24922
24923 \begin_layout Plain Layout
24924
24925 \change_inserted -584632292 1615846730
24926 LatexType
24927 \change_unchanged
24928
24929 \end_layout
24930
24931 \end_inset
24932
24933  than 
24934 \begin_inset Flex Code
24935 status collapsed
24936
24937 \begin_layout Plain Layout
24938
24939 \change_inserted -584632292 1615846730
24940 Command
24941 \change_unchanged
24942
24943 \end_layout
24944
24945 \end_inset
24946
24947 .
24948 \end_layout
24949
24950 \begin_layout Standard
24951
24952 \change_inserted -584632292 1615846730
24953 Arguments for list 
24954 \begin_inset Flex Code
24955 status collapsed
24956
24957 \begin_layout Plain Layout
24958
24959 \change_inserted -584632292 1615846730
24960
24961 \backslash
24962 item
24963 \change_unchanged
24964
24965 \end_layout
24966
24967 \end_inset
24968
24969 s (as in 
24970 \begin_inset Flex Code
24971 status collapsed
24972
24973 \begin_layout Plain Layout
24974
24975 \change_inserted -584632292 1615846730
24976
24977 \backslash
24978 item[foo]
24979 \change_unchanged
24980
24981 \end_layout
24982
24983 \end_inset
24984
24985 ) have the prefix 
24986 \begin_inset Flex Code
24987 status collapsed
24988
24989 \begin_layout Plain Layout
24990
24991 \change_inserted -584632292 1615846730
24992 item:
24993 \change_unchanged
24994
24995 \end_layout
24996
24997 \end_inset
24998
24999  followed by the number (e.
25000 \begin_inset space \thinspace{}
25001 \end_inset
25002
25003 g.
25004 \begin_inset space \space{}
25005 \end_inset
25006
25007
25008 \begin_inset Flex Code
25009 status collapsed
25010
25011 \begin_layout Plain Layout
25012
25013 \change_inserted -584632292 1615846730
25014 Argument item:1
25015 \change_unchanged
25016
25017 \end_layout
25018
25019 \end_inset
25020
25021 ).
25022 \end_layout
25023
25024 \begin_layout Standard
25025
25026 \change_inserted -584632292 1615846730
25027 Finally,
25028  there is a special argument type with the prefix 
25029 \begin_inset Flex Code
25030 status collapsed
25031
25032 \begin_layout Plain Layout
25033
25034 \change_inserted -584632292 1615846730
25035 listpreamble:
25036 \change_unchanged
25037
25038 \end_layout
25039
25040 \end_inset
25041
25042 .
25043  It is not really an argument,
25044  but uses the argument interface (thus,
25045  the prefix is also followed by a number,
25046  e.
25047 \begin_inset space \thinspace{}
25048 \end_inset
25049
25050 g.
25051  
25052 \begin_inset Flex Code
25053 status collapsed
25054
25055 \begin_layout Plain Layout
25056
25057 \change_inserted -584632292 1615846730
25058 Argument listpreamble:1
25059 \change_unchanged
25060
25061 \end_layout
25062
25063 \end_inset
25064
25065 ).
25066  As the name implies,
25067  it is targeted at lists such as 
25068 \family sans
25069 Itemize
25070 \family default
25071 ,
25072  
25073 \family sans
25074 Enumerate
25075 \family default
25076 ,
25077  
25078 \family sans
25079 Description
25080 \family default
25081 ,
25082  or 
25083 \family sans
25084 Bibliography
25085 \family default
25086 .
25087  Its content will be output at the list start,
25088  before the first 
25089 \begin_inset Flex Code
25090 status collapsed
25091
25092 \begin_layout Plain Layout
25093
25094 \change_inserted -584632292 1615846730
25095
25096 \backslash
25097 item
25098 \change_unchanged
25099
25100 \end_layout
25101
25102 \end_inset
25103
25104 ,
25105  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
25106 ).
25107  This way,
25108  users can insert redefinitions (of lengths etc.) to individual lists.
25109  By default,
25110  these arguments do not have a delimiter.
25111 \change_unchanged
25112
25113 \end_layout
25114
25115 \begin_layout Subsection
25116 Counters
25117 \begin_inset CommandInset label
25118 LatexCommand label
25119 name "subsec:Counters"
25120
25121 \end_inset
25122
25123
25124 \end_layout
25125
25126 \begin_layout Standard
25127 It is necessary to define the counters (
25128 \begin_inset Flex Noun
25129 status collapsed
25130
25131 \begin_layout Plain Layout
25132 chapter
25133 \end_layout
25134
25135 \end_inset
25136
25137 ,
25138  
25139 \begin_inset Flex Noun
25140 status collapsed
25141
25142 \begin_layout Plain Layout
25143 figure
25144 \end_layout
25145
25146 \end_inset
25147
25148 ,
25149  \SpecialChar ldots
25150 ) in the text class itself.
25151  The standard counters are defined in the file 
25152 \begin_inset Flex Code
25153 status collapsed
25154
25155 \begin_layout Plain Layout
25156 stdcounters.inc
25157 \end_layout
25158
25159 \end_inset
25160
25161 ,
25162  so you may have to do no more than add
25163 \end_layout
25164
25165 \begin_layout LyX-Code
25166 Input stdcounters.inc
25167 \end_layout
25168
25169 \begin_layout Standard
25170 to your layout file to get them to work.
25171  But if you want to define custom counters,
25172  then you can do so.
25173  The counter declaration must begin with:
25174 \end_layout
25175
25176 \begin_layout LyX-Code
25177 Counter CounterName
25178 \end_layout
25179
25180 \begin_layout Standard
25181 where of course `
25182 \begin_inset Flex Code
25183 status collapsed
25184
25185 \begin_layout Plain Layout
25186 CounterName
25187 \end_layout
25188
25189 \end_inset
25190
25191 ' is replaced by the name of the counter.
25192  And it must end with 
25193 \begin_inset Quotes eld
25194 \end_inset
25195
25196
25197 \begin_inset Flex Code
25198 status collapsed
25199
25200 \begin_layout Plain Layout
25201 End
25202 \end_layout
25203
25204 \end_inset
25205
25206
25207 \begin_inset Quotes erd
25208 \end_inset
25209
25210 .
25211  The following parameters can also be used:
25212 \end_layout
25213
25214 \begin_layout Description
25215 \begin_inset Flex Code
25216 status collapsed
25217
25218 \begin_layout Plain Layout
25219 InitialValue
25220 \end_layout
25221
25222 \end_inset
25223
25224  [
25225 \begin_inset Flex Code
25226 status collapsed
25227
25228 \begin_layout Plain Layout
25229 int=1
25230 \end_layout
25231
25232 \end_inset
25233
25234 ] Sets the initial value for the counter,
25235  to which it will be reset whenever that happens.
25236  Normally,
25237  one will want the default,
25238  1.
25239 \end_layout
25240
25241 \begin_layout Description
25242 \begin_inset Flex Code
25243 status collapsed
25244
25245 \begin_layout Plain Layout
25246 LabelString
25247 \end_layout
25248
25249 \end_inset
25250
25251  [
25252 \begin_inset Flex Code
25253 status collapsed
25254
25255 \begin_layout Plain Layout
25256 string
25257 \end_layout
25258
25259 \end_inset
25260
25261 =
25262 \begin_inset Quotes erd
25263 \end_inset
25264
25265
25266 \begin_inset Quotes erd
25267 \end_inset
25268
25269 ] When defined,
25270  this string defines how the counter is displayed.
25271  Setting this value sets 
25272 \begin_inset Flex Code
25273 status collapsed
25274
25275 \begin_layout Plain Layout
25276 LabelStringAppendix
25277 \end_layout
25278
25279 \end_inset
25280
25281  to the same value.
25282  The following special constructs can be used in the string:
25283 \end_layout
25284
25285 \begin_deeper
25286 \begin_layout Itemize
25287 \begin_inset Flex Code
25288 status collapsed
25289
25290 \begin_layout Plain Layout
25291
25292 \backslash
25293 thecounter
25294 \end_layout
25295
25296 \end_inset
25297
25298  will be replaced by the expansion of the 
25299 \begin_inset Flex Code
25300 status collapsed
25301
25302 \begin_layout Plain Layout
25303 LabelString
25304 \end_layout
25305
25306 \end_inset
25307
25308  (or 
25309 \begin_inset Flex Code
25310 status collapsed
25311
25312 \begin_layout Plain Layout
25313 LabelStringAppendix
25314 \end_layout
25315
25316 \end_inset
25317
25318 ) of the counter 
25319 \begin_inset Flex Code
25320 status collapsed
25321
25322 \begin_layout Plain Layout
25323 counter
25324 \end_layout
25325
25326 \end_inset
25327
25328 .
25329  
25330 \end_layout
25331
25332 \begin_layout Itemize
25333 counter values can be expressed using \SpecialChar LaTeX
25334 -like macros
25335 \begin_inset Newline newline
25336 \end_inset
25337
25338
25339 \begin_inset Flex Code
25340 status collapsed
25341
25342 \begin_layout Plain Layout
25343
25344 \backslash
25345
25346 \emph on
25347 numbertype
25348 \emph default
25349 {
25350 \emph on
25351 counter
25352 \emph default
25353 }
25354 \end_layout
25355
25356 \end_inset
25357
25358 ,
25359  where 
25360 \begin_inset Flex Code
25361 status collapsed
25362
25363 \begin_layout Plain Layout
25364
25365 \emph on
25366 numbertype
25367 \end_layout
25368
25369 \end_inset
25370
25371  can be:
25372 \begin_inset Foot
25373 status collapsed
25374
25375 \begin_layout Plain Layout
25376
25377 \family roman
25378 \series medium
25379 \shape up
25380 \size normal
25381 \emph off
25382 \bar no
25383 \noun off
25384 \color none
25385 Actually,
25386  the situation is a bit more complicated:
25387  any
25388 \family default
25389 \series default
25390 \shape default
25391 \emph default
25392 \bar default
25393  
25394 \size default
25395 \emph on
25396 \noun default
25397 \color inherit
25398 numbertype
25399 \family roman
25400 \series medium
25401 \shape up
25402 \size normal
25403 \emph off
25404 \bar no
25405 \noun off
25406  other than those described below will produce arabic numerals.
25407  It would not be surprising to see this change in the future.
25408 \end_layout
25409
25410 \end_inset
25411
25412  
25413 \begin_inset Flex Code
25414 status collapsed
25415
25416 \begin_layout Plain Layout
25417 arabic
25418 \end_layout
25419
25420 \end_inset
25421
25422 :
25423  1,
25424  2,
25425  3,\SpecialChar ldots
25426 ;
25427  
25428 \begin_inset Flex Code
25429 status collapsed
25430
25431 \begin_layout Plain Layout
25432 alph
25433 \end_layout
25434
25435 \end_inset
25436
25437  for lower-case letters:
25438  a,
25439  b,
25440  c,
25441  \SpecialChar ldots
25442 ;
25443  
25444 \begin_inset Flex Code
25445 status collapsed
25446
25447 \begin_layout Plain Layout
25448 Alph
25449 \end_layout
25450
25451 \end_inset
25452
25453  for upper-case letters:
25454  A,
25455  B,
25456  C,
25457  \SpecialChar ldots
25458 ;
25459  
25460 \begin_inset Flex Code
25461 status collapsed
25462
25463 \begin_layout Plain Layout
25464 roman
25465 \end_layout
25466
25467 \end_inset
25468
25469  for lower-case roman numerals:
25470  i,
25471  ii,
25472  iii,
25473  \SpecialChar ldots
25474 ;
25475  
25476 \begin_inset Flex Code
25477 status collapsed
25478
25479 \begin_layout Plain Layout
25480 Roman
25481 \end_layout
25482
25483 \end_inset
25484
25485  for upper-case roman numerals:
25486  I,
25487  II,
25488  III\SpecialChar ldots
25489 ;
25490  
25491 \begin_inset Flex Code
25492 status collapsed
25493
25494 \begin_layout Plain Layout
25495 hebrew
25496 \end_layout
25497
25498 \end_inset
25499
25500  for hebrew numerals.
25501 \end_layout
25502
25503 \end_deeper
25504 \begin_layout Standard
25505 If LabelString is not defined,
25506  a default value is constructed as follows:
25507  if the counter has a 
25508 \change_deleted 731793113 1604355218
25509 master
25510 \change_inserted 731793113 1604355221
25511 parent
25512 \change_unchanged
25513  counter 
25514 \begin_inset Flex Code
25515 status collapsed
25516
25517 \begin_layout Plain Layout
25518
25519 \change_deleted 731793113 1604355223
25520 master
25521 \change_inserted 731793113 1604355226
25522 parent
25523 \change_unchanged
25524
25525 \end_layout
25526
25527 \end_inset
25528
25529  (defined via 
25530 \begin_inset Flex Code
25531 status collapsed
25532
25533 \begin_layout Plain Layout
25534 Within
25535 \end_layout
25536
25537 \end_inset
25538
25539 ),
25540  the string
25541 \begin_inset Newline newline
25542 \end_inset
25543
25544
25545 \begin_inset Flex Code
25546 status collapsed
25547
25548 \begin_layout Plain Layout
25549
25550 \backslash
25551 the
25552 \change_inserted 731793113 1604355228
25553 parent
25554 \change_deleted 731793113 1604355230
25555 master
25556 \change_unchanged
25557 .
25558 \backslash
25559 arabic{counter}
25560 \end_layout
25561
25562 \end_inset
25563
25564  is used;
25565  otherwise the string 
25566 \begin_inset Flex Code
25567 status collapsed
25568
25569 \begin_layout Plain Layout
25570
25571 \backslash
25572 arabic{counter}
25573 \end_layout
25574
25575 \end_inset
25576
25577  is used.
25578 \end_layout
25579
25580 \begin_layout Description
25581 \begin_inset Flex Code
25582 status collapsed
25583
25584 \begin_layout Plain Layout
25585 LabelStringAppendix
25586 \end_layout
25587
25588 \end_inset
25589
25590  [
25591 \begin_inset Flex Code
25592 status collapsed
25593
25594 \begin_layout Plain Layout
25595 string
25596 \end_layout
25597
25598 \end_inset
25599
25600
25601 \begin_inset Quotes eld
25602 \end_inset
25603
25604
25605 \begin_inset Quotes erd
25606 \end_inset
25607
25608 ] Same as 
25609 \begin_inset Flex Code
25610 status collapsed
25611
25612 \begin_layout Plain Layout
25613 LabelString
25614 \end_layout
25615
25616 \end_inset
25617
25618 ,
25619  but for use in the Appendix.
25620 \change_inserted -584632292 1607202551
25621
25622 \end_layout
25623
25624 \begin_layout Description
25625
25626 \change_inserted -584632292 1607202682
25627 \begin_inset Flex Code
25628 status open
25629
25630 \begin_layout Plain Layout
25631 LaTeXName
25632 \end_layout
25633
25634 \end_inset
25635
25636  [
25637 \begin_inset Flex Code
25638 status open
25639
25640 \begin_layout Plain Layout
25641
25642 \change_inserted -584632292 1607202576
25643 string
25644 \change_unchanged
25645
25646 \end_layout
25647
25648 \end_inset
25649
25650  = 
25651 \begin_inset Quotes eld
25652 \end_inset
25653
25654
25655 \begin_inset Quotes erd
25656 \end_inset
25657
25658 ] The counter name as used in \SpecialChar LaTeX
25659 .
25660  (
25661 \change_inserted 34634807 1619711355
25662 e
25663 \change_deleted 34634807 1619711355
25664 E
25665 \change_inserted -584632292 1607202682
25666 .g.,
25667  in \SpecialChar LyX
25668 ,
25669  there is a counter named `theorem',
25670  but it is output to \SpecialChar LaTeX
25671  as `thm'.)
25672 \change_unchanged
25673
25674 \end_layout
25675
25676 \begin_layout Description
25677 \begin_inset Flex Code
25678 status collapsed
25679
25680 \begin_layout Plain Layout
25681 PrettyFormat
25682 \end_layout
25683
25684 \end_inset
25685
25686  [
25687 \begin_inset Flex Code
25688 status collapsed
25689
25690 \begin_layout Plain Layout
25691 string
25692 \end_layout
25693
25694 \end_inset
25695
25696 =
25697 \begin_inset Quotes erd
25698 \end_inset
25699
25700
25701 \begin_inset Quotes erd
25702 \end_inset
25703
25704 ] A format for use with formatted references to this counter.
25705  For example,
25706  one might want to have references to section numbers appear as 
25707 \begin_inset Quotes eld
25708 \end_inset
25709
25710 Section 2.4
25711 \begin_inset Quotes erd
25712 \end_inset
25713
25714 .
25715  The string should contain 
25716 \begin_inset Quotes eld
25717 \end_inset
25718
25719 ##
25720 \begin_inset Quotes erd
25721 \end_inset
25722
25723 .
25724  This will be replaced by the counter number itself.
25725  So,
25726  for sections,
25727  it would be:
25728  Section ##.
25729 \end_layout
25730
25731 \begin_layout Description
25732 \begin_inset Flex Code
25733 status collapsed
25734
25735 \begin_layout Plain Layout
25736 Within
25737 \end_layout
25738
25739 \end_inset
25740
25741  [
25742 \begin_inset Flex Code
25743 status collapsed
25744
25745 \begin_layout Plain Layout
25746 string
25747 \end_layout
25748
25749 \end_inset
25750
25751 =
25752 \begin_inset Quotes erd
25753 \end_inset
25754
25755
25756 \begin_inset Quotes erd
25757 \end_inset
25758
25759 ] If this is set to the name of another counter,
25760  the present counter will be reset every time the other one is increased.
25761  For example,
25762  
25763 \begin_inset Flex Code
25764 status collapsed
25765
25766 \begin_layout Plain Layout
25767 subsection
25768 \end_layout
25769
25770 \end_inset
25771
25772  is numbered inside 
25773 \begin_inset Flex Code
25774 status collapsed
25775
25776 \begin_layout Plain Layout
25777 section
25778 \end_layout
25779
25780 \end_inset
25781
25782 .
25783 \end_layout
25784
25785 \begin_layout Subsection
25786 Font description
25787 \begin_inset CommandInset label
25788 LatexCommand label
25789 name "subsec:Font-description"
25790
25791 \end_inset
25792
25793
25794 \end_layout
25795
25796 \begin_layout Standard
25797 A font description looks like this:
25798 \end_layout
25799
25800 \begin_layout LyX-Code
25801 Font 
25802 \family roman
25803 \emph on
25804 or
25805 \family default
25806 \emph default
25807  LabelFont
25808 \emph on
25809  
25810 \family roman
25811 or
25812 \family default
25813 \emph default
25814  DefaultFont
25815 \end_layout
25816
25817 \begin_layout LyX-Code
25818  ...
25819 \end_layout
25820
25821 \begin_layout LyX-Code
25822 EndFont
25823 \end_layout
25824
25825 \begin_layout Standard
25826 The following commands are available:
25827 \end_layout
25828
25829 \begin_layout Description
25830 \begin_inset Flex Code
25831 status collapsed
25832
25833 \begin_layout Plain Layout
25834 Color
25835 \end_layout
25836
25837 \end_inset
25838
25839  [
25840 \change_deleted -712698321 1607682984
25841
25842 \begin_inset Flex Code
25843 status collapsed
25844
25845 \begin_layout Plain Layout
25846
25847 \emph on
25848 none
25849 \end_layout
25850
25851 \end_inset
25852
25853 ,
25854  
25855 \begin_inset Flex Code
25856 status collapsed
25857
25858 \begin_layout Plain Layout
25859 black
25860 \end_layout
25861
25862 \end_inset
25863
25864 ,
25865  
25866 \begin_inset Flex Code
25867 status collapsed
25868
25869 \begin_layout Plain Layout
25870 white
25871 \end_layout
25872
25873 \end_inset
25874
25875 ,
25876  
25877 \begin_inset Flex Code
25878 status collapsed
25879
25880 \begin_layout Plain Layout
25881 red
25882 \end_layout
25883
25884 \end_inset
25885
25886 ,
25887  
25888 \begin_inset Flex Code
25889 status collapsed
25890
25891 \begin_layout Plain Layout
25892 green
25893 \end_layout
25894
25895 \end_inset
25896
25897 ,
25898  
25899 \begin_inset Flex Code
25900 status collapsed
25901
25902 \begin_layout Plain Layout
25903 blue
25904 \end_layout
25905
25906 \end_inset
25907
25908 ,
25909  
25910 \begin_inset Flex Code
25911 status collapsed
25912
25913 \begin_layout Plain Layout
25914 cyan
25915 \end_layout
25916
25917 \end_inset
25918
25919 ,
25920  
25921 \begin_inset Flex Code
25922 status collapsed
25923
25924 \begin_layout Plain Layout
25925 magenta
25926 \end_layout
25927
25928 \end_inset
25929
25930 ,
25931  
25932 \begin_inset Flex Code
25933 status collapsed
25934
25935 \begin_layout Plain Layout
25936 yellow
25937 \end_layout
25938
25939 \end_inset
25940
25941 ,
25942  
25943 \begin_inset Flex Code
25944 status collapsed
25945
25946 \begin_layout Plain Layout
25947 brown
25948 \end_layout
25949
25950 \end_inset
25951
25952 ,
25953  
25954 \begin_inset Flex Code
25955 status collapsed
25956
25957 \begin_layout Plain Layout
25958 darkgray
25959 \end_layout
25960
25961 \end_inset
25962
25963 ,
25964  
25965 \begin_inset Flex Code
25966 status collapsed
25967
25968 \begin_layout Plain Layout
25969 gray
25970 \end_layout
25971
25972 \end_inset
25973
25974 ,
25975  
25976 \begin_inset Flex Code
25977 status collapsed
25978
25979 \begin_layout Plain Layout
25980 lightgray
25981 \end_layout
25982
25983 \end_inset
25984
25985 ,
25986  
25987 \begin_inset Flex Code
25988 status collapsed
25989
25990 \begin_layout Plain Layout
25991 lime
25992 \end_layout
25993
25994 \end_inset
25995
25996 ,
25997  
25998 \begin_inset Flex Code
25999 status collapsed
26000
26001 \begin_layout Plain Layout
26002 orange
26003 \end_layout
26004
26005 \end_inset
26006
26007 ,
26008  
26009 \begin_inset Flex Code
26010 status collapsed
26011
26012 \begin_layout Plain Layout
26013 olive
26014 \end_layout
26015
26016 \end_inset
26017
26018 ,
26019  
26020 \begin_inset Flex Code
26021 status collapsed
26022
26023 \begin_layout Plain Layout
26024 pink
26025 \end_layout
26026
26027 \end_inset
26028
26029 ,
26030  
26031 \begin_inset Flex Code
26032 status collapsed
26033
26034 \begin_layout Plain Layout
26035 purple
26036 \end_layout
26037
26038 \end_inset
26039
26040 ,
26041  
26042 \begin_inset Flex Code
26043 status collapsed
26044
26045 \begin_layout Plain Layout
26046 teal
26047 \end_layout
26048
26049 \end_inset
26050
26051 ,
26052  
26053 \begin_inset Flex Code
26054 status collapsed
26055
26056 \begin_layout Plain Layout
26057 violet
26058 \end_layout
26059
26060 \end_inset
26061
26062
26063 \change_inserted -712698321 1607683139
26064
26065 \begin_inset Flex Code
26066 status collapsed
26067
26068 \begin_layout Plain Layout
26069
26070 \change_inserted -712698321 1607683135
26071 string
26072 \change_unchanged
26073
26074 \end_layout
26075
26076 \end_inset
26077
26078 ] See appendix
26079 \begin_inset space ~
26080 \end_inset
26081
26082
26083 \begin_inset CommandInset ref
26084 LatexCommand ref
26085 reference "chap:Names-of-colors"
26086 plural "false"
26087 caps "false"
26088 noprefix "false"
26089 nolink "false"
26090
26091 \end_inset
26092
26093  for 
26094 \change_deleted -712698321 1607683144
26095 ]
26096 \change_inserted -712698321 1607683146
26097 valid arguments.
26098 \change_unchanged
26099
26100 \end_layout
26101
26102 \begin_layout Description
26103 \begin_inset Flex Code
26104 status collapsed
26105
26106 \begin_layout Plain Layout
26107 Family
26108 \end_layout
26109
26110 \end_inset
26111
26112  [
26113 \begin_inset Flex Code
26114 status collapsed
26115
26116 \begin_layout Plain Layout
26117
26118 \emph on
26119 Roman
26120 \end_layout
26121
26122 \end_inset
26123
26124 ,
26125  
26126 \begin_inset Flex Code
26127 status collapsed
26128
26129 \begin_layout Plain Layout
26130 Sans
26131 \end_layout
26132
26133 \end_inset
26134
26135 ,
26136  
26137 \begin_inset Flex Code
26138 status collapsed
26139
26140 \begin_layout Plain Layout
26141 Typewriter
26142 \end_layout
26143
26144 \end_inset
26145
26146 ]
26147 \end_layout
26148
26149 \begin_layout Description
26150 \begin_inset Flex Code
26151 status collapsed
26152
26153 \begin_layout Plain Layout
26154 Misc
26155 \end_layout
26156
26157 \end_inset
26158
26159  [
26160 \begin_inset Flex Code
26161 status collapsed
26162
26163 \begin_layout Plain Layout
26164 string
26165 \end_layout
26166
26167 \end_inset
26168
26169 ] Valid arguments are:
26170  
26171 \begin_inset Flex Code
26172 status collapsed
26173
26174 \begin_layout Plain Layout
26175 emph
26176 \end_layout
26177
26178 \end_inset
26179
26180 ,
26181  
26182 \begin_inset Flex Code
26183 status collapsed
26184
26185 \begin_layout Plain Layout
26186 noun
26187 \end_layout
26188
26189 \end_inset
26190
26191 ,
26192  
26193 \begin_inset Flex Code
26194 status collapsed
26195
26196 \begin_layout Plain Layout
26197 strikeout
26198 \end_layout
26199
26200 \end_inset
26201
26202 ,
26203  
26204 \begin_inset Flex Code
26205 status collapsed
26206
26207 \begin_layout Plain Layout
26208 underbar
26209 \end_layout
26210
26211 \end_inset
26212
26213 ,
26214  
26215 \begin_inset Flex Code
26216 status collapsed
26217
26218 \begin_layout Plain Layout
26219 uuline
26220 \end_layout
26221
26222 \end_inset
26223
26224 ,
26225  
26226 \begin_inset Flex Code
26227 status collapsed
26228
26229 \begin_layout Plain Layout
26230 uwave
26231 \end_layout
26232
26233 \end_inset
26234
26235 ,
26236  
26237 \begin_inset Flex Code
26238 status collapsed
26239
26240 \begin_layout Plain Layout
26241 no_emph
26242 \end_layout
26243
26244 \end_inset
26245
26246 ,
26247  
26248 \begin_inset Flex Code
26249 status collapsed
26250
26251 \begin_layout Plain Layout
26252 no_noun
26253 \end_layout
26254
26255 \end_inset
26256
26257 ,
26258  
26259 \begin_inset Flex Code
26260 status collapsed
26261
26262 \begin_layout Plain Layout
26263 no_strikeout
26264 \end_layout
26265
26266 \end_inset
26267
26268 ,
26269  
26270 \begin_inset Flex Code
26271 status collapsed
26272
26273 \begin_layout Plain Layout
26274 no_bar
26275 \end_layout
26276
26277 \end_inset
26278
26279 ,
26280  
26281 \begin_inset Flex Code
26282 status collapsed
26283
26284 \begin_layout Plain Layout
26285 no_uuline
26286 \end_layout
26287
26288 \end_inset
26289
26290  and 
26291 \begin_inset Flex Code
26292 status collapsed
26293
26294 \begin_layout Plain Layout
26295 no_uwave
26296 \end_layout
26297
26298 \end_inset
26299
26300 .
26301  Each of these turns on or off the corresponding attribute.
26302  For example,
26303  
26304 \begin_inset Flex Code
26305 status collapsed
26306
26307 \begin_layout Plain Layout
26308 emph
26309 \end_layout
26310
26311 \end_inset
26312
26313  turns on emphasis,
26314  and 
26315 \begin_inset Flex Code
26316 status collapsed
26317
26318 \begin_layout Plain Layout
26319 no_emph
26320 \end_layout
26321
26322 \end_inset
26323
26324  turns it off.
26325  
26326 \begin_inset Newline newline
26327 \end_inset
26328
26329 If the latter seems puzzling,
26330  remember that the font settings for the present context are generally inherited from the surrounding context.
26331  So 
26332 \begin_inset Flex Code
26333 status collapsed
26334
26335 \begin_layout Plain Layout
26336 no_emph
26337 \end_layout
26338
26339 \end_inset
26340
26341  would turn off the emphasis that was anyway in effect,
26342  say,
26343  in a theorem environment.
26344 \end_layout
26345
26346 \begin_layout Description
26347 \begin_inset Flex Code
26348 status collapsed
26349
26350 \begin_layout Plain Layout
26351 Series
26352 \end_layout
26353
26354 \end_inset
26355
26356  [
26357 \begin_inset Flex Code
26358 status collapsed
26359
26360 \begin_layout Plain Layout
26361
26362 \emph on
26363 Medium
26364 \end_layout
26365
26366 \end_inset
26367
26368 ,
26369  
26370 \begin_inset Flex Code
26371 status collapsed
26372
26373 \begin_layout Plain Layout
26374 Bold
26375 \end_layout
26376
26377 \end_inset
26378
26379
26380 \end_layout
26381
26382 \begin_layout Description
26383 \begin_inset Flex Code
26384 status collapsed
26385
26386 \begin_layout Plain Layout
26387 Shape
26388 \end_layout
26389
26390 \end_inset
26391
26392  [
26393 \begin_inset Flex Code
26394 status collapsed
26395
26396 \begin_layout Plain Layout
26397
26398 \emph on
26399 Up
26400 \end_layout
26401
26402 \end_inset
26403
26404 ,
26405  
26406 \begin_inset Flex Code
26407 status collapsed
26408
26409 \begin_layout Plain Layout
26410 Italic
26411 \end_layout
26412
26413 \end_inset
26414
26415 ,
26416  
26417 \begin_inset Flex Code
26418 status collapsed
26419
26420 \begin_layout Plain Layout
26421 SmallCaps
26422 \end_layout
26423
26424 \end_inset
26425
26426 ,
26427  
26428 \begin_inset Flex Code
26429 status collapsed
26430
26431 \begin_layout Plain Layout
26432 Slanted
26433 \end_layout
26434
26435 \end_inset
26436
26437
26438 \end_layout
26439
26440 \begin_layout Description
26441 \begin_inset Flex Code
26442 status collapsed
26443
26444 \begin_layout Plain Layout
26445 Size
26446 \end_layout
26447
26448 \end_inset
26449
26450  [
26451 \begin_inset Flex Code
26452 status collapsed
26453
26454 \begin_layout Plain Layout
26455 tiny
26456 \end_layout
26457
26458 \end_inset
26459
26460 ,
26461  
26462 \begin_inset Flex Code
26463 status collapsed
26464
26465 \begin_layout Plain Layout
26466 small
26467 \end_layout
26468
26469 \end_inset
26470
26471 ,
26472  
26473 \begin_inset Flex Code
26474 status collapsed
26475
26476 \begin_layout Plain Layout
26477
26478 \emph on
26479 normal
26480 \end_layout
26481
26482 \end_inset
26483
26484 ,
26485  
26486 \begin_inset Flex Code
26487 status collapsed
26488
26489 \begin_layout Plain Layout
26490 large
26491 \end_layout
26492
26493 \end_inset
26494
26495 ,
26496  
26497 \begin_inset Flex Code
26498 status collapsed
26499
26500 \begin_layout Plain Layout
26501 larger
26502 \end_layout
26503
26504 \end_inset
26505
26506 ,
26507  
26508 \begin_inset Flex Code
26509 status collapsed
26510
26511 \begin_layout Plain Layout
26512 largest
26513 \end_layout
26514
26515 \end_inset
26516
26517 ,
26518  
26519 \begin_inset Flex Code
26520 status collapsed
26521
26522 \begin_layout Plain Layout
26523 huge
26524 \end_layout
26525
26526 \end_inset
26527
26528 ,
26529  
26530 \begin_inset Flex Code
26531 status collapsed
26532
26533 \begin_layout Plain Layout
26534 giant
26535 \end_layout
26536
26537 \end_inset
26538
26539 ]
26540 \end_layout
26541
26542 \begin_layout Subsection
26543 \begin_inset CommandInset label
26544 LatexCommand label
26545 name "subsec:Citation-engine-description"
26546
26547 \end_inset
26548
26549 Cite engine description
26550 \end_layout
26551
26552 \begin_layout Standard
26553 The 
26554 \begin_inset Flex Code
26555 status collapsed
26556
26557 \begin_layout Plain Layout
26558 CiteEngine
26559 \end_layout
26560
26561 \end_inset
26562
26563  blocks,
26564  as used mainly in cite engine files (see 
26565 \begin_inset CommandInset ref
26566 LatexCommand ref
26567 reference "subsec:Cite-Engine-Files"
26568 plural "false"
26569 caps "false"
26570 noprefix "false"
26571 nolink "false"
26572
26573 \end_inset
26574
26575 ),
26576  define the citation commands provided by a specific 
26577 \begin_inset Quotes eld
26578 \end_inset
26579
26580 cite engine
26581 \begin_inset Quotes erd
26582 \end_inset
26583
26584 .
26585  A cite engine,
26586  in \SpecialChar LyX
26587  terms,
26588  is way specific way to format citations,
26589  using numbers,
26590  author names and/or years.
26591  Currently,
26592  \SpecialChar LyX
26593  supports three such engine types,
26594  namely:
26595 \end_layout
26596
26597 \begin_layout Enumerate
26598 \begin_inset Flex Code
26599 status collapsed
26600
26601 \begin_layout Plain Layout
26602 default
26603 \end_layout
26604
26605 \end_inset
26606
26607 :
26608  the default Bib\SpecialChar TeX
26609  way to format citations,
26610  a simple numeric style (e.
26611 \begin_inset space \thinspace{}
26612 \end_inset
26613
26614 g.,
26615  
26616 \begin_inset Quotes eld
26617 \end_inset
26618
26619 [1]
26620 \begin_inset Quotes erd
26621 \end_inset
26622
26623 )
26624 \end_layout
26625
26626 \begin_layout Enumerate
26627 \begin_inset Flex Code
26628 status collapsed
26629
26630 \begin_layout Plain Layout
26631 authoryear
26632 \end_layout
26633
26634 \end_inset
26635
26636 :
26637  Harvard-styled citations using author names and publication year (e.
26638 \begin_inset space \thinspace{}
26639 \end_inset
26640
26641 g.,
26642  
26643 \begin_inset Quotes eld
26644 \end_inset
26645
26646 Smith and Miller (2017b)
26647 \begin_inset Quotes erd
26648 \end_inset
26649
26650 )
26651 \end_layout
26652
26653 \begin_layout Enumerate
26654 \begin_inset Flex Code
26655 status collapsed
26656
26657 \begin_layout Plain Layout
26658 numerical
26659 \end_layout
26660
26661 \end_inset
26662
26663 :
26664  extended numerical citations that also allow for author or title next to the number (e.
26665 \begin_inset space \thinspace{}
26666 \end_inset
26667
26668 g.,
26669  
26670 \begin_inset Quotes eld
26671 \end_inset
26672
26673 Smith and Miller [1]
26674 \begin_inset Quotes erd
26675 \end_inset
26676
26677 )
26678 \end_layout
26679
26680 \begin_layout Standard
26681 \begin_inset Flex Code
26682 status collapsed
26683
26684 \begin_layout Plain Layout
26685 CiteEngine
26686 \end_layout
26687
26688 \end_inset
26689
26690  blocks look like this:
26691 \end_layout
26692
26693 \begin_layout LyX-Code
26694 CiteEngine default
26695 \end_layout
26696
26697 \begin_layout LyX-Code
26698  cite
26699 \end_layout
26700
26701 \begin_layout LyX-Code
26702  Citep*[][]
26703 \end_layout
26704
26705 \begin_layout LyX-Code
26706  citeyearpar[][]=parencite*
26707 \end_layout
26708
26709 \begin_layout LyX-Code
26710  ...
26711 \end_layout
26712
26713 \begin_layout LyX-Code
26714 End
26715 \end_layout
26716
26717 \begin_layout Standard
26718 The tag following 
26719 \begin_inset Flex Code
26720 status collapsed
26721
26722 \begin_layout Plain Layout
26723 CiteEngine
26724 \end_layout
26725
26726 \end_inset
26727
26728  denotes the engine.
26729  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
26730  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
26731  command and the \SpecialChar LaTeX
26732  output or more complex in order to differentiate things.
26733  The full syntax is:
26734 \end_layout
26735
26736 \begin_layout LyX-Code
26737 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
26738 \end_layout
26739
26740 \begin_layout Itemize
26741 \begin_inset Flex Code
26742 status collapsed
26743
26744 \begin_layout Plain Layout
26745 LyXName
26746 \end_layout
26747
26748 \end_inset
26749
26750 :
26751  The name as used in the 
26752 \begin_inset Flex Code
26753 status collapsed
26754
26755 \begin_layout Plain Layout
26756 *.lyx
26757 \end_layout
26758
26759 \end_inset
26760
26761  file.
26762 \end_layout
26763
26764 \begin_deeper
26765 \begin_layout Standard
26766 For portability reasons,
26767  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
26768  and thus we need to differentiate a 
26769 \begin_inset Flex Code
26770 status collapsed
26771
26772 \begin_layout Plain Layout
26773 latexcmd
26774 \end_layout
26775
26776 \end_inset
26777
26778  sometimes,
26779  if the \SpecialChar LaTeX
26780  command names differ).
26781 \end_layout
26782
26783 \end_deeper
26784 \begin_layout Itemize
26785 \begin_inset Flex Code
26786 status collapsed
26787
26788 \begin_layout Plain Layout
26789 alias
26790 \end_layout
26791
26792 \end_inset
26793
26794 :
26795  a (comma-separated) list of commands that fall back to the given 
26796 \begin_inset Flex Code
26797 status collapsed
26798
26799 \begin_layout Plain Layout
26800 LyXName
26801 \end_layout
26802
26803 \end_inset
26804
26805  in the current engine.
26806  This eases the switch of citation packages and engines.
26807  The 
26808 \begin_inset Flex Code
26809 status collapsed
26810
26811 \begin_layout Plain Layout
26812 alias
26813 \end_layout
26814
26815 \end_inset
26816
26817  can be compared to 
26818 \begin_inset Flex Code
26819 status collapsed
26820
26821 \begin_layout Plain Layout
26822 ObsoletedBy
26823 \end_layout
26824
26825 \end_inset
26826
26827  in layout definitions.
26828 \end_layout
26829
26830 \begin_layout Itemize
26831 \begin_inset Flex Code
26832 status collapsed
26833
26834 \begin_layout Plain Layout
26835 latexcmd
26836 \end_layout
26837
26838 \end_inset
26839
26840 :
26841  The actual \SpecialChar LaTeX
26842  command that is output.
26843  
26844 \end_layout
26845
26846 \begin_layout Standard
26847 \begin_inset Flex Code
26848 status collapsed
26849
26850 \begin_layout Plain Layout
26851 Alias
26852 \end_layout
26853
26854 \end_inset
26855
26856  and 
26857 \begin_inset Flex Code
26858 status collapsed
26859
26860 \begin_layout Plain Layout
26861 latexcmd
26862 \end_layout
26863
26864 \end_inset
26865
26866  are optional.
26867  If no 
26868 \begin_inset Flex Code
26869 status collapsed
26870
26871 \begin_layout Plain Layout
26872 latexcmd
26873 \end_layout
26874
26875 \end_inset
26876
26877  is given,
26878  the 
26879 \begin_inset Flex Code
26880 status collapsed
26881
26882 \begin_layout Plain Layout
26883 LyXName
26884 \end_layout
26885
26886 \end_inset
26887
26888  will be output to \SpecialChar LaTeX
26889 .
26890 \end_layout
26891
26892 \begin_layout Standard
26893 Note further:
26894 \end_layout
26895
26896 \begin_layout Itemize
26897 Capitalization indicates that the command also has a capitalized form (
26898 \begin_inset Flex Code
26899 status collapsed
26900
26901 \begin_layout Plain Layout
26902
26903 \backslash
26904 Latexcmd
26905 \end_layout
26906
26907 \end_inset
26908
26909  vs.
26910  
26911 \begin_inset Flex Code
26912 status collapsed
26913
26914 \begin_layout Plain Layout
26915
26916 \backslash
26917 latexcmd
26918 \end_layout
26919
26920 \end_inset
26921
26922 ).
26923  These usually enforce up-casing of name prefixes (
26924 \emph on
26925 von Goethe
26926 \emph default
26927  
26928 \begin_inset Formula $\Rightarrow$
26929 \end_inset
26930
26931  
26932 \emph on
26933 Von Goethe
26934 \emph default
26935 ).
26936 \end_layout
26937
26938 \begin_layout Itemize
26939 Brackets 
26940 \begin_inset Flex Code
26941 status collapsed
26942
26943 \begin_layout Plain Layout
26944 []
26945 \end_layout
26946
26947 \end_inset
26948
26949  indicate the number of optional arguments (there can be 0–2).
26950 \end_layout
26951
26952 \begin_layout Itemize
26953 A star 
26954 \begin_inset Flex Code
26955 status collapsed
26956
26957 \begin_layout Plain Layout
26958 *
26959 \end_layout
26960
26961 \end_inset
26962
26963  indicates there is a starred version of the command (
26964 \begin_inset Flex Code
26965 status collapsed
26966
26967 \begin_layout Plain Layout
26968
26969 \backslash
26970 latexcmd*
26971 \end_layout
26972
26973 \end_inset
26974
26975  vs.
26976  
26977 \begin_inset Flex Code
26978 status collapsed
26979
26980 \begin_layout Plain Layout
26981
26982 \backslash
26983 latexcmd
26984 \end_layout
26985
26986 \end_inset
26987
26988 ).
26989  
26990 \end_layout
26991
26992 \begin_deeper
26993 \begin_layout Standard
26994 By default,
26995  the starred version means:
26996  Output all authors even if it should be shortened with 
26997 \begin_inset Quotes eld
26998 \end_inset
26999
27000 et al.
27001 \begin_inset Quotes erd
27002 \end_inset
27003
27004  due to the 
27005 \begin_inset Flex Code
27006 status collapsed
27007
27008 \begin_layout Plain Layout
27009 MaxCiteNames
27010 \end_layout
27011
27012 \end_inset
27013
27014  threshold.
27015 \end_layout
27016
27017 \begin_layout Standard
27018 If the star has a different meaning for a given command,
27019  it can be specified in angle brackets:
27020  
27021 \begin_inset Flex Code
27022 status collapsed
27023
27024 \begin_layout Plain Layout
27025 <!_stardesc!_stardesctooltip>
27026 \end_layout
27027
27028 \end_inset
27029
27030 .
27031  Maximal two translatable macro keywords,
27032  marked by the prefix 
27033 \begin_inset Flex Code
27034 status collapsed
27035
27036 \begin_layout Plain Layout
27037 !_
27038 \end_layout
27039
27040 \end_inset
27041
27042 ,
27043  can be given.
27044  The first points to the string that replaces the 
27045 \begin_inset Quotes eld
27046 \end_inset
27047
27048 Full aut&hor list
27049 \begin_inset Quotes erd
27050 \end_inset
27051
27052  checkbox label in the citation dialog,
27053  the second one to an optional tool tip for this checkbox.
27054  
27055 \end_layout
27056
27057 \begin_layout Standard
27058 Note that these two macros have to be defined in a 
27059 \begin_inset Flex Code
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063 CiteFormat
27064 \end_layout
27065
27066 \end_inset
27067
27068  (see next section),
27069  dropping the 
27070 \begin_inset Flex Code
27071 status collapsed
27072
27073 \begin_layout Plain Layout
27074 !
27075 \end_layout
27076
27077 \end_inset
27078
27079  from the prefix,
27080  like this:
27081  
27082 \end_layout
27083
27084 \begin_layout LyX-Code
27085 _stardesc Sta&rred command label
27086 \end_layout
27087
27088 \begin_layout LyX-Code
27089 _stardesctooltip Tooltip for the starred command checkbox.
27090 \end_layout
27091
27092 \end_deeper
27093 \begin_layout Itemize
27094 A dollar sign 
27095 \begin_inset Flex Code
27096 status collapsed
27097
27098 \begin_layout Plain Layout
27099 $
27100 \end_layout
27101
27102 \end_inset
27103
27104  indicates that this command features 
27105 \begin_inset Quotes eld
27106 \end_inset
27107
27108 qualified citation lists
27109 \begin_inset Quotes erd
27110 \end_inset
27111
27112 .
27113  This is a 
27114 \family sans
27115 Biblatex
27116 \family default
27117 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
27118  Please refer to the 
27119 \family sans
27120 Biblatex
27121 \family default
27122  manual for details.
27123 \change_inserted -712698321 1526898670
27124
27125 \end_layout
27126
27127 \begin_layout Standard
27128
27129 \change_inserted -712698321 1526899524
27130 If you want to add a cite command to a cite engine (e.
27131 \begin_inset space \thinspace{}
27132 \end_inset
27133
27134 g.,
27135  add a specific command provided by a class),
27136  you can use 
27137 \begin_inset Flex Code
27138 status collapsed
27139
27140 \begin_layout Plain Layout
27141
27142 \change_inserted -712698321 1526898768
27143 AddToCiteEngine <engine type> \SpecialChar ldots
27144  End
27145 \change_unchanged
27146
27147 \end_layout
27148
27149 \end_inset
27150
27151 .
27152  Note that only cite commands that do not exist yet are added.
27153 \change_unchanged
27154
27155 \end_layout
27156
27157 \begin_layout Subsection
27158 \begin_inset CommandInset label
27159 LatexCommand label
27160 name "subsec:Citation-format-description"
27161
27162 \end_inset
27163
27164 Cite format description
27165 \end_layout
27166
27167 \begin_layout Standard
27168 The 
27169 \begin_inset Flex Code
27170 status collapsed
27171
27172 \begin_layout Plain Layout
27173 CiteFormat
27174 \end_layout
27175
27176 \end_inset
27177
27178  blocks are used to describe how bibliographic information should be displayed,
27179  both within \SpecialChar LyX
27180  itself (in the citation dialog and in tooltips,
27181  for example) and in XHTML output.
27182  Such a block might look like this:
27183 \end_layout
27184
27185 \begin_layout LyX-Code
27186 CiteFormat
27187 \end_layout
27188
27189 \begin_layout LyX-Code
27190  article ...
27191 \end_layout
27192
27193 \begin_layout LyX-Code
27194  book ...
27195 \end_layout
27196
27197 \begin_layout LyX-Code
27198 End
27199 \end_layout
27200
27201 \begin_layout Standard
27202 or
27203 \end_layout
27204
27205 \begin_layout LyX-Code
27206 CiteFormat
27207 \end_layout
27208
27209 \begin_layout LyX-Code
27210  cite ...
27211 \end_layout
27212
27213 \begin_layout LyX-Code
27214  citet*[][] ...
27215 \end_layout
27216
27217 \begin_layout LyX-Code
27218 End
27219 \end_layout
27220
27221 \begin_layout Standard
27222 In the first case,
27223  the individual lines define how the bibliographic information associated with an article or book,
27224  respectively,
27225  is to be displayed,
27226  and such a definition can be given for any 
27227 \begin_inset Quotes els
27228 \end_inset
27229
27230 entry type
27231 \begin_inset Quotes ers
27232 \end_inset
27233
27234  that might be present in a Bib\SpecialChar TeX
27235  file.
27236  \SpecialChar LyX
27237  defines a default format in the source code that will be used if no specific definition has been given.
27238  \SpecialChar LyX
27239  predefines several formats in the file 
27240 \begin_inset Flex Code
27241 status collapsed
27242
27243 \begin_layout Plain Layout
27244 stdciteformats.inc
27245 \end_layout
27246
27247 \end_inset
27248
27249 ,
27250  which is included in most of \SpecialChar LyX
27251 's document classes.
27252 \end_layout
27253
27254 \begin_layout Standard
27255 In the second case,
27256  the lines define how a specific citation command (in the example 
27257 \begin_inset Flex Code
27258 status collapsed
27259
27260 \begin_layout Plain Layout
27261
27262 \backslash
27263 cite
27264 \end_layout
27265
27266 \end_inset
27267
27268 ,
27269  
27270 \begin_inset Flex Code
27271 status collapsed
27272
27273 \begin_layout Plain Layout
27274
27275 \backslash
27276 citet
27277 \end_layout
27278
27279 \end_inset
27280
27281 ) is to be displayed on the citation inset label,
27282  in the citation dialog,
27283  menu or XHTML output.
27284  \SpecialChar LyX
27285  defines such formats for the citation style variants it supports via 
27286 \family sans
27287 Document\SpecialChar menuseparator
27288 Setting\SpecialChar menuseparator
27289 Bibliography\SpecialChar ldots
27290
27291 \family default
27292  in specific 
27293 \begin_inset Flex Code
27294 status collapsed
27295
27296 \begin_layout Plain Layout
27297 *.citeengine
27298 \end_layout
27299
27300 \end_inset
27301
27302  files that are shipped with \SpecialChar LyX
27303  (see 
27304 \begin_inset CommandInset ref
27305 LatexCommand ref
27306 reference "subsec:Cite-Engine-Files"
27307 plural "false"
27308 caps "false"
27309 noprefix "false"
27310 nolink "false"
27311
27312 \end_inset
27313
27314 ).
27315 \end_layout
27316
27317 \begin_layout Standard
27318 The definitions use a simple language that allows Bib\SpecialChar TeX
27319  keys to be replaced with their values.
27320  Keys should be enclosed in 
27321 \begin_inset Flex Code
27322 status collapsed
27323
27324 \begin_layout Plain Layout
27325 %
27326 \end_layout
27327
27328 \end_inset
27329
27330  signs,
27331  e.g.:
27332  
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 .
27343  So a simple definition might look like this:
27344 \end_layout
27345
27346 \begin_layout LyX-Code
27347 misc %author%,
27348  
27349 \begin_inset Quotes eld
27350 \end_inset
27351
27352 %title%
27353 \begin_inset Quotes erd
27354 \end_inset
27355
27356 .
27357 \end_layout
27358
27359 \begin_layout Standard
27360 This would print the author,
27361  followed by a comma,
27362  followed by the title,
27363  in quotes,
27364  followed by a period.
27365 \end_layout
27366
27367 \begin_layout Standard
27368 Of course,
27369  sometimes you may want to print a key only if it exists.
27370  This can be done by using a conditional construction,
27371  such as:
27372  
27373 \begin_inset Flex Code
27374 status collapsed
27375
27376 \begin_layout Plain Layout
27377 {%volume%[[vol.
27378 \begin_inset space ~
27379 \end_inset
27380
27381 %volume%]]}
27382 \end_layout
27383
27384 \end_inset
27385
27386 .
27387  This says:
27388  If the 
27389 \begin_inset Flex Code
27390 status collapsed
27391
27392 \begin_layout Plain Layout
27393 volume
27394 \end_layout
27395
27396 \end_inset
27397
27398  key exists,
27399  then print 
27400 \begin_inset Quotes eld
27401 \end_inset
27402
27403 vol.
27404 \begin_inset space ~
27405 \end_inset
27406
27407
27408 \begin_inset Quotes erd
27409 \end_inset
27410
27411  followed by the volume key.
27412  It is also possible to have an else clause in the conditional,
27413  such as:
27414 \begin_inset Newline newline
27415 \end_inset
27416
27417
27418 \begin_inset Flex Code
27419 status collapsed
27420
27421 \begin_layout Plain Layout
27422 {%author%[[%author%]][[%editor%,
27423  ed.]]}
27424 \end_layout
27425
27426 \end_inset
27427
27428 .
27429 \begin_inset Newline newline
27430 \end_inset
27431
27432 Here,
27433  the 
27434 \begin_inset Flex Code
27435 status collapsed
27436
27437 \begin_layout Plain Layout
27438 author
27439 \end_layout
27440
27441 \end_inset
27442
27443  key is printed if it exists;
27444  otherwise,
27445  the editor key is printed,
27446  followed by 
27447 \begin_inset Quotes eld
27448 \end_inset
27449
27450 ,
27451 \begin_inset space ~
27452 \end_inset
27453
27454 ed.
27455 \begin_inset Quotes erd
27456 \end_inset
27457
27458  Note that the key is again enclosed in 
27459 \begin_inset Flex Code
27460 status collapsed
27461
27462 \begin_layout Plain Layout
27463 %
27464 \end_layout
27465
27466 \end_inset
27467
27468  signs;
27469  the entire conditional is enclosed in braces;
27470  and the if and else clauses are enclosed in double brackets,
27471  
27472 \begin_inset Quotes eld
27473 \end_inset
27474
27475
27476 \begin_inset Flex Code
27477 status collapsed
27478
27479 \begin_layout Plain Layout
27480 [[
27481 \end_layout
27482
27483 \end_inset
27484
27485
27486 \begin_inset Quotes eld
27487 \end_inset
27488
27489  and 
27490 \begin_inset Quotes eld
27491 \end_inset
27492
27493
27494 \begin_inset Flex Code
27495 status collapsed
27496
27497 \begin_layout Plain Layout
27498 ]]
27499 \end_layout
27500
27501 \end_inset
27502
27503
27504 \begin_inset Quotes erd
27505 \end_inset
27506
27507 .
27508  There must be no space between any of these.
27509 \end_layout
27510
27511 \begin_layout Standard
27512 Next to the entry keys,
27513  there are some special keys that can be used for these conditionals:
27514 \end_layout
27515
27516 \begin_layout Itemize
27517 \begin_inset Flex Code
27518 status collapsed
27519
27520 \begin_layout Plain Layout
27521 {%dialog%[[true]][[false]]}
27522 \end_layout
27523
27524 \end_inset
27525
27526 :
27527  process the 
27528 \begin_inset Quotes eld
27529 \end_inset
27530
27531 true
27532 \begin_inset Quotes erd
27533 \end_inset
27534
27535  part for dialogs and menus,
27536  the 
27537 \begin_inset Quotes eld
27538 \end_inset
27539
27540 false
27541 \begin_inset Quotes erd
27542 \end_inset
27543
27544  part for other contexts (workarea,
27545  export)
27546 \end_layout
27547
27548 \begin_layout Itemize
27549 \begin_inset Flex Code
27550 status collapsed
27551
27552 \begin_layout Plain Layout
27553 {%export%[[true]][[false]]}
27554 \end_layout
27555
27556 \end_inset
27557
27558 :
27559  process the 
27560 \begin_inset Quotes eld
27561 \end_inset
27562
27563 true
27564 \begin_inset Quotes erd
27565 \end_inset
27566
27567  part for export and menus,
27568  the 
27569 \begin_inset Quotes eld
27570 \end_inset
27571
27572 false
27573 \begin_inset Quotes erd
27574 \end_inset
27575
27576  part for other contexts (workarea,
27577  dialog)
27578 \end_layout
27579
27580 \begin_layout Itemize
27581 \begin_inset Flex Code
27582 status collapsed
27583
27584 \begin_layout Plain Layout
27585 {%next%[[true]]}
27586 \end_layout
27587
27588 \end_inset
27589
27590 :
27591  process the 
27592 \begin_inset Quotes eld
27593 \end_inset
27594
27595 true
27596 \begin_inset Quotes erd
27597 \end_inset
27598
27599  part if another item follows (e.
27600 \begin_inset space \thinspace{}
27601 \end_inset
27602
27603 g.,
27604  in a citation with multiple keys)
27605 \end_layout
27606
27607 \begin_layout Itemize
27608 \begin_inset Flex Code
27609 status collapsed
27610
27611 \begin_layout Plain Layout
27612 {%second%[[true]][[false]]}
27613 \end_layout
27614
27615 \end_inset
27616
27617 :
27618  process the 
27619 \begin_inset Quotes eld
27620 \end_inset
27621
27622 true
27623 \begin_inset Quotes erd
27624 \end_inset
27625
27626  if this is the second of multiple items,
27627  else the 
27628 \begin_inset Quotes eld
27629 \end_inset
27630
27631 false
27632 \begin_inset Quotes erd
27633 \end_inset
27634
27635  part
27636 \end_layout
27637
27638 \begin_layout Itemize
27639 \begin_inset Flex Code
27640 status collapsed
27641
27642 \begin_layout Plain Layout
27643 {%ifstar%[[true]][[false]]}
27644 \end_layout
27645
27646 \end_inset
27647
27648 :
27649  process the 
27650 \begin_inset Quotes eld
27651 \end_inset
27652
27653 true
27654 \begin_inset Quotes erd
27655 \end_inset
27656
27657  part for starred citation commands (such as 
27658 \begin_inset Flex Code
27659 status collapsed
27660
27661 \begin_layout Plain Layout
27662
27663 \backslash
27664 cite*
27665 \end_layout
27666
27667 \end_inset
27668
27669 ),
27670  the false part for unstarred
27671 \end_layout
27672
27673 \begin_layout Itemize
27674 \begin_inset Flex Code
27675 status collapsed
27676
27677 \begin_layout Plain Layout
27678 {%ifentrytype:<type>%[[true]][[false]]}
27679 \end_layout
27680
27681 \end_inset
27682
27683 :
27684  process the 
27685 \begin_inset Quotes eld
27686 \end_inset
27687
27688 true
27689 \begin_inset Quotes erd
27690 \end_inset
27691
27692  if the current entry type matches 
27693 \begin_inset Flex Code
27694 status collapsed
27695
27696 \begin_layout Plain Layout
27697 <type>
27698 \end_layout
27699
27700 \end_inset
27701
27702 ,
27703  else the false part (e.g.,
27704  in a citation definition:
27705  
27706 \begin_inset Flex Code
27707 status collapsed
27708
27709 \begin_layout Plain Layout
27710 {%ifentrytype:book%[[this is a book]][[this is no book]]}
27711 \end_layout
27712
27713 \end_inset
27714
27715 )
27716 \end_layout
27717
27718 \begin_layout Itemize
27719 \begin_inset Flex Code
27720 status collapsed
27721
27722 \begin_layout Plain Layout
27723 {%ifmultiple:<authortype>%[[true]][[false]]}
27724 \end_layout
27725
27726 \end_inset
27727
27728 :
27729  process the 
27730 \begin_inset Quotes eld
27731 \end_inset
27732
27733 true
27734 \begin_inset Quotes erd
27735 \end_inset
27736
27737  if the current author type (author,
27738  editor etc.) has multiple authors,
27739  else the false part (e.g.,
27740  in a bibliography definition:
27741  
27742 \begin_inset Flex Code
27743 status collapsed
27744
27745 \begin_layout Plain Layout
27746 {%ifmultiple:editor%[[eds.]][[ed.]]}
27747 \end_layout
27748
27749 \end_inset
27750
27751 )
27752 \end_layout
27753
27754 \begin_layout Itemize
27755 \begin_inset Flex Code
27756 status collapsed
27757
27758 \begin_layout Plain Layout
27759 {%ifqualified%[[true]][[false]]}
27760 \end_layout
27761
27762 \end_inset
27763
27764 :
27765  process the 
27766 \begin_inset Quotes eld
27767 \end_inset
27768
27769 true
27770 \begin_inset Quotes erd
27771 \end_inset
27772
27773  part if the current citation is a qualified citation list (a specific 
27774 \family sans
27775 Biblatex
27776 \family default
27777  format for multi-reference citations),
27778  the false part if this is not the case.
27779 \end_layout
27780
27781 \begin_layout Standard
27782 We said that 
27783 \begin_inset Flex Code
27784 status collapsed
27785
27786 \begin_layout Plain Layout
27787 %author%
27788 \end_layout
27789
27790 \end_inset
27791
27792  prints the author key as it is recorded in the bibliography file.
27793  This might not be what you want,
27794  since it will result in a string such as 
27795 \begin_inset Quotes eld
27796 \end_inset
27797
27798 Miller,
27799  Peter and Smith,
27800  Mary and White,
27801  Jane
27802 \begin_inset Quotes erd
27803 \end_inset
27804
27805  (since 
27806 \begin_inset Quotes eld
27807 \end_inset
27808
27809 and
27810 \begin_inset Quotes erd
27811 \end_inset
27812
27813  is used by Bib\SpecialChar TeX
27814  to delimit authors).
27815  \SpecialChar LyX
27816  therefore provides some methods to get properly formatted name lists (which will also get translated).
27817  The following keys are provided:
27818 \end_layout
27819
27820 \begin_layout Enumerate
27821 For name lists with pre- and surname,
27822  suitable for the main authors/editors of a bibliography item.
27823  The 
27824 \begin_inset Flex Code
27825 status collapsed
27826
27827 \begin_layout Plain Layout
27828 <nametype>
27829 \end_layout
27830
27831 \end_inset
27832
27833  part denotes the kind of list that is requested (e.g.
27834  
27835 \begin_inset Flex Code
27836 status collapsed
27837
27838 \begin_layout Plain Layout
27839 <nametype:author>
27840 \end_layout
27841
27842 \end_inset
27843
27844 ):
27845 \end_layout
27846
27847 \begin_deeper
27848 \begin_layout Itemize
27849 \begin_inset Flex Code
27850 status collapsed
27851
27852 \begin_layout Plain Layout
27853 %abbrvnames:<nametype>%
27854 \end_layout
27855
27856 \end_inset
27857
27858 :
27859  Provides a name list which is abbreviated (with 
27860 \begin_inset Quotes eld
27861 \end_inset
27862
27863 et al.
27864 \begin_inset Quotes erd
27865 \end_inset
27866
27867 ) when 
27868 \begin_inset Flex Code
27869 status collapsed
27870
27871 \begin_layout Plain Layout
27872 MaxCiteNames
27873 \end_layout
27874
27875 \end_inset
27876
27877  is reached.
27878 \end_layout
27879
27880 \begin_layout Itemize
27881 \begin_inset Flex Code
27882 status collapsed
27883
27884 \begin_layout Plain Layout
27885 %fullnames:<nametype>%
27886 \end_layout
27887
27888 \end_inset
27889
27890 :
27891  Provides a full name list (never abbreviated with 
27892 \begin_inset Quotes eld
27893 \end_inset
27894
27895 et al.
27896 \begin_inset Quotes erd
27897 \end_inset
27898
27899 ).
27900 \end_layout
27901
27902 \begin_layout Itemize
27903 \begin_inset Flex Code
27904 status collapsed
27905
27906 \begin_layout Plain Layout
27907 %forceabbrvnames:<nametype>%
27908 \end_layout
27909
27910 \end_inset
27911
27912 :
27913  Provides a name list which is always abbreviated (with 
27914 \begin_inset Quotes eld
27915 \end_inset
27916
27917 et al.
27918 \begin_inset Quotes erd
27919 \end_inset
27920
27921 ) irrespective of 
27922 \begin_inset Flex Code
27923 status collapsed
27924
27925 \begin_layout Plain Layout
27926 MaxCiteNames
27927 \end_layout
27928
27929 \end_inset
27930
27931 .
27932 \end_layout
27933
27934 \end_deeper
27935 \begin_layout Enumerate
27936 Alternative name lists with pre- and surname,
27937  if the order of pre- and surname inside the bibliography item differs (as in:
27938  
27939 \begin_inset Quotes eld
27940 \end_inset
27941
27942 Miller,
27943  John:
27944  Some text,
27945  in:
27946  Mary Smith,
27947  ed.:
27948  A volume
27949 \begin_inset Quotes erd
27950 \end_inset
27951
27952 ):
27953 \end_layout
27954
27955 \begin_deeper
27956 \begin_layout Itemize
27957 \begin_inset Flex Code
27958 status collapsed
27959
27960 \begin_layout Plain Layout
27961 %abbrvbynames:<nametype>%
27962 \end_layout
27963
27964 \end_inset
27965
27966 :
27967  Provides a name list which is abbreviated (with 
27968 \begin_inset Quotes eld
27969 \end_inset
27970
27971 et al.
27972 \begin_inset Quotes erd
27973 \end_inset
27974
27975 ) when 
27976 \begin_inset Flex Code
27977 status collapsed
27978
27979 \begin_layout Plain Layout
27980 MaxCiteNames
27981 \end_layout
27982
27983 \end_inset
27984
27985  is reached.
27986 \end_layout
27987
27988 \begin_layout Itemize
27989 \begin_inset Flex Code
27990 status collapsed
27991
27992 \begin_layout Plain Layout
27993 %fullbynames:<nametype>%
27994 \end_layout
27995
27996 \end_inset
27997
27998 :
27999  Provides a full name list (never abbreviated with 
28000 \begin_inset Quotes eld
28001 \end_inset
28002
28003 et al.
28004 \begin_inset Quotes erd
28005 \end_inset
28006
28007 ).
28008 \end_layout
28009
28010 \begin_layout Itemize
28011 \begin_inset Flex Code
28012 status collapsed
28013
28014 \begin_layout Plain Layout
28015 %forceabbrvbynames:<nametype>%
28016 \end_layout
28017
28018 \end_inset
28019
28020 :
28021  Provides a name list which is always abbreviated (with 
28022 \begin_inset Quotes eld
28023 \end_inset
28024
28025 et al.
28026 \begin_inset Quotes erd
28027 \end_inset
28028
28029 ) irrespective of 
28030 \begin_inset Flex Code
28031 status collapsed
28032
28033 \begin_layout Plain Layout
28034 MaxCiteNames
28035 \end_layout
28036
28037 \end_inset
28038
28039 .
28040 \end_layout
28041
28042 \end_deeper
28043 \begin_layout Enumerate
28044 And finally name lists which consist of family names only,
28045  as used in author-year citation labels.
28046  These do not take a 
28047 \begin_inset Flex Code
28048 status collapsed
28049
28050 \begin_layout Plain Layout
28051 <nametype>
28052 \end_layout
28053
28054 \end_inset
28055
28056  part,
28057  but always return either an author list or,
28058  if this does not exist,
28059  an editor list (as common in author-year labels):
28060 \end_layout
28061
28062 \begin_deeper
28063 \begin_layout Itemize
28064 \begin_inset Flex Code
28065 status collapsed
28066
28067 \begin_layout Plain Layout
28068 %abbrvciteauthor%
28069 \end_layout
28070
28071 \end_inset
28072
28073 :
28074  Provides a name list which is abbreviated (with 
28075 \begin_inset Quotes eld
28076 \end_inset
28077
28078 et al.
28079 \begin_inset Quotes erd
28080 \end_inset
28081
28082 ) when 
28083 \begin_inset Flex Code
28084 status collapsed
28085
28086 \begin_layout Plain Layout
28087 MaxCiteNames
28088 \end_layout
28089
28090 \end_inset
28091
28092  is reached.
28093 \end_layout
28094
28095 \begin_layout Itemize
28096 \begin_inset Flex Code
28097 status collapsed
28098
28099 \begin_layout Plain Layout
28100 %fullciteauthor%
28101 \end_layout
28102
28103 \end_inset
28104
28105 :
28106  Provides a full name list (never abbreviated with 
28107 \begin_inset Quotes eld
28108 \end_inset
28109
28110 et al.
28111 \begin_inset Quotes erd
28112 \end_inset
28113
28114 ).
28115 \end_layout
28116
28117 \begin_layout Itemize
28118 \begin_inset Flex Code
28119 status collapsed
28120
28121 \begin_layout Plain Layout
28122 %forceabbrvciteauthor%
28123 \end_layout
28124
28125 \end_inset
28126
28127 :
28128  Provides a name list which is always abbreviated (with 
28129 \begin_inset Quotes eld
28130 \end_inset
28131
28132 et al.
28133 \begin_inset Quotes erd
28134 \end_inset
28135
28136 ) irrespective of 
28137 \begin_inset Flex Code
28138 status collapsed
28139
28140 \begin_layout Plain Layout
28141 MaxCiteNames
28142 \end_layout
28143
28144 \end_inset
28145
28146 .
28147 \end_layout
28148
28149 \end_deeper
28150 \begin_layout Standard
28151 The order of pre- and surname in the former two lists can be adjusted by these macros:
28152 \end_layout
28153
28154 \begin_layout Itemize
28155 \begin_inset Flex Code
28156 status collapsed
28157
28158 \begin_layout Plain Layout
28159 !firstnameform %surname%,
28160  %prename%
28161 \end_layout
28162
28163 \end_inset
28164
28165  (first author in lists of type 1)
28166 \end_layout
28167
28168 \begin_layout Itemize
28169 \begin_inset Flex Code
28170 status collapsed
28171
28172 \begin_layout Plain Layout
28173 !othernameform %surname%,
28174  %prename%
28175 \end_layout
28176
28177 \end_inset
28178
28179  (other authors in lists of type 1)
28180 \end_layout
28181
28182 \begin_layout Itemize
28183 \begin_inset Flex Code
28184 status collapsed
28185
28186 \begin_layout Plain Layout
28187 !firstbynameform %prename% %surname%
28188 \end_layout
28189
28190 \end_inset
28191
28192  (first author in lists of type 2)
28193 \end_layout
28194
28195 \begin_layout Itemize
28196 \begin_inset Flex Code
28197 status collapsed
28198
28199 \begin_layout Plain Layout
28200 !otherbynameform %prename% %surname%
28201 \end_layout
28202
28203 \end_inset
28204
28205  (other authors in lists of type 2)
28206 \end_layout
28207
28208 \begin_layout Standard
28209 This allows you to configure namings like 
28210 \begin_inset Quotes eld
28211 \end_inset
28212
28213 Miller,
28214  Peter and Mary Smith:
28215  \SpecialChar ldots
28216 ,
28217  in:
28218  John Doe and Pat Green,
28219  eds.:\SpecialChar ldots
28220
28221 \begin_inset Quotes erd
28222 \end_inset
28223
28224 .
28225 \end_layout
28226
28227 \begin_layout Standard
28228 There is one other piece of syntax available in definitions,
28229  which looks like this:
28230  
28231 \begin_inset Flex Code
28232 status collapsed
28233
28234 \begin_layout Plain Layout
28235 {!<i>!}
28236 \end_layout
28237
28238 \end_inset
28239
28240 .
28241  This defines a piece of formatting information that is to be used when creating 
28242 \begin_inset Quotes eld
28243 \end_inset
28244
28245 rich text
28246 \begin_inset Quotes erd
28247 \end_inset
28248
28249 .
28250  Obviously,
28251  we do not want to output HTML tags when writing plain text,
28252  so they should be wrapped in 
28253 \begin_inset Quotes eld
28254 \end_inset
28255
28256 {!
28257 \begin_inset Quotes erd
28258 \end_inset
28259
28260  and 
28261 \begin_inset Quotes eld
28262 \end_inset
28263
28264 !}
28265 \begin_inset Quotes erd
28266 \end_inset
28267
28268 .
28269 \end_layout
28270
28271 \begin_layout Standard
28272 Two special sorts of definitions are also possible in a 
28273 \begin_inset Flex Code
28274 status collapsed
28275
28276 \begin_layout Plain Layout
28277 CiteFormat
28278 \end_layout
28279
28280 \end_inset
28281
28282  block.
28283  An example of the first would be:
28284 \end_layout
28285
28286 \begin_layout LyX-Code
28287 !quotetitle 
28288 \begin_inset Quotes eld
28289 \end_inset
28290
28291 %title%
28292 \begin_inset Quotes erd
28293 \end_inset
28294
28295
28296 \end_layout
28297
28298 \begin_layout Standard
28299 This is an abbreviation,
28300  or macro,
28301  and it can be used by treating it as if it were a key:
28302  
28303 \begin_inset Flex Code
28304 status collapsed
28305
28306 \begin_layout Plain Layout
28307 %!quotetitle%
28308 \end_layout
28309
28310 \end_inset
28311
28312 .
28313  \SpecialChar LyX
28314  will treat 
28315 \begin_inset Flex Code
28316 status collapsed
28317
28318 \begin_layout Plain Layout
28319 %!quotetitle%
28320 \end_layout
28321
28322 \end_inset
28323
28324  exactly as it would treat its definition.
28325  So,
28326  let us issue the obvious 
28327 \emph on
28328 warning
28329 \emph default
28330 .
28331  Do not do this:
28332 \end_layout
28333
28334 \begin_layout LyX-Code
28335 !funfun %funfun%
28336 \end_layout
28337
28338 \begin_layout Standard
28339 or anything like it.
28340  \SpecialChar LyX
28341  shouldn't go into an infinite loop,
28342  but it may go into a long one before it gives up.
28343 \end_layout
28344
28345 \begin_layout Standard
28346 The second sort of special definition might look like this:
28347 \end_layout
28348
28349 \begin_layout LyX-Code
28350 B_pptext pp.
28351 \end_layout
28352
28353 \begin_layout Standard
28354 This defines a translatable piece of text,
28355  which allows relevant parts of the bibliography or citation to be translated.
28356  It can be included in a definition by treating it as a key:
28357  
28358 \begin_inset Flex Code
28359 status collapsed
28360
28361 \begin_layout Plain Layout
28362 %B_pptext%
28363 \end_layout
28364
28365 \end_inset
28366
28367 .
28368  Note that there are two different translation paths:
28369  All definitions starting with 
28370 \begin_inset Flex Code
28371 status collapsed
28372
28373 \begin_layout Plain Layout
28374 B_
28375 \end_layout
28376
28377 \end_inset
28378
28379 ,
28380  such as in the example above,
28381  will be translated to the currently active buffer language (so the translation will match the generated document).
28382  All definitions starting with underscore only will be translated to the GUI language.
28383  This is the proper translation for strings that only occur in the dialogs or on buttons,
28384  such as this one:
28385 \end_layout
28386
28387 \begin_layout LyX-Code
28388 _addtobib Add to bibliography only.
28389 \end_layout
28390
28391 \begin_layout Standard
28392 Several of these translatable strings are predefined in 
28393 \begin_inset Flex Code
28394 status collapsed
28395
28396 \begin_layout Plain Layout
28397 stdciteformats.inc
28398 \end_layout
28399
28400 \end_inset
28401
28402  and the diverse 
28403 \begin_inset Flex Code
28404 status collapsed
28405
28406 \begin_layout Plain Layout
28407 *.citeengine
28408 \end_layout
28409
28410 \end_inset
28411
28412  files.
28413  Note that these are not macros,
28414  in the sense just defined.
28415  They will not be expanded.
28416 \end_layout
28417
28418 \begin_layout Standard
28419 So here then is an example that uses several of these features:
28420 \begin_inset VSpace defskip
28421 \end_inset
28422
28423
28424 \end_layout
28425
28426 \begin_layout Standard
28427 \noindent
28428
28429 \family sans
28430 !authoredit {%author%[[%author%,
28431  ]][[{%editor%[[%editor%,
28432  %B_edtext%,
28433  ]]}]]}
28434 \end_layout
28435
28436 \begin_layout Standard
28437 \begin_inset VSpace defskip
28438 \end_inset
28439
28440 This defines a macro that prints the author,
28441  followed by a comma,
28442  if the 
28443 \begin_inset Flex Code
28444 status collapsed
28445
28446 \begin_layout Plain Layout
28447 author
28448 \end_layout
28449
28450 \end_inset
28451
28452  key is defined,
28453  or else prints the name of the editor,
28454  followed by the 
28455 \begin_inset Flex Code
28456 status collapsed
28457
28458 \begin_layout Plain Layout
28459 B_edtext
28460 \end_layout
28461
28462 \end_inset
28463
28464  or its translation (it is by default 
28465 \begin_inset Quotes eld
28466 \end_inset
28467
28468 ed.
28469 \begin_inset Quotes erd
28470 \end_inset
28471
28472 ),
28473  if the 
28474 \begin_inset Flex Code
28475 status collapsed
28476
28477 \begin_layout Plain Layout
28478 editor
28479 \end_layout
28480
28481 \end_inset
28482
28483  key is defined.
28484  Note that this is in fact defined in 
28485 \begin_inset Flex Code
28486 status collapsed
28487
28488 \begin_layout Plain Layout
28489 stdciteformats.inc
28490 \end_layout
28491
28492 \end_inset
28493
28494 ,
28495  so you can use it in your own definitions,
28496  or re-definitions,
28497  if you load that file first.
28498 \end_layout
28499
28500 \begin_layout Section
28501 \begin_inset CommandInset label
28502 LatexCommand label
28503 name "sec:Tags-for-XHTML"
28504
28505 \end_inset
28506
28507 Tags for XHTML output
28508 \end_layout
28509
28510 \begin_layout Standard
28511 As with \SpecialChar LaTeX
28512  or DocBook,
28513  the format of \SpecialChar LyX
28514 's XHTML output is also controlled by layout information.
28515  In general,
28516  \SpecialChar LyX
28517  provides sensible defaults and,
28518  as mentioned earlier,
28519  it will even construct default CSS style rules from the other layout tags.
28520  For example,
28521  \SpecialChar LyX
28522  will attempt to use the information provided in the 
28523 \begin_inset Flex Code
28524 status collapsed
28525
28526 \begin_layout Plain Layout
28527 Font
28528 \end_layout
28529
28530 \end_inset
28531
28532  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
28533 \end_layout
28534
28535 \begin_layout Standard
28536 In many cases,
28537  then,
28538  you may not have to do anything at all to get acceptable XHTML output for your own environments,
28539  custom insets,
28540  and so forth.
28541  But in some cases you will,
28542  and so \SpecialChar LyX
28543  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
28544 \end_layout
28545
28546 \begin_layout Standard
28547 Note that there are two tags,
28548  
28549 \begin_inset Flex Code
28550 status collapsed
28551
28552 \begin_layout Plain Layout
28553 HTMLPreamble
28554 \end_layout
28555
28556 \end_inset
28557
28558  and 
28559 \begin_inset Flex Code
28560 status collapsed
28561
28562 \begin_layout Plain Layout
28563 AddToHTMLPreamble
28564 \end_layout
28565
28566 \end_inset
28567
28568  that may appear outside style and inset declarations.
28569  See 
28570 \begin_inset CommandInset ref
28571 LatexCommand ref
28572 reference "subsec:General-text-class"
28573 nolink "false"
28574
28575 \end_inset
28576
28577  for details on these.
28578 \end_layout
28579
28580 \begin_layout Subsection
28581 \begin_inset CommandInset label
28582 LatexCommand label
28583 name "subsec:Paragraph-Style-XHTML"
28584
28585 \end_inset
28586
28587 Paragraph styles
28588 \end_layout
28589
28590 \begin_layout Standard
28591 The sort of XHTML \SpecialChar LyX
28592  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
28593  a command,
28594  or an environment,
28595  where this is itself determined by the contents of the corresponding 
28596 \begin_inset Flex Code
28597 status collapsed
28598
28599 \begin_layout Plain Layout
28600 \SpecialChar LaTeX
28601 Type
28602 \end_layout
28603
28604 \end_inset
28605
28606  tag.
28607  
28608 \end_layout
28609
28610 \begin_layout Standard
28611 For a command or normal paragraph,
28612  the output XHTML has the following form:
28613 \end_layout
28614
28615 \begin_layout LyX-Code
28616
28617 \family sans
28618 <tag attr=
28619 \begin_inset Quotes erd
28620 \end_inset
28621
28622 value
28623 \begin_inset Quotes erd
28624 \end_inset
28625
28626 >
28627 \end_layout
28628
28629 \begin_layout LyX-Code
28630
28631 \family sans
28632 <labeltag attr=
28633 \begin_inset Quotes erd
28634 \end_inset
28635
28636 value
28637 \begin_inset Quotes erd
28638 \end_inset
28639
28640 >Label</labeltag>
28641 \end_layout
28642
28643 \begin_layout LyX-Code
28644
28645 \family sans
28646 Contents of the paragraph.
28647 \end_layout
28648
28649 \begin_layout LyX-Code
28650
28651 \family sans
28652 </tag>
28653 \end_layout
28654
28655 \begin_layout Standard
28656 The label tags are of course omitted if the paragraph does not have a label.
28657 \end_layout
28658
28659 \begin_layout Standard
28660 For an environment that is not some sort of list,
28661  the XHTML takes this form:
28662 \end_layout
28663
28664 \begin_layout LyX-Code
28665
28666 \family sans
28667 <tag attr=
28668 \begin_inset Quotes erd
28669 \end_inset
28670
28671 value
28672 \begin_inset Quotes erd
28673 \end_inset
28674
28675 >
28676 \end_layout
28677
28678 \begin_layout LyX-Code
28679
28680 \family sans
28681 <itemtag attr=
28682 \begin_inset Quotes erd
28683 \end_inset
28684
28685 value
28686 \begin_inset Quotes erd
28687 \end_inset
28688
28689 ><labeltag attr=
28690 \begin_inset Quotes erd
28691 \end_inset
28692
28693 value
28694 \begin_inset Quotes erd
28695 \end_inset
28696
28697 >Environment Label</labeltag>First paragraph.</itemtag>
28698 \end_layout
28699
28700 \begin_layout LyX-Code
28701
28702 \family sans
28703 <itemtag>Second paragraph.</itemtag>
28704 \end_layout
28705
28706 \begin_layout LyX-Code
28707
28708 \family sans
28709 </tag>
28710 \end_layout
28711
28712 \begin_layout Standard
28713 Note that the label is output only for the first paragraph,
28714  as it should be for a theorem,
28715  for example.
28716  
28717 \end_layout
28718
28719 \begin_layout Standard
28720 For a list,
28721  we have one of these forms:
28722 \end_layout
28723
28724 \begin_layout LyX-Code
28725
28726 \family sans
28727 <tag attr=
28728 \begin_inset Quotes erd
28729 \end_inset
28730
28731 value
28732 \begin_inset Quotes erd
28733 \end_inset
28734
28735 >
28736 \end_layout
28737
28738 \begin_layout LyX-Code
28739
28740 \family sans
28741 <itemtag attr=
28742 \begin_inset Quotes erd
28743 \end_inset
28744
28745 value
28746 \begin_inset Quotes erd
28747 \end_inset
28748
28749 ><labeltag attr=
28750 \begin_inset Quotes erd
28751 \end_inset
28752
28753 value
28754 \begin_inset Quotes erd
28755 \end_inset
28756
28757 >List Label</labeltag>First item.</itemtag>
28758 \end_layout
28759
28760 \begin_layout LyX-Code
28761
28762 \family sans
28763 <itemtag attr=
28764 \begin_inset Quotes erd
28765 \end_inset
28766
28767 value
28768 \begin_inset Quotes erd
28769 \end_inset
28770
28771 ><labeltag attr=
28772 \begin_inset Quotes erd
28773 \end_inset
28774
28775 value
28776 \begin_inset Quotes erd
28777 \end_inset
28778
28779 >List Label</labeltag>Second item.</itemtag>
28780 \end_layout
28781
28782 \begin_layout LyX-Code
28783
28784 \family sans
28785 </tag>
28786 \end_layout
28787
28788 \begin_layout LyX-Code
28789
28790 \end_layout
28791
28792 \begin_layout LyX-Code
28793
28794 \family sans
28795 <tag attr=
28796 \begin_inset Quotes erd
28797 \end_inset
28798
28799 value
28800 \begin_inset Quotes erd
28801 \end_inset
28802
28803 >
28804 \end_layout
28805
28806 \begin_layout LyX-Code
28807
28808 \family sans
28809 <labeltag attr=
28810 \begin_inset Quotes erd
28811 \end_inset
28812
28813 value
28814 \begin_inset Quotes erd
28815 \end_inset
28816
28817 >List Label</labeltag><itemtag attr=
28818 \begin_inset Quotes erd
28819 \end_inset
28820
28821 value
28822 \begin_inset Quotes erd
28823 \end_inset
28824
28825 >First item.</itemtag>
28826 \end_layout
28827
28828 \begin_layout LyX-Code
28829
28830 \family sans
28831 <labeltag attr=
28832 \begin_inset Quotes erd
28833 \end_inset
28834
28835 value
28836 \begin_inset Quotes erd
28837 \end_inset
28838
28839 >List Label</labeltag><itemtag attr=
28840 \begin_inset Quotes erd
28841 \end_inset
28842
28843 value
28844 \begin_inset Quotes erd
28845 \end_inset
28846
28847 >Second item.</itemtag>
28848 \end_layout
28849
28850 \begin_layout LyX-Code
28851
28852 \family sans
28853 </tag>
28854 \end_layout
28855
28856 \begin_layout Standard
28857 Note the different orders of 
28858 \begin_inset Flex Code
28859 status collapsed
28860
28861 \begin_layout Plain Layout
28862 labeltag
28863 \end_layout
28864
28865 \end_inset
28866
28867  and 
28868 \begin_inset Flex Code
28869 status collapsed
28870
28871 \begin_layout Plain Layout
28872 itemtag
28873 \end_layout
28874
28875 \end_inset
28876
28877 .
28878  Which order we get depends upon the setting of 
28879 \begin_inset Flex Code
28880 status collapsed
28881
28882 \begin_layout Plain Layout
28883 HTMLLabelFirst
28884 \end_layout
28885
28886 \end_inset
28887
28888 :
28889  If 
28890 \begin_inset Flex Code
28891 status collapsed
28892
28893 \begin_layout Plain Layout
28894 HTMLLabelFirst
28895 \end_layout
28896
28897 \end_inset
28898
28899  is false (the default),
28900  you get the first of these,
28901  with the label within the item;
28902  if true,
28903  you get the second,
28904  with the label outside the item.
28905 \end_layout
28906
28907 \begin_layout Standard
28908 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
28909  As mentioned earlier,
28910  however,
28911  \SpecialChar LyX
28912  uses sensible defaults for many of these,
28913  so you often may not need to do very much to get good XHTML output.
28914  Think of the available tags as there so you can tweak things to your liking.
28915 \end_layout
28916
28917 \begin_layout Description
28918 \begin_inset Flex Code
28919 status collapsed
28920
28921 \begin_layout Plain Layout
28922 HTMLAttr
28923 \end_layout
28924
28925 \end_inset
28926
28927  [
28928 \begin_inset Flex Code
28929 status collapsed
28930
28931 \begin_layout Plain Layout
28932 string
28933 \end_layout
28934
28935 \end_inset
28936
28937 ] Specifies attribute information to be output with the main tag.
28938  For example,
28939  
28940 \begin_inset Quotes eld
28941 \end_inset
28942
28943
28944 \begin_inset Flex Code
28945 status collapsed
28946
28947 \begin_layout Plain Layout
28948 class=`mydiv'
28949 \end_layout
28950
28951 \end_inset
28952
28953
28954 \begin_inset Quotes erd
28955 \end_inset
28956
28957 .
28958  By default,
28959  \SpecialChar LyX
28960  will output 
28961 \begin_inset Quotes eld
28962 \end_inset
28963
28964
28965 \begin_inset Flex Code
28966 status collapsed
28967
28968 \begin_layout Plain Layout
28969 class=`layoutname'
28970 \end_layout
28971
28972 \end_inset
28973
28974
28975 \begin_inset Quotes erd
28976 \end_inset
28977
28978 ,
28979  where 
28980 \begin_inset Flex Code
28981 status collapsed
28982
28983 \begin_layout Plain Layout
28984 layoutname
28985 \end_layout
28986
28987 \end_inset
28988
28989  is the \SpecialChar LyX
28990  name of the layout,
28991  made lowercase,
28992  for example:
28993  chapter.
28994  This should 
28995 \emph on
28996 not
28997 \emph default
28998  contain any style information.
28999  Use 
29000 \begin_inset Flex Code
29001 status collapsed
29002
29003 \begin_layout Plain Layout
29004 HTMLStyle
29005 \end_layout
29006
29007 \end_inset
29008
29009  for that purpose.
29010 \change_inserted -584632292 1670182206
29011
29012 \end_layout
29013
29014 \begin_layout Description
29015
29016 \change_inserted -584632292 1670182369
29017 \begin_inset Flex Code
29018 status collapsed
29019
29020 \begin_layout Plain Layout
29021
29022 \change_inserted -584632292 1670182222
29023 HTMLClass
29024 \change_unchanged
29025
29026 \end_layout
29027
29028 \end_inset
29029
29030  [
29031 \begin_inset Flex Code
29032 status collapsed
29033
29034 \begin_layout Plain Layout
29035
29036 \change_inserted -584632292 1670182217
29037 string
29038 \change_unchanged
29039
29040 \end_layout
29041
29042 \end_inset
29043
29044 ] The CSS class to use for this paragraph.
29045  Note that,
29046  if the paragarph is of enumerate or itemize type,
29047  then the default will be 
29048 \begin_inset Quotes eld
29049 \end_inset
29050
29051 lyxenum
29052 \begin_inset Quotes erd
29053 \end_inset
29054
29055  or 
29056 \begin_inset Quotes eld
29057 \end_inset
29058
29059 lyxitem
29060 \begin_inset Quotes erd
29061 \end_inset
29062
29063 ,
29064  plus 
29065 \begin_inset Quotes eld
29066 \end_inset
29067
29068 i
29069 \begin_inset Quotes erd
29070 \end_inset
29071
29072 ,
29073  
29074 \begin_inset Quotes eld
29075 \end_inset
29076
29077 ii
29078 \begin_inset Quotes erd
29079 \end_inset
29080
29081 ,
29082  
29083 \begin_inset Quotes eld
29084 \end_inset
29085
29086 iii
29087 \begin_inset Quotes erd
29088 \end_inset
29089
29090 ,
29091  or 
29092 \begin_inset Quotes eld
29093 \end_inset
29094
29095 iv
29096 \begin_inset Quotes erd
29097 \end_inset
29098
29099 ,
29100  depending upon the depth.
29101  That can be over-ridden here.
29102  However,
29103  the suffix will not be added in that case.
29104  I.e.,
29105  the CSS class will always be exactly what it is declared to be here.
29106 \change_unchanged
29107
29108 \end_layout
29109
29110 \begin_layout Description
29111 \begin_inset Flex Code
29112 status collapsed
29113
29114 \begin_layout Plain Layout
29115 HTMLForceCSS
29116 \end_layout
29117
29118 \end_inset
29119
29120  [
29121 \begin_inset Flex Code
29122 status collapsed
29123
29124 \begin_layout Plain Layout
29125
29126 \emph on
29127 0
29128 \emph default
29129 ,1
29130 \end_layout
29131
29132 \end_inset
29133
29134 ] Whether to output the default CSS information \SpecialChar LyX
29135  generates for this layout,
29136  even if additional information is explicitly provided via 
29137 \begin_inset Flex Code
29138 status collapsed
29139
29140 \begin_layout Plain Layout
29141 HTMLStyle
29142 \end_layout
29143
29144 \end_inset
29145
29146 .
29147  Setting this to 
29148 \begin_inset Flex Code
29149 status collapsed
29150
29151 \begin_layout Plain Layout
29152 1
29153 \end_layout
29154
29155 \end_inset
29156
29157  allows you to alter or augment the generated CSS,
29158  rather than to override it completely.
29159  Default is 
29160 \begin_inset Flex Code
29161 status collapsed
29162
29163 \begin_layout Plain Layout
29164 0
29165 \end_layout
29166
29167 \end_inset
29168
29169 .
29170 \change_inserted -584632292 1670132213
29171
29172 \end_layout
29173
29174 \begin_layout Description
29175
29176 \change_inserted -584632292 1670132277
29177 \begin_inset Flex Code
29178 status collapsed
29179
29180 \begin_layout Plain Layout
29181
29182 \change_inserted -584632292 1670132221
29183 HTMLInToc
29184 \change_unchanged
29185
29186 \end_layout
29187
29188 \end_inset
29189
29190  [
29191 \begin_inset Flex Code
29192 status open
29193
29194 \begin_layout Plain Layout
29195
29196 \change_inserted -584632292 1670132214
29197 0,
29198 \emph on
29199 1
29200 \change_unchanged
29201
29202 \end_layout
29203
29204 \end_inset
29205
29206 ] Whether to include this paragraph (usually,
29207  a section or something of the sort) in the TOC.
29208  By default,
29209  true,
29210  so it should be set to false e.g.
29211 \begin_inset space ~
29212 \end_inset
29213
29214 for starred sections.
29215 \change_unchanged
29216
29217 \end_layout
29218
29219 \begin_layout Description
29220 \begin_inset Flex Code
29221 status collapsed
29222
29223 \begin_layout Plain Layout
29224 HTMLItem
29225 \end_layout
29226
29227 \end_inset
29228
29229  [
29230 \begin_inset Flex Code
29231 status collapsed
29232
29233 \begin_layout Plain Layout
29234 string
29235 \end_layout
29236
29237 \end_inset
29238
29239 ] The tag to be used for individual paragraphs of environments,
29240  replacing 
29241 \begin_inset Flex Code
29242 status collapsed
29243
29244 \begin_layout Plain Layout
29245 itemtag
29246 \end_layout
29247
29248 \end_inset
29249
29250  in the examples above.
29251  Defaults to 
29252 \begin_inset Flex Code
29253 status collapsed
29254
29255 \begin_layout Plain Layout
29256 div
29257 \end_layout
29258
29259 \end_inset
29260
29261 .
29262 \end_layout
29263
29264 \begin_layout Description
29265 \begin_inset Flex Code
29266 status collapsed
29267
29268 \begin_layout Plain Layout
29269 HTMLItemAttr
29270 \end_layout
29271
29272 \end_inset
29273
29274  [
29275 \begin_inset Flex Code
29276 status collapsed
29277
29278 \begin_layout Plain Layout
29279 string
29280 \end_layout
29281
29282 \end_inset
29283
29284 ] Attributes for the item tag.
29285  Defaults to
29286 \begin_inset Newline newline
29287 \end_inset
29288
29289
29290 \begin_inset Quotes eld
29291 \end_inset
29292
29293
29294 \begin_inset Flex Code
29295 status collapsed
29296
29297 \begin_layout Plain Layout
29298 class=`layoutname_item'
29299 \end_layout
29300
29301 \end_inset
29302
29303
29304 \begin_inset Quotes erd
29305 \end_inset
29306
29307 .
29308  This should 
29309 \emph on
29310 not
29311 \emph default
29312  contain any style information.
29313  Use 
29314 \begin_inset Flex Code
29315 status collapsed
29316
29317 \begin_layout Plain Layout
29318 HTMLStyle
29319 \end_layout
29320
29321 \end_inset
29322
29323  for that purpose.
29324 \end_layout
29325
29326 \begin_layout Description
29327 \begin_inset Flex Code
29328 status collapsed
29329
29330 \begin_layout Plain Layout
29331 HTMLLabel
29332 \end_layout
29333
29334 \end_inset
29335
29336  [
29337 \begin_inset Flex Code
29338 status collapsed
29339
29340 \begin_layout Plain Layout
29341 string
29342 \end_layout
29343
29344 \end_inset
29345
29346 ] The tag to be used for paragraph and item labels,
29347  replacing 
29348 \begin_inset Flex Code
29349 status collapsed
29350
29351 \begin_layout Plain Layout
29352 labeltag
29353 \end_layout
29354
29355 \end_inset
29356
29357  in the examples above.
29358  Defaults to 
29359 \begin_inset Flex Code
29360 status collapsed
29361
29362 \begin_layout Plain Layout
29363 span
29364 \end_layout
29365
29366 \end_inset
29367
29368 ,
29369  unless 
29370 \begin_inset Flex Code
29371 status collapsed
29372
29373 \begin_layout Plain Layout
29374 LabelType
29375 \end_layout
29376
29377 \end_inset
29378
29379  is either 
29380 \begin_inset Flex Code
29381 status collapsed
29382
29383 \begin_layout Plain Layout
29384 Top_Environment
29385 \end_layout
29386
29387 \end_inset
29388
29389  or 
29390 \begin_inset Flex Code
29391 status collapsed
29392
29393 \begin_layout Plain Layout
29394 Centered_Top_Environment
29395 \end_layout
29396
29397 \end_inset
29398
29399 ,
29400  in which case it defaults to 
29401 \begin_inset Flex Code
29402 status collapsed
29403
29404 \begin_layout Plain Layout
29405 div
29406 \end_layout
29407
29408 \end_inset
29409
29410 .
29411 \end_layout
29412
29413 \begin_layout Description
29414 \begin_inset Flex Code
29415 status collapsed
29416
29417 \begin_layout Plain Layout
29418 HTMLLabelAttr
29419 \end_layout
29420
29421 \end_inset
29422
29423  [
29424 \begin_inset Flex Code
29425 status collapsed
29426
29427 \begin_layout Plain Layout
29428 string
29429 \end_layout
29430
29431 \end_inset
29432
29433 ] Attributes for the label tag.
29434  Defaults to
29435 \begin_inset Newline newline
29436 \end_inset
29437
29438
29439 \begin_inset Quotes eld
29440 \end_inset
29441
29442
29443 \begin_inset Flex Code
29444 status collapsed
29445
29446 \begin_layout Plain Layout
29447 class=`layoutname_label'
29448 \end_layout
29449
29450 \end_inset
29451
29452
29453 \begin_inset Quotes erd
29454 \end_inset
29455
29456 .
29457  This should 
29458 \emph on
29459 not
29460 \emph default
29461  contain any style information.
29462  Use 
29463 \begin_inset Flex Code
29464 status collapsed
29465
29466 \begin_layout Plain Layout
29467 HTMLStyle
29468 \end_layout
29469
29470 \end_inset
29471
29472  for that purpose.
29473 \end_layout
29474
29475 \begin_layout Description
29476 \begin_inset Flex Code
29477 status collapsed
29478
29479 \begin_layout Plain Layout
29480 HTMLLabelFirst
29481 \end_layout
29482
29483 \end_inset
29484
29485  [
29486 \begin_inset Flex Code
29487 status collapsed
29488
29489 \begin_layout Plain Layout
29490
29491 \emph on
29492 0
29493 \emph default
29494 ,1
29495 \end_layout
29496
29497 \end_inset
29498
29499 ] Meaningful only for list-like environments,
29500  this tag controls whether the label tag is output before or inside the item tag.
29501  This is used,
29502  for example,
29503  in the description environment,
29504  where we want `
29505 \begin_inset Flex Code
29506 status collapsed
29507
29508 \begin_layout Plain Layout
29509 <dt>\SpecialChar ldots
29510 </dt><dd>\SpecialChar ldots
29511 </dd>
29512 \end_layout
29513
29514 \end_inset
29515
29516 .
29517  Default is 
29518 \begin_inset Flex Code
29519 status collapsed
29520
29521 \begin_layout Plain Layout
29522 0
29523 \end_layout
29524
29525 \end_inset
29526
29527 :
29528  The label tag is output inside the item tag.
29529 \end_layout
29530
29531 \begin_layout Description
29532 \begin_inset Flex Code
29533 status collapsed
29534
29535 \begin_layout Plain Layout
29536 HTMLPreamble
29537 \end_layout
29538
29539 \end_inset
29540
29541  Information to be output in the 
29542 \begin_inset Flex Code
29543 status collapsed
29544
29545 \begin_layout Plain Layout
29546 <head>
29547 \end_layout
29548
29549 \end_inset
29550
29551  section when this style is used.
29552  This might,
29553  for example,
29554  be used to include a 
29555 \begin_inset Flex Code
29556 status collapsed
29557
29558 \begin_layout Plain Layout
29559 <script>
29560 \end_layout
29561
29562 \end_inset
29563
29564  block defining an 
29565 \begin_inset Flex Code
29566 status collapsed
29567
29568 \begin_layout Plain Layout
29569 onclick
29570 \end_layout
29571
29572 \end_inset
29573
29574  handler.
29575 \end_layout
29576
29577 \begin_layout Description
29578 \begin_inset Flex Code
29579 status collapsed
29580
29581 \begin_layout Plain Layout
29582 HTMLStyle
29583 \end_layout
29584
29585 \end_inset
29586
29587  CSS style information to be included when this style is used.
29588  Note that this will automatically be wrapped in a layout-generated 
29589 \begin_inset Flex Code
29590 status collapsed
29591
29592 \begin_layout Plain Layout
29593 <style>
29594 \end_layout
29595
29596 \end_inset
29597
29598  block,
29599  so only the CSS itself need be included.
29600  Must end with 
29601 \begin_inset Flex Code
29602 status collapsed
29603
29604 \begin_layout Plain Layout
29605 EndHTMLStyle
29606 \end_layout
29607
29608 \end_inset
29609
29610 .
29611 \end_layout
29612
29613 \begin_layout Description
29614 \begin_inset Flex Code
29615 status collapsed
29616
29617 \begin_layout Plain Layout
29618 HTMLTag
29619 \end_layout
29620
29621 \end_inset
29622
29623  [
29624 \begin_inset Flex Code
29625 status collapsed
29626
29627 \begin_layout Plain Layout
29628 string
29629 \end_layout
29630
29631 \end_inset
29632
29633 ] The tag to be used for the main label,
29634  replacing 
29635 \begin_inset Flex Code
29636 status collapsed
29637
29638 \begin_layout Plain Layout
29639 tag
29640 \end_layout
29641
29642 \end_inset
29643
29644  in the examples above.
29645  Defaults to 
29646 \begin_inset Flex Code
29647 status collapsed
29648
29649 \begin_layout Plain Layout
29650 div
29651 \end_layout
29652
29653 \end_inset
29654
29655 .
29656 \end_layout
29657
29658 \begin_layout Description
29659 \begin_inset Flex Code
29660 status collapsed
29661
29662 \begin_layout Plain Layout
29663 HTMLTitle
29664 \end_layout
29665
29666 \end_inset
29667
29668  [
29669 \begin_inset Flex Code
29670 status collapsed
29671
29672 \begin_layout Plain Layout
29673
29674 \emph on
29675 0
29676 \emph default
29677 ,1
29678 \end_layout
29679
29680 \end_inset
29681
29682 ] Marks this style as the one to be used to generate the 
29683 \begin_inset Flex Code
29684 status collapsed
29685
29686 \begin_layout Plain Layout
29687 <title>
29688 \end_layout
29689
29690 \end_inset
29691
29692  tag for the XHTML file.
29693  By default,
29694  it is false.
29695  The 
29696 \begin_inset Flex Code
29697 status collapsed
29698
29699 \begin_layout Plain Layout
29700 stdtitle.inc
29701 \end_layout
29702
29703 \end_inset
29704
29705  file sets it to true for the 
29706 \begin_inset Flex Code
29707 status collapsed
29708
29709 \begin_layout Plain Layout
29710 title
29711 \end_layout
29712
29713 \end_inset
29714
29715  environment.
29716  
29717 \end_layout
29718
29719 \begin_layout Subsection
29720 InsetLayout XHTML
29721 \end_layout
29722
29723 \begin_layout Standard
29724 The XHTML output of insets can also be controlled by information in layout files.
29725 \begin_inset Foot
29726 status collapsed
29727
29728 \begin_layout Plain Layout
29729 At present,
29730  this is true only for 
29731 \begin_inset Quotes eld
29732 \end_inset
29733
29734 text
29735 \begin_inset Quotes erd
29736 \end_inset
29737
29738  insets (insets you can type into) and is not true for 
29739 \begin_inset Quotes eld
29740 \end_inset
29741
29742 command
29743 \begin_inset Quotes erd
29744 \end_inset
29745
29746  insets (insets that are associated with dialog boxes).
29747 \end_layout
29748
29749 \end_inset
29750
29751  Here,
29752  too,
29753  \SpecialChar LyX
29754  tries to provide sensible defaults,
29755  and it constructs default CSS style rules.
29756  But everything can be customized.
29757 \end_layout
29758
29759 \begin_layout Standard
29760 The XHTML \SpecialChar LyX
29761  outputs for an inset has the following form:
29762 \end_layout
29763
29764 \begin_layout LyX-Code
29765 <tag attr=
29766 \begin_inset Quotes erd
29767 \end_inset
29768
29769 value
29770 \begin_inset Quotes erd
29771 \end_inset
29772
29773 >
29774 \end_layout
29775
29776 \begin_layout LyX-Code
29777 <labeltag>Label</labeltag>
29778 \end_layout
29779
29780 \begin_layout LyX-Code
29781 <innertag attr=
29782 \begin_inset Quotes erd
29783 \end_inset
29784
29785 value
29786 \begin_inset Quotes erd
29787 \end_inset
29788
29789 >Contents of the inset.</innertag>
29790 \end_layout
29791
29792 \begin_layout LyX-Code
29793 </tag>
29794 \end_layout
29795
29796 \begin_layout Standard
29797 If the inset permits multiple paragraphs—
29798 that is,
29799  if 
29800 \begin_inset Flex Code
29801 status collapsed
29802
29803 \begin_layout Plain Layout
29804 MultiPar
29805 \end_layout
29806
29807 \end_inset
29808
29809  is true—
29810 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
29811  quote,
29812  and the like).
29813  The label tag is of course omitted if the paragraph does not have a label and,
29814  at present,
29815  is always 
29816 \begin_inset Flex Code
29817 status collapsed
29818
29819 \begin_layout Plain Layout
29820 span
29821 \end_layout
29822
29823 \end_inset
29824
29825 .
29826  The inner tag is optional and,
29827  by default,
29828  does not appear.
29829 \end_layout
29830
29831 \begin_layout Standard
29832 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
29833 \end_layout
29834
29835 \begin_layout Description
29836 \begin_inset Flex Code
29837 status collapsed
29838
29839 \begin_layout Plain Layout
29840 HTMLAttr
29841 \end_layout
29842
29843 \end_inset
29844
29845  [
29846 \begin_inset Flex Code
29847 status collapsed
29848
29849 \begin_layout Plain Layout
29850 string
29851 \end_layout
29852
29853 \end_inset
29854
29855 ] Specifies attribute information to be output with the main tag.
29856  For example,
29857  
29858 \begin_inset Quotes eld
29859 \end_inset
29860
29861
29862 \begin_inset Flex Code
29863 status collapsed
29864
29865 \begin_layout Plain Layout
29866 class=`myinset' onclick=`\SpecialChar ldots
29867 '
29868 \end_layout
29869
29870 \end_inset
29871
29872
29873 \begin_inset Quotes erd
29874 \end_inset
29875
29876 .
29877  By default,
29878  \SpecialChar LyX
29879  will output 
29880 \begin_inset Quotes eld
29881 \end_inset
29882
29883
29884 \begin_inset Flex Code
29885 status collapsed
29886
29887 \begin_layout Plain Layout
29888 class=`insetname'
29889 \end_layout
29890
29891 \end_inset
29892
29893
29894 \begin_inset Quotes erd
29895 \end_inset
29896
29897 ,
29898  where 
29899 \begin_inset Flex Code
29900 status collapsed
29901
29902 \begin_layout Plain Layout
29903 insetname
29904 \end_layout
29905
29906 \end_inset
29907
29908  is the \SpecialChar LyX
29909  name of the inset,
29910  made lowercase and with non-alphanumeric characters converted to underscores,
29911  for example:
29912  footnote.
29913 \end_layout
29914
29915 \begin_layout Description
29916 \begin_inset Flex Code
29917 status collapsed
29918
29919 \begin_layout Plain Layout
29920 HTMLForceCSS
29921 \end_layout
29922
29923 \end_inset
29924
29925  [
29926 \begin_inset Flex Code
29927 status collapsed
29928
29929 \begin_layout Plain Layout
29930
29931 \emph on
29932 0
29933 \emph default
29934 ,1
29935 \end_layout
29936
29937 \end_inset
29938
29939 ] Whether to output the default CSS information \SpecialChar LyX
29940  generates for this layout,
29941  even if additional information is explicitly provided via 
29942 \begin_inset Flex Code
29943 status collapsed
29944
29945 \begin_layout Plain Layout
29946 HTMLStyle
29947 \end_layout
29948
29949 \end_inset
29950
29951 .
29952  Setting this to 
29953 \begin_inset Flex Code
29954 status collapsed
29955
29956 \begin_layout Plain Layout
29957 1
29958 \end_layout
29959
29960 \end_inset
29961
29962  allows you to alter or augment the generated CSS,
29963  rather than to override it completely.
29964  Default is 0.
29965 \end_layout
29966
29967 \begin_layout Description
29968 \begin_inset Flex Code
29969 status collapsed
29970
29971 \begin_layout Plain Layout
29972 HTMLInnerAttr
29973 \end_layout
29974
29975 \end_inset
29976
29977  [
29978 \begin_inset Flex Code
29979 status collapsed
29980
29981 \begin_layout Plain Layout
29982 string
29983 \end_layout
29984
29985 \end_inset
29986
29987 ] Attributes for the inner tag.
29988  Defaults to
29989 \begin_inset Newline newline
29990 \end_inset
29991
29992
29993 \begin_inset Quotes eld
29994 \end_inset
29995
29996
29997 \begin_inset Flex Code
29998 status collapsed
29999
30000 \begin_layout Plain Layout
30001 class=`insetname_inner'
30002 \end_layout
30003
30004 \end_inset
30005
30006
30007 \begin_inset Quotes erd
30008 \end_inset
30009
30010 .
30011 \end_layout
30012
30013 \begin_layout Description
30014 \begin_inset Flex Code
30015 status collapsed
30016
30017 \begin_layout Plain Layout
30018 HTMLInnerTag
30019 \end_layout
30020
30021 \end_inset
30022
30023  [
30024 \begin_inset Flex Code
30025 status collapsed
30026
30027 \begin_layout Plain Layout
30028 string
30029 \end_layout
30030
30031 \end_inset
30032
30033 ] The inner tag,
30034  replacing 
30035 \begin_inset Flex Code
30036 status collapsed
30037
30038 \begin_layout Plain Layout
30039 innertag
30040 \end_layout
30041
30042 \end_inset
30043
30044  in the examples above.
30045  By default,
30046  there is none.
30047 \end_layout
30048
30049 \begin_layout Description
30050 \begin_inset Flex Code
30051 status collapsed
30052
30053 \begin_layout Plain Layout
30054 HTMLIsBlock
30055 \end_layout
30056
30057 \end_inset
30058
30059  [
30060 \begin_inset Flex Code
30061 status collapsed
30062
30063 \begin_layout Plain Layout
30064 0,
30065 \emph on
30066 1
30067 \end_layout
30068
30069 \end_inset
30070
30071 ] 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).
30072  Defaults to 1.
30073 \end_layout
30074
30075 \begin_layout Description
30076 \begin_inset Flex Code
30077 status collapsed
30078
30079 \begin_layout Plain Layout
30080 HTMLLabel
30081 \end_layout
30082
30083 \end_inset
30084
30085  [
30086 \begin_inset Flex Code
30087 status collapsed
30088
30089 \begin_layout Plain Layout
30090 string
30091 \end_layout
30092
30093 \end_inset
30094
30095 ] A label for this inset,
30096  possibly including a reference to a counter.
30097  For example,
30098  for footnote,
30099  it might be:
30100  
30101 \begin_inset Flex Code
30102 status collapsed
30103
30104 \begin_layout Plain Layout
30105
30106 \backslash
30107 arabic{footnote}
30108 \end_layout
30109
30110 \end_inset
30111
30112 .
30113  This is optional,
30114  and there is no default.
30115 \end_layout
30116
30117 \begin_layout Description
30118 \begin_inset Flex Code
30119 status collapsed
30120
30121 \begin_layout Plain Layout
30122 HTMLPreamble
30123 \end_layout
30124
30125 \end_inset
30126
30127  Information to be output in the 
30128 \begin_inset Flex Code
30129 status collapsed
30130
30131 \begin_layout Plain Layout
30132 <head>
30133 \end_layout
30134
30135 \end_inset
30136
30137  section when this style is used.
30138  This might,
30139  for example,
30140  be used to include a 
30141 \begin_inset Flex Code
30142 status collapsed
30143
30144 \begin_layout Plain Layout
30145 <script>
30146 \end_layout
30147
30148 \end_inset
30149
30150  block defining an 
30151 \begin_inset Flex Code
30152 status collapsed
30153
30154 \begin_layout Plain Layout
30155 onclick
30156 \end_layout
30157
30158 \end_inset
30159
30160  handler.
30161 \end_layout
30162
30163 \begin_layout Description
30164 \begin_inset Flex Code
30165 status collapsed
30166
30167 \begin_layout Plain Layout
30168 HTMLStyle
30169 \end_layout
30170
30171 \end_inset
30172
30173  CSS style information to be included when this style is used.
30174  Note that this will automatically be wrapped in a layout-generated 
30175 \begin_inset Flex Code
30176 status collapsed
30177
30178 \begin_layout Plain Layout
30179 <style>
30180 \end_layout
30181
30182 \end_inset
30183
30184  block,
30185  so only the CSS itself need be included.
30186 \end_layout
30187
30188 \begin_layout Description
30189 \begin_inset Flex Code
30190 status collapsed
30191
30192 \begin_layout Plain Layout
30193 HTMLTag
30194 \end_layout
30195
30196 \end_inset
30197
30198  [
30199 \begin_inset Flex Code
30200 status collapsed
30201
30202 \begin_layout Plain Layout
30203 string
30204 \end_layout
30205
30206 \end_inset
30207
30208 ] The tag to be used for the main label,
30209  replacing 
30210 \begin_inset Flex Code
30211 status collapsed
30212
30213 \begin_layout Plain Layout
30214 tag
30215 \end_layout
30216
30217 \end_inset
30218
30219  in the examples above.
30220  The default depends upon the setting of 
30221 \begin_inset Flex Code
30222 status collapsed
30223
30224 \begin_layout Plain Layout
30225 MultiPar
30226 \end_layout
30227
30228 \end_inset
30229
30230 :
30231  If 
30232 \begin_inset Flex Code
30233 status collapsed
30234
30235 \begin_layout Plain Layout
30236 MultiPar
30237 \end_layout
30238
30239 \end_inset
30240
30241  is true,
30242  the default is 
30243 \begin_inset Flex Code
30244 status collapsed
30245
30246 \begin_layout Plain Layout
30247 div
30248 \end_layout
30249
30250 \end_inset
30251
30252 ;
30253  if it is false,
30254  the default is 
30255 \begin_inset Flex Code
30256 status collapsed
30257
30258 \begin_layout Plain Layout
30259 span
30260 \end_layout
30261
30262 \end_inset
30263
30264 .
30265 \end_layout
30266
30267 \begin_layout Subsection
30268 Float XHTML
30269 \end_layout
30270
30271 \begin_layout Standard
30272 The XHTML output for floats too can be controlled by layout information.
30273  The output has the following form:
30274 \end_layout
30275
30276 \begin_layout LyX-Code
30277 <tag attr=
30278 \begin_inset Quotes erd
30279 \end_inset
30280
30281 value
30282 \begin_inset Quotes erd
30283 \end_inset
30284
30285 >
30286 \end_layout
30287
30288 \begin_layout LyX-Code
30289 Contents of the float.
30290 \end_layout
30291
30292 \begin_layout LyX-Code
30293 </tag>
30294 \end_layout
30295
30296 \begin_layout Standard
30297 The caption,
30298  if there is one,
30299  is a separate inset and will be output as such.
30300  Its appearance can be controlled via the InsetLayout for caption insets.
30301  
30302 \end_layout
30303
30304 \begin_layout Description
30305 \begin_inset Flex Code
30306 status collapsed
30307
30308 \begin_layout Plain Layout
30309 HTMLAttr
30310 \end_layout
30311
30312 \end_inset
30313
30314  [
30315 \begin_inset Flex Code
30316 status collapsed
30317
30318 \begin_layout Plain Layout
30319 string
30320 \end_layout
30321
30322 \end_inset
30323
30324 ] Specifies attribute information to be output with the main tag.
30325  For example,
30326  
30327 \begin_inset Quotes eld
30328 \end_inset
30329
30330
30331 \begin_inset Flex Code
30332 status collapsed
30333
30334 \begin_layout Plain Layout
30335 class=`myfloat' onclick=`\SpecialChar ldots
30336 '
30337 \end_layout
30338
30339 \end_inset
30340
30341
30342 \begin_inset Quotes erd
30343 \end_inset
30344
30345 .
30346  By default,
30347  \SpecialChar LyX
30348  will output 
30349 \begin_inset Quotes eld
30350 \end_inset
30351
30352
30353 \begin_inset Flex Code
30354 status collapsed
30355
30356 \begin_layout Plain Layout
30357 class=`float float-floattype'
30358 \end_layout
30359
30360 \end_inset
30361
30362
30363 \begin_inset Quotes erd
30364 \end_inset
30365
30366 ,
30367  where 
30368 \begin_inset Flex Code
30369 status collapsed
30370
30371 \begin_layout Plain Layout
30372 floattype
30373 \end_layout
30374
30375 \end_inset
30376
30377  is \SpecialChar LyX
30378 's name for this type of float,
30379  as determined by the float declaration (see 
30380 \begin_inset CommandInset ref
30381 LatexCommand ref
30382 reference "subsec:Floats"
30383 nolink "false"
30384
30385 \end_inset
30386
30387 ),
30388  though made lowercase and with non-alphanumeric characters converted to underscores,
30389  for example:
30390  float-table.
30391 \end_layout
30392
30393 \begin_layout Description
30394 \begin_inset Flex Code
30395 status collapsed
30396
30397 \begin_layout Plain Layout
30398 HTMLStyle
30399 \end_layout
30400
30401 \end_inset
30402
30403  CSS style information to be included when this float is used.
30404  Note that this will automatically be wrapped in a layout-generated 
30405 \begin_inset Flex Code
30406 status collapsed
30407
30408 \begin_layout Plain Layout
30409 <style>
30410 \end_layout
30411
30412 \end_inset
30413
30414  block,
30415  so only the CSS itself need be included.
30416 \end_layout
30417
30418 \begin_layout Description
30419 \begin_inset Flex Code
30420 status collapsed
30421
30422 \begin_layout Plain Layout
30423 HTMLTag
30424 \end_layout
30425
30426 \end_inset
30427
30428  [
30429 \begin_inset Flex Code
30430 status collapsed
30431
30432 \begin_layout Plain Layout
30433 string
30434 \end_layout
30435
30436 \end_inset
30437
30438 ] The tag to be used for this float,
30439  replacing 
30440 \begin_inset Quotes eld
30441 \end_inset
30442
30443
30444 \begin_inset Flex Code
30445 status collapsed
30446
30447 \begin_layout Plain Layout
30448 tag
30449 \end_layout
30450
30451 \end_inset
30452
30453
30454 \begin_inset Quotes erd
30455 \end_inset
30456
30457  in the example above.
30458  The default is 
30459 \begin_inset Flex Code
30460 status collapsed
30461
30462 \begin_layout Plain Layout
30463 div
30464 \end_layout
30465
30466 \end_inset
30467
30468  and will rarely need changing.
30469 \end_layout
30470
30471 \begin_layout Subsection
30472 Bibliography formatting
30473 \end_layout
30474
30475 \begin_layout Standard
30476 The bibliography can be formatted using 
30477 \begin_inset Flex Code
30478 status collapsed
30479
30480 \begin_layout Plain Layout
30481 CiteFormat
30482 \end_layout
30483
30484 \end_inset
30485
30486  blocks.
30487  See 
30488 \begin_inset CommandInset ref
30489 LatexCommand ref
30490 reference "subsec:Citation-format-description"
30491 nolink "false"
30492
30493 \end_inset
30494
30495  for the details.
30496 \end_layout
30497
30498 \begin_layout Subsection
30499 \SpecialChar LyX
30500 -generated CSS
30501 \end_layout
30502
30503 \begin_layout Standard
30504 We have several times mentioned that \SpecialChar LyX
30505  will generate default CSS style rules for both insets and paragraph styles,
30506  based upon the other layout information that is provided.
30507  In this section,
30508  we shall say a word about which layout information \SpecialChar LyX
30509  uses and how.
30510 \end_layout
30511
30512 \begin_layout Standard
30513 At present,
30514  \SpecialChar LyX
30515  auto-generates CSS only for font information,
30516  making use of the 
30517 \begin_inset Flex Code
30518 status collapsed
30519
30520 \begin_layout Plain Layout
30521 Family
30522 \end_layout
30523
30524 \end_inset
30525
30526 ,
30527  
30528 \begin_inset Flex Code
30529 status collapsed
30530
30531 \begin_layout Plain Layout
30532 Series
30533 \end_layout
30534
30535 \end_inset
30536
30537 ,
30538  
30539 \begin_inset Flex Code
30540 status collapsed
30541
30542 \begin_layout Plain Layout
30543 Shape
30544 \end_layout
30545
30546 \end_inset
30547
30548 ,
30549  and 
30550 \begin_inset Flex Code
30551 status collapsed
30552
30553 \begin_layout Plain Layout
30554 Size
30555 \end_layout
30556
30557 \end_inset
30558
30559  specified in the 
30560 \begin_inset Flex Code
30561 status collapsed
30562
30563 \begin_layout Plain Layout
30564 Font
30565 \end_layout
30566
30567 \end_inset
30568
30569  declaration (see 
30570 \begin_inset CommandInset ref
30571 LatexCommand ref
30572 reference "subsec:Font-description"
30573 nolink "false"
30574
30575 \end_inset
30576
30577 ).
30578  The translation is mostly straightforward and obvious.
30579  For example,
30580  
30581 \begin_inset Quotes eld
30582 \end_inset
30583
30584
30585 \begin_inset Flex Code
30586 status collapsed
30587
30588 \begin_layout Plain Layout
30589 Family Sans
30590 \end_layout
30591
30592 \end_inset
30593
30594
30595 \begin_inset Quotes erd
30596 \end_inset
30597
30598  becomes 
30599 \begin_inset Quotes eld
30600 \end_inset
30601
30602
30603 \begin_inset Flex Code
30604 status collapsed
30605
30606 \begin_layout Plain Layout
30607 font-family:
30608  sans-serif;
30609 \end_layout
30610
30611 \end_inset
30612
30613
30614 \begin_inset Quotes erd
30615 \end_inset
30616
30617 .
30618  The correspondence of \SpecialChar LyX
30619  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
30620  See the 
30621 \begin_inset Flex Code
30622 status collapsed
30623
30624 \begin_layout Plain Layout
30625 getSizeCSS()
30626 \end_layout
30627
30628 \end_inset
30629
30630  function in 
30631 \begin_inset Flex URL
30632 status collapsed
30633
30634 \begin_layout Plain Layout
30635
30636 src/FontInfo.cpp
30637 \end_layout
30638
30639 \end_inset
30640
30641  for the details.
30642 \change_inserted -970929547 1496610908
30643
30644 \end_layout
30645
30646 \begin_layout Section
30647
30648 \change_inserted -970929547 1496610966
30649 \begin_inset CommandInset label
30650 LatexCommand label
30651 name "sec:Tags-for-DocBook"
30652
30653 \end_inset
30654
30655 Tags for DocBook output
30656 \end_layout
30657
30658 \begin_layout Standard
30659
30660 \change_inserted -970929547 1496611615
30661 As with \SpecialChar LaTeX
30662  or XHTML,
30663  the format of \SpecialChar LyX
30664 's DocBook output is also controlled by layout information.
30665  In general,
30666  \SpecialChar LyX
30667  provides sensible defaults;
30668  however,
30669  much of the styling is lost during the conversion,
30670  as DocBook is strictly semantic and does not allow formatting.
30671  When possible,
30672  information from \SpecialChar LyX
30673  will be rendered in 
30674 \family typewriter
30675 role
30676 \family default
30677  attributes.
30678  
30679 \end_layout
30680
30681 \begin_layout Standard
30682
30683 \change_inserted -970929547 1496612080
30684 In many cases,
30685  then,
30686  you may not have to do anything at all to get acceptable DocBook output for your own environments,
30687  custom insets,
30688  and so forth.
30689  But in some cases you will,
30690  and so \SpecialChar LyX
30691  provides a number of layout tags that can be used to customize the DocBook that is generated.
30692 \end_layout
30693
30694 \begin_layout Standard
30695
30696 \change_inserted -970929547 1515109912
30697 Labels are rarely output,
30698  as they are redundant in DocBook:
30699  this information is carried by the tags themselves,
30700  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
30701  However,
30702  sometimes,
30703  labels are not redundant content,
30704  such as definition lists:
30705  in this case,
30706  the term being defined will be the label.
30707  
30708 \end_layout
30709
30710 \begin_layout Subsection
30711
30712 \change_inserted 1075283030 1597699417
30713 \begin_inset CommandInset label
30714 LatexCommand label
30715 name "subsec:Paragraph-Style-DocBook"
30716
30717 \end_inset
30718
30719
30720 \change_deleted 1075283030 1597699417
30721
30722 \begin_inset CommandInset label
30723 LatexCommand label
30724 name "subsec:Paragraph-Style-XHTML-1"
30725
30726 \end_inset
30727
30728
30729 \change_inserted -970929547 1496610966
30730 Paragraph styles
30731 \end_layout
30732
30733 \begin_layout Standard
30734
30735 \change_inserted -970929547 1496612059
30736 The sort of DocBook \SpecialChar LyX
30737  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
30738  a command,
30739  or an environment,
30740  where this is itself determined by the contents of the corresponding 
30741 \begin_inset Flex Code
30742 status collapsed
30743
30744 \begin_layout Plain Layout
30745
30746 \change_inserted -970929547 1496610966
30747 \SpecialChar LaTeX
30748 Type
30749 \change_unchanged
30750
30751 \end_layout
30752
30753 \end_inset
30754
30755  tag.
30756  
30757 \end_layout
30758
30759 \begin_layout Standard
30760
30761 \change_inserted -970929547 1496612107
30762 For a command or normal paragraph,
30763  the output DocBook has the following form:
30764 \end_layout
30765
30766 \begin_layout LyX-Code
30767
30768 \change_inserted -970929547 1515109666
30769 <tag attr>
30770 \end_layout
30771
30772 \begin_layout LyX-Code
30773
30774 \change_inserted -970929547 1496610966
30775 Contents of the paragraph.
30776 \end_layout
30777
30778 \begin_layout LyX-Code
30779
30780 \change_inserted -970929547 1496610966
30781 </tag>
30782 \end_layout
30783
30784 \begin_layout Standard
30785
30786 \change_inserted -970929547 1515109821
30787 For an environment that is not some sort of list,
30788  the generated DocBook takes this form:
30789 \end_layout
30790
30791 \begin_layout LyX-Code
30792
30793 \change_inserted -970929547 1515109671
30794 <tag attr>
30795 \end_layout
30796
30797 \begin_layout LyX-Code
30798
30799 \change_inserted -970929547 1496612114
30800 <itemtag>First paragraph.</itemtag>
30801 \end_layout
30802
30803 \begin_layout LyX-Code
30804
30805 \change_inserted -970929547 1496610966
30806 <itemtag>Second paragraph.</itemtag>
30807 \end_layout
30808
30809 \begin_layout LyX-Code
30810
30811 \change_inserted -970929547 1496610966
30812 </tag>
30813 \end_layout
30814
30815 \begin_layout Standard
30816
30817 \change_inserted -970929547 1515109825
30818 For a list,
30819  the resulting DocBook takes this form:
30820 \end_layout
30821
30822 \begin_layout LyX-Code
30823
30824 \change_inserted -970929547 1515109672
30825 <tag attr>
30826 \end_layout
30827
30828 \begin_layout LyX-Code
30829
30830 \change_inserted -970929547 1515109676
30831 <itemtag attr>First item.</itemtag>
30832 \end_layout
30833
30834 \begin_layout LyX-Code
30835
30836 \change_inserted -970929547 1515109678
30837 <itemtag attr>Second item.</itemtag>
30838 \end_layout
30839
30840 \begin_layout LyX-Code
30841
30842 \change_inserted -970929547 1496610966
30843 </tag>
30844 \end_layout
30845
30846 \begin_layout Standard
30847
30848 \change_inserted -970929547 1496612243
30849 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
30850  Please note that,
30851  due to the very nature of DocBook,
30852  no sensible defaults really exist,
30853  and the values must always be carefully chosen.
30854  
30855 \end_layout
30856
30857 \begin_layout Description
30858
30859 \change_inserted -970929547 1515110057
30860 \begin_inset Flex Code
30861 status collapsed
30862
30863 \begin_layout Plain Layout
30864
30865 \change_inserted -970929547 1515109656
30866 DocBookAttr
30867 \change_unchanged
30868
30869 \end_layout
30870
30871 \end_inset
30872
30873  [
30874 \begin_inset Flex Code
30875 status collapsed
30876
30877 \begin_layout Plain Layout
30878
30879 \change_inserted -970929547 1496610966
30880 string
30881 \change_unchanged
30882
30883 \end_layout
30884
30885 \end_inset
30886
30887 ] Specifies attribute information to be output with the main tag,
30888  replacing 
30889 \begin_inset Quotes eld
30890 \end_inset
30891
30892
30893 \begin_inset Flex Code
30894 status collapsed
30895
30896 \begin_layout Plain Layout
30897
30898 \change_inserted -970929547 1515110057
30899 attr
30900 \change_unchanged
30901
30902 \end_layout
30903
30904 \end_inset
30905
30906
30907 \begin_inset Quotes erd
30908 \end_inset
30909
30910  in the example above.
30911  This information can be used in further processing of the DocBook files.
30912  
30913 \change_unchanged
30914
30915 \end_layout
30916
30917 \begin_layout Description
30918
30919 \change_inserted -970929547 1496612296
30920 \begin_inset Flex Code
30921 status collapsed
30922
30923 \begin_layout Plain Layout
30924
30925 \change_inserted -970929547 1496612269
30926 DocBookTag
30927 \change_unchanged
30928
30929 \end_layout
30930
30931 \end_inset
30932
30933  [
30934 \begin_inset Flex Code
30935 status collapsed
30936
30937 \begin_layout Plain Layout
30938
30939 \change_inserted -970929547 1496610966
30940 string
30941 \change_unchanged
30942
30943 \end_layout
30944
30945 \end_inset
30946
30947 ] The tag to be used for this inset,
30948  replacing 
30949 \begin_inset Quotes eld
30950 \end_inset
30951
30952
30953 \begin_inset Flex Code
30954 status collapsed
30955
30956 \begin_layout Plain Layout
30957
30958 \change_inserted -970929547 1496612296
30959 tag
30960 \change_unchanged
30961
30962 \end_layout
30963
30964 \end_inset
30965
30966
30967 \begin_inset Quotes erd
30968 \end_inset
30969
30970  in the example above.
30971  The default is the name of the float and always needs to be changed,
30972  as DocBook provides no generic tag.
30973 \change_inserted 1075283030 1597698868
30974
30975 \end_layout
30976
30977 \begin_layout Description
30978
30979 \change_inserted 1075283030 1597699399
30980 \begin_inset Flex Code
30981 status collapsed
30982
30983 \begin_layout Plain Layout
30984
30985 \change_inserted 1075283030 1597698872
30986 DocBookTagType
30987 \change_unchanged
30988
30989 \end_layout
30990
30991 \end_inset
30992
30993  [
30994 \begin_inset Flex Code
30995 status collapsed
30996
30997 \begin_layout Plain Layout
30998
30999 \change_inserted 1075283030 1597700585
31000 block,
31001  paragraph,
31002  inline
31003 \change_unchanged
31004
31005 \end_layout
31006
31007 \end_inset
31008
31009 ] The new-line policy for this tag,
31010  see Section
31011 \begin_inset space ~
31012 \end_inset
31013
31014
31015 \begin_inset CommandInset ref
31016 LatexCommand ref
31017 reference "subsec:DocBook-New-line-policy"
31018 plural "false"
31019 caps "false"
31020 noprefix "false"
31021 nolink "false"
31022
31023 \end_inset
31024
31025  for the details.
31026  
31027 \change_unchanged
31028
31029 \end_layout
31030
31031 \begin_layout Subsection
31032
31033 \change_inserted 1075283030 1597699385
31034 New-line policy
31035 \begin_inset CommandInset label
31036 LatexCommand label
31037 name "subsec:DocBook-New-line-policy"
31038
31039 \end_inset
31040
31041
31042 \end_layout
31043
31044 \begin_layout Standard
31045
31046 \change_inserted 1075283030 1597698993
31047 For all tags,
31048  there are three possible policies for outputting new lines (given in the 
31049 \begin_inset Flex Code
31050 status collapsed
31051
31052 \begin_layout Plain Layout
31053
31054 \change_inserted 1075283030 1597698987
31055 DocBook*TagType
31056 \change_unchanged
31057
31058 \end_layout
31059
31060 \end_inset
31061
31062  attribute):
31063  
31064 \end_layout
31065
31066 \begin_layout Itemize
31067
31068 \change_inserted 1075283030 1597699279
31069 \begin_inset Quotes eld
31070 \end_inset
31071
31072
31073 \begin_inset Flex Code
31074 status collapsed
31075
31076 \begin_layout Plain Layout
31077
31078 \change_inserted 1075283030 1597699012
31079 block
31080 \change_unchanged
31081
31082 \end_layout
31083
31084 \end_inset
31085
31086
31087 \begin_inset Quotes erd
31088 \end_inset
31089
31090 :
31091  the opening and closing tags are on their own lines (i.e.
31092  a line feed after and before the opening and the closing tags).
31093  Typical elements are floats.
31094  For instance:
31095  
31096 \end_layout
31097
31098 \begin_layout LyX-Code
31099
31100 \change_inserted 1075283030 1597699194
31101 Content before
31102 \end_layout
31103
31104 \begin_layout LyX-Code
31105
31106 \change_inserted 1075283030 1597699194
31107 <blocktag>
31108 \end_layout
31109
31110 \begin_layout LyX-Code
31111
31112 \change_inserted 1075283030 1597699098
31113   Contents of the block.
31114 \end_layout
31115
31116 \begin_layout LyX-Code
31117
31118 \change_inserted 1075283030 1597699196
31119 </blocktag>
31120 \end_layout
31121
31122 \begin_layout LyX-Code
31123
31124 \change_inserted 1075283030 1597699198
31125 Content after
31126 \end_layout
31127
31128 \begin_layout Itemize
31129
31130 \change_inserted 1075283030 1597699289
31131 \begin_inset Quotes eld
31132 \end_inset
31133
31134
31135 \begin_inset Flex Code
31136 status collapsed
31137
31138 \begin_layout Plain Layout
31139
31140 \change_inserted 1075283030 1597699113
31141 paragraph
31142 \change_unchanged
31143
31144 \end_layout
31145
31146 \end_inset
31147
31148
31149 \begin_inset Quotes erd
31150 \end_inset
31151
31152 :
31153  the opening and closing tags are on the same,
31154  new line;
31155  a line feed is output before the opening tag and after the closing tag.
31156  Typical elements are paragraphs and list items.
31157  For instance:
31158  
31159 \end_layout
31160
31161 \begin_layout LyX-Code
31162
31163 \change_inserted 1075283030 1597699186
31164 Content before
31165 \end_layout
31166
31167 \begin_layout LyX-Code
31168
31169 \change_inserted 1075283030 1597699357
31170 <paratag>Contents of the paragraph.</paratag>
31171 \end_layout
31172
31173 \begin_layout LyX-Code
31174
31175 \change_inserted 1075283030 1597699231
31176 Content after
31177 \end_layout
31178
31179 \begin_layout Itemize
31180
31181 \change_inserted 1075283030 1597699343
31182 \begin_inset Quotes eld
31183 \end_inset
31184
31185
31186 \begin_inset Flex Code
31187 status collapsed
31188
31189 \begin_layout Plain Layout
31190
31191 \change_inserted 1075283030 1597699307
31192 inline
31193 \change_unchanged
31194
31195 \end_layout
31196
31197 \end_inset
31198
31199
31200 \begin_inset Quotes erd
31201 \end_inset
31202
31203 :
31204  the opening and closing tags are on the same line as the rest of the content.
31205  No line feeds are output.
31206  Typical elements are fonts.
31207  For instance:
31208  
31209 \end_layout
31210
31211 \begin_layout LyX-Code
31212
31213 \change_inserted 1075283030 1597699585
31214 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
31215 \end_layout
31216
31217 \begin_layout Standard
31218
31219 \change_inserted 1075283030 1597699585
31220 The default value is always 
31221 \begin_inset Quotes eld
31222 \end_inset
31223
31224
31225 \begin_inset Flex Code
31226 status collapsed
31227
31228 \begin_layout Plain Layout
31229
31230 \change_inserted 1075283030 1597699585
31231 block
31232 \change_unchanged
31233
31234 \end_layout
31235
31236 \end_inset
31237
31238
31239 \begin_inset Quotes erd
31240 \end_inset
31241
31242 .
31243 \change_unchanged
31244
31245 \end_layout
31246
31247 \begin_layout Subsection
31248
31249 \change_inserted -970929547 1515111533
31250 InsetLayout DocBook
31251 \change_unchanged
31252
31253 \end_layout
31254
31255 \begin_layout Standard
31256
31257 \change_inserted -970929547 1496611894
31258 The DocBook output of insets can also be controlled by information in layout files.
31259 \end_layout
31260
31261 \begin_layout Standard
31262
31263 \change_inserted -970929547 1496612045
31264 The DocBook \SpecialChar LyX
31265  outputs for an inset has the following form:
31266 \end_layout
31267
31268 \begin_layout LyX-Code
31269
31270 \change_inserted -970929547 1515110861
31271 <wrappertag wrapperattr>
31272 \end_layout
31273
31274 \begin_layout LyX-Code
31275
31276 \change_inserted -970929547 1515110868
31277   <tag attr>
31278 \end_layout
31279
31280 \begin_layout LyX-Code
31281
31282 \change_inserted -970929547 1515110869
31283     <innertag innerattr>
31284 \end_layout
31285
31286 \begin_layout LyX-Code
31287
31288 \change_inserted -970929547 1515110869
31289       Contents of the inset.
31290 \end_layout
31291
31292 \begin_layout LyX-Code
31293
31294 \change_inserted -970929547 1515110870
31295     </innertag>
31296 \end_layout
31297
31298 \begin_layout LyX-Code
31299
31300 \change_inserted -970929547 1515110871
31301   </tag>
31302 \end_layout
31303
31304 \begin_layout LyX-Code
31305
31306 \change_inserted -970929547 1515111172
31307 </wrappertag>
31308 \end_layout
31309
31310 \begin_layout Standard
31311
31312 \change_inserted -970929547 1515111186
31313 For an itemising inset,
31314  it rather looks like this:
31315  
31316 \end_layout
31317
31318 \begin_layout LyX-Code
31319
31320 \change_inserted -970929547 1515111186
31321 <wrappertag wrapperattr>
31322 \end_layout
31323
31324 \begin_layout LyX-Code
31325
31326 \change_inserted -970929547 1515111186
31327   <tag attr>
31328 \end_layout
31329
31330 \begin_layout LyX-Code
31331
31332 \change_inserted -970929547 1515111186
31333     <innertag innerattr>
31334 \end_layout
31335
31336 \begin_layout LyX-Code
31337
31338 \change_inserted -970929547 1515111362
31339       <itemwrappertag itemwrapperattr>
31340 \end_layout
31341
31342 \begin_layout LyX-Code
31343
31344 \change_inserted -970929547 1515111364
31345         <itemlabeltag itemattr>
31346 \end_layout
31347
31348 \begin_layout LyX-Code
31349
31350 \change_inserted -970929547 1515111367
31351           Label of the first item.
31352 \end_layout
31353
31354 \begin_layout LyX-Code
31355
31356 \change_inserted -970929547 1515111362
31357         </itemtag>
31358 \change_unchanged
31359
31360 \end_layout
31361
31362 \begin_layout LyX-Code
31363
31364 \change_inserted -970929547 1515111517
31365         <itemtag itemattr>
31366 \end_layout
31367
31368 \begin_layout LyX-Code
31369
31370 \change_inserted -970929547 1515111517
31371           <itemtag itemattr>
31372 \change_unchanged
31373
31374 \end_layout
31375
31376 \begin_layout LyX-Code
31377
31378 \change_inserted -970929547 1515111516
31379             Contents of the first item.
31380 \end_layout
31381
31382 \begin_layout LyX-Code
31383
31384 \change_inserted -970929547 1515111514
31385           </itemtag>
31386 \change_unchanged
31387
31388 \end_layout
31389
31390 \begin_layout LyX-Code
31391
31392 \change_inserted -970929547 1515111247
31393         </itemtag>
31394 \change_unchanged
31395
31396 \end_layout
31397
31398 \begin_layout LyX-Code
31399
31400 \change_inserted -970929547 1515111221
31401       </itemwrappertag>
31402 \end_layout
31403
31404 \begin_layout LyX-Code
31405
31406 \change_inserted -970929547 1515111370
31407       <itemwrappertag itemwrapperattr>
31408 \end_layout
31409
31410 \begin_layout LyX-Code
31411
31412 \change_inserted -970929547 1515111370
31413         <itemlabeltag itemattr>
31414 \end_layout
31415
31416 \begin_layout LyX-Code
31417
31418 \change_inserted -970929547 1515111372
31419           Label of the second item.
31420 \end_layout
31421
31422 \begin_layout LyX-Code
31423
31424 \change_inserted -970929547 1515111370
31425         </itemtag>
31426 \change_unchanged
31427
31428 \end_layout
31429
31430 \begin_layout LyX-Code
31431
31432 \change_inserted -970929547 1515111504
31433         <itemtag itemattr>
31434 \end_layout
31435
31436 \begin_layout LyX-Code
31437
31438 \change_inserted -970929547 1515111505
31439           <itemtag itemattr>
31440 \change_unchanged
31441
31442 \end_layout
31443
31444 \begin_layout LyX-Code
31445
31446 \change_inserted -970929547 1515111507
31447             Contents of the second item.
31448 \end_layout
31449
31450 \begin_layout LyX-Code
31451
31452 \change_inserted -970929547 1515111509
31453           </itemtag>
31454 \change_unchanged
31455
31456 \end_layout
31457
31458 \begin_layout LyX-Code
31459
31460 \change_inserted -970929547 1515111251
31461         </itemtag>
31462 \change_unchanged
31463
31464 \end_layout
31465
31466 \begin_layout LyX-Code
31467
31468 \change_inserted -970929547 1515111221
31469       </itemwrappertag>
31470 \change_unchanged
31471
31472 \end_layout
31473
31474 \begin_layout LyX-Code
31475
31476 \change_inserted -970929547 1515111219
31477       ...
31478 \change_unchanged
31479
31480 \end_layout
31481
31482 \begin_layout LyX-Code
31483
31484 \change_inserted -970929547 1515111186
31485     </innertag>
31486 \end_layout
31487
31488 \begin_layout LyX-Code
31489
31490 \change_inserted -970929547 1515111186
31491   </tag>
31492 \end_layout
31493
31494 \begin_layout LyX-Code
31495
31496 \change_inserted -970929547 1515111186
31497 </wrappertag>
31498 \end_layout
31499
31500 \begin_layout Standard
31501
31502 \change_inserted -970929547 1515111183
31503 If the inset permits multiple paragraphs—
31504 that is,
31505  if 
31506 \begin_inset Flex Code
31507 status collapsed
31508
31509 \begin_layout Plain Layout
31510
31511 \change_inserted -970929547 1496610966
31512 MultiPar
31513 \change_unchanged
31514
31515 \end_layout
31516
31517 \end_inset
31518
31519  is true—
31520 then the contents of the inset will 
31521 \change_deleted 34634807 1620029217
31522 itself
31523 \change_inserted 34634807 1620029219
31524 themselves
31525 \change_inserted -970929547 1515111183
31526  be output as paragraphs formatted according to the styles used for those paragraphs (standard,
31527  quote,
31528  and the like).
31529  The inner tag is optional and,
31530  by default,
31531  does not appear.
31532 \end_layout
31533
31534 \begin_layout Standard
31535
31536 \change_inserted -970929547 1496610966
31537 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
31538 \end_layout
31539
31540 \begin_layout Description
31541
31542 \change_inserted -970929547 1515110317
31543 \begin_inset Flex Code
31544 status collapsed
31545
31546 \begin_layout Plain Layout
31547
31548 \change_inserted -970929547 1515109695
31549 DocBookAttr
31550 \change_unchanged
31551
31552 \end_layout
31553
31554 \end_inset
31555
31556  [
31557 \begin_inset Flex Code
31558 status collapsed
31559
31560 \begin_layout Plain Layout
31561
31562 \change_inserted -970929547 1496611854
31563 string
31564 \change_unchanged
31565
31566 \end_layout
31567
31568 \end_inset
31569
31570 ] Specifies attribute information to be output with the main tag,
31571  replacing 
31572 \begin_inset Quotes eld
31573 \end_inset
31574
31575
31576 \begin_inset Flex Code
31577 status collapsed
31578
31579 \begin_layout Plain Layout
31580
31581 \change_inserted -970929547 1515110044
31582 attr
31583 \change_unchanged
31584
31585 \end_layout
31586
31587 \end_inset
31588
31589
31590 \begin_inset Quotes erd
31591 \end_inset
31592
31593  in the example above.
31594  This information can be used in further processing of the DocBook files.
31595  
31596 \end_layout
31597
31598 \begin_layout Description
31599
31600 \change_inserted -970929547 1515110973
31601 \begin_inset Flex Code
31602 status collapsed
31603
31604 \begin_layout Plain Layout
31605
31606 \change_inserted -970929547 1515110319
31607 DocBookInInfo
31608 \change_unchanged
31609
31610 \end_layout
31611
31612 \end_inset
31613
31614  [
31615 \begin_inset Flex Code
31616 status collapsed
31617
31618 \begin_layout Plain Layout
31619
31620 \change_inserted -970929547 1515110384
31621 never,
31622  always,
31623  maybe
31624 \change_unchanged
31625
31626 \end_layout
31627
31628 \end_inset
31629
31630 ] Specifies whether this tag goes into the 
31631 \begin_inset Flex Code
31632 status collapsed
31633
31634 \begin_layout Plain Layout
31635
31636 \change_inserted -970929547 1515110412
31637 <info>
31638 \change_unchanged
31639
31640 \end_layout
31641
31642 \end_inset
31643
31644  tag at the beginning of the parent layout.
31645  
31646 \begin_inset Flex Code
31647 status collapsed
31648
31649 \begin_layout Plain Layout
31650
31651 \change_inserted -970929547 1515110437
31652 never
31653 \change_unchanged
31654
31655 \end_layout
31656
31657 \end_inset
31658
31659  indicates that the tag never goes into 
31660 \begin_inset Flex Code
31661 status collapsed
31662
31663 \begin_layout Plain Layout
31664
31665 \change_inserted -970929547 1515110497
31666 <info>
31667 \change_unchanged
31668
31669 \end_layout
31670
31671 \end_inset
31672
31673  (this is default value,
31674  and corresponds to usual content).
31675  
31676 \begin_inset Flex Code
31677 status collapsed
31678
31679 \begin_layout Plain Layout
31680
31681 \change_inserted -970929547 1515110517
31682 always
31683 \change_unchanged
31684
31685 \end_layout
31686
31687 \end_inset
31688
31689  indicates that the tag always goes into 
31690 \begin_inset Flex Code
31691 status collapsed
31692
31693 \begin_layout Plain Layout
31694
31695 \change_inserted -970929547 1515110514
31696 <info>
31697 \change_unchanged
31698
31699 \end_layout
31700
31701 \end_inset
31702
31703  (this corresponds to usual metadata):
31704  if there is no 
31705 \begin_inset Flex Code
31706 status collapsed
31707
31708 \begin_layout Plain Layout
31709
31710 \change_inserted -970929547 1515110550
31711 <info>
31712 \change_unchanged
31713
31714 \end_layout
31715
31716 \end_inset
31717
31718  tag for the parent,
31719  one 
31720 \series bold
31721 will
31722 \series default
31723  be generated.
31724  
31725 \begin_inset Flex Code
31726 status collapsed
31727
31728 \begin_layout Plain Layout
31729
31730 \change_inserted -970929547 1515110540
31731 maybe
31732 \change_unchanged
31733
31734 \end_layout
31735
31736 \end_inset
31737
31738  indicates that the tag may go into 
31739 \begin_inset Flex Code
31740 status collapsed
31741
31742 \begin_layout Plain Layout
31743
31744 \change_inserted -970929547 1515110538
31745 <info>
31746 \change_unchanged
31747
31748 \end_layout
31749
31750 \end_inset
31751
31752  (this is only the case for titles):
31753  if there is no 
31754 \begin_inset Flex Code
31755 status collapsed
31756
31757 \begin_layout Plain Layout
31758
31759 \change_inserted -970929547 1515110585
31760 <info>
31761 \change_unchanged
31762
31763 \end_layout
31764
31765 \end_inset
31766
31767  tag for the parent,
31768  
31769 \series bold
31770 none
31771 \series default
31772  will be generated,
31773  the corresponding tag will be output directly as content.
31774  
31775 \end_layout
31776
31777 \begin_layout Description
31778
31779 \change_inserted -970929547 1515111461
31780 \begin_inset Flex Code
31781 status collapsed
31782
31783 \begin_layout Plain Layout
31784
31785 \change_inserted -970929547 1515110974
31786 DocBookItemAttr
31787 \change_unchanged
31788
31789 \end_layout
31790
31791 \end_inset
31792
31793  [
31794 \begin_inset Flex Code
31795 status collapsed
31796
31797 \begin_layout Plain Layout
31798
31799 \change_inserted -970929547 1515110973
31800 string
31801 \change_unchanged
31802
31803 \end_layout
31804
31805 \end_inset
31806
31807 ] Specifies attribute information to be output with the item tag,
31808  replacing 
31809 \begin_inset Quotes eld
31810 \end_inset
31811
31812
31813 \begin_inset Flex Code
31814 status collapsed
31815
31816 \begin_layout Plain Layout
31817
31818 \change_inserted -970929547 1515110984
31819 itemattr
31820 \change_unchanged
31821
31822 \end_layout
31823
31824 \end_inset
31825
31826
31827 \begin_inset Quotes erd
31828 \end_inset
31829
31830  in the example above.
31831  This information can be used in further processing of the DocBook files.
31832  
31833 \end_layout
31834
31835 \begin_layout Description
31836
31837 \change_inserted -970929547 1515111471
31838 \begin_inset Flex Code
31839 status collapsed
31840
31841 \begin_layout Plain Layout
31842
31843 \change_inserted -970929547 1515111465
31844 DocBookItemInnerAttr
31845 \change_unchanged
31846
31847 \end_layout
31848
31849 \end_inset
31850
31851  [
31852 \begin_inset Flex Code
31853 status collapsed
31854
31855 \begin_layout Plain Layout
31856
31857 \change_inserted -970929547 1515111461
31858 string
31859 \change_unchanged
31860
31861 \end_layout
31862
31863 \end_inset
31864
31865 ] Specifies attribute information to be output with the item inner tag,
31866  replacing 
31867 \begin_inset Quotes eld
31868 \end_inset
31869
31870
31871 \begin_inset Flex Code
31872 status collapsed
31873
31874 \begin_layout Plain Layout
31875
31876 \change_inserted -970929547 1515111476
31877 iteminnerattr
31878 \change_unchanged
31879
31880 \end_layout
31881
31882 \end_inset
31883
31884
31885 \begin_inset Quotes erd
31886 \end_inset
31887
31888  in the example above.
31889  This information can be used in further processing of the DocBook files.
31890  
31891 \end_layout
31892
31893 \begin_layout Description
31894
31895 \change_inserted -970929547 1515111494
31896 \begin_inset Flex Code
31897 status collapsed
31898
31899 \begin_layout Plain Layout
31900
31901 \change_inserted -970929547 1515111467
31902 DocBookItemInnerTag
31903 \change_unchanged
31904
31905 \end_layout
31906
31907 \end_inset
31908
31909  [
31910 \begin_inset Flex Code
31911 status collapsed
31912
31913 \begin_layout Plain Layout
31914
31915 \change_inserted -970929547 1515111461
31916 string
31917 \change_unchanged
31918
31919 \end_layout
31920
31921 \end_inset
31922
31923 ] The tag to be used for the item inner tag within the inset,
31924  replacing 
31925 \begin_inset Quotes eld
31926 \end_inset
31927
31928
31929 \begin_inset Flex Code
31930 status collapsed
31931
31932 \begin_layout Plain Layout
31933
31934 \change_inserted -970929547 1515111486
31935 iteminnertag
31936 \change_unchanged
31937
31938 \end_layout
31939
31940 \end_inset
31941
31942
31943 \begin_inset Quotes erd
31944 \end_inset
31945
31946  in the example above.
31947  The default is 
31948 \begin_inset Flex Code
31949 status collapsed
31950
31951 \begin_layout Plain Layout
31952
31953 \change_inserted -970929547 1515111461
31954 NONE
31955 \change_unchanged
31956
31957 \end_layout
31958
31959 \end_inset
31960
31961 ,
31962  indicating that there is no item inner tag:
31963  content is directly output without it for each itemised element.
31964  This parameter only makes sense when itemising layouts are used,
31965  such as lists.
31966  
31967 \change_inserted 1075283030 1598469472
31968 The most likely value is 
31969 \begin_inset Quotes eld
31970 \end_inset
31971
31972
31973 \begin_inset Flex Code
31974 status collapsed
31975
31976 \begin_layout Plain Layout
31977
31978 \change_inserted 1075283030 1598469476
31979 para
31980 \change_unchanged
31981
31982 \end_layout
31983
31984 \end_inset
31985
31986
31987 \begin_inset Quotes erd
31988 \end_inset
31989
31990 .
31991 \begin_inset Newline newline
31992 \end_inset
31993
31994 When a list item is split using a new line,
31995  the item inner tag will be repeated for each part of the paragraph,
31996  parts being separated by new lines.
31997  
31998 \end_layout
31999
32000 \begin_layout Description
32001
32002 \change_inserted 1075283030 1597699866
32003 \begin_inset Flex Code
32004 status collapsed
32005
32006 \begin_layout Plain Layout
32007
32008 \change_inserted 1075283030 1597699853
32009 DocBookItemInnerTagType
32010 \change_unchanged
32011
32012 \end_layout
32013
32014 \end_inset
32015
32016  [
32017 \begin_inset Flex Code
32018 status collapsed
32019
32020 \begin_layout Plain Layout
32021
32022 \change_inserted 1075283030 1597699866
32023 block,
32024  paragraph,
32025  inline
32026 \change_unchanged
32027
32028 \end_layout
32029
32030 \end_inset
32031
32032 ] The new-line policy for this tag,
32033  see Section
32034 \begin_inset space ~
32035 \end_inset
32036
32037
32038 \begin_inset CommandInset ref
32039 LatexCommand ref
32040 reference "subsec:DocBook-New-line-policy"
32041 plural "false"
32042 caps "false"
32043 noprefix "false"
32044 nolink "false"
32045
32046 \end_inset
32047
32048  for the details.
32049  
32050 \change_unchanged
32051
32052 \end_layout
32053
32054 \begin_layout Description
32055
32056 \change_inserted -970929547 1515111290
32057 \begin_inset Flex Code
32058 status collapsed
32059
32060 \begin_layout Plain Layout
32061
32062 \change_inserted -970929547 1515111283
32063 DocBookItemLabelAttr
32064 \change_unchanged
32065
32066 \end_layout
32067
32068 \end_inset
32069
32070  [
32071 \begin_inset Flex Code
32072 status collapsed
32073
32074 \begin_layout Plain Layout
32075
32076 \change_inserted -970929547 1515111279
32077 string
32078 \change_unchanged
32079
32080 \end_layout
32081
32082 \end_inset
32083
32084 ] Specifies attribute information to be output with the item label tag,
32085  replacing 
32086 \begin_inset Quotes eld
32087 \end_inset
32088
32089
32090 \begin_inset Flex Code
32091 status collapsed
32092
32093 \begin_layout Plain Layout
32094
32095 \change_inserted -970929547 1515111304
32096 itemlabelattr
32097 \change_unchanged
32098
32099 \end_layout
32100
32101 \end_inset
32102
32103
32104 \begin_inset Quotes erd
32105 \end_inset
32106
32107  in the example above.
32108  This information can be used in further processing of the DocBook files.
32109  
32110 \end_layout
32111
32112 \begin_layout Description
32113
32114 \change_inserted -970929547 1515111337
32115 \begin_inset Flex Code
32116 status collapsed
32117
32118 \begin_layout Plain Layout
32119
32120 \change_inserted -970929547 1515111285
32121 DocBookItemLabelTag
32122 \change_unchanged
32123
32124 \end_layout
32125
32126 \end_inset
32127
32128  [
32129 \begin_inset Flex Code
32130 status collapsed
32131
32132 \begin_layout Plain Layout
32133
32134 \change_inserted -970929547 1515111279
32135 string
32136 \change_unchanged
32137
32138 \end_layout
32139
32140 \end_inset
32141
32142 ] The tag to be used for the item label tag within the inset,
32143  replacing 
32144 \begin_inset Quotes eld
32145 \end_inset
32146
32147
32148 \begin_inset Flex Code
32149 status collapsed
32150
32151 \begin_layout Plain Layout
32152
32153 \change_inserted -970929547 1515111311
32154 itemlabeltag
32155 \change_unchanged
32156
32157 \end_layout
32158
32159 \end_inset
32160
32161
32162 \begin_inset Quotes erd
32163 \end_inset
32164
32165  in the example above.
32166  This parameter only makes sense when itemising layouts are used with a notion of labels,
32167  such as definition lists.
32168  
32169 \change_inserted 1075283030 1597699874
32170
32171 \end_layout
32172
32173 \begin_layout Description
32174
32175 \change_inserted 1075283030 1597699874
32176 \begin_inset Flex Code
32177 status collapsed
32178
32179 \begin_layout Plain Layout
32180
32181 \change_inserted 1075283030 1597699880
32182 DocBookItemLabelTagType
32183 \change_unchanged
32184
32185 \end_layout
32186
32187 \end_inset
32188
32189  [
32190 \begin_inset Flex Code
32191 status collapsed
32192
32193 \begin_layout Plain Layout
32194
32195 \change_inserted 1075283030 1597699874
32196 block,
32197  paragraph,
32198  inline
32199 \change_unchanged
32200
32201 \end_layout
32202
32203 \end_inset
32204
32205 ] The new-line policy for this tag,
32206  see Section
32207 \begin_inset space ~
32208 \end_inset
32209
32210
32211 \begin_inset CommandInset ref
32212 LatexCommand ref
32213 reference "subsec:DocBook-New-line-policy"
32214 plural "false"
32215 caps "false"
32216 noprefix "false"
32217 nolink "false"
32218
32219 \end_inset
32220
32221  for the details.
32222  
32223 \change_unchanged
32224
32225 \end_layout
32226
32227 \begin_layout Description
32228
32229 \change_inserted -970929547 1515111124
32230 \begin_inset Flex Code
32231 status collapsed
32232
32233 \begin_layout Plain Layout
32234
32235 \change_inserted -970929547 1515111060
32236 DocBookItemTag
32237 \change_unchanged
32238
32239 \end_layout
32240
32241 \end_inset
32242
32243  [
32244 \begin_inset Flex Code
32245 status collapsed
32246
32247 \begin_layout Plain Layout
32248
32249 \change_inserted -970929547 1515111060
32250 string
32251 \change_unchanged
32252
32253 \end_layout
32254
32255 \end_inset
32256
32257 ] The tag to be used for the item tag within the inset,
32258  replacing 
32259 \begin_inset Quotes eld
32260 \end_inset
32261
32262
32263 \begin_inset Flex Code
32264 status collapsed
32265
32266 \begin_layout Plain Layout
32267
32268 \change_inserted -970929547 1515111060
32269 itemtag
32270 \change_unchanged
32271
32272 \end_layout
32273
32274 \end_inset
32275
32276
32277 \begin_inset Quotes erd
32278 \end_inset
32279
32280  in the example above.
32281  The default is 
32282 \begin_inset Flex Code
32283 status collapsed
32284
32285 \begin_layout Plain Layout
32286
32287 \change_inserted -970929547 1515111060
32288 NONE
32289 \change_unchanged
32290
32291 \end_layout
32292
32293 \end_inset
32294
32295 ,
32296  indicating that there is no item tag.
32297  This parameter only makes sense when itemising layouts are used,
32298  such as lists.
32299  
32300 \change_inserted 1075283030 1597699890
32301
32302 \end_layout
32303
32304 \begin_layout Description
32305
32306 \change_inserted 1075283030 1597699890
32307 \begin_inset Flex Code
32308 status collapsed
32309
32310 \begin_layout Plain Layout
32311
32312 \change_inserted 1075283030 1597699890
32313 DocBookItemTagType
32314 \change_unchanged
32315
32316 \end_layout
32317
32318 \end_inset
32319
32320  [
32321 \begin_inset Flex Code
32322 status collapsed
32323
32324 \begin_layout Plain Layout
32325
32326 \change_inserted 1075283030 1597699890
32327 block,
32328  paragraph,
32329  inline
32330 \change_unchanged
32331
32332 \end_layout
32333
32334 \end_inset
32335
32336 ] The new-line policy for this tag,
32337  see Section
32338 \begin_inset space ~
32339 \end_inset
32340
32341
32342 \begin_inset CommandInset ref
32343 LatexCommand ref
32344 reference "subsec:DocBook-New-line-policy"
32345 plural "false"
32346 caps "false"
32347 noprefix "false"
32348 nolink "false"
32349
32350 \end_inset
32351
32352  for the details.
32353  
32354 \change_unchanged
32355
32356 \end_layout
32357
32358 \begin_layout Description
32359
32360 \change_inserted -970929547 1515111298
32361 \begin_inset Flex Code
32362 status collapsed
32363
32364 \begin_layout Plain Layout
32365
32366 \change_inserted -970929547 1515111124
32367 DocBookItemWrapperAttr
32368 \change_unchanged
32369
32370 \end_layout
32371
32372 \end_inset
32373
32374  [
32375 \begin_inset Flex Code
32376 status collapsed
32377
32378 \begin_layout Plain Layout
32379
32380 \change_inserted -970929547 1515111124
32381 string
32382 \change_unchanged
32383
32384 \end_layout
32385
32386 \end_inset
32387
32388 ] Specifies attribute information to be output with the item wrapper tag,
32389  replacing 
32390 \begin_inset Quotes eld
32391 \end_inset
32392
32393
32394 \begin_inset Flex Code
32395 status collapsed
32396
32397 \begin_layout Plain Layout
32398
32399 \change_inserted -970929547 1515111150
32400 itemwrapperattr
32401 \change_unchanged
32402
32403 \end_layout
32404
32405 \end_inset
32406
32407
32408 \begin_inset Quotes erd
32409 \end_inset
32410
32411  in the example above.
32412  This information can be used in further processing of the DocBook files.
32413  
32414 \change_unchanged
32415
32416 \end_layout
32417
32418 \begin_layout Description
32419
32420 \change_inserted -970929547 1515111113
32421 \begin_inset Flex Code
32422 status collapsed
32423
32424 \begin_layout Plain Layout
32425
32426 \change_inserted -970929547 1515111073
32427 DocBookItemWrapperTag
32428 \change_unchanged
32429
32430 \end_layout
32431
32432 \end_inset
32433
32434  [
32435 \begin_inset Flex Code
32436 status collapsed
32437
32438 \begin_layout Plain Layout
32439
32440 \change_inserted -970929547 1515111073
32441 string
32442 \change_unchanged
32443
32444 \end_layout
32445
32446 \end_inset
32447
32448 ] The tag to be used for the item wrapper tag within the inset,
32449  replacing 
32450 \begin_inset Quotes eld
32451 \end_inset
32452
32453
32454 \begin_inset Flex Code
32455 status collapsed
32456
32457 \begin_layout Plain Layout
32458
32459 \change_inserted -970929547 1515111083
32460 itemwrappertag
32461 \change_unchanged
32462
32463 \end_layout
32464
32465 \end_inset
32466
32467
32468 \begin_inset Quotes erd
32469 \end_inset
32470
32471  in the example above.
32472  The default is 
32473 \begin_inset Flex Code
32474 status collapsed
32475
32476 \begin_layout Plain Layout
32477
32478 \change_inserted -970929547 1515111073
32479 NONE
32480 \change_unchanged
32481
32482 \end_layout
32483
32484 \end_inset
32485
32486 ,
32487  indicating that there is no item wrapper tag:
32488  tag and content are directly output without it for each itemised element.
32489  This parameter only makes sense when itemising layouts are used,
32490  such as lists.
32491  
32492 \change_inserted 1075283030 1597699897
32493
32494 \end_layout
32495
32496 \begin_layout Description
32497
32498 \change_inserted 1075283030 1597699897
32499 \begin_inset Flex Code
32500 status collapsed
32501
32502 \begin_layout Plain Layout
32503
32504 \change_inserted 1075283030 1597699900
32505 DocBookItemWrapperTagType
32506 \change_unchanged
32507
32508 \end_layout
32509
32510 \end_inset
32511
32512  [
32513 \begin_inset Flex Code
32514 status collapsed
32515
32516 \begin_layout Plain Layout
32517
32518 \change_inserted 1075283030 1597699897
32519 block,
32520  paragraph,
32521  inline
32522 \change_unchanged
32523
32524 \end_layout
32525
32526 \end_inset
32527
32528 ] The new-line policy for this tag,
32529  see Section
32530 \begin_inset space ~
32531 \end_inset
32532
32533
32534 \begin_inset CommandInset ref
32535 LatexCommand ref
32536 reference "subsec:DocBook-New-line-policy"
32537 plural "false"
32538 caps "false"
32539 noprefix "false"
32540 nolink "false"
32541
32542 \end_inset
32543
32544  for the details.
32545  
32546 \change_unchanged
32547
32548 \end_layout
32549
32550 \begin_layout Description
32551
32552 \change_inserted -970929547 1515110104
32553 \begin_inset Flex Code
32554 status collapsed
32555
32556 \begin_layout Plain Layout
32557
32558 \change_inserted -970929547 1515110104
32559 DocBookInnerAttr
32560 \change_unchanged
32561
32562 \end_layout
32563
32564 \end_inset
32565
32566  [
32567 \begin_inset Flex Code
32568 status collapsed
32569
32570 \begin_layout Plain Layout
32571
32572 \change_inserted -970929547 1515110104
32573 string
32574 \change_unchanged
32575
32576 \end_layout
32577
32578 \end_inset
32579
32580 ] Specifies attribute information to be output with the inner tag,
32581  replacing 
32582 \begin_inset Quotes eld
32583 \end_inset
32584
32585
32586 \begin_inset Flex Code
32587 status collapsed
32588
32589 \begin_layout Plain Layout
32590
32591 \change_inserted -970929547 1515110104
32592 innerattr
32593 \change_unchanged
32594
32595 \end_layout
32596
32597 \end_inset
32598
32599
32600 \begin_inset Quotes erd
32601 \end_inset
32602
32603  in the example above.
32604  This information can be used in further processing of the DocBook files.
32605  
32606 \end_layout
32607
32608 \begin_layout Description
32609
32610 \change_inserted -970929547 1515110906
32611 \begin_inset Flex Code
32612 status collapsed
32613
32614 \begin_layout Plain Layout
32615
32616 \change_inserted -970929547 1515110104
32617 DocBookInnerTag
32618 \change_unchanged
32619
32620 \end_layout
32621
32622 \end_inset
32623
32624  [
32625 \begin_inset Flex Code
32626 status collapsed
32627
32628 \begin_layout Plain Layout
32629
32630 \change_inserted -970929547 1515110104
32631 string
32632 \change_unchanged
32633
32634 \end_layout
32635
32636 \end_inset
32637
32638 ] The tag to be used for the inner tag within the inset,
32639  replacing 
32640 \begin_inset Quotes eld
32641 \end_inset
32642
32643
32644 \begin_inset Flex Code
32645 status collapsed
32646
32647 \begin_layout Plain Layout
32648
32649 \change_inserted -970929547 1515110104
32650 innertag
32651 \change_unchanged
32652
32653 \end_layout
32654
32655 \end_inset
32656
32657
32658 \begin_inset Quotes erd
32659 \end_inset
32660
32661  in the example above.
32662  The default is 
32663 \begin_inset Flex Code
32664 status collapsed
32665
32666 \begin_layout Plain Layout
32667
32668 \change_inserted -970929547 1515110791
32669 NONE
32670 \change_unchanged
32671
32672 \end_layout
32673
32674 \end_inset
32675
32676 ,
32677  indicating that there is no inner tag:
32678  content is directly output without it.
32679 \change_inserted 1075283030 1597699904
32680
32681 \end_layout
32682
32683 \begin_layout Description
32684
32685 \change_inserted 1075283030 1597699904
32686 \begin_inset Flex Code
32687 status collapsed
32688
32689 \begin_layout Plain Layout
32690
32691 \change_inserted 1075283030 1597699904
32692 DocBookInnerTagType
32693 \change_unchanged
32694
32695 \end_layout
32696
32697 \end_inset
32698
32699  [
32700 \begin_inset Flex Code
32701 status collapsed
32702
32703 \begin_layout Plain Layout
32704
32705 \change_inserted 1075283030 1597699904
32706 block,
32707  paragraph,
32708  inline
32709 \change_unchanged
32710
32711 \end_layout
32712
32713 \end_inset
32714
32715 ] The new-line policy for this tag,
32716  see Section
32717 \begin_inset space ~
32718 \end_inset
32719
32720
32721 \begin_inset CommandInset ref
32722 LatexCommand ref
32723 reference "subsec:DocBook-New-line-policy"
32724 plural "false"
32725 caps "false"
32726 noprefix "false"
32727 nolink "false"
32728
32729 \end_inset
32730
32731  for the details.
32732  
32733 \change_unchanged
32734
32735 \end_layout
32736
32737 \begin_layout Description
32738
32739 \change_inserted -970929547 1515110753
32740 \begin_inset Flex Code
32741 status collapsed
32742
32743 \begin_layout Plain Layout
32744
32745 \change_inserted -970929547 1515110665
32746 DocBookSectionTag
32747 \change_unchanged
32748
32749 \end_layout
32750
32751 \end_inset
32752
32753  [
32754 \begin_inset Flex Code
32755 status collapsed
32756
32757 \begin_layout Plain Layout
32758
32759 \change_inserted -970929547 1515110661
32760 string
32761 \change_unchanged
32762
32763 \end_layout
32764
32765 \end_inset
32766
32767 ] Specifies the tag that corresponds to this kind of section.
32768  This parameter only makes sense for sectioning elements (part,
32769  chapter,
32770  section,
32771  etc.).
32772  The default value is 
32773 \begin_inset Flex Code
32774 status collapsed
32775
32776 \begin_layout Plain Layout
32777
32778 \change_inserted -970929547 1515110721
32779 section
32780 \change_unchanged
32781
32782 \end_layout
32783
32784 \end_inset
32785
32786 ,
32787  and is only overridden when DocBook uses something else for sectioning (
32788 \change_inserted 1075283030 1597699921
32789 typically,
32790  
32791 \change_inserted -970929547 1515110753
32792 parts and chapters of a book).
32793  
32794 \change_unchanged
32795
32796 \end_layout
32797
32798 \begin_layout Description
32799
32800 \change_inserted -970929547 1515110811
32801 \begin_inset Flex Code
32802 status collapsed
32803
32804 \begin_layout Plain Layout
32805
32806 \change_inserted -970929547 1496612023
32807 DocBookTag
32808 \change_unchanged
32809
32810 \end_layout
32811
32812 \end_inset
32813
32814  [
32815 \begin_inset Flex Code
32816 status collapsed
32817
32818 \begin_layout Plain Layout
32819
32820 \change_inserted -970929547 1496610966
32821 string
32822 \change_unchanged
32823
32824 \end_layout
32825
32826 \end_inset
32827
32828 ] The tag to be used for this inset,
32829  replacing 
32830 \begin_inset Quotes eld
32831 \end_inset
32832
32833
32834 \begin_inset Flex Code
32835 status collapsed
32836
32837 \begin_layout Plain Layout
32838
32839 \change_inserted -970929547 1496612033
32840 tag
32841 \change_unchanged
32842
32843 \end_layout
32844
32845 \end_inset
32846
32847
32848 \begin_inset Quotes erd
32849 \end_inset
32850
32851  in the example above.
32852  The default is the name of the float and always needs to be changed,
32853  as DocBook provides no generic inset tag.
32854 \change_inserted 1075283030 1597699924
32855
32856 \end_layout
32857
32858 \begin_layout Description
32859
32860 \change_inserted 1075283030 1597699924
32861 \begin_inset Flex Code
32862 status collapsed
32863
32864 \begin_layout Plain Layout
32865
32866 \change_inserted 1075283030 1597699924
32867 DocBookTagType
32868 \change_unchanged
32869
32870 \end_layout
32871
32872 \end_inset
32873
32874  [
32875 \begin_inset Flex Code
32876 status collapsed
32877
32878 \begin_layout Plain Layout
32879
32880 \change_inserted 1075283030 1597699924
32881 block,
32882  paragraph,
32883  inline
32884 \change_unchanged
32885
32886 \end_layout
32887
32888 \end_inset
32889
32890 ] The new-line policy for this tag,
32891  see Section
32892 \begin_inset space ~
32893 \end_inset
32894
32895
32896 \begin_inset CommandInset ref
32897 LatexCommand ref
32898 reference "subsec:DocBook-New-line-policy"
32899 plural "false"
32900 caps "false"
32901 noprefix "false"
32902 nolink "false"
32903
32904 \end_inset
32905
32906  for the details.
32907  
32908 \change_unchanged
32909
32910 \end_layout
32911
32912 \begin_layout Description
32913
32914 \change_inserted -970929547 1515110832
32915 \begin_inset Flex Code
32916 status collapsed
32917
32918 \begin_layout Plain Layout
32919
32920 \change_inserted -970929547 1515110822
32921 DocBookWrapperAttr
32922 \change_unchanged
32923
32924 \end_layout
32925
32926 \end_inset
32927
32928  [
32929 \begin_inset Flex Code
32930 status collapsed
32931
32932 \begin_layout Plain Layout
32933
32934 \change_inserted -970929547 1515110811
32935 string
32936 \change_unchanged
32937
32938 \end_layout
32939
32940 \end_inset
32941
32942 ] Specifies attribute information to be output with the outer 
32943 \change_inserted 34634807 1620057958
32944 wrapper 
32945 \change_inserted -970929547 1515110832
32946 tag,
32947  replacing 
32948 \begin_inset Quotes eld
32949 \end_inset
32950
32951
32952 \begin_inset Flex Code
32953 status collapsed
32954
32955 \begin_layout Plain Layout
32956
32957 \change_inserted -970929547 1515110845
32958 wrapperattr
32959 \change_unchanged
32960
32961 \end_layout
32962
32963 \end_inset
32964
32965
32966 \begin_inset Quotes erd
32967 \end_inset
32968
32969  in the example above.
32970  This information can be used in further processing of the DocBook files.
32971  
32972 \end_layout
32973
32974 \begin_layout Description
32975
32976 \change_inserted -970929547 1515110917
32977 \begin_inset Flex Code
32978 status collapsed
32979
32980 \begin_layout Plain Layout
32981
32982 \change_inserted -970929547 1515110826
32983 DocBookWrapperTag
32984 \change_unchanged
32985
32986 \end_layout
32987
32988 \end_inset
32989
32990  [
32991 \begin_inset Flex Code
32992 status collapsed
32993
32994 \begin_layout Plain Layout
32995
32996 \change_inserted -970929547 1515110811
32997 string
32998 \change_unchanged
32999
33000 \end_layout
33001
33002 \end_inset
33003
33004 ] The tag to be used for the wrapper tag around the inset,
33005  replacing 
33006 \begin_inset Quotes eld
33007 \end_inset
33008
33009
33010 \begin_inset Flex Code
33011 status collapsed
33012
33013 \begin_layout Plain Layout
33014
33015 \change_inserted -970929547 1515110842
33016 wrappertag
33017 \change_unchanged
33018
33019 \end_layout
33020
33021 \end_inset
33022
33023
33024 \begin_inset Quotes erd
33025 \end_inset
33026
33027  in the example above.
33028  The default is 
33029 \begin_inset Flex Code
33030 status collapsed
33031
33032 \begin_layout Plain Layout
33033
33034 \change_inserted -970929547 1515110811
33035 NONE
33036 \change_unchanged
33037
33038 \end_layout
33039
33040 \end_inset
33041
33042 ,
33043  indicating that there is no wrapper tag:
33044  tag and content are directly output without it.
33045 \change_inserted 1075283030 1597699929
33046
33047 \end_layout
33048
33049 \begin_layout Description
33050
33051 \change_inserted 1075283030 1597699929
33052 \begin_inset Flex Code
33053 status collapsed
33054
33055 \begin_layout Plain Layout
33056
33057 \change_inserted 1075283030 1597699932
33058 DocBookWrapperTagType
33059 \change_unchanged
33060
33061 \end_layout
33062
33063 \end_inset
33064
33065  [
33066 \begin_inset Flex Code
33067 status collapsed
33068
33069 \begin_layout Plain Layout
33070
33071 \change_inserted 1075283030 1597699929
33072 block,
33073  paragraph,
33074  inline
33075 \change_unchanged
33076
33077 \end_layout
33078
33079 \end_inset
33080
33081 ] The new-line policy for this tag,
33082  see Section
33083 \begin_inset space ~
33084 \end_inset
33085
33086
33087 \begin_inset CommandInset ref
33088 LatexCommand ref
33089 reference "subsec:DocBook-New-line-policy"
33090 plural "false"
33091 caps "false"
33092 noprefix "false"
33093 nolink "false"
33094
33095 \end_inset
33096
33097  for the details.
33098  
33099 \change_unchanged
33100
33101 \end_layout
33102
33103 \begin_layout Subsection
33104
33105 \change_inserted -970929547 1515110040
33106 Float DocBook
33107 \end_layout
33108
33109 \begin_layout Standard
33110
33111 \change_inserted -970929547 1496611700
33112 The DocBook output for floats too can be controlled by layout information.
33113  The output has the following form:
33114 \end_layout
33115
33116 \begin_layout LyX-Code
33117
33118 \change_inserted -970929547 1515109700
33119 <tag attr>
33120 \end_layout
33121
33122 \begin_layout LyX-Code
33123
33124 \change_inserted -970929547 1515110138
33125   Contents of the float as DocBook.
33126 \end_layout
33127
33128 \begin_layout LyX-Code
33129
33130 \change_inserted -970929547 1496610966
33131 </tag>
33132 \end_layout
33133
33134 \begin_layout Standard
33135
33136 \change_inserted -970929547 1496611715
33137 The caption,
33138  if there is one,
33139  is a separate inset and will be output as a title.
33140  
33141 \end_layout
33142
33143 \begin_layout Description
33144
33145 \change_inserted -970929547 1515110033
33146 \begin_inset Flex Code
33147 status collapsed
33148
33149 \begin_layout Plain Layout
33150
33151 \change_inserted -970929547 1515109702
33152 DocBookAttr
33153 \change_unchanged
33154
33155 \end_layout
33156
33157 \end_inset
33158
33159  [
33160 \begin_inset Flex Code
33161 status collapsed
33162
33163 \begin_layout Plain Layout
33164
33165 \change_inserted -970929547 1496610966
33166 string
33167 \change_unchanged
33168
33169 \end_layout
33170
33171 \end_inset
33172
33173 ] Specifies attribute information to be output with the main tag,
33174  replacing 
33175 \begin_inset Quotes eld
33176 \end_inset
33177
33178
33179 \begin_inset Flex Code
33180 status collapsed
33181
33182 \begin_layout Plain Layout
33183
33184 \change_inserted -970929547 1515110035
33185 attr
33186 \change_unchanged
33187
33188 \end_layout
33189
33190 \end_inset
33191
33192
33193 \begin_inset Quotes erd
33194 \end_inset
33195
33196  in the example above.
33197  This information can be used in further processing of the DocBook files.
33198  
33199 \end_layout
33200
33201 \begin_layout Description
33202
33203 \change_inserted -970929547 1515110157
33204 \begin_inset Flex Code
33205 status collapsed
33206
33207 \begin_layout Plain Layout
33208
33209 \change_inserted -970929547 1496611782
33210 DocBookTag
33211 \change_unchanged
33212
33213 \end_layout
33214
33215 \end_inset
33216
33217  [
33218 \begin_inset Flex Code
33219 status collapsed
33220
33221 \begin_layout Plain Layout
33222
33223 \change_inserted -970929547 1496610966
33224 string
33225 \change_unchanged
33226
33227 \end_layout
33228
33229 \end_inset
33230
33231 ] The tag to be used for this float,
33232  replacing 
33233 \begin_inset Quotes eld
33234 \end_inset
33235
33236
33237 \begin_inset Flex Code
33238 status collapsed
33239
33240 \begin_layout Plain Layout
33241
33242 \change_inserted -970929547 1496610966
33243 tag
33244 \change_unchanged
33245
33246 \end_layout
33247
33248 \end_inset
33249
33250
33251 \begin_inset Quotes erd
33252 \end_inset
33253
33254  in the example above.
33255  The default is the name of the float and always needs to be changed,
33256  as DocBook provides no generic float tag.
33257 \end_layout
33258
33259 \begin_layout Subsection
33260
33261 \change_inserted -970929547 1515110157
33262 Bibliography formatting
33263 \end_layout
33264
33265 \begin_layout Standard
33266
33267 \change_deleted 1075283030 1597699984
33268 The 
33269 \change_inserted 1075283030 1597699985
33270 Included 
33271 \change_inserted -970929547 1515110187
33272 bibliograph
33273 \change_deleted 1075283030 1597699987
33274 y
33275 \change_inserted 1075283030 1597699987
33276 ies
33277 \change_inserted -970929547 1515110187
33278  cannot be formatted:
33279  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file)
33280 \change_inserted 1075283030 1597700117
33281 ,
33282  using the 
33283 \begin_inset Flex Code
33284 status collapsed
33285
33286 \begin_layout Plain Layout
33287
33288 \change_inserted 1075283030 1597700120
33289 biblioentry
33290 \change_unchanged
33291
33292 \end_layout
33293
33294 \end_inset
33295
33296  tag
33297 \change_inserted -970929547 1515110187
33298 .
33299 \change_inserted 1075283030 1597700092
33300
33301 \end_layout
33302
33303 \begin_layout Standard
33304
33305 \change_inserted 1075283030 1597700112
33306 When the bibliographic entries are manually inserted into the 
33307 \change_deleted 34634807 1620057319
33308 LyX
33309 \change_inserted 34634807 1620057319
33310 \SpecialChar LyX
33311
33312 \change_inserted 1075283030 1597700112
33313  document as Bibliography Items,
33314  the user deals with formatting 
33315 \change_unchanged
33316 them
33317 \change_inserted 1075283030 1597700112
33318 self:
33319  there is no attempt of parsing what the user wrote,
33320  the string is directly used (with the 
33321 \begin_inset Flex Code
33322 status collapsed
33323
33324 \begin_layout Plain Layout
33325
33326 \change_inserted 1075283030 1597700076
33327 bibliomixed
33328 \change_unchanged
33329
33330 \end_layout
33331
33332 \end_inset
33333
33334  tag).
33335  
33336 \change_unchanged
33337
33338 \end_layout
33339
33340 \begin_layout Chapter
33341 Including External Material
33342 \begin_inset CommandInset label
33343 LatexCommand label
33344 name "chap:Including-External-Material"
33345
33346 \end_inset
33347
33348
33349 \end_layout
33350
33351 \begin_layout Standard
33352 \begin_inset Box Shadowbox
33353 position "t"
33354 hor_pos "c"
33355 has_inner_box 1
33356 inner_pos "t"
33357 use_parbox 0
33358 use_makebox 0
33359 width "100col%"
33360 special "none"
33361 height "1in"
33362 height_special "totalheight"
33363 thickness "0.4pt"
33364 separation "3pt"
33365 shadowsize "4pt"
33366 framecolor "black"
33367 backgroundcolor "none"
33368 status open
33369
33370 \begin_layout Plain Layout
33371 WARNING:
33372  This portion of the documentation has not been updated for some time.
33373  We certainly hope that it is still accurate,
33374  but there are no guarantees.
33375 \end_layout
33376
33377 \end_inset
33378
33379
33380 \end_layout
33381
33382 \begin_layout Standard
33383 The use of material from sources external to \SpecialChar LyX
33384  is covered in detail in the 
33385 \emph on
33386 Embedded Objects
33387 \emph default
33388  manual.
33389  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
33390 \end_layout
33391
33392 \begin_layout Section
33393 How does it work?
33394 \end_layout
33395
33396 \begin_layout Standard
33397 The external material feature is based on the concept of a 
33398 \emph on
33399 template
33400 \emph default
33401 .
33402  A template is a specification of how \SpecialChar LyX
33403  should interface with a certain kind of material.
33404  As bundled,
33405  \SpecialChar LyX
33406  comes with predefined templates for Xfig figures,
33407  various raster format images,
33408  chess diagrams,
33409  and LilyPond music notation.
33410  You can check the actual list by using the menu 
33411 \begin_inset Flex Noun
33412 status collapsed
33413
33414 \begin_layout Plain Layout
33415 Insert\SpecialChar menuseparator
33416 File\SpecialChar menuseparator
33417 External Material
33418 \end_layout
33419
33420 \end_inset
33421
33422 .
33423  Furthermore,
33424  it is possible to roll your own template to support a specific kind of material.
33425  Later we'll describe in more detail what is involved,
33426  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
33427  version.
33428 \end_layout
33429
33430 \begin_layout Standard
33431 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.
33432  For example,
33433  consider the case of a figure produced with 
33434 \begin_inset Flex Code
33435 status collapsed
33436
33437 \begin_layout Plain Layout
33438 Xfig
33439 \end_layout
33440
33441 \end_inset
33442
33443 .
33444  The Xfig application itself works on an original file with the 
33445 \begin_inset Flex Code
33446 status collapsed
33447
33448 \begin_layout Plain Layout
33449 .fig
33450 \end_layout
33451
33452 \end_inset
33453
33454  extension.
33455  Within Xfig,
33456  you create and change your figure,
33457  and when you are done,
33458  you save the 
33459 \begin_inset Flex Code
33460 status collapsed
33461
33462 \begin_layout Plain Layout
33463 fig
33464 \end_layout
33465
33466 \end_inset
33467
33468 -file.
33469  When you want to include the figure in your document,
33470  you invoke 
33471 \begin_inset Flex Code
33472 status collapsed
33473
33474 \begin_layout Plain Layout
33475 transfig
33476 \end_layout
33477
33478 \end_inset
33479
33480  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
33481  file.
33482  In this case,
33483  the 
33484 \begin_inset Flex Code
33485 status collapsed
33486
33487 \begin_layout Plain Layout
33488 .fig
33489 \end_layout
33490
33491 \end_inset
33492
33493  file is the original file,
33494  and the PostScript file is the produced file.
33495 \end_layout
33496
33497 \begin_layout Standard
33498 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
33499  Furthermore,
33500  it provides us with the flexibility that is needed to support multiple export formats.
33501  For instance,
33502  in the case of a plain text file,
33503  it is not exactly an award-winning idea to include the figure as raw PostScript.
33504  Instead,
33505  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.
33506  The external material management allows you to do this,
33507  because it is parametrized on the different export formats that \SpecialChar LyX
33508  supports.
33509 \end_layout
33510
33511 \begin_layout Standard
33512 Besides supporting the production of different products according to the exported format,
33513  it supports tight integration with editing and viewing applications.
33514  In the case of an Xfig figure,
33515  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
33516 ,
33517  and also preview the produced PostScript file with Ghostview with another click.
33518  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
33519  In this way,
33520  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
33521  and ultimately be more productive.
33522 \end_layout
33523
33524 \begin_layout Section
33525 The external template configuration files
33526 \end_layout
33527
33528 \begin_layout Standard
33529 It is relatively easy to add custom external template definitions to \SpecialChar LyX
33530 .
33531  However,
33532  be aware that doing this in an careless manner most probably 
33533 \emph on
33534 will
33535 \emph default
33536  introduce an easily exploitable security hole.
33537  So before you do this,
33538  please read the discussion about security in 
33539 \begin_inset CommandInset ref
33540 LatexCommand ref
33541 reference "sec:Security-discussion"
33542 nolink "false"
33543
33544 \end_inset
33545
33546 .
33547 \end_layout
33548
33549 \begin_layout Standard
33550 Having said that,
33551  we encourage you to submit any interesting templates that you create.
33552  
33553 \end_layout
33554
33555 \begin_layout Standard
33556 The external templates are defined in the 
33557 \begin_inset Flex Code
33558 status collapsed
33559
33560 \begin_layout Plain Layout
33561 *.xtemplate
33562 \end_layout
33563
33564 \end_inset
33565
33566  files that are stored in the 
33567 \begin_inset Flex Code
33568 status collapsed
33569
33570 \begin_layout Plain Layout
33571 LyXDir/lib/xtemplates/
33572 \end_layout
33573
33574 \end_inset
33575
33576  directory.
33577  Each template is defined in a file of its own.
33578  You can place your own templates in 
33579 \begin_inset Flex Code
33580 status collapsed
33581
33582 \begin_layout Plain Layout
33583 UserDir/xtemplates/
33584 \end_layout
33585
33586 \end_inset
33587
33588  or copy existing templates to that directory in order to modify them.
33589 \end_layout
33590
33591 \begin_layout Standard
33592 A typical template looks like this:
33593 \end_layout
33594
33595 \begin_layout LyX-Code
33596 Template XFig
33597 \end_layout
33598
33599 \begin_layout LyX-Code
33600 GuiName "XFig:
33601  $$AbsOrRelPathParent$$Basename"
33602 \end_layout
33603
33604 \begin_layout LyX-Code
33605 HelpText
33606 \end_layout
33607
33608 \begin_layout LyX-Code
33609 An XFig figure.
33610 \end_layout
33611
33612 \begin_layout LyX-Code
33613 HelpTextEnd
33614 \end_layout
33615
33616 \begin_layout LyX-Code
33617 InputFormat fig
33618 \end_layout
33619
33620 \begin_layout LyX-Code
33621 FileFilter "*.fig"
33622 \end_layout
33623
33624 \begin_layout LyX-Code
33625 AutomaticProduction true
33626 \end_layout
33627
33628 \begin_layout LyX-Code
33629 Transform Rotate
33630 \end_layout
33631
33632 \begin_layout LyX-Code
33633 Transform Resize
33634 \end_layout
33635
33636 \begin_layout LyX-Code
33637 Format LaTeX
33638 \end_layout
33639
33640 \begin_layout LyX-Code
33641 TransformCommand Rotate RotationLatexCommand
33642 \end_layout
33643
33644 \begin_layout LyX-Code
33645 TransformCommand Resize ResizeLatexCommand
33646 \end_layout
33647
33648 \begin_layout LyX-Code
33649 Product "$$RotateFront$$ResizeFront
33650 \end_layout
33651
33652 \begin_layout LyX-Code
33653          
33654 \backslash
33655
33656 \backslash
33657 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
33658 \end_layout
33659
33660 \begin_layout LyX-Code
33661          $$ResizeBack$$RotateBack"
33662 \end_layout
33663
33664 \begin_layout LyX-Code
33665 UpdateFormat pstex
33666 \end_layout
33667
33668 \begin_layout LyX-Code
33669 UpdateResult "$$AbsPath$$Basename.pstex_t"
33670 \end_layout
33671
33672 \begin_layout LyX-Code
33673 Requirement "graphicx"
33674 \end_layout
33675
33676 \begin_layout LyX-Code
33677 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
33678 \end_layout
33679
33680 \begin_layout LyX-Code
33681 ReferencedFile latex "$$AbsPath$$Basename.eps"
33682 \end_layout
33683
33684 \begin_layout LyX-Code
33685 ReferencedFile dvi "$$AbsPath$$Basename.eps"
33686 \end_layout
33687
33688 \begin_layout LyX-Code
33689 FormatEnd
33690 \end_layout
33691
33692 \begin_layout LyX-Code
33693 Format PDFLaTeX
33694 \end_layout
33695
33696 \begin_layout LyX-Code
33697 TransformCommand Rotate RotationLatexCommand
33698 \end_layout
33699
33700 \begin_layout LyX-Code
33701 TransformCommand Resize ResizeLatexCommand
33702 \end_layout
33703
33704 \begin_layout LyX-Code
33705 Product "$$RotateFront$$ResizeFront
33706 \end_layout
33707
33708 \begin_layout LyX-Code
33709          
33710 \backslash
33711
33712 \backslash
33713 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
33714 \end_layout
33715
33716 \begin_layout LyX-Code
33717          $$ResizeBack$$RotateBack"
33718 \end_layout
33719
33720 \begin_layout LyX-Code
33721 UpdateFormat pdftex
33722 \end_layout
33723
33724 \begin_layout LyX-Code
33725 UpdateResult "$$AbsPath$$Basename.pdftex_t"
33726 \end_layout
33727
33728 \begin_layout LyX-Code
33729 Requirement "graphicx"
33730 \end_layout
33731
33732 \begin_layout LyX-Code
33733 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
33734 \end_layout
33735
33736 \begin_layout LyX-Code
33737 ReferencedFile latex "$$AbsPath$$Basename.pdf"
33738 \end_layout
33739
33740 \begin_layout LyX-Code
33741 FormatEnd
33742 \end_layout
33743
33744 \begin_layout LyX-Code
33745 Format Ascii
33746 \end_layout
33747
33748 \begin_layout LyX-Code
33749 Product "[XFig:
33750  $$FName]"
33751 \end_layout
33752
33753 \begin_layout LyX-Code
33754 FormatEnd
33755 \end_layout
33756
33757 \begin_layout LyX-Code
33758 Format DocBook
33759 \end_layout
33760
33761 \begin_layout LyX-Code
33762 Product "<graphic fileref=
33763 \backslash
33764 "$$AbsOrRelPathMaster$$Basename.eps
33765 \backslash
33766 ">
33767 \end_layout
33768
33769 \begin_layout LyX-Code
33770          </graphic>"
33771 \end_layout
33772
33773 \begin_layout LyX-Code
33774 UpdateFormat eps
33775 \end_layout
33776
33777 \begin_layout LyX-Code
33778 UpdateResult "$$AbsPath$$Basename.eps"
33779 \end_layout
33780
33781 \begin_layout LyX-Code
33782 ReferencedFile docbook "$$AbsPath$$Basename.eps"
33783 \end_layout
33784
33785 \begin_layout LyX-Code
33786 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
33787 \end_layout
33788
33789 \begin_layout LyX-Code
33790 FormatEnd
33791 \end_layout
33792
33793 \begin_layout LyX-Code
33794 TemplateEnd
33795 \end_layout
33796
33797 \begin_layout Standard
33798 As you can see,
33799  the template is enclosed in 
33800 \begin_inset Flex Code
33801 status collapsed
33802
33803 \begin_layout Plain Layout
33804 Template
33805 \end_layout
33806
33807 \end_inset
33808
33809  \SpecialChar ldots
33810  
33811 \begin_inset Flex Code
33812 status collapsed
33813
33814 \begin_layout Plain Layout
33815 TemplateEnd
33816 \end_layout
33817
33818 \end_inset
33819
33820 .
33821  It contains a header specifying some general settings and,
33822  for each supported primary document file format,
33823  a section 
33824 \begin_inset Flex Code
33825 status collapsed
33826
33827 \begin_layout Plain Layout
33828 Format
33829 \end_layout
33830
33831 \end_inset
33832
33833  \SpecialChar ldots
33834  
33835 \begin_inset Flex Code
33836 status collapsed
33837
33838 \begin_layout Plain Layout
33839 FormatEnd
33840 \end_layout
33841
33842 \end_inset
33843
33844 .
33845 \end_layout
33846
33847 \begin_layout Subsection
33848 The template header
33849 \end_layout
33850
33851 \begin_layout Description
33852 \begin_inset Flex Code
33853 status collapsed
33854
33855 \begin_layout Plain Layout
33856 AutomaticProduction
33857 \begin_inset space ~
33858 \end_inset
33859
33860 true|false
33861 \end_layout
33862
33863 \end_inset
33864
33865  Whether the file represented by the template must be generated by \SpecialChar LyX
33866 .
33867  This command must occur exactly once.
33868 \end_layout
33869
33870 \begin_layout Description
33871 \begin_inset Flex Code
33872 status collapsed
33873
33874 \begin_layout Plain Layout
33875 FileFilter
33876 \begin_inset space ~
33877 \end_inset
33878
33879 <pattern>
33880 \end_layout
33881
33882 \end_inset
33883
33884  A glob pattern that is used in the file dialog to filter out the desired files.
33885  If there is more than one possible file extension (e.
33886 \begin_inset space \thinspace{}
33887 \end_inset
33888
33889 g.
33890 \begin_inset space \space{}
33891 \end_inset
33892
33893 tgif has 
33894 \begin_inset Flex Code
33895 status collapsed
33896
33897 \begin_layout Plain Layout
33898 .obj
33899 \end_layout
33900
33901 \end_inset
33902
33903  and 
33904 \begin_inset Flex Code
33905 status collapsed
33906
33907 \begin_layout Plain Layout
33908 .tgo
33909 \end_layout
33910
33911 \end_inset
33912
33913 ),
33914  use something like 
33915 \begin_inset Flex Code
33916 status collapsed
33917
33918 \begin_layout Plain Layout
33919 "*.{obj,tgo}"
33920 \end_layout
33921
33922 \end_inset
33923
33924 .
33925  This command must occur exactly once.
33926 \end_layout
33927
33928 \begin_layout Description
33929 \begin_inset Flex Code
33930 status collapsed
33931
33932 \begin_layout Plain Layout
33933 GuiName
33934 \begin_inset space ~
33935 \end_inset
33936
33937 <guiname>
33938 \end_layout
33939
33940 \end_inset
33941
33942  The text that is displayed on the button.
33943  This command must occur exactly once.
33944 \end_layout
33945
33946 \begin_layout Description
33947 \begin_inset Flex Code
33948 status collapsed
33949
33950 \begin_layout Plain Layout
33951 HelpText
33952 \begin_inset space ~
33953 \end_inset
33954
33955 <text>
33956 \begin_inset space ~
33957 \end_inset
33958
33959 HelpTextEnd
33960 \end_layout
33961
33962 \end_inset
33963
33964  The help text that is used in the External dialog.
33965  Provide enough information to explain to the user just what the template can provide him with.
33966  This command must occur exactly once.
33967 \end_layout
33968
33969 \begin_layout Description
33970 \begin_inset Flex Code
33971 status collapsed
33972
33973 \begin_layout Plain Layout
33974 InputFormat
33975 \begin_inset space ~
33976 \end_inset
33977
33978 <format>
33979 \end_layout
33980
33981 \end_inset
33982
33983  The file format of the original file.
33984  This must be the name of a format that is known to \SpecialChar LyX
33985  (see 
33986 \begin_inset CommandInset ref
33987 LatexCommand ref
33988 reference "sec:Formats"
33989 nolink "false"
33990
33991 \end_inset
33992
33993 ).
33994  Use 
33995 \begin_inset Quotes eld
33996 \end_inset
33997
33998
33999 \begin_inset Flex Code
34000 status collapsed
34001
34002 \begin_layout Plain Layout
34003 *
34004 \end_layout
34005
34006 \end_inset
34007
34008
34009 \begin_inset Quotes erd
34010 \end_inset
34011
34012  if the template can handle original files of more than one format.
34013  \SpecialChar LyX
34014  will attempt to interrogate the file itself in order to deduce its format in this case.
34015  This command must occur exactly once.
34016 \end_layout
34017
34018 \begin_layout Description
34019 \begin_inset Flex Code
34020 status collapsed
34021
34022 \begin_layout Plain Layout
34023 Template
34024 \begin_inset space ~
34025 \end_inset
34026
34027 <id>
34028 \end_layout
34029
34030 \end_inset
34031
34032  A unique name for the template.
34033  It must not contain substitution macros (see below).
34034 \end_layout
34035
34036 \begin_layout Description
34037 \begin_inset Flex Code
34038 status collapsed
34039
34040 \begin_layout Plain Layout
34041 Transform
34042 \begin_inset space ~
34043 \end_inset
34044
34045 Rotate|Resize|Clip|Extra
34046 \end_layout
34047
34048 \end_inset
34049
34050  This command specifies which transformations are supported by this template.
34051  It may occur zero or more times.
34052  This command enables the corresponding tabs in the external dialog.
34053  Each 
34054 \begin_inset Flex Code
34055 status collapsed
34056
34057 \begin_layout Plain Layout
34058 Transform
34059 \end_layout
34060
34061 \end_inset
34062
34063  command must have either a corresponding 
34064 \begin_inset Flex Code
34065 status collapsed
34066
34067 \begin_layout Plain Layout
34068 TransformCommand
34069 \end_layout
34070
34071 \end_inset
34072
34073  or a 
34074 \begin_inset Flex Code
34075 status collapsed
34076
34077 \begin_layout Plain Layout
34078 TransformOption
34079 \end_layout
34080
34081 \end_inset
34082
34083  command in the 
34084 \begin_inset Flex Code
34085 status collapsed
34086
34087 \begin_layout Plain Layout
34088 Format
34089 \end_layout
34090
34091 \end_inset
34092
34093  section.
34094  Otherwise the transformation will not be supported by that format.
34095 \end_layout
34096
34097 \begin_layout Subsection
34098 The Format section
34099 \end_layout
34100
34101 \begin_layout Description
34102 \begin_inset Flex Code
34103 status collapsed
34104
34105 \begin_layout Plain Layout
34106 Format
34107 \begin_inset space ~
34108 \end_inset
34109
34110 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
34111 \end_layout
34112
34113 \end_inset
34114
34115  The primary document file format that this format definition is for.
34116  Not every template has a sensible representation in all document file formats.
34117  Please define nevertheless a 
34118 \begin_inset Flex Code
34119 status collapsed
34120
34121 \begin_layout Plain Layout
34122 Format
34123 \end_layout
34124
34125 \end_inset
34126
34127  section for all templates.
34128  Use a dummy text when no representation is available.
34129  Then you can at least see a reference to the external material in the exported document.
34130 \end_layout
34131
34132 \begin_layout Description
34133 \begin_inset Flex Code
34134 status collapsed
34135
34136 \begin_layout Plain Layout
34137 Option
34138 \begin_inset space ~
34139 \end_inset
34140
34141 <name>
34142 \begin_inset space ~
34143 \end_inset
34144
34145 <value>
34146 \end_layout
34147
34148 \end_inset
34149
34150  This command defines an additional macro 
34151 \begin_inset Flex Code
34152 status collapsed
34153
34154 \begin_layout Plain Layout
34155 $$<name>
34156 \end_layout
34157
34158 \end_inset
34159
34160  for substitution in 
34161 \begin_inset Flex Code
34162 status collapsed
34163
34164 \begin_layout Plain Layout
34165 Product
34166 \end_layout
34167
34168 \end_inset
34169
34170 .
34171  
34172 \begin_inset Flex Code
34173 status collapsed
34174
34175 \begin_layout Plain Layout
34176 <value>
34177 \end_layout
34178
34179 \end_inset
34180
34181  itself may contain substitution macros.
34182  The advantage over using 
34183 \begin_inset Flex Code
34184 status collapsed
34185
34186 \begin_layout Plain Layout
34187 <value>
34188 \end_layout
34189
34190 \end_inset
34191
34192  directly in 
34193 \begin_inset Flex Code
34194 status collapsed
34195
34196 \begin_layout Plain Layout
34197 Product
34198 \end_layout
34199
34200 \end_inset
34201
34202  is that the substituted value of 
34203 \begin_inset Flex Code
34204 status collapsed
34205
34206 \begin_layout Plain Layout
34207 $$<name>
34208 \end_layout
34209
34210 \end_inset
34211
34212  is sanitized so that it is a valid optional argument in the document format.
34213  This command may occur zero or more times.
34214 \end_layout
34215
34216 \begin_layout Description
34217 \begin_inset Flex Code
34218 status collapsed
34219
34220 \begin_layout Plain Layout
34221 Product
34222 \begin_inset space ~
34223 \end_inset
34224
34225 <text>
34226 \end_layout
34227
34228 \end_inset
34229
34230  The text that is inserted in the exported document.
34231  This is actually the most important command and can be quite complex.
34232  This command must occur exactly once.
34233 \end_layout
34234
34235 \begin_layout Description
34236 \begin_inset Flex Code
34237 status collapsed
34238
34239 \begin_layout Plain Layout
34240 Preamble
34241 \begin_inset space ~
34242 \end_inset
34243
34244 <name>
34245 \end_layout
34246
34247 \end_inset
34248
34249  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
34250  preamble.
34251  It has to be defined using 
34252 \begin_inset Flex Code
34253 status collapsed
34254
34255 \begin_layout Plain Layout
34256 PreambleDef
34257 \end_layout
34258
34259 \end_inset
34260
34261  \SpecialChar ldots
34262  
34263 \begin_inset Flex Code
34264 status collapsed
34265
34266 \begin_layout Plain Layout
34267 PreambleDefEnd
34268 \end_layout
34269
34270 \end_inset
34271
34272 .
34273  This command may occur zero or more times.
34274 \end_layout
34275
34276 \begin_layout Description
34277 \begin_inset Flex Code
34278 status collapsed
34279
34280 \begin_layout Plain Layout
34281 ReferencedFile
34282 \begin_inset space ~
34283 \end_inset
34284
34285 <format>
34286 \begin_inset space ~
34287 \end_inset
34288
34289 <filename>
34290 \end_layout
34291
34292 \end_inset
34293
34294  This command denotes files that are created by the conversion process and are needed for a particular export format.
34295  If the filename is relative,
34296  it is interpreted relative to the master document.
34297  This command may be given zero or more times.
34298 \end_layout
34299
34300 \begin_layout Description
34301 \begin_inset Flex Code
34302 status collapsed
34303
34304 \begin_layout Plain Layout
34305 Requirement
34306 \begin_inset space ~
34307 \end_inset
34308
34309 <package>
34310 \end_layout
34311
34312 \end_inset
34313
34314  The name of a required \SpecialChar LaTeX
34315  package.
34316  The package is included via 
34317 \begin_inset Flex Code
34318 status collapsed
34319
34320 \begin_layout Plain Layout
34321
34322 \backslash
34323 usepackage{}
34324 \end_layout
34325
34326 \end_inset
34327
34328  in the \SpecialChar LaTeX
34329  preamble.
34330  This command may occur zero or more times.
34331 \end_layout
34332
34333 \begin_layout Description
34334 \begin_inset Flex Code
34335 status collapsed
34336
34337 \begin_layout Plain Layout
34338 TransformCommand
34339 \begin_inset space ~
34340 \end_inset
34341
34342 Rotate
34343 \begin_inset space ~
34344 \end_inset
34345
34346 RotationLatexCommand
34347 \end_layout
34348
34349 \end_inset
34350
34351  This command specifies that the built in \SpecialChar LaTeX
34352  command should be used for rotation.
34353  This command may occur once or not at all.
34354 \end_layout
34355
34356 \begin_layout Description
34357 \begin_inset Flex Code
34358 status collapsed
34359
34360 \begin_layout Plain Layout
34361 TransformCommand
34362 \begin_inset space ~
34363 \end_inset
34364
34365 Resize
34366 \begin_inset space ~
34367 \end_inset
34368
34369 ResizeLatexCommand
34370 \end_layout
34371
34372 \end_inset
34373
34374  This command specifies that the built in \SpecialChar LaTeX
34375  command should be used for resizing.
34376  This command may occur once or not at all.
34377 \end_layout
34378
34379 \begin_layout Description
34380 \begin_inset Flex Code
34381 status collapsed
34382
34383 \begin_layout Plain Layout
34384 TransformOption
34385 \begin_inset space ~
34386 \end_inset
34387
34388 Rotate
34389 \begin_inset space ~
34390 \end_inset
34391
34392 RotationLatexOption
34393 \end_layout
34394
34395 \end_inset
34396
34397  This command specifies that rotation is done via an optional argument.
34398  This command may occur once or not at all.
34399 \end_layout
34400
34401 \begin_layout Description
34402 \begin_inset Flex Code
34403 status collapsed
34404
34405 \begin_layout Plain Layout
34406 TransformOption
34407 \begin_inset space ~
34408 \end_inset
34409
34410 Resize
34411 \begin_inset space ~
34412 \end_inset
34413
34414 ResizeLatexOption
34415 \end_layout
34416
34417 \end_inset
34418
34419  This command specifies that resizing is done via an optional argument.
34420  This command may occur once or not at all.
34421 \end_layout
34422
34423 \begin_layout Description
34424 \begin_inset Flex Code
34425 status collapsed
34426
34427 \begin_layout Plain Layout
34428 TransformOption
34429 \begin_inset space ~
34430 \end_inset
34431
34432 Clip
34433 \begin_inset space ~
34434 \end_inset
34435
34436 ClipLatexOption
34437 \end_layout
34438
34439 \end_inset
34440
34441  This command specifies that clipping is done via an optional argument.
34442  This command may occur once or not at all.
34443 \end_layout
34444
34445 \begin_layout Description
34446 \begin_inset Flex Code
34447 status collapsed
34448
34449 \begin_layout Plain Layout
34450 TransformOption
34451 \begin_inset space ~
34452 \end_inset
34453
34454 Extra
34455 \begin_inset space ~
34456 \end_inset
34457
34458 ExtraLatexOption
34459 \end_layout
34460
34461 \end_inset
34462
34463  This command specifies that an extra optional argument is used.
34464  This command may occur once or not at all.
34465 \end_layout
34466
34467 \begin_layout Description
34468 \begin_inset Flex Code
34469 status collapsed
34470
34471 \begin_layout Plain Layout
34472 UpdateFormat
34473 \begin_inset space ~
34474 \end_inset
34475
34476 <format>
34477 \end_layout
34478
34479 \end_inset
34480
34481  The file format of the converted file.
34482  This must be the name of a format that is known to \SpecialChar LyX
34483  (see the 
34484 \begin_inset Flex Noun
34485 status collapsed
34486
34487 \begin_layout Plain Layout
34488 Tools\SpecialChar menuseparator
34489 Preferences\SpecialChar menuseparator
34490 File Handling\SpecialChar menuseparator
34491 File Format
34492 \end_layout
34493
34494 \end_inset
34495
34496  dialog).
34497  This command must occur exactly once.
34498  If the resulting file format is PDF,
34499  you need to specify the format 
34500 \begin_inset Flex Code
34501 status collapsed
34502
34503 \begin_layout Plain Layout
34504 pdf6
34505 \end_layout
34506
34507 \end_inset
34508
34509 .
34510  This is the PDF format used for including graphics.
34511  The other defined PDF formats are for document export.
34512 \end_layout
34513
34514 \begin_layout Description
34515 \begin_inset Flex Code
34516 status collapsed
34517
34518 \begin_layout Plain Layout
34519 UpdateResult
34520 \begin_inset space ~
34521 \end_inset
34522
34523 <filename>
34524 \end_layout
34525
34526 \end_inset
34527
34528  The file name of the converted file.
34529  The file name must be absolute.
34530  This command must occur exactly once.
34531 \end_layout
34532
34533 \begin_layout Subsection
34534 Preamble definitions
34535 \end_layout
34536
34537 \begin_layout Standard
34538 The external template configuration file may contain additional preamble definitions enclosed by 
34539 \begin_inset Flex Code
34540 status collapsed
34541
34542 \begin_layout Plain Layout
34543 PreambleDef
34544 \end_layout
34545
34546 \end_inset
34547
34548  \SpecialChar ldots
34549  
34550 \begin_inset Flex Code
34551 status collapsed
34552
34553 \begin_layout Plain Layout
34554 PreambleDefEnd
34555 \end_layout
34556
34557 \end_inset
34558
34559 .
34560  They can be used by the templates in the 
34561 \begin_inset Flex Code
34562 status collapsed
34563
34564 \begin_layout Plain Layout
34565 Format
34566 \end_layout
34567
34568 \end_inset
34569
34570  section.
34571 \end_layout
34572
34573 \begin_layout Section
34574 The substitution mechanism
34575 \end_layout
34576
34577 \begin_layout Standard
34578 When the external material facility invokes an external program,
34579  it is done on the basis of a command defined in the template configuration file.
34580  These commands can contain various macros that are expanded before execution.
34581  Execution always take place in the directory of the containing document.
34582 \end_layout
34583
34584 \begin_layout Standard
34585 Also,
34586  whenever external material is to be displayed,
34587  the name will be produced by the substitution mechanism,
34588  and most other commands in the template definition support substitution as well.
34589 \end_layout
34590
34591 \begin_layout Standard
34592 The available macros are the following:
34593 \end_layout
34594
34595 \begin_layout Description
34596 \begin_inset Flex Code
34597 status collapsed
34598
34599 \begin_layout Plain Layout
34600 $$AbsOrRelPathMaster
34601 \end_layout
34602
34603 \end_inset
34604
34605  The file path,
34606  absolute or relative to the master \SpecialChar LyX
34607  document.
34608 \end_layout
34609
34610 \begin_layout Description
34611 \begin_inset Flex Code
34612 status collapsed
34613
34614 \begin_layout Plain Layout
34615 $$AbsOrRelPathParent
34616 \end_layout
34617
34618 \end_inset
34619
34620  The file path,
34621  absolute or relative to the \SpecialChar LyX
34622  document.
34623 \end_layout
34624
34625 \begin_layout Description
34626 \begin_inset Flex Code
34627 status collapsed
34628
34629 \begin_layout Plain Layout
34630 $$AbsPath
34631 \end_layout
34632
34633 \end_inset
34634
34635  The absolute file path.
34636 \end_layout
34637
34638 \begin_layout Description
34639 \begin_inset Flex Code
34640 status collapsed
34641
34642 \begin_layout Plain Layout
34643 $$Basename
34644 \end_layout
34645
34646 \end_inset
34647
34648  The filename without path and without the extension.
34649 \end_layout
34650
34651 \begin_layout Description
34652 \begin_inset Flex Code
34653 status collapsed
34654
34655 \begin_layout Plain Layout
34656 $$Contents(
34657 \begin_inset Quotes eld
34658 \end_inset
34659
34660 filename.ext
34661 \begin_inset Quotes erd
34662 \end_inset
34663
34664 )
34665 \end_layout
34666
34667 \end_inset
34668
34669  This macro will expand to the contents of the file with the name 
34670 \begin_inset Flex Code
34671 status collapsed
34672
34673 \begin_layout Plain Layout
34674 filename.ext
34675 \end_layout
34676
34677 \end_inset
34678
34679 .
34680 \end_layout
34681
34682 \begin_layout Description
34683 \begin_inset Flex Code
34684 status collapsed
34685
34686 \begin_layout Plain Layout
34687 $$Extension
34688 \end_layout
34689
34690 \end_inset
34691
34692  The file extension (including the dot).
34693 \end_layout
34694
34695 \begin_layout Description
34696 \begin_inset Flex Code
34697 status collapsed
34698
34699 \begin_layout Plain Layout
34700 $$pngOrjpg
34701 \end_layout
34702
34703 \end_inset
34704
34705  This will be the string 
34706 \begin_inset Quotes eld
34707 \end_inset
34708
34709 jpg
34710 \begin_inset Quotes erd
34711 \end_inset
34712
34713  if the file is in JPEG format,
34714  otherwise it will be the string 
34715 \begin_inset Quotes eld
34716 \end_inset
34717
34718 png
34719 \begin_inset Quotes erd
34720 \end_inset
34721
34722 .
34723  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
34724  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
34725  output format.
34726 \end_layout
34727
34728 \begin_layout Description
34729 \begin_inset Flex Code
34730 status collapsed
34731
34732 \begin_layout Plain Layout
34733 $$FName
34734 \end_layout
34735
34736 \end_inset
34737
34738  The filename of the file specified in the external material dialog.
34739  This is either an absolute name,
34740  or it is relative to the \SpecialChar LyX
34741  document.
34742 \end_layout
34743
34744 \begin_layout Description
34745 \begin_inset Flex Code
34746 status collapsed
34747
34748 \begin_layout Plain Layout
34749 $$FPath
34750 \end_layout
34751
34752 \end_inset
34753
34754  The path part of 
34755 \begin_inset Flex Code
34756 status collapsed
34757
34758 \begin_layout Plain Layout
34759 $$FName
34760 \end_layout
34761
34762 \end_inset
34763
34764  (absolute name or relative to the \SpecialChar LyX
34765  document).
34766 \end_layout
34767
34768 \begin_layout Description
34769 \begin_inset Flex Code
34770 status collapsed
34771
34772 \begin_layout Plain Layout
34773 $$RelPathMaster
34774 \end_layout
34775
34776 \end_inset
34777
34778  The file path,
34779  relative to the master \SpecialChar LyX
34780  document.
34781 \end_layout
34782
34783 \begin_layout Description
34784 \begin_inset Flex Code
34785 status collapsed
34786
34787 \begin_layout Plain Layout
34788 $$RelPathParent
34789 \end_layout
34790
34791 \end_inset
34792
34793  The file path,
34794  relative to the \SpecialChar LyX
34795  document.
34796 \end_layout
34797
34798 \begin_layout Description
34799 \begin_inset Flex Code
34800 status collapsed
34801
34802 \begin_layout Plain Layout
34803 $$Sysdir
34804 \end_layout
34805
34806 \end_inset
34807
34808  This macro will expand to the absolute path of the system directory.
34809  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
34810 .
34811 \end_layout
34812
34813 \begin_layout Description
34814 \begin_inset Flex Code
34815 status collapsed
34816
34817 \begin_layout Plain Layout
34818 $$Tempname
34819 \end_layout
34820
34821 \end_inset
34822
34823  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
34824  or the external material insertion deleted.
34825 \end_layout
34826
34827 \begin_layout Standard
34828 All path macros contain a trailing directory separator,
34829  so you can construct e.
34830 \begin_inset space \thinspace{}
34831 \end_inset
34832
34833 g.
34834 \begin_inset space \space{}
34835 \end_inset
34836
34837 the absolute filename with 
34838 \begin_inset Flex Code
34839 status collapsed
34840
34841 \begin_layout Plain Layout
34842 $$AbsPath$$Basename$$Extension
34843 \end_layout
34844
34845 \end_inset
34846
34847 .
34848 \end_layout
34849
34850 \begin_layout Standard
34851 The macros above are substituted in all commands unless otherwise noted.
34852  The command 
34853 \begin_inset Flex Code
34854 status collapsed
34855
34856 \begin_layout Plain Layout
34857 Product
34858 \end_layout
34859
34860 \end_inset
34861
34862  supports additionally the following substitutions if they are enabled by the 
34863 \begin_inset Flex Code
34864 status collapsed
34865
34866 \begin_layout Plain Layout
34867 Transform
34868 \end_layout
34869
34870 \end_inset
34871
34872  and 
34873 \begin_inset Flex Code
34874 status collapsed
34875
34876 \begin_layout Plain Layout
34877 TransformCommand
34878 \end_layout
34879
34880 \end_inset
34881
34882  commands:
34883 \end_layout
34884
34885 \begin_layout Description
34886 \begin_inset Flex Code
34887 status collapsed
34888
34889 \begin_layout Plain Layout
34890 $$ResizeFront
34891 \end_layout
34892
34893 \end_inset
34894
34895  The front part of the resize command.
34896 \end_layout
34897
34898 \begin_layout Description
34899 \begin_inset Flex Code
34900 status collapsed
34901
34902 \begin_layout Plain Layout
34903 $$ResizeBack
34904 \end_layout
34905
34906 \end_inset
34907
34908  The back part of the resize command.
34909 \end_layout
34910
34911 \begin_layout Description
34912 \begin_inset Flex Code
34913 status collapsed
34914
34915 \begin_layout Plain Layout
34916 $$RotateFront
34917 \end_layout
34918
34919 \end_inset
34920
34921  The front part of the rotation command.
34922 \end_layout
34923
34924 \begin_layout Description
34925 \begin_inset Flex Code
34926 status collapsed
34927
34928 \begin_layout Plain Layout
34929 $$RotateBack
34930 \end_layout
34931
34932 \end_inset
34933
34934  The back part of the rotation command.
34935 \end_layout
34936
34937 \begin_layout Standard
34938 The value string of the 
34939 \begin_inset Flex Code
34940 status collapsed
34941
34942 \begin_layout Plain Layout
34943 Option
34944 \end_layout
34945
34946 \end_inset
34947
34948  command supports additionally the following substitutions if they are enabled by the 
34949 \begin_inset Flex Code
34950 status collapsed
34951
34952 \begin_layout Plain Layout
34953 Transform
34954 \end_layout
34955
34956 \end_inset
34957
34958  and 
34959 \begin_inset Flex Code
34960 status collapsed
34961
34962 \begin_layout Plain Layout
34963 TransformOption
34964 \end_layout
34965
34966 \end_inset
34967
34968  commands:
34969 \end_layout
34970
34971 \begin_layout Description
34972 \begin_inset Flex Code
34973 status collapsed
34974
34975 \begin_layout Plain Layout
34976 $$Clip
34977 \end_layout
34978
34979 \end_inset
34980
34981  The clip option.
34982 \end_layout
34983
34984 \begin_layout Description
34985 \begin_inset Flex Code
34986 status collapsed
34987
34988 \begin_layout Plain Layout
34989 $$Extra
34990 \end_layout
34991
34992 \end_inset
34993
34994  The extra option.
34995 \end_layout
34996
34997 \begin_layout Description
34998 \begin_inset Flex Code
34999 status collapsed
35000
35001 \begin_layout Plain Layout
35002 $$Resize
35003 \end_layout
35004
35005 \end_inset
35006
35007  The resize option.
35008 \end_layout
35009
35010 \begin_layout Description
35011 \begin_inset Flex Code
35012 status collapsed
35013
35014 \begin_layout Plain Layout
35015 $$Rotate
35016 \end_layout
35017
35018 \end_inset
35019
35020  The rotation option.
35021 \end_layout
35022
35023 \begin_layout Standard
35024 You may ask why there are so many path macros.
35025  There are mainly two reasons:
35026 \end_layout
35027
35028 \begin_layout Enumerate
35029 Relative and absolute file names should remain relative or absolute,
35030  respectively.
35031  Users may have reasons to prefer either form.
35032  Relative names are useful for portable documents that should work on different machines,
35033  for example.
35034  Absolute names may be required by some programs.
35035 \end_layout
35036
35037 \begin_layout Enumerate
35038 \SpecialChar LaTeX
35039  treats relative file names differently than \SpecialChar LyX
35040  and other programs in nested included files.
35041  For \SpecialChar LyX
35042 ,
35043  a relative file name is always relative to the document that contains the file name.
35044  For \SpecialChar LaTeX
35045 ,
35046  it is always relative to the master document.
35047  These two definitions are identical if you have only one document,
35048  but differ if you have a master document that includes part documents.
35049  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
35050 .
35051  Fortunately \SpecialChar LyX
35052  does this automatically for you if you choose the right macros.
35053 \end_layout
35054
35055 \begin_layout Standard
35056 So which path macro should be used in new template definitions?
35057  The rule is not difficult:
35058 \end_layout
35059
35060 \begin_layout Itemize
35061 Use 
35062 \begin_inset Flex Code
35063 status collapsed
35064
35065 \begin_layout Plain Layout
35066 $$AbsPath
35067 \end_layout
35068
35069 \end_inset
35070
35071  if an absolute path is required.
35072 \end_layout
35073
35074 \begin_layout Itemize
35075 Use 
35076 \begin_inset Flex Code
35077 status collapsed
35078
35079 \begin_layout Plain Layout
35080 $$AbsOrRelPathMaster
35081 \end_layout
35082
35083 \end_inset
35084
35085  if the substituted string is some kind of \SpecialChar LaTeX
35086  input.
35087 \end_layout
35088
35089 \begin_layout Itemize
35090 Else use 
35091 \begin_inset Flex Code
35092 status collapsed
35093
35094 \begin_layout Plain Layout
35095 $$AbsOrRelPathParent
35096 \end_layout
35097
35098 \end_inset
35099
35100  in order to preserve the user's choice.
35101 \end_layout
35102
35103 \begin_layout Standard
35104 There are special cases where this rule does not work and e.
35105 \begin_inset space \thinspace{}
35106 \end_inset
35107
35108 g.
35109 \begin_inset space \space{}
35110 \end_inset
35111
35112 relative names are needed,
35113  but normally it will work just fine.
35114  One example for such a case is the command 
35115 \begin_inset Flex Code
35116 status collapsed
35117
35118 \begin_layout Plain Layout
35119 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
35120 \end_layout
35121
35122 \end_inset
35123
35124  in the XFig template above:
35125  We can't use the absolute name because the copier for 
35126 \begin_inset Flex Code
35127 status collapsed
35128
35129 \begin_layout Plain Layout
35130 .pstex_t
35131 \end_layout
35132
35133 \end_inset
35134
35135  files needs the relative name in order to rewrite the file content.
35136 \end_layout
35137
35138 \begin_layout Section
35139 Security discussion
35140 \begin_inset CommandInset label
35141 LatexCommand label
35142 name "sec:Security-discussion"
35143
35144 \end_inset
35145
35146
35147 \end_layout
35148
35149 \begin_layout Standard
35150 The external material feature interfaces with a lot of external programs and does so automatically,
35151  so we have to consider the security implications of this.
35152  In particular,
35153  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
35154  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
35155  This is something we definitely want to avoid.
35156 \end_layout
35157
35158 \begin_layout Standard
35159 However,
35160  since the external program commands are specified in the template configuration file only,
35161  there are no security issues if \SpecialChar LyX
35162  is properly configured with safe templates only.
35163  This is so because the external programs are invoked with the 
35164 \begin_inset Flex Code
35165 status collapsed
35166
35167 \begin_layout Plain Layout
35168 execvp
35169 \end_layout
35170
35171 \end_inset
35172
35173 -system call rather than the 
35174 \begin_inset Flex Code
35175 status collapsed
35176
35177 \begin_layout Plain Layout
35178 system
35179 \end_layout
35180
35181 \end_inset
35182
35183  system-call,
35184  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
35185 \end_layout
35186
35187 \begin_layout Standard
35188 This also implies that you are restricted in what command strings you can use in the external material templates.
35189  In particular,
35190  pipes and redirection are not readily available.
35191  This has to be so if \SpecialChar LyX
35192  should remain safe.
35193  If you want to use some of the shell features,
35194  you should write a safe script to do this in a controlled manner,
35195  and then invoke the script from the command string.
35196  
35197 \end_layout
35198
35199 \begin_layout Standard
35200 It is possible to design a template that interacts directly with the shell,
35201  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
35202  we generally recommend that you only use safe scripts that work with the 
35203 \begin_inset Flex Code
35204 status collapsed
35205
35206 \begin_layout Plain Layout
35207 execvp
35208 \end_layout
35209
35210 \end_inset
35211
35212  system call in a controlled manner.
35213  Of course,
35214  for use in a controlled environment,
35215  it can be tempting to just fall back to use ordinary shell scripts.
35216  If you do so,
35217  be aware that you 
35218 \emph on
35219 will
35220 \emph default
35221  provide an easily exploitable security hole in your system.
35222  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
35223  distribution,
35224  although we do encourage people to submit new templates in the open source tradition.
35225  But \SpecialChar LyX
35226  as shipped from the official distribution channels will never have unsafe templates.
35227 \end_layout
35228
35229 \begin_layout Standard
35230 Including external material provides a lot of power,
35231  and you have to be careful not to introduce security hazards with this power.
35232  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
35233  So if you do not fully understand the issues,
35234  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
35235  development team if you have any questions about whether a given template is safe or not.
35236  And do this before you use it in an uncontrolled environment.
35237 \end_layout
35238
35239 \begin_layout Chapter
35240 \start_of_appendix
35241 List of supported \SpecialChar LyX
35242  functions to be used in layouts
35243 \begin_inset CommandInset label
35244 LatexCommand label
35245 name "chap:List-of-functions"
35246
35247 \end_inset
35248
35249
35250 \end_layout
35251
35252 \begin_layout Standard
35253 \align center
35254 \begin_inset Tabular
35255 <lyxtabular version="3" rows="11" columns="8">
35256 <features tabularvalignment="middle">
35257 <column alignment="left" valignment="top">
35258 <column alignment="left" valignment="top">
35259 <column alignment="left" valignment="top">
35260 <column alignment="left" valignment="top">
35261 <column alignment="left" valignment="top">
35262 <column alignment="left" valignment="top">
35263 <column alignment="left" valignment="top">
35264 <column alignment="left" valignment="top">
35265 <row>
35266 <cell alignment="left" valignment="top" usebox="none">
35267 \begin_inset Text
35268
35269 \begin_layout Plain Layout
35270 accents
35271 \end_layout
35272
35273 \end_inset
35274 </cell>
35275 <cell alignment="left" valignment="top" usebox="none">
35276 \begin_inset Text
35277
35278 \begin_layout Plain Layout
35279 booktabs
35280 \end_layout
35281
35282 \end_inset
35283 </cell>
35284 <cell alignment="left" valignment="top" usebox="none">
35285 \begin_inset Text
35286
35287 \begin_layout Plain Layout
35288 feyn
35289 \end_layout
35290
35291 \end_inset
35292 </cell>
35293 <cell alignment="left" valignment="top" usebox="none">
35294 \begin_inset Text
35295
35296 \begin_layout Plain Layout
35297 listings
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 natbib
35307 \end_layout
35308
35309 \end_inset
35310 </cell>
35311 <cell alignment="center" valignment="top" usebox="none">
35312 \begin_inset Text
35313
35314 \begin_layout Plain Layout
35315 rotfloat
35316 \end_layout
35317
35318 \end_inset
35319 </cell>
35320 <cell alignment="center" valignment="top" usebox="none">
35321 \begin_inset Text
35322
35323 \begin_layout Plain Layout
35324 tfrupee
35325 \end_layout
35326
35327 \end_inset
35328 </cell>
35329 <cell alignment="center" valignment="top" usebox="none">
35330 \begin_inset Text
35331
35332 \begin_layout Plain Layout
35333 wasysym
35334 \end_layout
35335
35336 \end_inset
35337 </cell>
35338 </row>
35339 <row>
35340 <cell alignment="left" valignment="top" usebox="none">
35341 \begin_inset Text
35342
35343 \begin_layout Plain Layout
35344 amsbsy
35345 \end_layout
35346
35347 \end_inset
35348 </cell>
35349 <cell alignment="left" valignment="top" usebox="none">
35350 \begin_inset Text
35351
35352 \begin_layout Plain Layout
35353 calc
35354 \end_layout
35355
35356 \end_inset
35357 </cell>
35358 <cell alignment="left" valignment="top" usebox="none">
35359 \begin_inset Text
35360
35361 \begin_layout Plain Layout
35362 fixltx2e
35363 \end_layout
35364
35365 \end_inset
35366 </cell>
35367 <cell alignment="left" valignment="top" usebox="none">
35368 \begin_inset Text
35369
35370 \begin_layout Plain Layout
35371 longtable
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 nomencl
35381 \end_layout
35382
35383 \end_inset
35384 </cell>
35385 <cell alignment="center" valignment="top" usebox="none">
35386 \begin_inset Text
35387
35388 \begin_layout Plain Layout
35389 rsphrase
35390 \end_layout
35391
35392 \end_inset
35393 </cell>
35394 <cell alignment="center" valignment="top" usebox="none">
35395 \begin_inset Text
35396
35397 \begin_layout Plain Layout
35398 tipa
35399 \end_layout
35400
35401 \end_inset
35402 </cell>
35403 <cell alignment="center" valignment="top" usebox="none">
35404 \begin_inset Text
35405
35406 \begin_layout Plain Layout
35407 wrapfig
35408 \end_layout
35409
35410 \end_inset
35411 </cell>
35412 </row>
35413 <row>
35414 <cell alignment="left" valignment="top" usebox="none">
35415 \begin_inset Text
35416
35417 \begin_layout Plain Layout
35418 amscd
35419 \end_layout
35420
35421 \end_inset
35422 </cell>
35423 <cell alignment="left" valignment="top" usebox="none">
35424 \begin_inset Text
35425
35426 \begin_layout Plain Layout
35427 CJK
35428 \end_layout
35429
35430 \end_inset
35431 </cell>
35432 <cell alignment="left" valignment="top" usebox="none">
35433 \begin_inset Text
35434
35435 \begin_layout Plain Layout
35436 float
35437 \end_layout
35438
35439 \end_inset
35440 </cell>
35441 <cell alignment="left" valignment="top" usebox="none">
35442 \begin_inset Text
35443
35444 \begin_layout Plain Layout
35445 lyxskak
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 pdfcolmk
35455 \end_layout
35456
35457 \end_inset
35458 </cell>
35459 <cell alignment="center" valignment="top" usebox="none">
35460 \begin_inset Text
35461
35462 \begin_layout Plain Layout
35463 setspace
35464 \end_layout
35465
35466 \end_inset
35467 </cell>
35468 <cell alignment="center" valignment="top" usebox="none">
35469 \begin_inset Text
35470
35471 \begin_layout Plain Layout
35472 tipx
35473 \end_layout
35474
35475 \end_inset
35476 </cell>
35477 <cell alignment="center" valignment="top" usebox="none">
35478 \begin_inset Text
35479
35480 \begin_layout Plain Layout
35481 xargs
35482 \end_layout
35483
35484 \end_inset
35485 </cell>
35486 </row>
35487 <row>
35488 <cell alignment="left" valignment="top" usebox="none">
35489 \begin_inset Text
35490
35491 \begin_layout Plain Layout
35492 amsmath
35493 \end_layout
35494
35495 \end_inset
35496 </cell>
35497 <cell alignment="left" valignment="top" usebox="none">
35498 \begin_inset Text
35499
35500 \begin_layout Plain Layout
35501 color
35502 \end_layout
35503
35504 \end_inset
35505 </cell>
35506 <cell alignment="left" valignment="top" usebox="none">
35507 \begin_inset Text
35508
35509 \begin_layout Plain Layout
35510 framed
35511 \end_layout
35512
35513 \end_inset
35514 </cell>
35515 <cell alignment="left" valignment="top" usebox="none">
35516 \begin_inset Text
35517
35518 \begin_layout Plain Layout
35519 makeidx
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 pdfpages
35529 \end_layout
35530
35531 \end_inset
35532 </cell>
35533 <cell alignment="center" valignment="top" usebox="none">
35534 \begin_inset Text
35535
35536 \begin_layout Plain Layout
35537 shapepar
35538 \end_layout
35539
35540 \end_inset
35541 </cell>
35542 <cell alignment="center" valignment="top" usebox="none">
35543 \begin_inset Text
35544
35545 \begin_layout Plain Layout
35546 tone
35547 \end_layout
35548
35549 \end_inset
35550 </cell>
35551 <cell alignment="center" valignment="top" usebox="none">
35552 \begin_inset Text
35553
35554 \begin_layout Plain Layout
35555 xcolor
35556 \end_layout
35557
35558 \end_inset
35559 </cell>
35560 </row>
35561 <row>
35562 <cell alignment="left" valignment="top" usebox="none">
35563 \begin_inset Text
35564
35565 \begin_layout Plain Layout
35566 amssymb
35567 \end_layout
35568
35569 \end_inset
35570 </cell>
35571 <cell alignment="left" valignment="top" usebox="none">
35572 \begin_inset Text
35573
35574 \begin_layout Plain Layout
35575 covington
35576 \end_layout
35577
35578 \end_inset
35579 </cell>
35580 <cell alignment="left" valignment="top" usebox="none">
35581 \begin_inset Text
35582
35583 \begin_layout Plain Layout
35584 graphicx
35585 \end_layout
35586
35587 \end_inset
35588 </cell>
35589 <cell alignment="left" valignment="top" usebox="none">
35590 \begin_inset Text
35591
35592 \begin_layout Plain Layout
35593 marvosym
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 pifont
35603 \end_layout
35604
35605 \end_inset
35606 </cell>
35607 <cell alignment="center" valignment="top" usebox="none">
35608 \begin_inset Text
35609
35610 \begin_layout Plain Layout
35611 slashed
35612 \end_layout
35613
35614 \end_inset
35615 </cell>
35616 <cell alignment="center" valignment="top" usebox="none">
35617 \begin_inset Text
35618
35619 \begin_layout Plain Layout
35620 txfonts
35621 \end_layout
35622
35623 \end_inset
35624 </cell>
35625 <cell alignment="center" valignment="top" usebox="none">
35626 \begin_inset Text
35627
35628 \begin_layout Plain Layout
35629 xy
35630 \end_layout
35631
35632 \end_inset
35633 </cell>
35634 </row>
35635 <row>
35636 <cell alignment="left" valignment="top" usebox="none">
35637 \begin_inset Text
35638
35639 \begin_layout Plain Layout
35640 amstext
35641 \end_layout
35642
35643 \end_inset
35644 </cell>
35645 <cell alignment="left" valignment="top" usebox="none">
35646 \begin_inset Text
35647
35648 \begin_layout Plain Layout
35649 csquotes
35650 \end_layout
35651
35652 \end_inset
35653 </cell>
35654 <cell alignment="left" valignment="top" usebox="none">
35655 \begin_inset Text
35656
35657 \begin_layout Plain Layout
35658 hhline
35659 \end_layout
35660
35661 \end_inset
35662 </cell>
35663 <cell alignment="left" valignment="top" usebox="none">
35664 \begin_inset Text
35665
35666 \begin_layout Plain Layout
35667 mathdesign
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 pmboxdraw
35677 \end_layout
35678
35679 \end_inset
35680 </cell>
35681 <cell alignment="center" valignment="top" usebox="none">
35682 \begin_inset Text
35683
35684 \begin_layout Plain Layout
35685 soul
35686 \end_layout
35687
35688 \end_inset
35689 </cell>
35690 <cell alignment="center" valignment="top" usebox="none">
35691 \begin_inset Text
35692
35693 \begin_layout Plain Layout
35694 ulem
35695 \end_layout
35696
35697 \end_inset
35698 </cell>
35699 <cell alignment="center" valignment="top" usebox="none">
35700 \begin_inset Text
35701
35702 \begin_layout Plain Layout
35703 yhmath
35704 \end_layout
35705
35706 \end_inset
35707 </cell>
35708 </row>
35709 <row>
35710 <cell alignment="left" valignment="top" usebox="none">
35711 \begin_inset Text
35712
35713 \begin_layout Plain Layout
35714 amsthm
35715 \end_layout
35716
35717 \end_inset
35718 </cell>
35719 <cell alignment="left" valignment="top" usebox="none">
35720 \begin_inset Text
35721
35722 \begin_layout Plain Layout
35723 dvipost
35724 \end_layout
35725
35726 \end_inset
35727 </cell>
35728 <cell alignment="left" valignment="top" usebox="none">
35729 \begin_inset Text
35730
35731 \begin_layout Plain Layout
35732 hyperref
35733 \end_layout
35734
35735 \end_inset
35736 </cell>
35737 <cell alignment="left" valignment="top" usebox="none">
35738 \begin_inset Text
35739
35740 \begin_layout Plain Layout
35741 mathdots
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 polyglossia
35751 \end_layout
35752
35753 \end_inset
35754 </cell>
35755 <cell alignment="center" valignment="top" usebox="none">
35756 \begin_inset Text
35757
35758 \begin_layout Plain Layout
35759 splitidx
35760 \end_layout
35761
35762 \end_inset
35763 </cell>
35764 <cell alignment="center" valignment="top" usebox="none">
35765 \begin_inset Text
35766
35767 \begin_layout Plain Layout
35768 undertilde
35769 \end_layout
35770
35771 \end_inset
35772 </cell>
35773 <cell alignment="center" valignment="top" usebox="none">
35774 \begin_inset Text
35775
35776 \begin_layout Plain Layout
35777
35778 \end_layout
35779
35780 \end_inset
35781 </cell>
35782 </row>
35783 <row>
35784 <cell alignment="left" valignment="top" usebox="none">
35785 \begin_inset Text
35786
35787 \begin_layout Plain Layout
35788 array
35789 \end_layout
35790
35791 \end_inset
35792 </cell>
35793 <cell alignment="left" valignment="top" usebox="none">
35794 \begin_inset Text
35795
35796 \begin_layout Plain Layout
35797 endnotes
35798 \end_layout
35799
35800 \end_inset
35801 </cell>
35802 <cell alignment="left" valignment="top" usebox="none">
35803 \begin_inset Text
35804
35805 \begin_layout Plain Layout
35806 ifsym
35807 \end_layout
35808
35809 \end_inset
35810 </cell>
35811 <cell alignment="left" valignment="top" usebox="none">
35812 \begin_inset Text
35813
35814 \begin_layout Plain Layout
35815 mathrsfs
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 prettyref
35825 \end_layout
35826
35827 \end_inset
35828 </cell>
35829 <cell alignment="center" valignment="top" usebox="none">
35830 \begin_inset Text
35831
35832 \begin_layout Plain Layout
35833 subfig
35834 \end_layout
35835
35836 \end_inset
35837 </cell>
35838 <cell alignment="center" valignment="top" usebox="none">
35839 \begin_inset Text
35840
35841 \begin_layout Plain Layout
35842 units
35843 \end_layout
35844
35845 \end_inset
35846 </cell>
35847 <cell alignment="center" valignment="top" usebox="none">
35848 \begin_inset Text
35849
35850 \begin_layout Plain Layout
35851
35852 \end_layout
35853
35854 \end_inset
35855 </cell>
35856 </row>
35857 <row>
35858 <cell alignment="left" valignment="top" usebox="none">
35859 \begin_inset Text
35860
35861 \begin_layout Plain Layout
35862 ascii
35863 \end_layout
35864
35865 \end_inset
35866 </cell>
35867 <cell alignment="left" valignment="top" usebox="none">
35868 \begin_inset Text
35869
35870 \begin_layout Plain Layout
35871 enumitem
35872 \end_layout
35873
35874 \end_inset
35875 </cell>
35876 <cell alignment="left" valignment="top" usebox="none">
35877 \begin_inset Text
35878
35879 \begin_layout Plain Layout
35880 ifthen
35881 \end_layout
35882
35883 \end_inset
35884 </cell>
35885 <cell alignment="left" valignment="top" usebox="none">
35886 \begin_inset Text
35887
35888 \begin_layout Plain Layout
35889 mhchem
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 pxfonts
35899 \end_layout
35900
35901 \end_inset
35902 </cell>
35903 <cell alignment="center" valignment="top" usebox="none">
35904 \begin_inset Text
35905
35906 \begin_layout Plain Layout
35907 subscript
35908 \end_layout
35909
35910 \end_inset
35911 </cell>
35912 <cell alignment="center" valignment="top" usebox="none">
35913 \begin_inset Text
35914
35915 \begin_layout Plain Layout
35916 url
35917 \end_layout
35918
35919 \end_inset
35920 </cell>
35921 <cell alignment="center" valignment="top" usebox="none">
35922 \begin_inset Text
35923
35924 \begin_layout Plain Layout
35925
35926 \end_layout
35927
35928 \end_inset
35929 </cell>
35930 </row>
35931 <row>
35932 <cell alignment="left" valignment="top" usebox="none">
35933 \begin_inset Text
35934
35935 \begin_layout Plain Layout
35936 bbding
35937 \end_layout
35938
35939 \end_inset
35940 </cell>
35941 <cell alignment="left" valignment="top" usebox="none">
35942 \begin_inset Text
35943
35944 \begin_layout Plain Layout
35945 esint
35946 \end_layout
35947
35948 \end_inset
35949 </cell>
35950 <cell alignment="left" valignment="top" usebox="none">
35951 \begin_inset Text
35952
35953 \begin_layout Plain Layout
35954 jurabib
35955 \end_layout
35956
35957 \end_inset
35958 </cell>
35959 <cell alignment="left" valignment="top" usebox="none">
35960 \begin_inset Text
35961
35962 \begin_layout Plain Layout
35963 multicol
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 refstyle
35973 \end_layout
35974
35975 \end_inset
35976 </cell>
35977 <cell alignment="center" valignment="top" usebox="none">
35978 \begin_inset Text
35979
35980 \begin_layout Plain Layout
35981 textcomp
35982 \end_layout
35983
35984 \end_inset
35985 </cell>
35986 <cell alignment="center" valignment="top" usebox="none">
35987 \begin_inset Text
35988
35989 \begin_layout Plain Layout
35990 varioref
35991 \end_layout
35992
35993 \end_inset
35994 </cell>
35995 <cell alignment="center" valignment="top" usebox="none">
35996 \begin_inset Text
35997
35998 \begin_layout Plain Layout
35999
36000 \end_layout
36001
36002 \end_inset
36003 </cell>
36004 </row>
36005 <row>
36006 <cell alignment="center" valignment="top" usebox="none">
36007 \begin_inset Text
36008
36009 \begin_layout Plain Layout
36010 bm
36011 \end_layout
36012
36013 \end_inset
36014 </cell>
36015 <cell alignment="center" valignment="top" usebox="none">
36016 \begin_inset Text
36017
36018 \begin_layout Plain Layout
36019 fancybox
36020 \end_layout
36021
36022 \end_inset
36023 </cell>
36024 <cell alignment="center" valignment="top" usebox="none">
36025 \begin_inset Text
36026
36027 \begin_layout Plain Layout
36028 latexsym
36029 \end_layout
36030
36031 \end_inset
36032 </cell>
36033 <cell alignment="center" valignment="top" usebox="none">
36034 \begin_inset Text
36035
36036 \begin_layout Plain Layout
36037 multirow
36038 \end_layout
36039
36040 \end_inset
36041 </cell>
36042 <cell alignment="center" valignment="top" usebox="none">
36043 \begin_inset Text
36044
36045 \begin_layout Plain Layout
36046 rotating
36047 \end_layout
36048
36049 \end_inset
36050 </cell>
36051 <cell alignment="center" valignment="top" usebox="none">
36052 \begin_inset Text
36053
36054 \begin_layout Plain Layout
36055 textgreek
36056 \end_layout
36057
36058 \end_inset
36059 </cell>
36060 <cell alignment="center" valignment="top" usebox="none">
36061 \begin_inset Text
36062
36063 \begin_layout Plain Layout
36064 verbatim
36065 \end_layout
36066
36067 \end_inset
36068 </cell>
36069 <cell alignment="center" valignment="top" usebox="none">
36070 \begin_inset Text
36071
36072 \begin_layout Plain Layout
36073
36074 \end_layout
36075
36076 \end_inset
36077 </cell>
36078 </row>
36079 </lyxtabular>
36080
36081 \end_inset
36082
36083
36084 \end_layout
36085
36086 \begin_layout Chapter
36087 Names of available colors to be used in layouts
36088 \begin_inset CommandInset label
36089 LatexCommand label
36090 name "chap:Names-of-colors"
36091
36092 \end_inset
36093
36094
36095 \end_layout
36096
36097 \begin_layout Standard
36098 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
36099  preferences.
36100 \end_layout
36101
36102 \begin_layout Section
36103 Color functions
36104 \end_layout
36105
36106 \begin_layout Standard
36107 The following are no real colors,
36108  but rather act on color definitions:
36109 \end_layout
36110
36111 \begin_layout Description
36112 ignore The color is ignored
36113 \end_layout
36114
36115 \begin_layout Description
36116 inherit The color is inherited
36117 \end_layout
36118
36119 \begin_layout Description
36120 none
36121 \family roman
36122 \series medium
36123 \shape up
36124 \size normal
36125 \emph off
36126 \bar no
36127 \strikeout off
36128 \uuline off
36129 \uwave off
36130 \noun off
36131 \color none
36132  No particular color – clear or default
36133 \end_layout
36134
36135 \begin_layout Section
36136 Static colors
36137 \end_layout
36138
36139 \begin_layout Standard
36140 These are fixed colors that cannot be customized
36141 \change_inserted -712698321 1607683177
36142 .
36143  Please do 
36144 \emph on
36145 not
36146 \emph default
36147  use these colors in layout definitions,
36148  since they will not work well with some color themes (such as dark themes)
36149 \change_unchanged
36150 :
36151 \end_layout
36152
36153 \begin_layout Description
36154 black
36155 \end_layout
36156
36157 \begin_layout Description
36158 white
36159 \end_layout
36160
36161 \begin_layout Description
36162 blue
36163 \end_layout
36164
36165 \begin_layout Description
36166 brown
36167 \end_layout
36168
36169 \begin_layout Description
36170 cyan
36171 \end_layout
36172
36173 \begin_layout Description
36174 darkgray
36175 \end_layout
36176
36177 \begin_layout Description
36178 gray
36179 \end_layout
36180
36181 \begin_layout Description
36182 green
36183 \end_layout
36184
36185 \begin_layout Description
36186 lightgray
36187 \end_layout
36188
36189 \begin_layout Description
36190 lime
36191 \end_layout
36192
36193 \begin_layout Description
36194 magenta
36195 \end_layout
36196
36197 \begin_layout Description
36198 olive
36199 \end_layout
36200
36201 \begin_layout Description
36202 orange
36203 \end_layout
36204
36205 \begin_layout Description
36206 pink
36207 \end_layout
36208
36209 \begin_layout Description
36210 purple
36211 \end_layout
36212
36213 \begin_layout Description
36214 red
36215 \end_layout
36216
36217 \begin_layout Description
36218 teal
36219 \end_layout
36220
36221 \begin_layout Description
36222 violet
36223 \end_layout
36224
36225 \begin_layout Description
36226 yellow
36227 \end_layout
36228
36229 \begin_layout Section
36230 Dynamic colors
36231 \end_layout
36232
36233 \begin_layout Standard
36234 These are the colors allocated to specific elements in 
36235 \begin_inset Info
36236 type  "menu"
36237 arg   "dialog-show prefs"
36238 \end_inset
36239
36240 :
36241 \end_layout
36242
36243 \begin_layout Description
36244 added_space Added space color
36245 \end_layout
36246
36247 \begin_layout Description
36248 addedtext Added text color
36249 \end_layout
36250
36251 \begin_layout Description
36252 appendix Appendix marker color
36253 \end_layout
36254
36255 \begin_layout Description
36256 background Background color
36257 \end_layout
36258
36259 \begin_layout Description
36260 bottomarea Bottom area color
36261 \end_layout
36262
36263 \begin_layout Description
36264 branchlabel Label color for branches
36265 \end_layout
36266
36267 \begin_layout Description
36268 buttonbg Color used for button background
36269 \end_layout
36270
36271 \begin_layout Description
36272 buttonframe Color for inset button frames
36273 \end_layout
36274
36275 \begin_layout Description
36276 buttonhoverbg Color used for button background under focus
36277 \end_layout
36278
36279 \begin_layout Description
36280 changebar Changebar color
36281 \end_layout
36282
36283 \begin_layout Description
36284 changedtextauthor1 Changed text color author 1
36285 \end_layout
36286
36287 \begin_layout Description
36288 changedtextauthor2 Changed text color author 2
36289 \end_layout
36290
36291 \begin_layout Description
36292 changedtextauthor3 Changed text color author 3
36293 \end_layout
36294
36295 \begin_layout Description
36296 changedtextauthor4 Changed text color author 4
36297 \end_layout
36298
36299 \begin_layout Description
36300 changedtextauthor5 Changed text color author 5
36301 \end_layout
36302
36303 \begin_layout Description
36304 collapsible Collapsible insets text color
36305 \end_layout
36306
36307 \begin_layout Description
36308 collapsibleframe Collapsible insets framecolor
36309 \end_layout
36310
36311 \begin_layout Description
36312 command Text color for command insets
36313 \end_layout
36314
36315 \begin_layout Description
36316 commandbg Background color for command insets
36317 \end_layout
36318
36319 \begin_layout Description
36320 commandframe Frame color for command insets
36321 \end_layout
36322
36323 \begin_layout Description
36324 comment Label color for comments
36325 \end_layout
36326
36327 \begin_layout Description
36328 commentbg Background color of comments
36329 \end_layout
36330
36331 \begin_layout Description
36332 cursor Cursor color
36333 \end_layout
36334
36335 \begin_layout Description
36336 deletedtext Deleted text color
36337 \end_layout
36338
36339 \begin_layout Description
36340 deletedtextmodifier Deleted text modifying color
36341 \end_layout
36342
36343 \begin_layout Description
36344 depthbar Color for the depth bars in the margin
36345 \end_layout
36346
36347 \begin_layout Description
36348 eolmarker End of line marker color
36349 \end_layout
36350
36351 \begin_layout Description
36352 error Color of the \SpecialChar LaTeX
36353  error box
36354 \end_layout
36355
36356 \begin_layout Description
36357 footlabel Label color for footnotes
36358 \end_layout
36359
36360 \begin_layout Description
36361 foreground Foreground color
36362 \end_layout
36363
36364 \begin_layout Description
36365 graphicsbg Graphics inset background color
36366 \end_layout
36367
36368 \begin_layout Description
36369 greyedoutbg Background color of greyedout inset
36370 \end_layout
36371
36372 \begin_layout Description
36373 greyedoutlabel Label color for greyedout insets
36374 \end_layout
36375
36376 \begin_layout Description
36377 greyedouttext Color for greyedout inset text
36378 \end_layout
36379
36380 \begin_layout Description
36381 indexlabel Label color for index insets
36382 \end_layout
36383
36384 \begin_layout Description
36385 inlinecompletion Inline completion color
36386 \end_layout
36387
36388 \begin_layout Description
36389 insetbg Inset marker background color
36390 \end_layout
36391
36392 \begin_layout Description
36393 insetframe Inset marker frame color
36394 \end_layout
36395
36396 \begin_layout Description
36397 language Color for marking foreign language words
36398 \end_layout
36399
36400 \begin_layout Description
36401 latex Text color in \SpecialChar LaTeX
36402  mode
36403 \end_layout
36404
36405 \begin_layout Description
36406 listingsbg Background color of listings inset
36407 \end_layout
36408
36409 \begin_layout Description
36410 marginlabel Label color for margin notes
36411 \end_layout
36412
36413 \begin_layout Description
36414 math Math inset text color
36415 \end_layout
36416
36417 \begin_layout Description
36418 mathbg Math inset background color
36419 \end_layout
36420
36421 \begin_layout Description
36422 mathcorners Math inset frame color not under focus
36423 \end_layout
36424
36425 \begin_layout Description
36426 mathframe Math inset frame color under focus
36427 \end_layout
36428
36429 \begin_layout Description
36430 mathline Math line color
36431 \end_layout
36432
36433 \begin_layout Description
36434 mathmacrobg Macro math inset background color
36435 \end_layout
36436
36437 \begin_layout Description
36438 mathmacroblend Macro math blended color
36439 \end_layout
36440
36441 \begin_layout Description
36442 mathmacroframe Macro math frame color
36443 \end_layout
36444
36445 \begin_layout Description
36446 mathmacrohoverbg Macro math inset background color hovered
36447 \end_layout
36448
36449 \begin_layout Description
36450 mathmacrolabel Macro math label color
36451 \end_layout
36452
36453 \begin_layout Description
36454 mathmacronewarg Macro template color for new parameters
36455 \end_layout
36456
36457 \begin_layout Description
36458 mathmacrooldarg Macro template color for old parameters
36459 \end_layout
36460
36461 \begin_layout Description
36462 newpage New page color
36463 \end_layout
36464
36465 \begin_layout Description
36466 nonunique_inlinecompletion Inline completion color for the non-unique part
36467 \end_layout
36468
36469 \begin_layout Description
36470 note Label color for notes
36471 \end_layout
36472
36473 \begin_layout Description
36474 notebg Background color of notes
36475 \end_layout
36476
36477 \begin_layout Description
36478 pagebreak Page break/line break color
36479 \end_layout
36480
36481 \begin_layout Description
36482 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
36483 \end_layout
36484
36485 \begin_layout Description
36486 phantomtext Text color for phantom insets
36487 \end_layout
36488
36489 \begin_layout Description
36490 preview The color used for previews
36491 \end_layout
36492
36493 \begin_layout Description
36494 previewframe Preview frame color
36495 \end_layout
36496
36497 \begin_layout Description
36498 regexpframe Color for regexp frame
36499 \end_layout
36500
36501 \begin_layout Description
36502 scroll Color that indicates when a row can be scrolled 
36503 \end_layout
36504
36505 \begin_layout Description
36506 selection Background color of selected text
36507 \end_layout
36508
36509 \begin_layout Description
36510 selectiontext Foreground color of selected text
36511 \end_layout
36512
36513 \begin_layout Description
36514 shadedbg Background color of shaded box
36515 \end_layout
36516
36517 \begin_layout Description
36518 special Special chars text color
36519 \end_layout
36520
36521 \begin_layout Description
36522 tabularline Table line color
36523 \end_layout
36524
36525 \begin_layout Description
36526 tabularonoffline Table line color
36527 \change_inserted -712698321 1607682522
36528
36529 \end_layout
36530
36531 \begin_layout Description
36532
36533 \change_inserted -712698321 1607682563
36534 textlabel1 Color 1 of layout and custom inset labels
36535 \end_layout
36536
36537 \begin_layout Description
36538
36539 \change_inserted -712698321 1607682565
36540 textlabel2 Color 2 of layout and custom inset labels
36541 \end_layout
36542
36543 \begin_layout Description
36544
36545 \change_inserted -712698321 1607682568
36546 textlabel3 Color 3 of layout and custom inset labels
36547 \change_unchanged
36548
36549 \end_layout
36550
36551 \begin_layout Description
36552 urllabel Label color for URL insets
36553 \end_layout
36554
36555 \begin_layout Description
36556 urltext Color for URL inset text
36557 \end_layout
36558
36559 \end_body
36560 \end_document