]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
document selectionmath color
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 620
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_formatted_ref 0
107 \use_minted 0
108 \use_lineno 0
109 \notefontcolor #0000ff
110 \branch OutDated
111 \selected 0
112 \filename_suffix 0
113 \color #f5fae7 #0a0518
114 \end_branch
115 \index Index
116 \shortcut idx
117 \color #008000
118 \end_index
119 \secnumdepth 3
120 \tocdepth 3
121 \paragraph_separation indent
122 \paragraph_indentation default
123 \is_math_indent 1
124 \math_indentation default
125 \math_numbering_side default
126 \quotes_style english
127 \dynamic_quotes 0
128 \papercolumns 1
129 \papersides 2
130 \paperpagestyle headings
131 \tablestyle default
132 \tracking_changes true
133 \output_changes false
134 \change_bars false
135 \postpone_fragile_content false
136 \html_math_output 0
137 \html_css_as_file 0
138 \html_be_strict true
139 \docbook_table_output 0
140 \docbook_mathml_prefix 1
141 \author -970929547 "Thibaut Cuvelier"
142 \author -712698321 "Jürgen Spitzmüller"
143 \author -584632292 "Richard Kimberly Heck"
144 \author -495245474 "Jean-Marc Lasgouttes"
145 \author 177693 "x"
146 \author 5863208 "ab"
147 \author 34634807 "Jean-Pierre"
148 \author 47243155 "Jean-Marc"
149 \author 193502281 "pc1"
150 \author 232239728 "Owner"
151 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
152 \author 1075283030 "Thibaut"
153 \end_header
154
155 \begin_body
156
157 \begin_layout Title
158 Customizing \SpecialChar LyX
159 :
160  Features for the Advanced User
161 \end_layout
162
163 \begin_layout Author
164 by the \SpecialChar LyX
165  Team
166 \begin_inset Foot
167 status collapsed
168
169 \begin_layout Plain Layout
170 If you have comments or error corrections,
171  please send them to the \SpecialChar LyX
172  Documentation mailing list,
173  
174 \begin_inset CommandInset href
175 LatexCommand href
176 target "lyx-docs@lists.lyx.org"
177 type "mailto:"
178 literal "false"
179
180 \end_inset
181
182 .
183  Include 
184 \begin_inset Quotes eld
185 \end_inset
186
187 [Customization]
188 \begin_inset Quotes erd
189 \end_inset
190
191  in the subject header,
192  and please cc the current maintainer of this file,
193  Richard 
194 \change_inserted 5863208 1604930692
195 Kimberly 
196 \change_unchanged
197 Heck <
198 \change_inserted 5863208 1604930729
199 rikiheck@lyx.org
200 \change_deleted 5863208 1604930668
201 rikiheck@lyx.org
202 \change_unchanged
203 >.
204 \end_layout
205
206 \end_inset
207
208
209 \begin_inset Newline newline
210 \end_inset
211
212
213 \begin_inset Newline newline
214 \end_inset
215
216 Version 2.4.x
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset CommandInset toc
221 LatexCommand tableofcontents
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Standard
229 \begin_inset Note Note
230 status open
231
232 \begin_layout Plain Layout
233 Please use change tracking when modifying this document.
234  This makes it easier for our translators to recognize things that have been changed,
235  and it helps the maintainer keep up-to-date with what's been done.
236 \end_layout
237
238 \end_inset
239
240
241 \end_layout
242
243 \begin_layout Chapter
244 Introduction
245 \end_layout
246
247 \begin_layout Standard
248 This manual covers the customization features present in \SpecialChar LyX
249 .
250  In it,
251  we discuss issues like keyboard shortcuts,
252  screen previewing options,
253  printer options,
254  sending commands to \SpecialChar LyX
255  via the \SpecialChar LyX
256  Server,
257  internationalization,
258  installing new \SpecialChar LaTeX
259  classes and \SpecialChar LyX
260  layouts,
261  etc.
262  We can't possibly hope to touch on everything you can change—
263 our developers add new features faster than we can document them—
264 but we will explain the most common customizations and hopefully point you in the right direction for some of the more obscure ones.
265 \end_layout
266
267 \begin_layout Standard
268 \begin_inset Branch OutDated
269 inverted 0
270 status collapsed
271
272 \begin_layout Standard
273 Information from previous versions of this document that now seems to be outdated is contained in the OutDated branch of this document.
274  By default,
275  this information will not appear in the \SpecialChar LaTeX
276  output.
277 \end_layout
278
279 \end_inset
280
281
282 \end_layout
283
284 \begin_layout Chapter
285 \SpecialChar LyX
286  configuration files
287 \end_layout
288
289 \begin_layout Standard
290 This chapter aims to help you to find your way through the \SpecialChar LyX
291  configuration files.
292  Before continuing to read this chapter,
293  you should find out where your \SpecialChar LyX
294  
295 \change_deleted -712698321 1693046672
296 library
297 \change_inserted -712698321 1693046674
298 system
299 \change_unchanged
300  and user directories are by using 
301 \begin_inset Flex Noun
302 status collapsed
303
304 \begin_layout Plain Layout
305 Help\SpecialChar menuseparator
306 About
307 \begin_inset space ~
308 \end_inset
309
310 LyX
311 \end_layout
312
313 \end_inset
314
315 .
316  The 
317 \change_deleted -712698321 1693046679
318 library
319 \change_inserted -712698321 1693046679
320 system
321 \change_unchanged
322  directory is the place where \SpecialChar LyX
323  places its system-wide configuration files;
324  the user directory is where you can place your modified versions.
325  We will call the former 
326 \begin_inset Flex Code
327 status collapsed
328
329 \begin_layout Plain Layout
330 LyXDir
331 \end_layout
332
333 \end_inset
334
335  and the latter 
336 \begin_inset Flex Noun
337 status collapsed
338
339 \begin_layout Plain Layout
340 UserDir
341 \end_layout
342
343 \end_inset
344
345  in the remainder of this document.
346  
347 \end_layout
348
349 \begin_layout Section
350 What's in 
351 \begin_inset Flex Code
352 status collapsed
353
354 \begin_layout Plain Layout
355 LyXDir
356 \end_layout
357
358 \end_inset
359
360 ?
361 \end_layout
362
363 \begin_layout Standard
364 \begin_inset Flex Code
365 status collapsed
366
367 \begin_layout Plain Layout
368 LyXDir
369 \end_layout
370
371 \end_inset
372
373  and its sub-directories contain a number of files 
374 \change_deleted 232239728 1604787780
375 and
376 \change_unchanged
377  that can be used to customize \SpecialChar LyX
378 's behavior.
379  You can change many of these files from within \SpecialChar LyX
380  itself through the 
381 \begin_inset Flex Noun
382 status collapsed
383
384 \begin_layout Plain Layout
385 Tools\SpecialChar menuseparator
386 Preferences
387 \end_layout
388
389 \end_inset
390
391  dialog.
392  Most customization that you will want to do in \SpecialChar LyX
393  is possible through this dialog.
394  However,
395  many other inner aspects of \SpecialChar LyX
396  can be customized by modifying the files in 
397 \begin_inset Flex Code
398 status collapsed
399
400 \begin_layout Plain Layout
401 LyXDir
402 \end_layout
403
404 \end_inset
405
406 .
407  These files fall in different categories,
408  described in the following subsections.
409 \end_layout
410
411 \begin_layout Subsection
412 Automatically generated files
413 \end_layout
414
415 \begin_layout Standard
416 The files found in 
417 \begin_inset Flex Noun
418 status collapsed
419
420 \begin_layout Plain Layout
421 UserDir
422 \end_layout
423
424 \end_inset
425
426  are generated when you configure \SpecialChar LyX
427 .
428  They contain various default values that are 
429 \change_inserted 5863208 1604919565
430 automatically detected during reconfiguration.
431 \change_deleted 232239728 1604788241
432 guessed by inspection
433 \change_unchanged
434  In general,
435  it is not a good idea to modify them,
436  since they might be overwritten at any time.
437 \end_layout
438
439 \begin_layout Labeling
440 \labelwidthstring 00.00.0000
441 \begin_inset Flex Code
442 status collapsed
443
444 \begin_layout Plain Layout
445 lyxrc.defaults
446 \end_layout
447
448 \end_inset
449
450  
451 \change_deleted 5863208 1604919950
452
453 \begin_inset Note Note
454 status collapsed
455
456 \begin_layout Plain Layout
457
458 \change_inserted 232239728 1604853928
459 I capitalized the first word in all of these lists.
460  To me it looks better but it really is a stylistic thing,
461  your call.
462  However if you are not going to capitalize them,
463  the english in some needs to be modified to make it read correctly as a sentence.
464 \change_unchanged
465
466 \end_layout
467
468 \end_inset
469
470
471 \change_deleted 232239728 1604853510
472 c
473 \change_inserted 232239728 1604853510
474 C
475 \change_unchanged
476 ontains defaults for various commands.
477 \end_layout
478
479 \begin_layout Labeling
480 \labelwidthstring 00.00.0000
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 packages.lst
486 \end_layout
487
488 \end_inset
489
490  
491 \change_deleted 232239728 1604853512
492 c
493 \change_inserted 232239728 1604853512
494 C
495 \change_unchanged
496 ontains the list of packages that have been recognized by \SpecialChar LyX
497 .
498  It is currently unused by the \SpecialChar LyX
499  program itself,
500  but the information extracted,
501  and more,
502  is made available with 
503 \begin_inset Flex Noun
504 status collapsed
505
506 \begin_layout Plain Layout
507 Help\SpecialChar menuseparator
508 \SpecialChar LaTeX
509
510 \begin_inset space ~
511 \end_inset
512
513 Configuration
514 \end_layout
515
516 \end_inset
517
518 .
519 \end_layout
520
521 \begin_layout Labeling
522 \labelwidthstring 00.00.0000
523 \begin_inset Flex Code
524 status collapsed
525
526 \begin_layout Plain Layout
527 textclass.lst
528 \end_layout
529
530 \end_inset
531
532  
533 \change_deleted 232239728 1604853515
534 t
535 \change_inserted 232239728 1604853515
536 T
537 \change_unchanged
538 he list of text classes that have been found in your 
539 \begin_inset Flex Code
540 status collapsed
541
542 \begin_layout Plain Layout
543 layout/
544 \end_layout
545
546 \end_inset
547
548  directories,
549  along with the associated \SpecialChar LaTeX
550  document class and their description.
551 \end_layout
552
553 \begin_layout Labeling
554 \labelwidthstring 00.00.0000
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 lyxmodules.lst
560 \end_layout
561
562 \end_inset
563
564  
565 \change_deleted 232239728 1604853518
566 t
567 \change_inserted 232239728 1604853518
568 T
569 \change_unchanged
570 he list of layout modules found in your 
571 \begin_inset Flex Code
572 status collapsed
573
574 \begin_layout Plain Layout
575 layout/
576 \end_layout
577
578 \end_inset
579
580  directories
581 \end_layout
582
583 \begin_layout Labeling
584 \labelwidthstring 00.00.0000
585 \begin_inset Flex Code
586 status open
587
588 \begin_layout Plain Layout
589 *files.lst
590 \end_layout
591
592 \end_inset
593
594  
595 \change_deleted 232239728 1604853523
596 l
597 \change_inserted 232239728 1604853523
598 L
599 \change_unchanged
600 ists of various sorts of \SpecialChar LaTeX
601 -related files found on your system
602 \end_layout
603
604 \begin_layout Labeling
605 \labelwidthstring 00.00.0000
606 \begin_inset Flex Code
607 status open
608
609 \begin_layout Plain Layout
610 doc/\SpecialChar LaTeX
611 Config.lyx
612 \end_layout
613
614 \end_inset
615
616  is automatically generated during configuration from the file 
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621 \SpecialChar LaTeX
622 Config.lyx.in
623 \end_layout
624
625 \end_inset
626
627 .
628  It contains information on your \SpecialChar LaTeX
629  configuration.
630 \end_layout
631
632 \begin_layout Subsection
633 Directories
634 \end_layout
635
636 \begin_layout Standard
637 The
638 \change_deleted 5863208 1604928729
639 se
640 \change_unchanged
641  
642 \change_inserted 5863208 1604928636
643 following 
644 \change_unchanged
645 directories 
646 \change_inserted 5863208 1604928661
647 in 
648 \change_unchanged
649
650 \begin_inset Flex Code
651 status collapsed
652
653 \begin_layout Plain Layout
654 LyXDir
655 \end_layout
656
657 \end_inset
658
659
660 \change_inserted 5863208 1604928662
661  can be
662 \change_deleted 5863208 1604928642
663 are
664 \change_unchanged
665  duplicated 
666 \change_deleted 5863208 1604928669
667 between 
668 \begin_inset Flex Code
669 status collapsed
670
671 \begin_layout Plain Layout
672 LyXDir
673 \end_layout
674
675 \end_inset
676
677  and
678 \change_inserted 5863208 1604928680
679 in
680 \change_unchanged
681  
682 \begin_inset Flex Code
683 status collapsed
684
685 \begin_layout Plain Layout
686 UserDir
687 \end_layout
688
689 \end_inset
690
691 .
692  If a particular file
693 \change_deleted 232239728 1604794430
694 s
695 \change_unchanged
696  exists in both places,
697  the one in 
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 UserDir
703 \end_layout
704
705 \end_inset
706
707  will be used.
708 \end_layout
709
710 \begin_layout Labeling
711 \labelwidthstring 00.00.0000
712 \begin_inset Flex Code
713 status collapsed
714
715 \begin_layout Plain Layout
716 bind/
717 \end_layout
718
719 \end_inset
720
721  
722 \change_deleted 232239728 1604794460
723 t
724 \change_inserted 232239728 1604794460
725 T
726 \change_unchanged
727 his directory contains files with the extension 
728 \begin_inset Flex Code
729 status collapsed
730
731 \begin_layout Plain Layout
732 .bind
733 \end_layout
734
735 \end_inset
736
737  that define the keybindings used in \SpecialChar LyX
738 .
739  If there exists an internationalized version of the bind file 
740 \change_inserted -712698321 1669371749
741 in a subdirectory 
742 \change_deleted -712698321 1669371727
743 named 
744 \begin_inset Flex Code
745 status collapsed
746
747 \begin_layout Plain Layout
748 $LANG_xxx.bind
749 \end_layout
750
751 \end_inset
752
753
754 \change_inserted -712698321 1669371728
755
756 \begin_inset Flex Code
757 status collapsed
758
759 \begin_layout Plain Layout
760
761 \change_inserted -712698321 1669371732
762 bind/xx
763 \change_unchanged
764
765 \end_layout
766
767 \end_inset
768
769  where 
770 \begin_inset Quotes eld
771 \end_inset
772
773 xx
774 \begin_inset Quotes erd
775 \end_inset
776
777  is the ISO language code
778 \change_unchanged
779 ,
780  that will be used first.
781 \end_layout
782
783 \begin_layout Labeling
784 \labelwidthstring 00.00.0000
785 \begin_inset Flex Code
786 status collapsed
787
788 \begin_layout Plain Layout
789 citeengines/
790 \end_layout
791
792 \end_inset
793
794  
795 \change_deleted 232239728 1604794478
796 c
797 \change_inserted 232239728 1604794478
798 C
799 \change_unchanged
800 ontains files with the extension 
801 \begin_inset Flex Code
802 status collapsed
803
804 \begin_layout Plain Layout
805 .citeengine
806 \end_layout
807
808 \end_inset
809
810  which define the diverse citation possibilities (natbib,
811  biblatex etc.).
812  See 
813 \begin_inset CommandInset ref
814 LatexCommand ref
815 reference "subsec:Cite-Engine-Files"
816 plural "false"
817 caps "false"
818 noprefix "false"
819 nolink "false"
820
821 \end_inset
822
823  for details.
824 \end_layout
825
826 \begin_layout Labeling
827 \labelwidthstring 00.00.0000
828 \begin_inset Flex Code
829 status collapsed
830
831 \begin_layout Plain Layout
832 clipart/
833 \end_layout
834
835 \end_inset
836
837  
838 \change_deleted 232239728 1604794483
839 c
840 \change_inserted 232239728 1604794486
841 C
842 \change_unchanged
843 ontains graphics files that can be included in documents.
844  
845 \end_layout
846
847 \begin_layout Labeling
848 \labelwidthstring 00.00.0000
849 \begin_inset Flex Code
850 status collapsed
851
852 \begin_layout Plain Layout
853 doc/
854 \end_layout
855
856 \end_inset
857
858  
859 \change_deleted 232239728 1604794492
860 c
861 \change_inserted 232239728 1604794492
862 C
863 \change_unchanged
864 ontains \SpecialChar LyX
865  documentation files (including the one you are currently reading).
866  The file 
867 \begin_inset Flex Code
868 status collapsed
869
870 \begin_layout Plain Layout
871
872 \change_deleted 232239728 1604794660
873 \SpecialChar LaTeX
874
875 \change_inserted 232239728 1604794661
876 LaTex
877 \change_unchanged
878 Config.lyx
879 \end_layout
880
881 \end_inset
882
883  deserves special attention,
884  as noted above.
885  The internationalized help docs are in subdirectories 
886 \begin_inset Flex Code
887 status collapsed
888
889 \begin_layout Plain Layout
890 doc/xx
891 \end_layout
892
893 \end_inset
894
895  where 
896 \begin_inset Quotes eld
897 \end_inset
898
899 xx
900 \begin_inset Quotes erd
901 \end_inset
902
903  is the ISO language code.
904  See 
905 \begin_inset CommandInset ref
906 LatexCommand ref
907 reference "cha:Internationalizing-LyX"
908 nolink "false"
909
910 \end_inset
911
912  for details.
913 \end_layout
914
915 \begin_layout Labeling
916 \labelwidthstring 00.00.0000
917 \begin_inset Flex Code
918 status collapsed
919
920 \begin_layout Plain Layout
921 examples/
922 \end_layout
923
924 \end_inset
925
926  
927 \change_deleted 232239728 1604794497
928 c
929 \change_inserted 232239728 1604794497
930 C
931 \change_unchanged
932 ontains example files that explain how to use some features.
933  In the file browser,
934  press the 
935 \begin_inset Flex Noun
936 status collapsed
937
938 \begin_layout Plain Layout
939 Examples
940 \end_layout
941
942 \end_inset
943
944  button to get there.
945 \end_layout
946
947 \begin_layout Labeling
948 \labelwidthstring 00.00.0000
949 \begin_inset Flex Code
950 status collapsed
951
952 \begin_layout Plain Layout
953 images/
954 \end_layout
955
956 \end_inset
957
958  
959 \change_deleted 232239728 1604794500
960 c
961 \change_inserted 232239728 1604794500
962 C
963 \change_unchanged
964 ontains image files that are used by the 
965 \begin_inset Flex Noun
966 status collapsed
967
968 \begin_layout Plain Layout
969 Document
970 \end_layout
971
972 \end_inset
973
974  dialog.
975  In addition,
976  it also contains the individual icons used in the toolbar and the banners that can be shown when \SpecialChar LyX
977  is launched.
978 \end_layout
979
980 \begin_layout Labeling
981 \labelwidthstring 00.00.0000
982 \begin_inset Flex Code
983 status collapsed
984
985 \begin_layout Plain Layout
986 kbd/
987 \end_layout
988
989 \end_inset
990
991  
992 \change_deleted 232239728 1604794505
993 c
994 \change_inserted 232239728 1604794505
995 C
996 \change_unchanged
997 ontains keyboard keymapping files.
998  See 
999 \begin_inset CommandInset ref
1000 LatexCommand ref
1001 reference "sec:International-Keymap-Stuff"
1002 nolink "false"
1003
1004 \end_inset
1005
1006  for details.
1007 \end_layout
1008
1009 \begin_layout Labeling
1010 \labelwidthstring 00.00.0000
1011 \begin_inset Flex Code
1012 status collapsed
1013
1014 \begin_layout Plain Layout
1015 layouts/
1016 \end_layout
1017
1018 \end_inset
1019
1020  
1021 \change_deleted 232239728 1604794508
1022 c
1023 \change_inserted 232239728 1604794508
1024 C
1025 \change_unchanged
1026 ontains the text class and module files described in 
1027 \begin_inset CommandInset ref
1028 LatexCommand ref
1029 reference "cha:Installing-New-Document"
1030 nolink "false"
1031
1032 \end_inset
1033
1034 .
1035 \end_layout
1036
1037 \begin_layout Labeling
1038 \labelwidthstring 00.00.0000
1039 \begin_inset Flex Code
1040 status collapsed
1041
1042 \begin_layout Plain Layout
1043 lyx2lyx
1044 \end_layout
1045
1046 \end_inset
1047
1048  
1049 \change_deleted 232239728 1604794513
1050 c
1051 \change_inserted 232239728 1604794513
1052 C
1053 \change_unchanged
1054 ontains the 
1055 \begin_inset Flex Code
1056 status collapsed
1057
1058 \begin_layout Plain Layout
1059 lyx2lyx
1060 \end_layout
1061
1062 \end_inset
1063
1064  Python scripts used to convert between \SpecialChar LyX
1065  versions.
1066  These can be run from the command line if
1067 \change_deleted 232239728 1604794749
1068 ,
1069  say,
1070
1071 \change_unchanged
1072  you want to batch-convert files.
1073 \end_layout
1074
1075 \begin_layout Labeling
1076 \labelwidthstring 00.00.0000
1077 \begin_inset Flex Code
1078 status collapsed
1079
1080 \begin_layout Plain Layout
1081 scripts/
1082 \end_layout
1083
1084 \end_inset
1085
1086  
1087 \change_deleted 232239728 1604794516
1088 c
1089 \change_inserted 232239728 1604794516
1090 C
1091 \change_unchanged
1092 ontains some files that demonstrate the capabilities of the 
1093 \begin_inset Flex Noun
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097 External
1098 \begin_inset space ~
1099 \end_inset
1100
1101 Template
1102 \end_layout
1103
1104 \end_inset
1105
1106  feature.
1107  Also contains some scripts used by \SpecialChar LyX
1108  itself.
1109 \end_layout
1110
1111 \begin_layout Labeling
1112 \labelwidthstring 00.00.0000
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 templates/
1118 \end_layout
1119
1120 \end_inset
1121
1122  
1123 \change_deleted 232239728 1604794520
1124 c
1125 \change_inserted 232239728 1604794520
1126 C
1127 \change_unchanged
1128 ontains the standard \SpecialChar LyX
1129  template files described in 
1130 \begin_inset CommandInset ref
1131 LatexCommand ref
1132 reference "subsec:Creating-Templates"
1133 nolink "false"
1134
1135 \end_inset
1136
1137 .
1138 \end_layout
1139
1140 \begin_layout Labeling
1141 \labelwidthstring 00.00.0000
1142 \begin_inset Flex Code
1143 status collapsed
1144
1145 \begin_layout Plain Layout
1146 ui/
1147 \end_layout
1148
1149 \end_inset
1150
1151  
1152 \change_deleted 232239728 1604794524
1153 c
1154 \change_inserted 232239728 1604794524
1155 C
1156 \change_unchanged
1157 ontains files with the extension 
1158 \begin_inset Flex Code
1159 status collapsed
1160
1161 \begin_layout Plain Layout
1162 .ui
1163 \end_layout
1164
1165 \end_inset
1166
1167  that define the user interface to \SpecialChar LyX
1168 .
1169  That is,
1170  the files define which items appear in which menus and the items appearing on the toolbar.
1171 \end_layout
1172
1173 \begin_layout Labeling
1174 \labelwidthstring 00.00.0000
1175 \begin_inset Flex Code
1176 status collapsed
1177
1178 \begin_layout Plain Layout
1179 xtemplates/
1180 \end_layout
1181
1182 \end_inset
1183
1184  
1185 \change_deleted 232239728 1604794528
1186 c
1187 \change_inserted 232239728 1604794528
1188 C
1189 \change_unchanged
1190 ontains files with the extension 
1191 \begin_inset Flex Code
1192 status collapsed
1193
1194 \begin_layout Plain Layout
1195 .xtemplate
1196 \end_layout
1197
1198 \end_inset
1199
1200  which define the templates for the insertion of external material to a \SpecialChar LyX
1201  document;
1202  see 
1203 \begin_inset CommandInset ref
1204 LatexCommand ref
1205 reference "chap:Including-External-Material"
1206 nolink "false"
1207
1208 \end_inset
1209
1210 .
1211 \end_layout
1212
1213 \begin_layout Subsection
1214 Files you don't want to modify
1215 \end_layout
1216
1217 \begin_layout Standard
1218 These files are used internally by \SpecialChar LyX
1219  and you generally do not need to modify them unless you are a developer.
1220 \end_layout
1221
1222 \begin_layout Labeling
1223 \labelwidthstring 00.00.0000
1224 \begin_inset Flex Code
1225 status collapsed
1226
1227 \begin_layout Plain Layout
1228 CREDITS
1229 \end_layout
1230
1231 \end_inset
1232
1233  
1234 \change_deleted 232239728 1604797616
1235 t
1236 \change_inserted 232239728 1604797616
1237 T
1238 \change_unchanged
1239 his file contains the list of \SpecialChar LyX
1240  developers.
1241  The contents are displayed with the menu entry 
1242 \begin_inset Flex Noun
1243 status collapsed
1244
1245 \begin_layout Plain Layout
1246 Help\SpecialChar menuseparator
1247 About
1248 \begin_inset space ~
1249 \end_inset
1250
1251 LyX
1252 \end_layout
1253
1254 \end_inset
1255
1256 .
1257 \end_layout
1258
1259 \begin_layout Labeling
1260 \labelwidthstring 00.00.0000
1261 \begin_inset Flex Code
1262 status collapsed
1263
1264 \begin_layout Plain Layout
1265 chkconfig.ltx
1266 \end_layout
1267
1268 \end_inset
1269
1270  
1271 \change_deleted 232239728 1604797620
1272 t
1273 \change_inserted 232239728 1604797620
1274 T
1275 \change_unchanged
1276 his is a \SpecialChar LaTeX
1277  script used during the configuration process.
1278  Do not run directly.
1279 \end_layout
1280
1281 \begin_layout Labeling
1282 \labelwidthstring 00.00.0000
1283 \begin_inset Flex Code
1284 status collapsed
1285
1286 \begin_layout Plain Layout
1287 configure.py
1288 \end_layout
1289
1290 \end_inset
1291
1292  
1293 \change_deleted 232239728 1604797624
1294 t
1295 \change_inserted 232239728 1604797624
1296 T
1297 \change_unchanged
1298 his is a Python script that is used to re-configure \SpecialChar LyX
1299 .
1300  It creates configuration files in the directory it was run from.
1301 \end_layout
1302
1303 \begin_layout Subsection
1304 Other files needing a line or two
1305 \end_layout
1306
1307 \begin_layout Labeling
1308 \labelwidthstring 00.00.0000
1309 \begin_inset Flex Code
1310 status collapsed
1311
1312 \begin_layout Plain Layout
1313 encodings
1314 \end_layout
1315
1316 \end_inset
1317
1318  
1319 \change_deleted 232239728 1604797580
1320 t
1321 \change_inserted 232239728 1604797580
1322 T
1323 \change_unchanged
1324 his contains tables describing how different character encodings can be mapped to Unicode
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 languages
1334 \end_layout
1335
1336 \end_inset
1337
1338  
1339 \change_deleted 232239728 1604797584
1340 t
1341 \change_inserted 232239728 1604797584
1342 T
1343 \change_unchanged
1344 his file contains a list of all the languages currently supported by \SpecialChar LyX
1345 .
1346 \end_layout
1347
1348 \begin_layout Labeling
1349 \labelwidthstring 00.00.0000
1350 \begin_inset Flex Code
1351 status collapsed
1352
1353 \begin_layout Plain Layout
1354 latexfonts
1355 \end_layout
1356
1357 \end_inset
1358
1359  
1360 \change_deleted 232239728 1604797587
1361 c
1362 \change_inserted 232239728 1604797587
1363 C
1364 \change_unchanged
1365 ontains information about the supported fonts.
1366 \end_layout
1367
1368 \begin_layout Labeling
1369 \labelwidthstring 00.00.0000
1370 \begin_inset Flex Code
1371 status collapsed
1372
1373 \begin_layout Plain Layout
1374 layouttranslations
1375 \end_layout
1376
1377 \end_inset
1378
1379  
1380 \change_deleted 232239728 1604797591
1381 t
1382 \change_inserted 232239728 1604797591
1383 T
1384 \change_unchanged
1385 his file contains translations for internationalized paragraph styles (see 
1386 \begin_inset CommandInset ref
1387 LatexCommand ref
1388 reference "subsec:I18n"
1389 nolink "false"
1390
1391 \end_inset
1392
1393 ).
1394 \end_layout
1395
1396 \begin_layout Labeling
1397 \labelwidthstring 00.00.0000
1398 \begin_inset Flex Code
1399 status collapsed
1400
1401 \begin_layout Plain Layout
1402 unicodesymbols
1403 \end_layout
1404
1405 \end_inset
1406
1407  
1408 \change_deleted 232239728 1604797594
1409 t
1410 \change_inserted 232239728 1604797594
1411 T
1412 \change_unchanged
1413 his file contains information about Unicode-encoded glyphs and the way they are supported by \SpecialChar LyX
1414  via \SpecialChar LaTeX
1415 .
1416 \end_layout
1417
1418 \begin_layout Section
1419 Your local configuration directory
1420 \end_layout
1421
1422 \begin_layout Standard
1423 Even if you are using \SpecialChar LyX
1424  as an unprivileged user,
1425  you might want to change \SpecialChar LyX
1426  configuration for your own use.
1427  The 
1428 \begin_inset Flex Code
1429 status collapsed
1430
1431 \begin_layout Plain Layout
1432 UserDir
1433 \end_layout
1434
1435 \end_inset
1436
1437  directory contains all your personal configuration files.
1438  This is the directory described as 
1439 \begin_inset Quotes eld
1440 \end_inset
1441
1442 user directory
1443 \begin_inset Quotes erd
1444 \end_inset
1445
1446  in 
1447 \begin_inset Flex Noun
1448 status collapsed
1449
1450 \begin_layout Plain Layout
1451 Help\SpecialChar menuseparator
1452 About
1453 \begin_inset space ~
1454 \end_inset
1455
1456 LyX
1457 \end_layout
1458
1459 \end_inset
1460
1461 .
1462  This directory is used as a mirror of 
1463 \begin_inset Flex Code
1464 status collapsed
1465
1466 \begin_layout Plain Layout
1467 LyXDir
1468 \end_layout
1469
1470 \end_inset
1471
1472 ,
1473  which means that every file in 
1474 \begin_inset Flex Code
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 UserDir
1479 \end_layout
1480
1481 \end_inset
1482
1483  is a replacement for the corresponding file in 
1484 \begin_inset Flex Code
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488 LyXDir
1489 \end_layout
1490
1491 \end_inset
1492
1493 .
1494  Any configuration file described in the above sections can be placed either in the system-wide directory,
1495  in which case it will affect all users,
1496  or in your local directory for your own use.
1497 \end_layout
1498
1499 \begin_layout Standard
1500 To make things clearer,
1501  let's provide a few examples:
1502 \end_layout
1503
1504 \begin_layout Itemize
1505 The preferences set in the 
1506 \begin_inset Flex Noun
1507 status collapsed
1508
1509 \begin_layout Plain Layout
1510 Tools\SpecialChar menuseparator
1511 Preferences
1512 \end_layout
1513
1514 \end_inset
1515
1516  dialog are saved to a file 
1517 \begin_inset Flex Code
1518 status collapsed
1519
1520 \begin_layout Plain Layout
1521 preferences
1522 \end_layout
1523
1524 \end_inset
1525
1526  in 
1527 \begin_inset Flex Code
1528 status collapsed
1529
1530 \begin_layout Plain Layout
1531 UserDir
1532 \end_layout
1533
1534 \end_inset
1535
1536 .
1537 \end_layout
1538
1539 \begin_layout Itemize
1540 When you reconfigure using 
1541 \begin_inset Flex Noun
1542 status collapsed
1543
1544 \begin_layout Plain Layout
1545 Tools\SpecialChar menuseparator
1546 Reconfigure
1547 \end_layout
1548
1549 \end_inset
1550
1551 ,
1552  \SpecialChar LyX
1553  runs the 
1554 \begin_inset Flex Code
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558 configure.py
1559 \end_layout
1560
1561 \end_inset
1562
1563  script,
1564  and the resulting files are written in your local configuration directory.
1565  This means that any additional text class file that you might have added in 
1566 \begin_inset Flex Code
1567 status collapsed
1568
1569 \begin_layout Plain Layout
1570 UserDir/layouts
1571 \end_layout
1572
1573 \end_inset
1574
1575  will be added to the list of classes in the 
1576 \begin_inset Flex Noun
1577 status collapsed
1578
1579 \begin_layout Plain Layout
1580 Document\SpecialChar menuseparator
1581 Settings
1582 \end_layout
1583
1584 \end_inset
1585
1586  dialog.
1587 \end_layout
1588
1589 \begin_layout Itemize
1590 If you get some updated documentation from
1591 \change_inserted 232239728 1604798171
1592  a
1593 \change_unchanged
1594  \SpecialChar LyX
1595  ftp site and cannot install it because you do not have sysadmin rights on your system,
1596  you can just copy the files 
1597 \change_deleted 232239728 1604798193
1598 in
1599 \change_inserted 232239728 1604798193
1600 to
1601 \change_unchanged
1602  
1603 \begin_inset Flex Code
1604 status collapsed
1605
1606 \begin_layout Plain Layout
1607 UserDir/doc/
1608 \end_layout
1609
1610 \end_inset
1611
1612  and the items in the 
1613 \begin_inset Flex Noun
1614 status collapsed
1615
1616 \begin_layout Plain Layout
1617 Help
1618 \end_layout
1619
1620 \end_inset
1621
1622  menu will open them!
1623 \end_layout
1624
1625 \begin_layout Section
1626 Running \SpecialChar LyX
1627  with multiple configurations
1628 \end_layout
1629
1630 \begin_layout Standard
1631 The configuration freedom of the local configuration directory may not suffice if you want to have more than one configuration at your disposal.
1632  For example,
1633  you may want to 
1634 \change_deleted 232239728 1604798238
1635 be 
1636 \change_unchanged
1637 use different key bindings or printer settings at different times.
1638  You can achieve this by having several such directories.
1639  You then specify which directory to use at run-time.
1640 \end_layout
1641
1642 \begin_layout Standard
1643 Invoking \SpecialChar LyX
1644  with the command line switch 
1645 \begin_inset Flex Code
1646 status collapsed
1647
1648 \begin_layout Plain Layout
1649 -userdir
1650 \end_layout
1651
1652 \end_inset
1653
1654  
1655 \emph on
1656 <some directory>
1657 \emph default
1658  instructs the program to read the configuration from that directory,
1659  and not from the default directory.
1660  (You can determine the default directory by running \SpecialChar LyX
1661  without the 
1662 \begin_inset Flex Code
1663 status collapsed
1664
1665 \begin_layout Plain Layout
1666 -userdir
1667 \end_layout
1668
1669 \end_inset
1670
1671  switch.) If the specified directory does not exist,
1672  \SpecialChar LyX
1673  offers to create it for you,
1674  just like it does for the default directory 
1675 \change_deleted 232239728 1604798318
1676 on
1677 \change_unchanged
1678  the first time you run the program.
1679  You can modify the configuration options in this additional user directory exactly as you would for the default directory.
1680  These directories are completely independent (but read on).
1681  Note that setting the environment variable 
1682 \begin_inset Flex Code
1683 status collapsed
1684
1685 \begin_layout Plain Layout
1686 LYX_USERDIR_24x
1687 \end_layout
1688
1689 \end_inset
1690
1691  to some value has exactly the same effect.
1692 \end_layout
1693
1694 \begin_layout Standard
1695 Having several configurations also requires more maintenance:
1696  if you want to add a new layout to 
1697 \begin_inset Flex Code
1698 status collapsed
1699
1700 \begin_layout Plain Layout
1701 NewUserDir/layouts
1702 \end_layout
1703
1704 \end_inset
1705
1706  which you want available from all your configurations,
1707  you must add it to each directory separately.
1708  You can avoid this with the following trick:
1709  after \SpecialChar LyX
1710  creates the additional directory,
1711  most of the subdirectories (see above) are empty.
1712  If you want the new configuration to mirror an existing one,
1713  replace the empty subdirectory with a symbolic link to the matching subdirectory in the existing configuration.
1714  Take care with the 
1715 \begin_inset Flex Code
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 doc/
1720 \end_layout
1721
1722 \end_inset
1723
1724  subdirectory,
1725  however,
1726  since it contains a file written by the configuration script (also accessible through 
1727 \begin_inset Flex Noun
1728 status collapsed
1729
1730 \begin_layout Plain Layout
1731 Tools\SpecialChar menuseparator
1732 Reconfigure
1733 \end_layout
1734
1735 \end_inset
1736
1737 ) which is configuration
1738 \change_deleted 232239728 1604798083
1739 -
1740 \change_inserted 232239728 1604798100
1741  
1742 \change_unchanged
1743 specific.
1744 \end_layout
1745
1746 \begin_layout Chapter
1747 The Preferences dialog
1748 \end_layout
1749
1750 \begin_layout Standard
1751 All options of the preferences dialog are described in the Appendix 
1752 \emph on
1753 The Preferences Dialog
1754 \emph default
1755  in the 
1756 \emph on
1757 User's Guide
1758 \emph default
1759 .
1760  For some options you might find here more details.
1761 \end_layout
1762
1763 \begin_layout Section
1764 Formats
1765 \begin_inset CommandInset label
1766 LatexCommand label
1767 name "sec:Formats"
1768
1769 \end_inset
1770
1771
1772 \end_layout
1773
1774 \begin_layout Standard
1775 The first step is to define your file formats if they are not already defined.
1776  To do so,
1777  open the 
1778 \begin_inset Flex Noun
1779 status collapsed
1780
1781 \begin_layout Plain Layout
1782 Tools\SpecialChar menuseparator
1783 Preferences
1784 \end_layout
1785
1786 \end_inset
1787
1788  dialog.
1789  Under 
1790 \begin_inset Flex Noun
1791 status collapsed
1792
1793 \begin_layout Plain Layout
1794 File Handling\SpecialChar menuseparator
1795 File formats
1796 \end_layout
1797
1798 \end_inset
1799
1800  press the 
1801 \begin_inset Flex Noun
1802 status collapsed
1803
1804 \begin_layout Plain Layout
1805 New
1806 \end_layout
1807
1808 \end_inset
1809
1810  button to define your new format.
1811  The 
1812 \begin_inset Flex Noun
1813 status collapsed
1814
1815 \begin_layout Plain Layout
1816 Format
1817 \end_layout
1818
1819 \end_inset
1820
1821  field contains the name used to identify the format in the GUI.
1822  The 
1823 \begin_inset Flex Noun
1824 status collapsed
1825
1826 \begin_layout Plain Layout
1827 Short Name
1828 \end_layout
1829
1830 \end_inset
1831
1832  is used to identify the format internally.
1833  You will also need to enter a file extension.
1834  These are all required.
1835  The optional 
1836 \begin_inset Flex Noun
1837 status collapsed
1838
1839 \begin_layout Plain Layout
1840 Shortcut
1841 \end_layout
1842
1843 \end_inset
1844
1845  field is used to provide a keyboard shortcut on the menus.
1846  (For example,
1847  pressing 
1848 \begin_inset Flex Noun
1849 status collapsed
1850
1851 \begin_layout Plain Layout
1852 Ctrl+D
1853 \end_layout
1854
1855 \end_inset
1856
1857  will 
1858 \begin_inset Flex Noun
1859 status collapsed
1860
1861 \begin_layout Plain Layout
1862 Document\SpecialChar menuseparator
1863 View (Other Formats)\SpecialChar menuseparator
1864 DVI
1865 \end_layout
1866
1867 \end_inset
1868
1869 .) 
1870 \end_layout
1871
1872 \begin_layout Standard
1873 A Format can have a 
1874 \begin_inset Flex Noun
1875 status collapsed
1876
1877 \begin_layout Plain Layout
1878 Viewer
1879 \end_layout
1880
1881 \end_inset
1882
1883  and an 
1884 \begin_inset Flex Noun
1885 status collapsed
1886
1887 \begin_layout Plain Layout
1888 Editor
1889 \end_layout
1890
1891 \end_inset
1892
1893  associated with it.
1894  For example,
1895  you might want to use 
1896 \begin_inset Flex Noun
1897 status collapsed
1898
1899 \begin_layout Plain Layout
1900 Ghostview
1901 \end_layout
1902
1903 \end_inset
1904
1905  to view PostScript files.
1906  You can enter the command needed to start the program in the corresponding fields.
1907  In defining this command,
1908  you can use the four variables listed in the next section.
1909  The viewer is launched when you view an image in \SpecialChar LyX
1910  or use the 
1911 \begin_inset Flex Noun
1912 status collapsed
1913
1914 \begin_layout Plain Layout
1915 Document\SpecialChar menuseparator
1916 View
1917 \end_layout
1918
1919 \end_inset
1920
1921  menu.
1922  The editor is for example launched when you right-click on an image and choose 
1923 \begin_inset Flex Noun
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 Edit externally
1928 \end_layout
1929
1930 \end_inset
1931
1932  in the appearing context menu.
1933 \end_layout
1934
1935 \begin_layout Standard
1936 The 
1937 \begin_inset Flex Noun
1938 status collapsed
1939
1940 \begin_layout Plain Layout
1941 MIME
1942 \end_layout
1943
1944 \end_inset
1945
1946  type of a format is optional,
1947  but if it is specified,
1948  it must be unique across all formats.
1949  It is used to detect files of this format from the file contents.
1950  For some important file formats there is no MIME type officially registered with the 
1951 \begin_inset CommandInset href
1952 LatexCommand href
1953 name "IANA"
1954 target "http://www.iana.org/assignments/media-types/"
1955 literal "false"
1956
1957 \end_inset
1958
1959 .
1960  Therefore \SpecialChar LyX
1961  uses the extended list of MIME types as specified by 
1962 \begin_inset CommandInset href
1963 LatexCommand href
1964 name "freedesktop.org"
1965 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1966 literal "false"
1967
1968 \end_inset
1969
1970 .
1971 \end_layout
1972
1973 \begin_layout Standard
1974 The 
1975 \begin_inset Flex Noun
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 Document format
1980 \end_layout
1981
1982 \end_inset
1983
1984  option tells \SpecialChar LyX
1985  that a format is suitable for document export.
1986  If this is set and if a suitable conversion route exists (see 
1987 \begin_inset CommandInset ref
1988 LatexCommand ref
1989 reference "sec:Converters"
1990 nolink "false"
1991
1992 \end_inset
1993
1994 ),
1995  the format will appear in the 
1996 \begin_inset Flex Noun
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 File\SpecialChar menuseparator
2001 Export
2002 \end_layout
2003
2004 \end_inset
2005
2006  menu.
2007  The format will also appear in the 
2008 \begin_inset Flex Noun
2009 status collapsed
2010
2011 \begin_layout Plain Layout
2012 Document\SpecialChar menuseparator
2013 View
2014 \end_layout
2015
2016 \end_inset
2017
2018  menu if a viewer is specified for the format.
2019  Pure image formats,
2020  such as 
2021 \begin_inset Flex Code
2022 status collapsed
2023
2024 \begin_layout Plain Layout
2025 png
2026 \end_layout
2027
2028 \end_inset
2029
2030 ,
2031  should not use this option.
2032  Formats that can both represent vector graphics and documents like 
2033 \begin_inset Flex Code
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037 pdf
2038 \end_layout
2039
2040 \end_inset
2041
2042  should use it.
2043 \end_layout
2044
2045 \begin_layout Standard
2046 The option 
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 Vector graphics format
2052 \end_layout
2053
2054 \end_inset
2055
2056  tells \SpecialChar LyX
2057  that a format can contain vector graphics.
2058  This information is used to determine the target format of included graphics for 
2059 \begin_inset Flex Noun
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 pdflatex
2064 \end_layout
2065
2066 \end_inset
2067
2068  export.
2069  Included graphics may need to be converted to either 
2070 \begin_inset Flex Noun
2071 status collapsed
2072
2073 \begin_layout Plain Layout
2074 pdf
2075 \end_layout
2076
2077 \end_inset
2078
2079 ,
2080  
2081 \begin_inset Flex Noun
2082 status collapsed
2083
2084 \begin_layout Plain Layout
2085 png
2086 \end_layout
2087
2088 \end_inset
2089
2090 ,
2091  or 
2092 \begin_inset Flex Noun
2093 status collapsed
2094
2095 \begin_layout Plain Layout
2096 jpg
2097 \end_layout
2098
2099 \end_inset
2100
2101 ,
2102  since 
2103 \begin_inset Flex Noun
2104 status collapsed
2105
2106 \begin_layout Plain Layout
2107 pdflatex
2108 \end_layout
2109
2110 \end_inset
2111
2112  cannot handle other image formats.
2113  If an included graphic is not already in 
2114 \begin_inset Flex Noun
2115 status collapsed
2116
2117 \begin_layout Plain Layout
2118 pdf
2119 \end_layout
2120
2121 \end_inset
2122
2123 ,
2124  
2125 \begin_inset Flex Noun
2126 status collapsed
2127
2128 \begin_layout Plain Layout
2129 png
2130 \end_layout
2131
2132 \end_inset
2133
2134 ,
2135  or 
2136 \begin_inset Flex Noun
2137 status collapsed
2138
2139 \begin_layout Plain Layout
2140 jpg
2141 \end_layout
2142
2143 \end_inset
2144
2145  format,
2146  it is converted to 
2147 \begin_inset Flex Noun
2148 status collapsed
2149
2150 \begin_layout Plain Layout
2151 pdf
2152 \end_layout
2153
2154 \end_inset
2155
2156  if the vector format option is set,
2157  and otherwise to 
2158 \begin_inset Flex Noun
2159 status collapsed
2160
2161 \begin_layout Plain Layout
2162 png
2163 \end_layout
2164
2165 \end_inset
2166
2167 .
2168 \end_layout
2169
2170 \begin_layout Section
2171 Copiers
2172 \end_layout
2173
2174 \begin_layout Standard
2175 Since all conversions from one format to another take place in \SpecialChar LyX
2176 's temporary directory,
2177  it is sometimes necessary to modify a file before copying it to the temporary directory in order that the conversion may be performed.
2178 \begin_inset Foot
2179 status collapsed
2180
2181 \begin_layout Plain Layout
2182 For example,
2183  the file may refer to other files—
2184 images,
2185  for example—
2186 using relative file names,
2187  and these may become invalid when the file is copied to the temporary directory.
2188 \end_layout
2189
2190 \end_inset
2191
2192  This is done by a Copier:
2193  It copies a file to (or from) the temporary directory and may modify it in the process.
2194 \end_layout
2195
2196 \begin_layout Standard
2197 The definitions of the copiers may use eight variables:
2198 \end_layout
2199
2200 \begin_layout Labeling
2201 \labelwidthstring 00.00.0000
2202 \begin_inset Flex Code
2203 status collapsed
2204
2205 \begin_layout Plain Layout
2206 $$s
2207 \end_layout
2208
2209 \end_inset
2210
2211  The \SpecialChar LyX
2212  system directory (e.
2213 \begin_inset space \thinspace{}
2214 \end_inset
2215
2216 g.
2217 \begin_inset space \space{}
2218 \end_inset
2219
2220
2221 \begin_inset Flex Noun
2222 status collapsed
2223
2224 \begin_layout Plain Layout
2225 /usr/share/lyx
2226 \end_layout
2227
2228 \end_inset
2229
2230 ).
2231 \end_layout
2232
2233 \begin_layout Labeling
2234 \labelwidthstring 00.00.0000
2235 \begin_inset Flex Code
2236 status collapsed
2237
2238 \begin_layout Plain Layout
2239 $$i
2240 \end_layout
2241
2242 \end_inset
2243
2244  The input file
2245 \end_layout
2246
2247 \begin_layout Labeling
2248 \labelwidthstring 00.00.0000
2249 \begin_inset Flex Code
2250 status collapsed
2251
2252 \begin_layout Plain Layout
2253 $$o
2254 \end_layout
2255
2256 \end_inset
2257
2258  The output file
2259 \end_layout
2260
2261 \begin_layout Labeling
2262 \labelwidthstring 00.00.0000
2263 \begin_inset Flex Code
2264 status collapsed
2265
2266 \begin_layout Plain Layout
2267 $$b
2268 \end_layout
2269
2270 \end_inset
2271
2272  The base name (without filename extension) in the \SpecialChar LyX
2273  temporary directory
2274 \end_layout
2275
2276 \begin_layout Labeling
2277 \labelwidthstring 00.00.0000
2278 \begin_inset Flex Code
2279 status collapsed
2280
2281 \begin_layout Plain Layout
2282 $$p
2283 \end_layout
2284
2285 \end_inset
2286
2287  The full directory path of the \SpecialChar LyX
2288  temporary directory
2289 \end_layout
2290
2291 \begin_layout Labeling
2292 \labelwidthstring 00.00.0000
2293 \begin_inset Flex Code
2294 status collapsed
2295
2296 \begin_layout Plain Layout
2297 $$r
2298 \end_layout
2299
2300 \end_inset
2301
2302  The full pathname to the original \SpecialChar LyX
2303  file being processed
2304 \end_layout
2305
2306 \begin_layout Labeling
2307 \labelwidthstring 00.00.0000
2308 \begin_inset Flex Code
2309 status collapsed
2310
2311 \begin_layout Plain Layout
2312 $$f
2313 \end_layout
2314
2315 \end_inset
2316
2317  The filename (without any directory path) of the \SpecialChar LyX
2318  file.
2319 \end_layout
2320
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Flex Code
2324 status collapsed
2325
2326 \begin_layout Plain Layout
2327 $$l
2328 \end_layout
2329
2330 \end_inset
2331
2332  The `\SpecialChar LaTeX
2333  name'
2334 \end_layout
2335
2336 \begin_layout Standard
2337 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2338 's 
2339 \series bold
2340
2341 \backslash
2342 include
2343 \series default
2344  command.
2345  It is relevant only when exporting files suitable for such inclusion.
2346 \end_layout
2347
2348 \begin_layout Standard
2349 Copiers can be used to do almost anything with output files.
2350  For example,
2351  suppose you want generated pdf files to be copied to a special directory,
2352  
2353 \begin_inset Flex Code
2354 status collapsed
2355
2356 \begin_layout Plain Layout
2357 /home/you/pdf/
2358 \end_layout
2359
2360 \end_inset
2361
2362 .
2363  Then you could write a shell script such as this one:
2364 \end_layout
2365
2366 \begin_layout Standard
2367 \begin_inset listings
2368 inline false
2369 status open
2370
2371 \begin_layout Plain Layout
2372
2373 #!/bin/bash
2374 \end_layout
2375
2376 \begin_layout Plain Layout
2377
2378 FROMFILE=$1
2379 \end_layout
2380
2381 \begin_layout Plain Layout
2382
2383 TOFILE=`basename $2`
2384 \end_layout
2385
2386 \begin_layout Plain Layout
2387
2388 cp $FROMFILE /home/you/pdf/$TOFILE
2389 \end_layout
2390
2391 \end_inset
2392
2393 Save it in your local \SpecialChar LyX
2394  directory—
2395 say,
2396  
2397 \begin_inset Flex Code
2398 status collapsed
2399
2400 \begin_layout Plain Layout
2401 /home/you/.lyx/scripts/pdfcopier.sh
2402 \end_layout
2403
2404 \end_inset
2405
2406
2407 and make it executable,
2408  if you need to do so on your platform.
2409  Then,
2410  in the 
2411 \begin_inset Flex Noun
2412 status collapsed
2413
2414 \begin_layout Plain Layout
2415 Tools\SpecialChar menuseparator
2416 Preferences
2417 \end_layout
2418
2419 \end_inset
2420
2421  dialog,
2422  select under 
2423 \begin_inset Flex Noun
2424 status collapsed
2425
2426 \begin_layout Plain Layout
2427 File Handling\SpecialChar menuseparator
2428 File formats
2429 \end_layout
2430
2431 \end_inset
2432
2433  the 
2434 \begin_inset Flex Noun
2435 status collapsed
2436
2437 \begin_layout Plain Layout
2438 PDF(pdflatex)
2439 \end_layout
2440
2441 \end_inset
2442
2443  format—
2444 or one of the other pdf formats—
2445 and enter 
2446 \begin_inset Flex Code
2447 status collapsed
2448
2449 \begin_layout Plain Layout
2450 pdfcopier.sh $$i $$o
2451 \end_layout
2452
2453 \end_inset
2454
2455  into the 
2456 \begin_inset Flex Noun
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 Copier
2461 \end_layout
2462
2463 \end_inset
2464
2465  field.
2466  
2467 \end_layout
2468
2469 \begin_layout Standard
2470 Copiers are used by \SpecialChar LyX
2471  in various of its own conversions.
2472  For example,
2473  if appropriate programs are found,
2474  \SpecialChar LyX
2475  will automatically install copiers for the 
2476 \begin_inset Flex Noun
2477 status collapsed
2478
2479 \begin_layout Plain Layout
2480 HTML
2481 \end_layout
2482
2483 \end_inset
2484
2485  and 
2486 \begin_inset Flex Noun
2487 status collapsed
2488
2489 \begin_layout Plain Layout
2490 HTML
2491 \begin_inset space ~
2492 \end_inset
2493
2494 (MS Word)
2495 \end_layout
2496
2497 \end_inset
2498
2499  formats.
2500  When these formats are exported,
2501  the copier sees that not just the main HTML file but various associated files (style files,
2502  images,
2503  etc.) are also copied.
2504  All these files are written to a subdirectory of the directory in which the original \SpecialChar LyX
2505  file was found.
2506 \begin_inset Foot
2507 status collapsed
2508
2509 \begin_layout Plain Layout
2510 This copier can be customized.
2511  The optional 
2512 \begin_inset Quotes eld
2513 \end_inset
2514
2515 -e
2516 \begin_inset Quotes erd
2517 \end_inset
2518
2519  argument takes a comma-separated list of extensions to be copied;
2520  if it is omitted,
2521  all files will be copied.
2522  The 
2523 \begin_inset Quotes eld
2524 \end_inset
2525
2526 -t
2527 \begin_inset Quotes erd
2528 \end_inset
2529
2530  argument determines the extension added to the generated directory.
2531  By default,
2532  it is 
2533 \begin_inset Quotes eld
2534 \end_inset
2535
2536
2537 \begin_inset Flex Noun
2538 status collapsed
2539
2540 \begin_layout Plain Layout
2541 LyXconv
2542 \end_layout
2543
2544 \end_inset
2545
2546
2547 \begin_inset Quotes erd
2548 \end_inset
2549
2550 ,
2551  so HTML generated from 
2552 \begin_inset Flex Noun
2553 status collapsed
2554
2555 \begin_layout Plain Layout
2556 /path/to/filename.lyx
2557 \end_layout
2558
2559 \end_inset
2560
2561  will end up in 
2562 \begin_inset Flex Noun
2563 status collapsed
2564
2565 \begin_layout Plain Layout
2566 /path/to/filename.html.LyXconv
2567 \end_layout
2568
2569 \end_inset
2570
2571 .
2572  
2573 \end_layout
2574
2575 \end_inset
2576
2577
2578 \end_layout
2579
2580 \begin_layout Section
2581 Converters
2582 \begin_inset CommandInset label
2583 LatexCommand label
2584 name "sec:Converters"
2585
2586 \end_inset
2587
2588
2589 \end_layout
2590
2591 \begin_layout Standard
2592 You can define your own Converters to convert files between different formats.
2593  This is done in the 
2594 \begin_inset Flex Noun
2595 status collapsed
2596
2597 \begin_layout Plain Layout
2598 Tools\SpecialChar menuseparator
2599 Preferences\SpecialChar menuseparator
2600 File Handling\SpecialChar menuseparator
2601 Converters
2602 \end_layout
2603
2604 \end_inset
2605
2606  dialog.
2607 \end_layout
2608
2609 \begin_layout Standard
2610 To define a new converter,
2611  select the 
2612 \begin_inset Flex Noun
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616 From
2617 \begin_inset space ~
2618 \end_inset
2619
2620 format
2621 \end_layout
2622
2623 \end_inset
2624
2625  and 
2626 \begin_inset Flex Noun
2627 status collapsed
2628
2629 \begin_layout Plain Layout
2630 To
2631 \begin_inset space ~
2632 \end_inset
2633
2634 format
2635 \end_layout
2636
2637 \end_inset
2638
2639  from the drop-down lists,
2640  enter the command needed for the conversion,
2641  and then press the 
2642 \begin_inset Flex Noun
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646 Add
2647 \end_layout
2648
2649 \end_inset
2650
2651  button.
2652  Several variables can be used in the definition of converters:
2653 \end_layout
2654
2655 \begin_layout Labeling
2656 \labelwidthstring 00.00.0000
2657 \begin_inset Flex Code
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 $$s
2662 \end_layout
2663
2664 \end_inset
2665
2666  The \SpecialChar LyX
2667  system directory
2668 \end_layout
2669
2670 \begin_layout Labeling
2671 \labelwidthstring 00.00.0000
2672 \begin_inset Flex Code
2673 status collapsed
2674
2675 \begin_layout Plain Layout
2676 $$i
2677 \end_layout
2678
2679 \end_inset
2680
2681  The input file
2682 \end_layout
2683
2684 \begin_layout Labeling
2685 \labelwidthstring 00.00.0000
2686 \begin_inset Flex Code
2687 status collapsed
2688
2689 \begin_layout Plain Layout
2690 $$o
2691 \end_layout
2692
2693 \end_inset
2694
2695  The output file
2696 \end_layout
2697
2698 \begin_layout Labeling
2699 \labelwidthstring 00.00.0000
2700 \begin_inset Flex Code
2701 status collapsed
2702
2703 \begin_layout Plain Layout
2704 $$b
2705 \end_layout
2706
2707 \end_inset
2708
2709  The base filename of the input file (i.
2710 \begin_inset space \thinspace{}
2711 \end_inset
2712
2713 g.,
2714  without the extension)
2715 \end_layout
2716
2717 \begin_layout Labeling
2718 \labelwidthstring 00.00.0000
2719 \begin_inset Flex Code
2720 status collapsed
2721
2722 \begin_layout Plain Layout
2723 $$p
2724 \end_layout
2725
2726 \end_inset
2727
2728  The path to the input file
2729 \end_layout
2730
2731 \begin_layout Labeling
2732 \labelwidthstring 00.00.0000
2733 \begin_inset Flex Code
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 $$r
2738 \end_layout
2739
2740 \end_inset
2741
2742  The path to the original input file (this is different from $$p when a chain of converters is called)
2743 \end_layout
2744
2745 \begin_layout Labeling
2746 \labelwidthstring 00.00.0000
2747 \begin_inset Flex Code
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 $$e
2752 \end_layout
2753
2754 \end_inset
2755
2756  The iconv name for the encoding of the document.
2757 \end_layout
2758
2759 \begin_layout Standard
2760 In the 
2761 \begin_inset Flex Noun
2762 status collapsed
2763
2764 \begin_layout Plain Layout
2765 Extra
2766 \begin_inset space ~
2767 \end_inset
2768
2769 Flag
2770 \end_layout
2771
2772 \end_inset
2773
2774  field you can enter the following flags,
2775  separated by commas:
2776 \end_layout
2777
2778 \begin_layout Labeling
2779 \labelwidthstring 00.00.0000
2780 \begin_inset Flex Code
2781 status collapsed
2782
2783 \begin_layout Plain Layout
2784 latex
2785 \change_inserted -712698321 1524656940
2786 =flavor
2787 \change_unchanged
2788
2789 \end_layout
2790
2791 \end_inset
2792
2793  This converter runs some form of \SpecialChar LaTeX
2794 .
2795  This will make \SpecialChar LyX
2796 's \SpecialChar LaTeX
2797  error logs available.
2798
2799 \change_inserted -712698321 1524657018
2800  The optional 
2801 \begin_inset Flex Code
2802 status open
2803
2804 \begin_layout Plain Layout
2805
2806 \change_inserted -712698321 1524657012
2807 flavor
2808 \change_unchanged
2809
2810 \end_layout
2811
2812 \end_inset
2813
2814  value specifies the form of \SpecialChar LaTeX
2815  that is run (
2816 \begin_inset Flex Code
2817 status open
2818
2819 \begin_layout Plain Layout
2820
2821 \change_inserted -712698321 1524657005
2822 latex,
2823  pdflatex,
2824  platex,
2825  xetex,
2826  luatex
2827 \change_unchanged
2828
2829 \end_layout
2830
2831 \end_inset
2832
2833 ).
2834  If no value is specified,
2835  
2836 \begin_inset Flex Code
2837 status open
2838
2839 \begin_layout Plain Layout
2840
2841 \change_inserted -712698321 1524657018
2842 latex
2843 \change_unchanged
2844
2845 \end_layout
2846
2847 \end_inset
2848
2849  is used.
2850 \change_unchanged
2851
2852 \end_layout
2853
2854 \begin_layout Labeling
2855 \labelwidthstring 00.00.0000
2856
2857 \change_inserted -712698321 1676553236
2858 \begin_inset Flex Code
2859 status collapsed
2860
2861 \begin_layout Plain Layout
2862
2863 \change_inserted -712698321 1676552303
2864 needauth
2865 \change_unchanged
2866
2867 \end_layout
2868
2869 \end_inset
2870
2871  This converter is considered non-safe and needs authorization by the user.
2872  Depending on the settings in 
2873 \family sans
2874 Tools\SpecialChar menuseparator
2875 Preferences\SpecialChar menuseparator
2876 File Handling\SpecialChar menuseparator
2877 Converters
2878 \family default
2879 ,
2880  users will (a.) be asked whether they trust the current document temporarily,
2881  permanently,
2882  or not,
2883  (b.) be informed that conversion is not possible due to security concerns,
2884  or (c.) not be informed as they gave permanent consent.
2885  Set this flag for converters that might execute arbitrary programs.
2886 \end_layout
2887
2888 \begin_layout Labeling
2889 \labelwidthstring 00.00.0000
2890 \begin_inset Flex Code
2891 status collapsed
2892
2893 \begin_layout Plain Layout
2894 needaux
2895 \change_inserted -712698321 1524656935
2896 =flavor
2897 \change_unchanged
2898
2899 \end_layout
2900
2901 \end_inset
2902
2903  Needs the \SpecialChar LaTeX
2904  
2905 \begin_inset Flex Noun
2906 status collapsed
2907
2908 \begin_layout Plain Layout
2909 .aux
2910 \end_layout
2911
2912 \end_inset
2913
2914  file for the conversion.
2915
2916 \change_inserted -712698321 1524657047
2917  The optional 
2918 \begin_inset Flex Code
2919 status open
2920
2921 \begin_layout Plain Layout
2922
2923 \change_inserted -712698321 1524657030
2924 flavor
2925 \change_unchanged
2926
2927 \end_layout
2928
2929 \end_inset
2930
2931  value specifies the form of \SpecialChar LaTeX
2932  that is run in order to generate the 
2933 \begin_inset Flex Noun
2934 status collapsed
2935
2936 \begin_layout Plain Layout
2937
2938 \change_inserted -712698321 1524657047
2939 .aux
2940 \change_unchanged
2941
2942 \end_layout
2943
2944 \end_inset
2945
2946  file (
2947 \begin_inset Flex Code
2948 status open
2949
2950 \begin_layout Plain Layout
2951
2952 \change_inserted -712698321 1524657030
2953 latex,
2954  pdflatex,
2955  platex,
2956  xetex,
2957  luatex
2958 \change_unchanged
2959
2960 \end_layout
2961
2962 \end_inset
2963
2964 ).
2965  If no value is specified,
2966  
2967 \begin_inset Flex Code
2968 status open
2969
2970 \begin_layout Plain Layout
2971
2972 \change_inserted -712698321 1524657030
2973 latex
2974 \change_unchanged
2975
2976 \end_layout
2977
2978 \end_inset
2979
2980  is used.
2981 \change_unchanged
2982
2983 \end_layout
2984
2985 \begin_layout Labeling
2986 \labelwidthstring 00.00.0000
2987 \begin_inset Flex Code
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 nice
2992 \end_layout
2993
2994 \end_inset
2995
2996  Needs a 
2997 \begin_inset Quotes eld
2998 \end_inset
2999
3000 nice
3001 \begin_inset Quotes erd
3002 \end_inset
3003
3004  file from the backend,
3005  which in practice means a \SpecialChar LaTeX
3006  file like the one we would export,
3007  without 
3008 \begin_inset Flex Code
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 input@path
3013 \end_layout
3014
3015 \end_inset
3016
3017 .
3018 \end_layout
3019
3020 \begin_layout Labeling
3021 \labelwidthstring 00.00.0000
3022 \begin_inset Flex Code
3023 status collapsed
3024
3025 \begin_layout Plain Layout
3026 xml
3027 \end_layout
3028
3029 \end_inset
3030
3031  Output is XML.
3032 \end_layout
3033
3034 \begin_layout Standard
3035 The following three flags are not really flags at all because they take an argument in the 
3036 \begin_inset Flex Noun
3037 status collapsed
3038
3039 \begin_layout Plain Layout
3040 key
3041 \begin_inset space ~
3042 \end_inset
3043
3044 =
3045 \begin_inset space ~
3046 \end_inset
3047
3048 value
3049 \end_layout
3050
3051 \end_inset
3052
3053  format:
3054 \end_layout
3055
3056 \begin_layout Labeling
3057 \labelwidthstring 00.00.0000
3058
3059 \change_inserted -712698321 1523206314
3060 \begin_inset Flex Code
3061 status collapsed
3062
3063 \begin_layout Plain Layout
3064
3065 \change_inserted -712698321 1523206193
3066 hyperref-driver
3067 \change_unchanged
3068
3069 \end_layout
3070
3071 \end_inset
3072
3073  The name of the driver that needs to be loaded with the 
3074 \family sans
3075 hyperref
3076 \family default
3077  package for this converter.
3078  The loading of the correct driver is necessary to get some PDF-specific features.
3079  See the 
3080 \family sans
3081 hyperref
3082 \family default
3083  manual for details.
3084 \end_layout
3085
3086 \begin_layout Labeling
3087 \labelwidthstring 00.00.0000
3088 \begin_inset Flex Code
3089 status collapsed
3090
3091 \begin_layout Plain Layout
3092 parselog
3093 \end_layout
3094
3095 \end_inset
3096
3097  If set,
3098  the converter's standard error will be redirected to a file 
3099 \begin_inset Flex Code
3100 status collapsed
3101
3102 \begin_layout Plain Layout
3103 infile.out
3104 \end_layout
3105
3106 \end_inset
3107
3108 ,
3109  and the script given as argument will be run as:
3110  
3111 \begin_inset Flex Code
3112 status collapsed
3113
3114 \begin_layout Plain Layout
3115 script < infile.out > infile.log
3116 \end_layout
3117
3118 \end_inset
3119
3120 .
3121  The argument may contain 
3122 \begin_inset Flex Code
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 $$s
3127 \end_layout
3128
3129 \end_inset
3130
3131 .
3132 \end_layout
3133
3134 \begin_layout Labeling
3135 \labelwidthstring 00.00.0000
3136 \begin_inset Flex Code
3137 status collapsed
3138
3139 \begin_layout Plain Layout
3140 resultdir
3141 \end_layout
3142
3143 \end_inset
3144
3145  The name of the directory in which the converter will dump the generated files.
3146  \SpecialChar LyX
3147  will not create this directory,
3148  and it does not copy anything into it,
3149  though it will copy this directory to the destination.
3150  The argument may contain 
3151 \begin_inset Flex Code
3152 status collapsed
3153
3154 \begin_layout Plain Layout
3155 $$b
3156 \end_layout
3157
3158 \end_inset
3159
3160 ,
3161  which will be replaced by the base name of the input and output files,
3162  respectively,
3163  when the directory is copied.
3164 \begin_inset Newline newline
3165 \end_inset
3166
3167 Note that resultdir and usetempdir make no sense together.
3168  The latter will be ignored if the former is given.
3169 \end_layout
3170
3171 \begin_layout Labeling
3172 \labelwidthstring 00.00.0000
3173 \begin_inset Flex Code
3174 status collapsed
3175
3176 \begin_layout Plain Layout
3177 resultfile
3178 \end_layout
3179
3180 \end_inset
3181
3182  Determines the output file name and may,
3183  contain 
3184 \begin_inset Flex Code
3185 status collapsed
3186
3187 \begin_layout Plain Layout
3188 $$b
3189 \end_layout
3190
3191 \end_inset
3192
3193 .
3194  Sensible only with resultdir and optional even then;
3195  if not given,
3196  it defaults to `index'.
3197 \end_layout
3198
3199 \begin_layout Standard
3200
3201 \change_inserted -712698321 1523206384
3202 A suitable hyperref-driver is set for some converters that are installed with \SpecialChar LyX
3203 .
3204  
3205 \change_deleted -712698321 1523206388
3206 None of these
3207 \change_inserted -712698321 1523206389
3208 The
3209 \change_unchanged
3210  last three
3211 \change_inserted -712698321 1523206400
3212  flags,
3213  however,
3214
3215 \change_unchanged
3216  are presently 
3217 \change_inserted -712698321 1523206407
3218 not 
3219 \change_unchanged
3220 used in any of the 
3221 \change_inserted -712698321 1523206437
3222 pre-installed 
3223 \change_unchanged
3224 converters
3225 \change_deleted -712698321 1523206442
3226  that are installed with \SpecialChar LyX
3227
3228 \change_unchanged
3229 .
3230  
3231 \end_layout
3232
3233 \begin_layout Standard
3234 You do not have to define converters for all formats between which you want to convert.
3235  For example,
3236  you will note that there is no `\SpecialChar LyX
3237  to PostScript' converter,
3238  but \SpecialChar LyX
3239  will export PostScript.
3240  It does so by first creating a \SpecialChar LaTeX
3241  file (no converter needs to be defined for this) which is then converted to DVI using the `\SpecialChar LaTeX
3242  to DVI' converter,
3243  and finally converting the resulting DVI file to PostScript.
3244  \SpecialChar LyX
3245  finds such `chains' of converters automatically,
3246  and it will always choose the shortest possible chain.
3247  You can,
3248  though,
3249  still define multiple conversion methods between file formats.
3250  For example,
3251  the standard \SpecialChar LyX
3252  configuration provides five ways to convert \SpecialChar LaTeX
3253  to PDF:
3254 \end_layout
3255
3256 \begin_layout Enumerate
3257 Directly,
3258  using 
3259 \begin_inset Flex Noun
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 pdflatex
3264 \end_layout
3265
3266 \end_inset
3267
3268
3269 \end_layout
3270
3271 \begin_layout Enumerate
3272 via (DVI and) PostScript,
3273  using 
3274 \begin_inset Flex Noun
3275 status collapsed
3276
3277 \begin_layout Plain Layout
3278 ps2pdf
3279 \end_layout
3280
3281 \end_inset
3282
3283
3284 \end_layout
3285
3286 \begin_layout Enumerate
3287 via DVI,
3288  using 
3289 \begin_inset Flex Noun
3290 status collapsed
3291
3292 \begin_layout Plain Layout
3293 dvipdfm
3294 \end_layout
3295
3296 \end_inset
3297
3298
3299 \end_layout
3300
3301 \begin_layout Enumerate
3302 directly using 
3303 \begin_inset Flex Noun
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307 Xe\SpecialChar TeX
3308
3309 \end_layout
3310
3311 \end_inset
3312
3313
3314 \end_layout
3315
3316 \begin_layout Enumerate
3317 directly using 
3318 \begin_inset Flex Noun
3319 status collapsed
3320
3321 \begin_layout Plain Layout
3322 Lua\SpecialChar TeX
3323
3324 \end_layout
3325
3326 \end_inset
3327
3328
3329 \end_layout
3330
3331 \begin_layout Standard
3332 To define such alternate chains,
3333  you must define multiple target `file formats',
3334  as described in 
3335 \begin_inset CommandInset ref
3336 LatexCommand ref
3337 reference "sec:Formats"
3338 nolink "false"
3339
3340 \end_inset
3341
3342 .
3343  For example,
3344  in the standard configuration,
3345  the formats named 
3346 \begin_inset Flex Noun
3347 status collapsed
3348
3349 \begin_layout Plain Layout
3350 pdf
3351 \end_layout
3352
3353 \end_inset
3354
3355  (for 
3356 \begin_inset Flex Noun
3357 status collapsed
3358
3359 \begin_layout Plain Layout
3360 ps2pdf
3361 \end_layout
3362
3363 \end_inset
3364
3365 ),
3366  
3367 \begin_inset Flex Noun
3368 status collapsed
3369
3370 \begin_layout Plain Layout
3371 pdf2
3372 \end_layout
3373
3374 \end_inset
3375
3376  (for 
3377 \begin_inset Flex Noun
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 pdflatex
3382 \end_layout
3383
3384 \end_inset
3385
3386 ),
3387  
3388 \begin_inset Flex Noun
3389 status collapsed
3390
3391 \begin_layout Plain Layout
3392 pdf3
3393 \end_layout
3394
3395 \end_inset
3396
3397  (for 
3398 \begin_inset Flex Noun
3399 status collapsed
3400
3401 \begin_layout Plain Layout
3402 dvipdfm
3403 \end_layout
3404
3405 \end_inset
3406
3407 ),
3408  
3409 \begin_inset Flex Noun
3410 status collapsed
3411
3412 \begin_layout Plain Layout
3413 pdf4
3414 \end_layout
3415
3416 \end_inset
3417
3418  (for 
3419 \begin_inset Flex Noun
3420 status collapsed
3421
3422 \begin_layout Plain Layout
3423 Xe\SpecialChar TeX
3424
3425 \end_layout
3426
3427 \end_inset
3428
3429 ),
3430  and 
3431 \begin_inset Flex Noun
3432 status collapsed
3433
3434 \begin_layout Plain Layout
3435 pdf5
3436 \end_layout
3437
3438 \end_inset
3439
3440  (for 
3441 \begin_inset Flex Noun
3442 status collapsed
3443
3444 \begin_layout Plain Layout
3445 Lua\SpecialChar TeX
3446
3447 \end_layout
3448
3449 \end_inset
3450
3451 ) are defined,
3452  all of which share the extension 
3453 \begin_inset Flex Noun
3454 status collapsed
3455
3456 \begin_layout Plain Layout
3457 .pdf
3458 \end_layout
3459
3460 \end_inset
3461
3462 ,
3463  and which correspond to the conversion methods just mentioned.
3464 \end_layout
3465
3466 \begin_layout Chapter
3467 Internationalizing \SpecialChar LyX
3468
3469 \begin_inset CommandInset label
3470 LatexCommand label
3471 name "cha:Internationalizing-LyX"
3472
3473 \end_inset
3474
3475
3476 \end_layout
3477
3478 \begin_layout Standard
3479 \SpecialChar LyX
3480  supports using a translated interface.
3481  Last time we checked,
3482  \SpecialChar LyX
3483  provided text in thirty languages.
3484  The language of choice is called your 
3485 \emph on
3486 locale
3487 \emph default
3488 .
3489  (For further reading on locale settings,
3490  see also the documentation for locale that comes with your operating system.
3491  For Linux,
3492  the manual page for 
3493 \begin_inset Flex Code
3494 status collapsed
3495
3496 \begin_layout Plain Layout
3497 locale(5)
3498 \end_layout
3499
3500 \end_inset
3501
3502  could be a good place to start).
3503 \end_layout
3504
3505 \begin_layout Standard
3506 Notice that these translations will work,
3507  but do contain a few flaws.
3508  In particular,
3509  all dialogs have been designed with the English text in mind,
3510  which means that some of the translated text will be too large to fit within the space allocated.
3511  This is only a display problem and will not cause any harm.
3512  Also,
3513  you will find that some of the translations do not define shortcut keys for everything.
3514  Sometimes,
3515  there are simply not enough free letters to do it.
3516  Other times,
3517  the translator just hasn't got around to doing it yet.
3518  Our localization team,
3519  which you may wish to join,
3520 \begin_inset Foot
3521 status collapsed
3522
3523 \begin_layout Plain Layout
3524 If you are a fluent speaker of a language other than English,
3525  joining these teams is a great way to give back to the \SpecialChar LyX
3526  community!
3527 \end_layout
3528
3529 \end_inset
3530
3531  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3532 .
3533 \end_layout
3534
3535 \begin_layout Section
3536 Translating \SpecialChar LyX
3537
3538 \end_layout
3539
3540 \begin_layout Subsection
3541 Translating the graphical user interface (text messages).
3542 \end_layout
3543
3544 \begin_layout Standard
3545 \SpecialChar LyX
3546  uses the GNU 
3547 \begin_inset Flex Code
3548 status collapsed
3549
3550 \begin_layout Plain Layout
3551 gettext
3552 \end_layout
3553
3554 \end_inset
3555
3556  library to handle the internationalization of the interface.
3557  To have \SpecialChar LyX
3558  speak your favorite language in all menus and dialogs,
3559  you need a 
3560 \begin_inset Flex Code
3561 status collapsed
3562
3563 \begin_layout Plain Layout
3564 po
3565 \end_layout
3566
3567 \end_inset
3568
3569 -file for that language.
3570  When this is available,
3571  you'll have to generate a 
3572 \begin_inset Flex Code
3573 status collapsed
3574
3575 \begin_layout Plain Layout
3576 mo
3577 \end_layout
3578
3579 \end_inset
3580
3581 -file from it and install the 
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 mo
3587 \end_layout
3588
3589 \end_inset
3590
3591 -file.
3592  The process of doing all of this is explained in the documentation for GNU 
3593 \begin_inset Flex Code
3594 status collapsed
3595
3596 \begin_layout Plain Layout
3597 gettext
3598 \end_layout
3599
3600 \end_inset
3601
3602 .
3603  It is possible to do this just for yourself,
3604  but if you're going to do it,
3605  you might as well share the results of your labors with the rest of the \SpecialChar LyX
3606  community.
3607  Send a message to the \SpecialChar LyX
3608  developers' list for more information about how to proceed.
3609 \end_layout
3610
3611 \begin_layout Standard
3612 In short,
3613  this is what you should do (xx denotes the language code):
3614 \end_layout
3615
3616 \begin_layout Itemize
3617 Check out the \SpecialChar LyX
3618  source code.
3619  (See the 
3620 \begin_inset CommandInset href
3621 LatexCommand href
3622 name "information on the web"
3623 target "https://www.lyx.org/HowToUseGIT"
3624 literal "false"
3625
3626 \end_inset
3627
3628 .)
3629 \end_layout
3630
3631 \begin_layout Itemize
3632 Copy the file 
3633 \begin_inset Flex Code
3634 status collapsed
3635
3636 \begin_layout Plain Layout
3637 lyx.pot
3638 \end_layout
3639
3640 \end_inset
3641
3642  to the folder of the 
3643 \begin_inset Flex Code
3644 status collapsed
3645
3646 \begin_layout Plain Layout
3647 **.po
3648 \end_layout
3649
3650 \end_inset
3651
3652  files.
3653  Then rename it to 
3654 \begin_inset Flex Code
3655 status collapsed
3656
3657 \begin_layout Plain Layout
3658 xx.po
3659 \end_layout
3660
3661 \end_inset
3662
3663 .
3664  (If 
3665 \begin_inset Flex Code
3666 status collapsed
3667
3668 \begin_layout Plain Layout
3669 lyx.pot
3670 \end_layout
3671
3672 \end_inset
3673
3674  doesn't exist anywhere,
3675  it can be remade with the console command 
3676 \begin_inset Flex Code
3677 status collapsed
3678
3679 \begin_layout Plain Layout
3680 make lyx.pot
3681 \end_layout
3682
3683 \end_inset
3684
3685  in that directory,
3686  or you can use an existing po-file for some other language as a template).
3687 \end_layout
3688
3689 \begin_layout Itemize
3690 Edit 
3691 \begin_inset Flex Code
3692 status collapsed
3693
3694 \begin_layout Plain Layout
3695 xx.po
3696 \end_layout
3697
3698 \end_inset
3699
3700 .
3701 \begin_inset Foot
3702 status collapsed
3703
3704 \begin_layout Plain Layout
3705 This is just a text file,
3706  so it can be edited in any text editor.
3707  But there are also specialized programs that support such editing,
3708  such as 
3709 \family typewriter
3710 Poedit
3711 \family default
3712  (for all platforms) or 
3713 \family typewriter
3714 KBabel
3715 \family default
3716  (for KDE).
3717  
3718 \family typewriter
3719 Emacs
3720 \family default
3721  contains a `mode' for editing 
3722 \begin_inset Flex Code
3723 status collapsed
3724
3725 \begin_layout Plain Layout
3726 po
3727 \end_layout
3728
3729 \end_inset
3730
3731  files,
3732  as well,
3733  see 
3734 \begin_inset Flex URL
3735 status open
3736
3737 \begin_layout Plain Layout
3738
3739 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3740 \end_layout
3741
3742 \end_inset
3743
3744 .
3745 \end_layout
3746
3747 \end_inset
3748
3749  For some menu- and widget-labels,
3750  there are also shortcut keys that should be translated.
3751  Those keys are marked after a `|',
3752  and should be translated according to the words and phrases of the language.
3753  You should also fill also out the information at the beginning of the new 
3754 \begin_inset Flex Code
3755 status collapsed
3756
3757 \begin_layout Plain Layout
3758 po
3759 \end_layout
3760
3761 \end_inset
3762
3763 -file with your email-address,
3764  etc.,
3765  so people know where to reach you with suggestions and entertaining flames.
3766 \end_layout
3767
3768 \begin_layout Standard
3769 If you are just doing this on your own,
3770  then:
3771 \end_layout
3772
3773 \begin_layout Itemize
3774 Generate 
3775 \begin_inset Flex Code
3776 status collapsed
3777
3778 \begin_layout Plain Layout
3779 xx.mo
3780 \end_layout
3781
3782 \end_inset
3783
3784 .
3785  This can be done with 
3786 \begin_inset Flex Code
3787 status collapsed
3788
3789 \begin_layout Plain Layout
3790 msgfmt -o xx.mo < xx.po
3791 \end_layout
3792
3793 \end_inset
3794
3795 .
3796 \end_layout
3797
3798 \begin_layout Itemize
3799 Copy the 
3800 \begin_inset Flex Code
3801 status collapsed
3802
3803 \begin_layout Plain Layout
3804 mo
3805 \end_layout
3806
3807 \end_inset
3808
3809 -file to your locale-tree,
3810  at the correct directory for application messages for the language
3811 \series bold
3812  
3813 \series default
3814 xx,
3815  and under the name 
3816 \begin_inset Flex Code
3817 status collapsed
3818
3819 \begin_layout Plain Layout
3820 lyx.mo
3821 \end_layout
3822
3823 \end_inset
3824
3825  (e.
3826 \begin_inset space \thinspace{}
3827 \end_inset
3828
3829 g.
3830 \begin_inset space \space{}
3831 \end_inset
3832
3833
3834 \begin_inset Flex Code
3835 status collapsed
3836
3837 \begin_layout Plain Layout
3838 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3839 \end_layout
3840
3841 \end_inset
3842
3843
3844 \series bold
3845 .
3846 \end_layout
3847
3848 \begin_layout Standard
3849 As said,
3850  however,
3851  it would be best if the new 
3852 \begin_inset Flex Code
3853 status collapsed
3854
3855 \begin_layout Plain Layout
3856 po
3857 \end_layout
3858
3859 \end_inset
3860
3861  file could be added to the \SpecialChar LyX
3862  distribution,
3863  so others can use it.
3864  Adding it involves making additional changes to \SpecialChar LyX
3865 .
3866  So send an email to the developers' mailing list if you're interested in doing that.
3867 \end_layout
3868
3869 \begin_layout Subsubsection
3870 Ambiguous messages
3871 \end_layout
3872
3873 \begin_layout Standard
3874 Sometimes it turns out that one English message needs to be translated into different messages in the target language.
3875  One example is the message 
3876 \begin_inset Flex Code
3877 status collapsed
3878
3879 \begin_layout Plain Layout
3880 To
3881 \end_layout
3882
3883 \end_inset
3884
3885  which has the German translation 
3886 \lang german
3887 Nach
3888 \lang english
3889  or 
3890 \lang german
3891 Bis
3892 \lang english
3893 ,
3894  depending upon exactly what the English 
3895 \begin_inset Quotes eld
3896 \end_inset
3897
3898 to
3899 \begin_inset Quotes erd
3900 \end_inset
3901
3902  means.
3903  GNU 
3904 \begin_inset Flex Code
3905 status collapsed
3906
3907 \begin_layout Plain Layout
3908 gettext
3909 \end_layout
3910
3911 \end_inset
3912
3913  does not handle such ambiguous translations.
3914  Therefore you have to add some context information to the message:
3915  Instead of 
3916 \begin_inset Flex Code
3917 status collapsed
3918
3919 \begin_layout Plain Layout
3920 To
3921 \end_layout
3922
3923 \end_inset
3924
3925  it becomes 
3926 \begin_inset Flex Code
3927 status collapsed
3928
3929 \begin_layout Plain Layout
3930 To[[as in 'From format x to format y']]
3931 \end_layout
3932
3933 \end_inset
3934
3935  and 
3936 \begin_inset Flex Code
3937 status collapsed
3938
3939 \begin_layout Plain Layout
3940 To[[as in 'From page x to page y']].
3941 \end_layout
3942
3943 \end_inset
3944
3945  Now the two occurrences of 
3946 \begin_inset Flex Code
3947 status collapsed
3948
3949 \begin_layout Plain Layout
3950 To
3951 \end_layout
3952
3953 \end_inset
3954
3955  are different for 
3956 \begin_inset Flex Code
3957 status collapsed
3958
3959 \begin_layout Plain Layout
3960 gettext
3961 \end_layout
3962
3963 \end_inset
3964
3965  and can be translated correctly to 
3966 \lang german
3967 Nach
3968 \lang english
3969  and 
3970 \lang german
3971 Bis
3972 \lang english
3973 ,
3974  respectively.
3975 \end_layout
3976
3977 \begin_layout Standard
3978 Of course the context information needs to be stripped off the original message when no translation is used.
3979  Therefore you have to put it in double square brackets at the end of the message (see the example above).
3980  The translation mechanism of \SpecialChar LyX
3981  ensures that everything in double square brackets at the end of messages is removed before displaying the message.
3982 \end_layout
3983
3984 \begin_layout Subsection
3985 Translating the documentation.
3986 \end_layout
3987
3988 \begin_layout Standard
3989 The online documentation (in the 
3990 \begin_inset Flex Noun
3991 status collapsed
3992
3993 \begin_layout Plain Layout
3994 Help
3995 \end_layout
3996
3997 \end_inset
3998
3999 -menu) can (and should!) be translated.
4000  If there are translated versions of the documentation available
4001 \begin_inset Foot
4002 status collapsed
4003
4004 \begin_layout Plain Layout
4005 As of March 2008,
4006  at least some of the documents have been translated into fourteen languages,
4007  with the Tutorial available in a few more.
4008 \end_layout
4009
4010 \end_inset
4011
4012  and the locale is set accordingly,
4013  these will be used automagically by \SpecialChar LyX
4014 .
4015  \SpecialChar LyX
4016  looks for translated versions as 
4017 \begin_inset Flex Code
4018 status collapsed
4019
4020 \begin_layout Plain Layout
4021 LyXDir/doc/xx/DocName.lyx
4022 \end_layout
4023
4024 \end_inset
4025
4026 ,
4027  where 
4028 \begin_inset Flex Code
4029 status collapsed
4030
4031 \begin_layout Plain Layout
4032 xx
4033 \end_layout
4034
4035 \end_inset
4036
4037  is the code for the language currently in use.
4038  If there are no translated documents,
4039  the default English versions will be displayed.
4040  Note that the translated versions must have the same filenames (
4041 \begin_inset Flex Code
4042 status collapsed
4043
4044 \begin_layout Plain Layout
4045 DocName
4046 \end_layout
4047
4048 \end_inset
4049
4050  above) as the original.
4051  If you feel up to translating the documentation (an excellent way to proof-read the original documentation by the way!),
4052  there are a few things you should do right away:
4053 \end_layout
4054
4055 \begin_layout Itemize
4056 Check out the documentation translation web page at 
4057 \begin_inset CommandInset href
4058 LatexCommand href
4059 name "https://www.lyx.org/Translation"
4060 target "https://www.lyx.org/Translation"
4061 literal "false"
4062
4063 \end_inset
4064
4065 .
4066  That way,
4067  you can find out which (if any) documents have already been translated into your language.
4068  You can also find out who (if anyone) is organizing the effort to translate the documentation into your language.
4069  If no one is organizing the effort,
4070  please let us know that you're interested.
4071 \end_layout
4072
4073 \begin_layout Standard
4074 Once you get to actually translating,
4075  here's a few hints for you that may save you trouble:
4076 \end_layout
4077
4078 \begin_layout Itemize
4079 Join the documentation team!
4080  There is information on how to do that in 
4081 \begin_inset Flex Code
4082 status collapsed
4083
4084 \begin_layout Plain Layout
4085 Intro.lyx
4086 \end_layout
4087
4088 \end_inset
4089
4090  (
4091 \begin_inset Flex Noun
4092 status collapsed
4093
4094 \begin_layout Plain Layout
4095 Help\SpecialChar menuseparator
4096 Introduction
4097 \end_layout
4098
4099 \end_inset
4100
4101 ),
4102  which by the way is the first document you should translate.
4103 \end_layout
4104
4105 \begin_layout Itemize
4106 Learn the typographic conventions for the language you are translating to.
4107  Typography is an ancient art and over the centuries,
4108  a great variety of conventions have developed throughout different parts of the world.
4109  Also study the professional terminology amongst typographers in your country.
4110  Inventing your own terminology will only confuse the users.
4111  
4112 \emph on
4113 (Warning!
4114  Typography is addictive!)
4115 \end_layout
4116
4117 \begin_layout Itemize
4118 Make a copy of the document.
4119  This will be your working copy.
4120  You can use this as your personal translated help-file by placing it in your 
4121 \begin_inset Flex Code
4122 status collapsed
4123
4124 \begin_layout Plain Layout
4125 UserDir/doc/xx/
4126 \end_layout
4127
4128 \end_inset
4129
4130  directory.
4131 \begin_inset Note Greyedout
4132 status open
4133
4134 \begin_layout Plain Layout
4135
4136 \series bold
4137 Note:
4138
4139 \series default
4140  For a complex document with external material (images,
4141  etc.),
4142  if you make a copy e.
4143 \begin_inset space \thinspace{}
4144 \end_inset
4145
4146 g.
4147 \begin_inset space \space{}
4148 \end_inset
4149
4150 in a temp dir,
4151  beware that the links to external material may be broken when the document is moved to a different place.
4152  The best way is to retrieve the \SpecialChar LyX
4153  tree from git (see 
4154 \begin_inset Flex URL
4155 status collapsed
4156
4157 \begin_layout Plain Layout
4158
4159 https://www.lyx.org/HowToUseGIT
4160 \end_layout
4161
4162 \end_inset
4163
4164 ) and to edit the doc file in place.
4165 \end_layout
4166
4167 \end_inset
4168
4169
4170 \end_layout
4171
4172 \begin_layout Itemize
4173 Sometimes the original document (from the \SpecialChar LyX
4174  team) will be updated.
4175  Use the source viewer at 
4176 \begin_inset CommandInset href
4177 LatexCommand href
4178 name "https://www.lyx.org/trac/timeline"
4179 target "https://www.lyx.org/trac/timeline"
4180 literal "false"
4181
4182 \end_inset
4183
4184  to see what has been changed.
4185  That way you can easily see which parts of the translated document need to be updated.
4186 \end_layout
4187
4188 \begin_layout Standard
4189 If you ever find an error in the original document,
4190  fix it and notify the rest of the documentation team of the changes!
4191  (You didn't forget to join the documentation team,
4192  did you?)
4193 \end_layout
4194
4195 \begin_layout Standard
4196 \begin_inset Branch OutDated
4197 inverted 0
4198 status collapsed
4199
4200 \begin_layout Section
4201 International Keyboard Support
4202 \end_layout
4203
4204 \begin_layout Standard
4205
4206 \emph on
4207 [Editor's Note:
4208  The following section is by
4209 \emph default
4210  
4211 \shape smallcaps
4212 \emph on
4213 Ivan Schreter
4214 \shape default
4215 .
4216  It needs to be fixed to conform to the new Documentation Style sheet and to make use of the new v1.0 features.
4217  The whole thing also needs to be merged with the section following it.-jw It may also be badly out of date.-rh (2008)]
4218 \end_layout
4219
4220 \begin_layout Subsection
4221 Defining Own Keymaps:
4222  Keymap File Format
4223 \end_layout
4224
4225 \begin_layout Standard
4226 Let's look at a keyboard definition file a little closer.
4227  It is a plain text file defining
4228 \end_layout
4229
4230 \begin_layout Itemize
4231 key-to-key or key-to-string translations
4232 \end_layout
4233
4234 \begin_layout Itemize
4235 dead keys
4236 \end_layout
4237
4238 \begin_layout Itemize
4239 dead keys exceptions
4240 \end_layout
4241
4242 \begin_layout Standard
4243 To define key-to-key or key-to-string translation,
4244  use this command:
4245 \end_layout
4246
4247 \begin_layout Quotation
4248 \begin_inset Flex Code
4249 status collapsed
4250
4251 \begin_layout Plain Layout
4252
4253 \backslash
4254 kmap
4255 \end_layout
4256
4257 \end_inset
4258
4259  
4260 \begin_inset Flex Code
4261 status collapsed
4262
4263 \begin_layout Plain Layout
4264 key
4265 \end_layout
4266
4267 \end_inset
4268
4269  outstring 
4270 \end_layout
4271
4272 \begin_layout Standard
4273 where 
4274 \begin_inset Flex Code
4275 status collapsed
4276
4277 \begin_layout Plain Layout
4278 key
4279 \end_layout
4280
4281 \end_inset
4282
4283  is the key to be translated and 
4284 \begin_inset Flex Code
4285 status collapsed
4286
4287 \begin_layout Plain Layout
4288 outstring
4289 \end_layout
4290
4291 \end_inset
4292
4293  is the string to be inserted into the document.
4294  To define dead keys,
4295  use:
4296 \end_layout
4297
4298 \begin_layout Quotation
4299 \begin_inset Flex Code
4300 status collapsed
4301
4302 \begin_layout Plain Layout
4303
4304 \backslash
4305 kmod
4306 \end_layout
4307
4308 \end_inset
4309
4310  
4311 \begin_inset Flex Code
4312 status collapsed
4313
4314 \begin_layout Plain Layout
4315 key
4316 \end_layout
4317
4318 \end_inset
4319
4320  deadkey
4321 \end_layout
4322
4323 \begin_layout Standard
4324 where 
4325 \begin_inset Flex Code
4326 status collapsed
4327
4328 \begin_layout Plain Layout
4329 key
4330 \end_layout
4331
4332 \end_inset
4333
4334  is a keyboard key and 
4335 \begin_inset Flex Code
4336 status collapsed
4337
4338 \begin_layout Plain Layout
4339 deadkey
4340 \end_layout
4341
4342 \end_inset
4343
4344  is dead key name.
4345  The following dead keys are supported (shortcut name is in parentheses):
4346 \end_layout
4347
4348 \begin_layout Quotation
4349
4350 \emph on
4351 Name
4352 \begin_inset space \hfill{}
4353 \end_inset
4354
4355 Example
4356 \end_layout
4357
4358 \begin_layout Quotation
4359 acute (acu)
4360 \begin_inset space \hfill{}
4361 \end_inset
4362
4363 áéíóú
4364 \end_layout
4365
4366 \begin_layout Quotation
4367 grave (gra)
4368 \begin_inset space \hfill{}
4369 \end_inset
4370
4371 àèìòù
4372 \end_layout
4373
4374 \begin_layout Quotation
4375 macron (mac)
4376 \begin_inset space \hfill{}
4377 \end_inset
4378
4379  ō
4380 \end_layout
4381
4382 \begin_layout Quotation
4383 tilde (til)
4384 \begin_inset space \hfill{}
4385 \end_inset
4386
4387 ñÑ
4388 \end_layout
4389
4390 \begin_layout Quotation
4391 underbar (underb)
4392 \begin_inset space \hfill{}
4393 \end_inset
4394
4395
4396 \begin_inset ERT
4397 status open
4398
4399 \begin_layout Plain Layout
4400
4401
4402 \backslash
4403 b o
4404 \end_layout
4405
4406 \end_inset
4407
4408
4409 \end_layout
4410
4411 \begin_layout Quotation
4412 cedilla (ced)
4413 \begin_inset space \hfill{}
4414 \end_inset
4415
4416 çÇ
4417 \end_layout
4418
4419 \begin_layout Quotation
4420 underdot (underd)
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 d o
4433 \end_layout
4434
4435 \end_inset
4436
4437
4438 \end_layout
4439
4440 \begin_layout Quotation
4441 circumflex (circu)
4442 \begin_inset space \hfill{}
4443 \end_inset
4444
4445 âêîôû
4446 \end_layout
4447
4448 \begin_layout Quotation
4449 circle (circl)
4450 \begin_inset space \hfill{}
4451 \end_inset
4452
4453 ÅůŮ
4454 \end_layout
4455
4456 \begin_layout Quotation
4457 tie (tie)
4458 \begin_inset space \hfill{}
4459 \end_inset
4460
4461
4462 \begin_inset ERT
4463 status open
4464
4465 \begin_layout Plain Layout
4466
4467
4468 \backslash
4469 t o
4470 \end_layout
4471
4472 \end_inset
4473
4474
4475 \end_layout
4476
4477 \begin_layout Quotation
4478 breve (bre)
4479 \begin_inset space \hfill{}
4480 \end_inset
4481
4482 ă
4483 \begin_inset ERT
4484 status open
4485
4486 \begin_layout Plain Layout
4487
4488
4489 \backslash
4490 u o
4491 \end_layout
4492
4493 \end_inset
4494
4495
4496 \end_layout
4497
4498 \begin_layout Quotation
4499 caron (car)
4500 \begin_inset space \hfill{}
4501 \end_inset
4502
4503 čšž
4504 \end_layout
4505
4506 \begin_layout Quotation
4507 hungarian umlaut (hug)
4508 \begin_inset space \hfill{}
4509 \end_inset
4510
4511 őű
4512 \end_layout
4513
4514 \begin_layout Quotation
4515 umlaut (uml)
4516 \begin_inset space \hfill{}
4517 \end_inset
4518
4519 äöü
4520 \end_layout
4521
4522 \begin_layout Quotation
4523 dot (dot)
4524 \begin_inset space \hfill{}
4525 \end_inset
4526
4527 ż
4528 \begin_inset ERT
4529 status open
4530
4531 \begin_layout Plain Layout
4532
4533
4534 \backslash
4535 .s
4536 \end_layout
4537
4538 \end_inset
4539
4540
4541 \end_layout
4542
4543 \begin_layout Standard
4544 Since in many international keyboards there are exceptions to what some dead keys should do,
4545  you can define them using
4546 \end_layout
4547
4548 \begin_layout Quotation
4549 \begin_inset Flex Code
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553
4554 \backslash
4555 kxmod
4556 \end_layout
4557
4558 \end_inset
4559
4560  deadkey key outstring
4561 \end_layout
4562
4563 \begin_layout Standard
4564 For example,
4565  on Slovak keyboard,
4566  if you enter caron-o,
4567  it generates circumflex-o,
4568  so you put in
4569 \end_layout
4570
4571 \begin_layout Quotation
4572 \begin_inset Flex Code
4573 status collapsed
4574
4575 \begin_layout Plain Layout
4576
4577 \backslash
4578 kxmod
4579 \end_layout
4580
4581 \end_inset
4582
4583  caron o "
4584 \backslash
4585 ^o"
4586 \end_layout
4587
4588 \begin_layout Standard
4589 to make it work correctly.
4590  Also,
4591  you have to define as exceptions dead keys over i and j,
4592  to remove the dot from them before inserting an accent mark.
4593  I will change this when the time comes,
4594  but so far I haven't had time.
4595 \end_layout
4596
4597 \begin_layout Standard
4598 Oh,
4599  and about characters:
4600  backslash is escaped,
4601  so to enter it,
4602  you'll need double backslash.
4603  Also,
4604  quotes and 
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609 #
4610 \end_layout
4611
4612 \end_inset
4613
4614  have different meaning.
4615  
4616 \begin_inset Flex Code
4617 status collapsed
4618
4619 \begin_layout Plain Layout
4620 #
4621 \end_layout
4622
4623 \end_inset
4624
4625  marks comments,
4626  quotes start and end \SpecialChar LaTeX
4627 -style commands.
4628  To enter quote,
4629  you'll need to use 
4630 \begin_inset Flex Code
4631 status collapsed
4632
4633 \begin_layout Plain Layout
4634
4635 \backslash
4636 "
4637 \end_layout
4638
4639 \end_inset
4640
4641 ,
4642  to enter 
4643 \begin_inset Flex Code
4644 status collapsed
4645
4646 \begin_layout Plain Layout
4647 #
4648 \end_layout
4649
4650 \end_inset
4651
4652 ,
4653  use 
4654 \begin_inset Flex Code
4655 status collapsed
4656
4657 \begin_layout Plain Layout
4658
4659 \backslash
4660 #
4661 \end_layout
4662
4663 \end_inset
4664
4665 .
4666 \end_layout
4667
4668 \begin_layout Standard
4669 If you make a keyboard description file that works for your language,
4670  please mail it to me,
4671  so I can include it in the next keymap distribution.
4672 \end_layout
4673
4674 \begin_layout Standard
4675 More keywords will be supported in keymap configuration file in future,
4676  like
4677 \end_layout
4678
4679 \begin_layout Itemize
4680 \begin_inset Flex Code
4681 status collapsed
4682
4683 \begin_layout Plain Layout
4684
4685 \backslash
4686 kinclude filename
4687 \end_layout
4688
4689 \end_inset
4690
4691
4692 \emph on
4693
4694 \begin_inset space \hfill{}
4695 \end_inset
4696
4697
4698 \begin_inset Flex Code
4699 status collapsed
4700
4701 \begin_layout Plain Layout
4702 include
4703 \end_layout
4704
4705 \end_inset
4706
4707  another file
4708 \end_layout
4709
4710 \begin_layout Itemize
4711 \begin_inset Flex Code
4712 status collapsed
4713
4714 \begin_layout Plain Layout
4715
4716 \backslash
4717 kprog program
4718 \end_layout
4719
4720 \end_inset
4721
4722
4723 \emph on
4724
4725 \begin_inset space \hfill{}
4726 \end_inset
4727
4728
4729 \begin_inset Flex Code
4730 status collapsed
4731
4732 \begin_layout Plain Layout
4733 define
4734 \end_layout
4735
4736 \end_inset
4737
4738  an external keymap translation program 
4739 \end_layout
4740
4741 \begin_layout Standard
4742 Also,
4743  it should look into 
4744 \begin_inset Flex Code
4745 status collapsed
4746
4747 \begin_layout Plain Layout
4748 lyxrc
4749 \end_layout
4750
4751 \end_inset
4752
4753  file for defaults,
4754  too (for example,
4755  a 
4756 \begin_inset Flex Code
4757 status collapsed
4758
4759 \begin_layout Plain Layout
4760
4761 \backslash
4762 kinclude
4763 \end_layout
4764
4765 \end_inset
4766
4767  option to include default keyboard).
4768 \end_layout
4769
4770 \end_inset
4771
4772
4773 \end_layout
4774
4775 \begin_layout Section
4776 International Keymap Stuff
4777 \begin_inset CommandInset label
4778 LatexCommand label
4779 name "sec:International-Keymap-Stuff"
4780
4781 \end_inset
4782
4783
4784 \end_layout
4785
4786 \begin_layout Standard
4787 \begin_inset Note Note
4788 status open
4789
4790 \begin_layout Plain Layout
4791 In doing the revisions on this document in March 2008,
4792  I did not look over this stuff,
4793  as I do not understand it.
4794  It would be good if someone else could do so.
4795  (RH)
4796 \end_layout
4797
4798 \end_inset
4799
4800
4801 \end_layout
4802
4803 \begin_layout Standard
4804 The next two sections describe the 
4805 \begin_inset Flex Code
4806 status collapsed
4807
4808 \begin_layout Plain Layout
4809
4810 \shape up
4811 .kmap
4812 \end_layout
4813
4814 \end_inset
4815
4816  and 
4817 \begin_inset Flex Code
4818 status collapsed
4819
4820 \begin_layout Plain Layout
4821
4822 \shape up
4823 .cdef
4824 \end_layout
4825
4826 \end_inset
4827
4828  file syntax in detail.
4829  These sections should help you design your own key map if the ones provided do not meet your needs.
4830 \end_layout
4831
4832 \begin_layout Subsection
4833 The .kmap File
4834 \end_layout
4835
4836 \begin_layout Standard
4837
4838 \shape up
4839 .
4840 \begin_inset Flex Code
4841 status collapsed
4842
4843 \begin_layout Plain Layout
4844 kmap
4845 \end_layout
4846
4847 \end_inset
4848
4849  file maps keystrokes to characters or strings.
4850  As the name suggests,
4851  it sets a keyboard mapping.
4852  The 
4853 \begin_inset Flex Code
4854 status collapsed
4855
4856 \begin_layout Plain Layout
4857 .kmap
4858 \end_layout
4859
4860 \end_inset
4861
4862
4863 \shape default
4864  file keywords 
4865 \shape up
4866
4867 \begin_inset Flex Code
4868 status collapsed
4869
4870 \begin_layout Plain Layout
4871
4872 \shape up
4873 kmap
4874 \end_layout
4875
4876 \end_inset
4877
4878
4879 \shape default
4880 ,
4881
4882 \shape up
4883  
4884 \shape default
4885
4886 \begin_inset Flex Code
4887 status collapsed
4888
4889 \begin_layout Plain Layout
4890
4891 \shape up
4892 kmod
4893 \end_layout
4894
4895 \end_inset
4896
4897 ,
4898
4899 \shape up
4900  
4901 \shape default
4902
4903 \begin_inset Flex Code
4904 status collapsed
4905
4906 \begin_layout Plain Layout
4907
4908 \shape up
4909 kxmod
4910 \end_layout
4911
4912 \end_inset
4913
4914 ,
4915  and 
4916 \begin_inset Flex Code
4917 status collapsed
4918
4919 \begin_layout Plain Layout
4920
4921 \shape up
4922 kcomb
4923 \end_layout
4924
4925 \end_inset
4926
4927  are described in this section.
4928 \end_layout
4929
4930 \begin_layout Labeling
4931 \labelwidthstring 00.00.0000
4932 \begin_inset Flex Code
4933 status collapsed
4934
4935 \begin_layout Plain Layout
4936
4937 \shape up
4938 kmap
4939 \end_layout
4940
4941 \end_inset
4942
4943  Map a character to a string
4944 \end_layout
4945
4946 \begin_layout LyX-Code
4947
4948 \backslash
4949 kmap 
4950 \family roman
4951 \emph on
4952 char
4953 \family default
4954 \emph default
4955  
4956 \family roman
4957 \emph on
4958 string
4959 \end_layout
4960
4961 \begin_layout Standard
4962 This will ma
4963 \family roman
4964 p
4965 \family default
4966  
4967 \family roman
4968 \emph on
4969 char
4970 \family default
4971 \emph default
4972  
4973 \family roman
4974 to
4975 \family default
4976  
4977 \family roman
4978 \emph on
4979 string
4980 \emph default
4981 .
4982  Note that in
4983 \family default
4984  
4985 \family roman
4986 \emph on
4987 string
4988 \emph default
4989 ,
4990
4991 \family default
4992  
4993 \family roman
4994 \shape up
4995 the double-quote (")
4996 \family default
4997 \shape default
4998  
4999 \family roman
5000 and
5001 \family default
5002  
5003 \family roman
5004 \shape up
5005 the backslash (
5006 \backslash
5007 )
5008 \family default
5009 \shape default
5010  
5011 \family roman
5012 must be escaped with a preceding backslash (
5013 \shape up
5014
5015 \backslash
5016
5017 \shape default
5018 )
5019 \family default
5020 .
5021 \end_layout
5022
5023 \begin_layout Standard
5024 An example of a 
5025 \begin_inset Flex Noun
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029
5030 \shape up
5031 kmap
5032 \end_layout
5033
5034 \end_inset
5035
5036  statement to cause the symbol 
5037 \begin_inset Flex Noun
5038 status collapsed
5039
5040 \begin_layout Plain Layout
5041
5042 \shape up
5043 /
5044 \end_layout
5045
5046 \end_inset
5047
5048  to be output for the keystroke 
5049 \begin_inset Flex Noun
5050 status collapsed
5051
5052 \begin_layout Plain Layout
5053
5054 \shape up
5055 &
5056 \end_layout
5057
5058 \end_inset
5059
5060  is:
5061 \end_layout
5062
5063 \begin_layout LyX-Code
5064
5065 \backslash
5066 kmap & /
5067 \end_layout
5068
5069 \begin_layout Labeling
5070 \labelwidthstring 00.00.0000
5071 \begin_inset Flex Code
5072 status collapsed
5073
5074 \begin_layout Plain Layout
5075
5076 \shape up
5077 kmod
5078 \end_layout
5079
5080 \end_inset
5081
5082  Specify an accent character
5083 \end_layout
5084
5085 \begin_layout LyX-Code
5086
5087 \backslash
5088 kmod 
5089 \family roman
5090 \emph on
5091 char accent allowed
5092 \end_layout
5093
5094 \begin_layout Standard
5095 This will make the cha
5096 \family roman
5097 racter
5098 \family default
5099  
5100 \family roman
5101 \emph on
5102 char
5103 \family default
5104 \emph default
5105  
5106 \family roman
5107 \shape up
5108 \emph on
5109 be an accent
5110 \family default
5111 \shape default
5112 \emph default
5113  
5114 \family roman
5115 \shape up
5116 on the
5117 \family default
5118 \shape default
5119  
5120 \family roman
5121 \shape up
5122 \emph on
5123 allowed
5124 \family default
5125 \shape default
5126 \emph default
5127  
5128 \family roman
5129 \shape up
5130 cha
5131 \family default
5132 racter(s).
5133  This is the dead key
5134 \begin_inset Foot
5135 status collapsed
5136
5137 \begin_layout Plain Layout
5138 The term 
5139 \family roman
5140 \emph on
5141 dead key
5142 \family default
5143 \emph default
5144  refers to a key that does not produce a character by itself,
5145  but when followed with another key,
5146  produces the desired accent character.
5147  For example,
5148  a German characte
5149 \family roman
5150 r with an umlaut like
5151 \family default
5152  
5153 \family roman
5154 \emph on
5155 ä
5156 \family default
5157 \emph default
5158  
5159 \family roman
5160 can be produced in this manner.
5161 \end_layout
5162
5163 \end_inset
5164
5165  mechanism.
5166  
5167 \end_layout
5168
5169 \begin_layout Standard
5170 If you 
5171 \family roman
5172 hit
5173 \family default
5174  
5175 \family roman
5176 \emph on
5177 char
5178 \family default
5179 \emph default
5180  
5181 \family roman
5182 and then another key not in
5183 \family default
5184  
5185 \family roman
5186 \emph on
5187 allowed
5188 \emph default
5189 ,
5190  you will get a
5191 \family default
5192  
5193 \family roman
5194 \emph on
5195 char
5196 \family default
5197 \emph default
5198  
5199 \family roman
5200 followed by the other,
5201  not allowed key,
5202  as output.
5203
5204 \family default
5205  Note that a 
5206 \begin_inset Flex Noun
5207 status collapsed
5208
5209 \begin_layout Plain Layout
5210
5211 \shape up
5212 Backspace
5213 \end_layout
5214
5215 \end_inset
5216
5217  cancels a dead key,
5218  so if 
5219 \family roman
5220 you hit
5221 \family default
5222  
5223 \family roman
5224 \emph on
5225 char
5226 \family default
5227 \emph default
5228  
5229 \begin_inset Flex Noun
5230 status collapsed
5231
5232 \begin_layout Plain Layout
5233
5234 \shape up
5235 \emph on
5236 Backspace
5237 \end_layout
5238
5239 \end_inset
5240
5241 ,
5242  the cursor will not go one position backwards but will instead cancel the effect t
5243 \family roman
5244 hat
5245 \family default
5246  
5247 \family roman
5248 \shape up
5249 \emph on
5250 char
5251 \family default
5252 \shape default
5253 \emph default
5254  
5255 \family roman
5256 \shape up
5257 might have had on the next keystroke.
5258  
5259 \end_layout
5260
5261 \begin_layout Standard
5262 The following example specifies that the character ' is to be an acute accent,
5263  allowed on the characters a,
5264  e,
5265  i,
5266  o,
5267  u,
5268  A,
5269  E,
5270  I,
5271  O,
5272  and U:
5273 \end_layout
5274
5275 \begin_layout LyX-Code
5276
5277 \backslash
5278 kmod ' acute aeiouAEIOU
5279 \end_layout
5280
5281 \begin_layout Labeling
5282 \labelwidthstring 00.00.0000
5283 \begin_inset Flex Code
5284 status collapsed
5285
5286 \begin_layout Plain Layout
5287 kxmod
5288 \end_layout
5289
5290 \end_inset
5291
5292  Specify an exception to the accent character
5293 \end_layout
5294
5295 \begin_layout LyX-Code
5296
5297 \backslash
5298 kxmod  
5299 \family roman
5300 \emph on
5301 accent char result
5302 \end_layout
5303
5304 \begin_layout Standard
5305 This defines an exce
5306 \family roman
5307 ption for
5308 \family default
5309  
5310 \family roman
5311 \emph on
5312 accent
5313 \family default
5314 \emph default
5315  
5316 \family roman
5317 on
5318 \family default
5319  
5320 \family roman
5321 \emph on
5322 char
5323 \emph default
5324 .
5325  T
5326 \shape up
5327 he
5328 \family default
5329 \shape default
5330  
5331 \family roman
5332 \shape up
5333 \emph on
5334 accent
5335 \family default
5336 \shape default
5337 \emph default
5338  
5339 \family roman
5340 \shape up
5341 must
5342 \family default
5343 \shape default
5344  
5345 \shape up
5346 have been assigned a keystroke with a previous
5347 \shape default
5348  
5349 \begin_inset Flex Code
5350 status collapsed
5351
5352 \begin_layout Plain Layout
5353
5354 \shape up
5355
5356 \backslash
5357 kmo
5358 \shape default
5359 d
5360 \end_layout
5361
5362 \end_inset
5363
5364  declar
5365 \family roman
5366 ation and
5367 \family default
5368  
5369 \family roman
5370 \emph on
5371 char
5372 \family default
5373 \emph default
5374  
5375 \family roman
5376 must not belong in the
5377 \family default
5378  
5379 \family roman
5380 \emph on
5381 allowed
5382 \family default
5383 \emph default
5384  
5385 \family roman
5386 set of
5387 \family default
5388  
5389 \family roman
5390 \emph on
5391 accent
5392 \emph default
5393 .
5394  When
5395 \family default
5396  
5397 \family roman
5398 \shape up
5399 you enter the
5400 \family default
5401 \shape default
5402  
5403 \family roman
5404 \shape up
5405 \emph on
5406 accent char
5407 \family default
5408 \shape default
5409 \emph default
5410  
5411 \family roman
5412 \shape up
5413 sequence,
5414
5415 \family default
5416 \shape default
5417  
5418 \family roman
5419 \shape up
5420 \emph on
5421 result
5422 \emph default
5423  is produced.
5424  If such a declaration does not exist in
5425 \family default
5426 \shape default
5427  
5428 \shape up
5429 the
5430 \shape default
5431  
5432 \begin_inset Flex Code
5433 status collapsed
5434
5435 \begin_layout Plain Layout
5436
5437 \shape up
5438 .kmap
5439 \end_layout
5440
5441 \end_inset
5442
5443  file and yo
5444 \family roman
5445 u enter
5446 \family default
5447  
5448 \family roman
5449 \emph on
5450 accent char
5451 \emph default
5452 ,
5453  you get
5454 \family default
5455  
5456 \family roman
5457 \emph on
5458 accent_key char
5459 \emph default
5460  where
5461 \family default
5462  
5463 \family roman
5464 \emph on
5465 accent_key
5466 \emph default
5467  is the first arg
5468 \family default
5469 ument of the 
5470 \begin_inset Flex Code
5471 status collapsed
5472
5473 \begin_layout Plain Layout
5474
5475 \shape up
5476
5477 \backslash
5478 kmod
5479 \end_layout
5480
5481 \end_inset
5482
5483  declaration.
5484  
5485 \end_layout
5486
5487 \begin_layout Standard
5488 The following command produces causes äi to be produced when you enter acute-i ('i):
5489 \end_layout
5490
5491 \begin_layout LyX-Code
5492
5493 \backslash
5494 kxmod acute i "
5495 \backslash
5496
5497 \backslash
5498 '{
5499 \backslash
5500
5501 \backslash
5502 i}"
5503 \end_layout
5504
5505 \begin_layout Labeling
5506 \labelwidthstring 00.00.0000
5507 \begin_inset Flex Code
5508 status collapsed
5509
5510 \begin_layout Plain Layout
5511 kcomb
5512 \end_layout
5513
5514 \end_inset
5515
5516  Combine two accent characters
5517 \end_layout
5518
5519 \begin_layout LyX-Code
5520
5521 \backslash
5522 kcomb 
5523 \family roman
5524 \emph on
5525 accent1 accent2 allowed
5526 \end_layout
5527
5528 \begin_layout Standard
5529 This one is getting pretty esoteric.
5530  It allows you to combine the effect 
5531 \family roman
5532 of
5533 \family default
5534  
5535 \family roman
5536 \emph on
5537 accent1
5538 \family default
5539 \emph default
5540  
5541 \family roman
5542 and
5543 \family default
5544  
5545 \family roman
5546 \emph on
5547 accent2
5548 \family default
5549 \emph default
5550  
5551 \family roman
5552 (in that order!) on
5553 \family default
5554  
5555 \family roman
5556 \emph on
5557 allowed
5558 \family default
5559 \emph default
5560  
5561 \family roman
5562 chars.
5563  The keystrokes for
5564 \family default
5565  
5566 \family roman
5567 \emph on
5568 accent1
5569 \family default
5570 \emph default
5571  
5572 \family roman
5573 and
5574 \family default
5575  
5576 \family roman
5577 \emph on
5578 accent2
5579 \family default
5580 \emph default
5581  
5582 \family roman
5583 must have be
5584 \family default
5585 en set with a 
5586 \begin_inset Flex Code
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590
5591 \shape up
5592
5593 \backslash
5594 kmod
5595 \end_layout
5596
5597 \end_inset
5598
5599  command at 
5600 \family roman
5601 a
5602 \family default
5603  
5604 \family roman
5605 \emph on
5606 previous
5607 \family default
5608 \emph default
5609  
5610 \family roman
5611 point in the
5612 \family default
5613  file.
5614  
5615 \end_layout
5616
5617 \begin_layout Standard
5618 Consider this example from the 
5619 \begin_inset Flex Code
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623
5624 \shape up
5625 greek.kmap
5626 \end_layout
5627
5628 \end_inset
5629
5630  file:
5631 \end_layout
5632
5633 \begin_layout LyX-Code
5634
5635 \backslash
5636 kmod ;
5637  acute aeioyvhAEIOYVH 
5638 \backslash
5639 kmod :
5640  umlaut iyIY 
5641 \backslash
5642 kcomb acute umlaut iyIY
5643 \end_layout
5644
5645 \begin_layout Standard
5646 This allows you to press 
5647 \begin_inset Flex Noun
5648 status collapsed
5649
5650 \begin_layout Plain Layout
5651
5652 \shape up
5653 ;:i
5654 \end_layout
5655
5656 \end_inset
5657
5658  and get the effect of 
5659 \begin_inset Flex Code
5660 status collapsed
5661
5662 \begin_layout Plain Layout
5663
5664 \shape up
5665
5666 \backslash
5667 '{
5668 \backslash
5669 "{i}}
5670 \end_layout
5671
5672 \end_inset
5673
5674 .
5675  
5676 \family roman
5677 \shape up
5678 A backspace
5679 \family default
5680 \shape default
5681  in this case cancels the last dead key,
5682  so if you press 
5683 \begin_inset Flex Noun
5684 status collapsed
5685
5686 \begin_layout Plain Layout
5687
5688 \shape up
5689 ;:
5690  Backspace i
5691 \end_layout
5692
5693 \end_inset
5694
5695  you get 
5696 \begin_inset Flex Code
5697 status collapsed
5698
5699 \begin_layout Plain Layout
5700
5701 \shape up
5702
5703 \backslash
5704 '{i}
5705 \end_layout
5706
5707 \end_inset
5708
5709 .
5710 \end_layout
5711
5712 \begin_layout Subsection
5713 The .cdef File
5714 \end_layout
5715
5716 \begin_layout Standard
5717 After the 
5718 \begin_inset Flex Code
5719 status collapsed
5720
5721 \begin_layout Plain Layout
5722
5723 \shape up
5724 .kmap
5725 \end_layout
5726
5727 \end_inset
5728
5729  mapping is performed,
5730  a 
5731 \begin_inset Flex Code
5732 status collapsed
5733
5734 \begin_layout Plain Layout
5735
5736 \shape up
5737 .cde
5738 \shape default
5739 f
5740 \end_layout
5741
5742 \end_inset
5743
5744  file maps the strings that the symbols generate to characters in the current font.
5745  The \SpecialChar LyX
5746  distribution currently includes at least the 
5747 \begin_inset Flex Code
5748 status collapsed
5749
5750 \begin_layout Plain Layout
5751
5752 \shape up
5753 iso8859-1.cdef
5754 \end_layout
5755
5756 \end_inset
5757
5758  and 
5759 \begin_inset Flex Code
5760 status collapsed
5761
5762 \begin_layout Plain Layout
5763
5764 \shape up
5765 iso8859-2.cdef
5766 \end_layout
5767
5768 \end_inset
5769
5770  files.
5771 \end_layout
5772
5773 \begin_layout Standard
5774 In general the 
5775 \begin_inset Flex Code
5776 status collapsed
5777
5778 \begin_layout Plain Layout
5779
5780 \shape up
5781 .cdef
5782 \end_layout
5783
5784 \end_inset
5785
5786  file is a sequence of declarations of the form
5787 \end_layout
5788
5789 \begin_layout LyX-Code
5790
5791 \family roman
5792 \emph on
5793 char_index_in_set
5794 \family default
5795 \emph default
5796  
5797 \family roman
5798 \emph on
5799  string
5800 \end_layout
5801
5802 \begin_layout Standard
5803 For example,
5804  in order to map 
5805 \begin_inset Flex Noun
5806 status collapsed
5807
5808 \begin_layout Plain Layout
5809
5810 \shape up
5811
5812 \backslash
5813 '{e}
5814 \end_layout
5815
5816 \end_inset
5817
5818  to the corresponding character in the iso-8859-1 set (233),
5819  the following declaration is used
5820 \end_layout
5821
5822 \begin_layout LyX-Code
5823 233 "
5824 \backslash
5825
5826 \backslash
5827 '{e}"
5828 \end_layout
5829
5830 \begin_layout Standard
5831 with 
5832 \begin_inset Flex Code
5833 status collapsed
5834
5835 \begin_layout Plain Layout
5836
5837 \backslash
5838
5839 \end_layout
5840
5841 \end_inset
5842
5843  and 
5844 \begin_inset Flex Code
5845 status collapsed
5846
5847 \begin_layout Plain Layout
5848 "
5849 \end_layout
5850
5851 \end_inset
5852
5853  being escap
5854 \family roman
5855 ed in
5856 \family default
5857  
5858 \family roman
5859 \emph on
5860 string
5861 \emph default
5862 .
5863  Note that
5864 \family default
5865  the same character can apply to more than one string.
5866  In the 
5867 \begin_inset Flex Code
5868 status collapsed
5869
5870 \begin_layout Plain Layout
5871 i
5872 \shape up
5873 so-8859-7.cdef
5874 \end_layout
5875
5876 \end_inset
5877
5878  file you have
5879 \end_layout
5880
5881 \begin_layout LyX-Code
5882 192 "
5883 \backslash
5884
5885 \backslash
5886 '{
5887 \backslash
5888
5889 \backslash
5890
5891 \backslash
5892 "{i}}"
5893 \begin_inset Newline newline
5894 \end_inset
5895
5896 192 "
5897 \backslash
5898
5899 \backslash
5900
5901 \backslash
5902 "{
5903 \backslash
5904
5905 \backslash
5906 '{i}}"
5907 \end_layout
5908
5909 \begin_layout Standard
5910 If \SpecialChar LyX
5911  cannot find a mapping for the string produced by the keystroke or a deadkey sequence,
5912  it will check if it looks like an accented char and try to draw an accent over the character on screen.
5913 \end_layout
5914
5915 \begin_layout Subsection
5916 Dead Keys
5917 \end_layout
5918
5919 \begin_layout Standard
5920 There is a second way to add support for international characters through so-called dead-keys.
5921  A dead-key works in combination with a letter to produce an accented character.
5922  Here,
5923  we'll explain how to create a really simple dead-key to illustrate how they work.
5924 \end_layout
5925
5926 \begin_layout Standard
5927 Suppose you happen to need the circumflex character,
5928  
5929 \begin_inset Quotes eld
5930 \end_inset
5931
5932  ̂
5933 \begin_inset Quotes erd
5934 \end_inset
5935
5936 .
5937  You could bind the 
5938 \begin_inset Flex Noun
5939 status collapsed
5940
5941 \begin_layout Plain Layout
5942 ^
5943 \end_layout
5944
5945 \end_inset
5946
5947 -key [a.k.a.
5948 \begin_inset space ~
5949 \end_inset
5950
5951
5952 \begin_inset Flex Noun
5953 status collapsed
5954
5955 \begin_layout Plain Layout
5956 Shift-6
5957 \end_layout
5958
5959 \end_inset
5960
5961 ] to the \SpecialChar LyX
5962  command 
5963 \begin_inset Flex Code
5964 status collapsed
5965
5966 \begin_layout Plain Layout
5967 accent-circumflex
5968 \end_layout
5969
5970 \end_inset
5971
5972  in your 
5973 \begin_inset Flex Code
5974 status collapsed
5975
5976 \begin_layout Plain Layout
5977 lyxrc
5978 \end_layout
5979
5980 \end_inset
5981
5982  file.
5983  Now,
5984  whenever you type the 
5985 \begin_inset Flex Noun
5986 status collapsed
5987
5988 \begin_layout Plain Layout
5989 ^
5990 \end_layout
5991
5992 \end_inset
5993
5994 -key followed by a letter,
5995  that letter will have a circumflex accent on it.
5996  For example,
5997  the sequence 
5998 \begin_inset Quotes eld
5999 \end_inset
6000
6001
6002 \begin_inset Flex Noun
6003 status collapsed
6004
6005 \begin_layout Plain Layout
6006 ^e
6007 \end_layout
6008
6009 \end_inset
6010
6011
6012 \begin_inset Quotes erd
6013 \end_inset
6014
6015  produces the letter:
6016  
6017 \begin_inset Quotes eld
6018 \end_inset
6019
6020 ê
6021 \begin_inset Quotes erd
6022 \end_inset
6023
6024 .
6025  If you tried to type 
6026 \begin_inset Quotes eld
6027 \end_inset
6028
6029
6030 \begin_inset Flex Noun
6031 status collapsed
6032
6033 \begin_layout Plain Layout
6034 ^t
6035 \end_layout
6036
6037 \end_inset
6038
6039
6040 \begin_inset Quotes erd
6041 \end_inset
6042
6043 ,
6044  however,
6045  \SpecialChar LyX
6046  will complain with a beep,
6047  since a 
6048 \begin_inset Quotes eld
6049 \end_inset
6050
6051
6052 \begin_inset Flex Noun
6053 status collapsed
6054
6055 \begin_layout Plain Layout
6056 t
6057 \end_layout
6058
6059 \end_inset
6060
6061
6062 \begin_inset Quotes erd
6063 \end_inset
6064
6065  never takes a circumflex accent.
6066  Hitting 
6067 \begin_inset Flex Noun
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 Space
6072 \end_layout
6073
6074 \end_inset
6075
6076  after a dead-key produces the bare-accent.
6077  Please note this last point!
6078  If you bind a key to a dead-key,
6079  you'll need to rebind the character on that key to yet another key.
6080  Binding the 
6081 \begin_inset Flex Noun
6082 status collapsed
6083
6084 \begin_layout Plain Layout
6085 ,-key
6086 \end_layout
6087
6088 \end_inset
6089
6090  to a cedilla is a bad idea,
6091  since you'll only get cedillas instead of commas.
6092 \end_layout
6093
6094 \begin_layout Standard
6095 One common way to bind dead-keys is to use 
6096 \begin_inset Flex Noun
6097 status collapsed
6098
6099 \begin_layout Plain Layout
6100 Meta-
6101 \end_layout
6102
6103 \end_inset
6104
6105 ,
6106  
6107 \begin_inset Flex Noun
6108 status collapsed
6109
6110 \begin_layout Plain Layout
6111 Ctrl-
6112 \end_layout
6113
6114 \end_inset
6115
6116 ,
6117  and 
6118 \begin_inset Flex Noun
6119 status collapsed
6120
6121 \begin_layout Plain Layout
6122 Shift-
6123 \end_layout
6124
6125 \end_inset
6126
6127  in combination with an accent,
6128  like 
6129 \begin_inset Quotes eld
6130 \end_inset
6131
6132
6133 \begin_inset Flex Noun
6134 status collapsed
6135
6136 \begin_layout Plain Layout
6137 ~
6138 \end_layout
6139
6140 \end_inset
6141
6142
6143 \begin_inset Quotes erd
6144 \end_inset
6145
6146  or 
6147 \begin_inset Quotes eld
6148 \end_inset
6149
6150
6151 \begin_inset Flex Noun
6152 status collapsed
6153
6154 \begin_layout Plain Layout
6155 ,
6156 \end_layout
6157
6158 \end_inset
6159
6160
6161 \begin_inset Quotes erd
6162 \end_inset
6163
6164  or 
6165 \begin_inset Quotes eld
6166 \end_inset
6167
6168
6169 \begin_inset Flex Noun
6170 status collapsed
6171
6172 \begin_layout Plain Layout
6173 ^
6174 \end_layout
6175
6176 \end_inset
6177
6178
6179 \begin_inset Quotes erd
6180 \end_inset
6181
6182 .
6183  Another way involves using 
6184 \begin_inset Flex Code
6185 status collapsed
6186
6187 \begin_layout Plain Layout
6188 xmodmap
6189 \end_layout
6190
6191 \end_inset
6192
6193  and 
6194 \begin_inset Flex Code
6195 status collapsed
6196
6197 \begin_layout Plain Layout
6198 xkeycaps
6199 \end_layout
6200
6201 \end_inset
6202
6203  to set up the special 
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 Mode_Switch
6209 \end_layout
6210
6211 \end_inset
6212
6213  key.
6214  The 
6215 \begin_inset Flex Code
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 Mode_Switch
6220 \end_layout
6221
6222 \end_inset
6223
6224  acts in some ways just like 
6225 \begin_inset Flex Noun
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 Shift
6230 \end_layout
6231
6232 \end_inset
6233
6234  and permits you to bind keys to accented characters.
6235  You can also turn keys into dead-keys by binding them to something like 
6236 \begin_inset Flex Code
6237 status collapsed
6238
6239 \begin_layout Plain Layout
6240 usldead_cedilla
6241 \end_layout
6242
6243 \end_inset
6244
6245  and then binding this symbolic key to the corresponding \SpecialChar LyX
6246  command.
6247 \begin_inset Foot
6248 status collapsed
6249
6250 \begin_layout Plain Layout
6251 Note from 
6252 \noun on
6253 John Weiss
6254 \noun default
6255 :
6256  This is exactly what I do in my 
6257 \begin_inset Flex Code
6258 status collapsed
6259
6260 \begin_layout Plain Layout
6261 ~/.lyx/lyxrc
6262 \end_layout
6263
6264 \end_inset
6265
6266  and my 
6267 \begin_inset Flex Code
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 ~/.xmodmap
6272 \end_layout
6273
6274 \end_inset
6275
6276  files.
6277  I have my 
6278 \begin_inset Flex Noun
6279 status collapsed
6280
6281 \begin_layout Plain Layout
6282 Scroll
6283 \begin_inset space ~
6284 \end_inset
6285
6286 Lock
6287 \end_layout
6288
6289 \end_inset
6290
6291  key set up as 
6292 \begin_inset Flex Code
6293 status collapsed
6294
6295 \begin_layout Plain Layout
6296 Mode_Shift
6297 \end_layout
6298
6299 \end_inset
6300
6301  and a bunch of these 
6302 \begin_inset Quotes eld
6303 \end_inset
6304
6305
6306 \begin_inset Flex Code
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 usldead_*
6311 \end_layout
6312
6313 \end_inset
6314
6315
6316 \begin_inset Quotes erd
6317 \end_inset
6318
6319  symbolic keys bound such things as 
6320 \begin_inset Flex Noun
6321 status collapsed
6322
6323 \begin_layout Plain Layout
6324 Scroll
6325 \begin_inset space ~
6326 \end_inset
6327
6328 Lock-^
6329 \end_layout
6330
6331 \end_inset
6332
6333  and 
6334 \begin_inset Flex Noun
6335 status collapsed
6336
6337 \begin_layout Plain Layout
6338 Scroll
6339 \begin_inset space ~
6340 \end_inset
6341
6342 Lock-~
6343 \end_layout
6344
6345 \end_inset
6346
6347 .
6348  This is how I produce my accented characters.
6349 \end_layout
6350
6351 \end_inset
6352
6353  You can make just about anything into the 
6354 \begin_inset Flex Code
6355 status collapsed
6356
6357 \begin_layout Plain Layout
6358 Mode_Switch
6359 \end_layout
6360
6361 \end_inset
6362
6363  key:
6364  One of the 
6365 \begin_inset Flex Noun
6366 status collapsed
6367
6368 \begin_layout Plain Layout
6369 Ctrl-
6370 \end_layout
6371
6372 \end_inset
6373
6374  keys,
6375  a spare function key,
6376  etc.
6377  As for the \SpecialChar LyX
6378  commands that produce accents,
6379  check the entry for 
6380 \begin_inset Flex Code
6381 status collapsed
6382
6383 \begin_layout Plain Layout
6384 accent-acute
6385 \end_layout
6386
6387 \end_inset
6388
6389  in the 
6390 \emph on
6391 Reference Manual
6392 \emph default
6393 .
6394  You'll find the complete list there.
6395 \end_layout
6396
6397 \begin_layout Subsection
6398 Saving your Language Configuration
6399 \end_layout
6400
6401 \begin_layout Standard
6402 You can edit your preferences so that your desired language environment is automatically configured when \SpecialChar LyX
6403  starts up,
6404  via the 
6405 \begin_inset Flex Noun
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 Edit\SpecialChar menuseparator
6410 Preferences
6411 \end_layout
6412
6413 \end_inset
6414
6415  dialog.
6416 \end_layout
6417
6418 \begin_layout Chapter
6419
6420 \change_inserted -584632292 1610232084
6421 Creating and 
6422 \change_unchanged
6423 Installing New Document Classes,
6424  Layouts,
6425  and Templates
6426 \begin_inset CommandInset label
6427 LatexCommand label
6428 name "cha:Installing-New-Document"
6429
6430 \end_inset
6431
6432
6433 \begin_inset Argument 1
6434 status collapsed
6435
6436 \begin_layout Plain Layout
6437 Installing New Document Classes
6438 \end_layout
6439
6440 \end_inset
6441
6442
6443 \end_layout
6444
6445 \begin_layout Standard
6446 In this chapter,
6447  we describe the procedures for creating and installing new \SpecialChar LyX
6448  layout and template files,
6449  as well as offer a refresher on correctly installing new \SpecialChar LaTeX
6450  document classes.
6451  
6452 \end_layout
6453
6454 \begin_layout Standard
6455 First,
6456  let us a say a few words about how one ought to think about the relation between \SpecialChar LyX
6457  and \SpecialChar LaTeX
6458 .
6459  The thing to understand is that,
6460  in a certain sense,
6461  \SpecialChar LyX
6462  doesn't know anything about \SpecialChar LaTeX
6463 .
6464  Indeed,
6465  from \SpecialChar LyX
6466 's point of view,
6467  \SpecialChar LaTeX
6468  is just one of several 
6469 \begin_inset Quotes eld
6470 \end_inset
6471
6472 backend formats
6473 \begin_inset Quotes erd
6474 \end_inset
6475
6476  in which it is capable of producing output.
6477  Other such formats are DocBook,
6478  plaintext,
6479  and XHTML.
6480  \SpecialChar LaTeX
6481  is,
6482  of course,
6483  a particularly important format,
6484  but very little of the information \SpecialChar LyX
6485  has about \SpecialChar LaTeX
6486  is actually contained in the program itself.
6487 \begin_inset Foot
6488 status collapsed
6489
6490 \begin_layout Plain Layout
6491 Some commands are sufficiently complex that they are 
6492 \begin_inset Quotes eld
6493 \end_inset
6494
6495 hardcoded
6496 \begin_inset Quotes erd
6497 \end_inset
6498
6499  into \SpecialChar LyX
6500 .
6501  But the developers generally regard this as a Bad Thing.
6502 \end_layout
6503
6504 \end_inset
6505
6506  Rather,
6507  that information,
6508  even for the standard classes like 
6509 \begin_inset Flex Code
6510 status collapsed
6511
6512 \begin_layout Plain Layout
6513 article.cls
6514 \end_layout
6515
6516 \end_inset
6517
6518 ,
6519  is contained in `layout files'.
6520  Similarly,
6521  \SpecialChar LyX
6522  itself does not know much about DocBook or XHTML.
6523  What it knows is contained in layout files.
6524 \end_layout
6525
6526 \begin_layout Standard
6527 You can think of the layout file for a given document class as a translation manual between \SpecialChar LyX
6528  constructs—
6529 paragraphs with their corresponding styles,
6530  certain sorts of insets,
6531  etc—
6532 and the corresponding \SpecialChar LaTeX
6533 ,
6534  DocBook,
6535  or XHTML constructs.
6536  Almost everything \SpecialChar LyX
6537  knows about 
6538 \begin_inset Flex Code
6539 status collapsed
6540
6541 \begin_layout Plain Layout
6542 article.cls
6543 \end_layout
6544
6545 \end_inset
6546
6547 ,
6548  for example,
6549  is contained in the file 
6550 \begin_inset Flex Code
6551 status collapsed
6552
6553 \begin_layout Plain Layout
6554 article.layout
6555 \end_layout
6556
6557 \end_inset
6558
6559  and in various other files it includes.
6560  For this reason,
6561  anyone intending to write layout files should plan to study the existing files.
6562  A good place to start is with 
6563 \begin_inset Flex Code
6564 status collapsed
6565
6566 \begin_layout Plain Layout
6567 stdsections.inc
6568 \end_layout
6569
6570 \end_inset
6571
6572 ,
6573  which is included in 
6574 \begin_inset Flex Code
6575 status collapsed
6576
6577 \begin_layout Plain Layout
6578 article.layout
6579 \end_layout
6580
6581 \end_inset
6582
6583 ,
6584  
6585 \begin_inset Flex Code
6586 status collapsed
6587
6588 \begin_layout Plain Layout
6589 book.layout
6590 \end_layout
6591
6592 \end_inset
6593
6594 ,
6595  and many of the other layout files for document classes.
6596  This file is where sections and the like are defined:
6597  
6598 \begin_inset Flex Code
6599 status collapsed
6600
6601 \begin_layout Plain Layout
6602 stdsections.inc
6603 \end_layout
6604
6605 \end_inset
6606
6607  tells \SpecialChar LyX
6608  how paragraphs that are marked with the Section,
6609  Subsection,
6610  etc,
6611  styles can be translated into corresponding \SpecialChar LaTeX
6612 ,
6613  DocBook,
6614  and XHTML commands and tags.
6615  The 
6616 \begin_inset Flex Code
6617 status collapsed
6618
6619 \begin_layout Plain Layout
6620 article.layout
6621 \end_layout
6622
6623 \end_inset
6624
6625  file basically just includes several of these 
6626 \begin_inset Flex Code
6627 status collapsed
6628
6629 \begin_layout Plain Layout
6630 std*.inc
6631 \end_layout
6632
6633 \end_inset
6634
6635  files.
6636 \end_layout
6637
6638 \begin_layout Standard
6639 Defining the \SpecialChar LyX
6640 –\SpecialChar LaTeX
6641  correspondence is not the only thing layout files do,
6642  though.
6643  Their other job is to define how the \SpecialChar LyX
6644  constructs themselves will appear on-screen.
6645  The fact that layout files have these two jobs is often a source of confusion,
6646  because they are completely separate.
6647  Telling \SpecialChar LyX
6648  how to translate a certain paragraph style into \SpecialChar LaTeX
6649  does not tell \SpecialChar LyX
6650  how to display it;
6651  conversely,
6652  telling \SpecialChar LyX
6653  how to display a certain paragraph style does not tell \SpecialChar LyX
6654  how to translate it into \SpecialChar LaTeX
6655  (let alone tell \SpecialChar LaTeX
6656  how to display it).
6657  So,
6658  in general,
6659  when you define a new \SpecialChar LyX
6660  construct,
6661  you must always do two quite separate things:
6662  (i)
6663 \begin_inset space ~
6664 \end_inset
6665
6666 tell \SpecialChar LyX
6667  how to translate it into \SpecialChar LaTeX
6668  and (ii)
6669 \begin_inset space ~
6670 \end_inset
6671
6672 tell \SpecialChar LyX
6673  how to display it.
6674 \end_layout
6675
6676 \begin_layout Standard
6677 Much the same is true,
6678  of course,
6679  as regards \SpecialChar LyX
6680 's other backend formats,
6681  though XHTML is in some ways different,
6682  because in that case \SpecialChar LyX
6683  
6684 \emph on
6685 is
6686 \emph default
6687  able,
6688  to some extent,
6689  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.
6690  Even in this case,
6691  however,
6692  the distinction between what \SpecialChar LyX
6693  does internally and how things are rendered externally remains in force,
6694  and the two can be controlled separately.
6695  See 
6696 \begin_inset CommandInset ref
6697 LatexCommand ref
6698 reference "sec:Tags-for-XHTML"
6699 nolink "false"
6700
6701 \end_inset
6702
6703  for the details.
6704 \end_layout
6705
6706 \begin_layout Section
6707 Installing new \SpecialChar LaTeX
6708  files
6709 \end_layout
6710
6711 \begin_layout Standard
6712 Some installations may not include a \SpecialChar LaTeX
6713  package or class file that you would like to use within \SpecialChar LyX
6714 .
6715  For example,
6716  you might need Foil\SpecialChar TeX
6717 ,
6718  a package for preparing slides for overhead projectors.
6719  Modern \SpecialChar LaTeX
6720  distributions like \SpecialChar TeX
6721 Live (2008 or newer) or MiK\SpecialChar TeX
6722  provide a user interface for installing such packages.
6723  For example,
6724  with MiK\SpecialChar TeX
6725 ,
6726  you start the program 
6727 \begin_inset Quotes eld
6728 \end_inset
6729
6730 Package
6731 \begin_inset space ~
6732 \end_inset
6733
6734 Manager
6735 \begin_inset Quotes erd
6736 \end_inset
6737
6738  to get a list of available packages.
6739  To install one of them,
6740  right click on it or use the corresponding toolbar button.
6741 \end_layout
6742
6743 \begin_layout Standard
6744 If your \SpecialChar LaTeX
6745  distribution does not provide such a `package manager',
6746  or if the package is not available from your distribution,
6747  then follow these steps to install it manually:
6748 \end_layout
6749
6750 \begin_layout Enumerate
6751 Get the package from 
6752 \begin_inset CommandInset href
6753 LatexCommand href
6754 name "CTAN"
6755 target "http://www.ctan.org/"
6756 literal "false"
6757
6758 \end_inset
6759
6760  or wherever.
6761 \end_layout
6762
6763 \begin_layout Enumerate
6764 If the package contains a file with the ending 
6765 \begin_inset Quotes eld
6766 \end_inset
6767
6768
6769 \begin_inset Flex Code
6770 status collapsed
6771
6772 \begin_layout Plain Layout
6773 .ins
6774 \end_layout
6775
6776 \end_inset
6777
6778
6779 \begin_inset Quotes erd
6780 \end_inset
6781
6782  (is the case for Foil\SpecialChar TeX
6783 ) then open a console,
6784  change to the folder of this file and execute the command 
6785 \begin_inset Flex Code
6786 status collapsed
6787
6788 \begin_layout Plain Layout
6789 latex foiltex.ins
6790 \end_layout
6791
6792 \end_inset
6793
6794 .
6795  You have now unpacked the package and have all files to install it.
6796  Most \SpecialChar LaTeX
6797 -packages are not packed and you can skip this step.
6798 \end_layout
6799
6800 \begin_layout Enumerate
6801 Now you need to decide if the package should be available for all users or only for you.
6802 \end_layout
6803
6804 \begin_deeper
6805 \begin_layout Enumerate
6806 On *nix systems (Linux,
6807  OSX,
6808  etc.),
6809  if you want the new package to be available for all users on your system,
6810  then install it in your `local' \SpecialChar TeX
6811  tree,
6812  otherwise install it in your own `user' \SpecialChar TeX
6813  tree.
6814  Where these trees should be created,
6815  if they do not already exist,
6816  depends on your system.
6817  To find this out,
6818  look in the file 
6819 \begin_inset Flex Code
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823 texmf.cnf
6824 \end_layout
6825
6826 \end_inset
6827
6828 .
6829 \begin_inset Foot
6830 status collapsed
6831
6832 \begin_layout Plain Layout
6833 This is usually in the directory 
6834 \begin_inset Flex Code
6835 status collapsed
6836
6837 \begin_layout Plain Layout
6838 $TEXMF/web2c
6839 \end_layout
6840
6841 \end_inset
6842
6843 ,
6844  though you can execute the command 
6845 \begin_inset Flex Code
6846 status collapsed
6847
6848 \begin_layout Plain Layout
6849 kpsewhich texmf.cnf
6850 \end_layout
6851
6852 \end_inset
6853
6854  to locate it.
6855 \end_layout
6856
6857 \end_inset
6858
6859  The location of the `local' \SpecialChar TeX
6860  tree is defined by the 
6861 \begin_inset Flex Code
6862 status collapsed
6863
6864 \begin_layout Plain Layout
6865 TEXMFLOCAL
6866 \end_layout
6867
6868 \end_inset
6869
6870  variable;
6871  this is usually somewhere like 
6872 \begin_inset Flex Code
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 /usr/local/share/texmf
6877 \end_layout
6878
6879 \end_inset
6880
6881  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6882 Live distribution.
6883  The location of the `user' \SpecialChar TeX
6884  tree is defined by 
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 TEXMFHOME
6890 \end_layout
6891
6892 \end_inset
6893
6894  and is commonly 
6895 \begin_inset Flex Code
6896 status collapsed
6897
6898 \begin_layout Plain Layout
6899 $HOME/texmf
6900 \end_layout
6901
6902 \end_inset
6903
6904  or 
6905 \begin_inset Flex Code
6906 status collapsed
6907
6908 \begin_layout Plain Layout
6909
6910 \family sans
6911 $HOME/.texliveXXXX
6912 \end_layout
6913
6914 \end_inset
6915
6916 .
6917  (If these variables are not predefined,
6918  you have to define them.) You'll probably need root permissions to create or modify the `local' tree,
6919  but not for your `user' tree.
6920 \begin_inset Newline newline
6921 \end_inset
6922
6923 In general,
6924  it is recommended to install in the user tree because your user will not be modified or even overwritten when you upgrade your system.
6925  It will typically also be backed up together with everything else when you backup your home directory (which,
6926  of course,
6927  you do on a regular basis).
6928 \end_layout
6929
6930 \begin_layout Enumerate
6931 On Windows,
6932  if you want the new package to be available for all users on your system,
6933  change to the folder where \SpecialChar LaTeX
6934  is installed and then change to the subfolder 
6935 \begin_inset Flex Code
6936 status collapsed
6937
6938 \begin_layout Plain Layout
6939 ~
6940 \backslash
6941 tex
6942 \backslash
6943 latex
6944 \end_layout
6945
6946 \end_inset
6947
6948 .
6949  (For MiK\SpecialChar TeX
6950 ,
6951  this would be by default the folder 
6952 \begin_inset Flex Code
6953 status collapsed
6954
6955 \begin_layout Plain Layout
6956 ~:
6957 \backslash
6958 Programs
6959 \backslash
6960 MiKTeX
6961 \backslash
6962 tex
6963 \backslash
6964 latex
6965 \end_layout
6966
6967 \end_inset
6968
6969 .)
6970 \begin_inset Foot
6971 status collapsed
6972
6973 \begin_layout Plain Layout
6974 Note that this will be the correct path only on English installations.
6975  On a German one,
6976  it would be 
6977 \begin_inset Flex Code
6978 status collapsed
6979
6980 \begin_layout Plain Layout
6981 ~:
6982 \backslash
6983 Programme
6984 \backslash
6985 MiKTeX
6986 \backslash
6987 tex
6988 \backslash
6989 latex
6990 \end_layout
6991
6992 \end_inset
6993
6994 ,
6995  and similarly for other languages.
6996 \end_layout
6997
6998 \end_inset
6999
7000  Create there a new folder 
7001 \begin_inset Flex Code
7002 status collapsed
7003
7004 \begin_layout Plain Layout
7005 foiltex
7006 \end_layout
7007
7008 \end_inset
7009
7010  and copy all files of the package into it.
7011  
7012 \begin_inset Newline newline
7013 \end_inset
7014
7015 If the package should only available for you or you don't have admin permissions,
7016  do the same,
7017  but in the local \SpecialChar LaTeX
7018  folder.
7019  E.
7020 \begin_inset space \thinspace{}
7021 \end_inset
7022
7023 g.,
7024  for MiK\SpecialChar TeX
7025
7026 \begin_inset space ~
7027 \end_inset
7028
7029 2.8 under Windows XP,
7030  this would be the folder:
7031 \begin_inset Newline newline
7032 \end_inset
7033
7034
7035 \family sans
7036
7037 \begin_inset Flex Code
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 ~:
7042 \backslash
7043 Documents and Settings
7044 \backslash
7045 <username>
7046 \backslash
7047 Application Data
7048 \backslash
7049
7050 \end_layout
7051
7052 \end_inset
7053
7054
7055 \begin_inset Newline newline
7056 \end_inset
7057
7058
7059 \family default
7060
7061 \begin_inset Phantom HPhantom
7062 status open
7063
7064 \begin_layout Plain Layout
7065
7066 \family sans
7067 ~:
7068 \backslash
7069
7070 \end_layout
7071
7072 \end_inset
7073
7074
7075 \begin_inset Flex Code
7076 status collapsed
7077
7078 \begin_layout Plain Layout
7079 MiKTeX
7080 \backslash
7081 2.8
7082 \backslash
7083 tex
7084 \backslash
7085 latex
7086 \end_layout
7087
7088 \end_inset
7089
7090
7091 \begin_inset Newline newline
7092 \end_inset
7093
7094 On Vista,
7095  it would be:
7096 \begin_inset Newline newline
7097 \end_inset
7098
7099
7100 \begin_inset Flex Code
7101 status collapsed
7102
7103 \begin_layout Plain Layout
7104 ~:
7105 \backslash
7106 Users
7107 \backslash
7108 <username>
7109 \backslash
7110 AppData
7111 \backslash
7112 Roaming
7113 \backslash
7114 2.8
7115 \backslash
7116 MiKTeX
7117 \backslash
7118 tex
7119 \backslash
7120 latex
7121 \end_layout
7122
7123 \end_inset
7124
7125
7126 \end_layout
7127
7128 \end_deeper
7129 \begin_layout Enumerate
7130 Now one only need to tell \SpecialChar LaTeX
7131  that there are new files.
7132  This depends on the used \SpecialChar LaTeX
7133 -Distribution:
7134 \end_layout
7135
7136 \begin_deeper
7137 \begin_layout Enumerate
7138 For \SpecialChar TeX
7139 Live execute the command 
7140 \begin_inset Flex Code
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 texhash
7145 \end_layout
7146
7147 \end_inset
7148
7149  from a console.
7150  If you installed the package for all users,
7151  then you will probably need to have root permissions for that.
7152 \end_layout
7153
7154 \begin_layout Enumerate
7155 For MiK\SpecialChar TeX
7156 ,
7157  if you have installed the package for all users,
7158  start the program 
7159 \begin_inset Quotes eld
7160 \end_inset
7161
7162 Settings
7163 \begin_inset space ~
7164 \end_inset
7165
7166 (Admin)
7167 \begin_inset Quotes erd
7168 \end_inset
7169
7170  and press the button marked 
7171 \begin_inset Quotes eld
7172 \end_inset
7173
7174 Refresh FNDB
7175 \begin_inset Quotes erd
7176 \end_inset
7177
7178 .
7179  Otherwise start the program 
7180 \begin_inset Quotes eld
7181 \end_inset
7182
7183 Settings
7184 \begin_inset Quotes erd
7185 \end_inset
7186
7187  and do the same.
7188 \end_layout
7189
7190 \end_deeper
7191 \begin_layout Enumerate
7192 Finally,
7193  you need to tell \SpecialChar LyX
7194  that there are new packages available.
7195  So,
7196  in \SpecialChar LyX
7197 ,
7198  use the menu 
7199 \begin_inset Flex Noun
7200 status collapsed
7201
7202 \begin_layout Plain Layout
7203 Tools
7204 \family sans
7205 \SpecialChar menuseparator
7206 Reconfigure
7207 \end_layout
7208
7209 \end_inset
7210
7211  and then restart \SpecialChar LyX
7212 .
7213 \end_layout
7214
7215 \begin_layout Standard
7216 Now the package is installed.
7217  In our example,
7218  the document class 
7219 \begin_inset Flex Code
7220 status collapsed
7221
7222 \begin_layout Plain Layout
7223 FoilTex
7224 \end_layout
7225
7226 \end_inset
7227
7228  will now be available under 
7229 \begin_inset Flex Noun
7230 status collapsed
7231
7232 \begin_layout Plain Layout
7233 Document\SpecialChar menuseparator
7234 Settings\SpecialChar menuseparator
7235 Document Class
7236 \end_layout
7237
7238 \end_inset
7239
7240  (in the 
7241 \begin_inset Quotes eld
7242 \end_inset
7243
7244 Presentations
7245 \begin_inset Quotes erd
7246 \end_inset
7247
7248  category).
7249  
7250 \end_layout
7251
7252 \begin_layout Standard
7253 If you would like to use a \SpecialChar LaTeX
7254  document class that is not even listed in the menu 
7255 \begin_inset Flex Noun
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 Document\SpecialChar menuseparator
7260 Settings\SpecialChar menuseparator
7261 Document Class
7262 \end_layout
7263
7264 \end_inset
7265
7266 ,
7267  then you need to create a `layout' file for it.
7268  That is the topic of the next section.
7269 \end_layout
7270
7271 \begin_layout Section
7272 Types of layout files
7273 \end_layout
7274
7275 \begin_layout Standard
7276 This section describes the various sorts of \SpecialChar LyX
7277  files that contain layout information.
7278  These files describe various paragraph and character styles,
7279  determining how \SpecialChar LyX
7280  should display them and how they should be translated into \SpecialChar LaTeX
7281 ,
7282  DocBook,
7283  XHTML,
7284  or whatever output format is being used.
7285  
7286 \end_layout
7287
7288 \begin_layout Standard
7289 We shall try to provide a thorough description of the process of writing layout files here.
7290  However,
7291  there are so many different types of documents supported even by just \SpecialChar LaTeX
7292  that we can't hope to cover every different possibility or problem you might encounter.
7293  The \SpecialChar LyX
7294  users' list is frequented by people with lots of experience with layout design who are willing to share what they've learned,
7295  so please feel free to ask questions there.
7296 \end_layout
7297
7298 \begin_layout Standard
7299 As you prepare to write a new layout,
7300  it is extremely helpful to look at the layouts distributed with \SpecialChar LyX
7301 .
7302  If you write a \SpecialChar LyX
7303  layout for a \SpecialChar LaTeX
7304  document class that might also be used by others,
7305  or write a module that might be useful to others,
7306  then you should consider posting your layout to the 
7307 \begin_inset CommandInset href
7308 LatexCommand href
7309 name "layout section on the LyX wiki"
7310 target "https://wiki.lyx.org/Layouts/Layouts"
7311 literal "false"
7312
7313 \end_inset
7314
7315  or even to the \SpecialChar LyX
7316  developers' list,
7317  so that it might be included in \SpecialChar LyX
7318  itself.
7319 \begin_inset Foot
7320 status collapsed
7321
7322 \begin_layout Plain Layout
7323 Note that \SpecialChar LyX
7324  is licensed under the General Public License,
7325  so any material that is contributed to \SpecialChar LyX
7326  must be similarly licensed.
7327 \end_layout
7328
7329 \end_inset
7330
7331
7332 \end_layout
7333
7334 \begin_layout Subsection
7335 Layout modules
7336 \begin_inset CommandInset label
7337 LatexCommand label
7338 name "subsec:Layout-modules"
7339
7340 \end_inset
7341
7342
7343 \end_layout
7344
7345 \begin_layout Standard
7346 We have spoken to this point about `layout files'.
7347  But there are different sorts of files that contain layout information.
7348  Layout files,
7349  strictly so called,
7350  have the 
7351 \begin_inset Flex Code
7352 status collapsed
7353
7354 \begin_layout Plain Layout
7355 .layout
7356 \end_layout
7357
7358 \end_inset
7359
7360  extension and provide \SpecialChar LyX
7361  with information about document classes.
7362  Since \SpecialChar LyX
7363  1.6 layout information can also be contained in layout 
7364 \emph on
7365 modules
7366 \emph default
7367 ,
7368  which have the 
7369 \begin_inset Flex Code
7370 status collapsed
7371
7372 \begin_layout Plain Layout
7373 .module
7374 \end_layout
7375
7376 \end_inset
7377
7378  extension.
7379  Modules are to \SpecialChar LaTeX
7380  packages much as layouts are to \SpecialChar LaTeX
7381  classes,
7382  and some modules—
7383 such as the 
7384 \begin_inset Flex Code
7385 status collapsed
7386
7387 \begin_layout Plain Layout
7388 endnotes
7389 \end_layout
7390
7391 \end_inset
7392
7393  module—
7394 specifically provide support for one package.
7395  In a sense,
7396  layout modules are similar to included
7397 \begin_inset Foot
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 These can have any extension,
7402  but by convention have the 
7403 \begin_inset Flex Code
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 .inc
7408 \end_layout
7409
7410 \end_inset
7411
7412  extension.
7413 \end_layout
7414
7415 \end_inset
7416
7417  files—
7418 files like 
7419 \begin_inset Flex Code
7420 status collapsed
7421
7422 \begin_layout Plain Layout
7423 stdsections.inc
7424 \end_layout
7425
7426 \end_inset
7427
7428
7429 in that modules are not specific to a given document class but may be used with many different classes.
7430  The difference is that using an included file with 
7431 \begin_inset Flex Code
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 article.cls
7436 \end_layout
7437
7438 \end_inset
7439
7440  requires editing that file.
7441  Modules,
7442  by contrast,
7443  are selected in the 
7444 \begin_inset Flex Noun
7445 status collapsed
7446
7447 \begin_layout Plain Layout
7448 Document\SpecialChar menuseparator
7449 Settings
7450 \end_layout
7451
7452 \end_inset
7453
7454  dialog.
7455 \end_layout
7456
7457 \begin_layout Standard
7458 Building modules is the easiest way to get started with layout editing,
7459  since it can be as simple as adding a single new paragraph style or flex inset.
7460  But modules may,
7461  in principle,
7462  contain anything a layout file can contain.
7463 \end_layout
7464
7465 \begin_layout Standard
7466 After creating a new module and copying it to the 
7467 \begin_inset Flex Code
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 layouts/
7472 \end_layout
7473
7474 \end_inset
7475
7476  folder,
7477  you will need to reconfigure and then restart \SpecialChar LyX
7478  for the module to appear in the menu.
7479  However,
7480  changes you make to the module will be seen immediately,
7481  if you open 
7482 \begin_inset Flex Noun
7483 status collapsed
7484
7485 \begin_layout Plain Layout
7486 Document\SpecialChar menuseparator
7487 Settings
7488 \end_layout
7489
7490 \end_inset
7491
7492 ,
7493  highlight something,
7494  and then hit 
7495 \begin_inset Quotes eld
7496 \end_inset
7497
7498 OK
7499 \begin_inset Quotes erd
7500 \end_inset
7501
7502 .
7503  
7504 \emph on
7505 It is strongly recommended that you save your work before doing this
7506 \emph default
7507 .
7508  In fact,
7509  
7510 \emph on
7511 it is strongly recommended that you not attempt to edit modules while simultaneously working on actual documents
7512 \emph default
7513 .
7514  Though of course the developers strive to keep \SpecialChar LyX
7515  stable in such situations,
7516  syntax errors and the like in your module file could cause strange behavior.
7517 \end_layout
7518
7519 \begin_layout Subsubsection
7520 Local Layout
7521 \end_layout
7522
7523 \begin_layout Standard
7524 Modules are to \SpecialChar LyX
7525  as packages are to \SpecialChar LaTeX
7526 .
7527  Sometimes,
7528  however,
7529  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.
7530  What you need is \SpecialChar LyX
7531 's 
7532 \begin_inset Quotes eld
7533 \end_inset
7534
7535 Local Layout
7536 \begin_inset Quotes erd
7537 \end_inset
7538
7539 .
7540 \end_layout
7541
7542 \begin_layout Standard
7543 You will find it under 
7544 \family sans
7545 Document\SpecialChar menuseparator
7546 Settings\SpecialChar menuseparator
7547 Local Layout
7548 \family default
7549 .
7550  The large text box allows you to enter anything that you might enter in a layout file or module.
7551  You can think of a document's local layout,
7552  in fact,
7553  as a module that belongs just to it.
7554  So,
7555  in particular,
7556  you must enter a 
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561 Format
7562 \end_layout
7563
7564 \end_inset
7565
7566  tag.
7567  Any format is acceptable,
7568  but one would normally use the format current at the time.
7569  (In \SpecialChar LyX
7570  
7571 \begin_inset Info
7572 type  "lyxinfo"
7573 arg   "version"
7574 \end_inset
7575
7576 ,
7577  the current layout format is 
7578 \begin_inset Info
7579 type  "lyxinfo"
7580 arg   "layoutformat"
7581 \end_inset
7582
7583 .)
7584 \end_layout
7585
7586 \begin_layout Standard
7587 When you have entered something in the 
7588 \begin_inset Flex Code
7589 status collapsed
7590
7591 \begin_layout Plain Layout
7592 Local Layout
7593 \end_layout
7594
7595 \end_inset
7596
7597  pane,
7598  \SpecialChar LyX
7599  will enable the 
7600 \begin_inset Quotes eld
7601 \end_inset
7602
7603 Validate
7604 \begin_inset Quotes erd
7605 \end_inset
7606
7607  button at the bottom.
7608  Clicking this button will cause \SpecialChar LyX
7609  to determine whether what you have entered is valid layout information for the chosen format.
7610  \SpecialChar LyX
7611  will report the result but,
7612  unfortunately,
7613  will not tell you what errors there might have been.
7614  These will be written to the terminal,
7615  however,
7616  if \SpecialChar LyX
7617  is started from a terminal.
7618  You will not be permitted to save your local layout until you have entered something valid.
7619 \end_layout
7620
7621 \begin_layout Standard
7622 The warnings at the end of the previous section apply here,
7623  too.
7624  Do not play with local layout while you are actually working,
7625  especially if you have not saved your document.
7626  That said,
7627  using local layout with a test document can be a very convenient way to try out layout ideas,
7628  or even to start developing a module.
7629 \end_layout
7630
7631 \begin_layout Subsection
7632 Layout for 
7633 \begin_inset Flex Noun
7634 status collapsed
7635
7636 \begin_layout Plain Layout
7637 .sty
7638 \end_layout
7639
7640 \end_inset
7641
7642  files
7643 \end_layout
7644
7645 \begin_layout Standard
7646 There are two situations you are likely to encounter when wanting to support a new \SpecialChar LaTeX
7647  document class,
7648  involving style (
7649 \begin_inset Flex Code
7650 status collapsed
7651
7652 \begin_layout Plain Layout
7653 .sty
7654 \end_layout
7655
7656 \end_inset
7657
7658 ) files and \SpecialChar LaTeX2e
7659  class (
7660 \begin_inset Flex Code
7661 status collapsed
7662
7663 \begin_layout Plain Layout
7664 .cls
7665 \end_layout
7666
7667 \end_inset
7668
7669 ) .
7670  Supporting a style file is usually fairly easy.
7671  Supporting a new class file is a bit harder.
7672  We'll discuss the former in this section and the latter in the next.
7673  
7674 \change_deleted 5863208 1594239023
7675 Similar remarks apply,
7676  of course,
7677  if you want to support a new DocBook DTD.
7678 \change_unchanged
7679
7680 \end_layout
7681
7682 \begin_layout Standard
7683 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.
7684  For the sake of the example,
7685  we'll assume that the style file is called 
7686 \begin_inset Flex Noun
7687 status collapsed
7688
7689 \begin_layout Plain Layout
7690 myclass.sty
7691 \end_layout
7692
7693 \end_inset
7694
7695  and that it is meant to be used with 
7696 \begin_inset Flex Noun
7697 status collapsed
7698
7699 \begin_layout Plain Layout
7700 report.cls
7701 \end_layout
7702
7703 \end_inset
7704
7705 ,
7706  which is a standard class.
7707  
7708 \end_layout
7709
7710 \begin_layout Standard
7711 Start by copying the existing class's layout file into your local directory:
7712 \begin_inset Foot
7713 status collapsed
7714
7715 \begin_layout Plain Layout
7716 Of course,
7717  which directory is your local directory will vary by platform,
7718  and \SpecialChar LyX
7719  allows you to specify your local directory on startup,
7720  too,
7721  using the 
7722 \begin_inset Flex Code
7723 status collapsed
7724
7725 \begin_layout Plain Layout
7726 -userdir
7727 \end_layout
7728
7729 \end_inset
7730
7731  option.
7732 \end_layout
7733
7734 \end_inset
7735
7736
7737 \end_layout
7738
7739 \begin_layout LyX-Code
7740 cp report.layout ~/.lyx/layouts/myclass.layout
7741 \end_layout
7742
7743 \begin_layout Standard
7744 Then edit 
7745 \begin_inset Flex Code
7746 status collapsed
7747
7748 \begin_layout Plain Layout
7749 myclass.layout
7750 \end_layout
7751
7752 \end_inset
7753
7754  and change the line:
7755  
7756 \end_layout
7757
7758 \begin_layout LyX-Code
7759
7760 \backslash
7761 DeclareLaTeXClass{Report (Standard Class)}
7762 \end_layout
7763
7764 \begin_layout Standard
7765 to read
7766 \end_layout
7767
7768 \begin_layout LyX-Code
7769
7770 \backslash
7771 DeclareLaTeXClass[report,
7772  myclass.sty]{Report (My Class)}
7773 \end_layout
7774
7775 \begin_layout Standard
7776 Then add:
7777 \end_layout
7778
7779 \begin_layout LyX-Code
7780 Preamble 
7781 \begin_inset Newline newline
7782 \end_inset
7783
7784     
7785 \backslash
7786 usepackage{myclass}
7787 \begin_inset Newline newline
7788 \end_inset
7789
7790 EndPreamble
7791 \end_layout
7792
7793 \begin_layout Standard
7794 near the top of the file.
7795 \end_layout
7796
7797 \begin_layout Standard
7798 Start \SpecialChar LyX
7799  and select 
7800 \begin_inset Flex Noun
7801 status collapsed
7802
7803 \begin_layout Plain Layout
7804 Tools\SpecialChar menuseparator
7805 Reconfigure
7806 \end_layout
7807
7808 \end_inset
7809
7810 .
7811  Then restart \SpecialChar LyX
7812  and try creating a new document.
7813  You should see "
7814 \begin_inset Flex Noun
7815 status collapsed
7816
7817 \begin_layout Plain Layout
7818 Report (My Class)
7819 \end_layout
7820
7821 \end_inset
7822
7823 " as a document class option in the 
7824 \begin_inset Flex Noun
7825 status collapsed
7826
7827 \begin_layout Plain Layout
7828 Document\SpecialChar menuseparator
7829 Settings
7830 \end_layout
7831
7832 \end_inset
7833
7834  dialog.
7835  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—
7836
7837 \begin_inset Flex Code
7838 status collapsed
7839
7840 \begin_layout Plain Layout
7841 report
7842 \end_layout
7843
7844 \end_inset
7845
7846  in this example—
7847 so you can fiddle around with the settings for the different sections if you wish.
7848  The layout information for sections is contained in 
7849 \begin_inset Flex Code
7850 status collapsed
7851
7852 \begin_layout Plain Layout
7853 stdsections.inc
7854 \end_layout
7855
7856 \end_inset
7857
7858 ,
7859  but you do not need to copy and change this file.
7860  Instead,
7861  you can simply add your changes to your layout file,
7862  after the line 
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 Input stdclass.inc
7868 \end_layout
7869
7870 \end_inset
7871
7872 ,
7873  which itself includes 
7874 \begin_inset Flex Code
7875 status collapsed
7876
7877 \begin_layout Plain Layout
7878 stdsections.inc
7879 \end_layout
7880
7881 \end_inset
7882
7883 .
7884  For example,
7885  you might add these lines:
7886 \end_layout
7887
7888 \begin_layout LyX-Code
7889 Style Chapter
7890 \end_layout
7891
7892 \begin_layout LyX-Code
7893     Font
7894 \end_layout
7895
7896 \begin_layout LyX-Code
7897         Family Sans
7898 \end_layout
7899
7900 \begin_layout LyX-Code
7901     EndFont
7902 \end_layout
7903
7904 \begin_layout LyX-Code
7905 End
7906 \end_layout
7907
7908 \begin_layout Standard
7909 to change the font for chapter headings to sans-serif.
7910  This will override (or,
7911  in this case,
7912  add to) the existing declaration for the Chapter style.
7913  
7914 \end_layout
7915
7916 \begin_layout Standard
7917 Your new package may also provide commands or environments not present in the base class.
7918  In this case,
7919  you will want to add these to the layout file.
7920  See 
7921 \begin_inset CommandInset ref
7922 LatexCommand ref
7923 reference "sec:TextClass"
7924 nolink "false"
7925
7926 \end_inset
7927
7928  for information on how to do so.
7929 \end_layout
7930
7931 \begin_layout Standard
7932 If 
7933 \begin_inset Flex Noun
7934 status collapsed
7935
7936 \begin_layout Plain Layout
7937 myclass.sty
7938 \end_layout
7939
7940 \end_inset
7941
7942  can be used with several different document classes,
7943  and even if it cannot,
7944  you might find it easiest just to write a module that you can load with the base class.
7945  The simplest possible such module would be:
7946 \end_layout
7947
7948 \begin_layout LyX-Code
7949 #
7950 \backslash
7951 DeclareLyXModule{My Class} 
7952 \end_layout
7953
7954 \begin_layout LyX-Code
7955 #DescriptionBegin 
7956 \end_layout
7957
7958 \begin_layout LyX-Code
7959 #Support for myclass.sty.
7960 \end_layout
7961
7962 \begin_layout LyX-Code
7963 #DescriptionEnd
7964 \begin_inset Newline newline
7965 \end_inset
7966
7967
7968 \end_layout
7969
7970 \begin_layout LyX-Code
7971 Format 
7972 \begin_inset Info
7973 type  "lyxinfo"
7974 arg   "layoutformat"
7975 \end_inset
7976
7977
7978 \begin_inset Newline newline
7979 \end_inset
7980
7981
7982 \end_layout
7983
7984 \begin_layout LyX-Code
7985 Preamble
7986 \begin_inset Newline newline
7987 \end_inset
7988
7989     
7990 \backslash
7991 usepackage{myclass}
7992 \begin_inset Newline newline
7993 \end_inset
7994
7995 EndPreamble
7996 \end_layout
7997
7998 \begin_layout Standard
7999 A more complex module might modify the behavior of some existing constructs or define some new ones.
8000  Again,
8001  see 
8002 \begin_inset CommandInset ref
8003 LatexCommand ref
8004 reference "sec:TextClass"
8005 nolink "false"
8006
8007 \end_inset
8008
8009  for discussion.
8010 \end_layout
8011
8012 \begin_layout Subsection
8013 Layout for 
8014 \begin_inset Flex Noun
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 .cls
8019 \end_layout
8020
8021 \end_inset
8022
8023  files
8024 \end_layout
8025
8026 \begin_layout Standard
8027 There are two possibilities here.
8028  One is that the class file is itself based upon an existing document class.
8029  For example,
8030  many thesis classes are based upon 
8031 \begin_inset Flex Noun
8032 status collapsed
8033
8034 \begin_layout Plain Layout
8035 book.cls
8036 \end_layout
8037
8038 \end_inset
8039
8040 .
8041  To see whether yours is,
8042  look for a line like
8043 \end_layout
8044
8045 \begin_layout LyX-Code
8046
8047 \backslash
8048 LoadClass{book}
8049 \end_layout
8050
8051 \begin_layout Standard
8052 in the file.
8053  If so,
8054  then you may proceed largely as in the previous section,
8055  though the 
8056 \begin_inset Flex Code
8057 status collapsed
8058
8059 \begin_layout Plain Layout
8060 Declare\SpecialChar LaTeX
8061 Class
8062 \end_layout
8063
8064 \end_inset
8065
8066  line will be different.
8067  If your new class is 
8068 \begin_inset Flex Code
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 thesis
8073 \end_layout
8074
8075 \end_inset
8076
8077  and it is based upon 
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 book
8083 \end_layout
8084
8085 \end_inset
8086
8087 ,
8088  then the line should read:
8089 \begin_inset Foot
8090 status collapsed
8091
8092 \begin_layout Plain Layout
8093 And it will be easiest if you save the file to 
8094 \begin_inset Flex Code
8095 status collapsed
8096
8097 \begin_layout Plain Layout
8098 thesis.layout
8099 \end_layout
8100
8101 \end_inset
8102
8103 :
8104  \SpecialChar LyX
8105  assumes that the document class has the same name as the layout file.
8106  
8107 \end_layout
8108
8109 \end_inset
8110
8111
8112 \end_layout
8113
8114 \begin_layout LyX-Code
8115
8116 \backslash
8117 DeclareLaTeXClass[thesis,book]{thesis}
8118 \end_layout
8119
8120 \begin_layout Standard
8121 If,
8122  on the other hand,
8123  the new class is not based upon an existing class,
8124  you will probably have to 
8125 \begin_inset Quotes eld
8126 \end_inset
8127
8128 roll your own
8129 \begin_inset Quotes erd
8130 \end_inset
8131
8132  layout.
8133  We strongly suggest copying an existing layout file which uses a similar \SpecialChar LaTeX
8134  class and then modifying it,
8135  if you can do so.
8136  At least use an existing file as a starting point so you can find out what items you need to worry about.
8137  Again,
8138  the specifics are covered below.
8139 \end_layout
8140
8141 \begin_layout Subsection
8142 Creating templates
8143 \begin_inset CommandInset label
8144 LatexCommand label
8145 name "subsec:Creating-Templates"
8146
8147 \end_inset
8148
8149
8150 \end_layout
8151
8152 \begin_layout Standard
8153 Once you have written a layout file for a new document class,
8154  you might want to consider writing a 
8155 \emph on
8156 template
8157 \emph default
8158  for it,
8159  too.
8160  A template acts as a kind of tutorial for your layout,
8161  showing how it might be used,
8162  though containing dummy content.
8163  You can of course look at the various templates included with \SpecialChar LyX
8164  for ideas.
8165 \end_layout
8166
8167 \begin_layout Standard
8168 Templates are created just like usual documents:
8169  using \SpecialChar LyX
8170 .
8171  The only difference is that usual documents contain all possible settings,
8172  including the font scheme and the paper size.
8173  Usually a user doesn't want a template to overwrite his preferred settings for such parameters.
8174  For that reason,
8175  the designer of a template should remove the corresponding commands like 
8176 \begin_inset Flex Code
8177 status collapsed
8178
8179 \begin_layout Plain Layout
8180
8181 \backslash
8182 font_roman
8183 \end_layout
8184
8185 \end_inset
8186
8187  or 
8188 \begin_inset Flex Code
8189 status collapsed
8190
8191 \begin_layout Plain Layout
8192
8193 \backslash
8194 papersize
8195 \end_layout
8196
8197 \end_inset
8198
8199  from the template \SpecialChar LyX
8200  file.
8201  This can be done with any simple text-editor,
8202  for example 
8203 \begin_inset Flex Code
8204 status collapsed
8205
8206 \begin_layout Plain Layout
8207 vi
8208 \end_layout
8209
8210 \end_inset
8211
8212  or 
8213 \begin_inset Flex Code
8214 status collapsed
8215
8216 \begin_layout Plain Layout
8217 notepad
8218 \end_layout
8219
8220 \end_inset
8221
8222 .
8223 \end_layout
8224
8225 \begin_layout Standard
8226 Put the edited template files you create in 
8227 \begin_inset Flex Code
8228 status collapsed
8229
8230 \begin_layout Plain Layout
8231 UserDir/templates/
8232 \end_layout
8233
8234 \end_inset
8235
8236 ,
8237  copy the ones you use from the global template directory in 
8238 \begin_inset Flex Code
8239 status collapsed
8240
8241 \begin_layout Plain Layout
8242 LyXDir/templates/
8243 \end_layout
8244
8245 \end_inset
8246
8247  to the same place,
8248  and redefine the template path in the 
8249 \begin_inset Flex Noun
8250 status collapsed
8251
8252 \begin_layout Plain Layout
8253 Tools\SpecialChar menuseparator
8254 Preferences\SpecialChar menuseparator
8255 Paths
8256 \end_layout
8257
8258 \end_inset
8259
8260  dialog.
8261 \end_layout
8262
8263 \begin_layout Standard
8264 Note,
8265  by the way,
8266  that there is a template which has a particular meaning:
8267 \begin_inset Newline linebreak
8268 \end_inset
8269
8270
8271 \begin_inset Flex Code
8272 status collapsed
8273
8274 \begin_layout Plain Layout
8275 defaults.lyx
8276 \end_layout
8277
8278 \end_inset
8279
8280 .
8281  This template is loaded every time you create a new document with 
8282 \begin_inset Flex Noun
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286 File\SpecialChar menuseparator
8287 New
8288 \end_layout
8289
8290 \end_inset
8291
8292  in order to provide useful defaults.
8293  To create this template from inside \SpecialChar LyX
8294 ,
8295  all you have to do is to open a document with the correct settings,
8296  and use the 
8297 \begin_inset Flex Noun
8298 status collapsed
8299
8300 \begin_layout Plain Layout
8301 Save as Document Defaults
8302 \end_layout
8303
8304 \end_inset
8305
8306  button.
8307 \end_layout
8308
8309 \begin_layout Subsection
8310 Upgrading old layout files
8311 \end_layout
8312
8313 \begin_layout Standard
8314 The format of layout files changes with each \SpecialChar LyX
8315  release,
8316  so old layout files need to be converted to the new format.
8317  If \SpecialChar LyX
8318  reads a layout file in an older format,
8319  it automatically calls the script 
8320 \begin_inset Flex Code
8321 status collapsed
8322
8323 \begin_layout Plain Layout
8324 layout2layout.py
8325 \end_layout
8326
8327 \end_inset
8328
8329  to convert it to a temporary file in current format.
8330  The original file is left untouched.
8331  If you use the layout file often,
8332  then,
8333  you may want to convert it permanently,
8334  so that \SpecialChar LyX
8335  does not have to do so itself every time.
8336  To do this,
8337  you can call the converter manually:
8338 \end_layout
8339
8340 \begin_layout Enumerate
8341 rename the file 
8342 \begin_inset Flex Code
8343 status collapsed
8344
8345 \begin_layout Plain Layout
8346 myclass.layout
8347 \end_layout
8348
8349 \end_inset
8350
8351  to 
8352 \begin_inset Flex Code
8353 status collapsed
8354
8355 \begin_layout Plain Layout
8356 myclass.old
8357 \end_layout
8358
8359 \end_inset
8360
8361
8362 \end_layout
8363
8364 \begin_layout Enumerate
8365 Call the command
8366 \begin_inset Newline newline
8367 \end_inset
8368
8369
8370 \begin_inset Flex Code
8371 status collapsed
8372
8373 \begin_layout Plain Layout
8374 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8375 \end_layout
8376
8377 \end_inset
8378
8379
8380 \begin_inset Newline newline
8381 \end_inset
8382
8383 where 
8384 \begin_inset Flex Code
8385 status collapsed
8386
8387 \begin_layout Plain Layout
8388 LyXDir
8389 \end_layout
8390
8391 \end_inset
8392
8393  is the name of your \SpecialChar LyX
8394  system directory.
8395 \end_layout
8396
8397 \begin_layout Standard
8398 Note that manual conversion does not affect included files,
8399  so these will have to be converted separately.
8400 \end_layout
8401
8402 \begin_layout Subsection
8403 \begin_inset CommandInset label
8404 LatexCommand label
8405 name "subsec:Cite-Engine-Files"
8406
8407 \end_inset
8408
8409 Cite engine files
8410 \end_layout
8411
8412 \begin_layout Standard
8413 A specific form of layout files are the so-called 
8414 \begin_inset Flex Code
8415 status collapsed
8416
8417 \begin_layout Plain Layout
8418 *.citeengine
8419 \end_layout
8420
8421 \end_inset
8422
8423  files that are located in the 
8424 \begin_inset Flex Code
8425 status collapsed
8426
8427 \begin_layout Plain Layout
8428 citeengines/
8429 \end_layout
8430
8431 \end_inset
8432
8433  sub-directory.
8434  Their purpose is to define the specifics of \SpecialChar LaTeX
8435  packages aimed at bibliography generation,
8436  such as 
8437 \family sans
8438 natbib
8439 \family default
8440 ,
8441
8442 \family sans
8443  jurabib
8444 \family default
8445  or 
8446 \family sans
8447 biblatex
8448 \family default
8449 ,
8450  but also the way how normal Bib\SpecialChar TeX
8451  citations (without additional packages) are handled in \SpecialChar LyX
8452  is defined in such a file.
8453  
8454 \end_layout
8455
8456 \begin_layout Standard
8457 More specifically,
8458  it is defined which packages \SpecialChar LyX
8459  needs to load,
8460  which citation commands are available,
8461  how these are to be displayed in \SpecialChar LyX
8462  (in the workarea,
8463  the dialogs,
8464  the context menus) as well as in the XHTML and plain text output.
8465  Furthermore,
8466  the files specify available style variants (author-year,
8467  numerical,
8468  etc.) and their specifics.
8469  The cite engine files are also used to generate the options that are available in 
8470 \family sans
8471 Document\SpecialChar menuseparator
8472 Settings\SpecialChar menuseparator
8473 Bibliography\SpecialChar menuseparator
8474 Style engine
8475 \family default
8476 .
8477 \end_layout
8478
8479 \begin_layout Standard
8480 Even though a cite engine file is essentially a normal layout file that could theoretically include any layout information,
8481  it usually primarily includes some specific parameters such as 
8482 \begin_inset Flex Code
8483 status collapsed
8484
8485 \begin_layout Plain Layout
8486 MaxCiteNames
8487 \end_layout
8488
8489 \end_inset
8490
8491 ,
8492  
8493 \begin_inset Flex Code
8494 status collapsed
8495
8496 \begin_layout Plain Layout
8497 CiteFramework
8498 \end_layout
8499
8500 \end_inset
8501
8502 ,
8503  
8504 \begin_inset Flex Code
8505 status collapsed
8506
8507 \begin_layout Plain Layout
8508 CiteEngine
8509 \end_layout
8510
8511 \end_inset
8512
8513  and 
8514 \begin_inset Flex Code
8515 status collapsed
8516
8517 \begin_layout Plain Layout
8518 CiteFormat
8519 \end_layout
8520
8521 \end_inset
8522
8523  blocks.
8524  The syntax of the latter two is described in 
8525 \begin_inset CommandInset ref
8526 LatexCommand ref
8527 reference "subsec:Citation-engine-description"
8528 plural "false"
8529 caps "false"
8530 noprefix "false"
8531 nolink "false"
8532
8533 \end_inset
8534
8535  and 
8536 \begin_inset CommandInset ref
8537 LatexCommand ref
8538 reference "subsec:Citation-format-description"
8539 nolink "false"
8540
8541 \end_inset
8542
8543 ,
8544  as well as in the files themselves.
8545 \end_layout
8546
8547 \begin_layout Section
8548 \begin_inset CommandInset label
8549 LatexCommand label
8550 name "sec:TextClass"
8551
8552 \end_inset
8553
8554 The layout file format
8555 \end_layout
8556
8557 \begin_layout Standard
8558 The following sections describe how layout files are structured and written.
8559  Our advice is to go slowly,
8560  save and test often.
8561  It is really not that hard,
8562  except that the multitude of options can become overwhelming,
8563  especially if you try to check out too many at once.
8564  It becomes easier if you use existing layouts of \SpecialChar LyX
8565  as examples/reference or if you modify an existing layout to your needs.
8566 \end_layout
8567
8568 \begin_layout Standard
8569 Note that all the tags used in layout files are case-insensitive.
8570  This means that 
8571 \begin_inset Flex Code
8572 status collapsed
8573
8574 \begin_layout Plain Layout
8575 Style
8576 \end_layout
8577
8578 \end_inset
8579
8580 ,
8581  
8582 \begin_inset Flex Code
8583 status collapsed
8584
8585 \begin_layout Plain Layout
8586 style
8587 \end_layout
8588
8589 \end_inset
8590
8591  and 
8592 \begin_inset Flex Code
8593 status collapsed
8594
8595 \begin_layout Plain Layout
8596 StYlE
8597 \end_layout
8598
8599 \end_inset
8600
8601  are really the same tag.
8602  The possible arguments are printed in brackets after the tag's name.
8603  The default argument is typeset 
8604 \begin_inset Flex Code
8605 status collapsed
8606
8607 \begin_layout Plain Layout
8608
8609 \emph on
8610 emphasized
8611 \end_layout
8612
8613 \end_inset
8614
8615 .
8616  If the argument has a data type like 
8617 \begin_inset Quotes eld
8618 \end_inset
8619
8620 string
8621 \begin_inset Quotes erd
8622 \end_inset
8623
8624  or 
8625 \begin_inset Quotes eld
8626 \end_inset
8627
8628 float
8629 \begin_inset Quotes erd
8630 \end_inset
8631
8632 ,
8633  the default is shown like this:
8634  
8635 \begin_inset Flex Code
8636 status collapsed
8637
8638 \begin_layout Plain Layout
8639 float=
8640 \emph on
8641 default
8642 \end_layout
8643
8644 \end_inset
8645
8646 .
8647 \end_layout
8648
8649 \begin_layout Subsection
8650 The document class declaration and classification
8651 \end_layout
8652
8653 \begin_layout Standard
8654 Lines in a layout file which begin with 
8655 \begin_inset Flex Code
8656 status collapsed
8657
8658 \begin_layout Plain Layout
8659 #
8660 \end_layout
8661
8662 \end_inset
8663
8664  are comments.
8665  There is one exception to this rule.
8666  All 
8667 \begin_inset Flex Code
8668 status collapsed
8669
8670 \begin_layout Plain Layout
8671 *.layout
8672 \end_layout
8673
8674 \end_inset
8675
8676  files should begin with lines like:
8677 \end_layout
8678
8679 \begin_layout LyX-Code
8680
8681 \size small
8682 #% Do not delete the line below;
8683  configure depends on this 
8684 \end_layout
8685
8686 \begin_layout LyX-Code
8687
8688 \size small
8689 #  
8690 \backslash
8691 DeclareLaTeXClass{Article (Standard Class)}
8692 \end_layout
8693
8694 \begin_layout LyX-Code
8695
8696 \size small
8697 #  
8698 \backslash
8699 DeclareCategory{Articles}
8700 \end_layout
8701
8702 \begin_layout Standard
8703 The second and third lines are used when you (re)configure \SpecialChar LyX
8704 .
8705  The layout file is read by the \SpecialChar LaTeX
8706  script 
8707 \begin_inset Flex Code
8708 status collapsed
8709
8710 \begin_layout Plain Layout
8711 chkconfig.ltx
8712 \end_layout
8713
8714 \end_inset
8715
8716 ,
8717  in a special mode where 
8718 \begin_inset Flex Code
8719 status collapsed
8720
8721 \begin_layout Plain Layout
8722 #
8723 \end_layout
8724
8725 \end_inset
8726
8727  is ignored.
8728  The first line is just a \SpecialChar LaTeX
8729  comment,
8730  the second one contains the mandatory declaration of the text class and the third line contains the optional classification of the class.
8731  If these lines appear in a file named 
8732 \begin_inset Flex Code
8733 status collapsed
8734
8735 \begin_layout Plain Layout
8736 article.layout
8737 \end_layout
8738
8739 \end_inset
8740
8741 ,
8742  then they define a text class of name 
8743 \begin_inset Flex Code
8744 status collapsed
8745
8746 \begin_layout Plain Layout
8747 article
8748 \end_layout
8749
8750 \end_inset
8751
8752  (the name of the layout file) which uses the \SpecialChar LaTeX
8753  document class 
8754 \begin_inset Flex Code
8755 status collapsed
8756
8757 \begin_layout Plain Layout
8758 article.cls
8759 \end_layout
8760
8761 \end_inset
8762
8763  (the default is to use the same name as the layout).
8764  The string 
8765 \begin_inset Quotes eld
8766 \end_inset
8767
8768 Article (Standard Class)
8769 \begin_inset Quotes erd
8770 \end_inset
8771
8772  that appears above is used as a description of the text class in the 
8773 \begin_inset Flex Noun
8774 status collapsed
8775
8776 \begin_layout Plain Layout
8777 Document\SpecialChar menuseparator
8778 Settings
8779 \end_layout
8780
8781 \end_inset
8782
8783  dialog.
8784  The category (
8785 \begin_inset Quotes eld
8786 \end_inset
8787
8788 Articles
8789 \begin_inset Quotes erd
8790 \end_inset
8791
8792  in the example) is also used in the 
8793 \begin_inset Flex Noun
8794 status collapsed
8795
8796 \begin_layout Plain Layout
8797 Document\SpecialChar menuseparator
8798 Settings
8799 \end_layout
8800
8801 \end_inset
8802
8803  dialog:
8804  the text classes are grouped by these categories (which are usually genres,
8805  so typical categories are 
8806 \begin_inset Quotes eld
8807 \end_inset
8808
8809 Articles
8810 \begin_inset Quotes erd
8811 \end_inset
8812
8813 ,
8814  
8815 \begin_inset Quotes eld
8816 \end_inset
8817
8818 Books
8819 \begin_inset Quotes erd
8820 \end_inset
8821
8822 ,
8823  
8824 \begin_inset Quotes eld
8825 \end_inset
8826
8827 Reports
8828 \begin_inset Quotes erd
8829 \end_inset
8830
8831 ,
8832  
8833 \begin_inset Quotes eld
8834 \end_inset
8835
8836 Letters
8837 \begin_inset Quotes erd
8838 \end_inset
8839
8840 ,
8841  
8842 \begin_inset Quotes eld
8843 \end_inset
8844
8845 Presentations
8846 \begin_inset Quotes erd
8847 \end_inset
8848
8849 ,
8850  
8851 \begin_inset Quotes eld
8852 \end_inset
8853
8854 Curricula Vitae
8855 \begin_inset Quotes erd
8856 \end_inset
8857
8858  etc.).
8859  If no category has been declared,
8860  the class will be put in the 
8861 \begin_inset Quotes eld
8862 \end_inset
8863
8864 Uncategorized
8865 \begin_inset Quotes erd
8866 \end_inset
8867
8868  group.
8869 \end_layout
8870
8871 \begin_layout Standard
8872 Let's assume that you wrote your own text class that uses the 
8873 \begin_inset Flex Code
8874 status collapsed
8875
8876 \begin_layout Plain Layout
8877 article.cls
8878 \end_layout
8879
8880 \end_inset
8881
8882  document class,
8883  but where you changed the appearance of the section headings.
8884  If you put it in a file 
8885 \begin_inset Flex Code
8886 status collapsed
8887
8888 \begin_layout Plain Layout
8889 myarticle.layout
8890 \end_layout
8891
8892 \end_inset
8893
8894 ,
8895  the header of this file should be:
8896 \end_layout
8897
8898 \begin_layout LyX-Code
8899
8900 \size small
8901 #% Do not delete the line below;
8902  configure depends on this 
8903 \end_layout
8904
8905 \begin_layout LyX-Code
8906
8907 \size small
8908 #  
8909 \backslash
8910 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8911 \end_layout
8912
8913 \begin_layout LyX-Code
8914
8915 \size small
8916 #  
8917 \backslash
8918 DeclareCategory{Articles}
8919 \end_layout
8920
8921 \begin_layout Standard
8922 This declares a text class 
8923 \begin_inset Flex Code
8924 status collapsed
8925
8926 \begin_layout Plain Layout
8927 myarticle
8928 \end_layout
8929
8930 \end_inset
8931
8932 ,
8933  associated with the \SpecialChar LaTeX
8934  document class 
8935 \begin_inset Flex Code
8936 status collapsed
8937
8938 \begin_layout Plain Layout
8939 article.cls
8940 \end_layout
8941
8942 \end_inset
8943
8944  and described as 
8945 \begin_inset Quotes eld
8946 \end_inset
8947
8948 Article (with My Own Headings)
8949 \begin_inset Quotes erd
8950 \end_inset
8951
8952 .
8953  If your text class depends on several packages,
8954  you can declare it as:
8955 \end_layout
8956
8957 \begin_layout LyX-Code
8958
8959 \size small
8960 #% Do not delete the line below;
8961  configure depends on this 
8962 \end_layout
8963
8964 \begin_layout LyX-Code
8965
8966 \size small
8967 #  
8968 \backslash
8969 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8970 \end_layout
8971
8972 \begin_layout LyX-Code
8973
8974 \size small
8975 #  
8976 \backslash
8977 DeclareCategory{Articles}
8978 \end_layout
8979
8980 \begin_layout Standard
8981 This indicates that your text class uses the 
8982 \begin_inset Flex Code
8983 status collapsed
8984
8985 \begin_layout Plain Layout
8986 foo.sty
8987 \end_layout
8988
8989 \end_inset
8990
8991  package.
8992  
8993 \change_deleted 5863208 1594239179
8994 Finally,
8995  it is also possible to declare classes for DocBook code.
8996  Typical declarations will look like:
8997 \end_layout
8998
8999 \begin_layout LyX-Code
9000
9001 \change_deleted 5863208 1594239179
9002
9003 \size small
9004 #% Do not delete the line below;
9005  configure depends on this 
9006 \end_layout
9007
9008 \begin_layout LyX-Code
9009
9010 \change_deleted 5863208 1594239179
9011
9012 \size small
9013
9014 \backslash
9015 DeclareDocBookClass[article]{SGML (DocBook Article)}
9016 \end_layout
9017
9018 \begin_layout LyX-Code
9019
9020 \change_deleted 5863208 1594239179
9021
9022 \size small
9023
9024 \backslash
9025 DeclareCategory{Articles (DocBook)}
9026 \change_unchanged
9027
9028 \end_layout
9029
9030 \begin_layout Standard
9031 Note that these declarations can also be given an optional parameter declaring the name of the document class (but not a list).
9032 \end_layout
9033
9034 \begin_layout Standard
9035 So,
9036  to be as explicit as possible,
9037  the form of the layout declaration is:
9038 \end_layout
9039
9040 \begin_layout LyX-Code
9041
9042 \size small
9043 #  
9044 \backslash
9045 DeclareLaTeXClass[class,package.sty]{layout description}
9046 \end_layout
9047
9048 \begin_layout LyX-Code
9049
9050 \size small
9051 #  
9052 \backslash
9053 DeclareCategory{category}
9054 \end_layout
9055
9056 \begin_layout Standard
9057 The class need only be specified if the name of the \SpecialChar LaTeX
9058  class file and the name of the layout file are different or if there are packages to load.
9059  If the name of the class file is not specified,
9060  then \SpecialChar LyX
9061  will simply assume that it is the same as the name of the layout file.
9062 \end_layout
9063
9064 \begin_layout Standard
9065 When the text class has been modified to your taste,
9066  all you have to do is to copy it either to 
9067 \begin_inset Flex Code
9068 status collapsed
9069
9070 \begin_layout Plain Layout
9071 LyXDir/layouts/
9072 \end_layout
9073
9074 \end_inset
9075
9076  or to 
9077 \begin_inset Flex Code
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 UserDir/layouts
9082 \end_layout
9083
9084 \end_inset
9085
9086 ,
9087  run 
9088 \begin_inset Flex Noun
9089 status collapsed
9090
9091 \begin_layout Plain Layout
9092 Tools\SpecialChar menuseparator
9093 Reconfigure
9094 \end_layout
9095
9096 \end_inset
9097
9098 ,
9099  exit \SpecialChar LyX
9100  and restart.
9101  Then your new text class should be available along with the others.
9102 \end_layout
9103
9104 \begin_layout Standard
9105 Once the layout file is installed,
9106  you can edit it and see your changes without having to reconfigure or to restart \SpecialChar LyX
9107 .
9108 \begin_inset Foot
9109 status collapsed
9110
9111 \begin_layout Plain Layout
9112 In versions of \SpecialChar LyX
9113  prior to 1.6,
9114  this was not true.
9115  As a result,
9116  editing layout files was very time consuming,
9117  since you had constantly to restart \SpecialChar LyX
9118  to see changes.
9119 \end_layout
9120
9121 \end_inset
9122
9123  You can force a reload of the current layout by using the \SpecialChar LyX
9124  function 
9125 \begin_inset Flex Noun
9126 status collapsed
9127
9128 \begin_layout Plain Layout
9129 layout-reload
9130 \end_layout
9131
9132 \end_inset
9133
9134 .
9135  There is no default binding for this function—
9136 though,
9137  of course,
9138  you can bind it to a key yourself.
9139  But you will normally use this function simply by entering it in the mini-buffer.
9140  
9141 \end_layout
9142
9143 \begin_layout Standard
9144
9145 \emph on
9146 Warning
9147 \emph default
9148 :
9149  
9150 \begin_inset Flex Noun
9151 status collapsed
9152
9153 \begin_layout Plain Layout
9154 layout-reload
9155 \end_layout
9156
9157 \end_inset
9158
9159  is very much an `advanced feature'.
9160  It is 
9161 \emph on
9162 strongly
9163 \emph default
9164  recommended that you save your work before using this function.
9165  In fact,
9166  it is 
9167 \emph on
9168 strongly
9169 \emph default
9170  recommended that you not attempt to edit layout information while simultaneously working on a document that you care about.
9171  Use a test document.
9172  Syntax errors and the like in your layout file could cause peculiar behavior.
9173  In particular,
9174  such errors could cause \SpecialChar LyX
9175  to regard the current layout as invalid and to attempt to switch to some other layout.
9176 \begin_inset Foot
9177 status collapsed
9178
9179 \begin_layout Plain Layout
9180 Really bad syntax errors may even caused \SpecialChar LyX
9181  to exit.
9182  This is because certain sorts of errors may make \SpecialChar LyX
9183  unable to read 
9184 \emph on
9185 any
9186 \emph default
9187  layout information.
9188  Please be careful.
9189 \end_layout
9190
9191 \end_inset
9192
9193  The \SpecialChar LyX
9194  team strives to keep \SpecialChar LyX
9195  stable in such situations,
9196  but safe is better than sorry.
9197 \begin_inset Foot
9198 status collapsed
9199
9200 \begin_layout Plain Layout
9201 While we're giving advice:
9202  make regular backups.
9203  And be nice to your mother.
9204 \end_layout
9205
9206 \end_inset
9207
9208
9209 \end_layout
9210
9211 \begin_layout Subsection
9212 The Module declaration
9213 \end_layout
9214
9215 \begin_layout Standard
9216 A module must begin with a line like the following:
9217 \end_layout
9218
9219 \begin_layout LyX-Code
9220 #
9221 \backslash
9222 DeclareLyXModule[endnotes.sty]{Endnotes}
9223 \change_inserted -712698321 1554395911
9224
9225 \end_layout
9226
9227 \begin_layout LyX-Code
9228
9229 \change_inserted -712698321 1554395924
9230
9231 \size small
9232 #
9233 \backslash
9234 DeclareCategory{Foot- and Endnotes}
9235 \change_deleted -712698321 1554395911
9236
9237 \size default
9238  
9239 \change_unchanged
9240
9241 \end_layout
9242
9243 \begin_layout Standard
9244 The mandatory argument
9245 \change_inserted -712698321 1554395956
9246  of 
9247 \family typewriter
9248
9249 \backslash
9250 DeclareLyXModule
9251 \change_unchanged
9252
9253 \family default
9254 ,
9255  in curly brackets,
9256  is the name of the module,
9257  as it should appear in 
9258 \begin_inset Flex Noun
9259 status collapsed
9260
9261 \begin_layout Plain Layout
9262 Document\SpecialChar menuseparator
9263 Settings\SpecialChar menuseparator
9264 Modules
9265 \end_layout
9266
9267 \end_inset
9268
9269 .
9270  The argument in square brackets is optional:
9271  It declares any \SpecialChar LaTeX
9272  packages on which the module depends.
9273  It is also possible to use the form 
9274 \begin_inset Flex Noun
9275 status collapsed
9276
9277 \begin_layout Plain Layout
9278 from->to
9279 \end_layout
9280
9281 \end_inset
9282
9283  as an optional argument,
9284  which declares that the module can only be used when there exists a conversion chain between the formats `
9285 \begin_inset Flex Code
9286 status collapsed
9287
9288 \begin_layout Plain Layout
9289 from
9290 \end_layout
9291
9292 \end_inset
9293
9294 ' and `
9295 \begin_inset Flex Code
9296 status collapsed
9297
9298 \begin_layout Plain Layout
9299 to
9300 \end_layout
9301
9302 \end_inset
9303
9304 '.
9305
9306 \change_inserted -712698321 1554396133
9307  The 
9308 \family typewriter
9309
9310 \backslash
9311 DeclareCategory
9312 \family default
9313  declaration is not strictly mandatory,
9314  but you should add it,
9315  since it is helpful to find the module.
9316  Please have a look at the existing module categories and if appropriate,
9317  use one of those.
9318 \change_unchanged
9319
9320 \end_layout
9321
9322 \begin_layout Standard
9323 The module 
9324 \change_inserted -712698321 1554395988
9325 and category 
9326 \change_unchanged
9327 declaration should then be followed by lines like the following:
9328 \begin_inset Foot
9329 status collapsed
9330
9331 \begin_layout Plain Layout
9332 Preferably in English if the module should be published with \SpecialChar LyX
9333 .
9334  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9335 \end_layout
9336
9337 \end_inset
9338
9339
9340 \end_layout
9341
9342 \begin_layout LyX-Code
9343 #DescriptionBegin 
9344 \end_layout
9345
9346 \begin_layout LyX-Code
9347 #Adds an endnote command,
9348  in addition to footnotes.
9349  
9350 \end_layout
9351
9352 \begin_layout LyX-Code
9353 #You will need to add  
9354 \backslash
9355 theendnotes in TeX code where you 
9356 \end_layout
9357
9358 \begin_layout LyX-Code
9359 #want the endnotes to appear.
9360  
9361 \end_layout
9362
9363 \begin_layout LyX-Code
9364 #DescriptionEnd 
9365 \end_layout
9366
9367 \begin_layout LyX-Code
9368 #Requires:
9369  somemodule | othermodule
9370 \end_layout
9371
9372 \begin_layout LyX-Code
9373 #Excludes:
9374  badmodule
9375 \end_layout
9376
9377 \begin_layout Standard
9378 The description is used in 
9379 \begin_inset Flex Noun
9380 status collapsed
9381
9382 \begin_layout Plain Layout
9383 Document\SpecialChar menuseparator
9384 Settings\SpecialChar menuseparator
9385 Modules
9386 \end_layout
9387
9388 \end_inset
9389
9390  to provide the user with information about what the module does.
9391  The 
9392 \begin_inset Flex Code
9393 status collapsed
9394
9395 \begin_layout Plain Layout
9396 Requires
9397 \end_layout
9398
9399 \end_inset
9400
9401  line is used to identify other modules with which this one must be used;
9402  the 
9403 \begin_inset Flex Code
9404 status collapsed
9405
9406 \begin_layout Plain Layout
9407 Excludes
9408 \end_layout
9409
9410 \end_inset
9411
9412  line is used to identify modules with which this one may not be used.
9413  Both are optional,
9414  and,
9415  as shown,
9416  multiple modules should be separated with the pipe symbol:
9417  |.
9418  Note that the required modules are treated disjunctively:
9419  
9420 \emph on
9421 at least one
9422 \emph default
9423  of the required modules must be used.
9424  Similarly,
9425  
9426 \emph on
9427 no
9428 \emph default
9429  excluded module may be used.
9430  Note that modules are identified here by their filenames without the 
9431 \begin_inset Flex Code
9432 status collapsed
9433
9434 \begin_layout Plain Layout
9435 .module
9436 \end_layout
9437
9438 \end_inset
9439
9440  extension.
9441  So 
9442 \begin_inset Flex Code
9443 status collapsed
9444
9445 \begin_layout Plain Layout
9446 somemodule
9447 \end_layout
9448
9449 \end_inset
9450
9451  is really 
9452 \begin_inset Flex Code
9453 status collapsed
9454
9455 \begin_layout Plain Layout
9456 somemodule.module
9457 \end_layout
9458
9459 \end_inset
9460
9461 .
9462 \end_layout
9463
9464 \begin_layout Subsection
9465 The CiteEngine file declaration
9466 \end_layout
9467
9468 \begin_layout Standard
9469 A cite engine file must begin with a line like the following:
9470 \end_layout
9471
9472 \begin_layout LyX-Code
9473 #
9474 \backslash
9475 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9476 \end_layout
9477
9478 \begin_layout Standard
9479 The mandatory argument,
9480  in curly brackets,
9481  is the name of the cite style,
9482  as it should appear in 
9483 \begin_inset Flex Noun
9484 status collapsed
9485
9486 \begin_layout Plain Layout
9487 Document\SpecialChar menuseparator
9488 Settings\SpecialChar menuseparator
9489 Bibliography
9490 \end_layout
9491
9492 \end_inset
9493
9494 .
9495  The argument in square brackets is optional:
9496  It declares any \SpecialChar LaTeX
9497  packages on which the cite engine depends.
9498 \end_layout
9499
9500 \begin_layout Standard
9501 The cite engine declaration should then be followed by lines like the following:
9502 \begin_inset Foot
9503 status collapsed
9504
9505 \begin_layout Plain Layout
9506 Preferably in English if the module should be published with \SpecialChar LyX
9507 .
9508  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9509 \end_layout
9510
9511 \end_inset
9512
9513
9514 \end_layout
9515
9516 \begin_layout LyX-Code
9517 # DescriptionBegin
9518 \end_layout
9519
9520 \begin_layout LyX-Code
9521 #   Biblatex supports many author-year and numerical styles.
9522 \end_layout
9523
9524 \begin_layout LyX-Code
9525 #   It is mainly aimed at the Humanities.
9526  It is highly
9527 \end_layout
9528
9529 \begin_layout LyX-Code
9530 #   customizable,
9531  fully localized and provides many features
9532 \end_layout
9533
9534 \begin_layout LyX-Code
9535 #   that are not possible with BibTeX.
9536  The use of 'biber' as
9537 \end_layout
9538
9539 \begin_layout LyX-Code
9540 #   bibliography processor is advised.
9541 \end_layout
9542
9543 \begin_layout LyX-Code
9544 # DescriptionEnd
9545 \end_layout
9546
9547 \begin_layout Standard
9548 The description is used in 
9549 \begin_inset Flex Noun
9550 status collapsed
9551
9552 \begin_layout Plain Layout
9553 Document\SpecialChar menuseparator
9554 Settings\SpecialChar menuseparator
9555 Bibliography
9556 \end_layout
9557
9558 \end_inset
9559
9560  to provide the user with information about the cite engine.
9561 \end_layout
9562
9563 \begin_layout Subsection
9564 Format number
9565 \end_layout
9566
9567 \begin_layout Standard
9568 The first non-comment line of any layout file,
9569  included file,
9570  or module 
9571 \emph on
9572 must
9573 \emph default
9574  contain the file format number:
9575 \end_layout
9576
9577 \begin_layout Description
9578 \begin_inset Flex Code
9579 status collapsed
9580
9581 \begin_layout Plain Layout
9582 Format
9583 \end_layout
9584
9585 \end_inset
9586
9587  [
9588 \begin_inset Flex Code
9589 status collapsed
9590
9591 \begin_layout Plain Layout
9592 int
9593 \end_layout
9594
9595 \end_inset
9596
9597 ] The format number of the layout file.
9598 \end_layout
9599
9600 \begin_layout Standard
9601 This tag was introduced with \SpecialChar LyX
9602
9603 \begin_inset space ~
9604 \end_inset
9605
9606 1.4.0.
9607  Layout files from older \SpecialChar LyX
9608  versions do not have an explicit file format and are considered to have 
9609 \begin_inset Flex Code
9610 status collapsed
9611
9612 \begin_layout Plain Layout
9613 Format
9614 \begin_inset space ~
9615 \end_inset
9616
9617 1
9618 \end_layout
9619
9620 \end_inset
9621
9622 .
9623  The format for the present version of \SpecialChar LyX
9624  is format 60.
9625  But each version of \SpecialChar LyX
9626  is capable of reading earlier versions' layout files,
9627  just as they are capable of reading files produced by earlier versions of \SpecialChar LyX
9628 .
9629  There is,
9630  however,
9631  no provision for converting to earlier formats.
9632 \end_layout
9633
9634 \begin_layout Subsection
9635 \begin_inset CommandInset label
9636 LatexCommand label
9637 name "subsec:General-text-class"
9638
9639 \end_inset
9640
9641 General text class parameters
9642 \end_layout
9643
9644 \begin_layout Standard
9645 These are general parameters that govern the behavior of an entire document class.
9646  (This does 
9647 \emph on
9648 not
9649 \emph default
9650  mean that they must appear in 
9651 \begin_inset Flex Code
9652 status collapsed
9653
9654 \begin_layout Plain Layout
9655 .layout
9656 \end_layout
9657
9658 \end_inset
9659
9660  files rather than in modules.
9661  A module can contain any layout tag.)
9662 \end_layout
9663
9664 \begin_layout Description
9665
9666 \change_inserted -712698321 1526899478
9667 \begin_inset Flex Code
9668 status collapsed
9669
9670 \begin_layout Plain Layout
9671
9672 \change_inserted -712698321 1526898610
9673 AddToCiteEngine <engine>
9674 \change_unchanged
9675
9676 \end_layout
9677
9678 \end_inset
9679
9680  Extends the possibilities for displaying citation references.
9681  See 
9682 \begin_inset CommandInset ref
9683 LatexCommand ref
9684 reference "subsec:Citation-engine-description"
9685 plural "false"
9686 caps "false"
9687 noprefix "false"
9688 nolink "false"
9689
9690 \end_inset
9691
9692  for details.
9693  Must end with 
9694 \begin_inset Flex Code
9695 status collapsed
9696
9697 \begin_layout Plain Layout
9698
9699 \change_inserted -712698321 1526898823
9700 End
9701 \change_unchanged
9702
9703 \end_layout
9704
9705 \end_inset
9706
9707 .
9708 \end_layout
9709
9710 \begin_layout Description
9711 \begin_inset Flex Code
9712 status collapsed
9713
9714 \begin_layout Plain Layout
9715 AddToHTMLPreamble
9716 \end_layout
9717
9718 \end_inset
9719
9720  Adds information that will be output in the 
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 <head>
9726 \end_layout
9727
9728 \end_inset
9729
9730  block when the document is output to XHTML.
9731  Typically,
9732  this would be used to output CSS style information,
9733  but it can be used for anything that can appear in 
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 <head>
9739 \end_layout
9740
9741 \end_inset
9742
9743 .
9744  Must end with 
9745 \begin_inset Quotes eld
9746 \end_inset
9747
9748
9749 \begin_inset Flex Code
9750 status collapsed
9751
9752 \begin_layout Plain Layout
9753 EndPreamble
9754 \end_layout
9755
9756 \end_inset
9757
9758
9759 \begin_inset Quotes erd
9760 \end_inset
9761
9762 .
9763 \end_layout
9764
9765 \begin_layout Description
9766 \begin_inset Flex Code
9767 status collapsed
9768
9769 \begin_layout Plain Layout
9770 AddToPreamble
9771 \end_layout
9772
9773 \end_inset
9774
9775  Adds information to the document preamble.
9776  Must end with
9777 \begin_inset Newline newline
9778 \end_inset
9779
9780
9781 \begin_inset Quotes eld
9782 \end_inset
9783
9784
9785 \begin_inset Flex Code
9786 status collapsed
9787
9788 \begin_layout Plain Layout
9789 EndPreamble
9790 \end_layout
9791
9792 \end_inset
9793
9794
9795 \begin_inset Quotes erd
9796 \end_inset
9797
9798 .
9799 \change_inserted -712698321 1562592950
9800
9801 \end_layout
9802
9803 \begin_layout Description
9804
9805 \change_inserted -712698321 1562593040
9806 \begin_inset Flex Code
9807 status collapsed
9808
9809 \begin_layout Plain Layout
9810
9811 \change_inserted -712698321 1562592954
9812 BibInToc
9813 \change_unchanged
9814
9815 \end_layout
9816
9817 \end_inset
9818
9819  [
9820 \begin_inset Flex Code
9821 status collapsed
9822
9823 \begin_layout Plain Layout
9824
9825 \change_inserted -712698321 1562592950
9826
9827 \emph on
9828 0
9829 \change_unchanged
9830
9831 \end_layout
9832
9833 \end_inset
9834
9835 ,
9836 \begin_inset space \thinspace{}
9837 \end_inset
9838
9839
9840 \begin_inset Flex Code
9841 status collapsed
9842
9843 \begin_layout Plain Layout
9844
9845 \change_inserted -712698321 1562592950
9846 1
9847 \change_unchanged
9848
9849 \end_layout
9850
9851 \end_inset
9852
9853 ] If the document class adds the bibliography to the table of contents,
9854  add this option with value 
9855 \begin_inset Flex Code
9856 status collapsed
9857
9858 \begin_layout Plain Layout
9859
9860 \change_inserted -712698321 1562592996
9861 1
9862 \change_unchanged
9863
9864 \end_layout
9865
9866 \end_inset
9867
9868  (or 
9869 \begin_inset Flex Code
9870 status collapsed
9871
9872 \begin_layout Plain Layout
9873
9874 \change_inserted -712698321 1562593006
9875 true
9876 \change_unchanged
9877
9878 \end_layout
9879
9880 \end_inset
9881
9882 ).
9883  This prevents the bibliography from being added twice.
9884 \change_unchanged
9885
9886 \end_layout
9887
9888 \begin_layout Description
9889 \begin_inset Flex Code
9890 status collapsed
9891
9892 \begin_layout Plain Layout
9893 CiteEngine <engine>
9894 \end_layout
9895
9896 \end_inset
9897
9898  Defines the possibilities for displaying citation references.
9899  See 
9900 \begin_inset CommandInset ref
9901 LatexCommand ref
9902 reference "subsec:Citation-engine-description"
9903 plural "false"
9904 caps "false"
9905 noprefix "false"
9906 nolink "false"
9907
9908 \end_inset
9909
9910  for details.
9911  Must end with 
9912 \begin_inset Quotes eld
9913 \end_inset
9914
9915
9916 \begin_inset Flex Code
9917 status collapsed
9918
9919 \begin_layout Plain Layout
9920 End
9921 \end_layout
9922
9923 \end_inset
9924
9925
9926 \begin_inset Quotes erd
9927 \end_inset
9928
9929 .
9930  Primarily used in cite engine files (see 
9931 \begin_inset CommandInset ref
9932 LatexCommand ref
9933 reference "subsec:Cite-Engine-Files"
9934 plural "false"
9935 caps "false"
9936 noprefix "false"
9937 nolink "false"
9938
9939 \end_inset
9940
9941 ).
9942
9943 \change_inserted -712698321 1526898530
9944  Note that if you specify this in a layout file or module,
9945  any cite engine definition will be overridden.
9946  Also see 
9947 \begin_inset Flex Code
9948 status collapsed
9949
9950 \begin_layout Plain Layout
9951
9952 \change_inserted -712698321 1526898530
9953 AddToCiteEngine
9954 \change_unchanged
9955
9956 \end_layout
9957
9958 \end_inset
9959
9960 .
9961 \change_unchanged
9962
9963 \end_layout
9964
9965 \begin_layout Description
9966 \begin_inset Flex Code
9967 status collapsed
9968
9969 \begin_layout Plain Layout
9970 CiteFormat
9971 \end_layout
9972
9973 \end_inset
9974
9975  Defines formats for use in the display of bibliographic information.
9976  See 
9977 \begin_inset CommandInset ref
9978 LatexCommand ref
9979 reference "subsec:Citation-format-description"
9980 nolink "false"
9981
9982 \end_inset
9983
9984  for details.
9985  Must end with 
9986 \begin_inset Quotes eld
9987 \end_inset
9988
9989
9990 \begin_inset Flex Code
9991 status collapsed
9992
9993 \begin_layout Plain Layout
9994 End
9995 \end_layout
9996
9997 \end_inset
9998
9999
10000 \begin_inset Quotes erd
10001 \end_inset
10002
10003 .
10004  Primarily used in cite engine files (see 
10005 \begin_inset CommandInset ref
10006 LatexCommand ref
10007 reference "subsec:Cite-Engine-Files"
10008 plural "false"
10009 caps "false"
10010 noprefix "false"
10011 nolink "false"
10012
10013 \end_inset
10014
10015 ).
10016
10017 \change_inserted -712698321 1526898585
10018  A cite format defined in a layout or module will override the cite engine definition.
10019 \change_unchanged
10020
10021 \end_layout
10022
10023 \begin_layout Description
10024 \begin_inset Flex Code
10025 status collapsed
10026
10027 \begin_layout Plain Layout
10028 CiteFramework
10029 \end_layout
10030
10031 \end_inset
10032
10033  [
10034 \begin_inset Flex Code
10035 status collapsed
10036
10037 \begin_layout Plain Layout
10038
10039 \emph on
10040 bibtex
10041 \end_layout
10042
10043 \end_inset
10044
10045 ,
10046 \begin_inset Flex Code
10047 status collapsed
10048
10049 \begin_layout Plain Layout
10050 biblatex
10051 \end_layout
10052
10053 \end_inset
10054
10055 ] Determines whether 
10056 \family sans
10057 Biblatex
10058 \family default
10059  or Bib\SpecialChar TeX
10060  is used to generate a Bibliography.
10061  Primarily used in cite engine files (see 
10062 \begin_inset CommandInset ref
10063 LatexCommand ref
10064 reference "subsec:Cite-Engine-Files"
10065 plural "false"
10066 caps "false"
10067 noprefix "false"
10068 nolink "false"
10069
10070 \end_inset
10071
10072 ).
10073 \end_layout
10074
10075 \begin_layout Description
10076 \begin_inset Flex Code
10077 status collapsed
10078
10079 \begin_layout Plain Layout
10080 ClassOptions
10081 \end_layout
10082
10083 \end_inset
10084
10085  Describes various global options supported by the document class.
10086  See 
10087 \begin_inset CommandInset ref
10088 LatexCommand ref
10089 reference "subsec:ClassOptions"
10090 nolink "false"
10091
10092 \end_inset
10093
10094  for a description.
10095  Must end with 
10096 \begin_inset Quotes eld
10097 \end_inset
10098
10099
10100 \begin_inset Flex Code
10101 status collapsed
10102
10103 \begin_layout Plain Layout
10104 End
10105 \end_layout
10106
10107 \end_inset
10108
10109
10110 \begin_inset Quotes erd
10111 \end_inset
10112
10113 .
10114 \end_layout
10115
10116 \begin_layout Description
10117 \begin_inset Flex Code
10118 status collapsed
10119
10120 \begin_layout Plain Layout
10121 Columns
10122 \end_layout
10123
10124 \end_inset
10125
10126  [
10127 \begin_inset Flex Code
10128 status collapsed
10129
10130 \begin_layout Plain Layout
10131
10132 \emph on
10133 1
10134 \end_layout
10135
10136 \end_inset
10137
10138 ,
10139 \begin_inset space \thinspace{}
10140 \end_inset
10141
10142
10143 \begin_inset Flex Code
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147 2
10148 \end_layout
10149
10150 \end_inset
10151
10152 ] Whether the class should 
10153 \emph on
10154 default
10155 \emph default
10156  to having one or two columns.
10157  Can be changed in the 
10158 \begin_inset Flex Noun
10159 status collapsed
10160
10161 \begin_layout Plain Layout
10162 Document\SpecialChar menuseparator
10163 Settings
10164 \end_layout
10165
10166 \end_inset
10167
10168  dialog.
10169 \end_layout
10170
10171 \begin_layout Description
10172 \begin_inset Flex Code
10173 status collapsed
10174
10175 \begin_layout Plain Layout
10176 Counter
10177 \end_layout
10178
10179 \end_inset
10180
10181  [
10182 \begin_inset Flex Code
10183 status collapsed
10184
10185 \begin_layout Plain Layout
10186 string
10187 \end_layout
10188
10189 \end_inset
10190
10191 ] This sequence defines the properties for a counter.
10192  If the counter does not yet exist,
10193  it is created;
10194  if it does exist,
10195  it is modified.
10196  Must end with 
10197 \begin_inset Quotes eld
10198 \end_inset
10199
10200
10201 \begin_inset Flex Code
10202 status collapsed
10203
10204 \begin_layout Plain Layout
10205 End
10206 \end_layout
10207
10208 \end_inset
10209
10210
10211 \begin_inset Quotes erd
10212 \end_inset
10213
10214 .
10215 \begin_inset Newline newline
10216 \end_inset
10217
10218 See 
10219 \begin_inset CommandInset ref
10220 LatexCommand ref
10221 reference "subsec:Counters"
10222 nolink "false"
10223
10224 \end_inset
10225
10226  for details on counters.
10227 \end_layout
10228
10229 \begin_layout Description
10230 \begin_inset Flex Code
10231 status collapsed
10232
10233 \begin_layout Plain Layout
10234 DefaultFont
10235 \end_layout
10236
10237 \end_inset
10238
10239  Sets the default font used to display the document.
10240  See 
10241 \begin_inset CommandInset ref
10242 LatexCommand ref
10243 reference "subsec:Font-description"
10244 nolink "false"
10245
10246 \end_inset
10247
10248  for how to declare fonts.
10249  Must end with 
10250 \begin_inset Quotes eld
10251 \end_inset
10252
10253
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258 EndFont
10259 \end_layout
10260
10261 \end_inset
10262
10263
10264 \begin_inset Quotes erd
10265 \end_inset
10266
10267 .
10268 \end_layout
10269
10270 \begin_layout Description
10271 \begin_inset Flex Code
10272 status collapsed
10273
10274 \begin_layout Plain Layout
10275 DefaultModule
10276 \end_layout
10277
10278 \end_inset
10279
10280  [
10281 \begin_inset Flex Code
10282 status collapsed
10283
10284 \begin_layout Plain Layout
10285 <module>
10286 \end_layout
10287
10288 \end_inset
10289
10290 ] Specifies a module to be included by default with this document class.
10291  The module is specified as filename without the 
10292 \begin_inset Flex Code
10293 status collapsed
10294
10295 \begin_layout Plain Layout
10296 .module
10297 \end_layout
10298
10299 \end_inset
10300
10301  extension.
10302  The user can still remove the module,
10303  but it will be active at the outset.
10304  (This applies only when new files are created,
10305  or when this class is chosen for an existing document.)
10306 \end_layout
10307
10308 \begin_layout Description
10309 \begin_inset Flex Code
10310 status collapsed
10311
10312 \begin_layout Plain Layout
10313 DefaultStyle
10314 \end_layout
10315
10316 \end_inset
10317
10318  [
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323 <style>
10324 \end_layout
10325
10326 \end_inset
10327
10328 ] This is the style that will be assigned to new paragraphs,
10329  usually 
10330 \begin_inset Flex Noun
10331 status collapsed
10332
10333 \begin_layout Plain Layout
10334 Standard
10335 \end_layout
10336
10337 \end_inset
10338
10339 .
10340  This will default to the first defined style if not given,
10341  but you are encouraged to use this directive.
10342 \end_layout
10343
10344 \begin_layout Description
10345
10346 \change_inserted -970929547 1515112870
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351
10352 \change_inserted -970929547 1515112782
10353 DocBookRoot
10354 \change_unchanged
10355
10356 \end_layout
10357
10358 \end_inset
10359
10360  [
10361 \begin_inset Flex Code
10362 status collapsed
10363
10364 \begin_layout Plain Layout
10365
10366 \change_inserted -970929547 1515112766
10367 string
10368 \change_unchanged
10369
10370 \end_layout
10371
10372 \end_inset
10373
10374 ] The root element (at the top of the document) to use when outputting documents with this class in DocBook.
10375  The default value is 
10376 \begin_inset Quotes eld
10377 \end_inset
10378
10379
10380 \begin_inset Flex Code
10381 status collapsed
10382
10383 \begin_layout Plain Layout
10384
10385 \change_inserted -970929547 1515112845
10386 article
10387 \change_unchanged
10388
10389 \end_layout
10390
10391 \end_inset
10392
10393
10394 \begin_inset Quotes erd
10395 \end_inset
10396
10397 .
10398
10399 \change_deleted 1075283030 1594226862
10400  
10401 \change_inserted 1075283030 1594226777
10402
10403 \end_layout
10404
10405 \begin_layout Description
10406
10407 \change_inserted 1075283030 1594226859
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412
10413 \change_inserted 1075283030 1594226785
10414 DocBookForceAbstract
10415 \change_unchanged
10416
10417 \end_layout
10418
10419 \end_inset
10420
10421  [
10422 \begin_inset Flex Code
10423 status collapsed
10424
10425 \begin_layout Plain Layout
10426
10427 \change_inserted 1075283030 1594226804
10428 boolean
10429 \change_unchanged
10430
10431 \end_layout
10432
10433 \end_inset
10434
10435 ] If 
10436 \begin_inset Quotes eld
10437 \end_inset
10438
10439
10440 \family typewriter
10441 true
10442 \family default
10443
10444 \begin_inset Quotes erd
10445 \end_inset
10446
10447 ,
10448  the root element will always have an 
10449 \family typewriter
10450 <abstract>
10451 \family default
10452  tag.
10453  The default value is 
10454 \begin_inset Quotes eld
10455 \end_inset
10456
10457
10458 \family typewriter
10459 false
10460 \family default
10461
10462 \begin_inset Quotes erd
10463 \end_inset
10464
10465 .
10466 \change_unchanged
10467
10468 \end_layout
10469
10470 \begin_layout Description
10471 \begin_inset Flex Code
10472 status collapsed
10473
10474 \begin_layout Plain Layout
10475 ExcludesModule
10476 \end_layout
10477
10478 \end_inset
10479
10480  [
10481 \begin_inset Flex Code
10482 status collapsed
10483
10484 \begin_layout Plain Layout
10485 <module>
10486 \end_layout
10487
10488 \end_inset
10489
10490 ] This tag indicates that the module (which is specified by filename without the 
10491 \begin_inset Flex Code
10492 status collapsed
10493
10494 \begin_layout Plain Layout
10495 .module
10496 \end_layout
10497
10498 \end_inset
10499
10500  extension) cannot be used with this document class.
10501  This might be used in a journal-specific layout file to prevent,
10502  say,
10503  the use of the 
10504 \begin_inset Flex Code
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 theorems-sec
10509 \end_layout
10510
10511 \end_inset
10512
10513  module that numbers theorems by section.
10514  This tag may 
10515 \emph on
10516 not
10517 \emph default
10518  be used in a module.
10519  Modules have their own way of excluding other modules (see 
10520 \begin_inset CommandInset ref
10521 LatexCommand ref
10522 reference "subsec:Layout-modules"
10523 nolink "false"
10524
10525 \end_inset
10526
10527 ).
10528 \end_layout
10529
10530 \begin_layout Description
10531 \begin_inset Flex Code
10532 status collapsed
10533
10534 \begin_layout Plain Layout
10535 Float
10536 \end_layout
10537
10538 \end_inset
10539
10540  Defines a new float.
10541  See 
10542 \begin_inset CommandInset ref
10543 LatexCommand ref
10544 reference "subsec:Floats"
10545 nolink "false"
10546
10547 \end_inset
10548
10549  for details.
10550  Must end with 
10551 \begin_inset Quotes eld
10552 \end_inset
10553
10554
10555 \begin_inset Flex Code
10556 status collapsed
10557
10558 \begin_layout Plain Layout
10559 End
10560 \end_layout
10561
10562 \end_inset
10563
10564
10565 \begin_inset Quotes erd
10566 \end_inset
10567
10568 .
10569 \end_layout
10570
10571 \begin_layout Description
10572 \begin_inset Flex Code
10573 status collapsed
10574
10575 \begin_layout Plain Layout
10576 HTMLPreamble
10577 \end_layout
10578
10579 \end_inset
10580
10581  Sets the information that will be output in the 
10582 \begin_inset Flex Code
10583 status collapsed
10584
10585 \begin_layout Plain Layout
10586 <head>
10587 \end_layout
10588
10589 \end_inset
10590
10591  block when this document class is output to XHTML.
10592  Note that this will completely override any prior 
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 HTMLPreamble
10598 \end_layout
10599
10600 \end_inset
10601
10602  or 
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 AddToHTMLPreamble
10608 \end_layout
10609
10610 \end_inset
10611
10612  declarations.
10613  (Use
10614 \begin_inset Newline newline
10615 \end_inset
10616
10617
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 AddToHTMLPreamble
10623 \end_layout
10624
10625 \end_inset
10626
10627  if you just want to add material to the preamble.) Must end with 
10628 \begin_inset Quotes eld
10629 \end_inset
10630
10631
10632 \begin_inset Flex Code
10633 status collapsed
10634
10635 \begin_layout Plain Layout
10636 EndPreamble
10637 \end_layout
10638
10639 \end_inset
10640
10641
10642 \begin_inset Quotes erd
10643 \end_inset
10644
10645 .
10646 \end_layout
10647
10648 \begin_layout Description
10649 \begin_inset Flex Code
10650 status collapsed
10651
10652 \begin_layout Plain Layout
10653 HTMLTOCSection
10654 \end_layout
10655
10656 \end_inset
10657
10658  [
10659 \begin_inset Flex Code
10660 status collapsed
10661
10662 \begin_layout Plain Layout
10663 <style>
10664 \end_layout
10665
10666 \end_inset
10667
10668 ] The style to use for the table of contents,
10669  bibliography,
10670  and so forth,
10671  when the document is output to HTML.
10672  For articles,
10673  this should normally be 
10674 \begin_inset Flex Code
10675 status collapsed
10676
10677 \begin_layout Plain Layout
10678 Section
10679 \end_layout
10680
10681 \end_inset
10682
10683 ;
10684  for books 
10685 \begin_inset Flex Code
10686 status collapsed
10687
10688 \begin_layout Plain Layout
10689 Chapter
10690 \end_layout
10691
10692 \end_inset
10693
10694 .
10695  If it is not given,
10696  then \SpecialChar LyX
10697  will attempt to figure out which layout to use.
10698 \end_layout
10699
10700 \begin_layout Description
10701 \begin_inset Flex Code
10702 status collapsed
10703
10704 \begin_layout Plain Layout
10705 IfCounter
10706 \end_layout
10707
10708 \end_inset
10709
10710  [
10711 \begin_inset Flex Code
10712 status collapsed
10713
10714 \begin_layout Plain Layout
10715 <counter>
10716 \end_layout
10717
10718 \end_inset
10719
10720 ] Modifies the properties of the given counter.
10721  If the counter does not exist,
10722  the statement is ignored.
10723  Must end with 
10724 \begin_inset Quotes eld
10725 \end_inset
10726
10727
10728 \begin_inset Flex Code
10729 status collapsed
10730
10731 \begin_layout Plain Layout
10732 End
10733 \end_layout
10734
10735 \end_inset
10736
10737
10738 \begin_inset Quotes erd
10739 \end_inset
10740
10741 .
10742 \begin_inset Newline newline
10743 \end_inset
10744
10745 See 
10746 \begin_inset CommandInset ref
10747 LatexCommand ref
10748 reference "subsec:Counters"
10749 nolink "false"
10750
10751 \end_inset
10752
10753  for details on counters.
10754 \end_layout
10755
10756 \begin_layout Description
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 Input
10762 \end_layout
10763
10764 \end_inset
10765
10766  [
10767 \begin_inset Flex Code
10768 status collapsed
10769
10770 \begin_layout Plain Layout
10771 <filename>
10772 \end_layout
10773
10774 \end_inset
10775
10776 ] This allows you to include another layout definition file within yours to avoid duplicating commands.
10777  Common examples are the standard layout files,
10778  for example,
10779  
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 stdclass.inc
10785 \end_layout
10786
10787 \end_inset
10788
10789 ,
10790  which contains most of the basic layouts.
10791 \change_inserted -712698321 1611646803
10792
10793 \end_layout
10794
10795 \begin_layout Description
10796
10797 \change_inserted -712698321 1611646804
10798 \begin_inset Flex Code
10799 status collapsed
10800
10801 \begin_layout Plain Layout
10802
10803 \change_inserted -712698321 1611646837
10804 InputGlobal
10805 \change_unchanged
10806
10807 \end_layout
10808
10809 \end_inset
10810
10811  [
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816
10817 \change_inserted -712698321 1611646804
10818 <filename>
10819 \change_unchanged
10820
10821 \end_layout
10822
10823 \end_inset
10824
10825 ] is a variant of the 
10826 \begin_inset Flex Code
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830
10831 \change_inserted -712698321 1611646804
10832 Input
10833 \change_unchanged
10834
10835 \end_layout
10836
10837 \end_inset
10838
10839  command which does not look for files in the user directory.
10840  This allows to create a file 
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845
10846 \change_inserted -712698321 1611646804
10847 name.layout
10848 \change_unchanged
10849
10850 \end_layout
10851
10852 \end_inset
10853
10854  or 
10855 \begin_inset Flex Code
10856 status collapsed
10857
10858 \begin_layout Plain Layout
10859
10860 \change_inserted -712698321 1611646804
10861 name.inc
10862 \change_unchanged
10863
10864 \end_layout
10865
10866 \end_inset
10867
10868  in the user directory which includes a global file with the same name via 
10869 \begin_inset Flex Code
10870 status collapsed
10871
10872 \begin_layout Plain Layout
10873
10874 \change_inserted -712698321 1611646853
10875 InputGlobal name
10876 \change_unchanged
10877
10878 \end_layout
10879
10880 \end_inset
10881
10882  or 
10883 \begin_inset Flex Code
10884 status collapsed
10885
10886 \begin_layout Plain Layout
10887
10888 \change_inserted -712698321 1611646855
10889 InputGlobal name.inc
10890 \change_unchanged
10891
10892 \end_layout
10893
10894 \end_inset
10895
10896 ,
10897  respectively (with 
10898 \begin_inset Flex Code
10899 status collapsed
10900
10901 \begin_layout Plain Layout
10902
10903 \change_inserted -712698321 1611646804
10904 Input
10905 \change_unchanged
10906
10907 \end_layout
10908
10909 \end_inset
10910
10911 ,
10912  the file would recursively include itself).
10913  This way,
10914  you can modify global files without having to completely copy them.
10915 \change_unchanged
10916
10917 \end_layout
10918
10919 \begin_layout Description
10920 \begin_inset Flex Code
10921 status collapsed
10922
10923 \begin_layout Plain Layout
10924 InsetLayout
10925 \end_layout
10926
10927 \end_inset
10928
10929  [
10930 \begin_inset Flex Code
10931 status collapsed
10932
10933 \begin_layout Plain Layout
10934 <type>
10935 \end_layout
10936
10937 \end_inset
10938
10939 ] This section (re-)defines the layout of an inset.
10940  It can be applied to an existing inset or to a new,
10941  user-defined inset,
10942  e.g.,
10943  a new character style.
10944  Must end with 
10945 \begin_inset Quotes eld
10946 \end_inset
10947
10948
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953 End
10954 \end_layout
10955
10956 \end_inset
10957
10958
10959 \begin_inset Quotes erd
10960 \end_inset
10961
10962 .
10963 \begin_inset Newline newline
10964 \end_inset
10965
10966 See 
10967 \begin_inset CommandInset ref
10968 LatexCommand ref
10969 reference "subsec:Flex-insets-and"
10970 nolink "false"
10971
10972 \end_inset
10973
10974  for more information.
10975  
10976 \end_layout
10977
10978 \begin_layout Description
10979 \begin_inset Flex Code
10980 status collapsed
10981
10982 \begin_layout Plain Layout
10983 LeftMargin
10984 \end_layout
10985
10986 \end_inset
10987
10988  [
10989 \begin_inset Flex Code
10990 status collapsed
10991
10992 \begin_layout Plain Layout
10993 string
10994 \end_layout
10995
10996 \end_inset
10997
10998 ] A string that indicates the width of the left margin on the screen,
10999  for example,
11000  
11001 \begin_inset Quotes eld
11002 \end_inset
11003
11004
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 MMMMM
11010 \end_layout
11011
11012 \end_inset
11013
11014
11015 \begin_inset Quotes erd
11016 \end_inset
11017
11018 .
11019  (Note that this is not a `length',
11020  like 
11021 \begin_inset Quotes eld
11022 \end_inset
11023
11024 2ex
11025 \begin_inset Quotes erd
11026 \end_inset
11027
11028 .)
11029 \end_layout
11030
11031 \begin_layout Description
11032 \begin_inset Flex Code
11033 status collapsed
11034
11035 \begin_layout Plain Layout
11036 MaxCiteNames
11037 \end_layout
11038
11039 \end_inset
11040
11041  [
11042 \begin_inset Flex Code
11043 status collapsed
11044
11045 \begin_layout Plain Layout
11046 integer
11047 \end_layout
11048
11049 \end_inset
11050
11051 ] An integer that determines the maximal number of names displayed in an author-year citation before the citation switches to 
11052 \begin_inset Quotes eld
11053 \end_inset
11054
11055 FirstAuthor et al.
11056 \begin_inset Quotes erd
11057 \end_inset
11058
11059 .
11060  Primarily used in cite engine files (see 
11061 \begin_inset CommandInset ref
11062 LatexCommand ref
11063 reference "subsec:Cite-Engine-Files"
11064 plural "false"
11065 caps "false"
11066 noprefix "false"
11067 nolink "false"
11068
11069 \end_inset
11070
11071 ).
11072 \end_layout
11073
11074 \begin_layout Description
11075
11076 \change_inserted -712698321 1612018485
11077 \begin_inset Flex Code
11078 status collapsed
11079
11080 \begin_layout Plain Layout
11081
11082 \change_inserted -712698321 1612018457
11083 ModifyInsetLayout
11084 \change_unchanged
11085
11086 \end_layout
11087
11088 \end_inset
11089
11090  [
11091 \begin_inset Flex Code
11092 status collapsed
11093
11094 \begin_layout Plain Layout
11095
11096 \change_inserted -712698321 1612018466
11097 <type>
11098 \change_unchanged
11099
11100 \end_layout
11101
11102 \end_inset
11103
11104 ] Modifies the layout of an inset.
11105  If the layout does not exist,
11106  this section is ignored.
11107  Must end with 
11108 \begin_inset Quotes eld
11109 \end_inset
11110
11111
11112 \begin_inset Flex Code
11113 status collapsed
11114
11115 \begin_layout Plain Layout
11116
11117 \change_inserted -712698321 1612018452
11118 End
11119 \change_unchanged
11120
11121 \end_layout
11122
11123 \end_inset
11124
11125
11126 \begin_inset Quotes erd
11127 \end_inset
11128
11129 .
11130 \end_layout
11131
11132 \begin_layout Description
11133 \begin_inset Flex Code
11134 status collapsed
11135
11136 \begin_layout Plain Layout
11137 ModifyStyle
11138 \end_layout
11139
11140 \end_inset
11141
11142  [
11143 \begin_inset Flex Code
11144 status collapsed
11145
11146 \begin_layout Plain Layout
11147 <style>
11148 \end_layout
11149
11150 \end_inset
11151
11152 ] Modifies the properties of the given paragraph style.
11153  If the style does not exist,
11154  this section is ignored.
11155  Must end with 
11156 \begin_inset Quotes eld
11157 \end_inset
11158
11159
11160 \begin_inset Flex Code
11161 status collapsed
11162
11163 \begin_layout Plain Layout
11164 End
11165 \end_layout
11166
11167 \end_inset
11168
11169
11170 \begin_inset Quotes erd
11171 \end_inset
11172
11173 .
11174 \end_layout
11175
11176 \begin_layout Description
11177 \begin_inset Flex Code
11178 status collapsed
11179
11180 \begin_layout Plain Layout
11181 NoCounter
11182 \end_layout
11183
11184 \end_inset
11185
11186  [
11187 \begin_inset Flex Code
11188 status collapsed
11189
11190 \begin_layout Plain Layout
11191 <counter>
11192 \end_layout
11193
11194 \end_inset
11195
11196 ] Deletes an existing counter,
11197  usually one defined in an included file.
11198 \end_layout
11199
11200 \begin_layout Description
11201 \begin_inset Flex Code
11202 status collapsed
11203
11204 \begin_layout Plain Layout
11205 NoFloat
11206 \end_layout
11207
11208 \end_inset
11209
11210  [
11211 \begin_inset Flex Code
11212 status collapsed
11213
11214 \begin_layout Plain Layout
11215 <float>
11216 \end_layout
11217
11218 \end_inset
11219
11220 ] Deletes an existing float.
11221  This is particularly useful when you want to suppress a float that has been defined in an input file.
11222 \end_layout
11223
11224 \begin_layout Description
11225 \begin_inset Flex Code
11226 status collapsed
11227
11228 \begin_layout Plain Layout
11229 NoStyle
11230 \end_layout
11231
11232 \end_inset
11233
11234  [
11235 \begin_inset Flex Code
11236 status collapsed
11237
11238 \begin_layout Plain Layout
11239 <style>
11240 \end_layout
11241
11242 \end_inset
11243
11244 ] Deletes an existing style.
11245 \end_layout
11246
11247 \begin_layout Description
11248 \begin_inset Flex Code
11249 status collapsed
11250
11251 \begin_layout Plain Layout
11252 OutlinerName
11253 \end_layout
11254
11255 \end_inset
11256
11257  [
11258 \begin_inset Flex Code
11259 status collapsed
11260
11261 \begin_layout Plain Layout
11262 <type>
11263 \end_layout
11264
11265 \end_inset
11266
11267 ] [
11268 \begin_inset Flex Code
11269 status collapsed
11270
11271 \begin_layout Plain Layout
11272 <string>
11273 \end_layout
11274
11275 \end_inset
11276
11277 ] Define a new table of contents with type 
11278 \begin_inset Flex Code
11279 status collapsed
11280
11281 \begin_layout Plain Layout
11282 <type>
11283 \end_layout
11284
11285 \end_inset
11286
11287  and name 
11288 \begin_inset Flex Code
11289 status collapsed
11290
11291 \begin_layout Plain Layout
11292 <string>
11293 \end_layout
11294
11295 \end_inset
11296
11297 .
11298  See also the AddToToc commands.
11299 \end_layout
11300
11301 \begin_layout Description
11302 \begin_inset Flex Code
11303 status collapsed
11304
11305 \begin_layout Plain Layout
11306 OutputFormat
11307 \end_layout
11308
11309 \end_inset
11310
11311  [
11312 \begin_inset Flex Code
11313 status collapsed
11314
11315 \begin_layout Plain Layout
11316 <format>
11317 \end_layout
11318
11319 \end_inset
11320
11321 ] The file format (as defined in the \SpecialChar LyX
11322  preferences) produced by this document class.
11323  It is mainly useful when 
11324 \begin_inset Flex Code
11325 status collapsed
11326
11327 \begin_layout Plain Layout
11328 OutputType
11329 \end_layout
11330
11331 \end_inset
11332
11333  is 
11334 \begin_inset Flex Code
11335 status collapsed
11336
11337 \begin_layout Plain Layout
11338 literate
11339 \end_layout
11340
11341 \end_inset
11342
11343  and one wants to define a new type of literate document.
11344  The format is reset to 
11345 \change_deleted 5863208 1594239413
11346
11347 \begin_inset Quotes eld
11348 \end_inset
11349
11350
11351 \begin_inset Flex Code
11352 status collapsed
11353
11354 \begin_layout Plain Layout
11355 docbook
11356 \end_layout
11357
11358 \end_inset
11359
11360
11361 \begin_inset Quotes erd
11362 \end_inset
11363
11364  or
11365 \change_unchanged
11366  
11367 \begin_inset Quotes eld
11368 \end_inset
11369
11370
11371 \begin_inset Flex Code
11372 status collapsed
11373
11374 \begin_layout Plain Layout
11375 latex
11376 \end_layout
11377
11378 \end_inset
11379
11380
11381 \begin_inset Quotes erd
11382 \end_inset
11383
11384  when the corresponding 
11385 \begin_inset Flex Code
11386 status collapsed
11387
11388 \begin_layout Plain Layout
11389 OutputType
11390 \end_layout
11391
11392 \end_inset
11393
11394  parameter is encountered.
11395 \end_layout
11396
11397 \begin_layout Description
11398 \begin_inset Flex Code
11399 status collapsed
11400
11401 \begin_layout Plain Layout
11402 OutputType
11403 \end_layout
11404
11405 \end_inset
11406
11407  [
11408 \begin_inset Flex Code
11409 status collapsed
11410
11411 \begin_layout Plain Layout
11412
11413 \emph on
11414 lat
11415 \emph default
11416 ex
11417 \end_layout
11418
11419 \end_inset
11420
11421 ,
11422  
11423 \change_deleted 5863208 1594239430
11424
11425 \begin_inset Flex Code
11426 status collapsed
11427
11428 \begin_layout Plain Layout
11429 docbook
11430 \end_layout
11431
11432 \end_inset
11433
11434 ,
11435
11436 \change_unchanged
11437  
11438 \begin_inset Flex Code
11439 status collapsed
11440
11441 \begin_layout Plain Layout
11442 literate
11443 \end_layout
11444
11445 \end_inset
11446
11447 ] Specifies what sort of output documents using this class will produce.
11448 \end_layout
11449
11450 \begin_layout Description
11451 \begin_inset Flex Code
11452 status collapsed
11453
11454 \begin_layout Plain Layout
11455 PackageOptions
11456 \end_layout
11457
11458 \end_inset
11459
11460  [
11461 \begin_inset Flex Code
11462 status collapsed
11463
11464 \begin_layout Plain Layout
11465 string
11466 \end_layout
11467
11468 \end_inset
11469
11470  
11471 \begin_inset Flex Code
11472 status collapsed
11473
11474 \begin_layout Plain Layout
11475 string
11476 \end_layout
11477
11478 \end_inset
11479
11480 ] Specifies options,
11481  given in the second string,
11482  for the package named by the first string.
11483  For example,
11484  
11485 \begin_inset Quotes eld
11486 \end_inset
11487
11488
11489 \begin_inset Flex Code
11490 status collapsed
11491
11492 \begin_layout Plain Layout
11493 PackageOptions natbib square
11494 \end_layout
11495
11496 \end_inset
11497
11498
11499 \begin_inset Quotes erd
11500 \end_inset
11501
11502  will cause 
11503 \begin_inset Flex Code
11504 status collapsed
11505
11506 \begin_layout Plain Layout
11507 natbib
11508 \end_layout
11509
11510 \end_inset
11511
11512  to be loaded with the 
11513 \begin_inset Flex Code
11514 status collapsed
11515
11516 \begin_layout Plain Layout
11517 square
11518 \end_layout
11519
11520 \end_inset
11521
11522  option.
11523  (For \SpecialChar TeX
11524 perts,
11525  this causes \SpecialChar LyX
11526  to output:
11527  
11528 \begin_inset Flex Code
11529 status collapsed
11530
11531 \begin_layout Plain Layout
11532
11533 \backslash
11534 PassOptionsToPackage{natbib}{square}
11535 \end_layout
11536
11537 \end_inset
11538
11539  prior to loading 
11540 \begin_inset Flex Code
11541 status collapsed
11542
11543 \begin_layout Plain Layout
11544 natbib
11545 \end_layout
11546
11547 \end_inset
11548
11549 .)
11550 \change_inserted -712698321 1565102364
11551
11552 \end_layout
11553
11554 \begin_layout Description
11555
11556 \change_inserted -712698321 1565102470
11557 \begin_inset Flex Code
11558 status collapsed
11559
11560 \begin_layout Plain Layout
11561
11562 \change_inserted -712698321 1565102365
11563 PageSize
11564 \change_unchanged
11565
11566 \end_layout
11567
11568 \end_inset
11569
11570  [
11571 \begin_inset Flex Code
11572 status collapsed
11573
11574 \begin_layout Plain Layout
11575
11576 \change_inserted -712698321 1565105222
11577
11578 \emph on
11579 custom
11580 \emph default
11581 ,
11582  letter,
11583  legal,
11584  executive,
11585  a0,
11586  a1,
11587  a2,
11588  a3,
11589  a4,
11590  a5,
11591  a6,
11592  b0,
11593  b1,
11594  b2,
11595  b3,
11596  b4,
11597  b5,
11598  b6,
11599  c0,
11600  c1,
11601  c2,
11602  c3,
11603  c4,
11604  c5,
11605  c6,
11606  b0j,
11607  b1j,
11608  b2j,
11609  b3j,
11610  b4j,
11611  b5j,
11612  b6j
11613 \change_unchanged
11614
11615 \end_layout
11616
11617 \end_inset
11618
11619 ] The default page size.
11620  This is used by some converters.
11621 \change_unchanged
11622
11623 \end_layout
11624
11625 \begin_layout Description
11626 \begin_inset Flex Code
11627 status collapsed
11628
11629 \begin_layout Plain Layout
11630 PageStyle
11631 \end_layout
11632
11633 \end_inset
11634
11635  [
11636 \begin_inset Flex Code
11637 status collapsed
11638
11639 \begin_layout Plain Layout
11640
11641 \emph on
11642 plain
11643 \end_layout
11644
11645 \end_inset
11646
11647 ,
11648  
11649 \begin_inset Flex Code
11650 status collapsed
11651
11652 \begin_layout Plain Layout
11653 empty
11654 \end_layout
11655
11656 \end_inset
11657
11658 ,
11659  
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664 headings
11665 \end_layout
11666
11667 \end_inset
11668
11669 ] The default pagestyle.
11670  Can be changed in the 
11671 \begin_inset Flex Noun
11672 status collapsed
11673
11674 \begin_layout Plain Layout
11675 Document\SpecialChar menuseparator
11676 Settings
11677 \end_layout
11678
11679 \end_inset
11680
11681  dialog.
11682 \end_layout
11683
11684 \begin_layout Description
11685 \begin_inset Flex Code
11686 status collapsed
11687
11688 \begin_layout Plain Layout
11689 Preamble
11690 \end_layout
11691
11692 \end_inset
11693
11694  Sets the preamble for the \SpecialChar LaTeX
11695  document.
11696  Note that this will completely override any prior 
11697 \begin_inset Flex Code
11698 status collapsed
11699
11700 \begin_layout Plain Layout
11701 Preamble
11702 \end_layout
11703
11704 \end_inset
11705
11706  or 
11707 \begin_inset Flex Code
11708 status collapsed
11709
11710 \begin_layout Plain Layout
11711 AddToPreamble
11712 \end_layout
11713
11714 \end_inset
11715
11716  declarations.
11717  (Use 
11718 \begin_inset Flex Code
11719 status collapsed
11720
11721 \begin_layout Plain Layout
11722 AddToPreamble
11723 \end_layout
11724
11725 \end_inset
11726
11727  if you just want to add material to the preamble.) Must end with 
11728 \begin_inset Quotes eld
11729 \end_inset
11730
11731
11732 \begin_inset Flex Code
11733 status collapsed
11734
11735 \begin_layout Plain Layout
11736 EndPreamble
11737 \end_layout
11738
11739 \end_inset
11740
11741
11742 \begin_inset Quotes erd
11743 \end_inset
11744
11745 .
11746 \change_inserted -712698321 1612018500
11747
11748 \end_layout
11749
11750 \begin_layout Description
11751
11752 \change_inserted -712698321 1612018547
11753 \begin_inset Flex Code
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757
11758 \change_inserted -712698321 1612018506
11759 ProvideInsetLayout
11760 \change_unchanged
11761
11762 \end_layout
11763
11764 \end_inset
11765
11766  [
11767 \begin_inset Flex Code
11768 status collapsed
11769
11770 \begin_layout Plain Layout
11771
11772 \change_inserted -712698321 1612018509
11773 <type>
11774 \change_unchanged
11775
11776 \end_layout
11777
11778 \end_inset
11779
11780 ] Defines the layout of an inset if it does not already exist.
11781  If the layout does exist,
11782  this section is ignored.
11783  Must end with 
11784 \begin_inset Quotes eld
11785 \end_inset
11786
11787
11788 \begin_inset Flex Code
11789 status collapsed
11790
11791 \begin_layout Plain Layout
11792
11793 \change_inserted -712698321 1612018500
11794 End
11795 \change_unchanged
11796
11797 \end_layout
11798
11799 \end_inset
11800
11801
11802 \begin_inset Quotes erd
11803 \end_inset
11804
11805 .
11806 \change_unchanged
11807
11808 \end_layout
11809
11810 \begin_layout Description
11811 \begin_inset Flex Code
11812 status collapsed
11813
11814 \begin_layout Plain Layout
11815 Provides
11816 \end_layout
11817
11818 \end_inset
11819
11820  [
11821 \begin_inset Flex Code
11822 status collapsed
11823
11824 \begin_layout Plain Layout
11825 string
11826 \end_layout
11827
11828 \end_inset
11829
11830 ] [
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835
11836 \emph on
11837 0
11838 \end_layout
11839
11840 \end_inset
11841
11842 ,
11843 \begin_inset space \thinspace{}
11844 \end_inset
11845
11846
11847 \begin_inset Flex Code
11848 status collapsed
11849
11850 \begin_layout Plain Layout
11851 1
11852 \end_layout
11853
11854 \end_inset
11855
11856 ] Whether the class already provides the feature 
11857 \begin_inset Flex Code
11858 status collapsed
11859
11860 \begin_layout Plain Layout
11861 string
11862 \end_layout
11863
11864 \end_inset
11865
11866 .
11867  A feature is in general the name of a package (e.
11868 \begin_inset space \thinspace{}
11869 \end_inset
11870
11871 g.
11872 \begin_inset space \space{}
11873 \end_inset
11874
11875
11876 \begin_inset Flex Code
11877 status collapsed
11878
11879 \begin_layout Plain Layout
11880 amsmath
11881 \end_layout
11882
11883 \end_inset
11884
11885  or 
11886 \begin_inset Flex Code
11887 status collapsed
11888
11889 \begin_layout Plain Layout
11890 makeidx
11891 \end_layout
11892
11893 \end_inset
11894
11895 ) or a macro (e.
11896 \begin_inset space \thinspace{}
11897 \end_inset
11898
11899 g.
11900 \begin_inset space \space{}
11901 \end_inset
11902
11903
11904 \begin_inset Flex Code
11905 status collapsed
11906
11907 \begin_layout Plain Layout
11908 url
11909 \end_layout
11910
11911 \end_inset
11912
11913  or 
11914 \begin_inset Flex Code
11915 status collapsed
11916
11917 \begin_layout Plain Layout
11918 boldsymbol
11919 \end_layout
11920
11921 \end_inset
11922
11923 ).
11924  See 
11925 \begin_inset CommandInset ref
11926 LatexCommand ref
11927 reference "chap:List-of-functions"
11928 nolink "false"
11929
11930 \end_inset
11931
11932  for the list of features.
11933 \end_layout
11934
11935 \begin_layout Description
11936 \begin_inset Flex Code
11937 status collapsed
11938
11939 \begin_layout Plain Layout
11940 ProvidesModule
11941 \end_layout
11942
11943 \end_inset
11944
11945  [
11946 \begin_inset Flex Code
11947 status collapsed
11948
11949 \begin_layout Plain Layout
11950 string
11951 \end_layout
11952
11953 \end_inset
11954
11955 ] Indicates that this layout provides the functionality of the module mentioned,
11956  which should be specified by the filename without the 
11957 \begin_inset Flex Code
11958 status collapsed
11959
11960 \begin_layout Plain Layout
11961 .module
11962 \end_layout
11963
11964 \end_inset
11965
11966  extension.
11967  This will typically be used if the layout includes the module directly,
11968  rather than using the 
11969 \begin_inset Flex Code
11970 status collapsed
11971
11972 \begin_layout Plain Layout
11973 DefaultModule
11974 \end_layout
11975
11976 \end_inset
11977
11978  tag to indicate that it ought to be used.
11979  It could also be used in a module that provided an alternate implementation of the same functionality.
11980 \end_layout
11981
11982 \begin_layout Description
11983 \begin_inset Flex Code
11984 status collapsed
11985
11986 \begin_layout Plain Layout
11987 ProvideStyle
11988 \end_layout
11989
11990 \end_inset
11991
11992  [
11993 \begin_inset Flex Code
11994 status collapsed
11995
11996 \begin_layout Plain Layout
11997 <style>
11998 \end_layout
11999
12000 \end_inset
12001
12002 ] Creates a new paragraph style if it does not already exist.
12003  If the style does exist,
12004  this section is ignored.
12005  Must end with 
12006 \begin_inset Quotes eld
12007 \end_inset
12008
12009
12010 \begin_inset Flex Code
12011 status collapsed
12012
12013 \begin_layout Plain Layout
12014 End
12015 \end_layout
12016
12017 \end_inset
12018
12019
12020 \begin_inset Quotes erd
12021 \end_inset
12022
12023 .
12024 \end_layout
12025
12026 \begin_layout Description
12027 \begin_inset Flex Code
12028 status collapsed
12029
12030 \begin_layout Plain Layout
12031 Requires
12032 \end_layout
12033
12034 \end_inset
12035
12036  [
12037 \begin_inset Flex Code
12038 status collapsed
12039
12040 \begin_layout Plain Layout
12041 string
12042 \end_layout
12043
12044 \end_inset
12045
12046 ] Whether the class requires the feature 
12047 \begin_inset Flex Code
12048 status collapsed
12049
12050 \begin_layout Plain Layout
12051 string
12052 \end_layout
12053
12054 \end_inset
12055
12056 .
12057  Multiple features must be separated by commas.
12058  Note that you can only request supported features.
12059  (See 
12060 \begin_inset CommandInset ref
12061 LatexCommand ref
12062 reference "chap:List-of-functions"
12063 nolink "false"
12064
12065 \end_inset
12066
12067  for the list of features.).
12068  If you require a package with specific options,
12069  you can additionally use 
12070 \begin_inset Flex Code
12071 status collapsed
12072
12073 \begin_layout Plain Layout
12074 PackageOptions
12075 \end_layout
12076
12077 \end_inset
12078
12079 .
12080 \end_layout
12081
12082 \begin_layout Description
12083 \begin_inset Flex Code
12084 status collapsed
12085
12086 \begin_layout Plain Layout
12087 RightMargin
12088 \end_layout
12089
12090 \end_inset
12091
12092  [
12093 \begin_inset Flex Code
12094 status collapsed
12095
12096 \begin_layout Plain Layout
12097 string
12098 \end_layout
12099
12100 \end_inset
12101
12102 ] A string that indicates the width of the right margin on the screen,
12103  for example,
12104  
12105 \begin_inset Quotes eld
12106 \end_inset
12107
12108
12109 \begin_inset Flex Code
12110 status collapsed
12111
12112 \begin_layout Plain Layout
12113 MMMMM
12114 \end_layout
12115
12116 \end_inset
12117
12118
12119 \begin_inset Quotes erd
12120 \end_inset
12121
12122 .
12123 \end_layout
12124
12125 \begin_layout Description
12126 \begin_inset Flex Code
12127 status collapsed
12128
12129 \begin_layout Plain Layout
12130 SecNumDepth
12131 \end_layout
12132
12133 \end_inset
12134
12135  [
12136 \begin_inset Flex Code
12137 status collapsed
12138
12139 \begin_layout Plain Layout
12140 int=3
12141 \end_layout
12142
12143 \end_inset
12144
12145 ] Sets which divisions get numbered.
12146  Corresponds to the
12147 \begin_inset Newline newline
12148 \end_inset
12149
12150
12151 \begin_inset Flex Code
12152 status collapsed
12153
12154 \begin_layout Plain Layout
12155 secnumdepth
12156 \end_layout
12157
12158 \end_inset
12159
12160  counter in \SpecialChar LaTeX
12161 .
12162 \end_layout
12163
12164 \begin_layout Description
12165 \begin_inset Flex Code
12166 status collapsed
12167
12168 \begin_layout Plain Layout
12169 Sides
12170 \end_layout
12171
12172 \end_inset
12173
12174  [
12175 \begin_inset Flex Code
12176 status collapsed
12177
12178 \begin_layout Plain Layout
12179
12180 \emph on
12181 1
12182 \end_layout
12183
12184 \end_inset
12185
12186 ,
12187 \begin_inset space \thinspace{}
12188 \end_inset
12189
12190
12191 \begin_inset Flex Code
12192 status collapsed
12193
12194 \begin_layout Plain Layout
12195 2
12196 \end_layout
12197
12198 \end_inset
12199
12200 ] Whether the class-default should be printing on one or both sides of the paper.
12201  Can be changed in the 
12202 \begin_inset Flex Noun
12203 status collapsed
12204
12205 \begin_layout Plain Layout
12206 Document\SpecialChar menuseparator
12207 Settings
12208 \end_layout
12209
12210 \end_inset
12211
12212  dialog.
12213 \end_layout
12214
12215 \begin_layout Description
12216 \begin_inset Flex Code
12217 status collapsed
12218
12219 \begin_layout Plain Layout
12220 Style
12221 \end_layout
12222
12223 \end_inset
12224
12225  [
12226 \begin_inset Flex Code
12227 status collapsed
12228
12229 \begin_layout Plain Layout
12230 <name>
12231 \end_layout
12232
12233 \end_inset
12234
12235 ] This sequence defines a paragraph style.
12236  If the style does not yet exist,
12237  it is created;
12238  if it does exist,
12239  its parameters are modified.
12240  Must end with 
12241 \begin_inset Quotes eld
12242 \end_inset
12243
12244
12245 \begin_inset Flex Code
12246 status collapsed
12247
12248 \begin_layout Plain Layout
12249 End
12250 \end_layout
12251
12252 \end_inset
12253
12254
12255 \begin_inset Quotes erd
12256 \end_inset
12257
12258 .
12259 \begin_inset Newline newline
12260 \end_inset
12261
12262 See 
12263 \begin_inset CommandInset ref
12264 LatexCommand ref
12265 reference "subsec:Paragraph-Styles"
12266 nolink "false"
12267
12268 \end_inset
12269
12270  for details on paragraph styles.
12271 \change_inserted -712698321 1553617804
12272
12273 \end_layout
12274
12275 \begin_layout Description
12276
12277 \change_inserted -712698321 1553617862
12278 \begin_inset Flex Code
12279 status collapsed
12280
12281 \begin_layout Plain Layout
12282
12283 \change_inserted -712698321 1553617809
12284 TableStyle
12285 \change_unchanged
12286
12287 \end_layout
12288
12289 \end_inset
12290
12291  [
12292 \begin_inset Flex Code
12293 status collapsed
12294
12295 \begin_layout Plain Layout
12296
12297 \change_inserted -712698321 1553617805
12298 <name>
12299 \change_unchanged
12300
12301 \end_layout
12302
12303 \end_inset
12304
12305 ] defines the default table style that is used when inserting a table.
12306  The following styles are available:
12307 \end_layout
12308
12309 \begin_deeper
12310 \begin_layout Itemize
12311
12312 \change_inserted -712698321 1554308039
12313 \begin_inset Flex Code
12314 status collapsed
12315
12316 \begin_layout Plain Layout
12317
12318 \change_inserted -712698321 1554307928
12319 Formal_with_Footline
12320 \change_unchanged
12321
12322 \end_layout
12323
12324 \end_inset
12325
12326 :
12327  formal (
12328 \begin_inset Quotes eld
12329 \end_inset
12330
12331 booktabs
12332 \begin_inset Quotes erd
12333 \end_inset
12334
12335 ) style with horizontal lines only,
12336  using a bold top and bottom line,
12337  the first and last row are additionally separated from the table body with a thin middle line.
12338 \end_layout
12339
12340 \begin_layout Itemize
12341
12342 \change_inserted -712698321 1554308087
12343 \begin_inset Flex Code
12344 status collapsed
12345
12346 \begin_layout Plain Layout
12347
12348 \change_inserted -712698321 1554308042
12349 Formal_without_Footline
12350 \change_unchanged
12351
12352 \end_layout
12353
12354 \end_inset
12355
12356 :
12357  same as the above,
12358  but the last row is not separated with a middle line from the body.
12359 \end_layout
12360
12361 \begin_layout Itemize
12362
12363 \change_inserted -712698321 1553618031
12364 \begin_inset Flex Code
12365 status collapsed
12366
12367 \begin_layout Plain Layout
12368
12369 \change_inserted -712698321 1553618006
12370 Simple_Grid
12371 \change_unchanged
12372
12373 \end_layout
12374
12375 \end_inset
12376
12377 :
12378  Simple table lines.
12379 \end_layout
12380
12381 \begin_layout Itemize
12382
12383 \change_inserted -712698321 1553618309
12384 \begin_inset Flex Code
12385 status collapsed
12386
12387 \begin_layout Plain Layout
12388
12389 \change_inserted -712698321 1553618031
12390 Grid_with_Head
12391 \change_unchanged
12392
12393 \end_layout
12394
12395 \end_inset
12396
12397 :
12398  Like 
12399 \begin_inset Flex Code
12400 status collapsed
12401
12402 \begin_layout Plain Layout
12403
12404 \change_inserted -712698321 1553618043
12405 Simple_Grid
12406 \change_unchanged
12407
12408 \end_layout
12409
12410 \end_inset
12411
12412 ,
12413  but with the header 
12414 \change_deleted 34634807 1619712593
12415 column
12416 \change_inserted 34634807 1619712594
12417 row
12418 \change_inserted -712698321 1553618309
12419  offset with a second horizontal line.
12420  This is also the default style of \SpecialChar LyX
12421 .
12422 \end_layout
12423
12424 \begin_layout Itemize
12425
12426 \change_inserted -712698321 1553618280
12427 \begin_inset Flex Code
12428 status collapsed
12429
12430 \begin_layout Plain Layout
12431
12432 \change_inserted -712698321 1553618261
12433 No_Borders
12434 \change_unchanged
12435
12436 \end_layout
12437
12438 \end_inset
12439
12440 :
12441  Table without lines.
12442 \change_unchanged
12443
12444 \end_layout
12445
12446 \end_deeper
12447 \begin_layout Description
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452 TitleLatexName
12453 \end_layout
12454
12455 \end_inset
12456
12457  [
12458 \begin_inset Flex Code
12459 status collapsed
12460
12461 \begin_layout Plain Layout
12462 string="maketitle"
12463 \end_layout
12464
12465 \end_inset
12466
12467 ] The name of the command or environment to be used with 
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 TitleLatexType
12473 \end_layout
12474
12475 \end_inset
12476
12477 .
12478 \end_layout
12479
12480 \begin_layout Description
12481 \begin_inset Flex Code
12482 status collapsed
12483
12484 \begin_layout Plain Layout
12485 TitleLatexType
12486 \end_layout
12487
12488 \end_inset
12489
12490  [
12491 \begin_inset Flex Code
12492 status collapsed
12493
12494 \begin_layout Plain Layout
12495
12496 \emph on
12497 CommandAfter
12498 \end_layout
12499
12500 \end_inset
12501
12502 ,
12503  
12504 \begin_inset Flex Code
12505 status collapsed
12506
12507 \begin_layout Plain Layout
12508 Environment
12509 \end_layout
12510
12511 \end_inset
12512
12513 ] Indicates what kind of markup is used to define the title of a document.
12514  
12515 \begin_inset Flex Code
12516 status collapsed
12517
12518 \begin_layout Plain Layout
12519 CommandAfter
12520 \end_layout
12521
12522 \end_inset
12523
12524  means that the macro with name 
12525 \begin_inset Flex Code
12526 status collapsed
12527
12528 \begin_layout Plain Layout
12529 TitleLatexName
12530 \end_layout
12531
12532 \end_inset
12533
12534  will be inserted after the last layout which has 
12535 \begin_inset Quotes eld
12536 \end_inset
12537
12538
12539 \begin_inset Flex Code
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 InTitle
12544 \begin_inset space ~
12545 \end_inset
12546
12547 1
12548 \end_layout
12549
12550 \end_inset
12551
12552
12553 \begin_inset Quotes erd
12554 \end_inset
12555
12556 .
12557  
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562 Environment
12563 \end_layout
12564
12565 \end_inset
12566
12567  corresponds to the case where all layouts which have 
12568 \begin_inset Quotes eld
12569 \end_inset
12570
12571
12572 \begin_inset Flex Code
12573 status collapsed
12574
12575 \begin_layout Plain Layout
12576 InTitle
12577 \begin_inset space ~
12578 \end_inset
12579
12580 1
12581 \end_layout
12582
12583 \end_inset
12584
12585
12586 \begin_inset Quotes erd
12587 \end_inset
12588
12589  should be enclosed into the 
12590 \begin_inset Flex Code
12591 status collapsed
12592
12593 \begin_layout Plain Layout
12594 TitleLatexName
12595 \end_layout
12596
12597 \end_inset
12598
12599  environment.
12600 \end_layout
12601
12602 \begin_layout Description
12603 \begin_inset Flex Code
12604 status collapsed
12605
12606 \begin_layout Plain Layout
12607 TocDepth
12608 \end_layout
12609
12610 \end_inset
12611
12612  [
12613 \begin_inset Flex Code
12614 status collapsed
12615
12616 \begin_layout Plain Layout
12617 int=3
12618 \end_layout
12619
12620 \end_inset
12621
12622 ] Sets which divisions are included in the table of contents.
12623  Corresponds to the 
12624 \begin_inset Flex Code
12625 status collapsed
12626
12627 \begin_layout Plain Layout
12628 tocdepth
12629 \end_layout
12630
12631 \end_inset
12632
12633  counter in \SpecialChar LaTeX
12634 .
12635 \end_layout
12636
12637 \begin_layout Subsection
12638 \begin_inset Flex Code
12639 status collapsed
12640
12641 \begin_layout Plain Layout
12642 ClassOptions
12643 \end_layout
12644
12645 \end_inset
12646
12647  section
12648 \begin_inset CommandInset label
12649 LatexCommand label
12650 name "subsec:ClassOptions"
12651
12652 \end_inset
12653
12654
12655 \end_layout
12656
12657 \begin_layout Standard
12658 The 
12659 \begin_inset Flex Code
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663 ClassOptions
12664 \end_layout
12665
12666 \end_inset
12667
12668  section can contain the following entries:
12669 \end_layout
12670
12671 \begin_layout Description
12672 \begin_inset Flex Code
12673 status collapsed
12674
12675 \begin_layout Plain Layout
12676 FontSize
12677 \end_layout
12678
12679 \end_inset
12680
12681  [
12682 \begin_inset Flex Code
12683 status collapsed
12684
12685 \begin_layout Plain Layout
12686 string="10|11|12"
12687 \end_layout
12688
12689 \end_inset
12690
12691 ] The list of available font sizes for the document's main font,
12692  separated by 
12693 \begin_inset Quotes eld
12694 \end_inset
12695
12696
12697 \begin_inset Flex Code
12698 status collapsed
12699
12700 \begin_layout Plain Layout
12701 |
12702 \end_layout
12703
12704 \end_inset
12705
12706
12707 \begin_inset Quotes erd
12708 \end_inset
12709
12710 .
12711
12712 \change_inserted -712698321 1565110196
12713  Any number is possible.
12714 \end_layout
12715
12716 \begin_layout Description
12717
12718 \change_inserted -712698321 1565110259
12719 \begin_inset Flex Code
12720 status collapsed
12721
12722 \begin_layout Plain Layout
12723
12724 \change_inserted -712698321 1565110199
12725 FontSizeFormat
12726 \change_unchanged
12727
12728 \end_layout
12729
12730 \end_inset
12731
12732  [
12733 \begin_inset Flex Code
12734 status collapsed
12735
12736 \begin_layout Plain Layout
12737
12738 \change_inserted -712698321 1565110196
12739 string
12740 \change_unchanged
12741
12742 \end_layout
12743
12744 \end_inset
12745
12746 ] The format for the font size option.
12747  Default:
12748  
12749 \begin_inset Flex Code
12750 status collapsed
12751
12752 \begin_layout Plain Layout
12753
12754 \change_inserted -712698321 1565110238
12755 $$spt
12756 \change_unchanged
12757
12758 \end_layout
12759
12760 \end_inset
12761
12762 .
12763  
12764 \begin_inset Flex Code
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768
12769 \change_inserted -712698321 1565110248
12770 $$s
12771 \change_unchanged
12772
12773 \end_layout
12774
12775 \end_inset
12776
12777  is a placeholder for the font size.
12778 \change_unchanged
12779
12780 \end_layout
12781
12782 \begin_layout Description
12783
12784 \change_deleted 5863208 1594239483
12785 \begin_inset Flex Code
12786 status collapsed
12787
12788 \begin_layout Plain Layout
12789 Header
12790 \end_layout
12791
12792 \end_inset
12793
12794  Used to set the DTD line with XML-based output classes.
12795  E.
12796 \begin_inset space \thinspace{}
12797 \end_inset
12798
12799 g.:
12800  PUBLIC 
12801 \begin_inset Quotes eld
12802 \end_inset
12803
12804 -//OASIS//DTD DocBook V4.2//EN
12805 \begin_inset Quotes erd
12806 \end_inset
12807
12808 .
12809 \change_inserted -712698321 1565101761
12810
12811 \end_layout
12812
12813 \begin_layout Description
12814
12815 \change_inserted -712698321 1565180598
12816 \begin_inset Flex Code
12817 status collapsed
12818
12819 \begin_layout Plain Layout
12820
12821 \change_inserted -712698321 1565101918
12822 PageSize
12823 \change_unchanged
12824
12825 \end_layout
12826
12827 \end_inset
12828
12829  [
12830 \begin_inset Flex Code
12831 status collapsed
12832
12833 \begin_layout Plain Layout
12834
12835 \change_inserted -712698321 1565105399
12836 string="letter|\SpecialChar allowbreak
12837 legal|\SpecialChar allowbreak
12838 executive|\SpecialChar allowbreak
12839 a0|\SpecialChar allowbreak
12840 a1|\SpecialChar allowbreak
12841 a2|\SpecialChar allowbreak
12842 a3|\SpecialChar allowbreak
12843 a4|\SpecialChar allowbreak
12844 a5|\SpecialChar allowbreak
12845 a6|\SpecialChar allowbreak
12846 b0|\SpecialChar allowbreak
12847 b1|\SpecialChar allowbreak
12848 b2|\SpecialChar allowbreak
12849 b3|\SpecialChar allowbreak
12850 b4|\SpecialChar allowbreak
12851 b5|\SpecialChar allowbreak
12852 b6|\SpecialChar allowbreak
12853 c0|\SpecialChar allowbreak
12854 c1|\SpecialChar allowbreak
12855 c2|\SpecialChar allowbreak
12856 c3|\SpecialChar allowbreak
12857 c4|\SpecialChar allowbreak
12858 c5|\SpecialChar allowbreak
12859 c6|\SpecialChar allowbreak
12860 b0j|\SpecialChar allowbreak
12861 b1j|\SpecialChar allowbreak
12862 b2j|\SpecialChar allowbreak
12863 b3j|\SpecialChar allowbreak
12864 b4j|\SpecialChar allowbreak
12865 b5j|\SpecialChar allowbreak
12866 b6j"
12867 \change_unchanged
12868
12869 \end_layout
12870
12871 \end_inset
12872
12873 ] The list of available page sizes,
12874  separated by 
12875 \begin_inset Quotes eld
12876 \end_inset
12877
12878
12879 \begin_inset Flex Code
12880 status collapsed
12881
12882 \begin_layout Plain Layout
12883
12884 \change_inserted -712698321 1565101779
12885 |
12886 \change_unchanged
12887
12888 \end_layout
12889
12890 \end_inset
12891
12892
12893 \begin_inset Quotes erd
12894 \end_inset
12895
12896 .
12897  Currently,
12898  only the listed sizes are supported.
12899  Other sizes might be entered as custom class option.
12900 \end_layout
12901
12902 \begin_layout Description
12903
12904 \change_inserted -712698321 1565180623
12905 \begin_inset Flex Code
12906 status collapsed
12907
12908 \begin_layout Plain Layout
12909
12910 \change_inserted -712698321 1565180605
12911 PageSizeFormat
12912 \change_unchanged
12913
12914 \end_layout
12915
12916 \end_inset
12917
12918  [
12919 \begin_inset Flex Code
12920 status collapsed
12921
12922 \begin_layout Plain Layout
12923
12924 \change_inserted -712698321 1565180601
12925 string
12926 \change_unchanged
12927
12928 \end_layout
12929
12930 \end_inset
12931
12932 ] The format for the page size option.
12933  Default:
12934  
12935 \begin_inset Flex Code
12936 status collapsed
12937
12938 \begin_layout Plain Layout
12939
12940 \change_inserted -712698321 1565180618
12941 $$spaper
12942 \change_unchanged
12943
12944 \end_layout
12945
12946 \end_inset
12947
12948 .
12949  
12950 \begin_inset Flex Code
12951 status collapsed
12952
12953 \begin_layout Plain Layout
12954
12955 \change_inserted -712698321 1565180601
12956 $$s
12957 \change_unchanged
12958
12959 \end_layout
12960
12961 \end_inset
12962
12963  is a placeholder for the paper size.
12964 \change_unchanged
12965
12966 \end_layout
12967
12968 \begin_layout Description
12969 \begin_inset Flex Code
12970 status collapsed
12971
12972 \begin_layout Plain Layout
12973 PageStyle
12974 \end_layout
12975
12976 \end_inset
12977
12978  [
12979 \begin_inset Flex Code
12980 status collapsed
12981
12982 \begin_layout Plain Layout
12983 string="empty|plain|headings|fancy"
12984 \end_layout
12985
12986 \end_inset
12987
12988 ] The list of available page sty\SpecialChar softhyphen
12989 les,
12990  separated by 
12991 \begin_inset Quotes eld
12992 \end_inset
12993
12994
12995 \begin_inset Flex Code
12996 status collapsed
12997
12998 \begin_layout Plain Layout
12999 |
13000 \end_layout
13001
13002 \end_inset
13003
13004
13005 \begin_inset Quotes erd
13006 \end_inset
13007
13008 .
13009 \end_layout
13010
13011 \begin_layout Description
13012 \begin_inset Flex Code
13013 status collapsed
13014
13015 \begin_layout Plain Layout
13016 Other
13017 \end_layout
13018
13019 \end_inset
13020
13021  [
13022 \begin_inset Flex Code
13023 status collapsed
13024
13025 \begin_layout Plain Layout
13026 string=""
13027 \end_layout
13028
13029 \end_inset
13030
13031 ] Some document class options,
13032  separated by a comma,
13033  that will be added to the optional part of the 
13034 \begin_inset Flex Code
13035 status collapsed
13036
13037 \begin_layout Plain Layout
13038
13039 \backslash
13040 documentclass
13041 \end_layout
13042
13043 \end_inset
13044
13045  command.
13046 \end_layout
13047
13048 \begin_layout Standard
13049 The 
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054 ClassOptions
13055 \end_layout
13056
13057 \end_inset
13058
13059  section must end with 
13060 \begin_inset Quotes eld
13061 \end_inset
13062
13063
13064 \begin_inset Flex Code
13065 status collapsed
13066
13067 \begin_layout Plain Layout
13068 End
13069 \end_layout
13070
13071 \end_inset
13072
13073
13074 \begin_inset Quotes erd
13075 \end_inset
13076
13077 .
13078 \end_layout
13079
13080 \begin_layout Subsection
13081 Paragraph styles
13082 \begin_inset CommandInset label
13083 LatexCommand label
13084 name "subsec:Paragraph-Styles"
13085
13086 \end_inset
13087
13088
13089 \end_layout
13090
13091 \begin_layout Standard
13092 A paragraph style description looks like this:
13093 \begin_inset Foot
13094 status collapsed
13095
13096 \begin_layout Plain Layout
13097 Note that this will either define a new style or modify an existing one.
13098 \end_layout
13099
13100 \end_inset
13101
13102
13103 \end_layout
13104
13105 \begin_layout LyX-Code
13106 Style 
13107 \family roman
13108 \emph on
13109 name
13110 \end_layout
13111
13112 \begin_layout LyX-Code
13113  ...
13114 \end_layout
13115
13116 \begin_layout LyX-Code
13117 End
13118 \end_layout
13119
13120 \begin_layout Standard
13121 where the following commands are allowed:
13122 \end_layout
13123
13124 \begin_layout Description
13125 \begin_inset Flex Code
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129 AddToToc
13130 \end_layout
13131
13132 \end_inset
13133
13134  [
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 string
13140 \end_layout
13141
13142 \end_inset
13143
13144 =""] This paragraph will appear in the table of contents of the given type.
13145  An empty string disables.
13146  See also the OutlinerName and the IsTocCaption commands.
13147  Default:
13148  disabled.
13149 \end_layout
13150
13151 \begin_layout Description
13152 \begin_inset Flex Code
13153 status collapsed
13154
13155 \begin_layout Plain Layout
13156 Align
13157 \end_layout
13158
13159 \end_inset
13160
13161  [
13162 \begin_inset Flex Code
13163 status collapsed
13164
13165 \begin_layout Plain Layout
13166
13167 \emph on
13168 block
13169 \emph default
13170 ,
13171  left,
13172  right,
13173  center
13174 \end_layout
13175
13176 \end_inset
13177
13178 ] Paragraph alignment.
13179 \end_layout
13180
13181 \begin_layout Description
13182 \begin_inset Flex Code
13183 status collapsed
13184
13185 \begin_layout Plain Layout
13186 AlignPossible
13187 \end_layout
13188
13189 \end_inset
13190
13191  [
13192 \begin_inset Flex Code
13193 status collapsed
13194
13195 \begin_layout Plain Layout
13196
13197 \emph on
13198 block
13199 \emph default
13200 ,
13201  left,
13202  right,
13203  center
13204 \end_layout
13205
13206 \end_inset
13207
13208 ] A comma separated list of permitted alignments.
13209  (Some \SpecialChar LaTeX
13210  styles prohibit certain alignments,
13211  since those wouldn't make sense.
13212  For example a right-aligned or centered enumeration isn't possible.)
13213 \end_layout
13214
13215 \begin_layout Description
13216 \begin_inset Flex Code
13217 status collapsed
13218
13219 \begin_layout Plain Layout
13220 Argument
13221 \end_layout
13222
13223 \end_inset
13224
13225  [
13226 \begin_inset Flex Code
13227 status collapsed
13228
13229 \begin_layout Plain Layout
13230 int
13231 \end_layout
13232
13233 \end_inset
13234
13235 ] Defines argument number <int> of a command\SpecialChar breakableslash
13236 environment associated with the current style.
13237
13238 \change_inserted -584632292 1615846868
13239  The definition must end with 
13240 \begin_inset Flex Code
13241 status collapsed
13242
13243 \begin_layout Plain Layout
13244
13245 \change_inserted -584632292 1615846867
13246 EndArgument
13247 \change_unchanged
13248
13249 \end_layout
13250
13251 \end_inset
13252
13253 .
13254
13255 \change_unchanged
13256  
13257 \change_inserted -584632292 1615846880
13258 See 
13259 \begin_inset CommandInset ref
13260 LatexCommand ref
13261 reference "subsec:Arguments"
13262 plural "false"
13263 caps "false"
13264 noprefix "false"
13265 nolink "false"
13266
13267 \end_inset
13268
13269  for more information.
13270  
13271 \change_deleted -584632292 1615846694
13272 This is useful for things like section headings,
13273  and only makes sense with \SpecialChar LaTeX
13274 .
13275  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,
13276  where the number specifies the order of the arguments.
13277  The definition must end with 
13278 \begin_inset Flex Code
13279 status collapsed
13280
13281 \begin_layout Plain Layout
13282 EndArgument
13283 \end_layout
13284
13285 \end_inset
13286
13287 .
13288  So a command with two optional arguments has:
13289 \end_layout
13290
13291 \begin_deeper
13292 \begin_layout Quote
13293
13294 \change_deleted -584632292 1615846694
13295
13296 \family typewriter
13297 Argument 1
13298 \end_layout
13299
13300 \begin_layout Quote
13301
13302 \change_deleted -584632292 1615846694
13303
13304 \family typewriter
13305 ...
13306 \end_layout
13307
13308 \begin_layout Quote
13309
13310 \change_deleted -584632292 1615846694
13311
13312 \family typewriter
13313 EndArgument
13314 \end_layout
13315
13316 \begin_layout Quote
13317
13318 \change_deleted -584632292 1615846694
13319
13320 \family typewriter
13321 Argument 2
13322 \end_layout
13323
13324 \begin_layout Quote
13325
13326 \change_deleted -584632292 1615846694
13327
13328 \family typewriter
13329 ...
13330 \end_layout
13331
13332 \begin_layout Quote
13333
13334 \change_deleted -584632292 1615846694
13335
13336 \family typewriter
13337 EndArgument
13338 \end_layout
13339
13340 \begin_layout Standard
13341
13342 \change_deleted -584632292 1615846694
13343 Inside the 
13344 \begin_inset Flex Code
13345 status collapsed
13346
13347 \begin_layout Plain Layout
13348 Argument
13349 \end_layout
13350
13351 \end_inset
13352
13353  definition,
13354  the following specifications are possible:
13355 \end_layout
13356
13357 \begin_layout Itemize
13358
13359 \change_deleted -584632292 1615846694
13360 \begin_inset Flex Code
13361 status collapsed
13362
13363 \begin_layout Plain Layout
13364 LabelString
13365 \end_layout
13366
13367 \end_inset
13368
13369  
13370 \begin_inset Flex Code
13371 status collapsed
13372
13373 \begin_layout Plain Layout
13374 [string]
13375 \end_layout
13376
13377 \end_inset
13378
13379  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 
13380 \begin_inset Flex Code
13381 status collapsed
13382
13383 \begin_layout Plain Layout
13384 MenuString
13385 \end_layout
13386
13387 \end_inset
13388
13389 ).
13390  For the menu,
13391  you can define an accelerator by appending the respective character to the string,
13392  divided by 
13393 \begin_inset Quotes eld
13394 \end_inset
13395
13396 |
13397 \begin_inset Quotes erd
13398 \end_inset
13399
13400  (e.
13401 \begin_inset space \thinspace{}
13402 \end_inset
13403
13404 g.
13405 \begin_inset space \space{}
13406 \end_inset
13407
13408
13409 \begin_inset Quotes eld
13410 \end_inset
13411
13412
13413 \begin_inset Flex Code
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 Short Title|S
13418 \end_layout
13419
13420 \end_inset
13421
13422
13423 \begin_inset Quotes erd
13424 \end_inset
13425
13426 ).
13427 \end_layout
13428
13429 \begin_layout Itemize
13430
13431 \change_deleted -584632292 1615846694
13432 \begin_inset Flex Code
13433 status collapsed
13434
13435 \begin_layout Plain Layout
13436 MenuString
13437 \end_layout
13438
13439 \end_inset
13440
13441  
13442 \begin_inset Flex Code
13443 status collapsed
13444
13445 \begin_layout Plain Layout
13446 [string]
13447 \end_layout
13448
13449 \end_inset
13450
13451  A separate string for the menu.
13452  You can define an accelerator by appending the respective character to the string,
13453  divided by 
13454 \begin_inset Quotes eld
13455 \end_inset
13456
13457 |
13458 \begin_inset Quotes erd
13459 \end_inset
13460
13461  (e.
13462 \begin_inset space \thinspace{}
13463 \end_inset
13464
13465 g.
13466 \begin_inset space \space{}
13467 \end_inset
13468
13469
13470 \begin_inset Quotes eld
13471 \end_inset
13472
13473
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 Short Title|S
13479 \end_layout
13480
13481 \end_inset
13482
13483
13484 \begin_inset Quotes erd
13485 \end_inset
13486
13487 ).
13488  This specification is optional.
13489  If it is not given the 
13490 \begin_inset Flex Code
13491 status collapsed
13492
13493 \begin_layout Plain Layout
13494 LabelString
13495 \end_layout
13496
13497 \end_inset
13498
13499  will be used instead for the menu.
13500 \end_layout
13501
13502 \begin_layout Itemize
13503
13504 \change_deleted -584632292 1615846694
13505 \begin_inset Flex Code
13506 status collapsed
13507
13508 \begin_layout Plain Layout
13509 Tooltip
13510 \end_layout
13511
13512 \end_inset
13513
13514  
13515 \begin_inset Flex Code
13516 status collapsed
13517
13518 \begin_layout Plain Layout
13519 [string]
13520 \end_layout
13521
13522 \end_inset
13523
13524  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
13525 \end_layout
13526
13527 \begin_layout Itemize
13528
13529 \change_deleted -584632292 1615846694
13530 \begin_inset Flex Code
13531 status collapsed
13532
13533 \begin_layout Plain Layout
13534 Mandatory
13535 \end_layout
13536
13537 \end_inset
13538
13539  [
13540 \begin_inset Flex Code
13541 status collapsed
13542
13543 \begin_layout Plain Layout
13544
13545 \emph on
13546 0
13547 \end_layout
13548
13549 \end_inset
13550
13551 ,
13552 \begin_inset space \thinspace{}
13553 \end_inset
13554
13555
13556 \begin_inset Flex Code
13557 status collapsed
13558
13559 \begin_layout Plain Layout
13560 1
13561 \end_layout
13562
13563 \end_inset
13564
13565 ] Declare if this is a mandatory (1) or an optional (0) argument.
13566  Mandatory arguments will be output empty if not given,
13567  while optional arguments will not be output at all.
13568  By default,
13569  mandatory arguments are delimited by 
13570 \begin_inset Flex Code
13571 status collapsed
13572
13573 \begin_layout Plain Layout
13574 {...}
13575 \end_layout
13576
13577 \end_inset
13578
13579 ,
13580  while optional arguments are delimited by 
13581 \begin_inset Flex Code
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585 [...]
13586 \end_layout
13587
13588 \end_inset
13589
13590
13591 \end_layout
13592
13593 \begin_layout Itemize
13594
13595 \change_deleted -584632292 1615846694
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600
13601 \change_inserted -712698321 1555579780
13602 NewlineCmd
13603 \change_unchanged
13604
13605 \end_layout
13606
13607 \end_inset
13608
13609  
13610 \begin_inset Flex Code
13611 status collapsed
13612
13613 \begin_layout Plain Layout
13614
13615 \change_inserted -712698321 1555579780
13616 [string]
13617 \change_unchanged
13618
13619 \end_layout
13620
13621 \end_inset
13622
13623  Option to define a different command (from the default 
13624 \begin_inset Flex Code
13625 status collapsed
13626
13627 \begin_layout Plain Layout
13628
13629 \change_inserted -712698321 1555579780
13630
13631 \backslash
13632
13633 \backslash
13634
13635 \change_unchanged
13636
13637 \end_layout
13638
13639 \end_inset
13640
13641 ) to be used for line breaks.
13642  The initial backslash must not be specified.
13643 \end_layout
13644
13645 \begin_layout Itemize
13646
13647 \change_deleted -584632292 1615846694
13648 \begin_inset Flex Code
13649 status collapsed
13650
13651 \begin_layout Plain Layout
13652 Requires
13653 \end_layout
13654
13655 \end_inset
13656
13657  
13658 \begin_inset Flex Code
13659 status collapsed
13660
13661 \begin_layout Plain Layout
13662 [int=0]
13663 \end_layout
13664
13665 \end_inset
13666
13667  defines another argument (by its number) which this argument requires to be output if it is itself output.
13668  E.
13669 \begin_inset space \thinspace{}
13670 \end_inset
13671
13672 g.,
13673  in \SpecialChar LaTeX
13674  commands,
13675  optional arguments often require previous optional arguments to be output (at least empty),
13676  as in 
13677 \begin_inset Flex Code
13678 status collapsed
13679
13680 \begin_layout Plain Layout
13681
13682 \backslash
13683 command[][argument]{text}
13684 \end_layout
13685
13686 \end_inset
13687
13688 .
13689  This can be achieved by the statement 
13690 \begin_inset Flex Code
13691 status collapsed
13692
13693 \begin_layout Plain Layout
13694 Requires 1
13695 \end_layout
13696
13697 \end_inset
13698
13699  within 
13700 \begin_inset Flex Code
13701 status collapsed
13702
13703 \begin_layout Plain Layout
13704 Argument 2
13705 \end_layout
13706
13707 \end_inset
13708
13709 .
13710 \end_layout
13711
13712 \begin_layout Itemize
13713
13714 \change_deleted -584632292 1615846694
13715 \begin_inset Flex Code
13716 status collapsed
13717
13718 \begin_layout Plain Layout
13719 LeftDelim
13720 \end_layout
13721
13722 \end_inset
13723
13724  
13725 \begin_inset Flex Code
13726 status collapsed
13727
13728 \begin_layout Plain Layout
13729 [string]
13730 \end_layout
13731
13732 \end_inset
13733
13734  defines a custom left delimiter (instead of 
13735 \begin_inset Flex Code
13736 status collapsed
13737
13738 \begin_layout Plain Layout
13739 {
13740 \end_layout
13741
13742 \end_inset
13743
13744  or 
13745 \begin_inset Flex Code
13746 status collapsed
13747
13748 \begin_layout Plain Layout
13749 [
13750 \end_layout
13751
13752 \end_inset
13753
13754 ).
13755  A line break in the output can be indicated by 
13756 \begin_inset Flex Code
13757 status collapsed
13758
13759 \begin_layout Plain Layout
13760 <br/>
13761 \end_layout
13762
13763 \end_inset
13764
13765 .
13766 \end_layout
13767
13768 \begin_layout Itemize
13769
13770 \change_deleted -584632292 1615846694
13771 \begin_inset Flex Code
13772 status collapsed
13773
13774 \begin_layout Plain Layout
13775 RightDelim
13776 \end_layout
13777
13778 \end_inset
13779
13780  
13781 \begin_inset Flex Code
13782 status collapsed
13783
13784 \begin_layout Plain Layout
13785 [string]
13786 \end_layout
13787
13788 \end_inset
13789
13790  defines a custom right delimiter (instead of 
13791 \begin_inset Flex Code
13792 status collapsed
13793
13794 \begin_layout Plain Layout
13795 }
13796 \end_layout
13797
13798 \end_inset
13799
13800  or 
13801 \begin_inset Flex Code
13802 status collapsed
13803
13804 \begin_layout Plain Layout
13805 ]
13806 \end_layout
13807
13808 \end_inset
13809
13810 ).
13811  A line break in the output can be indicated by 
13812 \begin_inset Flex Code
13813 status collapsed
13814
13815 \begin_layout Plain Layout
13816 <br/>
13817 \end_layout
13818
13819 \end_inset
13820
13821 .
13822 \end_layout
13823
13824 \begin_layout Itemize
13825
13826 \change_deleted -584632292 1615846694
13827 \begin_inset Flex Code
13828 status collapsed
13829
13830 \begin_layout Plain Layout
13831 DefaultArg
13832 \end_layout
13833
13834 \end_inset
13835
13836  
13837 \begin_inset Flex Code
13838 status collapsed
13839
13840 \begin_layout Plain Layout
13841 [string]
13842 \end_layout
13843
13844 \end_inset
13845
13846  defines an argument that is inserted if and only if no user-specified arguments were given,
13847  i.
13848 \begin_inset space \thinspace{}
13849 \end_inset
13850
13851 e.
13852 \begin_inset space \space{}
13853 \end_inset
13854
13855 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
13856  Multiple arguments need to be separated by comma.
13857 \end_layout
13858
13859 \begin_layout Itemize
13860
13861 \change_deleted -584632292 1615846694
13862 \begin_inset Flex Code
13863 status collapsed
13864
13865 \begin_layout Plain Layout
13866 PresetArg
13867 \end_layout
13868
13869 \end_inset
13870
13871  
13872 \begin_inset Flex Code
13873 status collapsed
13874
13875 \begin_layout Plain Layout
13876 [string]
13877 \end_layout
13878
13879 \end_inset
13880
13881  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
13882  Multiple arguments need to be separated by comma.
13883 \end_layout
13884
13885 \begin_layout Itemize
13886
13887 \change_deleted -584632292 1615846694
13888 \begin_inset Flex Code
13889 status collapsed
13890
13891 \begin_layout Plain Layout
13892 Font
13893 \end_layout
13894
13895 \end_inset
13896
13897  The font used for the argument content,
13898  see 
13899 \begin_inset CommandInset ref
13900 LatexCommand ref
13901 reference "subsec:Font-description"
13902 nolink "false"
13903
13904 \end_inset
13905
13906 .
13907 \end_layout
13908
13909 \begin_layout Itemize
13910
13911 \change_deleted -584632292 1615846694
13912 \begin_inset Flex Code
13913 status collapsed
13914
13915 \begin_layout Plain Layout
13916
13917 \change_inserted -712698321 1559484228
13918 FreeSpacing
13919 \change_unchanged
13920
13921 \end_layout
13922
13923 \end_inset
13924
13925  [
13926 \begin_inset Flex Code
13927 status collapsed
13928
13929 \begin_layout Plain Layout
13930
13931 \change_inserted -712698321 1559484228
13932
13933 \emph on
13934 0
13935 \change_unchanged
13936
13937 \end_layout
13938
13939 \end_inset
13940
13941 ,
13942 \begin_inset space \thinspace{}
13943 \end_inset
13944
13945
13946 \begin_inset Flex Code
13947 status collapsed
13948
13949 \begin_layout Plain Layout
13950
13951 \change_inserted -712698321 1559484228
13952 1
13953 \change_unchanged
13954
13955 \end_layout
13956
13957 \end_inset
13958
13959 ] As with paragraph styles,
13960  see 
13961 \begin_inset CommandInset ref
13962 LatexCommand ref
13963 reference "subsec:Paragraph-Styles"
13964 nolink "false"
13965
13966 \end_inset
13967
13968 .
13969 \end_layout
13970
13971 \begin_layout Itemize
13972
13973 \change_deleted -584632292 1615846694
13974 \begin_inset Flex Code
13975 status collapsed
13976
13977 \begin_layout Plain Layout
13978 LabelFont
13979 \end_layout
13980
13981 \end_inset
13982
13983  The font used for the label;
13984  see 
13985 \begin_inset CommandInset ref
13986 LatexCommand ref
13987 reference "subsec:Font-description"
13988 nolink "false"
13989
13990 \end_inset
13991
13992 .
13993 \end_layout
13994
13995 \begin_layout Itemize
13996
13997 \change_deleted -584632292 1615846694
13998 \begin_inset Flex Code
13999 status collapsed
14000
14001 \begin_layout Plain Layout
14002 Decoration
14003 \end_layout
14004
14005 \end_inset
14006
14007  [
14008 \begin_inset Flex Code
14009 status collapsed
14010
14011 \begin_layout Plain Layout
14012
14013 \emph on
14014 Classic
14015 \emph default
14016 ,
14017  Minimalistic,
14018  Conglomerate
14019 \end_layout
14020
14021 \end_inset
14022
14023 ] describes the rendering style used for the inset's frame and buttons.
14024 \end_layout
14025
14026 \begin_layout Itemize
14027
14028 \change_deleted -584632292 1615846694
14029 \begin_inset Flex Code
14030 status collapsed
14031
14032 \begin_layout Plain Layout
14033 AutoInsert
14034 \end_layout
14035
14036 \end_inset
14037
14038  
14039 \begin_inset Flex Code
14040 status collapsed
14041
14042 \begin_layout Plain Layout
14043 [int=0]
14044 \end_layout
14045
14046 \end_inset
14047
14048  If this is set to 
14049 \begin_inset Flex Code
14050 status collapsed
14051
14052 \begin_layout Plain Layout
14053 1
14054 \end_layout
14055
14056 \end_inset
14057
14058 ,
14059  this argument is automatically inserted when the respective style is selected.
14060
14061 \change_deleted -712698321 1559484200
14062  Currently,
14063  only one argument per style\SpecialChar breakableslash
14064 layout can be automatically inserted.
14065 \change_deleted -584632292 1615846694
14066
14067 \end_layout
14068
14069 \begin_layout Itemize
14070
14071 \change_deleted -584632292 1615846694
14072 \begin_inset Flex Code
14073 status collapsed
14074
14075 \begin_layout Plain Layout
14076
14077 \change_inserted -712698321 1559490711
14078 InsertOnNewline
14079 \change_unchanged
14080
14081 \end_layout
14082
14083 \end_inset
14084
14085  
14086 \begin_inset Flex Code
14087 status collapsed
14088
14089 \begin_layout Plain Layout
14090
14091 \change_inserted -712698321 1559490703
14092 [int=0]
14093 \change_unchanged
14094
14095 \end_layout
14096
14097 \end_inset
14098
14099  If this is set to 
14100 \begin_inset Flex Code
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104
14105 \change_inserted -712698321 1559490703
14106 1
14107 \change_unchanged
14108
14109 \end_layout
14110
14111 \end_inset
14112
14113 ,
14114  this argument will be inserted on a new line with 
14115 \begin_inset Flex Code
14116 status collapsed
14117
14118 \begin_layout Plain Layout
14119
14120 \change_inserted -712698321 1559491402
14121 AutoInsert
14122 \change_unchanged
14123
14124 \end_layout
14125
14126 \end_inset
14127
14128  (only available within Flex insets).
14129 \end_layout
14130
14131 \begin_layout Itemize
14132
14133 \change_deleted -584632292 1615846694
14134 \begin_inset Flex Code
14135 status collapsed
14136
14137 \begin_layout Plain Layout
14138 InsertCotext
14139 \end_layout
14140
14141 \end_inset
14142
14143  
14144 \begin_inset Flex Code
14145 status collapsed
14146
14147 \begin_layout Plain Layout
14148 [int=0]
14149 \end_layout
14150
14151 \end_inset
14152
14153  If this is set to 
14154 \begin_inset Flex Code
14155 status collapsed
14156
14157 \begin_layout Plain Layout
14158 1
14159 \end_layout
14160
14161 \end_inset
14162
14163 ,
14164  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
14165 \end_layout
14166
14167 \begin_layout Itemize
14168
14169 \change_deleted -584632292 1615846694
14170 \begin_inset Flex Code
14171 status collapsed
14172
14173 \begin_layout Plain Layout
14174 PassThru
14175 \end_layout
14176
14177 \end_inset
14178
14179  [
14180 \begin_inset Flex Code
14181 status collapsed
14182
14183 \begin_layout Plain Layout
14184
14185 \emph on
14186 inherited
14187 \emph default
14188 ,
14189  true,
14190  false
14191 \end_layout
14192
14193 \end_inset
14194
14195 ] Whether the contents of this argument should be output in raw form,
14196  meaning without special translations that \SpecialChar LaTeX
14197  would require.
14198  By default,
14199  the 
14200 \begin_inset Flex Code
14201 status collapsed
14202
14203 \begin_layout Plain Layout
14204 PassThru
14205 \end_layout
14206
14207 \end_inset
14208
14209  status is inherited by the inset or paragraph layout the argument belongs to,
14210  true and false change the status for the given argument only.
14211 \end_layout
14212
14213 \begin_layout Itemize
14214
14215 \change_deleted -584632292 1615846694
14216 \begin_inset Flex Code
14217 status collapsed
14218
14219 \begin_layout Plain Layout
14220 PassThruChars
14221 \end_layout
14222
14223 \end_inset
14224
14225  [
14226 \begin_inset Flex Code
14227 status collapsed
14228
14229 \begin_layout Plain Layout
14230 string of characters
14231 \end_layout
14232
14233 \end_inset
14234
14235 ]
14236 \family typewriter
14237  
14238 \family default
14239 Defines individual characters
14240 \begin_inset Newline linebreak
14241 \end_inset
14242
14243 that should be output in raw form,
14244  meaning without special translations that \SpecialChar LaTeX
14245  would require.
14246  Note that,
14247  contrary to PassThru,
14248  this needs to be explicitly defined for arguments.
14249  That is,
14250  arguments do not inherit PassThruChars from their parent inset or layout.
14251 \end_layout
14252
14253 \begin_layout Itemize
14254
14255 \change_deleted -584632292 1615846694
14256 \begin_inset Flex Code
14257 status collapsed
14258
14259 \begin_layout Plain Layout
14260 IsTocCaption
14261 \end_layout
14262
14263 \end_inset
14264
14265  [
14266 \begin_inset Flex Code
14267 status collapsed
14268
14269 \begin_layout Plain Layout
14270
14271 \emph on
14272 0
14273 \end_layout
14274
14275 \end_inset
14276
14277 ,
14278 \begin_inset space \thinspace{}
14279 \end_inset
14280
14281
14282 \begin_inset Flex Code
14283 status collapsed
14284
14285 \begin_layout Plain Layout
14286 1
14287 \end_layout
14288
14289 \end_inset
14290
14291 ] If this is set to 1,
14292  the argument will output its content in the corresponding item in the table of contents.
14293  See AddToToc.
14294 \end_layout
14295
14296 \begin_layout Standard
14297
14298 \change_deleted -584632292 1615846694
14299 By default,
14300  the text entered in the \SpecialChar LyX
14301  workarea in the respective layout is the last (mandatory) argument of a command if the 
14302 \begin_inset Flex Code
14303 status collapsed
14304
14305 \begin_layout Plain Layout
14306 LatexType
14307 \end_layout
14308
14309 \end_inset
14310
14311  is 
14312 \begin_inset Flex Code
14313 status collapsed
14314
14315 \begin_layout Plain Layout
14316 Command
14317 \end_layout
14318
14319 \end_inset
14320
14321 .
14322  However,
14323  arguments with the prefix 
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328 post:
14329 \end_layout
14330
14331 \end_inset
14332
14333  are output after this workarea argument.
14334  Note that post-argument numbering restarts at 1,
14335  so the first argument following the workarea argument is 
14336 \begin_inset Flex Code
14337 status collapsed
14338
14339 \begin_layout Plain Layout
14340 post:1
14341 \end_layout
14342
14343 \end_inset
14344
14345 .
14346  Post-arguments are ignored in any other 
14347 \begin_inset Flex Code
14348 status collapsed
14349
14350 \begin_layout Plain Layout
14351 LatexType
14352 \end_layout
14353
14354 \end_inset
14355
14356  than 
14357 \begin_inset Flex Code
14358 status collapsed
14359
14360 \begin_layout Plain Layout
14361 Command
14362 \end_layout
14363
14364 \end_inset
14365
14366 .
14367 \end_layout
14368
14369 \begin_layout Standard
14370
14371 \change_deleted -584632292 1615846694
14372 Arguments for list 
14373 \begin_inset Flex Code
14374 status collapsed
14375
14376 \begin_layout Plain Layout
14377
14378 \backslash
14379 item
14380 \end_layout
14381
14382 \end_inset
14383
14384 s (as in 
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389
14390 \backslash
14391 item[foo]
14392 \end_layout
14393
14394 \end_inset
14395
14396 ) have the prefix 
14397 \begin_inset Flex Code
14398 status collapsed
14399
14400 \begin_layout Plain Layout
14401 item:
14402 \end_layout
14403
14404 \end_inset
14405
14406  followed by the number (e.
14407 \begin_inset space \thinspace{}
14408 \end_inset
14409
14410 g.
14411 \begin_inset space \space{}
14412 \end_inset
14413
14414
14415 \begin_inset Flex Code
14416 status collapsed
14417
14418 \begin_layout Plain Layout
14419 Argument item:1
14420 \end_layout
14421
14422 \end_inset
14423
14424 ).
14425 \end_layout
14426
14427 \begin_layout Standard
14428
14429 \change_deleted -584632292 1615846694
14430 Finally,
14431  there is a special argument type with the prefix 
14432 \begin_inset Flex Code
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436
14437 \change_inserted -712698321 1534487844
14438 listpreamble:
14439 \change_unchanged
14440
14441 \end_layout
14442
14443 \end_inset
14444
14445 .
14446  It is not really an argument,
14447  but uses the argument interface (thus,
14448  the prefix is also followed by a number,
14449  e.
14450 \begin_inset space \thinspace{}
14451 \end_inset
14452
14453 g.
14454  
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459
14460 \change_inserted -712698321 1534488412
14461 Argument listpreamble:1
14462 \change_unchanged
14463
14464 \end_layout
14465
14466 \end_inset
14467
14468 ).
14469  As the name implies,
14470  it is targeted at lists such as 
14471 \family sans
14472 Itemize
14473 \family default
14474 ,
14475  
14476 \family sans
14477 Enumerate
14478 \family default
14479 ,
14480  
14481 \family sans
14482 Description
14483 \family default
14484 ,
14485  or 
14486 \family sans
14487 Bibliography
14488 \family default
14489 .
14490  Its content will be output at the list start,
14491  before the first 
14492 \begin_inset Flex Code
14493 status collapsed
14494
14495 \begin_layout Plain Layout
14496
14497 \change_inserted -712698321 1534488058
14498
14499 \backslash
14500 item
14501 \change_unchanged
14502
14503 \end_layout
14504
14505 \end_inset
14506
14507 ,
14508  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
14509 ).
14510  This way,
14511  users can insert redefinitions (of lengths etc.) to individual lists.
14512  By default,
14513  these arguments do not have a delimiter.
14514 \change_unchanged
14515
14516 \end_layout
14517
14518 \end_deeper
14519 \begin_layout Description
14520 \begin_inset Flex Code
14521 status collapsed
14522
14523 \begin_layout Plain Layout
14524 AutoNests
14525 \end_layout
14526
14527 \end_inset
14528
14529  Includes a comma-separated list of layouts that should be nested in and after the current layout.
14530  Only makes sense for nestable layouts (such as environments).
14531  Must be ended by 
14532 \begin_inset Quotes eld
14533 \end_inset
14534
14535
14536 \begin_inset Flex Code
14537 status collapsed
14538
14539 \begin_layout Plain Layout
14540 EndAutoNests
14541 \end_layout
14542
14543 \end_inset
14544
14545
14546 \begin_inset Quotes erd
14547 \end_inset
14548
14549 .
14550  See also 
14551 \begin_inset Flex Code
14552 status collapsed
14553
14554 \begin_layout Plain Layout
14555 IsAutoNestedBy
14556 \end_layout
14557
14558 \end_inset
14559
14560 .
14561 \end_layout
14562
14563 \begin_layout Description
14564 \begin_inset Flex Code
14565 status collapsed
14566
14567 \begin_layout Plain Layout
14568 BabelPreamble
14569 \end_layout
14570
14571 \end_inset
14572
14573  Note that this will completely override any prior 
14574 \begin_inset Flex Code
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578 BabelPreamble
14579 \end_layout
14580
14581 \end_inset
14582
14583  declaration for this style.
14584  Must end with 
14585 \begin_inset Quotes eld
14586 \end_inset
14587
14588
14589 \begin_inset Flex Code
14590 status collapsed
14591
14592 \begin_layout Plain Layout
14593 EndBabelPreamble
14594 \end_layout
14595
14596 \end_inset
14597
14598
14599 \begin_inset Quotes erd
14600 \end_inset
14601
14602 .
14603  See 
14604 \begin_inset CommandInset ref
14605 LatexCommand ref
14606 reference "subsec:I18n"
14607 nolink "false"
14608
14609 \end_inset
14610
14611  for details on its use.
14612 \end_layout
14613
14614 \begin_layout Description
14615 \begin_inset Flex Code
14616 status collapsed
14617
14618 \begin_layout Plain Layout
14619 BottomSep
14620 \end_layout
14621
14622 \end_inset
14623
14624  [
14625 \begin_inset Flex Code
14626 status collapsed
14627
14628 \begin_layout Plain Layout
14629 float=0
14630 \end_layout
14631
14632 \end_inset
14633
14634 ]
14635 \begin_inset Foot
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639 Note that a `float' here is a real number,
14640  such as:
14641  1.5.
14642 \end_layout
14643
14644 \end_inset
14645
14646  The vertical space with which the last of a chain of paragraphs with this style is separated from the following paragraph.
14647  If the next paragraph has another style,
14648  the separations are not simply added,
14649  but the maximum is taken.
14650 \end_layout
14651
14652 \begin_layout Description
14653 \begin_inset Flex Code
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 Category
14658 \end_layout
14659
14660 \end_inset
14661
14662  [
14663 \begin_inset Flex Code
14664 status collapsed
14665
14666 \begin_layout Plain Layout
14667 string
14668 \end_layout
14669
14670 \end_inset
14671
14672 ] The category for this style.
14673  This is used to group related styles in the style combobox on the toolbar.
14674  Any string can be used,
14675  but you may want to use existing categories with your own styles.
14676  
14677 \end_layout
14678
14679 \begin_layout Description
14680
14681 \change_deleted 1075283030 1672014981
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 CommandDepth
14687 \end_layout
14688
14689 \end_inset
14690
14691  Depth of XML command.
14692  Used only with XML-type formats.
14693 \end_layout
14694
14695 \begin_layout Description
14696 \begin_inset Flex Code
14697 status collapsed
14698
14699 \begin_layout Plain Layout
14700 CopyStyle
14701 \end_layout
14702
14703 \end_inset
14704
14705  [
14706 \begin_inset Flex Code
14707 status collapsed
14708
14709 \begin_layout Plain Layout
14710 string
14711 \end_layout
14712
14713 \end_inset
14714
14715 ] Copies all the features of an existing style into the current one.
14716
14717 \change_inserted -584632292 1678808972
14718  Note that this copies the style as it is defined at that point.
14719  Later changes to it will not affect styles into which it has been copied.
14720 \change_unchanged
14721
14722 \end_layout
14723
14724 \begin_layout Description
14725
14726 \change_inserted 1075283030 1672014806
14727 \begin_inset Flex Code
14728 status collapsed
14729
14730 \begin_layout Plain Layout
14731
14732 \change_inserted 1075283030 1671679781
14733 DocBookGenerateTitle
14734 \change_unchanged
14735
14736 \end_layout
14737
14738 \end_inset
14739
14740  [
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745
14746 \change_inserted 1075283030 1672014763
14747 bool=false
14748 \change_unchanged
14749
14750 \end_layout
14751
14752 \end_inset
14753
14754 ] Generates a
14755 \begin_inset Flex Code
14756 status collapsed
14757
14758 \begin_layout Plain Layout
14759
14760 \change_inserted 1075283030 1672014789
14761 title
14762 \change_unchanged
14763
14764 \end_layout
14765
14766 \end_inset
14767
14768  tag after the wrapper tag.
14769  This parameter should only be used with
14770 \begin_inset Flex Code
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774
14775 \change_inserted 1075283030 1671679828
14776 DocBookWrapperTag
14777 \change_unchanged
14778
14779 \end_layout
14780
14781 \end_inset
14782
14783 ,
14784  otherwise the title will be output
14785 \emph on
14786  before
14787 \emph default
14788  the contents of the environment.
14789  The generated title is the same as the LyXHTML label:
14790  a combination of the environment type and its number.
14791  A major use is when DocBook has no close mapping for LaTeX environments and users must fallback to using a generic container such as
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796
14797 \change_inserted 1075283030 1672014801
14798 figure
14799 \change_unchanged
14800
14801 \end_layout
14802
14803 \end_inset
14804
14805 ,
14806  which requires a title although there is none in LaTeX.
14807  This feature is heavily used for theorem-like environments.
14808 \change_unchanged
14809
14810 \end_layout
14811
14812 \begin_layout Description
14813 \begin_inset Flex Code
14814 status collapsed
14815
14816 \begin_layout Plain Layout
14817 DependsOn
14818 \end_layout
14819
14820 \end_inset
14821
14822  [
14823 \begin_inset Flex Code
14824 status collapsed
14825
14826 \begin_layout Plain Layout
14827 <name>
14828 \end_layout
14829
14830 \end_inset
14831
14832 ] The name of a style whose preamble should be output 
14833 \emph on
14834 before
14835 \emph default
14836  this one.
14837  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
14838 \begin_inset Foot
14839 status collapsed
14840
14841 \begin_layout Plain Layout
14842 Note that,
14843  besides that functionality,
14844  there is no way to ensure any ordering of preambles.
14845  The ordering that you see in a given version of \SpecialChar LyX
14846  may change without warning in later versions.
14847 \end_layout
14848
14849 \end_inset
14850
14851
14852 \end_layout
14853
14854 \begin_layout Description
14855 \begin_inset Flex Code
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859 EndLabelType
14860 \end_layout
14861
14862 \end_inset
14863
14864  [
14865 \begin_inset Flex Code
14866 status collapsed
14867
14868 \begin_layout Plain Layout
14869
14870 \emph on
14871 No_Label
14872 \emph default
14873 ,
14874  Box,
14875  Filled_Box,
14876  Static
14877 \end_layout
14878
14879 \end_inset
14880
14881 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
14882 \begin_inset Flex Code
14883 status collapsed
14884
14885 \begin_layout Plain Layout
14886 LatexType
14887 \end_layout
14888
14889 \end_inset
14890
14891  is
14892 \begin_inset Newline newline
14893 \end_inset
14894
14895
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900 Environment
14901 \end_layout
14902
14903 \end_inset
14904
14905 ,
14906  
14907 \begin_inset Flex Code
14908 status collapsed
14909
14910 \begin_layout Plain Layout
14911 Item_Environment
14912 \end_layout
14913
14914 \end_inset
14915
14916  or 
14917 \begin_inset Flex Code
14918 status collapsed
14919
14920 \begin_layout Plain Layout
14921 List_Environment
14922 \end_layout
14923
14924 \end_inset
14925
14926 ).
14927  
14928 \begin_inset Flex Code
14929 status collapsed
14930
14931 \begin_layout Plain Layout
14932 No_Label
14933 \end_layout
14934
14935 \end_inset
14936
14937  means 
14938 \begin_inset Quotes eld
14939 \end_inset
14940
14941 nothing
14942 \begin_inset Quotes erd
14943 \end_inset
14944
14945 ,
14946  
14947 \begin_inset Flex Code
14948 status collapsed
14949
14950 \begin_layout Plain Layout
14951 Box
14952 \end_layout
14953
14954 \end_inset
14955
14956  (resp.
14957 \begin_inset space \space{}
14958 \end_inset
14959
14960
14961 \begin_inset Flex Code
14962 status collapsed
14963
14964 \begin_layout Plain Layout
14965 Filled_Box
14966 \end_layout
14967
14968 \end_inset
14969
14970 ) is a white (resp.
14971 \begin_inset space ~
14972 \end_inset
14973
14974 black) square suitable for end of proof markers,
14975  
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980 Static
14981 \end_layout
14982
14983 \end_inset
14984
14985  is an explicit text string.
14986 \end_layout
14987
14988 \begin_layout Description
14989 \begin_inset Flex Code
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993 EndLabelString
14994 \end_layout
14995
14996 \end_inset
14997
14998  [
14999 \begin_inset Flex Code
15000 status collapsed
15001
15002 \begin_layout Plain Layout
15003 string=""
15004 \end_layout
15005
15006 \end_inset
15007
15008 ] The string used for a label with a 
15009 \begin_inset Flex Code
15010 status collapsed
15011
15012 \begin_layout Plain Layout
15013 Static
15014 \end_layout
15015
15016 \end_inset
15017
15018
15019 \begin_inset Newline newline
15020 \end_inset
15021
15022
15023 \begin_inset Flex Code
15024 status collapsed
15025
15026 \begin_layout Plain Layout
15027 EndLabelType
15028 \end_layout
15029
15030 \end_inset
15031
15032 .
15033  
15034 \end_layout
15035
15036 \begin_layout Description
15037 \begin_inset Flex Code
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041 Font
15042 \end_layout
15043
15044 \end_inset
15045
15046  The font used for both the text body 
15047 \emph on
15048 and
15049 \emph default
15050  the label.
15051  See 
15052 \begin_inset CommandInset ref
15053 LatexCommand ref
15054 reference "subsec:Font-description"
15055 nolink "false"
15056
15057 \end_inset
15058
15059 .
15060  Note that defining this font automatically defines the 
15061 \begin_inset Flex Code
15062 status collapsed
15063
15064 \begin_layout Plain Layout
15065 LabelFont
15066 \end_layout
15067
15068 \end_inset
15069
15070  to the same value.
15071  So you should define this one first if you also want to define 
15072 \begin_inset Flex Code
15073 status collapsed
15074
15075 \begin_layout Plain Layout
15076 LabelFont
15077 \end_layout
15078
15079 \end_inset
15080
15081 .
15082 \end_layout
15083
15084 \begin_layout Description
15085 \begin_inset Flex Code
15086 status collapsed
15087
15088 \begin_layout Plain Layout
15089 ForceLocal
15090 \end_layout
15091
15092 \end_inset
15093
15094  [
15095 \begin_inset Flex Code
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099 int=0
15100 \end_layout
15101
15102 \end_inset
15103
15104 ] Used for backporting new styles to stable \SpecialChar LyX
15105  versions.
15106  The first stable version that supports this tag is \SpecialChar LyX
15107  2.1.0.
15108  The argument is a number which may either be 0,
15109  -1 or any value greater than zero.
15110  If the 
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 ForceLocal
15116 \end_layout
15117
15118 \end_inset
15119
15120  flag of a style is greater than zero,
15121  it will always be written to the document header.
15122  If a .lyx file is read,
15123  the style definitions from the document header are added to the document class.
15124  Therefore even older \SpecialChar LyX
15125  versions can handle the style.
15126  The argument of 
15127 \begin_inset Flex Code
15128 status collapsed
15129
15130 \begin_layout Plain Layout
15131 ForceLocal
15132 \end_layout
15133
15134 \end_inset
15135
15136  is a version number:
15137  if the style is read,
15138  and the version number is less than the version number of the already existing style in the document class,
15139  the new style is ignored.
15140  If the version number is greater,
15141  the new style replaces the existing style.
15142  A value of -1 means an infinite version number,
15143  i.
15144 \begin_inset space \thinspace{}
15145 \end_inset
15146
15147 e.
15148 \begin_inset space \space{}
15149 \end_inset
15150
15151 the style is always used.
15152 \end_layout
15153
15154 \begin_layout Description
15155 \begin_inset Flex Code
15156 status collapsed
15157
15158 \begin_layout Plain Layout
15159 FreeSpacing
15160 \end_layout
15161
15162 \end_inset
15163
15164  [
15165 \begin_inset Flex Code
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169
15170 \emph on
15171 0
15172 \end_layout
15173
15174 \end_inset
15175
15176 ,
15177 \begin_inset space \thinspace{}
15178 \end_inset
15179
15180
15181 \begin_inset Flex Code
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185 1
15186 \end_layout
15187
15188 \end_inset
15189
15190 ] Usually \SpecialChar LyX
15191  does not allow you to insert more than one space between words,
15192  since a space is considered as the separation between two words,
15193  not a character or symbol of its own.
15194  This is a very fine thing but sometimes annoying,
15195  for example,
15196  when typing program code or plain \SpecialChar LaTeX
15197  code.
15198  For this reason,
15199  
15200 \begin_inset Flex Code
15201 status collapsed
15202
15203 \begin_layout Plain Layout
15204 FreeSpacing
15205 \end_layout
15206
15207 \end_inset
15208
15209  can be enabled.
15210  
15211 \change_deleted -495245474 1550490105
15212 Note that 
15213 \change_unchanged
15214 \SpecialChar LyX
15215  will create 
15216 \change_deleted 177693 1654669077
15217 protected
15218 \change_inserted 177693 1654669079
15219 non-breaking
15220 \change_unchanged
15221  
15222 \change_deleted 177693 1654669082
15223 blanks
15224 \change_inserted 177693 1654669082
15225 spaces
15226 \change_unchanged
15227  for the additional blanks when
15228 \change_deleted 34634807 1619626461
15229  in
15230 \change_unchanged
15231  
15232 \change_inserted -495245474 1550490096
15233
15234 \begin_inset Flex Code
15235 status collapsed
15236
15237 \begin_layout Plain Layout
15238
15239 \change_inserted -495245474 1550490089
15240 Passthru 1
15241 \change_unchanged
15242
15243 \end_layout
15244
15245 \end_inset
15246
15247  is not specified.
15248 \change_deleted -495245474 1550490116
15249 another mode than \SpecialChar LaTeX
15250 -mode.
15251
15252 \change_inserted -495245474 1550247760
15253  Note that 
15254 \begin_inset Flex Code
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258
15259 \change_inserted -495245474 1550247736
15260 FreeSpacing
15261 \change_unchanged
15262
15263 \end_layout
15264
15265 \end_inset
15266
15267  implies 
15268 \begin_inset Flex Code
15269 status collapsed
15270
15271 \begin_layout Plain Layout
15272
15273 \change_inserted -495245474 1550247755
15274 KeepEmpty
15275 \change_unchanged
15276
15277 \end_layout
15278
15279 \end_inset
15280
15281 .
15282 \change_unchanged
15283
15284 \end_layout
15285
15286 \begin_layout Description
15287 \begin_inset Flex Code
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291 HTML*
15292 \end_layout
15293
15294 \end_inset
15295
15296  These tags are used with XHTML output.
15297  See 
15298 \begin_inset CommandInset ref
15299 LatexCommand ref
15300 reference "subsec:Paragraph-Style-XHTML"
15301 nolink "false"
15302
15303 \end_inset
15304
15305 .
15306 \end_layout
15307
15308 \begin_layout Description
15309
15310 \change_deleted 1075283030 1672014684
15311 \begin_inset Flex Code
15312 status collapsed
15313
15314 \begin_layout Plain Layout
15315 InnerTag
15316 \end_layout
15317
15318 \end_inset
15319
15320  [FIXME] (Used only with XML-type formats.)
15321 \change_unchanged
15322
15323 \end_layout
15324
15325 \begin_layout Description
15326 \begin_inset Flex Code
15327 status collapsed
15328
15329 \begin_layout Plain Layout
15330 InPreamble
15331 \end_layout
15332
15333 \end_inset
15334
15335  [
15336 \begin_inset Flex Code
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340
15341 \emph on
15342 0
15343 \end_layout
15344
15345 \end_inset
15346
15347 ,
15348 \begin_inset space \thinspace{}
15349 \end_inset
15350
15351
15352 \begin_inset Flex Code
15353 status collapsed
15354
15355 \begin_layout Plain Layout
15356 1
15357 \end_layout
15358
15359 \end_inset
15360
15361 ] If 
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 ,
15372  marks the style as to be included in the document preamble and not in the document body.
15373  This is useful for document classes that want such information as the title and author to appear in the preamble.
15374  Note that this works only for styles for which the 
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 LatexType
15380 \end_layout
15381
15382 \end_inset
15383
15384  is 
15385 \begin_inset Flex Code
15386 status collapsed
15387
15388 \begin_layout Plain Layout
15389 Command
15390 \end_layout
15391
15392 \end_inset
15393
15394  or 
15395 \begin_inset Flex Code
15396 status collapsed
15397
15398 \begin_layout Plain Layout
15399 Paragraph
15400 \end_layout
15401
15402 \end_inset
15403
15404 .
15405 \end_layout
15406
15407 \begin_layout Description
15408 \begin_inset Flex Code
15409 status collapsed
15410
15411 \begin_layout Plain Layout
15412 InTitle
15413 \end_layout
15414
15415 \end_inset
15416
15417  [
15418 \begin_inset Flex Code
15419 status collapsed
15420
15421 \begin_layout Plain Layout
15422
15423 \emph on
15424 0
15425 \end_layout
15426
15427 \end_inset
15428
15429 ,
15430 \begin_inset space \thinspace{}
15431 \end_inset
15432
15433
15434 \begin_inset Flex Code
15435 status collapsed
15436
15437 \begin_layout Plain Layout
15438 1
15439 \end_layout
15440
15441 \end_inset
15442
15443 ] If 
15444 \begin_inset Flex Code
15445 status collapsed
15446
15447 \begin_layout Plain Layout
15448 1
15449 \end_layout
15450
15451 \end_inset
15452
15453 ,
15454  marks the style as being part of a title block (see also the 
15455 \begin_inset Flex Code
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 TitleLatexType
15460 \end_layout
15461
15462 \end_inset
15463
15464  and 
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 TitleLatexName
15470 \end_layout
15471
15472 \end_inset
15473
15474  global entries).
15475 \end_layout
15476
15477 \begin_layout Description
15478 \begin_inset Flex Code
15479 status collapsed
15480
15481 \begin_layout Plain Layout
15482 IsAutoNestedBy
15483 \end_layout
15484
15485 \end_inset
15486
15487  Includes a comma-separated list of layouts after which this one should be nested.
15488  Only makes sense with regard to nestable layouts (such as environments).
15489  Must be ended by 
15490 \begin_inset Quotes eld
15491 \end_inset
15492
15493
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 EndIsAutoNestedBy
15499 \end_layout
15500
15501 \end_inset
15502
15503
15504 \begin_inset Quotes erd
15505 \end_inset
15506
15507 .
15508  See also 
15509 \begin_inset Flex Code
15510 status collapsed
15511
15512 \begin_layout Plain Layout
15513 AutoNests
15514 \end_layout
15515
15516 \end_inset
15517
15518 .
15519 \end_layout
15520
15521 \begin_layout Description
15522 \begin_inset Flex Code
15523 status collapsed
15524
15525 \begin_layout Plain Layout
15526 IsTocCaption
15527 \end_layout
15528
15529 \end_inset
15530
15531  [
15532 \begin_inset Flex Code
15533 status collapsed
15534
15535 \begin_layout Plain Layout
15536
15537 \emph on
15538 0
15539 \end_layout
15540
15541 \end_inset
15542
15543 ,
15544 \begin_inset space \thinspace{}
15545 \end_inset
15546
15547
15548 \begin_inset Flex Code
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 1
15553 \end_layout
15554
15555 \end_inset
15556
15557 ] If this is set to 1 and AddToToc is enabled,
15558  the paragraph adds a summary of its contents in its item in the table of contents.
15559  Otherwise,
15560  only the label,
15561  if it exists,
15562  appears.
15563 \end_layout
15564
15565 \begin_layout Description
15566 \begin_inset Flex Code
15567 status collapsed
15568
15569 \begin_layout Plain Layout
15570 ItemCommand
15571 \end_layout
15572
15573 \end_inset
15574
15575  [
15576 \begin_inset Flex Code
15577 status collapsed
15578
15579 \begin_layout Plain Layout
15580 string="item"
15581 \end_layout
15582
15583 \end_inset
15584
15585 ] The \SpecialChar LaTeX
15586  command sequence declaring an item in a list.
15587  The command is to be defined without the preceding backslash (the default is 
15588 \begin_inset Quotes eld
15589 \end_inset
15590
15591 item
15592 \begin_inset Quotes erd
15593 \end_inset
15594
15595 ,
15596  resulting in 
15597 \begin_inset Flex Code
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601
15602 \backslash
15603 item
15604 \end_layout
15605
15606 \end_inset
15607
15608  in the \SpecialChar LaTeX
15609  output).
15610 \end_layout
15611
15612 \begin_layout Description
15613 \begin_inset Flex Code
15614 status collapsed
15615
15616 \begin_layout Plain Layout
15617 ItemSep
15618 \end_layout
15619
15620 \end_inset
15621
15622  [
15623 \begin_inset Flex Code
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627 float=0
15628 \end_layout
15629
15630 \end_inset
15631
15632 ] This provides extra space between paragraphs that have the same style.
15633  If you put other styles into an environment,
15634  each is separated with the environment's 
15635 \begin_inset Flex Code
15636 status collapsed
15637
15638 \begin_layout Plain Layout
15639 ParSep
15640 \end_layout
15641
15642 \end_inset
15643
15644 .
15645  But the whole items of the environment are additionally separated with this 
15646 \begin_inset Flex Code
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650 ItemSep
15651 \end_layout
15652
15653 \end_inset
15654
15655 .
15656  Note that this is a
15657 \emph on
15658  multiplier.
15659 \end_layout
15660
15661 \begin_layout Description
15662
15663 \change_deleted 1075283030 1672014680
15664 \begin_inset Flex Code
15665 status collapsed
15666
15667 \begin_layout Plain Layout
15668 ItemTag
15669 \end_layout
15670
15671 \end_inset
15672
15673  [FIXME] (Used only with XML-type formats.)
15674 \change_unchanged
15675
15676 \end_layout
15677
15678 \begin_layout Description
15679 \begin_inset Flex Code
15680 status collapsed
15681
15682 \begin_layout Plain Layout
15683 KeepEmpty
15684 \end_layout
15685
15686 \end_inset
15687
15688  [
15689 \begin_inset Flex Code
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693
15694 \emph on
15695 0
15696 \end_layout
15697
15698 \end_inset
15699
15700 ,
15701 \begin_inset space \thinspace{}
15702 \end_inset
15703
15704
15705 \begin_inset Flex Code
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709 1
15710 \end_layout
15711
15712 \end_inset
15713
15714 ] Usually \SpecialChar LyX
15715  does not allow you to leave a paragraph empty,
15716  since it would lead to empty \SpecialChar LaTeX
15717  output.
15718  There are some cases where this could be desirable however:
15719  in a letter template,
15720  the required fields can be provided as empty fields,
15721  so that people do not forget them;
15722  in some special classes,
15723  a style can be used as some kind of break,
15724  which does not contain actual text.
15725 \end_layout
15726
15727 \begin_layout Description
15728 \begin_inset Flex Code
15729 status collapsed
15730
15731 \begin_layout Plain Layout
15732 LabelBottomsep
15733 \end_layout
15734
15735 \end_inset
15736
15737  [
15738 \begin_inset Flex Code
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742 float=0
15743 \end_layout
15744
15745 \end_inset
15746
15747 ] The vertical space between the label and the text body.
15748  Only used for labels that are above the text body (
15749 \begin_inset Flex Code
15750 status collapsed
15751
15752 \begin_layout Plain Layout
15753 Top_Environment
15754 \end_layout
15755
15756 \end_inset
15757
15758  and
15759 \begin_inset Newline newline
15760 \end_inset
15761
15762
15763 \begin_inset Flex Code
15764 status collapsed
15765
15766 \begin_layout Plain Layout
15767 Centered_Top_Environment
15768 \end_layout
15769
15770 \end_inset
15771
15772 ).
15773 \end_layout
15774
15775 \begin_layout Description
15776 \begin_inset Flex Code
15777 status collapsed
15778
15779 \begin_layout Plain Layout
15780 LabelCounter
15781 \end_layout
15782
15783 \end_inset
15784
15785  [
15786 \begin_inset Flex Code
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790 string=""
15791 \end_layout
15792
15793 \end_inset
15794
15795 ] The name of the counter for automatic numbering.
15796  In order to have the counter appear with your label,
15797  you will need to reference it in the 
15798 \begin_inset Flex Code
15799 status collapsed
15800
15801 \begin_layout Plain Layout
15802
15803 \family typewriter
15804 LabelString
15805 \end_layout
15806
15807 \end_inset
15808
15809 .
15810  This will work with 
15811 \begin_inset Flex Code
15812 status collapsed
15813
15814 \begin_layout Plain Layout
15815 LabelType
15816 \end_layout
15817
15818 \end_inset
15819
15820 s,
15821  
15822 \begin_inset Flex Code
15823 status collapsed
15824
15825 \begin_layout Plain Layout
15826 Static
15827 \end_layout
15828
15829 \end_inset
15830
15831 ,
15832  
15833 \begin_inset Flex Code
15834 status collapsed
15835
15836 \begin_layout Plain Layout
15837 Above
15838 \end_layout
15839
15840 \end_inset
15841
15842  and 
15843 \begin_inset Flex Code
15844 status collapsed
15845
15846 \begin_layout Plain Layout
15847 Centered
15848 \end_layout
15849
15850 \end_inset
15851
15852 ,
15853  at least.
15854 \begin_inset Newline newline
15855 \end_inset
15856
15857 This 
15858 \emph on
15859 may
15860 \emph default
15861  also be given if 
15862 \begin_inset Flex Code
15863 status collapsed
15864
15865 \begin_layout Plain Layout
15866 LabelType
15867 \end_layout
15868
15869 \end_inset
15870
15871  is 
15872 \begin_inset Flex Code
15873 status collapsed
15874
15875 \begin_layout Plain Layout
15876 Enumerate
15877 \end_layout
15878
15879 \end_inset
15880
15881 ,
15882  though this case is a bit complicated.
15883  Suppose you declare 
15884 \begin_inset Quotes eld
15885 \end_inset
15886
15887
15888 \begin_inset Flex Code
15889 status collapsed
15890
15891 \begin_layout Plain Layout
15892 LabelCounter myenum
15893 \end_layout
15894
15895 \end_inset
15896
15897
15898 \begin_inset Quotes erd
15899 \end_inset
15900
15901 .
15902  Then the actual counters used are 
15903 \begin_inset Flex Code
15904 status collapsed
15905
15906 \begin_layout Plain Layout
15907 myenumi
15908 \end_layout
15909
15910 \end_inset
15911
15912 ,
15913  
15914 \begin_inset Flex Code
15915 status collapsed
15916
15917 \begin_layout Plain Layout
15918 myenumii
15919 \end_layout
15920
15921 \end_inset
15922
15923 ,
15924  
15925 \begin_inset Flex Code
15926 status collapsed
15927
15928 \begin_layout Plain Layout
15929 myenumiii
15930 \end_layout
15931
15932 \end_inset
15933
15934  and 
15935 \begin_inset Flex Code
15936 status collapsed
15937
15938 \begin_layout Plain Layout
15939 myenumiv
15940 \end_layout
15941
15942 \end_inset
15943
15944 ,
15945  much as in \SpecialChar LaTeX
15946 .
15947  These counters must all be declared separately.
15948 \begin_inset Newline newline
15949 \end_inset
15950
15951 See 
15952 \begin_inset CommandInset ref
15953 LatexCommand ref
15954 reference "subsec:Counters"
15955 nolink "false"
15956
15957 \end_inset
15958
15959  for details on counters.
15960 \end_layout
15961
15962 \begin_layout Description
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967 LabelFont
15968 \end_layout
15969
15970 \end_inset
15971
15972  The font used for the label.
15973  See 
15974 \begin_inset CommandInset ref
15975 LatexCommand ref
15976 reference "subsec:Font-description"
15977 nolink "false"
15978
15979 \end_inset
15980
15981 .
15982 \end_layout
15983
15984 \begin_layout Description
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 LabelIndent
15990 \end_layout
15991
15992 \end_inset
15993
15994  [
15995 \begin_inset Flex Code
15996 status collapsed
15997
15998 \begin_layout Plain Layout
15999 string=""
16000 \end_layout
16001
16002 \end_inset
16003
16004 ] Text that indicates how far a label should be indented.
16005 \end_layout
16006
16007 \begin_layout Description
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 LabelSep
16013 \end_layout
16014
16015 \end_inset
16016
16017  [
16018 \begin_inset Flex Code
16019 status collapsed
16020
16021 \begin_layout Plain Layout
16022 string=""
16023 \end_layout
16024
16025 \end_inset
16026
16027 ] Text that indicates the amount of horizontal space between the label and the text body.
16028  Only used for labels that are not above the text body.
16029 \end_layout
16030
16031 \begin_layout Description
16032 \begin_inset Flex Code
16033 status collapsed
16034
16035 \begin_layout Plain Layout
16036 LabelString
16037 \end_layout
16038
16039 \end_inset
16040
16041  [
16042 \begin_inset Flex Code
16043 status collapsed
16044
16045 \begin_layout Plain Layout
16046 string=""
16047 \end_layout
16048
16049 \end_inset
16050
16051 ] The string used for the label.
16052  When 
16053 \begin_inset Flex Code
16054 status collapsed
16055
16056 \begin_layout Plain Layout
16057 LabelCounter
16058 \end_layout
16059
16060 \end_inset
16061
16062  is set,
16063  this string can be contain the special formatting commands described in 
16064 \begin_inset CommandInset ref
16065 LatexCommand ref
16066 reference "subsec:Counters"
16067 nolink "false"
16068
16069 \end_inset
16070
16071 .
16072 \end_layout
16073
16074 \begin_layout Description
16075 \begin_inset Flex Code
16076 status collapsed
16077
16078 \begin_layout Plain Layout
16079 LabelStringAppendix
16080 \end_layout
16081
16082 \end_inset
16083
16084  [
16085 \begin_inset Flex Code
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 string=""
16090 \end_layout
16091
16092 \end_inset
16093
16094 ] This is used inside the appendix instead of
16095 \begin_inset Newline newline
16096 \end_inset
16097
16098
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 LabelString
16104 \end_layout
16105
16106 \end_inset
16107
16108 .
16109  Note that every 
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 LabelString
16115 \end_layout
16116
16117 \end_inset
16118
16119  statement resets
16120 \begin_inset Newline newline
16121 \end_inset
16122
16123
16124 \begin_inset Flex Code
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128 LabelStringAppendix
16129 \end_layout
16130
16131 \end_inset
16132
16133  too.
16134 \change_deleted 1075283030 1672015070
16135
16136 \end_layout
16137
16138 \begin_layout Description
16139
16140 \change_deleted 1075283030 1672015070
16141 \begin_inset Flex Code
16142 status collapsed
16143
16144 \begin_layout Plain Layout
16145 LabelTag
16146 \end_layout
16147
16148 \end_inset
16149
16150  [FIXME] (Used only with XML-type formats.)
16151 \change_unchanged
16152
16153 \end_layout
16154
16155 \begin_layout Description
16156 \begin_inset Flex Code
16157 status collapsed
16158
16159 \begin_layout Plain Layout
16160 LabelType
16161 \end_layout
16162
16163 \end_inset
16164
16165  [
16166 \begin_inset Flex Code
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170
16171 \emph on
16172 No_Label
16173 \emph default
16174 ,
16175  Manual,
16176  Static,
16177  Above,
16178  
16179 \begin_inset Newline newline
16180 \end_inset
16181
16182 Centered,
16183  Sensitive,
16184  Enumerate,
16185 \begin_inset Newline newline
16186 \end_inset
16187
16188 Itemize,
16189  Bibliography
16190 \end_layout
16191
16192 \end_inset
16193
16194 ]
16195 \end_layout
16196
16197 \begin_deeper
16198 \begin_layout Description
16199 \begin_inset Flex Code
16200 status collapsed
16201
16202 \begin_layout Plain Layout
16203 Manual
16204 \end_layout
16205
16206 \end_inset
16207
16208  means the label is the very first word (up to the first real blank).
16209  Use 
16210 \change_deleted 177693 1654669087
16211 protected
16212 \change_inserted 177693 1654669089
16213 non-breaking
16214 \change_unchanged
16215  spaces if you want more than one word as the label.
16216  
16217 \end_layout
16218
16219 \begin_layout Description
16220 \begin_inset Flex Code
16221 status collapsed
16222
16223 \begin_layout Plain Layout
16224 Static
16225 \end_layout
16226
16227 \end_inset
16228
16229  means the label is simply what is declared as 
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 LabelString
16235 \end_layout
16236
16237 \end_inset
16238
16239 .
16240  This will be displayed 
16241 \begin_inset Quotes eld
16242 \end_inset
16243
16244 inline
16245 \begin_inset Quotes erd
16246 \end_inset
16247
16248 ,
16249  at the beginning of the paragraph.
16250  If the 
16251 \begin_inset Flex Code
16252 status collapsed
16253
16254 \begin_layout Plain Layout
16255 LatexType
16256 \end_layout
16257
16258 \end_inset
16259
16260  is 
16261 \begin_inset Flex Code
16262 status collapsed
16263
16264 \begin_layout Plain Layout
16265 Environment
16266 \end_layout
16267
16268 \end_inset
16269
16270 ,
16271  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
16272 \begin_inset Flex Code
16273 status collapsed
16274
16275 \begin_layout Plain Layout
16276 Style
16277 \end_layout
16278
16279 \end_inset
16280
16281 .
16282 \end_layout
16283
16284 \begin_layout Description
16285 \begin_inset Flex Code
16286 status collapsed
16287
16288 \begin_layout Plain Layout
16289 Above
16290 \end_layout
16291
16292 \end_inset
16293
16294
16295 \begin_inset space ~
16296 \end_inset
16297
16298 and
16299 \begin_inset space ~
16300 \end_inset
16301
16302
16303 \begin_inset Flex Code
16304 status collapsed
16305
16306 \begin_layout Plain Layout
16307 Centered
16308 \end_layout
16309
16310 \end_inset
16311
16312  are special cases of 
16313 \begin_inset Flex Code
16314 status collapsed
16315
16316 \begin_layout Plain Layout
16317 Static
16318 \end_layout
16319
16320 \end_inset
16321
16322 .
16323  The label will be printed above the paragraph either at the beginning of the line or centered.
16324 \end_layout
16325
16326 \begin_layout Description
16327 \begin_inset Flex Code
16328 status collapsed
16329
16330 \begin_layout Plain Layout
16331 Sensitive
16332 \end_layout
16333
16334 \end_inset
16335
16336  is a special case for the caption-labels 
16337 \begin_inset Quotes eld
16338 \end_inset
16339
16340 Figure
16341 \begin_inset Quotes erd
16342 \end_inset
16343
16344  and 
16345 \begin_inset Quotes eld
16346 \end_inset
16347
16348 Table
16349 \begin_inset Quotes erd
16350 \end_inset
16351
16352 .
16353 \begin_inset Newline newline
16354 \end_inset
16355
16356
16357 \begin_inset Flex Code
16358 status collapsed
16359
16360 \begin_layout Plain Layout
16361 Sensitive
16362 \end_layout
16363
16364 \end_inset
16365
16366  means the (hardcoded) label string depends on the kind of float:
16367  It is hardcoded to be `FloatType N',
16368  where N is the value of the counter associated with the float.
16369  For the case that a caption is inserted outside of a float the 
16370 \begin_inset Flex Code
16371 status collapsed
16372
16373 \begin_layout Plain Layout
16374 LabelString
16375 \end_layout
16376
16377 \end_inset
16378
16379  will appear as 
16380 \begin_inset Quotes eld
16381 \end_inset
16382
16383 Senseless!
16384 \begin_inset Quotes erd
16385 \end_inset
16386
16387 .
16388 \end_layout
16389
16390 \begin_layout Description
16391 \begin_inset Flex Code
16392 status collapsed
16393
16394 \begin_layout Plain Layout
16395 Enumerate
16396 \end_layout
16397
16398 \end_inset
16399
16400  produces the usual sort of enumeration labels.
16401  The number type needs to be set in the 
16402 \family sans
16403 Counter
16404 \family default
16405 ,
16406  see 
16407 \begin_inset CommandInset ref
16408 LatexCommand ref
16409 reference "subsec:Counters"
16410 nolink "false"
16411
16412 \end_inset
16413
16414 .
16415 \end_layout
16416
16417 \begin_layout Description
16418 \begin_inset Flex Code
16419 status collapsed
16420
16421 \begin_layout Plain Layout
16422 Itemize
16423 \end_layout
16424
16425 \end_inset
16426
16427  produces various bullets at the different levels.
16428  The bullet types displayed can be set via 
16429 \begin_inset Flex Noun
16430 status collapsed
16431
16432 \begin_layout Plain Layout
16433 Document\SpecialChar menuseparator
16434 Settings\SpecialChar menuseparator
16435 Bullets
16436 \end_layout
16437
16438 \end_inset
16439
16440 .
16441 \end_layout
16442
16443 \begin_layout Description
16444 \begin_inset Flex Code
16445 status collapsed
16446
16447 \begin_layout Plain Layout
16448 Bibliography
16449 \end_layout
16450
16451 \end_inset
16452
16453  should be used only with 
16454 \begin_inset Flex Code
16455 status collapsed
16456
16457 \begin_layout Plain Layout
16458 LatexType BibEnvironment
16459 \end_layout
16460
16461 \end_inset
16462
16463 .
16464 \end_layout
16465
16466 \end_deeper
16467 \begin_layout Description
16468 \begin_inset Flex Code
16469 status collapsed
16470
16471 \begin_layout Plain Layout
16472 LangPreamble
16473 \end_layout
16474
16475 \end_inset
16476
16477  Note that this will completely override any prior 
16478 \begin_inset Flex Code
16479 status collapsed
16480
16481 \begin_layout Plain Layout
16482 LangPreamble
16483 \end_layout
16484
16485 \end_inset
16486
16487  declaration for this style.
16488  Must end with 
16489 \begin_inset Quotes eld
16490 \end_inset
16491
16492
16493 \begin_inset Flex Code
16494 status collapsed
16495
16496 \begin_layout Plain Layout
16497 EndLangPreamble
16498 \end_layout
16499
16500 \end_inset
16501
16502
16503 \begin_inset Quotes erd
16504 \end_inset
16505
16506 .
16507  See 
16508 \begin_inset CommandInset ref
16509 LatexCommand ref
16510 reference "subsec:I18n"
16511 nolink "false"
16512
16513 \end_inset
16514
16515  for details on its use.
16516 \end_layout
16517
16518 \begin_layout Description
16519 \begin_inset Flex Code
16520 status collapsed
16521
16522 \begin_layout Plain Layout
16523 LatexName
16524 \end_layout
16525
16526 \end_inset
16527
16528  [
16529 \begin_inset Flex Code
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533 <name>
16534 \end_layout
16535
16536 \end_inset
16537
16538 ] The name of the corresponding \SpecialChar LaTeX
16539  stuff.
16540  Either the environment or command name.
16541 \end_layout
16542
16543 \begin_layout Description
16544 \begin_inset Flex Code
16545 status collapsed
16546
16547 \begin_layout Plain Layout
16548 LatexParam
16549 \end_layout
16550
16551 \end_inset
16552
16553  [
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558 <parameter>
16559 \end_layout
16560
16561 \end_inset
16562
16563 ] An optional parameter for the corresponding 
16564 \begin_inset Flex Code
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568 LatexName
16569 \end_layout
16570
16571 \end_inset
16572
16573  stuff.
16574  This parameter cannot be changed from within \SpecialChar LyX
16575  (use 
16576 \begin_inset Flex Code
16577 status collapsed
16578
16579 \begin_layout Plain Layout
16580 Argument
16581 \end_layout
16582
16583 \end_inset
16584
16585  for customizable parameters).
16586  This will be output as is after all \SpecialChar LaTeX
16587  
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 Argument
16593 \end_layout
16594
16595 \end_inset
16596
16597 s.
16598 \end_layout
16599
16600 \begin_layout Description
16601 \begin_inset Flex Code
16602 status collapsed
16603
16604 \begin_layout Plain Layout
16605 LatexType
16606 \end_layout
16607
16608 \end_inset
16609
16610  [
16611 \begin_inset Flex Code
16612 status collapsed
16613
16614 \begin_layout Plain Layout
16615
16616 \emph on
16617 Paragraph
16618 \emph default
16619 ,
16620  Command,
16621  Environment,
16622  Item_Environment,
16623 \begin_inset Newline newline
16624 \end_inset
16625
16626 List_Environment,
16627  Bib_Environment
16628 \end_layout
16629
16630 \end_inset
16631
16632 ] How the style should be translated into \SpecialChar LaTeX
16633 .
16634 \begin_inset Foot
16635 status collapsed
16636
16637 \begin_layout Plain Layout
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 LatexType
16643 \end_layout
16644
16645 \end_inset
16646
16647  is perhaps a bit misleading,
16648  since these rules apply to SGML classes,
16649  too.
16650  Visit the SGML class files for specific examples.
16651 \end_layout
16652
16653 \end_inset
16654
16655
16656 \end_layout
16657
16658 \begin_deeper
16659 \begin_layout Description
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664 Paragraph
16665 \end_layout
16666
16667 \end_inset
16668
16669  means nothing special.
16670 \end_layout
16671
16672 \begin_layout Description
16673 \begin_inset Flex Code
16674 status collapsed
16675
16676 \begin_layout Plain Layout
16677 Command
16678 \end_layout
16679
16680 \end_inset
16681
16682  means 
16683 \begin_inset Flex Code
16684 status collapsed
16685
16686 \begin_layout Plain Layout
16687
16688 \backslash
16689
16690 \emph on
16691 LatexName
16692 \emph default
16693 {\SpecialChar ldots
16694 }
16695 \end_layout
16696
16697 \end_inset
16698
16699 .
16700 \end_layout
16701
16702 \begin_layout Description
16703 \begin_inset Flex Code
16704 status collapsed
16705
16706 \begin_layout Plain Layout
16707 Environment
16708 \end_layout
16709
16710 \end_inset
16711
16712  means 
16713 \begin_inset Flex Code
16714 status collapsed
16715
16716 \begin_layout Plain Layout
16717
16718 \backslash
16719 begin{
16720 \emph on
16721 LatexName
16722 \emph default
16723 }\SpecialChar ldots
16724
16725 \backslash
16726 end{
16727 \emph on
16728 LatexName
16729 \emph default
16730 }
16731 \end_layout
16732
16733 \end_inset
16734
16735 .
16736  
16737 \end_layout
16738
16739 \begin_layout Description
16740 \begin_inset Flex Code
16741 status collapsed
16742
16743 \begin_layout Plain Layout
16744 Item_Environment
16745 \end_layout
16746
16747 \end_inset
16748
16749  is the same as 
16750 \begin_inset Flex Code
16751 status collapsed
16752
16753 \begin_layout Plain Layout
16754 Environment
16755 \end_layout
16756
16757 \end_inset
16758
16759 ,
16760  except that an 
16761 \begin_inset Flex Code
16762 status collapsed
16763
16764 \begin_layout Plain Layout
16765
16766 \backslash
16767 item
16768 \end_layout
16769
16770 \end_inset
16771
16772  is generated for each paragraph of this environment.
16773  
16774 \end_layout
16775
16776 \begin_layout Description
16777 \begin_inset Flex Code
16778 status collapsed
16779
16780 \begin_layout Plain Layout
16781 List_Environment
16782 \end_layout
16783
16784 \end_inset
16785
16786  is the same as 
16787 \begin_inset Flex Code
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791 Item_Environment
16792 \end_layout
16793
16794 \end_inset
16795
16796 ,
16797  except that
16798 \begin_inset Newline newline
16799 \end_inset
16800
16801
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 LabelWidthString
16807 \end_layout
16808
16809 \end_inset
16810
16811  is passed as an argument to the environment.
16812 \begin_inset Newline newline
16813 \end_inset
16814
16815
16816 \begin_inset Flex Code
16817 status collapsed
16818
16819 \begin_layout Plain Layout
16820 LabelWidthString
16821 \end_layout
16822
16823 \end_inset
16824
16825  can be defined in the 
16826 \begin_inset Flex Noun
16827 status collapsed
16828
16829 \begin_layout Plain Layout
16830 Edit\SpecialChar menuseparator
16831 Paragraph
16832 \begin_inset space ~
16833 \end_inset
16834
16835 settings
16836 \end_layout
16837
16838 \end_inset
16839
16840  dialog.
16841 \end_layout
16842
16843 \begin_layout Description
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 Bib_Environment
16849 \end_layout
16850
16851 \end_inset
16852
16853  is like 
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 Environment
16859 \end_layout
16860
16861 \end_inset
16862
16863  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
16864 \begin_inset Newline newline
16865 \end_inset
16866
16867
16868 \begin_inset Flex Code
16869 status collapsed
16870
16871 \begin_layout Plain Layout
16872
16873 \backslash
16874 begin{thebibliography}{99}
16875 \end_layout
16876
16877 \end_inset
16878
16879 .
16880  It is therefore only useful for bibliography environments.
16881  The default longest label 
16882 \begin_inset Quotes eld
16883 \end_inset
16884
16885 99
16886 \begin_inset Quotes erd
16887 \end_inset
16888
16889  can be changed by the user in the paragraph settings of a bibliography item.
16890 \end_layout
16891
16892 \begin_layout Standard
16893 Putting the last few things together,
16894  the \SpecialChar LaTeX
16895  output will be either:
16896  
16897 \end_layout
16898
16899 \begin_layout LyX-Code
16900
16901 \backslash
16902 LatexName[LatexParam]{\SpecialChar ldots
16903 }
16904 \end_layout
16905
16906 \begin_layout Standard
16907 or:
16908  
16909 \end_layout
16910
16911 \begin_layout LyX-Code
16912
16913 \backslash
16914 begin{LatexName}[LatexParam] \SpecialChar ldots
16915  
16916 \backslash
16917 end{LatexName}.
16918 \end_layout
16919
16920 \begin_layout Standard
16921 depending upon the \SpecialChar LaTeX
16922  type.
16923 \end_layout
16924
16925 \end_deeper
16926 \begin_layout Description
16927 \begin_inset Flex Code
16928 status collapsed
16929
16930 \begin_layout Plain Layout
16931 LeftDelim
16932 \end_layout
16933
16934 \end_inset
16935
16936  [
16937 \begin_inset Flex Code
16938 status collapsed
16939
16940 \begin_layout Plain Layout
16941 string
16942 \end_layout
16943
16944 \end_inset
16945
16946 ] A string that is put at the beginning of the style content.
16947  A line break in the output can be indicated by 
16948 \begin_inset Flex Code
16949 status collapsed
16950
16951 \begin_layout Plain Layout
16952 <br/>
16953 \end_layout
16954
16955 \end_inset
16956
16957 .
16958 \end_layout
16959
16960 \begin_layout Description
16961 \begin_inset Flex Code
16962 status collapsed
16963
16964 \begin_layout Plain Layout
16965 LeftMargin
16966 \end_layout
16967
16968 \end_inset
16969
16970  [
16971 \begin_inset Flex Code
16972 status collapsed
16973
16974 \begin_layout Plain Layout
16975 string=""
16976 \end_layout
16977
16978 \end_inset
16979
16980 ] If you put styles into environments,
16981  the different 
16982 \begin_inset Flex Code
16983 status collapsed
16984
16985 \begin_layout Plain Layout
16986 LeftMargin
16987 \end_layout
16988
16989 \end_inset
16990
16991  are not simply added,
16992  but added with a factor 
16993 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16994 \end_inset
16995
16996 .
16997  Note that this parameter is also used when 
16998 \begin_inset Flex Code
16999 status collapsed
17000
17001 \begin_layout Plain Layout
17002 Margin
17003 \end_layout
17004
17005 \end_inset
17006
17007  is defined as 
17008 \begin_inset Flex Code
17009 status collapsed
17010
17011 \begin_layout Plain Layout
17012 Manual
17013 \end_layout
17014
17015 \end_inset
17016
17017  or 
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 Dynamic
17023 \end_layout
17024
17025 \end_inset
17026
17027 .
17028  Then it is added to the manual or dynamic margin.
17029 \begin_inset Newline newline
17030 \end_inset
17031
17032 For example 
17033 \begin_inset Quotes eld
17034 \end_inset
17035
17036
17037 \begin_inset Flex Code
17038 status collapsed
17039
17040 \begin_layout Plain Layout
17041 MM
17042 \end_layout
17043
17044 \end_inset
17045
17046
17047 \begin_inset Quotes erd
17048 \end_inset
17049
17050  means that the paragraph is indented with the width of 
17051 \begin_inset Quotes eld
17052 \end_inset
17053
17054
17055 \begin_inset Flex Code
17056 status collapsed
17057
17058 \begin_layout Plain Layout
17059 MM
17060 \end_layout
17061
17062 \end_inset
17063
17064
17065 \begin_inset Quotes erd
17066 \end_inset
17067
17068  in the normal font.
17069  You can get a negative width by prefixing the string with 
17070 \begin_inset Quotes eld
17071 \end_inset
17072
17073
17074 \begin_inset Flex Code
17075 status collapsed
17076
17077 \begin_layout Plain Layout
17078 -
17079 \end_layout
17080
17081 \end_inset
17082
17083
17084 \begin_inset Quotes erd
17085 \end_inset
17086
17087 .
17088  This way was chosen so that the look is the same with each used screen font.
17089 \end_layout
17090
17091 \begin_layout Description
17092 \begin_inset Flex Code
17093 status collapsed
17094
17095 \begin_layout Plain Layout
17096 Margin
17097 \end_layout
17098
17099 \end_inset
17100
17101  [
17102 \begin_inset Flex Code
17103 status collapsed
17104
17105 \begin_layout Plain Layout
17106
17107 \emph on
17108 Static
17109 \emph default
17110 ,
17111  Manual,
17112  Dynamic,
17113  First_Dynamic,
17114  Right_Address_Box
17115 \end_layout
17116
17117 \end_inset
17118
17119
17120 \begin_inset Newline newline
17121 \end_inset
17122
17123 The kind of margin that the style has on the left side.
17124 \end_layout
17125
17126 \begin_deeper
17127 \begin_layout Description
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132 Static
17133 \end_layout
17134
17135 \end_inset
17136
17137  just means a fixed margin.
17138 \end_layout
17139
17140 \begin_layout Description
17141 \begin_inset Flex Code
17142 status collapsed
17143
17144 \begin_layout Plain Layout
17145 Manual
17146 \end_layout
17147
17148 \end_inset
17149
17150  means that the left margin depends on the string entered in the 
17151 \begin_inset Flex Noun
17152 status collapsed
17153
17154 \begin_layout Plain Layout
17155 Edit\SpecialChar menuseparator
17156 Paragraph
17157 \begin_inset space ~
17158 \end_inset
17159
17160 Settings
17161 \end_layout
17162
17163 \end_inset
17164
17165  dialog.
17166  This is used to typeset nice lists without tabulators.
17167 \end_layout
17168
17169 \begin_layout Description
17170 \begin_inset Flex Code
17171 status collapsed
17172
17173 \begin_layout Plain Layout
17174 Dynamic
17175 \end_layout
17176
17177 \end_inset
17178
17179  means that the margin depends on the size of the label.
17180  This is used for automatic enumerated headlines.
17181  It is obvious that the headline 
17182 \begin_inset Quotes eld
17183 \end_inset
17184
17185 5.4.3.2.1 Very long headline
17186 \begin_inset Quotes erd
17187 \end_inset
17188
17189  must have a wider left margin (as wide as 
17190 \begin_inset Quotes eld
17191 \end_inset
17192
17193 5.4.3.2.1
17194 \begin_inset Quotes erd
17195 \end_inset
17196
17197  plus the space) than 
17198 \begin_inset Quotes eld
17199 \end_inset
17200
17201 3.2 Very long headline
17202 \begin_inset Quotes erd
17203 \end_inset
17204
17205 ,
17206  even if standard 
17207 \begin_inset Quotes eld
17208 \end_inset
17209
17210 word processors
17211 \begin_inset Quotes erd
17212 \end_inset
17213
17214  are not able to do this.
17215 \end_layout
17216
17217 \begin_layout Description
17218 \begin_inset Flex Code
17219 status collapsed
17220
17221 \begin_layout Plain Layout
17222 First_Dynamic
17223 \end_layout
17224
17225 \end_inset
17226
17227  is similar,
17228  but only the very first row of the paragraph is dynamic,
17229  while the others are static;
17230  this is used,
17231  for example,
17232  for descriptions.
17233 \end_layout
17234
17235 \begin_layout Description
17236 \begin_inset Flex Code
17237 status collapsed
17238
17239 \begin_layout Plain Layout
17240 Right_Address_Box
17241 \end_layout
17242
17243 \end_inset
17244
17245  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
17246  This is used to typeset an address on the right edge of the page.
17247 \end_layout
17248
17249 \end_deeper
17250 \begin_layout Description
17251 \begin_inset Flex Code
17252 status collapsed
17253
17254 \begin_layout Plain Layout
17255 NeedProtect
17256 \end_layout
17257
17258 \end_inset
17259
17260  [
17261 \begin_inset Flex Code
17262 status collapsed
17263
17264 \begin_layout Plain Layout
17265
17266 \emph on
17267 0
17268 \end_layout
17269
17270 \end_inset
17271
17272 ,
17273 \begin_inset space \thinspace{}
17274 \end_inset
17275
17276
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 1
17282 \end_layout
17283
17284 \end_inset
17285
17286 ] Whether fragile commands in this style should be 
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291
17292 \backslash
17293 protect
17294 \end_layout
17295
17296 \end_inset
17297
17298 'ed.
17299  (Note:
17300  This is 
17301 \emph on
17302 not
17303 \emph default
17304  whether this command should itself be protected.)
17305 \change_inserted -712698321 1523696949
17306
17307 \end_layout
17308
17309 \begin_layout Description
17310
17311 \change_inserted -712698321 1552395557
17312 \begin_inset Flex Code
17313 status collapsed
17314
17315 \begin_layout Plain Layout
17316
17317 \change_inserted -712698321 1523696950
17318 NeedCProtect
17319 \change_unchanged
17320
17321 \end_layout
17322
17323 \end_inset
17324
17325  [
17326 \begin_inset Flex Code
17327 status collapsed
17328
17329 \begin_layout Plain Layout
17330
17331 \change_inserted -712698321 1523696950
17332
17333 \emph on
17334 0
17335 \change_unchanged
17336
17337 \end_layout
17338
17339 \end_inset
17340
17341 ,
17342 \begin_inset space \thinspace{}
17343 \end_inset
17344
17345
17346 \begin_inset Flex Code
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350
17351 \change_inserted -712698321 1523696950
17352 1
17353 \change_unchanged
17354
17355 \end_layout
17356
17357 \end_inset
17358
17359 ] This causes macros that contain this layout to be protected with 
17360 \begin_inset Flex Code
17361 status collapsed
17362
17363 \begin_layout Plain Layout
17364
17365 \change_inserted -712698321 1523696950
17366
17367 \backslash
17368 cprotect
17369 \change_unchanged
17370
17371 \end_layout
17372
17373 \end_inset
17374
17375  (cf.
17376  package 
17377 \family sans
17378 cprotect
17379 \family default
17380 ) if necessary and thus allows (some) verbatim stuff in macros.
17381 \end_layout
17382
17383 \begin_layout Description
17384
17385 \change_inserted -712698321 1552395844
17386 \begin_inset Flex Code
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390
17391 \change_inserted -712698321 1552395561
17392 NeedMBoxProtect
17393 \change_unchanged
17394
17395 \end_layout
17396
17397 \end_inset
17398
17399  [
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404
17405 \change_inserted -712698321 1552395557
17406
17407 \emph on
17408 0
17409 \change_unchanged
17410
17411 \end_layout
17412
17413 \end_inset
17414
17415 ,
17416 \begin_inset space \thinspace{}
17417 \end_inset
17418
17419
17420 \begin_inset Flex Code
17421 status collapsed
17422
17423 \begin_layout Plain Layout
17424
17425 \change_inserted -712698321 1552395557
17426 1
17427 \change_unchanged
17428
17429 \end_layout
17430
17431 \end_inset
17432
17433 ] Whether specific commands in this style (such as 
17434 \begin_inset Flex Code
17435 status collapsed
17436
17437 \begin_layout Plain Layout
17438
17439 \change_inserted -712698321 1552395655
17440
17441 \backslash
17442 cite
17443 \change_unchanged
17444
17445 \end_layout
17446
17447 \end_inset
17448
17449  and 
17450 \begin_inset Flex Code
17451 status collapsed
17452
17453 \begin_layout Plain Layout
17454
17455 \change_inserted -712698321 1552395661
17456
17457 \backslash
17458 ref
17459 \change_unchanged
17460
17461 \end_layout
17462
17463 \end_inset
17464
17465 ) should be protected in an 
17466 \begin_inset Flex Code
17467 status collapsed
17468
17469 \begin_layout Plain Layout
17470
17471 \change_inserted -712698321 1552395631
17472
17473 \backslash
17474 mbox
17475 \change_unchanged
17476
17477 \end_layout
17478
17479 \end_inset
17480
17481 .
17482  This is particularly needed for styles that draw on 
17483 \family sans
17484 ulem
17485 \family default
17486  or 
17487 \family sans
17488 soul
17489 \family default
17490  commands which parse their content in complex ways.
17491 \change_unchanged
17492
17493 \end_layout
17494
17495 \begin_layout Description
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500 Newline
17501 \end_layout
17502
17503 \end_inset
17504
17505  [
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 0
17511 \end_layout
17512
17513 \end_inset
17514
17515 ,
17516 \begin_inset space \thinspace{}
17517 \end_inset
17518
17519
17520 \begin_inset Flex Code
17521 status collapsed
17522
17523 \begin_layout Plain Layout
17524
17525 \emph on
17526 1
17527 \end_layout
17528
17529 \end_inset
17530
17531 ] Whether newlines are translated into \SpecialChar LaTeX
17532  newlines (
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537
17538 \backslash
17539
17540 \backslash
17541
17542 \end_layout
17543
17544 \end_inset
17545
17546 ) or not.
17547  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
17548  editing inside \SpecialChar LyX
17549 .
17550 \end_layout
17551
17552 \begin_layout Description
17553 \begin_inset Flex Code
17554 status collapsed
17555
17556 \begin_layout Plain Layout
17557 NextNoIndent
17558 \end_layout
17559
17560 \end_inset
17561
17562  [
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567
17568 \emph on
17569 0
17570 \end_layout
17571
17572 \end_inset
17573
17574 ,
17575 \begin_inset space \thinspace{}
17576 \end_inset
17577
17578
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 1
17584 \end_layout
17585
17586 \end_inset
17587
17588 ] If set to true,
17589  and if 
17590 \begin_inset Flex Code
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594 DefaultStyle
17595 \end_layout
17596
17597 \end_inset
17598
17599  (usually 
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604 Standard
17605 \end_layout
17606
17607 \end_inset
17608
17609 ) paragraphs are being indented,
17610  then the indentation of such a paragraph following one of this type will be suppressed.
17611  (So this will not affect the display of non-default paragraphs.)
17612 \end_layout
17613
17614 \begin_layout Description
17615 \begin_inset Flex Code
17616 status collapsed
17617
17618 \begin_layout Plain Layout
17619 ObsoletedBy
17620 \end_layout
17621
17622 \end_inset
17623
17624  [
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 <name>
17630 \end_layout
17631
17632 \end_inset
17633
17634 ] Name of a style that has replaced this style.
17635  This is used to rename a style,
17636  while keeping backward compatibility.
17637 \end_layout
17638
17639 \begin_layout Description
17640 \begin_inset Flex Code
17641 status collapsed
17642
17643 \begin_layout Plain Layout
17644 ParagraphGroup
17645 \end_layout
17646
17647 \end_inset
17648
17649  [
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 0
17655 \end_layout
17656
17657 \end_inset
17658
17659 ,
17660 \begin_inset space \thinspace{}
17661 \end_inset
17662
17663
17664 \begin_inset Flex Code
17665 status collapsed
17666
17667 \begin_layout Plain Layout
17668 1
17669 \end_layout
17670
17671 \end_inset
17672
17673 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
17674  This has the effect that the 
17675 \begin_inset Flex Code
17676 status collapsed
17677
17678 \begin_layout Plain Layout
17679 GuiLabel
17680 \end_layout
17681
17682 \end_inset
17683
17684  is only printed once before such a group.
17685  By default,
17686  this is true for 
17687 \begin_inset Flex Code
17688 status collapsed
17689
17690 \begin_layout Plain Layout
17691 LaTeXType
17692 \end_layout
17693
17694 \end_inset
17695
17696  
17697 \begin_inset Flex Code
17698 status collapsed
17699
17700 \begin_layout Plain Layout
17701 Environment
17702 \end_layout
17703
17704 \end_inset
17705
17706  and 
17707 \begin_inset Flex Code
17708 status collapsed
17709
17710 \begin_layout Plain Layout
17711 Bib_Environment
17712 \end_layout
17713
17714 \end_inset
17715
17716  and false for all other types.
17717 \end_layout
17718
17719 \begin_layout Description
17720 \begin_inset Flex Code
17721 status collapsed
17722
17723 \begin_layout Plain Layout
17724 ParbreakIsNewline
17725 \end_layout
17726
17727 \end_inset
17728
17729  [
17730 \begin_inset Flex Code
17731 status collapsed
17732
17733 \begin_layout Plain Layout
17734
17735 \emph on
17736 0
17737 \end_layout
17738
17739 \end_inset
17740
17741 ,
17742 \begin_inset space \thinspace{}
17743 \end_inset
17744
17745
17746 \begin_inset Flex Code
17747 status collapsed
17748
17749 \begin_layout Plain Layout
17750 1
17751 \end_layout
17752
17753 \end_inset
17754
17755 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17756  output,
17757  but only by a line break;
17758  together with 
17759 \begin_inset Flex Code
17760 status collapsed
17761
17762 \begin_layout Plain Layout
17763 PassThru 1
17764 \end_layout
17765
17766 \end_inset
17767
17768 ,
17769  this allows to emulate a plain text editor (like the ERT inset).
17770 \end_layout
17771
17772 \begin_layout Description
17773 \begin_inset Flex Code
17774 status collapsed
17775
17776 \begin_layout Plain Layout
17777 ParIndent
17778 \end_layout
17779
17780 \end_inset
17781
17782  [
17783 \begin_inset Flex Code
17784 status collapsed
17785
17786 \begin_layout Plain Layout
17787 string=""
17788 \end_layout
17789
17790 \end_inset
17791
17792 ] The indent of the very first line of a paragraph.
17793  The
17794 \begin_inset Newline newline
17795 \end_inset
17796
17797
17798 \begin_inset Flex Code
17799 status collapsed
17800
17801 \begin_layout Plain Layout
17802 Parindent
17803 \end_layout
17804
17805 \end_inset
17806
17807  will be fixed for a certain style.
17808  The exception is the default style,
17809  since the indentation for these paragraphs can be prohibited with 
17810 \begin_inset Flex Code
17811 status collapsed
17812
17813 \begin_layout Plain Layout
17814 NextNoIndent
17815 \end_layout
17816
17817 \end_inset
17818
17819 .
17820  Also,
17821  
17822 \begin_inset Flex Code
17823 status collapsed
17824
17825 \begin_layout Plain Layout
17826 Standard
17827 \end_layout
17828
17829 \end_inset
17830
17831  style paragraphs inside environments use the 
17832 \begin_inset Flex Code
17833 status collapsed
17834
17835 \begin_layout Plain Layout
17836 Parindent
17837 \end_layout
17838
17839 \end_inset
17840
17841  of the environment,
17842  not their native one.
17843  For example,
17844  
17845 \begin_inset Flex Code
17846 status collapsed
17847
17848 \begin_layout Plain Layout
17849 Standard
17850 \end_layout
17851
17852 \end_inset
17853
17854  paragraphs inside an enumeration are not indented.
17855 \end_layout
17856
17857 \begin_layout Description
17858 \begin_inset Flex Code
17859 status collapsed
17860
17861 \begin_layout Plain Layout
17862 ParSep
17863 \end_layout
17864
17865 \end_inset
17866
17867  [
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 float=0
17873 \end_layout
17874
17875 \end_inset
17876
17877 ] The vertical space between two paragraphs of this style.
17878 \end_layout
17879
17880 \begin_layout Description
17881 \begin_inset Flex Code
17882 status collapsed
17883
17884 \begin_layout Plain Layout
17885 Parskip
17886 \end_layout
17887
17888 \end_inset
17889
17890  [
17891 \begin_inset Flex Code
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895 float=0
17896 \end_layout
17897
17898 \end_inset
17899
17900 ] \SpecialChar LyX
17901  allows the user to choose either 
17902 \begin_inset Quotes eld
17903 \end_inset
17904
17905 indent
17906 \begin_inset Quotes erd
17907 \end_inset
17908
17909  or 
17910 \begin_inset Quotes eld
17911 \end_inset
17912
17913 skip
17914 \begin_inset Quotes erd
17915 \end_inset
17916
17917  to separate paragraphs.
17918  When 
17919 \begin_inset Quotes eld
17920 \end_inset
17921
17922 indent
17923 \begin_inset Quotes erd
17924 \end_inset
17925
17926  is chosen,
17927  
17928 \begin_inset Flex Code
17929 status collapsed
17930
17931 \begin_layout Plain Layout
17932 Parskip
17933 \end_layout
17934
17935 \end_inset
17936
17937  is ignored.
17938  When 
17939 \begin_inset Quotes eld
17940 \end_inset
17941
17942 skip
17943 \begin_inset Quotes erd
17944 \end_inset
17945
17946  is chosen,
17947  
17948 \begin_inset Flex Code
17949 status collapsed
17950
17951 \begin_layout Plain Layout
17952 ParIndent
17953 \end_layout
17954
17955 \end_inset
17956
17957  is ignored and all paragraphs are separated by the 
17958 \begin_inset Flex Code
17959 status collapsed
17960
17961 \begin_layout Plain Layout
17962 Parskip
17963 \end_layout
17964
17965 \end_inset
17966
17967  argument.
17968  The vertical space is calculated with 
17969 \begin_inset Flex Code
17970 status collapsed
17971
17972 \begin_layout Plain Layout
17973 Parskip
17974 \begin_inset space ~
17975 \end_inset
17976
17977 * DefaultHeight
17978 \end_layout
17979
17980 \end_inset
17981
17982  where 
17983 \begin_inset Flex Code
17984 status collapsed
17985
17986 \begin_layout Plain Layout
17987 DefaultHeight
17988 \end_layout
17989
17990 \end_inset
17991
17992  is the height of a row with the normal font.
17993  This way,
17994  the look stays the same with different screen fonts.
17995 \end_layout
17996
17997 \begin_layout Description
17998 \begin_inset Flex Code
17999 status collapsed
18000
18001 \begin_layout Plain Layout
18002 PassThru
18003 \end_layout
18004
18005 \end_inset
18006
18007  [
18008 \begin_inset Flex Code
18009 status collapsed
18010
18011 \begin_layout Plain Layout
18012
18013 \emph on
18014 0
18015 \end_layout
18016
18017 \end_inset
18018
18019 ,
18020 \begin_inset space \thinspace{}
18021 \end_inset
18022
18023
18024 \begin_inset Flex Code
18025 status collapsed
18026
18027 \begin_layout Plain Layout
18028 1
18029 \end_layout
18030
18031 \end_inset
18032
18033 ] Whether the contents of this paragraph should be output in raw form,
18034  meaning without special translations that \SpecialChar LaTeX
18035  would require.
18036 \end_layout
18037
18038 \begin_layout Description
18039 \begin_inset Flex Code
18040 status collapsed
18041
18042 \begin_layout Plain Layout
18043 PassThruChars
18044 \end_layout
18045
18046 \end_inset
18047
18048  [
18049 \begin_inset Flex Code
18050 status collapsed
18051
18052 \begin_layout Plain Layout
18053 string
18054 \end_layout
18055
18056 \end_inset
18057
18058 ]
18059 \family typewriter
18060  
18061 \family default
18062 Defines individual characters that should be output in raw form,
18063  meaning without special translations that \SpecialChar LaTeX
18064  would require.
18065 \end_layout
18066
18067 \begin_layout Description
18068 \begin_inset Flex Code
18069 status collapsed
18070
18071 \begin_layout Plain Layout
18072 Preamble
18073 \end_layout
18074
18075 \end_inset
18076
18077  Information to be included in the \SpecialChar LaTeX
18078  preamble when this style is used.
18079  Used to define macros,
18080  load packages,
18081  etc.,
18082  required by this particular style.
18083  Must end with 
18084 \begin_inset Quotes eld
18085 \end_inset
18086
18087
18088 \begin_inset Flex Code
18089 status collapsed
18090
18091 \begin_layout Plain Layout
18092 EndPreamble
18093 \end_layout
18094
18095 \end_inset
18096
18097
18098 \begin_inset Quotes erd
18099 \end_inset
18100
18101 .
18102 \end_layout
18103
18104 \begin_layout Description
18105 \begin_inset Flex Code
18106 status collapsed
18107
18108 \begin_layout Plain Layout
18109 RefPrefix
18110 \end_layout
18111
18112 \end_inset
18113
18114  [
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119 string
18120 \end_layout
18121
18122 \end_inset
18123
18124 ] The prefix to use when creating labels referring to paragraphs of this type.
18125  This allows the use of formatted references.
18126 \end_layout
18127
18128 \begin_layout Description
18129 \begin_inset Flex Code
18130 status collapsed
18131
18132 \begin_layout Plain Layout
18133 Requires 
18134 \end_layout
18135
18136 \end_inset
18137
18138  [
18139 \begin_inset Flex Code
18140 status collapsed
18141
18142 \begin_layout Plain Layout
18143 string
18144 \end_layout
18145
18146 \end_inset
18147
18148 ] Whether the style requires the feature 
18149 \begin_inset Flex Code
18150 status collapsed
18151
18152 \begin_layout Plain Layout
18153 string
18154 \end_layout
18155
18156 \end_inset
18157
18158  (see 
18159 \begin_inset CommandInset ref
18160 LatexCommand ref
18161 reference "chap:List-of-functions"
18162 nolink "false"
18163
18164 \end_inset
18165
18166  for the list of features).
18167  If you require a package with specific options,
18168  you can additionally use 
18169 \begin_inset Flex Code
18170 status collapsed
18171
18172 \begin_layout Plain Layout
18173 PackageOptions
18174 \end_layout
18175
18176 \end_inset
18177
18178  as a general text class parameter (see 
18179 \begin_inset CommandInset ref
18180 LatexCommand ref
18181 reference "subsec:General-text-class"
18182 nolink "false"
18183
18184 \end_inset
18185
18186 ).
18187 \end_layout
18188
18189 \begin_layout Description
18190 \begin_inset Flex Code
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 ResetArgs
18195 \end_layout
18196
18197 \end_inset
18198
18199  [
18200 \begin_inset Flex Code
18201 status collapsed
18202
18203 \begin_layout Plain Layout
18204
18205 \emph on
18206 0
18207 \end_layout
18208
18209 \end_inset
18210
18211 ,
18212 \begin_inset Flex Code
18213 status collapsed
18214
18215 \begin_layout Plain Layout
18216 1
18217 \end_layout
18218
18219 \end_inset
18220
18221 ] Resets the \SpecialChar LaTeX
18222  arguments of this style (as defined via the 
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 Argument
18228 \end_layout
18229
18230 \end_inset
18231
18232  tag).
18233  This is useful if you have copied a style via 
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 CopyStyle
18239 \end_layout
18240
18241 \end_inset
18242
18243 ,
18244  but you do not want to inherit its (required and optional) arguments.
18245 \end_layout
18246
18247 \begin_layout Description
18248 \begin_inset Flex Code
18249 status collapsed
18250
18251 \begin_layout Plain Layout
18252 ResumeCounter
18253 \end_layout
18254
18255 \end_inset
18256
18257  [
18258 \begin_inset Flex Code
18259 status collapsed
18260
18261 \begin_layout Plain Layout
18262
18263 \emph on
18264 0
18265 \end_layout
18266
18267 \end_inset
18268
18269 ,
18270 \begin_inset Flex Code
18271 status collapsed
18272
18273 \begin_layout Plain Layout
18274 1
18275 \end_layout
18276
18277 \end_inset
18278
18279 ] Resumes a counter that is usually reset at each new sequence of layouts.
18280  This is currently only useful when 
18281 \begin_inset Flex Code
18282 status collapsed
18283
18284 \begin_layout Plain Layout
18285 LabelType
18286 \end_layout
18287
18288 \end_inset
18289
18290  is 
18291 \begin_inset Flex Code
18292 status collapsed
18293
18294 \begin_layout Plain Layout
18295 Enumerate
18296 \end_layout
18297
18298 \end_inset
18299
18300 .
18301 \end_layout
18302
18303 \begin_layout Description
18304 \begin_inset Flex Code
18305 status collapsed
18306
18307 \begin_layout Plain Layout
18308 RightDelim
18309 \end_layout
18310
18311 \end_inset
18312
18313  [
18314 \begin_inset Flex Code
18315 status collapsed
18316
18317 \begin_layout Plain Layout
18318 string
18319 \end_layout
18320
18321 \end_inset
18322
18323 ] A string that is put at the end of the layout content.
18324  A line break in the output can be indicated by 
18325 \begin_inset Flex Code
18326 status collapsed
18327
18328 \begin_layout Plain Layout
18329 <br/>
18330 \end_layout
18331
18332 \end_inset
18333
18334 .
18335 \end_layout
18336
18337 \begin_layout Description
18338 \begin_inset Flex Code
18339 status collapsed
18340
18341 \begin_layout Plain Layout
18342 RightMargin
18343 \end_layout
18344
18345 \end_inset
18346
18347  [
18348 \begin_inset Flex Code
18349 status collapsed
18350
18351 \begin_layout Plain Layout
18352 string=""
18353 \end_layout
18354
18355 \end_inset
18356
18357 ] Similar to 
18358 \begin_inset Flex Code
18359 status collapsed
18360
18361 \begin_layout Plain Layout
18362 LeftMargin
18363 \end_layout
18364
18365 \end_inset
18366
18367 .
18368 \end_layout
18369
18370 \begin_layout Description
18371 \begin_inset Flex Code
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375 Spacing
18376 \end_layout
18377
18378 \end_inset
18379
18380  [
18381 \begin_inset Flex Code
18382 status collapsed
18383
18384 \begin_layout Plain Layout
18385
18386 \emph on
18387 single
18388 \end_layout
18389
18390 \end_inset
18391
18392 ,
18393  
18394 \begin_inset Flex Code
18395 status collapsed
18396
18397 \begin_layout Plain Layout
18398 onehalf
18399 \end_layout
18400
18401 \end_inset
18402
18403 ,
18404  
18405 \begin_inset Flex Code
18406 status collapsed
18407
18408 \begin_layout Plain Layout
18409 double
18410 \end_layout
18411
18412 \end_inset
18413
18414 ,
18415  
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 other
18421 \begin_inset space ~
18422 \end_inset
18423
18424 <value>
18425 \end_layout
18426
18427 \end_inset
18428
18429 ] This defines what the default spacing should be in the style.
18430  The arguments 
18431 \begin_inset Flex Code
18432 status collapsed
18433
18434 \begin_layout Plain Layout
18435 single
18436 \end_layout
18437
18438 \end_inset
18439
18440 ,
18441  
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 onehalf
18447 \end_layout
18448
18449 \end_inset
18450
18451  and 
18452 \begin_inset Flex Code
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456 double
18457 \end_layout
18458
18459 \end_inset
18460
18461  correspond respectively to a multiplier value of 1,
18462  1.25 and 1.667.
18463  If you specify the argument 
18464 \begin_inset Flex Code
18465 status collapsed
18466
18467 \begin_layout Plain Layout
18468 other
18469 \end_layout
18470
18471 \end_inset
18472
18473 ,
18474  then you must also provide a value argument which will be the actual multiplier value.
18475  Note that,
18476  contrary to other parameters,
18477  
18478 \begin_inset Flex Code
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 Spacing
18483 \end_layout
18484
18485 \end_inset
18486
18487  implies the generation of specific \SpecialChar LaTeX
18488  code,
18489  using the \SpecialChar LaTeX
18490  package 
18491 \family roman
18492
18493 \begin_inset Flex Code
18494 status collapsed
18495
18496 \begin_layout Plain Layout
18497 setspace
18498 \end_layout
18499
18500 \end_inset
18501
18502 .
18503 \end_layout
18504
18505 \begin_layout Description
18506 \begin_inset Flex Code
18507 status collapsed
18508
18509 \begin_layout Plain Layout
18510 Spellcheck
18511 \end_layout
18512
18513 \end_inset
18514
18515  [
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 0
18521 \end_layout
18522
18523 \end_inset
18524
18525 ,
18526 \begin_inset space \thinspace{}
18527 \end_inset
18528
18529
18530 \begin_inset Flex Code
18531 status collapsed
18532
18533 \begin_layout Plain Layout
18534
18535 \emph on
18536 1
18537 \end_layout
18538
18539 \end_inset
18540
18541 ] Allow spell-checking paragraphs of this style.
18542  Default is true.
18543 \end_layout
18544
18545 \begin_layout Description
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550 Step
18551 \change_deleted 731793113 1604355211
18552 Master
18553 \change_inserted 731793113 1604355212
18554 Parent
18555 \change_unchanged
18556 Counter
18557 \end_layout
18558
18559 \end_inset
18560
18561  [
18562 \begin_inset Flex Code
18563 status collapsed
18564
18565 \begin_layout Plain Layout
18566
18567 \emph on
18568 0
18569 \end_layout
18570
18571 \end_inset
18572
18573 ,
18574 \begin_inset Flex Code
18575 status collapsed
18576
18577 \begin_layout Plain Layout
18578 1
18579 \end_layout
18580
18581 \end_inset
18582
18583 ] Steps the 
18584 \change_deleted 731793113 1604355214
18585 master
18586 \change_inserted 731793113 1604355216
18587 parent
18588 \change_unchanged
18589  counter of a given counter at the beginning of a new sequence of layouts.
18590  This is currently only useful when 
18591 \begin_inset Flex Code
18592 status collapsed
18593
18594 \begin_layout Plain Layout
18595 LabelType
18596 \end_layout
18597
18598 \end_inset
18599
18600  is 
18601 \begin_inset Flex Code
18602 status collapsed
18603
18604 \begin_layout Plain Layout
18605 Enumerate
18606 \end_layout
18607
18608 \end_inset
18609
18610 .
18611 \end_layout
18612
18613 \begin_layout Description
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 TextFont
18619 \end_layout
18620
18621 \end_inset
18622
18623  The font used for the text body .
18624  See 
18625 \begin_inset CommandInset ref
18626 LatexCommand ref
18627 reference "subsec:Font-description"
18628 nolink "false"
18629
18630 \end_inset
18631
18632 .
18633 \end_layout
18634
18635 \begin_layout Description
18636 \begin_inset Flex Code
18637 status collapsed
18638
18639 \begin_layout Plain Layout
18640 TocLevel
18641 \end_layout
18642
18643 \end_inset
18644
18645
18646 \series medium
18647  [
18648 \begin_inset Flex Code
18649 status collapsed
18650
18651 \begin_layout Plain Layout
18652
18653 \series medium
18654 int=3
18655 \end_layout
18656
18657 \end_inset
18658
18659 ]
18660 \series default
18661  The level of the style in the table of contents.
18662  This is used for automatic numbering of section headings.
18663 \end_layout
18664
18665 \begin_layout Description
18666 \begin_inset Flex Code
18667 status collapsed
18668
18669 \begin_layout Plain Layout
18670 ToggleIndent
18671 \end_layout
18672
18673 \end_inset
18674
18675  [
18676 \emph on
18677
18678 \begin_inset Flex Code
18679 status collapsed
18680
18681 \begin_layout Plain Layout
18682
18683 \emph on
18684 default
18685 \end_layout
18686
18687 \end_inset
18688
18689
18690 \emph default
18691 ,
18692  
18693 \begin_inset Flex Code
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697 always
18698 \end_layout
18699
18700 \end_inset
18701
18702 ,
18703  
18704 \begin_inset Flex Code
18705 status collapsed
18706
18707 \begin_layout Plain Layout
18708 never
18709 \end_layout
18710
18711 \end_inset
18712
18713 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
18714  If 
18715 \emph on
18716
18717 \begin_inset Flex Code
18718 status collapsed
18719
18720 \begin_layout Plain Layout
18721
18722 \emph off
18723 default
18724 \end_layout
18725
18726 \end_inset
18727
18728
18729 \emph default
18730  is set,
18731  indentation can be toggled if the document settings use 
18732 \begin_inset Quotes eld
18733 \end_inset
18734
18735 indent
18736 \begin_inset Quotes erd
18737 \end_inset
18738
18739  paragraph style,
18740  with 
18741 \begin_inset Flex Code
18742 status collapsed
18743
18744 \begin_layout Plain Layout
18745 always
18746 \end_layout
18747
18748 \end_inset
18749
18750 ,
18751  indentation can always be toggled,
18752  notwithstanding the document settings,
18753  with 
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758 never
18759 \end_layout
18760
18761 \end_inset
18762
18763 ,
18764  indentation can never be toggled.
18765 \end_layout
18766
18767 \begin_layout Description
18768 \begin_inset Flex Code
18769 status collapsed
18770
18771 \begin_layout Plain Layout
18772 TopSep
18773 \end_layout
18774
18775 \end_inset
18776
18777  [
18778 \begin_inset Flex Code
18779 status collapsed
18780
18781 \begin_layout Plain Layout
18782 float=0
18783 \end_layout
18784
18785 \end_inset
18786
18787 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
18788  If the previous paragraph has another style,
18789  the separations are not simply added,
18790  but the maximum is taken.
18791 \end_layout
18792
18793 \begin_layout Subsection
18794 \begin_inset CommandInset label
18795 LatexCommand label
18796 name "subsec:I18n"
18797
18798 \end_inset
18799
18800 Internationalization of Paragraph Styles
18801 \end_layout
18802
18803 \begin_layout Standard
18804 \SpecialChar LyX
18805  has long supported internationalization of layout information,
18806  but,
18807  until version 2.0,
18808  this applied only to the user interface and not to,
18809  say,
18810  PDF output.
18811  Thus,
18812  French authors were forced to resort to ugly hacks if they wanted `
18813 \lang french
18814 Théorème
18815 \lang english
18816  1' instead of `Theorem 1'.
18817  Thanks to Georg Baum,
18818  that is no longer the case.
18819 \end_layout
18820
18821 \begin_layout Standard
18822 If a 
18823 \begin_inset Flex Code
18824 status collapsed
18825
18826 \begin_layout Plain Layout
18827 Style
18828 \end_layout
18829
18830 \end_inset
18831
18832  defines text that is to appear in the typeset document,
18833  it may use 
18834 \begin_inset Flex Code
18835 status collapsed
18836
18837 \begin_layout Plain Layout
18838 LangPreamble
18839 \end_layout
18840
18841 \end_inset
18842
18843  and 
18844 \begin_inset Flex Code
18845 status collapsed
18846
18847 \begin_layout Plain Layout
18848 BabelPreamble
18849 \end_layout
18850
18851 \end_inset
18852
18853  to support non-English and even multi-language documents correctly.
18854  The following excerpt (from the 
18855 \begin_inset Flex Code
18856 status collapsed
18857
18858 \begin_layout Plain Layout
18859 theorems-ams.inc
18860 \end_layout
18861
18862 \end_inset
18863
18864  file) shows how this works:
18865 \end_layout
18866
18867 \begin_layout LyX-Code
18868 Preamble
18869 \end_layout
18870
18871 \begin_deeper
18872 \begin_layout LyX-Code
18873   
18874 \backslash
18875 theoremstyle{remark}
18876 \end_layout
18877
18878 \begin_layout LyX-Code
18879   
18880 \backslash
18881 newtheorem{claim}[thm]{
18882 \backslash
18883 protect
18884 \backslash
18885 claimname}
18886 \end_layout
18887
18888 \begin_layout LyX-Code
18889 EndPreamble
18890 \end_layout
18891
18892 \begin_layout LyX-Code
18893 LangPreamble
18894 \end_layout
18895
18896 \begin_layout LyX-Code
18897   
18898 \backslash
18899 providecommand{
18900 \backslash
18901 claimname}{_(Claim)}
18902 \end_layout
18903
18904 \begin_layout LyX-Code
18905 EndLangPreamble
18906 \end_layout
18907
18908 \begin_layout LyX-Code
18909 BabelPreamble
18910 \end_layout
18911
18912 \begin_layout LyX-Code
18913     
18914 \backslash
18915 addto
18916 \backslash
18917 captions$$lang{
18918 \backslash
18919 renewcommand{
18920 \backslash
18921 claimname}{_(Claim)}}
18922 \end_layout
18923
18924 \begin_layout LyX-Code
18925 EndBabelPreamble
18926 \end_layout
18927
18928 \end_deeper
18929 \begin_layout Standard
18930 In principle,
18931  any legal \SpecialChar LaTeX
18932  may appear in the 
18933 \begin_inset Flex Code
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937 LangPreamble
18938 \end_layout
18939
18940 \end_inset
18941
18942  and 
18943 \begin_inset Flex Code
18944 status collapsed
18945
18946 \begin_layout Plain Layout
18947 BabelPreamble
18948 \end_layout
18949
18950 \end_inset
18951
18952  tags,
18953  but in practice they will typically look as they do here.
18954  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
18955  command 
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960
18961 \backslash
18962 claimname
18963 \end_layout
18964
18965 \end_inset
18966
18967  and its use in 
18968 \begin_inset Flex Code
18969 status collapsed
18970
18971 \begin_layout Plain Layout
18972
18973 \backslash
18974 newtheorem
18975 \end_layout
18976
18977 \end_inset
18978
18979 .
18980  
18981 \end_layout
18982
18983 \begin_layout Standard
18984 The 
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 LangPreamble
18990 \end_layout
18991
18992 \end_inset
18993
18994  tag provides for internationalization based upon the overall language of the document.
18995  The contents of the tag will be included in the preamble,
18996  just as with the 
18997 \begin_inset Flex Code
18998 status collapsed
18999
19000 \begin_layout Plain Layout
19001 Preamble
19002 \end_layout
19003
19004 \end_inset
19005
19006  tag.
19007  What makes it special is the use of the 
19008 \begin_inset Quotes eld
19009 \end_inset
19010
19011 function
19012 \begin_inset Quotes erd
19013 \end_inset
19014
19015  
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 _()
19021 \end_layout
19022
19023 \end_inset
19024
19025 ,
19026  which will be replaced,
19027  when \SpecialChar LyX
19028  produces \SpecialChar LaTeX
19029  output,
19030  with the translation of its argument into the document language.
19031 \end_layout
19032
19033 \begin_layout Standard
19034 The 
19035 \begin_inset Flex Code
19036 status collapsed
19037
19038 \begin_layout Plain Layout
19039 BabelPreamble
19040 \end_layout
19041
19042 \end_inset
19043
19044  tag is more complex,
19045  since it is meant to provide support for multi-language documents and so offers an interface to the 
19046 \begin_inset Flex Code
19047 status collapsed
19048
19049 \begin_layout Plain Layout
19050 babel
19051 \end_layout
19052
19053 \end_inset
19054
19055  package.
19056  Its contents will be added to the preamble once for each language that appears in the document.
19057  In this case,
19058  the argument to 
19059 \begin_inset Flex Code
19060 status collapsed
19061
19062 \begin_layout Plain Layout
19063 _()
19064 \end_layout
19065
19066 \end_inset
19067
19068  will be replaced with its translation into the language in question;
19069  the expression 
19070 \begin_inset Flex Code
19071 status collapsed
19072
19073 \begin_layout Plain Layout
19074 $$lang
19075 \end_layout
19076
19077 \end_inset
19078
19079  is replaced by the language name (as used by the babel package).
19080 \end_layout
19081
19082 \begin_layout Standard
19083 A German document that also included a French section would thus have the following in the preamble:
19084 \end_layout
19085
19086 \begin_layout LyX-Code
19087
19088 \backslash
19089 addto
19090 \backslash
19091 captionsfrench{
19092 \backslash
19093 renewcommand{
19094 \backslash
19095 claimname}{Affirmation}}
19096 \begin_inset Newline newline
19097 \end_inset
19098
19099
19100 \backslash
19101 addto
19102 \backslash
19103 captionsngerman{
19104 \backslash
19105 renewcommand{
19106 \backslash
19107 claimname}{Behauptung}}
19108 \begin_inset Newline newline
19109 \end_inset
19110
19111
19112 \backslash
19113 providecommand{
19114 \backslash
19115 claimname}{Behauptung}
19116 \end_layout
19117
19118 \begin_layout Standard
19119 \SpecialChar LaTeX
19120  and 
19121 \begin_inset Flex Code
19122 status collapsed
19123
19124 \begin_layout Plain Layout
19125 babel
19126 \end_layout
19127
19128 \end_inset
19129
19130  will then conspire to produce the correct text in the output.
19131 \end_layout
19132
19133 \begin_layout Standard
19134 One important point to note here is that the translations are provided by \SpecialChar LyX
19135  itself,
19136  through the file 
19137 \begin_inset Flex Code
19138 status collapsed
19139
19140 \begin_layout Plain Layout
19141 layouttranslations
19142 \end_layout
19143
19144 \end_inset
19145
19146 .
19147  This means,
19148  in effect,
19149  that 
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 LangPreamble
19155 \end_layout
19156
19157 \end_inset
19158
19159  and 
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 BabelPreamble
19165 \end_layout
19166
19167 \end_inset
19168
19169  are really only of use in layout files that are provided with \SpecialChar LyX
19170 ,
19171  since text entered in user-created layout files will not be seen by \SpecialChar LyX
19172 's internationalization routines unless the 
19173 \begin_inset Flex Code
19174 status collapsed
19175
19176 \begin_layout Plain Layout
19177 layouttranslations
19178 \end_layout
19179
19180 \end_inset
19181
19182  file is modified accordingly.
19183  That said,
19184  however,
19185  any layout created with the intention that it will be included with \SpecialChar LyX
19186  should use these tags where appropriate.
19187  Please note that the paragraph style translations provided by \SpecialChar LyX
19188  will never change with a minor update (e.
19189 \begin_inset space \thinspace{}
19190 \end_inset
19191
19192 g.
19193 \begin_inset space \space{}
19194 \end_inset
19195
19196 from version 2.1.x to 2.1.y).
19197  It is however quite likely that a major update (e.
19198 \begin_inset space \thinspace{}
19199 \end_inset
19200
19201 g.
19202 \begin_inset space \space{}
19203 \end_inset
19204
19205 from 2.0.x to 2.1.0) will introduce new translations or corrections.
19206 \end_layout
19207
19208 \begin_layout Subsection
19209 Floats
19210 \begin_inset CommandInset label
19211 LatexCommand label
19212 name "subsec:Floats"
19213
19214 \end_inset
19215
19216
19217 \end_layout
19218
19219 \begin_layout Standard
19220 It is necessary to define the floats (
19221 \begin_inset Flex Noun
19222 status collapsed
19223
19224 \begin_layout Plain Layout
19225 figure
19226 \end_layout
19227
19228 \end_inset
19229
19230 ,
19231  
19232 \begin_inset Flex Noun
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 table
19237 \end_layout
19238
19239 \end_inset
19240
19241 ,
19242  \SpecialChar ldots
19243 ) in the text class itself.
19244  Standard floats are included in the file 
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 stdfloats.inc
19250 \end_layout
19251
19252 \end_inset
19253
19254 ,
19255  so you may have to do no more than add
19256 \end_layout
19257
19258 \begin_layout LyX-Code
19259 Input stdfloats.inc
19260 \end_layout
19261
19262 \begin_layout Standard
19263 to your layout file.
19264  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
19265 ),
19266  the information below will hopefully help you:
19267 \end_layout
19268
19269 \begin_layout Description
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 AllowedPlacement
19275 \end_layout
19276
19277 \end_inset
19278
19279  [
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284 string
19285 \end_layout
19286
19287 \end_inset
19288
19289 =!htbpH] Allowed placement options for this float type.
19290  The value is a string of placement characters.
19291  Possible characters include:
19292  
19293 \emph on
19294 h
19295 \emph default
19296  (
19297 \begin_inset Quotes eld
19298 \end_inset
19299
19300 here if possible
19301 \begin_inset Quotes erd
19302 \end_inset
19303
19304 ),
19305  
19306 \emph on
19307 t
19308 \emph default
19309  (
19310 \begin_inset Quotes eld
19311 \end_inset
19312
19313 top of page
19314 \begin_inset Quotes erd
19315 \end_inset
19316
19317 ),
19318  
19319 \emph on
19320 b
19321 \emph default
19322  (
19323 \begin_inset Quotes eld
19324 \end_inset
19325
19326 bottom of page
19327 \begin_inset Quotes erd
19328 \end_inset
19329
19330 ),
19331  
19332 \emph on
19333 p
19334 \emph default
19335  (
19336 \begin_inset Quotes eld
19337 \end_inset
19338
19339 page of floats
19340 \begin_inset Quotes erd
19341 \end_inset
19342
19343 ),
19344  
19345 \emph on
19346 H
19347 \emph default
19348  (
19349 \begin_inset Quotes eld
19350 \end_inset
19351
19352 here definitely
19353 \begin_inset Quotes erd
19354 \end_inset
19355
19356 ) and 
19357 \emph on
19358 !
19359
19360 \emph default
19361  (
19362 \begin_inset Quotes eld
19363 \end_inset
19364
19365 ignore LaTeX rules
19366 \begin_inset Quotes erd
19367 \end_inset
19368
19369 ).
19370  The order of the characters in the string does not matter.
19371  If no placement options are allowed,
19372  use the string 
19373 \emph on
19374 none
19375 \emph default
19376 .
19377 \end_layout
19378
19379 \begin_layout Description
19380 \begin_inset Flex Code
19381 status collapsed
19382
19383 \begin_layout Plain Layout
19384 AllowsSideways
19385 \end_layout
19386
19387 \end_inset
19388
19389  [
19390 \begin_inset Flex Code
19391 status collapsed
19392
19393 \begin_layout Plain Layout
19394
19395 \emph off
19396 0
19397 \end_layout
19398
19399 \end_inset
19400
19401 ,
19402 \begin_inset space \thinspace{}
19403 \end_inset
19404
19405
19406 \emph on
19407
19408 \begin_inset Flex Code
19409 status collapsed
19410
19411 \begin_layout Plain Layout
19412
19413 \emph on
19414 1
19415 \end_layout
19416
19417 \end_inset
19418
19419
19420 \emph default
19421 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
19422 -package 
19423 \family typewriter
19424 rotfloat
19425 \family default
19426  (sidewaysfloat).
19427  Set to 
19428 \begin_inset Flex Code
19429 status collapsed
19430
19431 \begin_layout Plain Layout
19432 0
19433 \end_layout
19434
19435 \end_inset
19436
19437  if the float does not support this feature.
19438 \end_layout
19439
19440 \begin_layout Description
19441 \begin_inset Flex Code
19442 status collapsed
19443
19444 \begin_layout Plain Layout
19445 AllowsWide
19446 \end_layout
19447
19448 \end_inset
19449
19450  [
19451 \begin_inset Flex Code
19452 status collapsed
19453
19454 \begin_layout Plain Layout
19455
19456 \emph off
19457 0
19458 \end_layout
19459
19460 \end_inset
19461
19462 ,
19463 \begin_inset space \thinspace{}
19464 \end_inset
19465
19466
19467 \emph on
19468
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473
19474 \emph on
19475 1
19476 \end_layout
19477
19478 \end_inset
19479
19480
19481 \emph default
19482 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
19483  Set to 
19484 \begin_inset Flex Code
19485 status collapsed
19486
19487 \begin_layout Plain Layout
19488 0
19489 \end_layout
19490
19491 \end_inset
19492
19493  if the float does not support this feature.
19494 \end_layout
19495
19496 \begin_layout Description
19497 \begin_inset Flex Code
19498 status collapsed
19499
19500 \begin_layout Plain Layout
19501 Extension
19502 \end_layout
19503
19504 \end_inset
19505
19506  [
19507 \begin_inset Flex Code
19508 status collapsed
19509
19510 \begin_layout Plain Layout
19511 string
19512 \end_layout
19513
19514 \end_inset
19515
19516 =
19517 \begin_inset Quotes erd
19518 \end_inset
19519
19520
19521 \begin_inset Quotes erd
19522 \end_inset
19523
19524 ] The file name extension of an auxiliary file for the list of figures (or whatever).
19525  \SpecialChar LaTeX
19526  writes the captions to this file.
19527 \end_layout
19528
19529 \begin_layout Description
19530 \begin_inset Flex Code
19531 status collapsed
19532
19533 \begin_layout Plain Layout
19534 GuiName
19535 \end_layout
19536
19537 \end_inset
19538
19539  [
19540 \begin_inset Flex Code
19541 status collapsed
19542
19543 \begin_layout Plain Layout
19544 string
19545 \end_layout
19546
19547 \end_inset
19548
19549 =
19550 \begin_inset Quotes erd
19551 \end_inset
19552
19553
19554 \begin_inset Quotes erd
19555 \end_inset
19556
19557 ] The string that will be used in the menus and also for the caption.
19558  This is translated to the current language if babel is used.
19559 \end_layout
19560
19561 \begin_layout Description
19562 \begin_inset Flex Code
19563 status collapsed
19564
19565 \begin_layout Plain Layout
19566 HTML*
19567 \end_layout
19568
19569 \end_inset
19570
19571  These tags control the XHTML output.
19572  See 
19573 \begin_inset CommandInset ref
19574 LatexCommand ref
19575 reference "sec:Tags-for-XHTML"
19576 nolink "false"
19577
19578 \end_inset
19579
19580 .
19581 \end_layout
19582
19583 \begin_layout Description
19584 \begin_inset Flex Code
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588 IsPredefined
19589 \end_layout
19590
19591 \end_inset
19592
19593  [
19594 \emph on
19595
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600 0
19601 \end_layout
19602
19603 \end_inset
19604
19605
19606 \emph default
19607 ,
19608 \begin_inset space \thinspace{}
19609 \end_inset
19610
19611
19612 \begin_inset Flex Code
19613 status collapsed
19614
19615 \begin_layout Plain Layout
19616 1
19617 \end_layout
19618
19619 \end_inset
19620
19621 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
19622  package 
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 float
19628 \end_layout
19629
19630 \end_inset
19631
19632  needs to be loaded to define it on-the-fly.
19633  The default is 
19634 \begin_inset Flex Code
19635 status collapsed
19636
19637 \begin_layout Plain Layout
19638 0
19639 \end_layout
19640
19641 \end_inset
19642
19643 ,
19644  which means:
19645  
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650 float
19651 \end_layout
19652
19653 \end_inset
19654
19655  is used.
19656  It should be set to 
19657 \begin_inset Flex Code
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661 1
19662 \end_layout
19663
19664 \end_inset
19665
19666  if the float is already defined by the \SpecialChar LaTeX
19667  document class.
19668 \end_layout
19669
19670 \begin_layout Description
19671 \begin_inset Flex Code
19672 status collapsed
19673
19674 \begin_layout Plain Layout
19675 ListCommand
19676 \end_layout
19677
19678 \end_inset
19679
19680  [
19681 \begin_inset Flex Code
19682 status collapsed
19683
19684 \begin_layout Plain Layout
19685 string
19686 \end_layout
19687
19688 \end_inset
19689
19690 =
19691 \begin_inset Quotes erd
19692 \end_inset
19693
19694
19695 \begin_inset Quotes erd
19696 \end_inset
19697
19698 ] The command used to generate a list of floats of this type;
19699  the leading `
19700 \backslash
19701 ' must be omitted.
19702  This 
19703 \emph on
19704 must
19705 \emph default
19706  be given if 
19707 \begin_inset Flex Code
19708 status collapsed
19709
19710 \begin_layout Plain Layout
19711 UsesFloatPkg
19712 \end_layout
19713
19714 \end_inset
19715
19716  is false,
19717  since there is no standard way to generate this command.
19718  It is ignored if 
19719 \begin_inset Flex Code
19720 status collapsed
19721
19722 \begin_layout Plain Layout
19723 UsesFloatPkg
19724 \end_layout
19725
19726 \end_inset
19727
19728  is true,
19729  since in that case there is a standard way to define the command.
19730 \end_layout
19731
19732 \begin_layout Description
19733 \begin_inset Flex Code
19734 status collapsed
19735
19736 \begin_layout Plain Layout
19737 ListName
19738 \end_layout
19739
19740 \end_inset
19741
19742  [
19743 \begin_inset Flex Code
19744 status collapsed
19745
19746 \begin_layout Plain Layout
19747 string
19748 \end_layout
19749
19750 \end_inset
19751
19752 =
19753 \begin_inset Quotes erd
19754 \end_inset
19755
19756
19757 \begin_inset Quotes erd
19758 \end_inset
19759
19760 ] A title for a list of floats of this kind (list of figures,
19761  tables,
19762  or whatever).
19763  It is used for the screen label within \SpecialChar LyX
19764 ,
19765  it is used by \SpecialChar LaTeX
19766  for the title and it is used as the title in the XHTML output.
19767  It will be translated to the document language.
19768 \end_layout
19769
19770 \begin_layout Description
19771 \begin_inset Flex Code
19772 status collapsed
19773
19774 \begin_layout Plain Layout
19775 NumberWithin
19776 \end_layout
19777
19778 \end_inset
19779
19780  [
19781 \begin_inset Flex Code
19782 status collapsed
19783
19784 \begin_layout Plain Layout
19785 string
19786 \end_layout
19787
19788 \end_inset
19789
19790 =
19791 \begin_inset Quotes erd
19792 \end_inset
19793
19794
19795 \begin_inset Quotes erd
19796 \end_inset
19797
19798 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
19799  For example,
19800  if 
19801 \begin_inset Flex Code
19802 status collapsed
19803
19804 \begin_layout Plain Layout
19805 NumberWithin
19806 \end_layout
19807
19808 \end_inset
19809
19810  is set to 
19811 \begin_inset Quotes eld
19812 \end_inset
19813
19814
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 chapter
19820 \end_layout
19821
19822 \end_inset
19823
19824
19825 \begin_inset Quotes erd
19826 \end_inset
19827
19828 ,
19829  the floats will be numbered within chapters.
19830  
19831 \end_layout
19832
19833 \begin_layout Description
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 Placement
19839 \end_layout
19840
19841 \end_inset
19842
19843  [
19844 \begin_inset Flex Code
19845 status collapsed
19846
19847 \begin_layout Plain Layout
19848 string
19849 \end_layout
19850
19851 \end_inset
19852
19853 =
19854 \begin_inset Quotes erd
19855 \end_inset
19856
19857
19858 \begin_inset Quotes erd
19859 \end_inset
19860
19861 ] The default placement for the given class of floats.
19862  The string should be as in standard \SpecialChar LaTeX
19863 :
19864  
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869 t
19870 \end_layout
19871
19872 \end_inset
19873
19874 ,
19875  
19876 \begin_inset Flex Code
19877 status collapsed
19878
19879 \begin_layout Plain Layout
19880 b
19881 \end_layout
19882
19883 \end_inset
19884
19885 ,
19886  
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 p
19892 \end_layout
19893
19894 \end_inset
19895
19896  and 
19897 \begin_inset Flex Code
19898 status collapsed
19899
19900 \begin_layout Plain Layout
19901 h
19902 \end_layout
19903
19904 \end_inset
19905
19906  for top,
19907  bottom,
19908  page,
19909  and here,
19910  respectively.
19911 \begin_inset Foot
19912 status collapsed
19913
19914 \begin_layout Plain Layout
19915 Note that the order of these letters in the string is irrelevant,
19916  like in \SpecialChar LaTeX
19917 .
19918 \end_layout
19919
19920 \end_inset
19921
19922  On top of that there is a new type,
19923  
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 H
19929 \end_layout
19930
19931 \end_inset
19932
19933 ,
19934  which does not really correspond to a float,
19935  since it means:
19936  put it 
19937 \begin_inset Quotes eld
19938 \end_inset
19939
19940 here
19941 \begin_inset Quotes erd
19942 \end_inset
19943
19944  and nowhere else.
19945  Note however that the 
19946 \begin_inset Flex Code
19947 status collapsed
19948
19949 \begin_layout Plain Layout
19950 H
19951 \end_layout
19952
19953 \end_inset
19954
19955  specifier is special and,
19956  because of implementation details,
19957  cannot be used in non-built in float types.
19958  If you do not understand what this means,
19959  just use 
19960 \begin_inset Quotes eld
19961 \end_inset
19962
19963
19964 \begin_inset Flex Code
19965 status collapsed
19966
19967 \begin_layout Plain Layout
19968 tbp
19969 \end_layout
19970
19971 \end_inset
19972
19973
19974 \begin_inset Quotes erd
19975 \end_inset
19976
19977 .
19978 \change_inserted -584632292 1690588297
19979
19980 \end_layout
19981
19982 \begin_layout Description
19983
19984 \change_inserted -584632292 1690593080
19985 \begin_inset Flex Code
19986 status collapsed
19987
19988 \begin_layout Plain Layout
19989
19990 \change_inserted -584632292 1690588298
19991 PrettyFormat
19992 \change_unchanged
19993
19994 \end_layout
19995
19996 \end_inset
19997
19998  [
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003
20004 \change_inserted -584632292 1690588298
20005 string
20006 \change_unchanged
20007
20008 \end_layout
20009
20010 \end_inset
20011
20012 =
20013 \begin_inset Quotes erd
20014 \end_inset
20015
20016
20017 \begin_inset Quotes erd
20018 \end_inset
20019
20020 ] A format for use with formatted references to this counter.
20021  For example,
20022  one might want to have references to tables appear as 
20023 \begin_inset Quotes eld
20024 \end_inset
20025
20026 Table 2
20027 \begin_inset Quotes erd
20028 \end_inset
20029
20030 .
20031  The string may contain 
20032 \begin_inset Quotes eld
20033 \end_inset
20034
20035 ##
20036 \begin_inset Quotes erd
20037 \end_inset
20038
20039  or a counter specification.
20040  (See the documentation for 
20041 \begin_inset Flex Code
20042 status open
20043
20044 \begin_layout Plain Layout
20045
20046 \change_inserted -584632292 1690588298
20047 LabelString
20048 \change_unchanged
20049
20050 \end_layout
20051
20052 \end_inset
20053
20054  in 
20055 \begin_inset CommandInset ref
20056 LatexCommand formatted
20057 reference "subsec:Counters"
20058 plural "false"
20059 caps "false"
20060 noprefix "false"
20061 nolink "false"
20062
20063 \end_inset
20064
20065 .) The former will be replaced by the counter number itself.
20066  So,
20067  for sections,
20068  it would be:
20069  Section ##,
20070  or perhaps:
20071  section 
20072 \backslash
20073 arabic{section} (which might render as:
20074  section 2.7).
20075 \end_layout
20076
20077 \begin_layout Description
20078 \begin_inset Flex Code
20079 status collapsed
20080
20081 \begin_layout Plain Layout
20082 RefPrefix
20083 \end_layout
20084
20085 \end_inset
20086
20087  [
20088 \begin_inset Flex Code
20089 status collapsed
20090
20091 \begin_layout Plain Layout
20092 string
20093 \end_layout
20094
20095 \end_inset
20096
20097 ] The prefix to use when creating labels referring to floats of this type.
20098  This allows the use of formatted references.
20099  Note that you can remove any 
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104 RefPrefix
20105 \end_layout
20106
20107 \end_inset
20108
20109  set by a copied style by using the special value 
20110 \begin_inset Quotes eld
20111 \end_inset
20112
20113 OFF
20114 \begin_inset Quotes erd
20115 \end_inset
20116
20117 ,
20118  which must be all caps.
20119 \change_inserted -712698321 1565605014
20120
20121 \end_layout
20122
20123 \begin_layout Description
20124
20125 \change_inserted -712698321 1565605014
20126 \begin_inset Flex Code
20127 status collapsed
20128
20129 \begin_layout Plain Layout
20130
20131 \change_inserted -712698321 1565605014
20132 Requires
20133 \change_unchanged
20134
20135 \end_layout
20136
20137 \end_inset
20138
20139  [
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144
20145 \change_inserted -712698321 1565605014
20146 string
20147 \change_unchanged
20148
20149 \end_layout
20150
20151 \end_inset
20152
20153 ] As with paragraph styles,
20154  see 
20155 \begin_inset CommandInset ref
20156 LatexCommand ref
20157 reference "subsec:Paragraph-Styles"
20158 nolink "false"
20159
20160 \end_inset
20161
20162 .
20163 \change_unchanged
20164
20165 \end_layout
20166
20167 \begin_layout Description
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 Style
20173 \end_layout
20174
20175 \end_inset
20176
20177  [
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 string
20183 \end_layout
20184
20185 \end_inset
20186
20187 =
20188 \begin_inset Quotes erd
20189 \end_inset
20190
20191
20192 \begin_inset Quotes erd
20193 \end_inset
20194
20195 ] The style used when defining the float using 
20196 \begin_inset Flex Code
20197 status collapsed
20198
20199 \begin_layout Plain Layout
20200
20201 \backslash
20202 newfloat
20203 \end_layout
20204
20205 \end_inset
20206
20207 .
20208 \end_layout
20209
20210 \begin_layout Description
20211 \begin_inset Flex Code
20212 status collapsed
20213
20214 \begin_layout Plain Layout
20215 Type
20216 \end_layout
20217
20218 \end_inset
20219
20220  [
20221 \begin_inset Flex Code
20222 status collapsed
20223
20224 \begin_layout Plain Layout
20225 string
20226 \end_layout
20227
20228 \end_inset
20229
20230 =
20231 \begin_inset Quotes erd
20232 \end_inset
20233
20234
20235 \begin_inset Quotes erd
20236 \end_inset
20237
20238 ] The 
20239 \begin_inset Quotes eld
20240 \end_inset
20241
20242 type
20243 \begin_inset Quotes erd
20244 \end_inset
20245
20246  of the new class of floats,
20247  like program or algorithm.
20248  After the appropriate 
20249 \begin_inset Flex Code
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253
20254 \backslash
20255 newfloat
20256 \end_layout
20257
20258 \end_inset
20259
20260 ,
20261  commands such as 
20262 \begin_inset Flex Code
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266
20267 \backslash
20268 begin{program}
20269 \end_layout
20270
20271 \end_inset
20272
20273  or 
20274 \begin_inset Flex Code
20275 status collapsed
20276
20277 \begin_layout Plain Layout
20278
20279 \backslash
20280 end{algorithm*}
20281 \end_layout
20282
20283 \end_inset
20284
20285  will be available.
20286 \end_layout
20287
20288 \begin_layout Description
20289 \begin_inset Flex Code
20290 status collapsed
20291
20292 \begin_layout Plain Layout
20293 UsesFloatPkg
20294 \end_layout
20295
20296 \end_inset
20297
20298  [
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303 0
20304 \end_layout
20305
20306 \end_inset
20307
20308 ,
20309 \begin_inset space \thinspace{}
20310 \end_inset
20311
20312
20313 \begin_inset Flex Code
20314 status collapsed
20315
20316 \begin_layout Plain Layout
20317
20318 \emph on
20319 1
20320 \end_layout
20321
20322 \end_inset
20323
20324 ] Specifies whether this float is defined using the \SpecialChar LaTeX
20325  package 
20326 \begin_inset Flex Code
20327 status collapsed
20328
20329 \begin_layout Plain Layout
20330 float
20331 \end_layout
20332
20333 \end_inset
20334
20335 ,
20336  either by the class file,
20337  another package or on-the-fly by \SpecialChar LyX
20338  itself.
20339 \end_layout
20340
20341 \begin_layout Standard
20342 Note that defining a float with type 
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347
20348 \emph on
20349 type
20350 \end_layout
20351
20352 \end_inset
20353
20354  automatically defines the corresponding counter with name 
20355 \begin_inset Flex Code
20356 status collapsed
20357
20358 \begin_layout Plain Layout
20359
20360 \emph on
20361 type
20362 \end_layout
20363
20364 \end_inset
20365
20366 .
20367 \end_layout
20368
20369 \begin_layout Subsection
20370 Flex insets and InsetLayout
20371 \begin_inset CommandInset label
20372 LatexCommand label
20373 name "subsec:Flex-insets-and"
20374
20375 \end_inset
20376
20377
20378 \end_layout
20379
20380 \begin_layout Standard
20381 Flex insets come in 
20382 \change_deleted 5863208 1594239511
20383 three
20384 \change_inserted 5863208 1594239512
20385 two
20386 \change_unchanged
20387  different kinds:
20388  
20389 \end_layout
20390
20391 \begin_layout Itemize
20392 character style (
20393 \begin_inset Flex Code
20394 status collapsed
20395
20396 \begin_layout Plain Layout
20397 CharStyle
20398 \end_layout
20399
20400 \end_inset
20401
20402 ):
20403  These define semantic markup corresponding to such \SpecialChar LaTeX
20404  commands as 
20405 \begin_inset Flex Code
20406 status collapsed
20407
20408 \begin_layout Plain Layout
20409
20410 \backslash
20411 noun
20412 \end_layout
20413
20414 \end_inset
20415
20416  and 
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421
20422 \backslash
20423 code
20424 \end_layout
20425
20426 \end_inset
20427
20428 .
20429 \end_layout
20430
20431 \begin_layout Itemize
20432 user custom (
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 Custom
20438 \end_layout
20439
20440 \end_inset
20441
20442 ):
20443  These can be used to define custom collapsible insets,
20444  similar to \SpecialChar TeX
20445  code,
20446  footnote,
20447  and the like.
20448  An obvious example is an endnote inset,
20449  which is defined in the 
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 endnote
20455 \end_layout
20456
20457 \end_inset
20458
20459  module.
20460 \end_layout
20461
20462 \begin_layout Itemize
20463
20464 \change_deleted 5863208 1594239528
20465 XML elements (
20466 \begin_inset Flex Code
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470 Element
20471 \end_layout
20472
20473 \end_inset
20474
20475 ):
20476  For use with DocBook classes.
20477 \change_unchanged
20478
20479 \end_layout
20480
20481 \begin_layout Standard
20482 Flex insets are defined using the 
20483 \begin_inset Flex Code
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487 InsetLayout
20488 \end_layout
20489
20490 \end_inset
20491
20492  tag,
20493  which shall be explained in a moment.
20494 \end_layout
20495
20496 \begin_layout Standard
20497 The 
20498 \begin_inset Flex Code
20499 status collapsed
20500
20501 \begin_layout Plain Layout
20502 InsetLayout
20503 \end_layout
20504
20505 \end_inset
20506
20507  tag also serves another function:
20508  It can be used to customize the general layout of many different types of insets.
20509  Currently,
20510  
20511 \begin_inset Flex Code
20512 status collapsed
20513
20514 \begin_layout Plain Layout
20515 InsetLayout
20516 \end_layout
20517
20518 \end_inset
20519
20520  can be used to customize the layout parameters for footnotes,
20521  marginal notes,
20522  note insets,
20523  \SpecialChar TeX
20524  code (ERT) insets,
20525  branches,
20526  listings,
20527  indexes,
20528  boxes,
20529  tables,
20530  algorithms,
20531  URLs,
20532  and captions,
20533  as well as to define Flex insets.
20534 \end_layout
20535
20536 \begin_layout Standard
20537 The 
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 InsetLayout
20543 \end_layout
20544
20545 \end_inset
20546
20547  definition must begin with a line of the form:
20548 \end_layout
20549
20550 \begin_layout LyX-Code
20551 InsetLayout <type>
20552 \end_layout
20553
20554 \begin_layout Standard
20555 Here 
20556 \begin_inset Flex Code
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560 <Type>
20561 \end_layout
20562
20563 \end_inset
20564
20565  indicates the inset whose layout is being defined,
20566  and here there are four cases.
20567 \end_layout
20568
20569 \begin_layout Enumerate
20570 The layout for a pre-existing inset is being modified.
20571  In this case,
20572  can be 
20573 \begin_inset Flex Code
20574 status collapsed
20575
20576 \begin_layout Plain Layout
20577 <Type>
20578 \end_layout
20579
20580 \end_inset
20581
20582  any one of the following:
20583  
20584 \begin_inset Flex Code
20585 status collapsed
20586
20587 \begin_layout Plain Layout
20588 Algorithm
20589 \end_layout
20590
20591 \end_inset
20592
20593 ,
20594  
20595 \begin_inset Flex Code
20596 status collapsed
20597
20598 \begin_layout Plain Layout
20599 Branch
20600 \end_layout
20601
20602 \end_inset
20603
20604 ,
20605  
20606 \begin_inset Flex Code
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610 Box
20611 \end_layout
20612
20613 \end_inset
20614
20615 ,
20616  
20617 \begin_inset Flex Code
20618 status collapsed
20619
20620 \begin_layout Plain Layout
20621 Box:shaded
20622 \end_layout
20623
20624 \end_inset
20625
20626 ,
20627  
20628 \begin_inset Flex Code
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632 Caption:Standard
20633 \end_layout
20634
20635 \end_inset
20636
20637 ,
20638  
20639 \begin_inset Flex Code
20640 status collapsed
20641
20642 \begin_layout Plain Layout
20643 ERT
20644 \end_layout
20645
20646 \end_inset
20647
20648 ,
20649  
20650 \begin_inset Flex Code
20651 status collapsed
20652
20653 \begin_layout Plain Layout
20654 Figure
20655 \end_layout
20656
20657 \end_inset
20658
20659 ,
20660  
20661 \begin_inset Flex Code
20662 status collapsed
20663
20664 \begin_layout Plain Layout
20665 Foot
20666 \end_layout
20667
20668 \end_inset
20669
20670 ,
20671  
20672 \begin_inset Flex Code
20673 status collapsed
20674
20675 \begin_layout Plain Layout
20676 Index
20677 \end_layout
20678
20679 \end_inset
20680
20681 ,
20682  
20683 \begin_inset Flex Code
20684 status collapsed
20685
20686 \begin_layout Plain Layout
20687 Info
20688 \end_layout
20689
20690 \end_inset
20691
20692 ,
20693  
20694 \begin_inset Flex Code
20695 status collapsed
20696
20697 \begin_layout Plain Layout
20698 Info:menu
20699 \end_layout
20700
20701 \end_inset
20702
20703 ,
20704  
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 Info:shortcut
20710 \end_layout
20711
20712 \end_inset
20713
20714 ,
20715  
20716 \begin_inset Flex Code
20717 status collapsed
20718
20719 \begin_layout Plain Layout
20720 Info:shortcuts
20721 \end_layout
20722
20723 \end_inset
20724
20725 ,
20726  
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 Listings
20732 \end_layout
20733
20734 \end_inset
20735
20736 ,
20737  
20738 \begin_inset Flex Code
20739 status collapsed
20740
20741 \begin_layout Plain Layout
20742 Marginal
20743 \end_layout
20744
20745 \end_inset
20746
20747 ,
20748  
20749 \begin_inset Flex Code
20750 status collapsed
20751
20752 \begin_layout Plain Layout
20753 Note:Comment
20754 \end_layout
20755
20756 \end_inset
20757
20758 ,
20759  
20760 \begin_inset Flex Code
20761 status collapsed
20762
20763 \begin_layout Plain Layout
20764 Note:Note
20765 \end_layout
20766
20767 \end_inset
20768
20769 ,
20770  
20771 \begin_inset Flex Code
20772 status collapsed
20773
20774 \begin_layout Plain Layout
20775 Note:Greyedout
20776 \end_layout
20777
20778 \end_inset
20779
20780 ,
20781  
20782 \begin_inset Flex Code
20783 status collapsed
20784
20785 \begin_layout Plain Layout
20786 Table
20787 \end_layout
20788
20789 \end_inset
20790
20791 ,
20792  or 
20793 \begin_inset Flex Code
20794 status collapsed
20795
20796 \begin_layout Plain Layout
20797 URL
20798 \end_layout
20799
20800 \end_inset
20801
20802 .
20803 \end_layout
20804
20805 \begin_layout Enumerate
20806 The layout for a Flex inset is being defined.
20807  In this case,
20808  
20809 \begin_inset Flex Code
20810 status collapsed
20811
20812 \begin_layout Plain Layout
20813 <Type>
20814 \end_layout
20815
20816 \end_inset
20817
20818  must be of the form 
20819 \begin_inset Quotes eld
20820 \end_inset
20821
20822
20823 \begin_inset Flex Code
20824 status collapsed
20825
20826 \begin_layout Plain Layout
20827 Flex:<name>
20828 \end_layout
20829
20830 \end_inset
20831
20832
20833 \begin_inset Quotes erd
20834 \end_inset
20835
20836 ,
20837  where 
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 name
20843 \end_layout
20844
20845 \end_inset
20846
20847  may be any valid identifier not used by a pre-existing Flex inset.
20848  The identifier may include spaces,
20849  but in that case the whole thing must be wrapped in quotes.
20850  Note that the definition of a flex inset 
20851 \emph on
20852 must 
20853 \emph default
20854 also include a 
20855 \begin_inset Flex Code
20856 status collapsed
20857
20858 \begin_layout Plain Layout
20859 LyXType
20860 \end_layout
20861
20862 \end_inset
20863
20864  entry,
20865  declaring which type of inset it defines.
20866 \end_layout
20867
20868 \begin_layout Enumerate
20869 The layout for user specific branch is being defined.
20870  In this case,
20871  
20872 \begin_inset Flex Code
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 <Type>
20877 \end_layout
20878
20879 \end_inset
20880
20881  must be of the form 
20882 \begin_inset Quotes eld
20883 \end_inset
20884
20885
20886 \begin_inset Flex Code
20887 status collapsed
20888
20889 \begin_layout Plain Layout
20890 Branch:<name>
20891 \end_layout
20892
20893 \end_inset
20894
20895
20896 \begin_inset Quotes erd
20897 \end_inset
20898
20899 ,
20900  where 
20901 \begin_inset Flex Code
20902 status collapsed
20903
20904 \begin_layout Plain Layout
20905 name
20906 \end_layout
20907
20908 \end_inset
20909
20910  may be any valid identifier of branch defined in user's document.
20911  The identifier may include spaces,
20912  but in that case the whole thing must be wrapped in quotes.
20913  The main purpose of this feature is to allow \SpecialChar LaTeX
20914  wrapping around specific branches as user needs.
20915 \end_layout
20916
20917 \begin_layout Enumerate
20918 The layout of a user (or class) specific caption is being defined.
20919  In this case,
20920  
20921 \begin_inset Flex Code
20922 status collapsed
20923
20924 \begin_layout Plain Layout
20925 <Type>
20926 \end_layout
20927
20928 \end_inset
20929
20930  must be of the form 
20931 \begin_inset Quotes eld
20932 \end_inset
20933
20934
20935 \begin_inset Flex Code
20936 status collapsed
20937
20938 \begin_layout Plain Layout
20939 Caption:<name>
20940 \end_layout
20941
20942 \end_inset
20943
20944
20945 \begin_inset Quotes erd
20946 \end_inset
20947
20948 ,
20949  where 
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954 name
20955 \end_layout
20956
20957 \end_inset
20958
20959  specifies the name of the caption as it appears in the menu.
20960  Have a look at the standard caption (
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 Caption:Standard
20966 \end_layout
20967
20968 \end_inset
20969
20970 ),
20971  the specific captions of the KOMA-Script classes (
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976 Caption:Above
20977 \end_layout
20978
20979 \end_inset
20980
20981 ,
20982  
20983 \begin_inset Flex Code
20984 status collapsed
20985
20986 \begin_layout Plain Layout
20987 Caption:Below
20988 \end_layout
20989
20990 \end_inset
20991
20992 ) or the module 
20993 \family sans
20994 Multilingual
20995 \begin_inset space ~
20996 \end_inset
20997
20998 Captions
20999 \begin_inset Newline linebreak
21000 \end_inset
21001
21002
21003 \family default
21004 (
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 Caption:Bicaption
21010 \end_layout
21011
21012 \end_inset
21013
21014 ) for applications.
21015 \end_layout
21016
21017 \begin_layout Standard
21018 The 
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023 InsetLayout
21024 \end_layout
21025
21026 \end_inset
21027
21028  definition can contain the following entries:
21029 \end_layout
21030
21031 \begin_layout Description
21032 \begin_inset Flex Code
21033 status collapsed
21034
21035 \begin_layout Plain Layout
21036 AddToToc
21037 \end_layout
21038
21039 \end_inset
21040
21041  [
21042 \begin_inset Flex Code
21043 status collapsed
21044
21045 \begin_layout Plain Layout
21046 string
21047 \end_layout
21048
21049 \end_inset
21050
21051 =""] This inset will appear in the table of contents of the given type.
21052  An empty string disables.
21053  See also the OutlinerName and the IsTocCaption commands.
21054  This is only implemented for Flex insets.
21055  Default:
21056  disabled.
21057 \change_inserted -712698321 1690284265
21058
21059 \end_layout
21060
21061 \begin_layout Description
21062
21063 \change_inserted -712698321 1690284544
21064 \begin_inset Flex Code
21065 status collapsed
21066
21067 \begin_layout Plain Layout
21068
21069 \change_inserted -712698321 1690284277
21070 AllowedInInsets
21071 \change_unchanged
21072
21073 \end_layout
21074
21075 \end_inset
21076
21077  Includes a comma-separated list of insets to which this inset can be inserted.
21078  Must be ended by 
21079 \begin_inset Quotes eld
21080 \end_inset
21081
21082
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087
21088 \change_inserted -712698321 1690284318
21089 EndAllowedInInsets
21090 \change_unchanged
21091
21092 \end_layout
21093
21094 \end_inset
21095
21096
21097 \begin_inset Quotes erd
21098 \end_inset
21099
21100 .
21101  If you you also want the insertion to be allowed in specific arguments of the target insets,
21102  append the argument name after @ (e.
21103 \begin_inset space \thinspace{}
21104 \end_inset
21105
21106 g.,
21107  
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112
21113 \change_inserted -712698321 1690284445
21114 My_Inset@post:1
21115 \change_unchanged
21116
21117 \end_layout
21118
21119 \end_inset
21120
21121 ).
21122  Note that this currently only supports immediately containing insets (no deeper nesting).
21123  See also 
21124 \begin_inset Flex Code
21125 status collapsed
21126
21127 \begin_layout Plain Layout
21128
21129 \change_inserted -712698321 1690284329
21130 AllowedInLayouts
21131 \change_unchanged
21132
21133 \end_layout
21134
21135 \end_inset
21136
21137 .
21138 \end_layout
21139
21140 \begin_layout Description
21141
21142 \change_inserted -712698321 1690292495
21143 \begin_inset Flex Code
21144 status collapsed
21145
21146 \begin_layout Plain Layout
21147
21148 \change_inserted -712698321 1690284338
21149 AllowedInLayouts
21150 \change_unchanged
21151
21152 \end_layout
21153
21154 \end_inset
21155
21156  Includes a comma-separated list of layouts within which this inset can be inserted.
21157  Must be ended by 
21158 \begin_inset Quotes eld
21159 \end_inset
21160
21161
21162 \begin_inset Flex Code
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166
21167 \change_inserted -712698321 1690284353
21168 EndAllowedInLayouts
21169 \change_unchanged
21170
21171 \end_layout
21172
21173 \end_inset
21174
21175
21176 \begin_inset Quotes erd
21177 \end_inset
21178
21179 .
21180  Note that this currently only supports immediately containing layouts (no deeper nesting).
21181  See also 
21182 \begin_inset Flex Code
21183 status collapsed
21184
21185 \begin_layout Plain Layout
21186
21187 \change_inserted -712698321 1690284358
21188 AllowedInInsets
21189 \change_unchanged
21190
21191 \end_layout
21192
21193 \end_inset
21194
21195 .
21196 \end_layout
21197
21198 \begin_layout Description
21199
21200 \change_inserted -712698321 1690357747
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205
21206 \change_inserted -712698321 1690292501
21207 AllowedOccurrences
21208 \change_unchanged
21209
21210 \end_layout
21211
21212 \end_inset
21213
21214  [
21215 \begin_inset Flex Code
21216 status collapsed
21217
21218 \begin_layout Plain Layout
21219
21220 \change_inserted -712698321 1690292507
21221 int
21222 \change_unchanged
21223
21224 \end_layout
21225
21226 \end_inset
21227
21228 ] If 
21229 \begin_inset Flex Code
21230 status collapsed
21231
21232 \begin_layout Plain Layout
21233
21234 \change_inserted -712698321 1690292530
21235 AllowedInInsets
21236 \change_unchanged
21237
21238 \end_layout
21239
21240 \end_inset
21241
21242  or 
21243 \begin_inset Flex Code
21244 status collapsed
21245
21246 \begin_layout Plain Layout
21247
21248 \change_inserted -712698321 1690292536
21249 AllowedInLayouts
21250 \change_unchanged
21251
21252 \end_layout
21253
21254 \end_inset
21255
21256  has been defined,
21257  this can be used to determine how many times the inset can be inserted to a given inset or the paragraph (group).
21258 \end_layout
21259
21260 \begin_layout Description
21261
21262 \change_inserted -712698321 1690357828
21263 \begin_inset Flex Code
21264 status collapsed
21265
21266 \begin_layout Plain Layout
21267
21268 \change_inserted -712698321 1690357753
21269 AllowedOccurrencesPerItem
21270 \change_unchanged
21271
21272 \end_layout
21273
21274 \end_inset
21275
21276  [
21277 \begin_inset Flex Code
21278 status collapsed
21279
21280 \begin_layout Plain Layout
21281
21282 \change_inserted -712698321 1690357747
21283
21284 \emph on
21285 0
21286 \change_unchanged
21287
21288 \end_layout
21289
21290 \end_inset
21291
21292 ,
21293 \begin_inset space \thinspace{}
21294 \end_inset
21295
21296
21297 \begin_inset Flex Code
21298 status collapsed
21299
21300 \begin_layout Plain Layout
21301
21302 \change_inserted -712698321 1690357747
21303 1
21304 \change_unchanged
21305
21306 \end_layout
21307
21308 \end_inset
21309
21310 ] If this is set to true,
21311  
21312 \begin_inset Flex Code
21313 status collapsed
21314
21315 \begin_layout Plain Layout
21316
21317 \change_inserted -712698321 1690357774
21318 AllowedOccurrences
21319 \change_unchanged
21320
21321 \end_layout
21322
21323 \end_inset
21324
21325  applies to single paragraphs if we are in a list-type environment (with 
21326 \begin_inset Flex Code
21327 status collapsed
21328
21329 \begin_layout Plain Layout
21330
21331 \change_inserted -712698321 1690357825
21332
21333 \backslash
21334 item
21335 \change_unchanged
21336
21337 \end_layout
21338
21339 \end_inset
21340
21341 s).
21342 \change_unchanged
21343
21344 \end_layout
21345
21346 \begin_layout Description
21347 \begin_inset Flex Code
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 Argument
21352 \end_layout
21353
21354 \end_inset
21355
21356  [
21357 \begin_inset Flex Code
21358 status collapsed
21359
21360 \begin_layout Plain Layout
21361 int
21362 \end_layout
21363
21364 \end_inset
21365
21366 ] Defines argument number of a command\SpecialChar breakableslash
21367 environment associated with the current layout.
21368  The definition must end with 
21369 \begin_inset Flex Code
21370 status collapsed
21371
21372 \begin_layout Plain Layout
21373 EndArgument
21374 \end_layout
21375
21376 \end_inset
21377
21378 .
21379  See 
21380 \change_inserted -584632292 1615846847
21381
21382 \begin_inset CommandInset ref
21383 LatexCommand ref
21384 reference "subsec:Arguments"
21385 plural "false"
21386 caps "false"
21387 noprefix "false"
21388 nolink "false"
21389
21390 \end_inset
21391
21392
21393 \change_deleted -584632292 1615846847
21394
21395 \begin_inset CommandInset ref
21396 LatexCommand ref
21397 reference "subsec:Paragraph-Styles"
21398 nolink "false"
21399
21400 \end_inset
21401
21402
21403 \change_unchanged
21404  for 
21405 \change_deleted -584632292 1615846902
21406 details
21407 \change_inserted -584632292 1615846906
21408 more information
21409 \change_unchanged
21410 .
21411 \end_layout
21412
21413 \begin_layout Description
21414 \begin_inset Flex Code
21415 status collapsed
21416
21417 \begin_layout Plain Layout
21418 BabelPreamble
21419 \end_layout
21420
21421 \end_inset
21422
21423  Preamble for changing language commands;
21424  see 
21425 \begin_inset CommandInset ref
21426 LatexCommand ref
21427 reference "subsec:I18n"
21428 nolink "false"
21429
21430 \end_inset
21431
21432 .
21433 \end_layout
21434
21435 \begin_layout Description
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 BgColor
21441 \end_layout
21442
21443 \end_inset
21444
21445  [
21446 \begin_inset Flex Code
21447 status collapsed
21448
21449 \begin_layout Plain Layout
21450 <name>
21451 \end_layout
21452
21453 \end_inset
21454
21455 ] The color for the inset's background.
21456  See 
21457 \begin_inset CommandInset ref
21458 LatexCommand ref
21459 reference "chap:Names-of-colors"
21460 nolink "false"
21461
21462 \end_inset
21463
21464  for a list of the available color names.
21465 \end_layout
21466
21467 \begin_layout Description
21468 \begin_inset Flex Code
21469 status collapsed
21470
21471 \begin_layout Plain Layout
21472 ContentAsLabel
21473 \end_layout
21474
21475 \end_inset
21476
21477  [
21478 \begin_inset Flex Code
21479 status collapsed
21480
21481 \begin_layout Plain Layout
21482
21483 \emph on
21484 0
21485 \end_layout
21486
21487 \end_inset
21488
21489 ,
21490 \begin_inset space \thinspace{}
21491 \end_inset
21492
21493
21494 \begin_inset Flex Code
21495 status collapsed
21496
21497 \begin_layout Plain Layout
21498 1
21499 \end_layout
21500
21501 \end_inset
21502
21503 ] Whether to use the content of the inset as the label,
21504  when the inset is closed.
21505  Default is false.
21506 \end_layout
21507
21508 \begin_layout Description
21509 \begin_inset Flex Code
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 CopyStyle
21514 \end_layout
21515
21516 \end_inset
21517
21518  [
21519 \begin_inset Flex Code
21520 status collapsed
21521
21522 \begin_layout Plain Layout
21523 <type>
21524 \end_layout
21525
21526 \end_inset
21527
21528 ] As with paragraph styles,
21529  see 
21530 \begin_inset CommandInset ref
21531 LatexCommand ref
21532 reference "subsec:Paragraph-Styles"
21533 nolink "false"
21534
21535 \end_inset
21536
21537 .
21538  Note that you need to specify the complete type,
21539  e.
21540 \begin_inset space \thinspace{}
21541 \end_inset
21542
21543 g.
21544 \begin_inset space ~
21545 \end_inset
21546
21547
21548 \begin_inset Flex Code
21549 status collapsed
21550
21551 \begin_layout Plain Layout
21552 CopyStyle Flex:<name>
21553 \end_layout
21554
21555 \end_inset
21556
21557 .
21558 \end_layout
21559
21560 \begin_layout Description
21561 \begin_inset Flex Code
21562 status collapsed
21563
21564 \begin_layout Plain Layout
21565 CustomPars
21566 \end_layout
21567
21568 \end_inset
21569
21570  [
21571 \begin_inset Flex Code
21572 status collapsed
21573
21574 \begin_layout Plain Layout
21575
21576 \emph on
21577 0
21578 \end_layout
21579
21580 \end_inset
21581
21582 ,
21583 \begin_inset space \thinspace{}
21584 \end_inset
21585
21586
21587 \begin_inset Flex Code
21588 status collapsed
21589
21590 \begin_layout Plain Layout
21591 1
21592 \end_layout
21593
21594 \end_inset
21595
21596 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
21597 \end_layout
21598
21599 \begin_layout Description
21600 \begin_inset Flex Code
21601 status collapsed
21602
21603 \begin_layout Plain Layout
21604 Decoration
21605 \end_layout
21606
21607 \end_inset
21608
21609  can be 
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 Classic
21615 \end_layout
21616
21617 \end_inset
21618
21619 ,
21620  
21621 \begin_inset Flex Code
21622 status collapsed
21623
21624 \begin_layout Plain Layout
21625 Minimalistic
21626 \end_layout
21627
21628 \end_inset
21629
21630 ,
21631  or 
21632 \begin_inset Flex Code
21633 status collapsed
21634
21635 \begin_layout Plain Layout
21636 Conglomerate
21637 \end_layout
21638
21639 \end_inset
21640
21641 ,
21642  describing the rendering style used for the inset's frame and buttons.
21643  Footnotes generally use 
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 Classic
21649 \end_layout
21650
21651 \end_inset
21652
21653 ,
21654  ERT insets generally 
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 Minimalistic
21660 \end_layout
21661
21662 \end_inset
21663
21664 ,
21665  and character styles 
21666 \begin_inset Flex Code
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 Conglomerate
21671 \end_layout
21672
21673 \end_inset
21674
21675 .
21676 \end_layout
21677
21678 \begin_layout Description
21679 \begin_inset Flex Code
21680 status collapsed
21681
21682 \begin_layout Plain Layout
21683 Display
21684 \end_layout
21685
21686 \end_inset
21687
21688  [
21689 \begin_inset Flex Code
21690 status collapsed
21691
21692 \begin_layout Plain Layout
21693 0
21694 \end_layout
21695
21696 \end_inset
21697
21698 ,
21699 \emph on
21700
21701 \begin_inset space \thinspace{}
21702 \end_inset
21703
21704
21705 \emph default
21706
21707 \begin_inset Flex Code
21708 status collapsed
21709
21710 \begin_layout Plain Layout
21711
21712 \emph on
21713 1
21714 \end_layout
21715
21716 \end_inset
21717
21718 ] Only useful if 
21719 \begin_inset Flex Code
21720 status collapsed
21721
21722 \begin_layout Plain Layout
21723 LatexType
21724 \end_layout
21725
21726 \end_inset
21727
21728  is 
21729 \begin_inset Flex Code
21730 status collapsed
21731
21732 \begin_layout Plain Layout
21733 Environment
21734 \end_layout
21735
21736 \end_inset
21737
21738 .
21739  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
21740  If set to false,
21741  it is supposed that the \SpecialChar LaTeX
21742  environment ignores white space (including one newline character) after the 
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747
21748 \backslash
21749 begin{
21750 \emph on
21751 LatexName
21752 \emph default
21753 }
21754 \end_layout
21755
21756 \end_inset
21757
21758  and 
21759 \begin_inset Flex Code
21760 status collapsed
21761
21762 \begin_layout Plain Layout
21763
21764 \backslash
21765 end{
21766 \emph on
21767 LatexName
21768 \emph default
21769 }
21770 \end_layout
21771
21772 \end_inset
21773
21774  tags.
21775  Default is true.
21776 \change_inserted 731793113 1538674858
21777
21778 \end_layout
21779
21780 \begin_layout Description
21781
21782 \change_inserted 731793113 1538674891
21783 \begin_inset Flex Code
21784 status open
21785
21786 \begin_layout Plain Layout
21787
21788 \change_inserted 731793113 1538674863
21789 EditExternal
21790 \change_unchanged
21791
21792 \end_layout
21793
21794 \end_inset
21795
21796  [
21797 \emph on
21798 0
21799 \emph default
21800 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
21801 \change_unchanged
21802
21803 \end_layout
21804
21805 \begin_layout Description
21806 \begin_inset Flex Code
21807 status collapsed
21808
21809 \begin_layout Plain Layout
21810 End
21811 \end_layout
21812
21813 \end_inset
21814
21815  Required at the end of the 
21816 \begin_inset Flex Code
21817 status collapsed
21818
21819 \begin_layout Plain Layout
21820 InsetLayout
21821 \end_layout
21822
21823 \end_inset
21824
21825  declarations.
21826 \end_layout
21827
21828 \begin_layout Description
21829 \begin_inset Flex Code
21830 status collapsed
21831
21832 \begin_layout Plain Layout
21833 Font
21834 \end_layout
21835
21836 \end_inset
21837
21838  The font used for both the text body 
21839 \emph on
21840 and
21841 \emph default
21842  the label.
21843  See 
21844 \begin_inset CommandInset ref
21845 LatexCommand formatted
21846 reference "subsec:Font-description"
21847 nolink "false"
21848
21849 \end_inset
21850
21851 .
21852  Note that defining this font automatically defines the 
21853 \begin_inset Flex Code
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857 LabelFont
21858 \end_layout
21859
21860 \end_inset
21861
21862  to the same value,
21863  so define this first and define 
21864 \begin_inset Flex Code
21865 status collapsed
21866
21867 \begin_layout Plain Layout
21868 LabelFont
21869 \end_layout
21870
21871 \end_inset
21872
21873  later if you want them to be different.
21874 \end_layout
21875
21876 \begin_layout Description
21877 \begin_inset Flex Code
21878 status collapsed
21879
21880 \begin_layout Plain Layout
21881 FixedWidthPreambleEncoding
21882 \end_layout
21883
21884 \end_inset
21885
21886  [
21887 \begin_inset Flex Code
21888 status collapsed
21889
21890 \begin_layout Plain Layout
21891
21892 \emph on
21893 0
21894 \end_layout
21895
21896 \end_inset
21897
21898 ,
21899 \begin_inset space \thinspace{}
21900 \end_inset
21901
21902
21903 \begin_inset Flex Code
21904 status collapsed
21905
21906 \begin_layout Plain Layout
21907 1
21908 \end_layout
21909
21910 \end_inset
21911
21912 ] Force a fixed width encoding for the translated contents of 
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917 BabelPreamble
21918 \end_layout
21919
21920 \end_inset
21921
21922  and 
21923 \begin_inset Flex Code
21924 status collapsed
21925
21926 \begin_layout Plain Layout
21927 LangPreamble
21928 \end_layout
21929
21930 \end_inset
21931
21932  code generated by this layout.
21933  This is needed for special \SpecialChar LaTeX
21934 -packages like 
21935 \family typewriter
21936 listings
21937 \family default
21938  that do not work with variable width encodings such as 
21939 \family sans
21940 utf8
21941 \family default
21942 .
21943  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
21944  backends such as Xe\SpecialChar TeX
21945  or Lua\SpecialChar TeX
21946  are used.
21947 \end_layout
21948
21949 \begin_layout Description
21950 \begin_inset Flex Code
21951 status collapsed
21952
21953 \begin_layout Plain Layout
21954 ForceLocalFontSwitch
21955 \end_layout
21956
21957 \end_inset
21958
21959  [
21960 \begin_inset Flex Code
21961 status collapsed
21962
21963 \begin_layout Plain Layout
21964
21965 \emph on
21966 0
21967 \end_layout
21968
21969 \end_inset
21970
21971 ,
21972 \begin_inset space \thinspace{}
21973 \end_inset
21974
21975
21976 \begin_inset Flex Code
21977 status collapsed
21978
21979 \begin_layout Plain Layout
21980 1
21981 \end_layout
21982
21983 \end_inset
21984
21985 ] When using babel,
21986  always use a local font switch (
21987 \begin_inset Flex Code
21988 status collapsed
21989
21990 \begin_layout Plain Layout
21991
21992 \backslash
21993 foreignlanguage
21994 \end_layout
21995
21996 \end_inset
21997
21998 ),
21999  never a global one (such as 
22000 \begin_inset Flex Code
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004
22005 \backslash
22006 selectlanguage
22007 \end_layout
22008
22009 \end_inset
22010
22011 ).
22012 \end_layout
22013
22014 \begin_layout Description
22015 \begin_inset Flex Code
22016 status collapsed
22017
22018 \begin_layout Plain Layout
22019 ForceLTR
22020 \end_layout
22021
22022 \end_inset
22023
22024  [
22025 \begin_inset Flex Code
22026 status collapsed
22027
22028 \begin_layout Plain Layout
22029
22030 \emph on
22031 0
22032 \end_layout
22033
22034 \end_inset
22035
22036 ,
22037 \begin_inset space \thinspace{}
22038 \end_inset
22039
22040
22041 \begin_inset Flex Code
22042 status collapsed
22043
22044 \begin_layout Plain Layout
22045 1
22046 \end_layout
22047
22048 \end_inset
22049
22050 ] Force the 
22051 \begin_inset Quotes eld
22052 \end_inset
22053
22054 latex
22055 \begin_inset Quotes erd
22056 \end_inset
22057
22058  language,
22059  leading to Left-to-Right (Latin) output,
22060  e.
22061 \begin_inset space \thinspace{}
22062 \end_inset
22063
22064 g.
22065 \begin_inset space \space{}
22066 \end_inset
22067
22068 in \SpecialChar TeX
22069  code or URL.
22070  A kludge.
22071 \end_layout
22072
22073 \begin_layout Description
22074 \begin_inset Flex Code
22075 status collapsed
22076
22077 \begin_layout Plain Layout
22078 ForceOwnlines
22079 \end_layout
22080
22081 \end_inset
22082
22083  [
22084 \begin_inset Flex Code
22085 status collapsed
22086
22087 \begin_layout Plain Layout
22088
22089 \emph on
22090 0
22091 \end_layout
22092
22093 \end_inset
22094
22095 ,
22096 \begin_inset space \thinspace{}
22097 \end_inset
22098
22099
22100 \begin_inset Flex Code
22101 status collapsed
22102
22103 \begin_layout Plain Layout
22104 1
22105 \end_layout
22106
22107 \end_inset
22108
22109 ] Force a line break in the \SpecialChar LaTeX
22110  output before the inset starts and after the inset ends.
22111  This assures the inset itself is output on its own lines,
22112  for parsing purposes.
22113 \end_layout
22114
22115 \begin_layout Description
22116 \begin_inset Flex Code
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120 ForcePlain
22121 \end_layout
22122
22123 \end_inset
22124
22125  [
22126 \begin_inset Flex Code
22127 status collapsed
22128
22129 \begin_layout Plain Layout
22130
22131 \emph on
22132 0
22133 \end_layout
22134
22135 \end_inset
22136
22137 ,
22138 \begin_inset space \thinspace{}
22139 \end_inset
22140
22141
22142 \begin_inset Flex Code
22143 status collapsed
22144
22145 \begin_layout Plain Layout
22146 1
22147 \end_layout
22148
22149 \end_inset
22150
22151 ] Indicates whether the 
22152 \begin_inset Flex Code
22153 status collapsed
22154
22155 \begin_layout Plain Layout
22156 PlainLayout
22157 \end_layout
22158
22159 \end_inset
22160
22161  should be used or,
22162  instead,
22163  the user can change the paragraph style used in the inset.
22164  Default is false.
22165 \end_layout
22166
22167 \begin_layout Description
22168 \begin_inset Flex Code
22169 status collapsed
22170
22171 \begin_layout Plain Layout
22172 FreeSpacing
22173 \end_layout
22174
22175 \end_inset
22176
22177  [
22178 \begin_inset Flex Code
22179 status collapsed
22180
22181 \begin_layout Plain Layout
22182
22183 \emph on
22184 0
22185 \end_layout
22186
22187 \end_inset
22188
22189 ,
22190 \begin_inset space \thinspace{}
22191 \end_inset
22192
22193
22194 \begin_inset Flex Code
22195 status collapsed
22196
22197 \begin_layout Plain Layout
22198 1
22199 \end_layout
22200
22201 \end_inset
22202
22203 ] As with paragraph styles,
22204  see 
22205 \begin_inset CommandInset ref
22206 LatexCommand ref
22207 reference "subsec:Paragraph-Styles"
22208 nolink "false"
22209
22210 \end_inset
22211
22212 .
22213 \end_layout
22214
22215 \begin_layout Description
22216 \begin_inset Flex Code
22217 status collapsed
22218
22219 \begin_layout Plain Layout
22220 HTML*
22221 \end_layout
22222
22223 \end_inset
22224
22225  These tags control the XHTML output.
22226  See 
22227 \begin_inset CommandInset ref
22228 LatexCommand ref
22229 reference "sec:Tags-for-XHTML"
22230 nolink "false"
22231
22232 \end_inset
22233
22234 .
22235 \change_inserted 47243155 1689528605
22236
22237 \end_layout
22238
22239 \begin_layout Description
22240
22241 \change_inserted 47243155 1689528735
22242 \begin_inset Flex Code
22243 status collapsed
22244
22245 \begin_layout Plain Layout
22246
22247 \change_inserted 47243155 1689528630
22248 InheritFont
22249 \change_unchanged
22250
22251 \end_layout
22252
22253 \end_inset
22254
22255  [
22256 \begin_inset Flex Code
22257 status collapsed
22258
22259 \begin_layout Plain Layout
22260
22261 \change_inserted 47243155 1689528607
22262 0
22263 \change_unchanged
22264
22265 \end_layout
22266
22267 \end_inset
22268
22269 ,
22270 \begin_inset space \thinspace{}
22271 \end_inset
22272
22273
22274 \begin_inset Flex Code
22275 status collapsed
22276
22277 \begin_layout Plain Layout
22278
22279 \change_inserted 47243155 1689528607
22280
22281 \emph on
22282 1
22283 \change_unchanged
22284
22285 \end_layout
22286
22287 \end_inset
22288
22289 ] The font inside the inset is inherited from the parent for \SpecialChar LaTeX
22290  export if this parameter is 1,
22291  as well as on screen.
22292  Otherwise the document default font is used.
22293 \change_unchanged
22294
22295 \end_layout
22296
22297 \begin_layout Description
22298 \begin_inset Flex Code
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 InToc
22303 \end_layout
22304
22305 \end_inset
22306
22307  [
22308 \begin_inset Flex Code
22309 status collapsed
22310
22311 \begin_layout Plain Layout
22312
22313 \emph on
22314 0
22315 \end_layout
22316
22317 \end_inset
22318
22319 ,
22320 \begin_inset space \thinspace{}
22321 \end_inset
22322
22323
22324 \begin_inset Flex Code
22325 status collapsed
22326
22327 \begin_layout Plain Layout
22328 1
22329 \end_layout
22330
22331 \end_inset
22332
22333 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
22334  regardless of the AddToToc setting.
22335  One would not,
22336  for example,
22337  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
22338  but one would normally want the content of a character style displayed.
22339  Default is false:
22340  not to include.
22341 \end_layout
22342
22343 \begin_layout Description
22344 \begin_inset Flex Code
22345 status collapsed
22346
22347 \begin_layout Plain Layout
22348 IsTocCaption
22349 \end_layout
22350
22351 \end_inset
22352
22353  [
22354 \begin_inset Flex Code
22355 status collapsed
22356
22357 \begin_layout Plain Layout
22358
22359 \emph on
22360 0
22361 \end_layout
22362
22363 \end_inset
22364
22365 ,
22366 \begin_inset space \thinspace{}
22367 \end_inset
22368
22369
22370 \begin_inset Flex Code
22371 status collapsed
22372
22373 \begin_layout Plain Layout
22374 1
22375 \end_layout
22376
22377 \end_inset
22378
22379 ] If this is set to 1 and AddToToc is enabled,
22380  the inset adds a summary of its contents in its item in the table of contents.
22381  Otherwise,
22382  only the label appears.
22383 \end_layout
22384
22385 \begin_layout Description
22386 \begin_inset Flex Code
22387 status collapsed
22388
22389 \begin_layout Plain Layout
22390 KeepEmpty
22391 \end_layout
22392
22393 \end_inset
22394
22395  [
22396 \emph on
22397
22398 \begin_inset Flex Code
22399 status collapsed
22400
22401 \begin_layout Plain Layout
22402 0
22403 \end_layout
22404
22405 \end_inset
22406
22407
22408 \emph default
22409 ,
22410 \begin_inset space \thinspace{}
22411 \end_inset
22412
22413
22414 \begin_inset Flex Code
22415 status collapsed
22416
22417 \begin_layout Plain Layout
22418 1
22419 \end_layout
22420
22421 \end_inset
22422
22423 ] As with paragraph styles,
22424  see 
22425 \begin_inset CommandInset ref
22426 LatexCommand ref
22427 reference "subsec:Paragraph-Styles"
22428 nolink "false"
22429
22430 \end_inset
22431
22432 .
22433 \end_layout
22434
22435 \begin_layout Description
22436 \begin_inset Flex Code
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440 LabelFont
22441 \end_layout
22442
22443 \end_inset
22444
22445  The font used for the label.
22446  See 
22447 \begin_inset CommandInset ref
22448 LatexCommand ref
22449 reference "subsec:Font-description"
22450 nolink "false"
22451
22452 \end_inset
22453
22454 .
22455  Note that this definition can never appear before 
22456 \begin_inset Flex Code
22457 status collapsed
22458
22459 \begin_layout Plain Layout
22460 Font
22461 \end_layout
22462
22463 \end_inset
22464
22465 ,
22466  lest it be ineffective.
22467 \end_layout
22468
22469 \begin_layout Description
22470 \begin_inset Flex Code
22471 status collapsed
22472
22473 \begin_layout Plain Layout
22474 LabelString
22475 \end_layout
22476
22477 \end_inset
22478
22479  [
22480 \begin_inset Flex Code
22481 status collapsed
22482
22483 \begin_layout Plain Layout
22484 string
22485 \end_layout
22486
22487 \end_inset
22488
22489 =
22490 \begin_inset Quotes erd
22491 \end_inset
22492
22493
22494 \begin_inset Quotes erd
22495 \end_inset
22496
22497 ] What will be displayed on the button or elsewhere as the inset label.
22498  Some inset types (
22499 \begin_inset Flex Code
22500 status collapsed
22501
22502 \begin_layout Plain Layout
22503 \SpecialChar TeX
22504  code
22505 \end_layout
22506
22507 \end_inset
22508
22509  and 
22510 \begin_inset Flex Code
22511 status collapsed
22512
22513 \begin_layout Plain Layout
22514 Branch
22515 \end_layout
22516
22517 \end_inset
22518
22519 ) modify this label on the fly.
22520 \end_layout
22521
22522 \begin_layout Description
22523 \begin_inset Flex Code
22524 status collapsed
22525
22526 \begin_layout Plain Layout
22527 LangPreamble
22528 \end_layout
22529
22530 \end_inset
22531
22532  Language dependent preamble;
22533  see 
22534 \begin_inset CommandInset ref
22535 LatexCommand ref
22536 reference "subsec:I18n"
22537 nolink "false"
22538
22539 \end_inset
22540
22541 .
22542 \end_layout
22543
22544 \begin_layout Description
22545 \begin_inset Flex Code
22546 status collapsed
22547
22548 \begin_layout Plain Layout
22549 LatexName
22550 \end_layout
22551
22552 \end_inset
22553
22554  [
22555 \begin_inset Flex Code
22556 status collapsed
22557
22558 \begin_layout Plain Layout
22559 <name>
22560 \end_layout
22561
22562 \end_inset
22563
22564 ] The name of the corresponding \SpecialChar LaTeX
22565  stuff.
22566  Either the environment or command name.
22567 \end_layout
22568
22569 \begin_layout Description
22570 \begin_inset Flex Code
22571 status collapsed
22572
22573 \begin_layout Plain Layout
22574 LatexParam
22575 \end_layout
22576
22577 \end_inset
22578
22579  [
22580 \begin_inset Flex Code
22581 status collapsed
22582
22583 \begin_layout Plain Layout
22584 <parameter>
22585 \end_layout
22586
22587 \end_inset
22588
22589 ] The optional parameter for the corresponding 
22590 \begin_inset Flex Code
22591 status collapsed
22592
22593 \begin_layout Plain Layout
22594 LatexName
22595 \end_layout
22596
22597 \end_inset
22598
22599  stuff,
22600  including possible bracket pairs like 
22601 \begin_inset Flex Code
22602 status collapsed
22603
22604 \begin_layout Plain Layout
22605 []
22606 \end_layout
22607
22608 \end_inset
22609
22610 .
22611  This parameter cannot be changed from within \SpecialChar LyX
22612  (use 
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617 Argument
22618 \end_layout
22619
22620 \end_inset
22621
22622  for customizable parameters).
22623  It will be output as is after all \SpecialChar LaTeX
22624  
22625 \begin_inset Flex Code
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629 Argument
22630 \end_layout
22631
22632 \end_inset
22633
22634 s.
22635 \end_layout
22636
22637 \begin_layout Description
22638 \begin_inset Flex Code
22639 status collapsed
22640
22641 \begin_layout Plain Layout
22642 LatexType
22643 \end_layout
22644
22645 \end_inset
22646
22647  [
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652 Command,
22653  Environment,
22654  None
22655 \end_layout
22656
22657 \end_inset
22658
22659 ] How the style should be translated into \SpecialChar LaTeX
22660 .
22661 \begin_inset Foot
22662 status collapsed
22663
22664 \begin_layout Plain Layout
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 LatexType
22670 \end_layout
22671
22672 \end_inset
22673
22674  is perhaps a bit misleading,
22675  since these rules apply to SGML classes too.
22676  Visit the SGML class files for specific examples.
22677 \end_layout
22678
22679 \end_inset
22680
22681
22682 \end_layout
22683
22684 \begin_deeper
22685 \begin_layout Description
22686 \begin_inset Flex Code
22687 status collapsed
22688
22689 \begin_layout Plain Layout
22690 None
22691 \end_layout
22692
22693 \end_inset
22694
22695  means nothing special
22696 \end_layout
22697
22698 \begin_layout Description
22699 \begin_inset Flex Code
22700 status collapsed
22701
22702 \begin_layout Plain Layout
22703 Command
22704 \end_layout
22705
22706 \end_inset
22707
22708  means 
22709 \begin_inset Flex Code
22710 status collapsed
22711
22712 \begin_layout Plain Layout
22713
22714 \backslash
22715
22716 \emph on
22717 LatexName
22718 \emph default
22719 {\SpecialChar ldots
22720 }
22721 \end_layout
22722
22723 \end_inset
22724
22725
22726 \end_layout
22727
22728 \begin_layout Description
22729 \begin_inset Flex Code
22730 status collapsed
22731
22732 \begin_layout Plain Layout
22733 Environment
22734 \end_layout
22735
22736 \end_inset
22737
22738  means 
22739 \begin_inset Flex Code
22740 status collapsed
22741
22742 \begin_layout Plain Layout
22743
22744 \backslash
22745 begin{
22746 \emph on
22747 LatexName
22748 \emph default
22749 }\SpecialChar ldots
22750
22751 \backslash
22752 end{
22753 \emph on
22754 LatexName
22755 \emph default
22756 }
22757 \end_layout
22758
22759 \end_inset
22760
22761
22762 \end_layout
22763
22764 \begin_layout Standard
22765 Putting the last few things together,
22766  the \SpecialChar LaTeX
22767  output will be either:
22768  
22769 \end_layout
22770
22771 \begin_layout LyX-Code
22772
22773 \backslash
22774 LatexName[LatexParam]{\SpecialChar ldots
22775 }
22776 \end_layout
22777
22778 \begin_layout Standard
22779 or:
22780  
22781 \end_layout
22782
22783 \begin_layout LyX-Code
22784
22785 \backslash
22786 begin{LatexName}[LatexParam] \SpecialChar ldots
22787  
22788 \backslash
22789 end{LatexName}
22790 \end_layout
22791
22792 \begin_layout Standard
22793 depending upon the \SpecialChar LaTeX
22794  type.
22795 \end_layout
22796
22797 \end_deeper
22798 \begin_layout Description
22799 \begin_inset Flex Code
22800 status collapsed
22801
22802 \begin_layout Plain Layout
22803 LeftDelim
22804 \end_layout
22805
22806 \end_inset
22807
22808  [
22809 \begin_inset Flex Code
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 string
22814 \end_layout
22815
22816 \end_inset
22817
22818 ] A string that is put at the beginning of the layout content.
22819  A line break in the output can be indicated by 
22820 \begin_inset Flex Code
22821 status collapsed
22822
22823 \begin_layout Plain Layout
22824 <br/>
22825 \end_layout
22826
22827 \end_inset
22828
22829 .
22830 \end_layout
22831
22832 \begin_layout Description
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 LyxType
22838 \end_layout
22839
22840 \end_inset
22841
22842  Can be 
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 charstyle
22848 \end_layout
22849
22850 \end_inset
22851
22852 ,
22853  
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858 custom
22859 \end_layout
22860
22861 \end_inset
22862
22863 ,
22864  
22865 \change_deleted -584632292 1615846609
22866
22867 \begin_inset Flex Code
22868 status collapsed
22869
22870 \begin_layout Plain Layout
22871 element
22872 \end_layout
22873
22874 \end_inset
22875
22876  
22877 \change_unchanged
22878 or 
22879 \begin_inset Flex Code
22880 status collapsed
22881
22882 \begin_layout Plain Layout
22883 end
22884 \end_layout
22885
22886 \end_inset
22887
22888  (indicating a dummy definition ending definitions of charstyles,
22889  etc).
22890  This entry is required in and is only meaningful for Flex insets.
22891  Among other things,
22892  it determines on which menu this inset will appear.
22893  Setting 
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 LyxType
22899 \end_layout
22900
22901 \end_inset
22902
22903  to 
22904 \begin_inset Flex Code
22905 status collapsed
22906
22907 \begin_layout Plain Layout
22908 charstyle
22909 \end_layout
22910
22911 \end_inset
22912
22913  will automatically set 
22914 \begin_inset Flex Code
22915 status collapsed
22916
22917 \begin_layout Plain Layout
22918 MultiPar
22919 \end_layout
22920
22921 \end_inset
22922
22923  to false and 
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928 ForcePlain
22929 \end_layout
22930
22931 \end_inset
22932
22933  to true.
22934  
22935 \begin_inset Flex Code
22936 status collapsed
22937
22938 \begin_layout Plain Layout
22939 MultiPar
22940 \end_layout
22941
22942 \end_inset
22943
22944  can be set to true,
22945  or 
22946 \begin_inset Flex Code
22947 status collapsed
22948
22949 \begin_layout Plain Layout
22950 ForcePlain
22951 \end_layout
22952
22953 \end_inset
22954
22955  to false,
22956  for 
22957 \begin_inset Flex Code
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961 charstyle
22962 \end_layout
22963
22964 \end_inset
22965
22966  insets by setting it 
22967 \emph on
22968 after
22969 \emph default
22970  you set the 
22971 \begin_inset Flex Code
22972 status collapsed
22973
22974 \begin_layout Plain Layout
22975 LyxType
22976 \end_layout
22977
22978 \end_inset
22979
22980 .
22981 \change_inserted -712698321 1555575738
22982
22983 \end_layout
22984
22985 \begin_layout Description
22986
22987 \change_inserted -712698321 1555575844
22988 \begin_inset Flex Code
22989 status collapsed
22990
22991 \begin_layout Plain Layout
22992
22993 \change_inserted -712698321 1555575740
22994 MenuString
22995 \change_unchanged
22996
22997 \end_layout
22998
22999 \end_inset
23000
23001  
23002 \begin_inset Flex Code
23003 status collapsed
23004
23005 \begin_layout Plain Layout
23006
23007 \change_inserted -712698321 1555575740
23008 [string]
23009 \change_unchanged
23010
23011 \end_layout
23012
23013 \end_inset
23014
23015  A dedicated string for the menu.
23016  You can define an accelerator by appending the respective character to the string,
23017  divided by 
23018 \begin_inset Quotes eld
23019 \end_inset
23020
23021 |
23022 \begin_inset Quotes erd
23023 \end_inset
23024
23025  (e.
23026 \begin_inset space \thinspace{}
23027 \end_inset
23028
23029 g.
23030 \begin_inset space \space{}
23031 \end_inset
23032
23033
23034 \begin_inset Quotes eld
23035 \end_inset
23036
23037
23038 \begin_inset Flex Code
23039 status collapsed
23040
23041 \begin_layout Plain Layout
23042
23043 \change_inserted -712698321 1555575781
23044 My Inset|M
23045 \change_unchanged
23046
23047 \end_layout
23048
23049 \end_inset
23050
23051
23052 \begin_inset Quotes erd
23053 \end_inset
23054
23055 ).
23056  This specification is optional.
23057  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
23058 \change_unchanged
23059
23060 \end_layout
23061
23062 \begin_layout Description
23063 \begin_inset Flex Code
23064 status collapsed
23065
23066 \begin_layout Plain Layout
23067 MultiPar
23068 \end_layout
23069
23070 \end_inset
23071
23072  [
23073 \begin_inset Flex Code
23074 status collapsed
23075
23076 \begin_layout Plain Layout
23077
23078 \emph on
23079 0
23080 \end_layout
23081
23082 \end_inset
23083
23084 ,
23085 \begin_inset space \thinspace{}
23086 \end_inset
23087
23088
23089 \begin_inset Flex Code
23090 status collapsed
23091
23092 \begin_layout Plain Layout
23093 1
23094 \end_layout
23095
23096 \end_inset
23097
23098 ] Whether multiple paragraphs are permitted in this inset.
23099  This will also set 
23100 \begin_inset Flex Code
23101 status collapsed
23102
23103 \begin_layout Plain Layout
23104 CustomPars
23105 \end_layout
23106
23107 \end_inset
23108
23109  to the same value and 
23110 \begin_inset Flex Code
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114 ForcePlain
23115 \end_layout
23116
23117 \end_inset
23118
23119  to the opposite value.
23120  These can be reset to other values,
23121  if they are used 
23122 \emph on
23123 after
23124 \emph default
23125  
23126 \begin_inset Flex Code
23127 status collapsed
23128
23129 \begin_layout Plain Layout
23130 MultiPar
23131 \end_layout
23132
23133 \end_inset
23134
23135 .
23136  Default is true.
23137 \end_layout
23138
23139 \begin_layout Description
23140 \begin_inset Flex Code
23141 status collapsed
23142
23143 \begin_layout Plain Layout
23144 NeedProtect
23145 \end_layout
23146
23147 \end_inset
23148
23149  [
23150 \begin_inset Flex Code
23151 status collapsed
23152
23153 \begin_layout Plain Layout
23154
23155 \emph on
23156 0
23157 \end_layout
23158
23159 \end_inset
23160
23161 ,
23162 \begin_inset space \thinspace{}
23163 \end_inset
23164
23165
23166 \begin_inset Flex Code
23167 status collapsed
23168
23169 \begin_layout Plain Layout
23170 1
23171 \end_layout
23172
23173 \end_inset
23174
23175 ] Whether fragile commands in this inset should be 
23176 \begin_inset Flex Code
23177 status collapsed
23178
23179 \begin_layout Plain Layout
23180
23181 \backslash
23182 protect
23183 \end_layout
23184
23185 \end_inset
23186
23187 'ed.
23188  (Note:
23189  This is 
23190 \emph on
23191 not
23192 \emph default
23193  whether the command should itself be protected.) Default is false.
23194 \change_inserted -712698321 1523633958
23195
23196 \end_layout
23197
23198 \begin_layout Description
23199
23200 \change_inserted -712698321 1552395786
23201 \begin_inset Flex Code
23202 status collapsed
23203
23204 \begin_layout Plain Layout
23205
23206 \change_inserted -712698321 1523633961
23207 NeedCProtect
23208 \change_unchanged
23209
23210 \end_layout
23211
23212 \end_inset
23213
23214  [
23215 \begin_inset Flex Code
23216 status collapsed
23217
23218 \begin_layout Plain Layout
23219
23220 \change_inserted -712698321 1523633958
23221
23222 \emph on
23223 0
23224 \change_unchanged
23225
23226 \end_layout
23227
23228 \end_inset
23229
23230 ,
23231 \begin_inset space \thinspace{}
23232 \end_inset
23233
23234
23235 \begin_inset Flex Code
23236 status collapsed
23237
23238 \begin_layout Plain Layout
23239
23240 \change_inserted -712698321 1523633958
23241 1
23242 \change_unchanged
23243
23244 \end_layout
23245
23246 \end_inset
23247
23248 ] This causes macros that contain this inset to be protected with 
23249 \begin_inset Flex Code
23250 status collapsed
23251
23252 \begin_layout Plain Layout
23253
23254 \change_inserted -712698321 1523634038
23255
23256 \backslash
23257 cprotect
23258 \change_unchanged
23259
23260 \end_layout
23261
23262 \end_inset
23263
23264  (cf.
23265  package 
23266 \family sans
23267 cprotect
23268 \family default
23269 ) if necessary and thus allows (some) verbatim stuff in macros.
23270  Default is false.
23271 \end_layout
23272
23273 \begin_layout Description
23274
23275 \change_inserted -712698321 1555579651
23276 \begin_inset Flex Code
23277 status collapsed
23278
23279 \begin_layout Plain Layout
23280
23281 \change_inserted -712698321 1552395787
23282 NeedMBoxProtect
23283 \change_unchanged
23284
23285 \end_layout
23286
23287 \end_inset
23288
23289  [
23290 \begin_inset Flex Code
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294
23295 \change_inserted -712698321 1552395787
23296
23297 \emph on
23298 0
23299 \change_unchanged
23300
23301 \end_layout
23302
23303 \end_inset
23304
23305 ,
23306 \begin_inset space \thinspace{}
23307 \end_inset
23308
23309
23310 \begin_inset Flex Code
23311 status collapsed
23312
23313 \begin_layout Plain Layout
23314
23315 \change_inserted -712698321 1552395787
23316 1
23317 \change_unchanged
23318
23319 \end_layout
23320
23321 \end_inset
23322
23323 ] Whether specific commands in this inset (such as 
23324 \begin_inset Flex Code
23325 status collapsed
23326
23327 \begin_layout Plain Layout
23328
23329 \change_inserted -712698321 1552395787
23330
23331 \backslash
23332 cite
23333 \change_unchanged
23334
23335 \end_layout
23336
23337 \end_inset
23338
23339  and 
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344
23345 \change_inserted -712698321 1552395787
23346
23347 \backslash
23348 ref
23349 \change_unchanged
23350
23351 \end_layout
23352
23353 \end_inset
23354
23355 ) should be protected in an 
23356 \begin_inset Flex Code
23357 status collapsed
23358
23359 \begin_layout Plain Layout
23360
23361 \change_inserted -712698321 1552395787
23362
23363 \backslash
23364 mbox
23365 \change_unchanged
23366
23367 \end_layout
23368
23369 \end_inset
23370
23371 .
23372  This is particularly needed for insets that draw on 
23373 \family sans
23374 ulem
23375 \family default
23376  or 
23377 \family sans
23378 soul
23379 \family default
23380  commands which parse their content in complex ways.
23381  Default is false.
23382 \end_layout
23383
23384 \begin_layout Description
23385
23386 \change_inserted -712698321 1555579742
23387 \begin_inset Flex Code
23388 status collapsed
23389
23390 \begin_layout Plain Layout
23391
23392 \change_inserted -712698321 1555579658
23393 NewlineCmd
23394 \change_unchanged
23395
23396 \end_layout
23397
23398 \end_inset
23399
23400  
23401 \begin_inset Flex Code
23402 status collapsed
23403
23404 \begin_layout Plain Layout
23405
23406 \change_inserted -712698321 1555579651
23407 [string]
23408 \change_unchanged
23409
23410 \end_layout
23411
23412 \end_inset
23413
23414  Option to define a different command (from the default 
23415 \begin_inset Flex Code
23416 status collapsed
23417
23418 \begin_layout Plain Layout
23419
23420 \change_inserted -712698321 1555579742
23421
23422 \backslash
23423
23424 \backslash
23425
23426 \change_unchanged
23427
23428 \end_layout
23429
23430 \end_inset
23431
23432 ) to be used for line breaks.
23433  The initial backslash must not be specified.
23434 \change_unchanged
23435
23436 \end_layout
23437
23438 \begin_layout Description
23439 \begin_inset Flex Code
23440 status collapsed
23441
23442 \begin_layout Plain Layout
23443 NoInsetLayout
23444 \end_layout
23445
23446 \end_inset
23447
23448  [
23449 \begin_inset Flex Code
23450 status collapsed
23451
23452 \begin_layout Plain Layout
23453 <layout>
23454 \end_layout
23455
23456 \end_inset
23457
23458 ] Deletes an existing 
23459 \begin_inset Flex Code
23460 status collapsed
23461
23462 \begin_layout Plain Layout
23463 InsetLayout
23464 \end_layout
23465
23466 \end_inset
23467
23468 .
23469 \end_layout
23470
23471 \begin_layout Description
23472 \begin_inset Flex Code
23473 status collapsed
23474
23475 \begin_layout Plain Layout
23476 ObsoletedBy
23477 \end_layout
23478
23479 \end_inset
23480
23481  [
23482 \begin_inset Flex Code
23483 status collapsed
23484
23485 \begin_layout Plain Layout
23486 <layout>
23487 \end_layout
23488
23489 \end_inset
23490
23491 ] Name of an 
23492 \begin_inset Flex Code
23493 status collapsed
23494
23495 \begin_layout Plain Layout
23496 InsetLayout
23497 \end_layout
23498
23499 \end_inset
23500
23501  that has replaced this 
23502 \begin_inset Flex Code
23503 status collapsed
23504
23505 \begin_layout Plain Layout
23506 InsetLayout
23507 \end_layout
23508
23509 \end_inset
23510
23511 .
23512  This is used to rename an 
23513 \begin_inset Flex Code
23514 status collapsed
23515
23516 \begin_layout Plain Layout
23517 InsetLayout
23518 \end_layout
23519
23520 \end_inset
23521
23522 ,
23523  while keeping backward compatibility.
23524 \change_inserted -712698321 1559491850
23525
23526 \end_layout
23527
23528 \begin_layout Description
23529
23530 \change_inserted -712698321 1559492002
23531 \begin_inset Flex Code
23532 status collapsed
23533
23534 \begin_layout Plain Layout
23535
23536 \change_inserted -712698321 1559491854
23537 ParbreakIgnored
23538 \change_unchanged
23539
23540 \end_layout
23541
23542 \end_inset
23543
23544  [
23545 \begin_inset Flex Code
23546 status collapsed
23547
23548 \begin_layout Plain Layout
23549
23550 \change_inserted -712698321 1559491850
23551
23552 \emph on
23553 0
23554 \change_unchanged
23555
23556 \end_layout
23557
23558 \end_inset
23559
23560 ,
23561 \begin_inset space \thinspace{}
23562 \end_inset
23563
23564
23565 \begin_inset Flex Code
23566 status collapsed
23567
23568 \begin_layout Plain Layout
23569
23570 \change_inserted -712698321 1559491850
23571 1
23572 \change_unchanged
23573
23574 \end_layout
23575
23576 \end_inset
23577
23578 ] If this is set to 
23579 \begin_inset Flex Code
23580 status collapsed
23581
23582 \begin_layout Plain Layout
23583
23584 \change_inserted -712698321 1559491881
23585 1
23586 \change_unchanged
23587
23588 \end_layout
23589
23590 \end_inset
23591
23592 ,
23593  paragraph breaks will be ignored in the output.
23594  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
23595  workarea,
23596  without any effect in the output.
23597 \change_unchanged
23598
23599 \end_layout
23600
23601 \begin_layout Description
23602 \begin_inset Flex Code
23603 status collapsed
23604
23605 \begin_layout Plain Layout
23606 ParbreakIsNewline
23607 \end_layout
23608
23609 \end_inset
23610
23611  [
23612 \begin_inset Flex Code
23613 status collapsed
23614
23615 \begin_layout Plain Layout
23616
23617 \emph on
23618 0
23619 \end_layout
23620
23621 \end_inset
23622
23623 ,
23624 \begin_inset space \thinspace{}
23625 \end_inset
23626
23627
23628 \begin_inset Flex Code
23629 status collapsed
23630
23631 \begin_layout Plain Layout
23632 1
23633 \end_layout
23634
23635 \end_inset
23636
23637 ] As with paragraph styles,
23638  see 
23639 \begin_inset CommandInset ref
23640 LatexCommand ref
23641 reference "subsec:Paragraph-Styles"
23642 nolink "false"
23643
23644 \end_inset
23645
23646 .
23647  Default is false.
23648 \end_layout
23649
23650 \begin_layout Description
23651 \begin_inset Flex Code
23652 status collapsed
23653
23654 \begin_layout Plain Layout
23655 PassThru
23656 \end_layout
23657
23658 \end_inset
23659
23660  [
23661 \begin_inset Flex Code
23662 status collapsed
23663
23664 \begin_layout Plain Layout
23665
23666 \emph on
23667 0
23668 \end_layout
23669
23670 \end_inset
23671
23672 ,
23673 \begin_inset space \thinspace{}
23674 \end_inset
23675
23676
23677 \begin_inset Flex Code
23678 status collapsed
23679
23680 \begin_layout Plain Layout
23681 1
23682 \end_layout
23683
23684 \end_inset
23685
23686 ] As with paragraph styles,
23687  see 
23688 \begin_inset CommandInset ref
23689 LatexCommand ref
23690 reference "subsec:Paragraph-Styles"
23691 nolink "false"
23692
23693 \end_inset
23694
23695 .
23696  Default is false.
23697 \end_layout
23698
23699 \begin_layout Description
23700 \begin_inset Flex Code
23701 status collapsed
23702
23703 \begin_layout Plain Layout
23704 Preamble
23705 \end_layout
23706
23707 \end_inset
23708
23709  As with paragraph styles,
23710  see 
23711 \begin_inset CommandInset ref
23712 LatexCommand ref
23713 reference "subsec:Paragraph-Styles"
23714 nolink "false"
23715
23716 \end_inset
23717
23718 .
23719 \end_layout
23720
23721 \begin_layout Description
23722 \begin_inset Flex Code
23723 status collapsed
23724
23725 \begin_layout Plain Layout
23726 RefPrefix
23727 \end_layout
23728
23729 \end_inset
23730
23731  [
23732 \begin_inset Flex Code
23733 status collapsed
23734
23735 \begin_layout Plain Layout
23736 string
23737 \end_layout
23738
23739 \end_inset
23740
23741 ] The prefix to use when creating labels referring to insets of this type.
23742  This allows the use of formatted references.
23743 \end_layout
23744
23745 \begin_layout Description
23746 \begin_inset Flex Code
23747 status collapsed
23748
23749 \begin_layout Plain Layout
23750 Requires
23751 \end_layout
23752
23753 \end_inset
23754
23755  [
23756 \begin_inset Flex Code
23757 status collapsed
23758
23759 \begin_layout Plain Layout
23760 string
23761 \end_layout
23762
23763 \end_inset
23764
23765 ] As with paragraph styles,
23766  see 
23767 \begin_inset CommandInset ref
23768 LatexCommand ref
23769 reference "subsec:Paragraph-Styles"
23770 nolink "false"
23771
23772 \end_inset
23773
23774 .
23775 \end_layout
23776
23777 \begin_layout Description
23778 \begin_inset Flex Code
23779 status collapsed
23780
23781 \begin_layout Plain Layout
23782 ResetArgs
23783 \end_layout
23784
23785 \end_inset
23786
23787  [
23788 \begin_inset Flex Code
23789 status collapsed
23790
23791 \begin_layout Plain Layout
23792
23793 \emph on
23794 0
23795 \end_layout
23796
23797 \end_inset
23798
23799 ,
23800 \begin_inset space \thinspace{}
23801 \end_inset
23802
23803
23804 \begin_inset Flex Code
23805 status collapsed
23806
23807 \begin_layout Plain Layout
23808 1
23809 \end_layout
23810
23811 \end_inset
23812
23813 ] Resets the \SpecialChar LaTeX
23814  arguments of this layout (as defined via the 
23815 \begin_inset Flex Code
23816 status collapsed
23817
23818 \begin_layout Plain Layout
23819 Argument
23820 \end_layout
23821
23822 \end_inset
23823
23824  tag).
23825  This is useful if you have copied a style via 
23826 \begin_inset Flex Code
23827 status collapsed
23828
23829 \begin_layout Plain Layout
23830 CopyStyle
23831 \end_layout
23832
23833 \end_inset
23834
23835 ,
23836  but you do not want to inherit its (required and optional) arguments.
23837 \end_layout
23838
23839 \begin_layout Description
23840 \begin_inset Flex Code
23841 status collapsed
23842
23843 \begin_layout Plain Layout
23844 ResetsFont
23845 \end_layout
23846
23847 \end_inset
23848
23849  [
23850 \begin_inset Flex Code
23851 status collapsed
23852
23853 \begin_layout Plain Layout
23854
23855 \emph on
23856 0
23857 \end_layout
23858
23859 \end_inset
23860
23861 ,
23862 \begin_inset space \thinspace{}
23863 \end_inset
23864
23865
23866 \begin_inset Flex Code
23867 status collapsed
23868
23869 \begin_layout Plain Layout
23870 1
23871 \end_layout
23872
23873 \end_inset
23874
23875
23876 \change_inserted -712698321 1597733473
23877 If 
23878 \begin_inset Flex Code
23879 status collapsed
23880
23881 \begin_layout Plain Layout
23882
23883 \change_inserted -712698321 1597732178
23884 1
23885 \change_unchanged
23886
23887 \end_layout
23888
23889 \end_inset
23890
23891 ,
23892  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.
23893 \begin_inset space \thinspace{}
23894 \end_inset
23895
23896 g.,
23897  
23898 \begin_inset Flex Code
23899 status collapsed
23900
23901 \begin_layout Plain Layout
23902
23903 \change_inserted -712698321 1597733683
23904
23905 \backslash
23906 textbf{Sourrounding text 
23907 \backslash
23908 myinset{
23909 \backslash
23910 textbf{content}}\SpecialChar ldots
23911 }
23912 \change_unchanged
23913
23914 \end_layout
23915
23916 \end_inset
23917
23918  rather than 
23919 \begin_inset Flex Code
23920 status collapsed
23921
23922 \begin_layout Plain Layout
23923
23924 \change_inserted -712698321 1597733686
23925
23926 \backslash
23927 textbf{Sourrounding text 
23928 \backslash
23929 myinset{content}\SpecialChar ldots
23930 }
23931 \change_unchanged
23932
23933 \end_layout
23934
23935 \end_inset
23936
23937 .
23938  Setting this makes sense for commands that internally reset font settings (e.
23939 \begin_inset space \thinspace{}
23940 \end_inset
23941
23942 g.,
23943  footnotes).
23944  Note that wrongly setting this might lead to unwanted result (e.
23945 \begin_inset space \thinspace{}
23946 \end_inset
23947
23948 g.,
23949  with 
23950 \begin_inset Flex Code
23951 status collapsed
23952
23953 \begin_layout Plain Layout
23954
23955 \change_inserted -712698321 1597733688
23956
23957 \backslash
23958 emph{Sourrounding text 
23959 \backslash
23960 myinset{
23961 \backslash
23962 emph{content}}\SpecialChar ldots
23963 }
23964 \change_unchanged
23965
23966 \end_layout
23967
23968 \end_inset
23969
23970 ,
23971  content is upright,
23972  as 
23973 \begin_inset Flex Code
23974 status collapsed
23975
23976 \begin_layout Plain Layout
23977
23978 \change_inserted -712698321 1597733278
23979
23980 \backslash
23981 emph
23982 \change_unchanged
23983
23984 \end_layout
23985
23986 \end_inset
23987
23988  toggles.
23989  
23990 \change_deleted -712698321 1597733283
23991 Whether this inset should use the font of its surrounding environment or uses its own.
23992  
23993 \change_unchanged
23994 Default is 
23995 \change_deleted -712698321 1597733290
23996 false
23997 \change_inserted -712698321 1597733290
23998
23999 \begin_inset Flex Code
24000 status collapsed
24001
24002 \begin_layout Plain Layout
24003
24004 \change_inserted -712698321 1597733292
24005 0
24006 \change_unchanged
24007
24008 \end_layout
24009
24010 \end_inset
24011
24012
24013 \change_unchanged
24014 :
24015  
24016 \change_deleted -712698321 1597733327
24017 use the font of the surrounding environment
24018 \change_inserted -712698321 1597733343
24019 font changes are not redone inside the inset
24020 \change_unchanged
24021 .
24022 \end_layout
24023
24024 \begin_layout Description
24025 \begin_inset Flex Code
24026 status collapsed
24027
24028 \begin_layout Plain Layout
24029 RightDelim
24030 \end_layout
24031
24032 \end_inset
24033
24034  [
24035 \begin_inset Flex Code
24036 status collapsed
24037
24038 \begin_layout Plain Layout
24039 string
24040 \end_layout
24041
24042 \end_inset
24043
24044 ] A string that is put at the end of the layout content.
24045  A line break in the output can be indicated by 
24046 \begin_inset Flex Code
24047 status collapsed
24048
24049 \begin_layout Plain Layout
24050 <br/>
24051 \end_layout
24052
24053 \end_inset
24054
24055 .
24056 \end_layout
24057
24058 \begin_layout Description
24059 \begin_inset Flex Code
24060 status collapsed
24061
24062 \begin_layout Plain Layout
24063 Spellcheck
24064 \end_layout
24065
24066 \end_inset
24067
24068  [
24069 \begin_inset Flex Code
24070 status collapsed
24071
24072 \begin_layout Plain Layout
24073 0
24074 \end_layout
24075
24076 \end_inset
24077
24078 ,
24079 \begin_inset space \thinspace{}
24080 \end_inset
24081
24082
24083 \begin_inset Flex Code
24084 status collapsed
24085
24086 \begin_layout Plain Layout
24087
24088 \emph on
24089 1
24090 \end_layout
24091
24092 \end_inset
24093
24094 ] Allow spell-checking the contents of this inset.
24095  Default is true.
24096 \change_inserted -584632292 1615846659
24097
24098 \end_layout
24099
24100 \begin_layout Subsection
24101
24102 \change_inserted -584632292 1615846729
24103 Arguments
24104 \begin_inset CommandInset label
24105 LatexCommand label
24106 name "subsec:Arguments"
24107
24108 \end_inset
24109
24110
24111 \end_layout
24112
24113 \begin_layout Standard
24114
24115 \change_inserted -584632292 1615846807
24116 Both paragraph styles and inset layouts allow for 
24117 \emph on
24118 arguments
24119 \emph default
24120  as well as the main content.
24121  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
24122 .
24123  Each (optional or required) argument of a command or environment—
24124 except for the required argument that is associated with the content—
24125 has a separate definition,
24126  where the number specifies the order of the arguments.
24127  The definition must end with 
24128 \begin_inset Flex Code
24129 status collapsed
24130
24131 \begin_layout Plain Layout
24132
24133 \change_inserted -584632292 1615846730
24134 EndArgument
24135 \change_unchanged
24136
24137 \end_layout
24138
24139 \end_inset
24140
24141 .
24142  So a command with two optional arguments looks like:
24143 \end_layout
24144
24145 \begin_layout Quote
24146
24147 \change_inserted -584632292 1615846730
24148
24149 \family typewriter
24150 Argument 1
24151 \end_layout
24152
24153 \begin_layout Quote
24154
24155 \change_inserted -584632292 1615846730
24156
24157 \family typewriter
24158 ...
24159 \end_layout
24160
24161 \begin_layout Quote
24162
24163 \change_inserted -584632292 1615846730
24164
24165 \family typewriter
24166 EndArgument
24167 \end_layout
24168
24169 \begin_layout Quote
24170
24171 \change_inserted -584632292 1615846730
24172
24173 \family typewriter
24174 Argument 2
24175 \end_layout
24176
24177 \begin_layout Quote
24178
24179 \change_inserted -584632292 1615846730
24180
24181 \family typewriter
24182 ...
24183 \end_layout
24184
24185 \begin_layout Quote
24186
24187 \change_inserted -584632292 1615846730
24188
24189 \family typewriter
24190 EndArgument
24191 \end_layout
24192
24193 \begin_layout Standard
24194
24195 \change_inserted -584632292 1615846730
24196 Inside the 
24197 \begin_inset Flex Code
24198 status collapsed
24199
24200 \begin_layout Plain Layout
24201
24202 \change_inserted -584632292 1615846730
24203 Argument
24204 \change_unchanged
24205
24206 \end_layout
24207
24208 \end_inset
24209
24210  definition,
24211  the following specifications are possible:
24212 \end_layout
24213
24214 \begin_layout Itemize
24215
24216 \change_inserted -584632292 1615846730
24217 \begin_inset Flex Code
24218 status collapsed
24219
24220 \begin_layout Plain Layout
24221
24222 \change_inserted -584632292 1615846730
24223 LabelString
24224 \change_unchanged
24225
24226 \end_layout
24227
24228 \end_inset
24229
24230  
24231 \begin_inset Flex Code
24232 status collapsed
24233
24234 \begin_layout Plain Layout
24235
24236 \change_inserted -584632292 1615846730
24237 [string]
24238 \change_unchanged
24239
24240 \end_layout
24241
24242 \end_inset
24243
24244  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 
24245 \begin_inset Flex Code
24246 status collapsed
24247
24248 \begin_layout Plain Layout
24249
24250 \change_inserted -584632292 1615846730
24251 MenuString
24252 \change_unchanged
24253
24254 \end_layout
24255
24256 \end_inset
24257
24258 ).
24259  For the menu,
24260  you can define an accelerator by appending the respective character to the string,
24261  divided by 
24262 \begin_inset Quotes eld
24263 \end_inset
24264
24265 |
24266 \begin_inset Quotes erd
24267 \end_inset
24268
24269  (e.
24270 \begin_inset space \thinspace{}
24271 \end_inset
24272
24273 g.
24274 \begin_inset space \space{}
24275 \end_inset
24276
24277
24278 \begin_inset Quotes eld
24279 \end_inset
24280
24281
24282 \begin_inset Flex Code
24283 status collapsed
24284
24285 \begin_layout Plain Layout
24286
24287 \change_inserted -584632292 1615846730
24288 Short Title|S
24289 \change_unchanged
24290
24291 \end_layout
24292
24293 \end_inset
24294
24295
24296 \begin_inset Quotes erd
24297 \end_inset
24298
24299 ).
24300 \end_layout
24301
24302 \begin_layout Itemize
24303
24304 \change_inserted -584632292 1615846730
24305 \begin_inset Flex Code
24306 status collapsed
24307
24308 \begin_layout Plain Layout
24309
24310 \change_inserted -584632292 1615846730
24311 MenuString
24312 \change_unchanged
24313
24314 \end_layout
24315
24316 \end_inset
24317
24318  
24319 \begin_inset Flex Code
24320 status collapsed
24321
24322 \begin_layout Plain Layout
24323
24324 \change_inserted -584632292 1615846730
24325 [string]
24326 \change_unchanged
24327
24328 \end_layout
24329
24330 \end_inset
24331
24332  A separate string for the menu.
24333  You can define an accelerator by appending the respective character to the string,
24334  divided by 
24335 \begin_inset Quotes eld
24336 \end_inset
24337
24338 |
24339 \begin_inset Quotes erd
24340 \end_inset
24341
24342  (e.
24343 \begin_inset space \thinspace{}
24344 \end_inset
24345
24346 g.
24347 \begin_inset space \space{}
24348 \end_inset
24349
24350
24351 \begin_inset Quotes eld
24352 \end_inset
24353
24354
24355 \begin_inset Flex Code
24356 status collapsed
24357
24358 \begin_layout Plain Layout
24359
24360 \change_inserted -584632292 1615846730
24361 Short Title|S
24362 \change_unchanged
24363
24364 \end_layout
24365
24366 \end_inset
24367
24368
24369 \begin_inset Quotes erd
24370 \end_inset
24371
24372 ).
24373  This specification is optional.
24374  If it is not given the 
24375 \begin_inset Flex Code
24376 status collapsed
24377
24378 \begin_layout Plain Layout
24379
24380 \change_inserted -584632292 1615846730
24381 LabelString
24382 \change_unchanged
24383
24384 \end_layout
24385
24386 \end_inset
24387
24388  will be used instead for the menu.
24389 \end_layout
24390
24391 \begin_layout Itemize
24392
24393 \change_inserted -584632292 1615846730
24394 \begin_inset Flex Code
24395 status collapsed
24396
24397 \begin_layout Plain Layout
24398
24399 \change_inserted -584632292 1615846730
24400 Tooltip
24401 \change_unchanged
24402
24403 \end_layout
24404
24405 \end_inset
24406
24407  
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412
24413 \change_inserted -584632292 1615846730
24414 [string]
24415 \change_unchanged
24416
24417 \end_layout
24418
24419 \end_inset
24420
24421  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
24422 \end_layout
24423
24424 \begin_layout Itemize
24425
24426 \change_inserted -584632292 1615846730
24427 \begin_inset Flex Code
24428 status collapsed
24429
24430 \begin_layout Plain Layout
24431
24432 \change_inserted -584632292 1615846730
24433 Mandatory
24434 \change_unchanged
24435
24436 \end_layout
24437
24438 \end_inset
24439
24440  [
24441 \begin_inset Flex Code
24442 status collapsed
24443
24444 \begin_layout Plain Layout
24445
24446 \change_inserted -584632292 1615846730
24447
24448 \emph on
24449 0
24450 \change_unchanged
24451
24452 \end_layout
24453
24454 \end_inset
24455
24456 ,
24457 \begin_inset space \thinspace{}
24458 \end_inset
24459
24460
24461 \begin_inset Flex Code
24462 status collapsed
24463
24464 \begin_layout Plain Layout
24465
24466 \change_inserted -584632292 1615846730
24467 1
24468 \change_unchanged
24469
24470 \end_layout
24471
24472 \end_inset
24473
24474 ] Declare if this is a mandatory (1) or an optional (0) argument.
24475  Mandatory arguments will be output empty if not given,
24476  while optional arguments will not be output at all.
24477  By default,
24478  mandatory arguments are delimited by 
24479 \begin_inset Flex Code
24480 status collapsed
24481
24482 \begin_layout Plain Layout
24483
24484 \change_inserted -584632292 1615846730
24485 {...}
24486 \change_unchanged
24487
24488 \end_layout
24489
24490 \end_inset
24491
24492 ,
24493  while optional arguments are delimited by 
24494 \begin_inset Flex Code
24495 status collapsed
24496
24497 \begin_layout Plain Layout
24498
24499 \change_inserted -584632292 1615846730
24500 [...]
24501 \change_unchanged
24502
24503 \end_layout
24504
24505 \end_inset
24506
24507
24508 \end_layout
24509
24510 \begin_layout Itemize
24511
24512 \change_inserted -584632292 1615846730
24513 \begin_inset Flex Code
24514 status collapsed
24515
24516 \begin_layout Plain Layout
24517
24518 \change_inserted -584632292 1615846730
24519 NewlineCmd
24520 \change_unchanged
24521
24522 \end_layout
24523
24524 \end_inset
24525
24526  
24527 \begin_inset Flex Code
24528 status collapsed
24529
24530 \begin_layout Plain Layout
24531
24532 \change_inserted -584632292 1615846730
24533 [string]
24534 \change_unchanged
24535
24536 \end_layout
24537
24538 \end_inset
24539
24540  Option to define a different command (from the default 
24541 \begin_inset Flex Code
24542 status collapsed
24543
24544 \begin_layout Plain Layout
24545
24546 \change_inserted -584632292 1615846730
24547
24548 \backslash
24549
24550 \backslash
24551
24552 \change_unchanged
24553
24554 \end_layout
24555
24556 \end_inset
24557
24558 ) to be used for line breaks.
24559  The initial backslash must not be specified.
24560 \end_layout
24561
24562 \begin_layout Itemize
24563
24564 \change_inserted -584632292 1615846730
24565 \begin_inset Flex Code
24566 status collapsed
24567
24568 \begin_layout Plain Layout
24569
24570 \change_inserted -584632292 1615846730
24571 Requires
24572 \change_unchanged
24573
24574 \end_layout
24575
24576 \end_inset
24577
24578  
24579 \begin_inset Flex Code
24580 status collapsed
24581
24582 \begin_layout Plain Layout
24583
24584 \change_inserted -584632292 1615846730
24585 [int=0]
24586 \change_unchanged
24587
24588 \end_layout
24589
24590 \end_inset
24591
24592  defines another argument (by its number) which this argument requires to be output if it is itself output.
24593  E.
24594 \begin_inset space \thinspace{}
24595 \end_inset
24596
24597 g.,
24598  in \SpecialChar LaTeX
24599  commands,
24600  optional arguments often require previous optional arguments to be output (at least empty),
24601  as in 
24602 \begin_inset Flex Code
24603 status collapsed
24604
24605 \begin_layout Plain Layout
24606
24607 \change_inserted -584632292 1615846730
24608
24609 \backslash
24610 command[][argument]{text}
24611 \change_unchanged
24612
24613 \end_layout
24614
24615 \end_inset
24616
24617 .
24618  This can be achieved by the statement 
24619 \begin_inset Flex Code
24620 status collapsed
24621
24622 \begin_layout Plain Layout
24623
24624 \change_inserted -584632292 1615846730
24625 Requires 1
24626 \change_unchanged
24627
24628 \end_layout
24629
24630 \end_inset
24631
24632  within 
24633 \begin_inset Flex Code
24634 status collapsed
24635
24636 \begin_layout Plain Layout
24637
24638 \change_inserted -584632292 1615846730
24639 Argument 2
24640 \change_unchanged
24641
24642 \end_layout
24643
24644 \end_inset
24645
24646 .
24647 \end_layout
24648
24649 \begin_layout Itemize
24650
24651 \change_inserted -584632292 1615846730
24652 \begin_inset Flex Code
24653 status collapsed
24654
24655 \begin_layout Plain Layout
24656
24657 \change_inserted -584632292 1615846730
24658 LeftDelim
24659 \change_unchanged
24660
24661 \end_layout
24662
24663 \end_inset
24664
24665  
24666 \begin_inset Flex Code
24667 status collapsed
24668
24669 \begin_layout Plain Layout
24670
24671 \change_inserted -584632292 1615846730
24672 [string]
24673 \change_unchanged
24674
24675 \end_layout
24676
24677 \end_inset
24678
24679  defines a custom left delimiter (instead of 
24680 \begin_inset Flex Code
24681 status collapsed
24682
24683 \begin_layout Plain Layout
24684
24685 \change_inserted -584632292 1615846730
24686 {
24687 \change_unchanged
24688
24689 \end_layout
24690
24691 \end_inset
24692
24693  or 
24694 \begin_inset Flex Code
24695 status collapsed
24696
24697 \begin_layout Plain Layout
24698
24699 \change_inserted -584632292 1615846730
24700 [
24701 \change_unchanged
24702
24703 \end_layout
24704
24705 \end_inset
24706
24707 ).
24708  A line break in the output can be indicated by 
24709 \begin_inset Flex Code
24710 status collapsed
24711
24712 \begin_layout Plain Layout
24713
24714 \change_inserted -584632292 1615846730
24715 <br/>
24716 \change_unchanged
24717
24718 \end_layout
24719
24720 \end_inset
24721
24722 .
24723 \end_layout
24724
24725 \begin_layout Itemize
24726
24727 \change_inserted -584632292 1615846730
24728 \begin_inset Flex Code
24729 status collapsed
24730
24731 \begin_layout Plain Layout
24732
24733 \change_inserted -584632292 1615846730
24734 RightDelim
24735 \change_unchanged
24736
24737 \end_layout
24738
24739 \end_inset
24740
24741  
24742 \begin_inset Flex Code
24743 status collapsed
24744
24745 \begin_layout Plain Layout
24746
24747 \change_inserted -584632292 1615846730
24748 [string]
24749 \change_unchanged
24750
24751 \end_layout
24752
24753 \end_inset
24754
24755  defines a custom right delimiter (instead of 
24756 \begin_inset Flex Code
24757 status collapsed
24758
24759 \begin_layout Plain Layout
24760
24761 \change_inserted -584632292 1615846730
24762 }
24763 \change_unchanged
24764
24765 \end_layout
24766
24767 \end_inset
24768
24769  or 
24770 \begin_inset Flex Code
24771 status collapsed
24772
24773 \begin_layout Plain Layout
24774
24775 \change_inserted -584632292 1615846730
24776 ]
24777 \change_unchanged
24778
24779 \end_layout
24780
24781 \end_inset
24782
24783 ).
24784  A line break in the output can be indicated by 
24785 \begin_inset Flex Code
24786 status collapsed
24787
24788 \begin_layout Plain Layout
24789
24790 \change_inserted -584632292 1615846730
24791 <br/>
24792 \change_unchanged
24793
24794 \end_layout
24795
24796 \end_inset
24797
24798 .
24799 \end_layout
24800
24801 \begin_layout Itemize
24802
24803 \change_inserted -584632292 1615846730
24804 \begin_inset Flex Code
24805 status collapsed
24806
24807 \begin_layout Plain Layout
24808
24809 \change_inserted -584632292 1615846730
24810 DefaultArg
24811 \change_unchanged
24812
24813 \end_layout
24814
24815 \end_inset
24816
24817  
24818 \begin_inset Flex Code
24819 status collapsed
24820
24821 \begin_layout Plain Layout
24822
24823 \change_inserted -584632292 1615846730
24824 [string]
24825 \change_unchanged
24826
24827 \end_layout
24828
24829 \end_inset
24830
24831  defines an argument that is inserted if and only if no user-specified arguments were given,
24832  i.
24833 \begin_inset space \thinspace{}
24834 \end_inset
24835
24836 e.
24837 \begin_inset space \space{}
24838 \end_inset
24839
24840 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
24841  Multiple arguments need to be separated by comma.
24842 \end_layout
24843
24844 \begin_layout Itemize
24845
24846 \change_inserted -584632292 1615846730
24847 \begin_inset Flex Code
24848 status collapsed
24849
24850 \begin_layout Plain Layout
24851
24852 \change_inserted -584632292 1615846730
24853 PresetArg
24854 \change_unchanged
24855
24856 \end_layout
24857
24858 \end_inset
24859
24860  
24861 \begin_inset Flex Code
24862 status collapsed
24863
24864 \begin_layout Plain Layout
24865
24866 \change_inserted -584632292 1615846730
24867 [string]
24868 \change_unchanged
24869
24870 \end_layout
24871
24872 \end_inset
24873
24874  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
24875  Multiple arguments need to be separated by comma.
24876 \end_layout
24877
24878 \begin_layout Itemize
24879
24880 \change_inserted -584632292 1615846730
24881 \begin_inset Flex Code
24882 status collapsed
24883
24884 \begin_layout Plain Layout
24885
24886 \change_inserted -584632292 1615846730
24887 Font
24888 \change_unchanged
24889
24890 \end_layout
24891
24892 \end_inset
24893
24894  The font used for the argument content,
24895  see 
24896 \begin_inset CommandInset ref
24897 LatexCommand ref
24898 reference "subsec:Font-description"
24899 nolink "false"
24900
24901 \end_inset
24902
24903 .
24904 \end_layout
24905
24906 \begin_layout Itemize
24907
24908 \change_inserted -584632292 1615846730
24909 \begin_inset Flex Code
24910 status collapsed
24911
24912 \begin_layout Plain Layout
24913
24914 \change_inserted -584632292 1615846730
24915 FreeSpacing
24916 \change_unchanged
24917
24918 \end_layout
24919
24920 \end_inset
24921
24922  [
24923 \begin_inset Flex Code
24924 status collapsed
24925
24926 \begin_layout Plain Layout
24927
24928 \change_inserted -584632292 1615846730
24929
24930 \emph on
24931 0
24932 \change_unchanged
24933
24934 \end_layout
24935
24936 \end_inset
24937
24938 ,
24939 \begin_inset space \thinspace{}
24940 \end_inset
24941
24942
24943 \begin_inset Flex Code
24944 status collapsed
24945
24946 \begin_layout Plain Layout
24947
24948 \change_inserted -584632292 1615846730
24949 1
24950 \change_unchanged
24951
24952 \end_layout
24953
24954 \end_inset
24955
24956 ] As with paragraph styles,
24957  see 
24958 \begin_inset CommandInset ref
24959 LatexCommand ref
24960 reference "subsec:Paragraph-Styles"
24961 nolink "false"
24962
24963 \end_inset
24964
24965 .
24966 \end_layout
24967
24968 \begin_layout Itemize
24969
24970 \change_inserted -584632292 1615846730
24971 \begin_inset Flex Code
24972 status collapsed
24973
24974 \begin_layout Plain Layout
24975
24976 \change_inserted -584632292 1615846730
24977 LabelFont
24978 \change_unchanged
24979
24980 \end_layout
24981
24982 \end_inset
24983
24984  The font used for the label;
24985  see 
24986 \begin_inset CommandInset ref
24987 LatexCommand ref
24988 reference "subsec:Font-description"
24989 nolink "false"
24990
24991 \end_inset
24992
24993 .
24994 \end_layout
24995
24996 \begin_layout Itemize
24997
24998 \change_inserted -584632292 1615846730
24999 \begin_inset Flex Code
25000 status collapsed
25001
25002 \begin_layout Plain Layout
25003
25004 \change_inserted -584632292 1615846730
25005 Decoration
25006 \change_unchanged
25007
25008 \end_layout
25009
25010 \end_inset
25011
25012  [
25013 \begin_inset Flex Code
25014 status collapsed
25015
25016 \begin_layout Plain Layout
25017
25018 \change_inserted -584632292 1615846730
25019
25020 \emph on
25021 Classic
25022 \emph default
25023 ,
25024  Minimalistic,
25025  Conglomerate
25026 \change_unchanged
25027
25028 \end_layout
25029
25030 \end_inset
25031
25032 ] describes the rendering style used for the inset's frame and buttons.
25033 \end_layout
25034
25035 \begin_layout Itemize
25036
25037 \change_inserted -584632292 1615846730
25038 \begin_inset Flex Code
25039 status collapsed
25040
25041 \begin_layout Plain Layout
25042
25043 \change_inserted -584632292 1615846730
25044 AutoInsert
25045 \change_unchanged
25046
25047 \end_layout
25048
25049 \end_inset
25050
25051  
25052 \begin_inset Flex Code
25053 status collapsed
25054
25055 \begin_layout Plain Layout
25056
25057 \change_inserted -584632292 1615846730
25058 [int=0]
25059 \change_unchanged
25060
25061 \end_layout
25062
25063 \end_inset
25064
25065  If this is set to 
25066 \begin_inset Flex Code
25067 status collapsed
25068
25069 \begin_layout Plain Layout
25070
25071 \change_inserted -584632292 1615846730
25072 1
25073 \change_unchanged
25074
25075 \end_layout
25076
25077 \end_inset
25078
25079 ,
25080  this argument is automatically inserted when the respective style is selected.
25081 \end_layout
25082
25083 \begin_layout Itemize
25084
25085 \change_inserted -584632292 1615846730
25086 \begin_inset Flex Code
25087 status collapsed
25088
25089 \begin_layout Plain Layout
25090
25091 \change_inserted -584632292 1615846730
25092 InsertOnNewline
25093 \change_unchanged
25094
25095 \end_layout
25096
25097 \end_inset
25098
25099  
25100 \begin_inset Flex Code
25101 status collapsed
25102
25103 \begin_layout Plain Layout
25104
25105 \change_inserted -584632292 1615846730
25106 [int=0]
25107 \change_unchanged
25108
25109 \end_layout
25110
25111 \end_inset
25112
25113  If this is set to 
25114 \begin_inset Flex Code
25115 status collapsed
25116
25117 \begin_layout Plain Layout
25118
25119 \change_inserted -584632292 1615846730
25120 1
25121 \change_unchanged
25122
25123 \end_layout
25124
25125 \end_inset
25126
25127 ,
25128  this argument will be inserted on a new line with 
25129 \begin_inset Flex Code
25130 status collapsed
25131
25132 \begin_layout Plain Layout
25133
25134 \change_inserted -584632292 1615846730
25135 AutoInsert
25136 \change_unchanged
25137
25138 \end_layout
25139
25140 \end_inset
25141
25142  (only available within Flex insets).
25143 \end_layout
25144
25145 \begin_layout Itemize
25146
25147 \change_inserted -584632292 1615846730
25148 \begin_inset Flex Code
25149 status collapsed
25150
25151 \begin_layout Plain Layout
25152
25153 \change_inserted -584632292 1615846730
25154 InsertCotext
25155 \change_unchanged
25156
25157 \end_layout
25158
25159 \end_inset
25160
25161  
25162 \begin_inset Flex Code
25163 status collapsed
25164
25165 \begin_layout Plain Layout
25166
25167 \change_inserted -584632292 1615846730
25168 [int=0]
25169 \change_unchanged
25170
25171 \end_layout
25172
25173 \end_inset
25174
25175  If this is set to 
25176 \begin_inset Flex Code
25177 status collapsed
25178
25179 \begin_layout Plain Layout
25180
25181 \change_inserted -584632292 1615846730
25182 1
25183 \change_unchanged
25184
25185 \end_layout
25186
25187 \end_inset
25188
25189 ,
25190  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
25191 \end_layout
25192
25193 \begin_layout Itemize
25194
25195 \change_inserted -584632292 1615846730
25196 \begin_inset Flex Code
25197 status collapsed
25198
25199 \begin_layout Plain Layout
25200
25201 \change_inserted -584632292 1615846730
25202 PassThru
25203 \change_unchanged
25204
25205 \end_layout
25206
25207 \end_inset
25208
25209  [
25210 \begin_inset Flex Code
25211 status collapsed
25212
25213 \begin_layout Plain Layout
25214
25215 \change_inserted -584632292 1615846730
25216
25217 \emph on
25218 inherited
25219 \emph default
25220 ,
25221  true,
25222  false
25223 \change_unchanged
25224
25225 \end_layout
25226
25227 \end_inset
25228
25229 ] Whether the contents of this argument should be output in raw form,
25230  meaning without special translations that \SpecialChar LaTeX
25231  would require.
25232  By default,
25233  the 
25234 \begin_inset Flex Code
25235 status collapsed
25236
25237 \begin_layout Plain Layout
25238
25239 \change_inserted -584632292 1615846730
25240 PassThru
25241 \change_unchanged
25242
25243 \end_layout
25244
25245 \end_inset
25246
25247  status is inherited by the inset or paragraph layout the argument belongs to,
25248  true and false change the status for the given argument only.
25249 \end_layout
25250
25251 \begin_layout Itemize
25252
25253 \change_inserted -584632292 1615846730
25254 \begin_inset Flex Code
25255 status collapsed
25256
25257 \begin_layout Plain Layout
25258
25259 \change_inserted -584632292 1615846730
25260 PassThruChars
25261 \change_unchanged
25262
25263 \end_layout
25264
25265 \end_inset
25266
25267  [
25268 \begin_inset Flex Code
25269 status collapsed
25270
25271 \begin_layout Plain Layout
25272
25273 \change_inserted -584632292 1615846730
25274 string of characters
25275 \change_unchanged
25276
25277 \end_layout
25278
25279 \end_inset
25280
25281 ]
25282 \family typewriter
25283  
25284 \family default
25285 Defines individual characters
25286 \begin_inset Newline linebreak
25287 \end_inset
25288
25289 that should be output in raw form,
25290  meaning without special translations that \SpecialChar LaTeX
25291  would require.
25292  Note that,
25293  contrary to PassThru,
25294  this needs to be explicitly defined for arguments.
25295  That is,
25296  arguments do not inherit PassThruChars from their parent inset or layout.
25297 \end_layout
25298
25299 \begin_layout Itemize
25300
25301 \change_inserted -584632292 1615846730
25302 \begin_inset Flex Code
25303 status collapsed
25304
25305 \begin_layout Plain Layout
25306
25307 \change_inserted -584632292 1615846730
25308 IsTocCaption
25309 \change_unchanged
25310
25311 \end_layout
25312
25313 \end_inset
25314
25315  [
25316 \begin_inset Flex Code
25317 status collapsed
25318
25319 \begin_layout Plain Layout
25320
25321 \change_inserted -584632292 1615846730
25322
25323 \emph on
25324 0
25325 \change_unchanged
25326
25327 \end_layout
25328
25329 \end_inset
25330
25331 ,
25332 \begin_inset space \thinspace{}
25333 \end_inset
25334
25335
25336 \begin_inset Flex Code
25337 status collapsed
25338
25339 \begin_layout Plain Layout
25340
25341 \change_inserted -584632292 1615846730
25342 1
25343 \change_unchanged
25344
25345 \end_layout
25346
25347 \end_inset
25348
25349 ] If this is set to 1,
25350  the argument will output its content in the corresponding item in the table of contents.
25351  See AddToToc.
25352 \end_layout
25353
25354 \begin_layout Standard
25355
25356 \change_inserted -584632292 1615846730
25357 By default,
25358  the text entered in the \SpecialChar LyX
25359  workarea in the respective layout is the last (mandatory) argument of a command if the 
25360 \begin_inset Flex Code
25361 status collapsed
25362
25363 \begin_layout Plain Layout
25364
25365 \change_inserted -584632292 1615846730
25366 LatexType
25367 \change_unchanged
25368
25369 \end_layout
25370
25371 \end_inset
25372
25373  is 
25374 \begin_inset Flex Code
25375 status collapsed
25376
25377 \begin_layout Plain Layout
25378
25379 \change_inserted -584632292 1615846730
25380 Command
25381 \change_unchanged
25382
25383 \end_layout
25384
25385 \end_inset
25386
25387 .
25388  However,
25389  arguments with the prefix 
25390 \begin_inset Flex Code
25391 status collapsed
25392
25393 \begin_layout Plain Layout
25394
25395 \change_inserted -584632292 1615846730
25396 post:
25397 \change_unchanged
25398
25399 \end_layout
25400
25401 \end_inset
25402
25403  are output after this workarea argument.
25404  Note that post-argument numbering restarts at 1,
25405  so the first argument following the workarea argument is 
25406 \begin_inset Flex Code
25407 status collapsed
25408
25409 \begin_layout Plain Layout
25410
25411 \change_inserted -584632292 1615846730
25412 post:1
25413 \change_unchanged
25414
25415 \end_layout
25416
25417 \end_inset
25418
25419 .
25420  Post-arguments are ignored in any other 
25421 \begin_inset Flex Code
25422 status collapsed
25423
25424 \begin_layout Plain Layout
25425
25426 \change_inserted -584632292 1615846730
25427 LatexType
25428 \change_unchanged
25429
25430 \end_layout
25431
25432 \end_inset
25433
25434  than 
25435 \begin_inset Flex Code
25436 status collapsed
25437
25438 \begin_layout Plain Layout
25439
25440 \change_inserted -584632292 1615846730
25441 Command
25442 \change_unchanged
25443
25444 \end_layout
25445
25446 \end_inset
25447
25448 .
25449 \end_layout
25450
25451 \begin_layout Standard
25452
25453 \change_inserted -584632292 1615846730
25454 Arguments for list 
25455 \begin_inset Flex Code
25456 status collapsed
25457
25458 \begin_layout Plain Layout
25459
25460 \change_inserted -584632292 1615846730
25461
25462 \backslash
25463 item
25464 \change_unchanged
25465
25466 \end_layout
25467
25468 \end_inset
25469
25470 s (as in 
25471 \begin_inset Flex Code
25472 status collapsed
25473
25474 \begin_layout Plain Layout
25475
25476 \change_inserted -584632292 1615846730
25477
25478 \backslash
25479 item[foo]
25480 \change_unchanged
25481
25482 \end_layout
25483
25484 \end_inset
25485
25486 ) have the prefix 
25487 \begin_inset Flex Code
25488 status collapsed
25489
25490 \begin_layout Plain Layout
25491
25492 \change_inserted -584632292 1615846730
25493 item:
25494 \change_unchanged
25495
25496 \end_layout
25497
25498 \end_inset
25499
25500  followed by the number (e.
25501 \begin_inset space \thinspace{}
25502 \end_inset
25503
25504 g.
25505 \begin_inset space \space{}
25506 \end_inset
25507
25508
25509 \begin_inset Flex Code
25510 status collapsed
25511
25512 \begin_layout Plain Layout
25513
25514 \change_inserted -584632292 1615846730
25515 Argument item:1
25516 \change_unchanged
25517
25518 \end_layout
25519
25520 \end_inset
25521
25522 ).
25523 \end_layout
25524
25525 \begin_layout Standard
25526
25527 \change_inserted -584632292 1615846730
25528 Finally,
25529  there is a special argument type with the prefix 
25530 \begin_inset Flex Code
25531 status collapsed
25532
25533 \begin_layout Plain Layout
25534
25535 \change_inserted -584632292 1615846730
25536 listpreamble:
25537 \change_unchanged
25538
25539 \end_layout
25540
25541 \end_inset
25542
25543 .
25544  It is not really an argument,
25545  but uses the argument interface (thus,
25546  the prefix is also followed by a number,
25547  e.
25548 \begin_inset space \thinspace{}
25549 \end_inset
25550
25551 g.
25552  
25553 \begin_inset Flex Code
25554 status collapsed
25555
25556 \begin_layout Plain Layout
25557
25558 \change_inserted -584632292 1615846730
25559 Argument listpreamble:1
25560 \change_unchanged
25561
25562 \end_layout
25563
25564 \end_inset
25565
25566 ).
25567  As the name implies,
25568  it is targeted at lists such as 
25569 \family sans
25570 Itemize
25571 \family default
25572 ,
25573  
25574 \family sans
25575 Enumerate
25576 \family default
25577 ,
25578  
25579 \family sans
25580 Description
25581 \family default
25582 ,
25583  or 
25584 \family sans
25585 Bibliography
25586 \family default
25587 .
25588  Its content will be output at the list start,
25589  before the first 
25590 \begin_inset Flex Code
25591 status collapsed
25592
25593 \begin_layout Plain Layout
25594
25595 \change_inserted -584632292 1615846730
25596
25597 \backslash
25598 item
25599 \change_unchanged
25600
25601 \end_layout
25602
25603 \end_inset
25604
25605 ,
25606  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
25607 ).
25608  This way,
25609  users can insert redefinitions (of lengths etc.) to individual lists.
25610  By default,
25611  these arguments do not have a delimiter.
25612 \change_unchanged
25613
25614 \end_layout
25615
25616 \begin_layout Subsection
25617 Counters
25618 \begin_inset CommandInset label
25619 LatexCommand label
25620 name "subsec:Counters"
25621
25622 \end_inset
25623
25624
25625 \end_layout
25626
25627 \begin_layout Standard
25628 It is necessary to define the counters (
25629 \begin_inset Flex Noun
25630 status collapsed
25631
25632 \begin_layout Plain Layout
25633 chapter
25634 \end_layout
25635
25636 \end_inset
25637
25638 ,
25639  
25640 \begin_inset Flex Noun
25641 status collapsed
25642
25643 \begin_layout Plain Layout
25644 figure
25645 \end_layout
25646
25647 \end_inset
25648
25649 ,
25650  \SpecialChar ldots
25651 ) in the text class itself.
25652  The standard counters are defined in the file 
25653 \begin_inset Flex Code
25654 status collapsed
25655
25656 \begin_layout Plain Layout
25657 stdcounters.inc
25658 \end_layout
25659
25660 \end_inset
25661
25662 ,
25663  so you may have to do no more than add
25664 \end_layout
25665
25666 \begin_layout LyX-Code
25667 Input stdcounters.inc
25668 \end_layout
25669
25670 \begin_layout Standard
25671 to your layout file to get them to work.
25672  But if you want to define custom counters,
25673  then you can do so.
25674  The counter declaration must begin with:
25675 \end_layout
25676
25677 \begin_layout LyX-Code
25678 Counter CounterName
25679 \end_layout
25680
25681 \begin_layout Standard
25682 where of course `
25683 \begin_inset Flex Code
25684 status collapsed
25685
25686 \begin_layout Plain Layout
25687 CounterName
25688 \end_layout
25689
25690 \end_inset
25691
25692 ' is replaced by the name of the counter.
25693  And it must end with 
25694 \begin_inset Quotes eld
25695 \end_inset
25696
25697
25698 \begin_inset Flex Code
25699 status collapsed
25700
25701 \begin_layout Plain Layout
25702 End
25703 \end_layout
25704
25705 \end_inset
25706
25707
25708 \begin_inset Quotes erd
25709 \end_inset
25710
25711 .
25712  The following parameters can also be used:
25713 \end_layout
25714
25715 \begin_layout Description
25716 \begin_inset Flex Code
25717 status collapsed
25718
25719 \begin_layout Plain Layout
25720 InitialValue
25721 \end_layout
25722
25723 \end_inset
25724
25725  [
25726 \begin_inset Flex Code
25727 status collapsed
25728
25729 \begin_layout Plain Layout
25730 int=1
25731 \end_layout
25732
25733 \end_inset
25734
25735 ] Sets the initial value for the counter,
25736  to which it will be reset whenever that happens.
25737  Normally,
25738  one will want the default,
25739  1.
25740 \end_layout
25741
25742 \begin_layout Description
25743 \begin_inset Flex Code
25744 status collapsed
25745
25746 \begin_layout Plain Layout
25747 LabelString
25748 \end_layout
25749
25750 \end_inset
25751
25752  [
25753 \begin_inset Flex Code
25754 status collapsed
25755
25756 \begin_layout Plain Layout
25757 string
25758 \end_layout
25759
25760 \end_inset
25761
25762 =
25763 \begin_inset Quotes erd
25764 \end_inset
25765
25766
25767 \begin_inset Quotes erd
25768 \end_inset
25769
25770 ] When defined,
25771  this string defines how the counter is displayed.
25772  Setting this value sets 
25773 \begin_inset Flex Code
25774 status collapsed
25775
25776 \begin_layout Plain Layout
25777 LabelStringAppendix
25778 \end_layout
25779
25780 \end_inset
25781
25782  to the same value.
25783  The following special constructs can be used in the string:
25784 \end_layout
25785
25786 \begin_deeper
25787 \begin_layout Itemize
25788 \begin_inset Flex Code
25789 status collapsed
25790
25791 \begin_layout Plain Layout
25792
25793 \backslash
25794 thecounter
25795 \end_layout
25796
25797 \end_inset
25798
25799  will be replaced by the expansion of the 
25800 \begin_inset Flex Code
25801 status collapsed
25802
25803 \begin_layout Plain Layout
25804 LabelString
25805 \end_layout
25806
25807 \end_inset
25808
25809  (or 
25810 \begin_inset Flex Code
25811 status collapsed
25812
25813 \begin_layout Plain Layout
25814 LabelStringAppendix
25815 \end_layout
25816
25817 \end_inset
25818
25819 ) of the counter 
25820 \begin_inset Flex Code
25821 status collapsed
25822
25823 \begin_layout Plain Layout
25824 counter
25825 \end_layout
25826
25827 \end_inset
25828
25829 .
25830  
25831 \end_layout
25832
25833 \begin_layout Itemize
25834 counter values can be expressed using \SpecialChar LaTeX
25835 -like macros
25836 \begin_inset Newline newline
25837 \end_inset
25838
25839
25840 \begin_inset Flex Code
25841 status collapsed
25842
25843 \begin_layout Plain Layout
25844
25845 \backslash
25846
25847 \emph on
25848 numbertype
25849 \emph default
25850 {
25851 \emph on
25852 counter
25853 \emph default
25854 }
25855 \end_layout
25856
25857 \end_inset
25858
25859 ,
25860  where 
25861 \begin_inset Flex Code
25862 status collapsed
25863
25864 \begin_layout Plain Layout
25865
25866 \emph on
25867 numbertype
25868 \end_layout
25869
25870 \end_inset
25871
25872  can be:
25873 \begin_inset Foot
25874 status collapsed
25875
25876 \begin_layout Plain Layout
25877
25878 \family roman
25879 \series medium
25880 \shape up
25881 \size normal
25882 \emph off
25883 \bar no
25884 \noun off
25885 \color none
25886 Actually,
25887  the situation is a bit more complicated:
25888  any
25889 \family default
25890 \series default
25891 \shape default
25892 \emph default
25893 \bar default
25894  
25895 \size default
25896 \emph on
25897 \noun default
25898 \color inherit
25899 numbertype
25900 \family roman
25901 \series medium
25902 \shape up
25903 \size normal
25904 \emph off
25905 \bar no
25906 \noun off
25907  other than those described below will produce arabic numerals.
25908  It would not be surprising to see this change in the future.
25909 \end_layout
25910
25911 \end_inset
25912
25913  
25914 \begin_inset Flex Code
25915 status collapsed
25916
25917 \begin_layout Plain Layout
25918 arabic
25919 \end_layout
25920
25921 \end_inset
25922
25923 :
25924  1,
25925  2,
25926  3,\SpecialChar ldots
25927 ;
25928  
25929 \begin_inset Flex Code
25930 status collapsed
25931
25932 \begin_layout Plain Layout
25933 alph
25934 \end_layout
25935
25936 \end_inset
25937
25938  for lower-case letters:
25939  a,
25940  b,
25941  c,
25942  \SpecialChar ldots
25943 ;
25944  
25945 \begin_inset Flex Code
25946 status collapsed
25947
25948 \begin_layout Plain Layout
25949 Alph
25950 \end_layout
25951
25952 \end_inset
25953
25954  for upper-case letters:
25955  A,
25956  B,
25957  C,
25958  \SpecialChar ldots
25959 ;
25960  
25961 \begin_inset Flex Code
25962 status collapsed
25963
25964 \begin_layout Plain Layout
25965 roman
25966 \end_layout
25967
25968 \end_inset
25969
25970  for lower-case roman numerals:
25971  i,
25972  ii,
25973  iii,
25974  \SpecialChar ldots
25975 ;
25976  
25977 \begin_inset Flex Code
25978 status collapsed
25979
25980 \begin_layout Plain Layout
25981 Roman
25982 \end_layout
25983
25984 \end_inset
25985
25986  for upper-case roman numerals:
25987  I,
25988  II,
25989  III\SpecialChar ldots
25990 ;
25991  
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996 hebrew
25997 \end_layout
25998
25999 \end_inset
26000
26001  for hebrew numerals.
26002 \end_layout
26003
26004 \end_deeper
26005 \begin_layout Standard
26006 If LabelString is not defined,
26007  a default value is constructed as follows:
26008  if the counter has a 
26009 \change_deleted 731793113 1604355218
26010 master
26011 \change_inserted 731793113 1604355221
26012 parent
26013 \change_unchanged
26014  counter 
26015 \begin_inset Flex Code
26016 status collapsed
26017
26018 \begin_layout Plain Layout
26019
26020 \change_deleted 731793113 1604355223
26021 master
26022 \change_inserted 731793113 1604355226
26023 parent
26024 \change_unchanged
26025
26026 \end_layout
26027
26028 \end_inset
26029
26030  (defined via 
26031 \begin_inset Flex Code
26032 status collapsed
26033
26034 \begin_layout Plain Layout
26035 Within
26036 \end_layout
26037
26038 \end_inset
26039
26040 ),
26041  the string
26042 \begin_inset Newline newline
26043 \end_inset
26044
26045
26046 \begin_inset Flex Code
26047 status collapsed
26048
26049 \begin_layout Plain Layout
26050
26051 \backslash
26052 the
26053 \change_inserted 731793113 1604355228
26054 parent
26055 \change_deleted 731793113 1604355230
26056 master
26057 \change_unchanged
26058 .
26059 \backslash
26060 arabic{counter}
26061 \end_layout
26062
26063 \end_inset
26064
26065  is used;
26066  otherwise the string 
26067 \begin_inset Flex Code
26068 status collapsed
26069
26070 \begin_layout Plain Layout
26071
26072 \backslash
26073 arabic{counter}
26074 \end_layout
26075
26076 \end_inset
26077
26078  is used.
26079 \end_layout
26080
26081 \begin_layout Description
26082 \begin_inset Flex Code
26083 status collapsed
26084
26085 \begin_layout Plain Layout
26086 LabelStringAppendix
26087 \end_layout
26088
26089 \end_inset
26090
26091  [
26092 \begin_inset Flex Code
26093 status collapsed
26094
26095 \begin_layout Plain Layout
26096 string
26097 \end_layout
26098
26099 \end_inset
26100
26101
26102 \begin_inset Quotes eld
26103 \end_inset
26104
26105
26106 \begin_inset Quotes erd
26107 \end_inset
26108
26109 ] Same as 
26110 \begin_inset Flex Code
26111 status collapsed
26112
26113 \begin_layout Plain Layout
26114 LabelString
26115 \end_layout
26116
26117 \end_inset
26118
26119 ,
26120  but for use in the Appendix.
26121 \change_inserted -584632292 1607202551
26122
26123 \end_layout
26124
26125 \begin_layout Description
26126
26127 \change_inserted -584632292 1607202682
26128 \begin_inset Flex Code
26129 status open
26130
26131 \begin_layout Plain Layout
26132 LaTeXName
26133 \end_layout
26134
26135 \end_inset
26136
26137  [
26138 \begin_inset Flex Code
26139 status open
26140
26141 \begin_layout Plain Layout
26142
26143 \change_inserted -584632292 1607202576
26144 string
26145 \change_unchanged
26146
26147 \end_layout
26148
26149 \end_inset
26150
26151  = 
26152 \begin_inset Quotes eld
26153 \end_inset
26154
26155
26156 \begin_inset Quotes erd
26157 \end_inset
26158
26159 ] The counter name as used in \SpecialChar LaTeX
26160 .
26161  (
26162 \change_inserted 34634807 1619711355
26163 e
26164 \change_deleted 34634807 1619711355
26165 E
26166 \change_inserted -584632292 1607202682
26167 .g.,
26168  in \SpecialChar LyX
26169 ,
26170  there is a counter named `theorem',
26171  but it is output to \SpecialChar LaTeX
26172  as `thm'.)
26173 \change_unchanged
26174
26175 \end_layout
26176
26177 \begin_layout Description
26178 \begin_inset Flex Code
26179 status collapsed
26180
26181 \begin_layout Plain Layout
26182 PrettyFormat
26183 \end_layout
26184
26185 \end_inset
26186
26187  [
26188 \begin_inset Flex Code
26189 status collapsed
26190
26191 \begin_layout Plain Layout
26192 string
26193 \end_layout
26194
26195 \end_inset
26196
26197 =
26198 \begin_inset Quotes erd
26199 \end_inset
26200
26201
26202 \begin_inset Quotes erd
26203 \end_inset
26204
26205 ] A format for use with formatted references to this counter.
26206  For example,
26207  one might want to have references to section numbers appear as 
26208 \begin_inset Quotes eld
26209 \end_inset
26210
26211 Section 2.4
26212 \begin_inset Quotes erd
26213 \end_inset
26214
26215 .
26216  The string 
26217 \change_deleted -584632292 1690588038
26218 should 
26219 \change_inserted -584632292 1690588041
26220 may 
26221 \change_unchanged
26222 contain 
26223 \begin_inset Quotes eld
26224 \end_inset
26225
26226 ##
26227 \begin_inset Quotes erd
26228 \end_inset
26229
26230
26231 \change_inserted -584632292 1690588059
26232  or a counter specification as in 
26233 \begin_inset Flex Code
26234 status open
26235
26236 \begin_layout Plain Layout
26237
26238 \change_inserted -584632292 1690588059
26239 LabelString
26240 \change_unchanged
26241
26242 \end_layout
26243
26244 \end_inset
26245
26246
26247 \change_unchanged
26248 .
26249  Th
26250 \change_inserted -584632292 1690588078
26251 e former
26252 \change_deleted -584632292 1690588076
26253 is
26254 \change_unchanged
26255  will be replaced by the counter number itself.
26256  So,
26257  for sections,
26258  it would be:
26259  Section ##
26260 \change_inserted -584632292 1690588159
26261 ,
26262  or perhaps:
26263  
26264 \change_deleted -712698321 1691671418
26265
26266 \backslash
26267 S
26268 \backslash
26269 arabic{section}
26270 \change_inserted -712698321 1691671418
26271
26272 \begin_inset Flex Code
26273 status open
26274
26275 \begin_layout Plain Layout
26276
26277 \change_inserted -712698321 1691671418
26278
26279 \backslash
26280 S
26281 \backslash
26282 arabic{section}
26283 \change_unchanged
26284
26285 \end_layout
26286
26287 \end_inset
26288
26289
26290 \change_inserted -584632292 1690588159
26291  (which might render as §2.7)
26292 \change_unchanged
26293 .
26294 \change_inserted -584632292 1690587966
26295
26296 \end_layout
26297
26298 \begin_layout Description
26299
26300 \change_inserted -584632292 1690588264
26301 \begin_inset Flex Code
26302 status collapsed
26303
26304 \begin_layout Plain Layout
26305
26306 \change_inserted -584632292 1690587970
26307 RefFormat
26308 \change_unchanged
26309
26310 \end_layout
26311
26312 \end_inset
26313
26314  [
26315 \begin_inset Flex Code
26316 status collapsed
26317
26318 \begin_layout Plain Layout
26319
26320 \change_inserted -584632292 1690587966
26321 string
26322 \change_unchanged
26323
26324 \end_layout
26325
26326 \end_inset
26327
26328 ,
26329  
26330 \begin_inset Flex Code
26331 status collapsed
26332
26333 \begin_layout Plain Layout
26334
26335 \change_inserted -584632292 1690587981
26336 string
26337 \change_unchanged
26338
26339 \end_layout
26340
26341 \end_inset
26342
26343 ] For use with `formatted references',
26344  specifically when a single counter is used with multiple sorts of styles.
26345  For example,
26346  the 
26347 \begin_inset Flex Code
26348 status open
26349
26350 \begin_layout Plain Layout
26351
26352 \change_inserted -584632292 1690588222
26353 theorem
26354 \change_unchanged
26355
26356 \end_layout
26357
26358 \end_inset
26359
26360  counter is often used for all sorts of theorem-like environments:
26361  Theorem,
26362  Lemma,
26363  
26364 \change_deleted -712698321 1691671691
26365 e
26366 \change_inserted -584632292 1690588264
26367 etc.
26368  The first argument gives a prefix used in the labels (e.g.,
26369  
26370 \begin_inset Quotes eld
26371 \end_inset
26372
26373 thm
26374 \begin_inset Quotes erd
26375 \end_inset
26376
26377  or 
26378 \begin_inset Quotes eld
26379 \end_inset
26380
26381 lem
26382 \begin_inset Quotes erd
26383 \end_inset
26384
26385 ),
26386  and the second a formatting string,
26387  as for 
26388 \begin_inset Flex Code
26389 status open
26390
26391 \begin_layout Plain Layout
26392
26393 \change_inserted -584632292 1690588181
26394 LabelString
26395 \change_unchanged
26396
26397 \end_layout
26398
26399 \end_inset
26400
26401  or 
26402 \begin_inset Flex Code
26403 status open
26404
26405 \begin_layout Plain Layout
26406
26407 \change_inserted -584632292 1690588177
26408 PrettyFormat
26409 \change_unchanged
26410
26411 \end_layout
26412
26413 \end_inset
26414
26415 .
26416  If this is not given,
26417  then 
26418 \begin_inset Flex Code
26419 status open
26420
26421 \begin_layout Plain Layout
26422
26423 \change_inserted -584632292 1690588264
26424 PrettyFormat
26425 \change_unchanged
26426
26427 \end_layout
26428
26429 \end_inset
26430
26431  is used.
26432 \end_layout
26433
26434 \begin_layout Description
26435 \begin_inset Flex Code
26436 status collapsed
26437
26438 \begin_layout Plain Layout
26439 Within
26440 \end_layout
26441
26442 \end_inset
26443
26444  [
26445 \begin_inset Flex Code
26446 status collapsed
26447
26448 \begin_layout Plain Layout
26449 string
26450 \end_layout
26451
26452 \end_inset
26453
26454 =
26455 \begin_inset Quotes erd
26456 \end_inset
26457
26458
26459 \begin_inset Quotes erd
26460 \end_inset
26461
26462 ] If this is set to the name of another counter,
26463  the present counter will be reset every time the other one is increased.
26464  For example,
26465  
26466 \begin_inset Flex Code
26467 status collapsed
26468
26469 \begin_layout Plain Layout
26470 subsection
26471 \end_layout
26472
26473 \end_inset
26474
26475  is numbered inside 
26476 \begin_inset Flex Code
26477 status collapsed
26478
26479 \begin_layout Plain Layout
26480 section
26481 \end_layout
26482
26483 \end_inset
26484
26485 .
26486 \end_layout
26487
26488 \begin_layout Subsection
26489 Font description
26490 \begin_inset CommandInset label
26491 LatexCommand label
26492 name "subsec:Font-description"
26493
26494 \end_inset
26495
26496
26497 \end_layout
26498
26499 \begin_layout Standard
26500 A font description looks like this:
26501 \end_layout
26502
26503 \begin_layout LyX-Code
26504 Font 
26505 \family roman
26506 \emph on
26507 or
26508 \family default
26509 \emph default
26510  LabelFont
26511 \emph on
26512  
26513 \family roman
26514 or
26515 \family default
26516 \emph default
26517  DefaultFont
26518 \end_layout
26519
26520 \begin_layout LyX-Code
26521  ...
26522 \end_layout
26523
26524 \begin_layout LyX-Code
26525 EndFont
26526 \end_layout
26527
26528 \begin_layout Standard
26529 The following commands are available:
26530 \end_layout
26531
26532 \begin_layout Description
26533 \begin_inset Flex Code
26534 status collapsed
26535
26536 \begin_layout Plain Layout
26537 Color
26538 \end_layout
26539
26540 \end_inset
26541
26542  [
26543 \change_deleted -712698321 1607682984
26544
26545 \begin_inset Flex Code
26546 status collapsed
26547
26548 \begin_layout Plain Layout
26549
26550 \emph on
26551 none
26552 \end_layout
26553
26554 \end_inset
26555
26556 ,
26557  
26558 \begin_inset Flex Code
26559 status collapsed
26560
26561 \begin_layout Plain Layout
26562 black
26563 \end_layout
26564
26565 \end_inset
26566
26567 ,
26568  
26569 \begin_inset Flex Code
26570 status collapsed
26571
26572 \begin_layout Plain Layout
26573 white
26574 \end_layout
26575
26576 \end_inset
26577
26578 ,
26579  
26580 \begin_inset Flex Code
26581 status collapsed
26582
26583 \begin_layout Plain Layout
26584 red
26585 \end_layout
26586
26587 \end_inset
26588
26589 ,
26590  
26591 \begin_inset Flex Code
26592 status collapsed
26593
26594 \begin_layout Plain Layout
26595 green
26596 \end_layout
26597
26598 \end_inset
26599
26600 ,
26601  
26602 \begin_inset Flex Code
26603 status collapsed
26604
26605 \begin_layout Plain Layout
26606 blue
26607 \end_layout
26608
26609 \end_inset
26610
26611 ,
26612  
26613 \begin_inset Flex Code
26614 status collapsed
26615
26616 \begin_layout Plain Layout
26617 cyan
26618 \end_layout
26619
26620 \end_inset
26621
26622 ,
26623  
26624 \begin_inset Flex Code
26625 status collapsed
26626
26627 \begin_layout Plain Layout
26628 magenta
26629 \end_layout
26630
26631 \end_inset
26632
26633 ,
26634  
26635 \begin_inset Flex Code
26636 status collapsed
26637
26638 \begin_layout Plain Layout
26639 yellow
26640 \end_layout
26641
26642 \end_inset
26643
26644 ,
26645  
26646 \begin_inset Flex Code
26647 status collapsed
26648
26649 \begin_layout Plain Layout
26650 brown
26651 \end_layout
26652
26653 \end_inset
26654
26655 ,
26656  
26657 \begin_inset Flex Code
26658 status collapsed
26659
26660 \begin_layout Plain Layout
26661 darkgray
26662 \end_layout
26663
26664 \end_inset
26665
26666 ,
26667  
26668 \begin_inset Flex Code
26669 status collapsed
26670
26671 \begin_layout Plain Layout
26672 gray
26673 \end_layout
26674
26675 \end_inset
26676
26677 ,
26678  
26679 \begin_inset Flex Code
26680 status collapsed
26681
26682 \begin_layout Plain Layout
26683 lightgray
26684 \end_layout
26685
26686 \end_inset
26687
26688 ,
26689  
26690 \begin_inset Flex Code
26691 status collapsed
26692
26693 \begin_layout Plain Layout
26694 lime
26695 \end_layout
26696
26697 \end_inset
26698
26699 ,
26700  
26701 \begin_inset Flex Code
26702 status collapsed
26703
26704 \begin_layout Plain Layout
26705 orange
26706 \end_layout
26707
26708 \end_inset
26709
26710 ,
26711  
26712 \begin_inset Flex Code
26713 status collapsed
26714
26715 \begin_layout Plain Layout
26716 olive
26717 \end_layout
26718
26719 \end_inset
26720
26721 ,
26722  
26723 \begin_inset Flex Code
26724 status collapsed
26725
26726 \begin_layout Plain Layout
26727 pink
26728 \end_layout
26729
26730 \end_inset
26731
26732 ,
26733  
26734 \begin_inset Flex Code
26735 status collapsed
26736
26737 \begin_layout Plain Layout
26738 purple
26739 \end_layout
26740
26741 \end_inset
26742
26743 ,
26744  
26745 \begin_inset Flex Code
26746 status collapsed
26747
26748 \begin_layout Plain Layout
26749 teal
26750 \end_layout
26751
26752 \end_inset
26753
26754 ,
26755  
26756 \begin_inset Flex Code
26757 status collapsed
26758
26759 \begin_layout Plain Layout
26760 violet
26761 \end_layout
26762
26763 \end_inset
26764
26765
26766 \change_inserted -712698321 1607683139
26767
26768 \begin_inset Flex Code
26769 status collapsed
26770
26771 \begin_layout Plain Layout
26772
26773 \change_inserted -712698321 1607683135
26774 string
26775 \change_unchanged
26776
26777 \end_layout
26778
26779 \end_inset
26780
26781 ] See appendix
26782 \begin_inset space ~
26783 \end_inset
26784
26785
26786 \begin_inset CommandInset ref
26787 LatexCommand ref
26788 reference "chap:Names-of-colors"
26789 plural "false"
26790 caps "false"
26791 noprefix "false"
26792 nolink "false"
26793
26794 \end_inset
26795
26796  for 
26797 \change_deleted -712698321 1607683144
26798 ]
26799 \change_inserted -712698321 1607683146
26800 valid arguments.
26801 \change_unchanged
26802
26803 \end_layout
26804
26805 \begin_layout Description
26806 \begin_inset Flex Code
26807 status collapsed
26808
26809 \begin_layout Plain Layout
26810 Family
26811 \end_layout
26812
26813 \end_inset
26814
26815  [
26816 \begin_inset Flex Code
26817 status collapsed
26818
26819 \begin_layout Plain Layout
26820
26821 \emph on
26822 Roman
26823 \end_layout
26824
26825 \end_inset
26826
26827 ,
26828  
26829 \begin_inset Flex Code
26830 status collapsed
26831
26832 \begin_layout Plain Layout
26833 Sans
26834 \end_layout
26835
26836 \end_inset
26837
26838 ,
26839  
26840 \begin_inset Flex Code
26841 status collapsed
26842
26843 \begin_layout Plain Layout
26844 Typewriter
26845 \end_layout
26846
26847 \end_inset
26848
26849 ]
26850 \end_layout
26851
26852 \begin_layout Description
26853 \begin_inset Flex Code
26854 status collapsed
26855
26856 \begin_layout Plain Layout
26857 Misc
26858 \end_layout
26859
26860 \end_inset
26861
26862  [
26863 \begin_inset Flex Code
26864 status collapsed
26865
26866 \begin_layout Plain Layout
26867 string
26868 \end_layout
26869
26870 \end_inset
26871
26872 ] Valid arguments are:
26873  
26874 \begin_inset Flex Code
26875 status collapsed
26876
26877 \begin_layout Plain Layout
26878 emph
26879 \end_layout
26880
26881 \end_inset
26882
26883 ,
26884  
26885 \begin_inset Flex Code
26886 status collapsed
26887
26888 \begin_layout Plain Layout
26889 noun
26890 \end_layout
26891
26892 \end_inset
26893
26894 ,
26895  
26896 \begin_inset Flex Code
26897 status collapsed
26898
26899 \begin_layout Plain Layout
26900 strikeout
26901 \end_layout
26902
26903 \end_inset
26904
26905 ,
26906  
26907 \begin_inset Flex Code
26908 status collapsed
26909
26910 \begin_layout Plain Layout
26911 underbar
26912 \end_layout
26913
26914 \end_inset
26915
26916 ,
26917  
26918 \begin_inset Flex Code
26919 status collapsed
26920
26921 \begin_layout Plain Layout
26922 uuline
26923 \end_layout
26924
26925 \end_inset
26926
26927 ,
26928  
26929 \begin_inset Flex Code
26930 status collapsed
26931
26932 \begin_layout Plain Layout
26933 uwave
26934 \end_layout
26935
26936 \end_inset
26937
26938 ,
26939  
26940 \begin_inset Flex Code
26941 status collapsed
26942
26943 \begin_layout Plain Layout
26944 no_emph
26945 \end_layout
26946
26947 \end_inset
26948
26949 ,
26950  
26951 \begin_inset Flex Code
26952 status collapsed
26953
26954 \begin_layout Plain Layout
26955 no_noun
26956 \end_layout
26957
26958 \end_inset
26959
26960 ,
26961  
26962 \begin_inset Flex Code
26963 status collapsed
26964
26965 \begin_layout Plain Layout
26966 no_strikeout
26967 \end_layout
26968
26969 \end_inset
26970
26971 ,
26972  
26973 \begin_inset Flex Code
26974 status collapsed
26975
26976 \begin_layout Plain Layout
26977 no_bar
26978 \end_layout
26979
26980 \end_inset
26981
26982 ,
26983  
26984 \begin_inset Flex Code
26985 status collapsed
26986
26987 \begin_layout Plain Layout
26988 no_uuline
26989 \end_layout
26990
26991 \end_inset
26992
26993  and 
26994 \begin_inset Flex Code
26995 status collapsed
26996
26997 \begin_layout Plain Layout
26998 no_uwave
26999 \end_layout
27000
27001 \end_inset
27002
27003 .
27004  Each of these turns on or off the corresponding attribute.
27005  For example,
27006  
27007 \begin_inset Flex Code
27008 status collapsed
27009
27010 \begin_layout Plain Layout
27011 emph
27012 \end_layout
27013
27014 \end_inset
27015
27016  turns on emphasis,
27017  and 
27018 \begin_inset Flex Code
27019 status collapsed
27020
27021 \begin_layout Plain Layout
27022 no_emph
27023 \end_layout
27024
27025 \end_inset
27026
27027  turns it off.
27028  
27029 \begin_inset Newline newline
27030 \end_inset
27031
27032 If the latter seems puzzling,
27033  remember that the font settings for the present context are generally inherited from the surrounding context.
27034  So 
27035 \begin_inset Flex Code
27036 status collapsed
27037
27038 \begin_layout Plain Layout
27039 no_emph
27040 \end_layout
27041
27042 \end_inset
27043
27044  would turn off the emphasis that was anyway in effect,
27045  say,
27046  in a theorem environment.
27047 \end_layout
27048
27049 \begin_layout Description
27050 \begin_inset Flex Code
27051 status collapsed
27052
27053 \begin_layout Plain Layout
27054 Series
27055 \end_layout
27056
27057 \end_inset
27058
27059  [
27060 \begin_inset Flex Code
27061 status collapsed
27062
27063 \begin_layout Plain Layout
27064
27065 \emph on
27066 Medium
27067 \end_layout
27068
27069 \end_inset
27070
27071 ,
27072  
27073 \begin_inset Flex Code
27074 status collapsed
27075
27076 \begin_layout Plain Layout
27077 Bold
27078 \end_layout
27079
27080 \end_inset
27081
27082
27083 \end_layout
27084
27085 \begin_layout Description
27086 \begin_inset Flex Code
27087 status collapsed
27088
27089 \begin_layout Plain Layout
27090 Shape
27091 \end_layout
27092
27093 \end_inset
27094
27095  [
27096 \begin_inset Flex Code
27097 status collapsed
27098
27099 \begin_layout Plain Layout
27100
27101 \emph on
27102 Up
27103 \end_layout
27104
27105 \end_inset
27106
27107 ,
27108  
27109 \begin_inset Flex Code
27110 status collapsed
27111
27112 \begin_layout Plain Layout
27113 Italic
27114 \end_layout
27115
27116 \end_inset
27117
27118 ,
27119  
27120 \begin_inset Flex Code
27121 status collapsed
27122
27123 \begin_layout Plain Layout
27124 SmallCaps
27125 \end_layout
27126
27127 \end_inset
27128
27129 ,
27130  
27131 \begin_inset Flex Code
27132 status collapsed
27133
27134 \begin_layout Plain Layout
27135 Slanted
27136 \end_layout
27137
27138 \end_inset
27139
27140
27141 \end_layout
27142
27143 \begin_layout Description
27144 \begin_inset Flex Code
27145 status collapsed
27146
27147 \begin_layout Plain Layout
27148 Size
27149 \end_layout
27150
27151 \end_inset
27152
27153  [
27154 \begin_inset Flex Code
27155 status collapsed
27156
27157 \begin_layout Plain Layout
27158 tiny
27159 \end_layout
27160
27161 \end_inset
27162
27163 ,
27164  
27165 \begin_inset Flex Code
27166 status collapsed
27167
27168 \begin_layout Plain Layout
27169 small
27170 \end_layout
27171
27172 \end_inset
27173
27174 ,
27175  
27176 \begin_inset Flex Code
27177 status collapsed
27178
27179 \begin_layout Plain Layout
27180
27181 \emph on
27182 normal
27183 \end_layout
27184
27185 \end_inset
27186
27187 ,
27188  
27189 \begin_inset Flex Code
27190 status collapsed
27191
27192 \begin_layout Plain Layout
27193 large
27194 \end_layout
27195
27196 \end_inset
27197
27198 ,
27199  
27200 \begin_inset Flex Code
27201 status collapsed
27202
27203 \begin_layout Plain Layout
27204 larger
27205 \end_layout
27206
27207 \end_inset
27208
27209 ,
27210  
27211 \begin_inset Flex Code
27212 status collapsed
27213
27214 \begin_layout Plain Layout
27215 largest
27216 \end_layout
27217
27218 \end_inset
27219
27220 ,
27221  
27222 \begin_inset Flex Code
27223 status collapsed
27224
27225 \begin_layout Plain Layout
27226 huge
27227 \end_layout
27228
27229 \end_inset
27230
27231 ,
27232  
27233 \begin_inset Flex Code
27234 status collapsed
27235
27236 \begin_layout Plain Layout
27237 giant
27238 \end_layout
27239
27240 \end_inset
27241
27242 ]
27243 \end_layout
27244
27245 \begin_layout Subsection
27246 \begin_inset CommandInset label
27247 LatexCommand label
27248 name "subsec:Citation-engine-description"
27249
27250 \end_inset
27251
27252 Cite engine description
27253 \end_layout
27254
27255 \begin_layout Standard
27256 The 
27257 \begin_inset Flex Code
27258 status collapsed
27259
27260 \begin_layout Plain Layout
27261 CiteEngine
27262 \end_layout
27263
27264 \end_inset
27265
27266  blocks,
27267  as used mainly in cite engine files (see 
27268 \begin_inset CommandInset ref
27269 LatexCommand ref
27270 reference "subsec:Cite-Engine-Files"
27271 plural "false"
27272 caps "false"
27273 noprefix "false"
27274 nolink "false"
27275
27276 \end_inset
27277
27278 ),
27279  define the citation commands provided by a specific 
27280 \begin_inset Quotes eld
27281 \end_inset
27282
27283 cite engine
27284 \begin_inset Quotes erd
27285 \end_inset
27286
27287 .
27288  A cite engine,
27289  in \SpecialChar LyX
27290  terms,
27291  is way specific way to format citations,
27292  using numbers,
27293  author names and/or years.
27294  Currently,
27295  \SpecialChar LyX
27296  supports three such engine types,
27297  namely:
27298 \end_layout
27299
27300 \begin_layout Enumerate
27301 \begin_inset Flex Code
27302 status collapsed
27303
27304 \begin_layout Plain Layout
27305 default
27306 \end_layout
27307
27308 \end_inset
27309
27310 :
27311  the default Bib\SpecialChar TeX
27312  way to format citations,
27313  a simple numeric style (e.
27314 \begin_inset space \thinspace{}
27315 \end_inset
27316
27317 g.,
27318  
27319 \begin_inset Quotes eld
27320 \end_inset
27321
27322 [1]
27323 \begin_inset Quotes erd
27324 \end_inset
27325
27326 )
27327 \end_layout
27328
27329 \begin_layout Enumerate
27330 \begin_inset Flex Code
27331 status collapsed
27332
27333 \begin_layout Plain Layout
27334 authoryear
27335 \end_layout
27336
27337 \end_inset
27338
27339 :
27340  Harvard-styled citations using author names and publication year (e.
27341 \begin_inset space \thinspace{}
27342 \end_inset
27343
27344 g.,
27345  
27346 \begin_inset Quotes eld
27347 \end_inset
27348
27349 Smith and Miller (2017b)
27350 \begin_inset Quotes erd
27351 \end_inset
27352
27353 )
27354 \end_layout
27355
27356 \begin_layout Enumerate
27357 \begin_inset Flex Code
27358 status collapsed
27359
27360 \begin_layout Plain Layout
27361 numerical
27362 \end_layout
27363
27364 \end_inset
27365
27366 :
27367  extended numerical citations that also allow for author or title next to the number (e.
27368 \begin_inset space \thinspace{}
27369 \end_inset
27370
27371 g.,
27372  
27373 \begin_inset Quotes eld
27374 \end_inset
27375
27376 Smith and Miller [1]
27377 \begin_inset Quotes erd
27378 \end_inset
27379
27380 )
27381 \end_layout
27382
27383 \begin_layout Standard
27384 \begin_inset Flex Code
27385 status collapsed
27386
27387 \begin_layout Plain Layout
27388 CiteEngine
27389 \end_layout
27390
27391 \end_inset
27392
27393  blocks look like this:
27394 \end_layout
27395
27396 \begin_layout LyX-Code
27397 CiteEngine default
27398 \end_layout
27399
27400 \begin_layout LyX-Code
27401  cite
27402 \end_layout
27403
27404 \begin_layout LyX-Code
27405  Citep*[][]
27406 \end_layout
27407
27408 \begin_layout LyX-Code
27409  citeyearpar[][]=parencite*
27410 \end_layout
27411
27412 \begin_layout LyX-Code
27413  ...
27414 \end_layout
27415
27416 \begin_layout LyX-Code
27417 End
27418 \end_layout
27419
27420 \begin_layout Standard
27421 The tag following 
27422 \begin_inset Flex Code
27423 status collapsed
27424
27425 \begin_layout Plain Layout
27426 CiteEngine
27427 \end_layout
27428
27429 \end_inset
27430
27431  denotes the engine.
27432  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
27433  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
27434  command and the \SpecialChar LaTeX
27435  output or more complex in order to differentiate things.
27436  The full syntax is:
27437 \end_layout
27438
27439 \begin_layout LyX-Code
27440 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
27441 \end_layout
27442
27443 \begin_layout Itemize
27444 \begin_inset Flex Code
27445 status collapsed
27446
27447 \begin_layout Plain Layout
27448 LyXName
27449 \end_layout
27450
27451 \end_inset
27452
27453 :
27454  The name as used in the 
27455 \begin_inset Flex Code
27456 status collapsed
27457
27458 \begin_layout Plain Layout
27459 *.lyx
27460 \end_layout
27461
27462 \end_inset
27463
27464  file.
27465 \end_layout
27466
27467 \begin_deeper
27468 \begin_layout Standard
27469 For portability reasons,
27470  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
27471  and thus we need to differentiate a 
27472 \begin_inset Flex Code
27473 status collapsed
27474
27475 \begin_layout Plain Layout
27476 latexcmd
27477 \end_layout
27478
27479 \end_inset
27480
27481  sometimes,
27482  if the \SpecialChar LaTeX
27483  command names differ).
27484 \end_layout
27485
27486 \end_deeper
27487 \begin_layout Itemize
27488 \begin_inset Flex Code
27489 status collapsed
27490
27491 \begin_layout Plain Layout
27492 alias
27493 \end_layout
27494
27495 \end_inset
27496
27497 :
27498  a (comma-separated) list of commands that fall back to the given 
27499 \begin_inset Flex Code
27500 status collapsed
27501
27502 \begin_layout Plain Layout
27503 LyXName
27504 \end_layout
27505
27506 \end_inset
27507
27508  in the current engine.
27509  This eases the switch of citation packages and engines.
27510  The 
27511 \begin_inset Flex Code
27512 status collapsed
27513
27514 \begin_layout Plain Layout
27515 alias
27516 \end_layout
27517
27518 \end_inset
27519
27520  can be compared to 
27521 \begin_inset Flex Code
27522 status collapsed
27523
27524 \begin_layout Plain Layout
27525 ObsoletedBy
27526 \end_layout
27527
27528 \end_inset
27529
27530  in layout definitions.
27531 \end_layout
27532
27533 \begin_layout Itemize
27534 \begin_inset Flex Code
27535 status collapsed
27536
27537 \begin_layout Plain Layout
27538 latexcmd
27539 \end_layout
27540
27541 \end_inset
27542
27543 :
27544  The actual \SpecialChar LaTeX
27545  command that is output.
27546  
27547 \end_layout
27548
27549 \begin_layout Standard
27550 \begin_inset Flex Code
27551 status collapsed
27552
27553 \begin_layout Plain Layout
27554 Alias
27555 \end_layout
27556
27557 \end_inset
27558
27559  and 
27560 \begin_inset Flex Code
27561 status collapsed
27562
27563 \begin_layout Plain Layout
27564 latexcmd
27565 \end_layout
27566
27567 \end_inset
27568
27569  are optional.
27570  If no 
27571 \begin_inset Flex Code
27572 status collapsed
27573
27574 \begin_layout Plain Layout
27575 latexcmd
27576 \end_layout
27577
27578 \end_inset
27579
27580  is given,
27581  the 
27582 \begin_inset Flex Code
27583 status collapsed
27584
27585 \begin_layout Plain Layout
27586 LyXName
27587 \end_layout
27588
27589 \end_inset
27590
27591  will be output to \SpecialChar LaTeX
27592 .
27593 \end_layout
27594
27595 \begin_layout Standard
27596 Note further:
27597 \end_layout
27598
27599 \begin_layout Itemize
27600 Capitalization indicates that the command also has a capitalized form (
27601 \begin_inset Flex Code
27602 status collapsed
27603
27604 \begin_layout Plain Layout
27605
27606 \backslash
27607 Latexcmd
27608 \end_layout
27609
27610 \end_inset
27611
27612  vs.
27613  
27614 \begin_inset Flex Code
27615 status collapsed
27616
27617 \begin_layout Plain Layout
27618
27619 \backslash
27620 latexcmd
27621 \end_layout
27622
27623 \end_inset
27624
27625 ).
27626  These usually enforce up-casing of name prefixes (
27627 \emph on
27628 von Goethe
27629 \emph default
27630  
27631 \begin_inset Formula $\Rightarrow$
27632 \end_inset
27633
27634  
27635 \emph on
27636 Von Goethe
27637 \emph default
27638 ).
27639 \end_layout
27640
27641 \begin_layout Itemize
27642 Brackets 
27643 \begin_inset Flex Code
27644 status collapsed
27645
27646 \begin_layout Plain Layout
27647 []
27648 \end_layout
27649
27650 \end_inset
27651
27652  indicate the number of optional arguments (there can be 0–2).
27653 \end_layout
27654
27655 \begin_layout Itemize
27656 A star 
27657 \begin_inset Flex Code
27658 status collapsed
27659
27660 \begin_layout Plain Layout
27661 *
27662 \end_layout
27663
27664 \end_inset
27665
27666  indicates there is a starred version of the command (
27667 \begin_inset Flex Code
27668 status collapsed
27669
27670 \begin_layout Plain Layout
27671
27672 \backslash
27673 latexcmd*
27674 \end_layout
27675
27676 \end_inset
27677
27678  vs.
27679  
27680 \begin_inset Flex Code
27681 status collapsed
27682
27683 \begin_layout Plain Layout
27684
27685 \backslash
27686 latexcmd
27687 \end_layout
27688
27689 \end_inset
27690
27691 ).
27692  
27693 \end_layout
27694
27695 \begin_deeper
27696 \begin_layout Standard
27697 By default,
27698  the starred version means:
27699  Output all authors even if it should be shortened with 
27700 \begin_inset Quotes eld
27701 \end_inset
27702
27703 et al.
27704 \begin_inset Quotes erd
27705 \end_inset
27706
27707  due to the 
27708 \begin_inset Flex Code
27709 status collapsed
27710
27711 \begin_layout Plain Layout
27712 MaxCiteNames
27713 \end_layout
27714
27715 \end_inset
27716
27717  threshold.
27718 \end_layout
27719
27720 \begin_layout Standard
27721 If the star has a different meaning for a given command,
27722  it can be specified in angle brackets:
27723  
27724 \begin_inset Flex Code
27725 status collapsed
27726
27727 \begin_layout Plain Layout
27728 <!_stardesc!_stardesctooltip>
27729 \end_layout
27730
27731 \end_inset
27732
27733 .
27734  Maximal two translatable macro keywords,
27735  marked by the prefix 
27736 \begin_inset Flex Code
27737 status collapsed
27738
27739 \begin_layout Plain Layout
27740 !_
27741 \end_layout
27742
27743 \end_inset
27744
27745 ,
27746  can be given.
27747  The first points to the string that replaces the 
27748 \begin_inset Quotes eld
27749 \end_inset
27750
27751 Full aut&hor list
27752 \begin_inset Quotes erd
27753 \end_inset
27754
27755  checkbox label in the citation dialog,
27756  the second one to an optional tool tip for this checkbox.
27757  
27758 \end_layout
27759
27760 \begin_layout Standard
27761 Note that these two macros have to be defined in a 
27762 \begin_inset Flex Code
27763 status collapsed
27764
27765 \begin_layout Plain Layout
27766 CiteFormat
27767 \end_layout
27768
27769 \end_inset
27770
27771  (see next section),
27772  dropping the 
27773 \begin_inset Flex Code
27774 status collapsed
27775
27776 \begin_layout Plain Layout
27777 !
27778 \end_layout
27779
27780 \end_inset
27781
27782  from the prefix,
27783  like this:
27784  
27785 \end_layout
27786
27787 \begin_layout LyX-Code
27788 _stardesc Sta&rred command label
27789 \end_layout
27790
27791 \begin_layout LyX-Code
27792 _stardesctooltip Tooltip for the starred command checkbox.
27793 \end_layout
27794
27795 \end_deeper
27796 \begin_layout Itemize
27797 A dollar sign 
27798 \begin_inset Flex Code
27799 status collapsed
27800
27801 \begin_layout Plain Layout
27802 $
27803 \end_layout
27804
27805 \end_inset
27806
27807  indicates that this command features 
27808 \begin_inset Quotes eld
27809 \end_inset
27810
27811 qualified citation lists
27812 \begin_inset Quotes erd
27813 \end_inset
27814
27815 .
27816  This is a 
27817 \family sans
27818 Biblatex
27819 \family default
27820 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
27821  Please refer to the 
27822 \family sans
27823 Biblatex
27824 \family default
27825  manual for details.
27826 \change_inserted -712698321 1526898670
27827
27828 \end_layout
27829
27830 \begin_layout Standard
27831
27832 \change_inserted -712698321 1526899524
27833 If you want to add a cite command to a cite engine (e.
27834 \begin_inset space \thinspace{}
27835 \end_inset
27836
27837 g.,
27838  add a specific command provided by a class),
27839  you can use 
27840 \begin_inset Flex Code
27841 status collapsed
27842
27843 \begin_layout Plain Layout
27844
27845 \change_inserted -712698321 1526898768
27846 AddToCiteEngine <engine type> \SpecialChar ldots
27847  End
27848 \change_unchanged
27849
27850 \end_layout
27851
27852 \end_inset
27853
27854 .
27855  Note that only cite commands that do not exist yet are added.
27856 \change_unchanged
27857
27858 \end_layout
27859
27860 \begin_layout Subsection
27861 \begin_inset CommandInset label
27862 LatexCommand label
27863 name "subsec:Citation-format-description"
27864
27865 \end_inset
27866
27867 Cite format description
27868 \end_layout
27869
27870 \begin_layout Standard
27871 The 
27872 \begin_inset Flex Code
27873 status collapsed
27874
27875 \begin_layout Plain Layout
27876 CiteFormat
27877 \end_layout
27878
27879 \end_inset
27880
27881  blocks are used to describe how bibliographic information should be displayed,
27882  both within \SpecialChar LyX
27883  itself (in the citation dialog and in tooltips,
27884  for example) and in XHTML output.
27885  Such a block might look like this:
27886 \end_layout
27887
27888 \begin_layout LyX-Code
27889 CiteFormat
27890 \end_layout
27891
27892 \begin_layout LyX-Code
27893  article ...
27894 \end_layout
27895
27896 \begin_layout LyX-Code
27897  book ...
27898 \end_layout
27899
27900 \begin_layout LyX-Code
27901 End
27902 \end_layout
27903
27904 \begin_layout Standard
27905 or
27906 \end_layout
27907
27908 \begin_layout LyX-Code
27909 CiteFormat
27910 \end_layout
27911
27912 \begin_layout LyX-Code
27913  cite ...
27914 \end_layout
27915
27916 \begin_layout LyX-Code
27917  citet*[][] ...
27918 \end_layout
27919
27920 \begin_layout LyX-Code
27921 End
27922 \end_layout
27923
27924 \begin_layout Standard
27925 In the first case,
27926  the individual lines define how the bibliographic information associated with an article or book,
27927  respectively,
27928  is to be displayed,
27929  and such a definition can be given for any 
27930 \begin_inset Quotes els
27931 \end_inset
27932
27933 entry type
27934 \begin_inset Quotes ers
27935 \end_inset
27936
27937  that might be present in a Bib\SpecialChar TeX
27938  file.
27939  \SpecialChar LyX
27940  defines a default format in the source code that will be used if no specific definition has been given.
27941  \SpecialChar LyX
27942  predefines several formats in the file 
27943 \begin_inset Flex Code
27944 status collapsed
27945
27946 \begin_layout Plain Layout
27947 stdciteformats.inc
27948 \end_layout
27949
27950 \end_inset
27951
27952 ,
27953  which is included in most of \SpecialChar LyX
27954 's document classes.
27955 \end_layout
27956
27957 \begin_layout Standard
27958 In the second case,
27959  the lines define how a specific citation command (in the example 
27960 \begin_inset Flex Code
27961 status collapsed
27962
27963 \begin_layout Plain Layout
27964
27965 \backslash
27966 cite
27967 \end_layout
27968
27969 \end_inset
27970
27971 ,
27972  
27973 \begin_inset Flex Code
27974 status collapsed
27975
27976 \begin_layout Plain Layout
27977
27978 \backslash
27979 citet
27980 \end_layout
27981
27982 \end_inset
27983
27984 ) is to be displayed on the citation inset label,
27985  in the citation dialog,
27986  menu or XHTML output.
27987  \SpecialChar LyX
27988  defines such formats for the citation style variants it supports via 
27989 \family sans
27990 Document\SpecialChar menuseparator
27991 Setting\SpecialChar menuseparator
27992 Bibliography\SpecialChar ldots
27993
27994 \family default
27995  in specific 
27996 \begin_inset Flex Code
27997 status collapsed
27998
27999 \begin_layout Plain Layout
28000 *.citeengine
28001 \end_layout
28002
28003 \end_inset
28004
28005  files that are shipped with \SpecialChar LyX
28006  (see 
28007 \begin_inset CommandInset ref
28008 LatexCommand ref
28009 reference "subsec:Cite-Engine-Files"
28010 plural "false"
28011 caps "false"
28012 noprefix "false"
28013 nolink "false"
28014
28015 \end_inset
28016
28017 ).
28018 \end_layout
28019
28020 \begin_layout Standard
28021 The definitions use a simple language that allows Bib\SpecialChar TeX
28022  keys to be replaced with their values.
28023  Keys should be enclosed in 
28024 \begin_inset Flex Code
28025 status collapsed
28026
28027 \begin_layout Plain Layout
28028 %
28029 \end_layout
28030
28031 \end_inset
28032
28033  signs,
28034  e.g.:
28035  
28036 \begin_inset Flex Code
28037 status collapsed
28038
28039 \begin_layout Plain Layout
28040 %author%
28041 \end_layout
28042
28043 \end_inset
28044
28045 .
28046  So a simple definition might look like this:
28047 \end_layout
28048
28049 \begin_layout LyX-Code
28050 misc %author%,
28051  
28052 \begin_inset Quotes eld
28053 \end_inset
28054
28055 %title%
28056 \begin_inset Quotes erd
28057 \end_inset
28058
28059 .
28060 \end_layout
28061
28062 \begin_layout Standard
28063 This would print the author,
28064  followed by a comma,
28065  followed by the title,
28066  in quotes,
28067  followed by a period.
28068 \end_layout
28069
28070 \begin_layout Standard
28071 Of course,
28072  sometimes you may want to print a key only if it exists.
28073  This can be done by using a conditional construction,
28074  such as:
28075  
28076 \begin_inset Flex Code
28077 status collapsed
28078
28079 \begin_layout Plain Layout
28080 {%volume%[[vol.
28081 \begin_inset space ~
28082 \end_inset
28083
28084 %volume%]]}
28085 \end_layout
28086
28087 \end_inset
28088
28089 .
28090  This says:
28091  If the 
28092 \begin_inset Flex Code
28093 status collapsed
28094
28095 \begin_layout Plain Layout
28096 volume
28097 \end_layout
28098
28099 \end_inset
28100
28101  key exists,
28102  then print 
28103 \begin_inset Quotes eld
28104 \end_inset
28105
28106 vol.
28107 \begin_inset space ~
28108 \end_inset
28109
28110
28111 \begin_inset Quotes erd
28112 \end_inset
28113
28114  followed by the volume key.
28115  It is also possible to have an else clause in the conditional,
28116  such as:
28117 \begin_inset Newline newline
28118 \end_inset
28119
28120
28121 \begin_inset Flex Code
28122 status collapsed
28123
28124 \begin_layout Plain Layout
28125 {%author%[[%author%]][[%editor%,
28126  ed.]]}
28127 \end_layout
28128
28129 \end_inset
28130
28131 .
28132 \begin_inset Newline newline
28133 \end_inset
28134
28135 Here,
28136  the 
28137 \begin_inset Flex Code
28138 status collapsed
28139
28140 \begin_layout Plain Layout
28141 author
28142 \end_layout
28143
28144 \end_inset
28145
28146  key is printed if it exists;
28147  otherwise,
28148  the editor key is printed,
28149  followed by 
28150 \begin_inset Quotes eld
28151 \end_inset
28152
28153 ,
28154 \begin_inset space ~
28155 \end_inset
28156
28157 ed.
28158 \begin_inset Quotes erd
28159 \end_inset
28160
28161  Note that the key is again enclosed in 
28162 \begin_inset Flex Code
28163 status collapsed
28164
28165 \begin_layout Plain Layout
28166 %
28167 \end_layout
28168
28169 \end_inset
28170
28171  signs;
28172  the entire conditional is enclosed in braces;
28173  and the if and else clauses are enclosed in double brackets,
28174  
28175 \begin_inset Quotes eld
28176 \end_inset
28177
28178
28179 \begin_inset Flex Code
28180 status collapsed
28181
28182 \begin_layout Plain Layout
28183 [[
28184 \end_layout
28185
28186 \end_inset
28187
28188
28189 \begin_inset Quotes eld
28190 \end_inset
28191
28192  and 
28193 \begin_inset Quotes eld
28194 \end_inset
28195
28196
28197 \begin_inset Flex Code
28198 status collapsed
28199
28200 \begin_layout Plain Layout
28201 ]]
28202 \end_layout
28203
28204 \end_inset
28205
28206
28207 \begin_inset Quotes erd
28208 \end_inset
28209
28210 .
28211  There must be no space between any of these.
28212 \end_layout
28213
28214 \begin_layout Standard
28215 Next to the entry keys,
28216  there are some special keys that can be used for these conditionals:
28217 \end_layout
28218
28219 \begin_layout Itemize
28220 \begin_inset Flex Code
28221 status collapsed
28222
28223 \begin_layout Plain Layout
28224 {%dialog%[[true]][[false]]}
28225 \end_layout
28226
28227 \end_inset
28228
28229 :
28230  process the 
28231 \begin_inset Quotes eld
28232 \end_inset
28233
28234 true
28235 \begin_inset Quotes erd
28236 \end_inset
28237
28238  part for dialogs and menus,
28239  the 
28240 \begin_inset Quotes eld
28241 \end_inset
28242
28243 false
28244 \begin_inset Quotes erd
28245 \end_inset
28246
28247  part for other contexts (workarea,
28248  export)
28249 \end_layout
28250
28251 \begin_layout Itemize
28252 \begin_inset Flex Code
28253 status collapsed
28254
28255 \begin_layout Plain Layout
28256 {%export%[[true]][[false]]}
28257 \end_layout
28258
28259 \end_inset
28260
28261 :
28262  process the 
28263 \begin_inset Quotes eld
28264 \end_inset
28265
28266 true
28267 \begin_inset Quotes erd
28268 \end_inset
28269
28270  part for export and menus,
28271  the 
28272 \begin_inset Quotes eld
28273 \end_inset
28274
28275 false
28276 \begin_inset Quotes erd
28277 \end_inset
28278
28279  part for other contexts (workarea,
28280  dialog)
28281 \end_layout
28282
28283 \begin_layout Itemize
28284 \begin_inset Flex Code
28285 status collapsed
28286
28287 \begin_layout Plain Layout
28288 {%next%[[true]]}
28289 \end_layout
28290
28291 \end_inset
28292
28293 :
28294  process the 
28295 \begin_inset Quotes eld
28296 \end_inset
28297
28298 true
28299 \begin_inset Quotes erd
28300 \end_inset
28301
28302  part if another item follows (e.
28303 \begin_inset space \thinspace{}
28304 \end_inset
28305
28306 g.,
28307  in a citation with multiple keys)
28308 \end_layout
28309
28310 \begin_layout Itemize
28311 \begin_inset Flex Code
28312 status collapsed
28313
28314 \begin_layout Plain Layout
28315 {%second%[[true]][[false]]}
28316 \end_layout
28317
28318 \end_inset
28319
28320 :
28321  process the 
28322 \begin_inset Quotes eld
28323 \end_inset
28324
28325 true
28326 \begin_inset Quotes erd
28327 \end_inset
28328
28329  if this is the second of multiple items,
28330  else the 
28331 \begin_inset Quotes eld
28332 \end_inset
28333
28334 false
28335 \begin_inset Quotes erd
28336 \end_inset
28337
28338  part
28339 \end_layout
28340
28341 \begin_layout Itemize
28342 \begin_inset Flex Code
28343 status collapsed
28344
28345 \begin_layout Plain Layout
28346 {%ifstar%[[true]][[false]]}
28347 \end_layout
28348
28349 \end_inset
28350
28351 :
28352  process the 
28353 \begin_inset Quotes eld
28354 \end_inset
28355
28356 true
28357 \begin_inset Quotes erd
28358 \end_inset
28359
28360  part for starred citation commands (such as 
28361 \begin_inset Flex Code
28362 status collapsed
28363
28364 \begin_layout Plain Layout
28365
28366 \backslash
28367 cite*
28368 \end_layout
28369
28370 \end_inset
28371
28372 ),
28373  the false part for unstarred
28374 \end_layout
28375
28376 \begin_layout Itemize
28377 \begin_inset Flex Code
28378 status collapsed
28379
28380 \begin_layout Plain Layout
28381 {%ifentrytype:<type>%[[true]][[false]]}
28382 \end_layout
28383
28384 \end_inset
28385
28386 :
28387  process the 
28388 \begin_inset Quotes eld
28389 \end_inset
28390
28391 true
28392 \begin_inset Quotes erd
28393 \end_inset
28394
28395  if the current entry type matches 
28396 \begin_inset Flex Code
28397 status collapsed
28398
28399 \begin_layout Plain Layout
28400 <type>
28401 \end_layout
28402
28403 \end_inset
28404
28405 ,
28406  else the false part (e.g.,
28407  in a citation definition:
28408  
28409 \begin_inset Flex Code
28410 status collapsed
28411
28412 \begin_layout Plain Layout
28413 {%ifentrytype:book%[[this is a book]][[this is no book]]}
28414 \end_layout
28415
28416 \end_inset
28417
28418 )
28419 \end_layout
28420
28421 \begin_layout Itemize
28422 \begin_inset Flex Code
28423 status collapsed
28424
28425 \begin_layout Plain Layout
28426 {%ifmultiple:<authortype>%[[true]][[false]]}
28427 \end_layout
28428
28429 \end_inset
28430
28431 :
28432  process the 
28433 \begin_inset Quotes eld
28434 \end_inset
28435
28436 true
28437 \begin_inset Quotes erd
28438 \end_inset
28439
28440  if the current author type (author,
28441  editor etc.) has multiple authors,
28442  else the false part (e.g.,
28443  in a bibliography definition:
28444  
28445 \begin_inset Flex Code
28446 status collapsed
28447
28448 \begin_layout Plain Layout
28449 {%ifmultiple:editor%[[eds.]][[ed.]]}
28450 \end_layout
28451
28452 \end_inset
28453
28454 )
28455 \end_layout
28456
28457 \begin_layout Itemize
28458 \begin_inset Flex Code
28459 status collapsed
28460
28461 \begin_layout Plain Layout
28462 {%ifqualified%[[true]][[false]]}
28463 \end_layout
28464
28465 \end_inset
28466
28467 :
28468  process the 
28469 \begin_inset Quotes eld
28470 \end_inset
28471
28472 true
28473 \begin_inset Quotes erd
28474 \end_inset
28475
28476  part if the current citation is a qualified citation list (a specific 
28477 \family sans
28478 Biblatex
28479 \family default
28480  format for multi-reference citations),
28481  the false part if this is not the case.
28482 \end_layout
28483
28484 \begin_layout Standard
28485 We said that 
28486 \begin_inset Flex Code
28487 status collapsed
28488
28489 \begin_layout Plain Layout
28490 %author%
28491 \end_layout
28492
28493 \end_inset
28494
28495  prints the author key as it is recorded in the bibliography file.
28496  This might not be what you want,
28497  since it will result in a string such as 
28498 \begin_inset Quotes eld
28499 \end_inset
28500
28501 Miller,
28502  Peter and Smith,
28503  Mary and White,
28504  Jane
28505 \begin_inset Quotes erd
28506 \end_inset
28507
28508  (since 
28509 \begin_inset Quotes eld
28510 \end_inset
28511
28512 and
28513 \begin_inset Quotes erd
28514 \end_inset
28515
28516  is used by Bib\SpecialChar TeX
28517  to delimit authors).
28518  \SpecialChar LyX
28519  therefore provides some methods to get properly formatted name lists (which will also get translated).
28520  The following keys are provided:
28521 \end_layout
28522
28523 \begin_layout Enumerate
28524 For name lists with pre- and surname,
28525  suitable for the main authors/editors of a bibliography item.
28526  The 
28527 \begin_inset Flex Code
28528 status collapsed
28529
28530 \begin_layout Plain Layout
28531 <nametype>
28532 \end_layout
28533
28534 \end_inset
28535
28536  part denotes the kind of list that is requested (e.g.
28537  
28538 \begin_inset Flex Code
28539 status collapsed
28540
28541 \begin_layout Plain Layout
28542 <nametype:author>
28543 \end_layout
28544
28545 \end_inset
28546
28547 ):
28548 \end_layout
28549
28550 \begin_deeper
28551 \begin_layout Itemize
28552 \begin_inset Flex Code
28553 status collapsed
28554
28555 \begin_layout Plain Layout
28556 %abbrvnames:<nametype>%
28557 \end_layout
28558
28559 \end_inset
28560
28561 :
28562  Provides a name list which is abbreviated (with 
28563 \begin_inset Quotes eld
28564 \end_inset
28565
28566 et al.
28567 \begin_inset Quotes erd
28568 \end_inset
28569
28570 ) when 
28571 \begin_inset Flex Code
28572 status collapsed
28573
28574 \begin_layout Plain Layout
28575 MaxCiteNames
28576 \end_layout
28577
28578 \end_inset
28579
28580  is reached.
28581 \end_layout
28582
28583 \begin_layout Itemize
28584 \begin_inset Flex Code
28585 status collapsed
28586
28587 \begin_layout Plain Layout
28588 %fullnames:<nametype>%
28589 \end_layout
28590
28591 \end_inset
28592
28593 :
28594  Provides a full name list (never abbreviated with 
28595 \begin_inset Quotes eld
28596 \end_inset
28597
28598 et al.
28599 \begin_inset Quotes erd
28600 \end_inset
28601
28602 ).
28603 \end_layout
28604
28605 \begin_layout Itemize
28606 \begin_inset Flex Code
28607 status collapsed
28608
28609 \begin_layout Plain Layout
28610 %forceabbrvnames:<nametype>%
28611 \end_layout
28612
28613 \end_inset
28614
28615 :
28616  Provides a name list which is always abbreviated (with 
28617 \begin_inset Quotes eld
28618 \end_inset
28619
28620 et al.
28621 \begin_inset Quotes erd
28622 \end_inset
28623
28624 ) irrespective of 
28625 \begin_inset Flex Code
28626 status collapsed
28627
28628 \begin_layout Plain Layout
28629 MaxCiteNames
28630 \end_layout
28631
28632 \end_inset
28633
28634 .
28635 \end_layout
28636
28637 \end_deeper
28638 \begin_layout Enumerate
28639 Alternative name lists with pre- and surname,
28640  if the order of pre- and surname inside the bibliography item differs (as in:
28641  
28642 \begin_inset Quotes eld
28643 \end_inset
28644
28645 Miller,
28646  John:
28647  Some text,
28648  in:
28649  Mary Smith,
28650  ed.:
28651  A volume
28652 \begin_inset Quotes erd
28653 \end_inset
28654
28655 ):
28656 \end_layout
28657
28658 \begin_deeper
28659 \begin_layout Itemize
28660 \begin_inset Flex Code
28661 status collapsed
28662
28663 \begin_layout Plain Layout
28664 %abbrvbynames:<nametype>%
28665 \end_layout
28666
28667 \end_inset
28668
28669 :
28670  Provides a name list which is abbreviated (with 
28671 \begin_inset Quotes eld
28672 \end_inset
28673
28674 et al.
28675 \begin_inset Quotes erd
28676 \end_inset
28677
28678 ) when 
28679 \begin_inset Flex Code
28680 status collapsed
28681
28682 \begin_layout Plain Layout
28683 MaxCiteNames
28684 \end_layout
28685
28686 \end_inset
28687
28688  is reached.
28689 \end_layout
28690
28691 \begin_layout Itemize
28692 \begin_inset Flex Code
28693 status collapsed
28694
28695 \begin_layout Plain Layout
28696 %fullbynames:<nametype>%
28697 \end_layout
28698
28699 \end_inset
28700
28701 :
28702  Provides a full name list (never abbreviated with 
28703 \begin_inset Quotes eld
28704 \end_inset
28705
28706 et al.
28707 \begin_inset Quotes erd
28708 \end_inset
28709
28710 ).
28711 \end_layout
28712
28713 \begin_layout Itemize
28714 \begin_inset Flex Code
28715 status collapsed
28716
28717 \begin_layout Plain Layout
28718 %forceabbrvbynames:<nametype>%
28719 \end_layout
28720
28721 \end_inset
28722
28723 :
28724  Provides a name list which is always abbreviated (with 
28725 \begin_inset Quotes eld
28726 \end_inset
28727
28728 et al.
28729 \begin_inset Quotes erd
28730 \end_inset
28731
28732 ) irrespective of 
28733 \begin_inset Flex Code
28734 status collapsed
28735
28736 \begin_layout Plain Layout
28737 MaxCiteNames
28738 \end_layout
28739
28740 \end_inset
28741
28742 .
28743 \end_layout
28744
28745 \end_deeper
28746 \begin_layout Enumerate
28747 And finally name lists which consist of family names only,
28748  as used in author-year citation labels.
28749  These do not take a 
28750 \begin_inset Flex Code
28751 status collapsed
28752
28753 \begin_layout Plain Layout
28754 <nametype>
28755 \end_layout
28756
28757 \end_inset
28758
28759  part,
28760  but always return either an author list or,
28761  if this does not exist,
28762  an editor list (as common in author-year labels):
28763 \end_layout
28764
28765 \begin_deeper
28766 \begin_layout Itemize
28767 \begin_inset Flex Code
28768 status collapsed
28769
28770 \begin_layout Plain Layout
28771 %abbrvciteauthor%
28772 \end_layout
28773
28774 \end_inset
28775
28776 :
28777  Provides a name list which is abbreviated (with 
28778 \begin_inset Quotes eld
28779 \end_inset
28780
28781 et al.
28782 \begin_inset Quotes erd
28783 \end_inset
28784
28785 ) when 
28786 \begin_inset Flex Code
28787 status collapsed
28788
28789 \begin_layout Plain Layout
28790 MaxCiteNames
28791 \end_layout
28792
28793 \end_inset
28794
28795  is reached.
28796 \end_layout
28797
28798 \begin_layout Itemize
28799 \begin_inset Flex Code
28800 status collapsed
28801
28802 \begin_layout Plain Layout
28803 %fullciteauthor%
28804 \end_layout
28805
28806 \end_inset
28807
28808 :
28809  Provides a full name list (never abbreviated with 
28810 \begin_inset Quotes eld
28811 \end_inset
28812
28813 et al.
28814 \begin_inset Quotes erd
28815 \end_inset
28816
28817 ).
28818 \end_layout
28819
28820 \begin_layout Itemize
28821 \begin_inset Flex Code
28822 status collapsed
28823
28824 \begin_layout Plain Layout
28825 %forceabbrvciteauthor%
28826 \end_layout
28827
28828 \end_inset
28829
28830 :
28831  Provides a name list which is always abbreviated (with 
28832 \begin_inset Quotes eld
28833 \end_inset
28834
28835 et al.
28836 \begin_inset Quotes erd
28837 \end_inset
28838
28839 ) irrespective of 
28840 \begin_inset Flex Code
28841 status collapsed
28842
28843 \begin_layout Plain Layout
28844 MaxCiteNames
28845 \end_layout
28846
28847 \end_inset
28848
28849 .
28850 \end_layout
28851
28852 \end_deeper
28853 \begin_layout Standard
28854 The order of pre- and surname in the former two lists can be adjusted by these macros:
28855 \end_layout
28856
28857 \begin_layout Itemize
28858 \begin_inset Flex Code
28859 status collapsed
28860
28861 \begin_layout Plain Layout
28862 !firstnameform %surname%,
28863  %prename%
28864 \end_layout
28865
28866 \end_inset
28867
28868  (first author in lists of type 1)
28869 \end_layout
28870
28871 \begin_layout Itemize
28872 \begin_inset Flex Code
28873 status collapsed
28874
28875 \begin_layout Plain Layout
28876 !othernameform %surname%,
28877  %prename%
28878 \end_layout
28879
28880 \end_inset
28881
28882  (other authors in lists of type 1)
28883 \end_layout
28884
28885 \begin_layout Itemize
28886 \begin_inset Flex Code
28887 status collapsed
28888
28889 \begin_layout Plain Layout
28890 !firstbynameform %prename% %surname%
28891 \end_layout
28892
28893 \end_inset
28894
28895  (first author in lists of type 2)
28896 \end_layout
28897
28898 \begin_layout Itemize
28899 \begin_inset Flex Code
28900 status collapsed
28901
28902 \begin_layout Plain Layout
28903 !otherbynameform %prename% %surname%
28904 \end_layout
28905
28906 \end_inset
28907
28908  (other authors in lists of type 2)
28909 \end_layout
28910
28911 \begin_layout Standard
28912 This allows you to configure namings like 
28913 \begin_inset Quotes eld
28914 \end_inset
28915
28916 Miller,
28917  Peter and Mary Smith:
28918  \SpecialChar ldots
28919 ,
28920  in:
28921  John Doe and Pat Green,
28922  eds.:\SpecialChar ldots
28923
28924 \begin_inset Quotes erd
28925 \end_inset
28926
28927 .
28928 \end_layout
28929
28930 \begin_layout Standard
28931 There is one other piece of syntax available in definitions,
28932  which looks like this:
28933  
28934 \begin_inset Flex Code
28935 status collapsed
28936
28937 \begin_layout Plain Layout
28938 {!<i>!}
28939 \end_layout
28940
28941 \end_inset
28942
28943 .
28944  This defines a piece of formatting information that is to be used when creating 
28945 \begin_inset Quotes eld
28946 \end_inset
28947
28948 rich text
28949 \begin_inset Quotes erd
28950 \end_inset
28951
28952 .
28953  Obviously,
28954  we do not want to output HTML tags when writing plain text,
28955  so they should be wrapped in 
28956 \begin_inset Quotes eld
28957 \end_inset
28958
28959 {!
28960 \begin_inset Quotes erd
28961 \end_inset
28962
28963  and 
28964 \begin_inset Quotes eld
28965 \end_inset
28966
28967 !}
28968 \begin_inset Quotes erd
28969 \end_inset
28970
28971 .
28972 \end_layout
28973
28974 \begin_layout Standard
28975 Two special sorts of definitions are also possible in a 
28976 \begin_inset Flex Code
28977 status collapsed
28978
28979 \begin_layout Plain Layout
28980 CiteFormat
28981 \end_layout
28982
28983 \end_inset
28984
28985  block.
28986  An example of the first would be:
28987 \end_layout
28988
28989 \begin_layout LyX-Code
28990 !quotetitle 
28991 \begin_inset Quotes eld
28992 \end_inset
28993
28994 %title%
28995 \begin_inset Quotes erd
28996 \end_inset
28997
28998
28999 \end_layout
29000
29001 \begin_layout Standard
29002 This is an abbreviation,
29003  or macro,
29004  and it can be used by treating it as if it were a key:
29005  
29006 \begin_inset Flex Code
29007 status collapsed
29008
29009 \begin_layout Plain Layout
29010 %!quotetitle%
29011 \end_layout
29012
29013 \end_inset
29014
29015 .
29016  \SpecialChar LyX
29017  will treat 
29018 \begin_inset Flex Code
29019 status collapsed
29020
29021 \begin_layout Plain Layout
29022 %!quotetitle%
29023 \end_layout
29024
29025 \end_inset
29026
29027  exactly as it would treat its definition.
29028  So,
29029  let us issue the obvious 
29030 \emph on
29031 warning
29032 \emph default
29033 .
29034  Do not do this:
29035 \end_layout
29036
29037 \begin_layout LyX-Code
29038 !funfun %funfun%
29039 \end_layout
29040
29041 \begin_layout Standard
29042 or anything like it.
29043  \SpecialChar LyX
29044  shouldn't go into an infinite loop,
29045  but it may go into a long one before it gives up.
29046 \end_layout
29047
29048 \begin_layout Standard
29049 The second sort of special definition might look like this:
29050 \end_layout
29051
29052 \begin_layout LyX-Code
29053 B_pptext pp.
29054 \end_layout
29055
29056 \begin_layout Standard
29057 This defines a translatable piece of text,
29058  which allows relevant parts of the bibliography or citation to be translated.
29059  It can be included in a definition by treating it as a key:
29060  
29061 \begin_inset Flex Code
29062 status collapsed
29063
29064 \begin_layout Plain Layout
29065 %B_pptext%
29066 \end_layout
29067
29068 \end_inset
29069
29070 .
29071  Note that there are two different translation paths:
29072  All definitions starting with 
29073 \begin_inset Flex Code
29074 status collapsed
29075
29076 \begin_layout Plain Layout
29077 B_
29078 \end_layout
29079
29080 \end_inset
29081
29082 ,
29083  such as in the example above,
29084  will be translated to the currently active buffer language (so the translation will match the generated document).
29085  All definitions starting with underscore only will be translated to the GUI language.
29086  This is the proper translation for strings that only occur in the dialogs or on buttons,
29087  such as this one:
29088 \end_layout
29089
29090 \begin_layout LyX-Code
29091 _addtobib Add to bibliography only.
29092 \end_layout
29093
29094 \begin_layout Standard
29095 Several of these translatable strings are predefined in 
29096 \begin_inset Flex Code
29097 status collapsed
29098
29099 \begin_layout Plain Layout
29100 stdciteformats.inc
29101 \end_layout
29102
29103 \end_inset
29104
29105  and the diverse 
29106 \begin_inset Flex Code
29107 status collapsed
29108
29109 \begin_layout Plain Layout
29110 *.citeengine
29111 \end_layout
29112
29113 \end_inset
29114
29115  files.
29116  Note that these are not macros,
29117  in the sense just defined.
29118  They will not be expanded.
29119 \end_layout
29120
29121 \begin_layout Standard
29122 So here then is an example that uses several of these features:
29123 \begin_inset VSpace defskip
29124 \end_inset
29125
29126
29127 \end_layout
29128
29129 \begin_layout Standard
29130 \noindent
29131
29132 \family sans
29133 !authoredit {%author%[[%author%,
29134  ]][[{%editor%[[%editor%,
29135  %B_edtext%,
29136  ]]}]]}
29137 \end_layout
29138
29139 \begin_layout Standard
29140 \begin_inset VSpace defskip
29141 \end_inset
29142
29143 This defines a macro that prints the author,
29144  followed by a comma,
29145  if the 
29146 \begin_inset Flex Code
29147 status collapsed
29148
29149 \begin_layout Plain Layout
29150 author
29151 \end_layout
29152
29153 \end_inset
29154
29155  key is defined,
29156  or else prints the name of the editor,
29157  followed by the 
29158 \begin_inset Flex Code
29159 status collapsed
29160
29161 \begin_layout Plain Layout
29162 B_edtext
29163 \end_layout
29164
29165 \end_inset
29166
29167  or its translation (it is by default 
29168 \begin_inset Quotes eld
29169 \end_inset
29170
29171 ed.
29172 \begin_inset Quotes erd
29173 \end_inset
29174
29175 ),
29176  if the 
29177 \begin_inset Flex Code
29178 status collapsed
29179
29180 \begin_layout Plain Layout
29181 editor
29182 \end_layout
29183
29184 \end_inset
29185
29186  key is defined.
29187  Note that this is in fact defined in 
29188 \begin_inset Flex Code
29189 status collapsed
29190
29191 \begin_layout Plain Layout
29192 stdciteformats.inc
29193 \end_layout
29194
29195 \end_inset
29196
29197 ,
29198  so you can use it in your own definitions,
29199  or re-definitions,
29200  if you load that file first.
29201 \end_layout
29202
29203 \begin_layout Section
29204 \begin_inset CommandInset label
29205 LatexCommand label
29206 name "sec:Tags-for-XHTML"
29207
29208 \end_inset
29209
29210 Tags for XHTML output
29211 \end_layout
29212
29213 \begin_layout Standard
29214 As with \SpecialChar LaTeX
29215  or DocBook,
29216  the format of \SpecialChar LyX
29217 's XHTML output is also controlled by layout information.
29218  In general,
29219  \SpecialChar LyX
29220  provides sensible defaults and,
29221  as mentioned earlier,
29222  it will even construct default CSS style rules from the other layout tags.
29223  For example,
29224  \SpecialChar LyX
29225  will attempt to use the information provided in the 
29226 \begin_inset Flex Code
29227 status collapsed
29228
29229 \begin_layout Plain Layout
29230 Font
29231 \end_layout
29232
29233 \end_inset
29234
29235  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
29236 \end_layout
29237
29238 \begin_layout Standard
29239 In many cases,
29240  then,
29241  you may not have to do anything at all to get acceptable XHTML output for your own environments,
29242  custom insets,
29243  and so forth.
29244  But in some cases you will,
29245  and so \SpecialChar LyX
29246  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
29247 \end_layout
29248
29249 \begin_layout Standard
29250 Note that there are two tags,
29251  
29252 \begin_inset Flex Code
29253 status collapsed
29254
29255 \begin_layout Plain Layout
29256 HTMLPreamble
29257 \end_layout
29258
29259 \end_inset
29260
29261  and 
29262 \begin_inset Flex Code
29263 status collapsed
29264
29265 \begin_layout Plain Layout
29266 AddToHTMLPreamble
29267 \end_layout
29268
29269 \end_inset
29270
29271  that may appear outside style and inset declarations.
29272  See 
29273 \begin_inset CommandInset ref
29274 LatexCommand ref
29275 reference "subsec:General-text-class"
29276 nolink "false"
29277
29278 \end_inset
29279
29280  for details on these.
29281 \end_layout
29282
29283 \begin_layout Subsection
29284 \begin_inset CommandInset label
29285 LatexCommand label
29286 name "subsec:Paragraph-Style-XHTML"
29287
29288 \end_inset
29289
29290 Paragraph styles
29291 \end_layout
29292
29293 \begin_layout Standard
29294 The sort of XHTML \SpecialChar LyX
29295  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
29296  a command,
29297  or an environment,
29298  where this is itself determined by the contents of the corresponding 
29299 \begin_inset Flex Code
29300 status collapsed
29301
29302 \begin_layout Plain Layout
29303 \SpecialChar LaTeX
29304 Type
29305 \end_layout
29306
29307 \end_inset
29308
29309  tag.
29310  
29311 \end_layout
29312
29313 \begin_layout Standard
29314 For a command or normal paragraph,
29315  the output XHTML has the following form:
29316 \end_layout
29317
29318 \begin_layout LyX-Code
29319
29320 \family sans
29321 <tag attr=
29322 \begin_inset Quotes erd
29323 \end_inset
29324
29325 value
29326 \begin_inset Quotes erd
29327 \end_inset
29328
29329 >
29330 \end_layout
29331
29332 \begin_layout LyX-Code
29333
29334 \family sans
29335 <labeltag attr=
29336 \begin_inset Quotes erd
29337 \end_inset
29338
29339 value
29340 \begin_inset Quotes erd
29341 \end_inset
29342
29343 >Label</labeltag>
29344 \end_layout
29345
29346 \begin_layout LyX-Code
29347
29348 \family sans
29349 Contents of the paragraph.
29350 \end_layout
29351
29352 \begin_layout LyX-Code
29353
29354 \family sans
29355 </tag>
29356 \end_layout
29357
29358 \begin_layout Standard
29359 The label tags are of course omitted if the paragraph does not have a label.
29360 \end_layout
29361
29362 \begin_layout Standard
29363 For an environment that is not some sort of list,
29364  the XHTML takes this form:
29365 \end_layout
29366
29367 \begin_layout LyX-Code
29368
29369 \family sans
29370 <tag attr=
29371 \begin_inset Quotes erd
29372 \end_inset
29373
29374 value
29375 \begin_inset Quotes erd
29376 \end_inset
29377
29378 >
29379 \end_layout
29380
29381 \begin_layout LyX-Code
29382
29383 \family sans
29384 <itemtag attr=
29385 \begin_inset Quotes erd
29386 \end_inset
29387
29388 value
29389 \begin_inset Quotes erd
29390 \end_inset
29391
29392 ><labeltag attr=
29393 \begin_inset Quotes erd
29394 \end_inset
29395
29396 value
29397 \begin_inset Quotes erd
29398 \end_inset
29399
29400 >Environment Label</labeltag>First paragraph.</itemtag>
29401 \end_layout
29402
29403 \begin_layout LyX-Code
29404
29405 \family sans
29406 <itemtag>Second paragraph.</itemtag>
29407 \end_layout
29408
29409 \begin_layout LyX-Code
29410
29411 \family sans
29412 </tag>
29413 \end_layout
29414
29415 \begin_layout Standard
29416 Note that the label is output only for the first paragraph,
29417  as it should be for a theorem,
29418  for example.
29419  
29420 \end_layout
29421
29422 \begin_layout Standard
29423 For a list,
29424  we have one of these forms:
29425 \end_layout
29426
29427 \begin_layout LyX-Code
29428
29429 \family sans
29430 <tag attr=
29431 \begin_inset Quotes erd
29432 \end_inset
29433
29434 value
29435 \begin_inset Quotes erd
29436 \end_inset
29437
29438 >
29439 \end_layout
29440
29441 \begin_layout LyX-Code
29442
29443 \family sans
29444 <itemtag attr=
29445 \begin_inset Quotes erd
29446 \end_inset
29447
29448 value
29449 \begin_inset Quotes erd
29450 \end_inset
29451
29452 ><labeltag attr=
29453 \begin_inset Quotes erd
29454 \end_inset
29455
29456 value
29457 \begin_inset Quotes erd
29458 \end_inset
29459
29460 >List Label</labeltag>First item.</itemtag>
29461 \end_layout
29462
29463 \begin_layout LyX-Code
29464
29465 \family sans
29466 <itemtag attr=
29467 \begin_inset Quotes erd
29468 \end_inset
29469
29470 value
29471 \begin_inset Quotes erd
29472 \end_inset
29473
29474 ><labeltag attr=
29475 \begin_inset Quotes erd
29476 \end_inset
29477
29478 value
29479 \begin_inset Quotes erd
29480 \end_inset
29481
29482 >List Label</labeltag>Second item.</itemtag>
29483 \end_layout
29484
29485 \begin_layout LyX-Code
29486
29487 \family sans
29488 </tag>
29489 \end_layout
29490
29491 \begin_layout LyX-Code
29492
29493 \end_layout
29494
29495 \begin_layout LyX-Code
29496
29497 \family sans
29498 <tag attr=
29499 \begin_inset Quotes erd
29500 \end_inset
29501
29502 value
29503 \begin_inset Quotes erd
29504 \end_inset
29505
29506 >
29507 \end_layout
29508
29509 \begin_layout LyX-Code
29510
29511 \family sans
29512 <labeltag attr=
29513 \begin_inset Quotes erd
29514 \end_inset
29515
29516 value
29517 \begin_inset Quotes erd
29518 \end_inset
29519
29520 >List Label</labeltag><itemtag attr=
29521 \begin_inset Quotes erd
29522 \end_inset
29523
29524 value
29525 \begin_inset Quotes erd
29526 \end_inset
29527
29528 >First item.</itemtag>
29529 \end_layout
29530
29531 \begin_layout LyX-Code
29532
29533 \family sans
29534 <labeltag attr=
29535 \begin_inset Quotes erd
29536 \end_inset
29537
29538 value
29539 \begin_inset Quotes erd
29540 \end_inset
29541
29542 >List Label</labeltag><itemtag attr=
29543 \begin_inset Quotes erd
29544 \end_inset
29545
29546 value
29547 \begin_inset Quotes erd
29548 \end_inset
29549
29550 >Second item.</itemtag>
29551 \end_layout
29552
29553 \begin_layout LyX-Code
29554
29555 \family sans
29556 </tag>
29557 \end_layout
29558
29559 \begin_layout Standard
29560 Note the different orders of 
29561 \begin_inset Flex Code
29562 status collapsed
29563
29564 \begin_layout Plain Layout
29565 labeltag
29566 \end_layout
29567
29568 \end_inset
29569
29570  and 
29571 \begin_inset Flex Code
29572 status collapsed
29573
29574 \begin_layout Plain Layout
29575 itemtag
29576 \end_layout
29577
29578 \end_inset
29579
29580 .
29581  Which order we get depends upon the setting of 
29582 \begin_inset Flex Code
29583 status collapsed
29584
29585 \begin_layout Plain Layout
29586 HTMLLabelFirst
29587 \end_layout
29588
29589 \end_inset
29590
29591 :
29592  If 
29593 \begin_inset Flex Code
29594 status collapsed
29595
29596 \begin_layout Plain Layout
29597 HTMLLabelFirst
29598 \end_layout
29599
29600 \end_inset
29601
29602  is false (the default),
29603  you get the first of these,
29604  with the label within the item;
29605  if true,
29606  you get the second,
29607  with the label outside the item.
29608 \end_layout
29609
29610 \begin_layout Standard
29611 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
29612  As mentioned earlier,
29613  however,
29614  \SpecialChar LyX
29615  uses sensible defaults for many of these,
29616  so you often may not need to do very much to get good XHTML output.
29617  Think of the available tags as there so you can tweak things to your liking.
29618 \end_layout
29619
29620 \begin_layout Description
29621 \begin_inset Flex Code
29622 status collapsed
29623
29624 \begin_layout Plain Layout
29625 HTMLAttr
29626 \end_layout
29627
29628 \end_inset
29629
29630  [
29631 \begin_inset Flex Code
29632 status collapsed
29633
29634 \begin_layout Plain Layout
29635 string
29636 \end_layout
29637
29638 \end_inset
29639
29640 ] Specifies attribute information to be output with the main tag.
29641  For example,
29642  
29643 \begin_inset Quotes eld
29644 \end_inset
29645
29646
29647 \begin_inset Flex Code
29648 status collapsed
29649
29650 \begin_layout Plain Layout
29651 class=`mydiv'
29652 \end_layout
29653
29654 \end_inset
29655
29656
29657 \begin_inset Quotes erd
29658 \end_inset
29659
29660 .
29661  By default,
29662  \SpecialChar LyX
29663  will output 
29664 \begin_inset Quotes eld
29665 \end_inset
29666
29667
29668 \begin_inset Flex Code
29669 status collapsed
29670
29671 \begin_layout Plain Layout
29672 class=`layoutname'
29673 \end_layout
29674
29675 \end_inset
29676
29677
29678 \begin_inset Quotes erd
29679 \end_inset
29680
29681 ,
29682  where 
29683 \begin_inset Flex Code
29684 status collapsed
29685
29686 \begin_layout Plain Layout
29687 layoutname
29688 \end_layout
29689
29690 \end_inset
29691
29692  is the \SpecialChar LyX
29693  name of the layout,
29694  made lowercase,
29695  for example:
29696  chapter.
29697  This should 
29698 \emph on
29699 not
29700 \emph default
29701  contain any style information.
29702  Use 
29703 \begin_inset Flex Code
29704 status collapsed
29705
29706 \begin_layout Plain Layout
29707 HTMLStyle
29708 \end_layout
29709
29710 \end_inset
29711
29712  for that purpose.
29713 \change_inserted -584632292 1670182206
29714
29715 \end_layout
29716
29717 \begin_layout Description
29718
29719 \change_inserted -584632292 1670182369
29720 \begin_inset Flex Code
29721 status collapsed
29722
29723 \begin_layout Plain Layout
29724
29725 \change_inserted -584632292 1670182222
29726 HTMLClass
29727 \change_unchanged
29728
29729 \end_layout
29730
29731 \end_inset
29732
29733  [
29734 \begin_inset Flex Code
29735 status collapsed
29736
29737 \begin_layout Plain Layout
29738
29739 \change_inserted -584632292 1670182217
29740 string
29741 \change_unchanged
29742
29743 \end_layout
29744
29745 \end_inset
29746
29747 ] The CSS class to use for this paragraph.
29748  Note that,
29749  if the paragarph is of enumerate or itemize type,
29750  then the default will be 
29751 \begin_inset Quotes eld
29752 \end_inset
29753
29754 lyxenum
29755 \begin_inset Quotes erd
29756 \end_inset
29757
29758  or 
29759 \begin_inset Quotes eld
29760 \end_inset
29761
29762 lyxitem
29763 \begin_inset Quotes erd
29764 \end_inset
29765
29766 ,
29767  plus 
29768 \begin_inset Quotes eld
29769 \end_inset
29770
29771 i
29772 \begin_inset Quotes erd
29773 \end_inset
29774
29775 ,
29776  
29777 \begin_inset Quotes eld
29778 \end_inset
29779
29780 ii
29781 \begin_inset Quotes erd
29782 \end_inset
29783
29784 ,
29785  
29786 \begin_inset Quotes eld
29787 \end_inset
29788
29789 iii
29790 \begin_inset Quotes erd
29791 \end_inset
29792
29793 ,
29794  or 
29795 \begin_inset Quotes eld
29796 \end_inset
29797
29798 iv
29799 \begin_inset Quotes erd
29800 \end_inset
29801
29802 ,
29803  depending upon the depth.
29804  That can be over-ridden here.
29805  However,
29806  the suffix will not be added in that case.
29807  I.e.,
29808  the CSS class will always be exactly what it is declared to be here.
29809 \change_unchanged
29810
29811 \end_layout
29812
29813 \begin_layout Description
29814 \begin_inset Flex Code
29815 status collapsed
29816
29817 \begin_layout Plain Layout
29818 HTMLForceCSS
29819 \end_layout
29820
29821 \end_inset
29822
29823  [
29824 \begin_inset Flex Code
29825 status collapsed
29826
29827 \begin_layout Plain Layout
29828
29829 \emph on
29830 0
29831 \emph default
29832 ,1
29833 \end_layout
29834
29835 \end_inset
29836
29837 ] Whether to output the default CSS information \SpecialChar LyX
29838  generates for this layout,
29839  even if additional information is explicitly provided via 
29840 \begin_inset Flex Code
29841 status collapsed
29842
29843 \begin_layout Plain Layout
29844 HTMLStyle
29845 \end_layout
29846
29847 \end_inset
29848
29849 .
29850  Setting this to 
29851 \begin_inset Flex Code
29852 status collapsed
29853
29854 \begin_layout Plain Layout
29855 1
29856 \end_layout
29857
29858 \end_inset
29859
29860  allows you to alter or augment the generated CSS,
29861  rather than to override it completely.
29862  Default is 
29863 \begin_inset Flex Code
29864 status collapsed
29865
29866 \begin_layout Plain Layout
29867 0
29868 \end_layout
29869
29870 \end_inset
29871
29872 .
29873 \change_inserted -584632292 1670132213
29874
29875 \end_layout
29876
29877 \begin_layout Description
29878
29879 \change_inserted -584632292 1670132277
29880 \begin_inset Flex Code
29881 status collapsed
29882
29883 \begin_layout Plain Layout
29884
29885 \change_inserted -584632292 1670132221
29886 HTMLInToc
29887 \change_unchanged
29888
29889 \end_layout
29890
29891 \end_inset
29892
29893  [
29894 \begin_inset Flex Code
29895 status open
29896
29897 \begin_layout Plain Layout
29898
29899 \change_inserted -584632292 1670132214
29900 0,
29901 \emph on
29902 1
29903 \change_unchanged
29904
29905 \end_layout
29906
29907 \end_inset
29908
29909 ] Whether to include this paragraph (usually,
29910  a section or something of the sort) in the TOC.
29911  By default,
29912  true,
29913  so it should be set to false e.g.
29914 \begin_inset space ~
29915 \end_inset
29916
29917 for starred sections.
29918 \change_unchanged
29919
29920 \end_layout
29921
29922 \begin_layout Description
29923 \begin_inset Flex Code
29924 status collapsed
29925
29926 \begin_layout Plain Layout
29927 HTMLItem
29928 \end_layout
29929
29930 \end_inset
29931
29932  [
29933 \begin_inset Flex Code
29934 status collapsed
29935
29936 \begin_layout Plain Layout
29937 string
29938 \end_layout
29939
29940 \end_inset
29941
29942 ] The tag to be used for individual paragraphs of environments,
29943  replacing 
29944 \begin_inset Flex Code
29945 status collapsed
29946
29947 \begin_layout Plain Layout
29948 itemtag
29949 \end_layout
29950
29951 \end_inset
29952
29953  in the examples above.
29954  Defaults to 
29955 \begin_inset Flex Code
29956 status collapsed
29957
29958 \begin_layout Plain Layout
29959 div
29960 \end_layout
29961
29962 \end_inset
29963
29964 .
29965 \end_layout
29966
29967 \begin_layout Description
29968 \begin_inset Flex Code
29969 status collapsed
29970
29971 \begin_layout Plain Layout
29972 HTMLItemAttr
29973 \end_layout
29974
29975 \end_inset
29976
29977  [
29978 \begin_inset Flex Code
29979 status collapsed
29980
29981 \begin_layout Plain Layout
29982 string
29983 \end_layout
29984
29985 \end_inset
29986
29987 ] Attributes for the item tag.
29988  Defaults to
29989 \begin_inset Newline newline
29990 \end_inset
29991
29992
29993 \begin_inset Quotes eld
29994 \end_inset
29995
29996
29997 \begin_inset Flex Code
29998 status collapsed
29999
30000 \begin_layout Plain Layout
30001 class=`layoutname_item'
30002 \end_layout
30003
30004 \end_inset
30005
30006
30007 \begin_inset Quotes erd
30008 \end_inset
30009
30010 .
30011  This should 
30012 \emph on
30013 not
30014 \emph default
30015  contain any style information.
30016  Use 
30017 \begin_inset Flex Code
30018 status collapsed
30019
30020 \begin_layout Plain Layout
30021 HTMLStyle
30022 \end_layout
30023
30024 \end_inset
30025
30026  for that purpose.
30027 \end_layout
30028
30029 \begin_layout Description
30030 \begin_inset Flex Code
30031 status collapsed
30032
30033 \begin_layout Plain Layout
30034 HTMLLabel
30035 \end_layout
30036
30037 \end_inset
30038
30039  [
30040 \begin_inset Flex Code
30041 status collapsed
30042
30043 \begin_layout Plain Layout
30044 string
30045 \end_layout
30046
30047 \end_inset
30048
30049 ] The tag to be used for paragraph and item labels,
30050  replacing 
30051 \begin_inset Flex Code
30052 status collapsed
30053
30054 \begin_layout Plain Layout
30055 labeltag
30056 \end_layout
30057
30058 \end_inset
30059
30060  in the examples above.
30061  Defaults to 
30062 \begin_inset Flex Code
30063 status collapsed
30064
30065 \begin_layout Plain Layout
30066 span
30067 \end_layout
30068
30069 \end_inset
30070
30071 ,
30072  unless 
30073 \begin_inset Flex Code
30074 status collapsed
30075
30076 \begin_layout Plain Layout
30077 LabelType
30078 \end_layout
30079
30080 \end_inset
30081
30082  is either 
30083 \begin_inset Flex Code
30084 status collapsed
30085
30086 \begin_layout Plain Layout
30087 Top_Environment
30088 \end_layout
30089
30090 \end_inset
30091
30092  or 
30093 \begin_inset Flex Code
30094 status collapsed
30095
30096 \begin_layout Plain Layout
30097 Centered_Top_Environment
30098 \end_layout
30099
30100 \end_inset
30101
30102 ,
30103  in which case it defaults to 
30104 \begin_inset Flex Code
30105 status collapsed
30106
30107 \begin_layout Plain Layout
30108 div
30109 \end_layout
30110
30111 \end_inset
30112
30113 .
30114 \end_layout
30115
30116 \begin_layout Description
30117 \begin_inset Flex Code
30118 status collapsed
30119
30120 \begin_layout Plain Layout
30121 HTMLLabelAttr
30122 \end_layout
30123
30124 \end_inset
30125
30126  [
30127 \begin_inset Flex Code
30128 status collapsed
30129
30130 \begin_layout Plain Layout
30131 string
30132 \end_layout
30133
30134 \end_inset
30135
30136 ] Attributes for the label tag.
30137  Defaults to
30138 \begin_inset Newline newline
30139 \end_inset
30140
30141
30142 \begin_inset Quotes eld
30143 \end_inset
30144
30145
30146 \begin_inset Flex Code
30147 status collapsed
30148
30149 \begin_layout Plain Layout
30150 class=`layoutname_label'
30151 \end_layout
30152
30153 \end_inset
30154
30155
30156 \begin_inset Quotes erd
30157 \end_inset
30158
30159 .
30160  This should 
30161 \emph on
30162 not
30163 \emph default
30164  contain any style information.
30165  Use 
30166 \begin_inset Flex Code
30167 status collapsed
30168
30169 \begin_layout Plain Layout
30170 HTMLStyle
30171 \end_layout
30172
30173 \end_inset
30174
30175  for that purpose.
30176 \end_layout
30177
30178 \begin_layout Description
30179 \begin_inset Flex Code
30180 status collapsed
30181
30182 \begin_layout Plain Layout
30183 HTMLLabelFirst
30184 \end_layout
30185
30186 \end_inset
30187
30188  [
30189 \begin_inset Flex Code
30190 status collapsed
30191
30192 \begin_layout Plain Layout
30193
30194 \emph on
30195 0
30196 \emph default
30197 ,1
30198 \end_layout
30199
30200 \end_inset
30201
30202 ] Meaningful only for list-like environments,
30203  this tag controls whether the label tag is output before or inside the item tag.
30204  This is used,
30205  for example,
30206  in the description environment,
30207  where we want `
30208 \begin_inset Flex Code
30209 status collapsed
30210
30211 \begin_layout Plain Layout
30212 <dt>\SpecialChar ldots
30213 </dt><dd>\SpecialChar ldots
30214 </dd>
30215 \end_layout
30216
30217 \end_inset
30218
30219 .
30220  Default is 
30221 \begin_inset Flex Code
30222 status collapsed
30223
30224 \begin_layout Plain Layout
30225 0
30226 \end_layout
30227
30228 \end_inset
30229
30230 :
30231  The label tag is output inside the item tag.
30232 \end_layout
30233
30234 \begin_layout Description
30235 \begin_inset Flex Code
30236 status collapsed
30237
30238 \begin_layout Plain Layout
30239 HTMLPreamble
30240 \end_layout
30241
30242 \end_inset
30243
30244  Information to be output in the 
30245 \begin_inset Flex Code
30246 status collapsed
30247
30248 \begin_layout Plain Layout
30249 <head>
30250 \end_layout
30251
30252 \end_inset
30253
30254  section when this style is used.
30255  This might,
30256  for example,
30257  be used to include a 
30258 \begin_inset Flex Code
30259 status collapsed
30260
30261 \begin_layout Plain Layout
30262 <script>
30263 \end_layout
30264
30265 \end_inset
30266
30267  block defining an 
30268 \begin_inset Flex Code
30269 status collapsed
30270
30271 \begin_layout Plain Layout
30272 onclick
30273 \end_layout
30274
30275 \end_inset
30276
30277  handler.
30278 \end_layout
30279
30280 \begin_layout Description
30281 \begin_inset Flex Code
30282 status collapsed
30283
30284 \begin_layout Plain Layout
30285 HTMLStyle
30286 \end_layout
30287
30288 \end_inset
30289
30290  CSS style information to be included when this style is used.
30291  Note that this will automatically be wrapped in a layout-generated 
30292 \begin_inset Flex Code
30293 status collapsed
30294
30295 \begin_layout Plain Layout
30296 <style>
30297 \end_layout
30298
30299 \end_inset
30300
30301  block,
30302  so only the CSS itself need be included.
30303  Must end with 
30304 \begin_inset Flex Code
30305 status collapsed
30306
30307 \begin_layout Plain Layout
30308 EndHTMLStyle
30309 \end_layout
30310
30311 \end_inset
30312
30313 .
30314 \end_layout
30315
30316 \begin_layout Description
30317 \begin_inset Flex Code
30318 status collapsed
30319
30320 \begin_layout Plain Layout
30321 HTMLTag
30322 \end_layout
30323
30324 \end_inset
30325
30326  [
30327 \begin_inset Flex Code
30328 status collapsed
30329
30330 \begin_layout Plain Layout
30331 string
30332 \end_layout
30333
30334 \end_inset
30335
30336 ] The tag to be used for the main label,
30337  replacing 
30338 \begin_inset Flex Code
30339 status collapsed
30340
30341 \begin_layout Plain Layout
30342 tag
30343 \end_layout
30344
30345 \end_inset
30346
30347  in the examples above.
30348  Defaults to 
30349 \begin_inset Flex Code
30350 status collapsed
30351
30352 \begin_layout Plain Layout
30353 div
30354 \end_layout
30355
30356 \end_inset
30357
30358 .
30359 \end_layout
30360
30361 \begin_layout Description
30362 \begin_inset Flex Code
30363 status collapsed
30364
30365 \begin_layout Plain Layout
30366 HTMLTitle
30367 \end_layout
30368
30369 \end_inset
30370
30371  [
30372 \begin_inset Flex Code
30373 status collapsed
30374
30375 \begin_layout Plain Layout
30376
30377 \emph on
30378 0
30379 \emph default
30380 ,1
30381 \end_layout
30382
30383 \end_inset
30384
30385 ] Marks this style as the one to be used to generate the 
30386 \begin_inset Flex Code
30387 status collapsed
30388
30389 \begin_layout Plain Layout
30390 <title>
30391 \end_layout
30392
30393 \end_inset
30394
30395  tag for the XHTML file.
30396  By default,
30397  it is false.
30398  The 
30399 \begin_inset Flex Code
30400 status collapsed
30401
30402 \begin_layout Plain Layout
30403 stdtitle.inc
30404 \end_layout
30405
30406 \end_inset
30407
30408  file sets it to true for the 
30409 \begin_inset Flex Code
30410 status collapsed
30411
30412 \begin_layout Plain Layout
30413 title
30414 \end_layout
30415
30416 \end_inset
30417
30418  environment.
30419  
30420 \end_layout
30421
30422 \begin_layout Subsection
30423 InsetLayout XHTML
30424 \end_layout
30425
30426 \begin_layout Standard
30427 The XHTML output of insets can also be controlled by information in layout files.
30428 \begin_inset Foot
30429 status collapsed
30430
30431 \begin_layout Plain Layout
30432 At present,
30433  this is true only for 
30434 \begin_inset Quotes eld
30435 \end_inset
30436
30437 text
30438 \begin_inset Quotes erd
30439 \end_inset
30440
30441  insets (insets you can type into) and is not true for 
30442 \begin_inset Quotes eld
30443 \end_inset
30444
30445 command
30446 \begin_inset Quotes erd
30447 \end_inset
30448
30449  insets (insets that are associated with dialog boxes).
30450 \end_layout
30451
30452 \end_inset
30453
30454  Here,
30455  too,
30456  \SpecialChar LyX
30457  tries to provide sensible defaults,
30458  and it constructs default CSS style rules.
30459  But everything can be customized.
30460 \end_layout
30461
30462 \begin_layout Standard
30463 The XHTML \SpecialChar LyX
30464  outputs for an inset has the following form:
30465 \end_layout
30466
30467 \begin_layout LyX-Code
30468 <tag attr=
30469 \begin_inset Quotes erd
30470 \end_inset
30471
30472 value
30473 \begin_inset Quotes erd
30474 \end_inset
30475
30476 >
30477 \end_layout
30478
30479 \begin_layout LyX-Code
30480 <labeltag>Label</labeltag>
30481 \end_layout
30482
30483 \begin_layout LyX-Code
30484 <innertag attr=
30485 \begin_inset Quotes erd
30486 \end_inset
30487
30488 value
30489 \begin_inset Quotes erd
30490 \end_inset
30491
30492 >Contents of the inset.</innertag>
30493 \end_layout
30494
30495 \begin_layout LyX-Code
30496 </tag>
30497 \end_layout
30498
30499 \begin_layout Standard
30500 If the inset permits multiple paragraphs—
30501 that is,
30502  if 
30503 \begin_inset Flex Code
30504 status collapsed
30505
30506 \begin_layout Plain Layout
30507 MultiPar
30508 \end_layout
30509
30510 \end_inset
30511
30512  is true—
30513 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
30514  quote,
30515  and the like).
30516  The label tag is of course omitted if the paragraph does not have a label and,
30517  at present,
30518  is always 
30519 \begin_inset Flex Code
30520 status collapsed
30521
30522 \begin_layout Plain Layout
30523 span
30524 \end_layout
30525
30526 \end_inset
30527
30528 .
30529  The inner tag is optional and,
30530  by default,
30531  does not appear.
30532 \end_layout
30533
30534 \begin_layout Standard
30535 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
30536 \end_layout
30537
30538 \begin_layout Description
30539 \begin_inset Flex Code
30540 status collapsed
30541
30542 \begin_layout Plain Layout
30543 HTMLAttr
30544 \end_layout
30545
30546 \end_inset
30547
30548  [
30549 \begin_inset Flex Code
30550 status collapsed
30551
30552 \begin_layout Plain Layout
30553 string
30554 \end_layout
30555
30556 \end_inset
30557
30558 ] Specifies attribute information to be output with the main tag.
30559  For example,
30560  
30561 \begin_inset Quotes eld
30562 \end_inset
30563
30564
30565 \begin_inset Flex Code
30566 status collapsed
30567
30568 \begin_layout Plain Layout
30569 class=`myinset' onclick=`\SpecialChar ldots
30570 '
30571 \end_layout
30572
30573 \end_inset
30574
30575
30576 \begin_inset Quotes erd
30577 \end_inset
30578
30579 .
30580  By default,
30581  \SpecialChar LyX
30582  will output 
30583 \begin_inset Quotes eld
30584 \end_inset
30585
30586
30587 \begin_inset Flex Code
30588 status collapsed
30589
30590 \begin_layout Plain Layout
30591 class=`insetname'
30592 \end_layout
30593
30594 \end_inset
30595
30596
30597 \begin_inset Quotes erd
30598 \end_inset
30599
30600 ,
30601  where 
30602 \begin_inset Flex Code
30603 status collapsed
30604
30605 \begin_layout Plain Layout
30606 insetname
30607 \end_layout
30608
30609 \end_inset
30610
30611  is the \SpecialChar LyX
30612  name of the inset,
30613  made lowercase and with non-alphanumeric characters converted to underscores,
30614  for example:
30615  footnote.
30616 \end_layout
30617
30618 \begin_layout Description
30619 \begin_inset Flex Code
30620 status collapsed
30621
30622 \begin_layout Plain Layout
30623 HTMLForceCSS
30624 \end_layout
30625
30626 \end_inset
30627
30628  [
30629 \begin_inset Flex Code
30630 status collapsed
30631
30632 \begin_layout Plain Layout
30633
30634 \emph on
30635 0
30636 \emph default
30637 ,1
30638 \end_layout
30639
30640 \end_inset
30641
30642 ] Whether to output the default CSS information \SpecialChar LyX
30643  generates for this layout,
30644  even if additional information is explicitly provided via 
30645 \begin_inset Flex Code
30646 status collapsed
30647
30648 \begin_layout Plain Layout
30649 HTMLStyle
30650 \end_layout
30651
30652 \end_inset
30653
30654 .
30655  Setting this to 
30656 \begin_inset Flex Code
30657 status collapsed
30658
30659 \begin_layout Plain Layout
30660 1
30661 \end_layout
30662
30663 \end_inset
30664
30665  allows you to alter or augment the generated CSS,
30666  rather than to override it completely.
30667  Default is 0.
30668 \end_layout
30669
30670 \begin_layout Description
30671 \begin_inset Flex Code
30672 status collapsed
30673
30674 \begin_layout Plain Layout
30675 HTMLInnerAttr
30676 \end_layout
30677
30678 \end_inset
30679
30680  [
30681 \begin_inset Flex Code
30682 status collapsed
30683
30684 \begin_layout Plain Layout
30685 string
30686 \end_layout
30687
30688 \end_inset
30689
30690 ] Attributes for the inner tag.
30691  Defaults to
30692 \begin_inset Newline newline
30693 \end_inset
30694
30695
30696 \begin_inset Quotes eld
30697 \end_inset
30698
30699
30700 \begin_inset Flex Code
30701 status collapsed
30702
30703 \begin_layout Plain Layout
30704 class=`insetname_inner'
30705 \end_layout
30706
30707 \end_inset
30708
30709
30710 \begin_inset Quotes erd
30711 \end_inset
30712
30713 .
30714 \end_layout
30715
30716 \begin_layout Description
30717 \begin_inset Flex Code
30718 status collapsed
30719
30720 \begin_layout Plain Layout
30721 HTMLInnerTag
30722 \end_layout
30723
30724 \end_inset
30725
30726  [
30727 \begin_inset Flex Code
30728 status collapsed
30729
30730 \begin_layout Plain Layout
30731 string
30732 \end_layout
30733
30734 \end_inset
30735
30736 ] The inner tag,
30737  replacing 
30738 \begin_inset Flex Code
30739 status collapsed
30740
30741 \begin_layout Plain Layout
30742 innertag
30743 \end_layout
30744
30745 \end_inset
30746
30747  in the examples above.
30748  By default,
30749  there is none.
30750 \end_layout
30751
30752 \begin_layout Description
30753 \begin_inset Flex Code
30754 status collapsed
30755
30756 \begin_layout Plain Layout
30757 HTMLIsBlock
30758 \end_layout
30759
30760 \end_inset
30761
30762  [
30763 \begin_inset Flex Code
30764 status collapsed
30765
30766 \begin_layout Plain Layout
30767 0,
30768 \emph on
30769 1
30770 \end_layout
30771
30772 \end_inset
30773
30774 ] 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).
30775  Defaults to 1.
30776 \end_layout
30777
30778 \begin_layout Description
30779 \begin_inset Flex Code
30780 status collapsed
30781
30782 \begin_layout Plain Layout
30783 HTMLLabel
30784 \end_layout
30785
30786 \end_inset
30787
30788  [
30789 \begin_inset Flex Code
30790 status collapsed
30791
30792 \begin_layout Plain Layout
30793 string
30794 \end_layout
30795
30796 \end_inset
30797
30798 ] A label for this inset,
30799  possibly including a reference to a counter.
30800  For example,
30801  for footnote,
30802  it might be:
30803  
30804 \begin_inset Flex Code
30805 status collapsed
30806
30807 \begin_layout Plain Layout
30808
30809 \backslash
30810 arabic{footnote}
30811 \end_layout
30812
30813 \end_inset
30814
30815 .
30816  This is optional,
30817  and there is no default.
30818 \end_layout
30819
30820 \begin_layout Description
30821 \begin_inset Flex Code
30822 status collapsed
30823
30824 \begin_layout Plain Layout
30825 HTMLPreamble
30826 \end_layout
30827
30828 \end_inset
30829
30830  Information to be output in the 
30831 \begin_inset Flex Code
30832 status collapsed
30833
30834 \begin_layout Plain Layout
30835 <head>
30836 \end_layout
30837
30838 \end_inset
30839
30840  section when this style is used.
30841  This might,
30842  for example,
30843  be used to include a 
30844 \begin_inset Flex Code
30845 status collapsed
30846
30847 \begin_layout Plain Layout
30848 <script>
30849 \end_layout
30850
30851 \end_inset
30852
30853  block defining an 
30854 \begin_inset Flex Code
30855 status collapsed
30856
30857 \begin_layout Plain Layout
30858 onclick
30859 \end_layout
30860
30861 \end_inset
30862
30863  handler.
30864 \end_layout
30865
30866 \begin_layout Description
30867 \begin_inset Flex Code
30868 status collapsed
30869
30870 \begin_layout Plain Layout
30871 HTMLStyle
30872 \end_layout
30873
30874 \end_inset
30875
30876  CSS style information to be included when this style is used.
30877  Note that this will automatically be wrapped in a layout-generated 
30878 \begin_inset Flex Code
30879 status collapsed
30880
30881 \begin_layout Plain Layout
30882 <style>
30883 \end_layout
30884
30885 \end_inset
30886
30887  block,
30888  so only the CSS itself need be included.
30889 \end_layout
30890
30891 \begin_layout Description
30892 \begin_inset Flex Code
30893 status collapsed
30894
30895 \begin_layout Plain Layout
30896 HTMLTag
30897 \end_layout
30898
30899 \end_inset
30900
30901  [
30902 \begin_inset Flex Code
30903 status collapsed
30904
30905 \begin_layout Plain Layout
30906 string
30907 \end_layout
30908
30909 \end_inset
30910
30911 ] The tag to be used for the main label,
30912  replacing 
30913 \begin_inset Flex Code
30914 status collapsed
30915
30916 \begin_layout Plain Layout
30917 tag
30918 \end_layout
30919
30920 \end_inset
30921
30922  in the examples above.
30923  The default depends upon the setting of 
30924 \begin_inset Flex Code
30925 status collapsed
30926
30927 \begin_layout Plain Layout
30928 MultiPar
30929 \end_layout
30930
30931 \end_inset
30932
30933 :
30934  If 
30935 \begin_inset Flex Code
30936 status collapsed
30937
30938 \begin_layout Plain Layout
30939 MultiPar
30940 \end_layout
30941
30942 \end_inset
30943
30944  is true,
30945  the default is 
30946 \begin_inset Flex Code
30947 status collapsed
30948
30949 \begin_layout Plain Layout
30950 div
30951 \end_layout
30952
30953 \end_inset
30954
30955 ;
30956  if it is false,
30957  the default is 
30958 \begin_inset Flex Code
30959 status collapsed
30960
30961 \begin_layout Plain Layout
30962 span
30963 \end_layout
30964
30965 \end_inset
30966
30967 .
30968 \end_layout
30969
30970 \begin_layout Subsection
30971 Float XHTML
30972 \end_layout
30973
30974 \begin_layout Standard
30975 The XHTML output for floats too can be controlled by layout information.
30976  The output has the following form:
30977 \end_layout
30978
30979 \begin_layout LyX-Code
30980 <tag attr=
30981 \begin_inset Quotes erd
30982 \end_inset
30983
30984 value
30985 \begin_inset Quotes erd
30986 \end_inset
30987
30988 >
30989 \end_layout
30990
30991 \begin_layout LyX-Code
30992 Contents of the float.
30993 \end_layout
30994
30995 \begin_layout LyX-Code
30996 </tag>
30997 \end_layout
30998
30999 \begin_layout Standard
31000 The caption,
31001  if there is one,
31002  is a separate inset and will be output as such.
31003  Its appearance can be controlled via the InsetLayout for caption insets.
31004  
31005 \end_layout
31006
31007 \begin_layout Description
31008 \begin_inset Flex Code
31009 status collapsed
31010
31011 \begin_layout Plain Layout
31012 HTMLAttr
31013 \end_layout
31014
31015 \end_inset
31016
31017  [
31018 \begin_inset Flex Code
31019 status collapsed
31020
31021 \begin_layout Plain Layout
31022 string
31023 \end_layout
31024
31025 \end_inset
31026
31027 ] Specifies attribute information to be output with the main tag.
31028  For example,
31029  
31030 \begin_inset Quotes eld
31031 \end_inset
31032
31033
31034 \begin_inset Flex Code
31035 status collapsed
31036
31037 \begin_layout Plain Layout
31038 class=`myfloat' onclick=`\SpecialChar ldots
31039 '
31040 \end_layout
31041
31042 \end_inset
31043
31044
31045 \begin_inset Quotes erd
31046 \end_inset
31047
31048 .
31049  By default,
31050  \SpecialChar LyX
31051  will output 
31052 \begin_inset Quotes eld
31053 \end_inset
31054
31055
31056 \begin_inset Flex Code
31057 status collapsed
31058
31059 \begin_layout Plain Layout
31060 class=`float float-floattype'
31061 \end_layout
31062
31063 \end_inset
31064
31065
31066 \begin_inset Quotes erd
31067 \end_inset
31068
31069 ,
31070  where 
31071 \begin_inset Flex Code
31072 status collapsed
31073
31074 \begin_layout Plain Layout
31075 floattype
31076 \end_layout
31077
31078 \end_inset
31079
31080  is \SpecialChar LyX
31081 's name for this type of float,
31082  as determined by the float declaration (see 
31083 \begin_inset CommandInset ref
31084 LatexCommand ref
31085 reference "subsec:Floats"
31086 nolink "false"
31087
31088 \end_inset
31089
31090 ),
31091  though made lowercase and with non-alphanumeric characters converted to underscores,
31092  for example:
31093  float-table.
31094 \end_layout
31095
31096 \begin_layout Description
31097 \begin_inset Flex Code
31098 status collapsed
31099
31100 \begin_layout Plain Layout
31101 HTMLStyle
31102 \end_layout
31103
31104 \end_inset
31105
31106  CSS style information to be included when this float is used.
31107  Note that this will automatically be wrapped in a layout-generated 
31108 \begin_inset Flex Code
31109 status collapsed
31110
31111 \begin_layout Plain Layout
31112 <style>
31113 \end_layout
31114
31115 \end_inset
31116
31117  block,
31118  so only the CSS itself need be included.
31119 \end_layout
31120
31121 \begin_layout Description
31122 \begin_inset Flex Code
31123 status collapsed
31124
31125 \begin_layout Plain Layout
31126 HTMLTag
31127 \end_layout
31128
31129 \end_inset
31130
31131  [
31132 \begin_inset Flex Code
31133 status collapsed
31134
31135 \begin_layout Plain Layout
31136 string
31137 \end_layout
31138
31139 \end_inset
31140
31141 ] The tag to be used for this float,
31142  replacing 
31143 \begin_inset Quotes eld
31144 \end_inset
31145
31146
31147 \begin_inset Flex Code
31148 status collapsed
31149
31150 \begin_layout Plain Layout
31151 tag
31152 \end_layout
31153
31154 \end_inset
31155
31156
31157 \begin_inset Quotes erd
31158 \end_inset
31159
31160  in the example above.
31161  The default is 
31162 \begin_inset Flex Code
31163 status collapsed
31164
31165 \begin_layout Plain Layout
31166 div
31167 \end_layout
31168
31169 \end_inset
31170
31171  and will rarely need changing.
31172 \end_layout
31173
31174 \begin_layout Subsection
31175 Bibliography formatting
31176 \end_layout
31177
31178 \begin_layout Standard
31179 The bibliography can be formatted using 
31180 \begin_inset Flex Code
31181 status collapsed
31182
31183 \begin_layout Plain Layout
31184 CiteFormat
31185 \end_layout
31186
31187 \end_inset
31188
31189  blocks.
31190  See 
31191 \begin_inset CommandInset ref
31192 LatexCommand ref
31193 reference "subsec:Citation-format-description"
31194 nolink "false"
31195
31196 \end_inset
31197
31198  for the details.
31199 \end_layout
31200
31201 \begin_layout Subsection
31202 \SpecialChar LyX
31203 -generated CSS
31204 \end_layout
31205
31206 \begin_layout Standard
31207 We have several times mentioned that \SpecialChar LyX
31208  will generate default CSS style rules for both insets and paragraph styles,
31209  based upon the other layout information that is provided.
31210  In this section,
31211  we shall say a word about which layout information \SpecialChar LyX
31212  uses and how.
31213 \end_layout
31214
31215 \begin_layout Standard
31216 At present,
31217  \SpecialChar LyX
31218  auto-generates CSS only for font information,
31219  making use of the 
31220 \begin_inset Flex Code
31221 status collapsed
31222
31223 \begin_layout Plain Layout
31224 Family
31225 \end_layout
31226
31227 \end_inset
31228
31229 ,
31230  
31231 \begin_inset Flex Code
31232 status collapsed
31233
31234 \begin_layout Plain Layout
31235 Series
31236 \end_layout
31237
31238 \end_inset
31239
31240 ,
31241  
31242 \begin_inset Flex Code
31243 status collapsed
31244
31245 \begin_layout Plain Layout
31246 Shape
31247 \end_layout
31248
31249 \end_inset
31250
31251 ,
31252  and 
31253 \begin_inset Flex Code
31254 status collapsed
31255
31256 \begin_layout Plain Layout
31257 Size
31258 \end_layout
31259
31260 \end_inset
31261
31262  specified in the 
31263 \begin_inset Flex Code
31264 status collapsed
31265
31266 \begin_layout Plain Layout
31267 Font
31268 \end_layout
31269
31270 \end_inset
31271
31272  declaration (see 
31273 \begin_inset CommandInset ref
31274 LatexCommand ref
31275 reference "subsec:Font-description"
31276 nolink "false"
31277
31278 \end_inset
31279
31280 ).
31281  The translation is mostly straightforward and obvious.
31282  For example,
31283  
31284 \begin_inset Quotes eld
31285 \end_inset
31286
31287
31288 \begin_inset Flex Code
31289 status collapsed
31290
31291 \begin_layout Plain Layout
31292 Family Sans
31293 \end_layout
31294
31295 \end_inset
31296
31297
31298 \begin_inset Quotes erd
31299 \end_inset
31300
31301  becomes 
31302 \begin_inset Quotes eld
31303 \end_inset
31304
31305
31306 \begin_inset Flex Code
31307 status collapsed
31308
31309 \begin_layout Plain Layout
31310 font-family:
31311  sans-serif;
31312 \end_layout
31313
31314 \end_inset
31315
31316
31317 \begin_inset Quotes erd
31318 \end_inset
31319
31320 .
31321  The correspondence of \SpecialChar LyX
31322  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
31323  See the 
31324 \begin_inset Flex Code
31325 status collapsed
31326
31327 \begin_layout Plain Layout
31328 getSizeCSS()
31329 \end_layout
31330
31331 \end_inset
31332
31333  function in 
31334 \begin_inset Flex URL
31335 status collapsed
31336
31337 \begin_layout Plain Layout
31338
31339 src/FontInfo.cpp
31340 \end_layout
31341
31342 \end_inset
31343
31344  for the details.
31345 \change_inserted -970929547 1496610908
31346
31347 \end_layout
31348
31349 \begin_layout Section
31350
31351 \change_inserted -970929547 1496610966
31352 \begin_inset CommandInset label
31353 LatexCommand label
31354 name "sec:Tags-for-DocBook"
31355
31356 \end_inset
31357
31358 Tags for DocBook output
31359 \end_layout
31360
31361 \begin_layout Standard
31362
31363 \change_inserted -970929547 1496611615
31364 As with \SpecialChar LaTeX
31365  or XHTML,
31366  the format of \SpecialChar LyX
31367 's DocBook output is also controlled by layout information.
31368  In general,
31369  \SpecialChar LyX
31370  provides sensible defaults;
31371  however,
31372  much of the styling is lost during the conversion,
31373  as DocBook is strictly semantic and does not allow formatting.
31374  When possible,
31375  information from \SpecialChar LyX
31376  will be rendered in 
31377 \family typewriter
31378 role
31379 \family default
31380  attributes.
31381  
31382 \end_layout
31383
31384 \begin_layout Standard
31385
31386 \change_inserted -970929547 1496612080
31387 In many cases,
31388  then,
31389  you may not have to do anything at all to get acceptable DocBook output for your own environments,
31390  custom insets,
31391  and so forth.
31392  But in some cases you will,
31393  and so \SpecialChar LyX
31394  provides a number of layout tags that can be used to customize the DocBook that is generated.
31395 \end_layout
31396
31397 \begin_layout Standard
31398
31399 \change_inserted -970929547 1515109912
31400 Labels are rarely output,
31401  as they are redundant in DocBook:
31402  this information is carried by the tags themselves,
31403  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
31404  However,
31405  sometimes,
31406  labels are not redundant content,
31407  such as definition lists:
31408  in this case,
31409  the term being defined will be the label.
31410  
31411 \end_layout
31412
31413 \begin_layout Subsection
31414
31415 \change_inserted 1075283030 1597699417
31416 \begin_inset CommandInset label
31417 LatexCommand label
31418 name "subsec:Paragraph-Style-DocBook"
31419
31420 \end_inset
31421
31422
31423 \change_deleted 1075283030 1597699417
31424
31425 \begin_inset CommandInset label
31426 LatexCommand label
31427 name "subsec:Paragraph-Style-XHTML-1"
31428
31429 \end_inset
31430
31431
31432 \change_inserted -970929547 1496610966
31433 Paragraph styles
31434 \end_layout
31435
31436 \begin_layout Standard
31437
31438 \change_inserted -970929547 1496612059
31439 The sort of DocBook \SpecialChar LyX
31440  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
31441  a command,
31442  or an environment,
31443  where this is itself determined by the contents of the corresponding 
31444 \begin_inset Flex Code
31445 status collapsed
31446
31447 \begin_layout Plain Layout
31448
31449 \change_inserted -970929547 1496610966
31450 \SpecialChar LaTeX
31451 Type
31452 \change_unchanged
31453
31454 \end_layout
31455
31456 \end_inset
31457
31458  tag.
31459  
31460 \end_layout
31461
31462 \begin_layout Standard
31463
31464 \change_inserted -970929547 1496612107
31465 For a command or normal paragraph,
31466  the output DocBook has the following form:
31467 \end_layout
31468
31469 \begin_layout LyX-Code
31470
31471 \change_inserted -970929547 1515109666
31472 <tag attr>
31473 \end_layout
31474
31475 \begin_layout LyX-Code
31476
31477 \change_inserted -970929547 1496610966
31478 Contents of the paragraph.
31479 \end_layout
31480
31481 \begin_layout LyX-Code
31482
31483 \change_inserted -970929547 1496610966
31484 </tag>
31485 \end_layout
31486
31487 \begin_layout Standard
31488
31489 \change_inserted -970929547 1515109821
31490 For an environment that is not some sort of list,
31491  the generated DocBook takes this form:
31492 \end_layout
31493
31494 \begin_layout LyX-Code
31495
31496 \change_inserted -970929547 1515109671
31497 <tag attr>
31498 \end_layout
31499
31500 \begin_layout LyX-Code
31501
31502 \change_inserted -970929547 1496612114
31503 <itemtag>First paragraph.</itemtag>
31504 \end_layout
31505
31506 \begin_layout LyX-Code
31507
31508 \change_inserted -970929547 1496610966
31509 <itemtag>Second paragraph.</itemtag>
31510 \end_layout
31511
31512 \begin_layout LyX-Code
31513
31514 \change_inserted -970929547 1496610966
31515 </tag>
31516 \end_layout
31517
31518 \begin_layout Standard
31519
31520 \change_inserted -970929547 1515109825
31521 For a list,
31522  the resulting DocBook takes this form:
31523 \end_layout
31524
31525 \begin_layout LyX-Code
31526
31527 \change_inserted -970929547 1515109672
31528 <tag attr>
31529 \end_layout
31530
31531 \begin_layout LyX-Code
31532
31533 \change_inserted -970929547 1515109676
31534 <itemtag attr>First item.</itemtag>
31535 \end_layout
31536
31537 \begin_layout LyX-Code
31538
31539 \change_inserted -970929547 1515109678
31540 <itemtag attr>Second item.</itemtag>
31541 \end_layout
31542
31543 \begin_layout LyX-Code
31544
31545 \change_inserted -970929547 1496610966
31546 </tag>
31547 \end_layout
31548
31549 \begin_layout Standard
31550
31551 \change_inserted -970929547 1496612243
31552 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
31553  Please note that,
31554  due to the very nature of DocBook,
31555  no sensible defaults really exist,
31556  and the values must always be carefully chosen.
31557  
31558 \end_layout
31559
31560 \begin_layout Description
31561
31562 \change_inserted -970929547 1515110057
31563 \begin_inset Flex Code
31564 status collapsed
31565
31566 \begin_layout Plain Layout
31567
31568 \change_inserted -970929547 1515109656
31569 DocBookAttr
31570 \change_unchanged
31571
31572 \end_layout
31573
31574 \end_inset
31575
31576  [
31577 \begin_inset Flex Code
31578 status collapsed
31579
31580 \begin_layout Plain Layout
31581
31582 \change_inserted -970929547 1496610966
31583 string
31584 \change_unchanged
31585
31586 \end_layout
31587
31588 \end_inset
31589
31590 ] Specifies attribute information to be output with the main tag,
31591  replacing 
31592 \begin_inset Quotes eld
31593 \end_inset
31594
31595
31596 \begin_inset Flex Code
31597 status collapsed
31598
31599 \begin_layout Plain Layout
31600
31601 \change_inserted -970929547 1515110057
31602 attr
31603 \change_unchanged
31604
31605 \end_layout
31606
31607 \end_inset
31608
31609
31610 \begin_inset Quotes erd
31611 \end_inset
31612
31613  in the example above.
31614  This information can be used in further processing of the DocBook files.
31615  
31616 \change_unchanged
31617
31618 \end_layout
31619
31620 \begin_layout Description
31621
31622 \change_inserted -970929547 1496612296
31623 \begin_inset Flex Code
31624 status collapsed
31625
31626 \begin_layout Plain Layout
31627
31628 \change_inserted -970929547 1496612269
31629 DocBookTag
31630 \change_unchanged
31631
31632 \end_layout
31633
31634 \end_inset
31635
31636  [
31637 \begin_inset Flex Code
31638 status collapsed
31639
31640 \begin_layout Plain Layout
31641
31642 \change_inserted -970929547 1496610966
31643 string
31644 \change_unchanged
31645
31646 \end_layout
31647
31648 \end_inset
31649
31650 ] The tag to be used for this inset,
31651  replacing 
31652 \begin_inset Quotes eld
31653 \end_inset
31654
31655
31656 \begin_inset Flex Code
31657 status collapsed
31658
31659 \begin_layout Plain Layout
31660
31661 \change_inserted -970929547 1496612296
31662 tag
31663 \change_unchanged
31664
31665 \end_layout
31666
31667 \end_inset
31668
31669
31670 \begin_inset Quotes erd
31671 \end_inset
31672
31673  in the example above.
31674  The default is the name of the float and always needs to be changed,
31675  as DocBook provides no generic tag.
31676 \change_inserted 1075283030 1597698868
31677
31678 \end_layout
31679
31680 \begin_layout Description
31681
31682 \change_inserted 1075283030 1597699399
31683 \begin_inset Flex Code
31684 status collapsed
31685
31686 \begin_layout Plain Layout
31687
31688 \change_inserted 1075283030 1597698872
31689 DocBookTagType
31690 \change_unchanged
31691
31692 \end_layout
31693
31694 \end_inset
31695
31696  [
31697 \begin_inset Flex Code
31698 status collapsed
31699
31700 \begin_layout Plain Layout
31701
31702 \change_inserted 1075283030 1597700585
31703 block,
31704  paragraph,
31705  inline
31706 \change_unchanged
31707
31708 \end_layout
31709
31710 \end_inset
31711
31712 ] The new-line policy for this tag,
31713  see Section
31714 \begin_inset space ~
31715 \end_inset
31716
31717
31718 \begin_inset CommandInset ref
31719 LatexCommand ref
31720 reference "subsec:DocBook-New-line-policy"
31721 plural "false"
31722 caps "false"
31723 noprefix "false"
31724 nolink "false"
31725
31726 \end_inset
31727
31728  for the details.
31729  
31730 \change_unchanged
31731
31732 \end_layout
31733
31734 \begin_layout Subsection
31735
31736 \change_inserted 1075283030 1597699385
31737 New-line policy
31738 \begin_inset CommandInset label
31739 LatexCommand label
31740 name "subsec:DocBook-New-line-policy"
31741
31742 \end_inset
31743
31744
31745 \end_layout
31746
31747 \begin_layout Standard
31748
31749 \change_inserted 1075283030 1597698993
31750 For all tags,
31751  there are three possible policies for outputting new lines (given in the 
31752 \begin_inset Flex Code
31753 status collapsed
31754
31755 \begin_layout Plain Layout
31756
31757 \change_inserted 1075283030 1597698987
31758 DocBook*TagType
31759 \change_unchanged
31760
31761 \end_layout
31762
31763 \end_inset
31764
31765  attribute):
31766  
31767 \end_layout
31768
31769 \begin_layout Itemize
31770
31771 \change_inserted 1075283030 1597699279
31772 \begin_inset Quotes eld
31773 \end_inset
31774
31775
31776 \begin_inset Flex Code
31777 status collapsed
31778
31779 \begin_layout Plain Layout
31780
31781 \change_inserted 1075283030 1597699012
31782 block
31783 \change_unchanged
31784
31785 \end_layout
31786
31787 \end_inset
31788
31789
31790 \begin_inset Quotes erd
31791 \end_inset
31792
31793 :
31794  the opening and closing tags are on their own lines (i.e.
31795  a line feed after and before the opening and the closing tags).
31796  Typical elements are floats.
31797  For instance:
31798  
31799 \end_layout
31800
31801 \begin_layout LyX-Code
31802
31803 \change_inserted 1075283030 1597699194
31804 Content before
31805 \end_layout
31806
31807 \begin_layout LyX-Code
31808
31809 \change_inserted 1075283030 1597699194
31810 <blocktag>
31811 \end_layout
31812
31813 \begin_layout LyX-Code
31814
31815 \change_inserted 1075283030 1597699098
31816   Contents of the block.
31817 \end_layout
31818
31819 \begin_layout LyX-Code
31820
31821 \change_inserted 1075283030 1597699196
31822 </blocktag>
31823 \end_layout
31824
31825 \begin_layout LyX-Code
31826
31827 \change_inserted 1075283030 1597699198
31828 Content after
31829 \end_layout
31830
31831 \begin_layout Itemize
31832
31833 \change_inserted 1075283030 1597699289
31834 \begin_inset Quotes eld
31835 \end_inset
31836
31837
31838 \begin_inset Flex Code
31839 status collapsed
31840
31841 \begin_layout Plain Layout
31842
31843 \change_inserted 1075283030 1597699113
31844 paragraph
31845 \change_unchanged
31846
31847 \end_layout
31848
31849 \end_inset
31850
31851
31852 \begin_inset Quotes erd
31853 \end_inset
31854
31855 :
31856  the opening and closing tags are on the same,
31857  new line;
31858  a line feed is output before the opening tag and after the closing tag.
31859  Typical elements are paragraphs and list items.
31860  For instance:
31861  
31862 \end_layout
31863
31864 \begin_layout LyX-Code
31865
31866 \change_inserted 1075283030 1597699186
31867 Content before
31868 \end_layout
31869
31870 \begin_layout LyX-Code
31871
31872 \change_inserted 1075283030 1597699357
31873 <paratag>Contents of the paragraph.</paratag>
31874 \end_layout
31875
31876 \begin_layout LyX-Code
31877
31878 \change_inserted 1075283030 1597699231
31879 Content after
31880 \end_layout
31881
31882 \begin_layout Itemize
31883
31884 \change_inserted 1075283030 1597699343
31885 \begin_inset Quotes eld
31886 \end_inset
31887
31888
31889 \begin_inset Flex Code
31890 status collapsed
31891
31892 \begin_layout Plain Layout
31893
31894 \change_inserted 1075283030 1597699307
31895 inline
31896 \change_unchanged
31897
31898 \end_layout
31899
31900 \end_inset
31901
31902
31903 \begin_inset Quotes erd
31904 \end_inset
31905
31906 :
31907  the opening and closing tags are on the same line as the rest of the content.
31908  No line feeds are output.
31909  Typical elements are fonts.
31910  For instance:
31911  
31912 \end_layout
31913
31914 \begin_layout LyX-Code
31915
31916 \change_inserted 1075283030 1597699585
31917 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
31918 \end_layout
31919
31920 \begin_layout Standard
31921
31922 \change_inserted 1075283030 1597699585
31923 The default value is always 
31924 \begin_inset Quotes eld
31925 \end_inset
31926
31927
31928 \begin_inset Flex Code
31929 status collapsed
31930
31931 \begin_layout Plain Layout
31932
31933 \change_inserted 1075283030 1597699585
31934 block
31935 \change_unchanged
31936
31937 \end_layout
31938
31939 \end_inset
31940
31941
31942 \begin_inset Quotes erd
31943 \end_inset
31944
31945 .
31946 \change_unchanged
31947
31948 \end_layout
31949
31950 \begin_layout Subsection
31951
31952 \change_inserted -970929547 1515111533
31953 InsetLayout DocBook
31954 \change_unchanged
31955
31956 \end_layout
31957
31958 \begin_layout Standard
31959
31960 \change_inserted -970929547 1496611894
31961 The DocBook output of insets can also be controlled by information in layout files.
31962 \end_layout
31963
31964 \begin_layout Standard
31965
31966 \change_inserted -970929547 1496612045
31967 The DocBook \SpecialChar LyX
31968  outputs for an inset has the following form:
31969 \end_layout
31970
31971 \begin_layout LyX-Code
31972
31973 \change_inserted -970929547 1515110861
31974 <wrappertag wrapperattr>
31975 \end_layout
31976
31977 \begin_layout LyX-Code
31978
31979 \change_inserted -970929547 1515110868
31980   <tag attr>
31981 \end_layout
31982
31983 \begin_layout LyX-Code
31984
31985 \change_inserted -970929547 1515110869
31986     <innertag innerattr>
31987 \end_layout
31988
31989 \begin_layout LyX-Code
31990
31991 \change_inserted -970929547 1515110869
31992       Contents of the inset.
31993 \end_layout
31994
31995 \begin_layout LyX-Code
31996
31997 \change_inserted -970929547 1515110870
31998     </innertag>
31999 \end_layout
32000
32001 \begin_layout LyX-Code
32002
32003 \change_inserted -970929547 1515110871
32004   </tag>
32005 \end_layout
32006
32007 \begin_layout LyX-Code
32008
32009 \change_inserted -970929547 1515111172
32010 </wrappertag>
32011 \end_layout
32012
32013 \begin_layout Standard
32014
32015 \change_inserted -970929547 1515111186
32016 For an itemising inset,
32017  it rather looks like this:
32018  
32019 \end_layout
32020
32021 \begin_layout LyX-Code
32022
32023 \change_inserted -970929547 1515111186
32024 <wrappertag wrapperattr>
32025 \end_layout
32026
32027 \begin_layout LyX-Code
32028
32029 \change_inserted -970929547 1515111186
32030   <tag attr>
32031 \end_layout
32032
32033 \begin_layout LyX-Code
32034
32035 \change_inserted -970929547 1515111186
32036     <innertag innerattr>
32037 \end_layout
32038
32039 \begin_layout LyX-Code
32040
32041 \change_inserted -970929547 1515111362
32042       <itemwrappertag itemwrapperattr>
32043 \end_layout
32044
32045 \begin_layout LyX-Code
32046
32047 \change_inserted -970929547 1515111364
32048         <itemlabeltag itemattr>
32049 \end_layout
32050
32051 \begin_layout LyX-Code
32052
32053 \change_inserted -970929547 1515111367
32054           Label of the first item.
32055 \end_layout
32056
32057 \begin_layout LyX-Code
32058
32059 \change_inserted -970929547 1515111362
32060         </itemtag>
32061 \change_unchanged
32062
32063 \end_layout
32064
32065 \begin_layout LyX-Code
32066
32067 \change_inserted -970929547 1515111517
32068         <itemtag itemattr>
32069 \end_layout
32070
32071 \begin_layout LyX-Code
32072
32073 \change_inserted -970929547 1515111517
32074           <itemtag itemattr>
32075 \change_unchanged
32076
32077 \end_layout
32078
32079 \begin_layout LyX-Code
32080
32081 \change_inserted -970929547 1515111516
32082             Contents of the first item.
32083 \end_layout
32084
32085 \begin_layout LyX-Code
32086
32087 \change_inserted -970929547 1515111514
32088           </itemtag>
32089 \change_unchanged
32090
32091 \end_layout
32092
32093 \begin_layout LyX-Code
32094
32095 \change_inserted -970929547 1515111247
32096         </itemtag>
32097 \change_unchanged
32098
32099 \end_layout
32100
32101 \begin_layout LyX-Code
32102
32103 \change_inserted -970929547 1515111221
32104       </itemwrappertag>
32105 \end_layout
32106
32107 \begin_layout LyX-Code
32108
32109 \change_inserted -970929547 1515111370
32110       <itemwrappertag itemwrapperattr>
32111 \end_layout
32112
32113 \begin_layout LyX-Code
32114
32115 \change_inserted -970929547 1515111370
32116         <itemlabeltag itemattr>
32117 \end_layout
32118
32119 \begin_layout LyX-Code
32120
32121 \change_inserted -970929547 1515111372
32122           Label of the second item.
32123 \end_layout
32124
32125 \begin_layout LyX-Code
32126
32127 \change_inserted -970929547 1515111370
32128         </itemtag>
32129 \change_unchanged
32130
32131 \end_layout
32132
32133 \begin_layout LyX-Code
32134
32135 \change_inserted -970929547 1515111504
32136         <itemtag itemattr>
32137 \end_layout
32138
32139 \begin_layout LyX-Code
32140
32141 \change_inserted -970929547 1515111505
32142           <itemtag itemattr>
32143 \change_unchanged
32144
32145 \end_layout
32146
32147 \begin_layout LyX-Code
32148
32149 \change_inserted -970929547 1515111507
32150             Contents of the second item.
32151 \end_layout
32152
32153 \begin_layout LyX-Code
32154
32155 \change_inserted -970929547 1515111509
32156           </itemtag>
32157 \change_unchanged
32158
32159 \end_layout
32160
32161 \begin_layout LyX-Code
32162
32163 \change_inserted -970929547 1515111251
32164         </itemtag>
32165 \change_unchanged
32166
32167 \end_layout
32168
32169 \begin_layout LyX-Code
32170
32171 \change_inserted -970929547 1515111221
32172       </itemwrappertag>
32173 \change_unchanged
32174
32175 \end_layout
32176
32177 \begin_layout LyX-Code
32178
32179 \change_inserted -970929547 1515111219
32180       ...
32181 \change_unchanged
32182
32183 \end_layout
32184
32185 \begin_layout LyX-Code
32186
32187 \change_inserted -970929547 1515111186
32188     </innertag>
32189 \end_layout
32190
32191 \begin_layout LyX-Code
32192
32193 \change_inserted -970929547 1515111186
32194   </tag>
32195 \end_layout
32196
32197 \begin_layout LyX-Code
32198
32199 \change_inserted -970929547 1515111186
32200 </wrappertag>
32201 \end_layout
32202
32203 \begin_layout Standard
32204
32205 \change_inserted -970929547 1515111183
32206 If the inset permits multiple paragraphs—
32207 that is,
32208  if 
32209 \begin_inset Flex Code
32210 status collapsed
32211
32212 \begin_layout Plain Layout
32213
32214 \change_inserted -970929547 1496610966
32215 MultiPar
32216 \change_unchanged
32217
32218 \end_layout
32219
32220 \end_inset
32221
32222  is true—
32223 then the contents of the inset will 
32224 \change_deleted 34634807 1620029217
32225 itself
32226 \change_inserted 34634807 1620029219
32227 themselves
32228 \change_inserted -970929547 1515111183
32229  be output as paragraphs formatted according to the styles used for those paragraphs (standard,
32230  quote,
32231  and the like).
32232  The inner tag is optional and,
32233  by default,
32234  does not appear.
32235 \end_layout
32236
32237 \begin_layout Standard
32238
32239 \change_inserted -970929547 1496610966
32240 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
32241 \end_layout
32242
32243 \begin_layout Description
32244
32245 \change_inserted -970929547 1515110317
32246 \begin_inset Flex Code
32247 status collapsed
32248
32249 \begin_layout Plain Layout
32250
32251 \change_inserted -970929547 1515109695
32252 DocBookAttr
32253 \change_unchanged
32254
32255 \end_layout
32256
32257 \end_inset
32258
32259  [
32260 \begin_inset Flex Code
32261 status collapsed
32262
32263 \begin_layout Plain Layout
32264
32265 \change_inserted -970929547 1496611854
32266 string
32267 \change_unchanged
32268
32269 \end_layout
32270
32271 \end_inset
32272
32273 ] Specifies attribute information to be output with the main tag,
32274  replacing 
32275 \begin_inset Quotes eld
32276 \end_inset
32277
32278
32279 \begin_inset Flex Code
32280 status collapsed
32281
32282 \begin_layout Plain Layout
32283
32284 \change_inserted -970929547 1515110044
32285 attr
32286 \change_unchanged
32287
32288 \end_layout
32289
32290 \end_inset
32291
32292
32293 \begin_inset Quotes erd
32294 \end_inset
32295
32296  in the example above.
32297  This information can be used in further processing of the DocBook files.
32298  
32299 \end_layout
32300
32301 \begin_layout Description
32302
32303 \change_inserted -970929547 1515110973
32304 \begin_inset Flex Code
32305 status collapsed
32306
32307 \begin_layout Plain Layout
32308
32309 \change_inserted -970929547 1515110319
32310 DocBookInInfo
32311 \change_unchanged
32312
32313 \end_layout
32314
32315 \end_inset
32316
32317  [
32318 \begin_inset Flex Code
32319 status collapsed
32320
32321 \begin_layout Plain Layout
32322
32323 \change_inserted -970929547 1515110384
32324 never,
32325  always,
32326  maybe
32327 \change_unchanged
32328
32329 \end_layout
32330
32331 \end_inset
32332
32333 ] Specifies whether this tag goes into the 
32334 \begin_inset Flex Code
32335 status collapsed
32336
32337 \begin_layout Plain Layout
32338
32339 \change_inserted -970929547 1515110412
32340 <info>
32341 \change_unchanged
32342
32343 \end_layout
32344
32345 \end_inset
32346
32347  tag at the beginning of the parent layout.
32348  
32349 \begin_inset Flex Code
32350 status collapsed
32351
32352 \begin_layout Plain Layout
32353
32354 \change_inserted -970929547 1515110437
32355 never
32356 \change_unchanged
32357
32358 \end_layout
32359
32360 \end_inset
32361
32362  indicates that the tag never goes into 
32363 \begin_inset Flex Code
32364 status collapsed
32365
32366 \begin_layout Plain Layout
32367
32368 \change_inserted -970929547 1515110497
32369 <info>
32370 \change_unchanged
32371
32372 \end_layout
32373
32374 \end_inset
32375
32376  (this is default value,
32377  and corresponds to usual content).
32378  
32379 \begin_inset Flex Code
32380 status collapsed
32381
32382 \begin_layout Plain Layout
32383
32384 \change_inserted -970929547 1515110517
32385 always
32386 \change_unchanged
32387
32388 \end_layout
32389
32390 \end_inset
32391
32392  indicates that the tag always goes into 
32393 \begin_inset Flex Code
32394 status collapsed
32395
32396 \begin_layout Plain Layout
32397
32398 \change_inserted -970929547 1515110514
32399 <info>
32400 \change_unchanged
32401
32402 \end_layout
32403
32404 \end_inset
32405
32406  (this corresponds to usual metadata):
32407  if there is no 
32408 \begin_inset Flex Code
32409 status collapsed
32410
32411 \begin_layout Plain Layout
32412
32413 \change_inserted -970929547 1515110550
32414 <info>
32415 \change_unchanged
32416
32417 \end_layout
32418
32419 \end_inset
32420
32421  tag for the parent,
32422  one 
32423 \series bold
32424 will
32425 \series default
32426  be generated.
32427  
32428 \begin_inset Flex Code
32429 status collapsed
32430
32431 \begin_layout Plain Layout
32432
32433 \change_inserted -970929547 1515110540
32434 maybe
32435 \change_unchanged
32436
32437 \end_layout
32438
32439 \end_inset
32440
32441  indicates that the tag may go into 
32442 \begin_inset Flex Code
32443 status collapsed
32444
32445 \begin_layout Plain Layout
32446
32447 \change_inserted -970929547 1515110538
32448 <info>
32449 \change_unchanged
32450
32451 \end_layout
32452
32453 \end_inset
32454
32455  (this is only the case for titles):
32456  if there is no 
32457 \begin_inset Flex Code
32458 status collapsed
32459
32460 \begin_layout Plain Layout
32461
32462 \change_inserted -970929547 1515110585
32463 <info>
32464 \change_unchanged
32465
32466 \end_layout
32467
32468 \end_inset
32469
32470  tag for the parent,
32471  
32472 \series bold
32473 none
32474 \series default
32475  will be generated,
32476  the corresponding tag will be output directly as content.
32477  
32478 \end_layout
32479
32480 \begin_layout Description
32481
32482 \change_inserted -970929547 1515111461
32483 \begin_inset Flex Code
32484 status collapsed
32485
32486 \begin_layout Plain Layout
32487
32488 \change_inserted -970929547 1515110974
32489 DocBookItemAttr
32490 \change_unchanged
32491
32492 \end_layout
32493
32494 \end_inset
32495
32496  [
32497 \begin_inset Flex Code
32498 status collapsed
32499
32500 \begin_layout Plain Layout
32501
32502 \change_inserted -970929547 1515110973
32503 string
32504 \change_unchanged
32505
32506 \end_layout
32507
32508 \end_inset
32509
32510 ] Specifies attribute information to be output with the item tag,
32511  replacing 
32512 \begin_inset Quotes eld
32513 \end_inset
32514
32515
32516 \begin_inset Flex Code
32517 status collapsed
32518
32519 \begin_layout Plain Layout
32520
32521 \change_inserted -970929547 1515110984
32522 itemattr
32523 \change_unchanged
32524
32525 \end_layout
32526
32527 \end_inset
32528
32529
32530 \begin_inset Quotes erd
32531 \end_inset
32532
32533  in the example above.
32534  This information can be used in further processing of the DocBook files.
32535  
32536 \end_layout
32537
32538 \begin_layout Description
32539
32540 \change_inserted -970929547 1515111471
32541 \begin_inset Flex Code
32542 status collapsed
32543
32544 \begin_layout Plain Layout
32545
32546 \change_inserted -970929547 1515111465
32547 DocBookItemInnerAttr
32548 \change_unchanged
32549
32550 \end_layout
32551
32552 \end_inset
32553
32554  [
32555 \begin_inset Flex Code
32556 status collapsed
32557
32558 \begin_layout Plain Layout
32559
32560 \change_inserted -970929547 1515111461
32561 string
32562 \change_unchanged
32563
32564 \end_layout
32565
32566 \end_inset
32567
32568 ] Specifies attribute information to be output with the item inner tag,
32569  replacing 
32570 \begin_inset Quotes eld
32571 \end_inset
32572
32573
32574 \begin_inset Flex Code
32575 status collapsed
32576
32577 \begin_layout Plain Layout
32578
32579 \change_inserted -970929547 1515111476
32580 iteminnerattr
32581 \change_unchanged
32582
32583 \end_layout
32584
32585 \end_inset
32586
32587
32588 \begin_inset Quotes erd
32589 \end_inset
32590
32591  in the example above.
32592  This information can be used in further processing of the DocBook files.
32593  
32594 \end_layout
32595
32596 \begin_layout Description
32597
32598 \change_inserted -970929547 1515111494
32599 \begin_inset Flex Code
32600 status collapsed
32601
32602 \begin_layout Plain Layout
32603
32604 \change_inserted -970929547 1515111467
32605 DocBookItemInnerTag
32606 \change_unchanged
32607
32608 \end_layout
32609
32610 \end_inset
32611
32612  [
32613 \begin_inset Flex Code
32614 status collapsed
32615
32616 \begin_layout Plain Layout
32617
32618 \change_inserted -970929547 1515111461
32619 string
32620 \change_unchanged
32621
32622 \end_layout
32623
32624 \end_inset
32625
32626 ] The tag to be used for the item inner tag within the inset,
32627  replacing 
32628 \begin_inset Quotes eld
32629 \end_inset
32630
32631
32632 \begin_inset Flex Code
32633 status collapsed
32634
32635 \begin_layout Plain Layout
32636
32637 \change_inserted -970929547 1515111486
32638 iteminnertag
32639 \change_unchanged
32640
32641 \end_layout
32642
32643 \end_inset
32644
32645
32646 \begin_inset Quotes erd
32647 \end_inset
32648
32649  in the example above.
32650  The default is 
32651 \begin_inset Flex Code
32652 status collapsed
32653
32654 \begin_layout Plain Layout
32655
32656 \change_inserted -970929547 1515111461
32657 NONE
32658 \change_unchanged
32659
32660 \end_layout
32661
32662 \end_inset
32663
32664 ,
32665  indicating that there is no item inner tag:
32666  content is directly output without it for each itemised element.
32667  This parameter only makes sense when itemising layouts are used,
32668  such as lists.
32669  
32670 \change_inserted 1075283030 1598469472
32671 The most likely value is 
32672 \begin_inset Quotes eld
32673 \end_inset
32674
32675
32676 \begin_inset Flex Code
32677 status collapsed
32678
32679 \begin_layout Plain Layout
32680
32681 \change_inserted 1075283030 1598469476
32682 para
32683 \change_unchanged
32684
32685 \end_layout
32686
32687 \end_inset
32688
32689
32690 \begin_inset Quotes erd
32691 \end_inset
32692
32693 .
32694 \begin_inset Newline newline
32695 \end_inset
32696
32697 When a list item is split using a new line,
32698  the item inner tag will be repeated for each part of the paragraph,
32699  parts being separated by new lines.
32700  
32701 \end_layout
32702
32703 \begin_layout Description
32704
32705 \change_inserted 1075283030 1597699866
32706 \begin_inset Flex Code
32707 status collapsed
32708
32709 \begin_layout Plain Layout
32710
32711 \change_inserted 1075283030 1597699853
32712 DocBookItemInnerTagType
32713 \change_unchanged
32714
32715 \end_layout
32716
32717 \end_inset
32718
32719  [
32720 \begin_inset Flex Code
32721 status collapsed
32722
32723 \begin_layout Plain Layout
32724
32725 \change_inserted 1075283030 1597699866
32726 block,
32727  paragraph,
32728  inline
32729 \change_unchanged
32730
32731 \end_layout
32732
32733 \end_inset
32734
32735 ] The new-line policy for this tag,
32736  see Section
32737 \begin_inset space ~
32738 \end_inset
32739
32740
32741 \begin_inset CommandInset ref
32742 LatexCommand ref
32743 reference "subsec:DocBook-New-line-policy"
32744 plural "false"
32745 caps "false"
32746 noprefix "false"
32747 nolink "false"
32748
32749 \end_inset
32750
32751  for the details.
32752  
32753 \change_unchanged
32754
32755 \end_layout
32756
32757 \begin_layout Description
32758
32759 \change_inserted -970929547 1515111290
32760 \begin_inset Flex Code
32761 status collapsed
32762
32763 \begin_layout Plain Layout
32764
32765 \change_inserted -970929547 1515111283
32766 DocBookItemLabelAttr
32767 \change_unchanged
32768
32769 \end_layout
32770
32771 \end_inset
32772
32773  [
32774 \begin_inset Flex Code
32775 status collapsed
32776
32777 \begin_layout Plain Layout
32778
32779 \change_inserted -970929547 1515111279
32780 string
32781 \change_unchanged
32782
32783 \end_layout
32784
32785 \end_inset
32786
32787 ] Specifies attribute information to be output with the item label tag,
32788  replacing 
32789 \begin_inset Quotes eld
32790 \end_inset
32791
32792
32793 \begin_inset Flex Code
32794 status collapsed
32795
32796 \begin_layout Plain Layout
32797
32798 \change_inserted -970929547 1515111304
32799 itemlabelattr
32800 \change_unchanged
32801
32802 \end_layout
32803
32804 \end_inset
32805
32806
32807 \begin_inset Quotes erd
32808 \end_inset
32809
32810  in the example above.
32811  This information can be used in further processing of the DocBook files.
32812  
32813 \end_layout
32814
32815 \begin_layout Description
32816
32817 \change_inserted -970929547 1515111337
32818 \begin_inset Flex Code
32819 status collapsed
32820
32821 \begin_layout Plain Layout
32822
32823 \change_inserted -970929547 1515111285
32824 DocBookItemLabelTag
32825 \change_unchanged
32826
32827 \end_layout
32828
32829 \end_inset
32830
32831  [
32832 \begin_inset Flex Code
32833 status collapsed
32834
32835 \begin_layout Plain Layout
32836
32837 \change_inserted -970929547 1515111279
32838 string
32839 \change_unchanged
32840
32841 \end_layout
32842
32843 \end_inset
32844
32845 ] The tag to be used for the item label tag within the inset,
32846  replacing 
32847 \begin_inset Quotes eld
32848 \end_inset
32849
32850
32851 \begin_inset Flex Code
32852 status collapsed
32853
32854 \begin_layout Plain Layout
32855
32856 \change_inserted -970929547 1515111311
32857 itemlabeltag
32858 \change_unchanged
32859
32860 \end_layout
32861
32862 \end_inset
32863
32864
32865 \begin_inset Quotes erd
32866 \end_inset
32867
32868  in the example above.
32869  This parameter only makes sense when itemising layouts are used with a notion of labels,
32870  such as definition lists.
32871  
32872 \change_inserted 1075283030 1597699874
32873
32874 \end_layout
32875
32876 \begin_layout Description
32877
32878 \change_inserted 1075283030 1597699874
32879 \begin_inset Flex Code
32880 status collapsed
32881
32882 \begin_layout Plain Layout
32883
32884 \change_inserted 1075283030 1597699880
32885 DocBookItemLabelTagType
32886 \change_unchanged
32887
32888 \end_layout
32889
32890 \end_inset
32891
32892  [
32893 \begin_inset Flex Code
32894 status collapsed
32895
32896 \begin_layout Plain Layout
32897
32898 \change_inserted 1075283030 1597699874
32899 block,
32900  paragraph,
32901  inline
32902 \change_unchanged
32903
32904 \end_layout
32905
32906 \end_inset
32907
32908 ] The new-line policy for this tag,
32909  see Section
32910 \begin_inset space ~
32911 \end_inset
32912
32913
32914 \begin_inset CommandInset ref
32915 LatexCommand ref
32916 reference "subsec:DocBook-New-line-policy"
32917 plural "false"
32918 caps "false"
32919 noprefix "false"
32920 nolink "false"
32921
32922 \end_inset
32923
32924  for the details.
32925  
32926 \change_unchanged
32927
32928 \end_layout
32929
32930 \begin_layout Description
32931
32932 \change_inserted -970929547 1515111124
32933 \begin_inset Flex Code
32934 status collapsed
32935
32936 \begin_layout Plain Layout
32937
32938 \change_inserted -970929547 1515111060
32939 DocBookItemTag
32940 \change_unchanged
32941
32942 \end_layout
32943
32944 \end_inset
32945
32946  [
32947 \begin_inset Flex Code
32948 status collapsed
32949
32950 \begin_layout Plain Layout
32951
32952 \change_inserted -970929547 1515111060
32953 string
32954 \change_unchanged
32955
32956 \end_layout
32957
32958 \end_inset
32959
32960 ] The tag to be used for the item tag within the inset,
32961  replacing 
32962 \begin_inset Quotes eld
32963 \end_inset
32964
32965
32966 \begin_inset Flex Code
32967 status collapsed
32968
32969 \begin_layout Plain Layout
32970
32971 \change_inserted -970929547 1515111060
32972 itemtag
32973 \change_unchanged
32974
32975 \end_layout
32976
32977 \end_inset
32978
32979
32980 \begin_inset Quotes erd
32981 \end_inset
32982
32983  in the example above.
32984  The default is 
32985 \begin_inset Flex Code
32986 status collapsed
32987
32988 \begin_layout Plain Layout
32989
32990 \change_inserted -970929547 1515111060
32991 NONE
32992 \change_unchanged
32993
32994 \end_layout
32995
32996 \end_inset
32997
32998 ,
32999  indicating that there is no item tag.
33000  This parameter only makes sense when itemising layouts are used,
33001  such as lists.
33002  
33003 \change_inserted 1075283030 1597699890
33004
33005 \end_layout
33006
33007 \begin_layout Description
33008
33009 \change_inserted 1075283030 1597699890
33010 \begin_inset Flex Code
33011 status collapsed
33012
33013 \begin_layout Plain Layout
33014
33015 \change_inserted 1075283030 1597699890
33016 DocBookItemTagType
33017 \change_unchanged
33018
33019 \end_layout
33020
33021 \end_inset
33022
33023  [
33024 \begin_inset Flex Code
33025 status collapsed
33026
33027 \begin_layout Plain Layout
33028
33029 \change_inserted 1075283030 1597699890
33030 block,
33031  paragraph,
33032  inline
33033 \change_unchanged
33034
33035 \end_layout
33036
33037 \end_inset
33038
33039 ] The new-line policy for this tag,
33040  see Section
33041 \begin_inset space ~
33042 \end_inset
33043
33044
33045 \begin_inset CommandInset ref
33046 LatexCommand ref
33047 reference "subsec:DocBook-New-line-policy"
33048 plural "false"
33049 caps "false"
33050 noprefix "false"
33051 nolink "false"
33052
33053 \end_inset
33054
33055  for the details.
33056  
33057 \change_unchanged
33058
33059 \end_layout
33060
33061 \begin_layout Description
33062
33063 \change_inserted -970929547 1515111298
33064 \begin_inset Flex Code
33065 status collapsed
33066
33067 \begin_layout Plain Layout
33068
33069 \change_inserted -970929547 1515111124
33070 DocBookItemWrapperAttr
33071 \change_unchanged
33072
33073 \end_layout
33074
33075 \end_inset
33076
33077  [
33078 \begin_inset Flex Code
33079 status collapsed
33080
33081 \begin_layout Plain Layout
33082
33083 \change_inserted -970929547 1515111124
33084 string
33085 \change_unchanged
33086
33087 \end_layout
33088
33089 \end_inset
33090
33091 ] Specifies attribute information to be output with the item wrapper tag,
33092  replacing 
33093 \begin_inset Quotes eld
33094 \end_inset
33095
33096
33097 \begin_inset Flex Code
33098 status collapsed
33099
33100 \begin_layout Plain Layout
33101
33102 \change_inserted -970929547 1515111150
33103 itemwrapperattr
33104 \change_unchanged
33105
33106 \end_layout
33107
33108 \end_inset
33109
33110
33111 \begin_inset Quotes erd
33112 \end_inset
33113
33114  in the example above.
33115  This information can be used in further processing of the DocBook files.
33116  
33117 \change_unchanged
33118
33119 \end_layout
33120
33121 \begin_layout Description
33122
33123 \change_inserted -970929547 1515111113
33124 \begin_inset Flex Code
33125 status collapsed
33126
33127 \begin_layout Plain Layout
33128
33129 \change_inserted -970929547 1515111073
33130 DocBookItemWrapperTag
33131 \change_unchanged
33132
33133 \end_layout
33134
33135 \end_inset
33136
33137  [
33138 \begin_inset Flex Code
33139 status collapsed
33140
33141 \begin_layout Plain Layout
33142
33143 \change_inserted -970929547 1515111073
33144 string
33145 \change_unchanged
33146
33147 \end_layout
33148
33149 \end_inset
33150
33151 ] The tag to be used for the item wrapper tag within the inset,
33152  replacing 
33153 \begin_inset Quotes eld
33154 \end_inset
33155
33156
33157 \begin_inset Flex Code
33158 status collapsed
33159
33160 \begin_layout Plain Layout
33161
33162 \change_inserted -970929547 1515111083
33163 itemwrappertag
33164 \change_unchanged
33165
33166 \end_layout
33167
33168 \end_inset
33169
33170
33171 \begin_inset Quotes erd
33172 \end_inset
33173
33174  in the example above.
33175  The default is 
33176 \begin_inset Flex Code
33177 status collapsed
33178
33179 \begin_layout Plain Layout
33180
33181 \change_inserted -970929547 1515111073
33182 NONE
33183 \change_unchanged
33184
33185 \end_layout
33186
33187 \end_inset
33188
33189 ,
33190  indicating that there is no item wrapper tag:
33191  tag and content are directly output without it for each itemised element.
33192  This parameter only makes sense when itemising layouts are used,
33193  such as lists.
33194  
33195 \change_inserted 1075283030 1597699897
33196
33197 \end_layout
33198
33199 \begin_layout Description
33200
33201 \change_inserted 1075283030 1597699897
33202 \begin_inset Flex Code
33203 status collapsed
33204
33205 \begin_layout Plain Layout
33206
33207 \change_inserted 1075283030 1597699900
33208 DocBookItemWrapperTagType
33209 \change_unchanged
33210
33211 \end_layout
33212
33213 \end_inset
33214
33215  [
33216 \begin_inset Flex Code
33217 status collapsed
33218
33219 \begin_layout Plain Layout
33220
33221 \change_inserted 1075283030 1597699897
33222 block,
33223  paragraph,
33224  inline
33225 \change_unchanged
33226
33227 \end_layout
33228
33229 \end_inset
33230
33231 ] The new-line policy for this tag,
33232  see Section
33233 \begin_inset space ~
33234 \end_inset
33235
33236
33237 \begin_inset CommandInset ref
33238 LatexCommand ref
33239 reference "subsec:DocBook-New-line-policy"
33240 plural "false"
33241 caps "false"
33242 noprefix "false"
33243 nolink "false"
33244
33245 \end_inset
33246
33247  for the details.
33248  
33249 \change_unchanged
33250
33251 \end_layout
33252
33253 \begin_layout Description
33254
33255 \change_inserted -970929547 1515110104
33256 \begin_inset Flex Code
33257 status collapsed
33258
33259 \begin_layout Plain Layout
33260
33261 \change_inserted -970929547 1515110104
33262 DocBookInnerAttr
33263 \change_unchanged
33264
33265 \end_layout
33266
33267 \end_inset
33268
33269  [
33270 \begin_inset Flex Code
33271 status collapsed
33272
33273 \begin_layout Plain Layout
33274
33275 \change_inserted -970929547 1515110104
33276 string
33277 \change_unchanged
33278
33279 \end_layout
33280
33281 \end_inset
33282
33283 ] Specifies attribute information to be output with the inner tag,
33284  replacing 
33285 \begin_inset Quotes eld
33286 \end_inset
33287
33288
33289 \begin_inset Flex Code
33290 status collapsed
33291
33292 \begin_layout Plain Layout
33293
33294 \change_inserted -970929547 1515110104
33295 innerattr
33296 \change_unchanged
33297
33298 \end_layout
33299
33300 \end_inset
33301
33302
33303 \begin_inset Quotes erd
33304 \end_inset
33305
33306  in the example above.
33307  This information can be used in further processing of the DocBook files.
33308  
33309 \end_layout
33310
33311 \begin_layout Description
33312
33313 \change_inserted -970929547 1515110906
33314 \begin_inset Flex Code
33315 status collapsed
33316
33317 \begin_layout Plain Layout
33318
33319 \change_inserted -970929547 1515110104
33320 DocBookInnerTag
33321 \change_unchanged
33322
33323 \end_layout
33324
33325 \end_inset
33326
33327  [
33328 \begin_inset Flex Code
33329 status collapsed
33330
33331 \begin_layout Plain Layout
33332
33333 \change_inserted -970929547 1515110104
33334 string
33335 \change_unchanged
33336
33337 \end_layout
33338
33339 \end_inset
33340
33341 ] The tag to be used for the inner tag within the inset,
33342  replacing 
33343 \begin_inset Quotes eld
33344 \end_inset
33345
33346
33347 \begin_inset Flex Code
33348 status collapsed
33349
33350 \begin_layout Plain Layout
33351
33352 \change_inserted -970929547 1515110104
33353 innertag
33354 \change_unchanged
33355
33356 \end_layout
33357
33358 \end_inset
33359
33360
33361 \begin_inset Quotes erd
33362 \end_inset
33363
33364  in the example above.
33365  The default is 
33366 \begin_inset Flex Code
33367 status collapsed
33368
33369 \begin_layout Plain Layout
33370
33371 \change_inserted -970929547 1515110791
33372 NONE
33373 \change_unchanged
33374
33375 \end_layout
33376
33377 \end_inset
33378
33379 ,
33380  indicating that there is no inner tag:
33381  content is directly output without it.
33382 \change_inserted 1075283030 1597699904
33383
33384 \end_layout
33385
33386 \begin_layout Description
33387
33388 \change_inserted 1075283030 1597699904
33389 \begin_inset Flex Code
33390 status collapsed
33391
33392 \begin_layout Plain Layout
33393
33394 \change_inserted 1075283030 1597699904
33395 DocBookInnerTagType
33396 \change_unchanged
33397
33398 \end_layout
33399
33400 \end_inset
33401
33402  [
33403 \begin_inset Flex Code
33404 status collapsed
33405
33406 \begin_layout Plain Layout
33407
33408 \change_inserted 1075283030 1597699904
33409 block,
33410  paragraph,
33411  inline
33412 \change_unchanged
33413
33414 \end_layout
33415
33416 \end_inset
33417
33418 ] The new-line policy for this tag,
33419  see Section
33420 \begin_inset space ~
33421 \end_inset
33422
33423
33424 \begin_inset CommandInset ref
33425 LatexCommand ref
33426 reference "subsec:DocBook-New-line-policy"
33427 plural "false"
33428 caps "false"
33429 noprefix "false"
33430 nolink "false"
33431
33432 \end_inset
33433
33434  for the details.
33435  
33436 \change_unchanged
33437
33438 \end_layout
33439
33440 \begin_layout Description
33441
33442 \change_inserted -970929547 1515110753
33443 \begin_inset Flex Code
33444 status collapsed
33445
33446 \begin_layout Plain Layout
33447
33448 \change_inserted -970929547 1515110665
33449 DocBookSectionTag
33450 \change_unchanged
33451
33452 \end_layout
33453
33454 \end_inset
33455
33456  [
33457 \begin_inset Flex Code
33458 status collapsed
33459
33460 \begin_layout Plain Layout
33461
33462 \change_inserted -970929547 1515110661
33463 string
33464 \change_unchanged
33465
33466 \end_layout
33467
33468 \end_inset
33469
33470 ] Specifies the tag that corresponds to this kind of section.
33471  This parameter only makes sense for sectioning elements (part,
33472  chapter,
33473  section,
33474  etc.).
33475  The default value is 
33476 \begin_inset Flex Code
33477 status collapsed
33478
33479 \begin_layout Plain Layout
33480
33481 \change_inserted -970929547 1515110721
33482 section
33483 \change_unchanged
33484
33485 \end_layout
33486
33487 \end_inset
33488
33489 ,
33490  and is only overridden when DocBook uses something else for sectioning (
33491 \change_inserted 1075283030 1597699921
33492 typically,
33493  
33494 \change_inserted -970929547 1515110753
33495 parts and chapters of a book).
33496  
33497 \change_unchanged
33498
33499 \end_layout
33500
33501 \begin_layout Description
33502
33503 \change_inserted -970929547 1515110811
33504 \begin_inset Flex Code
33505 status collapsed
33506
33507 \begin_layout Plain Layout
33508
33509 \change_inserted -970929547 1496612023
33510 DocBookTag
33511 \change_unchanged
33512
33513 \end_layout
33514
33515 \end_inset
33516
33517  [
33518 \begin_inset Flex Code
33519 status collapsed
33520
33521 \begin_layout Plain Layout
33522
33523 \change_inserted -970929547 1496610966
33524 string
33525 \change_unchanged
33526
33527 \end_layout
33528
33529 \end_inset
33530
33531 ] The tag to be used for this inset,
33532  replacing 
33533 \begin_inset Quotes eld
33534 \end_inset
33535
33536
33537 \begin_inset Flex Code
33538 status collapsed
33539
33540 \begin_layout Plain Layout
33541
33542 \change_inserted -970929547 1496612033
33543 tag
33544 \change_unchanged
33545
33546 \end_layout
33547
33548 \end_inset
33549
33550
33551 \begin_inset Quotes erd
33552 \end_inset
33553
33554  in the example above.
33555  The default is the name of the float and always needs to be changed,
33556  as DocBook provides no generic inset tag.
33557 \change_inserted 1075283030 1597699924
33558
33559 \end_layout
33560
33561 \begin_layout Description
33562
33563 \change_inserted 1075283030 1597699924
33564 \begin_inset Flex Code
33565 status collapsed
33566
33567 \begin_layout Plain Layout
33568
33569 \change_inserted 1075283030 1597699924
33570 DocBookTagType
33571 \change_unchanged
33572
33573 \end_layout
33574
33575 \end_inset
33576
33577  [
33578 \begin_inset Flex Code
33579 status collapsed
33580
33581 \begin_layout Plain Layout
33582
33583 \change_inserted 1075283030 1597699924
33584 block,
33585  paragraph,
33586  inline
33587 \change_unchanged
33588
33589 \end_layout
33590
33591 \end_inset
33592
33593 ] The new-line policy for this tag,
33594  see Section
33595 \begin_inset space ~
33596 \end_inset
33597
33598
33599 \begin_inset CommandInset ref
33600 LatexCommand ref
33601 reference "subsec:DocBook-New-line-policy"
33602 plural "false"
33603 caps "false"
33604 noprefix "false"
33605 nolink "false"
33606
33607 \end_inset
33608
33609  for the details.
33610  
33611 \change_unchanged
33612
33613 \end_layout
33614
33615 \begin_layout Description
33616
33617 \change_inserted -970929547 1515110832
33618 \begin_inset Flex Code
33619 status collapsed
33620
33621 \begin_layout Plain Layout
33622
33623 \change_inserted -970929547 1515110822
33624 DocBookWrapperAttr
33625 \change_unchanged
33626
33627 \end_layout
33628
33629 \end_inset
33630
33631  [
33632 \begin_inset Flex Code
33633 status collapsed
33634
33635 \begin_layout Plain Layout
33636
33637 \change_inserted -970929547 1515110811
33638 string
33639 \change_unchanged
33640
33641 \end_layout
33642
33643 \end_inset
33644
33645 ] Specifies attribute information to be output with the outer 
33646 \change_inserted 34634807 1620057958
33647 wrapper 
33648 \change_inserted -970929547 1515110832
33649 tag,
33650  replacing 
33651 \begin_inset Quotes eld
33652 \end_inset
33653
33654
33655 \begin_inset Flex Code
33656 status collapsed
33657
33658 \begin_layout Plain Layout
33659
33660 \change_inserted -970929547 1515110845
33661 wrapperattr
33662 \change_unchanged
33663
33664 \end_layout
33665
33666 \end_inset
33667
33668
33669 \begin_inset Quotes erd
33670 \end_inset
33671
33672  in the example above.
33673  This information can be used in further processing of the DocBook files.
33674  
33675 \end_layout
33676
33677 \begin_layout Description
33678
33679 \change_inserted -970929547 1515110917
33680 \begin_inset Flex Code
33681 status collapsed
33682
33683 \begin_layout Plain Layout
33684
33685 \change_inserted -970929547 1515110826
33686 DocBookWrapperTag
33687 \change_unchanged
33688
33689 \end_layout
33690
33691 \end_inset
33692
33693  [
33694 \begin_inset Flex Code
33695 status collapsed
33696
33697 \begin_layout Plain Layout
33698
33699 \change_inserted -970929547 1515110811
33700 string
33701 \change_unchanged
33702
33703 \end_layout
33704
33705 \end_inset
33706
33707 ] The tag to be used for the wrapper tag around the inset,
33708  replacing 
33709 \begin_inset Quotes eld
33710 \end_inset
33711
33712
33713 \begin_inset Flex Code
33714 status collapsed
33715
33716 \begin_layout Plain Layout
33717
33718 \change_inserted -970929547 1515110842
33719 wrappertag
33720 \change_unchanged
33721
33722 \end_layout
33723
33724 \end_inset
33725
33726
33727 \begin_inset Quotes erd
33728 \end_inset
33729
33730  in the example above.
33731  The default is 
33732 \begin_inset Flex Code
33733 status collapsed
33734
33735 \begin_layout Plain Layout
33736
33737 \change_inserted -970929547 1515110811
33738 NONE
33739 \change_unchanged
33740
33741 \end_layout
33742
33743 \end_inset
33744
33745 ,
33746  indicating that there is no wrapper tag:
33747  tag and content are directly output without it.
33748 \change_inserted 1075283030 1597699929
33749
33750 \end_layout
33751
33752 \begin_layout Description
33753
33754 \change_inserted 1075283030 1597699929
33755 \begin_inset Flex Code
33756 status collapsed
33757
33758 \begin_layout Plain Layout
33759
33760 \change_inserted 1075283030 1597699932
33761 DocBookWrapperTagType
33762 \change_unchanged
33763
33764 \end_layout
33765
33766 \end_inset
33767
33768  [
33769 \begin_inset Flex Code
33770 status collapsed
33771
33772 \begin_layout Plain Layout
33773
33774 \change_inserted 1075283030 1597699929
33775 block,
33776  paragraph,
33777  inline
33778 \change_unchanged
33779
33780 \end_layout
33781
33782 \end_inset
33783
33784 ] The new-line policy for this tag,
33785  see Section
33786 \begin_inset space ~
33787 \end_inset
33788
33789
33790 \begin_inset CommandInset ref
33791 LatexCommand ref
33792 reference "subsec:DocBook-New-line-policy"
33793 plural "false"
33794 caps "false"
33795 noprefix "false"
33796 nolink "false"
33797
33798 \end_inset
33799
33800  for the details.
33801  
33802 \change_unchanged
33803
33804 \end_layout
33805
33806 \begin_layout Subsection
33807
33808 \change_inserted -970929547 1515110040
33809 Float DocBook
33810 \end_layout
33811
33812 \begin_layout Standard
33813
33814 \change_inserted -970929547 1496611700
33815 The DocBook output for floats too can be controlled by layout information.
33816  The output has the following form:
33817 \end_layout
33818
33819 \begin_layout LyX-Code
33820
33821 \change_inserted -970929547 1515109700
33822 <tag attr>
33823 \end_layout
33824
33825 \begin_layout LyX-Code
33826
33827 \change_inserted -970929547 1515110138
33828   Contents of the float as DocBook.
33829 \end_layout
33830
33831 \begin_layout LyX-Code
33832
33833 \change_inserted -970929547 1496610966
33834 </tag>
33835 \end_layout
33836
33837 \begin_layout Standard
33838
33839 \change_inserted -970929547 1496611715
33840 The caption,
33841  if there is one,
33842  is a separate inset and will be output as a title.
33843  
33844 \end_layout
33845
33846 \begin_layout Description
33847
33848 \change_inserted -970929547 1515110033
33849 \begin_inset Flex Code
33850 status collapsed
33851
33852 \begin_layout Plain Layout
33853
33854 \change_inserted -970929547 1515109702
33855 DocBookAttr
33856 \change_unchanged
33857
33858 \end_layout
33859
33860 \end_inset
33861
33862  [
33863 \begin_inset Flex Code
33864 status collapsed
33865
33866 \begin_layout Plain Layout
33867
33868 \change_inserted -970929547 1496610966
33869 string
33870 \change_unchanged
33871
33872 \end_layout
33873
33874 \end_inset
33875
33876 ] Specifies attribute information to be output with the main tag,
33877  replacing 
33878 \begin_inset Quotes eld
33879 \end_inset
33880
33881
33882 \begin_inset Flex Code
33883 status collapsed
33884
33885 \begin_layout Plain Layout
33886
33887 \change_inserted -970929547 1515110035
33888 attr
33889 \change_unchanged
33890
33891 \end_layout
33892
33893 \end_inset
33894
33895
33896 \begin_inset Quotes erd
33897 \end_inset
33898
33899  in the example above.
33900  This information can be used in further processing of the DocBook files.
33901  
33902 \end_layout
33903
33904 \begin_layout Description
33905
33906 \change_inserted -970929547 1515110157
33907 \begin_inset Flex Code
33908 status collapsed
33909
33910 \begin_layout Plain Layout
33911
33912 \change_inserted -970929547 1496611782
33913 DocBookTag
33914 \change_unchanged
33915
33916 \end_layout
33917
33918 \end_inset
33919
33920  [
33921 \begin_inset Flex Code
33922 status collapsed
33923
33924 \begin_layout Plain Layout
33925
33926 \change_inserted -970929547 1496610966
33927 string
33928 \change_unchanged
33929
33930 \end_layout
33931
33932 \end_inset
33933
33934 ] The tag to be used for this float,
33935  replacing 
33936 \begin_inset Quotes eld
33937 \end_inset
33938
33939
33940 \begin_inset Flex Code
33941 status collapsed
33942
33943 \begin_layout Plain Layout
33944
33945 \change_inserted -970929547 1496610966
33946 tag
33947 \change_unchanged
33948
33949 \end_layout
33950
33951 \end_inset
33952
33953
33954 \begin_inset Quotes erd
33955 \end_inset
33956
33957  in the example above.
33958  The default is the name of the float and always needs to be changed,
33959  as DocBook provides no generic float tag.
33960 \end_layout
33961
33962 \begin_layout Subsection
33963
33964 \change_inserted -970929547 1515110157
33965 Bibliography formatting
33966 \end_layout
33967
33968 \begin_layout Standard
33969
33970 \change_deleted 1075283030 1597699984
33971 The 
33972 \change_inserted 1075283030 1597699985
33973 Included 
33974 \change_inserted -970929547 1515110187
33975 bibliograph
33976 \change_deleted 1075283030 1597699987
33977 y
33978 \change_inserted 1075283030 1597699987
33979 ies
33980 \change_inserted -970929547 1515110187
33981  cannot be formatted:
33982  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file)
33983 \change_inserted 1075283030 1597700117
33984 ,
33985  using the 
33986 \begin_inset Flex Code
33987 status collapsed
33988
33989 \begin_layout Plain Layout
33990
33991 \change_inserted 1075283030 1597700120
33992 biblioentry
33993 \change_unchanged
33994
33995 \end_layout
33996
33997 \end_inset
33998
33999  tag
34000 \change_inserted -970929547 1515110187
34001 .
34002 \change_inserted 1075283030 1597700092
34003
34004 \end_layout
34005
34006 \begin_layout Standard
34007
34008 \change_inserted 1075283030 1597700112
34009 When the bibliographic entries are manually inserted into the 
34010 \change_deleted 34634807 1620057319
34011 LyX
34012 \change_inserted 34634807 1620057319
34013 \SpecialChar LyX
34014
34015 \change_inserted 1075283030 1597700112
34016  document as Bibliography Items,
34017  the user deals with formatting 
34018 \change_unchanged
34019 them
34020 \change_inserted 1075283030 1597700112
34021 self:
34022  there is no attempt of parsing what the user wrote,
34023  the string is directly used (with the 
34024 \begin_inset Flex Code
34025 status collapsed
34026
34027 \begin_layout Plain Layout
34028
34029 \change_inserted 1075283030 1597700076
34030 bibliomixed
34031 \change_unchanged
34032
34033 \end_layout
34034
34035 \end_inset
34036
34037  tag).
34038  
34039 \change_unchanged
34040
34041 \end_layout
34042
34043 \begin_layout Chapter
34044 Including External Material
34045 \begin_inset CommandInset label
34046 LatexCommand label
34047 name "chap:Including-External-Material"
34048
34049 \end_inset
34050
34051
34052 \end_layout
34053
34054 \begin_layout Standard
34055 \begin_inset Box Shadowbox
34056 position "t"
34057 hor_pos "c"
34058 has_inner_box 1
34059 inner_pos "t"
34060 use_parbox 0
34061 use_makebox 0
34062 width "100col%"
34063 special "none"
34064 height "1in"
34065 height_special "totalheight"
34066 thickness "0.4pt"
34067 separation "3pt"
34068 shadowsize "4pt"
34069 framecolor "black"
34070 backgroundcolor "none"
34071 status open
34072
34073 \begin_layout Plain Layout
34074 WARNING:
34075  This portion of the documentation has not been updated for some time.
34076  We certainly hope that it is still accurate,
34077  but there are no guarantees.
34078 \end_layout
34079
34080 \end_inset
34081
34082
34083 \end_layout
34084
34085 \begin_layout Standard
34086 The use of material from sources external to \SpecialChar LyX
34087  is covered in detail in the 
34088 \emph on
34089 Embedded Objects
34090 \emph default
34091  manual.
34092  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
34093 \end_layout
34094
34095 \begin_layout Section
34096 How does it work?
34097 \end_layout
34098
34099 \begin_layout Standard
34100 The external material feature is based on the concept of a 
34101 \emph on
34102 template
34103 \emph default
34104 .
34105  A template is a specification of how \SpecialChar LyX
34106  should interface with a certain kind of material.
34107  As bundled,
34108  \SpecialChar LyX
34109  comes with predefined templates for Xfig figures,
34110  various raster format images,
34111  chess diagrams,
34112  and LilyPond music notation.
34113  You can check the actual list by using the menu 
34114 \begin_inset Flex Noun
34115 status collapsed
34116
34117 \begin_layout Plain Layout
34118 Insert\SpecialChar menuseparator
34119 File\SpecialChar menuseparator
34120 External Material
34121 \end_layout
34122
34123 \end_inset
34124
34125 .
34126  Furthermore,
34127  it is possible to roll your own template to support a specific kind of material.
34128  Later we'll describe in more detail what is involved,
34129  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
34130  version.
34131 \end_layout
34132
34133 \begin_layout Standard
34134 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.
34135  For example,
34136  consider the case of a figure produced with 
34137 \begin_inset Flex Code
34138 status collapsed
34139
34140 \begin_layout Plain Layout
34141 Xfig
34142 \end_layout
34143
34144 \end_inset
34145
34146 .
34147  The Xfig application itself works on an original file with the 
34148 \begin_inset Flex Code
34149 status collapsed
34150
34151 \begin_layout Plain Layout
34152 .fig
34153 \end_layout
34154
34155 \end_inset
34156
34157  extension.
34158  Within Xfig,
34159  you create and change your figure,
34160  and when you are done,
34161  you save the 
34162 \begin_inset Flex Code
34163 status collapsed
34164
34165 \begin_layout Plain Layout
34166 fig
34167 \end_layout
34168
34169 \end_inset
34170
34171 -file.
34172  When you want to include the figure in your document,
34173  you invoke 
34174 \begin_inset Flex Code
34175 status collapsed
34176
34177 \begin_layout Plain Layout
34178 transfig
34179 \end_layout
34180
34181 \end_inset
34182
34183  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
34184  file.
34185  In this case,
34186  the 
34187 \begin_inset Flex Code
34188 status collapsed
34189
34190 \begin_layout Plain Layout
34191 .fig
34192 \end_layout
34193
34194 \end_inset
34195
34196  file is the original file,
34197  and the PostScript file is the produced file.
34198 \end_layout
34199
34200 \begin_layout Standard
34201 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
34202  Furthermore,
34203  it provides us with the flexibility that is needed to support multiple export formats.
34204  For instance,
34205  in the case of a plain text file,
34206  it is not exactly an award-winning idea to include the figure as raw PostScript.
34207  Instead,
34208  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.
34209  The external material management allows you to do this,
34210  because it is parametrized on the different export formats that \SpecialChar LyX
34211  supports.
34212 \end_layout
34213
34214 \begin_layout Standard
34215 Besides supporting the production of different products according to the exported format,
34216  it supports tight integration with editing and viewing applications.
34217  In the case of an Xfig figure,
34218  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
34219 ,
34220  and also preview the produced PostScript file with Ghostview with another click.
34221  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
34222  In this way,
34223  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
34224  and ultimately be more productive.
34225 \end_layout
34226
34227 \begin_layout Section
34228 The external template configuration files
34229 \end_layout
34230
34231 \begin_layout Standard
34232 It is relatively easy to add custom external template definitions to \SpecialChar LyX
34233 .
34234  However,
34235  be aware that doing this in an careless manner most probably 
34236 \emph on
34237 will
34238 \emph default
34239  introduce an easily exploitable security hole.
34240  So before you do this,
34241  please read the discussion about security in 
34242 \begin_inset CommandInset ref
34243 LatexCommand ref
34244 reference "sec:Security-discussion"
34245 nolink "false"
34246
34247 \end_inset
34248
34249 .
34250 \end_layout
34251
34252 \begin_layout Standard
34253 Having said that,
34254  we encourage you to submit any interesting templates that you create.
34255  
34256 \end_layout
34257
34258 \begin_layout Standard
34259 The external templates are defined in the 
34260 \begin_inset Flex Code
34261 status collapsed
34262
34263 \begin_layout Plain Layout
34264 *.xtemplate
34265 \end_layout
34266
34267 \end_inset
34268
34269  files that are stored in the 
34270 \begin_inset Flex Code
34271 status collapsed
34272
34273 \begin_layout Plain Layout
34274 LyXDir/lib/xtemplates/
34275 \end_layout
34276
34277 \end_inset
34278
34279  directory.
34280  Each template is defined in a file of its own.
34281  You can place your own templates in 
34282 \begin_inset Flex Code
34283 status collapsed
34284
34285 \begin_layout Plain Layout
34286 UserDir/xtemplates/
34287 \end_layout
34288
34289 \end_inset
34290
34291  or copy existing templates to that directory in order to modify them.
34292 \end_layout
34293
34294 \begin_layout Standard
34295 A typical template looks like this:
34296 \end_layout
34297
34298 \begin_layout LyX-Code
34299 Template XFig
34300 \end_layout
34301
34302 \begin_layout LyX-Code
34303 GuiName "XFig:
34304  $$AbsOrRelPathParent$$Basename"
34305 \end_layout
34306
34307 \begin_layout LyX-Code
34308 HelpText
34309 \end_layout
34310
34311 \begin_layout LyX-Code
34312 An XFig figure.
34313 \end_layout
34314
34315 \begin_layout LyX-Code
34316 HelpTextEnd
34317 \end_layout
34318
34319 \begin_layout LyX-Code
34320 InputFormat fig
34321 \end_layout
34322
34323 \begin_layout LyX-Code
34324 FileFilter "*.fig"
34325 \end_layout
34326
34327 \begin_layout LyX-Code
34328 AutomaticProduction true
34329 \end_layout
34330
34331 \begin_layout LyX-Code
34332 Transform Rotate
34333 \end_layout
34334
34335 \begin_layout LyX-Code
34336 Transform Resize
34337 \end_layout
34338
34339 \begin_layout LyX-Code
34340 Format LaTeX
34341 \end_layout
34342
34343 \begin_layout LyX-Code
34344 TransformCommand Rotate RotationLatexCommand
34345 \end_layout
34346
34347 \begin_layout LyX-Code
34348 TransformCommand Resize ResizeLatexCommand
34349 \end_layout
34350
34351 \begin_layout LyX-Code
34352 Product "$$RotateFront$$ResizeFront
34353 \end_layout
34354
34355 \begin_layout LyX-Code
34356          
34357 \backslash
34358
34359 \backslash
34360 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
34361 \end_layout
34362
34363 \begin_layout LyX-Code
34364          $$ResizeBack$$RotateBack"
34365 \end_layout
34366
34367 \begin_layout LyX-Code
34368 UpdateFormat pstex
34369 \end_layout
34370
34371 \begin_layout LyX-Code
34372 UpdateResult "$$AbsPath$$Basename.pstex_t"
34373 \end_layout
34374
34375 \begin_layout LyX-Code
34376 Requirement "graphicx"
34377 \end_layout
34378
34379 \begin_layout LyX-Code
34380 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
34381 \end_layout
34382
34383 \begin_layout LyX-Code
34384 ReferencedFile latex "$$AbsPath$$Basename.eps"
34385 \end_layout
34386
34387 \begin_layout LyX-Code
34388 ReferencedFile dvi "$$AbsPath$$Basename.eps"
34389 \end_layout
34390
34391 \begin_layout LyX-Code
34392 FormatEnd
34393 \end_layout
34394
34395 \begin_layout LyX-Code
34396 Format PDFLaTeX
34397 \end_layout
34398
34399 \begin_layout LyX-Code
34400 TransformCommand Rotate RotationLatexCommand
34401 \end_layout
34402
34403 \begin_layout LyX-Code
34404 TransformCommand Resize ResizeLatexCommand
34405 \end_layout
34406
34407 \begin_layout LyX-Code
34408 Product "$$RotateFront$$ResizeFront
34409 \end_layout
34410
34411 \begin_layout LyX-Code
34412          
34413 \backslash
34414
34415 \backslash
34416 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
34417 \end_layout
34418
34419 \begin_layout LyX-Code
34420          $$ResizeBack$$RotateBack"
34421 \end_layout
34422
34423 \begin_layout LyX-Code
34424 UpdateFormat pdftex
34425 \end_layout
34426
34427 \begin_layout LyX-Code
34428 UpdateResult "$$AbsPath$$Basename.pdftex_t"
34429 \end_layout
34430
34431 \begin_layout LyX-Code
34432 Requirement "graphicx"
34433 \end_layout
34434
34435 \begin_layout LyX-Code
34436 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
34437 \end_layout
34438
34439 \begin_layout LyX-Code
34440 ReferencedFile latex "$$AbsPath$$Basename.pdf"
34441 \end_layout
34442
34443 \begin_layout LyX-Code
34444 FormatEnd
34445 \end_layout
34446
34447 \begin_layout LyX-Code
34448 Format Ascii
34449 \end_layout
34450
34451 \begin_layout LyX-Code
34452 Product "[XFig:
34453  $$FName]"
34454 \end_layout
34455
34456 \begin_layout LyX-Code
34457 FormatEnd
34458 \end_layout
34459
34460 \begin_layout LyX-Code
34461 Format DocBook
34462 \end_layout
34463
34464 \begin_layout LyX-Code
34465 Product "<graphic fileref=
34466 \backslash
34467 "$$AbsOrRelPathMaster$$Basename.eps
34468 \backslash
34469 ">
34470 \end_layout
34471
34472 \begin_layout LyX-Code
34473          </graphic>"
34474 \end_layout
34475
34476 \begin_layout LyX-Code
34477 UpdateFormat eps
34478 \end_layout
34479
34480 \begin_layout LyX-Code
34481 UpdateResult "$$AbsPath$$Basename.eps"
34482 \end_layout
34483
34484 \begin_layout LyX-Code
34485 ReferencedFile docbook "$$AbsPath$$Basename.eps"
34486 \end_layout
34487
34488 \begin_layout LyX-Code
34489 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
34490 \end_layout
34491
34492 \begin_layout LyX-Code
34493 FormatEnd
34494 \end_layout
34495
34496 \begin_layout LyX-Code
34497 TemplateEnd
34498 \end_layout
34499
34500 \begin_layout Standard
34501 As you can see,
34502  the template is enclosed in 
34503 \begin_inset Flex Code
34504 status collapsed
34505
34506 \begin_layout Plain Layout
34507 Template
34508 \end_layout
34509
34510 \end_inset
34511
34512  \SpecialChar ldots
34513  
34514 \begin_inset Flex Code
34515 status collapsed
34516
34517 \begin_layout Plain Layout
34518 TemplateEnd
34519 \end_layout
34520
34521 \end_inset
34522
34523 .
34524  It contains a header specifying some general settings and,
34525  for each supported primary document file format,
34526  a section 
34527 \begin_inset Flex Code
34528 status collapsed
34529
34530 \begin_layout Plain Layout
34531 Format
34532 \end_layout
34533
34534 \end_inset
34535
34536  \SpecialChar ldots
34537  
34538 \begin_inset Flex Code
34539 status collapsed
34540
34541 \begin_layout Plain Layout
34542 FormatEnd
34543 \end_layout
34544
34545 \end_inset
34546
34547 .
34548 \end_layout
34549
34550 \begin_layout Subsection
34551 The template header
34552 \end_layout
34553
34554 \begin_layout Description
34555 \begin_inset Flex Code
34556 status collapsed
34557
34558 \begin_layout Plain Layout
34559 AutomaticProduction
34560 \begin_inset space ~
34561 \end_inset
34562
34563 true|false
34564 \end_layout
34565
34566 \end_inset
34567
34568  Whether the file represented by the template must be generated by \SpecialChar LyX
34569 .
34570  This command must occur exactly once.
34571 \end_layout
34572
34573 \begin_layout Description
34574 \begin_inset Flex Code
34575 status collapsed
34576
34577 \begin_layout Plain Layout
34578 FileFilter
34579 \begin_inset space ~
34580 \end_inset
34581
34582 <pattern>
34583 \end_layout
34584
34585 \end_inset
34586
34587  A glob pattern that is used in the file dialog to filter out the desired files.
34588  If there is more than one possible file extension (e.
34589 \begin_inset space \thinspace{}
34590 \end_inset
34591
34592 g.
34593 \begin_inset space \space{}
34594 \end_inset
34595
34596 tgif has 
34597 \begin_inset Flex Code
34598 status collapsed
34599
34600 \begin_layout Plain Layout
34601 .obj
34602 \end_layout
34603
34604 \end_inset
34605
34606  and 
34607 \begin_inset Flex Code
34608 status collapsed
34609
34610 \begin_layout Plain Layout
34611 .tgo
34612 \end_layout
34613
34614 \end_inset
34615
34616 ),
34617  use something like 
34618 \begin_inset Flex Code
34619 status collapsed
34620
34621 \begin_layout Plain Layout
34622 "*.{obj,tgo}"
34623 \end_layout
34624
34625 \end_inset
34626
34627 .
34628  This command must occur exactly once.
34629 \end_layout
34630
34631 \begin_layout Description
34632 \begin_inset Flex Code
34633 status collapsed
34634
34635 \begin_layout Plain Layout
34636 GuiName
34637 \begin_inset space ~
34638 \end_inset
34639
34640 <guiname>
34641 \end_layout
34642
34643 \end_inset
34644
34645  The text that is displayed on the button.
34646  This command must occur exactly once.
34647 \end_layout
34648
34649 \begin_layout Description
34650 \begin_inset Flex Code
34651 status collapsed
34652
34653 \begin_layout Plain Layout
34654 HelpText
34655 \begin_inset space ~
34656 \end_inset
34657
34658 <text>
34659 \begin_inset space ~
34660 \end_inset
34661
34662 HelpTextEnd
34663 \end_layout
34664
34665 \end_inset
34666
34667  The help text that is used in the External dialog.
34668  Provide enough information to explain to the user just what the template can provide him with.
34669  This command must occur exactly once.
34670 \end_layout
34671
34672 \begin_layout Description
34673 \begin_inset Flex Code
34674 status collapsed
34675
34676 \begin_layout Plain Layout
34677 InputFormat
34678 \begin_inset space ~
34679 \end_inset
34680
34681 <format>
34682 \end_layout
34683
34684 \end_inset
34685
34686  The file format of the original file.
34687  This must be the name of a format that is known to \SpecialChar LyX
34688  (see 
34689 \begin_inset CommandInset ref
34690 LatexCommand ref
34691 reference "sec:Formats"
34692 nolink "false"
34693
34694 \end_inset
34695
34696 ).
34697  Use 
34698 \begin_inset Quotes eld
34699 \end_inset
34700
34701
34702 \begin_inset Flex Code
34703 status collapsed
34704
34705 \begin_layout Plain Layout
34706 *
34707 \end_layout
34708
34709 \end_inset
34710
34711
34712 \begin_inset Quotes erd
34713 \end_inset
34714
34715  if the template can handle original files of more than one format.
34716  \SpecialChar LyX
34717  will attempt to interrogate the file itself in order to deduce its format in this case.
34718  This command must occur exactly once.
34719 \end_layout
34720
34721 \begin_layout Description
34722 \begin_inset Flex Code
34723 status collapsed
34724
34725 \begin_layout Plain Layout
34726 Template
34727 \begin_inset space ~
34728 \end_inset
34729
34730 <id>
34731 \end_layout
34732
34733 \end_inset
34734
34735  A unique name for the template.
34736  It must not contain substitution macros (see below).
34737 \end_layout
34738
34739 \begin_layout Description
34740 \begin_inset Flex Code
34741 status collapsed
34742
34743 \begin_layout Plain Layout
34744 Transform
34745 \begin_inset space ~
34746 \end_inset
34747
34748 Rotate|Resize|Clip|Extra
34749 \end_layout
34750
34751 \end_inset
34752
34753  This command specifies which transformations are supported by this template.
34754  It may occur zero or more times.
34755  This command enables the corresponding tabs in the external dialog.
34756  Each 
34757 \begin_inset Flex Code
34758 status collapsed
34759
34760 \begin_layout Plain Layout
34761 Transform
34762 \end_layout
34763
34764 \end_inset
34765
34766  command must have either a corresponding 
34767 \begin_inset Flex Code
34768 status collapsed
34769
34770 \begin_layout Plain Layout
34771 TransformCommand
34772 \end_layout
34773
34774 \end_inset
34775
34776  or a 
34777 \begin_inset Flex Code
34778 status collapsed
34779
34780 \begin_layout Plain Layout
34781 TransformOption
34782 \end_layout
34783
34784 \end_inset
34785
34786  command in the 
34787 \begin_inset Flex Code
34788 status collapsed
34789
34790 \begin_layout Plain Layout
34791 Format
34792 \end_layout
34793
34794 \end_inset
34795
34796  section.
34797  Otherwise the transformation will not be supported by that format.
34798 \end_layout
34799
34800 \begin_layout Subsection
34801 The Format section
34802 \end_layout
34803
34804 \begin_layout Description
34805 \begin_inset Flex Code
34806 status collapsed
34807
34808 \begin_layout Plain Layout
34809 Format
34810 \begin_inset space ~
34811 \end_inset
34812
34813 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
34814 \end_layout
34815
34816 \end_inset
34817
34818  The primary document file format that this format definition is for.
34819  Not every template has a sensible representation in all document file formats.
34820  Please define nevertheless a 
34821 \begin_inset Flex Code
34822 status collapsed
34823
34824 \begin_layout Plain Layout
34825 Format
34826 \end_layout
34827
34828 \end_inset
34829
34830  section for all templates.
34831  Use a dummy text when no representation is available.
34832  Then you can at least see a reference to the external material in the exported document.
34833 \end_layout
34834
34835 \begin_layout Description
34836 \begin_inset Flex Code
34837 status collapsed
34838
34839 \begin_layout Plain Layout
34840 Option
34841 \begin_inset space ~
34842 \end_inset
34843
34844 <name>
34845 \begin_inset space ~
34846 \end_inset
34847
34848 <value>
34849 \end_layout
34850
34851 \end_inset
34852
34853  This command defines an additional macro 
34854 \begin_inset Flex Code
34855 status collapsed
34856
34857 \begin_layout Plain Layout
34858 $$<name>
34859 \end_layout
34860
34861 \end_inset
34862
34863  for substitution in 
34864 \begin_inset Flex Code
34865 status collapsed
34866
34867 \begin_layout Plain Layout
34868 Product
34869 \end_layout
34870
34871 \end_inset
34872
34873 .
34874  
34875 \begin_inset Flex Code
34876 status collapsed
34877
34878 \begin_layout Plain Layout
34879 <value>
34880 \end_layout
34881
34882 \end_inset
34883
34884  itself may contain substitution macros.
34885  The advantage over using 
34886 \begin_inset Flex Code
34887 status collapsed
34888
34889 \begin_layout Plain Layout
34890 <value>
34891 \end_layout
34892
34893 \end_inset
34894
34895  directly in 
34896 \begin_inset Flex Code
34897 status collapsed
34898
34899 \begin_layout Plain Layout
34900 Product
34901 \end_layout
34902
34903 \end_inset
34904
34905  is that the substituted value of 
34906 \begin_inset Flex Code
34907 status collapsed
34908
34909 \begin_layout Plain Layout
34910 $$<name>
34911 \end_layout
34912
34913 \end_inset
34914
34915  is sanitized so that it is a valid optional argument in the document format.
34916  This command may occur zero or more times.
34917 \end_layout
34918
34919 \begin_layout Description
34920 \begin_inset Flex Code
34921 status collapsed
34922
34923 \begin_layout Plain Layout
34924 Product
34925 \begin_inset space ~
34926 \end_inset
34927
34928 <text>
34929 \end_layout
34930
34931 \end_inset
34932
34933  The text that is inserted in the exported document.
34934  This is actually the most important command and can be quite complex.
34935  This command must occur exactly once.
34936 \end_layout
34937
34938 \begin_layout Description
34939 \begin_inset Flex Code
34940 status collapsed
34941
34942 \begin_layout Plain Layout
34943 Preamble
34944 \begin_inset space ~
34945 \end_inset
34946
34947 <name>
34948 \end_layout
34949
34950 \end_inset
34951
34952  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
34953  preamble.
34954  It has to be defined using 
34955 \begin_inset Flex Code
34956 status collapsed
34957
34958 \begin_layout Plain Layout
34959 PreambleDef
34960 \end_layout
34961
34962 \end_inset
34963
34964  \SpecialChar ldots
34965  
34966 \begin_inset Flex Code
34967 status collapsed
34968
34969 \begin_layout Plain Layout
34970 PreambleDefEnd
34971 \end_layout
34972
34973 \end_inset
34974
34975 .
34976  This command may occur zero or more times.
34977 \end_layout
34978
34979 \begin_layout Description
34980 \begin_inset Flex Code
34981 status collapsed
34982
34983 \begin_layout Plain Layout
34984 ReferencedFile
34985 \begin_inset space ~
34986 \end_inset
34987
34988 <format>
34989 \begin_inset space ~
34990 \end_inset
34991
34992 <filename>
34993 \end_layout
34994
34995 \end_inset
34996
34997  This command denotes files that are created by the conversion process and are needed for a particular export format.
34998  If the filename is relative,
34999  it is interpreted relative to the master document.
35000  This command may be given zero or more times.
35001 \end_layout
35002
35003 \begin_layout Description
35004 \begin_inset Flex Code
35005 status collapsed
35006
35007 \begin_layout Plain Layout
35008 Requirement
35009 \begin_inset space ~
35010 \end_inset
35011
35012 <package>
35013 \end_layout
35014
35015 \end_inset
35016
35017  The name of a required \SpecialChar LaTeX
35018  package.
35019  The package is included via 
35020 \begin_inset Flex Code
35021 status collapsed
35022
35023 \begin_layout Plain Layout
35024
35025 \backslash
35026 usepackage{}
35027 \end_layout
35028
35029 \end_inset
35030
35031  in the \SpecialChar LaTeX
35032  preamble.
35033  This command may occur zero or more times.
35034 \end_layout
35035
35036 \begin_layout Description
35037 \begin_inset Flex Code
35038 status collapsed
35039
35040 \begin_layout Plain Layout
35041 TransformCommand
35042 \begin_inset space ~
35043 \end_inset
35044
35045 Rotate
35046 \begin_inset space ~
35047 \end_inset
35048
35049 RotationLatexCommand
35050 \end_layout
35051
35052 \end_inset
35053
35054  This command specifies that the built in \SpecialChar LaTeX
35055  command should be used for rotation.
35056  This command may occur once or not at all.
35057 \end_layout
35058
35059 \begin_layout Description
35060 \begin_inset Flex Code
35061 status collapsed
35062
35063 \begin_layout Plain Layout
35064 TransformCommand
35065 \begin_inset space ~
35066 \end_inset
35067
35068 Resize
35069 \begin_inset space ~
35070 \end_inset
35071
35072 ResizeLatexCommand
35073 \end_layout
35074
35075 \end_inset
35076
35077  This command specifies that the built in \SpecialChar LaTeX
35078  command should be used for resizing.
35079  This command may occur once or not at all.
35080 \end_layout
35081
35082 \begin_layout Description
35083 \begin_inset Flex Code
35084 status collapsed
35085
35086 \begin_layout Plain Layout
35087 TransformOption
35088 \begin_inset space ~
35089 \end_inset
35090
35091 Rotate
35092 \begin_inset space ~
35093 \end_inset
35094
35095 RotationLatexOption
35096 \end_layout
35097
35098 \end_inset
35099
35100  This command specifies that rotation is done via an optional argument.
35101  This command may occur once or not at all.
35102 \end_layout
35103
35104 \begin_layout Description
35105 \begin_inset Flex Code
35106 status collapsed
35107
35108 \begin_layout Plain Layout
35109 TransformOption
35110 \begin_inset space ~
35111 \end_inset
35112
35113 Resize
35114 \begin_inset space ~
35115 \end_inset
35116
35117 ResizeLatexOption
35118 \end_layout
35119
35120 \end_inset
35121
35122  This command specifies that resizing is done via an optional argument.
35123  This command may occur once or not at all.
35124 \end_layout
35125
35126 \begin_layout Description
35127 \begin_inset Flex Code
35128 status collapsed
35129
35130 \begin_layout Plain Layout
35131 TransformOption
35132 \begin_inset space ~
35133 \end_inset
35134
35135 Clip
35136 \begin_inset space ~
35137 \end_inset
35138
35139 ClipLatexOption
35140 \end_layout
35141
35142 \end_inset
35143
35144  This command specifies that clipping is done via an optional argument.
35145  This command may occur once or not at all.
35146 \end_layout
35147
35148 \begin_layout Description
35149 \begin_inset Flex Code
35150 status collapsed
35151
35152 \begin_layout Plain Layout
35153 TransformOption
35154 \begin_inset space ~
35155 \end_inset
35156
35157 Extra
35158 \begin_inset space ~
35159 \end_inset
35160
35161 ExtraLatexOption
35162 \end_layout
35163
35164 \end_inset
35165
35166  This command specifies that an extra optional argument is used.
35167  This command may occur once or not at all.
35168 \end_layout
35169
35170 \begin_layout Description
35171 \begin_inset Flex Code
35172 status collapsed
35173
35174 \begin_layout Plain Layout
35175 UpdateFormat
35176 \begin_inset space ~
35177 \end_inset
35178
35179 <format>
35180 \end_layout
35181
35182 \end_inset
35183
35184  The file format of the converted file.
35185  This must be the name of a format that is known to \SpecialChar LyX
35186  (see the 
35187 \begin_inset Flex Noun
35188 status collapsed
35189
35190 \begin_layout Plain Layout
35191 Tools\SpecialChar menuseparator
35192 Preferences\SpecialChar menuseparator
35193 File Handling\SpecialChar menuseparator
35194 File Format
35195 \end_layout
35196
35197 \end_inset
35198
35199  dialog).
35200  This command must occur exactly once.
35201  If the resulting file format is PDF,
35202  you need to specify the format 
35203 \begin_inset Flex Code
35204 status collapsed
35205
35206 \begin_layout Plain Layout
35207 pdf6
35208 \end_layout
35209
35210 \end_inset
35211
35212 .
35213  This is the PDF format used for including graphics.
35214  The other defined PDF formats are for document export.
35215 \end_layout
35216
35217 \begin_layout Description
35218 \begin_inset Flex Code
35219 status collapsed
35220
35221 \begin_layout Plain Layout
35222 UpdateResult
35223 \begin_inset space ~
35224 \end_inset
35225
35226 <filename>
35227 \end_layout
35228
35229 \end_inset
35230
35231  The file name of the converted file.
35232  The file name must be absolute.
35233  This command must occur exactly once.
35234 \end_layout
35235
35236 \begin_layout Subsection
35237 Preamble definitions
35238 \end_layout
35239
35240 \begin_layout Standard
35241 The external template configuration file may contain additional preamble definitions enclosed by 
35242 \begin_inset Flex Code
35243 status collapsed
35244
35245 \begin_layout Plain Layout
35246 PreambleDef
35247 \end_layout
35248
35249 \end_inset
35250
35251  \SpecialChar ldots
35252  
35253 \begin_inset Flex Code
35254 status collapsed
35255
35256 \begin_layout Plain Layout
35257 PreambleDefEnd
35258 \end_layout
35259
35260 \end_inset
35261
35262 .
35263  They can be used by the templates in the 
35264 \begin_inset Flex Code
35265 status collapsed
35266
35267 \begin_layout Plain Layout
35268 Format
35269 \end_layout
35270
35271 \end_inset
35272
35273  section.
35274 \end_layout
35275
35276 \begin_layout Section
35277 The substitution mechanism
35278 \end_layout
35279
35280 \begin_layout Standard
35281 When the external material facility invokes an external program,
35282  it is done on the basis of a command defined in the template configuration file.
35283  These commands can contain various macros that are expanded before execution.
35284  Execution always take place in the directory of the containing document.
35285 \end_layout
35286
35287 \begin_layout Standard
35288 Also,
35289  whenever external material is to be displayed,
35290  the name will be produced by the substitution mechanism,
35291  and most other commands in the template definition support substitution as well.
35292 \end_layout
35293
35294 \begin_layout Standard
35295 The available macros are the following:
35296 \end_layout
35297
35298 \begin_layout Description
35299 \begin_inset Flex Code
35300 status collapsed
35301
35302 \begin_layout Plain Layout
35303 $$AbsOrRelPathMaster
35304 \end_layout
35305
35306 \end_inset
35307
35308  The file path,
35309  absolute or relative to the master \SpecialChar LyX
35310  document.
35311 \end_layout
35312
35313 \begin_layout Description
35314 \begin_inset Flex Code
35315 status collapsed
35316
35317 \begin_layout Plain Layout
35318 $$AbsOrRelPathParent
35319 \end_layout
35320
35321 \end_inset
35322
35323  The file path,
35324  absolute or relative to the \SpecialChar LyX
35325  document.
35326 \end_layout
35327
35328 \begin_layout Description
35329 \begin_inset Flex Code
35330 status collapsed
35331
35332 \begin_layout Plain Layout
35333 $$AbsPath
35334 \end_layout
35335
35336 \end_inset
35337
35338  The absolute file path.
35339 \end_layout
35340
35341 \begin_layout Description
35342 \begin_inset Flex Code
35343 status collapsed
35344
35345 \begin_layout Plain Layout
35346 $$Basename
35347 \end_layout
35348
35349 \end_inset
35350
35351  The filename without path and without the extension.
35352 \end_layout
35353
35354 \begin_layout Description
35355 \begin_inset Flex Code
35356 status collapsed
35357
35358 \begin_layout Plain Layout
35359 $$Contents(
35360 \begin_inset Quotes eld
35361 \end_inset
35362
35363 filename.ext
35364 \begin_inset Quotes erd
35365 \end_inset
35366
35367 )
35368 \end_layout
35369
35370 \end_inset
35371
35372  This macro will expand to the contents of the file with the name 
35373 \begin_inset Flex Code
35374 status collapsed
35375
35376 \begin_layout Plain Layout
35377 filename.ext
35378 \end_layout
35379
35380 \end_inset
35381
35382 .
35383 \end_layout
35384
35385 \begin_layout Description
35386 \begin_inset Flex Code
35387 status collapsed
35388
35389 \begin_layout Plain Layout
35390 $$Extension
35391 \end_layout
35392
35393 \end_inset
35394
35395  The file extension (including the dot).
35396 \end_layout
35397
35398 \begin_layout Description
35399 \begin_inset Flex Code
35400 status collapsed
35401
35402 \begin_layout Plain Layout
35403 $$pngOrjpg
35404 \end_layout
35405
35406 \end_inset
35407
35408  This will be the string 
35409 \begin_inset Quotes eld
35410 \end_inset
35411
35412 jpg
35413 \begin_inset Quotes erd
35414 \end_inset
35415
35416  if the file is in JPEG format,
35417  otherwise it will be the string 
35418 \begin_inset Quotes eld
35419 \end_inset
35420
35421 png
35422 \begin_inset Quotes erd
35423 \end_inset
35424
35425 .
35426  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
35427  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
35428  output format.
35429 \end_layout
35430
35431 \begin_layout Description
35432 \begin_inset Flex Code
35433 status collapsed
35434
35435 \begin_layout Plain Layout
35436 $$FName
35437 \end_layout
35438
35439 \end_inset
35440
35441  The filename of the file specified in the external material dialog.
35442  This is either an absolute name,
35443  or it is relative to the \SpecialChar LyX
35444  document.
35445 \end_layout
35446
35447 \begin_layout Description
35448 \begin_inset Flex Code
35449 status collapsed
35450
35451 \begin_layout Plain Layout
35452 $$FPath
35453 \end_layout
35454
35455 \end_inset
35456
35457  The path part of 
35458 \begin_inset Flex Code
35459 status collapsed
35460
35461 \begin_layout Plain Layout
35462 $$FName
35463 \end_layout
35464
35465 \end_inset
35466
35467  (absolute name or relative to the \SpecialChar LyX
35468  document).
35469 \end_layout
35470
35471 \begin_layout Description
35472 \begin_inset Flex Code
35473 status collapsed
35474
35475 \begin_layout Plain Layout
35476 $$RelPathMaster
35477 \end_layout
35478
35479 \end_inset
35480
35481  The file path,
35482  relative to the master \SpecialChar LyX
35483  document.
35484 \end_layout
35485
35486 \begin_layout Description
35487 \begin_inset Flex Code
35488 status collapsed
35489
35490 \begin_layout Plain Layout
35491 $$RelPathParent
35492 \end_layout
35493
35494 \end_inset
35495
35496  The file path,
35497  relative to the \SpecialChar LyX
35498  document.
35499 \end_layout
35500
35501 \begin_layout Description
35502 \begin_inset Flex Code
35503 status collapsed
35504
35505 \begin_layout Plain Layout
35506 $$Sysdir
35507 \end_layout
35508
35509 \end_inset
35510
35511  This macro will expand to the absolute path of the system directory.
35512  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
35513 .
35514 \end_layout
35515
35516 \begin_layout Description
35517 \begin_inset Flex Code
35518 status collapsed
35519
35520 \begin_layout Plain Layout
35521 $$Tempname
35522 \end_layout
35523
35524 \end_inset
35525
35526  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
35527  or the external material insertion deleted.
35528 \end_layout
35529
35530 \begin_layout Standard
35531 All path macros contain a trailing directory separator,
35532  so you can construct e.
35533 \begin_inset space \thinspace{}
35534 \end_inset
35535
35536 g.
35537 \begin_inset space \space{}
35538 \end_inset
35539
35540 the absolute filename with 
35541 \begin_inset Flex Code
35542 status collapsed
35543
35544 \begin_layout Plain Layout
35545 $$AbsPath$$Basename$$Extension
35546 \end_layout
35547
35548 \end_inset
35549
35550 .
35551 \end_layout
35552
35553 \begin_layout Standard
35554 The macros above are substituted in all commands unless otherwise noted.
35555  The command 
35556 \begin_inset Flex Code
35557 status collapsed
35558
35559 \begin_layout Plain Layout
35560 Product
35561 \end_layout
35562
35563 \end_inset
35564
35565  supports additionally the following substitutions if they are enabled by the 
35566 \begin_inset Flex Code
35567 status collapsed
35568
35569 \begin_layout Plain Layout
35570 Transform
35571 \end_layout
35572
35573 \end_inset
35574
35575  and 
35576 \begin_inset Flex Code
35577 status collapsed
35578
35579 \begin_layout Plain Layout
35580 TransformCommand
35581 \end_layout
35582
35583 \end_inset
35584
35585  commands:
35586 \end_layout
35587
35588 \begin_layout Description
35589 \begin_inset Flex Code
35590 status collapsed
35591
35592 \begin_layout Plain Layout
35593 $$ResizeFront
35594 \end_layout
35595
35596 \end_inset
35597
35598  The front part of the resize command.
35599 \end_layout
35600
35601 \begin_layout Description
35602 \begin_inset Flex Code
35603 status collapsed
35604
35605 \begin_layout Plain Layout
35606 $$ResizeBack
35607 \end_layout
35608
35609 \end_inset
35610
35611  The back part of the resize command.
35612 \end_layout
35613
35614 \begin_layout Description
35615 \begin_inset Flex Code
35616 status collapsed
35617
35618 \begin_layout Plain Layout
35619 $$RotateFront
35620 \end_layout
35621
35622 \end_inset
35623
35624  The front part of the rotation command.
35625 \end_layout
35626
35627 \begin_layout Description
35628 \begin_inset Flex Code
35629 status collapsed
35630
35631 \begin_layout Plain Layout
35632 $$RotateBack
35633 \end_layout
35634
35635 \end_inset
35636
35637  The back part of the rotation command.
35638 \end_layout
35639
35640 \begin_layout Standard
35641 The value string of the 
35642 \begin_inset Flex Code
35643 status collapsed
35644
35645 \begin_layout Plain Layout
35646 Option
35647 \end_layout
35648
35649 \end_inset
35650
35651  command supports additionally the following substitutions if they are enabled by the 
35652 \begin_inset Flex Code
35653 status collapsed
35654
35655 \begin_layout Plain Layout
35656 Transform
35657 \end_layout
35658
35659 \end_inset
35660
35661  and 
35662 \begin_inset Flex Code
35663 status collapsed
35664
35665 \begin_layout Plain Layout
35666 TransformOption
35667 \end_layout
35668
35669 \end_inset
35670
35671  commands:
35672 \end_layout
35673
35674 \begin_layout Description
35675 \begin_inset Flex Code
35676 status collapsed
35677
35678 \begin_layout Plain Layout
35679 $$Clip
35680 \end_layout
35681
35682 \end_inset
35683
35684  The clip option.
35685 \end_layout
35686
35687 \begin_layout Description
35688 \begin_inset Flex Code
35689 status collapsed
35690
35691 \begin_layout Plain Layout
35692 $$Extra
35693 \end_layout
35694
35695 \end_inset
35696
35697  The extra option.
35698 \end_layout
35699
35700 \begin_layout Description
35701 \begin_inset Flex Code
35702 status collapsed
35703
35704 \begin_layout Plain Layout
35705 $$Resize
35706 \end_layout
35707
35708 \end_inset
35709
35710  The resize option.
35711 \end_layout
35712
35713 \begin_layout Description
35714 \begin_inset Flex Code
35715 status collapsed
35716
35717 \begin_layout Plain Layout
35718 $$Rotate
35719 \end_layout
35720
35721 \end_inset
35722
35723  The rotation option.
35724 \end_layout
35725
35726 \begin_layout Standard
35727 You may ask why there are so many path macros.
35728  There are mainly two reasons:
35729 \end_layout
35730
35731 \begin_layout Enumerate
35732 Relative and absolute file names should remain relative or absolute,
35733  respectively.
35734  Users may have reasons to prefer either form.
35735  Relative names are useful for portable documents that should work on different machines,
35736  for example.
35737  Absolute names may be required by some programs.
35738 \end_layout
35739
35740 \begin_layout Enumerate
35741 \SpecialChar LaTeX
35742  treats relative file names differently than \SpecialChar LyX
35743  and other programs in nested included files.
35744  For \SpecialChar LyX
35745 ,
35746  a relative file name is always relative to the document that contains the file name.
35747  For \SpecialChar LaTeX
35748 ,
35749  it is always relative to the master document.
35750  These two definitions are identical if you have only one document,
35751  but differ if you have a master document that includes part documents.
35752  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
35753 .
35754  Fortunately \SpecialChar LyX
35755  does this automatically for you if you choose the right macros.
35756 \end_layout
35757
35758 \begin_layout Standard
35759 So which path macro should be used in new template definitions?
35760  The rule is not difficult:
35761 \end_layout
35762
35763 \begin_layout Itemize
35764 Use 
35765 \begin_inset Flex Code
35766 status collapsed
35767
35768 \begin_layout Plain Layout
35769 $$AbsPath
35770 \end_layout
35771
35772 \end_inset
35773
35774  if an absolute path is required.
35775 \end_layout
35776
35777 \begin_layout Itemize
35778 Use 
35779 \begin_inset Flex Code
35780 status collapsed
35781
35782 \begin_layout Plain Layout
35783 $$AbsOrRelPathMaster
35784 \end_layout
35785
35786 \end_inset
35787
35788  if the substituted string is some kind of \SpecialChar LaTeX
35789  input.
35790 \end_layout
35791
35792 \begin_layout Itemize
35793 Else use 
35794 \begin_inset Flex Code
35795 status collapsed
35796
35797 \begin_layout Plain Layout
35798 $$AbsOrRelPathParent
35799 \end_layout
35800
35801 \end_inset
35802
35803  in order to preserve the user's choice.
35804 \end_layout
35805
35806 \begin_layout Standard
35807 There are special cases where this rule does not work and e.
35808 \begin_inset space \thinspace{}
35809 \end_inset
35810
35811 g.
35812 \begin_inset space \space{}
35813 \end_inset
35814
35815 relative names are needed,
35816  but normally it will work just fine.
35817  One example for such a case is the command 
35818 \begin_inset Flex Code
35819 status collapsed
35820
35821 \begin_layout Plain Layout
35822 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
35823 \end_layout
35824
35825 \end_inset
35826
35827  in the XFig template above:
35828  We can't use the absolute name because the copier for 
35829 \begin_inset Flex Code
35830 status collapsed
35831
35832 \begin_layout Plain Layout
35833 .pstex_t
35834 \end_layout
35835
35836 \end_inset
35837
35838  files needs the relative name in order to rewrite the file content.
35839 \end_layout
35840
35841 \begin_layout Section
35842 Security discussion
35843 \begin_inset CommandInset label
35844 LatexCommand label
35845 name "sec:Security-discussion"
35846
35847 \end_inset
35848
35849
35850 \end_layout
35851
35852 \begin_layout Standard
35853 The external material feature interfaces with a lot of external programs and does so automatically,
35854  so we have to consider the security implications of this.
35855  In particular,
35856  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
35857  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
35858  This is something we definitely want to avoid.
35859 \end_layout
35860
35861 \begin_layout Standard
35862 However,
35863  since the external program commands are specified in the template configuration file only,
35864  there are no security issues if \SpecialChar LyX
35865  is properly configured with safe templates only.
35866  This is so because the external programs are invoked with the 
35867 \begin_inset Flex Code
35868 status collapsed
35869
35870 \begin_layout Plain Layout
35871 execvp
35872 \end_layout
35873
35874 \end_inset
35875
35876 -system call rather than the 
35877 \begin_inset Flex Code
35878 status collapsed
35879
35880 \begin_layout Plain Layout
35881 system
35882 \end_layout
35883
35884 \end_inset
35885
35886  system-call,
35887  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
35888 \end_layout
35889
35890 \begin_layout Standard
35891 This also implies that you are restricted in what command strings you can use in the external material templates.
35892  In particular,
35893  pipes and redirection are not readily available.
35894  This has to be so if \SpecialChar LyX
35895  should remain safe.
35896  If you want to use some of the shell features,
35897  you should write a safe script to do this in a controlled manner,
35898  and then invoke the script from the command string.
35899  
35900 \end_layout
35901
35902 \begin_layout Standard
35903 It is possible to design a template that interacts directly with the shell,
35904  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
35905  we generally recommend that you only use safe scripts that work with the 
35906 \begin_inset Flex Code
35907 status collapsed
35908
35909 \begin_layout Plain Layout
35910 execvp
35911 \end_layout
35912
35913 \end_inset
35914
35915  system call in a controlled manner.
35916  Of course,
35917  for use in a controlled environment,
35918  it can be tempting to just fall back to use ordinary shell scripts.
35919  If you do so,
35920  be aware that you 
35921 \emph on
35922 will
35923 \emph default
35924  provide an easily exploitable security hole in your system.
35925  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
35926  distribution,
35927  although we do encourage people to submit new templates in the open source tradition.
35928  But \SpecialChar LyX
35929  as shipped from the official distribution channels will never have unsafe templates.
35930 \end_layout
35931
35932 \begin_layout Standard
35933 Including external material provides a lot of power,
35934  and you have to be careful not to introduce security hazards with this power.
35935  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
35936  So if you do not fully understand the issues,
35937  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
35938  development team if you have any questions about whether a given template is safe or not.
35939  And do this before you use it in an uncontrolled environment.
35940 \end_layout
35941
35942 \begin_layout Chapter
35943 \start_of_appendix
35944 List of supported \SpecialChar LyX
35945  functions to be used in layouts
35946 \begin_inset CommandInset label
35947 LatexCommand label
35948 name "chap:List-of-functions"
35949
35950 \end_inset
35951
35952
35953 \end_layout
35954
35955 \begin_layout Standard
35956 \align center
35957 \begin_inset Tabular
35958 <lyxtabular version="3" rows="11" columns="8">
35959 <features tabularvalignment="middle">
35960 <column alignment="left" valignment="top">
35961 <column alignment="left" valignment="top">
35962 <column alignment="left" valignment="top">
35963 <column alignment="left" valignment="top">
35964 <column alignment="left" valignment="top">
35965 <column alignment="left" valignment="top">
35966 <column alignment="left" valignment="top">
35967 <column alignment="left" valignment="top">
35968 <row>
35969 <cell alignment="left" valignment="top" usebox="none">
35970 \begin_inset Text
35971
35972 \begin_layout Plain Layout
35973 accents
35974 \end_layout
35975
35976 \end_inset
35977 </cell>
35978 <cell alignment="left" valignment="top" usebox="none">
35979 \begin_inset Text
35980
35981 \begin_layout Plain Layout
35982 booktabs
35983 \end_layout
35984
35985 \end_inset
35986 </cell>
35987 <cell alignment="left" valignment="top" usebox="none">
35988 \begin_inset Text
35989
35990 \begin_layout Plain Layout
35991 feyn
35992 \end_layout
35993
35994 \end_inset
35995 </cell>
35996 <cell alignment="left" valignment="top" usebox="none">
35997 \begin_inset Text
35998
35999 \begin_layout Plain Layout
36000 listings
36001 \end_layout
36002
36003 \end_inset
36004 </cell>
36005 <cell alignment="center" valignment="top" usebox="none">
36006 \begin_inset Text
36007
36008 \begin_layout Plain Layout
36009 natbib
36010 \end_layout
36011
36012 \end_inset
36013 </cell>
36014 <cell alignment="center" valignment="top" usebox="none">
36015 \begin_inset Text
36016
36017 \begin_layout Plain Layout
36018
36019 \change_deleted 193502281 1695765491
36020 rotfloat
36021 \change_inserted 193502281 1695765500
36022 rsphrase
36023 \change_unchanged
36024
36025 \end_layout
36026
36027 \end_inset
36028 </cell>
36029 <cell alignment="center" valignment="top" usebox="none">
36030 \begin_inset Text
36031
36032 \begin_layout Plain Layout
36033 tfrupee
36034 \end_layout
36035
36036 \end_inset
36037 </cell>
36038 <cell alignment="center" valignment="top" usebox="none">
36039 \begin_inset Text
36040
36041 \begin_layout Plain Layout
36042 wasysym
36043 \end_layout
36044
36045 \end_inset
36046 </cell>
36047 </row>
36048 <row>
36049 <cell alignment="left" valignment="top" usebox="none">
36050 \begin_inset Text
36051
36052 \begin_layout Plain Layout
36053 amsbsy
36054 \end_layout
36055
36056 \end_inset
36057 </cell>
36058 <cell alignment="left" valignment="top" usebox="none">
36059 \begin_inset Text
36060
36061 \begin_layout Plain Layout
36062 calc
36063 \end_layout
36064
36065 \end_inset
36066 </cell>
36067 <cell alignment="left" valignment="top" usebox="none">
36068 \begin_inset Text
36069
36070 \begin_layout Plain Layout
36071 fixltx2e
36072 \end_layout
36073
36074 \end_inset
36075 </cell>
36076 <cell alignment="left" valignment="top" usebox="none">
36077 \begin_inset Text
36078
36079 \begin_layout Plain Layout
36080 longtable
36081 \end_layout
36082
36083 \end_inset
36084 </cell>
36085 <cell alignment="center" valignment="top" usebox="none">
36086 \begin_inset Text
36087
36088 \begin_layout Plain Layout
36089 nomencl
36090 \end_layout
36091
36092 \end_inset
36093 </cell>
36094 <cell alignment="center" valignment="top" usebox="none">
36095 \begin_inset Text
36096
36097 \begin_layout Plain Layout
36098
36099 \change_deleted 193502281 1695765498
36100 rsphrase
36101 \change_inserted 193502281 1695765504
36102 setspace
36103 \change_unchanged
36104
36105 \end_layout
36106
36107 \end_inset
36108 </cell>
36109 <cell alignment="center" valignment="top" usebox="none">
36110 \begin_inset Text
36111
36112 \begin_layout Plain Layout
36113 tipa
36114 \end_layout
36115
36116 \end_inset
36117 </cell>
36118 <cell alignment="center" valignment="top" usebox="none">
36119 \begin_inset Text
36120
36121 \begin_layout Plain Layout
36122 wrapfig
36123 \end_layout
36124
36125 \end_inset
36126 </cell>
36127 </row>
36128 <row>
36129 <cell alignment="left" valignment="top" usebox="none">
36130 \begin_inset Text
36131
36132 \begin_layout Plain Layout
36133 amscd
36134 \end_layout
36135
36136 \end_inset
36137 </cell>
36138 <cell alignment="left" valignment="top" usebox="none">
36139 \begin_inset Text
36140
36141 \begin_layout Plain Layout
36142 CJK
36143 \end_layout
36144
36145 \end_inset
36146 </cell>
36147 <cell alignment="left" valignment="top" usebox="none">
36148 \begin_inset Text
36149
36150 \begin_layout Plain Layout
36151 float
36152 \end_layout
36153
36154 \end_inset
36155 </cell>
36156 <cell alignment="left" valignment="top" usebox="none">
36157 \begin_inset Text
36158
36159 \begin_layout Plain Layout
36160 lyxskak
36161 \end_layout
36162
36163 \end_inset
36164 </cell>
36165 <cell alignment="center" valignment="top" usebox="none">
36166 \begin_inset Text
36167
36168 \begin_layout Plain Layout
36169
36170 \change_deleted 193502281 1695765346
36171 pdfcolmk
36172 \change_inserted 193502281 1695765405
36173 pdfpages
36174 \change_unchanged
36175
36176 \end_layout
36177
36178 \end_inset
36179 </cell>
36180 <cell alignment="center" valignment="top" usebox="none">
36181 \begin_inset Text
36182
36183 \begin_layout Plain Layout
36184
36185 \change_deleted 193502281 1695765503
36186 setspace
36187 \change_inserted 193502281 1695765508
36188 shapepar
36189 \change_unchanged
36190
36191 \end_layout
36192
36193 \end_inset
36194 </cell>
36195 <cell alignment="center" valignment="top" usebox="none">
36196 \begin_inset Text
36197
36198 \begin_layout Plain Layout
36199 tipx
36200 \end_layout
36201
36202 \end_inset
36203 </cell>
36204 <cell alignment="center" valignment="top" usebox="none">
36205 \begin_inset Text
36206
36207 \begin_layout Plain Layout
36208 xargs
36209 \end_layout
36210
36211 \end_inset
36212 </cell>
36213 </row>
36214 <row>
36215 <cell alignment="left" valignment="top" usebox="none">
36216 \begin_inset Text
36217
36218 \begin_layout Plain Layout
36219 amsmath
36220 \end_layout
36221
36222 \end_inset
36223 </cell>
36224 <cell alignment="left" valignment="top" usebox="none">
36225 \begin_inset Text
36226
36227 \begin_layout Plain Layout
36228 color
36229 \end_layout
36230
36231 \end_inset
36232 </cell>
36233 <cell alignment="left" valignment="top" usebox="none">
36234 \begin_inset Text
36235
36236 \begin_layout Plain Layout
36237 framed
36238 \end_layout
36239
36240 \end_inset
36241 </cell>
36242 <cell alignment="left" valignment="top" usebox="none">
36243 \begin_inset Text
36244
36245 \begin_layout Plain Layout
36246 makeidx
36247 \end_layout
36248
36249 \end_inset
36250 </cell>
36251 <cell alignment="center" valignment="top" usebox="none">
36252 \begin_inset Text
36253
36254 \begin_layout Plain Layout
36255
36256 \change_deleted 193502281 1695765403
36257 pdfpages
36258 \change_inserted 193502281 1695765410
36259 pifont
36260 \change_unchanged
36261
36262 \end_layout
36263
36264 \end_inset
36265 </cell>
36266 <cell alignment="center" valignment="top" usebox="none">
36267 \begin_inset Text
36268
36269 \begin_layout Plain Layout
36270
36271 \change_deleted 193502281 1695765507
36272 shapepar
36273 \change_inserted 193502281 1695765512
36274 slashed
36275 \change_unchanged
36276
36277 \end_layout
36278
36279 \end_inset
36280 </cell>
36281 <cell alignment="center" valignment="top" usebox="none">
36282 \begin_inset Text
36283
36284 \begin_layout Plain Layout
36285 tone
36286 \end_layout
36287
36288 \end_inset
36289 </cell>
36290 <cell alignment="center" valignment="top" usebox="none">
36291 \begin_inset Text
36292
36293 \begin_layout Plain Layout
36294 xcolor
36295 \end_layout
36296
36297 \end_inset
36298 </cell>
36299 </row>
36300 <row>
36301 <cell alignment="left" valignment="top" usebox="none">
36302 \begin_inset Text
36303
36304 \begin_layout Plain Layout
36305 amssymb
36306 \end_layout
36307
36308 \end_inset
36309 </cell>
36310 <cell alignment="left" valignment="top" usebox="none">
36311 \begin_inset Text
36312
36313 \begin_layout Plain Layout
36314 covington
36315 \end_layout
36316
36317 \end_inset
36318 </cell>
36319 <cell alignment="left" valignment="top" usebox="none">
36320 \begin_inset Text
36321
36322 \begin_layout Plain Layout
36323 graphicx
36324 \end_layout
36325
36326 \end_inset
36327 </cell>
36328 <cell alignment="left" valignment="top" usebox="none">
36329 \begin_inset Text
36330
36331 \begin_layout Plain Layout
36332 marvosym
36333 \end_layout
36334
36335 \end_inset
36336 </cell>
36337 <cell alignment="center" valignment="top" usebox="none">
36338 \begin_inset Text
36339
36340 \begin_layout Plain Layout
36341
36342 \change_deleted 193502281 1695765408
36343 pifont
36344 \change_inserted 193502281 1695765466
36345 pmboxdraw
36346 \change_unchanged
36347
36348 \end_layout
36349
36350 \end_inset
36351 </cell>
36352 <cell alignment="center" valignment="top" usebox="none">
36353 \begin_inset Text
36354
36355 \begin_layout Plain Layout
36356
36357 \change_deleted 193502281 1695765511
36358 slashed
36359 \change_inserted 193502281 1695765515
36360 soul
36361 \change_unchanged
36362
36363 \end_layout
36364
36365 \end_inset
36366 </cell>
36367 <cell alignment="center" valignment="top" usebox="none">
36368 \begin_inset Text
36369
36370 \begin_layout Plain Layout
36371 txfonts
36372 \end_layout
36373
36374 \end_inset
36375 </cell>
36376 <cell alignment="center" valignment="top" usebox="none">
36377 \begin_inset Text
36378
36379 \begin_layout Plain Layout
36380 xy
36381 \end_layout
36382
36383 \end_inset
36384 </cell>
36385 </row>
36386 <row>
36387 <cell alignment="left" valignment="top" usebox="none">
36388 \begin_inset Text
36389
36390 \begin_layout Plain Layout
36391 amstext
36392 \end_layout
36393
36394 \end_inset
36395 </cell>
36396 <cell alignment="left" valignment="top" usebox="none">
36397 \begin_inset Text
36398
36399 \begin_layout Plain Layout
36400 csquotes
36401 \end_layout
36402
36403 \end_inset
36404 </cell>
36405 <cell alignment="left" valignment="top" usebox="none">
36406 \begin_inset Text
36407
36408 \begin_layout Plain Layout
36409 hhline
36410 \end_layout
36411
36412 \end_inset
36413 </cell>
36414 <cell alignment="left" valignment="top" usebox="none">
36415 \begin_inset Text
36416
36417 \begin_layout Plain Layout
36418 mathdesign
36419 \end_layout
36420
36421 \end_inset
36422 </cell>
36423 <cell alignment="center" valignment="top" usebox="none">
36424 \begin_inset Text
36425
36426 \begin_layout Plain Layout
36427
36428 \change_deleted 193502281 1695765464
36429 pmboxdraw
36430 \change_inserted 193502281 1695765470
36431 polyglossia
36432 \change_unchanged
36433
36434 \end_layout
36435
36436 \end_inset
36437 </cell>
36438 <cell alignment="center" valignment="top" usebox="none">
36439 \begin_inset Text
36440
36441 \begin_layout Plain Layout
36442
36443 \change_deleted 193502281 1695765514
36444 soul
36445 \change_inserted 193502281 1695765520
36446 splitidx
36447 \change_unchanged
36448
36449 \end_layout
36450
36451 \end_inset
36452 </cell>
36453 <cell alignment="center" valignment="top" usebox="none">
36454 \begin_inset Text
36455
36456 \begin_layout Plain Layout
36457 ulem
36458 \end_layout
36459
36460 \end_inset
36461 </cell>
36462 <cell alignment="center" valignment="top" usebox="none">
36463 \begin_inset Text
36464
36465 \begin_layout Plain Layout
36466 yhmath
36467 \end_layout
36468
36469 \end_inset
36470 </cell>
36471 </row>
36472 <row>
36473 <cell alignment="left" valignment="top" usebox="none">
36474 \begin_inset Text
36475
36476 \begin_layout Plain Layout
36477 amsthm
36478 \end_layout
36479
36480 \end_inset
36481 </cell>
36482 <cell alignment="left" valignment="top" usebox="none">
36483 \begin_inset Text
36484
36485 \begin_layout Plain Layout
36486 dvipost
36487 \end_layout
36488
36489 \end_inset
36490 </cell>
36491 <cell alignment="left" valignment="top" usebox="none">
36492 \begin_inset Text
36493
36494 \begin_layout Plain Layout
36495 hyperref
36496 \end_layout
36497
36498 \end_inset
36499 </cell>
36500 <cell alignment="left" valignment="top" usebox="none">
36501 \begin_inset Text
36502
36503 \begin_layout Plain Layout
36504 mathdots
36505 \end_layout
36506
36507 \end_inset
36508 </cell>
36509 <cell alignment="center" valignment="top" usebox="none">
36510 \begin_inset Text
36511
36512 \begin_layout Plain Layout
36513
36514 \change_deleted 193502281 1695765469
36515 polyglossia
36516 \change_inserted 193502281 1695765474
36517 prettyref
36518 \change_unchanged
36519
36520 \end_layout
36521
36522 \end_inset
36523 </cell>
36524 <cell alignment="center" valignment="top" usebox="none">
36525 \begin_inset Text
36526
36527 \begin_layout Plain Layout
36528
36529 \change_deleted 193502281 1695765519
36530 splitidx
36531 \change_inserted 193502281 1695765524
36532 subfig
36533 \change_unchanged
36534
36535 \end_layout
36536
36537 \end_inset
36538 </cell>
36539 <cell alignment="center" valignment="top" usebox="none">
36540 \begin_inset Text
36541
36542 \begin_layout Plain Layout
36543 undertilde
36544 \end_layout
36545
36546 \end_inset
36547 </cell>
36548 <cell alignment="center" valignment="top" usebox="none">
36549 \begin_inset Text
36550
36551 \begin_layout Plain Layout
36552
36553 \end_layout
36554
36555 \end_inset
36556 </cell>
36557 </row>
36558 <row>
36559 <cell alignment="left" valignment="top" usebox="none">
36560 \begin_inset Text
36561
36562 \begin_layout Plain Layout
36563 array
36564 \end_layout
36565
36566 \end_inset
36567 </cell>
36568 <cell alignment="left" valignment="top" usebox="none">
36569 \begin_inset Text
36570
36571 \begin_layout Plain Layout
36572 endnotes
36573 \end_layout
36574
36575 \end_inset
36576 </cell>
36577 <cell alignment="left" valignment="top" usebox="none">
36578 \begin_inset Text
36579
36580 \begin_layout Plain Layout
36581 ifsym
36582 \end_layout
36583
36584 \end_inset
36585 </cell>
36586 <cell alignment="left" valignment="top" usebox="none">
36587 \begin_inset Text
36588
36589 \begin_layout Plain Layout
36590 mathrsfs
36591 \end_layout
36592
36593 \end_inset
36594 </cell>
36595 <cell alignment="center" valignment="top" usebox="none">
36596 \begin_inset Text
36597
36598 \begin_layout Plain Layout
36599
36600 \change_deleted 193502281 1695765473
36601 prettyref
36602 \change_inserted 193502281 1695765477
36603 pxfonts
36604 \change_unchanged
36605
36606 \end_layout
36607
36608 \end_inset
36609 </cell>
36610 <cell alignment="center" valignment="top" usebox="none">
36611 \begin_inset Text
36612
36613 \begin_layout Plain Layout
36614
36615 \change_deleted 193502281 1695765523
36616 subfig
36617 \change_inserted 193502281 1695765528
36618 subscript
36619 \change_unchanged
36620
36621 \end_layout
36622
36623 \end_inset
36624 </cell>
36625 <cell alignment="center" valignment="top" usebox="none">
36626 \begin_inset Text
36627
36628 \begin_layout Plain Layout
36629 units
36630 \end_layout
36631
36632 \end_inset
36633 </cell>
36634 <cell alignment="center" valignment="top" usebox="none">
36635 \begin_inset Text
36636
36637 \begin_layout Plain Layout
36638
36639 \end_layout
36640
36641 \end_inset
36642 </cell>
36643 </row>
36644 <row>
36645 <cell alignment="left" valignment="top" usebox="none">
36646 \begin_inset Text
36647
36648 \begin_layout Plain Layout
36649 ascii
36650 \end_layout
36651
36652 \end_inset
36653 </cell>
36654 <cell alignment="left" valignment="top" usebox="none">
36655 \begin_inset Text
36656
36657 \begin_layout Plain Layout
36658 enumitem
36659 \end_layout
36660
36661 \end_inset
36662 </cell>
36663 <cell alignment="left" valignment="top" usebox="none">
36664 \begin_inset Text
36665
36666 \begin_layout Plain Layout
36667 ifthen
36668 \end_layout
36669
36670 \end_inset
36671 </cell>
36672 <cell alignment="left" valignment="top" usebox="none">
36673 \begin_inset Text
36674
36675 \begin_layout Plain Layout
36676 mhchem
36677 \end_layout
36678
36679 \end_inset
36680 </cell>
36681 <cell alignment="center" valignment="top" usebox="none">
36682 \begin_inset Text
36683
36684 \begin_layout Plain Layout
36685
36686 \change_deleted 193502281 1695765476
36687 pxfonts
36688 \change_inserted 193502281 1695765482
36689 refstyle
36690 \change_unchanged
36691
36692 \end_layout
36693
36694 \end_inset
36695 </cell>
36696 <cell alignment="center" valignment="top" usebox="none">
36697 \begin_inset Text
36698
36699 \begin_layout Plain Layout
36700
36701 \change_deleted 193502281 1695765527
36702 subscript
36703 \change_inserted 193502281 1695765557
36704 tcolorbox
36705 \change_unchanged
36706
36707 \end_layout
36708
36709 \end_inset
36710 </cell>
36711 <cell alignment="center" valignment="top" usebox="none">
36712 \begin_inset Text
36713
36714 \begin_layout Plain Layout
36715 url
36716 \end_layout
36717
36718 \end_inset
36719 </cell>
36720 <cell alignment="center" valignment="top" usebox="none">
36721 \begin_inset Text
36722
36723 \begin_layout Plain Layout
36724
36725 \end_layout
36726
36727 \end_inset
36728 </cell>
36729 </row>
36730 <row>
36731 <cell alignment="left" valignment="top" usebox="none">
36732 \begin_inset Text
36733
36734 \begin_layout Plain Layout
36735 bbding
36736 \end_layout
36737
36738 \end_inset
36739 </cell>
36740 <cell alignment="left" valignment="top" usebox="none">
36741 \begin_inset Text
36742
36743 \begin_layout Plain Layout
36744 esint
36745 \end_layout
36746
36747 \end_inset
36748 </cell>
36749 <cell alignment="left" valignment="top" usebox="none">
36750 \begin_inset Text
36751
36752 \begin_layout Plain Layout
36753 jurabib
36754 \end_layout
36755
36756 \end_inset
36757 </cell>
36758 <cell alignment="left" valignment="top" usebox="none">
36759 \begin_inset Text
36760
36761 \begin_layout Plain Layout
36762 multicol
36763 \end_layout
36764
36765 \end_inset
36766 </cell>
36767 <cell alignment="center" valignment="top" usebox="none">
36768 \begin_inset Text
36769
36770 \begin_layout Plain Layout
36771
36772 \change_deleted 193502281 1695765481
36773 refstyle
36774 \change_inserted 193502281 1695765485
36775 rotating
36776 \change_unchanged
36777
36778 \end_layout
36779
36780 \end_inset
36781 </cell>
36782 <cell alignment="center" valignment="top" usebox="none">
36783 \begin_inset Text
36784
36785 \begin_layout Plain Layout
36786 textcomp
36787 \end_layout
36788
36789 \end_inset
36790 </cell>
36791 <cell alignment="center" valignment="top" usebox="none">
36792 \begin_inset Text
36793
36794 \begin_layout Plain Layout
36795 varioref
36796 \end_layout
36797
36798 \end_inset
36799 </cell>
36800 <cell alignment="center" valignment="top" usebox="none">
36801 \begin_inset Text
36802
36803 \begin_layout Plain Layout
36804
36805 \end_layout
36806
36807 \end_inset
36808 </cell>
36809 </row>
36810 <row>
36811 <cell alignment="center" valignment="top" usebox="none">
36812 \begin_inset Text
36813
36814 \begin_layout Plain Layout
36815 bm
36816 \end_layout
36817
36818 \end_inset
36819 </cell>
36820 <cell alignment="center" valignment="top" usebox="none">
36821 \begin_inset Text
36822
36823 \begin_layout Plain Layout
36824 fancybox
36825 \end_layout
36826
36827 \end_inset
36828 </cell>
36829 <cell alignment="center" valignment="top" usebox="none">
36830 \begin_inset Text
36831
36832 \begin_layout Plain Layout
36833 latexsym
36834 \end_layout
36835
36836 \end_inset
36837 </cell>
36838 <cell alignment="center" valignment="top" usebox="none">
36839 \begin_inset Text
36840
36841 \begin_layout Plain Layout
36842 multirow
36843 \end_layout
36844
36845 \end_inset
36846 </cell>
36847 <cell alignment="center" valignment="top" usebox="none">
36848 \begin_inset Text
36849
36850 \begin_layout Plain Layout
36851
36852 \change_deleted 193502281 1695765484
36853 rotating
36854 \change_inserted 193502281 1695765493
36855 rotfloat
36856 \change_unchanged
36857
36858 \end_layout
36859
36860 \end_inset
36861 </cell>
36862 <cell alignment="center" valignment="top" usebox="none">
36863 \begin_inset Text
36864
36865 \begin_layout Plain Layout
36866 textgreek
36867 \end_layout
36868
36869 \end_inset
36870 </cell>
36871 <cell alignment="center" valignment="top" usebox="none">
36872 \begin_inset Text
36873
36874 \begin_layout Plain Layout
36875 verbatim
36876 \end_layout
36877
36878 \end_inset
36879 </cell>
36880 <cell alignment="center" valignment="top" usebox="none">
36881 \begin_inset Text
36882
36883 \begin_layout Plain Layout
36884
36885 \end_layout
36886
36887 \end_inset
36888 </cell>
36889 </row>
36890 </lyxtabular>
36891
36892 \end_inset
36893
36894
36895 \end_layout
36896
36897 \begin_layout Chapter
36898 Names of available colors to be used in layouts
36899 \begin_inset CommandInset label
36900 LatexCommand label
36901 name "chap:Names-of-colors"
36902
36903 \end_inset
36904
36905
36906 \end_layout
36907
36908 \begin_layout Standard
36909 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
36910  preferences.
36911 \end_layout
36912
36913 \begin_layout Section
36914 Color functions
36915 \end_layout
36916
36917 \begin_layout Standard
36918 The following are no real colors,
36919  but rather act on color definitions:
36920 \end_layout
36921
36922 \begin_layout Description
36923 ignore The color is ignored
36924 \end_layout
36925
36926 \begin_layout Description
36927 inherit The color is inherited
36928 \end_layout
36929
36930 \begin_layout Description
36931 none
36932 \family roman
36933 \series medium
36934 \shape up
36935 \size normal
36936 \emph off
36937 \bar no
36938 \strikeout off
36939 \uuline off
36940 \uwave off
36941 \noun off
36942 \color none
36943  No particular color – clear or default
36944 \end_layout
36945
36946 \begin_layout Section
36947 Static colors
36948 \end_layout
36949
36950 \begin_layout Standard
36951 These are fixed colors that cannot be customized
36952 \change_inserted -712698321 1607683177
36953 .
36954  Please do 
36955 \emph on
36956 not
36957 \emph default
36958  use these colors in layout definitions,
36959  since they will not work well with some color themes (such as dark themes)
36960 \change_unchanged
36961 :
36962 \end_layout
36963
36964 \begin_layout Description
36965 black
36966 \end_layout
36967
36968 \begin_layout Description
36969 white
36970 \end_layout
36971
36972 \begin_layout Description
36973 blue
36974 \end_layout
36975
36976 \begin_layout Description
36977 brown
36978 \end_layout
36979
36980 \begin_layout Description
36981 cyan
36982 \end_layout
36983
36984 \begin_layout Description
36985 darkgray
36986 \end_layout
36987
36988 \begin_layout Description
36989 gray
36990 \end_layout
36991
36992 \begin_layout Description
36993 green
36994 \end_layout
36995
36996 \begin_layout Description
36997 lightgray
36998 \end_layout
36999
37000 \begin_layout Description
37001 lime
37002 \end_layout
37003
37004 \begin_layout Description
37005 magenta
37006 \end_layout
37007
37008 \begin_layout Description
37009 olive
37010 \end_layout
37011
37012 \begin_layout Description
37013 orange
37014 \end_layout
37015
37016 \begin_layout Description
37017 pink
37018 \end_layout
37019
37020 \begin_layout Description
37021 purple
37022 \end_layout
37023
37024 \begin_layout Description
37025 red
37026 \end_layout
37027
37028 \begin_layout Description
37029 teal
37030 \end_layout
37031
37032 \begin_layout Description
37033 violet
37034 \end_layout
37035
37036 \begin_layout Description
37037 yellow
37038 \end_layout
37039
37040 \begin_layout Section
37041 Dynamic colors
37042 \end_layout
37043
37044 \begin_layout Standard
37045 These are the colors allocated to specific elements in 
37046 \begin_inset Info
37047 type  "menu"
37048 arg   "dialog-show prefs"
37049 \end_inset
37050
37051 :
37052 \end_layout
37053
37054 \begin_layout Description
37055 added_space Added space color
37056 \end_layout
37057
37058 \begin_layout Description
37059 addedtext Added text color
37060 \end_layout
37061
37062 \begin_layout Description
37063 appendix Appendix marker color
37064 \end_layout
37065
37066 \begin_layout Description
37067 background Background color
37068 \change_inserted 5863208 1681507589
37069
37070 \end_layout
37071
37072 \begin_layout Description
37073
37074 \change_inserted 5863208 1681507597
37075 bookmark Bookmark indicator color
37076 \change_unchanged
37077
37078 \end_layout
37079
37080 \begin_layout Description
37081 bottomarea Bottom area color
37082 \end_layout
37083
37084 \begin_layout Description
37085 branchlabel Label color for branches
37086 \end_layout
37087
37088 \begin_layout Description
37089 buttonbg Color used for button background
37090 \end_layout
37091
37092 \begin_layout Description
37093 buttonframe Color for inset button frames
37094 \end_layout
37095
37096 \begin_layout Description
37097 buttonhoverbg Color used for button background under focus
37098 \change_inserted -712698321 1681555554
37099
37100 \end_layout
37101
37102 \begin_layout Description
37103
37104 \change_inserted -712698321 1681555554
37105 buttonhoverbg_broken Color used for broken inset button under focus 
37106 \change_unchanged
37107
37108 \end_layout
37109
37110 \begin_layout Description
37111 changebar Changebar color
37112 \end_layout
37113
37114 \begin_layout Description
37115 changedtextauthor1 Changed text color author 1
37116 \end_layout
37117
37118 \begin_layout Description
37119 changedtextauthor2 Changed text color author 2
37120 \end_layout
37121
37122 \begin_layout Description
37123 changedtextauthor3 Changed text color author 3
37124 \end_layout
37125
37126 \begin_layout Description
37127 changedtextauthor4 Changed text color author 4
37128 \end_layout
37129
37130 \begin_layout Description
37131 changedtextauthor5 Changed text color author 5
37132 \change_inserted 5863208 1681507402
37133
37134 \end_layout
37135
37136 \begin_layout Description
37137
37138 \change_inserted 5863208 1681507414
37139 changedtextcomparison Changed text color document comparison (workarea)
37140 \change_unchanged
37141
37142 \end_layout
37143
37144 \begin_layout Description
37145 collapsible Collapsible insets text color
37146 \end_layout
37147
37148 \begin_layout Description
37149 collapsibleframe Collapsible insets framecolor
37150 \end_layout
37151
37152 \begin_layout Description
37153 command Text color for command insets
37154 \end_layout
37155
37156 \begin_layout Description
37157 commandbg Background color for command insets
37158 \end_layout
37159
37160 \begin_layout Description
37161 commandframe Frame color for command insets
37162 \change_inserted 5863208 1681507735
37163
37164 \end_layout
37165
37166 \begin_layout Description
37167
37168 \change_inserted 5863208 1681507880
37169 command_broken Text color for broken
37170 \change_inserted -712698321 1681555620
37171  
37172 \change_inserted 5863208 1681507880
37173 (
37174 \change_deleted -712698321 1681555620
37175 -
37176 \change_inserted 5863208 1681507880
37177 reference) insets 
37178 \end_layout
37179
37180 \begin_layout Description
37181
37182 \change_inserted 5863208 1681507827
37183 commandbg_broken Background color for broken insets
37184 \end_layout
37185
37186 \begin_layout Description
37187
37188 \change_inserted 5863208 1681507835
37189 commandframe_broken Frame color for broken insets 
37190 \end_layout
37191
37192 \begin_layout Description
37193
37194 \change_deleted -712698321 1681555548
37195 buttonhoverbg_broken Color used for broken inset button under focus 
37196 \change_unchanged
37197
37198 \end_layout
37199
37200 \begin_layout Description
37201 comment Label color for comments
37202 \end_layout
37203
37204 \begin_layout Description
37205 commentbg Background color of comments
37206 \end_layout
37207
37208 \begin_layout Description
37209 cursor Cursor color
37210 \end_layout
37211
37212 \begin_layout Description
37213 deletedtext Deleted text color
37214 \end_layout
37215
37216 \begin_layout Description
37217 deletedtextmodifier Deleted text modifying color
37218 \change_inserted 5863208 1681507525
37219  (for adjusting the 
37220 \change_deleted -712698321 1681555611
37221 brightnes
37222 \change_inserted -712698321 1681555611
37223 brightness
37224 \change_inserted 5863208 1681507525
37225 )
37226 \change_unchanged
37227
37228 \end_layout
37229
37230 \begin_layout Description
37231 depthbar Color for the depth bars in the margin
37232 \end_layout
37233
37234 \begin_layout Description
37235 eolmarker End of line marker color
37236 \end_layout
37237
37238 \begin_layout Description
37239 error Color of the \SpecialChar LaTeX
37240  error box
37241 \end_layout
37242
37243 \begin_layout Description
37244 footlabel Label color for footnotes
37245 \end_layout
37246
37247 \begin_layout Description
37248 foreground Foreground color
37249 \end_layout
37250
37251 \begin_layout Description
37252 graphicsbg Graphics inset background color
37253 \end_layout
37254
37255 \begin_layout Description
37256 greyedoutbg Background color of greyedout inset
37257 \end_layout
37258
37259 \begin_layout Description
37260 greyedoutlabel Label color for greyedout insets
37261 \end_layout
37262
37263 \begin_layout Description
37264 greyedouttext Color for greyedout inset text
37265 \end_layout
37266
37267 \begin_layout Description
37268 indexlabel Label color for index insets
37269 \end_layout
37270
37271 \begin_layout Description
37272 inlinecompletion Inline completion color
37273 \end_layout
37274
37275 \begin_layout Description
37276 insetbg Inset marker background color
37277 \end_layout
37278
37279 \begin_layout Description
37280 insetframe Inset marker frame color
37281 \end_layout
37282
37283 \begin_layout Description
37284 language Color for marking foreign language words
37285 \end_layout
37286
37287 \begin_layout Description
37288 latex Text color in \SpecialChar LaTeX
37289  mode
37290 \end_layout
37291
37292 \begin_layout Description
37293 listingsbg Background color of listings inset
37294 \end_layout
37295
37296 \begin_layout Description
37297 marginlabel Label color for margin notes
37298 \end_layout
37299
37300 \begin_layout Description
37301 math Math inset text color
37302 \end_layout
37303
37304 \begin_layout Description
37305 mathbg Math inset background color
37306 \end_layout
37307
37308 \begin_layout Description
37309 mathcorners Math inset frame color not under focus
37310 \end_layout
37311
37312 \begin_layout Description
37313 mathframe Math inset frame color under focus
37314 \end_layout
37315
37316 \begin_layout Description
37317 mathline Math line color
37318 \end_layout
37319
37320 \begin_layout Description
37321 mathmacrobg Macro math inset background color
37322 \end_layout
37323
37324 \begin_layout Description
37325 mathmacroblend Macro math blended color
37326 \end_layout
37327
37328 \begin_layout Description
37329 mathmacroframe Macro math frame color
37330 \end_layout
37331
37332 \begin_layout Description
37333 mathmacrohoverbg Macro math inset background color hovered
37334 \end_layout
37335
37336 \begin_layout Description
37337 mathmacrolabel Macro math label color
37338 \end_layout
37339
37340 \begin_layout Description
37341 mathmacronewarg Macro template color for new parameters
37342 \end_layout
37343
37344 \begin_layout Description
37345 mathmacrooldarg Macro template color for old parameters
37346 \end_layout
37347
37348 \begin_layout Description
37349 newpage New page color
37350 \end_layout
37351
37352 \begin_layout Description
37353 nonunique_inlinecompletion Inline completion color for the non-unique part
37354 \end_layout
37355
37356 \begin_layout Description
37357 note Label color for notes
37358 \end_layout
37359
37360 \begin_layout Description
37361 notebg Background color of notes
37362 \end_layout
37363
37364 \begin_layout Description
37365 pagebreak Page break/line break color
37366 \end_layout
37367
37368 \begin_layout Description
37369 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
37370 \end_layout
37371
37372 \begin_layout Description
37373 phantomtext Text color for phantom insets
37374 \end_layout
37375
37376 \begin_layout Description
37377 preview The color used for previews
37378 \end_layout
37379
37380 \begin_layout Description
37381 previewframe Preview frame color
37382 \end_layout
37383
37384 \begin_layout Description
37385 regexpframe Color for regexp frame
37386 \end_layout
37387
37388 \begin_layout Description
37389 scroll Color that indicates when a row can be scrolled 
37390 \end_layout
37391
37392 \begin_layout Description
37393 selection Background color of selected text
37394 \change_inserted -712698321 1696418767
37395
37396 \end_layout
37397
37398 \begin_layout Description
37399
37400 \change_inserted -712698321 1696418836
37401 selectionmath Foreground color of selected text in math insets
37402 \change_unchanged
37403
37404 \end_layout
37405
37406 \begin_layout Description
37407 selectiontext Foreground color of selected text
37408 \end_layout
37409
37410 \begin_layout Description
37411 shadedbg Background color of shaded box
37412 \end_layout
37413
37414 \begin_layout Description
37415 special Special chars text color
37416 \end_layout
37417
37418 \begin_layout Description
37419 tabularline Table line color
37420 \end_layout
37421
37422 \begin_layout Description
37423 tabularonoffline Table line color
37424 \change_inserted -712698321 1607682522
37425
37426 \end_layout
37427
37428 \begin_layout Description
37429
37430 \change_inserted -712698321 1607682563
37431 textlabel1 Color 1 of layout and custom inset labels
37432 \end_layout
37433
37434 \begin_layout Description
37435
37436 \change_inserted -712698321 1607682565
37437 textlabel2 Color 2 of layout and custom inset labels
37438 \end_layout
37439
37440 \begin_layout Description
37441
37442 \change_inserted -712698321 1607682568
37443 textlabel3 Color 3 of layout and custom inset labels
37444 \change_unchanged
37445
37446 \end_layout
37447
37448 \begin_layout Description
37449 urllabel Label color for URL insets
37450 \end_layout
37451
37452 \begin_layout Description
37453 urltext Color for URL inset text
37454 \end_layout
37455
37456 \end_body
37457 \end_document