]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Remove absolute path
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 618
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 232239728 "Owner"
150 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
151 \author 1075283030 "Thibaut"
152 \end_header
153
154 \begin_body
155
156 \begin_layout Title
157 Customizing \SpecialChar LyX
158 :
159  Features for the Advanced User
160 \end_layout
161
162 \begin_layout Author
163 by the \SpecialChar LyX
164  Team
165 \begin_inset Foot
166 status collapsed
167
168 \begin_layout Plain Layout
169 If you have comments or error corrections,
170  please send them to the \SpecialChar LyX
171  Documentation mailing list,
172  
173 \begin_inset CommandInset href
174 LatexCommand href
175 target "lyx-docs@lists.lyx.org"
176 type "mailto:"
177 literal "false"
178
179 \end_inset
180
181 .
182  Include 
183 \begin_inset Quotes eld
184 \end_inset
185
186 [Customization]
187 \begin_inset Quotes erd
188 \end_inset
189
190  in the subject header,
191  and please cc the current maintainer of this file,
192  Richard 
193 \change_inserted 5863208 1604930692
194 Kimberly 
195 \change_unchanged
196 Heck <
197 \change_inserted 5863208 1604930729
198 rikiheck@lyx.org
199 \change_deleted 5863208 1604930668
200 rikiheck@lyx.org
201 \change_unchanged
202 >.
203 \end_layout
204
205 \end_inset
206
207
208 \begin_inset Newline newline
209 \end_inset
210
211
212 \begin_inset Newline newline
213 \end_inset
214
215 Version 2.4.x
216 \end_layout
217
218 \begin_layout Standard
219 \begin_inset CommandInset toc
220 LatexCommand tableofcontents
221
222 \end_inset
223
224
225 \end_layout
226
227 \begin_layout Standard
228 \begin_inset Note Note
229 status open
230
231 \begin_layout Plain Layout
232 Please use change tracking when modifying this document.
233  This makes it easier for our translators to recognize things that have been changed,
234  and it helps the maintainer keep up-to-date with what's been done.
235 \end_layout
236
237 \end_inset
238
239
240 \end_layout
241
242 \begin_layout Chapter
243 Introduction
244 \end_layout
245
246 \begin_layout Standard
247 This manual covers the customization features present in \SpecialChar LyX
248 .
249  In it,
250  we discuss issues like keyboard shortcuts,
251  screen previewing options,
252  printer options,
253  sending commands to \SpecialChar LyX
254  via the \SpecialChar LyX
255  Server,
256  internationalization,
257  installing new \SpecialChar LaTeX
258  classes and \SpecialChar LyX
259  layouts,
260  etc.
261  We can't possibly hope to touch on everything you can change—
262 our developers add new features faster than we can document them—
263 but we will explain the most common customizations and hopefully point you in the right direction for some of the more obscure ones.
264 \end_layout
265
266 \begin_layout Standard
267 \begin_inset Branch OutDated
268 inverted 0
269 status collapsed
270
271 \begin_layout Standard
272 Information from previous versions of this document that now seems to be outdated is contained in the OutDated branch of this document.
273  By default,
274  this information will not appear in the \SpecialChar LaTeX
275  output.
276 \end_layout
277
278 \end_inset
279
280
281 \end_layout
282
283 \begin_layout Chapter
284 \SpecialChar LyX
285  configuration files
286 \end_layout
287
288 \begin_layout Standard
289 This chapter aims to help you to find your way through the \SpecialChar LyX
290  configuration files.
291  Before continuing to read this chapter,
292  you should find out where your \SpecialChar LyX
293  
294 \change_deleted -712698321 1693046672
295 library
296 \change_inserted -712698321 1693046674
297 system
298 \change_unchanged
299  and user directories are by using 
300 \begin_inset Flex Noun
301 status collapsed
302
303 \begin_layout Plain Layout
304 Help\SpecialChar menuseparator
305 About
306 \begin_inset space ~
307 \end_inset
308
309 LyX
310 \end_layout
311
312 \end_inset
313
314 .
315  The 
316 \change_deleted -712698321 1693046679
317 library
318 \change_inserted -712698321 1693046679
319 system
320 \change_unchanged
321  directory is the place where \SpecialChar LyX
322  places its system-wide configuration files;
323  the user directory is where you can place your modified versions.
324  We will call the former 
325 \begin_inset Flex Code
326 status collapsed
327
328 \begin_layout Plain Layout
329 LyXDir
330 \end_layout
331
332 \end_inset
333
334  and the latter 
335 \begin_inset Flex Noun
336 status collapsed
337
338 \begin_layout Plain Layout
339 UserDir
340 \end_layout
341
342 \end_inset
343
344  in the remainder of this document.
345  
346 \end_layout
347
348 \begin_layout Section
349 What's in 
350 \begin_inset Flex Code
351 status collapsed
352
353 \begin_layout Plain Layout
354 LyXDir
355 \end_layout
356
357 \end_inset
358
359 ?
360 \end_layout
361
362 \begin_layout Standard
363 \begin_inset Flex Code
364 status collapsed
365
366 \begin_layout Plain Layout
367 LyXDir
368 \end_layout
369
370 \end_inset
371
372  and its sub-directories contain a number of files 
373 \change_deleted 232239728 1604787780
374 and
375 \change_unchanged
376  that can be used to customize \SpecialChar LyX
377 's behavior.
378  You can change many of these files from within \SpecialChar LyX
379  itself through the 
380 \begin_inset Flex Noun
381 status collapsed
382
383 \begin_layout Plain Layout
384 Tools\SpecialChar menuseparator
385 Preferences
386 \end_layout
387
388 \end_inset
389
390  dialog.
391  Most customization that you will want to do in \SpecialChar LyX
392  is possible through this dialog.
393  However,
394  many other inner aspects of \SpecialChar LyX
395  can be customized by modifying the files in 
396 \begin_inset Flex Code
397 status collapsed
398
399 \begin_layout Plain Layout
400 LyXDir
401 \end_layout
402
403 \end_inset
404
405 .
406  These files fall in different categories,
407  described in the following subsections.
408 \end_layout
409
410 \begin_layout Subsection
411 Automatically generated files
412 \end_layout
413
414 \begin_layout Standard
415 The files found in 
416 \begin_inset Flex Noun
417 status collapsed
418
419 \begin_layout Plain Layout
420 UserDir
421 \end_layout
422
423 \end_inset
424
425  are generated when you configure \SpecialChar LyX
426 .
427  They contain various default values that are 
428 \change_inserted 5863208 1604919565
429 automatically detected during reconfiguration.
430 \change_deleted 232239728 1604788241
431 guessed by inspection
432 \change_unchanged
433  In general,
434  it is not a good idea to modify them,
435  since they might be overwritten at any time.
436 \end_layout
437
438 \begin_layout Labeling
439 \labelwidthstring 00.00.0000
440 \begin_inset Flex Code
441 status collapsed
442
443 \begin_layout Plain Layout
444 lyxrc.defaults
445 \end_layout
446
447 \end_inset
448
449  
450 \change_deleted 5863208 1604919950
451
452 \begin_inset Note Note
453 status collapsed
454
455 \begin_layout Plain Layout
456
457 \change_inserted 232239728 1604853928
458 I capitalized the first word in all of these lists.
459  To me it looks better but it really is a stylistic thing,
460  your call.
461  However if you are not going to capitalize them,
462  the english in some needs to be modified to make it read correctly as a sentence.
463 \change_unchanged
464
465 \end_layout
466
467 \end_inset
468
469
470 \change_deleted 232239728 1604853510
471 c
472 \change_inserted 232239728 1604853510
473 C
474 \change_unchanged
475 ontains defaults for various commands.
476 \end_layout
477
478 \begin_layout Labeling
479 \labelwidthstring 00.00.0000
480 \begin_inset Flex Code
481 status collapsed
482
483 \begin_layout Plain Layout
484 packages.lst
485 \end_layout
486
487 \end_inset
488
489  
490 \change_deleted 232239728 1604853512
491 c
492 \change_inserted 232239728 1604853512
493 C
494 \change_unchanged
495 ontains the list of packages that have been recognized by \SpecialChar LyX
496 .
497  It is currently unused by the \SpecialChar LyX
498  program itself,
499  but the information extracted,
500  and more,
501  is made available with 
502 \begin_inset Flex Noun
503 status collapsed
504
505 \begin_layout Plain Layout
506 Help\SpecialChar menuseparator
507 \SpecialChar LaTeX
508
509 \begin_inset space ~
510 \end_inset
511
512 Configuration
513 \end_layout
514
515 \end_inset
516
517 .
518 \end_layout
519
520 \begin_layout Labeling
521 \labelwidthstring 00.00.0000
522 \begin_inset Flex Code
523 status collapsed
524
525 \begin_layout Plain Layout
526 textclass.lst
527 \end_layout
528
529 \end_inset
530
531  
532 \change_deleted 232239728 1604853515
533 t
534 \change_inserted 232239728 1604853515
535 T
536 \change_unchanged
537 he list of text classes that have been found in your 
538 \begin_inset Flex Code
539 status collapsed
540
541 \begin_layout Plain Layout
542 layout/
543 \end_layout
544
545 \end_inset
546
547  directories,
548  along with the associated \SpecialChar LaTeX
549  document class and their description.
550 \end_layout
551
552 \begin_layout Labeling
553 \labelwidthstring 00.00.0000
554 \begin_inset Flex Code
555 status collapsed
556
557 \begin_layout Plain Layout
558 lyxmodules.lst
559 \end_layout
560
561 \end_inset
562
563  
564 \change_deleted 232239728 1604853518
565 t
566 \change_inserted 232239728 1604853518
567 T
568 \change_unchanged
569 he list of layout modules found in your 
570 \begin_inset Flex Code
571 status collapsed
572
573 \begin_layout Plain Layout
574 layout/
575 \end_layout
576
577 \end_inset
578
579  directories
580 \end_layout
581
582 \begin_layout Labeling
583 \labelwidthstring 00.00.0000
584 \begin_inset Flex Code
585 status open
586
587 \begin_layout Plain Layout
588 *files.lst
589 \end_layout
590
591 \end_inset
592
593  
594 \change_deleted 232239728 1604853523
595 l
596 \change_inserted 232239728 1604853523
597 L
598 \change_unchanged
599 ists of various sorts of \SpecialChar LaTeX
600 -related files found on your system
601 \end_layout
602
603 \begin_layout Labeling
604 \labelwidthstring 00.00.0000
605 \begin_inset Flex Code
606 status open
607
608 \begin_layout Plain Layout
609 doc/\SpecialChar LaTeX
610 Config.lyx
611 \end_layout
612
613 \end_inset
614
615  is automatically generated during configuration from the file 
616 \begin_inset Flex Code
617 status collapsed
618
619 \begin_layout Plain Layout
620 \SpecialChar LaTeX
621 Config.lyx.in
622 \end_layout
623
624 \end_inset
625
626 .
627  It contains information on your \SpecialChar LaTeX
628  configuration.
629 \end_layout
630
631 \begin_layout Subsection
632 Directories
633 \end_layout
634
635 \begin_layout Standard
636 The
637 \change_deleted 5863208 1604928729
638 se
639 \change_unchanged
640  
641 \change_inserted 5863208 1604928636
642 following 
643 \change_unchanged
644 directories 
645 \change_inserted 5863208 1604928661
646 in 
647 \change_unchanged
648
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653 LyXDir
654 \end_layout
655
656 \end_inset
657
658
659 \change_inserted 5863208 1604928662
660  can be
661 \change_deleted 5863208 1604928642
662 are
663 \change_unchanged
664  duplicated 
665 \change_deleted 5863208 1604928669
666 between 
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 LyXDir
672 \end_layout
673
674 \end_inset
675
676  and
677 \change_inserted 5863208 1604928680
678 in
679 \change_unchanged
680  
681 \begin_inset Flex Code
682 status collapsed
683
684 \begin_layout Plain Layout
685 UserDir
686 \end_layout
687
688 \end_inset
689
690 .
691  If a particular file
692 \change_deleted 232239728 1604794430
693 s
694 \change_unchanged
695  exists in both places,
696  the one in 
697 \begin_inset Flex Code
698 status collapsed
699
700 \begin_layout Plain Layout
701 UserDir
702 \end_layout
703
704 \end_inset
705
706  will be used.
707 \end_layout
708
709 \begin_layout Labeling
710 \labelwidthstring 00.00.0000
711 \begin_inset Flex Code
712 status collapsed
713
714 \begin_layout Plain Layout
715 bind/
716 \end_layout
717
718 \end_inset
719
720  
721 \change_deleted 232239728 1604794460
722 t
723 \change_inserted 232239728 1604794460
724 T
725 \change_unchanged
726 his directory contains files with the extension 
727 \begin_inset Flex Code
728 status collapsed
729
730 \begin_layout Plain Layout
731 .bind
732 \end_layout
733
734 \end_inset
735
736  that define the keybindings used in \SpecialChar LyX
737 .
738  If there exists an internationalized version of the bind file 
739 \change_inserted -712698321 1669371749
740 in a subdirectory 
741 \change_deleted -712698321 1669371727
742 named 
743 \begin_inset Flex Code
744 status collapsed
745
746 \begin_layout Plain Layout
747 $LANG_xxx.bind
748 \end_layout
749
750 \end_inset
751
752
753 \change_inserted -712698321 1669371728
754
755 \begin_inset Flex Code
756 status collapsed
757
758 \begin_layout Plain Layout
759
760 \change_inserted -712698321 1669371732
761 bind/xx
762 \change_unchanged
763
764 \end_layout
765
766 \end_inset
767
768  where 
769 \begin_inset Quotes eld
770 \end_inset
771
772 xx
773 \begin_inset Quotes erd
774 \end_inset
775
776  is the ISO language code
777 \change_unchanged
778 ,
779  that will be used first.
780 \end_layout
781
782 \begin_layout Labeling
783 \labelwidthstring 00.00.0000
784 \begin_inset Flex Code
785 status collapsed
786
787 \begin_layout Plain Layout
788 citeengines/
789 \end_layout
790
791 \end_inset
792
793  
794 \change_deleted 232239728 1604794478
795 c
796 \change_inserted 232239728 1604794478
797 C
798 \change_unchanged
799 ontains files with the extension 
800 \begin_inset Flex Code
801 status collapsed
802
803 \begin_layout Plain Layout
804 .citeengine
805 \end_layout
806
807 \end_inset
808
809  which define the diverse citation possibilities (natbib,
810  biblatex etc.).
811  See 
812 \begin_inset CommandInset ref
813 LatexCommand ref
814 reference "subsec:Cite-Engine-Files"
815 plural "false"
816 caps "false"
817 noprefix "false"
818 nolink "false"
819
820 \end_inset
821
822  for details.
823 \end_layout
824
825 \begin_layout Labeling
826 \labelwidthstring 00.00.0000
827 \begin_inset Flex Code
828 status collapsed
829
830 \begin_layout Plain Layout
831 clipart/
832 \end_layout
833
834 \end_inset
835
836  
837 \change_deleted 232239728 1604794483
838 c
839 \change_inserted 232239728 1604794486
840 C
841 \change_unchanged
842 ontains graphics files that can be included in documents.
843  
844 \end_layout
845
846 \begin_layout Labeling
847 \labelwidthstring 00.00.0000
848 \begin_inset Flex Code
849 status collapsed
850
851 \begin_layout Plain Layout
852 doc/
853 \end_layout
854
855 \end_inset
856
857  
858 \change_deleted 232239728 1604794492
859 c
860 \change_inserted 232239728 1604794492
861 C
862 \change_unchanged
863 ontains \SpecialChar LyX
864  documentation files (including the one you are currently reading).
865  The file 
866 \begin_inset Flex Code
867 status collapsed
868
869 \begin_layout Plain Layout
870
871 \change_deleted 232239728 1604794660
872 \SpecialChar LaTeX
873
874 \change_inserted 232239728 1604794661
875 LaTex
876 \change_unchanged
877 Config.lyx
878 \end_layout
879
880 \end_inset
881
882  deserves special attention,
883  as noted above.
884  The internationalized help docs are in subdirectories 
885 \begin_inset Flex Code
886 status collapsed
887
888 \begin_layout Plain Layout
889 doc/xx
890 \end_layout
891
892 \end_inset
893
894  where 
895 \begin_inset Quotes eld
896 \end_inset
897
898 xx
899 \begin_inset Quotes erd
900 \end_inset
901
902  is the ISO language code.
903  See 
904 \begin_inset CommandInset ref
905 LatexCommand ref
906 reference "cha:Internationalizing-LyX"
907 nolink "false"
908
909 \end_inset
910
911  for details.
912 \end_layout
913
914 \begin_layout Labeling
915 \labelwidthstring 00.00.0000
916 \begin_inset Flex Code
917 status collapsed
918
919 \begin_layout Plain Layout
920 examples/
921 \end_layout
922
923 \end_inset
924
925  
926 \change_deleted 232239728 1604794497
927 c
928 \change_inserted 232239728 1604794497
929 C
930 \change_unchanged
931 ontains example files that explain how to use some features.
932  In the file browser,
933  press the 
934 \begin_inset Flex Noun
935 status collapsed
936
937 \begin_layout Plain Layout
938 Examples
939 \end_layout
940
941 \end_inset
942
943  button to get there.
944 \end_layout
945
946 \begin_layout Labeling
947 \labelwidthstring 00.00.0000
948 \begin_inset Flex Code
949 status collapsed
950
951 \begin_layout Plain Layout
952 images/
953 \end_layout
954
955 \end_inset
956
957  
958 \change_deleted 232239728 1604794500
959 c
960 \change_inserted 232239728 1604794500
961 C
962 \change_unchanged
963 ontains image files that are used by the 
964 \begin_inset Flex Noun
965 status collapsed
966
967 \begin_layout Plain Layout
968 Document
969 \end_layout
970
971 \end_inset
972
973  dialog.
974  In addition,
975  it also contains the individual icons used in the toolbar and the banners that can be shown when \SpecialChar LyX
976  is launched.
977 \end_layout
978
979 \begin_layout Labeling
980 \labelwidthstring 00.00.0000
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 kbd/
986 \end_layout
987
988 \end_inset
989
990  
991 \change_deleted 232239728 1604794505
992 c
993 \change_inserted 232239728 1604794505
994 C
995 \change_unchanged
996 ontains keyboard keymapping files.
997  See 
998 \begin_inset CommandInset ref
999 LatexCommand ref
1000 reference "sec:International-Keymap-Stuff"
1001 nolink "false"
1002
1003 \end_inset
1004
1005  for details.
1006 \end_layout
1007
1008 \begin_layout Labeling
1009 \labelwidthstring 00.00.0000
1010 \begin_inset Flex Code
1011 status collapsed
1012
1013 \begin_layout Plain Layout
1014 layouts/
1015 \end_layout
1016
1017 \end_inset
1018
1019  
1020 \change_deleted 232239728 1604794508
1021 c
1022 \change_inserted 232239728 1604794508
1023 C
1024 \change_unchanged
1025 ontains the text class and module files described in 
1026 \begin_inset CommandInset ref
1027 LatexCommand ref
1028 reference "cha:Installing-New-Document"
1029 nolink "false"
1030
1031 \end_inset
1032
1033 .
1034 \end_layout
1035
1036 \begin_layout Labeling
1037 \labelwidthstring 00.00.0000
1038 \begin_inset Flex Code
1039 status collapsed
1040
1041 \begin_layout Plain Layout
1042 lyx2lyx
1043 \end_layout
1044
1045 \end_inset
1046
1047  
1048 \change_deleted 232239728 1604794513
1049 c
1050 \change_inserted 232239728 1604794513
1051 C
1052 \change_unchanged
1053 ontains the 
1054 \begin_inset Flex Code
1055 status collapsed
1056
1057 \begin_layout Plain Layout
1058 lyx2lyx
1059 \end_layout
1060
1061 \end_inset
1062
1063  Python scripts used to convert between \SpecialChar LyX
1064  versions.
1065  These can be run from the command line if
1066 \change_deleted 232239728 1604794749
1067 ,
1068  say,
1069
1070 \change_unchanged
1071  you want to batch-convert files.
1072 \end_layout
1073
1074 \begin_layout Labeling
1075 \labelwidthstring 00.00.0000
1076 \begin_inset Flex Code
1077 status collapsed
1078
1079 \begin_layout Plain Layout
1080 scripts/
1081 \end_layout
1082
1083 \end_inset
1084
1085  
1086 \change_deleted 232239728 1604794516
1087 c
1088 \change_inserted 232239728 1604794516
1089 C
1090 \change_unchanged
1091 ontains some files that demonstrate the capabilities of the 
1092 \begin_inset Flex Noun
1093 status collapsed
1094
1095 \begin_layout Plain Layout
1096 External
1097 \begin_inset space ~
1098 \end_inset
1099
1100 Template
1101 \end_layout
1102
1103 \end_inset
1104
1105  feature.
1106  Also contains some scripts used by \SpecialChar LyX
1107  itself.
1108 \end_layout
1109
1110 \begin_layout Labeling
1111 \labelwidthstring 00.00.0000
1112 \begin_inset Flex Code
1113 status collapsed
1114
1115 \begin_layout Plain Layout
1116 templates/
1117 \end_layout
1118
1119 \end_inset
1120
1121  
1122 \change_deleted 232239728 1604794520
1123 c
1124 \change_inserted 232239728 1604794520
1125 C
1126 \change_unchanged
1127 ontains the standard \SpecialChar LyX
1128  template files described in 
1129 \begin_inset CommandInset ref
1130 LatexCommand ref
1131 reference "subsec:Creating-Templates"
1132 nolink "false"
1133
1134 \end_inset
1135
1136 .
1137 \end_layout
1138
1139 \begin_layout Labeling
1140 \labelwidthstring 00.00.0000
1141 \begin_inset Flex Code
1142 status collapsed
1143
1144 \begin_layout Plain Layout
1145 ui/
1146 \end_layout
1147
1148 \end_inset
1149
1150  
1151 \change_deleted 232239728 1604794524
1152 c
1153 \change_inserted 232239728 1604794524
1154 C
1155 \change_unchanged
1156 ontains files with the extension 
1157 \begin_inset Flex Code
1158 status collapsed
1159
1160 \begin_layout Plain Layout
1161 .ui
1162 \end_layout
1163
1164 \end_inset
1165
1166  that define the user interface to \SpecialChar LyX
1167 .
1168  That is,
1169  the files define which items appear in which menus and the items appearing on the toolbar.
1170 \end_layout
1171
1172 \begin_layout Labeling
1173 \labelwidthstring 00.00.0000
1174 \begin_inset Flex Code
1175 status collapsed
1176
1177 \begin_layout Plain Layout
1178 xtemplates/
1179 \end_layout
1180
1181 \end_inset
1182
1183  
1184 \change_deleted 232239728 1604794528
1185 c
1186 \change_inserted 232239728 1604794528
1187 C
1188 \change_unchanged
1189 ontains files with the extension 
1190 \begin_inset Flex Code
1191 status collapsed
1192
1193 \begin_layout Plain Layout
1194 .xtemplate
1195 \end_layout
1196
1197 \end_inset
1198
1199  which define the templates for the insertion of external material to a \SpecialChar LyX
1200  document;
1201  see 
1202 \begin_inset CommandInset ref
1203 LatexCommand ref
1204 reference "chap:Including-External-Material"
1205 nolink "false"
1206
1207 \end_inset
1208
1209 .
1210 \end_layout
1211
1212 \begin_layout Subsection
1213 Files you don't want to modify
1214 \end_layout
1215
1216 \begin_layout Standard
1217 These files are used internally by \SpecialChar LyX
1218  and you generally do not need to modify them unless you are a developer.
1219 \end_layout
1220
1221 \begin_layout Labeling
1222 \labelwidthstring 00.00.0000
1223 \begin_inset Flex Code
1224 status collapsed
1225
1226 \begin_layout Plain Layout
1227 CREDITS
1228 \end_layout
1229
1230 \end_inset
1231
1232  
1233 \change_deleted 232239728 1604797616
1234 t
1235 \change_inserted 232239728 1604797616
1236 T
1237 \change_unchanged
1238 his file contains the list of \SpecialChar LyX
1239  developers.
1240  The contents are displayed with the menu entry 
1241 \begin_inset Flex Noun
1242 status collapsed
1243
1244 \begin_layout Plain Layout
1245 Help\SpecialChar menuseparator
1246 About
1247 \begin_inset space ~
1248 \end_inset
1249
1250 LyX
1251 \end_layout
1252
1253 \end_inset
1254
1255 .
1256 \end_layout
1257
1258 \begin_layout Labeling
1259 \labelwidthstring 00.00.0000
1260 \begin_inset Flex Code
1261 status collapsed
1262
1263 \begin_layout Plain Layout
1264 chkconfig.ltx
1265 \end_layout
1266
1267 \end_inset
1268
1269  
1270 \change_deleted 232239728 1604797620
1271 t
1272 \change_inserted 232239728 1604797620
1273 T
1274 \change_unchanged
1275 his is a \SpecialChar LaTeX
1276  script used during the configuration process.
1277  Do not run directly.
1278 \end_layout
1279
1280 \begin_layout Labeling
1281 \labelwidthstring 00.00.0000
1282 \begin_inset Flex Code
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 configure.py
1287 \end_layout
1288
1289 \end_inset
1290
1291  
1292 \change_deleted 232239728 1604797624
1293 t
1294 \change_inserted 232239728 1604797624
1295 T
1296 \change_unchanged
1297 his is a Python script that is used to re-configure \SpecialChar LyX
1298 .
1299  It creates configuration files in the directory it was run from.
1300 \end_layout
1301
1302 \begin_layout Subsection
1303 Other files needing a line or two
1304 \end_layout
1305
1306 \begin_layout Labeling
1307 \labelwidthstring 00.00.0000
1308 \begin_inset Flex Code
1309 status collapsed
1310
1311 \begin_layout Plain Layout
1312 encodings
1313 \end_layout
1314
1315 \end_inset
1316
1317  
1318 \change_deleted 232239728 1604797580
1319 t
1320 \change_inserted 232239728 1604797580
1321 T
1322 \change_unchanged
1323 his contains tables describing how different character encodings can be mapped to Unicode
1324 \end_layout
1325
1326 \begin_layout Labeling
1327 \labelwidthstring 00.00.0000
1328 \begin_inset Flex Code
1329 status collapsed
1330
1331 \begin_layout Plain Layout
1332 languages
1333 \end_layout
1334
1335 \end_inset
1336
1337  
1338 \change_deleted 232239728 1604797584
1339 t
1340 \change_inserted 232239728 1604797584
1341 T
1342 \change_unchanged
1343 his file contains a list of all the languages currently supported by \SpecialChar LyX
1344 .
1345 \end_layout
1346
1347 \begin_layout Labeling
1348 \labelwidthstring 00.00.0000
1349 \begin_inset Flex Code
1350 status collapsed
1351
1352 \begin_layout Plain Layout
1353 latexfonts
1354 \end_layout
1355
1356 \end_inset
1357
1358  
1359 \change_deleted 232239728 1604797587
1360 c
1361 \change_inserted 232239728 1604797587
1362 C
1363 \change_unchanged
1364 ontains information about the supported fonts.
1365 \end_layout
1366
1367 \begin_layout Labeling
1368 \labelwidthstring 00.00.0000
1369 \begin_inset Flex Code
1370 status collapsed
1371
1372 \begin_layout Plain Layout
1373 layouttranslations
1374 \end_layout
1375
1376 \end_inset
1377
1378  
1379 \change_deleted 232239728 1604797591
1380 t
1381 \change_inserted 232239728 1604797591
1382 T
1383 \change_unchanged
1384 his file contains translations for internationalized paragraph styles (see 
1385 \begin_inset CommandInset ref
1386 LatexCommand ref
1387 reference "subsec:I18n"
1388 nolink "false"
1389
1390 \end_inset
1391
1392 ).
1393 \end_layout
1394
1395 \begin_layout Labeling
1396 \labelwidthstring 00.00.0000
1397 \begin_inset Flex Code
1398 status collapsed
1399
1400 \begin_layout Plain Layout
1401 unicodesymbols
1402 \end_layout
1403
1404 \end_inset
1405
1406  
1407 \change_deleted 232239728 1604797594
1408 t
1409 \change_inserted 232239728 1604797594
1410 T
1411 \change_unchanged
1412 his file contains information about Unicode-encoded glyphs and the way they are supported by \SpecialChar LyX
1413  via \SpecialChar LaTeX
1414 .
1415 \end_layout
1416
1417 \begin_layout Section
1418 Your local configuration directory
1419 \end_layout
1420
1421 \begin_layout Standard
1422 Even if you are using \SpecialChar LyX
1423  as an unprivileged user,
1424  you might want to change \SpecialChar LyX
1425  configuration for your own use.
1426  The 
1427 \begin_inset Flex Code
1428 status collapsed
1429
1430 \begin_layout Plain Layout
1431 UserDir
1432 \end_layout
1433
1434 \end_inset
1435
1436  directory contains all your personal configuration files.
1437  This is the directory described as 
1438 \begin_inset Quotes eld
1439 \end_inset
1440
1441 user directory
1442 \begin_inset Quotes erd
1443 \end_inset
1444
1445  in 
1446 \begin_inset Flex Noun
1447 status collapsed
1448
1449 \begin_layout Plain Layout
1450 Help\SpecialChar menuseparator
1451 About
1452 \begin_inset space ~
1453 \end_inset
1454
1455 LyX
1456 \end_layout
1457
1458 \end_inset
1459
1460 .
1461  This directory is used as a mirror of 
1462 \begin_inset Flex Code
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466 LyXDir
1467 \end_layout
1468
1469 \end_inset
1470
1471 ,
1472  which means that every file in 
1473 \begin_inset Flex Code
1474 status collapsed
1475
1476 \begin_layout Plain Layout
1477 UserDir
1478 \end_layout
1479
1480 \end_inset
1481
1482  is a replacement for the corresponding file in 
1483 \begin_inset Flex Code
1484 status collapsed
1485
1486 \begin_layout Plain Layout
1487 LyXDir
1488 \end_layout
1489
1490 \end_inset
1491
1492 .
1493  Any configuration file described in the above sections can be placed either in the system-wide directory,
1494  in which case it will affect all users,
1495  or in your local directory for your own use.
1496 \end_layout
1497
1498 \begin_layout Standard
1499 To make things clearer,
1500  let's provide a few examples:
1501 \end_layout
1502
1503 \begin_layout Itemize
1504 The preferences set in the 
1505 \begin_inset Flex Noun
1506 status collapsed
1507
1508 \begin_layout Plain Layout
1509 Tools\SpecialChar menuseparator
1510 Preferences
1511 \end_layout
1512
1513 \end_inset
1514
1515  dialog are saved to a file 
1516 \begin_inset Flex Code
1517 status collapsed
1518
1519 \begin_layout Plain Layout
1520 preferences
1521 \end_layout
1522
1523 \end_inset
1524
1525  in 
1526 \begin_inset Flex Code
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530 UserDir
1531 \end_layout
1532
1533 \end_inset
1534
1535 .
1536 \end_layout
1537
1538 \begin_layout Itemize
1539 When you reconfigure using 
1540 \begin_inset Flex Noun
1541 status collapsed
1542
1543 \begin_layout Plain Layout
1544 Tools\SpecialChar menuseparator
1545 Reconfigure
1546 \end_layout
1547
1548 \end_inset
1549
1550 ,
1551  \SpecialChar LyX
1552  runs the 
1553 \begin_inset Flex Code
1554 status collapsed
1555
1556 \begin_layout Plain Layout
1557 configure.py
1558 \end_layout
1559
1560 \end_inset
1561
1562  script,
1563  and the resulting files are written in your local configuration directory.
1564  This means that any additional text class file that you might have added in 
1565 \begin_inset Flex Code
1566 status collapsed
1567
1568 \begin_layout Plain Layout
1569 UserDir/layouts
1570 \end_layout
1571
1572 \end_inset
1573
1574  will be added to the list of classes in the 
1575 \begin_inset Flex Noun
1576 status collapsed
1577
1578 \begin_layout Plain Layout
1579 Document\SpecialChar menuseparator
1580 Settings
1581 \end_layout
1582
1583 \end_inset
1584
1585  dialog.
1586 \end_layout
1587
1588 \begin_layout Itemize
1589 If you get some updated documentation from
1590 \change_inserted 232239728 1604798171
1591  a
1592 \change_unchanged
1593  \SpecialChar LyX
1594  ftp site and cannot install it because you do not have sysadmin rights on your system,
1595  you can just copy the files 
1596 \change_deleted 232239728 1604798193
1597 in
1598 \change_inserted 232239728 1604798193
1599 to
1600 \change_unchanged
1601  
1602 \begin_inset Flex Code
1603 status collapsed
1604
1605 \begin_layout Plain Layout
1606 UserDir/doc/
1607 \end_layout
1608
1609 \end_inset
1610
1611  and the items in the 
1612 \begin_inset Flex Noun
1613 status collapsed
1614
1615 \begin_layout Plain Layout
1616 Help
1617 \end_layout
1618
1619 \end_inset
1620
1621  menu will open them!
1622 \end_layout
1623
1624 \begin_layout Section
1625 Running \SpecialChar LyX
1626  with multiple configurations
1627 \end_layout
1628
1629 \begin_layout Standard
1630 The configuration freedom of the local configuration directory may not suffice if you want to have more than one configuration at your disposal.
1631  For example,
1632  you may want to 
1633 \change_deleted 232239728 1604798238
1634 be 
1635 \change_unchanged
1636 use different key bindings or printer settings at different times.
1637  You can achieve this by having several such directories.
1638  You then specify which directory to use at run-time.
1639 \end_layout
1640
1641 \begin_layout Standard
1642 Invoking \SpecialChar LyX
1643  with the command line switch 
1644 \begin_inset Flex Code
1645 status collapsed
1646
1647 \begin_layout Plain Layout
1648 -userdir
1649 \end_layout
1650
1651 \end_inset
1652
1653  
1654 \emph on
1655 <some directory>
1656 \emph default
1657  instructs the program to read the configuration from that directory,
1658  and not from the default directory.
1659  (You can determine the default directory by running \SpecialChar LyX
1660  without the 
1661 \begin_inset Flex Code
1662 status collapsed
1663
1664 \begin_layout Plain Layout
1665 -userdir
1666 \end_layout
1667
1668 \end_inset
1669
1670  switch.) If the specified directory does not exist,
1671  \SpecialChar LyX
1672  offers to create it for you,
1673  just like it does for the default directory 
1674 \change_deleted 232239728 1604798318
1675 on
1676 \change_unchanged
1677  the first time you run the program.
1678  You can modify the configuration options in this additional user directory exactly as you would for the default directory.
1679  These directories are completely independent (but read on).
1680  Note that setting the environment variable 
1681 \begin_inset Flex Code
1682 status collapsed
1683
1684 \begin_layout Plain Layout
1685 LYX_USERDIR_24x
1686 \end_layout
1687
1688 \end_inset
1689
1690  to some value has exactly the same effect.
1691 \end_layout
1692
1693 \begin_layout Standard
1694 Having several configurations also requires more maintenance:
1695  if you want to add a new layout to 
1696 \begin_inset Flex Code
1697 status collapsed
1698
1699 \begin_layout Plain Layout
1700 NewUserDir/layouts
1701 \end_layout
1702
1703 \end_inset
1704
1705  which you want available from all your configurations,
1706  you must add it to each directory separately.
1707  You can avoid this with the following trick:
1708  after \SpecialChar LyX
1709  creates the additional directory,
1710  most of the subdirectories (see above) are empty.
1711  If you want the new configuration to mirror an existing one,
1712  replace the empty subdirectory with a symbolic link to the matching subdirectory in the existing configuration.
1713  Take care with the 
1714 \begin_inset Flex Code
1715 status collapsed
1716
1717 \begin_layout Plain Layout
1718 doc/
1719 \end_layout
1720
1721 \end_inset
1722
1723  subdirectory,
1724  however,
1725  since it contains a file written by the configuration script (also accessible through 
1726 \begin_inset Flex Noun
1727 status collapsed
1728
1729 \begin_layout Plain Layout
1730 Tools\SpecialChar menuseparator
1731 Reconfigure
1732 \end_layout
1733
1734 \end_inset
1735
1736 ) which is configuration
1737 \change_deleted 232239728 1604798083
1738 -
1739 \change_inserted 232239728 1604798100
1740  
1741 \change_unchanged
1742 specific.
1743 \end_layout
1744
1745 \begin_layout Chapter
1746 The Preferences dialog
1747 \end_layout
1748
1749 \begin_layout Standard
1750 All options of the preferences dialog are described in the Appendix 
1751 \emph on
1752 The Preferences Dialog
1753 \emph default
1754  in the 
1755 \emph on
1756 User's Guide
1757 \emph default
1758 .
1759  For some options you might find here more details.
1760 \end_layout
1761
1762 \begin_layout Section
1763 Formats
1764 \begin_inset CommandInset label
1765 LatexCommand label
1766 name "sec:Formats"
1767
1768 \end_inset
1769
1770
1771 \end_layout
1772
1773 \begin_layout Standard
1774 The first step is to define your file formats if they are not already defined.
1775  To do so,
1776  open the 
1777 \begin_inset Flex Noun
1778 status collapsed
1779
1780 \begin_layout Plain Layout
1781 Tools\SpecialChar menuseparator
1782 Preferences
1783 \end_layout
1784
1785 \end_inset
1786
1787  dialog.
1788  Under 
1789 \begin_inset Flex Noun
1790 status collapsed
1791
1792 \begin_layout Plain Layout
1793 File Handling\SpecialChar menuseparator
1794 File formats
1795 \end_layout
1796
1797 \end_inset
1798
1799  press the 
1800 \begin_inset Flex Noun
1801 status collapsed
1802
1803 \begin_layout Plain Layout
1804 New
1805 \end_layout
1806
1807 \end_inset
1808
1809  button to define your new format.
1810  The 
1811 \begin_inset Flex Noun
1812 status collapsed
1813
1814 \begin_layout Plain Layout
1815 Format
1816 \end_layout
1817
1818 \end_inset
1819
1820  field contains the name used to identify the format in the GUI.
1821  The 
1822 \begin_inset Flex Noun
1823 status collapsed
1824
1825 \begin_layout Plain Layout
1826 Short Name
1827 \end_layout
1828
1829 \end_inset
1830
1831  is used to identify the format internally.
1832  You will also need to enter a file extension.
1833  These are all required.
1834  The optional 
1835 \begin_inset Flex Noun
1836 status collapsed
1837
1838 \begin_layout Plain Layout
1839 Shortcut
1840 \end_layout
1841
1842 \end_inset
1843
1844  field is used to provide a keyboard shortcut on the menus.
1845  (For example,
1846  pressing 
1847 \begin_inset Flex Noun
1848 status collapsed
1849
1850 \begin_layout Plain Layout
1851 Ctrl+D
1852 \end_layout
1853
1854 \end_inset
1855
1856  will 
1857 \begin_inset Flex Noun
1858 status collapsed
1859
1860 \begin_layout Plain Layout
1861 Document\SpecialChar menuseparator
1862 View (Other Formats)\SpecialChar menuseparator
1863 DVI
1864 \end_layout
1865
1866 \end_inset
1867
1868 .) 
1869 \end_layout
1870
1871 \begin_layout Standard
1872 A Format can have a 
1873 \begin_inset Flex Noun
1874 status collapsed
1875
1876 \begin_layout Plain Layout
1877 Viewer
1878 \end_layout
1879
1880 \end_inset
1881
1882  and an 
1883 \begin_inset Flex Noun
1884 status collapsed
1885
1886 \begin_layout Plain Layout
1887 Editor
1888 \end_layout
1889
1890 \end_inset
1891
1892  associated with it.
1893  For example,
1894  you might want to use 
1895 \begin_inset Flex Noun
1896 status collapsed
1897
1898 \begin_layout Plain Layout
1899 Ghostview
1900 \end_layout
1901
1902 \end_inset
1903
1904  to view PostScript files.
1905  You can enter the command needed to start the program in the corresponding fields.
1906  In defining this command,
1907  you can use the four variables listed in the next section.
1908  The viewer is launched when you view an image in \SpecialChar LyX
1909  or use the 
1910 \begin_inset Flex Noun
1911 status collapsed
1912
1913 \begin_layout Plain Layout
1914 Document\SpecialChar menuseparator
1915 View
1916 \end_layout
1917
1918 \end_inset
1919
1920  menu.
1921  The editor is for example launched when you right-click on an image and choose 
1922 \begin_inset Flex Noun
1923 status collapsed
1924
1925 \begin_layout Plain Layout
1926 Edit externally
1927 \end_layout
1928
1929 \end_inset
1930
1931  in the appearing context menu.
1932 \end_layout
1933
1934 \begin_layout Standard
1935 The 
1936 \begin_inset Flex Noun
1937 status collapsed
1938
1939 \begin_layout Plain Layout
1940 MIME
1941 \end_layout
1942
1943 \end_inset
1944
1945  type of a format is optional,
1946  but if it is specified,
1947  it must be unique across all formats.
1948  It is used to detect files of this format from the file contents.
1949  For some important file formats there is no MIME type officially registered with the 
1950 \begin_inset CommandInset href
1951 LatexCommand href
1952 name "IANA"
1953 target "http://www.iana.org/assignments/media-types/"
1954 literal "false"
1955
1956 \end_inset
1957
1958 .
1959  Therefore \SpecialChar LyX
1960  uses the extended list of MIME types as specified by 
1961 \begin_inset CommandInset href
1962 LatexCommand href
1963 name "freedesktop.org"
1964 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1965 literal "false"
1966
1967 \end_inset
1968
1969 .
1970 \end_layout
1971
1972 \begin_layout Standard
1973 The 
1974 \begin_inset Flex Noun
1975 status collapsed
1976
1977 \begin_layout Plain Layout
1978 Document format
1979 \end_layout
1980
1981 \end_inset
1982
1983  option tells \SpecialChar LyX
1984  that a format is suitable for document export.
1985  If this is set and if a suitable conversion route exists (see 
1986 \begin_inset CommandInset ref
1987 LatexCommand ref
1988 reference "sec:Converters"
1989 nolink "false"
1990
1991 \end_inset
1992
1993 ),
1994  the format will appear in the 
1995 \begin_inset Flex Noun
1996 status collapsed
1997
1998 \begin_layout Plain Layout
1999 File\SpecialChar menuseparator
2000 Export
2001 \end_layout
2002
2003 \end_inset
2004
2005  menu.
2006  The format will also appear in the 
2007 \begin_inset Flex Noun
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011 Document\SpecialChar menuseparator
2012 View
2013 \end_layout
2014
2015 \end_inset
2016
2017  menu if a viewer is specified for the format.
2018  Pure image formats,
2019  such as 
2020 \begin_inset Flex Code
2021 status collapsed
2022
2023 \begin_layout Plain Layout
2024 png
2025 \end_layout
2026
2027 \end_inset
2028
2029 ,
2030  should not use this option.
2031  Formats that can both represent vector graphics and documents like 
2032 \begin_inset Flex Code
2033 status collapsed
2034
2035 \begin_layout Plain Layout
2036 pdf
2037 \end_layout
2038
2039 \end_inset
2040
2041  should use it.
2042 \end_layout
2043
2044 \begin_layout Standard
2045 The option 
2046 \begin_inset Flex Noun
2047 status collapsed
2048
2049 \begin_layout Plain Layout
2050 Vector graphics format
2051 \end_layout
2052
2053 \end_inset
2054
2055  tells \SpecialChar LyX
2056  that a format can contain vector graphics.
2057  This information is used to determine the target format of included graphics for 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 pdflatex
2063 \end_layout
2064
2065 \end_inset
2066
2067  export.
2068  Included graphics may need to be converted to either 
2069 \begin_inset Flex Noun
2070 status collapsed
2071
2072 \begin_layout Plain Layout
2073 pdf
2074 \end_layout
2075
2076 \end_inset
2077
2078 ,
2079  
2080 \begin_inset Flex Noun
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084 png
2085 \end_layout
2086
2087 \end_inset
2088
2089 ,
2090  or 
2091 \begin_inset Flex Noun
2092 status collapsed
2093
2094 \begin_layout Plain Layout
2095 jpg
2096 \end_layout
2097
2098 \end_inset
2099
2100 ,
2101  since 
2102 \begin_inset Flex Noun
2103 status collapsed
2104
2105 \begin_layout Plain Layout
2106 pdflatex
2107 \end_layout
2108
2109 \end_inset
2110
2111  cannot handle other image formats.
2112  If an included graphic is not already in 
2113 \begin_inset Flex Noun
2114 status collapsed
2115
2116 \begin_layout Plain Layout
2117 pdf
2118 \end_layout
2119
2120 \end_inset
2121
2122 ,
2123  
2124 \begin_inset Flex Noun
2125 status collapsed
2126
2127 \begin_layout Plain Layout
2128 png
2129 \end_layout
2130
2131 \end_inset
2132
2133 ,
2134  or 
2135 \begin_inset Flex Noun
2136 status collapsed
2137
2138 \begin_layout Plain Layout
2139 jpg
2140 \end_layout
2141
2142 \end_inset
2143
2144  format,
2145  it is converted to 
2146 \begin_inset Flex Noun
2147 status collapsed
2148
2149 \begin_layout Plain Layout
2150 pdf
2151 \end_layout
2152
2153 \end_inset
2154
2155  if the vector format option is set,
2156  and otherwise to 
2157 \begin_inset Flex Noun
2158 status collapsed
2159
2160 \begin_layout Plain Layout
2161 png
2162 \end_layout
2163
2164 \end_inset
2165
2166 .
2167 \end_layout
2168
2169 \begin_layout Section
2170 Copiers
2171 \end_layout
2172
2173 \begin_layout Standard
2174 Since all conversions from one format to another take place in \SpecialChar LyX
2175 's temporary directory,
2176  it is sometimes necessary to modify a file before copying it to the temporary directory in order that the conversion may be performed.
2177 \begin_inset Foot
2178 status collapsed
2179
2180 \begin_layout Plain Layout
2181 For example,
2182  the file may refer to other files—
2183 images,
2184  for example—
2185 using relative file names,
2186  and these may become invalid when the file is copied to the temporary directory.
2187 \end_layout
2188
2189 \end_inset
2190
2191  This is done by a Copier:
2192  It copies a file to (or from) the temporary directory and may modify it in the process.
2193 \end_layout
2194
2195 \begin_layout Standard
2196 The definitions of the copiers may use eight variables:
2197 \end_layout
2198
2199 \begin_layout Labeling
2200 \labelwidthstring 00.00.0000
2201 \begin_inset Flex Code
2202 status collapsed
2203
2204 \begin_layout Plain Layout
2205 $$s
2206 \end_layout
2207
2208 \end_inset
2209
2210  The \SpecialChar LyX
2211  system directory (e.
2212 \begin_inset space \thinspace{}
2213 \end_inset
2214
2215 g.
2216 \begin_inset space \space{}
2217 \end_inset
2218
2219
2220 \begin_inset Flex Noun
2221 status collapsed
2222
2223 \begin_layout Plain Layout
2224 /usr/share/lyx
2225 \end_layout
2226
2227 \end_inset
2228
2229 ).
2230 \end_layout
2231
2232 \begin_layout Labeling
2233 \labelwidthstring 00.00.0000
2234 \begin_inset Flex Code
2235 status collapsed
2236
2237 \begin_layout Plain Layout
2238 $$i
2239 \end_layout
2240
2241 \end_inset
2242
2243  The input file
2244 \end_layout
2245
2246 \begin_layout Labeling
2247 \labelwidthstring 00.00.0000
2248 \begin_inset Flex Code
2249 status collapsed
2250
2251 \begin_layout Plain Layout
2252 $$o
2253 \end_layout
2254
2255 \end_inset
2256
2257  The output file
2258 \end_layout
2259
2260 \begin_layout Labeling
2261 \labelwidthstring 00.00.0000
2262 \begin_inset Flex Code
2263 status collapsed
2264
2265 \begin_layout Plain Layout
2266 $$b
2267 \end_layout
2268
2269 \end_inset
2270
2271  The base name (without filename extension) in the \SpecialChar LyX
2272  temporary directory
2273 \end_layout
2274
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Flex Code
2278 status collapsed
2279
2280 \begin_layout Plain Layout
2281 $$p
2282 \end_layout
2283
2284 \end_inset
2285
2286  The full directory path of the \SpecialChar LyX
2287  temporary directory
2288 \end_layout
2289
2290 \begin_layout Labeling
2291 \labelwidthstring 00.00.0000
2292 \begin_inset Flex Code
2293 status collapsed
2294
2295 \begin_layout Plain Layout
2296 $$r
2297 \end_layout
2298
2299 \end_inset
2300
2301  The full pathname to the original \SpecialChar LyX
2302  file being processed
2303 \end_layout
2304
2305 \begin_layout Labeling
2306 \labelwidthstring 00.00.0000
2307 \begin_inset Flex Code
2308 status collapsed
2309
2310 \begin_layout Plain Layout
2311 $$f
2312 \end_layout
2313
2314 \end_inset
2315
2316  The filename (without any directory path) of the \SpecialChar LyX
2317  file.
2318 \end_layout
2319
2320 \begin_layout Labeling
2321 \labelwidthstring 00.00.0000
2322 \begin_inset Flex Code
2323 status collapsed
2324
2325 \begin_layout Plain Layout
2326 $$l
2327 \end_layout
2328
2329 \end_inset
2330
2331  The `\SpecialChar LaTeX
2332  name'
2333 \end_layout
2334
2335 \begin_layout Standard
2336 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2337 's 
2338 \series bold
2339
2340 \backslash
2341 include
2342 \series default
2343  command.
2344  It is relevant only when exporting files suitable for such inclusion.
2345 \end_layout
2346
2347 \begin_layout Standard
2348 Copiers can be used to do almost anything with output files.
2349  For example,
2350  suppose you want generated pdf files to be copied to a special directory,
2351  
2352 \begin_inset Flex Code
2353 status collapsed
2354
2355 \begin_layout Plain Layout
2356 /home/you/pdf/
2357 \end_layout
2358
2359 \end_inset
2360
2361 .
2362  Then you could write a shell script such as this one:
2363 \end_layout
2364
2365 \begin_layout Standard
2366 \begin_inset listings
2367 inline false
2368 status open
2369
2370 \begin_layout Plain Layout
2371
2372 #!/bin/bash
2373 \end_layout
2374
2375 \begin_layout Plain Layout
2376
2377 FROMFILE=$1
2378 \end_layout
2379
2380 \begin_layout Plain Layout
2381
2382 TOFILE=`basename $2`
2383 \end_layout
2384
2385 \begin_layout Plain Layout
2386
2387 cp $FROMFILE /home/you/pdf/$TOFILE
2388 \end_layout
2389
2390 \end_inset
2391
2392 Save it in your local \SpecialChar LyX
2393  directory—
2394 say,
2395  
2396 \begin_inset Flex Code
2397 status collapsed
2398
2399 \begin_layout Plain Layout
2400 /home/you/.lyx/scripts/pdfcopier.sh
2401 \end_layout
2402
2403 \end_inset
2404
2405
2406 and make it executable,
2407  if you need to do so on your platform.
2408  Then,
2409  in the 
2410 \begin_inset Flex Noun
2411 status collapsed
2412
2413 \begin_layout Plain Layout
2414 Tools\SpecialChar menuseparator
2415 Preferences
2416 \end_layout
2417
2418 \end_inset
2419
2420  dialog,
2421  select under 
2422 \begin_inset Flex Noun
2423 status collapsed
2424
2425 \begin_layout Plain Layout
2426 File Handling\SpecialChar menuseparator
2427 File formats
2428 \end_layout
2429
2430 \end_inset
2431
2432  the 
2433 \begin_inset Flex Noun
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 PDF(pdflatex)
2438 \end_layout
2439
2440 \end_inset
2441
2442  format—
2443 or one of the other pdf formats—
2444 and enter 
2445 \begin_inset Flex Code
2446 status collapsed
2447
2448 \begin_layout Plain Layout
2449 pdfcopier.sh $$i $$o
2450 \end_layout
2451
2452 \end_inset
2453
2454  into the 
2455 \begin_inset Flex Noun
2456 status collapsed
2457
2458 \begin_layout Plain Layout
2459 Copier
2460 \end_layout
2461
2462 \end_inset
2463
2464  field.
2465  
2466 \end_layout
2467
2468 \begin_layout Standard
2469 Copiers are used by \SpecialChar LyX
2470  in various of its own conversions.
2471  For example,
2472  if appropriate programs are found,
2473  \SpecialChar LyX
2474  will automatically install copiers for the 
2475 \begin_inset Flex Noun
2476 status collapsed
2477
2478 \begin_layout Plain Layout
2479 HTML
2480 \end_layout
2481
2482 \end_inset
2483
2484  and 
2485 \begin_inset Flex Noun
2486 status collapsed
2487
2488 \begin_layout Plain Layout
2489 HTML
2490 \begin_inset space ~
2491 \end_inset
2492
2493 (MS Word)
2494 \end_layout
2495
2496 \end_inset
2497
2498  formats.
2499  When these formats are exported,
2500  the copier sees that not just the main HTML file but various associated files (style files,
2501  images,
2502  etc.) are also copied.
2503  All these files are written to a subdirectory of the directory in which the original \SpecialChar LyX
2504  file was found.
2505 \begin_inset Foot
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509 This copier can be customized.
2510  The optional 
2511 \begin_inset Quotes eld
2512 \end_inset
2513
2514 -e
2515 \begin_inset Quotes erd
2516 \end_inset
2517
2518  argument takes a comma-separated list of extensions to be copied;
2519  if it is omitted,
2520  all files will be copied.
2521  The 
2522 \begin_inset Quotes eld
2523 \end_inset
2524
2525 -t
2526 \begin_inset Quotes erd
2527 \end_inset
2528
2529  argument determines the extension added to the generated directory.
2530  By default,
2531  it is 
2532 \begin_inset Quotes eld
2533 \end_inset
2534
2535
2536 \begin_inset Flex Noun
2537 status collapsed
2538
2539 \begin_layout Plain Layout
2540 LyXconv
2541 \end_layout
2542
2543 \end_inset
2544
2545
2546 \begin_inset Quotes erd
2547 \end_inset
2548
2549 ,
2550  so HTML generated from 
2551 \begin_inset Flex Noun
2552 status collapsed
2553
2554 \begin_layout Plain Layout
2555 /path/to/filename.lyx
2556 \end_layout
2557
2558 \end_inset
2559
2560  will end up in 
2561 \begin_inset Flex Noun
2562 status collapsed
2563
2564 \begin_layout Plain Layout
2565 /path/to/filename.html.LyXconv
2566 \end_layout
2567
2568 \end_inset
2569
2570 .
2571  
2572 \end_layout
2573
2574 \end_inset
2575
2576
2577 \end_layout
2578
2579 \begin_layout Section
2580 Converters
2581 \begin_inset CommandInset label
2582 LatexCommand label
2583 name "sec:Converters"
2584
2585 \end_inset
2586
2587
2588 \end_layout
2589
2590 \begin_layout Standard
2591 You can define your own Converters to convert files between different formats.
2592  This is done in the 
2593 \begin_inset Flex Noun
2594 status collapsed
2595
2596 \begin_layout Plain Layout
2597 Tools\SpecialChar menuseparator
2598 Preferences\SpecialChar menuseparator
2599 File Handling\SpecialChar menuseparator
2600 Converters
2601 \end_layout
2602
2603 \end_inset
2604
2605  dialog.
2606 \end_layout
2607
2608 \begin_layout Standard
2609 To define a new converter,
2610  select the 
2611 \begin_inset Flex Noun
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615 From
2616 \begin_inset space ~
2617 \end_inset
2618
2619 format
2620 \end_layout
2621
2622 \end_inset
2623
2624  and 
2625 \begin_inset Flex Noun
2626 status collapsed
2627
2628 \begin_layout Plain Layout
2629 To
2630 \begin_inset space ~
2631 \end_inset
2632
2633 format
2634 \end_layout
2635
2636 \end_inset
2637
2638  from the drop-down lists,
2639  enter the command needed for the conversion,
2640  and then press the 
2641 \begin_inset Flex Noun
2642 status collapsed
2643
2644 \begin_layout Plain Layout
2645 Add
2646 \end_layout
2647
2648 \end_inset
2649
2650  button.
2651  Several variables can be used in the definition of converters:
2652 \end_layout
2653
2654 \begin_layout Labeling
2655 \labelwidthstring 00.00.0000
2656 \begin_inset Flex Code
2657 status collapsed
2658
2659 \begin_layout Plain Layout
2660 $$s
2661 \end_layout
2662
2663 \end_inset
2664
2665  The \SpecialChar LyX
2666  system directory
2667 \end_layout
2668
2669 \begin_layout Labeling
2670 \labelwidthstring 00.00.0000
2671 \begin_inset Flex Code
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 $$i
2676 \end_layout
2677
2678 \end_inset
2679
2680  The input file
2681 \end_layout
2682
2683 \begin_layout Labeling
2684 \labelwidthstring 00.00.0000
2685 \begin_inset Flex Code
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 $$o
2690 \end_layout
2691
2692 \end_inset
2693
2694  The output file
2695 \end_layout
2696
2697 \begin_layout Labeling
2698 \labelwidthstring 00.00.0000
2699 \begin_inset Flex Code
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 $$b
2704 \end_layout
2705
2706 \end_inset
2707
2708  The base filename of the input file (i.
2709 \begin_inset space \thinspace{}
2710 \end_inset
2711
2712 g.,
2713  without the extension)
2714 \end_layout
2715
2716 \begin_layout Labeling
2717 \labelwidthstring 00.00.0000
2718 \begin_inset Flex Code
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722 $$p
2723 \end_layout
2724
2725 \end_inset
2726
2727  The path to the input file
2728 \end_layout
2729
2730 \begin_layout Labeling
2731 \labelwidthstring 00.00.0000
2732 \begin_inset Flex Code
2733 status collapsed
2734
2735 \begin_layout Plain Layout
2736 $$r
2737 \end_layout
2738
2739 \end_inset
2740
2741  The path to the original input file (this is different from $$p when a chain of converters is called)
2742 \end_layout
2743
2744 \begin_layout Labeling
2745 \labelwidthstring 00.00.0000
2746 \begin_inset Flex Code
2747 status collapsed
2748
2749 \begin_layout Plain Layout
2750 $$e
2751 \end_layout
2752
2753 \end_inset
2754
2755  The iconv name for the encoding of the document.
2756 \end_layout
2757
2758 \begin_layout Standard
2759 In the 
2760 \begin_inset Flex Noun
2761 status collapsed
2762
2763 \begin_layout Plain Layout
2764 Extra
2765 \begin_inset space ~
2766 \end_inset
2767
2768 Flag
2769 \end_layout
2770
2771 \end_inset
2772
2773  field you can enter the following flags,
2774  separated by commas:
2775 \end_layout
2776
2777 \begin_layout Labeling
2778 \labelwidthstring 00.00.0000
2779 \begin_inset Flex Code
2780 status collapsed
2781
2782 \begin_layout Plain Layout
2783 latex
2784 \change_inserted -712698321 1524656940
2785 =flavor
2786 \change_unchanged
2787
2788 \end_layout
2789
2790 \end_inset
2791
2792  This converter runs some form of \SpecialChar LaTeX
2793 .
2794  This will make \SpecialChar LyX
2795 's \SpecialChar LaTeX
2796  error logs available.
2797
2798 \change_inserted -712698321 1524657018
2799  The optional 
2800 \begin_inset Flex Code
2801 status open
2802
2803 \begin_layout Plain Layout
2804
2805 \change_inserted -712698321 1524657012
2806 flavor
2807 \change_unchanged
2808
2809 \end_layout
2810
2811 \end_inset
2812
2813  value specifies the form of \SpecialChar LaTeX
2814  that is run (
2815 \begin_inset Flex Code
2816 status open
2817
2818 \begin_layout Plain Layout
2819
2820 \change_inserted -712698321 1524657005
2821 latex,
2822  pdflatex,
2823  platex,
2824  xetex,
2825  luatex
2826 \change_unchanged
2827
2828 \end_layout
2829
2830 \end_inset
2831
2832 ).
2833  If no value is specified,
2834  
2835 \begin_inset Flex Code
2836 status open
2837
2838 \begin_layout Plain Layout
2839
2840 \change_inserted -712698321 1524657018
2841 latex
2842 \change_unchanged
2843
2844 \end_layout
2845
2846 \end_inset
2847
2848  is used.
2849 \change_unchanged
2850
2851 \end_layout
2852
2853 \begin_layout Labeling
2854 \labelwidthstring 00.00.0000
2855
2856 \change_inserted -712698321 1676553236
2857 \begin_inset Flex Code
2858 status collapsed
2859
2860 \begin_layout Plain Layout
2861
2862 \change_inserted -712698321 1676552303
2863 needauth
2864 \change_unchanged
2865
2866 \end_layout
2867
2868 \end_inset
2869
2870  This converter is considered non-safe and needs authorization by the user.
2871  Depending on the settings in 
2872 \family sans
2873 Tools\SpecialChar menuseparator
2874 Preferences\SpecialChar menuseparator
2875 File Handling\SpecialChar menuseparator
2876 Converters
2877 \family default
2878 ,
2879  users will (a.) be asked whether they trust the current document temporarily,
2880  permanently,
2881  or not,
2882  (b.) be informed that conversion is not possible due to security concerns,
2883  or (c.) not be informed as they gave permanent consent.
2884  Set this flag for converters that might execute arbitrary programs.
2885 \end_layout
2886
2887 \begin_layout Labeling
2888 \labelwidthstring 00.00.0000
2889 \begin_inset Flex Code
2890 status collapsed
2891
2892 \begin_layout Plain Layout
2893 needaux
2894 \change_inserted -712698321 1524656935
2895 =flavor
2896 \change_unchanged
2897
2898 \end_layout
2899
2900 \end_inset
2901
2902  Needs the \SpecialChar LaTeX
2903  
2904 \begin_inset Flex Noun
2905 status collapsed
2906
2907 \begin_layout Plain Layout
2908 .aux
2909 \end_layout
2910
2911 \end_inset
2912
2913  file for the conversion.
2914
2915 \change_inserted -712698321 1524657047
2916  The optional 
2917 \begin_inset Flex Code
2918 status open
2919
2920 \begin_layout Plain Layout
2921
2922 \change_inserted -712698321 1524657030
2923 flavor
2924 \change_unchanged
2925
2926 \end_layout
2927
2928 \end_inset
2929
2930  value specifies the form of \SpecialChar LaTeX
2931  that is run in order to generate the 
2932 \begin_inset Flex Noun
2933 status collapsed
2934
2935 \begin_layout Plain Layout
2936
2937 \change_inserted -712698321 1524657047
2938 .aux
2939 \change_unchanged
2940
2941 \end_layout
2942
2943 \end_inset
2944
2945  file (
2946 \begin_inset Flex Code
2947 status open
2948
2949 \begin_layout Plain Layout
2950
2951 \change_inserted -712698321 1524657030
2952 latex,
2953  pdflatex,
2954  platex,
2955  xetex,
2956  luatex
2957 \change_unchanged
2958
2959 \end_layout
2960
2961 \end_inset
2962
2963 ).
2964  If no value is specified,
2965  
2966 \begin_inset Flex Code
2967 status open
2968
2969 \begin_layout Plain Layout
2970
2971 \change_inserted -712698321 1524657030
2972 latex
2973 \change_unchanged
2974
2975 \end_layout
2976
2977 \end_inset
2978
2979  is used.
2980 \change_unchanged
2981
2982 \end_layout
2983
2984 \begin_layout Labeling
2985 \labelwidthstring 00.00.0000
2986 \begin_inset Flex Code
2987 status collapsed
2988
2989 \begin_layout Plain Layout
2990 nice
2991 \end_layout
2992
2993 \end_inset
2994
2995  Needs a 
2996 \begin_inset Quotes eld
2997 \end_inset
2998
2999 nice
3000 \begin_inset Quotes erd
3001 \end_inset
3002
3003  file from the backend,
3004  which in practice means a \SpecialChar LaTeX
3005  file like the one we would export,
3006  without 
3007 \begin_inset Flex Code
3008 status collapsed
3009
3010 \begin_layout Plain Layout
3011 input@path
3012 \end_layout
3013
3014 \end_inset
3015
3016 .
3017 \end_layout
3018
3019 \begin_layout Labeling
3020 \labelwidthstring 00.00.0000
3021 \begin_inset Flex Code
3022 status collapsed
3023
3024 \begin_layout Plain Layout
3025 xml
3026 \end_layout
3027
3028 \end_inset
3029
3030  Output is XML.
3031 \end_layout
3032
3033 \begin_layout Standard
3034 The following three flags are not really flags at all because they take an argument in the 
3035 \begin_inset Flex Noun
3036 status collapsed
3037
3038 \begin_layout Plain Layout
3039 key
3040 \begin_inset space ~
3041 \end_inset
3042
3043 =
3044 \begin_inset space ~
3045 \end_inset
3046
3047 value
3048 \end_layout
3049
3050 \end_inset
3051
3052  format:
3053 \end_layout
3054
3055 \begin_layout Labeling
3056 \labelwidthstring 00.00.0000
3057
3058 \change_inserted -712698321 1523206314
3059 \begin_inset Flex Code
3060 status collapsed
3061
3062 \begin_layout Plain Layout
3063
3064 \change_inserted -712698321 1523206193
3065 hyperref-driver
3066 \change_unchanged
3067
3068 \end_layout
3069
3070 \end_inset
3071
3072  The name of the driver that needs to be loaded with the 
3073 \family sans
3074 hyperref
3075 \family default
3076  package for this converter.
3077  The loading of the correct driver is necessary to get some PDF-specific features.
3078  See the 
3079 \family sans
3080 hyperref
3081 \family default
3082  manual for details.
3083 \end_layout
3084
3085 \begin_layout Labeling
3086 \labelwidthstring 00.00.0000
3087 \begin_inset Flex Code
3088 status collapsed
3089
3090 \begin_layout Plain Layout
3091 parselog
3092 \end_layout
3093
3094 \end_inset
3095
3096  If set,
3097  the converter's standard error will be redirected to a file 
3098 \begin_inset Flex Code
3099 status collapsed
3100
3101 \begin_layout Plain Layout
3102 infile.out
3103 \end_layout
3104
3105 \end_inset
3106
3107 ,
3108  and the script given as argument will be run as:
3109  
3110 \begin_inset Flex Code
3111 status collapsed
3112
3113 \begin_layout Plain Layout
3114 script < infile.out > infile.log
3115 \end_layout
3116
3117 \end_inset
3118
3119 .
3120  The argument may contain 
3121 \begin_inset Flex Code
3122 status collapsed
3123
3124 \begin_layout Plain Layout
3125 $$s
3126 \end_layout
3127
3128 \end_inset
3129
3130 .
3131 \end_layout
3132
3133 \begin_layout Labeling
3134 \labelwidthstring 00.00.0000
3135 \begin_inset Flex Code
3136 status collapsed
3137
3138 \begin_layout Plain Layout
3139 resultdir
3140 \end_layout
3141
3142 \end_inset
3143
3144  The name of the directory in which the converter will dump the generated files.
3145  \SpecialChar LyX
3146  will not create this directory,
3147  and it does not copy anything into it,
3148  though it will copy this directory to the destination.
3149  The argument may contain 
3150 \begin_inset Flex Code
3151 status collapsed
3152
3153 \begin_layout Plain Layout
3154 $$b
3155 \end_layout
3156
3157 \end_inset
3158
3159 ,
3160  which will be replaced by the base name of the input and output files,
3161  respectively,
3162  when the directory is copied.
3163 \begin_inset Newline newline
3164 \end_inset
3165
3166 Note that resultdir and usetempdir make no sense together.
3167  The latter will be ignored if the former is given.
3168 \end_layout
3169
3170 \begin_layout Labeling
3171 \labelwidthstring 00.00.0000
3172 \begin_inset Flex Code
3173 status collapsed
3174
3175 \begin_layout Plain Layout
3176 resultfile
3177 \end_layout
3178
3179 \end_inset
3180
3181  Determines the output file name and may,
3182  contain 
3183 \begin_inset Flex Code
3184 status collapsed
3185
3186 \begin_layout Plain Layout
3187 $$b
3188 \end_layout
3189
3190 \end_inset
3191
3192 .
3193  Sensible only with resultdir and optional even then;
3194  if not given,
3195  it defaults to `index'.
3196 \end_layout
3197
3198 \begin_layout Standard
3199
3200 \change_inserted -712698321 1523206384
3201 A suitable hyperref-driver is set for some converters that are installed with \SpecialChar LyX
3202 .
3203  
3204 \change_deleted -712698321 1523206388
3205 None of these
3206 \change_inserted -712698321 1523206389
3207 The
3208 \change_unchanged
3209  last three
3210 \change_inserted -712698321 1523206400
3211  flags,
3212  however,
3213
3214 \change_unchanged
3215  are presently 
3216 \change_inserted -712698321 1523206407
3217 not 
3218 \change_unchanged
3219 used in any of the 
3220 \change_inserted -712698321 1523206437
3221 pre-installed 
3222 \change_unchanged
3223 converters
3224 \change_deleted -712698321 1523206442
3225  that are installed with \SpecialChar LyX
3226
3227 \change_unchanged
3228 .
3229  
3230 \end_layout
3231
3232 \begin_layout Standard
3233 You do not have to define converters for all formats between which you want to convert.
3234  For example,
3235  you will note that there is no `\SpecialChar LyX
3236  to PostScript' converter,
3237  but \SpecialChar LyX
3238  will export PostScript.
3239  It does so by first creating a \SpecialChar LaTeX
3240  file (no converter needs to be defined for this) which is then converted to DVI using the `\SpecialChar LaTeX
3241  to DVI' converter,
3242  and finally converting the resulting DVI file to PostScript.
3243  \SpecialChar LyX
3244  finds such `chains' of converters automatically,
3245  and it will always choose the shortest possible chain.
3246  You can,
3247  though,
3248  still define multiple conversion methods between file formats.
3249  For example,
3250  the standard \SpecialChar LyX
3251  configuration provides five ways to convert \SpecialChar LaTeX
3252  to PDF:
3253 \end_layout
3254
3255 \begin_layout Enumerate
3256 Directly,
3257  using 
3258 \begin_inset Flex Noun
3259 status collapsed
3260
3261 \begin_layout Plain Layout
3262 pdflatex
3263 \end_layout
3264
3265 \end_inset
3266
3267
3268 \end_layout
3269
3270 \begin_layout Enumerate
3271 via (DVI and) PostScript,
3272  using 
3273 \begin_inset Flex Noun
3274 status collapsed
3275
3276 \begin_layout Plain Layout
3277 ps2pdf
3278 \end_layout
3279
3280 \end_inset
3281
3282
3283 \end_layout
3284
3285 \begin_layout Enumerate
3286 via DVI,
3287  using 
3288 \begin_inset Flex Noun
3289 status collapsed
3290
3291 \begin_layout Plain Layout
3292 dvipdfm
3293 \end_layout
3294
3295 \end_inset
3296
3297
3298 \end_layout
3299
3300 \begin_layout Enumerate
3301 directly using 
3302 \begin_inset Flex Noun
3303 status collapsed
3304
3305 \begin_layout Plain Layout
3306 Xe\SpecialChar TeX
3307
3308 \end_layout
3309
3310 \end_inset
3311
3312
3313 \end_layout
3314
3315 \begin_layout Enumerate
3316 directly using 
3317 \begin_inset Flex Noun
3318 status collapsed
3319
3320 \begin_layout Plain Layout
3321 Lua\SpecialChar TeX
3322
3323 \end_layout
3324
3325 \end_inset
3326
3327
3328 \end_layout
3329
3330 \begin_layout Standard
3331 To define such alternate chains,
3332  you must define multiple target `file formats',
3333  as described in 
3334 \begin_inset CommandInset ref
3335 LatexCommand ref
3336 reference "sec:Formats"
3337 nolink "false"
3338
3339 \end_inset
3340
3341 .
3342  For example,
3343  in the standard configuration,
3344  the formats named 
3345 \begin_inset Flex Noun
3346 status collapsed
3347
3348 \begin_layout Plain Layout
3349 pdf
3350 \end_layout
3351
3352 \end_inset
3353
3354  (for 
3355 \begin_inset Flex Noun
3356 status collapsed
3357
3358 \begin_layout Plain Layout
3359 ps2pdf
3360 \end_layout
3361
3362 \end_inset
3363
3364 ),
3365  
3366 \begin_inset Flex Noun
3367 status collapsed
3368
3369 \begin_layout Plain Layout
3370 pdf2
3371 \end_layout
3372
3373 \end_inset
3374
3375  (for 
3376 \begin_inset Flex Noun
3377 status collapsed
3378
3379 \begin_layout Plain Layout
3380 pdflatex
3381 \end_layout
3382
3383 \end_inset
3384
3385 ),
3386  
3387 \begin_inset Flex Noun
3388 status collapsed
3389
3390 \begin_layout Plain Layout
3391 pdf3
3392 \end_layout
3393
3394 \end_inset
3395
3396  (for 
3397 \begin_inset Flex Noun
3398 status collapsed
3399
3400 \begin_layout Plain Layout
3401 dvipdfm
3402 \end_layout
3403
3404 \end_inset
3405
3406 ),
3407  
3408 \begin_inset Flex Noun
3409 status collapsed
3410
3411 \begin_layout Plain Layout
3412 pdf4
3413 \end_layout
3414
3415 \end_inset
3416
3417  (for 
3418 \begin_inset Flex Noun
3419 status collapsed
3420
3421 \begin_layout Plain Layout
3422 Xe\SpecialChar TeX
3423
3424 \end_layout
3425
3426 \end_inset
3427
3428 ),
3429  and 
3430 \begin_inset Flex Noun
3431 status collapsed
3432
3433 \begin_layout Plain Layout
3434 pdf5
3435 \end_layout
3436
3437 \end_inset
3438
3439  (for 
3440 \begin_inset Flex Noun
3441 status collapsed
3442
3443 \begin_layout Plain Layout
3444 Lua\SpecialChar TeX
3445
3446 \end_layout
3447
3448 \end_inset
3449
3450 ) are defined,
3451  all of which share the extension 
3452 \begin_inset Flex Noun
3453 status collapsed
3454
3455 \begin_layout Plain Layout
3456 .pdf
3457 \end_layout
3458
3459 \end_inset
3460
3461 ,
3462  and which correspond to the conversion methods just mentioned.
3463 \end_layout
3464
3465 \begin_layout Chapter
3466 Internationalizing \SpecialChar LyX
3467
3468 \begin_inset CommandInset label
3469 LatexCommand label
3470 name "cha:Internationalizing-LyX"
3471
3472 \end_inset
3473
3474
3475 \end_layout
3476
3477 \begin_layout Standard
3478 \SpecialChar LyX
3479  supports using a translated interface.
3480  Last time we checked,
3481  \SpecialChar LyX
3482  provided text in thirty languages.
3483  The language of choice is called your 
3484 \emph on
3485 locale
3486 \emph default
3487 .
3488  (For further reading on locale settings,
3489  see also the documentation for locale that comes with your operating system.
3490  For Linux,
3491  the manual page for 
3492 \begin_inset Flex Code
3493 status collapsed
3494
3495 \begin_layout Plain Layout
3496 locale(5)
3497 \end_layout
3498
3499 \end_inset
3500
3501  could be a good place to start).
3502 \end_layout
3503
3504 \begin_layout Standard
3505 Notice that these translations will work,
3506  but do contain a few flaws.
3507  In particular,
3508  all dialogs have been designed with the English text in mind,
3509  which means that some of the translated text will be too large to fit within the space allocated.
3510  This is only a display problem and will not cause any harm.
3511  Also,
3512  you will find that some of the translations do not define shortcut keys for everything.
3513  Sometimes,
3514  there are simply not enough free letters to do it.
3515  Other times,
3516  the translator just hasn't got around to doing it yet.
3517  Our localization team,
3518  which you may wish to join,
3519 \begin_inset Foot
3520 status collapsed
3521
3522 \begin_layout Plain Layout
3523 If you are a fluent speaker of a language other than English,
3524  joining these teams is a great way to give back to the \SpecialChar LyX
3525  community!
3526 \end_layout
3527
3528 \end_inset
3529
3530  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3531 .
3532 \end_layout
3533
3534 \begin_layout Section
3535 Translating \SpecialChar LyX
3536
3537 \end_layout
3538
3539 \begin_layout Subsection
3540 Translating the graphical user interface (text messages).
3541 \end_layout
3542
3543 \begin_layout Standard
3544 \SpecialChar LyX
3545  uses the GNU 
3546 \begin_inset Flex Code
3547 status collapsed
3548
3549 \begin_layout Plain Layout
3550 gettext
3551 \end_layout
3552
3553 \end_inset
3554
3555  library to handle the internationalization of the interface.
3556  To have \SpecialChar LyX
3557  speak your favorite language in all menus and dialogs,
3558  you need a 
3559 \begin_inset Flex Code
3560 status collapsed
3561
3562 \begin_layout Plain Layout
3563 po
3564 \end_layout
3565
3566 \end_inset
3567
3568 -file for that language.
3569  When this is available,
3570  you'll have to generate a 
3571 \begin_inset Flex Code
3572 status collapsed
3573
3574 \begin_layout Plain Layout
3575 mo
3576 \end_layout
3577
3578 \end_inset
3579
3580 -file from it and install the 
3581 \begin_inset Flex Code
3582 status collapsed
3583
3584 \begin_layout Plain Layout
3585 mo
3586 \end_layout
3587
3588 \end_inset
3589
3590 -file.
3591  The process of doing all of this is explained in the documentation for GNU 
3592 \begin_inset Flex Code
3593 status collapsed
3594
3595 \begin_layout Plain Layout
3596 gettext
3597 \end_layout
3598
3599 \end_inset
3600
3601 .
3602  It is possible to do this just for yourself,
3603  but if you're going to do it,
3604  you might as well share the results of your labors with the rest of the \SpecialChar LyX
3605  community.
3606  Send a message to the \SpecialChar LyX
3607  developers' list for more information about how to proceed.
3608 \end_layout
3609
3610 \begin_layout Standard
3611 In short,
3612  this is what you should do (xx denotes the language code):
3613 \end_layout
3614
3615 \begin_layout Itemize
3616 Check out the \SpecialChar LyX
3617  source code.
3618  (See the 
3619 \begin_inset CommandInset href
3620 LatexCommand href
3621 name "information on the web"
3622 target "https://www.lyx.org/HowToUseGIT"
3623 literal "false"
3624
3625 \end_inset
3626
3627 .)
3628 \end_layout
3629
3630 \begin_layout Itemize
3631 Copy the file 
3632 \begin_inset Flex Code
3633 status collapsed
3634
3635 \begin_layout Plain Layout
3636 lyx.pot
3637 \end_layout
3638
3639 \end_inset
3640
3641  to the folder of the 
3642 \begin_inset Flex Code
3643 status collapsed
3644
3645 \begin_layout Plain Layout
3646 **.po
3647 \end_layout
3648
3649 \end_inset
3650
3651  files.
3652  Then rename it to 
3653 \begin_inset Flex Code
3654 status collapsed
3655
3656 \begin_layout Plain Layout
3657 xx.po
3658 \end_layout
3659
3660 \end_inset
3661
3662 .
3663  (If 
3664 \begin_inset Flex Code
3665 status collapsed
3666
3667 \begin_layout Plain Layout
3668 lyx.pot
3669 \end_layout
3670
3671 \end_inset
3672
3673  doesn't exist anywhere,
3674  it can be remade with the console command 
3675 \begin_inset Flex Code
3676 status collapsed
3677
3678 \begin_layout Plain Layout
3679 make lyx.pot
3680 \end_layout
3681
3682 \end_inset
3683
3684  in that directory,
3685  or you can use an existing po-file for some other language as a template).
3686 \end_layout
3687
3688 \begin_layout Itemize
3689 Edit 
3690 \begin_inset Flex Code
3691 status collapsed
3692
3693 \begin_layout Plain Layout
3694 xx.po
3695 \end_layout
3696
3697 \end_inset
3698
3699 .
3700 \begin_inset Foot
3701 status collapsed
3702
3703 \begin_layout Plain Layout
3704 This is just a text file,
3705  so it can be edited in any text editor.
3706  But there are also specialized programs that support such editing,
3707  such as 
3708 \family typewriter
3709 Poedit
3710 \family default
3711  (for all platforms) or 
3712 \family typewriter
3713 KBabel
3714 \family default
3715  (for KDE).
3716  
3717 \family typewriter
3718 Emacs
3719 \family default
3720  contains a `mode' for editing 
3721 \begin_inset Flex Code
3722 status collapsed
3723
3724 \begin_layout Plain Layout
3725 po
3726 \end_layout
3727
3728 \end_inset
3729
3730  files,
3731  as well,
3732  see 
3733 \begin_inset Flex URL
3734 status open
3735
3736 \begin_layout Plain Layout
3737
3738 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3739 \end_layout
3740
3741 \end_inset
3742
3743 .
3744 \end_layout
3745
3746 \end_inset
3747
3748  For some menu- and widget-labels,
3749  there are also shortcut keys that should be translated.
3750  Those keys are marked after a `|',
3751  and should be translated according to the words and phrases of the language.
3752  You should also fill also out the information at the beginning of the new 
3753 \begin_inset Flex Code
3754 status collapsed
3755
3756 \begin_layout Plain Layout
3757 po
3758 \end_layout
3759
3760 \end_inset
3761
3762 -file with your email-address,
3763  etc.,
3764  so people know where to reach you with suggestions and entertaining flames.
3765 \end_layout
3766
3767 \begin_layout Standard
3768 If you are just doing this on your own,
3769  then:
3770 \end_layout
3771
3772 \begin_layout Itemize
3773 Generate 
3774 \begin_inset Flex Code
3775 status collapsed
3776
3777 \begin_layout Plain Layout
3778 xx.mo
3779 \end_layout
3780
3781 \end_inset
3782
3783 .
3784  This can be done with 
3785 \begin_inset Flex Code
3786 status collapsed
3787
3788 \begin_layout Plain Layout
3789 msgfmt -o xx.mo < xx.po
3790 \end_layout
3791
3792 \end_inset
3793
3794 .
3795 \end_layout
3796
3797 \begin_layout Itemize
3798 Copy the 
3799 \begin_inset Flex Code
3800 status collapsed
3801
3802 \begin_layout Plain Layout
3803 mo
3804 \end_layout
3805
3806 \end_inset
3807
3808 -file to your locale-tree,
3809  at the correct directory for application messages for the language
3810 \series bold
3811  
3812 \series default
3813 xx,
3814  and under the name 
3815 \begin_inset Flex Code
3816 status collapsed
3817
3818 \begin_layout Plain Layout
3819 lyx.mo
3820 \end_layout
3821
3822 \end_inset
3823
3824  (e.
3825 \begin_inset space \thinspace{}
3826 \end_inset
3827
3828 g.
3829 \begin_inset space \space{}
3830 \end_inset
3831
3832
3833 \begin_inset Flex Code
3834 status collapsed
3835
3836 \begin_layout Plain Layout
3837 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3838 \end_layout
3839
3840 \end_inset
3841
3842
3843 \series bold
3844 .
3845 \end_layout
3846
3847 \begin_layout Standard
3848 As said,
3849  however,
3850  it would be best if the new 
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855 po
3856 \end_layout
3857
3858 \end_inset
3859
3860  file could be added to the \SpecialChar LyX
3861  distribution,
3862  so others can use it.
3863  Adding it involves making additional changes to \SpecialChar LyX
3864 .
3865  So send an email to the developers' mailing list if you're interested in doing that.
3866 \end_layout
3867
3868 \begin_layout Subsubsection
3869 Ambiguous messages
3870 \end_layout
3871
3872 \begin_layout Standard
3873 Sometimes it turns out that one English message needs to be translated into different messages in the target language.
3874  One example is the message 
3875 \begin_inset Flex Code
3876 status collapsed
3877
3878 \begin_layout Plain Layout
3879 To
3880 \end_layout
3881
3882 \end_inset
3883
3884  which has the German translation 
3885 \lang german
3886 Nach
3887 \lang english
3888  or 
3889 \lang german
3890 Bis
3891 \lang english
3892 ,
3893  depending upon exactly what the English 
3894 \begin_inset Quotes eld
3895 \end_inset
3896
3897 to
3898 \begin_inset Quotes erd
3899 \end_inset
3900
3901  means.
3902  GNU 
3903 \begin_inset Flex Code
3904 status collapsed
3905
3906 \begin_layout Plain Layout
3907 gettext
3908 \end_layout
3909
3910 \end_inset
3911
3912  does not handle such ambiguous translations.
3913  Therefore you have to add some context information to the message:
3914  Instead of 
3915 \begin_inset Flex Code
3916 status collapsed
3917
3918 \begin_layout Plain Layout
3919 To
3920 \end_layout
3921
3922 \end_inset
3923
3924  it becomes 
3925 \begin_inset Flex Code
3926 status collapsed
3927
3928 \begin_layout Plain Layout
3929 To[[as in 'From format x to format y']]
3930 \end_layout
3931
3932 \end_inset
3933
3934  and 
3935 \begin_inset Flex Code
3936 status collapsed
3937
3938 \begin_layout Plain Layout
3939 To[[as in 'From page x to page y']].
3940 \end_layout
3941
3942 \end_inset
3943
3944  Now the two occurrences of 
3945 \begin_inset Flex Code
3946 status collapsed
3947
3948 \begin_layout Plain Layout
3949 To
3950 \end_layout
3951
3952 \end_inset
3953
3954  are different for 
3955 \begin_inset Flex Code
3956 status collapsed
3957
3958 \begin_layout Plain Layout
3959 gettext
3960 \end_layout
3961
3962 \end_inset
3963
3964  and can be translated correctly to 
3965 \lang german
3966 Nach
3967 \lang english
3968  and 
3969 \lang german
3970 Bis
3971 \lang english
3972 ,
3973  respectively.
3974 \end_layout
3975
3976 \begin_layout Standard
3977 Of course the context information needs to be stripped off the original message when no translation is used.
3978  Therefore you have to put it in double square brackets at the end of the message (see the example above).
3979  The translation mechanism of \SpecialChar LyX
3980  ensures that everything in double square brackets at the end of messages is removed before displaying the message.
3981 \end_layout
3982
3983 \begin_layout Subsection
3984 Translating the documentation.
3985 \end_layout
3986
3987 \begin_layout Standard
3988 The online documentation (in the 
3989 \begin_inset Flex Noun
3990 status collapsed
3991
3992 \begin_layout Plain Layout
3993 Help
3994 \end_layout
3995
3996 \end_inset
3997
3998 -menu) can (and should!) be translated.
3999  If there are translated versions of the documentation available
4000 \begin_inset Foot
4001 status collapsed
4002
4003 \begin_layout Plain Layout
4004 As of March 2008,
4005  at least some of the documents have been translated into fourteen languages,
4006  with the Tutorial available in a few more.
4007 \end_layout
4008
4009 \end_inset
4010
4011  and the locale is set accordingly,
4012  these will be used automagically by \SpecialChar LyX
4013 .
4014  \SpecialChar LyX
4015  looks for translated versions as 
4016 \begin_inset Flex Code
4017 status collapsed
4018
4019 \begin_layout Plain Layout
4020 LyXDir/doc/xx/DocName.lyx
4021 \end_layout
4022
4023 \end_inset
4024
4025 ,
4026  where 
4027 \begin_inset Flex Code
4028 status collapsed
4029
4030 \begin_layout Plain Layout
4031 xx
4032 \end_layout
4033
4034 \end_inset
4035
4036  is the code for the language currently in use.
4037  If there are no translated documents,
4038  the default English versions will be displayed.
4039  Note that the translated versions must have the same filenames (
4040 \begin_inset Flex Code
4041 status collapsed
4042
4043 \begin_layout Plain Layout
4044 DocName
4045 \end_layout
4046
4047 \end_inset
4048
4049  above) as the original.
4050  If you feel up to translating the documentation (an excellent way to proof-read the original documentation by the way!),
4051  there are a few things you should do right away:
4052 \end_layout
4053
4054 \begin_layout Itemize
4055 Check out the documentation translation web page at 
4056 \begin_inset CommandInset href
4057 LatexCommand href
4058 name "https://www.lyx.org/Translation"
4059 target "https://www.lyx.org/Translation"
4060 literal "false"
4061
4062 \end_inset
4063
4064 .
4065  That way,
4066  you can find out which (if any) documents have already been translated into your language.
4067  You can also find out who (if anyone) is organizing the effort to translate the documentation into your language.
4068  If no one is organizing the effort,
4069  please let us know that you're interested.
4070 \end_layout
4071
4072 \begin_layout Standard
4073 Once you get to actually translating,
4074  here's a few hints for you that may save you trouble:
4075 \end_layout
4076
4077 \begin_layout Itemize
4078 Join the documentation team!
4079  There is information on how to do that in 
4080 \begin_inset Flex Code
4081 status collapsed
4082
4083 \begin_layout Plain Layout
4084 Intro.lyx
4085 \end_layout
4086
4087 \end_inset
4088
4089  (
4090 \begin_inset Flex Noun
4091 status collapsed
4092
4093 \begin_layout Plain Layout
4094 Help\SpecialChar menuseparator
4095 Introduction
4096 \end_layout
4097
4098 \end_inset
4099
4100 ),
4101  which by the way is the first document you should translate.
4102 \end_layout
4103
4104 \begin_layout Itemize
4105 Learn the typographic conventions for the language you are translating to.
4106  Typography is an ancient art and over the centuries,
4107  a great variety of conventions have developed throughout different parts of the world.
4108  Also study the professional terminology amongst typographers in your country.
4109  Inventing your own terminology will only confuse the users.
4110  
4111 \emph on
4112 (Warning!
4113  Typography is addictive!)
4114 \end_layout
4115
4116 \begin_layout Itemize
4117 Make a copy of the document.
4118  This will be your working copy.
4119  You can use this as your personal translated help-file by placing it in your 
4120 \begin_inset Flex Code
4121 status collapsed
4122
4123 \begin_layout Plain Layout
4124 UserDir/doc/xx/
4125 \end_layout
4126
4127 \end_inset
4128
4129  directory.
4130 \begin_inset Note Greyedout
4131 status open
4132
4133 \begin_layout Plain Layout
4134
4135 \series bold
4136 Note:
4137
4138 \series default
4139  For a complex document with external material (images,
4140  etc.),
4141  if you make a copy e.
4142 \begin_inset space \thinspace{}
4143 \end_inset
4144
4145 g.
4146 \begin_inset space \space{}
4147 \end_inset
4148
4149 in a temp dir,
4150  beware that the links to external material may be broken when the document is moved to a different place.
4151  The best way is to retrieve the \SpecialChar LyX
4152  tree from git (see 
4153 \begin_inset Flex URL
4154 status collapsed
4155
4156 \begin_layout Plain Layout
4157
4158 https://www.lyx.org/HowToUseGIT
4159 \end_layout
4160
4161 \end_inset
4162
4163 ) and to edit the doc file in place.
4164 \end_layout
4165
4166 \end_inset
4167
4168
4169 \end_layout
4170
4171 \begin_layout Itemize
4172 Sometimes the original document (from the \SpecialChar LyX
4173  team) will be updated.
4174  Use the source viewer at 
4175 \begin_inset CommandInset href
4176 LatexCommand href
4177 name "https://www.lyx.org/trac/timeline"
4178 target "https://www.lyx.org/trac/timeline"
4179 literal "false"
4180
4181 \end_inset
4182
4183  to see what has been changed.
4184  That way you can easily see which parts of the translated document need to be updated.
4185 \end_layout
4186
4187 \begin_layout Standard
4188 If you ever find an error in the original document,
4189  fix it and notify the rest of the documentation team of the changes!
4190  (You didn't forget to join the documentation team,
4191  did you?)
4192 \end_layout
4193
4194 \begin_layout Standard
4195 \begin_inset Branch OutDated
4196 inverted 0
4197 status collapsed
4198
4199 \begin_layout Section
4200 International Keyboard Support
4201 \end_layout
4202
4203 \begin_layout Standard
4204
4205 \emph on
4206 [Editor's Note:
4207  The following section is by
4208 \emph default
4209  
4210 \shape smallcaps
4211 \emph on
4212 Ivan Schreter
4213 \shape default
4214 .
4215  It needs to be fixed to conform to the new Documentation Style sheet and to make use of the new v1.0 features.
4216  The whole thing also needs to be merged with the section following it.-jw It may also be badly out of date.-rh (2008)]
4217 \end_layout
4218
4219 \begin_layout Subsection
4220 Defining Own Keymaps:
4221  Keymap File Format
4222 \end_layout
4223
4224 \begin_layout Standard
4225 Let's look at a keyboard definition file a little closer.
4226  It is a plain text file defining
4227 \end_layout
4228
4229 \begin_layout Itemize
4230 key-to-key or key-to-string translations
4231 \end_layout
4232
4233 \begin_layout Itemize
4234 dead keys
4235 \end_layout
4236
4237 \begin_layout Itemize
4238 dead keys exceptions
4239 \end_layout
4240
4241 \begin_layout Standard
4242 To define key-to-key or key-to-string translation,
4243  use this command:
4244 \end_layout
4245
4246 \begin_layout Quotation
4247 \begin_inset Flex Code
4248 status collapsed
4249
4250 \begin_layout Plain Layout
4251
4252 \backslash
4253 kmap
4254 \end_layout
4255
4256 \end_inset
4257
4258  
4259 \begin_inset Flex Code
4260 status collapsed
4261
4262 \begin_layout Plain Layout
4263 key
4264 \end_layout
4265
4266 \end_inset
4267
4268  outstring 
4269 \end_layout
4270
4271 \begin_layout Standard
4272 where 
4273 \begin_inset Flex Code
4274 status collapsed
4275
4276 \begin_layout Plain Layout
4277 key
4278 \end_layout
4279
4280 \end_inset
4281
4282  is the key to be translated and 
4283 \begin_inset Flex Code
4284 status collapsed
4285
4286 \begin_layout Plain Layout
4287 outstring
4288 \end_layout
4289
4290 \end_inset
4291
4292  is the string to be inserted into the document.
4293  To define dead keys,
4294  use:
4295 \end_layout
4296
4297 \begin_layout Quotation
4298 \begin_inset Flex Code
4299 status collapsed
4300
4301 \begin_layout Plain Layout
4302
4303 \backslash
4304 kmod
4305 \end_layout
4306
4307 \end_inset
4308
4309  
4310 \begin_inset Flex Code
4311 status collapsed
4312
4313 \begin_layout Plain Layout
4314 key
4315 \end_layout
4316
4317 \end_inset
4318
4319  deadkey
4320 \end_layout
4321
4322 \begin_layout Standard
4323 where 
4324 \begin_inset Flex Code
4325 status collapsed
4326
4327 \begin_layout Plain Layout
4328 key
4329 \end_layout
4330
4331 \end_inset
4332
4333  is a keyboard key and 
4334 \begin_inset Flex Code
4335 status collapsed
4336
4337 \begin_layout Plain Layout
4338 deadkey
4339 \end_layout
4340
4341 \end_inset
4342
4343  is dead key name.
4344  The following dead keys are supported (shortcut name is in parentheses):
4345 \end_layout
4346
4347 \begin_layout Quotation
4348
4349 \emph on
4350 Name
4351 \begin_inset space \hfill{}
4352 \end_inset
4353
4354 Example
4355 \end_layout
4356
4357 \begin_layout Quotation
4358 acute (acu)
4359 \begin_inset space \hfill{}
4360 \end_inset
4361
4362 áéíóú
4363 \end_layout
4364
4365 \begin_layout Quotation
4366 grave (gra)
4367 \begin_inset space \hfill{}
4368 \end_inset
4369
4370 àèìòù
4371 \end_layout
4372
4373 \begin_layout Quotation
4374 macron (mac)
4375 \begin_inset space \hfill{}
4376 \end_inset
4377
4378  ō
4379 \end_layout
4380
4381 \begin_layout Quotation
4382 tilde (til)
4383 \begin_inset space \hfill{}
4384 \end_inset
4385
4386 ñÑ
4387 \end_layout
4388
4389 \begin_layout Quotation
4390 underbar (underb)
4391 \begin_inset space \hfill{}
4392 \end_inset
4393
4394
4395 \begin_inset ERT
4396 status open
4397
4398 \begin_layout Plain Layout
4399
4400
4401 \backslash
4402 b o
4403 \end_layout
4404
4405 \end_inset
4406
4407
4408 \end_layout
4409
4410 \begin_layout Quotation
4411 cedilla (ced)
4412 \begin_inset space \hfill{}
4413 \end_inset
4414
4415 çÇ
4416 \end_layout
4417
4418 \begin_layout Quotation
4419 underdot (underd)
4420 \begin_inset space \hfill{}
4421 \end_inset
4422
4423
4424 \begin_inset ERT
4425 status open
4426
4427 \begin_layout Plain Layout
4428
4429
4430 \backslash
4431 d o
4432 \end_layout
4433
4434 \end_inset
4435
4436
4437 \end_layout
4438
4439 \begin_layout Quotation
4440 circumflex (circu)
4441 \begin_inset space \hfill{}
4442 \end_inset
4443
4444 âêîôû
4445 \end_layout
4446
4447 \begin_layout Quotation
4448 circle (circl)
4449 \begin_inset space \hfill{}
4450 \end_inset
4451
4452 ÅůŮ
4453 \end_layout
4454
4455 \begin_layout Quotation
4456 tie (tie)
4457 \begin_inset space \hfill{}
4458 \end_inset
4459
4460
4461 \begin_inset ERT
4462 status open
4463
4464 \begin_layout Plain Layout
4465
4466
4467 \backslash
4468 t o
4469 \end_layout
4470
4471 \end_inset
4472
4473
4474 \end_layout
4475
4476 \begin_layout Quotation
4477 breve (bre)
4478 \begin_inset space \hfill{}
4479 \end_inset
4480
4481 ă
4482 \begin_inset ERT
4483 status open
4484
4485 \begin_layout Plain Layout
4486
4487
4488 \backslash
4489 u o
4490 \end_layout
4491
4492 \end_inset
4493
4494
4495 \end_layout
4496
4497 \begin_layout Quotation
4498 caron (car)
4499 \begin_inset space \hfill{}
4500 \end_inset
4501
4502 čšž
4503 \end_layout
4504
4505 \begin_layout Quotation
4506 hungarian umlaut (hug)
4507 \begin_inset space \hfill{}
4508 \end_inset
4509
4510 őű
4511 \end_layout
4512
4513 \begin_layout Quotation
4514 umlaut (uml)
4515 \begin_inset space \hfill{}
4516 \end_inset
4517
4518 äöü
4519 \end_layout
4520
4521 \begin_layout Quotation
4522 dot (dot)
4523 \begin_inset space \hfill{}
4524 \end_inset
4525
4526 ż
4527 \begin_inset ERT
4528 status open
4529
4530 \begin_layout Plain Layout
4531
4532
4533 \backslash
4534 .s
4535 \end_layout
4536
4537 \end_inset
4538
4539
4540 \end_layout
4541
4542 \begin_layout Standard
4543 Since in many international keyboards there are exceptions to what some dead keys should do,
4544  you can define them using
4545 \end_layout
4546
4547 \begin_layout Quotation
4548 \begin_inset Flex Code
4549 status collapsed
4550
4551 \begin_layout Plain Layout
4552
4553 \backslash
4554 kxmod
4555 \end_layout
4556
4557 \end_inset
4558
4559  deadkey key outstring
4560 \end_layout
4561
4562 \begin_layout Standard
4563 For example,
4564  on Slovak keyboard,
4565  if you enter caron-o,
4566  it generates circumflex-o,
4567  so you put in
4568 \end_layout
4569
4570 \begin_layout Quotation
4571 \begin_inset Flex Code
4572 status collapsed
4573
4574 \begin_layout Plain Layout
4575
4576 \backslash
4577 kxmod
4578 \end_layout
4579
4580 \end_inset
4581
4582  caron o "
4583 \backslash
4584 ^o"
4585 \end_layout
4586
4587 \begin_layout Standard
4588 to make it work correctly.
4589  Also,
4590  you have to define as exceptions dead keys over i and j,
4591  to remove the dot from them before inserting an accent mark.
4592  I will change this when the time comes,
4593  but so far I haven't had time.
4594 \end_layout
4595
4596 \begin_layout Standard
4597 Oh,
4598  and about characters:
4599  backslash is escaped,
4600  so to enter it,
4601  you'll need double backslash.
4602  Also,
4603  quotes and 
4604 \begin_inset Flex Code
4605 status collapsed
4606
4607 \begin_layout Plain Layout
4608 #
4609 \end_layout
4610
4611 \end_inset
4612
4613  have different meaning.
4614  
4615 \begin_inset Flex Code
4616 status collapsed
4617
4618 \begin_layout Plain Layout
4619 #
4620 \end_layout
4621
4622 \end_inset
4623
4624  marks comments,
4625  quotes start and end \SpecialChar LaTeX
4626 -style commands.
4627  To enter quote,
4628  you'll need to use 
4629 \begin_inset Flex Code
4630 status collapsed
4631
4632 \begin_layout Plain Layout
4633
4634 \backslash
4635 "
4636 \end_layout
4637
4638 \end_inset
4639
4640 ,
4641  to enter 
4642 \begin_inset Flex Code
4643 status collapsed
4644
4645 \begin_layout Plain Layout
4646 #
4647 \end_layout
4648
4649 \end_inset
4650
4651 ,
4652  use 
4653 \begin_inset Flex Code
4654 status collapsed
4655
4656 \begin_layout Plain Layout
4657
4658 \backslash
4659 #
4660 \end_layout
4661
4662 \end_inset
4663
4664 .
4665 \end_layout
4666
4667 \begin_layout Standard
4668 If you make a keyboard description file that works for your language,
4669  please mail it to me,
4670  so I can include it in the next keymap distribution.
4671 \end_layout
4672
4673 \begin_layout Standard
4674 More keywords will be supported in keymap configuration file in future,
4675  like
4676 \end_layout
4677
4678 \begin_layout Itemize
4679 \begin_inset Flex Code
4680 status collapsed
4681
4682 \begin_layout Plain Layout
4683
4684 \backslash
4685 kinclude filename
4686 \end_layout
4687
4688 \end_inset
4689
4690
4691 \emph on
4692
4693 \begin_inset space \hfill{}
4694 \end_inset
4695
4696
4697 \begin_inset Flex Code
4698 status collapsed
4699
4700 \begin_layout Plain Layout
4701 include
4702 \end_layout
4703
4704 \end_inset
4705
4706  another file
4707 \end_layout
4708
4709 \begin_layout Itemize
4710 \begin_inset Flex Code
4711 status collapsed
4712
4713 \begin_layout Plain Layout
4714
4715 \backslash
4716 kprog program
4717 \end_layout
4718
4719 \end_inset
4720
4721
4722 \emph on
4723
4724 \begin_inset space \hfill{}
4725 \end_inset
4726
4727
4728 \begin_inset Flex Code
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732 define
4733 \end_layout
4734
4735 \end_inset
4736
4737  an external keymap translation program 
4738 \end_layout
4739
4740 \begin_layout Standard
4741 Also,
4742  it should look into 
4743 \begin_inset Flex Code
4744 status collapsed
4745
4746 \begin_layout Plain Layout
4747 lyxrc
4748 \end_layout
4749
4750 \end_inset
4751
4752  file for defaults,
4753  too (for example,
4754  a 
4755 \begin_inset Flex Code
4756 status collapsed
4757
4758 \begin_layout Plain Layout
4759
4760 \backslash
4761 kinclude
4762 \end_layout
4763
4764 \end_inset
4765
4766  option to include default keyboard).
4767 \end_layout
4768
4769 \end_inset
4770
4771
4772 \end_layout
4773
4774 \begin_layout Section
4775 International Keymap Stuff
4776 \begin_inset CommandInset label
4777 LatexCommand label
4778 name "sec:International-Keymap-Stuff"
4779
4780 \end_inset
4781
4782
4783 \end_layout
4784
4785 \begin_layout Standard
4786 \begin_inset Note Note
4787 status open
4788
4789 \begin_layout Plain Layout
4790 In doing the revisions on this document in March 2008,
4791  I did not look over this stuff,
4792  as I do not understand it.
4793  It would be good if someone else could do so.
4794  (RH)
4795 \end_layout
4796
4797 \end_inset
4798
4799
4800 \end_layout
4801
4802 \begin_layout Standard
4803 The next two sections describe the 
4804 \begin_inset Flex Code
4805 status collapsed
4806
4807 \begin_layout Plain Layout
4808
4809 \shape up
4810 .kmap
4811 \end_layout
4812
4813 \end_inset
4814
4815  and 
4816 \begin_inset Flex Code
4817 status collapsed
4818
4819 \begin_layout Plain Layout
4820
4821 \shape up
4822 .cdef
4823 \end_layout
4824
4825 \end_inset
4826
4827  file syntax in detail.
4828  These sections should help you design your own key map if the ones provided do not meet your needs.
4829 \end_layout
4830
4831 \begin_layout Subsection
4832 The .kmap File
4833 \end_layout
4834
4835 \begin_layout Standard
4836
4837 \shape up
4838 .
4839 \begin_inset Flex Code
4840 status collapsed
4841
4842 \begin_layout Plain Layout
4843 kmap
4844 \end_layout
4845
4846 \end_inset
4847
4848  file maps keystrokes to characters or strings.
4849  As the name suggests,
4850  it sets a keyboard mapping.
4851  The 
4852 \begin_inset Flex Code
4853 status collapsed
4854
4855 \begin_layout Plain Layout
4856 .kmap
4857 \end_layout
4858
4859 \end_inset
4860
4861
4862 \shape default
4863  file keywords 
4864 \shape up
4865
4866 \begin_inset Flex Code
4867 status collapsed
4868
4869 \begin_layout Plain Layout
4870
4871 \shape up
4872 kmap
4873 \end_layout
4874
4875 \end_inset
4876
4877
4878 \shape default
4879 ,
4880
4881 \shape up
4882  
4883 \shape default
4884
4885 \begin_inset Flex Code
4886 status collapsed
4887
4888 \begin_layout Plain Layout
4889
4890 \shape up
4891 kmod
4892 \end_layout
4893
4894 \end_inset
4895
4896 ,
4897
4898 \shape up
4899  
4900 \shape default
4901
4902 \begin_inset Flex Code
4903 status collapsed
4904
4905 \begin_layout Plain Layout
4906
4907 \shape up
4908 kxmod
4909 \end_layout
4910
4911 \end_inset
4912
4913 ,
4914  and 
4915 \begin_inset Flex Code
4916 status collapsed
4917
4918 \begin_layout Plain Layout
4919
4920 \shape up
4921 kcomb
4922 \end_layout
4923
4924 \end_inset
4925
4926  are described in this section.
4927 \end_layout
4928
4929 \begin_layout Labeling
4930 \labelwidthstring 00.00.0000
4931 \begin_inset Flex Code
4932 status collapsed
4933
4934 \begin_layout Plain Layout
4935
4936 \shape up
4937 kmap
4938 \end_layout
4939
4940 \end_inset
4941
4942  Map a character to a string
4943 \end_layout
4944
4945 \begin_layout LyX-Code
4946
4947 \backslash
4948 kmap 
4949 \family roman
4950 \emph on
4951 char
4952 \family default
4953 \emph default
4954  
4955 \family roman
4956 \emph on
4957 string
4958 \end_layout
4959
4960 \begin_layout Standard
4961 This will ma
4962 \family roman
4963 p
4964 \family default
4965  
4966 \family roman
4967 \emph on
4968 char
4969 \family default
4970 \emph default
4971  
4972 \family roman
4973 to
4974 \family default
4975  
4976 \family roman
4977 \emph on
4978 string
4979 \emph default
4980 .
4981  Note that in
4982 \family default
4983  
4984 \family roman
4985 \emph on
4986 string
4987 \emph default
4988 ,
4989
4990 \family default
4991  
4992 \family roman
4993 \shape up
4994 the double-quote (")
4995 \family default
4996 \shape default
4997  
4998 \family roman
4999 and
5000 \family default
5001  
5002 \family roman
5003 \shape up
5004 the backslash (
5005 \backslash
5006 )
5007 \family default
5008 \shape default
5009  
5010 \family roman
5011 must be escaped with a preceding backslash (
5012 \shape up
5013
5014 \backslash
5015
5016 \shape default
5017 )
5018 \family default
5019 .
5020 \end_layout
5021
5022 \begin_layout Standard
5023 An example of a 
5024 \begin_inset Flex Noun
5025 status collapsed
5026
5027 \begin_layout Plain Layout
5028
5029 \shape up
5030 kmap
5031 \end_layout
5032
5033 \end_inset
5034
5035  statement to cause the symbol 
5036 \begin_inset Flex Noun
5037 status collapsed
5038
5039 \begin_layout Plain Layout
5040
5041 \shape up
5042 /
5043 \end_layout
5044
5045 \end_inset
5046
5047  to be output for the keystroke 
5048 \begin_inset Flex Noun
5049 status collapsed
5050
5051 \begin_layout Plain Layout
5052
5053 \shape up
5054 &
5055 \end_layout
5056
5057 \end_inset
5058
5059  is:
5060 \end_layout
5061
5062 \begin_layout LyX-Code
5063
5064 \backslash
5065 kmap & /
5066 \end_layout
5067
5068 \begin_layout Labeling
5069 \labelwidthstring 00.00.0000
5070 \begin_inset Flex Code
5071 status collapsed
5072
5073 \begin_layout Plain Layout
5074
5075 \shape up
5076 kmod
5077 \end_layout
5078
5079 \end_inset
5080
5081  Specify an accent character
5082 \end_layout
5083
5084 \begin_layout LyX-Code
5085
5086 \backslash
5087 kmod 
5088 \family roman
5089 \emph on
5090 char accent allowed
5091 \end_layout
5092
5093 \begin_layout Standard
5094 This will make the cha
5095 \family roman
5096 racter
5097 \family default
5098  
5099 \family roman
5100 \emph on
5101 char
5102 \family default
5103 \emph default
5104  
5105 \family roman
5106 \shape up
5107 \emph on
5108 be an accent
5109 \family default
5110 \shape default
5111 \emph default
5112  
5113 \family roman
5114 \shape up
5115 on the
5116 \family default
5117 \shape default
5118  
5119 \family roman
5120 \shape up
5121 \emph on
5122 allowed
5123 \family default
5124 \shape default
5125 \emph default
5126  
5127 \family roman
5128 \shape up
5129 cha
5130 \family default
5131 racter(s).
5132  This is the dead key
5133 \begin_inset Foot
5134 status collapsed
5135
5136 \begin_layout Plain Layout
5137 The term 
5138 \family roman
5139 \emph on
5140 dead key
5141 \family default
5142 \emph default
5143  refers to a key that does not produce a character by itself,
5144  but when followed with another key,
5145  produces the desired accent character.
5146  For example,
5147  a German characte
5148 \family roman
5149 r with an umlaut like
5150 \family default
5151  
5152 \family roman
5153 \emph on
5154 ä
5155 \family default
5156 \emph default
5157  
5158 \family roman
5159 can be produced in this manner.
5160 \end_layout
5161
5162 \end_inset
5163
5164  mechanism.
5165  
5166 \end_layout
5167
5168 \begin_layout Standard
5169 If you 
5170 \family roman
5171 hit
5172 \family default
5173  
5174 \family roman
5175 \emph on
5176 char
5177 \family default
5178 \emph default
5179  
5180 \family roman
5181 and then another key not in
5182 \family default
5183  
5184 \family roman
5185 \emph on
5186 allowed
5187 \emph default
5188 ,
5189  you will get a
5190 \family default
5191  
5192 \family roman
5193 \emph on
5194 char
5195 \family default
5196 \emph default
5197  
5198 \family roman
5199 followed by the other,
5200  not allowed key,
5201  as output.
5202
5203 \family default
5204  Note that a 
5205 \begin_inset Flex Noun
5206 status collapsed
5207
5208 \begin_layout Plain Layout
5209
5210 \shape up
5211 Backspace
5212 \end_layout
5213
5214 \end_inset
5215
5216  cancels a dead key,
5217  so if 
5218 \family roman
5219 you hit
5220 \family default
5221  
5222 \family roman
5223 \emph on
5224 char
5225 \family default
5226 \emph default
5227  
5228 \begin_inset Flex Noun
5229 status collapsed
5230
5231 \begin_layout Plain Layout
5232
5233 \shape up
5234 \emph on
5235 Backspace
5236 \end_layout
5237
5238 \end_inset
5239
5240 ,
5241  the cursor will not go one position backwards but will instead cancel the effect t
5242 \family roman
5243 hat
5244 \family default
5245  
5246 \family roman
5247 \shape up
5248 \emph on
5249 char
5250 \family default
5251 \shape default
5252 \emph default
5253  
5254 \family roman
5255 \shape up
5256 might have had on the next keystroke.
5257  
5258 \end_layout
5259
5260 \begin_layout Standard
5261 The following example specifies that the character ' is to be an acute accent,
5262  allowed on the characters a,
5263  e,
5264  i,
5265  o,
5266  u,
5267  A,
5268  E,
5269  I,
5270  O,
5271  and U:
5272 \end_layout
5273
5274 \begin_layout LyX-Code
5275
5276 \backslash
5277 kmod ' acute aeiouAEIOU
5278 \end_layout
5279
5280 \begin_layout Labeling
5281 \labelwidthstring 00.00.0000
5282 \begin_inset Flex Code
5283 status collapsed
5284
5285 \begin_layout Plain Layout
5286 kxmod
5287 \end_layout
5288
5289 \end_inset
5290
5291  Specify an exception to the accent character
5292 \end_layout
5293
5294 \begin_layout LyX-Code
5295
5296 \backslash
5297 kxmod  
5298 \family roman
5299 \emph on
5300 accent char result
5301 \end_layout
5302
5303 \begin_layout Standard
5304 This defines an exce
5305 \family roman
5306 ption for
5307 \family default
5308  
5309 \family roman
5310 \emph on
5311 accent
5312 \family default
5313 \emph default
5314  
5315 \family roman
5316 on
5317 \family default
5318  
5319 \family roman
5320 \emph on
5321 char
5322 \emph default
5323 .
5324  T
5325 \shape up
5326 he
5327 \family default
5328 \shape default
5329  
5330 \family roman
5331 \shape up
5332 \emph on
5333 accent
5334 \family default
5335 \shape default
5336 \emph default
5337  
5338 \family roman
5339 \shape up
5340 must
5341 \family default
5342 \shape default
5343  
5344 \shape up
5345 have been assigned a keystroke with a previous
5346 \shape default
5347  
5348 \begin_inset Flex Code
5349 status collapsed
5350
5351 \begin_layout Plain Layout
5352
5353 \shape up
5354
5355 \backslash
5356 kmo
5357 \shape default
5358 d
5359 \end_layout
5360
5361 \end_inset
5362
5363  declar
5364 \family roman
5365 ation and
5366 \family default
5367  
5368 \family roman
5369 \emph on
5370 char
5371 \family default
5372 \emph default
5373  
5374 \family roman
5375 must not belong in the
5376 \family default
5377  
5378 \family roman
5379 \emph on
5380 allowed
5381 \family default
5382 \emph default
5383  
5384 \family roman
5385 set of
5386 \family default
5387  
5388 \family roman
5389 \emph on
5390 accent
5391 \emph default
5392 .
5393  When
5394 \family default
5395  
5396 \family roman
5397 \shape up
5398 you enter the
5399 \family default
5400 \shape default
5401  
5402 \family roman
5403 \shape up
5404 \emph on
5405 accent char
5406 \family default
5407 \shape default
5408 \emph default
5409  
5410 \family roman
5411 \shape up
5412 sequence,
5413
5414 \family default
5415 \shape default
5416  
5417 \family roman
5418 \shape up
5419 \emph on
5420 result
5421 \emph default
5422  is produced.
5423  If such a declaration does not exist in
5424 \family default
5425 \shape default
5426  
5427 \shape up
5428 the
5429 \shape default
5430  
5431 \begin_inset Flex Code
5432 status collapsed
5433
5434 \begin_layout Plain Layout
5435
5436 \shape up
5437 .kmap
5438 \end_layout
5439
5440 \end_inset
5441
5442  file and yo
5443 \family roman
5444 u enter
5445 \family default
5446  
5447 \family roman
5448 \emph on
5449 accent char
5450 \emph default
5451 ,
5452  you get
5453 \family default
5454  
5455 \family roman
5456 \emph on
5457 accent_key char
5458 \emph default
5459  where
5460 \family default
5461  
5462 \family roman
5463 \emph on
5464 accent_key
5465 \emph default
5466  is the first arg
5467 \family default
5468 ument of the 
5469 \begin_inset Flex Code
5470 status collapsed
5471
5472 \begin_layout Plain Layout
5473
5474 \shape up
5475
5476 \backslash
5477 kmod
5478 \end_layout
5479
5480 \end_inset
5481
5482  declaration.
5483  
5484 \end_layout
5485
5486 \begin_layout Standard
5487 The following command produces causes äi to be produced when you enter acute-i ('i):
5488 \end_layout
5489
5490 \begin_layout LyX-Code
5491
5492 \backslash
5493 kxmod acute i "
5494 \backslash
5495
5496 \backslash
5497 '{
5498 \backslash
5499
5500 \backslash
5501 i}"
5502 \end_layout
5503
5504 \begin_layout Labeling
5505 \labelwidthstring 00.00.0000
5506 \begin_inset Flex Code
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510 kcomb
5511 \end_layout
5512
5513 \end_inset
5514
5515  Combine two accent characters
5516 \end_layout
5517
5518 \begin_layout LyX-Code
5519
5520 \backslash
5521 kcomb 
5522 \family roman
5523 \emph on
5524 accent1 accent2 allowed
5525 \end_layout
5526
5527 \begin_layout Standard
5528 This one is getting pretty esoteric.
5529  It allows you to combine the effect 
5530 \family roman
5531 of
5532 \family default
5533  
5534 \family roman
5535 \emph on
5536 accent1
5537 \family default
5538 \emph default
5539  
5540 \family roman
5541 and
5542 \family default
5543  
5544 \family roman
5545 \emph on
5546 accent2
5547 \family default
5548 \emph default
5549  
5550 \family roman
5551 (in that order!) on
5552 \family default
5553  
5554 \family roman
5555 \emph on
5556 allowed
5557 \family default
5558 \emph default
5559  
5560 \family roman
5561 chars.
5562  The keystrokes for
5563 \family default
5564  
5565 \family roman
5566 \emph on
5567 accent1
5568 \family default
5569 \emph default
5570  
5571 \family roman
5572 and
5573 \family default
5574  
5575 \family roman
5576 \emph on
5577 accent2
5578 \family default
5579 \emph default
5580  
5581 \family roman
5582 must have be
5583 \family default
5584 en set with a 
5585 \begin_inset Flex Code
5586 status collapsed
5587
5588 \begin_layout Plain Layout
5589
5590 \shape up
5591
5592 \backslash
5593 kmod
5594 \end_layout
5595
5596 \end_inset
5597
5598  command at 
5599 \family roman
5600 a
5601 \family default
5602  
5603 \family roman
5604 \emph on
5605 previous
5606 \family default
5607 \emph default
5608  
5609 \family roman
5610 point in the
5611 \family default
5612  file.
5613  
5614 \end_layout
5615
5616 \begin_layout Standard
5617 Consider this example from the 
5618 \begin_inset Flex Code
5619 status collapsed
5620
5621 \begin_layout Plain Layout
5622
5623 \shape up
5624 greek.kmap
5625 \end_layout
5626
5627 \end_inset
5628
5629  file:
5630 \end_layout
5631
5632 \begin_layout LyX-Code
5633
5634 \backslash
5635 kmod ;
5636  acute aeioyvhAEIOYVH 
5637 \backslash
5638 kmod :
5639  umlaut iyIY 
5640 \backslash
5641 kcomb acute umlaut iyIY
5642 \end_layout
5643
5644 \begin_layout Standard
5645 This allows you to press 
5646 \begin_inset Flex Noun
5647 status collapsed
5648
5649 \begin_layout Plain Layout
5650
5651 \shape up
5652 ;:i
5653 \end_layout
5654
5655 \end_inset
5656
5657  and get the effect of 
5658 \begin_inset Flex Code
5659 status collapsed
5660
5661 \begin_layout Plain Layout
5662
5663 \shape up
5664
5665 \backslash
5666 '{
5667 \backslash
5668 "{i}}
5669 \end_layout
5670
5671 \end_inset
5672
5673 .
5674  
5675 \family roman
5676 \shape up
5677 A backspace
5678 \family default
5679 \shape default
5680  in this case cancels the last dead key,
5681  so if you press 
5682 \begin_inset Flex Noun
5683 status collapsed
5684
5685 \begin_layout Plain Layout
5686
5687 \shape up
5688 ;:
5689  Backspace i
5690 \end_layout
5691
5692 \end_inset
5693
5694  you get 
5695 \begin_inset Flex Code
5696 status collapsed
5697
5698 \begin_layout Plain Layout
5699
5700 \shape up
5701
5702 \backslash
5703 '{i}
5704 \end_layout
5705
5706 \end_inset
5707
5708 .
5709 \end_layout
5710
5711 \begin_layout Subsection
5712 The .cdef File
5713 \end_layout
5714
5715 \begin_layout Standard
5716 After the 
5717 \begin_inset Flex Code
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721
5722 \shape up
5723 .kmap
5724 \end_layout
5725
5726 \end_inset
5727
5728  mapping is performed,
5729  a 
5730 \begin_inset Flex Code
5731 status collapsed
5732
5733 \begin_layout Plain Layout
5734
5735 \shape up
5736 .cde
5737 \shape default
5738 f
5739 \end_layout
5740
5741 \end_inset
5742
5743  file maps the strings that the symbols generate to characters in the current font.
5744  The \SpecialChar LyX
5745  distribution currently includes at least the 
5746 \begin_inset Flex Code
5747 status collapsed
5748
5749 \begin_layout Plain Layout
5750
5751 \shape up
5752 iso8859-1.cdef
5753 \end_layout
5754
5755 \end_inset
5756
5757  and 
5758 \begin_inset Flex Code
5759 status collapsed
5760
5761 \begin_layout Plain Layout
5762
5763 \shape up
5764 iso8859-2.cdef
5765 \end_layout
5766
5767 \end_inset
5768
5769  files.
5770 \end_layout
5771
5772 \begin_layout Standard
5773 In general the 
5774 \begin_inset Flex Code
5775 status collapsed
5776
5777 \begin_layout Plain Layout
5778
5779 \shape up
5780 .cdef
5781 \end_layout
5782
5783 \end_inset
5784
5785  file is a sequence of declarations of the form
5786 \end_layout
5787
5788 \begin_layout LyX-Code
5789
5790 \family roman
5791 \emph on
5792 char_index_in_set
5793 \family default
5794 \emph default
5795  
5796 \family roman
5797 \emph on
5798  string
5799 \end_layout
5800
5801 \begin_layout Standard
5802 For example,
5803  in order to map 
5804 \begin_inset Flex Noun
5805 status collapsed
5806
5807 \begin_layout Plain Layout
5808
5809 \shape up
5810
5811 \backslash
5812 '{e}
5813 \end_layout
5814
5815 \end_inset
5816
5817  to the corresponding character in the iso-8859-1 set (233),
5818  the following declaration is used
5819 \end_layout
5820
5821 \begin_layout LyX-Code
5822 233 "
5823 \backslash
5824
5825 \backslash
5826 '{e}"
5827 \end_layout
5828
5829 \begin_layout Standard
5830 with 
5831 \begin_inset Flex Code
5832 status collapsed
5833
5834 \begin_layout Plain Layout
5835
5836 \backslash
5837
5838 \end_layout
5839
5840 \end_inset
5841
5842  and 
5843 \begin_inset Flex Code
5844 status collapsed
5845
5846 \begin_layout Plain Layout
5847 "
5848 \end_layout
5849
5850 \end_inset
5851
5852  being escap
5853 \family roman
5854 ed in
5855 \family default
5856  
5857 \family roman
5858 \emph on
5859 string
5860 \emph default
5861 .
5862  Note that
5863 \family default
5864  the same character can apply to more than one string.
5865  In the 
5866 \begin_inset Flex Code
5867 status collapsed
5868
5869 \begin_layout Plain Layout
5870 i
5871 \shape up
5872 so-8859-7.cdef
5873 \end_layout
5874
5875 \end_inset
5876
5877  file you have
5878 \end_layout
5879
5880 \begin_layout LyX-Code
5881 192 "
5882 \backslash
5883
5884 \backslash
5885 '{
5886 \backslash
5887
5888 \backslash
5889
5890 \backslash
5891 "{i}}"
5892 \begin_inset Newline newline
5893 \end_inset
5894
5895 192 "
5896 \backslash
5897
5898 \backslash
5899
5900 \backslash
5901 "{
5902 \backslash
5903
5904 \backslash
5905 '{i}}"
5906 \end_layout
5907
5908 \begin_layout Standard
5909 If \SpecialChar LyX
5910  cannot find a mapping for the string produced by the keystroke or a deadkey sequence,
5911  it will check if it looks like an accented char and try to draw an accent over the character on screen.
5912 \end_layout
5913
5914 \begin_layout Subsection
5915 Dead Keys
5916 \end_layout
5917
5918 \begin_layout Standard
5919 There is a second way to add support for international characters through so-called dead-keys.
5920  A dead-key works in combination with a letter to produce an accented character.
5921  Here,
5922  we'll explain how to create a really simple dead-key to illustrate how they work.
5923 \end_layout
5924
5925 \begin_layout Standard
5926 Suppose you happen to need the circumflex character,
5927  
5928 \begin_inset Quotes eld
5929 \end_inset
5930
5931  ̂
5932 \begin_inset Quotes erd
5933 \end_inset
5934
5935 .
5936  You could bind the 
5937 \begin_inset Flex Noun
5938 status collapsed
5939
5940 \begin_layout Plain Layout
5941 ^
5942 \end_layout
5943
5944 \end_inset
5945
5946 -key [a.k.a.
5947 \begin_inset space ~
5948 \end_inset
5949
5950
5951 \begin_inset Flex Noun
5952 status collapsed
5953
5954 \begin_layout Plain Layout
5955 Shift-6
5956 \end_layout
5957
5958 \end_inset
5959
5960 ] to the \SpecialChar LyX
5961  command 
5962 \begin_inset Flex Code
5963 status collapsed
5964
5965 \begin_layout Plain Layout
5966 accent-circumflex
5967 \end_layout
5968
5969 \end_inset
5970
5971  in your 
5972 \begin_inset Flex Code
5973 status collapsed
5974
5975 \begin_layout Plain Layout
5976 lyxrc
5977 \end_layout
5978
5979 \end_inset
5980
5981  file.
5982  Now,
5983  whenever you type the 
5984 \begin_inset Flex Noun
5985 status collapsed
5986
5987 \begin_layout Plain Layout
5988 ^
5989 \end_layout
5990
5991 \end_inset
5992
5993 -key followed by a letter,
5994  that letter will have a circumflex accent on it.
5995  For example,
5996  the sequence 
5997 \begin_inset Quotes eld
5998 \end_inset
5999
6000
6001 \begin_inset Flex Noun
6002 status collapsed
6003
6004 \begin_layout Plain Layout
6005 ^e
6006 \end_layout
6007
6008 \end_inset
6009
6010
6011 \begin_inset Quotes erd
6012 \end_inset
6013
6014  produces the letter:
6015  
6016 \begin_inset Quotes eld
6017 \end_inset
6018
6019 ê
6020 \begin_inset Quotes erd
6021 \end_inset
6022
6023 .
6024  If you tried to type 
6025 \begin_inset Quotes eld
6026 \end_inset
6027
6028
6029 \begin_inset Flex Noun
6030 status collapsed
6031
6032 \begin_layout Plain Layout
6033 ^t
6034 \end_layout
6035
6036 \end_inset
6037
6038
6039 \begin_inset Quotes erd
6040 \end_inset
6041
6042 ,
6043  however,
6044  \SpecialChar LyX
6045  will complain with a beep,
6046  since a 
6047 \begin_inset Quotes eld
6048 \end_inset
6049
6050
6051 \begin_inset Flex Noun
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 t
6056 \end_layout
6057
6058 \end_inset
6059
6060
6061 \begin_inset Quotes erd
6062 \end_inset
6063
6064  never takes a circumflex accent.
6065  Hitting 
6066 \begin_inset Flex Noun
6067 status collapsed
6068
6069 \begin_layout Plain Layout
6070 Space
6071 \end_layout
6072
6073 \end_inset
6074
6075  after a dead-key produces the bare-accent.
6076  Please note this last point!
6077  If you bind a key to a dead-key,
6078  you'll need to rebind the character on that key to yet another key.
6079  Binding the 
6080 \begin_inset Flex Noun
6081 status collapsed
6082
6083 \begin_layout Plain Layout
6084 ,-key
6085 \end_layout
6086
6087 \end_inset
6088
6089  to a cedilla is a bad idea,
6090  since you'll only get cedillas instead of commas.
6091 \end_layout
6092
6093 \begin_layout Standard
6094 One common way to bind dead-keys is to use 
6095 \begin_inset Flex Noun
6096 status collapsed
6097
6098 \begin_layout Plain Layout
6099 Meta-
6100 \end_layout
6101
6102 \end_inset
6103
6104 ,
6105  
6106 \begin_inset Flex Noun
6107 status collapsed
6108
6109 \begin_layout Plain Layout
6110 Ctrl-
6111 \end_layout
6112
6113 \end_inset
6114
6115 ,
6116  and 
6117 \begin_inset Flex Noun
6118 status collapsed
6119
6120 \begin_layout Plain Layout
6121 Shift-
6122 \end_layout
6123
6124 \end_inset
6125
6126  in combination with an accent,
6127  like 
6128 \begin_inset Quotes eld
6129 \end_inset
6130
6131
6132 \begin_inset Flex Noun
6133 status collapsed
6134
6135 \begin_layout Plain Layout
6136 ~
6137 \end_layout
6138
6139 \end_inset
6140
6141
6142 \begin_inset Quotes erd
6143 \end_inset
6144
6145  or 
6146 \begin_inset Quotes eld
6147 \end_inset
6148
6149
6150 \begin_inset Flex Noun
6151 status collapsed
6152
6153 \begin_layout Plain Layout
6154 ,
6155 \end_layout
6156
6157 \end_inset
6158
6159
6160 \begin_inset Quotes erd
6161 \end_inset
6162
6163  or 
6164 \begin_inset Quotes eld
6165 \end_inset
6166
6167
6168 \begin_inset Flex Noun
6169 status collapsed
6170
6171 \begin_layout Plain Layout
6172 ^
6173 \end_layout
6174
6175 \end_inset
6176
6177
6178 \begin_inset Quotes erd
6179 \end_inset
6180
6181 .
6182  Another way involves using 
6183 \begin_inset Flex Code
6184 status collapsed
6185
6186 \begin_layout Plain Layout
6187 xmodmap
6188 \end_layout
6189
6190 \end_inset
6191
6192  and 
6193 \begin_inset Flex Code
6194 status collapsed
6195
6196 \begin_layout Plain Layout
6197 xkeycaps
6198 \end_layout
6199
6200 \end_inset
6201
6202  to set up the special 
6203 \begin_inset Flex Code
6204 status collapsed
6205
6206 \begin_layout Plain Layout
6207 Mode_Switch
6208 \end_layout
6209
6210 \end_inset
6211
6212  key.
6213  The 
6214 \begin_inset Flex Code
6215 status collapsed
6216
6217 \begin_layout Plain Layout
6218 Mode_Switch
6219 \end_layout
6220
6221 \end_inset
6222
6223  acts in some ways just like 
6224 \begin_inset Flex Noun
6225 status collapsed
6226
6227 \begin_layout Plain Layout
6228 Shift
6229 \end_layout
6230
6231 \end_inset
6232
6233  and permits you to bind keys to accented characters.
6234  You can also turn keys into dead-keys by binding them to something like 
6235 \begin_inset Flex Code
6236 status collapsed
6237
6238 \begin_layout Plain Layout
6239 usldead_cedilla
6240 \end_layout
6241
6242 \end_inset
6243
6244  and then binding this symbolic key to the corresponding \SpecialChar LyX
6245  command.
6246 \begin_inset Foot
6247 status collapsed
6248
6249 \begin_layout Plain Layout
6250 Note from 
6251 \noun on
6252 John Weiss
6253 \noun default
6254 :
6255  This is exactly what I do in my 
6256 \begin_inset Flex Code
6257 status collapsed
6258
6259 \begin_layout Plain Layout
6260 ~/.lyx/lyxrc
6261 \end_layout
6262
6263 \end_inset
6264
6265  and my 
6266 \begin_inset Flex Code
6267 status collapsed
6268
6269 \begin_layout Plain Layout
6270 ~/.xmodmap
6271 \end_layout
6272
6273 \end_inset
6274
6275  files.
6276  I have my 
6277 \begin_inset Flex Noun
6278 status collapsed
6279
6280 \begin_layout Plain Layout
6281 Scroll
6282 \begin_inset space ~
6283 \end_inset
6284
6285 Lock
6286 \end_layout
6287
6288 \end_inset
6289
6290  key set up as 
6291 \begin_inset Flex Code
6292 status collapsed
6293
6294 \begin_layout Plain Layout
6295 Mode_Shift
6296 \end_layout
6297
6298 \end_inset
6299
6300  and a bunch of these 
6301 \begin_inset Quotes eld
6302 \end_inset
6303
6304
6305 \begin_inset Flex Code
6306 status collapsed
6307
6308 \begin_layout Plain Layout
6309 usldead_*
6310 \end_layout
6311
6312 \end_inset
6313
6314
6315 \begin_inset Quotes erd
6316 \end_inset
6317
6318  symbolic keys bound such things as 
6319 \begin_inset Flex Noun
6320 status collapsed
6321
6322 \begin_layout Plain Layout
6323 Scroll
6324 \begin_inset space ~
6325 \end_inset
6326
6327 Lock-^
6328 \end_layout
6329
6330 \end_inset
6331
6332  and 
6333 \begin_inset Flex Noun
6334 status collapsed
6335
6336 \begin_layout Plain Layout
6337 Scroll
6338 \begin_inset space ~
6339 \end_inset
6340
6341 Lock-~
6342 \end_layout
6343
6344 \end_inset
6345
6346 .
6347  This is how I produce my accented characters.
6348 \end_layout
6349
6350 \end_inset
6351
6352  You can make just about anything into the 
6353 \begin_inset Flex Code
6354 status collapsed
6355
6356 \begin_layout Plain Layout
6357 Mode_Switch
6358 \end_layout
6359
6360 \end_inset
6361
6362  key:
6363  One of the 
6364 \begin_inset Flex Noun
6365 status collapsed
6366
6367 \begin_layout Plain Layout
6368 Ctrl-
6369 \end_layout
6370
6371 \end_inset
6372
6373  keys,
6374  a spare function key,
6375  etc.
6376  As for the \SpecialChar LyX
6377  commands that produce accents,
6378  check the entry for 
6379 \begin_inset Flex Code
6380 status collapsed
6381
6382 \begin_layout Plain Layout
6383 accent-acute
6384 \end_layout
6385
6386 \end_inset
6387
6388  in the 
6389 \emph on
6390 Reference Manual
6391 \emph default
6392 .
6393  You'll find the complete list there.
6394 \end_layout
6395
6396 \begin_layout Subsection
6397 Saving your Language Configuration
6398 \end_layout
6399
6400 \begin_layout Standard
6401 You can edit your preferences so that your desired language environment is automatically configured when \SpecialChar LyX
6402  starts up,
6403  via the 
6404 \begin_inset Flex Noun
6405 status collapsed
6406
6407 \begin_layout Plain Layout
6408 Edit\SpecialChar menuseparator
6409 Preferences
6410 \end_layout
6411
6412 \end_inset
6413
6414  dialog.
6415 \end_layout
6416
6417 \begin_layout Chapter
6418
6419 \change_inserted -584632292 1610232084
6420 Creating and 
6421 \change_unchanged
6422 Installing New Document Classes,
6423  Layouts,
6424  and Templates
6425 \begin_inset CommandInset label
6426 LatexCommand label
6427 name "cha:Installing-New-Document"
6428
6429 \end_inset
6430
6431
6432 \begin_inset Argument 1
6433 status collapsed
6434
6435 \begin_layout Plain Layout
6436 Installing New Document Classes
6437 \end_layout
6438
6439 \end_inset
6440
6441
6442 \end_layout
6443
6444 \begin_layout Standard
6445 In this chapter,
6446  we describe the procedures for creating and installing new \SpecialChar LyX
6447  layout and template files,
6448  as well as offer a refresher on correctly installing new \SpecialChar LaTeX
6449  document classes.
6450  
6451 \end_layout
6452
6453 \begin_layout Standard
6454 First,
6455  let us a say a few words about how one ought to think about the relation between \SpecialChar LyX
6456  and \SpecialChar LaTeX
6457 .
6458  The thing to understand is that,
6459  in a certain sense,
6460  \SpecialChar LyX
6461  doesn't know anything about \SpecialChar LaTeX
6462 .
6463  Indeed,
6464  from \SpecialChar LyX
6465 's point of view,
6466  \SpecialChar LaTeX
6467  is just one of several 
6468 \begin_inset Quotes eld
6469 \end_inset
6470
6471 backend formats
6472 \begin_inset Quotes erd
6473 \end_inset
6474
6475  in which it is capable of producing output.
6476  Other such formats are DocBook,
6477  plaintext,
6478  and XHTML.
6479  \SpecialChar LaTeX
6480  is,
6481  of course,
6482  a particularly important format,
6483  but very little of the information \SpecialChar LyX
6484  has about \SpecialChar LaTeX
6485  is actually contained in the program itself.
6486 \begin_inset Foot
6487 status collapsed
6488
6489 \begin_layout Plain Layout
6490 Some commands are sufficiently complex that they are 
6491 \begin_inset Quotes eld
6492 \end_inset
6493
6494 hardcoded
6495 \begin_inset Quotes erd
6496 \end_inset
6497
6498  into \SpecialChar LyX
6499 .
6500  But the developers generally regard this as a Bad Thing.
6501 \end_layout
6502
6503 \end_inset
6504
6505  Rather,
6506  that information,
6507  even for the standard classes like 
6508 \begin_inset Flex Code
6509 status collapsed
6510
6511 \begin_layout Plain Layout
6512 article.cls
6513 \end_layout
6514
6515 \end_inset
6516
6517 ,
6518  is contained in `layout files'.
6519  Similarly,
6520  \SpecialChar LyX
6521  itself does not know much about DocBook or XHTML.
6522  What it knows is contained in layout files.
6523 \end_layout
6524
6525 \begin_layout Standard
6526 You can think of the layout file for a given document class as a translation manual between \SpecialChar LyX
6527  constructs—
6528 paragraphs with their corresponding styles,
6529  certain sorts of insets,
6530  etc—
6531 and the corresponding \SpecialChar LaTeX
6532 ,
6533  DocBook,
6534  or XHTML constructs.
6535  Almost everything \SpecialChar LyX
6536  knows about 
6537 \begin_inset Flex Code
6538 status collapsed
6539
6540 \begin_layout Plain Layout
6541 article.cls
6542 \end_layout
6543
6544 \end_inset
6545
6546 ,
6547  for example,
6548  is contained in the file 
6549 \begin_inset Flex Code
6550 status collapsed
6551
6552 \begin_layout Plain Layout
6553 article.layout
6554 \end_layout
6555
6556 \end_inset
6557
6558  and in various other files it includes.
6559  For this reason,
6560  anyone intending to write layout files should plan to study the existing files.
6561  A good place to start is with 
6562 \begin_inset Flex Code
6563 status collapsed
6564
6565 \begin_layout Plain Layout
6566 stdsections.inc
6567 \end_layout
6568
6569 \end_inset
6570
6571 ,
6572  which is included in 
6573 \begin_inset Flex Code
6574 status collapsed
6575
6576 \begin_layout Plain Layout
6577 article.layout
6578 \end_layout
6579
6580 \end_inset
6581
6582 ,
6583  
6584 \begin_inset Flex Code
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 book.layout
6589 \end_layout
6590
6591 \end_inset
6592
6593 ,
6594  and many of the other layout files for document classes.
6595  This file is where sections and the like are defined:
6596  
6597 \begin_inset Flex Code
6598 status collapsed
6599
6600 \begin_layout Plain Layout
6601 stdsections.inc
6602 \end_layout
6603
6604 \end_inset
6605
6606  tells \SpecialChar LyX
6607  how paragraphs that are marked with the Section,
6608  Subsection,
6609  etc,
6610  styles can be translated into corresponding \SpecialChar LaTeX
6611 ,
6612  DocBook,
6613  and XHTML commands and tags.
6614  The 
6615 \begin_inset Flex Code
6616 status collapsed
6617
6618 \begin_layout Plain Layout
6619 article.layout
6620 \end_layout
6621
6622 \end_inset
6623
6624  file basically just includes several of these 
6625 \begin_inset Flex Code
6626 status collapsed
6627
6628 \begin_layout Plain Layout
6629 std*.inc
6630 \end_layout
6631
6632 \end_inset
6633
6634  files.
6635 \end_layout
6636
6637 \begin_layout Standard
6638 Defining the \SpecialChar LyX
6639 –\SpecialChar LaTeX
6640  correspondence is not the only thing layout files do,
6641  though.
6642  Their other job is to define how the \SpecialChar LyX
6643  constructs themselves will appear on-screen.
6644  The fact that layout files have these two jobs is often a source of confusion,
6645  because they are completely separate.
6646  Telling \SpecialChar LyX
6647  how to translate a certain paragraph style into \SpecialChar LaTeX
6648  does not tell \SpecialChar LyX
6649  how to display it;
6650  conversely,
6651  telling \SpecialChar LyX
6652  how to display a certain paragraph style does not tell \SpecialChar LyX
6653  how to translate it into \SpecialChar LaTeX
6654  (let alone tell \SpecialChar LaTeX
6655  how to display it).
6656  So,
6657  in general,
6658  when you define a new \SpecialChar LyX
6659  construct,
6660  you must always do two quite separate things:
6661  (i)
6662 \begin_inset space ~
6663 \end_inset
6664
6665 tell \SpecialChar LyX
6666  how to translate it into \SpecialChar LaTeX
6667  and (ii)
6668 \begin_inset space ~
6669 \end_inset
6670
6671 tell \SpecialChar LyX
6672  how to display it.
6673 \end_layout
6674
6675 \begin_layout Standard
6676 Much the same is true,
6677  of course,
6678  as regards \SpecialChar LyX
6679 's other backend formats,
6680  though XHTML is in some ways different,
6681  because in that case \SpecialChar LyX
6682  
6683 \emph on
6684 is
6685 \emph default
6686  able,
6687  to some extent,
6688  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.
6689  Even in this case,
6690  however,
6691  the distinction between what \SpecialChar LyX
6692  does internally and how things are rendered externally remains in force,
6693  and the two can be controlled separately.
6694  See 
6695 \begin_inset CommandInset ref
6696 LatexCommand ref
6697 reference "sec:Tags-for-XHTML"
6698 nolink "false"
6699
6700 \end_inset
6701
6702  for the details.
6703 \end_layout
6704
6705 \begin_layout Section
6706 Installing new \SpecialChar LaTeX
6707  files
6708 \end_layout
6709
6710 \begin_layout Standard
6711 Some installations may not include a \SpecialChar LaTeX
6712  package or class file that you would like to use within \SpecialChar LyX
6713 .
6714  For example,
6715  you might need Foil\SpecialChar TeX
6716 ,
6717  a package for preparing slides for overhead projectors.
6718  Modern \SpecialChar LaTeX
6719  distributions like \SpecialChar TeX
6720 Live (2008 or newer) or MiK\SpecialChar TeX
6721  provide a user interface for installing such packages.
6722  For example,
6723  with MiK\SpecialChar TeX
6724 ,
6725  you start the program 
6726 \begin_inset Quotes eld
6727 \end_inset
6728
6729 Package
6730 \begin_inset space ~
6731 \end_inset
6732
6733 Manager
6734 \begin_inset Quotes erd
6735 \end_inset
6736
6737  to get a list of available packages.
6738  To install one of them,
6739  right click on it or use the corresponding toolbar button.
6740 \end_layout
6741
6742 \begin_layout Standard
6743 If your \SpecialChar LaTeX
6744  distribution does not provide such a `package manager',
6745  or if the package is not available from your distribution,
6746  then follow these steps to install it manually:
6747 \end_layout
6748
6749 \begin_layout Enumerate
6750 Get the package from 
6751 \begin_inset CommandInset href
6752 LatexCommand href
6753 name "CTAN"
6754 target "http://www.ctan.org/"
6755 literal "false"
6756
6757 \end_inset
6758
6759  or wherever.
6760 \end_layout
6761
6762 \begin_layout Enumerate
6763 If the package contains a file with the ending 
6764 \begin_inset Quotes eld
6765 \end_inset
6766
6767
6768 \begin_inset Flex Code
6769 status collapsed
6770
6771 \begin_layout Plain Layout
6772 .ins
6773 \end_layout
6774
6775 \end_inset
6776
6777
6778 \begin_inset Quotes erd
6779 \end_inset
6780
6781  (is the case for Foil\SpecialChar TeX
6782 ) then open a console,
6783  change to the folder of this file and execute the command 
6784 \begin_inset Flex Code
6785 status collapsed
6786
6787 \begin_layout Plain Layout
6788 latex foiltex.ins
6789 \end_layout
6790
6791 \end_inset
6792
6793 .
6794  You have now unpacked the package and have all files to install it.
6795  Most \SpecialChar LaTeX
6796 -packages are not packed and you can skip this step.
6797 \end_layout
6798
6799 \begin_layout Enumerate
6800 Now you need to decide if the package should be available for all users or only for you.
6801 \end_layout
6802
6803 \begin_deeper
6804 \begin_layout Enumerate
6805 On *nix systems (Linux,
6806  OSX,
6807  etc.),
6808  if you want the new package to be available for all users on your system,
6809  then install it in your `local' \SpecialChar TeX
6810  tree,
6811  otherwise install it in your own `user' \SpecialChar TeX
6812  tree.
6813  Where these trees should be created,
6814  if they do not already exist,
6815  depends on your system.
6816  To find this out,
6817  look in the file 
6818 \begin_inset Flex Code
6819 status collapsed
6820
6821 \begin_layout Plain Layout
6822 texmf.cnf
6823 \end_layout
6824
6825 \end_inset
6826
6827 .
6828 \begin_inset Foot
6829 status collapsed
6830
6831 \begin_layout Plain Layout
6832 This is usually in the directory 
6833 \begin_inset Flex Code
6834 status collapsed
6835
6836 \begin_layout Plain Layout
6837 $TEXMF/web2c
6838 \end_layout
6839
6840 \end_inset
6841
6842 ,
6843  though you can execute the command 
6844 \begin_inset Flex Code
6845 status collapsed
6846
6847 \begin_layout Plain Layout
6848 kpsewhich texmf.cnf
6849 \end_layout
6850
6851 \end_inset
6852
6853  to locate it.
6854 \end_layout
6855
6856 \end_inset
6857
6858  The location of the `local' \SpecialChar TeX
6859  tree is defined by the 
6860 \begin_inset Flex Code
6861 status collapsed
6862
6863 \begin_layout Plain Layout
6864 TEXMFLOCAL
6865 \end_layout
6866
6867 \end_inset
6868
6869  variable;
6870  this is usually somewhere like 
6871 \begin_inset Flex Code
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 /usr/local/share/texmf
6876 \end_layout
6877
6878 \end_inset
6879
6880  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6881 Live distribution.
6882  The location of the `user' \SpecialChar TeX
6883  tree is defined by 
6884 \begin_inset Flex Code
6885 status collapsed
6886
6887 \begin_layout Plain Layout
6888 TEXMFHOME
6889 \end_layout
6890
6891 \end_inset
6892
6893  and is commonly 
6894 \begin_inset Flex Code
6895 status collapsed
6896
6897 \begin_layout Plain Layout
6898 $HOME/texmf
6899 \end_layout
6900
6901 \end_inset
6902
6903  or 
6904 \begin_inset Flex Code
6905 status collapsed
6906
6907 \begin_layout Plain Layout
6908
6909 \family sans
6910 $HOME/.texliveXXXX
6911 \end_layout
6912
6913 \end_inset
6914
6915 .
6916  (If these variables are not predefined,
6917  you have to define them.) You'll probably need root permissions to create or modify the `local' tree,
6918  but not for your `user' tree.
6919 \begin_inset Newline newline
6920 \end_inset
6921
6922 In general,
6923  it is recommended to install in the user tree because your user will not be modified or even overwritten when you upgrade your system.
6924  It will typically also be backed up together with everything else when you backup your home directory (which,
6925  of course,
6926  you do on a regular basis).
6927 \end_layout
6928
6929 \begin_layout Enumerate
6930 On Windows,
6931  if you want the new package to be available for all users on your system,
6932  change to the folder where \SpecialChar LaTeX
6933  is installed and then change to the subfolder 
6934 \begin_inset Flex Code
6935 status collapsed
6936
6937 \begin_layout Plain Layout
6938 ~
6939 \backslash
6940 tex
6941 \backslash
6942 latex
6943 \end_layout
6944
6945 \end_inset
6946
6947 .
6948  (For MiK\SpecialChar TeX
6949 ,
6950  this would be by default the folder 
6951 \begin_inset Flex Code
6952 status collapsed
6953
6954 \begin_layout Plain Layout
6955 ~:
6956 \backslash
6957 Programs
6958 \backslash
6959 MiKTeX
6960 \backslash
6961 tex
6962 \backslash
6963 latex
6964 \end_layout
6965
6966 \end_inset
6967
6968 .)
6969 \begin_inset Foot
6970 status collapsed
6971
6972 \begin_layout Plain Layout
6973 Note that this will be the correct path only on English installations.
6974  On a German one,
6975  it would be 
6976 \begin_inset Flex Code
6977 status collapsed
6978
6979 \begin_layout Plain Layout
6980 ~:
6981 \backslash
6982 Programme
6983 \backslash
6984 MiKTeX
6985 \backslash
6986 tex
6987 \backslash
6988 latex
6989 \end_layout
6990
6991 \end_inset
6992
6993 ,
6994  and similarly for other languages.
6995 \end_layout
6996
6997 \end_inset
6998
6999  Create there a new folder 
7000 \begin_inset Flex Code
7001 status collapsed
7002
7003 \begin_layout Plain Layout
7004 foiltex
7005 \end_layout
7006
7007 \end_inset
7008
7009  and copy all files of the package into it.
7010  
7011 \begin_inset Newline newline
7012 \end_inset
7013
7014 If the package should only available for you or you don't have admin permissions,
7015  do the same,
7016  but in the local \SpecialChar LaTeX
7017  folder.
7018  E.
7019 \begin_inset space \thinspace{}
7020 \end_inset
7021
7022 g.,
7023  for MiK\SpecialChar TeX
7024
7025 \begin_inset space ~
7026 \end_inset
7027
7028 2.8 under Windows XP,
7029  this would be the folder:
7030 \begin_inset Newline newline
7031 \end_inset
7032
7033
7034 \family sans
7035
7036 \begin_inset Flex Code
7037 status collapsed
7038
7039 \begin_layout Plain Layout
7040 ~:
7041 \backslash
7042 Documents and Settings
7043 \backslash
7044 <username>
7045 \backslash
7046 Application Data
7047 \backslash
7048
7049 \end_layout
7050
7051 \end_inset
7052
7053
7054 \begin_inset Newline newline
7055 \end_inset
7056
7057
7058 \family default
7059
7060 \begin_inset Phantom HPhantom
7061 status open
7062
7063 \begin_layout Plain Layout
7064
7065 \family sans
7066 ~:
7067 \backslash
7068
7069 \end_layout
7070
7071 \end_inset
7072
7073
7074 \begin_inset Flex Code
7075 status collapsed
7076
7077 \begin_layout Plain Layout
7078 MiKTeX
7079 \backslash
7080 2.8
7081 \backslash
7082 tex
7083 \backslash
7084 latex
7085 \end_layout
7086
7087 \end_inset
7088
7089
7090 \begin_inset Newline newline
7091 \end_inset
7092
7093 On Vista,
7094  it would be:
7095 \begin_inset Newline newline
7096 \end_inset
7097
7098
7099 \begin_inset Flex Code
7100 status collapsed
7101
7102 \begin_layout Plain Layout
7103 ~:
7104 \backslash
7105 Users
7106 \backslash
7107 <username>
7108 \backslash
7109 AppData
7110 \backslash
7111 Roaming
7112 \backslash
7113 2.8
7114 \backslash
7115 MiKTeX
7116 \backslash
7117 tex
7118 \backslash
7119 latex
7120 \end_layout
7121
7122 \end_inset
7123
7124
7125 \end_layout
7126
7127 \end_deeper
7128 \begin_layout Enumerate
7129 Now one only need to tell \SpecialChar LaTeX
7130  that there are new files.
7131  This depends on the used \SpecialChar LaTeX
7132 -Distribution:
7133 \end_layout
7134
7135 \begin_deeper
7136 \begin_layout Enumerate
7137 For \SpecialChar TeX
7138 Live execute the command 
7139 \begin_inset Flex Code
7140 status collapsed
7141
7142 \begin_layout Plain Layout
7143 texhash
7144 \end_layout
7145
7146 \end_inset
7147
7148  from a console.
7149  If you installed the package for all users,
7150  then you will probably need to have root permissions for that.
7151 \end_layout
7152
7153 \begin_layout Enumerate
7154 For MiK\SpecialChar TeX
7155 ,
7156  if you have installed the package for all users,
7157  start the program 
7158 \begin_inset Quotes eld
7159 \end_inset
7160
7161 Settings
7162 \begin_inset space ~
7163 \end_inset
7164
7165 (Admin)
7166 \begin_inset Quotes erd
7167 \end_inset
7168
7169  and press the button marked 
7170 \begin_inset Quotes eld
7171 \end_inset
7172
7173 Refresh FNDB
7174 \begin_inset Quotes erd
7175 \end_inset
7176
7177 .
7178  Otherwise start the program 
7179 \begin_inset Quotes eld
7180 \end_inset
7181
7182 Settings
7183 \begin_inset Quotes erd
7184 \end_inset
7185
7186  and do the same.
7187 \end_layout
7188
7189 \end_deeper
7190 \begin_layout Enumerate
7191 Finally,
7192  you need to tell \SpecialChar LyX
7193  that there are new packages available.
7194  So,
7195  in \SpecialChar LyX
7196 ,
7197  use the menu 
7198 \begin_inset Flex Noun
7199 status collapsed
7200
7201 \begin_layout Plain Layout
7202 Tools
7203 \family sans
7204 \SpecialChar menuseparator
7205 Reconfigure
7206 \end_layout
7207
7208 \end_inset
7209
7210  and then restart \SpecialChar LyX
7211 .
7212 \end_layout
7213
7214 \begin_layout Standard
7215 Now the package is installed.
7216  In our example,
7217  the document class 
7218 \begin_inset Flex Code
7219 status collapsed
7220
7221 \begin_layout Plain Layout
7222 FoilTex
7223 \end_layout
7224
7225 \end_inset
7226
7227  will now be available under 
7228 \begin_inset Flex Noun
7229 status collapsed
7230
7231 \begin_layout Plain Layout
7232 Document\SpecialChar menuseparator
7233 Settings\SpecialChar menuseparator
7234 Document Class
7235 \end_layout
7236
7237 \end_inset
7238
7239  (in the 
7240 \begin_inset Quotes eld
7241 \end_inset
7242
7243 Presentations
7244 \begin_inset Quotes erd
7245 \end_inset
7246
7247  category).
7248  
7249 \end_layout
7250
7251 \begin_layout Standard
7252 If you would like to use a \SpecialChar LaTeX
7253  document class that is not even listed in the menu 
7254 \begin_inset Flex Noun
7255 status collapsed
7256
7257 \begin_layout Plain Layout
7258 Document\SpecialChar menuseparator
7259 Settings\SpecialChar menuseparator
7260 Document Class
7261 \end_layout
7262
7263 \end_inset
7264
7265 ,
7266  then you need to create a `layout' file for it.
7267  That is the topic of the next section.
7268 \end_layout
7269
7270 \begin_layout Section
7271 Types of layout files
7272 \end_layout
7273
7274 \begin_layout Standard
7275 This section describes the various sorts of \SpecialChar LyX
7276  files that contain layout information.
7277  These files describe various paragraph and character styles,
7278  determining how \SpecialChar LyX
7279  should display them and how they should be translated into \SpecialChar LaTeX
7280 ,
7281  DocBook,
7282  XHTML,
7283  or whatever output format is being used.
7284  
7285 \end_layout
7286
7287 \begin_layout Standard
7288 We shall try to provide a thorough description of the process of writing layout files here.
7289  However,
7290  there are so many different types of documents supported even by just \SpecialChar LaTeX
7291  that we can't hope to cover every different possibility or problem you might encounter.
7292  The \SpecialChar LyX
7293  users' list is frequented by people with lots of experience with layout design who are willing to share what they've learned,
7294  so please feel free to ask questions there.
7295 \end_layout
7296
7297 \begin_layout Standard
7298 As you prepare to write a new layout,
7299  it is extremely helpful to look at the layouts distributed with \SpecialChar LyX
7300 .
7301  If you write a \SpecialChar LyX
7302  layout for a \SpecialChar LaTeX
7303  document class that might also be used by others,
7304  or write a module that might be useful to others,
7305  then you should consider posting your layout to the 
7306 \begin_inset CommandInset href
7307 LatexCommand href
7308 name "layout section on the LyX wiki"
7309 target "https://wiki.lyx.org/Layouts/Layouts"
7310 literal "false"
7311
7312 \end_inset
7313
7314  or even to the \SpecialChar LyX
7315  developers' list,
7316  so that it might be included in \SpecialChar LyX
7317  itself.
7318 \begin_inset Foot
7319 status collapsed
7320
7321 \begin_layout Plain Layout
7322 Note that \SpecialChar LyX
7323  is licensed under the General Public License,
7324  so any material that is contributed to \SpecialChar LyX
7325  must be similarly licensed.
7326 \end_layout
7327
7328 \end_inset
7329
7330
7331 \end_layout
7332
7333 \begin_layout Subsection
7334 Layout modules
7335 \begin_inset CommandInset label
7336 LatexCommand label
7337 name "subsec:Layout-modules"
7338
7339 \end_inset
7340
7341
7342 \end_layout
7343
7344 \begin_layout Standard
7345 We have spoken to this point about `layout files'.
7346  But there are different sorts of files that contain layout information.
7347  Layout files,
7348  strictly so called,
7349  have the 
7350 \begin_inset Flex Code
7351 status collapsed
7352
7353 \begin_layout Plain Layout
7354 .layout
7355 \end_layout
7356
7357 \end_inset
7358
7359  extension and provide \SpecialChar LyX
7360  with information about document classes.
7361  Since \SpecialChar LyX
7362  1.6 layout information can also be contained in layout 
7363 \emph on
7364 modules
7365 \emph default
7366 ,
7367  which have the 
7368 \begin_inset Flex Code
7369 status collapsed
7370
7371 \begin_layout Plain Layout
7372 .module
7373 \end_layout
7374
7375 \end_inset
7376
7377  extension.
7378  Modules are to \SpecialChar LaTeX
7379  packages much as layouts are to \SpecialChar LaTeX
7380  classes,
7381  and some modules—
7382 such as the 
7383 \begin_inset Flex Code
7384 status collapsed
7385
7386 \begin_layout Plain Layout
7387 endnotes
7388 \end_layout
7389
7390 \end_inset
7391
7392  module—
7393 specifically provide support for one package.
7394  In a sense,
7395  layout modules are similar to included
7396 \begin_inset Foot
7397 status collapsed
7398
7399 \begin_layout Plain Layout
7400 These can have any extension,
7401  but by convention have the 
7402 \begin_inset Flex Code
7403 status collapsed
7404
7405 \begin_layout Plain Layout
7406 .inc
7407 \end_layout
7408
7409 \end_inset
7410
7411  extension.
7412 \end_layout
7413
7414 \end_inset
7415
7416  files—
7417 files like 
7418 \begin_inset Flex Code
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 stdsections.inc
7423 \end_layout
7424
7425 \end_inset
7426
7427
7428 in that modules are not specific to a given document class but may be used with many different classes.
7429  The difference is that using an included file with 
7430 \begin_inset Flex Code
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 article.cls
7435 \end_layout
7436
7437 \end_inset
7438
7439  requires editing that file.
7440  Modules,
7441  by contrast,
7442  are selected in the 
7443 \begin_inset Flex Noun
7444 status collapsed
7445
7446 \begin_layout Plain Layout
7447 Document\SpecialChar menuseparator
7448 Settings
7449 \end_layout
7450
7451 \end_inset
7452
7453  dialog.
7454 \end_layout
7455
7456 \begin_layout Standard
7457 Building modules is the easiest way to get started with layout editing,
7458  since it can be as simple as adding a single new paragraph style or flex inset.
7459  But modules may,
7460  in principle,
7461  contain anything a layout file can contain.
7462 \end_layout
7463
7464 \begin_layout Standard
7465 After creating a new module and copying it to the 
7466 \begin_inset Flex Code
7467 status collapsed
7468
7469 \begin_layout Plain Layout
7470 layouts/
7471 \end_layout
7472
7473 \end_inset
7474
7475  folder,
7476  you will need to reconfigure and then restart \SpecialChar LyX
7477  for the module to appear in the menu.
7478  However,
7479  changes you make to the module will be seen immediately,
7480  if you open 
7481 \begin_inset Flex Noun
7482 status collapsed
7483
7484 \begin_layout Plain Layout
7485 Document\SpecialChar menuseparator
7486 Settings
7487 \end_layout
7488
7489 \end_inset
7490
7491 ,
7492  highlight something,
7493  and then hit 
7494 \begin_inset Quotes eld
7495 \end_inset
7496
7497 OK
7498 \begin_inset Quotes erd
7499 \end_inset
7500
7501 .
7502  
7503 \emph on
7504 It is strongly recommended that you save your work before doing this
7505 \emph default
7506 .
7507  In fact,
7508  
7509 \emph on
7510 it is strongly recommended that you not attempt to edit modules while simultaneously working on actual documents
7511 \emph default
7512 .
7513  Though of course the developers strive to keep \SpecialChar LyX
7514  stable in such situations,
7515  syntax errors and the like in your module file could cause strange behavior.
7516 \end_layout
7517
7518 \begin_layout Subsubsection
7519 Local Layout
7520 \end_layout
7521
7522 \begin_layout Standard
7523 Modules are to \SpecialChar LyX
7524  as packages are to \SpecialChar LaTeX
7525 .
7526  Sometimes,
7527  however,
7528  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.
7529  What you need is \SpecialChar LyX
7530 's 
7531 \begin_inset Quotes eld
7532 \end_inset
7533
7534 Local Layout
7535 \begin_inset Quotes erd
7536 \end_inset
7537
7538 .
7539 \end_layout
7540
7541 \begin_layout Standard
7542 You will find it under 
7543 \family sans
7544 Document\SpecialChar menuseparator
7545 Settings\SpecialChar menuseparator
7546 Local Layout
7547 \family default
7548 .
7549  The large text box allows you to enter anything that you might enter in a layout file or module.
7550  You can think of a document's local layout,
7551  in fact,
7552  as a module that belongs just to it.
7553  So,
7554  in particular,
7555  you must enter a 
7556 \begin_inset Flex Code
7557 status collapsed
7558
7559 \begin_layout Plain Layout
7560 Format
7561 \end_layout
7562
7563 \end_inset
7564
7565  tag.
7566  Any format is acceptable,
7567  but one would normally use the format current at the time.
7568  (In \SpecialChar LyX
7569  
7570 \begin_inset Info
7571 type  "lyxinfo"
7572 arg   "version"
7573 \end_inset
7574
7575 ,
7576  the current layout format is 
7577 \begin_inset Info
7578 type  "lyxinfo"
7579 arg   "layoutformat"
7580 \end_inset
7581
7582 .)
7583 \end_layout
7584
7585 \begin_layout Standard
7586 When you have entered something in the 
7587 \begin_inset Flex Code
7588 status collapsed
7589
7590 \begin_layout Plain Layout
7591 Local Layout
7592 \end_layout
7593
7594 \end_inset
7595
7596  pane,
7597  \SpecialChar LyX
7598  will enable the 
7599 \begin_inset Quotes eld
7600 \end_inset
7601
7602 Validate
7603 \begin_inset Quotes erd
7604 \end_inset
7605
7606  button at the bottom.
7607  Clicking this button will cause \SpecialChar LyX
7608  to determine whether what you have entered is valid layout information for the chosen format.
7609  \SpecialChar LyX
7610  will report the result but,
7611  unfortunately,
7612  will not tell you what errors there might have been.
7613  These will be written to the terminal,
7614  however,
7615  if \SpecialChar LyX
7616  is started from a terminal.
7617  You will not be permitted to save your local layout until you have entered something valid.
7618 \end_layout
7619
7620 \begin_layout Standard
7621 The warnings at the end of the previous section apply here,
7622  too.
7623  Do not play with local layout while you are actually working,
7624  especially if you have not saved your document.
7625  That said,
7626  using local layout with a test document can be a very convenient way to try out layout ideas,
7627  or even to start developing a module.
7628 \end_layout
7629
7630 \begin_layout Subsection
7631 Layout for 
7632 \begin_inset Flex Noun
7633 status collapsed
7634
7635 \begin_layout Plain Layout
7636 .sty
7637 \end_layout
7638
7639 \end_inset
7640
7641  files
7642 \end_layout
7643
7644 \begin_layout Standard
7645 There are two situations you are likely to encounter when wanting to support a new \SpecialChar LaTeX
7646  document class,
7647  involving style (
7648 \begin_inset Flex Code
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652 .sty
7653 \end_layout
7654
7655 \end_inset
7656
7657 ) files and \SpecialChar LaTeX2e
7658  class (
7659 \begin_inset Flex Code
7660 status collapsed
7661
7662 \begin_layout Plain Layout
7663 .cls
7664 \end_layout
7665
7666 \end_inset
7667
7668 ) .
7669  Supporting a style file is usually fairly easy.
7670  Supporting a new class file is a bit harder.
7671  We'll discuss the former in this section and the latter in the next.
7672  
7673 \change_deleted 5863208 1594239023
7674 Similar remarks apply,
7675  of course,
7676  if you want to support a new DocBook DTD.
7677 \change_unchanged
7678
7679 \end_layout
7680
7681 \begin_layout Standard
7682 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.
7683  For the sake of the example,
7684  we'll assume that the style file is called 
7685 \begin_inset Flex Noun
7686 status collapsed
7687
7688 \begin_layout Plain Layout
7689 myclass.sty
7690 \end_layout
7691
7692 \end_inset
7693
7694  and that it is meant to be used with 
7695 \begin_inset Flex Noun
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 report.cls
7700 \end_layout
7701
7702 \end_inset
7703
7704 ,
7705  which is a standard class.
7706  
7707 \end_layout
7708
7709 \begin_layout Standard
7710 Start by copying the existing class's layout file into your local directory:
7711 \begin_inset Foot
7712 status collapsed
7713
7714 \begin_layout Plain Layout
7715 Of course,
7716  which directory is your local directory will vary by platform,
7717  and \SpecialChar LyX
7718  allows you to specify your local directory on startup,
7719  too,
7720  using the 
7721 \begin_inset Flex Code
7722 status collapsed
7723
7724 \begin_layout Plain Layout
7725 -userdir
7726 \end_layout
7727
7728 \end_inset
7729
7730  option.
7731 \end_layout
7732
7733 \end_inset
7734
7735
7736 \end_layout
7737
7738 \begin_layout LyX-Code
7739 cp report.layout ~/.lyx/layouts/myclass.layout
7740 \end_layout
7741
7742 \begin_layout Standard
7743 Then edit 
7744 \begin_inset Flex Code
7745 status collapsed
7746
7747 \begin_layout Plain Layout
7748 myclass.layout
7749 \end_layout
7750
7751 \end_inset
7752
7753  and change the line:
7754  
7755 \end_layout
7756
7757 \begin_layout LyX-Code
7758
7759 \backslash
7760 DeclareLaTeXClass{Report (Standard Class)}
7761 \end_layout
7762
7763 \begin_layout Standard
7764 to read
7765 \end_layout
7766
7767 \begin_layout LyX-Code
7768
7769 \backslash
7770 DeclareLaTeXClass[report,
7771  myclass.sty]{Report (My Class)}
7772 \end_layout
7773
7774 \begin_layout Standard
7775 Then add:
7776 \end_layout
7777
7778 \begin_layout LyX-Code
7779 Preamble 
7780 \begin_inset Newline newline
7781 \end_inset
7782
7783     
7784 \backslash
7785 usepackage{myclass}
7786 \begin_inset Newline newline
7787 \end_inset
7788
7789 EndPreamble
7790 \end_layout
7791
7792 \begin_layout Standard
7793 near the top of the file.
7794 \end_layout
7795
7796 \begin_layout Standard
7797 Start \SpecialChar LyX
7798  and select 
7799 \begin_inset Flex Noun
7800 status collapsed
7801
7802 \begin_layout Plain Layout
7803 Tools\SpecialChar menuseparator
7804 Reconfigure
7805 \end_layout
7806
7807 \end_inset
7808
7809 .
7810  Then restart \SpecialChar LyX
7811  and try creating a new document.
7812  You should see "
7813 \begin_inset Flex Noun
7814 status collapsed
7815
7816 \begin_layout Plain Layout
7817 Report (My Class)
7818 \end_layout
7819
7820 \end_inset
7821
7822 " as a document class option in the 
7823 \begin_inset Flex Noun
7824 status collapsed
7825
7826 \begin_layout Plain Layout
7827 Document\SpecialChar menuseparator
7828 Settings
7829 \end_layout
7830
7831 \end_inset
7832
7833  dialog.
7834  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—
7835
7836 \begin_inset Flex Code
7837 status collapsed
7838
7839 \begin_layout Plain Layout
7840 report
7841 \end_layout
7842
7843 \end_inset
7844
7845  in this example—
7846 so you can fiddle around with the settings for the different sections if you wish.
7847  The layout information for sections is contained in 
7848 \begin_inset Flex Code
7849 status collapsed
7850
7851 \begin_layout Plain Layout
7852 stdsections.inc
7853 \end_layout
7854
7855 \end_inset
7856
7857 ,
7858  but you do not need to copy and change this file.
7859  Instead,
7860  you can simply add your changes to your layout file,
7861  after the line 
7862 \begin_inset Flex Code
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866 Input stdclass.inc
7867 \end_layout
7868
7869 \end_inset
7870
7871 ,
7872  which itself includes 
7873 \begin_inset Flex Code
7874 status collapsed
7875
7876 \begin_layout Plain Layout
7877 stdsections.inc
7878 \end_layout
7879
7880 \end_inset
7881
7882 .
7883  For example,
7884  you might add these lines:
7885 \end_layout
7886
7887 \begin_layout LyX-Code
7888 Style Chapter
7889 \end_layout
7890
7891 \begin_layout LyX-Code
7892     Font
7893 \end_layout
7894
7895 \begin_layout LyX-Code
7896         Family Sans
7897 \end_layout
7898
7899 \begin_layout LyX-Code
7900     EndFont
7901 \end_layout
7902
7903 \begin_layout LyX-Code
7904 End
7905 \end_layout
7906
7907 \begin_layout Standard
7908 to change the font for chapter headings to sans-serif.
7909  This will override (or,
7910  in this case,
7911  add to) the existing declaration for the Chapter style.
7912  
7913 \end_layout
7914
7915 \begin_layout Standard
7916 Your new package may also provide commands or environments not present in the base class.
7917  In this case,
7918  you will want to add these to the layout file.
7919  See 
7920 \begin_inset CommandInset ref
7921 LatexCommand ref
7922 reference "sec:TextClass"
7923 nolink "false"
7924
7925 \end_inset
7926
7927  for information on how to do so.
7928 \end_layout
7929
7930 \begin_layout Standard
7931 If 
7932 \begin_inset Flex Noun
7933 status collapsed
7934
7935 \begin_layout Plain Layout
7936 myclass.sty
7937 \end_layout
7938
7939 \end_inset
7940
7941  can be used with several different document classes,
7942  and even if it cannot,
7943  you might find it easiest just to write a module that you can load with the base class.
7944  The simplest possible such module would be:
7945 \end_layout
7946
7947 \begin_layout LyX-Code
7948 #
7949 \backslash
7950 DeclareLyXModule{My Class} 
7951 \end_layout
7952
7953 \begin_layout LyX-Code
7954 #DescriptionBegin 
7955 \end_layout
7956
7957 \begin_layout LyX-Code
7958 #Support for myclass.sty.
7959 \end_layout
7960
7961 \begin_layout LyX-Code
7962 #DescriptionEnd
7963 \begin_inset Newline newline
7964 \end_inset
7965
7966
7967 \end_layout
7968
7969 \begin_layout LyX-Code
7970 Format 
7971 \begin_inset Info
7972 type  "lyxinfo"
7973 arg   "layoutformat"
7974 \end_inset
7975
7976
7977 \begin_inset Newline newline
7978 \end_inset
7979
7980
7981 \end_layout
7982
7983 \begin_layout LyX-Code
7984 Preamble
7985 \begin_inset Newline newline
7986 \end_inset
7987
7988     
7989 \backslash
7990 usepackage{myclass}
7991 \begin_inset Newline newline
7992 \end_inset
7993
7994 EndPreamble
7995 \end_layout
7996
7997 \begin_layout Standard
7998 A more complex module might modify the behavior of some existing constructs or define some new ones.
7999  Again,
8000  see 
8001 \begin_inset CommandInset ref
8002 LatexCommand ref
8003 reference "sec:TextClass"
8004 nolink "false"
8005
8006 \end_inset
8007
8008  for discussion.
8009 \end_layout
8010
8011 \begin_layout Subsection
8012 Layout for 
8013 \begin_inset Flex Noun
8014 status collapsed
8015
8016 \begin_layout Plain Layout
8017 .cls
8018 \end_layout
8019
8020 \end_inset
8021
8022  files
8023 \end_layout
8024
8025 \begin_layout Standard
8026 There are two possibilities here.
8027  One is that the class file is itself based upon an existing document class.
8028  For example,
8029  many thesis classes are based upon 
8030 \begin_inset Flex Noun
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 book.cls
8035 \end_layout
8036
8037 \end_inset
8038
8039 .
8040  To see whether yours is,
8041  look for a line like
8042 \end_layout
8043
8044 \begin_layout LyX-Code
8045
8046 \backslash
8047 LoadClass{book}
8048 \end_layout
8049
8050 \begin_layout Standard
8051 in the file.
8052  If so,
8053  then you may proceed largely as in the previous section,
8054  though the 
8055 \begin_inset Flex Code
8056 status collapsed
8057
8058 \begin_layout Plain Layout
8059 Declare\SpecialChar LaTeX
8060 Class
8061 \end_layout
8062
8063 \end_inset
8064
8065  line will be different.
8066  If your new class is 
8067 \begin_inset Flex Code
8068 status collapsed
8069
8070 \begin_layout Plain Layout
8071 thesis
8072 \end_layout
8073
8074 \end_inset
8075
8076  and it is based upon 
8077 \begin_inset Flex Code
8078 status collapsed
8079
8080 \begin_layout Plain Layout
8081 book
8082 \end_layout
8083
8084 \end_inset
8085
8086 ,
8087  then the line should read:
8088 \begin_inset Foot
8089 status collapsed
8090
8091 \begin_layout Plain Layout
8092 And it will be easiest if you save the file to 
8093 \begin_inset Flex Code
8094 status collapsed
8095
8096 \begin_layout Plain Layout
8097 thesis.layout
8098 \end_layout
8099
8100 \end_inset
8101
8102 :
8103  \SpecialChar LyX
8104  assumes that the document class has the same name as the layout file.
8105  
8106 \end_layout
8107
8108 \end_inset
8109
8110
8111 \end_layout
8112
8113 \begin_layout LyX-Code
8114
8115 \backslash
8116 DeclareLaTeXClass[thesis,book]{thesis}
8117 \end_layout
8118
8119 \begin_layout Standard
8120 If,
8121  on the other hand,
8122  the new class is not based upon an existing class,
8123  you will probably have to 
8124 \begin_inset Quotes eld
8125 \end_inset
8126
8127 roll your own
8128 \begin_inset Quotes erd
8129 \end_inset
8130
8131  layout.
8132  We strongly suggest copying an existing layout file which uses a similar \SpecialChar LaTeX
8133  class and then modifying it,
8134  if you can do so.
8135  At least use an existing file as a starting point so you can find out what items you need to worry about.
8136  Again,
8137  the specifics are covered below.
8138 \end_layout
8139
8140 \begin_layout Subsection
8141 Creating templates
8142 \begin_inset CommandInset label
8143 LatexCommand label
8144 name "subsec:Creating-Templates"
8145
8146 \end_inset
8147
8148
8149 \end_layout
8150
8151 \begin_layout Standard
8152 Once you have written a layout file for a new document class,
8153  you might want to consider writing a 
8154 \emph on
8155 template
8156 \emph default
8157  for it,
8158  too.
8159  A template acts as a kind of tutorial for your layout,
8160  showing how it might be used,
8161  though containing dummy content.
8162  You can of course look at the various templates included with \SpecialChar LyX
8163  for ideas.
8164 \end_layout
8165
8166 \begin_layout Standard
8167 Templates are created just like usual documents:
8168  using \SpecialChar LyX
8169 .
8170  The only difference is that usual documents contain all possible settings,
8171  including the font scheme and the paper size.
8172  Usually a user doesn't want a template to overwrite his preferred settings for such parameters.
8173  For that reason,
8174  the designer of a template should remove the corresponding commands like 
8175 \begin_inset Flex Code
8176 status collapsed
8177
8178 \begin_layout Plain Layout
8179
8180 \backslash
8181 font_roman
8182 \end_layout
8183
8184 \end_inset
8185
8186  or 
8187 \begin_inset Flex Code
8188 status collapsed
8189
8190 \begin_layout Plain Layout
8191
8192 \backslash
8193 papersize
8194 \end_layout
8195
8196 \end_inset
8197
8198  from the template \SpecialChar LyX
8199  file.
8200  This can be done with any simple text-editor,
8201  for example 
8202 \begin_inset Flex Code
8203 status collapsed
8204
8205 \begin_layout Plain Layout
8206 vi
8207 \end_layout
8208
8209 \end_inset
8210
8211  or 
8212 \begin_inset Flex Code
8213 status collapsed
8214
8215 \begin_layout Plain Layout
8216 notepad
8217 \end_layout
8218
8219 \end_inset
8220
8221 .
8222 \end_layout
8223
8224 \begin_layout Standard
8225 Put the edited template files you create in 
8226 \begin_inset Flex Code
8227 status collapsed
8228
8229 \begin_layout Plain Layout
8230 UserDir/templates/
8231 \end_layout
8232
8233 \end_inset
8234
8235 ,
8236  copy the ones you use from the global template directory in 
8237 \begin_inset Flex Code
8238 status collapsed
8239
8240 \begin_layout Plain Layout
8241 LyXDir/templates/
8242 \end_layout
8243
8244 \end_inset
8245
8246  to the same place,
8247  and redefine the template path in the 
8248 \begin_inset Flex Noun
8249 status collapsed
8250
8251 \begin_layout Plain Layout
8252 Tools\SpecialChar menuseparator
8253 Preferences\SpecialChar menuseparator
8254 Paths
8255 \end_layout
8256
8257 \end_inset
8258
8259  dialog.
8260 \end_layout
8261
8262 \begin_layout Standard
8263 Note,
8264  by the way,
8265  that there is a template which has a particular meaning:
8266 \begin_inset Newline linebreak
8267 \end_inset
8268
8269
8270 \begin_inset Flex Code
8271 status collapsed
8272
8273 \begin_layout Plain Layout
8274 defaults.lyx
8275 \end_layout
8276
8277 \end_inset
8278
8279 .
8280  This template is loaded every time you create a new document with 
8281 \begin_inset Flex Noun
8282 status collapsed
8283
8284 \begin_layout Plain Layout
8285 File\SpecialChar menuseparator
8286 New
8287 \end_layout
8288
8289 \end_inset
8290
8291  in order to provide useful defaults.
8292  To create this template from inside \SpecialChar LyX
8293 ,
8294  all you have to do is to open a document with the correct settings,
8295  and use the 
8296 \begin_inset Flex Noun
8297 status collapsed
8298
8299 \begin_layout Plain Layout
8300 Save as Document Defaults
8301 \end_layout
8302
8303 \end_inset
8304
8305  button.
8306 \end_layout
8307
8308 \begin_layout Subsection
8309 Upgrading old layout files
8310 \end_layout
8311
8312 \begin_layout Standard
8313 The format of layout files changes with each \SpecialChar LyX
8314  release,
8315  so old layout files need to be converted to the new format.
8316  If \SpecialChar LyX
8317  reads a layout file in an older format,
8318  it automatically calls the script 
8319 \begin_inset Flex Code
8320 status collapsed
8321
8322 \begin_layout Plain Layout
8323 layout2layout.py
8324 \end_layout
8325
8326 \end_inset
8327
8328  to convert it to a temporary file in current format.
8329  The original file is left untouched.
8330  If you use the layout file often,
8331  then,
8332  you may want to convert it permanently,
8333  so that \SpecialChar LyX
8334  does not have to do so itself every time.
8335  To do this,
8336  you can call the converter manually:
8337 \end_layout
8338
8339 \begin_layout Enumerate
8340 rename the file 
8341 \begin_inset Flex Code
8342 status collapsed
8343
8344 \begin_layout Plain Layout
8345 myclass.layout
8346 \end_layout
8347
8348 \end_inset
8349
8350  to 
8351 \begin_inset Flex Code
8352 status collapsed
8353
8354 \begin_layout Plain Layout
8355 myclass.old
8356 \end_layout
8357
8358 \end_inset
8359
8360
8361 \end_layout
8362
8363 \begin_layout Enumerate
8364 Call the command
8365 \begin_inset Newline newline
8366 \end_inset
8367
8368
8369 \begin_inset Flex Code
8370 status collapsed
8371
8372 \begin_layout Plain Layout
8373 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8374 \end_layout
8375
8376 \end_inset
8377
8378
8379 \begin_inset Newline newline
8380 \end_inset
8381
8382 where 
8383 \begin_inset Flex Code
8384 status collapsed
8385
8386 \begin_layout Plain Layout
8387 LyXDir
8388 \end_layout
8389
8390 \end_inset
8391
8392  is the name of your \SpecialChar LyX
8393  system directory.
8394 \end_layout
8395
8396 \begin_layout Standard
8397 Note that manual conversion does not affect included files,
8398  so these will have to be converted separately.
8399 \end_layout
8400
8401 \begin_layout Subsection
8402 \begin_inset CommandInset label
8403 LatexCommand label
8404 name "subsec:Cite-Engine-Files"
8405
8406 \end_inset
8407
8408 Cite engine files
8409 \end_layout
8410
8411 \begin_layout Standard
8412 A specific form of layout files are the so-called 
8413 \begin_inset Flex Code
8414 status collapsed
8415
8416 \begin_layout Plain Layout
8417 *.citeengine
8418 \end_layout
8419
8420 \end_inset
8421
8422  files that are located in the 
8423 \begin_inset Flex Code
8424 status collapsed
8425
8426 \begin_layout Plain Layout
8427 citeengines/
8428 \end_layout
8429
8430 \end_inset
8431
8432  sub-directory.
8433  Their purpose is to define the specifics of \SpecialChar LaTeX
8434  packages aimed at bibliography generation,
8435  such as 
8436 \family sans
8437 natbib
8438 \family default
8439 ,
8440
8441 \family sans
8442  jurabib
8443 \family default
8444  or 
8445 \family sans
8446 biblatex
8447 \family default
8448 ,
8449  but also the way how normal Bib\SpecialChar TeX
8450  citations (without additional packages) are handled in \SpecialChar LyX
8451  is defined in such a file.
8452  
8453 \end_layout
8454
8455 \begin_layout Standard
8456 More specifically,
8457  it is defined which packages \SpecialChar LyX
8458  needs to load,
8459  which citation commands are available,
8460  how these are to be displayed in \SpecialChar LyX
8461  (in the workarea,
8462  the dialogs,
8463  the context menus) as well as in the XHTML and plain text output.
8464  Furthermore,
8465  the files specify available style variants (author-year,
8466  numerical,
8467  etc.) and their specifics.
8468  The cite engine files are also used to generate the options that are available in 
8469 \family sans
8470 Document\SpecialChar menuseparator
8471 Settings\SpecialChar menuseparator
8472 Bibliography\SpecialChar menuseparator
8473 Style engine
8474 \family default
8475 .
8476 \end_layout
8477
8478 \begin_layout Standard
8479 Even though a cite engine file is essentially a normal layout file that could theoretically include any layout information,
8480  it usually primarily includes some specific parameters such as 
8481 \begin_inset Flex Code
8482 status collapsed
8483
8484 \begin_layout Plain Layout
8485 MaxCiteNames
8486 \end_layout
8487
8488 \end_inset
8489
8490 ,
8491  
8492 \begin_inset Flex Code
8493 status collapsed
8494
8495 \begin_layout Plain Layout
8496 CiteFramework
8497 \end_layout
8498
8499 \end_inset
8500
8501 ,
8502  
8503 \begin_inset Flex Code
8504 status collapsed
8505
8506 \begin_layout Plain Layout
8507 CiteEngine
8508 \end_layout
8509
8510 \end_inset
8511
8512  and 
8513 \begin_inset Flex Code
8514 status collapsed
8515
8516 \begin_layout Plain Layout
8517 CiteFormat
8518 \end_layout
8519
8520 \end_inset
8521
8522  blocks.
8523  The syntax of the latter two is described in 
8524 \begin_inset CommandInset ref
8525 LatexCommand ref
8526 reference "subsec:Citation-engine-description"
8527 plural "false"
8528 caps "false"
8529 noprefix "false"
8530 nolink "false"
8531
8532 \end_inset
8533
8534  and 
8535 \begin_inset CommandInset ref
8536 LatexCommand ref
8537 reference "subsec:Citation-format-description"
8538 nolink "false"
8539
8540 \end_inset
8541
8542 ,
8543  as well as in the files themselves.
8544 \end_layout
8545
8546 \begin_layout Section
8547 \begin_inset CommandInset label
8548 LatexCommand label
8549 name "sec:TextClass"
8550
8551 \end_inset
8552
8553 The layout file format
8554 \end_layout
8555
8556 \begin_layout Standard
8557 The following sections describe how layout files are structured and written.
8558  Our advice is to go slowly,
8559  save and test often.
8560  It is really not that hard,
8561  except that the multitude of options can become overwhelming,
8562  especially if you try to check out too many at once.
8563  It becomes easier if you use existing layouts of \SpecialChar LyX
8564  as examples/reference or if you modify an existing layout to your needs.
8565 \end_layout
8566
8567 \begin_layout Standard
8568 Note that all the tags used in layout files are case-insensitive.
8569  This means that 
8570 \begin_inset Flex Code
8571 status collapsed
8572
8573 \begin_layout Plain Layout
8574 Style
8575 \end_layout
8576
8577 \end_inset
8578
8579 ,
8580  
8581 \begin_inset Flex Code
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585 style
8586 \end_layout
8587
8588 \end_inset
8589
8590  and 
8591 \begin_inset Flex Code
8592 status collapsed
8593
8594 \begin_layout Plain Layout
8595 StYlE
8596 \end_layout
8597
8598 \end_inset
8599
8600  are really the same tag.
8601  The possible arguments are printed in brackets after the tag's name.
8602  The default argument is typeset 
8603 \begin_inset Flex Code
8604 status collapsed
8605
8606 \begin_layout Plain Layout
8607
8608 \emph on
8609 emphasized
8610 \end_layout
8611
8612 \end_inset
8613
8614 .
8615  If the argument has a data type like 
8616 \begin_inset Quotes eld
8617 \end_inset
8618
8619 string
8620 \begin_inset Quotes erd
8621 \end_inset
8622
8623  or 
8624 \begin_inset Quotes eld
8625 \end_inset
8626
8627 float
8628 \begin_inset Quotes erd
8629 \end_inset
8630
8631 ,
8632  the default is shown like this:
8633  
8634 \begin_inset Flex Code
8635 status collapsed
8636
8637 \begin_layout Plain Layout
8638 float=
8639 \emph on
8640 default
8641 \end_layout
8642
8643 \end_inset
8644
8645 .
8646 \end_layout
8647
8648 \begin_layout Subsection
8649 The document class declaration and classification
8650 \end_layout
8651
8652 \begin_layout Standard
8653 Lines in a layout file which begin with 
8654 \begin_inset Flex Code
8655 status collapsed
8656
8657 \begin_layout Plain Layout
8658 #
8659 \end_layout
8660
8661 \end_inset
8662
8663  are comments.
8664  There is one exception to this rule.
8665  All 
8666 \begin_inset Flex Code
8667 status collapsed
8668
8669 \begin_layout Plain Layout
8670 *.layout
8671 \end_layout
8672
8673 \end_inset
8674
8675  files should begin with lines like:
8676 \end_layout
8677
8678 \begin_layout LyX-Code
8679
8680 \size small
8681 #% Do not delete the line below;
8682  configure depends on this 
8683 \end_layout
8684
8685 \begin_layout LyX-Code
8686
8687 \size small
8688 #  
8689 \backslash
8690 DeclareLaTeXClass{Article (Standard Class)}
8691 \end_layout
8692
8693 \begin_layout LyX-Code
8694
8695 \size small
8696 #  
8697 \backslash
8698 DeclareCategory{Articles}
8699 \end_layout
8700
8701 \begin_layout Standard
8702 The second and third lines are used when you (re)configure \SpecialChar LyX
8703 .
8704  The layout file is read by the \SpecialChar LaTeX
8705  script 
8706 \begin_inset Flex Code
8707 status collapsed
8708
8709 \begin_layout Plain Layout
8710 chkconfig.ltx
8711 \end_layout
8712
8713 \end_inset
8714
8715 ,
8716  in a special mode where 
8717 \begin_inset Flex Code
8718 status collapsed
8719
8720 \begin_layout Plain Layout
8721 #
8722 \end_layout
8723
8724 \end_inset
8725
8726  is ignored.
8727  The first line is just a \SpecialChar LaTeX
8728  comment,
8729  the second one contains the mandatory declaration of the text class and the third line contains the optional classification of the class.
8730  If these lines appear in a file named 
8731 \begin_inset Flex Code
8732 status collapsed
8733
8734 \begin_layout Plain Layout
8735 article.layout
8736 \end_layout
8737
8738 \end_inset
8739
8740 ,
8741  then they define a text class of name 
8742 \begin_inset Flex Code
8743 status collapsed
8744
8745 \begin_layout Plain Layout
8746 article
8747 \end_layout
8748
8749 \end_inset
8750
8751  (the name of the layout file) which uses the \SpecialChar LaTeX
8752  document class 
8753 \begin_inset Flex Code
8754 status collapsed
8755
8756 \begin_layout Plain Layout
8757 article.cls
8758 \end_layout
8759
8760 \end_inset
8761
8762  (the default is to use the same name as the layout).
8763  The string 
8764 \begin_inset Quotes eld
8765 \end_inset
8766
8767 Article (Standard Class)
8768 \begin_inset Quotes erd
8769 \end_inset
8770
8771  that appears above is used as a description of the text class in the 
8772 \begin_inset Flex Noun
8773 status collapsed
8774
8775 \begin_layout Plain Layout
8776 Document\SpecialChar menuseparator
8777 Settings
8778 \end_layout
8779
8780 \end_inset
8781
8782  dialog.
8783  The category (
8784 \begin_inset Quotes eld
8785 \end_inset
8786
8787 Articles
8788 \begin_inset Quotes erd
8789 \end_inset
8790
8791  in the example) is also used in the 
8792 \begin_inset Flex Noun
8793 status collapsed
8794
8795 \begin_layout Plain Layout
8796 Document\SpecialChar menuseparator
8797 Settings
8798 \end_layout
8799
8800 \end_inset
8801
8802  dialog:
8803  the text classes are grouped by these categories (which are usually genres,
8804  so typical categories are 
8805 \begin_inset Quotes eld
8806 \end_inset
8807
8808 Articles
8809 \begin_inset Quotes erd
8810 \end_inset
8811
8812 ,
8813  
8814 \begin_inset Quotes eld
8815 \end_inset
8816
8817 Books
8818 \begin_inset Quotes erd
8819 \end_inset
8820
8821 ,
8822  
8823 \begin_inset Quotes eld
8824 \end_inset
8825
8826 Reports
8827 \begin_inset Quotes erd
8828 \end_inset
8829
8830 ,
8831  
8832 \begin_inset Quotes eld
8833 \end_inset
8834
8835 Letters
8836 \begin_inset Quotes erd
8837 \end_inset
8838
8839 ,
8840  
8841 \begin_inset Quotes eld
8842 \end_inset
8843
8844 Presentations
8845 \begin_inset Quotes erd
8846 \end_inset
8847
8848 ,
8849  
8850 \begin_inset Quotes eld
8851 \end_inset
8852
8853 Curricula Vitae
8854 \begin_inset Quotes erd
8855 \end_inset
8856
8857  etc.).
8858  If no category has been declared,
8859  the class will be put in the 
8860 \begin_inset Quotes eld
8861 \end_inset
8862
8863 Uncategorized
8864 \begin_inset Quotes erd
8865 \end_inset
8866
8867  group.
8868 \end_layout
8869
8870 \begin_layout Standard
8871 Let's assume that you wrote your own text class that uses the 
8872 \begin_inset Flex Code
8873 status collapsed
8874
8875 \begin_layout Plain Layout
8876 article.cls
8877 \end_layout
8878
8879 \end_inset
8880
8881  document class,
8882  but where you changed the appearance of the section headings.
8883  If you put it in a file 
8884 \begin_inset Flex Code
8885 status collapsed
8886
8887 \begin_layout Plain Layout
8888 myarticle.layout
8889 \end_layout
8890
8891 \end_inset
8892
8893 ,
8894  the header of this file should be:
8895 \end_layout
8896
8897 \begin_layout LyX-Code
8898
8899 \size small
8900 #% Do not delete the line below;
8901  configure depends on this 
8902 \end_layout
8903
8904 \begin_layout LyX-Code
8905
8906 \size small
8907 #  
8908 \backslash
8909 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8910 \end_layout
8911
8912 \begin_layout LyX-Code
8913
8914 \size small
8915 #  
8916 \backslash
8917 DeclareCategory{Articles}
8918 \end_layout
8919
8920 \begin_layout Standard
8921 This declares a text class 
8922 \begin_inset Flex Code
8923 status collapsed
8924
8925 \begin_layout Plain Layout
8926 myarticle
8927 \end_layout
8928
8929 \end_inset
8930
8931 ,
8932  associated with the \SpecialChar LaTeX
8933  document class 
8934 \begin_inset Flex Code
8935 status collapsed
8936
8937 \begin_layout Plain Layout
8938 article.cls
8939 \end_layout
8940
8941 \end_inset
8942
8943  and described as 
8944 \begin_inset Quotes eld
8945 \end_inset
8946
8947 Article (with My Own Headings)
8948 \begin_inset Quotes erd
8949 \end_inset
8950
8951 .
8952  If your text class depends on several packages,
8953  you can declare it as:
8954 \end_layout
8955
8956 \begin_layout LyX-Code
8957
8958 \size small
8959 #% Do not delete the line below;
8960  configure depends on this 
8961 \end_layout
8962
8963 \begin_layout LyX-Code
8964
8965 \size small
8966 #  
8967 \backslash
8968 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8969 \end_layout
8970
8971 \begin_layout LyX-Code
8972
8973 \size small
8974 #  
8975 \backslash
8976 DeclareCategory{Articles}
8977 \end_layout
8978
8979 \begin_layout Standard
8980 This indicates that your text class uses the 
8981 \begin_inset Flex Code
8982 status collapsed
8983
8984 \begin_layout Plain Layout
8985 foo.sty
8986 \end_layout
8987
8988 \end_inset
8989
8990  package.
8991  
8992 \change_deleted 5863208 1594239179
8993 Finally,
8994  it is also possible to declare classes for DocBook code.
8995  Typical declarations will look like:
8996 \end_layout
8997
8998 \begin_layout LyX-Code
8999
9000 \change_deleted 5863208 1594239179
9001
9002 \size small
9003 #% Do not delete the line below;
9004  configure depends on this 
9005 \end_layout
9006
9007 \begin_layout LyX-Code
9008
9009 \change_deleted 5863208 1594239179
9010
9011 \size small
9012
9013 \backslash
9014 DeclareDocBookClass[article]{SGML (DocBook Article)}
9015 \end_layout
9016
9017 \begin_layout LyX-Code
9018
9019 \change_deleted 5863208 1594239179
9020
9021 \size small
9022
9023 \backslash
9024 DeclareCategory{Articles (DocBook)}
9025 \change_unchanged
9026
9027 \end_layout
9028
9029 \begin_layout Standard
9030 Note that these declarations can also be given an optional parameter declaring the name of the document class (but not a list).
9031 \end_layout
9032
9033 \begin_layout Standard
9034 So,
9035  to be as explicit as possible,
9036  the form of the layout declaration is:
9037 \end_layout
9038
9039 \begin_layout LyX-Code
9040
9041 \size small
9042 #  
9043 \backslash
9044 DeclareLaTeXClass[class,package.sty]{layout description}
9045 \end_layout
9046
9047 \begin_layout LyX-Code
9048
9049 \size small
9050 #  
9051 \backslash
9052 DeclareCategory{category}
9053 \end_layout
9054
9055 \begin_layout Standard
9056 The class need only be specified if the name of the \SpecialChar LaTeX
9057  class file and the name of the layout file are different or if there are packages to load.
9058  If the name of the class file is not specified,
9059  then \SpecialChar LyX
9060  will simply assume that it is the same as the name of the layout file.
9061 \end_layout
9062
9063 \begin_layout Standard
9064 When the text class has been modified to your taste,
9065  all you have to do is to copy it either to 
9066 \begin_inset Flex Code
9067 status collapsed
9068
9069 \begin_layout Plain Layout
9070 LyXDir/layouts/
9071 \end_layout
9072
9073 \end_inset
9074
9075  or to 
9076 \begin_inset Flex Code
9077 status collapsed
9078
9079 \begin_layout Plain Layout
9080 UserDir/layouts
9081 \end_layout
9082
9083 \end_inset
9084
9085 ,
9086  run 
9087 \begin_inset Flex Noun
9088 status collapsed
9089
9090 \begin_layout Plain Layout
9091 Tools\SpecialChar menuseparator
9092 Reconfigure
9093 \end_layout
9094
9095 \end_inset
9096
9097 ,
9098  exit \SpecialChar LyX
9099  and restart.
9100  Then your new text class should be available along with the others.
9101 \end_layout
9102
9103 \begin_layout Standard
9104 Once the layout file is installed,
9105  you can edit it and see your changes without having to reconfigure or to restart \SpecialChar LyX
9106 .
9107 \begin_inset Foot
9108 status collapsed
9109
9110 \begin_layout Plain Layout
9111 In versions of \SpecialChar LyX
9112  prior to 1.6,
9113  this was not true.
9114  As a result,
9115  editing layout files was very time consuming,
9116  since you had constantly to restart \SpecialChar LyX
9117  to see changes.
9118 \end_layout
9119
9120 \end_inset
9121
9122  You can force a reload of the current layout by using the \SpecialChar LyX
9123  function 
9124 \begin_inset Flex Noun
9125 status collapsed
9126
9127 \begin_layout Plain Layout
9128 layout-reload
9129 \end_layout
9130
9131 \end_inset
9132
9133 .
9134  There is no default binding for this function—
9135 though,
9136  of course,
9137  you can bind it to a key yourself.
9138  But you will normally use this function simply by entering it in the mini-buffer.
9139  
9140 \end_layout
9141
9142 \begin_layout Standard
9143
9144 \emph on
9145 Warning
9146 \emph default
9147 :
9148  
9149 \begin_inset Flex Noun
9150 status collapsed
9151
9152 \begin_layout Plain Layout
9153 layout-reload
9154 \end_layout
9155
9156 \end_inset
9157
9158  is very much an `advanced feature'.
9159  It is 
9160 \emph on
9161 strongly
9162 \emph default
9163  recommended that you save your work before using this function.
9164  In fact,
9165  it is 
9166 \emph on
9167 strongly
9168 \emph default
9169  recommended that you not attempt to edit layout information while simultaneously working on a document that you care about.
9170  Use a test document.
9171  Syntax errors and the like in your layout file could cause peculiar behavior.
9172  In particular,
9173  such errors could cause \SpecialChar LyX
9174  to regard the current layout as invalid and to attempt to switch to some other layout.
9175 \begin_inset Foot
9176 status collapsed
9177
9178 \begin_layout Plain Layout
9179 Really bad syntax errors may even caused \SpecialChar LyX
9180  to exit.
9181  This is because certain sorts of errors may make \SpecialChar LyX
9182  unable to read 
9183 \emph on
9184 any
9185 \emph default
9186  layout information.
9187  Please be careful.
9188 \end_layout
9189
9190 \end_inset
9191
9192  The \SpecialChar LyX
9193  team strives to keep \SpecialChar LyX
9194  stable in such situations,
9195  but safe is better than sorry.
9196 \begin_inset Foot
9197 status collapsed
9198
9199 \begin_layout Plain Layout
9200 While we're giving advice:
9201  make regular backups.
9202  And be nice to your mother.
9203 \end_layout
9204
9205 \end_inset
9206
9207
9208 \end_layout
9209
9210 \begin_layout Subsection
9211 The Module declaration
9212 \end_layout
9213
9214 \begin_layout Standard
9215 A module must begin with a line like the following:
9216 \end_layout
9217
9218 \begin_layout LyX-Code
9219 #
9220 \backslash
9221 DeclareLyXModule[endnotes.sty]{Endnotes}
9222 \change_inserted -712698321 1554395911
9223
9224 \end_layout
9225
9226 \begin_layout LyX-Code
9227
9228 \change_inserted -712698321 1554395924
9229
9230 \size small
9231 #
9232 \backslash
9233 DeclareCategory{Foot- and Endnotes}
9234 \change_deleted -712698321 1554395911
9235
9236 \size default
9237  
9238 \change_unchanged
9239
9240 \end_layout
9241
9242 \begin_layout Standard
9243 The mandatory argument
9244 \change_inserted -712698321 1554395956
9245  of 
9246 \family typewriter
9247
9248 \backslash
9249 DeclareLyXModule
9250 \change_unchanged
9251
9252 \family default
9253 ,
9254  in curly brackets,
9255  is the name of the module,
9256  as it should appear in 
9257 \begin_inset Flex Noun
9258 status collapsed
9259
9260 \begin_layout Plain Layout
9261 Document\SpecialChar menuseparator
9262 Settings\SpecialChar menuseparator
9263 Modules
9264 \end_layout
9265
9266 \end_inset
9267
9268 .
9269  The argument in square brackets is optional:
9270  It declares any \SpecialChar LaTeX
9271  packages on which the module depends.
9272  It is also possible to use the form 
9273 \begin_inset Flex Noun
9274 status collapsed
9275
9276 \begin_layout Plain Layout
9277 from->to
9278 \end_layout
9279
9280 \end_inset
9281
9282  as an optional argument,
9283  which declares that the module can only be used when there exists a conversion chain between the formats `
9284 \begin_inset Flex Code
9285 status collapsed
9286
9287 \begin_layout Plain Layout
9288 from
9289 \end_layout
9290
9291 \end_inset
9292
9293 ' and `
9294 \begin_inset Flex Code
9295 status collapsed
9296
9297 \begin_layout Plain Layout
9298 to
9299 \end_layout
9300
9301 \end_inset
9302
9303 '.
9304
9305 \change_inserted -712698321 1554396133
9306  The 
9307 \family typewriter
9308
9309 \backslash
9310 DeclareCategory
9311 \family default
9312  declaration is not strictly mandatory,
9313  but you should add it,
9314  since it is helpful to find the module.
9315  Please have a look at the existing module categories and if appropriate,
9316  use one of those.
9317 \change_unchanged
9318
9319 \end_layout
9320
9321 \begin_layout Standard
9322 The module 
9323 \change_inserted -712698321 1554395988
9324 and category 
9325 \change_unchanged
9326 declaration should then be followed by lines like the following:
9327 \begin_inset Foot
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331 Preferably in English if the module should be published with \SpecialChar LyX
9332 .
9333  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9334 \end_layout
9335
9336 \end_inset
9337
9338
9339 \end_layout
9340
9341 \begin_layout LyX-Code
9342 #DescriptionBegin 
9343 \end_layout
9344
9345 \begin_layout LyX-Code
9346 #Adds an endnote command,
9347  in addition to footnotes.
9348  
9349 \end_layout
9350
9351 \begin_layout LyX-Code
9352 #You will need to add  
9353 \backslash
9354 theendnotes in TeX code where you 
9355 \end_layout
9356
9357 \begin_layout LyX-Code
9358 #want the endnotes to appear.
9359  
9360 \end_layout
9361
9362 \begin_layout LyX-Code
9363 #DescriptionEnd 
9364 \end_layout
9365
9366 \begin_layout LyX-Code
9367 #Requires:
9368  somemodule | othermodule
9369 \end_layout
9370
9371 \begin_layout LyX-Code
9372 #Excludes:
9373  badmodule
9374 \end_layout
9375
9376 \begin_layout Standard
9377 The description is used in 
9378 \begin_inset Flex Noun
9379 status collapsed
9380
9381 \begin_layout Plain Layout
9382 Document\SpecialChar menuseparator
9383 Settings\SpecialChar menuseparator
9384 Modules
9385 \end_layout
9386
9387 \end_inset
9388
9389  to provide the user with information about what the module does.
9390  The 
9391 \begin_inset Flex Code
9392 status collapsed
9393
9394 \begin_layout Plain Layout
9395 Requires
9396 \end_layout
9397
9398 \end_inset
9399
9400  line is used to identify other modules with which this one must be used;
9401  the 
9402 \begin_inset Flex Code
9403 status collapsed
9404
9405 \begin_layout Plain Layout
9406 Excludes
9407 \end_layout
9408
9409 \end_inset
9410
9411  line is used to identify modules with which this one may not be used.
9412  Both are optional,
9413  and,
9414  as shown,
9415  multiple modules should be separated with the pipe symbol:
9416  |.
9417  Note that the required modules are treated disjunctively:
9418  
9419 \emph on
9420 at least one
9421 \emph default
9422  of the required modules must be used.
9423  Similarly,
9424  
9425 \emph on
9426 no
9427 \emph default
9428  excluded module may be used.
9429  Note that modules are identified here by their filenames without the 
9430 \begin_inset Flex Code
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434 .module
9435 \end_layout
9436
9437 \end_inset
9438
9439  extension.
9440  So 
9441 \begin_inset Flex Code
9442 status collapsed
9443
9444 \begin_layout Plain Layout
9445 somemodule
9446 \end_layout
9447
9448 \end_inset
9449
9450  is really 
9451 \begin_inset Flex Code
9452 status collapsed
9453
9454 \begin_layout Plain Layout
9455 somemodule.module
9456 \end_layout
9457
9458 \end_inset
9459
9460 .
9461 \end_layout
9462
9463 \begin_layout Subsection
9464 The CiteEngine file declaration
9465 \end_layout
9466
9467 \begin_layout Standard
9468 A cite engine file must begin with a line like the following:
9469 \end_layout
9470
9471 \begin_layout LyX-Code
9472 #
9473 \backslash
9474 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9475 \end_layout
9476
9477 \begin_layout Standard
9478 The mandatory argument,
9479  in curly brackets,
9480  is the name of the cite style,
9481  as it should appear in 
9482 \begin_inset Flex Noun
9483 status collapsed
9484
9485 \begin_layout Plain Layout
9486 Document\SpecialChar menuseparator
9487 Settings\SpecialChar menuseparator
9488 Bibliography
9489 \end_layout
9490
9491 \end_inset
9492
9493 .
9494  The argument in square brackets is optional:
9495  It declares any \SpecialChar LaTeX
9496  packages on which the cite engine depends.
9497 \end_layout
9498
9499 \begin_layout Standard
9500 The cite engine declaration should then be followed by lines like the following:
9501 \begin_inset Foot
9502 status collapsed
9503
9504 \begin_layout Plain Layout
9505 Preferably in English if the module should be published with \SpecialChar LyX
9506 .
9507  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9508 \end_layout
9509
9510 \end_inset
9511
9512
9513 \end_layout
9514
9515 \begin_layout LyX-Code
9516 # DescriptionBegin
9517 \end_layout
9518
9519 \begin_layout LyX-Code
9520 #   Biblatex supports many author-year and numerical styles.
9521 \end_layout
9522
9523 \begin_layout LyX-Code
9524 #   It is mainly aimed at the Humanities.
9525  It is highly
9526 \end_layout
9527
9528 \begin_layout LyX-Code
9529 #   customizable,
9530  fully localized and provides many features
9531 \end_layout
9532
9533 \begin_layout LyX-Code
9534 #   that are not possible with BibTeX.
9535  The use of 'biber' as
9536 \end_layout
9537
9538 \begin_layout LyX-Code
9539 #   bibliography processor is advised.
9540 \end_layout
9541
9542 \begin_layout LyX-Code
9543 # DescriptionEnd
9544 \end_layout
9545
9546 \begin_layout Standard
9547 The description is used in 
9548 \begin_inset Flex Noun
9549 status collapsed
9550
9551 \begin_layout Plain Layout
9552 Document\SpecialChar menuseparator
9553 Settings\SpecialChar menuseparator
9554 Bibliography
9555 \end_layout
9556
9557 \end_inset
9558
9559  to provide the user with information about the cite engine.
9560 \end_layout
9561
9562 \begin_layout Subsection
9563 Format number
9564 \end_layout
9565
9566 \begin_layout Standard
9567 The first non-comment line of any layout file,
9568  included file,
9569  or module 
9570 \emph on
9571 must
9572 \emph default
9573  contain the file format number:
9574 \end_layout
9575
9576 \begin_layout Description
9577 \begin_inset Flex Code
9578 status collapsed
9579
9580 \begin_layout Plain Layout
9581 Format
9582 \end_layout
9583
9584 \end_inset
9585
9586  [
9587 \begin_inset Flex Code
9588 status collapsed
9589
9590 \begin_layout Plain Layout
9591 int
9592 \end_layout
9593
9594 \end_inset
9595
9596 ] The format number of the layout file.
9597 \end_layout
9598
9599 \begin_layout Standard
9600 This tag was introduced with \SpecialChar LyX
9601
9602 \begin_inset space ~
9603 \end_inset
9604
9605 1.4.0.
9606  Layout files from older \SpecialChar LyX
9607  versions do not have an explicit file format and are considered to have 
9608 \begin_inset Flex Code
9609 status collapsed
9610
9611 \begin_layout Plain Layout
9612 Format
9613 \begin_inset space ~
9614 \end_inset
9615
9616 1
9617 \end_layout
9618
9619 \end_inset
9620
9621 .
9622  The format for the present version of \SpecialChar LyX
9623  is format 60.
9624  But each version of \SpecialChar LyX
9625  is capable of reading earlier versions' layout files,
9626  just as they are capable of reading files produced by earlier versions of \SpecialChar LyX
9627 .
9628  There is,
9629  however,
9630  no provision for converting to earlier formats.
9631 \end_layout
9632
9633 \begin_layout Subsection
9634 \begin_inset CommandInset label
9635 LatexCommand label
9636 name "subsec:General-text-class"
9637
9638 \end_inset
9639
9640 General text class parameters
9641 \end_layout
9642
9643 \begin_layout Standard
9644 These are general parameters that govern the behavior of an entire document class.
9645  (This does 
9646 \emph on
9647 not
9648 \emph default
9649  mean that they must appear in 
9650 \begin_inset Flex Code
9651 status collapsed
9652
9653 \begin_layout Plain Layout
9654 .layout
9655 \end_layout
9656
9657 \end_inset
9658
9659  files rather than in modules.
9660  A module can contain any layout tag.)
9661 \end_layout
9662
9663 \begin_layout Description
9664
9665 \change_inserted -712698321 1526899478
9666 \begin_inset Flex Code
9667 status collapsed
9668
9669 \begin_layout Plain Layout
9670
9671 \change_inserted -712698321 1526898610
9672 AddToCiteEngine <engine>
9673 \change_unchanged
9674
9675 \end_layout
9676
9677 \end_inset
9678
9679  Extends the possibilities for displaying citation references.
9680  See 
9681 \begin_inset CommandInset ref
9682 LatexCommand ref
9683 reference "subsec:Citation-engine-description"
9684 plural "false"
9685 caps "false"
9686 noprefix "false"
9687 nolink "false"
9688
9689 \end_inset
9690
9691  for details.
9692  Must end with 
9693 \begin_inset Flex Code
9694 status collapsed
9695
9696 \begin_layout Plain Layout
9697
9698 \change_inserted -712698321 1526898823
9699 End
9700 \change_unchanged
9701
9702 \end_layout
9703
9704 \end_inset
9705
9706 .
9707 \end_layout
9708
9709 \begin_layout Description
9710 \begin_inset Flex Code
9711 status collapsed
9712
9713 \begin_layout Plain Layout
9714 AddToHTMLPreamble
9715 \end_layout
9716
9717 \end_inset
9718
9719  Adds information that will be output in the 
9720 \begin_inset Flex Code
9721 status collapsed
9722
9723 \begin_layout Plain Layout
9724 <head>
9725 \end_layout
9726
9727 \end_inset
9728
9729  block when the document is output to XHTML.
9730  Typically,
9731  this would be used to output CSS style information,
9732  but it can be used for anything that can appear in 
9733 \begin_inset Flex Code
9734 status collapsed
9735
9736 \begin_layout Plain Layout
9737 <head>
9738 \end_layout
9739
9740 \end_inset
9741
9742 .
9743  Must end with 
9744 \begin_inset Quotes eld
9745 \end_inset
9746
9747
9748 \begin_inset Flex Code
9749 status collapsed
9750
9751 \begin_layout Plain Layout
9752 EndPreamble
9753 \end_layout
9754
9755 \end_inset
9756
9757
9758 \begin_inset Quotes erd
9759 \end_inset
9760
9761 .
9762 \end_layout
9763
9764 \begin_layout Description
9765 \begin_inset Flex Code
9766 status collapsed
9767
9768 \begin_layout Plain Layout
9769 AddToPreamble
9770 \end_layout
9771
9772 \end_inset
9773
9774  Adds information to the document preamble.
9775  Must end with
9776 \begin_inset Newline newline
9777 \end_inset
9778
9779
9780 \begin_inset Quotes eld
9781 \end_inset
9782
9783
9784 \begin_inset Flex Code
9785 status collapsed
9786
9787 \begin_layout Plain Layout
9788 EndPreamble
9789 \end_layout
9790
9791 \end_inset
9792
9793
9794 \begin_inset Quotes erd
9795 \end_inset
9796
9797 .
9798 \change_inserted -712698321 1562592950
9799
9800 \end_layout
9801
9802 \begin_layout Description
9803
9804 \change_inserted -712698321 1562593040
9805 \begin_inset Flex Code
9806 status collapsed
9807
9808 \begin_layout Plain Layout
9809
9810 \change_inserted -712698321 1562592954
9811 BibInToc
9812 \change_unchanged
9813
9814 \end_layout
9815
9816 \end_inset
9817
9818  [
9819 \begin_inset Flex Code
9820 status collapsed
9821
9822 \begin_layout Plain Layout
9823
9824 \change_inserted -712698321 1562592950
9825
9826 \emph on
9827 0
9828 \change_unchanged
9829
9830 \end_layout
9831
9832 \end_inset
9833
9834 ,
9835 \begin_inset space \thinspace{}
9836 \end_inset
9837
9838
9839 \begin_inset Flex Code
9840 status collapsed
9841
9842 \begin_layout Plain Layout
9843
9844 \change_inserted -712698321 1562592950
9845 1
9846 \change_unchanged
9847
9848 \end_layout
9849
9850 \end_inset
9851
9852 ] If the document class adds the bibliography to the table of contents,
9853  add this option with value 
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858
9859 \change_inserted -712698321 1562592996
9860 1
9861 \change_unchanged
9862
9863 \end_layout
9864
9865 \end_inset
9866
9867  (or 
9868 \begin_inset Flex Code
9869 status collapsed
9870
9871 \begin_layout Plain Layout
9872
9873 \change_inserted -712698321 1562593006
9874 true
9875 \change_unchanged
9876
9877 \end_layout
9878
9879 \end_inset
9880
9881 ).
9882  This prevents the bibliography from being added twice.
9883 \change_unchanged
9884
9885 \end_layout
9886
9887 \begin_layout Description
9888 \begin_inset Flex Code
9889 status collapsed
9890
9891 \begin_layout Plain Layout
9892 CiteEngine <engine>
9893 \end_layout
9894
9895 \end_inset
9896
9897  Defines the possibilities for displaying citation references.
9898  See 
9899 \begin_inset CommandInset ref
9900 LatexCommand ref
9901 reference "subsec:Citation-engine-description"
9902 plural "false"
9903 caps "false"
9904 noprefix "false"
9905 nolink "false"
9906
9907 \end_inset
9908
9909  for details.
9910  Must end with 
9911 \begin_inset Quotes eld
9912 \end_inset
9913
9914
9915 \begin_inset Flex Code
9916 status collapsed
9917
9918 \begin_layout Plain Layout
9919 End
9920 \end_layout
9921
9922 \end_inset
9923
9924
9925 \begin_inset Quotes erd
9926 \end_inset
9927
9928 .
9929  Primarily used in cite engine files (see 
9930 \begin_inset CommandInset ref
9931 LatexCommand ref
9932 reference "subsec:Cite-Engine-Files"
9933 plural "false"
9934 caps "false"
9935 noprefix "false"
9936 nolink "false"
9937
9938 \end_inset
9939
9940 ).
9941
9942 \change_inserted -712698321 1526898530
9943  Note that if you specify this in a layout file or module,
9944  any cite engine definition will be overridden.
9945  Also see 
9946 \begin_inset Flex Code
9947 status collapsed
9948
9949 \begin_layout Plain Layout
9950
9951 \change_inserted -712698321 1526898530
9952 AddToCiteEngine
9953 \change_unchanged
9954
9955 \end_layout
9956
9957 \end_inset
9958
9959 .
9960 \change_unchanged
9961
9962 \end_layout
9963
9964 \begin_layout Description
9965 \begin_inset Flex Code
9966 status collapsed
9967
9968 \begin_layout Plain Layout
9969 CiteFormat
9970 \end_layout
9971
9972 \end_inset
9973
9974  Defines formats for use in the display of bibliographic information.
9975  See 
9976 \begin_inset CommandInset ref
9977 LatexCommand ref
9978 reference "subsec:Citation-format-description"
9979 nolink "false"
9980
9981 \end_inset
9982
9983  for details.
9984  Must end with 
9985 \begin_inset Quotes eld
9986 \end_inset
9987
9988
9989 \begin_inset Flex Code
9990 status collapsed
9991
9992 \begin_layout Plain Layout
9993 End
9994 \end_layout
9995
9996 \end_inset
9997
9998
9999 \begin_inset Quotes erd
10000 \end_inset
10001
10002 .
10003  Primarily used in cite engine files (see 
10004 \begin_inset CommandInset ref
10005 LatexCommand ref
10006 reference "subsec:Cite-Engine-Files"
10007 plural "false"
10008 caps "false"
10009 noprefix "false"
10010 nolink "false"
10011
10012 \end_inset
10013
10014 ).
10015
10016 \change_inserted -712698321 1526898585
10017  A cite format defined in a layout or module will override the cite engine definition.
10018 \change_unchanged
10019
10020 \end_layout
10021
10022 \begin_layout Description
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 CiteFramework
10028 \end_layout
10029
10030 \end_inset
10031
10032  [
10033 \begin_inset Flex Code
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037
10038 \emph on
10039 bibtex
10040 \end_layout
10041
10042 \end_inset
10043
10044 ,
10045 \begin_inset Flex Code
10046 status collapsed
10047
10048 \begin_layout Plain Layout
10049 biblatex
10050 \end_layout
10051
10052 \end_inset
10053
10054 ] Determines whether 
10055 \family sans
10056 Biblatex
10057 \family default
10058  or Bib\SpecialChar TeX
10059  is used to generate a Bibliography.
10060  Primarily used in cite engine files (see 
10061 \begin_inset CommandInset ref
10062 LatexCommand ref
10063 reference "subsec:Cite-Engine-Files"
10064 plural "false"
10065 caps "false"
10066 noprefix "false"
10067 nolink "false"
10068
10069 \end_inset
10070
10071 ).
10072 \end_layout
10073
10074 \begin_layout Description
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 ClassOptions
10080 \end_layout
10081
10082 \end_inset
10083
10084  Describes various global options supported by the document class.
10085  See 
10086 \begin_inset CommandInset ref
10087 LatexCommand ref
10088 reference "subsec:ClassOptions"
10089 nolink "false"
10090
10091 \end_inset
10092
10093  for a description.
10094  Must end with 
10095 \begin_inset Quotes eld
10096 \end_inset
10097
10098
10099 \begin_inset Flex Code
10100 status collapsed
10101
10102 \begin_layout Plain Layout
10103 End
10104 \end_layout
10105
10106 \end_inset
10107
10108
10109 \begin_inset Quotes erd
10110 \end_inset
10111
10112 .
10113 \end_layout
10114
10115 \begin_layout Description
10116 \begin_inset Flex Code
10117 status collapsed
10118
10119 \begin_layout Plain Layout
10120 Columns
10121 \end_layout
10122
10123 \end_inset
10124
10125  [
10126 \begin_inset Flex Code
10127 status collapsed
10128
10129 \begin_layout Plain Layout
10130
10131 \emph on
10132 1
10133 \end_layout
10134
10135 \end_inset
10136
10137 ,
10138 \begin_inset space \thinspace{}
10139 \end_inset
10140
10141
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 2
10147 \end_layout
10148
10149 \end_inset
10150
10151 ] Whether the class should 
10152 \emph on
10153 default
10154 \emph default
10155  to having one or two columns.
10156  Can be changed in the 
10157 \begin_inset Flex Noun
10158 status collapsed
10159
10160 \begin_layout Plain Layout
10161 Document\SpecialChar menuseparator
10162 Settings
10163 \end_layout
10164
10165 \end_inset
10166
10167  dialog.
10168 \end_layout
10169
10170 \begin_layout Description
10171 \begin_inset Flex Code
10172 status collapsed
10173
10174 \begin_layout Plain Layout
10175 Counter
10176 \end_layout
10177
10178 \end_inset
10179
10180  [
10181 \begin_inset Flex Code
10182 status collapsed
10183
10184 \begin_layout Plain Layout
10185 string
10186 \end_layout
10187
10188 \end_inset
10189
10190 ] This sequence defines the properties for a counter.
10191  If the counter does not yet exist,
10192  it is created;
10193  if it does exist,
10194  it is modified.
10195  Must end with 
10196 \begin_inset Quotes eld
10197 \end_inset
10198
10199
10200 \begin_inset Flex Code
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 End
10205 \end_layout
10206
10207 \end_inset
10208
10209
10210 \begin_inset Quotes erd
10211 \end_inset
10212
10213 .
10214 \begin_inset Newline newline
10215 \end_inset
10216
10217 See 
10218 \begin_inset CommandInset ref
10219 LatexCommand ref
10220 reference "subsec:Counters"
10221 nolink "false"
10222
10223 \end_inset
10224
10225  for details on counters.
10226 \end_layout
10227
10228 \begin_layout Description
10229 \begin_inset Flex Code
10230 status collapsed
10231
10232 \begin_layout Plain Layout
10233 DefaultFont
10234 \end_layout
10235
10236 \end_inset
10237
10238  Sets the default font used to display the document.
10239  See 
10240 \begin_inset CommandInset ref
10241 LatexCommand ref
10242 reference "subsec:Font-description"
10243 nolink "false"
10244
10245 \end_inset
10246
10247  for how to declare fonts.
10248  Must end with 
10249 \begin_inset Quotes eld
10250 \end_inset
10251
10252
10253 \begin_inset Flex Code
10254 status collapsed
10255
10256 \begin_layout Plain Layout
10257 EndFont
10258 \end_layout
10259
10260 \end_inset
10261
10262
10263 \begin_inset Quotes erd
10264 \end_inset
10265
10266 .
10267 \end_layout
10268
10269 \begin_layout Description
10270 \begin_inset Flex Code
10271 status collapsed
10272
10273 \begin_layout Plain Layout
10274 DefaultModule
10275 \end_layout
10276
10277 \end_inset
10278
10279  [
10280 \begin_inset Flex Code
10281 status collapsed
10282
10283 \begin_layout Plain Layout
10284 <module>
10285 \end_layout
10286
10287 \end_inset
10288
10289 ] Specifies a module to be included by default with this document class.
10290  The module is specified as filename without the 
10291 \begin_inset Flex Code
10292 status collapsed
10293
10294 \begin_layout Plain Layout
10295 .module
10296 \end_layout
10297
10298 \end_inset
10299
10300  extension.
10301  The user can still remove the module,
10302  but it will be active at the outset.
10303  (This applies only when new files are created,
10304  or when this class is chosen for an existing document.)
10305 \end_layout
10306
10307 \begin_layout Description
10308 \begin_inset Flex Code
10309 status collapsed
10310
10311 \begin_layout Plain Layout
10312 DefaultStyle
10313 \end_layout
10314
10315 \end_inset
10316
10317  [
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 <style>
10323 \end_layout
10324
10325 \end_inset
10326
10327 ] This is the style that will be assigned to new paragraphs,
10328  usually 
10329 \begin_inset Flex Noun
10330 status collapsed
10331
10332 \begin_layout Plain Layout
10333 Standard
10334 \end_layout
10335
10336 \end_inset
10337
10338 .
10339  This will default to the first defined style if not given,
10340  but you are encouraged to use this directive.
10341 \end_layout
10342
10343 \begin_layout Description
10344
10345 \change_inserted -970929547 1515112870
10346 \begin_inset Flex Code
10347 status collapsed
10348
10349 \begin_layout Plain Layout
10350
10351 \change_inserted -970929547 1515112782
10352 DocBookRoot
10353 \change_unchanged
10354
10355 \end_layout
10356
10357 \end_inset
10358
10359  [
10360 \begin_inset Flex Code
10361 status collapsed
10362
10363 \begin_layout Plain Layout
10364
10365 \change_inserted -970929547 1515112766
10366 string
10367 \change_unchanged
10368
10369 \end_layout
10370
10371 \end_inset
10372
10373 ] The root element (at the top of the document) to use when outputting documents with this class in DocBook.
10374  The default value is 
10375 \begin_inset Quotes eld
10376 \end_inset
10377
10378
10379 \begin_inset Flex Code
10380 status collapsed
10381
10382 \begin_layout Plain Layout
10383
10384 \change_inserted -970929547 1515112845
10385 article
10386 \change_unchanged
10387
10388 \end_layout
10389
10390 \end_inset
10391
10392
10393 \begin_inset Quotes erd
10394 \end_inset
10395
10396 .
10397
10398 \change_deleted 1075283030 1594226862
10399  
10400 \change_inserted 1075283030 1594226777
10401
10402 \end_layout
10403
10404 \begin_layout Description
10405
10406 \change_inserted 1075283030 1594226859
10407 \begin_inset Flex Code
10408 status collapsed
10409
10410 \begin_layout Plain Layout
10411
10412 \change_inserted 1075283030 1594226785
10413 DocBookForceAbstract
10414 \change_unchanged
10415
10416 \end_layout
10417
10418 \end_inset
10419
10420  [
10421 \begin_inset Flex Code
10422 status collapsed
10423
10424 \begin_layout Plain Layout
10425
10426 \change_inserted 1075283030 1594226804
10427 boolean
10428 \change_unchanged
10429
10430 \end_layout
10431
10432 \end_inset
10433
10434 ] If 
10435 \begin_inset Quotes eld
10436 \end_inset
10437
10438
10439 \family typewriter
10440 true
10441 \family default
10442
10443 \begin_inset Quotes erd
10444 \end_inset
10445
10446 ,
10447  the root element will always have an 
10448 \family typewriter
10449 <abstract>
10450 \family default
10451  tag.
10452  The default value is 
10453 \begin_inset Quotes eld
10454 \end_inset
10455
10456
10457 \family typewriter
10458 false
10459 \family default
10460
10461 \begin_inset Quotes erd
10462 \end_inset
10463
10464 .
10465 \change_unchanged
10466
10467 \end_layout
10468
10469 \begin_layout Description
10470 \begin_inset Flex Code
10471 status collapsed
10472
10473 \begin_layout Plain Layout
10474 ExcludesModule
10475 \end_layout
10476
10477 \end_inset
10478
10479  [
10480 \begin_inset Flex Code
10481 status collapsed
10482
10483 \begin_layout Plain Layout
10484 <module>
10485 \end_layout
10486
10487 \end_inset
10488
10489 ] This tag indicates that the module (which is specified by filename without the 
10490 \begin_inset Flex Code
10491 status collapsed
10492
10493 \begin_layout Plain Layout
10494 .module
10495 \end_layout
10496
10497 \end_inset
10498
10499  extension) cannot be used with this document class.
10500  This might be used in a journal-specific layout file to prevent,
10501  say,
10502  the use of the 
10503 \begin_inset Flex Code
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507 theorems-sec
10508 \end_layout
10509
10510 \end_inset
10511
10512  module that numbers theorems by section.
10513  This tag may 
10514 \emph on
10515 not
10516 \emph default
10517  be used in a module.
10518  Modules have their own way of excluding other modules (see 
10519 \begin_inset CommandInset ref
10520 LatexCommand ref
10521 reference "subsec:Layout-modules"
10522 nolink "false"
10523
10524 \end_inset
10525
10526 ).
10527 \end_layout
10528
10529 \begin_layout Description
10530 \begin_inset Flex Code
10531 status collapsed
10532
10533 \begin_layout Plain Layout
10534 Float
10535 \end_layout
10536
10537 \end_inset
10538
10539  Defines a new float.
10540  See 
10541 \begin_inset CommandInset ref
10542 LatexCommand ref
10543 reference "subsec:Floats"
10544 nolink "false"
10545
10546 \end_inset
10547
10548  for details.
10549  Must end with 
10550 \begin_inset Quotes eld
10551 \end_inset
10552
10553
10554 \begin_inset Flex Code
10555 status collapsed
10556
10557 \begin_layout Plain Layout
10558 End
10559 \end_layout
10560
10561 \end_inset
10562
10563
10564 \begin_inset Quotes erd
10565 \end_inset
10566
10567 .
10568 \end_layout
10569
10570 \begin_layout Description
10571 \begin_inset Flex Code
10572 status collapsed
10573
10574 \begin_layout Plain Layout
10575 HTMLPreamble
10576 \end_layout
10577
10578 \end_inset
10579
10580  Sets the information that will be output in the 
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 <head>
10586 \end_layout
10587
10588 \end_inset
10589
10590  block when this document class is output to XHTML.
10591  Note that this will completely override any prior 
10592 \begin_inset Flex Code
10593 status collapsed
10594
10595 \begin_layout Plain Layout
10596 HTMLPreamble
10597 \end_layout
10598
10599 \end_inset
10600
10601  or 
10602 \begin_inset Flex Code
10603 status collapsed
10604
10605 \begin_layout Plain Layout
10606 AddToHTMLPreamble
10607 \end_layout
10608
10609 \end_inset
10610
10611  declarations.
10612  (Use
10613 \begin_inset Newline newline
10614 \end_inset
10615
10616
10617 \begin_inset Flex Code
10618 status collapsed
10619
10620 \begin_layout Plain Layout
10621 AddToHTMLPreamble
10622 \end_layout
10623
10624 \end_inset
10625
10626  if you just want to add material to the preamble.) Must end with 
10627 \begin_inset Quotes eld
10628 \end_inset
10629
10630
10631 \begin_inset Flex Code
10632 status collapsed
10633
10634 \begin_layout Plain Layout
10635 EndPreamble
10636 \end_layout
10637
10638 \end_inset
10639
10640
10641 \begin_inset Quotes erd
10642 \end_inset
10643
10644 .
10645 \end_layout
10646
10647 \begin_layout Description
10648 \begin_inset Flex Code
10649 status collapsed
10650
10651 \begin_layout Plain Layout
10652 HTMLTOCSection
10653 \end_layout
10654
10655 \end_inset
10656
10657  [
10658 \begin_inset Flex Code
10659 status collapsed
10660
10661 \begin_layout Plain Layout
10662 <style>
10663 \end_layout
10664
10665 \end_inset
10666
10667 ] The style to use for the table of contents,
10668  bibliography,
10669  and so forth,
10670  when the document is output to HTML.
10671  For articles,
10672  this should normally be 
10673 \begin_inset Flex Code
10674 status collapsed
10675
10676 \begin_layout Plain Layout
10677 Section
10678 \end_layout
10679
10680 \end_inset
10681
10682 ;
10683  for books 
10684 \begin_inset Flex Code
10685 status collapsed
10686
10687 \begin_layout Plain Layout
10688 Chapter
10689 \end_layout
10690
10691 \end_inset
10692
10693 .
10694  If it is not given,
10695  then \SpecialChar LyX
10696  will attempt to figure out which layout to use.
10697 \end_layout
10698
10699 \begin_layout Description
10700 \begin_inset Flex Code
10701 status collapsed
10702
10703 \begin_layout Plain Layout
10704 IfCounter
10705 \end_layout
10706
10707 \end_inset
10708
10709  [
10710 \begin_inset Flex Code
10711 status collapsed
10712
10713 \begin_layout Plain Layout
10714 <counter>
10715 \end_layout
10716
10717 \end_inset
10718
10719 ] Modifies the properties of the given counter.
10720  If the counter does not exist,
10721  the statement is ignored.
10722  Must end with 
10723 \begin_inset Quotes eld
10724 \end_inset
10725
10726
10727 \begin_inset Flex Code
10728 status collapsed
10729
10730 \begin_layout Plain Layout
10731 End
10732 \end_layout
10733
10734 \end_inset
10735
10736
10737 \begin_inset Quotes erd
10738 \end_inset
10739
10740 .
10741 \begin_inset Newline newline
10742 \end_inset
10743
10744 See 
10745 \begin_inset CommandInset ref
10746 LatexCommand ref
10747 reference "subsec:Counters"
10748 nolink "false"
10749
10750 \end_inset
10751
10752  for details on counters.
10753 \end_layout
10754
10755 \begin_layout Description
10756 \begin_inset Flex Code
10757 status collapsed
10758
10759 \begin_layout Plain Layout
10760 Input
10761 \end_layout
10762
10763 \end_inset
10764
10765  [
10766 \begin_inset Flex Code
10767 status collapsed
10768
10769 \begin_layout Plain Layout
10770 <filename>
10771 \end_layout
10772
10773 \end_inset
10774
10775 ] This allows you to include another layout definition file within yours to avoid duplicating commands.
10776  Common examples are the standard layout files,
10777  for example,
10778  
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783 stdclass.inc
10784 \end_layout
10785
10786 \end_inset
10787
10788 ,
10789  which contains most of the basic layouts.
10790 \change_inserted -712698321 1611646803
10791
10792 \end_layout
10793
10794 \begin_layout Description
10795
10796 \change_inserted -712698321 1611646804
10797 \begin_inset Flex Code
10798 status collapsed
10799
10800 \begin_layout Plain Layout
10801
10802 \change_inserted -712698321 1611646837
10803 InputGlobal
10804 \change_unchanged
10805
10806 \end_layout
10807
10808 \end_inset
10809
10810  [
10811 \begin_inset Flex Code
10812 status collapsed
10813
10814 \begin_layout Plain Layout
10815
10816 \change_inserted -712698321 1611646804
10817 <filename>
10818 \change_unchanged
10819
10820 \end_layout
10821
10822 \end_inset
10823
10824 ] is a variant of the 
10825 \begin_inset Flex Code
10826 status collapsed
10827
10828 \begin_layout Plain Layout
10829
10830 \change_inserted -712698321 1611646804
10831 Input
10832 \change_unchanged
10833
10834 \end_layout
10835
10836 \end_inset
10837
10838  command which does not look for files in the user directory.
10839  This allows to create a file 
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844
10845 \change_inserted -712698321 1611646804
10846 name.layout
10847 \change_unchanged
10848
10849 \end_layout
10850
10851 \end_inset
10852
10853  or 
10854 \begin_inset Flex Code
10855 status collapsed
10856
10857 \begin_layout Plain Layout
10858
10859 \change_inserted -712698321 1611646804
10860 name.inc
10861 \change_unchanged
10862
10863 \end_layout
10864
10865 \end_inset
10866
10867  in the user directory which includes a global file with the same name via 
10868 \begin_inset Flex Code
10869 status collapsed
10870
10871 \begin_layout Plain Layout
10872
10873 \change_inserted -712698321 1611646853
10874 InputGlobal name
10875 \change_unchanged
10876
10877 \end_layout
10878
10879 \end_inset
10880
10881  or 
10882 \begin_inset Flex Code
10883 status collapsed
10884
10885 \begin_layout Plain Layout
10886
10887 \change_inserted -712698321 1611646855
10888 InputGlobal name.inc
10889 \change_unchanged
10890
10891 \end_layout
10892
10893 \end_inset
10894
10895 ,
10896  respectively (with 
10897 \begin_inset Flex Code
10898 status collapsed
10899
10900 \begin_layout Plain Layout
10901
10902 \change_inserted -712698321 1611646804
10903 Input
10904 \change_unchanged
10905
10906 \end_layout
10907
10908 \end_inset
10909
10910 ,
10911  the file would recursively include itself).
10912  This way,
10913  you can modify global files without having to completely copy them.
10914 \change_unchanged
10915
10916 \end_layout
10917
10918 \begin_layout Description
10919 \begin_inset Flex Code
10920 status collapsed
10921
10922 \begin_layout Plain Layout
10923 InsetLayout
10924 \end_layout
10925
10926 \end_inset
10927
10928  [
10929 \begin_inset Flex Code
10930 status collapsed
10931
10932 \begin_layout Plain Layout
10933 <type>
10934 \end_layout
10935
10936 \end_inset
10937
10938 ] This section (re-)defines the layout of an inset.
10939  It can be applied to an existing inset or to a new,
10940  user-defined inset,
10941  e.g.,
10942  a new character style.
10943  Must end with 
10944 \begin_inset Quotes eld
10945 \end_inset
10946
10947
10948 \begin_inset Flex Code
10949 status collapsed
10950
10951 \begin_layout Plain Layout
10952 End
10953 \end_layout
10954
10955 \end_inset
10956
10957
10958 \begin_inset Quotes erd
10959 \end_inset
10960
10961 .
10962 \begin_inset Newline newline
10963 \end_inset
10964
10965 See 
10966 \begin_inset CommandInset ref
10967 LatexCommand ref
10968 reference "subsec:Flex-insets-and"
10969 nolink "false"
10970
10971 \end_inset
10972
10973  for more information.
10974  
10975 \end_layout
10976
10977 \begin_layout Description
10978 \begin_inset Flex Code
10979 status collapsed
10980
10981 \begin_layout Plain Layout
10982 LeftMargin
10983 \end_layout
10984
10985 \end_inset
10986
10987  [
10988 \begin_inset Flex Code
10989 status collapsed
10990
10991 \begin_layout Plain Layout
10992 string
10993 \end_layout
10994
10995 \end_inset
10996
10997 ] A string that indicates the width of the left margin on the screen,
10998  for example,
10999  
11000 \begin_inset Quotes eld
11001 \end_inset
11002
11003
11004 \begin_inset Flex Code
11005 status collapsed
11006
11007 \begin_layout Plain Layout
11008 MMMMM
11009 \end_layout
11010
11011 \end_inset
11012
11013
11014 \begin_inset Quotes erd
11015 \end_inset
11016
11017 .
11018  (Note that this is not a `length',
11019  like 
11020 \begin_inset Quotes eld
11021 \end_inset
11022
11023 2ex
11024 \begin_inset Quotes erd
11025 \end_inset
11026
11027 .)
11028 \end_layout
11029
11030 \begin_layout Description
11031 \begin_inset Flex Code
11032 status collapsed
11033
11034 \begin_layout Plain Layout
11035 MaxCiteNames
11036 \end_layout
11037
11038 \end_inset
11039
11040  [
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045 integer
11046 \end_layout
11047
11048 \end_inset
11049
11050 ] An integer that determines the maximal number of names displayed in an author-year citation before the citation switches to 
11051 \begin_inset Quotes eld
11052 \end_inset
11053
11054 FirstAuthor et al.
11055 \begin_inset Quotes erd
11056 \end_inset
11057
11058 .
11059  Primarily used in cite engine files (see 
11060 \begin_inset CommandInset ref
11061 LatexCommand ref
11062 reference "subsec:Cite-Engine-Files"
11063 plural "false"
11064 caps "false"
11065 noprefix "false"
11066 nolink "false"
11067
11068 \end_inset
11069
11070 ).
11071 \end_layout
11072
11073 \begin_layout Description
11074
11075 \change_inserted -712698321 1612018485
11076 \begin_inset Flex Code
11077 status collapsed
11078
11079 \begin_layout Plain Layout
11080
11081 \change_inserted -712698321 1612018457
11082 ModifyInsetLayout
11083 \change_unchanged
11084
11085 \end_layout
11086
11087 \end_inset
11088
11089  [
11090 \begin_inset Flex Code
11091 status collapsed
11092
11093 \begin_layout Plain Layout
11094
11095 \change_inserted -712698321 1612018466
11096 <type>
11097 \change_unchanged
11098
11099 \end_layout
11100
11101 \end_inset
11102
11103 ] Modifies the layout of an inset.
11104  If the layout does not exist,
11105  this section is ignored.
11106  Must end with 
11107 \begin_inset Quotes eld
11108 \end_inset
11109
11110
11111 \begin_inset Flex Code
11112 status collapsed
11113
11114 \begin_layout Plain Layout
11115
11116 \change_inserted -712698321 1612018452
11117 End
11118 \change_unchanged
11119
11120 \end_layout
11121
11122 \end_inset
11123
11124
11125 \begin_inset Quotes erd
11126 \end_inset
11127
11128 .
11129 \end_layout
11130
11131 \begin_layout Description
11132 \begin_inset Flex Code
11133 status collapsed
11134
11135 \begin_layout Plain Layout
11136 ModifyStyle
11137 \end_layout
11138
11139 \end_inset
11140
11141  [
11142 \begin_inset Flex Code
11143 status collapsed
11144
11145 \begin_layout Plain Layout
11146 <style>
11147 \end_layout
11148
11149 \end_inset
11150
11151 ] Modifies the properties of the given paragraph style.
11152  If the style does not exist,
11153  this section is ignored.
11154  Must end with 
11155 \begin_inset Quotes eld
11156 \end_inset
11157
11158
11159 \begin_inset Flex Code
11160 status collapsed
11161
11162 \begin_layout Plain Layout
11163 End
11164 \end_layout
11165
11166 \end_inset
11167
11168
11169 \begin_inset Quotes erd
11170 \end_inset
11171
11172 .
11173 \end_layout
11174
11175 \begin_layout Description
11176 \begin_inset Flex Code
11177 status collapsed
11178
11179 \begin_layout Plain Layout
11180 NoCounter
11181 \end_layout
11182
11183 \end_inset
11184
11185  [
11186 \begin_inset Flex Code
11187 status collapsed
11188
11189 \begin_layout Plain Layout
11190 <counter>
11191 \end_layout
11192
11193 \end_inset
11194
11195 ] Deletes an existing counter,
11196  usually one defined in an included file.
11197 \end_layout
11198
11199 \begin_layout Description
11200 \begin_inset Flex Code
11201 status collapsed
11202
11203 \begin_layout Plain Layout
11204 NoFloat
11205 \end_layout
11206
11207 \end_inset
11208
11209  [
11210 \begin_inset Flex Code
11211 status collapsed
11212
11213 \begin_layout Plain Layout
11214 <float>
11215 \end_layout
11216
11217 \end_inset
11218
11219 ] Deletes an existing float.
11220  This is particularly useful when you want to suppress a float that has been defined in an input file.
11221 \end_layout
11222
11223 \begin_layout Description
11224 \begin_inset Flex Code
11225 status collapsed
11226
11227 \begin_layout Plain Layout
11228 NoStyle
11229 \end_layout
11230
11231 \end_inset
11232
11233  [
11234 \begin_inset Flex Code
11235 status collapsed
11236
11237 \begin_layout Plain Layout
11238 <style>
11239 \end_layout
11240
11241 \end_inset
11242
11243 ] Deletes an existing style.
11244 \end_layout
11245
11246 \begin_layout Description
11247 \begin_inset Flex Code
11248 status collapsed
11249
11250 \begin_layout Plain Layout
11251 OutlinerName
11252 \end_layout
11253
11254 \end_inset
11255
11256  [
11257 \begin_inset Flex Code
11258 status collapsed
11259
11260 \begin_layout Plain Layout
11261 <type>
11262 \end_layout
11263
11264 \end_inset
11265
11266 ] [
11267 \begin_inset Flex Code
11268 status collapsed
11269
11270 \begin_layout Plain Layout
11271 <string>
11272 \end_layout
11273
11274 \end_inset
11275
11276 ] Define a new table of contents with type 
11277 \begin_inset Flex Code
11278 status collapsed
11279
11280 \begin_layout Plain Layout
11281 <type>
11282 \end_layout
11283
11284 \end_inset
11285
11286  and name 
11287 \begin_inset Flex Code
11288 status collapsed
11289
11290 \begin_layout Plain Layout
11291 <string>
11292 \end_layout
11293
11294 \end_inset
11295
11296 .
11297  See also the AddToToc commands.
11298 \end_layout
11299
11300 \begin_layout Description
11301 \begin_inset Flex Code
11302 status collapsed
11303
11304 \begin_layout Plain Layout
11305 OutputFormat
11306 \end_layout
11307
11308 \end_inset
11309
11310  [
11311 \begin_inset Flex Code
11312 status collapsed
11313
11314 \begin_layout Plain Layout
11315 <format>
11316 \end_layout
11317
11318 \end_inset
11319
11320 ] The file format (as defined in the \SpecialChar LyX
11321  preferences) produced by this document class.
11322  It is mainly useful when 
11323 \begin_inset Flex Code
11324 status collapsed
11325
11326 \begin_layout Plain Layout
11327 OutputType
11328 \end_layout
11329
11330 \end_inset
11331
11332  is 
11333 \begin_inset Flex Code
11334 status collapsed
11335
11336 \begin_layout Plain Layout
11337 literate
11338 \end_layout
11339
11340 \end_inset
11341
11342  and one wants to define a new type of literate document.
11343  The format is reset to 
11344 \change_deleted 5863208 1594239413
11345
11346 \begin_inset Quotes eld
11347 \end_inset
11348
11349
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354 docbook
11355 \end_layout
11356
11357 \end_inset
11358
11359
11360 \begin_inset Quotes erd
11361 \end_inset
11362
11363  or
11364 \change_unchanged
11365  
11366 \begin_inset Quotes eld
11367 \end_inset
11368
11369
11370 \begin_inset Flex Code
11371 status collapsed
11372
11373 \begin_layout Plain Layout
11374 latex
11375 \end_layout
11376
11377 \end_inset
11378
11379
11380 \begin_inset Quotes erd
11381 \end_inset
11382
11383  when the corresponding 
11384 \begin_inset Flex Code
11385 status collapsed
11386
11387 \begin_layout Plain Layout
11388 OutputType
11389 \end_layout
11390
11391 \end_inset
11392
11393  parameter is encountered.
11394 \end_layout
11395
11396 \begin_layout Description
11397 \begin_inset Flex Code
11398 status collapsed
11399
11400 \begin_layout Plain Layout
11401 OutputType
11402 \end_layout
11403
11404 \end_inset
11405
11406  [
11407 \begin_inset Flex Code
11408 status collapsed
11409
11410 \begin_layout Plain Layout
11411
11412 \emph on
11413 lat
11414 \emph default
11415 ex
11416 \end_layout
11417
11418 \end_inset
11419
11420 ,
11421  
11422 \change_deleted 5863208 1594239430
11423
11424 \begin_inset Flex Code
11425 status collapsed
11426
11427 \begin_layout Plain Layout
11428 docbook
11429 \end_layout
11430
11431 \end_inset
11432
11433 ,
11434
11435 \change_unchanged
11436  
11437 \begin_inset Flex Code
11438 status collapsed
11439
11440 \begin_layout Plain Layout
11441 literate
11442 \end_layout
11443
11444 \end_inset
11445
11446 ] Specifies what sort of output documents using this class will produce.
11447 \end_layout
11448
11449 \begin_layout Description
11450 \begin_inset Flex Code
11451 status collapsed
11452
11453 \begin_layout Plain Layout
11454 PackageOptions
11455 \end_layout
11456
11457 \end_inset
11458
11459  [
11460 \begin_inset Flex Code
11461 status collapsed
11462
11463 \begin_layout Plain Layout
11464 string
11465 \end_layout
11466
11467 \end_inset
11468
11469  
11470 \begin_inset Flex Code
11471 status collapsed
11472
11473 \begin_layout Plain Layout
11474 string
11475 \end_layout
11476
11477 \end_inset
11478
11479 ] Specifies options,
11480  given in the second string,
11481  for the package named by the first string.
11482  For example,
11483  
11484 \begin_inset Quotes eld
11485 \end_inset
11486
11487
11488 \begin_inset Flex Code
11489 status collapsed
11490
11491 \begin_layout Plain Layout
11492 PackageOptions natbib square
11493 \end_layout
11494
11495 \end_inset
11496
11497
11498 \begin_inset Quotes erd
11499 \end_inset
11500
11501  will cause 
11502 \begin_inset Flex Code
11503 status collapsed
11504
11505 \begin_layout Plain Layout
11506 natbib
11507 \end_layout
11508
11509 \end_inset
11510
11511  to be loaded with the 
11512 \begin_inset Flex Code
11513 status collapsed
11514
11515 \begin_layout Plain Layout
11516 square
11517 \end_layout
11518
11519 \end_inset
11520
11521  option.
11522  (For \SpecialChar TeX
11523 perts,
11524  this causes \SpecialChar LyX
11525  to output:
11526  
11527 \begin_inset Flex Code
11528 status collapsed
11529
11530 \begin_layout Plain Layout
11531
11532 \backslash
11533 PassOptionsToPackage{natbib}{square}
11534 \end_layout
11535
11536 \end_inset
11537
11538  prior to loading 
11539 \begin_inset Flex Code
11540 status collapsed
11541
11542 \begin_layout Plain Layout
11543 natbib
11544 \end_layout
11545
11546 \end_inset
11547
11548 .)
11549 \change_inserted -712698321 1565102364
11550
11551 \end_layout
11552
11553 \begin_layout Description
11554
11555 \change_inserted -712698321 1565102470
11556 \begin_inset Flex Code
11557 status collapsed
11558
11559 \begin_layout Plain Layout
11560
11561 \change_inserted -712698321 1565102365
11562 PageSize
11563 \change_unchanged
11564
11565 \end_layout
11566
11567 \end_inset
11568
11569  [
11570 \begin_inset Flex Code
11571 status collapsed
11572
11573 \begin_layout Plain Layout
11574
11575 \change_inserted -712698321 1565105222
11576
11577 \emph on
11578 custom
11579 \emph default
11580 ,
11581  letter,
11582  legal,
11583  executive,
11584  a0,
11585  a1,
11586  a2,
11587  a3,
11588  a4,
11589  a5,
11590  a6,
11591  b0,
11592  b1,
11593  b2,
11594  b3,
11595  b4,
11596  b5,
11597  b6,
11598  c0,
11599  c1,
11600  c2,
11601  c3,
11602  c4,
11603  c5,
11604  c6,
11605  b0j,
11606  b1j,
11607  b2j,
11608  b3j,
11609  b4j,
11610  b5j,
11611  b6j
11612 \change_unchanged
11613
11614 \end_layout
11615
11616 \end_inset
11617
11618 ] The default page size.
11619  This is used by some converters.
11620 \change_unchanged
11621
11622 \end_layout
11623
11624 \begin_layout Description
11625 \begin_inset Flex Code
11626 status collapsed
11627
11628 \begin_layout Plain Layout
11629 PageStyle
11630 \end_layout
11631
11632 \end_inset
11633
11634  [
11635 \begin_inset Flex Code
11636 status collapsed
11637
11638 \begin_layout Plain Layout
11639
11640 \emph on
11641 plain
11642 \end_layout
11643
11644 \end_inset
11645
11646 ,
11647  
11648 \begin_inset Flex Code
11649 status collapsed
11650
11651 \begin_layout Plain Layout
11652 empty
11653 \end_layout
11654
11655 \end_inset
11656
11657 ,
11658  
11659 \begin_inset Flex Code
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663 headings
11664 \end_layout
11665
11666 \end_inset
11667
11668 ] The default pagestyle.
11669  Can be changed in the 
11670 \begin_inset Flex Noun
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674 Document\SpecialChar menuseparator
11675 Settings
11676 \end_layout
11677
11678 \end_inset
11679
11680  dialog.
11681 \end_layout
11682
11683 \begin_layout Description
11684 \begin_inset Flex Code
11685 status collapsed
11686
11687 \begin_layout Plain Layout
11688 Preamble
11689 \end_layout
11690
11691 \end_inset
11692
11693  Sets the preamble for the \SpecialChar LaTeX
11694  document.
11695  Note that this will completely override any prior 
11696 \begin_inset Flex Code
11697 status collapsed
11698
11699 \begin_layout Plain Layout
11700 Preamble
11701 \end_layout
11702
11703 \end_inset
11704
11705  or 
11706 \begin_inset Flex Code
11707 status collapsed
11708
11709 \begin_layout Plain Layout
11710 AddToPreamble
11711 \end_layout
11712
11713 \end_inset
11714
11715  declarations.
11716  (Use 
11717 \begin_inset Flex Code
11718 status collapsed
11719
11720 \begin_layout Plain Layout
11721 AddToPreamble
11722 \end_layout
11723
11724 \end_inset
11725
11726  if you just want to add material to the preamble.) Must end with 
11727 \begin_inset Quotes eld
11728 \end_inset
11729
11730
11731 \begin_inset Flex Code
11732 status collapsed
11733
11734 \begin_layout Plain Layout
11735 EndPreamble
11736 \end_layout
11737
11738 \end_inset
11739
11740
11741 \begin_inset Quotes erd
11742 \end_inset
11743
11744 .
11745 \change_inserted -712698321 1612018500
11746
11747 \end_layout
11748
11749 \begin_layout Description
11750
11751 \change_inserted -712698321 1612018547
11752 \begin_inset Flex Code
11753 status collapsed
11754
11755 \begin_layout Plain Layout
11756
11757 \change_inserted -712698321 1612018506
11758 ProvideInsetLayout
11759 \change_unchanged
11760
11761 \end_layout
11762
11763 \end_inset
11764
11765  [
11766 \begin_inset Flex Code
11767 status collapsed
11768
11769 \begin_layout Plain Layout
11770
11771 \change_inserted -712698321 1612018509
11772 <type>
11773 \change_unchanged
11774
11775 \end_layout
11776
11777 \end_inset
11778
11779 ] Defines the layout of an inset if it does not already exist.
11780  If the layout does exist,
11781  this section is ignored.
11782  Must end with 
11783 \begin_inset Quotes eld
11784 \end_inset
11785
11786
11787 \begin_inset Flex Code
11788 status collapsed
11789
11790 \begin_layout Plain Layout
11791
11792 \change_inserted -712698321 1612018500
11793 End
11794 \change_unchanged
11795
11796 \end_layout
11797
11798 \end_inset
11799
11800
11801 \begin_inset Quotes erd
11802 \end_inset
11803
11804 .
11805 \change_unchanged
11806
11807 \end_layout
11808
11809 \begin_layout Description
11810 \begin_inset Flex Code
11811 status collapsed
11812
11813 \begin_layout Plain Layout
11814 Provides
11815 \end_layout
11816
11817 \end_inset
11818
11819  [
11820 \begin_inset Flex Code
11821 status collapsed
11822
11823 \begin_layout Plain Layout
11824 string
11825 \end_layout
11826
11827 \end_inset
11828
11829 ] [
11830 \begin_inset Flex Code
11831 status collapsed
11832
11833 \begin_layout Plain Layout
11834
11835 \emph on
11836 0
11837 \end_layout
11838
11839 \end_inset
11840
11841 ,
11842 \begin_inset space \thinspace{}
11843 \end_inset
11844
11845
11846 \begin_inset Flex Code
11847 status collapsed
11848
11849 \begin_layout Plain Layout
11850 1
11851 \end_layout
11852
11853 \end_inset
11854
11855 ] Whether the class already provides the feature 
11856 \begin_inset Flex Code
11857 status collapsed
11858
11859 \begin_layout Plain Layout
11860 string
11861 \end_layout
11862
11863 \end_inset
11864
11865 .
11866  A feature is in general the name of a package (e.
11867 \begin_inset space \thinspace{}
11868 \end_inset
11869
11870 g.
11871 \begin_inset space \space{}
11872 \end_inset
11873
11874
11875 \begin_inset Flex Code
11876 status collapsed
11877
11878 \begin_layout Plain Layout
11879 amsmath
11880 \end_layout
11881
11882 \end_inset
11883
11884  or 
11885 \begin_inset Flex Code
11886 status collapsed
11887
11888 \begin_layout Plain Layout
11889 makeidx
11890 \end_layout
11891
11892 \end_inset
11893
11894 ) or a macro (e.
11895 \begin_inset space \thinspace{}
11896 \end_inset
11897
11898 g.
11899 \begin_inset space \space{}
11900 \end_inset
11901
11902
11903 \begin_inset Flex Code
11904 status collapsed
11905
11906 \begin_layout Plain Layout
11907 url
11908 \end_layout
11909
11910 \end_inset
11911
11912  or 
11913 \begin_inset Flex Code
11914 status collapsed
11915
11916 \begin_layout Plain Layout
11917 boldsymbol
11918 \end_layout
11919
11920 \end_inset
11921
11922 ).
11923  See 
11924 \begin_inset CommandInset ref
11925 LatexCommand ref
11926 reference "chap:List-of-functions"
11927 nolink "false"
11928
11929 \end_inset
11930
11931  for the list of features.
11932 \end_layout
11933
11934 \begin_layout Description
11935 \begin_inset Flex Code
11936 status collapsed
11937
11938 \begin_layout Plain Layout
11939 ProvidesModule
11940 \end_layout
11941
11942 \end_inset
11943
11944  [
11945 \begin_inset Flex Code
11946 status collapsed
11947
11948 \begin_layout Plain Layout
11949 string
11950 \end_layout
11951
11952 \end_inset
11953
11954 ] Indicates that this layout provides the functionality of the module mentioned,
11955  which should be specified by the filename without the 
11956 \begin_inset Flex Code
11957 status collapsed
11958
11959 \begin_layout Plain Layout
11960 .module
11961 \end_layout
11962
11963 \end_inset
11964
11965  extension.
11966  This will typically be used if the layout includes the module directly,
11967  rather than using the 
11968 \begin_inset Flex Code
11969 status collapsed
11970
11971 \begin_layout Plain Layout
11972 DefaultModule
11973 \end_layout
11974
11975 \end_inset
11976
11977  tag to indicate that it ought to be used.
11978  It could also be used in a module that provided an alternate implementation of the same functionality.
11979 \end_layout
11980
11981 \begin_layout Description
11982 \begin_inset Flex Code
11983 status collapsed
11984
11985 \begin_layout Plain Layout
11986 ProvideStyle
11987 \end_layout
11988
11989 \end_inset
11990
11991  [
11992 \begin_inset Flex Code
11993 status collapsed
11994
11995 \begin_layout Plain Layout
11996 <style>
11997 \end_layout
11998
11999 \end_inset
12000
12001 ] Creates a new paragraph style if it does not already exist.
12002  If the style does exist,
12003  this section is ignored.
12004  Must end with 
12005 \begin_inset Quotes eld
12006 \end_inset
12007
12008
12009 \begin_inset Flex Code
12010 status collapsed
12011
12012 \begin_layout Plain Layout
12013 End
12014 \end_layout
12015
12016 \end_inset
12017
12018
12019 \begin_inset Quotes erd
12020 \end_inset
12021
12022 .
12023 \end_layout
12024
12025 \begin_layout Description
12026 \begin_inset Flex Code
12027 status collapsed
12028
12029 \begin_layout Plain Layout
12030 Requires
12031 \end_layout
12032
12033 \end_inset
12034
12035  [
12036 \begin_inset Flex Code
12037 status collapsed
12038
12039 \begin_layout Plain Layout
12040 string
12041 \end_layout
12042
12043 \end_inset
12044
12045 ] Whether the class requires the feature 
12046 \begin_inset Flex Code
12047 status collapsed
12048
12049 \begin_layout Plain Layout
12050 string
12051 \end_layout
12052
12053 \end_inset
12054
12055 .
12056  Multiple features must be separated by commas.
12057  Note that you can only request supported features.
12058  (See 
12059 \begin_inset CommandInset ref
12060 LatexCommand ref
12061 reference "chap:List-of-functions"
12062 nolink "false"
12063
12064 \end_inset
12065
12066  for the list of features.).
12067  If you require a package with specific options,
12068  you can additionally use 
12069 \begin_inset Flex Code
12070 status collapsed
12071
12072 \begin_layout Plain Layout
12073 PackageOptions
12074 \end_layout
12075
12076 \end_inset
12077
12078 .
12079 \end_layout
12080
12081 \begin_layout Description
12082 \begin_inset Flex Code
12083 status collapsed
12084
12085 \begin_layout Plain Layout
12086 RightMargin
12087 \end_layout
12088
12089 \end_inset
12090
12091  [
12092 \begin_inset Flex Code
12093 status collapsed
12094
12095 \begin_layout Plain Layout
12096 string
12097 \end_layout
12098
12099 \end_inset
12100
12101 ] A string that indicates the width of the right margin on the screen,
12102  for example,
12103  
12104 \begin_inset Quotes eld
12105 \end_inset
12106
12107
12108 \begin_inset Flex Code
12109 status collapsed
12110
12111 \begin_layout Plain Layout
12112 MMMMM
12113 \end_layout
12114
12115 \end_inset
12116
12117
12118 \begin_inset Quotes erd
12119 \end_inset
12120
12121 .
12122 \end_layout
12123
12124 \begin_layout Description
12125 \begin_inset Flex Code
12126 status collapsed
12127
12128 \begin_layout Plain Layout
12129 SecNumDepth
12130 \end_layout
12131
12132 \end_inset
12133
12134  [
12135 \begin_inset Flex Code
12136 status collapsed
12137
12138 \begin_layout Plain Layout
12139 int=3
12140 \end_layout
12141
12142 \end_inset
12143
12144 ] Sets which divisions get numbered.
12145  Corresponds to the
12146 \begin_inset Newline newline
12147 \end_inset
12148
12149
12150 \begin_inset Flex Code
12151 status collapsed
12152
12153 \begin_layout Plain Layout
12154 secnumdepth
12155 \end_layout
12156
12157 \end_inset
12158
12159  counter in \SpecialChar LaTeX
12160 .
12161 \end_layout
12162
12163 \begin_layout Description
12164 \begin_inset Flex Code
12165 status collapsed
12166
12167 \begin_layout Plain Layout
12168 Sides
12169 \end_layout
12170
12171 \end_inset
12172
12173  [
12174 \begin_inset Flex Code
12175 status collapsed
12176
12177 \begin_layout Plain Layout
12178
12179 \emph on
12180 1
12181 \end_layout
12182
12183 \end_inset
12184
12185 ,
12186 \begin_inset space \thinspace{}
12187 \end_inset
12188
12189
12190 \begin_inset Flex Code
12191 status collapsed
12192
12193 \begin_layout Plain Layout
12194 2
12195 \end_layout
12196
12197 \end_inset
12198
12199 ] Whether the class-default should be printing on one or both sides of the paper.
12200  Can be changed in the 
12201 \begin_inset Flex Noun
12202 status collapsed
12203
12204 \begin_layout Plain Layout
12205 Document\SpecialChar menuseparator
12206 Settings
12207 \end_layout
12208
12209 \end_inset
12210
12211  dialog.
12212 \end_layout
12213
12214 \begin_layout Description
12215 \begin_inset Flex Code
12216 status collapsed
12217
12218 \begin_layout Plain Layout
12219 Style
12220 \end_layout
12221
12222 \end_inset
12223
12224  [
12225 \begin_inset Flex Code
12226 status collapsed
12227
12228 \begin_layout Plain Layout
12229 <name>
12230 \end_layout
12231
12232 \end_inset
12233
12234 ] This sequence defines a paragraph style.
12235  If the style does not yet exist,
12236  it is created;
12237  if it does exist,
12238  its parameters are modified.
12239  Must end with 
12240 \begin_inset Quotes eld
12241 \end_inset
12242
12243
12244 \begin_inset Flex Code
12245 status collapsed
12246
12247 \begin_layout Plain Layout
12248 End
12249 \end_layout
12250
12251 \end_inset
12252
12253
12254 \begin_inset Quotes erd
12255 \end_inset
12256
12257 .
12258 \begin_inset Newline newline
12259 \end_inset
12260
12261 See 
12262 \begin_inset CommandInset ref
12263 LatexCommand ref
12264 reference "subsec:Paragraph-Styles"
12265 nolink "false"
12266
12267 \end_inset
12268
12269  for details on paragraph styles.
12270 \change_inserted -712698321 1553617804
12271
12272 \end_layout
12273
12274 \begin_layout Description
12275
12276 \change_inserted -712698321 1553617862
12277 \begin_inset Flex Code
12278 status collapsed
12279
12280 \begin_layout Plain Layout
12281
12282 \change_inserted -712698321 1553617809
12283 TableStyle
12284 \change_unchanged
12285
12286 \end_layout
12287
12288 \end_inset
12289
12290  [
12291 \begin_inset Flex Code
12292 status collapsed
12293
12294 \begin_layout Plain Layout
12295
12296 \change_inserted -712698321 1553617805
12297 <name>
12298 \change_unchanged
12299
12300 \end_layout
12301
12302 \end_inset
12303
12304 ] defines the default table style that is used when inserting a table.
12305  The following styles are available:
12306 \end_layout
12307
12308 \begin_deeper
12309 \begin_layout Itemize
12310
12311 \change_inserted -712698321 1554308039
12312 \begin_inset Flex Code
12313 status collapsed
12314
12315 \begin_layout Plain Layout
12316
12317 \change_inserted -712698321 1554307928
12318 Formal_with_Footline
12319 \change_unchanged
12320
12321 \end_layout
12322
12323 \end_inset
12324
12325 :
12326  formal (
12327 \begin_inset Quotes eld
12328 \end_inset
12329
12330 booktabs
12331 \begin_inset Quotes erd
12332 \end_inset
12333
12334 ) style with horizontal lines only,
12335  using a bold top and bottom line,
12336  the first and last row are additionally separated from the table body with a thin middle line.
12337 \end_layout
12338
12339 \begin_layout Itemize
12340
12341 \change_inserted -712698321 1554308087
12342 \begin_inset Flex Code
12343 status collapsed
12344
12345 \begin_layout Plain Layout
12346
12347 \change_inserted -712698321 1554308042
12348 Formal_without_Footline
12349 \change_unchanged
12350
12351 \end_layout
12352
12353 \end_inset
12354
12355 :
12356  same as the above,
12357  but the last row is not separated with a middle line from the body.
12358 \end_layout
12359
12360 \begin_layout Itemize
12361
12362 \change_inserted -712698321 1553618031
12363 \begin_inset Flex Code
12364 status collapsed
12365
12366 \begin_layout Plain Layout
12367
12368 \change_inserted -712698321 1553618006
12369 Simple_Grid
12370 \change_unchanged
12371
12372 \end_layout
12373
12374 \end_inset
12375
12376 :
12377  Simple table lines.
12378 \end_layout
12379
12380 \begin_layout Itemize
12381
12382 \change_inserted -712698321 1553618309
12383 \begin_inset Flex Code
12384 status collapsed
12385
12386 \begin_layout Plain Layout
12387
12388 \change_inserted -712698321 1553618031
12389 Grid_with_Head
12390 \change_unchanged
12391
12392 \end_layout
12393
12394 \end_inset
12395
12396 :
12397  Like 
12398 \begin_inset Flex Code
12399 status collapsed
12400
12401 \begin_layout Plain Layout
12402
12403 \change_inserted -712698321 1553618043
12404 Simple_Grid
12405 \change_unchanged
12406
12407 \end_layout
12408
12409 \end_inset
12410
12411 ,
12412  but with the header 
12413 \change_deleted 34634807 1619712593
12414 column
12415 \change_inserted 34634807 1619712594
12416 row
12417 \change_inserted -712698321 1553618309
12418  offset with a second horizontal line.
12419  This is also the default style of \SpecialChar LyX
12420 .
12421 \end_layout
12422
12423 \begin_layout Itemize
12424
12425 \change_inserted -712698321 1553618280
12426 \begin_inset Flex Code
12427 status collapsed
12428
12429 \begin_layout Plain Layout
12430
12431 \change_inserted -712698321 1553618261
12432 No_Borders
12433 \change_unchanged
12434
12435 \end_layout
12436
12437 \end_inset
12438
12439 :
12440  Table without lines.
12441 \change_unchanged
12442
12443 \end_layout
12444
12445 \end_deeper
12446 \begin_layout Description
12447 \begin_inset Flex Code
12448 status collapsed
12449
12450 \begin_layout Plain Layout
12451 TitleLatexName
12452 \end_layout
12453
12454 \end_inset
12455
12456  [
12457 \begin_inset Flex Code
12458 status collapsed
12459
12460 \begin_layout Plain Layout
12461 string="maketitle"
12462 \end_layout
12463
12464 \end_inset
12465
12466 ] The name of the command or environment to be used with 
12467 \begin_inset Flex Code
12468 status collapsed
12469
12470 \begin_layout Plain Layout
12471 TitleLatexType
12472 \end_layout
12473
12474 \end_inset
12475
12476 .
12477 \end_layout
12478
12479 \begin_layout Description
12480 \begin_inset Flex Code
12481 status collapsed
12482
12483 \begin_layout Plain Layout
12484 TitleLatexType
12485 \end_layout
12486
12487 \end_inset
12488
12489  [
12490 \begin_inset Flex Code
12491 status collapsed
12492
12493 \begin_layout Plain Layout
12494
12495 \emph on
12496 CommandAfter
12497 \end_layout
12498
12499 \end_inset
12500
12501 ,
12502  
12503 \begin_inset Flex Code
12504 status collapsed
12505
12506 \begin_layout Plain Layout
12507 Environment
12508 \end_layout
12509
12510 \end_inset
12511
12512 ] Indicates what kind of markup is used to define the title of a document.
12513  
12514 \begin_inset Flex Code
12515 status collapsed
12516
12517 \begin_layout Plain Layout
12518 CommandAfter
12519 \end_layout
12520
12521 \end_inset
12522
12523  means that the macro with name 
12524 \begin_inset Flex Code
12525 status collapsed
12526
12527 \begin_layout Plain Layout
12528 TitleLatexName
12529 \end_layout
12530
12531 \end_inset
12532
12533  will be inserted after the last layout which has 
12534 \begin_inset Quotes eld
12535 \end_inset
12536
12537
12538 \begin_inset Flex Code
12539 status collapsed
12540
12541 \begin_layout Plain Layout
12542 InTitle
12543 \begin_inset space ~
12544 \end_inset
12545
12546 1
12547 \end_layout
12548
12549 \end_inset
12550
12551
12552 \begin_inset Quotes erd
12553 \end_inset
12554
12555 .
12556  
12557 \begin_inset Flex Code
12558 status collapsed
12559
12560 \begin_layout Plain Layout
12561 Environment
12562 \end_layout
12563
12564 \end_inset
12565
12566  corresponds to the case where all layouts which have 
12567 \begin_inset Quotes eld
12568 \end_inset
12569
12570
12571 \begin_inset Flex Code
12572 status collapsed
12573
12574 \begin_layout Plain Layout
12575 InTitle
12576 \begin_inset space ~
12577 \end_inset
12578
12579 1
12580 \end_layout
12581
12582 \end_inset
12583
12584
12585 \begin_inset Quotes erd
12586 \end_inset
12587
12588  should be enclosed into the 
12589 \begin_inset Flex Code
12590 status collapsed
12591
12592 \begin_layout Plain Layout
12593 TitleLatexName
12594 \end_layout
12595
12596 \end_inset
12597
12598  environment.
12599 \end_layout
12600
12601 \begin_layout Description
12602 \begin_inset Flex Code
12603 status collapsed
12604
12605 \begin_layout Plain Layout
12606 TocDepth
12607 \end_layout
12608
12609 \end_inset
12610
12611  [
12612 \begin_inset Flex Code
12613 status collapsed
12614
12615 \begin_layout Plain Layout
12616 int=3
12617 \end_layout
12618
12619 \end_inset
12620
12621 ] Sets which divisions are included in the table of contents.
12622  Corresponds to the 
12623 \begin_inset Flex Code
12624 status collapsed
12625
12626 \begin_layout Plain Layout
12627 tocdepth
12628 \end_layout
12629
12630 \end_inset
12631
12632  counter in \SpecialChar LaTeX
12633 .
12634 \end_layout
12635
12636 \begin_layout Subsection
12637 \begin_inset Flex Code
12638 status collapsed
12639
12640 \begin_layout Plain Layout
12641 ClassOptions
12642 \end_layout
12643
12644 \end_inset
12645
12646  section
12647 \begin_inset CommandInset label
12648 LatexCommand label
12649 name "subsec:ClassOptions"
12650
12651 \end_inset
12652
12653
12654 \end_layout
12655
12656 \begin_layout Standard
12657 The 
12658 \begin_inset Flex Code
12659 status collapsed
12660
12661 \begin_layout Plain Layout
12662 ClassOptions
12663 \end_layout
12664
12665 \end_inset
12666
12667  section can contain the following entries:
12668 \end_layout
12669
12670 \begin_layout Description
12671 \begin_inset Flex Code
12672 status collapsed
12673
12674 \begin_layout Plain Layout
12675 FontSize
12676 \end_layout
12677
12678 \end_inset
12679
12680  [
12681 \begin_inset Flex Code
12682 status collapsed
12683
12684 \begin_layout Plain Layout
12685 string="10|11|12"
12686 \end_layout
12687
12688 \end_inset
12689
12690 ] The list of available font sizes for the document's main font,
12691  separated by 
12692 \begin_inset Quotes eld
12693 \end_inset
12694
12695
12696 \begin_inset Flex Code
12697 status collapsed
12698
12699 \begin_layout Plain Layout
12700 |
12701 \end_layout
12702
12703 \end_inset
12704
12705
12706 \begin_inset Quotes erd
12707 \end_inset
12708
12709 .
12710
12711 \change_inserted -712698321 1565110196
12712  Any number is possible.
12713 \end_layout
12714
12715 \begin_layout Description
12716
12717 \change_inserted -712698321 1565110259
12718 \begin_inset Flex Code
12719 status collapsed
12720
12721 \begin_layout Plain Layout
12722
12723 \change_inserted -712698321 1565110199
12724 FontSizeFormat
12725 \change_unchanged
12726
12727 \end_layout
12728
12729 \end_inset
12730
12731  [
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736
12737 \change_inserted -712698321 1565110196
12738 string
12739 \change_unchanged
12740
12741 \end_layout
12742
12743 \end_inset
12744
12745 ] The format for the font size option.
12746  Default:
12747  
12748 \begin_inset Flex Code
12749 status collapsed
12750
12751 \begin_layout Plain Layout
12752
12753 \change_inserted -712698321 1565110238
12754 $$spt
12755 \change_unchanged
12756
12757 \end_layout
12758
12759 \end_inset
12760
12761 .
12762  
12763 \begin_inset Flex Code
12764 status collapsed
12765
12766 \begin_layout Plain Layout
12767
12768 \change_inserted -712698321 1565110248
12769 $$s
12770 \change_unchanged
12771
12772 \end_layout
12773
12774 \end_inset
12775
12776  is a placeholder for the font size.
12777 \change_unchanged
12778
12779 \end_layout
12780
12781 \begin_layout Description
12782
12783 \change_deleted 5863208 1594239483
12784 \begin_inset Flex Code
12785 status collapsed
12786
12787 \begin_layout Plain Layout
12788 Header
12789 \end_layout
12790
12791 \end_inset
12792
12793  Used to set the DTD line with XML-based output classes.
12794  E.
12795 \begin_inset space \thinspace{}
12796 \end_inset
12797
12798 g.:
12799  PUBLIC 
12800 \begin_inset Quotes eld
12801 \end_inset
12802
12803 -//OASIS//DTD DocBook V4.2//EN
12804 \begin_inset Quotes erd
12805 \end_inset
12806
12807 .
12808 \change_inserted -712698321 1565101761
12809
12810 \end_layout
12811
12812 \begin_layout Description
12813
12814 \change_inserted -712698321 1565180598
12815 \begin_inset Flex Code
12816 status collapsed
12817
12818 \begin_layout Plain Layout
12819
12820 \change_inserted -712698321 1565101918
12821 PageSize
12822 \change_unchanged
12823
12824 \end_layout
12825
12826 \end_inset
12827
12828  [
12829 \begin_inset Flex Code
12830 status collapsed
12831
12832 \begin_layout Plain Layout
12833
12834 \change_inserted -712698321 1565105399
12835 string="letter|\SpecialChar allowbreak
12836 legal|\SpecialChar allowbreak
12837 executive|\SpecialChar allowbreak
12838 a0|\SpecialChar allowbreak
12839 a1|\SpecialChar allowbreak
12840 a2|\SpecialChar allowbreak
12841 a3|\SpecialChar allowbreak
12842 a4|\SpecialChar allowbreak
12843 a5|\SpecialChar allowbreak
12844 a6|\SpecialChar allowbreak
12845 b0|\SpecialChar allowbreak
12846 b1|\SpecialChar allowbreak
12847 b2|\SpecialChar allowbreak
12848 b3|\SpecialChar allowbreak
12849 b4|\SpecialChar allowbreak
12850 b5|\SpecialChar allowbreak
12851 b6|\SpecialChar allowbreak
12852 c0|\SpecialChar allowbreak
12853 c1|\SpecialChar allowbreak
12854 c2|\SpecialChar allowbreak
12855 c3|\SpecialChar allowbreak
12856 c4|\SpecialChar allowbreak
12857 c5|\SpecialChar allowbreak
12858 c6|\SpecialChar allowbreak
12859 b0j|\SpecialChar allowbreak
12860 b1j|\SpecialChar allowbreak
12861 b2j|\SpecialChar allowbreak
12862 b3j|\SpecialChar allowbreak
12863 b4j|\SpecialChar allowbreak
12864 b5j|\SpecialChar allowbreak
12865 b6j"
12866 \change_unchanged
12867
12868 \end_layout
12869
12870 \end_inset
12871
12872 ] The list of available page sizes,
12873  separated by 
12874 \begin_inset Quotes eld
12875 \end_inset
12876
12877
12878 \begin_inset Flex Code
12879 status collapsed
12880
12881 \begin_layout Plain Layout
12882
12883 \change_inserted -712698321 1565101779
12884 |
12885 \change_unchanged
12886
12887 \end_layout
12888
12889 \end_inset
12890
12891
12892 \begin_inset Quotes erd
12893 \end_inset
12894
12895 .
12896  Currently,
12897  only the listed sizes are supported.
12898  Other sizes might be entered as custom class option.
12899 \end_layout
12900
12901 \begin_layout Description
12902
12903 \change_inserted -712698321 1565180623
12904 \begin_inset Flex Code
12905 status collapsed
12906
12907 \begin_layout Plain Layout
12908
12909 \change_inserted -712698321 1565180605
12910 PageSizeFormat
12911 \change_unchanged
12912
12913 \end_layout
12914
12915 \end_inset
12916
12917  [
12918 \begin_inset Flex Code
12919 status collapsed
12920
12921 \begin_layout Plain Layout
12922
12923 \change_inserted -712698321 1565180601
12924 string
12925 \change_unchanged
12926
12927 \end_layout
12928
12929 \end_inset
12930
12931 ] The format for the page size option.
12932  Default:
12933  
12934 \begin_inset Flex Code
12935 status collapsed
12936
12937 \begin_layout Plain Layout
12938
12939 \change_inserted -712698321 1565180618
12940 $$spaper
12941 \change_unchanged
12942
12943 \end_layout
12944
12945 \end_inset
12946
12947 .
12948  
12949 \begin_inset Flex Code
12950 status collapsed
12951
12952 \begin_layout Plain Layout
12953
12954 \change_inserted -712698321 1565180601
12955 $$s
12956 \change_unchanged
12957
12958 \end_layout
12959
12960 \end_inset
12961
12962  is a placeholder for the paper size.
12963 \change_unchanged
12964
12965 \end_layout
12966
12967 \begin_layout Description
12968 \begin_inset Flex Code
12969 status collapsed
12970
12971 \begin_layout Plain Layout
12972 PageStyle
12973 \end_layout
12974
12975 \end_inset
12976
12977  [
12978 \begin_inset Flex Code
12979 status collapsed
12980
12981 \begin_layout Plain Layout
12982 string="empty|plain|headings|fancy"
12983 \end_layout
12984
12985 \end_inset
12986
12987 ] The list of available page sty\SpecialChar softhyphen
12988 les,
12989  separated by 
12990 \begin_inset Quotes eld
12991 \end_inset
12992
12993
12994 \begin_inset Flex Code
12995 status collapsed
12996
12997 \begin_layout Plain Layout
12998 |
12999 \end_layout
13000
13001 \end_inset
13002
13003
13004 \begin_inset Quotes erd
13005 \end_inset
13006
13007 .
13008 \end_layout
13009
13010 \begin_layout Description
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015 Other
13016 \end_layout
13017
13018 \end_inset
13019
13020  [
13021 \begin_inset Flex Code
13022 status collapsed
13023
13024 \begin_layout Plain Layout
13025 string=""
13026 \end_layout
13027
13028 \end_inset
13029
13030 ] Some document class options,
13031  separated by a comma,
13032  that will be added to the optional part of the 
13033 \begin_inset Flex Code
13034 status collapsed
13035
13036 \begin_layout Plain Layout
13037
13038 \backslash
13039 documentclass
13040 \end_layout
13041
13042 \end_inset
13043
13044  command.
13045 \end_layout
13046
13047 \begin_layout Standard
13048 The 
13049 \begin_inset Flex Code
13050 status collapsed
13051
13052 \begin_layout Plain Layout
13053 ClassOptions
13054 \end_layout
13055
13056 \end_inset
13057
13058  section must end with 
13059 \begin_inset Quotes eld
13060 \end_inset
13061
13062
13063 \begin_inset Flex Code
13064 status collapsed
13065
13066 \begin_layout Plain Layout
13067 End
13068 \end_layout
13069
13070 \end_inset
13071
13072
13073 \begin_inset Quotes erd
13074 \end_inset
13075
13076 .
13077 \end_layout
13078
13079 \begin_layout Subsection
13080 Paragraph styles
13081 \begin_inset CommandInset label
13082 LatexCommand label
13083 name "subsec:Paragraph-Styles"
13084
13085 \end_inset
13086
13087
13088 \end_layout
13089
13090 \begin_layout Standard
13091 A paragraph style description looks like this:
13092 \begin_inset Foot
13093 status collapsed
13094
13095 \begin_layout Plain Layout
13096 Note that this will either define a new style or modify an existing one.
13097 \end_layout
13098
13099 \end_inset
13100
13101
13102 \end_layout
13103
13104 \begin_layout LyX-Code
13105 Style 
13106 \family roman
13107 \emph on
13108 name
13109 \end_layout
13110
13111 \begin_layout LyX-Code
13112  ...
13113 \end_layout
13114
13115 \begin_layout LyX-Code
13116 End
13117 \end_layout
13118
13119 \begin_layout Standard
13120 where the following commands are allowed:
13121 \end_layout
13122
13123 \begin_layout Description
13124 \begin_inset Flex Code
13125 status collapsed
13126
13127 \begin_layout Plain Layout
13128 AddToToc
13129 \end_layout
13130
13131 \end_inset
13132
13133  [
13134 \begin_inset Flex Code
13135 status collapsed
13136
13137 \begin_layout Plain Layout
13138 string
13139 \end_layout
13140
13141 \end_inset
13142
13143 =""] This paragraph will appear in the table of contents of the given type.
13144  An empty string disables.
13145  See also the OutlinerName and the IsTocCaption commands.
13146  Default:
13147  disabled.
13148 \end_layout
13149
13150 \begin_layout Description
13151 \begin_inset Flex Code
13152 status collapsed
13153
13154 \begin_layout Plain Layout
13155 Align
13156 \end_layout
13157
13158 \end_inset
13159
13160  [
13161 \begin_inset Flex Code
13162 status collapsed
13163
13164 \begin_layout Plain Layout
13165
13166 \emph on
13167 block
13168 \emph default
13169 ,
13170  left,
13171  right,
13172  center
13173 \end_layout
13174
13175 \end_inset
13176
13177 ] Paragraph alignment.
13178 \end_layout
13179
13180 \begin_layout Description
13181 \begin_inset Flex Code
13182 status collapsed
13183
13184 \begin_layout Plain Layout
13185 AlignPossible
13186 \end_layout
13187
13188 \end_inset
13189
13190  [
13191 \begin_inset Flex Code
13192 status collapsed
13193
13194 \begin_layout Plain Layout
13195
13196 \emph on
13197 block
13198 \emph default
13199 ,
13200  left,
13201  right,
13202  center
13203 \end_layout
13204
13205 \end_inset
13206
13207 ] A comma separated list of permitted alignments.
13208  (Some \SpecialChar LaTeX
13209  styles prohibit certain alignments,
13210  since those wouldn't make sense.
13211  For example a right-aligned or centered enumeration isn't possible.)
13212 \end_layout
13213
13214 \begin_layout Description
13215 \begin_inset Flex Code
13216 status collapsed
13217
13218 \begin_layout Plain Layout
13219 Argument
13220 \end_layout
13221
13222 \end_inset
13223
13224  [
13225 \begin_inset Flex Code
13226 status collapsed
13227
13228 \begin_layout Plain Layout
13229 int
13230 \end_layout
13231
13232 \end_inset
13233
13234 ] Defines argument number <int> of a command\SpecialChar breakableslash
13235 environment associated with the current style.
13236
13237 \change_inserted -584632292 1615846868
13238  The definition must end with 
13239 \begin_inset Flex Code
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243
13244 \change_inserted -584632292 1615846867
13245 EndArgument
13246 \change_unchanged
13247
13248 \end_layout
13249
13250 \end_inset
13251
13252 .
13253
13254 \change_unchanged
13255  
13256 \change_inserted -584632292 1615846880
13257 See 
13258 \begin_inset CommandInset ref
13259 LatexCommand ref
13260 reference "subsec:Arguments"
13261 plural "false"
13262 caps "false"
13263 noprefix "false"
13264 nolink "false"
13265
13266 \end_inset
13267
13268  for more information.
13269  
13270 \change_deleted -584632292 1615846694
13271 This is useful for things like section headings,
13272  and only makes sense with \SpecialChar LaTeX
13273 .
13274  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,
13275  where the number specifies the order of the arguments.
13276  The definition must end with 
13277 \begin_inset Flex Code
13278 status collapsed
13279
13280 \begin_layout Plain Layout
13281 EndArgument
13282 \end_layout
13283
13284 \end_inset
13285
13286 .
13287  So a command with two optional arguments has:
13288 \end_layout
13289
13290 \begin_deeper
13291 \begin_layout Quote
13292
13293 \change_deleted -584632292 1615846694
13294
13295 \family typewriter
13296 Argument 1
13297 \end_layout
13298
13299 \begin_layout Quote
13300
13301 \change_deleted -584632292 1615846694
13302
13303 \family typewriter
13304 ...
13305 \end_layout
13306
13307 \begin_layout Quote
13308
13309 \change_deleted -584632292 1615846694
13310
13311 \family typewriter
13312 EndArgument
13313 \end_layout
13314
13315 \begin_layout Quote
13316
13317 \change_deleted -584632292 1615846694
13318
13319 \family typewriter
13320 Argument 2
13321 \end_layout
13322
13323 \begin_layout Quote
13324
13325 \change_deleted -584632292 1615846694
13326
13327 \family typewriter
13328 ...
13329 \end_layout
13330
13331 \begin_layout Quote
13332
13333 \change_deleted -584632292 1615846694
13334
13335 \family typewriter
13336 EndArgument
13337 \end_layout
13338
13339 \begin_layout Standard
13340
13341 \change_deleted -584632292 1615846694
13342 Inside the 
13343 \begin_inset Flex Code
13344 status collapsed
13345
13346 \begin_layout Plain Layout
13347 Argument
13348 \end_layout
13349
13350 \end_inset
13351
13352  definition,
13353  the following specifications are possible:
13354 \end_layout
13355
13356 \begin_layout Itemize
13357
13358 \change_deleted -584632292 1615846694
13359 \begin_inset Flex Code
13360 status collapsed
13361
13362 \begin_layout Plain Layout
13363 LabelString
13364 \end_layout
13365
13366 \end_inset
13367
13368  
13369 \begin_inset Flex Code
13370 status collapsed
13371
13372 \begin_layout Plain Layout
13373 [string]
13374 \end_layout
13375
13376 \end_inset
13377
13378  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 
13379 \begin_inset Flex Code
13380 status collapsed
13381
13382 \begin_layout Plain Layout
13383 MenuString
13384 \end_layout
13385
13386 \end_inset
13387
13388 ).
13389  For the menu,
13390  you can define an accelerator by appending the respective character to the string,
13391  divided by 
13392 \begin_inset Quotes eld
13393 \end_inset
13394
13395 |
13396 \begin_inset Quotes erd
13397 \end_inset
13398
13399  (e.
13400 \begin_inset space \thinspace{}
13401 \end_inset
13402
13403 g.
13404 \begin_inset space \space{}
13405 \end_inset
13406
13407
13408 \begin_inset Quotes eld
13409 \end_inset
13410
13411
13412 \begin_inset Flex Code
13413 status collapsed
13414
13415 \begin_layout Plain Layout
13416 Short Title|S
13417 \end_layout
13418
13419 \end_inset
13420
13421
13422 \begin_inset Quotes erd
13423 \end_inset
13424
13425 ).
13426 \end_layout
13427
13428 \begin_layout Itemize
13429
13430 \change_deleted -584632292 1615846694
13431 \begin_inset Flex Code
13432 status collapsed
13433
13434 \begin_layout Plain Layout
13435 MenuString
13436 \end_layout
13437
13438 \end_inset
13439
13440  
13441 \begin_inset Flex Code
13442 status collapsed
13443
13444 \begin_layout Plain Layout
13445 [string]
13446 \end_layout
13447
13448 \end_inset
13449
13450  A separate string for the menu.
13451  You can define an accelerator by appending the respective character to the string,
13452  divided by 
13453 \begin_inset Quotes eld
13454 \end_inset
13455
13456 |
13457 \begin_inset Quotes erd
13458 \end_inset
13459
13460  (e.
13461 \begin_inset space \thinspace{}
13462 \end_inset
13463
13464 g.
13465 \begin_inset space \space{}
13466 \end_inset
13467
13468
13469 \begin_inset Quotes eld
13470 \end_inset
13471
13472
13473 \begin_inset Flex Code
13474 status collapsed
13475
13476 \begin_layout Plain Layout
13477 Short Title|S
13478 \end_layout
13479
13480 \end_inset
13481
13482
13483 \begin_inset Quotes erd
13484 \end_inset
13485
13486 ).
13487  This specification is optional.
13488  If it is not given the 
13489 \begin_inset Flex Code
13490 status collapsed
13491
13492 \begin_layout Plain Layout
13493 LabelString
13494 \end_layout
13495
13496 \end_inset
13497
13498  will be used instead for the menu.
13499 \end_layout
13500
13501 \begin_layout Itemize
13502
13503 \change_deleted -584632292 1615846694
13504 \begin_inset Flex Code
13505 status collapsed
13506
13507 \begin_layout Plain Layout
13508 Tooltip
13509 \end_layout
13510
13511 \end_inset
13512
13513  
13514 \begin_inset Flex Code
13515 status collapsed
13516
13517 \begin_layout Plain Layout
13518 [string]
13519 \end_layout
13520
13521 \end_inset
13522
13523  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
13524 \end_layout
13525
13526 \begin_layout Itemize
13527
13528 \change_deleted -584632292 1615846694
13529 \begin_inset Flex Code
13530 status collapsed
13531
13532 \begin_layout Plain Layout
13533 Mandatory
13534 \end_layout
13535
13536 \end_inset
13537
13538  [
13539 \begin_inset Flex Code
13540 status collapsed
13541
13542 \begin_layout Plain Layout
13543
13544 \emph on
13545 0
13546 \end_layout
13547
13548 \end_inset
13549
13550 ,
13551 \begin_inset space \thinspace{}
13552 \end_inset
13553
13554
13555 \begin_inset Flex Code
13556 status collapsed
13557
13558 \begin_layout Plain Layout
13559 1
13560 \end_layout
13561
13562 \end_inset
13563
13564 ] Declare if this is a mandatory (1) or an optional (0) argument.
13565  Mandatory arguments will be output empty if not given,
13566  while optional arguments will not be output at all.
13567  By default,
13568  mandatory arguments are delimited by 
13569 \begin_inset Flex Code
13570 status collapsed
13571
13572 \begin_layout Plain Layout
13573 {...}
13574 \end_layout
13575
13576 \end_inset
13577
13578 ,
13579  while optional arguments are delimited by 
13580 \begin_inset Flex Code
13581 status collapsed
13582
13583 \begin_layout Plain Layout
13584 [...]
13585 \end_layout
13586
13587 \end_inset
13588
13589
13590 \end_layout
13591
13592 \begin_layout Itemize
13593
13594 \change_deleted -584632292 1615846694
13595 \begin_inset Flex Code
13596 status collapsed
13597
13598 \begin_layout Plain Layout
13599
13600 \change_inserted -712698321 1555579780
13601 NewlineCmd
13602 \change_unchanged
13603
13604 \end_layout
13605
13606 \end_inset
13607
13608  
13609 \begin_inset Flex Code
13610 status collapsed
13611
13612 \begin_layout Plain Layout
13613
13614 \change_inserted -712698321 1555579780
13615 [string]
13616 \change_unchanged
13617
13618 \end_layout
13619
13620 \end_inset
13621
13622  Option to define a different command (from the default 
13623 \begin_inset Flex Code
13624 status collapsed
13625
13626 \begin_layout Plain Layout
13627
13628 \change_inserted -712698321 1555579780
13629
13630 \backslash
13631
13632 \backslash
13633
13634 \change_unchanged
13635
13636 \end_layout
13637
13638 \end_inset
13639
13640 ) to be used for line breaks.
13641  The initial backslash must not be specified.
13642 \end_layout
13643
13644 \begin_layout Itemize
13645
13646 \change_deleted -584632292 1615846694
13647 \begin_inset Flex Code
13648 status collapsed
13649
13650 \begin_layout Plain Layout
13651 Requires
13652 \end_layout
13653
13654 \end_inset
13655
13656  
13657 \begin_inset Flex Code
13658 status collapsed
13659
13660 \begin_layout Plain Layout
13661 [int=0]
13662 \end_layout
13663
13664 \end_inset
13665
13666  defines another argument (by its number) which this argument requires to be output if it is itself output.
13667  E.
13668 \begin_inset space \thinspace{}
13669 \end_inset
13670
13671 g.,
13672  in \SpecialChar LaTeX
13673  commands,
13674  optional arguments often require previous optional arguments to be output (at least empty),
13675  as in 
13676 \begin_inset Flex Code
13677 status collapsed
13678
13679 \begin_layout Plain Layout
13680
13681 \backslash
13682 command[][argument]{text}
13683 \end_layout
13684
13685 \end_inset
13686
13687 .
13688  This can be achieved by the statement 
13689 \begin_inset Flex Code
13690 status collapsed
13691
13692 \begin_layout Plain Layout
13693 Requires 1
13694 \end_layout
13695
13696 \end_inset
13697
13698  within 
13699 \begin_inset Flex Code
13700 status collapsed
13701
13702 \begin_layout Plain Layout
13703 Argument 2
13704 \end_layout
13705
13706 \end_inset
13707
13708 .
13709 \end_layout
13710
13711 \begin_layout Itemize
13712
13713 \change_deleted -584632292 1615846694
13714 \begin_inset Flex Code
13715 status collapsed
13716
13717 \begin_layout Plain Layout
13718 LeftDelim
13719 \end_layout
13720
13721 \end_inset
13722
13723  
13724 \begin_inset Flex Code
13725 status collapsed
13726
13727 \begin_layout Plain Layout
13728 [string]
13729 \end_layout
13730
13731 \end_inset
13732
13733  defines a custom left delimiter (instead of 
13734 \begin_inset Flex Code
13735 status collapsed
13736
13737 \begin_layout Plain Layout
13738 {
13739 \end_layout
13740
13741 \end_inset
13742
13743  or 
13744 \begin_inset Flex Code
13745 status collapsed
13746
13747 \begin_layout Plain Layout
13748 [
13749 \end_layout
13750
13751 \end_inset
13752
13753 ).
13754  A line break in the output can be indicated by 
13755 \begin_inset Flex Code
13756 status collapsed
13757
13758 \begin_layout Plain Layout
13759 <br/>
13760 \end_layout
13761
13762 \end_inset
13763
13764 .
13765 \end_layout
13766
13767 \begin_layout Itemize
13768
13769 \change_deleted -584632292 1615846694
13770 \begin_inset Flex Code
13771 status collapsed
13772
13773 \begin_layout Plain Layout
13774 RightDelim
13775 \end_layout
13776
13777 \end_inset
13778
13779  
13780 \begin_inset Flex Code
13781 status collapsed
13782
13783 \begin_layout Plain Layout
13784 [string]
13785 \end_layout
13786
13787 \end_inset
13788
13789  defines a custom right delimiter (instead of 
13790 \begin_inset Flex Code
13791 status collapsed
13792
13793 \begin_layout Plain Layout
13794 }
13795 \end_layout
13796
13797 \end_inset
13798
13799  or 
13800 \begin_inset Flex Code
13801 status collapsed
13802
13803 \begin_layout Plain Layout
13804 ]
13805 \end_layout
13806
13807 \end_inset
13808
13809 ).
13810  A line break in the output can be indicated by 
13811 \begin_inset Flex Code
13812 status collapsed
13813
13814 \begin_layout Plain Layout
13815 <br/>
13816 \end_layout
13817
13818 \end_inset
13819
13820 .
13821 \end_layout
13822
13823 \begin_layout Itemize
13824
13825 \change_deleted -584632292 1615846694
13826 \begin_inset Flex Code
13827 status collapsed
13828
13829 \begin_layout Plain Layout
13830 DefaultArg
13831 \end_layout
13832
13833 \end_inset
13834
13835  
13836 \begin_inset Flex Code
13837 status collapsed
13838
13839 \begin_layout Plain Layout
13840 [string]
13841 \end_layout
13842
13843 \end_inset
13844
13845  defines an argument that is inserted if and only if no user-specified arguments were given,
13846  i.
13847 \begin_inset space \thinspace{}
13848 \end_inset
13849
13850 e.
13851 \begin_inset space \space{}
13852 \end_inset
13853
13854 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
13855  Multiple arguments need to be separated by comma.
13856 \end_layout
13857
13858 \begin_layout Itemize
13859
13860 \change_deleted -584632292 1615846694
13861 \begin_inset Flex Code
13862 status collapsed
13863
13864 \begin_layout Plain Layout
13865 PresetArg
13866 \end_layout
13867
13868 \end_inset
13869
13870  
13871 \begin_inset Flex Code
13872 status collapsed
13873
13874 \begin_layout Plain Layout
13875 [string]
13876 \end_layout
13877
13878 \end_inset
13879
13880  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
13881  Multiple arguments need to be separated by comma.
13882 \end_layout
13883
13884 \begin_layout Itemize
13885
13886 \change_deleted -584632292 1615846694
13887 \begin_inset Flex Code
13888 status collapsed
13889
13890 \begin_layout Plain Layout
13891 Font
13892 \end_layout
13893
13894 \end_inset
13895
13896  The font used for the argument content,
13897  see 
13898 \begin_inset CommandInset ref
13899 LatexCommand ref
13900 reference "subsec:Font-description"
13901 nolink "false"
13902
13903 \end_inset
13904
13905 .
13906 \end_layout
13907
13908 \begin_layout Itemize
13909
13910 \change_deleted -584632292 1615846694
13911 \begin_inset Flex Code
13912 status collapsed
13913
13914 \begin_layout Plain Layout
13915
13916 \change_inserted -712698321 1559484228
13917 FreeSpacing
13918 \change_unchanged
13919
13920 \end_layout
13921
13922 \end_inset
13923
13924  [
13925 \begin_inset Flex Code
13926 status collapsed
13927
13928 \begin_layout Plain Layout
13929
13930 \change_inserted -712698321 1559484228
13931
13932 \emph on
13933 0
13934 \change_unchanged
13935
13936 \end_layout
13937
13938 \end_inset
13939
13940 ,
13941 \begin_inset space \thinspace{}
13942 \end_inset
13943
13944
13945 \begin_inset Flex Code
13946 status collapsed
13947
13948 \begin_layout Plain Layout
13949
13950 \change_inserted -712698321 1559484228
13951 1
13952 \change_unchanged
13953
13954 \end_layout
13955
13956 \end_inset
13957
13958 ] As with paragraph styles,
13959  see 
13960 \begin_inset CommandInset ref
13961 LatexCommand ref
13962 reference "subsec:Paragraph-Styles"
13963 nolink "false"
13964
13965 \end_inset
13966
13967 .
13968 \end_layout
13969
13970 \begin_layout Itemize
13971
13972 \change_deleted -584632292 1615846694
13973 \begin_inset Flex Code
13974 status collapsed
13975
13976 \begin_layout Plain Layout
13977 LabelFont
13978 \end_layout
13979
13980 \end_inset
13981
13982  The font used for the label;
13983  see 
13984 \begin_inset CommandInset ref
13985 LatexCommand ref
13986 reference "subsec:Font-description"
13987 nolink "false"
13988
13989 \end_inset
13990
13991 .
13992 \end_layout
13993
13994 \begin_layout Itemize
13995
13996 \change_deleted -584632292 1615846694
13997 \begin_inset Flex Code
13998 status collapsed
13999
14000 \begin_layout Plain Layout
14001 Decoration
14002 \end_layout
14003
14004 \end_inset
14005
14006  [
14007 \begin_inset Flex Code
14008 status collapsed
14009
14010 \begin_layout Plain Layout
14011
14012 \emph on
14013 Classic
14014 \emph default
14015 ,
14016  Minimalistic,
14017  Conglomerate
14018 \end_layout
14019
14020 \end_inset
14021
14022 ] describes the rendering style used for the inset's frame and buttons.
14023 \end_layout
14024
14025 \begin_layout Itemize
14026
14027 \change_deleted -584632292 1615846694
14028 \begin_inset Flex Code
14029 status collapsed
14030
14031 \begin_layout Plain Layout
14032 AutoInsert
14033 \end_layout
14034
14035 \end_inset
14036
14037  
14038 \begin_inset Flex Code
14039 status collapsed
14040
14041 \begin_layout Plain Layout
14042 [int=0]
14043 \end_layout
14044
14045 \end_inset
14046
14047  If this is set to 
14048 \begin_inset Flex Code
14049 status collapsed
14050
14051 \begin_layout Plain Layout
14052 1
14053 \end_layout
14054
14055 \end_inset
14056
14057 ,
14058  this argument is automatically inserted when the respective style is selected.
14059
14060 \change_deleted -712698321 1559484200
14061  Currently,
14062  only one argument per style\SpecialChar breakableslash
14063 layout can be automatically inserted.
14064 \change_deleted -584632292 1615846694
14065
14066 \end_layout
14067
14068 \begin_layout Itemize
14069
14070 \change_deleted -584632292 1615846694
14071 \begin_inset Flex Code
14072 status collapsed
14073
14074 \begin_layout Plain Layout
14075
14076 \change_inserted -712698321 1559490711
14077 InsertOnNewline
14078 \change_unchanged
14079
14080 \end_layout
14081
14082 \end_inset
14083
14084  
14085 \begin_inset Flex Code
14086 status collapsed
14087
14088 \begin_layout Plain Layout
14089
14090 \change_inserted -712698321 1559490703
14091 [int=0]
14092 \change_unchanged
14093
14094 \end_layout
14095
14096 \end_inset
14097
14098  If this is set to 
14099 \begin_inset Flex Code
14100 status collapsed
14101
14102 \begin_layout Plain Layout
14103
14104 \change_inserted -712698321 1559490703
14105 1
14106 \change_unchanged
14107
14108 \end_layout
14109
14110 \end_inset
14111
14112 ,
14113  this argument will be inserted on a new line with 
14114 \begin_inset Flex Code
14115 status collapsed
14116
14117 \begin_layout Plain Layout
14118
14119 \change_inserted -712698321 1559491402
14120 AutoInsert
14121 \change_unchanged
14122
14123 \end_layout
14124
14125 \end_inset
14126
14127  (only available within Flex insets).
14128 \end_layout
14129
14130 \begin_layout Itemize
14131
14132 \change_deleted -584632292 1615846694
14133 \begin_inset Flex Code
14134 status collapsed
14135
14136 \begin_layout Plain Layout
14137 InsertCotext
14138 \end_layout
14139
14140 \end_inset
14141
14142  
14143 \begin_inset Flex Code
14144 status collapsed
14145
14146 \begin_layout Plain Layout
14147 [int=0]
14148 \end_layout
14149
14150 \end_inset
14151
14152  If this is set to 
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 1
14158 \end_layout
14159
14160 \end_inset
14161
14162 ,
14163  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
14164 \end_layout
14165
14166 \begin_layout Itemize
14167
14168 \change_deleted -584632292 1615846694
14169 \begin_inset Flex Code
14170 status collapsed
14171
14172 \begin_layout Plain Layout
14173 PassThru
14174 \end_layout
14175
14176 \end_inset
14177
14178  [
14179 \begin_inset Flex Code
14180 status collapsed
14181
14182 \begin_layout Plain Layout
14183
14184 \emph on
14185 inherited
14186 \emph default
14187 ,
14188  true,
14189  false
14190 \end_layout
14191
14192 \end_inset
14193
14194 ] Whether the contents of this argument should be output in raw form,
14195  meaning without special translations that \SpecialChar LaTeX
14196  would require.
14197  By default,
14198  the 
14199 \begin_inset Flex Code
14200 status collapsed
14201
14202 \begin_layout Plain Layout
14203 PassThru
14204 \end_layout
14205
14206 \end_inset
14207
14208  status is inherited by the inset or paragraph layout the argument belongs to,
14209  true and false change the status for the given argument only.
14210 \end_layout
14211
14212 \begin_layout Itemize
14213
14214 \change_deleted -584632292 1615846694
14215 \begin_inset Flex Code
14216 status collapsed
14217
14218 \begin_layout Plain Layout
14219 PassThruChars
14220 \end_layout
14221
14222 \end_inset
14223
14224  [
14225 \begin_inset Flex Code
14226 status collapsed
14227
14228 \begin_layout Plain Layout
14229 string of characters
14230 \end_layout
14231
14232 \end_inset
14233
14234 ]
14235 \family typewriter
14236  
14237 \family default
14238 Defines individual characters
14239 \begin_inset Newline linebreak
14240 \end_inset
14241
14242 that should be output in raw form,
14243  meaning without special translations that \SpecialChar LaTeX
14244  would require.
14245  Note that,
14246  contrary to PassThru,
14247  this needs to be explicitly defined for arguments.
14248  That is,
14249  arguments do not inherit PassThruChars from their parent inset or layout.
14250 \end_layout
14251
14252 \begin_layout Itemize
14253
14254 \change_deleted -584632292 1615846694
14255 \begin_inset Flex Code
14256 status collapsed
14257
14258 \begin_layout Plain Layout
14259 IsTocCaption
14260 \end_layout
14261
14262 \end_inset
14263
14264  [
14265 \begin_inset Flex Code
14266 status collapsed
14267
14268 \begin_layout Plain Layout
14269
14270 \emph on
14271 0
14272 \end_layout
14273
14274 \end_inset
14275
14276 ,
14277 \begin_inset space \thinspace{}
14278 \end_inset
14279
14280
14281 \begin_inset Flex Code
14282 status collapsed
14283
14284 \begin_layout Plain Layout
14285 1
14286 \end_layout
14287
14288 \end_inset
14289
14290 ] If this is set to 1,
14291  the argument will output its content in the corresponding item in the table of contents.
14292  See AddToToc.
14293 \end_layout
14294
14295 \begin_layout Standard
14296
14297 \change_deleted -584632292 1615846694
14298 By default,
14299  the text entered in the \SpecialChar LyX
14300  workarea in the respective layout is the last (mandatory) argument of a command if the 
14301 \begin_inset Flex Code
14302 status collapsed
14303
14304 \begin_layout Plain Layout
14305 LatexType
14306 \end_layout
14307
14308 \end_inset
14309
14310  is 
14311 \begin_inset Flex Code
14312 status collapsed
14313
14314 \begin_layout Plain Layout
14315 Command
14316 \end_layout
14317
14318 \end_inset
14319
14320 .
14321  However,
14322  arguments with the prefix 
14323 \begin_inset Flex Code
14324 status collapsed
14325
14326 \begin_layout Plain Layout
14327 post:
14328 \end_layout
14329
14330 \end_inset
14331
14332  are output after this workarea argument.
14333  Note that post-argument numbering restarts at 1,
14334  so the first argument following the workarea argument is 
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 post:1
14340 \end_layout
14341
14342 \end_inset
14343
14344 .
14345  Post-arguments are ignored in any other 
14346 \begin_inset Flex Code
14347 status collapsed
14348
14349 \begin_layout Plain Layout
14350 LatexType
14351 \end_layout
14352
14353 \end_inset
14354
14355  than 
14356 \begin_inset Flex Code
14357 status collapsed
14358
14359 \begin_layout Plain Layout
14360 Command
14361 \end_layout
14362
14363 \end_inset
14364
14365 .
14366 \end_layout
14367
14368 \begin_layout Standard
14369
14370 \change_deleted -584632292 1615846694
14371 Arguments for list 
14372 \begin_inset Flex Code
14373 status collapsed
14374
14375 \begin_layout Plain Layout
14376
14377 \backslash
14378 item
14379 \end_layout
14380
14381 \end_inset
14382
14383 s (as in 
14384 \begin_inset Flex Code
14385 status collapsed
14386
14387 \begin_layout Plain Layout
14388
14389 \backslash
14390 item[foo]
14391 \end_layout
14392
14393 \end_inset
14394
14395 ) have the prefix 
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 item:
14401 \end_layout
14402
14403 \end_inset
14404
14405  followed by the number (e.
14406 \begin_inset space \thinspace{}
14407 \end_inset
14408
14409 g.
14410 \begin_inset space \space{}
14411 \end_inset
14412
14413
14414 \begin_inset Flex Code
14415 status collapsed
14416
14417 \begin_layout Plain Layout
14418 Argument item:1
14419 \end_layout
14420
14421 \end_inset
14422
14423 ).
14424 \end_layout
14425
14426 \begin_layout Standard
14427
14428 \change_deleted -584632292 1615846694
14429 Finally,
14430  there is a special argument type with the prefix 
14431 \begin_inset Flex Code
14432 status collapsed
14433
14434 \begin_layout Plain Layout
14435
14436 \change_inserted -712698321 1534487844
14437 listpreamble:
14438 \change_unchanged
14439
14440 \end_layout
14441
14442 \end_inset
14443
14444 .
14445  It is not really an argument,
14446  but uses the argument interface (thus,
14447  the prefix is also followed by a number,
14448  e.
14449 \begin_inset space \thinspace{}
14450 \end_inset
14451
14452 g.
14453  
14454 \begin_inset Flex Code
14455 status collapsed
14456
14457 \begin_layout Plain Layout
14458
14459 \change_inserted -712698321 1534488412
14460 Argument listpreamble:1
14461 \change_unchanged
14462
14463 \end_layout
14464
14465 \end_inset
14466
14467 ).
14468  As the name implies,
14469  it is targeted at lists such as 
14470 \family sans
14471 Itemize
14472 \family default
14473 ,
14474  
14475 \family sans
14476 Enumerate
14477 \family default
14478 ,
14479  
14480 \family sans
14481 Description
14482 \family default
14483 ,
14484  or 
14485 \family sans
14486 Bibliography
14487 \family default
14488 .
14489  Its content will be output at the list start,
14490  before the first 
14491 \begin_inset Flex Code
14492 status collapsed
14493
14494 \begin_layout Plain Layout
14495
14496 \change_inserted -712698321 1534488058
14497
14498 \backslash
14499 item
14500 \change_unchanged
14501
14502 \end_layout
14503
14504 \end_inset
14505
14506 ,
14507  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
14508 ).
14509  This way,
14510  users can insert redefinitions (of lengths etc.) to individual lists.
14511  By default,
14512  these arguments do not have a delimiter.
14513 \change_unchanged
14514
14515 \end_layout
14516
14517 \end_deeper
14518 \begin_layout Description
14519 \begin_inset Flex Code
14520 status collapsed
14521
14522 \begin_layout Plain Layout
14523 AutoNests
14524 \end_layout
14525
14526 \end_inset
14527
14528  Includes a comma-separated list of layouts that should be nested in and after the current layout.
14529  Only makes sense for nestable layouts (such as environments).
14530  Must be ended by 
14531 \begin_inset Quotes eld
14532 \end_inset
14533
14534
14535 \begin_inset Flex Code
14536 status collapsed
14537
14538 \begin_layout Plain Layout
14539 EndAutoNests
14540 \end_layout
14541
14542 \end_inset
14543
14544
14545 \begin_inset Quotes erd
14546 \end_inset
14547
14548 .
14549  See also 
14550 \begin_inset Flex Code
14551 status collapsed
14552
14553 \begin_layout Plain Layout
14554 IsAutoNestedBy
14555 \end_layout
14556
14557 \end_inset
14558
14559 .
14560 \end_layout
14561
14562 \begin_layout Description
14563 \begin_inset Flex Code
14564 status collapsed
14565
14566 \begin_layout Plain Layout
14567 BabelPreamble
14568 \end_layout
14569
14570 \end_inset
14571
14572  Note that this will completely override any prior 
14573 \begin_inset Flex Code
14574 status collapsed
14575
14576 \begin_layout Plain Layout
14577 BabelPreamble
14578 \end_layout
14579
14580 \end_inset
14581
14582  declaration for this style.
14583  Must end with 
14584 \begin_inset Quotes eld
14585 \end_inset
14586
14587
14588 \begin_inset Flex Code
14589 status collapsed
14590
14591 \begin_layout Plain Layout
14592 EndBabelPreamble
14593 \end_layout
14594
14595 \end_inset
14596
14597
14598 \begin_inset Quotes erd
14599 \end_inset
14600
14601 .
14602  See 
14603 \begin_inset CommandInset ref
14604 LatexCommand ref
14605 reference "subsec:I18n"
14606 nolink "false"
14607
14608 \end_inset
14609
14610  for details on its use.
14611 \end_layout
14612
14613 \begin_layout Description
14614 \begin_inset Flex Code
14615 status collapsed
14616
14617 \begin_layout Plain Layout
14618 BottomSep
14619 \end_layout
14620
14621 \end_inset
14622
14623  [
14624 \begin_inset Flex Code
14625 status collapsed
14626
14627 \begin_layout Plain Layout
14628 float=0
14629 \end_layout
14630
14631 \end_inset
14632
14633 ]
14634 \begin_inset Foot
14635 status collapsed
14636
14637 \begin_layout Plain Layout
14638 Note that a `float' here is a real number,
14639  such as:
14640  1.5.
14641 \end_layout
14642
14643 \end_inset
14644
14645  The vertical space with which the last of a chain of paragraphs with this style is separated from the following paragraph.
14646  If the next paragraph has another style,
14647  the separations are not simply added,
14648  but the maximum is taken.
14649 \end_layout
14650
14651 \begin_layout Description
14652 \begin_inset Flex Code
14653 status collapsed
14654
14655 \begin_layout Plain Layout
14656 Category
14657 \end_layout
14658
14659 \end_inset
14660
14661  [
14662 \begin_inset Flex Code
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666 string
14667 \end_layout
14668
14669 \end_inset
14670
14671 ] The category for this style.
14672  This is used to group related styles in the style combobox on the toolbar.
14673  Any string can be used,
14674  but you may want to use existing categories with your own styles.
14675  
14676 \end_layout
14677
14678 \begin_layout Description
14679
14680 \change_deleted 1075283030 1672014981
14681 \begin_inset Flex Code
14682 status collapsed
14683
14684 \begin_layout Plain Layout
14685 CommandDepth
14686 \end_layout
14687
14688 \end_inset
14689
14690  Depth of XML command.
14691  Used only with XML-type formats.
14692 \end_layout
14693
14694 \begin_layout Description
14695 \begin_inset Flex Code
14696 status collapsed
14697
14698 \begin_layout Plain Layout
14699 CopyStyle
14700 \end_layout
14701
14702 \end_inset
14703
14704  [
14705 \begin_inset Flex Code
14706 status collapsed
14707
14708 \begin_layout Plain Layout
14709 string
14710 \end_layout
14711
14712 \end_inset
14713
14714 ] Copies all the features of an existing style into the current one.
14715
14716 \change_inserted -584632292 1678808972
14717  Note that this copies the style as it is defined at that point.
14718  Later changes to it will not affect styles into which it has been copied.
14719 \change_unchanged
14720
14721 \end_layout
14722
14723 \begin_layout Description
14724
14725 \change_inserted 1075283030 1672014806
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730
14731 \change_inserted 1075283030 1671679781
14732 DocBookGenerateTitle
14733 \change_unchanged
14734
14735 \end_layout
14736
14737 \end_inset
14738
14739  [
14740 \begin_inset Flex Code
14741 status collapsed
14742
14743 \begin_layout Plain Layout
14744
14745 \change_inserted 1075283030 1672014763
14746 bool=false
14747 \change_unchanged
14748
14749 \end_layout
14750
14751 \end_inset
14752
14753 ] Generates a
14754 \begin_inset Flex Code
14755 status collapsed
14756
14757 \begin_layout Plain Layout
14758
14759 \change_inserted 1075283030 1672014789
14760 title
14761 \change_unchanged
14762
14763 \end_layout
14764
14765 \end_inset
14766
14767  tag after the wrapper tag.
14768  This parameter should only be used with
14769 \begin_inset Flex Code
14770 status collapsed
14771
14772 \begin_layout Plain Layout
14773
14774 \change_inserted 1075283030 1671679828
14775 DocBookWrapperTag
14776 \change_unchanged
14777
14778 \end_layout
14779
14780 \end_inset
14781
14782 ,
14783  otherwise the title will be output
14784 \emph on
14785  before
14786 \emph default
14787  the contents of the environment.
14788  The generated title is the same as the LyXHTML label:
14789  a combination of the environment type and its number.
14790  A major use is when DocBook has no close mapping for LaTeX environments and users must fallback to using a generic container such as
14791 \begin_inset Flex Code
14792 status collapsed
14793
14794 \begin_layout Plain Layout
14795
14796 \change_inserted 1075283030 1672014801
14797 figure
14798 \change_unchanged
14799
14800 \end_layout
14801
14802 \end_inset
14803
14804 ,
14805  which requires a title although there is none in LaTeX.
14806  This feature is heavily used for theorem-like environments.
14807 \change_unchanged
14808
14809 \end_layout
14810
14811 \begin_layout Description
14812 \begin_inset Flex Code
14813 status collapsed
14814
14815 \begin_layout Plain Layout
14816 DependsOn
14817 \end_layout
14818
14819 \end_inset
14820
14821  [
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 <name>
14827 \end_layout
14828
14829 \end_inset
14830
14831 ] The name of a style whose preamble should be output 
14832 \emph on
14833 before
14834 \emph default
14835  this one.
14836  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
14837 \begin_inset Foot
14838 status collapsed
14839
14840 \begin_layout Plain Layout
14841 Note that,
14842  besides that functionality,
14843  there is no way to ensure any ordering of preambles.
14844  The ordering that you see in a given version of \SpecialChar LyX
14845  may change without warning in later versions.
14846 \end_layout
14847
14848 \end_inset
14849
14850
14851 \end_layout
14852
14853 \begin_layout Description
14854 \begin_inset Flex Code
14855 status collapsed
14856
14857 \begin_layout Plain Layout
14858 EndLabelType
14859 \end_layout
14860
14861 \end_inset
14862
14863  [
14864 \begin_inset Flex Code
14865 status collapsed
14866
14867 \begin_layout Plain Layout
14868
14869 \emph on
14870 No_Label
14871 \emph default
14872 ,
14873  Box,
14874  Filled_Box,
14875  Static
14876 \end_layout
14877
14878 \end_inset
14879
14880 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
14881 \begin_inset Flex Code
14882 status collapsed
14883
14884 \begin_layout Plain Layout
14885 LatexType
14886 \end_layout
14887
14888 \end_inset
14889
14890  is
14891 \begin_inset Newline newline
14892 \end_inset
14893
14894
14895 \begin_inset Flex Code
14896 status collapsed
14897
14898 \begin_layout Plain Layout
14899 Environment
14900 \end_layout
14901
14902 \end_inset
14903
14904 ,
14905  
14906 \begin_inset Flex Code
14907 status collapsed
14908
14909 \begin_layout Plain Layout
14910 Item_Environment
14911 \end_layout
14912
14913 \end_inset
14914
14915  or 
14916 \begin_inset Flex Code
14917 status collapsed
14918
14919 \begin_layout Plain Layout
14920 List_Environment
14921 \end_layout
14922
14923 \end_inset
14924
14925 ).
14926  
14927 \begin_inset Flex Code
14928 status collapsed
14929
14930 \begin_layout Plain Layout
14931 No_Label
14932 \end_layout
14933
14934 \end_inset
14935
14936  means 
14937 \begin_inset Quotes eld
14938 \end_inset
14939
14940 nothing
14941 \begin_inset Quotes erd
14942 \end_inset
14943
14944 ,
14945  
14946 \begin_inset Flex Code
14947 status collapsed
14948
14949 \begin_layout Plain Layout
14950 Box
14951 \end_layout
14952
14953 \end_inset
14954
14955  (resp.
14956 \begin_inset space \space{}
14957 \end_inset
14958
14959
14960 \begin_inset Flex Code
14961 status collapsed
14962
14963 \begin_layout Plain Layout
14964 Filled_Box
14965 \end_layout
14966
14967 \end_inset
14968
14969 ) is a white (resp.
14970 \begin_inset space ~
14971 \end_inset
14972
14973 black) square suitable for end of proof markers,
14974  
14975 \begin_inset Flex Code
14976 status collapsed
14977
14978 \begin_layout Plain Layout
14979 Static
14980 \end_layout
14981
14982 \end_inset
14983
14984  is an explicit text string.
14985 \end_layout
14986
14987 \begin_layout Description
14988 \begin_inset Flex Code
14989 status collapsed
14990
14991 \begin_layout Plain Layout
14992 EndLabelString
14993 \end_layout
14994
14995 \end_inset
14996
14997  [
14998 \begin_inset Flex Code
14999 status collapsed
15000
15001 \begin_layout Plain Layout
15002 string=""
15003 \end_layout
15004
15005 \end_inset
15006
15007 ] The string used for a label with a 
15008 \begin_inset Flex Code
15009 status collapsed
15010
15011 \begin_layout Plain Layout
15012 Static
15013 \end_layout
15014
15015 \end_inset
15016
15017
15018 \begin_inset Newline newline
15019 \end_inset
15020
15021
15022 \begin_inset Flex Code
15023 status collapsed
15024
15025 \begin_layout Plain Layout
15026 EndLabelType
15027 \end_layout
15028
15029 \end_inset
15030
15031 .
15032  
15033 \end_layout
15034
15035 \begin_layout Description
15036 \begin_inset Flex Code
15037 status collapsed
15038
15039 \begin_layout Plain Layout
15040 Font
15041 \end_layout
15042
15043 \end_inset
15044
15045  The font used for both the text body 
15046 \emph on
15047 and
15048 \emph default
15049  the label.
15050  See 
15051 \begin_inset CommandInset ref
15052 LatexCommand ref
15053 reference "subsec:Font-description"
15054 nolink "false"
15055
15056 \end_inset
15057
15058 .
15059  Note that defining this font automatically defines the 
15060 \begin_inset Flex Code
15061 status collapsed
15062
15063 \begin_layout Plain Layout
15064 LabelFont
15065 \end_layout
15066
15067 \end_inset
15068
15069  to the same value.
15070  So you should define this one first if you also want to define 
15071 \begin_inset Flex Code
15072 status collapsed
15073
15074 \begin_layout Plain Layout
15075 LabelFont
15076 \end_layout
15077
15078 \end_inset
15079
15080 .
15081 \end_layout
15082
15083 \begin_layout Description
15084 \begin_inset Flex Code
15085 status collapsed
15086
15087 \begin_layout Plain Layout
15088 ForceLocal
15089 \end_layout
15090
15091 \end_inset
15092
15093  [
15094 \begin_inset Flex Code
15095 status collapsed
15096
15097 \begin_layout Plain Layout
15098 int=0
15099 \end_layout
15100
15101 \end_inset
15102
15103 ] Used for backporting new styles to stable \SpecialChar LyX
15104  versions.
15105  The first stable version that supports this tag is \SpecialChar LyX
15106  2.1.0.
15107  The argument is a number which may either be 0,
15108  -1 or any value greater than zero.
15109  If the 
15110 \begin_inset Flex Code
15111 status collapsed
15112
15113 \begin_layout Plain Layout
15114 ForceLocal
15115 \end_layout
15116
15117 \end_inset
15118
15119  flag of a style is greater than zero,
15120  it will always be written to the document header.
15121  If a .lyx file is read,
15122  the style definitions from the document header are added to the document class.
15123  Therefore even older \SpecialChar LyX
15124  versions can handle the style.
15125  The argument of 
15126 \begin_inset Flex Code
15127 status collapsed
15128
15129 \begin_layout Plain Layout
15130 ForceLocal
15131 \end_layout
15132
15133 \end_inset
15134
15135  is a version number:
15136  if the style is read,
15137  and the version number is less than the version number of the already existing style in the document class,
15138  the new style is ignored.
15139  If the version number is greater,
15140  the new style replaces the existing style.
15141  A value of -1 means an infinite version number,
15142  i.
15143 \begin_inset space \thinspace{}
15144 \end_inset
15145
15146 e.
15147 \begin_inset space \space{}
15148 \end_inset
15149
15150 the style is always used.
15151 \end_layout
15152
15153 \begin_layout Description
15154 \begin_inset Flex Code
15155 status collapsed
15156
15157 \begin_layout Plain Layout
15158 FreeSpacing
15159 \end_layout
15160
15161 \end_inset
15162
15163  [
15164 \begin_inset Flex Code
15165 status collapsed
15166
15167 \begin_layout Plain Layout
15168
15169 \emph on
15170 0
15171 \end_layout
15172
15173 \end_inset
15174
15175 ,
15176 \begin_inset space \thinspace{}
15177 \end_inset
15178
15179
15180 \begin_inset Flex Code
15181 status collapsed
15182
15183 \begin_layout Plain Layout
15184 1
15185 \end_layout
15186
15187 \end_inset
15188
15189 ] Usually \SpecialChar LyX
15190  does not allow you to insert more than one space between words,
15191  since a space is considered as the separation between two words,
15192  not a character or symbol of its own.
15193  This is a very fine thing but sometimes annoying,
15194  for example,
15195  when typing program code or plain \SpecialChar LaTeX
15196  code.
15197  For this reason,
15198  
15199 \begin_inset Flex Code
15200 status collapsed
15201
15202 \begin_layout Plain Layout
15203 FreeSpacing
15204 \end_layout
15205
15206 \end_inset
15207
15208  can be enabled.
15209  
15210 \change_deleted -495245474 1550490105
15211 Note that 
15212 \change_unchanged
15213 \SpecialChar LyX
15214  will create 
15215 \change_deleted 177693 1654669077
15216 protected
15217 \change_inserted 177693 1654669079
15218 non-breaking
15219 \change_unchanged
15220  
15221 \change_deleted 177693 1654669082
15222 blanks
15223 \change_inserted 177693 1654669082
15224 spaces
15225 \change_unchanged
15226  for the additional blanks when
15227 \change_deleted 34634807 1619626461
15228  in
15229 \change_unchanged
15230  
15231 \change_inserted -495245474 1550490096
15232
15233 \begin_inset Flex Code
15234 status collapsed
15235
15236 \begin_layout Plain Layout
15237
15238 \change_inserted -495245474 1550490089
15239 Passthru 1
15240 \change_unchanged
15241
15242 \end_layout
15243
15244 \end_inset
15245
15246  is not specified.
15247 \change_deleted -495245474 1550490116
15248 another mode than \SpecialChar LaTeX
15249 -mode.
15250
15251 \change_inserted -495245474 1550247760
15252  Note that 
15253 \begin_inset Flex Code
15254 status collapsed
15255
15256 \begin_layout Plain Layout
15257
15258 \change_inserted -495245474 1550247736
15259 FreeSpacing
15260 \change_unchanged
15261
15262 \end_layout
15263
15264 \end_inset
15265
15266  implies 
15267 \begin_inset Flex Code
15268 status collapsed
15269
15270 \begin_layout Plain Layout
15271
15272 \change_inserted -495245474 1550247755
15273 KeepEmpty
15274 \change_unchanged
15275
15276 \end_layout
15277
15278 \end_inset
15279
15280 .
15281 \change_unchanged
15282
15283 \end_layout
15284
15285 \begin_layout Description
15286 \begin_inset Flex Code
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290 HTML*
15291 \end_layout
15292
15293 \end_inset
15294
15295  These tags are used with XHTML output.
15296  See 
15297 \begin_inset CommandInset ref
15298 LatexCommand ref
15299 reference "subsec:Paragraph-Style-XHTML"
15300 nolink "false"
15301
15302 \end_inset
15303
15304 .
15305 \end_layout
15306
15307 \begin_layout Description
15308
15309 \change_deleted 1075283030 1672014684
15310 \begin_inset Flex Code
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314 InnerTag
15315 \end_layout
15316
15317 \end_inset
15318
15319  [FIXME] (Used only with XML-type formats.)
15320 \change_unchanged
15321
15322 \end_layout
15323
15324 \begin_layout Description
15325 \begin_inset Flex Code
15326 status collapsed
15327
15328 \begin_layout Plain Layout
15329 InPreamble
15330 \end_layout
15331
15332 \end_inset
15333
15334  [
15335 \begin_inset Flex Code
15336 status collapsed
15337
15338 \begin_layout Plain Layout
15339
15340 \emph on
15341 0
15342 \end_layout
15343
15344 \end_inset
15345
15346 ,
15347 \begin_inset space \thinspace{}
15348 \end_inset
15349
15350
15351 \begin_inset Flex Code
15352 status collapsed
15353
15354 \begin_layout Plain Layout
15355 1
15356 \end_layout
15357
15358 \end_inset
15359
15360 ] If 
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 1
15366 \end_layout
15367
15368 \end_inset
15369
15370 ,
15371  marks the style as to be included in the document preamble and not in the document body.
15372  This is useful for document classes that want such information as the title and author to appear in the preamble.
15373  Note that this works only for styles for which the 
15374 \begin_inset Flex Code
15375 status collapsed
15376
15377 \begin_layout Plain Layout
15378 LatexType
15379 \end_layout
15380
15381 \end_inset
15382
15383  is 
15384 \begin_inset Flex Code
15385 status collapsed
15386
15387 \begin_layout Plain Layout
15388 Command
15389 \end_layout
15390
15391 \end_inset
15392
15393  or 
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 Paragraph
15399 \end_layout
15400
15401 \end_inset
15402
15403 .
15404 \end_layout
15405
15406 \begin_layout Description
15407 \begin_inset Flex Code
15408 status collapsed
15409
15410 \begin_layout Plain Layout
15411 InTitle
15412 \end_layout
15413
15414 \end_inset
15415
15416  [
15417 \begin_inset Flex Code
15418 status collapsed
15419
15420 \begin_layout Plain Layout
15421
15422 \emph on
15423 0
15424 \end_layout
15425
15426 \end_inset
15427
15428 ,
15429 \begin_inset space \thinspace{}
15430 \end_inset
15431
15432
15433 \begin_inset Flex Code
15434 status collapsed
15435
15436 \begin_layout Plain Layout
15437 1
15438 \end_layout
15439
15440 \end_inset
15441
15442 ] If 
15443 \begin_inset Flex Code
15444 status collapsed
15445
15446 \begin_layout Plain Layout
15447 1
15448 \end_layout
15449
15450 \end_inset
15451
15452 ,
15453  marks the style as being part of a title block (see also the 
15454 \begin_inset Flex Code
15455 status collapsed
15456
15457 \begin_layout Plain Layout
15458 TitleLatexType
15459 \end_layout
15460
15461 \end_inset
15462
15463  and 
15464 \begin_inset Flex Code
15465 status collapsed
15466
15467 \begin_layout Plain Layout
15468 TitleLatexName
15469 \end_layout
15470
15471 \end_inset
15472
15473  global entries).
15474 \end_layout
15475
15476 \begin_layout Description
15477 \begin_inset Flex Code
15478 status collapsed
15479
15480 \begin_layout Plain Layout
15481 IsAutoNestedBy
15482 \end_layout
15483
15484 \end_inset
15485
15486  Includes a comma-separated list of layouts after which this one should be nested.
15487  Only makes sense with regard to nestable layouts (such as environments).
15488  Must be ended by 
15489 \begin_inset Quotes eld
15490 \end_inset
15491
15492
15493 \begin_inset Flex Code
15494 status collapsed
15495
15496 \begin_layout Plain Layout
15497 EndIsAutoNestedBy
15498 \end_layout
15499
15500 \end_inset
15501
15502
15503 \begin_inset Quotes erd
15504 \end_inset
15505
15506 .
15507  See also 
15508 \begin_inset Flex Code
15509 status collapsed
15510
15511 \begin_layout Plain Layout
15512 AutoNests
15513 \end_layout
15514
15515 \end_inset
15516
15517 .
15518 \end_layout
15519
15520 \begin_layout Description
15521 \begin_inset Flex Code
15522 status collapsed
15523
15524 \begin_layout Plain Layout
15525 IsTocCaption
15526 \end_layout
15527
15528 \end_inset
15529
15530  [
15531 \begin_inset Flex Code
15532 status collapsed
15533
15534 \begin_layout Plain Layout
15535
15536 \emph on
15537 0
15538 \end_layout
15539
15540 \end_inset
15541
15542 ,
15543 \begin_inset space \thinspace{}
15544 \end_inset
15545
15546
15547 \begin_inset Flex Code
15548 status collapsed
15549
15550 \begin_layout Plain Layout
15551 1
15552 \end_layout
15553
15554 \end_inset
15555
15556 ] If this is set to 1 and AddToToc is enabled,
15557  the paragraph adds a summary of its contents in its item in the table of contents.
15558  Otherwise,
15559  only the label,
15560  if it exists,
15561  appears.
15562 \end_layout
15563
15564 \begin_layout Description
15565 \begin_inset Flex Code
15566 status collapsed
15567
15568 \begin_layout Plain Layout
15569 ItemCommand
15570 \end_layout
15571
15572 \end_inset
15573
15574  [
15575 \begin_inset Flex Code
15576 status collapsed
15577
15578 \begin_layout Plain Layout
15579 string="item"
15580 \end_layout
15581
15582 \end_inset
15583
15584 ] The \SpecialChar LaTeX
15585  command sequence declaring an item in a list.
15586  The command is to be defined without the preceding backslash (the default is 
15587 \begin_inset Quotes eld
15588 \end_inset
15589
15590 item
15591 \begin_inset Quotes erd
15592 \end_inset
15593
15594 ,
15595  resulting in 
15596 \begin_inset Flex Code
15597 status collapsed
15598
15599 \begin_layout Plain Layout
15600
15601 \backslash
15602 item
15603 \end_layout
15604
15605 \end_inset
15606
15607  in the \SpecialChar LaTeX
15608  output).
15609 \end_layout
15610
15611 \begin_layout Description
15612 \begin_inset Flex Code
15613 status collapsed
15614
15615 \begin_layout Plain Layout
15616 ItemSep
15617 \end_layout
15618
15619 \end_inset
15620
15621  [
15622 \begin_inset Flex Code
15623 status collapsed
15624
15625 \begin_layout Plain Layout
15626 float=0
15627 \end_layout
15628
15629 \end_inset
15630
15631 ] This provides extra space between paragraphs that have the same style.
15632  If you put other styles into an environment,
15633  each is separated with the environment's 
15634 \begin_inset Flex Code
15635 status collapsed
15636
15637 \begin_layout Plain Layout
15638 ParSep
15639 \end_layout
15640
15641 \end_inset
15642
15643 .
15644  But the whole items of the environment are additionally separated with this 
15645 \begin_inset Flex Code
15646 status collapsed
15647
15648 \begin_layout Plain Layout
15649 ItemSep
15650 \end_layout
15651
15652 \end_inset
15653
15654 .
15655  Note that this is a
15656 \emph on
15657  multiplier.
15658 \end_layout
15659
15660 \begin_layout Description
15661
15662 \change_deleted 1075283030 1672014680
15663 \begin_inset Flex Code
15664 status collapsed
15665
15666 \begin_layout Plain Layout
15667 ItemTag
15668 \end_layout
15669
15670 \end_inset
15671
15672  [FIXME] (Used only with XML-type formats.)
15673 \change_unchanged
15674
15675 \end_layout
15676
15677 \begin_layout Description
15678 \begin_inset Flex Code
15679 status collapsed
15680
15681 \begin_layout Plain Layout
15682 KeepEmpty
15683 \end_layout
15684
15685 \end_inset
15686
15687  [
15688 \begin_inset Flex Code
15689 status collapsed
15690
15691 \begin_layout Plain Layout
15692
15693 \emph on
15694 0
15695 \end_layout
15696
15697 \end_inset
15698
15699 ,
15700 \begin_inset space \thinspace{}
15701 \end_inset
15702
15703
15704 \begin_inset Flex Code
15705 status collapsed
15706
15707 \begin_layout Plain Layout
15708 1
15709 \end_layout
15710
15711 \end_inset
15712
15713 ] Usually \SpecialChar LyX
15714  does not allow you to leave a paragraph empty,
15715  since it would lead to empty \SpecialChar LaTeX
15716  output.
15717  There are some cases where this could be desirable however:
15718  in a letter template,
15719  the required fields can be provided as empty fields,
15720  so that people do not forget them;
15721  in some special classes,
15722  a style can be used as some kind of break,
15723  which does not contain actual text.
15724 \end_layout
15725
15726 \begin_layout Description
15727 \begin_inset Flex Code
15728 status collapsed
15729
15730 \begin_layout Plain Layout
15731 LabelBottomsep
15732 \end_layout
15733
15734 \end_inset
15735
15736  [
15737 \begin_inset Flex Code
15738 status collapsed
15739
15740 \begin_layout Plain Layout
15741 float=0
15742 \end_layout
15743
15744 \end_inset
15745
15746 ] The vertical space between the label and the text body.
15747  Only used for labels that are above the text body (
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752 Top_Environment
15753 \end_layout
15754
15755 \end_inset
15756
15757  and
15758 \begin_inset Newline newline
15759 \end_inset
15760
15761
15762 \begin_inset Flex Code
15763 status collapsed
15764
15765 \begin_layout Plain Layout
15766 Centered_Top_Environment
15767 \end_layout
15768
15769 \end_inset
15770
15771 ).
15772 \end_layout
15773
15774 \begin_layout Description
15775 \begin_inset Flex Code
15776 status collapsed
15777
15778 \begin_layout Plain Layout
15779 LabelCounter
15780 \end_layout
15781
15782 \end_inset
15783
15784  [
15785 \begin_inset Flex Code
15786 status collapsed
15787
15788 \begin_layout Plain Layout
15789 string=""
15790 \end_layout
15791
15792 \end_inset
15793
15794 ] The name of the counter for automatic numbering.
15795  In order to have the counter appear with your label,
15796  you will need to reference it in the 
15797 \begin_inset Flex Code
15798 status collapsed
15799
15800 \begin_layout Plain Layout
15801
15802 \family typewriter
15803 LabelString
15804 \end_layout
15805
15806 \end_inset
15807
15808 .
15809  This will work with 
15810 \begin_inset Flex Code
15811 status collapsed
15812
15813 \begin_layout Plain Layout
15814 LabelType
15815 \end_layout
15816
15817 \end_inset
15818
15819 s,
15820  
15821 \begin_inset Flex Code
15822 status collapsed
15823
15824 \begin_layout Plain Layout
15825 Static
15826 \end_layout
15827
15828 \end_inset
15829
15830 ,
15831  
15832 \begin_inset Flex Code
15833 status collapsed
15834
15835 \begin_layout Plain Layout
15836 Above
15837 \end_layout
15838
15839 \end_inset
15840
15841  and 
15842 \begin_inset Flex Code
15843 status collapsed
15844
15845 \begin_layout Plain Layout
15846 Centered
15847 \end_layout
15848
15849 \end_inset
15850
15851 ,
15852  at least.
15853 \begin_inset Newline newline
15854 \end_inset
15855
15856 This 
15857 \emph on
15858 may
15859 \emph default
15860  also be given if 
15861 \begin_inset Flex Code
15862 status collapsed
15863
15864 \begin_layout Plain Layout
15865 LabelType
15866 \end_layout
15867
15868 \end_inset
15869
15870  is 
15871 \begin_inset Flex Code
15872 status collapsed
15873
15874 \begin_layout Plain Layout
15875 Enumerate
15876 \end_layout
15877
15878 \end_inset
15879
15880 ,
15881  though this case is a bit complicated.
15882  Suppose you declare 
15883 \begin_inset Quotes eld
15884 \end_inset
15885
15886
15887 \begin_inset Flex Code
15888 status collapsed
15889
15890 \begin_layout Plain Layout
15891 LabelCounter myenum
15892 \end_layout
15893
15894 \end_inset
15895
15896
15897 \begin_inset Quotes erd
15898 \end_inset
15899
15900 .
15901  Then the actual counters used are 
15902 \begin_inset Flex Code
15903 status collapsed
15904
15905 \begin_layout Plain Layout
15906 myenumi
15907 \end_layout
15908
15909 \end_inset
15910
15911 ,
15912  
15913 \begin_inset Flex Code
15914 status collapsed
15915
15916 \begin_layout Plain Layout
15917 myenumii
15918 \end_layout
15919
15920 \end_inset
15921
15922 ,
15923  
15924 \begin_inset Flex Code
15925 status collapsed
15926
15927 \begin_layout Plain Layout
15928 myenumiii
15929 \end_layout
15930
15931 \end_inset
15932
15933  and 
15934 \begin_inset Flex Code
15935 status collapsed
15936
15937 \begin_layout Plain Layout
15938 myenumiv
15939 \end_layout
15940
15941 \end_inset
15942
15943 ,
15944  much as in \SpecialChar LaTeX
15945 .
15946  These counters must all be declared separately.
15947 \begin_inset Newline newline
15948 \end_inset
15949
15950 See 
15951 \begin_inset CommandInset ref
15952 LatexCommand ref
15953 reference "subsec:Counters"
15954 nolink "false"
15955
15956 \end_inset
15957
15958  for details on counters.
15959 \end_layout
15960
15961 \begin_layout Description
15962 \begin_inset Flex Code
15963 status collapsed
15964
15965 \begin_layout Plain Layout
15966 LabelFont
15967 \end_layout
15968
15969 \end_inset
15970
15971  The font used for the label.
15972  See 
15973 \begin_inset CommandInset ref
15974 LatexCommand ref
15975 reference "subsec:Font-description"
15976 nolink "false"
15977
15978 \end_inset
15979
15980 .
15981 \end_layout
15982
15983 \begin_layout Description
15984 \begin_inset Flex Code
15985 status collapsed
15986
15987 \begin_layout Plain Layout
15988 LabelIndent
15989 \end_layout
15990
15991 \end_inset
15992
15993  [
15994 \begin_inset Flex Code
15995 status collapsed
15996
15997 \begin_layout Plain Layout
15998 string=""
15999 \end_layout
16000
16001 \end_inset
16002
16003 ] Text that indicates how far a label should be indented.
16004 \end_layout
16005
16006 \begin_layout Description
16007 \begin_inset Flex Code
16008 status collapsed
16009
16010 \begin_layout Plain Layout
16011 LabelSep
16012 \end_layout
16013
16014 \end_inset
16015
16016  [
16017 \begin_inset Flex Code
16018 status collapsed
16019
16020 \begin_layout Plain Layout
16021 string=""
16022 \end_layout
16023
16024 \end_inset
16025
16026 ] Text that indicates the amount of horizontal space between the label and the text body.
16027  Only used for labels that are not above the text body.
16028 \end_layout
16029
16030 \begin_layout Description
16031 \begin_inset Flex Code
16032 status collapsed
16033
16034 \begin_layout Plain Layout
16035 LabelString
16036 \end_layout
16037
16038 \end_inset
16039
16040  [
16041 \begin_inset Flex Code
16042 status collapsed
16043
16044 \begin_layout Plain Layout
16045 string=""
16046 \end_layout
16047
16048 \end_inset
16049
16050 ] The string used for the label.
16051  When 
16052 \begin_inset Flex Code
16053 status collapsed
16054
16055 \begin_layout Plain Layout
16056 LabelCounter
16057 \end_layout
16058
16059 \end_inset
16060
16061  is set,
16062  this string can be contain the special formatting commands described in 
16063 \begin_inset CommandInset ref
16064 LatexCommand ref
16065 reference "subsec:Counters"
16066 nolink "false"
16067
16068 \end_inset
16069
16070 .
16071 \end_layout
16072
16073 \begin_layout Description
16074 \begin_inset Flex Code
16075 status collapsed
16076
16077 \begin_layout Plain Layout
16078 LabelStringAppendix
16079 \end_layout
16080
16081 \end_inset
16082
16083  [
16084 \begin_inset Flex Code
16085 status collapsed
16086
16087 \begin_layout Plain Layout
16088 string=""
16089 \end_layout
16090
16091 \end_inset
16092
16093 ] This is used inside the appendix instead of
16094 \begin_inset Newline newline
16095 \end_inset
16096
16097
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 LabelString
16103 \end_layout
16104
16105 \end_inset
16106
16107 .
16108  Note that every 
16109 \begin_inset Flex Code
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113 LabelString
16114 \end_layout
16115
16116 \end_inset
16117
16118  statement resets
16119 \begin_inset Newline newline
16120 \end_inset
16121
16122
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 LabelStringAppendix
16128 \end_layout
16129
16130 \end_inset
16131
16132  too.
16133 \change_deleted 1075283030 1672015070
16134
16135 \end_layout
16136
16137 \begin_layout Description
16138
16139 \change_deleted 1075283030 1672015070
16140 \begin_inset Flex Code
16141 status collapsed
16142
16143 \begin_layout Plain Layout
16144 LabelTag
16145 \end_layout
16146
16147 \end_inset
16148
16149  [FIXME] (Used only with XML-type formats.)
16150 \change_unchanged
16151
16152 \end_layout
16153
16154 \begin_layout Description
16155 \begin_inset Flex Code
16156 status collapsed
16157
16158 \begin_layout Plain Layout
16159 LabelType
16160 \end_layout
16161
16162 \end_inset
16163
16164  [
16165 \begin_inset Flex Code
16166 status collapsed
16167
16168 \begin_layout Plain Layout
16169
16170 \emph on
16171 No_Label
16172 \emph default
16173 ,
16174  Manual,
16175  Static,
16176  Above,
16177  
16178 \begin_inset Newline newline
16179 \end_inset
16180
16181 Centered,
16182  Sensitive,
16183  Enumerate,
16184 \begin_inset Newline newline
16185 \end_inset
16186
16187 Itemize,
16188  Bibliography
16189 \end_layout
16190
16191 \end_inset
16192
16193 ]
16194 \end_layout
16195
16196 \begin_deeper
16197 \begin_layout Description
16198 \begin_inset Flex Code
16199 status collapsed
16200
16201 \begin_layout Plain Layout
16202 Manual
16203 \end_layout
16204
16205 \end_inset
16206
16207  means the label is the very first word (up to the first real blank).
16208  Use 
16209 \change_deleted 177693 1654669087
16210 protected
16211 \change_inserted 177693 1654669089
16212 non-breaking
16213 \change_unchanged
16214  spaces if you want more than one word as the label.
16215  
16216 \end_layout
16217
16218 \begin_layout Description
16219 \begin_inset Flex Code
16220 status collapsed
16221
16222 \begin_layout Plain Layout
16223 Static
16224 \end_layout
16225
16226 \end_inset
16227
16228  means the label is simply what is declared as 
16229 \begin_inset Flex Code
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 LabelString
16234 \end_layout
16235
16236 \end_inset
16237
16238 .
16239  This will be displayed 
16240 \begin_inset Quotes eld
16241 \end_inset
16242
16243 inline
16244 \begin_inset Quotes erd
16245 \end_inset
16246
16247 ,
16248  at the beginning of the paragraph.
16249  If the 
16250 \begin_inset Flex Code
16251 status collapsed
16252
16253 \begin_layout Plain Layout
16254 LatexType
16255 \end_layout
16256
16257 \end_inset
16258
16259  is 
16260 \begin_inset Flex Code
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264 Environment
16265 \end_layout
16266
16267 \end_inset
16268
16269 ,
16270  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
16271 \begin_inset Flex Code
16272 status collapsed
16273
16274 \begin_layout Plain Layout
16275 Style
16276 \end_layout
16277
16278 \end_inset
16279
16280 .
16281 \end_layout
16282
16283 \begin_layout Description
16284 \begin_inset Flex Code
16285 status collapsed
16286
16287 \begin_layout Plain Layout
16288 Above
16289 \end_layout
16290
16291 \end_inset
16292
16293
16294 \begin_inset space ~
16295 \end_inset
16296
16297 and
16298 \begin_inset space ~
16299 \end_inset
16300
16301
16302 \begin_inset Flex Code
16303 status collapsed
16304
16305 \begin_layout Plain Layout
16306 Centered
16307 \end_layout
16308
16309 \end_inset
16310
16311  are special cases of 
16312 \begin_inset Flex Code
16313 status collapsed
16314
16315 \begin_layout Plain Layout
16316 Static
16317 \end_layout
16318
16319 \end_inset
16320
16321 .
16322  The label will be printed above the paragraph either at the beginning of the line or centered.
16323 \end_layout
16324
16325 \begin_layout Description
16326 \begin_inset Flex Code
16327 status collapsed
16328
16329 \begin_layout Plain Layout
16330 Sensitive
16331 \end_layout
16332
16333 \end_inset
16334
16335  is a special case for the caption-labels 
16336 \begin_inset Quotes eld
16337 \end_inset
16338
16339 Figure
16340 \begin_inset Quotes erd
16341 \end_inset
16342
16343  and 
16344 \begin_inset Quotes eld
16345 \end_inset
16346
16347 Table
16348 \begin_inset Quotes erd
16349 \end_inset
16350
16351 .
16352 \begin_inset Newline newline
16353 \end_inset
16354
16355
16356 \begin_inset Flex Code
16357 status collapsed
16358
16359 \begin_layout Plain Layout
16360 Sensitive
16361 \end_layout
16362
16363 \end_inset
16364
16365  means the (hardcoded) label string depends on the kind of float:
16366  It is hardcoded to be `FloatType N',
16367  where N is the value of the counter associated with the float.
16368  For the case that a caption is inserted outside of a float the 
16369 \begin_inset Flex Code
16370 status collapsed
16371
16372 \begin_layout Plain Layout
16373 LabelString
16374 \end_layout
16375
16376 \end_inset
16377
16378  will appear as 
16379 \begin_inset Quotes eld
16380 \end_inset
16381
16382 Senseless!
16383 \begin_inset Quotes erd
16384 \end_inset
16385
16386 .
16387 \end_layout
16388
16389 \begin_layout Description
16390 \begin_inset Flex Code
16391 status collapsed
16392
16393 \begin_layout Plain Layout
16394 Enumerate
16395 \end_layout
16396
16397 \end_inset
16398
16399  produces the usual sort of enumeration labels.
16400  The number type needs to be set in the 
16401 \family sans
16402 Counter
16403 \family default
16404 ,
16405  see 
16406 \begin_inset CommandInset ref
16407 LatexCommand ref
16408 reference "subsec:Counters"
16409 nolink "false"
16410
16411 \end_inset
16412
16413 .
16414 \end_layout
16415
16416 \begin_layout Description
16417 \begin_inset Flex Code
16418 status collapsed
16419
16420 \begin_layout Plain Layout
16421 Itemize
16422 \end_layout
16423
16424 \end_inset
16425
16426  produces various bullets at the different levels.
16427  The bullet types displayed can be set via 
16428 \begin_inset Flex Noun
16429 status collapsed
16430
16431 \begin_layout Plain Layout
16432 Document\SpecialChar menuseparator
16433 Settings\SpecialChar menuseparator
16434 Bullets
16435 \end_layout
16436
16437 \end_inset
16438
16439 .
16440 \end_layout
16441
16442 \begin_layout Description
16443 \begin_inset Flex Code
16444 status collapsed
16445
16446 \begin_layout Plain Layout
16447 Bibliography
16448 \end_layout
16449
16450 \end_inset
16451
16452  should be used only with 
16453 \begin_inset Flex Code
16454 status collapsed
16455
16456 \begin_layout Plain Layout
16457 LatexType BibEnvironment
16458 \end_layout
16459
16460 \end_inset
16461
16462 .
16463 \end_layout
16464
16465 \end_deeper
16466 \begin_layout Description
16467 \begin_inset Flex Code
16468 status collapsed
16469
16470 \begin_layout Plain Layout
16471 LangPreamble
16472 \end_layout
16473
16474 \end_inset
16475
16476  Note that this will completely override any prior 
16477 \begin_inset Flex Code
16478 status collapsed
16479
16480 \begin_layout Plain Layout
16481 LangPreamble
16482 \end_layout
16483
16484 \end_inset
16485
16486  declaration for this style.
16487  Must end with 
16488 \begin_inset Quotes eld
16489 \end_inset
16490
16491
16492 \begin_inset Flex Code
16493 status collapsed
16494
16495 \begin_layout Plain Layout
16496 EndLangPreamble
16497 \end_layout
16498
16499 \end_inset
16500
16501
16502 \begin_inset Quotes erd
16503 \end_inset
16504
16505 .
16506  See 
16507 \begin_inset CommandInset ref
16508 LatexCommand ref
16509 reference "subsec:I18n"
16510 nolink "false"
16511
16512 \end_inset
16513
16514  for details on its use.
16515 \end_layout
16516
16517 \begin_layout Description
16518 \begin_inset Flex Code
16519 status collapsed
16520
16521 \begin_layout Plain Layout
16522 LatexName
16523 \end_layout
16524
16525 \end_inset
16526
16527  [
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532 <name>
16533 \end_layout
16534
16535 \end_inset
16536
16537 ] The name of the corresponding \SpecialChar LaTeX
16538  stuff.
16539  Either the environment or command name.
16540 \end_layout
16541
16542 \begin_layout Description
16543 \begin_inset Flex Code
16544 status collapsed
16545
16546 \begin_layout Plain Layout
16547 LatexParam
16548 \end_layout
16549
16550 \end_inset
16551
16552  [
16553 \begin_inset Flex Code
16554 status collapsed
16555
16556 \begin_layout Plain Layout
16557 <parameter>
16558 \end_layout
16559
16560 \end_inset
16561
16562 ] An optional parameter for the corresponding 
16563 \begin_inset Flex Code
16564 status collapsed
16565
16566 \begin_layout Plain Layout
16567 LatexName
16568 \end_layout
16569
16570 \end_inset
16571
16572  stuff.
16573  This parameter cannot be changed from within \SpecialChar LyX
16574  (use 
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 Argument
16580 \end_layout
16581
16582 \end_inset
16583
16584  for customizable parameters).
16585  This will be output as is after all \SpecialChar LaTeX
16586  
16587 \begin_inset Flex Code
16588 status collapsed
16589
16590 \begin_layout Plain Layout
16591 Argument
16592 \end_layout
16593
16594 \end_inset
16595
16596 s.
16597 \end_layout
16598
16599 \begin_layout Description
16600 \begin_inset Flex Code
16601 status collapsed
16602
16603 \begin_layout Plain Layout
16604 LatexType
16605 \end_layout
16606
16607 \end_inset
16608
16609  [
16610 \begin_inset Flex Code
16611 status collapsed
16612
16613 \begin_layout Plain Layout
16614
16615 \emph on
16616 Paragraph
16617 \emph default
16618 ,
16619  Command,
16620  Environment,
16621  Item_Environment,
16622 \begin_inset Newline newline
16623 \end_inset
16624
16625 List_Environment,
16626  Bib_Environment
16627 \end_layout
16628
16629 \end_inset
16630
16631 ] How the style should be translated into \SpecialChar LaTeX
16632 .
16633 \begin_inset Foot
16634 status collapsed
16635
16636 \begin_layout Plain Layout
16637 \begin_inset Flex Code
16638 status collapsed
16639
16640 \begin_layout Plain Layout
16641 LatexType
16642 \end_layout
16643
16644 \end_inset
16645
16646  is perhaps a bit misleading,
16647  since these rules apply to SGML classes,
16648  too.
16649  Visit the SGML class files for specific examples.
16650 \end_layout
16651
16652 \end_inset
16653
16654
16655 \end_layout
16656
16657 \begin_deeper
16658 \begin_layout Description
16659 \begin_inset Flex Code
16660 status collapsed
16661
16662 \begin_layout Plain Layout
16663 Paragraph
16664 \end_layout
16665
16666 \end_inset
16667
16668  means nothing special.
16669 \end_layout
16670
16671 \begin_layout Description
16672 \begin_inset Flex Code
16673 status collapsed
16674
16675 \begin_layout Plain Layout
16676 Command
16677 \end_layout
16678
16679 \end_inset
16680
16681  means 
16682 \begin_inset Flex Code
16683 status collapsed
16684
16685 \begin_layout Plain Layout
16686
16687 \backslash
16688
16689 \emph on
16690 LatexName
16691 \emph default
16692 {\SpecialChar ldots
16693 }
16694 \end_layout
16695
16696 \end_inset
16697
16698 .
16699 \end_layout
16700
16701 \begin_layout Description
16702 \begin_inset Flex Code
16703 status collapsed
16704
16705 \begin_layout Plain Layout
16706 Environment
16707 \end_layout
16708
16709 \end_inset
16710
16711  means 
16712 \begin_inset Flex Code
16713 status collapsed
16714
16715 \begin_layout Plain Layout
16716
16717 \backslash
16718 begin{
16719 \emph on
16720 LatexName
16721 \emph default
16722 }\SpecialChar ldots
16723
16724 \backslash
16725 end{
16726 \emph on
16727 LatexName
16728 \emph default
16729 }
16730 \end_layout
16731
16732 \end_inset
16733
16734 .
16735  
16736 \end_layout
16737
16738 \begin_layout Description
16739 \begin_inset Flex Code
16740 status collapsed
16741
16742 \begin_layout Plain Layout
16743 Item_Environment
16744 \end_layout
16745
16746 \end_inset
16747
16748  is the same as 
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753 Environment
16754 \end_layout
16755
16756 \end_inset
16757
16758 ,
16759  except that an 
16760 \begin_inset Flex Code
16761 status collapsed
16762
16763 \begin_layout Plain Layout
16764
16765 \backslash
16766 item
16767 \end_layout
16768
16769 \end_inset
16770
16771  is generated for each paragraph of this environment.
16772  
16773 \end_layout
16774
16775 \begin_layout Description
16776 \begin_inset Flex Code
16777 status collapsed
16778
16779 \begin_layout Plain Layout
16780 List_Environment
16781 \end_layout
16782
16783 \end_inset
16784
16785  is the same as 
16786 \begin_inset Flex Code
16787 status collapsed
16788
16789 \begin_layout Plain Layout
16790 Item_Environment
16791 \end_layout
16792
16793 \end_inset
16794
16795 ,
16796  except that
16797 \begin_inset Newline newline
16798 \end_inset
16799
16800
16801 \begin_inset Flex Code
16802 status collapsed
16803
16804 \begin_layout Plain Layout
16805 LabelWidthString
16806 \end_layout
16807
16808 \end_inset
16809
16810  is passed as an argument to the environment.
16811 \begin_inset Newline newline
16812 \end_inset
16813
16814
16815 \begin_inset Flex Code
16816 status collapsed
16817
16818 \begin_layout Plain Layout
16819 LabelWidthString
16820 \end_layout
16821
16822 \end_inset
16823
16824  can be defined in the 
16825 \begin_inset Flex Noun
16826 status collapsed
16827
16828 \begin_layout Plain Layout
16829 Edit\SpecialChar menuseparator
16830 Paragraph
16831 \begin_inset space ~
16832 \end_inset
16833
16834 settings
16835 \end_layout
16836
16837 \end_inset
16838
16839  dialog.
16840 \end_layout
16841
16842 \begin_layout Description
16843 \begin_inset Flex Code
16844 status collapsed
16845
16846 \begin_layout Plain Layout
16847 Bib_Environment
16848 \end_layout
16849
16850 \end_inset
16851
16852  is like 
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857 Environment
16858 \end_layout
16859
16860 \end_inset
16861
16862  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
16863 \begin_inset Newline newline
16864 \end_inset
16865
16866
16867 \begin_inset Flex Code
16868 status collapsed
16869
16870 \begin_layout Plain Layout
16871
16872 \backslash
16873 begin{thebibliography}{99}
16874 \end_layout
16875
16876 \end_inset
16877
16878 .
16879  It is therefore only useful for bibliography environments.
16880  The default longest label 
16881 \begin_inset Quotes eld
16882 \end_inset
16883
16884 99
16885 \begin_inset Quotes erd
16886 \end_inset
16887
16888  can be changed by the user in the paragraph settings of a bibliography item.
16889 \end_layout
16890
16891 \begin_layout Standard
16892 Putting the last few things together,
16893  the \SpecialChar LaTeX
16894  output will be either:
16895  
16896 \end_layout
16897
16898 \begin_layout LyX-Code
16899
16900 \backslash
16901 LatexName[LatexParam]{\SpecialChar ldots
16902 }
16903 \end_layout
16904
16905 \begin_layout Standard
16906 or:
16907  
16908 \end_layout
16909
16910 \begin_layout LyX-Code
16911
16912 \backslash
16913 begin{LatexName}[LatexParam] \SpecialChar ldots
16914  
16915 \backslash
16916 end{LatexName}.
16917 \end_layout
16918
16919 \begin_layout Standard
16920 depending upon the \SpecialChar LaTeX
16921  type.
16922 \end_layout
16923
16924 \end_deeper
16925 \begin_layout Description
16926 \begin_inset Flex Code
16927 status collapsed
16928
16929 \begin_layout Plain Layout
16930 LeftDelim
16931 \end_layout
16932
16933 \end_inset
16934
16935  [
16936 \begin_inset Flex Code
16937 status collapsed
16938
16939 \begin_layout Plain Layout
16940 string
16941 \end_layout
16942
16943 \end_inset
16944
16945 ] A string that is put at the beginning of the style content.
16946  A line break in the output can be indicated by 
16947 \begin_inset Flex Code
16948 status collapsed
16949
16950 \begin_layout Plain Layout
16951 <br/>
16952 \end_layout
16953
16954 \end_inset
16955
16956 .
16957 \end_layout
16958
16959 \begin_layout Description
16960 \begin_inset Flex Code
16961 status collapsed
16962
16963 \begin_layout Plain Layout
16964 LeftMargin
16965 \end_layout
16966
16967 \end_inset
16968
16969  [
16970 \begin_inset Flex Code
16971 status collapsed
16972
16973 \begin_layout Plain Layout
16974 string=""
16975 \end_layout
16976
16977 \end_inset
16978
16979 ] If you put styles into environments,
16980  the different 
16981 \begin_inset Flex Code
16982 status collapsed
16983
16984 \begin_layout Plain Layout
16985 LeftMargin
16986 \end_layout
16987
16988 \end_inset
16989
16990  are not simply added,
16991  but added with a factor 
16992 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16993 \end_inset
16994
16995 .
16996  Note that this parameter is also used when 
16997 \begin_inset Flex Code
16998 status collapsed
16999
17000 \begin_layout Plain Layout
17001 Margin
17002 \end_layout
17003
17004 \end_inset
17005
17006  is defined as 
17007 \begin_inset Flex Code
17008 status collapsed
17009
17010 \begin_layout Plain Layout
17011 Manual
17012 \end_layout
17013
17014 \end_inset
17015
17016  or 
17017 \begin_inset Flex Code
17018 status collapsed
17019
17020 \begin_layout Plain Layout
17021 Dynamic
17022 \end_layout
17023
17024 \end_inset
17025
17026 .
17027  Then it is added to the manual or dynamic margin.
17028 \begin_inset Newline newline
17029 \end_inset
17030
17031 For example 
17032 \begin_inset Quotes eld
17033 \end_inset
17034
17035
17036 \begin_inset Flex Code
17037 status collapsed
17038
17039 \begin_layout Plain Layout
17040 MM
17041 \end_layout
17042
17043 \end_inset
17044
17045
17046 \begin_inset Quotes erd
17047 \end_inset
17048
17049  means that the paragraph is indented with the width of 
17050 \begin_inset Quotes eld
17051 \end_inset
17052
17053
17054 \begin_inset Flex Code
17055 status collapsed
17056
17057 \begin_layout Plain Layout
17058 MM
17059 \end_layout
17060
17061 \end_inset
17062
17063
17064 \begin_inset Quotes erd
17065 \end_inset
17066
17067  in the normal font.
17068  You can get a negative width by prefixing the string with 
17069 \begin_inset Quotes eld
17070 \end_inset
17071
17072
17073 \begin_inset Flex Code
17074 status collapsed
17075
17076 \begin_layout Plain Layout
17077 -
17078 \end_layout
17079
17080 \end_inset
17081
17082
17083 \begin_inset Quotes erd
17084 \end_inset
17085
17086 .
17087  This way was chosen so that the look is the same with each used screen font.
17088 \end_layout
17089
17090 \begin_layout Description
17091 \begin_inset Flex Code
17092 status collapsed
17093
17094 \begin_layout Plain Layout
17095 Margin
17096 \end_layout
17097
17098 \end_inset
17099
17100  [
17101 \begin_inset Flex Code
17102 status collapsed
17103
17104 \begin_layout Plain Layout
17105
17106 \emph on
17107 Static
17108 \emph default
17109 ,
17110  Manual,
17111  Dynamic,
17112  First_Dynamic,
17113  Right_Address_Box
17114 \end_layout
17115
17116 \end_inset
17117
17118
17119 \begin_inset Newline newline
17120 \end_inset
17121
17122 The kind of margin that the style has on the left side.
17123 \end_layout
17124
17125 \begin_deeper
17126 \begin_layout Description
17127 \begin_inset Flex Code
17128 status collapsed
17129
17130 \begin_layout Plain Layout
17131 Static
17132 \end_layout
17133
17134 \end_inset
17135
17136  just means a fixed margin.
17137 \end_layout
17138
17139 \begin_layout Description
17140 \begin_inset Flex Code
17141 status collapsed
17142
17143 \begin_layout Plain Layout
17144 Manual
17145 \end_layout
17146
17147 \end_inset
17148
17149  means that the left margin depends on the string entered in the 
17150 \begin_inset Flex Noun
17151 status collapsed
17152
17153 \begin_layout Plain Layout
17154 Edit\SpecialChar menuseparator
17155 Paragraph
17156 \begin_inset space ~
17157 \end_inset
17158
17159 Settings
17160 \end_layout
17161
17162 \end_inset
17163
17164  dialog.
17165  This is used to typeset nice lists without tabulators.
17166 \end_layout
17167
17168 \begin_layout Description
17169 \begin_inset Flex Code
17170 status collapsed
17171
17172 \begin_layout Plain Layout
17173 Dynamic
17174 \end_layout
17175
17176 \end_inset
17177
17178  means that the margin depends on the size of the label.
17179  This is used for automatic enumerated headlines.
17180  It is obvious that the headline 
17181 \begin_inset Quotes eld
17182 \end_inset
17183
17184 5.4.3.2.1 Very long headline
17185 \begin_inset Quotes erd
17186 \end_inset
17187
17188  must have a wider left margin (as wide as 
17189 \begin_inset Quotes eld
17190 \end_inset
17191
17192 5.4.3.2.1
17193 \begin_inset Quotes erd
17194 \end_inset
17195
17196  plus the space) than 
17197 \begin_inset Quotes eld
17198 \end_inset
17199
17200 3.2 Very long headline
17201 \begin_inset Quotes erd
17202 \end_inset
17203
17204 ,
17205  even if standard 
17206 \begin_inset Quotes eld
17207 \end_inset
17208
17209 word processors
17210 \begin_inset Quotes erd
17211 \end_inset
17212
17213  are not able to do this.
17214 \end_layout
17215
17216 \begin_layout Description
17217 \begin_inset Flex Code
17218 status collapsed
17219
17220 \begin_layout Plain Layout
17221 First_Dynamic
17222 \end_layout
17223
17224 \end_inset
17225
17226  is similar,
17227  but only the very first row of the paragraph is dynamic,
17228  while the others are static;
17229  this is used,
17230  for example,
17231  for descriptions.
17232 \end_layout
17233
17234 \begin_layout Description
17235 \begin_inset Flex Code
17236 status collapsed
17237
17238 \begin_layout Plain Layout
17239 Right_Address_Box
17240 \end_layout
17241
17242 \end_inset
17243
17244  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
17245  This is used to typeset an address on the right edge of the page.
17246 \end_layout
17247
17248 \end_deeper
17249 \begin_layout Description
17250 \begin_inset Flex Code
17251 status collapsed
17252
17253 \begin_layout Plain Layout
17254 NeedProtect
17255 \end_layout
17256
17257 \end_inset
17258
17259  [
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264
17265 \emph on
17266 0
17267 \end_layout
17268
17269 \end_inset
17270
17271 ,
17272 \begin_inset space \thinspace{}
17273 \end_inset
17274
17275
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280 1
17281 \end_layout
17282
17283 \end_inset
17284
17285 ] Whether fragile commands in this style should be 
17286 \begin_inset Flex Code
17287 status collapsed
17288
17289 \begin_layout Plain Layout
17290
17291 \backslash
17292 protect
17293 \end_layout
17294
17295 \end_inset
17296
17297 'ed.
17298  (Note:
17299  This is 
17300 \emph on
17301 not
17302 \emph default
17303  whether this command should itself be protected.)
17304 \change_inserted -712698321 1523696949
17305
17306 \end_layout
17307
17308 \begin_layout Description
17309
17310 \change_inserted -712698321 1552395557
17311 \begin_inset Flex Code
17312 status collapsed
17313
17314 \begin_layout Plain Layout
17315
17316 \change_inserted -712698321 1523696950
17317 NeedCProtect
17318 \change_unchanged
17319
17320 \end_layout
17321
17322 \end_inset
17323
17324  [
17325 \begin_inset Flex Code
17326 status collapsed
17327
17328 \begin_layout Plain Layout
17329
17330 \change_inserted -712698321 1523696950
17331
17332 \emph on
17333 0
17334 \change_unchanged
17335
17336 \end_layout
17337
17338 \end_inset
17339
17340 ,
17341 \begin_inset space \thinspace{}
17342 \end_inset
17343
17344
17345 \begin_inset Flex Code
17346 status collapsed
17347
17348 \begin_layout Plain Layout
17349
17350 \change_inserted -712698321 1523696950
17351 1
17352 \change_unchanged
17353
17354 \end_layout
17355
17356 \end_inset
17357
17358 ] This causes macros that contain this layout to be protected with 
17359 \begin_inset Flex Code
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363
17364 \change_inserted -712698321 1523696950
17365
17366 \backslash
17367 cprotect
17368 \change_unchanged
17369
17370 \end_layout
17371
17372 \end_inset
17373
17374  (cf.
17375  package 
17376 \family sans
17377 cprotect
17378 \family default
17379 ) if necessary and thus allows (some) verbatim stuff in macros.
17380 \end_layout
17381
17382 \begin_layout Description
17383
17384 \change_inserted -712698321 1552395844
17385 \begin_inset Flex Code
17386 status collapsed
17387
17388 \begin_layout Plain Layout
17389
17390 \change_inserted -712698321 1552395561
17391 NeedMBoxProtect
17392 \change_unchanged
17393
17394 \end_layout
17395
17396 \end_inset
17397
17398  [
17399 \begin_inset Flex Code
17400 status collapsed
17401
17402 \begin_layout Plain Layout
17403
17404 \change_inserted -712698321 1552395557
17405
17406 \emph on
17407 0
17408 \change_unchanged
17409
17410 \end_layout
17411
17412 \end_inset
17413
17414 ,
17415 \begin_inset space \thinspace{}
17416 \end_inset
17417
17418
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423
17424 \change_inserted -712698321 1552395557
17425 1
17426 \change_unchanged
17427
17428 \end_layout
17429
17430 \end_inset
17431
17432 ] Whether specific commands in this style (such as 
17433 \begin_inset Flex Code
17434 status collapsed
17435
17436 \begin_layout Plain Layout
17437
17438 \change_inserted -712698321 1552395655
17439
17440 \backslash
17441 cite
17442 \change_unchanged
17443
17444 \end_layout
17445
17446 \end_inset
17447
17448  and 
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453
17454 \change_inserted -712698321 1552395661
17455
17456 \backslash
17457 ref
17458 \change_unchanged
17459
17460 \end_layout
17461
17462 \end_inset
17463
17464 ) should be protected in an 
17465 \begin_inset Flex Code
17466 status collapsed
17467
17468 \begin_layout Plain Layout
17469
17470 \change_inserted -712698321 1552395631
17471
17472 \backslash
17473 mbox
17474 \change_unchanged
17475
17476 \end_layout
17477
17478 \end_inset
17479
17480 .
17481  This is particularly needed for styles that draw on 
17482 \family sans
17483 ulem
17484 \family default
17485  or 
17486 \family sans
17487 soul
17488 \family default
17489  commands which parse their content in complex ways.
17490 \change_unchanged
17491
17492 \end_layout
17493
17494 \begin_layout Description
17495 \begin_inset Flex Code
17496 status collapsed
17497
17498 \begin_layout Plain Layout
17499 Newline
17500 \end_layout
17501
17502 \end_inset
17503
17504  [
17505 \begin_inset Flex Code
17506 status collapsed
17507
17508 \begin_layout Plain Layout
17509 0
17510 \end_layout
17511
17512 \end_inset
17513
17514 ,
17515 \begin_inset space \thinspace{}
17516 \end_inset
17517
17518
17519 \begin_inset Flex Code
17520 status collapsed
17521
17522 \begin_layout Plain Layout
17523
17524 \emph on
17525 1
17526 \end_layout
17527
17528 \end_inset
17529
17530 ] Whether newlines are translated into \SpecialChar LaTeX
17531  newlines (
17532 \begin_inset Flex Code
17533 status collapsed
17534
17535 \begin_layout Plain Layout
17536
17537 \backslash
17538
17539 \backslash
17540
17541 \end_layout
17542
17543 \end_inset
17544
17545 ) or not.
17546  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
17547  editing inside \SpecialChar LyX
17548 .
17549 \end_layout
17550
17551 \begin_layout Description
17552 \begin_inset Flex Code
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556 NextNoIndent
17557 \end_layout
17558
17559 \end_inset
17560
17561  [
17562 \begin_inset Flex Code
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566
17567 \emph on
17568 0
17569 \end_layout
17570
17571 \end_inset
17572
17573 ,
17574 \begin_inset space \thinspace{}
17575 \end_inset
17576
17577
17578 \begin_inset Flex Code
17579 status collapsed
17580
17581 \begin_layout Plain Layout
17582 1
17583 \end_layout
17584
17585 \end_inset
17586
17587 ] If set to true,
17588  and if 
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 DefaultStyle
17594 \end_layout
17595
17596 \end_inset
17597
17598  (usually 
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 Standard
17604 \end_layout
17605
17606 \end_inset
17607
17608 ) paragraphs are being indented,
17609  then the indentation of such a paragraph following one of this type will be suppressed.
17610  (So this will not affect the display of non-default paragraphs.)
17611 \end_layout
17612
17613 \begin_layout Description
17614 \begin_inset Flex Code
17615 status collapsed
17616
17617 \begin_layout Plain Layout
17618 ObsoletedBy
17619 \end_layout
17620
17621 \end_inset
17622
17623  [
17624 \begin_inset Flex Code
17625 status collapsed
17626
17627 \begin_layout Plain Layout
17628 <name>
17629 \end_layout
17630
17631 \end_inset
17632
17633 ] Name of a style that has replaced this style.
17634  This is used to rename a style,
17635  while keeping backward compatibility.
17636 \end_layout
17637
17638 \begin_layout Description
17639 \begin_inset Flex Code
17640 status collapsed
17641
17642 \begin_layout Plain Layout
17643 ParagraphGroup
17644 \end_layout
17645
17646 \end_inset
17647
17648  [
17649 \begin_inset Flex Code
17650 status collapsed
17651
17652 \begin_layout Plain Layout
17653 0
17654 \end_layout
17655
17656 \end_inset
17657
17658 ,
17659 \begin_inset space \thinspace{}
17660 \end_inset
17661
17662
17663 \begin_inset Flex Code
17664 status collapsed
17665
17666 \begin_layout Plain Layout
17667 1
17668 \end_layout
17669
17670 \end_inset
17671
17672 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
17673  This has the effect that the 
17674 \begin_inset Flex Code
17675 status collapsed
17676
17677 \begin_layout Plain Layout
17678 GuiLabel
17679 \end_layout
17680
17681 \end_inset
17682
17683  is only printed once before such a group.
17684  By default,
17685  this is true for 
17686 \begin_inset Flex Code
17687 status collapsed
17688
17689 \begin_layout Plain Layout
17690 LaTeXType
17691 \end_layout
17692
17693 \end_inset
17694
17695  
17696 \begin_inset Flex Code
17697 status collapsed
17698
17699 \begin_layout Plain Layout
17700 Environment
17701 \end_layout
17702
17703 \end_inset
17704
17705  and 
17706 \begin_inset Flex Code
17707 status collapsed
17708
17709 \begin_layout Plain Layout
17710 Bib_Environment
17711 \end_layout
17712
17713 \end_inset
17714
17715  and false for all other types.
17716 \end_layout
17717
17718 \begin_layout Description
17719 \begin_inset Flex Code
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723 ParbreakIsNewline
17724 \end_layout
17725
17726 \end_inset
17727
17728  [
17729 \begin_inset Flex Code
17730 status collapsed
17731
17732 \begin_layout Plain Layout
17733
17734 \emph on
17735 0
17736 \end_layout
17737
17738 \end_inset
17739
17740 ,
17741 \begin_inset space \thinspace{}
17742 \end_inset
17743
17744
17745 \begin_inset Flex Code
17746 status collapsed
17747
17748 \begin_layout Plain Layout
17749 1
17750 \end_layout
17751
17752 \end_inset
17753
17754 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17755  output,
17756  but only by a line break;
17757  together with 
17758 \begin_inset Flex Code
17759 status collapsed
17760
17761 \begin_layout Plain Layout
17762 PassThru 1
17763 \end_layout
17764
17765 \end_inset
17766
17767 ,
17768  this allows to emulate a plain text editor (like the ERT inset).
17769 \end_layout
17770
17771 \begin_layout Description
17772 \begin_inset Flex Code
17773 status collapsed
17774
17775 \begin_layout Plain Layout
17776 ParIndent
17777 \end_layout
17778
17779 \end_inset
17780
17781  [
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786 string=""
17787 \end_layout
17788
17789 \end_inset
17790
17791 ] The indent of the very first line of a paragraph.
17792  The
17793 \begin_inset Newline newline
17794 \end_inset
17795
17796
17797 \begin_inset Flex Code
17798 status collapsed
17799
17800 \begin_layout Plain Layout
17801 Parindent
17802 \end_layout
17803
17804 \end_inset
17805
17806  will be fixed for a certain style.
17807  The exception is the default style,
17808  since the indentation for these paragraphs can be prohibited with 
17809 \begin_inset Flex Code
17810 status collapsed
17811
17812 \begin_layout Plain Layout
17813 NextNoIndent
17814 \end_layout
17815
17816 \end_inset
17817
17818 .
17819  Also,
17820  
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825 Standard
17826 \end_layout
17827
17828 \end_inset
17829
17830  style paragraphs inside environments use the 
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835 Parindent
17836 \end_layout
17837
17838 \end_inset
17839
17840  of the environment,
17841  not their native one.
17842  For example,
17843  
17844 \begin_inset Flex Code
17845 status collapsed
17846
17847 \begin_layout Plain Layout
17848 Standard
17849 \end_layout
17850
17851 \end_inset
17852
17853  paragraphs inside an enumeration are not indented.
17854 \end_layout
17855
17856 \begin_layout Description
17857 \begin_inset Flex Code
17858 status collapsed
17859
17860 \begin_layout Plain Layout
17861 ParSep
17862 \end_layout
17863
17864 \end_inset
17865
17866  [
17867 \begin_inset Flex Code
17868 status collapsed
17869
17870 \begin_layout Plain Layout
17871 float=0
17872 \end_layout
17873
17874 \end_inset
17875
17876 ] The vertical space between two paragraphs of this style.
17877 \end_layout
17878
17879 \begin_layout Description
17880 \begin_inset Flex Code
17881 status collapsed
17882
17883 \begin_layout Plain Layout
17884 Parskip
17885 \end_layout
17886
17887 \end_inset
17888
17889  [
17890 \begin_inset Flex Code
17891 status collapsed
17892
17893 \begin_layout Plain Layout
17894 float=0
17895 \end_layout
17896
17897 \end_inset
17898
17899 ] \SpecialChar LyX
17900  allows the user to choose either 
17901 \begin_inset Quotes eld
17902 \end_inset
17903
17904 indent
17905 \begin_inset Quotes erd
17906 \end_inset
17907
17908  or 
17909 \begin_inset Quotes eld
17910 \end_inset
17911
17912 skip
17913 \begin_inset Quotes erd
17914 \end_inset
17915
17916  to separate paragraphs.
17917  When 
17918 \begin_inset Quotes eld
17919 \end_inset
17920
17921 indent
17922 \begin_inset Quotes erd
17923 \end_inset
17924
17925  is chosen,
17926  
17927 \begin_inset Flex Code
17928 status collapsed
17929
17930 \begin_layout Plain Layout
17931 Parskip
17932 \end_layout
17933
17934 \end_inset
17935
17936  is ignored.
17937  When 
17938 \begin_inset Quotes eld
17939 \end_inset
17940
17941 skip
17942 \begin_inset Quotes erd
17943 \end_inset
17944
17945  is chosen,
17946  
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 ParIndent
17952 \end_layout
17953
17954 \end_inset
17955
17956  is ignored and all paragraphs are separated by the 
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 Parskip
17962 \end_layout
17963
17964 \end_inset
17965
17966  argument.
17967  The vertical space is calculated with 
17968 \begin_inset Flex Code
17969 status collapsed
17970
17971 \begin_layout Plain Layout
17972 Parskip
17973 \begin_inset space ~
17974 \end_inset
17975
17976 * DefaultHeight
17977 \end_layout
17978
17979 \end_inset
17980
17981  where 
17982 \begin_inset Flex Code
17983 status collapsed
17984
17985 \begin_layout Plain Layout
17986 DefaultHeight
17987 \end_layout
17988
17989 \end_inset
17990
17991  is the height of a row with the normal font.
17992  This way,
17993  the look stays the same with different screen fonts.
17994 \end_layout
17995
17996 \begin_layout Description
17997 \begin_inset Flex Code
17998 status collapsed
17999
18000 \begin_layout Plain Layout
18001 PassThru
18002 \end_layout
18003
18004 \end_inset
18005
18006  [
18007 \begin_inset Flex Code
18008 status collapsed
18009
18010 \begin_layout Plain Layout
18011
18012 \emph on
18013 0
18014 \end_layout
18015
18016 \end_inset
18017
18018 ,
18019 \begin_inset space \thinspace{}
18020 \end_inset
18021
18022
18023 \begin_inset Flex Code
18024 status collapsed
18025
18026 \begin_layout Plain Layout
18027 1
18028 \end_layout
18029
18030 \end_inset
18031
18032 ] Whether the contents of this paragraph should be output in raw form,
18033  meaning without special translations that \SpecialChar LaTeX
18034  would require.
18035 \end_layout
18036
18037 \begin_layout Description
18038 \begin_inset Flex Code
18039 status collapsed
18040
18041 \begin_layout Plain Layout
18042 PassThruChars
18043 \end_layout
18044
18045 \end_inset
18046
18047  [
18048 \begin_inset Flex Code
18049 status collapsed
18050
18051 \begin_layout Plain Layout
18052 string
18053 \end_layout
18054
18055 \end_inset
18056
18057 ]
18058 \family typewriter
18059  
18060 \family default
18061 Defines individual characters that should be output in raw form,
18062  meaning without special translations that \SpecialChar LaTeX
18063  would require.
18064 \end_layout
18065
18066 \begin_layout Description
18067 \begin_inset Flex Code
18068 status collapsed
18069
18070 \begin_layout Plain Layout
18071 Preamble
18072 \end_layout
18073
18074 \end_inset
18075
18076  Information to be included in the \SpecialChar LaTeX
18077  preamble when this style is used.
18078  Used to define macros,
18079  load packages,
18080  etc.,
18081  required by this particular style.
18082  Must end with 
18083 \begin_inset Quotes eld
18084 \end_inset
18085
18086
18087 \begin_inset Flex Code
18088 status collapsed
18089
18090 \begin_layout Plain Layout
18091 EndPreamble
18092 \end_layout
18093
18094 \end_inset
18095
18096
18097 \begin_inset Quotes erd
18098 \end_inset
18099
18100 .
18101 \end_layout
18102
18103 \begin_layout Description
18104 \begin_inset Flex Code
18105 status collapsed
18106
18107 \begin_layout Plain Layout
18108 RefPrefix
18109 \end_layout
18110
18111 \end_inset
18112
18113  [
18114 \begin_inset Flex Code
18115 status collapsed
18116
18117 \begin_layout Plain Layout
18118 string
18119 \end_layout
18120
18121 \end_inset
18122
18123 ] The prefix to use when creating labels referring to paragraphs of this type.
18124  This allows the use of formatted references.
18125 \end_layout
18126
18127 \begin_layout Description
18128 \begin_inset Flex Code
18129 status collapsed
18130
18131 \begin_layout Plain Layout
18132 Requires 
18133 \end_layout
18134
18135 \end_inset
18136
18137  [
18138 \begin_inset Flex Code
18139 status collapsed
18140
18141 \begin_layout Plain Layout
18142 string
18143 \end_layout
18144
18145 \end_inset
18146
18147 ] Whether the style requires the feature 
18148 \begin_inset Flex Code
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 string
18153 \end_layout
18154
18155 \end_inset
18156
18157  (see 
18158 \begin_inset CommandInset ref
18159 LatexCommand ref
18160 reference "chap:List-of-functions"
18161 nolink "false"
18162
18163 \end_inset
18164
18165  for the list of features).
18166  If you require a package with specific options,
18167  you can additionally use 
18168 \begin_inset Flex Code
18169 status collapsed
18170
18171 \begin_layout Plain Layout
18172 PackageOptions
18173 \end_layout
18174
18175 \end_inset
18176
18177  as a general text class parameter (see 
18178 \begin_inset CommandInset ref
18179 LatexCommand ref
18180 reference "subsec:General-text-class"
18181 nolink "false"
18182
18183 \end_inset
18184
18185 ).
18186 \end_layout
18187
18188 \begin_layout Description
18189 \begin_inset Flex Code
18190 status collapsed
18191
18192 \begin_layout Plain Layout
18193 ResetArgs
18194 \end_layout
18195
18196 \end_inset
18197
18198  [
18199 \begin_inset Flex Code
18200 status collapsed
18201
18202 \begin_layout Plain Layout
18203
18204 \emph on
18205 0
18206 \end_layout
18207
18208 \end_inset
18209
18210 ,
18211 \begin_inset Flex Code
18212 status collapsed
18213
18214 \begin_layout Plain Layout
18215 1
18216 \end_layout
18217
18218 \end_inset
18219
18220 ] Resets the \SpecialChar LaTeX
18221  arguments of this style (as defined via the 
18222 \begin_inset Flex Code
18223 status collapsed
18224
18225 \begin_layout Plain Layout
18226 Argument
18227 \end_layout
18228
18229 \end_inset
18230
18231  tag).
18232  This is useful if you have copied a style via 
18233 \begin_inset Flex Code
18234 status collapsed
18235
18236 \begin_layout Plain Layout
18237 CopyStyle
18238 \end_layout
18239
18240 \end_inset
18241
18242 ,
18243  but you do not want to inherit its (required and optional) arguments.
18244 \end_layout
18245
18246 \begin_layout Description
18247 \begin_inset Flex Code
18248 status collapsed
18249
18250 \begin_layout Plain Layout
18251 ResumeCounter
18252 \end_layout
18253
18254 \end_inset
18255
18256  [
18257 \begin_inset Flex Code
18258 status collapsed
18259
18260 \begin_layout Plain Layout
18261
18262 \emph on
18263 0
18264 \end_layout
18265
18266 \end_inset
18267
18268 ,
18269 \begin_inset Flex Code
18270 status collapsed
18271
18272 \begin_layout Plain Layout
18273 1
18274 \end_layout
18275
18276 \end_inset
18277
18278 ] Resumes a counter that is usually reset at each new sequence of layouts.
18279  This is currently only useful when 
18280 \begin_inset Flex Code
18281 status collapsed
18282
18283 \begin_layout Plain Layout
18284 LabelType
18285 \end_layout
18286
18287 \end_inset
18288
18289  is 
18290 \begin_inset Flex Code
18291 status collapsed
18292
18293 \begin_layout Plain Layout
18294 Enumerate
18295 \end_layout
18296
18297 \end_inset
18298
18299 .
18300 \end_layout
18301
18302 \begin_layout Description
18303 \begin_inset Flex Code
18304 status collapsed
18305
18306 \begin_layout Plain Layout
18307 RightDelim
18308 \end_layout
18309
18310 \end_inset
18311
18312  [
18313 \begin_inset Flex Code
18314 status collapsed
18315
18316 \begin_layout Plain Layout
18317 string
18318 \end_layout
18319
18320 \end_inset
18321
18322 ] A string that is put at the end of the layout content.
18323  A line break in the output can be indicated by 
18324 \begin_inset Flex Code
18325 status collapsed
18326
18327 \begin_layout Plain Layout
18328 <br/>
18329 \end_layout
18330
18331 \end_inset
18332
18333 .
18334 \end_layout
18335
18336 \begin_layout Description
18337 \begin_inset Flex Code
18338 status collapsed
18339
18340 \begin_layout Plain Layout
18341 RightMargin
18342 \end_layout
18343
18344 \end_inset
18345
18346  [
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351 string=""
18352 \end_layout
18353
18354 \end_inset
18355
18356 ] Similar to 
18357 \begin_inset Flex Code
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361 LeftMargin
18362 \end_layout
18363
18364 \end_inset
18365
18366 .
18367 \end_layout
18368
18369 \begin_layout Description
18370 \begin_inset Flex Code
18371 status collapsed
18372
18373 \begin_layout Plain Layout
18374 Spacing
18375 \end_layout
18376
18377 \end_inset
18378
18379  [
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384
18385 \emph on
18386 single
18387 \end_layout
18388
18389 \end_inset
18390
18391 ,
18392  
18393 \begin_inset Flex Code
18394 status collapsed
18395
18396 \begin_layout Plain Layout
18397 onehalf
18398 \end_layout
18399
18400 \end_inset
18401
18402 ,
18403  
18404 \begin_inset Flex Code
18405 status collapsed
18406
18407 \begin_layout Plain Layout
18408 double
18409 \end_layout
18410
18411 \end_inset
18412
18413 ,
18414  
18415 \begin_inset Flex Code
18416 status collapsed
18417
18418 \begin_layout Plain Layout
18419 other
18420 \begin_inset space ~
18421 \end_inset
18422
18423 <value>
18424 \end_layout
18425
18426 \end_inset
18427
18428 ] This defines what the default spacing should be in the style.
18429  The arguments 
18430 \begin_inset Flex Code
18431 status collapsed
18432
18433 \begin_layout Plain Layout
18434 single
18435 \end_layout
18436
18437 \end_inset
18438
18439 ,
18440  
18441 \begin_inset Flex Code
18442 status collapsed
18443
18444 \begin_layout Plain Layout
18445 onehalf
18446 \end_layout
18447
18448 \end_inset
18449
18450  and 
18451 \begin_inset Flex Code
18452 status collapsed
18453
18454 \begin_layout Plain Layout
18455 double
18456 \end_layout
18457
18458 \end_inset
18459
18460  correspond respectively to a multiplier value of 1,
18461  1.25 and 1.667.
18462  If you specify the argument 
18463 \begin_inset Flex Code
18464 status collapsed
18465
18466 \begin_layout Plain Layout
18467 other
18468 \end_layout
18469
18470 \end_inset
18471
18472 ,
18473  then you must also provide a value argument which will be the actual multiplier value.
18474  Note that,
18475  contrary to other parameters,
18476  
18477 \begin_inset Flex Code
18478 status collapsed
18479
18480 \begin_layout Plain Layout
18481 Spacing
18482 \end_layout
18483
18484 \end_inset
18485
18486  implies the generation of specific \SpecialChar LaTeX
18487  code,
18488  using the \SpecialChar LaTeX
18489  package 
18490 \family roman
18491
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496 setspace
18497 \end_layout
18498
18499 \end_inset
18500
18501 .
18502 \end_layout
18503
18504 \begin_layout Description
18505 \begin_inset Flex Code
18506 status collapsed
18507
18508 \begin_layout Plain Layout
18509 Spellcheck
18510 \end_layout
18511
18512 \end_inset
18513
18514  [
18515 \begin_inset Flex Code
18516 status collapsed
18517
18518 \begin_layout Plain Layout
18519 0
18520 \end_layout
18521
18522 \end_inset
18523
18524 ,
18525 \begin_inset space \thinspace{}
18526 \end_inset
18527
18528
18529 \begin_inset Flex Code
18530 status collapsed
18531
18532 \begin_layout Plain Layout
18533
18534 \emph on
18535 1
18536 \end_layout
18537
18538 \end_inset
18539
18540 ] Allow spell-checking paragraphs of this style.
18541  Default is true.
18542 \end_layout
18543
18544 \begin_layout Description
18545 \begin_inset Flex Code
18546 status collapsed
18547
18548 \begin_layout Plain Layout
18549 Step
18550 \change_deleted 731793113 1604355211
18551 Master
18552 \change_inserted 731793113 1604355212
18553 Parent
18554 \change_unchanged
18555 Counter
18556 \end_layout
18557
18558 \end_inset
18559
18560  [
18561 \begin_inset Flex Code
18562 status collapsed
18563
18564 \begin_layout Plain Layout
18565
18566 \emph on
18567 0
18568 \end_layout
18569
18570 \end_inset
18571
18572 ,
18573 \begin_inset Flex Code
18574 status collapsed
18575
18576 \begin_layout Plain Layout
18577 1
18578 \end_layout
18579
18580 \end_inset
18581
18582 ] Steps the 
18583 \change_deleted 731793113 1604355214
18584 master
18585 \change_inserted 731793113 1604355216
18586 parent
18587 \change_unchanged
18588  counter of a given counter at the beginning of a new sequence of layouts.
18589  This is currently only useful when 
18590 \begin_inset Flex Code
18591 status collapsed
18592
18593 \begin_layout Plain Layout
18594 LabelType
18595 \end_layout
18596
18597 \end_inset
18598
18599  is 
18600 \begin_inset Flex Code
18601 status collapsed
18602
18603 \begin_layout Plain Layout
18604 Enumerate
18605 \end_layout
18606
18607 \end_inset
18608
18609 .
18610 \end_layout
18611
18612 \begin_layout Description
18613 \begin_inset Flex Code
18614 status collapsed
18615
18616 \begin_layout Plain Layout
18617 TextFont
18618 \end_layout
18619
18620 \end_inset
18621
18622  The font used for the text body .
18623  See 
18624 \begin_inset CommandInset ref
18625 LatexCommand ref
18626 reference "subsec:Font-description"
18627 nolink "false"
18628
18629 \end_inset
18630
18631 .
18632 \end_layout
18633
18634 \begin_layout Description
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639 TocLevel
18640 \end_layout
18641
18642 \end_inset
18643
18644
18645 \series medium
18646  [
18647 \begin_inset Flex Code
18648 status collapsed
18649
18650 \begin_layout Plain Layout
18651
18652 \series medium
18653 int=3
18654 \end_layout
18655
18656 \end_inset
18657
18658 ]
18659 \series default
18660  The level of the style in the table of contents.
18661  This is used for automatic numbering of section headings.
18662 \end_layout
18663
18664 \begin_layout Description
18665 \begin_inset Flex Code
18666 status collapsed
18667
18668 \begin_layout Plain Layout
18669 ToggleIndent
18670 \end_layout
18671
18672 \end_inset
18673
18674  [
18675 \emph on
18676
18677 \begin_inset Flex Code
18678 status collapsed
18679
18680 \begin_layout Plain Layout
18681
18682 \emph on
18683 default
18684 \end_layout
18685
18686 \end_inset
18687
18688
18689 \emph default
18690 ,
18691  
18692 \begin_inset Flex Code
18693 status collapsed
18694
18695 \begin_layout Plain Layout
18696 always
18697 \end_layout
18698
18699 \end_inset
18700
18701 ,
18702  
18703 \begin_inset Flex Code
18704 status collapsed
18705
18706 \begin_layout Plain Layout
18707 never
18708 \end_layout
18709
18710 \end_inset
18711
18712 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
18713  If 
18714 \emph on
18715
18716 \begin_inset Flex Code
18717 status collapsed
18718
18719 \begin_layout Plain Layout
18720
18721 \emph off
18722 default
18723 \end_layout
18724
18725 \end_inset
18726
18727
18728 \emph default
18729  is set,
18730  indentation can be toggled if the document settings use 
18731 \begin_inset Quotes eld
18732 \end_inset
18733
18734 indent
18735 \begin_inset Quotes erd
18736 \end_inset
18737
18738  paragraph style,
18739  with 
18740 \begin_inset Flex Code
18741 status collapsed
18742
18743 \begin_layout Plain Layout
18744 always
18745 \end_layout
18746
18747 \end_inset
18748
18749 ,
18750  indentation can always be toggled,
18751  notwithstanding the document settings,
18752  with 
18753 \begin_inset Flex Code
18754 status collapsed
18755
18756 \begin_layout Plain Layout
18757 never
18758 \end_layout
18759
18760 \end_inset
18761
18762 ,
18763  indentation can never be toggled.
18764 \end_layout
18765
18766 \begin_layout Description
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771 TopSep
18772 \end_layout
18773
18774 \end_inset
18775
18776  [
18777 \begin_inset Flex Code
18778 status collapsed
18779
18780 \begin_layout Plain Layout
18781 float=0
18782 \end_layout
18783
18784 \end_inset
18785
18786 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
18787  If the previous paragraph has another style,
18788  the separations are not simply added,
18789  but the maximum is taken.
18790 \end_layout
18791
18792 \begin_layout Subsection
18793 \begin_inset CommandInset label
18794 LatexCommand label
18795 name "subsec:I18n"
18796
18797 \end_inset
18798
18799 Internationalization of Paragraph Styles
18800 \end_layout
18801
18802 \begin_layout Standard
18803 \SpecialChar LyX
18804  has long supported internationalization of layout information,
18805  but,
18806  until version 2.0,
18807  this applied only to the user interface and not to,
18808  say,
18809  PDF output.
18810  Thus,
18811  French authors were forced to resort to ugly hacks if they wanted `
18812 \lang french
18813 Théorème
18814 \lang english
18815  1' instead of `Theorem 1'.
18816  Thanks to Georg Baum,
18817  that is no longer the case.
18818 \end_layout
18819
18820 \begin_layout Standard
18821 If a 
18822 \begin_inset Flex Code
18823 status collapsed
18824
18825 \begin_layout Plain Layout
18826 Style
18827 \end_layout
18828
18829 \end_inset
18830
18831  defines text that is to appear in the typeset document,
18832  it may use 
18833 \begin_inset Flex Code
18834 status collapsed
18835
18836 \begin_layout Plain Layout
18837 LangPreamble
18838 \end_layout
18839
18840 \end_inset
18841
18842  and 
18843 \begin_inset Flex Code
18844 status collapsed
18845
18846 \begin_layout Plain Layout
18847 BabelPreamble
18848 \end_layout
18849
18850 \end_inset
18851
18852  to support non-English and even multi-language documents correctly.
18853  The following excerpt (from the 
18854 \begin_inset Flex Code
18855 status collapsed
18856
18857 \begin_layout Plain Layout
18858 theorems-ams.inc
18859 \end_layout
18860
18861 \end_inset
18862
18863  file) shows how this works:
18864 \end_layout
18865
18866 \begin_layout LyX-Code
18867 Preamble
18868 \end_layout
18869
18870 \begin_deeper
18871 \begin_layout LyX-Code
18872   
18873 \backslash
18874 theoremstyle{remark}
18875 \end_layout
18876
18877 \begin_layout LyX-Code
18878   
18879 \backslash
18880 newtheorem{claim}[thm]{
18881 \backslash
18882 protect
18883 \backslash
18884 claimname}
18885 \end_layout
18886
18887 \begin_layout LyX-Code
18888 EndPreamble
18889 \end_layout
18890
18891 \begin_layout LyX-Code
18892 LangPreamble
18893 \end_layout
18894
18895 \begin_layout LyX-Code
18896   
18897 \backslash
18898 providecommand{
18899 \backslash
18900 claimname}{_(Claim)}
18901 \end_layout
18902
18903 \begin_layout LyX-Code
18904 EndLangPreamble
18905 \end_layout
18906
18907 \begin_layout LyX-Code
18908 BabelPreamble
18909 \end_layout
18910
18911 \begin_layout LyX-Code
18912     
18913 \backslash
18914 addto
18915 \backslash
18916 captions$$lang{
18917 \backslash
18918 renewcommand{
18919 \backslash
18920 claimname}{_(Claim)}}
18921 \end_layout
18922
18923 \begin_layout LyX-Code
18924 EndBabelPreamble
18925 \end_layout
18926
18927 \end_deeper
18928 \begin_layout Standard
18929 In principle,
18930  any legal \SpecialChar LaTeX
18931  may appear in the 
18932 \begin_inset Flex Code
18933 status collapsed
18934
18935 \begin_layout Plain Layout
18936 LangPreamble
18937 \end_layout
18938
18939 \end_inset
18940
18941  and 
18942 \begin_inset Flex Code
18943 status collapsed
18944
18945 \begin_layout Plain Layout
18946 BabelPreamble
18947 \end_layout
18948
18949 \end_inset
18950
18951  tags,
18952  but in practice they will typically look as they do here.
18953  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
18954  command 
18955 \begin_inset Flex Code
18956 status collapsed
18957
18958 \begin_layout Plain Layout
18959
18960 \backslash
18961 claimname
18962 \end_layout
18963
18964 \end_inset
18965
18966  and its use in 
18967 \begin_inset Flex Code
18968 status collapsed
18969
18970 \begin_layout Plain Layout
18971
18972 \backslash
18973 newtheorem
18974 \end_layout
18975
18976 \end_inset
18977
18978 .
18979  
18980 \end_layout
18981
18982 \begin_layout Standard
18983 The 
18984 \begin_inset Flex Code
18985 status collapsed
18986
18987 \begin_layout Plain Layout
18988 LangPreamble
18989 \end_layout
18990
18991 \end_inset
18992
18993  tag provides for internationalization based upon the overall language of the document.
18994  The contents of the tag will be included in the preamble,
18995  just as with the 
18996 \begin_inset Flex Code
18997 status collapsed
18998
18999 \begin_layout Plain Layout
19000 Preamble
19001 \end_layout
19002
19003 \end_inset
19004
19005  tag.
19006  What makes it special is the use of the 
19007 \begin_inset Quotes eld
19008 \end_inset
19009
19010 function
19011 \begin_inset Quotes erd
19012 \end_inset
19013
19014  
19015 \begin_inset Flex Code
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 _()
19020 \end_layout
19021
19022 \end_inset
19023
19024 ,
19025  which will be replaced,
19026  when \SpecialChar LyX
19027  produces \SpecialChar LaTeX
19028  output,
19029  with the translation of its argument into the document language.
19030 \end_layout
19031
19032 \begin_layout Standard
19033 The 
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 BabelPreamble
19039 \end_layout
19040
19041 \end_inset
19042
19043  tag is more complex,
19044  since it is meant to provide support for multi-language documents and so offers an interface to the 
19045 \begin_inset Flex Code
19046 status collapsed
19047
19048 \begin_layout Plain Layout
19049 babel
19050 \end_layout
19051
19052 \end_inset
19053
19054  package.
19055  Its contents will be added to the preamble once for each language that appears in the document.
19056  In this case,
19057  the argument to 
19058 \begin_inset Flex Code
19059 status collapsed
19060
19061 \begin_layout Plain Layout
19062 _()
19063 \end_layout
19064
19065 \end_inset
19066
19067  will be replaced with its translation into the language in question;
19068  the expression 
19069 \begin_inset Flex Code
19070 status collapsed
19071
19072 \begin_layout Plain Layout
19073 $$lang
19074 \end_layout
19075
19076 \end_inset
19077
19078  is replaced by the language name (as used by the babel package).
19079 \end_layout
19080
19081 \begin_layout Standard
19082 A German document that also included a French section would thus have the following in the preamble:
19083 \end_layout
19084
19085 \begin_layout LyX-Code
19086
19087 \backslash
19088 addto
19089 \backslash
19090 captionsfrench{
19091 \backslash
19092 renewcommand{
19093 \backslash
19094 claimname}{Affirmation}}
19095 \begin_inset Newline newline
19096 \end_inset
19097
19098
19099 \backslash
19100 addto
19101 \backslash
19102 captionsngerman{
19103 \backslash
19104 renewcommand{
19105 \backslash
19106 claimname}{Behauptung}}
19107 \begin_inset Newline newline
19108 \end_inset
19109
19110
19111 \backslash
19112 providecommand{
19113 \backslash
19114 claimname}{Behauptung}
19115 \end_layout
19116
19117 \begin_layout Standard
19118 \SpecialChar LaTeX
19119  and 
19120 \begin_inset Flex Code
19121 status collapsed
19122
19123 \begin_layout Plain Layout
19124 babel
19125 \end_layout
19126
19127 \end_inset
19128
19129  will then conspire to produce the correct text in the output.
19130 \end_layout
19131
19132 \begin_layout Standard
19133 One important point to note here is that the translations are provided by \SpecialChar LyX
19134  itself,
19135  through the file 
19136 \begin_inset Flex Code
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140 layouttranslations
19141 \end_layout
19142
19143 \end_inset
19144
19145 .
19146  This means,
19147  in effect,
19148  that 
19149 \begin_inset Flex Code
19150 status collapsed
19151
19152 \begin_layout Plain Layout
19153 LangPreamble
19154 \end_layout
19155
19156 \end_inset
19157
19158  and 
19159 \begin_inset Flex Code
19160 status collapsed
19161
19162 \begin_layout Plain Layout
19163 BabelPreamble
19164 \end_layout
19165
19166 \end_inset
19167
19168  are really only of use in layout files that are provided with \SpecialChar LyX
19169 ,
19170  since text entered in user-created layout files will not be seen by \SpecialChar LyX
19171 's internationalization routines unless the 
19172 \begin_inset Flex Code
19173 status collapsed
19174
19175 \begin_layout Plain Layout
19176 layouttranslations
19177 \end_layout
19178
19179 \end_inset
19180
19181  file is modified accordingly.
19182  That said,
19183  however,
19184  any layout created with the intention that it will be included with \SpecialChar LyX
19185  should use these tags where appropriate.
19186  Please note that the paragraph style translations provided by \SpecialChar LyX
19187  will never change with a minor update (e.
19188 \begin_inset space \thinspace{}
19189 \end_inset
19190
19191 g.
19192 \begin_inset space \space{}
19193 \end_inset
19194
19195 from version 2.1.x to 2.1.y).
19196  It is however quite likely that a major update (e.
19197 \begin_inset space \thinspace{}
19198 \end_inset
19199
19200 g.
19201 \begin_inset space \space{}
19202 \end_inset
19203
19204 from 2.0.x to 2.1.0) will introduce new translations or corrections.
19205 \end_layout
19206
19207 \begin_layout Subsection
19208 Floats
19209 \begin_inset CommandInset label
19210 LatexCommand label
19211 name "subsec:Floats"
19212
19213 \end_inset
19214
19215
19216 \end_layout
19217
19218 \begin_layout Standard
19219 It is necessary to define the floats (
19220 \begin_inset Flex Noun
19221 status collapsed
19222
19223 \begin_layout Plain Layout
19224 figure
19225 \end_layout
19226
19227 \end_inset
19228
19229 ,
19230  
19231 \begin_inset Flex Noun
19232 status collapsed
19233
19234 \begin_layout Plain Layout
19235 table
19236 \end_layout
19237
19238 \end_inset
19239
19240 ,
19241  \SpecialChar ldots
19242 ) in the text class itself.
19243  Standard floats are included in the file 
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248 stdfloats.inc
19249 \end_layout
19250
19251 \end_inset
19252
19253 ,
19254  so you may have to do no more than add
19255 \end_layout
19256
19257 \begin_layout LyX-Code
19258 Input stdfloats.inc
19259 \end_layout
19260
19261 \begin_layout Standard
19262 to your layout file.
19263  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
19264 ),
19265  the information below will hopefully help you:
19266 \end_layout
19267
19268 \begin_layout Description
19269 \begin_inset Flex Code
19270 status collapsed
19271
19272 \begin_layout Plain Layout
19273 AllowedPlacement
19274 \end_layout
19275
19276 \end_inset
19277
19278  [
19279 \begin_inset Flex Code
19280 status collapsed
19281
19282 \begin_layout Plain Layout
19283 string
19284 \end_layout
19285
19286 \end_inset
19287
19288 =!htbpH] Allowed placement options for this float type.
19289  The value is a string of placement characters.
19290  Possible characters include:
19291  
19292 \emph on
19293 h
19294 \emph default
19295  (
19296 \begin_inset Quotes eld
19297 \end_inset
19298
19299 here if possible
19300 \begin_inset Quotes erd
19301 \end_inset
19302
19303 ),
19304  
19305 \emph on
19306 t
19307 \emph default
19308  (
19309 \begin_inset Quotes eld
19310 \end_inset
19311
19312 top of page
19313 \begin_inset Quotes erd
19314 \end_inset
19315
19316 ),
19317  
19318 \emph on
19319 b
19320 \emph default
19321  (
19322 \begin_inset Quotes eld
19323 \end_inset
19324
19325 bottom of page
19326 \begin_inset Quotes erd
19327 \end_inset
19328
19329 ),
19330  
19331 \emph on
19332 p
19333 \emph default
19334  (
19335 \begin_inset Quotes eld
19336 \end_inset
19337
19338 page of floats
19339 \begin_inset Quotes erd
19340 \end_inset
19341
19342 ),
19343  
19344 \emph on
19345 H
19346 \emph default
19347  (
19348 \begin_inset Quotes eld
19349 \end_inset
19350
19351 here definitely
19352 \begin_inset Quotes erd
19353 \end_inset
19354
19355 ) and 
19356 \emph on
19357 !
19358
19359 \emph default
19360  (
19361 \begin_inset Quotes eld
19362 \end_inset
19363
19364 ignore LaTeX rules
19365 \begin_inset Quotes erd
19366 \end_inset
19367
19368 ).
19369  The order of the characters in the string does not matter.
19370  If no placement options are allowed,
19371  use the string 
19372 \emph on
19373 none
19374 \emph default
19375 .
19376 \end_layout
19377
19378 \begin_layout Description
19379 \begin_inset Flex Code
19380 status collapsed
19381
19382 \begin_layout Plain Layout
19383 AllowsSideways
19384 \end_layout
19385
19386 \end_inset
19387
19388  [
19389 \begin_inset Flex Code
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393
19394 \emph off
19395 0
19396 \end_layout
19397
19398 \end_inset
19399
19400 ,
19401 \begin_inset space \thinspace{}
19402 \end_inset
19403
19404
19405 \emph on
19406
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411
19412 \emph on
19413 1
19414 \end_layout
19415
19416 \end_inset
19417
19418
19419 \emph default
19420 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
19421 -package 
19422 \family typewriter
19423 rotfloat
19424 \family default
19425  (sidewaysfloat).
19426  Set to 
19427 \begin_inset Flex Code
19428 status collapsed
19429
19430 \begin_layout Plain Layout
19431 0
19432 \end_layout
19433
19434 \end_inset
19435
19436  if the float does not support this feature.
19437 \end_layout
19438
19439 \begin_layout Description
19440 \begin_inset Flex Code
19441 status collapsed
19442
19443 \begin_layout Plain Layout
19444 AllowsWide
19445 \end_layout
19446
19447 \end_inset
19448
19449  [
19450 \begin_inset Flex Code
19451 status collapsed
19452
19453 \begin_layout Plain Layout
19454
19455 \emph off
19456 0
19457 \end_layout
19458
19459 \end_inset
19460
19461 ,
19462 \begin_inset space \thinspace{}
19463 \end_inset
19464
19465
19466 \emph on
19467
19468 \begin_inset Flex Code
19469 status collapsed
19470
19471 \begin_layout Plain Layout
19472
19473 \emph on
19474 1
19475 \end_layout
19476
19477 \end_inset
19478
19479
19480 \emph default
19481 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
19482  Set to 
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 0
19488 \end_layout
19489
19490 \end_inset
19491
19492  if the float does not support this feature.
19493 \end_layout
19494
19495 \begin_layout Description
19496 \begin_inset Flex Code
19497 status collapsed
19498
19499 \begin_layout Plain Layout
19500 Extension
19501 \end_layout
19502
19503 \end_inset
19504
19505  [
19506 \begin_inset Flex Code
19507 status collapsed
19508
19509 \begin_layout Plain Layout
19510 string
19511 \end_layout
19512
19513 \end_inset
19514
19515 =
19516 \begin_inset Quotes erd
19517 \end_inset
19518
19519
19520 \begin_inset Quotes erd
19521 \end_inset
19522
19523 ] The file name extension of an auxiliary file for the list of figures (or whatever).
19524  \SpecialChar LaTeX
19525  writes the captions to this file.
19526 \end_layout
19527
19528 \begin_layout Description
19529 \begin_inset Flex Code
19530 status collapsed
19531
19532 \begin_layout Plain Layout
19533 GuiName
19534 \end_layout
19535
19536 \end_inset
19537
19538  [
19539 \begin_inset Flex Code
19540 status collapsed
19541
19542 \begin_layout Plain Layout
19543 string
19544 \end_layout
19545
19546 \end_inset
19547
19548 =
19549 \begin_inset Quotes erd
19550 \end_inset
19551
19552
19553 \begin_inset Quotes erd
19554 \end_inset
19555
19556 ] The string that will be used in the menus and also for the caption.
19557  This is translated to the current language if babel is used.
19558 \end_layout
19559
19560 \begin_layout Description
19561 \begin_inset Flex Code
19562 status collapsed
19563
19564 \begin_layout Plain Layout
19565 HTML*
19566 \end_layout
19567
19568 \end_inset
19569
19570  These tags control the XHTML output.
19571  See 
19572 \begin_inset CommandInset ref
19573 LatexCommand ref
19574 reference "sec:Tags-for-XHTML"
19575 nolink "false"
19576
19577 \end_inset
19578
19579 .
19580 \end_layout
19581
19582 \begin_layout Description
19583 \begin_inset Flex Code
19584 status collapsed
19585
19586 \begin_layout Plain Layout
19587 IsPredefined
19588 \end_layout
19589
19590 \end_inset
19591
19592  [
19593 \emph on
19594
19595 \begin_inset Flex Code
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 0
19600 \end_layout
19601
19602 \end_inset
19603
19604
19605 \emph default
19606 ,
19607 \begin_inset space \thinspace{}
19608 \end_inset
19609
19610
19611 \begin_inset Flex Code
19612 status collapsed
19613
19614 \begin_layout Plain Layout
19615 1
19616 \end_layout
19617
19618 \end_inset
19619
19620 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
19621  package 
19622 \begin_inset Flex Code
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 float
19627 \end_layout
19628
19629 \end_inset
19630
19631  needs to be loaded to define it on-the-fly.
19632  The default is 
19633 \begin_inset Flex Code
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637 0
19638 \end_layout
19639
19640 \end_inset
19641
19642 ,
19643  which means:
19644  
19645 \begin_inset Flex Code
19646 status collapsed
19647
19648 \begin_layout Plain Layout
19649 float
19650 \end_layout
19651
19652 \end_inset
19653
19654  is used.
19655  It should be set to 
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 1
19661 \end_layout
19662
19663 \end_inset
19664
19665  if the float is already defined by the \SpecialChar LaTeX
19666  document class.
19667 \end_layout
19668
19669 \begin_layout Description
19670 \begin_inset Flex Code
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 ListCommand
19675 \end_layout
19676
19677 \end_inset
19678
19679  [
19680 \begin_inset Flex Code
19681 status collapsed
19682
19683 \begin_layout Plain Layout
19684 string
19685 \end_layout
19686
19687 \end_inset
19688
19689 =
19690 \begin_inset Quotes erd
19691 \end_inset
19692
19693
19694 \begin_inset Quotes erd
19695 \end_inset
19696
19697 ] The command used to generate a list of floats of this type;
19698  the leading `
19699 \backslash
19700 ' must be omitted.
19701  This 
19702 \emph on
19703 must
19704 \emph default
19705  be given if 
19706 \begin_inset Flex Code
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710 UsesFloatPkg
19711 \end_layout
19712
19713 \end_inset
19714
19715  is false,
19716  since there is no standard way to generate this command.
19717  It is ignored if 
19718 \begin_inset Flex Code
19719 status collapsed
19720
19721 \begin_layout Plain Layout
19722 UsesFloatPkg
19723 \end_layout
19724
19725 \end_inset
19726
19727  is true,
19728  since in that case there is a standard way to define the command.
19729 \end_layout
19730
19731 \begin_layout Description
19732 \begin_inset Flex Code
19733 status collapsed
19734
19735 \begin_layout Plain Layout
19736 ListName
19737 \end_layout
19738
19739 \end_inset
19740
19741  [
19742 \begin_inset Flex Code
19743 status collapsed
19744
19745 \begin_layout Plain Layout
19746 string
19747 \end_layout
19748
19749 \end_inset
19750
19751 =
19752 \begin_inset Quotes erd
19753 \end_inset
19754
19755
19756 \begin_inset Quotes erd
19757 \end_inset
19758
19759 ] A title for a list of floats of this kind (list of figures,
19760  tables,
19761  or whatever).
19762  It is used for the screen label within \SpecialChar LyX
19763 ,
19764  it is used by \SpecialChar LaTeX
19765  for the title and it is used as the title in the XHTML output.
19766  It will be translated to the document language.
19767 \end_layout
19768
19769 \begin_layout Description
19770 \begin_inset Flex Code
19771 status collapsed
19772
19773 \begin_layout Plain Layout
19774 NumberWithin
19775 \end_layout
19776
19777 \end_inset
19778
19779  [
19780 \begin_inset Flex Code
19781 status collapsed
19782
19783 \begin_layout Plain Layout
19784 string
19785 \end_layout
19786
19787 \end_inset
19788
19789 =
19790 \begin_inset Quotes erd
19791 \end_inset
19792
19793
19794 \begin_inset Quotes erd
19795 \end_inset
19796
19797 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
19798  For example,
19799  if 
19800 \begin_inset Flex Code
19801 status collapsed
19802
19803 \begin_layout Plain Layout
19804 NumberWithin
19805 \end_layout
19806
19807 \end_inset
19808
19809  is set to 
19810 \begin_inset Quotes eld
19811 \end_inset
19812
19813
19814 \begin_inset Flex Code
19815 status collapsed
19816
19817 \begin_layout Plain Layout
19818 chapter
19819 \end_layout
19820
19821 \end_inset
19822
19823
19824 \begin_inset Quotes erd
19825 \end_inset
19826
19827 ,
19828  the floats will be numbered within chapters.
19829  
19830 \end_layout
19831
19832 \begin_layout Description
19833 \begin_inset Flex Code
19834 status collapsed
19835
19836 \begin_layout Plain Layout
19837 Placement
19838 \end_layout
19839
19840 \end_inset
19841
19842  [
19843 \begin_inset Flex Code
19844 status collapsed
19845
19846 \begin_layout Plain Layout
19847 string
19848 \end_layout
19849
19850 \end_inset
19851
19852 =
19853 \begin_inset Quotes erd
19854 \end_inset
19855
19856
19857 \begin_inset Quotes erd
19858 \end_inset
19859
19860 ] The default placement for the given class of floats.
19861  The string should be as in standard \SpecialChar LaTeX
19862 :
19863  
19864 \begin_inset Flex Code
19865 status collapsed
19866
19867 \begin_layout Plain Layout
19868 t
19869 \end_layout
19870
19871 \end_inset
19872
19873 ,
19874  
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 b
19880 \end_layout
19881
19882 \end_inset
19883
19884 ,
19885  
19886 \begin_inset Flex Code
19887 status collapsed
19888
19889 \begin_layout Plain Layout
19890 p
19891 \end_layout
19892
19893 \end_inset
19894
19895  and 
19896 \begin_inset Flex Code
19897 status collapsed
19898
19899 \begin_layout Plain Layout
19900 h
19901 \end_layout
19902
19903 \end_inset
19904
19905  for top,
19906  bottom,
19907  page,
19908  and here,
19909  respectively.
19910 \begin_inset Foot
19911 status collapsed
19912
19913 \begin_layout Plain Layout
19914 Note that the order of these letters in the string is irrelevant,
19915  like in \SpecialChar LaTeX
19916 .
19917 \end_layout
19918
19919 \end_inset
19920
19921  On top of that there is a new type,
19922  
19923 \begin_inset Flex Code
19924 status collapsed
19925
19926 \begin_layout Plain Layout
19927 H
19928 \end_layout
19929
19930 \end_inset
19931
19932 ,
19933  which does not really correspond to a float,
19934  since it means:
19935  put it 
19936 \begin_inset Quotes eld
19937 \end_inset
19938
19939 here
19940 \begin_inset Quotes erd
19941 \end_inset
19942
19943  and nowhere else.
19944  Note however that the 
19945 \begin_inset Flex Code
19946 status collapsed
19947
19948 \begin_layout Plain Layout
19949 H
19950 \end_layout
19951
19952 \end_inset
19953
19954  specifier is special and,
19955  because of implementation details,
19956  cannot be used in non-built in float types.
19957  If you do not understand what this means,
19958  just use 
19959 \begin_inset Quotes eld
19960 \end_inset
19961
19962
19963 \begin_inset Flex Code
19964 status collapsed
19965
19966 \begin_layout Plain Layout
19967 tbp
19968 \end_layout
19969
19970 \end_inset
19971
19972
19973 \begin_inset Quotes erd
19974 \end_inset
19975
19976 .
19977 \change_inserted -584632292 1690588297
19978
19979 \end_layout
19980
19981 \begin_layout Description
19982
19983 \change_inserted -584632292 1690593080
19984 \begin_inset Flex Code
19985 status collapsed
19986
19987 \begin_layout Plain Layout
19988
19989 \change_inserted -584632292 1690588298
19990 PrettyFormat
19991 \change_unchanged
19992
19993 \end_layout
19994
19995 \end_inset
19996
19997  [
19998 \begin_inset Flex Code
19999 status collapsed
20000
20001 \begin_layout Plain Layout
20002
20003 \change_inserted -584632292 1690588298
20004 string
20005 \change_unchanged
20006
20007 \end_layout
20008
20009 \end_inset
20010
20011 =
20012 \begin_inset Quotes erd
20013 \end_inset
20014
20015
20016 \begin_inset Quotes erd
20017 \end_inset
20018
20019 ] A format for use with formatted references to this counter.
20020  For example,
20021  one might want to have references to tables appear as 
20022 \begin_inset Quotes eld
20023 \end_inset
20024
20025 Table 2
20026 \begin_inset Quotes erd
20027 \end_inset
20028
20029 .
20030  The string may contain 
20031 \begin_inset Quotes eld
20032 \end_inset
20033
20034 ##
20035 \begin_inset Quotes erd
20036 \end_inset
20037
20038  or a counter specification.
20039  (See the documentation for 
20040 \begin_inset Flex Code
20041 status open
20042
20043 \begin_layout Plain Layout
20044
20045 \change_inserted -584632292 1690588298
20046 LabelString
20047 \change_unchanged
20048
20049 \end_layout
20050
20051 \end_inset
20052
20053  in 
20054 \begin_inset CommandInset ref
20055 LatexCommand formatted
20056 reference "subsec:Counters"
20057 plural "false"
20058 caps "false"
20059 noprefix "false"
20060 nolink "false"
20061
20062 \end_inset
20063
20064 .) The former will be replaced by the counter number itself.
20065  So,
20066  for sections,
20067  it would be:
20068  Section ##,
20069  or perhaps:
20070  section 
20071 \backslash
20072 arabic{section} (which might render as:
20073  section 2.7).
20074 \end_layout
20075
20076 \begin_layout Description
20077 \begin_inset Flex Code
20078 status collapsed
20079
20080 \begin_layout Plain Layout
20081 RefPrefix
20082 \end_layout
20083
20084 \end_inset
20085
20086  [
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091 string
20092 \end_layout
20093
20094 \end_inset
20095
20096 ] The prefix to use when creating labels referring to floats of this type.
20097  This allows the use of formatted references.
20098  Note that you can remove any 
20099 \begin_inset Flex Code
20100 status collapsed
20101
20102 \begin_layout Plain Layout
20103 RefPrefix
20104 \end_layout
20105
20106 \end_inset
20107
20108  set by a copied style by using the special value 
20109 \begin_inset Quotes eld
20110 \end_inset
20111
20112 OFF
20113 \begin_inset Quotes erd
20114 \end_inset
20115
20116 ,
20117  which must be all caps.
20118 \change_inserted -712698321 1565605014
20119
20120 \end_layout
20121
20122 \begin_layout Description
20123
20124 \change_inserted -712698321 1565605014
20125 \begin_inset Flex Code
20126 status collapsed
20127
20128 \begin_layout Plain Layout
20129
20130 \change_inserted -712698321 1565605014
20131 Requires
20132 \change_unchanged
20133
20134 \end_layout
20135
20136 \end_inset
20137
20138  [
20139 \begin_inset Flex Code
20140 status collapsed
20141
20142 \begin_layout Plain Layout
20143
20144 \change_inserted -712698321 1565605014
20145 string
20146 \change_unchanged
20147
20148 \end_layout
20149
20150 \end_inset
20151
20152 ] As with paragraph styles,
20153  see 
20154 \begin_inset CommandInset ref
20155 LatexCommand ref
20156 reference "subsec:Paragraph-Styles"
20157 nolink "false"
20158
20159 \end_inset
20160
20161 .
20162 \change_unchanged
20163
20164 \end_layout
20165
20166 \begin_layout Description
20167 \begin_inset Flex Code
20168 status collapsed
20169
20170 \begin_layout Plain Layout
20171 Style
20172 \end_layout
20173
20174 \end_inset
20175
20176  [
20177 \begin_inset Flex Code
20178 status collapsed
20179
20180 \begin_layout Plain Layout
20181 string
20182 \end_layout
20183
20184 \end_inset
20185
20186 =
20187 \begin_inset Quotes erd
20188 \end_inset
20189
20190
20191 \begin_inset Quotes erd
20192 \end_inset
20193
20194 ] The style used when defining the float using 
20195 \begin_inset Flex Code
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199
20200 \backslash
20201 newfloat
20202 \end_layout
20203
20204 \end_inset
20205
20206 .
20207 \end_layout
20208
20209 \begin_layout Description
20210 \begin_inset Flex Code
20211 status collapsed
20212
20213 \begin_layout Plain Layout
20214 Type
20215 \end_layout
20216
20217 \end_inset
20218
20219  [
20220 \begin_inset Flex Code
20221 status collapsed
20222
20223 \begin_layout Plain Layout
20224 string
20225 \end_layout
20226
20227 \end_inset
20228
20229 =
20230 \begin_inset Quotes erd
20231 \end_inset
20232
20233
20234 \begin_inset Quotes erd
20235 \end_inset
20236
20237 ] The 
20238 \begin_inset Quotes eld
20239 \end_inset
20240
20241 type
20242 \begin_inset Quotes erd
20243 \end_inset
20244
20245  of the new class of floats,
20246  like program or algorithm.
20247  After the appropriate 
20248 \begin_inset Flex Code
20249 status collapsed
20250
20251 \begin_layout Plain Layout
20252
20253 \backslash
20254 newfloat
20255 \end_layout
20256
20257 \end_inset
20258
20259 ,
20260  commands such as 
20261 \begin_inset Flex Code
20262 status collapsed
20263
20264 \begin_layout Plain Layout
20265
20266 \backslash
20267 begin{program}
20268 \end_layout
20269
20270 \end_inset
20271
20272  or 
20273 \begin_inset Flex Code
20274 status collapsed
20275
20276 \begin_layout Plain Layout
20277
20278 \backslash
20279 end{algorithm*}
20280 \end_layout
20281
20282 \end_inset
20283
20284  will be available.
20285 \end_layout
20286
20287 \begin_layout Description
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 UsesFloatPkg
20293 \end_layout
20294
20295 \end_inset
20296
20297  [
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 0
20303 \end_layout
20304
20305 \end_inset
20306
20307 ,
20308 \begin_inset space \thinspace{}
20309 \end_inset
20310
20311
20312 \begin_inset Flex Code
20313 status collapsed
20314
20315 \begin_layout Plain Layout
20316
20317 \emph on
20318 1
20319 \end_layout
20320
20321 \end_inset
20322
20323 ] Specifies whether this float is defined using the \SpecialChar LaTeX
20324  package 
20325 \begin_inset Flex Code
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329 float
20330 \end_layout
20331
20332 \end_inset
20333
20334 ,
20335  either by the class file,
20336  another package or on-the-fly by \SpecialChar LyX
20337  itself.
20338 \end_layout
20339
20340 \begin_layout Standard
20341 Note that defining a float with type 
20342 \begin_inset Flex Code
20343 status collapsed
20344
20345 \begin_layout Plain Layout
20346
20347 \emph on
20348 type
20349 \end_layout
20350
20351 \end_inset
20352
20353  automatically defines the corresponding counter with name 
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358
20359 \emph on
20360 type
20361 \end_layout
20362
20363 \end_inset
20364
20365 .
20366 \end_layout
20367
20368 \begin_layout Subsection
20369 Flex insets and InsetLayout
20370 \begin_inset CommandInset label
20371 LatexCommand label
20372 name "subsec:Flex-insets-and"
20373
20374 \end_inset
20375
20376
20377 \end_layout
20378
20379 \begin_layout Standard
20380 Flex insets come in 
20381 \change_deleted 5863208 1594239511
20382 three
20383 \change_inserted 5863208 1594239512
20384 two
20385 \change_unchanged
20386  different kinds:
20387  
20388 \end_layout
20389
20390 \begin_layout Itemize
20391 character style (
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396 CharStyle
20397 \end_layout
20398
20399 \end_inset
20400
20401 ):
20402  These define semantic markup corresponding to such \SpecialChar LaTeX
20403  commands as 
20404 \begin_inset Flex Code
20405 status collapsed
20406
20407 \begin_layout Plain Layout
20408
20409 \backslash
20410 noun
20411 \end_layout
20412
20413 \end_inset
20414
20415  and 
20416 \begin_inset Flex Code
20417 status collapsed
20418
20419 \begin_layout Plain Layout
20420
20421 \backslash
20422 code
20423 \end_layout
20424
20425 \end_inset
20426
20427 .
20428 \end_layout
20429
20430 \begin_layout Itemize
20431 user custom (
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436 Custom
20437 \end_layout
20438
20439 \end_inset
20440
20441 ):
20442  These can be used to define custom collapsible insets,
20443  similar to \SpecialChar TeX
20444  code,
20445  footnote,
20446  and the like.
20447  An obvious example is an endnote inset,
20448  which is defined in the 
20449 \begin_inset Flex Code
20450 status collapsed
20451
20452 \begin_layout Plain Layout
20453 endnote
20454 \end_layout
20455
20456 \end_inset
20457
20458  module.
20459 \end_layout
20460
20461 \begin_layout Itemize
20462
20463 \change_deleted 5863208 1594239528
20464 XML elements (
20465 \begin_inset Flex Code
20466 status collapsed
20467
20468 \begin_layout Plain Layout
20469 Element
20470 \end_layout
20471
20472 \end_inset
20473
20474 ):
20475  For use with DocBook classes.
20476 \change_unchanged
20477
20478 \end_layout
20479
20480 \begin_layout Standard
20481 Flex insets are defined using the 
20482 \begin_inset Flex Code
20483 status collapsed
20484
20485 \begin_layout Plain Layout
20486 InsetLayout
20487 \end_layout
20488
20489 \end_inset
20490
20491  tag,
20492  which shall be explained in a moment.
20493 \end_layout
20494
20495 \begin_layout Standard
20496 The 
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 InsetLayout
20502 \end_layout
20503
20504 \end_inset
20505
20506  tag also serves another function:
20507  It can be used to customize the general layout of many different types of insets.
20508  Currently,
20509  
20510 \begin_inset Flex Code
20511 status collapsed
20512
20513 \begin_layout Plain Layout
20514 InsetLayout
20515 \end_layout
20516
20517 \end_inset
20518
20519  can be used to customize the layout parameters for footnotes,
20520  marginal notes,
20521  note insets,
20522  \SpecialChar TeX
20523  code (ERT) insets,
20524  branches,
20525  listings,
20526  indexes,
20527  boxes,
20528  tables,
20529  algorithms,
20530  URLs,
20531  and captions,
20532  as well as to define Flex insets.
20533 \end_layout
20534
20535 \begin_layout Standard
20536 The 
20537 \begin_inset Flex Code
20538 status collapsed
20539
20540 \begin_layout Plain Layout
20541 InsetLayout
20542 \end_layout
20543
20544 \end_inset
20545
20546  definition must begin with a line of the form:
20547 \end_layout
20548
20549 \begin_layout LyX-Code
20550 InsetLayout <type>
20551 \end_layout
20552
20553 \begin_layout Standard
20554 Here 
20555 \begin_inset Flex Code
20556 status collapsed
20557
20558 \begin_layout Plain Layout
20559 <Type>
20560 \end_layout
20561
20562 \end_inset
20563
20564  indicates the inset whose layout is being defined,
20565  and here there are four cases.
20566 \end_layout
20567
20568 \begin_layout Enumerate
20569 The layout for a pre-existing inset is being modified.
20570  In this case,
20571  can be 
20572 \begin_inset Flex Code
20573 status collapsed
20574
20575 \begin_layout Plain Layout
20576 <Type>
20577 \end_layout
20578
20579 \end_inset
20580
20581  any one of the following:
20582  
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 Algorithm
20588 \end_layout
20589
20590 \end_inset
20591
20592 ,
20593  
20594 \begin_inset Flex Code
20595 status collapsed
20596
20597 \begin_layout Plain Layout
20598 Branch
20599 \end_layout
20600
20601 \end_inset
20602
20603 ,
20604  
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609 Box
20610 \end_layout
20611
20612 \end_inset
20613
20614 ,
20615  
20616 \begin_inset Flex Code
20617 status collapsed
20618
20619 \begin_layout Plain Layout
20620 Box:shaded
20621 \end_layout
20622
20623 \end_inset
20624
20625 ,
20626  
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 Caption:Standard
20632 \end_layout
20633
20634 \end_inset
20635
20636 ,
20637  
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 ERT
20643 \end_layout
20644
20645 \end_inset
20646
20647 ,
20648  
20649 \begin_inset Flex Code
20650 status collapsed
20651
20652 \begin_layout Plain Layout
20653 Figure
20654 \end_layout
20655
20656 \end_inset
20657
20658 ,
20659  
20660 \begin_inset Flex Code
20661 status collapsed
20662
20663 \begin_layout Plain Layout
20664 Foot
20665 \end_layout
20666
20667 \end_inset
20668
20669 ,
20670  
20671 \begin_inset Flex Code
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 Index
20676 \end_layout
20677
20678 \end_inset
20679
20680 ,
20681  
20682 \begin_inset Flex Code
20683 status collapsed
20684
20685 \begin_layout Plain Layout
20686 Info
20687 \end_layout
20688
20689 \end_inset
20690
20691 ,
20692  
20693 \begin_inset Flex Code
20694 status collapsed
20695
20696 \begin_layout Plain Layout
20697 Info:menu
20698 \end_layout
20699
20700 \end_inset
20701
20702 ,
20703  
20704 \begin_inset Flex Code
20705 status collapsed
20706
20707 \begin_layout Plain Layout
20708 Info:shortcut
20709 \end_layout
20710
20711 \end_inset
20712
20713 ,
20714  
20715 \begin_inset Flex Code
20716 status collapsed
20717
20718 \begin_layout Plain Layout
20719 Info:shortcuts
20720 \end_layout
20721
20722 \end_inset
20723
20724 ,
20725  
20726 \begin_inset Flex Code
20727 status collapsed
20728
20729 \begin_layout Plain Layout
20730 Listings
20731 \end_layout
20732
20733 \end_inset
20734
20735 ,
20736  
20737 \begin_inset Flex Code
20738 status collapsed
20739
20740 \begin_layout Plain Layout
20741 Marginal
20742 \end_layout
20743
20744 \end_inset
20745
20746 ,
20747  
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752 Note:Comment
20753 \end_layout
20754
20755 \end_inset
20756
20757 ,
20758  
20759 \begin_inset Flex Code
20760 status collapsed
20761
20762 \begin_layout Plain Layout
20763 Note:Note
20764 \end_layout
20765
20766 \end_inset
20767
20768 ,
20769  
20770 \begin_inset Flex Code
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774 Note:Greyedout
20775 \end_layout
20776
20777 \end_inset
20778
20779 ,
20780  
20781 \begin_inset Flex Code
20782 status collapsed
20783
20784 \begin_layout Plain Layout
20785 Table
20786 \end_layout
20787
20788 \end_inset
20789
20790 ,
20791  or 
20792 \begin_inset Flex Code
20793 status collapsed
20794
20795 \begin_layout Plain Layout
20796 URL
20797 \end_layout
20798
20799 \end_inset
20800
20801 .
20802 \end_layout
20803
20804 \begin_layout Enumerate
20805 The layout for a Flex inset is being defined.
20806  In this case,
20807  
20808 \begin_inset Flex Code
20809 status collapsed
20810
20811 \begin_layout Plain Layout
20812 <Type>
20813 \end_layout
20814
20815 \end_inset
20816
20817  must be of the form 
20818 \begin_inset Quotes eld
20819 \end_inset
20820
20821
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 Flex:<name>
20827 \end_layout
20828
20829 \end_inset
20830
20831
20832 \begin_inset Quotes erd
20833 \end_inset
20834
20835 ,
20836  where 
20837 \begin_inset Flex Code
20838 status collapsed
20839
20840 \begin_layout Plain Layout
20841 name
20842 \end_layout
20843
20844 \end_inset
20845
20846  may be any valid identifier not used by a pre-existing Flex inset.
20847  The identifier may include spaces,
20848  but in that case the whole thing must be wrapped in quotes.
20849  Note that the definition of a flex inset 
20850 \emph on
20851 must 
20852 \emph default
20853 also include a 
20854 \begin_inset Flex Code
20855 status collapsed
20856
20857 \begin_layout Plain Layout
20858 LyXType
20859 \end_layout
20860
20861 \end_inset
20862
20863  entry,
20864  declaring which type of inset it defines.
20865 \end_layout
20866
20867 \begin_layout Enumerate
20868 The layout for user specific branch is being defined.
20869  In this case,
20870  
20871 \begin_inset Flex Code
20872 status collapsed
20873
20874 \begin_layout Plain Layout
20875 <Type>
20876 \end_layout
20877
20878 \end_inset
20879
20880  must be of the form 
20881 \begin_inset Quotes eld
20882 \end_inset
20883
20884
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 Branch:<name>
20890 \end_layout
20891
20892 \end_inset
20893
20894
20895 \begin_inset Quotes erd
20896 \end_inset
20897
20898 ,
20899  where 
20900 \begin_inset Flex Code
20901 status collapsed
20902
20903 \begin_layout Plain Layout
20904 name
20905 \end_layout
20906
20907 \end_inset
20908
20909  may be any valid identifier of branch defined in user's document.
20910  The identifier may include spaces,
20911  but in that case the whole thing must be wrapped in quotes.
20912  The main purpose of this feature is to allow \SpecialChar LaTeX
20913  wrapping around specific branches as user needs.
20914 \end_layout
20915
20916 \begin_layout Enumerate
20917 The layout of a user (or class) specific caption is being defined.
20918  In this case,
20919  
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 <Type>
20925 \end_layout
20926
20927 \end_inset
20928
20929  must be of the form 
20930 \begin_inset Quotes eld
20931 \end_inset
20932
20933
20934 \begin_inset Flex Code
20935 status collapsed
20936
20937 \begin_layout Plain Layout
20938 Caption:<name>
20939 \end_layout
20940
20941 \end_inset
20942
20943
20944 \begin_inset Quotes erd
20945 \end_inset
20946
20947 ,
20948  where 
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 name
20954 \end_layout
20955
20956 \end_inset
20957
20958  specifies the name of the caption as it appears in the menu.
20959  Have a look at the standard caption (
20960 \begin_inset Flex Code
20961 status collapsed
20962
20963 \begin_layout Plain Layout
20964 Caption:Standard
20965 \end_layout
20966
20967 \end_inset
20968
20969 ),
20970  the specific captions of the KOMA-Script classes (
20971 \begin_inset Flex Code
20972 status collapsed
20973
20974 \begin_layout Plain Layout
20975 Caption:Above
20976 \end_layout
20977
20978 \end_inset
20979
20980 ,
20981  
20982 \begin_inset Flex Code
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986 Caption:Below
20987 \end_layout
20988
20989 \end_inset
20990
20991 ) or the module 
20992 \family sans
20993 Multilingual
20994 \begin_inset space ~
20995 \end_inset
20996
20997 Captions
20998 \begin_inset Newline linebreak
20999 \end_inset
21000
21001
21002 \family default
21003 (
21004 \begin_inset Flex Code
21005 status collapsed
21006
21007 \begin_layout Plain Layout
21008 Caption:Bicaption
21009 \end_layout
21010
21011 \end_inset
21012
21013 ) for applications.
21014 \end_layout
21015
21016 \begin_layout Standard
21017 The 
21018 \begin_inset Flex Code
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022 InsetLayout
21023 \end_layout
21024
21025 \end_inset
21026
21027  definition can contain the following entries:
21028 \end_layout
21029
21030 \begin_layout Description
21031 \begin_inset Flex Code
21032 status collapsed
21033
21034 \begin_layout Plain Layout
21035 AddToToc
21036 \end_layout
21037
21038 \end_inset
21039
21040  [
21041 \begin_inset Flex Code
21042 status collapsed
21043
21044 \begin_layout Plain Layout
21045 string
21046 \end_layout
21047
21048 \end_inset
21049
21050 =""] This inset will appear in the table of contents of the given type.
21051  An empty string disables.
21052  See also the OutlinerName and the IsTocCaption commands.
21053  This is only implemented for Flex insets.
21054  Default:
21055  disabled.
21056 \change_inserted -712698321 1690284265
21057
21058 \end_layout
21059
21060 \begin_layout Description
21061
21062 \change_inserted -712698321 1690284544
21063 \begin_inset Flex Code
21064 status collapsed
21065
21066 \begin_layout Plain Layout
21067
21068 \change_inserted -712698321 1690284277
21069 AllowedInInsets
21070 \change_unchanged
21071
21072 \end_layout
21073
21074 \end_inset
21075
21076  Includes a comma-separated list of insets to which this inset can be inserted.
21077  Must be ended by 
21078 \begin_inset Quotes eld
21079 \end_inset
21080
21081
21082 \begin_inset Flex Code
21083 status collapsed
21084
21085 \begin_layout Plain Layout
21086
21087 \change_inserted -712698321 1690284318
21088 EndAllowedInInsets
21089 \change_unchanged
21090
21091 \end_layout
21092
21093 \end_inset
21094
21095
21096 \begin_inset Quotes erd
21097 \end_inset
21098
21099 .
21100  If you you also want the insertion to be allowed in specific arguments of the target insets,
21101  append the argument name after @ (e.
21102 \begin_inset space \thinspace{}
21103 \end_inset
21104
21105 g.,
21106  
21107 \begin_inset Flex Code
21108 status collapsed
21109
21110 \begin_layout Plain Layout
21111
21112 \change_inserted -712698321 1690284445
21113 My_Inset@post:1
21114 \change_unchanged
21115
21116 \end_layout
21117
21118 \end_inset
21119
21120 ).
21121  Note that this currently only supports immediately containing insets (no deeper nesting).
21122  See also 
21123 \begin_inset Flex Code
21124 status collapsed
21125
21126 \begin_layout Plain Layout
21127
21128 \change_inserted -712698321 1690284329
21129 AllowedInLayouts
21130 \change_unchanged
21131
21132 \end_layout
21133
21134 \end_inset
21135
21136 .
21137 \end_layout
21138
21139 \begin_layout Description
21140
21141 \change_inserted -712698321 1690292495
21142 \begin_inset Flex Code
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146
21147 \change_inserted -712698321 1690284338
21148 AllowedInLayouts
21149 \change_unchanged
21150
21151 \end_layout
21152
21153 \end_inset
21154
21155  Includes a comma-separated list of layouts within which this inset can be inserted.
21156  Must be ended by 
21157 \begin_inset Quotes eld
21158 \end_inset
21159
21160
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165
21166 \change_inserted -712698321 1690284353
21167 EndAllowedInLayouts
21168 \change_unchanged
21169
21170 \end_layout
21171
21172 \end_inset
21173
21174
21175 \begin_inset Quotes erd
21176 \end_inset
21177
21178 .
21179  Note that this currently only supports immediately containing layouts (no deeper nesting).
21180  See also 
21181 \begin_inset Flex Code
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185
21186 \change_inserted -712698321 1690284358
21187 AllowedInInsets
21188 \change_unchanged
21189
21190 \end_layout
21191
21192 \end_inset
21193
21194 .
21195 \end_layout
21196
21197 \begin_layout Description
21198
21199 \change_inserted -712698321 1690357747
21200 \begin_inset Flex Code
21201 status collapsed
21202
21203 \begin_layout Plain Layout
21204
21205 \change_inserted -712698321 1690292501
21206 AllowedOccurrences
21207 \change_unchanged
21208
21209 \end_layout
21210
21211 \end_inset
21212
21213  [
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218
21219 \change_inserted -712698321 1690292507
21220 int
21221 \change_unchanged
21222
21223 \end_layout
21224
21225 \end_inset
21226
21227 ] If 
21228 \begin_inset Flex Code
21229 status collapsed
21230
21231 \begin_layout Plain Layout
21232
21233 \change_inserted -712698321 1690292530
21234 AllowedInInsets
21235 \change_unchanged
21236
21237 \end_layout
21238
21239 \end_inset
21240
21241  or 
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246
21247 \change_inserted -712698321 1690292536
21248 AllowedInLayouts
21249 \change_unchanged
21250
21251 \end_layout
21252
21253 \end_inset
21254
21255  has been defined,
21256  this can be used to determine how many times the inset can be inserted to a given inset or the paragraph (group).
21257 \end_layout
21258
21259 \begin_layout Description
21260
21261 \change_inserted -712698321 1690357828
21262 \begin_inset Flex Code
21263 status collapsed
21264
21265 \begin_layout Plain Layout
21266
21267 \change_inserted -712698321 1690357753
21268 AllowedOccurrencesPerItem
21269 \change_unchanged
21270
21271 \end_layout
21272
21273 \end_inset
21274
21275  [
21276 \begin_inset Flex Code
21277 status collapsed
21278
21279 \begin_layout Plain Layout
21280
21281 \change_inserted -712698321 1690357747
21282
21283 \emph on
21284 0
21285 \change_unchanged
21286
21287 \end_layout
21288
21289 \end_inset
21290
21291 ,
21292 \begin_inset space \thinspace{}
21293 \end_inset
21294
21295
21296 \begin_inset Flex Code
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300
21301 \change_inserted -712698321 1690357747
21302 1
21303 \change_unchanged
21304
21305 \end_layout
21306
21307 \end_inset
21308
21309 ] If this is set to true,
21310  
21311 \begin_inset Flex Code
21312 status collapsed
21313
21314 \begin_layout Plain Layout
21315
21316 \change_inserted -712698321 1690357774
21317 AllowedOccurrences
21318 \change_unchanged
21319
21320 \end_layout
21321
21322 \end_inset
21323
21324  applies to single paragraphs if we are in a list-type environment (with 
21325 \begin_inset Flex Code
21326 status collapsed
21327
21328 \begin_layout Plain Layout
21329
21330 \change_inserted -712698321 1690357825
21331
21332 \backslash
21333 item
21334 \change_unchanged
21335
21336 \end_layout
21337
21338 \end_inset
21339
21340 s).
21341 \change_unchanged
21342
21343 \end_layout
21344
21345 \begin_layout Description
21346 \begin_inset Flex Code
21347 status collapsed
21348
21349 \begin_layout Plain Layout
21350 Argument
21351 \end_layout
21352
21353 \end_inset
21354
21355  [
21356 \begin_inset Flex Code
21357 status collapsed
21358
21359 \begin_layout Plain Layout
21360 int
21361 \end_layout
21362
21363 \end_inset
21364
21365 ] Defines argument number of a command\SpecialChar breakableslash
21366 environment associated with the current layout.
21367  The definition must end with 
21368 \begin_inset Flex Code
21369 status collapsed
21370
21371 \begin_layout Plain Layout
21372 EndArgument
21373 \end_layout
21374
21375 \end_inset
21376
21377 .
21378  See 
21379 \change_inserted -584632292 1615846847
21380
21381 \begin_inset CommandInset ref
21382 LatexCommand ref
21383 reference "subsec:Arguments"
21384 plural "false"
21385 caps "false"
21386 noprefix "false"
21387 nolink "false"
21388
21389 \end_inset
21390
21391
21392 \change_deleted -584632292 1615846847
21393
21394 \begin_inset CommandInset ref
21395 LatexCommand ref
21396 reference "subsec:Paragraph-Styles"
21397 nolink "false"
21398
21399 \end_inset
21400
21401
21402 \change_unchanged
21403  for 
21404 \change_deleted -584632292 1615846902
21405 details
21406 \change_inserted -584632292 1615846906
21407 more information
21408 \change_unchanged
21409 .
21410 \end_layout
21411
21412 \begin_layout Description
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417 BabelPreamble
21418 \end_layout
21419
21420 \end_inset
21421
21422  Preamble for changing language commands;
21423  see 
21424 \begin_inset CommandInset ref
21425 LatexCommand ref
21426 reference "subsec:I18n"
21427 nolink "false"
21428
21429 \end_inset
21430
21431 .
21432 \end_layout
21433
21434 \begin_layout Description
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 BgColor
21440 \end_layout
21441
21442 \end_inset
21443
21444  [
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 <name>
21450 \end_layout
21451
21452 \end_inset
21453
21454 ] The color for the inset's background.
21455  See 
21456 \begin_inset CommandInset ref
21457 LatexCommand ref
21458 reference "chap:Names-of-colors"
21459 nolink "false"
21460
21461 \end_inset
21462
21463  for a list of the available color names.
21464 \end_layout
21465
21466 \begin_layout Description
21467 \begin_inset Flex Code
21468 status collapsed
21469
21470 \begin_layout Plain Layout
21471 ContentAsLabel
21472 \end_layout
21473
21474 \end_inset
21475
21476  [
21477 \begin_inset Flex Code
21478 status collapsed
21479
21480 \begin_layout Plain Layout
21481
21482 \emph on
21483 0
21484 \end_layout
21485
21486 \end_inset
21487
21488 ,
21489 \begin_inset space \thinspace{}
21490 \end_inset
21491
21492
21493 \begin_inset Flex Code
21494 status collapsed
21495
21496 \begin_layout Plain Layout
21497 1
21498 \end_layout
21499
21500 \end_inset
21501
21502 ] Whether to use the content of the inset as the label,
21503  when the inset is closed.
21504  Default is false.
21505 \end_layout
21506
21507 \begin_layout Description
21508 \begin_inset Flex Code
21509 status collapsed
21510
21511 \begin_layout Plain Layout
21512 CopyStyle
21513 \end_layout
21514
21515 \end_inset
21516
21517  [
21518 \begin_inset Flex Code
21519 status collapsed
21520
21521 \begin_layout Plain Layout
21522 <type>
21523 \end_layout
21524
21525 \end_inset
21526
21527 ] As with paragraph styles,
21528  see 
21529 \begin_inset CommandInset ref
21530 LatexCommand ref
21531 reference "subsec:Paragraph-Styles"
21532 nolink "false"
21533
21534 \end_inset
21535
21536 .
21537  Note that you need to specify the complete type,
21538  e.
21539 \begin_inset space \thinspace{}
21540 \end_inset
21541
21542 g.
21543 \begin_inset space ~
21544 \end_inset
21545
21546
21547 \begin_inset Flex Code
21548 status collapsed
21549
21550 \begin_layout Plain Layout
21551 CopyStyle Flex:<name>
21552 \end_layout
21553
21554 \end_inset
21555
21556 .
21557 \end_layout
21558
21559 \begin_layout Description
21560 \begin_inset Flex Code
21561 status collapsed
21562
21563 \begin_layout Plain Layout
21564 CustomPars
21565 \end_layout
21566
21567 \end_inset
21568
21569  [
21570 \begin_inset Flex Code
21571 status collapsed
21572
21573 \begin_layout Plain Layout
21574
21575 \emph on
21576 0
21577 \end_layout
21578
21579 \end_inset
21580
21581 ,
21582 \begin_inset space \thinspace{}
21583 \end_inset
21584
21585
21586 \begin_inset Flex Code
21587 status collapsed
21588
21589 \begin_layout Plain Layout
21590 1
21591 \end_layout
21592
21593 \end_inset
21594
21595 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
21596 \end_layout
21597
21598 \begin_layout Description
21599 \begin_inset Flex Code
21600 status collapsed
21601
21602 \begin_layout Plain Layout
21603 Decoration
21604 \end_layout
21605
21606 \end_inset
21607
21608  can be 
21609 \begin_inset Flex Code
21610 status collapsed
21611
21612 \begin_layout Plain Layout
21613 Classic
21614 \end_layout
21615
21616 \end_inset
21617
21618 ,
21619  
21620 \begin_inset Flex Code
21621 status collapsed
21622
21623 \begin_layout Plain Layout
21624 Minimalistic
21625 \end_layout
21626
21627 \end_inset
21628
21629 ,
21630  or 
21631 \begin_inset Flex Code
21632 status collapsed
21633
21634 \begin_layout Plain Layout
21635 Conglomerate
21636 \end_layout
21637
21638 \end_inset
21639
21640 ,
21641  describing the rendering style used for the inset's frame and buttons.
21642  Footnotes generally use 
21643 \begin_inset Flex Code
21644 status collapsed
21645
21646 \begin_layout Plain Layout
21647 Classic
21648 \end_layout
21649
21650 \end_inset
21651
21652 ,
21653  ERT insets generally 
21654 \begin_inset Flex Code
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658 Minimalistic
21659 \end_layout
21660
21661 \end_inset
21662
21663 ,
21664  and character styles 
21665 \begin_inset Flex Code
21666 status collapsed
21667
21668 \begin_layout Plain Layout
21669 Conglomerate
21670 \end_layout
21671
21672 \end_inset
21673
21674 .
21675 \end_layout
21676
21677 \begin_layout Description
21678 \begin_inset Flex Code
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682 Display
21683 \end_layout
21684
21685 \end_inset
21686
21687  [
21688 \begin_inset Flex Code
21689 status collapsed
21690
21691 \begin_layout Plain Layout
21692 0
21693 \end_layout
21694
21695 \end_inset
21696
21697 ,
21698 \emph on
21699
21700 \begin_inset space \thinspace{}
21701 \end_inset
21702
21703
21704 \emph default
21705
21706 \begin_inset Flex Code
21707 status collapsed
21708
21709 \begin_layout Plain Layout
21710
21711 \emph on
21712 1
21713 \end_layout
21714
21715 \end_inset
21716
21717 ] Only useful if 
21718 \begin_inset Flex Code
21719 status collapsed
21720
21721 \begin_layout Plain Layout
21722 LatexType
21723 \end_layout
21724
21725 \end_inset
21726
21727  is 
21728 \begin_inset Flex Code
21729 status collapsed
21730
21731 \begin_layout Plain Layout
21732 Environment
21733 \end_layout
21734
21735 \end_inset
21736
21737 .
21738  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
21739  If set to false,
21740  it is supposed that the \SpecialChar LaTeX
21741  environment ignores white space (including one newline character) after the 
21742 \begin_inset Flex Code
21743 status collapsed
21744
21745 \begin_layout Plain Layout
21746
21747 \backslash
21748 begin{
21749 \emph on
21750 LatexName
21751 \emph default
21752 }
21753 \end_layout
21754
21755 \end_inset
21756
21757  and 
21758 \begin_inset Flex Code
21759 status collapsed
21760
21761 \begin_layout Plain Layout
21762
21763 \backslash
21764 end{
21765 \emph on
21766 LatexName
21767 \emph default
21768 }
21769 \end_layout
21770
21771 \end_inset
21772
21773  tags.
21774  Default is true.
21775 \change_inserted 731793113 1538674858
21776
21777 \end_layout
21778
21779 \begin_layout Description
21780
21781 \change_inserted 731793113 1538674891
21782 \begin_inset Flex Code
21783 status open
21784
21785 \begin_layout Plain Layout
21786
21787 \change_inserted 731793113 1538674863
21788 EditExternal
21789 \change_unchanged
21790
21791 \end_layout
21792
21793 \end_inset
21794
21795  [
21796 \emph on
21797 0
21798 \emph default
21799 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
21800 \change_unchanged
21801
21802 \end_layout
21803
21804 \begin_layout Description
21805 \begin_inset Flex Code
21806 status collapsed
21807
21808 \begin_layout Plain Layout
21809 End
21810 \end_layout
21811
21812 \end_inset
21813
21814  Required at the end of the 
21815 \begin_inset Flex Code
21816 status collapsed
21817
21818 \begin_layout Plain Layout
21819 InsetLayout
21820 \end_layout
21821
21822 \end_inset
21823
21824  declarations.
21825 \end_layout
21826
21827 \begin_layout Description
21828 \begin_inset Flex Code
21829 status collapsed
21830
21831 \begin_layout Plain Layout
21832 Font
21833 \end_layout
21834
21835 \end_inset
21836
21837  The font used for both the text body 
21838 \emph on
21839 and
21840 \emph default
21841  the label.
21842  See 
21843 \begin_inset CommandInset ref
21844 LatexCommand formatted
21845 reference "subsec:Font-description"
21846 nolink "false"
21847
21848 \end_inset
21849
21850 .
21851  Note that defining this font automatically defines the 
21852 \begin_inset Flex Code
21853 status collapsed
21854
21855 \begin_layout Plain Layout
21856 LabelFont
21857 \end_layout
21858
21859 \end_inset
21860
21861  to the same value,
21862  so define this first and define 
21863 \begin_inset Flex Code
21864 status collapsed
21865
21866 \begin_layout Plain Layout
21867 LabelFont
21868 \end_layout
21869
21870 \end_inset
21871
21872  later if you want them to be different.
21873 \end_layout
21874
21875 \begin_layout Description
21876 \begin_inset Flex Code
21877 status collapsed
21878
21879 \begin_layout Plain Layout
21880 FixedWidthPreambleEncoding
21881 \end_layout
21882
21883 \end_inset
21884
21885  [
21886 \begin_inset Flex Code
21887 status collapsed
21888
21889 \begin_layout Plain Layout
21890
21891 \emph on
21892 0
21893 \end_layout
21894
21895 \end_inset
21896
21897 ,
21898 \begin_inset space \thinspace{}
21899 \end_inset
21900
21901
21902 \begin_inset Flex Code
21903 status collapsed
21904
21905 \begin_layout Plain Layout
21906 1
21907 \end_layout
21908
21909 \end_inset
21910
21911 ] Force a fixed width encoding for the translated contents of 
21912 \begin_inset Flex Code
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916 BabelPreamble
21917 \end_layout
21918
21919 \end_inset
21920
21921  and 
21922 \begin_inset Flex Code
21923 status collapsed
21924
21925 \begin_layout Plain Layout
21926 LangPreamble
21927 \end_layout
21928
21929 \end_inset
21930
21931  code generated by this layout.
21932  This is needed for special \SpecialChar LaTeX
21933 -packages like 
21934 \family typewriter
21935 listings
21936 \family default
21937  that do not work with variable width encodings such as 
21938 \family sans
21939 utf8
21940 \family default
21941 .
21942  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
21943  backends such as Xe\SpecialChar TeX
21944  or Lua\SpecialChar TeX
21945  are used.
21946 \end_layout
21947
21948 \begin_layout Description
21949 \begin_inset Flex Code
21950 status collapsed
21951
21952 \begin_layout Plain Layout
21953 ForceLocalFontSwitch
21954 \end_layout
21955
21956 \end_inset
21957
21958  [
21959 \begin_inset Flex Code
21960 status collapsed
21961
21962 \begin_layout Plain Layout
21963
21964 \emph on
21965 0
21966 \end_layout
21967
21968 \end_inset
21969
21970 ,
21971 \begin_inset space \thinspace{}
21972 \end_inset
21973
21974
21975 \begin_inset Flex Code
21976 status collapsed
21977
21978 \begin_layout Plain Layout
21979 1
21980 \end_layout
21981
21982 \end_inset
21983
21984 ] When using babel,
21985  always use a local font switch (
21986 \begin_inset Flex Code
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990
21991 \backslash
21992 foreignlanguage
21993 \end_layout
21994
21995 \end_inset
21996
21997 ),
21998  never a global one (such as 
21999 \begin_inset Flex Code
22000 status collapsed
22001
22002 \begin_layout Plain Layout
22003
22004 \backslash
22005 selectlanguage
22006 \end_layout
22007
22008 \end_inset
22009
22010 ).
22011 \end_layout
22012
22013 \begin_layout Description
22014 \begin_inset Flex Code
22015 status collapsed
22016
22017 \begin_layout Plain Layout
22018 ForceLTR
22019 \end_layout
22020
22021 \end_inset
22022
22023  [
22024 \begin_inset Flex Code
22025 status collapsed
22026
22027 \begin_layout Plain Layout
22028
22029 \emph on
22030 0
22031 \end_layout
22032
22033 \end_inset
22034
22035 ,
22036 \begin_inset space \thinspace{}
22037 \end_inset
22038
22039
22040 \begin_inset Flex Code
22041 status collapsed
22042
22043 \begin_layout Plain Layout
22044 1
22045 \end_layout
22046
22047 \end_inset
22048
22049 ] Force the 
22050 \begin_inset Quotes eld
22051 \end_inset
22052
22053 latex
22054 \begin_inset Quotes erd
22055 \end_inset
22056
22057  language,
22058  leading to Left-to-Right (Latin) output,
22059  e.
22060 \begin_inset space \thinspace{}
22061 \end_inset
22062
22063 g.
22064 \begin_inset space \space{}
22065 \end_inset
22066
22067 in \SpecialChar TeX
22068  code or URL.
22069  A kludge.
22070 \end_layout
22071
22072 \begin_layout Description
22073 \begin_inset Flex Code
22074 status collapsed
22075
22076 \begin_layout Plain Layout
22077 ForceOwnlines
22078 \end_layout
22079
22080 \end_inset
22081
22082  [
22083 \begin_inset Flex Code
22084 status collapsed
22085
22086 \begin_layout Plain Layout
22087
22088 \emph on
22089 0
22090 \end_layout
22091
22092 \end_inset
22093
22094 ,
22095 \begin_inset space \thinspace{}
22096 \end_inset
22097
22098
22099 \begin_inset Flex Code
22100 status collapsed
22101
22102 \begin_layout Plain Layout
22103 1
22104 \end_layout
22105
22106 \end_inset
22107
22108 ] Force a line break in the \SpecialChar LaTeX
22109  output before the inset starts and after the inset ends.
22110  This assures the inset itself is output on its own lines,
22111  for parsing purposes.
22112 \end_layout
22113
22114 \begin_layout Description
22115 \begin_inset Flex Code
22116 status collapsed
22117
22118 \begin_layout Plain Layout
22119 ForcePlain
22120 \end_layout
22121
22122 \end_inset
22123
22124  [
22125 \begin_inset Flex Code
22126 status collapsed
22127
22128 \begin_layout Plain Layout
22129
22130 \emph on
22131 0
22132 \end_layout
22133
22134 \end_inset
22135
22136 ,
22137 \begin_inset space \thinspace{}
22138 \end_inset
22139
22140
22141 \begin_inset Flex Code
22142 status collapsed
22143
22144 \begin_layout Plain Layout
22145 1
22146 \end_layout
22147
22148 \end_inset
22149
22150 ] Indicates whether the 
22151 \begin_inset Flex Code
22152 status collapsed
22153
22154 \begin_layout Plain Layout
22155 PlainLayout
22156 \end_layout
22157
22158 \end_inset
22159
22160  should be used or,
22161  instead,
22162  the user can change the paragraph style used in the inset.
22163  Default is false.
22164 \end_layout
22165
22166 \begin_layout Description
22167 \begin_inset Flex Code
22168 status collapsed
22169
22170 \begin_layout Plain Layout
22171 FreeSpacing
22172 \end_layout
22173
22174 \end_inset
22175
22176  [
22177 \begin_inset Flex Code
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181
22182 \emph on
22183 0
22184 \end_layout
22185
22186 \end_inset
22187
22188 ,
22189 \begin_inset space \thinspace{}
22190 \end_inset
22191
22192
22193 \begin_inset Flex Code
22194 status collapsed
22195
22196 \begin_layout Plain Layout
22197 1
22198 \end_layout
22199
22200 \end_inset
22201
22202 ] As with paragraph styles,
22203  see 
22204 \begin_inset CommandInset ref
22205 LatexCommand ref
22206 reference "subsec:Paragraph-Styles"
22207 nolink "false"
22208
22209 \end_inset
22210
22211 .
22212 \end_layout
22213
22214 \begin_layout Description
22215 \begin_inset Flex Code
22216 status collapsed
22217
22218 \begin_layout Plain Layout
22219 HTML*
22220 \end_layout
22221
22222 \end_inset
22223
22224  These tags control the XHTML output.
22225  See 
22226 \begin_inset CommandInset ref
22227 LatexCommand ref
22228 reference "sec:Tags-for-XHTML"
22229 nolink "false"
22230
22231 \end_inset
22232
22233 .
22234 \change_inserted 47243155 1689528605
22235
22236 \end_layout
22237
22238 \begin_layout Description
22239
22240 \change_inserted 47243155 1689528735
22241 \begin_inset Flex Code
22242 status collapsed
22243
22244 \begin_layout Plain Layout
22245
22246 \change_inserted 47243155 1689528630
22247 InheritFont
22248 \change_unchanged
22249
22250 \end_layout
22251
22252 \end_inset
22253
22254  [
22255 \begin_inset Flex Code
22256 status collapsed
22257
22258 \begin_layout Plain Layout
22259
22260 \change_inserted 47243155 1689528607
22261 0
22262 \change_unchanged
22263
22264 \end_layout
22265
22266 \end_inset
22267
22268 ,
22269 \begin_inset space \thinspace{}
22270 \end_inset
22271
22272
22273 \begin_inset Flex Code
22274 status collapsed
22275
22276 \begin_layout Plain Layout
22277
22278 \change_inserted 47243155 1689528607
22279
22280 \emph on
22281 1
22282 \change_unchanged
22283
22284 \end_layout
22285
22286 \end_inset
22287
22288 ] The font inside the inset is inherited from the parent for \SpecialChar LaTeX
22289  export if this parameter is 1,
22290  as well as on screen.
22291  Otherwise the document default font is used.
22292 \change_unchanged
22293
22294 \end_layout
22295
22296 \begin_layout Description
22297 \begin_inset Flex Code
22298 status collapsed
22299
22300 \begin_layout Plain Layout
22301 InToc
22302 \end_layout
22303
22304 \end_inset
22305
22306  [
22307 \begin_inset Flex Code
22308 status collapsed
22309
22310 \begin_layout Plain Layout
22311
22312 \emph on
22313 0
22314 \end_layout
22315
22316 \end_inset
22317
22318 ,
22319 \begin_inset space \thinspace{}
22320 \end_inset
22321
22322
22323 \begin_inset Flex Code
22324 status collapsed
22325
22326 \begin_layout Plain Layout
22327 1
22328 \end_layout
22329
22330 \end_inset
22331
22332 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
22333  regardless of the AddToToc setting.
22334  One would not,
22335  for example,
22336  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
22337  but one would normally want the content of a character style displayed.
22338  Default is false:
22339  not to include.
22340 \end_layout
22341
22342 \begin_layout Description
22343 \begin_inset Flex Code
22344 status collapsed
22345
22346 \begin_layout Plain Layout
22347 IsTocCaption
22348 \end_layout
22349
22350 \end_inset
22351
22352  [
22353 \begin_inset Flex Code
22354 status collapsed
22355
22356 \begin_layout Plain Layout
22357
22358 \emph on
22359 0
22360 \end_layout
22361
22362 \end_inset
22363
22364 ,
22365 \begin_inset space \thinspace{}
22366 \end_inset
22367
22368
22369 \begin_inset Flex Code
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373 1
22374 \end_layout
22375
22376 \end_inset
22377
22378 ] If this is set to 1 and AddToToc is enabled,
22379  the inset adds a summary of its contents in its item in the table of contents.
22380  Otherwise,
22381  only the label appears.
22382 \end_layout
22383
22384 \begin_layout Description
22385 \begin_inset Flex Code
22386 status collapsed
22387
22388 \begin_layout Plain Layout
22389 KeepEmpty
22390 \end_layout
22391
22392 \end_inset
22393
22394  [
22395 \emph on
22396
22397 \begin_inset Flex Code
22398 status collapsed
22399
22400 \begin_layout Plain Layout
22401 0
22402 \end_layout
22403
22404 \end_inset
22405
22406
22407 \emph default
22408 ,
22409 \begin_inset space \thinspace{}
22410 \end_inset
22411
22412
22413 \begin_inset Flex Code
22414 status collapsed
22415
22416 \begin_layout Plain Layout
22417 1
22418 \end_layout
22419
22420 \end_inset
22421
22422 ] As with paragraph styles,
22423  see 
22424 \begin_inset CommandInset ref
22425 LatexCommand ref
22426 reference "subsec:Paragraph-Styles"
22427 nolink "false"
22428
22429 \end_inset
22430
22431 .
22432 \end_layout
22433
22434 \begin_layout Description
22435 \begin_inset Flex Code
22436 status collapsed
22437
22438 \begin_layout Plain Layout
22439 LabelFont
22440 \end_layout
22441
22442 \end_inset
22443
22444  The font used for the label.
22445  See 
22446 \begin_inset CommandInset ref
22447 LatexCommand ref
22448 reference "subsec:Font-description"
22449 nolink "false"
22450
22451 \end_inset
22452
22453 .
22454  Note that this definition can never appear before 
22455 \begin_inset Flex Code
22456 status collapsed
22457
22458 \begin_layout Plain Layout
22459 Font
22460 \end_layout
22461
22462 \end_inset
22463
22464 ,
22465  lest it be ineffective.
22466 \end_layout
22467
22468 \begin_layout Description
22469 \begin_inset Flex Code
22470 status collapsed
22471
22472 \begin_layout Plain Layout
22473 LabelString
22474 \end_layout
22475
22476 \end_inset
22477
22478  [
22479 \begin_inset Flex Code
22480 status collapsed
22481
22482 \begin_layout Plain Layout
22483 string
22484 \end_layout
22485
22486 \end_inset
22487
22488 =
22489 \begin_inset Quotes erd
22490 \end_inset
22491
22492
22493 \begin_inset Quotes erd
22494 \end_inset
22495
22496 ] What will be displayed on the button or elsewhere as the inset label.
22497  Some inset types (
22498 \begin_inset Flex Code
22499 status collapsed
22500
22501 \begin_layout Plain Layout
22502 \SpecialChar TeX
22503  code
22504 \end_layout
22505
22506 \end_inset
22507
22508  and 
22509 \begin_inset Flex Code
22510 status collapsed
22511
22512 \begin_layout Plain Layout
22513 Branch
22514 \end_layout
22515
22516 \end_inset
22517
22518 ) modify this label on the fly.
22519 \end_layout
22520
22521 \begin_layout Description
22522 \begin_inset Flex Code
22523 status collapsed
22524
22525 \begin_layout Plain Layout
22526 LangPreamble
22527 \end_layout
22528
22529 \end_inset
22530
22531  Language dependent preamble;
22532  see 
22533 \begin_inset CommandInset ref
22534 LatexCommand ref
22535 reference "subsec:I18n"
22536 nolink "false"
22537
22538 \end_inset
22539
22540 .
22541 \end_layout
22542
22543 \begin_layout Description
22544 \begin_inset Flex Code
22545 status collapsed
22546
22547 \begin_layout Plain Layout
22548 LatexName
22549 \end_layout
22550
22551 \end_inset
22552
22553  [
22554 \begin_inset Flex Code
22555 status collapsed
22556
22557 \begin_layout Plain Layout
22558 <name>
22559 \end_layout
22560
22561 \end_inset
22562
22563 ] The name of the corresponding \SpecialChar LaTeX
22564  stuff.
22565  Either the environment or command name.
22566 \end_layout
22567
22568 \begin_layout Description
22569 \begin_inset Flex Code
22570 status collapsed
22571
22572 \begin_layout Plain Layout
22573 LatexParam
22574 \end_layout
22575
22576 \end_inset
22577
22578  [
22579 \begin_inset Flex Code
22580 status collapsed
22581
22582 \begin_layout Plain Layout
22583 <parameter>
22584 \end_layout
22585
22586 \end_inset
22587
22588 ] The optional parameter for the corresponding 
22589 \begin_inset Flex Code
22590 status collapsed
22591
22592 \begin_layout Plain Layout
22593 LatexName
22594 \end_layout
22595
22596 \end_inset
22597
22598  stuff,
22599  including possible bracket pairs like 
22600 \begin_inset Flex Code
22601 status collapsed
22602
22603 \begin_layout Plain Layout
22604 []
22605 \end_layout
22606
22607 \end_inset
22608
22609 .
22610  This parameter cannot be changed from within \SpecialChar LyX
22611  (use 
22612 \begin_inset Flex Code
22613 status collapsed
22614
22615 \begin_layout Plain Layout
22616 Argument
22617 \end_layout
22618
22619 \end_inset
22620
22621  for customizable parameters).
22622  It will be output as is after all \SpecialChar LaTeX
22623  
22624 \begin_inset Flex Code
22625 status collapsed
22626
22627 \begin_layout Plain Layout
22628 Argument
22629 \end_layout
22630
22631 \end_inset
22632
22633 s.
22634 \end_layout
22635
22636 \begin_layout Description
22637 \begin_inset Flex Code
22638 status collapsed
22639
22640 \begin_layout Plain Layout
22641 LatexType
22642 \end_layout
22643
22644 \end_inset
22645
22646  [
22647 \begin_inset Flex Code
22648 status collapsed
22649
22650 \begin_layout Plain Layout
22651 Command,
22652  Environment,
22653  None
22654 \end_layout
22655
22656 \end_inset
22657
22658 ] How the style should be translated into \SpecialChar LaTeX
22659 .
22660 \begin_inset Foot
22661 status collapsed
22662
22663 \begin_layout Plain Layout
22664 \begin_inset Flex Code
22665 status collapsed
22666
22667 \begin_layout Plain Layout
22668 LatexType
22669 \end_layout
22670
22671 \end_inset
22672
22673  is perhaps a bit misleading,
22674  since these rules apply to SGML classes too.
22675  Visit the SGML class files for specific examples.
22676 \end_layout
22677
22678 \end_inset
22679
22680
22681 \end_layout
22682
22683 \begin_deeper
22684 \begin_layout Description
22685 \begin_inset Flex Code
22686 status collapsed
22687
22688 \begin_layout Plain Layout
22689 None
22690 \end_layout
22691
22692 \end_inset
22693
22694  means nothing special
22695 \end_layout
22696
22697 \begin_layout Description
22698 \begin_inset Flex Code
22699 status collapsed
22700
22701 \begin_layout Plain Layout
22702 Command
22703 \end_layout
22704
22705 \end_inset
22706
22707  means 
22708 \begin_inset Flex Code
22709 status collapsed
22710
22711 \begin_layout Plain Layout
22712
22713 \backslash
22714
22715 \emph on
22716 LatexName
22717 \emph default
22718 {\SpecialChar ldots
22719 }
22720 \end_layout
22721
22722 \end_inset
22723
22724
22725 \end_layout
22726
22727 \begin_layout Description
22728 \begin_inset Flex Code
22729 status collapsed
22730
22731 \begin_layout Plain Layout
22732 Environment
22733 \end_layout
22734
22735 \end_inset
22736
22737  means 
22738 \begin_inset Flex Code
22739 status collapsed
22740
22741 \begin_layout Plain Layout
22742
22743 \backslash
22744 begin{
22745 \emph on
22746 LatexName
22747 \emph default
22748 }\SpecialChar ldots
22749
22750 \backslash
22751 end{
22752 \emph on
22753 LatexName
22754 \emph default
22755 }
22756 \end_layout
22757
22758 \end_inset
22759
22760
22761 \end_layout
22762
22763 \begin_layout Standard
22764 Putting the last few things together,
22765  the \SpecialChar LaTeX
22766  output will be either:
22767  
22768 \end_layout
22769
22770 \begin_layout LyX-Code
22771
22772 \backslash
22773 LatexName[LatexParam]{\SpecialChar ldots
22774 }
22775 \end_layout
22776
22777 \begin_layout Standard
22778 or:
22779  
22780 \end_layout
22781
22782 \begin_layout LyX-Code
22783
22784 \backslash
22785 begin{LatexName}[LatexParam] \SpecialChar ldots
22786  
22787 \backslash
22788 end{LatexName}
22789 \end_layout
22790
22791 \begin_layout Standard
22792 depending upon the \SpecialChar LaTeX
22793  type.
22794 \end_layout
22795
22796 \end_deeper
22797 \begin_layout Description
22798 \begin_inset Flex Code
22799 status collapsed
22800
22801 \begin_layout Plain Layout
22802 LeftDelim
22803 \end_layout
22804
22805 \end_inset
22806
22807  [
22808 \begin_inset Flex Code
22809 status collapsed
22810
22811 \begin_layout Plain Layout
22812 string
22813 \end_layout
22814
22815 \end_inset
22816
22817 ] A string that is put at the beginning of the layout content.
22818  A line break in the output can be indicated by 
22819 \begin_inset Flex Code
22820 status collapsed
22821
22822 \begin_layout Plain Layout
22823 <br/>
22824 \end_layout
22825
22826 \end_inset
22827
22828 .
22829 \end_layout
22830
22831 \begin_layout Description
22832 \begin_inset Flex Code
22833 status collapsed
22834
22835 \begin_layout Plain Layout
22836 LyxType
22837 \end_layout
22838
22839 \end_inset
22840
22841  Can be 
22842 \begin_inset Flex Code
22843 status collapsed
22844
22845 \begin_layout Plain Layout
22846 charstyle
22847 \end_layout
22848
22849 \end_inset
22850
22851 ,
22852  
22853 \begin_inset Flex Code
22854 status collapsed
22855
22856 \begin_layout Plain Layout
22857 custom
22858 \end_layout
22859
22860 \end_inset
22861
22862 ,
22863  
22864 \change_deleted -584632292 1615846609
22865
22866 \begin_inset Flex Code
22867 status collapsed
22868
22869 \begin_layout Plain Layout
22870 element
22871 \end_layout
22872
22873 \end_inset
22874
22875  
22876 \change_unchanged
22877 or 
22878 \begin_inset Flex Code
22879 status collapsed
22880
22881 \begin_layout Plain Layout
22882 end
22883 \end_layout
22884
22885 \end_inset
22886
22887  (indicating a dummy definition ending definitions of charstyles,
22888  etc).
22889  This entry is required in and is only meaningful for Flex insets.
22890  Among other things,
22891  it determines on which menu this inset will appear.
22892  Setting 
22893 \begin_inset Flex Code
22894 status collapsed
22895
22896 \begin_layout Plain Layout
22897 LyxType
22898 \end_layout
22899
22900 \end_inset
22901
22902  to 
22903 \begin_inset Flex Code
22904 status collapsed
22905
22906 \begin_layout Plain Layout
22907 charstyle
22908 \end_layout
22909
22910 \end_inset
22911
22912  will automatically set 
22913 \begin_inset Flex Code
22914 status collapsed
22915
22916 \begin_layout Plain Layout
22917 MultiPar
22918 \end_layout
22919
22920 \end_inset
22921
22922  to false and 
22923 \begin_inset Flex Code
22924 status collapsed
22925
22926 \begin_layout Plain Layout
22927 ForcePlain
22928 \end_layout
22929
22930 \end_inset
22931
22932  to true.
22933  
22934 \begin_inset Flex Code
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938 MultiPar
22939 \end_layout
22940
22941 \end_inset
22942
22943  can be set to true,
22944  or 
22945 \begin_inset Flex Code
22946 status collapsed
22947
22948 \begin_layout Plain Layout
22949 ForcePlain
22950 \end_layout
22951
22952 \end_inset
22953
22954  to false,
22955  for 
22956 \begin_inset Flex Code
22957 status collapsed
22958
22959 \begin_layout Plain Layout
22960 charstyle
22961 \end_layout
22962
22963 \end_inset
22964
22965  insets by setting it 
22966 \emph on
22967 after
22968 \emph default
22969  you set the 
22970 \begin_inset Flex Code
22971 status collapsed
22972
22973 \begin_layout Plain Layout
22974 LyxType
22975 \end_layout
22976
22977 \end_inset
22978
22979 .
22980 \change_inserted -712698321 1555575738
22981
22982 \end_layout
22983
22984 \begin_layout Description
22985
22986 \change_inserted -712698321 1555575844
22987 \begin_inset Flex Code
22988 status collapsed
22989
22990 \begin_layout Plain Layout
22991
22992 \change_inserted -712698321 1555575740
22993 MenuString
22994 \change_unchanged
22995
22996 \end_layout
22997
22998 \end_inset
22999
23000  
23001 \begin_inset Flex Code
23002 status collapsed
23003
23004 \begin_layout Plain Layout
23005
23006 \change_inserted -712698321 1555575740
23007 [string]
23008 \change_unchanged
23009
23010 \end_layout
23011
23012 \end_inset
23013
23014  A dedicated string for the menu.
23015  You can define an accelerator by appending the respective character to the string,
23016  divided by 
23017 \begin_inset Quotes eld
23018 \end_inset
23019
23020 |
23021 \begin_inset Quotes erd
23022 \end_inset
23023
23024  (e.
23025 \begin_inset space \thinspace{}
23026 \end_inset
23027
23028 g.
23029 \begin_inset space \space{}
23030 \end_inset
23031
23032
23033 \begin_inset Quotes eld
23034 \end_inset
23035
23036
23037 \begin_inset Flex Code
23038 status collapsed
23039
23040 \begin_layout Plain Layout
23041
23042 \change_inserted -712698321 1555575781
23043 My Inset|M
23044 \change_unchanged
23045
23046 \end_layout
23047
23048 \end_inset
23049
23050
23051 \begin_inset Quotes erd
23052 \end_inset
23053
23054 ).
23055  This specification is optional.
23056  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
23057 \change_unchanged
23058
23059 \end_layout
23060
23061 \begin_layout Description
23062 \begin_inset Flex Code
23063 status collapsed
23064
23065 \begin_layout Plain Layout
23066 MultiPar
23067 \end_layout
23068
23069 \end_inset
23070
23071  [
23072 \begin_inset Flex Code
23073 status collapsed
23074
23075 \begin_layout Plain Layout
23076
23077 \emph on
23078 0
23079 \end_layout
23080
23081 \end_inset
23082
23083 ,
23084 \begin_inset space \thinspace{}
23085 \end_inset
23086
23087
23088 \begin_inset Flex Code
23089 status collapsed
23090
23091 \begin_layout Plain Layout
23092 1
23093 \end_layout
23094
23095 \end_inset
23096
23097 ] Whether multiple paragraphs are permitted in this inset.
23098  This will also set 
23099 \begin_inset Flex Code
23100 status collapsed
23101
23102 \begin_layout Plain Layout
23103 CustomPars
23104 \end_layout
23105
23106 \end_inset
23107
23108  to the same value and 
23109 \begin_inset Flex Code
23110 status collapsed
23111
23112 \begin_layout Plain Layout
23113 ForcePlain
23114 \end_layout
23115
23116 \end_inset
23117
23118  to the opposite value.
23119  These can be reset to other values,
23120  if they are used 
23121 \emph on
23122 after
23123 \emph default
23124  
23125 \begin_inset Flex Code
23126 status collapsed
23127
23128 \begin_layout Plain Layout
23129 MultiPar
23130 \end_layout
23131
23132 \end_inset
23133
23134 .
23135  Default is true.
23136 \end_layout
23137
23138 \begin_layout Description
23139 \begin_inset Flex Code
23140 status collapsed
23141
23142 \begin_layout Plain Layout
23143 NeedProtect
23144 \end_layout
23145
23146 \end_inset
23147
23148  [
23149 \begin_inset Flex Code
23150 status collapsed
23151
23152 \begin_layout Plain Layout
23153
23154 \emph on
23155 0
23156 \end_layout
23157
23158 \end_inset
23159
23160 ,
23161 \begin_inset space \thinspace{}
23162 \end_inset
23163
23164
23165 \begin_inset Flex Code
23166 status collapsed
23167
23168 \begin_layout Plain Layout
23169 1
23170 \end_layout
23171
23172 \end_inset
23173
23174 ] Whether fragile commands in this inset should be 
23175 \begin_inset Flex Code
23176 status collapsed
23177
23178 \begin_layout Plain Layout
23179
23180 \backslash
23181 protect
23182 \end_layout
23183
23184 \end_inset
23185
23186 'ed.
23187  (Note:
23188  This is 
23189 \emph on
23190 not
23191 \emph default
23192  whether the command should itself be protected.) Default is false.
23193 \change_inserted -712698321 1523633958
23194
23195 \end_layout
23196
23197 \begin_layout Description
23198
23199 \change_inserted -712698321 1552395786
23200 \begin_inset Flex Code
23201 status collapsed
23202
23203 \begin_layout Plain Layout
23204
23205 \change_inserted -712698321 1523633961
23206 NeedCProtect
23207 \change_unchanged
23208
23209 \end_layout
23210
23211 \end_inset
23212
23213  [
23214 \begin_inset Flex Code
23215 status collapsed
23216
23217 \begin_layout Plain Layout
23218
23219 \change_inserted -712698321 1523633958
23220
23221 \emph on
23222 0
23223 \change_unchanged
23224
23225 \end_layout
23226
23227 \end_inset
23228
23229 ,
23230 \begin_inset space \thinspace{}
23231 \end_inset
23232
23233
23234 \begin_inset Flex Code
23235 status collapsed
23236
23237 \begin_layout Plain Layout
23238
23239 \change_inserted -712698321 1523633958
23240 1
23241 \change_unchanged
23242
23243 \end_layout
23244
23245 \end_inset
23246
23247 ] This causes macros that contain this inset to be protected with 
23248 \begin_inset Flex Code
23249 status collapsed
23250
23251 \begin_layout Plain Layout
23252
23253 \change_inserted -712698321 1523634038
23254
23255 \backslash
23256 cprotect
23257 \change_unchanged
23258
23259 \end_layout
23260
23261 \end_inset
23262
23263  (cf.
23264  package 
23265 \family sans
23266 cprotect
23267 \family default
23268 ) if necessary and thus allows (some) verbatim stuff in macros.
23269  Default is false.
23270 \end_layout
23271
23272 \begin_layout Description
23273
23274 \change_inserted -712698321 1555579651
23275 \begin_inset Flex Code
23276 status collapsed
23277
23278 \begin_layout Plain Layout
23279
23280 \change_inserted -712698321 1552395787
23281 NeedMBoxProtect
23282 \change_unchanged
23283
23284 \end_layout
23285
23286 \end_inset
23287
23288  [
23289 \begin_inset Flex Code
23290 status collapsed
23291
23292 \begin_layout Plain Layout
23293
23294 \change_inserted -712698321 1552395787
23295
23296 \emph on
23297 0
23298 \change_unchanged
23299
23300 \end_layout
23301
23302 \end_inset
23303
23304 ,
23305 \begin_inset space \thinspace{}
23306 \end_inset
23307
23308
23309 \begin_inset Flex Code
23310 status collapsed
23311
23312 \begin_layout Plain Layout
23313
23314 \change_inserted -712698321 1552395787
23315 1
23316 \change_unchanged
23317
23318 \end_layout
23319
23320 \end_inset
23321
23322 ] Whether specific commands in this inset (such as 
23323 \begin_inset Flex Code
23324 status collapsed
23325
23326 \begin_layout Plain Layout
23327
23328 \change_inserted -712698321 1552395787
23329
23330 \backslash
23331 cite
23332 \change_unchanged
23333
23334 \end_layout
23335
23336 \end_inset
23337
23338  and 
23339 \begin_inset Flex Code
23340 status collapsed
23341
23342 \begin_layout Plain Layout
23343
23344 \change_inserted -712698321 1552395787
23345
23346 \backslash
23347 ref
23348 \change_unchanged
23349
23350 \end_layout
23351
23352 \end_inset
23353
23354 ) should be protected in an 
23355 \begin_inset Flex Code
23356 status collapsed
23357
23358 \begin_layout Plain Layout
23359
23360 \change_inserted -712698321 1552395787
23361
23362 \backslash
23363 mbox
23364 \change_unchanged
23365
23366 \end_layout
23367
23368 \end_inset
23369
23370 .
23371  This is particularly needed for insets that draw on 
23372 \family sans
23373 ulem
23374 \family default
23375  or 
23376 \family sans
23377 soul
23378 \family default
23379  commands which parse their content in complex ways.
23380  Default is false.
23381 \end_layout
23382
23383 \begin_layout Description
23384
23385 \change_inserted -712698321 1555579742
23386 \begin_inset Flex Code
23387 status collapsed
23388
23389 \begin_layout Plain Layout
23390
23391 \change_inserted -712698321 1555579658
23392 NewlineCmd
23393 \change_unchanged
23394
23395 \end_layout
23396
23397 \end_inset
23398
23399  
23400 \begin_inset Flex Code
23401 status collapsed
23402
23403 \begin_layout Plain Layout
23404
23405 \change_inserted -712698321 1555579651
23406 [string]
23407 \change_unchanged
23408
23409 \end_layout
23410
23411 \end_inset
23412
23413  Option to define a different command (from the default 
23414 \begin_inset Flex Code
23415 status collapsed
23416
23417 \begin_layout Plain Layout
23418
23419 \change_inserted -712698321 1555579742
23420
23421 \backslash
23422
23423 \backslash
23424
23425 \change_unchanged
23426
23427 \end_layout
23428
23429 \end_inset
23430
23431 ) to be used for line breaks.
23432  The initial backslash must not be specified.
23433 \change_unchanged
23434
23435 \end_layout
23436
23437 \begin_layout Description
23438 \begin_inset Flex Code
23439 status collapsed
23440
23441 \begin_layout Plain Layout
23442 NoInsetLayout
23443 \end_layout
23444
23445 \end_inset
23446
23447  [
23448 \begin_inset Flex Code
23449 status collapsed
23450
23451 \begin_layout Plain Layout
23452 <layout>
23453 \end_layout
23454
23455 \end_inset
23456
23457 ] Deletes an existing 
23458 \begin_inset Flex Code
23459 status collapsed
23460
23461 \begin_layout Plain Layout
23462 InsetLayout
23463 \end_layout
23464
23465 \end_inset
23466
23467 .
23468 \end_layout
23469
23470 \begin_layout Description
23471 \begin_inset Flex Code
23472 status collapsed
23473
23474 \begin_layout Plain Layout
23475 ObsoletedBy
23476 \end_layout
23477
23478 \end_inset
23479
23480  [
23481 \begin_inset Flex Code
23482 status collapsed
23483
23484 \begin_layout Plain Layout
23485 <layout>
23486 \end_layout
23487
23488 \end_inset
23489
23490 ] Name of an 
23491 \begin_inset Flex Code
23492 status collapsed
23493
23494 \begin_layout Plain Layout
23495 InsetLayout
23496 \end_layout
23497
23498 \end_inset
23499
23500  that has replaced this 
23501 \begin_inset Flex Code
23502 status collapsed
23503
23504 \begin_layout Plain Layout
23505 InsetLayout
23506 \end_layout
23507
23508 \end_inset
23509
23510 .
23511  This is used to rename an 
23512 \begin_inset Flex Code
23513 status collapsed
23514
23515 \begin_layout Plain Layout
23516 InsetLayout
23517 \end_layout
23518
23519 \end_inset
23520
23521 ,
23522  while keeping backward compatibility.
23523 \change_inserted -712698321 1559491850
23524
23525 \end_layout
23526
23527 \begin_layout Description
23528
23529 \change_inserted -712698321 1559492002
23530 \begin_inset Flex Code
23531 status collapsed
23532
23533 \begin_layout Plain Layout
23534
23535 \change_inserted -712698321 1559491854
23536 ParbreakIgnored
23537 \change_unchanged
23538
23539 \end_layout
23540
23541 \end_inset
23542
23543  [
23544 \begin_inset Flex Code
23545 status collapsed
23546
23547 \begin_layout Plain Layout
23548
23549 \change_inserted -712698321 1559491850
23550
23551 \emph on
23552 0
23553 \change_unchanged
23554
23555 \end_layout
23556
23557 \end_inset
23558
23559 ,
23560 \begin_inset space \thinspace{}
23561 \end_inset
23562
23563
23564 \begin_inset Flex Code
23565 status collapsed
23566
23567 \begin_layout Plain Layout
23568
23569 \change_inserted -712698321 1559491850
23570 1
23571 \change_unchanged
23572
23573 \end_layout
23574
23575 \end_inset
23576
23577 ] If this is set to 
23578 \begin_inset Flex Code
23579 status collapsed
23580
23581 \begin_layout Plain Layout
23582
23583 \change_inserted -712698321 1559491881
23584 1
23585 \change_unchanged
23586
23587 \end_layout
23588
23589 \end_inset
23590
23591 ,
23592  paragraph breaks will be ignored in the output.
23593  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
23594  workarea,
23595  without any effect in the output.
23596 \change_unchanged
23597
23598 \end_layout
23599
23600 \begin_layout Description
23601 \begin_inset Flex Code
23602 status collapsed
23603
23604 \begin_layout Plain Layout
23605 ParbreakIsNewline
23606 \end_layout
23607
23608 \end_inset
23609
23610  [
23611 \begin_inset Flex Code
23612 status collapsed
23613
23614 \begin_layout Plain Layout
23615
23616 \emph on
23617 0
23618 \end_layout
23619
23620 \end_inset
23621
23622 ,
23623 \begin_inset space \thinspace{}
23624 \end_inset
23625
23626
23627 \begin_inset Flex Code
23628 status collapsed
23629
23630 \begin_layout Plain Layout
23631 1
23632 \end_layout
23633
23634 \end_inset
23635
23636 ] As with paragraph styles,
23637  see 
23638 \begin_inset CommandInset ref
23639 LatexCommand ref
23640 reference "subsec:Paragraph-Styles"
23641 nolink "false"
23642
23643 \end_inset
23644
23645 .
23646  Default is false.
23647 \end_layout
23648
23649 \begin_layout Description
23650 \begin_inset Flex Code
23651 status collapsed
23652
23653 \begin_layout Plain Layout
23654 PassThru
23655 \end_layout
23656
23657 \end_inset
23658
23659  [
23660 \begin_inset Flex Code
23661 status collapsed
23662
23663 \begin_layout Plain Layout
23664
23665 \emph on
23666 0
23667 \end_layout
23668
23669 \end_inset
23670
23671 ,
23672 \begin_inset space \thinspace{}
23673 \end_inset
23674
23675
23676 \begin_inset Flex Code
23677 status collapsed
23678
23679 \begin_layout Plain Layout
23680 1
23681 \end_layout
23682
23683 \end_inset
23684
23685 ] As with paragraph styles,
23686  see 
23687 \begin_inset CommandInset ref
23688 LatexCommand ref
23689 reference "subsec:Paragraph-Styles"
23690 nolink "false"
23691
23692 \end_inset
23693
23694 .
23695  Default is false.
23696 \end_layout
23697
23698 \begin_layout Description
23699 \begin_inset Flex Code
23700 status collapsed
23701
23702 \begin_layout Plain Layout
23703 Preamble
23704 \end_layout
23705
23706 \end_inset
23707
23708  As with paragraph styles,
23709  see 
23710 \begin_inset CommandInset ref
23711 LatexCommand ref
23712 reference "subsec:Paragraph-Styles"
23713 nolink "false"
23714
23715 \end_inset
23716
23717 .
23718 \end_layout
23719
23720 \begin_layout Description
23721 \begin_inset Flex Code
23722 status collapsed
23723
23724 \begin_layout Plain Layout
23725 RefPrefix
23726 \end_layout
23727
23728 \end_inset
23729
23730  [
23731 \begin_inset Flex Code
23732 status collapsed
23733
23734 \begin_layout Plain Layout
23735 string
23736 \end_layout
23737
23738 \end_inset
23739
23740 ] The prefix to use when creating labels referring to insets of this type.
23741  This allows the use of formatted references.
23742 \end_layout
23743
23744 \begin_layout Description
23745 \begin_inset Flex Code
23746 status collapsed
23747
23748 \begin_layout Plain Layout
23749 Requires
23750 \end_layout
23751
23752 \end_inset
23753
23754  [
23755 \begin_inset Flex Code
23756 status collapsed
23757
23758 \begin_layout Plain Layout
23759 string
23760 \end_layout
23761
23762 \end_inset
23763
23764 ] As with paragraph styles,
23765  see 
23766 \begin_inset CommandInset ref
23767 LatexCommand ref
23768 reference "subsec:Paragraph-Styles"
23769 nolink "false"
23770
23771 \end_inset
23772
23773 .
23774 \end_layout
23775
23776 \begin_layout Description
23777 \begin_inset Flex Code
23778 status collapsed
23779
23780 \begin_layout Plain Layout
23781 ResetArgs
23782 \end_layout
23783
23784 \end_inset
23785
23786  [
23787 \begin_inset Flex Code
23788 status collapsed
23789
23790 \begin_layout Plain Layout
23791
23792 \emph on
23793 0
23794 \end_layout
23795
23796 \end_inset
23797
23798 ,
23799 \begin_inset space \thinspace{}
23800 \end_inset
23801
23802
23803 \begin_inset Flex Code
23804 status collapsed
23805
23806 \begin_layout Plain Layout
23807 1
23808 \end_layout
23809
23810 \end_inset
23811
23812 ] Resets the \SpecialChar LaTeX
23813  arguments of this layout (as defined via the 
23814 \begin_inset Flex Code
23815 status collapsed
23816
23817 \begin_layout Plain Layout
23818 Argument
23819 \end_layout
23820
23821 \end_inset
23822
23823  tag).
23824  This is useful if you have copied a style via 
23825 \begin_inset Flex Code
23826 status collapsed
23827
23828 \begin_layout Plain Layout
23829 CopyStyle
23830 \end_layout
23831
23832 \end_inset
23833
23834 ,
23835  but you do not want to inherit its (required and optional) arguments.
23836 \end_layout
23837
23838 \begin_layout Description
23839 \begin_inset Flex Code
23840 status collapsed
23841
23842 \begin_layout Plain Layout
23843 ResetsFont
23844 \end_layout
23845
23846 \end_inset
23847
23848  [
23849 \begin_inset Flex Code
23850 status collapsed
23851
23852 \begin_layout Plain Layout
23853
23854 \emph on
23855 0
23856 \end_layout
23857
23858 \end_inset
23859
23860 ,
23861 \begin_inset space \thinspace{}
23862 \end_inset
23863
23864
23865 \begin_inset Flex Code
23866 status collapsed
23867
23868 \begin_layout Plain Layout
23869 1
23870 \end_layout
23871
23872 \end_inset
23873
23874
23875 \change_inserted -712698321 1597733473
23876 If 
23877 \begin_inset Flex Code
23878 status collapsed
23879
23880 \begin_layout Plain Layout
23881
23882 \change_inserted -712698321 1597732178
23883 1
23884 \change_unchanged
23885
23886 \end_layout
23887
23888 \end_inset
23889
23890 ,
23891  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.
23892 \begin_inset space \thinspace{}
23893 \end_inset
23894
23895 g.,
23896  
23897 \begin_inset Flex Code
23898 status collapsed
23899
23900 \begin_layout Plain Layout
23901
23902 \change_inserted -712698321 1597733683
23903
23904 \backslash
23905 textbf{Sourrounding text 
23906 \backslash
23907 myinset{
23908 \backslash
23909 textbf{content}}\SpecialChar ldots
23910 }
23911 \change_unchanged
23912
23913 \end_layout
23914
23915 \end_inset
23916
23917  rather than 
23918 \begin_inset Flex Code
23919 status collapsed
23920
23921 \begin_layout Plain Layout
23922
23923 \change_inserted -712698321 1597733686
23924
23925 \backslash
23926 textbf{Sourrounding text 
23927 \backslash
23928 myinset{content}\SpecialChar ldots
23929 }
23930 \change_unchanged
23931
23932 \end_layout
23933
23934 \end_inset
23935
23936 .
23937  Setting this makes sense for commands that internally reset font settings (e.
23938 \begin_inset space \thinspace{}
23939 \end_inset
23940
23941 g.,
23942  footnotes).
23943  Note that wrongly setting this might lead to unwanted result (e.
23944 \begin_inset space \thinspace{}
23945 \end_inset
23946
23947 g.,
23948  with 
23949 \begin_inset Flex Code
23950 status collapsed
23951
23952 \begin_layout Plain Layout
23953
23954 \change_inserted -712698321 1597733688
23955
23956 \backslash
23957 emph{Sourrounding text 
23958 \backslash
23959 myinset{
23960 \backslash
23961 emph{content}}\SpecialChar ldots
23962 }
23963 \change_unchanged
23964
23965 \end_layout
23966
23967 \end_inset
23968
23969 ,
23970  content is upright,
23971  as 
23972 \begin_inset Flex Code
23973 status collapsed
23974
23975 \begin_layout Plain Layout
23976
23977 \change_inserted -712698321 1597733278
23978
23979 \backslash
23980 emph
23981 \change_unchanged
23982
23983 \end_layout
23984
23985 \end_inset
23986
23987  toggles.
23988  
23989 \change_deleted -712698321 1597733283
23990 Whether this inset should use the font of its surrounding environment or uses its own.
23991  
23992 \change_unchanged
23993 Default is 
23994 \change_deleted -712698321 1597733290
23995 false
23996 \change_inserted -712698321 1597733290
23997
23998 \begin_inset Flex Code
23999 status collapsed
24000
24001 \begin_layout Plain Layout
24002
24003 \change_inserted -712698321 1597733292
24004 0
24005 \change_unchanged
24006
24007 \end_layout
24008
24009 \end_inset
24010
24011
24012 \change_unchanged
24013 :
24014  
24015 \change_deleted -712698321 1597733327
24016 use the font of the surrounding environment
24017 \change_inserted -712698321 1597733343
24018 font changes are not redone inside the inset
24019 \change_unchanged
24020 .
24021 \end_layout
24022
24023 \begin_layout Description
24024 \begin_inset Flex Code
24025 status collapsed
24026
24027 \begin_layout Plain Layout
24028 RightDelim
24029 \end_layout
24030
24031 \end_inset
24032
24033  [
24034 \begin_inset Flex Code
24035 status collapsed
24036
24037 \begin_layout Plain Layout
24038 string
24039 \end_layout
24040
24041 \end_inset
24042
24043 ] A string that is put at the end of the layout content.
24044  A line break in the output can be indicated by 
24045 \begin_inset Flex Code
24046 status collapsed
24047
24048 \begin_layout Plain Layout
24049 <br/>
24050 \end_layout
24051
24052 \end_inset
24053
24054 .
24055 \end_layout
24056
24057 \begin_layout Description
24058 \begin_inset Flex Code
24059 status collapsed
24060
24061 \begin_layout Plain Layout
24062 Spellcheck
24063 \end_layout
24064
24065 \end_inset
24066
24067  [
24068 \begin_inset Flex Code
24069 status collapsed
24070
24071 \begin_layout Plain Layout
24072 0
24073 \end_layout
24074
24075 \end_inset
24076
24077 ,
24078 \begin_inset space \thinspace{}
24079 \end_inset
24080
24081
24082 \begin_inset Flex Code
24083 status collapsed
24084
24085 \begin_layout Plain Layout
24086
24087 \emph on
24088 1
24089 \end_layout
24090
24091 \end_inset
24092
24093 ] Allow spell-checking the contents of this inset.
24094  Default is true.
24095 \change_inserted -584632292 1615846659
24096
24097 \end_layout
24098
24099 \begin_layout Subsection
24100
24101 \change_inserted -584632292 1615846729
24102 Arguments
24103 \begin_inset CommandInset label
24104 LatexCommand label
24105 name "subsec:Arguments"
24106
24107 \end_inset
24108
24109
24110 \end_layout
24111
24112 \begin_layout Standard
24113
24114 \change_inserted -584632292 1615846807
24115 Both paragraph styles and inset layouts allow for 
24116 \emph on
24117 arguments
24118 \emph default
24119  as well as the main content.
24120  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
24121 .
24122  Each (optional or required) argument of a command or environment—
24123 except for the required argument that is associated with the content—
24124 has a separate definition,
24125  where the number specifies the order of the arguments.
24126  The definition must end with 
24127 \begin_inset Flex Code
24128 status collapsed
24129
24130 \begin_layout Plain Layout
24131
24132 \change_inserted -584632292 1615846730
24133 EndArgument
24134 \change_unchanged
24135
24136 \end_layout
24137
24138 \end_inset
24139
24140 .
24141  So a command with two optional arguments looks like:
24142 \end_layout
24143
24144 \begin_layout Quote
24145
24146 \change_inserted -584632292 1615846730
24147
24148 \family typewriter
24149 Argument 1
24150 \end_layout
24151
24152 \begin_layout Quote
24153
24154 \change_inserted -584632292 1615846730
24155
24156 \family typewriter
24157 ...
24158 \end_layout
24159
24160 \begin_layout Quote
24161
24162 \change_inserted -584632292 1615846730
24163
24164 \family typewriter
24165 EndArgument
24166 \end_layout
24167
24168 \begin_layout Quote
24169
24170 \change_inserted -584632292 1615846730
24171
24172 \family typewriter
24173 Argument 2
24174 \end_layout
24175
24176 \begin_layout Quote
24177
24178 \change_inserted -584632292 1615846730
24179
24180 \family typewriter
24181 ...
24182 \end_layout
24183
24184 \begin_layout Quote
24185
24186 \change_inserted -584632292 1615846730
24187
24188 \family typewriter
24189 EndArgument
24190 \end_layout
24191
24192 \begin_layout Standard
24193
24194 \change_inserted -584632292 1615846730
24195 Inside the 
24196 \begin_inset Flex Code
24197 status collapsed
24198
24199 \begin_layout Plain Layout
24200
24201 \change_inserted -584632292 1615846730
24202 Argument
24203 \change_unchanged
24204
24205 \end_layout
24206
24207 \end_inset
24208
24209  definition,
24210  the following specifications are possible:
24211 \end_layout
24212
24213 \begin_layout Itemize
24214
24215 \change_inserted -584632292 1615846730
24216 \begin_inset Flex Code
24217 status collapsed
24218
24219 \begin_layout Plain Layout
24220
24221 \change_inserted -584632292 1615846730
24222 LabelString
24223 \change_unchanged
24224
24225 \end_layout
24226
24227 \end_inset
24228
24229  
24230 \begin_inset Flex Code
24231 status collapsed
24232
24233 \begin_layout Plain Layout
24234
24235 \change_inserted -584632292 1615846730
24236 [string]
24237 \change_unchanged
24238
24239 \end_layout
24240
24241 \end_inset
24242
24243  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 
24244 \begin_inset Flex Code
24245 status collapsed
24246
24247 \begin_layout Plain Layout
24248
24249 \change_inserted -584632292 1615846730
24250 MenuString
24251 \change_unchanged
24252
24253 \end_layout
24254
24255 \end_inset
24256
24257 ).
24258  For the menu,
24259  you can define an accelerator by appending the respective character to the string,
24260  divided by 
24261 \begin_inset Quotes eld
24262 \end_inset
24263
24264 |
24265 \begin_inset Quotes erd
24266 \end_inset
24267
24268  (e.
24269 \begin_inset space \thinspace{}
24270 \end_inset
24271
24272 g.
24273 \begin_inset space \space{}
24274 \end_inset
24275
24276
24277 \begin_inset Quotes eld
24278 \end_inset
24279
24280
24281 \begin_inset Flex Code
24282 status collapsed
24283
24284 \begin_layout Plain Layout
24285
24286 \change_inserted -584632292 1615846730
24287 Short Title|S
24288 \change_unchanged
24289
24290 \end_layout
24291
24292 \end_inset
24293
24294
24295 \begin_inset Quotes erd
24296 \end_inset
24297
24298 ).
24299 \end_layout
24300
24301 \begin_layout Itemize
24302
24303 \change_inserted -584632292 1615846730
24304 \begin_inset Flex Code
24305 status collapsed
24306
24307 \begin_layout Plain Layout
24308
24309 \change_inserted -584632292 1615846730
24310 MenuString
24311 \change_unchanged
24312
24313 \end_layout
24314
24315 \end_inset
24316
24317  
24318 \begin_inset Flex Code
24319 status collapsed
24320
24321 \begin_layout Plain Layout
24322
24323 \change_inserted -584632292 1615846730
24324 [string]
24325 \change_unchanged
24326
24327 \end_layout
24328
24329 \end_inset
24330
24331  A separate string for the menu.
24332  You can define an accelerator by appending the respective character to the string,
24333  divided by 
24334 \begin_inset Quotes eld
24335 \end_inset
24336
24337 |
24338 \begin_inset Quotes erd
24339 \end_inset
24340
24341  (e.
24342 \begin_inset space \thinspace{}
24343 \end_inset
24344
24345 g.
24346 \begin_inset space \space{}
24347 \end_inset
24348
24349
24350 \begin_inset Quotes eld
24351 \end_inset
24352
24353
24354 \begin_inset Flex Code
24355 status collapsed
24356
24357 \begin_layout Plain Layout
24358
24359 \change_inserted -584632292 1615846730
24360 Short Title|S
24361 \change_unchanged
24362
24363 \end_layout
24364
24365 \end_inset
24366
24367
24368 \begin_inset Quotes erd
24369 \end_inset
24370
24371 ).
24372  This specification is optional.
24373  If it is not given the 
24374 \begin_inset Flex Code
24375 status collapsed
24376
24377 \begin_layout Plain Layout
24378
24379 \change_inserted -584632292 1615846730
24380 LabelString
24381 \change_unchanged
24382
24383 \end_layout
24384
24385 \end_inset
24386
24387  will be used instead for the menu.
24388 \end_layout
24389
24390 \begin_layout Itemize
24391
24392 \change_inserted -584632292 1615846730
24393 \begin_inset Flex Code
24394 status collapsed
24395
24396 \begin_layout Plain Layout
24397
24398 \change_inserted -584632292 1615846730
24399 Tooltip
24400 \change_unchanged
24401
24402 \end_layout
24403
24404 \end_inset
24405
24406  
24407 \begin_inset Flex Code
24408 status collapsed
24409
24410 \begin_layout Plain Layout
24411
24412 \change_inserted -584632292 1615846730
24413 [string]
24414 \change_unchanged
24415
24416 \end_layout
24417
24418 \end_inset
24419
24420  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
24421 \end_layout
24422
24423 \begin_layout Itemize
24424
24425 \change_inserted -584632292 1615846730
24426 \begin_inset Flex Code
24427 status collapsed
24428
24429 \begin_layout Plain Layout
24430
24431 \change_inserted -584632292 1615846730
24432 Mandatory
24433 \change_unchanged
24434
24435 \end_layout
24436
24437 \end_inset
24438
24439  [
24440 \begin_inset Flex Code
24441 status collapsed
24442
24443 \begin_layout Plain Layout
24444
24445 \change_inserted -584632292 1615846730
24446
24447 \emph on
24448 0
24449 \change_unchanged
24450
24451 \end_layout
24452
24453 \end_inset
24454
24455 ,
24456 \begin_inset space \thinspace{}
24457 \end_inset
24458
24459
24460 \begin_inset Flex Code
24461 status collapsed
24462
24463 \begin_layout Plain Layout
24464
24465 \change_inserted -584632292 1615846730
24466 1
24467 \change_unchanged
24468
24469 \end_layout
24470
24471 \end_inset
24472
24473 ] Declare if this is a mandatory (1) or an optional (0) argument.
24474  Mandatory arguments will be output empty if not given,
24475  while optional arguments will not be output at all.
24476  By default,
24477  mandatory arguments are delimited by 
24478 \begin_inset Flex Code
24479 status collapsed
24480
24481 \begin_layout Plain Layout
24482
24483 \change_inserted -584632292 1615846730
24484 {...}
24485 \change_unchanged
24486
24487 \end_layout
24488
24489 \end_inset
24490
24491 ,
24492  while optional arguments are delimited by 
24493 \begin_inset Flex Code
24494 status collapsed
24495
24496 \begin_layout Plain Layout
24497
24498 \change_inserted -584632292 1615846730
24499 [...]
24500 \change_unchanged
24501
24502 \end_layout
24503
24504 \end_inset
24505
24506
24507 \end_layout
24508
24509 \begin_layout Itemize
24510
24511 \change_inserted -584632292 1615846730
24512 \begin_inset Flex Code
24513 status collapsed
24514
24515 \begin_layout Plain Layout
24516
24517 \change_inserted -584632292 1615846730
24518 NewlineCmd
24519 \change_unchanged
24520
24521 \end_layout
24522
24523 \end_inset
24524
24525  
24526 \begin_inset Flex Code
24527 status collapsed
24528
24529 \begin_layout Plain Layout
24530
24531 \change_inserted -584632292 1615846730
24532 [string]
24533 \change_unchanged
24534
24535 \end_layout
24536
24537 \end_inset
24538
24539  Option to define a different command (from the default 
24540 \begin_inset Flex Code
24541 status collapsed
24542
24543 \begin_layout Plain Layout
24544
24545 \change_inserted -584632292 1615846730
24546
24547 \backslash
24548
24549 \backslash
24550
24551 \change_unchanged
24552
24553 \end_layout
24554
24555 \end_inset
24556
24557 ) to be used for line breaks.
24558  The initial backslash must not be specified.
24559 \end_layout
24560
24561 \begin_layout Itemize
24562
24563 \change_inserted -584632292 1615846730
24564 \begin_inset Flex Code
24565 status collapsed
24566
24567 \begin_layout Plain Layout
24568
24569 \change_inserted -584632292 1615846730
24570 Requires
24571 \change_unchanged
24572
24573 \end_layout
24574
24575 \end_inset
24576
24577  
24578 \begin_inset Flex Code
24579 status collapsed
24580
24581 \begin_layout Plain Layout
24582
24583 \change_inserted -584632292 1615846730
24584 [int=0]
24585 \change_unchanged
24586
24587 \end_layout
24588
24589 \end_inset
24590
24591  defines another argument (by its number) which this argument requires to be output if it is itself output.
24592  E.
24593 \begin_inset space \thinspace{}
24594 \end_inset
24595
24596 g.,
24597  in \SpecialChar LaTeX
24598  commands,
24599  optional arguments often require previous optional arguments to be output (at least empty),
24600  as in 
24601 \begin_inset Flex Code
24602 status collapsed
24603
24604 \begin_layout Plain Layout
24605
24606 \change_inserted -584632292 1615846730
24607
24608 \backslash
24609 command[][argument]{text}
24610 \change_unchanged
24611
24612 \end_layout
24613
24614 \end_inset
24615
24616 .
24617  This can be achieved by the statement 
24618 \begin_inset Flex Code
24619 status collapsed
24620
24621 \begin_layout Plain Layout
24622
24623 \change_inserted -584632292 1615846730
24624 Requires 1
24625 \change_unchanged
24626
24627 \end_layout
24628
24629 \end_inset
24630
24631  within 
24632 \begin_inset Flex Code
24633 status collapsed
24634
24635 \begin_layout Plain Layout
24636
24637 \change_inserted -584632292 1615846730
24638 Argument 2
24639 \change_unchanged
24640
24641 \end_layout
24642
24643 \end_inset
24644
24645 .
24646 \end_layout
24647
24648 \begin_layout Itemize
24649
24650 \change_inserted -584632292 1615846730
24651 \begin_inset Flex Code
24652 status collapsed
24653
24654 \begin_layout Plain Layout
24655
24656 \change_inserted -584632292 1615846730
24657 LeftDelim
24658 \change_unchanged
24659
24660 \end_layout
24661
24662 \end_inset
24663
24664  
24665 \begin_inset Flex Code
24666 status collapsed
24667
24668 \begin_layout Plain Layout
24669
24670 \change_inserted -584632292 1615846730
24671 [string]
24672 \change_unchanged
24673
24674 \end_layout
24675
24676 \end_inset
24677
24678  defines a custom left delimiter (instead of 
24679 \begin_inset Flex Code
24680 status collapsed
24681
24682 \begin_layout Plain Layout
24683
24684 \change_inserted -584632292 1615846730
24685 {
24686 \change_unchanged
24687
24688 \end_layout
24689
24690 \end_inset
24691
24692  or 
24693 \begin_inset Flex Code
24694 status collapsed
24695
24696 \begin_layout Plain Layout
24697
24698 \change_inserted -584632292 1615846730
24699 [
24700 \change_unchanged
24701
24702 \end_layout
24703
24704 \end_inset
24705
24706 ).
24707  A line break in the output can be indicated by 
24708 \begin_inset Flex Code
24709 status collapsed
24710
24711 \begin_layout Plain Layout
24712
24713 \change_inserted -584632292 1615846730
24714 <br/>
24715 \change_unchanged
24716
24717 \end_layout
24718
24719 \end_inset
24720
24721 .
24722 \end_layout
24723
24724 \begin_layout Itemize
24725
24726 \change_inserted -584632292 1615846730
24727 \begin_inset Flex Code
24728 status collapsed
24729
24730 \begin_layout Plain Layout
24731
24732 \change_inserted -584632292 1615846730
24733 RightDelim
24734 \change_unchanged
24735
24736 \end_layout
24737
24738 \end_inset
24739
24740  
24741 \begin_inset Flex Code
24742 status collapsed
24743
24744 \begin_layout Plain Layout
24745
24746 \change_inserted -584632292 1615846730
24747 [string]
24748 \change_unchanged
24749
24750 \end_layout
24751
24752 \end_inset
24753
24754  defines a custom right delimiter (instead of 
24755 \begin_inset Flex Code
24756 status collapsed
24757
24758 \begin_layout Plain Layout
24759
24760 \change_inserted -584632292 1615846730
24761 }
24762 \change_unchanged
24763
24764 \end_layout
24765
24766 \end_inset
24767
24768  or 
24769 \begin_inset Flex Code
24770 status collapsed
24771
24772 \begin_layout Plain Layout
24773
24774 \change_inserted -584632292 1615846730
24775 ]
24776 \change_unchanged
24777
24778 \end_layout
24779
24780 \end_inset
24781
24782 ).
24783  A line break in the output can be indicated by 
24784 \begin_inset Flex Code
24785 status collapsed
24786
24787 \begin_layout Plain Layout
24788
24789 \change_inserted -584632292 1615846730
24790 <br/>
24791 \change_unchanged
24792
24793 \end_layout
24794
24795 \end_inset
24796
24797 .
24798 \end_layout
24799
24800 \begin_layout Itemize
24801
24802 \change_inserted -584632292 1615846730
24803 \begin_inset Flex Code
24804 status collapsed
24805
24806 \begin_layout Plain Layout
24807
24808 \change_inserted -584632292 1615846730
24809 DefaultArg
24810 \change_unchanged
24811
24812 \end_layout
24813
24814 \end_inset
24815
24816  
24817 \begin_inset Flex Code
24818 status collapsed
24819
24820 \begin_layout Plain Layout
24821
24822 \change_inserted -584632292 1615846730
24823 [string]
24824 \change_unchanged
24825
24826 \end_layout
24827
24828 \end_inset
24829
24830  defines an argument that is inserted if and only if no user-specified arguments were given,
24831  i.
24832 \begin_inset space \thinspace{}
24833 \end_inset
24834
24835 e.
24836 \begin_inset space \space{}
24837 \end_inset
24838
24839 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
24840  Multiple arguments need to be separated by comma.
24841 \end_layout
24842
24843 \begin_layout Itemize
24844
24845 \change_inserted -584632292 1615846730
24846 \begin_inset Flex Code
24847 status collapsed
24848
24849 \begin_layout Plain Layout
24850
24851 \change_inserted -584632292 1615846730
24852 PresetArg
24853 \change_unchanged
24854
24855 \end_layout
24856
24857 \end_inset
24858
24859  
24860 \begin_inset Flex Code
24861 status collapsed
24862
24863 \begin_layout Plain Layout
24864
24865 \change_inserted -584632292 1615846730
24866 [string]
24867 \change_unchanged
24868
24869 \end_layout
24870
24871 \end_inset
24872
24873  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
24874  Multiple arguments need to be separated by comma.
24875 \end_layout
24876
24877 \begin_layout Itemize
24878
24879 \change_inserted -584632292 1615846730
24880 \begin_inset Flex Code
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884
24885 \change_inserted -584632292 1615846730
24886 Font
24887 \change_unchanged
24888
24889 \end_layout
24890
24891 \end_inset
24892
24893  The font used for the argument content,
24894  see 
24895 \begin_inset CommandInset ref
24896 LatexCommand ref
24897 reference "subsec:Font-description"
24898 nolink "false"
24899
24900 \end_inset
24901
24902 .
24903 \end_layout
24904
24905 \begin_layout Itemize
24906
24907 \change_inserted -584632292 1615846730
24908 \begin_inset Flex Code
24909 status collapsed
24910
24911 \begin_layout Plain Layout
24912
24913 \change_inserted -584632292 1615846730
24914 FreeSpacing
24915 \change_unchanged
24916
24917 \end_layout
24918
24919 \end_inset
24920
24921  [
24922 \begin_inset Flex Code
24923 status collapsed
24924
24925 \begin_layout Plain Layout
24926
24927 \change_inserted -584632292 1615846730
24928
24929 \emph on
24930 0
24931 \change_unchanged
24932
24933 \end_layout
24934
24935 \end_inset
24936
24937 ,
24938 \begin_inset space \thinspace{}
24939 \end_inset
24940
24941
24942 \begin_inset Flex Code
24943 status collapsed
24944
24945 \begin_layout Plain Layout
24946
24947 \change_inserted -584632292 1615846730
24948 1
24949 \change_unchanged
24950
24951 \end_layout
24952
24953 \end_inset
24954
24955 ] As with paragraph styles,
24956  see 
24957 \begin_inset CommandInset ref
24958 LatexCommand ref
24959 reference "subsec:Paragraph-Styles"
24960 nolink "false"
24961
24962 \end_inset
24963
24964 .
24965 \end_layout
24966
24967 \begin_layout Itemize
24968
24969 \change_inserted -584632292 1615846730
24970 \begin_inset Flex Code
24971 status collapsed
24972
24973 \begin_layout Plain Layout
24974
24975 \change_inserted -584632292 1615846730
24976 LabelFont
24977 \change_unchanged
24978
24979 \end_layout
24980
24981 \end_inset
24982
24983  The font used for the label;
24984  see 
24985 \begin_inset CommandInset ref
24986 LatexCommand ref
24987 reference "subsec:Font-description"
24988 nolink "false"
24989
24990 \end_inset
24991
24992 .
24993 \end_layout
24994
24995 \begin_layout Itemize
24996
24997 \change_inserted -584632292 1615846730
24998 \begin_inset Flex Code
24999 status collapsed
25000
25001 \begin_layout Plain Layout
25002
25003 \change_inserted -584632292 1615846730
25004 Decoration
25005 \change_unchanged
25006
25007 \end_layout
25008
25009 \end_inset
25010
25011  [
25012 \begin_inset Flex Code
25013 status collapsed
25014
25015 \begin_layout Plain Layout
25016
25017 \change_inserted -584632292 1615846730
25018
25019 \emph on
25020 Classic
25021 \emph default
25022 ,
25023  Minimalistic,
25024  Conglomerate
25025 \change_unchanged
25026
25027 \end_layout
25028
25029 \end_inset
25030
25031 ] describes the rendering style used for the inset's frame and buttons.
25032 \end_layout
25033
25034 \begin_layout Itemize
25035
25036 \change_inserted -584632292 1615846730
25037 \begin_inset Flex Code
25038 status collapsed
25039
25040 \begin_layout Plain Layout
25041
25042 \change_inserted -584632292 1615846730
25043 AutoInsert
25044 \change_unchanged
25045
25046 \end_layout
25047
25048 \end_inset
25049
25050  
25051 \begin_inset Flex Code
25052 status collapsed
25053
25054 \begin_layout Plain Layout
25055
25056 \change_inserted -584632292 1615846730
25057 [int=0]
25058 \change_unchanged
25059
25060 \end_layout
25061
25062 \end_inset
25063
25064  If this is set to 
25065 \begin_inset Flex Code
25066 status collapsed
25067
25068 \begin_layout Plain Layout
25069
25070 \change_inserted -584632292 1615846730
25071 1
25072 \change_unchanged
25073
25074 \end_layout
25075
25076 \end_inset
25077
25078 ,
25079  this argument is automatically inserted when the respective style is selected.
25080 \end_layout
25081
25082 \begin_layout Itemize
25083
25084 \change_inserted -584632292 1615846730
25085 \begin_inset Flex Code
25086 status collapsed
25087
25088 \begin_layout Plain Layout
25089
25090 \change_inserted -584632292 1615846730
25091 InsertOnNewline
25092 \change_unchanged
25093
25094 \end_layout
25095
25096 \end_inset
25097
25098  
25099 \begin_inset Flex Code
25100 status collapsed
25101
25102 \begin_layout Plain Layout
25103
25104 \change_inserted -584632292 1615846730
25105 [int=0]
25106 \change_unchanged
25107
25108 \end_layout
25109
25110 \end_inset
25111
25112  If this is set to 
25113 \begin_inset Flex Code
25114 status collapsed
25115
25116 \begin_layout Plain Layout
25117
25118 \change_inserted -584632292 1615846730
25119 1
25120 \change_unchanged
25121
25122 \end_layout
25123
25124 \end_inset
25125
25126 ,
25127  this argument will be inserted on a new line with 
25128 \begin_inset Flex Code
25129 status collapsed
25130
25131 \begin_layout Plain Layout
25132
25133 \change_inserted -584632292 1615846730
25134 AutoInsert
25135 \change_unchanged
25136
25137 \end_layout
25138
25139 \end_inset
25140
25141  (only available within Flex insets).
25142 \end_layout
25143
25144 \begin_layout Itemize
25145
25146 \change_inserted -584632292 1615846730
25147 \begin_inset Flex Code
25148 status collapsed
25149
25150 \begin_layout Plain Layout
25151
25152 \change_inserted -584632292 1615846730
25153 InsertCotext
25154 \change_unchanged
25155
25156 \end_layout
25157
25158 \end_inset
25159
25160  
25161 \begin_inset Flex Code
25162 status collapsed
25163
25164 \begin_layout Plain Layout
25165
25166 \change_inserted -584632292 1615846730
25167 [int=0]
25168 \change_unchanged
25169
25170 \end_layout
25171
25172 \end_inset
25173
25174  If this is set to 
25175 \begin_inset Flex Code
25176 status collapsed
25177
25178 \begin_layout Plain Layout
25179
25180 \change_inserted -584632292 1615846730
25181 1
25182 \change_unchanged
25183
25184 \end_layout
25185
25186 \end_inset
25187
25188 ,
25189  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
25190 \end_layout
25191
25192 \begin_layout Itemize
25193
25194 \change_inserted -584632292 1615846730
25195 \begin_inset Flex Code
25196 status collapsed
25197
25198 \begin_layout Plain Layout
25199
25200 \change_inserted -584632292 1615846730
25201 PassThru
25202 \change_unchanged
25203
25204 \end_layout
25205
25206 \end_inset
25207
25208  [
25209 \begin_inset Flex Code
25210 status collapsed
25211
25212 \begin_layout Plain Layout
25213
25214 \change_inserted -584632292 1615846730
25215
25216 \emph on
25217 inherited
25218 \emph default
25219 ,
25220  true,
25221  false
25222 \change_unchanged
25223
25224 \end_layout
25225
25226 \end_inset
25227
25228 ] Whether the contents of this argument should be output in raw form,
25229  meaning without special translations that \SpecialChar LaTeX
25230  would require.
25231  By default,
25232  the 
25233 \begin_inset Flex Code
25234 status collapsed
25235
25236 \begin_layout Plain Layout
25237
25238 \change_inserted -584632292 1615846730
25239 PassThru
25240 \change_unchanged
25241
25242 \end_layout
25243
25244 \end_inset
25245
25246  status is inherited by the inset or paragraph layout the argument belongs to,
25247  true and false change the status for the given argument only.
25248 \end_layout
25249
25250 \begin_layout Itemize
25251
25252 \change_inserted -584632292 1615846730
25253 \begin_inset Flex Code
25254 status collapsed
25255
25256 \begin_layout Plain Layout
25257
25258 \change_inserted -584632292 1615846730
25259 PassThruChars
25260 \change_unchanged
25261
25262 \end_layout
25263
25264 \end_inset
25265
25266  [
25267 \begin_inset Flex Code
25268 status collapsed
25269
25270 \begin_layout Plain Layout
25271
25272 \change_inserted -584632292 1615846730
25273 string of characters
25274 \change_unchanged
25275
25276 \end_layout
25277
25278 \end_inset
25279
25280 ]
25281 \family typewriter
25282  
25283 \family default
25284 Defines individual characters
25285 \begin_inset Newline linebreak
25286 \end_inset
25287
25288 that should be output in raw form,
25289  meaning without special translations that \SpecialChar LaTeX
25290  would require.
25291  Note that,
25292  contrary to PassThru,
25293  this needs to be explicitly defined for arguments.
25294  That is,
25295  arguments do not inherit PassThruChars from their parent inset or layout.
25296 \end_layout
25297
25298 \begin_layout Itemize
25299
25300 \change_inserted -584632292 1615846730
25301 \begin_inset Flex Code
25302 status collapsed
25303
25304 \begin_layout Plain Layout
25305
25306 \change_inserted -584632292 1615846730
25307 IsTocCaption
25308 \change_unchanged
25309
25310 \end_layout
25311
25312 \end_inset
25313
25314  [
25315 \begin_inset Flex Code
25316 status collapsed
25317
25318 \begin_layout Plain Layout
25319
25320 \change_inserted -584632292 1615846730
25321
25322 \emph on
25323 0
25324 \change_unchanged
25325
25326 \end_layout
25327
25328 \end_inset
25329
25330 ,
25331 \begin_inset space \thinspace{}
25332 \end_inset
25333
25334
25335 \begin_inset Flex Code
25336 status collapsed
25337
25338 \begin_layout Plain Layout
25339
25340 \change_inserted -584632292 1615846730
25341 1
25342 \change_unchanged
25343
25344 \end_layout
25345
25346 \end_inset
25347
25348 ] If this is set to 1,
25349  the argument will output its content in the corresponding item in the table of contents.
25350  See AddToToc.
25351 \end_layout
25352
25353 \begin_layout Standard
25354
25355 \change_inserted -584632292 1615846730
25356 By default,
25357  the text entered in the \SpecialChar LyX
25358  workarea in the respective layout is the last (mandatory) argument of a command if the 
25359 \begin_inset Flex Code
25360 status collapsed
25361
25362 \begin_layout Plain Layout
25363
25364 \change_inserted -584632292 1615846730
25365 LatexType
25366 \change_unchanged
25367
25368 \end_layout
25369
25370 \end_inset
25371
25372  is 
25373 \begin_inset Flex Code
25374 status collapsed
25375
25376 \begin_layout Plain Layout
25377
25378 \change_inserted -584632292 1615846730
25379 Command
25380 \change_unchanged
25381
25382 \end_layout
25383
25384 \end_inset
25385
25386 .
25387  However,
25388  arguments with the prefix 
25389 \begin_inset Flex Code
25390 status collapsed
25391
25392 \begin_layout Plain Layout
25393
25394 \change_inserted -584632292 1615846730
25395 post:
25396 \change_unchanged
25397
25398 \end_layout
25399
25400 \end_inset
25401
25402  are output after this workarea argument.
25403  Note that post-argument numbering restarts at 1,
25404  so the first argument following the workarea argument is 
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409
25410 \change_inserted -584632292 1615846730
25411 post:1
25412 \change_unchanged
25413
25414 \end_layout
25415
25416 \end_inset
25417
25418 .
25419  Post-arguments are ignored in any other 
25420 \begin_inset Flex Code
25421 status collapsed
25422
25423 \begin_layout Plain Layout
25424
25425 \change_inserted -584632292 1615846730
25426 LatexType
25427 \change_unchanged
25428
25429 \end_layout
25430
25431 \end_inset
25432
25433  than 
25434 \begin_inset Flex Code
25435 status collapsed
25436
25437 \begin_layout Plain Layout
25438
25439 \change_inserted -584632292 1615846730
25440 Command
25441 \change_unchanged
25442
25443 \end_layout
25444
25445 \end_inset
25446
25447 .
25448 \end_layout
25449
25450 \begin_layout Standard
25451
25452 \change_inserted -584632292 1615846730
25453 Arguments for list 
25454 \begin_inset Flex Code
25455 status collapsed
25456
25457 \begin_layout Plain Layout
25458
25459 \change_inserted -584632292 1615846730
25460
25461 \backslash
25462 item
25463 \change_unchanged
25464
25465 \end_layout
25466
25467 \end_inset
25468
25469 s (as in 
25470 \begin_inset Flex Code
25471 status collapsed
25472
25473 \begin_layout Plain Layout
25474
25475 \change_inserted -584632292 1615846730
25476
25477 \backslash
25478 item[foo]
25479 \change_unchanged
25480
25481 \end_layout
25482
25483 \end_inset
25484
25485 ) have the prefix 
25486 \begin_inset Flex Code
25487 status collapsed
25488
25489 \begin_layout Plain Layout
25490
25491 \change_inserted -584632292 1615846730
25492 item:
25493 \change_unchanged
25494
25495 \end_layout
25496
25497 \end_inset
25498
25499  followed by the number (e.
25500 \begin_inset space \thinspace{}
25501 \end_inset
25502
25503 g.
25504 \begin_inset space \space{}
25505 \end_inset
25506
25507
25508 \begin_inset Flex Code
25509 status collapsed
25510
25511 \begin_layout Plain Layout
25512
25513 \change_inserted -584632292 1615846730
25514 Argument item:1
25515 \change_unchanged
25516
25517 \end_layout
25518
25519 \end_inset
25520
25521 ).
25522 \end_layout
25523
25524 \begin_layout Standard
25525
25526 \change_inserted -584632292 1615846730
25527 Finally,
25528  there is a special argument type with the prefix 
25529 \begin_inset Flex Code
25530 status collapsed
25531
25532 \begin_layout Plain Layout
25533
25534 \change_inserted -584632292 1615846730
25535 listpreamble:
25536 \change_unchanged
25537
25538 \end_layout
25539
25540 \end_inset
25541
25542 .
25543  It is not really an argument,
25544  but uses the argument interface (thus,
25545  the prefix is also followed by a number,
25546  e.
25547 \begin_inset space \thinspace{}
25548 \end_inset
25549
25550 g.
25551  
25552 \begin_inset Flex Code
25553 status collapsed
25554
25555 \begin_layout Plain Layout
25556
25557 \change_inserted -584632292 1615846730
25558 Argument listpreamble:1
25559 \change_unchanged
25560
25561 \end_layout
25562
25563 \end_inset
25564
25565 ).
25566  As the name implies,
25567  it is targeted at lists such as 
25568 \family sans
25569 Itemize
25570 \family default
25571 ,
25572  
25573 \family sans
25574 Enumerate
25575 \family default
25576 ,
25577  
25578 \family sans
25579 Description
25580 \family default
25581 ,
25582  or 
25583 \family sans
25584 Bibliography
25585 \family default
25586 .
25587  Its content will be output at the list start,
25588  before the first 
25589 \begin_inset Flex Code
25590 status collapsed
25591
25592 \begin_layout Plain Layout
25593
25594 \change_inserted -584632292 1615846730
25595
25596 \backslash
25597 item
25598 \change_unchanged
25599
25600 \end_layout
25601
25602 \end_inset
25603
25604 ,
25605  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
25606 ).
25607  This way,
25608  users can insert redefinitions (of lengths etc.) to individual lists.
25609  By default,
25610  these arguments do not have a delimiter.
25611 \change_unchanged
25612
25613 \end_layout
25614
25615 \begin_layout Subsection
25616 Counters
25617 \begin_inset CommandInset label
25618 LatexCommand label
25619 name "subsec:Counters"
25620
25621 \end_inset
25622
25623
25624 \end_layout
25625
25626 \begin_layout Standard
25627 It is necessary to define the counters (
25628 \begin_inset Flex Noun
25629 status collapsed
25630
25631 \begin_layout Plain Layout
25632 chapter
25633 \end_layout
25634
25635 \end_inset
25636
25637 ,
25638  
25639 \begin_inset Flex Noun
25640 status collapsed
25641
25642 \begin_layout Plain Layout
25643 figure
25644 \end_layout
25645
25646 \end_inset
25647
25648 ,
25649  \SpecialChar ldots
25650 ) in the text class itself.
25651  The standard counters are defined in the file 
25652 \begin_inset Flex Code
25653 status collapsed
25654
25655 \begin_layout Plain Layout
25656 stdcounters.inc
25657 \end_layout
25658
25659 \end_inset
25660
25661 ,
25662  so you may have to do no more than add
25663 \end_layout
25664
25665 \begin_layout LyX-Code
25666 Input stdcounters.inc
25667 \end_layout
25668
25669 \begin_layout Standard
25670 to your layout file to get them to work.
25671  But if you want to define custom counters,
25672  then you can do so.
25673  The counter declaration must begin with:
25674 \end_layout
25675
25676 \begin_layout LyX-Code
25677 Counter CounterName
25678 \end_layout
25679
25680 \begin_layout Standard
25681 where of course `
25682 \begin_inset Flex Code
25683 status collapsed
25684
25685 \begin_layout Plain Layout
25686 CounterName
25687 \end_layout
25688
25689 \end_inset
25690
25691 ' is replaced by the name of the counter.
25692  And it must end with 
25693 \begin_inset Quotes eld
25694 \end_inset
25695
25696
25697 \begin_inset Flex Code
25698 status collapsed
25699
25700 \begin_layout Plain Layout
25701 End
25702 \end_layout
25703
25704 \end_inset
25705
25706
25707 \begin_inset Quotes erd
25708 \end_inset
25709
25710 .
25711  The following parameters can also be used:
25712 \end_layout
25713
25714 \begin_layout Description
25715 \begin_inset Flex Code
25716 status collapsed
25717
25718 \begin_layout Plain Layout
25719 InitialValue
25720 \end_layout
25721
25722 \end_inset
25723
25724  [
25725 \begin_inset Flex Code
25726 status collapsed
25727
25728 \begin_layout Plain Layout
25729 int=1
25730 \end_layout
25731
25732 \end_inset
25733
25734 ] Sets the initial value for the counter,
25735  to which it will be reset whenever that happens.
25736  Normally,
25737  one will want the default,
25738  1.
25739 \end_layout
25740
25741 \begin_layout Description
25742 \begin_inset Flex Code
25743 status collapsed
25744
25745 \begin_layout Plain Layout
25746 LabelString
25747 \end_layout
25748
25749 \end_inset
25750
25751  [
25752 \begin_inset Flex Code
25753 status collapsed
25754
25755 \begin_layout Plain Layout
25756 string
25757 \end_layout
25758
25759 \end_inset
25760
25761 =
25762 \begin_inset Quotes erd
25763 \end_inset
25764
25765
25766 \begin_inset Quotes erd
25767 \end_inset
25768
25769 ] When defined,
25770  this string defines how the counter is displayed.
25771  Setting this value sets 
25772 \begin_inset Flex Code
25773 status collapsed
25774
25775 \begin_layout Plain Layout
25776 LabelStringAppendix
25777 \end_layout
25778
25779 \end_inset
25780
25781  to the same value.
25782  The following special constructs can be used in the string:
25783 \end_layout
25784
25785 \begin_deeper
25786 \begin_layout Itemize
25787 \begin_inset Flex Code
25788 status collapsed
25789
25790 \begin_layout Plain Layout
25791
25792 \backslash
25793 thecounter
25794 \end_layout
25795
25796 \end_inset
25797
25798  will be replaced by the expansion of the 
25799 \begin_inset Flex Code
25800 status collapsed
25801
25802 \begin_layout Plain Layout
25803 LabelString
25804 \end_layout
25805
25806 \end_inset
25807
25808  (or 
25809 \begin_inset Flex Code
25810 status collapsed
25811
25812 \begin_layout Plain Layout
25813 LabelStringAppendix
25814 \end_layout
25815
25816 \end_inset
25817
25818 ) of the counter 
25819 \begin_inset Flex Code
25820 status collapsed
25821
25822 \begin_layout Plain Layout
25823 counter
25824 \end_layout
25825
25826 \end_inset
25827
25828 .
25829  
25830 \end_layout
25831
25832 \begin_layout Itemize
25833 counter values can be expressed using \SpecialChar LaTeX
25834 -like macros
25835 \begin_inset Newline newline
25836 \end_inset
25837
25838
25839 \begin_inset Flex Code
25840 status collapsed
25841
25842 \begin_layout Plain Layout
25843
25844 \backslash
25845
25846 \emph on
25847 numbertype
25848 \emph default
25849 {
25850 \emph on
25851 counter
25852 \emph default
25853 }
25854 \end_layout
25855
25856 \end_inset
25857
25858 ,
25859  where 
25860 \begin_inset Flex Code
25861 status collapsed
25862
25863 \begin_layout Plain Layout
25864
25865 \emph on
25866 numbertype
25867 \end_layout
25868
25869 \end_inset
25870
25871  can be:
25872 \begin_inset Foot
25873 status collapsed
25874
25875 \begin_layout Plain Layout
25876
25877 \family roman
25878 \series medium
25879 \shape up
25880 \size normal
25881 \emph off
25882 \bar no
25883 \noun off
25884 \color none
25885 Actually,
25886  the situation is a bit more complicated:
25887  any
25888 \family default
25889 \series default
25890 \shape default
25891 \emph default
25892 \bar default
25893  
25894 \size default
25895 \emph on
25896 \noun default
25897 \color inherit
25898 numbertype
25899 \family roman
25900 \series medium
25901 \shape up
25902 \size normal
25903 \emph off
25904 \bar no
25905 \noun off
25906  other than those described below will produce arabic numerals.
25907  It would not be surprising to see this change in the future.
25908 \end_layout
25909
25910 \end_inset
25911
25912  
25913 \begin_inset Flex Code
25914 status collapsed
25915
25916 \begin_layout Plain Layout
25917 arabic
25918 \end_layout
25919
25920 \end_inset
25921
25922 :
25923  1,
25924  2,
25925  3,\SpecialChar ldots
25926 ;
25927  
25928 \begin_inset Flex Code
25929 status collapsed
25930
25931 \begin_layout Plain Layout
25932 alph
25933 \end_layout
25934
25935 \end_inset
25936
25937  for lower-case letters:
25938  a,
25939  b,
25940  c,
25941  \SpecialChar ldots
25942 ;
25943  
25944 \begin_inset Flex Code
25945 status collapsed
25946
25947 \begin_layout Plain Layout
25948 Alph
25949 \end_layout
25950
25951 \end_inset
25952
25953  for upper-case letters:
25954  A,
25955  B,
25956  C,
25957  \SpecialChar ldots
25958 ;
25959  
25960 \begin_inset Flex Code
25961 status collapsed
25962
25963 \begin_layout Plain Layout
25964 roman
25965 \end_layout
25966
25967 \end_inset
25968
25969  for lower-case roman numerals:
25970  i,
25971  ii,
25972  iii,
25973  \SpecialChar ldots
25974 ;
25975  
25976 \begin_inset Flex Code
25977 status collapsed
25978
25979 \begin_layout Plain Layout
25980 Roman
25981 \end_layout
25982
25983 \end_inset
25984
25985  for upper-case roman numerals:
25986  I,
25987  II,
25988  III\SpecialChar ldots
25989 ;
25990  
25991 \begin_inset Flex Code
25992 status collapsed
25993
25994 \begin_layout Plain Layout
25995 hebrew
25996 \end_layout
25997
25998 \end_inset
25999
26000  for hebrew numerals.
26001 \end_layout
26002
26003 \end_deeper
26004 \begin_layout Standard
26005 If LabelString is not defined,
26006  a default value is constructed as follows:
26007  if the counter has a 
26008 \change_deleted 731793113 1604355218
26009 master
26010 \change_inserted 731793113 1604355221
26011 parent
26012 \change_unchanged
26013  counter 
26014 \begin_inset Flex Code
26015 status collapsed
26016
26017 \begin_layout Plain Layout
26018
26019 \change_deleted 731793113 1604355223
26020 master
26021 \change_inserted 731793113 1604355226
26022 parent
26023 \change_unchanged
26024
26025 \end_layout
26026
26027 \end_inset
26028
26029  (defined via 
26030 \begin_inset Flex Code
26031 status collapsed
26032
26033 \begin_layout Plain Layout
26034 Within
26035 \end_layout
26036
26037 \end_inset
26038
26039 ),
26040  the string
26041 \begin_inset Newline newline
26042 \end_inset
26043
26044
26045 \begin_inset Flex Code
26046 status collapsed
26047
26048 \begin_layout Plain Layout
26049
26050 \backslash
26051 the
26052 \change_inserted 731793113 1604355228
26053 parent
26054 \change_deleted 731793113 1604355230
26055 master
26056 \change_unchanged
26057 .
26058 \backslash
26059 arabic{counter}
26060 \end_layout
26061
26062 \end_inset
26063
26064  is used;
26065  otherwise the string 
26066 \begin_inset Flex Code
26067 status collapsed
26068
26069 \begin_layout Plain Layout
26070
26071 \backslash
26072 arabic{counter}
26073 \end_layout
26074
26075 \end_inset
26076
26077  is used.
26078 \end_layout
26079
26080 \begin_layout Description
26081 \begin_inset Flex Code
26082 status collapsed
26083
26084 \begin_layout Plain Layout
26085 LabelStringAppendix
26086 \end_layout
26087
26088 \end_inset
26089
26090  [
26091 \begin_inset Flex Code
26092 status collapsed
26093
26094 \begin_layout Plain Layout
26095 string
26096 \end_layout
26097
26098 \end_inset
26099
26100
26101 \begin_inset Quotes eld
26102 \end_inset
26103
26104
26105 \begin_inset Quotes erd
26106 \end_inset
26107
26108 ] Same as 
26109 \begin_inset Flex Code
26110 status collapsed
26111
26112 \begin_layout Plain Layout
26113 LabelString
26114 \end_layout
26115
26116 \end_inset
26117
26118 ,
26119  but for use in the Appendix.
26120 \change_inserted -584632292 1607202551
26121
26122 \end_layout
26123
26124 \begin_layout Description
26125
26126 \change_inserted -584632292 1607202682
26127 \begin_inset Flex Code
26128 status open
26129
26130 \begin_layout Plain Layout
26131 LaTeXName
26132 \end_layout
26133
26134 \end_inset
26135
26136  [
26137 \begin_inset Flex Code
26138 status open
26139
26140 \begin_layout Plain Layout
26141
26142 \change_inserted -584632292 1607202576
26143 string
26144 \change_unchanged
26145
26146 \end_layout
26147
26148 \end_inset
26149
26150  = 
26151 \begin_inset Quotes eld
26152 \end_inset
26153
26154
26155 \begin_inset Quotes erd
26156 \end_inset
26157
26158 ] The counter name as used in \SpecialChar LaTeX
26159 .
26160  (
26161 \change_inserted 34634807 1619711355
26162 e
26163 \change_deleted 34634807 1619711355
26164 E
26165 \change_inserted -584632292 1607202682
26166 .g.,
26167  in \SpecialChar LyX
26168 ,
26169  there is a counter named `theorem',
26170  but it is output to \SpecialChar LaTeX
26171  as `thm'.)
26172 \change_unchanged
26173
26174 \end_layout
26175
26176 \begin_layout Description
26177 \begin_inset Flex Code
26178 status collapsed
26179
26180 \begin_layout Plain Layout
26181 PrettyFormat
26182 \end_layout
26183
26184 \end_inset
26185
26186  [
26187 \begin_inset Flex Code
26188 status collapsed
26189
26190 \begin_layout Plain Layout
26191 string
26192 \end_layout
26193
26194 \end_inset
26195
26196 =
26197 \begin_inset Quotes erd
26198 \end_inset
26199
26200
26201 \begin_inset Quotes erd
26202 \end_inset
26203
26204 ] A format for use with formatted references to this counter.
26205  For example,
26206  one might want to have references to section numbers appear as 
26207 \begin_inset Quotes eld
26208 \end_inset
26209
26210 Section 2.4
26211 \begin_inset Quotes erd
26212 \end_inset
26213
26214 .
26215  The string 
26216 \change_deleted -584632292 1690588038
26217 should 
26218 \change_inserted -584632292 1690588041
26219 may 
26220 \change_unchanged
26221 contain 
26222 \begin_inset Quotes eld
26223 \end_inset
26224
26225 ##
26226 \begin_inset Quotes erd
26227 \end_inset
26228
26229
26230 \change_inserted -584632292 1690588059
26231  or a counter specification as in 
26232 \begin_inset Flex Code
26233 status open
26234
26235 \begin_layout Plain Layout
26236
26237 \change_inserted -584632292 1690588059
26238 LabelString
26239 \change_unchanged
26240
26241 \end_layout
26242
26243 \end_inset
26244
26245
26246 \change_unchanged
26247 .
26248  Th
26249 \change_inserted -584632292 1690588078
26250 e former
26251 \change_deleted -584632292 1690588076
26252 is
26253 \change_unchanged
26254  will be replaced by the counter number itself.
26255  So,
26256  for sections,
26257  it would be:
26258  Section ##
26259 \change_inserted -584632292 1690588159
26260 ,
26261  or perhaps:
26262  
26263 \change_deleted -712698321 1691671418
26264
26265 \backslash
26266 S
26267 \backslash
26268 arabic{section}
26269 \change_inserted -712698321 1691671418
26270
26271 \begin_inset Flex Code
26272 status open
26273
26274 \begin_layout Plain Layout
26275
26276 \change_inserted -712698321 1691671418
26277
26278 \backslash
26279 S
26280 \backslash
26281 arabic{section}
26282 \change_unchanged
26283
26284 \end_layout
26285
26286 \end_inset
26287
26288
26289 \change_inserted -584632292 1690588159
26290  (which might render as §2.7)
26291 \change_unchanged
26292 .
26293 \change_inserted -584632292 1690587966
26294
26295 \end_layout
26296
26297 \begin_layout Description
26298
26299 \change_inserted -584632292 1690588264
26300 \begin_inset Flex Code
26301 status collapsed
26302
26303 \begin_layout Plain Layout
26304
26305 \change_inserted -584632292 1690587970
26306 RefFormat
26307 \change_unchanged
26308
26309 \end_layout
26310
26311 \end_inset
26312
26313  [
26314 \begin_inset Flex Code
26315 status collapsed
26316
26317 \begin_layout Plain Layout
26318
26319 \change_inserted -584632292 1690587966
26320 string
26321 \change_unchanged
26322
26323 \end_layout
26324
26325 \end_inset
26326
26327 ,
26328  
26329 \begin_inset Flex Code
26330 status collapsed
26331
26332 \begin_layout Plain Layout
26333
26334 \change_inserted -584632292 1690587981
26335 string
26336 \change_unchanged
26337
26338 \end_layout
26339
26340 \end_inset
26341
26342 ] For use with `formatted references',
26343  specifically when a single counter is used with multiple sorts of styles.
26344  For example,
26345  the 
26346 \begin_inset Flex Code
26347 status open
26348
26349 \begin_layout Plain Layout
26350
26351 \change_inserted -584632292 1690588222
26352 theorem
26353 \change_unchanged
26354
26355 \end_layout
26356
26357 \end_inset
26358
26359  counter is often used for all sorts of theorem-like environments:
26360  Theorem,
26361  Lemma,
26362  
26363 \change_deleted -712698321 1691671691
26364 e
26365 \change_inserted -584632292 1690588264
26366 etc.
26367  The first argument gives a prefix used in the labels (e.g.,
26368  
26369 \begin_inset Quotes eld
26370 \end_inset
26371
26372 thm
26373 \begin_inset Quotes erd
26374 \end_inset
26375
26376  or 
26377 \begin_inset Quotes eld
26378 \end_inset
26379
26380 lem
26381 \begin_inset Quotes erd
26382 \end_inset
26383
26384 ),
26385  and the second a formatting string,
26386  as for 
26387 \begin_inset Flex Code
26388 status open
26389
26390 \begin_layout Plain Layout
26391
26392 \change_inserted -584632292 1690588181
26393 LabelString
26394 \change_unchanged
26395
26396 \end_layout
26397
26398 \end_inset
26399
26400  or 
26401 \begin_inset Flex Code
26402 status open
26403
26404 \begin_layout Plain Layout
26405
26406 \change_inserted -584632292 1690588177
26407 PrettyFormat
26408 \change_unchanged
26409
26410 \end_layout
26411
26412 \end_inset
26413
26414 .
26415  If this is not given,
26416  then 
26417 \begin_inset Flex Code
26418 status open
26419
26420 \begin_layout Plain Layout
26421
26422 \change_inserted -584632292 1690588264
26423 PrettyFormat
26424 \change_unchanged
26425
26426 \end_layout
26427
26428 \end_inset
26429
26430  is used.
26431 \end_layout
26432
26433 \begin_layout Description
26434 \begin_inset Flex Code
26435 status collapsed
26436
26437 \begin_layout Plain Layout
26438 Within
26439 \end_layout
26440
26441 \end_inset
26442
26443  [
26444 \begin_inset Flex Code
26445 status collapsed
26446
26447 \begin_layout Plain Layout
26448 string
26449 \end_layout
26450
26451 \end_inset
26452
26453 =
26454 \begin_inset Quotes erd
26455 \end_inset
26456
26457
26458 \begin_inset Quotes erd
26459 \end_inset
26460
26461 ] If this is set to the name of another counter,
26462  the present counter will be reset every time the other one is increased.
26463  For example,
26464  
26465 \begin_inset Flex Code
26466 status collapsed
26467
26468 \begin_layout Plain Layout
26469 subsection
26470 \end_layout
26471
26472 \end_inset
26473
26474  is numbered inside 
26475 \begin_inset Flex Code
26476 status collapsed
26477
26478 \begin_layout Plain Layout
26479 section
26480 \end_layout
26481
26482 \end_inset
26483
26484 .
26485 \end_layout
26486
26487 \begin_layout Subsection
26488 Font description
26489 \begin_inset CommandInset label
26490 LatexCommand label
26491 name "subsec:Font-description"
26492
26493 \end_inset
26494
26495
26496 \end_layout
26497
26498 \begin_layout Standard
26499 A font description looks like this:
26500 \end_layout
26501
26502 \begin_layout LyX-Code
26503 Font 
26504 \family roman
26505 \emph on
26506 or
26507 \family default
26508 \emph default
26509  LabelFont
26510 \emph on
26511  
26512 \family roman
26513 or
26514 \family default
26515 \emph default
26516  DefaultFont
26517 \end_layout
26518
26519 \begin_layout LyX-Code
26520  ...
26521 \end_layout
26522
26523 \begin_layout LyX-Code
26524 EndFont
26525 \end_layout
26526
26527 \begin_layout Standard
26528 The following commands are available:
26529 \end_layout
26530
26531 \begin_layout Description
26532 \begin_inset Flex Code
26533 status collapsed
26534
26535 \begin_layout Plain Layout
26536 Color
26537 \end_layout
26538
26539 \end_inset
26540
26541  [
26542 \change_deleted -712698321 1607682984
26543
26544 \begin_inset Flex Code
26545 status collapsed
26546
26547 \begin_layout Plain Layout
26548
26549 \emph on
26550 none
26551 \end_layout
26552
26553 \end_inset
26554
26555 ,
26556  
26557 \begin_inset Flex Code
26558 status collapsed
26559
26560 \begin_layout Plain Layout
26561 black
26562 \end_layout
26563
26564 \end_inset
26565
26566 ,
26567  
26568 \begin_inset Flex Code
26569 status collapsed
26570
26571 \begin_layout Plain Layout
26572 white
26573 \end_layout
26574
26575 \end_inset
26576
26577 ,
26578  
26579 \begin_inset Flex Code
26580 status collapsed
26581
26582 \begin_layout Plain Layout
26583 red
26584 \end_layout
26585
26586 \end_inset
26587
26588 ,
26589  
26590 \begin_inset Flex Code
26591 status collapsed
26592
26593 \begin_layout Plain Layout
26594 green
26595 \end_layout
26596
26597 \end_inset
26598
26599 ,
26600  
26601 \begin_inset Flex Code
26602 status collapsed
26603
26604 \begin_layout Plain Layout
26605 blue
26606 \end_layout
26607
26608 \end_inset
26609
26610 ,
26611  
26612 \begin_inset Flex Code
26613 status collapsed
26614
26615 \begin_layout Plain Layout
26616 cyan
26617 \end_layout
26618
26619 \end_inset
26620
26621 ,
26622  
26623 \begin_inset Flex Code
26624 status collapsed
26625
26626 \begin_layout Plain Layout
26627 magenta
26628 \end_layout
26629
26630 \end_inset
26631
26632 ,
26633  
26634 \begin_inset Flex Code
26635 status collapsed
26636
26637 \begin_layout Plain Layout
26638 yellow
26639 \end_layout
26640
26641 \end_inset
26642
26643 ,
26644  
26645 \begin_inset Flex Code
26646 status collapsed
26647
26648 \begin_layout Plain Layout
26649 brown
26650 \end_layout
26651
26652 \end_inset
26653
26654 ,
26655  
26656 \begin_inset Flex Code
26657 status collapsed
26658
26659 \begin_layout Plain Layout
26660 darkgray
26661 \end_layout
26662
26663 \end_inset
26664
26665 ,
26666  
26667 \begin_inset Flex Code
26668 status collapsed
26669
26670 \begin_layout Plain Layout
26671 gray
26672 \end_layout
26673
26674 \end_inset
26675
26676 ,
26677  
26678 \begin_inset Flex Code
26679 status collapsed
26680
26681 \begin_layout Plain Layout
26682 lightgray
26683 \end_layout
26684
26685 \end_inset
26686
26687 ,
26688  
26689 \begin_inset Flex Code
26690 status collapsed
26691
26692 \begin_layout Plain Layout
26693 lime
26694 \end_layout
26695
26696 \end_inset
26697
26698 ,
26699  
26700 \begin_inset Flex Code
26701 status collapsed
26702
26703 \begin_layout Plain Layout
26704 orange
26705 \end_layout
26706
26707 \end_inset
26708
26709 ,
26710  
26711 \begin_inset Flex Code
26712 status collapsed
26713
26714 \begin_layout Plain Layout
26715 olive
26716 \end_layout
26717
26718 \end_inset
26719
26720 ,
26721  
26722 \begin_inset Flex Code
26723 status collapsed
26724
26725 \begin_layout Plain Layout
26726 pink
26727 \end_layout
26728
26729 \end_inset
26730
26731 ,
26732  
26733 \begin_inset Flex Code
26734 status collapsed
26735
26736 \begin_layout Plain Layout
26737 purple
26738 \end_layout
26739
26740 \end_inset
26741
26742 ,
26743  
26744 \begin_inset Flex Code
26745 status collapsed
26746
26747 \begin_layout Plain Layout
26748 teal
26749 \end_layout
26750
26751 \end_inset
26752
26753 ,
26754  
26755 \begin_inset Flex Code
26756 status collapsed
26757
26758 \begin_layout Plain Layout
26759 violet
26760 \end_layout
26761
26762 \end_inset
26763
26764
26765 \change_inserted -712698321 1607683139
26766
26767 \begin_inset Flex Code
26768 status collapsed
26769
26770 \begin_layout Plain Layout
26771
26772 \change_inserted -712698321 1607683135
26773 string
26774 \change_unchanged
26775
26776 \end_layout
26777
26778 \end_inset
26779
26780 ] See appendix
26781 \begin_inset space ~
26782 \end_inset
26783
26784
26785 \begin_inset CommandInset ref
26786 LatexCommand ref
26787 reference "chap:Names-of-colors"
26788 plural "false"
26789 caps "false"
26790 noprefix "false"
26791 nolink "false"
26792
26793 \end_inset
26794
26795  for 
26796 \change_deleted -712698321 1607683144
26797 ]
26798 \change_inserted -712698321 1607683146
26799 valid arguments.
26800 \change_unchanged
26801
26802 \end_layout
26803
26804 \begin_layout Description
26805 \begin_inset Flex Code
26806 status collapsed
26807
26808 \begin_layout Plain Layout
26809 Family
26810 \end_layout
26811
26812 \end_inset
26813
26814  [
26815 \begin_inset Flex Code
26816 status collapsed
26817
26818 \begin_layout Plain Layout
26819
26820 \emph on
26821 Roman
26822 \end_layout
26823
26824 \end_inset
26825
26826 ,
26827  
26828 \begin_inset Flex Code
26829 status collapsed
26830
26831 \begin_layout Plain Layout
26832 Sans
26833 \end_layout
26834
26835 \end_inset
26836
26837 ,
26838  
26839 \begin_inset Flex Code
26840 status collapsed
26841
26842 \begin_layout Plain Layout
26843 Typewriter
26844 \end_layout
26845
26846 \end_inset
26847
26848 ]
26849 \end_layout
26850
26851 \begin_layout Description
26852 \begin_inset Flex Code
26853 status collapsed
26854
26855 \begin_layout Plain Layout
26856 Misc
26857 \end_layout
26858
26859 \end_inset
26860
26861  [
26862 \begin_inset Flex Code
26863 status collapsed
26864
26865 \begin_layout Plain Layout
26866 string
26867 \end_layout
26868
26869 \end_inset
26870
26871 ] Valid arguments are:
26872  
26873 \begin_inset Flex Code
26874 status collapsed
26875
26876 \begin_layout Plain Layout
26877 emph
26878 \end_layout
26879
26880 \end_inset
26881
26882 ,
26883  
26884 \begin_inset Flex Code
26885 status collapsed
26886
26887 \begin_layout Plain Layout
26888 noun
26889 \end_layout
26890
26891 \end_inset
26892
26893 ,
26894  
26895 \begin_inset Flex Code
26896 status collapsed
26897
26898 \begin_layout Plain Layout
26899 strikeout
26900 \end_layout
26901
26902 \end_inset
26903
26904 ,
26905  
26906 \begin_inset Flex Code
26907 status collapsed
26908
26909 \begin_layout Plain Layout
26910 underbar
26911 \end_layout
26912
26913 \end_inset
26914
26915 ,
26916  
26917 \begin_inset Flex Code
26918 status collapsed
26919
26920 \begin_layout Plain Layout
26921 uuline
26922 \end_layout
26923
26924 \end_inset
26925
26926 ,
26927  
26928 \begin_inset Flex Code
26929 status collapsed
26930
26931 \begin_layout Plain Layout
26932 uwave
26933 \end_layout
26934
26935 \end_inset
26936
26937 ,
26938  
26939 \begin_inset Flex Code
26940 status collapsed
26941
26942 \begin_layout Plain Layout
26943 no_emph
26944 \end_layout
26945
26946 \end_inset
26947
26948 ,
26949  
26950 \begin_inset Flex Code
26951 status collapsed
26952
26953 \begin_layout Plain Layout
26954 no_noun
26955 \end_layout
26956
26957 \end_inset
26958
26959 ,
26960  
26961 \begin_inset Flex Code
26962 status collapsed
26963
26964 \begin_layout Plain Layout
26965 no_strikeout
26966 \end_layout
26967
26968 \end_inset
26969
26970 ,
26971  
26972 \begin_inset Flex Code
26973 status collapsed
26974
26975 \begin_layout Plain Layout
26976 no_bar
26977 \end_layout
26978
26979 \end_inset
26980
26981 ,
26982  
26983 \begin_inset Flex Code
26984 status collapsed
26985
26986 \begin_layout Plain Layout
26987 no_uuline
26988 \end_layout
26989
26990 \end_inset
26991
26992  and 
26993 \begin_inset Flex Code
26994 status collapsed
26995
26996 \begin_layout Plain Layout
26997 no_uwave
26998 \end_layout
26999
27000 \end_inset
27001
27002 .
27003  Each of these turns on or off the corresponding attribute.
27004  For example,
27005  
27006 \begin_inset Flex Code
27007 status collapsed
27008
27009 \begin_layout Plain Layout
27010 emph
27011 \end_layout
27012
27013 \end_inset
27014
27015  turns on emphasis,
27016  and 
27017 \begin_inset Flex Code
27018 status collapsed
27019
27020 \begin_layout Plain Layout
27021 no_emph
27022 \end_layout
27023
27024 \end_inset
27025
27026  turns it off.
27027  
27028 \begin_inset Newline newline
27029 \end_inset
27030
27031 If the latter seems puzzling,
27032  remember that the font settings for the present context are generally inherited from the surrounding context.
27033  So 
27034 \begin_inset Flex Code
27035 status collapsed
27036
27037 \begin_layout Plain Layout
27038 no_emph
27039 \end_layout
27040
27041 \end_inset
27042
27043  would turn off the emphasis that was anyway in effect,
27044  say,
27045  in a theorem environment.
27046 \end_layout
27047
27048 \begin_layout Description
27049 \begin_inset Flex Code
27050 status collapsed
27051
27052 \begin_layout Plain Layout
27053 Series
27054 \end_layout
27055
27056 \end_inset
27057
27058  [
27059 \begin_inset Flex Code
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063
27064 \emph on
27065 Medium
27066 \end_layout
27067
27068 \end_inset
27069
27070 ,
27071  
27072 \begin_inset Flex Code
27073 status collapsed
27074
27075 \begin_layout Plain Layout
27076 Bold
27077 \end_layout
27078
27079 \end_inset
27080
27081
27082 \end_layout
27083
27084 \begin_layout Description
27085 \begin_inset Flex Code
27086 status collapsed
27087
27088 \begin_layout Plain Layout
27089 Shape
27090 \end_layout
27091
27092 \end_inset
27093
27094  [
27095 \begin_inset Flex Code
27096 status collapsed
27097
27098 \begin_layout Plain Layout
27099
27100 \emph on
27101 Up
27102 \end_layout
27103
27104 \end_inset
27105
27106 ,
27107  
27108 \begin_inset Flex Code
27109 status collapsed
27110
27111 \begin_layout Plain Layout
27112 Italic
27113 \end_layout
27114
27115 \end_inset
27116
27117 ,
27118  
27119 \begin_inset Flex Code
27120 status collapsed
27121
27122 \begin_layout Plain Layout
27123 SmallCaps
27124 \end_layout
27125
27126 \end_inset
27127
27128 ,
27129  
27130 \begin_inset Flex Code
27131 status collapsed
27132
27133 \begin_layout Plain Layout
27134 Slanted
27135 \end_layout
27136
27137 \end_inset
27138
27139
27140 \end_layout
27141
27142 \begin_layout Description
27143 \begin_inset Flex Code
27144 status collapsed
27145
27146 \begin_layout Plain Layout
27147 Size
27148 \end_layout
27149
27150 \end_inset
27151
27152  [
27153 \begin_inset Flex Code
27154 status collapsed
27155
27156 \begin_layout Plain Layout
27157 tiny
27158 \end_layout
27159
27160 \end_inset
27161
27162 ,
27163  
27164 \begin_inset Flex Code
27165 status collapsed
27166
27167 \begin_layout Plain Layout
27168 small
27169 \end_layout
27170
27171 \end_inset
27172
27173 ,
27174  
27175 \begin_inset Flex Code
27176 status collapsed
27177
27178 \begin_layout Plain Layout
27179
27180 \emph on
27181 normal
27182 \end_layout
27183
27184 \end_inset
27185
27186 ,
27187  
27188 \begin_inset Flex Code
27189 status collapsed
27190
27191 \begin_layout Plain Layout
27192 large
27193 \end_layout
27194
27195 \end_inset
27196
27197 ,
27198  
27199 \begin_inset Flex Code
27200 status collapsed
27201
27202 \begin_layout Plain Layout
27203 larger
27204 \end_layout
27205
27206 \end_inset
27207
27208 ,
27209  
27210 \begin_inset Flex Code
27211 status collapsed
27212
27213 \begin_layout Plain Layout
27214 largest
27215 \end_layout
27216
27217 \end_inset
27218
27219 ,
27220  
27221 \begin_inset Flex Code
27222 status collapsed
27223
27224 \begin_layout Plain Layout
27225 huge
27226 \end_layout
27227
27228 \end_inset
27229
27230 ,
27231  
27232 \begin_inset Flex Code
27233 status collapsed
27234
27235 \begin_layout Plain Layout
27236 giant
27237 \end_layout
27238
27239 \end_inset
27240
27241 ]
27242 \end_layout
27243
27244 \begin_layout Subsection
27245 \begin_inset CommandInset label
27246 LatexCommand label
27247 name "subsec:Citation-engine-description"
27248
27249 \end_inset
27250
27251 Cite engine description
27252 \end_layout
27253
27254 \begin_layout Standard
27255 The 
27256 \begin_inset Flex Code
27257 status collapsed
27258
27259 \begin_layout Plain Layout
27260 CiteEngine
27261 \end_layout
27262
27263 \end_inset
27264
27265  blocks,
27266  as used mainly in cite engine files (see 
27267 \begin_inset CommandInset ref
27268 LatexCommand ref
27269 reference "subsec:Cite-Engine-Files"
27270 plural "false"
27271 caps "false"
27272 noprefix "false"
27273 nolink "false"
27274
27275 \end_inset
27276
27277 ),
27278  define the citation commands provided by a specific 
27279 \begin_inset Quotes eld
27280 \end_inset
27281
27282 cite engine
27283 \begin_inset Quotes erd
27284 \end_inset
27285
27286 .
27287  A cite engine,
27288  in \SpecialChar LyX
27289  terms,
27290  is way specific way to format citations,
27291  using numbers,
27292  author names and/or years.
27293  Currently,
27294  \SpecialChar LyX
27295  supports three such engine types,
27296  namely:
27297 \end_layout
27298
27299 \begin_layout Enumerate
27300 \begin_inset Flex Code
27301 status collapsed
27302
27303 \begin_layout Plain Layout
27304 default
27305 \end_layout
27306
27307 \end_inset
27308
27309 :
27310  the default Bib\SpecialChar TeX
27311  way to format citations,
27312  a simple numeric style (e.
27313 \begin_inset space \thinspace{}
27314 \end_inset
27315
27316 g.,
27317  
27318 \begin_inset Quotes eld
27319 \end_inset
27320
27321 [1]
27322 \begin_inset Quotes erd
27323 \end_inset
27324
27325 )
27326 \end_layout
27327
27328 \begin_layout Enumerate
27329 \begin_inset Flex Code
27330 status collapsed
27331
27332 \begin_layout Plain Layout
27333 authoryear
27334 \end_layout
27335
27336 \end_inset
27337
27338 :
27339  Harvard-styled citations using author names and publication year (e.
27340 \begin_inset space \thinspace{}
27341 \end_inset
27342
27343 g.,
27344  
27345 \begin_inset Quotes eld
27346 \end_inset
27347
27348 Smith and Miller (2017b)
27349 \begin_inset Quotes erd
27350 \end_inset
27351
27352 )
27353 \end_layout
27354
27355 \begin_layout Enumerate
27356 \begin_inset Flex Code
27357 status collapsed
27358
27359 \begin_layout Plain Layout
27360 numerical
27361 \end_layout
27362
27363 \end_inset
27364
27365 :
27366  extended numerical citations that also allow for author or title next to the number (e.
27367 \begin_inset space \thinspace{}
27368 \end_inset
27369
27370 g.,
27371  
27372 \begin_inset Quotes eld
27373 \end_inset
27374
27375 Smith and Miller [1]
27376 \begin_inset Quotes erd
27377 \end_inset
27378
27379 )
27380 \end_layout
27381
27382 \begin_layout Standard
27383 \begin_inset Flex Code
27384 status collapsed
27385
27386 \begin_layout Plain Layout
27387 CiteEngine
27388 \end_layout
27389
27390 \end_inset
27391
27392  blocks look like this:
27393 \end_layout
27394
27395 \begin_layout LyX-Code
27396 CiteEngine default
27397 \end_layout
27398
27399 \begin_layout LyX-Code
27400  cite
27401 \end_layout
27402
27403 \begin_layout LyX-Code
27404  Citep*[][]
27405 \end_layout
27406
27407 \begin_layout LyX-Code
27408  citeyearpar[][]=parencite*
27409 \end_layout
27410
27411 \begin_layout LyX-Code
27412  ...
27413 \end_layout
27414
27415 \begin_layout LyX-Code
27416 End
27417 \end_layout
27418
27419 \begin_layout Standard
27420 The tag following 
27421 \begin_inset Flex Code
27422 status collapsed
27423
27424 \begin_layout Plain Layout
27425 CiteEngine
27426 \end_layout
27427
27428 \end_inset
27429
27430  denotes the engine.
27431  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
27432  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
27433  command and the \SpecialChar LaTeX
27434  output or more complex in order to differentiate things.
27435  The full syntax is:
27436 \end_layout
27437
27438 \begin_layout LyX-Code
27439 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
27440 \end_layout
27441
27442 \begin_layout Itemize
27443 \begin_inset Flex Code
27444 status collapsed
27445
27446 \begin_layout Plain Layout
27447 LyXName
27448 \end_layout
27449
27450 \end_inset
27451
27452 :
27453  The name as used in the 
27454 \begin_inset Flex Code
27455 status collapsed
27456
27457 \begin_layout Plain Layout
27458 *.lyx
27459 \end_layout
27460
27461 \end_inset
27462
27463  file.
27464 \end_layout
27465
27466 \begin_deeper
27467 \begin_layout Standard
27468 For portability reasons,
27469  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
27470  and thus we need to differentiate a 
27471 \begin_inset Flex Code
27472 status collapsed
27473
27474 \begin_layout Plain Layout
27475 latexcmd
27476 \end_layout
27477
27478 \end_inset
27479
27480  sometimes,
27481  if the \SpecialChar LaTeX
27482  command names differ).
27483 \end_layout
27484
27485 \end_deeper
27486 \begin_layout Itemize
27487 \begin_inset Flex Code
27488 status collapsed
27489
27490 \begin_layout Plain Layout
27491 alias
27492 \end_layout
27493
27494 \end_inset
27495
27496 :
27497  a (comma-separated) list of commands that fall back to the given 
27498 \begin_inset Flex Code
27499 status collapsed
27500
27501 \begin_layout Plain Layout
27502 LyXName
27503 \end_layout
27504
27505 \end_inset
27506
27507  in the current engine.
27508  This eases the switch of citation packages and engines.
27509  The 
27510 \begin_inset Flex Code
27511 status collapsed
27512
27513 \begin_layout Plain Layout
27514 alias
27515 \end_layout
27516
27517 \end_inset
27518
27519  can be compared to 
27520 \begin_inset Flex Code
27521 status collapsed
27522
27523 \begin_layout Plain Layout
27524 ObsoletedBy
27525 \end_layout
27526
27527 \end_inset
27528
27529  in layout definitions.
27530 \end_layout
27531
27532 \begin_layout Itemize
27533 \begin_inset Flex Code
27534 status collapsed
27535
27536 \begin_layout Plain Layout
27537 latexcmd
27538 \end_layout
27539
27540 \end_inset
27541
27542 :
27543  The actual \SpecialChar LaTeX
27544  command that is output.
27545  
27546 \end_layout
27547
27548 \begin_layout Standard
27549 \begin_inset Flex Code
27550 status collapsed
27551
27552 \begin_layout Plain Layout
27553 Alias
27554 \end_layout
27555
27556 \end_inset
27557
27558  and 
27559 \begin_inset Flex Code
27560 status collapsed
27561
27562 \begin_layout Plain Layout
27563 latexcmd
27564 \end_layout
27565
27566 \end_inset
27567
27568  are optional.
27569  If no 
27570 \begin_inset Flex Code
27571 status collapsed
27572
27573 \begin_layout Plain Layout
27574 latexcmd
27575 \end_layout
27576
27577 \end_inset
27578
27579  is given,
27580  the 
27581 \begin_inset Flex Code
27582 status collapsed
27583
27584 \begin_layout Plain Layout
27585 LyXName
27586 \end_layout
27587
27588 \end_inset
27589
27590  will be output to \SpecialChar LaTeX
27591 .
27592 \end_layout
27593
27594 \begin_layout Standard
27595 Note further:
27596 \end_layout
27597
27598 \begin_layout Itemize
27599 Capitalization indicates that the command also has a capitalized form (
27600 \begin_inset Flex Code
27601 status collapsed
27602
27603 \begin_layout Plain Layout
27604
27605 \backslash
27606 Latexcmd
27607 \end_layout
27608
27609 \end_inset
27610
27611  vs.
27612  
27613 \begin_inset Flex Code
27614 status collapsed
27615
27616 \begin_layout Plain Layout
27617
27618 \backslash
27619 latexcmd
27620 \end_layout
27621
27622 \end_inset
27623
27624 ).
27625  These usually enforce up-casing of name prefixes (
27626 \emph on
27627 von Goethe
27628 \emph default
27629  
27630 \begin_inset Formula $\Rightarrow$
27631 \end_inset
27632
27633  
27634 \emph on
27635 Von Goethe
27636 \emph default
27637 ).
27638 \end_layout
27639
27640 \begin_layout Itemize
27641 Brackets 
27642 \begin_inset Flex Code
27643 status collapsed
27644
27645 \begin_layout Plain Layout
27646 []
27647 \end_layout
27648
27649 \end_inset
27650
27651  indicate the number of optional arguments (there can be 0–2).
27652 \end_layout
27653
27654 \begin_layout Itemize
27655 A star 
27656 \begin_inset Flex Code
27657 status collapsed
27658
27659 \begin_layout Plain Layout
27660 *
27661 \end_layout
27662
27663 \end_inset
27664
27665  indicates there is a starred version of the command (
27666 \begin_inset Flex Code
27667 status collapsed
27668
27669 \begin_layout Plain Layout
27670
27671 \backslash
27672 latexcmd*
27673 \end_layout
27674
27675 \end_inset
27676
27677  vs.
27678  
27679 \begin_inset Flex Code
27680 status collapsed
27681
27682 \begin_layout Plain Layout
27683
27684 \backslash
27685 latexcmd
27686 \end_layout
27687
27688 \end_inset
27689
27690 ).
27691  
27692 \end_layout
27693
27694 \begin_deeper
27695 \begin_layout Standard
27696 By default,
27697  the starred version means:
27698  Output all authors even if it should be shortened with 
27699 \begin_inset Quotes eld
27700 \end_inset
27701
27702 et al.
27703 \begin_inset Quotes erd
27704 \end_inset
27705
27706  due to the 
27707 \begin_inset Flex Code
27708 status collapsed
27709
27710 \begin_layout Plain Layout
27711 MaxCiteNames
27712 \end_layout
27713
27714 \end_inset
27715
27716  threshold.
27717 \end_layout
27718
27719 \begin_layout Standard
27720 If the star has a different meaning for a given command,
27721  it can be specified in angle brackets:
27722  
27723 \begin_inset Flex Code
27724 status collapsed
27725
27726 \begin_layout Plain Layout
27727 <!_stardesc!_stardesctooltip>
27728 \end_layout
27729
27730 \end_inset
27731
27732 .
27733  Maximal two translatable macro keywords,
27734  marked by the prefix 
27735 \begin_inset Flex Code
27736 status collapsed
27737
27738 \begin_layout Plain Layout
27739 !_
27740 \end_layout
27741
27742 \end_inset
27743
27744 ,
27745  can be given.
27746  The first points to the string that replaces the 
27747 \begin_inset Quotes eld
27748 \end_inset
27749
27750 Full aut&hor list
27751 \begin_inset Quotes erd
27752 \end_inset
27753
27754  checkbox label in the citation dialog,
27755  the second one to an optional tool tip for this checkbox.
27756  
27757 \end_layout
27758
27759 \begin_layout Standard
27760 Note that these two macros have to be defined in a 
27761 \begin_inset Flex Code
27762 status collapsed
27763
27764 \begin_layout Plain Layout
27765 CiteFormat
27766 \end_layout
27767
27768 \end_inset
27769
27770  (see next section),
27771  dropping the 
27772 \begin_inset Flex Code
27773 status collapsed
27774
27775 \begin_layout Plain Layout
27776 !
27777 \end_layout
27778
27779 \end_inset
27780
27781  from the prefix,
27782  like this:
27783  
27784 \end_layout
27785
27786 \begin_layout LyX-Code
27787 _stardesc Sta&rred command label
27788 \end_layout
27789
27790 \begin_layout LyX-Code
27791 _stardesctooltip Tooltip for the starred command checkbox.
27792 \end_layout
27793
27794 \end_deeper
27795 \begin_layout Itemize
27796 A dollar sign 
27797 \begin_inset Flex Code
27798 status collapsed
27799
27800 \begin_layout Plain Layout
27801 $
27802 \end_layout
27803
27804 \end_inset
27805
27806  indicates that this command features 
27807 \begin_inset Quotes eld
27808 \end_inset
27809
27810 qualified citation lists
27811 \begin_inset Quotes erd
27812 \end_inset
27813
27814 .
27815  This is a 
27816 \family sans
27817 Biblatex
27818 \family default
27819 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
27820  Please refer to the 
27821 \family sans
27822 Biblatex
27823 \family default
27824  manual for details.
27825 \change_inserted -712698321 1526898670
27826
27827 \end_layout
27828
27829 \begin_layout Standard
27830
27831 \change_inserted -712698321 1526899524
27832 If you want to add a cite command to a cite engine (e.
27833 \begin_inset space \thinspace{}
27834 \end_inset
27835
27836 g.,
27837  add a specific command provided by a class),
27838  you can use 
27839 \begin_inset Flex Code
27840 status collapsed
27841
27842 \begin_layout Plain Layout
27843
27844 \change_inserted -712698321 1526898768
27845 AddToCiteEngine <engine type> \SpecialChar ldots
27846  End
27847 \change_unchanged
27848
27849 \end_layout
27850
27851 \end_inset
27852
27853 .
27854  Note that only cite commands that do not exist yet are added.
27855 \change_unchanged
27856
27857 \end_layout
27858
27859 \begin_layout Subsection
27860 \begin_inset CommandInset label
27861 LatexCommand label
27862 name "subsec:Citation-format-description"
27863
27864 \end_inset
27865
27866 Cite format description
27867 \end_layout
27868
27869 \begin_layout Standard
27870 The 
27871 \begin_inset Flex Code
27872 status collapsed
27873
27874 \begin_layout Plain Layout
27875 CiteFormat
27876 \end_layout
27877
27878 \end_inset
27879
27880  blocks are used to describe how bibliographic information should be displayed,
27881  both within \SpecialChar LyX
27882  itself (in the citation dialog and in tooltips,
27883  for example) and in XHTML output.
27884  Such a block might look like this:
27885 \end_layout
27886
27887 \begin_layout LyX-Code
27888 CiteFormat
27889 \end_layout
27890
27891 \begin_layout LyX-Code
27892  article ...
27893 \end_layout
27894
27895 \begin_layout LyX-Code
27896  book ...
27897 \end_layout
27898
27899 \begin_layout LyX-Code
27900 End
27901 \end_layout
27902
27903 \begin_layout Standard
27904 or
27905 \end_layout
27906
27907 \begin_layout LyX-Code
27908 CiteFormat
27909 \end_layout
27910
27911 \begin_layout LyX-Code
27912  cite ...
27913 \end_layout
27914
27915 \begin_layout LyX-Code
27916  citet*[][] ...
27917 \end_layout
27918
27919 \begin_layout LyX-Code
27920 End
27921 \end_layout
27922
27923 \begin_layout Standard
27924 In the first case,
27925  the individual lines define how the bibliographic information associated with an article or book,
27926  respectively,
27927  is to be displayed,
27928  and such a definition can be given for any 
27929 \begin_inset Quotes els
27930 \end_inset
27931
27932 entry type
27933 \begin_inset Quotes ers
27934 \end_inset
27935
27936  that might be present in a Bib\SpecialChar TeX
27937  file.
27938  \SpecialChar LyX
27939  defines a default format in the source code that will be used if no specific definition has been given.
27940  \SpecialChar LyX
27941  predefines several formats in the file 
27942 \begin_inset Flex Code
27943 status collapsed
27944
27945 \begin_layout Plain Layout
27946 stdciteformats.inc
27947 \end_layout
27948
27949 \end_inset
27950
27951 ,
27952  which is included in most of \SpecialChar LyX
27953 's document classes.
27954 \end_layout
27955
27956 \begin_layout Standard
27957 In the second case,
27958  the lines define how a specific citation command (in the example 
27959 \begin_inset Flex Code
27960 status collapsed
27961
27962 \begin_layout Plain Layout
27963
27964 \backslash
27965 cite
27966 \end_layout
27967
27968 \end_inset
27969
27970 ,
27971  
27972 \begin_inset Flex Code
27973 status collapsed
27974
27975 \begin_layout Plain Layout
27976
27977 \backslash
27978 citet
27979 \end_layout
27980
27981 \end_inset
27982
27983 ) is to be displayed on the citation inset label,
27984  in the citation dialog,
27985  menu or XHTML output.
27986  \SpecialChar LyX
27987  defines such formats for the citation style variants it supports via 
27988 \family sans
27989 Document\SpecialChar menuseparator
27990 Setting\SpecialChar menuseparator
27991 Bibliography\SpecialChar ldots
27992
27993 \family default
27994  in specific 
27995 \begin_inset Flex Code
27996 status collapsed
27997
27998 \begin_layout Plain Layout
27999 *.citeengine
28000 \end_layout
28001
28002 \end_inset
28003
28004  files that are shipped with \SpecialChar LyX
28005  (see 
28006 \begin_inset CommandInset ref
28007 LatexCommand ref
28008 reference "subsec:Cite-Engine-Files"
28009 plural "false"
28010 caps "false"
28011 noprefix "false"
28012 nolink "false"
28013
28014 \end_inset
28015
28016 ).
28017 \end_layout
28018
28019 \begin_layout Standard
28020 The definitions use a simple language that allows Bib\SpecialChar TeX
28021  keys to be replaced with their values.
28022  Keys should be enclosed in 
28023 \begin_inset Flex Code
28024 status collapsed
28025
28026 \begin_layout Plain Layout
28027 %
28028 \end_layout
28029
28030 \end_inset
28031
28032  signs,
28033  e.g.:
28034  
28035 \begin_inset Flex Code
28036 status collapsed
28037
28038 \begin_layout Plain Layout
28039 %author%
28040 \end_layout
28041
28042 \end_inset
28043
28044 .
28045  So a simple definition might look like this:
28046 \end_layout
28047
28048 \begin_layout LyX-Code
28049 misc %author%,
28050  
28051 \begin_inset Quotes eld
28052 \end_inset
28053
28054 %title%
28055 \begin_inset Quotes erd
28056 \end_inset
28057
28058 .
28059 \end_layout
28060
28061 \begin_layout Standard
28062 This would print the author,
28063  followed by a comma,
28064  followed by the title,
28065  in quotes,
28066  followed by a period.
28067 \end_layout
28068
28069 \begin_layout Standard
28070 Of course,
28071  sometimes you may want to print a key only if it exists.
28072  This can be done by using a conditional construction,
28073  such as:
28074  
28075 \begin_inset Flex Code
28076 status collapsed
28077
28078 \begin_layout Plain Layout
28079 {%volume%[[vol.
28080 \begin_inset space ~
28081 \end_inset
28082
28083 %volume%]]}
28084 \end_layout
28085
28086 \end_inset
28087
28088 .
28089  This says:
28090  If the 
28091 \begin_inset Flex Code
28092 status collapsed
28093
28094 \begin_layout Plain Layout
28095 volume
28096 \end_layout
28097
28098 \end_inset
28099
28100  key exists,
28101  then print 
28102 \begin_inset Quotes eld
28103 \end_inset
28104
28105 vol.
28106 \begin_inset space ~
28107 \end_inset
28108
28109
28110 \begin_inset Quotes erd
28111 \end_inset
28112
28113  followed by the volume key.
28114  It is also possible to have an else clause in the conditional,
28115  such as:
28116 \begin_inset Newline newline
28117 \end_inset
28118
28119
28120 \begin_inset Flex Code
28121 status collapsed
28122
28123 \begin_layout Plain Layout
28124 {%author%[[%author%]][[%editor%,
28125  ed.]]}
28126 \end_layout
28127
28128 \end_inset
28129
28130 .
28131 \begin_inset Newline newline
28132 \end_inset
28133
28134 Here,
28135  the 
28136 \begin_inset Flex Code
28137 status collapsed
28138
28139 \begin_layout Plain Layout
28140 author
28141 \end_layout
28142
28143 \end_inset
28144
28145  key is printed if it exists;
28146  otherwise,
28147  the editor key is printed,
28148  followed by 
28149 \begin_inset Quotes eld
28150 \end_inset
28151
28152 ,
28153 \begin_inset space ~
28154 \end_inset
28155
28156 ed.
28157 \begin_inset Quotes erd
28158 \end_inset
28159
28160  Note that the key is again enclosed in 
28161 \begin_inset Flex Code
28162 status collapsed
28163
28164 \begin_layout Plain Layout
28165 %
28166 \end_layout
28167
28168 \end_inset
28169
28170  signs;
28171  the entire conditional is enclosed in braces;
28172  and the if and else clauses are enclosed in double brackets,
28173  
28174 \begin_inset Quotes eld
28175 \end_inset
28176
28177
28178 \begin_inset Flex Code
28179 status collapsed
28180
28181 \begin_layout Plain Layout
28182 [[
28183 \end_layout
28184
28185 \end_inset
28186
28187
28188 \begin_inset Quotes eld
28189 \end_inset
28190
28191  and 
28192 \begin_inset Quotes eld
28193 \end_inset
28194
28195
28196 \begin_inset Flex Code
28197 status collapsed
28198
28199 \begin_layout Plain Layout
28200 ]]
28201 \end_layout
28202
28203 \end_inset
28204
28205
28206 \begin_inset Quotes erd
28207 \end_inset
28208
28209 .
28210  There must be no space between any of these.
28211 \end_layout
28212
28213 \begin_layout Standard
28214 Next to the entry keys,
28215  there are some special keys that can be used for these conditionals:
28216 \end_layout
28217
28218 \begin_layout Itemize
28219 \begin_inset Flex Code
28220 status collapsed
28221
28222 \begin_layout Plain Layout
28223 {%dialog%[[true]][[false]]}
28224 \end_layout
28225
28226 \end_inset
28227
28228 :
28229  process the 
28230 \begin_inset Quotes eld
28231 \end_inset
28232
28233 true
28234 \begin_inset Quotes erd
28235 \end_inset
28236
28237  part for dialogs and menus,
28238  the 
28239 \begin_inset Quotes eld
28240 \end_inset
28241
28242 false
28243 \begin_inset Quotes erd
28244 \end_inset
28245
28246  part for other contexts (workarea,
28247  export)
28248 \end_layout
28249
28250 \begin_layout Itemize
28251 \begin_inset Flex Code
28252 status collapsed
28253
28254 \begin_layout Plain Layout
28255 {%export%[[true]][[false]]}
28256 \end_layout
28257
28258 \end_inset
28259
28260 :
28261  process the 
28262 \begin_inset Quotes eld
28263 \end_inset
28264
28265 true
28266 \begin_inset Quotes erd
28267 \end_inset
28268
28269  part for export and menus,
28270  the 
28271 \begin_inset Quotes eld
28272 \end_inset
28273
28274 false
28275 \begin_inset Quotes erd
28276 \end_inset
28277
28278  part for other contexts (workarea,
28279  dialog)
28280 \end_layout
28281
28282 \begin_layout Itemize
28283 \begin_inset Flex Code
28284 status collapsed
28285
28286 \begin_layout Plain Layout
28287 {%next%[[true]]}
28288 \end_layout
28289
28290 \end_inset
28291
28292 :
28293  process the 
28294 \begin_inset Quotes eld
28295 \end_inset
28296
28297 true
28298 \begin_inset Quotes erd
28299 \end_inset
28300
28301  part if another item follows (e.
28302 \begin_inset space \thinspace{}
28303 \end_inset
28304
28305 g.,
28306  in a citation with multiple keys)
28307 \end_layout
28308
28309 \begin_layout Itemize
28310 \begin_inset Flex Code
28311 status collapsed
28312
28313 \begin_layout Plain Layout
28314 {%second%[[true]][[false]]}
28315 \end_layout
28316
28317 \end_inset
28318
28319 :
28320  process the 
28321 \begin_inset Quotes eld
28322 \end_inset
28323
28324 true
28325 \begin_inset Quotes erd
28326 \end_inset
28327
28328  if this is the second of multiple items,
28329  else the 
28330 \begin_inset Quotes eld
28331 \end_inset
28332
28333 false
28334 \begin_inset Quotes erd
28335 \end_inset
28336
28337  part
28338 \end_layout
28339
28340 \begin_layout Itemize
28341 \begin_inset Flex Code
28342 status collapsed
28343
28344 \begin_layout Plain Layout
28345 {%ifstar%[[true]][[false]]}
28346 \end_layout
28347
28348 \end_inset
28349
28350 :
28351  process the 
28352 \begin_inset Quotes eld
28353 \end_inset
28354
28355 true
28356 \begin_inset Quotes erd
28357 \end_inset
28358
28359  part for starred citation commands (such as 
28360 \begin_inset Flex Code
28361 status collapsed
28362
28363 \begin_layout Plain Layout
28364
28365 \backslash
28366 cite*
28367 \end_layout
28368
28369 \end_inset
28370
28371 ),
28372  the false part for unstarred
28373 \end_layout
28374
28375 \begin_layout Itemize
28376 \begin_inset Flex Code
28377 status collapsed
28378
28379 \begin_layout Plain Layout
28380 {%ifentrytype:<type>%[[true]][[false]]}
28381 \end_layout
28382
28383 \end_inset
28384
28385 :
28386  process the 
28387 \begin_inset Quotes eld
28388 \end_inset
28389
28390 true
28391 \begin_inset Quotes erd
28392 \end_inset
28393
28394  if the current entry type matches 
28395 \begin_inset Flex Code
28396 status collapsed
28397
28398 \begin_layout Plain Layout
28399 <type>
28400 \end_layout
28401
28402 \end_inset
28403
28404 ,
28405  else the false part (e.g.,
28406  in a citation definition:
28407  
28408 \begin_inset Flex Code
28409 status collapsed
28410
28411 \begin_layout Plain Layout
28412 {%ifentrytype:book%[[this is a book]][[this is no book]]}
28413 \end_layout
28414
28415 \end_inset
28416
28417 )
28418 \end_layout
28419
28420 \begin_layout Itemize
28421 \begin_inset Flex Code
28422 status collapsed
28423
28424 \begin_layout Plain Layout
28425 {%ifmultiple:<authortype>%[[true]][[false]]}
28426 \end_layout
28427
28428 \end_inset
28429
28430 :
28431  process the 
28432 \begin_inset Quotes eld
28433 \end_inset
28434
28435 true
28436 \begin_inset Quotes erd
28437 \end_inset
28438
28439  if the current author type (author,
28440  editor etc.) has multiple authors,
28441  else the false part (e.g.,
28442  in a bibliography definition:
28443  
28444 \begin_inset Flex Code
28445 status collapsed
28446
28447 \begin_layout Plain Layout
28448 {%ifmultiple:editor%[[eds.]][[ed.]]}
28449 \end_layout
28450
28451 \end_inset
28452
28453 )
28454 \end_layout
28455
28456 \begin_layout Itemize
28457 \begin_inset Flex Code
28458 status collapsed
28459
28460 \begin_layout Plain Layout
28461 {%ifqualified%[[true]][[false]]}
28462 \end_layout
28463
28464 \end_inset
28465
28466 :
28467  process the 
28468 \begin_inset Quotes eld
28469 \end_inset
28470
28471 true
28472 \begin_inset Quotes erd
28473 \end_inset
28474
28475  part if the current citation is a qualified citation list (a specific 
28476 \family sans
28477 Biblatex
28478 \family default
28479  format for multi-reference citations),
28480  the false part if this is not the case.
28481 \end_layout
28482
28483 \begin_layout Standard
28484 We said that 
28485 \begin_inset Flex Code
28486 status collapsed
28487
28488 \begin_layout Plain Layout
28489 %author%
28490 \end_layout
28491
28492 \end_inset
28493
28494  prints the author key as it is recorded in the bibliography file.
28495  This might not be what you want,
28496  since it will result in a string such as 
28497 \begin_inset Quotes eld
28498 \end_inset
28499
28500 Miller,
28501  Peter and Smith,
28502  Mary and White,
28503  Jane
28504 \begin_inset Quotes erd
28505 \end_inset
28506
28507  (since 
28508 \begin_inset Quotes eld
28509 \end_inset
28510
28511 and
28512 \begin_inset Quotes erd
28513 \end_inset
28514
28515  is used by Bib\SpecialChar TeX
28516  to delimit authors).
28517  \SpecialChar LyX
28518  therefore provides some methods to get properly formatted name lists (which will also get translated).
28519  The following keys are provided:
28520 \end_layout
28521
28522 \begin_layout Enumerate
28523 For name lists with pre- and surname,
28524  suitable for the main authors/editors of a bibliography item.
28525  The 
28526 \begin_inset Flex Code
28527 status collapsed
28528
28529 \begin_layout Plain Layout
28530 <nametype>
28531 \end_layout
28532
28533 \end_inset
28534
28535  part denotes the kind of list that is requested (e.g.
28536  
28537 \begin_inset Flex Code
28538 status collapsed
28539
28540 \begin_layout Plain Layout
28541 <nametype:author>
28542 \end_layout
28543
28544 \end_inset
28545
28546 ):
28547 \end_layout
28548
28549 \begin_deeper
28550 \begin_layout Itemize
28551 \begin_inset Flex Code
28552 status collapsed
28553
28554 \begin_layout Plain Layout
28555 %abbrvnames:<nametype>%
28556 \end_layout
28557
28558 \end_inset
28559
28560 :
28561  Provides a name list which is abbreviated (with 
28562 \begin_inset Quotes eld
28563 \end_inset
28564
28565 et al.
28566 \begin_inset Quotes erd
28567 \end_inset
28568
28569 ) when 
28570 \begin_inset Flex Code
28571 status collapsed
28572
28573 \begin_layout Plain Layout
28574 MaxCiteNames
28575 \end_layout
28576
28577 \end_inset
28578
28579  is reached.
28580 \end_layout
28581
28582 \begin_layout Itemize
28583 \begin_inset Flex Code
28584 status collapsed
28585
28586 \begin_layout Plain Layout
28587 %fullnames:<nametype>%
28588 \end_layout
28589
28590 \end_inset
28591
28592 :
28593  Provides a full name list (never abbreviated with 
28594 \begin_inset Quotes eld
28595 \end_inset
28596
28597 et al.
28598 \begin_inset Quotes erd
28599 \end_inset
28600
28601 ).
28602 \end_layout
28603
28604 \begin_layout Itemize
28605 \begin_inset Flex Code
28606 status collapsed
28607
28608 \begin_layout Plain Layout
28609 %forceabbrvnames:<nametype>%
28610 \end_layout
28611
28612 \end_inset
28613
28614 :
28615  Provides a name list which is always abbreviated (with 
28616 \begin_inset Quotes eld
28617 \end_inset
28618
28619 et al.
28620 \begin_inset Quotes erd
28621 \end_inset
28622
28623 ) irrespective of 
28624 \begin_inset Flex Code
28625 status collapsed
28626
28627 \begin_layout Plain Layout
28628 MaxCiteNames
28629 \end_layout
28630
28631 \end_inset
28632
28633 .
28634 \end_layout
28635
28636 \end_deeper
28637 \begin_layout Enumerate
28638 Alternative name lists with pre- and surname,
28639  if the order of pre- and surname inside the bibliography item differs (as in:
28640  
28641 \begin_inset Quotes eld
28642 \end_inset
28643
28644 Miller,
28645  John:
28646  Some text,
28647  in:
28648  Mary Smith,
28649  ed.:
28650  A volume
28651 \begin_inset Quotes erd
28652 \end_inset
28653
28654 ):
28655 \end_layout
28656
28657 \begin_deeper
28658 \begin_layout Itemize
28659 \begin_inset Flex Code
28660 status collapsed
28661
28662 \begin_layout Plain Layout
28663 %abbrvbynames:<nametype>%
28664 \end_layout
28665
28666 \end_inset
28667
28668 :
28669  Provides a name list which is abbreviated (with 
28670 \begin_inset Quotes eld
28671 \end_inset
28672
28673 et al.
28674 \begin_inset Quotes erd
28675 \end_inset
28676
28677 ) when 
28678 \begin_inset Flex Code
28679 status collapsed
28680
28681 \begin_layout Plain Layout
28682 MaxCiteNames
28683 \end_layout
28684
28685 \end_inset
28686
28687  is reached.
28688 \end_layout
28689
28690 \begin_layout Itemize
28691 \begin_inset Flex Code
28692 status collapsed
28693
28694 \begin_layout Plain Layout
28695 %fullbynames:<nametype>%
28696 \end_layout
28697
28698 \end_inset
28699
28700 :
28701  Provides a full name list (never abbreviated with 
28702 \begin_inset Quotes eld
28703 \end_inset
28704
28705 et al.
28706 \begin_inset Quotes erd
28707 \end_inset
28708
28709 ).
28710 \end_layout
28711
28712 \begin_layout Itemize
28713 \begin_inset Flex Code
28714 status collapsed
28715
28716 \begin_layout Plain Layout
28717 %forceabbrvbynames:<nametype>%
28718 \end_layout
28719
28720 \end_inset
28721
28722 :
28723  Provides a name list which is always abbreviated (with 
28724 \begin_inset Quotes eld
28725 \end_inset
28726
28727 et al.
28728 \begin_inset Quotes erd
28729 \end_inset
28730
28731 ) irrespective of 
28732 \begin_inset Flex Code
28733 status collapsed
28734
28735 \begin_layout Plain Layout
28736 MaxCiteNames
28737 \end_layout
28738
28739 \end_inset
28740
28741 .
28742 \end_layout
28743
28744 \end_deeper
28745 \begin_layout Enumerate
28746 And finally name lists which consist of family names only,
28747  as used in author-year citation labels.
28748  These do not take a 
28749 \begin_inset Flex Code
28750 status collapsed
28751
28752 \begin_layout Plain Layout
28753 <nametype>
28754 \end_layout
28755
28756 \end_inset
28757
28758  part,
28759  but always return either an author list or,
28760  if this does not exist,
28761  an editor list (as common in author-year labels):
28762 \end_layout
28763
28764 \begin_deeper
28765 \begin_layout Itemize
28766 \begin_inset Flex Code
28767 status collapsed
28768
28769 \begin_layout Plain Layout
28770 %abbrvciteauthor%
28771 \end_layout
28772
28773 \end_inset
28774
28775 :
28776  Provides a name list which is abbreviated (with 
28777 \begin_inset Quotes eld
28778 \end_inset
28779
28780 et al.
28781 \begin_inset Quotes erd
28782 \end_inset
28783
28784 ) when 
28785 \begin_inset Flex Code
28786 status collapsed
28787
28788 \begin_layout Plain Layout
28789 MaxCiteNames
28790 \end_layout
28791
28792 \end_inset
28793
28794  is reached.
28795 \end_layout
28796
28797 \begin_layout Itemize
28798 \begin_inset Flex Code
28799 status collapsed
28800
28801 \begin_layout Plain Layout
28802 %fullciteauthor%
28803 \end_layout
28804
28805 \end_inset
28806
28807 :
28808  Provides a full name list (never abbreviated with 
28809 \begin_inset Quotes eld
28810 \end_inset
28811
28812 et al.
28813 \begin_inset Quotes erd
28814 \end_inset
28815
28816 ).
28817 \end_layout
28818
28819 \begin_layout Itemize
28820 \begin_inset Flex Code
28821 status collapsed
28822
28823 \begin_layout Plain Layout
28824 %forceabbrvciteauthor%
28825 \end_layout
28826
28827 \end_inset
28828
28829 :
28830  Provides a name list which is always abbreviated (with 
28831 \begin_inset Quotes eld
28832 \end_inset
28833
28834 et al.
28835 \begin_inset Quotes erd
28836 \end_inset
28837
28838 ) irrespective of 
28839 \begin_inset Flex Code
28840 status collapsed
28841
28842 \begin_layout Plain Layout
28843 MaxCiteNames
28844 \end_layout
28845
28846 \end_inset
28847
28848 .
28849 \end_layout
28850
28851 \end_deeper
28852 \begin_layout Standard
28853 The order of pre- and surname in the former two lists can be adjusted by these macros:
28854 \end_layout
28855
28856 \begin_layout Itemize
28857 \begin_inset Flex Code
28858 status collapsed
28859
28860 \begin_layout Plain Layout
28861 !firstnameform %surname%,
28862  %prename%
28863 \end_layout
28864
28865 \end_inset
28866
28867  (first author in lists of type 1)
28868 \end_layout
28869
28870 \begin_layout Itemize
28871 \begin_inset Flex Code
28872 status collapsed
28873
28874 \begin_layout Plain Layout
28875 !othernameform %surname%,
28876  %prename%
28877 \end_layout
28878
28879 \end_inset
28880
28881  (other authors in lists of type 1)
28882 \end_layout
28883
28884 \begin_layout Itemize
28885 \begin_inset Flex Code
28886 status collapsed
28887
28888 \begin_layout Plain Layout
28889 !firstbynameform %prename% %surname%
28890 \end_layout
28891
28892 \end_inset
28893
28894  (first author in lists of type 2)
28895 \end_layout
28896
28897 \begin_layout Itemize
28898 \begin_inset Flex Code
28899 status collapsed
28900
28901 \begin_layout Plain Layout
28902 !otherbynameform %prename% %surname%
28903 \end_layout
28904
28905 \end_inset
28906
28907  (other authors in lists of type 2)
28908 \end_layout
28909
28910 \begin_layout Standard
28911 This allows you to configure namings like 
28912 \begin_inset Quotes eld
28913 \end_inset
28914
28915 Miller,
28916  Peter and Mary Smith:
28917  \SpecialChar ldots
28918 ,
28919  in:
28920  John Doe and Pat Green,
28921  eds.:\SpecialChar ldots
28922
28923 \begin_inset Quotes erd
28924 \end_inset
28925
28926 .
28927 \end_layout
28928
28929 \begin_layout Standard
28930 There is one other piece of syntax available in definitions,
28931  which looks like this:
28932  
28933 \begin_inset Flex Code
28934 status collapsed
28935
28936 \begin_layout Plain Layout
28937 {!<i>!}
28938 \end_layout
28939
28940 \end_inset
28941
28942 .
28943  This defines a piece of formatting information that is to be used when creating 
28944 \begin_inset Quotes eld
28945 \end_inset
28946
28947 rich text
28948 \begin_inset Quotes erd
28949 \end_inset
28950
28951 .
28952  Obviously,
28953  we do not want to output HTML tags when writing plain text,
28954  so they should be wrapped in 
28955 \begin_inset Quotes eld
28956 \end_inset
28957
28958 {!
28959 \begin_inset Quotes erd
28960 \end_inset
28961
28962  and 
28963 \begin_inset Quotes eld
28964 \end_inset
28965
28966 !}
28967 \begin_inset Quotes erd
28968 \end_inset
28969
28970 .
28971 \end_layout
28972
28973 \begin_layout Standard
28974 Two special sorts of definitions are also possible in a 
28975 \begin_inset Flex Code
28976 status collapsed
28977
28978 \begin_layout Plain Layout
28979 CiteFormat
28980 \end_layout
28981
28982 \end_inset
28983
28984  block.
28985  An example of the first would be:
28986 \end_layout
28987
28988 \begin_layout LyX-Code
28989 !quotetitle 
28990 \begin_inset Quotes eld
28991 \end_inset
28992
28993 %title%
28994 \begin_inset Quotes erd
28995 \end_inset
28996
28997
28998 \end_layout
28999
29000 \begin_layout Standard
29001 This is an abbreviation,
29002  or macro,
29003  and it can be used by treating it as if it were a key:
29004  
29005 \begin_inset Flex Code
29006 status collapsed
29007
29008 \begin_layout Plain Layout
29009 %!quotetitle%
29010 \end_layout
29011
29012 \end_inset
29013
29014 .
29015  \SpecialChar LyX
29016  will treat 
29017 \begin_inset Flex Code
29018 status collapsed
29019
29020 \begin_layout Plain Layout
29021 %!quotetitle%
29022 \end_layout
29023
29024 \end_inset
29025
29026  exactly as it would treat its definition.
29027  So,
29028  let us issue the obvious 
29029 \emph on
29030 warning
29031 \emph default
29032 .
29033  Do not do this:
29034 \end_layout
29035
29036 \begin_layout LyX-Code
29037 !funfun %funfun%
29038 \end_layout
29039
29040 \begin_layout Standard
29041 or anything like it.
29042  \SpecialChar LyX
29043  shouldn't go into an infinite loop,
29044  but it may go into a long one before it gives up.
29045 \end_layout
29046
29047 \begin_layout Standard
29048 The second sort of special definition might look like this:
29049 \end_layout
29050
29051 \begin_layout LyX-Code
29052 B_pptext pp.
29053 \end_layout
29054
29055 \begin_layout Standard
29056 This defines a translatable piece of text,
29057  which allows relevant parts of the bibliography or citation to be translated.
29058  It can be included in a definition by treating it as a key:
29059  
29060 \begin_inset Flex Code
29061 status collapsed
29062
29063 \begin_layout Plain Layout
29064 %B_pptext%
29065 \end_layout
29066
29067 \end_inset
29068
29069 .
29070  Note that there are two different translation paths:
29071  All definitions starting with 
29072 \begin_inset Flex Code
29073 status collapsed
29074
29075 \begin_layout Plain Layout
29076 B_
29077 \end_layout
29078
29079 \end_inset
29080
29081 ,
29082  such as in the example above,
29083  will be translated to the currently active buffer language (so the translation will match the generated document).
29084  All definitions starting with underscore only will be translated to the GUI language.
29085  This is the proper translation for strings that only occur in the dialogs or on buttons,
29086  such as this one:
29087 \end_layout
29088
29089 \begin_layout LyX-Code
29090 _addtobib Add to bibliography only.
29091 \end_layout
29092
29093 \begin_layout Standard
29094 Several of these translatable strings are predefined in 
29095 \begin_inset Flex Code
29096 status collapsed
29097
29098 \begin_layout Plain Layout
29099 stdciteformats.inc
29100 \end_layout
29101
29102 \end_inset
29103
29104  and the diverse 
29105 \begin_inset Flex Code
29106 status collapsed
29107
29108 \begin_layout Plain Layout
29109 *.citeengine
29110 \end_layout
29111
29112 \end_inset
29113
29114  files.
29115  Note that these are not macros,
29116  in the sense just defined.
29117  They will not be expanded.
29118 \end_layout
29119
29120 \begin_layout Standard
29121 So here then is an example that uses several of these features:
29122 \begin_inset VSpace defskip
29123 \end_inset
29124
29125
29126 \end_layout
29127
29128 \begin_layout Standard
29129 \noindent
29130
29131 \family sans
29132 !authoredit {%author%[[%author%,
29133  ]][[{%editor%[[%editor%,
29134  %B_edtext%,
29135  ]]}]]}
29136 \end_layout
29137
29138 \begin_layout Standard
29139 \begin_inset VSpace defskip
29140 \end_inset
29141
29142 This defines a macro that prints the author,
29143  followed by a comma,
29144  if the 
29145 \begin_inset Flex Code
29146 status collapsed
29147
29148 \begin_layout Plain Layout
29149 author
29150 \end_layout
29151
29152 \end_inset
29153
29154  key is defined,
29155  or else prints the name of the editor,
29156  followed by the 
29157 \begin_inset Flex Code
29158 status collapsed
29159
29160 \begin_layout Plain Layout
29161 B_edtext
29162 \end_layout
29163
29164 \end_inset
29165
29166  or its translation (it is by default 
29167 \begin_inset Quotes eld
29168 \end_inset
29169
29170 ed.
29171 \begin_inset Quotes erd
29172 \end_inset
29173
29174 ),
29175  if the 
29176 \begin_inset Flex Code
29177 status collapsed
29178
29179 \begin_layout Plain Layout
29180 editor
29181 \end_layout
29182
29183 \end_inset
29184
29185  key is defined.
29186  Note that this is in fact defined in 
29187 \begin_inset Flex Code
29188 status collapsed
29189
29190 \begin_layout Plain Layout
29191 stdciteformats.inc
29192 \end_layout
29193
29194 \end_inset
29195
29196 ,
29197  so you can use it in your own definitions,
29198  or re-definitions,
29199  if you load that file first.
29200 \end_layout
29201
29202 \begin_layout Section
29203 \begin_inset CommandInset label
29204 LatexCommand label
29205 name "sec:Tags-for-XHTML"
29206
29207 \end_inset
29208
29209 Tags for XHTML output
29210 \end_layout
29211
29212 \begin_layout Standard
29213 As with \SpecialChar LaTeX
29214  or DocBook,
29215  the format of \SpecialChar LyX
29216 's XHTML output is also controlled by layout information.
29217  In general,
29218  \SpecialChar LyX
29219  provides sensible defaults and,
29220  as mentioned earlier,
29221  it will even construct default CSS style rules from the other layout tags.
29222  For example,
29223  \SpecialChar LyX
29224  will attempt to use the information provided in the 
29225 \begin_inset Flex Code
29226 status collapsed
29227
29228 \begin_layout Plain Layout
29229 Font
29230 \end_layout
29231
29232 \end_inset
29233
29234  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
29235 \end_layout
29236
29237 \begin_layout Standard
29238 In many cases,
29239  then,
29240  you may not have to do anything at all to get acceptable XHTML output for your own environments,
29241  custom insets,
29242  and so forth.
29243  But in some cases you will,
29244  and so \SpecialChar LyX
29245  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
29246 \end_layout
29247
29248 \begin_layout Standard
29249 Note that there are two tags,
29250  
29251 \begin_inset Flex Code
29252 status collapsed
29253
29254 \begin_layout Plain Layout
29255 HTMLPreamble
29256 \end_layout
29257
29258 \end_inset
29259
29260  and 
29261 \begin_inset Flex Code
29262 status collapsed
29263
29264 \begin_layout Plain Layout
29265 AddToHTMLPreamble
29266 \end_layout
29267
29268 \end_inset
29269
29270  that may appear outside style and inset declarations.
29271  See 
29272 \begin_inset CommandInset ref
29273 LatexCommand ref
29274 reference "subsec:General-text-class"
29275 nolink "false"
29276
29277 \end_inset
29278
29279  for details on these.
29280 \end_layout
29281
29282 \begin_layout Subsection
29283 \begin_inset CommandInset label
29284 LatexCommand label
29285 name "subsec:Paragraph-Style-XHTML"
29286
29287 \end_inset
29288
29289 Paragraph styles
29290 \end_layout
29291
29292 \begin_layout Standard
29293 The sort of XHTML \SpecialChar LyX
29294  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
29295  a command,
29296  or an environment,
29297  where this is itself determined by the contents of the corresponding 
29298 \begin_inset Flex Code
29299 status collapsed
29300
29301 \begin_layout Plain Layout
29302 \SpecialChar LaTeX
29303 Type
29304 \end_layout
29305
29306 \end_inset
29307
29308  tag.
29309  
29310 \end_layout
29311
29312 \begin_layout Standard
29313 For a command or normal paragraph,
29314  the output XHTML has the following form:
29315 \end_layout
29316
29317 \begin_layout LyX-Code
29318
29319 \family sans
29320 <tag attr=
29321 \begin_inset Quotes erd
29322 \end_inset
29323
29324 value
29325 \begin_inset Quotes erd
29326 \end_inset
29327
29328 >
29329 \end_layout
29330
29331 \begin_layout LyX-Code
29332
29333 \family sans
29334 <labeltag attr=
29335 \begin_inset Quotes erd
29336 \end_inset
29337
29338 value
29339 \begin_inset Quotes erd
29340 \end_inset
29341
29342 >Label</labeltag>
29343 \end_layout
29344
29345 \begin_layout LyX-Code
29346
29347 \family sans
29348 Contents of the paragraph.
29349 \end_layout
29350
29351 \begin_layout LyX-Code
29352
29353 \family sans
29354 </tag>
29355 \end_layout
29356
29357 \begin_layout Standard
29358 The label tags are of course omitted if the paragraph does not have a label.
29359 \end_layout
29360
29361 \begin_layout Standard
29362 For an environment that is not some sort of list,
29363  the XHTML takes this form:
29364 \end_layout
29365
29366 \begin_layout LyX-Code
29367
29368 \family sans
29369 <tag attr=
29370 \begin_inset Quotes erd
29371 \end_inset
29372
29373 value
29374 \begin_inset Quotes erd
29375 \end_inset
29376
29377 >
29378 \end_layout
29379
29380 \begin_layout LyX-Code
29381
29382 \family sans
29383 <itemtag attr=
29384 \begin_inset Quotes erd
29385 \end_inset
29386
29387 value
29388 \begin_inset Quotes erd
29389 \end_inset
29390
29391 ><labeltag attr=
29392 \begin_inset Quotes erd
29393 \end_inset
29394
29395 value
29396 \begin_inset Quotes erd
29397 \end_inset
29398
29399 >Environment Label</labeltag>First paragraph.</itemtag>
29400 \end_layout
29401
29402 \begin_layout LyX-Code
29403
29404 \family sans
29405 <itemtag>Second paragraph.</itemtag>
29406 \end_layout
29407
29408 \begin_layout LyX-Code
29409
29410 \family sans
29411 </tag>
29412 \end_layout
29413
29414 \begin_layout Standard
29415 Note that the label is output only for the first paragraph,
29416  as it should be for a theorem,
29417  for example.
29418  
29419 \end_layout
29420
29421 \begin_layout Standard
29422 For a list,
29423  we have one of these forms:
29424 \end_layout
29425
29426 \begin_layout LyX-Code
29427
29428 \family sans
29429 <tag attr=
29430 \begin_inset Quotes erd
29431 \end_inset
29432
29433 value
29434 \begin_inset Quotes erd
29435 \end_inset
29436
29437 >
29438 \end_layout
29439
29440 \begin_layout LyX-Code
29441
29442 \family sans
29443 <itemtag attr=
29444 \begin_inset Quotes erd
29445 \end_inset
29446
29447 value
29448 \begin_inset Quotes erd
29449 \end_inset
29450
29451 ><labeltag attr=
29452 \begin_inset Quotes erd
29453 \end_inset
29454
29455 value
29456 \begin_inset Quotes erd
29457 \end_inset
29458
29459 >List Label</labeltag>First item.</itemtag>
29460 \end_layout
29461
29462 \begin_layout LyX-Code
29463
29464 \family sans
29465 <itemtag attr=
29466 \begin_inset Quotes erd
29467 \end_inset
29468
29469 value
29470 \begin_inset Quotes erd
29471 \end_inset
29472
29473 ><labeltag attr=
29474 \begin_inset Quotes erd
29475 \end_inset
29476
29477 value
29478 \begin_inset Quotes erd
29479 \end_inset
29480
29481 >List Label</labeltag>Second item.</itemtag>
29482 \end_layout
29483
29484 \begin_layout LyX-Code
29485
29486 \family sans
29487 </tag>
29488 \end_layout
29489
29490 \begin_layout LyX-Code
29491
29492 \end_layout
29493
29494 \begin_layout LyX-Code
29495
29496 \family sans
29497 <tag attr=
29498 \begin_inset Quotes erd
29499 \end_inset
29500
29501 value
29502 \begin_inset Quotes erd
29503 \end_inset
29504
29505 >
29506 \end_layout
29507
29508 \begin_layout LyX-Code
29509
29510 \family sans
29511 <labeltag attr=
29512 \begin_inset Quotes erd
29513 \end_inset
29514
29515 value
29516 \begin_inset Quotes erd
29517 \end_inset
29518
29519 >List Label</labeltag><itemtag attr=
29520 \begin_inset Quotes erd
29521 \end_inset
29522
29523 value
29524 \begin_inset Quotes erd
29525 \end_inset
29526
29527 >First item.</itemtag>
29528 \end_layout
29529
29530 \begin_layout LyX-Code
29531
29532 \family sans
29533 <labeltag attr=
29534 \begin_inset Quotes erd
29535 \end_inset
29536
29537 value
29538 \begin_inset Quotes erd
29539 \end_inset
29540
29541 >List Label</labeltag><itemtag attr=
29542 \begin_inset Quotes erd
29543 \end_inset
29544
29545 value
29546 \begin_inset Quotes erd
29547 \end_inset
29548
29549 >Second item.</itemtag>
29550 \end_layout
29551
29552 \begin_layout LyX-Code
29553
29554 \family sans
29555 </tag>
29556 \end_layout
29557
29558 \begin_layout Standard
29559 Note the different orders of 
29560 \begin_inset Flex Code
29561 status collapsed
29562
29563 \begin_layout Plain Layout
29564 labeltag
29565 \end_layout
29566
29567 \end_inset
29568
29569  and 
29570 \begin_inset Flex Code
29571 status collapsed
29572
29573 \begin_layout Plain Layout
29574 itemtag
29575 \end_layout
29576
29577 \end_inset
29578
29579 .
29580  Which order we get depends upon the setting of 
29581 \begin_inset Flex Code
29582 status collapsed
29583
29584 \begin_layout Plain Layout
29585 HTMLLabelFirst
29586 \end_layout
29587
29588 \end_inset
29589
29590 :
29591  If 
29592 \begin_inset Flex Code
29593 status collapsed
29594
29595 \begin_layout Plain Layout
29596 HTMLLabelFirst
29597 \end_layout
29598
29599 \end_inset
29600
29601  is false (the default),
29602  you get the first of these,
29603  with the label within the item;
29604  if true,
29605  you get the second,
29606  with the label outside the item.
29607 \end_layout
29608
29609 \begin_layout Standard
29610 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
29611  As mentioned earlier,
29612  however,
29613  \SpecialChar LyX
29614  uses sensible defaults for many of these,
29615  so you often may not need to do very much to get good XHTML output.
29616  Think of the available tags as there so you can tweak things to your liking.
29617 \end_layout
29618
29619 \begin_layout Description
29620 \begin_inset Flex Code
29621 status collapsed
29622
29623 \begin_layout Plain Layout
29624 HTMLAttr
29625 \end_layout
29626
29627 \end_inset
29628
29629  [
29630 \begin_inset Flex Code
29631 status collapsed
29632
29633 \begin_layout Plain Layout
29634 string
29635 \end_layout
29636
29637 \end_inset
29638
29639 ] Specifies attribute information to be output with the main tag.
29640  For example,
29641  
29642 \begin_inset Quotes eld
29643 \end_inset
29644
29645
29646 \begin_inset Flex Code
29647 status collapsed
29648
29649 \begin_layout Plain Layout
29650 class=`mydiv'
29651 \end_layout
29652
29653 \end_inset
29654
29655
29656 \begin_inset Quotes erd
29657 \end_inset
29658
29659 .
29660  By default,
29661  \SpecialChar LyX
29662  will output 
29663 \begin_inset Quotes eld
29664 \end_inset
29665
29666
29667 \begin_inset Flex Code
29668 status collapsed
29669
29670 \begin_layout Plain Layout
29671 class=`layoutname'
29672 \end_layout
29673
29674 \end_inset
29675
29676
29677 \begin_inset Quotes erd
29678 \end_inset
29679
29680 ,
29681  where 
29682 \begin_inset Flex Code
29683 status collapsed
29684
29685 \begin_layout Plain Layout
29686 layoutname
29687 \end_layout
29688
29689 \end_inset
29690
29691  is the \SpecialChar LyX
29692  name of the layout,
29693  made lowercase,
29694  for example:
29695  chapter.
29696  This should 
29697 \emph on
29698 not
29699 \emph default
29700  contain any style information.
29701  Use 
29702 \begin_inset Flex Code
29703 status collapsed
29704
29705 \begin_layout Plain Layout
29706 HTMLStyle
29707 \end_layout
29708
29709 \end_inset
29710
29711  for that purpose.
29712 \change_inserted -584632292 1670182206
29713
29714 \end_layout
29715
29716 \begin_layout Description
29717
29718 \change_inserted -584632292 1670182369
29719 \begin_inset Flex Code
29720 status collapsed
29721
29722 \begin_layout Plain Layout
29723
29724 \change_inserted -584632292 1670182222
29725 HTMLClass
29726 \change_unchanged
29727
29728 \end_layout
29729
29730 \end_inset
29731
29732  [
29733 \begin_inset Flex Code
29734 status collapsed
29735
29736 \begin_layout Plain Layout
29737
29738 \change_inserted -584632292 1670182217
29739 string
29740 \change_unchanged
29741
29742 \end_layout
29743
29744 \end_inset
29745
29746 ] The CSS class to use for this paragraph.
29747  Note that,
29748  if the paragarph is of enumerate or itemize type,
29749  then the default will be 
29750 \begin_inset Quotes eld
29751 \end_inset
29752
29753 lyxenum
29754 \begin_inset Quotes erd
29755 \end_inset
29756
29757  or 
29758 \begin_inset Quotes eld
29759 \end_inset
29760
29761 lyxitem
29762 \begin_inset Quotes erd
29763 \end_inset
29764
29765 ,
29766  plus 
29767 \begin_inset Quotes eld
29768 \end_inset
29769
29770 i
29771 \begin_inset Quotes erd
29772 \end_inset
29773
29774 ,
29775  
29776 \begin_inset Quotes eld
29777 \end_inset
29778
29779 ii
29780 \begin_inset Quotes erd
29781 \end_inset
29782
29783 ,
29784  
29785 \begin_inset Quotes eld
29786 \end_inset
29787
29788 iii
29789 \begin_inset Quotes erd
29790 \end_inset
29791
29792 ,
29793  or 
29794 \begin_inset Quotes eld
29795 \end_inset
29796
29797 iv
29798 \begin_inset Quotes erd
29799 \end_inset
29800
29801 ,
29802  depending upon the depth.
29803  That can be over-ridden here.
29804  However,
29805  the suffix will not be added in that case.
29806  I.e.,
29807  the CSS class will always be exactly what it is declared to be here.
29808 \change_unchanged
29809
29810 \end_layout
29811
29812 \begin_layout Description
29813 \begin_inset Flex Code
29814 status collapsed
29815
29816 \begin_layout Plain Layout
29817 HTMLForceCSS
29818 \end_layout
29819
29820 \end_inset
29821
29822  [
29823 \begin_inset Flex Code
29824 status collapsed
29825
29826 \begin_layout Plain Layout
29827
29828 \emph on
29829 0
29830 \emph default
29831 ,1
29832 \end_layout
29833
29834 \end_inset
29835
29836 ] Whether to output the default CSS information \SpecialChar LyX
29837  generates for this layout,
29838  even if additional information is explicitly provided via 
29839 \begin_inset Flex Code
29840 status collapsed
29841
29842 \begin_layout Plain Layout
29843 HTMLStyle
29844 \end_layout
29845
29846 \end_inset
29847
29848 .
29849  Setting this to 
29850 \begin_inset Flex Code
29851 status collapsed
29852
29853 \begin_layout Plain Layout
29854 1
29855 \end_layout
29856
29857 \end_inset
29858
29859  allows you to alter or augment the generated CSS,
29860  rather than to override it completely.
29861  Default is 
29862 \begin_inset Flex Code
29863 status collapsed
29864
29865 \begin_layout Plain Layout
29866 0
29867 \end_layout
29868
29869 \end_inset
29870
29871 .
29872 \change_inserted -584632292 1670132213
29873
29874 \end_layout
29875
29876 \begin_layout Description
29877
29878 \change_inserted -584632292 1670132277
29879 \begin_inset Flex Code
29880 status collapsed
29881
29882 \begin_layout Plain Layout
29883
29884 \change_inserted -584632292 1670132221
29885 HTMLInToc
29886 \change_unchanged
29887
29888 \end_layout
29889
29890 \end_inset
29891
29892  [
29893 \begin_inset Flex Code
29894 status open
29895
29896 \begin_layout Plain Layout
29897
29898 \change_inserted -584632292 1670132214
29899 0,
29900 \emph on
29901 1
29902 \change_unchanged
29903
29904 \end_layout
29905
29906 \end_inset
29907
29908 ] Whether to include this paragraph (usually,
29909  a section or something of the sort) in the TOC.
29910  By default,
29911  true,
29912  so it should be set to false e.g.
29913 \begin_inset space ~
29914 \end_inset
29915
29916 for starred sections.
29917 \change_unchanged
29918
29919 \end_layout
29920
29921 \begin_layout Description
29922 \begin_inset Flex Code
29923 status collapsed
29924
29925 \begin_layout Plain Layout
29926 HTMLItem
29927 \end_layout
29928
29929 \end_inset
29930
29931  [
29932 \begin_inset Flex Code
29933 status collapsed
29934
29935 \begin_layout Plain Layout
29936 string
29937 \end_layout
29938
29939 \end_inset
29940
29941 ] The tag to be used for individual paragraphs of environments,
29942  replacing 
29943 \begin_inset Flex Code
29944 status collapsed
29945
29946 \begin_layout Plain Layout
29947 itemtag
29948 \end_layout
29949
29950 \end_inset
29951
29952  in the examples above.
29953  Defaults to 
29954 \begin_inset Flex Code
29955 status collapsed
29956
29957 \begin_layout Plain Layout
29958 div
29959 \end_layout
29960
29961 \end_inset
29962
29963 .
29964 \end_layout
29965
29966 \begin_layout Description
29967 \begin_inset Flex Code
29968 status collapsed
29969
29970 \begin_layout Plain Layout
29971 HTMLItemAttr
29972 \end_layout
29973
29974 \end_inset
29975
29976  [
29977 \begin_inset Flex Code
29978 status collapsed
29979
29980 \begin_layout Plain Layout
29981 string
29982 \end_layout
29983
29984 \end_inset
29985
29986 ] Attributes for the item tag.
29987  Defaults to
29988 \begin_inset Newline newline
29989 \end_inset
29990
29991
29992 \begin_inset Quotes eld
29993 \end_inset
29994
29995
29996 \begin_inset Flex Code
29997 status collapsed
29998
29999 \begin_layout Plain Layout
30000 class=`layoutname_item'
30001 \end_layout
30002
30003 \end_inset
30004
30005
30006 \begin_inset Quotes erd
30007 \end_inset
30008
30009 .
30010  This should 
30011 \emph on
30012 not
30013 \emph default
30014  contain any style information.
30015  Use 
30016 \begin_inset Flex Code
30017 status collapsed
30018
30019 \begin_layout Plain Layout
30020 HTMLStyle
30021 \end_layout
30022
30023 \end_inset
30024
30025  for that purpose.
30026 \end_layout
30027
30028 \begin_layout Description
30029 \begin_inset Flex Code
30030 status collapsed
30031
30032 \begin_layout Plain Layout
30033 HTMLLabel
30034 \end_layout
30035
30036 \end_inset
30037
30038  [
30039 \begin_inset Flex Code
30040 status collapsed
30041
30042 \begin_layout Plain Layout
30043 string
30044 \end_layout
30045
30046 \end_inset
30047
30048 ] The tag to be used for paragraph and item labels,
30049  replacing 
30050 \begin_inset Flex Code
30051 status collapsed
30052
30053 \begin_layout Plain Layout
30054 labeltag
30055 \end_layout
30056
30057 \end_inset
30058
30059  in the examples above.
30060  Defaults to 
30061 \begin_inset Flex Code
30062 status collapsed
30063
30064 \begin_layout Plain Layout
30065 span
30066 \end_layout
30067
30068 \end_inset
30069
30070 ,
30071  unless 
30072 \begin_inset Flex Code
30073 status collapsed
30074
30075 \begin_layout Plain Layout
30076 LabelType
30077 \end_layout
30078
30079 \end_inset
30080
30081  is either 
30082 \begin_inset Flex Code
30083 status collapsed
30084
30085 \begin_layout Plain Layout
30086 Top_Environment
30087 \end_layout
30088
30089 \end_inset
30090
30091  or 
30092 \begin_inset Flex Code
30093 status collapsed
30094
30095 \begin_layout Plain Layout
30096 Centered_Top_Environment
30097 \end_layout
30098
30099 \end_inset
30100
30101 ,
30102  in which case it defaults to 
30103 \begin_inset Flex Code
30104 status collapsed
30105
30106 \begin_layout Plain Layout
30107 div
30108 \end_layout
30109
30110 \end_inset
30111
30112 .
30113 \end_layout
30114
30115 \begin_layout Description
30116 \begin_inset Flex Code
30117 status collapsed
30118
30119 \begin_layout Plain Layout
30120 HTMLLabelAttr
30121 \end_layout
30122
30123 \end_inset
30124
30125  [
30126 \begin_inset Flex Code
30127 status collapsed
30128
30129 \begin_layout Plain Layout
30130 string
30131 \end_layout
30132
30133 \end_inset
30134
30135 ] Attributes for the label tag.
30136  Defaults to
30137 \begin_inset Newline newline
30138 \end_inset
30139
30140
30141 \begin_inset Quotes eld
30142 \end_inset
30143
30144
30145 \begin_inset Flex Code
30146 status collapsed
30147
30148 \begin_layout Plain Layout
30149 class=`layoutname_label'
30150 \end_layout
30151
30152 \end_inset
30153
30154
30155 \begin_inset Quotes erd
30156 \end_inset
30157
30158 .
30159  This should 
30160 \emph on
30161 not
30162 \emph default
30163  contain any style information.
30164  Use 
30165 \begin_inset Flex Code
30166 status collapsed
30167
30168 \begin_layout Plain Layout
30169 HTMLStyle
30170 \end_layout
30171
30172 \end_inset
30173
30174  for that purpose.
30175 \end_layout
30176
30177 \begin_layout Description
30178 \begin_inset Flex Code
30179 status collapsed
30180
30181 \begin_layout Plain Layout
30182 HTMLLabelFirst
30183 \end_layout
30184
30185 \end_inset
30186
30187  [
30188 \begin_inset Flex Code
30189 status collapsed
30190
30191 \begin_layout Plain Layout
30192
30193 \emph on
30194 0
30195 \emph default
30196 ,1
30197 \end_layout
30198
30199 \end_inset
30200
30201 ] Meaningful only for list-like environments,
30202  this tag controls whether the label tag is output before or inside the item tag.
30203  This is used,
30204  for example,
30205  in the description environment,
30206  where we want `
30207 \begin_inset Flex Code
30208 status collapsed
30209
30210 \begin_layout Plain Layout
30211 <dt>\SpecialChar ldots
30212 </dt><dd>\SpecialChar ldots
30213 </dd>
30214 \end_layout
30215
30216 \end_inset
30217
30218 .
30219  Default is 
30220 \begin_inset Flex Code
30221 status collapsed
30222
30223 \begin_layout Plain Layout
30224 0
30225 \end_layout
30226
30227 \end_inset
30228
30229 :
30230  The label tag is output inside the item tag.
30231 \end_layout
30232
30233 \begin_layout Description
30234 \begin_inset Flex Code
30235 status collapsed
30236
30237 \begin_layout Plain Layout
30238 HTMLPreamble
30239 \end_layout
30240
30241 \end_inset
30242
30243  Information to be output in the 
30244 \begin_inset Flex Code
30245 status collapsed
30246
30247 \begin_layout Plain Layout
30248 <head>
30249 \end_layout
30250
30251 \end_inset
30252
30253  section when this style is used.
30254  This might,
30255  for example,
30256  be used to include a 
30257 \begin_inset Flex Code
30258 status collapsed
30259
30260 \begin_layout Plain Layout
30261 <script>
30262 \end_layout
30263
30264 \end_inset
30265
30266  block defining an 
30267 \begin_inset Flex Code
30268 status collapsed
30269
30270 \begin_layout Plain Layout
30271 onclick
30272 \end_layout
30273
30274 \end_inset
30275
30276  handler.
30277 \end_layout
30278
30279 \begin_layout Description
30280 \begin_inset Flex Code
30281 status collapsed
30282
30283 \begin_layout Plain Layout
30284 HTMLStyle
30285 \end_layout
30286
30287 \end_inset
30288
30289  CSS style information to be included when this style is used.
30290  Note that this will automatically be wrapped in a layout-generated 
30291 \begin_inset Flex Code
30292 status collapsed
30293
30294 \begin_layout Plain Layout
30295 <style>
30296 \end_layout
30297
30298 \end_inset
30299
30300  block,
30301  so only the CSS itself need be included.
30302  Must end with 
30303 \begin_inset Flex Code
30304 status collapsed
30305
30306 \begin_layout Plain Layout
30307 EndHTMLStyle
30308 \end_layout
30309
30310 \end_inset
30311
30312 .
30313 \end_layout
30314
30315 \begin_layout Description
30316 \begin_inset Flex Code
30317 status collapsed
30318
30319 \begin_layout Plain Layout
30320 HTMLTag
30321 \end_layout
30322
30323 \end_inset
30324
30325  [
30326 \begin_inset Flex Code
30327 status collapsed
30328
30329 \begin_layout Plain Layout
30330 string
30331 \end_layout
30332
30333 \end_inset
30334
30335 ] The tag to be used for the main label,
30336  replacing 
30337 \begin_inset Flex Code
30338 status collapsed
30339
30340 \begin_layout Plain Layout
30341 tag
30342 \end_layout
30343
30344 \end_inset
30345
30346  in the examples above.
30347  Defaults to 
30348 \begin_inset Flex Code
30349 status collapsed
30350
30351 \begin_layout Plain Layout
30352 div
30353 \end_layout
30354
30355 \end_inset
30356
30357 .
30358 \end_layout
30359
30360 \begin_layout Description
30361 \begin_inset Flex Code
30362 status collapsed
30363
30364 \begin_layout Plain Layout
30365 HTMLTitle
30366 \end_layout
30367
30368 \end_inset
30369
30370  [
30371 \begin_inset Flex Code
30372 status collapsed
30373
30374 \begin_layout Plain Layout
30375
30376 \emph on
30377 0
30378 \emph default
30379 ,1
30380 \end_layout
30381
30382 \end_inset
30383
30384 ] Marks this style as the one to be used to generate the 
30385 \begin_inset Flex Code
30386 status collapsed
30387
30388 \begin_layout Plain Layout
30389 <title>
30390 \end_layout
30391
30392 \end_inset
30393
30394  tag for the XHTML file.
30395  By default,
30396  it is false.
30397  The 
30398 \begin_inset Flex Code
30399 status collapsed
30400
30401 \begin_layout Plain Layout
30402 stdtitle.inc
30403 \end_layout
30404
30405 \end_inset
30406
30407  file sets it to true for the 
30408 \begin_inset Flex Code
30409 status collapsed
30410
30411 \begin_layout Plain Layout
30412 title
30413 \end_layout
30414
30415 \end_inset
30416
30417  environment.
30418  
30419 \end_layout
30420
30421 \begin_layout Subsection
30422 InsetLayout XHTML
30423 \end_layout
30424
30425 \begin_layout Standard
30426 The XHTML output of insets can also be controlled by information in layout files.
30427 \begin_inset Foot
30428 status collapsed
30429
30430 \begin_layout Plain Layout
30431 At present,
30432  this is true only for 
30433 \begin_inset Quotes eld
30434 \end_inset
30435
30436 text
30437 \begin_inset Quotes erd
30438 \end_inset
30439
30440  insets (insets you can type into) and is not true for 
30441 \begin_inset Quotes eld
30442 \end_inset
30443
30444 command
30445 \begin_inset Quotes erd
30446 \end_inset
30447
30448  insets (insets that are associated with dialog boxes).
30449 \end_layout
30450
30451 \end_inset
30452
30453  Here,
30454  too,
30455  \SpecialChar LyX
30456  tries to provide sensible defaults,
30457  and it constructs default CSS style rules.
30458  But everything can be customized.
30459 \end_layout
30460
30461 \begin_layout Standard
30462 The XHTML \SpecialChar LyX
30463  outputs for an inset has the following form:
30464 \end_layout
30465
30466 \begin_layout LyX-Code
30467 <tag attr=
30468 \begin_inset Quotes erd
30469 \end_inset
30470
30471 value
30472 \begin_inset Quotes erd
30473 \end_inset
30474
30475 >
30476 \end_layout
30477
30478 \begin_layout LyX-Code
30479 <labeltag>Label</labeltag>
30480 \end_layout
30481
30482 \begin_layout LyX-Code
30483 <innertag attr=
30484 \begin_inset Quotes erd
30485 \end_inset
30486
30487 value
30488 \begin_inset Quotes erd
30489 \end_inset
30490
30491 >Contents of the inset.</innertag>
30492 \end_layout
30493
30494 \begin_layout LyX-Code
30495 </tag>
30496 \end_layout
30497
30498 \begin_layout Standard
30499 If the inset permits multiple paragraphs—
30500 that is,
30501  if 
30502 \begin_inset Flex Code
30503 status collapsed
30504
30505 \begin_layout Plain Layout
30506 MultiPar
30507 \end_layout
30508
30509 \end_inset
30510
30511  is true—
30512 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
30513  quote,
30514  and the like).
30515  The label tag is of course omitted if the paragraph does not have a label and,
30516  at present,
30517  is always 
30518 \begin_inset Flex Code
30519 status collapsed
30520
30521 \begin_layout Plain Layout
30522 span
30523 \end_layout
30524
30525 \end_inset
30526
30527 .
30528  The inner tag is optional and,
30529  by default,
30530  does not appear.
30531 \end_layout
30532
30533 \begin_layout Standard
30534 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
30535 \end_layout
30536
30537 \begin_layout Description
30538 \begin_inset Flex Code
30539 status collapsed
30540
30541 \begin_layout Plain Layout
30542 HTMLAttr
30543 \end_layout
30544
30545 \end_inset
30546
30547  [
30548 \begin_inset Flex Code
30549 status collapsed
30550
30551 \begin_layout Plain Layout
30552 string
30553 \end_layout
30554
30555 \end_inset
30556
30557 ] Specifies attribute information to be output with the main tag.
30558  For example,
30559  
30560 \begin_inset Quotes eld
30561 \end_inset
30562
30563
30564 \begin_inset Flex Code
30565 status collapsed
30566
30567 \begin_layout Plain Layout
30568 class=`myinset' onclick=`\SpecialChar ldots
30569 '
30570 \end_layout
30571
30572 \end_inset
30573
30574
30575 \begin_inset Quotes erd
30576 \end_inset
30577
30578 .
30579  By default,
30580  \SpecialChar LyX
30581  will output 
30582 \begin_inset Quotes eld
30583 \end_inset
30584
30585
30586 \begin_inset Flex Code
30587 status collapsed
30588
30589 \begin_layout Plain Layout
30590 class=`insetname'
30591 \end_layout
30592
30593 \end_inset
30594
30595
30596 \begin_inset Quotes erd
30597 \end_inset
30598
30599 ,
30600  where 
30601 \begin_inset Flex Code
30602 status collapsed
30603
30604 \begin_layout Plain Layout
30605 insetname
30606 \end_layout
30607
30608 \end_inset
30609
30610  is the \SpecialChar LyX
30611  name of the inset,
30612  made lowercase and with non-alphanumeric characters converted to underscores,
30613  for example:
30614  footnote.
30615 \end_layout
30616
30617 \begin_layout Description
30618 \begin_inset Flex Code
30619 status collapsed
30620
30621 \begin_layout Plain Layout
30622 HTMLForceCSS
30623 \end_layout
30624
30625 \end_inset
30626
30627  [
30628 \begin_inset Flex Code
30629 status collapsed
30630
30631 \begin_layout Plain Layout
30632
30633 \emph on
30634 0
30635 \emph default
30636 ,1
30637 \end_layout
30638
30639 \end_inset
30640
30641 ] Whether to output the default CSS information \SpecialChar LyX
30642  generates for this layout,
30643  even if additional information is explicitly provided via 
30644 \begin_inset Flex Code
30645 status collapsed
30646
30647 \begin_layout Plain Layout
30648 HTMLStyle
30649 \end_layout
30650
30651 \end_inset
30652
30653 .
30654  Setting this to 
30655 \begin_inset Flex Code
30656 status collapsed
30657
30658 \begin_layout Plain Layout
30659 1
30660 \end_layout
30661
30662 \end_inset
30663
30664  allows you to alter or augment the generated CSS,
30665  rather than to override it completely.
30666  Default is 0.
30667 \end_layout
30668
30669 \begin_layout Description
30670 \begin_inset Flex Code
30671 status collapsed
30672
30673 \begin_layout Plain Layout
30674 HTMLInnerAttr
30675 \end_layout
30676
30677 \end_inset
30678
30679  [
30680 \begin_inset Flex Code
30681 status collapsed
30682
30683 \begin_layout Plain Layout
30684 string
30685 \end_layout
30686
30687 \end_inset
30688
30689 ] Attributes for the inner tag.
30690  Defaults to
30691 \begin_inset Newline newline
30692 \end_inset
30693
30694
30695 \begin_inset Quotes eld
30696 \end_inset
30697
30698
30699 \begin_inset Flex Code
30700 status collapsed
30701
30702 \begin_layout Plain Layout
30703 class=`insetname_inner'
30704 \end_layout
30705
30706 \end_inset
30707
30708
30709 \begin_inset Quotes erd
30710 \end_inset
30711
30712 .
30713 \end_layout
30714
30715 \begin_layout Description
30716 \begin_inset Flex Code
30717 status collapsed
30718
30719 \begin_layout Plain Layout
30720 HTMLInnerTag
30721 \end_layout
30722
30723 \end_inset
30724
30725  [
30726 \begin_inset Flex Code
30727 status collapsed
30728
30729 \begin_layout Plain Layout
30730 string
30731 \end_layout
30732
30733 \end_inset
30734
30735 ] The inner tag,
30736  replacing 
30737 \begin_inset Flex Code
30738 status collapsed
30739
30740 \begin_layout Plain Layout
30741 innertag
30742 \end_layout
30743
30744 \end_inset
30745
30746  in the examples above.
30747  By default,
30748  there is none.
30749 \end_layout
30750
30751 \begin_layout Description
30752 \begin_inset Flex Code
30753 status collapsed
30754
30755 \begin_layout Plain Layout
30756 HTMLIsBlock
30757 \end_layout
30758
30759 \end_inset
30760
30761  [
30762 \begin_inset Flex Code
30763 status collapsed
30764
30765 \begin_layout Plain Layout
30766 0,
30767 \emph on
30768 1
30769 \end_layout
30770
30771 \end_inset
30772
30773 ] 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).
30774  Defaults to 1.
30775 \end_layout
30776
30777 \begin_layout Description
30778 \begin_inset Flex Code
30779 status collapsed
30780
30781 \begin_layout Plain Layout
30782 HTMLLabel
30783 \end_layout
30784
30785 \end_inset
30786
30787  [
30788 \begin_inset Flex Code
30789 status collapsed
30790
30791 \begin_layout Plain Layout
30792 string
30793 \end_layout
30794
30795 \end_inset
30796
30797 ] A label for this inset,
30798  possibly including a reference to a counter.
30799  For example,
30800  for footnote,
30801  it might be:
30802  
30803 \begin_inset Flex Code
30804 status collapsed
30805
30806 \begin_layout Plain Layout
30807
30808 \backslash
30809 arabic{footnote}
30810 \end_layout
30811
30812 \end_inset
30813
30814 .
30815  This is optional,
30816  and there is no default.
30817 \end_layout
30818
30819 \begin_layout Description
30820 \begin_inset Flex Code
30821 status collapsed
30822
30823 \begin_layout Plain Layout
30824 HTMLPreamble
30825 \end_layout
30826
30827 \end_inset
30828
30829  Information to be output in the 
30830 \begin_inset Flex Code
30831 status collapsed
30832
30833 \begin_layout Plain Layout
30834 <head>
30835 \end_layout
30836
30837 \end_inset
30838
30839  section when this style is used.
30840  This might,
30841  for example,
30842  be used to include a 
30843 \begin_inset Flex Code
30844 status collapsed
30845
30846 \begin_layout Plain Layout
30847 <script>
30848 \end_layout
30849
30850 \end_inset
30851
30852  block defining an 
30853 \begin_inset Flex Code
30854 status collapsed
30855
30856 \begin_layout Plain Layout
30857 onclick
30858 \end_layout
30859
30860 \end_inset
30861
30862  handler.
30863 \end_layout
30864
30865 \begin_layout Description
30866 \begin_inset Flex Code
30867 status collapsed
30868
30869 \begin_layout Plain Layout
30870 HTMLStyle
30871 \end_layout
30872
30873 \end_inset
30874
30875  CSS style information to be included when this style is used.
30876  Note that this will automatically be wrapped in a layout-generated 
30877 \begin_inset Flex Code
30878 status collapsed
30879
30880 \begin_layout Plain Layout
30881 <style>
30882 \end_layout
30883
30884 \end_inset
30885
30886  block,
30887  so only the CSS itself need be included.
30888 \end_layout
30889
30890 \begin_layout Description
30891 \begin_inset Flex Code
30892 status collapsed
30893
30894 \begin_layout Plain Layout
30895 HTMLTag
30896 \end_layout
30897
30898 \end_inset
30899
30900  [
30901 \begin_inset Flex Code
30902 status collapsed
30903
30904 \begin_layout Plain Layout
30905 string
30906 \end_layout
30907
30908 \end_inset
30909
30910 ] The tag to be used for the main label,
30911  replacing 
30912 \begin_inset Flex Code
30913 status collapsed
30914
30915 \begin_layout Plain Layout
30916 tag
30917 \end_layout
30918
30919 \end_inset
30920
30921  in the examples above.
30922  The default depends upon the setting of 
30923 \begin_inset Flex Code
30924 status collapsed
30925
30926 \begin_layout Plain Layout
30927 MultiPar
30928 \end_layout
30929
30930 \end_inset
30931
30932 :
30933  If 
30934 \begin_inset Flex Code
30935 status collapsed
30936
30937 \begin_layout Plain Layout
30938 MultiPar
30939 \end_layout
30940
30941 \end_inset
30942
30943  is true,
30944  the default is 
30945 \begin_inset Flex Code
30946 status collapsed
30947
30948 \begin_layout Plain Layout
30949 div
30950 \end_layout
30951
30952 \end_inset
30953
30954 ;
30955  if it is false,
30956  the default is 
30957 \begin_inset Flex Code
30958 status collapsed
30959
30960 \begin_layout Plain Layout
30961 span
30962 \end_layout
30963
30964 \end_inset
30965
30966 .
30967 \end_layout
30968
30969 \begin_layout Subsection
30970 Float XHTML
30971 \end_layout
30972
30973 \begin_layout Standard
30974 The XHTML output for floats too can be controlled by layout information.
30975  The output has the following form:
30976 \end_layout
30977
30978 \begin_layout LyX-Code
30979 <tag attr=
30980 \begin_inset Quotes erd
30981 \end_inset
30982
30983 value
30984 \begin_inset Quotes erd
30985 \end_inset
30986
30987 >
30988 \end_layout
30989
30990 \begin_layout LyX-Code
30991 Contents of the float.
30992 \end_layout
30993
30994 \begin_layout LyX-Code
30995 </tag>
30996 \end_layout
30997
30998 \begin_layout Standard
30999 The caption,
31000  if there is one,
31001  is a separate inset and will be output as such.
31002  Its appearance can be controlled via the InsetLayout for caption insets.
31003  
31004 \end_layout
31005
31006 \begin_layout Description
31007 \begin_inset Flex Code
31008 status collapsed
31009
31010 \begin_layout Plain Layout
31011 HTMLAttr
31012 \end_layout
31013
31014 \end_inset
31015
31016  [
31017 \begin_inset Flex Code
31018 status collapsed
31019
31020 \begin_layout Plain Layout
31021 string
31022 \end_layout
31023
31024 \end_inset
31025
31026 ] Specifies attribute information to be output with the main tag.
31027  For example,
31028  
31029 \begin_inset Quotes eld
31030 \end_inset
31031
31032
31033 \begin_inset Flex Code
31034 status collapsed
31035
31036 \begin_layout Plain Layout
31037 class=`myfloat' onclick=`\SpecialChar ldots
31038 '
31039 \end_layout
31040
31041 \end_inset
31042
31043
31044 \begin_inset Quotes erd
31045 \end_inset
31046
31047 .
31048  By default,
31049  \SpecialChar LyX
31050  will output 
31051 \begin_inset Quotes eld
31052 \end_inset
31053
31054
31055 \begin_inset Flex Code
31056 status collapsed
31057
31058 \begin_layout Plain Layout
31059 class=`float float-floattype'
31060 \end_layout
31061
31062 \end_inset
31063
31064
31065 \begin_inset Quotes erd
31066 \end_inset
31067
31068 ,
31069  where 
31070 \begin_inset Flex Code
31071 status collapsed
31072
31073 \begin_layout Plain Layout
31074 floattype
31075 \end_layout
31076
31077 \end_inset
31078
31079  is \SpecialChar LyX
31080 's name for this type of float,
31081  as determined by the float declaration (see 
31082 \begin_inset CommandInset ref
31083 LatexCommand ref
31084 reference "subsec:Floats"
31085 nolink "false"
31086
31087 \end_inset
31088
31089 ),
31090  though made lowercase and with non-alphanumeric characters converted to underscores,
31091  for example:
31092  float-table.
31093 \end_layout
31094
31095 \begin_layout Description
31096 \begin_inset Flex Code
31097 status collapsed
31098
31099 \begin_layout Plain Layout
31100 HTMLStyle
31101 \end_layout
31102
31103 \end_inset
31104
31105  CSS style information to be included when this float is used.
31106  Note that this will automatically be wrapped in a layout-generated 
31107 \begin_inset Flex Code
31108 status collapsed
31109
31110 \begin_layout Plain Layout
31111 <style>
31112 \end_layout
31113
31114 \end_inset
31115
31116  block,
31117  so only the CSS itself need be included.
31118 \end_layout
31119
31120 \begin_layout Description
31121 \begin_inset Flex Code
31122 status collapsed
31123
31124 \begin_layout Plain Layout
31125 HTMLTag
31126 \end_layout
31127
31128 \end_inset
31129
31130  [
31131 \begin_inset Flex Code
31132 status collapsed
31133
31134 \begin_layout Plain Layout
31135 string
31136 \end_layout
31137
31138 \end_inset
31139
31140 ] The tag to be used for this float,
31141  replacing 
31142 \begin_inset Quotes eld
31143 \end_inset
31144
31145
31146 \begin_inset Flex Code
31147 status collapsed
31148
31149 \begin_layout Plain Layout
31150 tag
31151 \end_layout
31152
31153 \end_inset
31154
31155
31156 \begin_inset Quotes erd
31157 \end_inset
31158
31159  in the example above.
31160  The default is 
31161 \begin_inset Flex Code
31162 status collapsed
31163
31164 \begin_layout Plain Layout
31165 div
31166 \end_layout
31167
31168 \end_inset
31169
31170  and will rarely need changing.
31171 \end_layout
31172
31173 \begin_layout Subsection
31174 Bibliography formatting
31175 \end_layout
31176
31177 \begin_layout Standard
31178 The bibliography can be formatted using 
31179 \begin_inset Flex Code
31180 status collapsed
31181
31182 \begin_layout Plain Layout
31183 CiteFormat
31184 \end_layout
31185
31186 \end_inset
31187
31188  blocks.
31189  See 
31190 \begin_inset CommandInset ref
31191 LatexCommand ref
31192 reference "subsec:Citation-format-description"
31193 nolink "false"
31194
31195 \end_inset
31196
31197  for the details.
31198 \end_layout
31199
31200 \begin_layout Subsection
31201 \SpecialChar LyX
31202 -generated CSS
31203 \end_layout
31204
31205 \begin_layout Standard
31206 We have several times mentioned that \SpecialChar LyX
31207  will generate default CSS style rules for both insets and paragraph styles,
31208  based upon the other layout information that is provided.
31209  In this section,
31210  we shall say a word about which layout information \SpecialChar LyX
31211  uses and how.
31212 \end_layout
31213
31214 \begin_layout Standard
31215 At present,
31216  \SpecialChar LyX
31217  auto-generates CSS only for font information,
31218  making use of the 
31219 \begin_inset Flex Code
31220 status collapsed
31221
31222 \begin_layout Plain Layout
31223 Family
31224 \end_layout
31225
31226 \end_inset
31227
31228 ,
31229  
31230 \begin_inset Flex Code
31231 status collapsed
31232
31233 \begin_layout Plain Layout
31234 Series
31235 \end_layout
31236
31237 \end_inset
31238
31239 ,
31240  
31241 \begin_inset Flex Code
31242 status collapsed
31243
31244 \begin_layout Plain Layout
31245 Shape
31246 \end_layout
31247
31248 \end_inset
31249
31250 ,
31251  and 
31252 \begin_inset Flex Code
31253 status collapsed
31254
31255 \begin_layout Plain Layout
31256 Size
31257 \end_layout
31258
31259 \end_inset
31260
31261  specified in the 
31262 \begin_inset Flex Code
31263 status collapsed
31264
31265 \begin_layout Plain Layout
31266 Font
31267 \end_layout
31268
31269 \end_inset
31270
31271  declaration (see 
31272 \begin_inset CommandInset ref
31273 LatexCommand ref
31274 reference "subsec:Font-description"
31275 nolink "false"
31276
31277 \end_inset
31278
31279 ).
31280  The translation is mostly straightforward and obvious.
31281  For example,
31282  
31283 \begin_inset Quotes eld
31284 \end_inset
31285
31286
31287 \begin_inset Flex Code
31288 status collapsed
31289
31290 \begin_layout Plain Layout
31291 Family Sans
31292 \end_layout
31293
31294 \end_inset
31295
31296
31297 \begin_inset Quotes erd
31298 \end_inset
31299
31300  becomes 
31301 \begin_inset Quotes eld
31302 \end_inset
31303
31304
31305 \begin_inset Flex Code
31306 status collapsed
31307
31308 \begin_layout Plain Layout
31309 font-family:
31310  sans-serif;
31311 \end_layout
31312
31313 \end_inset
31314
31315
31316 \begin_inset Quotes erd
31317 \end_inset
31318
31319 .
31320  The correspondence of \SpecialChar LyX
31321  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
31322  See the 
31323 \begin_inset Flex Code
31324 status collapsed
31325
31326 \begin_layout Plain Layout
31327 getSizeCSS()
31328 \end_layout
31329
31330 \end_inset
31331
31332  function in 
31333 \begin_inset Flex URL
31334 status collapsed
31335
31336 \begin_layout Plain Layout
31337
31338 src/FontInfo.cpp
31339 \end_layout
31340
31341 \end_inset
31342
31343  for the details.
31344 \change_inserted -970929547 1496610908
31345
31346 \end_layout
31347
31348 \begin_layout Section
31349
31350 \change_inserted -970929547 1496610966
31351 \begin_inset CommandInset label
31352 LatexCommand label
31353 name "sec:Tags-for-DocBook"
31354
31355 \end_inset
31356
31357 Tags for DocBook output
31358 \end_layout
31359
31360 \begin_layout Standard
31361
31362 \change_inserted -970929547 1496611615
31363 As with \SpecialChar LaTeX
31364  or XHTML,
31365  the format of \SpecialChar LyX
31366 's DocBook output is also controlled by layout information.
31367  In general,
31368  \SpecialChar LyX
31369  provides sensible defaults;
31370  however,
31371  much of the styling is lost during the conversion,
31372  as DocBook is strictly semantic and does not allow formatting.
31373  When possible,
31374  information from \SpecialChar LyX
31375  will be rendered in 
31376 \family typewriter
31377 role
31378 \family default
31379  attributes.
31380  
31381 \end_layout
31382
31383 \begin_layout Standard
31384
31385 \change_inserted -970929547 1496612080
31386 In many cases,
31387  then,
31388  you may not have to do anything at all to get acceptable DocBook output for your own environments,
31389  custom insets,
31390  and so forth.
31391  But in some cases you will,
31392  and so \SpecialChar LyX
31393  provides a number of layout tags that can be used to customize the DocBook that is generated.
31394 \end_layout
31395
31396 \begin_layout Standard
31397
31398 \change_inserted -970929547 1515109912
31399 Labels are rarely output,
31400  as they are redundant in DocBook:
31401  this information is carried by the tags themselves,
31402  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
31403  However,
31404  sometimes,
31405  labels are not redundant content,
31406  such as definition lists:
31407  in this case,
31408  the term being defined will be the label.
31409  
31410 \end_layout
31411
31412 \begin_layout Subsection
31413
31414 \change_inserted 1075283030 1597699417
31415 \begin_inset CommandInset label
31416 LatexCommand label
31417 name "subsec:Paragraph-Style-DocBook"
31418
31419 \end_inset
31420
31421
31422 \change_deleted 1075283030 1597699417
31423
31424 \begin_inset CommandInset label
31425 LatexCommand label
31426 name "subsec:Paragraph-Style-XHTML-1"
31427
31428 \end_inset
31429
31430
31431 \change_inserted -970929547 1496610966
31432 Paragraph styles
31433 \end_layout
31434
31435 \begin_layout Standard
31436
31437 \change_inserted -970929547 1496612059
31438 The sort of DocBook \SpecialChar LyX
31439  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
31440  a command,
31441  or an environment,
31442  where this is itself determined by the contents of the corresponding 
31443 \begin_inset Flex Code
31444 status collapsed
31445
31446 \begin_layout Plain Layout
31447
31448 \change_inserted -970929547 1496610966
31449 \SpecialChar LaTeX
31450 Type
31451 \change_unchanged
31452
31453 \end_layout
31454
31455 \end_inset
31456
31457  tag.
31458  
31459 \end_layout
31460
31461 \begin_layout Standard
31462
31463 \change_inserted -970929547 1496612107
31464 For a command or normal paragraph,
31465  the output DocBook has the following form:
31466 \end_layout
31467
31468 \begin_layout LyX-Code
31469
31470 \change_inserted -970929547 1515109666
31471 <tag attr>
31472 \end_layout
31473
31474 \begin_layout LyX-Code
31475
31476 \change_inserted -970929547 1496610966
31477 Contents of the paragraph.
31478 \end_layout
31479
31480 \begin_layout LyX-Code
31481
31482 \change_inserted -970929547 1496610966
31483 </tag>
31484 \end_layout
31485
31486 \begin_layout Standard
31487
31488 \change_inserted -970929547 1515109821
31489 For an environment that is not some sort of list,
31490  the generated DocBook takes this form:
31491 \end_layout
31492
31493 \begin_layout LyX-Code
31494
31495 \change_inserted -970929547 1515109671
31496 <tag attr>
31497 \end_layout
31498
31499 \begin_layout LyX-Code
31500
31501 \change_inserted -970929547 1496612114
31502 <itemtag>First paragraph.</itemtag>
31503 \end_layout
31504
31505 \begin_layout LyX-Code
31506
31507 \change_inserted -970929547 1496610966
31508 <itemtag>Second paragraph.</itemtag>
31509 \end_layout
31510
31511 \begin_layout LyX-Code
31512
31513 \change_inserted -970929547 1496610966
31514 </tag>
31515 \end_layout
31516
31517 \begin_layout Standard
31518
31519 \change_inserted -970929547 1515109825
31520 For a list,
31521  the resulting DocBook takes this form:
31522 \end_layout
31523
31524 \begin_layout LyX-Code
31525
31526 \change_inserted -970929547 1515109672
31527 <tag attr>
31528 \end_layout
31529
31530 \begin_layout LyX-Code
31531
31532 \change_inserted -970929547 1515109676
31533 <itemtag attr>First item.</itemtag>
31534 \end_layout
31535
31536 \begin_layout LyX-Code
31537
31538 \change_inserted -970929547 1515109678
31539 <itemtag attr>Second item.</itemtag>
31540 \end_layout
31541
31542 \begin_layout LyX-Code
31543
31544 \change_inserted -970929547 1496610966
31545 </tag>
31546 \end_layout
31547
31548 \begin_layout Standard
31549
31550 \change_inserted -970929547 1496612243
31551 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
31552  Please note that,
31553  due to the very nature of DocBook,
31554  no sensible defaults really exist,
31555  and the values must always be carefully chosen.
31556  
31557 \end_layout
31558
31559 \begin_layout Description
31560
31561 \change_inserted -970929547 1515110057
31562 \begin_inset Flex Code
31563 status collapsed
31564
31565 \begin_layout Plain Layout
31566
31567 \change_inserted -970929547 1515109656
31568 DocBookAttr
31569 \change_unchanged
31570
31571 \end_layout
31572
31573 \end_inset
31574
31575  [
31576 \begin_inset Flex Code
31577 status collapsed
31578
31579 \begin_layout Plain Layout
31580
31581 \change_inserted -970929547 1496610966
31582 string
31583 \change_unchanged
31584
31585 \end_layout
31586
31587 \end_inset
31588
31589 ] Specifies attribute information to be output with the main tag,
31590  replacing 
31591 \begin_inset Quotes eld
31592 \end_inset
31593
31594
31595 \begin_inset Flex Code
31596 status collapsed
31597
31598 \begin_layout Plain Layout
31599
31600 \change_inserted -970929547 1515110057
31601 attr
31602 \change_unchanged
31603
31604 \end_layout
31605
31606 \end_inset
31607
31608
31609 \begin_inset Quotes erd
31610 \end_inset
31611
31612  in the example above.
31613  This information can be used in further processing of the DocBook files.
31614  
31615 \change_unchanged
31616
31617 \end_layout
31618
31619 \begin_layout Description
31620
31621 \change_inserted -970929547 1496612296
31622 \begin_inset Flex Code
31623 status collapsed
31624
31625 \begin_layout Plain Layout
31626
31627 \change_inserted -970929547 1496612269
31628 DocBookTag
31629 \change_unchanged
31630
31631 \end_layout
31632
31633 \end_inset
31634
31635  [
31636 \begin_inset Flex Code
31637 status collapsed
31638
31639 \begin_layout Plain Layout
31640
31641 \change_inserted -970929547 1496610966
31642 string
31643 \change_unchanged
31644
31645 \end_layout
31646
31647 \end_inset
31648
31649 ] The tag to be used for this inset,
31650  replacing 
31651 \begin_inset Quotes eld
31652 \end_inset
31653
31654
31655 \begin_inset Flex Code
31656 status collapsed
31657
31658 \begin_layout Plain Layout
31659
31660 \change_inserted -970929547 1496612296
31661 tag
31662 \change_unchanged
31663
31664 \end_layout
31665
31666 \end_inset
31667
31668
31669 \begin_inset Quotes erd
31670 \end_inset
31671
31672  in the example above.
31673  The default is the name of the float and always needs to be changed,
31674  as DocBook provides no generic tag.
31675 \change_inserted 1075283030 1597698868
31676
31677 \end_layout
31678
31679 \begin_layout Description
31680
31681 \change_inserted 1075283030 1597699399
31682 \begin_inset Flex Code
31683 status collapsed
31684
31685 \begin_layout Plain Layout
31686
31687 \change_inserted 1075283030 1597698872
31688 DocBookTagType
31689 \change_unchanged
31690
31691 \end_layout
31692
31693 \end_inset
31694
31695  [
31696 \begin_inset Flex Code
31697 status collapsed
31698
31699 \begin_layout Plain Layout
31700
31701 \change_inserted 1075283030 1597700585
31702 block,
31703  paragraph,
31704  inline
31705 \change_unchanged
31706
31707 \end_layout
31708
31709 \end_inset
31710
31711 ] The new-line policy for this tag,
31712  see Section
31713 \begin_inset space ~
31714 \end_inset
31715
31716
31717 \begin_inset CommandInset ref
31718 LatexCommand ref
31719 reference "subsec:DocBook-New-line-policy"
31720 plural "false"
31721 caps "false"
31722 noprefix "false"
31723 nolink "false"
31724
31725 \end_inset
31726
31727  for the details.
31728  
31729 \change_unchanged
31730
31731 \end_layout
31732
31733 \begin_layout Subsection
31734
31735 \change_inserted 1075283030 1597699385
31736 New-line policy
31737 \begin_inset CommandInset label
31738 LatexCommand label
31739 name "subsec:DocBook-New-line-policy"
31740
31741 \end_inset
31742
31743
31744 \end_layout
31745
31746 \begin_layout Standard
31747
31748 \change_inserted 1075283030 1597698993
31749 For all tags,
31750  there are three possible policies for outputting new lines (given in the 
31751 \begin_inset Flex Code
31752 status collapsed
31753
31754 \begin_layout Plain Layout
31755
31756 \change_inserted 1075283030 1597698987
31757 DocBook*TagType
31758 \change_unchanged
31759
31760 \end_layout
31761
31762 \end_inset
31763
31764  attribute):
31765  
31766 \end_layout
31767
31768 \begin_layout Itemize
31769
31770 \change_inserted 1075283030 1597699279
31771 \begin_inset Quotes eld
31772 \end_inset
31773
31774
31775 \begin_inset Flex Code
31776 status collapsed
31777
31778 \begin_layout Plain Layout
31779
31780 \change_inserted 1075283030 1597699012
31781 block
31782 \change_unchanged
31783
31784 \end_layout
31785
31786 \end_inset
31787
31788
31789 \begin_inset Quotes erd
31790 \end_inset
31791
31792 :
31793  the opening and closing tags are on their own lines (i.e.
31794  a line feed after and before the opening and the closing tags).
31795  Typical elements are floats.
31796  For instance:
31797  
31798 \end_layout
31799
31800 \begin_layout LyX-Code
31801
31802 \change_inserted 1075283030 1597699194
31803 Content before
31804 \end_layout
31805
31806 \begin_layout LyX-Code
31807
31808 \change_inserted 1075283030 1597699194
31809 <blocktag>
31810 \end_layout
31811
31812 \begin_layout LyX-Code
31813
31814 \change_inserted 1075283030 1597699098
31815   Contents of the block.
31816 \end_layout
31817
31818 \begin_layout LyX-Code
31819
31820 \change_inserted 1075283030 1597699196
31821 </blocktag>
31822 \end_layout
31823
31824 \begin_layout LyX-Code
31825
31826 \change_inserted 1075283030 1597699198
31827 Content after
31828 \end_layout
31829
31830 \begin_layout Itemize
31831
31832 \change_inserted 1075283030 1597699289
31833 \begin_inset Quotes eld
31834 \end_inset
31835
31836
31837 \begin_inset Flex Code
31838 status collapsed
31839
31840 \begin_layout Plain Layout
31841
31842 \change_inserted 1075283030 1597699113
31843 paragraph
31844 \change_unchanged
31845
31846 \end_layout
31847
31848 \end_inset
31849
31850
31851 \begin_inset Quotes erd
31852 \end_inset
31853
31854 :
31855  the opening and closing tags are on the same,
31856  new line;
31857  a line feed is output before the opening tag and after the closing tag.
31858  Typical elements are paragraphs and list items.
31859  For instance:
31860  
31861 \end_layout
31862
31863 \begin_layout LyX-Code
31864
31865 \change_inserted 1075283030 1597699186
31866 Content before
31867 \end_layout
31868
31869 \begin_layout LyX-Code
31870
31871 \change_inserted 1075283030 1597699357
31872 <paratag>Contents of the paragraph.</paratag>
31873 \end_layout
31874
31875 \begin_layout LyX-Code
31876
31877 \change_inserted 1075283030 1597699231
31878 Content after
31879 \end_layout
31880
31881 \begin_layout Itemize
31882
31883 \change_inserted 1075283030 1597699343
31884 \begin_inset Quotes eld
31885 \end_inset
31886
31887
31888 \begin_inset Flex Code
31889 status collapsed
31890
31891 \begin_layout Plain Layout
31892
31893 \change_inserted 1075283030 1597699307
31894 inline
31895 \change_unchanged
31896
31897 \end_layout
31898
31899 \end_inset
31900
31901
31902 \begin_inset Quotes erd
31903 \end_inset
31904
31905 :
31906  the opening and closing tags are on the same line as the rest of the content.
31907  No line feeds are output.
31908  Typical elements are fonts.
31909  For instance:
31910  
31911 \end_layout
31912
31913 \begin_layout LyX-Code
31914
31915 \change_inserted 1075283030 1597699585
31916 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
31917 \end_layout
31918
31919 \begin_layout Standard
31920
31921 \change_inserted 1075283030 1597699585
31922 The default value is always 
31923 \begin_inset Quotes eld
31924 \end_inset
31925
31926
31927 \begin_inset Flex Code
31928 status collapsed
31929
31930 \begin_layout Plain Layout
31931
31932 \change_inserted 1075283030 1597699585
31933 block
31934 \change_unchanged
31935
31936 \end_layout
31937
31938 \end_inset
31939
31940
31941 \begin_inset Quotes erd
31942 \end_inset
31943
31944 .
31945 \change_unchanged
31946
31947 \end_layout
31948
31949 \begin_layout Subsection
31950
31951 \change_inserted -970929547 1515111533
31952 InsetLayout DocBook
31953 \change_unchanged
31954
31955 \end_layout
31956
31957 \begin_layout Standard
31958
31959 \change_inserted -970929547 1496611894
31960 The DocBook output of insets can also be controlled by information in layout files.
31961 \end_layout
31962
31963 \begin_layout Standard
31964
31965 \change_inserted -970929547 1496612045
31966 The DocBook \SpecialChar LyX
31967  outputs for an inset has the following form:
31968 \end_layout
31969
31970 \begin_layout LyX-Code
31971
31972 \change_inserted -970929547 1515110861
31973 <wrappertag wrapperattr>
31974 \end_layout
31975
31976 \begin_layout LyX-Code
31977
31978 \change_inserted -970929547 1515110868
31979   <tag attr>
31980 \end_layout
31981
31982 \begin_layout LyX-Code
31983
31984 \change_inserted -970929547 1515110869
31985     <innertag innerattr>
31986 \end_layout
31987
31988 \begin_layout LyX-Code
31989
31990 \change_inserted -970929547 1515110869
31991       Contents of the inset.
31992 \end_layout
31993
31994 \begin_layout LyX-Code
31995
31996 \change_inserted -970929547 1515110870
31997     </innertag>
31998 \end_layout
31999
32000 \begin_layout LyX-Code
32001
32002 \change_inserted -970929547 1515110871
32003   </tag>
32004 \end_layout
32005
32006 \begin_layout LyX-Code
32007
32008 \change_inserted -970929547 1515111172
32009 </wrappertag>
32010 \end_layout
32011
32012 \begin_layout Standard
32013
32014 \change_inserted -970929547 1515111186
32015 For an itemising inset,
32016  it rather looks like this:
32017  
32018 \end_layout
32019
32020 \begin_layout LyX-Code
32021
32022 \change_inserted -970929547 1515111186
32023 <wrappertag wrapperattr>
32024 \end_layout
32025
32026 \begin_layout LyX-Code
32027
32028 \change_inserted -970929547 1515111186
32029   <tag attr>
32030 \end_layout
32031
32032 \begin_layout LyX-Code
32033
32034 \change_inserted -970929547 1515111186
32035     <innertag innerattr>
32036 \end_layout
32037
32038 \begin_layout LyX-Code
32039
32040 \change_inserted -970929547 1515111362
32041       <itemwrappertag itemwrapperattr>
32042 \end_layout
32043
32044 \begin_layout LyX-Code
32045
32046 \change_inserted -970929547 1515111364
32047         <itemlabeltag itemattr>
32048 \end_layout
32049
32050 \begin_layout LyX-Code
32051
32052 \change_inserted -970929547 1515111367
32053           Label of the first item.
32054 \end_layout
32055
32056 \begin_layout LyX-Code
32057
32058 \change_inserted -970929547 1515111362
32059         </itemtag>
32060 \change_unchanged
32061
32062 \end_layout
32063
32064 \begin_layout LyX-Code
32065
32066 \change_inserted -970929547 1515111517
32067         <itemtag itemattr>
32068 \end_layout
32069
32070 \begin_layout LyX-Code
32071
32072 \change_inserted -970929547 1515111517
32073           <itemtag itemattr>
32074 \change_unchanged
32075
32076 \end_layout
32077
32078 \begin_layout LyX-Code
32079
32080 \change_inserted -970929547 1515111516
32081             Contents of the first item.
32082 \end_layout
32083
32084 \begin_layout LyX-Code
32085
32086 \change_inserted -970929547 1515111514
32087           </itemtag>
32088 \change_unchanged
32089
32090 \end_layout
32091
32092 \begin_layout LyX-Code
32093
32094 \change_inserted -970929547 1515111247
32095         </itemtag>
32096 \change_unchanged
32097
32098 \end_layout
32099
32100 \begin_layout LyX-Code
32101
32102 \change_inserted -970929547 1515111221
32103       </itemwrappertag>
32104 \end_layout
32105
32106 \begin_layout LyX-Code
32107
32108 \change_inserted -970929547 1515111370
32109       <itemwrappertag itemwrapperattr>
32110 \end_layout
32111
32112 \begin_layout LyX-Code
32113
32114 \change_inserted -970929547 1515111370
32115         <itemlabeltag itemattr>
32116 \end_layout
32117
32118 \begin_layout LyX-Code
32119
32120 \change_inserted -970929547 1515111372
32121           Label of the second item.
32122 \end_layout
32123
32124 \begin_layout LyX-Code
32125
32126 \change_inserted -970929547 1515111370
32127         </itemtag>
32128 \change_unchanged
32129
32130 \end_layout
32131
32132 \begin_layout LyX-Code
32133
32134 \change_inserted -970929547 1515111504
32135         <itemtag itemattr>
32136 \end_layout
32137
32138 \begin_layout LyX-Code
32139
32140 \change_inserted -970929547 1515111505
32141           <itemtag itemattr>
32142 \change_unchanged
32143
32144 \end_layout
32145
32146 \begin_layout LyX-Code
32147
32148 \change_inserted -970929547 1515111507
32149             Contents of the second item.
32150 \end_layout
32151
32152 \begin_layout LyX-Code
32153
32154 \change_inserted -970929547 1515111509
32155           </itemtag>
32156 \change_unchanged
32157
32158 \end_layout
32159
32160 \begin_layout LyX-Code
32161
32162 \change_inserted -970929547 1515111251
32163         </itemtag>
32164 \change_unchanged
32165
32166 \end_layout
32167
32168 \begin_layout LyX-Code
32169
32170 \change_inserted -970929547 1515111221
32171       </itemwrappertag>
32172 \change_unchanged
32173
32174 \end_layout
32175
32176 \begin_layout LyX-Code
32177
32178 \change_inserted -970929547 1515111219
32179       ...
32180 \change_unchanged
32181
32182 \end_layout
32183
32184 \begin_layout LyX-Code
32185
32186 \change_inserted -970929547 1515111186
32187     </innertag>
32188 \end_layout
32189
32190 \begin_layout LyX-Code
32191
32192 \change_inserted -970929547 1515111186
32193   </tag>
32194 \end_layout
32195
32196 \begin_layout LyX-Code
32197
32198 \change_inserted -970929547 1515111186
32199 </wrappertag>
32200 \end_layout
32201
32202 \begin_layout Standard
32203
32204 \change_inserted -970929547 1515111183
32205 If the inset permits multiple paragraphs—
32206 that is,
32207  if 
32208 \begin_inset Flex Code
32209 status collapsed
32210
32211 \begin_layout Plain Layout
32212
32213 \change_inserted -970929547 1496610966
32214 MultiPar
32215 \change_unchanged
32216
32217 \end_layout
32218
32219 \end_inset
32220
32221  is true—
32222 then the contents of the inset will 
32223 \change_deleted 34634807 1620029217
32224 itself
32225 \change_inserted 34634807 1620029219
32226 themselves
32227 \change_inserted -970929547 1515111183
32228  be output as paragraphs formatted according to the styles used for those paragraphs (standard,
32229  quote,
32230  and the like).
32231  The inner tag is optional and,
32232  by default,
32233  does not appear.
32234 \end_layout
32235
32236 \begin_layout Standard
32237
32238 \change_inserted -970929547 1496610966
32239 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
32240 \end_layout
32241
32242 \begin_layout Description
32243
32244 \change_inserted -970929547 1515110317
32245 \begin_inset Flex Code
32246 status collapsed
32247
32248 \begin_layout Plain Layout
32249
32250 \change_inserted -970929547 1515109695
32251 DocBookAttr
32252 \change_unchanged
32253
32254 \end_layout
32255
32256 \end_inset
32257
32258  [
32259 \begin_inset Flex Code
32260 status collapsed
32261
32262 \begin_layout Plain Layout
32263
32264 \change_inserted -970929547 1496611854
32265 string
32266 \change_unchanged
32267
32268 \end_layout
32269
32270 \end_inset
32271
32272 ] Specifies attribute information to be output with the main tag,
32273  replacing 
32274 \begin_inset Quotes eld
32275 \end_inset
32276
32277
32278 \begin_inset Flex Code
32279 status collapsed
32280
32281 \begin_layout Plain Layout
32282
32283 \change_inserted -970929547 1515110044
32284 attr
32285 \change_unchanged
32286
32287 \end_layout
32288
32289 \end_inset
32290
32291
32292 \begin_inset Quotes erd
32293 \end_inset
32294
32295  in the example above.
32296  This information can be used in further processing of the DocBook files.
32297  
32298 \end_layout
32299
32300 \begin_layout Description
32301
32302 \change_inserted -970929547 1515110973
32303 \begin_inset Flex Code
32304 status collapsed
32305
32306 \begin_layout Plain Layout
32307
32308 \change_inserted -970929547 1515110319
32309 DocBookInInfo
32310 \change_unchanged
32311
32312 \end_layout
32313
32314 \end_inset
32315
32316  [
32317 \begin_inset Flex Code
32318 status collapsed
32319
32320 \begin_layout Plain Layout
32321
32322 \change_inserted -970929547 1515110384
32323 never,
32324  always,
32325  maybe
32326 \change_unchanged
32327
32328 \end_layout
32329
32330 \end_inset
32331
32332 ] Specifies whether this tag goes into the 
32333 \begin_inset Flex Code
32334 status collapsed
32335
32336 \begin_layout Plain Layout
32337
32338 \change_inserted -970929547 1515110412
32339 <info>
32340 \change_unchanged
32341
32342 \end_layout
32343
32344 \end_inset
32345
32346  tag at the beginning of the parent layout.
32347  
32348 \begin_inset Flex Code
32349 status collapsed
32350
32351 \begin_layout Plain Layout
32352
32353 \change_inserted -970929547 1515110437
32354 never
32355 \change_unchanged
32356
32357 \end_layout
32358
32359 \end_inset
32360
32361  indicates that the tag never goes into 
32362 \begin_inset Flex Code
32363 status collapsed
32364
32365 \begin_layout Plain Layout
32366
32367 \change_inserted -970929547 1515110497
32368 <info>
32369 \change_unchanged
32370
32371 \end_layout
32372
32373 \end_inset
32374
32375  (this is default value,
32376  and corresponds to usual content).
32377  
32378 \begin_inset Flex Code
32379 status collapsed
32380
32381 \begin_layout Plain Layout
32382
32383 \change_inserted -970929547 1515110517
32384 always
32385 \change_unchanged
32386
32387 \end_layout
32388
32389 \end_inset
32390
32391  indicates that the tag always goes into 
32392 \begin_inset Flex Code
32393 status collapsed
32394
32395 \begin_layout Plain Layout
32396
32397 \change_inserted -970929547 1515110514
32398 <info>
32399 \change_unchanged
32400
32401 \end_layout
32402
32403 \end_inset
32404
32405  (this corresponds to usual metadata):
32406  if there is no 
32407 \begin_inset Flex Code
32408 status collapsed
32409
32410 \begin_layout Plain Layout
32411
32412 \change_inserted -970929547 1515110550
32413 <info>
32414 \change_unchanged
32415
32416 \end_layout
32417
32418 \end_inset
32419
32420  tag for the parent,
32421  one 
32422 \series bold
32423 will
32424 \series default
32425  be generated.
32426  
32427 \begin_inset Flex Code
32428 status collapsed
32429
32430 \begin_layout Plain Layout
32431
32432 \change_inserted -970929547 1515110540
32433 maybe
32434 \change_unchanged
32435
32436 \end_layout
32437
32438 \end_inset
32439
32440  indicates that the tag may go into 
32441 \begin_inset Flex Code
32442 status collapsed
32443
32444 \begin_layout Plain Layout
32445
32446 \change_inserted -970929547 1515110538
32447 <info>
32448 \change_unchanged
32449
32450 \end_layout
32451
32452 \end_inset
32453
32454  (this is only the case for titles):
32455  if there is no 
32456 \begin_inset Flex Code
32457 status collapsed
32458
32459 \begin_layout Plain Layout
32460
32461 \change_inserted -970929547 1515110585
32462 <info>
32463 \change_unchanged
32464
32465 \end_layout
32466
32467 \end_inset
32468
32469  tag for the parent,
32470  
32471 \series bold
32472 none
32473 \series default
32474  will be generated,
32475  the corresponding tag will be output directly as content.
32476  
32477 \end_layout
32478
32479 \begin_layout Description
32480
32481 \change_inserted -970929547 1515111461
32482 \begin_inset Flex Code
32483 status collapsed
32484
32485 \begin_layout Plain Layout
32486
32487 \change_inserted -970929547 1515110974
32488 DocBookItemAttr
32489 \change_unchanged
32490
32491 \end_layout
32492
32493 \end_inset
32494
32495  [
32496 \begin_inset Flex Code
32497 status collapsed
32498
32499 \begin_layout Plain Layout
32500
32501 \change_inserted -970929547 1515110973
32502 string
32503 \change_unchanged
32504
32505 \end_layout
32506
32507 \end_inset
32508
32509 ] Specifies attribute information to be output with the item tag,
32510  replacing 
32511 \begin_inset Quotes eld
32512 \end_inset
32513
32514
32515 \begin_inset Flex Code
32516 status collapsed
32517
32518 \begin_layout Plain Layout
32519
32520 \change_inserted -970929547 1515110984
32521 itemattr
32522 \change_unchanged
32523
32524 \end_layout
32525
32526 \end_inset
32527
32528
32529 \begin_inset Quotes erd
32530 \end_inset
32531
32532  in the example above.
32533  This information can be used in further processing of the DocBook files.
32534  
32535 \end_layout
32536
32537 \begin_layout Description
32538
32539 \change_inserted -970929547 1515111471
32540 \begin_inset Flex Code
32541 status collapsed
32542
32543 \begin_layout Plain Layout
32544
32545 \change_inserted -970929547 1515111465
32546 DocBookItemInnerAttr
32547 \change_unchanged
32548
32549 \end_layout
32550
32551 \end_inset
32552
32553  [
32554 \begin_inset Flex Code
32555 status collapsed
32556
32557 \begin_layout Plain Layout
32558
32559 \change_inserted -970929547 1515111461
32560 string
32561 \change_unchanged
32562
32563 \end_layout
32564
32565 \end_inset
32566
32567 ] Specifies attribute information to be output with the item inner tag,
32568  replacing 
32569 \begin_inset Quotes eld
32570 \end_inset
32571
32572
32573 \begin_inset Flex Code
32574 status collapsed
32575
32576 \begin_layout Plain Layout
32577
32578 \change_inserted -970929547 1515111476
32579 iteminnerattr
32580 \change_unchanged
32581
32582 \end_layout
32583
32584 \end_inset
32585
32586
32587 \begin_inset Quotes erd
32588 \end_inset
32589
32590  in the example above.
32591  This information can be used in further processing of the DocBook files.
32592  
32593 \end_layout
32594
32595 \begin_layout Description
32596
32597 \change_inserted -970929547 1515111494
32598 \begin_inset Flex Code
32599 status collapsed
32600
32601 \begin_layout Plain Layout
32602
32603 \change_inserted -970929547 1515111467
32604 DocBookItemInnerTag
32605 \change_unchanged
32606
32607 \end_layout
32608
32609 \end_inset
32610
32611  [
32612 \begin_inset Flex Code
32613 status collapsed
32614
32615 \begin_layout Plain Layout
32616
32617 \change_inserted -970929547 1515111461
32618 string
32619 \change_unchanged
32620
32621 \end_layout
32622
32623 \end_inset
32624
32625 ] The tag to be used for the item inner tag within the inset,
32626  replacing 
32627 \begin_inset Quotes eld
32628 \end_inset
32629
32630
32631 \begin_inset Flex Code
32632 status collapsed
32633
32634 \begin_layout Plain Layout
32635
32636 \change_inserted -970929547 1515111486
32637 iteminnertag
32638 \change_unchanged
32639
32640 \end_layout
32641
32642 \end_inset
32643
32644
32645 \begin_inset Quotes erd
32646 \end_inset
32647
32648  in the example above.
32649  The default is 
32650 \begin_inset Flex Code
32651 status collapsed
32652
32653 \begin_layout Plain Layout
32654
32655 \change_inserted -970929547 1515111461
32656 NONE
32657 \change_unchanged
32658
32659 \end_layout
32660
32661 \end_inset
32662
32663 ,
32664  indicating that there is no item inner tag:
32665  content is directly output without it for each itemised element.
32666  This parameter only makes sense when itemising layouts are used,
32667  such as lists.
32668  
32669 \change_inserted 1075283030 1598469472
32670 The most likely value is 
32671 \begin_inset Quotes eld
32672 \end_inset
32673
32674
32675 \begin_inset Flex Code
32676 status collapsed
32677
32678 \begin_layout Plain Layout
32679
32680 \change_inserted 1075283030 1598469476
32681 para
32682 \change_unchanged
32683
32684 \end_layout
32685
32686 \end_inset
32687
32688
32689 \begin_inset Quotes erd
32690 \end_inset
32691
32692 .
32693 \begin_inset Newline newline
32694 \end_inset
32695
32696 When a list item is split using a new line,
32697  the item inner tag will be repeated for each part of the paragraph,
32698  parts being separated by new lines.
32699  
32700 \end_layout
32701
32702 \begin_layout Description
32703
32704 \change_inserted 1075283030 1597699866
32705 \begin_inset Flex Code
32706 status collapsed
32707
32708 \begin_layout Plain Layout
32709
32710 \change_inserted 1075283030 1597699853
32711 DocBookItemInnerTagType
32712 \change_unchanged
32713
32714 \end_layout
32715
32716 \end_inset
32717
32718  [
32719 \begin_inset Flex Code
32720 status collapsed
32721
32722 \begin_layout Plain Layout
32723
32724 \change_inserted 1075283030 1597699866
32725 block,
32726  paragraph,
32727  inline
32728 \change_unchanged
32729
32730 \end_layout
32731
32732 \end_inset
32733
32734 ] The new-line policy for this tag,
32735  see Section
32736 \begin_inset space ~
32737 \end_inset
32738
32739
32740 \begin_inset CommandInset ref
32741 LatexCommand ref
32742 reference "subsec:DocBook-New-line-policy"
32743 plural "false"
32744 caps "false"
32745 noprefix "false"
32746 nolink "false"
32747
32748 \end_inset
32749
32750  for the details.
32751  
32752 \change_unchanged
32753
32754 \end_layout
32755
32756 \begin_layout Description
32757
32758 \change_inserted -970929547 1515111290
32759 \begin_inset Flex Code
32760 status collapsed
32761
32762 \begin_layout Plain Layout
32763
32764 \change_inserted -970929547 1515111283
32765 DocBookItemLabelAttr
32766 \change_unchanged
32767
32768 \end_layout
32769
32770 \end_inset
32771
32772  [
32773 \begin_inset Flex Code
32774 status collapsed
32775
32776 \begin_layout Plain Layout
32777
32778 \change_inserted -970929547 1515111279
32779 string
32780 \change_unchanged
32781
32782 \end_layout
32783
32784 \end_inset
32785
32786 ] Specifies attribute information to be output with the item label tag,
32787  replacing 
32788 \begin_inset Quotes eld
32789 \end_inset
32790
32791
32792 \begin_inset Flex Code
32793 status collapsed
32794
32795 \begin_layout Plain Layout
32796
32797 \change_inserted -970929547 1515111304
32798 itemlabelattr
32799 \change_unchanged
32800
32801 \end_layout
32802
32803 \end_inset
32804
32805
32806 \begin_inset Quotes erd
32807 \end_inset
32808
32809  in the example above.
32810  This information can be used in further processing of the DocBook files.
32811  
32812 \end_layout
32813
32814 \begin_layout Description
32815
32816 \change_inserted -970929547 1515111337
32817 \begin_inset Flex Code
32818 status collapsed
32819
32820 \begin_layout Plain Layout
32821
32822 \change_inserted -970929547 1515111285
32823 DocBookItemLabelTag
32824 \change_unchanged
32825
32826 \end_layout
32827
32828 \end_inset
32829
32830  [
32831 \begin_inset Flex Code
32832 status collapsed
32833
32834 \begin_layout Plain Layout
32835
32836 \change_inserted -970929547 1515111279
32837 string
32838 \change_unchanged
32839
32840 \end_layout
32841
32842 \end_inset
32843
32844 ] The tag to be used for the item label tag within the inset,
32845  replacing 
32846 \begin_inset Quotes eld
32847 \end_inset
32848
32849
32850 \begin_inset Flex Code
32851 status collapsed
32852
32853 \begin_layout Plain Layout
32854
32855 \change_inserted -970929547 1515111311
32856 itemlabeltag
32857 \change_unchanged
32858
32859 \end_layout
32860
32861 \end_inset
32862
32863
32864 \begin_inset Quotes erd
32865 \end_inset
32866
32867  in the example above.
32868  This parameter only makes sense when itemising layouts are used with a notion of labels,
32869  such as definition lists.
32870  
32871 \change_inserted 1075283030 1597699874
32872
32873 \end_layout
32874
32875 \begin_layout Description
32876
32877 \change_inserted 1075283030 1597699874
32878 \begin_inset Flex Code
32879 status collapsed
32880
32881 \begin_layout Plain Layout
32882
32883 \change_inserted 1075283030 1597699880
32884 DocBookItemLabelTagType
32885 \change_unchanged
32886
32887 \end_layout
32888
32889 \end_inset
32890
32891  [
32892 \begin_inset Flex Code
32893 status collapsed
32894
32895 \begin_layout Plain Layout
32896
32897 \change_inserted 1075283030 1597699874
32898 block,
32899  paragraph,
32900  inline
32901 \change_unchanged
32902
32903 \end_layout
32904
32905 \end_inset
32906
32907 ] The new-line policy for this tag,
32908  see Section
32909 \begin_inset space ~
32910 \end_inset
32911
32912
32913 \begin_inset CommandInset ref
32914 LatexCommand ref
32915 reference "subsec:DocBook-New-line-policy"
32916 plural "false"
32917 caps "false"
32918 noprefix "false"
32919 nolink "false"
32920
32921 \end_inset
32922
32923  for the details.
32924  
32925 \change_unchanged
32926
32927 \end_layout
32928
32929 \begin_layout Description
32930
32931 \change_inserted -970929547 1515111124
32932 \begin_inset Flex Code
32933 status collapsed
32934
32935 \begin_layout Plain Layout
32936
32937 \change_inserted -970929547 1515111060
32938 DocBookItemTag
32939 \change_unchanged
32940
32941 \end_layout
32942
32943 \end_inset
32944
32945  [
32946 \begin_inset Flex Code
32947 status collapsed
32948
32949 \begin_layout Plain Layout
32950
32951 \change_inserted -970929547 1515111060
32952 string
32953 \change_unchanged
32954
32955 \end_layout
32956
32957 \end_inset
32958
32959 ] The tag to be used for the item tag within the inset,
32960  replacing 
32961 \begin_inset Quotes eld
32962 \end_inset
32963
32964
32965 \begin_inset Flex Code
32966 status collapsed
32967
32968 \begin_layout Plain Layout
32969
32970 \change_inserted -970929547 1515111060
32971 itemtag
32972 \change_unchanged
32973
32974 \end_layout
32975
32976 \end_inset
32977
32978
32979 \begin_inset Quotes erd
32980 \end_inset
32981
32982  in the example above.
32983  The default is 
32984 \begin_inset Flex Code
32985 status collapsed
32986
32987 \begin_layout Plain Layout
32988
32989 \change_inserted -970929547 1515111060
32990 NONE
32991 \change_unchanged
32992
32993 \end_layout
32994
32995 \end_inset
32996
32997 ,
32998  indicating that there is no item tag.
32999  This parameter only makes sense when itemising layouts are used,
33000  such as lists.
33001  
33002 \change_inserted 1075283030 1597699890
33003
33004 \end_layout
33005
33006 \begin_layout Description
33007
33008 \change_inserted 1075283030 1597699890
33009 \begin_inset Flex Code
33010 status collapsed
33011
33012 \begin_layout Plain Layout
33013
33014 \change_inserted 1075283030 1597699890
33015 DocBookItemTagType
33016 \change_unchanged
33017
33018 \end_layout
33019
33020 \end_inset
33021
33022  [
33023 \begin_inset Flex Code
33024 status collapsed
33025
33026 \begin_layout Plain Layout
33027
33028 \change_inserted 1075283030 1597699890
33029 block,
33030  paragraph,
33031  inline
33032 \change_unchanged
33033
33034 \end_layout
33035
33036 \end_inset
33037
33038 ] The new-line policy for this tag,
33039  see Section
33040 \begin_inset space ~
33041 \end_inset
33042
33043
33044 \begin_inset CommandInset ref
33045 LatexCommand ref
33046 reference "subsec:DocBook-New-line-policy"
33047 plural "false"
33048 caps "false"
33049 noprefix "false"
33050 nolink "false"
33051
33052 \end_inset
33053
33054  for the details.
33055  
33056 \change_unchanged
33057
33058 \end_layout
33059
33060 \begin_layout Description
33061
33062 \change_inserted -970929547 1515111298
33063 \begin_inset Flex Code
33064 status collapsed
33065
33066 \begin_layout Plain Layout
33067
33068 \change_inserted -970929547 1515111124
33069 DocBookItemWrapperAttr
33070 \change_unchanged
33071
33072 \end_layout
33073
33074 \end_inset
33075
33076  [
33077 \begin_inset Flex Code
33078 status collapsed
33079
33080 \begin_layout Plain Layout
33081
33082 \change_inserted -970929547 1515111124
33083 string
33084 \change_unchanged
33085
33086 \end_layout
33087
33088 \end_inset
33089
33090 ] Specifies attribute information to be output with the item wrapper tag,
33091  replacing 
33092 \begin_inset Quotes eld
33093 \end_inset
33094
33095
33096 \begin_inset Flex Code
33097 status collapsed
33098
33099 \begin_layout Plain Layout
33100
33101 \change_inserted -970929547 1515111150
33102 itemwrapperattr
33103 \change_unchanged
33104
33105 \end_layout
33106
33107 \end_inset
33108
33109
33110 \begin_inset Quotes erd
33111 \end_inset
33112
33113  in the example above.
33114  This information can be used in further processing of the DocBook files.
33115  
33116 \change_unchanged
33117
33118 \end_layout
33119
33120 \begin_layout Description
33121
33122 \change_inserted -970929547 1515111113
33123 \begin_inset Flex Code
33124 status collapsed
33125
33126 \begin_layout Plain Layout
33127
33128 \change_inserted -970929547 1515111073
33129 DocBookItemWrapperTag
33130 \change_unchanged
33131
33132 \end_layout
33133
33134 \end_inset
33135
33136  [
33137 \begin_inset Flex Code
33138 status collapsed
33139
33140 \begin_layout Plain Layout
33141
33142 \change_inserted -970929547 1515111073
33143 string
33144 \change_unchanged
33145
33146 \end_layout
33147
33148 \end_inset
33149
33150 ] The tag to be used for the item wrapper tag within the inset,
33151  replacing 
33152 \begin_inset Quotes eld
33153 \end_inset
33154
33155
33156 \begin_inset Flex Code
33157 status collapsed
33158
33159 \begin_layout Plain Layout
33160
33161 \change_inserted -970929547 1515111083
33162 itemwrappertag
33163 \change_unchanged
33164
33165 \end_layout
33166
33167 \end_inset
33168
33169
33170 \begin_inset Quotes erd
33171 \end_inset
33172
33173  in the example above.
33174  The default is 
33175 \begin_inset Flex Code
33176 status collapsed
33177
33178 \begin_layout Plain Layout
33179
33180 \change_inserted -970929547 1515111073
33181 NONE
33182 \change_unchanged
33183
33184 \end_layout
33185
33186 \end_inset
33187
33188 ,
33189  indicating that there is no item wrapper tag:
33190  tag and content are directly output without it for each itemised element.
33191  This parameter only makes sense when itemising layouts are used,
33192  such as lists.
33193  
33194 \change_inserted 1075283030 1597699897
33195
33196 \end_layout
33197
33198 \begin_layout Description
33199
33200 \change_inserted 1075283030 1597699897
33201 \begin_inset Flex Code
33202 status collapsed
33203
33204 \begin_layout Plain Layout
33205
33206 \change_inserted 1075283030 1597699900
33207 DocBookItemWrapperTagType
33208 \change_unchanged
33209
33210 \end_layout
33211
33212 \end_inset
33213
33214  [
33215 \begin_inset Flex Code
33216 status collapsed
33217
33218 \begin_layout Plain Layout
33219
33220 \change_inserted 1075283030 1597699897
33221 block,
33222  paragraph,
33223  inline
33224 \change_unchanged
33225
33226 \end_layout
33227
33228 \end_inset
33229
33230 ] The new-line policy for this tag,
33231  see Section
33232 \begin_inset space ~
33233 \end_inset
33234
33235
33236 \begin_inset CommandInset ref
33237 LatexCommand ref
33238 reference "subsec:DocBook-New-line-policy"
33239 plural "false"
33240 caps "false"
33241 noprefix "false"
33242 nolink "false"
33243
33244 \end_inset
33245
33246  for the details.
33247  
33248 \change_unchanged
33249
33250 \end_layout
33251
33252 \begin_layout Description
33253
33254 \change_inserted -970929547 1515110104
33255 \begin_inset Flex Code
33256 status collapsed
33257
33258 \begin_layout Plain Layout
33259
33260 \change_inserted -970929547 1515110104
33261 DocBookInnerAttr
33262 \change_unchanged
33263
33264 \end_layout
33265
33266 \end_inset
33267
33268  [
33269 \begin_inset Flex Code
33270 status collapsed
33271
33272 \begin_layout Plain Layout
33273
33274 \change_inserted -970929547 1515110104
33275 string
33276 \change_unchanged
33277
33278 \end_layout
33279
33280 \end_inset
33281
33282 ] Specifies attribute information to be output with the inner tag,
33283  replacing 
33284 \begin_inset Quotes eld
33285 \end_inset
33286
33287
33288 \begin_inset Flex Code
33289 status collapsed
33290
33291 \begin_layout Plain Layout
33292
33293 \change_inserted -970929547 1515110104
33294 innerattr
33295 \change_unchanged
33296
33297 \end_layout
33298
33299 \end_inset
33300
33301
33302 \begin_inset Quotes erd
33303 \end_inset
33304
33305  in the example above.
33306  This information can be used in further processing of the DocBook files.
33307  
33308 \end_layout
33309
33310 \begin_layout Description
33311
33312 \change_inserted -970929547 1515110906
33313 \begin_inset Flex Code
33314 status collapsed
33315
33316 \begin_layout Plain Layout
33317
33318 \change_inserted -970929547 1515110104
33319 DocBookInnerTag
33320 \change_unchanged
33321
33322 \end_layout
33323
33324 \end_inset
33325
33326  [
33327 \begin_inset Flex Code
33328 status collapsed
33329
33330 \begin_layout Plain Layout
33331
33332 \change_inserted -970929547 1515110104
33333 string
33334 \change_unchanged
33335
33336 \end_layout
33337
33338 \end_inset
33339
33340 ] The tag to be used for the inner tag within the inset,
33341  replacing 
33342 \begin_inset Quotes eld
33343 \end_inset
33344
33345
33346 \begin_inset Flex Code
33347 status collapsed
33348
33349 \begin_layout Plain Layout
33350
33351 \change_inserted -970929547 1515110104
33352 innertag
33353 \change_unchanged
33354
33355 \end_layout
33356
33357 \end_inset
33358
33359
33360 \begin_inset Quotes erd
33361 \end_inset
33362
33363  in the example above.
33364  The default is 
33365 \begin_inset Flex Code
33366 status collapsed
33367
33368 \begin_layout Plain Layout
33369
33370 \change_inserted -970929547 1515110791
33371 NONE
33372 \change_unchanged
33373
33374 \end_layout
33375
33376 \end_inset
33377
33378 ,
33379  indicating that there is no inner tag:
33380  content is directly output without it.
33381 \change_inserted 1075283030 1597699904
33382
33383 \end_layout
33384
33385 \begin_layout Description
33386
33387 \change_inserted 1075283030 1597699904
33388 \begin_inset Flex Code
33389 status collapsed
33390
33391 \begin_layout Plain Layout
33392
33393 \change_inserted 1075283030 1597699904
33394 DocBookInnerTagType
33395 \change_unchanged
33396
33397 \end_layout
33398
33399 \end_inset
33400
33401  [
33402 \begin_inset Flex Code
33403 status collapsed
33404
33405 \begin_layout Plain Layout
33406
33407 \change_inserted 1075283030 1597699904
33408 block,
33409  paragraph,
33410  inline
33411 \change_unchanged
33412
33413 \end_layout
33414
33415 \end_inset
33416
33417 ] The new-line policy for this tag,
33418  see Section
33419 \begin_inset space ~
33420 \end_inset
33421
33422
33423 \begin_inset CommandInset ref
33424 LatexCommand ref
33425 reference "subsec:DocBook-New-line-policy"
33426 plural "false"
33427 caps "false"
33428 noprefix "false"
33429 nolink "false"
33430
33431 \end_inset
33432
33433  for the details.
33434  
33435 \change_unchanged
33436
33437 \end_layout
33438
33439 \begin_layout Description
33440
33441 \change_inserted -970929547 1515110753
33442 \begin_inset Flex Code
33443 status collapsed
33444
33445 \begin_layout Plain Layout
33446
33447 \change_inserted -970929547 1515110665
33448 DocBookSectionTag
33449 \change_unchanged
33450
33451 \end_layout
33452
33453 \end_inset
33454
33455  [
33456 \begin_inset Flex Code
33457 status collapsed
33458
33459 \begin_layout Plain Layout
33460
33461 \change_inserted -970929547 1515110661
33462 string
33463 \change_unchanged
33464
33465 \end_layout
33466
33467 \end_inset
33468
33469 ] Specifies the tag that corresponds to this kind of section.
33470  This parameter only makes sense for sectioning elements (part,
33471  chapter,
33472  section,
33473  etc.).
33474  The default value is 
33475 \begin_inset Flex Code
33476 status collapsed
33477
33478 \begin_layout Plain Layout
33479
33480 \change_inserted -970929547 1515110721
33481 section
33482 \change_unchanged
33483
33484 \end_layout
33485
33486 \end_inset
33487
33488 ,
33489  and is only overridden when DocBook uses something else for sectioning (
33490 \change_inserted 1075283030 1597699921
33491 typically,
33492  
33493 \change_inserted -970929547 1515110753
33494 parts and chapters of a book).
33495  
33496 \change_unchanged
33497
33498 \end_layout
33499
33500 \begin_layout Description
33501
33502 \change_inserted -970929547 1515110811
33503 \begin_inset Flex Code
33504 status collapsed
33505
33506 \begin_layout Plain Layout
33507
33508 \change_inserted -970929547 1496612023
33509 DocBookTag
33510 \change_unchanged
33511
33512 \end_layout
33513
33514 \end_inset
33515
33516  [
33517 \begin_inset Flex Code
33518 status collapsed
33519
33520 \begin_layout Plain Layout
33521
33522 \change_inserted -970929547 1496610966
33523 string
33524 \change_unchanged
33525
33526 \end_layout
33527
33528 \end_inset
33529
33530 ] The tag to be used for this inset,
33531  replacing 
33532 \begin_inset Quotes eld
33533 \end_inset
33534
33535
33536 \begin_inset Flex Code
33537 status collapsed
33538
33539 \begin_layout Plain Layout
33540
33541 \change_inserted -970929547 1496612033
33542 tag
33543 \change_unchanged
33544
33545 \end_layout
33546
33547 \end_inset
33548
33549
33550 \begin_inset Quotes erd
33551 \end_inset
33552
33553  in the example above.
33554  The default is the name of the float and always needs to be changed,
33555  as DocBook provides no generic inset tag.
33556 \change_inserted 1075283030 1597699924
33557
33558 \end_layout
33559
33560 \begin_layout Description
33561
33562 \change_inserted 1075283030 1597699924
33563 \begin_inset Flex Code
33564 status collapsed
33565
33566 \begin_layout Plain Layout
33567
33568 \change_inserted 1075283030 1597699924
33569 DocBookTagType
33570 \change_unchanged
33571
33572 \end_layout
33573
33574 \end_inset
33575
33576  [
33577 \begin_inset Flex Code
33578 status collapsed
33579
33580 \begin_layout Plain Layout
33581
33582 \change_inserted 1075283030 1597699924
33583 block,
33584  paragraph,
33585  inline
33586 \change_unchanged
33587
33588 \end_layout
33589
33590 \end_inset
33591
33592 ] The new-line policy for this tag,
33593  see Section
33594 \begin_inset space ~
33595 \end_inset
33596
33597
33598 \begin_inset CommandInset ref
33599 LatexCommand ref
33600 reference "subsec:DocBook-New-line-policy"
33601 plural "false"
33602 caps "false"
33603 noprefix "false"
33604 nolink "false"
33605
33606 \end_inset
33607
33608  for the details.
33609  
33610 \change_unchanged
33611
33612 \end_layout
33613
33614 \begin_layout Description
33615
33616 \change_inserted -970929547 1515110832
33617 \begin_inset Flex Code
33618 status collapsed
33619
33620 \begin_layout Plain Layout
33621
33622 \change_inserted -970929547 1515110822
33623 DocBookWrapperAttr
33624 \change_unchanged
33625
33626 \end_layout
33627
33628 \end_inset
33629
33630  [
33631 \begin_inset Flex Code
33632 status collapsed
33633
33634 \begin_layout Plain Layout
33635
33636 \change_inserted -970929547 1515110811
33637 string
33638 \change_unchanged
33639
33640 \end_layout
33641
33642 \end_inset
33643
33644 ] Specifies attribute information to be output with the outer 
33645 \change_inserted 34634807 1620057958
33646 wrapper 
33647 \change_inserted -970929547 1515110832
33648 tag,
33649  replacing 
33650 \begin_inset Quotes eld
33651 \end_inset
33652
33653
33654 \begin_inset Flex Code
33655 status collapsed
33656
33657 \begin_layout Plain Layout
33658
33659 \change_inserted -970929547 1515110845
33660 wrapperattr
33661 \change_unchanged
33662
33663 \end_layout
33664
33665 \end_inset
33666
33667
33668 \begin_inset Quotes erd
33669 \end_inset
33670
33671  in the example above.
33672  This information can be used in further processing of the DocBook files.
33673  
33674 \end_layout
33675
33676 \begin_layout Description
33677
33678 \change_inserted -970929547 1515110917
33679 \begin_inset Flex Code
33680 status collapsed
33681
33682 \begin_layout Plain Layout
33683
33684 \change_inserted -970929547 1515110826
33685 DocBookWrapperTag
33686 \change_unchanged
33687
33688 \end_layout
33689
33690 \end_inset
33691
33692  [
33693 \begin_inset Flex Code
33694 status collapsed
33695
33696 \begin_layout Plain Layout
33697
33698 \change_inserted -970929547 1515110811
33699 string
33700 \change_unchanged
33701
33702 \end_layout
33703
33704 \end_inset
33705
33706 ] The tag to be used for the wrapper tag around the inset,
33707  replacing 
33708 \begin_inset Quotes eld
33709 \end_inset
33710
33711
33712 \begin_inset Flex Code
33713 status collapsed
33714
33715 \begin_layout Plain Layout
33716
33717 \change_inserted -970929547 1515110842
33718 wrappertag
33719 \change_unchanged
33720
33721 \end_layout
33722
33723 \end_inset
33724
33725
33726 \begin_inset Quotes erd
33727 \end_inset
33728
33729  in the example above.
33730  The default is 
33731 \begin_inset Flex Code
33732 status collapsed
33733
33734 \begin_layout Plain Layout
33735
33736 \change_inserted -970929547 1515110811
33737 NONE
33738 \change_unchanged
33739
33740 \end_layout
33741
33742 \end_inset
33743
33744 ,
33745  indicating that there is no wrapper tag:
33746  tag and content are directly output without it.
33747 \change_inserted 1075283030 1597699929
33748
33749 \end_layout
33750
33751 \begin_layout Description
33752
33753 \change_inserted 1075283030 1597699929
33754 \begin_inset Flex Code
33755 status collapsed
33756
33757 \begin_layout Plain Layout
33758
33759 \change_inserted 1075283030 1597699932
33760 DocBookWrapperTagType
33761 \change_unchanged
33762
33763 \end_layout
33764
33765 \end_inset
33766
33767  [
33768 \begin_inset Flex Code
33769 status collapsed
33770
33771 \begin_layout Plain Layout
33772
33773 \change_inserted 1075283030 1597699929
33774 block,
33775  paragraph,
33776  inline
33777 \change_unchanged
33778
33779 \end_layout
33780
33781 \end_inset
33782
33783 ] The new-line policy for this tag,
33784  see Section
33785 \begin_inset space ~
33786 \end_inset
33787
33788
33789 \begin_inset CommandInset ref
33790 LatexCommand ref
33791 reference "subsec:DocBook-New-line-policy"
33792 plural "false"
33793 caps "false"
33794 noprefix "false"
33795 nolink "false"
33796
33797 \end_inset
33798
33799  for the details.
33800  
33801 \change_unchanged
33802
33803 \end_layout
33804
33805 \begin_layout Subsection
33806
33807 \change_inserted -970929547 1515110040
33808 Float DocBook
33809 \end_layout
33810
33811 \begin_layout Standard
33812
33813 \change_inserted -970929547 1496611700
33814 The DocBook output for floats too can be controlled by layout information.
33815  The output has the following form:
33816 \end_layout
33817
33818 \begin_layout LyX-Code
33819
33820 \change_inserted -970929547 1515109700
33821 <tag attr>
33822 \end_layout
33823
33824 \begin_layout LyX-Code
33825
33826 \change_inserted -970929547 1515110138
33827   Contents of the float as DocBook.
33828 \end_layout
33829
33830 \begin_layout LyX-Code
33831
33832 \change_inserted -970929547 1496610966
33833 </tag>
33834 \end_layout
33835
33836 \begin_layout Standard
33837
33838 \change_inserted -970929547 1496611715
33839 The caption,
33840  if there is one,
33841  is a separate inset and will be output as a title.
33842  
33843 \end_layout
33844
33845 \begin_layout Description
33846
33847 \change_inserted -970929547 1515110033
33848 \begin_inset Flex Code
33849 status collapsed
33850
33851 \begin_layout Plain Layout
33852
33853 \change_inserted -970929547 1515109702
33854 DocBookAttr
33855 \change_unchanged
33856
33857 \end_layout
33858
33859 \end_inset
33860
33861  [
33862 \begin_inset Flex Code
33863 status collapsed
33864
33865 \begin_layout Plain Layout
33866
33867 \change_inserted -970929547 1496610966
33868 string
33869 \change_unchanged
33870
33871 \end_layout
33872
33873 \end_inset
33874
33875 ] Specifies attribute information to be output with the main tag,
33876  replacing 
33877 \begin_inset Quotes eld
33878 \end_inset
33879
33880
33881 \begin_inset Flex Code
33882 status collapsed
33883
33884 \begin_layout Plain Layout
33885
33886 \change_inserted -970929547 1515110035
33887 attr
33888 \change_unchanged
33889
33890 \end_layout
33891
33892 \end_inset
33893
33894
33895 \begin_inset Quotes erd
33896 \end_inset
33897
33898  in the example above.
33899  This information can be used in further processing of the DocBook files.
33900  
33901 \end_layout
33902
33903 \begin_layout Description
33904
33905 \change_inserted -970929547 1515110157
33906 \begin_inset Flex Code
33907 status collapsed
33908
33909 \begin_layout Plain Layout
33910
33911 \change_inserted -970929547 1496611782
33912 DocBookTag
33913 \change_unchanged
33914
33915 \end_layout
33916
33917 \end_inset
33918
33919  [
33920 \begin_inset Flex Code
33921 status collapsed
33922
33923 \begin_layout Plain Layout
33924
33925 \change_inserted -970929547 1496610966
33926 string
33927 \change_unchanged
33928
33929 \end_layout
33930
33931 \end_inset
33932
33933 ] The tag to be used for this float,
33934  replacing 
33935 \begin_inset Quotes eld
33936 \end_inset
33937
33938
33939 \begin_inset Flex Code
33940 status collapsed
33941
33942 \begin_layout Plain Layout
33943
33944 \change_inserted -970929547 1496610966
33945 tag
33946 \change_unchanged
33947
33948 \end_layout
33949
33950 \end_inset
33951
33952
33953 \begin_inset Quotes erd
33954 \end_inset
33955
33956  in the example above.
33957  The default is the name of the float and always needs to be changed,
33958  as DocBook provides no generic float tag.
33959 \end_layout
33960
33961 \begin_layout Subsection
33962
33963 \change_inserted -970929547 1515110157
33964 Bibliography formatting
33965 \end_layout
33966
33967 \begin_layout Standard
33968
33969 \change_deleted 1075283030 1597699984
33970 The 
33971 \change_inserted 1075283030 1597699985
33972 Included 
33973 \change_inserted -970929547 1515110187
33974 bibliograph
33975 \change_deleted 1075283030 1597699987
33976 y
33977 \change_inserted 1075283030 1597699987
33978 ies
33979 \change_inserted -970929547 1515110187
33980  cannot be formatted:
33981  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file)
33982 \change_inserted 1075283030 1597700117
33983 ,
33984  using the 
33985 \begin_inset Flex Code
33986 status collapsed
33987
33988 \begin_layout Plain Layout
33989
33990 \change_inserted 1075283030 1597700120
33991 biblioentry
33992 \change_unchanged
33993
33994 \end_layout
33995
33996 \end_inset
33997
33998  tag
33999 \change_inserted -970929547 1515110187
34000 .
34001 \change_inserted 1075283030 1597700092
34002
34003 \end_layout
34004
34005 \begin_layout Standard
34006
34007 \change_inserted 1075283030 1597700112
34008 When the bibliographic entries are manually inserted into the 
34009 \change_deleted 34634807 1620057319
34010 LyX
34011 \change_inserted 34634807 1620057319
34012 \SpecialChar LyX
34013
34014 \change_inserted 1075283030 1597700112
34015  document as Bibliography Items,
34016  the user deals with formatting 
34017 \change_unchanged
34018 them
34019 \change_inserted 1075283030 1597700112
34020 self:
34021  there is no attempt of parsing what the user wrote,
34022  the string is directly used (with the 
34023 \begin_inset Flex Code
34024 status collapsed
34025
34026 \begin_layout Plain Layout
34027
34028 \change_inserted 1075283030 1597700076
34029 bibliomixed
34030 \change_unchanged
34031
34032 \end_layout
34033
34034 \end_inset
34035
34036  tag).
34037  
34038 \change_unchanged
34039
34040 \end_layout
34041
34042 \begin_layout Chapter
34043 Including External Material
34044 \begin_inset CommandInset label
34045 LatexCommand label
34046 name "chap:Including-External-Material"
34047
34048 \end_inset
34049
34050
34051 \end_layout
34052
34053 \begin_layout Standard
34054 \begin_inset Box Shadowbox
34055 position "t"
34056 hor_pos "c"
34057 has_inner_box 1
34058 inner_pos "t"
34059 use_parbox 0
34060 use_makebox 0
34061 width "100col%"
34062 special "none"
34063 height "1in"
34064 height_special "totalheight"
34065 thickness "0.4pt"
34066 separation "3pt"
34067 shadowsize "4pt"
34068 framecolor "black"
34069 backgroundcolor "none"
34070 status open
34071
34072 \begin_layout Plain Layout
34073 WARNING:
34074  This portion of the documentation has not been updated for some time.
34075  We certainly hope that it is still accurate,
34076  but there are no guarantees.
34077 \end_layout
34078
34079 \end_inset
34080
34081
34082 \end_layout
34083
34084 \begin_layout Standard
34085 The use of material from sources external to \SpecialChar LyX
34086  is covered in detail in the 
34087 \emph on
34088 Embedded Objects
34089 \emph default
34090  manual.
34091  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
34092 \end_layout
34093
34094 \begin_layout Section
34095 How does it work?
34096 \end_layout
34097
34098 \begin_layout Standard
34099 The external material feature is based on the concept of a 
34100 \emph on
34101 template
34102 \emph default
34103 .
34104  A template is a specification of how \SpecialChar LyX
34105  should interface with a certain kind of material.
34106  As bundled,
34107  \SpecialChar LyX
34108  comes with predefined templates for Xfig figures,
34109  various raster format images,
34110  chess diagrams,
34111  and LilyPond music notation.
34112  You can check the actual list by using the menu 
34113 \begin_inset Flex Noun
34114 status collapsed
34115
34116 \begin_layout Plain Layout
34117 Insert\SpecialChar menuseparator
34118 File\SpecialChar menuseparator
34119 External Material
34120 \end_layout
34121
34122 \end_inset
34123
34124 .
34125  Furthermore,
34126  it is possible to roll your own template to support a specific kind of material.
34127  Later we'll describe in more detail what is involved,
34128  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
34129  version.
34130 \end_layout
34131
34132 \begin_layout Standard
34133 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.
34134  For example,
34135  consider the case of a figure produced with 
34136 \begin_inset Flex Code
34137 status collapsed
34138
34139 \begin_layout Plain Layout
34140 Xfig
34141 \end_layout
34142
34143 \end_inset
34144
34145 .
34146  The Xfig application itself works on an original file with the 
34147 \begin_inset Flex Code
34148 status collapsed
34149
34150 \begin_layout Plain Layout
34151 .fig
34152 \end_layout
34153
34154 \end_inset
34155
34156  extension.
34157  Within Xfig,
34158  you create and change your figure,
34159  and when you are done,
34160  you save the 
34161 \begin_inset Flex Code
34162 status collapsed
34163
34164 \begin_layout Plain Layout
34165 fig
34166 \end_layout
34167
34168 \end_inset
34169
34170 -file.
34171  When you want to include the figure in your document,
34172  you invoke 
34173 \begin_inset Flex Code
34174 status collapsed
34175
34176 \begin_layout Plain Layout
34177 transfig
34178 \end_layout
34179
34180 \end_inset
34181
34182  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
34183  file.
34184  In this case,
34185  the 
34186 \begin_inset Flex Code
34187 status collapsed
34188
34189 \begin_layout Plain Layout
34190 .fig
34191 \end_layout
34192
34193 \end_inset
34194
34195  file is the original file,
34196  and the PostScript file is the produced file.
34197 \end_layout
34198
34199 \begin_layout Standard
34200 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
34201  Furthermore,
34202  it provides us with the flexibility that is needed to support multiple export formats.
34203  For instance,
34204  in the case of a plain text file,
34205  it is not exactly an award-winning idea to include the figure as raw PostScript.
34206  Instead,
34207  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.
34208  The external material management allows you to do this,
34209  because it is parametrized on the different export formats that \SpecialChar LyX
34210  supports.
34211 \end_layout
34212
34213 \begin_layout Standard
34214 Besides supporting the production of different products according to the exported format,
34215  it supports tight integration with editing and viewing applications.
34216  In the case of an Xfig figure,
34217  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
34218 ,
34219  and also preview the produced PostScript file with Ghostview with another click.
34220  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
34221  In this way,
34222  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
34223  and ultimately be more productive.
34224 \end_layout
34225
34226 \begin_layout Section
34227 The external template configuration files
34228 \end_layout
34229
34230 \begin_layout Standard
34231 It is relatively easy to add custom external template definitions to \SpecialChar LyX
34232 .
34233  However,
34234  be aware that doing this in an careless manner most probably 
34235 \emph on
34236 will
34237 \emph default
34238  introduce an easily exploitable security hole.
34239  So before you do this,
34240  please read the discussion about security in 
34241 \begin_inset CommandInset ref
34242 LatexCommand ref
34243 reference "sec:Security-discussion"
34244 nolink "false"
34245
34246 \end_inset
34247
34248 .
34249 \end_layout
34250
34251 \begin_layout Standard
34252 Having said that,
34253  we encourage you to submit any interesting templates that you create.
34254  
34255 \end_layout
34256
34257 \begin_layout Standard
34258 The external templates are defined in the 
34259 \begin_inset Flex Code
34260 status collapsed
34261
34262 \begin_layout Plain Layout
34263 *.xtemplate
34264 \end_layout
34265
34266 \end_inset
34267
34268  files that are stored in the 
34269 \begin_inset Flex Code
34270 status collapsed
34271
34272 \begin_layout Plain Layout
34273 LyXDir/lib/xtemplates/
34274 \end_layout
34275
34276 \end_inset
34277
34278  directory.
34279  Each template is defined in a file of its own.
34280  You can place your own templates in 
34281 \begin_inset Flex Code
34282 status collapsed
34283
34284 \begin_layout Plain Layout
34285 UserDir/xtemplates/
34286 \end_layout
34287
34288 \end_inset
34289
34290  or copy existing templates to that directory in order to modify them.
34291 \end_layout
34292
34293 \begin_layout Standard
34294 A typical template looks like this:
34295 \end_layout
34296
34297 \begin_layout LyX-Code
34298 Template XFig
34299 \end_layout
34300
34301 \begin_layout LyX-Code
34302 GuiName "XFig:
34303  $$AbsOrRelPathParent$$Basename"
34304 \end_layout
34305
34306 \begin_layout LyX-Code
34307 HelpText
34308 \end_layout
34309
34310 \begin_layout LyX-Code
34311 An XFig figure.
34312 \end_layout
34313
34314 \begin_layout LyX-Code
34315 HelpTextEnd
34316 \end_layout
34317
34318 \begin_layout LyX-Code
34319 InputFormat fig
34320 \end_layout
34321
34322 \begin_layout LyX-Code
34323 FileFilter "*.fig"
34324 \end_layout
34325
34326 \begin_layout LyX-Code
34327 AutomaticProduction true
34328 \end_layout
34329
34330 \begin_layout LyX-Code
34331 Transform Rotate
34332 \end_layout
34333
34334 \begin_layout LyX-Code
34335 Transform Resize
34336 \end_layout
34337
34338 \begin_layout LyX-Code
34339 Format LaTeX
34340 \end_layout
34341
34342 \begin_layout LyX-Code
34343 TransformCommand Rotate RotationLatexCommand
34344 \end_layout
34345
34346 \begin_layout LyX-Code
34347 TransformCommand Resize ResizeLatexCommand
34348 \end_layout
34349
34350 \begin_layout LyX-Code
34351 Product "$$RotateFront$$ResizeFront
34352 \end_layout
34353
34354 \begin_layout LyX-Code
34355          
34356 \backslash
34357
34358 \backslash
34359 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
34360 \end_layout
34361
34362 \begin_layout LyX-Code
34363          $$ResizeBack$$RotateBack"
34364 \end_layout
34365
34366 \begin_layout LyX-Code
34367 UpdateFormat pstex
34368 \end_layout
34369
34370 \begin_layout LyX-Code
34371 UpdateResult "$$AbsPath$$Basename.pstex_t"
34372 \end_layout
34373
34374 \begin_layout LyX-Code
34375 Requirement "graphicx"
34376 \end_layout
34377
34378 \begin_layout LyX-Code
34379 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
34380 \end_layout
34381
34382 \begin_layout LyX-Code
34383 ReferencedFile latex "$$AbsPath$$Basename.eps"
34384 \end_layout
34385
34386 \begin_layout LyX-Code
34387 ReferencedFile dvi "$$AbsPath$$Basename.eps"
34388 \end_layout
34389
34390 \begin_layout LyX-Code
34391 FormatEnd
34392 \end_layout
34393
34394 \begin_layout LyX-Code
34395 Format PDFLaTeX
34396 \end_layout
34397
34398 \begin_layout LyX-Code
34399 TransformCommand Rotate RotationLatexCommand
34400 \end_layout
34401
34402 \begin_layout LyX-Code
34403 TransformCommand Resize ResizeLatexCommand
34404 \end_layout
34405
34406 \begin_layout LyX-Code
34407 Product "$$RotateFront$$ResizeFront
34408 \end_layout
34409
34410 \begin_layout LyX-Code
34411          
34412 \backslash
34413
34414 \backslash
34415 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
34416 \end_layout
34417
34418 \begin_layout LyX-Code
34419          $$ResizeBack$$RotateBack"
34420 \end_layout
34421
34422 \begin_layout LyX-Code
34423 UpdateFormat pdftex
34424 \end_layout
34425
34426 \begin_layout LyX-Code
34427 UpdateResult "$$AbsPath$$Basename.pdftex_t"
34428 \end_layout
34429
34430 \begin_layout LyX-Code
34431 Requirement "graphicx"
34432 \end_layout
34433
34434 \begin_layout LyX-Code
34435 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
34436 \end_layout
34437
34438 \begin_layout LyX-Code
34439 ReferencedFile latex "$$AbsPath$$Basename.pdf"
34440 \end_layout
34441
34442 \begin_layout LyX-Code
34443 FormatEnd
34444 \end_layout
34445
34446 \begin_layout LyX-Code
34447 Format Ascii
34448 \end_layout
34449
34450 \begin_layout LyX-Code
34451 Product "[XFig:
34452  $$FName]"
34453 \end_layout
34454
34455 \begin_layout LyX-Code
34456 FormatEnd
34457 \end_layout
34458
34459 \begin_layout LyX-Code
34460 Format DocBook
34461 \end_layout
34462
34463 \begin_layout LyX-Code
34464 Product "<graphic fileref=
34465 \backslash
34466 "$$AbsOrRelPathMaster$$Basename.eps
34467 \backslash
34468 ">
34469 \end_layout
34470
34471 \begin_layout LyX-Code
34472          </graphic>"
34473 \end_layout
34474
34475 \begin_layout LyX-Code
34476 UpdateFormat eps
34477 \end_layout
34478
34479 \begin_layout LyX-Code
34480 UpdateResult "$$AbsPath$$Basename.eps"
34481 \end_layout
34482
34483 \begin_layout LyX-Code
34484 ReferencedFile docbook "$$AbsPath$$Basename.eps"
34485 \end_layout
34486
34487 \begin_layout LyX-Code
34488 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
34489 \end_layout
34490
34491 \begin_layout LyX-Code
34492 FormatEnd
34493 \end_layout
34494
34495 \begin_layout LyX-Code
34496 TemplateEnd
34497 \end_layout
34498
34499 \begin_layout Standard
34500 As you can see,
34501  the template is enclosed in 
34502 \begin_inset Flex Code
34503 status collapsed
34504
34505 \begin_layout Plain Layout
34506 Template
34507 \end_layout
34508
34509 \end_inset
34510
34511  \SpecialChar ldots
34512  
34513 \begin_inset Flex Code
34514 status collapsed
34515
34516 \begin_layout Plain Layout
34517 TemplateEnd
34518 \end_layout
34519
34520 \end_inset
34521
34522 .
34523  It contains a header specifying some general settings and,
34524  for each supported primary document file format,
34525  a section 
34526 \begin_inset Flex Code
34527 status collapsed
34528
34529 \begin_layout Plain Layout
34530 Format
34531 \end_layout
34532
34533 \end_inset
34534
34535  \SpecialChar ldots
34536  
34537 \begin_inset Flex Code
34538 status collapsed
34539
34540 \begin_layout Plain Layout
34541 FormatEnd
34542 \end_layout
34543
34544 \end_inset
34545
34546 .
34547 \end_layout
34548
34549 \begin_layout Subsection
34550 The template header
34551 \end_layout
34552
34553 \begin_layout Description
34554 \begin_inset Flex Code
34555 status collapsed
34556
34557 \begin_layout Plain Layout
34558 AutomaticProduction
34559 \begin_inset space ~
34560 \end_inset
34561
34562 true|false
34563 \end_layout
34564
34565 \end_inset
34566
34567  Whether the file represented by the template must be generated by \SpecialChar LyX
34568 .
34569  This command must occur exactly once.
34570 \end_layout
34571
34572 \begin_layout Description
34573 \begin_inset Flex Code
34574 status collapsed
34575
34576 \begin_layout Plain Layout
34577 FileFilter
34578 \begin_inset space ~
34579 \end_inset
34580
34581 <pattern>
34582 \end_layout
34583
34584 \end_inset
34585
34586  A glob pattern that is used in the file dialog to filter out the desired files.
34587  If there is more than one possible file extension (e.
34588 \begin_inset space \thinspace{}
34589 \end_inset
34590
34591 g.
34592 \begin_inset space \space{}
34593 \end_inset
34594
34595 tgif has 
34596 \begin_inset Flex Code
34597 status collapsed
34598
34599 \begin_layout Plain Layout
34600 .obj
34601 \end_layout
34602
34603 \end_inset
34604
34605  and 
34606 \begin_inset Flex Code
34607 status collapsed
34608
34609 \begin_layout Plain Layout
34610 .tgo
34611 \end_layout
34612
34613 \end_inset
34614
34615 ),
34616  use something like 
34617 \begin_inset Flex Code
34618 status collapsed
34619
34620 \begin_layout Plain Layout
34621 "*.{obj,tgo}"
34622 \end_layout
34623
34624 \end_inset
34625
34626 .
34627  This command must occur exactly once.
34628 \end_layout
34629
34630 \begin_layout Description
34631 \begin_inset Flex Code
34632 status collapsed
34633
34634 \begin_layout Plain Layout
34635 GuiName
34636 \begin_inset space ~
34637 \end_inset
34638
34639 <guiname>
34640 \end_layout
34641
34642 \end_inset
34643
34644  The text that is displayed on the button.
34645  This command must occur exactly once.
34646 \end_layout
34647
34648 \begin_layout Description
34649 \begin_inset Flex Code
34650 status collapsed
34651
34652 \begin_layout Plain Layout
34653 HelpText
34654 \begin_inset space ~
34655 \end_inset
34656
34657 <text>
34658 \begin_inset space ~
34659 \end_inset
34660
34661 HelpTextEnd
34662 \end_layout
34663
34664 \end_inset
34665
34666  The help text that is used in the External dialog.
34667  Provide enough information to explain to the user just what the template can provide him with.
34668  This command must occur exactly once.
34669 \end_layout
34670
34671 \begin_layout Description
34672 \begin_inset Flex Code
34673 status collapsed
34674
34675 \begin_layout Plain Layout
34676 InputFormat
34677 \begin_inset space ~
34678 \end_inset
34679
34680 <format>
34681 \end_layout
34682
34683 \end_inset
34684
34685  The file format of the original file.
34686  This must be the name of a format that is known to \SpecialChar LyX
34687  (see 
34688 \begin_inset CommandInset ref
34689 LatexCommand ref
34690 reference "sec:Formats"
34691 nolink "false"
34692
34693 \end_inset
34694
34695 ).
34696  Use 
34697 \begin_inset Quotes eld
34698 \end_inset
34699
34700
34701 \begin_inset Flex Code
34702 status collapsed
34703
34704 \begin_layout Plain Layout
34705 *
34706 \end_layout
34707
34708 \end_inset
34709
34710
34711 \begin_inset Quotes erd
34712 \end_inset
34713
34714  if the template can handle original files of more than one format.
34715  \SpecialChar LyX
34716  will attempt to interrogate the file itself in order to deduce its format in this case.
34717  This command must occur exactly once.
34718 \end_layout
34719
34720 \begin_layout Description
34721 \begin_inset Flex Code
34722 status collapsed
34723
34724 \begin_layout Plain Layout
34725 Template
34726 \begin_inset space ~
34727 \end_inset
34728
34729 <id>
34730 \end_layout
34731
34732 \end_inset
34733
34734  A unique name for the template.
34735  It must not contain substitution macros (see below).
34736 \end_layout
34737
34738 \begin_layout Description
34739 \begin_inset Flex Code
34740 status collapsed
34741
34742 \begin_layout Plain Layout
34743 Transform
34744 \begin_inset space ~
34745 \end_inset
34746
34747 Rotate|Resize|Clip|Extra
34748 \end_layout
34749
34750 \end_inset
34751
34752  This command specifies which transformations are supported by this template.
34753  It may occur zero or more times.
34754  This command enables the corresponding tabs in the external dialog.
34755  Each 
34756 \begin_inset Flex Code
34757 status collapsed
34758
34759 \begin_layout Plain Layout
34760 Transform
34761 \end_layout
34762
34763 \end_inset
34764
34765  command must have either a corresponding 
34766 \begin_inset Flex Code
34767 status collapsed
34768
34769 \begin_layout Plain Layout
34770 TransformCommand
34771 \end_layout
34772
34773 \end_inset
34774
34775  or a 
34776 \begin_inset Flex Code
34777 status collapsed
34778
34779 \begin_layout Plain Layout
34780 TransformOption
34781 \end_layout
34782
34783 \end_inset
34784
34785  command in the 
34786 \begin_inset Flex Code
34787 status collapsed
34788
34789 \begin_layout Plain Layout
34790 Format
34791 \end_layout
34792
34793 \end_inset
34794
34795  section.
34796  Otherwise the transformation will not be supported by that format.
34797 \end_layout
34798
34799 \begin_layout Subsection
34800 The Format section
34801 \end_layout
34802
34803 \begin_layout Description
34804 \begin_inset Flex Code
34805 status collapsed
34806
34807 \begin_layout Plain Layout
34808 Format
34809 \begin_inset space ~
34810 \end_inset
34811
34812 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
34813 \end_layout
34814
34815 \end_inset
34816
34817  The primary document file format that this format definition is for.
34818  Not every template has a sensible representation in all document file formats.
34819  Please define nevertheless a 
34820 \begin_inset Flex Code
34821 status collapsed
34822
34823 \begin_layout Plain Layout
34824 Format
34825 \end_layout
34826
34827 \end_inset
34828
34829  section for all templates.
34830  Use a dummy text when no representation is available.
34831  Then you can at least see a reference to the external material in the exported document.
34832 \end_layout
34833
34834 \begin_layout Description
34835 \begin_inset Flex Code
34836 status collapsed
34837
34838 \begin_layout Plain Layout
34839 Option
34840 \begin_inset space ~
34841 \end_inset
34842
34843 <name>
34844 \begin_inset space ~
34845 \end_inset
34846
34847 <value>
34848 \end_layout
34849
34850 \end_inset
34851
34852  This command defines an additional macro 
34853 \begin_inset Flex Code
34854 status collapsed
34855
34856 \begin_layout Plain Layout
34857 $$<name>
34858 \end_layout
34859
34860 \end_inset
34861
34862  for substitution in 
34863 \begin_inset Flex Code
34864 status collapsed
34865
34866 \begin_layout Plain Layout
34867 Product
34868 \end_layout
34869
34870 \end_inset
34871
34872 .
34873  
34874 \begin_inset Flex Code
34875 status collapsed
34876
34877 \begin_layout Plain Layout
34878 <value>
34879 \end_layout
34880
34881 \end_inset
34882
34883  itself may contain substitution macros.
34884  The advantage over using 
34885 \begin_inset Flex Code
34886 status collapsed
34887
34888 \begin_layout Plain Layout
34889 <value>
34890 \end_layout
34891
34892 \end_inset
34893
34894  directly in 
34895 \begin_inset Flex Code
34896 status collapsed
34897
34898 \begin_layout Plain Layout
34899 Product
34900 \end_layout
34901
34902 \end_inset
34903
34904  is that the substituted value of 
34905 \begin_inset Flex Code
34906 status collapsed
34907
34908 \begin_layout Plain Layout
34909 $$<name>
34910 \end_layout
34911
34912 \end_inset
34913
34914  is sanitized so that it is a valid optional argument in the document format.
34915  This command may occur zero or more times.
34916 \end_layout
34917
34918 \begin_layout Description
34919 \begin_inset Flex Code
34920 status collapsed
34921
34922 \begin_layout Plain Layout
34923 Product
34924 \begin_inset space ~
34925 \end_inset
34926
34927 <text>
34928 \end_layout
34929
34930 \end_inset
34931
34932  The text that is inserted in the exported document.
34933  This is actually the most important command and can be quite complex.
34934  This command must occur exactly once.
34935 \end_layout
34936
34937 \begin_layout Description
34938 \begin_inset Flex Code
34939 status collapsed
34940
34941 \begin_layout Plain Layout
34942 Preamble
34943 \begin_inset space ~
34944 \end_inset
34945
34946 <name>
34947 \end_layout
34948
34949 \end_inset
34950
34951  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
34952  preamble.
34953  It has to be defined using 
34954 \begin_inset Flex Code
34955 status collapsed
34956
34957 \begin_layout Plain Layout
34958 PreambleDef
34959 \end_layout
34960
34961 \end_inset
34962
34963  \SpecialChar ldots
34964  
34965 \begin_inset Flex Code
34966 status collapsed
34967
34968 \begin_layout Plain Layout
34969 PreambleDefEnd
34970 \end_layout
34971
34972 \end_inset
34973
34974 .
34975  This command may occur zero or more times.
34976 \end_layout
34977
34978 \begin_layout Description
34979 \begin_inset Flex Code
34980 status collapsed
34981
34982 \begin_layout Plain Layout
34983 ReferencedFile
34984 \begin_inset space ~
34985 \end_inset
34986
34987 <format>
34988 \begin_inset space ~
34989 \end_inset
34990
34991 <filename>
34992 \end_layout
34993
34994 \end_inset
34995
34996  This command denotes files that are created by the conversion process and are needed for a particular export format.
34997  If the filename is relative,
34998  it is interpreted relative to the master document.
34999  This command may be given zero or more times.
35000 \end_layout
35001
35002 \begin_layout Description
35003 \begin_inset Flex Code
35004 status collapsed
35005
35006 \begin_layout Plain Layout
35007 Requirement
35008 \begin_inset space ~
35009 \end_inset
35010
35011 <package>
35012 \end_layout
35013
35014 \end_inset
35015
35016  The name of a required \SpecialChar LaTeX
35017  package.
35018  The package is included via 
35019 \begin_inset Flex Code
35020 status collapsed
35021
35022 \begin_layout Plain Layout
35023
35024 \backslash
35025 usepackage{}
35026 \end_layout
35027
35028 \end_inset
35029
35030  in the \SpecialChar LaTeX
35031  preamble.
35032  This command may occur zero or more times.
35033 \end_layout
35034
35035 \begin_layout Description
35036 \begin_inset Flex Code
35037 status collapsed
35038
35039 \begin_layout Plain Layout
35040 TransformCommand
35041 \begin_inset space ~
35042 \end_inset
35043
35044 Rotate
35045 \begin_inset space ~
35046 \end_inset
35047
35048 RotationLatexCommand
35049 \end_layout
35050
35051 \end_inset
35052
35053  This command specifies that the built in \SpecialChar LaTeX
35054  command should be used for rotation.
35055  This command may occur once or not at all.
35056 \end_layout
35057
35058 \begin_layout Description
35059 \begin_inset Flex Code
35060 status collapsed
35061
35062 \begin_layout Plain Layout
35063 TransformCommand
35064 \begin_inset space ~
35065 \end_inset
35066
35067 Resize
35068 \begin_inset space ~
35069 \end_inset
35070
35071 ResizeLatexCommand
35072 \end_layout
35073
35074 \end_inset
35075
35076  This command specifies that the built in \SpecialChar LaTeX
35077  command should be used for resizing.
35078  This command may occur once or not at all.
35079 \end_layout
35080
35081 \begin_layout Description
35082 \begin_inset Flex Code
35083 status collapsed
35084
35085 \begin_layout Plain Layout
35086 TransformOption
35087 \begin_inset space ~
35088 \end_inset
35089
35090 Rotate
35091 \begin_inset space ~
35092 \end_inset
35093
35094 RotationLatexOption
35095 \end_layout
35096
35097 \end_inset
35098
35099  This command specifies that rotation is done via an optional argument.
35100  This command may occur once or not at all.
35101 \end_layout
35102
35103 \begin_layout Description
35104 \begin_inset Flex Code
35105 status collapsed
35106
35107 \begin_layout Plain Layout
35108 TransformOption
35109 \begin_inset space ~
35110 \end_inset
35111
35112 Resize
35113 \begin_inset space ~
35114 \end_inset
35115
35116 ResizeLatexOption
35117 \end_layout
35118
35119 \end_inset
35120
35121  This command specifies that resizing is done via an optional argument.
35122  This command may occur once or not at all.
35123 \end_layout
35124
35125 \begin_layout Description
35126 \begin_inset Flex Code
35127 status collapsed
35128
35129 \begin_layout Plain Layout
35130 TransformOption
35131 \begin_inset space ~
35132 \end_inset
35133
35134 Clip
35135 \begin_inset space ~
35136 \end_inset
35137
35138 ClipLatexOption
35139 \end_layout
35140
35141 \end_inset
35142
35143  This command specifies that clipping is done via an optional argument.
35144  This command may occur once or not at all.
35145 \end_layout
35146
35147 \begin_layout Description
35148 \begin_inset Flex Code
35149 status collapsed
35150
35151 \begin_layout Plain Layout
35152 TransformOption
35153 \begin_inset space ~
35154 \end_inset
35155
35156 Extra
35157 \begin_inset space ~
35158 \end_inset
35159
35160 ExtraLatexOption
35161 \end_layout
35162
35163 \end_inset
35164
35165  This command specifies that an extra optional argument is used.
35166  This command may occur once or not at all.
35167 \end_layout
35168
35169 \begin_layout Description
35170 \begin_inset Flex Code
35171 status collapsed
35172
35173 \begin_layout Plain Layout
35174 UpdateFormat
35175 \begin_inset space ~
35176 \end_inset
35177
35178 <format>
35179 \end_layout
35180
35181 \end_inset
35182
35183  The file format of the converted file.
35184  This must be the name of a format that is known to \SpecialChar LyX
35185  (see the 
35186 \begin_inset Flex Noun
35187 status collapsed
35188
35189 \begin_layout Plain Layout
35190 Tools\SpecialChar menuseparator
35191 Preferences\SpecialChar menuseparator
35192 File Handling\SpecialChar menuseparator
35193 File Format
35194 \end_layout
35195
35196 \end_inset
35197
35198  dialog).
35199  This command must occur exactly once.
35200  If the resulting file format is PDF,
35201  you need to specify the format 
35202 \begin_inset Flex Code
35203 status collapsed
35204
35205 \begin_layout Plain Layout
35206 pdf6
35207 \end_layout
35208
35209 \end_inset
35210
35211 .
35212  This is the PDF format used for including graphics.
35213  The other defined PDF formats are for document export.
35214 \end_layout
35215
35216 \begin_layout Description
35217 \begin_inset Flex Code
35218 status collapsed
35219
35220 \begin_layout Plain Layout
35221 UpdateResult
35222 \begin_inset space ~
35223 \end_inset
35224
35225 <filename>
35226 \end_layout
35227
35228 \end_inset
35229
35230  The file name of the converted file.
35231  The file name must be absolute.
35232  This command must occur exactly once.
35233 \end_layout
35234
35235 \begin_layout Subsection
35236 Preamble definitions
35237 \end_layout
35238
35239 \begin_layout Standard
35240 The external template configuration file may contain additional preamble definitions enclosed by 
35241 \begin_inset Flex Code
35242 status collapsed
35243
35244 \begin_layout Plain Layout
35245 PreambleDef
35246 \end_layout
35247
35248 \end_inset
35249
35250  \SpecialChar ldots
35251  
35252 \begin_inset Flex Code
35253 status collapsed
35254
35255 \begin_layout Plain Layout
35256 PreambleDefEnd
35257 \end_layout
35258
35259 \end_inset
35260
35261 .
35262  They can be used by the templates in the 
35263 \begin_inset Flex Code
35264 status collapsed
35265
35266 \begin_layout Plain Layout
35267 Format
35268 \end_layout
35269
35270 \end_inset
35271
35272  section.
35273 \end_layout
35274
35275 \begin_layout Section
35276 The substitution mechanism
35277 \end_layout
35278
35279 \begin_layout Standard
35280 When the external material facility invokes an external program,
35281  it is done on the basis of a command defined in the template configuration file.
35282  These commands can contain various macros that are expanded before execution.
35283  Execution always take place in the directory of the containing document.
35284 \end_layout
35285
35286 \begin_layout Standard
35287 Also,
35288  whenever external material is to be displayed,
35289  the name will be produced by the substitution mechanism,
35290  and most other commands in the template definition support substitution as well.
35291 \end_layout
35292
35293 \begin_layout Standard
35294 The available macros are the following:
35295 \end_layout
35296
35297 \begin_layout Description
35298 \begin_inset Flex Code
35299 status collapsed
35300
35301 \begin_layout Plain Layout
35302 $$AbsOrRelPathMaster
35303 \end_layout
35304
35305 \end_inset
35306
35307  The file path,
35308  absolute or relative to the master \SpecialChar LyX
35309  document.
35310 \end_layout
35311
35312 \begin_layout Description
35313 \begin_inset Flex Code
35314 status collapsed
35315
35316 \begin_layout Plain Layout
35317 $$AbsOrRelPathParent
35318 \end_layout
35319
35320 \end_inset
35321
35322  The file path,
35323  absolute or relative to the \SpecialChar LyX
35324  document.
35325 \end_layout
35326
35327 \begin_layout Description
35328 \begin_inset Flex Code
35329 status collapsed
35330
35331 \begin_layout Plain Layout
35332 $$AbsPath
35333 \end_layout
35334
35335 \end_inset
35336
35337  The absolute file path.
35338 \end_layout
35339
35340 \begin_layout Description
35341 \begin_inset Flex Code
35342 status collapsed
35343
35344 \begin_layout Plain Layout
35345 $$Basename
35346 \end_layout
35347
35348 \end_inset
35349
35350  The filename without path and without the extension.
35351 \end_layout
35352
35353 \begin_layout Description
35354 \begin_inset Flex Code
35355 status collapsed
35356
35357 \begin_layout Plain Layout
35358 $$Contents(
35359 \begin_inset Quotes eld
35360 \end_inset
35361
35362 filename.ext
35363 \begin_inset Quotes erd
35364 \end_inset
35365
35366 )
35367 \end_layout
35368
35369 \end_inset
35370
35371  This macro will expand to the contents of the file with the name 
35372 \begin_inset Flex Code
35373 status collapsed
35374
35375 \begin_layout Plain Layout
35376 filename.ext
35377 \end_layout
35378
35379 \end_inset
35380
35381 .
35382 \end_layout
35383
35384 \begin_layout Description
35385 \begin_inset Flex Code
35386 status collapsed
35387
35388 \begin_layout Plain Layout
35389 $$Extension
35390 \end_layout
35391
35392 \end_inset
35393
35394  The file extension (including the dot).
35395 \end_layout
35396
35397 \begin_layout Description
35398 \begin_inset Flex Code
35399 status collapsed
35400
35401 \begin_layout Plain Layout
35402 $$pngOrjpg
35403 \end_layout
35404
35405 \end_inset
35406
35407  This will be the string 
35408 \begin_inset Quotes eld
35409 \end_inset
35410
35411 jpg
35412 \begin_inset Quotes erd
35413 \end_inset
35414
35415  if the file is in JPEG format,
35416  otherwise it will be the string 
35417 \begin_inset Quotes eld
35418 \end_inset
35419
35420 png
35421 \begin_inset Quotes erd
35422 \end_inset
35423
35424 .
35425  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
35426  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
35427  output format.
35428 \end_layout
35429
35430 \begin_layout Description
35431 \begin_inset Flex Code
35432 status collapsed
35433
35434 \begin_layout Plain Layout
35435 $$FName
35436 \end_layout
35437
35438 \end_inset
35439
35440  The filename of the file specified in the external material dialog.
35441  This is either an absolute name,
35442  or it is relative to the \SpecialChar LyX
35443  document.
35444 \end_layout
35445
35446 \begin_layout Description
35447 \begin_inset Flex Code
35448 status collapsed
35449
35450 \begin_layout Plain Layout
35451 $$FPath
35452 \end_layout
35453
35454 \end_inset
35455
35456  The path part of 
35457 \begin_inset Flex Code
35458 status collapsed
35459
35460 \begin_layout Plain Layout
35461 $$FName
35462 \end_layout
35463
35464 \end_inset
35465
35466  (absolute name or relative to the \SpecialChar LyX
35467  document).
35468 \end_layout
35469
35470 \begin_layout Description
35471 \begin_inset Flex Code
35472 status collapsed
35473
35474 \begin_layout Plain Layout
35475 $$RelPathMaster
35476 \end_layout
35477
35478 \end_inset
35479
35480  The file path,
35481  relative to the master \SpecialChar LyX
35482  document.
35483 \end_layout
35484
35485 \begin_layout Description
35486 \begin_inset Flex Code
35487 status collapsed
35488
35489 \begin_layout Plain Layout
35490 $$RelPathParent
35491 \end_layout
35492
35493 \end_inset
35494
35495  The file path,
35496  relative to the \SpecialChar LyX
35497  document.
35498 \end_layout
35499
35500 \begin_layout Description
35501 \begin_inset Flex Code
35502 status collapsed
35503
35504 \begin_layout Plain Layout
35505 $$Sysdir
35506 \end_layout
35507
35508 \end_inset
35509
35510  This macro will expand to the absolute path of the system directory.
35511  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
35512 .
35513 \end_layout
35514
35515 \begin_layout Description
35516 \begin_inset Flex Code
35517 status collapsed
35518
35519 \begin_layout Plain Layout
35520 $$Tempname
35521 \end_layout
35522
35523 \end_inset
35524
35525  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
35526  or the external material insertion deleted.
35527 \end_layout
35528
35529 \begin_layout Standard
35530 All path macros contain a trailing directory separator,
35531  so you can construct e.
35532 \begin_inset space \thinspace{}
35533 \end_inset
35534
35535 g.
35536 \begin_inset space \space{}
35537 \end_inset
35538
35539 the absolute filename with 
35540 \begin_inset Flex Code
35541 status collapsed
35542
35543 \begin_layout Plain Layout
35544 $$AbsPath$$Basename$$Extension
35545 \end_layout
35546
35547 \end_inset
35548
35549 .
35550 \end_layout
35551
35552 \begin_layout Standard
35553 The macros above are substituted in all commands unless otherwise noted.
35554  The command 
35555 \begin_inset Flex Code
35556 status collapsed
35557
35558 \begin_layout Plain Layout
35559 Product
35560 \end_layout
35561
35562 \end_inset
35563
35564  supports additionally the following substitutions if they are enabled by the 
35565 \begin_inset Flex Code
35566 status collapsed
35567
35568 \begin_layout Plain Layout
35569 Transform
35570 \end_layout
35571
35572 \end_inset
35573
35574  and 
35575 \begin_inset Flex Code
35576 status collapsed
35577
35578 \begin_layout Plain Layout
35579 TransformCommand
35580 \end_layout
35581
35582 \end_inset
35583
35584  commands:
35585 \end_layout
35586
35587 \begin_layout Description
35588 \begin_inset Flex Code
35589 status collapsed
35590
35591 \begin_layout Plain Layout
35592 $$ResizeFront
35593 \end_layout
35594
35595 \end_inset
35596
35597  The front part of the resize command.
35598 \end_layout
35599
35600 \begin_layout Description
35601 \begin_inset Flex Code
35602 status collapsed
35603
35604 \begin_layout Plain Layout
35605 $$ResizeBack
35606 \end_layout
35607
35608 \end_inset
35609
35610  The back part of the resize command.
35611 \end_layout
35612
35613 \begin_layout Description
35614 \begin_inset Flex Code
35615 status collapsed
35616
35617 \begin_layout Plain Layout
35618 $$RotateFront
35619 \end_layout
35620
35621 \end_inset
35622
35623  The front part of the rotation command.
35624 \end_layout
35625
35626 \begin_layout Description
35627 \begin_inset Flex Code
35628 status collapsed
35629
35630 \begin_layout Plain Layout
35631 $$RotateBack
35632 \end_layout
35633
35634 \end_inset
35635
35636  The back part of the rotation command.
35637 \end_layout
35638
35639 \begin_layout Standard
35640 The value string of the 
35641 \begin_inset Flex Code
35642 status collapsed
35643
35644 \begin_layout Plain Layout
35645 Option
35646 \end_layout
35647
35648 \end_inset
35649
35650  command supports additionally the following substitutions if they are enabled by the 
35651 \begin_inset Flex Code
35652 status collapsed
35653
35654 \begin_layout Plain Layout
35655 Transform
35656 \end_layout
35657
35658 \end_inset
35659
35660  and 
35661 \begin_inset Flex Code
35662 status collapsed
35663
35664 \begin_layout Plain Layout
35665 TransformOption
35666 \end_layout
35667
35668 \end_inset
35669
35670  commands:
35671 \end_layout
35672
35673 \begin_layout Description
35674 \begin_inset Flex Code
35675 status collapsed
35676
35677 \begin_layout Plain Layout
35678 $$Clip
35679 \end_layout
35680
35681 \end_inset
35682
35683  The clip option.
35684 \end_layout
35685
35686 \begin_layout Description
35687 \begin_inset Flex Code
35688 status collapsed
35689
35690 \begin_layout Plain Layout
35691 $$Extra
35692 \end_layout
35693
35694 \end_inset
35695
35696  The extra option.
35697 \end_layout
35698
35699 \begin_layout Description
35700 \begin_inset Flex Code
35701 status collapsed
35702
35703 \begin_layout Plain Layout
35704 $$Resize
35705 \end_layout
35706
35707 \end_inset
35708
35709  The resize option.
35710 \end_layout
35711
35712 \begin_layout Description
35713 \begin_inset Flex Code
35714 status collapsed
35715
35716 \begin_layout Plain Layout
35717 $$Rotate
35718 \end_layout
35719
35720 \end_inset
35721
35722  The rotation option.
35723 \end_layout
35724
35725 \begin_layout Standard
35726 You may ask why there are so many path macros.
35727  There are mainly two reasons:
35728 \end_layout
35729
35730 \begin_layout Enumerate
35731 Relative and absolute file names should remain relative or absolute,
35732  respectively.
35733  Users may have reasons to prefer either form.
35734  Relative names are useful for portable documents that should work on different machines,
35735  for example.
35736  Absolute names may be required by some programs.
35737 \end_layout
35738
35739 \begin_layout Enumerate
35740 \SpecialChar LaTeX
35741  treats relative file names differently than \SpecialChar LyX
35742  and other programs in nested included files.
35743  For \SpecialChar LyX
35744 ,
35745  a relative file name is always relative to the document that contains the file name.
35746  For \SpecialChar LaTeX
35747 ,
35748  it is always relative to the master document.
35749  These two definitions are identical if you have only one document,
35750  but differ if you have a master document that includes part documents.
35751  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
35752 .
35753  Fortunately \SpecialChar LyX
35754  does this automatically for you if you choose the right macros.
35755 \end_layout
35756
35757 \begin_layout Standard
35758 So which path macro should be used in new template definitions?
35759  The rule is not difficult:
35760 \end_layout
35761
35762 \begin_layout Itemize
35763 Use 
35764 \begin_inset Flex Code
35765 status collapsed
35766
35767 \begin_layout Plain Layout
35768 $$AbsPath
35769 \end_layout
35770
35771 \end_inset
35772
35773  if an absolute path is required.
35774 \end_layout
35775
35776 \begin_layout Itemize
35777 Use 
35778 \begin_inset Flex Code
35779 status collapsed
35780
35781 \begin_layout Plain Layout
35782 $$AbsOrRelPathMaster
35783 \end_layout
35784
35785 \end_inset
35786
35787  if the substituted string is some kind of \SpecialChar LaTeX
35788  input.
35789 \end_layout
35790
35791 \begin_layout Itemize
35792 Else use 
35793 \begin_inset Flex Code
35794 status collapsed
35795
35796 \begin_layout Plain Layout
35797 $$AbsOrRelPathParent
35798 \end_layout
35799
35800 \end_inset
35801
35802  in order to preserve the user's choice.
35803 \end_layout
35804
35805 \begin_layout Standard
35806 There are special cases where this rule does not work and e.
35807 \begin_inset space \thinspace{}
35808 \end_inset
35809
35810 g.
35811 \begin_inset space \space{}
35812 \end_inset
35813
35814 relative names are needed,
35815  but normally it will work just fine.
35816  One example for such a case is the command 
35817 \begin_inset Flex Code
35818 status collapsed
35819
35820 \begin_layout Plain Layout
35821 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
35822 \end_layout
35823
35824 \end_inset
35825
35826  in the XFig template above:
35827  We can't use the absolute name because the copier for 
35828 \begin_inset Flex Code
35829 status collapsed
35830
35831 \begin_layout Plain Layout
35832 .pstex_t
35833 \end_layout
35834
35835 \end_inset
35836
35837  files needs the relative name in order to rewrite the file content.
35838 \end_layout
35839
35840 \begin_layout Section
35841 Security discussion
35842 \begin_inset CommandInset label
35843 LatexCommand label
35844 name "sec:Security-discussion"
35845
35846 \end_inset
35847
35848
35849 \end_layout
35850
35851 \begin_layout Standard
35852 The external material feature interfaces with a lot of external programs and does so automatically,
35853  so we have to consider the security implications of this.
35854  In particular,
35855  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
35856  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
35857  This is something we definitely want to avoid.
35858 \end_layout
35859
35860 \begin_layout Standard
35861 However,
35862  since the external program commands are specified in the template configuration file only,
35863  there are no security issues if \SpecialChar LyX
35864  is properly configured with safe templates only.
35865  This is so because the external programs are invoked with the 
35866 \begin_inset Flex Code
35867 status collapsed
35868
35869 \begin_layout Plain Layout
35870 execvp
35871 \end_layout
35872
35873 \end_inset
35874
35875 -system call rather than the 
35876 \begin_inset Flex Code
35877 status collapsed
35878
35879 \begin_layout Plain Layout
35880 system
35881 \end_layout
35882
35883 \end_inset
35884
35885  system-call,
35886  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
35887 \end_layout
35888
35889 \begin_layout Standard
35890 This also implies that you are restricted in what command strings you can use in the external material templates.
35891  In particular,
35892  pipes and redirection are not readily available.
35893  This has to be so if \SpecialChar LyX
35894  should remain safe.
35895  If you want to use some of the shell features,
35896  you should write a safe script to do this in a controlled manner,
35897  and then invoke the script from the command string.
35898  
35899 \end_layout
35900
35901 \begin_layout Standard
35902 It is possible to design a template that interacts directly with the shell,
35903  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
35904  we generally recommend that you only use safe scripts that work with the 
35905 \begin_inset Flex Code
35906 status collapsed
35907
35908 \begin_layout Plain Layout
35909 execvp
35910 \end_layout
35911
35912 \end_inset
35913
35914  system call in a controlled manner.
35915  Of course,
35916  for use in a controlled environment,
35917  it can be tempting to just fall back to use ordinary shell scripts.
35918  If you do so,
35919  be aware that you 
35920 \emph on
35921 will
35922 \emph default
35923  provide an easily exploitable security hole in your system.
35924  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
35925  distribution,
35926  although we do encourage people to submit new templates in the open source tradition.
35927  But \SpecialChar LyX
35928  as shipped from the official distribution channels will never have unsafe templates.
35929 \end_layout
35930
35931 \begin_layout Standard
35932 Including external material provides a lot of power,
35933  and you have to be careful not to introduce security hazards with this power.
35934  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
35935  So if you do not fully understand the issues,
35936  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
35937  development team if you have any questions about whether a given template is safe or not.
35938  And do this before you use it in an uncontrolled environment.
35939 \end_layout
35940
35941 \begin_layout Chapter
35942 \start_of_appendix
35943 List of supported \SpecialChar LyX
35944  functions to be used in layouts
35945 \begin_inset CommandInset label
35946 LatexCommand label
35947 name "chap:List-of-functions"
35948
35949 \end_inset
35950
35951
35952 \end_layout
35953
35954 \begin_layout Standard
35955 \align center
35956 \begin_inset Tabular
35957 <lyxtabular version="3" rows="11" columns="8">
35958 <features tabularvalignment="middle">
35959 <column alignment="left" valignment="top">
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 <row>
35968 <cell alignment="left" valignment="top" usebox="none">
35969 \begin_inset Text
35970
35971 \begin_layout Plain Layout
35972 accents
35973 \end_layout
35974
35975 \end_inset
35976 </cell>
35977 <cell alignment="left" valignment="top" usebox="none">
35978 \begin_inset Text
35979
35980 \begin_layout Plain Layout
35981 booktabs
35982 \end_layout
35983
35984 \end_inset
35985 </cell>
35986 <cell alignment="left" valignment="top" usebox="none">
35987 \begin_inset Text
35988
35989 \begin_layout Plain Layout
35990 feyn
35991 \end_layout
35992
35993 \end_inset
35994 </cell>
35995 <cell alignment="left" valignment="top" usebox="none">
35996 \begin_inset Text
35997
35998 \begin_layout Plain Layout
35999 listings
36000 \end_layout
36001
36002 \end_inset
36003 </cell>
36004 <cell alignment="center" valignment="top" usebox="none">
36005 \begin_inset Text
36006
36007 \begin_layout Plain Layout
36008 natbib
36009 \end_layout
36010
36011 \end_inset
36012 </cell>
36013 <cell alignment="center" valignment="top" usebox="none">
36014 \begin_inset Text
36015
36016 \begin_layout Plain Layout
36017 rotfloat
36018 \end_layout
36019
36020 \end_inset
36021 </cell>
36022 <cell alignment="center" valignment="top" usebox="none">
36023 \begin_inset Text
36024
36025 \begin_layout Plain Layout
36026 tfrupee
36027 \end_layout
36028
36029 \end_inset
36030 </cell>
36031 <cell alignment="center" valignment="top" usebox="none">
36032 \begin_inset Text
36033
36034 \begin_layout Plain Layout
36035 wasysym
36036 \end_layout
36037
36038 \end_inset
36039 </cell>
36040 </row>
36041 <row>
36042 <cell alignment="left" valignment="top" usebox="none">
36043 \begin_inset Text
36044
36045 \begin_layout Plain Layout
36046 amsbsy
36047 \end_layout
36048
36049 \end_inset
36050 </cell>
36051 <cell alignment="left" valignment="top" usebox="none">
36052 \begin_inset Text
36053
36054 \begin_layout Plain Layout
36055 calc
36056 \end_layout
36057
36058 \end_inset
36059 </cell>
36060 <cell alignment="left" valignment="top" usebox="none">
36061 \begin_inset Text
36062
36063 \begin_layout Plain Layout
36064 fixltx2e
36065 \end_layout
36066
36067 \end_inset
36068 </cell>
36069 <cell alignment="left" valignment="top" usebox="none">
36070 \begin_inset Text
36071
36072 \begin_layout Plain Layout
36073 longtable
36074 \end_layout
36075
36076 \end_inset
36077 </cell>
36078 <cell alignment="center" valignment="top" usebox="none">
36079 \begin_inset Text
36080
36081 \begin_layout Plain Layout
36082 nomencl
36083 \end_layout
36084
36085 \end_inset
36086 </cell>
36087 <cell alignment="center" valignment="top" usebox="none">
36088 \begin_inset Text
36089
36090 \begin_layout Plain Layout
36091 rsphrase
36092 \end_layout
36093
36094 \end_inset
36095 </cell>
36096 <cell alignment="center" valignment="top" usebox="none">
36097 \begin_inset Text
36098
36099 \begin_layout Plain Layout
36100 tipa
36101 \end_layout
36102
36103 \end_inset
36104 </cell>
36105 <cell alignment="center" valignment="top" usebox="none">
36106 \begin_inset Text
36107
36108 \begin_layout Plain Layout
36109 wrapfig
36110 \end_layout
36111
36112 \end_inset
36113 </cell>
36114 </row>
36115 <row>
36116 <cell alignment="left" valignment="top" usebox="none">
36117 \begin_inset Text
36118
36119 \begin_layout Plain Layout
36120 amscd
36121 \end_layout
36122
36123 \end_inset
36124 </cell>
36125 <cell alignment="left" valignment="top" usebox="none">
36126 \begin_inset Text
36127
36128 \begin_layout Plain Layout
36129 CJK
36130 \end_layout
36131
36132 \end_inset
36133 </cell>
36134 <cell alignment="left" valignment="top" usebox="none">
36135 \begin_inset Text
36136
36137 \begin_layout Plain Layout
36138 float
36139 \end_layout
36140
36141 \end_inset
36142 </cell>
36143 <cell alignment="left" valignment="top" usebox="none">
36144 \begin_inset Text
36145
36146 \begin_layout Plain Layout
36147 lyxskak
36148 \end_layout
36149
36150 \end_inset
36151 </cell>
36152 <cell alignment="center" valignment="top" usebox="none">
36153 \begin_inset Text
36154
36155 \begin_layout Plain Layout
36156 pdfcolmk
36157 \end_layout
36158
36159 \end_inset
36160 </cell>
36161 <cell alignment="center" valignment="top" usebox="none">
36162 \begin_inset Text
36163
36164 \begin_layout Plain Layout
36165 setspace
36166 \end_layout
36167
36168 \end_inset
36169 </cell>
36170 <cell alignment="center" valignment="top" usebox="none">
36171 \begin_inset Text
36172
36173 \begin_layout Plain Layout
36174 tipx
36175 \end_layout
36176
36177 \end_inset
36178 </cell>
36179 <cell alignment="center" valignment="top" usebox="none">
36180 \begin_inset Text
36181
36182 \begin_layout Plain Layout
36183 xargs
36184 \end_layout
36185
36186 \end_inset
36187 </cell>
36188 </row>
36189 <row>
36190 <cell alignment="left" valignment="top" usebox="none">
36191 \begin_inset Text
36192
36193 \begin_layout Plain Layout
36194 amsmath
36195 \end_layout
36196
36197 \end_inset
36198 </cell>
36199 <cell alignment="left" valignment="top" usebox="none">
36200 \begin_inset Text
36201
36202 \begin_layout Plain Layout
36203 color
36204 \end_layout
36205
36206 \end_inset
36207 </cell>
36208 <cell alignment="left" valignment="top" usebox="none">
36209 \begin_inset Text
36210
36211 \begin_layout Plain Layout
36212 framed
36213 \end_layout
36214
36215 \end_inset
36216 </cell>
36217 <cell alignment="left" valignment="top" usebox="none">
36218 \begin_inset Text
36219
36220 \begin_layout Plain Layout
36221 makeidx
36222 \end_layout
36223
36224 \end_inset
36225 </cell>
36226 <cell alignment="center" valignment="top" usebox="none">
36227 \begin_inset Text
36228
36229 \begin_layout Plain Layout
36230 pdfpages
36231 \end_layout
36232
36233 \end_inset
36234 </cell>
36235 <cell alignment="center" valignment="top" usebox="none">
36236 \begin_inset Text
36237
36238 \begin_layout Plain Layout
36239 shapepar
36240 \end_layout
36241
36242 \end_inset
36243 </cell>
36244 <cell alignment="center" valignment="top" usebox="none">
36245 \begin_inset Text
36246
36247 \begin_layout Plain Layout
36248 tone
36249 \end_layout
36250
36251 \end_inset
36252 </cell>
36253 <cell alignment="center" valignment="top" usebox="none">
36254 \begin_inset Text
36255
36256 \begin_layout Plain Layout
36257 xcolor
36258 \end_layout
36259
36260 \end_inset
36261 </cell>
36262 </row>
36263 <row>
36264 <cell alignment="left" valignment="top" usebox="none">
36265 \begin_inset Text
36266
36267 \begin_layout Plain Layout
36268 amssymb
36269 \end_layout
36270
36271 \end_inset
36272 </cell>
36273 <cell alignment="left" valignment="top" usebox="none">
36274 \begin_inset Text
36275
36276 \begin_layout Plain Layout
36277 covington
36278 \end_layout
36279
36280 \end_inset
36281 </cell>
36282 <cell alignment="left" valignment="top" usebox="none">
36283 \begin_inset Text
36284
36285 \begin_layout Plain Layout
36286 graphicx
36287 \end_layout
36288
36289 \end_inset
36290 </cell>
36291 <cell alignment="left" valignment="top" usebox="none">
36292 \begin_inset Text
36293
36294 \begin_layout Plain Layout
36295 marvosym
36296 \end_layout
36297
36298 \end_inset
36299 </cell>
36300 <cell alignment="center" valignment="top" usebox="none">
36301 \begin_inset Text
36302
36303 \begin_layout Plain Layout
36304 pifont
36305 \end_layout
36306
36307 \end_inset
36308 </cell>
36309 <cell alignment="center" valignment="top" usebox="none">
36310 \begin_inset Text
36311
36312 \begin_layout Plain Layout
36313 slashed
36314 \end_layout
36315
36316 \end_inset
36317 </cell>
36318 <cell alignment="center" valignment="top" usebox="none">
36319 \begin_inset Text
36320
36321 \begin_layout Plain Layout
36322 txfonts
36323 \end_layout
36324
36325 \end_inset
36326 </cell>
36327 <cell alignment="center" valignment="top" usebox="none">
36328 \begin_inset Text
36329
36330 \begin_layout Plain Layout
36331 xy
36332 \end_layout
36333
36334 \end_inset
36335 </cell>
36336 </row>
36337 <row>
36338 <cell alignment="left" valignment="top" usebox="none">
36339 \begin_inset Text
36340
36341 \begin_layout Plain Layout
36342 amstext
36343 \end_layout
36344
36345 \end_inset
36346 </cell>
36347 <cell alignment="left" valignment="top" usebox="none">
36348 \begin_inset Text
36349
36350 \begin_layout Plain Layout
36351 csquotes
36352 \end_layout
36353
36354 \end_inset
36355 </cell>
36356 <cell alignment="left" valignment="top" usebox="none">
36357 \begin_inset Text
36358
36359 \begin_layout Plain Layout
36360 hhline
36361 \end_layout
36362
36363 \end_inset
36364 </cell>
36365 <cell alignment="left" valignment="top" usebox="none">
36366 \begin_inset Text
36367
36368 \begin_layout Plain Layout
36369 mathdesign
36370 \end_layout
36371
36372 \end_inset
36373 </cell>
36374 <cell alignment="center" valignment="top" usebox="none">
36375 \begin_inset Text
36376
36377 \begin_layout Plain Layout
36378 pmboxdraw
36379 \end_layout
36380
36381 \end_inset
36382 </cell>
36383 <cell alignment="center" valignment="top" usebox="none">
36384 \begin_inset Text
36385
36386 \begin_layout Plain Layout
36387 soul
36388 \end_layout
36389
36390 \end_inset
36391 </cell>
36392 <cell alignment="center" valignment="top" usebox="none">
36393 \begin_inset Text
36394
36395 \begin_layout Plain Layout
36396 ulem
36397 \end_layout
36398
36399 \end_inset
36400 </cell>
36401 <cell alignment="center" valignment="top" usebox="none">
36402 \begin_inset Text
36403
36404 \begin_layout Plain Layout
36405 yhmath
36406 \end_layout
36407
36408 \end_inset
36409 </cell>
36410 </row>
36411 <row>
36412 <cell alignment="left" valignment="top" usebox="none">
36413 \begin_inset Text
36414
36415 \begin_layout Plain Layout
36416 amsthm
36417 \end_layout
36418
36419 \end_inset
36420 </cell>
36421 <cell alignment="left" valignment="top" usebox="none">
36422 \begin_inset Text
36423
36424 \begin_layout Plain Layout
36425 dvipost
36426 \end_layout
36427
36428 \end_inset
36429 </cell>
36430 <cell alignment="left" valignment="top" usebox="none">
36431 \begin_inset Text
36432
36433 \begin_layout Plain Layout
36434 hyperref
36435 \end_layout
36436
36437 \end_inset
36438 </cell>
36439 <cell alignment="left" valignment="top" usebox="none">
36440 \begin_inset Text
36441
36442 \begin_layout Plain Layout
36443 mathdots
36444 \end_layout
36445
36446 \end_inset
36447 </cell>
36448 <cell alignment="center" valignment="top" usebox="none">
36449 \begin_inset Text
36450
36451 \begin_layout Plain Layout
36452 polyglossia
36453 \end_layout
36454
36455 \end_inset
36456 </cell>
36457 <cell alignment="center" valignment="top" usebox="none">
36458 \begin_inset Text
36459
36460 \begin_layout Plain Layout
36461 splitidx
36462 \end_layout
36463
36464 \end_inset
36465 </cell>
36466 <cell alignment="center" valignment="top" usebox="none">
36467 \begin_inset Text
36468
36469 \begin_layout Plain Layout
36470 undertilde
36471 \end_layout
36472
36473 \end_inset
36474 </cell>
36475 <cell alignment="center" valignment="top" usebox="none">
36476 \begin_inset Text
36477
36478 \begin_layout Plain Layout
36479
36480 \end_layout
36481
36482 \end_inset
36483 </cell>
36484 </row>
36485 <row>
36486 <cell alignment="left" valignment="top" usebox="none">
36487 \begin_inset Text
36488
36489 \begin_layout Plain Layout
36490 array
36491 \end_layout
36492
36493 \end_inset
36494 </cell>
36495 <cell alignment="left" valignment="top" usebox="none">
36496 \begin_inset Text
36497
36498 \begin_layout Plain Layout
36499 endnotes
36500 \end_layout
36501
36502 \end_inset
36503 </cell>
36504 <cell alignment="left" valignment="top" usebox="none">
36505 \begin_inset Text
36506
36507 \begin_layout Plain Layout
36508 ifsym
36509 \end_layout
36510
36511 \end_inset
36512 </cell>
36513 <cell alignment="left" valignment="top" usebox="none">
36514 \begin_inset Text
36515
36516 \begin_layout Plain Layout
36517 mathrsfs
36518 \end_layout
36519
36520 \end_inset
36521 </cell>
36522 <cell alignment="center" valignment="top" usebox="none">
36523 \begin_inset Text
36524
36525 \begin_layout Plain Layout
36526 prettyref
36527 \end_layout
36528
36529 \end_inset
36530 </cell>
36531 <cell alignment="center" valignment="top" usebox="none">
36532 \begin_inset Text
36533
36534 \begin_layout Plain Layout
36535 subfig
36536 \end_layout
36537
36538 \end_inset
36539 </cell>
36540 <cell alignment="center" valignment="top" usebox="none">
36541 \begin_inset Text
36542
36543 \begin_layout Plain Layout
36544 units
36545 \end_layout
36546
36547 \end_inset
36548 </cell>
36549 <cell alignment="center" valignment="top" usebox="none">
36550 \begin_inset Text
36551
36552 \begin_layout Plain Layout
36553
36554 \end_layout
36555
36556 \end_inset
36557 </cell>
36558 </row>
36559 <row>
36560 <cell alignment="left" valignment="top" usebox="none">
36561 \begin_inset Text
36562
36563 \begin_layout Plain Layout
36564 ascii
36565 \end_layout
36566
36567 \end_inset
36568 </cell>
36569 <cell alignment="left" valignment="top" usebox="none">
36570 \begin_inset Text
36571
36572 \begin_layout Plain Layout
36573 enumitem
36574 \end_layout
36575
36576 \end_inset
36577 </cell>
36578 <cell alignment="left" valignment="top" usebox="none">
36579 \begin_inset Text
36580
36581 \begin_layout Plain Layout
36582 ifthen
36583 \end_layout
36584
36585 \end_inset
36586 </cell>
36587 <cell alignment="left" valignment="top" usebox="none">
36588 \begin_inset Text
36589
36590 \begin_layout Plain Layout
36591 mhchem
36592 \end_layout
36593
36594 \end_inset
36595 </cell>
36596 <cell alignment="center" valignment="top" usebox="none">
36597 \begin_inset Text
36598
36599 \begin_layout Plain Layout
36600 pxfonts
36601 \end_layout
36602
36603 \end_inset
36604 </cell>
36605 <cell alignment="center" valignment="top" usebox="none">
36606 \begin_inset Text
36607
36608 \begin_layout Plain Layout
36609 subscript
36610 \end_layout
36611
36612 \end_inset
36613 </cell>
36614 <cell alignment="center" valignment="top" usebox="none">
36615 \begin_inset Text
36616
36617 \begin_layout Plain Layout
36618 url
36619 \end_layout
36620
36621 \end_inset
36622 </cell>
36623 <cell alignment="center" valignment="top" usebox="none">
36624 \begin_inset Text
36625
36626 \begin_layout Plain Layout
36627
36628 \end_layout
36629
36630 \end_inset
36631 </cell>
36632 </row>
36633 <row>
36634 <cell alignment="left" valignment="top" usebox="none">
36635 \begin_inset Text
36636
36637 \begin_layout Plain Layout
36638 bbding
36639 \end_layout
36640
36641 \end_inset
36642 </cell>
36643 <cell alignment="left" valignment="top" usebox="none">
36644 \begin_inset Text
36645
36646 \begin_layout Plain Layout
36647 esint
36648 \end_layout
36649
36650 \end_inset
36651 </cell>
36652 <cell alignment="left" valignment="top" usebox="none">
36653 \begin_inset Text
36654
36655 \begin_layout Plain Layout
36656 jurabib
36657 \end_layout
36658
36659 \end_inset
36660 </cell>
36661 <cell alignment="left" valignment="top" usebox="none">
36662 \begin_inset Text
36663
36664 \begin_layout Plain Layout
36665 multicol
36666 \end_layout
36667
36668 \end_inset
36669 </cell>
36670 <cell alignment="center" valignment="top" usebox="none">
36671 \begin_inset Text
36672
36673 \begin_layout Plain Layout
36674 refstyle
36675 \end_layout
36676
36677 \end_inset
36678 </cell>
36679 <cell alignment="center" valignment="top" usebox="none">
36680 \begin_inset Text
36681
36682 \begin_layout Plain Layout
36683 textcomp
36684 \end_layout
36685
36686 \end_inset
36687 </cell>
36688 <cell alignment="center" valignment="top" usebox="none">
36689 \begin_inset Text
36690
36691 \begin_layout Plain Layout
36692 varioref
36693 \end_layout
36694
36695 \end_inset
36696 </cell>
36697 <cell alignment="center" valignment="top" usebox="none">
36698 \begin_inset Text
36699
36700 \begin_layout Plain Layout
36701
36702 \end_layout
36703
36704 \end_inset
36705 </cell>
36706 </row>
36707 <row>
36708 <cell alignment="center" valignment="top" usebox="none">
36709 \begin_inset Text
36710
36711 \begin_layout Plain Layout
36712 bm
36713 \end_layout
36714
36715 \end_inset
36716 </cell>
36717 <cell alignment="center" valignment="top" usebox="none">
36718 \begin_inset Text
36719
36720 \begin_layout Plain Layout
36721 fancybox
36722 \end_layout
36723
36724 \end_inset
36725 </cell>
36726 <cell alignment="center" valignment="top" usebox="none">
36727 \begin_inset Text
36728
36729 \begin_layout Plain Layout
36730 latexsym
36731 \end_layout
36732
36733 \end_inset
36734 </cell>
36735 <cell alignment="center" valignment="top" usebox="none">
36736 \begin_inset Text
36737
36738 \begin_layout Plain Layout
36739 multirow
36740 \end_layout
36741
36742 \end_inset
36743 </cell>
36744 <cell alignment="center" valignment="top" usebox="none">
36745 \begin_inset Text
36746
36747 \begin_layout Plain Layout
36748 rotating
36749 \end_layout
36750
36751 \end_inset
36752 </cell>
36753 <cell alignment="center" valignment="top" usebox="none">
36754 \begin_inset Text
36755
36756 \begin_layout Plain Layout
36757 textgreek
36758 \end_layout
36759
36760 \end_inset
36761 </cell>
36762 <cell alignment="center" valignment="top" usebox="none">
36763 \begin_inset Text
36764
36765 \begin_layout Plain Layout
36766 verbatim
36767 \end_layout
36768
36769 \end_inset
36770 </cell>
36771 <cell alignment="center" valignment="top" usebox="none">
36772 \begin_inset Text
36773
36774 \begin_layout Plain Layout
36775
36776 \end_layout
36777
36778 \end_inset
36779 </cell>
36780 </row>
36781 </lyxtabular>
36782
36783 \end_inset
36784
36785
36786 \end_layout
36787
36788 \begin_layout Chapter
36789 Names of available colors to be used in layouts
36790 \begin_inset CommandInset label
36791 LatexCommand label
36792 name "chap:Names-of-colors"
36793
36794 \end_inset
36795
36796
36797 \end_layout
36798
36799 \begin_layout Standard
36800 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
36801  preferences.
36802 \end_layout
36803
36804 \begin_layout Section
36805 Color functions
36806 \end_layout
36807
36808 \begin_layout Standard
36809 The following are no real colors,
36810  but rather act on color definitions:
36811 \end_layout
36812
36813 \begin_layout Description
36814 ignore The color is ignored
36815 \end_layout
36816
36817 \begin_layout Description
36818 inherit The color is inherited
36819 \end_layout
36820
36821 \begin_layout Description
36822 none
36823 \family roman
36824 \series medium
36825 \shape up
36826 \size normal
36827 \emph off
36828 \bar no
36829 \strikeout off
36830 \uuline off
36831 \uwave off
36832 \noun off
36833 \color none
36834  No particular color – clear or default
36835 \end_layout
36836
36837 \begin_layout Section
36838 Static colors
36839 \end_layout
36840
36841 \begin_layout Standard
36842 These are fixed colors that cannot be customized
36843 \change_inserted -712698321 1607683177
36844 .
36845  Please do 
36846 \emph on
36847 not
36848 \emph default
36849  use these colors in layout definitions,
36850  since they will not work well with some color themes (such as dark themes)
36851 \change_unchanged
36852 :
36853 \end_layout
36854
36855 \begin_layout Description
36856 black
36857 \end_layout
36858
36859 \begin_layout Description
36860 white
36861 \end_layout
36862
36863 \begin_layout Description
36864 blue
36865 \end_layout
36866
36867 \begin_layout Description
36868 brown
36869 \end_layout
36870
36871 \begin_layout Description
36872 cyan
36873 \end_layout
36874
36875 \begin_layout Description
36876 darkgray
36877 \end_layout
36878
36879 \begin_layout Description
36880 gray
36881 \end_layout
36882
36883 \begin_layout Description
36884 green
36885 \end_layout
36886
36887 \begin_layout Description
36888 lightgray
36889 \end_layout
36890
36891 \begin_layout Description
36892 lime
36893 \end_layout
36894
36895 \begin_layout Description
36896 magenta
36897 \end_layout
36898
36899 \begin_layout Description
36900 olive
36901 \end_layout
36902
36903 \begin_layout Description
36904 orange
36905 \end_layout
36906
36907 \begin_layout Description
36908 pink
36909 \end_layout
36910
36911 \begin_layout Description
36912 purple
36913 \end_layout
36914
36915 \begin_layout Description
36916 red
36917 \end_layout
36918
36919 \begin_layout Description
36920 teal
36921 \end_layout
36922
36923 \begin_layout Description
36924 violet
36925 \end_layout
36926
36927 \begin_layout Description
36928 yellow
36929 \end_layout
36930
36931 \begin_layout Section
36932 Dynamic colors
36933 \end_layout
36934
36935 \begin_layout Standard
36936 These are the colors allocated to specific elements in 
36937 \begin_inset Info
36938 type  "menu"
36939 arg   "dialog-show prefs"
36940 \end_inset
36941
36942 :
36943 \end_layout
36944
36945 \begin_layout Description
36946 added_space Added space color
36947 \end_layout
36948
36949 \begin_layout Description
36950 addedtext Added text color
36951 \end_layout
36952
36953 \begin_layout Description
36954 appendix Appendix marker color
36955 \end_layout
36956
36957 \begin_layout Description
36958 background Background color
36959 \change_inserted 5863208 1681507589
36960
36961 \end_layout
36962
36963 \begin_layout Description
36964
36965 \change_inserted 5863208 1681507597
36966 bookmark Bookmark indicator color
36967 \change_unchanged
36968
36969 \end_layout
36970
36971 \begin_layout Description
36972 bottomarea Bottom area color
36973 \end_layout
36974
36975 \begin_layout Description
36976 branchlabel Label color for branches
36977 \end_layout
36978
36979 \begin_layout Description
36980 buttonbg Color used for button background
36981 \end_layout
36982
36983 \begin_layout Description
36984 buttonframe Color for inset button frames
36985 \end_layout
36986
36987 \begin_layout Description
36988 buttonhoverbg Color used for button background under focus
36989 \change_inserted -712698321 1681555554
36990
36991 \end_layout
36992
36993 \begin_layout Description
36994
36995 \change_inserted -712698321 1681555554
36996 buttonhoverbg_broken Color used for broken inset button under focus 
36997 \change_unchanged
36998
36999 \end_layout
37000
37001 \begin_layout Description
37002 changebar Changebar color
37003 \end_layout
37004
37005 \begin_layout Description
37006 changedtextauthor1 Changed text color author 1
37007 \end_layout
37008
37009 \begin_layout Description
37010 changedtextauthor2 Changed text color author 2
37011 \end_layout
37012
37013 \begin_layout Description
37014 changedtextauthor3 Changed text color author 3
37015 \end_layout
37016
37017 \begin_layout Description
37018 changedtextauthor4 Changed text color author 4
37019 \end_layout
37020
37021 \begin_layout Description
37022 changedtextauthor5 Changed text color author 5
37023 \change_inserted 5863208 1681507402
37024
37025 \end_layout
37026
37027 \begin_layout Description
37028
37029 \change_inserted 5863208 1681507414
37030 changedtextcomparison Changed text color document comparison (workarea)
37031 \change_unchanged
37032
37033 \end_layout
37034
37035 \begin_layout Description
37036 collapsible Collapsible insets text color
37037 \end_layout
37038
37039 \begin_layout Description
37040 collapsibleframe Collapsible insets framecolor
37041 \end_layout
37042
37043 \begin_layout Description
37044 command Text color for command insets
37045 \end_layout
37046
37047 \begin_layout Description
37048 commandbg Background color for command insets
37049 \end_layout
37050
37051 \begin_layout Description
37052 commandframe Frame color for command insets
37053 \change_inserted 5863208 1681507735
37054
37055 \end_layout
37056
37057 \begin_layout Description
37058
37059 \change_inserted 5863208 1681507880
37060 command_broken Text color for broken
37061 \change_inserted -712698321 1681555620
37062  
37063 \change_inserted 5863208 1681507880
37064 (
37065 \change_deleted -712698321 1681555620
37066 -
37067 \change_inserted 5863208 1681507880
37068 reference) insets 
37069 \end_layout
37070
37071 \begin_layout Description
37072
37073 \change_inserted 5863208 1681507827
37074 commandbg_broken Background color for broken insets
37075 \end_layout
37076
37077 \begin_layout Description
37078
37079 \change_inserted 5863208 1681507835
37080 commandframe_broken Frame color for broken insets 
37081 \end_layout
37082
37083 \begin_layout Description
37084
37085 \change_deleted -712698321 1681555548
37086 buttonhoverbg_broken Color used for broken inset button under focus 
37087 \change_unchanged
37088
37089 \end_layout
37090
37091 \begin_layout Description
37092 comment Label color for comments
37093 \end_layout
37094
37095 \begin_layout Description
37096 commentbg Background color of comments
37097 \end_layout
37098
37099 \begin_layout Description
37100 cursor Cursor color
37101 \end_layout
37102
37103 \begin_layout Description
37104 deletedtext Deleted text color
37105 \end_layout
37106
37107 \begin_layout Description
37108 deletedtextmodifier Deleted text modifying color
37109 \change_inserted 5863208 1681507525
37110  (for adjusting the 
37111 \change_deleted -712698321 1681555611
37112 brightnes
37113 \change_inserted -712698321 1681555611
37114 brightness
37115 \change_inserted 5863208 1681507525
37116 )
37117 \change_unchanged
37118
37119 \end_layout
37120
37121 \begin_layout Description
37122 depthbar Color for the depth bars in the margin
37123 \end_layout
37124
37125 \begin_layout Description
37126 eolmarker End of line marker color
37127 \end_layout
37128
37129 \begin_layout Description
37130 error Color of the \SpecialChar LaTeX
37131  error box
37132 \end_layout
37133
37134 \begin_layout Description
37135 footlabel Label color for footnotes
37136 \end_layout
37137
37138 \begin_layout Description
37139 foreground Foreground color
37140 \end_layout
37141
37142 \begin_layout Description
37143 graphicsbg Graphics inset background color
37144 \end_layout
37145
37146 \begin_layout Description
37147 greyedoutbg Background color of greyedout inset
37148 \end_layout
37149
37150 \begin_layout Description
37151 greyedoutlabel Label color for greyedout insets
37152 \end_layout
37153
37154 \begin_layout Description
37155 greyedouttext Color for greyedout inset text
37156 \end_layout
37157
37158 \begin_layout Description
37159 indexlabel Label color for index insets
37160 \end_layout
37161
37162 \begin_layout Description
37163 inlinecompletion Inline completion color
37164 \end_layout
37165
37166 \begin_layout Description
37167 insetbg Inset marker background color
37168 \end_layout
37169
37170 \begin_layout Description
37171 insetframe Inset marker frame color
37172 \end_layout
37173
37174 \begin_layout Description
37175 language Color for marking foreign language words
37176 \end_layout
37177
37178 \begin_layout Description
37179 latex Text color in \SpecialChar LaTeX
37180  mode
37181 \end_layout
37182
37183 \begin_layout Description
37184 listingsbg Background color of listings inset
37185 \end_layout
37186
37187 \begin_layout Description
37188 marginlabel Label color for margin notes
37189 \end_layout
37190
37191 \begin_layout Description
37192 math Math inset text color
37193 \end_layout
37194
37195 \begin_layout Description
37196 mathbg Math inset background color
37197 \end_layout
37198
37199 \begin_layout Description
37200 mathcorners Math inset frame color not under focus
37201 \end_layout
37202
37203 \begin_layout Description
37204 mathframe Math inset frame color under focus
37205 \end_layout
37206
37207 \begin_layout Description
37208 mathline Math line color
37209 \end_layout
37210
37211 \begin_layout Description
37212 mathmacrobg Macro math inset background color
37213 \end_layout
37214
37215 \begin_layout Description
37216 mathmacroblend Macro math blended color
37217 \end_layout
37218
37219 \begin_layout Description
37220 mathmacroframe Macro math frame color
37221 \end_layout
37222
37223 \begin_layout Description
37224 mathmacrohoverbg Macro math inset background color hovered
37225 \end_layout
37226
37227 \begin_layout Description
37228 mathmacrolabel Macro math label color
37229 \end_layout
37230
37231 \begin_layout Description
37232 mathmacronewarg Macro template color for new parameters
37233 \end_layout
37234
37235 \begin_layout Description
37236 mathmacrooldarg Macro template color for old parameters
37237 \end_layout
37238
37239 \begin_layout Description
37240 newpage New page color
37241 \end_layout
37242
37243 \begin_layout Description
37244 nonunique_inlinecompletion Inline completion color for the non-unique part
37245 \end_layout
37246
37247 \begin_layout Description
37248 note Label color for notes
37249 \end_layout
37250
37251 \begin_layout Description
37252 notebg Background color of notes
37253 \end_layout
37254
37255 \begin_layout Description
37256 pagebreak Page break/line break color
37257 \end_layout
37258
37259 \begin_layout Description
37260 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
37261 \end_layout
37262
37263 \begin_layout Description
37264 phantomtext Text color for phantom insets
37265 \end_layout
37266
37267 \begin_layout Description
37268 preview The color used for previews
37269 \end_layout
37270
37271 \begin_layout Description
37272 previewframe Preview frame color
37273 \end_layout
37274
37275 \begin_layout Description
37276 regexpframe Color for regexp frame
37277 \end_layout
37278
37279 \begin_layout Description
37280 scroll Color that indicates when a row can be scrolled 
37281 \end_layout
37282
37283 \begin_layout Description
37284 selection Background color of selected text
37285 \end_layout
37286
37287 \begin_layout Description
37288 selectiontext Foreground color of selected text
37289 \end_layout
37290
37291 \begin_layout Description
37292 shadedbg Background color of shaded box
37293 \end_layout
37294
37295 \begin_layout Description
37296 special Special chars text color
37297 \end_layout
37298
37299 \begin_layout Description
37300 tabularline Table line color
37301 \end_layout
37302
37303 \begin_layout Description
37304 tabularonoffline Table line color
37305 \change_inserted -712698321 1607682522
37306
37307 \end_layout
37308
37309 \begin_layout Description
37310
37311 \change_inserted -712698321 1607682563
37312 textlabel1 Color 1 of layout and custom inset labels
37313 \end_layout
37314
37315 \begin_layout Description
37316
37317 \change_inserted -712698321 1607682565
37318 textlabel2 Color 2 of layout and custom inset labels
37319 \end_layout
37320
37321 \begin_layout Description
37322
37323 \change_inserted -712698321 1607682568
37324 textlabel3 Color 3 of layout and custom inset labels
37325 \change_unchanged
37326
37327 \end_layout
37328
37329 \begin_layout Description
37330 urllabel Label color for URL insets
37331 \end_layout
37332
37333 \begin_layout Description
37334 urltext Color for URL inset text
37335 \end_layout
37336
37337 \end_body
37338 \end_document