]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
fr Addtional: Use quote insets instead of UTF-8
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 611
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
805 \end_inset
806
807  for details.
808 \end_layout
809
810 \begin_layout Labeling
811 \labelwidthstring 00.00.0000
812 \begin_inset Flex Code
813 status collapsed
814
815 \begin_layout Plain Layout
816 clipart/
817 \end_layout
818
819 \end_inset
820
821  
822 \change_deleted 232239728 1604794483
823 c
824 \change_inserted 232239728 1604794486
825 C
826 \change_unchanged
827 ontains graphics files that can be included in documents.
828  
829 \end_layout
830
831 \begin_layout Labeling
832 \labelwidthstring 00.00.0000
833 \begin_inset Flex Code
834 status collapsed
835
836 \begin_layout Plain Layout
837 doc/
838 \end_layout
839
840 \end_inset
841
842  
843 \change_deleted 232239728 1604794492
844 c
845 \change_inserted 232239728 1604794492
846 C
847 \change_unchanged
848 ontains \SpecialChar LyX
849  documentation files (including the one you are currently reading).
850  The file 
851 \begin_inset Flex Code
852 status collapsed
853
854 \begin_layout Plain Layout
855
856 \change_deleted 232239728 1604794660
857 \SpecialChar LaTeX
858
859 \change_inserted 232239728 1604794661
860 LaTex
861 \change_unchanged
862 Config.lyx
863 \end_layout
864
865 \end_inset
866
867  deserves special attention,
868  as noted above.
869  The internationalized help docs are in subdirectories 
870 \begin_inset Flex Code
871 status collapsed
872
873 \begin_layout Plain Layout
874 doc/xx
875 \end_layout
876
877 \end_inset
878
879  where 
880 \begin_inset Quotes eld
881 \end_inset
882
883 xx
884 \begin_inset Quotes erd
885 \end_inset
886
887  is the ISO language code.
888  See 
889 \begin_inset CommandInset ref
890 LatexCommand ref
891 reference "cha:Internationalizing-LyX"
892
893 \end_inset
894
895  for details.
896 \end_layout
897
898 \begin_layout Labeling
899 \labelwidthstring 00.00.0000
900 \begin_inset Flex Code
901 status collapsed
902
903 \begin_layout Plain Layout
904 examples/
905 \end_layout
906
907 \end_inset
908
909  
910 \change_deleted 232239728 1604794497
911 c
912 \change_inserted 232239728 1604794497
913 C
914 \change_unchanged
915 ontains example files that explain how to use some features.
916  In the file browser,
917  press the 
918 \begin_inset Flex Noun
919 status collapsed
920
921 \begin_layout Plain Layout
922 Examples
923 \end_layout
924
925 \end_inset
926
927  button to get there.
928 \end_layout
929
930 \begin_layout Labeling
931 \labelwidthstring 00.00.0000
932 \begin_inset Flex Code
933 status collapsed
934
935 \begin_layout Plain Layout
936 images/
937 \end_layout
938
939 \end_inset
940
941  
942 \change_deleted 232239728 1604794500
943 c
944 \change_inserted 232239728 1604794500
945 C
946 \change_unchanged
947 ontains image files that are used by the 
948 \begin_inset Flex Noun
949 status collapsed
950
951 \begin_layout Plain Layout
952 Document
953 \end_layout
954
955 \end_inset
956
957  dialog.
958  In addition,
959  it also contains the individual icons used in the toolbar and the banners that can be shown when \SpecialChar LyX
960  is launched.
961 \end_layout
962
963 \begin_layout Labeling
964 \labelwidthstring 00.00.0000
965 \begin_inset Flex Code
966 status collapsed
967
968 \begin_layout Plain Layout
969 kbd/
970 \end_layout
971
972 \end_inset
973
974  
975 \change_deleted 232239728 1604794505
976 c
977 \change_inserted 232239728 1604794505
978 C
979 \change_unchanged
980 ontains keyboard keymapping files.
981  See 
982 \begin_inset CommandInset ref
983 LatexCommand ref
984 reference "sec:International-Keymap-Stuff"
985
986 \end_inset
987
988  for details.
989 \end_layout
990
991 \begin_layout Labeling
992 \labelwidthstring 00.00.0000
993 \begin_inset Flex Code
994 status collapsed
995
996 \begin_layout Plain Layout
997 layouts/
998 \end_layout
999
1000 \end_inset
1001
1002  
1003 \change_deleted 232239728 1604794508
1004 c
1005 \change_inserted 232239728 1604794508
1006 C
1007 \change_unchanged
1008 ontains the text class and module files described in 
1009 \begin_inset CommandInset ref
1010 LatexCommand ref
1011 reference "cha:Installing-New-Document"
1012
1013 \end_inset
1014
1015 .
1016 \end_layout
1017
1018 \begin_layout Labeling
1019 \labelwidthstring 00.00.0000
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024 lyx2lyx
1025 \end_layout
1026
1027 \end_inset
1028
1029  
1030 \change_deleted 232239728 1604794513
1031 c
1032 \change_inserted 232239728 1604794513
1033 C
1034 \change_unchanged
1035 ontains the 
1036 \begin_inset Flex Code
1037 status collapsed
1038
1039 \begin_layout Plain Layout
1040 lyx2lyx
1041 \end_layout
1042
1043 \end_inset
1044
1045  Python scripts used to convert between \SpecialChar LyX
1046  versions.
1047  These can be run from the command line if
1048 \change_deleted 232239728 1604794749
1049 ,
1050  say,
1051
1052 \change_unchanged
1053  you want to batch-convert files.
1054 \end_layout
1055
1056 \begin_layout Labeling
1057 \labelwidthstring 00.00.0000
1058 \begin_inset Flex Code
1059 status collapsed
1060
1061 \begin_layout Plain Layout
1062 scripts/
1063 \end_layout
1064
1065 \end_inset
1066
1067  
1068 \change_deleted 232239728 1604794516
1069 c
1070 \change_inserted 232239728 1604794516
1071 C
1072 \change_unchanged
1073 ontains some files that demonstrate the capabilities of the 
1074 \begin_inset Flex Noun
1075 status collapsed
1076
1077 \begin_layout Plain Layout
1078 External
1079 \begin_inset space ~
1080 \end_inset
1081
1082 Template
1083 \end_layout
1084
1085 \end_inset
1086
1087  feature.
1088  Also contains some scripts used by \SpecialChar LyX
1089  itself.
1090 \end_layout
1091
1092 \begin_layout Labeling
1093 \labelwidthstring 00.00.0000
1094 \begin_inset Flex Code
1095 status collapsed
1096
1097 \begin_layout Plain Layout
1098 templates/
1099 \end_layout
1100
1101 \end_inset
1102
1103  
1104 \change_deleted 232239728 1604794520
1105 c
1106 \change_inserted 232239728 1604794520
1107 C
1108 \change_unchanged
1109 ontains the standard \SpecialChar LyX
1110  template files described in 
1111 \begin_inset CommandInset ref
1112 LatexCommand ref
1113 reference "subsec:Creating-Templates"
1114
1115 \end_inset
1116
1117 .
1118 \end_layout
1119
1120 \begin_layout Labeling
1121 \labelwidthstring 00.00.0000
1122 \begin_inset Flex Code
1123 status collapsed
1124
1125 \begin_layout Plain Layout
1126 ui/
1127 \end_layout
1128
1129 \end_inset
1130
1131  
1132 \change_deleted 232239728 1604794524
1133 c
1134 \change_inserted 232239728 1604794524
1135 C
1136 \change_unchanged
1137 ontains files with the extension 
1138 \begin_inset Flex Code
1139 status collapsed
1140
1141 \begin_layout Plain Layout
1142 .ui
1143 \end_layout
1144
1145 \end_inset
1146
1147  that define the user interface to \SpecialChar LyX
1148 .
1149  That is,
1150  the files define which items appear in which menus and the items appearing on the toolbar.
1151 \end_layout
1152
1153 \begin_layout Labeling
1154 \labelwidthstring 00.00.0000
1155 \begin_inset Flex Code
1156 status collapsed
1157
1158 \begin_layout Plain Layout
1159 xtemplates/
1160 \end_layout
1161
1162 \end_inset
1163
1164  
1165 \change_deleted 232239728 1604794528
1166 c
1167 \change_inserted 232239728 1604794528
1168 C
1169 \change_unchanged
1170 ontains files with the extension 
1171 \begin_inset Flex Code
1172 status collapsed
1173
1174 \begin_layout Plain Layout
1175 .xtemplate
1176 \end_layout
1177
1178 \end_inset
1179
1180  which define the templates for the insertion of external material to a \SpecialChar LyX
1181  document;
1182  see 
1183 \begin_inset CommandInset ref
1184 LatexCommand ref
1185 reference "chap:Including-External-Material"
1186
1187 \end_inset
1188
1189 .
1190 \end_layout
1191
1192 \begin_layout Subsection
1193 Files you don't want to modify
1194 \end_layout
1195
1196 \begin_layout Standard
1197 These files are used internally by \SpecialChar LyX
1198  and you generally do not need to modify them unless you are a developer.
1199 \end_layout
1200
1201 \begin_layout Labeling
1202 \labelwidthstring 00.00.0000
1203 \begin_inset Flex Code
1204 status collapsed
1205
1206 \begin_layout Plain Layout
1207 CREDITS
1208 \end_layout
1209
1210 \end_inset
1211
1212  
1213 \change_deleted 232239728 1604797616
1214 t
1215 \change_inserted 232239728 1604797616
1216 T
1217 \change_unchanged
1218 his file contains the list of \SpecialChar LyX
1219  developers.
1220  The contents are displayed with the menu entry 
1221 \begin_inset Flex Noun
1222 status collapsed
1223
1224 \begin_layout Plain Layout
1225 Help\SpecialChar menuseparator
1226 About
1227 \begin_inset space ~
1228 \end_inset
1229
1230 LyX
1231 \end_layout
1232
1233 \end_inset
1234
1235 .
1236 \end_layout
1237
1238 \begin_layout Labeling
1239 \labelwidthstring 00.00.0000
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 chkconfig.ltx
1245 \end_layout
1246
1247 \end_inset
1248
1249  
1250 \change_deleted 232239728 1604797620
1251 t
1252 \change_inserted 232239728 1604797620
1253 T
1254 \change_unchanged
1255 his is a \SpecialChar LaTeX
1256  script used during the configuration process.
1257  Do not run directly.
1258 \end_layout
1259
1260 \begin_layout Labeling
1261 \labelwidthstring 00.00.0000
1262 \begin_inset Flex Code
1263 status collapsed
1264
1265 \begin_layout Plain Layout
1266 configure.py
1267 \end_layout
1268
1269 \end_inset
1270
1271  
1272 \change_deleted 232239728 1604797624
1273 t
1274 \change_inserted 232239728 1604797624
1275 T
1276 \change_unchanged
1277 his is a Python script that is used to re-configure \SpecialChar LyX
1278 .
1279  It creates configuration files in the directory it was run from.
1280 \end_layout
1281
1282 \begin_layout Subsection
1283 Other files needing a line or two
1284 \end_layout
1285
1286 \begin_layout Labeling
1287 \labelwidthstring 00.00.0000
1288 \begin_inset Flex Code
1289 status collapsed
1290
1291 \begin_layout Plain Layout
1292 encodings
1293 \end_layout
1294
1295 \end_inset
1296
1297  
1298 \change_deleted 232239728 1604797580
1299 t
1300 \change_inserted 232239728 1604797580
1301 T
1302 \change_unchanged
1303 his contains tables describing how different character encodings can be mapped to Unicode
1304 \end_layout
1305
1306 \begin_layout Labeling
1307 \labelwidthstring 00.00.0000
1308 \begin_inset Flex Code
1309 status collapsed
1310
1311 \begin_layout Plain Layout
1312 languages
1313 \end_layout
1314
1315 \end_inset
1316
1317  
1318 \change_deleted 232239728 1604797584
1319 t
1320 \change_inserted 232239728 1604797584
1321 T
1322 \change_unchanged
1323 his file contains a list of all the languages currently supported by \SpecialChar LyX
1324 .
1325 \end_layout
1326
1327 \begin_layout Labeling
1328 \labelwidthstring 00.00.0000
1329 \begin_inset Flex Code
1330 status collapsed
1331
1332 \begin_layout Plain Layout
1333 latexfonts
1334 \end_layout
1335
1336 \end_inset
1337
1338  
1339 \change_deleted 232239728 1604797587
1340 c
1341 \change_inserted 232239728 1604797587
1342 C
1343 \change_unchanged
1344 ontains information about the supported fonts.
1345 \end_layout
1346
1347 \begin_layout Labeling
1348 \labelwidthstring 00.00.0000
1349 \begin_inset Flex Code
1350 status collapsed
1351
1352 \begin_layout Plain Layout
1353 layouttranslations
1354 \end_layout
1355
1356 \end_inset
1357
1358  
1359 \change_deleted 232239728 1604797591
1360 t
1361 \change_inserted 232239728 1604797591
1362 T
1363 \change_unchanged
1364 his file contains translations for internationalized paragraph styles (see 
1365 \begin_inset CommandInset ref
1366 LatexCommand ref
1367 reference "subsec:I18n"
1368
1369 \end_inset
1370
1371 ).
1372 \end_layout
1373
1374 \begin_layout Labeling
1375 \labelwidthstring 00.00.0000
1376 \begin_inset Flex Code
1377 status collapsed
1378
1379 \begin_layout Plain Layout
1380 unicodesymbols
1381 \end_layout
1382
1383 \end_inset
1384
1385  
1386 \change_deleted 232239728 1604797594
1387 t
1388 \change_inserted 232239728 1604797594
1389 T
1390 \change_unchanged
1391 his file contains information about Unicode-encoded glyphs and the way they are supported by \SpecialChar LyX
1392  via \SpecialChar LaTeX
1393 .
1394 \end_layout
1395
1396 \begin_layout Section
1397 Your local configuration directory
1398 \end_layout
1399
1400 \begin_layout Standard
1401 Even if you are using \SpecialChar LyX
1402  as an unprivileged user,
1403  you might want to change \SpecialChar LyX
1404  configuration for your own use.
1405  The 
1406 \begin_inset Flex Code
1407 status collapsed
1408
1409 \begin_layout Plain Layout
1410 UserDir
1411 \end_layout
1412
1413 \end_inset
1414
1415  directory contains all your personal configuration files.
1416  This is the directory described as 
1417 \begin_inset Quotes eld
1418 \end_inset
1419
1420 user directory
1421 \begin_inset Quotes erd
1422 \end_inset
1423
1424  in 
1425 \begin_inset Flex Noun
1426 status collapsed
1427
1428 \begin_layout Plain Layout
1429 Help\SpecialChar menuseparator
1430 About
1431 \begin_inset space ~
1432 \end_inset
1433
1434 LyX
1435 \end_layout
1436
1437 \end_inset
1438
1439 .
1440  This directory is used as a mirror of 
1441 \begin_inset Flex Code
1442 status collapsed
1443
1444 \begin_layout Plain Layout
1445 LyXDir
1446 \end_layout
1447
1448 \end_inset
1449
1450 ,
1451  which means that every file in 
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456 UserDir
1457 \end_layout
1458
1459 \end_inset
1460
1461  is a replacement for the corresponding file in 
1462 \begin_inset Flex Code
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466 LyXDir
1467 \end_layout
1468
1469 \end_inset
1470
1471 .
1472  Any configuration file described in the above sections can be placed either in the system-wide directory,
1473  in which case it will affect all users,
1474  or in your local directory for your own use.
1475 \end_layout
1476
1477 \begin_layout Standard
1478 To make things clearer,
1479  let's provide a few examples:
1480 \end_layout
1481
1482 \begin_layout Itemize
1483 The preferences set in the 
1484 \begin_inset Flex Noun
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488 Tools\SpecialChar menuseparator
1489 Preferences
1490 \end_layout
1491
1492 \end_inset
1493
1494  dialog are saved to a file 
1495 \begin_inset Flex Code
1496 status collapsed
1497
1498 \begin_layout Plain Layout
1499 preferences
1500 \end_layout
1501
1502 \end_inset
1503
1504  in 
1505 \begin_inset Flex Code
1506 status collapsed
1507
1508 \begin_layout Plain Layout
1509 UserDir
1510 \end_layout
1511
1512 \end_inset
1513
1514 .
1515 \end_layout
1516
1517 \begin_layout Itemize
1518 When you reconfigure using 
1519 \begin_inset Flex Noun
1520 status collapsed
1521
1522 \begin_layout Plain Layout
1523 Tools\SpecialChar menuseparator
1524 Reconfigure
1525 \end_layout
1526
1527 \end_inset
1528
1529 ,
1530  \SpecialChar LyX
1531  runs the 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 configure.py
1537 \end_layout
1538
1539 \end_inset
1540
1541  script,
1542  and the resulting files are written in your local configuration directory.
1543  This means that any additional text class file that you might have added in 
1544 \begin_inset Flex Code
1545 status collapsed
1546
1547 \begin_layout Plain Layout
1548 UserDir/layouts
1549 \end_layout
1550
1551 \end_inset
1552
1553  will be added to the list of classes in the 
1554 \begin_inset Flex Noun
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558 Document\SpecialChar menuseparator
1559 Settings
1560 \end_layout
1561
1562 \end_inset
1563
1564  dialog.
1565 \end_layout
1566
1567 \begin_layout Itemize
1568 If you get some updated documentation from
1569 \change_inserted 232239728 1604798171
1570  a
1571 \change_unchanged
1572  \SpecialChar LyX
1573  ftp site and cannot install it because you do not have sysadmin rights on your system,
1574  you can just copy the files 
1575 \change_deleted 232239728 1604798193
1576 in
1577 \change_inserted 232239728 1604798193
1578 to
1579 \change_unchanged
1580  
1581 \begin_inset Flex Code
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 UserDir/doc/
1586 \end_layout
1587
1588 \end_inset
1589
1590  and the items in the 
1591 \begin_inset Flex Noun
1592 status collapsed
1593
1594 \begin_layout Plain Layout
1595 Help
1596 \end_layout
1597
1598 \end_inset
1599
1600  menu will open them!
1601 \end_layout
1602
1603 \begin_layout Section
1604 Running \SpecialChar LyX
1605  with multiple configurations
1606 \end_layout
1607
1608 \begin_layout Standard
1609 The configuration freedom of the local configuration directory may not suffice if you want to have more than one configuration at your disposal.
1610  For example,
1611  you may want to 
1612 \change_deleted 232239728 1604798238
1613 be 
1614 \change_unchanged
1615 use different key bindings or printer settings at different times.
1616  You can achieve this by having several such directories.
1617  You then specify which directory to use at run-time.
1618 \end_layout
1619
1620 \begin_layout Standard
1621 Invoking \SpecialChar LyX
1622  with the command line switch 
1623 \begin_inset Flex Code
1624 status collapsed
1625
1626 \begin_layout Plain Layout
1627 -userdir
1628 \end_layout
1629
1630 \end_inset
1631
1632  
1633 \emph on
1634 <some directory>
1635 \emph default
1636  instructs the program to read the configuration from that directory,
1637  and not from the default directory.
1638  (You can determine the default directory by running \SpecialChar LyX
1639  without the 
1640 \begin_inset Flex Code
1641 status collapsed
1642
1643 \begin_layout Plain Layout
1644 -userdir
1645 \end_layout
1646
1647 \end_inset
1648
1649  switch.) If the specified directory does not exist,
1650  \SpecialChar LyX
1651  offers to create it for you,
1652  just like it does for the default directory 
1653 \change_deleted 232239728 1604798318
1654 on
1655 \change_unchanged
1656  the first time you run the program.
1657  You can modify the configuration options in this additional user directory exactly as you would for the default directory.
1658  These directories are completely independent (but read on).
1659  Note that setting the environment variable 
1660 \begin_inset Flex Code
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 LYX_USERDIR_24x
1665 \end_layout
1666
1667 \end_inset
1668
1669  to some value has exactly the same effect.
1670 \end_layout
1671
1672 \begin_layout Standard
1673 Having several configurations also requires more maintenance:
1674  if you want to add a new layout to 
1675 \begin_inset Flex Code
1676 status collapsed
1677
1678 \begin_layout Plain Layout
1679 NewUserDir/layouts
1680 \end_layout
1681
1682 \end_inset
1683
1684  which you want available from all your configurations,
1685  you must add it to each directory separately.
1686  You can avoid this with the following trick:
1687  after \SpecialChar LyX
1688  creates the additional directory,
1689  most of the subdirectories (see above) are empty.
1690  If you want the new configuration to mirror an existing one,
1691  replace the empty subdirectory with a symbolic link to the matching subdirectory in the existing configuration.
1692  Take care with the 
1693 \begin_inset Flex Code
1694 status collapsed
1695
1696 \begin_layout Plain Layout
1697 doc/
1698 \end_layout
1699
1700 \end_inset
1701
1702  subdirectory,
1703  however,
1704  since it contains a file written by the configuration script (also accessible through 
1705 \begin_inset Flex Noun
1706 status collapsed
1707
1708 \begin_layout Plain Layout
1709 Tools\SpecialChar menuseparator
1710 Reconfigure
1711 \end_layout
1712
1713 \end_inset
1714
1715 ) which is configuration
1716 \change_deleted 232239728 1604798083
1717 -
1718 \change_inserted 232239728 1604798100
1719  
1720 \change_unchanged
1721 specific.
1722 \end_layout
1723
1724 \begin_layout Chapter
1725 The Preferences dialog
1726 \end_layout
1727
1728 \begin_layout Standard
1729 All options of the preferences dialog are described in the Appendix 
1730 \emph on
1731 The Preferences Dialog
1732 \emph default
1733  in the 
1734 \emph on
1735 User's Guide
1736 \emph default
1737 .
1738  For some options you might find here more details.
1739 \end_layout
1740
1741 \begin_layout Section
1742 Formats
1743 \begin_inset CommandInset label
1744 LatexCommand label
1745 name "sec:Formats"
1746
1747 \end_inset
1748
1749
1750 \end_layout
1751
1752 \begin_layout Standard
1753 The first step is to define your file formats if they are not already defined.
1754  To do so,
1755  open the 
1756 \begin_inset Flex Noun
1757 status collapsed
1758
1759 \begin_layout Plain Layout
1760 Tools\SpecialChar menuseparator
1761 Preferences
1762 \end_layout
1763
1764 \end_inset
1765
1766  dialog.
1767  Under 
1768 \begin_inset Flex Noun
1769 status collapsed
1770
1771 \begin_layout Plain Layout
1772 File Handling\SpecialChar menuseparator
1773 File formats
1774 \end_layout
1775
1776 \end_inset
1777
1778  press the 
1779 \begin_inset Flex Noun
1780 status collapsed
1781
1782 \begin_layout Plain Layout
1783 New
1784 \end_layout
1785
1786 \end_inset
1787
1788  button to define your new format.
1789  The 
1790 \begin_inset Flex Noun
1791 status collapsed
1792
1793 \begin_layout Plain Layout
1794 Format
1795 \end_layout
1796
1797 \end_inset
1798
1799  field contains the name used to identify the format in the GUI.
1800  The 
1801 \begin_inset Flex Noun
1802 status collapsed
1803
1804 \begin_layout Plain Layout
1805 Short Name
1806 \end_layout
1807
1808 \end_inset
1809
1810  is used to identify the format internally.
1811  You will also need to enter a file extension.
1812  These are all required.
1813  The optional 
1814 \begin_inset Flex Noun
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Shortcut
1819 \end_layout
1820
1821 \end_inset
1822
1823  field is used to provide a keyboard shortcut on the menus.
1824  (For example,
1825  pressing 
1826 \begin_inset Flex Noun
1827 status collapsed
1828
1829 \begin_layout Plain Layout
1830 Ctrl+D
1831 \end_layout
1832
1833 \end_inset
1834
1835  will 
1836 \begin_inset Flex Noun
1837 status collapsed
1838
1839 \begin_layout Plain Layout
1840 Document\SpecialChar menuseparator
1841 View (Other Formats)\SpecialChar menuseparator
1842 DVI
1843 \end_layout
1844
1845 \end_inset
1846
1847 .) 
1848 \end_layout
1849
1850 \begin_layout Standard
1851 A Format can have a 
1852 \begin_inset Flex Noun
1853 status collapsed
1854
1855 \begin_layout Plain Layout
1856 Viewer
1857 \end_layout
1858
1859 \end_inset
1860
1861  and an 
1862 \begin_inset Flex Noun
1863 status collapsed
1864
1865 \begin_layout Plain Layout
1866 Editor
1867 \end_layout
1868
1869 \end_inset
1870
1871  associated with it.
1872  For example,
1873  you might want to use 
1874 \begin_inset Flex Noun
1875 status collapsed
1876
1877 \begin_layout Plain Layout
1878 Ghostview
1879 \end_layout
1880
1881 \end_inset
1882
1883  to view PostScript files.
1884  You can enter the command needed to start the program in the corresponding fields.
1885  In defining this command,
1886  you can use the four variables listed in the next section.
1887  The viewer is launched when you view an image in \SpecialChar LyX
1888  or use the 
1889 \begin_inset Flex Noun
1890 status collapsed
1891
1892 \begin_layout Plain Layout
1893 Document\SpecialChar menuseparator
1894 View
1895 \end_layout
1896
1897 \end_inset
1898
1899  menu.
1900  The editor is for example launched when you right-click on an image and choose 
1901 \begin_inset Flex Noun
1902 status collapsed
1903
1904 \begin_layout Plain Layout
1905 Edit externally
1906 \end_layout
1907
1908 \end_inset
1909
1910  in the appearing context menu.
1911 \end_layout
1912
1913 \begin_layout Standard
1914 The 
1915 \begin_inset Flex Noun
1916 status collapsed
1917
1918 \begin_layout Plain Layout
1919 MIME
1920 \end_layout
1921
1922 \end_inset
1923
1924  type of a format is optional,
1925  but if it is specified,
1926  it must be unique across all formats.
1927  It is used to detect files of this format from the file contents.
1928  For some important file formats there is no MIME type officially registered with the 
1929 \begin_inset CommandInset href
1930 LatexCommand href
1931 name "IANA"
1932 target "http://www.iana.org/assignments/media-types/"
1933 literal "false"
1934
1935 \end_inset
1936
1937 .
1938  Therefore \SpecialChar LyX
1939  uses the extended list of MIME types as specified by 
1940 \begin_inset CommandInset href
1941 LatexCommand href
1942 name "freedesktop.org"
1943 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1944 literal "false"
1945
1946 \end_inset
1947
1948 .
1949 \end_layout
1950
1951 \begin_layout Standard
1952 The 
1953 \begin_inset Flex Noun
1954 status collapsed
1955
1956 \begin_layout Plain Layout
1957 Document format
1958 \end_layout
1959
1960 \end_inset
1961
1962  option tells \SpecialChar LyX
1963  that a format is suitable for document export.
1964  If this is set and if a suitable conversion route exists (see 
1965 \begin_inset CommandInset ref
1966 LatexCommand ref
1967 reference "sec:Converters"
1968
1969 \end_inset
1970
1971 ),
1972  the format will appear in the 
1973 \begin_inset Flex Noun
1974 status collapsed
1975
1976 \begin_layout Plain Layout
1977 File\SpecialChar menuseparator
1978 Export
1979 \end_layout
1980
1981 \end_inset
1982
1983  menu.
1984  The format will also appear in the 
1985 \begin_inset Flex Noun
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 Document\SpecialChar menuseparator
1990 View
1991 \end_layout
1992
1993 \end_inset
1994
1995  menu if a viewer is specified for the format.
1996  Pure image formats,
1997  such as 
1998 \begin_inset Flex Code
1999 status collapsed
2000
2001 \begin_layout Plain Layout
2002 png
2003 \end_layout
2004
2005 \end_inset
2006
2007 ,
2008  should not use this option.
2009  Formats that can both represent vector graphics and documents like 
2010 \begin_inset Flex Code
2011 status collapsed
2012
2013 \begin_layout Plain Layout
2014 pdf
2015 \end_layout
2016
2017 \end_inset
2018
2019  should use it.
2020 \end_layout
2021
2022 \begin_layout Standard
2023 The option 
2024 \begin_inset Flex Noun
2025 status collapsed
2026
2027 \begin_layout Plain Layout
2028 Vector graphics format
2029 \end_layout
2030
2031 \end_inset
2032
2033  tells \SpecialChar LyX
2034  that a format can contain vector graphics.
2035  This information is used to determine the target format of included graphics for 
2036 \begin_inset Flex Noun
2037 status collapsed
2038
2039 \begin_layout Plain Layout
2040 pdflatex
2041 \end_layout
2042
2043 \end_inset
2044
2045  export.
2046  Included graphics may need to be converted to either 
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 pdf
2052 \end_layout
2053
2054 \end_inset
2055
2056 ,
2057  
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 png
2063 \end_layout
2064
2065 \end_inset
2066
2067 ,
2068  or 
2069 \begin_inset Flex Noun
2070 status collapsed
2071
2072 \begin_layout Plain Layout
2073 jpg
2074 \end_layout
2075
2076 \end_inset
2077
2078 ,
2079  since 
2080 \begin_inset Flex Noun
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084 pdflatex
2085 \end_layout
2086
2087 \end_inset
2088
2089  cannot handle other image formats.
2090  If an included graphic is not already in 
2091 \begin_inset Flex Noun
2092 status collapsed
2093
2094 \begin_layout Plain Layout
2095 pdf
2096 \end_layout
2097
2098 \end_inset
2099
2100 ,
2101  
2102 \begin_inset Flex Noun
2103 status collapsed
2104
2105 \begin_layout Plain Layout
2106 png
2107 \end_layout
2108
2109 \end_inset
2110
2111 ,
2112  or 
2113 \begin_inset Flex Noun
2114 status collapsed
2115
2116 \begin_layout Plain Layout
2117 jpg
2118 \end_layout
2119
2120 \end_inset
2121
2122  format,
2123  it is converted to 
2124 \begin_inset Flex Noun
2125 status collapsed
2126
2127 \begin_layout Plain Layout
2128 pdf
2129 \end_layout
2130
2131 \end_inset
2132
2133  if the vector format option is set,
2134  and otherwise to 
2135 \begin_inset Flex Noun
2136 status collapsed
2137
2138 \begin_layout Plain Layout
2139 png
2140 \end_layout
2141
2142 \end_inset
2143
2144 .
2145 \end_layout
2146
2147 \begin_layout Section
2148 Copiers
2149 \end_layout
2150
2151 \begin_layout Standard
2152 Since all conversions from one format to another take place in \SpecialChar LyX
2153 's temporary directory,
2154  it is sometimes necessary to modify a file before copying it to the temporary directory in order that the conversion may be performed.
2155 \begin_inset Foot
2156 status collapsed
2157
2158 \begin_layout Plain Layout
2159 For example,
2160  the file may refer to other files—
2161 images,
2162  for example—
2163 using relative file names,
2164  and these may become invalid when the file is copied to the temporary directory.
2165 \end_layout
2166
2167 \end_inset
2168
2169  This is done by a Copier:
2170  It copies a file to (or from) the temporary directory and may modify it in the process.
2171 \end_layout
2172
2173 \begin_layout Standard
2174 The definitions of the copiers may use eight variables:
2175 \end_layout
2176
2177 \begin_layout Labeling
2178 \labelwidthstring 00.00.0000
2179 \begin_inset Flex Code
2180 status collapsed
2181
2182 \begin_layout Plain Layout
2183 $$s
2184 \end_layout
2185
2186 \end_inset
2187
2188  The \SpecialChar LyX
2189  system directory (e.
2190 \begin_inset space \thinspace{}
2191 \end_inset
2192
2193 g.
2194 \begin_inset space \space{}
2195 \end_inset
2196
2197
2198 \begin_inset Flex Noun
2199 status collapsed
2200
2201 \begin_layout Plain Layout
2202 /usr/share/lyx
2203 \end_layout
2204
2205 \end_inset
2206
2207 ).
2208 \end_layout
2209
2210 \begin_layout Labeling
2211 \labelwidthstring 00.00.0000
2212 \begin_inset Flex Code
2213 status collapsed
2214
2215 \begin_layout Plain Layout
2216 $$i
2217 \end_layout
2218
2219 \end_inset
2220
2221  The input file
2222 \end_layout
2223
2224 \begin_layout Labeling
2225 \labelwidthstring 00.00.0000
2226 \begin_inset Flex Code
2227 status collapsed
2228
2229 \begin_layout Plain Layout
2230 $$o
2231 \end_layout
2232
2233 \end_inset
2234
2235  The output file
2236 \end_layout
2237
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Flex Code
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 $$b
2245 \end_layout
2246
2247 \end_inset
2248
2249  The base name (without filename extension) in the \SpecialChar LyX
2250  temporary directory
2251 \end_layout
2252
2253 \begin_layout Labeling
2254 \labelwidthstring 00.00.0000
2255 \begin_inset Flex Code
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 $$p
2260 \end_layout
2261
2262 \end_inset
2263
2264  The full directory path of the \SpecialChar LyX
2265  temporary directory
2266 \end_layout
2267
2268 \begin_layout Labeling
2269 \labelwidthstring 00.00.0000
2270 \begin_inset Flex Code
2271 status collapsed
2272
2273 \begin_layout Plain Layout
2274 $$r
2275 \end_layout
2276
2277 \end_inset
2278
2279  The full pathname to the original \SpecialChar LyX
2280  file being processed
2281 \end_layout
2282
2283 \begin_layout Labeling
2284 \labelwidthstring 00.00.0000
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 $$f
2290 \end_layout
2291
2292 \end_inset
2293
2294  The filename (without any directory path) of the \SpecialChar LyX
2295  file.
2296 \end_layout
2297
2298 \begin_layout Labeling
2299 \labelwidthstring 00.00.0000
2300 \begin_inset Flex Code
2301 status collapsed
2302
2303 \begin_layout Plain Layout
2304 $$l
2305 \end_layout
2306
2307 \end_inset
2308
2309  The `\SpecialChar LaTeX
2310  name'
2311 \end_layout
2312
2313 \begin_layout Standard
2314 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2315 's 
2316 \series bold
2317
2318 \backslash
2319 include
2320 \series default
2321  command.
2322  It is relevant only when exporting files suitable for such inclusion.
2323 \end_layout
2324
2325 \begin_layout Standard
2326 Copiers can be used to do almost anything with output files.
2327  For example,
2328  suppose you want generated pdf files to be copied to a special directory,
2329  
2330 \begin_inset Flex Code
2331 status collapsed
2332
2333 \begin_layout Plain Layout
2334 /home/you/pdf/
2335 \end_layout
2336
2337 \end_inset
2338
2339 .
2340  Then you could write a shell script such as this one:
2341 \end_layout
2342
2343 \begin_layout Standard
2344 \begin_inset listings
2345 inline false
2346 status open
2347
2348 \begin_layout Plain Layout
2349
2350 #!/bin/bash
2351 \end_layout
2352
2353 \begin_layout Plain Layout
2354
2355 FROMFILE=$1
2356 \end_layout
2357
2358 \begin_layout Plain Layout
2359
2360 TOFILE=`basename $2`
2361 \end_layout
2362
2363 \begin_layout Plain Layout
2364
2365 cp $FROMFILE /home/you/pdf/$TOFILE
2366 \end_layout
2367
2368 \end_inset
2369
2370 Save it in your local \SpecialChar LyX
2371  directory—
2372 say,
2373  
2374 \begin_inset Flex Code
2375 status collapsed
2376
2377 \begin_layout Plain Layout
2378 /home/you/.lyx/scripts/pdfcopier.sh
2379 \end_layout
2380
2381 \end_inset
2382
2383
2384 and make it executable,
2385  if you need to do so on your platform.
2386  Then,
2387  in the 
2388 \begin_inset Flex Noun
2389 status collapsed
2390
2391 \begin_layout Plain Layout
2392 Tools\SpecialChar menuseparator
2393 Preferences
2394 \end_layout
2395
2396 \end_inset
2397
2398  dialog,
2399  select under 
2400 \begin_inset Flex Noun
2401 status collapsed
2402
2403 \begin_layout Plain Layout
2404 File Handling\SpecialChar menuseparator
2405 File formats
2406 \end_layout
2407
2408 \end_inset
2409
2410  the 
2411 \begin_inset Flex Noun
2412 status collapsed
2413
2414 \begin_layout Plain Layout
2415 PDF(pdflatex)
2416 \end_layout
2417
2418 \end_inset
2419
2420  format—
2421 or one of the other pdf formats—
2422 and enter 
2423 \begin_inset Flex Code
2424 status collapsed
2425
2426 \begin_layout Plain Layout
2427 pdfcopier.sh $$i $$o
2428 \end_layout
2429
2430 \end_inset
2431
2432  into the 
2433 \begin_inset Flex Noun
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Copier
2438 \end_layout
2439
2440 \end_inset
2441
2442  field.
2443  
2444 \end_layout
2445
2446 \begin_layout Standard
2447 Copiers are used by \SpecialChar LyX
2448  in various of its own conversions.
2449  For example,
2450  if appropriate programs are found,
2451  \SpecialChar LyX
2452  will automatically install copiers for the 
2453 \begin_inset Flex Noun
2454 status collapsed
2455
2456 \begin_layout Plain Layout
2457 HTML
2458 \end_layout
2459
2460 \end_inset
2461
2462  and 
2463 \begin_inset Flex Noun
2464 status collapsed
2465
2466 \begin_layout Plain Layout
2467 HTML
2468 \begin_inset space ~
2469 \end_inset
2470
2471 (MS Word)
2472 \end_layout
2473
2474 \end_inset
2475
2476  formats.
2477  When these formats are exported,
2478  the copier sees that not just the main HTML file but various associated files (style files,
2479  images,
2480  etc.) are also copied.
2481  All these files are written to a subdirectory of the directory in which the original \SpecialChar LyX
2482  file was found.
2483 \begin_inset Foot
2484 status collapsed
2485
2486 \begin_layout Plain Layout
2487 This copier can be customized.
2488  The optional 
2489 \begin_inset Quotes eld
2490 \end_inset
2491
2492 -e
2493 \begin_inset Quotes erd
2494 \end_inset
2495
2496  argument takes a comma-separated list of extensions to be copied;
2497  if it is omitted,
2498  all files will be copied.
2499  The 
2500 \begin_inset Quotes eld
2501 \end_inset
2502
2503 -t
2504 \begin_inset Quotes erd
2505 \end_inset
2506
2507  argument determines the extension added to the generated directory.
2508  By default,
2509  it is 
2510 \begin_inset Quotes eld
2511 \end_inset
2512
2513
2514 \begin_inset Flex Noun
2515 status collapsed
2516
2517 \begin_layout Plain Layout
2518 LyXconv
2519 \end_layout
2520
2521 \end_inset
2522
2523
2524 \begin_inset Quotes erd
2525 \end_inset
2526
2527 ,
2528  so HTML generated from 
2529 \begin_inset Flex Noun
2530 status collapsed
2531
2532 \begin_layout Plain Layout
2533 /path/to/filename.lyx
2534 \end_layout
2535
2536 \end_inset
2537
2538  will end up in 
2539 \begin_inset Flex Noun
2540 status collapsed
2541
2542 \begin_layout Plain Layout
2543 /path/to/filename.html.LyXconv
2544 \end_layout
2545
2546 \end_inset
2547
2548 .
2549  
2550 \end_layout
2551
2552 \end_inset
2553
2554
2555 \end_layout
2556
2557 \begin_layout Section
2558 Converters
2559 \begin_inset CommandInset label
2560 LatexCommand label
2561 name "sec:Converters"
2562
2563 \end_inset
2564
2565
2566 \end_layout
2567
2568 \begin_layout Standard
2569 You can define your own Converters to convert files between different formats.
2570  This is done in the 
2571 \begin_inset Flex Noun
2572 status collapsed
2573
2574 \begin_layout Plain Layout
2575 Tools\SpecialChar menuseparator
2576 Preferences\SpecialChar menuseparator
2577 File Handling\SpecialChar menuseparator
2578 Converters
2579 \end_layout
2580
2581 \end_inset
2582
2583  dialog.
2584 \end_layout
2585
2586 \begin_layout Standard
2587 To define a new converter,
2588  select the 
2589 \begin_inset Flex Noun
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 From
2594 \begin_inset space ~
2595 \end_inset
2596
2597 format
2598 \end_layout
2599
2600 \end_inset
2601
2602  and 
2603 \begin_inset Flex Noun
2604 status collapsed
2605
2606 \begin_layout Plain Layout
2607 To
2608 \begin_inset space ~
2609 \end_inset
2610
2611 format
2612 \end_layout
2613
2614 \end_inset
2615
2616  from the drop-down lists,
2617  enter the command needed for the conversion,
2618  and then press the 
2619 \begin_inset Flex Noun
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 Add
2624 \end_layout
2625
2626 \end_inset
2627
2628  button.
2629  Several variables can be used in the definition of converters:
2630 \end_layout
2631
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2634 \begin_inset Flex Code
2635 status collapsed
2636
2637 \begin_layout Plain Layout
2638 $$s
2639 \end_layout
2640
2641 \end_inset
2642
2643  The \SpecialChar LyX
2644  system directory
2645 \end_layout
2646
2647 \begin_layout Labeling
2648 \labelwidthstring 00.00.0000
2649 \begin_inset Flex Code
2650 status collapsed
2651
2652 \begin_layout Plain Layout
2653 $$i
2654 \end_layout
2655
2656 \end_inset
2657
2658  The input file
2659 \end_layout
2660
2661 \begin_layout Labeling
2662 \labelwidthstring 00.00.0000
2663 \begin_inset Flex Code
2664 status collapsed
2665
2666 \begin_layout Plain Layout
2667 $$o
2668 \end_layout
2669
2670 \end_inset
2671
2672  The output file
2673 \end_layout
2674
2675 \begin_layout Labeling
2676 \labelwidthstring 00.00.0000
2677 \begin_inset Flex Code
2678 status collapsed
2679
2680 \begin_layout Plain Layout
2681 $$b
2682 \end_layout
2683
2684 \end_inset
2685
2686  The base filename of the input file (i.
2687 \begin_inset space \thinspace{}
2688 \end_inset
2689
2690 g.,
2691  without the extension)
2692 \end_layout
2693
2694 \begin_layout Labeling
2695 \labelwidthstring 00.00.0000
2696 \begin_inset Flex Code
2697 status collapsed
2698
2699 \begin_layout Plain Layout
2700 $$p
2701 \end_layout
2702
2703 \end_inset
2704
2705  The path to the input file
2706 \end_layout
2707
2708 \begin_layout Labeling
2709 \labelwidthstring 00.00.0000
2710 \begin_inset Flex Code
2711 status collapsed
2712
2713 \begin_layout Plain Layout
2714 $$r
2715 \end_layout
2716
2717 \end_inset
2718
2719  The path to the original input file (this is different from $$p when a chain of converters is called)
2720 \end_layout
2721
2722 \begin_layout Labeling
2723 \labelwidthstring 00.00.0000
2724 \begin_inset Flex Code
2725 status collapsed
2726
2727 \begin_layout Plain Layout
2728 $$e
2729 \end_layout
2730
2731 \end_inset
2732
2733  The iconv name for the encoding of the document.
2734 \end_layout
2735
2736 \begin_layout Standard
2737 In the 
2738 \begin_inset Flex Noun
2739 status collapsed
2740
2741 \begin_layout Plain Layout
2742 Extra
2743 \begin_inset space ~
2744 \end_inset
2745
2746 Flag
2747 \end_layout
2748
2749 \end_inset
2750
2751  field you can enter the following flags,
2752  separated by commas:
2753 \end_layout
2754
2755 \begin_layout Labeling
2756 \labelwidthstring 00.00.0000
2757 \begin_inset Flex Code
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 latex
2762 \change_inserted -712698321 1524656940
2763 =flavor
2764 \change_unchanged
2765
2766 \end_layout
2767
2768 \end_inset
2769
2770  This converter runs some form of \SpecialChar LaTeX
2771 .
2772  This will make \SpecialChar LyX
2773 's \SpecialChar LaTeX
2774  error logs available.
2775
2776 \change_inserted -712698321 1524657018
2777  The optional 
2778 \begin_inset Flex Code
2779 status open
2780
2781 \begin_layout Plain Layout
2782
2783 \change_inserted -712698321 1524657012
2784 flavor
2785 \change_unchanged
2786
2787 \end_layout
2788
2789 \end_inset
2790
2791  value specifies the form of \SpecialChar LaTeX
2792  that is run (
2793 \begin_inset Flex Code
2794 status open
2795
2796 \begin_layout Plain Layout
2797
2798 \change_inserted -712698321 1524657005
2799 latex,
2800  pdflatex,
2801  platex,
2802  xetex,
2803  luatex
2804 \change_unchanged
2805
2806 \end_layout
2807
2808 \end_inset
2809
2810 ).
2811  If no value is specified,
2812  
2813 \begin_inset Flex Code
2814 status open
2815
2816 \begin_layout Plain Layout
2817
2818 \change_inserted -712698321 1524657018
2819 latex
2820 \change_unchanged
2821
2822 \end_layout
2823
2824 \end_inset
2825
2826  is used.
2827 \change_unchanged
2828
2829 \end_layout
2830
2831 \begin_layout Labeling
2832 \labelwidthstring 00.00.0000
2833 \begin_inset Flex Code
2834 status collapsed
2835
2836 \begin_layout Plain Layout
2837 needaux
2838 \change_inserted -712698321 1524656935
2839 =flavor
2840 \change_unchanged
2841
2842 \end_layout
2843
2844 \end_inset
2845
2846  Needs the \SpecialChar LaTeX
2847  
2848 \begin_inset Flex Noun
2849 status collapsed
2850
2851 \begin_layout Plain Layout
2852 .aux
2853 \end_layout
2854
2855 \end_inset
2856
2857  file for the conversion.
2858
2859 \change_inserted -712698321 1524657047
2860  The optional 
2861 \begin_inset Flex Code
2862 status open
2863
2864 \begin_layout Plain Layout
2865
2866 \change_inserted -712698321 1524657030
2867 flavor
2868 \change_unchanged
2869
2870 \end_layout
2871
2872 \end_inset
2873
2874  value specifies the form of \SpecialChar LaTeX
2875  that is run in order to generate the 
2876 \begin_inset Flex Noun
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880
2881 \change_inserted -712698321 1524657047
2882 .aux
2883 \change_unchanged
2884
2885 \end_layout
2886
2887 \end_inset
2888
2889  file (
2890 \begin_inset Flex Code
2891 status open
2892
2893 \begin_layout Plain Layout
2894
2895 \change_inserted -712698321 1524657030
2896 latex,
2897  pdflatex,
2898  platex,
2899  xetex,
2900  luatex
2901 \change_unchanged
2902
2903 \end_layout
2904
2905 \end_inset
2906
2907 ).
2908  If no value is specified,
2909  
2910 \begin_inset Flex Code
2911 status open
2912
2913 \begin_layout Plain Layout
2914
2915 \change_inserted -712698321 1524657030
2916 latex
2917 \change_unchanged
2918
2919 \end_layout
2920
2921 \end_inset
2922
2923  is used.
2924 \change_unchanged
2925
2926 \end_layout
2927
2928 \begin_layout Labeling
2929 \labelwidthstring 00.00.0000
2930 \begin_inset Flex Code
2931 status collapsed
2932
2933 \begin_layout Plain Layout
2934 nice
2935 \end_layout
2936
2937 \end_inset
2938
2939  Needs a 
2940 \begin_inset Quotes eld
2941 \end_inset
2942
2943 nice
2944 \begin_inset Quotes erd
2945 \end_inset
2946
2947  file from the backend,
2948  which in practice means a \SpecialChar LaTeX
2949  file like the one we would export,
2950  without 
2951 \begin_inset Flex Code
2952 status collapsed
2953
2954 \begin_layout Plain Layout
2955 input@path
2956 \end_layout
2957
2958 \end_inset
2959
2960 .
2961 \end_layout
2962
2963 \begin_layout Labeling
2964 \labelwidthstring 00.00.0000
2965 \begin_inset Flex Code
2966 status collapsed
2967
2968 \begin_layout Plain Layout
2969 xml
2970 \end_layout
2971
2972 \end_inset
2973
2974  Output is XML.
2975 \end_layout
2976
2977 \begin_layout Standard
2978 The following three flags are not really flags at all because they take an argument in the 
2979 \begin_inset Flex Noun
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 key
2984 \begin_inset space ~
2985 \end_inset
2986
2987 =
2988 \begin_inset space ~
2989 \end_inset
2990
2991 value
2992 \end_layout
2993
2994 \end_inset
2995
2996  format:
2997 \end_layout
2998
2999 \begin_layout Labeling
3000 \labelwidthstring 00.00.0000
3001
3002 \change_inserted -712698321 1523206314
3003 \begin_inset Flex Code
3004 status collapsed
3005
3006 \begin_layout Plain Layout
3007
3008 \change_inserted -712698321 1523206193
3009 hyperref-driver
3010 \change_unchanged
3011
3012 \end_layout
3013
3014 \end_inset
3015
3016  The name of the driver that needs to be loaded with the 
3017 \family sans
3018 hyperref
3019 \family default
3020  package for this converter.
3021  The loading of the correct driver is necessary to get some PDF-specific features.
3022  See the 
3023 \family sans
3024 hyperref
3025 \family default
3026  manual for details.
3027 \end_layout
3028
3029 \begin_layout Labeling
3030 \labelwidthstring 00.00.0000
3031 \begin_inset Flex Code
3032 status collapsed
3033
3034 \begin_layout Plain Layout
3035 parselog
3036 \end_layout
3037
3038 \end_inset
3039
3040  If set,
3041  the converter's standard error will be redirected to a file 
3042 \begin_inset Flex Code
3043 status collapsed
3044
3045 \begin_layout Plain Layout
3046 infile.out
3047 \end_layout
3048
3049 \end_inset
3050
3051 ,
3052  and the script given as argument will be run as:
3053  
3054 \begin_inset Flex Code
3055 status collapsed
3056
3057 \begin_layout Plain Layout
3058 script < infile.out > infile.log
3059 \end_layout
3060
3061 \end_inset
3062
3063 .
3064  The argument may contain 
3065 \begin_inset Flex Code
3066 status collapsed
3067
3068 \begin_layout Plain Layout
3069 $$s
3070 \end_layout
3071
3072 \end_inset
3073
3074 .
3075 \end_layout
3076
3077 \begin_layout Labeling
3078 \labelwidthstring 00.00.0000
3079 \begin_inset Flex Code
3080 status collapsed
3081
3082 \begin_layout Plain Layout
3083 resultdir
3084 \end_layout
3085
3086 \end_inset
3087
3088  The name of the directory in which the converter will dump the generated files.
3089  \SpecialChar LyX
3090  will not create this directory,
3091  and it does not copy anything into it,
3092  though it will copy this directory to the destination.
3093  The argument may contain 
3094 \begin_inset Flex Code
3095 status collapsed
3096
3097 \begin_layout Plain Layout
3098 $$b
3099 \end_layout
3100
3101 \end_inset
3102
3103 ,
3104  which will be replaced by the base name of the input and output files,
3105  respectively,
3106  when the directory is copied.
3107 \begin_inset Newline newline
3108 \end_inset
3109
3110 Note that resultdir and usetempdir make no sense together.
3111  The latter will be ignored if the former is given.
3112 \end_layout
3113
3114 \begin_layout Labeling
3115 \labelwidthstring 00.00.0000
3116 \begin_inset Flex Code
3117 status collapsed
3118
3119 \begin_layout Plain Layout
3120 resultfile
3121 \end_layout
3122
3123 \end_inset
3124
3125  Determines the output file name and may,
3126  contain 
3127 \begin_inset Flex Code
3128 status collapsed
3129
3130 \begin_layout Plain Layout
3131 $$b
3132 \end_layout
3133
3134 \end_inset
3135
3136 .
3137  Sensible only with resultdir and optional even then;
3138  if not given,
3139  it defaults to `index'.
3140 \end_layout
3141
3142 \begin_layout Standard
3143
3144 \change_inserted -712698321 1523206384
3145 A suitable hyperref-driver is set for some converters that are installed with \SpecialChar LyX
3146 .
3147  
3148 \change_deleted -712698321 1523206388
3149 None of these
3150 \change_inserted -712698321 1523206389
3151 The
3152 \change_unchanged
3153  last three
3154 \change_inserted -712698321 1523206400
3155  flags,
3156  however,
3157
3158 \change_unchanged
3159  are presently 
3160 \change_inserted -712698321 1523206407
3161 not 
3162 \change_unchanged
3163 used in any of the 
3164 \change_inserted -712698321 1523206437
3165 pre-installed 
3166 \change_unchanged
3167 converters
3168 \change_deleted -712698321 1523206442
3169  that are installed with \SpecialChar LyX
3170
3171 \change_unchanged
3172 .
3173  
3174 \end_layout
3175
3176 \begin_layout Standard
3177 You do not have to define converters for all formats between which you want to convert.
3178  For example,
3179  you will note that there is no `\SpecialChar LyX
3180  to PostScript' converter,
3181  but \SpecialChar LyX
3182  will export PostScript.
3183  It does so by first creating a \SpecialChar LaTeX
3184  file (no converter needs to be defined for this) which is then converted to DVI using the `\SpecialChar LaTeX
3185  to DVI' converter,
3186  and finally converting the resulting DVI file to PostScript.
3187  \SpecialChar LyX
3188  finds such `chains' of converters automatically,
3189  and it will always choose the shortest possible chain.
3190  You can,
3191  though,
3192  still define multiple conversion methods between file formats.
3193  For example,
3194  the standard \SpecialChar LyX
3195  configuration provides five ways to convert \SpecialChar LaTeX
3196  to PDF:
3197 \end_layout
3198
3199 \begin_layout Enumerate
3200 Directly,
3201  using 
3202 \begin_inset Flex Noun
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206 pdflatex
3207 \end_layout
3208
3209 \end_inset
3210
3211
3212 \end_layout
3213
3214 \begin_layout Enumerate
3215 via (DVI and) PostScript,
3216  using 
3217 \begin_inset Flex Noun
3218 status collapsed
3219
3220 \begin_layout Plain Layout
3221 ps2pdf
3222 \end_layout
3223
3224 \end_inset
3225
3226
3227 \end_layout
3228
3229 \begin_layout Enumerate
3230 via DVI,
3231  using 
3232 \begin_inset Flex Noun
3233 status collapsed
3234
3235 \begin_layout Plain Layout
3236 dvipdfm
3237 \end_layout
3238
3239 \end_inset
3240
3241
3242 \end_layout
3243
3244 \begin_layout Enumerate
3245 directly using 
3246 \begin_inset Flex Noun
3247 status collapsed
3248
3249 \begin_layout Plain Layout
3250 Xe\SpecialChar TeX
3251
3252 \end_layout
3253
3254 \end_inset
3255
3256
3257 \end_layout
3258
3259 \begin_layout Enumerate
3260 directly using 
3261 \begin_inset Flex Noun
3262 status collapsed
3263
3264 \begin_layout Plain Layout
3265 Lua\SpecialChar TeX
3266
3267 \end_layout
3268
3269 \end_inset
3270
3271
3272 \end_layout
3273
3274 \begin_layout Standard
3275 To define such alternate chains,
3276  you must define multiple target `file formats',
3277  as described in 
3278 \begin_inset CommandInset ref
3279 LatexCommand ref
3280 reference "sec:Formats"
3281
3282 \end_inset
3283
3284 .
3285  For example,
3286  in the standard configuration,
3287  the formats named 
3288 \begin_inset Flex Noun
3289 status collapsed
3290
3291 \begin_layout Plain Layout
3292 pdf
3293 \end_layout
3294
3295 \end_inset
3296
3297  (for 
3298 \begin_inset Flex Noun
3299 status collapsed
3300
3301 \begin_layout Plain Layout
3302 ps2pdf
3303 \end_layout
3304
3305 \end_inset
3306
3307 ),
3308  
3309 \begin_inset Flex Noun
3310 status collapsed
3311
3312 \begin_layout Plain Layout
3313 pdf2
3314 \end_layout
3315
3316 \end_inset
3317
3318  (for 
3319 \begin_inset Flex Noun
3320 status collapsed
3321
3322 \begin_layout Plain Layout
3323 pdflatex
3324 \end_layout
3325
3326 \end_inset
3327
3328 ),
3329  
3330 \begin_inset Flex Noun
3331 status collapsed
3332
3333 \begin_layout Plain Layout
3334 pdf3
3335 \end_layout
3336
3337 \end_inset
3338
3339  (for 
3340 \begin_inset Flex Noun
3341 status collapsed
3342
3343 \begin_layout Plain Layout
3344 dvipdfm
3345 \end_layout
3346
3347 \end_inset
3348
3349 ),
3350  
3351 \begin_inset Flex Noun
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355 pdf4
3356 \end_layout
3357
3358 \end_inset
3359
3360  (for 
3361 \begin_inset Flex Noun
3362 status collapsed
3363
3364 \begin_layout Plain Layout
3365 Xe\SpecialChar TeX
3366
3367 \end_layout
3368
3369 \end_inset
3370
3371 ),
3372  and 
3373 \begin_inset Flex Noun
3374 status collapsed
3375
3376 \begin_layout Plain Layout
3377 pdf5
3378 \end_layout
3379
3380 \end_inset
3381
3382  (for 
3383 \begin_inset Flex Noun
3384 status collapsed
3385
3386 \begin_layout Plain Layout
3387 Lua\SpecialChar TeX
3388
3389 \end_layout
3390
3391 \end_inset
3392
3393 ) are defined,
3394  all of which share the extension 
3395 \begin_inset Flex Noun
3396 status collapsed
3397
3398 \begin_layout Plain Layout
3399 .pdf
3400 \end_layout
3401
3402 \end_inset
3403
3404 ,
3405  and which correspond to the conversion methods just mentioned.
3406 \end_layout
3407
3408 \begin_layout Chapter
3409 Internationalizing \SpecialChar LyX
3410
3411 \begin_inset CommandInset label
3412 LatexCommand label
3413 name "cha:Internationalizing-LyX"
3414
3415 \end_inset
3416
3417
3418 \end_layout
3419
3420 \begin_layout Standard
3421 \SpecialChar LyX
3422  supports using a translated interface.
3423  Last time we checked,
3424  \SpecialChar LyX
3425  provided text in thirty languages.
3426  The language of choice is called your 
3427 \emph on
3428 locale
3429 \emph default
3430 .
3431  (For further reading on locale settings,
3432  see also the documentation for locale that comes with your operating system.
3433  For Linux,
3434  the manual page for 
3435 \begin_inset Flex Code
3436 status collapsed
3437
3438 \begin_layout Plain Layout
3439 locale(5)
3440 \end_layout
3441
3442 \end_inset
3443
3444  could be a good place to start).
3445 \end_layout
3446
3447 \begin_layout Standard
3448 Notice that these translations will work,
3449  but do contain a few flaws.
3450  In particular,
3451  all dialogs have been designed with the English text in mind,
3452  which means that some of the translated text will be too large to fit within the space allocated.
3453  This is only a display problem and will not cause any harm.
3454  Also,
3455  you will find that some of the translations do not define shortcut keys for everything.
3456  Sometimes,
3457  there are simply not enough free letters to do it.
3458  Other times,
3459  the translator just hasn't got around to doing it yet.
3460  Our localization team,
3461  which you may wish to join,
3462 \begin_inset Foot
3463 status collapsed
3464
3465 \begin_layout Plain Layout
3466 If you are a fluent speaker of a language other than English,
3467  joining these teams is a great way to give back to the \SpecialChar LyX
3468  community!
3469 \end_layout
3470
3471 \end_inset
3472
3473  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3474 .
3475 \end_layout
3476
3477 \begin_layout Section
3478 Translating \SpecialChar LyX
3479
3480 \end_layout
3481
3482 \begin_layout Subsection
3483 Translating the graphical user interface (text messages).
3484 \end_layout
3485
3486 \begin_layout Standard
3487 \SpecialChar LyX
3488  uses the GNU 
3489 \begin_inset Flex Code
3490 status collapsed
3491
3492 \begin_layout Plain Layout
3493 gettext
3494 \end_layout
3495
3496 \end_inset
3497
3498  library to handle the internationalization of the interface.
3499  To have \SpecialChar LyX
3500  speak your favorite language in all menus and dialogs,
3501  you need a 
3502 \begin_inset Flex Code
3503 status collapsed
3504
3505 \begin_layout Plain Layout
3506 po
3507 \end_layout
3508
3509 \end_inset
3510
3511 -file for that language.
3512  When this is available,
3513  you'll have to generate a 
3514 \begin_inset Flex Code
3515 status collapsed
3516
3517 \begin_layout Plain Layout
3518 mo
3519 \end_layout
3520
3521 \end_inset
3522
3523 -file from it and install the 
3524 \begin_inset Flex Code
3525 status collapsed
3526
3527 \begin_layout Plain Layout
3528 mo
3529 \end_layout
3530
3531 \end_inset
3532
3533 -file.
3534  The process of doing all of this is explained in the documentation for GNU 
3535 \begin_inset Flex Code
3536 status collapsed
3537
3538 \begin_layout Plain Layout
3539 gettext
3540 \end_layout
3541
3542 \end_inset
3543
3544 .
3545  It is possible to do this just for yourself,
3546  but if you're going to do it,
3547  you might as well share the results of your labors with the rest of the \SpecialChar LyX
3548  community.
3549  Send a message to the \SpecialChar LyX
3550  developers' list for more information about how to proceed.
3551 \end_layout
3552
3553 \begin_layout Standard
3554 In short,
3555  this is what you should do (xx denotes the language code):
3556 \end_layout
3557
3558 \begin_layout Itemize
3559 Check out the \SpecialChar LyX
3560  source code.
3561  (See the 
3562 \begin_inset CommandInset href
3563 LatexCommand href
3564 name "information on the web"
3565 target "https://www.lyx.org/HowToUseGIT"
3566 literal "false"
3567
3568 \end_inset
3569
3570 .)
3571 \end_layout
3572
3573 \begin_layout Itemize
3574 Copy the file 
3575 \begin_inset Flex Code
3576 status collapsed
3577
3578 \begin_layout Plain Layout
3579 lyx.pot
3580 \end_layout
3581
3582 \end_inset
3583
3584  to the folder of the 
3585 \begin_inset Flex Code
3586 status collapsed
3587
3588 \begin_layout Plain Layout
3589 **.po
3590 \end_layout
3591
3592 \end_inset
3593
3594  files.
3595  Then rename it to 
3596 \begin_inset Flex Code
3597 status collapsed
3598
3599 \begin_layout Plain Layout
3600 xx.po
3601 \end_layout
3602
3603 \end_inset
3604
3605 .
3606  (If 
3607 \begin_inset Flex Code
3608 status collapsed
3609
3610 \begin_layout Plain Layout
3611 lyx.pot
3612 \end_layout
3613
3614 \end_inset
3615
3616  doesn't exist anywhere,
3617  it can be remade with the console command 
3618 \begin_inset Flex Code
3619 status collapsed
3620
3621 \begin_layout Plain Layout
3622 make lyx.pot
3623 \end_layout
3624
3625 \end_inset
3626
3627  in that directory,
3628  or you can use an existing po-file for some other language as a template).
3629 \end_layout
3630
3631 \begin_layout Itemize
3632 Edit 
3633 \begin_inset Flex Code
3634 status collapsed
3635
3636 \begin_layout Plain Layout
3637 xx.po
3638 \end_layout
3639
3640 \end_inset
3641
3642 .
3643 \begin_inset Foot
3644 status collapsed
3645
3646 \begin_layout Plain Layout
3647 This is just a text file,
3648  so it can be edited in any text editor.
3649  But there are also specialized programs that support such editing,
3650  such as 
3651 \family typewriter
3652 Poedit
3653 \family default
3654  (for all platforms) or 
3655 \family typewriter
3656 KBabel
3657 \family default
3658  (for KDE).
3659  
3660 \family typewriter
3661 Emacs
3662 \family default
3663  contains a `mode' for editing 
3664 \begin_inset Flex Code
3665 status collapsed
3666
3667 \begin_layout Plain Layout
3668 po
3669 \end_layout
3670
3671 \end_inset
3672
3673  files,
3674  as well,
3675  see 
3676 \begin_inset Flex URL
3677 status open
3678
3679 \begin_layout Plain Layout
3680
3681 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3682 \end_layout
3683
3684 \end_inset
3685
3686 .
3687 \end_layout
3688
3689 \end_inset
3690
3691  For some menu- and widget-labels,
3692  there are also shortcut keys that should be translated.
3693  Those keys are marked after a `|',
3694  and should be translated according to the words and phrases of the language.
3695  You should also fill also out the information at the beginning of the new 
3696 \begin_inset Flex Code
3697 status collapsed
3698
3699 \begin_layout Plain Layout
3700 po
3701 \end_layout
3702
3703 \end_inset
3704
3705 -file with your email-address,
3706  etc.,
3707  so people know where to reach you with suggestions and entertaining flames.
3708 \end_layout
3709
3710 \begin_layout Standard
3711 If you are just doing this on your own,
3712  then:
3713 \end_layout
3714
3715 \begin_layout Itemize
3716 Generate 
3717 \begin_inset Flex Code
3718 status collapsed
3719
3720 \begin_layout Plain Layout
3721 xx.mo
3722 \end_layout
3723
3724 \end_inset
3725
3726 .
3727  This can be done with 
3728 \begin_inset Flex Code
3729 status collapsed
3730
3731 \begin_layout Plain Layout
3732 msgfmt -o xx.mo < xx.po
3733 \end_layout
3734
3735 \end_inset
3736
3737 .
3738 \end_layout
3739
3740 \begin_layout Itemize
3741 Copy the 
3742 \begin_inset Flex Code
3743 status collapsed
3744
3745 \begin_layout Plain Layout
3746 mo
3747 \end_layout
3748
3749 \end_inset
3750
3751 -file to your locale-tree,
3752  at the correct directory for application messages for the language
3753 \series bold
3754  
3755 \series default
3756 xx,
3757  and under the name 
3758 \begin_inset Flex Code
3759 status collapsed
3760
3761 \begin_layout Plain Layout
3762 lyx.mo
3763 \end_layout
3764
3765 \end_inset
3766
3767  (e.
3768 \begin_inset space \thinspace{}
3769 \end_inset
3770
3771 g.
3772 \begin_inset space \space{}
3773 \end_inset
3774
3775
3776 \begin_inset Flex Code
3777 status collapsed
3778
3779 \begin_layout Plain Layout
3780 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3781 \end_layout
3782
3783 \end_inset
3784
3785
3786 \series bold
3787 .
3788 \end_layout
3789
3790 \begin_layout Standard
3791 As said,
3792  however,
3793  it would be best if the new 
3794 \begin_inset Flex Code
3795 status collapsed
3796
3797 \begin_layout Plain Layout
3798 po
3799 \end_layout
3800
3801 \end_inset
3802
3803  file could be added to the \SpecialChar LyX
3804  distribution,
3805  so others can use it.
3806  Adding it involves making additional changes to \SpecialChar LyX
3807 .
3808  So send an email to the developers' mailing list if you're interested in doing that.
3809 \end_layout
3810
3811 \begin_layout Subsubsection
3812 Ambiguous messages
3813 \end_layout
3814
3815 \begin_layout Standard
3816 Sometimes it turns out that one English message needs to be translated into different messages in the target language.
3817  One example is the message 
3818 \begin_inset Flex Code
3819 status collapsed
3820
3821 \begin_layout Plain Layout
3822 To
3823 \end_layout
3824
3825 \end_inset
3826
3827  which has the German translation 
3828 \lang german
3829 Nach
3830 \lang english
3831  or 
3832 \lang german
3833 Bis
3834 \lang english
3835 ,
3836  depending upon exactly what the English 
3837 \begin_inset Quotes eld
3838 \end_inset
3839
3840 to
3841 \begin_inset Quotes erd
3842 \end_inset
3843
3844  means.
3845  GNU 
3846 \begin_inset Flex Code
3847 status collapsed
3848
3849 \begin_layout Plain Layout
3850 gettext
3851 \end_layout
3852
3853 \end_inset
3854
3855  does not handle such ambiguous translations.
3856  Therefore you have to add some context information to the message:
3857  Instead of 
3858 \begin_inset Flex Code
3859 status collapsed
3860
3861 \begin_layout Plain Layout
3862 To
3863 \end_layout
3864
3865 \end_inset
3866
3867  it becomes 
3868 \begin_inset Flex Code
3869 status collapsed
3870
3871 \begin_layout Plain Layout
3872 To[[as in 'From format x to format y']]
3873 \end_layout
3874
3875 \end_inset
3876
3877  and 
3878 \begin_inset Flex Code
3879 status collapsed
3880
3881 \begin_layout Plain Layout
3882 To[[as in 'From page x to page y']].
3883 \end_layout
3884
3885 \end_inset
3886
3887  Now the two occurrences of 
3888 \begin_inset Flex Code
3889 status collapsed
3890
3891 \begin_layout Plain Layout
3892 To
3893 \end_layout
3894
3895 \end_inset
3896
3897  are different for 
3898 \begin_inset Flex Code
3899 status collapsed
3900
3901 \begin_layout Plain Layout
3902 gettext
3903 \end_layout
3904
3905 \end_inset
3906
3907  and can be translated correctly to 
3908 \lang german
3909 Nach
3910 \lang english
3911  and 
3912 \lang german
3913 Bis
3914 \lang english
3915 ,
3916  respectively.
3917 \end_layout
3918
3919 \begin_layout Standard
3920 Of course the context information needs to be stripped off the original message when no translation is used.
3921  Therefore you have to put it in double square brackets at the end of the message (see the example above).
3922  The translation mechanism of \SpecialChar LyX
3923  ensures that everything in double square brackets at the end of messages is removed before displaying the message.
3924 \end_layout
3925
3926 \begin_layout Subsection
3927 Translating the documentation.
3928 \end_layout
3929
3930 \begin_layout Standard
3931 The online documentation (in the 
3932 \begin_inset Flex Noun
3933 status collapsed
3934
3935 \begin_layout Plain Layout
3936 Help
3937 \end_layout
3938
3939 \end_inset
3940
3941 -menu) can (and should!) be translated.
3942  If there are translated versions of the documentation available
3943 \begin_inset Foot
3944 status collapsed
3945
3946 \begin_layout Plain Layout
3947 As of March 2008,
3948  at least some of the documents have been translated into fourteen languages,
3949  with the Tutorial available in a few more.
3950 \end_layout
3951
3952 \end_inset
3953
3954  and the locale is set accordingly,
3955  these will be used automagically by \SpecialChar LyX
3956 .
3957  \SpecialChar LyX
3958  looks for translated versions as 
3959 \begin_inset Flex Code
3960 status collapsed
3961
3962 \begin_layout Plain Layout
3963 LyXDir/doc/xx/DocName.lyx
3964 \end_layout
3965
3966 \end_inset
3967
3968 ,
3969  where 
3970 \begin_inset Flex Code
3971 status collapsed
3972
3973 \begin_layout Plain Layout
3974 xx
3975 \end_layout
3976
3977 \end_inset
3978
3979  is the code for the language currently in use.
3980  If there are no translated documents,
3981  the default English versions will be displayed.
3982  Note that the translated versions must have the same filenames (
3983 \begin_inset Flex Code
3984 status collapsed
3985
3986 \begin_layout Plain Layout
3987 DocName
3988 \end_layout
3989
3990 \end_inset
3991
3992  above) as the original.
3993  If you feel up to translating the documentation (an excellent way to proof-read the original documentation by the way!),
3994  there are a few things you should do right away:
3995 \end_layout
3996
3997 \begin_layout Itemize
3998 Check out the documentation translation web page at 
3999 \begin_inset CommandInset href
4000 LatexCommand href
4001 name "https://www.lyx.org/Translation"
4002 target "https://www.lyx.org/Translation"
4003 literal "false"
4004
4005 \end_inset
4006
4007 .
4008  That way,
4009  you can find out which (if any) documents have already been translated into your language.
4010  You can also find out who (if anyone) is organizing the effort to translate the documentation into your language.
4011  If no one is organizing the effort,
4012  please let us know that you're interested.
4013 \end_layout
4014
4015 \begin_layout Standard
4016 Once you get to actually translating,
4017  here's a few hints for you that may save you trouble:
4018 \end_layout
4019
4020 \begin_layout Itemize
4021 Join the documentation team!
4022  There is information on how to do that in 
4023 \begin_inset Flex Code
4024 status collapsed
4025
4026 \begin_layout Plain Layout
4027 Intro.lyx
4028 \end_layout
4029
4030 \end_inset
4031
4032  (
4033 \begin_inset Flex Noun
4034 status collapsed
4035
4036 \begin_layout Plain Layout
4037 Help\SpecialChar menuseparator
4038 Introduction
4039 \end_layout
4040
4041 \end_inset
4042
4043 ),
4044  which by the way is the first document you should translate.
4045 \end_layout
4046
4047 \begin_layout Itemize
4048 Learn the typographic conventions for the language you are translating to.
4049  Typography is an ancient art and over the centuries,
4050  a great variety of conventions have developed throughout different parts of the world.
4051  Also study the professional terminology amongst typographers in your country.
4052  Inventing your own terminology will only confuse the users.
4053  
4054 \emph on
4055 (Warning!
4056  Typography is addictive!)
4057 \end_layout
4058
4059 \begin_layout Itemize
4060 Make a copy of the document.
4061  This will be your working copy.
4062  You can use this as your personal translated help-file by placing it in your 
4063 \begin_inset Flex Code
4064 status collapsed
4065
4066 \begin_layout Plain Layout
4067 UserDir/doc/xx/
4068 \end_layout
4069
4070 \end_inset
4071
4072  directory.
4073 \begin_inset Note Greyedout
4074 status open
4075
4076 \begin_layout Plain Layout
4077
4078 \series bold
4079 Note:
4080
4081 \series default
4082  For a complex document with external material (images,
4083  etc.),
4084  if you make a copy e.
4085 \begin_inset space \thinspace{}
4086 \end_inset
4087
4088 g.
4089 \begin_inset space \space{}
4090 \end_inset
4091
4092 in a temp dir,
4093  beware that the links to external material may be broken when the document is moved to a different place.
4094  The best way is to retrieve the \SpecialChar LyX
4095  tree from git (see 
4096 \begin_inset Flex URL
4097 status collapsed
4098
4099 \begin_layout Plain Layout
4100
4101 https://www.lyx.org/HowToUseGIT
4102 \end_layout
4103
4104 \end_inset
4105
4106 ) and to edit the doc file in place.
4107 \end_layout
4108
4109 \end_inset
4110
4111
4112 \end_layout
4113
4114 \begin_layout Itemize
4115 Sometimes the original document (from the \SpecialChar LyX
4116  team) will be updated.
4117  Use the source viewer at 
4118 \begin_inset CommandInset href
4119 LatexCommand href
4120 name "https://www.lyx.org/trac/timeline"
4121 target "https://www.lyx.org/trac/timeline"
4122 literal "false"
4123
4124 \end_inset
4125
4126  to see what has been changed.
4127  That way you can easily see which parts of the translated document need to be updated.
4128 \end_layout
4129
4130 \begin_layout Standard
4131 If you ever find an error in the original document,
4132  fix it and notify the rest of the documentation team of the changes!
4133  (You didn't forget to join the documentation team,
4134  did you?)
4135 \end_layout
4136
4137 \begin_layout Standard
4138 \begin_inset Branch OutDated
4139 inverted 0
4140 status collapsed
4141
4142 \begin_layout Section
4143 International Keyboard Support
4144 \end_layout
4145
4146 \begin_layout Standard
4147
4148 \emph on
4149 [Editor's Note:
4150  The following section is by
4151 \emph default
4152  
4153 \shape smallcaps
4154 \emph on
4155 Ivan Schreter
4156 \shape default
4157 .
4158  It needs to be fixed to conform to the new Documentation Style sheet and to make use of the new v1.0 features.
4159  The whole thing also needs to be merged with the section following it.-jw It may also be badly out of date.-rh (2008)]
4160 \end_layout
4161
4162 \begin_layout Subsection
4163 Defining Own Keymaps:
4164  Keymap File Format
4165 \end_layout
4166
4167 \begin_layout Standard
4168 Let's look at a keyboard definition file a little closer.
4169  It is a plain text file defining
4170 \end_layout
4171
4172 \begin_layout Itemize
4173 key-to-key or key-to-string translations
4174 \end_layout
4175
4176 \begin_layout Itemize
4177 dead keys
4178 \end_layout
4179
4180 \begin_layout Itemize
4181 dead keys exceptions
4182 \end_layout
4183
4184 \begin_layout Standard
4185 To define key-to-key or key-to-string translation,
4186  use this command:
4187 \end_layout
4188
4189 \begin_layout Quotation
4190 \begin_inset Flex Code
4191 status collapsed
4192
4193 \begin_layout Plain Layout
4194
4195 \backslash
4196 kmap
4197 \end_layout
4198
4199 \end_inset
4200
4201  
4202 \begin_inset Flex Code
4203 status collapsed
4204
4205 \begin_layout Plain Layout
4206 key
4207 \end_layout
4208
4209 \end_inset
4210
4211  outstring 
4212 \end_layout
4213
4214 \begin_layout Standard
4215 where 
4216 \begin_inset Flex Code
4217 status collapsed
4218
4219 \begin_layout Plain Layout
4220 key
4221 \end_layout
4222
4223 \end_inset
4224
4225  is the key to be translated and 
4226 \begin_inset Flex Code
4227 status collapsed
4228
4229 \begin_layout Plain Layout
4230 outstring
4231 \end_layout
4232
4233 \end_inset
4234
4235  is the string to be inserted into the document.
4236  To define dead keys,
4237  use:
4238 \end_layout
4239
4240 \begin_layout Quotation
4241 \begin_inset Flex Code
4242 status collapsed
4243
4244 \begin_layout Plain Layout
4245
4246 \backslash
4247 kmod
4248 \end_layout
4249
4250 \end_inset
4251
4252  
4253 \begin_inset Flex Code
4254 status collapsed
4255
4256 \begin_layout Plain Layout
4257 key
4258 \end_layout
4259
4260 \end_inset
4261
4262  deadkey
4263 \end_layout
4264
4265 \begin_layout Standard
4266 where 
4267 \begin_inset Flex Code
4268 status collapsed
4269
4270 \begin_layout Plain Layout
4271 key
4272 \end_layout
4273
4274 \end_inset
4275
4276  is a keyboard key and 
4277 \begin_inset Flex Code
4278 status collapsed
4279
4280 \begin_layout Plain Layout
4281 deadkey
4282 \end_layout
4283
4284 \end_inset
4285
4286  is dead key name.
4287  The following dead keys are supported (shortcut name is in parentheses):
4288 \end_layout
4289
4290 \begin_layout Quotation
4291
4292 \emph on
4293 Name
4294 \begin_inset space \hfill{}
4295 \end_inset
4296
4297 Example
4298 \end_layout
4299
4300 \begin_layout Quotation
4301 acute (acu)
4302 \begin_inset space \hfill{}
4303 \end_inset
4304
4305 áéíóú
4306 \end_layout
4307
4308 \begin_layout Quotation
4309 grave (gra)
4310 \begin_inset space \hfill{}
4311 \end_inset
4312
4313 àèìòù
4314 \end_layout
4315
4316 \begin_layout Quotation
4317 macron (mac)
4318 \begin_inset space \hfill{}
4319 \end_inset
4320
4321  ō
4322 \end_layout
4323
4324 \begin_layout Quotation
4325 tilde (til)
4326 \begin_inset space \hfill{}
4327 \end_inset
4328
4329 ñÑ
4330 \end_layout
4331
4332 \begin_layout Quotation
4333 underbar (underb)
4334 \begin_inset space \hfill{}
4335 \end_inset
4336
4337
4338 \begin_inset ERT
4339 status open
4340
4341 \begin_layout Plain Layout
4342
4343
4344 \backslash
4345 b o
4346 \end_layout
4347
4348 \end_inset
4349
4350
4351 \end_layout
4352
4353 \begin_layout Quotation
4354 cedilla (ced)
4355 \begin_inset space \hfill{}
4356 \end_inset
4357
4358 çÇ
4359 \end_layout
4360
4361 \begin_layout Quotation
4362 underdot (underd)
4363 \begin_inset space \hfill{}
4364 \end_inset
4365
4366
4367 \begin_inset ERT
4368 status open
4369
4370 \begin_layout Plain Layout
4371
4372
4373 \backslash
4374 d o
4375 \end_layout
4376
4377 \end_inset
4378
4379
4380 \end_layout
4381
4382 \begin_layout Quotation
4383 circumflex (circu)
4384 \begin_inset space \hfill{}
4385 \end_inset
4386
4387 âêîôû
4388 \end_layout
4389
4390 \begin_layout Quotation
4391 circle (circl)
4392 \begin_inset space \hfill{}
4393 \end_inset
4394
4395 ÅůŮ
4396 \end_layout
4397
4398 \begin_layout Quotation
4399 tie (tie)
4400 \begin_inset space \hfill{}
4401 \end_inset
4402
4403
4404 \begin_inset ERT
4405 status open
4406
4407 \begin_layout Plain Layout
4408
4409
4410 \backslash
4411 t o
4412 \end_layout
4413
4414 \end_inset
4415
4416
4417 \end_layout
4418
4419 \begin_layout Quotation
4420 breve (bre)
4421 \begin_inset space \hfill{}
4422 \end_inset
4423
4424 ă
4425 \begin_inset ERT
4426 status open
4427
4428 \begin_layout Plain Layout
4429
4430
4431 \backslash
4432 u o
4433 \end_layout
4434
4435 \end_inset
4436
4437
4438 \end_layout
4439
4440 \begin_layout Quotation
4441 caron (car)
4442 \begin_inset space \hfill{}
4443 \end_inset
4444
4445 čšž
4446 \end_layout
4447
4448 \begin_layout Quotation
4449 hungarian umlaut (hug)
4450 \begin_inset space \hfill{}
4451 \end_inset
4452
4453 őű
4454 \end_layout
4455
4456 \begin_layout Quotation
4457 umlaut (uml)
4458 \begin_inset space \hfill{}
4459 \end_inset
4460
4461 äöü
4462 \end_layout
4463
4464 \begin_layout Quotation
4465 dot (dot)
4466 \begin_inset space \hfill{}
4467 \end_inset
4468
4469 ż
4470 \begin_inset ERT
4471 status open
4472
4473 \begin_layout Plain Layout
4474
4475
4476 \backslash
4477 .s
4478 \end_layout
4479
4480 \end_inset
4481
4482
4483 \end_layout
4484
4485 \begin_layout Standard
4486 Since in many international keyboards there are exceptions to what some dead keys should do,
4487  you can define them using
4488 \end_layout
4489
4490 \begin_layout Quotation
4491 \begin_inset Flex Code
4492 status collapsed
4493
4494 \begin_layout Plain Layout
4495
4496 \backslash
4497 kxmod
4498 \end_layout
4499
4500 \end_inset
4501
4502  deadkey key outstring
4503 \end_layout
4504
4505 \begin_layout Standard
4506 For example,
4507  on Slovak keyboard,
4508  if you enter caron-o,
4509  it generates circumflex-o,
4510  so you put in
4511 \end_layout
4512
4513 \begin_layout Quotation
4514 \begin_inset Flex Code
4515 status collapsed
4516
4517 \begin_layout Plain Layout
4518
4519 \backslash
4520 kxmod
4521 \end_layout
4522
4523 \end_inset
4524
4525  caron o "
4526 \backslash
4527 ^o"
4528 \end_layout
4529
4530 \begin_layout Standard
4531 to make it work correctly.
4532  Also,
4533  you have to define as exceptions dead keys over i and j,
4534  to remove the dot from them before inserting an accent mark.
4535  I will change this when the time comes,
4536  but so far I haven't had time.
4537 \end_layout
4538
4539 \begin_layout Standard
4540 Oh,
4541  and about characters:
4542  backslash is escaped,
4543  so to enter it,
4544  you'll need double backslash.
4545  Also,
4546  quotes and 
4547 \begin_inset Flex Code
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551 #
4552 \end_layout
4553
4554 \end_inset
4555
4556  have different meaning.
4557  
4558 \begin_inset Flex Code
4559 status collapsed
4560
4561 \begin_layout Plain Layout
4562 #
4563 \end_layout
4564
4565 \end_inset
4566
4567  marks comments,
4568  quotes start and end \SpecialChar LaTeX
4569 -style commands.
4570  To enter quote,
4571  you'll need to use 
4572 \begin_inset Flex Code
4573 status collapsed
4574
4575 \begin_layout Plain Layout
4576
4577 \backslash
4578 "
4579 \end_layout
4580
4581 \end_inset
4582
4583 ,
4584  to enter 
4585 \begin_inset Flex Code
4586 status collapsed
4587
4588 \begin_layout Plain Layout
4589 #
4590 \end_layout
4591
4592 \end_inset
4593
4594 ,
4595  use 
4596 \begin_inset Flex Code
4597 status collapsed
4598
4599 \begin_layout Plain Layout
4600
4601 \backslash
4602 #
4603 \end_layout
4604
4605 \end_inset
4606
4607 .
4608 \end_layout
4609
4610 \begin_layout Standard
4611 If you make a keyboard description file that works for your language,
4612  please mail it to me,
4613  so I can include it in the next keymap distribution.
4614 \end_layout
4615
4616 \begin_layout Standard
4617 More keywords will be supported in keymap configuration file in future,
4618  like
4619 \end_layout
4620
4621 \begin_layout Itemize
4622 \begin_inset Flex Code
4623 status collapsed
4624
4625 \begin_layout Plain Layout
4626
4627 \backslash
4628 kinclude filename
4629 \end_layout
4630
4631 \end_inset
4632
4633
4634 \emph on
4635
4636 \begin_inset space \hfill{}
4637 \end_inset
4638
4639
4640 \begin_inset Flex Code
4641 status collapsed
4642
4643 \begin_layout Plain Layout
4644 include
4645 \end_layout
4646
4647 \end_inset
4648
4649  another file
4650 \end_layout
4651
4652 \begin_layout Itemize
4653 \begin_inset Flex Code
4654 status collapsed
4655
4656 \begin_layout Plain Layout
4657
4658 \backslash
4659 kprog program
4660 \end_layout
4661
4662 \end_inset
4663
4664
4665 \emph on
4666
4667 \begin_inset space \hfill{}
4668 \end_inset
4669
4670
4671 \begin_inset Flex Code
4672 status collapsed
4673
4674 \begin_layout Plain Layout
4675 define
4676 \end_layout
4677
4678 \end_inset
4679
4680  an external keymap translation program 
4681 \end_layout
4682
4683 \begin_layout Standard
4684 Also,
4685  it should look into 
4686 \begin_inset Flex Code
4687 status collapsed
4688
4689 \begin_layout Plain Layout
4690 lyxrc
4691 \end_layout
4692
4693 \end_inset
4694
4695  file for defaults,
4696  too (for example,
4697  a 
4698 \begin_inset Flex Code
4699 status collapsed
4700
4701 \begin_layout Plain Layout
4702
4703 \backslash
4704 kinclude
4705 \end_layout
4706
4707 \end_inset
4708
4709  option to include default keyboard).
4710 \end_layout
4711
4712 \end_inset
4713
4714
4715 \end_layout
4716
4717 \begin_layout Section
4718 International Keymap Stuff
4719 \begin_inset CommandInset label
4720 LatexCommand label
4721 name "sec:International-Keymap-Stuff"
4722
4723 \end_inset
4724
4725
4726 \end_layout
4727
4728 \begin_layout Standard
4729 \begin_inset Note Note
4730 status open
4731
4732 \begin_layout Plain Layout
4733 In doing the revisions on this document in March 2008,
4734  I did not look over this stuff,
4735  as I do not understand it.
4736  It would be good if someone else could do so.
4737  (RH)
4738 \end_layout
4739
4740 \end_inset
4741
4742
4743 \end_layout
4744
4745 \begin_layout Standard
4746 The next two sections describe the 
4747 \begin_inset Flex Code
4748 status collapsed
4749
4750 \begin_layout Plain Layout
4751
4752 \shape up
4753 .kmap
4754 \end_layout
4755
4756 \end_inset
4757
4758  and 
4759 \begin_inset Flex Code
4760 status collapsed
4761
4762 \begin_layout Plain Layout
4763
4764 \shape up
4765 .cdef
4766 \end_layout
4767
4768 \end_inset
4769
4770  file syntax in detail.
4771  These sections should help you design your own key map if the ones provided do not meet your needs.
4772 \end_layout
4773
4774 \begin_layout Subsection
4775 The .kmap File
4776 \end_layout
4777
4778 \begin_layout Standard
4779
4780 \shape up
4781 .
4782 \begin_inset Flex Code
4783 status collapsed
4784
4785 \begin_layout Plain Layout
4786 kmap
4787 \end_layout
4788
4789 \end_inset
4790
4791  file maps keystrokes to characters or strings.
4792  As the name suggests,
4793  it sets a keyboard mapping.
4794  The 
4795 \begin_inset Flex Code
4796 status collapsed
4797
4798 \begin_layout Plain Layout
4799 .kmap
4800 \end_layout
4801
4802 \end_inset
4803
4804
4805 \shape default
4806  file keywords 
4807 \shape up
4808
4809 \begin_inset Flex Code
4810 status collapsed
4811
4812 \begin_layout Plain Layout
4813
4814 \shape up
4815 kmap
4816 \end_layout
4817
4818 \end_inset
4819
4820
4821 \shape default
4822 ,
4823
4824 \shape up
4825  
4826 \shape default
4827
4828 \begin_inset Flex Code
4829 status collapsed
4830
4831 \begin_layout Plain Layout
4832
4833 \shape up
4834 kmod
4835 \end_layout
4836
4837 \end_inset
4838
4839 ,
4840
4841 \shape up
4842  
4843 \shape default
4844
4845 \begin_inset Flex Code
4846 status collapsed
4847
4848 \begin_layout Plain Layout
4849
4850 \shape up
4851 kxmod
4852 \end_layout
4853
4854 \end_inset
4855
4856 ,
4857  and 
4858 \begin_inset Flex Code
4859 status collapsed
4860
4861 \begin_layout Plain Layout
4862
4863 \shape up
4864 kcomb
4865 \end_layout
4866
4867 \end_inset
4868
4869  are described in this section.
4870 \end_layout
4871
4872 \begin_layout Labeling
4873 \labelwidthstring 00.00.0000
4874 \begin_inset Flex Code
4875 status collapsed
4876
4877 \begin_layout Plain Layout
4878
4879 \shape up
4880 kmap
4881 \end_layout
4882
4883 \end_inset
4884
4885  Map a character to a string
4886 \end_layout
4887
4888 \begin_layout LyX-Code
4889
4890 \backslash
4891 kmap 
4892 \family roman
4893 \emph on
4894 char
4895 \family default
4896 \emph default
4897  
4898 \family roman
4899 \emph on
4900 string
4901 \end_layout
4902
4903 \begin_layout Standard
4904 This will ma
4905 \family roman
4906 p
4907 \family default
4908  
4909 \family roman
4910 \emph on
4911 char
4912 \family default
4913 \emph default
4914  
4915 \family roman
4916 to
4917 \family default
4918  
4919 \family roman
4920 \emph on
4921 string
4922 \emph default
4923 .
4924  Note that in
4925 \family default
4926  
4927 \family roman
4928 \emph on
4929 string
4930 \emph default
4931 ,
4932
4933 \family default
4934  
4935 \family roman
4936 \shape up
4937 the double-quote (")
4938 \family default
4939 \shape default
4940  
4941 \family roman
4942 and
4943 \family default
4944  
4945 \family roman
4946 \shape up
4947 the backslash (
4948 \backslash
4949 )
4950 \family default
4951 \shape default
4952  
4953 \family roman
4954 must be escaped with a preceding backslash (
4955 \shape up
4956
4957 \backslash
4958
4959 \shape default
4960 )
4961 \family default
4962 .
4963 \end_layout
4964
4965 \begin_layout Standard
4966 An example of a 
4967 \begin_inset Flex Noun
4968 status collapsed
4969
4970 \begin_layout Plain Layout
4971
4972 \shape up
4973 kmap
4974 \end_layout
4975
4976 \end_inset
4977
4978  statement to cause the symbol 
4979 \begin_inset Flex Noun
4980 status collapsed
4981
4982 \begin_layout Plain Layout
4983
4984 \shape up
4985 /
4986 \end_layout
4987
4988 \end_inset
4989
4990  to be output for the keystroke 
4991 \begin_inset Flex Noun
4992 status collapsed
4993
4994 \begin_layout Plain Layout
4995
4996 \shape up
4997 &
4998 \end_layout
4999
5000 \end_inset
5001
5002  is:
5003 \end_layout
5004
5005 \begin_layout LyX-Code
5006
5007 \backslash
5008 kmap & /
5009 \end_layout
5010
5011 \begin_layout Labeling
5012 \labelwidthstring 00.00.0000
5013 \begin_inset Flex Code
5014 status collapsed
5015
5016 \begin_layout Plain Layout
5017
5018 \shape up
5019 kmod
5020 \end_layout
5021
5022 \end_inset
5023
5024  Specify an accent character
5025 \end_layout
5026
5027 \begin_layout LyX-Code
5028
5029 \backslash
5030 kmod 
5031 \family roman
5032 \emph on
5033 char accent allowed
5034 \end_layout
5035
5036 \begin_layout Standard
5037 This will make the cha
5038 \family roman
5039 racter
5040 \family default
5041  
5042 \family roman
5043 \emph on
5044 char
5045 \family default
5046 \emph default
5047  
5048 \family roman
5049 \shape up
5050 \emph on
5051 be an accent
5052 \family default
5053 \shape default
5054 \emph default
5055  
5056 \family roman
5057 \shape up
5058 on the
5059 \family default
5060 \shape default
5061  
5062 \family roman
5063 \shape up
5064 \emph on
5065 allowed
5066 \family default
5067 \shape default
5068 \emph default
5069  
5070 \family roman
5071 \shape up
5072 cha
5073 \family default
5074 racter(s).
5075  This is the dead key
5076 \begin_inset Foot
5077 status collapsed
5078
5079 \begin_layout Plain Layout
5080 The term 
5081 \family roman
5082 \emph on
5083 dead key
5084 \family default
5085 \emph default
5086  refers to a key that does not produce a character by itself,
5087  but when followed with another key,
5088  produces the desired accent character.
5089  For example,
5090  a German characte
5091 \family roman
5092 r with an umlaut like
5093 \family default
5094  
5095 \family roman
5096 \emph on
5097 ä
5098 \family default
5099 \emph default
5100  
5101 \family roman
5102 can be produced in this manner.
5103 \end_layout
5104
5105 \end_inset
5106
5107  mechanism.
5108  
5109 \end_layout
5110
5111 \begin_layout Standard
5112 If you 
5113 \family roman
5114 hit
5115 \family default
5116  
5117 \family roman
5118 \emph on
5119 char
5120 \family default
5121 \emph default
5122  
5123 \family roman
5124 and then another key not in
5125 \family default
5126  
5127 \family roman
5128 \emph on
5129 allowed
5130 \emph default
5131 ,
5132  you will get a
5133 \family default
5134  
5135 \family roman
5136 \emph on
5137 char
5138 \family default
5139 \emph default
5140  
5141 \family roman
5142 followed by the other,
5143  not allowed key,
5144  as output.
5145
5146 \family default
5147  Note that a 
5148 \begin_inset Flex Noun
5149 status collapsed
5150
5151 \begin_layout Plain Layout
5152
5153 \shape up
5154 Backspace
5155 \end_layout
5156
5157 \end_inset
5158
5159  cancels a dead key,
5160  so if 
5161 \family roman
5162 you hit
5163 \family default
5164  
5165 \family roman
5166 \emph on
5167 char
5168 \family default
5169 \emph default
5170  
5171 \begin_inset Flex Noun
5172 status collapsed
5173
5174 \begin_layout Plain Layout
5175
5176 \shape up
5177 \emph on
5178 Backspace
5179 \end_layout
5180
5181 \end_inset
5182
5183 ,
5184  the cursor will not go one position backwards but will instead cancel the effect t
5185 \family roman
5186 hat
5187 \family default
5188  
5189 \family roman
5190 \shape up
5191 \emph on
5192 char
5193 \family default
5194 \shape default
5195 \emph default
5196  
5197 \family roman
5198 \shape up
5199 might have had on the next keystroke.
5200  
5201 \end_layout
5202
5203 \begin_layout Standard
5204 The following example specifies that the character ' is to be an acute accent,
5205  allowed on the characters a,
5206  e,
5207  i,
5208  o,
5209  u,
5210  A,
5211  E,
5212  I,
5213  O,
5214  and U:
5215 \end_layout
5216
5217 \begin_layout LyX-Code
5218
5219 \backslash
5220 kmod ' acute aeiouAEIOU
5221 \end_layout
5222
5223 \begin_layout Labeling
5224 \labelwidthstring 00.00.0000
5225 \begin_inset Flex Code
5226 status collapsed
5227
5228 \begin_layout Plain Layout
5229 kxmod
5230 \end_layout
5231
5232 \end_inset
5233
5234  Specify an exception to the accent character
5235 \end_layout
5236
5237 \begin_layout LyX-Code
5238
5239 \backslash
5240 kxmod  
5241 \family roman
5242 \emph on
5243 accent char result
5244 \end_layout
5245
5246 \begin_layout Standard
5247 This defines an exce
5248 \family roman
5249 ption for
5250 \family default
5251  
5252 \family roman
5253 \emph on
5254 accent
5255 \family default
5256 \emph default
5257  
5258 \family roman
5259 on
5260 \family default
5261  
5262 \family roman
5263 \emph on
5264 char
5265 \emph default
5266 .
5267  T
5268 \shape up
5269 he
5270 \family default
5271 \shape default
5272  
5273 \family roman
5274 \shape up
5275 \emph on
5276 accent
5277 \family default
5278 \shape default
5279 \emph default
5280  
5281 \family roman
5282 \shape up
5283 must
5284 \family default
5285 \shape default
5286  
5287 \shape up
5288 have been assigned a keystroke with a previous
5289 \shape default
5290  
5291 \begin_inset Flex Code
5292 status collapsed
5293
5294 \begin_layout Plain Layout
5295
5296 \shape up
5297
5298 \backslash
5299 kmo
5300 \shape default
5301 d
5302 \end_layout
5303
5304 \end_inset
5305
5306  declar
5307 \family roman
5308 ation and
5309 \family default
5310  
5311 \family roman
5312 \emph on
5313 char
5314 \family default
5315 \emph default
5316  
5317 \family roman
5318 must not belong in the
5319 \family default
5320  
5321 \family roman
5322 \emph on
5323 allowed
5324 \family default
5325 \emph default
5326  
5327 \family roman
5328 set of
5329 \family default
5330  
5331 \family roman
5332 \emph on
5333 accent
5334 \emph default
5335 .
5336  When
5337 \family default
5338  
5339 \family roman
5340 \shape up
5341 you enter the
5342 \family default
5343 \shape default
5344  
5345 \family roman
5346 \shape up
5347 \emph on
5348 accent char
5349 \family default
5350 \shape default
5351 \emph default
5352  
5353 \family roman
5354 \shape up
5355 sequence,
5356
5357 \family default
5358 \shape default
5359  
5360 \family roman
5361 \shape up
5362 \emph on
5363 result
5364 \emph default
5365  is produced.
5366  If such a declaration does not exist in
5367 \family default
5368 \shape default
5369  
5370 \shape up
5371 the
5372 \shape default
5373  
5374 \begin_inset Flex Code
5375 status collapsed
5376
5377 \begin_layout Plain Layout
5378
5379 \shape up
5380 .kmap
5381 \end_layout
5382
5383 \end_inset
5384
5385  file and yo
5386 \family roman
5387 u enter
5388 \family default
5389  
5390 \family roman
5391 \emph on
5392 accent char
5393 \emph default
5394 ,
5395  you get
5396 \family default
5397  
5398 \family roman
5399 \emph on
5400 accent_key char
5401 \emph default
5402  where
5403 \family default
5404  
5405 \family roman
5406 \emph on
5407 accent_key
5408 \emph default
5409  is the first arg
5410 \family default
5411 ument of the 
5412 \begin_inset Flex Code
5413 status collapsed
5414
5415 \begin_layout Plain Layout
5416
5417 \shape up
5418
5419 \backslash
5420 kmod
5421 \end_layout
5422
5423 \end_inset
5424
5425  declaration.
5426  
5427 \end_layout
5428
5429 \begin_layout Standard
5430 The following command produces causes äi to be produced when you enter acute-i ('i):
5431 \end_layout
5432
5433 \begin_layout LyX-Code
5434
5435 \backslash
5436 kxmod acute i "
5437 \backslash
5438
5439 \backslash
5440 '{
5441 \backslash
5442
5443 \backslash
5444 i}"
5445 \end_layout
5446
5447 \begin_layout Labeling
5448 \labelwidthstring 00.00.0000
5449 \begin_inset Flex Code
5450 status collapsed
5451
5452 \begin_layout Plain Layout
5453 kcomb
5454 \end_layout
5455
5456 \end_inset
5457
5458  Combine two accent characters
5459 \end_layout
5460
5461 \begin_layout LyX-Code
5462
5463 \backslash
5464 kcomb 
5465 \family roman
5466 \emph on
5467 accent1 accent2 allowed
5468 \end_layout
5469
5470 \begin_layout Standard
5471 This one is getting pretty esoteric.
5472  It allows you to combine the effect 
5473 \family roman
5474 of
5475 \family default
5476  
5477 \family roman
5478 \emph on
5479 accent1
5480 \family default
5481 \emph default
5482  
5483 \family roman
5484 and
5485 \family default
5486  
5487 \family roman
5488 \emph on
5489 accent2
5490 \family default
5491 \emph default
5492  
5493 \family roman
5494 (in that order!) on
5495 \family default
5496  
5497 \family roman
5498 \emph on
5499 allowed
5500 \family default
5501 \emph default
5502  
5503 \family roman
5504 chars.
5505  The keystrokes for
5506 \family default
5507  
5508 \family roman
5509 \emph on
5510 accent1
5511 \family default
5512 \emph default
5513  
5514 \family roman
5515 and
5516 \family default
5517  
5518 \family roman
5519 \emph on
5520 accent2
5521 \family default
5522 \emph default
5523  
5524 \family roman
5525 must have be
5526 \family default
5527 en set with a 
5528 \begin_inset Flex Code
5529 status collapsed
5530
5531 \begin_layout Plain Layout
5532
5533 \shape up
5534
5535 \backslash
5536 kmod
5537 \end_layout
5538
5539 \end_inset
5540
5541  command at 
5542 \family roman
5543 a
5544 \family default
5545  
5546 \family roman
5547 \emph on
5548 previous
5549 \family default
5550 \emph default
5551  
5552 \family roman
5553 point in the
5554 \family default
5555  file.
5556  
5557 \end_layout
5558
5559 \begin_layout Standard
5560 Consider this example from the 
5561 \begin_inset Flex Code
5562 status collapsed
5563
5564 \begin_layout Plain Layout
5565
5566 \shape up
5567 greek.kmap
5568 \end_layout
5569
5570 \end_inset
5571
5572  file:
5573 \end_layout
5574
5575 \begin_layout LyX-Code
5576
5577 \backslash
5578 kmod ;
5579  acute aeioyvhAEIOYVH 
5580 \backslash
5581 kmod :
5582  umlaut iyIY 
5583 \backslash
5584 kcomb acute umlaut iyIY
5585 \end_layout
5586
5587 \begin_layout Standard
5588 This allows you to press 
5589 \begin_inset Flex Noun
5590 status collapsed
5591
5592 \begin_layout Plain Layout
5593
5594 \shape up
5595 ;:i
5596 \end_layout
5597
5598 \end_inset
5599
5600  and get the effect of 
5601 \begin_inset Flex Code
5602 status collapsed
5603
5604 \begin_layout Plain Layout
5605
5606 \shape up
5607
5608 \backslash
5609 '{
5610 \backslash
5611 "{i}}
5612 \end_layout
5613
5614 \end_inset
5615
5616 .
5617  
5618 \family roman
5619 \shape up
5620 A backspace
5621 \family default
5622 \shape default
5623  in this case cancels the last dead key,
5624  so if you press 
5625 \begin_inset Flex Noun
5626 status collapsed
5627
5628 \begin_layout Plain Layout
5629
5630 \shape up
5631 ;:
5632  Backspace i
5633 \end_layout
5634
5635 \end_inset
5636
5637  you get 
5638 \begin_inset Flex Code
5639 status collapsed
5640
5641 \begin_layout Plain Layout
5642
5643 \shape up
5644
5645 \backslash
5646 '{i}
5647 \end_layout
5648
5649 \end_inset
5650
5651 .
5652 \end_layout
5653
5654 \begin_layout Subsection
5655 The .cdef File
5656 \end_layout
5657
5658 \begin_layout Standard
5659 After the 
5660 \begin_inset Flex Code
5661 status collapsed
5662
5663 \begin_layout Plain Layout
5664
5665 \shape up
5666 .kmap
5667 \end_layout
5668
5669 \end_inset
5670
5671  mapping is performed,
5672  a 
5673 \begin_inset Flex Code
5674 status collapsed
5675
5676 \begin_layout Plain Layout
5677
5678 \shape up
5679 .cde
5680 \shape default
5681 f
5682 \end_layout
5683
5684 \end_inset
5685
5686  file maps the strings that the symbols generate to characters in the current font.
5687  The \SpecialChar LyX
5688  distribution currently includes at least the 
5689 \begin_inset Flex Code
5690 status collapsed
5691
5692 \begin_layout Plain Layout
5693
5694 \shape up
5695 iso8859-1.cdef
5696 \end_layout
5697
5698 \end_inset
5699
5700  and 
5701 \begin_inset Flex Code
5702 status collapsed
5703
5704 \begin_layout Plain Layout
5705
5706 \shape up
5707 iso8859-2.cdef
5708 \end_layout
5709
5710 \end_inset
5711
5712  files.
5713 \end_layout
5714
5715 \begin_layout Standard
5716 In general the 
5717 \begin_inset Flex Code
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721
5722 \shape up
5723 .cdef
5724 \end_layout
5725
5726 \end_inset
5727
5728  file is a sequence of declarations of the form
5729 \end_layout
5730
5731 \begin_layout LyX-Code
5732
5733 \family roman
5734 \emph on
5735 char_index_in_set
5736 \family default
5737 \emph default
5738  
5739 \family roman
5740 \emph on
5741  string
5742 \end_layout
5743
5744 \begin_layout Standard
5745 For example,
5746  in order to map 
5747 \begin_inset Flex Noun
5748 status collapsed
5749
5750 \begin_layout Plain Layout
5751
5752 \shape up
5753
5754 \backslash
5755 '{e}
5756 \end_layout
5757
5758 \end_inset
5759
5760  to the corresponding character in the iso-8859-1 set (233),
5761  the following declaration is used
5762 \end_layout
5763
5764 \begin_layout LyX-Code
5765 233 "
5766 \backslash
5767
5768 \backslash
5769 '{e}"
5770 \end_layout
5771
5772 \begin_layout Standard
5773 with 
5774 \begin_inset Flex Code
5775 status collapsed
5776
5777 \begin_layout Plain Layout
5778
5779 \backslash
5780
5781 \end_layout
5782
5783 \end_inset
5784
5785  and 
5786 \begin_inset Flex Code
5787 status collapsed
5788
5789 \begin_layout Plain Layout
5790 "
5791 \end_layout
5792
5793 \end_inset
5794
5795  being escap
5796 \family roman
5797 ed in
5798 \family default
5799  
5800 \family roman
5801 \emph on
5802 string
5803 \emph default
5804 .
5805  Note that
5806 \family default
5807  the same character can apply to more than one string.
5808  In the 
5809 \begin_inset Flex Code
5810 status collapsed
5811
5812 \begin_layout Plain Layout
5813 i
5814 \shape up
5815 so-8859-7.cdef
5816 \end_layout
5817
5818 \end_inset
5819
5820  file you have
5821 \end_layout
5822
5823 \begin_layout LyX-Code
5824 192 "
5825 \backslash
5826
5827 \backslash
5828 '{
5829 \backslash
5830
5831 \backslash
5832
5833 \backslash
5834 "{i}}"
5835 \begin_inset Newline newline
5836 \end_inset
5837
5838 192 "
5839 \backslash
5840
5841 \backslash
5842
5843 \backslash
5844 "{
5845 \backslash
5846
5847 \backslash
5848 '{i}}"
5849 \end_layout
5850
5851 \begin_layout Standard
5852 If \SpecialChar LyX
5853  cannot find a mapping for the string produced by the keystroke or a deadkey sequence,
5854  it will check if it looks like an accented char and try to draw an accent over the character on screen.
5855 \end_layout
5856
5857 \begin_layout Subsection
5858 Dead Keys
5859 \end_layout
5860
5861 \begin_layout Standard
5862 There is a second way to add support for international characters through so-called dead-keys.
5863  A dead-key works in combination with a letter to produce an accented character.
5864  Here,
5865  we'll explain how to create a really simple dead-key to illustrate how they work.
5866 \end_layout
5867
5868 \begin_layout Standard
5869 Suppose you happen to need the circumflex character,
5870  
5871 \begin_inset Quotes eld
5872 \end_inset
5873
5874  ̂
5875 \begin_inset Quotes erd
5876 \end_inset
5877
5878 .
5879  You could bind the 
5880 \begin_inset Flex Noun
5881 status collapsed
5882
5883 \begin_layout Plain Layout
5884 ^
5885 \end_layout
5886
5887 \end_inset
5888
5889 -key [a.k.a.
5890 \begin_inset space ~
5891 \end_inset
5892
5893
5894 \begin_inset Flex Noun
5895 status collapsed
5896
5897 \begin_layout Plain Layout
5898 Shift-6
5899 \end_layout
5900
5901 \end_inset
5902
5903 ] to the \SpecialChar LyX
5904  command 
5905 \begin_inset Flex Code
5906 status collapsed
5907
5908 \begin_layout Plain Layout
5909 accent-circumflex
5910 \end_layout
5911
5912 \end_inset
5913
5914  in your 
5915 \begin_inset Flex Code
5916 status collapsed
5917
5918 \begin_layout Plain Layout
5919 lyxrc
5920 \end_layout
5921
5922 \end_inset
5923
5924  file.
5925  Now,
5926  whenever you type the 
5927 \begin_inset Flex Noun
5928 status collapsed
5929
5930 \begin_layout Plain Layout
5931 ^
5932 \end_layout
5933
5934 \end_inset
5935
5936 -key followed by a letter,
5937  that letter will have a circumflex accent on it.
5938  For example,
5939  the sequence 
5940 \begin_inset Quotes eld
5941 \end_inset
5942
5943
5944 \begin_inset Flex Noun
5945 status collapsed
5946
5947 \begin_layout Plain Layout
5948 ^e
5949 \end_layout
5950
5951 \end_inset
5952
5953
5954 \begin_inset Quotes erd
5955 \end_inset
5956
5957  produces the letter:
5958  
5959 \begin_inset Quotes eld
5960 \end_inset
5961
5962 ê
5963 \begin_inset Quotes erd
5964 \end_inset
5965
5966 .
5967  If you tried to type 
5968 \begin_inset Quotes eld
5969 \end_inset
5970
5971
5972 \begin_inset Flex Noun
5973 status collapsed
5974
5975 \begin_layout Plain Layout
5976 ^t
5977 \end_layout
5978
5979 \end_inset
5980
5981
5982 \begin_inset Quotes erd
5983 \end_inset
5984
5985 ,
5986  however,
5987  \SpecialChar LyX
5988  will complain with a beep,
5989  since a 
5990 \begin_inset Quotes eld
5991 \end_inset
5992
5993
5994 \begin_inset Flex Noun
5995 status collapsed
5996
5997 \begin_layout Plain Layout
5998 t
5999 \end_layout
6000
6001 \end_inset
6002
6003
6004 \begin_inset Quotes erd
6005 \end_inset
6006
6007  never takes a circumflex accent.
6008  Hitting 
6009 \begin_inset Flex Noun
6010 status collapsed
6011
6012 \begin_layout Plain Layout
6013 Space
6014 \end_layout
6015
6016 \end_inset
6017
6018  after a dead-key produces the bare-accent.
6019  Please note this last point!
6020  If you bind a key to a dead-key,
6021  you'll need to rebind the character on that key to yet another key.
6022  Binding the 
6023 \begin_inset Flex Noun
6024 status collapsed
6025
6026 \begin_layout Plain Layout
6027 ,-key
6028 \end_layout
6029
6030 \end_inset
6031
6032  to a cedilla is a bad idea,
6033  since you'll only get cedillas instead of commas.
6034 \end_layout
6035
6036 \begin_layout Standard
6037 One common way to bind dead-keys is to use 
6038 \begin_inset Flex Noun
6039 status collapsed
6040
6041 \begin_layout Plain Layout
6042 Meta-
6043 \end_layout
6044
6045 \end_inset
6046
6047 ,
6048  
6049 \begin_inset Flex Noun
6050 status collapsed
6051
6052 \begin_layout Plain Layout
6053 Ctrl-
6054 \end_layout
6055
6056 \end_inset
6057
6058 ,
6059  and 
6060 \begin_inset Flex Noun
6061 status collapsed
6062
6063 \begin_layout Plain Layout
6064 Shift-
6065 \end_layout
6066
6067 \end_inset
6068
6069  in combination with an accent,
6070  like 
6071 \begin_inset Quotes eld
6072 \end_inset
6073
6074
6075 \begin_inset Flex Noun
6076 status collapsed
6077
6078 \begin_layout Plain Layout
6079 ~
6080 \end_layout
6081
6082 \end_inset
6083
6084
6085 \begin_inset Quotes erd
6086 \end_inset
6087
6088  or 
6089 \begin_inset Quotes eld
6090 \end_inset
6091
6092
6093 \begin_inset Flex Noun
6094 status collapsed
6095
6096 \begin_layout Plain Layout
6097 ,
6098 \end_layout
6099
6100 \end_inset
6101
6102
6103 \begin_inset Quotes erd
6104 \end_inset
6105
6106  or 
6107 \begin_inset Quotes eld
6108 \end_inset
6109
6110
6111 \begin_inset Flex Noun
6112 status collapsed
6113
6114 \begin_layout Plain Layout
6115 ^
6116 \end_layout
6117
6118 \end_inset
6119
6120
6121 \begin_inset Quotes erd
6122 \end_inset
6123
6124 .
6125  Another way involves using 
6126 \begin_inset Flex Code
6127 status collapsed
6128
6129 \begin_layout Plain Layout
6130 xmodmap
6131 \end_layout
6132
6133 \end_inset
6134
6135  and 
6136 \begin_inset Flex Code
6137 status collapsed
6138
6139 \begin_layout Plain Layout
6140 xkeycaps
6141 \end_layout
6142
6143 \end_inset
6144
6145  to set up the special 
6146 \begin_inset Flex Code
6147 status collapsed
6148
6149 \begin_layout Plain Layout
6150 Mode_Switch
6151 \end_layout
6152
6153 \end_inset
6154
6155  key.
6156  The 
6157 \begin_inset Flex Code
6158 status collapsed
6159
6160 \begin_layout Plain Layout
6161 Mode_Switch
6162 \end_layout
6163
6164 \end_inset
6165
6166  acts in some ways just like 
6167 \begin_inset Flex Noun
6168 status collapsed
6169
6170 \begin_layout Plain Layout
6171 Shift
6172 \end_layout
6173
6174 \end_inset
6175
6176  and permits you to bind keys to accented characters.
6177  You can also turn keys into dead-keys by binding them to something like 
6178 \begin_inset Flex Code
6179 status collapsed
6180
6181 \begin_layout Plain Layout
6182 usldead_cedilla
6183 \end_layout
6184
6185 \end_inset
6186
6187  and then binding this symbolic key to the corresponding \SpecialChar LyX
6188  command.
6189 \begin_inset Foot
6190 status collapsed
6191
6192 \begin_layout Plain Layout
6193 Note from 
6194 \noun on
6195 John Weiss
6196 \noun default
6197 :
6198  This is exactly what I do in my 
6199 \begin_inset Flex Code
6200 status collapsed
6201
6202 \begin_layout Plain Layout
6203 ~/.lyx/lyxrc
6204 \end_layout
6205
6206 \end_inset
6207
6208  and my 
6209 \begin_inset Flex Code
6210 status collapsed
6211
6212 \begin_layout Plain Layout
6213 ~/.xmodmap
6214 \end_layout
6215
6216 \end_inset
6217
6218  files.
6219  I have my 
6220 \begin_inset Flex Noun
6221 status collapsed
6222
6223 \begin_layout Plain Layout
6224 Scroll
6225 \begin_inset space ~
6226 \end_inset
6227
6228 Lock
6229 \end_layout
6230
6231 \end_inset
6232
6233  key set up as 
6234 \begin_inset Flex Code
6235 status collapsed
6236
6237 \begin_layout Plain Layout
6238 Mode_Shift
6239 \end_layout
6240
6241 \end_inset
6242
6243  and a bunch of these 
6244 \begin_inset Quotes eld
6245 \end_inset
6246
6247
6248 \begin_inset Flex Code
6249 status collapsed
6250
6251 \begin_layout Plain Layout
6252 usldead_*
6253 \end_layout
6254
6255 \end_inset
6256
6257
6258 \begin_inset Quotes erd
6259 \end_inset
6260
6261  symbolic keys bound such things as 
6262 \begin_inset Flex Noun
6263 status collapsed
6264
6265 \begin_layout Plain Layout
6266 Scroll
6267 \begin_inset space ~
6268 \end_inset
6269
6270 Lock-^
6271 \end_layout
6272
6273 \end_inset
6274
6275  and 
6276 \begin_inset Flex Noun
6277 status collapsed
6278
6279 \begin_layout Plain Layout
6280 Scroll
6281 \begin_inset space ~
6282 \end_inset
6283
6284 Lock-~
6285 \end_layout
6286
6287 \end_inset
6288
6289 .
6290  This is how I produce my accented characters.
6291 \end_layout
6292
6293 \end_inset
6294
6295  You can make just about anything into the 
6296 \begin_inset Flex Code
6297 status collapsed
6298
6299 \begin_layout Plain Layout
6300 Mode_Switch
6301 \end_layout
6302
6303 \end_inset
6304
6305  key:
6306  One of the 
6307 \begin_inset Flex Noun
6308 status collapsed
6309
6310 \begin_layout Plain Layout
6311 Ctrl-
6312 \end_layout
6313
6314 \end_inset
6315
6316  keys,
6317  a spare function key,
6318  etc.
6319  As for the \SpecialChar LyX
6320  commands that produce accents,
6321  check the entry for 
6322 \begin_inset Flex Code
6323 status collapsed
6324
6325 \begin_layout Plain Layout
6326 accent-acute
6327 \end_layout
6328
6329 \end_inset
6330
6331  in the 
6332 \emph on
6333 Reference Manual
6334 \emph default
6335 .
6336  You'll find the complete list there.
6337 \end_layout
6338
6339 \begin_layout Subsection
6340 Saving your Language Configuration
6341 \end_layout
6342
6343 \begin_layout Standard
6344 You can edit your preferences so that your desired language environment is automatically configured when \SpecialChar LyX
6345  starts up,
6346  via the 
6347 \begin_inset Flex Noun
6348 status collapsed
6349
6350 \begin_layout Plain Layout
6351 Edit\SpecialChar menuseparator
6352 Preferences
6353 \end_layout
6354
6355 \end_inset
6356
6357  dialog.
6358 \end_layout
6359
6360 \begin_layout Chapter
6361
6362 \change_inserted -584632292 1610232084
6363 Creating and 
6364 \change_unchanged
6365 Installing New Document Classes,
6366  Layouts,
6367  and Templates
6368 \begin_inset CommandInset label
6369 LatexCommand label
6370 name "cha:Installing-New-Document"
6371
6372 \end_inset
6373
6374
6375 \begin_inset Argument 1
6376 status collapsed
6377
6378 \begin_layout Plain Layout
6379 Installing New Document Classes
6380 \end_layout
6381
6382 \end_inset
6383
6384
6385 \end_layout
6386
6387 \begin_layout Standard
6388 In this chapter,
6389  we describe the procedures for creating and installing new \SpecialChar LyX
6390  layout and template files,
6391  as well as offer a refresher on correctly installing new \SpecialChar LaTeX
6392  document classes.
6393  
6394 \end_layout
6395
6396 \begin_layout Standard
6397 First,
6398  let us a say a few words about how one ought to think about the relation between \SpecialChar LyX
6399  and \SpecialChar LaTeX
6400 .
6401  The thing to understand is that,
6402  in a certain sense,
6403  \SpecialChar LyX
6404  doesn't know anything about \SpecialChar LaTeX
6405 .
6406  Indeed,
6407  from \SpecialChar LyX
6408 's point of view,
6409  \SpecialChar LaTeX
6410  is just one of several 
6411 \begin_inset Quotes eld
6412 \end_inset
6413
6414 backend formats
6415 \begin_inset Quotes erd
6416 \end_inset
6417
6418  in which it is capable of producing output.
6419  Other such formats are DocBook,
6420  plaintext,
6421  and XHTML.
6422  \SpecialChar LaTeX
6423  is,
6424  of course,
6425  a particularly important format,
6426  but very little of the information \SpecialChar LyX
6427  has about \SpecialChar LaTeX
6428  is actually contained in the program itself.
6429 \begin_inset Foot
6430 status collapsed
6431
6432 \begin_layout Plain Layout
6433 Some commands are sufficiently complex that they are 
6434 \begin_inset Quotes eld
6435 \end_inset
6436
6437 hardcoded
6438 \begin_inset Quotes erd
6439 \end_inset
6440
6441  into \SpecialChar LyX
6442 .
6443  But the developers generally regard this as a Bad Thing.
6444 \end_layout
6445
6446 \end_inset
6447
6448  Rather,
6449  that information,
6450  even for the standard classes like 
6451 \begin_inset Flex Code
6452 status collapsed
6453
6454 \begin_layout Plain Layout
6455 article.cls
6456 \end_layout
6457
6458 \end_inset
6459
6460 ,
6461  is contained in `layout files'.
6462  Similarly,
6463  \SpecialChar LyX
6464  itself does not know much about DocBook or XHTML.
6465  What it knows is contained in layout files.
6466 \end_layout
6467
6468 \begin_layout Standard
6469 You can think of the layout file for a given document class as a translation manual between \SpecialChar LyX
6470  constructs—
6471 paragraphs with their corresponding styles,
6472  certain sorts of insets,
6473  etc—
6474 and the corresponding \SpecialChar LaTeX
6475 ,
6476  DocBook,
6477  or XHTML constructs.
6478  Almost everything \SpecialChar LyX
6479  knows about 
6480 \begin_inset Flex Code
6481 status collapsed
6482
6483 \begin_layout Plain Layout
6484 article.cls
6485 \end_layout
6486
6487 \end_inset
6488
6489 ,
6490  for example,
6491  is contained in the file 
6492 \begin_inset Flex Code
6493 status collapsed
6494
6495 \begin_layout Plain Layout
6496 article.layout
6497 \end_layout
6498
6499 \end_inset
6500
6501  and in various other files it includes.
6502  For this reason,
6503  anyone intending to write layout files should plan to study the existing files.
6504  A good place to start is with 
6505 \begin_inset Flex Code
6506 status collapsed
6507
6508 \begin_layout Plain Layout
6509 stdsections.inc
6510 \end_layout
6511
6512 \end_inset
6513
6514 ,
6515  which is included in 
6516 \begin_inset Flex Code
6517 status collapsed
6518
6519 \begin_layout Plain Layout
6520 article.layout
6521 \end_layout
6522
6523 \end_inset
6524
6525 ,
6526  
6527 \begin_inset Flex Code
6528 status collapsed
6529
6530 \begin_layout Plain Layout
6531 book.layout
6532 \end_layout
6533
6534 \end_inset
6535
6536 ,
6537  and many of the other layout files for document classes.
6538  This file is where sections and the like are defined:
6539  
6540 \begin_inset Flex Code
6541 status collapsed
6542
6543 \begin_layout Plain Layout
6544 stdsections.inc
6545 \end_layout
6546
6547 \end_inset
6548
6549  tells \SpecialChar LyX
6550  how paragraphs that are marked with the Section,
6551  Subsection,
6552  etc,
6553  styles can be translated into corresponding \SpecialChar LaTeX
6554 ,
6555  DocBook,
6556  and XHTML commands and tags.
6557  The 
6558 \begin_inset Flex Code
6559 status collapsed
6560
6561 \begin_layout Plain Layout
6562 article.layout
6563 \end_layout
6564
6565 \end_inset
6566
6567  file basically just includes several of these 
6568 \begin_inset Flex Code
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 std*.inc
6573 \end_layout
6574
6575 \end_inset
6576
6577  files.
6578 \end_layout
6579
6580 \begin_layout Standard
6581 Defining the \SpecialChar LyX
6582 –\SpecialChar LaTeX
6583  correspondence is not the only thing layout files do,
6584  though.
6585  Their other job is to define how the \SpecialChar LyX
6586  constructs themselves will appear on-screen.
6587  The fact that layout files have these two jobs is often a source of confusion,
6588  because they are completely separate.
6589  Telling \SpecialChar LyX
6590  how to translate a certain paragraph style into \SpecialChar LaTeX
6591  does not tell \SpecialChar LyX
6592  how to display it;
6593  conversely,
6594  telling \SpecialChar LyX
6595  how to display a certain paragraph style does not tell \SpecialChar LyX
6596  how to translate it into \SpecialChar LaTeX
6597  (let alone tell \SpecialChar LaTeX
6598  how to display it).
6599  So,
6600  in general,
6601  when you define a new \SpecialChar LyX
6602  construct,
6603  you must always do two quite separate things:
6604  (i)
6605 \begin_inset space ~
6606 \end_inset
6607
6608 tell \SpecialChar LyX
6609  how to translate it into \SpecialChar LaTeX
6610  and (ii)
6611 \begin_inset space ~
6612 \end_inset
6613
6614 tell \SpecialChar LyX
6615  how to display it.
6616 \end_layout
6617
6618 \begin_layout Standard
6619 Much the same is true,
6620  of course,
6621  as regards \SpecialChar LyX
6622 's other backend formats,
6623  though XHTML is in some ways different,
6624  because in that case \SpecialChar LyX
6625  
6626 \emph on
6627 is
6628 \emph default
6629  able,
6630  to some extent,
6631  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.
6632  Even in this case,
6633  however,
6634  the distinction between what \SpecialChar LyX
6635  does internally and how things are rendered externally remains in force,
6636  and the two can be controlled separately.
6637  See 
6638 \begin_inset CommandInset ref
6639 LatexCommand ref
6640 reference "sec:Tags-for-XHTML"
6641
6642 \end_inset
6643
6644  for the details.
6645 \end_layout
6646
6647 \begin_layout Section
6648 Installing new \SpecialChar LaTeX
6649  files
6650 \end_layout
6651
6652 \begin_layout Standard
6653 Some installations may not include a \SpecialChar LaTeX
6654  package or class file that you would like to use within \SpecialChar LyX
6655 .
6656  For example,
6657  you might need Foil\SpecialChar TeX
6658 ,
6659  a package for preparing slides for overhead projectors.
6660  Modern \SpecialChar LaTeX
6661  distributions like \SpecialChar TeX
6662 Live (2008 or newer) or MiK\SpecialChar TeX
6663  provide a user interface for installing such packages.
6664  For example,
6665  with MiK\SpecialChar TeX
6666 ,
6667  you start the program 
6668 \begin_inset Quotes eld
6669 \end_inset
6670
6671 Package
6672 \begin_inset space ~
6673 \end_inset
6674
6675 Manager
6676 \begin_inset Quotes erd
6677 \end_inset
6678
6679  to get a list of available packages.
6680  To install one of them,
6681  right click on it or use the corresponding toolbar button.
6682 \end_layout
6683
6684 \begin_layout Standard
6685 If your \SpecialChar LaTeX
6686  distribution does not provide such a `package manager',
6687  or if the package is not available from your distribution,
6688  then follow these steps to install it manually:
6689 \end_layout
6690
6691 \begin_layout Enumerate
6692 Get the package from 
6693 \begin_inset CommandInset href
6694 LatexCommand href
6695 name "CTAN"
6696 target "http://www.ctan.org/"
6697 literal "false"
6698
6699 \end_inset
6700
6701  or wherever.
6702 \end_layout
6703
6704 \begin_layout Enumerate
6705 If the package contains a file with the ending 
6706 \begin_inset Quotes eld
6707 \end_inset
6708
6709
6710 \begin_inset Flex Code
6711 status collapsed
6712
6713 \begin_layout Plain Layout
6714 .ins
6715 \end_layout
6716
6717 \end_inset
6718
6719
6720 \begin_inset Quotes erd
6721 \end_inset
6722
6723  (is the case for Foil\SpecialChar TeX
6724 ) then open a console,
6725  change to the folder of this file and execute the command 
6726 \begin_inset Flex Code
6727 status collapsed
6728
6729 \begin_layout Plain Layout
6730 latex foiltex.ins
6731 \end_layout
6732
6733 \end_inset
6734
6735 .
6736  You have now unpacked the package and have all files to install it.
6737  Most \SpecialChar LaTeX
6738 -packages are not packed and you can skip this step.
6739 \end_layout
6740
6741 \begin_layout Enumerate
6742 Now you need to decide if the package should be available for all users or only for you.
6743 \end_layout
6744
6745 \begin_deeper
6746 \begin_layout Enumerate
6747 On *nix systems (Linux,
6748  OSX,
6749  etc.),
6750  if you want the new package to be available for all users on your system,
6751  then install it in your `local' \SpecialChar TeX
6752  tree,
6753  otherwise install it in your own `user' \SpecialChar TeX
6754  tree.
6755  Where these trees should be created,
6756  if they do not already exist,
6757  depends on your system.
6758  To find this out,
6759  look in the file 
6760 \begin_inset Flex Code
6761 status collapsed
6762
6763 \begin_layout Plain Layout
6764 texmf.cnf
6765 \end_layout
6766
6767 \end_inset
6768
6769 .
6770 \begin_inset Foot
6771 status collapsed
6772
6773 \begin_layout Plain Layout
6774 This is usually in the directory 
6775 \begin_inset Flex Code
6776 status collapsed
6777
6778 \begin_layout Plain Layout
6779 $TEXMF/web2c
6780 \end_layout
6781
6782 \end_inset
6783
6784 ,
6785  though you can execute the command 
6786 \begin_inset Flex Code
6787 status collapsed
6788
6789 \begin_layout Plain Layout
6790 kpsewhich texmf.cnf
6791 \end_layout
6792
6793 \end_inset
6794
6795  to locate it.
6796 \end_layout
6797
6798 \end_inset
6799
6800  The location of the `local' \SpecialChar TeX
6801  tree is defined by the 
6802 \begin_inset Flex Code
6803 status collapsed
6804
6805 \begin_layout Plain Layout
6806 TEXMFLOCAL
6807 \end_layout
6808
6809 \end_inset
6810
6811  variable;
6812  this is usually somewhere like 
6813 \begin_inset Flex Code
6814 status collapsed
6815
6816 \begin_layout Plain Layout
6817 /usr/local/share/texmf
6818 \end_layout
6819
6820 \end_inset
6821
6822  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6823 Live distribution.
6824  The location of the `user' \SpecialChar TeX
6825  tree is defined by 
6826 \begin_inset Flex Code
6827 status collapsed
6828
6829 \begin_layout Plain Layout
6830 TEXMFHOME
6831 \end_layout
6832
6833 \end_inset
6834
6835  and is commonly 
6836 \begin_inset Flex Code
6837 status collapsed
6838
6839 \begin_layout Plain Layout
6840 $HOME/texmf
6841 \end_layout
6842
6843 \end_inset
6844
6845  or 
6846 \begin_inset Flex Code
6847 status collapsed
6848
6849 \begin_layout Plain Layout
6850
6851 \family sans
6852 $HOME/.texliveXXXX
6853 \end_layout
6854
6855 \end_inset
6856
6857 .
6858  (If these variables are not predefined,
6859  you have to define them.) You'll probably need root permissions to create or modify the `local' tree,
6860  but not for your `user' tree.
6861 \begin_inset Newline newline
6862 \end_inset
6863
6864 In general,
6865  it is recommended to install in the user tree because your user will not be modified or even overwritten when you upgrade your system.
6866  It will typically also be backed up together with everything else when you backup your home directory (which,
6867  of course,
6868  you do on a regular basis).
6869 \end_layout
6870
6871 \begin_layout Enumerate
6872 On Windows,
6873  if you want the new package to be available for all users on your system,
6874  change to the folder where \SpecialChar LaTeX
6875  is installed and then change to the subfolder 
6876 \begin_inset Flex Code
6877 status collapsed
6878
6879 \begin_layout Plain Layout
6880 ~
6881 \backslash
6882 tex
6883 \backslash
6884 latex
6885 \end_layout
6886
6887 \end_inset
6888
6889 .
6890  (For MiK\SpecialChar TeX
6891 ,
6892  this would be by default the folder 
6893 \begin_inset Flex Code
6894 status collapsed
6895
6896 \begin_layout Plain Layout
6897 ~:
6898 \backslash
6899 Programs
6900 \backslash
6901 MiKTeX
6902 \backslash
6903 tex
6904 \backslash
6905 latex
6906 \end_layout
6907
6908 \end_inset
6909
6910 .)
6911 \begin_inset Foot
6912 status collapsed
6913
6914 \begin_layout Plain Layout
6915 Note that this will be the correct path only on English installations.
6916  On a German one,
6917  it would be 
6918 \begin_inset Flex Code
6919 status collapsed
6920
6921 \begin_layout Plain Layout
6922 ~:
6923 \backslash
6924 Programme
6925 \backslash
6926 MiKTeX
6927 \backslash
6928 tex
6929 \backslash
6930 latex
6931 \end_layout
6932
6933 \end_inset
6934
6935 ,
6936  and similarly for other languages.
6937 \end_layout
6938
6939 \end_inset
6940
6941  Create there a new folder 
6942 \begin_inset Flex Code
6943 status collapsed
6944
6945 \begin_layout Plain Layout
6946 foiltex
6947 \end_layout
6948
6949 \end_inset
6950
6951  and copy all files of the package into it.
6952  
6953 \begin_inset Newline newline
6954 \end_inset
6955
6956 If the package should only available for you or you don't have admin permissions,
6957  do the same,
6958  but in the local \SpecialChar LaTeX
6959  folder.
6960  E.
6961 \begin_inset space \thinspace{}
6962 \end_inset
6963
6964 g.,
6965  for MiK\SpecialChar TeX
6966
6967 \begin_inset space ~
6968 \end_inset
6969
6970 2.8 under Windows XP,
6971  this would be the folder:
6972 \begin_inset Newline newline
6973 \end_inset
6974
6975
6976 \family sans
6977
6978 \begin_inset Flex Code
6979 status collapsed
6980
6981 \begin_layout Plain Layout
6982 ~:
6983 \backslash
6984 Documents and Settings
6985 \backslash
6986 <username>
6987 \backslash
6988 Application Data
6989 \backslash
6990
6991 \end_layout
6992
6993 \end_inset
6994
6995
6996 \begin_inset Newline newline
6997 \end_inset
6998
6999
7000 \family default
7001
7002 \begin_inset Phantom HPhantom
7003 status open
7004
7005 \begin_layout Plain Layout
7006
7007 \family sans
7008 ~:
7009 \backslash
7010
7011 \end_layout
7012
7013 \end_inset
7014
7015
7016 \begin_inset Flex Code
7017 status collapsed
7018
7019 \begin_layout Plain Layout
7020 MiKTeX
7021 \backslash
7022 2.8
7023 \backslash
7024 tex
7025 \backslash
7026 latex
7027 \end_layout
7028
7029 \end_inset
7030
7031
7032 \begin_inset Newline newline
7033 \end_inset
7034
7035 On Vista,
7036  it would be:
7037 \begin_inset Newline newline
7038 \end_inset
7039
7040
7041 \begin_inset Flex Code
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 ~:
7046 \backslash
7047 Users
7048 \backslash
7049 <username>
7050 \backslash
7051 AppData
7052 \backslash
7053 Roaming
7054 \backslash
7055 2.8
7056 \backslash
7057 MiKTeX
7058 \backslash
7059 tex
7060 \backslash
7061 latex
7062 \end_layout
7063
7064 \end_inset
7065
7066
7067 \end_layout
7068
7069 \end_deeper
7070 \begin_layout Enumerate
7071 Now one only need to tell \SpecialChar LaTeX
7072  that there are new files.
7073  This depends on the used \SpecialChar LaTeX
7074 -Distribution:
7075 \end_layout
7076
7077 \begin_deeper
7078 \begin_layout Enumerate
7079 For \SpecialChar TeX
7080 Live execute the command 
7081 \begin_inset Flex Code
7082 status collapsed
7083
7084 \begin_layout Plain Layout
7085 texhash
7086 \end_layout
7087
7088 \end_inset
7089
7090  from a console.
7091  If you installed the package for all users,
7092  then you will probably need to have root permissions for that.
7093 \end_layout
7094
7095 \begin_layout Enumerate
7096 For MiK\SpecialChar TeX
7097 ,
7098  if you have installed the package for all users,
7099  start the program 
7100 \begin_inset Quotes eld
7101 \end_inset
7102
7103 Settings
7104 \begin_inset space ~
7105 \end_inset
7106
7107 (Admin)
7108 \begin_inset Quotes erd
7109 \end_inset
7110
7111  and press the button marked 
7112 \begin_inset Quotes eld
7113 \end_inset
7114
7115 Refresh FNDB
7116 \begin_inset Quotes erd
7117 \end_inset
7118
7119 .
7120  Otherwise start the program 
7121 \begin_inset Quotes eld
7122 \end_inset
7123
7124 Settings
7125 \begin_inset Quotes erd
7126 \end_inset
7127
7128  and do the same.
7129 \end_layout
7130
7131 \end_deeper
7132 \begin_layout Enumerate
7133 Finally,
7134  you need to tell \SpecialChar LyX
7135  that there are new packages available.
7136  So,
7137  in \SpecialChar LyX
7138 ,
7139  use the menu 
7140 \begin_inset Flex Noun
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 Tools
7145 \family sans
7146 \SpecialChar menuseparator
7147 Reconfigure
7148 \end_layout
7149
7150 \end_inset
7151
7152  and then restart \SpecialChar LyX
7153 .
7154 \end_layout
7155
7156 \begin_layout Standard
7157 Now the package is installed.
7158  In our example,
7159  the document class 
7160 \begin_inset Flex Code
7161 status collapsed
7162
7163 \begin_layout Plain Layout
7164 FoilTex
7165 \end_layout
7166
7167 \end_inset
7168
7169  will now be available under 
7170 \begin_inset Flex Noun
7171 status collapsed
7172
7173 \begin_layout Plain Layout
7174 Document\SpecialChar menuseparator
7175 Settings\SpecialChar menuseparator
7176 Document Class
7177 \end_layout
7178
7179 \end_inset
7180
7181  (in the 
7182 \begin_inset Quotes eld
7183 \end_inset
7184
7185 Presentations
7186 \begin_inset Quotes erd
7187 \end_inset
7188
7189  category).
7190  
7191 \end_layout
7192
7193 \begin_layout Standard
7194 If you would like to use a \SpecialChar LaTeX
7195  document class that is not even listed in the menu 
7196 \begin_inset Flex Noun
7197 status collapsed
7198
7199 \begin_layout Plain Layout
7200 Document\SpecialChar menuseparator
7201 Settings\SpecialChar menuseparator
7202 Document Class
7203 \end_layout
7204
7205 \end_inset
7206
7207 ,
7208  then you need to create a `layout' file for it.
7209  That is the topic of the next section.
7210 \end_layout
7211
7212 \begin_layout Section
7213 Types of layout files
7214 \end_layout
7215
7216 \begin_layout Standard
7217 This section describes the various sorts of \SpecialChar LyX
7218  files that contain layout information.
7219  These files describe various paragraph and character styles,
7220  determining how \SpecialChar LyX
7221  should display them and how they should be translated into \SpecialChar LaTeX
7222 ,
7223  DocBook,
7224  XHTML,
7225  or whatever output format is being used.
7226  
7227 \end_layout
7228
7229 \begin_layout Standard
7230 We shall try to provide a thorough description of the process of writing layout files here.
7231  However,
7232  there are so many different types of documents supported even by just \SpecialChar LaTeX
7233  that we can't hope to cover every different possibility or problem you might encounter.
7234  The \SpecialChar LyX
7235  users' list is frequented by people with lots of experience with layout design who are willing to share what they've learned,
7236  so please feel free to ask questions there.
7237 \end_layout
7238
7239 \begin_layout Standard
7240 As you prepare to write a new layout,
7241  it is extremely helpful to look at the layouts distributed with \SpecialChar LyX
7242 .
7243  If you write a \SpecialChar LyX
7244  layout for a \SpecialChar LaTeX
7245  document class that might also be used by others,
7246  or write a module that might be useful to others,
7247  then you should consider posting your layout to the 
7248 \begin_inset CommandInset href
7249 LatexCommand href
7250 name "layout section on the LyX wiki"
7251 target "https://wiki.lyx.org/Layouts/Layouts"
7252 literal "false"
7253
7254 \end_inset
7255
7256  or even to the \SpecialChar LyX
7257  developers' list,
7258  so that it might be included in \SpecialChar LyX
7259  itself.
7260 \begin_inset Foot
7261 status collapsed
7262
7263 \begin_layout Plain Layout
7264 Note that \SpecialChar LyX
7265  is licensed under the General Public License,
7266  so any material that is contributed to \SpecialChar LyX
7267  must be similarly licensed.
7268 \end_layout
7269
7270 \end_inset
7271
7272
7273 \end_layout
7274
7275 \begin_layout Subsection
7276 Layout modules
7277 \begin_inset CommandInset label
7278 LatexCommand label
7279 name "subsec:Layout-modules"
7280
7281 \end_inset
7282
7283
7284 \end_layout
7285
7286 \begin_layout Standard
7287 We have spoken to this point about `layout files'.
7288  But there are different sorts of files that contain layout information.
7289  Layout files,
7290  strictly so called,
7291  have the 
7292 \begin_inset Flex Code
7293 status collapsed
7294
7295 \begin_layout Plain Layout
7296 .layout
7297 \end_layout
7298
7299 \end_inset
7300
7301  extension and provide \SpecialChar LyX
7302  with information about document classes.
7303  Since \SpecialChar LyX
7304  1.6 layout information can also be contained in layout 
7305 \emph on
7306 modules
7307 \emph default
7308 ,
7309  which have the 
7310 \begin_inset Flex Code
7311 status collapsed
7312
7313 \begin_layout Plain Layout
7314 .module
7315 \end_layout
7316
7317 \end_inset
7318
7319  extension.
7320  Modules are to \SpecialChar LaTeX
7321  packages much as layouts are to \SpecialChar LaTeX
7322  classes,
7323  and some modules—
7324 such as the 
7325 \begin_inset Flex Code
7326 status collapsed
7327
7328 \begin_layout Plain Layout
7329 endnotes
7330 \end_layout
7331
7332 \end_inset
7333
7334  module—
7335 specifically provide support for one package.
7336  In a sense,
7337  layout modules are similar to included
7338 \begin_inset Foot
7339 status collapsed
7340
7341 \begin_layout Plain Layout
7342 These can have any extension,
7343  but by convention have the 
7344 \begin_inset Flex Code
7345 status collapsed
7346
7347 \begin_layout Plain Layout
7348 .inc
7349 \end_layout
7350
7351 \end_inset
7352
7353  extension.
7354 \end_layout
7355
7356 \end_inset
7357
7358  files—
7359 files like 
7360 \begin_inset Flex Code
7361 status collapsed
7362
7363 \begin_layout Plain Layout
7364 stdsections.inc
7365 \end_layout
7366
7367 \end_inset
7368
7369
7370 in that modules are not specific to a given document class but may be used with many different classes.
7371  The difference is that using an included file with 
7372 \begin_inset Flex Code
7373 status collapsed
7374
7375 \begin_layout Plain Layout
7376 article.cls
7377 \end_layout
7378
7379 \end_inset
7380
7381  requires editing that file.
7382  Modules,
7383  by contrast,
7384  are selected in the 
7385 \begin_inset Flex Noun
7386 status collapsed
7387
7388 \begin_layout Plain Layout
7389 Document\SpecialChar menuseparator
7390 Settings
7391 \end_layout
7392
7393 \end_inset
7394
7395  dialog.
7396 \end_layout
7397
7398 \begin_layout Standard
7399 Building modules is the easiest way to get started with layout editing,
7400  since it can be as simple as adding a single new paragraph style or flex inset.
7401  But modules may,
7402  in principle,
7403  contain anything a layout file can contain.
7404 \end_layout
7405
7406 \begin_layout Standard
7407 After creating a new module and copying it to the 
7408 \begin_inset Flex Code
7409 status collapsed
7410
7411 \begin_layout Plain Layout
7412 layouts/
7413 \end_layout
7414
7415 \end_inset
7416
7417  folder,
7418  you will need to reconfigure and then restart \SpecialChar LyX
7419  for the module to appear in the menu.
7420  However,
7421  changes you make to the module will be seen immediately,
7422  if you open 
7423 \begin_inset Flex Noun
7424 status collapsed
7425
7426 \begin_layout Plain Layout
7427 Document\SpecialChar menuseparator
7428 Settings
7429 \end_layout
7430
7431 \end_inset
7432
7433 ,
7434  highlight something,
7435  and then hit 
7436 \begin_inset Quotes eld
7437 \end_inset
7438
7439 OK
7440 \begin_inset Quotes erd
7441 \end_inset
7442
7443 .
7444  
7445 \emph on
7446 It is strongly recommended that you save your work before doing this
7447 \emph default
7448 .
7449  In fact,
7450  
7451 \emph on
7452 it is strongly recommended that you not attempt to edit modules while simultaneously working on actual documents
7453 \emph default
7454 .
7455  Though of course the developers strive to keep \SpecialChar LyX
7456  stable in such situations,
7457  syntax errors and the like in your module file could cause strange behavior.
7458 \end_layout
7459
7460 \begin_layout Subsubsection
7461 Local Layout
7462 \end_layout
7463
7464 \begin_layout Standard
7465 Modules are to \SpecialChar LyX
7466  as packages are to \SpecialChar LaTeX
7467 .
7468  Sometimes,
7469  however,
7470  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.
7471  What you need is \SpecialChar LyX
7472 's 
7473 \begin_inset Quotes eld
7474 \end_inset
7475
7476 Local Layout
7477 \begin_inset Quotes erd
7478 \end_inset
7479
7480 .
7481 \end_layout
7482
7483 \begin_layout Standard
7484 You will find it under 
7485 \family sans
7486 Document\SpecialChar menuseparator
7487 Settings\SpecialChar menuseparator
7488 Local Layout
7489 \family default
7490 .
7491  The large text box allows you to enter anything that you might enter in a layout file or module.
7492  You can think of a document's local layout,
7493  in fact,
7494  as a module that belongs just to it.
7495  So,
7496  in particular,
7497  you must enter a 
7498 \begin_inset Flex Code
7499 status collapsed
7500
7501 \begin_layout Plain Layout
7502 Format
7503 \end_layout
7504
7505 \end_inset
7506
7507  tag.
7508  Any format is acceptable,
7509  but one would normally use the format current at the time.
7510  (In \SpecialChar LyX
7511  
7512 \begin_inset Info
7513 type  "lyxinfo"
7514 arg   "version"
7515 \end_inset
7516
7517 ,
7518  the current layout format is 
7519 \begin_inset Info
7520 type  "lyxinfo"
7521 arg   "layoutformat"
7522 \end_inset
7523
7524 .)
7525 \end_layout
7526
7527 \begin_layout Standard
7528 When you have entered something in the 
7529 \begin_inset Flex Code
7530 status collapsed
7531
7532 \begin_layout Plain Layout
7533 Local Layout
7534 \end_layout
7535
7536 \end_inset
7537
7538  pane,
7539  \SpecialChar LyX
7540  will enable the 
7541 \begin_inset Quotes eld
7542 \end_inset
7543
7544 Validate
7545 \begin_inset Quotes erd
7546 \end_inset
7547
7548  button at the bottom.
7549  Clicking this button will cause \SpecialChar LyX
7550  to determine whether what you have entered is valid layout information for the chosen format.
7551  \SpecialChar LyX
7552  will report the result but,
7553  unfortunately,
7554  will not tell you what errors there might have been.
7555  These will be written to the terminal,
7556  however,
7557  if \SpecialChar LyX
7558  is started from a terminal.
7559  You will not be permitted to save your local layout until you have entered something valid.
7560 \end_layout
7561
7562 \begin_layout Standard
7563 The warnings at the end of the previous section apply here,
7564  too.
7565  Do not play with local layout while you are actually working,
7566  especially if you have not saved your document.
7567  That said,
7568  using local layout with a test document can be a very convenient way to try out layout ideas,
7569  or even to start developing a module.
7570 \end_layout
7571
7572 \begin_layout Subsection
7573 Layout for 
7574 \begin_inset Flex Noun
7575 status collapsed
7576
7577 \begin_layout Plain Layout
7578 .sty
7579 \end_layout
7580
7581 \end_inset
7582
7583  files
7584 \end_layout
7585
7586 \begin_layout Standard
7587 There are two situations you are likely to encounter when wanting to support a new \SpecialChar LaTeX
7588  document class,
7589  involving style (
7590 \begin_inset Flex Code
7591 status collapsed
7592
7593 \begin_layout Plain Layout
7594 .sty
7595 \end_layout
7596
7597 \end_inset
7598
7599 ) files and \SpecialChar LaTeX2e
7600  class (
7601 \begin_inset Flex Code
7602 status collapsed
7603
7604 \begin_layout Plain Layout
7605 .cls
7606 \end_layout
7607
7608 \end_inset
7609
7610 ) .
7611  Supporting a style file is usually fairly easy.
7612  Supporting a new class file is a bit harder.
7613  We'll discuss the former in this section and the latter in the next.
7614  
7615 \change_deleted 5863208 1594239023
7616 Similar remarks apply,
7617  of course,
7618  if you want to support a new DocBook DTD.
7619 \change_unchanged
7620
7621 \end_layout
7622
7623 \begin_layout Standard
7624 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.
7625  For the sake of the example,
7626  we'll assume that the style file is called 
7627 \begin_inset Flex Noun
7628 status collapsed
7629
7630 \begin_layout Plain Layout
7631 myclass.sty
7632 \end_layout
7633
7634 \end_inset
7635
7636  and that it is meant to be used with 
7637 \begin_inset Flex Noun
7638 status collapsed
7639
7640 \begin_layout Plain Layout
7641 report.cls
7642 \end_layout
7643
7644 \end_inset
7645
7646 ,
7647  which is a standard class.
7648  
7649 \end_layout
7650
7651 \begin_layout Standard
7652 Start by copying the existing class's layout file into your local directory:
7653 \begin_inset Foot
7654 status collapsed
7655
7656 \begin_layout Plain Layout
7657 Of course,
7658  which directory is your local directory will vary by platform,
7659  and \SpecialChar LyX
7660  allows you to specify your local directory on startup,
7661  too,
7662  using the 
7663 \begin_inset Flex Code
7664 status collapsed
7665
7666 \begin_layout Plain Layout
7667 -userdir
7668 \end_layout
7669
7670 \end_inset
7671
7672  option.
7673 \end_layout
7674
7675 \end_inset
7676
7677
7678 \end_layout
7679
7680 \begin_layout LyX-Code
7681 cp report.layout ~/.lyx/layouts/myclass.layout
7682 \end_layout
7683
7684 \begin_layout Standard
7685 Then edit 
7686 \begin_inset Flex Code
7687 status collapsed
7688
7689 \begin_layout Plain Layout
7690 myclass.layout
7691 \end_layout
7692
7693 \end_inset
7694
7695  and change the line:
7696  
7697 \end_layout
7698
7699 \begin_layout LyX-Code
7700
7701 \backslash
7702 DeclareLaTeXClass{Report (Standard Class)}
7703 \end_layout
7704
7705 \begin_layout Standard
7706 to read
7707 \end_layout
7708
7709 \begin_layout LyX-Code
7710
7711 \backslash
7712 DeclareLaTeXClass[report,
7713  myclass.sty]{Report (My Class)}
7714 \end_layout
7715
7716 \begin_layout Standard
7717 Then add:
7718 \end_layout
7719
7720 \begin_layout LyX-Code
7721 Preamble 
7722 \begin_inset Newline newline
7723 \end_inset
7724
7725     
7726 \backslash
7727 usepackage{myclass}
7728 \begin_inset Newline newline
7729 \end_inset
7730
7731 EndPreamble
7732 \end_layout
7733
7734 \begin_layout Standard
7735 near the top of the file.
7736 \end_layout
7737
7738 \begin_layout Standard
7739 Start \SpecialChar LyX
7740  and select 
7741 \begin_inset Flex Noun
7742 status collapsed
7743
7744 \begin_layout Plain Layout
7745 Tools\SpecialChar menuseparator
7746 Reconfigure
7747 \end_layout
7748
7749 \end_inset
7750
7751 .
7752  Then restart \SpecialChar LyX
7753  and try creating a new document.
7754  You should see "
7755 \begin_inset Flex Noun
7756 status collapsed
7757
7758 \begin_layout Plain Layout
7759 Report (My Class)
7760 \end_layout
7761
7762 \end_inset
7763
7764 " as a document class option in the 
7765 \begin_inset Flex Noun
7766 status collapsed
7767
7768 \begin_layout Plain Layout
7769 Document\SpecialChar menuseparator
7770 Settings
7771 \end_layout
7772
7773 \end_inset
7774
7775  dialog.
7776  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—
7777
7778 \begin_inset Flex Code
7779 status collapsed
7780
7781 \begin_layout Plain Layout
7782 report
7783 \end_layout
7784
7785 \end_inset
7786
7787  in this example—
7788 so you can fiddle around with the settings for the different sections if you wish.
7789  The layout information for sections is contained in 
7790 \begin_inset Flex Code
7791 status collapsed
7792
7793 \begin_layout Plain Layout
7794 stdsections.inc
7795 \end_layout
7796
7797 \end_inset
7798
7799 ,
7800  but you do not need to copy and change this file.
7801  Instead,
7802  you can simply add your changes to your layout file,
7803  after the line 
7804 \begin_inset Flex Code
7805 status collapsed
7806
7807 \begin_layout Plain Layout
7808 Input stdclass.inc
7809 \end_layout
7810
7811 \end_inset
7812
7813 ,
7814  which itself includes 
7815 \begin_inset Flex Code
7816 status collapsed
7817
7818 \begin_layout Plain Layout
7819 stdsections.inc
7820 \end_layout
7821
7822 \end_inset
7823
7824 .
7825  For example,
7826  you might add these lines:
7827 \end_layout
7828
7829 \begin_layout LyX-Code
7830 Style Chapter
7831 \end_layout
7832
7833 \begin_layout LyX-Code
7834     Font
7835 \end_layout
7836
7837 \begin_layout LyX-Code
7838         Family Sans
7839 \end_layout
7840
7841 \begin_layout LyX-Code
7842     EndFont
7843 \end_layout
7844
7845 \begin_layout LyX-Code
7846 End
7847 \end_layout
7848
7849 \begin_layout Standard
7850 to change the font for chapter headings to sans-serif.
7851  This will override (or,
7852  in this case,
7853  add to) the existing declaration for the Chapter style.
7854  
7855 \end_layout
7856
7857 \begin_layout Standard
7858 Your new package may also provide commands or environments not present in the base class.
7859  In this case,
7860  you will want to add these to the layout file.
7861  See 
7862 \begin_inset CommandInset ref
7863 LatexCommand ref
7864 reference "sec:TextClass"
7865
7866 \end_inset
7867
7868  for information on how to do so.
7869 \end_layout
7870
7871 \begin_layout Standard
7872 If 
7873 \begin_inset Flex Noun
7874 status collapsed
7875
7876 \begin_layout Plain Layout
7877 myclass.sty
7878 \end_layout
7879
7880 \end_inset
7881
7882  can be used with several different document classes,
7883  and even if it cannot,
7884  you might find it easiest just to write a module that you can load with the base class.
7885  The simplest possible such module would be:
7886 \end_layout
7887
7888 \begin_layout LyX-Code
7889 #
7890 \backslash
7891 DeclareLyXModule{My Class} 
7892 \end_layout
7893
7894 \begin_layout LyX-Code
7895 #DescriptionBegin 
7896 \end_layout
7897
7898 \begin_layout LyX-Code
7899 #Support for myclass.sty.
7900 \end_layout
7901
7902 \begin_layout LyX-Code
7903 #DescriptionEnd
7904 \begin_inset Newline newline
7905 \end_inset
7906
7907
7908 \end_layout
7909
7910 \begin_layout LyX-Code
7911 Format 
7912 \begin_inset Info
7913 type  "lyxinfo"
7914 arg   "layoutformat"
7915 \end_inset
7916
7917
7918 \begin_inset Newline newline
7919 \end_inset
7920
7921
7922 \end_layout
7923
7924 \begin_layout LyX-Code
7925 Preamble
7926 \begin_inset Newline newline
7927 \end_inset
7928
7929     
7930 \backslash
7931 usepackage{myclass}
7932 \begin_inset Newline newline
7933 \end_inset
7934
7935 EndPreamble
7936 \end_layout
7937
7938 \begin_layout Standard
7939 A more complex module might modify the behavior of some existing constructs or define some new ones.
7940  Again,
7941  see 
7942 \begin_inset CommandInset ref
7943 LatexCommand ref
7944 reference "sec:TextClass"
7945
7946 \end_inset
7947
7948  for discussion.
7949 \end_layout
7950
7951 \begin_layout Subsection
7952 Layout for 
7953 \begin_inset Flex Noun
7954 status collapsed
7955
7956 \begin_layout Plain Layout
7957 .cls
7958 \end_layout
7959
7960 \end_inset
7961
7962  files
7963 \end_layout
7964
7965 \begin_layout Standard
7966 There are two possibilities here.
7967  One is that the class file is itself based upon an existing document class.
7968  For example,
7969  many thesis classes are based upon 
7970 \begin_inset Flex Noun
7971 status collapsed
7972
7973 \begin_layout Plain Layout
7974 book.cls
7975 \end_layout
7976
7977 \end_inset
7978
7979 .
7980  To see whether yours is,
7981  look for a line like
7982 \end_layout
7983
7984 \begin_layout LyX-Code
7985
7986 \backslash
7987 LoadClass{book}
7988 \end_layout
7989
7990 \begin_layout Standard
7991 in the file.
7992  If so,
7993  then you may proceed largely as in the previous section,
7994  though the 
7995 \begin_inset Flex Code
7996 status collapsed
7997
7998 \begin_layout Plain Layout
7999 Declare\SpecialChar LaTeX
8000 Class
8001 \end_layout
8002
8003 \end_inset
8004
8005  line will be different.
8006  If your new class is 
8007 \begin_inset Flex Code
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 thesis
8012 \end_layout
8013
8014 \end_inset
8015
8016  and it is based upon 
8017 \begin_inset Flex Code
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 book
8022 \end_layout
8023
8024 \end_inset
8025
8026 ,
8027  then the line should read:
8028 \begin_inset Foot
8029 status collapsed
8030
8031 \begin_layout Plain Layout
8032 And it will be easiest if you save the file to 
8033 \begin_inset Flex Code
8034 status collapsed
8035
8036 \begin_layout Plain Layout
8037 thesis.layout
8038 \end_layout
8039
8040 \end_inset
8041
8042 :
8043  \SpecialChar LyX
8044  assumes that the document class has the same name as the layout file.
8045  
8046 \end_layout
8047
8048 \end_inset
8049
8050
8051 \end_layout
8052
8053 \begin_layout LyX-Code
8054
8055 \backslash
8056 DeclareLaTeXClass[thesis,book]{thesis}
8057 \end_layout
8058
8059 \begin_layout Standard
8060 If,
8061  on the other hand,
8062  the new class is not based upon an existing class,
8063  you will probably have to 
8064 \begin_inset Quotes eld
8065 \end_inset
8066
8067 roll your own
8068 \begin_inset Quotes erd
8069 \end_inset
8070
8071  layout.
8072  We strongly suggest copying an existing layout file which uses a similar \SpecialChar LaTeX
8073  class and then modifying it,
8074  if you can do so.
8075  At least use an existing file as a starting point so you can find out what items you need to worry about.
8076  Again,
8077  the specifics are covered below.
8078 \end_layout
8079
8080 \begin_layout Subsection
8081 Creating templates
8082 \begin_inset CommandInset label
8083 LatexCommand label
8084 name "subsec:Creating-Templates"
8085
8086 \end_inset
8087
8088
8089 \end_layout
8090
8091 \begin_layout Standard
8092 Once you have written a layout file for a new document class,
8093  you might want to consider writing a 
8094 \emph on
8095 template
8096 \emph default
8097  for it,
8098  too.
8099  A template acts as a kind of tutorial for your layout,
8100  showing how it might be used,
8101  though containing dummy content.
8102  You can of course look at the various templates included with \SpecialChar LyX
8103  for ideas.
8104 \end_layout
8105
8106 \begin_layout Standard
8107 Templates are created just like usual documents:
8108  using \SpecialChar LyX
8109 .
8110  The only difference is that usual documents contain all possible settings,
8111  including the font scheme and the paper size.
8112  Usually a user doesn't want a template to overwrite his preferred settings for such parameters.
8113  For that reason,
8114  the designer of a template should remove the corresponding commands like 
8115 \begin_inset Flex Code
8116 status collapsed
8117
8118 \begin_layout Plain Layout
8119
8120 \backslash
8121 font_roman
8122 \end_layout
8123
8124 \end_inset
8125
8126  or 
8127 \begin_inset Flex Code
8128 status collapsed
8129
8130 \begin_layout Plain Layout
8131
8132 \backslash
8133 papersize
8134 \end_layout
8135
8136 \end_inset
8137
8138  from the template \SpecialChar LyX
8139  file.
8140  This can be done with any simple text-editor,
8141  for example 
8142 \begin_inset Flex Code
8143 status collapsed
8144
8145 \begin_layout Plain Layout
8146 vi
8147 \end_layout
8148
8149 \end_inset
8150
8151  or 
8152 \begin_inset Flex Code
8153 status collapsed
8154
8155 \begin_layout Plain Layout
8156 notepad
8157 \end_layout
8158
8159 \end_inset
8160
8161 .
8162 \end_layout
8163
8164 \begin_layout Standard
8165 Put the edited template files you create in 
8166 \begin_inset Flex Code
8167 status collapsed
8168
8169 \begin_layout Plain Layout
8170 UserDir/templates/
8171 \end_layout
8172
8173 \end_inset
8174
8175 ,
8176  copy the ones you use from the global template directory in 
8177 \begin_inset Flex Code
8178 status collapsed
8179
8180 \begin_layout Plain Layout
8181 LyXDir/templates/
8182 \end_layout
8183
8184 \end_inset
8185
8186  to the same place,
8187  and redefine the template path in the 
8188 \begin_inset Flex Noun
8189 status collapsed
8190
8191 \begin_layout Plain Layout
8192 Tools\SpecialChar menuseparator
8193 Preferences\SpecialChar menuseparator
8194 Paths
8195 \end_layout
8196
8197 \end_inset
8198
8199  dialog.
8200 \end_layout
8201
8202 \begin_layout Standard
8203 Note,
8204  by the way,
8205  that there is a template which has a particular meaning:
8206 \begin_inset Newline linebreak
8207 \end_inset
8208
8209
8210 \begin_inset Flex Code
8211 status collapsed
8212
8213 \begin_layout Plain Layout
8214 defaults.lyx
8215 \end_layout
8216
8217 \end_inset
8218
8219 .
8220  This template is loaded every time you create a new document with 
8221 \begin_inset Flex Noun
8222 status collapsed
8223
8224 \begin_layout Plain Layout
8225 File\SpecialChar menuseparator
8226 New
8227 \end_layout
8228
8229 \end_inset
8230
8231  in order to provide useful defaults.
8232  To create this template from inside \SpecialChar LyX
8233 ,
8234  all you have to do is to open a document with the correct settings,
8235  and use the 
8236 \begin_inset Flex Noun
8237 status collapsed
8238
8239 \begin_layout Plain Layout
8240 Save as Document Defaults
8241 \end_layout
8242
8243 \end_inset
8244
8245  button.
8246 \end_layout
8247
8248 \begin_layout Subsection
8249 Upgrading old layout files
8250 \end_layout
8251
8252 \begin_layout Standard
8253 The format of layout files changes with each \SpecialChar LyX
8254  release,
8255  so old layout files need to be converted to the new format.
8256  If \SpecialChar LyX
8257  reads a layout file in an older format,
8258  it automatically calls the script 
8259 \begin_inset Flex Code
8260 status collapsed
8261
8262 \begin_layout Plain Layout
8263 layout2layout.py
8264 \end_layout
8265
8266 \end_inset
8267
8268  to convert it to a temporary file in current format.
8269  The original file is left untouched.
8270  If you use the layout file often,
8271  then,
8272  you may want to convert it permanently,
8273  so that \SpecialChar LyX
8274  does not have to do so itself every time.
8275  To do this,
8276  you can call the converter manually:
8277 \end_layout
8278
8279 \begin_layout Enumerate
8280 rename the file 
8281 \begin_inset Flex Code
8282 status collapsed
8283
8284 \begin_layout Plain Layout
8285 myclass.layout
8286 \end_layout
8287
8288 \end_inset
8289
8290  to 
8291 \begin_inset Flex Code
8292 status collapsed
8293
8294 \begin_layout Plain Layout
8295 myclass.old
8296 \end_layout
8297
8298 \end_inset
8299
8300
8301 \end_layout
8302
8303 \begin_layout Enumerate
8304 Call the command
8305 \begin_inset Newline newline
8306 \end_inset
8307
8308
8309 \begin_inset Flex Code
8310 status collapsed
8311
8312 \begin_layout Plain Layout
8313 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8314 \end_layout
8315
8316 \end_inset
8317
8318
8319 \begin_inset Newline newline
8320 \end_inset
8321
8322 where 
8323 \begin_inset Flex Code
8324 status collapsed
8325
8326 \begin_layout Plain Layout
8327 LyXDir
8328 \end_layout
8329
8330 \end_inset
8331
8332  is the name of your \SpecialChar LyX
8333  system directory.
8334 \end_layout
8335
8336 \begin_layout Standard
8337 Note that manual conversion does not affect included files,
8338  so these will have to be converted separately.
8339 \end_layout
8340
8341 \begin_layout Subsection
8342 \begin_inset CommandInset label
8343 LatexCommand label
8344 name "subsec:Cite-Engine-Files"
8345
8346 \end_inset
8347
8348 Cite engine files
8349 \end_layout
8350
8351 \begin_layout Standard
8352 A specific form of layout files are the so-called 
8353 \begin_inset Flex Code
8354 status collapsed
8355
8356 \begin_layout Plain Layout
8357 *.citeengine
8358 \end_layout
8359
8360 \end_inset
8361
8362  files that are located in the 
8363 \begin_inset Flex Code
8364 status collapsed
8365
8366 \begin_layout Plain Layout
8367 citeengines/
8368 \end_layout
8369
8370 \end_inset
8371
8372  sub-directory.
8373  Their purpose is to define the specifics of \SpecialChar LaTeX
8374  packages aimed at bibliography generation,
8375  such as 
8376 \family sans
8377 natbib
8378 \family default
8379 ,
8380
8381 \family sans
8382  jurabib
8383 \family default
8384  or 
8385 \family sans
8386 biblatex
8387 \family default
8388 ,
8389  but also the way how normal Bib\SpecialChar TeX
8390  citations (without additional packages) are handled in \SpecialChar LyX
8391  is defined in such a file.
8392  
8393 \end_layout
8394
8395 \begin_layout Standard
8396 More specifically,
8397  it is defined which packages \SpecialChar LyX
8398  needs to load,
8399  which citation commands are available,
8400  how these are to be displayed in \SpecialChar LyX
8401  (in the workarea,
8402  the dialogs,
8403  the context menus) as well as in the XHTML and plain text output.
8404  Furthermore,
8405  the files specify available style variants (author-year,
8406  numerical,
8407  etc.) and their specifics.
8408  The cite engine files are also used to generate the options that are available in 
8409 \family sans
8410 Document\SpecialChar menuseparator
8411 Settings\SpecialChar menuseparator
8412 Bibliography\SpecialChar menuseparator
8413 Style engine
8414 \family default
8415 .
8416 \end_layout
8417
8418 \begin_layout Standard
8419 Even though a cite engine file is essentially a normal layout file that could theoretically include any layout information,
8420  it usually primarily includes some specific parameters such as 
8421 \begin_inset Flex Code
8422 status collapsed
8423
8424 \begin_layout Plain Layout
8425 MaxCiteNames
8426 \end_layout
8427
8428 \end_inset
8429
8430 ,
8431  
8432 \begin_inset Flex Code
8433 status collapsed
8434
8435 \begin_layout Plain Layout
8436 CiteFramework
8437 \end_layout
8438
8439 \end_inset
8440
8441 ,
8442  
8443 \begin_inset Flex Code
8444 status collapsed
8445
8446 \begin_layout Plain Layout
8447 CiteEngine
8448 \end_layout
8449
8450 \end_inset
8451
8452  and 
8453 \begin_inset Flex Code
8454 status collapsed
8455
8456 \begin_layout Plain Layout
8457 CiteFormat
8458 \end_layout
8459
8460 \end_inset
8461
8462  blocks.
8463  The syntax of the latter two is described in 
8464 \begin_inset CommandInset ref
8465 LatexCommand ref
8466 reference "subsec:Citation-engine-description"
8467 plural "false"
8468 caps "false"
8469 noprefix "false"
8470
8471 \end_inset
8472
8473  and 
8474 \begin_inset CommandInset ref
8475 LatexCommand ref
8476 reference "subsec:Citation-format-description"
8477
8478 \end_inset
8479
8480 ,
8481  as well as in the files themselves.
8482 \end_layout
8483
8484 \begin_layout Section
8485 \begin_inset CommandInset label
8486 LatexCommand label
8487 name "sec:TextClass"
8488
8489 \end_inset
8490
8491 The layout file format
8492 \end_layout
8493
8494 \begin_layout Standard
8495 The following sections describe how layout files are structured and written.
8496  Our advice is to go slowly,
8497  save and test often.
8498  It is really not that hard,
8499  except that the multitude of options can become overwhelming,
8500  especially if you try to check out too many at once.
8501  It becomes easier if you use existing layouts of \SpecialChar LyX
8502  as examples/reference or if you modify an existing layout to your needs.
8503 \end_layout
8504
8505 \begin_layout Standard
8506 Note that all the tags used in layout files are case-insensitive.
8507  This means that 
8508 \begin_inset Flex Code
8509 status collapsed
8510
8511 \begin_layout Plain Layout
8512 Style
8513 \end_layout
8514
8515 \end_inset
8516
8517 ,
8518  
8519 \begin_inset Flex Code
8520 status collapsed
8521
8522 \begin_layout Plain Layout
8523 style
8524 \end_layout
8525
8526 \end_inset
8527
8528  and 
8529 \begin_inset Flex Code
8530 status collapsed
8531
8532 \begin_layout Plain Layout
8533 StYlE
8534 \end_layout
8535
8536 \end_inset
8537
8538  are really the same tag.
8539  The possible arguments are printed in brackets after the tag's name.
8540  The default argument is typeset 
8541 \begin_inset Flex Code
8542 status collapsed
8543
8544 \begin_layout Plain Layout
8545
8546 \emph on
8547 emphasized
8548 \end_layout
8549
8550 \end_inset
8551
8552 .
8553  If the argument has a data type like 
8554 \begin_inset Quotes eld
8555 \end_inset
8556
8557 string
8558 \begin_inset Quotes erd
8559 \end_inset
8560
8561  or 
8562 \begin_inset Quotes eld
8563 \end_inset
8564
8565 float
8566 \begin_inset Quotes erd
8567 \end_inset
8568
8569 ,
8570  the default is shown like this:
8571  
8572 \begin_inset Flex Code
8573 status collapsed
8574
8575 \begin_layout Plain Layout
8576 float=
8577 \emph on
8578 default
8579 \end_layout
8580
8581 \end_inset
8582
8583 .
8584 \end_layout
8585
8586 \begin_layout Subsection
8587 The document class declaration and classification
8588 \end_layout
8589
8590 \begin_layout Standard
8591 Lines in a layout file which begin with 
8592 \begin_inset Flex Code
8593 status collapsed
8594
8595 \begin_layout Plain Layout
8596 #
8597 \end_layout
8598
8599 \end_inset
8600
8601  are comments.
8602  There is one exception to this rule.
8603  All 
8604 \begin_inset Flex Code
8605 status collapsed
8606
8607 \begin_layout Plain Layout
8608 *.layout
8609 \end_layout
8610
8611 \end_inset
8612
8613  files should begin with lines like:
8614 \end_layout
8615
8616 \begin_layout LyX-Code
8617
8618 \size small
8619 #% Do not delete the line below;
8620  configure depends on this 
8621 \end_layout
8622
8623 \begin_layout LyX-Code
8624
8625 \size small
8626 #  
8627 \backslash
8628 DeclareLaTeXClass{Article (Standard Class)}
8629 \end_layout
8630
8631 \begin_layout LyX-Code
8632
8633 \size small
8634 #  
8635 \backslash
8636 DeclareCategory{Articles}
8637 \end_layout
8638
8639 \begin_layout Standard
8640 The second and third lines are used when you (re)configure \SpecialChar LyX
8641 .
8642  The layout file is read by the \SpecialChar LaTeX
8643  script 
8644 \begin_inset Flex Code
8645 status collapsed
8646
8647 \begin_layout Plain Layout
8648 chkconfig.ltx
8649 \end_layout
8650
8651 \end_inset
8652
8653 ,
8654  in a special mode where 
8655 \begin_inset Flex Code
8656 status collapsed
8657
8658 \begin_layout Plain Layout
8659 #
8660 \end_layout
8661
8662 \end_inset
8663
8664  is ignored.
8665  The first line is just a \SpecialChar LaTeX
8666  comment,
8667  the second one contains the mandatory declaration of the text class and the third line contains the optional classification of the class.
8668  If these lines appear in a file named 
8669 \begin_inset Flex Code
8670 status collapsed
8671
8672 \begin_layout Plain Layout
8673 article.layout
8674 \end_layout
8675
8676 \end_inset
8677
8678 ,
8679  then they define a text class of name 
8680 \begin_inset Flex Code
8681 status collapsed
8682
8683 \begin_layout Plain Layout
8684 article
8685 \end_layout
8686
8687 \end_inset
8688
8689  (the name of the layout file) which uses the \SpecialChar LaTeX
8690  document class 
8691 \begin_inset Flex Code
8692 status collapsed
8693
8694 \begin_layout Plain Layout
8695 article.cls
8696 \end_layout
8697
8698 \end_inset
8699
8700  (the default is to use the same name as the layout).
8701  The string 
8702 \begin_inset Quotes eld
8703 \end_inset
8704
8705 Article (Standard Class)
8706 \begin_inset Quotes erd
8707 \end_inset
8708
8709  that appears above is used as a description of the text class in the 
8710 \begin_inset Flex Noun
8711 status collapsed
8712
8713 \begin_layout Plain Layout
8714 Document\SpecialChar menuseparator
8715 Settings
8716 \end_layout
8717
8718 \end_inset
8719
8720  dialog.
8721  The category (
8722 \begin_inset Quotes eld
8723 \end_inset
8724
8725 Articles
8726 \begin_inset Quotes erd
8727 \end_inset
8728
8729  in the example) is also used in the 
8730 \begin_inset Flex Noun
8731 status collapsed
8732
8733 \begin_layout Plain Layout
8734 Document\SpecialChar menuseparator
8735 Settings
8736 \end_layout
8737
8738 \end_inset
8739
8740  dialog:
8741  the text classes are grouped by these categories (which are usually genres,
8742  so typical categories are 
8743 \begin_inset Quotes eld
8744 \end_inset
8745
8746 Articles
8747 \begin_inset Quotes erd
8748 \end_inset
8749
8750 ,
8751  
8752 \begin_inset Quotes eld
8753 \end_inset
8754
8755 Books
8756 \begin_inset Quotes erd
8757 \end_inset
8758
8759 ,
8760  
8761 \begin_inset Quotes eld
8762 \end_inset
8763
8764 Reports
8765 \begin_inset Quotes erd
8766 \end_inset
8767
8768 ,
8769  
8770 \begin_inset Quotes eld
8771 \end_inset
8772
8773 Letters
8774 \begin_inset Quotes erd
8775 \end_inset
8776
8777 ,
8778  
8779 \begin_inset Quotes eld
8780 \end_inset
8781
8782 Presentations
8783 \begin_inset Quotes erd
8784 \end_inset
8785
8786 ,
8787  
8788 \begin_inset Quotes eld
8789 \end_inset
8790
8791 Curricula Vitae
8792 \begin_inset Quotes erd
8793 \end_inset
8794
8795  etc.).
8796  If no category has been declared,
8797  the class will be put in the 
8798 \begin_inset Quotes eld
8799 \end_inset
8800
8801 Uncategorized
8802 \begin_inset Quotes erd
8803 \end_inset
8804
8805  group.
8806 \end_layout
8807
8808 \begin_layout Standard
8809 Let's assume that you wrote your own text class that uses the 
8810 \begin_inset Flex Code
8811 status collapsed
8812
8813 \begin_layout Plain Layout
8814 article.cls
8815 \end_layout
8816
8817 \end_inset
8818
8819  document class,
8820  but where you changed the appearance of the section headings.
8821  If you put it in a file 
8822 \begin_inset Flex Code
8823 status collapsed
8824
8825 \begin_layout Plain Layout
8826 myarticle.layout
8827 \end_layout
8828
8829 \end_inset
8830
8831 ,
8832  the header of this file should be:
8833 \end_layout
8834
8835 \begin_layout LyX-Code
8836
8837 \size small
8838 #% Do not delete the line below;
8839  configure depends on this 
8840 \end_layout
8841
8842 \begin_layout LyX-Code
8843
8844 \size small
8845 #  
8846 \backslash
8847 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8848 \end_layout
8849
8850 \begin_layout LyX-Code
8851
8852 \size small
8853 #  
8854 \backslash
8855 DeclareCategory{Articles}
8856 \end_layout
8857
8858 \begin_layout Standard
8859 This declares a text class 
8860 \begin_inset Flex Code
8861 status collapsed
8862
8863 \begin_layout Plain Layout
8864 myarticle
8865 \end_layout
8866
8867 \end_inset
8868
8869 ,
8870  associated with the \SpecialChar LaTeX
8871  document class 
8872 \begin_inset Flex Code
8873 status collapsed
8874
8875 \begin_layout Plain Layout
8876 article.cls
8877 \end_layout
8878
8879 \end_inset
8880
8881  and described as 
8882 \begin_inset Quotes eld
8883 \end_inset
8884
8885 Article (with My Own Headings)
8886 \begin_inset Quotes erd
8887 \end_inset
8888
8889 .
8890  If your text class depends on several packages,
8891  you can declare it as:
8892 \end_layout
8893
8894 \begin_layout LyX-Code
8895
8896 \size small
8897 #% Do not delete the line below;
8898  configure depends on this 
8899 \end_layout
8900
8901 \begin_layout LyX-Code
8902
8903 \size small
8904 #  
8905 \backslash
8906 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8907 \end_layout
8908
8909 \begin_layout LyX-Code
8910
8911 \size small
8912 #  
8913 \backslash
8914 DeclareCategory{Articles}
8915 \end_layout
8916
8917 \begin_layout Standard
8918 This indicates that your text class uses the 
8919 \begin_inset Flex Code
8920 status collapsed
8921
8922 \begin_layout Plain Layout
8923 foo.sty
8924 \end_layout
8925
8926 \end_inset
8927
8928  package.
8929  
8930 \change_deleted 5863208 1594239179
8931 Finally,
8932  it is also possible to declare classes for DocBook code.
8933  Typical declarations will look like:
8934 \end_layout
8935
8936 \begin_layout LyX-Code
8937
8938 \change_deleted 5863208 1594239179
8939
8940 \size small
8941 #% Do not delete the line below;
8942  configure depends on this 
8943 \end_layout
8944
8945 \begin_layout LyX-Code
8946
8947 \change_deleted 5863208 1594239179
8948
8949 \size small
8950
8951 \backslash
8952 DeclareDocBookClass[article]{SGML (DocBook Article)}
8953 \end_layout
8954
8955 \begin_layout LyX-Code
8956
8957 \change_deleted 5863208 1594239179
8958
8959 \size small
8960
8961 \backslash
8962 DeclareCategory{Articles (DocBook)}
8963 \change_unchanged
8964
8965 \end_layout
8966
8967 \begin_layout Standard
8968 Note that these declarations can also be given an optional parameter declaring the name of the document class (but not a list).
8969 \end_layout
8970
8971 \begin_layout Standard
8972 So,
8973  to be as explicit as possible,
8974  the form of the layout declaration is:
8975 \end_layout
8976
8977 \begin_layout LyX-Code
8978
8979 \size small
8980 #  
8981 \backslash
8982 DeclareLaTeXClass[class,package.sty]{layout description}
8983 \end_layout
8984
8985 \begin_layout LyX-Code
8986
8987 \size small
8988 #  
8989 \backslash
8990 DeclareCategory{category}
8991 \end_layout
8992
8993 \begin_layout Standard
8994 The class need only be specified if the name of the \SpecialChar LaTeX
8995  class file and the name of the layout file are different or if there are packages to load.
8996  If the name of the class file is not specified,
8997  then \SpecialChar LyX
8998  will simply assume that it is the same as the name of the layout file.
8999 \end_layout
9000
9001 \begin_layout Standard
9002 When the text class has been modified to your taste,
9003  all you have to do is to copy it either to 
9004 \begin_inset Flex Code
9005 status collapsed
9006
9007 \begin_layout Plain Layout
9008 LyXDir/layouts/
9009 \end_layout
9010
9011 \end_inset
9012
9013  or to 
9014 \begin_inset Flex Code
9015 status collapsed
9016
9017 \begin_layout Plain Layout
9018 UserDir/layouts
9019 \end_layout
9020
9021 \end_inset
9022
9023 ,
9024  run 
9025 \begin_inset Flex Noun
9026 status collapsed
9027
9028 \begin_layout Plain Layout
9029 Tools\SpecialChar menuseparator
9030 Reconfigure
9031 \end_layout
9032
9033 \end_inset
9034
9035 ,
9036  exit \SpecialChar LyX
9037  and restart.
9038  Then your new text class should be available along with the others.
9039 \end_layout
9040
9041 \begin_layout Standard
9042 Once the layout file is installed,
9043  you can edit it and see your changes without having to reconfigure or to restart \SpecialChar LyX
9044 .
9045 \begin_inset Foot
9046 status collapsed
9047
9048 \begin_layout Plain Layout
9049 In versions of \SpecialChar LyX
9050  prior to 1.6,
9051  this was not true.
9052  As a result,
9053  editing layout files was very time consuming,
9054  since you had constantly to restart \SpecialChar LyX
9055  to see changes.
9056 \end_layout
9057
9058 \end_inset
9059
9060  You can force a reload of the current layout by using the \SpecialChar LyX
9061  function 
9062 \begin_inset Flex Noun
9063 status collapsed
9064
9065 \begin_layout Plain Layout
9066 layout-reload
9067 \end_layout
9068
9069 \end_inset
9070
9071 .
9072  There is no default binding for this function—
9073 though,
9074  of course,
9075  you can bind it to a key yourself.
9076  But you will normally use this function simply by entering it in the mini-buffer.
9077  
9078 \end_layout
9079
9080 \begin_layout Standard
9081
9082 \emph on
9083 Warning
9084 \emph default
9085 :
9086  
9087 \begin_inset Flex Noun
9088 status collapsed
9089
9090 \begin_layout Plain Layout
9091 layout-reload
9092 \end_layout
9093
9094 \end_inset
9095
9096  is very much an `advanced feature'.
9097  It is 
9098 \emph on
9099 strongly
9100 \emph default
9101  recommended that you save your work before using this function.
9102  In fact,
9103  it is 
9104 \emph on
9105 strongly
9106 \emph default
9107  recommended that you not attempt to edit layout information while simultaneously working on a document that you care about.
9108  Use a test document.
9109  Syntax errors and the like in your layout file could cause peculiar behavior.
9110  In particular,
9111  such errors could cause \SpecialChar LyX
9112  to regard the current layout as invalid and to attempt to switch to some other layout.
9113 \begin_inset Foot
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117 Really bad syntax errors may even caused \SpecialChar LyX
9118  to exit.
9119  This is because certain sorts of errors may make \SpecialChar LyX
9120  unable to read 
9121 \emph on
9122 any
9123 \emph default
9124  layout information.
9125  Please be careful.
9126 \end_layout
9127
9128 \end_inset
9129
9130  The \SpecialChar LyX
9131  team strives to keep \SpecialChar LyX
9132  stable in such situations,
9133  but safe is better than sorry.
9134 \begin_inset Foot
9135 status collapsed
9136
9137 \begin_layout Plain Layout
9138 While we're giving advice:
9139  make regular backups.
9140  And be nice to your mother.
9141 \end_layout
9142
9143 \end_inset
9144
9145
9146 \end_layout
9147
9148 \begin_layout Subsection
9149 The Module declaration
9150 \end_layout
9151
9152 \begin_layout Standard
9153 A module must begin with a line like the following:
9154 \end_layout
9155
9156 \begin_layout LyX-Code
9157 #
9158 \backslash
9159 DeclareLyXModule[endnotes.sty]{Endnotes}
9160 \change_inserted -712698321 1554395911
9161
9162 \end_layout
9163
9164 \begin_layout LyX-Code
9165
9166 \change_inserted -712698321 1554395924
9167
9168 \size small
9169 #
9170 \backslash
9171 DeclareCategory{Foot- and Endnotes}
9172 \change_deleted -712698321 1554395911
9173
9174 \size default
9175  
9176 \change_unchanged
9177
9178 \end_layout
9179
9180 \begin_layout Standard
9181 The mandatory argument
9182 \change_inserted -712698321 1554395956
9183  of 
9184 \family typewriter
9185
9186 \backslash
9187 DeclareLyXModule
9188 \change_unchanged
9189
9190 \family default
9191 ,
9192  in curly brackets,
9193  is the name of the module,
9194  as it should appear in 
9195 \begin_inset Flex Noun
9196 status collapsed
9197
9198 \begin_layout Plain Layout
9199 Document\SpecialChar menuseparator
9200 Settings\SpecialChar menuseparator
9201 Modules
9202 \end_layout
9203
9204 \end_inset
9205
9206 .
9207  The argument in square brackets is optional:
9208  It declares any \SpecialChar LaTeX
9209  packages on which the module depends.
9210  It is also possible to use the form 
9211 \begin_inset Flex Noun
9212 status collapsed
9213
9214 \begin_layout Plain Layout
9215 from->to
9216 \end_layout
9217
9218 \end_inset
9219
9220  as an optional argument,
9221  which declares that the module can only be used when there exists a conversion chain between the formats `
9222 \begin_inset Flex Code
9223 status collapsed
9224
9225 \begin_layout Plain Layout
9226 from
9227 \end_layout
9228
9229 \end_inset
9230
9231 ' and `
9232 \begin_inset Flex Code
9233 status collapsed
9234
9235 \begin_layout Plain Layout
9236 to
9237 \end_layout
9238
9239 \end_inset
9240
9241 '.
9242
9243 \change_inserted -712698321 1554396133
9244  The 
9245 \family typewriter
9246
9247 \backslash
9248 DeclareCategory
9249 \family default
9250  declaration is not strictly mandatory,
9251  but you should add it,
9252  since it is helpful to find the module.
9253  Please have a look at the existing module categories and if appropriate,
9254  use one of those.
9255 \change_unchanged
9256
9257 \end_layout
9258
9259 \begin_layout Standard
9260 The module 
9261 \change_inserted -712698321 1554395988
9262 and category 
9263 \change_unchanged
9264 declaration should then be followed by lines like the following:
9265 \begin_inset Foot
9266 status collapsed
9267
9268 \begin_layout Plain Layout
9269 Preferably in English if the module should be published with \SpecialChar LyX
9270 .
9271  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9272 \end_layout
9273
9274 \end_inset
9275
9276
9277 \end_layout
9278
9279 \begin_layout LyX-Code
9280 #DescriptionBegin 
9281 \end_layout
9282
9283 \begin_layout LyX-Code
9284 #Adds an endnote command,
9285  in addition to footnotes.
9286  
9287 \end_layout
9288
9289 \begin_layout LyX-Code
9290 #You will need to add  
9291 \backslash
9292 theendnotes in TeX code where you 
9293 \end_layout
9294
9295 \begin_layout LyX-Code
9296 #want the endnotes to appear.
9297  
9298 \end_layout
9299
9300 \begin_layout LyX-Code
9301 #DescriptionEnd 
9302 \end_layout
9303
9304 \begin_layout LyX-Code
9305 #Requires:
9306  somemodule | othermodule
9307 \end_layout
9308
9309 \begin_layout LyX-Code
9310 #Excludes:
9311  badmodule
9312 \end_layout
9313
9314 \begin_layout Standard
9315 The description is used in 
9316 \begin_inset Flex Noun
9317 status collapsed
9318
9319 \begin_layout Plain Layout
9320 Document\SpecialChar menuseparator
9321 Settings\SpecialChar menuseparator
9322 Modules
9323 \end_layout
9324
9325 \end_inset
9326
9327  to provide the user with information about what the module does.
9328  The 
9329 \begin_inset Flex Code
9330 status collapsed
9331
9332 \begin_layout Plain Layout
9333 Requires
9334 \end_layout
9335
9336 \end_inset
9337
9338  line is used to identify other modules with which this one must be used;
9339  the 
9340 \begin_inset Flex Code
9341 status collapsed
9342
9343 \begin_layout Plain Layout
9344 Excludes
9345 \end_layout
9346
9347 \end_inset
9348
9349  line is used to identify modules with which this one may not be used.
9350  Both are optional,
9351  and,
9352  as shown,
9353  multiple modules should be separated with the pipe symbol:
9354  |.
9355  Note that the required modules are treated disjunctively:
9356  
9357 \emph on
9358 at least one
9359 \emph default
9360  of the required modules must be used.
9361  Similarly,
9362  
9363 \emph on
9364 no
9365 \emph default
9366  excluded module may be used.
9367  Note that modules are identified here by their filenames without the 
9368 \begin_inset Flex Code
9369 status collapsed
9370
9371 \begin_layout Plain Layout
9372 .module
9373 \end_layout
9374
9375 \end_inset
9376
9377  extension.
9378  So 
9379 \begin_inset Flex Code
9380 status collapsed
9381
9382 \begin_layout Plain Layout
9383 somemodule
9384 \end_layout
9385
9386 \end_inset
9387
9388  is really 
9389 \begin_inset Flex Code
9390 status collapsed
9391
9392 \begin_layout Plain Layout
9393 somemodule.module
9394 \end_layout
9395
9396 \end_inset
9397
9398 .
9399 \end_layout
9400
9401 \begin_layout Subsection
9402 The CiteEngine file declaration
9403 \end_layout
9404
9405 \begin_layout Standard
9406 A cite engine file must begin with a line like the following:
9407 \end_layout
9408
9409 \begin_layout LyX-Code
9410 #
9411 \backslash
9412 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9413 \end_layout
9414
9415 \begin_layout Standard
9416 The mandatory argument,
9417  in curly brackets,
9418  is the name of the cite style,
9419  as it should appear in 
9420 \begin_inset Flex Noun
9421 status collapsed
9422
9423 \begin_layout Plain Layout
9424 Document\SpecialChar menuseparator
9425 Settings\SpecialChar menuseparator
9426 Bibliography
9427 \end_layout
9428
9429 \end_inset
9430
9431 .
9432  The argument in square brackets is optional:
9433  It declares any \SpecialChar LaTeX
9434  packages on which the cite engine depends.
9435 \end_layout
9436
9437 \begin_layout Standard
9438 The cite engine declaration should then be followed by lines like the following:
9439 \begin_inset Foot
9440 status collapsed
9441
9442 \begin_layout Plain Layout
9443 Preferably in English if the module should be published with \SpecialChar LyX
9444 .
9445  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9446 \end_layout
9447
9448 \end_inset
9449
9450
9451 \end_layout
9452
9453 \begin_layout LyX-Code
9454 # DescriptionBegin
9455 \end_layout
9456
9457 \begin_layout LyX-Code
9458 #   Biblatex supports many author-year and numerical styles.
9459 \end_layout
9460
9461 \begin_layout LyX-Code
9462 #   It is mainly aimed at the Humanities.
9463  It is highly
9464 \end_layout
9465
9466 \begin_layout LyX-Code
9467 #   customizable,
9468  fully localized and provides many features
9469 \end_layout
9470
9471 \begin_layout LyX-Code
9472 #   that are not possible with BibTeX.
9473  The use of 'biber' as
9474 \end_layout
9475
9476 \begin_layout LyX-Code
9477 #   bibliography processor is advised.
9478 \end_layout
9479
9480 \begin_layout LyX-Code
9481 # DescriptionEnd
9482 \end_layout
9483
9484 \begin_layout Standard
9485 The description is used in 
9486 \begin_inset Flex Noun
9487 status collapsed
9488
9489 \begin_layout Plain Layout
9490 Document\SpecialChar menuseparator
9491 Settings\SpecialChar menuseparator
9492 Bibliography
9493 \end_layout
9494
9495 \end_inset
9496
9497  to provide the user with information about the cite engine.
9498 \end_layout
9499
9500 \begin_layout Subsection
9501 Format number
9502 \end_layout
9503
9504 \begin_layout Standard
9505 The first non-comment line of any layout file,
9506  included file,
9507  or module 
9508 \emph on
9509 must
9510 \emph default
9511  contain the file format number:
9512 \end_layout
9513
9514 \begin_layout Description
9515 \begin_inset Flex Code
9516 status collapsed
9517
9518 \begin_layout Plain Layout
9519 Format
9520 \end_layout
9521
9522 \end_inset
9523
9524  [
9525 \begin_inset Flex Code
9526 status collapsed
9527
9528 \begin_layout Plain Layout
9529 int
9530 \end_layout
9531
9532 \end_inset
9533
9534 ] The format number of the layout file.
9535 \end_layout
9536
9537 \begin_layout Standard
9538 This tag was introduced with \SpecialChar LyX
9539
9540 \begin_inset space ~
9541 \end_inset
9542
9543 1.4.0.
9544  Layout files from older \SpecialChar LyX
9545  versions do not have an explicit file format and are considered to have 
9546 \begin_inset Flex Code
9547 status collapsed
9548
9549 \begin_layout Plain Layout
9550 Format
9551 \begin_inset space ~
9552 \end_inset
9553
9554 1
9555 \end_layout
9556
9557 \end_inset
9558
9559 .
9560  The format for the present version of \SpecialChar LyX
9561  is format 60.
9562  But each version of \SpecialChar LyX
9563  is capable of reading earlier versions' layout files,
9564  just as they are capable of reading files produced by earlier versions of \SpecialChar LyX
9565 .
9566  There is,
9567  however,
9568  no provision for converting to earlier formats.
9569 \end_layout
9570
9571 \begin_layout Subsection
9572 \begin_inset CommandInset label
9573 LatexCommand label
9574 name "subsec:General-text-class"
9575
9576 \end_inset
9577
9578 General text class parameters
9579 \end_layout
9580
9581 \begin_layout Standard
9582 These are general parameters that govern the behavior of an entire document class.
9583  (This does 
9584 \emph on
9585 not
9586 \emph default
9587  mean that they must appear in 
9588 \begin_inset Flex Code
9589 status collapsed
9590
9591 \begin_layout Plain Layout
9592 .layout
9593 \end_layout
9594
9595 \end_inset
9596
9597  files rather than in modules.
9598  A module can contain any layout tag.)
9599 \end_layout
9600
9601 \begin_layout Description
9602
9603 \change_inserted -712698321 1526899478
9604 \begin_inset Flex Code
9605 status collapsed
9606
9607 \begin_layout Plain Layout
9608
9609 \change_inserted -712698321 1526898610
9610 AddToCiteEngine <engine>
9611 \change_unchanged
9612
9613 \end_layout
9614
9615 \end_inset
9616
9617  Extends the possibilities for displaying citation references.
9618  See 
9619 \begin_inset CommandInset ref
9620 LatexCommand ref
9621 reference "subsec:Citation-engine-description"
9622 plural "false"
9623 caps "false"
9624 noprefix "false"
9625
9626 \end_inset
9627
9628  for details.
9629  Must end with 
9630 \begin_inset Flex Code
9631 status collapsed
9632
9633 \begin_layout Plain Layout
9634
9635 \change_inserted -712698321 1526898823
9636 End
9637 \change_unchanged
9638
9639 \end_layout
9640
9641 \end_inset
9642
9643 .
9644 \end_layout
9645
9646 \begin_layout Description
9647 \begin_inset Flex Code
9648 status collapsed
9649
9650 \begin_layout Plain Layout
9651 AddToHTMLPreamble
9652 \end_layout
9653
9654 \end_inset
9655
9656  Adds information that will be output in the 
9657 \begin_inset Flex Code
9658 status collapsed
9659
9660 \begin_layout Plain Layout
9661 <head>
9662 \end_layout
9663
9664 \end_inset
9665
9666  block when the document is output to XHTML.
9667  Typically,
9668  this would be used to output CSS style information,
9669  but it can be used for anything that can appear in 
9670 \begin_inset Flex Code
9671 status collapsed
9672
9673 \begin_layout Plain Layout
9674 <head>
9675 \end_layout
9676
9677 \end_inset
9678
9679 .
9680  Must end with 
9681 \begin_inset Quotes eld
9682 \end_inset
9683
9684
9685 \begin_inset Flex Code
9686 status collapsed
9687
9688 \begin_layout Plain Layout
9689 EndPreamble
9690 \end_layout
9691
9692 \end_inset
9693
9694
9695 \begin_inset Quotes erd
9696 \end_inset
9697
9698 .
9699 \end_layout
9700
9701 \begin_layout Description
9702 \begin_inset Flex Code
9703 status collapsed
9704
9705 \begin_layout Plain Layout
9706 AddToPreamble
9707 \end_layout
9708
9709 \end_inset
9710
9711  Adds information to the document preamble.
9712  Must end with
9713 \begin_inset Newline newline
9714 \end_inset
9715
9716
9717 \begin_inset Quotes eld
9718 \end_inset
9719
9720
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 EndPreamble
9726 \end_layout
9727
9728 \end_inset
9729
9730
9731 \begin_inset Quotes erd
9732 \end_inset
9733
9734 .
9735 \change_inserted -712698321 1562592950
9736
9737 \end_layout
9738
9739 \begin_layout Description
9740
9741 \change_inserted -712698321 1562593040
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746
9747 \change_inserted -712698321 1562592954
9748 BibInToc
9749 \change_unchanged
9750
9751 \end_layout
9752
9753 \end_inset
9754
9755  [
9756 \begin_inset Flex Code
9757 status collapsed
9758
9759 \begin_layout Plain Layout
9760
9761 \change_inserted -712698321 1562592950
9762
9763 \emph on
9764 0
9765 \change_unchanged
9766
9767 \end_layout
9768
9769 \end_inset
9770
9771 ,
9772 \begin_inset space \thinspace{}
9773 \end_inset
9774
9775
9776 \begin_inset Flex Code
9777 status collapsed
9778
9779 \begin_layout Plain Layout
9780
9781 \change_inserted -712698321 1562592950
9782 1
9783 \change_unchanged
9784
9785 \end_layout
9786
9787 \end_inset
9788
9789 ] If the document class adds the bibliography to the table of contents,
9790  add this option with value 
9791 \begin_inset Flex Code
9792 status collapsed
9793
9794 \begin_layout Plain Layout
9795
9796 \change_inserted -712698321 1562592996
9797 1
9798 \change_unchanged
9799
9800 \end_layout
9801
9802 \end_inset
9803
9804  (or 
9805 \begin_inset Flex Code
9806 status collapsed
9807
9808 \begin_layout Plain Layout
9809
9810 \change_inserted -712698321 1562593006
9811 true
9812 \change_unchanged
9813
9814 \end_layout
9815
9816 \end_inset
9817
9818 ).
9819  This prevents the bibliography from being added twice.
9820 \change_unchanged
9821
9822 \end_layout
9823
9824 \begin_layout Description
9825 \begin_inset Flex Code
9826 status collapsed
9827
9828 \begin_layout Plain Layout
9829 CiteEngine <engine>
9830 \end_layout
9831
9832 \end_inset
9833
9834  Defines the possibilities for displaying citation references.
9835  See 
9836 \begin_inset CommandInset ref
9837 LatexCommand ref
9838 reference "subsec:Citation-engine-description"
9839 plural "false"
9840 caps "false"
9841 noprefix "false"
9842
9843 \end_inset
9844
9845  for details.
9846  Must end with 
9847 \begin_inset Quotes eld
9848 \end_inset
9849
9850
9851 \begin_inset Flex Code
9852 status collapsed
9853
9854 \begin_layout Plain Layout
9855 End
9856 \end_layout
9857
9858 \end_inset
9859
9860
9861 \begin_inset Quotes erd
9862 \end_inset
9863
9864 .
9865  Primarily used in cite engine files (see 
9866 \begin_inset CommandInset ref
9867 LatexCommand ref
9868 reference "subsec:Cite-Engine-Files"
9869 plural "false"
9870 caps "false"
9871 noprefix "false"
9872
9873 \end_inset
9874
9875 ).
9876
9877 \change_inserted -712698321 1526898530
9878  Note that if you specify this in a layout file or module,
9879  any cite engine definition will be overridden.
9880  Also see 
9881 \begin_inset Flex Code
9882 status collapsed
9883
9884 \begin_layout Plain Layout
9885
9886 \change_inserted -712698321 1526898530
9887 AddToCiteEngine
9888 \change_unchanged
9889
9890 \end_layout
9891
9892 \end_inset
9893
9894 .
9895 \change_unchanged
9896
9897 \end_layout
9898
9899 \begin_layout Description
9900 \begin_inset Flex Code
9901 status collapsed
9902
9903 \begin_layout Plain Layout
9904 CiteFormat
9905 \end_layout
9906
9907 \end_inset
9908
9909  Defines formats for use in the display of bibliographic information.
9910  See 
9911 \begin_inset CommandInset ref
9912 LatexCommand ref
9913 reference "subsec:Citation-format-description"
9914
9915 \end_inset
9916
9917  for details.
9918  Must end with 
9919 \begin_inset Quotes eld
9920 \end_inset
9921
9922
9923 \begin_inset Flex Code
9924 status collapsed
9925
9926 \begin_layout Plain Layout
9927 End
9928 \end_layout
9929
9930 \end_inset
9931
9932
9933 \begin_inset Quotes erd
9934 \end_inset
9935
9936 .
9937  Primarily used in cite engine files (see 
9938 \begin_inset CommandInset ref
9939 LatexCommand ref
9940 reference "subsec:Cite-Engine-Files"
9941 plural "false"
9942 caps "false"
9943 noprefix "false"
9944
9945 \end_inset
9946
9947 ).
9948
9949 \change_inserted -712698321 1526898585
9950  A cite format defined in a layout or module will override the cite engine definition.
9951 \change_unchanged
9952
9953 \end_layout
9954
9955 \begin_layout Description
9956 \begin_inset Flex Code
9957 status collapsed
9958
9959 \begin_layout Plain Layout
9960 CiteFramework
9961 \end_layout
9962
9963 \end_inset
9964
9965  [
9966 \begin_inset Flex Code
9967 status collapsed
9968
9969 \begin_layout Plain Layout
9970
9971 \emph on
9972 bibtex
9973 \end_layout
9974
9975 \end_inset
9976
9977 ,
9978 \begin_inset Flex Code
9979 status collapsed
9980
9981 \begin_layout Plain Layout
9982 biblatex
9983 \end_layout
9984
9985 \end_inset
9986
9987 ] Determines whether 
9988 \family sans
9989 Biblatex
9990 \family default
9991  or Bib\SpecialChar TeX
9992  is used to generate a Bibliography.
9993  Primarily used in cite engine files (see 
9994 \begin_inset CommandInset ref
9995 LatexCommand ref
9996 reference "subsec:Cite-Engine-Files"
9997 plural "false"
9998 caps "false"
9999 noprefix "false"
10000
10001 \end_inset
10002
10003 ).
10004 \end_layout
10005
10006 \begin_layout Description
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011 ClassOptions
10012 \end_layout
10013
10014 \end_inset
10015
10016  Describes various global options supported by the document class.
10017  See 
10018 \begin_inset CommandInset ref
10019 LatexCommand ref
10020 reference "subsec:ClassOptions"
10021
10022 \end_inset
10023
10024  for a description.
10025  Must end with 
10026 \begin_inset Quotes eld
10027 \end_inset
10028
10029
10030 \begin_inset Flex Code
10031 status collapsed
10032
10033 \begin_layout Plain Layout
10034 End
10035 \end_layout
10036
10037 \end_inset
10038
10039
10040 \begin_inset Quotes erd
10041 \end_inset
10042
10043 .
10044 \end_layout
10045
10046 \begin_layout Description
10047 \begin_inset Flex Code
10048 status collapsed
10049
10050 \begin_layout Plain Layout
10051 Columns
10052 \end_layout
10053
10054 \end_inset
10055
10056  [
10057 \begin_inset Flex Code
10058 status collapsed
10059
10060 \begin_layout Plain Layout
10061
10062 \emph on
10063 1
10064 \end_layout
10065
10066 \end_inset
10067
10068 ,
10069 \begin_inset space \thinspace{}
10070 \end_inset
10071
10072
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 2
10078 \end_layout
10079
10080 \end_inset
10081
10082 ] Whether the class should 
10083 \emph on
10084 default
10085 \emph default
10086  to having one or two columns.
10087  Can be changed in the 
10088 \begin_inset Flex Noun
10089 status collapsed
10090
10091 \begin_layout Plain Layout
10092 Document\SpecialChar menuseparator
10093 Settings
10094 \end_layout
10095
10096 \end_inset
10097
10098  dialog.
10099 \end_layout
10100
10101 \begin_layout Description
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 Counter
10107 \end_layout
10108
10109 \end_inset
10110
10111  [
10112 \begin_inset Flex Code
10113 status collapsed
10114
10115 \begin_layout Plain Layout
10116 string
10117 \end_layout
10118
10119 \end_inset
10120
10121 ] This sequence defines the properties for a counter.
10122  If the counter does not yet exist,
10123  it is created;
10124  if it does exist,
10125  it is modified.
10126  Must end with 
10127 \begin_inset Quotes eld
10128 \end_inset
10129
10130
10131 \begin_inset Flex Code
10132 status collapsed
10133
10134 \begin_layout Plain Layout
10135 End
10136 \end_layout
10137
10138 \end_inset
10139
10140
10141 \begin_inset Quotes erd
10142 \end_inset
10143
10144 .
10145 \begin_inset Newline newline
10146 \end_inset
10147
10148 See 
10149 \begin_inset CommandInset ref
10150 LatexCommand ref
10151 reference "subsec:Counters"
10152
10153 \end_inset
10154
10155  for details on counters.
10156 \end_layout
10157
10158 \begin_layout Description
10159 \begin_inset Flex Code
10160 status collapsed
10161
10162 \begin_layout Plain Layout
10163 DefaultFont
10164 \end_layout
10165
10166 \end_inset
10167
10168  Sets the default font used to display the document.
10169  See 
10170 \begin_inset CommandInset ref
10171 LatexCommand ref
10172 reference "subsec:Font-description"
10173
10174 \end_inset
10175
10176  for how to declare fonts.
10177  Must end with 
10178 \begin_inset Quotes eld
10179 \end_inset
10180
10181
10182 \begin_inset Flex Code
10183 status collapsed
10184
10185 \begin_layout Plain Layout
10186 EndFont
10187 \end_layout
10188
10189 \end_inset
10190
10191
10192 \begin_inset Quotes erd
10193 \end_inset
10194
10195 .
10196 \end_layout
10197
10198 \begin_layout Description
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203 DefaultModule
10204 \end_layout
10205
10206 \end_inset
10207
10208  [
10209 \begin_inset Flex Code
10210 status collapsed
10211
10212 \begin_layout Plain Layout
10213 <module>
10214 \end_layout
10215
10216 \end_inset
10217
10218 ] Specifies a module to be included by default with this document class.
10219  The module is specified as filename without the 
10220 \begin_inset Flex Code
10221 status collapsed
10222
10223 \begin_layout Plain Layout
10224 .module
10225 \end_layout
10226
10227 \end_inset
10228
10229  extension.
10230  The user can still remove the module,
10231  but it will be active at the outset.
10232  (This applies only when new files are created,
10233  or when this class is chosen for an existing document.)
10234 \end_layout
10235
10236 \begin_layout Description
10237 \begin_inset Flex Code
10238 status collapsed
10239
10240 \begin_layout Plain Layout
10241 DefaultStyle
10242 \end_layout
10243
10244 \end_inset
10245
10246  [
10247 \begin_inset Flex Code
10248 status collapsed
10249
10250 \begin_layout Plain Layout
10251 <style>
10252 \end_layout
10253
10254 \end_inset
10255
10256 ] This is the style that will be assigned to new paragraphs,
10257  usually 
10258 \begin_inset Flex Noun
10259 status collapsed
10260
10261 \begin_layout Plain Layout
10262 Standard
10263 \end_layout
10264
10265 \end_inset
10266
10267 .
10268  This will default to the first defined style if not given,
10269  but you are encouraged to use this directive.
10270 \end_layout
10271
10272 \begin_layout Description
10273
10274 \change_inserted -970929547 1515112870
10275 \begin_inset Flex Code
10276 status collapsed
10277
10278 \begin_layout Plain Layout
10279
10280 \change_inserted -970929547 1515112782
10281 DocBookRoot
10282 \change_unchanged
10283
10284 \end_layout
10285
10286 \end_inset
10287
10288  [
10289 \begin_inset Flex Code
10290 status collapsed
10291
10292 \begin_layout Plain Layout
10293
10294 \change_inserted -970929547 1515112766
10295 string
10296 \change_unchanged
10297
10298 \end_layout
10299
10300 \end_inset
10301
10302 ] The root element (at the top of the document) to use when outputting documents with this class in DocBook.
10303  The default value is 
10304 \begin_inset Quotes eld
10305 \end_inset
10306
10307
10308 \begin_inset Flex Code
10309 status collapsed
10310
10311 \begin_layout Plain Layout
10312
10313 \change_inserted -970929547 1515112845
10314 article
10315 \change_unchanged
10316
10317 \end_layout
10318
10319 \end_inset
10320
10321
10322 \begin_inset Quotes erd
10323 \end_inset
10324
10325 .
10326
10327 \change_deleted 1075283030 1594226862
10328  
10329 \change_inserted 1075283030 1594226777
10330
10331 \end_layout
10332
10333 \begin_layout Description
10334
10335 \change_inserted 1075283030 1594226859
10336 \begin_inset Flex Code
10337 status collapsed
10338
10339 \begin_layout Plain Layout
10340
10341 \change_inserted 1075283030 1594226785
10342 DocBookForceAbstract
10343 \change_unchanged
10344
10345 \end_layout
10346
10347 \end_inset
10348
10349  [
10350 \begin_inset Flex Code
10351 status collapsed
10352
10353 \begin_layout Plain Layout
10354
10355 \change_inserted 1075283030 1594226804
10356 boolean
10357 \change_unchanged
10358
10359 \end_layout
10360
10361 \end_inset
10362
10363 ] If 
10364 \begin_inset Quotes eld
10365 \end_inset
10366
10367
10368 \family typewriter
10369 true
10370 \family default
10371
10372 \begin_inset Quotes erd
10373 \end_inset
10374
10375 ,
10376  the root element will always have an 
10377 \family typewriter
10378 <abstract>
10379 \family default
10380  tag.
10381  The default value is 
10382 \begin_inset Quotes eld
10383 \end_inset
10384
10385
10386 \family typewriter
10387 false
10388 \family default
10389
10390 \begin_inset Quotes erd
10391 \end_inset
10392
10393 .
10394 \change_unchanged
10395
10396 \end_layout
10397
10398 \begin_layout Description
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403 ExcludesModule
10404 \end_layout
10405
10406 \end_inset
10407
10408  [
10409 \begin_inset Flex Code
10410 status collapsed
10411
10412 \begin_layout Plain Layout
10413 <module>
10414 \end_layout
10415
10416 \end_inset
10417
10418 ] This tag indicates that the module (which is specified by filename without the 
10419 \begin_inset Flex Code
10420 status collapsed
10421
10422 \begin_layout Plain Layout
10423 .module
10424 \end_layout
10425
10426 \end_inset
10427
10428  extension) cannot be used with this document class.
10429  This might be used in a journal-specific layout file to prevent,
10430  say,
10431  the use of the 
10432 \begin_inset Flex Code
10433 status collapsed
10434
10435 \begin_layout Plain Layout
10436 theorems-sec
10437 \end_layout
10438
10439 \end_inset
10440
10441  module that numbers theorems by section.
10442  This tag may 
10443 \emph on
10444 not
10445 \emph default
10446  be used in a module.
10447  Modules have their own way of excluding other modules (see 
10448 \begin_inset CommandInset ref
10449 LatexCommand ref
10450 reference "subsec:Layout-modules"
10451
10452 \end_inset
10453
10454 ).
10455 \end_layout
10456
10457 \begin_layout Description
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 Float
10463 \end_layout
10464
10465 \end_inset
10466
10467  Defines a new float.
10468  See 
10469 \begin_inset CommandInset ref
10470 LatexCommand ref
10471 reference "subsec:Floats"
10472
10473 \end_inset
10474
10475  for details.
10476  Must end with 
10477 \begin_inset Quotes eld
10478 \end_inset
10479
10480
10481 \begin_inset Flex Code
10482 status collapsed
10483
10484 \begin_layout Plain Layout
10485 End
10486 \end_layout
10487
10488 \end_inset
10489
10490
10491 \begin_inset Quotes erd
10492 \end_inset
10493
10494 .
10495 \end_layout
10496
10497 \begin_layout Description
10498 \begin_inset Flex Code
10499 status collapsed
10500
10501 \begin_layout Plain Layout
10502 HTMLPreamble
10503 \end_layout
10504
10505 \end_inset
10506
10507  Sets the information that will be output in the 
10508 \begin_inset Flex Code
10509 status collapsed
10510
10511 \begin_layout Plain Layout
10512 <head>
10513 \end_layout
10514
10515 \end_inset
10516
10517  block when this document class is output to XHTML.
10518  Note that this will completely override any prior 
10519 \begin_inset Flex Code
10520 status collapsed
10521
10522 \begin_layout Plain Layout
10523 HTMLPreamble
10524 \end_layout
10525
10526 \end_inset
10527
10528  or 
10529 \begin_inset Flex Code
10530 status collapsed
10531
10532 \begin_layout Plain Layout
10533 AddToHTMLPreamble
10534 \end_layout
10535
10536 \end_inset
10537
10538  declarations.
10539  (Use
10540 \begin_inset Newline newline
10541 \end_inset
10542
10543
10544 \begin_inset Flex Code
10545 status collapsed
10546
10547 \begin_layout Plain Layout
10548 AddToHTMLPreamble
10549 \end_layout
10550
10551 \end_inset
10552
10553  if you just want to add material to the preamble.) Must end with 
10554 \begin_inset Quotes eld
10555 \end_inset
10556
10557
10558 \begin_inset Flex Code
10559 status collapsed
10560
10561 \begin_layout Plain Layout
10562 EndPreamble
10563 \end_layout
10564
10565 \end_inset
10566
10567
10568 \begin_inset Quotes erd
10569 \end_inset
10570
10571 .
10572 \end_layout
10573
10574 \begin_layout Description
10575 \begin_inset Flex Code
10576 status collapsed
10577
10578 \begin_layout Plain Layout
10579 HTMLTOCSection
10580 \end_layout
10581
10582 \end_inset
10583
10584  [
10585 \begin_inset Flex Code
10586 status collapsed
10587
10588 \begin_layout Plain Layout
10589 <style>
10590 \end_layout
10591
10592 \end_inset
10593
10594 ] The style to use for the table of contents,
10595  bibliography,
10596  and so forth,
10597  when the document is output to HTML.
10598  For articles,
10599  this should normally be 
10600 \begin_inset Flex Code
10601 status collapsed
10602
10603 \begin_layout Plain Layout
10604 Section
10605 \end_layout
10606
10607 \end_inset
10608
10609 ;
10610  for books 
10611 \begin_inset Flex Code
10612 status collapsed
10613
10614 \begin_layout Plain Layout
10615 Chapter
10616 \end_layout
10617
10618 \end_inset
10619
10620 .
10621  If it is not given,
10622  then \SpecialChar LyX
10623  will attempt to figure out which layout to use.
10624 \end_layout
10625
10626 \begin_layout Description
10627 \begin_inset Flex Code
10628 status collapsed
10629
10630 \begin_layout Plain Layout
10631 IfCounter
10632 \end_layout
10633
10634 \end_inset
10635
10636  [
10637 \begin_inset Flex Code
10638 status collapsed
10639
10640 \begin_layout Plain Layout
10641 <counter>
10642 \end_layout
10643
10644 \end_inset
10645
10646 ] Modifies the properties of the given counter.
10647  If the counter does not exist,
10648  the statement is ignored.
10649  Must end with 
10650 \begin_inset Quotes eld
10651 \end_inset
10652
10653
10654 \begin_inset Flex Code
10655 status collapsed
10656
10657 \begin_layout Plain Layout
10658 End
10659 \end_layout
10660
10661 \end_inset
10662
10663
10664 \begin_inset Quotes erd
10665 \end_inset
10666
10667 .
10668 \begin_inset Newline newline
10669 \end_inset
10670
10671 See 
10672 \begin_inset CommandInset ref
10673 LatexCommand ref
10674 reference "subsec:Counters"
10675
10676 \end_inset
10677
10678  for details on counters.
10679 \end_layout
10680
10681 \begin_layout Description
10682 \begin_inset Flex Code
10683 status collapsed
10684
10685 \begin_layout Plain Layout
10686 Input
10687 \end_layout
10688
10689 \end_inset
10690
10691  [
10692 \begin_inset Flex Code
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696 <filename>
10697 \end_layout
10698
10699 \end_inset
10700
10701 ] This allows you to include another layout definition file within yours to avoid duplicating commands.
10702  Common examples are the standard layout files,
10703  for example,
10704  
10705 \begin_inset Flex Code
10706 status collapsed
10707
10708 \begin_layout Plain Layout
10709 stdclass.inc
10710 \end_layout
10711
10712 \end_inset
10713
10714 ,
10715  which contains most of the basic layouts.
10716 \change_inserted -712698321 1611646803
10717
10718 \end_layout
10719
10720 \begin_layout Description
10721
10722 \change_inserted -712698321 1611646804
10723 \begin_inset Flex Code
10724 status collapsed
10725
10726 \begin_layout Plain Layout
10727
10728 \change_inserted -712698321 1611646837
10729 InputGlobal
10730 \change_unchanged
10731
10732 \end_layout
10733
10734 \end_inset
10735
10736  [
10737 \begin_inset Flex Code
10738 status collapsed
10739
10740 \begin_layout Plain Layout
10741
10742 \change_inserted -712698321 1611646804
10743 <filename>
10744 \change_unchanged
10745
10746 \end_layout
10747
10748 \end_inset
10749
10750 ] is a variant of the 
10751 \begin_inset Flex Code
10752 status collapsed
10753
10754 \begin_layout Plain Layout
10755
10756 \change_inserted -712698321 1611646804
10757 Input
10758 \change_unchanged
10759
10760 \end_layout
10761
10762 \end_inset
10763
10764  command which does not look for files in the user directory.
10765  This allows to create a file 
10766 \begin_inset Flex Code
10767 status collapsed
10768
10769 \begin_layout Plain Layout
10770
10771 \change_inserted -712698321 1611646804
10772 name.layout
10773 \change_unchanged
10774
10775 \end_layout
10776
10777 \end_inset
10778
10779  or 
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784
10785 \change_inserted -712698321 1611646804
10786 name.inc
10787 \change_unchanged
10788
10789 \end_layout
10790
10791 \end_inset
10792
10793  in the user directory which includes a global file with the same name via 
10794 \begin_inset Flex Code
10795 status collapsed
10796
10797 \begin_layout Plain Layout
10798
10799 \change_inserted -712698321 1611646853
10800 InputGlobal name
10801 \change_unchanged
10802
10803 \end_layout
10804
10805 \end_inset
10806
10807  or 
10808 \begin_inset Flex Code
10809 status collapsed
10810
10811 \begin_layout Plain Layout
10812
10813 \change_inserted -712698321 1611646855
10814 InputGlobal name.inc
10815 \change_unchanged
10816
10817 \end_layout
10818
10819 \end_inset
10820
10821 ,
10822  respectively (with 
10823 \begin_inset Flex Code
10824 status collapsed
10825
10826 \begin_layout Plain Layout
10827
10828 \change_inserted -712698321 1611646804
10829 Input
10830 \change_unchanged
10831
10832 \end_layout
10833
10834 \end_inset
10835
10836 ,
10837  the file would recursively include itself).
10838  This way,
10839  you can modify global files without having to completely copy them.
10840 \change_unchanged
10841
10842 \end_layout
10843
10844 \begin_layout Description
10845 \begin_inset Flex Code
10846 status collapsed
10847
10848 \begin_layout Plain Layout
10849 InsetLayout
10850 \end_layout
10851
10852 \end_inset
10853
10854  [
10855 \begin_inset Flex Code
10856 status collapsed
10857
10858 \begin_layout Plain Layout
10859 <type>
10860 \end_layout
10861
10862 \end_inset
10863
10864 ] This section (re-)defines the layout of an inset.
10865  It can be applied to an existing inset or to a new,
10866  user-defined inset,
10867  e.g.,
10868  a new character style.
10869  Must end with 
10870 \begin_inset Quotes eld
10871 \end_inset
10872
10873
10874 \begin_inset Flex Code
10875 status collapsed
10876
10877 \begin_layout Plain Layout
10878 End
10879 \end_layout
10880
10881 \end_inset
10882
10883
10884 \begin_inset Quotes erd
10885 \end_inset
10886
10887 .
10888 \begin_inset Newline newline
10889 \end_inset
10890
10891 See 
10892 \begin_inset CommandInset ref
10893 LatexCommand ref
10894 reference "subsec:Flex-insets-and"
10895
10896 \end_inset
10897
10898  for more information.
10899  
10900 \end_layout
10901
10902 \begin_layout Description
10903 \begin_inset Flex Code
10904 status collapsed
10905
10906 \begin_layout Plain Layout
10907 LeftMargin
10908 \end_layout
10909
10910 \end_inset
10911
10912  [
10913 \begin_inset Flex Code
10914 status collapsed
10915
10916 \begin_layout Plain Layout
10917 string
10918 \end_layout
10919
10920 \end_inset
10921
10922 ] A string that indicates the width of the left margin on the screen,
10923  for example,
10924  
10925 \begin_inset Quotes eld
10926 \end_inset
10927
10928
10929 \begin_inset Flex Code
10930 status collapsed
10931
10932 \begin_layout Plain Layout
10933 MMMMM
10934 \end_layout
10935
10936 \end_inset
10937
10938
10939 \begin_inset Quotes erd
10940 \end_inset
10941
10942 .
10943  (Note that this is not a `length',
10944  like 
10945 \begin_inset Quotes eld
10946 \end_inset
10947
10948 2ex
10949 \begin_inset Quotes erd
10950 \end_inset
10951
10952 .)
10953 \end_layout
10954
10955 \begin_layout Description
10956 \begin_inset Flex Code
10957 status collapsed
10958
10959 \begin_layout Plain Layout
10960 MaxCiteNames
10961 \end_layout
10962
10963 \end_inset
10964
10965  [
10966 \begin_inset Flex Code
10967 status collapsed
10968
10969 \begin_layout Plain Layout
10970 integer
10971 \end_layout
10972
10973 \end_inset
10974
10975 ] An integer that determines the maximal number of names displayed in an author-year citation before the citation switches to 
10976 \begin_inset Quotes eld
10977 \end_inset
10978
10979 FirstAuthor et al.
10980 \begin_inset Quotes erd
10981 \end_inset
10982
10983 .
10984  Primarily used in cite engine files (see 
10985 \begin_inset CommandInset ref
10986 LatexCommand ref
10987 reference "subsec:Cite-Engine-Files"
10988 plural "false"
10989 caps "false"
10990 noprefix "false"
10991
10992 \end_inset
10993
10994 ).
10995 \end_layout
10996
10997 \begin_layout Description
10998
10999 \change_inserted -712698321 1612018485
11000 \begin_inset Flex Code
11001 status collapsed
11002
11003 \begin_layout Plain Layout
11004
11005 \change_inserted -712698321 1612018457
11006 ModifyInsetLayout
11007 \change_unchanged
11008
11009 \end_layout
11010
11011 \end_inset
11012
11013  [
11014 \begin_inset Flex Code
11015 status collapsed
11016
11017 \begin_layout Plain Layout
11018
11019 \change_inserted -712698321 1612018466
11020 <type>
11021 \change_unchanged
11022
11023 \end_layout
11024
11025 \end_inset
11026
11027 ] Modifies the layout of an inset.
11028  If the layout does not exist,
11029  this section is ignored.
11030  Must end with 
11031 \begin_inset Quotes eld
11032 \end_inset
11033
11034
11035 \begin_inset Flex Code
11036 status collapsed
11037
11038 \begin_layout Plain Layout
11039
11040 \change_inserted -712698321 1612018452
11041 End
11042 \change_unchanged
11043
11044 \end_layout
11045
11046 \end_inset
11047
11048
11049 \begin_inset Quotes erd
11050 \end_inset
11051
11052 .
11053 \end_layout
11054
11055 \begin_layout Description
11056 \begin_inset Flex Code
11057 status collapsed
11058
11059 \begin_layout Plain Layout
11060 ModifyStyle
11061 \end_layout
11062
11063 \end_inset
11064
11065  [
11066 \begin_inset Flex Code
11067 status collapsed
11068
11069 \begin_layout Plain Layout
11070 <style>
11071 \end_layout
11072
11073 \end_inset
11074
11075 ] Modifies the properties of the given paragraph style.
11076  If the style does not exist,
11077  this section is ignored.
11078  Must end with 
11079 \begin_inset Quotes eld
11080 \end_inset
11081
11082
11083 \begin_inset Flex Code
11084 status collapsed
11085
11086 \begin_layout Plain Layout
11087 End
11088 \end_layout
11089
11090 \end_inset
11091
11092
11093 \begin_inset Quotes erd
11094 \end_inset
11095
11096 .
11097 \end_layout
11098
11099 \begin_layout Description
11100 \begin_inset Flex Code
11101 status collapsed
11102
11103 \begin_layout Plain Layout
11104 NoCounter
11105 \end_layout
11106
11107 \end_inset
11108
11109  [
11110 \begin_inset Flex Code
11111 status collapsed
11112
11113 \begin_layout Plain Layout
11114 <counter>
11115 \end_layout
11116
11117 \end_inset
11118
11119 ] Deletes an existing counter,
11120  usually one defined in an included file.
11121 \end_layout
11122
11123 \begin_layout Description
11124 \begin_inset Flex Code
11125 status collapsed
11126
11127 \begin_layout Plain Layout
11128 NoFloat
11129 \end_layout
11130
11131 \end_inset
11132
11133  [
11134 \begin_inset Flex Code
11135 status collapsed
11136
11137 \begin_layout Plain Layout
11138 <float>
11139 \end_layout
11140
11141 \end_inset
11142
11143 ] Deletes an existing float.
11144  This is particularly useful when you want to suppress a float that has been defined in an input file.
11145 \end_layout
11146
11147 \begin_layout Description
11148 \begin_inset Flex Code
11149 status collapsed
11150
11151 \begin_layout Plain Layout
11152 NoStyle
11153 \end_layout
11154
11155 \end_inset
11156
11157  [
11158 \begin_inset Flex Code
11159 status collapsed
11160
11161 \begin_layout Plain Layout
11162 <style>
11163 \end_layout
11164
11165 \end_inset
11166
11167 ] Deletes an existing style.
11168 \end_layout
11169
11170 \begin_layout Description
11171 \begin_inset Flex Code
11172 status collapsed
11173
11174 \begin_layout Plain Layout
11175 OutlinerName
11176 \end_layout
11177
11178 \end_inset
11179
11180  [
11181 \begin_inset Flex Code
11182 status collapsed
11183
11184 \begin_layout Plain Layout
11185 <type>
11186 \end_layout
11187
11188 \end_inset
11189
11190 ] [
11191 \begin_inset Flex Code
11192 status collapsed
11193
11194 \begin_layout Plain Layout
11195 <string>
11196 \end_layout
11197
11198 \end_inset
11199
11200 ] Define a new table of contents with type 
11201 \begin_inset Flex Code
11202 status collapsed
11203
11204 \begin_layout Plain Layout
11205 <type>
11206 \end_layout
11207
11208 \end_inset
11209
11210  and name 
11211 \begin_inset Flex Code
11212 status collapsed
11213
11214 \begin_layout Plain Layout
11215 <string>
11216 \end_layout
11217
11218 \end_inset
11219
11220 .
11221  See also the AddToToc commands.
11222 \end_layout
11223
11224 \begin_layout Description
11225 \begin_inset Flex Code
11226 status collapsed
11227
11228 \begin_layout Plain Layout
11229 OutputFormat
11230 \end_layout
11231
11232 \end_inset
11233
11234  [
11235 \begin_inset Flex Code
11236 status collapsed
11237
11238 \begin_layout Plain Layout
11239 <format>
11240 \end_layout
11241
11242 \end_inset
11243
11244 ] The file format (as defined in the \SpecialChar LyX
11245  preferences) produced by this document class.
11246  It is mainly useful when 
11247 \begin_inset Flex Code
11248 status collapsed
11249
11250 \begin_layout Plain Layout
11251 OutputType
11252 \end_layout
11253
11254 \end_inset
11255
11256  is 
11257 \begin_inset Flex Code
11258 status collapsed
11259
11260 \begin_layout Plain Layout
11261 literate
11262 \end_layout
11263
11264 \end_inset
11265
11266  and one wants to define a new type of literate document.
11267  The format is reset to 
11268 \change_deleted 5863208 1594239413
11269
11270 \begin_inset Quotes eld
11271 \end_inset
11272
11273
11274 \begin_inset Flex Code
11275 status collapsed
11276
11277 \begin_layout Plain Layout
11278 docbook
11279 \end_layout
11280
11281 \end_inset
11282
11283
11284 \begin_inset Quotes erd
11285 \end_inset
11286
11287  or
11288 \change_unchanged
11289  
11290 \begin_inset Quotes eld
11291 \end_inset
11292
11293
11294 \begin_inset Flex Code
11295 status collapsed
11296
11297 \begin_layout Plain Layout
11298 latex
11299 \end_layout
11300
11301 \end_inset
11302
11303
11304 \begin_inset Quotes erd
11305 \end_inset
11306
11307  when the corresponding 
11308 \begin_inset Flex Code
11309 status collapsed
11310
11311 \begin_layout Plain Layout
11312 OutputType
11313 \end_layout
11314
11315 \end_inset
11316
11317  parameter is encountered.
11318 \end_layout
11319
11320 \begin_layout Description
11321 \begin_inset Flex Code
11322 status collapsed
11323
11324 \begin_layout Plain Layout
11325 OutputType
11326 \end_layout
11327
11328 \end_inset
11329
11330  [
11331 \begin_inset Flex Code
11332 status collapsed
11333
11334 \begin_layout Plain Layout
11335
11336 \emph on
11337 lat
11338 \emph default
11339 ex
11340 \end_layout
11341
11342 \end_inset
11343
11344 ,
11345  
11346 \change_deleted 5863208 1594239430
11347
11348 \begin_inset Flex Code
11349 status collapsed
11350
11351 \begin_layout Plain Layout
11352 docbook
11353 \end_layout
11354
11355 \end_inset
11356
11357 ,
11358
11359 \change_unchanged
11360  
11361 \begin_inset Flex Code
11362 status collapsed
11363
11364 \begin_layout Plain Layout
11365 literate
11366 \end_layout
11367
11368 \end_inset
11369
11370 ] Specifies what sort of output documents using this class will produce.
11371 \end_layout
11372
11373 \begin_layout Description
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378 PackageOptions
11379 \end_layout
11380
11381 \end_inset
11382
11383  [
11384 \begin_inset Flex Code
11385 status collapsed
11386
11387 \begin_layout Plain Layout
11388 string
11389 \end_layout
11390
11391 \end_inset
11392
11393  
11394 \begin_inset Flex Code
11395 status collapsed
11396
11397 \begin_layout Plain Layout
11398 string
11399 \end_layout
11400
11401 \end_inset
11402
11403 ] Specifies options,
11404  given in the second string,
11405  for the package named by the first string.
11406  For example,
11407  
11408 \begin_inset Quotes eld
11409 \end_inset
11410
11411
11412 \begin_inset Flex Code
11413 status collapsed
11414
11415 \begin_layout Plain Layout
11416 PackageOptions natbib square
11417 \end_layout
11418
11419 \end_inset
11420
11421
11422 \begin_inset Quotes erd
11423 \end_inset
11424
11425  will cause 
11426 \begin_inset Flex Code
11427 status collapsed
11428
11429 \begin_layout Plain Layout
11430 natbib
11431 \end_layout
11432
11433 \end_inset
11434
11435  to be loaded with the 
11436 \begin_inset Flex Code
11437 status collapsed
11438
11439 \begin_layout Plain Layout
11440 square
11441 \end_layout
11442
11443 \end_inset
11444
11445  option.
11446  (For \SpecialChar TeX
11447 perts,
11448  this causes \SpecialChar LyX
11449  to output:
11450  
11451 \begin_inset Flex Code
11452 status collapsed
11453
11454 \begin_layout Plain Layout
11455
11456 \backslash
11457 PassOptionsToPackage{natbib}{square}
11458 \end_layout
11459
11460 \end_inset
11461
11462  prior to loading 
11463 \begin_inset Flex Code
11464 status collapsed
11465
11466 \begin_layout Plain Layout
11467 natbib
11468 \end_layout
11469
11470 \end_inset
11471
11472 .)
11473 \change_inserted -712698321 1565102364
11474
11475 \end_layout
11476
11477 \begin_layout Description
11478
11479 \change_inserted -712698321 1565102470
11480 \begin_inset Flex Code
11481 status collapsed
11482
11483 \begin_layout Plain Layout
11484
11485 \change_inserted -712698321 1565102365
11486 PageSize
11487 \change_unchanged
11488
11489 \end_layout
11490
11491 \end_inset
11492
11493  [
11494 \begin_inset Flex Code
11495 status collapsed
11496
11497 \begin_layout Plain Layout
11498
11499 \change_inserted -712698321 1565105222
11500
11501 \emph on
11502 custom
11503 \emph default
11504 ,
11505  letter,
11506  legal,
11507  executive,
11508  a0,
11509  a1,
11510  a2,
11511  a3,
11512  a4,
11513  a5,
11514  a6,
11515  b0,
11516  b1,
11517  b2,
11518  b3,
11519  b4,
11520  b5,
11521  b6,
11522  c0,
11523  c1,
11524  c2,
11525  c3,
11526  c4,
11527  c5,
11528  c6,
11529  b0j,
11530  b1j,
11531  b2j,
11532  b3j,
11533  b4j,
11534  b5j,
11535  b6j
11536 \change_unchanged
11537
11538 \end_layout
11539
11540 \end_inset
11541
11542 ] The default page size.
11543  This is used by some converters.
11544 \change_unchanged
11545
11546 \end_layout
11547
11548 \begin_layout Description
11549 \begin_inset Flex Code
11550 status collapsed
11551
11552 \begin_layout Plain Layout
11553 PageStyle
11554 \end_layout
11555
11556 \end_inset
11557
11558  [
11559 \begin_inset Flex Code
11560 status collapsed
11561
11562 \begin_layout Plain Layout
11563
11564 \emph on
11565 plain
11566 \end_layout
11567
11568 \end_inset
11569
11570 ,
11571  
11572 \begin_inset Flex Code
11573 status collapsed
11574
11575 \begin_layout Plain Layout
11576 empty
11577 \end_layout
11578
11579 \end_inset
11580
11581 ,
11582  
11583 \begin_inset Flex Code
11584 status collapsed
11585
11586 \begin_layout Plain Layout
11587 headings
11588 \end_layout
11589
11590 \end_inset
11591
11592 ] The default pagestyle.
11593  Can be changed in the 
11594 \begin_inset Flex Noun
11595 status collapsed
11596
11597 \begin_layout Plain Layout
11598 Document\SpecialChar menuseparator
11599 Settings
11600 \end_layout
11601
11602 \end_inset
11603
11604  dialog.
11605 \end_layout
11606
11607 \begin_layout Description
11608 \begin_inset Flex Code
11609 status collapsed
11610
11611 \begin_layout Plain Layout
11612 Preamble
11613 \end_layout
11614
11615 \end_inset
11616
11617  Sets the preamble for the \SpecialChar LaTeX
11618  document.
11619  Note that this will completely override any prior 
11620 \begin_inset Flex Code
11621 status collapsed
11622
11623 \begin_layout Plain Layout
11624 Preamble
11625 \end_layout
11626
11627 \end_inset
11628
11629  or 
11630 \begin_inset Flex Code
11631 status collapsed
11632
11633 \begin_layout Plain Layout
11634 AddToPreamble
11635 \end_layout
11636
11637 \end_inset
11638
11639  declarations.
11640  (Use 
11641 \begin_inset Flex Code
11642 status collapsed
11643
11644 \begin_layout Plain Layout
11645 AddToPreamble
11646 \end_layout
11647
11648 \end_inset
11649
11650  if you just want to add material to the preamble.) Must end with 
11651 \begin_inset Quotes eld
11652 \end_inset
11653
11654
11655 \begin_inset Flex Code
11656 status collapsed
11657
11658 \begin_layout Plain Layout
11659 EndPreamble
11660 \end_layout
11661
11662 \end_inset
11663
11664
11665 \begin_inset Quotes erd
11666 \end_inset
11667
11668 .
11669 \change_inserted -712698321 1612018500
11670
11671 \end_layout
11672
11673 \begin_layout Description
11674
11675 \change_inserted -712698321 1612018547
11676 \begin_inset Flex Code
11677 status collapsed
11678
11679 \begin_layout Plain Layout
11680
11681 \change_inserted -712698321 1612018506
11682 ProvideInsetLayout
11683 \change_unchanged
11684
11685 \end_layout
11686
11687 \end_inset
11688
11689  [
11690 \begin_inset Flex Code
11691 status collapsed
11692
11693 \begin_layout Plain Layout
11694
11695 \change_inserted -712698321 1612018509
11696 <type>
11697 \change_unchanged
11698
11699 \end_layout
11700
11701 \end_inset
11702
11703 ] Defines the layout of an inset if it does not already exist.
11704  If the layout does exist,
11705  this section is ignored.
11706  Must end with 
11707 \begin_inset Quotes eld
11708 \end_inset
11709
11710
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715
11716 \change_inserted -712698321 1612018500
11717 End
11718 \change_unchanged
11719
11720 \end_layout
11721
11722 \end_inset
11723
11724
11725 \begin_inset Quotes erd
11726 \end_inset
11727
11728 .
11729 \change_unchanged
11730
11731 \end_layout
11732
11733 \begin_layout Description
11734 \begin_inset Flex Code
11735 status collapsed
11736
11737 \begin_layout Plain Layout
11738 Provides
11739 \end_layout
11740
11741 \end_inset
11742
11743  [
11744 \begin_inset Flex Code
11745 status collapsed
11746
11747 \begin_layout Plain Layout
11748 string
11749 \end_layout
11750
11751 \end_inset
11752
11753 ] [
11754 \begin_inset Flex Code
11755 status collapsed
11756
11757 \begin_layout Plain Layout
11758
11759 \emph on
11760 0
11761 \end_layout
11762
11763 \end_inset
11764
11765 ,
11766 \begin_inset space \thinspace{}
11767 \end_inset
11768
11769
11770 \begin_inset Flex Code
11771 status collapsed
11772
11773 \begin_layout Plain Layout
11774 1
11775 \end_layout
11776
11777 \end_inset
11778
11779 ] Whether the class already provides the feature 
11780 \begin_inset Flex Code
11781 status collapsed
11782
11783 \begin_layout Plain Layout
11784 string
11785 \end_layout
11786
11787 \end_inset
11788
11789 .
11790  A feature is in general the name of a package (e.
11791 \begin_inset space \thinspace{}
11792 \end_inset
11793
11794 g.
11795 \begin_inset space \space{}
11796 \end_inset
11797
11798
11799 \begin_inset Flex Code
11800 status collapsed
11801
11802 \begin_layout Plain Layout
11803 amsmath
11804 \end_layout
11805
11806 \end_inset
11807
11808  or 
11809 \begin_inset Flex Code
11810 status collapsed
11811
11812 \begin_layout Plain Layout
11813 makeidx
11814 \end_layout
11815
11816 \end_inset
11817
11818 ) or a macro (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 url
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 boldsymbol
11842 \end_layout
11843
11844 \end_inset
11845
11846 ).
11847  See 
11848 \begin_inset CommandInset ref
11849 LatexCommand ref
11850 reference "chap:List-of-functions"
11851
11852 \end_inset
11853
11854  for the list of features.
11855 \end_layout
11856
11857 \begin_layout Description
11858 \begin_inset Flex Code
11859 status collapsed
11860
11861 \begin_layout Plain Layout
11862 ProvidesModule
11863 \end_layout
11864
11865 \end_inset
11866
11867  [
11868 \begin_inset Flex Code
11869 status collapsed
11870
11871 \begin_layout Plain Layout
11872 string
11873 \end_layout
11874
11875 \end_inset
11876
11877 ] Indicates that this layout provides the functionality of the module mentioned,
11878  which should be specified by the filename without the 
11879 \begin_inset Flex Code
11880 status collapsed
11881
11882 \begin_layout Plain Layout
11883 .module
11884 \end_layout
11885
11886 \end_inset
11887
11888  extension.
11889  This will typically be used if the layout includes the module directly,
11890  rather than using the 
11891 \begin_inset Flex Code
11892 status collapsed
11893
11894 \begin_layout Plain Layout
11895 DefaultModule
11896 \end_layout
11897
11898 \end_inset
11899
11900  tag to indicate that it ought to be used.
11901  It could also be used in a module that provided an alternate implementation of the same functionality.
11902 \end_layout
11903
11904 \begin_layout Description
11905 \begin_inset Flex Code
11906 status collapsed
11907
11908 \begin_layout Plain Layout
11909 ProvideStyle
11910 \end_layout
11911
11912 \end_inset
11913
11914  [
11915 \begin_inset Flex Code
11916 status collapsed
11917
11918 \begin_layout Plain Layout
11919 <style>
11920 \end_layout
11921
11922 \end_inset
11923
11924 ] Creates a new paragraph style if it does not already exist.
11925  If the style does exist,
11926  this section is ignored.
11927  Must end with 
11928 \begin_inset Quotes eld
11929 \end_inset
11930
11931
11932 \begin_inset Flex Code
11933 status collapsed
11934
11935 \begin_layout Plain Layout
11936 End
11937 \end_layout
11938
11939 \end_inset
11940
11941
11942 \begin_inset Quotes erd
11943 \end_inset
11944
11945 .
11946 \end_layout
11947
11948 \begin_layout Description
11949 \begin_inset Flex Code
11950 status collapsed
11951
11952 \begin_layout Plain Layout
11953 Requires
11954 \end_layout
11955
11956 \end_inset
11957
11958  [
11959 \begin_inset Flex Code
11960 status collapsed
11961
11962 \begin_layout Plain Layout
11963 string
11964 \end_layout
11965
11966 \end_inset
11967
11968 ] Whether the class requires the feature 
11969 \begin_inset Flex Code
11970 status collapsed
11971
11972 \begin_layout Plain Layout
11973 string
11974 \end_layout
11975
11976 \end_inset
11977
11978 .
11979  Multiple features must be separated by commas.
11980  Note that you can only request supported features.
11981  (See 
11982 \begin_inset CommandInset ref
11983 LatexCommand ref
11984 reference "chap:List-of-functions"
11985
11986 \end_inset
11987
11988  for the list of features.).
11989  If you require a package with specific options,
11990  you can additionally use 
11991 \begin_inset Flex Code
11992 status collapsed
11993
11994 \begin_layout Plain Layout
11995 PackageOptions
11996 \end_layout
11997
11998 \end_inset
11999
12000 .
12001 \end_layout
12002
12003 \begin_layout Description
12004 \begin_inset Flex Code
12005 status collapsed
12006
12007 \begin_layout Plain Layout
12008 RightMargin
12009 \end_layout
12010
12011 \end_inset
12012
12013  [
12014 \begin_inset Flex Code
12015 status collapsed
12016
12017 \begin_layout Plain Layout
12018 string
12019 \end_layout
12020
12021 \end_inset
12022
12023 ] A string that indicates the width of the right margin on the screen,
12024  for example,
12025  
12026 \begin_inset Quotes eld
12027 \end_inset
12028
12029
12030 \begin_inset Flex Code
12031 status collapsed
12032
12033 \begin_layout Plain Layout
12034 MMMMM
12035 \end_layout
12036
12037 \end_inset
12038
12039
12040 \begin_inset Quotes erd
12041 \end_inset
12042
12043 .
12044 \end_layout
12045
12046 \begin_layout Description
12047 \begin_inset Flex Code
12048 status collapsed
12049
12050 \begin_layout Plain Layout
12051 SecNumDepth
12052 \end_layout
12053
12054 \end_inset
12055
12056  [
12057 \begin_inset Flex Code
12058 status collapsed
12059
12060 \begin_layout Plain Layout
12061 int=3
12062 \end_layout
12063
12064 \end_inset
12065
12066 ] Sets which divisions get numbered.
12067  Corresponds to the
12068 \begin_inset Newline newline
12069 \end_inset
12070
12071
12072 \begin_inset Flex Code
12073 status collapsed
12074
12075 \begin_layout Plain Layout
12076 secnumdepth
12077 \end_layout
12078
12079 \end_inset
12080
12081  counter in \SpecialChar LaTeX
12082 .
12083 \end_layout
12084
12085 \begin_layout Description
12086 \begin_inset Flex Code
12087 status collapsed
12088
12089 \begin_layout Plain Layout
12090 Sides
12091 \end_layout
12092
12093 \end_inset
12094
12095  [
12096 \begin_inset Flex Code
12097 status collapsed
12098
12099 \begin_layout Plain Layout
12100
12101 \emph on
12102 1
12103 \end_layout
12104
12105 \end_inset
12106
12107 ,
12108 \begin_inset space \thinspace{}
12109 \end_inset
12110
12111
12112 \begin_inset Flex Code
12113 status collapsed
12114
12115 \begin_layout Plain Layout
12116 2
12117 \end_layout
12118
12119 \end_inset
12120
12121 ] Whether the class-default should be printing on one or both sides of the paper.
12122  Can be changed in the 
12123 \begin_inset Flex Noun
12124 status collapsed
12125
12126 \begin_layout Plain Layout
12127 Document\SpecialChar menuseparator
12128 Settings
12129 \end_layout
12130
12131 \end_inset
12132
12133  dialog.
12134 \end_layout
12135
12136 \begin_layout Description
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141 Style
12142 \end_layout
12143
12144 \end_inset
12145
12146  [
12147 \begin_inset Flex Code
12148 status collapsed
12149
12150 \begin_layout Plain Layout
12151 <name>
12152 \end_layout
12153
12154 \end_inset
12155
12156 ] This sequence defines a paragraph style.
12157  If the style does not yet exist,
12158  it is created;
12159  if it does exist,
12160  its parameters are modified.
12161  Must end with 
12162 \begin_inset Quotes eld
12163 \end_inset
12164
12165
12166 \begin_inset Flex Code
12167 status collapsed
12168
12169 \begin_layout Plain Layout
12170 End
12171 \end_layout
12172
12173 \end_inset
12174
12175
12176 \begin_inset Quotes erd
12177 \end_inset
12178
12179 .
12180 \begin_inset Newline newline
12181 \end_inset
12182
12183 See 
12184 \begin_inset CommandInset ref
12185 LatexCommand ref
12186 reference "subsec:Paragraph-Styles"
12187
12188 \end_inset
12189
12190  for details on paragraph styles.
12191 \change_inserted -712698321 1553617804
12192
12193 \end_layout
12194
12195 \begin_layout Description
12196
12197 \change_inserted -712698321 1553617862
12198 \begin_inset Flex Code
12199 status collapsed
12200
12201 \begin_layout Plain Layout
12202
12203 \change_inserted -712698321 1553617809
12204 TableStyle
12205 \change_unchanged
12206
12207 \end_layout
12208
12209 \end_inset
12210
12211  [
12212 \begin_inset Flex Code
12213 status collapsed
12214
12215 \begin_layout Plain Layout
12216
12217 \change_inserted -712698321 1553617805
12218 <name>
12219 \change_unchanged
12220
12221 \end_layout
12222
12223 \end_inset
12224
12225 ] defines the default table style that is used when inserting a table.
12226  The following styles are available:
12227 \end_layout
12228
12229 \begin_deeper
12230 \begin_layout Itemize
12231
12232 \change_inserted -712698321 1554308039
12233 \begin_inset Flex Code
12234 status collapsed
12235
12236 \begin_layout Plain Layout
12237
12238 \change_inserted -712698321 1554307928
12239 Formal_with_Footline
12240 \change_unchanged
12241
12242 \end_layout
12243
12244 \end_inset
12245
12246 :
12247  formal (
12248 \begin_inset Quotes eld
12249 \end_inset
12250
12251 booktabs
12252 \begin_inset Quotes erd
12253 \end_inset
12254
12255 ) style with horizontal lines only,
12256  using a bold top and bottom line,
12257  the first and last row are additionally separated from the table body with a thin middle line.
12258 \end_layout
12259
12260 \begin_layout Itemize
12261
12262 \change_inserted -712698321 1554308087
12263 \begin_inset Flex Code
12264 status collapsed
12265
12266 \begin_layout Plain Layout
12267
12268 \change_inserted -712698321 1554308042
12269 Formal_without_Footline
12270 \change_unchanged
12271
12272 \end_layout
12273
12274 \end_inset
12275
12276 :
12277  same as the above,
12278  but the last row is not separated with a middle line from the body.
12279 \end_layout
12280
12281 \begin_layout Itemize
12282
12283 \change_inserted -712698321 1553618031
12284 \begin_inset Flex Code
12285 status collapsed
12286
12287 \begin_layout Plain Layout
12288
12289 \change_inserted -712698321 1553618006
12290 Simple_Grid
12291 \change_unchanged
12292
12293 \end_layout
12294
12295 \end_inset
12296
12297 :
12298  Simple table lines.
12299 \end_layout
12300
12301 \begin_layout Itemize
12302
12303 \change_inserted -712698321 1553618309
12304 \begin_inset Flex Code
12305 status collapsed
12306
12307 \begin_layout Plain Layout
12308
12309 \change_inserted -712698321 1553618031
12310 Grid_with_Head
12311 \change_unchanged
12312
12313 \end_layout
12314
12315 \end_inset
12316
12317 :
12318  Like 
12319 \begin_inset Flex Code
12320 status collapsed
12321
12322 \begin_layout Plain Layout
12323
12324 \change_inserted -712698321 1553618043
12325 Simple_Grid
12326 \change_unchanged
12327
12328 \end_layout
12329
12330 \end_inset
12331
12332 ,
12333  but with the header 
12334 \change_deleted 34634807 1619712593
12335 column
12336 \change_inserted 34634807 1619712594
12337 row
12338 \change_inserted -712698321 1553618309
12339  offset with a second horizontal line.
12340  This is also the default style of \SpecialChar LyX
12341 .
12342 \end_layout
12343
12344 \begin_layout Itemize
12345
12346 \change_inserted -712698321 1553618280
12347 \begin_inset Flex Code
12348 status collapsed
12349
12350 \begin_layout Plain Layout
12351
12352 \change_inserted -712698321 1553618261
12353 No_Borders
12354 \change_unchanged
12355
12356 \end_layout
12357
12358 \end_inset
12359
12360 :
12361  Table without lines.
12362 \change_unchanged
12363
12364 \end_layout
12365
12366 \end_deeper
12367 \begin_layout Description
12368 \begin_inset Flex Code
12369 status collapsed
12370
12371 \begin_layout Plain Layout
12372 TitleLatexName
12373 \end_layout
12374
12375 \end_inset
12376
12377  [
12378 \begin_inset Flex Code
12379 status collapsed
12380
12381 \begin_layout Plain Layout
12382 string="maketitle"
12383 \end_layout
12384
12385 \end_inset
12386
12387 ] The name of the command or environment to be used with 
12388 \begin_inset Flex Code
12389 status collapsed
12390
12391 \begin_layout Plain Layout
12392 TitleLatexType
12393 \end_layout
12394
12395 \end_inset
12396
12397 .
12398 \end_layout
12399
12400 \begin_layout Description
12401 \begin_inset Flex Code
12402 status collapsed
12403
12404 \begin_layout Plain Layout
12405 TitleLatexType
12406 \end_layout
12407
12408 \end_inset
12409
12410  [
12411 \begin_inset Flex Code
12412 status collapsed
12413
12414 \begin_layout Plain Layout
12415
12416 \emph on
12417 CommandAfter
12418 \end_layout
12419
12420 \end_inset
12421
12422 ,
12423  
12424 \begin_inset Flex Code
12425 status collapsed
12426
12427 \begin_layout Plain Layout
12428 Environment
12429 \end_layout
12430
12431 \end_inset
12432
12433 ] Indicates what kind of markup is used to define the title of a document.
12434  
12435 \begin_inset Flex Code
12436 status collapsed
12437
12438 \begin_layout Plain Layout
12439 CommandAfter
12440 \end_layout
12441
12442 \end_inset
12443
12444  means that the macro with name 
12445 \begin_inset Flex Code
12446 status collapsed
12447
12448 \begin_layout Plain Layout
12449 TitleLatexName
12450 \end_layout
12451
12452 \end_inset
12453
12454  will be inserted after the last layout which has 
12455 \begin_inset Quotes eld
12456 \end_inset
12457
12458
12459 \begin_inset Flex Code
12460 status collapsed
12461
12462 \begin_layout Plain Layout
12463 InTitle
12464 \begin_inset space ~
12465 \end_inset
12466
12467 1
12468 \end_layout
12469
12470 \end_inset
12471
12472
12473 \begin_inset Quotes erd
12474 \end_inset
12475
12476 .
12477  
12478 \begin_inset Flex Code
12479 status collapsed
12480
12481 \begin_layout Plain Layout
12482 Environment
12483 \end_layout
12484
12485 \end_inset
12486
12487  corresponds to the case where all layouts which have 
12488 \begin_inset Quotes eld
12489 \end_inset
12490
12491
12492 \begin_inset Flex Code
12493 status collapsed
12494
12495 \begin_layout Plain Layout
12496 InTitle
12497 \begin_inset space ~
12498 \end_inset
12499
12500 1
12501 \end_layout
12502
12503 \end_inset
12504
12505
12506 \begin_inset Quotes erd
12507 \end_inset
12508
12509  should be enclosed into the 
12510 \begin_inset Flex Code
12511 status collapsed
12512
12513 \begin_layout Plain Layout
12514 TitleLatexName
12515 \end_layout
12516
12517 \end_inset
12518
12519  environment.
12520 \end_layout
12521
12522 \begin_layout Description
12523 \begin_inset Flex Code
12524 status collapsed
12525
12526 \begin_layout Plain Layout
12527 TocDepth
12528 \end_layout
12529
12530 \end_inset
12531
12532  [
12533 \begin_inset Flex Code
12534 status collapsed
12535
12536 \begin_layout Plain Layout
12537 int=3
12538 \end_layout
12539
12540 \end_inset
12541
12542 ] Sets which divisions are included in the table of contents.
12543  Corresponds to the 
12544 \begin_inset Flex Code
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548 tocdepth
12549 \end_layout
12550
12551 \end_inset
12552
12553  counter in \SpecialChar LaTeX
12554 .
12555 \end_layout
12556
12557 \begin_layout Subsection
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562 ClassOptions
12563 \end_layout
12564
12565 \end_inset
12566
12567  section
12568 \begin_inset CommandInset label
12569 LatexCommand label
12570 name "subsec:ClassOptions"
12571
12572 \end_inset
12573
12574
12575 \end_layout
12576
12577 \begin_layout Standard
12578 The 
12579 \begin_inset Flex Code
12580 status collapsed
12581
12582 \begin_layout Plain Layout
12583 ClassOptions
12584 \end_layout
12585
12586 \end_inset
12587
12588  section can contain the following entries:
12589 \end_layout
12590
12591 \begin_layout Description
12592 \begin_inset Flex Code
12593 status collapsed
12594
12595 \begin_layout Plain Layout
12596 FontSize
12597 \end_layout
12598
12599 \end_inset
12600
12601  [
12602 \begin_inset Flex Code
12603 status collapsed
12604
12605 \begin_layout Plain Layout
12606 string="10|11|12"
12607 \end_layout
12608
12609 \end_inset
12610
12611 ] The list of available font sizes for the document's main font,
12612  separated by 
12613 \begin_inset Quotes eld
12614 \end_inset
12615
12616
12617 \begin_inset Flex Code
12618 status collapsed
12619
12620 \begin_layout Plain Layout
12621 |
12622 \end_layout
12623
12624 \end_inset
12625
12626
12627 \begin_inset Quotes erd
12628 \end_inset
12629
12630 .
12631
12632 \change_inserted -712698321 1565110196
12633  Any number is possible.
12634 \end_layout
12635
12636 \begin_layout Description
12637
12638 \change_inserted -712698321 1565110259
12639 \begin_inset Flex Code
12640 status collapsed
12641
12642 \begin_layout Plain Layout
12643
12644 \change_inserted -712698321 1565110199
12645 FontSizeFormat
12646 \change_unchanged
12647
12648 \end_layout
12649
12650 \end_inset
12651
12652  [
12653 \begin_inset Flex Code
12654 status collapsed
12655
12656 \begin_layout Plain Layout
12657
12658 \change_inserted -712698321 1565110196
12659 string
12660 \change_unchanged
12661
12662 \end_layout
12663
12664 \end_inset
12665
12666 ] The format for the font size option.
12667  Default:
12668  
12669 \begin_inset Flex Code
12670 status collapsed
12671
12672 \begin_layout Plain Layout
12673
12674 \change_inserted -712698321 1565110238
12675 $$spt
12676 \change_unchanged
12677
12678 \end_layout
12679
12680 \end_inset
12681
12682 .
12683  
12684 \begin_inset Flex Code
12685 status collapsed
12686
12687 \begin_layout Plain Layout
12688
12689 \change_inserted -712698321 1565110248
12690 $$s
12691 \change_unchanged
12692
12693 \end_layout
12694
12695 \end_inset
12696
12697  is a placeholder for the font size.
12698 \change_unchanged
12699
12700 \end_layout
12701
12702 \begin_layout Description
12703
12704 \change_deleted 5863208 1594239483
12705 \begin_inset Flex Code
12706 status collapsed
12707
12708 \begin_layout Plain Layout
12709 Header
12710 \end_layout
12711
12712 \end_inset
12713
12714  Used to set the DTD line with XML-based output classes.
12715  E.
12716 \begin_inset space \thinspace{}
12717 \end_inset
12718
12719 g.:
12720  PUBLIC 
12721 \begin_inset Quotes eld
12722 \end_inset
12723
12724 -//OASIS//DTD DocBook V4.2//EN
12725 \begin_inset Quotes erd
12726 \end_inset
12727
12728 .
12729 \change_inserted -712698321 1565101761
12730
12731 \end_layout
12732
12733 \begin_layout Description
12734
12735 \change_inserted -712698321 1565180598
12736 \begin_inset Flex Code
12737 status collapsed
12738
12739 \begin_layout Plain Layout
12740
12741 \change_inserted -712698321 1565101918
12742 PageSize
12743 \change_unchanged
12744
12745 \end_layout
12746
12747 \end_inset
12748
12749  [
12750 \begin_inset Flex Code
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754
12755 \change_inserted -712698321 1565105399
12756 string="letter|\SpecialChar allowbreak
12757 legal|\SpecialChar allowbreak
12758 executive|\SpecialChar allowbreak
12759 a0|\SpecialChar allowbreak
12760 a1|\SpecialChar allowbreak
12761 a2|\SpecialChar allowbreak
12762 a3|\SpecialChar allowbreak
12763 a4|\SpecialChar allowbreak
12764 a5|\SpecialChar allowbreak
12765 a6|\SpecialChar allowbreak
12766 b0|\SpecialChar allowbreak
12767 b1|\SpecialChar allowbreak
12768 b2|\SpecialChar allowbreak
12769 b3|\SpecialChar allowbreak
12770 b4|\SpecialChar allowbreak
12771 b5|\SpecialChar allowbreak
12772 b6|\SpecialChar allowbreak
12773 c0|\SpecialChar allowbreak
12774 c1|\SpecialChar allowbreak
12775 c2|\SpecialChar allowbreak
12776 c3|\SpecialChar allowbreak
12777 c4|\SpecialChar allowbreak
12778 c5|\SpecialChar allowbreak
12779 c6|\SpecialChar allowbreak
12780 b0j|\SpecialChar allowbreak
12781 b1j|\SpecialChar allowbreak
12782 b2j|\SpecialChar allowbreak
12783 b3j|\SpecialChar allowbreak
12784 b4j|\SpecialChar allowbreak
12785 b5j|\SpecialChar allowbreak
12786 b6j"
12787 \change_unchanged
12788
12789 \end_layout
12790
12791 \end_inset
12792
12793 ] The list of available page sizes,
12794  separated by 
12795 \begin_inset Quotes eld
12796 \end_inset
12797
12798
12799 \begin_inset Flex Code
12800 status collapsed
12801
12802 \begin_layout Plain Layout
12803
12804 \change_inserted -712698321 1565101779
12805 |
12806 \change_unchanged
12807
12808 \end_layout
12809
12810 \end_inset
12811
12812
12813 \begin_inset Quotes erd
12814 \end_inset
12815
12816 .
12817  Currently,
12818  only the listed sizes are supported.
12819  Other sizes might be entered as custom class option.
12820 \end_layout
12821
12822 \begin_layout Description
12823
12824 \change_inserted -712698321 1565180623
12825 \begin_inset Flex Code
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829
12830 \change_inserted -712698321 1565180605
12831 PageSizeFormat
12832 \change_unchanged
12833
12834 \end_layout
12835
12836 \end_inset
12837
12838  [
12839 \begin_inset Flex Code
12840 status collapsed
12841
12842 \begin_layout Plain Layout
12843
12844 \change_inserted -712698321 1565180601
12845 string
12846 \change_unchanged
12847
12848 \end_layout
12849
12850 \end_inset
12851
12852 ] The format for the page size option.
12853  Default:
12854  
12855 \begin_inset Flex Code
12856 status collapsed
12857
12858 \begin_layout Plain Layout
12859
12860 \change_inserted -712698321 1565180618
12861 $$spaper
12862 \change_unchanged
12863
12864 \end_layout
12865
12866 \end_inset
12867
12868 .
12869  
12870 \begin_inset Flex Code
12871 status collapsed
12872
12873 \begin_layout Plain Layout
12874
12875 \change_inserted -712698321 1565180601
12876 $$s
12877 \change_unchanged
12878
12879 \end_layout
12880
12881 \end_inset
12882
12883  is a placeholder for the paper size.
12884 \change_unchanged
12885
12886 \end_layout
12887
12888 \begin_layout Description
12889 \begin_inset Flex Code
12890 status collapsed
12891
12892 \begin_layout Plain Layout
12893 PageStyle
12894 \end_layout
12895
12896 \end_inset
12897
12898  [
12899 \begin_inset Flex Code
12900 status collapsed
12901
12902 \begin_layout Plain Layout
12903 string="empty|plain|headings|fancy"
12904 \end_layout
12905
12906 \end_inset
12907
12908 ] The list of available page sty\SpecialChar softhyphen
12909 les,
12910  separated by 
12911 \begin_inset Quotes eld
12912 \end_inset
12913
12914
12915 \begin_inset Flex Code
12916 status collapsed
12917
12918 \begin_layout Plain Layout
12919 |
12920 \end_layout
12921
12922 \end_inset
12923
12924
12925 \begin_inset Quotes erd
12926 \end_inset
12927
12928 .
12929 \end_layout
12930
12931 \begin_layout Description
12932 \begin_inset Flex Code
12933 status collapsed
12934
12935 \begin_layout Plain Layout
12936 Other
12937 \end_layout
12938
12939 \end_inset
12940
12941  [
12942 \begin_inset Flex Code
12943 status collapsed
12944
12945 \begin_layout Plain Layout
12946 string=""
12947 \end_layout
12948
12949 \end_inset
12950
12951 ] Some document class options,
12952  separated by a comma,
12953  that will be added to the optional part of the 
12954 \begin_inset Flex Code
12955 status collapsed
12956
12957 \begin_layout Plain Layout
12958
12959 \backslash
12960 documentclass
12961 \end_layout
12962
12963 \end_inset
12964
12965  command.
12966 \end_layout
12967
12968 \begin_layout Standard
12969 The 
12970 \begin_inset Flex Code
12971 status collapsed
12972
12973 \begin_layout Plain Layout
12974 ClassOptions
12975 \end_layout
12976
12977 \end_inset
12978
12979  section must end with 
12980 \begin_inset Quotes eld
12981 \end_inset
12982
12983
12984 \begin_inset Flex Code
12985 status collapsed
12986
12987 \begin_layout Plain Layout
12988 End
12989 \end_layout
12990
12991 \end_inset
12992
12993
12994 \begin_inset Quotes erd
12995 \end_inset
12996
12997 .
12998 \end_layout
12999
13000 \begin_layout Subsection
13001 Paragraph styles
13002 \begin_inset CommandInset label
13003 LatexCommand label
13004 name "subsec:Paragraph-Styles"
13005
13006 \end_inset
13007
13008
13009 \end_layout
13010
13011 \begin_layout Standard
13012 A paragraph style description looks like this:
13013 \begin_inset Foot
13014 status collapsed
13015
13016 \begin_layout Plain Layout
13017 Note that this will either define a new style or modify an existing one.
13018 \end_layout
13019
13020 \end_inset
13021
13022
13023 \end_layout
13024
13025 \begin_layout LyX-Code
13026 Style 
13027 \family roman
13028 \emph on
13029 name
13030 \end_layout
13031
13032 \begin_layout LyX-Code
13033  ...
13034 \end_layout
13035
13036 \begin_layout LyX-Code
13037 End
13038 \end_layout
13039
13040 \begin_layout Standard
13041 where the following commands are allowed:
13042 \end_layout
13043
13044 \begin_layout Description
13045 \begin_inset Flex Code
13046 status collapsed
13047
13048 \begin_layout Plain Layout
13049 AddToToc
13050 \end_layout
13051
13052 \end_inset
13053
13054  [
13055 \begin_inset Flex Code
13056 status collapsed
13057
13058 \begin_layout Plain Layout
13059 string
13060 \end_layout
13061
13062 \end_inset
13063
13064 =""] This paragraph will appear in the table of contents of the given type.
13065  An empty string disables.
13066  See also the OutlinerName and the IsTocCaption commands.
13067  Default:
13068  disabled.
13069 \end_layout
13070
13071 \begin_layout Description
13072 \begin_inset Flex Code
13073 status collapsed
13074
13075 \begin_layout Plain Layout
13076 Align
13077 \end_layout
13078
13079 \end_inset
13080
13081  [
13082 \begin_inset Flex Code
13083 status collapsed
13084
13085 \begin_layout Plain Layout
13086
13087 \emph on
13088 block
13089 \emph default
13090 ,
13091  left,
13092  right,
13093  center
13094 \end_layout
13095
13096 \end_inset
13097
13098 ] Paragraph alignment.
13099 \end_layout
13100
13101 \begin_layout Description
13102 \begin_inset Flex Code
13103 status collapsed
13104
13105 \begin_layout Plain Layout
13106 AlignPossible
13107 \end_layout
13108
13109 \end_inset
13110
13111  [
13112 \begin_inset Flex Code
13113 status collapsed
13114
13115 \begin_layout Plain Layout
13116
13117 \emph on
13118 block
13119 \emph default
13120 ,
13121  left,
13122  right,
13123  center
13124 \end_layout
13125
13126 \end_inset
13127
13128 ] A comma separated list of permitted alignments.
13129  (Some \SpecialChar LaTeX
13130  styles prohibit certain alignments,
13131  since those wouldn't make sense.
13132  For example a right-aligned or centered enumeration isn't possible.)
13133 \end_layout
13134
13135 \begin_layout Description
13136 \begin_inset Flex Code
13137 status collapsed
13138
13139 \begin_layout Plain Layout
13140 Argument
13141 \end_layout
13142
13143 \end_inset
13144
13145  [
13146 \begin_inset Flex Code
13147 status collapsed
13148
13149 \begin_layout Plain Layout
13150 int
13151 \end_layout
13152
13153 \end_inset
13154
13155 ] Defines argument number <int> of a command\SpecialChar breakableslash
13156 environment associated with the current style.
13157
13158 \change_inserted -584632292 1615846868
13159  The definition must end with 
13160 \begin_inset Flex Code
13161 status collapsed
13162
13163 \begin_layout Plain Layout
13164
13165 \change_inserted -584632292 1615846867
13166 EndArgument
13167 \change_unchanged
13168
13169 \end_layout
13170
13171 \end_inset
13172
13173 .
13174
13175 \change_unchanged
13176  
13177 \change_inserted -584632292 1615846880
13178 See 
13179 \begin_inset CommandInset ref
13180 LatexCommand ref
13181 reference "subsec:Arguments"
13182 plural "false"
13183 caps "false"
13184 noprefix "false"
13185
13186 \end_inset
13187
13188  for more information.
13189  
13190 \change_deleted -584632292 1615846694
13191 This is useful for things like section headings,
13192  and only makes sense with \SpecialChar LaTeX
13193 .
13194  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,
13195  where the number specifies the order of the arguments.
13196  The definition must end with 
13197 \begin_inset Flex Code
13198 status collapsed
13199
13200 \begin_layout Plain Layout
13201 EndArgument
13202 \end_layout
13203
13204 \end_inset
13205
13206 .
13207  So a command with two optional arguments has:
13208 \end_layout
13209
13210 \begin_deeper
13211 \begin_layout Quote
13212
13213 \change_deleted -584632292 1615846694
13214
13215 \family typewriter
13216 Argument 1
13217 \end_layout
13218
13219 \begin_layout Quote
13220
13221 \change_deleted -584632292 1615846694
13222
13223 \family typewriter
13224 ...
13225 \end_layout
13226
13227 \begin_layout Quote
13228
13229 \change_deleted -584632292 1615846694
13230
13231 \family typewriter
13232 EndArgument
13233 \end_layout
13234
13235 \begin_layout Quote
13236
13237 \change_deleted -584632292 1615846694
13238
13239 \family typewriter
13240 Argument 2
13241 \end_layout
13242
13243 \begin_layout Quote
13244
13245 \change_deleted -584632292 1615846694
13246
13247 \family typewriter
13248 ...
13249 \end_layout
13250
13251 \begin_layout Quote
13252
13253 \change_deleted -584632292 1615846694
13254
13255 \family typewriter
13256 EndArgument
13257 \end_layout
13258
13259 \begin_layout Standard
13260
13261 \change_deleted -584632292 1615846694
13262 Inside the 
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 Argument
13268 \end_layout
13269
13270 \end_inset
13271
13272  definition,
13273  the following specifications are possible:
13274 \end_layout
13275
13276 \begin_layout Itemize
13277
13278 \change_deleted -584632292 1615846694
13279 \begin_inset Flex Code
13280 status collapsed
13281
13282 \begin_layout Plain Layout
13283 LabelString
13284 \end_layout
13285
13286 \end_inset
13287
13288  
13289 \begin_inset Flex Code
13290 status collapsed
13291
13292 \begin_layout Plain Layout
13293 [string]
13294 \end_layout
13295
13296 \end_inset
13297
13298  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 
13299 \begin_inset Flex Code
13300 status collapsed
13301
13302 \begin_layout Plain Layout
13303 MenuString
13304 \end_layout
13305
13306 \end_inset
13307
13308 ).
13309  For the menu,
13310  you can define an accelerator by appending the respective character to the string,
13311  divided by 
13312 \begin_inset Quotes eld
13313 \end_inset
13314
13315 |
13316 \begin_inset Quotes erd
13317 \end_inset
13318
13319  (e.
13320 \begin_inset space \thinspace{}
13321 \end_inset
13322
13323 g.
13324 \begin_inset space \space{}
13325 \end_inset
13326
13327
13328 \begin_inset Quotes eld
13329 \end_inset
13330
13331
13332 \begin_inset Flex Code
13333 status collapsed
13334
13335 \begin_layout Plain Layout
13336 Short Title|S
13337 \end_layout
13338
13339 \end_inset
13340
13341
13342 \begin_inset Quotes erd
13343 \end_inset
13344
13345 ).
13346 \end_layout
13347
13348 \begin_layout Itemize
13349
13350 \change_deleted -584632292 1615846694
13351 \begin_inset Flex Code
13352 status collapsed
13353
13354 \begin_layout Plain Layout
13355 MenuString
13356 \end_layout
13357
13358 \end_inset
13359
13360  
13361 \begin_inset Flex Code
13362 status collapsed
13363
13364 \begin_layout Plain Layout
13365 [string]
13366 \end_layout
13367
13368 \end_inset
13369
13370  A separate string for the menu.
13371  You can define an accelerator by appending the respective character to the string,
13372  divided by 
13373 \begin_inset Quotes eld
13374 \end_inset
13375
13376 |
13377 \begin_inset Quotes erd
13378 \end_inset
13379
13380  (e.
13381 \begin_inset space \thinspace{}
13382 \end_inset
13383
13384 g.
13385 \begin_inset space \space{}
13386 \end_inset
13387
13388
13389 \begin_inset Quotes eld
13390 \end_inset
13391
13392
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 Short Title|S
13398 \end_layout
13399
13400 \end_inset
13401
13402
13403 \begin_inset Quotes erd
13404 \end_inset
13405
13406 ).
13407  This specification is optional.
13408  If it is not given the 
13409 \begin_inset Flex Code
13410 status collapsed
13411
13412 \begin_layout Plain Layout
13413 LabelString
13414 \end_layout
13415
13416 \end_inset
13417
13418  will be used instead for the menu.
13419 \end_layout
13420
13421 \begin_layout Itemize
13422
13423 \change_deleted -584632292 1615846694
13424 \begin_inset Flex Code
13425 status collapsed
13426
13427 \begin_layout Plain Layout
13428 Tooltip
13429 \end_layout
13430
13431 \end_inset
13432
13433  
13434 \begin_inset Flex Code
13435 status collapsed
13436
13437 \begin_layout Plain Layout
13438 [string]
13439 \end_layout
13440
13441 \end_inset
13442
13443  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
13444 \end_layout
13445
13446 \begin_layout Itemize
13447
13448 \change_deleted -584632292 1615846694
13449 \begin_inset Flex Code
13450 status collapsed
13451
13452 \begin_layout Plain Layout
13453 Mandatory
13454 \end_layout
13455
13456 \end_inset
13457
13458  [
13459 \begin_inset Flex Code
13460 status collapsed
13461
13462 \begin_layout Plain Layout
13463
13464 \emph on
13465 0
13466 \end_layout
13467
13468 \end_inset
13469
13470 ,
13471 \begin_inset space \thinspace{}
13472 \end_inset
13473
13474
13475 \begin_inset Flex Code
13476 status collapsed
13477
13478 \begin_layout Plain Layout
13479 1
13480 \end_layout
13481
13482 \end_inset
13483
13484 ] Declare if this is a mandatory (1) or an optional (0) argument.
13485  Mandatory arguments will be output empty if not given,
13486  while optional arguments will not be output at all.
13487  By default,
13488  mandatory arguments are delimited by 
13489 \begin_inset Flex Code
13490 status collapsed
13491
13492 \begin_layout Plain Layout
13493 {...}
13494 \end_layout
13495
13496 \end_inset
13497
13498 ,
13499  while optional arguments are delimited by 
13500 \begin_inset Flex Code
13501 status collapsed
13502
13503 \begin_layout Plain Layout
13504 [...]
13505 \end_layout
13506
13507 \end_inset
13508
13509
13510 \end_layout
13511
13512 \begin_layout Itemize
13513
13514 \change_deleted -584632292 1615846694
13515 \begin_inset Flex Code
13516 status collapsed
13517
13518 \begin_layout Plain Layout
13519
13520 \change_inserted -712698321 1555579780
13521 NewlineCmd
13522 \change_unchanged
13523
13524 \end_layout
13525
13526 \end_inset
13527
13528  
13529 \begin_inset Flex Code
13530 status collapsed
13531
13532 \begin_layout Plain Layout
13533
13534 \change_inserted -712698321 1555579780
13535 [string]
13536 \change_unchanged
13537
13538 \end_layout
13539
13540 \end_inset
13541
13542  Option to define a different command (from the default 
13543 \begin_inset Flex Code
13544 status collapsed
13545
13546 \begin_layout Plain Layout
13547
13548 \change_inserted -712698321 1555579780
13549
13550 \backslash
13551
13552 \backslash
13553
13554 \change_unchanged
13555
13556 \end_layout
13557
13558 \end_inset
13559
13560 ) to be used for line breaks.
13561  The initial backslash must not be specified.
13562 \end_layout
13563
13564 \begin_layout Itemize
13565
13566 \change_deleted -584632292 1615846694
13567 \begin_inset Flex Code
13568 status collapsed
13569
13570 \begin_layout Plain Layout
13571 Requires
13572 \end_layout
13573
13574 \end_inset
13575
13576  
13577 \begin_inset Flex Code
13578 status collapsed
13579
13580 \begin_layout Plain Layout
13581 [int=0]
13582 \end_layout
13583
13584 \end_inset
13585
13586  defines another argument (by its number) which this argument requires to be output if it is itself output.
13587  E.
13588 \begin_inset space \thinspace{}
13589 \end_inset
13590
13591 g.,
13592  in \SpecialChar LaTeX
13593  commands,
13594  optional arguments often require previous optional arguments to be output (at least empty),
13595  as in 
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600
13601 \backslash
13602 command[][argument]{text}
13603 \end_layout
13604
13605 \end_inset
13606
13607 .
13608  This can be achieved by the statement 
13609 \begin_inset Flex Code
13610 status collapsed
13611
13612 \begin_layout Plain Layout
13613 Requires 1
13614 \end_layout
13615
13616 \end_inset
13617
13618  within 
13619 \begin_inset Flex Code
13620 status collapsed
13621
13622 \begin_layout Plain Layout
13623 Argument 2
13624 \end_layout
13625
13626 \end_inset
13627
13628 .
13629 \end_layout
13630
13631 \begin_layout Itemize
13632
13633 \change_deleted -584632292 1615846694
13634 \begin_inset Flex Code
13635 status collapsed
13636
13637 \begin_layout Plain Layout
13638 LeftDelim
13639 \end_layout
13640
13641 \end_inset
13642
13643  
13644 \begin_inset Flex Code
13645 status collapsed
13646
13647 \begin_layout Plain Layout
13648 [string]
13649 \end_layout
13650
13651 \end_inset
13652
13653  defines a custom left delimiter (instead of 
13654 \begin_inset Flex Code
13655 status collapsed
13656
13657 \begin_layout Plain Layout
13658 {
13659 \end_layout
13660
13661 \end_inset
13662
13663  or 
13664 \begin_inset Flex Code
13665 status collapsed
13666
13667 \begin_layout Plain Layout
13668 [
13669 \end_layout
13670
13671 \end_inset
13672
13673 ).
13674  A line break in the output can be indicated by 
13675 \begin_inset Flex Code
13676 status collapsed
13677
13678 \begin_layout Plain Layout
13679 <br/>
13680 \end_layout
13681
13682 \end_inset
13683
13684 .
13685 \end_layout
13686
13687 \begin_layout Itemize
13688
13689 \change_deleted -584632292 1615846694
13690 \begin_inset Flex Code
13691 status collapsed
13692
13693 \begin_layout Plain Layout
13694 RightDelim
13695 \end_layout
13696
13697 \end_inset
13698
13699  
13700 \begin_inset Flex Code
13701 status collapsed
13702
13703 \begin_layout Plain Layout
13704 [string]
13705 \end_layout
13706
13707 \end_inset
13708
13709  defines a custom right delimiter (instead of 
13710 \begin_inset Flex Code
13711 status collapsed
13712
13713 \begin_layout Plain Layout
13714 }
13715 \end_layout
13716
13717 \end_inset
13718
13719  or 
13720 \begin_inset Flex Code
13721 status collapsed
13722
13723 \begin_layout Plain Layout
13724 ]
13725 \end_layout
13726
13727 \end_inset
13728
13729 ).
13730  A line break in the output can be indicated by 
13731 \begin_inset Flex Code
13732 status collapsed
13733
13734 \begin_layout Plain Layout
13735 <br/>
13736 \end_layout
13737
13738 \end_inset
13739
13740 .
13741 \end_layout
13742
13743 \begin_layout Itemize
13744
13745 \change_deleted -584632292 1615846694
13746 \begin_inset Flex Code
13747 status collapsed
13748
13749 \begin_layout Plain Layout
13750 DefaultArg
13751 \end_layout
13752
13753 \end_inset
13754
13755  
13756 \begin_inset Flex Code
13757 status collapsed
13758
13759 \begin_layout Plain Layout
13760 [string]
13761 \end_layout
13762
13763 \end_inset
13764
13765  defines an argument that is inserted if and only if no user-specified arguments were given,
13766  i.
13767 \begin_inset space \thinspace{}
13768 \end_inset
13769
13770 e.
13771 \begin_inset space \space{}
13772 \end_inset
13773
13774 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
13775  Multiple arguments need to be separated by comma.
13776 \end_layout
13777
13778 \begin_layout Itemize
13779
13780 \change_deleted -584632292 1615846694
13781 \begin_inset Flex Code
13782 status collapsed
13783
13784 \begin_layout Plain Layout
13785 PresetArg
13786 \end_layout
13787
13788 \end_inset
13789
13790  
13791 \begin_inset Flex Code
13792 status collapsed
13793
13794 \begin_layout Plain Layout
13795 [string]
13796 \end_layout
13797
13798 \end_inset
13799
13800  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
13801  Multiple arguments need to be separated by comma.
13802 \end_layout
13803
13804 \begin_layout Itemize
13805
13806 \change_deleted -584632292 1615846694
13807 \begin_inset Flex Code
13808 status collapsed
13809
13810 \begin_layout Plain Layout
13811 Font
13812 \end_layout
13813
13814 \end_inset
13815
13816  The font used for the argument content,
13817  see 
13818 \begin_inset CommandInset ref
13819 LatexCommand ref
13820 reference "subsec:Font-description"
13821
13822 \end_inset
13823
13824 .
13825 \end_layout
13826
13827 \begin_layout Itemize
13828
13829 \change_deleted -584632292 1615846694
13830 \begin_inset Flex Code
13831 status collapsed
13832
13833 \begin_layout Plain Layout
13834
13835 \change_inserted -712698321 1559484228
13836 FreeSpacing
13837 \change_unchanged
13838
13839 \end_layout
13840
13841 \end_inset
13842
13843  [
13844 \begin_inset Flex Code
13845 status collapsed
13846
13847 \begin_layout Plain Layout
13848
13849 \change_inserted -712698321 1559484228
13850
13851 \emph on
13852 0
13853 \change_unchanged
13854
13855 \end_layout
13856
13857 \end_inset
13858
13859 ,
13860 \begin_inset space \thinspace{}
13861 \end_inset
13862
13863
13864 \begin_inset Flex Code
13865 status collapsed
13866
13867 \begin_layout Plain Layout
13868
13869 \change_inserted -712698321 1559484228
13870 1
13871 \change_unchanged
13872
13873 \end_layout
13874
13875 \end_inset
13876
13877 ] As with paragraph styles,
13878  see 
13879 \begin_inset CommandInset ref
13880 LatexCommand ref
13881 reference "subsec:Paragraph-Styles"
13882
13883 \end_inset
13884
13885 .
13886 \end_layout
13887
13888 \begin_layout Itemize
13889
13890 \change_deleted -584632292 1615846694
13891 \begin_inset Flex Code
13892 status collapsed
13893
13894 \begin_layout Plain Layout
13895 LabelFont
13896 \end_layout
13897
13898 \end_inset
13899
13900  The font used for the label;
13901  see 
13902 \begin_inset CommandInset ref
13903 LatexCommand ref
13904 reference "subsec:Font-description"
13905
13906 \end_inset
13907
13908 .
13909 \end_layout
13910
13911 \begin_layout Itemize
13912
13913 \change_deleted -584632292 1615846694
13914 \begin_inset Flex Code
13915 status collapsed
13916
13917 \begin_layout Plain Layout
13918 Decoration
13919 \end_layout
13920
13921 \end_inset
13922
13923  [
13924 \begin_inset Flex Code
13925 status collapsed
13926
13927 \begin_layout Plain Layout
13928
13929 \emph on
13930 Classic
13931 \emph default
13932 ,
13933  Minimalistic,
13934  Conglomerate
13935 \end_layout
13936
13937 \end_inset
13938
13939 ] describes the rendering style used for the inset's frame and buttons.
13940 \end_layout
13941
13942 \begin_layout Itemize
13943
13944 \change_deleted -584632292 1615846694
13945 \begin_inset Flex Code
13946 status collapsed
13947
13948 \begin_layout Plain Layout
13949 AutoInsert
13950 \end_layout
13951
13952 \end_inset
13953
13954  
13955 \begin_inset Flex Code
13956 status collapsed
13957
13958 \begin_layout Plain Layout
13959 [int=0]
13960 \end_layout
13961
13962 \end_inset
13963
13964  If this is set to 
13965 \begin_inset Flex Code
13966 status collapsed
13967
13968 \begin_layout Plain Layout
13969 1
13970 \end_layout
13971
13972 \end_inset
13973
13974 ,
13975  this argument is automatically inserted when the respective style is selected.
13976
13977 \change_deleted -712698321 1559484200
13978  Currently,
13979  only one argument per style\SpecialChar breakableslash
13980 layout can be automatically inserted.
13981 \change_deleted -584632292 1615846694
13982
13983 \end_layout
13984
13985 \begin_layout Itemize
13986
13987 \change_deleted -584632292 1615846694
13988 \begin_inset Flex Code
13989 status collapsed
13990
13991 \begin_layout Plain Layout
13992
13993 \change_inserted -712698321 1559490711
13994 InsertOnNewline
13995 \change_unchanged
13996
13997 \end_layout
13998
13999 \end_inset
14000
14001  
14002 \begin_inset Flex Code
14003 status collapsed
14004
14005 \begin_layout Plain Layout
14006
14007 \change_inserted -712698321 1559490703
14008 [int=0]
14009 \change_unchanged
14010
14011 \end_layout
14012
14013 \end_inset
14014
14015  If this is set to 
14016 \begin_inset Flex Code
14017 status collapsed
14018
14019 \begin_layout Plain Layout
14020
14021 \change_inserted -712698321 1559490703
14022 1
14023 \change_unchanged
14024
14025 \end_layout
14026
14027 \end_inset
14028
14029 ,
14030  this argument will be inserted on a new line with 
14031 \begin_inset Flex Code
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035
14036 \change_inserted -712698321 1559491402
14037 AutoInsert
14038 \change_unchanged
14039
14040 \end_layout
14041
14042 \end_inset
14043
14044  (only available within Flex insets).
14045 \end_layout
14046
14047 \begin_layout Itemize
14048
14049 \change_deleted -584632292 1615846694
14050 \begin_inset Flex Code
14051 status collapsed
14052
14053 \begin_layout Plain Layout
14054 InsertCotext
14055 \end_layout
14056
14057 \end_inset
14058
14059  
14060 \begin_inset Flex Code
14061 status collapsed
14062
14063 \begin_layout Plain Layout
14064 [int=0]
14065 \end_layout
14066
14067 \end_inset
14068
14069  If this is set to 
14070 \begin_inset Flex Code
14071 status collapsed
14072
14073 \begin_layout Plain Layout
14074 1
14075 \end_layout
14076
14077 \end_inset
14078
14079 ,
14080  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
14081 \end_layout
14082
14083 \begin_layout Itemize
14084
14085 \change_deleted -584632292 1615846694
14086 \begin_inset Flex Code
14087 status collapsed
14088
14089 \begin_layout Plain Layout
14090 PassThru
14091 \end_layout
14092
14093 \end_inset
14094
14095  [
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100
14101 \emph on
14102 inherited
14103 \emph default
14104 ,
14105  true,
14106  false
14107 \end_layout
14108
14109 \end_inset
14110
14111 ] Whether the contents of this argument should be output in raw form,
14112  meaning without special translations that \SpecialChar LaTeX
14113  would require.
14114  By default,
14115  the 
14116 \begin_inset Flex Code
14117 status collapsed
14118
14119 \begin_layout Plain Layout
14120 PassThru
14121 \end_layout
14122
14123 \end_inset
14124
14125  status is inherited by the inset or paragraph layout the argument belongs to,
14126  true and false change the status for the given argument only.
14127 \end_layout
14128
14129 \begin_layout Itemize
14130
14131 \change_deleted -584632292 1615846694
14132 \begin_inset Flex Code
14133 status collapsed
14134
14135 \begin_layout Plain Layout
14136 PassThruChars
14137 \end_layout
14138
14139 \end_inset
14140
14141  [
14142 \begin_inset Flex Code
14143 status collapsed
14144
14145 \begin_layout Plain Layout
14146 string of characters
14147 \end_layout
14148
14149 \end_inset
14150
14151 ]
14152 \family typewriter
14153  
14154 \family default
14155 Defines individual characters
14156 \begin_inset Newline linebreak
14157 \end_inset
14158
14159 that should be output in raw form,
14160  meaning without special translations that \SpecialChar LaTeX
14161  would require.
14162  Note that,
14163  contrary to PassThru,
14164  this needs to be explicitly defined for arguments.
14165  That is,
14166  arguments do not inherit PassThruChars from their parent inset or layout.
14167 \end_layout
14168
14169 \begin_layout Itemize
14170
14171 \change_deleted -584632292 1615846694
14172 \begin_inset Flex Code
14173 status collapsed
14174
14175 \begin_layout Plain Layout
14176 IsTocCaption
14177 \end_layout
14178
14179 \end_inset
14180
14181  [
14182 \begin_inset Flex Code
14183 status collapsed
14184
14185 \begin_layout Plain Layout
14186
14187 \emph on
14188 0
14189 \end_layout
14190
14191 \end_inset
14192
14193 ,
14194 \begin_inset space \thinspace{}
14195 \end_inset
14196
14197
14198 \begin_inset Flex Code
14199 status collapsed
14200
14201 \begin_layout Plain Layout
14202 1
14203 \end_layout
14204
14205 \end_inset
14206
14207 ] If this is set to 1,
14208  the argument will output its content in the corresponding item in the table of contents.
14209  See AddToToc.
14210 \end_layout
14211
14212 \begin_layout Standard
14213
14214 \change_deleted -584632292 1615846694
14215 By default,
14216  the text entered in the \SpecialChar LyX
14217  workarea in the respective layout is the last (mandatory) argument of a command if the 
14218 \begin_inset Flex Code
14219 status collapsed
14220
14221 \begin_layout Plain Layout
14222 LatexType
14223 \end_layout
14224
14225 \end_inset
14226
14227  is 
14228 \begin_inset Flex Code
14229 status collapsed
14230
14231 \begin_layout Plain Layout
14232 Command
14233 \end_layout
14234
14235 \end_inset
14236
14237 .
14238  However,
14239  arguments with the prefix 
14240 \begin_inset Flex Code
14241 status collapsed
14242
14243 \begin_layout Plain Layout
14244 post:
14245 \end_layout
14246
14247 \end_inset
14248
14249  are output after this workarea argument.
14250  Note that post-argument numbering restarts at 1,
14251  so the first argument following the workarea argument is 
14252 \begin_inset Flex Code
14253 status collapsed
14254
14255 \begin_layout Plain Layout
14256 post:1
14257 \end_layout
14258
14259 \end_inset
14260
14261 .
14262  Post-arguments are ignored in any other 
14263 \begin_inset Flex Code
14264 status collapsed
14265
14266 \begin_layout Plain Layout
14267 LatexType
14268 \end_layout
14269
14270 \end_inset
14271
14272  than 
14273 \begin_inset Flex Code
14274 status collapsed
14275
14276 \begin_layout Plain Layout
14277 Command
14278 \end_layout
14279
14280 \end_inset
14281
14282 .
14283 \end_layout
14284
14285 \begin_layout Standard
14286
14287 \change_deleted -584632292 1615846694
14288 Arguments for list 
14289 \begin_inset Flex Code
14290 status collapsed
14291
14292 \begin_layout Plain Layout
14293
14294 \backslash
14295 item
14296 \end_layout
14297
14298 \end_inset
14299
14300 s (as in 
14301 \begin_inset Flex Code
14302 status collapsed
14303
14304 \begin_layout Plain Layout
14305
14306 \backslash
14307 item[foo]
14308 \end_layout
14309
14310 \end_inset
14311
14312 ) have the prefix 
14313 \begin_inset Flex Code
14314 status collapsed
14315
14316 \begin_layout Plain Layout
14317 item:
14318 \end_layout
14319
14320 \end_inset
14321
14322  followed by the number (e.
14323 \begin_inset space \thinspace{}
14324 \end_inset
14325
14326 g.
14327 \begin_inset space \space{}
14328 \end_inset
14329
14330
14331 \begin_inset Flex Code
14332 status collapsed
14333
14334 \begin_layout Plain Layout
14335 Argument item:1
14336 \end_layout
14337
14338 \end_inset
14339
14340 ).
14341 \end_layout
14342
14343 \begin_layout Standard
14344
14345 \change_deleted -584632292 1615846694
14346 Finally,
14347  there is a special argument type with the prefix 
14348 \begin_inset Flex Code
14349 status collapsed
14350
14351 \begin_layout Plain Layout
14352
14353 \change_inserted -712698321 1534487844
14354 listpreamble:
14355 \change_unchanged
14356
14357 \end_layout
14358
14359 \end_inset
14360
14361 .
14362  It is not really an argument,
14363  but uses the argument interface (thus,
14364  the prefix is also followed by a number,
14365  e.
14366 \begin_inset space \thinspace{}
14367 \end_inset
14368
14369 g.
14370  
14371 \begin_inset Flex Code
14372 status collapsed
14373
14374 \begin_layout Plain Layout
14375
14376 \change_inserted -712698321 1534488412
14377 Argument listpreamble:1
14378 \change_unchanged
14379
14380 \end_layout
14381
14382 \end_inset
14383
14384 ).
14385  As the name implies,
14386  it is targeted at lists such as 
14387 \family sans
14388 Itemize
14389 \family default
14390 ,
14391  
14392 \family sans
14393 Enumerate
14394 \family default
14395 ,
14396  
14397 \family sans
14398 Description
14399 \family default
14400 ,
14401  or 
14402 \family sans
14403 Bibliography
14404 \family default
14405 .
14406  Its content will be output at the list start,
14407  before the first 
14408 \begin_inset Flex Code
14409 status collapsed
14410
14411 \begin_layout Plain Layout
14412
14413 \change_inserted -712698321 1534488058
14414
14415 \backslash
14416 item
14417 \change_unchanged
14418
14419 \end_layout
14420
14421 \end_inset
14422
14423 ,
14424  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
14425 ).
14426  This way,
14427  users can insert redefinitions (of lengths etc.) to individual lists.
14428  By default,
14429  these arguments do not have a delimiter.
14430 \change_unchanged
14431
14432 \end_layout
14433
14434 \end_deeper
14435 \begin_layout Description
14436 \begin_inset Flex Code
14437 status collapsed
14438
14439 \begin_layout Plain Layout
14440 AutoNests
14441 \end_layout
14442
14443 \end_inset
14444
14445  Includes a comma-separated list of layouts that should be nested in and after the current layout.
14446  Only makes sense for nestable layouts (such as environments).
14447  Must be ended by 
14448 \begin_inset Quotes eld
14449 \end_inset
14450
14451
14452 \begin_inset Flex Code
14453 status collapsed
14454
14455 \begin_layout Plain Layout
14456 EndAutoNests
14457 \end_layout
14458
14459 \end_inset
14460
14461
14462 \begin_inset Quotes erd
14463 \end_inset
14464
14465 .
14466  See also 
14467 \begin_inset Flex Code
14468 status collapsed
14469
14470 \begin_layout Plain Layout
14471 IsAutoNestedBy
14472 \end_layout
14473
14474 \end_inset
14475
14476 .
14477 \end_layout
14478
14479 \begin_layout Description
14480 \begin_inset Flex Code
14481 status collapsed
14482
14483 \begin_layout Plain Layout
14484 BabelPreamble
14485 \end_layout
14486
14487 \end_inset
14488
14489  Note that this will completely override any prior 
14490 \begin_inset Flex Code
14491 status collapsed
14492
14493 \begin_layout Plain Layout
14494 BabelPreamble
14495 \end_layout
14496
14497 \end_inset
14498
14499  declaration for this style.
14500  Must end with 
14501 \begin_inset Quotes eld
14502 \end_inset
14503
14504
14505 \begin_inset Flex Code
14506 status collapsed
14507
14508 \begin_layout Plain Layout
14509 EndBabelPreamble
14510 \end_layout
14511
14512 \end_inset
14513
14514
14515 \begin_inset Quotes erd
14516 \end_inset
14517
14518 .
14519  See 
14520 \begin_inset CommandInset ref
14521 LatexCommand ref
14522 reference "subsec:I18n"
14523
14524 \end_inset
14525
14526  for details on its use.
14527 \end_layout
14528
14529 \begin_layout Description
14530 \begin_inset Flex Code
14531 status collapsed
14532
14533 \begin_layout Plain Layout
14534 BottomSep
14535 \end_layout
14536
14537 \end_inset
14538
14539  [
14540 \begin_inset Flex Code
14541 status collapsed
14542
14543 \begin_layout Plain Layout
14544 float=0
14545 \end_layout
14546
14547 \end_inset
14548
14549 ]
14550 \begin_inset Foot
14551 status collapsed
14552
14553 \begin_layout Plain Layout
14554 Note that a `float' here is a real number,
14555  such as:
14556  1.5.
14557 \end_layout
14558
14559 \end_inset
14560
14561  The vertical space with which the last of a chain of paragraphs with this style is separated from the following paragraph.
14562  If the next paragraph has another style,
14563  the separations are not simply added,
14564  but the maximum is taken.
14565 \end_layout
14566
14567 \begin_layout Description
14568 \begin_inset Flex Code
14569 status collapsed
14570
14571 \begin_layout Plain Layout
14572 Category
14573 \end_layout
14574
14575 \end_inset
14576
14577  [
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582 string
14583 \end_layout
14584
14585 \end_inset
14586
14587 ] The category for this style.
14588  This is used to group related styles in the style combobox on the toolbar.
14589  Any string can be used,
14590  but you may want to use existing categories with your own styles.
14591  
14592 \end_layout
14593
14594 \begin_layout Description
14595 \begin_inset Flex Code
14596 status collapsed
14597
14598 \begin_layout Plain Layout
14599 CommandDepth
14600 \end_layout
14601
14602 \end_inset
14603
14604  Depth of XML command.
14605  Used only with XML-type formats.
14606 \end_layout
14607
14608 \begin_layout Description
14609 \begin_inset Flex Code
14610 status collapsed
14611
14612 \begin_layout Plain Layout
14613 CopyStyle
14614 \end_layout
14615
14616 \end_inset
14617
14618  [
14619 \begin_inset Flex Code
14620 status collapsed
14621
14622 \begin_layout Plain Layout
14623 string
14624 \end_layout
14625
14626 \end_inset
14627
14628 ] Copies all the features of an existing style into the current one.
14629  
14630 \end_layout
14631
14632 \begin_layout Description
14633 \begin_inset Flex Code
14634 status collapsed
14635
14636 \begin_layout Plain Layout
14637 DependsOn
14638 \end_layout
14639
14640 \end_inset
14641
14642  [
14643 \begin_inset Flex Code
14644 status collapsed
14645
14646 \begin_layout Plain Layout
14647 <name>
14648 \end_layout
14649
14650 \end_inset
14651
14652 ] The name of a style whose preamble should be output 
14653 \emph on
14654 before
14655 \emph default
14656  this one.
14657  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
14658 \begin_inset Foot
14659 status collapsed
14660
14661 \begin_layout Plain Layout
14662 Note that,
14663  besides that functionality,
14664  there is no way to ensure any ordering of preambles.
14665  The ordering that you see in a given version of \SpecialChar LyX
14666  may change without warning in later versions.
14667 \end_layout
14668
14669 \end_inset
14670
14671
14672 \end_layout
14673
14674 \begin_layout Description
14675 \begin_inset Flex Code
14676 status collapsed
14677
14678 \begin_layout Plain Layout
14679 EndLabelType
14680 \end_layout
14681
14682 \end_inset
14683
14684  [
14685 \begin_inset Flex Code
14686 status collapsed
14687
14688 \begin_layout Plain Layout
14689
14690 \emph on
14691 No_Label
14692 \emph default
14693 ,
14694  Box,
14695  Filled_Box,
14696  Static
14697 \end_layout
14698
14699 \end_inset
14700
14701 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
14702 \begin_inset Flex Code
14703 status collapsed
14704
14705 \begin_layout Plain Layout
14706 LatexType
14707 \end_layout
14708
14709 \end_inset
14710
14711  is
14712 \begin_inset Newline newline
14713 \end_inset
14714
14715
14716 \begin_inset Flex Code
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720 Environment
14721 \end_layout
14722
14723 \end_inset
14724
14725 ,
14726  
14727 \begin_inset Flex Code
14728 status collapsed
14729
14730 \begin_layout Plain Layout
14731 Item_Environment
14732 \end_layout
14733
14734 \end_inset
14735
14736  or 
14737 \begin_inset Flex Code
14738 status collapsed
14739
14740 \begin_layout Plain Layout
14741 List_Environment
14742 \end_layout
14743
14744 \end_inset
14745
14746 ).
14747  
14748 \begin_inset Flex Code
14749 status collapsed
14750
14751 \begin_layout Plain Layout
14752 No_Label
14753 \end_layout
14754
14755 \end_inset
14756
14757  means 
14758 \begin_inset Quotes eld
14759 \end_inset
14760
14761 nothing
14762 \begin_inset Quotes erd
14763 \end_inset
14764
14765 ,
14766  
14767 \begin_inset Flex Code
14768 status collapsed
14769
14770 \begin_layout Plain Layout
14771 Box
14772 \end_layout
14773
14774 \end_inset
14775
14776  (resp.
14777 \begin_inset space \space{}
14778 \end_inset
14779
14780
14781 \begin_inset Flex Code
14782 status collapsed
14783
14784 \begin_layout Plain Layout
14785 Filled_Box
14786 \end_layout
14787
14788 \end_inset
14789
14790 ) is a white (resp.
14791 \begin_inset space ~
14792 \end_inset
14793
14794 black) square suitable for end of proof markers,
14795  
14796 \begin_inset Flex Code
14797 status collapsed
14798
14799 \begin_layout Plain Layout
14800 Static
14801 \end_layout
14802
14803 \end_inset
14804
14805  is an explicit text string.
14806 \end_layout
14807
14808 \begin_layout Description
14809 \begin_inset Flex Code
14810 status collapsed
14811
14812 \begin_layout Plain Layout
14813 EndLabelString
14814 \end_layout
14815
14816 \end_inset
14817
14818  [
14819 \begin_inset Flex Code
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823 string=""
14824 \end_layout
14825
14826 \end_inset
14827
14828 ] The string used for a label with a 
14829 \begin_inset Flex Code
14830 status collapsed
14831
14832 \begin_layout Plain Layout
14833 Static
14834 \end_layout
14835
14836 \end_inset
14837
14838
14839 \begin_inset Newline newline
14840 \end_inset
14841
14842
14843 \begin_inset Flex Code
14844 status collapsed
14845
14846 \begin_layout Plain Layout
14847 EndLabelType
14848 \end_layout
14849
14850 \end_inset
14851
14852 .
14853  
14854 \end_layout
14855
14856 \begin_layout Description
14857 \begin_inset Flex Code
14858 status collapsed
14859
14860 \begin_layout Plain Layout
14861 Font
14862 \end_layout
14863
14864 \end_inset
14865
14866  The font used for both the text body 
14867 \emph on
14868 and
14869 \emph default
14870  the label.
14871  See 
14872 \begin_inset CommandInset ref
14873 LatexCommand ref
14874 reference "subsec:Font-description"
14875
14876 \end_inset
14877
14878 .
14879  Note that defining this font automatically defines the 
14880 \begin_inset Flex Code
14881 status collapsed
14882
14883 \begin_layout Plain Layout
14884 LabelFont
14885 \end_layout
14886
14887 \end_inset
14888
14889  to the same value.
14890  So you should define this one first if you also want to define 
14891 \begin_inset Flex Code
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895 LabelFont
14896 \end_layout
14897
14898 \end_inset
14899
14900 .
14901 \end_layout
14902
14903 \begin_layout Description
14904 \begin_inset Flex Code
14905 status collapsed
14906
14907 \begin_layout Plain Layout
14908 ForceLocal
14909 \end_layout
14910
14911 \end_inset
14912
14913  [
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918 int=0
14919 \end_layout
14920
14921 \end_inset
14922
14923 ] Used for backporting new styles to stable \SpecialChar LyX
14924  versions.
14925  The first stable version that supports this tag is \SpecialChar LyX
14926  2.1.0.
14927  The argument is a number which may either be 0,
14928  -1 or any value greater than zero.
14929  If the 
14930 \begin_inset Flex Code
14931 status collapsed
14932
14933 \begin_layout Plain Layout
14934 ForceLocal
14935 \end_layout
14936
14937 \end_inset
14938
14939  flag of a style is greater than zero,
14940  it will always be written to the document header.
14941  If a .lyx file is read,
14942  the style definitions from the document header are added to the document class.
14943  Therefore even older \SpecialChar LyX
14944  versions can handle the style.
14945  The argument of 
14946 \begin_inset Flex Code
14947 status collapsed
14948
14949 \begin_layout Plain Layout
14950 ForceLocal
14951 \end_layout
14952
14953 \end_inset
14954
14955  is a version number:
14956  if the style is read,
14957  and the version number is less than the version number of the already existing style in the document class,
14958  the new style is ignored.
14959  If the version number is greater,
14960  the new style replaces the existing style.
14961  A value of -1 means an infinite version number,
14962  i.
14963 \begin_inset space \thinspace{}
14964 \end_inset
14965
14966 e.
14967 \begin_inset space \space{}
14968 \end_inset
14969
14970 the style is always used.
14971 \end_layout
14972
14973 \begin_layout Description
14974 \begin_inset Flex Code
14975 status collapsed
14976
14977 \begin_layout Plain Layout
14978 FreeSpacing
14979 \end_layout
14980
14981 \end_inset
14982
14983  [
14984 \begin_inset Flex Code
14985 status collapsed
14986
14987 \begin_layout Plain Layout
14988
14989 \emph on
14990 0
14991 \end_layout
14992
14993 \end_inset
14994
14995 ,
14996 \begin_inset space \thinspace{}
14997 \end_inset
14998
14999
15000 \begin_inset Flex Code
15001 status collapsed
15002
15003 \begin_layout Plain Layout
15004 1
15005 \end_layout
15006
15007 \end_inset
15008
15009 ] Usually \SpecialChar LyX
15010  does not allow you to insert more than one space between words,
15011  since a space is considered as the separation between two words,
15012  not a character or symbol of its own.
15013  This is a very fine thing but sometimes annoying,
15014  for example,
15015  when typing program code or plain \SpecialChar LaTeX
15016  code.
15017  For this reason,
15018  
15019 \begin_inset Flex Code
15020 status collapsed
15021
15022 \begin_layout Plain Layout
15023 FreeSpacing
15024 \end_layout
15025
15026 \end_inset
15027
15028  can be enabled.
15029  
15030 \change_deleted -495245474 1550490105
15031 Note that 
15032 \change_unchanged
15033 \SpecialChar LyX
15034  will create 
15035 \change_deleted 177693 1654669077
15036 protected
15037 \change_inserted 177693 1654669079
15038 non-breaking
15039 \change_unchanged
15040  
15041 \change_deleted 177693 1654669082
15042 blanks
15043 \change_inserted 177693 1654669082
15044 spaces
15045 \change_unchanged
15046  for the additional blanks when
15047 \change_deleted 34634807 1619626461
15048  in
15049 \change_unchanged
15050  
15051 \change_inserted -495245474 1550490096
15052
15053 \begin_inset Flex Code
15054 status collapsed
15055
15056 \begin_layout Plain Layout
15057
15058 \change_inserted -495245474 1550490089
15059 Passthru 1
15060 \change_unchanged
15061
15062 \end_layout
15063
15064 \end_inset
15065
15066  is not specified.
15067 \change_deleted -495245474 1550490116
15068 another mode than \SpecialChar LaTeX
15069 -mode.
15070
15071 \change_inserted -495245474 1550247760
15072  Note that 
15073 \begin_inset Flex Code
15074 status collapsed
15075
15076 \begin_layout Plain Layout
15077
15078 \change_inserted -495245474 1550247736
15079 FreeSpacing
15080 \change_unchanged
15081
15082 \end_layout
15083
15084 \end_inset
15085
15086  implies 
15087 \begin_inset Flex Code
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091
15092 \change_inserted -495245474 1550247755
15093 KeepEmpty
15094 \change_unchanged
15095
15096 \end_layout
15097
15098 \end_inset
15099
15100 .
15101 \change_unchanged
15102
15103 \end_layout
15104
15105 \begin_layout Description
15106 \begin_inset Flex Code
15107 status collapsed
15108
15109 \begin_layout Plain Layout
15110 HTML*
15111 \end_layout
15112
15113 \end_inset
15114
15115  These tags are used with XHTML output.
15116  See 
15117 \begin_inset CommandInset ref
15118 LatexCommand ref
15119 reference "subsec:Paragraph-Style-XHTML"
15120
15121 \end_inset
15122
15123 .
15124 \end_layout
15125
15126 \begin_layout Description
15127 \begin_inset Flex Code
15128 status collapsed
15129
15130 \begin_layout Plain Layout
15131 InnerTag
15132 \end_layout
15133
15134 \end_inset
15135
15136  [FIXME] (Used only with XML-type formats.)
15137 \end_layout
15138
15139 \begin_layout Description
15140 \begin_inset Flex Code
15141 status collapsed
15142
15143 \begin_layout Plain Layout
15144 InPreamble
15145 \end_layout
15146
15147 \end_inset
15148
15149  [
15150 \begin_inset Flex Code
15151 status collapsed
15152
15153 \begin_layout Plain Layout
15154
15155 \emph on
15156 0
15157 \end_layout
15158
15159 \end_inset
15160
15161 ,
15162 \begin_inset space \thinspace{}
15163 \end_inset
15164
15165
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170 1
15171 \end_layout
15172
15173 \end_inset
15174
15175 ] If 
15176 \begin_inset Flex Code
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180 1
15181 \end_layout
15182
15183 \end_inset
15184
15185 ,
15186  marks the style as to be included in the document preamble and not in the document body.
15187  This is useful for document classes that want such information as the title and author to appear in the preamble.
15188  Note that this works only for styles for which the 
15189 \begin_inset Flex Code
15190 status collapsed
15191
15192 \begin_layout Plain Layout
15193 LatexType
15194 \end_layout
15195
15196 \end_inset
15197
15198  is 
15199 \begin_inset Flex Code
15200 status collapsed
15201
15202 \begin_layout Plain Layout
15203 Command
15204 \end_layout
15205
15206 \end_inset
15207
15208  or 
15209 \begin_inset Flex Code
15210 status collapsed
15211
15212 \begin_layout Plain Layout
15213 Paragraph
15214 \end_layout
15215
15216 \end_inset
15217
15218 .
15219 \end_layout
15220
15221 \begin_layout Description
15222 \begin_inset Flex Code
15223 status collapsed
15224
15225 \begin_layout Plain Layout
15226 InTitle
15227 \end_layout
15228
15229 \end_inset
15230
15231  [
15232 \begin_inset Flex Code
15233 status collapsed
15234
15235 \begin_layout Plain Layout
15236
15237 \emph on
15238 0
15239 \end_layout
15240
15241 \end_inset
15242
15243 ,
15244 \begin_inset space \thinspace{}
15245 \end_inset
15246
15247
15248 \begin_inset Flex Code
15249 status collapsed
15250
15251 \begin_layout Plain Layout
15252 1
15253 \end_layout
15254
15255 \end_inset
15256
15257 ] If 
15258 \begin_inset Flex Code
15259 status collapsed
15260
15261 \begin_layout Plain Layout
15262 1
15263 \end_layout
15264
15265 \end_inset
15266
15267 ,
15268  marks the style as being part of a title block (see also the 
15269 \begin_inset Flex Code
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 TitleLatexType
15274 \end_layout
15275
15276 \end_inset
15277
15278  and 
15279 \begin_inset Flex Code
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283 TitleLatexName
15284 \end_layout
15285
15286 \end_inset
15287
15288  global entries).
15289 \end_layout
15290
15291 \begin_layout Description
15292 \begin_inset Flex Code
15293 status collapsed
15294
15295 \begin_layout Plain Layout
15296 IsAutoNestedBy
15297 \end_layout
15298
15299 \end_inset
15300
15301  Includes a comma-separated list of layouts after which this one should be nested.
15302  Only makes sense with regard to nestable layouts (such as environments).
15303  Must be ended by 
15304 \begin_inset Quotes eld
15305 \end_inset
15306
15307
15308 \begin_inset Flex Code
15309 status collapsed
15310
15311 \begin_layout Plain Layout
15312 EndIsAutoNestedBy
15313 \end_layout
15314
15315 \end_inset
15316
15317
15318 \begin_inset Quotes erd
15319 \end_inset
15320
15321 .
15322  See also 
15323 \begin_inset Flex Code
15324 status collapsed
15325
15326 \begin_layout Plain Layout
15327 AutoNests
15328 \end_layout
15329
15330 \end_inset
15331
15332 .
15333 \end_layout
15334
15335 \begin_layout Description
15336 \begin_inset Flex Code
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340 IsTocCaption
15341 \end_layout
15342
15343 \end_inset
15344
15345  [
15346 \begin_inset Flex Code
15347 status collapsed
15348
15349 \begin_layout Plain Layout
15350
15351 \emph on
15352 0
15353 \end_layout
15354
15355 \end_inset
15356
15357 ,
15358 \begin_inset space \thinspace{}
15359 \end_inset
15360
15361
15362 \begin_inset Flex Code
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 1
15367 \end_layout
15368
15369 \end_inset
15370
15371 ] If this is set to 1 and AddToToc is enabled,
15372  the paragraph adds a summary of its contents in its item in the table of contents.
15373  Otherwise,
15374  only the label,
15375  if it exists,
15376  appears.
15377 \end_layout
15378
15379 \begin_layout Description
15380 \begin_inset Flex Code
15381 status collapsed
15382
15383 \begin_layout Plain Layout
15384 ItemCommand
15385 \end_layout
15386
15387 \end_inset
15388
15389  [
15390 \begin_inset Flex Code
15391 status collapsed
15392
15393 \begin_layout Plain Layout
15394 string="item"
15395 \end_layout
15396
15397 \end_inset
15398
15399 ] The \SpecialChar LaTeX
15400  command sequence declaring an item in a list.
15401  The command is to be defined without the preceding backslash (the default is 
15402 \begin_inset Quotes eld
15403 \end_inset
15404
15405 item
15406 \begin_inset Quotes erd
15407 \end_inset
15408
15409 ,
15410  resulting in 
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415
15416 \backslash
15417 item
15418 \end_layout
15419
15420 \end_inset
15421
15422  in the \SpecialChar LaTeX
15423  output).
15424 \end_layout
15425
15426 \begin_layout Description
15427 \begin_inset Flex Code
15428 status collapsed
15429
15430 \begin_layout Plain Layout
15431 ItemSep
15432 \end_layout
15433
15434 \end_inset
15435
15436  [
15437 \begin_inset Flex Code
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441 float=0
15442 \end_layout
15443
15444 \end_inset
15445
15446 ] This provides extra space between paragraphs that have the same style.
15447  If you put other styles into an environment,
15448  each is separated with the environment's 
15449 \begin_inset Flex Code
15450 status collapsed
15451
15452 \begin_layout Plain Layout
15453 ParSep
15454 \end_layout
15455
15456 \end_inset
15457
15458 .
15459  But the whole items of the environment are additionally separated with this 
15460 \begin_inset Flex Code
15461 status collapsed
15462
15463 \begin_layout Plain Layout
15464 ItemSep
15465 \end_layout
15466
15467 \end_inset
15468
15469 .
15470  Note that this is a
15471 \emph on
15472  multiplier.
15473 \end_layout
15474
15475 \begin_layout Description
15476 \begin_inset Flex Code
15477 status collapsed
15478
15479 \begin_layout Plain Layout
15480 ItemTag
15481 \end_layout
15482
15483 \end_inset
15484
15485  [FIXME] (Used only with XML-type formats.)
15486 \end_layout
15487
15488 \begin_layout Description
15489 \begin_inset Flex Code
15490 status collapsed
15491
15492 \begin_layout Plain Layout
15493 KeepEmpty
15494 \end_layout
15495
15496 \end_inset
15497
15498  [
15499 \begin_inset Flex Code
15500 status collapsed
15501
15502 \begin_layout Plain Layout
15503
15504 \emph on
15505 0
15506 \end_layout
15507
15508 \end_inset
15509
15510 ,
15511 \begin_inset space \thinspace{}
15512 \end_inset
15513
15514
15515 \begin_inset Flex Code
15516 status collapsed
15517
15518 \begin_layout Plain Layout
15519 1
15520 \end_layout
15521
15522 \end_inset
15523
15524 ] Usually \SpecialChar LyX
15525  does not allow you to leave a paragraph empty,
15526  since it would lead to empty \SpecialChar LaTeX
15527  output.
15528  There are some cases where this could be desirable however:
15529  in a letter template,
15530  the required fields can be provided as empty fields,
15531  so that people do not forget them;
15532  in some special classes,
15533  a style can be used as some kind of break,
15534  which does not contain actual text.
15535 \end_layout
15536
15537 \begin_layout Description
15538 \begin_inset Flex Code
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542 LabelBottomsep
15543 \end_layout
15544
15545 \end_inset
15546
15547  [
15548 \begin_inset Flex Code
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 float=0
15553 \end_layout
15554
15555 \end_inset
15556
15557 ] The vertical space between the label and the text body.
15558  Only used for labels that are above the text body (
15559 \begin_inset Flex Code
15560 status collapsed
15561
15562 \begin_layout Plain Layout
15563 Top_Environment
15564 \end_layout
15565
15566 \end_inset
15567
15568  and
15569 \begin_inset Newline newline
15570 \end_inset
15571
15572
15573 \begin_inset Flex Code
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577 Centered_Top_Environment
15578 \end_layout
15579
15580 \end_inset
15581
15582 ).
15583 \end_layout
15584
15585 \begin_layout Description
15586 \begin_inset Flex Code
15587 status collapsed
15588
15589 \begin_layout Plain Layout
15590 LabelCounter
15591 \end_layout
15592
15593 \end_inset
15594
15595  [
15596 \begin_inset Flex Code
15597 status collapsed
15598
15599 \begin_layout Plain Layout
15600 string=""
15601 \end_layout
15602
15603 \end_inset
15604
15605 ] The name of the counter for automatic numbering.
15606  In order to have the counter appear with your label,
15607  you will need to reference it in the 
15608 \begin_inset Flex Code
15609 status collapsed
15610
15611 \begin_layout Plain Layout
15612
15613 \family typewriter
15614 LabelString
15615 \end_layout
15616
15617 \end_inset
15618
15619 .
15620  This will work with 
15621 \begin_inset Flex Code
15622 status collapsed
15623
15624 \begin_layout Plain Layout
15625 LabelType
15626 \end_layout
15627
15628 \end_inset
15629
15630 s,
15631  
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636 Static
15637 \end_layout
15638
15639 \end_inset
15640
15641 ,
15642  
15643 \begin_inset Flex Code
15644 status collapsed
15645
15646 \begin_layout Plain Layout
15647 Above
15648 \end_layout
15649
15650 \end_inset
15651
15652  and 
15653 \begin_inset Flex Code
15654 status collapsed
15655
15656 \begin_layout Plain Layout
15657 Centered
15658 \end_layout
15659
15660 \end_inset
15661
15662 ,
15663  at least.
15664 \begin_inset Newline newline
15665 \end_inset
15666
15667 This 
15668 \emph on
15669 may
15670 \emph default
15671  also be given if 
15672 \begin_inset Flex Code
15673 status collapsed
15674
15675 \begin_layout Plain Layout
15676 LabelType
15677 \end_layout
15678
15679 \end_inset
15680
15681  is 
15682 \begin_inset Flex Code
15683 status collapsed
15684
15685 \begin_layout Plain Layout
15686 Enumerate
15687 \end_layout
15688
15689 \end_inset
15690
15691 ,
15692  though this case is a bit complicated.
15693  Suppose you declare 
15694 \begin_inset Quotes eld
15695 \end_inset
15696
15697
15698 \begin_inset Flex Code
15699 status collapsed
15700
15701 \begin_layout Plain Layout
15702 LabelCounter myenum
15703 \end_layout
15704
15705 \end_inset
15706
15707
15708 \begin_inset Quotes erd
15709 \end_inset
15710
15711 .
15712  Then the actual counters used are 
15713 \begin_inset Flex Code
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717 myenumi
15718 \end_layout
15719
15720 \end_inset
15721
15722 ,
15723  
15724 \begin_inset Flex Code
15725 status collapsed
15726
15727 \begin_layout Plain Layout
15728 myenumii
15729 \end_layout
15730
15731 \end_inset
15732
15733 ,
15734  
15735 \begin_inset Flex Code
15736 status collapsed
15737
15738 \begin_layout Plain Layout
15739 myenumiii
15740 \end_layout
15741
15742 \end_inset
15743
15744  and 
15745 \begin_inset Flex Code
15746 status collapsed
15747
15748 \begin_layout Plain Layout
15749 myenumiv
15750 \end_layout
15751
15752 \end_inset
15753
15754 ,
15755  much as in \SpecialChar LaTeX
15756 .
15757  These counters must all be declared separately.
15758 \begin_inset Newline newline
15759 \end_inset
15760
15761 See 
15762 \begin_inset CommandInset ref
15763 LatexCommand ref
15764 reference "subsec:Counters"
15765
15766 \end_inset
15767
15768  for details on counters.
15769 \end_layout
15770
15771 \begin_layout Description
15772 \begin_inset Flex Code
15773 status collapsed
15774
15775 \begin_layout Plain Layout
15776 LabelFont
15777 \end_layout
15778
15779 \end_inset
15780
15781  The font used for the label.
15782  See 
15783 \begin_inset CommandInset ref
15784 LatexCommand ref
15785 reference "subsec:Font-description"
15786
15787 \end_inset
15788
15789 .
15790 \end_layout
15791
15792 \begin_layout Description
15793 \begin_inset Flex Code
15794 status collapsed
15795
15796 \begin_layout Plain Layout
15797 LabelIndent
15798 \end_layout
15799
15800 \end_inset
15801
15802  [
15803 \begin_inset Flex Code
15804 status collapsed
15805
15806 \begin_layout Plain Layout
15807 string=""
15808 \end_layout
15809
15810 \end_inset
15811
15812 ] Text that indicates how far a label should be indented.
15813 \end_layout
15814
15815 \begin_layout Description
15816 \begin_inset Flex Code
15817 status collapsed
15818
15819 \begin_layout Plain Layout
15820 LabelSep
15821 \end_layout
15822
15823 \end_inset
15824
15825  [
15826 \begin_inset Flex Code
15827 status collapsed
15828
15829 \begin_layout Plain Layout
15830 string=""
15831 \end_layout
15832
15833 \end_inset
15834
15835 ] Text that indicates the amount of horizontal space between the label and the text body.
15836  Only used for labels that are not above the text body.
15837 \end_layout
15838
15839 \begin_layout Description
15840 \begin_inset Flex Code
15841 status collapsed
15842
15843 \begin_layout Plain Layout
15844 LabelString
15845 \end_layout
15846
15847 \end_inset
15848
15849  [
15850 \begin_inset Flex Code
15851 status collapsed
15852
15853 \begin_layout Plain Layout
15854 string=""
15855 \end_layout
15856
15857 \end_inset
15858
15859 ] The string used for the label.
15860  When 
15861 \begin_inset Flex Code
15862 status collapsed
15863
15864 \begin_layout Plain Layout
15865 LabelCounter
15866 \end_layout
15867
15868 \end_inset
15869
15870  is set,
15871  this string can be contain the special formatting commands described in 
15872 \begin_inset CommandInset ref
15873 LatexCommand ref
15874 reference "subsec:Counters"
15875
15876 \end_inset
15877
15878 .
15879 \end_layout
15880
15881 \begin_layout Description
15882 \begin_inset Flex Code
15883 status collapsed
15884
15885 \begin_layout Plain Layout
15886 LabelStringAppendix
15887 \end_layout
15888
15889 \end_inset
15890
15891  [
15892 \begin_inset Flex Code
15893 status collapsed
15894
15895 \begin_layout Plain Layout
15896 string=""
15897 \end_layout
15898
15899 \end_inset
15900
15901 ] This is used inside the appendix instead of
15902 \begin_inset Newline newline
15903 \end_inset
15904
15905
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910 LabelString
15911 \end_layout
15912
15913 \end_inset
15914
15915 .
15916  Note that every 
15917 \begin_inset Flex Code
15918 status collapsed
15919
15920 \begin_layout Plain Layout
15921 LabelString
15922 \end_layout
15923
15924 \end_inset
15925
15926  statement resets
15927 \begin_inset Newline newline
15928 \end_inset
15929
15930
15931 \begin_inset Flex Code
15932 status collapsed
15933
15934 \begin_layout Plain Layout
15935 LabelStringAppendix
15936 \end_layout
15937
15938 \end_inset
15939
15940  too.
15941 \end_layout
15942
15943 \begin_layout Description
15944 \begin_inset Flex Code
15945 status collapsed
15946
15947 \begin_layout Plain Layout
15948 LabelTag
15949 \end_layout
15950
15951 \end_inset
15952
15953  [FIXME] (Used only with XML-type formats.)
15954 \end_layout
15955
15956 \begin_layout Description
15957 \begin_inset Flex Code
15958 status collapsed
15959
15960 \begin_layout Plain Layout
15961 LabelType
15962 \end_layout
15963
15964 \end_inset
15965
15966  [
15967 \begin_inset Flex Code
15968 status collapsed
15969
15970 \begin_layout Plain Layout
15971
15972 \emph on
15973 No_Label
15974 \emph default
15975 ,
15976  Manual,
15977  Static,
15978  Above,
15979  
15980 \begin_inset Newline newline
15981 \end_inset
15982
15983 Centered,
15984  Sensitive,
15985  Enumerate,
15986 \begin_inset Newline newline
15987 \end_inset
15988
15989 Itemize,
15990  Bibliography
15991 \end_layout
15992
15993 \end_inset
15994
15995 ]
15996 \end_layout
15997
15998 \begin_deeper
15999 \begin_layout Description
16000 \begin_inset Flex Code
16001 status collapsed
16002
16003 \begin_layout Plain Layout
16004 Manual
16005 \end_layout
16006
16007 \end_inset
16008
16009  means the label is the very first word (up to the first real blank).
16010  Use 
16011 \change_deleted 177693 1654669087
16012 protected
16013 \change_inserted 177693 1654669089
16014 non-breaking
16015 \change_unchanged
16016  spaces if you want more than one word as the label.
16017  
16018 \end_layout
16019
16020 \begin_layout Description
16021 \begin_inset Flex Code
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025 Static
16026 \end_layout
16027
16028 \end_inset
16029
16030  means the label is simply what is declared as 
16031 \begin_inset Flex Code
16032 status collapsed
16033
16034 \begin_layout Plain Layout
16035 LabelString
16036 \end_layout
16037
16038 \end_inset
16039
16040 .
16041  This will be displayed 
16042 \begin_inset Quotes eld
16043 \end_inset
16044
16045 inline
16046 \begin_inset Quotes erd
16047 \end_inset
16048
16049 ,
16050  at the beginning of the paragraph.
16051  If the 
16052 \begin_inset Flex Code
16053 status collapsed
16054
16055 \begin_layout Plain Layout
16056 LatexType
16057 \end_layout
16058
16059 \end_inset
16060
16061  is 
16062 \begin_inset Flex Code
16063 status collapsed
16064
16065 \begin_layout Plain Layout
16066 Environment
16067 \end_layout
16068
16069 \end_inset
16070
16071 ,
16072  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
16073 \begin_inset Flex Code
16074 status collapsed
16075
16076 \begin_layout Plain Layout
16077 Style
16078 \end_layout
16079
16080 \end_inset
16081
16082 .
16083 \end_layout
16084
16085 \begin_layout Description
16086 \begin_inset Flex Code
16087 status collapsed
16088
16089 \begin_layout Plain Layout
16090 Above
16091 \end_layout
16092
16093 \end_inset
16094
16095
16096 \begin_inset space ~
16097 \end_inset
16098
16099 and
16100 \begin_inset space ~
16101 \end_inset
16102
16103
16104 \begin_inset Flex Code
16105 status collapsed
16106
16107 \begin_layout Plain Layout
16108 Centered
16109 \end_layout
16110
16111 \end_inset
16112
16113  are special cases of 
16114 \begin_inset Flex Code
16115 status collapsed
16116
16117 \begin_layout Plain Layout
16118 Static
16119 \end_layout
16120
16121 \end_inset
16122
16123 .
16124  The label will be printed above the paragraph either at the beginning of the line or centered.
16125 \end_layout
16126
16127 \begin_layout Description
16128 \begin_inset Flex Code
16129 status collapsed
16130
16131 \begin_layout Plain Layout
16132 Sensitive
16133 \end_layout
16134
16135 \end_inset
16136
16137  is a special case for the caption-labels 
16138 \begin_inset Quotes eld
16139 \end_inset
16140
16141 Figure
16142 \begin_inset Quotes erd
16143 \end_inset
16144
16145  and 
16146 \begin_inset Quotes eld
16147 \end_inset
16148
16149 Table
16150 \begin_inset Quotes erd
16151 \end_inset
16152
16153 .
16154 \begin_inset Newline newline
16155 \end_inset
16156
16157
16158 \begin_inset Flex Code
16159 status collapsed
16160
16161 \begin_layout Plain Layout
16162 Sensitive
16163 \end_layout
16164
16165 \end_inset
16166
16167  means the (hardcoded) label string depends on the kind of float:
16168  It is hardcoded to be `FloatType N',
16169  where N is the value of the counter associated with the float.
16170  For the case that a caption is inserted outside of a float the 
16171 \begin_inset Flex Code
16172 status collapsed
16173
16174 \begin_layout Plain Layout
16175 LabelString
16176 \end_layout
16177
16178 \end_inset
16179
16180  will appear as 
16181 \begin_inset Quotes eld
16182 \end_inset
16183
16184 Senseless!
16185 \begin_inset Quotes erd
16186 \end_inset
16187
16188 .
16189 \end_layout
16190
16191 \begin_layout Description
16192 \begin_inset Flex Code
16193 status collapsed
16194
16195 \begin_layout Plain Layout
16196 Enumerate
16197 \end_layout
16198
16199 \end_inset
16200
16201  produces the usual sort of enumeration labels.
16202  The number type needs to be set in the 
16203 \family sans
16204 Counter
16205 \family default
16206 ,
16207  see 
16208 \begin_inset CommandInset ref
16209 LatexCommand ref
16210 reference "subsec:Counters"
16211
16212 \end_inset
16213
16214 .
16215 \end_layout
16216
16217 \begin_layout Description
16218 \begin_inset Flex Code
16219 status collapsed
16220
16221 \begin_layout Plain Layout
16222 Itemize
16223 \end_layout
16224
16225 \end_inset
16226
16227  produces various bullets at the different levels.
16228  The bullet types displayed can be set via 
16229 \begin_inset Flex Noun
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 Document\SpecialChar menuseparator
16234 Settings\SpecialChar menuseparator
16235 Bullets
16236 \end_layout
16237
16238 \end_inset
16239
16240 .
16241 \end_layout
16242
16243 \begin_layout Description
16244 \begin_inset Flex Code
16245 status collapsed
16246
16247 \begin_layout Plain Layout
16248 Bibliography
16249 \end_layout
16250
16251 \end_inset
16252
16253  should be used only with 
16254 \begin_inset Flex Code
16255 status collapsed
16256
16257 \begin_layout Plain Layout
16258 LatexType BibEnvironment
16259 \end_layout
16260
16261 \end_inset
16262
16263 .
16264 \end_layout
16265
16266 \end_deeper
16267 \begin_layout Description
16268 \begin_inset Flex Code
16269 status collapsed
16270
16271 \begin_layout Plain Layout
16272 LangPreamble
16273 \end_layout
16274
16275 \end_inset
16276
16277  Note that this will completely override any prior 
16278 \begin_inset Flex Code
16279 status collapsed
16280
16281 \begin_layout Plain Layout
16282 LangPreamble
16283 \end_layout
16284
16285 \end_inset
16286
16287  declaration for this style.
16288  Must end with 
16289 \begin_inset Quotes eld
16290 \end_inset
16291
16292
16293 \begin_inset Flex Code
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 EndLangPreamble
16298 \end_layout
16299
16300 \end_inset
16301
16302
16303 \begin_inset Quotes erd
16304 \end_inset
16305
16306 .
16307  See 
16308 \begin_inset CommandInset ref
16309 LatexCommand ref
16310 reference "subsec:I18n"
16311
16312 \end_inset
16313
16314  for details on its use.
16315 \end_layout
16316
16317 \begin_layout Description
16318 \begin_inset Flex Code
16319 status collapsed
16320
16321 \begin_layout Plain Layout
16322 LatexName
16323 \end_layout
16324
16325 \end_inset
16326
16327  [
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 <name>
16333 \end_layout
16334
16335 \end_inset
16336
16337 ] The name of the corresponding \SpecialChar LaTeX
16338  stuff.
16339  Either the environment or command name.
16340 \end_layout
16341
16342 \begin_layout Description
16343 \begin_inset Flex Code
16344 status collapsed
16345
16346 \begin_layout Plain Layout
16347 LatexParam
16348 \end_layout
16349
16350 \end_inset
16351
16352  [
16353 \begin_inset Flex Code
16354 status collapsed
16355
16356 \begin_layout Plain Layout
16357 <parameter>
16358 \end_layout
16359
16360 \end_inset
16361
16362 ] An optional parameter for the corresponding 
16363 \begin_inset Flex Code
16364 status collapsed
16365
16366 \begin_layout Plain Layout
16367 LatexName
16368 \end_layout
16369
16370 \end_inset
16371
16372  stuff.
16373  This parameter cannot be changed from within \SpecialChar LyX
16374  (use 
16375 \begin_inset Flex Code
16376 status collapsed
16377
16378 \begin_layout Plain Layout
16379 Argument
16380 \end_layout
16381
16382 \end_inset
16383
16384  for customizable parameters).
16385  This will be output as is after all \SpecialChar LaTeX
16386  
16387 \begin_inset Flex Code
16388 status collapsed
16389
16390 \begin_layout Plain Layout
16391 Argument
16392 \end_layout
16393
16394 \end_inset
16395
16396 s.
16397 \end_layout
16398
16399 \begin_layout Description
16400 \begin_inset Flex Code
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404 LatexType
16405 \end_layout
16406
16407 \end_inset
16408
16409  [
16410 \begin_inset Flex Code
16411 status collapsed
16412
16413 \begin_layout Plain Layout
16414
16415 \emph on
16416 Paragraph
16417 \emph default
16418 ,
16419  Command,
16420  Environment,
16421  Item_Environment,
16422 \begin_inset Newline newline
16423 \end_inset
16424
16425 List_Environment,
16426  Bib_Environment
16427 \end_layout
16428
16429 \end_inset
16430
16431 ] How the style should be translated into \SpecialChar LaTeX
16432 .
16433 \begin_inset Foot
16434 status collapsed
16435
16436 \begin_layout Plain Layout
16437 \begin_inset Flex Code
16438 status collapsed
16439
16440 \begin_layout Plain Layout
16441 LatexType
16442 \end_layout
16443
16444 \end_inset
16445
16446  is perhaps a bit misleading,
16447  since these rules apply to SGML classes,
16448  too.
16449  Visit the SGML class files for specific examples.
16450 \end_layout
16451
16452 \end_inset
16453
16454
16455 \end_layout
16456
16457 \begin_deeper
16458 \begin_layout Description
16459 \begin_inset Flex Code
16460 status collapsed
16461
16462 \begin_layout Plain Layout
16463 Paragraph
16464 \end_layout
16465
16466 \end_inset
16467
16468  means nothing special.
16469 \end_layout
16470
16471 \begin_layout Description
16472 \begin_inset Flex Code
16473 status collapsed
16474
16475 \begin_layout Plain Layout
16476 Command
16477 \end_layout
16478
16479 \end_inset
16480
16481  means 
16482 \begin_inset Flex Code
16483 status collapsed
16484
16485 \begin_layout Plain Layout
16486
16487 \backslash
16488
16489 \emph on
16490 LatexName
16491 \emph default
16492 {\SpecialChar ldots
16493 }
16494 \end_layout
16495
16496 \end_inset
16497
16498 .
16499 \end_layout
16500
16501 \begin_layout Description
16502 \begin_inset Flex Code
16503 status collapsed
16504
16505 \begin_layout Plain Layout
16506 Environment
16507 \end_layout
16508
16509 \end_inset
16510
16511  means 
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516
16517 \backslash
16518 begin{
16519 \emph on
16520 LatexName
16521 \emph default
16522 }\SpecialChar ldots
16523
16524 \backslash
16525 end{
16526 \emph on
16527 LatexName
16528 \emph default
16529 }
16530 \end_layout
16531
16532 \end_inset
16533
16534 .
16535  
16536 \end_layout
16537
16538 \begin_layout Description
16539 \begin_inset Flex Code
16540 status collapsed
16541
16542 \begin_layout Plain Layout
16543 Item_Environment
16544 \end_layout
16545
16546 \end_inset
16547
16548  is the same as 
16549 \begin_inset Flex Code
16550 status collapsed
16551
16552 \begin_layout Plain Layout
16553 Environment
16554 \end_layout
16555
16556 \end_inset
16557
16558 ,
16559  except that an 
16560 \begin_inset Flex Code
16561 status collapsed
16562
16563 \begin_layout Plain Layout
16564
16565 \backslash
16566 item
16567 \end_layout
16568
16569 \end_inset
16570
16571  is generated for each paragraph of this environment.
16572  
16573 \end_layout
16574
16575 \begin_layout Description
16576 \begin_inset Flex Code
16577 status collapsed
16578
16579 \begin_layout Plain Layout
16580 List_Environment
16581 \end_layout
16582
16583 \end_inset
16584
16585  is the same as 
16586 \begin_inset Flex Code
16587 status collapsed
16588
16589 \begin_layout Plain Layout
16590 Item_Environment
16591 \end_layout
16592
16593 \end_inset
16594
16595 ,
16596  except that
16597 \begin_inset Newline newline
16598 \end_inset
16599
16600
16601 \begin_inset Flex Code
16602 status collapsed
16603
16604 \begin_layout Plain Layout
16605 LabelWidthString
16606 \end_layout
16607
16608 \end_inset
16609
16610  is passed as an argument to the environment.
16611 \begin_inset Newline newline
16612 \end_inset
16613
16614
16615 \begin_inset Flex Code
16616 status collapsed
16617
16618 \begin_layout Plain Layout
16619 LabelWidthString
16620 \end_layout
16621
16622 \end_inset
16623
16624  can be defined in the 
16625 \begin_inset Flex Noun
16626 status collapsed
16627
16628 \begin_layout Plain Layout
16629 Edit\SpecialChar menuseparator
16630 Paragraph
16631 \begin_inset space ~
16632 \end_inset
16633
16634 settings
16635 \end_layout
16636
16637 \end_inset
16638
16639  dialog.
16640 \end_layout
16641
16642 \begin_layout Description
16643 \begin_inset Flex Code
16644 status collapsed
16645
16646 \begin_layout Plain Layout
16647 Bib_Environment
16648 \end_layout
16649
16650 \end_inset
16651
16652  is like 
16653 \begin_inset Flex Code
16654 status collapsed
16655
16656 \begin_layout Plain Layout
16657 Environment
16658 \end_layout
16659
16660 \end_inset
16661
16662  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
16663 \begin_inset Newline newline
16664 \end_inset
16665
16666
16667 \begin_inset Flex Code
16668 status collapsed
16669
16670 \begin_layout Plain Layout
16671
16672 \backslash
16673 begin{thebibliography}{99}
16674 \end_layout
16675
16676 \end_inset
16677
16678 .
16679  It is therefore only useful for bibliography environments.
16680  The default longest label 
16681 \begin_inset Quotes eld
16682 \end_inset
16683
16684 99
16685 \begin_inset Quotes erd
16686 \end_inset
16687
16688  can be changed by the user in the paragraph settings of a bibliography item.
16689 \end_layout
16690
16691 \begin_layout Standard
16692 Putting the last few things together,
16693  the \SpecialChar LaTeX
16694  output will be either:
16695  
16696 \end_layout
16697
16698 \begin_layout LyX-Code
16699
16700 \backslash
16701 LatexName[LatexParam]{\SpecialChar ldots
16702 }
16703 \end_layout
16704
16705 \begin_layout Standard
16706 or:
16707  
16708 \end_layout
16709
16710 \begin_layout LyX-Code
16711
16712 \backslash
16713 begin{LatexName}[LatexParam] \SpecialChar ldots
16714  
16715 \backslash
16716 end{LatexName}.
16717 \end_layout
16718
16719 \begin_layout Standard
16720 depending upon the \SpecialChar LaTeX
16721  type.
16722 \end_layout
16723
16724 \end_deeper
16725 \begin_layout Description
16726 \begin_inset Flex Code
16727 status collapsed
16728
16729 \begin_layout Plain Layout
16730 LeftDelim
16731 \end_layout
16732
16733 \end_inset
16734
16735  [
16736 \begin_inset Flex Code
16737 status collapsed
16738
16739 \begin_layout Plain Layout
16740 string
16741 \end_layout
16742
16743 \end_inset
16744
16745 ] A string that is put at the beginning of the style content.
16746  A line break in the output can be indicated by 
16747 \begin_inset Flex Code
16748 status collapsed
16749
16750 \begin_layout Plain Layout
16751 <br/>
16752 \end_layout
16753
16754 \end_inset
16755
16756 .
16757 \end_layout
16758
16759 \begin_layout Description
16760 \begin_inset Flex Code
16761 status collapsed
16762
16763 \begin_layout Plain Layout
16764 LeftMargin
16765 \end_layout
16766
16767 \end_inset
16768
16769  [
16770 \begin_inset Flex Code
16771 status collapsed
16772
16773 \begin_layout Plain Layout
16774 string=""
16775 \end_layout
16776
16777 \end_inset
16778
16779 ] If you put styles into environments,
16780  the different 
16781 \begin_inset Flex Code
16782 status collapsed
16783
16784 \begin_layout Plain Layout
16785 LeftMargin
16786 \end_layout
16787
16788 \end_inset
16789
16790  are not simply added,
16791  but added with a factor 
16792 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16793 \end_inset
16794
16795 .
16796  Note that this parameter is also used when 
16797 \begin_inset Flex Code
16798 status collapsed
16799
16800 \begin_layout Plain Layout
16801 Margin
16802 \end_layout
16803
16804 \end_inset
16805
16806  is defined as 
16807 \begin_inset Flex Code
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811 Manual
16812 \end_layout
16813
16814 \end_inset
16815
16816  or 
16817 \begin_inset Flex Code
16818 status collapsed
16819
16820 \begin_layout Plain Layout
16821 Dynamic
16822 \end_layout
16823
16824 \end_inset
16825
16826 .
16827  Then it is added to the manual or dynamic margin.
16828 \begin_inset Newline newline
16829 \end_inset
16830
16831 For example 
16832 \begin_inset Quotes eld
16833 \end_inset
16834
16835
16836 \begin_inset Flex Code
16837 status collapsed
16838
16839 \begin_layout Plain Layout
16840 MM
16841 \end_layout
16842
16843 \end_inset
16844
16845
16846 \begin_inset Quotes erd
16847 \end_inset
16848
16849  means that the paragraph is indented with the width of 
16850 \begin_inset Quotes eld
16851 \end_inset
16852
16853
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 MM
16859 \end_layout
16860
16861 \end_inset
16862
16863
16864 \begin_inset Quotes erd
16865 \end_inset
16866
16867  in the normal font.
16868  You can get a negative width by prefixing the string with 
16869 \begin_inset Quotes eld
16870 \end_inset
16871
16872
16873 \begin_inset Flex Code
16874 status collapsed
16875
16876 \begin_layout Plain Layout
16877 -
16878 \end_layout
16879
16880 \end_inset
16881
16882
16883 \begin_inset Quotes erd
16884 \end_inset
16885
16886 .
16887  This way was chosen so that the look is the same with each used screen font.
16888 \end_layout
16889
16890 \begin_layout Description
16891 \begin_inset Flex Code
16892 status collapsed
16893
16894 \begin_layout Plain Layout
16895 Margin
16896 \end_layout
16897
16898 \end_inset
16899
16900  [
16901 \begin_inset Flex Code
16902 status collapsed
16903
16904 \begin_layout Plain Layout
16905
16906 \emph on
16907 Static
16908 \emph default
16909 ,
16910  Manual,
16911  Dynamic,
16912  First_Dynamic,
16913  Right_Address_Box
16914 \end_layout
16915
16916 \end_inset
16917
16918
16919 \begin_inset Newline newline
16920 \end_inset
16921
16922 The kind of margin that the style has on the left side.
16923 \end_layout
16924
16925 \begin_deeper
16926 \begin_layout Description
16927 \begin_inset Flex Code
16928 status collapsed
16929
16930 \begin_layout Plain Layout
16931 Static
16932 \end_layout
16933
16934 \end_inset
16935
16936  just means a fixed margin.
16937 \end_layout
16938
16939 \begin_layout Description
16940 \begin_inset Flex Code
16941 status collapsed
16942
16943 \begin_layout Plain Layout
16944 Manual
16945 \end_layout
16946
16947 \end_inset
16948
16949  means that the left margin depends on the string entered in the 
16950 \begin_inset Flex Noun
16951 status collapsed
16952
16953 \begin_layout Plain Layout
16954 Edit\SpecialChar menuseparator
16955 Paragraph
16956 \begin_inset space ~
16957 \end_inset
16958
16959 Settings
16960 \end_layout
16961
16962 \end_inset
16963
16964  dialog.
16965  This is used to typeset nice lists without tabulators.
16966 \end_layout
16967
16968 \begin_layout Description
16969 \begin_inset Flex Code
16970 status collapsed
16971
16972 \begin_layout Plain Layout
16973 Dynamic
16974 \end_layout
16975
16976 \end_inset
16977
16978  means that the margin depends on the size of the label.
16979  This is used for automatic enumerated headlines.
16980  It is obvious that the headline 
16981 \begin_inset Quotes eld
16982 \end_inset
16983
16984 5.4.3.2.1 Very long headline
16985 \begin_inset Quotes erd
16986 \end_inset
16987
16988  must have a wider left margin (as wide as 
16989 \begin_inset Quotes eld
16990 \end_inset
16991
16992 5.4.3.2.1
16993 \begin_inset Quotes erd
16994 \end_inset
16995
16996  plus the space) than 
16997 \begin_inset Quotes eld
16998 \end_inset
16999
17000 3.2 Very long headline
17001 \begin_inset Quotes erd
17002 \end_inset
17003
17004 ,
17005  even if standard 
17006 \begin_inset Quotes eld
17007 \end_inset
17008
17009 word processors
17010 \begin_inset Quotes erd
17011 \end_inset
17012
17013  are not able to do this.
17014 \end_layout
17015
17016 \begin_layout Description
17017 \begin_inset Flex Code
17018 status collapsed
17019
17020 \begin_layout Plain Layout
17021 First_Dynamic
17022 \end_layout
17023
17024 \end_inset
17025
17026  is similar,
17027  but only the very first row of the paragraph is dynamic,
17028  while the others are static;
17029  this is used,
17030  for example,
17031  for descriptions.
17032 \end_layout
17033
17034 \begin_layout Description
17035 \begin_inset Flex Code
17036 status collapsed
17037
17038 \begin_layout Plain Layout
17039 Right_Address_Box
17040 \end_layout
17041
17042 \end_inset
17043
17044  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
17045  This is used to typeset an address on the right edge of the page.
17046 \end_layout
17047
17048 \end_deeper
17049 \begin_layout Description
17050 \begin_inset Flex Code
17051 status collapsed
17052
17053 \begin_layout Plain Layout
17054 NeedProtect
17055 \end_layout
17056
17057 \end_inset
17058
17059  [
17060 \begin_inset Flex Code
17061 status collapsed
17062
17063 \begin_layout Plain Layout
17064
17065 \emph on
17066 0
17067 \end_layout
17068
17069 \end_inset
17070
17071 ,
17072 \begin_inset space \thinspace{}
17073 \end_inset
17074
17075
17076 \begin_inset Flex Code
17077 status collapsed
17078
17079 \begin_layout Plain Layout
17080 1
17081 \end_layout
17082
17083 \end_inset
17084
17085 ] Whether fragile commands in this style should be 
17086 \begin_inset Flex Code
17087 status collapsed
17088
17089 \begin_layout Plain Layout
17090
17091 \backslash
17092 protect
17093 \end_layout
17094
17095 \end_inset
17096
17097 'ed.
17098  (Note:
17099  This is 
17100 \emph on
17101 not
17102 \emph default
17103  whether this command should itself be protected.)
17104 \change_inserted -712698321 1523696949
17105
17106 \end_layout
17107
17108 \begin_layout Description
17109
17110 \change_inserted -712698321 1552395557
17111 \begin_inset Flex Code
17112 status collapsed
17113
17114 \begin_layout Plain Layout
17115
17116 \change_inserted -712698321 1523696950
17117 NeedCProtect
17118 \change_unchanged
17119
17120 \end_layout
17121
17122 \end_inset
17123
17124  [
17125 \begin_inset Flex Code
17126 status collapsed
17127
17128 \begin_layout Plain Layout
17129
17130 \change_inserted -712698321 1523696950
17131
17132 \emph on
17133 0
17134 \change_unchanged
17135
17136 \end_layout
17137
17138 \end_inset
17139
17140 ,
17141 \begin_inset space \thinspace{}
17142 \end_inset
17143
17144
17145 \begin_inset Flex Code
17146 status collapsed
17147
17148 \begin_layout Plain Layout
17149
17150 \change_inserted -712698321 1523696950
17151 1
17152 \change_unchanged
17153
17154 \end_layout
17155
17156 \end_inset
17157
17158 ] This causes macros that contain this layout to be protected with 
17159 \begin_inset Flex Code
17160 status collapsed
17161
17162 \begin_layout Plain Layout
17163
17164 \change_inserted -712698321 1523696950
17165
17166 \backslash
17167 cprotect
17168 \change_unchanged
17169
17170 \end_layout
17171
17172 \end_inset
17173
17174  (cf.
17175  package 
17176 \family sans
17177 cprotect
17178 \family default
17179 ) if necessary and thus allows (some) verbatim stuff in macros.
17180 \end_layout
17181
17182 \begin_layout Description
17183
17184 \change_inserted -712698321 1552395844
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189
17190 \change_inserted -712698321 1552395561
17191 NeedMBoxProtect
17192 \change_unchanged
17193
17194 \end_layout
17195
17196 \end_inset
17197
17198  [
17199 \begin_inset Flex Code
17200 status collapsed
17201
17202 \begin_layout Plain Layout
17203
17204 \change_inserted -712698321 1552395557
17205
17206 \emph on
17207 0
17208 \change_unchanged
17209
17210 \end_layout
17211
17212 \end_inset
17213
17214 ,
17215 \begin_inset space \thinspace{}
17216 \end_inset
17217
17218
17219 \begin_inset Flex Code
17220 status collapsed
17221
17222 \begin_layout Plain Layout
17223
17224 \change_inserted -712698321 1552395557
17225 1
17226 \change_unchanged
17227
17228 \end_layout
17229
17230 \end_inset
17231
17232 ] Whether specific commands in this style (such as 
17233 \begin_inset Flex Code
17234 status collapsed
17235
17236 \begin_layout Plain Layout
17237
17238 \change_inserted -712698321 1552395655
17239
17240 \backslash
17241 cite
17242 \change_unchanged
17243
17244 \end_layout
17245
17246 \end_inset
17247
17248  and 
17249 \begin_inset Flex Code
17250 status collapsed
17251
17252 \begin_layout Plain Layout
17253
17254 \change_inserted -712698321 1552395661
17255
17256 \backslash
17257 ref
17258 \change_unchanged
17259
17260 \end_layout
17261
17262 \end_inset
17263
17264 ) should be protected in an 
17265 \begin_inset Flex Code
17266 status collapsed
17267
17268 \begin_layout Plain Layout
17269
17270 \change_inserted -712698321 1552395631
17271
17272 \backslash
17273 mbox
17274 \change_unchanged
17275
17276 \end_layout
17277
17278 \end_inset
17279
17280 .
17281  This is particularly needed for styles that draw on 
17282 \family sans
17283 ulem
17284 \family default
17285  or 
17286 \family sans
17287 soul
17288 \family default
17289  commands which parse their content in complex ways.
17290 \change_unchanged
17291
17292 \end_layout
17293
17294 \begin_layout Description
17295 \begin_inset Flex Code
17296 status collapsed
17297
17298 \begin_layout Plain Layout
17299 Newline
17300 \end_layout
17301
17302 \end_inset
17303
17304  [
17305 \begin_inset Flex Code
17306 status collapsed
17307
17308 \begin_layout Plain Layout
17309 0
17310 \end_layout
17311
17312 \end_inset
17313
17314 ,
17315 \begin_inset space \thinspace{}
17316 \end_inset
17317
17318
17319 \begin_inset Flex Code
17320 status collapsed
17321
17322 \begin_layout Plain Layout
17323
17324 \emph on
17325 1
17326 \end_layout
17327
17328 \end_inset
17329
17330 ] Whether newlines are translated into \SpecialChar LaTeX
17331  newlines (
17332 \begin_inset Flex Code
17333 status collapsed
17334
17335 \begin_layout Plain Layout
17336
17337 \backslash
17338
17339 \backslash
17340
17341 \end_layout
17342
17343 \end_inset
17344
17345 ) or not.
17346  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
17347  editing inside \SpecialChar LyX
17348 .
17349 \end_layout
17350
17351 \begin_layout Description
17352 \begin_inset Flex Code
17353 status collapsed
17354
17355 \begin_layout Plain Layout
17356 NextNoIndent
17357 \end_layout
17358
17359 \end_inset
17360
17361  [
17362 \begin_inset Flex Code
17363 status collapsed
17364
17365 \begin_layout Plain Layout
17366
17367 \emph on
17368 0
17369 \end_layout
17370
17371 \end_inset
17372
17373 ,
17374 \begin_inset space \thinspace{}
17375 \end_inset
17376
17377
17378 \begin_inset Flex Code
17379 status collapsed
17380
17381 \begin_layout Plain Layout
17382 1
17383 \end_layout
17384
17385 \end_inset
17386
17387 ] If set to true,
17388  and if 
17389 \begin_inset Flex Code
17390 status collapsed
17391
17392 \begin_layout Plain Layout
17393 DefaultStyle
17394 \end_layout
17395
17396 \end_inset
17397
17398  (usually 
17399 \begin_inset Flex Code
17400 status collapsed
17401
17402 \begin_layout Plain Layout
17403 Standard
17404 \end_layout
17405
17406 \end_inset
17407
17408 ) paragraphs are being indented,
17409  then the indentation of such a paragraph following one of this type will be suppressed.
17410  (So this will not affect the display of non-default paragraphs.)
17411 \end_layout
17412
17413 \begin_layout Description
17414 \begin_inset Flex Code
17415 status collapsed
17416
17417 \begin_layout Plain Layout
17418 ObsoletedBy
17419 \end_layout
17420
17421 \end_inset
17422
17423  [
17424 \begin_inset Flex Code
17425 status collapsed
17426
17427 \begin_layout Plain Layout
17428 <name>
17429 \end_layout
17430
17431 \end_inset
17432
17433 ] Name of a style that has replaced this style.
17434  This is used to rename a style,
17435  while keeping backward compatibility.
17436 \end_layout
17437
17438 \begin_layout Description
17439 \begin_inset Flex Code
17440 status collapsed
17441
17442 \begin_layout Plain Layout
17443 ParagraphGroup
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 1
17468 \end_layout
17469
17470 \end_inset
17471
17472 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
17473  This has the effect that the 
17474 \begin_inset Flex Code
17475 status collapsed
17476
17477 \begin_layout Plain Layout
17478 GuiLabel
17479 \end_layout
17480
17481 \end_inset
17482
17483  is only printed once before such a group.
17484  By default,
17485  this is true for 
17486 \begin_inset Flex Code
17487 status collapsed
17488
17489 \begin_layout Plain Layout
17490 LaTeXType
17491 \end_layout
17492
17493 \end_inset
17494
17495  
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500 Environment
17501 \end_layout
17502
17503 \end_inset
17504
17505  and 
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 Bib_Environment
17511 \end_layout
17512
17513 \end_inset
17514
17515  and false for all other types.
17516 \end_layout
17517
17518 \begin_layout Description
17519 \begin_inset Flex Code
17520 status collapsed
17521
17522 \begin_layout Plain Layout
17523 ParbreakIsNewline
17524 \end_layout
17525
17526 \end_inset
17527
17528  [
17529 \begin_inset Flex Code
17530 status collapsed
17531
17532 \begin_layout Plain Layout
17533
17534 \emph on
17535 0
17536 \end_layout
17537
17538 \end_inset
17539
17540 ,
17541 \begin_inset space \thinspace{}
17542 \end_inset
17543
17544
17545 \begin_inset Flex Code
17546 status collapsed
17547
17548 \begin_layout Plain Layout
17549 1
17550 \end_layout
17551
17552 \end_inset
17553
17554 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17555  output,
17556  but only by a line break;
17557  together with 
17558 \begin_inset Flex Code
17559 status collapsed
17560
17561 \begin_layout Plain Layout
17562 PassThru 1
17563 \end_layout
17564
17565 \end_inset
17566
17567 ,
17568  this allows to emulate a plain text editor (like the ERT inset).
17569 \end_layout
17570
17571 \begin_layout Description
17572 \begin_inset Flex Code
17573 status collapsed
17574
17575 \begin_layout Plain Layout
17576 ParIndent
17577 \end_layout
17578
17579 \end_inset
17580
17581  [
17582 \begin_inset Flex Code
17583 status collapsed
17584
17585 \begin_layout Plain Layout
17586 string=""
17587 \end_layout
17588
17589 \end_inset
17590
17591 ] The indent of the very first line of a paragraph.
17592  The
17593 \begin_inset Newline newline
17594 \end_inset
17595
17596
17597 \begin_inset Flex Code
17598 status collapsed
17599
17600 \begin_layout Plain Layout
17601 Parindent
17602 \end_layout
17603
17604 \end_inset
17605
17606  will be fixed for a certain style.
17607  The exception is the default style,
17608  since the indentation for these paragraphs can be prohibited with 
17609 \begin_inset Flex Code
17610 status collapsed
17611
17612 \begin_layout Plain Layout
17613 NextNoIndent
17614 \end_layout
17615
17616 \end_inset
17617
17618 .
17619  Also,
17620  
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 Standard
17626 \end_layout
17627
17628 \end_inset
17629
17630  style paragraphs inside environments use the 
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635 Parindent
17636 \end_layout
17637
17638 \end_inset
17639
17640  of the environment,
17641  not their native one.
17642  For example,
17643  
17644 \begin_inset Flex Code
17645 status collapsed
17646
17647 \begin_layout Plain Layout
17648 Standard
17649 \end_layout
17650
17651 \end_inset
17652
17653  paragraphs inside an enumeration are not indented.
17654 \end_layout
17655
17656 \begin_layout Description
17657 \begin_inset Flex Code
17658 status collapsed
17659
17660 \begin_layout Plain Layout
17661 ParSep
17662 \end_layout
17663
17664 \end_inset
17665
17666  [
17667 \begin_inset Flex Code
17668 status collapsed
17669
17670 \begin_layout Plain Layout
17671 float=0
17672 \end_layout
17673
17674 \end_inset
17675
17676 ] The vertical space between two paragraphs of this style.
17677 \end_layout
17678
17679 \begin_layout Description
17680 \begin_inset Flex Code
17681 status collapsed
17682
17683 \begin_layout Plain Layout
17684 Parskip
17685 \end_layout
17686
17687 \end_inset
17688
17689  [
17690 \begin_inset Flex Code
17691 status collapsed
17692
17693 \begin_layout Plain Layout
17694 float=0
17695 \end_layout
17696
17697 \end_inset
17698
17699 ] \SpecialChar LyX
17700  allows the user to choose either 
17701 \begin_inset Quotes eld
17702 \end_inset
17703
17704 indent
17705 \begin_inset Quotes erd
17706 \end_inset
17707
17708  or 
17709 \begin_inset Quotes eld
17710 \end_inset
17711
17712 skip
17713 \begin_inset Quotes erd
17714 \end_inset
17715
17716  to separate paragraphs.
17717  When 
17718 \begin_inset Quotes eld
17719 \end_inset
17720
17721 indent
17722 \begin_inset Quotes erd
17723 \end_inset
17724
17725  is chosen,
17726  
17727 \begin_inset Flex Code
17728 status collapsed
17729
17730 \begin_layout Plain Layout
17731 Parskip
17732 \end_layout
17733
17734 \end_inset
17735
17736  is ignored.
17737  When 
17738 \begin_inset Quotes eld
17739 \end_inset
17740
17741 skip
17742 \begin_inset Quotes erd
17743 \end_inset
17744
17745  is chosen,
17746  
17747 \begin_inset Flex Code
17748 status collapsed
17749
17750 \begin_layout Plain Layout
17751 ParIndent
17752 \end_layout
17753
17754 \end_inset
17755
17756  is ignored and all paragraphs are separated by the 
17757 \begin_inset Flex Code
17758 status collapsed
17759
17760 \begin_layout Plain Layout
17761 Parskip
17762 \end_layout
17763
17764 \end_inset
17765
17766  argument.
17767  The vertical space is calculated with 
17768 \begin_inset Flex Code
17769 status collapsed
17770
17771 \begin_layout Plain Layout
17772 Parskip
17773 \begin_inset space ~
17774 \end_inset
17775
17776 * DefaultHeight
17777 \end_layout
17778
17779 \end_inset
17780
17781  where 
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786 DefaultHeight
17787 \end_layout
17788
17789 \end_inset
17790
17791  is the height of a row with the normal font.
17792  This way,
17793  the look stays the same with different screen fonts.
17794 \end_layout
17795
17796 \begin_layout Description
17797 \begin_inset Flex Code
17798 status collapsed
17799
17800 \begin_layout Plain Layout
17801 PassThru
17802 \end_layout
17803
17804 \end_inset
17805
17806  [
17807 \begin_inset Flex Code
17808 status collapsed
17809
17810 \begin_layout Plain Layout
17811
17812 \emph on
17813 0
17814 \end_layout
17815
17816 \end_inset
17817
17818 ,
17819 \begin_inset space \thinspace{}
17820 \end_inset
17821
17822
17823 \begin_inset Flex Code
17824 status collapsed
17825
17826 \begin_layout Plain Layout
17827 1
17828 \end_layout
17829
17830 \end_inset
17831
17832 ] Whether the contents of this paragraph should be output in raw form,
17833  meaning without special translations that \SpecialChar LaTeX
17834  would require.
17835 \end_layout
17836
17837 \begin_layout Description
17838 \begin_inset Flex Code
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842 PassThruChars
17843 \end_layout
17844
17845 \end_inset
17846
17847  [
17848 \begin_inset Flex Code
17849 status collapsed
17850
17851 \begin_layout Plain Layout
17852 string
17853 \end_layout
17854
17855 \end_inset
17856
17857 ]
17858 \family typewriter
17859  
17860 \family default
17861 Defines individual characters that should be output in raw form,
17862  meaning without special translations that \SpecialChar LaTeX
17863  would require.
17864 \end_layout
17865
17866 \begin_layout Description
17867 \begin_inset Flex Code
17868 status collapsed
17869
17870 \begin_layout Plain Layout
17871 Preamble
17872 \end_layout
17873
17874 \end_inset
17875
17876  Information to be included in the \SpecialChar LaTeX
17877  preamble when this style is used.
17878  Used to define macros,
17879  load packages,
17880  etc.,
17881  required by this particular style.
17882  Must end with 
17883 \begin_inset Quotes eld
17884 \end_inset
17885
17886
17887 \begin_inset Flex Code
17888 status collapsed
17889
17890 \begin_layout Plain Layout
17891 EndPreamble
17892 \end_layout
17893
17894 \end_inset
17895
17896
17897 \begin_inset Quotes erd
17898 \end_inset
17899
17900 .
17901 \end_layout
17902
17903 \begin_layout Description
17904 \begin_inset Flex Code
17905 status collapsed
17906
17907 \begin_layout Plain Layout
17908 RefPrefix
17909 \end_layout
17910
17911 \end_inset
17912
17913  [
17914 \begin_inset Flex Code
17915 status collapsed
17916
17917 \begin_layout Plain Layout
17918 string
17919 \end_layout
17920
17921 \end_inset
17922
17923 ] The prefix to use when creating labels referring to paragraphs of this type.
17924  This allows the use of formatted references.
17925 \end_layout
17926
17927 \begin_layout Description
17928 \begin_inset Flex Code
17929 status collapsed
17930
17931 \begin_layout Plain Layout
17932 Requires 
17933 \end_layout
17934
17935 \end_inset
17936
17937  [
17938 \begin_inset Flex Code
17939 status collapsed
17940
17941 \begin_layout Plain Layout
17942 string
17943 \end_layout
17944
17945 \end_inset
17946
17947 ] Whether the style requires the feature 
17948 \begin_inset Flex Code
17949 status collapsed
17950
17951 \begin_layout Plain Layout
17952 string
17953 \end_layout
17954
17955 \end_inset
17956
17957  (see 
17958 \begin_inset CommandInset ref
17959 LatexCommand ref
17960 reference "chap:List-of-functions"
17961
17962 \end_inset
17963
17964  for the list of features).
17965  If you require a package with specific options,
17966  you can additionally use 
17967 \begin_inset Flex Code
17968 status collapsed
17969
17970 \begin_layout Plain Layout
17971 PackageOptions
17972 \end_layout
17973
17974 \end_inset
17975
17976  as a general text class parameter (see 
17977 \begin_inset CommandInset ref
17978 LatexCommand ref
17979 reference "subsec:General-text-class"
17980
17981 \end_inset
17982
17983 ).
17984 \end_layout
17985
17986 \begin_layout Description
17987 \begin_inset Flex Code
17988 status collapsed
17989
17990 \begin_layout Plain Layout
17991 ResetArgs
17992 \end_layout
17993
17994 \end_inset
17995
17996  [
17997 \begin_inset Flex Code
17998 status collapsed
17999
18000 \begin_layout Plain Layout
18001
18002 \emph on
18003 0
18004 \end_layout
18005
18006 \end_inset
18007
18008 ,
18009 \begin_inset Flex Code
18010 status collapsed
18011
18012 \begin_layout Plain Layout
18013 1
18014 \end_layout
18015
18016 \end_inset
18017
18018 ] Resets the \SpecialChar LaTeX
18019  arguments of this style (as defined via the 
18020 \begin_inset Flex Code
18021 status collapsed
18022
18023 \begin_layout Plain Layout
18024 Argument
18025 \end_layout
18026
18027 \end_inset
18028
18029  tag).
18030  This is useful if you have copied a style via 
18031 \begin_inset Flex Code
18032 status collapsed
18033
18034 \begin_layout Plain Layout
18035 CopyStyle
18036 \end_layout
18037
18038 \end_inset
18039
18040 ,
18041  but you do not want to inherit its (required and optional) arguments.
18042 \end_layout
18043
18044 \begin_layout Description
18045 \begin_inset Flex Code
18046 status collapsed
18047
18048 \begin_layout Plain Layout
18049 ResumeCounter
18050 \end_layout
18051
18052 \end_inset
18053
18054  [
18055 \begin_inset Flex Code
18056 status collapsed
18057
18058 \begin_layout Plain Layout
18059
18060 \emph on
18061 0
18062 \end_layout
18063
18064 \end_inset
18065
18066 ,
18067 \begin_inset Flex Code
18068 status collapsed
18069
18070 \begin_layout Plain Layout
18071 1
18072 \end_layout
18073
18074 \end_inset
18075
18076 ] Resumes a counter that is usually reset at each new sequence of layouts.
18077  This is currently only useful when 
18078 \begin_inset Flex Code
18079 status collapsed
18080
18081 \begin_layout Plain Layout
18082 LabelType
18083 \end_layout
18084
18085 \end_inset
18086
18087  is 
18088 \begin_inset Flex Code
18089 status collapsed
18090
18091 \begin_layout Plain Layout
18092 Enumerate
18093 \end_layout
18094
18095 \end_inset
18096
18097 .
18098 \end_layout
18099
18100 \begin_layout Description
18101 \begin_inset Flex Code
18102 status collapsed
18103
18104 \begin_layout Plain Layout
18105 RightDelim
18106 \end_layout
18107
18108 \end_inset
18109
18110  [
18111 \begin_inset Flex Code
18112 status collapsed
18113
18114 \begin_layout Plain Layout
18115 string
18116 \end_layout
18117
18118 \end_inset
18119
18120 ] A string that is put at the end of the layout content.
18121  A line break in the output can be indicated by 
18122 \begin_inset Flex Code
18123 status collapsed
18124
18125 \begin_layout Plain Layout
18126 <br/>
18127 \end_layout
18128
18129 \end_inset
18130
18131 .
18132 \end_layout
18133
18134 \begin_layout Description
18135 \begin_inset Flex Code
18136 status collapsed
18137
18138 \begin_layout Plain Layout
18139 RightMargin
18140 \end_layout
18141
18142 \end_inset
18143
18144  [
18145 \begin_inset Flex Code
18146 status collapsed
18147
18148 \begin_layout Plain Layout
18149 string=""
18150 \end_layout
18151
18152 \end_inset
18153
18154 ] Similar to 
18155 \begin_inset Flex Code
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159 LeftMargin
18160 \end_layout
18161
18162 \end_inset
18163
18164 .
18165 \end_layout
18166
18167 \begin_layout Description
18168 \begin_inset Flex Code
18169 status collapsed
18170
18171 \begin_layout Plain Layout
18172 Spacing
18173 \end_layout
18174
18175 \end_inset
18176
18177  [
18178 \begin_inset Flex Code
18179 status collapsed
18180
18181 \begin_layout Plain Layout
18182
18183 \emph on
18184 single
18185 \end_layout
18186
18187 \end_inset
18188
18189 ,
18190  
18191 \begin_inset Flex Code
18192 status collapsed
18193
18194 \begin_layout Plain Layout
18195 onehalf
18196 \end_layout
18197
18198 \end_inset
18199
18200 ,
18201  
18202 \begin_inset Flex Code
18203 status collapsed
18204
18205 \begin_layout Plain Layout
18206 double
18207 \end_layout
18208
18209 \end_inset
18210
18211 ,
18212  
18213 \begin_inset Flex Code
18214 status collapsed
18215
18216 \begin_layout Plain Layout
18217 other
18218 \begin_inset space ~
18219 \end_inset
18220
18221 <value>
18222 \end_layout
18223
18224 \end_inset
18225
18226 ] This defines what the default spacing should be in the style.
18227  The arguments 
18228 \begin_inset Flex Code
18229 status collapsed
18230
18231 \begin_layout Plain Layout
18232 single
18233 \end_layout
18234
18235 \end_inset
18236
18237 ,
18238  
18239 \begin_inset Flex Code
18240 status collapsed
18241
18242 \begin_layout Plain Layout
18243 onehalf
18244 \end_layout
18245
18246 \end_inset
18247
18248  and 
18249 \begin_inset Flex Code
18250 status collapsed
18251
18252 \begin_layout Plain Layout
18253 double
18254 \end_layout
18255
18256 \end_inset
18257
18258  correspond respectively to a multiplier value of 1,
18259  1.25 and 1.667.
18260  If you specify the argument 
18261 \begin_inset Flex Code
18262 status collapsed
18263
18264 \begin_layout Plain Layout
18265 other
18266 \end_layout
18267
18268 \end_inset
18269
18270 ,
18271  then you must also provide a value argument which will be the actual multiplier value.
18272  Note that,
18273  contrary to other parameters,
18274  
18275 \begin_inset Flex Code
18276 status collapsed
18277
18278 \begin_layout Plain Layout
18279 Spacing
18280 \end_layout
18281
18282 \end_inset
18283
18284  implies the generation of specific \SpecialChar LaTeX
18285  code,
18286  using the \SpecialChar LaTeX
18287  package 
18288 \family roman
18289
18290 \begin_inset Flex Code
18291 status collapsed
18292
18293 \begin_layout Plain Layout
18294 setspace
18295 \end_layout
18296
18297 \end_inset
18298
18299 .
18300 \end_layout
18301
18302 \begin_layout Description
18303 \begin_inset Flex Code
18304 status collapsed
18305
18306 \begin_layout Plain Layout
18307 Spellcheck
18308 \end_layout
18309
18310 \end_inset
18311
18312  [
18313 \begin_inset Flex Code
18314 status collapsed
18315
18316 \begin_layout Plain Layout
18317 0
18318 \end_layout
18319
18320 \end_inset
18321
18322 ,
18323 \begin_inset space \thinspace{}
18324 \end_inset
18325
18326
18327 \begin_inset Flex Code
18328 status collapsed
18329
18330 \begin_layout Plain Layout
18331
18332 \emph on
18333 1
18334 \end_layout
18335
18336 \end_inset
18337
18338 ] Allow spell-checking paragraphs of this style.
18339  Default is true.
18340 \end_layout
18341
18342 \begin_layout Description
18343 \begin_inset Flex Code
18344 status collapsed
18345
18346 \begin_layout Plain Layout
18347 Step
18348 \change_deleted 731793113 1604355211
18349 Master
18350 \change_inserted 731793113 1604355212
18351 Parent
18352 \change_unchanged
18353 Counter
18354 \end_layout
18355
18356 \end_inset
18357
18358  [
18359 \begin_inset Flex Code
18360 status collapsed
18361
18362 \begin_layout Plain Layout
18363
18364 \emph on
18365 0
18366 \end_layout
18367
18368 \end_inset
18369
18370 ,
18371 \begin_inset Flex Code
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375 1
18376 \end_layout
18377
18378 \end_inset
18379
18380 ] Steps the 
18381 \change_deleted 731793113 1604355214
18382 master
18383 \change_inserted 731793113 1604355216
18384 parent
18385 \change_unchanged
18386  counter of a given counter at the beginning of a new sequence of layouts.
18387  This is currently only useful when 
18388 \begin_inset Flex Code
18389 status collapsed
18390
18391 \begin_layout Plain Layout
18392 LabelType
18393 \end_layout
18394
18395 \end_inset
18396
18397  is 
18398 \begin_inset Flex Code
18399 status collapsed
18400
18401 \begin_layout Plain Layout
18402 Enumerate
18403 \end_layout
18404
18405 \end_inset
18406
18407 .
18408 \end_layout
18409
18410 \begin_layout Description
18411 \begin_inset Flex Code
18412 status collapsed
18413
18414 \begin_layout Plain Layout
18415 TextFont
18416 \end_layout
18417
18418 \end_inset
18419
18420  The font used for the text body .
18421  See 
18422 \begin_inset CommandInset ref
18423 LatexCommand ref
18424 reference "subsec:Font-description"
18425
18426 \end_inset
18427
18428 .
18429 \end_layout
18430
18431 \begin_layout Description
18432 \begin_inset Flex Code
18433 status collapsed
18434
18435 \begin_layout Plain Layout
18436 TocLevel
18437 \end_layout
18438
18439 \end_inset
18440
18441
18442 \series medium
18443  [
18444 \begin_inset Flex Code
18445 status collapsed
18446
18447 \begin_layout Plain Layout
18448
18449 \series medium
18450 int=3
18451 \end_layout
18452
18453 \end_inset
18454
18455 ]
18456 \series default
18457  The level of the style in the table of contents.
18458  This is used for automatic numbering of section headings.
18459 \end_layout
18460
18461 \begin_layout Description
18462 \begin_inset Flex Code
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466 ToggleIndent
18467 \end_layout
18468
18469 \end_inset
18470
18471  [
18472 \emph on
18473
18474 \begin_inset Flex Code
18475 status collapsed
18476
18477 \begin_layout Plain Layout
18478
18479 \emph on
18480 default
18481 \end_layout
18482
18483 \end_inset
18484
18485
18486 \emph default
18487 ,
18488  
18489 \begin_inset Flex Code
18490 status collapsed
18491
18492 \begin_layout Plain Layout
18493 always
18494 \end_layout
18495
18496 \end_inset
18497
18498 ,
18499  
18500 \begin_inset Flex Code
18501 status collapsed
18502
18503 \begin_layout Plain Layout
18504 never
18505 \end_layout
18506
18507 \end_inset
18508
18509 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
18510  If 
18511 \emph on
18512
18513 \begin_inset Flex Code
18514 status collapsed
18515
18516 \begin_layout Plain Layout
18517
18518 \emph off
18519 default
18520 \end_layout
18521
18522 \end_inset
18523
18524
18525 \emph default
18526  is set,
18527  indentation can be toggled if the document settings use 
18528 \begin_inset Quotes eld
18529 \end_inset
18530
18531 indent
18532 \begin_inset Quotes erd
18533 \end_inset
18534
18535  paragraph style,
18536  with 
18537 \begin_inset Flex Code
18538 status collapsed
18539
18540 \begin_layout Plain Layout
18541 always
18542 \end_layout
18543
18544 \end_inset
18545
18546 ,
18547  indentation can always be toggled,
18548  notwithstanding the document settings,
18549  with 
18550 \begin_inset Flex Code
18551 status collapsed
18552
18553 \begin_layout Plain Layout
18554 never
18555 \end_layout
18556
18557 \end_inset
18558
18559 ,
18560  indentation can never be toggled.
18561 \end_layout
18562
18563 \begin_layout Description
18564 \begin_inset Flex Code
18565 status collapsed
18566
18567 \begin_layout Plain Layout
18568 TopSep
18569 \end_layout
18570
18571 \end_inset
18572
18573  [
18574 \begin_inset Flex Code
18575 status collapsed
18576
18577 \begin_layout Plain Layout
18578 float=0
18579 \end_layout
18580
18581 \end_inset
18582
18583 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
18584  If the previous paragraph has another style,
18585  the separations are not simply added,
18586  but the maximum is taken.
18587 \end_layout
18588
18589 \begin_layout Subsection
18590 \begin_inset CommandInset label
18591 LatexCommand label
18592 name "subsec:I18n"
18593
18594 \end_inset
18595
18596 Internationalization of Paragraph Styles
18597 \end_layout
18598
18599 \begin_layout Standard
18600 \SpecialChar LyX
18601  has long supported internationalization of layout information,
18602  but,
18603  until version 2.0,
18604  this applied only to the user interface and not to,
18605  say,
18606  PDF output.
18607  Thus,
18608  French authors were forced to resort to ugly hacks if they wanted `
18609 \lang french
18610 Théorème
18611 \lang english
18612  1' instead of `Theorem 1'.
18613  Thanks to Georg Baum,
18614  that is no longer the case.
18615 \end_layout
18616
18617 \begin_layout Standard
18618 If a 
18619 \begin_inset Flex Code
18620 status collapsed
18621
18622 \begin_layout Plain Layout
18623 Style
18624 \end_layout
18625
18626 \end_inset
18627
18628  defines text that is to appear in the typeset document,
18629  it may use 
18630 \begin_inset Flex Code
18631 status collapsed
18632
18633 \begin_layout Plain Layout
18634 LangPreamble
18635 \end_layout
18636
18637 \end_inset
18638
18639  and 
18640 \begin_inset Flex Code
18641 status collapsed
18642
18643 \begin_layout Plain Layout
18644 BabelPreamble
18645 \end_layout
18646
18647 \end_inset
18648
18649  to support non-English and even multi-language documents correctly.
18650  The following excerpt (from the 
18651 \begin_inset Flex Code
18652 status collapsed
18653
18654 \begin_layout Plain Layout
18655 theorems-ams.inc
18656 \end_layout
18657
18658 \end_inset
18659
18660  file) shows how this works:
18661 \end_layout
18662
18663 \begin_layout LyX-Code
18664 Preamble
18665 \end_layout
18666
18667 \begin_deeper
18668 \begin_layout LyX-Code
18669   
18670 \backslash
18671 theoremstyle{remark}
18672 \end_layout
18673
18674 \begin_layout LyX-Code
18675   
18676 \backslash
18677 newtheorem{claim}[thm]{
18678 \backslash
18679 protect
18680 \backslash
18681 claimname}
18682 \end_layout
18683
18684 \begin_layout LyX-Code
18685 EndPreamble
18686 \end_layout
18687
18688 \begin_layout LyX-Code
18689 LangPreamble
18690 \end_layout
18691
18692 \begin_layout LyX-Code
18693   
18694 \backslash
18695 providecommand{
18696 \backslash
18697 claimname}{_(Claim)}
18698 \end_layout
18699
18700 \begin_layout LyX-Code
18701 EndLangPreamble
18702 \end_layout
18703
18704 \begin_layout LyX-Code
18705 BabelPreamble
18706 \end_layout
18707
18708 \begin_layout LyX-Code
18709     
18710 \backslash
18711 addto
18712 \backslash
18713 captions$$lang{
18714 \backslash
18715 renewcommand{
18716 \backslash
18717 claimname}{_(Claim)}}
18718 \end_layout
18719
18720 \begin_layout LyX-Code
18721 EndBabelPreamble
18722 \end_layout
18723
18724 \end_deeper
18725 \begin_layout Standard
18726 In principle,
18727  any legal \SpecialChar LaTeX
18728  may appear in the 
18729 \begin_inset Flex Code
18730 status collapsed
18731
18732 \begin_layout Plain Layout
18733 LangPreamble
18734 \end_layout
18735
18736 \end_inset
18737
18738  and 
18739 \begin_inset Flex Code
18740 status collapsed
18741
18742 \begin_layout Plain Layout
18743 BabelPreamble
18744 \end_layout
18745
18746 \end_inset
18747
18748  tags,
18749  but in practice they will typically look as they do here.
18750  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
18751  command 
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756
18757 \backslash
18758 claimname
18759 \end_layout
18760
18761 \end_inset
18762
18763  and its use in 
18764 \begin_inset Flex Code
18765 status collapsed
18766
18767 \begin_layout Plain Layout
18768
18769 \backslash
18770 newtheorem
18771 \end_layout
18772
18773 \end_inset
18774
18775 .
18776  
18777 \end_layout
18778
18779 \begin_layout Standard
18780 The 
18781 \begin_inset Flex Code
18782 status collapsed
18783
18784 \begin_layout Plain Layout
18785 LangPreamble
18786 \end_layout
18787
18788 \end_inset
18789
18790  tag provides for internationalization based upon the overall language of the document.
18791  The contents of the tag will be included in the preamble,
18792  just as with the 
18793 \begin_inset Flex Code
18794 status collapsed
18795
18796 \begin_layout Plain Layout
18797 Preamble
18798 \end_layout
18799
18800 \end_inset
18801
18802  tag.
18803  What makes it special is the use of the 
18804 \begin_inset Quotes eld
18805 \end_inset
18806
18807 function
18808 \begin_inset Quotes erd
18809 \end_inset
18810
18811  
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816 _()
18817 \end_layout
18818
18819 \end_inset
18820
18821 ,
18822  which will be replaced,
18823  when \SpecialChar LyX
18824  produces \SpecialChar LaTeX
18825  output,
18826  with the translation of its argument into the document language.
18827 \end_layout
18828
18829 \begin_layout Standard
18830 The 
18831 \begin_inset Flex Code
18832 status collapsed
18833
18834 \begin_layout Plain Layout
18835 BabelPreamble
18836 \end_layout
18837
18838 \end_inset
18839
18840  tag is more complex,
18841  since it is meant to provide support for multi-language documents and so offers an interface to the 
18842 \begin_inset Flex Code
18843 status collapsed
18844
18845 \begin_layout Plain Layout
18846 babel
18847 \end_layout
18848
18849 \end_inset
18850
18851  package.
18852  Its contents will be added to the preamble once for each language that appears in the document.
18853  In this case,
18854  the argument to 
18855 \begin_inset Flex Code
18856 status collapsed
18857
18858 \begin_layout Plain Layout
18859 _()
18860 \end_layout
18861
18862 \end_inset
18863
18864  will be replaced with its translation into the language in question;
18865  the expression 
18866 \begin_inset Flex Code
18867 status collapsed
18868
18869 \begin_layout Plain Layout
18870 $$lang
18871 \end_layout
18872
18873 \end_inset
18874
18875  is replaced by the language name (as used by the babel package).
18876 \end_layout
18877
18878 \begin_layout Standard
18879 A German document that also included a French section would thus have the following in the preamble:
18880 \end_layout
18881
18882 \begin_layout LyX-Code
18883
18884 \backslash
18885 addto
18886 \backslash
18887 captionsfrench{
18888 \backslash
18889 renewcommand{
18890 \backslash
18891 claimname}{Affirmation}}
18892 \begin_inset Newline newline
18893 \end_inset
18894
18895
18896 \backslash
18897 addto
18898 \backslash
18899 captionsngerman{
18900 \backslash
18901 renewcommand{
18902 \backslash
18903 claimname}{Behauptung}}
18904 \begin_inset Newline newline
18905 \end_inset
18906
18907
18908 \backslash
18909 providecommand{
18910 \backslash
18911 claimname}{Behauptung}
18912 \end_layout
18913
18914 \begin_layout Standard
18915 \SpecialChar LaTeX
18916  and 
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 babel
18922 \end_layout
18923
18924 \end_inset
18925
18926  will then conspire to produce the correct text in the output.
18927 \end_layout
18928
18929 \begin_layout Standard
18930 One important point to note here is that the translations are provided by \SpecialChar LyX
18931  itself,
18932  through the file 
18933 \begin_inset Flex Code
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937 layouttranslations
18938 \end_layout
18939
18940 \end_inset
18941
18942 .
18943  This means,
18944  in effect,
18945  that 
18946 \begin_inset Flex Code
18947 status collapsed
18948
18949 \begin_layout Plain Layout
18950 LangPreamble
18951 \end_layout
18952
18953 \end_inset
18954
18955  and 
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960 BabelPreamble
18961 \end_layout
18962
18963 \end_inset
18964
18965  are really only of use in layout files that are provided with \SpecialChar LyX
18966 ,
18967  since text entered in user-created layout files will not be seen by \SpecialChar LyX
18968 's internationalization routines unless the 
18969 \begin_inset Flex Code
18970 status collapsed
18971
18972 \begin_layout Plain Layout
18973 layouttranslations
18974 \end_layout
18975
18976 \end_inset
18977
18978  file is modified accordingly.
18979  That said,
18980  however,
18981  any layout created with the intention that it will be included with \SpecialChar LyX
18982  should use these tags where appropriate.
18983  Please note that the paragraph style translations provided by \SpecialChar LyX
18984  will never change with a minor update (e.
18985 \begin_inset space \thinspace{}
18986 \end_inset
18987
18988 g.
18989 \begin_inset space \space{}
18990 \end_inset
18991
18992 from version 2.1.x to 2.1.y).
18993  It is however quite likely that a major update (e.
18994 \begin_inset space \thinspace{}
18995 \end_inset
18996
18997 g.
18998 \begin_inset space \space{}
18999 \end_inset
19000
19001 from 2.0.x to 2.1.0) will introduce new translations or corrections.
19002 \end_layout
19003
19004 \begin_layout Subsection
19005 Floats
19006 \begin_inset CommandInset label
19007 LatexCommand label
19008 name "subsec:Floats"
19009
19010 \end_inset
19011
19012
19013 \end_layout
19014
19015 \begin_layout Standard
19016 It is necessary to define the floats (
19017 \begin_inset Flex Noun
19018 status collapsed
19019
19020 \begin_layout Plain Layout
19021 figure
19022 \end_layout
19023
19024 \end_inset
19025
19026 ,
19027  
19028 \begin_inset Flex Noun
19029 status collapsed
19030
19031 \begin_layout Plain Layout
19032 table
19033 \end_layout
19034
19035 \end_inset
19036
19037 ,
19038  \SpecialChar ldots
19039 ) in the text class itself.
19040  Standard floats are included in the file 
19041 \begin_inset Flex Code
19042 status collapsed
19043
19044 \begin_layout Plain Layout
19045 stdfloats.inc
19046 \end_layout
19047
19048 \end_inset
19049
19050 ,
19051  so you may have to do no more than add
19052 \end_layout
19053
19054 \begin_layout LyX-Code
19055 Input stdfloats.inc
19056 \end_layout
19057
19058 \begin_layout Standard
19059 to your layout file.
19060  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
19061 ),
19062  the information below will hopefully help you:
19063 \end_layout
19064
19065 \begin_layout Description
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 AllowedPlacement
19071 \end_layout
19072
19073 \end_inset
19074
19075  [
19076 \begin_inset Flex Code
19077 status collapsed
19078
19079 \begin_layout Plain Layout
19080 string
19081 \end_layout
19082
19083 \end_inset
19084
19085 =!htbpH] Allowed placement options for this float type.
19086  The value is a string of placement characters.
19087  Possible characters include:
19088  
19089 \emph on
19090 h
19091 \emph default
19092  (
19093 \begin_inset Quotes eld
19094 \end_inset
19095
19096 here if possible
19097 \begin_inset Quotes erd
19098 \end_inset
19099
19100 ),
19101  
19102 \emph on
19103 t
19104 \emph default
19105  (
19106 \begin_inset Quotes eld
19107 \end_inset
19108
19109 top of page
19110 \begin_inset Quotes erd
19111 \end_inset
19112
19113 ),
19114  
19115 \emph on
19116 b
19117 \emph default
19118  (
19119 \begin_inset Quotes eld
19120 \end_inset
19121
19122 bottom of page
19123 \begin_inset Quotes erd
19124 \end_inset
19125
19126 ),
19127  
19128 \emph on
19129 p
19130 \emph default
19131  (
19132 \begin_inset Quotes eld
19133 \end_inset
19134
19135 page of floats
19136 \begin_inset Quotes erd
19137 \end_inset
19138
19139 ),
19140  
19141 \emph on
19142 H
19143 \emph default
19144  (
19145 \begin_inset Quotes eld
19146 \end_inset
19147
19148 here definitely
19149 \begin_inset Quotes erd
19150 \end_inset
19151
19152 ) and 
19153 \emph on
19154 !
19155
19156 \emph default
19157  (
19158 \begin_inset Quotes eld
19159 \end_inset
19160
19161 ignore LaTeX rules
19162 \begin_inset Quotes erd
19163 \end_inset
19164
19165 ).
19166  The order of the characters in the string does not matter.
19167  If no placement options are allowed,
19168  use the string 
19169 \emph on
19170 none
19171 \emph default
19172 .
19173 \end_layout
19174
19175 \begin_layout Description
19176 \begin_inset Flex Code
19177 status collapsed
19178
19179 \begin_layout Plain Layout
19180 AllowsSideways
19181 \end_layout
19182
19183 \end_inset
19184
19185  [
19186 \begin_inset Flex Code
19187 status collapsed
19188
19189 \begin_layout Plain Layout
19190
19191 \emph off
19192 0
19193 \end_layout
19194
19195 \end_inset
19196
19197 ,
19198 \begin_inset space \thinspace{}
19199 \end_inset
19200
19201
19202 \emph on
19203
19204 \begin_inset Flex Code
19205 status collapsed
19206
19207 \begin_layout Plain Layout
19208
19209 \emph on
19210 1
19211 \end_layout
19212
19213 \end_inset
19214
19215
19216 \emph default
19217 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
19218 -package 
19219 \family typewriter
19220 rotfloat
19221 \family default
19222  (sidewaysfloat).
19223  Set to 
19224 \begin_inset Flex Code
19225 status collapsed
19226
19227 \begin_layout Plain Layout
19228 0
19229 \end_layout
19230
19231 \end_inset
19232
19233  if the float does not support this feature.
19234 \end_layout
19235
19236 \begin_layout Description
19237 \begin_inset Flex Code
19238 status collapsed
19239
19240 \begin_layout Plain Layout
19241 AllowsWide
19242 \end_layout
19243
19244 \end_inset
19245
19246  [
19247 \begin_inset Flex Code
19248 status collapsed
19249
19250 \begin_layout Plain Layout
19251
19252 \emph off
19253 0
19254 \end_layout
19255
19256 \end_inset
19257
19258 ,
19259 \begin_inset space \thinspace{}
19260 \end_inset
19261
19262
19263 \emph on
19264
19265 \begin_inset Flex Code
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269
19270 \emph on
19271 1
19272 \end_layout
19273
19274 \end_inset
19275
19276
19277 \emph default
19278 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
19279  Set to 
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284 0
19285 \end_layout
19286
19287 \end_inset
19288
19289  if the float does not support this feature.
19290 \end_layout
19291
19292 \begin_layout Description
19293 \begin_inset Flex Code
19294 status collapsed
19295
19296 \begin_layout Plain Layout
19297 Extension
19298 \end_layout
19299
19300 \end_inset
19301
19302  [
19303 \begin_inset Flex Code
19304 status collapsed
19305
19306 \begin_layout Plain Layout
19307 string
19308 \end_layout
19309
19310 \end_inset
19311
19312 =
19313 \begin_inset Quotes erd
19314 \end_inset
19315
19316
19317 \begin_inset Quotes erd
19318 \end_inset
19319
19320 ] The file name extension of an auxiliary file for the list of figures (or whatever).
19321  \SpecialChar LaTeX
19322  writes the captions to this file.
19323 \end_layout
19324
19325 \begin_layout Description
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330 GuiName
19331 \end_layout
19332
19333 \end_inset
19334
19335  [
19336 \begin_inset Flex Code
19337 status collapsed
19338
19339 \begin_layout Plain Layout
19340 string
19341 \end_layout
19342
19343 \end_inset
19344
19345 =
19346 \begin_inset Quotes erd
19347 \end_inset
19348
19349
19350 \begin_inset Quotes erd
19351 \end_inset
19352
19353 ] The string that will be used in the menus and also for the caption.
19354  This is translated to the current language if babel is used.
19355 \end_layout
19356
19357 \begin_layout Description
19358 \begin_inset Flex Code
19359 status collapsed
19360
19361 \begin_layout Plain Layout
19362 HTML*
19363 \end_layout
19364
19365 \end_inset
19366
19367  These tags control the XHTML output.
19368  See 
19369 \begin_inset CommandInset ref
19370 LatexCommand ref
19371 reference "sec:Tags-for-XHTML"
19372
19373 \end_inset
19374
19375 .
19376 \end_layout
19377
19378 \begin_layout Description
19379 \begin_inset Flex Code
19380 status collapsed
19381
19382 \begin_layout Plain Layout
19383 IsPredefined
19384 \end_layout
19385
19386 \end_inset
19387
19388  [
19389 \emph on
19390
19391 \begin_inset Flex Code
19392 status collapsed
19393
19394 \begin_layout Plain Layout
19395 0
19396 \end_layout
19397
19398 \end_inset
19399
19400
19401 \emph default
19402 ,
19403 \begin_inset space \thinspace{}
19404 \end_inset
19405
19406
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 1
19412 \end_layout
19413
19414 \end_inset
19415
19416 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
19417  package 
19418 \begin_inset Flex Code
19419 status collapsed
19420
19421 \begin_layout Plain Layout
19422 float
19423 \end_layout
19424
19425 \end_inset
19426
19427  needs to be loaded to define it on-the-fly.
19428  The default is 
19429 \begin_inset Flex Code
19430 status collapsed
19431
19432 \begin_layout Plain Layout
19433 0
19434 \end_layout
19435
19436 \end_inset
19437
19438 ,
19439  which means:
19440  
19441 \begin_inset Flex Code
19442 status collapsed
19443
19444 \begin_layout Plain Layout
19445 float
19446 \end_layout
19447
19448 \end_inset
19449
19450  is used.
19451  It should be set to 
19452 \begin_inset Flex Code
19453 status collapsed
19454
19455 \begin_layout Plain Layout
19456 1
19457 \end_layout
19458
19459 \end_inset
19460
19461  if the float is already defined by the \SpecialChar LaTeX
19462  document class.
19463 \end_layout
19464
19465 \begin_layout Description
19466 \begin_inset Flex Code
19467 status collapsed
19468
19469 \begin_layout Plain Layout
19470 ListCommand
19471 \end_layout
19472
19473 \end_inset
19474
19475  [
19476 \begin_inset Flex Code
19477 status collapsed
19478
19479 \begin_layout Plain Layout
19480 string
19481 \end_layout
19482
19483 \end_inset
19484
19485 =
19486 \begin_inset Quotes erd
19487 \end_inset
19488
19489
19490 \begin_inset Quotes erd
19491 \end_inset
19492
19493 ] The command used to generate a list of floats of this type;
19494  the leading `
19495 \backslash
19496 ' must be omitted.
19497  This 
19498 \emph on
19499 must
19500 \emph default
19501  be given if 
19502 \begin_inset Flex Code
19503 status collapsed
19504
19505 \begin_layout Plain Layout
19506 UsesFloatPkg
19507 \end_layout
19508
19509 \end_inset
19510
19511  is false,
19512  since there is no standard way to generate this command.
19513  It is ignored if 
19514 \begin_inset Flex Code
19515 status collapsed
19516
19517 \begin_layout Plain Layout
19518 UsesFloatPkg
19519 \end_layout
19520
19521 \end_inset
19522
19523  is true,
19524  since in that case there is a standard way to define the command.
19525 \end_layout
19526
19527 \begin_layout Description
19528 \begin_inset Flex Code
19529 status collapsed
19530
19531 \begin_layout Plain Layout
19532 ListName
19533 \end_layout
19534
19535 \end_inset
19536
19537  [
19538 \begin_inset Flex Code
19539 status collapsed
19540
19541 \begin_layout Plain Layout
19542 string
19543 \end_layout
19544
19545 \end_inset
19546
19547 =
19548 \begin_inset Quotes erd
19549 \end_inset
19550
19551
19552 \begin_inset Quotes erd
19553 \end_inset
19554
19555 ] A title for a list of floats of this kind (list of figures,
19556  tables,
19557  or whatever).
19558  It is used for the screen label within \SpecialChar LyX
19559 ,
19560  it is used by \SpecialChar LaTeX
19561  for the title and it is used as the title in the XHTML output.
19562  It will be translated to the document language.
19563 \end_layout
19564
19565 \begin_layout Description
19566 \begin_inset Flex Code
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570 NumberWithin
19571 \end_layout
19572
19573 \end_inset
19574
19575  [
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 string
19581 \end_layout
19582
19583 \end_inset
19584
19585 =
19586 \begin_inset Quotes erd
19587 \end_inset
19588
19589
19590 \begin_inset Quotes erd
19591 \end_inset
19592
19593 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
19594  For example,
19595  if 
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600 NumberWithin
19601 \end_layout
19602
19603 \end_inset
19604
19605  is set to 
19606 \begin_inset Quotes eld
19607 \end_inset
19608
19609
19610 \begin_inset Flex Code
19611 status collapsed
19612
19613 \begin_layout Plain Layout
19614 chapter
19615 \end_layout
19616
19617 \end_inset
19618
19619
19620 \begin_inset Quotes erd
19621 \end_inset
19622
19623 ,
19624  the floats will be numbered within chapters.
19625  
19626 \end_layout
19627
19628 \begin_layout Description
19629 \begin_inset Flex Code
19630 status collapsed
19631
19632 \begin_layout Plain Layout
19633 Placement
19634 \end_layout
19635
19636 \end_inset
19637
19638  [
19639 \begin_inset Flex Code
19640 status collapsed
19641
19642 \begin_layout Plain Layout
19643 string
19644 \end_layout
19645
19646 \end_inset
19647
19648 =
19649 \begin_inset Quotes erd
19650 \end_inset
19651
19652
19653 \begin_inset Quotes erd
19654 \end_inset
19655
19656 ] The default placement for the given class of floats.
19657  The string should be as in standard \SpecialChar LaTeX
19658 :
19659  
19660 \begin_inset Flex Code
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664 t
19665 \end_layout
19666
19667 \end_inset
19668
19669 ,
19670  
19671 \begin_inset Flex Code
19672 status collapsed
19673
19674 \begin_layout Plain Layout
19675 b
19676 \end_layout
19677
19678 \end_inset
19679
19680 ,
19681  
19682 \begin_inset Flex Code
19683 status collapsed
19684
19685 \begin_layout Plain Layout
19686 p
19687 \end_layout
19688
19689 \end_inset
19690
19691  and 
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 h
19697 \end_layout
19698
19699 \end_inset
19700
19701  for top,
19702  bottom,
19703  page,
19704  and here,
19705  respectively.
19706 \begin_inset Foot
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710 Note that the order of these letters in the string is irrelevant,
19711  like in \SpecialChar LaTeX
19712 .
19713 \end_layout
19714
19715 \end_inset
19716
19717  On top of that there is a new type,
19718  
19719 \begin_inset Flex Code
19720 status collapsed
19721
19722 \begin_layout Plain Layout
19723 H
19724 \end_layout
19725
19726 \end_inset
19727
19728 ,
19729  which does not really correspond to a float,
19730  since it means:
19731  put it 
19732 \begin_inset Quotes eld
19733 \end_inset
19734
19735 here
19736 \begin_inset Quotes erd
19737 \end_inset
19738
19739  and nowhere else.
19740  Note however that the 
19741 \begin_inset Flex Code
19742 status collapsed
19743
19744 \begin_layout Plain Layout
19745 H
19746 \end_layout
19747
19748 \end_inset
19749
19750  specifier is special and,
19751  because of implementation details,
19752  cannot be used in non-built in float types.
19753  If you do not understand what this means,
19754  just use 
19755 \begin_inset Quotes eld
19756 \end_inset
19757
19758
19759 \begin_inset Flex Code
19760 status collapsed
19761
19762 \begin_layout Plain Layout
19763 tbp
19764 \end_layout
19765
19766 \end_inset
19767
19768
19769 \begin_inset Quotes erd
19770 \end_inset
19771
19772 .
19773 \end_layout
19774
19775 \begin_layout Description
19776 \begin_inset Flex Code
19777 status collapsed
19778
19779 \begin_layout Plain Layout
19780 RefPrefix
19781 \end_layout
19782
19783 \end_inset
19784
19785  [
19786 \begin_inset Flex Code
19787 status collapsed
19788
19789 \begin_layout Plain Layout
19790 string
19791 \end_layout
19792
19793 \end_inset
19794
19795 ] The prefix to use when creating labels referring to floats of this type.
19796  This allows the use of formatted references.
19797  Note that you can remove any 
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 RefPrefix
19803 \end_layout
19804
19805 \end_inset
19806
19807  set by a copied style by using the special value 
19808 \begin_inset Quotes eld
19809 \end_inset
19810
19811 OFF
19812 \begin_inset Quotes erd
19813 \end_inset
19814
19815 ,
19816  which must be all caps.
19817 \change_inserted -712698321 1565605014
19818
19819 \end_layout
19820
19821 \begin_layout Description
19822
19823 \change_inserted -712698321 1565605014
19824 \begin_inset Flex Code
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828
19829 \change_inserted -712698321 1565605014
19830 Requires
19831 \change_unchanged
19832
19833 \end_layout
19834
19835 \end_inset
19836
19837  [
19838 \begin_inset Flex Code
19839 status collapsed
19840
19841 \begin_layout Plain Layout
19842
19843 \change_inserted -712698321 1565605014
19844 string
19845 \change_unchanged
19846
19847 \end_layout
19848
19849 \end_inset
19850
19851 ] As with paragraph styles,
19852  see 
19853 \begin_inset CommandInset ref
19854 LatexCommand ref
19855 reference "subsec:Paragraph-Styles"
19856
19857 \end_inset
19858
19859 .
19860 \change_unchanged
19861
19862 \end_layout
19863
19864 \begin_layout Description
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869 Style
19870 \end_layout
19871
19872 \end_inset
19873
19874  [
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 string
19880 \end_layout
19881
19882 \end_inset
19883
19884 =
19885 \begin_inset Quotes erd
19886 \end_inset
19887
19888
19889 \begin_inset Quotes erd
19890 \end_inset
19891
19892 ] The style used when defining the float using 
19893 \begin_inset Flex Code
19894 status collapsed
19895
19896 \begin_layout Plain Layout
19897
19898 \backslash
19899 newfloat
19900 \end_layout
19901
19902 \end_inset
19903
19904 .
19905 \end_layout
19906
19907 \begin_layout Description
19908 \begin_inset Flex Code
19909 status collapsed
19910
19911 \begin_layout Plain Layout
19912 Type
19913 \end_layout
19914
19915 \end_inset
19916
19917  [
19918 \begin_inset Flex Code
19919 status collapsed
19920
19921 \begin_layout Plain Layout
19922 string
19923 \end_layout
19924
19925 \end_inset
19926
19927 =
19928 \begin_inset Quotes erd
19929 \end_inset
19930
19931
19932 \begin_inset Quotes erd
19933 \end_inset
19934
19935 ] The 
19936 \begin_inset Quotes eld
19937 \end_inset
19938
19939 type
19940 \begin_inset Quotes erd
19941 \end_inset
19942
19943  of the new class of floats,
19944  like program or algorithm.
19945  After the appropriate 
19946 \begin_inset Flex Code
19947 status collapsed
19948
19949 \begin_layout Plain Layout
19950
19951 \backslash
19952 newfloat
19953 \end_layout
19954
19955 \end_inset
19956
19957 ,
19958  commands such as 
19959 \begin_inset Flex Code
19960 status collapsed
19961
19962 \begin_layout Plain Layout
19963
19964 \backslash
19965 begin{program}
19966 \end_layout
19967
19968 \end_inset
19969
19970  or 
19971 \begin_inset Flex Code
19972 status collapsed
19973
19974 \begin_layout Plain Layout
19975
19976 \backslash
19977 end{algorithm*}
19978 \end_layout
19979
19980 \end_inset
19981
19982  will be available.
19983 \end_layout
19984
19985 \begin_layout Description
19986 \begin_inset Flex Code
19987 status collapsed
19988
19989 \begin_layout Plain Layout
19990 UsesFloatPkg
19991 \end_layout
19992
19993 \end_inset
19994
19995  [
19996 \begin_inset Flex Code
19997 status collapsed
19998
19999 \begin_layout Plain Layout
20000 0
20001 \end_layout
20002
20003 \end_inset
20004
20005 ,
20006 \begin_inset space \thinspace{}
20007 \end_inset
20008
20009
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014
20015 \emph on
20016 1
20017 \end_layout
20018
20019 \end_inset
20020
20021 ] Specifies whether this float is defined using the \SpecialChar LaTeX
20022  package 
20023 \begin_inset Flex Code
20024 status collapsed
20025
20026 \begin_layout Plain Layout
20027 float
20028 \end_layout
20029
20030 \end_inset
20031
20032 ,
20033  either by the class file,
20034  another package or on-the-fly by \SpecialChar LyX
20035  itself.
20036 \end_layout
20037
20038 \begin_layout Standard
20039 Note that defining a float with type 
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044
20045 \emph on
20046 type
20047 \end_layout
20048
20049 \end_inset
20050
20051  automatically defines the corresponding counter with name 
20052 \begin_inset Flex Code
20053 status collapsed
20054
20055 \begin_layout Plain Layout
20056
20057 \emph on
20058 type
20059 \end_layout
20060
20061 \end_inset
20062
20063 .
20064 \end_layout
20065
20066 \begin_layout Subsection
20067 Flex insets and InsetLayout
20068 \begin_inset CommandInset label
20069 LatexCommand label
20070 name "subsec:Flex-insets-and"
20071
20072 \end_inset
20073
20074
20075 \end_layout
20076
20077 \begin_layout Standard
20078 Flex insets come in 
20079 \change_deleted 5863208 1594239511
20080 three
20081 \change_inserted 5863208 1594239512
20082 two
20083 \change_unchanged
20084  different kinds:
20085  
20086 \end_layout
20087
20088 \begin_layout Itemize
20089 character style (
20090 \begin_inset Flex Code
20091 status collapsed
20092
20093 \begin_layout Plain Layout
20094 CharStyle
20095 \end_layout
20096
20097 \end_inset
20098
20099 ):
20100  These define semantic markup corresponding to such \SpecialChar LaTeX
20101  commands as 
20102 \begin_inset Flex Code
20103 status collapsed
20104
20105 \begin_layout Plain Layout
20106
20107 \backslash
20108 noun
20109 \end_layout
20110
20111 \end_inset
20112
20113  and 
20114 \begin_inset Flex Code
20115 status collapsed
20116
20117 \begin_layout Plain Layout
20118
20119 \backslash
20120 code
20121 \end_layout
20122
20123 \end_inset
20124
20125 .
20126 \end_layout
20127
20128 \begin_layout Itemize
20129 user custom (
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 Custom
20135 \end_layout
20136
20137 \end_inset
20138
20139 ):
20140  These can be used to define custom collapsible insets,
20141  similar to \SpecialChar TeX
20142  code,
20143  footnote,
20144  and the like.
20145  An obvious example is an endnote inset,
20146  which is defined in the 
20147 \begin_inset Flex Code
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151 endnote
20152 \end_layout
20153
20154 \end_inset
20155
20156  module.
20157 \end_layout
20158
20159 \begin_layout Itemize
20160
20161 \change_deleted 5863208 1594239528
20162 XML elements (
20163 \begin_inset Flex Code
20164 status collapsed
20165
20166 \begin_layout Plain Layout
20167 Element
20168 \end_layout
20169
20170 \end_inset
20171
20172 ):
20173  For use with DocBook classes.
20174 \change_unchanged
20175
20176 \end_layout
20177
20178 \begin_layout Standard
20179 Flex insets are defined using the 
20180 \begin_inset Flex Code
20181 status collapsed
20182
20183 \begin_layout Plain Layout
20184 InsetLayout
20185 \end_layout
20186
20187 \end_inset
20188
20189  tag,
20190  which shall be explained in a moment.
20191 \end_layout
20192
20193 \begin_layout Standard
20194 The 
20195 \begin_inset Flex Code
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 InsetLayout
20200 \end_layout
20201
20202 \end_inset
20203
20204  tag also serves another function:
20205  It can be used to customize the general layout of many different types of insets.
20206  Currently,
20207  
20208 \begin_inset Flex Code
20209 status collapsed
20210
20211 \begin_layout Plain Layout
20212 InsetLayout
20213 \end_layout
20214
20215 \end_inset
20216
20217  can be used to customize the layout parameters for footnotes,
20218  marginal notes,
20219  note insets,
20220  \SpecialChar TeX
20221  code (ERT) insets,
20222  branches,
20223  listings,
20224  indexes,
20225  boxes,
20226  tables,
20227  algorithms,
20228  URLs,
20229  and captions,
20230  as well as to define Flex insets.
20231 \end_layout
20232
20233 \begin_layout Standard
20234 The 
20235 \begin_inset Flex Code
20236 status collapsed
20237
20238 \begin_layout Plain Layout
20239 InsetLayout
20240 \end_layout
20241
20242 \end_inset
20243
20244  definition must begin with a line of the form:
20245 \end_layout
20246
20247 \begin_layout LyX-Code
20248 InsetLayout <type>
20249 \end_layout
20250
20251 \begin_layout Standard
20252 Here 
20253 \begin_inset Flex Code
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257 <Type>
20258 \end_layout
20259
20260 \end_inset
20261
20262  indicates the inset whose layout is being defined,
20263  and here there are four cases.
20264 \end_layout
20265
20266 \begin_layout Enumerate
20267 The layout for a pre-existing inset is being modified.
20268  In this case,
20269  can be 
20270 \begin_inset Flex Code
20271 status collapsed
20272
20273 \begin_layout Plain Layout
20274 <Type>
20275 \end_layout
20276
20277 \end_inset
20278
20279  any one of the following:
20280  
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285 Algorithm
20286 \end_layout
20287
20288 \end_inset
20289
20290 ,
20291  
20292 \begin_inset Flex Code
20293 status collapsed
20294
20295 \begin_layout Plain Layout
20296 Branch
20297 \end_layout
20298
20299 \end_inset
20300
20301 ,
20302  
20303 \begin_inset Flex Code
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307 Box
20308 \end_layout
20309
20310 \end_inset
20311
20312 ,
20313  
20314 \begin_inset Flex Code
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318 Box:shaded
20319 \end_layout
20320
20321 \end_inset
20322
20323 ,
20324  
20325 \begin_inset Flex Code
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329 Caption:Standard
20330 \end_layout
20331
20332 \end_inset
20333
20334 ,
20335  
20336 \begin_inset Flex Code
20337 status collapsed
20338
20339 \begin_layout Plain Layout
20340 ERT
20341 \end_layout
20342
20343 \end_inset
20344
20345 ,
20346  
20347 \begin_inset Flex Code
20348 status collapsed
20349
20350 \begin_layout Plain Layout
20351 Figure
20352 \end_layout
20353
20354 \end_inset
20355
20356 ,
20357  
20358 \begin_inset Flex Code
20359 status collapsed
20360
20361 \begin_layout Plain Layout
20362 Foot
20363 \end_layout
20364
20365 \end_inset
20366
20367 ,
20368  
20369 \begin_inset Flex Code
20370 status collapsed
20371
20372 \begin_layout Plain Layout
20373 Index
20374 \end_layout
20375
20376 \end_inset
20377
20378 ,
20379  
20380 \begin_inset Flex Code
20381 status collapsed
20382
20383 \begin_layout Plain Layout
20384 Info
20385 \end_layout
20386
20387 \end_inset
20388
20389 ,
20390  
20391 \begin_inset Flex Code
20392 status collapsed
20393
20394 \begin_layout Plain Layout
20395 Info:menu
20396 \end_layout
20397
20398 \end_inset
20399
20400 ,
20401  
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406 Info:shortcut
20407 \end_layout
20408
20409 \end_inset
20410
20411 ,
20412  
20413 \begin_inset Flex Code
20414 status collapsed
20415
20416 \begin_layout Plain Layout
20417 Info:shortcuts
20418 \end_layout
20419
20420 \end_inset
20421
20422 ,
20423  
20424 \begin_inset Flex Code
20425 status collapsed
20426
20427 \begin_layout Plain Layout
20428 Listings
20429 \end_layout
20430
20431 \end_inset
20432
20433 ,
20434  
20435 \begin_inset Flex Code
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 Marginal
20440 \end_layout
20441
20442 \end_inset
20443
20444 ,
20445  
20446 \begin_inset Flex Code
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 Note:Comment
20451 \end_layout
20452
20453 \end_inset
20454
20455 ,
20456  
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461 Note:Note
20462 \end_layout
20463
20464 \end_inset
20465
20466 ,
20467  
20468 \begin_inset Flex Code
20469 status collapsed
20470
20471 \begin_layout Plain Layout
20472 Note:Greyedout
20473 \end_layout
20474
20475 \end_inset
20476
20477 ,
20478  
20479 \begin_inset Flex Code
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483 Table
20484 \end_layout
20485
20486 \end_inset
20487
20488 ,
20489  or 
20490 \begin_inset Flex Code
20491 status collapsed
20492
20493 \begin_layout Plain Layout
20494 URL
20495 \end_layout
20496
20497 \end_inset
20498
20499 .
20500 \end_layout
20501
20502 \begin_layout Enumerate
20503 The layout for a Flex inset is being defined.
20504  In this case,
20505  
20506 \begin_inset Flex Code
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 <Type>
20511 \end_layout
20512
20513 \end_inset
20514
20515  must be of the form 
20516 \begin_inset Quotes eld
20517 \end_inset
20518
20519
20520 \begin_inset Flex Code
20521 status collapsed
20522
20523 \begin_layout Plain Layout
20524 Flex:<name>
20525 \end_layout
20526
20527 \end_inset
20528
20529
20530 \begin_inset Quotes erd
20531 \end_inset
20532
20533 ,
20534  where 
20535 \begin_inset Flex Code
20536 status collapsed
20537
20538 \begin_layout Plain Layout
20539 name
20540 \end_layout
20541
20542 \end_inset
20543
20544  may be any valid identifier not used by a pre-existing Flex inset.
20545  The identifier may include spaces,
20546  but in that case the whole thing must be wrapped in quotes.
20547  Note that the definition of a flex inset 
20548 \emph on
20549 must 
20550 \emph default
20551 also include a 
20552 \begin_inset Flex Code
20553 status collapsed
20554
20555 \begin_layout Plain Layout
20556 LyXType
20557 \end_layout
20558
20559 \end_inset
20560
20561  entry,
20562  declaring which type of inset it defines.
20563 \end_layout
20564
20565 \begin_layout Enumerate
20566 The layout for user specific branch is being defined.
20567  In this case,
20568  
20569 \begin_inset Flex Code
20570 status collapsed
20571
20572 \begin_layout Plain Layout
20573 <Type>
20574 \end_layout
20575
20576 \end_inset
20577
20578  must be of the form 
20579 \begin_inset Quotes eld
20580 \end_inset
20581
20582
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 Branch:<name>
20588 \end_layout
20589
20590 \end_inset
20591
20592
20593 \begin_inset Quotes erd
20594 \end_inset
20595
20596 ,
20597  where 
20598 \begin_inset Flex Code
20599 status collapsed
20600
20601 \begin_layout Plain Layout
20602 name
20603 \end_layout
20604
20605 \end_inset
20606
20607  may be any valid identifier of branch defined in user's document.
20608  The identifier may include spaces,
20609  but in that case the whole thing must be wrapped in quotes.
20610  The main purpose of this feature is to allow \SpecialChar LaTeX
20611  wrapping around specific branches as user needs.
20612 \end_layout
20613
20614 \begin_layout Enumerate
20615 The layout of a user (or class) specific caption is being defined.
20616  In this case,
20617  
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 <Type>
20623 \end_layout
20624
20625 \end_inset
20626
20627  must be of the form 
20628 \begin_inset Quotes eld
20629 \end_inset
20630
20631
20632 \begin_inset Flex Code
20633 status collapsed
20634
20635 \begin_layout Plain Layout
20636 Caption:<name>
20637 \end_layout
20638
20639 \end_inset
20640
20641
20642 \begin_inset Quotes erd
20643 \end_inset
20644
20645 ,
20646  where 
20647 \begin_inset Flex Code
20648 status collapsed
20649
20650 \begin_layout Plain Layout
20651 name
20652 \end_layout
20653
20654 \end_inset
20655
20656  specifies the name of the caption as it appears in the menu.
20657  Have a look at the standard caption (
20658 \begin_inset Flex Code
20659 status collapsed
20660
20661 \begin_layout Plain Layout
20662 Caption:Standard
20663 \end_layout
20664
20665 \end_inset
20666
20667 ),
20668  the specific captions of the KOMA-Script classes (
20669 \begin_inset Flex Code
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673 Caption:Above
20674 \end_layout
20675
20676 \end_inset
20677
20678 ,
20679  
20680 \begin_inset Flex Code
20681 status collapsed
20682
20683 \begin_layout Plain Layout
20684 Caption:Below
20685 \end_layout
20686
20687 \end_inset
20688
20689 ) or the module 
20690 \family sans
20691 Multilingual
20692 \begin_inset space ~
20693 \end_inset
20694
20695 Captions
20696 \begin_inset Newline linebreak
20697 \end_inset
20698
20699
20700 \family default
20701 (
20702 \begin_inset Flex Code
20703 status collapsed
20704
20705 \begin_layout Plain Layout
20706 Caption:Bicaption
20707 \end_layout
20708
20709 \end_inset
20710
20711 ) for applications.
20712 \end_layout
20713
20714 \begin_layout Standard
20715 The 
20716 \begin_inset Flex Code
20717 status collapsed
20718
20719 \begin_layout Plain Layout
20720 InsetLayout
20721 \end_layout
20722
20723 \end_inset
20724
20725  definition can contain the following entries:
20726 \end_layout
20727
20728 \begin_layout Description
20729 \begin_inset Flex Code
20730 status collapsed
20731
20732 \begin_layout Plain Layout
20733 AddToToc
20734 \end_layout
20735
20736 \end_inset
20737
20738  [
20739 \begin_inset Flex Code
20740 status collapsed
20741
20742 \begin_layout Plain Layout
20743 string
20744 \end_layout
20745
20746 \end_inset
20747
20748 =""] This inset will appear in the table of contents of the given type.
20749  An empty string disables.
20750  See also the OutlinerName and the IsTocCaption commands.
20751  This is only implemented for Flex insets.
20752  Default:
20753  disabled.
20754 \end_layout
20755
20756 \begin_layout Description
20757 \begin_inset Flex Code
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761 Argument
20762 \end_layout
20763
20764 \end_inset
20765
20766  [
20767 \begin_inset Flex Code
20768 status collapsed
20769
20770 \begin_layout Plain Layout
20771 int
20772 \end_layout
20773
20774 \end_inset
20775
20776 ] Defines argument number of a command\SpecialChar breakableslash
20777 environment associated with the current layout.
20778  The definition must end with 
20779 \begin_inset Flex Code
20780 status collapsed
20781
20782 \begin_layout Plain Layout
20783 EndArgument
20784 \end_layout
20785
20786 \end_inset
20787
20788 .
20789  See 
20790 \change_inserted -584632292 1615846847
20791
20792 \begin_inset CommandInset ref
20793 LatexCommand ref
20794 reference "subsec:Arguments"
20795 plural "false"
20796 caps "false"
20797 noprefix "false"
20798
20799 \end_inset
20800
20801
20802 \change_deleted -584632292 1615846847
20803
20804 \begin_inset CommandInset ref
20805 LatexCommand ref
20806 reference "subsec:Paragraph-Styles"
20807
20808 \end_inset
20809
20810
20811 \change_unchanged
20812  for 
20813 \change_deleted -584632292 1615846902
20814 details
20815 \change_inserted -584632292 1615846906
20816 more information
20817 \change_unchanged
20818 .
20819 \end_layout
20820
20821 \begin_layout Description
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 BabelPreamble
20827 \end_layout
20828
20829 \end_inset
20830
20831  Preamble for changing language commands;
20832  see 
20833 \begin_inset CommandInset ref
20834 LatexCommand ref
20835 reference "subsec:I18n"
20836
20837 \end_inset
20838
20839 .
20840 \end_layout
20841
20842 \begin_layout Description
20843 \begin_inset Flex Code
20844 status collapsed
20845
20846 \begin_layout Plain Layout
20847 BgColor
20848 \end_layout
20849
20850 \end_inset
20851
20852  [
20853 \begin_inset Flex Code
20854 status collapsed
20855
20856 \begin_layout Plain Layout
20857 <name>
20858 \end_layout
20859
20860 \end_inset
20861
20862 ] The color for the inset's background.
20863  See 
20864 \begin_inset CommandInset ref
20865 LatexCommand ref
20866 reference "chap:Names-of-colors"
20867
20868 \end_inset
20869
20870  for a list of the available color names.
20871 \end_layout
20872
20873 \begin_layout Description
20874 \begin_inset Flex Code
20875 status collapsed
20876
20877 \begin_layout Plain Layout
20878 ContentAsLabel
20879 \end_layout
20880
20881 \end_inset
20882
20883  [
20884 \begin_inset Flex Code
20885 status collapsed
20886
20887 \begin_layout Plain Layout
20888
20889 \emph on
20890 0
20891 \end_layout
20892
20893 \end_inset
20894
20895 ,
20896 \begin_inset space \thinspace{}
20897 \end_inset
20898
20899
20900 \begin_inset Flex Code
20901 status collapsed
20902
20903 \begin_layout Plain Layout
20904 1
20905 \end_layout
20906
20907 \end_inset
20908
20909 ] Whether to use the content of the inset as the label,
20910  when the inset is closed.
20911  Default is false.
20912 \end_layout
20913
20914 \begin_layout Description
20915 \begin_inset Flex Code
20916 status collapsed
20917
20918 \begin_layout Plain Layout
20919 CopyStyle
20920 \end_layout
20921
20922 \end_inset
20923
20924  [
20925 \begin_inset Flex Code
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 <type>
20930 \end_layout
20931
20932 \end_inset
20933
20934 ] As with paragraph styles,
20935  see 
20936 \begin_inset CommandInset ref
20937 LatexCommand ref
20938 reference "subsec:Paragraph-Styles"
20939
20940 \end_inset
20941
20942 .
20943  Note that you need to specify the complete type,
20944  e.
20945 \begin_inset space \thinspace{}
20946 \end_inset
20947
20948 g.
20949 \begin_inset space ~
20950 \end_inset
20951
20952
20953 \begin_inset Flex Code
20954 status collapsed
20955
20956 \begin_layout Plain Layout
20957 CopyStyle Flex:<name>
20958 \end_layout
20959
20960 \end_inset
20961
20962 .
20963 \end_layout
20964
20965 \begin_layout Description
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 CustomPars
20971 \end_layout
20972
20973 \end_inset
20974
20975  [
20976 \begin_inset Flex Code
20977 status collapsed
20978
20979 \begin_layout Plain Layout
20980
20981 \emph on
20982 0
20983 \end_layout
20984
20985 \end_inset
20986
20987 ,
20988 \begin_inset space \thinspace{}
20989 \end_inset
20990
20991
20992 \begin_inset Flex Code
20993 status collapsed
20994
20995 \begin_layout Plain Layout
20996 1
20997 \end_layout
20998
20999 \end_inset
21000
21001 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
21002 \end_layout
21003
21004 \begin_layout Description
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 Decoration
21010 \end_layout
21011
21012 \end_inset
21013
21014  can be 
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019 Classic
21020 \end_layout
21021
21022 \end_inset
21023
21024 ,
21025  
21026 \begin_inset Flex Code
21027 status collapsed
21028
21029 \begin_layout Plain Layout
21030 Minimalistic
21031 \end_layout
21032
21033 \end_inset
21034
21035 ,
21036  or 
21037 \begin_inset Flex Code
21038 status collapsed
21039
21040 \begin_layout Plain Layout
21041 Conglomerate
21042 \end_layout
21043
21044 \end_inset
21045
21046 ,
21047  describing the rendering style used for the inset's frame and buttons.
21048  Footnotes generally use 
21049 \begin_inset Flex Code
21050 status collapsed
21051
21052 \begin_layout Plain Layout
21053 Classic
21054 \end_layout
21055
21056 \end_inset
21057
21058 ,
21059  ERT insets generally 
21060 \begin_inset Flex Code
21061 status collapsed
21062
21063 \begin_layout Plain Layout
21064 Minimalistic
21065 \end_layout
21066
21067 \end_inset
21068
21069 ,
21070  and character styles 
21071 \begin_inset Flex Code
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075 Conglomerate
21076 \end_layout
21077
21078 \end_inset
21079
21080 .
21081 \end_layout
21082
21083 \begin_layout Description
21084 \begin_inset Flex Code
21085 status collapsed
21086
21087 \begin_layout Plain Layout
21088 Display
21089 \end_layout
21090
21091 \end_inset
21092
21093  [
21094 \begin_inset Flex Code
21095 status collapsed
21096
21097 \begin_layout Plain Layout
21098 0
21099 \end_layout
21100
21101 \end_inset
21102
21103 ,
21104 \emph on
21105
21106 \begin_inset space \thinspace{}
21107 \end_inset
21108
21109
21110 \emph default
21111
21112 \begin_inset Flex Code
21113 status collapsed
21114
21115 \begin_layout Plain Layout
21116
21117 \emph on
21118 1
21119 \end_layout
21120
21121 \end_inset
21122
21123 ] Only useful if 
21124 \begin_inset Flex Code
21125 status collapsed
21126
21127 \begin_layout Plain Layout
21128 LatexType
21129 \end_layout
21130
21131 \end_inset
21132
21133  is 
21134 \begin_inset Flex Code
21135 status collapsed
21136
21137 \begin_layout Plain Layout
21138 Environment
21139 \end_layout
21140
21141 \end_inset
21142
21143 .
21144  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
21145  If set to false,
21146  it is supposed that the \SpecialChar LaTeX
21147  environment ignores white space (including one newline character) after the 
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152
21153 \backslash
21154 begin{
21155 \emph on
21156 LatexName
21157 \emph default
21158 }
21159 \end_layout
21160
21161 \end_inset
21162
21163  and 
21164 \begin_inset Flex Code
21165 status collapsed
21166
21167 \begin_layout Plain Layout
21168
21169 \backslash
21170 end{
21171 \emph on
21172 LatexName
21173 \emph default
21174 }
21175 \end_layout
21176
21177 \end_inset
21178
21179  tags.
21180  Default is true.
21181 \change_inserted 731793113 1538674858
21182
21183 \end_layout
21184
21185 \begin_layout Description
21186
21187 \change_inserted 731793113 1538674891
21188 \begin_inset Flex Code
21189 status open
21190
21191 \begin_layout Plain Layout
21192
21193 \change_inserted 731793113 1538674863
21194 EditExternal
21195 \change_unchanged
21196
21197 \end_layout
21198
21199 \end_inset
21200
21201  [
21202 \emph on
21203 0
21204 \emph default
21205 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
21206 \change_unchanged
21207
21208 \end_layout
21209
21210 \begin_layout Description
21211 \begin_inset Flex Code
21212 status collapsed
21213
21214 \begin_layout Plain Layout
21215 End
21216 \end_layout
21217
21218 \end_inset
21219
21220  Required at the end of the 
21221 \begin_inset Flex Code
21222 status collapsed
21223
21224 \begin_layout Plain Layout
21225 InsetLayout
21226 \end_layout
21227
21228 \end_inset
21229
21230  declarations.
21231 \end_layout
21232
21233 \begin_layout Description
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 Font
21239 \end_layout
21240
21241 \end_inset
21242
21243  The font used for both the text body 
21244 \emph on
21245 and
21246 \emph default
21247  the label.
21248  See 
21249 \begin_inset CommandInset ref
21250 LatexCommand ref
21251 reference "subsec:Font-description"
21252
21253 \end_inset
21254
21255 .
21256  Note that defining this font automatically defines the 
21257 \begin_inset Flex Code
21258 status collapsed
21259
21260 \begin_layout Plain Layout
21261 LabelFont
21262 \end_layout
21263
21264 \end_inset
21265
21266  to the same value,
21267  so define this first and define 
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 LabelFont
21273 \end_layout
21274
21275 \end_inset
21276
21277  later if you want them to be different.
21278 \end_layout
21279
21280 \begin_layout Description
21281 \begin_inset Flex Code
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 FixedWidthPreambleEncoding
21286 \end_layout
21287
21288 \end_inset
21289
21290  [
21291 \begin_inset Flex Code
21292 status collapsed
21293
21294 \begin_layout Plain Layout
21295
21296 \emph on
21297 0
21298 \end_layout
21299
21300 \end_inset
21301
21302 ,
21303 \begin_inset space \thinspace{}
21304 \end_inset
21305
21306
21307 \begin_inset Flex Code
21308 status collapsed
21309
21310 \begin_layout Plain Layout
21311 1
21312 \end_layout
21313
21314 \end_inset
21315
21316 ] Force a fixed width encoding for the translated contents of 
21317 \begin_inset Flex Code
21318 status collapsed
21319
21320 \begin_layout Plain Layout
21321 BabelPreamble
21322 \end_layout
21323
21324 \end_inset
21325
21326  and 
21327 \begin_inset Flex Code
21328 status collapsed
21329
21330 \begin_layout Plain Layout
21331 LangPreamble
21332 \end_layout
21333
21334 \end_inset
21335
21336  code generated by this layout.
21337  This is needed for special \SpecialChar LaTeX
21338 -packages like 
21339 \family typewriter
21340 listings
21341 \family default
21342  that do not work with variable width encodings such as 
21343 \family sans
21344 utf8
21345 \family default
21346 .
21347  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
21348  backends such as Xe\SpecialChar TeX
21349  or Lua\SpecialChar TeX
21350  are used.
21351 \end_layout
21352
21353 \begin_layout Description
21354 \begin_inset Flex Code
21355 status collapsed
21356
21357 \begin_layout Plain Layout
21358 ForceLocalFontSwitch
21359 \end_layout
21360
21361 \end_inset
21362
21363  [
21364 \begin_inset Flex Code
21365 status collapsed
21366
21367 \begin_layout Plain Layout
21368
21369 \emph on
21370 0
21371 \end_layout
21372
21373 \end_inset
21374
21375 ,
21376 \begin_inset space \thinspace{}
21377 \end_inset
21378
21379
21380 \begin_inset Flex Code
21381 status collapsed
21382
21383 \begin_layout Plain Layout
21384 1
21385 \end_layout
21386
21387 \end_inset
21388
21389 ] When using babel,
21390  always use a local font switch (
21391 \begin_inset Flex Code
21392 status collapsed
21393
21394 \begin_layout Plain Layout
21395
21396 \backslash
21397 foreignlanguage
21398 \end_layout
21399
21400 \end_inset
21401
21402 ),
21403  never a global one (such as 
21404 \begin_inset Flex Code
21405 status collapsed
21406
21407 \begin_layout Plain Layout
21408
21409 \backslash
21410 selectlanguage
21411 \end_layout
21412
21413 \end_inset
21414
21415 ).
21416 \end_layout
21417
21418 \begin_layout Description
21419 \begin_inset Flex Code
21420 status collapsed
21421
21422 \begin_layout Plain Layout
21423 ForceLTR
21424 \end_layout
21425
21426 \end_inset
21427
21428  [
21429 \begin_inset Flex Code
21430 status collapsed
21431
21432 \begin_layout Plain Layout
21433
21434 \emph on
21435 0
21436 \end_layout
21437
21438 \end_inset
21439
21440 ,
21441 \begin_inset space \thinspace{}
21442 \end_inset
21443
21444
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 1
21450 \end_layout
21451
21452 \end_inset
21453
21454 ] Force the 
21455 \begin_inset Quotes eld
21456 \end_inset
21457
21458 latex
21459 \begin_inset Quotes erd
21460 \end_inset
21461
21462  language,
21463  leading to Left-to-Right (Latin) output,
21464  e.
21465 \begin_inset space \thinspace{}
21466 \end_inset
21467
21468 g.
21469 \begin_inset space \space{}
21470 \end_inset
21471
21472 in \SpecialChar TeX
21473  code or URL.
21474  A kludge.
21475 \end_layout
21476
21477 \begin_layout Description
21478 \begin_inset Flex Code
21479 status collapsed
21480
21481 \begin_layout Plain Layout
21482 ForceOwnlines
21483 \end_layout
21484
21485 \end_inset
21486
21487  [
21488 \begin_inset Flex Code
21489 status collapsed
21490
21491 \begin_layout Plain Layout
21492
21493 \emph on
21494 0
21495 \end_layout
21496
21497 \end_inset
21498
21499 ,
21500 \begin_inset space \thinspace{}
21501 \end_inset
21502
21503
21504 \begin_inset Flex Code
21505 status collapsed
21506
21507 \begin_layout Plain Layout
21508 1
21509 \end_layout
21510
21511 \end_inset
21512
21513 ] Force a line break in the \SpecialChar LaTeX
21514  output before the inset starts and after the inset ends.
21515  This assures the inset itself is output on its own lines,
21516  for parsing purposes.
21517 \end_layout
21518
21519 \begin_layout Description
21520 \begin_inset Flex Code
21521 status collapsed
21522
21523 \begin_layout Plain Layout
21524 ForcePlain
21525 \end_layout
21526
21527 \end_inset
21528
21529  [
21530 \begin_inset Flex Code
21531 status collapsed
21532
21533 \begin_layout Plain Layout
21534
21535 \emph on
21536 0
21537 \end_layout
21538
21539 \end_inset
21540
21541 ,
21542 \begin_inset space \thinspace{}
21543 \end_inset
21544
21545
21546 \begin_inset Flex Code
21547 status collapsed
21548
21549 \begin_layout Plain Layout
21550 1
21551 \end_layout
21552
21553 \end_inset
21554
21555 ] Indicates whether the 
21556 \begin_inset Flex Code
21557 status collapsed
21558
21559 \begin_layout Plain Layout
21560 PlainLayout
21561 \end_layout
21562
21563 \end_inset
21564
21565  should be used or,
21566  instead,
21567  the user can change the paragraph style used in the inset.
21568  Default is false.
21569 \end_layout
21570
21571 \begin_layout Description
21572 \begin_inset Flex Code
21573 status collapsed
21574
21575 \begin_layout Plain Layout
21576 FreeSpacing
21577 \end_layout
21578
21579 \end_inset
21580
21581  [
21582 \begin_inset Flex Code
21583 status collapsed
21584
21585 \begin_layout Plain Layout
21586
21587 \emph on
21588 0
21589 \end_layout
21590
21591 \end_inset
21592
21593 ,
21594 \begin_inset space \thinspace{}
21595 \end_inset
21596
21597
21598 \begin_inset Flex Code
21599 status collapsed
21600
21601 \begin_layout Plain Layout
21602 1
21603 \end_layout
21604
21605 \end_inset
21606
21607 ] As with paragraph styles,
21608  see 
21609 \begin_inset CommandInset ref
21610 LatexCommand ref
21611 reference "subsec:Paragraph-Styles"
21612
21613 \end_inset
21614
21615 .
21616 \end_layout
21617
21618 \begin_layout Description
21619 \begin_inset Flex Code
21620 status collapsed
21621
21622 \begin_layout Plain Layout
21623 HTML*
21624 \end_layout
21625
21626 \end_inset
21627
21628  These tags control the XHTML output.
21629  See 
21630 \begin_inset CommandInset ref
21631 LatexCommand ref
21632 reference "sec:Tags-for-XHTML"
21633
21634 \end_inset
21635
21636 .
21637 \end_layout
21638
21639 \begin_layout Description
21640 \begin_inset Flex Code
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644 InToc
21645 \end_layout
21646
21647 \end_inset
21648
21649  [
21650 \begin_inset Flex Code
21651 status collapsed
21652
21653 \begin_layout Plain Layout
21654
21655 \emph on
21656 0
21657 \end_layout
21658
21659 \end_inset
21660
21661 ,
21662 \begin_inset space \thinspace{}
21663 \end_inset
21664
21665
21666 \begin_inset Flex Code
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 1
21671 \end_layout
21672
21673 \end_inset
21674
21675 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
21676  regardless of the AddToToc setting.
21677  One would not,
21678  for example,
21679  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
21680  but one would normally want the content of a character style displayed.
21681  Default is false:
21682  not to include.
21683 \end_layout
21684
21685 \begin_layout Description
21686 \begin_inset Flex Code
21687 status collapsed
21688
21689 \begin_layout Plain Layout
21690 IsTocCaption
21691 \end_layout
21692
21693 \end_inset
21694
21695  [
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700
21701 \emph on
21702 0
21703 \end_layout
21704
21705 \end_inset
21706
21707 ,
21708 \begin_inset space \thinspace{}
21709 \end_inset
21710
21711
21712 \begin_inset Flex Code
21713 status collapsed
21714
21715 \begin_layout Plain Layout
21716 1
21717 \end_layout
21718
21719 \end_inset
21720
21721 ] If this is set to 1 and AddToToc is enabled,
21722  the inset adds a summary of its contents in its item in the table of contents.
21723  Otherwise,
21724  only the label appears.
21725 \end_layout
21726
21727 \begin_layout Description
21728 \begin_inset Flex Code
21729 status collapsed
21730
21731 \begin_layout Plain Layout
21732 KeepEmpty
21733 \end_layout
21734
21735 \end_inset
21736
21737  [
21738 \emph on
21739
21740 \begin_inset Flex Code
21741 status collapsed
21742
21743 \begin_layout Plain Layout
21744 0
21745 \end_layout
21746
21747 \end_inset
21748
21749
21750 \emph default
21751 ,
21752 \begin_inset space \thinspace{}
21753 \end_inset
21754
21755
21756 \begin_inset Flex Code
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 1
21761 \end_layout
21762
21763 \end_inset
21764
21765 ] As with paragraph styles,
21766  see 
21767 \begin_inset CommandInset ref
21768 LatexCommand ref
21769 reference "subsec:Paragraph-Styles"
21770
21771 \end_inset
21772
21773 .
21774 \end_layout
21775
21776 \begin_layout Description
21777 \begin_inset Flex Code
21778 status collapsed
21779
21780 \begin_layout Plain Layout
21781 LabelFont
21782 \end_layout
21783
21784 \end_inset
21785
21786  The font used for the label.
21787  See 
21788 \begin_inset CommandInset ref
21789 LatexCommand ref
21790 reference "subsec:Font-description"
21791
21792 \end_inset
21793
21794 .
21795  Note that this definition can never appear before 
21796 \begin_inset Flex Code
21797 status collapsed
21798
21799 \begin_layout Plain Layout
21800 Font
21801 \end_layout
21802
21803 \end_inset
21804
21805 ,
21806  lest it be ineffective.
21807 \end_layout
21808
21809 \begin_layout Description
21810 \begin_inset Flex Code
21811 status collapsed
21812
21813 \begin_layout Plain Layout
21814 LabelString
21815 \end_layout
21816
21817 \end_inset
21818
21819  [
21820 \begin_inset Flex Code
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824 string
21825 \end_layout
21826
21827 \end_inset
21828
21829 =
21830 \begin_inset Quotes erd
21831 \end_inset
21832
21833
21834 \begin_inset Quotes erd
21835 \end_inset
21836
21837 ] What will be displayed on the button or elsewhere as the inset label.
21838  Some inset types (
21839 \begin_inset Flex Code
21840 status collapsed
21841
21842 \begin_layout Plain Layout
21843 \SpecialChar TeX
21844  code
21845 \end_layout
21846
21847 \end_inset
21848
21849  and 
21850 \begin_inset Flex Code
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 Branch
21855 \end_layout
21856
21857 \end_inset
21858
21859 ) modify this label on the fly.
21860 \end_layout
21861
21862 \begin_layout Description
21863 \begin_inset Flex Code
21864 status collapsed
21865
21866 \begin_layout Plain Layout
21867 LangPreamble
21868 \end_layout
21869
21870 \end_inset
21871
21872  Language dependent preamble;
21873  see 
21874 \begin_inset CommandInset ref
21875 LatexCommand ref
21876 reference "subsec:I18n"
21877
21878 \end_inset
21879
21880 .
21881 \end_layout
21882
21883 \begin_layout Description
21884 \begin_inset Flex Code
21885 status collapsed
21886
21887 \begin_layout Plain Layout
21888 LatexName
21889 \end_layout
21890
21891 \end_inset
21892
21893  [
21894 \begin_inset Flex Code
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898 <name>
21899 \end_layout
21900
21901 \end_inset
21902
21903 ] The name of the corresponding \SpecialChar LaTeX
21904  stuff.
21905  Either the environment or command name.
21906 \end_layout
21907
21908 \begin_layout Description
21909 \begin_inset Flex Code
21910 status collapsed
21911
21912 \begin_layout Plain Layout
21913 LatexParam
21914 \end_layout
21915
21916 \end_inset
21917
21918  [
21919 \begin_inset Flex Code
21920 status collapsed
21921
21922 \begin_layout Plain Layout
21923 <parameter>
21924 \end_layout
21925
21926 \end_inset
21927
21928 ] The optional parameter for the corresponding 
21929 \begin_inset Flex Code
21930 status collapsed
21931
21932 \begin_layout Plain Layout
21933 LatexName
21934 \end_layout
21935
21936 \end_inset
21937
21938  stuff,
21939  including possible bracket pairs like 
21940 \begin_inset Flex Code
21941 status collapsed
21942
21943 \begin_layout Plain Layout
21944 []
21945 \end_layout
21946
21947 \end_inset
21948
21949 .
21950  This parameter cannot be changed from within \SpecialChar LyX
21951  (use 
21952 \begin_inset Flex Code
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956 Argument
21957 \end_layout
21958
21959 \end_inset
21960
21961  for customizable parameters).
21962  It will be output as is after all \SpecialChar LaTeX
21963  
21964 \begin_inset Flex Code
21965 status collapsed
21966
21967 \begin_layout Plain Layout
21968 Argument
21969 \end_layout
21970
21971 \end_inset
21972
21973 s.
21974 \end_layout
21975
21976 \begin_layout Description
21977 \begin_inset Flex Code
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981 LatexType
21982 \end_layout
21983
21984 \end_inset
21985
21986  [
21987 \begin_inset Flex Code
21988 status collapsed
21989
21990 \begin_layout Plain Layout
21991 Command,
21992  Environment,
21993  None
21994 \end_layout
21995
21996 \end_inset
21997
21998 ] How the style should be translated into \SpecialChar LaTeX
21999 .
22000 \begin_inset Foot
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004 \begin_inset Flex Code
22005 status collapsed
22006
22007 \begin_layout Plain Layout
22008 LatexType
22009 \end_layout
22010
22011 \end_inset
22012
22013  is perhaps a bit misleading,
22014  since these rules apply to SGML classes too.
22015  Visit the SGML class files for specific examples.
22016 \end_layout
22017
22018 \end_inset
22019
22020
22021 \end_layout
22022
22023 \begin_deeper
22024 \begin_layout Description
22025 \begin_inset Flex Code
22026 status collapsed
22027
22028 \begin_layout Plain Layout
22029 None
22030 \end_layout
22031
22032 \end_inset
22033
22034  means nothing special
22035 \end_layout
22036
22037 \begin_layout Description
22038 \begin_inset Flex Code
22039 status collapsed
22040
22041 \begin_layout Plain Layout
22042 Command
22043 \end_layout
22044
22045 \end_inset
22046
22047  means 
22048 \begin_inset Flex Code
22049 status collapsed
22050
22051 \begin_layout Plain Layout
22052
22053 \backslash
22054
22055 \emph on
22056 LatexName
22057 \emph default
22058 {\SpecialChar ldots
22059 }
22060 \end_layout
22061
22062 \end_inset
22063
22064
22065 \end_layout
22066
22067 \begin_layout Description
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 Environment
22073 \end_layout
22074
22075 \end_inset
22076
22077  means 
22078 \begin_inset Flex Code
22079 status collapsed
22080
22081 \begin_layout Plain Layout
22082
22083 \backslash
22084 begin{
22085 \emph on
22086 LatexName
22087 \emph default
22088 }\SpecialChar ldots
22089
22090 \backslash
22091 end{
22092 \emph on
22093 LatexName
22094 \emph default
22095 }
22096 \end_layout
22097
22098 \end_inset
22099
22100
22101 \end_layout
22102
22103 \begin_layout Standard
22104 Putting the last few things together,
22105  the \SpecialChar LaTeX
22106  output will be either:
22107  
22108 \end_layout
22109
22110 \begin_layout LyX-Code
22111
22112 \backslash
22113 LatexName[LatexParam]{\SpecialChar ldots
22114 }
22115 \end_layout
22116
22117 \begin_layout Standard
22118 or:
22119  
22120 \end_layout
22121
22122 \begin_layout LyX-Code
22123
22124 \backslash
22125 begin{LatexName}[LatexParam] \SpecialChar ldots
22126  
22127 \backslash
22128 end{LatexName}
22129 \end_layout
22130
22131 \begin_layout Standard
22132 depending upon the \SpecialChar LaTeX
22133  type.
22134 \end_layout
22135
22136 \end_deeper
22137 \begin_layout Description
22138 \begin_inset Flex Code
22139 status collapsed
22140
22141 \begin_layout Plain Layout
22142 LeftDelim
22143 \end_layout
22144
22145 \end_inset
22146
22147  [
22148 \begin_inset Flex Code
22149 status collapsed
22150
22151 \begin_layout Plain Layout
22152 string
22153 \end_layout
22154
22155 \end_inset
22156
22157 ] A string that is put at the beginning of the layout content.
22158  A line break in the output can be indicated by 
22159 \begin_inset Flex Code
22160 status collapsed
22161
22162 \begin_layout Plain Layout
22163 <br/>
22164 \end_layout
22165
22166 \end_inset
22167
22168 .
22169 \end_layout
22170
22171 \begin_layout Description
22172 \begin_inset Flex Code
22173 status collapsed
22174
22175 \begin_layout Plain Layout
22176 LyxType
22177 \end_layout
22178
22179 \end_inset
22180
22181  Can be 
22182 \begin_inset Flex Code
22183 status collapsed
22184
22185 \begin_layout Plain Layout
22186 charstyle
22187 \end_layout
22188
22189 \end_inset
22190
22191 ,
22192  
22193 \begin_inset Flex Code
22194 status collapsed
22195
22196 \begin_layout Plain Layout
22197 custom
22198 \end_layout
22199
22200 \end_inset
22201
22202 ,
22203  
22204 \change_deleted -584632292 1615846609
22205
22206 \begin_inset Flex Code
22207 status collapsed
22208
22209 \begin_layout Plain Layout
22210 element
22211 \end_layout
22212
22213 \end_inset
22214
22215  
22216 \change_unchanged
22217 or 
22218 \begin_inset Flex Code
22219 status collapsed
22220
22221 \begin_layout Plain Layout
22222 end
22223 \end_layout
22224
22225 \end_inset
22226
22227  (indicating a dummy definition ending definitions of charstyles,
22228  etc).
22229  This entry is required in and is only meaningful for Flex insets.
22230  Among other things,
22231  it determines on which menu this inset will appear.
22232  Setting 
22233 \begin_inset Flex Code
22234 status collapsed
22235
22236 \begin_layout Plain Layout
22237 LyxType
22238 \end_layout
22239
22240 \end_inset
22241
22242  to 
22243 \begin_inset Flex Code
22244 status collapsed
22245
22246 \begin_layout Plain Layout
22247 charstyle
22248 \end_layout
22249
22250 \end_inset
22251
22252  will automatically set 
22253 \begin_inset Flex Code
22254 status collapsed
22255
22256 \begin_layout Plain Layout
22257 MultiPar
22258 \end_layout
22259
22260 \end_inset
22261
22262  to false and 
22263 \begin_inset Flex Code
22264 status collapsed
22265
22266 \begin_layout Plain Layout
22267 ForcePlain
22268 \end_layout
22269
22270 \end_inset
22271
22272  to true.
22273  
22274 \begin_inset Flex Code
22275 status collapsed
22276
22277 \begin_layout Plain Layout
22278 MultiPar
22279 \end_layout
22280
22281 \end_inset
22282
22283  can be set to true,
22284  or 
22285 \begin_inset Flex Code
22286 status collapsed
22287
22288 \begin_layout Plain Layout
22289 ForcePlain
22290 \end_layout
22291
22292 \end_inset
22293
22294  to false,
22295  for 
22296 \begin_inset Flex Code
22297 status collapsed
22298
22299 \begin_layout Plain Layout
22300 charstyle
22301 \end_layout
22302
22303 \end_inset
22304
22305  insets by setting it 
22306 \emph on
22307 after
22308 \emph default
22309  you set the 
22310 \begin_inset Flex Code
22311 status collapsed
22312
22313 \begin_layout Plain Layout
22314 LyxType
22315 \end_layout
22316
22317 \end_inset
22318
22319 .
22320 \change_inserted -712698321 1555575738
22321
22322 \end_layout
22323
22324 \begin_layout Description
22325
22326 \change_inserted -712698321 1555575844
22327 \begin_inset Flex Code
22328 status collapsed
22329
22330 \begin_layout Plain Layout
22331
22332 \change_inserted -712698321 1555575740
22333 MenuString
22334 \change_unchanged
22335
22336 \end_layout
22337
22338 \end_inset
22339
22340  
22341 \begin_inset Flex Code
22342 status collapsed
22343
22344 \begin_layout Plain Layout
22345
22346 \change_inserted -712698321 1555575740
22347 [string]
22348 \change_unchanged
22349
22350 \end_layout
22351
22352 \end_inset
22353
22354  A dedicated string for the menu.
22355  You can define an accelerator by appending the respective character to the string,
22356  divided by 
22357 \begin_inset Quotes eld
22358 \end_inset
22359
22360 |
22361 \begin_inset Quotes erd
22362 \end_inset
22363
22364  (e.
22365 \begin_inset space \thinspace{}
22366 \end_inset
22367
22368 g.
22369 \begin_inset space \space{}
22370 \end_inset
22371
22372
22373 \begin_inset Quotes eld
22374 \end_inset
22375
22376
22377 \begin_inset Flex Code
22378 status collapsed
22379
22380 \begin_layout Plain Layout
22381
22382 \change_inserted -712698321 1555575781
22383 My Inset|M
22384 \change_unchanged
22385
22386 \end_layout
22387
22388 \end_inset
22389
22390
22391 \begin_inset Quotes erd
22392 \end_inset
22393
22394 ).
22395  This specification is optional.
22396  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
22397 \change_unchanged
22398
22399 \end_layout
22400
22401 \begin_layout Description
22402 \begin_inset Flex Code
22403 status collapsed
22404
22405 \begin_layout Plain Layout
22406 MultiPar
22407 \end_layout
22408
22409 \end_inset
22410
22411  [
22412 \begin_inset Flex Code
22413 status collapsed
22414
22415 \begin_layout Plain Layout
22416
22417 \emph on
22418 0
22419 \end_layout
22420
22421 \end_inset
22422
22423 ,
22424 \begin_inset space \thinspace{}
22425 \end_inset
22426
22427
22428 \begin_inset Flex Code
22429 status collapsed
22430
22431 \begin_layout Plain Layout
22432 1
22433 \end_layout
22434
22435 \end_inset
22436
22437 ] Whether multiple paragraphs are permitted in this inset.
22438  This will also set 
22439 \begin_inset Flex Code
22440 status collapsed
22441
22442 \begin_layout Plain Layout
22443 CustomPars
22444 \end_layout
22445
22446 \end_inset
22447
22448  to the same value and 
22449 \begin_inset Flex Code
22450 status collapsed
22451
22452 \begin_layout Plain Layout
22453 ForcePlain
22454 \end_layout
22455
22456 \end_inset
22457
22458  to the opposite value.
22459  These can be reset to other values,
22460  if they are used 
22461 \emph on
22462 after
22463 \emph default
22464  
22465 \begin_inset Flex Code
22466 status collapsed
22467
22468 \begin_layout Plain Layout
22469 MultiPar
22470 \end_layout
22471
22472 \end_inset
22473
22474 .
22475  Default is true.
22476 \end_layout
22477
22478 \begin_layout Description
22479 \begin_inset Flex Code
22480 status collapsed
22481
22482 \begin_layout Plain Layout
22483 NeedProtect
22484 \end_layout
22485
22486 \end_inset
22487
22488  [
22489 \begin_inset Flex Code
22490 status collapsed
22491
22492 \begin_layout Plain Layout
22493
22494 \emph on
22495 0
22496 \end_layout
22497
22498 \end_inset
22499
22500 ,
22501 \begin_inset space \thinspace{}
22502 \end_inset
22503
22504
22505 \begin_inset Flex Code
22506 status collapsed
22507
22508 \begin_layout Plain Layout
22509 1
22510 \end_layout
22511
22512 \end_inset
22513
22514 ] Whether fragile commands in this inset should be 
22515 \begin_inset Flex Code
22516 status collapsed
22517
22518 \begin_layout Plain Layout
22519
22520 \backslash
22521 protect
22522 \end_layout
22523
22524 \end_inset
22525
22526 'ed.
22527  (Note:
22528  This is 
22529 \emph on
22530 not
22531 \emph default
22532  whether the command should itself be protected.) Default is false.
22533 \change_inserted -712698321 1523633958
22534
22535 \end_layout
22536
22537 \begin_layout Description
22538
22539 \change_inserted -712698321 1552395786
22540 \begin_inset Flex Code
22541 status collapsed
22542
22543 \begin_layout Plain Layout
22544
22545 \change_inserted -712698321 1523633961
22546 NeedCProtect
22547 \change_unchanged
22548
22549 \end_layout
22550
22551 \end_inset
22552
22553  [
22554 \begin_inset Flex Code
22555 status collapsed
22556
22557 \begin_layout Plain Layout
22558
22559 \change_inserted -712698321 1523633958
22560
22561 \emph on
22562 0
22563 \change_unchanged
22564
22565 \end_layout
22566
22567 \end_inset
22568
22569 ,
22570 \begin_inset space \thinspace{}
22571 \end_inset
22572
22573
22574 \begin_inset Flex Code
22575 status collapsed
22576
22577 \begin_layout Plain Layout
22578
22579 \change_inserted -712698321 1523633958
22580 1
22581 \change_unchanged
22582
22583 \end_layout
22584
22585 \end_inset
22586
22587 ] This causes macros that contain this inset to be protected with 
22588 \begin_inset Flex Code
22589 status collapsed
22590
22591 \begin_layout Plain Layout
22592
22593 \change_inserted -712698321 1523634038
22594
22595 \backslash
22596 cprotect
22597 \change_unchanged
22598
22599 \end_layout
22600
22601 \end_inset
22602
22603  (cf.
22604  package 
22605 \family sans
22606 cprotect
22607 \family default
22608 ) if necessary and thus allows (some) verbatim stuff in macros.
22609  Default is false.
22610 \end_layout
22611
22612 \begin_layout Description
22613
22614 \change_inserted -712698321 1555579651
22615 \begin_inset Flex Code
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619
22620 \change_inserted -712698321 1552395787
22621 NeedMBoxProtect
22622 \change_unchanged
22623
22624 \end_layout
22625
22626 \end_inset
22627
22628  [
22629 \begin_inset Flex Code
22630 status collapsed
22631
22632 \begin_layout Plain Layout
22633
22634 \change_inserted -712698321 1552395787
22635
22636 \emph on
22637 0
22638 \change_unchanged
22639
22640 \end_layout
22641
22642 \end_inset
22643
22644 ,
22645 \begin_inset space \thinspace{}
22646 \end_inset
22647
22648
22649 \begin_inset Flex Code
22650 status collapsed
22651
22652 \begin_layout Plain Layout
22653
22654 \change_inserted -712698321 1552395787
22655 1
22656 \change_unchanged
22657
22658 \end_layout
22659
22660 \end_inset
22661
22662 ] Whether specific commands in this inset (such as 
22663 \begin_inset Flex Code
22664 status collapsed
22665
22666 \begin_layout Plain Layout
22667
22668 \change_inserted -712698321 1552395787
22669
22670 \backslash
22671 cite
22672 \change_unchanged
22673
22674 \end_layout
22675
22676 \end_inset
22677
22678  and 
22679 \begin_inset Flex Code
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683
22684 \change_inserted -712698321 1552395787
22685
22686 \backslash
22687 ref
22688 \change_unchanged
22689
22690 \end_layout
22691
22692 \end_inset
22693
22694 ) should be protected in an 
22695 \begin_inset Flex Code
22696 status collapsed
22697
22698 \begin_layout Plain Layout
22699
22700 \change_inserted -712698321 1552395787
22701
22702 \backslash
22703 mbox
22704 \change_unchanged
22705
22706 \end_layout
22707
22708 \end_inset
22709
22710 .
22711  This is particularly needed for insets that draw on 
22712 \family sans
22713 ulem
22714 \family default
22715  or 
22716 \family sans
22717 soul
22718 \family default
22719  commands which parse their content in complex ways.
22720  Default is false.
22721 \end_layout
22722
22723 \begin_layout Description
22724
22725 \change_inserted -712698321 1555579742
22726 \begin_inset Flex Code
22727 status collapsed
22728
22729 \begin_layout Plain Layout
22730
22731 \change_inserted -712698321 1555579658
22732 NewlineCmd
22733 \change_unchanged
22734
22735 \end_layout
22736
22737 \end_inset
22738
22739  
22740 \begin_inset Flex Code
22741 status collapsed
22742
22743 \begin_layout Plain Layout
22744
22745 \change_inserted -712698321 1555579651
22746 [string]
22747 \change_unchanged
22748
22749 \end_layout
22750
22751 \end_inset
22752
22753  Option to define a different command (from the default 
22754 \begin_inset Flex Code
22755 status collapsed
22756
22757 \begin_layout Plain Layout
22758
22759 \change_inserted -712698321 1555579742
22760
22761 \backslash
22762
22763 \backslash
22764
22765 \change_unchanged
22766
22767 \end_layout
22768
22769 \end_inset
22770
22771 ) to be used for line breaks.
22772  The initial backslash must not be specified.
22773 \change_unchanged
22774
22775 \end_layout
22776
22777 \begin_layout Description
22778 \begin_inset Flex Code
22779 status collapsed
22780
22781 \begin_layout Plain Layout
22782 NoInsetLayout
22783 \end_layout
22784
22785 \end_inset
22786
22787  [
22788 \begin_inset Flex Code
22789 status collapsed
22790
22791 \begin_layout Plain Layout
22792 <layout>
22793 \end_layout
22794
22795 \end_inset
22796
22797 ] Deletes an existing 
22798 \begin_inset Flex Code
22799 status collapsed
22800
22801 \begin_layout Plain Layout
22802 InsetLayout
22803 \end_layout
22804
22805 \end_inset
22806
22807 .
22808 \end_layout
22809
22810 \begin_layout Description
22811 \begin_inset Flex Code
22812 status collapsed
22813
22814 \begin_layout Plain Layout
22815 ObsoletedBy
22816 \end_layout
22817
22818 \end_inset
22819
22820  [
22821 \begin_inset Flex Code
22822 status collapsed
22823
22824 \begin_layout Plain Layout
22825 <layout>
22826 \end_layout
22827
22828 \end_inset
22829
22830 ] Name of an 
22831 \begin_inset Flex Code
22832 status collapsed
22833
22834 \begin_layout Plain Layout
22835 InsetLayout
22836 \end_layout
22837
22838 \end_inset
22839
22840  that has replaced this 
22841 \begin_inset Flex Code
22842 status collapsed
22843
22844 \begin_layout Plain Layout
22845 InsetLayout
22846 \end_layout
22847
22848 \end_inset
22849
22850 .
22851  This is used to rename an 
22852 \begin_inset Flex Code
22853 status collapsed
22854
22855 \begin_layout Plain Layout
22856 InsetLayout
22857 \end_layout
22858
22859 \end_inset
22860
22861 ,
22862  while keeping backward compatibility.
22863 \change_inserted -712698321 1559491850
22864
22865 \end_layout
22866
22867 \begin_layout Description
22868
22869 \change_inserted -712698321 1559492002
22870 \begin_inset Flex Code
22871 status collapsed
22872
22873 \begin_layout Plain Layout
22874
22875 \change_inserted -712698321 1559491854
22876 ParbreakIgnored
22877 \change_unchanged
22878
22879 \end_layout
22880
22881 \end_inset
22882
22883  [
22884 \begin_inset Flex Code
22885 status collapsed
22886
22887 \begin_layout Plain Layout
22888
22889 \change_inserted -712698321 1559491850
22890
22891 \emph on
22892 0
22893 \change_unchanged
22894
22895 \end_layout
22896
22897 \end_inset
22898
22899 ,
22900 \begin_inset space \thinspace{}
22901 \end_inset
22902
22903
22904 \begin_inset Flex Code
22905 status collapsed
22906
22907 \begin_layout Plain Layout
22908
22909 \change_inserted -712698321 1559491850
22910 1
22911 \change_unchanged
22912
22913 \end_layout
22914
22915 \end_inset
22916
22917 ] If this is set to 
22918 \begin_inset Flex Code
22919 status collapsed
22920
22921 \begin_layout Plain Layout
22922
22923 \change_inserted -712698321 1559491881
22924 1
22925 \change_unchanged
22926
22927 \end_layout
22928
22929 \end_inset
22930
22931 ,
22932  paragraph breaks will be ignored in the output.
22933  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
22934  workarea,
22935  without any effect in the output.
22936 \change_unchanged
22937
22938 \end_layout
22939
22940 \begin_layout Description
22941 \begin_inset Flex Code
22942 status collapsed
22943
22944 \begin_layout Plain Layout
22945 ParbreakIsNewline
22946 \end_layout
22947
22948 \end_inset
22949
22950  [
22951 \begin_inset Flex Code
22952 status collapsed
22953
22954 \begin_layout Plain Layout
22955
22956 \emph on
22957 0
22958 \end_layout
22959
22960 \end_inset
22961
22962 ,
22963 \begin_inset space \thinspace{}
22964 \end_inset
22965
22966
22967 \begin_inset Flex Code
22968 status collapsed
22969
22970 \begin_layout Plain Layout
22971 1
22972 \end_layout
22973
22974 \end_inset
22975
22976 ] As with paragraph styles,
22977  see 
22978 \begin_inset CommandInset ref
22979 LatexCommand ref
22980 reference "subsec:Paragraph-Styles"
22981
22982 \end_inset
22983
22984 .
22985  Default is false.
22986 \end_layout
22987
22988 \begin_layout Description
22989 \begin_inset Flex Code
22990 status collapsed
22991
22992 \begin_layout Plain Layout
22993 PassThru
22994 \end_layout
22995
22996 \end_inset
22997
22998  [
22999 \begin_inset Flex Code
23000 status collapsed
23001
23002 \begin_layout Plain Layout
23003
23004 \emph on
23005 0
23006 \end_layout
23007
23008 \end_inset
23009
23010 ,
23011 \begin_inset space \thinspace{}
23012 \end_inset
23013
23014
23015 \begin_inset Flex Code
23016 status collapsed
23017
23018 \begin_layout Plain Layout
23019 1
23020 \end_layout
23021
23022 \end_inset
23023
23024 ] As with paragraph styles,
23025  see 
23026 \begin_inset CommandInset ref
23027 LatexCommand ref
23028 reference "subsec:Paragraph-Styles"
23029
23030 \end_inset
23031
23032 .
23033  Default is false.
23034 \end_layout
23035
23036 \begin_layout Description
23037 \begin_inset Flex Code
23038 status collapsed
23039
23040 \begin_layout Plain Layout
23041 Preamble
23042 \end_layout
23043
23044 \end_inset
23045
23046  As with paragraph styles,
23047  see 
23048 \begin_inset CommandInset ref
23049 LatexCommand ref
23050 reference "subsec:Paragraph-Styles"
23051
23052 \end_inset
23053
23054 .
23055 \end_layout
23056
23057 \begin_layout Description
23058 \begin_inset Flex Code
23059 status collapsed
23060
23061 \begin_layout Plain Layout
23062 RefPrefix
23063 \end_layout
23064
23065 \end_inset
23066
23067  [
23068 \begin_inset Flex Code
23069 status collapsed
23070
23071 \begin_layout Plain Layout
23072 string
23073 \end_layout
23074
23075 \end_inset
23076
23077 ] The prefix to use when creating labels referring to insets of this type.
23078  This allows the use of formatted references.
23079 \end_layout
23080
23081 \begin_layout Description
23082 \begin_inset Flex Code
23083 status collapsed
23084
23085 \begin_layout Plain Layout
23086 Requires
23087 \end_layout
23088
23089 \end_inset
23090
23091  [
23092 \begin_inset Flex Code
23093 status collapsed
23094
23095 \begin_layout Plain Layout
23096 string
23097 \end_layout
23098
23099 \end_inset
23100
23101 ] As with paragraph styles,
23102  see 
23103 \begin_inset CommandInset ref
23104 LatexCommand ref
23105 reference "subsec:Paragraph-Styles"
23106
23107 \end_inset
23108
23109 .
23110 \end_layout
23111
23112 \begin_layout Description
23113 \begin_inset Flex Code
23114 status collapsed
23115
23116 \begin_layout Plain Layout
23117 ResetArgs
23118 \end_layout
23119
23120 \end_inset
23121
23122  [
23123 \begin_inset Flex Code
23124 status collapsed
23125
23126 \begin_layout Plain Layout
23127
23128 \emph on
23129 0
23130 \end_layout
23131
23132 \end_inset
23133
23134 ,
23135 \begin_inset space \thinspace{}
23136 \end_inset
23137
23138
23139 \begin_inset Flex Code
23140 status collapsed
23141
23142 \begin_layout Plain Layout
23143 1
23144 \end_layout
23145
23146 \end_inset
23147
23148 ] Resets the \SpecialChar LaTeX
23149  arguments of this layout (as defined via the 
23150 \begin_inset Flex Code
23151 status collapsed
23152
23153 \begin_layout Plain Layout
23154 Argument
23155 \end_layout
23156
23157 \end_inset
23158
23159  tag).
23160  This is useful if you have copied a style via 
23161 \begin_inset Flex Code
23162 status collapsed
23163
23164 \begin_layout Plain Layout
23165 CopyStyle
23166 \end_layout
23167
23168 \end_inset
23169
23170 ,
23171  but you do not want to inherit its (required and optional) arguments.
23172 \end_layout
23173
23174 \begin_layout Description
23175 \begin_inset Flex Code
23176 status collapsed
23177
23178 \begin_layout Plain Layout
23179 ResetsFont
23180 \end_layout
23181
23182 \end_inset
23183
23184  [
23185 \begin_inset Flex Code
23186 status collapsed
23187
23188 \begin_layout Plain Layout
23189
23190 \emph on
23191 0
23192 \end_layout
23193
23194 \end_inset
23195
23196 ,
23197 \begin_inset space \thinspace{}
23198 \end_inset
23199
23200
23201 \begin_inset Flex Code
23202 status collapsed
23203
23204 \begin_layout Plain Layout
23205 1
23206 \end_layout
23207
23208 \end_inset
23209
23210
23211 \change_inserted -712698321 1597733473
23212 If 
23213 \begin_inset Flex Code
23214 status collapsed
23215
23216 \begin_layout Plain Layout
23217
23218 \change_inserted -712698321 1597732178
23219 1
23220 \change_unchanged
23221
23222 \end_layout
23223
23224 \end_inset
23225
23226 ,
23227  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.
23228 \begin_inset space \thinspace{}
23229 \end_inset
23230
23231 g.,
23232  
23233 \begin_inset Flex Code
23234 status collapsed
23235
23236 \begin_layout Plain Layout
23237
23238 \change_inserted -712698321 1597733683
23239
23240 \backslash
23241 textbf{Sourrounding text 
23242 \backslash
23243 myinset{
23244 \backslash
23245 textbf{content}}\SpecialChar ldots
23246 }
23247 \change_unchanged
23248
23249 \end_layout
23250
23251 \end_inset
23252
23253  rather than 
23254 \begin_inset Flex Code
23255 status collapsed
23256
23257 \begin_layout Plain Layout
23258
23259 \change_inserted -712698321 1597733686
23260
23261 \backslash
23262 textbf{Sourrounding text 
23263 \backslash
23264 myinset{content}\SpecialChar ldots
23265 }
23266 \change_unchanged
23267
23268 \end_layout
23269
23270 \end_inset
23271
23272 .
23273  Setting this makes sense for commands that internally reset font settings (e.
23274 \begin_inset space \thinspace{}
23275 \end_inset
23276
23277 g.,
23278  footnotes).
23279  Note that wrongly setting this might lead to unwanted result (e.
23280 \begin_inset space \thinspace{}
23281 \end_inset
23282
23283 g.,
23284  with 
23285 \begin_inset Flex Code
23286 status collapsed
23287
23288 \begin_layout Plain Layout
23289
23290 \change_inserted -712698321 1597733688
23291
23292 \backslash
23293 emph{Sourrounding text 
23294 \backslash
23295 myinset{
23296 \backslash
23297 emph{content}}\SpecialChar ldots
23298 }
23299 \change_unchanged
23300
23301 \end_layout
23302
23303 \end_inset
23304
23305 ,
23306  content is upright,
23307  as 
23308 \begin_inset Flex Code
23309 status collapsed
23310
23311 \begin_layout Plain Layout
23312
23313 \change_inserted -712698321 1597733278
23314
23315 \backslash
23316 emph
23317 \change_unchanged
23318
23319 \end_layout
23320
23321 \end_inset
23322
23323  toggles.
23324  
23325 \change_deleted -712698321 1597733283
23326 Whether this inset should use the font of its surrounding environment or uses its own.
23327  
23328 \change_unchanged
23329 Default is 
23330 \change_deleted -712698321 1597733290
23331 false
23332 \change_inserted -712698321 1597733290
23333
23334 \begin_inset Flex Code
23335 status collapsed
23336
23337 \begin_layout Plain Layout
23338
23339 \change_inserted -712698321 1597733292
23340 0
23341 \change_unchanged
23342
23343 \end_layout
23344
23345 \end_inset
23346
23347
23348 \change_unchanged
23349 :
23350  
23351 \change_deleted -712698321 1597733327
23352 use the font of the surrounding environment
23353 \change_inserted -712698321 1597733343
23354 font changes are not redone inside the inset
23355 \change_unchanged
23356 .
23357 \end_layout
23358
23359 \begin_layout Description
23360 \begin_inset Flex Code
23361 status collapsed
23362
23363 \begin_layout Plain Layout
23364 RightDelim
23365 \end_layout
23366
23367 \end_inset
23368
23369  [
23370 \begin_inset Flex Code
23371 status collapsed
23372
23373 \begin_layout Plain Layout
23374 string
23375 \end_layout
23376
23377 \end_inset
23378
23379 ] A string that is put at the end of the layout content.
23380  A line break in the output can be indicated by 
23381 \begin_inset Flex Code
23382 status collapsed
23383
23384 \begin_layout Plain Layout
23385 <br/>
23386 \end_layout
23387
23388 \end_inset
23389
23390 .
23391 \end_layout
23392
23393 \begin_layout Description
23394 \begin_inset Flex Code
23395 status collapsed
23396
23397 \begin_layout Plain Layout
23398 Spellcheck
23399 \end_layout
23400
23401 \end_inset
23402
23403  [
23404 \begin_inset Flex Code
23405 status collapsed
23406
23407 \begin_layout Plain Layout
23408 0
23409 \end_layout
23410
23411 \end_inset
23412
23413 ,
23414 \begin_inset space \thinspace{}
23415 \end_inset
23416
23417
23418 \begin_inset Flex Code
23419 status collapsed
23420
23421 \begin_layout Plain Layout
23422
23423 \emph on
23424 1
23425 \end_layout
23426
23427 \end_inset
23428
23429 ] Allow spell-checking the contents of this inset.
23430  Default is true.
23431 \change_inserted -584632292 1615846659
23432
23433 \end_layout
23434
23435 \begin_layout Subsection
23436
23437 \change_inserted -584632292 1615846729
23438 Arguments
23439 \begin_inset CommandInset label
23440 LatexCommand label
23441 name "subsec:Arguments"
23442
23443 \end_inset
23444
23445
23446 \end_layout
23447
23448 \begin_layout Standard
23449
23450 \change_inserted -584632292 1615846807
23451 Both paragraph styles and inset layouts allow for 
23452 \emph on
23453 arguments
23454 \emph default
23455  as well as the main content.
23456  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
23457 .
23458  Each (optional or required) argument of a command or environment—
23459 except for the required argument that is associated with the content—
23460 has a separate definition,
23461  where the number specifies the order of the arguments.
23462  The definition must end with 
23463 \begin_inset Flex Code
23464 status collapsed
23465
23466 \begin_layout Plain Layout
23467
23468 \change_inserted -584632292 1615846730
23469 EndArgument
23470 \change_unchanged
23471
23472 \end_layout
23473
23474 \end_inset
23475
23476 .
23477  So a command with two optional arguments looks like:
23478 \end_layout
23479
23480 \begin_layout Quote
23481
23482 \change_inserted -584632292 1615846730
23483
23484 \family typewriter
23485 Argument 1
23486 \end_layout
23487
23488 \begin_layout Quote
23489
23490 \change_inserted -584632292 1615846730
23491
23492 \family typewriter
23493 ...
23494 \end_layout
23495
23496 \begin_layout Quote
23497
23498 \change_inserted -584632292 1615846730
23499
23500 \family typewriter
23501 EndArgument
23502 \end_layout
23503
23504 \begin_layout Quote
23505
23506 \change_inserted -584632292 1615846730
23507
23508 \family typewriter
23509 Argument 2
23510 \end_layout
23511
23512 \begin_layout Quote
23513
23514 \change_inserted -584632292 1615846730
23515
23516 \family typewriter
23517 ...
23518 \end_layout
23519
23520 \begin_layout Quote
23521
23522 \change_inserted -584632292 1615846730
23523
23524 \family typewriter
23525 EndArgument
23526 \end_layout
23527
23528 \begin_layout Standard
23529
23530 \change_inserted -584632292 1615846730
23531 Inside the 
23532 \begin_inset Flex Code
23533 status collapsed
23534
23535 \begin_layout Plain Layout
23536
23537 \change_inserted -584632292 1615846730
23538 Argument
23539 \change_unchanged
23540
23541 \end_layout
23542
23543 \end_inset
23544
23545  definition,
23546  the following specifications are possible:
23547 \end_layout
23548
23549 \begin_layout Itemize
23550
23551 \change_inserted -584632292 1615846730
23552 \begin_inset Flex Code
23553 status collapsed
23554
23555 \begin_layout Plain Layout
23556
23557 \change_inserted -584632292 1615846730
23558 LabelString
23559 \change_unchanged
23560
23561 \end_layout
23562
23563 \end_inset
23564
23565  
23566 \begin_inset Flex Code
23567 status collapsed
23568
23569 \begin_layout Plain Layout
23570
23571 \change_inserted -584632292 1615846730
23572 [string]
23573 \change_unchanged
23574
23575 \end_layout
23576
23577 \end_inset
23578
23579  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 
23580 \begin_inset Flex Code
23581 status collapsed
23582
23583 \begin_layout Plain Layout
23584
23585 \change_inserted -584632292 1615846730
23586 MenuString
23587 \change_unchanged
23588
23589 \end_layout
23590
23591 \end_inset
23592
23593 ).
23594  For the menu,
23595  you can define an accelerator by appending the respective character to the string,
23596  divided by 
23597 \begin_inset Quotes eld
23598 \end_inset
23599
23600 |
23601 \begin_inset Quotes erd
23602 \end_inset
23603
23604  (e.
23605 \begin_inset space \thinspace{}
23606 \end_inset
23607
23608 g.
23609 \begin_inset space \space{}
23610 \end_inset
23611
23612
23613 \begin_inset Quotes eld
23614 \end_inset
23615
23616
23617 \begin_inset Flex Code
23618 status collapsed
23619
23620 \begin_layout Plain Layout
23621
23622 \change_inserted -584632292 1615846730
23623 Short Title|S
23624 \change_unchanged
23625
23626 \end_layout
23627
23628 \end_inset
23629
23630
23631 \begin_inset Quotes erd
23632 \end_inset
23633
23634 ).
23635 \end_layout
23636
23637 \begin_layout Itemize
23638
23639 \change_inserted -584632292 1615846730
23640 \begin_inset Flex Code
23641 status collapsed
23642
23643 \begin_layout Plain Layout
23644
23645 \change_inserted -584632292 1615846730
23646 MenuString
23647 \change_unchanged
23648
23649 \end_layout
23650
23651 \end_inset
23652
23653  
23654 \begin_inset Flex Code
23655 status collapsed
23656
23657 \begin_layout Plain Layout
23658
23659 \change_inserted -584632292 1615846730
23660 [string]
23661 \change_unchanged
23662
23663 \end_layout
23664
23665 \end_inset
23666
23667  A separate string for the menu.
23668  You can define an accelerator by appending the respective character to the string,
23669  divided by 
23670 \begin_inset Quotes eld
23671 \end_inset
23672
23673 |
23674 \begin_inset Quotes erd
23675 \end_inset
23676
23677  (e.
23678 \begin_inset space \thinspace{}
23679 \end_inset
23680
23681 g.
23682 \begin_inset space \space{}
23683 \end_inset
23684
23685
23686 \begin_inset Quotes eld
23687 \end_inset
23688
23689
23690 \begin_inset Flex Code
23691 status collapsed
23692
23693 \begin_layout Plain Layout
23694
23695 \change_inserted -584632292 1615846730
23696 Short Title|S
23697 \change_unchanged
23698
23699 \end_layout
23700
23701 \end_inset
23702
23703
23704 \begin_inset Quotes erd
23705 \end_inset
23706
23707 ).
23708  This specification is optional.
23709  If it is not given the 
23710 \begin_inset Flex Code
23711 status collapsed
23712
23713 \begin_layout Plain Layout
23714
23715 \change_inserted -584632292 1615846730
23716 LabelString
23717 \change_unchanged
23718
23719 \end_layout
23720
23721 \end_inset
23722
23723  will be used instead for the menu.
23724 \end_layout
23725
23726 \begin_layout Itemize
23727
23728 \change_inserted -584632292 1615846730
23729 \begin_inset Flex Code
23730 status collapsed
23731
23732 \begin_layout Plain Layout
23733
23734 \change_inserted -584632292 1615846730
23735 Tooltip
23736 \change_unchanged
23737
23738 \end_layout
23739
23740 \end_inset
23741
23742  
23743 \begin_inset Flex Code
23744 status collapsed
23745
23746 \begin_layout Plain Layout
23747
23748 \change_inserted -584632292 1615846730
23749 [string]
23750 \change_unchanged
23751
23752 \end_layout
23753
23754 \end_inset
23755
23756  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
23757 \end_layout
23758
23759 \begin_layout Itemize
23760
23761 \change_inserted -584632292 1615846730
23762 \begin_inset Flex Code
23763 status collapsed
23764
23765 \begin_layout Plain Layout
23766
23767 \change_inserted -584632292 1615846730
23768 Mandatory
23769 \change_unchanged
23770
23771 \end_layout
23772
23773 \end_inset
23774
23775  [
23776 \begin_inset Flex Code
23777 status collapsed
23778
23779 \begin_layout Plain Layout
23780
23781 \change_inserted -584632292 1615846730
23782
23783 \emph on
23784 0
23785 \change_unchanged
23786
23787 \end_layout
23788
23789 \end_inset
23790
23791 ,
23792 \begin_inset space \thinspace{}
23793 \end_inset
23794
23795
23796 \begin_inset Flex Code
23797 status collapsed
23798
23799 \begin_layout Plain Layout
23800
23801 \change_inserted -584632292 1615846730
23802 1
23803 \change_unchanged
23804
23805 \end_layout
23806
23807 \end_inset
23808
23809 ] Declare if this is a mandatory (1) or an optional (0) argument.
23810  Mandatory arguments will be output empty if not given,
23811  while optional arguments will not be output at all.
23812  By default,
23813  mandatory arguments are delimited by 
23814 \begin_inset Flex Code
23815 status collapsed
23816
23817 \begin_layout Plain Layout
23818
23819 \change_inserted -584632292 1615846730
23820 {...}
23821 \change_unchanged
23822
23823 \end_layout
23824
23825 \end_inset
23826
23827 ,
23828  while optional arguments are delimited by 
23829 \begin_inset Flex Code
23830 status collapsed
23831
23832 \begin_layout Plain Layout
23833
23834 \change_inserted -584632292 1615846730
23835 [...]
23836 \change_unchanged
23837
23838 \end_layout
23839
23840 \end_inset
23841
23842
23843 \end_layout
23844
23845 \begin_layout Itemize
23846
23847 \change_inserted -584632292 1615846730
23848 \begin_inset Flex Code
23849 status collapsed
23850
23851 \begin_layout Plain Layout
23852
23853 \change_inserted -584632292 1615846730
23854 NewlineCmd
23855 \change_unchanged
23856
23857 \end_layout
23858
23859 \end_inset
23860
23861  
23862 \begin_inset Flex Code
23863 status collapsed
23864
23865 \begin_layout Plain Layout
23866
23867 \change_inserted -584632292 1615846730
23868 [string]
23869 \change_unchanged
23870
23871 \end_layout
23872
23873 \end_inset
23874
23875  Option to define a different command (from the default 
23876 \begin_inset Flex Code
23877 status collapsed
23878
23879 \begin_layout Plain Layout
23880
23881 \change_inserted -584632292 1615846730
23882
23883 \backslash
23884
23885 \backslash
23886
23887 \change_unchanged
23888
23889 \end_layout
23890
23891 \end_inset
23892
23893 ) to be used for line breaks.
23894  The initial backslash must not be specified.
23895 \end_layout
23896
23897 \begin_layout Itemize
23898
23899 \change_inserted -584632292 1615846730
23900 \begin_inset Flex Code
23901 status collapsed
23902
23903 \begin_layout Plain Layout
23904
23905 \change_inserted -584632292 1615846730
23906 Requires
23907 \change_unchanged
23908
23909 \end_layout
23910
23911 \end_inset
23912
23913  
23914 \begin_inset Flex Code
23915 status collapsed
23916
23917 \begin_layout Plain Layout
23918
23919 \change_inserted -584632292 1615846730
23920 [int=0]
23921 \change_unchanged
23922
23923 \end_layout
23924
23925 \end_inset
23926
23927  defines another argument (by its number) which this argument requires to be output if it is itself output.
23928  E.
23929 \begin_inset space \thinspace{}
23930 \end_inset
23931
23932 g.,
23933  in \SpecialChar LaTeX
23934  commands,
23935  optional arguments often require previous optional arguments to be output (at least empty),
23936  as in 
23937 \begin_inset Flex Code
23938 status collapsed
23939
23940 \begin_layout Plain Layout
23941
23942 \change_inserted -584632292 1615846730
23943
23944 \backslash
23945 command[][argument]{text}
23946 \change_unchanged
23947
23948 \end_layout
23949
23950 \end_inset
23951
23952 .
23953  This can be achieved by the statement 
23954 \begin_inset Flex Code
23955 status collapsed
23956
23957 \begin_layout Plain Layout
23958
23959 \change_inserted -584632292 1615846730
23960 Requires 1
23961 \change_unchanged
23962
23963 \end_layout
23964
23965 \end_inset
23966
23967  within 
23968 \begin_inset Flex Code
23969 status collapsed
23970
23971 \begin_layout Plain Layout
23972
23973 \change_inserted -584632292 1615846730
23974 Argument 2
23975 \change_unchanged
23976
23977 \end_layout
23978
23979 \end_inset
23980
23981 .
23982 \end_layout
23983
23984 \begin_layout Itemize
23985
23986 \change_inserted -584632292 1615846730
23987 \begin_inset Flex Code
23988 status collapsed
23989
23990 \begin_layout Plain Layout
23991
23992 \change_inserted -584632292 1615846730
23993 LeftDelim
23994 \change_unchanged
23995
23996 \end_layout
23997
23998 \end_inset
23999
24000  
24001 \begin_inset Flex Code
24002 status collapsed
24003
24004 \begin_layout Plain Layout
24005
24006 \change_inserted -584632292 1615846730
24007 [string]
24008 \change_unchanged
24009
24010 \end_layout
24011
24012 \end_inset
24013
24014  defines a custom left delimiter (instead of 
24015 \begin_inset Flex Code
24016 status collapsed
24017
24018 \begin_layout Plain Layout
24019
24020 \change_inserted -584632292 1615846730
24021 {
24022 \change_unchanged
24023
24024 \end_layout
24025
24026 \end_inset
24027
24028  or 
24029 \begin_inset Flex Code
24030 status collapsed
24031
24032 \begin_layout Plain Layout
24033
24034 \change_inserted -584632292 1615846730
24035 [
24036 \change_unchanged
24037
24038 \end_layout
24039
24040 \end_inset
24041
24042 ).
24043  A line break in the output can be indicated by 
24044 \begin_inset Flex Code
24045 status collapsed
24046
24047 \begin_layout Plain Layout
24048
24049 \change_inserted -584632292 1615846730
24050 <br/>
24051 \change_unchanged
24052
24053 \end_layout
24054
24055 \end_inset
24056
24057 .
24058 \end_layout
24059
24060 \begin_layout Itemize
24061
24062 \change_inserted -584632292 1615846730
24063 \begin_inset Flex Code
24064 status collapsed
24065
24066 \begin_layout Plain Layout
24067
24068 \change_inserted -584632292 1615846730
24069 RightDelim
24070 \change_unchanged
24071
24072 \end_layout
24073
24074 \end_inset
24075
24076  
24077 \begin_inset Flex Code
24078 status collapsed
24079
24080 \begin_layout Plain Layout
24081
24082 \change_inserted -584632292 1615846730
24083 [string]
24084 \change_unchanged
24085
24086 \end_layout
24087
24088 \end_inset
24089
24090  defines a custom right delimiter (instead of 
24091 \begin_inset Flex Code
24092 status collapsed
24093
24094 \begin_layout Plain Layout
24095
24096 \change_inserted -584632292 1615846730
24097 }
24098 \change_unchanged
24099
24100 \end_layout
24101
24102 \end_inset
24103
24104  or 
24105 \begin_inset Flex Code
24106 status collapsed
24107
24108 \begin_layout Plain Layout
24109
24110 \change_inserted -584632292 1615846730
24111 ]
24112 \change_unchanged
24113
24114 \end_layout
24115
24116 \end_inset
24117
24118 ).
24119  A line break in the output can be indicated by 
24120 \begin_inset Flex Code
24121 status collapsed
24122
24123 \begin_layout Plain Layout
24124
24125 \change_inserted -584632292 1615846730
24126 <br/>
24127 \change_unchanged
24128
24129 \end_layout
24130
24131 \end_inset
24132
24133 .
24134 \end_layout
24135
24136 \begin_layout Itemize
24137
24138 \change_inserted -584632292 1615846730
24139 \begin_inset Flex Code
24140 status collapsed
24141
24142 \begin_layout Plain Layout
24143
24144 \change_inserted -584632292 1615846730
24145 DefaultArg
24146 \change_unchanged
24147
24148 \end_layout
24149
24150 \end_inset
24151
24152  
24153 \begin_inset Flex Code
24154 status collapsed
24155
24156 \begin_layout Plain Layout
24157
24158 \change_inserted -584632292 1615846730
24159 [string]
24160 \change_unchanged
24161
24162 \end_layout
24163
24164 \end_inset
24165
24166  defines an argument that is inserted if and only if no user-specified arguments were given,
24167  i.
24168 \begin_inset space \thinspace{}
24169 \end_inset
24170
24171 e.
24172 \begin_inset space \space{}
24173 \end_inset
24174
24175 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
24176  Multiple arguments need to be separated by comma.
24177 \end_layout
24178
24179 \begin_layout Itemize
24180
24181 \change_inserted -584632292 1615846730
24182 \begin_inset Flex Code
24183 status collapsed
24184
24185 \begin_layout Plain Layout
24186
24187 \change_inserted -584632292 1615846730
24188 PresetArg
24189 \change_unchanged
24190
24191 \end_layout
24192
24193 \end_inset
24194
24195  
24196 \begin_inset Flex Code
24197 status collapsed
24198
24199 \begin_layout Plain Layout
24200
24201 \change_inserted -584632292 1615846730
24202 [string]
24203 \change_unchanged
24204
24205 \end_layout
24206
24207 \end_inset
24208
24209  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
24210  Multiple arguments need to be separated by comma.
24211 \end_layout
24212
24213 \begin_layout Itemize
24214
24215 \change_inserted -584632292 1615846730
24216 \begin_inset Flex Code
24217 status collapsed
24218
24219 \begin_layout Plain Layout
24220
24221 \change_inserted -584632292 1615846730
24222 Font
24223 \change_unchanged
24224
24225 \end_layout
24226
24227 \end_inset
24228
24229  The font used for the argument content,
24230  see 
24231 \begin_inset CommandInset ref
24232 LatexCommand ref
24233 reference "subsec:Font-description"
24234
24235 \end_inset
24236
24237 .
24238 \end_layout
24239
24240 \begin_layout Itemize
24241
24242 \change_inserted -584632292 1615846730
24243 \begin_inset Flex Code
24244 status collapsed
24245
24246 \begin_layout Plain Layout
24247
24248 \change_inserted -584632292 1615846730
24249 FreeSpacing
24250 \change_unchanged
24251
24252 \end_layout
24253
24254 \end_inset
24255
24256  [
24257 \begin_inset Flex Code
24258 status collapsed
24259
24260 \begin_layout Plain Layout
24261
24262 \change_inserted -584632292 1615846730
24263
24264 \emph on
24265 0
24266 \change_unchanged
24267
24268 \end_layout
24269
24270 \end_inset
24271
24272 ,
24273 \begin_inset space \thinspace{}
24274 \end_inset
24275
24276
24277 \begin_inset Flex Code
24278 status collapsed
24279
24280 \begin_layout Plain Layout
24281
24282 \change_inserted -584632292 1615846730
24283 1
24284 \change_unchanged
24285
24286 \end_layout
24287
24288 \end_inset
24289
24290 ] As with paragraph styles,
24291  see 
24292 \begin_inset CommandInset ref
24293 LatexCommand ref
24294 reference "subsec:Paragraph-Styles"
24295
24296 \end_inset
24297
24298 .
24299 \end_layout
24300
24301 \begin_layout Itemize
24302
24303 \change_inserted -584632292 1615846730
24304 \begin_inset Flex Code
24305 status collapsed
24306
24307 \begin_layout Plain Layout
24308
24309 \change_inserted -584632292 1615846730
24310 LabelFont
24311 \change_unchanged
24312
24313 \end_layout
24314
24315 \end_inset
24316
24317  The font used for the label;
24318  see 
24319 \begin_inset CommandInset ref
24320 LatexCommand ref
24321 reference "subsec:Font-description"
24322
24323 \end_inset
24324
24325 .
24326 \end_layout
24327
24328 \begin_layout Itemize
24329
24330 \change_inserted -584632292 1615846730
24331 \begin_inset Flex Code
24332 status collapsed
24333
24334 \begin_layout Plain Layout
24335
24336 \change_inserted -584632292 1615846730
24337 Decoration
24338 \change_unchanged
24339
24340 \end_layout
24341
24342 \end_inset
24343
24344  [
24345 \begin_inset Flex Code
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349
24350 \change_inserted -584632292 1615846730
24351
24352 \emph on
24353 Classic
24354 \emph default
24355 ,
24356  Minimalistic,
24357  Conglomerate
24358 \change_unchanged
24359
24360 \end_layout
24361
24362 \end_inset
24363
24364 ] describes the rendering style used for the inset's frame and buttons.
24365 \end_layout
24366
24367 \begin_layout Itemize
24368
24369 \change_inserted -584632292 1615846730
24370 \begin_inset Flex Code
24371 status collapsed
24372
24373 \begin_layout Plain Layout
24374
24375 \change_inserted -584632292 1615846730
24376 AutoInsert
24377 \change_unchanged
24378
24379 \end_layout
24380
24381 \end_inset
24382
24383  
24384 \begin_inset Flex Code
24385 status collapsed
24386
24387 \begin_layout Plain Layout
24388
24389 \change_inserted -584632292 1615846730
24390 [int=0]
24391 \change_unchanged
24392
24393 \end_layout
24394
24395 \end_inset
24396
24397  If this is set to 
24398 \begin_inset Flex Code
24399 status collapsed
24400
24401 \begin_layout Plain Layout
24402
24403 \change_inserted -584632292 1615846730
24404 1
24405 \change_unchanged
24406
24407 \end_layout
24408
24409 \end_inset
24410
24411 ,
24412  this argument is automatically inserted when the respective style is selected.
24413 \end_layout
24414
24415 \begin_layout Itemize
24416
24417 \change_inserted -584632292 1615846730
24418 \begin_inset Flex Code
24419 status collapsed
24420
24421 \begin_layout Plain Layout
24422
24423 \change_inserted -584632292 1615846730
24424 InsertOnNewline
24425 \change_unchanged
24426
24427 \end_layout
24428
24429 \end_inset
24430
24431  
24432 \begin_inset Flex Code
24433 status collapsed
24434
24435 \begin_layout Plain Layout
24436
24437 \change_inserted -584632292 1615846730
24438 [int=0]
24439 \change_unchanged
24440
24441 \end_layout
24442
24443 \end_inset
24444
24445  If this is set to 
24446 \begin_inset Flex Code
24447 status collapsed
24448
24449 \begin_layout Plain Layout
24450
24451 \change_inserted -584632292 1615846730
24452 1
24453 \change_unchanged
24454
24455 \end_layout
24456
24457 \end_inset
24458
24459 ,
24460  this argument will be inserted on a new line with 
24461 \begin_inset Flex Code
24462 status collapsed
24463
24464 \begin_layout Plain Layout
24465
24466 \change_inserted -584632292 1615846730
24467 AutoInsert
24468 \change_unchanged
24469
24470 \end_layout
24471
24472 \end_inset
24473
24474  (only available within Flex insets).
24475 \end_layout
24476
24477 \begin_layout Itemize
24478
24479 \change_inserted -584632292 1615846730
24480 \begin_inset Flex Code
24481 status collapsed
24482
24483 \begin_layout Plain Layout
24484
24485 \change_inserted -584632292 1615846730
24486 InsertCotext
24487 \change_unchanged
24488
24489 \end_layout
24490
24491 \end_inset
24492
24493  
24494 \begin_inset Flex Code
24495 status collapsed
24496
24497 \begin_layout Plain Layout
24498
24499 \change_inserted -584632292 1615846730
24500 [int=0]
24501 \change_unchanged
24502
24503 \end_layout
24504
24505 \end_inset
24506
24507  If this is set to 
24508 \begin_inset Flex Code
24509 status collapsed
24510
24511 \begin_layout Plain Layout
24512
24513 \change_inserted -584632292 1615846730
24514 1
24515 \change_unchanged
24516
24517 \end_layout
24518
24519 \end_inset
24520
24521 ,
24522  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
24523 \end_layout
24524
24525 \begin_layout Itemize
24526
24527 \change_inserted -584632292 1615846730
24528 \begin_inset Flex Code
24529 status collapsed
24530
24531 \begin_layout Plain Layout
24532
24533 \change_inserted -584632292 1615846730
24534 PassThru
24535 \change_unchanged
24536
24537 \end_layout
24538
24539 \end_inset
24540
24541  [
24542 \begin_inset Flex Code
24543 status collapsed
24544
24545 \begin_layout Plain Layout
24546
24547 \change_inserted -584632292 1615846730
24548
24549 \emph on
24550 inherited
24551 \emph default
24552 ,
24553  true,
24554  false
24555 \change_unchanged
24556
24557 \end_layout
24558
24559 \end_inset
24560
24561 ] Whether the contents of this argument should be output in raw form,
24562  meaning without special translations that \SpecialChar LaTeX
24563  would require.
24564  By default,
24565  the 
24566 \begin_inset Flex Code
24567 status collapsed
24568
24569 \begin_layout Plain Layout
24570
24571 \change_inserted -584632292 1615846730
24572 PassThru
24573 \change_unchanged
24574
24575 \end_layout
24576
24577 \end_inset
24578
24579  status is inherited by the inset or paragraph layout the argument belongs to,
24580  true and false change the status for the given argument only.
24581 \end_layout
24582
24583 \begin_layout Itemize
24584
24585 \change_inserted -584632292 1615846730
24586 \begin_inset Flex Code
24587 status collapsed
24588
24589 \begin_layout Plain Layout
24590
24591 \change_inserted -584632292 1615846730
24592 PassThruChars
24593 \change_unchanged
24594
24595 \end_layout
24596
24597 \end_inset
24598
24599  [
24600 \begin_inset Flex Code
24601 status collapsed
24602
24603 \begin_layout Plain Layout
24604
24605 \change_inserted -584632292 1615846730
24606 string of characters
24607 \change_unchanged
24608
24609 \end_layout
24610
24611 \end_inset
24612
24613 ]
24614 \family typewriter
24615  
24616 \family default
24617 Defines individual characters
24618 \begin_inset Newline linebreak
24619 \end_inset
24620
24621 that should be output in raw form,
24622  meaning without special translations that \SpecialChar LaTeX
24623  would require.
24624  Note that,
24625  contrary to PassThru,
24626  this needs to be explicitly defined for arguments.
24627  That is,
24628  arguments do not inherit PassThruChars from their parent inset or layout.
24629 \end_layout
24630
24631 \begin_layout Itemize
24632
24633 \change_inserted -584632292 1615846730
24634 \begin_inset Flex Code
24635 status collapsed
24636
24637 \begin_layout Plain Layout
24638
24639 \change_inserted -584632292 1615846730
24640 IsTocCaption
24641 \change_unchanged
24642
24643 \end_layout
24644
24645 \end_inset
24646
24647  [
24648 \begin_inset Flex Code
24649 status collapsed
24650
24651 \begin_layout Plain Layout
24652
24653 \change_inserted -584632292 1615846730
24654
24655 \emph on
24656 0
24657 \change_unchanged
24658
24659 \end_layout
24660
24661 \end_inset
24662
24663 ,
24664 \begin_inset space \thinspace{}
24665 \end_inset
24666
24667
24668 \begin_inset Flex Code
24669 status collapsed
24670
24671 \begin_layout Plain Layout
24672
24673 \change_inserted -584632292 1615846730
24674 1
24675 \change_unchanged
24676
24677 \end_layout
24678
24679 \end_inset
24680
24681 ] If this is set to 1,
24682  the argument will output its content in the corresponding item in the table of contents.
24683  See AddToToc.
24684 \end_layout
24685
24686 \begin_layout Standard
24687
24688 \change_inserted -584632292 1615846730
24689 By default,
24690  the text entered in the \SpecialChar LyX
24691  workarea in the respective layout is the last (mandatory) argument of a command if the 
24692 \begin_inset Flex Code
24693 status collapsed
24694
24695 \begin_layout Plain Layout
24696
24697 \change_inserted -584632292 1615846730
24698 LatexType
24699 \change_unchanged
24700
24701 \end_layout
24702
24703 \end_inset
24704
24705  is 
24706 \begin_inset Flex Code
24707 status collapsed
24708
24709 \begin_layout Plain Layout
24710
24711 \change_inserted -584632292 1615846730
24712 Command
24713 \change_unchanged
24714
24715 \end_layout
24716
24717 \end_inset
24718
24719 .
24720  However,
24721  arguments with the prefix 
24722 \begin_inset Flex Code
24723 status collapsed
24724
24725 \begin_layout Plain Layout
24726
24727 \change_inserted -584632292 1615846730
24728 post:
24729 \change_unchanged
24730
24731 \end_layout
24732
24733 \end_inset
24734
24735  are output after this workarea argument.
24736  Note that post-argument numbering restarts at 1,
24737  so the first argument following the workarea argument is 
24738 \begin_inset Flex Code
24739 status collapsed
24740
24741 \begin_layout Plain Layout
24742
24743 \change_inserted -584632292 1615846730
24744 post:1
24745 \change_unchanged
24746
24747 \end_layout
24748
24749 \end_inset
24750
24751 .
24752  Post-arguments are ignored in any other 
24753 \begin_inset Flex Code
24754 status collapsed
24755
24756 \begin_layout Plain Layout
24757
24758 \change_inserted -584632292 1615846730
24759 LatexType
24760 \change_unchanged
24761
24762 \end_layout
24763
24764 \end_inset
24765
24766  than 
24767 \begin_inset Flex Code
24768 status collapsed
24769
24770 \begin_layout Plain Layout
24771
24772 \change_inserted -584632292 1615846730
24773 Command
24774 \change_unchanged
24775
24776 \end_layout
24777
24778 \end_inset
24779
24780 .
24781 \end_layout
24782
24783 \begin_layout Standard
24784
24785 \change_inserted -584632292 1615846730
24786 Arguments for list 
24787 \begin_inset Flex Code
24788 status collapsed
24789
24790 \begin_layout Plain Layout
24791
24792 \change_inserted -584632292 1615846730
24793
24794 \backslash
24795 item
24796 \change_unchanged
24797
24798 \end_layout
24799
24800 \end_inset
24801
24802 s (as in 
24803 \begin_inset Flex Code
24804 status collapsed
24805
24806 \begin_layout Plain Layout
24807
24808 \change_inserted -584632292 1615846730
24809
24810 \backslash
24811 item[foo]
24812 \change_unchanged
24813
24814 \end_layout
24815
24816 \end_inset
24817
24818 ) have the prefix 
24819 \begin_inset Flex Code
24820 status collapsed
24821
24822 \begin_layout Plain Layout
24823
24824 \change_inserted -584632292 1615846730
24825 item:
24826 \change_unchanged
24827
24828 \end_layout
24829
24830 \end_inset
24831
24832  followed by the number (e.
24833 \begin_inset space \thinspace{}
24834 \end_inset
24835
24836 g.
24837 \begin_inset space \space{}
24838 \end_inset
24839
24840
24841 \begin_inset Flex Code
24842 status collapsed
24843
24844 \begin_layout Plain Layout
24845
24846 \change_inserted -584632292 1615846730
24847 Argument item:1
24848 \change_unchanged
24849
24850 \end_layout
24851
24852 \end_inset
24853
24854 ).
24855 \end_layout
24856
24857 \begin_layout Standard
24858
24859 \change_inserted -584632292 1615846730
24860 Finally,
24861  there is a special argument type with the prefix 
24862 \begin_inset Flex Code
24863 status collapsed
24864
24865 \begin_layout Plain Layout
24866
24867 \change_inserted -584632292 1615846730
24868 listpreamble:
24869 \change_unchanged
24870
24871 \end_layout
24872
24873 \end_inset
24874
24875 .
24876  It is not really an argument,
24877  but uses the argument interface (thus,
24878  the prefix is also followed by a number,
24879  e.
24880 \begin_inset space \thinspace{}
24881 \end_inset
24882
24883 g.
24884  
24885 \begin_inset Flex Code
24886 status collapsed
24887
24888 \begin_layout Plain Layout
24889
24890 \change_inserted -584632292 1615846730
24891 Argument listpreamble:1
24892 \change_unchanged
24893
24894 \end_layout
24895
24896 \end_inset
24897
24898 ).
24899  As the name implies,
24900  it is targeted at lists such as 
24901 \family sans
24902 Itemize
24903 \family default
24904 ,
24905  
24906 \family sans
24907 Enumerate
24908 \family default
24909 ,
24910  
24911 \family sans
24912 Description
24913 \family default
24914 ,
24915  or 
24916 \family sans
24917 Bibliography
24918 \family default
24919 .
24920  Its content will be output at the list start,
24921  before the first 
24922 \begin_inset Flex Code
24923 status collapsed
24924
24925 \begin_layout Plain Layout
24926
24927 \change_inserted -584632292 1615846730
24928
24929 \backslash
24930 item
24931 \change_unchanged
24932
24933 \end_layout
24934
24935 \end_inset
24936
24937 ,
24938  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
24939 ).
24940  This way,
24941  users can insert redefinitions (of lengths etc.) to individual lists.
24942  By default,
24943  these arguments do not have a delimiter.
24944 \change_unchanged
24945
24946 \end_layout
24947
24948 \begin_layout Subsection
24949 Counters
24950 \begin_inset CommandInset label
24951 LatexCommand label
24952 name "subsec:Counters"
24953
24954 \end_inset
24955
24956
24957 \end_layout
24958
24959 \begin_layout Standard
24960 It is necessary to define the counters (
24961 \begin_inset Flex Noun
24962 status collapsed
24963
24964 \begin_layout Plain Layout
24965 chapter
24966 \end_layout
24967
24968 \end_inset
24969
24970 ,
24971  
24972 \begin_inset Flex Noun
24973 status collapsed
24974
24975 \begin_layout Plain Layout
24976 figure
24977 \end_layout
24978
24979 \end_inset
24980
24981 ,
24982  \SpecialChar ldots
24983 ) in the text class itself.
24984  The standard counters are defined in the file 
24985 \begin_inset Flex Code
24986 status collapsed
24987
24988 \begin_layout Plain Layout
24989 stdcounters.inc
24990 \end_layout
24991
24992 \end_inset
24993
24994 ,
24995  so you may have to do no more than add
24996 \end_layout
24997
24998 \begin_layout LyX-Code
24999 Input stdcounters.inc
25000 \end_layout
25001
25002 \begin_layout Standard
25003 to your layout file to get them to work.
25004  But if you want to define custom counters,
25005  then you can do so.
25006  The counter declaration must begin with:
25007 \end_layout
25008
25009 \begin_layout LyX-Code
25010 Counter CounterName
25011 \end_layout
25012
25013 \begin_layout Standard
25014 where of course `
25015 \begin_inset Flex Code
25016 status collapsed
25017
25018 \begin_layout Plain Layout
25019 CounterName
25020 \end_layout
25021
25022 \end_inset
25023
25024 ' is replaced by the name of the counter.
25025  And it must end with 
25026 \begin_inset Quotes eld
25027 \end_inset
25028
25029
25030 \begin_inset Flex Code
25031 status collapsed
25032
25033 \begin_layout Plain Layout
25034 End
25035 \end_layout
25036
25037 \end_inset
25038
25039
25040 \begin_inset Quotes erd
25041 \end_inset
25042
25043 .
25044  The following parameters can also be used:
25045 \end_layout
25046
25047 \begin_layout Description
25048 \begin_inset Flex Code
25049 status collapsed
25050
25051 \begin_layout Plain Layout
25052 InitialValue
25053 \end_layout
25054
25055 \end_inset
25056
25057  [
25058 \begin_inset Flex Code
25059 status collapsed
25060
25061 \begin_layout Plain Layout
25062 int=1
25063 \end_layout
25064
25065 \end_inset
25066
25067 ] Sets the initial value for the counter,
25068  to which it will be reset whenever that happens.
25069  Normally,
25070  one will want the default,
25071  1.
25072 \end_layout
25073
25074 \begin_layout Description
25075 \begin_inset Flex Code
25076 status collapsed
25077
25078 \begin_layout Plain Layout
25079 LabelString
25080 \end_layout
25081
25082 \end_inset
25083
25084  [
25085 \begin_inset Flex Code
25086 status collapsed
25087
25088 \begin_layout Plain Layout
25089 string
25090 \end_layout
25091
25092 \end_inset
25093
25094 =
25095 \begin_inset Quotes erd
25096 \end_inset
25097
25098
25099 \begin_inset Quotes erd
25100 \end_inset
25101
25102 ] When defined,
25103  this string defines how the counter is displayed.
25104  Setting this value sets 
25105 \begin_inset Flex Code
25106 status collapsed
25107
25108 \begin_layout Plain Layout
25109 LabelStringAppendix
25110 \end_layout
25111
25112 \end_inset
25113
25114  to the same value.
25115  The following special constructs can be used in the string:
25116 \end_layout
25117
25118 \begin_deeper
25119 \begin_layout Itemize
25120 \begin_inset Flex Code
25121 status collapsed
25122
25123 \begin_layout Plain Layout
25124
25125 \backslash
25126 thecounter
25127 \end_layout
25128
25129 \end_inset
25130
25131  will be replaced by the expansion of the 
25132 \begin_inset Flex Code
25133 status collapsed
25134
25135 \begin_layout Plain Layout
25136 LabelString
25137 \end_layout
25138
25139 \end_inset
25140
25141  (or 
25142 \begin_inset Flex Code
25143 status collapsed
25144
25145 \begin_layout Plain Layout
25146 LabelStringAppendix
25147 \end_layout
25148
25149 \end_inset
25150
25151 ) of the counter 
25152 \begin_inset Flex Code
25153 status collapsed
25154
25155 \begin_layout Plain Layout
25156 counter
25157 \end_layout
25158
25159 \end_inset
25160
25161 .
25162  
25163 \end_layout
25164
25165 \begin_layout Itemize
25166 counter values can be expressed using \SpecialChar LaTeX
25167 -like macros
25168 \begin_inset Newline newline
25169 \end_inset
25170
25171
25172 \begin_inset Flex Code
25173 status collapsed
25174
25175 \begin_layout Plain Layout
25176
25177 \backslash
25178
25179 \emph on
25180 numbertype
25181 \emph default
25182 {
25183 \emph on
25184 counter
25185 \emph default
25186 }
25187 \end_layout
25188
25189 \end_inset
25190
25191 ,
25192  where 
25193 \begin_inset Flex Code
25194 status collapsed
25195
25196 \begin_layout Plain Layout
25197
25198 \emph on
25199 numbertype
25200 \end_layout
25201
25202 \end_inset
25203
25204  can be:
25205 \begin_inset Foot
25206 status collapsed
25207
25208 \begin_layout Plain Layout
25209
25210 \family roman
25211 \series medium
25212 \shape up
25213 \size normal
25214 \emph off
25215 \bar no
25216 \noun off
25217 \color none
25218 Actually,
25219  the situation is a bit more complicated:
25220  any
25221 \family default
25222 \series default
25223 \shape default
25224 \emph default
25225 \bar default
25226  
25227 \size default
25228 \emph on
25229 \noun default
25230 \color inherit
25231 numbertype
25232 \family roman
25233 \series medium
25234 \shape up
25235 \size normal
25236 \emph off
25237 \bar no
25238 \noun off
25239  other than those described below will produce arabic numerals.
25240  It would not be surprising to see this change in the future.
25241 \end_layout
25242
25243 \end_inset
25244
25245  
25246 \begin_inset Flex Code
25247 status collapsed
25248
25249 \begin_layout Plain Layout
25250 arabic
25251 \end_layout
25252
25253 \end_inset
25254
25255 :
25256  1,
25257  2,
25258  3,\SpecialChar ldots
25259 ;
25260  
25261 \begin_inset Flex Code
25262 status collapsed
25263
25264 \begin_layout Plain Layout
25265 alph
25266 \end_layout
25267
25268 \end_inset
25269
25270  for lower-case letters:
25271  a,
25272  b,
25273  c,
25274  \SpecialChar ldots
25275 ;
25276  
25277 \begin_inset Flex Code
25278 status collapsed
25279
25280 \begin_layout Plain Layout
25281 Alph
25282 \end_layout
25283
25284 \end_inset
25285
25286  for upper-case letters:
25287  A,
25288  B,
25289  C,
25290  \SpecialChar ldots
25291 ;
25292  
25293 \begin_inset Flex Code
25294 status collapsed
25295
25296 \begin_layout Plain Layout
25297 roman
25298 \end_layout
25299
25300 \end_inset
25301
25302  for lower-case roman numerals:
25303  i,
25304  ii,
25305  iii,
25306  \SpecialChar ldots
25307 ;
25308  
25309 \begin_inset Flex Code
25310 status collapsed
25311
25312 \begin_layout Plain Layout
25313 Roman
25314 \end_layout
25315
25316 \end_inset
25317
25318  for upper-case roman numerals:
25319  I,
25320  II,
25321  III\SpecialChar ldots
25322 ;
25323  
25324 \begin_inset Flex Code
25325 status collapsed
25326
25327 \begin_layout Plain Layout
25328 hebrew
25329 \end_layout
25330
25331 \end_inset
25332
25333  for hebrew numerals.
25334 \end_layout
25335
25336 \end_deeper
25337 \begin_layout Standard
25338 If LabelString is not defined,
25339  a default value is constructed as follows:
25340  if the counter has a 
25341 \change_deleted 731793113 1604355218
25342 master
25343 \change_inserted 731793113 1604355221
25344 parent
25345 \change_unchanged
25346  counter 
25347 \begin_inset Flex Code
25348 status collapsed
25349
25350 \begin_layout Plain Layout
25351
25352 \change_deleted 731793113 1604355223
25353 master
25354 \change_inserted 731793113 1604355226
25355 parent
25356 \change_unchanged
25357
25358 \end_layout
25359
25360 \end_inset
25361
25362  (defined via 
25363 \begin_inset Flex Code
25364 status collapsed
25365
25366 \begin_layout Plain Layout
25367 Within
25368 \end_layout
25369
25370 \end_inset
25371
25372 ),
25373  the string
25374 \begin_inset Newline newline
25375 \end_inset
25376
25377
25378 \begin_inset Flex Code
25379 status collapsed
25380
25381 \begin_layout Plain Layout
25382
25383 \backslash
25384 the
25385 \change_inserted 731793113 1604355228
25386 parent
25387 \change_deleted 731793113 1604355230
25388 master
25389 \change_unchanged
25390 .
25391 \backslash
25392 arabic{counter}
25393 \end_layout
25394
25395 \end_inset
25396
25397  is used;
25398  otherwise the string 
25399 \begin_inset Flex Code
25400 status collapsed
25401
25402 \begin_layout Plain Layout
25403
25404 \backslash
25405 arabic{counter}
25406 \end_layout
25407
25408 \end_inset
25409
25410  is used.
25411 \end_layout
25412
25413 \begin_layout Description
25414 \begin_inset Flex Code
25415 status collapsed
25416
25417 \begin_layout Plain Layout
25418 LabelStringAppendix
25419 \end_layout
25420
25421 \end_inset
25422
25423  [
25424 \begin_inset Flex Code
25425 status collapsed
25426
25427 \begin_layout Plain Layout
25428 string
25429 \end_layout
25430
25431 \end_inset
25432
25433
25434 \begin_inset Quotes eld
25435 \end_inset
25436
25437
25438 \begin_inset Quotes erd
25439 \end_inset
25440
25441 ] Same as 
25442 \begin_inset Flex Code
25443 status collapsed
25444
25445 \begin_layout Plain Layout
25446 LabelString
25447 \end_layout
25448
25449 \end_inset
25450
25451 ,
25452  but for use in the Appendix.
25453 \change_inserted -584632292 1607202551
25454
25455 \end_layout
25456
25457 \begin_layout Description
25458
25459 \change_inserted -584632292 1607202682
25460 \begin_inset Flex Code
25461 status open
25462
25463 \begin_layout Plain Layout
25464 LaTeXName
25465 \end_layout
25466
25467 \end_inset
25468
25469  [
25470 \begin_inset Flex Code
25471 status open
25472
25473 \begin_layout Plain Layout
25474
25475 \change_inserted -584632292 1607202576
25476 string
25477 \change_unchanged
25478
25479 \end_layout
25480
25481 \end_inset
25482
25483  = 
25484 \begin_inset Quotes eld
25485 \end_inset
25486
25487
25488 \begin_inset Quotes erd
25489 \end_inset
25490
25491 ] The counter name as used in \SpecialChar LaTeX
25492 .
25493  (
25494 \change_inserted 34634807 1619711355
25495 e
25496 \change_deleted 34634807 1619711355
25497 E
25498 \change_inserted -584632292 1607202682
25499 .g.,
25500  in \SpecialChar LyX
25501 ,
25502  there is a counter named `theorem',
25503  but it is output to \SpecialChar LaTeX
25504  as `thm'.)
25505 \change_unchanged
25506
25507 \end_layout
25508
25509 \begin_layout Description
25510 \begin_inset Flex Code
25511 status collapsed
25512
25513 \begin_layout Plain Layout
25514 PrettyFormat
25515 \end_layout
25516
25517 \end_inset
25518
25519  [
25520 \begin_inset Flex Code
25521 status collapsed
25522
25523 \begin_layout Plain Layout
25524 string
25525 \end_layout
25526
25527 \end_inset
25528
25529 =
25530 \begin_inset Quotes erd
25531 \end_inset
25532
25533
25534 \begin_inset Quotes erd
25535 \end_inset
25536
25537 ] A format for use with formatted references to this counter.
25538  For example,
25539  one might want to have references to section numbers appear as 
25540 \begin_inset Quotes eld
25541 \end_inset
25542
25543 Section 2.4
25544 \begin_inset Quotes erd
25545 \end_inset
25546
25547 .
25548  The string should contain 
25549 \begin_inset Quotes eld
25550 \end_inset
25551
25552 ##
25553 \begin_inset Quotes erd
25554 \end_inset
25555
25556 .
25557  This will be replaced by the counter number itself.
25558  So,
25559  for sections,
25560  it would be:
25561  Section ##.
25562 \end_layout
25563
25564 \begin_layout Description
25565 \begin_inset Flex Code
25566 status collapsed
25567
25568 \begin_layout Plain Layout
25569 Within
25570 \end_layout
25571
25572 \end_inset
25573
25574  [
25575 \begin_inset Flex Code
25576 status collapsed
25577
25578 \begin_layout Plain Layout
25579 string
25580 \end_layout
25581
25582 \end_inset
25583
25584 =
25585 \begin_inset Quotes erd
25586 \end_inset
25587
25588
25589 \begin_inset Quotes erd
25590 \end_inset
25591
25592 ] If this is set to the name of another counter,
25593  the present counter will be reset every time the other one is increased.
25594  For example,
25595  
25596 \begin_inset Flex Code
25597 status collapsed
25598
25599 \begin_layout Plain Layout
25600 subsection
25601 \end_layout
25602
25603 \end_inset
25604
25605  is numbered inside 
25606 \begin_inset Flex Code
25607 status collapsed
25608
25609 \begin_layout Plain Layout
25610 section
25611 \end_layout
25612
25613 \end_inset
25614
25615 .
25616 \end_layout
25617
25618 \begin_layout Subsection
25619 Font description
25620 \begin_inset CommandInset label
25621 LatexCommand label
25622 name "subsec:Font-description"
25623
25624 \end_inset
25625
25626
25627 \end_layout
25628
25629 \begin_layout Standard
25630 A font description looks like this:
25631 \end_layout
25632
25633 \begin_layout LyX-Code
25634 Font 
25635 \family roman
25636 \emph on
25637 or
25638 \family default
25639 \emph default
25640  LabelFont
25641 \emph on
25642  
25643 \family roman
25644 or
25645 \family default
25646 \emph default
25647  DefaultFont
25648 \end_layout
25649
25650 \begin_layout LyX-Code
25651  ...
25652 \end_layout
25653
25654 \begin_layout LyX-Code
25655 EndFont
25656 \end_layout
25657
25658 \begin_layout Standard
25659 The following commands are available:
25660 \end_layout
25661
25662 \begin_layout Description
25663 \begin_inset Flex Code
25664 status collapsed
25665
25666 \begin_layout Plain Layout
25667 Color
25668 \end_layout
25669
25670 \end_inset
25671
25672  [
25673 \change_deleted -712698321 1607682984
25674
25675 \begin_inset Flex Code
25676 status collapsed
25677
25678 \begin_layout Plain Layout
25679
25680 \emph on
25681 none
25682 \end_layout
25683
25684 \end_inset
25685
25686 ,
25687  
25688 \begin_inset Flex Code
25689 status collapsed
25690
25691 \begin_layout Plain Layout
25692 black
25693 \end_layout
25694
25695 \end_inset
25696
25697 ,
25698  
25699 \begin_inset Flex Code
25700 status collapsed
25701
25702 \begin_layout Plain Layout
25703 white
25704 \end_layout
25705
25706 \end_inset
25707
25708 ,
25709  
25710 \begin_inset Flex Code
25711 status collapsed
25712
25713 \begin_layout Plain Layout
25714 red
25715 \end_layout
25716
25717 \end_inset
25718
25719 ,
25720  
25721 \begin_inset Flex Code
25722 status collapsed
25723
25724 \begin_layout Plain Layout
25725 green
25726 \end_layout
25727
25728 \end_inset
25729
25730 ,
25731  
25732 \begin_inset Flex Code
25733 status collapsed
25734
25735 \begin_layout Plain Layout
25736 blue
25737 \end_layout
25738
25739 \end_inset
25740
25741 ,
25742  
25743 \begin_inset Flex Code
25744 status collapsed
25745
25746 \begin_layout Plain Layout
25747 cyan
25748 \end_layout
25749
25750 \end_inset
25751
25752 ,
25753  
25754 \begin_inset Flex Code
25755 status collapsed
25756
25757 \begin_layout Plain Layout
25758 magenta
25759 \end_layout
25760
25761 \end_inset
25762
25763 ,
25764  
25765 \begin_inset Flex Code
25766 status collapsed
25767
25768 \begin_layout Plain Layout
25769 yellow
25770 \end_layout
25771
25772 \end_inset
25773
25774 ,
25775  
25776 \begin_inset Flex Code
25777 status collapsed
25778
25779 \begin_layout Plain Layout
25780 brown
25781 \end_layout
25782
25783 \end_inset
25784
25785 ,
25786  
25787 \begin_inset Flex Code
25788 status collapsed
25789
25790 \begin_layout Plain Layout
25791 darkgray
25792 \end_layout
25793
25794 \end_inset
25795
25796 ,
25797  
25798 \begin_inset Flex Code
25799 status collapsed
25800
25801 \begin_layout Plain Layout
25802 gray
25803 \end_layout
25804
25805 \end_inset
25806
25807 ,
25808  
25809 \begin_inset Flex Code
25810 status collapsed
25811
25812 \begin_layout Plain Layout
25813 lightgray
25814 \end_layout
25815
25816 \end_inset
25817
25818 ,
25819  
25820 \begin_inset Flex Code
25821 status collapsed
25822
25823 \begin_layout Plain Layout
25824 lime
25825 \end_layout
25826
25827 \end_inset
25828
25829 ,
25830  
25831 \begin_inset Flex Code
25832 status collapsed
25833
25834 \begin_layout Plain Layout
25835 orange
25836 \end_layout
25837
25838 \end_inset
25839
25840 ,
25841  
25842 \begin_inset Flex Code
25843 status collapsed
25844
25845 \begin_layout Plain Layout
25846 olive
25847 \end_layout
25848
25849 \end_inset
25850
25851 ,
25852  
25853 \begin_inset Flex Code
25854 status collapsed
25855
25856 \begin_layout Plain Layout
25857 pink
25858 \end_layout
25859
25860 \end_inset
25861
25862 ,
25863  
25864 \begin_inset Flex Code
25865 status collapsed
25866
25867 \begin_layout Plain Layout
25868 purple
25869 \end_layout
25870
25871 \end_inset
25872
25873 ,
25874  
25875 \begin_inset Flex Code
25876 status collapsed
25877
25878 \begin_layout Plain Layout
25879 teal
25880 \end_layout
25881
25882 \end_inset
25883
25884 ,
25885  
25886 \begin_inset Flex Code
25887 status collapsed
25888
25889 \begin_layout Plain Layout
25890 violet
25891 \end_layout
25892
25893 \end_inset
25894
25895
25896 \change_inserted -712698321 1607683139
25897
25898 \begin_inset Flex Code
25899 status collapsed
25900
25901 \begin_layout Plain Layout
25902
25903 \change_inserted -712698321 1607683135
25904 string
25905 \change_unchanged
25906
25907 \end_layout
25908
25909 \end_inset
25910
25911 ] See appendix
25912 \begin_inset space ~
25913 \end_inset
25914
25915
25916 \begin_inset CommandInset ref
25917 LatexCommand ref
25918 reference "chap:Names-of-colors"
25919 plural "false"
25920 caps "false"
25921 noprefix "false"
25922
25923 \end_inset
25924
25925  for 
25926 \change_deleted -712698321 1607683144
25927 ]
25928 \change_inserted -712698321 1607683146
25929 valid arguments.
25930 \change_unchanged
25931
25932 \end_layout
25933
25934 \begin_layout Description
25935 \begin_inset Flex Code
25936 status collapsed
25937
25938 \begin_layout Plain Layout
25939 Family
25940 \end_layout
25941
25942 \end_inset
25943
25944  [
25945 \begin_inset Flex Code
25946 status collapsed
25947
25948 \begin_layout Plain Layout
25949
25950 \emph on
25951 Roman
25952 \end_layout
25953
25954 \end_inset
25955
25956 ,
25957  
25958 \begin_inset Flex Code
25959 status collapsed
25960
25961 \begin_layout Plain Layout
25962 Sans
25963 \end_layout
25964
25965 \end_inset
25966
25967 ,
25968  
25969 \begin_inset Flex Code
25970 status collapsed
25971
25972 \begin_layout Plain Layout
25973 Typewriter
25974 \end_layout
25975
25976 \end_inset
25977
25978 ]
25979 \end_layout
25980
25981 \begin_layout Description
25982 \begin_inset Flex Code
25983 status collapsed
25984
25985 \begin_layout Plain Layout
25986 Misc
25987 \end_layout
25988
25989 \end_inset
25990
25991  [
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996 string
25997 \end_layout
25998
25999 \end_inset
26000
26001 ] Valid arguments are:
26002  
26003 \begin_inset Flex Code
26004 status collapsed
26005
26006 \begin_layout Plain Layout
26007 emph
26008 \end_layout
26009
26010 \end_inset
26011
26012 ,
26013  
26014 \begin_inset Flex Code
26015 status collapsed
26016
26017 \begin_layout Plain Layout
26018 noun
26019 \end_layout
26020
26021 \end_inset
26022
26023 ,
26024  
26025 \begin_inset Flex Code
26026 status collapsed
26027
26028 \begin_layout Plain Layout
26029 strikeout
26030 \end_layout
26031
26032 \end_inset
26033
26034 ,
26035  
26036 \begin_inset Flex Code
26037 status collapsed
26038
26039 \begin_layout Plain Layout
26040 underbar
26041 \end_layout
26042
26043 \end_inset
26044
26045 ,
26046  
26047 \begin_inset Flex Code
26048 status collapsed
26049
26050 \begin_layout Plain Layout
26051 uuline
26052 \end_layout
26053
26054 \end_inset
26055
26056 ,
26057  
26058 \begin_inset Flex Code
26059 status collapsed
26060
26061 \begin_layout Plain Layout
26062 uwave
26063 \end_layout
26064
26065 \end_inset
26066
26067 ,
26068  
26069 \begin_inset Flex Code
26070 status collapsed
26071
26072 \begin_layout Plain Layout
26073 no_emph
26074 \end_layout
26075
26076 \end_inset
26077
26078 ,
26079  
26080 \begin_inset Flex Code
26081 status collapsed
26082
26083 \begin_layout Plain Layout
26084 no_noun
26085 \end_layout
26086
26087 \end_inset
26088
26089 ,
26090  
26091 \begin_inset Flex Code
26092 status collapsed
26093
26094 \begin_layout Plain Layout
26095 no_strikeout
26096 \end_layout
26097
26098 \end_inset
26099
26100 ,
26101  
26102 \begin_inset Flex Code
26103 status collapsed
26104
26105 \begin_layout Plain Layout
26106 no_bar
26107 \end_layout
26108
26109 \end_inset
26110
26111 ,
26112  
26113 \begin_inset Flex Code
26114 status collapsed
26115
26116 \begin_layout Plain Layout
26117 no_uuline
26118 \end_layout
26119
26120 \end_inset
26121
26122  and 
26123 \begin_inset Flex Code
26124 status collapsed
26125
26126 \begin_layout Plain Layout
26127 no_uwave
26128 \end_layout
26129
26130 \end_inset
26131
26132 .
26133  Each of these turns on or off the corresponding attribute.
26134  For example,
26135  
26136 \begin_inset Flex Code
26137 status collapsed
26138
26139 \begin_layout Plain Layout
26140 emph
26141 \end_layout
26142
26143 \end_inset
26144
26145  turns on emphasis,
26146  and 
26147 \begin_inset Flex Code
26148 status collapsed
26149
26150 \begin_layout Plain Layout
26151 no_emph
26152 \end_layout
26153
26154 \end_inset
26155
26156  turns it off.
26157  
26158 \begin_inset Newline newline
26159 \end_inset
26160
26161 If the latter seems puzzling,
26162  remember that the font settings for the present context are generally inherited from the surrounding context.
26163  So 
26164 \begin_inset Flex Code
26165 status collapsed
26166
26167 \begin_layout Plain Layout
26168 no_emph
26169 \end_layout
26170
26171 \end_inset
26172
26173  would turn off the emphasis that was anyway in effect,
26174  say,
26175  in a theorem environment.
26176 \end_layout
26177
26178 \begin_layout Description
26179 \begin_inset Flex Code
26180 status collapsed
26181
26182 \begin_layout Plain Layout
26183 Series
26184 \end_layout
26185
26186 \end_inset
26187
26188  [
26189 \begin_inset Flex Code
26190 status collapsed
26191
26192 \begin_layout Plain Layout
26193
26194 \emph on
26195 Medium
26196 \end_layout
26197
26198 \end_inset
26199
26200 ,
26201  
26202 \begin_inset Flex Code
26203 status collapsed
26204
26205 \begin_layout Plain Layout
26206 Bold
26207 \end_layout
26208
26209 \end_inset
26210
26211
26212 \end_layout
26213
26214 \begin_layout Description
26215 \begin_inset Flex Code
26216 status collapsed
26217
26218 \begin_layout Plain Layout
26219 Shape
26220 \end_layout
26221
26222 \end_inset
26223
26224  [
26225 \begin_inset Flex Code
26226 status collapsed
26227
26228 \begin_layout Plain Layout
26229
26230 \emph on
26231 Up
26232 \end_layout
26233
26234 \end_inset
26235
26236 ,
26237  
26238 \begin_inset Flex Code
26239 status collapsed
26240
26241 \begin_layout Plain Layout
26242 Italic
26243 \end_layout
26244
26245 \end_inset
26246
26247 ,
26248  
26249 \begin_inset Flex Code
26250 status collapsed
26251
26252 \begin_layout Plain Layout
26253 SmallCaps
26254 \end_layout
26255
26256 \end_inset
26257
26258 ,
26259  
26260 \begin_inset Flex Code
26261 status collapsed
26262
26263 \begin_layout Plain Layout
26264 Slanted
26265 \end_layout
26266
26267 \end_inset
26268
26269
26270 \end_layout
26271
26272 \begin_layout Description
26273 \begin_inset Flex Code
26274 status collapsed
26275
26276 \begin_layout Plain Layout
26277 Size
26278 \end_layout
26279
26280 \end_inset
26281
26282  [
26283 \begin_inset Flex Code
26284 status collapsed
26285
26286 \begin_layout Plain Layout
26287 tiny
26288 \end_layout
26289
26290 \end_inset
26291
26292 ,
26293  
26294 \begin_inset Flex Code
26295 status collapsed
26296
26297 \begin_layout Plain Layout
26298 small
26299 \end_layout
26300
26301 \end_inset
26302
26303 ,
26304  
26305 \begin_inset Flex Code
26306 status collapsed
26307
26308 \begin_layout Plain Layout
26309
26310 \emph on
26311 normal
26312 \end_layout
26313
26314 \end_inset
26315
26316 ,
26317  
26318 \begin_inset Flex Code
26319 status collapsed
26320
26321 \begin_layout Plain Layout
26322 large
26323 \end_layout
26324
26325 \end_inset
26326
26327 ,
26328  
26329 \begin_inset Flex Code
26330 status collapsed
26331
26332 \begin_layout Plain Layout
26333 larger
26334 \end_layout
26335
26336 \end_inset
26337
26338 ,
26339  
26340 \begin_inset Flex Code
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344 largest
26345 \end_layout
26346
26347 \end_inset
26348
26349 ,
26350  
26351 \begin_inset Flex Code
26352 status collapsed
26353
26354 \begin_layout Plain Layout
26355 huge
26356 \end_layout
26357
26358 \end_inset
26359
26360 ,
26361  
26362 \begin_inset Flex Code
26363 status collapsed
26364
26365 \begin_layout Plain Layout
26366 giant
26367 \end_layout
26368
26369 \end_inset
26370
26371 ]
26372 \end_layout
26373
26374 \begin_layout Subsection
26375 \begin_inset CommandInset label
26376 LatexCommand label
26377 name "subsec:Citation-engine-description"
26378
26379 \end_inset
26380
26381 Cite engine description
26382 \end_layout
26383
26384 \begin_layout Standard
26385 The 
26386 \begin_inset Flex Code
26387 status collapsed
26388
26389 \begin_layout Plain Layout
26390 CiteEngine
26391 \end_layout
26392
26393 \end_inset
26394
26395  blocks,
26396  as used mainly in cite engine files (see 
26397 \begin_inset CommandInset ref
26398 LatexCommand ref
26399 reference "subsec:Cite-Engine-Files"
26400 plural "false"
26401 caps "false"
26402 noprefix "false"
26403
26404 \end_inset
26405
26406 ),
26407  define the citation commands provided by a specific 
26408 \begin_inset Quotes eld
26409 \end_inset
26410
26411 cite engine
26412 \begin_inset Quotes erd
26413 \end_inset
26414
26415 .
26416  A cite engine,
26417  in \SpecialChar LyX
26418  terms,
26419  is way specific way to format citations,
26420  using numbers,
26421  author names and/or years.
26422  Currently,
26423  \SpecialChar LyX
26424  supports three such engine types,
26425  namely:
26426 \end_layout
26427
26428 \begin_layout Enumerate
26429 \begin_inset Flex Code
26430 status collapsed
26431
26432 \begin_layout Plain Layout
26433 default
26434 \end_layout
26435
26436 \end_inset
26437
26438 :
26439  the default Bib\SpecialChar TeX
26440  way to format citations,
26441  a simple numeric style (e.
26442 \begin_inset space \thinspace{}
26443 \end_inset
26444
26445 g.,
26446  
26447 \begin_inset Quotes eld
26448 \end_inset
26449
26450 [1]
26451 \begin_inset Quotes erd
26452 \end_inset
26453
26454 )
26455 \end_layout
26456
26457 \begin_layout Enumerate
26458 \begin_inset Flex Code
26459 status collapsed
26460
26461 \begin_layout Plain Layout
26462 authoryear
26463 \end_layout
26464
26465 \end_inset
26466
26467 :
26468  Harvard-styled citations using author names and publication year (e.
26469 \begin_inset space \thinspace{}
26470 \end_inset
26471
26472 g.,
26473  
26474 \begin_inset Quotes eld
26475 \end_inset
26476
26477 Smith and Miller (2017b)
26478 \begin_inset Quotes erd
26479 \end_inset
26480
26481 )
26482 \end_layout
26483
26484 \begin_layout Enumerate
26485 \begin_inset Flex Code
26486 status collapsed
26487
26488 \begin_layout Plain Layout
26489 numerical
26490 \end_layout
26491
26492 \end_inset
26493
26494 :
26495  extended numerical citations that also allow for author or title next to the number (e.
26496 \begin_inset space \thinspace{}
26497 \end_inset
26498
26499 g.,
26500  
26501 \begin_inset Quotes eld
26502 \end_inset
26503
26504 Smith and Miller [1]
26505 \begin_inset Quotes erd
26506 \end_inset
26507
26508 )
26509 \end_layout
26510
26511 \begin_layout Standard
26512 \begin_inset Flex Code
26513 status collapsed
26514
26515 \begin_layout Plain Layout
26516 CiteEngine
26517 \end_layout
26518
26519 \end_inset
26520
26521  blocks look like this:
26522 \end_layout
26523
26524 \begin_layout LyX-Code
26525 CiteEngine default
26526 \end_layout
26527
26528 \begin_layout LyX-Code
26529  cite
26530 \end_layout
26531
26532 \begin_layout LyX-Code
26533  Citep*[][]
26534 \end_layout
26535
26536 \begin_layout LyX-Code
26537  citeyearpar[][]=parencite*
26538 \end_layout
26539
26540 \begin_layout LyX-Code
26541  ...
26542 \end_layout
26543
26544 \begin_layout LyX-Code
26545 End
26546 \end_layout
26547
26548 \begin_layout Standard
26549 The tag following 
26550 \begin_inset Flex Code
26551 status collapsed
26552
26553 \begin_layout Plain Layout
26554 CiteEngine
26555 \end_layout
26556
26557 \end_inset
26558
26559  denotes the engine.
26560  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
26561  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
26562  command and the \SpecialChar LaTeX
26563  output or more complex in order to differentiate things.
26564  The full syntax is:
26565 \end_layout
26566
26567 \begin_layout LyX-Code
26568 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
26569 \end_layout
26570
26571 \begin_layout Itemize
26572 \begin_inset Flex Code
26573 status collapsed
26574
26575 \begin_layout Plain Layout
26576 LyXName
26577 \end_layout
26578
26579 \end_inset
26580
26581 :
26582  The name as used in the 
26583 \begin_inset Flex Code
26584 status collapsed
26585
26586 \begin_layout Plain Layout
26587 *.lyx
26588 \end_layout
26589
26590 \end_inset
26591
26592  file.
26593 \end_layout
26594
26595 \begin_deeper
26596 \begin_layout Standard
26597 For portability reasons,
26598  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
26599  and thus we need to differentiate a 
26600 \begin_inset Flex Code
26601 status collapsed
26602
26603 \begin_layout Plain Layout
26604 latexcmd
26605 \end_layout
26606
26607 \end_inset
26608
26609  sometimes,
26610  if the \SpecialChar LaTeX
26611  command names differ).
26612 \end_layout
26613
26614 \end_deeper
26615 \begin_layout Itemize
26616 \begin_inset Flex Code
26617 status collapsed
26618
26619 \begin_layout Plain Layout
26620 alias
26621 \end_layout
26622
26623 \end_inset
26624
26625 :
26626  a (comma-separated) list of commands that fall back to the given 
26627 \begin_inset Flex Code
26628 status collapsed
26629
26630 \begin_layout Plain Layout
26631 LyXName
26632 \end_layout
26633
26634 \end_inset
26635
26636  in the current engine.
26637  This eases the switch of citation packages and engines.
26638  The 
26639 \begin_inset Flex Code
26640 status collapsed
26641
26642 \begin_layout Plain Layout
26643 alias
26644 \end_layout
26645
26646 \end_inset
26647
26648  can be compared to 
26649 \begin_inset Flex Code
26650 status collapsed
26651
26652 \begin_layout Plain Layout
26653 ObsoletedBy
26654 \end_layout
26655
26656 \end_inset
26657
26658  in layout definitions.
26659 \end_layout
26660
26661 \begin_layout Itemize
26662 \begin_inset Flex Code
26663 status collapsed
26664
26665 \begin_layout Plain Layout
26666 latexcmd
26667 \end_layout
26668
26669 \end_inset
26670
26671 :
26672  The actual \SpecialChar LaTeX
26673  command that is output.
26674  
26675 \end_layout
26676
26677 \begin_layout Standard
26678 \begin_inset Flex Code
26679 status collapsed
26680
26681 \begin_layout Plain Layout
26682 Alias
26683 \end_layout
26684
26685 \end_inset
26686
26687  and 
26688 \begin_inset Flex Code
26689 status collapsed
26690
26691 \begin_layout Plain Layout
26692 latexcmd
26693 \end_layout
26694
26695 \end_inset
26696
26697  are optional.
26698  If no 
26699 \begin_inset Flex Code
26700 status collapsed
26701
26702 \begin_layout Plain Layout
26703 latexcmd
26704 \end_layout
26705
26706 \end_inset
26707
26708  is given,
26709  the 
26710 \begin_inset Flex Code
26711 status collapsed
26712
26713 \begin_layout Plain Layout
26714 LyXName
26715 \end_layout
26716
26717 \end_inset
26718
26719  will be output to \SpecialChar LaTeX
26720 .
26721 \end_layout
26722
26723 \begin_layout Standard
26724 Note further:
26725 \end_layout
26726
26727 \begin_layout Itemize
26728 Capitalization indicates that the command also has a capitalized form (
26729 \begin_inset Flex Code
26730 status collapsed
26731
26732 \begin_layout Plain Layout
26733
26734 \backslash
26735 Latexcmd
26736 \end_layout
26737
26738 \end_inset
26739
26740  vs.
26741  
26742 \begin_inset Flex Code
26743 status collapsed
26744
26745 \begin_layout Plain Layout
26746
26747 \backslash
26748 latexcmd
26749 \end_layout
26750
26751 \end_inset
26752
26753 ).
26754  These usually enforce up-casing of name prefixes (
26755 \emph on
26756 von Goethe
26757 \emph default
26758  
26759 \begin_inset Formula $\Rightarrow$
26760 \end_inset
26761
26762  
26763 \emph on
26764 Von Goethe
26765 \emph default
26766 ).
26767 \end_layout
26768
26769 \begin_layout Itemize
26770 Brackets 
26771 \begin_inset Flex Code
26772 status collapsed
26773
26774 \begin_layout Plain Layout
26775 []
26776 \end_layout
26777
26778 \end_inset
26779
26780  indicate the number of optional arguments (there can be 0–2).
26781 \end_layout
26782
26783 \begin_layout Itemize
26784 A star 
26785 \begin_inset Flex Code
26786 status collapsed
26787
26788 \begin_layout Plain Layout
26789 *
26790 \end_layout
26791
26792 \end_inset
26793
26794  indicates there is a starred version of the command (
26795 \begin_inset Flex Code
26796 status collapsed
26797
26798 \begin_layout Plain Layout
26799
26800 \backslash
26801 latexcmd*
26802 \end_layout
26803
26804 \end_inset
26805
26806  vs.
26807  
26808 \begin_inset Flex Code
26809 status collapsed
26810
26811 \begin_layout Plain Layout
26812
26813 \backslash
26814 latexcmd
26815 \end_layout
26816
26817 \end_inset
26818
26819 ).
26820  
26821 \end_layout
26822
26823 \begin_deeper
26824 \begin_layout Standard
26825 By default,
26826  the starred version means:
26827  Output all authors even if it should be shortened with 
26828 \begin_inset Quotes eld
26829 \end_inset
26830
26831 et al.
26832 \begin_inset Quotes erd
26833 \end_inset
26834
26835  due to the 
26836 \begin_inset Flex Code
26837 status collapsed
26838
26839 \begin_layout Plain Layout
26840 MaxCiteNames
26841 \end_layout
26842
26843 \end_inset
26844
26845  threshold.
26846 \end_layout
26847
26848 \begin_layout Standard
26849 If the star has a different meaning for a given command,
26850  it can be specified in angle brackets:
26851  
26852 \begin_inset Flex Code
26853 status collapsed
26854
26855 \begin_layout Plain Layout
26856 <!_stardesc!_stardesctooltip>
26857 \end_layout
26858
26859 \end_inset
26860
26861 .
26862  Maximal two translatable macro keywords,
26863  marked by the prefix 
26864 \begin_inset Flex Code
26865 status collapsed
26866
26867 \begin_layout Plain Layout
26868 !_
26869 \end_layout
26870
26871 \end_inset
26872
26873 ,
26874  can be given.
26875  The first points to the string that replaces the 
26876 \begin_inset Quotes eld
26877 \end_inset
26878
26879 Full aut&hor list
26880 \begin_inset Quotes erd
26881 \end_inset
26882
26883  checkbox label in the citation dialog,
26884  the second one to an optional tool tip for this checkbox.
26885  
26886 \end_layout
26887
26888 \begin_layout Standard
26889 Note that these two macros have to be defined in a 
26890 \begin_inset Flex Code
26891 status collapsed
26892
26893 \begin_layout Plain Layout
26894 CiteFormat
26895 \end_layout
26896
26897 \end_inset
26898
26899  (see next section),
26900  dropping the 
26901 \begin_inset Flex Code
26902 status collapsed
26903
26904 \begin_layout Plain Layout
26905 !
26906 \end_layout
26907
26908 \end_inset
26909
26910  from the prefix,
26911  like this:
26912  
26913 \end_layout
26914
26915 \begin_layout LyX-Code
26916 _stardesc Sta&rred command label
26917 \end_layout
26918
26919 \begin_layout LyX-Code
26920 _stardesctooltip Tooltip for the starred command checkbox.
26921 \end_layout
26922
26923 \end_deeper
26924 \begin_layout Itemize
26925 A dollar sign 
26926 \begin_inset Flex Code
26927 status collapsed
26928
26929 \begin_layout Plain Layout
26930 $
26931 \end_layout
26932
26933 \end_inset
26934
26935  indicates that this command features 
26936 \begin_inset Quotes eld
26937 \end_inset
26938
26939 qualified citation lists
26940 \begin_inset Quotes erd
26941 \end_inset
26942
26943 .
26944  This is a 
26945 \family sans
26946 Biblatex
26947 \family default
26948 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
26949  Please refer to the 
26950 \family sans
26951 Biblatex
26952 \family default
26953  manual for details.
26954 \change_inserted -712698321 1526898670
26955
26956 \end_layout
26957
26958 \begin_layout Standard
26959
26960 \change_inserted -712698321 1526899524
26961 If you want to add a cite command to a cite engine (e.
26962 \begin_inset space \thinspace{}
26963 \end_inset
26964
26965 g.,
26966  add a specific command provided by a class),
26967  you can use 
26968 \begin_inset Flex Code
26969 status collapsed
26970
26971 \begin_layout Plain Layout
26972
26973 \change_inserted -712698321 1526898768
26974 AddToCiteEngine <engine type> \SpecialChar ldots
26975  End
26976 \change_unchanged
26977
26978 \end_layout
26979
26980 \end_inset
26981
26982 .
26983  Note that only cite commands that do not exist yet are added.
26984 \change_unchanged
26985
26986 \end_layout
26987
26988 \begin_layout Subsection
26989 \begin_inset CommandInset label
26990 LatexCommand label
26991 name "subsec:Citation-format-description"
26992
26993 \end_inset
26994
26995 Cite format description
26996 \end_layout
26997
26998 \begin_layout Standard
26999 The 
27000 \begin_inset Flex Code
27001 status collapsed
27002
27003 \begin_layout Plain Layout
27004 CiteFormat
27005 \end_layout
27006
27007 \end_inset
27008
27009  blocks are used to describe how bibliographic information should be displayed,
27010  both within \SpecialChar LyX
27011  itself (in the citation dialog and in tooltips,
27012  for example) and in XHTML output.
27013  Such a block might look like this:
27014 \end_layout
27015
27016 \begin_layout LyX-Code
27017 CiteFormat
27018 \end_layout
27019
27020 \begin_layout LyX-Code
27021  article ...
27022 \end_layout
27023
27024 \begin_layout LyX-Code
27025  book ...
27026 \end_layout
27027
27028 \begin_layout LyX-Code
27029 End
27030 \end_layout
27031
27032 \begin_layout Standard
27033 or
27034 \end_layout
27035
27036 \begin_layout LyX-Code
27037 CiteFormat
27038 \end_layout
27039
27040 \begin_layout LyX-Code
27041  cite ...
27042 \end_layout
27043
27044 \begin_layout LyX-Code
27045  citet*[][] ...
27046 \end_layout
27047
27048 \begin_layout LyX-Code
27049 End
27050 \end_layout
27051
27052 \begin_layout Standard
27053 In the first case,
27054  the individual lines define how the bibliographic information associated with an article or book,
27055  respectively,
27056  is to be displayed,
27057  and such a definition can be given for any 
27058 \begin_inset Quotes els
27059 \end_inset
27060
27061 entry type
27062 \begin_inset Quotes ers
27063 \end_inset
27064
27065  that might be present in a Bib\SpecialChar TeX
27066  file.
27067  \SpecialChar LyX
27068  defines a default format in the source code that will be used if no specific definition has been given.
27069  \SpecialChar LyX
27070  predefines several formats in the file 
27071 \begin_inset Flex Code
27072 status collapsed
27073
27074 \begin_layout Plain Layout
27075 stdciteformats.inc
27076 \end_layout
27077
27078 \end_inset
27079
27080 ,
27081  which is included in most of \SpecialChar LyX
27082 's document classes.
27083 \end_layout
27084
27085 \begin_layout Standard
27086 In the second case,
27087  the lines define how a specific citation command (in the example 
27088 \begin_inset Flex Code
27089 status collapsed
27090
27091 \begin_layout Plain Layout
27092
27093 \backslash
27094 cite
27095 \end_layout
27096
27097 \end_inset
27098
27099 ,
27100  
27101 \begin_inset Flex Code
27102 status collapsed
27103
27104 \begin_layout Plain Layout
27105
27106 \backslash
27107 citet
27108 \end_layout
27109
27110 \end_inset
27111
27112 ) is to be displayed on the citation inset label,
27113  in the citation dialog,
27114  menu or XHTML output.
27115  \SpecialChar LyX
27116  defines such formats for the citation style variants it supports via 
27117 \family sans
27118 Document\SpecialChar menuseparator
27119 Setting\SpecialChar menuseparator
27120 Bibliography\SpecialChar ldots
27121
27122 \family default
27123  in specific 
27124 \begin_inset Flex Code
27125 status collapsed
27126
27127 \begin_layout Plain Layout
27128 *.citeengine
27129 \end_layout
27130
27131 \end_inset
27132
27133  files that are shipped with \SpecialChar LyX
27134  (see 
27135 \begin_inset CommandInset ref
27136 LatexCommand ref
27137 reference "subsec:Cite-Engine-Files"
27138 plural "false"
27139 caps "false"
27140 noprefix "false"
27141
27142 \end_inset
27143
27144 ).
27145 \end_layout
27146
27147 \begin_layout Standard
27148 The definitions use a simple language that allows Bib\SpecialChar TeX
27149  keys to be replaced with their values.
27150  Keys should be enclosed in 
27151 \begin_inset Flex Code
27152 status collapsed
27153
27154 \begin_layout Plain Layout
27155 %
27156 \end_layout
27157
27158 \end_inset
27159
27160  signs,
27161  e.g.:
27162  
27163 \begin_inset Flex Code
27164 status collapsed
27165
27166 \begin_layout Plain Layout
27167 %author%
27168 \end_layout
27169
27170 \end_inset
27171
27172 .
27173  So a simple definition might look like this:
27174 \end_layout
27175
27176 \begin_layout LyX-Code
27177 misc %author%,
27178  
27179 \begin_inset Quotes eld
27180 \end_inset
27181
27182 %title%
27183 \begin_inset Quotes erd
27184 \end_inset
27185
27186 .
27187 \end_layout
27188
27189 \begin_layout Standard
27190 This would print the author,
27191  followed by a comma,
27192  followed by the title,
27193  in quotes,
27194  followed by a period.
27195 \end_layout
27196
27197 \begin_layout Standard
27198 Of course,
27199  sometimes you may want to print a key only if it exists.
27200  This can be done by using a conditional construction,
27201  such as:
27202  
27203 \begin_inset Flex Code
27204 status collapsed
27205
27206 \begin_layout Plain Layout
27207 {%volume%[[vol.
27208 \begin_inset space ~
27209 \end_inset
27210
27211 %volume%]]}
27212 \end_layout
27213
27214 \end_inset
27215
27216 .
27217  This says:
27218  If the 
27219 \begin_inset Flex Code
27220 status collapsed
27221
27222 \begin_layout Plain Layout
27223 volume
27224 \end_layout
27225
27226 \end_inset
27227
27228  key exists,
27229  then print 
27230 \begin_inset Quotes eld
27231 \end_inset
27232
27233 vol.
27234 \begin_inset space ~
27235 \end_inset
27236
27237
27238 \begin_inset Quotes erd
27239 \end_inset
27240
27241  followed by the volume key.
27242  It is also possible to have an else clause in the conditional,
27243  such as:
27244 \begin_inset Newline newline
27245 \end_inset
27246
27247
27248 \begin_inset Flex Code
27249 status collapsed
27250
27251 \begin_layout Plain Layout
27252 {%author%[[%author%]][[%editor%,
27253  ed.]]}
27254 \end_layout
27255
27256 \end_inset
27257
27258 .
27259 \begin_inset Newline newline
27260 \end_inset
27261
27262 Here,
27263  the 
27264 \begin_inset Flex Code
27265 status collapsed
27266
27267 \begin_layout Plain Layout
27268 author
27269 \end_layout
27270
27271 \end_inset
27272
27273  key is printed if it exists;
27274  otherwise,
27275  the editor key is printed,
27276  followed by 
27277 \begin_inset Quotes eld
27278 \end_inset
27279
27280 ,
27281 \begin_inset space ~
27282 \end_inset
27283
27284 ed.
27285 \begin_inset Quotes erd
27286 \end_inset
27287
27288  Note that the key is again enclosed in 
27289 \begin_inset Flex Code
27290 status collapsed
27291
27292 \begin_layout Plain Layout
27293 %
27294 \end_layout
27295
27296 \end_inset
27297
27298  signs;
27299  the entire conditional is enclosed in braces;
27300  and the if and else clauses are enclosed in double brackets,
27301  
27302 \begin_inset Quotes eld
27303 \end_inset
27304
27305
27306 \begin_inset Flex Code
27307 status collapsed
27308
27309 \begin_layout Plain Layout
27310 [[
27311 \end_layout
27312
27313 \end_inset
27314
27315
27316 \begin_inset Quotes eld
27317 \end_inset
27318
27319  and 
27320 \begin_inset Quotes eld
27321 \end_inset
27322
27323
27324 \begin_inset Flex Code
27325 status collapsed
27326
27327 \begin_layout Plain Layout
27328 ]]
27329 \end_layout
27330
27331 \end_inset
27332
27333
27334 \begin_inset Quotes erd
27335 \end_inset
27336
27337 .
27338  There must be no space between any of these.
27339 \end_layout
27340
27341 \begin_layout Standard
27342 Next to the entry keys,
27343  there are some special keys that can be used for these conditionals:
27344 \end_layout
27345
27346 \begin_layout Itemize
27347 \begin_inset Flex Code
27348 status collapsed
27349
27350 \begin_layout Plain Layout
27351 {%dialog%[[true]][[false]]}
27352 \end_layout
27353
27354 \end_inset
27355
27356 :
27357  process the 
27358 \begin_inset Quotes eld
27359 \end_inset
27360
27361 true
27362 \begin_inset Quotes erd
27363 \end_inset
27364
27365  part for dialogs and menus,
27366  the 
27367 \begin_inset Quotes eld
27368 \end_inset
27369
27370 false
27371 \begin_inset Quotes erd
27372 \end_inset
27373
27374  part for other contexts (workarea,
27375  export)
27376 \end_layout
27377
27378 \begin_layout Itemize
27379 \begin_inset Flex Code
27380 status collapsed
27381
27382 \begin_layout Plain Layout
27383 {%export%[[true]][[false]]}
27384 \end_layout
27385
27386 \end_inset
27387
27388 :
27389  process the 
27390 \begin_inset Quotes eld
27391 \end_inset
27392
27393 true
27394 \begin_inset Quotes erd
27395 \end_inset
27396
27397  part for export and menus,
27398  the 
27399 \begin_inset Quotes eld
27400 \end_inset
27401
27402 false
27403 \begin_inset Quotes erd
27404 \end_inset
27405
27406  part for other contexts (workarea,
27407  dialog)
27408 \end_layout
27409
27410 \begin_layout Itemize
27411 \begin_inset Flex Code
27412 status collapsed
27413
27414 \begin_layout Plain Layout
27415 {%next%[[true]]}
27416 \end_layout
27417
27418 \end_inset
27419
27420 :
27421  process the 
27422 \begin_inset Quotes eld
27423 \end_inset
27424
27425 true
27426 \begin_inset Quotes erd
27427 \end_inset
27428
27429  part if another item follows (e.
27430 \begin_inset space \thinspace{}
27431 \end_inset
27432
27433 g.,
27434  in a citation with multiple keys)
27435 \end_layout
27436
27437 \begin_layout Itemize
27438 \begin_inset Flex Code
27439 status collapsed
27440
27441 \begin_layout Plain Layout
27442 {%second%[[true]][[false]]}
27443 \end_layout
27444
27445 \end_inset
27446
27447 :
27448  process the 
27449 \begin_inset Quotes eld
27450 \end_inset
27451
27452 true
27453 \begin_inset Quotes erd
27454 \end_inset
27455
27456  if this is the second of multiple items,
27457  else the 
27458 \begin_inset Quotes eld
27459 \end_inset
27460
27461 false
27462 \begin_inset Quotes erd
27463 \end_inset
27464
27465  part
27466 \end_layout
27467
27468 \begin_layout Itemize
27469 \begin_inset Flex Code
27470 status collapsed
27471
27472 \begin_layout Plain Layout
27473 {%ifstar%[[true]][[false]]}
27474 \end_layout
27475
27476 \end_inset
27477
27478 :
27479  process the 
27480 \begin_inset Quotes eld
27481 \end_inset
27482
27483 true
27484 \begin_inset Quotes erd
27485 \end_inset
27486
27487  part for starred citation commands (such as 
27488 \begin_inset Flex Code
27489 status collapsed
27490
27491 \begin_layout Plain Layout
27492
27493 \backslash
27494 cite*
27495 \end_layout
27496
27497 \end_inset
27498
27499 ),
27500  the false part for unstarred
27501 \end_layout
27502
27503 \begin_layout Itemize
27504 \begin_inset Flex Code
27505 status collapsed
27506
27507 \begin_layout Plain Layout
27508 {%ifentrytype:<type>%[[true]][[false]]}
27509 \end_layout
27510
27511 \end_inset
27512
27513 :
27514  process the 
27515 \begin_inset Quotes eld
27516 \end_inset
27517
27518 true
27519 \begin_inset Quotes erd
27520 \end_inset
27521
27522  if the current entry type matches 
27523 \begin_inset Flex Code
27524 status collapsed
27525
27526 \begin_layout Plain Layout
27527 <type>
27528 \end_layout
27529
27530 \end_inset
27531
27532 ,
27533  else the false part (e.g.,
27534  in a citation definition:
27535  
27536 \begin_inset Flex Code
27537 status collapsed
27538
27539 \begin_layout Plain Layout
27540 {%ifentrytype:book%[[this is a book]][[this is no book]]}
27541 \end_layout
27542
27543 \end_inset
27544
27545 )
27546 \end_layout
27547
27548 \begin_layout Itemize
27549 \begin_inset Flex Code
27550 status collapsed
27551
27552 \begin_layout Plain Layout
27553 {%ifmultiple:<authortype>%[[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  if the current author type (author,
27568  editor etc.) has multiple authors,
27569  else the false part (e.g.,
27570  in a bibliography definition:
27571  
27572 \begin_inset Flex Code
27573 status collapsed
27574
27575 \begin_layout Plain Layout
27576 {%ifmultiple:editor%[[eds.]][[ed.]]}
27577 \end_layout
27578
27579 \end_inset
27580
27581 )
27582 \end_layout
27583
27584 \begin_layout Itemize
27585 \begin_inset Flex Code
27586 status collapsed
27587
27588 \begin_layout Plain Layout
27589 {%ifqualified%[[true]][[false]]}
27590 \end_layout
27591
27592 \end_inset
27593
27594 :
27595  process the 
27596 \begin_inset Quotes eld
27597 \end_inset
27598
27599 true
27600 \begin_inset Quotes erd
27601 \end_inset
27602
27603  part if the current citation is a qualified citation list (a specific 
27604 \family sans
27605 Biblatex
27606 \family default
27607  format for multi-reference citations),
27608  the false part if this is not the case.
27609 \end_layout
27610
27611 \begin_layout Standard
27612 We said that 
27613 \begin_inset Flex Code
27614 status collapsed
27615
27616 \begin_layout Plain Layout
27617 %author%
27618 \end_layout
27619
27620 \end_inset
27621
27622  prints the author key as it is recorded in the bibliography file.
27623  This might not be what you want,
27624  since it will result in a string such as 
27625 \begin_inset Quotes eld
27626 \end_inset
27627
27628 Miller,
27629  Peter and Smith,
27630  Mary and White,
27631  Jane
27632 \begin_inset Quotes erd
27633 \end_inset
27634
27635  (since 
27636 \begin_inset Quotes eld
27637 \end_inset
27638
27639 and
27640 \begin_inset Quotes erd
27641 \end_inset
27642
27643  is used by Bib\SpecialChar TeX
27644  to delimit authors).
27645  \SpecialChar LyX
27646  therefore provides some methods to get properly formatted name lists (which will also get translated).
27647  The following keys are provided:
27648 \end_layout
27649
27650 \begin_layout Enumerate
27651 For name lists with pre- and surname,
27652  suitable for the main authors/editors of a bibliography item.
27653  The 
27654 \begin_inset Flex Code
27655 status collapsed
27656
27657 \begin_layout Plain Layout
27658 <nametype>
27659 \end_layout
27660
27661 \end_inset
27662
27663  part denotes the kind of list that is requested (e.g.
27664  
27665 \begin_inset Flex Code
27666 status collapsed
27667
27668 \begin_layout Plain Layout
27669 <nametype:author>
27670 \end_layout
27671
27672 \end_inset
27673
27674 ):
27675 \end_layout
27676
27677 \begin_deeper
27678 \begin_layout Itemize
27679 \begin_inset Flex Code
27680 status collapsed
27681
27682 \begin_layout Plain Layout
27683 %abbrvnames:<nametype>%
27684 \end_layout
27685
27686 \end_inset
27687
27688 :
27689  Provides a name list which is abbreviated (with 
27690 \begin_inset Quotes eld
27691 \end_inset
27692
27693 et al.
27694 \begin_inset Quotes erd
27695 \end_inset
27696
27697 ) when 
27698 \begin_inset Flex Code
27699 status collapsed
27700
27701 \begin_layout Plain Layout
27702 MaxCiteNames
27703 \end_layout
27704
27705 \end_inset
27706
27707  is reached.
27708 \end_layout
27709
27710 \begin_layout Itemize
27711 \begin_inset Flex Code
27712 status collapsed
27713
27714 \begin_layout Plain Layout
27715 %fullnames:<nametype>%
27716 \end_layout
27717
27718 \end_inset
27719
27720 :
27721  Provides a full name list (never abbreviated with 
27722 \begin_inset Quotes eld
27723 \end_inset
27724
27725 et al.
27726 \begin_inset Quotes erd
27727 \end_inset
27728
27729 ).
27730 \end_layout
27731
27732 \begin_layout Itemize
27733 \begin_inset Flex Code
27734 status collapsed
27735
27736 \begin_layout Plain Layout
27737 %forceabbrvnames:<nametype>%
27738 \end_layout
27739
27740 \end_inset
27741
27742 :
27743  Provides a name list which is always abbreviated (with 
27744 \begin_inset Quotes eld
27745 \end_inset
27746
27747 et al.
27748 \begin_inset Quotes erd
27749 \end_inset
27750
27751 ) irrespective of 
27752 \begin_inset Flex Code
27753 status collapsed
27754
27755 \begin_layout Plain Layout
27756 MaxCiteNames
27757 \end_layout
27758
27759 \end_inset
27760
27761 .
27762 \end_layout
27763
27764 \end_deeper
27765 \begin_layout Enumerate
27766 Alternative name lists with pre- and surname,
27767  if the order of pre- and surname inside the bibliography item differs (as in:
27768  
27769 \begin_inset Quotes eld
27770 \end_inset
27771
27772 Miller,
27773  John:
27774  Some text,
27775  in:
27776  Mary Smith,
27777  ed.:
27778  A volume
27779 \begin_inset Quotes erd
27780 \end_inset
27781
27782 ):
27783 \end_layout
27784
27785 \begin_deeper
27786 \begin_layout Itemize
27787 \begin_inset Flex Code
27788 status collapsed
27789
27790 \begin_layout Plain Layout
27791 %abbrvbynames:<nametype>%
27792 \end_layout
27793
27794 \end_inset
27795
27796 :
27797  Provides a name list which is abbreviated (with 
27798 \begin_inset Quotes eld
27799 \end_inset
27800
27801 et al.
27802 \begin_inset Quotes erd
27803 \end_inset
27804
27805 ) when 
27806 \begin_inset Flex Code
27807 status collapsed
27808
27809 \begin_layout Plain Layout
27810 MaxCiteNames
27811 \end_layout
27812
27813 \end_inset
27814
27815  is reached.
27816 \end_layout
27817
27818 \begin_layout Itemize
27819 \begin_inset Flex Code
27820 status collapsed
27821
27822 \begin_layout Plain Layout
27823 %fullbynames:<nametype>%
27824 \end_layout
27825
27826 \end_inset
27827
27828 :
27829  Provides a full name list (never abbreviated with 
27830 \begin_inset Quotes eld
27831 \end_inset
27832
27833 et al.
27834 \begin_inset Quotes erd
27835 \end_inset
27836
27837 ).
27838 \end_layout
27839
27840 \begin_layout Itemize
27841 \begin_inset Flex Code
27842 status collapsed
27843
27844 \begin_layout Plain Layout
27845 %forceabbrvbynames:<nametype>%
27846 \end_layout
27847
27848 \end_inset
27849
27850 :
27851  Provides a name list which is always abbreviated (with 
27852 \begin_inset Quotes eld
27853 \end_inset
27854
27855 et al.
27856 \begin_inset Quotes erd
27857 \end_inset
27858
27859 ) irrespective of 
27860 \begin_inset Flex Code
27861 status collapsed
27862
27863 \begin_layout Plain Layout
27864 MaxCiteNames
27865 \end_layout
27866
27867 \end_inset
27868
27869 .
27870 \end_layout
27871
27872 \end_deeper
27873 \begin_layout Enumerate
27874 And finally name lists which consist of family names only,
27875  as used in author-year citation labels.
27876  These do not take a 
27877 \begin_inset Flex Code
27878 status collapsed
27879
27880 \begin_layout Plain Layout
27881 <nametype>
27882 \end_layout
27883
27884 \end_inset
27885
27886  part,
27887  but always return either an author list or,
27888  if this does not exist,
27889  an editor list (as common in author-year labels):
27890 \end_layout
27891
27892 \begin_deeper
27893 \begin_layout Itemize
27894 \begin_inset Flex Code
27895 status collapsed
27896
27897 \begin_layout Plain Layout
27898 %abbrvciteauthor%
27899 \end_layout
27900
27901 \end_inset
27902
27903 :
27904  Provides a name list which is abbreviated (with 
27905 \begin_inset Quotes eld
27906 \end_inset
27907
27908 et al.
27909 \begin_inset Quotes erd
27910 \end_inset
27911
27912 ) when 
27913 \begin_inset Flex Code
27914 status collapsed
27915
27916 \begin_layout Plain Layout
27917 MaxCiteNames
27918 \end_layout
27919
27920 \end_inset
27921
27922  is reached.
27923 \end_layout
27924
27925 \begin_layout Itemize
27926 \begin_inset Flex Code
27927 status collapsed
27928
27929 \begin_layout Plain Layout
27930 %fullciteauthor%
27931 \end_layout
27932
27933 \end_inset
27934
27935 :
27936  Provides a full name list (never abbreviated with 
27937 \begin_inset Quotes eld
27938 \end_inset
27939
27940 et al.
27941 \begin_inset Quotes erd
27942 \end_inset
27943
27944 ).
27945 \end_layout
27946
27947 \begin_layout Itemize
27948 \begin_inset Flex Code
27949 status collapsed
27950
27951 \begin_layout Plain Layout
27952 %forceabbrvciteauthor%
27953 \end_layout
27954
27955 \end_inset
27956
27957 :
27958  Provides a name list which is always abbreviated (with 
27959 \begin_inset Quotes eld
27960 \end_inset
27961
27962 et al.
27963 \begin_inset Quotes erd
27964 \end_inset
27965
27966 ) irrespective of 
27967 \begin_inset Flex Code
27968 status collapsed
27969
27970 \begin_layout Plain Layout
27971 MaxCiteNames
27972 \end_layout
27973
27974 \end_inset
27975
27976 .
27977 \end_layout
27978
27979 \end_deeper
27980 \begin_layout Standard
27981 The order of pre- and surname in the former two lists can be adjusted by these macros:
27982 \end_layout
27983
27984 \begin_layout Itemize
27985 \begin_inset Flex Code
27986 status collapsed
27987
27988 \begin_layout Plain Layout
27989 !firstnameform %surname%,
27990  %prename%
27991 \end_layout
27992
27993 \end_inset
27994
27995  (first author in lists of type 1)
27996 \end_layout
27997
27998 \begin_layout Itemize
27999 \begin_inset Flex Code
28000 status collapsed
28001
28002 \begin_layout Plain Layout
28003 !othernameform %surname%,
28004  %prename%
28005 \end_layout
28006
28007 \end_inset
28008
28009  (other authors in lists of type 1)
28010 \end_layout
28011
28012 \begin_layout Itemize
28013 \begin_inset Flex Code
28014 status collapsed
28015
28016 \begin_layout Plain Layout
28017 !firstbynameform %prename% %surname%
28018 \end_layout
28019
28020 \end_inset
28021
28022  (first author in lists of type 2)
28023 \end_layout
28024
28025 \begin_layout Itemize
28026 \begin_inset Flex Code
28027 status collapsed
28028
28029 \begin_layout Plain Layout
28030 !otherbynameform %prename% %surname%
28031 \end_layout
28032
28033 \end_inset
28034
28035  (other authors in lists of type 2)
28036 \end_layout
28037
28038 \begin_layout Standard
28039 This allows you to configure namings like 
28040 \begin_inset Quotes eld
28041 \end_inset
28042
28043 Miller,
28044  Peter and Mary Smith:
28045  \SpecialChar ldots
28046 ,
28047  in:
28048  John Doe and Pat Green,
28049  eds.:\SpecialChar ldots
28050
28051 \begin_inset Quotes erd
28052 \end_inset
28053
28054 .
28055 \end_layout
28056
28057 \begin_layout Standard
28058 There is one other piece of syntax available in definitions,
28059  which looks like this:
28060  
28061 \begin_inset Flex Code
28062 status collapsed
28063
28064 \begin_layout Plain Layout
28065 {!<i>!}
28066 \end_layout
28067
28068 \end_inset
28069
28070 .
28071  This defines a piece of formatting information that is to be used when creating 
28072 \begin_inset Quotes eld
28073 \end_inset
28074
28075 rich text
28076 \begin_inset Quotes erd
28077 \end_inset
28078
28079 .
28080  Obviously,
28081  we do not want to output HTML tags when writing plain text,
28082  so they should be wrapped in 
28083 \begin_inset Quotes eld
28084 \end_inset
28085
28086 {!
28087 \begin_inset Quotes erd
28088 \end_inset
28089
28090  and 
28091 \begin_inset Quotes eld
28092 \end_inset
28093
28094 !}
28095 \begin_inset Quotes erd
28096 \end_inset
28097
28098 .
28099 \end_layout
28100
28101 \begin_layout Standard
28102 Two special sorts of definitions are also possible in a 
28103 \begin_inset Flex Code
28104 status collapsed
28105
28106 \begin_layout Plain Layout
28107 CiteFormat
28108 \end_layout
28109
28110 \end_inset
28111
28112  block.
28113  An example of the first would be:
28114 \end_layout
28115
28116 \begin_layout LyX-Code
28117 !quotetitle 
28118 \begin_inset Quotes eld
28119 \end_inset
28120
28121 %title%
28122 \begin_inset Quotes erd
28123 \end_inset
28124
28125
28126 \end_layout
28127
28128 \begin_layout Standard
28129 This is an abbreviation,
28130  or macro,
28131  and it can be used by treating it as if it were a key:
28132  
28133 \begin_inset Flex Code
28134 status collapsed
28135
28136 \begin_layout Plain Layout
28137 %!quotetitle%
28138 \end_layout
28139
28140 \end_inset
28141
28142 .
28143  \SpecialChar LyX
28144  will treat 
28145 \begin_inset Flex Code
28146 status collapsed
28147
28148 \begin_layout Plain Layout
28149 %!quotetitle%
28150 \end_layout
28151
28152 \end_inset
28153
28154  exactly as it would treat its definition.
28155  So,
28156  let us issue the obvious 
28157 \emph on
28158 warning
28159 \emph default
28160 .
28161  Do not do this:
28162 \end_layout
28163
28164 \begin_layout LyX-Code
28165 !funfun %funfun%
28166 \end_layout
28167
28168 \begin_layout Standard
28169 or anything like it.
28170  \SpecialChar LyX
28171  shouldn't go into an infinite loop,
28172  but it may go into a long one before it gives up.
28173 \end_layout
28174
28175 \begin_layout Standard
28176 The second sort of special definition might look like this:
28177 \end_layout
28178
28179 \begin_layout LyX-Code
28180 B_pptext pp.
28181 \end_layout
28182
28183 \begin_layout Standard
28184 This defines a translatable piece of text,
28185  which allows relevant parts of the bibliography or citation to be translated.
28186  It can be included in a definition by treating it as a key:
28187  
28188 \begin_inset Flex Code
28189 status collapsed
28190
28191 \begin_layout Plain Layout
28192 %B_pptext%
28193 \end_layout
28194
28195 \end_inset
28196
28197 .
28198  Note that there are two different translation paths:
28199  All definitions starting with 
28200 \begin_inset Flex Code
28201 status collapsed
28202
28203 \begin_layout Plain Layout
28204 B_
28205 \end_layout
28206
28207 \end_inset
28208
28209 ,
28210  such as in the example above,
28211  will be translated to the currently active buffer language (so the translation will match the generated document).
28212  All definitions starting with underscore only will be translated to the GUI language.
28213  This is the proper translation for strings that only occur in the dialogs or on buttons,
28214  such as this one:
28215 \end_layout
28216
28217 \begin_layout LyX-Code
28218 _addtobib Add to bibliography only.
28219 \end_layout
28220
28221 \begin_layout Standard
28222 Several of these translatable strings are predefined in 
28223 \begin_inset Flex Code
28224 status collapsed
28225
28226 \begin_layout Plain Layout
28227 stdciteformats.inc
28228 \end_layout
28229
28230 \end_inset
28231
28232  and the diverse 
28233 \begin_inset Flex Code
28234 status collapsed
28235
28236 \begin_layout Plain Layout
28237 *.citeengine
28238 \end_layout
28239
28240 \end_inset
28241
28242  files.
28243  Note that these are not macros,
28244  in the sense just defined.
28245  They will not be expanded.
28246 \end_layout
28247
28248 \begin_layout Standard
28249 So here then is an example that uses several of these features:
28250 \begin_inset VSpace defskip
28251 \end_inset
28252
28253
28254 \end_layout
28255
28256 \begin_layout Standard
28257 \noindent
28258
28259 \family sans
28260 !authoredit {%author%[[%author%,
28261  ]][[{%editor%[[%editor%,
28262  %B_edtext%,
28263  ]]}]]}
28264 \end_layout
28265
28266 \begin_layout Standard
28267 \begin_inset VSpace defskip
28268 \end_inset
28269
28270 This defines a macro that prints the author,
28271  followed by a comma,
28272  if the 
28273 \begin_inset Flex Code
28274 status collapsed
28275
28276 \begin_layout Plain Layout
28277 author
28278 \end_layout
28279
28280 \end_inset
28281
28282  key is defined,
28283  or else prints the name of the editor,
28284  followed by the 
28285 \begin_inset Flex Code
28286 status collapsed
28287
28288 \begin_layout Plain Layout
28289 B_edtext
28290 \end_layout
28291
28292 \end_inset
28293
28294  or its translation (it is by default 
28295 \begin_inset Quotes eld
28296 \end_inset
28297
28298 ed.
28299 \begin_inset Quotes erd
28300 \end_inset
28301
28302 ),
28303  if the 
28304 \begin_inset Flex Code
28305 status collapsed
28306
28307 \begin_layout Plain Layout
28308 editor
28309 \end_layout
28310
28311 \end_inset
28312
28313  key is defined.
28314  Note that this is in fact defined in 
28315 \begin_inset Flex Code
28316 status collapsed
28317
28318 \begin_layout Plain Layout
28319 stdciteformats.inc
28320 \end_layout
28321
28322 \end_inset
28323
28324 ,
28325  so you can use it in your own definitions,
28326  or re-definitions,
28327  if you load that file first.
28328 \end_layout
28329
28330 \begin_layout Section
28331 \begin_inset CommandInset label
28332 LatexCommand label
28333 name "sec:Tags-for-XHTML"
28334
28335 \end_inset
28336
28337 Tags for XHTML output
28338 \end_layout
28339
28340 \begin_layout Standard
28341 As with \SpecialChar LaTeX
28342  or DocBook,
28343  the format of \SpecialChar LyX
28344 's XHTML output is also controlled by layout information.
28345  In general,
28346  \SpecialChar LyX
28347  provides sensible defaults and,
28348  as mentioned earlier,
28349  it will even construct default CSS style rules from the other layout tags.
28350  For example,
28351  \SpecialChar LyX
28352  will attempt to use the information provided in the 
28353 \begin_inset Flex Code
28354 status collapsed
28355
28356 \begin_layout Plain Layout
28357 Font
28358 \end_layout
28359
28360 \end_inset
28361
28362  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
28363 \end_layout
28364
28365 \begin_layout Standard
28366 In many cases,
28367  then,
28368  you may not have to do anything at all to get acceptable XHTML output for your own environments,
28369  custom insets,
28370  and so forth.
28371  But in some cases you will,
28372  and so \SpecialChar LyX
28373  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
28374 \end_layout
28375
28376 \begin_layout Standard
28377 Note that there are two tags,
28378  
28379 \begin_inset Flex Code
28380 status collapsed
28381
28382 \begin_layout Plain Layout
28383 HTMLPreamble
28384 \end_layout
28385
28386 \end_inset
28387
28388  and 
28389 \begin_inset Flex Code
28390 status collapsed
28391
28392 \begin_layout Plain Layout
28393 AddToHTMLPreamble
28394 \end_layout
28395
28396 \end_inset
28397
28398  that may appear outside style and inset declarations.
28399  See 
28400 \begin_inset CommandInset ref
28401 LatexCommand ref
28402 reference "subsec:General-text-class"
28403
28404 \end_inset
28405
28406  for details on these.
28407 \end_layout
28408
28409 \begin_layout Subsection
28410 \begin_inset CommandInset label
28411 LatexCommand label
28412 name "subsec:Paragraph-Style-XHTML"
28413
28414 \end_inset
28415
28416 Paragraph styles
28417 \end_layout
28418
28419 \begin_layout Standard
28420 The sort of XHTML \SpecialChar LyX
28421  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
28422  a command,
28423  or an environment,
28424  where this is itself determined by the contents of the corresponding 
28425 \begin_inset Flex Code
28426 status collapsed
28427
28428 \begin_layout Plain Layout
28429 \SpecialChar LaTeX
28430 Type
28431 \end_layout
28432
28433 \end_inset
28434
28435  tag.
28436  
28437 \end_layout
28438
28439 \begin_layout Standard
28440 For a command or normal paragraph,
28441  the output XHTML has the following form:
28442 \end_layout
28443
28444 \begin_layout LyX-Code
28445
28446 \family sans
28447 <tag attr=
28448 \begin_inset Quotes erd
28449 \end_inset
28450
28451 value
28452 \begin_inset Quotes erd
28453 \end_inset
28454
28455 >
28456 \end_layout
28457
28458 \begin_layout LyX-Code
28459
28460 \family sans
28461 <labeltag attr=
28462 \begin_inset Quotes erd
28463 \end_inset
28464
28465 value
28466 \begin_inset Quotes erd
28467 \end_inset
28468
28469 >Label</labeltag>
28470 \end_layout
28471
28472 \begin_layout LyX-Code
28473
28474 \family sans
28475 Contents of the paragraph.
28476 \end_layout
28477
28478 \begin_layout LyX-Code
28479
28480 \family sans
28481 </tag>
28482 \end_layout
28483
28484 \begin_layout Standard
28485 The label tags are of course omitted if the paragraph does not have a label.
28486 \end_layout
28487
28488 \begin_layout Standard
28489 For an environment that is not some sort of list,
28490  the XHTML takes this form:
28491 \end_layout
28492
28493 \begin_layout LyX-Code
28494
28495 \family sans
28496 <tag attr=
28497 \begin_inset Quotes erd
28498 \end_inset
28499
28500 value
28501 \begin_inset Quotes erd
28502 \end_inset
28503
28504 >
28505 \end_layout
28506
28507 \begin_layout LyX-Code
28508
28509 \family sans
28510 <itemtag attr=
28511 \begin_inset Quotes erd
28512 \end_inset
28513
28514 value
28515 \begin_inset Quotes erd
28516 \end_inset
28517
28518 ><labeltag attr=
28519 \begin_inset Quotes erd
28520 \end_inset
28521
28522 value
28523 \begin_inset Quotes erd
28524 \end_inset
28525
28526 >Environment Label</labeltag>First paragraph.</itemtag>
28527 \end_layout
28528
28529 \begin_layout LyX-Code
28530
28531 \family sans
28532 <itemtag>Second paragraph.</itemtag>
28533 \end_layout
28534
28535 \begin_layout LyX-Code
28536
28537 \family sans
28538 </tag>
28539 \end_layout
28540
28541 \begin_layout Standard
28542 Note that the label is output only for the first paragraph,
28543  as it should be for a theorem,
28544  for example.
28545  
28546 \end_layout
28547
28548 \begin_layout Standard
28549 For a list,
28550  we have one of these forms:
28551 \end_layout
28552
28553 \begin_layout LyX-Code
28554
28555 \family sans
28556 <tag attr=
28557 \begin_inset Quotes erd
28558 \end_inset
28559
28560 value
28561 \begin_inset Quotes erd
28562 \end_inset
28563
28564 >
28565 \end_layout
28566
28567 \begin_layout LyX-Code
28568
28569 \family sans
28570 <itemtag attr=
28571 \begin_inset Quotes erd
28572 \end_inset
28573
28574 value
28575 \begin_inset Quotes erd
28576 \end_inset
28577
28578 ><labeltag attr=
28579 \begin_inset Quotes erd
28580 \end_inset
28581
28582 value
28583 \begin_inset Quotes erd
28584 \end_inset
28585
28586 >List Label</labeltag>First item.</itemtag>
28587 \end_layout
28588
28589 \begin_layout LyX-Code
28590
28591 \family sans
28592 <itemtag attr=
28593 \begin_inset Quotes erd
28594 \end_inset
28595
28596 value
28597 \begin_inset Quotes erd
28598 \end_inset
28599
28600 ><labeltag attr=
28601 \begin_inset Quotes erd
28602 \end_inset
28603
28604 value
28605 \begin_inset Quotes erd
28606 \end_inset
28607
28608 >List Label</labeltag>Second item.</itemtag>
28609 \end_layout
28610
28611 \begin_layout LyX-Code
28612
28613 \family sans
28614 </tag>
28615 \end_layout
28616
28617 \begin_layout LyX-Code
28618
28619 \end_layout
28620
28621 \begin_layout LyX-Code
28622
28623 \family sans
28624 <tag attr=
28625 \begin_inset Quotes erd
28626 \end_inset
28627
28628 value
28629 \begin_inset Quotes erd
28630 \end_inset
28631
28632 >
28633 \end_layout
28634
28635 \begin_layout LyX-Code
28636
28637 \family sans
28638 <labeltag attr=
28639 \begin_inset Quotes erd
28640 \end_inset
28641
28642 value
28643 \begin_inset Quotes erd
28644 \end_inset
28645
28646 >List Label</labeltag><itemtag attr=
28647 \begin_inset Quotes erd
28648 \end_inset
28649
28650 value
28651 \begin_inset Quotes erd
28652 \end_inset
28653
28654 >First item.</itemtag>
28655 \end_layout
28656
28657 \begin_layout LyX-Code
28658
28659 \family sans
28660 <labeltag attr=
28661 \begin_inset Quotes erd
28662 \end_inset
28663
28664 value
28665 \begin_inset Quotes erd
28666 \end_inset
28667
28668 >List Label</labeltag><itemtag attr=
28669 \begin_inset Quotes erd
28670 \end_inset
28671
28672 value
28673 \begin_inset Quotes erd
28674 \end_inset
28675
28676 >Second item.</itemtag>
28677 \end_layout
28678
28679 \begin_layout LyX-Code
28680
28681 \family sans
28682 </tag>
28683 \end_layout
28684
28685 \begin_layout Standard
28686 Note the different orders of 
28687 \begin_inset Flex Code
28688 status collapsed
28689
28690 \begin_layout Plain Layout
28691 labeltag
28692 \end_layout
28693
28694 \end_inset
28695
28696  and 
28697 \begin_inset Flex Code
28698 status collapsed
28699
28700 \begin_layout Plain Layout
28701 itemtag
28702 \end_layout
28703
28704 \end_inset
28705
28706 .
28707  Which order we get depends upon the setting of 
28708 \begin_inset Flex Code
28709 status collapsed
28710
28711 \begin_layout Plain Layout
28712 HTMLLabelFirst
28713 \end_layout
28714
28715 \end_inset
28716
28717 :
28718  If 
28719 \begin_inset Flex Code
28720 status collapsed
28721
28722 \begin_layout Plain Layout
28723 HTMLLabelFirst
28724 \end_layout
28725
28726 \end_inset
28727
28728  is false (the default),
28729  you get the first of these,
28730  with the label within the item;
28731  if true,
28732  you get the second,
28733  with the label outside the item.
28734 \end_layout
28735
28736 \begin_layout Standard
28737 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
28738  As mentioned earlier,
28739  however,
28740  \SpecialChar LyX
28741  uses sensible defaults for many of these,
28742  so you often may not need to do very much to get good XHTML output.
28743  Think of the available tags as there so you can tweak things to your liking.
28744 \end_layout
28745
28746 \begin_layout Description
28747 \begin_inset Flex Code
28748 status collapsed
28749
28750 \begin_layout Plain Layout
28751 HTMLAttr
28752 \end_layout
28753
28754 \end_inset
28755
28756  [
28757 \begin_inset Flex Code
28758 status collapsed
28759
28760 \begin_layout Plain Layout
28761 string
28762 \end_layout
28763
28764 \end_inset
28765
28766 ] Specifies attribute information to be output with the main tag.
28767  For example,
28768  
28769 \begin_inset Quotes eld
28770 \end_inset
28771
28772
28773 \begin_inset Flex Code
28774 status collapsed
28775
28776 \begin_layout Plain Layout
28777 class=`mydiv'
28778 \end_layout
28779
28780 \end_inset
28781
28782
28783 \begin_inset Quotes erd
28784 \end_inset
28785
28786 .
28787  By default,
28788  \SpecialChar LyX
28789  will output 
28790 \begin_inset Quotes eld
28791 \end_inset
28792
28793
28794 \begin_inset Flex Code
28795 status collapsed
28796
28797 \begin_layout Plain Layout
28798 class=`layoutname'
28799 \end_layout
28800
28801 \end_inset
28802
28803
28804 \begin_inset Quotes erd
28805 \end_inset
28806
28807 ,
28808  where 
28809 \begin_inset Flex Code
28810 status collapsed
28811
28812 \begin_layout Plain Layout
28813 layoutname
28814 \end_layout
28815
28816 \end_inset
28817
28818  is the \SpecialChar LyX
28819  name of the layout,
28820  made lowercase,
28821  for example:
28822  chapter.
28823  This should 
28824 \emph on
28825 not
28826 \emph default
28827  contain any style information.
28828  Use 
28829 \begin_inset Flex Code
28830 status collapsed
28831
28832 \begin_layout Plain Layout
28833 HTMLStyle
28834 \end_layout
28835
28836 \end_inset
28837
28838  for that purpose.
28839 \change_inserted -584632292 1670182206
28840
28841 \end_layout
28842
28843 \begin_layout Description
28844
28845 \change_inserted -584632292 1670182369
28846 \begin_inset Flex Code
28847 status collapsed
28848
28849 \begin_layout Plain Layout
28850
28851 \change_inserted -584632292 1670182222
28852 HTMLClass
28853 \end_layout
28854
28855 \end_inset
28856
28857  [
28858 \begin_inset Flex Code
28859 status collapsed
28860
28861 \begin_layout Plain Layout
28862
28863 \change_inserted -584632292 1670182217
28864 string
28865 \end_layout
28866
28867 \end_inset
28868
28869 ] The CSS class to use for this paragraph.
28870  Note that,
28871  if the paragarph is of enumerate or itemize type,
28872  then the default will be 
28873 \begin_inset Quotes eld
28874 \end_inset
28875
28876 lyxenum
28877 \begin_inset Quotes erd
28878 \end_inset
28879
28880  or 
28881 \begin_inset Quotes eld
28882 \end_inset
28883
28884 lyxitem
28885 \begin_inset Quotes erd
28886 \end_inset
28887
28888 ,
28889  plus 
28890 \begin_inset Quotes eld
28891 \end_inset
28892
28893 i
28894 \begin_inset Quotes erd
28895 \end_inset
28896
28897 ,
28898  
28899 \begin_inset Quotes eld
28900 \end_inset
28901
28902 ii
28903 \begin_inset Quotes erd
28904 \end_inset
28905
28906 ,
28907  
28908 \begin_inset Quotes eld
28909 \end_inset
28910
28911 iii
28912 \begin_inset Quotes erd
28913 \end_inset
28914
28915 ,
28916  or 
28917 \begin_inset Quotes eld
28918 \end_inset
28919
28920 iv
28921 \begin_inset Quotes erd
28922 \end_inset
28923
28924 ,
28925  depending upon the depth.
28926  That can be over-ridden here.
28927  However,
28928  the suffix will not be added in that case.
28929  I.e.,
28930  the CSS class will always be exactly what it is declared to be here.
28931 \change_unchanged
28932
28933 \end_layout
28934
28935 \begin_layout Description
28936 \begin_inset Flex Code
28937 status collapsed
28938
28939 \begin_layout Plain Layout
28940 HTMLForceCSS
28941 \end_layout
28942
28943 \end_inset
28944
28945  [
28946 \begin_inset Flex Code
28947 status collapsed
28948
28949 \begin_layout Plain Layout
28950
28951 \emph on
28952 0
28953 \emph default
28954 ,1
28955 \end_layout
28956
28957 \end_inset
28958
28959 ] Whether to output the default CSS information \SpecialChar LyX
28960  generates for this layout,
28961  even if additional information is explicitly provided via 
28962 \begin_inset Flex Code
28963 status collapsed
28964
28965 \begin_layout Plain Layout
28966 HTMLStyle
28967 \end_layout
28968
28969 \end_inset
28970
28971 .
28972  Setting this to 
28973 \begin_inset Flex Code
28974 status collapsed
28975
28976 \begin_layout Plain Layout
28977 1
28978 \end_layout
28979
28980 \end_inset
28981
28982  allows you to alter or augment the generated CSS,
28983  rather than to override it completely.
28984  Default is 
28985 \begin_inset Flex Code
28986 status collapsed
28987
28988 \begin_layout Plain Layout
28989 0
28990 \end_layout
28991
28992 \end_inset
28993
28994 .
28995 \change_inserted -584632292 1670132213
28996
28997 \end_layout
28998
28999 \begin_layout Description
29000
29001 \change_inserted -584632292 1670132277
29002 \begin_inset Flex Code
29003 status collapsed
29004
29005 \begin_layout Plain Layout
29006
29007 \change_inserted -584632292 1670132221
29008 HTMLInToc
29009 \change_unchanged
29010
29011 \end_layout
29012
29013 \end_inset
29014
29015  [
29016 \begin_inset Flex Code
29017 status open
29018
29019 \begin_layout Plain Layout
29020
29021 \change_inserted -584632292 1670132214
29022 0,
29023 \emph on
29024 1
29025 \change_unchanged
29026
29027 \end_layout
29028
29029 \end_inset
29030
29031 ] Whether to include this paragraph (usually,
29032  a section or something of the sort) in the TOC.
29033  By default,
29034  true,
29035  so it should be set to false e.g.
29036 \begin_inset space ~
29037 \end_inset
29038
29039 for starred sections.
29040 \change_unchanged
29041
29042 \end_layout
29043
29044 \begin_layout Description
29045 \begin_inset Flex Code
29046 status collapsed
29047
29048 \begin_layout Plain Layout
29049 HTMLItem
29050 \end_layout
29051
29052 \end_inset
29053
29054  [
29055 \begin_inset Flex Code
29056 status collapsed
29057
29058 \begin_layout Plain Layout
29059 string
29060 \end_layout
29061
29062 \end_inset
29063
29064 ] The tag to be used for individual paragraphs of environments,
29065  replacing 
29066 \begin_inset Flex Code
29067 status collapsed
29068
29069 \begin_layout Plain Layout
29070 itemtag
29071 \end_layout
29072
29073 \end_inset
29074
29075  in the examples above.
29076  Defaults to 
29077 \begin_inset Flex Code
29078 status collapsed
29079
29080 \begin_layout Plain Layout
29081 div
29082 \end_layout
29083
29084 \end_inset
29085
29086 .
29087 \end_layout
29088
29089 \begin_layout Description
29090 \begin_inset Flex Code
29091 status collapsed
29092
29093 \begin_layout Plain Layout
29094 HTMLItemAttr
29095 \end_layout
29096
29097 \end_inset
29098
29099  [
29100 \begin_inset Flex Code
29101 status collapsed
29102
29103 \begin_layout Plain Layout
29104 string
29105 \end_layout
29106
29107 \end_inset
29108
29109 ] Attributes for the item tag.
29110  Defaults to
29111 \begin_inset Newline newline
29112 \end_inset
29113
29114
29115 \begin_inset Quotes eld
29116 \end_inset
29117
29118
29119 \begin_inset Flex Code
29120 status collapsed
29121
29122 \begin_layout Plain Layout
29123 class=`layoutname_item'
29124 \end_layout
29125
29126 \end_inset
29127
29128
29129 \begin_inset Quotes erd
29130 \end_inset
29131
29132 .
29133  This should 
29134 \emph on
29135 not
29136 \emph default
29137  contain any style information.
29138  Use 
29139 \begin_inset Flex Code
29140 status collapsed
29141
29142 \begin_layout Plain Layout
29143 HTMLStyle
29144 \end_layout
29145
29146 \end_inset
29147
29148  for that purpose.
29149 \end_layout
29150
29151 \begin_layout Description
29152 \begin_inset Flex Code
29153 status collapsed
29154
29155 \begin_layout Plain Layout
29156 HTMLLabel
29157 \end_layout
29158
29159 \end_inset
29160
29161  [
29162 \begin_inset Flex Code
29163 status collapsed
29164
29165 \begin_layout Plain Layout
29166 string
29167 \end_layout
29168
29169 \end_inset
29170
29171 ] The tag to be used for paragraph and item labels,
29172  replacing 
29173 \begin_inset Flex Code
29174 status collapsed
29175
29176 \begin_layout Plain Layout
29177 labeltag
29178 \end_layout
29179
29180 \end_inset
29181
29182  in the examples above.
29183  Defaults to 
29184 \begin_inset Flex Code
29185 status collapsed
29186
29187 \begin_layout Plain Layout
29188 span
29189 \end_layout
29190
29191 \end_inset
29192
29193 ,
29194  unless 
29195 \begin_inset Flex Code
29196 status collapsed
29197
29198 \begin_layout Plain Layout
29199 LabelType
29200 \end_layout
29201
29202 \end_inset
29203
29204  is either 
29205 \begin_inset Flex Code
29206 status collapsed
29207
29208 \begin_layout Plain Layout
29209 Top_Environment
29210 \end_layout
29211
29212 \end_inset
29213
29214  or 
29215 \begin_inset Flex Code
29216 status collapsed
29217
29218 \begin_layout Plain Layout
29219 Centered_Top_Environment
29220 \end_layout
29221
29222 \end_inset
29223
29224 ,
29225  in which case it defaults to 
29226 \begin_inset Flex Code
29227 status collapsed
29228
29229 \begin_layout Plain Layout
29230 div
29231 \end_layout
29232
29233 \end_inset
29234
29235 .
29236 \end_layout
29237
29238 \begin_layout Description
29239 \begin_inset Flex Code
29240 status collapsed
29241
29242 \begin_layout Plain Layout
29243 HTMLLabelAttr
29244 \end_layout
29245
29246 \end_inset
29247
29248  [
29249 \begin_inset Flex Code
29250 status collapsed
29251
29252 \begin_layout Plain Layout
29253 string
29254 \end_layout
29255
29256 \end_inset
29257
29258 ] Attributes for the label tag.
29259  Defaults to
29260 \begin_inset Newline newline
29261 \end_inset
29262
29263
29264 \begin_inset Quotes eld
29265 \end_inset
29266
29267
29268 \begin_inset Flex Code
29269 status collapsed
29270
29271 \begin_layout Plain Layout
29272 class=`layoutname_label'
29273 \end_layout
29274
29275 \end_inset
29276
29277
29278 \begin_inset Quotes erd
29279 \end_inset
29280
29281 .
29282  This should 
29283 \emph on
29284 not
29285 \emph default
29286  contain any style information.
29287  Use 
29288 \begin_inset Flex Code
29289 status collapsed
29290
29291 \begin_layout Plain Layout
29292 HTMLStyle
29293 \end_layout
29294
29295 \end_inset
29296
29297  for that purpose.
29298 \end_layout
29299
29300 \begin_layout Description
29301 \begin_inset Flex Code
29302 status collapsed
29303
29304 \begin_layout Plain Layout
29305 HTMLLabelFirst
29306 \end_layout
29307
29308 \end_inset
29309
29310  [
29311 \begin_inset Flex Code
29312 status collapsed
29313
29314 \begin_layout Plain Layout
29315
29316 \emph on
29317 0
29318 \emph default
29319 ,1
29320 \end_layout
29321
29322 \end_inset
29323
29324 ] Meaningful only for list-like environments,
29325  this tag controls whether the label tag is output before or inside the item tag.
29326  This is used,
29327  for example,
29328  in the description environment,
29329  where we want `
29330 \begin_inset Flex Code
29331 status collapsed
29332
29333 \begin_layout Plain Layout
29334 <dt>\SpecialChar ldots
29335 </dt><dd>\SpecialChar ldots
29336 </dd>
29337 \end_layout
29338
29339 \end_inset
29340
29341 .
29342  Default is 
29343 \begin_inset Flex Code
29344 status collapsed
29345
29346 \begin_layout Plain Layout
29347 0
29348 \end_layout
29349
29350 \end_inset
29351
29352 :
29353  The label tag is output inside the item tag.
29354 \end_layout
29355
29356 \begin_layout Description
29357 \begin_inset Flex Code
29358 status collapsed
29359
29360 \begin_layout Plain Layout
29361 HTMLPreamble
29362 \end_layout
29363
29364 \end_inset
29365
29366  Information to be output in the 
29367 \begin_inset Flex Code
29368 status collapsed
29369
29370 \begin_layout Plain Layout
29371 <head>
29372 \end_layout
29373
29374 \end_inset
29375
29376  section when this style is used.
29377  This might,
29378  for example,
29379  be used to include a 
29380 \begin_inset Flex Code
29381 status collapsed
29382
29383 \begin_layout Plain Layout
29384 <script>
29385 \end_layout
29386
29387 \end_inset
29388
29389  block defining an 
29390 \begin_inset Flex Code
29391 status collapsed
29392
29393 \begin_layout Plain Layout
29394 onclick
29395 \end_layout
29396
29397 \end_inset
29398
29399  handler.
29400 \end_layout
29401
29402 \begin_layout Description
29403 \begin_inset Flex Code
29404 status collapsed
29405
29406 \begin_layout Plain Layout
29407 HTMLStyle
29408 \end_layout
29409
29410 \end_inset
29411
29412  CSS style information to be included when this style is used.
29413  Note that this will automatically be wrapped in a layout-generated 
29414 \begin_inset Flex Code
29415 status collapsed
29416
29417 \begin_layout Plain Layout
29418 <style>
29419 \end_layout
29420
29421 \end_inset
29422
29423  block,
29424  so only the CSS itself need be included.
29425  Must end with 
29426 \begin_inset Flex Code
29427 status collapsed
29428
29429 \begin_layout Plain Layout
29430 EndHTMLStyle
29431 \end_layout
29432
29433 \end_inset
29434
29435 .
29436 \end_layout
29437
29438 \begin_layout Description
29439 \begin_inset Flex Code
29440 status collapsed
29441
29442 \begin_layout Plain Layout
29443 HTMLTag
29444 \end_layout
29445
29446 \end_inset
29447
29448  [
29449 \begin_inset Flex Code
29450 status collapsed
29451
29452 \begin_layout Plain Layout
29453 string
29454 \end_layout
29455
29456 \end_inset
29457
29458 ] The tag to be used for the main label,
29459  replacing 
29460 \begin_inset Flex Code
29461 status collapsed
29462
29463 \begin_layout Plain Layout
29464 tag
29465 \end_layout
29466
29467 \end_inset
29468
29469  in the examples above.
29470  Defaults to 
29471 \begin_inset Flex Code
29472 status collapsed
29473
29474 \begin_layout Plain Layout
29475 div
29476 \end_layout
29477
29478 \end_inset
29479
29480 .
29481 \end_layout
29482
29483 \begin_layout Description
29484 \begin_inset Flex Code
29485 status collapsed
29486
29487 \begin_layout Plain Layout
29488 HTMLTitle
29489 \end_layout
29490
29491 \end_inset
29492
29493  [
29494 \begin_inset Flex Code
29495 status collapsed
29496
29497 \begin_layout Plain Layout
29498
29499 \emph on
29500 0
29501 \emph default
29502 ,1
29503 \end_layout
29504
29505 \end_inset
29506
29507 ] Marks this style as the one to be used to generate the 
29508 \begin_inset Flex Code
29509 status collapsed
29510
29511 \begin_layout Plain Layout
29512 <title>
29513 \end_layout
29514
29515 \end_inset
29516
29517  tag for the XHTML file.
29518  By default,
29519  it is false.
29520  The 
29521 \begin_inset Flex Code
29522 status collapsed
29523
29524 \begin_layout Plain Layout
29525 stdtitle.inc
29526 \end_layout
29527
29528 \end_inset
29529
29530  file sets it to true for the 
29531 \begin_inset Flex Code
29532 status collapsed
29533
29534 \begin_layout Plain Layout
29535 title
29536 \end_layout
29537
29538 \end_inset
29539
29540  environment.
29541  
29542 \end_layout
29543
29544 \begin_layout Subsection
29545 InsetLayout XHTML
29546 \end_layout
29547
29548 \begin_layout Standard
29549 The XHTML output of insets can also be controlled by information in layout files.
29550 \begin_inset Foot
29551 status collapsed
29552
29553 \begin_layout Plain Layout
29554 At present,
29555  this is true only for 
29556 \begin_inset Quotes eld
29557 \end_inset
29558
29559 text
29560 \begin_inset Quotes erd
29561 \end_inset
29562
29563  insets (insets you can type into) and is not true for 
29564 \begin_inset Quotes eld
29565 \end_inset
29566
29567 command
29568 \begin_inset Quotes erd
29569 \end_inset
29570
29571  insets (insets that are associated with dialog boxes).
29572 \end_layout
29573
29574 \end_inset
29575
29576  Here,
29577  too,
29578  \SpecialChar LyX
29579  tries to provide sensible defaults,
29580  and it constructs default CSS style rules.
29581  But everything can be customized.
29582 \end_layout
29583
29584 \begin_layout Standard
29585 The XHTML \SpecialChar LyX
29586  outputs for an inset has the following form:
29587 \end_layout
29588
29589 \begin_layout LyX-Code
29590 <tag attr=
29591 \begin_inset Quotes erd
29592 \end_inset
29593
29594 value
29595 \begin_inset Quotes erd
29596 \end_inset
29597
29598 >
29599 \end_layout
29600
29601 \begin_layout LyX-Code
29602 <labeltag>Label</labeltag>
29603 \end_layout
29604
29605 \begin_layout LyX-Code
29606 <innertag attr=
29607 \begin_inset Quotes erd
29608 \end_inset
29609
29610 value
29611 \begin_inset Quotes erd
29612 \end_inset
29613
29614 >Contents of the inset.</innertag>
29615 \end_layout
29616
29617 \begin_layout LyX-Code
29618 </tag>
29619 \end_layout
29620
29621 \begin_layout Standard
29622 If the inset permits multiple paragraphs—
29623 that is,
29624  if 
29625 \begin_inset Flex Code
29626 status collapsed
29627
29628 \begin_layout Plain Layout
29629 MultiPar
29630 \end_layout
29631
29632 \end_inset
29633
29634  is true—
29635 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
29636  quote,
29637  and the like).
29638  The label tag is of course omitted if the paragraph does not have a label and,
29639  at present,
29640  is always 
29641 \begin_inset Flex Code
29642 status collapsed
29643
29644 \begin_layout Plain Layout
29645 span
29646 \end_layout
29647
29648 \end_inset
29649
29650 .
29651  The inner tag is optional and,
29652  by default,
29653  does not appear.
29654 \end_layout
29655
29656 \begin_layout Standard
29657 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
29658 \end_layout
29659
29660 \begin_layout Description
29661 \begin_inset Flex Code
29662 status collapsed
29663
29664 \begin_layout Plain Layout
29665 HTMLAttr
29666 \end_layout
29667
29668 \end_inset
29669
29670  [
29671 \begin_inset Flex Code
29672 status collapsed
29673
29674 \begin_layout Plain Layout
29675 string
29676 \end_layout
29677
29678 \end_inset
29679
29680 ] Specifies attribute information to be output with the main tag.
29681  For example,
29682  
29683 \begin_inset Quotes eld
29684 \end_inset
29685
29686
29687 \begin_inset Flex Code
29688 status collapsed
29689
29690 \begin_layout Plain Layout
29691 class=`myinset' onclick=`\SpecialChar ldots
29692 '
29693 \end_layout
29694
29695 \end_inset
29696
29697
29698 \begin_inset Quotes erd
29699 \end_inset
29700
29701 .
29702  By default,
29703  \SpecialChar LyX
29704  will output 
29705 \begin_inset Quotes eld
29706 \end_inset
29707
29708
29709 \begin_inset Flex Code
29710 status collapsed
29711
29712 \begin_layout Plain Layout
29713 class=`insetname'
29714 \end_layout
29715
29716 \end_inset
29717
29718
29719 \begin_inset Quotes erd
29720 \end_inset
29721
29722 ,
29723  where 
29724 \begin_inset Flex Code
29725 status collapsed
29726
29727 \begin_layout Plain Layout
29728 insetname
29729 \end_layout
29730
29731 \end_inset
29732
29733  is the \SpecialChar LyX
29734  name of the inset,
29735  made lowercase and with non-alphanumeric characters converted to underscores,
29736  for example:
29737  footnote.
29738 \end_layout
29739
29740 \begin_layout Description
29741 \begin_inset Flex Code
29742 status collapsed
29743
29744 \begin_layout Plain Layout
29745 HTMLForceCSS
29746 \end_layout
29747
29748 \end_inset
29749
29750  [
29751 \begin_inset Flex Code
29752 status collapsed
29753
29754 \begin_layout Plain Layout
29755
29756 \emph on
29757 0
29758 \emph default
29759 ,1
29760 \end_layout
29761
29762 \end_inset
29763
29764 ] Whether to output the default CSS information \SpecialChar LyX
29765  generates for this layout,
29766  even if additional information is explicitly provided via 
29767 \begin_inset Flex Code
29768 status collapsed
29769
29770 \begin_layout Plain Layout
29771 HTMLStyle
29772 \end_layout
29773
29774 \end_inset
29775
29776 .
29777  Setting this to 
29778 \begin_inset Flex Code
29779 status collapsed
29780
29781 \begin_layout Plain Layout
29782 1
29783 \end_layout
29784
29785 \end_inset
29786
29787  allows you to alter or augment the generated CSS,
29788  rather than to override it completely.
29789  Default is 0.
29790 \end_layout
29791
29792 \begin_layout Description
29793 \begin_inset Flex Code
29794 status collapsed
29795
29796 \begin_layout Plain Layout
29797 HTMLInnerAttr
29798 \end_layout
29799
29800 \end_inset
29801
29802  [
29803 \begin_inset Flex Code
29804 status collapsed
29805
29806 \begin_layout Plain Layout
29807 string
29808 \end_layout
29809
29810 \end_inset
29811
29812 ] Attributes for the inner tag.
29813  Defaults to
29814 \begin_inset Newline newline
29815 \end_inset
29816
29817
29818 \begin_inset Quotes eld
29819 \end_inset
29820
29821
29822 \begin_inset Flex Code
29823 status collapsed
29824
29825 \begin_layout Plain Layout
29826 class=`insetname_inner'
29827 \end_layout
29828
29829 \end_inset
29830
29831
29832 \begin_inset Quotes erd
29833 \end_inset
29834
29835 .
29836 \end_layout
29837
29838 \begin_layout Description
29839 \begin_inset Flex Code
29840 status collapsed
29841
29842 \begin_layout Plain Layout
29843 HTMLInnerTag
29844 \end_layout
29845
29846 \end_inset
29847
29848  [
29849 \begin_inset Flex Code
29850 status collapsed
29851
29852 \begin_layout Plain Layout
29853 string
29854 \end_layout
29855
29856 \end_inset
29857
29858 ] The inner tag,
29859  replacing 
29860 \begin_inset Flex Code
29861 status collapsed
29862
29863 \begin_layout Plain Layout
29864 innertag
29865 \end_layout
29866
29867 \end_inset
29868
29869  in the examples above.
29870  By default,
29871  there is none.
29872 \end_layout
29873
29874 \begin_layout Description
29875 \begin_inset Flex Code
29876 status collapsed
29877
29878 \begin_layout Plain Layout
29879 HTMLIsBlock
29880 \end_layout
29881
29882 \end_inset
29883
29884  [
29885 \begin_inset Flex Code
29886 status collapsed
29887
29888 \begin_layout Plain Layout
29889 0,
29890 \emph on
29891 1
29892 \end_layout
29893
29894 \end_inset
29895
29896 ] 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).
29897  Defaults to 1.
29898 \end_layout
29899
29900 \begin_layout Description
29901 \begin_inset Flex Code
29902 status collapsed
29903
29904 \begin_layout Plain Layout
29905 HTMLLabel
29906 \end_layout
29907
29908 \end_inset
29909
29910  [
29911 \begin_inset Flex Code
29912 status collapsed
29913
29914 \begin_layout Plain Layout
29915 string
29916 \end_layout
29917
29918 \end_inset
29919
29920 ] A label for this inset,
29921  possibly including a reference to a counter.
29922  For example,
29923  for footnote,
29924  it might be:
29925  
29926 \begin_inset Flex Code
29927 status collapsed
29928
29929 \begin_layout Plain Layout
29930
29931 \backslash
29932 arabic{footnote}
29933 \end_layout
29934
29935 \end_inset
29936
29937 .
29938  This is optional,
29939  and there is no default.
29940 \end_layout
29941
29942 \begin_layout Description
29943 \begin_inset Flex Code
29944 status collapsed
29945
29946 \begin_layout Plain Layout
29947 HTMLPreamble
29948 \end_layout
29949
29950 \end_inset
29951
29952  Information to be output in the 
29953 \begin_inset Flex Code
29954 status collapsed
29955
29956 \begin_layout Plain Layout
29957 <head>
29958 \end_layout
29959
29960 \end_inset
29961
29962  section when this style is used.
29963  This might,
29964  for example,
29965  be used to include a 
29966 \begin_inset Flex Code
29967 status collapsed
29968
29969 \begin_layout Plain Layout
29970 <script>
29971 \end_layout
29972
29973 \end_inset
29974
29975  block defining an 
29976 \begin_inset Flex Code
29977 status collapsed
29978
29979 \begin_layout Plain Layout
29980 onclick
29981 \end_layout
29982
29983 \end_inset
29984
29985  handler.
29986 \end_layout
29987
29988 \begin_layout Description
29989 \begin_inset Flex Code
29990 status collapsed
29991
29992 \begin_layout Plain Layout
29993 HTMLStyle
29994 \end_layout
29995
29996 \end_inset
29997
29998  CSS style information to be included when this style is used.
29999  Note that this will automatically be wrapped in a layout-generated 
30000 \begin_inset Flex Code
30001 status collapsed
30002
30003 \begin_layout Plain Layout
30004 <style>
30005 \end_layout
30006
30007 \end_inset
30008
30009  block,
30010  so only the CSS itself need be included.
30011 \end_layout
30012
30013 \begin_layout Description
30014 \begin_inset Flex Code
30015 status collapsed
30016
30017 \begin_layout Plain Layout
30018 HTMLTag
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 tag to be used for the main label,
30034  replacing 
30035 \begin_inset Flex Code
30036 status collapsed
30037
30038 \begin_layout Plain Layout
30039 tag
30040 \end_layout
30041
30042 \end_inset
30043
30044  in the examples above.
30045  The default depends upon the setting of 
30046 \begin_inset Flex Code
30047 status collapsed
30048
30049 \begin_layout Plain Layout
30050 MultiPar
30051 \end_layout
30052
30053 \end_inset
30054
30055 :
30056  If 
30057 \begin_inset Flex Code
30058 status collapsed
30059
30060 \begin_layout Plain Layout
30061 MultiPar
30062 \end_layout
30063
30064 \end_inset
30065
30066  is true,
30067  the default is 
30068 \begin_inset Flex Code
30069 status collapsed
30070
30071 \begin_layout Plain Layout
30072 div
30073 \end_layout
30074
30075 \end_inset
30076
30077 ;
30078  if it is false,
30079  the default is 
30080 \begin_inset Flex Code
30081 status collapsed
30082
30083 \begin_layout Plain Layout
30084 span
30085 \end_layout
30086
30087 \end_inset
30088
30089 .
30090 \end_layout
30091
30092 \begin_layout Subsection
30093 Float XHTML
30094 \end_layout
30095
30096 \begin_layout Standard
30097 The XHTML output for floats too can be controlled by layout information.
30098  The output has the following form:
30099 \end_layout
30100
30101 \begin_layout LyX-Code
30102 <tag attr=
30103 \begin_inset Quotes erd
30104 \end_inset
30105
30106 value
30107 \begin_inset Quotes erd
30108 \end_inset
30109
30110 >
30111 \end_layout
30112
30113 \begin_layout LyX-Code
30114 Contents of the float.
30115 \end_layout
30116
30117 \begin_layout LyX-Code
30118 </tag>
30119 \end_layout
30120
30121 \begin_layout Standard
30122 The caption,
30123  if there is one,
30124  is a separate inset and will be output as such.
30125  Its appearance can be controlled via the InsetLayout for caption insets.
30126  
30127 \end_layout
30128
30129 \begin_layout Description
30130 \begin_inset Flex Code
30131 status collapsed
30132
30133 \begin_layout Plain Layout
30134 HTMLAttr
30135 \end_layout
30136
30137 \end_inset
30138
30139  [
30140 \begin_inset Flex Code
30141 status collapsed
30142
30143 \begin_layout Plain Layout
30144 string
30145 \end_layout
30146
30147 \end_inset
30148
30149 ] Specifies attribute information to be output with the main tag.
30150  For example,
30151  
30152 \begin_inset Quotes eld
30153 \end_inset
30154
30155
30156 \begin_inset Flex Code
30157 status collapsed
30158
30159 \begin_layout Plain Layout
30160 class=`myfloat' onclick=`\SpecialChar ldots
30161 '
30162 \end_layout
30163
30164 \end_inset
30165
30166
30167 \begin_inset Quotes erd
30168 \end_inset
30169
30170 .
30171  By default,
30172  \SpecialChar LyX
30173  will output 
30174 \begin_inset Quotes eld
30175 \end_inset
30176
30177
30178 \begin_inset Flex Code
30179 status collapsed
30180
30181 \begin_layout Plain Layout
30182 class=`float float-floattype'
30183 \end_layout
30184
30185 \end_inset
30186
30187
30188 \begin_inset Quotes erd
30189 \end_inset
30190
30191 ,
30192  where 
30193 \begin_inset Flex Code
30194 status collapsed
30195
30196 \begin_layout Plain Layout
30197 floattype
30198 \end_layout
30199
30200 \end_inset
30201
30202  is \SpecialChar LyX
30203 's name for this type of float,
30204  as determined by the float declaration (see 
30205 \begin_inset CommandInset ref
30206 LatexCommand ref
30207 reference "subsec:Floats"
30208
30209 \end_inset
30210
30211 ),
30212  though made lowercase and with non-alphanumeric characters converted to underscores,
30213  for example:
30214  float-table.
30215 \end_layout
30216
30217 \begin_layout Description
30218 \begin_inset Flex Code
30219 status collapsed
30220
30221 \begin_layout Plain Layout
30222 HTMLStyle
30223 \end_layout
30224
30225 \end_inset
30226
30227  CSS style information to be included when this float is used.
30228  Note that this will automatically be wrapped in a layout-generated 
30229 \begin_inset Flex Code
30230 status collapsed
30231
30232 \begin_layout Plain Layout
30233 <style>
30234 \end_layout
30235
30236 \end_inset
30237
30238  block,
30239  so only the CSS itself need be included.
30240 \end_layout
30241
30242 \begin_layout Description
30243 \begin_inset Flex Code
30244 status collapsed
30245
30246 \begin_layout Plain Layout
30247 HTMLTag
30248 \end_layout
30249
30250 \end_inset
30251
30252  [
30253 \begin_inset Flex Code
30254 status collapsed
30255
30256 \begin_layout Plain Layout
30257 string
30258 \end_layout
30259
30260 \end_inset
30261
30262 ] The tag to be used for this float,
30263  replacing 
30264 \begin_inset Quotes eld
30265 \end_inset
30266
30267
30268 \begin_inset Flex Code
30269 status collapsed
30270
30271 \begin_layout Plain Layout
30272 tag
30273 \end_layout
30274
30275 \end_inset
30276
30277
30278 \begin_inset Quotes erd
30279 \end_inset
30280
30281  in the example above.
30282  The default is 
30283 \begin_inset Flex Code
30284 status collapsed
30285
30286 \begin_layout Plain Layout
30287 div
30288 \end_layout
30289
30290 \end_inset
30291
30292  and will rarely need changing.
30293 \end_layout
30294
30295 \begin_layout Subsection
30296 Bibliography formatting
30297 \end_layout
30298
30299 \begin_layout Standard
30300 The bibliography can be formatted using 
30301 \begin_inset Flex Code
30302 status collapsed
30303
30304 \begin_layout Plain Layout
30305 CiteFormat
30306 \end_layout
30307
30308 \end_inset
30309
30310  blocks.
30311  See 
30312 \begin_inset CommandInset ref
30313 LatexCommand ref
30314 reference "subsec:Citation-format-description"
30315
30316 \end_inset
30317
30318  for the details.
30319 \end_layout
30320
30321 \begin_layout Subsection
30322 \SpecialChar LyX
30323 -generated CSS
30324 \end_layout
30325
30326 \begin_layout Standard
30327 We have several times mentioned that \SpecialChar LyX
30328  will generate default CSS style rules for both insets and paragraph styles,
30329  based upon the other layout information that is provided.
30330  In this section,
30331  we shall say a word about which layout information \SpecialChar LyX
30332  uses and how.
30333 \end_layout
30334
30335 \begin_layout Standard
30336 At present,
30337  \SpecialChar LyX
30338  auto-generates CSS only for font information,
30339  making use of the 
30340 \begin_inset Flex Code
30341 status collapsed
30342
30343 \begin_layout Plain Layout
30344 Family
30345 \end_layout
30346
30347 \end_inset
30348
30349 ,
30350  
30351 \begin_inset Flex Code
30352 status collapsed
30353
30354 \begin_layout Plain Layout
30355 Series
30356 \end_layout
30357
30358 \end_inset
30359
30360 ,
30361  
30362 \begin_inset Flex Code
30363 status collapsed
30364
30365 \begin_layout Plain Layout
30366 Shape
30367 \end_layout
30368
30369 \end_inset
30370
30371 ,
30372  and 
30373 \begin_inset Flex Code
30374 status collapsed
30375
30376 \begin_layout Plain Layout
30377 Size
30378 \end_layout
30379
30380 \end_inset
30381
30382  specified in the 
30383 \begin_inset Flex Code
30384 status collapsed
30385
30386 \begin_layout Plain Layout
30387 Font
30388 \end_layout
30389
30390 \end_inset
30391
30392  declaration (see 
30393 \begin_inset CommandInset ref
30394 LatexCommand ref
30395 reference "subsec:Font-description"
30396
30397 \end_inset
30398
30399 ).
30400  The translation is mostly straightforward and obvious.
30401  For example,
30402  
30403 \begin_inset Quotes eld
30404 \end_inset
30405
30406
30407 \begin_inset Flex Code
30408 status collapsed
30409
30410 \begin_layout Plain Layout
30411 Family Sans
30412 \end_layout
30413
30414 \end_inset
30415
30416
30417 \begin_inset Quotes erd
30418 \end_inset
30419
30420  becomes 
30421 \begin_inset Quotes eld
30422 \end_inset
30423
30424
30425 \begin_inset Flex Code
30426 status collapsed
30427
30428 \begin_layout Plain Layout
30429 font-family:
30430  sans-serif;
30431 \end_layout
30432
30433 \end_inset
30434
30435
30436 \begin_inset Quotes erd
30437 \end_inset
30438
30439 .
30440  The correspondence of \SpecialChar LyX
30441  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
30442  See the 
30443 \begin_inset Flex Code
30444 status collapsed
30445
30446 \begin_layout Plain Layout
30447 getSizeCSS()
30448 \end_layout
30449
30450 \end_inset
30451
30452  function in 
30453 \begin_inset Flex URL
30454 status collapsed
30455
30456 \begin_layout Plain Layout
30457
30458 src/FontInfo.cpp
30459 \end_layout
30460
30461 \end_inset
30462
30463  for the details.
30464 \change_inserted -970929547 1496610908
30465
30466 \end_layout
30467
30468 \begin_layout Section
30469
30470 \change_inserted -970929547 1496610966
30471 \begin_inset CommandInset label
30472 LatexCommand label
30473 name "sec:Tags-for-DocBook"
30474
30475 \end_inset
30476
30477 Tags for DocBook output
30478 \end_layout
30479
30480 \begin_layout Standard
30481
30482 \change_inserted -970929547 1496611615
30483 As with \SpecialChar LaTeX
30484  or XHTML,
30485  the format of \SpecialChar LyX
30486 's DocBook output is also controlled by layout information.
30487  In general,
30488  \SpecialChar LyX
30489  provides sensible defaults;
30490  however,
30491  much of the styling is lost during the conversion,
30492  as DocBook is strictly semantic and does not allow formatting.
30493  When possible,
30494  information from \SpecialChar LyX
30495  will be rendered in 
30496 \family typewriter
30497 role
30498 \family default
30499  attributes.
30500  
30501 \end_layout
30502
30503 \begin_layout Standard
30504
30505 \change_inserted -970929547 1496612080
30506 In many cases,
30507  then,
30508  you may not have to do anything at all to get acceptable DocBook output for your own environments,
30509  custom insets,
30510  and so forth.
30511  But in some cases you will,
30512  and so \SpecialChar LyX
30513  provides a number of layout tags that can be used to customize the DocBook that is generated.
30514 \end_layout
30515
30516 \begin_layout Standard
30517
30518 \change_inserted -970929547 1515109912
30519 Labels are rarely output,
30520  as they are redundant in DocBook:
30521  this information is carried by the tags themselves,
30522  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
30523  However,
30524  sometimes,
30525  labels are not redundant content,
30526  such as definition lists:
30527  in this case,
30528  the term being defined will be the label.
30529  
30530 \end_layout
30531
30532 \begin_layout Subsection
30533
30534 \change_inserted 1075283030 1597699417
30535 \begin_inset CommandInset label
30536 LatexCommand label
30537 name "subsec:Paragraph-Style-DocBook"
30538
30539 \end_inset
30540
30541
30542 \change_deleted 1075283030 1597699417
30543
30544 \begin_inset CommandInset label
30545 LatexCommand label
30546 name "subsec:Paragraph-Style-XHTML-1"
30547
30548 \end_inset
30549
30550
30551 \change_inserted -970929547 1496610966
30552 Paragraph styles
30553 \end_layout
30554
30555 \begin_layout Standard
30556
30557 \change_inserted -970929547 1496612059
30558 The sort of DocBook \SpecialChar LyX
30559  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
30560  a command,
30561  or an environment,
30562  where this is itself determined by the contents of the corresponding 
30563 \begin_inset Flex Code
30564 status collapsed
30565
30566 \begin_layout Plain Layout
30567
30568 \change_inserted -970929547 1496610966
30569 \SpecialChar LaTeX
30570 Type
30571 \change_unchanged
30572
30573 \end_layout
30574
30575 \end_inset
30576
30577  tag.
30578  
30579 \end_layout
30580
30581 \begin_layout Standard
30582
30583 \change_inserted -970929547 1496612107
30584 For a command or normal paragraph,
30585  the output DocBook has the following form:
30586 \end_layout
30587
30588 \begin_layout LyX-Code
30589
30590 \change_inserted -970929547 1515109666
30591 <tag attr>
30592 \end_layout
30593
30594 \begin_layout LyX-Code
30595
30596 \change_inserted -970929547 1496610966
30597 Contents of the paragraph.
30598 \end_layout
30599
30600 \begin_layout LyX-Code
30601
30602 \change_inserted -970929547 1496610966
30603 </tag>
30604 \end_layout
30605
30606 \begin_layout Standard
30607
30608 \change_inserted -970929547 1515109821
30609 For an environment that is not some sort of list,
30610  the generated DocBook takes this form:
30611 \end_layout
30612
30613 \begin_layout LyX-Code
30614
30615 \change_inserted -970929547 1515109671
30616 <tag attr>
30617 \end_layout
30618
30619 \begin_layout LyX-Code
30620
30621 \change_inserted -970929547 1496612114
30622 <itemtag>First paragraph.</itemtag>
30623 \end_layout
30624
30625 \begin_layout LyX-Code
30626
30627 \change_inserted -970929547 1496610966
30628 <itemtag>Second paragraph.</itemtag>
30629 \end_layout
30630
30631 \begin_layout LyX-Code
30632
30633 \change_inserted -970929547 1496610966
30634 </tag>
30635 \end_layout
30636
30637 \begin_layout Standard
30638
30639 \change_inserted -970929547 1515109825
30640 For a list,
30641  the resulting DocBook takes this form:
30642 \end_layout
30643
30644 \begin_layout LyX-Code
30645
30646 \change_inserted -970929547 1515109672
30647 <tag attr>
30648 \end_layout
30649
30650 \begin_layout LyX-Code
30651
30652 \change_inserted -970929547 1515109676
30653 <itemtag attr>First item.</itemtag>
30654 \end_layout
30655
30656 \begin_layout LyX-Code
30657
30658 \change_inserted -970929547 1515109678
30659 <itemtag attr>Second item.</itemtag>
30660 \end_layout
30661
30662 \begin_layout LyX-Code
30663
30664 \change_inserted -970929547 1496610966
30665 </tag>
30666 \end_layout
30667
30668 \begin_layout Standard
30669
30670 \change_inserted -970929547 1496612243
30671 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
30672  Please note that,
30673  due to the very nature of DocBook,
30674  no sensible defaults really exist,
30675  and the values must always be carefully chosen.
30676  
30677 \end_layout
30678
30679 \begin_layout Description
30680
30681 \change_inserted -970929547 1515110057
30682 \begin_inset Flex Code
30683 status collapsed
30684
30685 \begin_layout Plain Layout
30686
30687 \change_inserted -970929547 1515109656
30688 DocBookAttr
30689 \change_unchanged
30690
30691 \end_layout
30692
30693 \end_inset
30694
30695  [
30696 \begin_inset Flex Code
30697 status collapsed
30698
30699 \begin_layout Plain Layout
30700
30701 \change_inserted -970929547 1496610966
30702 string
30703 \change_unchanged
30704
30705 \end_layout
30706
30707 \end_inset
30708
30709 ] Specifies attribute information to be output with the main tag,
30710  replacing 
30711 \begin_inset Quotes eld
30712 \end_inset
30713
30714
30715 \begin_inset Flex Code
30716 status collapsed
30717
30718 \begin_layout Plain Layout
30719
30720 \change_inserted -970929547 1515110057
30721 attr
30722 \change_unchanged
30723
30724 \end_layout
30725
30726 \end_inset
30727
30728
30729 \begin_inset Quotes erd
30730 \end_inset
30731
30732  in the example above.
30733  This information can be used in further processing of the DocBook files.
30734  
30735 \change_unchanged
30736
30737 \end_layout
30738
30739 \begin_layout Description
30740
30741 \change_inserted -970929547 1496612296
30742 \begin_inset Flex Code
30743 status collapsed
30744
30745 \begin_layout Plain Layout
30746
30747 \change_inserted -970929547 1496612269
30748 DocBookTag
30749 \change_unchanged
30750
30751 \end_layout
30752
30753 \end_inset
30754
30755  [
30756 \begin_inset Flex Code
30757 status collapsed
30758
30759 \begin_layout Plain Layout
30760
30761 \change_inserted -970929547 1496610966
30762 string
30763 \change_unchanged
30764
30765 \end_layout
30766
30767 \end_inset
30768
30769 ] The tag to be used for this inset,
30770  replacing 
30771 \begin_inset Quotes eld
30772 \end_inset
30773
30774
30775 \begin_inset Flex Code
30776 status collapsed
30777
30778 \begin_layout Plain Layout
30779
30780 \change_inserted -970929547 1496612296
30781 tag
30782 \change_unchanged
30783
30784 \end_layout
30785
30786 \end_inset
30787
30788
30789 \begin_inset Quotes erd
30790 \end_inset
30791
30792  in the example above.
30793  The default is the name of the float and always needs to be changed,
30794  as DocBook provides no generic tag.
30795 \change_inserted 1075283030 1597698868
30796
30797 \end_layout
30798
30799 \begin_layout Description
30800
30801 \change_inserted 1075283030 1597699399
30802 \begin_inset Flex Code
30803 status collapsed
30804
30805 \begin_layout Plain Layout
30806
30807 \change_inserted 1075283030 1597698872
30808 DocBookTagType
30809 \change_unchanged
30810
30811 \end_layout
30812
30813 \end_inset
30814
30815  [
30816 \begin_inset Flex Code
30817 status collapsed
30818
30819 \begin_layout Plain Layout
30820
30821 \change_inserted 1075283030 1597700585
30822 block,
30823  paragraph,
30824  inline
30825 \change_unchanged
30826
30827 \end_layout
30828
30829 \end_inset
30830
30831 ] The new-line policy for this tag,
30832  see Section
30833 \begin_inset space ~
30834 \end_inset
30835
30836
30837 \begin_inset CommandInset ref
30838 LatexCommand ref
30839 reference "subsec:DocBook-New-line-policy"
30840 plural "false"
30841 caps "false"
30842 noprefix "false"
30843
30844 \end_inset
30845
30846  for the details.
30847  
30848 \change_unchanged
30849
30850 \end_layout
30851
30852 \begin_layout Subsection
30853
30854 \change_inserted 1075283030 1597699385
30855 New-line policy
30856 \begin_inset CommandInset label
30857 LatexCommand label
30858 name "subsec:DocBook-New-line-policy"
30859
30860 \end_inset
30861
30862
30863 \end_layout
30864
30865 \begin_layout Standard
30866
30867 \change_inserted 1075283030 1597698993
30868 For all tags,
30869  there are three possible policies for outputting new lines (given in the 
30870 \begin_inset Flex Code
30871 status collapsed
30872
30873 \begin_layout Plain Layout
30874
30875 \change_inserted 1075283030 1597698987
30876 DocBook*TagType
30877 \change_unchanged
30878
30879 \end_layout
30880
30881 \end_inset
30882
30883  attribute):
30884  
30885 \end_layout
30886
30887 \begin_layout Itemize
30888
30889 \change_inserted 1075283030 1597699279
30890 \begin_inset Quotes eld
30891 \end_inset
30892
30893
30894 \begin_inset Flex Code
30895 status collapsed
30896
30897 \begin_layout Plain Layout
30898
30899 \change_inserted 1075283030 1597699012
30900 block
30901 \change_unchanged
30902
30903 \end_layout
30904
30905 \end_inset
30906
30907
30908 \begin_inset Quotes erd
30909 \end_inset
30910
30911 :
30912  the opening and closing tags are on their own lines (i.e.
30913  a line feed after and before the opening and the closing tags).
30914  Typical elements are floats.
30915  For instance:
30916  
30917 \end_layout
30918
30919 \begin_layout LyX-Code
30920
30921 \change_inserted 1075283030 1597699194
30922 Content before
30923 \end_layout
30924
30925 \begin_layout LyX-Code
30926
30927 \change_inserted 1075283030 1597699194
30928 <blocktag>
30929 \end_layout
30930
30931 \begin_layout LyX-Code
30932
30933 \change_inserted 1075283030 1597699098
30934   Contents of the block.
30935 \end_layout
30936
30937 \begin_layout LyX-Code
30938
30939 \change_inserted 1075283030 1597699196
30940 </blocktag>
30941 \end_layout
30942
30943 \begin_layout LyX-Code
30944
30945 \change_inserted 1075283030 1597699198
30946 Content after
30947 \end_layout
30948
30949 \begin_layout Itemize
30950
30951 \change_inserted 1075283030 1597699289
30952 \begin_inset Quotes eld
30953 \end_inset
30954
30955
30956 \begin_inset Flex Code
30957 status collapsed
30958
30959 \begin_layout Plain Layout
30960
30961 \change_inserted 1075283030 1597699113
30962 paragraph
30963 \change_unchanged
30964
30965 \end_layout
30966
30967 \end_inset
30968
30969
30970 \begin_inset Quotes erd
30971 \end_inset
30972
30973 :
30974  the opening and closing tags are on the same,
30975  new line;
30976  a line feed is output before the opening tag and after the closing tag.
30977  Typical elements are paragraphs and list items.
30978  For instance:
30979  
30980 \end_layout
30981
30982 \begin_layout LyX-Code
30983
30984 \change_inserted 1075283030 1597699186
30985 Content before
30986 \end_layout
30987
30988 \begin_layout LyX-Code
30989
30990 \change_inserted 1075283030 1597699357
30991 <paratag>Contents of the paragraph.</paratag>
30992 \end_layout
30993
30994 \begin_layout LyX-Code
30995
30996 \change_inserted 1075283030 1597699231
30997 Content after
30998 \end_layout
30999
31000 \begin_layout Itemize
31001
31002 \change_inserted 1075283030 1597699343
31003 \begin_inset Quotes eld
31004 \end_inset
31005
31006
31007 \begin_inset Flex Code
31008 status collapsed
31009
31010 \begin_layout Plain Layout
31011
31012 \change_inserted 1075283030 1597699307
31013 inline
31014 \change_unchanged
31015
31016 \end_layout
31017
31018 \end_inset
31019
31020
31021 \begin_inset Quotes erd
31022 \end_inset
31023
31024 :
31025  the opening and closing tags are on the same line as the rest of the content.
31026  No line feeds are output.
31027  Typical elements are fonts.
31028  For instance:
31029  
31030 \end_layout
31031
31032 \begin_layout LyX-Code
31033
31034 \change_inserted 1075283030 1597699585
31035 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
31036 \end_layout
31037
31038 \begin_layout Standard
31039
31040 \change_inserted 1075283030 1597699585
31041 The default value is always 
31042 \begin_inset Quotes eld
31043 \end_inset
31044
31045
31046 \begin_inset Flex Code
31047 status collapsed
31048
31049 \begin_layout Plain Layout
31050
31051 \change_inserted 1075283030 1597699585
31052 block
31053 \change_unchanged
31054
31055 \end_layout
31056
31057 \end_inset
31058
31059
31060 \begin_inset Quotes erd
31061 \end_inset
31062
31063 .
31064 \change_unchanged
31065
31066 \end_layout
31067
31068 \begin_layout Subsection
31069
31070 \change_inserted -970929547 1515111533
31071 InsetLayout DocBook
31072 \change_unchanged
31073
31074 \end_layout
31075
31076 \begin_layout Standard
31077
31078 \change_inserted -970929547 1496611894
31079 The DocBook output of insets can also be controlled by information in layout files.
31080 \end_layout
31081
31082 \begin_layout Standard
31083
31084 \change_inserted -970929547 1496612045
31085 The DocBook \SpecialChar LyX
31086  outputs for an inset has the following form:
31087 \end_layout
31088
31089 \begin_layout LyX-Code
31090
31091 \change_inserted -970929547 1515110861
31092 <wrappertag wrapperattr>
31093 \end_layout
31094
31095 \begin_layout LyX-Code
31096
31097 \change_inserted -970929547 1515110868
31098   <tag attr>
31099 \end_layout
31100
31101 \begin_layout LyX-Code
31102
31103 \change_inserted -970929547 1515110869
31104     <innertag innerattr>
31105 \end_layout
31106
31107 \begin_layout LyX-Code
31108
31109 \change_inserted -970929547 1515110869
31110       Contents of the inset.
31111 \end_layout
31112
31113 \begin_layout LyX-Code
31114
31115 \change_inserted -970929547 1515110870
31116     </innertag>
31117 \end_layout
31118
31119 \begin_layout LyX-Code
31120
31121 \change_inserted -970929547 1515110871
31122   </tag>
31123 \end_layout
31124
31125 \begin_layout LyX-Code
31126
31127 \change_inserted -970929547 1515111172
31128 </wrappertag>
31129 \end_layout
31130
31131 \begin_layout Standard
31132
31133 \change_inserted -970929547 1515111186
31134 For an itemising inset,
31135  it rather looks like this:
31136  
31137 \end_layout
31138
31139 \begin_layout LyX-Code
31140
31141 \change_inserted -970929547 1515111186
31142 <wrappertag wrapperattr>
31143 \end_layout
31144
31145 \begin_layout LyX-Code
31146
31147 \change_inserted -970929547 1515111186
31148   <tag attr>
31149 \end_layout
31150
31151 \begin_layout LyX-Code
31152
31153 \change_inserted -970929547 1515111186
31154     <innertag innerattr>
31155 \end_layout
31156
31157 \begin_layout LyX-Code
31158
31159 \change_inserted -970929547 1515111362
31160       <itemwrappertag itemwrapperattr>
31161 \end_layout
31162
31163 \begin_layout LyX-Code
31164
31165 \change_inserted -970929547 1515111364
31166         <itemlabeltag itemattr>
31167 \end_layout
31168
31169 \begin_layout LyX-Code
31170
31171 \change_inserted -970929547 1515111367
31172           Label of the first item.
31173 \end_layout
31174
31175 \begin_layout LyX-Code
31176
31177 \change_inserted -970929547 1515111362
31178         </itemtag>
31179 \change_unchanged
31180
31181 \end_layout
31182
31183 \begin_layout LyX-Code
31184
31185 \change_inserted -970929547 1515111517
31186         <itemtag itemattr>
31187 \end_layout
31188
31189 \begin_layout LyX-Code
31190
31191 \change_inserted -970929547 1515111517
31192           <itemtag itemattr>
31193 \change_unchanged
31194
31195 \end_layout
31196
31197 \begin_layout LyX-Code
31198
31199 \change_inserted -970929547 1515111516
31200             Contents of the first item.
31201 \end_layout
31202
31203 \begin_layout LyX-Code
31204
31205 \change_inserted -970929547 1515111514
31206           </itemtag>
31207 \change_unchanged
31208
31209 \end_layout
31210
31211 \begin_layout LyX-Code
31212
31213 \change_inserted -970929547 1515111247
31214         </itemtag>
31215 \change_unchanged
31216
31217 \end_layout
31218
31219 \begin_layout LyX-Code
31220
31221 \change_inserted -970929547 1515111221
31222       </itemwrappertag>
31223 \end_layout
31224
31225 \begin_layout LyX-Code
31226
31227 \change_inserted -970929547 1515111370
31228       <itemwrappertag itemwrapperattr>
31229 \end_layout
31230
31231 \begin_layout LyX-Code
31232
31233 \change_inserted -970929547 1515111370
31234         <itemlabeltag itemattr>
31235 \end_layout
31236
31237 \begin_layout LyX-Code
31238
31239 \change_inserted -970929547 1515111372
31240           Label of the second item.
31241 \end_layout
31242
31243 \begin_layout LyX-Code
31244
31245 \change_inserted -970929547 1515111370
31246         </itemtag>
31247 \change_unchanged
31248
31249 \end_layout
31250
31251 \begin_layout LyX-Code
31252
31253 \change_inserted -970929547 1515111504
31254         <itemtag itemattr>
31255 \end_layout
31256
31257 \begin_layout LyX-Code
31258
31259 \change_inserted -970929547 1515111505
31260           <itemtag itemattr>
31261 \change_unchanged
31262
31263 \end_layout
31264
31265 \begin_layout LyX-Code
31266
31267 \change_inserted -970929547 1515111507
31268             Contents of the second item.
31269 \end_layout
31270
31271 \begin_layout LyX-Code
31272
31273 \change_inserted -970929547 1515111509
31274           </itemtag>
31275 \change_unchanged
31276
31277 \end_layout
31278
31279 \begin_layout LyX-Code
31280
31281 \change_inserted -970929547 1515111251
31282         </itemtag>
31283 \change_unchanged
31284
31285 \end_layout
31286
31287 \begin_layout LyX-Code
31288
31289 \change_inserted -970929547 1515111221
31290       </itemwrappertag>
31291 \change_unchanged
31292
31293 \end_layout
31294
31295 \begin_layout LyX-Code
31296
31297 \change_inserted -970929547 1515111219
31298       ...
31299 \change_unchanged
31300
31301 \end_layout
31302
31303 \begin_layout LyX-Code
31304
31305 \change_inserted -970929547 1515111186
31306     </innertag>
31307 \end_layout
31308
31309 \begin_layout LyX-Code
31310
31311 \change_inserted -970929547 1515111186
31312   </tag>
31313 \end_layout
31314
31315 \begin_layout LyX-Code
31316
31317 \change_inserted -970929547 1515111186
31318 </wrappertag>
31319 \end_layout
31320
31321 \begin_layout Standard
31322
31323 \change_inserted -970929547 1515111183
31324 If the inset permits multiple paragraphs—
31325 that is,
31326  if 
31327 \begin_inset Flex Code
31328 status collapsed
31329
31330 \begin_layout Plain Layout
31331
31332 \change_inserted -970929547 1496610966
31333 MultiPar
31334 \change_unchanged
31335
31336 \end_layout
31337
31338 \end_inset
31339
31340  is true—
31341 then the contents of the inset will 
31342 \change_deleted 34634807 1620029217
31343 itself
31344 \change_inserted 34634807 1620029219
31345 themselves
31346 \change_inserted -970929547 1515111183
31347  be output as paragraphs formatted according to the styles used for those paragraphs (standard,
31348  quote,
31349  and the like).
31350  The inner tag is optional and,
31351  by default,
31352  does not appear.
31353 \end_layout
31354
31355 \begin_layout Standard
31356
31357 \change_inserted -970929547 1496610966
31358 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
31359 \end_layout
31360
31361 \begin_layout Description
31362
31363 \change_inserted -970929547 1515110317
31364 \begin_inset Flex Code
31365 status collapsed
31366
31367 \begin_layout Plain Layout
31368
31369 \change_inserted -970929547 1515109695
31370 DocBookAttr
31371 \change_unchanged
31372
31373 \end_layout
31374
31375 \end_inset
31376
31377  [
31378 \begin_inset Flex Code
31379 status collapsed
31380
31381 \begin_layout Plain Layout
31382
31383 \change_inserted -970929547 1496611854
31384 string
31385 \change_unchanged
31386
31387 \end_layout
31388
31389 \end_inset
31390
31391 ] Specifies attribute information to be output with the main tag,
31392  replacing 
31393 \begin_inset Quotes eld
31394 \end_inset
31395
31396
31397 \begin_inset Flex Code
31398 status collapsed
31399
31400 \begin_layout Plain Layout
31401
31402 \change_inserted -970929547 1515110044
31403 attr
31404 \change_unchanged
31405
31406 \end_layout
31407
31408 \end_inset
31409
31410
31411 \begin_inset Quotes erd
31412 \end_inset
31413
31414  in the example above.
31415  This information can be used in further processing of the DocBook files.
31416  
31417 \end_layout
31418
31419 \begin_layout Description
31420
31421 \change_inserted -970929547 1515110973
31422 \begin_inset Flex Code
31423 status collapsed
31424
31425 \begin_layout Plain Layout
31426
31427 \change_inserted -970929547 1515110319
31428 DocBookInInfo
31429 \change_unchanged
31430
31431 \end_layout
31432
31433 \end_inset
31434
31435  [
31436 \begin_inset Flex Code
31437 status collapsed
31438
31439 \begin_layout Plain Layout
31440
31441 \change_inserted -970929547 1515110384
31442 never,
31443  always,
31444  maybe
31445 \change_unchanged
31446
31447 \end_layout
31448
31449 \end_inset
31450
31451 ] Specifies whether this tag goes into the 
31452 \begin_inset Flex Code
31453 status collapsed
31454
31455 \begin_layout Plain Layout
31456
31457 \change_inserted -970929547 1515110412
31458 <info>
31459 \change_unchanged
31460
31461 \end_layout
31462
31463 \end_inset
31464
31465  tag at the beginning of the parent layout.
31466  
31467 \begin_inset Flex Code
31468 status collapsed
31469
31470 \begin_layout Plain Layout
31471
31472 \change_inserted -970929547 1515110437
31473 never
31474 \change_unchanged
31475
31476 \end_layout
31477
31478 \end_inset
31479
31480  indicates that the tag never goes into 
31481 \begin_inset Flex Code
31482 status collapsed
31483
31484 \begin_layout Plain Layout
31485
31486 \change_inserted -970929547 1515110497
31487 <info>
31488 \change_unchanged
31489
31490 \end_layout
31491
31492 \end_inset
31493
31494  (this is default value,
31495  and corresponds to usual content).
31496  
31497 \begin_inset Flex Code
31498 status collapsed
31499
31500 \begin_layout Plain Layout
31501
31502 \change_inserted -970929547 1515110517
31503 always
31504 \change_unchanged
31505
31506 \end_layout
31507
31508 \end_inset
31509
31510  indicates that the tag always goes into 
31511 \begin_inset Flex Code
31512 status collapsed
31513
31514 \begin_layout Plain Layout
31515
31516 \change_inserted -970929547 1515110514
31517 <info>
31518 \change_unchanged
31519
31520 \end_layout
31521
31522 \end_inset
31523
31524  (this corresponds to usual metadata):
31525  if there is no 
31526 \begin_inset Flex Code
31527 status collapsed
31528
31529 \begin_layout Plain Layout
31530
31531 \change_inserted -970929547 1515110550
31532 <info>
31533 \change_unchanged
31534
31535 \end_layout
31536
31537 \end_inset
31538
31539  tag for the parent,
31540  one 
31541 \series bold
31542 will
31543 \series default
31544  be generated.
31545  
31546 \begin_inset Flex Code
31547 status collapsed
31548
31549 \begin_layout Plain Layout
31550
31551 \change_inserted -970929547 1515110540
31552 maybe
31553 \change_unchanged
31554
31555 \end_layout
31556
31557 \end_inset
31558
31559  indicates that the tag may go into 
31560 \begin_inset Flex Code
31561 status collapsed
31562
31563 \begin_layout Plain Layout
31564
31565 \change_inserted -970929547 1515110538
31566 <info>
31567 \change_unchanged
31568
31569 \end_layout
31570
31571 \end_inset
31572
31573  (this is only the case for titles):
31574  if there is no 
31575 \begin_inset Flex Code
31576 status collapsed
31577
31578 \begin_layout Plain Layout
31579
31580 \change_inserted -970929547 1515110585
31581 <info>
31582 \change_unchanged
31583
31584 \end_layout
31585
31586 \end_inset
31587
31588  tag for the parent,
31589  
31590 \series bold
31591 none
31592 \series default
31593  will be generated,
31594  the corresponding tag will be output directly as content.
31595  
31596 \end_layout
31597
31598 \begin_layout Description
31599
31600 \change_inserted -970929547 1515111461
31601 \begin_inset Flex Code
31602 status collapsed
31603
31604 \begin_layout Plain Layout
31605
31606 \change_inserted -970929547 1515110974
31607 DocBookItemAttr
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 1515110973
31621 string
31622 \change_unchanged
31623
31624 \end_layout
31625
31626 \end_inset
31627
31628 ] Specifies attribute information to be output with the item tag,
31629  replacing 
31630 \begin_inset Quotes eld
31631 \end_inset
31632
31633
31634 \begin_inset Flex Code
31635 status collapsed
31636
31637 \begin_layout Plain Layout
31638
31639 \change_inserted -970929547 1515110984
31640 itemattr
31641 \change_unchanged
31642
31643 \end_layout
31644
31645 \end_inset
31646
31647
31648 \begin_inset Quotes erd
31649 \end_inset
31650
31651  in the example above.
31652  This information can be used in further processing of the DocBook files.
31653  
31654 \end_layout
31655
31656 \begin_layout Description
31657
31658 \change_inserted -970929547 1515111471
31659 \begin_inset Flex Code
31660 status collapsed
31661
31662 \begin_layout Plain Layout
31663
31664 \change_inserted -970929547 1515111465
31665 DocBookItemInnerAttr
31666 \change_unchanged
31667
31668 \end_layout
31669
31670 \end_inset
31671
31672  [
31673 \begin_inset Flex Code
31674 status collapsed
31675
31676 \begin_layout Plain Layout
31677
31678 \change_inserted -970929547 1515111461
31679 string
31680 \change_unchanged
31681
31682 \end_layout
31683
31684 \end_inset
31685
31686 ] Specifies attribute information to be output with the item inner tag,
31687  replacing 
31688 \begin_inset Quotes eld
31689 \end_inset
31690
31691
31692 \begin_inset Flex Code
31693 status collapsed
31694
31695 \begin_layout Plain Layout
31696
31697 \change_inserted -970929547 1515111476
31698 iteminnerattr
31699 \change_unchanged
31700
31701 \end_layout
31702
31703 \end_inset
31704
31705
31706 \begin_inset Quotes erd
31707 \end_inset
31708
31709  in the example above.
31710  This information can be used in further processing of the DocBook files.
31711  
31712 \end_layout
31713
31714 \begin_layout Description
31715
31716 \change_inserted -970929547 1515111494
31717 \begin_inset Flex Code
31718 status collapsed
31719
31720 \begin_layout Plain Layout
31721
31722 \change_inserted -970929547 1515111467
31723 DocBookItemInnerTag
31724 \change_unchanged
31725
31726 \end_layout
31727
31728 \end_inset
31729
31730  [
31731 \begin_inset Flex Code
31732 status collapsed
31733
31734 \begin_layout Plain Layout
31735
31736 \change_inserted -970929547 1515111461
31737 string
31738 \change_unchanged
31739
31740 \end_layout
31741
31742 \end_inset
31743
31744 ] The tag to be used for the item inner tag within the inset,
31745  replacing 
31746 \begin_inset Quotes eld
31747 \end_inset
31748
31749
31750 \begin_inset Flex Code
31751 status collapsed
31752
31753 \begin_layout Plain Layout
31754
31755 \change_inserted -970929547 1515111486
31756 iteminnertag
31757 \change_unchanged
31758
31759 \end_layout
31760
31761 \end_inset
31762
31763
31764 \begin_inset Quotes erd
31765 \end_inset
31766
31767  in the example above.
31768  The default is 
31769 \begin_inset Flex Code
31770 status collapsed
31771
31772 \begin_layout Plain Layout
31773
31774 \change_inserted -970929547 1515111461
31775 NONE
31776 \change_unchanged
31777
31778 \end_layout
31779
31780 \end_inset
31781
31782 ,
31783  indicating that there is no item inner tag:
31784  content is directly output without it for each itemised element.
31785  This parameter only makes sense when itemising layouts are used,
31786  such as lists.
31787  
31788 \change_inserted 1075283030 1598469472
31789 The most likely value is 
31790 \begin_inset Quotes eld
31791 \end_inset
31792
31793
31794 \begin_inset Flex Code
31795 status collapsed
31796
31797 \begin_layout Plain Layout
31798
31799 \change_inserted 1075283030 1598469476
31800 para
31801 \change_unchanged
31802
31803 \end_layout
31804
31805 \end_inset
31806
31807
31808 \begin_inset Quotes erd
31809 \end_inset
31810
31811 .
31812 \begin_inset Newline newline
31813 \end_inset
31814
31815 When a list item is split using a new line,
31816  the item inner tag will be repeated for each part of the paragraph,
31817  parts being separated by new lines.
31818  
31819 \end_layout
31820
31821 \begin_layout Description
31822
31823 \change_inserted 1075283030 1597699866
31824 \begin_inset Flex Code
31825 status collapsed
31826
31827 \begin_layout Plain Layout
31828
31829 \change_inserted 1075283030 1597699853
31830 DocBookItemInnerTagType
31831 \change_unchanged
31832
31833 \end_layout
31834
31835 \end_inset
31836
31837  [
31838 \begin_inset Flex Code
31839 status collapsed
31840
31841 \begin_layout Plain Layout
31842
31843 \change_inserted 1075283030 1597699866
31844 block,
31845  paragraph,
31846  inline
31847 \change_unchanged
31848
31849 \end_layout
31850
31851 \end_inset
31852
31853 ] The new-line policy for this tag,
31854  see Section
31855 \begin_inset space ~
31856 \end_inset
31857
31858
31859 \begin_inset CommandInset ref
31860 LatexCommand ref
31861 reference "subsec:DocBook-New-line-policy"
31862 plural "false"
31863 caps "false"
31864 noprefix "false"
31865
31866 \end_inset
31867
31868  for the details.
31869  
31870 \change_unchanged
31871
31872 \end_layout
31873
31874 \begin_layout Description
31875
31876 \change_inserted -970929547 1515111290
31877 \begin_inset Flex Code
31878 status collapsed
31879
31880 \begin_layout Plain Layout
31881
31882 \change_inserted -970929547 1515111283
31883 DocBookItemLabelAttr
31884 \change_unchanged
31885
31886 \end_layout
31887
31888 \end_inset
31889
31890  [
31891 \begin_inset Flex Code
31892 status collapsed
31893
31894 \begin_layout Plain Layout
31895
31896 \change_inserted -970929547 1515111279
31897 string
31898 \change_unchanged
31899
31900 \end_layout
31901
31902 \end_inset
31903
31904 ] Specifies attribute information to be output with the item label tag,
31905  replacing 
31906 \begin_inset Quotes eld
31907 \end_inset
31908
31909
31910 \begin_inset Flex Code
31911 status collapsed
31912
31913 \begin_layout Plain Layout
31914
31915 \change_inserted -970929547 1515111304
31916 itemlabelattr
31917 \change_unchanged
31918
31919 \end_layout
31920
31921 \end_inset
31922
31923
31924 \begin_inset Quotes erd
31925 \end_inset
31926
31927  in the example above.
31928  This information can be used in further processing of the DocBook files.
31929  
31930 \end_layout
31931
31932 \begin_layout Description
31933
31934 \change_inserted -970929547 1515111337
31935 \begin_inset Flex Code
31936 status collapsed
31937
31938 \begin_layout Plain Layout
31939
31940 \change_inserted -970929547 1515111285
31941 DocBookItemLabelTag
31942 \change_unchanged
31943
31944 \end_layout
31945
31946 \end_inset
31947
31948  [
31949 \begin_inset Flex Code
31950 status collapsed
31951
31952 \begin_layout Plain Layout
31953
31954 \change_inserted -970929547 1515111279
31955 string
31956 \change_unchanged
31957
31958 \end_layout
31959
31960 \end_inset
31961
31962 ] The tag to be used for the item label tag within the inset,
31963  replacing 
31964 \begin_inset Quotes eld
31965 \end_inset
31966
31967
31968 \begin_inset Flex Code
31969 status collapsed
31970
31971 \begin_layout Plain Layout
31972
31973 \change_inserted -970929547 1515111311
31974 itemlabeltag
31975 \change_unchanged
31976
31977 \end_layout
31978
31979 \end_inset
31980
31981
31982 \begin_inset Quotes erd
31983 \end_inset
31984
31985  in the example above.
31986  This parameter only makes sense when itemising layouts are used with a notion of labels,
31987  such as definition lists.
31988  
31989 \change_inserted 1075283030 1597699874
31990
31991 \end_layout
31992
31993 \begin_layout Description
31994
31995 \change_inserted 1075283030 1597699874
31996 \begin_inset Flex Code
31997 status collapsed
31998
31999 \begin_layout Plain Layout
32000
32001 \change_inserted 1075283030 1597699880
32002 DocBookItemLabelTagType
32003 \change_unchanged
32004
32005 \end_layout
32006
32007 \end_inset
32008
32009  [
32010 \begin_inset Flex Code
32011 status collapsed
32012
32013 \begin_layout Plain Layout
32014
32015 \change_inserted 1075283030 1597699874
32016 block,
32017  paragraph,
32018  inline
32019 \change_unchanged
32020
32021 \end_layout
32022
32023 \end_inset
32024
32025 ] The new-line policy for this tag,
32026  see Section
32027 \begin_inset space ~
32028 \end_inset
32029
32030
32031 \begin_inset CommandInset ref
32032 LatexCommand ref
32033 reference "subsec:DocBook-New-line-policy"
32034 plural "false"
32035 caps "false"
32036 noprefix "false"
32037
32038 \end_inset
32039
32040  for the details.
32041  
32042 \change_unchanged
32043
32044 \end_layout
32045
32046 \begin_layout Description
32047
32048 \change_inserted -970929547 1515111124
32049 \begin_inset Flex Code
32050 status collapsed
32051
32052 \begin_layout Plain Layout
32053
32054 \change_inserted -970929547 1515111060
32055 DocBookItemTag
32056 \change_unchanged
32057
32058 \end_layout
32059
32060 \end_inset
32061
32062  [
32063 \begin_inset Flex Code
32064 status collapsed
32065
32066 \begin_layout Plain Layout
32067
32068 \change_inserted -970929547 1515111060
32069 string
32070 \change_unchanged
32071
32072 \end_layout
32073
32074 \end_inset
32075
32076 ] The tag to be used for the item tag within the inset,
32077  replacing 
32078 \begin_inset Quotes eld
32079 \end_inset
32080
32081
32082 \begin_inset Flex Code
32083 status collapsed
32084
32085 \begin_layout Plain Layout
32086
32087 \change_inserted -970929547 1515111060
32088 itemtag
32089 \change_unchanged
32090
32091 \end_layout
32092
32093 \end_inset
32094
32095
32096 \begin_inset Quotes erd
32097 \end_inset
32098
32099  in the example above.
32100  The default is 
32101 \begin_inset Flex Code
32102 status collapsed
32103
32104 \begin_layout Plain Layout
32105
32106 \change_inserted -970929547 1515111060
32107 NONE
32108 \change_unchanged
32109
32110 \end_layout
32111
32112 \end_inset
32113
32114 ,
32115  indicating that there is no item tag.
32116  This parameter only makes sense when itemising layouts are used,
32117  such as lists.
32118  
32119 \change_inserted 1075283030 1597699890
32120
32121 \end_layout
32122
32123 \begin_layout Description
32124
32125 \change_inserted 1075283030 1597699890
32126 \begin_inset Flex Code
32127 status collapsed
32128
32129 \begin_layout Plain Layout
32130
32131 \change_inserted 1075283030 1597699890
32132 DocBookItemTagType
32133 \change_unchanged
32134
32135 \end_layout
32136
32137 \end_inset
32138
32139  [
32140 \begin_inset Flex Code
32141 status collapsed
32142
32143 \begin_layout Plain Layout
32144
32145 \change_inserted 1075283030 1597699890
32146 block,
32147  paragraph,
32148  inline
32149 \change_unchanged
32150
32151 \end_layout
32152
32153 \end_inset
32154
32155 ] The new-line policy for this tag,
32156  see Section
32157 \begin_inset space ~
32158 \end_inset
32159
32160
32161 \begin_inset CommandInset ref
32162 LatexCommand ref
32163 reference "subsec:DocBook-New-line-policy"
32164 plural "false"
32165 caps "false"
32166 noprefix "false"
32167
32168 \end_inset
32169
32170  for the details.
32171  
32172 \change_unchanged
32173
32174 \end_layout
32175
32176 \begin_layout Description
32177
32178 \change_inserted -970929547 1515111298
32179 \begin_inset Flex Code
32180 status collapsed
32181
32182 \begin_layout Plain Layout
32183
32184 \change_inserted -970929547 1515111124
32185 DocBookItemWrapperAttr
32186 \change_unchanged
32187
32188 \end_layout
32189
32190 \end_inset
32191
32192  [
32193 \begin_inset Flex Code
32194 status collapsed
32195
32196 \begin_layout Plain Layout
32197
32198 \change_inserted -970929547 1515111124
32199 string
32200 \change_unchanged
32201
32202 \end_layout
32203
32204 \end_inset
32205
32206 ] Specifies attribute information to be output with the item wrapper tag,
32207  replacing 
32208 \begin_inset Quotes eld
32209 \end_inset
32210
32211
32212 \begin_inset Flex Code
32213 status collapsed
32214
32215 \begin_layout Plain Layout
32216
32217 \change_inserted -970929547 1515111150
32218 itemwrapperattr
32219 \change_unchanged
32220
32221 \end_layout
32222
32223 \end_inset
32224
32225
32226 \begin_inset Quotes erd
32227 \end_inset
32228
32229  in the example above.
32230  This information can be used in further processing of the DocBook files.
32231  
32232 \change_unchanged
32233
32234 \end_layout
32235
32236 \begin_layout Description
32237
32238 \change_inserted -970929547 1515111113
32239 \begin_inset Flex Code
32240 status collapsed
32241
32242 \begin_layout Plain Layout
32243
32244 \change_inserted -970929547 1515111073
32245 DocBookItemWrapperTag
32246 \change_unchanged
32247
32248 \end_layout
32249
32250 \end_inset
32251
32252  [
32253 \begin_inset Flex Code
32254 status collapsed
32255
32256 \begin_layout Plain Layout
32257
32258 \change_inserted -970929547 1515111073
32259 string
32260 \change_unchanged
32261
32262 \end_layout
32263
32264 \end_inset
32265
32266 ] The tag to be used for the item wrapper tag within the inset,
32267  replacing 
32268 \begin_inset Quotes eld
32269 \end_inset
32270
32271
32272 \begin_inset Flex Code
32273 status collapsed
32274
32275 \begin_layout Plain Layout
32276
32277 \change_inserted -970929547 1515111083
32278 itemwrappertag
32279 \change_unchanged
32280
32281 \end_layout
32282
32283 \end_inset
32284
32285
32286 \begin_inset Quotes erd
32287 \end_inset
32288
32289  in the example above.
32290  The default is 
32291 \begin_inset Flex Code
32292 status collapsed
32293
32294 \begin_layout Plain Layout
32295
32296 \change_inserted -970929547 1515111073
32297 NONE
32298 \change_unchanged
32299
32300 \end_layout
32301
32302 \end_inset
32303
32304 ,
32305  indicating that there is no item wrapper tag:
32306  tag and content are directly output without it for each itemised element.
32307  This parameter only makes sense when itemising layouts are used,
32308  such as lists.
32309  
32310 \change_inserted 1075283030 1597699897
32311
32312 \end_layout
32313
32314 \begin_layout Description
32315
32316 \change_inserted 1075283030 1597699897
32317 \begin_inset Flex Code
32318 status collapsed
32319
32320 \begin_layout Plain Layout
32321
32322 \change_inserted 1075283030 1597699900
32323 DocBookItemWrapperTagType
32324 \change_unchanged
32325
32326 \end_layout
32327
32328 \end_inset
32329
32330  [
32331 \begin_inset Flex Code
32332 status collapsed
32333
32334 \begin_layout Plain Layout
32335
32336 \change_inserted 1075283030 1597699897
32337 block,
32338  paragraph,
32339  inline
32340 \change_unchanged
32341
32342 \end_layout
32343
32344 \end_inset
32345
32346 ] The new-line policy for this tag,
32347  see Section
32348 \begin_inset space ~
32349 \end_inset
32350
32351
32352 \begin_inset CommandInset ref
32353 LatexCommand ref
32354 reference "subsec:DocBook-New-line-policy"
32355 plural "false"
32356 caps "false"
32357 noprefix "false"
32358
32359 \end_inset
32360
32361  for the details.
32362  
32363 \change_unchanged
32364
32365 \end_layout
32366
32367 \begin_layout Description
32368
32369 \change_inserted -970929547 1515110104
32370 \begin_inset Flex Code
32371 status collapsed
32372
32373 \begin_layout Plain Layout
32374
32375 \change_inserted -970929547 1515110104
32376 DocBookInnerAttr
32377 \change_unchanged
32378
32379 \end_layout
32380
32381 \end_inset
32382
32383  [
32384 \begin_inset Flex Code
32385 status collapsed
32386
32387 \begin_layout Plain Layout
32388
32389 \change_inserted -970929547 1515110104
32390 string
32391 \change_unchanged
32392
32393 \end_layout
32394
32395 \end_inset
32396
32397 ] Specifies attribute information to be output with the inner tag,
32398  replacing 
32399 \begin_inset Quotes eld
32400 \end_inset
32401
32402
32403 \begin_inset Flex Code
32404 status collapsed
32405
32406 \begin_layout Plain Layout
32407
32408 \change_inserted -970929547 1515110104
32409 innerattr
32410 \change_unchanged
32411
32412 \end_layout
32413
32414 \end_inset
32415
32416
32417 \begin_inset Quotes erd
32418 \end_inset
32419
32420  in the example above.
32421  This information can be used in further processing of the DocBook files.
32422  
32423 \end_layout
32424
32425 \begin_layout Description
32426
32427 \change_inserted -970929547 1515110906
32428 \begin_inset Flex Code
32429 status collapsed
32430
32431 \begin_layout Plain Layout
32432
32433 \change_inserted -970929547 1515110104
32434 DocBookInnerTag
32435 \change_unchanged
32436
32437 \end_layout
32438
32439 \end_inset
32440
32441  [
32442 \begin_inset Flex Code
32443 status collapsed
32444
32445 \begin_layout Plain Layout
32446
32447 \change_inserted -970929547 1515110104
32448 string
32449 \change_unchanged
32450
32451 \end_layout
32452
32453 \end_inset
32454
32455 ] The tag to be used for the inner tag within the inset,
32456  replacing 
32457 \begin_inset Quotes eld
32458 \end_inset
32459
32460
32461 \begin_inset Flex Code
32462 status collapsed
32463
32464 \begin_layout Plain Layout
32465
32466 \change_inserted -970929547 1515110104
32467 innertag
32468 \change_unchanged
32469
32470 \end_layout
32471
32472 \end_inset
32473
32474
32475 \begin_inset Quotes erd
32476 \end_inset
32477
32478  in the example above.
32479  The default is 
32480 \begin_inset Flex Code
32481 status collapsed
32482
32483 \begin_layout Plain Layout
32484
32485 \change_inserted -970929547 1515110791
32486 NONE
32487 \change_unchanged
32488
32489 \end_layout
32490
32491 \end_inset
32492
32493 ,
32494  indicating that there is no inner tag:
32495  content is directly output without it.
32496 \change_inserted 1075283030 1597699904
32497
32498 \end_layout
32499
32500 \begin_layout Description
32501
32502 \change_inserted 1075283030 1597699904
32503 \begin_inset Flex Code
32504 status collapsed
32505
32506 \begin_layout Plain Layout
32507
32508 \change_inserted 1075283030 1597699904
32509 DocBookInnerTagType
32510 \change_unchanged
32511
32512 \end_layout
32513
32514 \end_inset
32515
32516  [
32517 \begin_inset Flex Code
32518 status collapsed
32519
32520 \begin_layout Plain Layout
32521
32522 \change_inserted 1075283030 1597699904
32523 block,
32524  paragraph,
32525  inline
32526 \change_unchanged
32527
32528 \end_layout
32529
32530 \end_inset
32531
32532 ] The new-line policy for this tag,
32533  see Section
32534 \begin_inset space ~
32535 \end_inset
32536
32537
32538 \begin_inset CommandInset ref
32539 LatexCommand ref
32540 reference "subsec:DocBook-New-line-policy"
32541 plural "false"
32542 caps "false"
32543 noprefix "false"
32544
32545 \end_inset
32546
32547  for the details.
32548  
32549 \change_unchanged
32550
32551 \end_layout
32552
32553 \begin_layout Description
32554
32555 \change_inserted -970929547 1515110753
32556 \begin_inset Flex Code
32557 status collapsed
32558
32559 \begin_layout Plain Layout
32560
32561 \change_inserted -970929547 1515110665
32562 DocBookSectionTag
32563 \change_unchanged
32564
32565 \end_layout
32566
32567 \end_inset
32568
32569  [
32570 \begin_inset Flex Code
32571 status collapsed
32572
32573 \begin_layout Plain Layout
32574
32575 \change_inserted -970929547 1515110661
32576 string
32577 \change_unchanged
32578
32579 \end_layout
32580
32581 \end_inset
32582
32583 ] Specifies the tag that corresponds to this kind of section.
32584  This parameter only makes sense for sectioning elements (part,
32585  chapter,
32586  section,
32587  etc.).
32588  The default value is 
32589 \begin_inset Flex Code
32590 status collapsed
32591
32592 \begin_layout Plain Layout
32593
32594 \change_inserted -970929547 1515110721
32595 section
32596 \change_unchanged
32597
32598 \end_layout
32599
32600 \end_inset
32601
32602 ,
32603  and is only overridden when DocBook uses something else for sectioning (
32604 \change_inserted 1075283030 1597699921
32605 typically,
32606  
32607 \change_inserted -970929547 1515110753
32608 parts and chapters of a book).
32609  
32610 \change_unchanged
32611
32612 \end_layout
32613
32614 \begin_layout Description
32615
32616 \change_inserted -970929547 1515110811
32617 \begin_inset Flex Code
32618 status collapsed
32619
32620 \begin_layout Plain Layout
32621
32622 \change_inserted -970929547 1496612023
32623 DocBookTag
32624 \change_unchanged
32625
32626 \end_layout
32627
32628 \end_inset
32629
32630  [
32631 \begin_inset Flex Code
32632 status collapsed
32633
32634 \begin_layout Plain Layout
32635
32636 \change_inserted -970929547 1496610966
32637 string
32638 \change_unchanged
32639
32640 \end_layout
32641
32642 \end_inset
32643
32644 ] The tag to be used for this inset,
32645  replacing 
32646 \begin_inset Quotes eld
32647 \end_inset
32648
32649
32650 \begin_inset Flex Code
32651 status collapsed
32652
32653 \begin_layout Plain Layout
32654
32655 \change_inserted -970929547 1496612033
32656 tag
32657 \change_unchanged
32658
32659 \end_layout
32660
32661 \end_inset
32662
32663
32664 \begin_inset Quotes erd
32665 \end_inset
32666
32667  in the example above.
32668  The default is the name of the float and always needs to be changed,
32669  as DocBook provides no generic inset tag.
32670 \change_inserted 1075283030 1597699924
32671
32672 \end_layout
32673
32674 \begin_layout Description
32675
32676 \change_inserted 1075283030 1597699924
32677 \begin_inset Flex Code
32678 status collapsed
32679
32680 \begin_layout Plain Layout
32681
32682 \change_inserted 1075283030 1597699924
32683 DocBookTagType
32684 \change_unchanged
32685
32686 \end_layout
32687
32688 \end_inset
32689
32690  [
32691 \begin_inset Flex Code
32692 status collapsed
32693
32694 \begin_layout Plain Layout
32695
32696 \change_inserted 1075283030 1597699924
32697 block,
32698  paragraph,
32699  inline
32700 \change_unchanged
32701
32702 \end_layout
32703
32704 \end_inset
32705
32706 ] The new-line policy for this tag,
32707  see Section
32708 \begin_inset space ~
32709 \end_inset
32710
32711
32712 \begin_inset CommandInset ref
32713 LatexCommand ref
32714 reference "subsec:DocBook-New-line-policy"
32715 plural "false"
32716 caps "false"
32717 noprefix "false"
32718
32719 \end_inset
32720
32721  for the details.
32722  
32723 \change_unchanged
32724
32725 \end_layout
32726
32727 \begin_layout Description
32728
32729 \change_inserted -970929547 1515110832
32730 \begin_inset Flex Code
32731 status collapsed
32732
32733 \begin_layout Plain Layout
32734
32735 \change_inserted -970929547 1515110822
32736 DocBookWrapperAttr
32737 \change_unchanged
32738
32739 \end_layout
32740
32741 \end_inset
32742
32743  [
32744 \begin_inset Flex Code
32745 status collapsed
32746
32747 \begin_layout Plain Layout
32748
32749 \change_inserted -970929547 1515110811
32750 string
32751 \change_unchanged
32752
32753 \end_layout
32754
32755 \end_inset
32756
32757 ] Specifies attribute information to be output with the outer 
32758 \change_inserted 34634807 1620057958
32759 wrapper 
32760 \change_inserted -970929547 1515110832
32761 tag,
32762  replacing 
32763 \begin_inset Quotes eld
32764 \end_inset
32765
32766
32767 \begin_inset Flex Code
32768 status collapsed
32769
32770 \begin_layout Plain Layout
32771
32772 \change_inserted -970929547 1515110845
32773 wrapperattr
32774 \change_unchanged
32775
32776 \end_layout
32777
32778 \end_inset
32779
32780
32781 \begin_inset Quotes erd
32782 \end_inset
32783
32784  in the example above.
32785  This information can be used in further processing of the DocBook files.
32786  
32787 \end_layout
32788
32789 \begin_layout Description
32790
32791 \change_inserted -970929547 1515110917
32792 \begin_inset Flex Code
32793 status collapsed
32794
32795 \begin_layout Plain Layout
32796
32797 \change_inserted -970929547 1515110826
32798 DocBookWrapperTag
32799 \change_unchanged
32800
32801 \end_layout
32802
32803 \end_inset
32804
32805  [
32806 \begin_inset Flex Code
32807 status collapsed
32808
32809 \begin_layout Plain Layout
32810
32811 \change_inserted -970929547 1515110811
32812 string
32813 \change_unchanged
32814
32815 \end_layout
32816
32817 \end_inset
32818
32819 ] The tag to be used for the wrapper tag around the inset,
32820  replacing 
32821 \begin_inset Quotes eld
32822 \end_inset
32823
32824
32825 \begin_inset Flex Code
32826 status collapsed
32827
32828 \begin_layout Plain Layout
32829
32830 \change_inserted -970929547 1515110842
32831 wrappertag
32832 \change_unchanged
32833
32834 \end_layout
32835
32836 \end_inset
32837
32838
32839 \begin_inset Quotes erd
32840 \end_inset
32841
32842  in the example above.
32843  The default is 
32844 \begin_inset Flex Code
32845 status collapsed
32846
32847 \begin_layout Plain Layout
32848
32849 \change_inserted -970929547 1515110811
32850 NONE
32851 \change_unchanged
32852
32853 \end_layout
32854
32855 \end_inset
32856
32857 ,
32858  indicating that there is no wrapper tag:
32859  tag and content are directly output without it.
32860 \change_inserted 1075283030 1597699929
32861
32862 \end_layout
32863
32864 \begin_layout Description
32865
32866 \change_inserted 1075283030 1597699929
32867 \begin_inset Flex Code
32868 status collapsed
32869
32870 \begin_layout Plain Layout
32871
32872 \change_inserted 1075283030 1597699932
32873 DocBookWrapperTagType
32874 \change_unchanged
32875
32876 \end_layout
32877
32878 \end_inset
32879
32880  [
32881 \begin_inset Flex Code
32882 status collapsed
32883
32884 \begin_layout Plain Layout
32885
32886 \change_inserted 1075283030 1597699929
32887 block,
32888  paragraph,
32889  inline
32890 \change_unchanged
32891
32892 \end_layout
32893
32894 \end_inset
32895
32896 ] The new-line policy for this tag,
32897  see Section
32898 \begin_inset space ~
32899 \end_inset
32900
32901
32902 \begin_inset CommandInset ref
32903 LatexCommand ref
32904 reference "subsec:DocBook-New-line-policy"
32905 plural "false"
32906 caps "false"
32907 noprefix "false"
32908
32909 \end_inset
32910
32911  for the details.
32912  
32913 \change_unchanged
32914
32915 \end_layout
32916
32917 \begin_layout Subsection
32918
32919 \change_inserted -970929547 1515110040
32920 Float DocBook
32921 \end_layout
32922
32923 \begin_layout Standard
32924
32925 \change_inserted -970929547 1496611700
32926 The DocBook output for floats too can be controlled by layout information.
32927  The output has the following form:
32928 \end_layout
32929
32930 \begin_layout LyX-Code
32931
32932 \change_inserted -970929547 1515109700
32933 <tag attr>
32934 \end_layout
32935
32936 \begin_layout LyX-Code
32937
32938 \change_inserted -970929547 1515110138
32939   Contents of the float as DocBook.
32940 \end_layout
32941
32942 \begin_layout LyX-Code
32943
32944 \change_inserted -970929547 1496610966
32945 </tag>
32946 \end_layout
32947
32948 \begin_layout Standard
32949
32950 \change_inserted -970929547 1496611715
32951 The caption,
32952  if there is one,
32953  is a separate inset and will be output as a title.
32954  
32955 \end_layout
32956
32957 \begin_layout Description
32958
32959 \change_inserted -970929547 1515110033
32960 \begin_inset Flex Code
32961 status collapsed
32962
32963 \begin_layout Plain Layout
32964
32965 \change_inserted -970929547 1515109702
32966 DocBookAttr
32967 \change_unchanged
32968
32969 \end_layout
32970
32971 \end_inset
32972
32973  [
32974 \begin_inset Flex Code
32975 status collapsed
32976
32977 \begin_layout Plain Layout
32978
32979 \change_inserted -970929547 1496610966
32980 string
32981 \change_unchanged
32982
32983 \end_layout
32984
32985 \end_inset
32986
32987 ] Specifies attribute information to be output with the main tag,
32988  replacing 
32989 \begin_inset Quotes eld
32990 \end_inset
32991
32992
32993 \begin_inset Flex Code
32994 status collapsed
32995
32996 \begin_layout Plain Layout
32997
32998 \change_inserted -970929547 1515110035
32999 attr
33000 \change_unchanged
33001
33002 \end_layout
33003
33004 \end_inset
33005
33006
33007 \begin_inset Quotes erd
33008 \end_inset
33009
33010  in the example above.
33011  This information can be used in further processing of the DocBook files.
33012  
33013 \end_layout
33014
33015 \begin_layout Description
33016
33017 \change_inserted -970929547 1515110157
33018 \begin_inset Flex Code
33019 status collapsed
33020
33021 \begin_layout Plain Layout
33022
33023 \change_inserted -970929547 1496611782
33024 DocBookTag
33025 \change_unchanged
33026
33027 \end_layout
33028
33029 \end_inset
33030
33031  [
33032 \begin_inset Flex Code
33033 status collapsed
33034
33035 \begin_layout Plain Layout
33036
33037 \change_inserted -970929547 1496610966
33038 string
33039 \change_unchanged
33040
33041 \end_layout
33042
33043 \end_inset
33044
33045 ] The tag to be used for this float,
33046  replacing 
33047 \begin_inset Quotes eld
33048 \end_inset
33049
33050
33051 \begin_inset Flex Code
33052 status collapsed
33053
33054 \begin_layout Plain Layout
33055
33056 \change_inserted -970929547 1496610966
33057 tag
33058 \change_unchanged
33059
33060 \end_layout
33061
33062 \end_inset
33063
33064
33065 \begin_inset Quotes erd
33066 \end_inset
33067
33068  in the example above.
33069  The default is the name of the float and always needs to be changed,
33070  as DocBook provides no generic float tag.
33071 \end_layout
33072
33073 \begin_layout Subsection
33074
33075 \change_inserted -970929547 1515110157
33076 Bibliography formatting
33077 \end_layout
33078
33079 \begin_layout Standard
33080
33081 \change_deleted 1075283030 1597699984
33082 The 
33083 \change_inserted 1075283030 1597699985
33084 Included 
33085 \change_inserted -970929547 1515110187
33086 bibliograph
33087 \change_deleted 1075283030 1597699987
33088 y
33089 \change_inserted 1075283030 1597699987
33090 ies
33091 \change_inserted -970929547 1515110187
33092  cannot be formatted:
33093  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file)
33094 \change_inserted 1075283030 1597700117
33095 ,
33096  using the 
33097 \begin_inset Flex Code
33098 status collapsed
33099
33100 \begin_layout Plain Layout
33101
33102 \change_inserted 1075283030 1597700120
33103 biblioentry
33104 \change_unchanged
33105
33106 \end_layout
33107
33108 \end_inset
33109
33110  tag
33111 \change_inserted -970929547 1515110187
33112 .
33113 \change_inserted 1075283030 1597700092
33114
33115 \end_layout
33116
33117 \begin_layout Standard
33118
33119 \change_inserted 1075283030 1597700112
33120 When the bibliographic entries are manually inserted into the 
33121 \change_deleted 34634807 1620057319
33122 LyX
33123 \change_inserted 34634807 1620057319
33124 \SpecialChar LyX
33125
33126 \change_inserted 1075283030 1597700112
33127  document as Bibliography Items,
33128  the user deals with formatting 
33129 \change_unchanged
33130 them
33131 \change_inserted 1075283030 1597700112
33132 self:
33133  there is no attempt of parsing what the user wrote,
33134  the string is directly used (with the 
33135 \begin_inset Flex Code
33136 status collapsed
33137
33138 \begin_layout Plain Layout
33139
33140 \change_inserted 1075283030 1597700076
33141 bibliomixed
33142 \change_unchanged
33143
33144 \end_layout
33145
33146 \end_inset
33147
33148  tag).
33149  
33150 \change_unchanged
33151
33152 \end_layout
33153
33154 \begin_layout Chapter
33155 Including External Material
33156 \begin_inset CommandInset label
33157 LatexCommand label
33158 name "chap:Including-External-Material"
33159
33160 \end_inset
33161
33162
33163 \end_layout
33164
33165 \begin_layout Standard
33166 \begin_inset Box Shadowbox
33167 position "t"
33168 hor_pos "c"
33169 has_inner_box 1
33170 inner_pos "t"
33171 use_parbox 0
33172 use_makebox 0
33173 width "100col%"
33174 special "none"
33175 height "1in"
33176 height_special "totalheight"
33177 thickness "0.4pt"
33178 separation "3pt"
33179 shadowsize "4pt"
33180 framecolor "black"
33181 backgroundcolor "none"
33182 status open
33183
33184 \begin_layout Plain Layout
33185 WARNING:
33186  This portion of the documentation has not been updated for some time.
33187  We certainly hope that it is still accurate,
33188  but there are no guarantees.
33189 \end_layout
33190
33191 \end_inset
33192
33193
33194 \end_layout
33195
33196 \begin_layout Standard
33197 The use of material from sources external to \SpecialChar LyX
33198  is covered in detail in the 
33199 \emph on
33200 Embedded Objects
33201 \emph default
33202  manual.
33203  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
33204 \end_layout
33205
33206 \begin_layout Section
33207 How does it work?
33208 \end_layout
33209
33210 \begin_layout Standard
33211 The external material feature is based on the concept of a 
33212 \emph on
33213 template
33214 \emph default
33215 .
33216  A template is a specification of how \SpecialChar LyX
33217  should interface with a certain kind of material.
33218  As bundled,
33219  \SpecialChar LyX
33220  comes with predefined templates for Xfig figures,
33221  various raster format images,
33222  chess diagrams,
33223  and LilyPond music notation.
33224  You can check the actual list by using the menu 
33225 \begin_inset Flex Noun
33226 status collapsed
33227
33228 \begin_layout Plain Layout
33229 Insert\SpecialChar menuseparator
33230 File\SpecialChar menuseparator
33231 External Material
33232 \end_layout
33233
33234 \end_inset
33235
33236 .
33237  Furthermore,
33238  it is possible to roll your own template to support a specific kind of material.
33239  Later we'll describe in more detail what is involved,
33240  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
33241  version.
33242 \end_layout
33243
33244 \begin_layout Standard
33245 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.
33246  For example,
33247  consider the case of a figure produced with 
33248 \begin_inset Flex Code
33249 status collapsed
33250
33251 \begin_layout Plain Layout
33252 Xfig
33253 \end_layout
33254
33255 \end_inset
33256
33257 .
33258  The Xfig application itself works on an original file with the 
33259 \begin_inset Flex Code
33260 status collapsed
33261
33262 \begin_layout Plain Layout
33263 .fig
33264 \end_layout
33265
33266 \end_inset
33267
33268  extension.
33269  Within Xfig,
33270  you create and change your figure,
33271  and when you are done,
33272  you save the 
33273 \begin_inset Flex Code
33274 status collapsed
33275
33276 \begin_layout Plain Layout
33277 fig
33278 \end_layout
33279
33280 \end_inset
33281
33282 -file.
33283  When you want to include the figure in your document,
33284  you invoke 
33285 \begin_inset Flex Code
33286 status collapsed
33287
33288 \begin_layout Plain Layout
33289 transfig
33290 \end_layout
33291
33292 \end_inset
33293
33294  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
33295  file.
33296  In this case,
33297  the 
33298 \begin_inset Flex Code
33299 status collapsed
33300
33301 \begin_layout Plain Layout
33302 .fig
33303 \end_layout
33304
33305 \end_inset
33306
33307  file is the original file,
33308  and the PostScript file is the produced file.
33309 \end_layout
33310
33311 \begin_layout Standard
33312 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
33313  Furthermore,
33314  it provides us with the flexibility that is needed to support multiple export formats.
33315  For instance,
33316  in the case of a plain text file,
33317  it is not exactly an award-winning idea to include the figure as raw PostScript.
33318  Instead,
33319  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.
33320  The external material management allows you to do this,
33321  because it is parametrized on the different export formats that \SpecialChar LyX
33322  supports.
33323 \end_layout
33324
33325 \begin_layout Standard
33326 Besides supporting the production of different products according to the exported format,
33327  it supports tight integration with editing and viewing applications.
33328  In the case of an Xfig figure,
33329  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
33330 ,
33331  and also preview the produced PostScript file with Ghostview with another click.
33332  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
33333  In this way,
33334  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
33335  and ultimately be more productive.
33336 \end_layout
33337
33338 \begin_layout Section
33339 The external template configuration files
33340 \end_layout
33341
33342 \begin_layout Standard
33343 It is relatively easy to add custom external template definitions to \SpecialChar LyX
33344 .
33345  However,
33346  be aware that doing this in an careless manner most probably 
33347 \emph on
33348 will
33349 \emph default
33350  introduce an easily exploitable security hole.
33351  So before you do this,
33352  please read the discussion about security in 
33353 \begin_inset CommandInset ref
33354 LatexCommand ref
33355 reference "sec:Security-discussion"
33356
33357 \end_inset
33358
33359 .
33360 \end_layout
33361
33362 \begin_layout Standard
33363 Having said that,
33364  we encourage you to submit any interesting templates that you create.
33365  
33366 \end_layout
33367
33368 \begin_layout Standard
33369 The external templates are defined in the 
33370 \begin_inset Flex Code
33371 status collapsed
33372
33373 \begin_layout Plain Layout
33374 *.xtemplate
33375 \end_layout
33376
33377 \end_inset
33378
33379  files that are stored in the 
33380 \begin_inset Flex Code
33381 status collapsed
33382
33383 \begin_layout Plain Layout
33384 LyXDir/lib/xtemplates/
33385 \end_layout
33386
33387 \end_inset
33388
33389  directory.
33390  Each template is defined in a file of its own.
33391  You can place your own templates in 
33392 \begin_inset Flex Code
33393 status collapsed
33394
33395 \begin_layout Plain Layout
33396 UserDir/xtemplates/
33397 \end_layout
33398
33399 \end_inset
33400
33401  or copy existing templates to that directory in order to modify them.
33402 \end_layout
33403
33404 \begin_layout Standard
33405 A typical template looks like this:
33406 \end_layout
33407
33408 \begin_layout LyX-Code
33409 Template XFig
33410 \end_layout
33411
33412 \begin_layout LyX-Code
33413 GuiName "XFig:
33414  $$AbsOrRelPathParent$$Basename"
33415 \end_layout
33416
33417 \begin_layout LyX-Code
33418 HelpText
33419 \end_layout
33420
33421 \begin_layout LyX-Code
33422 An XFig figure.
33423 \end_layout
33424
33425 \begin_layout LyX-Code
33426 HelpTextEnd
33427 \end_layout
33428
33429 \begin_layout LyX-Code
33430 InputFormat fig
33431 \end_layout
33432
33433 \begin_layout LyX-Code
33434 FileFilter "*.fig"
33435 \end_layout
33436
33437 \begin_layout LyX-Code
33438 AutomaticProduction true
33439 \end_layout
33440
33441 \begin_layout LyX-Code
33442 Transform Rotate
33443 \end_layout
33444
33445 \begin_layout LyX-Code
33446 Transform Resize
33447 \end_layout
33448
33449 \begin_layout LyX-Code
33450 Format LaTeX
33451 \end_layout
33452
33453 \begin_layout LyX-Code
33454 TransformCommand Rotate RotationLatexCommand
33455 \end_layout
33456
33457 \begin_layout LyX-Code
33458 TransformCommand Resize ResizeLatexCommand
33459 \end_layout
33460
33461 \begin_layout LyX-Code
33462 Product "$$RotateFront$$ResizeFront
33463 \end_layout
33464
33465 \begin_layout LyX-Code
33466          
33467 \backslash
33468
33469 \backslash
33470 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
33471 \end_layout
33472
33473 \begin_layout LyX-Code
33474          $$ResizeBack$$RotateBack"
33475 \end_layout
33476
33477 \begin_layout LyX-Code
33478 UpdateFormat pstex
33479 \end_layout
33480
33481 \begin_layout LyX-Code
33482 UpdateResult "$$AbsPath$$Basename.pstex_t"
33483 \end_layout
33484
33485 \begin_layout LyX-Code
33486 Requirement "graphicx"
33487 \end_layout
33488
33489 \begin_layout LyX-Code
33490 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
33491 \end_layout
33492
33493 \begin_layout LyX-Code
33494 ReferencedFile latex "$$AbsPath$$Basename.eps"
33495 \end_layout
33496
33497 \begin_layout LyX-Code
33498 ReferencedFile dvi "$$AbsPath$$Basename.eps"
33499 \end_layout
33500
33501 \begin_layout LyX-Code
33502 FormatEnd
33503 \end_layout
33504
33505 \begin_layout LyX-Code
33506 Format PDFLaTeX
33507 \end_layout
33508
33509 \begin_layout LyX-Code
33510 TransformCommand Rotate RotationLatexCommand
33511 \end_layout
33512
33513 \begin_layout LyX-Code
33514 TransformCommand Resize ResizeLatexCommand
33515 \end_layout
33516
33517 \begin_layout LyX-Code
33518 Product "$$RotateFront$$ResizeFront
33519 \end_layout
33520
33521 \begin_layout LyX-Code
33522          
33523 \backslash
33524
33525 \backslash
33526 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
33527 \end_layout
33528
33529 \begin_layout LyX-Code
33530          $$ResizeBack$$RotateBack"
33531 \end_layout
33532
33533 \begin_layout LyX-Code
33534 UpdateFormat pdftex
33535 \end_layout
33536
33537 \begin_layout LyX-Code
33538 UpdateResult "$$AbsPath$$Basename.pdftex_t"
33539 \end_layout
33540
33541 \begin_layout LyX-Code
33542 Requirement "graphicx"
33543 \end_layout
33544
33545 \begin_layout LyX-Code
33546 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
33547 \end_layout
33548
33549 \begin_layout LyX-Code
33550 ReferencedFile latex "$$AbsPath$$Basename.pdf"
33551 \end_layout
33552
33553 \begin_layout LyX-Code
33554 FormatEnd
33555 \end_layout
33556
33557 \begin_layout LyX-Code
33558 Format Ascii
33559 \end_layout
33560
33561 \begin_layout LyX-Code
33562 Product "[XFig:
33563  $$FName]"
33564 \end_layout
33565
33566 \begin_layout LyX-Code
33567 FormatEnd
33568 \end_layout
33569
33570 \begin_layout LyX-Code
33571 Format DocBook
33572 \end_layout
33573
33574 \begin_layout LyX-Code
33575 Product "<graphic fileref=
33576 \backslash
33577 "$$AbsOrRelPathMaster$$Basename.eps
33578 \backslash
33579 ">
33580 \end_layout
33581
33582 \begin_layout LyX-Code
33583          </graphic>"
33584 \end_layout
33585
33586 \begin_layout LyX-Code
33587 UpdateFormat eps
33588 \end_layout
33589
33590 \begin_layout LyX-Code
33591 UpdateResult "$$AbsPath$$Basename.eps"
33592 \end_layout
33593
33594 \begin_layout LyX-Code
33595 ReferencedFile docbook "$$AbsPath$$Basename.eps"
33596 \end_layout
33597
33598 \begin_layout LyX-Code
33599 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
33600 \end_layout
33601
33602 \begin_layout LyX-Code
33603 FormatEnd
33604 \end_layout
33605
33606 \begin_layout LyX-Code
33607 TemplateEnd
33608 \end_layout
33609
33610 \begin_layout Standard
33611 As you can see,
33612  the template is enclosed in 
33613 \begin_inset Flex Code
33614 status collapsed
33615
33616 \begin_layout Plain Layout
33617 Template
33618 \end_layout
33619
33620 \end_inset
33621
33622  \SpecialChar ldots
33623  
33624 \begin_inset Flex Code
33625 status collapsed
33626
33627 \begin_layout Plain Layout
33628 TemplateEnd
33629 \end_layout
33630
33631 \end_inset
33632
33633 .
33634  It contains a header specifying some general settings and,
33635  for each supported primary document file format,
33636  a section 
33637 \begin_inset Flex Code
33638 status collapsed
33639
33640 \begin_layout Plain Layout
33641 Format
33642 \end_layout
33643
33644 \end_inset
33645
33646  \SpecialChar ldots
33647  
33648 \begin_inset Flex Code
33649 status collapsed
33650
33651 \begin_layout Plain Layout
33652 FormatEnd
33653 \end_layout
33654
33655 \end_inset
33656
33657 .
33658 \end_layout
33659
33660 \begin_layout Subsection
33661 The template header
33662 \end_layout
33663
33664 \begin_layout Description
33665 \begin_inset Flex Code
33666 status collapsed
33667
33668 \begin_layout Plain Layout
33669 AutomaticProduction
33670 \begin_inset space ~
33671 \end_inset
33672
33673 true|false
33674 \end_layout
33675
33676 \end_inset
33677
33678  Whether the file represented by the template must be generated by \SpecialChar LyX
33679 .
33680  This command must occur exactly once.
33681 \end_layout
33682
33683 \begin_layout Description
33684 \begin_inset Flex Code
33685 status collapsed
33686
33687 \begin_layout Plain Layout
33688 FileFilter
33689 \begin_inset space ~
33690 \end_inset
33691
33692 <pattern>
33693 \end_layout
33694
33695 \end_inset
33696
33697  A glob pattern that is used in the file dialog to filter out the desired files.
33698  If there is more than one possible file extension (e.
33699 \begin_inset space \thinspace{}
33700 \end_inset
33701
33702 g.
33703 \begin_inset space \space{}
33704 \end_inset
33705
33706 tgif has 
33707 \begin_inset Flex Code
33708 status collapsed
33709
33710 \begin_layout Plain Layout
33711 .obj
33712 \end_layout
33713
33714 \end_inset
33715
33716  and 
33717 \begin_inset Flex Code
33718 status collapsed
33719
33720 \begin_layout Plain Layout
33721 .tgo
33722 \end_layout
33723
33724 \end_inset
33725
33726 ),
33727  use something like 
33728 \begin_inset Flex Code
33729 status collapsed
33730
33731 \begin_layout Plain Layout
33732 "*.{obj,tgo}"
33733 \end_layout
33734
33735 \end_inset
33736
33737 .
33738  This command must occur exactly once.
33739 \end_layout
33740
33741 \begin_layout Description
33742 \begin_inset Flex Code
33743 status collapsed
33744
33745 \begin_layout Plain Layout
33746 GuiName
33747 \begin_inset space ~
33748 \end_inset
33749
33750 <guiname>
33751 \end_layout
33752
33753 \end_inset
33754
33755  The text that is displayed on the button.
33756  This command must occur exactly once.
33757 \end_layout
33758
33759 \begin_layout Description
33760 \begin_inset Flex Code
33761 status collapsed
33762
33763 \begin_layout Plain Layout
33764 HelpText
33765 \begin_inset space ~
33766 \end_inset
33767
33768 <text>
33769 \begin_inset space ~
33770 \end_inset
33771
33772 HelpTextEnd
33773 \end_layout
33774
33775 \end_inset
33776
33777  The help text that is used in the External dialog.
33778  Provide enough information to explain to the user just what the template can provide him with.
33779  This command must occur exactly once.
33780 \end_layout
33781
33782 \begin_layout Description
33783 \begin_inset Flex Code
33784 status collapsed
33785
33786 \begin_layout Plain Layout
33787 InputFormat
33788 \begin_inset space ~
33789 \end_inset
33790
33791 <format>
33792 \end_layout
33793
33794 \end_inset
33795
33796  The file format of the original file.
33797  This must be the name of a format that is known to \SpecialChar LyX
33798  (see 
33799 \begin_inset CommandInset ref
33800 LatexCommand ref
33801 reference "sec:Formats"
33802
33803 \end_inset
33804
33805 ).
33806  Use 
33807 \begin_inset Quotes eld
33808 \end_inset
33809
33810
33811 \begin_inset Flex Code
33812 status collapsed
33813
33814 \begin_layout Plain Layout
33815 *
33816 \end_layout
33817
33818 \end_inset
33819
33820
33821 \begin_inset Quotes erd
33822 \end_inset
33823
33824  if the template can handle original files of more than one format.
33825  \SpecialChar LyX
33826  will attempt to interrogate the file itself in order to deduce its format in this case.
33827  This command must occur exactly once.
33828 \end_layout
33829
33830 \begin_layout Description
33831 \begin_inset Flex Code
33832 status collapsed
33833
33834 \begin_layout Plain Layout
33835 Template
33836 \begin_inset space ~
33837 \end_inset
33838
33839 <id>
33840 \end_layout
33841
33842 \end_inset
33843
33844  A unique name for the template.
33845  It must not contain substitution macros (see below).
33846 \end_layout
33847
33848 \begin_layout Description
33849 \begin_inset Flex Code
33850 status collapsed
33851
33852 \begin_layout Plain Layout
33853 Transform
33854 \begin_inset space ~
33855 \end_inset
33856
33857 Rotate|Resize|Clip|Extra
33858 \end_layout
33859
33860 \end_inset
33861
33862  This command specifies which transformations are supported by this template.
33863  It may occur zero or more times.
33864  This command enables the corresponding tabs in the external dialog.
33865  Each 
33866 \begin_inset Flex Code
33867 status collapsed
33868
33869 \begin_layout Plain Layout
33870 Transform
33871 \end_layout
33872
33873 \end_inset
33874
33875  command must have either a corresponding 
33876 \begin_inset Flex Code
33877 status collapsed
33878
33879 \begin_layout Plain Layout
33880 TransformCommand
33881 \end_layout
33882
33883 \end_inset
33884
33885  or a 
33886 \begin_inset Flex Code
33887 status collapsed
33888
33889 \begin_layout Plain Layout
33890 TransformOption
33891 \end_layout
33892
33893 \end_inset
33894
33895  command in the 
33896 \begin_inset Flex Code
33897 status collapsed
33898
33899 \begin_layout Plain Layout
33900 Format
33901 \end_layout
33902
33903 \end_inset
33904
33905  section.
33906  Otherwise the transformation will not be supported by that format.
33907 \end_layout
33908
33909 \begin_layout Subsection
33910 The Format section
33911 \end_layout
33912
33913 \begin_layout Description
33914 \begin_inset Flex Code
33915 status collapsed
33916
33917 \begin_layout Plain Layout
33918 Format
33919 \begin_inset space ~
33920 \end_inset
33921
33922 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
33923 \end_layout
33924
33925 \end_inset
33926
33927  The primary document file format that this format definition is for.
33928  Not every template has a sensible representation in all document file formats.
33929  Please define nevertheless a 
33930 \begin_inset Flex Code
33931 status collapsed
33932
33933 \begin_layout Plain Layout
33934 Format
33935 \end_layout
33936
33937 \end_inset
33938
33939  section for all templates.
33940  Use a dummy text when no representation is available.
33941  Then you can at least see a reference to the external material in the exported document.
33942 \end_layout
33943
33944 \begin_layout Description
33945 \begin_inset Flex Code
33946 status collapsed
33947
33948 \begin_layout Plain Layout
33949 Option
33950 \begin_inset space ~
33951 \end_inset
33952
33953 <name>
33954 \begin_inset space ~
33955 \end_inset
33956
33957 <value>
33958 \end_layout
33959
33960 \end_inset
33961
33962  This command defines an additional macro 
33963 \begin_inset Flex Code
33964 status collapsed
33965
33966 \begin_layout Plain Layout
33967 $$<name>
33968 \end_layout
33969
33970 \end_inset
33971
33972  for substitution in 
33973 \begin_inset Flex Code
33974 status collapsed
33975
33976 \begin_layout Plain Layout
33977 Product
33978 \end_layout
33979
33980 \end_inset
33981
33982 .
33983  
33984 \begin_inset Flex Code
33985 status collapsed
33986
33987 \begin_layout Plain Layout
33988 <value>
33989 \end_layout
33990
33991 \end_inset
33992
33993  itself may contain substitution macros.
33994  The advantage over using 
33995 \begin_inset Flex Code
33996 status collapsed
33997
33998 \begin_layout Plain Layout
33999 <value>
34000 \end_layout
34001
34002 \end_inset
34003
34004  directly in 
34005 \begin_inset Flex Code
34006 status collapsed
34007
34008 \begin_layout Plain Layout
34009 Product
34010 \end_layout
34011
34012 \end_inset
34013
34014  is that the substituted value of 
34015 \begin_inset Flex Code
34016 status collapsed
34017
34018 \begin_layout Plain Layout
34019 $$<name>
34020 \end_layout
34021
34022 \end_inset
34023
34024  is sanitized so that it is a valid optional argument in the document format.
34025  This command may occur zero or more times.
34026 \end_layout
34027
34028 \begin_layout Description
34029 \begin_inset Flex Code
34030 status collapsed
34031
34032 \begin_layout Plain Layout
34033 Product
34034 \begin_inset space ~
34035 \end_inset
34036
34037 <text>
34038 \end_layout
34039
34040 \end_inset
34041
34042  The text that is inserted in the exported document.
34043  This is actually the most important command and can be quite complex.
34044  This command must occur exactly once.
34045 \end_layout
34046
34047 \begin_layout Description
34048 \begin_inset Flex Code
34049 status collapsed
34050
34051 \begin_layout Plain Layout
34052 Preamble
34053 \begin_inset space ~
34054 \end_inset
34055
34056 <name>
34057 \end_layout
34058
34059 \end_inset
34060
34061  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
34062  preamble.
34063  It has to be defined using 
34064 \begin_inset Flex Code
34065 status collapsed
34066
34067 \begin_layout Plain Layout
34068 PreambleDef
34069 \end_layout
34070
34071 \end_inset
34072
34073  \SpecialChar ldots
34074  
34075 \begin_inset Flex Code
34076 status collapsed
34077
34078 \begin_layout Plain Layout
34079 PreambleDefEnd
34080 \end_layout
34081
34082 \end_inset
34083
34084 .
34085  This command may occur zero or more times.
34086 \end_layout
34087
34088 \begin_layout Description
34089 \begin_inset Flex Code
34090 status collapsed
34091
34092 \begin_layout Plain Layout
34093 ReferencedFile
34094 \begin_inset space ~
34095 \end_inset
34096
34097 <format>
34098 \begin_inset space ~
34099 \end_inset
34100
34101 <filename>
34102 \end_layout
34103
34104 \end_inset
34105
34106  This command denotes files that are created by the conversion process and are needed for a particular export format.
34107  If the filename is relative,
34108  it is interpreted relative to the master document.
34109  This command may be given zero or more times.
34110 \end_layout
34111
34112 \begin_layout Description
34113 \begin_inset Flex Code
34114 status collapsed
34115
34116 \begin_layout Plain Layout
34117 Requirement
34118 \begin_inset space ~
34119 \end_inset
34120
34121 <package>
34122 \end_layout
34123
34124 \end_inset
34125
34126  The name of a required \SpecialChar LaTeX
34127  package.
34128  The package is included via 
34129 \begin_inset Flex Code
34130 status collapsed
34131
34132 \begin_layout Plain Layout
34133
34134 \backslash
34135 usepackage{}
34136 \end_layout
34137
34138 \end_inset
34139
34140  in the \SpecialChar LaTeX
34141  preamble.
34142  This command may occur zero or more times.
34143 \end_layout
34144
34145 \begin_layout Description
34146 \begin_inset Flex Code
34147 status collapsed
34148
34149 \begin_layout Plain Layout
34150 TransformCommand
34151 \begin_inset space ~
34152 \end_inset
34153
34154 Rotate
34155 \begin_inset space ~
34156 \end_inset
34157
34158 RotationLatexCommand
34159 \end_layout
34160
34161 \end_inset
34162
34163  This command specifies that the built in \SpecialChar LaTeX
34164  command should be used for rotation.
34165  This command may occur once or not at all.
34166 \end_layout
34167
34168 \begin_layout Description
34169 \begin_inset Flex Code
34170 status collapsed
34171
34172 \begin_layout Plain Layout
34173 TransformCommand
34174 \begin_inset space ~
34175 \end_inset
34176
34177 Resize
34178 \begin_inset space ~
34179 \end_inset
34180
34181 ResizeLatexCommand
34182 \end_layout
34183
34184 \end_inset
34185
34186  This command specifies that the built in \SpecialChar LaTeX
34187  command should be used for resizing.
34188  This command may occur once or not at all.
34189 \end_layout
34190
34191 \begin_layout Description
34192 \begin_inset Flex Code
34193 status collapsed
34194
34195 \begin_layout Plain Layout
34196 TransformOption
34197 \begin_inset space ~
34198 \end_inset
34199
34200 Rotate
34201 \begin_inset space ~
34202 \end_inset
34203
34204 RotationLatexOption
34205 \end_layout
34206
34207 \end_inset
34208
34209  This command specifies that rotation is done via an optional argument.
34210  This command may occur once or not at all.
34211 \end_layout
34212
34213 \begin_layout Description
34214 \begin_inset Flex Code
34215 status collapsed
34216
34217 \begin_layout Plain Layout
34218 TransformOption
34219 \begin_inset space ~
34220 \end_inset
34221
34222 Resize
34223 \begin_inset space ~
34224 \end_inset
34225
34226 ResizeLatexOption
34227 \end_layout
34228
34229 \end_inset
34230
34231  This command specifies that resizing is done via an optional argument.
34232  This command may occur once or not at all.
34233 \end_layout
34234
34235 \begin_layout Description
34236 \begin_inset Flex Code
34237 status collapsed
34238
34239 \begin_layout Plain Layout
34240 TransformOption
34241 \begin_inset space ~
34242 \end_inset
34243
34244 Clip
34245 \begin_inset space ~
34246 \end_inset
34247
34248 ClipLatexOption
34249 \end_layout
34250
34251 \end_inset
34252
34253  This command specifies that clipping is done via an optional argument.
34254  This command may occur once or not at all.
34255 \end_layout
34256
34257 \begin_layout Description
34258 \begin_inset Flex Code
34259 status collapsed
34260
34261 \begin_layout Plain Layout
34262 TransformOption
34263 \begin_inset space ~
34264 \end_inset
34265
34266 Extra
34267 \begin_inset space ~
34268 \end_inset
34269
34270 ExtraLatexOption
34271 \end_layout
34272
34273 \end_inset
34274
34275  This command specifies that an extra optional argument is used.
34276  This command may occur once or not at all.
34277 \end_layout
34278
34279 \begin_layout Description
34280 \begin_inset Flex Code
34281 status collapsed
34282
34283 \begin_layout Plain Layout
34284 UpdateFormat
34285 \begin_inset space ~
34286 \end_inset
34287
34288 <format>
34289 \end_layout
34290
34291 \end_inset
34292
34293  The file format of the converted file.
34294  This must be the name of a format that is known to \SpecialChar LyX
34295  (see the 
34296 \begin_inset Flex Noun
34297 status collapsed
34298
34299 \begin_layout Plain Layout
34300 Tools\SpecialChar menuseparator
34301 Preferences\SpecialChar menuseparator
34302 File Handling\SpecialChar menuseparator
34303 File Format
34304 \end_layout
34305
34306 \end_inset
34307
34308  dialog).
34309  This command must occur exactly once.
34310  If the resulting file format is PDF,
34311  you need to specify the format 
34312 \begin_inset Flex Code
34313 status collapsed
34314
34315 \begin_layout Plain Layout
34316 pdf6
34317 \end_layout
34318
34319 \end_inset
34320
34321 .
34322  This is the PDF format used for including graphics.
34323  The other defined PDF formats are for document export.
34324 \end_layout
34325
34326 \begin_layout Description
34327 \begin_inset Flex Code
34328 status collapsed
34329
34330 \begin_layout Plain Layout
34331 UpdateResult
34332 \begin_inset space ~
34333 \end_inset
34334
34335 <filename>
34336 \end_layout
34337
34338 \end_inset
34339
34340  The file name of the converted file.
34341  The file name must be absolute.
34342  This command must occur exactly once.
34343 \end_layout
34344
34345 \begin_layout Subsection
34346 Preamble definitions
34347 \end_layout
34348
34349 \begin_layout Standard
34350 The external template configuration file may contain additional preamble definitions enclosed by 
34351 \begin_inset Flex Code
34352 status collapsed
34353
34354 \begin_layout Plain Layout
34355 PreambleDef
34356 \end_layout
34357
34358 \end_inset
34359
34360  \SpecialChar ldots
34361  
34362 \begin_inset Flex Code
34363 status collapsed
34364
34365 \begin_layout Plain Layout
34366 PreambleDefEnd
34367 \end_layout
34368
34369 \end_inset
34370
34371 .
34372  They can be used by the templates in the 
34373 \begin_inset Flex Code
34374 status collapsed
34375
34376 \begin_layout Plain Layout
34377 Format
34378 \end_layout
34379
34380 \end_inset
34381
34382  section.
34383 \end_layout
34384
34385 \begin_layout Section
34386 The substitution mechanism
34387 \end_layout
34388
34389 \begin_layout Standard
34390 When the external material facility invokes an external program,
34391  it is done on the basis of a command defined in the template configuration file.
34392  These commands can contain various macros that are expanded before execution.
34393  Execution always take place in the directory of the containing document.
34394 \end_layout
34395
34396 \begin_layout Standard
34397 Also,
34398  whenever external material is to be displayed,
34399  the name will be produced by the substitution mechanism,
34400  and most other commands in the template definition support substitution as well.
34401 \end_layout
34402
34403 \begin_layout Standard
34404 The available macros are the following:
34405 \end_layout
34406
34407 \begin_layout Description
34408 \begin_inset Flex Code
34409 status collapsed
34410
34411 \begin_layout Plain Layout
34412 $$AbsOrRelPathMaster
34413 \end_layout
34414
34415 \end_inset
34416
34417  The file path,
34418  absolute or relative to the master \SpecialChar LyX
34419  document.
34420 \end_layout
34421
34422 \begin_layout Description
34423 \begin_inset Flex Code
34424 status collapsed
34425
34426 \begin_layout Plain Layout
34427 $$AbsOrRelPathParent
34428 \end_layout
34429
34430 \end_inset
34431
34432  The file path,
34433  absolute or relative to the \SpecialChar LyX
34434  document.
34435 \end_layout
34436
34437 \begin_layout Description
34438 \begin_inset Flex Code
34439 status collapsed
34440
34441 \begin_layout Plain Layout
34442 $$AbsPath
34443 \end_layout
34444
34445 \end_inset
34446
34447  The absolute file path.
34448 \end_layout
34449
34450 \begin_layout Description
34451 \begin_inset Flex Code
34452 status collapsed
34453
34454 \begin_layout Plain Layout
34455 $$Basename
34456 \end_layout
34457
34458 \end_inset
34459
34460  The filename without path and without the extension.
34461 \end_layout
34462
34463 \begin_layout Description
34464 \begin_inset Flex Code
34465 status collapsed
34466
34467 \begin_layout Plain Layout
34468 $$Contents(
34469 \begin_inset Quotes eld
34470 \end_inset
34471
34472 filename.ext
34473 \begin_inset Quotes erd
34474 \end_inset
34475
34476 )
34477 \end_layout
34478
34479 \end_inset
34480
34481  This macro will expand to the contents of the file with the name 
34482 \begin_inset Flex Code
34483 status collapsed
34484
34485 \begin_layout Plain Layout
34486 filename.ext
34487 \end_layout
34488
34489 \end_inset
34490
34491 .
34492 \end_layout
34493
34494 \begin_layout Description
34495 \begin_inset Flex Code
34496 status collapsed
34497
34498 \begin_layout Plain Layout
34499 $$Extension
34500 \end_layout
34501
34502 \end_inset
34503
34504  The file extension (including the dot).
34505 \end_layout
34506
34507 \begin_layout Description
34508 \begin_inset Flex Code
34509 status collapsed
34510
34511 \begin_layout Plain Layout
34512 $$pngOrjpg
34513 \end_layout
34514
34515 \end_inset
34516
34517  This will be the string 
34518 \begin_inset Quotes eld
34519 \end_inset
34520
34521 jpg
34522 \begin_inset Quotes erd
34523 \end_inset
34524
34525  if the file is in JPEG format,
34526  otherwise it will be the string 
34527 \begin_inset Quotes eld
34528 \end_inset
34529
34530 png
34531 \begin_inset Quotes erd
34532 \end_inset
34533
34534 .
34535  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
34536  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
34537  output format.
34538 \end_layout
34539
34540 \begin_layout Description
34541 \begin_inset Flex Code
34542 status collapsed
34543
34544 \begin_layout Plain Layout
34545 $$FName
34546 \end_layout
34547
34548 \end_inset
34549
34550  The filename of the file specified in the external material dialog.
34551  This is either an absolute name,
34552  or it is relative to the \SpecialChar LyX
34553  document.
34554 \end_layout
34555
34556 \begin_layout Description
34557 \begin_inset Flex Code
34558 status collapsed
34559
34560 \begin_layout Plain Layout
34561 $$FPath
34562 \end_layout
34563
34564 \end_inset
34565
34566  The path part of 
34567 \begin_inset Flex Code
34568 status collapsed
34569
34570 \begin_layout Plain Layout
34571 $$FName
34572 \end_layout
34573
34574 \end_inset
34575
34576  (absolute name or relative to the \SpecialChar LyX
34577  document).
34578 \end_layout
34579
34580 \begin_layout Description
34581 \begin_inset Flex Code
34582 status collapsed
34583
34584 \begin_layout Plain Layout
34585 $$RelPathMaster
34586 \end_layout
34587
34588 \end_inset
34589
34590  The file path,
34591  relative to the master \SpecialChar LyX
34592  document.
34593 \end_layout
34594
34595 \begin_layout Description
34596 \begin_inset Flex Code
34597 status collapsed
34598
34599 \begin_layout Plain Layout
34600 $$RelPathParent
34601 \end_layout
34602
34603 \end_inset
34604
34605  The file path,
34606  relative to the \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 $$Sysdir
34616 \end_layout
34617
34618 \end_inset
34619
34620  This macro will expand to the absolute path of the system directory.
34621  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
34622 .
34623 \end_layout
34624
34625 \begin_layout Description
34626 \begin_inset Flex Code
34627 status collapsed
34628
34629 \begin_layout Plain Layout
34630 $$Tempname
34631 \end_layout
34632
34633 \end_inset
34634
34635  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
34636  or the external material insertion deleted.
34637 \end_layout
34638
34639 \begin_layout Standard
34640 All path macros contain a trailing directory separator,
34641  so you can construct e.
34642 \begin_inset space \thinspace{}
34643 \end_inset
34644
34645 g.
34646 \begin_inset space \space{}
34647 \end_inset
34648
34649 the absolute filename with 
34650 \begin_inset Flex Code
34651 status collapsed
34652
34653 \begin_layout Plain Layout
34654 $$AbsPath$$Basename$$Extension
34655 \end_layout
34656
34657 \end_inset
34658
34659 .
34660 \end_layout
34661
34662 \begin_layout Standard
34663 The macros above are substituted in all commands unless otherwise noted.
34664  The command 
34665 \begin_inset Flex Code
34666 status collapsed
34667
34668 \begin_layout Plain Layout
34669 Product
34670 \end_layout
34671
34672 \end_inset
34673
34674  supports additionally the following substitutions if they are enabled by the 
34675 \begin_inset Flex Code
34676 status collapsed
34677
34678 \begin_layout Plain Layout
34679 Transform
34680 \end_layout
34681
34682 \end_inset
34683
34684  and 
34685 \begin_inset Flex Code
34686 status collapsed
34687
34688 \begin_layout Plain Layout
34689 TransformCommand
34690 \end_layout
34691
34692 \end_inset
34693
34694  commands:
34695 \end_layout
34696
34697 \begin_layout Description
34698 \begin_inset Flex Code
34699 status collapsed
34700
34701 \begin_layout Plain Layout
34702 $$ResizeFront
34703 \end_layout
34704
34705 \end_inset
34706
34707  The front part of the resize command.
34708 \end_layout
34709
34710 \begin_layout Description
34711 \begin_inset Flex Code
34712 status collapsed
34713
34714 \begin_layout Plain Layout
34715 $$ResizeBack
34716 \end_layout
34717
34718 \end_inset
34719
34720  The back part of the resize command.
34721 \end_layout
34722
34723 \begin_layout Description
34724 \begin_inset Flex Code
34725 status collapsed
34726
34727 \begin_layout Plain Layout
34728 $$RotateFront
34729 \end_layout
34730
34731 \end_inset
34732
34733  The front part of the rotation command.
34734 \end_layout
34735
34736 \begin_layout Description
34737 \begin_inset Flex Code
34738 status collapsed
34739
34740 \begin_layout Plain Layout
34741 $$RotateBack
34742 \end_layout
34743
34744 \end_inset
34745
34746  The back part of the rotation command.
34747 \end_layout
34748
34749 \begin_layout Standard
34750 The value string of the 
34751 \begin_inset Flex Code
34752 status collapsed
34753
34754 \begin_layout Plain Layout
34755 Option
34756 \end_layout
34757
34758 \end_inset
34759
34760  command supports additionally the following substitutions if they are enabled by the 
34761 \begin_inset Flex Code
34762 status collapsed
34763
34764 \begin_layout Plain Layout
34765 Transform
34766 \end_layout
34767
34768 \end_inset
34769
34770  and 
34771 \begin_inset Flex Code
34772 status collapsed
34773
34774 \begin_layout Plain Layout
34775 TransformOption
34776 \end_layout
34777
34778 \end_inset
34779
34780  commands:
34781 \end_layout
34782
34783 \begin_layout Description
34784 \begin_inset Flex Code
34785 status collapsed
34786
34787 \begin_layout Plain Layout
34788 $$Clip
34789 \end_layout
34790
34791 \end_inset
34792
34793  The clip option.
34794 \end_layout
34795
34796 \begin_layout Description
34797 \begin_inset Flex Code
34798 status collapsed
34799
34800 \begin_layout Plain Layout
34801 $$Extra
34802 \end_layout
34803
34804 \end_inset
34805
34806  The extra option.
34807 \end_layout
34808
34809 \begin_layout Description
34810 \begin_inset Flex Code
34811 status collapsed
34812
34813 \begin_layout Plain Layout
34814 $$Resize
34815 \end_layout
34816
34817 \end_inset
34818
34819  The resize option.
34820 \end_layout
34821
34822 \begin_layout Description
34823 \begin_inset Flex Code
34824 status collapsed
34825
34826 \begin_layout Plain Layout
34827 $$Rotate
34828 \end_layout
34829
34830 \end_inset
34831
34832  The rotation option.
34833 \end_layout
34834
34835 \begin_layout Standard
34836 You may ask why there are so many path macros.
34837  There are mainly two reasons:
34838 \end_layout
34839
34840 \begin_layout Enumerate
34841 Relative and absolute file names should remain relative or absolute,
34842  respectively.
34843  Users may have reasons to prefer either form.
34844  Relative names are useful for portable documents that should work on different machines,
34845  for example.
34846  Absolute names may be required by some programs.
34847 \end_layout
34848
34849 \begin_layout Enumerate
34850 \SpecialChar LaTeX
34851  treats relative file names differently than \SpecialChar LyX
34852  and other programs in nested included files.
34853  For \SpecialChar LyX
34854 ,
34855  a relative file name is always relative to the document that contains the file name.
34856  For \SpecialChar LaTeX
34857 ,
34858  it is always relative to the master document.
34859  These two definitions are identical if you have only one document,
34860  but differ if you have a master document that includes part documents.
34861  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
34862 .
34863  Fortunately \SpecialChar LyX
34864  does this automatically for you if you choose the right macros.
34865 \end_layout
34866
34867 \begin_layout Standard
34868 So which path macro should be used in new template definitions?
34869  The rule is not difficult:
34870 \end_layout
34871
34872 \begin_layout Itemize
34873 Use 
34874 \begin_inset Flex Code
34875 status collapsed
34876
34877 \begin_layout Plain Layout
34878 $$AbsPath
34879 \end_layout
34880
34881 \end_inset
34882
34883  if an absolute path is required.
34884 \end_layout
34885
34886 \begin_layout Itemize
34887 Use 
34888 \begin_inset Flex Code
34889 status collapsed
34890
34891 \begin_layout Plain Layout
34892 $$AbsOrRelPathMaster
34893 \end_layout
34894
34895 \end_inset
34896
34897  if the substituted string is some kind of \SpecialChar LaTeX
34898  input.
34899 \end_layout
34900
34901 \begin_layout Itemize
34902 Else use 
34903 \begin_inset Flex Code
34904 status collapsed
34905
34906 \begin_layout Plain Layout
34907 $$AbsOrRelPathParent
34908 \end_layout
34909
34910 \end_inset
34911
34912  in order to preserve the user's choice.
34913 \end_layout
34914
34915 \begin_layout Standard
34916 There are special cases where this rule does not work and e.
34917 \begin_inset space \thinspace{}
34918 \end_inset
34919
34920 g.
34921 \begin_inset space \space{}
34922 \end_inset
34923
34924 relative names are needed,
34925  but normally it will work just fine.
34926  One example for such a case is the command 
34927 \begin_inset Flex Code
34928 status collapsed
34929
34930 \begin_layout Plain Layout
34931 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
34932 \end_layout
34933
34934 \end_inset
34935
34936  in the XFig template above:
34937  We can't use the absolute name because the copier for 
34938 \begin_inset Flex Code
34939 status collapsed
34940
34941 \begin_layout Plain Layout
34942 .pstex_t
34943 \end_layout
34944
34945 \end_inset
34946
34947  files needs the relative name in order to rewrite the file content.
34948 \end_layout
34949
34950 \begin_layout Section
34951 Security discussion
34952 \begin_inset CommandInset label
34953 LatexCommand label
34954 name "sec:Security-discussion"
34955
34956 \end_inset
34957
34958
34959 \end_layout
34960
34961 \begin_layout Standard
34962 The external material feature interfaces with a lot of external programs and does so automatically,
34963  so we have to consider the security implications of this.
34964  In particular,
34965  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
34966  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
34967  This is something we definitely want to avoid.
34968 \end_layout
34969
34970 \begin_layout Standard
34971 However,
34972  since the external program commands are specified in the template configuration file only,
34973  there are no security issues if \SpecialChar LyX
34974  is properly configured with safe templates only.
34975  This is so because the external programs are invoked with the 
34976 \begin_inset Flex Code
34977 status collapsed
34978
34979 \begin_layout Plain Layout
34980 execvp
34981 \end_layout
34982
34983 \end_inset
34984
34985 -system call rather than the 
34986 \begin_inset Flex Code
34987 status collapsed
34988
34989 \begin_layout Plain Layout
34990 system
34991 \end_layout
34992
34993 \end_inset
34994
34995  system-call,
34996  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
34997 \end_layout
34998
34999 \begin_layout Standard
35000 This also implies that you are restricted in what command strings you can use in the external material templates.
35001  In particular,
35002  pipes and redirection are not readily available.
35003  This has to be so if \SpecialChar LyX
35004  should remain safe.
35005  If you want to use some of the shell features,
35006  you should write a safe script to do this in a controlled manner,
35007  and then invoke the script from the command string.
35008  
35009 \end_layout
35010
35011 \begin_layout Standard
35012 It is possible to design a template that interacts directly with the shell,
35013  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
35014  we generally recommend that you only use safe scripts that work with the 
35015 \begin_inset Flex Code
35016 status collapsed
35017
35018 \begin_layout Plain Layout
35019 execvp
35020 \end_layout
35021
35022 \end_inset
35023
35024  system call in a controlled manner.
35025  Of course,
35026  for use in a controlled environment,
35027  it can be tempting to just fall back to use ordinary shell scripts.
35028  If you do so,
35029  be aware that you 
35030 \emph on
35031 will
35032 \emph default
35033  provide an easily exploitable security hole in your system.
35034  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
35035  distribution,
35036  although we do encourage people to submit new templates in the open source tradition.
35037  But \SpecialChar LyX
35038  as shipped from the official distribution channels will never have unsafe templates.
35039 \end_layout
35040
35041 \begin_layout Standard
35042 Including external material provides a lot of power,
35043  and you have to be careful not to introduce security hazards with this power.
35044  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
35045  So if you do not fully understand the issues,
35046  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
35047  development team if you have any questions about whether a given template is safe or not.
35048  And do this before you use it in an uncontrolled environment.
35049 \end_layout
35050
35051 \begin_layout Chapter
35052 \start_of_appendix
35053 List of supported \SpecialChar LyX
35054  functions to be used in layouts
35055 \begin_inset CommandInset label
35056 LatexCommand label
35057 name "chap:List-of-functions"
35058
35059 \end_inset
35060
35061
35062 \end_layout
35063
35064 \begin_layout Standard
35065 \align center
35066 \begin_inset Tabular
35067 <lyxtabular version="3" rows="11" columns="8">
35068 <features tabularvalignment="middle">
35069 <column alignment="left" valignment="top">
35070 <column alignment="left" valignment="top">
35071 <column alignment="left" valignment="top">
35072 <column alignment="left" valignment="top">
35073 <column alignment="left" valignment="top">
35074 <column alignment="left" valignment="top">
35075 <column alignment="left" valignment="top">
35076 <column alignment="left" valignment="top">
35077 <row>
35078 <cell alignment="left" valignment="top" usebox="none">
35079 \begin_inset Text
35080
35081 \begin_layout Plain Layout
35082 accents
35083 \end_layout
35084
35085 \end_inset
35086 </cell>
35087 <cell alignment="left" valignment="top" usebox="none">
35088 \begin_inset Text
35089
35090 \begin_layout Plain Layout
35091 booktabs
35092 \end_layout
35093
35094 \end_inset
35095 </cell>
35096 <cell alignment="left" valignment="top" usebox="none">
35097 \begin_inset Text
35098
35099 \begin_layout Plain Layout
35100 feyn
35101 \end_layout
35102
35103 \end_inset
35104 </cell>
35105 <cell alignment="left" valignment="top" usebox="none">
35106 \begin_inset Text
35107
35108 \begin_layout Plain Layout
35109 listings
35110 \end_layout
35111
35112 \end_inset
35113 </cell>
35114 <cell alignment="center" valignment="top" usebox="none">
35115 \begin_inset Text
35116
35117 \begin_layout Plain Layout
35118 natbib
35119 \end_layout
35120
35121 \end_inset
35122 </cell>
35123 <cell alignment="center" valignment="top" usebox="none">
35124 \begin_inset Text
35125
35126 \begin_layout Plain Layout
35127 rotfloat
35128 \end_layout
35129
35130 \end_inset
35131 </cell>
35132 <cell alignment="center" valignment="top" usebox="none">
35133 \begin_inset Text
35134
35135 \begin_layout Plain Layout
35136 tfrupee
35137 \end_layout
35138
35139 \end_inset
35140 </cell>
35141 <cell alignment="center" valignment="top" usebox="none">
35142 \begin_inset Text
35143
35144 \begin_layout Plain Layout
35145 wasysym
35146 \end_layout
35147
35148 \end_inset
35149 </cell>
35150 </row>
35151 <row>
35152 <cell alignment="left" valignment="top" usebox="none">
35153 \begin_inset Text
35154
35155 \begin_layout Plain Layout
35156 amsbsy
35157 \end_layout
35158
35159 \end_inset
35160 </cell>
35161 <cell alignment="left" valignment="top" usebox="none">
35162 \begin_inset Text
35163
35164 \begin_layout Plain Layout
35165 calc
35166 \end_layout
35167
35168 \end_inset
35169 </cell>
35170 <cell alignment="left" valignment="top" usebox="none">
35171 \begin_inset Text
35172
35173 \begin_layout Plain Layout
35174 fixltx2e
35175 \end_layout
35176
35177 \end_inset
35178 </cell>
35179 <cell alignment="left" valignment="top" usebox="none">
35180 \begin_inset Text
35181
35182 \begin_layout Plain Layout
35183 longtable
35184 \end_layout
35185
35186 \end_inset
35187 </cell>
35188 <cell alignment="center" valignment="top" usebox="none">
35189 \begin_inset Text
35190
35191 \begin_layout Plain Layout
35192 nomencl
35193 \end_layout
35194
35195 \end_inset
35196 </cell>
35197 <cell alignment="center" valignment="top" usebox="none">
35198 \begin_inset Text
35199
35200 \begin_layout Plain Layout
35201 rsphrase
35202 \end_layout
35203
35204 \end_inset
35205 </cell>
35206 <cell alignment="center" valignment="top" usebox="none">
35207 \begin_inset Text
35208
35209 \begin_layout Plain Layout
35210 tipa
35211 \end_layout
35212
35213 \end_inset
35214 </cell>
35215 <cell alignment="center" valignment="top" usebox="none">
35216 \begin_inset Text
35217
35218 \begin_layout Plain Layout
35219 wrapfig
35220 \end_layout
35221
35222 \end_inset
35223 </cell>
35224 </row>
35225 <row>
35226 <cell alignment="left" valignment="top" usebox="none">
35227 \begin_inset Text
35228
35229 \begin_layout Plain Layout
35230 amscd
35231 \end_layout
35232
35233 \end_inset
35234 </cell>
35235 <cell alignment="left" valignment="top" usebox="none">
35236 \begin_inset Text
35237
35238 \begin_layout Plain Layout
35239 CJK
35240 \end_layout
35241
35242 \end_inset
35243 </cell>
35244 <cell alignment="left" valignment="top" usebox="none">
35245 \begin_inset Text
35246
35247 \begin_layout Plain Layout
35248 float
35249 \end_layout
35250
35251 \end_inset
35252 </cell>
35253 <cell alignment="left" valignment="top" usebox="none">
35254 \begin_inset Text
35255
35256 \begin_layout Plain Layout
35257 lyxskak
35258 \end_layout
35259
35260 \end_inset
35261 </cell>
35262 <cell alignment="center" valignment="top" usebox="none">
35263 \begin_inset Text
35264
35265 \begin_layout Plain Layout
35266 pdfcolmk
35267 \end_layout
35268
35269 \end_inset
35270 </cell>
35271 <cell alignment="center" valignment="top" usebox="none">
35272 \begin_inset Text
35273
35274 \begin_layout Plain Layout
35275 setspace
35276 \end_layout
35277
35278 \end_inset
35279 </cell>
35280 <cell alignment="center" valignment="top" usebox="none">
35281 \begin_inset Text
35282
35283 \begin_layout Plain Layout
35284 tipx
35285 \end_layout
35286
35287 \end_inset
35288 </cell>
35289 <cell alignment="center" valignment="top" usebox="none">
35290 \begin_inset Text
35291
35292 \begin_layout Plain Layout
35293 xargs
35294 \end_layout
35295
35296 \end_inset
35297 </cell>
35298 </row>
35299 <row>
35300 <cell alignment="left" valignment="top" usebox="none">
35301 \begin_inset Text
35302
35303 \begin_layout Plain Layout
35304 amsmath
35305 \end_layout
35306
35307 \end_inset
35308 </cell>
35309 <cell alignment="left" valignment="top" usebox="none">
35310 \begin_inset Text
35311
35312 \begin_layout Plain Layout
35313 color
35314 \end_layout
35315
35316 \end_inset
35317 </cell>
35318 <cell alignment="left" valignment="top" usebox="none">
35319 \begin_inset Text
35320
35321 \begin_layout Plain Layout
35322 framed
35323 \end_layout
35324
35325 \end_inset
35326 </cell>
35327 <cell alignment="left" valignment="top" usebox="none">
35328 \begin_inset Text
35329
35330 \begin_layout Plain Layout
35331 makeidx
35332 \end_layout
35333
35334 \end_inset
35335 </cell>
35336 <cell alignment="center" valignment="top" usebox="none">
35337 \begin_inset Text
35338
35339 \begin_layout Plain Layout
35340 pdfpages
35341 \end_layout
35342
35343 \end_inset
35344 </cell>
35345 <cell alignment="center" valignment="top" usebox="none">
35346 \begin_inset Text
35347
35348 \begin_layout Plain Layout
35349 shapepar
35350 \end_layout
35351
35352 \end_inset
35353 </cell>
35354 <cell alignment="center" valignment="top" usebox="none">
35355 \begin_inset Text
35356
35357 \begin_layout Plain Layout
35358 tone
35359 \end_layout
35360
35361 \end_inset
35362 </cell>
35363 <cell alignment="center" valignment="top" usebox="none">
35364 \begin_inset Text
35365
35366 \begin_layout Plain Layout
35367 xcolor
35368 \end_layout
35369
35370 \end_inset
35371 </cell>
35372 </row>
35373 <row>
35374 <cell alignment="left" valignment="top" usebox="none">
35375 \begin_inset Text
35376
35377 \begin_layout Plain Layout
35378 amssymb
35379 \end_layout
35380
35381 \end_inset
35382 </cell>
35383 <cell alignment="left" valignment="top" usebox="none">
35384 \begin_inset Text
35385
35386 \begin_layout Plain Layout
35387 covington
35388 \end_layout
35389
35390 \end_inset
35391 </cell>
35392 <cell alignment="left" valignment="top" usebox="none">
35393 \begin_inset Text
35394
35395 \begin_layout Plain Layout
35396 graphicx
35397 \end_layout
35398
35399 \end_inset
35400 </cell>
35401 <cell alignment="left" valignment="top" usebox="none">
35402 \begin_inset Text
35403
35404 \begin_layout Plain Layout
35405 marvosym
35406 \end_layout
35407
35408 \end_inset
35409 </cell>
35410 <cell alignment="center" valignment="top" usebox="none">
35411 \begin_inset Text
35412
35413 \begin_layout Plain Layout
35414 pifont
35415 \end_layout
35416
35417 \end_inset
35418 </cell>
35419 <cell alignment="center" valignment="top" usebox="none">
35420 \begin_inset Text
35421
35422 \begin_layout Plain Layout
35423 slashed
35424 \end_layout
35425
35426 \end_inset
35427 </cell>
35428 <cell alignment="center" valignment="top" usebox="none">
35429 \begin_inset Text
35430
35431 \begin_layout Plain Layout
35432 txfonts
35433 \end_layout
35434
35435 \end_inset
35436 </cell>
35437 <cell alignment="center" valignment="top" usebox="none">
35438 \begin_inset Text
35439
35440 \begin_layout Plain Layout
35441 xy
35442 \end_layout
35443
35444 \end_inset
35445 </cell>
35446 </row>
35447 <row>
35448 <cell alignment="left" valignment="top" usebox="none">
35449 \begin_inset Text
35450
35451 \begin_layout Plain Layout
35452 amstext
35453 \end_layout
35454
35455 \end_inset
35456 </cell>
35457 <cell alignment="left" valignment="top" usebox="none">
35458 \begin_inset Text
35459
35460 \begin_layout Plain Layout
35461 csquotes
35462 \end_layout
35463
35464 \end_inset
35465 </cell>
35466 <cell alignment="left" valignment="top" usebox="none">
35467 \begin_inset Text
35468
35469 \begin_layout Plain Layout
35470 hhline
35471 \end_layout
35472
35473 \end_inset
35474 </cell>
35475 <cell alignment="left" valignment="top" usebox="none">
35476 \begin_inset Text
35477
35478 \begin_layout Plain Layout
35479 mathdesign
35480 \end_layout
35481
35482 \end_inset
35483 </cell>
35484 <cell alignment="center" valignment="top" usebox="none">
35485 \begin_inset Text
35486
35487 \begin_layout Plain Layout
35488 pmboxdraw
35489 \end_layout
35490
35491 \end_inset
35492 </cell>
35493 <cell alignment="center" valignment="top" usebox="none">
35494 \begin_inset Text
35495
35496 \begin_layout Plain Layout
35497 soul
35498 \end_layout
35499
35500 \end_inset
35501 </cell>
35502 <cell alignment="center" valignment="top" usebox="none">
35503 \begin_inset Text
35504
35505 \begin_layout Plain Layout
35506 ulem
35507 \end_layout
35508
35509 \end_inset
35510 </cell>
35511 <cell alignment="center" valignment="top" usebox="none">
35512 \begin_inset Text
35513
35514 \begin_layout Plain Layout
35515 yhmath
35516 \end_layout
35517
35518 \end_inset
35519 </cell>
35520 </row>
35521 <row>
35522 <cell alignment="left" valignment="top" usebox="none">
35523 \begin_inset Text
35524
35525 \begin_layout Plain Layout
35526 amsthm
35527 \end_layout
35528
35529 \end_inset
35530 </cell>
35531 <cell alignment="left" valignment="top" usebox="none">
35532 \begin_inset Text
35533
35534 \begin_layout Plain Layout
35535 dvipost
35536 \end_layout
35537
35538 \end_inset
35539 </cell>
35540 <cell alignment="left" valignment="top" usebox="none">
35541 \begin_inset Text
35542
35543 \begin_layout Plain Layout
35544 hyperref
35545 \end_layout
35546
35547 \end_inset
35548 </cell>
35549 <cell alignment="left" valignment="top" usebox="none">
35550 \begin_inset Text
35551
35552 \begin_layout Plain Layout
35553 mathdots
35554 \end_layout
35555
35556 \end_inset
35557 </cell>
35558 <cell alignment="center" valignment="top" usebox="none">
35559 \begin_inset Text
35560
35561 \begin_layout Plain Layout
35562 polyglossia
35563 \end_layout
35564
35565 \end_inset
35566 </cell>
35567 <cell alignment="center" valignment="top" usebox="none">
35568 \begin_inset Text
35569
35570 \begin_layout Plain Layout
35571 splitidx
35572 \end_layout
35573
35574 \end_inset
35575 </cell>
35576 <cell alignment="center" valignment="top" usebox="none">
35577 \begin_inset Text
35578
35579 \begin_layout Plain Layout
35580 undertilde
35581 \end_layout
35582
35583 \end_inset
35584 </cell>
35585 <cell alignment="center" valignment="top" usebox="none">
35586 \begin_inset Text
35587
35588 \begin_layout Plain Layout
35589
35590 \end_layout
35591
35592 \end_inset
35593 </cell>
35594 </row>
35595 <row>
35596 <cell alignment="left" valignment="top" usebox="none">
35597 \begin_inset Text
35598
35599 \begin_layout Plain Layout
35600 array
35601 \end_layout
35602
35603 \end_inset
35604 </cell>
35605 <cell alignment="left" valignment="top" usebox="none">
35606 \begin_inset Text
35607
35608 \begin_layout Plain Layout
35609 endnotes
35610 \end_layout
35611
35612 \end_inset
35613 </cell>
35614 <cell alignment="left" valignment="top" usebox="none">
35615 \begin_inset Text
35616
35617 \begin_layout Plain Layout
35618 ifsym
35619 \end_layout
35620
35621 \end_inset
35622 </cell>
35623 <cell alignment="left" valignment="top" usebox="none">
35624 \begin_inset Text
35625
35626 \begin_layout Plain Layout
35627 mathrsfs
35628 \end_layout
35629
35630 \end_inset
35631 </cell>
35632 <cell alignment="center" valignment="top" usebox="none">
35633 \begin_inset Text
35634
35635 \begin_layout Plain Layout
35636 prettyref
35637 \end_layout
35638
35639 \end_inset
35640 </cell>
35641 <cell alignment="center" valignment="top" usebox="none">
35642 \begin_inset Text
35643
35644 \begin_layout Plain Layout
35645 subfig
35646 \end_layout
35647
35648 \end_inset
35649 </cell>
35650 <cell alignment="center" valignment="top" usebox="none">
35651 \begin_inset Text
35652
35653 \begin_layout Plain Layout
35654 units
35655 \end_layout
35656
35657 \end_inset
35658 </cell>
35659 <cell alignment="center" valignment="top" usebox="none">
35660 \begin_inset Text
35661
35662 \begin_layout Plain Layout
35663
35664 \end_layout
35665
35666 \end_inset
35667 </cell>
35668 </row>
35669 <row>
35670 <cell alignment="left" valignment="top" usebox="none">
35671 \begin_inset Text
35672
35673 \begin_layout Plain Layout
35674 ascii
35675 \end_layout
35676
35677 \end_inset
35678 </cell>
35679 <cell alignment="left" valignment="top" usebox="none">
35680 \begin_inset Text
35681
35682 \begin_layout Plain Layout
35683 enumitem
35684 \end_layout
35685
35686 \end_inset
35687 </cell>
35688 <cell alignment="left" valignment="top" usebox="none">
35689 \begin_inset Text
35690
35691 \begin_layout Plain Layout
35692 ifthen
35693 \end_layout
35694
35695 \end_inset
35696 </cell>
35697 <cell alignment="left" valignment="top" usebox="none">
35698 \begin_inset Text
35699
35700 \begin_layout Plain Layout
35701 mhchem
35702 \end_layout
35703
35704 \end_inset
35705 </cell>
35706 <cell alignment="center" valignment="top" usebox="none">
35707 \begin_inset Text
35708
35709 \begin_layout Plain Layout
35710 pxfonts
35711 \end_layout
35712
35713 \end_inset
35714 </cell>
35715 <cell alignment="center" valignment="top" usebox="none">
35716 \begin_inset Text
35717
35718 \begin_layout Plain Layout
35719 subscript
35720 \end_layout
35721
35722 \end_inset
35723 </cell>
35724 <cell alignment="center" valignment="top" usebox="none">
35725 \begin_inset Text
35726
35727 \begin_layout Plain Layout
35728 url
35729 \end_layout
35730
35731 \end_inset
35732 </cell>
35733 <cell alignment="center" valignment="top" usebox="none">
35734 \begin_inset Text
35735
35736 \begin_layout Plain Layout
35737
35738 \end_layout
35739
35740 \end_inset
35741 </cell>
35742 </row>
35743 <row>
35744 <cell alignment="left" valignment="top" usebox="none">
35745 \begin_inset Text
35746
35747 \begin_layout Plain Layout
35748 bbding
35749 \end_layout
35750
35751 \end_inset
35752 </cell>
35753 <cell alignment="left" valignment="top" usebox="none">
35754 \begin_inset Text
35755
35756 \begin_layout Plain Layout
35757 esint
35758 \end_layout
35759
35760 \end_inset
35761 </cell>
35762 <cell alignment="left" valignment="top" usebox="none">
35763 \begin_inset Text
35764
35765 \begin_layout Plain Layout
35766 jurabib
35767 \end_layout
35768
35769 \end_inset
35770 </cell>
35771 <cell alignment="left" valignment="top" usebox="none">
35772 \begin_inset Text
35773
35774 \begin_layout Plain Layout
35775 multicol
35776 \end_layout
35777
35778 \end_inset
35779 </cell>
35780 <cell alignment="center" valignment="top" usebox="none">
35781 \begin_inset Text
35782
35783 \begin_layout Plain Layout
35784 refstyle
35785 \end_layout
35786
35787 \end_inset
35788 </cell>
35789 <cell alignment="center" valignment="top" usebox="none">
35790 \begin_inset Text
35791
35792 \begin_layout Plain Layout
35793 textcomp
35794 \end_layout
35795
35796 \end_inset
35797 </cell>
35798 <cell alignment="center" valignment="top" usebox="none">
35799 \begin_inset Text
35800
35801 \begin_layout Plain Layout
35802 varioref
35803 \end_layout
35804
35805 \end_inset
35806 </cell>
35807 <cell alignment="center" valignment="top" usebox="none">
35808 \begin_inset Text
35809
35810 \begin_layout Plain Layout
35811
35812 \end_layout
35813
35814 \end_inset
35815 </cell>
35816 </row>
35817 <row>
35818 <cell alignment="center" valignment="top" usebox="none">
35819 \begin_inset Text
35820
35821 \begin_layout Plain Layout
35822 bm
35823 \end_layout
35824
35825 \end_inset
35826 </cell>
35827 <cell alignment="center" valignment="top" usebox="none">
35828 \begin_inset Text
35829
35830 \begin_layout Plain Layout
35831 fancybox
35832 \end_layout
35833
35834 \end_inset
35835 </cell>
35836 <cell alignment="center" valignment="top" usebox="none">
35837 \begin_inset Text
35838
35839 \begin_layout Plain Layout
35840 latexsym
35841 \end_layout
35842
35843 \end_inset
35844 </cell>
35845 <cell alignment="center" valignment="top" usebox="none">
35846 \begin_inset Text
35847
35848 \begin_layout Plain Layout
35849 multirow
35850 \end_layout
35851
35852 \end_inset
35853 </cell>
35854 <cell alignment="center" valignment="top" usebox="none">
35855 \begin_inset Text
35856
35857 \begin_layout Plain Layout
35858 rotating
35859 \end_layout
35860
35861 \end_inset
35862 </cell>
35863 <cell alignment="center" valignment="top" usebox="none">
35864 \begin_inset Text
35865
35866 \begin_layout Plain Layout
35867 textgreek
35868 \end_layout
35869
35870 \end_inset
35871 </cell>
35872 <cell alignment="center" valignment="top" usebox="none">
35873 \begin_inset Text
35874
35875 \begin_layout Plain Layout
35876 verbatim
35877 \end_layout
35878
35879 \end_inset
35880 </cell>
35881 <cell alignment="center" valignment="top" usebox="none">
35882 \begin_inset Text
35883
35884 \begin_layout Plain Layout
35885
35886 \end_layout
35887
35888 \end_inset
35889 </cell>
35890 </row>
35891 </lyxtabular>
35892
35893 \end_inset
35894
35895
35896 \end_layout
35897
35898 \begin_layout Chapter
35899 Names of available colors to be used in layouts
35900 \begin_inset CommandInset label
35901 LatexCommand label
35902 name "chap:Names-of-colors"
35903
35904 \end_inset
35905
35906
35907 \end_layout
35908
35909 \begin_layout Standard
35910 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
35911  preferences.
35912 \end_layout
35913
35914 \begin_layout Section
35915 Color functions
35916 \end_layout
35917
35918 \begin_layout Standard
35919 The following are no real colors,
35920  but rather act on color definitions:
35921 \end_layout
35922
35923 \begin_layout Description
35924 ignore The color is ignored
35925 \end_layout
35926
35927 \begin_layout Description
35928 inherit The color is inherited
35929 \end_layout
35930
35931 \begin_layout Description
35932 none
35933 \family roman
35934 \series medium
35935 \shape up
35936 \size normal
35937 \emph off
35938 \bar no
35939 \strikeout off
35940 \uuline off
35941 \uwave off
35942 \noun off
35943 \color none
35944  No particular color – clear or default
35945 \end_layout
35946
35947 \begin_layout Section
35948 Static colors
35949 \end_layout
35950
35951 \begin_layout Standard
35952 These are fixed colors that cannot be customized
35953 \change_inserted -712698321 1607683177
35954 .
35955  Please do 
35956 \emph on
35957 not
35958 \emph default
35959  use these colors in layout definitions,
35960  since they will not work well with some color themes (such as dark themes)
35961 \change_unchanged
35962 :
35963 \end_layout
35964
35965 \begin_layout Description
35966 black
35967 \end_layout
35968
35969 \begin_layout Description
35970 white
35971 \end_layout
35972
35973 \begin_layout Description
35974 blue
35975 \end_layout
35976
35977 \begin_layout Description
35978 brown
35979 \end_layout
35980
35981 \begin_layout Description
35982 cyan
35983 \end_layout
35984
35985 \begin_layout Description
35986 darkgray
35987 \end_layout
35988
35989 \begin_layout Description
35990 gray
35991 \end_layout
35992
35993 \begin_layout Description
35994 green
35995 \end_layout
35996
35997 \begin_layout Description
35998 lightgray
35999 \end_layout
36000
36001 \begin_layout Description
36002 lime
36003 \end_layout
36004
36005 \begin_layout Description
36006 magenta
36007 \end_layout
36008
36009 \begin_layout Description
36010 olive
36011 \end_layout
36012
36013 \begin_layout Description
36014 orange
36015 \end_layout
36016
36017 \begin_layout Description
36018 pink
36019 \end_layout
36020
36021 \begin_layout Description
36022 purple
36023 \end_layout
36024
36025 \begin_layout Description
36026 red
36027 \end_layout
36028
36029 \begin_layout Description
36030 teal
36031 \end_layout
36032
36033 \begin_layout Description
36034 violet
36035 \end_layout
36036
36037 \begin_layout Description
36038 yellow
36039 \end_layout
36040
36041 \begin_layout Section
36042 Dynamic colors
36043 \end_layout
36044
36045 \begin_layout Standard
36046 These are the colors allocated to specific elements in 
36047 \begin_inset Info
36048 type  "menu"
36049 arg   "dialog-show prefs"
36050 \end_inset
36051
36052 :
36053 \end_layout
36054
36055 \begin_layout Description
36056 added_space Added space color
36057 \end_layout
36058
36059 \begin_layout Description
36060 addedtext Added text color
36061 \end_layout
36062
36063 \begin_layout Description
36064 appendix Appendix marker color
36065 \end_layout
36066
36067 \begin_layout Description
36068 background Background color
36069 \end_layout
36070
36071 \begin_layout Description
36072 bottomarea Bottom area color
36073 \end_layout
36074
36075 \begin_layout Description
36076 branchlabel Label color for branches
36077 \end_layout
36078
36079 \begin_layout Description
36080 buttonbg Color used for button background
36081 \end_layout
36082
36083 \begin_layout Description
36084 buttonframe Color for inset button frames
36085 \end_layout
36086
36087 \begin_layout Description
36088 buttonhoverbg Color used for button background under focus
36089 \end_layout
36090
36091 \begin_layout Description
36092 changebar Changebar color
36093 \end_layout
36094
36095 \begin_layout Description
36096 changedtextauthor1 Changed text color author 1
36097 \end_layout
36098
36099 \begin_layout Description
36100 changedtextauthor2 Changed text color author 2
36101 \end_layout
36102
36103 \begin_layout Description
36104 changedtextauthor3 Changed text color author 3
36105 \end_layout
36106
36107 \begin_layout Description
36108 changedtextauthor4 Changed text color author 4
36109 \end_layout
36110
36111 \begin_layout Description
36112 changedtextauthor5 Changed text color author 5
36113 \end_layout
36114
36115 \begin_layout Description
36116 collapsible Collapsible insets text color
36117 \end_layout
36118
36119 \begin_layout Description
36120 collapsibleframe Collapsible insets framecolor
36121 \end_layout
36122
36123 \begin_layout Description
36124 command Text color for command insets
36125 \end_layout
36126
36127 \begin_layout Description
36128 commandbg Background color for command insets
36129 \end_layout
36130
36131 \begin_layout Description
36132 commandframe Frame color for command insets
36133 \end_layout
36134
36135 \begin_layout Description
36136 comment Label color for comments
36137 \end_layout
36138
36139 \begin_layout Description
36140 commentbg Background color of comments
36141 \end_layout
36142
36143 \begin_layout Description
36144 cursor Cursor color
36145 \end_layout
36146
36147 \begin_layout Description
36148 deletedtext Deleted text color
36149 \end_layout
36150
36151 \begin_layout Description
36152 deletedtextmodifier Deleted text modifying color
36153 \end_layout
36154
36155 \begin_layout Description
36156 depthbar Color for the depth bars in the margin
36157 \end_layout
36158
36159 \begin_layout Description
36160 eolmarker End of line marker color
36161 \end_layout
36162
36163 \begin_layout Description
36164 error Color of the \SpecialChar LaTeX
36165  error box
36166 \end_layout
36167
36168 \begin_layout Description
36169 footlabel Label color for footnotes
36170 \end_layout
36171
36172 \begin_layout Description
36173 foreground Foreground color
36174 \end_layout
36175
36176 \begin_layout Description
36177 graphicsbg Graphics inset background color
36178 \end_layout
36179
36180 \begin_layout Description
36181 greyedoutbg Background color of greyedout inset
36182 \end_layout
36183
36184 \begin_layout Description
36185 greyedoutlabel Label color for greyedout insets
36186 \end_layout
36187
36188 \begin_layout Description
36189 greyedouttext Color for greyedout inset text
36190 \end_layout
36191
36192 \begin_layout Description
36193 indexlabel Label color for index insets
36194 \end_layout
36195
36196 \begin_layout Description
36197 inlinecompletion Inline completion color
36198 \end_layout
36199
36200 \begin_layout Description
36201 insetbg Inset marker background color
36202 \end_layout
36203
36204 \begin_layout Description
36205 insetframe Inset marker frame color
36206 \end_layout
36207
36208 \begin_layout Description
36209 language Color for marking foreign language words
36210 \end_layout
36211
36212 \begin_layout Description
36213 latex Text color in \SpecialChar LaTeX
36214  mode
36215 \end_layout
36216
36217 \begin_layout Description
36218 listingsbg Background color of listings inset
36219 \end_layout
36220
36221 \begin_layout Description
36222 marginlabel Label color for margin notes
36223 \end_layout
36224
36225 \begin_layout Description
36226 math Math inset text color
36227 \end_layout
36228
36229 \begin_layout Description
36230 mathbg Math inset background color
36231 \end_layout
36232
36233 \begin_layout Description
36234 mathcorners Math inset frame color not under focus
36235 \end_layout
36236
36237 \begin_layout Description
36238 mathframe Math inset frame color under focus
36239 \end_layout
36240
36241 \begin_layout Description
36242 mathline Math line color
36243 \end_layout
36244
36245 \begin_layout Description
36246 mathmacrobg Macro math inset background color
36247 \end_layout
36248
36249 \begin_layout Description
36250 mathmacroblend Macro math blended color
36251 \end_layout
36252
36253 \begin_layout Description
36254 mathmacroframe Macro math frame color
36255 \end_layout
36256
36257 \begin_layout Description
36258 mathmacrohoverbg Macro math inset background color hovered
36259 \end_layout
36260
36261 \begin_layout Description
36262 mathmacrolabel Macro math label color
36263 \end_layout
36264
36265 \begin_layout Description
36266 mathmacronewarg Macro template color for new parameters
36267 \end_layout
36268
36269 \begin_layout Description
36270 mathmacrooldarg Macro template color for old parameters
36271 \end_layout
36272
36273 \begin_layout Description
36274 newpage New page color
36275 \end_layout
36276
36277 \begin_layout Description
36278 nonunique_inlinecompletion Inline completion color for the non-unique part
36279 \end_layout
36280
36281 \begin_layout Description
36282 note Label color for notes
36283 \end_layout
36284
36285 \begin_layout Description
36286 notebg Background color of notes
36287 \end_layout
36288
36289 \begin_layout Description
36290 pagebreak Page break/line break color
36291 \end_layout
36292
36293 \begin_layout Description
36294 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
36295 \end_layout
36296
36297 \begin_layout Description
36298 phantomtext Text color for phantom insets
36299 \end_layout
36300
36301 \begin_layout Description
36302 preview The color used for previews
36303 \end_layout
36304
36305 \begin_layout Description
36306 previewframe Preview frame color
36307 \end_layout
36308
36309 \begin_layout Description
36310 regexpframe Color for regexp frame
36311 \end_layout
36312
36313 \begin_layout Description
36314 scroll Color that indicates when a row can be scrolled 
36315 \end_layout
36316
36317 \begin_layout Description
36318 selection Background color of selected text
36319 \end_layout
36320
36321 \begin_layout Description
36322 selectiontext Foreground color of selected text
36323 \end_layout
36324
36325 \begin_layout Description
36326 shadedbg Background color of shaded box
36327 \end_layout
36328
36329 \begin_layout Description
36330 special Special chars text color
36331 \end_layout
36332
36333 \begin_layout Description
36334 tabularline Table line color
36335 \end_layout
36336
36337 \begin_layout Description
36338 tabularonoffline Table line color
36339 \change_inserted -712698321 1607682522
36340
36341 \end_layout
36342
36343 \begin_layout Description
36344
36345 \change_inserted -712698321 1607682563
36346 textlabel1 Color 1 of layout and custom inset labels
36347 \end_layout
36348
36349 \begin_layout Description
36350
36351 \change_inserted -712698321 1607682565
36352 textlabel2 Color 2 of layout and custom inset labels
36353 \end_layout
36354
36355 \begin_layout Description
36356
36357 \change_inserted -712698321 1607682568
36358 textlabel3 Color 3 of layout and custom inset labels
36359 \change_unchanged
36360
36361 \end_layout
36362
36363 \begin_layout Description
36364 urllabel Label color for URL insets
36365 \end_layout
36366
36367 \begin_layout Description
36368 urltext Color for URL inset text
36369 \end_layout
36370
36371 \end_body
36372 \end_document