]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
ab17836c211c2c264eee3b9d552c022d5d8b7a4a
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 620
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_formatted_ref 0
107 \use_minted 0
108 \use_lineno 0
109 \notefontcolor #0000ff
110 \branch OutDated
111 \selected 0
112 \filename_suffix 0
113 \color #f5fae7 #0a0518
114 \end_branch
115 \index Index
116 \shortcut idx
117 \color #008000
118 \end_index
119 \secnumdepth 3
120 \tocdepth 3
121 \paragraph_separation indent
122 \paragraph_indentation default
123 \is_math_indent 1
124 \math_indentation default
125 \math_numbering_side default
126 \quotes_style english
127 \dynamic_quotes 0
128 \papercolumns 1
129 \papersides 2
130 \paperpagestyle headings
131 \tablestyle default
132 \tracking_changes true
133 \output_changes false
134 \change_bars false
135 \postpone_fragile_content false
136 \html_math_output 0
137 \html_css_as_file 0
138 \html_be_strict true
139 \docbook_table_output 0
140 \docbook_mathml_prefix 1
141 \author -970929547 "Thibaut Cuvelier"
142 \author -712698321 "Jürgen Spitzmüller"
143 \author -584632292 "Richard Kimberly Heck"
144 \author -495245474 "Jean-Marc Lasgouttes"
145 \author 177693 "x"
146 \author 5863208 "ab"
147 \author 34634807 "Jean-Pierre"
148 \author 47243155 "Jean-Marc"
149 \author 193502281 "pc1"
150 \author 232239728 "Owner"
151 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
152 \author 1075283030 "Thibaut"
153 \end_header
154
155 \begin_body
156
157 \begin_layout Title
158 Customizing \SpecialChar LyX
159 :
160  Features for the Advanced User
161 \end_layout
162
163 \begin_layout Author
164 by the \SpecialChar LyX
165  Team
166 \begin_inset Foot
167 status collapsed
168
169 \begin_layout Plain Layout
170 If you have comments or error corrections,
171  please send them to the \SpecialChar LyX
172  Documentation mailing list,
173  
174 \begin_inset CommandInset href
175 LatexCommand href
176 target "lyx-docs@lists.lyx.org"
177 type "mailto:"
178 literal "false"
179
180 \end_inset
181
182 .
183  Include 
184 \begin_inset Quotes eld
185 \end_inset
186
187 [Customization]
188 \begin_inset Quotes erd
189 \end_inset
190
191  in the subject header,
192  and please cc the current maintainer of this file,
193  Richard 
194 \change_inserted 5863208 1604930692
195 Kimberly 
196 \change_unchanged
197 Heck <
198 \change_inserted 5863208 1604930729
199 rikiheck@lyx.org
200 \change_deleted 5863208 1604930668
201 rikiheck@lyx.org
202 \change_unchanged
203 >.
204 \end_layout
205
206 \end_inset
207
208
209 \begin_inset Newline newline
210 \end_inset
211
212
213 \begin_inset Newline newline
214 \end_inset
215
216 Version 2.4.x
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset CommandInset toc
221 LatexCommand tableofcontents
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Standard
229 \begin_inset Note Note
230 status open
231
232 \begin_layout Plain Layout
233 Please use change tracking when modifying this document.
234  This makes it easier for our translators to recognize things that have been changed,
235  and it helps the maintainer keep up-to-date with what's been done.
236 \end_layout
237
238 \end_inset
239
240
241 \end_layout
242
243 \begin_layout Chapter
244 Introduction
245 \end_layout
246
247 \begin_layout Standard
248 This manual covers the customization features present in \SpecialChar LyX
249 .
250  In it,
251  we discuss issues like keyboard shortcuts,
252  screen previewing options,
253  printer options,
254  sending commands to \SpecialChar LyX
255  via the \SpecialChar LyX
256  Server,
257  internationalization,
258  installing new \SpecialChar LaTeX
259  classes and \SpecialChar LyX
260  layouts,
261  etc.
262  We can't possibly hope to touch on everything you can change—
263 our developers add new features faster than we can document them—
264 but we will explain the most common customizations and hopefully point you in the right direction for some of the more obscure ones.
265 \end_layout
266
267 \begin_layout Standard
268 \begin_inset Branch OutDated
269 inverted 0
270 status collapsed
271
272 \begin_layout Standard
273 Information from previous versions of this document that now seems to be outdated is contained in the OutDated branch of this document.
274  By default,
275  this information will not appear in the \SpecialChar LaTeX
276  output.
277 \end_layout
278
279 \end_inset
280
281
282 \end_layout
283
284 \begin_layout Chapter
285 \SpecialChar LyX
286  configuration files
287 \end_layout
288
289 \begin_layout Standard
290 This chapter aims to help you to find your way through the \SpecialChar LyX
291  configuration files.
292  Before continuing to read this chapter,
293  you should find out where your \SpecialChar LyX
294  
295 \change_deleted -712698321 1693046672
296 library
297 \change_inserted -712698321 1693046674
298 system
299 \change_unchanged
300  and user directories are by using 
301 \begin_inset Flex Noun
302 status collapsed
303
304 \begin_layout Plain Layout
305 Help\SpecialChar menuseparator
306 About
307 \begin_inset space ~
308 \end_inset
309
310 LyX
311 \end_layout
312
313 \end_inset
314
315 .
316  The 
317 \change_deleted -712698321 1693046679
318 library
319 \change_inserted -712698321 1693046679
320 system
321 \change_unchanged
322  directory is the place where \SpecialChar LyX
323  places its system-wide configuration files;
324  the user directory is where you can place your modified versions.
325  We will call the former 
326 \begin_inset Flex Code
327 status collapsed
328
329 \begin_layout Plain Layout
330 LyXDir
331 \end_layout
332
333 \end_inset
334
335  and the latter 
336 \begin_inset Flex Noun
337 status collapsed
338
339 \begin_layout Plain Layout
340 UserDir
341 \end_layout
342
343 \end_inset
344
345  in the remainder of this document.
346  
347 \end_layout
348
349 \begin_layout Section
350 What's in 
351 \begin_inset Flex Code
352 status collapsed
353
354 \begin_layout Plain Layout
355 LyXDir
356 \end_layout
357
358 \end_inset
359
360 ?
361 \end_layout
362
363 \begin_layout Standard
364 \begin_inset Flex Code
365 status collapsed
366
367 \begin_layout Plain Layout
368 LyXDir
369 \end_layout
370
371 \end_inset
372
373  and its sub-directories contain a number of files 
374 \change_deleted 232239728 1604787780
375 and
376 \change_unchanged
377  that can be used to customize \SpecialChar LyX
378 's behavior.
379  You can change many of these files from within \SpecialChar LyX
380  itself through the 
381 \begin_inset Flex Noun
382 status collapsed
383
384 \begin_layout Plain Layout
385 Tools\SpecialChar menuseparator
386 Preferences
387 \end_layout
388
389 \end_inset
390
391  dialog.
392  Most customization that you will want to do in \SpecialChar LyX
393  is possible through this dialog.
394  However,
395  many other inner aspects of \SpecialChar LyX
396  can be customized by modifying the files in 
397 \begin_inset Flex Code
398 status collapsed
399
400 \begin_layout Plain Layout
401 LyXDir
402 \end_layout
403
404 \end_inset
405
406 .
407  These files fall in different categories,
408  described in the following subsections.
409 \end_layout
410
411 \begin_layout Subsection
412 Automatically generated files
413 \end_layout
414
415 \begin_layout Standard
416 The files found in 
417 \begin_inset Flex Noun
418 status collapsed
419
420 \begin_layout Plain Layout
421 UserDir
422 \end_layout
423
424 \end_inset
425
426  are generated when you configure \SpecialChar LyX
427 .
428  They contain various default values that are 
429 \change_inserted 5863208 1604919565
430 automatically detected during reconfiguration.
431 \change_deleted 232239728 1604788241
432 guessed by inspection
433 \change_unchanged
434  In general,
435  it is not a good idea to modify them,
436  since they might be overwritten at any time.
437 \end_layout
438
439 \begin_layout Labeling
440 \labelwidthstring 00.00.0000
441 \begin_inset Flex Code
442 status collapsed
443
444 \begin_layout Plain Layout
445 lyxrc.defaults
446 \end_layout
447
448 \end_inset
449
450  
451 \change_deleted 5863208 1604919950
452
453 \begin_inset Note Note
454 status collapsed
455
456 \begin_layout Plain Layout
457
458 \change_inserted 232239728 1604853928
459 I capitalized the first word in all of these lists.
460  To me it looks better but it really is a stylistic thing,
461  your call.
462  However if you are not going to capitalize them,
463  the english in some needs to be modified to make it read correctly as a sentence.
464 \change_unchanged
465
466 \end_layout
467
468 \end_inset
469
470
471 \change_deleted 232239728 1604853510
472 c
473 \change_inserted 232239728 1604853510
474 C
475 \change_unchanged
476 ontains defaults for various commands.
477 \end_layout
478
479 \begin_layout Labeling
480 \labelwidthstring 00.00.0000
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 packages.lst
486 \end_layout
487
488 \end_inset
489
490  
491 \change_deleted 232239728 1604853512
492 c
493 \change_inserted 232239728 1604853512
494 C
495 \change_unchanged
496 ontains the list of packages that have been recognized by \SpecialChar LyX
497 .
498  It is currently unused by the \SpecialChar LyX
499  program itself,
500  but the information extracted,
501  and more,
502  is made available with 
503 \begin_inset Flex Noun
504 status collapsed
505
506 \begin_layout Plain Layout
507 Help\SpecialChar menuseparator
508 \SpecialChar LaTeX
509
510 \begin_inset space ~
511 \end_inset
512
513 Configuration
514 \end_layout
515
516 \end_inset
517
518 .
519 \end_layout
520
521 \begin_layout Labeling
522 \labelwidthstring 00.00.0000
523 \begin_inset Flex Code
524 status collapsed
525
526 \begin_layout Plain Layout
527 textclass.lst
528 \end_layout
529
530 \end_inset
531
532  
533 \change_deleted 232239728 1604853515
534 t
535 \change_inserted 232239728 1604853515
536 T
537 \change_unchanged
538 he list of text classes that have been found in your 
539 \begin_inset Flex Code
540 status collapsed
541
542 \begin_layout Plain Layout
543 layout/
544 \end_layout
545
546 \end_inset
547
548  directories,
549  along with the associated \SpecialChar LaTeX
550  document class and their description.
551 \end_layout
552
553 \begin_layout Labeling
554 \labelwidthstring 00.00.0000
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 lyxmodules.lst
560 \end_layout
561
562 \end_inset
563
564  
565 \change_deleted 232239728 1604853518
566 t
567 \change_inserted 232239728 1604853518
568 T
569 \change_unchanged
570 he list of layout modules found in your 
571 \begin_inset Flex Code
572 status collapsed
573
574 \begin_layout Plain Layout
575 layout/
576 \end_layout
577
578 \end_inset
579
580  directories
581 \end_layout
582
583 \begin_layout Labeling
584 \labelwidthstring 00.00.0000
585 \begin_inset Flex Code
586 status open
587
588 \begin_layout Plain Layout
589 *files.lst
590 \end_layout
591
592 \end_inset
593
594  
595 \change_deleted 232239728 1604853523
596 l
597 \change_inserted 232239728 1604853523
598 L
599 \change_unchanged
600 ists of various sorts of \SpecialChar LaTeX
601 -related files found on your system
602 \end_layout
603
604 \begin_layout Labeling
605 \labelwidthstring 00.00.0000
606 \begin_inset Flex Code
607 status open
608
609 \begin_layout Plain Layout
610 doc/\SpecialChar LaTeX
611 Config.lyx
612 \end_layout
613
614 \end_inset
615
616  is automatically generated during configuration from the file 
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621 \SpecialChar LaTeX
622 Config.lyx.in
623 \end_layout
624
625 \end_inset
626
627 .
628  It contains information on your \SpecialChar LaTeX
629  configuration.
630 \end_layout
631
632 \begin_layout Subsection
633 Directories
634 \end_layout
635
636 \begin_layout Standard
637 The
638 \change_deleted 5863208 1604928729
639 se
640 \change_unchanged
641  
642 \change_inserted 5863208 1604928636
643 following 
644 \change_unchanged
645 directories 
646 \change_inserted 5863208 1604928661
647 in 
648 \change_unchanged
649
650 \begin_inset Flex Code
651 status collapsed
652
653 \begin_layout Plain Layout
654 LyXDir
655 \end_layout
656
657 \end_inset
658
659
660 \change_inserted 5863208 1604928662
661  can be
662 \change_deleted 5863208 1604928642
663 are
664 \change_unchanged
665  duplicated 
666 \change_deleted 5863208 1604928669
667 between 
668 \begin_inset Flex Code
669 status collapsed
670
671 \begin_layout Plain Layout
672 LyXDir
673 \end_layout
674
675 \end_inset
676
677  and
678 \change_inserted 5863208 1604928680
679 in
680 \change_unchanged
681  
682 \begin_inset Flex Code
683 status collapsed
684
685 \begin_layout Plain Layout
686 UserDir
687 \end_layout
688
689 \end_inset
690
691 .
692  If a particular file
693 \change_deleted 232239728 1604794430
694 s
695 \change_unchanged
696  exists in both places,
697  the one in 
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 UserDir
703 \end_layout
704
705 \end_inset
706
707  will be used.
708 \end_layout
709
710 \begin_layout Labeling
711 \labelwidthstring 00.00.0000
712 \begin_inset Flex Code
713 status collapsed
714
715 \begin_layout Plain Layout
716 bind/
717 \end_layout
718
719 \end_inset
720
721  
722 \change_deleted 232239728 1604794460
723 t
724 \change_inserted 232239728 1604794460
725 T
726 \change_unchanged
727 his directory contains files with the extension 
728 \begin_inset Flex Code
729 status collapsed
730
731 \begin_layout Plain Layout
732 .bind
733 \end_layout
734
735 \end_inset
736
737  that define the keybindings used in \SpecialChar LyX
738 .
739  If there exists an internationalized version of the bind file 
740 \change_inserted -712698321 1669371749
741 in a subdirectory 
742 \change_deleted -712698321 1669371727
743 named 
744 \begin_inset Flex Code
745 status collapsed
746
747 \begin_layout Plain Layout
748 $LANG_xxx.bind
749 \end_layout
750
751 \end_inset
752
753
754 \change_inserted -712698321 1669371728
755
756 \begin_inset Flex Code
757 status collapsed
758
759 \begin_layout Plain Layout
760
761 \change_inserted -712698321 1669371732
762 bind/xx
763 \change_unchanged
764
765 \end_layout
766
767 \end_inset
768
769  where 
770 \begin_inset Quotes eld
771 \end_inset
772
773 xx
774 \begin_inset Quotes erd
775 \end_inset
776
777  is the ISO language code
778 \change_unchanged
779 ,
780  that will be used first.
781 \end_layout
782
783 \begin_layout Labeling
784 \labelwidthstring 00.00.0000
785 \begin_inset Flex Code
786 status collapsed
787
788 \begin_layout Plain Layout
789 citeengines/
790 \end_layout
791
792 \end_inset
793
794  
795 \change_deleted 232239728 1604794478
796 c
797 \change_inserted 232239728 1604794478
798 C
799 \change_unchanged
800 ontains files with the extension 
801 \begin_inset Flex Code
802 status collapsed
803
804 \begin_layout Plain Layout
805 .citeengine
806 \end_layout
807
808 \end_inset
809
810  which define the diverse citation possibilities (natbib,
811  biblatex etc.).
812  See 
813 \begin_inset CommandInset ref
814 LatexCommand ref
815 reference "subsec:Cite-Engine-Files"
816 plural "false"
817 caps "false"
818 noprefix "false"
819 nolink "false"
820
821 \end_inset
822
823  for details.
824 \end_layout
825
826 \begin_layout Labeling
827 \labelwidthstring 00.00.0000
828 \begin_inset Flex Code
829 status collapsed
830
831 \begin_layout Plain Layout
832 clipart/
833 \end_layout
834
835 \end_inset
836
837  
838 \change_deleted 232239728 1604794483
839 c
840 \change_inserted 232239728 1604794486
841 C
842 \change_unchanged
843 ontains graphics files that can be included in documents.
844  
845 \end_layout
846
847 \begin_layout Labeling
848 \labelwidthstring 00.00.0000
849 \begin_inset Flex Code
850 status collapsed
851
852 \begin_layout Plain Layout
853 doc/
854 \end_layout
855
856 \end_inset
857
858  
859 \change_deleted 232239728 1604794492
860 c
861 \change_inserted 232239728 1604794492
862 C
863 \change_unchanged
864 ontains \SpecialChar LyX
865  documentation files (including the one you are currently reading).
866  The file 
867 \begin_inset Flex Code
868 status collapsed
869
870 \begin_layout Plain Layout
871
872 \change_deleted 232239728 1604794660
873 \SpecialChar LaTeX
874
875 \change_inserted 232239728 1604794661
876 LaTex
877 \change_unchanged
878 Config.lyx
879 \end_layout
880
881 \end_inset
882
883  deserves special attention,
884  as noted above.
885  The internationalized help docs are in subdirectories 
886 \begin_inset Flex Code
887 status collapsed
888
889 \begin_layout Plain Layout
890 doc/xx
891 \end_layout
892
893 \end_inset
894
895  where 
896 \begin_inset Quotes eld
897 \end_inset
898
899 xx
900 \begin_inset Quotes erd
901 \end_inset
902
903  is the ISO language code.
904  See 
905 \begin_inset CommandInset ref
906 LatexCommand ref
907 reference "cha:Internationalizing-LyX"
908 nolink "false"
909
910 \end_inset
911
912  for details.
913 \end_layout
914
915 \begin_layout Labeling
916 \labelwidthstring 00.00.0000
917 \begin_inset Flex Code
918 status collapsed
919
920 \begin_layout Plain Layout
921 examples/
922 \end_layout
923
924 \end_inset
925
926  
927 \change_deleted 232239728 1604794497
928 c
929 \change_inserted 232239728 1604794497
930 C
931 \change_unchanged
932 ontains example files that explain how to use some features.
933  In the file browser,
934  press the 
935 \begin_inset Flex Noun
936 status collapsed
937
938 \begin_layout Plain Layout
939 Examples
940 \end_layout
941
942 \end_inset
943
944  button to get there.
945 \end_layout
946
947 \begin_layout Labeling
948 \labelwidthstring 00.00.0000
949 \begin_inset Flex Code
950 status collapsed
951
952 \begin_layout Plain Layout
953 images/
954 \end_layout
955
956 \end_inset
957
958  
959 \change_deleted 232239728 1604794500
960 c
961 \change_inserted 232239728 1604794500
962 C
963 \change_unchanged
964 ontains image files that are used by the 
965 \begin_inset Flex Noun
966 status collapsed
967
968 \begin_layout Plain Layout
969 Document
970 \end_layout
971
972 \end_inset
973
974  dialog.
975  In addition,
976  it also contains the individual icons used in the toolbar and the banners that can be shown when \SpecialChar LyX
977  is launched.
978 \end_layout
979
980 \begin_layout Labeling
981 \labelwidthstring 00.00.0000
982 \begin_inset Flex Code
983 status collapsed
984
985 \begin_layout Plain Layout
986 kbd/
987 \end_layout
988
989 \end_inset
990
991  
992 \change_deleted 232239728 1604794505
993 c
994 \change_inserted 232239728 1604794505
995 C
996 \change_unchanged
997 ontains keyboard keymapping files.
998  See 
999 \begin_inset CommandInset ref
1000 LatexCommand ref
1001 reference "sec:International-Keymap-Stuff"
1002 nolink "false"
1003
1004 \end_inset
1005
1006  for details.
1007 \end_layout
1008
1009 \begin_layout Labeling
1010 \labelwidthstring 00.00.0000
1011 \begin_inset Flex Code
1012 status collapsed
1013
1014 \begin_layout Plain Layout
1015 layouts/
1016 \end_layout
1017
1018 \end_inset
1019
1020  
1021 \change_deleted 232239728 1604794508
1022 c
1023 \change_inserted 232239728 1604794508
1024 C
1025 \change_unchanged
1026 ontains the text class and module files described in 
1027 \begin_inset CommandInset ref
1028 LatexCommand ref
1029 reference "cha:Installing-New-Document"
1030 nolink "false"
1031
1032 \end_inset
1033
1034 .
1035 \end_layout
1036
1037 \begin_layout Labeling
1038 \labelwidthstring 00.00.0000
1039 \begin_inset Flex Code
1040 status collapsed
1041
1042 \begin_layout Plain Layout
1043 lyx2lyx
1044 \end_layout
1045
1046 \end_inset
1047
1048  
1049 \change_deleted 232239728 1604794513
1050 c
1051 \change_inserted 232239728 1604794513
1052 C
1053 \change_unchanged
1054 ontains the 
1055 \begin_inset Flex Code
1056 status collapsed
1057
1058 \begin_layout Plain Layout
1059 lyx2lyx
1060 \end_layout
1061
1062 \end_inset
1063
1064  Python scripts used to convert between \SpecialChar LyX
1065  versions.
1066  These can be run from the command line if
1067 \change_deleted 232239728 1604794749
1068 ,
1069  say,
1070
1071 \change_unchanged
1072  you want to batch-convert files.
1073 \end_layout
1074
1075 \begin_layout Labeling
1076 \labelwidthstring 00.00.0000
1077 \begin_inset Flex Code
1078 status collapsed
1079
1080 \begin_layout Plain Layout
1081 scripts/
1082 \end_layout
1083
1084 \end_inset
1085
1086  
1087 \change_deleted 232239728 1604794516
1088 c
1089 \change_inserted 232239728 1604794516
1090 C
1091 \change_unchanged
1092 ontains some files that demonstrate the capabilities of the 
1093 \begin_inset Flex Noun
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097 External
1098 \begin_inset space ~
1099 \end_inset
1100
1101 Template
1102 \end_layout
1103
1104 \end_inset
1105
1106  feature.
1107  Also contains some scripts used by \SpecialChar LyX
1108  itself.
1109 \end_layout
1110
1111 \begin_layout Labeling
1112 \labelwidthstring 00.00.0000
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 templates/
1118 \end_layout
1119
1120 \end_inset
1121
1122  
1123 \change_deleted 232239728 1604794520
1124 c
1125 \change_inserted 232239728 1604794520
1126 C
1127 \change_unchanged
1128 ontains the standard \SpecialChar LyX
1129  template files described in 
1130 \begin_inset CommandInset ref
1131 LatexCommand ref
1132 reference "subsec:Creating-Templates"
1133 nolink "false"
1134
1135 \end_inset
1136
1137 .
1138 \end_layout
1139
1140 \begin_layout Labeling
1141 \labelwidthstring 00.00.0000
1142 \begin_inset Flex Code
1143 status collapsed
1144
1145 \begin_layout Plain Layout
1146 ui/
1147 \end_layout
1148
1149 \end_inset
1150
1151  
1152 \change_deleted 232239728 1604794524
1153 c
1154 \change_inserted 232239728 1604794524
1155 C
1156 \change_unchanged
1157 ontains files with the extension 
1158 \begin_inset Flex Code
1159 status collapsed
1160
1161 \begin_layout Plain Layout
1162 .ui
1163 \end_layout
1164
1165 \end_inset
1166
1167  that define the user interface to \SpecialChar LyX
1168 .
1169  That is,
1170  the files define which items appear in which menus and the items appearing on the toolbar.
1171 \end_layout
1172
1173 \begin_layout Labeling
1174 \labelwidthstring 00.00.0000
1175 \begin_inset Flex Code
1176 status collapsed
1177
1178 \begin_layout Plain Layout
1179 xtemplates/
1180 \end_layout
1181
1182 \end_inset
1183
1184  
1185 \change_deleted 232239728 1604794528
1186 c
1187 \change_inserted 232239728 1604794528
1188 C
1189 \change_unchanged
1190 ontains files with the extension 
1191 \begin_inset Flex Code
1192 status collapsed
1193
1194 \begin_layout Plain Layout
1195 .xtemplate
1196 \end_layout
1197
1198 \end_inset
1199
1200  which define the templates for the insertion of external material to a \SpecialChar LyX
1201  document;
1202  see 
1203 \begin_inset CommandInset ref
1204 LatexCommand ref
1205 reference "chap:Including-External-Material"
1206 nolink "false"
1207
1208 \end_inset
1209
1210 .
1211 \end_layout
1212
1213 \begin_layout Subsection
1214 Files you don't want to modify
1215 \end_layout
1216
1217 \begin_layout Standard
1218 These files are used internally by \SpecialChar LyX
1219  and you generally do not need to modify them unless you are a developer.
1220 \end_layout
1221
1222 \begin_layout Labeling
1223 \labelwidthstring 00.00.0000
1224 \begin_inset Flex Code
1225 status collapsed
1226
1227 \begin_layout Plain Layout
1228 CREDITS
1229 \end_layout
1230
1231 \end_inset
1232
1233  
1234 \change_deleted 232239728 1604797616
1235 t
1236 \change_inserted 232239728 1604797616
1237 T
1238 \change_unchanged
1239 his file contains the list of \SpecialChar LyX
1240  developers.
1241  The contents are displayed with the menu entry 
1242 \begin_inset Flex Noun
1243 status collapsed
1244
1245 \begin_layout Plain Layout
1246 Help\SpecialChar menuseparator
1247 About
1248 \begin_inset space ~
1249 \end_inset
1250
1251 LyX
1252 \end_layout
1253
1254 \end_inset
1255
1256 .
1257 \end_layout
1258
1259 \begin_layout Labeling
1260 \labelwidthstring 00.00.0000
1261 \begin_inset Flex Code
1262 status collapsed
1263
1264 \begin_layout Plain Layout
1265 chkconfig.ltx
1266 \end_layout
1267
1268 \end_inset
1269
1270  
1271 \change_deleted 232239728 1604797620
1272 t
1273 \change_inserted 232239728 1604797620
1274 T
1275 \change_unchanged
1276 his is a \SpecialChar LaTeX
1277  script used during the configuration process.
1278  Do not run directly.
1279 \end_layout
1280
1281 \begin_layout Labeling
1282 \labelwidthstring 00.00.0000
1283 \begin_inset Flex Code
1284 status collapsed
1285
1286 \begin_layout Plain Layout
1287 configure.py
1288 \end_layout
1289
1290 \end_inset
1291
1292  
1293 \change_deleted 232239728 1604797624
1294 t
1295 \change_inserted 232239728 1604797624
1296 T
1297 \change_unchanged
1298 his is a Python script that is used to re-configure \SpecialChar LyX
1299 .
1300  It creates configuration files in the directory it was run from.
1301 \end_layout
1302
1303 \begin_layout Subsection
1304 Other files needing a line or two
1305 \end_layout
1306
1307 \begin_layout Labeling
1308 \labelwidthstring 00.00.0000
1309 \begin_inset Flex Code
1310 status collapsed
1311
1312 \begin_layout Plain Layout
1313 encodings
1314 \end_layout
1315
1316 \end_inset
1317
1318  
1319 \change_deleted 232239728 1604797580
1320 t
1321 \change_inserted 232239728 1604797580
1322 T
1323 \change_unchanged
1324 his contains tables describing how different character encodings can be mapped to Unicode
1325 \end_layout
1326
1327 \begin_layout Labeling
1328 \labelwidthstring 00.00.0000
1329 \begin_inset Flex Code
1330 status collapsed
1331
1332 \begin_layout Plain Layout
1333 languages
1334 \end_layout
1335
1336 \end_inset
1337
1338  
1339 \change_deleted 232239728 1604797584
1340 t
1341 \change_inserted 232239728 1604797584
1342 T
1343 \change_unchanged
1344 his file contains a list of all the languages currently supported by \SpecialChar LyX
1345 .
1346 \end_layout
1347
1348 \begin_layout Labeling
1349 \labelwidthstring 00.00.0000
1350 \begin_inset Flex Code
1351 status collapsed
1352
1353 \begin_layout Plain Layout
1354 latexfonts
1355 \end_layout
1356
1357 \end_inset
1358
1359  
1360 \change_deleted 232239728 1604797587
1361 c
1362 \change_inserted 232239728 1604797587
1363 C
1364 \change_unchanged
1365 ontains information about the supported fonts.
1366 \end_layout
1367
1368 \begin_layout Labeling
1369 \labelwidthstring 00.00.0000
1370 \begin_inset Flex Code
1371 status collapsed
1372
1373 \begin_layout Plain Layout
1374 layouttranslations
1375 \end_layout
1376
1377 \end_inset
1378
1379  
1380 \change_deleted 232239728 1604797591
1381 t
1382 \change_inserted 232239728 1604797591
1383 T
1384 \change_unchanged
1385 his file contains translations for internationalized paragraph styles (see 
1386 \begin_inset CommandInset ref
1387 LatexCommand ref
1388 reference "subsec:I18n"
1389 nolink "false"
1390
1391 \end_inset
1392
1393 ).
1394 \end_layout
1395
1396 \begin_layout Labeling
1397 \labelwidthstring 00.00.0000
1398 \begin_inset Flex Code
1399 status collapsed
1400
1401 \begin_layout Plain Layout
1402 unicodesymbols
1403 \end_layout
1404
1405 \end_inset
1406
1407  
1408 \change_deleted 232239728 1604797594
1409 t
1410 \change_inserted 232239728 1604797594
1411 T
1412 \change_unchanged
1413 his file contains information about Unicode-encoded glyphs and the way they are supported by \SpecialChar LyX
1414  via \SpecialChar LaTeX
1415 .
1416 \end_layout
1417
1418 \begin_layout Section
1419 Your local configuration directory
1420 \end_layout
1421
1422 \begin_layout Standard
1423 Even if you are using \SpecialChar LyX
1424  as an unprivileged user,
1425  you might want to change \SpecialChar LyX
1426  configuration for your own use.
1427  The 
1428 \begin_inset Flex Code
1429 status collapsed
1430
1431 \begin_layout Plain Layout
1432 UserDir
1433 \end_layout
1434
1435 \end_inset
1436
1437  directory contains all your personal configuration files.
1438  This is the directory described as 
1439 \begin_inset Quotes eld
1440 \end_inset
1441
1442 user directory
1443 \begin_inset Quotes erd
1444 \end_inset
1445
1446  in 
1447 \begin_inset Flex Noun
1448 status collapsed
1449
1450 \begin_layout Plain Layout
1451 Help\SpecialChar menuseparator
1452 About
1453 \begin_inset space ~
1454 \end_inset
1455
1456 LyX
1457 \end_layout
1458
1459 \end_inset
1460
1461 .
1462  This directory is used as a mirror of 
1463 \begin_inset Flex Code
1464 status collapsed
1465
1466 \begin_layout Plain Layout
1467 LyXDir
1468 \end_layout
1469
1470 \end_inset
1471
1472 ,
1473  which means that every file in 
1474 \begin_inset Flex Code
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 UserDir
1479 \end_layout
1480
1481 \end_inset
1482
1483  is a replacement for the corresponding file in 
1484 \begin_inset Flex Code
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488 LyXDir
1489 \end_layout
1490
1491 \end_inset
1492
1493 .
1494  Any configuration file described in the above sections can be placed either in the system-wide directory,
1495  in which case it will affect all users,
1496  or in your local directory for your own use.
1497 \end_layout
1498
1499 \begin_layout Standard
1500 To make things clearer,
1501  let's provide a few examples:
1502 \end_layout
1503
1504 \begin_layout Itemize
1505 The preferences set in the 
1506 \begin_inset Flex Noun
1507 status collapsed
1508
1509 \begin_layout Plain Layout
1510 Tools\SpecialChar menuseparator
1511 Preferences
1512 \end_layout
1513
1514 \end_inset
1515
1516  dialog are saved to a file 
1517 \begin_inset Flex Code
1518 status collapsed
1519
1520 \begin_layout Plain Layout
1521 preferences
1522 \end_layout
1523
1524 \end_inset
1525
1526  in 
1527 \begin_inset Flex Code
1528 status collapsed
1529
1530 \begin_layout Plain Layout
1531 UserDir
1532 \end_layout
1533
1534 \end_inset
1535
1536 .
1537 \end_layout
1538
1539 \begin_layout Itemize
1540 When you reconfigure using 
1541 \begin_inset Flex Noun
1542 status collapsed
1543
1544 \begin_layout Plain Layout
1545 Tools\SpecialChar menuseparator
1546 Reconfigure
1547 \end_layout
1548
1549 \end_inset
1550
1551 ,
1552  \SpecialChar LyX
1553  runs the 
1554 \begin_inset Flex Code
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558 configure.py
1559 \end_layout
1560
1561 \end_inset
1562
1563  script,
1564  and the resulting files are written in your local configuration directory.
1565  This means that any additional text class file that you might have added in 
1566 \begin_inset Flex Code
1567 status collapsed
1568
1569 \begin_layout Plain Layout
1570 UserDir/layouts
1571 \end_layout
1572
1573 \end_inset
1574
1575  will be added to the list of classes in the 
1576 \begin_inset Flex Noun
1577 status collapsed
1578
1579 \begin_layout Plain Layout
1580 Document\SpecialChar menuseparator
1581 Settings
1582 \end_layout
1583
1584 \end_inset
1585
1586  dialog.
1587 \end_layout
1588
1589 \begin_layout Itemize
1590 If you get some updated documentation from
1591 \change_inserted 232239728 1604798171
1592  a
1593 \change_unchanged
1594  \SpecialChar LyX
1595  ftp site and cannot install it because you do not have sysadmin rights on your system,
1596  you can just copy the files 
1597 \change_deleted 232239728 1604798193
1598 in
1599 \change_inserted 232239728 1604798193
1600 to
1601 \change_unchanged
1602  
1603 \begin_inset Flex Code
1604 status collapsed
1605
1606 \begin_layout Plain Layout
1607 UserDir/doc/
1608 \end_layout
1609
1610 \end_inset
1611
1612  and the items in the 
1613 \begin_inset Flex Noun
1614 status collapsed
1615
1616 \begin_layout Plain Layout
1617 Help
1618 \end_layout
1619
1620 \end_inset
1621
1622  menu will open them!
1623 \end_layout
1624
1625 \begin_layout Section
1626 Running \SpecialChar LyX
1627  with multiple configurations
1628 \end_layout
1629
1630 \begin_layout Standard
1631 The configuration freedom of the local configuration directory may not suffice if you want to have more than one configuration at your disposal.
1632  For example,
1633  you may want to 
1634 \change_deleted 232239728 1604798238
1635 be 
1636 \change_unchanged
1637 use different key bindings or printer settings at different times.
1638  You can achieve this by having several such directories.
1639  You then specify which directory to use at run-time.
1640 \end_layout
1641
1642 \begin_layout Standard
1643 Invoking \SpecialChar LyX
1644  with the command line switch 
1645 \begin_inset Flex Code
1646 status collapsed
1647
1648 \begin_layout Plain Layout
1649 -userdir
1650 \end_layout
1651
1652 \end_inset
1653
1654  
1655 \emph on
1656 <some directory>
1657 \emph default
1658  instructs the program to read the configuration from that directory,
1659  and not from the default directory.
1660  (You can determine the default directory by running \SpecialChar LyX
1661  without the 
1662 \begin_inset Flex Code
1663 status collapsed
1664
1665 \begin_layout Plain Layout
1666 -userdir
1667 \end_layout
1668
1669 \end_inset
1670
1671  switch.) If the specified directory does not exist,
1672  \SpecialChar LyX
1673  offers to create it for you,
1674  just like it does for the default directory 
1675 \change_deleted 232239728 1604798318
1676 on
1677 \change_unchanged
1678  the first time you run the program.
1679  You can modify the configuration options in this additional user directory exactly as you would for the default directory.
1680  These directories are completely independent (but read on).
1681  Note that setting the environment variable 
1682 \begin_inset Flex Code
1683 status collapsed
1684
1685 \begin_layout Plain Layout
1686 LYX_USERDIR_24x
1687 \end_layout
1688
1689 \end_inset
1690
1691  to some value has exactly the same effect.
1692 \end_layout
1693
1694 \begin_layout Standard
1695 Having several configurations also requires more maintenance:
1696  if you want to add a new layout to 
1697 \begin_inset Flex Code
1698 status collapsed
1699
1700 \begin_layout Plain Layout
1701 NewUserDir/layouts
1702 \end_layout
1703
1704 \end_inset
1705
1706  which you want available from all your configurations,
1707  you must add it to each directory separately.
1708  You can avoid this with the following trick:
1709  after \SpecialChar LyX
1710  creates the additional directory,
1711  most of the subdirectories (see above) are empty.
1712  If you want the new configuration to mirror an existing one,
1713  replace the empty subdirectory with a symbolic link to the matching subdirectory in the existing configuration.
1714  Take care with the 
1715 \begin_inset Flex Code
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 doc/
1720 \end_layout
1721
1722 \end_inset
1723
1724  subdirectory,
1725  however,
1726  since it contains a file written by the configuration script (also accessible through 
1727 \begin_inset Flex Noun
1728 status collapsed
1729
1730 \begin_layout Plain Layout
1731 Tools\SpecialChar menuseparator
1732 Reconfigure
1733 \end_layout
1734
1735 \end_inset
1736
1737 ) which is configuration
1738 \change_deleted 232239728 1604798083
1739 -
1740 \change_inserted 232239728 1604798100
1741  
1742 \change_unchanged
1743 specific.
1744 \end_layout
1745
1746 \begin_layout Chapter
1747 The Preferences dialog
1748 \end_layout
1749
1750 \begin_layout Standard
1751 All options of the preferences dialog are described in the Appendix 
1752 \emph on
1753 The Preferences Dialog
1754 \emph default
1755  in the 
1756 \emph on
1757 User's Guide
1758 \emph default
1759 .
1760  For some options you might find here more details.
1761 \end_layout
1762
1763 \begin_layout Section
1764 Formats
1765 \begin_inset CommandInset label
1766 LatexCommand label
1767 name "sec:Formats"
1768
1769 \end_inset
1770
1771
1772 \end_layout
1773
1774 \begin_layout Standard
1775 The first step is to define your file formats if they are not already defined.
1776  To do so,
1777  open the 
1778 \begin_inset Flex Noun
1779 status collapsed
1780
1781 \begin_layout Plain Layout
1782 Tools\SpecialChar menuseparator
1783 Preferences
1784 \end_layout
1785
1786 \end_inset
1787
1788  dialog.
1789  Under 
1790 \begin_inset Flex Noun
1791 status collapsed
1792
1793 \begin_layout Plain Layout
1794 File Handling\SpecialChar menuseparator
1795 File formats
1796 \end_layout
1797
1798 \end_inset
1799
1800  press the 
1801 \begin_inset Flex Noun
1802 status collapsed
1803
1804 \begin_layout Plain Layout
1805 New
1806 \end_layout
1807
1808 \end_inset
1809
1810  button to define your new format.
1811  The 
1812 \begin_inset Flex Noun
1813 status collapsed
1814
1815 \begin_layout Plain Layout
1816 Format
1817 \end_layout
1818
1819 \end_inset
1820
1821  field contains the name used to identify the format in the GUI.
1822  The 
1823 \begin_inset Flex Noun
1824 status collapsed
1825
1826 \begin_layout Plain Layout
1827 Short Name
1828 \end_layout
1829
1830 \end_inset
1831
1832  is used to identify the format internally.
1833  You will also need to enter a file extension.
1834  These are all required.
1835  The optional 
1836 \begin_inset Flex Noun
1837 status collapsed
1838
1839 \begin_layout Plain Layout
1840 Shortcut
1841 \end_layout
1842
1843 \end_inset
1844
1845  field is used to provide a keyboard shortcut on the menus.
1846  (For example,
1847  pressing 
1848 \begin_inset Flex Noun
1849 status collapsed
1850
1851 \begin_layout Plain Layout
1852 Ctrl+D
1853 \end_layout
1854
1855 \end_inset
1856
1857  will 
1858 \begin_inset Flex Noun
1859 status collapsed
1860
1861 \begin_layout Plain Layout
1862 Document\SpecialChar menuseparator
1863 View (Other Formats)\SpecialChar menuseparator
1864 DVI
1865 \end_layout
1866
1867 \end_inset
1868
1869 .) 
1870 \end_layout
1871
1872 \begin_layout Standard
1873 A Format can have a 
1874 \begin_inset Flex Noun
1875 status collapsed
1876
1877 \begin_layout Plain Layout
1878 Viewer
1879 \end_layout
1880
1881 \end_inset
1882
1883  and an 
1884 \begin_inset Flex Noun
1885 status collapsed
1886
1887 \begin_layout Plain Layout
1888 Editor
1889 \end_layout
1890
1891 \end_inset
1892
1893  associated with it.
1894  For example,
1895  you might want to use 
1896 \begin_inset Flex Noun
1897 status collapsed
1898
1899 \begin_layout Plain Layout
1900 Ghostview
1901 \end_layout
1902
1903 \end_inset
1904
1905  to view PostScript files.
1906  You can enter the command needed to start the program in the corresponding fields.
1907  In defining this command,
1908  you can use the four variables listed in the next section.
1909  The viewer is launched when you view an image in \SpecialChar LyX
1910  or use the 
1911 \begin_inset Flex Noun
1912 status collapsed
1913
1914 \begin_layout Plain Layout
1915 Document\SpecialChar menuseparator
1916 View
1917 \end_layout
1918
1919 \end_inset
1920
1921  menu.
1922  The editor is for example launched when you right-click on an image and choose 
1923 \begin_inset Flex Noun
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 Edit externally
1928 \end_layout
1929
1930 \end_inset
1931
1932  in the appearing context menu.
1933 \end_layout
1934
1935 \begin_layout Standard
1936 The 
1937 \begin_inset Flex Noun
1938 status collapsed
1939
1940 \begin_layout Plain Layout
1941 MIME
1942 \end_layout
1943
1944 \end_inset
1945
1946  type of a format is optional,
1947  but if it is specified,
1948  it must be unique across all formats.
1949  It is used to detect files of this format from the file contents.
1950  For some important file formats there is no MIME type officially registered with the 
1951 \begin_inset CommandInset href
1952 LatexCommand href
1953 name "IANA"
1954 target "http://www.iana.org/assignments/media-types/"
1955 literal "false"
1956
1957 \end_inset
1958
1959 .
1960  Therefore \SpecialChar LyX
1961  uses the extended list of MIME types as specified by 
1962 \begin_inset CommandInset href
1963 LatexCommand href
1964 name "freedesktop.org"
1965 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1966 literal "false"
1967
1968 \end_inset
1969
1970 .
1971 \end_layout
1972
1973 \begin_layout Standard
1974 The 
1975 \begin_inset Flex Noun
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 Document format
1980 \end_layout
1981
1982 \end_inset
1983
1984  option tells \SpecialChar LyX
1985  that a format is suitable for document export.
1986  If this is set and if a suitable conversion route exists (see 
1987 \begin_inset CommandInset ref
1988 LatexCommand ref
1989 reference "sec:Converters"
1990 nolink "false"
1991
1992 \end_inset
1993
1994 ),
1995  the format will appear in the 
1996 \begin_inset Flex Noun
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 File\SpecialChar menuseparator
2001 Export
2002 \end_layout
2003
2004 \end_inset
2005
2006  menu.
2007  The format will also appear in the 
2008 \begin_inset Flex Noun
2009 status collapsed
2010
2011 \begin_layout Plain Layout
2012 Document\SpecialChar menuseparator
2013 View
2014 \end_layout
2015
2016 \end_inset
2017
2018  menu if a viewer is specified for the format.
2019  Pure image formats,
2020  such as 
2021 \begin_inset Flex Code
2022 status collapsed
2023
2024 \begin_layout Plain Layout
2025 png
2026 \end_layout
2027
2028 \end_inset
2029
2030 ,
2031  should not use this option.
2032  Formats that can both represent vector graphics and documents like 
2033 \begin_inset Flex Code
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037 pdf
2038 \end_layout
2039
2040 \end_inset
2041
2042  should use it.
2043 \end_layout
2044
2045 \begin_layout Standard
2046 The option 
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 Vector graphics format
2052 \end_layout
2053
2054 \end_inset
2055
2056  tells \SpecialChar LyX
2057  that a format can contain vector graphics.
2058  This information is used to determine the target format of included graphics for 
2059 \begin_inset Flex Noun
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 pdflatex
2064 \end_layout
2065
2066 \end_inset
2067
2068  export.
2069  Included graphics may need to be converted to either 
2070 \begin_inset Flex Noun
2071 status collapsed
2072
2073 \begin_layout Plain Layout
2074 pdf
2075 \end_layout
2076
2077 \end_inset
2078
2079 ,
2080  
2081 \begin_inset Flex Noun
2082 status collapsed
2083
2084 \begin_layout Plain Layout
2085 png
2086 \end_layout
2087
2088 \end_inset
2089
2090 ,
2091  or 
2092 \begin_inset Flex Noun
2093 status collapsed
2094
2095 \begin_layout Plain Layout
2096 jpg
2097 \end_layout
2098
2099 \end_inset
2100
2101 ,
2102  since 
2103 \begin_inset Flex Noun
2104 status collapsed
2105
2106 \begin_layout Plain Layout
2107 pdflatex
2108 \end_layout
2109
2110 \end_inset
2111
2112  cannot handle other image formats.
2113  If an included graphic is not already in 
2114 \begin_inset Flex Noun
2115 status collapsed
2116
2117 \begin_layout Plain Layout
2118 pdf
2119 \end_layout
2120
2121 \end_inset
2122
2123 ,
2124  
2125 \begin_inset Flex Noun
2126 status collapsed
2127
2128 \begin_layout Plain Layout
2129 png
2130 \end_layout
2131
2132 \end_inset
2133
2134 ,
2135  or 
2136 \begin_inset Flex Noun
2137 status collapsed
2138
2139 \begin_layout Plain Layout
2140 jpg
2141 \end_layout
2142
2143 \end_inset
2144
2145  format,
2146  it is converted to 
2147 \begin_inset Flex Noun
2148 status collapsed
2149
2150 \begin_layout Plain Layout
2151 pdf
2152 \end_layout
2153
2154 \end_inset
2155
2156  if the vector format option is set,
2157  and otherwise to 
2158 \begin_inset Flex Noun
2159 status collapsed
2160
2161 \begin_layout Plain Layout
2162 png
2163 \end_layout
2164
2165 \end_inset
2166
2167 .
2168 \end_layout
2169
2170 \begin_layout Section
2171 Copiers
2172 \end_layout
2173
2174 \begin_layout Standard
2175 Since all conversions from one format to another take place in \SpecialChar LyX
2176 's temporary directory,
2177  it is sometimes necessary to modify a file before copying it to the temporary directory in order that the conversion may be performed.
2178 \begin_inset Foot
2179 status collapsed
2180
2181 \begin_layout Plain Layout
2182 For example,
2183  the file may refer to other files—
2184 images,
2185  for example—
2186 using relative file names,
2187  and these may become invalid when the file is copied to the temporary directory.
2188 \end_layout
2189
2190 \end_inset
2191
2192  This is done by a Copier:
2193  It copies a file to (or from) the temporary directory and may modify it in the process.
2194 \end_layout
2195
2196 \begin_layout Standard
2197 The definitions of the copiers may use eight variables:
2198 \end_layout
2199
2200 \begin_layout Labeling
2201 \labelwidthstring 00.00.0000
2202 \begin_inset Flex Code
2203 status collapsed
2204
2205 \begin_layout Plain Layout
2206 $$s
2207 \end_layout
2208
2209 \end_inset
2210
2211  The \SpecialChar LyX
2212  system directory (e.
2213 \begin_inset space \thinspace{}
2214 \end_inset
2215
2216 g.
2217 \begin_inset space \space{}
2218 \end_inset
2219
2220
2221 \begin_inset Flex Noun
2222 status collapsed
2223
2224 \begin_layout Plain Layout
2225 /usr/share/lyx
2226 \end_layout
2227
2228 \end_inset
2229
2230 ).
2231 \end_layout
2232
2233 \begin_layout Labeling
2234 \labelwidthstring 00.00.0000
2235 \begin_inset Flex Code
2236 status collapsed
2237
2238 \begin_layout Plain Layout
2239 $$i
2240 \end_layout
2241
2242 \end_inset
2243
2244  The input file
2245 \end_layout
2246
2247 \begin_layout Labeling
2248 \labelwidthstring 00.00.0000
2249 \begin_inset Flex Code
2250 status collapsed
2251
2252 \begin_layout Plain Layout
2253 $$o
2254 \end_layout
2255
2256 \end_inset
2257
2258  The output file
2259 \end_layout
2260
2261 \begin_layout Labeling
2262 \labelwidthstring 00.00.0000
2263 \begin_inset Flex Code
2264 status collapsed
2265
2266 \begin_layout Plain Layout
2267 $$b
2268 \end_layout
2269
2270 \end_inset
2271
2272  The base name (without filename extension) in the \SpecialChar LyX
2273  temporary directory
2274 \end_layout
2275
2276 \begin_layout Labeling
2277 \labelwidthstring 00.00.0000
2278 \begin_inset Flex Code
2279 status collapsed
2280
2281 \begin_layout Plain Layout
2282 $$p
2283 \end_layout
2284
2285 \end_inset
2286
2287  The full directory path of the \SpecialChar LyX
2288  temporary directory
2289 \end_layout
2290
2291 \begin_layout Labeling
2292 \labelwidthstring 00.00.0000
2293 \begin_inset Flex Code
2294 status collapsed
2295
2296 \begin_layout Plain Layout
2297 $$r
2298 \end_layout
2299
2300 \end_inset
2301
2302  The full pathname to the original \SpecialChar LyX
2303  file being processed
2304 \end_layout
2305
2306 \begin_layout Labeling
2307 \labelwidthstring 00.00.0000
2308 \begin_inset Flex Code
2309 status collapsed
2310
2311 \begin_layout Plain Layout
2312 $$f
2313 \end_layout
2314
2315 \end_inset
2316
2317  The filename (without any directory path) of the \SpecialChar LyX
2318  file.
2319 \end_layout
2320
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Flex Code
2324 status collapsed
2325
2326 \begin_layout Plain Layout
2327 $$l
2328 \end_layout
2329
2330 \end_inset
2331
2332  The `\SpecialChar LaTeX
2333  name'
2334 \end_layout
2335
2336 \begin_layout Standard
2337 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2338 's 
2339 \series bold
2340
2341 \backslash
2342 include
2343 \series default
2344  command.
2345  It is relevant only when exporting files suitable for such inclusion.
2346 \end_layout
2347
2348 \begin_layout Standard
2349 Copiers can be used to do almost anything with output files.
2350  For example,
2351  suppose you want generated pdf files to be copied to a special directory,
2352  
2353 \begin_inset Flex Code
2354 status collapsed
2355
2356 \begin_layout Plain Layout
2357 /home/you/pdf/
2358 \end_layout
2359
2360 \end_inset
2361
2362 .
2363  Then you could write a shell script such as this one:
2364 \end_layout
2365
2366 \begin_layout Standard
2367 \begin_inset listings
2368 inline false
2369 status open
2370
2371 \begin_layout Plain Layout
2372
2373 #!/bin/bash
2374 \end_layout
2375
2376 \begin_layout Plain Layout
2377
2378 FROMFILE=$1
2379 \end_layout
2380
2381 \begin_layout Plain Layout
2382
2383 TOFILE=`basename $2`
2384 \end_layout
2385
2386 \begin_layout Plain Layout
2387
2388 cp $FROMFILE /home/you/pdf/$TOFILE
2389 \end_layout
2390
2391 \end_inset
2392
2393 Save it in your local \SpecialChar LyX
2394  directory—
2395 say,
2396  
2397 \begin_inset Flex Code
2398 status collapsed
2399
2400 \begin_layout Plain Layout
2401 /home/you/.lyx/scripts/pdfcopier.sh
2402 \end_layout
2403
2404 \end_inset
2405
2406
2407 and make it executable,
2408  if you need to do so on your platform.
2409  Then,
2410  in the 
2411 \begin_inset Flex Noun
2412 status collapsed
2413
2414 \begin_layout Plain Layout
2415 Tools\SpecialChar menuseparator
2416 Preferences
2417 \end_layout
2418
2419 \end_inset
2420
2421  dialog,
2422  select under 
2423 \begin_inset Flex Noun
2424 status collapsed
2425
2426 \begin_layout Plain Layout
2427 File Handling\SpecialChar menuseparator
2428 File formats
2429 \end_layout
2430
2431 \end_inset
2432
2433  the 
2434 \begin_inset Flex Noun
2435 status collapsed
2436
2437 \begin_layout Plain Layout
2438 PDF(pdflatex)
2439 \end_layout
2440
2441 \end_inset
2442
2443  format—
2444 or one of the other pdf formats—
2445 and enter 
2446 \begin_inset Flex Code
2447 status collapsed
2448
2449 \begin_layout Plain Layout
2450 pdfcopier.sh $$i $$o
2451 \end_layout
2452
2453 \end_inset
2454
2455  into the 
2456 \begin_inset Flex Noun
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 Copier
2461 \end_layout
2462
2463 \end_inset
2464
2465  field.
2466  
2467 \end_layout
2468
2469 \begin_layout Standard
2470 Copiers are used by \SpecialChar LyX
2471  in various of its own conversions.
2472  For example,
2473  if appropriate programs are found,
2474  \SpecialChar LyX
2475  will automatically install copiers for the 
2476 \begin_inset Flex Noun
2477 status collapsed
2478
2479 \begin_layout Plain Layout
2480 HTML
2481 \end_layout
2482
2483 \end_inset
2484
2485  and 
2486 \begin_inset Flex Noun
2487 status collapsed
2488
2489 \begin_layout Plain Layout
2490 HTML
2491 \begin_inset space ~
2492 \end_inset
2493
2494 (MS Word)
2495 \end_layout
2496
2497 \end_inset
2498
2499  formats.
2500  When these formats are exported,
2501  the copier sees that not just the main HTML file but various associated files (style files,
2502  images,
2503  etc.) are also copied.
2504  All these files are written to a subdirectory of the directory in which the original \SpecialChar LyX
2505  file was found.
2506 \begin_inset Foot
2507 status collapsed
2508
2509 \begin_layout Plain Layout
2510 This copier can be customized.
2511  The optional 
2512 \begin_inset Quotes eld
2513 \end_inset
2514
2515 -e
2516 \begin_inset Quotes erd
2517 \end_inset
2518
2519  argument takes a comma-separated list of extensions to be copied;
2520  if it is omitted,
2521  all files will be copied.
2522  The 
2523 \begin_inset Quotes eld
2524 \end_inset
2525
2526 -t
2527 \begin_inset Quotes erd
2528 \end_inset
2529
2530  argument determines the extension added to the generated directory.
2531  By default,
2532  it is 
2533 \begin_inset Quotes eld
2534 \end_inset
2535
2536
2537 \begin_inset Flex Noun
2538 status collapsed
2539
2540 \begin_layout Plain Layout
2541 LyXconv
2542 \end_layout
2543
2544 \end_inset
2545
2546
2547 \begin_inset Quotes erd
2548 \end_inset
2549
2550 ,
2551  so HTML generated from 
2552 \begin_inset Flex Noun
2553 status collapsed
2554
2555 \begin_layout Plain Layout
2556 /path/to/filename.lyx
2557 \end_layout
2558
2559 \end_inset
2560
2561  will end up in 
2562 \begin_inset Flex Noun
2563 status collapsed
2564
2565 \begin_layout Plain Layout
2566 /path/to/filename.html.LyXconv
2567 \end_layout
2568
2569 \end_inset
2570
2571 .
2572  
2573 \end_layout
2574
2575 \end_inset
2576
2577
2578 \end_layout
2579
2580 \begin_layout Section
2581 Converters
2582 \begin_inset CommandInset label
2583 LatexCommand label
2584 name "sec:Converters"
2585
2586 \end_inset
2587
2588
2589 \end_layout
2590
2591 \begin_layout Standard
2592 You can define your own Converters to convert files between different formats.
2593  This is done in the 
2594 \begin_inset Flex Noun
2595 status collapsed
2596
2597 \begin_layout Plain Layout
2598 Tools\SpecialChar menuseparator
2599 Preferences\SpecialChar menuseparator
2600 File Handling\SpecialChar menuseparator
2601 Converters
2602 \end_layout
2603
2604 \end_inset
2605
2606  dialog.
2607 \end_layout
2608
2609 \begin_layout Standard
2610 To define a new converter,
2611  select the 
2612 \begin_inset Flex Noun
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616 From
2617 \begin_inset space ~
2618 \end_inset
2619
2620 format
2621 \end_layout
2622
2623 \end_inset
2624
2625  and 
2626 \begin_inset Flex Noun
2627 status collapsed
2628
2629 \begin_layout Plain Layout
2630 To
2631 \begin_inset space ~
2632 \end_inset
2633
2634 format
2635 \end_layout
2636
2637 \end_inset
2638
2639  from the drop-down lists,
2640  enter the command needed for the conversion,
2641  and then press the 
2642 \begin_inset Flex Noun
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646 Add
2647 \end_layout
2648
2649 \end_inset
2650
2651  button.
2652  Several variables can be used in the definition of converters:
2653 \end_layout
2654
2655 \begin_layout Labeling
2656 \labelwidthstring 00.00.0000
2657 \begin_inset Flex Code
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 $$s
2662 \end_layout
2663
2664 \end_inset
2665
2666  The \SpecialChar LyX
2667  system directory
2668 \end_layout
2669
2670 \begin_layout Labeling
2671 \labelwidthstring 00.00.0000
2672 \begin_inset Flex Code
2673 status collapsed
2674
2675 \begin_layout Plain Layout
2676 $$i
2677 \end_layout
2678
2679 \end_inset
2680
2681  The input file
2682 \end_layout
2683
2684 \begin_layout Labeling
2685 \labelwidthstring 00.00.0000
2686 \begin_inset Flex Code
2687 status collapsed
2688
2689 \begin_layout Plain Layout
2690 $$o
2691 \end_layout
2692
2693 \end_inset
2694
2695  The output file
2696 \end_layout
2697
2698 \begin_layout Labeling
2699 \labelwidthstring 00.00.0000
2700 \begin_inset Flex Code
2701 status collapsed
2702
2703 \begin_layout Plain Layout
2704 $$b
2705 \end_layout
2706
2707 \end_inset
2708
2709  The base filename of the input file (i.
2710 \begin_inset space \thinspace{}
2711 \end_inset
2712
2713 g.,
2714  without the extension)
2715 \end_layout
2716
2717 \begin_layout Labeling
2718 \labelwidthstring 00.00.0000
2719 \begin_inset Flex Code
2720 status collapsed
2721
2722 \begin_layout Plain Layout
2723 $$p
2724 \end_layout
2725
2726 \end_inset
2727
2728  The path to the input file
2729 \end_layout
2730
2731 \begin_layout Labeling
2732 \labelwidthstring 00.00.0000
2733 \begin_inset Flex Code
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 $$r
2738 \end_layout
2739
2740 \end_inset
2741
2742  The path to the original input file (this is different from $$p when a chain of converters is called)
2743 \end_layout
2744
2745 \begin_layout Labeling
2746 \labelwidthstring 00.00.0000
2747 \begin_inset Flex Code
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 $$e
2752 \end_layout
2753
2754 \end_inset
2755
2756  The iconv name for the encoding of the document.
2757 \end_layout
2758
2759 \begin_layout Standard
2760 In the 
2761 \begin_inset Flex Noun
2762 status collapsed
2763
2764 \begin_layout Plain Layout
2765 Extra
2766 \begin_inset space ~
2767 \end_inset
2768
2769 Flag
2770 \end_layout
2771
2772 \end_inset
2773
2774  field you can enter the following flags,
2775  separated by commas:
2776 \end_layout
2777
2778 \begin_layout Labeling
2779 \labelwidthstring 00.00.0000
2780 \begin_inset Flex Code
2781 status collapsed
2782
2783 \begin_layout Plain Layout
2784 latex
2785 \change_inserted -712698321 1524656940
2786 =flavor
2787 \change_unchanged
2788
2789 \end_layout
2790
2791 \end_inset
2792
2793  This converter runs some form of \SpecialChar LaTeX
2794 .
2795  This will make \SpecialChar LyX
2796 's \SpecialChar LaTeX
2797  error logs available.
2798
2799 \change_inserted -712698321 1524657018
2800  The optional 
2801 \begin_inset Flex Code
2802 status open
2803
2804 \begin_layout Plain Layout
2805
2806 \change_inserted -712698321 1524657012
2807 flavor
2808 \change_unchanged
2809
2810 \end_layout
2811
2812 \end_inset
2813
2814  value specifies the form of \SpecialChar LaTeX
2815  that is run (
2816 \begin_inset Flex Code
2817 status open
2818
2819 \begin_layout Plain Layout
2820
2821 \change_inserted -712698321 1524657005
2822 latex,
2823  pdflatex,
2824  platex,
2825  xetex,
2826  luatex
2827 \change_unchanged
2828
2829 \end_layout
2830
2831 \end_inset
2832
2833 ).
2834  If no value is specified,
2835  
2836 \begin_inset Flex Code
2837 status open
2838
2839 \begin_layout Plain Layout
2840
2841 \change_inserted -712698321 1524657018
2842 latex
2843 \change_unchanged
2844
2845 \end_layout
2846
2847 \end_inset
2848
2849  is used.
2850 \change_unchanged
2851
2852 \end_layout
2853
2854 \begin_layout Labeling
2855 \labelwidthstring 00.00.0000
2856
2857 \change_inserted -712698321 1676553236
2858 \begin_inset Flex Code
2859 status collapsed
2860
2861 \begin_layout Plain Layout
2862
2863 \change_inserted -712698321 1676552303
2864 needauth
2865 \change_unchanged
2866
2867 \end_layout
2868
2869 \end_inset
2870
2871  This converter is considered non-safe and needs authorization by the user.
2872  Depending on the settings in 
2873 \family sans
2874 Tools\SpecialChar menuseparator
2875 Preferences\SpecialChar menuseparator
2876 File Handling\SpecialChar menuseparator
2877 Converters
2878 \family default
2879 ,
2880  users will (a.) be asked whether they trust the current document temporarily,
2881  permanently,
2882  or not,
2883  (b.) be informed that conversion is not possible due to security concerns,
2884  or (c.) not be informed as they gave permanent consent.
2885  Set this flag for converters that might execute arbitrary programs.
2886 \end_layout
2887
2888 \begin_layout Labeling
2889 \labelwidthstring 00.00.0000
2890 \begin_inset Flex Code
2891 status collapsed
2892
2893 \begin_layout Plain Layout
2894 needaux
2895 \change_inserted -712698321 1524656935
2896 =flavor
2897 \change_unchanged
2898
2899 \end_layout
2900
2901 \end_inset
2902
2903  Needs the \SpecialChar LaTeX
2904  
2905 \begin_inset Flex Noun
2906 status collapsed
2907
2908 \begin_layout Plain Layout
2909 .aux
2910 \end_layout
2911
2912 \end_inset
2913
2914  file for the conversion.
2915
2916 \change_inserted -712698321 1524657047
2917  The optional 
2918 \begin_inset Flex Code
2919 status open
2920
2921 \begin_layout Plain Layout
2922
2923 \change_inserted -712698321 1524657030
2924 flavor
2925 \change_unchanged
2926
2927 \end_layout
2928
2929 \end_inset
2930
2931  value specifies the form of \SpecialChar LaTeX
2932  that is run in order to generate the 
2933 \begin_inset Flex Noun
2934 status collapsed
2935
2936 \begin_layout Plain Layout
2937
2938 \change_inserted -712698321 1524657047
2939 .aux
2940 \change_unchanged
2941
2942 \end_layout
2943
2944 \end_inset
2945
2946  file (
2947 \begin_inset Flex Code
2948 status open
2949
2950 \begin_layout Plain Layout
2951
2952 \change_inserted -712698321 1524657030
2953 latex,
2954  pdflatex,
2955  platex,
2956  xetex,
2957  luatex
2958 \change_unchanged
2959
2960 \end_layout
2961
2962 \end_inset
2963
2964 ).
2965  If no value is specified,
2966  
2967 \begin_inset Flex Code
2968 status open
2969
2970 \begin_layout Plain Layout
2971
2972 \change_inserted -712698321 1524657030
2973 latex
2974 \change_unchanged
2975
2976 \end_layout
2977
2978 \end_inset
2979
2980  is used.
2981 \change_unchanged
2982
2983 \end_layout
2984
2985 \begin_layout Labeling
2986 \labelwidthstring 00.00.0000
2987 \begin_inset Flex Code
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 nice
2992 \end_layout
2993
2994 \end_inset
2995
2996  Needs a 
2997 \begin_inset Quotes eld
2998 \end_inset
2999
3000 nice
3001 \begin_inset Quotes erd
3002 \end_inset
3003
3004  file from the backend,
3005  which in practice means a \SpecialChar LaTeX
3006  file like the one we would export,
3007  without 
3008 \begin_inset Flex Code
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 input@path
3013 \end_layout
3014
3015 \end_inset
3016
3017 .
3018 \end_layout
3019
3020 \begin_layout Labeling
3021 \labelwidthstring 00.00.0000
3022 \begin_inset Flex Code
3023 status collapsed
3024
3025 \begin_layout Plain Layout
3026 xml
3027 \end_layout
3028
3029 \end_inset
3030
3031  Output is XML.
3032 \end_layout
3033
3034 \begin_layout Standard
3035 The following three flags are not really flags at all because they take an argument in the 
3036 \begin_inset Flex Noun
3037 status collapsed
3038
3039 \begin_layout Plain Layout
3040 key
3041 \begin_inset space ~
3042 \end_inset
3043
3044 =
3045 \begin_inset space ~
3046 \end_inset
3047
3048 value
3049 \end_layout
3050
3051 \end_inset
3052
3053  format:
3054 \end_layout
3055
3056 \begin_layout Labeling
3057 \labelwidthstring 00.00.0000
3058
3059 \change_inserted -712698321 1523206314
3060 \begin_inset Flex Code
3061 status collapsed
3062
3063 \begin_layout Plain Layout
3064
3065 \change_inserted -712698321 1523206193
3066 hyperref-driver
3067 \change_unchanged
3068
3069 \end_layout
3070
3071 \end_inset
3072
3073  The name of the driver that needs to be loaded with the 
3074 \family sans
3075 hyperref
3076 \family default
3077  package for this converter.
3078  The loading of the correct driver is necessary to get some PDF-specific features.
3079  See the 
3080 \family sans
3081 hyperref
3082 \family default
3083  manual for details.
3084 \end_layout
3085
3086 \begin_layout Labeling
3087 \labelwidthstring 00.00.0000
3088 \begin_inset Flex Code
3089 status collapsed
3090
3091 \begin_layout Plain Layout
3092 parselog
3093 \end_layout
3094
3095 \end_inset
3096
3097  If set,
3098  the converter's standard error will be redirected to a file 
3099 \begin_inset Flex Code
3100 status collapsed
3101
3102 \begin_layout Plain Layout
3103 infile.out
3104 \end_layout
3105
3106 \end_inset
3107
3108 ,
3109  and the script given as argument will be run as:
3110  
3111 \begin_inset Flex Code
3112 status collapsed
3113
3114 \begin_layout Plain Layout
3115 script < infile.out > infile.log
3116 \end_layout
3117
3118 \end_inset
3119
3120 .
3121  The argument may contain 
3122 \begin_inset Flex Code
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 $$s
3127 \end_layout
3128
3129 \end_inset
3130
3131 .
3132 \end_layout
3133
3134 \begin_layout Labeling
3135 \labelwidthstring 00.00.0000
3136 \begin_inset Flex Code
3137 status collapsed
3138
3139 \begin_layout Plain Layout
3140 resultdir
3141 \end_layout
3142
3143 \end_inset
3144
3145  The name of the directory in which the converter will dump the generated files.
3146  \SpecialChar LyX
3147  will not create this directory,
3148  and it does not copy anything into it,
3149  though it will copy this directory to the destination.
3150  The argument may contain 
3151 \begin_inset Flex Code
3152 status collapsed
3153
3154 \begin_layout Plain Layout
3155 $$b
3156 \end_layout
3157
3158 \end_inset
3159
3160 ,
3161  which will be replaced by the base name of the input and output files,
3162  respectively,
3163  when the directory is copied.
3164 \begin_inset Newline newline
3165 \end_inset
3166
3167 Note that resultdir and usetempdir make no sense together.
3168  The latter will be ignored if the former is given.
3169 \end_layout
3170
3171 \begin_layout Labeling
3172 \labelwidthstring 00.00.0000
3173 \begin_inset Flex Code
3174 status collapsed
3175
3176 \begin_layout Plain Layout
3177 resultfile
3178 \end_layout
3179
3180 \end_inset
3181
3182  Determines the output file name and may,
3183  contain 
3184 \begin_inset Flex Code
3185 status collapsed
3186
3187 \begin_layout Plain Layout
3188 $$b
3189 \end_layout
3190
3191 \end_inset
3192
3193 .
3194  Sensible only with resultdir and optional even then;
3195  if not given,
3196  it defaults to `index'.
3197 \end_layout
3198
3199 \begin_layout Standard
3200
3201 \change_inserted -712698321 1523206384
3202 A suitable hyperref-driver is set for some converters that are installed with \SpecialChar LyX
3203 .
3204  
3205 \change_deleted -712698321 1523206388
3206 None of these
3207 \change_inserted -712698321 1523206389
3208 The
3209 \change_unchanged
3210  last three
3211 \change_inserted -712698321 1523206400
3212  flags,
3213  however,
3214
3215 \change_unchanged
3216  are presently 
3217 \change_inserted -712698321 1523206407
3218 not 
3219 \change_unchanged
3220 used in any of the 
3221 \change_inserted -712698321 1523206437
3222 pre-installed 
3223 \change_unchanged
3224 converters
3225 \change_deleted -712698321 1523206442
3226  that are installed with \SpecialChar LyX
3227
3228 \change_unchanged
3229 .
3230  
3231 \end_layout
3232
3233 \begin_layout Standard
3234 You do not have to define converters for all formats between which you want to convert.
3235  For example,
3236  you will note that there is no `\SpecialChar LyX
3237  to PostScript' converter,
3238  but \SpecialChar LyX
3239  will export PostScript.
3240  It does so by first creating a \SpecialChar LaTeX
3241  file (no converter needs to be defined for this) which is then converted to DVI using the `\SpecialChar LaTeX
3242  to DVI' converter,
3243  and finally converting the resulting DVI file to PostScript.
3244  \SpecialChar LyX
3245  finds such `chains' of converters automatically,
3246  and it will always choose the shortest possible chain.
3247  You can,
3248  though,
3249  still define multiple conversion methods between file formats.
3250  For example,
3251  the standard \SpecialChar LyX
3252  configuration provides five ways to convert \SpecialChar LaTeX
3253  to PDF:
3254 \end_layout
3255
3256 \begin_layout Enumerate
3257 Directly,
3258  using 
3259 \begin_inset Flex Noun
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 pdflatex
3264 \end_layout
3265
3266 \end_inset
3267
3268
3269 \end_layout
3270
3271 \begin_layout Enumerate
3272 via (DVI and) PostScript,
3273  using 
3274 \begin_inset Flex Noun
3275 status collapsed
3276
3277 \begin_layout Plain Layout
3278 ps2pdf
3279 \end_layout
3280
3281 \end_inset
3282
3283
3284 \end_layout
3285
3286 \begin_layout Enumerate
3287 via DVI,
3288  using 
3289 \begin_inset Flex Noun
3290 status collapsed
3291
3292 \begin_layout Plain Layout
3293 dvipdfm
3294 \end_layout
3295
3296 \end_inset
3297
3298
3299 \end_layout
3300
3301 \begin_layout Enumerate
3302 directly using 
3303 \begin_inset Flex Noun
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307 Xe\SpecialChar TeX
3308
3309 \end_layout
3310
3311 \end_inset
3312
3313
3314 \end_layout
3315
3316 \begin_layout Enumerate
3317 directly using 
3318 \begin_inset Flex Noun
3319 status collapsed
3320
3321 \begin_layout Plain Layout
3322 Lua\SpecialChar TeX
3323
3324 \end_layout
3325
3326 \end_inset
3327
3328
3329 \end_layout
3330
3331 \begin_layout Standard
3332 To define such alternate chains,
3333  you must define multiple target `file formats',
3334  as described in 
3335 \begin_inset CommandInset ref
3336 LatexCommand ref
3337 reference "sec:Formats"
3338 nolink "false"
3339
3340 \end_inset
3341
3342 .
3343  For example,
3344  in the standard configuration,
3345  the formats named 
3346 \begin_inset Flex Noun
3347 status collapsed
3348
3349 \begin_layout Plain Layout
3350 pdf
3351 \end_layout
3352
3353 \end_inset
3354
3355  (for 
3356 \begin_inset Flex Noun
3357 status collapsed
3358
3359 \begin_layout Plain Layout
3360 ps2pdf
3361 \end_layout
3362
3363 \end_inset
3364
3365 ),
3366  
3367 \begin_inset Flex Noun
3368 status collapsed
3369
3370 \begin_layout Plain Layout
3371 pdf2
3372 \end_layout
3373
3374 \end_inset
3375
3376  (for 
3377 \begin_inset Flex Noun
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 pdflatex
3382 \end_layout
3383
3384 \end_inset
3385
3386 ),
3387  
3388 \begin_inset Flex Noun
3389 status collapsed
3390
3391 \begin_layout Plain Layout
3392 pdf3
3393 \end_layout
3394
3395 \end_inset
3396
3397  (for 
3398 \begin_inset Flex Noun
3399 status collapsed
3400
3401 \begin_layout Plain Layout
3402 dvipdfm
3403 \end_layout
3404
3405 \end_inset
3406
3407 ),
3408  
3409 \begin_inset Flex Noun
3410 status collapsed
3411
3412 \begin_layout Plain Layout
3413 pdf4
3414 \end_layout
3415
3416 \end_inset
3417
3418  (for 
3419 \begin_inset Flex Noun
3420 status collapsed
3421
3422 \begin_layout Plain Layout
3423 Xe\SpecialChar TeX
3424
3425 \end_layout
3426
3427 \end_inset
3428
3429 ),
3430  and 
3431 \begin_inset Flex Noun
3432 status collapsed
3433
3434 \begin_layout Plain Layout
3435 pdf5
3436 \end_layout
3437
3438 \end_inset
3439
3440  (for 
3441 \begin_inset Flex Noun
3442 status collapsed
3443
3444 \begin_layout Plain Layout
3445 Lua\SpecialChar TeX
3446
3447 \end_layout
3448
3449 \end_inset
3450
3451 ) are defined,
3452  all of which share the extension 
3453 \begin_inset Flex Noun
3454 status collapsed
3455
3456 \begin_layout Plain Layout
3457 .pdf
3458 \end_layout
3459
3460 \end_inset
3461
3462 ,
3463  and which correspond to the conversion methods just mentioned.
3464 \end_layout
3465
3466 \begin_layout Chapter
3467 Internationalizing \SpecialChar LyX
3468
3469 \begin_inset CommandInset label
3470 LatexCommand label
3471 name "cha:Internationalizing-LyX"
3472
3473 \end_inset
3474
3475
3476 \end_layout
3477
3478 \begin_layout Standard
3479 \SpecialChar LyX
3480  supports using a translated interface.
3481  Last time we checked,
3482  \SpecialChar LyX
3483  provided text in thirty languages.
3484  The language of choice is called your 
3485 \emph on
3486 locale
3487 \emph default
3488 .
3489  (For further reading on locale settings,
3490  see also the documentation for locale that comes with your operating system.
3491  For Linux,
3492  the manual page for 
3493 \begin_inset Flex Code
3494 status collapsed
3495
3496 \begin_layout Plain Layout
3497 locale(5)
3498 \end_layout
3499
3500 \end_inset
3501
3502  could be a good place to start).
3503 \end_layout
3504
3505 \begin_layout Standard
3506 Notice that these translations will work,
3507  but do contain a few flaws.
3508  In particular,
3509  all dialogs have been designed with the English text in mind,
3510  which means that some of the translated text will be too large to fit within the space allocated.
3511  This is only a display problem and will not cause any harm.
3512  Also,
3513  you will find that some of the translations do not define shortcut keys for everything.
3514  Sometimes,
3515  there are simply not enough free letters to do it.
3516  Other times,
3517  the translator just hasn't got around to doing it yet.
3518  Our localization team,
3519  which you may wish to join,
3520 \begin_inset Foot
3521 status collapsed
3522
3523 \begin_layout Plain Layout
3524 If you are a fluent speaker of a language other than English,
3525  joining these teams is a great way to give back to the \SpecialChar LyX
3526  community!
3527 \end_layout
3528
3529 \end_inset
3530
3531  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3532 .
3533 \end_layout
3534
3535 \begin_layout Section
3536 Translating \SpecialChar LyX
3537
3538 \end_layout
3539
3540 \begin_layout Subsection
3541 Translating the graphical user interface (text messages).
3542 \end_layout
3543
3544 \begin_layout Standard
3545 \SpecialChar LyX
3546  uses the GNU 
3547 \begin_inset Flex Code
3548 status collapsed
3549
3550 \begin_layout Plain Layout
3551 gettext
3552 \end_layout
3553
3554 \end_inset
3555
3556  library to handle the internationalization of the interface.
3557  To have \SpecialChar LyX
3558  speak your favorite language in all menus and dialogs,
3559  you need a 
3560 \begin_inset Flex Code
3561 status collapsed
3562
3563 \begin_layout Plain Layout
3564 po
3565 \end_layout
3566
3567 \end_inset
3568
3569 -file for that language.
3570  When this is available,
3571  you'll have to generate a 
3572 \begin_inset Flex Code
3573 status collapsed
3574
3575 \begin_layout Plain Layout
3576 mo
3577 \end_layout
3578
3579 \end_inset
3580
3581 -file from it and install the 
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 mo
3587 \end_layout
3588
3589 \end_inset
3590
3591 -file.
3592  The process of doing all of this is explained in the documentation for GNU 
3593 \begin_inset Flex Code
3594 status collapsed
3595
3596 \begin_layout Plain Layout
3597 gettext
3598 \end_layout
3599
3600 \end_inset
3601
3602 .
3603  It is possible to do this just for yourself,
3604  but if you're going to do it,
3605  you might as well share the results of your labors with the rest of the \SpecialChar LyX
3606  community.
3607  Send a message to the \SpecialChar LyX
3608  developers' list for more information about how to proceed.
3609 \end_layout
3610
3611 \begin_layout Standard
3612 In short,
3613  this is what you should do (xx denotes the language code):
3614 \end_layout
3615
3616 \begin_layout Itemize
3617 Check out the \SpecialChar LyX
3618  source code.
3619  (See the 
3620 \begin_inset CommandInset href
3621 LatexCommand href
3622 name "information on the web"
3623 target "https://www.lyx.org/HowToUseGIT"
3624 literal "false"
3625
3626 \end_inset
3627
3628 .)
3629 \end_layout
3630
3631 \begin_layout Itemize
3632 Copy the file 
3633 \begin_inset Flex Code
3634 status collapsed
3635
3636 \begin_layout Plain Layout
3637 lyx.pot
3638 \end_layout
3639
3640 \end_inset
3641
3642  to the folder of the 
3643 \begin_inset Flex Code
3644 status collapsed
3645
3646 \begin_layout Plain Layout
3647 **.po
3648 \end_layout
3649
3650 \end_inset
3651
3652  files.
3653  Then rename it to 
3654 \begin_inset Flex Code
3655 status collapsed
3656
3657 \begin_layout Plain Layout
3658 xx.po
3659 \end_layout
3660
3661 \end_inset
3662
3663 .
3664  (If 
3665 \begin_inset Flex Code
3666 status collapsed
3667
3668 \begin_layout Plain Layout
3669 lyx.pot
3670 \end_layout
3671
3672 \end_inset
3673
3674  doesn't exist anywhere,
3675  it can be remade with the console command 
3676 \begin_inset Flex Code
3677 status collapsed
3678
3679 \begin_layout Plain Layout
3680 make lyx.pot
3681 \end_layout
3682
3683 \end_inset
3684
3685  in that directory,
3686  or you can use an existing po-file for some other language as a template).
3687 \end_layout
3688
3689 \begin_layout Itemize
3690 Edit 
3691 \begin_inset Flex Code
3692 status collapsed
3693
3694 \begin_layout Plain Layout
3695 xx.po
3696 \end_layout
3697
3698 \end_inset
3699
3700 .
3701 \begin_inset Foot
3702 status collapsed
3703
3704 \begin_layout Plain Layout
3705 This is just a text file,
3706  so it can be edited in any text editor.
3707  But there are also specialized programs that support such editing,
3708  such as 
3709 \family typewriter
3710 Poedit
3711 \family default
3712  (for all platforms) or 
3713 \family typewriter
3714 KBabel
3715 \family default
3716  (for KDE).
3717  
3718 \family typewriter
3719 Emacs
3720 \family default
3721  contains a `mode' for editing 
3722 \begin_inset Flex Code
3723 status collapsed
3724
3725 \begin_layout Plain Layout
3726 po
3727 \end_layout
3728
3729 \end_inset
3730
3731  files,
3732  as well,
3733  see 
3734 \begin_inset Flex URL
3735 status open
3736
3737 \begin_layout Plain Layout
3738
3739 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3740 \end_layout
3741
3742 \end_inset
3743
3744 .
3745 \end_layout
3746
3747 \end_inset
3748
3749  For some menu- and widget-labels,
3750  there are also shortcut keys that should be translated.
3751  Those keys are marked after a `|',
3752  and should be translated according to the words and phrases of the language.
3753  You should also fill also out the information at the beginning of the new 
3754 \begin_inset Flex Code
3755 status collapsed
3756
3757 \begin_layout Plain Layout
3758 po
3759 \end_layout
3760
3761 \end_inset
3762
3763 -file with your email-address,
3764  etc.,
3765  so people know where to reach you with suggestions and entertaining flames.
3766 \end_layout
3767
3768 \begin_layout Standard
3769 If you are just doing this on your own,
3770  then:
3771 \end_layout
3772
3773 \begin_layout Itemize
3774 Generate 
3775 \begin_inset Flex Code
3776 status collapsed
3777
3778 \begin_layout Plain Layout
3779 xx.mo
3780 \end_layout
3781
3782 \end_inset
3783
3784 .
3785  This can be done with 
3786 \begin_inset Flex Code
3787 status collapsed
3788
3789 \begin_layout Plain Layout
3790 msgfmt -o xx.mo < xx.po
3791 \end_layout
3792
3793 \end_inset
3794
3795 .
3796 \end_layout
3797
3798 \begin_layout Itemize
3799 Copy the 
3800 \begin_inset Flex Code
3801 status collapsed
3802
3803 \begin_layout Plain Layout
3804 mo
3805 \end_layout
3806
3807 \end_inset
3808
3809 -file to your locale-tree,
3810  at the correct directory for application messages for the language
3811 \series bold
3812  
3813 \series default
3814 xx,
3815  and under the name 
3816 \begin_inset Flex Code
3817 status collapsed
3818
3819 \begin_layout Plain Layout
3820 lyx.mo
3821 \end_layout
3822
3823 \end_inset
3824
3825  (e.
3826 \begin_inset space \thinspace{}
3827 \end_inset
3828
3829 g.
3830 \begin_inset space \space{}
3831 \end_inset
3832
3833
3834 \begin_inset Flex Code
3835 status collapsed
3836
3837 \begin_layout Plain Layout
3838 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3839 \end_layout
3840
3841 \end_inset
3842
3843
3844 \series bold
3845 .
3846 \end_layout
3847
3848 \begin_layout Standard
3849 As said,
3850  however,
3851  it would be best if the new 
3852 \begin_inset Flex Code
3853 status collapsed
3854
3855 \begin_layout Plain Layout
3856 po
3857 \end_layout
3858
3859 \end_inset
3860
3861  file could be added to the \SpecialChar LyX
3862  distribution,
3863  so others can use it.
3864  Adding it involves making additional changes to \SpecialChar LyX
3865 .
3866  So send an email to the developers' mailing list if you're interested in doing that.
3867 \end_layout
3868
3869 \begin_layout Subsubsection
3870 Ambiguous messages
3871 \end_layout
3872
3873 \begin_layout Standard
3874 Sometimes it turns out that one English message needs to be translated into different messages in the target language.
3875  One example is the message 
3876 \begin_inset Flex Code
3877 status collapsed
3878
3879 \begin_layout Plain Layout
3880 To
3881 \end_layout
3882
3883 \end_inset
3884
3885  which has the German translation 
3886 \lang german
3887 Nach
3888 \lang english
3889  or 
3890 \lang german
3891 Bis
3892 \lang english
3893 ,
3894  depending upon exactly what the English 
3895 \begin_inset Quotes eld
3896 \end_inset
3897
3898 to
3899 \begin_inset Quotes erd
3900 \end_inset
3901
3902  means.
3903  GNU 
3904 \begin_inset Flex Code
3905 status collapsed
3906
3907 \begin_layout Plain Layout
3908 gettext
3909 \end_layout
3910
3911 \end_inset
3912
3913  does not handle such ambiguous translations.
3914  Therefore you have to add some context information to the message:
3915  Instead of 
3916 \begin_inset Flex Code
3917 status collapsed
3918
3919 \begin_layout Plain Layout
3920 To
3921 \end_layout
3922
3923 \end_inset
3924
3925  it becomes 
3926 \begin_inset Flex Code
3927 status collapsed
3928
3929 \begin_layout Plain Layout
3930 To[[as in 'From format x to format y']]
3931 \end_layout
3932
3933 \end_inset
3934
3935  and 
3936 \begin_inset Flex Code
3937 status collapsed
3938
3939 \begin_layout Plain Layout
3940 To[[as in 'From page x to page y']].
3941 \end_layout
3942
3943 \end_inset
3944
3945  Now the two occurrences of 
3946 \begin_inset Flex Code
3947 status collapsed
3948
3949 \begin_layout Plain Layout
3950 To
3951 \end_layout
3952
3953 \end_inset
3954
3955  are different for 
3956 \begin_inset Flex Code
3957 status collapsed
3958
3959 \begin_layout Plain Layout
3960 gettext
3961 \end_layout
3962
3963 \end_inset
3964
3965  and can be translated correctly to 
3966 \lang german
3967 Nach
3968 \lang english
3969  and 
3970 \lang german
3971 Bis
3972 \lang english
3973 ,
3974  respectively.
3975 \end_layout
3976
3977 \begin_layout Standard
3978 Of course the context information needs to be stripped off the original message when no translation is used.
3979  Therefore you have to put it in double square brackets at the end of the message (see the example above).
3980  The translation mechanism of \SpecialChar LyX
3981  ensures that everything in double square brackets at the end of messages is removed before displaying the message.
3982 \end_layout
3983
3984 \begin_layout Subsection
3985 Translating the documentation.
3986 \end_layout
3987
3988 \begin_layout Standard
3989 The online documentation (in the 
3990 \begin_inset Flex Noun
3991 status collapsed
3992
3993 \begin_layout Plain Layout
3994 Help
3995 \end_layout
3996
3997 \end_inset
3998
3999 -menu) can (and should!) be translated.
4000  If there are translated versions of the documentation available
4001 \begin_inset Foot
4002 status collapsed
4003
4004 \begin_layout Plain Layout
4005 As of March 2008,
4006  at least some of the documents have been translated into fourteen languages,
4007  with the Tutorial available in a few more.
4008 \end_layout
4009
4010 \end_inset
4011
4012  and the locale is set accordingly,
4013  these will be used automagically by \SpecialChar LyX
4014 .
4015  \SpecialChar LyX
4016  looks for translated versions as 
4017 \begin_inset Flex Code
4018 status collapsed
4019
4020 \begin_layout Plain Layout
4021 LyXDir/doc/xx/DocName.lyx
4022 \end_layout
4023
4024 \end_inset
4025
4026 ,
4027  where 
4028 \begin_inset Flex Code
4029 status collapsed
4030
4031 \begin_layout Plain Layout
4032 xx
4033 \end_layout
4034
4035 \end_inset
4036
4037  is the code for the language currently in use.
4038  If there are no translated documents,
4039  the default English versions will be displayed.
4040  Note that the translated versions must have the same filenames (
4041 \begin_inset Flex Code
4042 status collapsed
4043
4044 \begin_layout Plain Layout
4045 DocName
4046 \end_layout
4047
4048 \end_inset
4049
4050  above) as the original.
4051  If you feel up to translating the documentation (an excellent way to proof-read the original documentation by the way!),
4052  there are a few things you should do right away:
4053 \end_layout
4054
4055 \begin_layout Itemize
4056 Check out the documentation translation web page at 
4057 \begin_inset CommandInset href
4058 LatexCommand href
4059 name "https://www.lyx.org/Translation"
4060 target "https://www.lyx.org/Translation"
4061 literal "false"
4062
4063 \end_inset
4064
4065 .
4066  That way,
4067  you can find out which (if any) documents have already been translated into your language.
4068  You can also find out who (if anyone) is organizing the effort to translate the documentation into your language.
4069  If no one is organizing the effort,
4070  please let us know that you're interested.
4071 \end_layout
4072
4073 \begin_layout Standard
4074 Once you get to actually translating,
4075  here's a few hints for you that may save you trouble:
4076 \end_layout
4077
4078 \begin_layout Itemize
4079 Join the documentation team!
4080  There is information on how to do that in 
4081 \begin_inset Flex Code
4082 status collapsed
4083
4084 \begin_layout Plain Layout
4085 Intro.lyx
4086 \end_layout
4087
4088 \end_inset
4089
4090  (
4091 \begin_inset Flex Noun
4092 status collapsed
4093
4094 \begin_layout Plain Layout
4095 Help\SpecialChar menuseparator
4096 Introduction
4097 \end_layout
4098
4099 \end_inset
4100
4101 ),
4102  which by the way is the first document you should translate.
4103 \end_layout
4104
4105 \begin_layout Itemize
4106 Learn the typographic conventions for the language you are translating to.
4107  Typography is an ancient art and over the centuries,
4108  a great variety of conventions have developed throughout different parts of the world.
4109  Also study the professional terminology amongst typographers in your country.
4110  Inventing your own terminology will only confuse the users.
4111  
4112 \emph on
4113 (Warning!
4114  Typography is addictive!)
4115 \end_layout
4116
4117 \begin_layout Itemize
4118 Make a copy of the document.
4119  This will be your working copy.
4120  You can use this as your personal translated help-file by placing it in your 
4121 \begin_inset Flex Code
4122 status collapsed
4123
4124 \begin_layout Plain Layout
4125 UserDir/doc/xx/
4126 \end_layout
4127
4128 \end_inset
4129
4130  directory.
4131 \begin_inset Note Greyedout
4132 status open
4133
4134 \begin_layout Plain Layout
4135
4136 \series bold
4137 Note:
4138
4139 \series default
4140  For a complex document with external material (images,
4141  etc.),
4142  if you make a copy e.
4143 \begin_inset space \thinspace{}
4144 \end_inset
4145
4146 g.
4147 \begin_inset space \space{}
4148 \end_inset
4149
4150 in a temp dir,
4151  beware that the links to external material may be broken when the document is moved to a different place.
4152  The best way is to retrieve the \SpecialChar LyX
4153  tree from git (see 
4154 \begin_inset Flex URL
4155 status collapsed
4156
4157 \begin_layout Plain Layout
4158
4159 https://www.lyx.org/HowToUseGIT
4160 \end_layout
4161
4162 \end_inset
4163
4164 ) and to edit the doc file in place.
4165 \end_layout
4166
4167 \end_inset
4168
4169
4170 \end_layout
4171
4172 \begin_layout Itemize
4173 Sometimes the original document (from the \SpecialChar LyX
4174  team) will be updated.
4175  Use the source viewer at 
4176 \begin_inset CommandInset href
4177 LatexCommand href
4178 name "https://www.lyx.org/trac/timeline"
4179 target "https://www.lyx.org/trac/timeline"
4180 literal "false"
4181
4182 \end_inset
4183
4184  to see what has been changed.
4185  That way you can easily see which parts of the translated document need to be updated.
4186 \end_layout
4187
4188 \begin_layout Standard
4189 If you ever find an error in the original document,
4190  fix it and notify the rest of the documentation team of the changes!
4191  (You didn't forget to join the documentation team,
4192  did you?)
4193 \end_layout
4194
4195 \begin_layout Standard
4196 \begin_inset Branch OutDated
4197 inverted 0
4198 status collapsed
4199
4200 \begin_layout Section
4201 International Keyboard Support
4202 \end_layout
4203
4204 \begin_layout Standard
4205
4206 \emph on
4207 [Editor's Note:
4208  The following section is by
4209 \emph default
4210  
4211 \shape smallcaps
4212 \emph on
4213 Ivan Schreter
4214 \shape default
4215 .
4216  It needs to be fixed to conform to the new Documentation Style sheet and to make use of the new v1.0 features.
4217  The whole thing also needs to be merged with the section following it.-jw It may also be badly out of date.-rh (2008)]
4218 \end_layout
4219
4220 \begin_layout Subsection
4221 Defining Own Keymaps:
4222  Keymap File Format
4223 \end_layout
4224
4225 \begin_layout Standard
4226 Let's look at a keyboard definition file a little closer.
4227  It is a plain text file defining
4228 \end_layout
4229
4230 \begin_layout Itemize
4231 key-to-key or key-to-string translations
4232 \end_layout
4233
4234 \begin_layout Itemize
4235 dead keys
4236 \end_layout
4237
4238 \begin_layout Itemize
4239 dead keys exceptions
4240 \end_layout
4241
4242 \begin_layout Standard
4243 To define key-to-key or key-to-string translation,
4244  use this command:
4245 \end_layout
4246
4247 \begin_layout Quotation
4248 \begin_inset Flex Code
4249 status collapsed
4250
4251 \begin_layout Plain Layout
4252
4253 \backslash
4254 kmap
4255 \end_layout
4256
4257 \end_inset
4258
4259  
4260 \begin_inset Flex Code
4261 status collapsed
4262
4263 \begin_layout Plain Layout
4264 key
4265 \end_layout
4266
4267 \end_inset
4268
4269  outstring 
4270 \end_layout
4271
4272 \begin_layout Standard
4273 where 
4274 \begin_inset Flex Code
4275 status collapsed
4276
4277 \begin_layout Plain Layout
4278 key
4279 \end_layout
4280
4281 \end_inset
4282
4283  is the key to be translated and 
4284 \begin_inset Flex Code
4285 status collapsed
4286
4287 \begin_layout Plain Layout
4288 outstring
4289 \end_layout
4290
4291 \end_inset
4292
4293  is the string to be inserted into the document.
4294  To define dead keys,
4295  use:
4296 \end_layout
4297
4298 \begin_layout Quotation
4299 \begin_inset Flex Code
4300 status collapsed
4301
4302 \begin_layout Plain Layout
4303
4304 \backslash
4305 kmod
4306 \end_layout
4307
4308 \end_inset
4309
4310  
4311 \begin_inset Flex Code
4312 status collapsed
4313
4314 \begin_layout Plain Layout
4315 key
4316 \end_layout
4317
4318 \end_inset
4319
4320  deadkey
4321 \end_layout
4322
4323 \begin_layout Standard
4324 where 
4325 \begin_inset Flex Code
4326 status collapsed
4327
4328 \begin_layout Plain Layout
4329 key
4330 \end_layout
4331
4332 \end_inset
4333
4334  is a keyboard key and 
4335 \begin_inset Flex Code
4336 status collapsed
4337
4338 \begin_layout Plain Layout
4339 deadkey
4340 \end_layout
4341
4342 \end_inset
4343
4344  is dead key name.
4345  The following dead keys are supported (shortcut name is in parentheses):
4346 \end_layout
4347
4348 \begin_layout Quotation
4349
4350 \emph on
4351 Name
4352 \begin_inset space \hfill{}
4353 \end_inset
4354
4355 Example
4356 \end_layout
4357
4358 \begin_layout Quotation
4359 acute (acu)
4360 \begin_inset space \hfill{}
4361 \end_inset
4362
4363 áéíóú
4364 \end_layout
4365
4366 \begin_layout Quotation
4367 grave (gra)
4368 \begin_inset space \hfill{}
4369 \end_inset
4370
4371 àèìòù
4372 \end_layout
4373
4374 \begin_layout Quotation
4375 macron (mac)
4376 \begin_inset space \hfill{}
4377 \end_inset
4378
4379  ō
4380 \end_layout
4381
4382 \begin_layout Quotation
4383 tilde (til)
4384 \begin_inset space \hfill{}
4385 \end_inset
4386
4387 ñÑ
4388 \end_layout
4389
4390 \begin_layout Quotation
4391 underbar (underb)
4392 \begin_inset space \hfill{}
4393 \end_inset
4394
4395
4396 \begin_inset ERT
4397 status open
4398
4399 \begin_layout Plain Layout
4400
4401
4402 \backslash
4403 b o
4404 \end_layout
4405
4406 \end_inset
4407
4408
4409 \end_layout
4410
4411 \begin_layout Quotation
4412 cedilla (ced)
4413 \begin_inset space \hfill{}
4414 \end_inset
4415
4416 çÇ
4417 \end_layout
4418
4419 \begin_layout Quotation
4420 underdot (underd)
4421 \begin_inset space \hfill{}
4422 \end_inset
4423
4424
4425 \begin_inset ERT
4426 status open
4427
4428 \begin_layout Plain Layout
4429
4430
4431 \backslash
4432 d o
4433 \end_layout
4434
4435 \end_inset
4436
4437
4438 \end_layout
4439
4440 \begin_layout Quotation
4441 circumflex (circu)
4442 \begin_inset space \hfill{}
4443 \end_inset
4444
4445 âêîôû
4446 \end_layout
4447
4448 \begin_layout Quotation
4449 circle (circl)
4450 \begin_inset space \hfill{}
4451 \end_inset
4452
4453 ÅůŮ
4454 \end_layout
4455
4456 \begin_layout Quotation
4457 tie (tie)
4458 \begin_inset space \hfill{}
4459 \end_inset
4460
4461
4462 \begin_inset ERT
4463 status open
4464
4465 \begin_layout Plain Layout
4466
4467
4468 \backslash
4469 t o
4470 \end_layout
4471
4472 \end_inset
4473
4474
4475 \end_layout
4476
4477 \begin_layout Quotation
4478 breve (bre)
4479 \begin_inset space \hfill{}
4480 \end_inset
4481
4482 ă
4483 \begin_inset ERT
4484 status open
4485
4486 \begin_layout Plain Layout
4487
4488
4489 \backslash
4490 u o
4491 \end_layout
4492
4493 \end_inset
4494
4495
4496 \end_layout
4497
4498 \begin_layout Quotation
4499 caron (car)
4500 \begin_inset space \hfill{}
4501 \end_inset
4502
4503 čšž
4504 \end_layout
4505
4506 \begin_layout Quotation
4507 hungarian umlaut (hug)
4508 \begin_inset space \hfill{}
4509 \end_inset
4510
4511 őű
4512 \end_layout
4513
4514 \begin_layout Quotation
4515 umlaut (uml)
4516 \begin_inset space \hfill{}
4517 \end_inset
4518
4519 äöü
4520 \end_layout
4521
4522 \begin_layout Quotation
4523 dot (dot)
4524 \begin_inset space \hfill{}
4525 \end_inset
4526
4527 ż
4528 \begin_inset ERT
4529 status open
4530
4531 \begin_layout Plain Layout
4532
4533
4534 \backslash
4535 .s
4536 \end_layout
4537
4538 \end_inset
4539
4540
4541 \end_layout
4542
4543 \begin_layout Standard
4544 Since in many international keyboards there are exceptions to what some dead keys should do,
4545  you can define them using
4546 \end_layout
4547
4548 \begin_layout Quotation
4549 \begin_inset Flex Code
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553
4554 \backslash
4555 kxmod
4556 \end_layout
4557
4558 \end_inset
4559
4560  deadkey key outstring
4561 \end_layout
4562
4563 \begin_layout Standard
4564 For example,
4565  on Slovak keyboard,
4566  if you enter caron-o,
4567  it generates circumflex-o,
4568  so you put in
4569 \end_layout
4570
4571 \begin_layout Quotation
4572 \begin_inset Flex Code
4573 status collapsed
4574
4575 \begin_layout Plain Layout
4576
4577 \backslash
4578 kxmod
4579 \end_layout
4580
4581 \end_inset
4582
4583  caron o "
4584 \backslash
4585 ^o"
4586 \end_layout
4587
4588 \begin_layout Standard
4589 to make it work correctly.
4590  Also,
4591  you have to define as exceptions dead keys over i and j,
4592  to remove the dot from them before inserting an accent mark.
4593  I will change this when the time comes,
4594  but so far I haven't had time.
4595 \end_layout
4596
4597 \begin_layout Standard
4598 Oh,
4599  and about characters:
4600  backslash is escaped,
4601  so to enter it,
4602  you'll need double backslash.
4603  Also,
4604  quotes and 
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609 #
4610 \end_layout
4611
4612 \end_inset
4613
4614  have different meaning.
4615  
4616 \begin_inset Flex Code
4617 status collapsed
4618
4619 \begin_layout Plain Layout
4620 #
4621 \end_layout
4622
4623 \end_inset
4624
4625  marks comments,
4626  quotes start and end \SpecialChar LaTeX
4627 -style commands.
4628  To enter quote,
4629  you'll need to use 
4630 \begin_inset Flex Code
4631 status collapsed
4632
4633 \begin_layout Plain Layout
4634
4635 \backslash
4636 "
4637 \end_layout
4638
4639 \end_inset
4640
4641 ,
4642  to enter 
4643 \begin_inset Flex Code
4644 status collapsed
4645
4646 \begin_layout Plain Layout
4647 #
4648 \end_layout
4649
4650 \end_inset
4651
4652 ,
4653  use 
4654 \begin_inset Flex Code
4655 status collapsed
4656
4657 \begin_layout Plain Layout
4658
4659 \backslash
4660 #
4661 \end_layout
4662
4663 \end_inset
4664
4665 .
4666 \end_layout
4667
4668 \begin_layout Standard
4669 If you make a keyboard description file that works for your language,
4670  please mail it to me,
4671  so I can include it in the next keymap distribution.
4672 \end_layout
4673
4674 \begin_layout Standard
4675 More keywords will be supported in keymap configuration file in future,
4676  like
4677 \end_layout
4678
4679 \begin_layout Itemize
4680 \begin_inset Flex Code
4681 status collapsed
4682
4683 \begin_layout Plain Layout
4684
4685 \backslash
4686 kinclude filename
4687 \end_layout
4688
4689 \end_inset
4690
4691
4692 \emph on
4693
4694 \begin_inset space \hfill{}
4695 \end_inset
4696
4697
4698 \begin_inset Flex Code
4699 status collapsed
4700
4701 \begin_layout Plain Layout
4702 include
4703 \end_layout
4704
4705 \end_inset
4706
4707  another file
4708 \end_layout
4709
4710 \begin_layout Itemize
4711 \begin_inset Flex Code
4712 status collapsed
4713
4714 \begin_layout Plain Layout
4715
4716 \backslash
4717 kprog program
4718 \end_layout
4719
4720 \end_inset
4721
4722
4723 \emph on
4724
4725 \begin_inset space \hfill{}
4726 \end_inset
4727
4728
4729 \begin_inset Flex Code
4730 status collapsed
4731
4732 \begin_layout Plain Layout
4733 define
4734 \end_layout
4735
4736 \end_inset
4737
4738  an external keymap translation program 
4739 \end_layout
4740
4741 \begin_layout Standard
4742 Also,
4743  it should look into 
4744 \begin_inset Flex Code
4745 status collapsed
4746
4747 \begin_layout Plain Layout
4748 lyxrc
4749 \end_layout
4750
4751 \end_inset
4752
4753  file for defaults,
4754  too (for example,
4755  a 
4756 \begin_inset Flex Code
4757 status collapsed
4758
4759 \begin_layout Plain Layout
4760
4761 \backslash
4762 kinclude
4763 \end_layout
4764
4765 \end_inset
4766
4767  option to include default keyboard).
4768 \end_layout
4769
4770 \end_inset
4771
4772
4773 \end_layout
4774
4775 \begin_layout Section
4776 International Keymap Stuff
4777 \begin_inset CommandInset label
4778 LatexCommand label
4779 name "sec:International-Keymap-Stuff"
4780
4781 \end_inset
4782
4783
4784 \end_layout
4785
4786 \begin_layout Standard
4787 \begin_inset Note Note
4788 status open
4789
4790 \begin_layout Plain Layout
4791 In doing the revisions on this document in March 2008,
4792  I did not look over this stuff,
4793  as I do not understand it.
4794  It would be good if someone else could do so.
4795  (RH)
4796 \end_layout
4797
4798 \end_inset
4799
4800
4801 \end_layout
4802
4803 \begin_layout Standard
4804 The next two sections describe the 
4805 \begin_inset Flex Code
4806 status collapsed
4807
4808 \begin_layout Plain Layout
4809
4810 \shape up
4811 .kmap
4812 \end_layout
4813
4814 \end_inset
4815
4816  and 
4817 \begin_inset Flex Code
4818 status collapsed
4819
4820 \begin_layout Plain Layout
4821
4822 \shape up
4823 .cdef
4824 \end_layout
4825
4826 \end_inset
4827
4828  file syntax in detail.
4829  These sections should help you design your own key map if the ones provided do not meet your needs.
4830 \end_layout
4831
4832 \begin_layout Subsection
4833 The .kmap File
4834 \end_layout
4835
4836 \begin_layout Standard
4837
4838 \shape up
4839 .
4840 \begin_inset Flex Code
4841 status collapsed
4842
4843 \begin_layout Plain Layout
4844 kmap
4845 \end_layout
4846
4847 \end_inset
4848
4849  file maps keystrokes to characters or strings.
4850  As the name suggests,
4851  it sets a keyboard mapping.
4852  The 
4853 \begin_inset Flex Code
4854 status collapsed
4855
4856 \begin_layout Plain Layout
4857 .kmap
4858 \end_layout
4859
4860 \end_inset
4861
4862
4863 \shape default
4864  file keywords 
4865 \shape up
4866
4867 \begin_inset Flex Code
4868 status collapsed
4869
4870 \begin_layout Plain Layout
4871
4872 \shape up
4873 kmap
4874 \end_layout
4875
4876 \end_inset
4877
4878
4879 \shape default
4880 ,
4881
4882 \shape up
4883  
4884 \shape default
4885
4886 \begin_inset Flex Code
4887 status collapsed
4888
4889 \begin_layout Plain Layout
4890
4891 \shape up
4892 kmod
4893 \end_layout
4894
4895 \end_inset
4896
4897 ,
4898
4899 \shape up
4900  
4901 \shape default
4902
4903 \begin_inset Flex Code
4904 status collapsed
4905
4906 \begin_layout Plain Layout
4907
4908 \shape up
4909 kxmod
4910 \end_layout
4911
4912 \end_inset
4913
4914 ,
4915  and 
4916 \begin_inset Flex Code
4917 status collapsed
4918
4919 \begin_layout Plain Layout
4920
4921 \shape up
4922 kcomb
4923 \end_layout
4924
4925 \end_inset
4926
4927  are described in this section.
4928 \end_layout
4929
4930 \begin_layout Labeling
4931 \labelwidthstring 00.00.0000
4932 \begin_inset Flex Code
4933 status collapsed
4934
4935 \begin_layout Plain Layout
4936
4937 \shape up
4938 kmap
4939 \end_layout
4940
4941 \end_inset
4942
4943  Map a character to a string
4944 \end_layout
4945
4946 \begin_layout LyX-Code
4947
4948 \backslash
4949 kmap 
4950 \family roman
4951 \emph on
4952 char
4953 \family default
4954 \emph default
4955  
4956 \family roman
4957 \emph on
4958 string
4959 \end_layout
4960
4961 \begin_layout Standard
4962 This will ma
4963 \family roman
4964 p
4965 \family default
4966  
4967 \family roman
4968 \emph on
4969 char
4970 \family default
4971 \emph default
4972  
4973 \family roman
4974 to
4975 \family default
4976  
4977 \family roman
4978 \emph on
4979 string
4980 \emph default
4981 .
4982  Note that in
4983 \family default
4984  
4985 \family roman
4986 \emph on
4987 string
4988 \emph default
4989 ,
4990
4991 \family default
4992  
4993 \family roman
4994 \shape up
4995 the double-quote (")
4996 \family default
4997 \shape default
4998  
4999 \family roman
5000 and
5001 \family default
5002  
5003 \family roman
5004 \shape up
5005 the backslash (
5006 \backslash
5007 )
5008 \family default
5009 \shape default
5010  
5011 \family roman
5012 must be escaped with a preceding backslash (
5013 \shape up
5014
5015 \backslash
5016
5017 \shape default
5018 )
5019 \family default
5020 .
5021 \end_layout
5022
5023 \begin_layout Standard
5024 An example of a 
5025 \begin_inset Flex Noun
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029
5030 \shape up
5031 kmap
5032 \end_layout
5033
5034 \end_inset
5035
5036  statement to cause the symbol 
5037 \begin_inset Flex Noun
5038 status collapsed
5039
5040 \begin_layout Plain Layout
5041
5042 \shape up
5043 /
5044 \end_layout
5045
5046 \end_inset
5047
5048  to be output for the keystroke 
5049 \begin_inset Flex Noun
5050 status collapsed
5051
5052 \begin_layout Plain Layout
5053
5054 \shape up
5055 &
5056 \end_layout
5057
5058 \end_inset
5059
5060  is:
5061 \end_layout
5062
5063 \begin_layout LyX-Code
5064
5065 \backslash
5066 kmap & /
5067 \end_layout
5068
5069 \begin_layout Labeling
5070 \labelwidthstring 00.00.0000
5071 \begin_inset Flex Code
5072 status collapsed
5073
5074 \begin_layout Plain Layout
5075
5076 \shape up
5077 kmod
5078 \end_layout
5079
5080 \end_inset
5081
5082  Specify an accent character
5083 \end_layout
5084
5085 \begin_layout LyX-Code
5086
5087 \backslash
5088 kmod 
5089 \family roman
5090 \emph on
5091 char accent allowed
5092 \end_layout
5093
5094 \begin_layout Standard
5095 This will make the cha
5096 \family roman
5097 racter
5098 \family default
5099  
5100 \family roman
5101 \emph on
5102 char
5103 \family default
5104 \emph default
5105  
5106 \family roman
5107 \shape up
5108 \emph on
5109 be an accent
5110 \family default
5111 \shape default
5112 \emph default
5113  
5114 \family roman
5115 \shape up
5116 on the
5117 \family default
5118 \shape default
5119  
5120 \family roman
5121 \shape up
5122 \emph on
5123 allowed
5124 \family default
5125 \shape default
5126 \emph default
5127  
5128 \family roman
5129 \shape up
5130 cha
5131 \family default
5132 racter(s).
5133  This is the dead key
5134 \begin_inset Foot
5135 status collapsed
5136
5137 \begin_layout Plain Layout
5138 The term 
5139 \family roman
5140 \emph on
5141 dead key
5142 \family default
5143 \emph default
5144  refers to a key that does not produce a character by itself,
5145  but when followed with another key,
5146  produces the desired accent character.
5147  For example,
5148  a German characte
5149 \family roman
5150 r with an umlaut like
5151 \family default
5152  
5153 \family roman
5154 \emph on
5155 ä
5156 \family default
5157 \emph default
5158  
5159 \family roman
5160 can be produced in this manner.
5161 \end_layout
5162
5163 \end_inset
5164
5165  mechanism.
5166  
5167 \end_layout
5168
5169 \begin_layout Standard
5170 If you 
5171 \family roman
5172 hit
5173 \family default
5174  
5175 \family roman
5176 \emph on
5177 char
5178 \family default
5179 \emph default
5180  
5181 \family roman
5182 and then another key not in
5183 \family default
5184  
5185 \family roman
5186 \emph on
5187 allowed
5188 \emph default
5189 ,
5190  you will get a
5191 \family default
5192  
5193 \family roman
5194 \emph on
5195 char
5196 \family default
5197 \emph default
5198  
5199 \family roman
5200 followed by the other,
5201  not allowed key,
5202  as output.
5203
5204 \family default
5205  Note that a 
5206 \begin_inset Flex Noun
5207 status collapsed
5208
5209 \begin_layout Plain Layout
5210
5211 \shape up
5212 Backspace
5213 \end_layout
5214
5215 \end_inset
5216
5217  cancels a dead key,
5218  so if 
5219 \family roman
5220 you hit
5221 \family default
5222  
5223 \family roman
5224 \emph on
5225 char
5226 \family default
5227 \emph default
5228  
5229 \begin_inset Flex Noun
5230 status collapsed
5231
5232 \begin_layout Plain Layout
5233
5234 \shape up
5235 \emph on
5236 Backspace
5237 \end_layout
5238
5239 \end_inset
5240
5241 ,
5242  the cursor will not go one position backwards but will instead cancel the effect t
5243 \family roman
5244 hat
5245 \family default
5246  
5247 \family roman
5248 \shape up
5249 \emph on
5250 char
5251 \family default
5252 \shape default
5253 \emph default
5254  
5255 \family roman
5256 \shape up
5257 might have had on the next keystroke.
5258  
5259 \end_layout
5260
5261 \begin_layout Standard
5262 The following example specifies that the character ' is to be an acute accent,
5263  allowed on the characters a,
5264  e,
5265  i,
5266  o,
5267  u,
5268  A,
5269  E,
5270  I,
5271  O,
5272  and U:
5273 \end_layout
5274
5275 \begin_layout LyX-Code
5276
5277 \backslash
5278 kmod ' acute aeiouAEIOU
5279 \end_layout
5280
5281 \begin_layout Labeling
5282 \labelwidthstring 00.00.0000
5283 \begin_inset Flex Code
5284 status collapsed
5285
5286 \begin_layout Plain Layout
5287 kxmod
5288 \end_layout
5289
5290 \end_inset
5291
5292  Specify an exception to the accent character
5293 \end_layout
5294
5295 \begin_layout LyX-Code
5296
5297 \backslash
5298 kxmod  
5299 \family roman
5300 \emph on
5301 accent char result
5302 \end_layout
5303
5304 \begin_layout Standard
5305 This defines an exce
5306 \family roman
5307 ption for
5308 \family default
5309  
5310 \family roman
5311 \emph on
5312 accent
5313 \family default
5314 \emph default
5315  
5316 \family roman
5317 on
5318 \family default
5319  
5320 \family roman
5321 \emph on
5322 char
5323 \emph default
5324 .
5325  T
5326 \shape up
5327 he
5328 \family default
5329 \shape default
5330  
5331 \family roman
5332 \shape up
5333 \emph on
5334 accent
5335 \family default
5336 \shape default
5337 \emph default
5338  
5339 \family roman
5340 \shape up
5341 must
5342 \family default
5343 \shape default
5344  
5345 \shape up
5346 have been assigned a keystroke with a previous
5347 \shape default
5348  
5349 \begin_inset Flex Code
5350 status collapsed
5351
5352 \begin_layout Plain Layout
5353
5354 \shape up
5355
5356 \backslash
5357 kmo
5358 \shape default
5359 d
5360 \end_layout
5361
5362 \end_inset
5363
5364  declar
5365 \family roman
5366 ation and
5367 \family default
5368  
5369 \family roman
5370 \emph on
5371 char
5372 \family default
5373 \emph default
5374  
5375 \family roman
5376 must not belong in the
5377 \family default
5378  
5379 \family roman
5380 \emph on
5381 allowed
5382 \family default
5383 \emph default
5384  
5385 \family roman
5386 set of
5387 \family default
5388  
5389 \family roman
5390 \emph on
5391 accent
5392 \emph default
5393 .
5394  When
5395 \family default
5396  
5397 \family roman
5398 \shape up
5399 you enter the
5400 \family default
5401 \shape default
5402  
5403 \family roman
5404 \shape up
5405 \emph on
5406 accent char
5407 \family default
5408 \shape default
5409 \emph default
5410  
5411 \family roman
5412 \shape up
5413 sequence,
5414
5415 \family default
5416 \shape default
5417  
5418 \family roman
5419 \shape up
5420 \emph on
5421 result
5422 \emph default
5423  is produced.
5424  If such a declaration does not exist in
5425 \family default
5426 \shape default
5427  
5428 \shape up
5429 the
5430 \shape default
5431  
5432 \begin_inset Flex Code
5433 status collapsed
5434
5435 \begin_layout Plain Layout
5436
5437 \shape up
5438 .kmap
5439 \end_layout
5440
5441 \end_inset
5442
5443  file and yo
5444 \family roman
5445 u enter
5446 \family default
5447  
5448 \family roman
5449 \emph on
5450 accent char
5451 \emph default
5452 ,
5453  you get
5454 \family default
5455  
5456 \family roman
5457 \emph on
5458 accent_key char
5459 \emph default
5460  where
5461 \family default
5462  
5463 \family roman
5464 \emph on
5465 accent_key
5466 \emph default
5467  is the first arg
5468 \family default
5469 ument of the 
5470 \begin_inset Flex Code
5471 status collapsed
5472
5473 \begin_layout Plain Layout
5474
5475 \shape up
5476
5477 \backslash
5478 kmod
5479 \end_layout
5480
5481 \end_inset
5482
5483  declaration.
5484  
5485 \end_layout
5486
5487 \begin_layout Standard
5488 The following command produces causes äi to be produced when you enter acute-i ('i):
5489 \end_layout
5490
5491 \begin_layout LyX-Code
5492
5493 \backslash
5494 kxmod acute i "
5495 \backslash
5496
5497 \backslash
5498 '{
5499 \backslash
5500
5501 \backslash
5502 i}"
5503 \end_layout
5504
5505 \begin_layout Labeling
5506 \labelwidthstring 00.00.0000
5507 \begin_inset Flex Code
5508 status collapsed
5509
5510 \begin_layout Plain Layout
5511 kcomb
5512 \end_layout
5513
5514 \end_inset
5515
5516  Combine two accent characters
5517 \end_layout
5518
5519 \begin_layout LyX-Code
5520
5521 \backslash
5522 kcomb 
5523 \family roman
5524 \emph on
5525 accent1 accent2 allowed
5526 \end_layout
5527
5528 \begin_layout Standard
5529 This one is getting pretty esoteric.
5530  It allows you to combine the effect 
5531 \family roman
5532 of
5533 \family default
5534  
5535 \family roman
5536 \emph on
5537 accent1
5538 \family default
5539 \emph default
5540  
5541 \family roman
5542 and
5543 \family default
5544  
5545 \family roman
5546 \emph on
5547 accent2
5548 \family default
5549 \emph default
5550  
5551 \family roman
5552 (in that order!) on
5553 \family default
5554  
5555 \family roman
5556 \emph on
5557 allowed
5558 \family default
5559 \emph default
5560  
5561 \family roman
5562 chars.
5563  The keystrokes for
5564 \family default
5565  
5566 \family roman
5567 \emph on
5568 accent1
5569 \family default
5570 \emph default
5571  
5572 \family roman
5573 and
5574 \family default
5575  
5576 \family roman
5577 \emph on
5578 accent2
5579 \family default
5580 \emph default
5581  
5582 \family roman
5583 must have be
5584 \family default
5585 en set with a 
5586 \begin_inset Flex Code
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590
5591 \shape up
5592
5593 \backslash
5594 kmod
5595 \end_layout
5596
5597 \end_inset
5598
5599  command at 
5600 \family roman
5601 a
5602 \family default
5603  
5604 \family roman
5605 \emph on
5606 previous
5607 \family default
5608 \emph default
5609  
5610 \family roman
5611 point in the
5612 \family default
5613  file.
5614  
5615 \end_layout
5616
5617 \begin_layout Standard
5618 Consider this example from the 
5619 \begin_inset Flex Code
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623
5624 \shape up
5625 greek.kmap
5626 \end_layout
5627
5628 \end_inset
5629
5630  file:
5631 \end_layout
5632
5633 \begin_layout LyX-Code
5634
5635 \backslash
5636 kmod ;
5637  acute aeioyvhAEIOYVH 
5638 \backslash
5639 kmod :
5640  umlaut iyIY 
5641 \backslash
5642 kcomb acute umlaut iyIY
5643 \end_layout
5644
5645 \begin_layout Standard
5646 This allows you to press 
5647 \begin_inset Flex Noun
5648 status collapsed
5649
5650 \begin_layout Plain Layout
5651
5652 \shape up
5653 ;:i
5654 \end_layout
5655
5656 \end_inset
5657
5658  and get the effect of 
5659 \begin_inset Flex Code
5660 status collapsed
5661
5662 \begin_layout Plain Layout
5663
5664 \shape up
5665
5666 \backslash
5667 '{
5668 \backslash
5669 "{i}}
5670 \end_layout
5671
5672 \end_inset
5673
5674 .
5675  
5676 \family roman
5677 \shape up
5678 A backspace
5679 \family default
5680 \shape default
5681  in this case cancels the last dead key,
5682  so if you press 
5683 \begin_inset Flex Noun
5684 status collapsed
5685
5686 \begin_layout Plain Layout
5687
5688 \shape up
5689 ;:
5690  Backspace i
5691 \end_layout
5692
5693 \end_inset
5694
5695  you get 
5696 \begin_inset Flex Code
5697 status collapsed
5698
5699 \begin_layout Plain Layout
5700
5701 \shape up
5702
5703 \backslash
5704 '{i}
5705 \end_layout
5706
5707 \end_inset
5708
5709 .
5710 \end_layout
5711
5712 \begin_layout Subsection
5713 The .cdef File
5714 \end_layout
5715
5716 \begin_layout Standard
5717 After the 
5718 \begin_inset Flex Code
5719 status collapsed
5720
5721 \begin_layout Plain Layout
5722
5723 \shape up
5724 .kmap
5725 \end_layout
5726
5727 \end_inset
5728
5729  mapping is performed,
5730  a 
5731 \begin_inset Flex Code
5732 status collapsed
5733
5734 \begin_layout Plain Layout
5735
5736 \shape up
5737 .cde
5738 \shape default
5739 f
5740 \end_layout
5741
5742 \end_inset
5743
5744  file maps the strings that the symbols generate to characters in the current font.
5745  The \SpecialChar LyX
5746  distribution currently includes at least the 
5747 \begin_inset Flex Code
5748 status collapsed
5749
5750 \begin_layout Plain Layout
5751
5752 \shape up
5753 iso8859-1.cdef
5754 \end_layout
5755
5756 \end_inset
5757
5758  and 
5759 \begin_inset Flex Code
5760 status collapsed
5761
5762 \begin_layout Plain Layout
5763
5764 \shape up
5765 iso8859-2.cdef
5766 \end_layout
5767
5768 \end_inset
5769
5770  files.
5771 \end_layout
5772
5773 \begin_layout Standard
5774 In general the 
5775 \begin_inset Flex Code
5776 status collapsed
5777
5778 \begin_layout Plain Layout
5779
5780 \shape up
5781 .cdef
5782 \end_layout
5783
5784 \end_inset
5785
5786  file is a sequence of declarations of the form
5787 \end_layout
5788
5789 \begin_layout LyX-Code
5790
5791 \family roman
5792 \emph on
5793 char_index_in_set
5794 \family default
5795 \emph default
5796  
5797 \family roman
5798 \emph on
5799  string
5800 \end_layout
5801
5802 \begin_layout Standard
5803 For example,
5804  in order to map 
5805 \begin_inset Flex Noun
5806 status collapsed
5807
5808 \begin_layout Plain Layout
5809
5810 \shape up
5811
5812 \backslash
5813 '{e}
5814 \end_layout
5815
5816 \end_inset
5817
5818  to the corresponding character in the iso-8859-1 set (233),
5819  the following declaration is used
5820 \end_layout
5821
5822 \begin_layout LyX-Code
5823 233 "
5824 \backslash
5825
5826 \backslash
5827 '{e}"
5828 \end_layout
5829
5830 \begin_layout Standard
5831 with 
5832 \begin_inset Flex Code
5833 status collapsed
5834
5835 \begin_layout Plain Layout
5836
5837 \backslash
5838
5839 \end_layout
5840
5841 \end_inset
5842
5843  and 
5844 \begin_inset Flex Code
5845 status collapsed
5846
5847 \begin_layout Plain Layout
5848 "
5849 \end_layout
5850
5851 \end_inset
5852
5853  being escap
5854 \family roman
5855 ed in
5856 \family default
5857  
5858 \family roman
5859 \emph on
5860 string
5861 \emph default
5862 .
5863  Note that
5864 \family default
5865  the same character can apply to more than one string.
5866  In the 
5867 \begin_inset Flex Code
5868 status collapsed
5869
5870 \begin_layout Plain Layout
5871 i
5872 \shape up
5873 so-8859-7.cdef
5874 \end_layout
5875
5876 \end_inset
5877
5878  file you have
5879 \end_layout
5880
5881 \begin_layout LyX-Code
5882 192 "
5883 \backslash
5884
5885 \backslash
5886 '{
5887 \backslash
5888
5889 \backslash
5890
5891 \backslash
5892 "{i}}"
5893 \begin_inset Newline newline
5894 \end_inset
5895
5896 192 "
5897 \backslash
5898
5899 \backslash
5900
5901 \backslash
5902 "{
5903 \backslash
5904
5905 \backslash
5906 '{i}}"
5907 \end_layout
5908
5909 \begin_layout Standard
5910 If \SpecialChar LyX
5911  cannot find a mapping for the string produced by the keystroke or a deadkey sequence,
5912  it will check if it looks like an accented char and try to draw an accent over the character on screen.
5913 \end_layout
5914
5915 \begin_layout Subsection
5916 Dead Keys
5917 \end_layout
5918
5919 \begin_layout Standard
5920 There is a second way to add support for international characters through so-called dead-keys.
5921  A dead-key works in combination with a letter to produce an accented character.
5922  Here,
5923  we'll explain how to create a really simple dead-key to illustrate how they work.
5924 \end_layout
5925
5926 \begin_layout Standard
5927 Suppose you happen to need the circumflex character,
5928  
5929 \begin_inset Quotes eld
5930 \end_inset
5931
5932  ̂
5933 \begin_inset Quotes erd
5934 \end_inset
5935
5936 .
5937  You could bind the 
5938 \begin_inset Flex Noun
5939 status collapsed
5940
5941 \begin_layout Plain Layout
5942 ^
5943 \end_layout
5944
5945 \end_inset
5946
5947 -key [a.k.a.
5948 \begin_inset space ~
5949 \end_inset
5950
5951
5952 \begin_inset Flex Noun
5953 status collapsed
5954
5955 \begin_layout Plain Layout
5956 Shift-6
5957 \end_layout
5958
5959 \end_inset
5960
5961 ] to the \SpecialChar LyX
5962  command 
5963 \begin_inset Flex Code
5964 status collapsed
5965
5966 \begin_layout Plain Layout
5967 accent-circumflex
5968 \end_layout
5969
5970 \end_inset
5971
5972  in your 
5973 \begin_inset Flex Code
5974 status collapsed
5975
5976 \begin_layout Plain Layout
5977 lyxrc
5978 \end_layout
5979
5980 \end_inset
5981
5982  file.
5983  Now,
5984  whenever you type the 
5985 \begin_inset Flex Noun
5986 status collapsed
5987
5988 \begin_layout Plain Layout
5989 ^
5990 \end_layout
5991
5992 \end_inset
5993
5994 -key followed by a letter,
5995  that letter will have a circumflex accent on it.
5996  For example,
5997  the sequence 
5998 \begin_inset Quotes eld
5999 \end_inset
6000
6001
6002 \begin_inset Flex Noun
6003 status collapsed
6004
6005 \begin_layout Plain Layout
6006 ^e
6007 \end_layout
6008
6009 \end_inset
6010
6011
6012 \begin_inset Quotes erd
6013 \end_inset
6014
6015  produces the letter:
6016  
6017 \begin_inset Quotes eld
6018 \end_inset
6019
6020 ê
6021 \begin_inset Quotes erd
6022 \end_inset
6023
6024 .
6025  If you tried to type 
6026 \begin_inset Quotes eld
6027 \end_inset
6028
6029
6030 \begin_inset Flex Noun
6031 status collapsed
6032
6033 \begin_layout Plain Layout
6034 ^t
6035 \end_layout
6036
6037 \end_inset
6038
6039
6040 \begin_inset Quotes erd
6041 \end_inset
6042
6043 ,
6044  however,
6045  \SpecialChar LyX
6046  will complain with a beep,
6047  since a 
6048 \begin_inset Quotes eld
6049 \end_inset
6050
6051
6052 \begin_inset Flex Noun
6053 status collapsed
6054
6055 \begin_layout Plain Layout
6056 t
6057 \end_layout
6058
6059 \end_inset
6060
6061
6062 \begin_inset Quotes erd
6063 \end_inset
6064
6065  never takes a circumflex accent.
6066  Hitting 
6067 \begin_inset Flex Noun
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 Space
6072 \end_layout
6073
6074 \end_inset
6075
6076  after a dead-key produces the bare-accent.
6077  Please note this last point!
6078  If you bind a key to a dead-key,
6079  you'll need to rebind the character on that key to yet another key.
6080  Binding the 
6081 \begin_inset Flex Noun
6082 status collapsed
6083
6084 \begin_layout Plain Layout
6085 ,-key
6086 \end_layout
6087
6088 \end_inset
6089
6090  to a cedilla is a bad idea,
6091  since you'll only get cedillas instead of commas.
6092 \end_layout
6093
6094 \begin_layout Standard
6095 One common way to bind dead-keys is to use 
6096 \begin_inset Flex Noun
6097 status collapsed
6098
6099 \begin_layout Plain Layout
6100 Meta-
6101 \end_layout
6102
6103 \end_inset
6104
6105 ,
6106  
6107 \begin_inset Flex Noun
6108 status collapsed
6109
6110 \begin_layout Plain Layout
6111 Ctrl-
6112 \end_layout
6113
6114 \end_inset
6115
6116 ,
6117  and 
6118 \begin_inset Flex Noun
6119 status collapsed
6120
6121 \begin_layout Plain Layout
6122 Shift-
6123 \end_layout
6124
6125 \end_inset
6126
6127  in combination with an accent,
6128  like 
6129 \begin_inset Quotes eld
6130 \end_inset
6131
6132
6133 \begin_inset Flex Noun
6134 status collapsed
6135
6136 \begin_layout Plain Layout
6137 ~
6138 \end_layout
6139
6140 \end_inset
6141
6142
6143 \begin_inset Quotes erd
6144 \end_inset
6145
6146  or 
6147 \begin_inset Quotes eld
6148 \end_inset
6149
6150
6151 \begin_inset Flex Noun
6152 status collapsed
6153
6154 \begin_layout Plain Layout
6155 ,
6156 \end_layout
6157
6158 \end_inset
6159
6160
6161 \begin_inset Quotes erd
6162 \end_inset
6163
6164  or 
6165 \begin_inset Quotes eld
6166 \end_inset
6167
6168
6169 \begin_inset Flex Noun
6170 status collapsed
6171
6172 \begin_layout Plain Layout
6173 ^
6174 \end_layout
6175
6176 \end_inset
6177
6178
6179 \begin_inset Quotes erd
6180 \end_inset
6181
6182 .
6183  Another way involves using 
6184 \begin_inset Flex Code
6185 status collapsed
6186
6187 \begin_layout Plain Layout
6188 xmodmap
6189 \end_layout
6190
6191 \end_inset
6192
6193  and 
6194 \begin_inset Flex Code
6195 status collapsed
6196
6197 \begin_layout Plain Layout
6198 xkeycaps
6199 \end_layout
6200
6201 \end_inset
6202
6203  to set up the special 
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 Mode_Switch
6209 \end_layout
6210
6211 \end_inset
6212
6213  key.
6214  The 
6215 \begin_inset Flex Code
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 Mode_Switch
6220 \end_layout
6221
6222 \end_inset
6223
6224  acts in some ways just like 
6225 \begin_inset Flex Noun
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 Shift
6230 \end_layout
6231
6232 \end_inset
6233
6234  and permits you to bind keys to accented characters.
6235  You can also turn keys into dead-keys by binding them to something like 
6236 \begin_inset Flex Code
6237 status collapsed
6238
6239 \begin_layout Plain Layout
6240 usldead_cedilla
6241 \end_layout
6242
6243 \end_inset
6244
6245  and then binding this symbolic key to the corresponding \SpecialChar LyX
6246  command.
6247 \begin_inset Foot
6248 status collapsed
6249
6250 \begin_layout Plain Layout
6251 Note from 
6252 \noun on
6253 John Weiss
6254 \noun default
6255 :
6256  This is exactly what I do in my 
6257 \begin_inset Flex Code
6258 status collapsed
6259
6260 \begin_layout Plain Layout
6261 ~/.lyx/lyxrc
6262 \end_layout
6263
6264 \end_inset
6265
6266  and my 
6267 \begin_inset Flex Code
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 ~/.xmodmap
6272 \end_layout
6273
6274 \end_inset
6275
6276  files.
6277  I have my 
6278 \begin_inset Flex Noun
6279 status collapsed
6280
6281 \begin_layout Plain Layout
6282 Scroll
6283 \begin_inset space ~
6284 \end_inset
6285
6286 Lock
6287 \end_layout
6288
6289 \end_inset
6290
6291  key set up as 
6292 \begin_inset Flex Code
6293 status collapsed
6294
6295 \begin_layout Plain Layout
6296 Mode_Shift
6297 \end_layout
6298
6299 \end_inset
6300
6301  and a bunch of these 
6302 \begin_inset Quotes eld
6303 \end_inset
6304
6305
6306 \begin_inset Flex Code
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 usldead_*
6311 \end_layout
6312
6313 \end_inset
6314
6315
6316 \begin_inset Quotes erd
6317 \end_inset
6318
6319  symbolic keys bound such things as 
6320 \begin_inset Flex Noun
6321 status collapsed
6322
6323 \begin_layout Plain Layout
6324 Scroll
6325 \begin_inset space ~
6326 \end_inset
6327
6328 Lock-^
6329 \end_layout
6330
6331 \end_inset
6332
6333  and 
6334 \begin_inset Flex Noun
6335 status collapsed
6336
6337 \begin_layout Plain Layout
6338 Scroll
6339 \begin_inset space ~
6340 \end_inset
6341
6342 Lock-~
6343 \end_layout
6344
6345 \end_inset
6346
6347 .
6348  This is how I produce my accented characters.
6349 \end_layout
6350
6351 \end_inset
6352
6353  You can make just about anything into the 
6354 \begin_inset Flex Code
6355 status collapsed
6356
6357 \begin_layout Plain Layout
6358 Mode_Switch
6359 \end_layout
6360
6361 \end_inset
6362
6363  key:
6364  One of the 
6365 \begin_inset Flex Noun
6366 status collapsed
6367
6368 \begin_layout Plain Layout
6369 Ctrl-
6370 \end_layout
6371
6372 \end_inset
6373
6374  keys,
6375  a spare function key,
6376  etc.
6377  As for the \SpecialChar LyX
6378  commands that produce accents,
6379  check the entry for 
6380 \begin_inset Flex Code
6381 status collapsed
6382
6383 \begin_layout Plain Layout
6384 accent-acute
6385 \end_layout
6386
6387 \end_inset
6388
6389  in the 
6390 \emph on
6391 Reference Manual
6392 \emph default
6393 .
6394  You'll find the complete list there.
6395 \end_layout
6396
6397 \begin_layout Subsection
6398 Saving your Language Configuration
6399 \end_layout
6400
6401 \begin_layout Standard
6402 You can edit your preferences so that your desired language environment is automatically configured when \SpecialChar LyX
6403  starts up,
6404  via the 
6405 \begin_inset Flex Noun
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 Edit\SpecialChar menuseparator
6410 Preferences
6411 \end_layout
6412
6413 \end_inset
6414
6415  dialog.
6416 \end_layout
6417
6418 \begin_layout Chapter
6419
6420 \change_inserted -584632292 1610232084
6421 Creating and 
6422 \change_unchanged
6423 Installing New Document Classes,
6424  Layouts,
6425  and Templates
6426 \begin_inset CommandInset label
6427 LatexCommand label
6428 name "cha:Installing-New-Document"
6429
6430 \end_inset
6431
6432
6433 \begin_inset Argument 1
6434 status collapsed
6435
6436 \begin_layout Plain Layout
6437 Installing New Document Classes
6438 \end_layout
6439
6440 \end_inset
6441
6442
6443 \end_layout
6444
6445 \begin_layout Standard
6446 In this chapter,
6447  we describe the procedures for creating and installing new \SpecialChar LyX
6448  layout and template files,
6449  as well as offer a refresher on correctly installing new \SpecialChar LaTeX
6450  document classes.
6451  
6452 \end_layout
6453
6454 \begin_layout Standard
6455 First,
6456  let us a say a few words about how one ought to think about the relation between \SpecialChar LyX
6457  and \SpecialChar LaTeX
6458 .
6459  The thing to understand is that,
6460  in a certain sense,
6461  \SpecialChar LyX
6462  doesn't know anything about \SpecialChar LaTeX
6463 .
6464  Indeed,
6465  from \SpecialChar LyX
6466 's point of view,
6467  \SpecialChar LaTeX
6468  is just one of several 
6469 \begin_inset Quotes eld
6470 \end_inset
6471
6472 backend formats
6473 \begin_inset Quotes erd
6474 \end_inset
6475
6476  in which it is capable of producing output.
6477  Other such formats are DocBook,
6478  plaintext,
6479  and XHTML.
6480  \SpecialChar LaTeX
6481  is,
6482  of course,
6483  a particularly important format,
6484  but very little of the information \SpecialChar LyX
6485  has about \SpecialChar LaTeX
6486  is actually contained in the program itself.
6487 \begin_inset Foot
6488 status collapsed
6489
6490 \begin_layout Plain Layout
6491 Some commands are sufficiently complex that they are 
6492 \begin_inset Quotes eld
6493 \end_inset
6494
6495 hardcoded
6496 \begin_inset Quotes erd
6497 \end_inset
6498
6499  into \SpecialChar LyX
6500 .
6501  But the developers generally regard this as a Bad Thing.
6502 \end_layout
6503
6504 \end_inset
6505
6506  Rather,
6507  that information,
6508  even for the standard classes like 
6509 \begin_inset Flex Code
6510 status collapsed
6511
6512 \begin_layout Plain Layout
6513 article.cls
6514 \end_layout
6515
6516 \end_inset
6517
6518 ,
6519  is contained in `layout files'.
6520  Similarly,
6521  \SpecialChar LyX
6522  itself does not know much about DocBook or XHTML.
6523  What it knows is contained in layout files.
6524 \end_layout
6525
6526 \begin_layout Standard
6527 You can think of the layout file for a given document class as a translation manual between \SpecialChar LyX
6528  constructs—
6529 paragraphs with their corresponding styles,
6530  certain sorts of insets,
6531  etc—
6532 and the corresponding \SpecialChar LaTeX
6533 ,
6534  DocBook,
6535  or XHTML constructs.
6536  Almost everything \SpecialChar LyX
6537  knows about 
6538 \begin_inset Flex Code
6539 status collapsed
6540
6541 \begin_layout Plain Layout
6542 article.cls
6543 \end_layout
6544
6545 \end_inset
6546
6547 ,
6548  for example,
6549  is contained in the file 
6550 \begin_inset Flex Code
6551 status collapsed
6552
6553 \begin_layout Plain Layout
6554 article.layout
6555 \end_layout
6556
6557 \end_inset
6558
6559  and in various other files it includes.
6560  For this reason,
6561  anyone intending to write layout files should plan to study the existing files.
6562  A good place to start is with 
6563 \begin_inset Flex Code
6564 status collapsed
6565
6566 \begin_layout Plain Layout
6567 stdsections.inc
6568 \end_layout
6569
6570 \end_inset
6571
6572 ,
6573  which is included in 
6574 \begin_inset Flex Code
6575 status collapsed
6576
6577 \begin_layout Plain Layout
6578 article.layout
6579 \end_layout
6580
6581 \end_inset
6582
6583 ,
6584  
6585 \begin_inset Flex Code
6586 status collapsed
6587
6588 \begin_layout Plain Layout
6589 book.layout
6590 \end_layout
6591
6592 \end_inset
6593
6594 ,
6595  and many of the other layout files for document classes.
6596  This file is where sections and the like are defined:
6597  
6598 \begin_inset Flex Code
6599 status collapsed
6600
6601 \begin_layout Plain Layout
6602 stdsections.inc
6603 \end_layout
6604
6605 \end_inset
6606
6607  tells \SpecialChar LyX
6608  how paragraphs that are marked with the Section,
6609  Subsection,
6610  etc,
6611  styles can be translated into corresponding \SpecialChar LaTeX
6612 ,
6613  DocBook,
6614  and XHTML commands and tags.
6615  The 
6616 \begin_inset Flex Code
6617 status collapsed
6618
6619 \begin_layout Plain Layout
6620 article.layout
6621 \end_layout
6622
6623 \end_inset
6624
6625  file basically just includes several of these 
6626 \begin_inset Flex Code
6627 status collapsed
6628
6629 \begin_layout Plain Layout
6630 std*.inc
6631 \end_layout
6632
6633 \end_inset
6634
6635  files.
6636 \end_layout
6637
6638 \begin_layout Standard
6639 Defining the \SpecialChar LyX
6640 –\SpecialChar LaTeX
6641  correspondence is not the only thing layout files do,
6642  though.
6643  Their other job is to define how the \SpecialChar LyX
6644  constructs themselves will appear on-screen.
6645  The fact that layout files have these two jobs is often a source of confusion,
6646  because they are completely separate.
6647  Telling \SpecialChar LyX
6648  how to translate a certain paragraph style into \SpecialChar LaTeX
6649  does not tell \SpecialChar LyX
6650  how to display it;
6651  conversely,
6652  telling \SpecialChar LyX
6653  how to display a certain paragraph style does not tell \SpecialChar LyX
6654  how to translate it into \SpecialChar LaTeX
6655  (let alone tell \SpecialChar LaTeX
6656  how to display it).
6657  So,
6658  in general,
6659  when you define a new \SpecialChar LyX
6660  construct,
6661  you must always do two quite separate things:
6662  (i)
6663 \begin_inset space ~
6664 \end_inset
6665
6666 tell \SpecialChar LyX
6667  how to translate it into \SpecialChar LaTeX
6668  and (ii)
6669 \begin_inset space ~
6670 \end_inset
6671
6672 tell \SpecialChar LyX
6673  how to display it.
6674 \end_layout
6675
6676 \begin_layout Standard
6677 Much the same is true,
6678  of course,
6679  as regards \SpecialChar LyX
6680 's other backend formats,
6681  though XHTML is in some ways different,
6682  because in that case \SpecialChar LyX
6683  
6684 \emph on
6685 is
6686 \emph default
6687  able,
6688  to some extent,
6689  to use information about how it should display a paragraph on the screen to output information (in the form of CSS) about how the paragraph should be displayed in a browser.
6690  Even in this case,
6691  however,
6692  the distinction between what \SpecialChar LyX
6693  does internally and how things are rendered externally remains in force,
6694  and the two can be controlled separately.
6695  See 
6696 \begin_inset CommandInset ref
6697 LatexCommand ref
6698 reference "sec:Tags-for-XHTML"
6699 nolink "false"
6700
6701 \end_inset
6702
6703  for the details.
6704 \end_layout
6705
6706 \begin_layout Section
6707 Installing new \SpecialChar LaTeX
6708  files
6709 \end_layout
6710
6711 \begin_layout Standard
6712 Some installations may not include a \SpecialChar LaTeX
6713  package or class file that you would like to use within \SpecialChar LyX
6714 .
6715  For example,
6716  you might need Foil\SpecialChar TeX
6717 ,
6718  a package for preparing slides for overhead projectors.
6719  Modern \SpecialChar LaTeX
6720  distributions like \SpecialChar TeX
6721 Live (2008 or newer) or MiK\SpecialChar TeX
6722  provide a user interface for installing such packages.
6723  For example,
6724  with MiK\SpecialChar TeX
6725 ,
6726  you start the program 
6727 \begin_inset Quotes eld
6728 \end_inset
6729
6730 Package
6731 \begin_inset space ~
6732 \end_inset
6733
6734 Manager
6735 \begin_inset Quotes erd
6736 \end_inset
6737
6738  to get a list of available packages.
6739  To install one of them,
6740  right click on it or use the corresponding toolbar button.
6741 \end_layout
6742
6743 \begin_layout Standard
6744 If your \SpecialChar LaTeX
6745  distribution does not provide such a `package manager',
6746  or if the package is not available from your distribution,
6747  then follow these steps to install it manually:
6748 \end_layout
6749
6750 \begin_layout Enumerate
6751 Get the package from 
6752 \begin_inset CommandInset href
6753 LatexCommand href
6754 name "CTAN"
6755 target "http://www.ctan.org/"
6756 literal "false"
6757
6758 \end_inset
6759
6760  or wherever.
6761 \end_layout
6762
6763 \begin_layout Enumerate
6764 If the package contains a file with the ending 
6765 \begin_inset Quotes eld
6766 \end_inset
6767
6768
6769 \begin_inset Flex Code
6770 status collapsed
6771
6772 \begin_layout Plain Layout
6773 .ins
6774 \end_layout
6775
6776 \end_inset
6777
6778
6779 \begin_inset Quotes erd
6780 \end_inset
6781
6782  (is the case for Foil\SpecialChar TeX
6783 ) then open a console,
6784  change to the folder of this file and execute the command 
6785 \begin_inset Flex Code
6786 status collapsed
6787
6788 \begin_layout Plain Layout
6789 latex foiltex.ins
6790 \end_layout
6791
6792 \end_inset
6793
6794 .
6795  You have now unpacked the package and have all files to install it.
6796  Most \SpecialChar LaTeX
6797 -packages are not packed and you can skip this step.
6798 \end_layout
6799
6800 \begin_layout Enumerate
6801 Now you need to decide if the package should be available for all users or only for you.
6802 \end_layout
6803
6804 \begin_deeper
6805 \begin_layout Enumerate
6806 On *nix systems (Linux,
6807  OSX,
6808  etc.),
6809  if you want the new package to be available for all users on your system,
6810  then install it in your `local' \SpecialChar TeX
6811  tree,
6812  otherwise install it in your own `user' \SpecialChar TeX
6813  tree.
6814  Where these trees should be created,
6815  if they do not already exist,
6816  depends on your system.
6817  To find this out,
6818  look in the file 
6819 \begin_inset Flex Code
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823 texmf.cnf
6824 \end_layout
6825
6826 \end_inset
6827
6828 .
6829 \begin_inset Foot
6830 status collapsed
6831
6832 \begin_layout Plain Layout
6833 This is usually in the directory 
6834 \begin_inset Flex Code
6835 status collapsed
6836
6837 \begin_layout Plain Layout
6838 $TEXMF/web2c
6839 \end_layout
6840
6841 \end_inset
6842
6843 ,
6844  though you can execute the command 
6845 \begin_inset Flex Code
6846 status collapsed
6847
6848 \begin_layout Plain Layout
6849 kpsewhich texmf.cnf
6850 \end_layout
6851
6852 \end_inset
6853
6854  to locate it.
6855 \end_layout
6856
6857 \end_inset
6858
6859  The location of the `local' \SpecialChar TeX
6860  tree is defined by the 
6861 \begin_inset Flex Code
6862 status collapsed
6863
6864 \begin_layout Plain Layout
6865 TEXMFLOCAL
6866 \end_layout
6867
6868 \end_inset
6869
6870  variable;
6871  this is usually somewhere like 
6872 \begin_inset Flex Code
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 /usr/local/share/texmf
6877 \end_layout
6878
6879 \end_inset
6880
6881  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6882 Live distribution.
6883  The location of the `user' \SpecialChar TeX
6884  tree is defined by 
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 TEXMFHOME
6890 \end_layout
6891
6892 \end_inset
6893
6894  and is commonly 
6895 \begin_inset Flex Code
6896 status collapsed
6897
6898 \begin_layout Plain Layout
6899 $HOME/texmf
6900 \end_layout
6901
6902 \end_inset
6903
6904  or 
6905 \begin_inset Flex Code
6906 status collapsed
6907
6908 \begin_layout Plain Layout
6909
6910 \family sans
6911 $HOME/.texliveXXXX
6912 \end_layout
6913
6914 \end_inset
6915
6916 .
6917  (If these variables are not predefined,
6918  you have to define them.) You'll probably need root permissions to create or modify the `local' tree,
6919  but not for your `user' tree.
6920 \begin_inset Newline newline
6921 \end_inset
6922
6923 In general,
6924  it is recommended to install in the user tree because your user will not be modified or even overwritten when you upgrade your system.
6925  It will typically also be backed up together with everything else when you backup your home directory (which,
6926  of course,
6927  you do on a regular basis).
6928 \end_layout
6929
6930 \begin_layout Enumerate
6931 On Windows,
6932  if you want the new package to be available for all users on your system,
6933  change to the folder where \SpecialChar LaTeX
6934  is installed and then change to the subfolder 
6935 \begin_inset Flex Code
6936 status collapsed
6937
6938 \begin_layout Plain Layout
6939 ~
6940 \backslash
6941 tex
6942 \backslash
6943 latex
6944 \end_layout
6945
6946 \end_inset
6947
6948 .
6949  (For MiK\SpecialChar TeX
6950 ,
6951  this would be by default the folder 
6952 \begin_inset Flex Code
6953 status collapsed
6954
6955 \begin_layout Plain Layout
6956 ~:
6957 \backslash
6958 Programs
6959 \backslash
6960 MiKTeX
6961 \backslash
6962 tex
6963 \backslash
6964 latex
6965 \end_layout
6966
6967 \end_inset
6968
6969 .)
6970 \begin_inset Foot
6971 status collapsed
6972
6973 \begin_layout Plain Layout
6974 Note that this will be the correct path only on English installations.
6975  On a German one,
6976  it would be 
6977 \begin_inset Flex Code
6978 status collapsed
6979
6980 \begin_layout Plain Layout
6981 ~:
6982 \backslash
6983 Programme
6984 \backslash
6985 MiKTeX
6986 \backslash
6987 tex
6988 \backslash
6989 latex
6990 \end_layout
6991
6992 \end_inset
6993
6994 ,
6995  and similarly for other languages.
6996 \end_layout
6997
6998 \end_inset
6999
7000  Create there a new folder 
7001 \begin_inset Flex Code
7002 status collapsed
7003
7004 \begin_layout Plain Layout
7005 foiltex
7006 \end_layout
7007
7008 \end_inset
7009
7010  and copy all files of the package into it.
7011  
7012 \begin_inset Newline newline
7013 \end_inset
7014
7015 If the package should only available for you or you don't have admin permissions,
7016  do the same,
7017  but in the local \SpecialChar LaTeX
7018  folder.
7019  E.
7020 \begin_inset space \thinspace{}
7021 \end_inset
7022
7023 g.,
7024  for MiK\SpecialChar TeX
7025
7026 \begin_inset space ~
7027 \end_inset
7028
7029 2.8 under Windows XP,
7030  this would be the folder:
7031 \begin_inset Newline newline
7032 \end_inset
7033
7034
7035 \family sans
7036
7037 \begin_inset Flex Code
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 ~:
7042 \backslash
7043 Documents and Settings
7044 \backslash
7045 <username>
7046 \backslash
7047 Application Data
7048 \backslash
7049
7050 \end_layout
7051
7052 \end_inset
7053
7054
7055 \begin_inset Newline newline
7056 \end_inset
7057
7058
7059 \family default
7060
7061 \begin_inset Phantom HPhantom
7062 status open
7063
7064 \begin_layout Plain Layout
7065
7066 \family sans
7067 ~:
7068 \backslash
7069
7070 \end_layout
7071
7072 \end_inset
7073
7074
7075 \begin_inset Flex Code
7076 status collapsed
7077
7078 \begin_layout Plain Layout
7079 MiKTeX
7080 \backslash
7081 2.8
7082 \backslash
7083 tex
7084 \backslash
7085 latex
7086 \end_layout
7087
7088 \end_inset
7089
7090
7091 \begin_inset Newline newline
7092 \end_inset
7093
7094 On Vista,
7095  it would be:
7096 \begin_inset Newline newline
7097 \end_inset
7098
7099
7100 \begin_inset Flex Code
7101 status collapsed
7102
7103 \begin_layout Plain Layout
7104 ~:
7105 \backslash
7106 Users
7107 \backslash
7108 <username>
7109 \backslash
7110 AppData
7111 \backslash
7112 Roaming
7113 \backslash
7114 2.8
7115 \backslash
7116 MiKTeX
7117 \backslash
7118 tex
7119 \backslash
7120 latex
7121 \end_layout
7122
7123 \end_inset
7124
7125
7126 \end_layout
7127
7128 \end_deeper
7129 \begin_layout Enumerate
7130 Now one only need to tell \SpecialChar LaTeX
7131  that there are new files.
7132  This depends on the used \SpecialChar LaTeX
7133 -Distribution:
7134 \end_layout
7135
7136 \begin_deeper
7137 \begin_layout Enumerate
7138 For \SpecialChar TeX
7139 Live execute the command 
7140 \begin_inset Flex Code
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 texhash
7145 \end_layout
7146
7147 \end_inset
7148
7149  from a console.
7150  If you installed the package for all users,
7151  then you will probably need to have root permissions for that.
7152 \end_layout
7153
7154 \begin_layout Enumerate
7155 For MiK\SpecialChar TeX
7156 ,
7157  if you have installed the package for all users,
7158  start the program 
7159 \begin_inset Quotes eld
7160 \end_inset
7161
7162 Settings
7163 \begin_inset space ~
7164 \end_inset
7165
7166 (Admin)
7167 \begin_inset Quotes erd
7168 \end_inset
7169
7170  and press the button marked 
7171 \begin_inset Quotes eld
7172 \end_inset
7173
7174 Refresh FNDB
7175 \begin_inset Quotes erd
7176 \end_inset
7177
7178 .
7179  Otherwise start the program 
7180 \begin_inset Quotes eld
7181 \end_inset
7182
7183 Settings
7184 \begin_inset Quotes erd
7185 \end_inset
7186
7187  and do the same.
7188 \end_layout
7189
7190 \end_deeper
7191 \begin_layout Enumerate
7192 Finally,
7193  you need to tell \SpecialChar LyX
7194  that there are new packages available.
7195  So,
7196  in \SpecialChar LyX
7197 ,
7198  use the menu 
7199 \begin_inset Flex Noun
7200 status collapsed
7201
7202 \begin_layout Plain Layout
7203 Tools
7204 \family sans
7205 \SpecialChar menuseparator
7206 Reconfigure
7207 \end_layout
7208
7209 \end_inset
7210
7211  and then restart \SpecialChar LyX
7212 .
7213 \end_layout
7214
7215 \begin_layout Standard
7216 Now the package is installed.
7217  In our example,
7218  the document class 
7219 \begin_inset Flex Code
7220 status collapsed
7221
7222 \begin_layout Plain Layout
7223 FoilTex
7224 \end_layout
7225
7226 \end_inset
7227
7228  will now be available under 
7229 \begin_inset Flex Noun
7230 status collapsed
7231
7232 \begin_layout Plain Layout
7233 Document\SpecialChar menuseparator
7234 Settings\SpecialChar menuseparator
7235 Document Class
7236 \end_layout
7237
7238 \end_inset
7239
7240  (in the 
7241 \begin_inset Quotes eld
7242 \end_inset
7243
7244 Presentations
7245 \begin_inset Quotes erd
7246 \end_inset
7247
7248  category).
7249  
7250 \end_layout
7251
7252 \begin_layout Standard
7253 If you would like to use a \SpecialChar LaTeX
7254  document class that is not even listed in the menu 
7255 \begin_inset Flex Noun
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 Document\SpecialChar menuseparator
7260 Settings\SpecialChar menuseparator
7261 Document Class
7262 \end_layout
7263
7264 \end_inset
7265
7266 ,
7267  then you need to create a `layout' file for it.
7268  That is the topic of the next section.
7269 \end_layout
7270
7271 \begin_layout Section
7272 Types of layout files
7273 \end_layout
7274
7275 \begin_layout Standard
7276 This section describes the various sorts of \SpecialChar LyX
7277  files that contain layout information.
7278  These files describe various paragraph and character styles,
7279  determining how \SpecialChar LyX
7280  should display them and how they should be translated into \SpecialChar LaTeX
7281 ,
7282  DocBook,
7283  XHTML,
7284  or whatever output format is being used.
7285  
7286 \end_layout
7287
7288 \begin_layout Standard
7289 We shall try to provide a thorough description of the process of writing layout files here.
7290  However,
7291  there are so many different types of documents supported even by just \SpecialChar LaTeX
7292  that we can't hope to cover every different possibility or problem you might encounter.
7293  The \SpecialChar LyX
7294  users' list is frequented by people with lots of experience with layout design who are willing to share what they've learned,
7295  so please feel free to ask questions there.
7296 \end_layout
7297
7298 \begin_layout Standard
7299 As you prepare to write a new layout,
7300  it is extremely helpful to look at the layouts distributed with \SpecialChar LyX
7301 .
7302  If you write a \SpecialChar LyX
7303  layout for a \SpecialChar LaTeX
7304  document class that might also be used by others,
7305  or write a module that might be useful to others,
7306  then you should consider posting your layout to the 
7307 \begin_inset CommandInset href
7308 LatexCommand href
7309 name "layout section on the LyX wiki"
7310 target "https://wiki.lyx.org/Layouts/Layouts"
7311 literal "false"
7312
7313 \end_inset
7314
7315  or even to the \SpecialChar LyX
7316  developers' list,
7317  so that it might be included in \SpecialChar LyX
7318  itself.
7319 \begin_inset Foot
7320 status collapsed
7321
7322 \begin_layout Plain Layout
7323 Note that \SpecialChar LyX
7324  is licensed under the General Public License,
7325  so any material that is contributed to \SpecialChar LyX
7326  must be similarly licensed.
7327 \end_layout
7328
7329 \end_inset
7330
7331
7332 \end_layout
7333
7334 \begin_layout Subsection
7335 Layout modules
7336 \begin_inset CommandInset label
7337 LatexCommand label
7338 name "subsec:Layout-modules"
7339
7340 \end_inset
7341
7342
7343 \end_layout
7344
7345 \begin_layout Standard
7346 We have spoken to this point about `layout files'.
7347  But there are different sorts of files that contain layout information.
7348  Layout files,
7349  strictly so called,
7350  have the 
7351 \begin_inset Flex Code
7352 status collapsed
7353
7354 \begin_layout Plain Layout
7355 .layout
7356 \end_layout
7357
7358 \end_inset
7359
7360  extension and provide \SpecialChar LyX
7361  with information about document classes.
7362  Since \SpecialChar LyX
7363  1.6 layout information can also be contained in layout 
7364 \emph on
7365 modules
7366 \emph default
7367 ,
7368  which have the 
7369 \begin_inset Flex Code
7370 status collapsed
7371
7372 \begin_layout Plain Layout
7373 .module
7374 \end_layout
7375
7376 \end_inset
7377
7378  extension.
7379  Modules are to \SpecialChar LaTeX
7380  packages much as layouts are to \SpecialChar LaTeX
7381  classes,
7382  and some modules—
7383 such as the 
7384 \begin_inset Flex Code
7385 status collapsed
7386
7387 \begin_layout Plain Layout
7388 endnotes
7389 \end_layout
7390
7391 \end_inset
7392
7393  module—
7394 specifically provide support for one package.
7395  In a sense,
7396  layout modules are similar to included
7397 \begin_inset Foot
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 These can have any extension,
7402  but by convention have the 
7403 \begin_inset Flex Code
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 .inc
7408 \end_layout
7409
7410 \end_inset
7411
7412  extension.
7413 \end_layout
7414
7415 \end_inset
7416
7417  files—
7418 files like 
7419 \begin_inset Flex Code
7420 status collapsed
7421
7422 \begin_layout Plain Layout
7423 stdsections.inc
7424 \end_layout
7425
7426 \end_inset
7427
7428
7429 in that modules are not specific to a given document class but may be used with many different classes.
7430  The difference is that using an included file with 
7431 \begin_inset Flex Code
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 article.cls
7436 \end_layout
7437
7438 \end_inset
7439
7440  requires editing that file.
7441  Modules,
7442  by contrast,
7443  are selected in the 
7444 \begin_inset Flex Noun
7445 status collapsed
7446
7447 \begin_layout Plain Layout
7448 Document\SpecialChar menuseparator
7449 Settings
7450 \end_layout
7451
7452 \end_inset
7453
7454  dialog.
7455 \end_layout
7456
7457 \begin_layout Standard
7458 Building modules is the easiest way to get started with layout editing,
7459  since it can be as simple as adding a single new paragraph style or flex inset.
7460  But modules may,
7461  in principle,
7462  contain anything a layout file can contain.
7463 \end_layout
7464
7465 \begin_layout Standard
7466 After creating a new module and copying it to the 
7467 \begin_inset Flex Code
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 layouts/
7472 \end_layout
7473
7474 \end_inset
7475
7476  folder,
7477  you will need to reconfigure and then restart \SpecialChar LyX
7478  for the module to appear in the menu.
7479  However,
7480  changes you make to the module will be seen immediately,
7481  if you open 
7482 \begin_inset Flex Noun
7483 status collapsed
7484
7485 \begin_layout Plain Layout
7486 Document\SpecialChar menuseparator
7487 Settings
7488 \end_layout
7489
7490 \end_inset
7491
7492 ,
7493  highlight something,
7494  and then hit 
7495 \begin_inset Quotes eld
7496 \end_inset
7497
7498 OK
7499 \begin_inset Quotes erd
7500 \end_inset
7501
7502 .
7503  
7504 \emph on
7505 It is strongly recommended that you save your work before doing this
7506 \emph default
7507 .
7508  In fact,
7509  
7510 \emph on
7511 it is strongly recommended that you not attempt to edit modules while simultaneously working on actual documents
7512 \emph default
7513 .
7514  Though of course the developers strive to keep \SpecialChar LyX
7515  stable in such situations,
7516  syntax errors and the like in your module file could cause strange behavior.
7517 \end_layout
7518
7519 \begin_layout Subsubsection
7520 Local Layout
7521 \end_layout
7522
7523 \begin_layout Standard
7524 Modules are to \SpecialChar LyX
7525  as packages are to \SpecialChar LaTeX
7526 .
7527  Sometimes,
7528  however,
7529  you find yourself wanting a specific inset or character style just for one document and writing a module that will also be available to other documents makes little sense.
7530  What you need is \SpecialChar LyX
7531 's 
7532 \begin_inset Quotes eld
7533 \end_inset
7534
7535 Local Layout
7536 \begin_inset Quotes erd
7537 \end_inset
7538
7539 .
7540 \end_layout
7541
7542 \begin_layout Standard
7543 You will find it under 
7544 \family sans
7545 Document\SpecialChar menuseparator
7546 Settings\SpecialChar menuseparator
7547 Local Layout
7548 \family default
7549 .
7550  The large text box allows you to enter anything that you might enter in a layout file or module.
7551  You can think of a document's local layout,
7552  in fact,
7553  as a module that belongs just to it.
7554  So,
7555  in particular,
7556  you must enter a 
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561 Format
7562 \end_layout
7563
7564 \end_inset
7565
7566  tag.
7567  Any format is acceptable,
7568  but one would normally use the format current at the time.
7569  (In \SpecialChar LyX
7570  
7571 \begin_inset Info
7572 type  "lyxinfo"
7573 arg   "version"
7574 \end_inset
7575
7576 ,
7577  the current layout format is 
7578 \begin_inset Info
7579 type  "lyxinfo"
7580 arg   "layoutformat"
7581 \end_inset
7582
7583 .)
7584 \end_layout
7585
7586 \begin_layout Standard
7587 When you have entered something in the 
7588 \begin_inset Flex Code
7589 status collapsed
7590
7591 \begin_layout Plain Layout
7592 Local Layout
7593 \end_layout
7594
7595 \end_inset
7596
7597  pane,
7598  \SpecialChar LyX
7599  will enable the 
7600 \begin_inset Quotes eld
7601 \end_inset
7602
7603 Validate
7604 \begin_inset Quotes erd
7605 \end_inset
7606
7607  button at the bottom.
7608  Clicking this button will cause \SpecialChar LyX
7609  to determine whether what you have entered is valid layout information for the chosen format.
7610  \SpecialChar LyX
7611  will report the result but,
7612  unfortunately,
7613  will not tell you what errors there might have been.
7614  These will be written to the terminal,
7615  however,
7616  if \SpecialChar LyX
7617  is started from a terminal.
7618  You will not be permitted to save your local layout until you have entered something valid.
7619 \end_layout
7620
7621 \begin_layout Standard
7622 The warnings at the end of the previous section apply here,
7623  too.
7624  Do not play with local layout while you are actually working,
7625  especially if you have not saved your document.
7626  That said,
7627  using local layout with a test document can be a very convenient way to try out layout ideas,
7628  or even to start developing a module.
7629 \end_layout
7630
7631 \begin_layout Subsection
7632 Layout for 
7633 \begin_inset Flex Noun
7634 status collapsed
7635
7636 \begin_layout Plain Layout
7637 .sty
7638 \end_layout
7639
7640 \end_inset
7641
7642  files
7643 \end_layout
7644
7645 \begin_layout Standard
7646 There are two situations you are likely to encounter when wanting to support a new \SpecialChar LaTeX
7647  document class,
7648  involving style (
7649 \begin_inset Flex Code
7650 status collapsed
7651
7652 \begin_layout Plain Layout
7653 .sty
7654 \end_layout
7655
7656 \end_inset
7657
7658 ) files and \SpecialChar LaTeX2e
7659  class (
7660 \begin_inset Flex Code
7661 status collapsed
7662
7663 \begin_layout Plain Layout
7664 .cls
7665 \end_layout
7666
7667 \end_inset
7668
7669 ) .
7670  Supporting a style file is usually fairly easy.
7671  Supporting a new class file is a bit harder.
7672  We'll discuss the former in this section and the latter in the next.
7673  
7674 \change_deleted 5863208 1594239023
7675 Similar remarks apply,
7676  of course,
7677  if you want to support a new DocBook DTD.
7678 \change_unchanged
7679
7680 \end_layout
7681
7682 \begin_layout Standard
7683 The easier case is the one in which your new document class is provided as a style file that is to be used in conjunction with an already supported document class.
7684  For the sake of the example,
7685  we'll assume that the style file is called 
7686 \begin_inset Flex Noun
7687 status collapsed
7688
7689 \begin_layout Plain Layout
7690 myclass.sty
7691 \end_layout
7692
7693 \end_inset
7694
7695  and that it is meant to be used with 
7696 \begin_inset Flex Noun
7697 status collapsed
7698
7699 \begin_layout Plain Layout
7700 report.cls
7701 \end_layout
7702
7703 \end_inset
7704
7705 ,
7706  which is a standard class.
7707  
7708 \end_layout
7709
7710 \begin_layout Standard
7711 Start by copying the existing class's layout file into your local directory:
7712 \begin_inset Foot
7713 status collapsed
7714
7715 \begin_layout Plain Layout
7716 Of course,
7717  which directory is your local directory will vary by platform,
7718  and \SpecialChar LyX
7719  allows you to specify your local directory on startup,
7720  too,
7721  using the 
7722 \begin_inset Flex Code
7723 status collapsed
7724
7725 \begin_layout Plain Layout
7726 -userdir
7727 \end_layout
7728
7729 \end_inset
7730
7731  option.
7732 \end_layout
7733
7734 \end_inset
7735
7736
7737 \end_layout
7738
7739 \begin_layout LyX-Code
7740 cp report.layout ~/.lyx/layouts/myclass.layout
7741 \end_layout
7742
7743 \begin_layout Standard
7744 Then edit 
7745 \begin_inset Flex Code
7746 status collapsed
7747
7748 \begin_layout Plain Layout
7749 myclass.layout
7750 \end_layout
7751
7752 \end_inset
7753
7754  and change the line:
7755  
7756 \end_layout
7757
7758 \begin_layout LyX-Code
7759
7760 \backslash
7761 DeclareLaTeXClass{Report (Standard Class)}
7762 \end_layout
7763
7764 \begin_layout Standard
7765 to read
7766 \end_layout
7767
7768 \begin_layout LyX-Code
7769
7770 \backslash
7771 DeclareLaTeXClass[report,
7772  myclass.sty]{Report (My Class)}
7773 \end_layout
7774
7775 \begin_layout Standard
7776 Then add:
7777 \end_layout
7778
7779 \begin_layout LyX-Code
7780 Preamble 
7781 \begin_inset Newline newline
7782 \end_inset
7783
7784     
7785 \backslash
7786 usepackage{myclass}
7787 \begin_inset Newline newline
7788 \end_inset
7789
7790 EndPreamble
7791 \end_layout
7792
7793 \begin_layout Standard
7794 near the top of the file.
7795 \end_layout
7796
7797 \begin_layout Standard
7798 Start \SpecialChar LyX
7799  and select 
7800 \begin_inset Flex Noun
7801 status collapsed
7802
7803 \begin_layout Plain Layout
7804 Tools\SpecialChar menuseparator
7805 Reconfigure
7806 \end_layout
7807
7808 \end_inset
7809
7810 .
7811  Then restart \SpecialChar LyX
7812  and try creating a new document.
7813  You should see "
7814 \begin_inset Flex Noun
7815 status collapsed
7816
7817 \begin_layout Plain Layout
7818 Report (My Class)
7819 \end_layout
7820
7821 \end_inset
7822
7823 " as a document class option in the 
7824 \begin_inset Flex Noun
7825 status collapsed
7826
7827 \begin_layout Plain Layout
7828 Document\SpecialChar menuseparator
7829 Settings
7830 \end_layout
7831
7832 \end_inset
7833
7834  dialog.
7835  It is likely that some of the sectioning commands and such in your new class will work differently from how they worked in the base class—
7836
7837 \begin_inset Flex Code
7838 status collapsed
7839
7840 \begin_layout Plain Layout
7841 report
7842 \end_layout
7843
7844 \end_inset
7845
7846  in this example—
7847 so you can fiddle around with the settings for the different sections if you wish.
7848  The layout information for sections is contained in 
7849 \begin_inset Flex Code
7850 status collapsed
7851
7852 \begin_layout Plain Layout
7853 stdsections.inc
7854 \end_layout
7855
7856 \end_inset
7857
7858 ,
7859  but you do not need to copy and change this file.
7860  Instead,
7861  you can simply add your changes to your layout file,
7862  after the line 
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 Input stdclass.inc
7868 \end_layout
7869
7870 \end_inset
7871
7872 ,
7873  which itself includes 
7874 \begin_inset Flex Code
7875 status collapsed
7876
7877 \begin_layout Plain Layout
7878 stdsections.inc
7879 \end_layout
7880
7881 \end_inset
7882
7883 .
7884  For example,
7885  you might add these lines:
7886 \end_layout
7887
7888 \begin_layout LyX-Code
7889 Style Chapter
7890 \end_layout
7891
7892 \begin_layout LyX-Code
7893     Font
7894 \end_layout
7895
7896 \begin_layout LyX-Code
7897         Family Sans
7898 \end_layout
7899
7900 \begin_layout LyX-Code
7901     EndFont
7902 \end_layout
7903
7904 \begin_layout LyX-Code
7905 End
7906 \end_layout
7907
7908 \begin_layout Standard
7909 to change the font for chapter headings to sans-serif.
7910  This will override (or,
7911  in this case,
7912  add to) the existing declaration for the Chapter style.
7913  
7914 \end_layout
7915
7916 \begin_layout Standard
7917 Your new package may also provide commands or environments not present in the base class.
7918  In this case,
7919  you will want to add these to the layout file.
7920  See 
7921 \begin_inset CommandInset ref
7922 LatexCommand ref
7923 reference "sec:TextClass"
7924 nolink "false"
7925
7926 \end_inset
7927
7928  for information on how to do so.
7929 \end_layout
7930
7931 \begin_layout Standard
7932 If 
7933 \begin_inset Flex Noun
7934 status collapsed
7935
7936 \begin_layout Plain Layout
7937 myclass.sty
7938 \end_layout
7939
7940 \end_inset
7941
7942  can be used with several different document classes,
7943  and even if it cannot,
7944  you might find it easiest just to write a module that you can load with the base class.
7945  The simplest possible such module would be:
7946 \end_layout
7947
7948 \begin_layout LyX-Code
7949 #
7950 \backslash
7951 DeclareLyXModule{My Class} 
7952 \end_layout
7953
7954 \begin_layout LyX-Code
7955 #DescriptionBegin 
7956 \end_layout
7957
7958 \begin_layout LyX-Code
7959 #Support for myclass.sty.
7960 \end_layout
7961
7962 \begin_layout LyX-Code
7963 #DescriptionEnd
7964 \begin_inset Newline newline
7965 \end_inset
7966
7967
7968 \end_layout
7969
7970 \begin_layout LyX-Code
7971 Format 
7972 \begin_inset Info
7973 type  "lyxinfo"
7974 arg   "layoutformat"
7975 \end_inset
7976
7977
7978 \begin_inset Newline newline
7979 \end_inset
7980
7981
7982 \end_layout
7983
7984 \begin_layout LyX-Code
7985 Preamble
7986 \begin_inset Newline newline
7987 \end_inset
7988
7989     
7990 \backslash
7991 usepackage{myclass}
7992 \begin_inset Newline newline
7993 \end_inset
7994
7995 EndPreamble
7996 \end_layout
7997
7998 \begin_layout Standard
7999 A more complex module might modify the behavior of some existing constructs or define some new ones.
8000  Again,
8001  see 
8002 \begin_inset CommandInset ref
8003 LatexCommand ref
8004 reference "sec:TextClass"
8005 nolink "false"
8006
8007 \end_inset
8008
8009  for discussion.
8010 \end_layout
8011
8012 \begin_layout Subsection
8013 Layout for 
8014 \begin_inset Flex Noun
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 .cls
8019 \end_layout
8020
8021 \end_inset
8022
8023  files
8024 \end_layout
8025
8026 \begin_layout Standard
8027 There are two possibilities here.
8028  One is that the class file is itself based upon an existing document class.
8029  For example,
8030  many thesis classes are based upon 
8031 \begin_inset Flex Noun
8032 status collapsed
8033
8034 \begin_layout Plain Layout
8035 book.cls
8036 \end_layout
8037
8038 \end_inset
8039
8040 .
8041  To see whether yours is,
8042  look for a line like
8043 \end_layout
8044
8045 \begin_layout LyX-Code
8046
8047 \backslash
8048 LoadClass{book}
8049 \end_layout
8050
8051 \begin_layout Standard
8052 in the file.
8053  If so,
8054  then you may proceed largely as in the previous section,
8055  though the 
8056 \begin_inset Flex Code
8057 status collapsed
8058
8059 \begin_layout Plain Layout
8060 Declare\SpecialChar LaTeX
8061 Class
8062 \end_layout
8063
8064 \end_inset
8065
8066  line will be different.
8067  If your new class is 
8068 \begin_inset Flex Code
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 thesis
8073 \end_layout
8074
8075 \end_inset
8076
8077  and it is based upon 
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 book
8083 \end_layout
8084
8085 \end_inset
8086
8087 ,
8088  then the line should read:
8089 \begin_inset Foot
8090 status collapsed
8091
8092 \begin_layout Plain Layout
8093 And it will be easiest if you save the file to 
8094 \begin_inset Flex Code
8095 status collapsed
8096
8097 \begin_layout Plain Layout
8098 thesis.layout
8099 \end_layout
8100
8101 \end_inset
8102
8103 :
8104  \SpecialChar LyX
8105  assumes that the document class has the same name as the layout file.
8106  
8107 \end_layout
8108
8109 \end_inset
8110
8111
8112 \end_layout
8113
8114 \begin_layout LyX-Code
8115
8116 \backslash
8117 DeclareLaTeXClass[thesis,book]{thesis}
8118 \end_layout
8119
8120 \begin_layout Standard
8121 If,
8122  on the other hand,
8123  the new class is not based upon an existing class,
8124  you will probably have to 
8125 \begin_inset Quotes eld
8126 \end_inset
8127
8128 roll your own
8129 \begin_inset Quotes erd
8130 \end_inset
8131
8132  layout.
8133  We strongly suggest copying an existing layout file which uses a similar \SpecialChar LaTeX
8134  class and then modifying it,
8135  if you can do so.
8136  At least use an existing file as a starting point so you can find out what items you need to worry about.
8137  Again,
8138  the specifics are covered below.
8139 \end_layout
8140
8141 \begin_layout Subsection
8142 Creating templates
8143 \begin_inset CommandInset label
8144 LatexCommand label
8145 name "subsec:Creating-Templates"
8146
8147 \end_inset
8148
8149
8150 \end_layout
8151
8152 \begin_layout Standard
8153 Once you have written a layout file for a new document class,
8154  you might want to consider writing a 
8155 \emph on
8156 template
8157 \emph default
8158  for it,
8159  too.
8160  A template acts as a kind of tutorial for your layout,
8161  showing how it might be used,
8162  though containing dummy content.
8163  You can of course look at the various templates included with \SpecialChar LyX
8164  for ideas.
8165 \end_layout
8166
8167 \begin_layout Standard
8168 Templates are created just like usual documents:
8169  using \SpecialChar LyX
8170 .
8171  The only difference is that usual documents contain all possible settings,
8172  including the font scheme and the paper size.
8173  Usually a user doesn't want a template to overwrite his preferred settings for such parameters.
8174  For that reason,
8175  the designer of a template should remove the corresponding commands like 
8176 \begin_inset Flex Code
8177 status collapsed
8178
8179 \begin_layout Plain Layout
8180
8181 \backslash
8182 font_roman
8183 \end_layout
8184
8185 \end_inset
8186
8187  or 
8188 \begin_inset Flex Code
8189 status collapsed
8190
8191 \begin_layout Plain Layout
8192
8193 \backslash
8194 papersize
8195 \end_layout
8196
8197 \end_inset
8198
8199  from the template \SpecialChar LyX
8200  file.
8201  This can be done with any simple text-editor,
8202  for example 
8203 \begin_inset Flex Code
8204 status collapsed
8205
8206 \begin_layout Plain Layout
8207 vi
8208 \end_layout
8209
8210 \end_inset
8211
8212  or 
8213 \begin_inset Flex Code
8214 status collapsed
8215
8216 \begin_layout Plain Layout
8217 notepad
8218 \end_layout
8219
8220 \end_inset
8221
8222 .
8223 \end_layout
8224
8225 \begin_layout Standard
8226 Put the edited template files you create in 
8227 \begin_inset Flex Code
8228 status collapsed
8229
8230 \begin_layout Plain Layout
8231 UserDir/templates/
8232 \end_layout
8233
8234 \end_inset
8235
8236 ,
8237  copy the ones you use from the global template directory in 
8238 \begin_inset Flex Code
8239 status collapsed
8240
8241 \begin_layout Plain Layout
8242 LyXDir/templates/
8243 \end_layout
8244
8245 \end_inset
8246
8247  to the same place,
8248  and redefine the template path in the 
8249 \begin_inset Flex Noun
8250 status collapsed
8251
8252 \begin_layout Plain Layout
8253 Tools\SpecialChar menuseparator
8254 Preferences\SpecialChar menuseparator
8255 Paths
8256 \end_layout
8257
8258 \end_inset
8259
8260  dialog.
8261 \end_layout
8262
8263 \begin_layout Standard
8264 Note,
8265  by the way,
8266  that there is a template which has a particular meaning:
8267 \begin_inset Newline linebreak
8268 \end_inset
8269
8270
8271 \begin_inset Flex Code
8272 status collapsed
8273
8274 \begin_layout Plain Layout
8275 defaults.lyx
8276 \end_layout
8277
8278 \end_inset
8279
8280 .
8281  This template is loaded every time you create a new document with 
8282 \begin_inset Flex Noun
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286 File\SpecialChar menuseparator
8287 New
8288 \end_layout
8289
8290 \end_inset
8291
8292  in order to provide useful defaults.
8293  To create this template from inside \SpecialChar LyX
8294 ,
8295  all you have to do is to open a document with the correct settings,
8296  and use the 
8297 \begin_inset Flex Noun
8298 status collapsed
8299
8300 \begin_layout Plain Layout
8301 Save as Document Defaults
8302 \end_layout
8303
8304 \end_inset
8305
8306  button.
8307 \end_layout
8308
8309 \begin_layout Subsection
8310 Upgrading old layout files
8311 \end_layout
8312
8313 \begin_layout Standard
8314 The format of layout files changes with each \SpecialChar LyX
8315  release,
8316  so old layout files need to be converted to the new format.
8317  If \SpecialChar LyX
8318  reads a layout file in an older format,
8319  it automatically calls the script 
8320 \begin_inset Flex Code
8321 status collapsed
8322
8323 \begin_layout Plain Layout
8324 layout2layout.py
8325 \end_layout
8326
8327 \end_inset
8328
8329  to convert it to a temporary file in current format.
8330  The original file is left untouched.
8331  If you use the layout file often,
8332  then,
8333  you may want to convert it permanently,
8334  so that \SpecialChar LyX
8335  does not have to do so itself every time.
8336  To do this,
8337  you can call the converter manually:
8338 \end_layout
8339
8340 \begin_layout Enumerate
8341 rename the file 
8342 \begin_inset Flex Code
8343 status collapsed
8344
8345 \begin_layout Plain Layout
8346 myclass.layout
8347 \end_layout
8348
8349 \end_inset
8350
8351  to 
8352 \begin_inset Flex Code
8353 status collapsed
8354
8355 \begin_layout Plain Layout
8356 myclass.old
8357 \end_layout
8358
8359 \end_inset
8360
8361
8362 \end_layout
8363
8364 \begin_layout Enumerate
8365 Call the command
8366 \begin_inset Newline newline
8367 \end_inset
8368
8369
8370 \begin_inset Flex Code
8371 status collapsed
8372
8373 \begin_layout Plain Layout
8374 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8375 \end_layout
8376
8377 \end_inset
8378
8379
8380 \begin_inset Newline newline
8381 \end_inset
8382
8383 where 
8384 \begin_inset Flex Code
8385 status collapsed
8386
8387 \begin_layout Plain Layout
8388 LyXDir
8389 \end_layout
8390
8391 \end_inset
8392
8393  is the name of your \SpecialChar LyX
8394  system directory.
8395 \end_layout
8396
8397 \begin_layout Standard
8398 Note that manual conversion does not affect included files,
8399  so these will have to be converted separately.
8400 \end_layout
8401
8402 \begin_layout Subsection
8403 \begin_inset CommandInset label
8404 LatexCommand label
8405 name "subsec:Cite-Engine-Files"
8406
8407 \end_inset
8408
8409 Cite engine files
8410 \end_layout
8411
8412 \begin_layout Standard
8413 A specific form of layout files are the so-called 
8414 \begin_inset Flex Code
8415 status collapsed
8416
8417 \begin_layout Plain Layout
8418 *.citeengine
8419 \end_layout
8420
8421 \end_inset
8422
8423  files that are located in the 
8424 \begin_inset Flex Code
8425 status collapsed
8426
8427 \begin_layout Plain Layout
8428 citeengines/
8429 \end_layout
8430
8431 \end_inset
8432
8433  sub-directory.
8434  Their purpose is to define the specifics of \SpecialChar LaTeX
8435  packages aimed at bibliography generation,
8436  such as 
8437 \family sans
8438 natbib
8439 \family default
8440 ,
8441
8442 \family sans
8443  jurabib
8444 \family default
8445  or 
8446 \family sans
8447 biblatex
8448 \family default
8449 ,
8450  but also the way how normal Bib\SpecialChar TeX
8451  citations (without additional packages) are handled in \SpecialChar LyX
8452  is defined in such a file.
8453  
8454 \end_layout
8455
8456 \begin_layout Standard
8457 More specifically,
8458  it is defined which packages \SpecialChar LyX
8459  needs to load,
8460  which citation commands are available,
8461  how these are to be displayed in \SpecialChar LyX
8462  (in the workarea,
8463  the dialogs,
8464  the context menus) as well as in the XHTML and plain text output.
8465  Furthermore,
8466  the files specify available style variants (author-year,
8467  numerical,
8468  etc.) and their specifics.
8469  The cite engine files are also used to generate the options that are available in 
8470 \family sans
8471 Document\SpecialChar menuseparator
8472 Settings\SpecialChar menuseparator
8473 Bibliography\SpecialChar menuseparator
8474 Style engine
8475 \family default
8476 .
8477 \end_layout
8478
8479 \begin_layout Standard
8480 Even though a cite engine file is essentially a normal layout file that could theoretically include any layout information,
8481  it usually primarily includes some specific parameters such as 
8482 \begin_inset Flex Code
8483 status collapsed
8484
8485 \begin_layout Plain Layout
8486 MaxCiteNames
8487 \end_layout
8488
8489 \end_inset
8490
8491 ,
8492  
8493 \begin_inset Flex Code
8494 status collapsed
8495
8496 \begin_layout Plain Layout
8497 CiteFramework
8498 \end_layout
8499
8500 \end_inset
8501
8502 ,
8503  
8504 \begin_inset Flex Code
8505 status collapsed
8506
8507 \begin_layout Plain Layout
8508 CiteEngine
8509 \end_layout
8510
8511 \end_inset
8512
8513  and 
8514 \begin_inset Flex Code
8515 status collapsed
8516
8517 \begin_layout Plain Layout
8518 CiteFormat
8519 \end_layout
8520
8521 \end_inset
8522
8523  blocks.
8524  The syntax of the latter two is described in 
8525 \begin_inset CommandInset ref
8526 LatexCommand ref
8527 reference "subsec:Citation-engine-description"
8528 plural "false"
8529 caps "false"
8530 noprefix "false"
8531 nolink "false"
8532
8533 \end_inset
8534
8535  and 
8536 \begin_inset CommandInset ref
8537 LatexCommand ref
8538 reference "subsec:Citation-format-description"
8539 nolink "false"
8540
8541 \end_inset
8542
8543 ,
8544  as well as in the files themselves.
8545 \end_layout
8546
8547 \begin_layout Section
8548 \begin_inset CommandInset label
8549 LatexCommand label
8550 name "sec:TextClass"
8551
8552 \end_inset
8553
8554 The layout file format
8555 \end_layout
8556
8557 \begin_layout Standard
8558 The following sections describe how layout files are structured and written.
8559  Our advice is to go slowly,
8560  save and test often.
8561  It is really not that hard,
8562  except that the multitude of options can become overwhelming,
8563  especially if you try to check out too many at once.
8564  It becomes easier if you use existing layouts of \SpecialChar LyX
8565  as examples/reference or if you modify an existing layout to your needs.
8566 \end_layout
8567
8568 \begin_layout Standard
8569 Note that all the tags used in layout files are case-insensitive.
8570  This means that 
8571 \begin_inset Flex Code
8572 status collapsed
8573
8574 \begin_layout Plain Layout
8575 Style
8576 \end_layout
8577
8578 \end_inset
8579
8580 ,
8581  
8582 \begin_inset Flex Code
8583 status collapsed
8584
8585 \begin_layout Plain Layout
8586 style
8587 \end_layout
8588
8589 \end_inset
8590
8591  and 
8592 \begin_inset Flex Code
8593 status collapsed
8594
8595 \begin_layout Plain Layout
8596 StYlE
8597 \end_layout
8598
8599 \end_inset
8600
8601  are really the same tag.
8602  The possible arguments are printed in brackets after the tag's name.
8603  The default argument is typeset 
8604 \begin_inset Flex Code
8605 status collapsed
8606
8607 \begin_layout Plain Layout
8608
8609 \emph on
8610 emphasized
8611 \end_layout
8612
8613 \end_inset
8614
8615 .
8616  If the argument has a data type like 
8617 \begin_inset Quotes eld
8618 \end_inset
8619
8620 string
8621 \begin_inset Quotes erd
8622 \end_inset
8623
8624  or 
8625 \begin_inset Quotes eld
8626 \end_inset
8627
8628 float
8629 \begin_inset Quotes erd
8630 \end_inset
8631
8632 ,
8633  the default is shown like this:
8634  
8635 \begin_inset Flex Code
8636 status collapsed
8637
8638 \begin_layout Plain Layout
8639 float=
8640 \emph on
8641 default
8642 \end_layout
8643
8644 \end_inset
8645
8646 .
8647 \end_layout
8648
8649 \begin_layout Subsection
8650 The document class declaration and classification
8651 \end_layout
8652
8653 \begin_layout Standard
8654 Lines in a layout file which begin with 
8655 \begin_inset Flex Code
8656 status collapsed
8657
8658 \begin_layout Plain Layout
8659 #
8660 \end_layout
8661
8662 \end_inset
8663
8664  are comments.
8665  There is one exception to this rule.
8666  All 
8667 \begin_inset Flex Code
8668 status collapsed
8669
8670 \begin_layout Plain Layout
8671 *.layout
8672 \end_layout
8673
8674 \end_inset
8675
8676  files should begin with lines like:
8677 \end_layout
8678
8679 \begin_layout LyX-Code
8680
8681 \size small
8682 #% Do not delete the line below;
8683  configure depends on this 
8684 \end_layout
8685
8686 \begin_layout LyX-Code
8687
8688 \size small
8689 #  
8690 \backslash
8691 DeclareLaTeXClass{Article (Standard Class)}
8692 \end_layout
8693
8694 \begin_layout LyX-Code
8695
8696 \size small
8697 #  
8698 \backslash
8699 DeclareCategory{Articles}
8700 \end_layout
8701
8702 \begin_layout Standard
8703 The second and third lines are used when you (re)configure \SpecialChar LyX
8704 .
8705  The layout file is read by the \SpecialChar LaTeX
8706  script 
8707 \begin_inset Flex Code
8708 status collapsed
8709
8710 \begin_layout Plain Layout
8711 chkconfig.ltx
8712 \end_layout
8713
8714 \end_inset
8715
8716 ,
8717  in a special mode where 
8718 \begin_inset Flex Code
8719 status collapsed
8720
8721 \begin_layout Plain Layout
8722 #
8723 \end_layout
8724
8725 \end_inset
8726
8727  is ignored.
8728  The first line is just a \SpecialChar LaTeX
8729  comment,
8730  the second one contains the mandatory declaration of the text class and the third line contains the optional classification of the class.
8731  If these lines appear in a file named 
8732 \begin_inset Flex Code
8733 status collapsed
8734
8735 \begin_layout Plain Layout
8736 article.layout
8737 \end_layout
8738
8739 \end_inset
8740
8741 ,
8742  then they define a text class of name 
8743 \begin_inset Flex Code
8744 status collapsed
8745
8746 \begin_layout Plain Layout
8747 article
8748 \end_layout
8749
8750 \end_inset
8751
8752  (the name of the layout file) which uses the \SpecialChar LaTeX
8753  document class 
8754 \begin_inset Flex Code
8755 status collapsed
8756
8757 \begin_layout Plain Layout
8758 article.cls
8759 \end_layout
8760
8761 \end_inset
8762
8763  (the default is to use the same name as the layout).
8764  The string 
8765 \begin_inset Quotes eld
8766 \end_inset
8767
8768 Article (Standard Class)
8769 \begin_inset Quotes erd
8770 \end_inset
8771
8772  that appears above is used as a description of the text class in the 
8773 \begin_inset Flex Noun
8774 status collapsed
8775
8776 \begin_layout Plain Layout
8777 Document\SpecialChar menuseparator
8778 Settings
8779 \end_layout
8780
8781 \end_inset
8782
8783  dialog.
8784  The category (
8785 \begin_inset Quotes eld
8786 \end_inset
8787
8788 Articles
8789 \begin_inset Quotes erd
8790 \end_inset
8791
8792  in the example) is also used in the 
8793 \begin_inset Flex Noun
8794 status collapsed
8795
8796 \begin_layout Plain Layout
8797 Document\SpecialChar menuseparator
8798 Settings
8799 \end_layout
8800
8801 \end_inset
8802
8803  dialog:
8804  the text classes are grouped by these categories (which are usually genres,
8805  so typical categories are 
8806 \begin_inset Quotes eld
8807 \end_inset
8808
8809 Articles
8810 \begin_inset Quotes erd
8811 \end_inset
8812
8813 ,
8814  
8815 \begin_inset Quotes eld
8816 \end_inset
8817
8818 Books
8819 \begin_inset Quotes erd
8820 \end_inset
8821
8822 ,
8823  
8824 \begin_inset Quotes eld
8825 \end_inset
8826
8827 Reports
8828 \begin_inset Quotes erd
8829 \end_inset
8830
8831 ,
8832  
8833 \begin_inset Quotes eld
8834 \end_inset
8835
8836 Letters
8837 \begin_inset Quotes erd
8838 \end_inset
8839
8840 ,
8841  
8842 \begin_inset Quotes eld
8843 \end_inset
8844
8845 Presentations
8846 \begin_inset Quotes erd
8847 \end_inset
8848
8849 ,
8850  
8851 \begin_inset Quotes eld
8852 \end_inset
8853
8854 Curricula Vitae
8855 \begin_inset Quotes erd
8856 \end_inset
8857
8858  etc.).
8859  If no category has been declared,
8860  the class will be put in the 
8861 \begin_inset Quotes eld
8862 \end_inset
8863
8864 Uncategorized
8865 \begin_inset Quotes erd
8866 \end_inset
8867
8868  group.
8869 \end_layout
8870
8871 \begin_layout Standard
8872 Let's assume that you wrote your own text class that uses the 
8873 \begin_inset Flex Code
8874 status collapsed
8875
8876 \begin_layout Plain Layout
8877 article.cls
8878 \end_layout
8879
8880 \end_inset
8881
8882  document class,
8883  but where you changed the appearance of the section headings.
8884  If you put it in a file 
8885 \begin_inset Flex Code
8886 status collapsed
8887
8888 \begin_layout Plain Layout
8889 myarticle.layout
8890 \end_layout
8891
8892 \end_inset
8893
8894 ,
8895  the header of this file should be:
8896 \end_layout
8897
8898 \begin_layout LyX-Code
8899
8900 \size small
8901 #% Do not delete the line below;
8902  configure depends on this 
8903 \end_layout
8904
8905 \begin_layout LyX-Code
8906
8907 \size small
8908 #  
8909 \backslash
8910 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8911 \end_layout
8912
8913 \begin_layout LyX-Code
8914
8915 \size small
8916 #  
8917 \backslash
8918 DeclareCategory{Articles}
8919 \end_layout
8920
8921 \begin_layout Standard
8922 This declares a text class 
8923 \begin_inset Flex Code
8924 status collapsed
8925
8926 \begin_layout Plain Layout
8927 myarticle
8928 \end_layout
8929
8930 \end_inset
8931
8932 ,
8933  associated with the \SpecialChar LaTeX
8934  document class 
8935 \begin_inset Flex Code
8936 status collapsed
8937
8938 \begin_layout Plain Layout
8939 article.cls
8940 \end_layout
8941
8942 \end_inset
8943
8944  and described as 
8945 \begin_inset Quotes eld
8946 \end_inset
8947
8948 Article (with My Own Headings)
8949 \begin_inset Quotes erd
8950 \end_inset
8951
8952 .
8953  If your text class depends on several packages,
8954  you can declare it as:
8955 \end_layout
8956
8957 \begin_layout LyX-Code
8958
8959 \size small
8960 #% Do not delete the line below;
8961  configure depends on this 
8962 \end_layout
8963
8964 \begin_layout LyX-Code
8965
8966 \size small
8967 #  
8968 \backslash
8969 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8970 \end_layout
8971
8972 \begin_layout LyX-Code
8973
8974 \size small
8975 #  
8976 \backslash
8977 DeclareCategory{Articles}
8978 \end_layout
8979
8980 \begin_layout Standard
8981 This indicates that your text class uses the 
8982 \begin_inset Flex Code
8983 status collapsed
8984
8985 \begin_layout Plain Layout
8986 foo.sty
8987 \end_layout
8988
8989 \end_inset
8990
8991  package.
8992  
8993 \change_deleted 5863208 1594239179
8994 Finally,
8995  it is also possible to declare classes for DocBook code.
8996  Typical declarations will look like:
8997 \end_layout
8998
8999 \begin_layout LyX-Code
9000
9001 \change_deleted 5863208 1594239179
9002
9003 \size small
9004 #% Do not delete the line below;
9005  configure depends on this 
9006 \end_layout
9007
9008 \begin_layout LyX-Code
9009
9010 \change_deleted 5863208 1594239179
9011
9012 \size small
9013
9014 \backslash
9015 DeclareDocBookClass[article]{SGML (DocBook Article)}
9016 \end_layout
9017
9018 \begin_layout LyX-Code
9019
9020 \change_deleted 5863208 1594239179
9021
9022 \size small
9023
9024 \backslash
9025 DeclareCategory{Articles (DocBook)}
9026 \change_unchanged
9027
9028 \end_layout
9029
9030 \begin_layout Standard
9031 Note that these declarations can also be given an optional parameter declaring the name of the document class (but not a list).
9032 \end_layout
9033
9034 \begin_layout Standard
9035 So,
9036  to be as explicit as possible,
9037  the form of the layout declaration is:
9038 \end_layout
9039
9040 \begin_layout LyX-Code
9041
9042 \size small
9043 #  
9044 \backslash
9045 DeclareLaTeXClass[class,package.sty]{layout description}
9046 \end_layout
9047
9048 \begin_layout LyX-Code
9049
9050 \size small
9051 #  
9052 \backslash
9053 DeclareCategory{category}
9054 \end_layout
9055
9056 \begin_layout Standard
9057 The class need only be specified if the name of the \SpecialChar LaTeX
9058  class file and the name of the layout file are different or if there are packages to load.
9059  If the name of the class file is not specified,
9060  then \SpecialChar LyX
9061  will simply assume that it is the same as the name of the layout file.
9062 \end_layout
9063
9064 \begin_layout Standard
9065 When the text class has been modified to your taste,
9066  all you have to do is to copy it either to 
9067 \begin_inset Flex Code
9068 status collapsed
9069
9070 \begin_layout Plain Layout
9071 LyXDir/layouts/
9072 \end_layout
9073
9074 \end_inset
9075
9076  or to 
9077 \begin_inset Flex Code
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 UserDir/layouts
9082 \end_layout
9083
9084 \end_inset
9085
9086 ,
9087  run 
9088 \begin_inset Flex Noun
9089 status collapsed
9090
9091 \begin_layout Plain Layout
9092 Tools\SpecialChar menuseparator
9093 Reconfigure
9094 \end_layout
9095
9096 \end_inset
9097
9098 ,
9099  exit \SpecialChar LyX
9100  and restart.
9101  Then your new text class should be available along with the others.
9102 \end_layout
9103
9104 \begin_layout Standard
9105 Once the layout file is installed,
9106  you can edit it and see your changes without having to reconfigure or to restart \SpecialChar LyX
9107 .
9108 \begin_inset Foot
9109 status collapsed
9110
9111 \begin_layout Plain Layout
9112 In versions of \SpecialChar LyX
9113  prior to 1.6,
9114  this was not true.
9115  As a result,
9116  editing layout files was very time consuming,
9117  since you had constantly to restart \SpecialChar LyX
9118  to see changes.
9119 \end_layout
9120
9121 \end_inset
9122
9123  You can force a reload of the current layout by using the \SpecialChar LyX
9124  function 
9125 \begin_inset Flex Noun
9126 status collapsed
9127
9128 \begin_layout Plain Layout
9129 layout-reload
9130 \end_layout
9131
9132 \end_inset
9133
9134 .
9135  There is no default binding for this function—
9136 though,
9137  of course,
9138  you can bind it to a key yourself.
9139  But you will normally use this function simply by entering it in the mini-buffer.
9140  
9141 \end_layout
9142
9143 \begin_layout Standard
9144
9145 \emph on
9146 Warning
9147 \emph default
9148 :
9149  
9150 \begin_inset Flex Noun
9151 status collapsed
9152
9153 \begin_layout Plain Layout
9154 layout-reload
9155 \end_layout
9156
9157 \end_inset
9158
9159  is very much an `advanced feature'.
9160  It is 
9161 \emph on
9162 strongly
9163 \emph default
9164  recommended that you save your work before using this function.
9165  In fact,
9166  it is 
9167 \emph on
9168 strongly
9169 \emph default
9170  recommended that you not attempt to edit layout information while simultaneously working on a document that you care about.
9171  Use a test document.
9172  Syntax errors and the like in your layout file could cause peculiar behavior.
9173  In particular,
9174  such errors could cause \SpecialChar LyX
9175  to regard the current layout as invalid and to attempt to switch to some other layout.
9176 \begin_inset Foot
9177 status collapsed
9178
9179 \begin_layout Plain Layout
9180 Really bad syntax errors may even caused \SpecialChar LyX
9181  to exit.
9182  This is because certain sorts of errors may make \SpecialChar LyX
9183  unable to read 
9184 \emph on
9185 any
9186 \emph default
9187  layout information.
9188  Please be careful.
9189 \end_layout
9190
9191 \end_inset
9192
9193  The \SpecialChar LyX
9194  team strives to keep \SpecialChar LyX
9195  stable in such situations,
9196  but safe is better than sorry.
9197 \begin_inset Foot
9198 status collapsed
9199
9200 \begin_layout Plain Layout
9201 While we're giving advice:
9202  make regular backups.
9203  And be nice to your mother.
9204 \end_layout
9205
9206 \end_inset
9207
9208
9209 \end_layout
9210
9211 \begin_layout Subsection
9212 The Module declaration
9213 \end_layout
9214
9215 \begin_layout Standard
9216 A module must begin with a line like the following:
9217 \end_layout
9218
9219 \begin_layout LyX-Code
9220 #
9221 \backslash
9222 DeclareLyXModule[endnotes.sty]{Endnotes}
9223 \change_inserted -712698321 1554395911
9224
9225 \end_layout
9226
9227 \begin_layout LyX-Code
9228
9229 \change_inserted -712698321 1554395924
9230
9231 \size small
9232 #
9233 \backslash
9234 DeclareCategory{Foot- and Endnotes}
9235 \change_deleted -712698321 1554395911
9236
9237 \size default
9238  
9239 \change_unchanged
9240
9241 \end_layout
9242
9243 \begin_layout Standard
9244 The mandatory argument
9245 \change_inserted -712698321 1554395956
9246  of 
9247 \family typewriter
9248
9249 \backslash
9250 DeclareLyXModule
9251 \change_unchanged
9252
9253 \family default
9254 ,
9255  in curly brackets,
9256  is the name of the module,
9257  as it should appear in 
9258 \begin_inset Flex Noun
9259 status collapsed
9260
9261 \begin_layout Plain Layout
9262 Document\SpecialChar menuseparator
9263 Settings\SpecialChar menuseparator
9264 Modules
9265 \end_layout
9266
9267 \end_inset
9268
9269 .
9270  The argument in square brackets is optional:
9271  It declares any \SpecialChar LaTeX
9272  packages on which the module depends.
9273  It is also possible to use the form 
9274 \begin_inset Flex Noun
9275 status collapsed
9276
9277 \begin_layout Plain Layout
9278 from->to
9279 \end_layout
9280
9281 \end_inset
9282
9283  as an optional argument,
9284  which declares that the module can only be used when there exists a conversion chain between the formats `
9285 \begin_inset Flex Code
9286 status collapsed
9287
9288 \begin_layout Plain Layout
9289 from
9290 \end_layout
9291
9292 \end_inset
9293
9294 ' and `
9295 \begin_inset Flex Code
9296 status collapsed
9297
9298 \begin_layout Plain Layout
9299 to
9300 \end_layout
9301
9302 \end_inset
9303
9304 '.
9305
9306 \change_inserted -712698321 1554396133
9307  The 
9308 \family typewriter
9309
9310 \backslash
9311 DeclareCategory
9312 \family default
9313  declaration is not strictly mandatory,
9314  but you should add it,
9315  since it is helpful to find the module.
9316  Please have a look at the existing module categories and if appropriate,
9317  use one of those.
9318 \change_unchanged
9319
9320 \end_layout
9321
9322 \begin_layout Standard
9323 The module 
9324 \change_inserted -712698321 1554395988
9325 and category 
9326 \change_unchanged
9327 declaration should then be followed by lines like the following:
9328 \begin_inset Foot
9329 status collapsed
9330
9331 \begin_layout Plain Layout
9332 Preferably in English if the module should be published with \SpecialChar LyX
9333 .
9334  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9335 \end_layout
9336
9337 \end_inset
9338
9339
9340 \end_layout
9341
9342 \begin_layout LyX-Code
9343 #DescriptionBegin 
9344 \end_layout
9345
9346 \begin_layout LyX-Code
9347 #Adds an endnote command,
9348  in addition to footnotes.
9349  
9350 \end_layout
9351
9352 \begin_layout LyX-Code
9353 #You will need to add  
9354 \backslash
9355 theendnotes in TeX code where you 
9356 \end_layout
9357
9358 \begin_layout LyX-Code
9359 #want the endnotes to appear.
9360  
9361 \end_layout
9362
9363 \begin_layout LyX-Code
9364 #DescriptionEnd 
9365 \end_layout
9366
9367 \begin_layout LyX-Code
9368 #Requires:
9369  somemodule | othermodule
9370 \end_layout
9371
9372 \begin_layout LyX-Code
9373 #Excludes:
9374  badmodule
9375 \end_layout
9376
9377 \begin_layout Standard
9378 The description is used in 
9379 \begin_inset Flex Noun
9380 status collapsed
9381
9382 \begin_layout Plain Layout
9383 Document\SpecialChar menuseparator
9384 Settings\SpecialChar menuseparator
9385 Modules
9386 \end_layout
9387
9388 \end_inset
9389
9390  to provide the user with information about what the module does.
9391  The 
9392 \begin_inset Flex Code
9393 status collapsed
9394
9395 \begin_layout Plain Layout
9396 Requires
9397 \end_layout
9398
9399 \end_inset
9400
9401  line is used to identify other modules with which this one must be used;
9402  the 
9403 \begin_inset Flex Code
9404 status collapsed
9405
9406 \begin_layout Plain Layout
9407 Excludes
9408 \end_layout
9409
9410 \end_inset
9411
9412  line is used to identify modules with which this one may not be used.
9413  Both are optional,
9414  and,
9415  as shown,
9416  multiple modules should be separated with the pipe symbol:
9417  |.
9418  Note that the required modules are treated disjunctively:
9419  
9420 \emph on
9421 at least one
9422 \emph default
9423  of the required modules must be used.
9424  Similarly,
9425  
9426 \emph on
9427 no
9428 \emph default
9429  excluded module may be used.
9430  Note that modules are identified here by their filenames without the 
9431 \begin_inset Flex Code
9432 status collapsed
9433
9434 \begin_layout Plain Layout
9435 .module
9436 \end_layout
9437
9438 \end_inset
9439
9440  extension.
9441  So 
9442 \begin_inset Flex Code
9443 status collapsed
9444
9445 \begin_layout Plain Layout
9446 somemodule
9447 \end_layout
9448
9449 \end_inset
9450
9451  is really 
9452 \begin_inset Flex Code
9453 status collapsed
9454
9455 \begin_layout Plain Layout
9456 somemodule.module
9457 \end_layout
9458
9459 \end_inset
9460
9461 .
9462 \end_layout
9463
9464 \begin_layout Subsection
9465 The CiteEngine file declaration
9466 \end_layout
9467
9468 \begin_layout Standard
9469 A cite engine file must begin with a line like the following:
9470 \end_layout
9471
9472 \begin_layout LyX-Code
9473 #
9474 \backslash
9475 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9476 \end_layout
9477
9478 \begin_layout Standard
9479 The mandatory argument,
9480  in curly brackets,
9481  is the name of the cite style,
9482  as it should appear in 
9483 \begin_inset Flex Noun
9484 status collapsed
9485
9486 \begin_layout Plain Layout
9487 Document\SpecialChar menuseparator
9488 Settings\SpecialChar menuseparator
9489 Bibliography
9490 \end_layout
9491
9492 \end_inset
9493
9494 .
9495  The argument in square brackets is optional:
9496  It declares any \SpecialChar LaTeX
9497  packages on which the cite engine depends.
9498 \end_layout
9499
9500 \begin_layout Standard
9501 The cite engine declaration should then be followed by lines like the following:
9502 \begin_inset Foot
9503 status collapsed
9504
9505 \begin_layout Plain Layout
9506 Preferably in English if the module should be published with \SpecialChar LyX
9507 .
9508  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9509 \end_layout
9510
9511 \end_inset
9512
9513
9514 \end_layout
9515
9516 \begin_layout LyX-Code
9517 # DescriptionBegin
9518 \end_layout
9519
9520 \begin_layout LyX-Code
9521 #   Biblatex supports many author-year and numerical styles.
9522 \end_layout
9523
9524 \begin_layout LyX-Code
9525 #   It is mainly aimed at the Humanities.
9526  It is highly
9527 \end_layout
9528
9529 \begin_layout LyX-Code
9530 #   customizable,
9531  fully localized and provides many features
9532 \end_layout
9533
9534 \begin_layout LyX-Code
9535 #   that are not possible with BibTeX.
9536  The use of 'biber' as
9537 \end_layout
9538
9539 \begin_layout LyX-Code
9540 #   bibliography processor is advised.
9541 \end_layout
9542
9543 \begin_layout LyX-Code
9544 # DescriptionEnd
9545 \end_layout
9546
9547 \begin_layout Standard
9548 The description is used in 
9549 \begin_inset Flex Noun
9550 status collapsed
9551
9552 \begin_layout Plain Layout
9553 Document\SpecialChar menuseparator
9554 Settings\SpecialChar menuseparator
9555 Bibliography
9556 \end_layout
9557
9558 \end_inset
9559
9560  to provide the user with information about the cite engine.
9561 \end_layout
9562
9563 \begin_layout Subsection
9564 Format number
9565 \end_layout
9566
9567 \begin_layout Standard
9568 The first non-comment line of any layout file,
9569  included file,
9570  or module 
9571 \emph on
9572 must
9573 \emph default
9574  contain the file format number:
9575 \end_layout
9576
9577 \begin_layout Description
9578 \begin_inset Flex Code
9579 status collapsed
9580
9581 \begin_layout Plain Layout
9582 Format
9583 \end_layout
9584
9585 \end_inset
9586
9587  [
9588 \begin_inset Flex Code
9589 status collapsed
9590
9591 \begin_layout Plain Layout
9592 int
9593 \end_layout
9594
9595 \end_inset
9596
9597 ] The format number of the layout file.
9598 \end_layout
9599
9600 \begin_layout Standard
9601 This tag was introduced with \SpecialChar LyX
9602
9603 \begin_inset space ~
9604 \end_inset
9605
9606 1.4.0.
9607  Layout files from older \SpecialChar LyX
9608  versions do not have an explicit file format and are considered to have 
9609 \begin_inset Flex Code
9610 status collapsed
9611
9612 \begin_layout Plain Layout
9613 Format
9614 \begin_inset space ~
9615 \end_inset
9616
9617 1
9618 \end_layout
9619
9620 \end_inset
9621
9622 .
9623  The format for the present version of \SpecialChar LyX
9624  is format 60.
9625  But each version of \SpecialChar LyX
9626  is capable of reading earlier versions' layout files,
9627  just as they are capable of reading files produced by earlier versions of \SpecialChar LyX
9628 .
9629  There is,
9630  however,
9631  no provision for converting to earlier formats.
9632 \end_layout
9633
9634 \begin_layout Subsection
9635 \begin_inset CommandInset label
9636 LatexCommand label
9637 name "subsec:General-text-class"
9638
9639 \end_inset
9640
9641 General text class parameters
9642 \end_layout
9643
9644 \begin_layout Standard
9645 These are general parameters that govern the behavior of an entire document class.
9646  (This does 
9647 \emph on
9648 not
9649 \emph default
9650  mean that they must appear in 
9651 \begin_inset Flex Code
9652 status collapsed
9653
9654 \begin_layout Plain Layout
9655 .layout
9656 \end_layout
9657
9658 \end_inset
9659
9660  files rather than in modules.
9661  A module can contain any layout tag.)
9662 \end_layout
9663
9664 \begin_layout Description
9665
9666 \change_inserted -712698321 1526899478
9667 \begin_inset Flex Code
9668 status collapsed
9669
9670 \begin_layout Plain Layout
9671
9672 \change_inserted -712698321 1526898610
9673 AddToCiteEngine <engine>
9674 \change_unchanged
9675
9676 \end_layout
9677
9678 \end_inset
9679
9680  Extends the possibilities for displaying citation references.
9681  See 
9682 \begin_inset CommandInset ref
9683 LatexCommand ref
9684 reference "subsec:Citation-engine-description"
9685 plural "false"
9686 caps "false"
9687 noprefix "false"
9688 nolink "false"
9689
9690 \end_inset
9691
9692  for details.
9693  Must end with 
9694 \begin_inset Flex Code
9695 status collapsed
9696
9697 \begin_layout Plain Layout
9698
9699 \change_inserted -712698321 1526898823
9700 End
9701 \change_unchanged
9702
9703 \end_layout
9704
9705 \end_inset
9706
9707 .
9708 \end_layout
9709
9710 \begin_layout Description
9711 \begin_inset Flex Code
9712 status collapsed
9713
9714 \begin_layout Plain Layout
9715 AddToHTMLPreamble
9716 \end_layout
9717
9718 \end_inset
9719
9720  Adds information that will be output in the 
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 <head>
9726 \end_layout
9727
9728 \end_inset
9729
9730  block when the document is output to XHTML.
9731  Typically,
9732  this would be used to output CSS style information,
9733  but it can be used for anything that can appear in 
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 <head>
9739 \end_layout
9740
9741 \end_inset
9742
9743 .
9744  Must end with 
9745 \begin_inset Quotes eld
9746 \end_inset
9747
9748
9749 \begin_inset Flex Code
9750 status collapsed
9751
9752 \begin_layout Plain Layout
9753 EndPreamble
9754 \end_layout
9755
9756 \end_inset
9757
9758
9759 \begin_inset Quotes erd
9760 \end_inset
9761
9762 .
9763 \end_layout
9764
9765 \begin_layout Description
9766 \begin_inset Flex Code
9767 status collapsed
9768
9769 \begin_layout Plain Layout
9770 AddToPreamble
9771 \end_layout
9772
9773 \end_inset
9774
9775  Adds information to the document preamble.
9776  Must end with
9777 \begin_inset Newline newline
9778 \end_inset
9779
9780
9781 \begin_inset Quotes eld
9782 \end_inset
9783
9784
9785 \begin_inset Flex Code
9786 status collapsed
9787
9788 \begin_layout Plain Layout
9789 EndPreamble
9790 \end_layout
9791
9792 \end_inset
9793
9794
9795 \begin_inset Quotes erd
9796 \end_inset
9797
9798 .
9799 \change_inserted -712698321 1562592950
9800
9801 \end_layout
9802
9803 \begin_layout Description
9804
9805 \change_inserted -712698321 1562593040
9806 \begin_inset Flex Code
9807 status collapsed
9808
9809 \begin_layout Plain Layout
9810
9811 \change_inserted -712698321 1562592954
9812 BibInToc
9813 \change_unchanged
9814
9815 \end_layout
9816
9817 \end_inset
9818
9819  [
9820 \begin_inset Flex Code
9821 status collapsed
9822
9823 \begin_layout Plain Layout
9824
9825 \change_inserted -712698321 1562592950
9826
9827 \emph on
9828 0
9829 \change_unchanged
9830
9831 \end_layout
9832
9833 \end_inset
9834
9835 ,
9836 \begin_inset space \thinspace{}
9837 \end_inset
9838
9839
9840 \begin_inset Flex Code
9841 status collapsed
9842
9843 \begin_layout Plain Layout
9844
9845 \change_inserted -712698321 1562592950
9846 1
9847 \change_unchanged
9848
9849 \end_layout
9850
9851 \end_inset
9852
9853 ] If the document class adds the bibliography to the table of contents,
9854  add this option with value 
9855 \begin_inset Flex Code
9856 status collapsed
9857
9858 \begin_layout Plain Layout
9859
9860 \change_inserted -712698321 1562592996
9861 1
9862 \change_unchanged
9863
9864 \end_layout
9865
9866 \end_inset
9867
9868  (or 
9869 \begin_inset Flex Code
9870 status collapsed
9871
9872 \begin_layout Plain Layout
9873
9874 \change_inserted -712698321 1562593006
9875 true
9876 \change_unchanged
9877
9878 \end_layout
9879
9880 \end_inset
9881
9882 ).
9883  This prevents the bibliography from being added twice.
9884 \change_unchanged
9885
9886 \end_layout
9887
9888 \begin_layout Description
9889 \begin_inset Flex Code
9890 status collapsed
9891
9892 \begin_layout Plain Layout
9893 CiteEngine <engine>
9894 \end_layout
9895
9896 \end_inset
9897
9898  Defines the possibilities for displaying citation references.
9899  See 
9900 \begin_inset CommandInset ref
9901 LatexCommand ref
9902 reference "subsec:Citation-engine-description"
9903 plural "false"
9904 caps "false"
9905 noprefix "false"
9906 nolink "false"
9907
9908 \end_inset
9909
9910  for details.
9911  Must end with 
9912 \begin_inset Quotes eld
9913 \end_inset
9914
9915
9916 \begin_inset Flex Code
9917 status collapsed
9918
9919 \begin_layout Plain Layout
9920 End
9921 \end_layout
9922
9923 \end_inset
9924
9925
9926 \begin_inset Quotes erd
9927 \end_inset
9928
9929 .
9930  Primarily used in cite engine files (see 
9931 \begin_inset CommandInset ref
9932 LatexCommand ref
9933 reference "subsec:Cite-Engine-Files"
9934 plural "false"
9935 caps "false"
9936 noprefix "false"
9937 nolink "false"
9938
9939 \end_inset
9940
9941 ).
9942
9943 \change_inserted -712698321 1526898530
9944  Note that if you specify this in a layout file or module,
9945  any cite engine definition will be overridden.
9946  Also see 
9947 \begin_inset Flex Code
9948 status collapsed
9949
9950 \begin_layout Plain Layout
9951
9952 \change_inserted -712698321 1526898530
9953 AddToCiteEngine
9954 \change_unchanged
9955
9956 \end_layout
9957
9958 \end_inset
9959
9960 .
9961 \change_unchanged
9962
9963 \end_layout
9964
9965 \begin_layout Description
9966 \begin_inset Flex Code
9967 status collapsed
9968
9969 \begin_layout Plain Layout
9970 CiteFormat
9971 \end_layout
9972
9973 \end_inset
9974
9975  Defines formats for use in the display of bibliographic information.
9976  See 
9977 \begin_inset CommandInset ref
9978 LatexCommand ref
9979 reference "subsec:Citation-format-description"
9980 nolink "false"
9981
9982 \end_inset
9983
9984  for details.
9985  Must end with 
9986 \begin_inset Quotes eld
9987 \end_inset
9988
9989
9990 \begin_inset Flex Code
9991 status collapsed
9992
9993 \begin_layout Plain Layout
9994 End
9995 \end_layout
9996
9997 \end_inset
9998
9999
10000 \begin_inset Quotes erd
10001 \end_inset
10002
10003 .
10004  Primarily used in cite engine files (see 
10005 \begin_inset CommandInset ref
10006 LatexCommand ref
10007 reference "subsec:Cite-Engine-Files"
10008 plural "false"
10009 caps "false"
10010 noprefix "false"
10011 nolink "false"
10012
10013 \end_inset
10014
10015 ).
10016
10017 \change_inserted -712698321 1526898585
10018  A cite format defined in a layout or module will override the cite engine definition.
10019 \change_unchanged
10020
10021 \end_layout
10022
10023 \begin_layout Description
10024 \begin_inset Flex Code
10025 status collapsed
10026
10027 \begin_layout Plain Layout
10028 CiteFramework
10029 \end_layout
10030
10031 \end_inset
10032
10033  [
10034 \begin_inset Flex Code
10035 status collapsed
10036
10037 \begin_layout Plain Layout
10038
10039 \emph on
10040 bibtex
10041 \end_layout
10042
10043 \end_inset
10044
10045 ,
10046 \begin_inset Flex Code
10047 status collapsed
10048
10049 \begin_layout Plain Layout
10050 biblatex
10051 \end_layout
10052
10053 \end_inset
10054
10055 ] Determines whether 
10056 \family sans
10057 Biblatex
10058 \family default
10059  or Bib\SpecialChar TeX
10060  is used to generate a Bibliography.
10061  Primarily used in cite engine files (see 
10062 \begin_inset CommandInset ref
10063 LatexCommand ref
10064 reference "subsec:Cite-Engine-Files"
10065 plural "false"
10066 caps "false"
10067 noprefix "false"
10068 nolink "false"
10069
10070 \end_inset
10071
10072 ).
10073 \end_layout
10074
10075 \begin_layout Description
10076 \begin_inset Flex Code
10077 status collapsed
10078
10079 \begin_layout Plain Layout
10080 ClassOptions
10081 \end_layout
10082
10083 \end_inset
10084
10085  Describes various global options supported by the document class.
10086  See 
10087 \begin_inset CommandInset ref
10088 LatexCommand ref
10089 reference "subsec:ClassOptions"
10090 nolink "false"
10091
10092 \end_inset
10093
10094  for a description.
10095  Must end with 
10096 \begin_inset Quotes eld
10097 \end_inset
10098
10099
10100 \begin_inset Flex Code
10101 status collapsed
10102
10103 \begin_layout Plain Layout
10104 End
10105 \end_layout
10106
10107 \end_inset
10108
10109
10110 \begin_inset Quotes erd
10111 \end_inset
10112
10113 .
10114 \end_layout
10115
10116 \begin_layout Description
10117 \begin_inset Flex Code
10118 status collapsed
10119
10120 \begin_layout Plain Layout
10121 Columns
10122 \end_layout
10123
10124 \end_inset
10125
10126  [
10127 \begin_inset Flex Code
10128 status collapsed
10129
10130 \begin_layout Plain Layout
10131
10132 \emph on
10133 1
10134 \end_layout
10135
10136 \end_inset
10137
10138 ,
10139 \begin_inset space \thinspace{}
10140 \end_inset
10141
10142
10143 \begin_inset Flex Code
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147 2
10148 \end_layout
10149
10150 \end_inset
10151
10152 ] Whether the class should 
10153 \emph on
10154 default
10155 \emph default
10156  to having one or two columns.
10157  Can be changed in the 
10158 \begin_inset Flex Noun
10159 status collapsed
10160
10161 \begin_layout Plain Layout
10162 Document\SpecialChar menuseparator
10163 Settings
10164 \end_layout
10165
10166 \end_inset
10167
10168  dialog.
10169 \end_layout
10170
10171 \begin_layout Description
10172 \begin_inset Flex Code
10173 status collapsed
10174
10175 \begin_layout Plain Layout
10176 Counter
10177 \end_layout
10178
10179 \end_inset
10180
10181  [
10182 \begin_inset Flex Code
10183 status collapsed
10184
10185 \begin_layout Plain Layout
10186 string
10187 \end_layout
10188
10189 \end_inset
10190
10191 ] This sequence defines the properties for a counter.
10192  If the counter does not yet exist,
10193  it is created;
10194  if it does exist,
10195  it is modified.
10196  Must end with 
10197 \begin_inset Quotes eld
10198 \end_inset
10199
10200
10201 \begin_inset Flex Code
10202 status collapsed
10203
10204 \begin_layout Plain Layout
10205 End
10206 \end_layout
10207
10208 \end_inset
10209
10210
10211 \begin_inset Quotes erd
10212 \end_inset
10213
10214 .
10215 \begin_inset Newline newline
10216 \end_inset
10217
10218 See 
10219 \begin_inset CommandInset ref
10220 LatexCommand ref
10221 reference "subsec:Counters"
10222 nolink "false"
10223
10224 \end_inset
10225
10226  for details on counters.
10227 \end_layout
10228
10229 \begin_layout Description
10230 \begin_inset Flex Code
10231 status collapsed
10232
10233 \begin_layout Plain Layout
10234 DefaultFont
10235 \end_layout
10236
10237 \end_inset
10238
10239  Sets the default font used to display the document.
10240  See 
10241 \begin_inset CommandInset ref
10242 LatexCommand ref
10243 reference "subsec:Font-description"
10244 nolink "false"
10245
10246 \end_inset
10247
10248  for how to declare fonts.
10249  Must end with 
10250 \begin_inset Quotes eld
10251 \end_inset
10252
10253
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258 EndFont
10259 \end_layout
10260
10261 \end_inset
10262
10263
10264 \begin_inset Quotes erd
10265 \end_inset
10266
10267 .
10268 \end_layout
10269
10270 \begin_layout Description
10271 \begin_inset Flex Code
10272 status collapsed
10273
10274 \begin_layout Plain Layout
10275 DefaultModule
10276 \end_layout
10277
10278 \end_inset
10279
10280  [
10281 \begin_inset Flex Code
10282 status collapsed
10283
10284 \begin_layout Plain Layout
10285 <module>
10286 \end_layout
10287
10288 \end_inset
10289
10290 ] Specifies a module to be included by default with this document class.
10291  The module is specified as filename without the 
10292 \begin_inset Flex Code
10293 status collapsed
10294
10295 \begin_layout Plain Layout
10296 .module
10297 \end_layout
10298
10299 \end_inset
10300
10301  extension.
10302  The user can still remove the module,
10303  but it will be active at the outset.
10304  (This applies only when new files are created,
10305  or when this class is chosen for an existing document.)
10306 \end_layout
10307
10308 \begin_layout Description
10309 \begin_inset Flex Code
10310 status collapsed
10311
10312 \begin_layout Plain Layout
10313 DefaultStyle
10314 \end_layout
10315
10316 \end_inset
10317
10318  [
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323 <style>
10324 \end_layout
10325
10326 \end_inset
10327
10328 ] This is the style that will be assigned to new paragraphs,
10329  usually 
10330 \begin_inset Flex Noun
10331 status collapsed
10332
10333 \begin_layout Plain Layout
10334 Standard
10335 \end_layout
10336
10337 \end_inset
10338
10339 .
10340  This will default to the first defined style if not given,
10341  but you are encouraged to use this directive.
10342 \end_layout
10343
10344 \begin_layout Description
10345
10346 \change_inserted -970929547 1515112870
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351
10352 \change_inserted -970929547 1515112782
10353 DocBookRoot
10354 \change_unchanged
10355
10356 \end_layout
10357
10358 \end_inset
10359
10360  [
10361 \begin_inset Flex Code
10362 status collapsed
10363
10364 \begin_layout Plain Layout
10365
10366 \change_inserted -970929547 1515112766
10367 string
10368 \change_unchanged
10369
10370 \end_layout
10371
10372 \end_inset
10373
10374 ] The root element (at the top of the document) to use when outputting documents with this class in DocBook.
10375  The default value is 
10376 \begin_inset Quotes eld
10377 \end_inset
10378
10379
10380 \begin_inset Flex Code
10381 status collapsed
10382
10383 \begin_layout Plain Layout
10384
10385 \change_inserted -970929547 1515112845
10386 article
10387 \change_unchanged
10388
10389 \end_layout
10390
10391 \end_inset
10392
10393
10394 \begin_inset Quotes erd
10395 \end_inset
10396
10397 .
10398
10399 \change_deleted 1075283030 1594226862
10400  
10401 \change_inserted 1075283030 1594226777
10402
10403 \end_layout
10404
10405 \begin_layout Description
10406
10407 \change_inserted 1075283030 1594226859
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412
10413 \change_inserted 1075283030 1594226785
10414 DocBookForceAbstract
10415 \change_unchanged
10416
10417 \end_layout
10418
10419 \end_inset
10420
10421  [
10422 \begin_inset Flex Code
10423 status collapsed
10424
10425 \begin_layout Plain Layout
10426
10427 \change_inserted 1075283030 1594226804
10428 boolean
10429 \change_unchanged
10430
10431 \end_layout
10432
10433 \end_inset
10434
10435 ] If 
10436 \begin_inset Quotes eld
10437 \end_inset
10438
10439
10440 \family typewriter
10441 true
10442 \family default
10443
10444 \begin_inset Quotes erd
10445 \end_inset
10446
10447 ,
10448  the root element will always have an 
10449 \family typewriter
10450 <abstract>
10451 \family default
10452  tag.
10453  The default value is 
10454 \begin_inset Quotes eld
10455 \end_inset
10456
10457
10458 \family typewriter
10459 false
10460 \family default
10461
10462 \begin_inset Quotes erd
10463 \end_inset
10464
10465 .
10466 \change_unchanged
10467
10468 \end_layout
10469
10470 \begin_layout Description
10471 \begin_inset Flex Code
10472 status collapsed
10473
10474 \begin_layout Plain Layout
10475 ExcludesModule
10476 \end_layout
10477
10478 \end_inset
10479
10480  [
10481 \begin_inset Flex Code
10482 status collapsed
10483
10484 \begin_layout Plain Layout
10485 <module>
10486 \end_layout
10487
10488 \end_inset
10489
10490 ] This tag indicates that the module (which is specified by filename without the 
10491 \begin_inset Flex Code
10492 status collapsed
10493
10494 \begin_layout Plain Layout
10495 .module
10496 \end_layout
10497
10498 \end_inset
10499
10500  extension) cannot be used with this document class.
10501  This might be used in a journal-specific layout file to prevent,
10502  say,
10503  the use of the 
10504 \begin_inset Flex Code
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 theorems-sec
10509 \end_layout
10510
10511 \end_inset
10512
10513  module that numbers theorems by section.
10514  This tag may 
10515 \emph on
10516 not
10517 \emph default
10518  be used in a module.
10519  Modules have their own way of excluding other modules (see 
10520 \begin_inset CommandInset ref
10521 LatexCommand ref
10522 reference "subsec:Layout-modules"
10523 nolink "false"
10524
10525 \end_inset
10526
10527 ).
10528 \end_layout
10529
10530 \begin_layout Description
10531 \begin_inset Flex Code
10532 status collapsed
10533
10534 \begin_layout Plain Layout
10535 Float
10536 \end_layout
10537
10538 \end_inset
10539
10540  Defines a new float.
10541  See 
10542 \begin_inset CommandInset ref
10543 LatexCommand ref
10544 reference "subsec:Floats"
10545 nolink "false"
10546
10547 \end_inset
10548
10549  for details.
10550  Must end with 
10551 \begin_inset Quotes eld
10552 \end_inset
10553
10554
10555 \begin_inset Flex Code
10556 status collapsed
10557
10558 \begin_layout Plain Layout
10559 End
10560 \end_layout
10561
10562 \end_inset
10563
10564
10565 \begin_inset Quotes erd
10566 \end_inset
10567
10568 .
10569 \end_layout
10570
10571 \begin_layout Description
10572 \begin_inset Flex Code
10573 status collapsed
10574
10575 \begin_layout Plain Layout
10576 HTMLPreamble
10577 \end_layout
10578
10579 \end_inset
10580
10581  Sets the information that will be output in the 
10582 \begin_inset Flex Code
10583 status collapsed
10584
10585 \begin_layout Plain Layout
10586 <head>
10587 \end_layout
10588
10589 \end_inset
10590
10591  block when this document class is output to XHTML.
10592  Note that this will completely override any prior 
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 HTMLPreamble
10598 \end_layout
10599
10600 \end_inset
10601
10602  or 
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 AddToHTMLPreamble
10608 \end_layout
10609
10610 \end_inset
10611
10612  declarations.
10613  (Use
10614 \begin_inset Newline newline
10615 \end_inset
10616
10617
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 AddToHTMLPreamble
10623 \end_layout
10624
10625 \end_inset
10626
10627  if you just want to add material to the preamble.) Must end with 
10628 \begin_inset Quotes eld
10629 \end_inset
10630
10631
10632 \begin_inset Flex Code
10633 status collapsed
10634
10635 \begin_layout Plain Layout
10636 EndPreamble
10637 \end_layout
10638
10639 \end_inset
10640
10641
10642 \begin_inset Quotes erd
10643 \end_inset
10644
10645 .
10646 \end_layout
10647
10648 \begin_layout Description
10649 \begin_inset Flex Code
10650 status collapsed
10651
10652 \begin_layout Plain Layout
10653 HTMLTOCSection
10654 \end_layout
10655
10656 \end_inset
10657
10658  [
10659 \begin_inset Flex Code
10660 status collapsed
10661
10662 \begin_layout Plain Layout
10663 <style>
10664 \end_layout
10665
10666 \end_inset
10667
10668 ] The style to use for the table of contents,
10669  bibliography,
10670  and so forth,
10671  when the document is output to HTML.
10672  For articles,
10673  this should normally be 
10674 \begin_inset Flex Code
10675 status collapsed
10676
10677 \begin_layout Plain Layout
10678 Section
10679 \end_layout
10680
10681 \end_inset
10682
10683 ;
10684  for books 
10685 \begin_inset Flex Code
10686 status collapsed
10687
10688 \begin_layout Plain Layout
10689 Chapter
10690 \end_layout
10691
10692 \end_inset
10693
10694 .
10695  If it is not given,
10696  then \SpecialChar LyX
10697  will attempt to figure out which layout to use.
10698 \end_layout
10699
10700 \begin_layout Description
10701 \begin_inset Flex Code
10702 status collapsed
10703
10704 \begin_layout Plain Layout
10705 IfCounter
10706 \end_layout
10707
10708 \end_inset
10709
10710  [
10711 \begin_inset Flex Code
10712 status collapsed
10713
10714 \begin_layout Plain Layout
10715 <counter>
10716 \end_layout
10717
10718 \end_inset
10719
10720 ] Modifies the properties of the given counter.
10721  If the counter does not exist,
10722  the statement is ignored.
10723  Must end with 
10724 \begin_inset Quotes eld
10725 \end_inset
10726
10727
10728 \begin_inset Flex Code
10729 status collapsed
10730
10731 \begin_layout Plain Layout
10732 End
10733 \end_layout
10734
10735 \end_inset
10736
10737
10738 \begin_inset Quotes erd
10739 \end_inset
10740
10741 .
10742 \begin_inset Newline newline
10743 \end_inset
10744
10745 See 
10746 \begin_inset CommandInset ref
10747 LatexCommand ref
10748 reference "subsec:Counters"
10749 nolink "false"
10750
10751 \end_inset
10752
10753  for details on counters.
10754 \end_layout
10755
10756 \begin_layout Description
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 Input
10762 \end_layout
10763
10764 \end_inset
10765
10766  [
10767 \begin_inset Flex Code
10768 status collapsed
10769
10770 \begin_layout Plain Layout
10771 <filename>
10772 \end_layout
10773
10774 \end_inset
10775
10776 ] This allows you to include another layout definition file within yours to avoid duplicating commands.
10777  Common examples are the standard layout files,
10778  for example,
10779  
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 stdclass.inc
10785 \end_layout
10786
10787 \end_inset
10788
10789 ,
10790  which contains most of the basic layouts.
10791 \change_inserted -712698321 1611646803
10792
10793 \end_layout
10794
10795 \begin_layout Description
10796
10797 \change_inserted -712698321 1611646804
10798 \begin_inset Flex Code
10799 status collapsed
10800
10801 \begin_layout Plain Layout
10802
10803 \change_inserted -712698321 1611646837
10804 InputGlobal
10805 \change_unchanged
10806
10807 \end_layout
10808
10809 \end_inset
10810
10811  [
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816
10817 \change_inserted -712698321 1611646804
10818 <filename>
10819 \change_unchanged
10820
10821 \end_layout
10822
10823 \end_inset
10824
10825 ] is a variant of the 
10826 \begin_inset Flex Code
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830
10831 \change_inserted -712698321 1611646804
10832 Input
10833 \change_unchanged
10834
10835 \end_layout
10836
10837 \end_inset
10838
10839  command which does not look for files in the user directory.
10840  This allows to create a file 
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845
10846 \change_inserted -712698321 1611646804
10847 name.layout
10848 \change_unchanged
10849
10850 \end_layout
10851
10852 \end_inset
10853
10854  or 
10855 \begin_inset Flex Code
10856 status collapsed
10857
10858 \begin_layout Plain Layout
10859
10860 \change_inserted -712698321 1611646804
10861 name.inc
10862 \change_unchanged
10863
10864 \end_layout
10865
10866 \end_inset
10867
10868  in the user directory which includes a global file with the same name via 
10869 \begin_inset Flex Code
10870 status collapsed
10871
10872 \begin_layout Plain Layout
10873
10874 \change_inserted -712698321 1611646853
10875 InputGlobal name
10876 \change_unchanged
10877
10878 \end_layout
10879
10880 \end_inset
10881
10882  or 
10883 \begin_inset Flex Code
10884 status collapsed
10885
10886 \begin_layout Plain Layout
10887
10888 \change_inserted -712698321 1611646855
10889 InputGlobal name.inc
10890 \change_unchanged
10891
10892 \end_layout
10893
10894 \end_inset
10895
10896 ,
10897  respectively (with 
10898 \begin_inset Flex Code
10899 status collapsed
10900
10901 \begin_layout Plain Layout
10902
10903 \change_inserted -712698321 1611646804
10904 Input
10905 \change_unchanged
10906
10907 \end_layout
10908
10909 \end_inset
10910
10911 ,
10912  the file would recursively include itself).
10913  This way,
10914  you can modify global files without having to completely copy them.
10915 \change_unchanged
10916
10917 \end_layout
10918
10919 \begin_layout Description
10920 \begin_inset Flex Code
10921 status collapsed
10922
10923 \begin_layout Plain Layout
10924 InsetLayout
10925 \end_layout
10926
10927 \end_inset
10928
10929  [
10930 \begin_inset Flex Code
10931 status collapsed
10932
10933 \begin_layout Plain Layout
10934 <type>
10935 \end_layout
10936
10937 \end_inset
10938
10939 ] This section (re-)defines the layout of an inset.
10940  It can be applied to an existing inset or to a new,
10941  user-defined inset,
10942  e.g.,
10943  a new character style.
10944  Must end with 
10945 \begin_inset Quotes eld
10946 \end_inset
10947
10948
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953 End
10954 \end_layout
10955
10956 \end_inset
10957
10958
10959 \begin_inset Quotes erd
10960 \end_inset
10961
10962 .
10963 \begin_inset Newline newline
10964 \end_inset
10965
10966 See 
10967 \begin_inset CommandInset ref
10968 LatexCommand ref
10969 reference "subsec:Flex-insets-and"
10970 nolink "false"
10971
10972 \end_inset
10973
10974  for more information.
10975  
10976 \end_layout
10977
10978 \begin_layout Description
10979 \begin_inset Flex Code
10980 status collapsed
10981
10982 \begin_layout Plain Layout
10983 LeftMargin
10984 \end_layout
10985
10986 \end_inset
10987
10988  [
10989 \begin_inset Flex Code
10990 status collapsed
10991
10992 \begin_layout Plain Layout
10993 string
10994 \end_layout
10995
10996 \end_inset
10997
10998 ] A string that indicates the width of the left margin on the screen,
10999  for example,
11000  
11001 \begin_inset Quotes eld
11002 \end_inset
11003
11004
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 MMMMM
11010 \end_layout
11011
11012 \end_inset
11013
11014
11015 \begin_inset Quotes erd
11016 \end_inset
11017
11018 .
11019  (Note that this is not a `length',
11020  like 
11021 \begin_inset Quotes eld
11022 \end_inset
11023
11024 2ex
11025 \begin_inset Quotes erd
11026 \end_inset
11027
11028 .)
11029 \end_layout
11030
11031 \begin_layout Description
11032 \begin_inset Flex Code
11033 status collapsed
11034
11035 \begin_layout Plain Layout
11036 MaxCiteNames
11037 \end_layout
11038
11039 \end_inset
11040
11041  [
11042 \begin_inset Flex Code
11043 status collapsed
11044
11045 \begin_layout Plain Layout
11046 integer
11047 \end_layout
11048
11049 \end_inset
11050
11051 ] An integer that determines the maximal number of names displayed in an author-year citation before the citation switches to 
11052 \begin_inset Quotes eld
11053 \end_inset
11054
11055 FirstAuthor et al.
11056 \begin_inset Quotes erd
11057 \end_inset
11058
11059 .
11060  Primarily used in cite engine files (see 
11061 \begin_inset CommandInset ref
11062 LatexCommand ref
11063 reference "subsec:Cite-Engine-Files"
11064 plural "false"
11065 caps "false"
11066 noprefix "false"
11067 nolink "false"
11068
11069 \end_inset
11070
11071 ).
11072 \end_layout
11073
11074 \begin_layout Description
11075
11076 \change_inserted -712698321 1612018485
11077 \begin_inset Flex Code
11078 status collapsed
11079
11080 \begin_layout Plain Layout
11081
11082 \change_inserted -712698321 1612018457
11083 ModifyInsetLayout
11084 \change_unchanged
11085
11086 \end_layout
11087
11088 \end_inset
11089
11090  [
11091 \begin_inset Flex Code
11092 status collapsed
11093
11094 \begin_layout Plain Layout
11095
11096 \change_inserted -712698321 1612018466
11097 <type>
11098 \change_unchanged
11099
11100 \end_layout
11101
11102 \end_inset
11103
11104 ] Modifies the layout of an inset.
11105  If the layout does not exist,
11106  this section is ignored.
11107  Must end with 
11108 \begin_inset Quotes eld
11109 \end_inset
11110
11111
11112 \begin_inset Flex Code
11113 status collapsed
11114
11115 \begin_layout Plain Layout
11116
11117 \change_inserted -712698321 1612018452
11118 End
11119 \change_unchanged
11120
11121 \end_layout
11122
11123 \end_inset
11124
11125
11126 \begin_inset Quotes erd
11127 \end_inset
11128
11129 .
11130 \end_layout
11131
11132 \begin_layout Description
11133 \begin_inset Flex Code
11134 status collapsed
11135
11136 \begin_layout Plain Layout
11137 ModifyStyle
11138 \end_layout
11139
11140 \end_inset
11141
11142  [
11143 \begin_inset Flex Code
11144 status collapsed
11145
11146 \begin_layout Plain Layout
11147 <style>
11148 \end_layout
11149
11150 \end_inset
11151
11152 ] Modifies the properties of the given paragraph style.
11153  If the style does not exist,
11154  this section is ignored.
11155  Must end with 
11156 \begin_inset Quotes eld
11157 \end_inset
11158
11159
11160 \begin_inset Flex Code
11161 status collapsed
11162
11163 \begin_layout Plain Layout
11164 End
11165 \end_layout
11166
11167 \end_inset
11168
11169
11170 \begin_inset Quotes erd
11171 \end_inset
11172
11173 .
11174 \end_layout
11175
11176 \begin_layout Description
11177 \begin_inset Flex Code
11178 status collapsed
11179
11180 \begin_layout Plain Layout
11181 NoCounter
11182 \end_layout
11183
11184 \end_inset
11185
11186  [
11187 \begin_inset Flex Code
11188 status collapsed
11189
11190 \begin_layout Plain Layout
11191 <counter>
11192 \end_layout
11193
11194 \end_inset
11195
11196 ] Deletes an existing counter,
11197  usually one defined in an included file.
11198 \end_layout
11199
11200 \begin_layout Description
11201 \begin_inset Flex Code
11202 status collapsed
11203
11204 \begin_layout Plain Layout
11205 NoFloat
11206 \end_layout
11207
11208 \end_inset
11209
11210  [
11211 \begin_inset Flex Code
11212 status collapsed
11213
11214 \begin_layout Plain Layout
11215 <float>
11216 \end_layout
11217
11218 \end_inset
11219
11220 ] Deletes an existing float.
11221  This is particularly useful when you want to suppress a float that has been defined in an input file.
11222 \end_layout
11223
11224 \begin_layout Description
11225 \begin_inset Flex Code
11226 status collapsed
11227
11228 \begin_layout Plain Layout
11229 NoStyle
11230 \end_layout
11231
11232 \end_inset
11233
11234  [
11235 \begin_inset Flex Code
11236 status collapsed
11237
11238 \begin_layout Plain Layout
11239 <style>
11240 \end_layout
11241
11242 \end_inset
11243
11244 ] Deletes an existing style.
11245 \end_layout
11246
11247 \begin_layout Description
11248 \begin_inset Flex Code
11249 status collapsed
11250
11251 \begin_layout Plain Layout
11252 OutlinerName
11253 \end_layout
11254
11255 \end_inset
11256
11257  [
11258 \begin_inset Flex Code
11259 status collapsed
11260
11261 \begin_layout Plain Layout
11262 <type>
11263 \end_layout
11264
11265 \end_inset
11266
11267 ] [
11268 \begin_inset Flex Code
11269 status collapsed
11270
11271 \begin_layout Plain Layout
11272 <string>
11273 \end_layout
11274
11275 \end_inset
11276
11277 ] Define a new table of contents with type 
11278 \begin_inset Flex Code
11279 status collapsed
11280
11281 \begin_layout Plain Layout
11282 <type>
11283 \end_layout
11284
11285 \end_inset
11286
11287  and name 
11288 \begin_inset Flex Code
11289 status collapsed
11290
11291 \begin_layout Plain Layout
11292 <string>
11293 \end_layout
11294
11295 \end_inset
11296
11297 .
11298  See also the AddToToc commands.
11299 \end_layout
11300
11301 \begin_layout Description
11302 \begin_inset Flex Code
11303 status collapsed
11304
11305 \begin_layout Plain Layout
11306 OutputFormat
11307 \end_layout
11308
11309 \end_inset
11310
11311  [
11312 \begin_inset Flex Code
11313 status collapsed
11314
11315 \begin_layout Plain Layout
11316 <format>
11317 \end_layout
11318
11319 \end_inset
11320
11321 ] The file format (as defined in the \SpecialChar LyX
11322  preferences) produced by this document class.
11323  It is mainly useful when 
11324 \begin_inset Flex Code
11325 status collapsed
11326
11327 \begin_layout Plain Layout
11328 OutputType
11329 \end_layout
11330
11331 \end_inset
11332
11333  is 
11334 \begin_inset Flex Code
11335 status collapsed
11336
11337 \begin_layout Plain Layout
11338 literate
11339 \end_layout
11340
11341 \end_inset
11342
11343  and one wants to define a new type of literate document.
11344  The format is reset to 
11345 \change_deleted 5863208 1594239413
11346
11347 \begin_inset Quotes eld
11348 \end_inset
11349
11350
11351 \begin_inset Flex Code
11352 status collapsed
11353
11354 \begin_layout Plain Layout
11355 docbook
11356 \end_layout
11357
11358 \end_inset
11359
11360
11361 \begin_inset Quotes erd
11362 \end_inset
11363
11364  or
11365 \change_unchanged
11366  
11367 \begin_inset Quotes eld
11368 \end_inset
11369
11370
11371 \begin_inset Flex Code
11372 status collapsed
11373
11374 \begin_layout Plain Layout
11375 latex
11376 \end_layout
11377
11378 \end_inset
11379
11380
11381 \begin_inset Quotes erd
11382 \end_inset
11383
11384  when the corresponding 
11385 \begin_inset Flex Code
11386 status collapsed
11387
11388 \begin_layout Plain Layout
11389 OutputType
11390 \end_layout
11391
11392 \end_inset
11393
11394  parameter is encountered.
11395 \end_layout
11396
11397 \begin_layout Description
11398 \begin_inset Flex Code
11399 status collapsed
11400
11401 \begin_layout Plain Layout
11402 OutputType
11403 \end_layout
11404
11405 \end_inset
11406
11407  [
11408 \begin_inset Flex Code
11409 status collapsed
11410
11411 \begin_layout Plain Layout
11412
11413 \emph on
11414 lat
11415 \emph default
11416 ex
11417 \end_layout
11418
11419 \end_inset
11420
11421 ,
11422  
11423 \change_deleted 5863208 1594239430
11424
11425 \begin_inset Flex Code
11426 status collapsed
11427
11428 \begin_layout Plain Layout
11429 docbook
11430 \end_layout
11431
11432 \end_inset
11433
11434 ,
11435
11436 \change_unchanged
11437  
11438 \begin_inset Flex Code
11439 status collapsed
11440
11441 \begin_layout Plain Layout
11442 literate
11443 \end_layout
11444
11445 \end_inset
11446
11447 ] Specifies what sort of output documents using this class will produce.
11448 \end_layout
11449
11450 \begin_layout Description
11451 \begin_inset Flex Code
11452 status collapsed
11453
11454 \begin_layout Plain Layout
11455 PackageOptions
11456 \end_layout
11457
11458 \end_inset
11459
11460  [
11461 \begin_inset Flex Code
11462 status collapsed
11463
11464 \begin_layout Plain Layout
11465 string
11466 \end_layout
11467
11468 \end_inset
11469
11470  
11471 \begin_inset Flex Code
11472 status collapsed
11473
11474 \begin_layout Plain Layout
11475 string
11476 \end_layout
11477
11478 \end_inset
11479
11480 ] Specifies options,
11481  given in the second string,
11482  for the package named by the first string.
11483  For example,
11484  
11485 \begin_inset Quotes eld
11486 \end_inset
11487
11488
11489 \begin_inset Flex Code
11490 status collapsed
11491
11492 \begin_layout Plain Layout
11493 PackageOptions natbib square
11494 \end_layout
11495
11496 \end_inset
11497
11498
11499 \begin_inset Quotes erd
11500 \end_inset
11501
11502  will cause 
11503 \begin_inset Flex Code
11504 status collapsed
11505
11506 \begin_layout Plain Layout
11507 natbib
11508 \end_layout
11509
11510 \end_inset
11511
11512  to be loaded with the 
11513 \begin_inset Flex Code
11514 status collapsed
11515
11516 \begin_layout Plain Layout
11517 square
11518 \end_layout
11519
11520 \end_inset
11521
11522  option.
11523  (For \SpecialChar TeX
11524 perts,
11525  this causes \SpecialChar LyX
11526  to output:
11527  
11528 \begin_inset Flex Code
11529 status collapsed
11530
11531 \begin_layout Plain Layout
11532
11533 \backslash
11534 PassOptionsToPackage{natbib}{square}
11535 \end_layout
11536
11537 \end_inset
11538
11539  prior to loading 
11540 \begin_inset Flex Code
11541 status collapsed
11542
11543 \begin_layout Plain Layout
11544 natbib
11545 \end_layout
11546
11547 \end_inset
11548
11549 .)
11550 \change_inserted -712698321 1565102364
11551
11552 \end_layout
11553
11554 \begin_layout Description
11555
11556 \change_inserted -712698321 1565102470
11557 \begin_inset Flex Code
11558 status collapsed
11559
11560 \begin_layout Plain Layout
11561
11562 \change_inserted -712698321 1565102365
11563 PageSize
11564 \change_unchanged
11565
11566 \end_layout
11567
11568 \end_inset
11569
11570  [
11571 \begin_inset Flex Code
11572 status collapsed
11573
11574 \begin_layout Plain Layout
11575
11576 \change_inserted -712698321 1565105222
11577
11578 \emph on
11579 custom
11580 \emph default
11581 ,
11582  letter,
11583  legal,
11584  executive,
11585  a0,
11586  a1,
11587  a2,
11588  a3,
11589  a4,
11590  a5,
11591  a6,
11592  b0,
11593  b1,
11594  b2,
11595  b3,
11596  b4,
11597  b5,
11598  b6,
11599  c0,
11600  c1,
11601  c2,
11602  c3,
11603  c4,
11604  c5,
11605  c6,
11606  b0j,
11607  b1j,
11608  b2j,
11609  b3j,
11610  b4j,
11611  b5j,
11612  b6j
11613 \change_unchanged
11614
11615 \end_layout
11616
11617 \end_inset
11618
11619 ] The default page size.
11620  This is used by some converters.
11621 \change_unchanged
11622
11623 \end_layout
11624
11625 \begin_layout Description
11626 \begin_inset Flex Code
11627 status collapsed
11628
11629 \begin_layout Plain Layout
11630 PageStyle
11631 \end_layout
11632
11633 \end_inset
11634
11635  [
11636 \begin_inset Flex Code
11637 status collapsed
11638
11639 \begin_layout Plain Layout
11640
11641 \emph on
11642 plain
11643 \end_layout
11644
11645 \end_inset
11646
11647 ,
11648  
11649 \begin_inset Flex Code
11650 status collapsed
11651
11652 \begin_layout Plain Layout
11653 empty
11654 \end_layout
11655
11656 \end_inset
11657
11658 ,
11659  
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664 headings
11665 \end_layout
11666
11667 \end_inset
11668
11669 ] The default pagestyle.
11670  Can be changed in the 
11671 \begin_inset Flex Noun
11672 status collapsed
11673
11674 \begin_layout Plain Layout
11675 Document\SpecialChar menuseparator
11676 Settings
11677 \end_layout
11678
11679 \end_inset
11680
11681  dialog.
11682 \end_layout
11683
11684 \begin_layout Description
11685 \begin_inset Flex Code
11686 status collapsed
11687
11688 \begin_layout Plain Layout
11689 Preamble
11690 \end_layout
11691
11692 \end_inset
11693
11694  Sets the preamble for the \SpecialChar LaTeX
11695  document.
11696  Note that this will completely override any prior 
11697 \begin_inset Flex Code
11698 status collapsed
11699
11700 \begin_layout Plain Layout
11701 Preamble
11702 \end_layout
11703
11704 \end_inset
11705
11706  or 
11707 \begin_inset Flex Code
11708 status collapsed
11709
11710 \begin_layout Plain Layout
11711 AddToPreamble
11712 \end_layout
11713
11714 \end_inset
11715
11716  declarations.
11717  (Use 
11718 \begin_inset Flex Code
11719 status collapsed
11720
11721 \begin_layout Plain Layout
11722 AddToPreamble
11723 \end_layout
11724
11725 \end_inset
11726
11727  if you just want to add material to the preamble.) Must end with 
11728 \begin_inset Quotes eld
11729 \end_inset
11730
11731
11732 \begin_inset Flex Code
11733 status collapsed
11734
11735 \begin_layout Plain Layout
11736 EndPreamble
11737 \end_layout
11738
11739 \end_inset
11740
11741
11742 \begin_inset Quotes erd
11743 \end_inset
11744
11745 .
11746 \change_inserted -712698321 1612018500
11747
11748 \end_layout
11749
11750 \begin_layout Description
11751
11752 \change_inserted -712698321 1612018547
11753 \begin_inset Flex Code
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757
11758 \change_inserted -712698321 1612018506
11759 ProvideInsetLayout
11760 \change_unchanged
11761
11762 \end_layout
11763
11764 \end_inset
11765
11766  [
11767 \begin_inset Flex Code
11768 status collapsed
11769
11770 \begin_layout Plain Layout
11771
11772 \change_inserted -712698321 1612018509
11773 <type>
11774 \change_unchanged
11775
11776 \end_layout
11777
11778 \end_inset
11779
11780 ] Defines the layout of an inset if it does not already exist.
11781  If the layout does exist,
11782  this section is ignored.
11783  Must end with 
11784 \begin_inset Quotes eld
11785 \end_inset
11786
11787
11788 \begin_inset Flex Code
11789 status collapsed
11790
11791 \begin_layout Plain Layout
11792
11793 \change_inserted -712698321 1612018500
11794 End
11795 \change_unchanged
11796
11797 \end_layout
11798
11799 \end_inset
11800
11801
11802 \begin_inset Quotes erd
11803 \end_inset
11804
11805 .
11806 \change_unchanged
11807
11808 \end_layout
11809
11810 \begin_layout Description
11811 \begin_inset Flex Code
11812 status collapsed
11813
11814 \begin_layout Plain Layout
11815 Provides
11816 \end_layout
11817
11818 \end_inset
11819
11820  [
11821 \begin_inset Flex Code
11822 status collapsed
11823
11824 \begin_layout Plain Layout
11825 string
11826 \end_layout
11827
11828 \end_inset
11829
11830 ] [
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835
11836 \emph on
11837 0
11838 \end_layout
11839
11840 \end_inset
11841
11842 ,
11843 \begin_inset space \thinspace{}
11844 \end_inset
11845
11846
11847 \begin_inset Flex Code
11848 status collapsed
11849
11850 \begin_layout Plain Layout
11851 1
11852 \end_layout
11853
11854 \end_inset
11855
11856 ] Whether the class already provides the feature 
11857 \begin_inset Flex Code
11858 status collapsed
11859
11860 \begin_layout Plain Layout
11861 string
11862 \end_layout
11863
11864 \end_inset
11865
11866 .
11867  A feature is in general the name of a package (e.
11868 \begin_inset space \thinspace{}
11869 \end_inset
11870
11871 g.
11872 \begin_inset space \space{}
11873 \end_inset
11874
11875
11876 \begin_inset Flex Code
11877 status collapsed
11878
11879 \begin_layout Plain Layout
11880 amsmath
11881 \end_layout
11882
11883 \end_inset
11884
11885  or 
11886 \begin_inset Flex Code
11887 status collapsed
11888
11889 \begin_layout Plain Layout
11890 makeidx
11891 \end_layout
11892
11893 \end_inset
11894
11895 ) or a macro (e.
11896 \begin_inset space \thinspace{}
11897 \end_inset
11898
11899 g.
11900 \begin_inset space \space{}
11901 \end_inset
11902
11903
11904 \begin_inset Flex Code
11905 status collapsed
11906
11907 \begin_layout Plain Layout
11908 url
11909 \end_layout
11910
11911 \end_inset
11912
11913  or 
11914 \begin_inset Flex Code
11915 status collapsed
11916
11917 \begin_layout Plain Layout
11918 boldsymbol
11919 \end_layout
11920
11921 \end_inset
11922
11923 ).
11924  See 
11925 \begin_inset CommandInset ref
11926 LatexCommand ref
11927 reference "chap:List-of-functions"
11928 nolink "false"
11929
11930 \end_inset
11931
11932  for the list of features.
11933 \end_layout
11934
11935 \begin_layout Description
11936 \begin_inset Flex Code
11937 status collapsed
11938
11939 \begin_layout Plain Layout
11940 ProvidesModule
11941 \end_layout
11942
11943 \end_inset
11944
11945  [
11946 \begin_inset Flex Code
11947 status collapsed
11948
11949 \begin_layout Plain Layout
11950 string
11951 \end_layout
11952
11953 \end_inset
11954
11955 ] Indicates that this layout provides the functionality of the module mentioned,
11956  which should be specified by the filename without the 
11957 \begin_inset Flex Code
11958 status collapsed
11959
11960 \begin_layout Plain Layout
11961 .module
11962 \end_layout
11963
11964 \end_inset
11965
11966  extension.
11967  This will typically be used if the layout includes the module directly,
11968  rather than using the 
11969 \begin_inset Flex Code
11970 status collapsed
11971
11972 \begin_layout Plain Layout
11973 DefaultModule
11974 \end_layout
11975
11976 \end_inset
11977
11978  tag to indicate that it ought to be used.
11979  It could also be used in a module that provided an alternate implementation of the same functionality.
11980 \end_layout
11981
11982 \begin_layout Description
11983 \begin_inset Flex Code
11984 status collapsed
11985
11986 \begin_layout Plain Layout
11987 ProvideStyle
11988 \end_layout
11989
11990 \end_inset
11991
11992  [
11993 \begin_inset Flex Code
11994 status collapsed
11995
11996 \begin_layout Plain Layout
11997 <style>
11998 \end_layout
11999
12000 \end_inset
12001
12002 ] Creates a new paragraph style if it does not already exist.
12003  If the style does exist,
12004  this section is ignored.
12005  Must end with 
12006 \begin_inset Quotes eld
12007 \end_inset
12008
12009
12010 \begin_inset Flex Code
12011 status collapsed
12012
12013 \begin_layout Plain Layout
12014 End
12015 \end_layout
12016
12017 \end_inset
12018
12019
12020 \begin_inset Quotes erd
12021 \end_inset
12022
12023 .
12024 \end_layout
12025
12026 \begin_layout Description
12027 \begin_inset Flex Code
12028 status collapsed
12029
12030 \begin_layout Plain Layout
12031 Requires
12032 \end_layout
12033
12034 \end_inset
12035
12036  [
12037 \begin_inset Flex Code
12038 status collapsed
12039
12040 \begin_layout Plain Layout
12041 string
12042 \end_layout
12043
12044 \end_inset
12045
12046 ] Whether the class requires the feature 
12047 \begin_inset Flex Code
12048 status collapsed
12049
12050 \begin_layout Plain Layout
12051 string
12052 \end_layout
12053
12054 \end_inset
12055
12056 .
12057  Multiple features must be separated by commas.
12058  Note that you can only request supported features.
12059  (See 
12060 \begin_inset CommandInset ref
12061 LatexCommand ref
12062 reference "chap:List-of-functions"
12063 nolink "false"
12064
12065 \end_inset
12066
12067  for the list of features.).
12068  If you require a package with specific options,
12069  you can additionally use 
12070 \begin_inset Flex Code
12071 status collapsed
12072
12073 \begin_layout Plain Layout
12074 PackageOptions
12075 \end_layout
12076
12077 \end_inset
12078
12079 .
12080 \end_layout
12081
12082 \begin_layout Description
12083 \begin_inset Flex Code
12084 status collapsed
12085
12086 \begin_layout Plain Layout
12087 RightMargin
12088 \end_layout
12089
12090 \end_inset
12091
12092  [
12093 \begin_inset Flex Code
12094 status collapsed
12095
12096 \begin_layout Plain Layout
12097 string
12098 \end_layout
12099
12100 \end_inset
12101
12102 ] A string that indicates the width of the right margin on the screen,
12103  for example,
12104  
12105 \begin_inset Quotes eld
12106 \end_inset
12107
12108
12109 \begin_inset Flex Code
12110 status collapsed
12111
12112 \begin_layout Plain Layout
12113 MMMMM
12114 \end_layout
12115
12116 \end_inset
12117
12118
12119 \begin_inset Quotes erd
12120 \end_inset
12121
12122 .
12123 \end_layout
12124
12125 \begin_layout Description
12126 \begin_inset Flex Code
12127 status collapsed
12128
12129 \begin_layout Plain Layout
12130 SecNumDepth
12131 \end_layout
12132
12133 \end_inset
12134
12135  [
12136 \begin_inset Flex Code
12137 status collapsed
12138
12139 \begin_layout Plain Layout
12140 int=3
12141 \end_layout
12142
12143 \end_inset
12144
12145 ] Sets which divisions get numbered.
12146  Corresponds to the
12147 \begin_inset Newline newline
12148 \end_inset
12149
12150
12151 \begin_inset Flex Code
12152 status collapsed
12153
12154 \begin_layout Plain Layout
12155 secnumdepth
12156 \end_layout
12157
12158 \end_inset
12159
12160  counter in \SpecialChar LaTeX
12161 .
12162 \end_layout
12163
12164 \begin_layout Description
12165 \begin_inset Flex Code
12166 status collapsed
12167
12168 \begin_layout Plain Layout
12169 Sides
12170 \end_layout
12171
12172 \end_inset
12173
12174  [
12175 \begin_inset Flex Code
12176 status collapsed
12177
12178 \begin_layout Plain Layout
12179
12180 \emph on
12181 1
12182 \end_layout
12183
12184 \end_inset
12185
12186 ,
12187 \begin_inset space \thinspace{}
12188 \end_inset
12189
12190
12191 \begin_inset Flex Code
12192 status collapsed
12193
12194 \begin_layout Plain Layout
12195 2
12196 \end_layout
12197
12198 \end_inset
12199
12200 ] Whether the class-default should be printing on one or both sides of the paper.
12201  Can be changed in the 
12202 \begin_inset Flex Noun
12203 status collapsed
12204
12205 \begin_layout Plain Layout
12206 Document\SpecialChar menuseparator
12207 Settings
12208 \end_layout
12209
12210 \end_inset
12211
12212  dialog.
12213 \end_layout
12214
12215 \begin_layout Description
12216 \begin_inset Flex Code
12217 status collapsed
12218
12219 \begin_layout Plain Layout
12220 Style
12221 \end_layout
12222
12223 \end_inset
12224
12225  [
12226 \begin_inset Flex Code
12227 status collapsed
12228
12229 \begin_layout Plain Layout
12230 <name>
12231 \end_layout
12232
12233 \end_inset
12234
12235 ] This sequence defines a paragraph style.
12236  If the style does not yet exist,
12237  it is created;
12238  if it does exist,
12239  its parameters are modified.
12240  Must end with 
12241 \begin_inset Quotes eld
12242 \end_inset
12243
12244
12245 \begin_inset Flex Code
12246 status collapsed
12247
12248 \begin_layout Plain Layout
12249 End
12250 \end_layout
12251
12252 \end_inset
12253
12254
12255 \begin_inset Quotes erd
12256 \end_inset
12257
12258 .
12259 \begin_inset Newline newline
12260 \end_inset
12261
12262 See 
12263 \begin_inset CommandInset ref
12264 LatexCommand ref
12265 reference "subsec:Paragraph-Styles"
12266 nolink "false"
12267
12268 \end_inset
12269
12270  for details on paragraph styles.
12271 \change_inserted -712698321 1553617804
12272
12273 \end_layout
12274
12275 \begin_layout Description
12276
12277 \change_inserted -712698321 1553617862
12278 \begin_inset Flex Code
12279 status collapsed
12280
12281 \begin_layout Plain Layout
12282
12283 \change_inserted -712698321 1553617809
12284 TableStyle
12285 \change_unchanged
12286
12287 \end_layout
12288
12289 \end_inset
12290
12291  [
12292 \begin_inset Flex Code
12293 status collapsed
12294
12295 \begin_layout Plain Layout
12296
12297 \change_inserted -712698321 1553617805
12298 <name>
12299 \change_unchanged
12300
12301 \end_layout
12302
12303 \end_inset
12304
12305 ] defines the default table style that is used when inserting a table.
12306  The following styles are available:
12307 \end_layout
12308
12309 \begin_deeper
12310 \begin_layout Itemize
12311
12312 \change_inserted -712698321 1554308039
12313 \begin_inset Flex Code
12314 status collapsed
12315
12316 \begin_layout Plain Layout
12317
12318 \change_inserted -712698321 1554307928
12319 Formal_with_Footline
12320 \change_unchanged
12321
12322 \end_layout
12323
12324 \end_inset
12325
12326 :
12327  formal (
12328 \begin_inset Quotes eld
12329 \end_inset
12330
12331 booktabs
12332 \begin_inset Quotes erd
12333 \end_inset
12334
12335 ) style with horizontal lines only,
12336  using a bold top and bottom line,
12337  the first and last row are additionally separated from the table body with a thin middle line.
12338 \end_layout
12339
12340 \begin_layout Itemize
12341
12342 \change_inserted -712698321 1554308087
12343 \begin_inset Flex Code
12344 status collapsed
12345
12346 \begin_layout Plain Layout
12347
12348 \change_inserted -712698321 1554308042
12349 Formal_without_Footline
12350 \change_unchanged
12351
12352 \end_layout
12353
12354 \end_inset
12355
12356 :
12357  same as the above,
12358  but the last row is not separated with a middle line from the body.
12359 \end_layout
12360
12361 \begin_layout Itemize
12362
12363 \change_inserted -712698321 1553618031
12364 \begin_inset Flex Code
12365 status collapsed
12366
12367 \begin_layout Plain Layout
12368
12369 \change_inserted -712698321 1553618006
12370 Simple_Grid
12371 \change_unchanged
12372
12373 \end_layout
12374
12375 \end_inset
12376
12377 :
12378  Simple table lines.
12379 \end_layout
12380
12381 \begin_layout Itemize
12382
12383 \change_inserted -712698321 1553618309
12384 \begin_inset Flex Code
12385 status collapsed
12386
12387 \begin_layout Plain Layout
12388
12389 \change_inserted -712698321 1553618031
12390 Grid_with_Head
12391 \change_unchanged
12392
12393 \end_layout
12394
12395 \end_inset
12396
12397 :
12398  Like 
12399 \begin_inset Flex Code
12400 status collapsed
12401
12402 \begin_layout Plain Layout
12403
12404 \change_inserted -712698321 1553618043
12405 Simple_Grid
12406 \change_unchanged
12407
12408 \end_layout
12409
12410 \end_inset
12411
12412 ,
12413  but with the header 
12414 \change_deleted 34634807 1619712593
12415 column
12416 \change_inserted 34634807 1619712594
12417 row
12418 \change_inserted -712698321 1553618309
12419  offset with a second horizontal line.
12420  This is also the default style of \SpecialChar LyX
12421 .
12422 \end_layout
12423
12424 \begin_layout Itemize
12425
12426 \change_inserted -712698321 1553618280
12427 \begin_inset Flex Code
12428 status collapsed
12429
12430 \begin_layout Plain Layout
12431
12432 \change_inserted -712698321 1553618261
12433 No_Borders
12434 \change_unchanged
12435
12436 \end_layout
12437
12438 \end_inset
12439
12440 :
12441  Table without lines.
12442 \change_unchanged
12443
12444 \end_layout
12445
12446 \end_deeper
12447 \begin_layout Description
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452 TitleLatexName
12453 \end_layout
12454
12455 \end_inset
12456
12457  [
12458 \begin_inset Flex Code
12459 status collapsed
12460
12461 \begin_layout Plain Layout
12462 string="maketitle"
12463 \end_layout
12464
12465 \end_inset
12466
12467 ] The name of the command or environment to be used with 
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 TitleLatexType
12473 \end_layout
12474
12475 \end_inset
12476
12477 .
12478 \end_layout
12479
12480 \begin_layout Description
12481 \begin_inset Flex Code
12482 status collapsed
12483
12484 \begin_layout Plain Layout
12485 TitleLatexType
12486 \end_layout
12487
12488 \end_inset
12489
12490  [
12491 \begin_inset Flex Code
12492 status collapsed
12493
12494 \begin_layout Plain Layout
12495
12496 \emph on
12497 CommandAfter
12498 \end_layout
12499
12500 \end_inset
12501
12502 ,
12503  
12504 \begin_inset Flex Code
12505 status collapsed
12506
12507 \begin_layout Plain Layout
12508 Environment
12509 \end_layout
12510
12511 \end_inset
12512
12513 ] Indicates what kind of markup is used to define the title of a document.
12514  
12515 \begin_inset Flex Code
12516 status collapsed
12517
12518 \begin_layout Plain Layout
12519 CommandAfter
12520 \end_layout
12521
12522 \end_inset
12523
12524  means that the macro with name 
12525 \begin_inset Flex Code
12526 status collapsed
12527
12528 \begin_layout Plain Layout
12529 TitleLatexName
12530 \end_layout
12531
12532 \end_inset
12533
12534  will be inserted after the last layout which has 
12535 \begin_inset Quotes eld
12536 \end_inset
12537
12538
12539 \begin_inset Flex Code
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 InTitle
12544 \begin_inset space ~
12545 \end_inset
12546
12547 1
12548 \end_layout
12549
12550 \end_inset
12551
12552
12553 \begin_inset Quotes erd
12554 \end_inset
12555
12556 .
12557  
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562 Environment
12563 \end_layout
12564
12565 \end_inset
12566
12567  corresponds to the case where all layouts which have 
12568 \begin_inset Quotes eld
12569 \end_inset
12570
12571
12572 \begin_inset Flex Code
12573 status collapsed
12574
12575 \begin_layout Plain Layout
12576 InTitle
12577 \begin_inset space ~
12578 \end_inset
12579
12580 1
12581 \end_layout
12582
12583 \end_inset
12584
12585
12586 \begin_inset Quotes erd
12587 \end_inset
12588
12589  should be enclosed into the 
12590 \begin_inset Flex Code
12591 status collapsed
12592
12593 \begin_layout Plain Layout
12594 TitleLatexName
12595 \end_layout
12596
12597 \end_inset
12598
12599  environment.
12600 \end_layout
12601
12602 \begin_layout Description
12603 \begin_inset Flex Code
12604 status collapsed
12605
12606 \begin_layout Plain Layout
12607 TocDepth
12608 \end_layout
12609
12610 \end_inset
12611
12612  [
12613 \begin_inset Flex Code
12614 status collapsed
12615
12616 \begin_layout Plain Layout
12617 int=3
12618 \end_layout
12619
12620 \end_inset
12621
12622 ] Sets which divisions are included in the table of contents.
12623  Corresponds to the 
12624 \begin_inset Flex Code
12625 status collapsed
12626
12627 \begin_layout Plain Layout
12628 tocdepth
12629 \end_layout
12630
12631 \end_inset
12632
12633  counter in \SpecialChar LaTeX
12634 .
12635 \end_layout
12636
12637 \begin_layout Subsection
12638 \begin_inset Flex Code
12639 status collapsed
12640
12641 \begin_layout Plain Layout
12642 ClassOptions
12643 \end_layout
12644
12645 \end_inset
12646
12647  section
12648 \begin_inset CommandInset label
12649 LatexCommand label
12650 name "subsec:ClassOptions"
12651
12652 \end_inset
12653
12654
12655 \end_layout
12656
12657 \begin_layout Standard
12658 The 
12659 \begin_inset Flex Code
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663 ClassOptions
12664 \end_layout
12665
12666 \end_inset
12667
12668  section can contain the following entries:
12669 \end_layout
12670
12671 \begin_layout Description
12672 \begin_inset Flex Code
12673 status collapsed
12674
12675 \begin_layout Plain Layout
12676 FontSize
12677 \end_layout
12678
12679 \end_inset
12680
12681  [
12682 \begin_inset Flex Code
12683 status collapsed
12684
12685 \begin_layout Plain Layout
12686 string="10|11|12"
12687 \end_layout
12688
12689 \end_inset
12690
12691 ] The list of available font sizes for the document's main font,
12692  separated by 
12693 \begin_inset Quotes eld
12694 \end_inset
12695
12696
12697 \begin_inset Flex Code
12698 status collapsed
12699
12700 \begin_layout Plain Layout
12701 |
12702 \end_layout
12703
12704 \end_inset
12705
12706
12707 \begin_inset Quotes erd
12708 \end_inset
12709
12710 .
12711
12712 \change_inserted -712698321 1565110196
12713  Any number is possible.
12714 \end_layout
12715
12716 \begin_layout Description
12717
12718 \change_inserted -712698321 1565110259
12719 \begin_inset Flex Code
12720 status collapsed
12721
12722 \begin_layout Plain Layout
12723
12724 \change_inserted -712698321 1565110199
12725 FontSizeFormat
12726 \change_unchanged
12727
12728 \end_layout
12729
12730 \end_inset
12731
12732  [
12733 \begin_inset Flex Code
12734 status collapsed
12735
12736 \begin_layout Plain Layout
12737
12738 \change_inserted -712698321 1565110196
12739 string
12740 \change_unchanged
12741
12742 \end_layout
12743
12744 \end_inset
12745
12746 ] The format for the font size option.
12747  Default:
12748  
12749 \begin_inset Flex Code
12750 status collapsed
12751
12752 \begin_layout Plain Layout
12753
12754 \change_inserted -712698321 1565110238
12755 $$spt
12756 \change_unchanged
12757
12758 \end_layout
12759
12760 \end_inset
12761
12762 .
12763  
12764 \begin_inset Flex Code
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768
12769 \change_inserted -712698321 1565110248
12770 $$s
12771 \change_unchanged
12772
12773 \end_layout
12774
12775 \end_inset
12776
12777  is a placeholder for the font size.
12778 \change_unchanged
12779
12780 \end_layout
12781
12782 \begin_layout Description
12783
12784 \change_deleted 5863208 1594239483
12785 \begin_inset Flex Code
12786 status collapsed
12787
12788 \begin_layout Plain Layout
12789 Header
12790 \end_layout
12791
12792 \end_inset
12793
12794  Used to set the DTD line with XML-based output classes.
12795  E.
12796 \begin_inset space \thinspace{}
12797 \end_inset
12798
12799 g.:
12800  PUBLIC 
12801 \begin_inset Quotes eld
12802 \end_inset
12803
12804 -//OASIS//DTD DocBook V4.2//EN
12805 \begin_inset Quotes erd
12806 \end_inset
12807
12808 .
12809 \change_inserted -712698321 1565101761
12810
12811 \end_layout
12812
12813 \begin_layout Description
12814
12815 \change_inserted -712698321 1565180598
12816 \begin_inset Flex Code
12817 status collapsed
12818
12819 \begin_layout Plain Layout
12820
12821 \change_inserted -712698321 1565101918
12822 PageSize
12823 \change_unchanged
12824
12825 \end_layout
12826
12827 \end_inset
12828
12829  [
12830 \begin_inset Flex Code
12831 status collapsed
12832
12833 \begin_layout Plain Layout
12834
12835 \change_inserted -712698321 1565105399
12836 string="letter|\SpecialChar allowbreak
12837 legal|\SpecialChar allowbreak
12838 executive|\SpecialChar allowbreak
12839 a0|\SpecialChar allowbreak
12840 a1|\SpecialChar allowbreak
12841 a2|\SpecialChar allowbreak
12842 a3|\SpecialChar allowbreak
12843 a4|\SpecialChar allowbreak
12844 a5|\SpecialChar allowbreak
12845 a6|\SpecialChar allowbreak
12846 b0|\SpecialChar allowbreak
12847 b1|\SpecialChar allowbreak
12848 b2|\SpecialChar allowbreak
12849 b3|\SpecialChar allowbreak
12850 b4|\SpecialChar allowbreak
12851 b5|\SpecialChar allowbreak
12852 b6|\SpecialChar allowbreak
12853 c0|\SpecialChar allowbreak
12854 c1|\SpecialChar allowbreak
12855 c2|\SpecialChar allowbreak
12856 c3|\SpecialChar allowbreak
12857 c4|\SpecialChar allowbreak
12858 c5|\SpecialChar allowbreak
12859 c6|\SpecialChar allowbreak
12860 b0j|\SpecialChar allowbreak
12861 b1j|\SpecialChar allowbreak
12862 b2j|\SpecialChar allowbreak
12863 b3j|\SpecialChar allowbreak
12864 b4j|\SpecialChar allowbreak
12865 b5j|\SpecialChar allowbreak
12866 b6j"
12867 \change_unchanged
12868
12869 \end_layout
12870
12871 \end_inset
12872
12873 ] The list of available page sizes,
12874  separated by 
12875 \begin_inset Quotes eld
12876 \end_inset
12877
12878
12879 \begin_inset Flex Code
12880 status collapsed
12881
12882 \begin_layout Plain Layout
12883
12884 \change_inserted -712698321 1565101779
12885 |
12886 \change_unchanged
12887
12888 \end_layout
12889
12890 \end_inset
12891
12892
12893 \begin_inset Quotes erd
12894 \end_inset
12895
12896 .
12897  Currently,
12898  only the listed sizes are supported.
12899  Other sizes might be entered as custom class option.
12900 \end_layout
12901
12902 \begin_layout Description
12903
12904 \change_inserted -712698321 1565180623
12905 \begin_inset Flex Code
12906 status collapsed
12907
12908 \begin_layout Plain Layout
12909
12910 \change_inserted -712698321 1565180605
12911 PageSizeFormat
12912 \change_unchanged
12913
12914 \end_layout
12915
12916 \end_inset
12917
12918  [
12919 \begin_inset Flex Code
12920 status collapsed
12921
12922 \begin_layout Plain Layout
12923
12924 \change_inserted -712698321 1565180601
12925 string
12926 \change_unchanged
12927
12928 \end_layout
12929
12930 \end_inset
12931
12932 ] The format for the page size option.
12933  Default:
12934  
12935 \begin_inset Flex Code
12936 status collapsed
12937
12938 \begin_layout Plain Layout
12939
12940 \change_inserted -712698321 1565180618
12941 $$spaper
12942 \change_unchanged
12943
12944 \end_layout
12945
12946 \end_inset
12947
12948 .
12949  
12950 \begin_inset Flex Code
12951 status collapsed
12952
12953 \begin_layout Plain Layout
12954
12955 \change_inserted -712698321 1565180601
12956 $$s
12957 \change_unchanged
12958
12959 \end_layout
12960
12961 \end_inset
12962
12963  is a placeholder for the paper size.
12964 \change_unchanged
12965
12966 \end_layout
12967
12968 \begin_layout Description
12969 \begin_inset Flex Code
12970 status collapsed
12971
12972 \begin_layout Plain Layout
12973 PageStyle
12974 \end_layout
12975
12976 \end_inset
12977
12978  [
12979 \begin_inset Flex Code
12980 status collapsed
12981
12982 \begin_layout Plain Layout
12983 string="empty|plain|headings|fancy"
12984 \end_layout
12985
12986 \end_inset
12987
12988 ] The list of available page sty\SpecialChar softhyphen
12989 les,
12990  separated by 
12991 \begin_inset Quotes eld
12992 \end_inset
12993
12994
12995 \begin_inset Flex Code
12996 status collapsed
12997
12998 \begin_layout Plain Layout
12999 |
13000 \end_layout
13001
13002 \end_inset
13003
13004
13005 \begin_inset Quotes erd
13006 \end_inset
13007
13008 .
13009 \end_layout
13010
13011 \begin_layout Description
13012 \begin_inset Flex Code
13013 status collapsed
13014
13015 \begin_layout Plain Layout
13016 Other
13017 \end_layout
13018
13019 \end_inset
13020
13021  [
13022 \begin_inset Flex Code
13023 status collapsed
13024
13025 \begin_layout Plain Layout
13026 string=""
13027 \end_layout
13028
13029 \end_inset
13030
13031 ] Some document class options,
13032  separated by a comma,
13033  that will be added to the optional part of the 
13034 \begin_inset Flex Code
13035 status collapsed
13036
13037 \begin_layout Plain Layout
13038
13039 \backslash
13040 documentclass
13041 \end_layout
13042
13043 \end_inset
13044
13045  command.
13046 \end_layout
13047
13048 \begin_layout Standard
13049 The 
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054 ClassOptions
13055 \end_layout
13056
13057 \end_inset
13058
13059  section must end with 
13060 \begin_inset Quotes eld
13061 \end_inset
13062
13063
13064 \begin_inset Flex Code
13065 status collapsed
13066
13067 \begin_layout Plain Layout
13068 End
13069 \end_layout
13070
13071 \end_inset
13072
13073
13074 \begin_inset Quotes erd
13075 \end_inset
13076
13077 .
13078 \end_layout
13079
13080 \begin_layout Subsection
13081 Paragraph styles
13082 \begin_inset CommandInset label
13083 LatexCommand label
13084 name "subsec:Paragraph-Styles"
13085
13086 \end_inset
13087
13088
13089 \end_layout
13090
13091 \begin_layout Standard
13092 A paragraph style description looks like this:
13093 \begin_inset Foot
13094 status collapsed
13095
13096 \begin_layout Plain Layout
13097 Note that this will either define a new style or modify an existing one.
13098 \end_layout
13099
13100 \end_inset
13101
13102
13103 \end_layout
13104
13105 \begin_layout LyX-Code
13106 Style 
13107 \family roman
13108 \emph on
13109 name
13110 \end_layout
13111
13112 \begin_layout LyX-Code
13113  ...
13114 \end_layout
13115
13116 \begin_layout LyX-Code
13117 End
13118 \end_layout
13119
13120 \begin_layout Standard
13121 where the following commands are allowed:
13122 \end_layout
13123
13124 \begin_layout Description
13125 \begin_inset Flex Code
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129 AddToToc
13130 \end_layout
13131
13132 \end_inset
13133
13134  [
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 string
13140 \end_layout
13141
13142 \end_inset
13143
13144 =""] This paragraph will appear in the table of contents of the given type.
13145  An empty string disables.
13146  See also the OutlinerName and the IsTocCaption commands.
13147  Default:
13148  disabled.
13149 \end_layout
13150
13151 \begin_layout Description
13152 \begin_inset Flex Code
13153 status collapsed
13154
13155 \begin_layout Plain Layout
13156 Align
13157 \end_layout
13158
13159 \end_inset
13160
13161  [
13162 \begin_inset Flex Code
13163 status collapsed
13164
13165 \begin_layout Plain Layout
13166
13167 \emph on
13168 block
13169 \emph default
13170 ,
13171  left,
13172  right,
13173  center
13174 \end_layout
13175
13176 \end_inset
13177
13178 ] Paragraph alignment.
13179 \end_layout
13180
13181 \begin_layout Description
13182 \begin_inset Flex Code
13183 status collapsed
13184
13185 \begin_layout Plain Layout
13186 AlignPossible
13187 \end_layout
13188
13189 \end_inset
13190
13191  [
13192 \begin_inset Flex Code
13193 status collapsed
13194
13195 \begin_layout Plain Layout
13196
13197 \emph on
13198 block
13199 \emph default
13200 ,
13201  left,
13202  right,
13203  center
13204 \end_layout
13205
13206 \end_inset
13207
13208 ] A comma separated list of permitted alignments.
13209  (Some \SpecialChar LaTeX
13210  styles prohibit certain alignments,
13211  since those wouldn't make sense.
13212  For example a right-aligned or centered enumeration isn't possible.)
13213 \end_layout
13214
13215 \begin_layout Description
13216 \begin_inset Flex Code
13217 status collapsed
13218
13219 \begin_layout Plain Layout
13220 Argument
13221 \end_layout
13222
13223 \end_inset
13224
13225  [
13226 \begin_inset Flex Code
13227 status collapsed
13228
13229 \begin_layout Plain Layout
13230 int
13231 \end_layout
13232
13233 \end_inset
13234
13235 ] Defines argument number <int> of a command\SpecialChar breakableslash
13236 environment associated with the current style.
13237
13238 \change_inserted -584632292 1615846868
13239  The definition must end with 
13240 \begin_inset Flex Code
13241 status collapsed
13242
13243 \begin_layout Plain Layout
13244
13245 \change_inserted -584632292 1615846867
13246 EndArgument
13247 \change_unchanged
13248
13249 \end_layout
13250
13251 \end_inset
13252
13253 .
13254
13255 \change_unchanged
13256  
13257 \change_inserted -584632292 1615846880
13258 See 
13259 \begin_inset CommandInset ref
13260 LatexCommand ref
13261 reference "subsec:Arguments"
13262 plural "false"
13263 caps "false"
13264 noprefix "false"
13265 nolink "false"
13266
13267 \end_inset
13268
13269  for more information.
13270  
13271 \change_deleted -584632292 1615846694
13272 This is useful for things like section headings,
13273  and only makes sense with \SpecialChar LaTeX
13274 .
13275  Every (optional or required) argument of a command or environment – except for the required argument that is associated with the content of the paragraph itself – has a separate definition,
13276  where the number specifies the order of the arguments.
13277  The definition must end with 
13278 \begin_inset Flex Code
13279 status collapsed
13280
13281 \begin_layout Plain Layout
13282 EndArgument
13283 \end_layout
13284
13285 \end_inset
13286
13287 .
13288  So a command with two optional arguments has:
13289 \end_layout
13290
13291 \begin_deeper
13292 \begin_layout Quote
13293
13294 \change_deleted -584632292 1615846694
13295
13296 \family typewriter
13297 Argument 1
13298 \end_layout
13299
13300 \begin_layout Quote
13301
13302 \change_deleted -584632292 1615846694
13303
13304 \family typewriter
13305 ...
13306 \end_layout
13307
13308 \begin_layout Quote
13309
13310 \change_deleted -584632292 1615846694
13311
13312 \family typewriter
13313 EndArgument
13314 \end_layout
13315
13316 \begin_layout Quote
13317
13318 \change_deleted -584632292 1615846694
13319
13320 \family typewriter
13321 Argument 2
13322 \end_layout
13323
13324 \begin_layout Quote
13325
13326 \change_deleted -584632292 1615846694
13327
13328 \family typewriter
13329 ...
13330 \end_layout
13331
13332 \begin_layout Quote
13333
13334 \change_deleted -584632292 1615846694
13335
13336 \family typewriter
13337 EndArgument
13338 \end_layout
13339
13340 \begin_layout Standard
13341
13342 \change_deleted -584632292 1615846694
13343 Inside the 
13344 \begin_inset Flex Code
13345 status collapsed
13346
13347 \begin_layout Plain Layout
13348 Argument
13349 \end_layout
13350
13351 \end_inset
13352
13353  definition,
13354  the following specifications are possible:
13355 \end_layout
13356
13357 \begin_layout Itemize
13358
13359 \change_deleted -584632292 1615846694
13360 \begin_inset Flex Code
13361 status collapsed
13362
13363 \begin_layout Plain Layout
13364 LabelString
13365 \end_layout
13366
13367 \end_inset
13368
13369  
13370 \begin_inset Flex Code
13371 status collapsed
13372
13373 \begin_layout Plain Layout
13374 [string]
13375 \end_layout
13376
13377 \end_inset
13378
13379  The string that will appear both in the menu (to insert this argument) and on the argument inset button (unless you also specify a separate 
13380 \begin_inset Flex Code
13381 status collapsed
13382
13383 \begin_layout Plain Layout
13384 MenuString
13385 \end_layout
13386
13387 \end_inset
13388
13389 ).
13390  For the menu,
13391  you can define an accelerator by appending the respective character to the string,
13392  divided by 
13393 \begin_inset Quotes eld
13394 \end_inset
13395
13396 |
13397 \begin_inset Quotes erd
13398 \end_inset
13399
13400  (e.
13401 \begin_inset space \thinspace{}
13402 \end_inset
13403
13404 g.
13405 \begin_inset space \space{}
13406 \end_inset
13407
13408
13409 \begin_inset Quotes eld
13410 \end_inset
13411
13412
13413 \begin_inset Flex Code
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 Short Title|S
13418 \end_layout
13419
13420 \end_inset
13421
13422
13423 \begin_inset Quotes erd
13424 \end_inset
13425
13426 ).
13427 \end_layout
13428
13429 \begin_layout Itemize
13430
13431 \change_deleted -584632292 1615846694
13432 \begin_inset Flex Code
13433 status collapsed
13434
13435 \begin_layout Plain Layout
13436 MenuString
13437 \end_layout
13438
13439 \end_inset
13440
13441  
13442 \begin_inset Flex Code
13443 status collapsed
13444
13445 \begin_layout Plain Layout
13446 [string]
13447 \end_layout
13448
13449 \end_inset
13450
13451  A separate string for the menu.
13452  You can define an accelerator by appending the respective character to the string,
13453  divided by 
13454 \begin_inset Quotes eld
13455 \end_inset
13456
13457 |
13458 \begin_inset Quotes erd
13459 \end_inset
13460
13461  (e.
13462 \begin_inset space \thinspace{}
13463 \end_inset
13464
13465 g.
13466 \begin_inset space \space{}
13467 \end_inset
13468
13469
13470 \begin_inset Quotes eld
13471 \end_inset
13472
13473
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 Short Title|S
13479 \end_layout
13480
13481 \end_inset
13482
13483
13484 \begin_inset Quotes erd
13485 \end_inset
13486
13487 ).
13488  This specification is optional.
13489  If it is not given the 
13490 \begin_inset Flex Code
13491 status collapsed
13492
13493 \begin_layout Plain Layout
13494 LabelString
13495 \end_layout
13496
13497 \end_inset
13498
13499  will be used instead for the menu.
13500 \end_layout
13501
13502 \begin_layout Itemize
13503
13504 \change_deleted -584632292 1615846694
13505 \begin_inset Flex Code
13506 status collapsed
13507
13508 \begin_layout Plain Layout
13509 Tooltip
13510 \end_layout
13511
13512 \end_inset
13513
13514  
13515 \begin_inset Flex Code
13516 status collapsed
13517
13518 \begin_layout Plain Layout
13519 [string]
13520 \end_layout
13521
13522 \end_inset
13523
13524  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
13525 \end_layout
13526
13527 \begin_layout Itemize
13528
13529 \change_deleted -584632292 1615846694
13530 \begin_inset Flex Code
13531 status collapsed
13532
13533 \begin_layout Plain Layout
13534 Mandatory
13535 \end_layout
13536
13537 \end_inset
13538
13539  [
13540 \begin_inset Flex Code
13541 status collapsed
13542
13543 \begin_layout Plain Layout
13544
13545 \emph on
13546 0
13547 \end_layout
13548
13549 \end_inset
13550
13551 ,
13552 \begin_inset space \thinspace{}
13553 \end_inset
13554
13555
13556 \begin_inset Flex Code
13557 status collapsed
13558
13559 \begin_layout Plain Layout
13560 1
13561 \end_layout
13562
13563 \end_inset
13564
13565 ] Declare if this is a mandatory (1) or an optional (0) argument.
13566  Mandatory arguments will be output empty if not given,
13567  while optional arguments will not be output at all.
13568  By default,
13569  mandatory arguments are delimited by 
13570 \begin_inset Flex Code
13571 status collapsed
13572
13573 \begin_layout Plain Layout
13574 {...}
13575 \end_layout
13576
13577 \end_inset
13578
13579 ,
13580  while optional arguments are delimited by 
13581 \begin_inset Flex Code
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585 [...]
13586 \end_layout
13587
13588 \end_inset
13589
13590
13591 \end_layout
13592
13593 \begin_layout Itemize
13594
13595 \change_deleted -584632292 1615846694
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600
13601 \change_inserted -712698321 1555579780
13602 NewlineCmd
13603 \change_unchanged
13604
13605 \end_layout
13606
13607 \end_inset
13608
13609  
13610 \begin_inset Flex Code
13611 status collapsed
13612
13613 \begin_layout Plain Layout
13614
13615 \change_inserted -712698321 1555579780
13616 [string]
13617 \change_unchanged
13618
13619 \end_layout
13620
13621 \end_inset
13622
13623  Option to define a different command (from the default 
13624 \begin_inset Flex Code
13625 status collapsed
13626
13627 \begin_layout Plain Layout
13628
13629 \change_inserted -712698321 1555579780
13630
13631 \backslash
13632
13633 \backslash
13634
13635 \change_unchanged
13636
13637 \end_layout
13638
13639 \end_inset
13640
13641 ) to be used for line breaks.
13642  The initial backslash must not be specified.
13643 \end_layout
13644
13645 \begin_layout Itemize
13646
13647 \change_deleted -584632292 1615846694
13648 \begin_inset Flex Code
13649 status collapsed
13650
13651 \begin_layout Plain Layout
13652 Requires
13653 \end_layout
13654
13655 \end_inset
13656
13657  
13658 \begin_inset Flex Code
13659 status collapsed
13660
13661 \begin_layout Plain Layout
13662 [int=0]
13663 \end_layout
13664
13665 \end_inset
13666
13667  defines another argument (by its number) which this argument requires to be output if it is itself output.
13668  E.
13669 \begin_inset space \thinspace{}
13670 \end_inset
13671
13672 g.,
13673  in \SpecialChar LaTeX
13674  commands,
13675  optional arguments often require previous optional arguments to be output (at least empty),
13676  as in 
13677 \begin_inset Flex Code
13678 status collapsed
13679
13680 \begin_layout Plain Layout
13681
13682 \backslash
13683 command[][argument]{text}
13684 \end_layout
13685
13686 \end_inset
13687
13688 .
13689  This can be achieved by the statement 
13690 \begin_inset Flex Code
13691 status collapsed
13692
13693 \begin_layout Plain Layout
13694 Requires 1
13695 \end_layout
13696
13697 \end_inset
13698
13699  within 
13700 \begin_inset Flex Code
13701 status collapsed
13702
13703 \begin_layout Plain Layout
13704 Argument 2
13705 \end_layout
13706
13707 \end_inset
13708
13709 .
13710 \end_layout
13711
13712 \begin_layout Itemize
13713
13714 \change_deleted -584632292 1615846694
13715 \begin_inset Flex Code
13716 status collapsed
13717
13718 \begin_layout Plain Layout
13719 LeftDelim
13720 \end_layout
13721
13722 \end_inset
13723
13724  
13725 \begin_inset Flex Code
13726 status collapsed
13727
13728 \begin_layout Plain Layout
13729 [string]
13730 \end_layout
13731
13732 \end_inset
13733
13734  defines a custom left delimiter (instead of 
13735 \begin_inset Flex Code
13736 status collapsed
13737
13738 \begin_layout Plain Layout
13739 {
13740 \end_layout
13741
13742 \end_inset
13743
13744  or 
13745 \begin_inset Flex Code
13746 status collapsed
13747
13748 \begin_layout Plain Layout
13749 [
13750 \end_layout
13751
13752 \end_inset
13753
13754 ).
13755  A line break in the output can be indicated by 
13756 \begin_inset Flex Code
13757 status collapsed
13758
13759 \begin_layout Plain Layout
13760 <br/>
13761 \end_layout
13762
13763 \end_inset
13764
13765 .
13766 \end_layout
13767
13768 \begin_layout Itemize
13769
13770 \change_deleted -584632292 1615846694
13771 \begin_inset Flex Code
13772 status collapsed
13773
13774 \begin_layout Plain Layout
13775 RightDelim
13776 \end_layout
13777
13778 \end_inset
13779
13780  
13781 \begin_inset Flex Code
13782 status collapsed
13783
13784 \begin_layout Plain Layout
13785 [string]
13786 \end_layout
13787
13788 \end_inset
13789
13790  defines a custom right delimiter (instead of 
13791 \begin_inset Flex Code
13792 status collapsed
13793
13794 \begin_layout Plain Layout
13795 }
13796 \end_layout
13797
13798 \end_inset
13799
13800  or 
13801 \begin_inset Flex Code
13802 status collapsed
13803
13804 \begin_layout Plain Layout
13805 ]
13806 \end_layout
13807
13808 \end_inset
13809
13810 ).
13811  A line break in the output can be indicated by 
13812 \begin_inset Flex Code
13813 status collapsed
13814
13815 \begin_layout Plain Layout
13816 <br/>
13817 \end_layout
13818
13819 \end_inset
13820
13821 .
13822 \end_layout
13823
13824 \begin_layout Itemize
13825
13826 \change_deleted -584632292 1615846694
13827 \begin_inset Flex Code
13828 status collapsed
13829
13830 \begin_layout Plain Layout
13831 DefaultArg
13832 \end_layout
13833
13834 \end_inset
13835
13836  
13837 \begin_inset Flex Code
13838 status collapsed
13839
13840 \begin_layout Plain Layout
13841 [string]
13842 \end_layout
13843
13844 \end_inset
13845
13846  defines an argument that is inserted if and only if no user-specified arguments were given,
13847  i.
13848 \begin_inset space \thinspace{}
13849 \end_inset
13850
13851 e.
13852 \begin_inset space \space{}
13853 \end_inset
13854
13855 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
13856  Multiple arguments need to be separated by comma.
13857 \end_layout
13858
13859 \begin_layout Itemize
13860
13861 \change_deleted -584632292 1615846694
13862 \begin_inset Flex Code
13863 status collapsed
13864
13865 \begin_layout Plain Layout
13866 PresetArg
13867 \end_layout
13868
13869 \end_inset
13870
13871  
13872 \begin_inset Flex Code
13873 status collapsed
13874
13875 \begin_layout Plain Layout
13876 [string]
13877 \end_layout
13878
13879 \end_inset
13880
13881  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
13882  Multiple arguments need to be separated by comma.
13883 \end_layout
13884
13885 \begin_layout Itemize
13886
13887 \change_deleted -584632292 1615846694
13888 \begin_inset Flex Code
13889 status collapsed
13890
13891 \begin_layout Plain Layout
13892 Font
13893 \end_layout
13894
13895 \end_inset
13896
13897  The font used for the argument content,
13898  see 
13899 \begin_inset CommandInset ref
13900 LatexCommand ref
13901 reference "subsec:Font-description"
13902 nolink "false"
13903
13904 \end_inset
13905
13906 .
13907 \end_layout
13908
13909 \begin_layout Itemize
13910
13911 \change_deleted -584632292 1615846694
13912 \begin_inset Flex Code
13913 status collapsed
13914
13915 \begin_layout Plain Layout
13916
13917 \change_inserted -712698321 1559484228
13918 FreeSpacing
13919 \change_unchanged
13920
13921 \end_layout
13922
13923 \end_inset
13924
13925  [
13926 \begin_inset Flex Code
13927 status collapsed
13928
13929 \begin_layout Plain Layout
13930
13931 \change_inserted -712698321 1559484228
13932
13933 \emph on
13934 0
13935 \change_unchanged
13936
13937 \end_layout
13938
13939 \end_inset
13940
13941 ,
13942 \begin_inset space \thinspace{}
13943 \end_inset
13944
13945
13946 \begin_inset Flex Code
13947 status collapsed
13948
13949 \begin_layout Plain Layout
13950
13951 \change_inserted -712698321 1559484228
13952 1
13953 \change_unchanged
13954
13955 \end_layout
13956
13957 \end_inset
13958
13959 ] As with paragraph styles,
13960  see 
13961 \begin_inset CommandInset ref
13962 LatexCommand ref
13963 reference "subsec:Paragraph-Styles"
13964 nolink "false"
13965
13966 \end_inset
13967
13968 .
13969 \end_layout
13970
13971 \begin_layout Itemize
13972
13973 \change_deleted -584632292 1615846694
13974 \begin_inset Flex Code
13975 status collapsed
13976
13977 \begin_layout Plain Layout
13978 LabelFont
13979 \end_layout
13980
13981 \end_inset
13982
13983  The font used for the label;
13984  see 
13985 \begin_inset CommandInset ref
13986 LatexCommand ref
13987 reference "subsec:Font-description"
13988 nolink "false"
13989
13990 \end_inset
13991
13992 .
13993 \end_layout
13994
13995 \begin_layout Itemize
13996
13997 \change_deleted -584632292 1615846694
13998 \begin_inset Flex Code
13999 status collapsed
14000
14001 \begin_layout Plain Layout
14002 Decoration
14003 \end_layout
14004
14005 \end_inset
14006
14007  [
14008 \begin_inset Flex Code
14009 status collapsed
14010
14011 \begin_layout Plain Layout
14012
14013 \emph on
14014 Classic
14015 \emph default
14016 ,
14017  Minimalistic,
14018  Conglomerate
14019 \end_layout
14020
14021 \end_inset
14022
14023 ] describes the rendering style used for the inset's frame and buttons.
14024 \end_layout
14025
14026 \begin_layout Itemize
14027
14028 \change_deleted -584632292 1615846694
14029 \begin_inset Flex Code
14030 status collapsed
14031
14032 \begin_layout Plain Layout
14033 AutoInsert
14034 \end_layout
14035
14036 \end_inset
14037
14038  
14039 \begin_inset Flex Code
14040 status collapsed
14041
14042 \begin_layout Plain Layout
14043 [int=0]
14044 \end_layout
14045
14046 \end_inset
14047
14048  If this is set to 
14049 \begin_inset Flex Code
14050 status collapsed
14051
14052 \begin_layout Plain Layout
14053 1
14054 \end_layout
14055
14056 \end_inset
14057
14058 ,
14059  this argument is automatically inserted when the respective style is selected.
14060
14061 \change_deleted -712698321 1559484200
14062  Currently,
14063  only one argument per style\SpecialChar breakableslash
14064 layout can be automatically inserted.
14065 \change_deleted -584632292 1615846694
14066
14067 \end_layout
14068
14069 \begin_layout Itemize
14070
14071 \change_deleted -584632292 1615846694
14072 \begin_inset Flex Code
14073 status collapsed
14074
14075 \begin_layout Plain Layout
14076
14077 \change_inserted -712698321 1559490711
14078 InsertOnNewline
14079 \change_unchanged
14080
14081 \end_layout
14082
14083 \end_inset
14084
14085  
14086 \begin_inset Flex Code
14087 status collapsed
14088
14089 \begin_layout Plain Layout
14090
14091 \change_inserted -712698321 1559490703
14092 [int=0]
14093 \change_unchanged
14094
14095 \end_layout
14096
14097 \end_inset
14098
14099  If this is set to 
14100 \begin_inset Flex Code
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104
14105 \change_inserted -712698321 1559490703
14106 1
14107 \change_unchanged
14108
14109 \end_layout
14110
14111 \end_inset
14112
14113 ,
14114  this argument will be inserted on a new line with 
14115 \begin_inset Flex Code
14116 status collapsed
14117
14118 \begin_layout Plain Layout
14119
14120 \change_inserted -712698321 1559491402
14121 AutoInsert
14122 \change_unchanged
14123
14124 \end_layout
14125
14126 \end_inset
14127
14128  (only available within Flex insets).
14129 \end_layout
14130
14131 \begin_layout Itemize
14132
14133 \change_deleted -584632292 1615846694
14134 \begin_inset Flex Code
14135 status collapsed
14136
14137 \begin_layout Plain Layout
14138 InsertCotext
14139 \end_layout
14140
14141 \end_inset
14142
14143  
14144 \begin_inset Flex Code
14145 status collapsed
14146
14147 \begin_layout Plain Layout
14148 [int=0]
14149 \end_layout
14150
14151 \end_inset
14152
14153  If this is set to 
14154 \begin_inset Flex Code
14155 status collapsed
14156
14157 \begin_layout Plain Layout
14158 1
14159 \end_layout
14160
14161 \end_inset
14162
14163 ,
14164  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
14165 \end_layout
14166
14167 \begin_layout Itemize
14168
14169 \change_deleted -584632292 1615846694
14170 \begin_inset Flex Code
14171 status collapsed
14172
14173 \begin_layout Plain Layout
14174 PassThru
14175 \end_layout
14176
14177 \end_inset
14178
14179  [
14180 \begin_inset Flex Code
14181 status collapsed
14182
14183 \begin_layout Plain Layout
14184
14185 \emph on
14186 inherited
14187 \emph default
14188 ,
14189  true,
14190  false
14191 \end_layout
14192
14193 \end_inset
14194
14195 ] Whether the contents of this argument should be output in raw form,
14196  meaning without special translations that \SpecialChar LaTeX
14197  would require.
14198  By default,
14199  the 
14200 \begin_inset Flex Code
14201 status collapsed
14202
14203 \begin_layout Plain Layout
14204 PassThru
14205 \end_layout
14206
14207 \end_inset
14208
14209  status is inherited by the inset or paragraph layout the argument belongs to,
14210  true and false change the status for the given argument only.
14211 \end_layout
14212
14213 \begin_layout Itemize
14214
14215 \change_deleted -584632292 1615846694
14216 \begin_inset Flex Code
14217 status collapsed
14218
14219 \begin_layout Plain Layout
14220 PassThruChars
14221 \end_layout
14222
14223 \end_inset
14224
14225  [
14226 \begin_inset Flex Code
14227 status collapsed
14228
14229 \begin_layout Plain Layout
14230 string of characters
14231 \end_layout
14232
14233 \end_inset
14234
14235 ]
14236 \family typewriter
14237  
14238 \family default
14239 Defines individual characters
14240 \begin_inset Newline linebreak
14241 \end_inset
14242
14243 that should be output in raw form,
14244  meaning without special translations that \SpecialChar LaTeX
14245  would require.
14246  Note that,
14247  contrary to PassThru,
14248  this needs to be explicitly defined for arguments.
14249  That is,
14250  arguments do not inherit PassThruChars from their parent inset or layout.
14251 \end_layout
14252
14253 \begin_layout Itemize
14254
14255 \change_deleted -584632292 1615846694
14256 \begin_inset Flex Code
14257 status collapsed
14258
14259 \begin_layout Plain Layout
14260 IsTocCaption
14261 \end_layout
14262
14263 \end_inset
14264
14265  [
14266 \begin_inset Flex Code
14267 status collapsed
14268
14269 \begin_layout Plain Layout
14270
14271 \emph on
14272 0
14273 \end_layout
14274
14275 \end_inset
14276
14277 ,
14278 \begin_inset space \thinspace{}
14279 \end_inset
14280
14281
14282 \begin_inset Flex Code
14283 status collapsed
14284
14285 \begin_layout Plain Layout
14286 1
14287 \end_layout
14288
14289 \end_inset
14290
14291 ] If this is set to 1,
14292  the argument will output its content in the corresponding item in the table of contents.
14293  See AddToToc.
14294 \end_layout
14295
14296 \begin_layout Standard
14297
14298 \change_deleted -584632292 1615846694
14299 By default,
14300  the text entered in the \SpecialChar LyX
14301  workarea in the respective layout is the last (mandatory) argument of a command if the 
14302 \begin_inset Flex Code
14303 status collapsed
14304
14305 \begin_layout Plain Layout
14306 LatexType
14307 \end_layout
14308
14309 \end_inset
14310
14311  is 
14312 \begin_inset Flex Code
14313 status collapsed
14314
14315 \begin_layout Plain Layout
14316 Command
14317 \end_layout
14318
14319 \end_inset
14320
14321 .
14322  However,
14323  arguments with the prefix 
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328 post:
14329 \end_layout
14330
14331 \end_inset
14332
14333  are output after this workarea argument.
14334  Note that post-argument numbering restarts at 1,
14335  so the first argument following the workarea argument is 
14336 \begin_inset Flex Code
14337 status collapsed
14338
14339 \begin_layout Plain Layout
14340 post:1
14341 \end_layout
14342
14343 \end_inset
14344
14345 .
14346  Post-arguments are ignored in any other 
14347 \begin_inset Flex Code
14348 status collapsed
14349
14350 \begin_layout Plain Layout
14351 LatexType
14352 \end_layout
14353
14354 \end_inset
14355
14356  than 
14357 \begin_inset Flex Code
14358 status collapsed
14359
14360 \begin_layout Plain Layout
14361 Command
14362 \end_layout
14363
14364 \end_inset
14365
14366 .
14367 \end_layout
14368
14369 \begin_layout Standard
14370
14371 \change_deleted -584632292 1615846694
14372 Arguments for list 
14373 \begin_inset Flex Code
14374 status collapsed
14375
14376 \begin_layout Plain Layout
14377
14378 \backslash
14379 item
14380 \end_layout
14381
14382 \end_inset
14383
14384 s (as in 
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389
14390 \backslash
14391 item[foo]
14392 \end_layout
14393
14394 \end_inset
14395
14396 ) have the prefix 
14397 \begin_inset Flex Code
14398 status collapsed
14399
14400 \begin_layout Plain Layout
14401 item:
14402 \end_layout
14403
14404 \end_inset
14405
14406  followed by the number (e.
14407 \begin_inset space \thinspace{}
14408 \end_inset
14409
14410 g.
14411 \begin_inset space \space{}
14412 \end_inset
14413
14414
14415 \begin_inset Flex Code
14416 status collapsed
14417
14418 \begin_layout Plain Layout
14419 Argument item:1
14420 \end_layout
14421
14422 \end_inset
14423
14424 ).
14425 \end_layout
14426
14427 \begin_layout Standard
14428
14429 \change_deleted -584632292 1615846694
14430 Finally,
14431  there is a special argument type with the prefix 
14432 \begin_inset Flex Code
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436
14437 \change_inserted -712698321 1534487844
14438 listpreamble:
14439 \change_unchanged
14440
14441 \end_layout
14442
14443 \end_inset
14444
14445 .
14446  It is not really an argument,
14447  but uses the argument interface (thus,
14448  the prefix is also followed by a number,
14449  e.
14450 \begin_inset space \thinspace{}
14451 \end_inset
14452
14453 g.
14454  
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459
14460 \change_inserted -712698321 1534488412
14461 Argument listpreamble:1
14462 \change_unchanged
14463
14464 \end_layout
14465
14466 \end_inset
14467
14468 ).
14469  As the name implies,
14470  it is targeted at lists such as 
14471 \family sans
14472 Itemize
14473 \family default
14474 ,
14475  
14476 \family sans
14477 Enumerate
14478 \family default
14479 ,
14480  
14481 \family sans
14482 Description
14483 \family default
14484 ,
14485  or 
14486 \family sans
14487 Bibliography
14488 \family default
14489 .
14490  Its content will be output at the list start,
14491  before the first 
14492 \begin_inset Flex Code
14493 status collapsed
14494
14495 \begin_layout Plain Layout
14496
14497 \change_inserted -712698321 1534488058
14498
14499 \backslash
14500 item
14501 \change_unchanged
14502
14503 \end_layout
14504
14505 \end_inset
14506
14507 ,
14508  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
14509 ).
14510  This way,
14511  users can insert redefinitions (of lengths etc.) to individual lists.
14512  By default,
14513  these arguments do not have a delimiter.
14514 \change_unchanged
14515
14516 \end_layout
14517
14518 \end_deeper
14519 \begin_layout Description
14520 \begin_inset Flex Code
14521 status collapsed
14522
14523 \begin_layout Plain Layout
14524 AutoNests
14525 \end_layout
14526
14527 \end_inset
14528
14529  Includes a comma-separated list of layouts that should be nested in and after the current layout.
14530  Only makes sense for nestable layouts (such as environments).
14531  Must be ended by 
14532 \begin_inset Quotes eld
14533 \end_inset
14534
14535
14536 \begin_inset Flex Code
14537 status collapsed
14538
14539 \begin_layout Plain Layout
14540 EndAutoNests
14541 \end_layout
14542
14543 \end_inset
14544
14545
14546 \begin_inset Quotes erd
14547 \end_inset
14548
14549 .
14550  See also 
14551 \begin_inset Flex Code
14552 status collapsed
14553
14554 \begin_layout Plain Layout
14555 IsAutoNestedBy
14556 \end_layout
14557
14558 \end_inset
14559
14560 .
14561 \end_layout
14562
14563 \begin_layout Description
14564 \begin_inset Flex Code
14565 status collapsed
14566
14567 \begin_layout Plain Layout
14568 BabelPreamble
14569 \end_layout
14570
14571 \end_inset
14572
14573  Note that this will completely override any prior 
14574 \begin_inset Flex Code
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578 BabelPreamble
14579 \end_layout
14580
14581 \end_inset
14582
14583  declaration for this style.
14584  Must end with 
14585 \begin_inset Quotes eld
14586 \end_inset
14587
14588
14589 \begin_inset Flex Code
14590 status collapsed
14591
14592 \begin_layout Plain Layout
14593 EndBabelPreamble
14594 \end_layout
14595
14596 \end_inset
14597
14598
14599 \begin_inset Quotes erd
14600 \end_inset
14601
14602 .
14603  See 
14604 \begin_inset CommandInset ref
14605 LatexCommand ref
14606 reference "subsec:I18n"
14607 nolink "false"
14608
14609 \end_inset
14610
14611  for details on its use.
14612 \end_layout
14613
14614 \begin_layout Description
14615 \begin_inset Flex Code
14616 status collapsed
14617
14618 \begin_layout Plain Layout
14619 BottomSep
14620 \end_layout
14621
14622 \end_inset
14623
14624  [
14625 \begin_inset Flex Code
14626 status collapsed
14627
14628 \begin_layout Plain Layout
14629 float=0
14630 \end_layout
14631
14632 \end_inset
14633
14634 ]
14635 \begin_inset Foot
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639 Note that a `float' here is a real number,
14640  such as:
14641  1.5.
14642 \end_layout
14643
14644 \end_inset
14645
14646  The vertical space with which the last of a chain of paragraphs with this style is separated from the following paragraph.
14647  If the next paragraph has another style,
14648  the separations are not simply added,
14649  but the maximum is taken.
14650 \end_layout
14651
14652 \begin_layout Description
14653 \begin_inset Flex Code
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 Category
14658 \end_layout
14659
14660 \end_inset
14661
14662  [
14663 \begin_inset Flex Code
14664 status collapsed
14665
14666 \begin_layout Plain Layout
14667 string
14668 \end_layout
14669
14670 \end_inset
14671
14672 ] The category for this style.
14673  This is used to group related styles in the style combobox on the toolbar.
14674  Any string can be used,
14675  but you may want to use existing categories with your own styles.
14676  
14677 \end_layout
14678
14679 \begin_layout Description
14680
14681 \change_deleted 1075283030 1672014981
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 CommandDepth
14687 \end_layout
14688
14689 \end_inset
14690
14691  Depth of XML command.
14692  Used only with XML-type formats.
14693 \end_layout
14694
14695 \begin_layout Description
14696 \begin_inset Flex Code
14697 status collapsed
14698
14699 \begin_layout Plain Layout
14700 CopyStyle
14701 \end_layout
14702
14703 \end_inset
14704
14705  [
14706 \begin_inset Flex Code
14707 status collapsed
14708
14709 \begin_layout Plain Layout
14710 string
14711 \end_layout
14712
14713 \end_inset
14714
14715 ] Copies all the features of an existing style into the current one.
14716
14717 \change_inserted -584632292 1678808972
14718  Note that this copies the style as it is defined at that point.
14719  Later changes to it will not affect styles into which it has been copied.
14720 \change_unchanged
14721
14722 \end_layout
14723
14724 \begin_layout Description
14725
14726 \change_inserted 1075283030 1672014806
14727 \begin_inset Flex Code
14728 status collapsed
14729
14730 \begin_layout Plain Layout
14731
14732 \change_inserted 1075283030 1671679781
14733 DocBookGenerateTitle
14734 \change_unchanged
14735
14736 \end_layout
14737
14738 \end_inset
14739
14740  [
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745
14746 \change_inserted 1075283030 1672014763
14747 bool=false
14748 \change_unchanged
14749
14750 \end_layout
14751
14752 \end_inset
14753
14754 ] Generates a
14755 \begin_inset Flex Code
14756 status collapsed
14757
14758 \begin_layout Plain Layout
14759
14760 \change_inserted 1075283030 1672014789
14761 title
14762 \change_unchanged
14763
14764 \end_layout
14765
14766 \end_inset
14767
14768  tag after the wrapper tag.
14769  This parameter should only be used with
14770 \begin_inset Flex Code
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774
14775 \change_inserted 1075283030 1671679828
14776 DocBookWrapperTag
14777 \change_unchanged
14778
14779 \end_layout
14780
14781 \end_inset
14782
14783 ,
14784  otherwise the title will be output
14785 \emph on
14786  before
14787 \emph default
14788  the contents of the environment.
14789  The generated title is the same as the LyXHTML label:
14790  a combination of the environment type and its number.
14791  A major use is when DocBook has no close mapping for LaTeX environments and users must fallback to using a generic container such as
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796
14797 \change_inserted 1075283030 1672014801
14798 figure
14799 \change_unchanged
14800
14801 \end_layout
14802
14803 \end_inset
14804
14805 ,
14806  which requires a title although there is none in LaTeX.
14807  This feature is heavily used for theorem-like environments.
14808 \change_unchanged
14809
14810 \end_layout
14811
14812 \begin_layout Description
14813 \begin_inset Flex Code
14814 status collapsed
14815
14816 \begin_layout Plain Layout
14817 DependsOn
14818 \end_layout
14819
14820 \end_inset
14821
14822  [
14823 \begin_inset Flex Code
14824 status collapsed
14825
14826 \begin_layout Plain Layout
14827 <name>
14828 \end_layout
14829
14830 \end_inset
14831
14832 ] The name of a style whose preamble should be output 
14833 \emph on
14834 before
14835 \emph default
14836  this one.
14837  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
14838 \begin_inset Foot
14839 status collapsed
14840
14841 \begin_layout Plain Layout
14842 Note that,
14843  besides that functionality,
14844  there is no way to ensure any ordering of preambles.
14845  The ordering that you see in a given version of \SpecialChar LyX
14846  may change without warning in later versions.
14847 \end_layout
14848
14849 \end_inset
14850
14851
14852 \end_layout
14853
14854 \begin_layout Description
14855 \begin_inset Flex Code
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859 EndLabelType
14860 \end_layout
14861
14862 \end_inset
14863
14864  [
14865 \begin_inset Flex Code
14866 status collapsed
14867
14868 \begin_layout Plain Layout
14869
14870 \emph on
14871 No_Label
14872 \emph default
14873 ,
14874  Box,
14875  Filled_Box,
14876  Static
14877 \end_layout
14878
14879 \end_inset
14880
14881 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
14882 \begin_inset Flex Code
14883 status collapsed
14884
14885 \begin_layout Plain Layout
14886 LatexType
14887 \end_layout
14888
14889 \end_inset
14890
14891  is
14892 \begin_inset Newline newline
14893 \end_inset
14894
14895
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900 Environment
14901 \end_layout
14902
14903 \end_inset
14904
14905 ,
14906  
14907 \begin_inset Flex Code
14908 status collapsed
14909
14910 \begin_layout Plain Layout
14911 Item_Environment
14912 \end_layout
14913
14914 \end_inset
14915
14916  or 
14917 \begin_inset Flex Code
14918 status collapsed
14919
14920 \begin_layout Plain Layout
14921 List_Environment
14922 \end_layout
14923
14924 \end_inset
14925
14926 ).
14927  
14928 \begin_inset Flex Code
14929 status collapsed
14930
14931 \begin_layout Plain Layout
14932 No_Label
14933 \end_layout
14934
14935 \end_inset
14936
14937  means 
14938 \begin_inset Quotes eld
14939 \end_inset
14940
14941 nothing
14942 \begin_inset Quotes erd
14943 \end_inset
14944
14945 ,
14946  
14947 \begin_inset Flex Code
14948 status collapsed
14949
14950 \begin_layout Plain Layout
14951 Box
14952 \end_layout
14953
14954 \end_inset
14955
14956  (resp.
14957 \begin_inset space \space{}
14958 \end_inset
14959
14960
14961 \begin_inset Flex Code
14962 status collapsed
14963
14964 \begin_layout Plain Layout
14965 Filled_Box
14966 \end_layout
14967
14968 \end_inset
14969
14970 ) is a white (resp.
14971 \begin_inset space ~
14972 \end_inset
14973
14974 black) square suitable for end of proof markers,
14975  
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980 Static
14981 \end_layout
14982
14983 \end_inset
14984
14985  is an explicit text string.
14986 \end_layout
14987
14988 \begin_layout Description
14989 \begin_inset Flex Code
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993 EndLabelString
14994 \end_layout
14995
14996 \end_inset
14997
14998  [
14999 \begin_inset Flex Code
15000 status collapsed
15001
15002 \begin_layout Plain Layout
15003 string=""
15004 \end_layout
15005
15006 \end_inset
15007
15008 ] The string used for a label with a 
15009 \begin_inset Flex Code
15010 status collapsed
15011
15012 \begin_layout Plain Layout
15013 Static
15014 \end_layout
15015
15016 \end_inset
15017
15018
15019 \begin_inset Newline newline
15020 \end_inset
15021
15022
15023 \begin_inset Flex Code
15024 status collapsed
15025
15026 \begin_layout Plain Layout
15027 EndLabelType
15028 \end_layout
15029
15030 \end_inset
15031
15032 .
15033  
15034 \end_layout
15035
15036 \begin_layout Description
15037 \begin_inset Flex Code
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041 Font
15042 \end_layout
15043
15044 \end_inset
15045
15046  The font used for both the text body 
15047 \emph on
15048 and
15049 \emph default
15050  the label.
15051  See 
15052 \begin_inset CommandInset ref
15053 LatexCommand ref
15054 reference "subsec:Font-description"
15055 nolink "false"
15056
15057 \end_inset
15058
15059 .
15060  Note that defining this font automatically defines the 
15061 \begin_inset Flex Code
15062 status collapsed
15063
15064 \begin_layout Plain Layout
15065 LabelFont
15066 \end_layout
15067
15068 \end_inset
15069
15070  to the same value.
15071  So you should define this one first if you also want to define 
15072 \begin_inset Flex Code
15073 status collapsed
15074
15075 \begin_layout Plain Layout
15076 LabelFont
15077 \end_layout
15078
15079 \end_inset
15080
15081 .
15082 \end_layout
15083
15084 \begin_layout Description
15085 \begin_inset Flex Code
15086 status collapsed
15087
15088 \begin_layout Plain Layout
15089 ForceLocal
15090 \end_layout
15091
15092 \end_inset
15093
15094  [
15095 \begin_inset Flex Code
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099 int=0
15100 \end_layout
15101
15102 \end_inset
15103
15104 ] Used for backporting new styles to stable \SpecialChar LyX
15105  versions.
15106  The first stable version that supports this tag is \SpecialChar LyX
15107  2.1.0.
15108  The argument is a number which may either be 0,
15109  -1 or any value greater than zero.
15110  If the 
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 ForceLocal
15116 \end_layout
15117
15118 \end_inset
15119
15120  flag of a style is greater than zero,
15121  it will always be written to the document header.
15122  If a .lyx file is read,
15123  the style definitions from the document header are added to the document class.
15124  Therefore even older \SpecialChar LyX
15125  versions can handle the style.
15126  The argument of 
15127 \begin_inset Flex Code
15128 status collapsed
15129
15130 \begin_layout Plain Layout
15131 ForceLocal
15132 \end_layout
15133
15134 \end_inset
15135
15136  is a version number:
15137  if the style is read,
15138  and the version number is less than the version number of the already existing style in the document class,
15139  the new style is ignored.
15140  If the version number is greater,
15141  the new style replaces the existing style.
15142  A value of -1 means an infinite version number,
15143  i.
15144 \begin_inset space \thinspace{}
15145 \end_inset
15146
15147 e.
15148 \begin_inset space \space{}
15149 \end_inset
15150
15151 the style is always used.
15152 \end_layout
15153
15154 \begin_layout Description
15155 \begin_inset Flex Code
15156 status collapsed
15157
15158 \begin_layout Plain Layout
15159 FreeSpacing
15160 \end_layout
15161
15162 \end_inset
15163
15164  [
15165 \begin_inset Flex Code
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169
15170 \emph on
15171 0
15172 \end_layout
15173
15174 \end_inset
15175
15176 ,
15177 \begin_inset space \thinspace{}
15178 \end_inset
15179
15180
15181 \begin_inset Flex Code
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185 1
15186 \end_layout
15187
15188 \end_inset
15189
15190 ] Usually \SpecialChar LyX
15191  does not allow you to insert more than one space between words,
15192  since a space is considered as the separation between two words,
15193  not a character or symbol of its own.
15194  This is a very fine thing but sometimes annoying,
15195  for example,
15196  when typing program code or plain \SpecialChar LaTeX
15197  code.
15198  For this reason,
15199  
15200 \begin_inset Flex Code
15201 status collapsed
15202
15203 \begin_layout Plain Layout
15204 FreeSpacing
15205 \end_layout
15206
15207 \end_inset
15208
15209  can be enabled.
15210  
15211 \change_deleted -495245474 1550490105
15212 Note that 
15213 \change_unchanged
15214 \SpecialChar LyX
15215  will create 
15216 \change_deleted 177693 1654669077
15217 protected
15218 \change_inserted 177693 1654669079
15219 non-breaking
15220 \change_unchanged
15221  
15222 \change_deleted 177693 1654669082
15223 blanks
15224 \change_inserted 177693 1654669082
15225 spaces
15226 \change_unchanged
15227  for the additional blanks when
15228 \change_deleted 34634807 1619626461
15229  in
15230 \change_unchanged
15231  
15232 \change_inserted -495245474 1550490096
15233
15234 \begin_inset Flex Code
15235 status collapsed
15236
15237 \begin_layout Plain Layout
15238
15239 \change_inserted -495245474 1550490089
15240 Passthru 1
15241 \change_unchanged
15242
15243 \end_layout
15244
15245 \end_inset
15246
15247  is not specified.
15248 \change_deleted -495245474 1550490116
15249 another mode than \SpecialChar LaTeX
15250 -mode.
15251
15252 \change_inserted -495245474 1550247760
15253  Note that 
15254 \begin_inset Flex Code
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258
15259 \change_inserted -495245474 1550247736
15260 FreeSpacing
15261 \change_unchanged
15262
15263 \end_layout
15264
15265 \end_inset
15266
15267  implies 
15268 \begin_inset Flex Code
15269 status collapsed
15270
15271 \begin_layout Plain Layout
15272
15273 \change_inserted -495245474 1550247755
15274 KeepEmpty
15275 \change_unchanged
15276
15277 \end_layout
15278
15279 \end_inset
15280
15281 .
15282 \change_unchanged
15283
15284 \end_layout
15285
15286 \begin_layout Description
15287 \begin_inset Flex Code
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291 HTML*
15292 \end_layout
15293
15294 \end_inset
15295
15296  These tags are used with XHTML output.
15297  See 
15298 \begin_inset CommandInset ref
15299 LatexCommand ref
15300 reference "subsec:Paragraph-Style-XHTML"
15301 nolink "false"
15302
15303 \end_inset
15304
15305 .
15306 \end_layout
15307
15308 \begin_layout Description
15309
15310 \change_deleted 1075283030 1672014684
15311 \begin_inset Flex Code
15312 status collapsed
15313
15314 \begin_layout Plain Layout
15315 InnerTag
15316 \end_layout
15317
15318 \end_inset
15319
15320  [FIXME] (Used only with XML-type formats.)
15321 \change_unchanged
15322
15323 \end_layout
15324
15325 \begin_layout Description
15326 \begin_inset Flex Code
15327 status collapsed
15328
15329 \begin_layout Plain Layout
15330 InPreamble
15331 \end_layout
15332
15333 \end_inset
15334
15335  [
15336 \begin_inset Flex Code
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340
15341 \emph on
15342 0
15343 \end_layout
15344
15345 \end_inset
15346
15347 ,
15348 \begin_inset space \thinspace{}
15349 \end_inset
15350
15351
15352 \begin_inset Flex Code
15353 status collapsed
15354
15355 \begin_layout Plain Layout
15356 1
15357 \end_layout
15358
15359 \end_inset
15360
15361 ] If 
15362 \begin_inset Flex Code
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 1
15367 \end_layout
15368
15369 \end_inset
15370
15371 ,
15372  marks the style as to be included in the document preamble and not in the document body.
15373  This is useful for document classes that want such information as the title and author to appear in the preamble.
15374  Note that this works only for styles for which the 
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 LatexType
15380 \end_layout
15381
15382 \end_inset
15383
15384  is 
15385 \begin_inset Flex Code
15386 status collapsed
15387
15388 \begin_layout Plain Layout
15389 Command
15390 \end_layout
15391
15392 \end_inset
15393
15394  or 
15395 \begin_inset Flex Code
15396 status collapsed
15397
15398 \begin_layout Plain Layout
15399 Paragraph
15400 \end_layout
15401
15402 \end_inset
15403
15404 .
15405 \end_layout
15406
15407 \begin_layout Description
15408 \begin_inset Flex Code
15409 status collapsed
15410
15411 \begin_layout Plain Layout
15412 InTitle
15413 \end_layout
15414
15415 \end_inset
15416
15417  [
15418 \begin_inset Flex Code
15419 status collapsed
15420
15421 \begin_layout Plain Layout
15422
15423 \emph on
15424 0
15425 \end_layout
15426
15427 \end_inset
15428
15429 ,
15430 \begin_inset space \thinspace{}
15431 \end_inset
15432
15433
15434 \begin_inset Flex Code
15435 status collapsed
15436
15437 \begin_layout Plain Layout
15438 1
15439 \end_layout
15440
15441 \end_inset
15442
15443 ] If 
15444 \begin_inset Flex Code
15445 status collapsed
15446
15447 \begin_layout Plain Layout
15448 1
15449 \end_layout
15450
15451 \end_inset
15452
15453 ,
15454  marks the style as being part of a title block (see also the 
15455 \begin_inset Flex Code
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 TitleLatexType
15460 \end_layout
15461
15462 \end_inset
15463
15464  and 
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 TitleLatexName
15470 \end_layout
15471
15472 \end_inset
15473
15474  global entries).
15475 \end_layout
15476
15477 \begin_layout Description
15478 \begin_inset Flex Code
15479 status collapsed
15480
15481 \begin_layout Plain Layout
15482 IsAutoNestedBy
15483 \end_layout
15484
15485 \end_inset
15486
15487  Includes a comma-separated list of layouts after which this one should be nested.
15488  Only makes sense with regard to nestable layouts (such as environments).
15489  Must be ended by 
15490 \begin_inset Quotes eld
15491 \end_inset
15492
15493
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 EndIsAutoNestedBy
15499 \end_layout
15500
15501 \end_inset
15502
15503
15504 \begin_inset Quotes erd
15505 \end_inset
15506
15507 .
15508  See also 
15509 \begin_inset Flex Code
15510 status collapsed
15511
15512 \begin_layout Plain Layout
15513 AutoNests
15514 \end_layout
15515
15516 \end_inset
15517
15518 .
15519 \end_layout
15520
15521 \begin_layout Description
15522 \begin_inset Flex Code
15523 status collapsed
15524
15525 \begin_layout Plain Layout
15526 IsTocCaption
15527 \end_layout
15528
15529 \end_inset
15530
15531  [
15532 \begin_inset Flex Code
15533 status collapsed
15534
15535 \begin_layout Plain Layout
15536
15537 \emph on
15538 0
15539 \end_layout
15540
15541 \end_inset
15542
15543 ,
15544 \begin_inset space \thinspace{}
15545 \end_inset
15546
15547
15548 \begin_inset Flex Code
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 1
15553 \end_layout
15554
15555 \end_inset
15556
15557 ] If this is set to 1 and AddToToc is enabled,
15558  the paragraph adds a summary of its contents in its item in the table of contents.
15559  Otherwise,
15560  only the label,
15561  if it exists,
15562  appears.
15563 \end_layout
15564
15565 \begin_layout Description
15566 \begin_inset Flex Code
15567 status collapsed
15568
15569 \begin_layout Plain Layout
15570 ItemCommand
15571 \end_layout
15572
15573 \end_inset
15574
15575  [
15576 \begin_inset Flex Code
15577 status collapsed
15578
15579 \begin_layout Plain Layout
15580 string="item"
15581 \end_layout
15582
15583 \end_inset
15584
15585 ] The \SpecialChar LaTeX
15586  command sequence declaring an item in a list.
15587  The command is to be defined without the preceding backslash (the default is 
15588 \begin_inset Quotes eld
15589 \end_inset
15590
15591 item
15592 \begin_inset Quotes erd
15593 \end_inset
15594
15595 ,
15596  resulting in 
15597 \begin_inset Flex Code
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601
15602 \backslash
15603 item
15604 \end_layout
15605
15606 \end_inset
15607
15608  in the \SpecialChar LaTeX
15609  output).
15610 \end_layout
15611
15612 \begin_layout Description
15613 \begin_inset Flex Code
15614 status collapsed
15615
15616 \begin_layout Plain Layout
15617 ItemSep
15618 \end_layout
15619
15620 \end_inset
15621
15622  [
15623 \begin_inset Flex Code
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627 float=0
15628 \end_layout
15629
15630 \end_inset
15631
15632 ] This provides extra space between paragraphs that have the same style.
15633  If you put other styles into an environment,
15634  each is separated with the environment's 
15635 \begin_inset Flex Code
15636 status collapsed
15637
15638 \begin_layout Plain Layout
15639 ParSep
15640 \end_layout
15641
15642 \end_inset
15643
15644 .
15645  But the whole items of the environment are additionally separated with this 
15646 \begin_inset Flex Code
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650 ItemSep
15651 \end_layout
15652
15653 \end_inset
15654
15655 .
15656  Note that this is a
15657 \emph on
15658  multiplier.
15659 \end_layout
15660
15661 \begin_layout Description
15662
15663 \change_deleted 1075283030 1672014680
15664 \begin_inset Flex Code
15665 status collapsed
15666
15667 \begin_layout Plain Layout
15668 ItemTag
15669 \end_layout
15670
15671 \end_inset
15672
15673  [FIXME] (Used only with XML-type formats.)
15674 \change_unchanged
15675
15676 \end_layout
15677
15678 \begin_layout Description
15679 \begin_inset Flex Code
15680 status collapsed
15681
15682 \begin_layout Plain Layout
15683 KeepEmpty
15684 \end_layout
15685
15686 \end_inset
15687
15688  [
15689 \begin_inset Flex Code
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693
15694 \emph on
15695 0
15696 \end_layout
15697
15698 \end_inset
15699
15700 ,
15701 \begin_inset space \thinspace{}
15702 \end_inset
15703
15704
15705 \begin_inset Flex Code
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709 1
15710 \end_layout
15711
15712 \end_inset
15713
15714 ] Usually \SpecialChar LyX
15715  does not allow you to leave a paragraph empty,
15716  since it would lead to empty \SpecialChar LaTeX
15717  output.
15718  There are some cases where this could be desirable however:
15719  in a letter template,
15720  the required fields can be provided as empty fields,
15721  so that people do not forget them;
15722  in some special classes,
15723  a style can be used as some kind of break,
15724  which does not contain actual text.
15725 \end_layout
15726
15727 \begin_layout Description
15728 \begin_inset Flex Code
15729 status collapsed
15730
15731 \begin_layout Plain Layout
15732 LabelBottomsep
15733 \end_layout
15734
15735 \end_inset
15736
15737  [
15738 \begin_inset Flex Code
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742 float=0
15743 \end_layout
15744
15745 \end_inset
15746
15747 ] The vertical space between the label and the text body.
15748  Only used for labels that are above the text body (
15749 \begin_inset Flex Code
15750 status collapsed
15751
15752 \begin_layout Plain Layout
15753 Top_Environment
15754 \end_layout
15755
15756 \end_inset
15757
15758  and
15759 \begin_inset Newline newline
15760 \end_inset
15761
15762
15763 \begin_inset Flex Code
15764 status collapsed
15765
15766 \begin_layout Plain Layout
15767 Centered_Top_Environment
15768 \end_layout
15769
15770 \end_inset
15771
15772 ).
15773 \end_layout
15774
15775 \begin_layout Description
15776 \begin_inset Flex Code
15777 status collapsed
15778
15779 \begin_layout Plain Layout
15780 LabelCounter
15781 \end_layout
15782
15783 \end_inset
15784
15785  [
15786 \begin_inset Flex Code
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790 string=""
15791 \end_layout
15792
15793 \end_inset
15794
15795 ] The name of the counter for automatic numbering.
15796  In order to have the counter appear with your label,
15797  you will need to reference it in the 
15798 \begin_inset Flex Code
15799 status collapsed
15800
15801 \begin_layout Plain Layout
15802
15803 \family typewriter
15804 LabelString
15805 \end_layout
15806
15807 \end_inset
15808
15809 .
15810  This will work with 
15811 \begin_inset Flex Code
15812 status collapsed
15813
15814 \begin_layout Plain Layout
15815 LabelType
15816 \end_layout
15817
15818 \end_inset
15819
15820 s,
15821  
15822 \begin_inset Flex Code
15823 status collapsed
15824
15825 \begin_layout Plain Layout
15826 Static
15827 \end_layout
15828
15829 \end_inset
15830
15831 ,
15832  
15833 \begin_inset Flex Code
15834 status collapsed
15835
15836 \begin_layout Plain Layout
15837 Above
15838 \end_layout
15839
15840 \end_inset
15841
15842  and 
15843 \begin_inset Flex Code
15844 status collapsed
15845
15846 \begin_layout Plain Layout
15847 Centered
15848 \end_layout
15849
15850 \end_inset
15851
15852 ,
15853  at least.
15854 \begin_inset Newline newline
15855 \end_inset
15856
15857 This 
15858 \emph on
15859 may
15860 \emph default
15861  also be given if 
15862 \begin_inset Flex Code
15863 status collapsed
15864
15865 \begin_layout Plain Layout
15866 LabelType
15867 \end_layout
15868
15869 \end_inset
15870
15871  is 
15872 \begin_inset Flex Code
15873 status collapsed
15874
15875 \begin_layout Plain Layout
15876 Enumerate
15877 \end_layout
15878
15879 \end_inset
15880
15881 ,
15882  though this case is a bit complicated.
15883  Suppose you declare 
15884 \begin_inset Quotes eld
15885 \end_inset
15886
15887
15888 \begin_inset Flex Code
15889 status collapsed
15890
15891 \begin_layout Plain Layout
15892 LabelCounter myenum
15893 \end_layout
15894
15895 \end_inset
15896
15897
15898 \begin_inset Quotes erd
15899 \end_inset
15900
15901 .
15902  Then the actual counters used are 
15903 \begin_inset Flex Code
15904 status collapsed
15905
15906 \begin_layout Plain Layout
15907 myenumi
15908 \end_layout
15909
15910 \end_inset
15911
15912 ,
15913  
15914 \begin_inset Flex Code
15915 status collapsed
15916
15917 \begin_layout Plain Layout
15918 myenumii
15919 \end_layout
15920
15921 \end_inset
15922
15923 ,
15924  
15925 \begin_inset Flex Code
15926 status collapsed
15927
15928 \begin_layout Plain Layout
15929 myenumiii
15930 \end_layout
15931
15932 \end_inset
15933
15934  and 
15935 \begin_inset Flex Code
15936 status collapsed
15937
15938 \begin_layout Plain Layout
15939 myenumiv
15940 \end_layout
15941
15942 \end_inset
15943
15944 ,
15945  much as in \SpecialChar LaTeX
15946 .
15947  These counters must all be declared separately.
15948 \begin_inset Newline newline
15949 \end_inset
15950
15951 See 
15952 \begin_inset CommandInset ref
15953 LatexCommand ref
15954 reference "subsec:Counters"
15955 nolink "false"
15956
15957 \end_inset
15958
15959  for details on counters.
15960 \end_layout
15961
15962 \begin_layout Description
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967 LabelFont
15968 \end_layout
15969
15970 \end_inset
15971
15972  The font used for the label.
15973  See 
15974 \begin_inset CommandInset ref
15975 LatexCommand ref
15976 reference "subsec:Font-description"
15977 nolink "false"
15978
15979 \end_inset
15980
15981 .
15982 \end_layout
15983
15984 \begin_layout Description
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 LabelIndent
15990 \end_layout
15991
15992 \end_inset
15993
15994  [
15995 \begin_inset Flex Code
15996 status collapsed
15997
15998 \begin_layout Plain Layout
15999 string=""
16000 \end_layout
16001
16002 \end_inset
16003
16004 ] Text that indicates how far a label should be indented.
16005 \end_layout
16006
16007 \begin_layout Description
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 LabelSep
16013 \end_layout
16014
16015 \end_inset
16016
16017  [
16018 \begin_inset Flex Code
16019 status collapsed
16020
16021 \begin_layout Plain Layout
16022 string=""
16023 \end_layout
16024
16025 \end_inset
16026
16027 ] Text that indicates the amount of horizontal space between the label and the text body.
16028  Only used for labels that are not above the text body.
16029 \end_layout
16030
16031 \begin_layout Description
16032 \begin_inset Flex Code
16033 status collapsed
16034
16035 \begin_layout Plain Layout
16036 LabelString
16037 \end_layout
16038
16039 \end_inset
16040
16041  [
16042 \begin_inset Flex Code
16043 status collapsed
16044
16045 \begin_layout Plain Layout
16046 string=""
16047 \end_layout
16048
16049 \end_inset
16050
16051 ] The string used for the label.
16052  When 
16053 \begin_inset Flex Code
16054 status collapsed
16055
16056 \begin_layout Plain Layout
16057 LabelCounter
16058 \end_layout
16059
16060 \end_inset
16061
16062  is set,
16063  this string can be contain the special formatting commands described in 
16064 \begin_inset CommandInset ref
16065 LatexCommand ref
16066 reference "subsec:Counters"
16067 nolink "false"
16068
16069 \end_inset
16070
16071 .
16072 \end_layout
16073
16074 \begin_layout Description
16075 \begin_inset Flex Code
16076 status collapsed
16077
16078 \begin_layout Plain Layout
16079 LabelStringAppendix
16080 \end_layout
16081
16082 \end_inset
16083
16084  [
16085 \begin_inset Flex Code
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 string=""
16090 \end_layout
16091
16092 \end_inset
16093
16094 ] This is used inside the appendix instead of
16095 \begin_inset Newline newline
16096 \end_inset
16097
16098
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 LabelString
16104 \end_layout
16105
16106 \end_inset
16107
16108 .
16109  Note that every 
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 LabelString
16115 \end_layout
16116
16117 \end_inset
16118
16119  statement resets
16120 \begin_inset Newline newline
16121 \end_inset
16122
16123
16124 \begin_inset Flex Code
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128 LabelStringAppendix
16129 \end_layout
16130
16131 \end_inset
16132
16133  too.
16134 \change_deleted 1075283030 1672015070
16135
16136 \end_layout
16137
16138 \begin_layout Description
16139
16140 \change_deleted 1075283030 1672015070
16141 \begin_inset Flex Code
16142 status collapsed
16143
16144 \begin_layout Plain Layout
16145 LabelTag
16146 \end_layout
16147
16148 \end_inset
16149
16150  [FIXME] (Used only with XML-type formats.)
16151 \change_unchanged
16152
16153 \end_layout
16154
16155 \begin_layout Description
16156 \begin_inset Flex Code
16157 status collapsed
16158
16159 \begin_layout Plain Layout
16160 LabelType
16161 \end_layout
16162
16163 \end_inset
16164
16165  [
16166 \begin_inset Flex Code
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170
16171 \emph on
16172 No_Label
16173 \emph default
16174 ,
16175  Manual,
16176  Static,
16177  Above,
16178  
16179 \begin_inset Newline newline
16180 \end_inset
16181
16182 Centered,
16183  Sensitive,
16184  Enumerate,
16185 \begin_inset Newline newline
16186 \end_inset
16187
16188 Itemize,
16189  Bibliography
16190 \end_layout
16191
16192 \end_inset
16193
16194 ]
16195 \end_layout
16196
16197 \begin_deeper
16198 \begin_layout Description
16199 \begin_inset Flex Code
16200 status collapsed
16201
16202 \begin_layout Plain Layout
16203 Manual
16204 \end_layout
16205
16206 \end_inset
16207
16208  means the label is the very first word (up to the first real blank).
16209  Use 
16210 \change_deleted 177693 1654669087
16211 protected
16212 \change_inserted 177693 1654669089
16213 non-breaking
16214 \change_unchanged
16215  spaces if you want more than one word as the label.
16216  
16217 \end_layout
16218
16219 \begin_layout Description
16220 \begin_inset Flex Code
16221 status collapsed
16222
16223 \begin_layout Plain Layout
16224 Static
16225 \end_layout
16226
16227 \end_inset
16228
16229  means the label is simply what is declared as 
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 LabelString
16235 \end_layout
16236
16237 \end_inset
16238
16239 .
16240  This will be displayed 
16241 \begin_inset Quotes eld
16242 \end_inset
16243
16244 inline
16245 \begin_inset Quotes erd
16246 \end_inset
16247
16248 ,
16249  at the beginning of the paragraph.
16250  If the 
16251 \begin_inset Flex Code
16252 status collapsed
16253
16254 \begin_layout Plain Layout
16255 LatexType
16256 \end_layout
16257
16258 \end_inset
16259
16260  is 
16261 \begin_inset Flex Code
16262 status collapsed
16263
16264 \begin_layout Plain Layout
16265 Environment
16266 \end_layout
16267
16268 \end_inset
16269
16270 ,
16271  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
16272 \begin_inset Flex Code
16273 status collapsed
16274
16275 \begin_layout Plain Layout
16276 Style
16277 \end_layout
16278
16279 \end_inset
16280
16281 .
16282 \end_layout
16283
16284 \begin_layout Description
16285 \begin_inset Flex Code
16286 status collapsed
16287
16288 \begin_layout Plain Layout
16289 Above
16290 \end_layout
16291
16292 \end_inset
16293
16294
16295 \begin_inset space ~
16296 \end_inset
16297
16298 and
16299 \begin_inset space ~
16300 \end_inset
16301
16302
16303 \begin_inset Flex Code
16304 status collapsed
16305
16306 \begin_layout Plain Layout
16307 Centered
16308 \end_layout
16309
16310 \end_inset
16311
16312  are special cases of 
16313 \begin_inset Flex Code
16314 status collapsed
16315
16316 \begin_layout Plain Layout
16317 Static
16318 \end_layout
16319
16320 \end_inset
16321
16322 .
16323  The label will be printed above the paragraph either at the beginning of the line or centered.
16324 \end_layout
16325
16326 \begin_layout Description
16327 \begin_inset Flex Code
16328 status collapsed
16329
16330 \begin_layout Plain Layout
16331 Sensitive
16332 \end_layout
16333
16334 \end_inset
16335
16336  is a special case for the caption-labels 
16337 \begin_inset Quotes eld
16338 \end_inset
16339
16340 Figure
16341 \begin_inset Quotes erd
16342 \end_inset
16343
16344  and 
16345 \begin_inset Quotes eld
16346 \end_inset
16347
16348 Table
16349 \begin_inset Quotes erd
16350 \end_inset
16351
16352 .
16353 \begin_inset Newline newline
16354 \end_inset
16355
16356
16357 \begin_inset Flex Code
16358 status collapsed
16359
16360 \begin_layout Plain Layout
16361 Sensitive
16362 \end_layout
16363
16364 \end_inset
16365
16366  means the (hardcoded) label string depends on the kind of float:
16367  It is hardcoded to be `FloatType N',
16368  where N is the value of the counter associated with the float.
16369  For the case that a caption is inserted outside of a float the 
16370 \begin_inset Flex Code
16371 status collapsed
16372
16373 \begin_layout Plain Layout
16374 LabelString
16375 \end_layout
16376
16377 \end_inset
16378
16379  will appear as 
16380 \begin_inset Quotes eld
16381 \end_inset
16382
16383 Senseless!
16384 \begin_inset Quotes erd
16385 \end_inset
16386
16387 .
16388 \end_layout
16389
16390 \begin_layout Description
16391 \begin_inset Flex Code
16392 status collapsed
16393
16394 \begin_layout Plain Layout
16395 Enumerate
16396 \end_layout
16397
16398 \end_inset
16399
16400  produces the usual sort of enumeration labels.
16401  The number type needs to be set in the 
16402 \family sans
16403 Counter
16404 \family default
16405 ,
16406  see 
16407 \begin_inset CommandInset ref
16408 LatexCommand ref
16409 reference "subsec:Counters"
16410 nolink "false"
16411
16412 \end_inset
16413
16414 .
16415 \end_layout
16416
16417 \begin_layout Description
16418 \begin_inset Flex Code
16419 status collapsed
16420
16421 \begin_layout Plain Layout
16422 Itemize
16423 \end_layout
16424
16425 \end_inset
16426
16427  produces various bullets at the different levels.
16428  The bullet types displayed can be set via 
16429 \begin_inset Flex Noun
16430 status collapsed
16431
16432 \begin_layout Plain Layout
16433 Document\SpecialChar menuseparator
16434 Settings\SpecialChar menuseparator
16435 Bullets
16436 \end_layout
16437
16438 \end_inset
16439
16440 .
16441 \end_layout
16442
16443 \begin_layout Description
16444 \begin_inset Flex Code
16445 status collapsed
16446
16447 \begin_layout Plain Layout
16448 Bibliography
16449 \end_layout
16450
16451 \end_inset
16452
16453  should be used only with 
16454 \begin_inset Flex Code
16455 status collapsed
16456
16457 \begin_layout Plain Layout
16458 LatexType BibEnvironment
16459 \end_layout
16460
16461 \end_inset
16462
16463 .
16464 \end_layout
16465
16466 \end_deeper
16467 \begin_layout Description
16468 \begin_inset Flex Code
16469 status collapsed
16470
16471 \begin_layout Plain Layout
16472 LangPreamble
16473 \end_layout
16474
16475 \end_inset
16476
16477  Note that this will completely override any prior 
16478 \begin_inset Flex Code
16479 status collapsed
16480
16481 \begin_layout Plain Layout
16482 LangPreamble
16483 \end_layout
16484
16485 \end_inset
16486
16487  declaration for this style.
16488  Must end with 
16489 \begin_inset Quotes eld
16490 \end_inset
16491
16492
16493 \begin_inset Flex Code
16494 status collapsed
16495
16496 \begin_layout Plain Layout
16497 EndLangPreamble
16498 \end_layout
16499
16500 \end_inset
16501
16502
16503 \begin_inset Quotes erd
16504 \end_inset
16505
16506 .
16507  See 
16508 \begin_inset CommandInset ref
16509 LatexCommand ref
16510 reference "subsec:I18n"
16511 nolink "false"
16512
16513 \end_inset
16514
16515  for details on its use.
16516 \end_layout
16517
16518 \begin_layout Description
16519 \begin_inset Flex Code
16520 status collapsed
16521
16522 \begin_layout Plain Layout
16523 LatexName
16524 \end_layout
16525
16526 \end_inset
16527
16528  [
16529 \begin_inset Flex Code
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533 <name>
16534 \end_layout
16535
16536 \end_inset
16537
16538 ] The name of the corresponding \SpecialChar LaTeX
16539  stuff.
16540  Either the environment or command name.
16541 \end_layout
16542
16543 \begin_layout Description
16544 \begin_inset Flex Code
16545 status collapsed
16546
16547 \begin_layout Plain Layout
16548 LatexParam
16549 \end_layout
16550
16551 \end_inset
16552
16553  [
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558 <parameter>
16559 \end_layout
16560
16561 \end_inset
16562
16563 ] An optional parameter for the corresponding 
16564 \begin_inset Flex Code
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568 LatexName
16569 \end_layout
16570
16571 \end_inset
16572
16573  stuff.
16574  This parameter cannot be changed from within \SpecialChar LyX
16575  (use 
16576 \begin_inset Flex Code
16577 status collapsed
16578
16579 \begin_layout Plain Layout
16580 Argument
16581 \end_layout
16582
16583 \end_inset
16584
16585  for customizable parameters).
16586  This will be output as is after all \SpecialChar LaTeX
16587  
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 Argument
16593 \end_layout
16594
16595 \end_inset
16596
16597 s.
16598 \end_layout
16599
16600 \begin_layout Description
16601 \begin_inset Flex Code
16602 status collapsed
16603
16604 \begin_layout Plain Layout
16605 LatexType
16606 \end_layout
16607
16608 \end_inset
16609
16610  [
16611 \begin_inset Flex Code
16612 status collapsed
16613
16614 \begin_layout Plain Layout
16615
16616 \emph on
16617 Paragraph
16618 \emph default
16619 ,
16620  Command,
16621  Environment,
16622  Item_Environment,
16623 \begin_inset Newline newline
16624 \end_inset
16625
16626 List_Environment,
16627  Bib_Environment
16628 \end_layout
16629
16630 \end_inset
16631
16632 ] How the style should be translated into \SpecialChar LaTeX
16633 .
16634 \begin_inset Foot
16635 status collapsed
16636
16637 \begin_layout Plain Layout
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 LatexType
16643 \end_layout
16644
16645 \end_inset
16646
16647  is perhaps a bit misleading,
16648  since these rules apply to SGML classes,
16649  too.
16650  Visit the SGML class files for specific examples.
16651 \end_layout
16652
16653 \end_inset
16654
16655
16656 \end_layout
16657
16658 \begin_deeper
16659 \begin_layout Description
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664 Paragraph
16665 \end_layout
16666
16667 \end_inset
16668
16669  means nothing special.
16670 \end_layout
16671
16672 \begin_layout Description
16673 \begin_inset Flex Code
16674 status collapsed
16675
16676 \begin_layout Plain Layout
16677 Command
16678 \end_layout
16679
16680 \end_inset
16681
16682  means 
16683 \begin_inset Flex Code
16684 status collapsed
16685
16686 \begin_layout Plain Layout
16687
16688 \backslash
16689
16690 \emph on
16691 LatexName
16692 \emph default
16693 {\SpecialChar ldots
16694 }
16695 \end_layout
16696
16697 \end_inset
16698
16699 .
16700 \end_layout
16701
16702 \begin_layout Description
16703 \begin_inset Flex Code
16704 status collapsed
16705
16706 \begin_layout Plain Layout
16707 Environment
16708 \end_layout
16709
16710 \end_inset
16711
16712  means 
16713 \begin_inset Flex Code
16714 status collapsed
16715
16716 \begin_layout Plain Layout
16717
16718 \backslash
16719 begin{
16720 \emph on
16721 LatexName
16722 \emph default
16723 }\SpecialChar ldots
16724
16725 \backslash
16726 end{
16727 \emph on
16728 LatexName
16729 \emph default
16730 }
16731 \end_layout
16732
16733 \end_inset
16734
16735 .
16736  
16737 \end_layout
16738
16739 \begin_layout Description
16740 \begin_inset Flex Code
16741 status collapsed
16742
16743 \begin_layout Plain Layout
16744 Item_Environment
16745 \end_layout
16746
16747 \end_inset
16748
16749  is the same as 
16750 \begin_inset Flex Code
16751 status collapsed
16752
16753 \begin_layout Plain Layout
16754 Environment
16755 \end_layout
16756
16757 \end_inset
16758
16759 ,
16760  except that an 
16761 \begin_inset Flex Code
16762 status collapsed
16763
16764 \begin_layout Plain Layout
16765
16766 \backslash
16767 item
16768 \end_layout
16769
16770 \end_inset
16771
16772  is generated for each paragraph of this environment.
16773  
16774 \end_layout
16775
16776 \begin_layout Description
16777 \begin_inset Flex Code
16778 status collapsed
16779
16780 \begin_layout Plain Layout
16781 List_Environment
16782 \end_layout
16783
16784 \end_inset
16785
16786  is the same as 
16787 \begin_inset Flex Code
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791 Item_Environment
16792 \end_layout
16793
16794 \end_inset
16795
16796 ,
16797  except that
16798 \begin_inset Newline newline
16799 \end_inset
16800
16801
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 LabelWidthString
16807 \end_layout
16808
16809 \end_inset
16810
16811  is passed as an argument to the environment.
16812 \begin_inset Newline newline
16813 \end_inset
16814
16815
16816 \begin_inset Flex Code
16817 status collapsed
16818
16819 \begin_layout Plain Layout
16820 LabelWidthString
16821 \end_layout
16822
16823 \end_inset
16824
16825  can be defined in the 
16826 \begin_inset Flex Noun
16827 status collapsed
16828
16829 \begin_layout Plain Layout
16830 Edit\SpecialChar menuseparator
16831 Paragraph
16832 \begin_inset space ~
16833 \end_inset
16834
16835 settings
16836 \end_layout
16837
16838 \end_inset
16839
16840  dialog.
16841 \end_layout
16842
16843 \begin_layout Description
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 Bib_Environment
16849 \end_layout
16850
16851 \end_inset
16852
16853  is like 
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 Environment
16859 \end_layout
16860
16861 \end_inset
16862
16863  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
16864 \begin_inset Newline newline
16865 \end_inset
16866
16867
16868 \begin_inset Flex Code
16869 status collapsed
16870
16871 \begin_layout Plain Layout
16872
16873 \backslash
16874 begin{thebibliography}{99}
16875 \end_layout
16876
16877 \end_inset
16878
16879 .
16880  It is therefore only useful for bibliography environments.
16881  The default longest label 
16882 \begin_inset Quotes eld
16883 \end_inset
16884
16885 99
16886 \begin_inset Quotes erd
16887 \end_inset
16888
16889  can be changed by the user in the paragraph settings of a bibliography item.
16890 \end_layout
16891
16892 \begin_layout Standard
16893 Putting the last few things together,
16894  the \SpecialChar LaTeX
16895  output will be either:
16896  
16897 \end_layout
16898
16899 \begin_layout LyX-Code
16900
16901 \backslash
16902 LatexName[LatexParam]{\SpecialChar ldots
16903 }
16904 \end_layout
16905
16906 \begin_layout Standard
16907 or:
16908  
16909 \end_layout
16910
16911 \begin_layout LyX-Code
16912
16913 \backslash
16914 begin{LatexName}[LatexParam] \SpecialChar ldots
16915  
16916 \backslash
16917 end{LatexName}.
16918 \end_layout
16919
16920 \begin_layout Standard
16921 depending upon the \SpecialChar LaTeX
16922  type.
16923 \end_layout
16924
16925 \end_deeper
16926 \begin_layout Description
16927 \begin_inset Flex Code
16928 status collapsed
16929
16930 \begin_layout Plain Layout
16931 LeftDelim
16932 \end_layout
16933
16934 \end_inset
16935
16936  [
16937 \begin_inset Flex Code
16938 status collapsed
16939
16940 \begin_layout Plain Layout
16941 string
16942 \end_layout
16943
16944 \end_inset
16945
16946 ] A string that is put at the beginning of the style content.
16947  A line break in the output can be indicated by 
16948 \begin_inset Flex Code
16949 status collapsed
16950
16951 \begin_layout Plain Layout
16952 <br/>
16953 \end_layout
16954
16955 \end_inset
16956
16957 .
16958 \end_layout
16959
16960 \begin_layout Description
16961 \begin_inset Flex Code
16962 status collapsed
16963
16964 \begin_layout Plain Layout
16965 LeftMargin
16966 \end_layout
16967
16968 \end_inset
16969
16970  [
16971 \begin_inset Flex Code
16972 status collapsed
16973
16974 \begin_layout Plain Layout
16975 string=""
16976 \end_layout
16977
16978 \end_inset
16979
16980 ] If you put styles into environments,
16981  the different 
16982 \begin_inset Flex Code
16983 status collapsed
16984
16985 \begin_layout Plain Layout
16986 LeftMargin
16987 \end_layout
16988
16989 \end_inset
16990
16991  are not simply added,
16992  but added with a factor 
16993 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16994 \end_inset
16995
16996 .
16997  Note that this parameter is also used when 
16998 \begin_inset Flex Code
16999 status collapsed
17000
17001 \begin_layout Plain Layout
17002 Margin
17003 \end_layout
17004
17005 \end_inset
17006
17007  is defined as 
17008 \begin_inset Flex Code
17009 status collapsed
17010
17011 \begin_layout Plain Layout
17012 Manual
17013 \end_layout
17014
17015 \end_inset
17016
17017  or 
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 Dynamic
17023 \end_layout
17024
17025 \end_inset
17026
17027 .
17028  Then it is added to the manual or dynamic margin.
17029 \begin_inset Newline newline
17030 \end_inset
17031
17032 For example 
17033 \begin_inset Quotes eld
17034 \end_inset
17035
17036
17037 \begin_inset Flex Code
17038 status collapsed
17039
17040 \begin_layout Plain Layout
17041 MM
17042 \end_layout
17043
17044 \end_inset
17045
17046
17047 \begin_inset Quotes erd
17048 \end_inset
17049
17050  means that the paragraph is indented with the width of 
17051 \begin_inset Quotes eld
17052 \end_inset
17053
17054
17055 \begin_inset Flex Code
17056 status collapsed
17057
17058 \begin_layout Plain Layout
17059 MM
17060 \end_layout
17061
17062 \end_inset
17063
17064
17065 \begin_inset Quotes erd
17066 \end_inset
17067
17068  in the normal font.
17069  You can get a negative width by prefixing the string with 
17070 \begin_inset Quotes eld
17071 \end_inset
17072
17073
17074 \begin_inset Flex Code
17075 status collapsed
17076
17077 \begin_layout Plain Layout
17078 -
17079 \end_layout
17080
17081 \end_inset
17082
17083
17084 \begin_inset Quotes erd
17085 \end_inset
17086
17087 .
17088  This way was chosen so that the look is the same with each used screen font.
17089 \end_layout
17090
17091 \begin_layout Description
17092 \begin_inset Flex Code
17093 status collapsed
17094
17095 \begin_layout Plain Layout
17096 Margin
17097 \end_layout
17098
17099 \end_inset
17100
17101  [
17102 \begin_inset Flex Code
17103 status collapsed
17104
17105 \begin_layout Plain Layout
17106
17107 \emph on
17108 Static
17109 \emph default
17110 ,
17111  Manual,
17112  Dynamic,
17113  First_Dynamic,
17114  Right_Address_Box
17115 \end_layout
17116
17117 \end_inset
17118
17119
17120 \begin_inset Newline newline
17121 \end_inset
17122
17123 The kind of margin that the style has on the left side.
17124 \end_layout
17125
17126 \begin_deeper
17127 \begin_layout Description
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132 Static
17133 \end_layout
17134
17135 \end_inset
17136
17137  just means a fixed margin.
17138 \end_layout
17139
17140 \begin_layout Description
17141 \begin_inset Flex Code
17142 status collapsed
17143
17144 \begin_layout Plain Layout
17145 Manual
17146 \end_layout
17147
17148 \end_inset
17149
17150  means that the left margin depends on the string entered in the 
17151 \begin_inset Flex Noun
17152 status collapsed
17153
17154 \begin_layout Plain Layout
17155 Edit\SpecialChar menuseparator
17156 Paragraph
17157 \begin_inset space ~
17158 \end_inset
17159
17160 Settings
17161 \end_layout
17162
17163 \end_inset
17164
17165  dialog.
17166  This is used to typeset nice lists without tabulators.
17167 \end_layout
17168
17169 \begin_layout Description
17170 \begin_inset Flex Code
17171 status collapsed
17172
17173 \begin_layout Plain Layout
17174 Dynamic
17175 \end_layout
17176
17177 \end_inset
17178
17179  means that the margin depends on the size of the label.
17180  This is used for automatic enumerated headlines.
17181  It is obvious that the headline 
17182 \begin_inset Quotes eld
17183 \end_inset
17184
17185 5.4.3.2.1 Very long headline
17186 \begin_inset Quotes erd
17187 \end_inset
17188
17189  must have a wider left margin (as wide as 
17190 \begin_inset Quotes eld
17191 \end_inset
17192
17193 5.4.3.2.1
17194 \begin_inset Quotes erd
17195 \end_inset
17196
17197  plus the space) than 
17198 \begin_inset Quotes eld
17199 \end_inset
17200
17201 3.2 Very long headline
17202 \begin_inset Quotes erd
17203 \end_inset
17204
17205 ,
17206  even if standard 
17207 \begin_inset Quotes eld
17208 \end_inset
17209
17210 word processors
17211 \begin_inset Quotes erd
17212 \end_inset
17213
17214  are not able to do this.
17215 \end_layout
17216
17217 \begin_layout Description
17218 \begin_inset Flex Code
17219 status collapsed
17220
17221 \begin_layout Plain Layout
17222 First_Dynamic
17223 \end_layout
17224
17225 \end_inset
17226
17227  is similar,
17228  but only the very first row of the paragraph is dynamic,
17229  while the others are static;
17230  this is used,
17231  for example,
17232  for descriptions.
17233 \end_layout
17234
17235 \begin_layout Description
17236 \begin_inset Flex Code
17237 status collapsed
17238
17239 \begin_layout Plain Layout
17240 Right_Address_Box
17241 \end_layout
17242
17243 \end_inset
17244
17245  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
17246  This is used to typeset an address on the right edge of the page.
17247 \end_layout
17248
17249 \end_deeper
17250 \begin_layout Description
17251 \begin_inset Flex Code
17252 status collapsed
17253
17254 \begin_layout Plain Layout
17255 NeedProtect
17256 \end_layout
17257
17258 \end_inset
17259
17260  [
17261 \begin_inset Flex Code
17262 status collapsed
17263
17264 \begin_layout Plain Layout
17265
17266 \emph on
17267 0
17268 \end_layout
17269
17270 \end_inset
17271
17272 ,
17273 \begin_inset space \thinspace{}
17274 \end_inset
17275
17276
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 1
17282 \end_layout
17283
17284 \end_inset
17285
17286 ] Whether fragile commands in this style should be 
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291
17292 \backslash
17293 protect
17294 \end_layout
17295
17296 \end_inset
17297
17298 'ed.
17299  (Note:
17300  This is 
17301 \emph on
17302 not
17303 \emph default
17304  whether this command should itself be protected.)
17305 \change_inserted -712698321 1523696949
17306
17307 \end_layout
17308
17309 \begin_layout Description
17310
17311 \change_inserted -712698321 1552395557
17312 \begin_inset Flex Code
17313 status collapsed
17314
17315 \begin_layout Plain Layout
17316
17317 \change_inserted -712698321 1523696950
17318 NeedCProtect
17319 \change_unchanged
17320
17321 \end_layout
17322
17323 \end_inset
17324
17325  [
17326 \begin_inset Flex Code
17327 status collapsed
17328
17329 \begin_layout Plain Layout
17330
17331 \change_inserted -712698321 1523696950
17332
17333 \emph on
17334 0
17335 \change_unchanged
17336
17337 \end_layout
17338
17339 \end_inset
17340
17341 ,
17342 \begin_inset space \thinspace{}
17343 \end_inset
17344
17345
17346 \begin_inset Flex Code
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350
17351 \change_inserted -712698321 1523696950
17352 1
17353 \change_unchanged
17354
17355 \end_layout
17356
17357 \end_inset
17358
17359 ] This causes macros that contain this layout to be protected with 
17360 \begin_inset Flex Code
17361 status collapsed
17362
17363 \begin_layout Plain Layout
17364
17365 \change_inserted -712698321 1523696950
17366
17367 \backslash
17368 cprotect
17369 \change_unchanged
17370
17371 \end_layout
17372
17373 \end_inset
17374
17375  (cf.
17376  package 
17377 \family sans
17378 cprotect
17379 \family default
17380 ) if necessary and thus allows (some) verbatim stuff in macros.
17381 \end_layout
17382
17383 \begin_layout Description
17384
17385 \change_inserted -712698321 1552395844
17386 \begin_inset Flex Code
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390
17391 \change_inserted -712698321 1552395561
17392 NeedMBoxProtect
17393 \change_unchanged
17394
17395 \end_layout
17396
17397 \end_inset
17398
17399  [
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404
17405 \change_inserted -712698321 1552395557
17406
17407 \emph on
17408 0
17409 \change_unchanged
17410
17411 \end_layout
17412
17413 \end_inset
17414
17415 ,
17416 \begin_inset space \thinspace{}
17417 \end_inset
17418
17419
17420 \begin_inset Flex Code
17421 status collapsed
17422
17423 \begin_layout Plain Layout
17424
17425 \change_inserted -712698321 1552395557
17426 1
17427 \change_unchanged
17428
17429 \end_layout
17430
17431 \end_inset
17432
17433 ] Whether specific commands in this style (such as 
17434 \begin_inset Flex Code
17435 status collapsed
17436
17437 \begin_layout Plain Layout
17438
17439 \change_inserted -712698321 1552395655
17440
17441 \backslash
17442 cite
17443 \change_unchanged
17444
17445 \end_layout
17446
17447 \end_inset
17448
17449  and 
17450 \begin_inset Flex Code
17451 status collapsed
17452
17453 \begin_layout Plain Layout
17454
17455 \change_inserted -712698321 1552395661
17456
17457 \backslash
17458 ref
17459 \change_unchanged
17460
17461 \end_layout
17462
17463 \end_inset
17464
17465 ) should be protected in an 
17466 \begin_inset Flex Code
17467 status collapsed
17468
17469 \begin_layout Plain Layout
17470
17471 \change_inserted -712698321 1552395631
17472
17473 \backslash
17474 mbox
17475 \change_unchanged
17476
17477 \end_layout
17478
17479 \end_inset
17480
17481 .
17482  This is particularly needed for styles that draw on 
17483 \family sans
17484 ulem
17485 \family default
17486  or 
17487 \family sans
17488 soul
17489 \family default
17490  commands which parse their content in complex ways.
17491 \change_unchanged
17492
17493 \end_layout
17494
17495 \begin_layout Description
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500 Newline
17501 \end_layout
17502
17503 \end_inset
17504
17505  [
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 0
17511 \end_layout
17512
17513 \end_inset
17514
17515 ,
17516 \begin_inset space \thinspace{}
17517 \end_inset
17518
17519
17520 \begin_inset Flex Code
17521 status collapsed
17522
17523 \begin_layout Plain Layout
17524
17525 \emph on
17526 1
17527 \end_layout
17528
17529 \end_inset
17530
17531 ] Whether newlines are translated into \SpecialChar LaTeX
17532  newlines (
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537
17538 \backslash
17539
17540 \backslash
17541
17542 \end_layout
17543
17544 \end_inset
17545
17546 ) or not.
17547  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
17548  editing inside \SpecialChar LyX
17549 .
17550 \end_layout
17551
17552 \begin_layout Description
17553 \begin_inset Flex Code
17554 status collapsed
17555
17556 \begin_layout Plain Layout
17557 NextNoIndent
17558 \end_layout
17559
17560 \end_inset
17561
17562  [
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567
17568 \emph on
17569 0
17570 \end_layout
17571
17572 \end_inset
17573
17574 ,
17575 \begin_inset space \thinspace{}
17576 \end_inset
17577
17578
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 1
17584 \end_layout
17585
17586 \end_inset
17587
17588 ] If set to true,
17589  and if 
17590 \begin_inset Flex Code
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594 DefaultStyle
17595 \end_layout
17596
17597 \end_inset
17598
17599  (usually 
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604 Standard
17605 \end_layout
17606
17607 \end_inset
17608
17609 ) paragraphs are being indented,
17610  then the indentation of such a paragraph following one of this type will be suppressed.
17611  (So this will not affect the display of non-default paragraphs.)
17612 \end_layout
17613
17614 \begin_layout Description
17615 \begin_inset Flex Code
17616 status collapsed
17617
17618 \begin_layout Plain Layout
17619 ObsoletedBy
17620 \end_layout
17621
17622 \end_inset
17623
17624  [
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 <name>
17630 \end_layout
17631
17632 \end_inset
17633
17634 ] Name of a style that has replaced this style.
17635  This is used to rename a style,
17636  while keeping backward compatibility.
17637 \end_layout
17638
17639 \begin_layout Description
17640 \begin_inset Flex Code
17641 status collapsed
17642
17643 \begin_layout Plain Layout
17644 ParagraphGroup
17645 \end_layout
17646
17647 \end_inset
17648
17649  [
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 0
17655 \end_layout
17656
17657 \end_inset
17658
17659 ,
17660 \begin_inset space \thinspace{}
17661 \end_inset
17662
17663
17664 \begin_inset Flex Code
17665 status collapsed
17666
17667 \begin_layout Plain Layout
17668 1
17669 \end_layout
17670
17671 \end_inset
17672
17673 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
17674  This has the effect that the 
17675 \begin_inset Flex Code
17676 status collapsed
17677
17678 \begin_layout Plain Layout
17679 GuiLabel
17680 \end_layout
17681
17682 \end_inset
17683
17684  is only printed once before such a group.
17685  By default,
17686  this is true for 
17687 \begin_inset Flex Code
17688 status collapsed
17689
17690 \begin_layout Plain Layout
17691 LaTeXType
17692 \end_layout
17693
17694 \end_inset
17695
17696  
17697 \begin_inset Flex Code
17698 status collapsed
17699
17700 \begin_layout Plain Layout
17701 Environment
17702 \end_layout
17703
17704 \end_inset
17705
17706  and 
17707 \begin_inset Flex Code
17708 status collapsed
17709
17710 \begin_layout Plain Layout
17711 Bib_Environment
17712 \end_layout
17713
17714 \end_inset
17715
17716  and false for all other types.
17717 \end_layout
17718
17719 \begin_layout Description
17720 \begin_inset Flex Code
17721 status collapsed
17722
17723 \begin_layout Plain Layout
17724 ParbreakIsNewline
17725 \end_layout
17726
17727 \end_inset
17728
17729  [
17730 \begin_inset Flex Code
17731 status collapsed
17732
17733 \begin_layout Plain Layout
17734
17735 \emph on
17736 0
17737 \end_layout
17738
17739 \end_inset
17740
17741 ,
17742 \begin_inset space \thinspace{}
17743 \end_inset
17744
17745
17746 \begin_inset Flex Code
17747 status collapsed
17748
17749 \begin_layout Plain Layout
17750 1
17751 \end_layout
17752
17753 \end_inset
17754
17755 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17756  output,
17757  but only by a line break;
17758  together with 
17759 \begin_inset Flex Code
17760 status collapsed
17761
17762 \begin_layout Plain Layout
17763 PassThru 1
17764 \end_layout
17765
17766 \end_inset
17767
17768 ,
17769  this allows to emulate a plain text editor (like the ERT inset).
17770 \end_layout
17771
17772 \begin_layout Description
17773 \begin_inset Flex Code
17774 status collapsed
17775
17776 \begin_layout Plain Layout
17777 ParIndent
17778 \end_layout
17779
17780 \end_inset
17781
17782  [
17783 \begin_inset Flex Code
17784 status collapsed
17785
17786 \begin_layout Plain Layout
17787 string=""
17788 \end_layout
17789
17790 \end_inset
17791
17792 ] The indent of the very first line of a paragraph.
17793  The
17794 \begin_inset Newline newline
17795 \end_inset
17796
17797
17798 \begin_inset Flex Code
17799 status collapsed
17800
17801 \begin_layout Plain Layout
17802 Parindent
17803 \end_layout
17804
17805 \end_inset
17806
17807  will be fixed for a certain style.
17808  The exception is the default style,
17809  since the indentation for these paragraphs can be prohibited with 
17810 \begin_inset Flex Code
17811 status collapsed
17812
17813 \begin_layout Plain Layout
17814 NextNoIndent
17815 \end_layout
17816
17817 \end_inset
17818
17819 .
17820  Also,
17821  
17822 \begin_inset Flex Code
17823 status collapsed
17824
17825 \begin_layout Plain Layout
17826 Standard
17827 \end_layout
17828
17829 \end_inset
17830
17831  style paragraphs inside environments use the 
17832 \begin_inset Flex Code
17833 status collapsed
17834
17835 \begin_layout Plain Layout
17836 Parindent
17837 \end_layout
17838
17839 \end_inset
17840
17841  of the environment,
17842  not their native one.
17843  For example,
17844  
17845 \begin_inset Flex Code
17846 status collapsed
17847
17848 \begin_layout Plain Layout
17849 Standard
17850 \end_layout
17851
17852 \end_inset
17853
17854  paragraphs inside an enumeration are not indented.
17855 \end_layout
17856
17857 \begin_layout Description
17858 \begin_inset Flex Code
17859 status collapsed
17860
17861 \begin_layout Plain Layout
17862 ParSep
17863 \end_layout
17864
17865 \end_inset
17866
17867  [
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 float=0
17873 \end_layout
17874
17875 \end_inset
17876
17877 ] The vertical space between two paragraphs of this style.
17878 \end_layout
17879
17880 \begin_layout Description
17881 \begin_inset Flex Code
17882 status collapsed
17883
17884 \begin_layout Plain Layout
17885 Parskip
17886 \end_layout
17887
17888 \end_inset
17889
17890  [
17891 \begin_inset Flex Code
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895 float=0
17896 \end_layout
17897
17898 \end_inset
17899
17900 ] \SpecialChar LyX
17901  allows the user to choose either 
17902 \begin_inset Quotes eld
17903 \end_inset
17904
17905 indent
17906 \begin_inset Quotes erd
17907 \end_inset
17908
17909  or 
17910 \begin_inset Quotes eld
17911 \end_inset
17912
17913 skip
17914 \begin_inset Quotes erd
17915 \end_inset
17916
17917  to separate paragraphs.
17918  When 
17919 \begin_inset Quotes eld
17920 \end_inset
17921
17922 indent
17923 \begin_inset Quotes erd
17924 \end_inset
17925
17926  is chosen,
17927  
17928 \begin_inset Flex Code
17929 status collapsed
17930
17931 \begin_layout Plain Layout
17932 Parskip
17933 \end_layout
17934
17935 \end_inset
17936
17937  is ignored.
17938  When 
17939 \begin_inset Quotes eld
17940 \end_inset
17941
17942 skip
17943 \begin_inset Quotes erd
17944 \end_inset
17945
17946  is chosen,
17947  
17948 \begin_inset Flex Code
17949 status collapsed
17950
17951 \begin_layout Plain Layout
17952 ParIndent
17953 \end_layout
17954
17955 \end_inset
17956
17957  is ignored and all paragraphs are separated by the 
17958 \begin_inset Flex Code
17959 status collapsed
17960
17961 \begin_layout Plain Layout
17962 Parskip
17963 \end_layout
17964
17965 \end_inset
17966
17967  argument.
17968  The vertical space is calculated with 
17969 \begin_inset Flex Code
17970 status collapsed
17971
17972 \begin_layout Plain Layout
17973 Parskip
17974 \begin_inset space ~
17975 \end_inset
17976
17977 * DefaultHeight
17978 \end_layout
17979
17980 \end_inset
17981
17982  where 
17983 \begin_inset Flex Code
17984 status collapsed
17985
17986 \begin_layout Plain Layout
17987 DefaultHeight
17988 \end_layout
17989
17990 \end_inset
17991
17992  is the height of a row with the normal font.
17993  This way,
17994  the look stays the same with different screen fonts.
17995 \end_layout
17996
17997 \begin_layout Description
17998 \begin_inset Flex Code
17999 status collapsed
18000
18001 \begin_layout Plain Layout
18002 PassThru
18003 \end_layout
18004
18005 \end_inset
18006
18007  [
18008 \begin_inset Flex Code
18009 status collapsed
18010
18011 \begin_layout Plain Layout
18012
18013 \emph on
18014 0
18015 \end_layout
18016
18017 \end_inset
18018
18019 ,
18020 \begin_inset space \thinspace{}
18021 \end_inset
18022
18023
18024 \begin_inset Flex Code
18025 status collapsed
18026
18027 \begin_layout Plain Layout
18028 1
18029 \end_layout
18030
18031 \end_inset
18032
18033 ] Whether the contents of this paragraph should be output in raw form,
18034  meaning without special translations that \SpecialChar LaTeX
18035  would require.
18036 \end_layout
18037
18038 \begin_layout Description
18039 \begin_inset Flex Code
18040 status collapsed
18041
18042 \begin_layout Plain Layout
18043 PassThruChars
18044 \end_layout
18045
18046 \end_inset
18047
18048  [
18049 \begin_inset Flex Code
18050 status collapsed
18051
18052 \begin_layout Plain Layout
18053 string
18054 \end_layout
18055
18056 \end_inset
18057
18058 ]
18059 \family typewriter
18060  
18061 \family default
18062 Defines individual characters that should be output in raw form,
18063  meaning without special translations that \SpecialChar LaTeX
18064  would require.
18065 \end_layout
18066
18067 \begin_layout Description
18068 \begin_inset Flex Code
18069 status collapsed
18070
18071 \begin_layout Plain Layout
18072 Preamble
18073 \end_layout
18074
18075 \end_inset
18076
18077  Information to be included in the \SpecialChar LaTeX
18078  preamble when this style is used.
18079  Used to define macros,
18080  load packages,
18081  etc.,
18082  required by this particular style.
18083  Must end with 
18084 \begin_inset Quotes eld
18085 \end_inset
18086
18087
18088 \begin_inset Flex Code
18089 status collapsed
18090
18091 \begin_layout Plain Layout
18092 EndPreamble
18093 \end_layout
18094
18095 \end_inset
18096
18097
18098 \begin_inset Quotes erd
18099 \end_inset
18100
18101 .
18102 \end_layout
18103
18104 \begin_layout Description
18105 \begin_inset Flex Code
18106 status collapsed
18107
18108 \begin_layout Plain Layout
18109 RefPrefix
18110 \end_layout
18111
18112 \end_inset
18113
18114  [
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119 string
18120 \end_layout
18121
18122 \end_inset
18123
18124 ] The prefix to use when creating labels referring to paragraphs of this type.
18125  This allows the use of formatted references.
18126 \end_layout
18127
18128 \begin_layout Description
18129 \begin_inset Flex Code
18130 status collapsed
18131
18132 \begin_layout Plain Layout
18133 Requires 
18134 \end_layout
18135
18136 \end_inset
18137
18138  [
18139 \begin_inset Flex Code
18140 status collapsed
18141
18142 \begin_layout Plain Layout
18143 string
18144 \end_layout
18145
18146 \end_inset
18147
18148 ] Whether the style requires the feature 
18149 \begin_inset Flex Code
18150 status collapsed
18151
18152 \begin_layout Plain Layout
18153 string
18154 \end_layout
18155
18156 \end_inset
18157
18158  (see 
18159 \begin_inset CommandInset ref
18160 LatexCommand ref
18161 reference "chap:List-of-functions"
18162 nolink "false"
18163
18164 \end_inset
18165
18166  for the list of features).
18167  If you require a package with specific options,
18168  you can additionally use 
18169 \begin_inset Flex Code
18170 status collapsed
18171
18172 \begin_layout Plain Layout
18173 PackageOptions
18174 \end_layout
18175
18176 \end_inset
18177
18178  as a general text class parameter (see 
18179 \begin_inset CommandInset ref
18180 LatexCommand ref
18181 reference "subsec:General-text-class"
18182 nolink "false"
18183
18184 \end_inset
18185
18186 ).
18187 \end_layout
18188
18189 \begin_layout Description
18190 \begin_inset Flex Code
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 ResetArgs
18195 \end_layout
18196
18197 \end_inset
18198
18199  [
18200 \begin_inset Flex Code
18201 status collapsed
18202
18203 \begin_layout Plain Layout
18204
18205 \emph on
18206 0
18207 \end_layout
18208
18209 \end_inset
18210
18211 ,
18212 \begin_inset Flex Code
18213 status collapsed
18214
18215 \begin_layout Plain Layout
18216 1
18217 \end_layout
18218
18219 \end_inset
18220
18221 ] Resets the \SpecialChar LaTeX
18222  arguments of this style (as defined via the 
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 Argument
18228 \end_layout
18229
18230 \end_inset
18231
18232  tag).
18233  This is useful if you have copied a style via 
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 CopyStyle
18239 \end_layout
18240
18241 \end_inset
18242
18243 ,
18244  but you do not want to inherit its (required and optional) arguments.
18245 \end_layout
18246
18247 \begin_layout Description
18248 \begin_inset Flex Code
18249 status collapsed
18250
18251 \begin_layout Plain Layout
18252 ResumeCounter
18253 \end_layout
18254
18255 \end_inset
18256
18257  [
18258 \begin_inset Flex Code
18259 status collapsed
18260
18261 \begin_layout Plain Layout
18262
18263 \emph on
18264 0
18265 \end_layout
18266
18267 \end_inset
18268
18269 ,
18270 \begin_inset Flex Code
18271 status collapsed
18272
18273 \begin_layout Plain Layout
18274 1
18275 \end_layout
18276
18277 \end_inset
18278
18279 ] Resumes a counter that is usually reset at each new sequence of layouts.
18280  This is currently only useful when 
18281 \begin_inset Flex Code
18282 status collapsed
18283
18284 \begin_layout Plain Layout
18285 LabelType
18286 \end_layout
18287
18288 \end_inset
18289
18290  is 
18291 \begin_inset Flex Code
18292 status collapsed
18293
18294 \begin_layout Plain Layout
18295 Enumerate
18296 \end_layout
18297
18298 \end_inset
18299
18300 .
18301 \end_layout
18302
18303 \begin_layout Description
18304 \begin_inset Flex Code
18305 status collapsed
18306
18307 \begin_layout Plain Layout
18308 RightDelim
18309 \end_layout
18310
18311 \end_inset
18312
18313  [
18314 \begin_inset Flex Code
18315 status collapsed
18316
18317 \begin_layout Plain Layout
18318 string
18319 \end_layout
18320
18321 \end_inset
18322
18323 ] A string that is put at the end of the layout content.
18324  A line break in the output can be indicated by 
18325 \begin_inset Flex Code
18326 status collapsed
18327
18328 \begin_layout Plain Layout
18329 <br/>
18330 \end_layout
18331
18332 \end_inset
18333
18334 .
18335 \end_layout
18336
18337 \begin_layout Description
18338 \begin_inset Flex Code
18339 status collapsed
18340
18341 \begin_layout Plain Layout
18342 RightMargin
18343 \end_layout
18344
18345 \end_inset
18346
18347  [
18348 \begin_inset Flex Code
18349 status collapsed
18350
18351 \begin_layout Plain Layout
18352 string=""
18353 \end_layout
18354
18355 \end_inset
18356
18357 ] Similar to 
18358 \begin_inset Flex Code
18359 status collapsed
18360
18361 \begin_layout Plain Layout
18362 LeftMargin
18363 \end_layout
18364
18365 \end_inset
18366
18367 .
18368 \end_layout
18369
18370 \begin_layout Description
18371 \begin_inset Flex Code
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375 Spacing
18376 \end_layout
18377
18378 \end_inset
18379
18380  [
18381 \begin_inset Flex Code
18382 status collapsed
18383
18384 \begin_layout Plain Layout
18385
18386 \emph on
18387 single
18388 \end_layout
18389
18390 \end_inset
18391
18392 ,
18393  
18394 \begin_inset Flex Code
18395 status collapsed
18396
18397 \begin_layout Plain Layout
18398 onehalf
18399 \end_layout
18400
18401 \end_inset
18402
18403 ,
18404  
18405 \begin_inset Flex Code
18406 status collapsed
18407
18408 \begin_layout Plain Layout
18409 double
18410 \end_layout
18411
18412 \end_inset
18413
18414 ,
18415  
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 other
18421 \begin_inset space ~
18422 \end_inset
18423
18424 <value>
18425 \end_layout
18426
18427 \end_inset
18428
18429 ] This defines what the default spacing should be in the style.
18430  The arguments 
18431 \begin_inset Flex Code
18432 status collapsed
18433
18434 \begin_layout Plain Layout
18435 single
18436 \end_layout
18437
18438 \end_inset
18439
18440 ,
18441  
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 onehalf
18447 \end_layout
18448
18449 \end_inset
18450
18451  and 
18452 \begin_inset Flex Code
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456 double
18457 \end_layout
18458
18459 \end_inset
18460
18461  correspond respectively to a multiplier value of 1,
18462  1.25 and 1.667.
18463  If you specify the argument 
18464 \begin_inset Flex Code
18465 status collapsed
18466
18467 \begin_layout Plain Layout
18468 other
18469 \end_layout
18470
18471 \end_inset
18472
18473 ,
18474  then you must also provide a value argument which will be the actual multiplier value.
18475  Note that,
18476  contrary to other parameters,
18477  
18478 \begin_inset Flex Code
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 Spacing
18483 \end_layout
18484
18485 \end_inset
18486
18487  implies the generation of specific \SpecialChar LaTeX
18488  code,
18489  using the \SpecialChar LaTeX
18490  package 
18491 \family roman
18492
18493 \begin_inset Flex Code
18494 status collapsed
18495
18496 \begin_layout Plain Layout
18497 setspace
18498 \end_layout
18499
18500 \end_inset
18501
18502 .
18503 \end_layout
18504
18505 \begin_layout Description
18506 \begin_inset Flex Code
18507 status collapsed
18508
18509 \begin_layout Plain Layout
18510 Spellcheck
18511 \end_layout
18512
18513 \end_inset
18514
18515  [
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 0
18521 \end_layout
18522
18523 \end_inset
18524
18525 ,
18526 \begin_inset space \thinspace{}
18527 \end_inset
18528
18529
18530 \begin_inset Flex Code
18531 status collapsed
18532
18533 \begin_layout Plain Layout
18534
18535 \emph on
18536 1
18537 \end_layout
18538
18539 \end_inset
18540
18541 ] Allow spell-checking paragraphs of this style.
18542  Default is true.
18543 \end_layout
18544
18545 \begin_layout Description
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550 Step
18551 \change_deleted 731793113 1604355211
18552 Master
18553 \change_inserted 731793113 1604355212
18554 Parent
18555 \change_unchanged
18556 Counter
18557 \end_layout
18558
18559 \end_inset
18560
18561  [
18562 \begin_inset Flex Code
18563 status collapsed
18564
18565 \begin_layout Plain Layout
18566
18567 \emph on
18568 0
18569 \end_layout
18570
18571 \end_inset
18572
18573 ,
18574 \begin_inset Flex Code
18575 status collapsed
18576
18577 \begin_layout Plain Layout
18578 1
18579 \end_layout
18580
18581 \end_inset
18582
18583 ] Steps the 
18584 \change_deleted 731793113 1604355214
18585 master
18586 \change_inserted 731793113 1604355216
18587 parent
18588 \change_unchanged
18589  counter of a given counter at the beginning of a new sequence of layouts.
18590  This is currently only useful when 
18591 \begin_inset Flex Code
18592 status collapsed
18593
18594 \begin_layout Plain Layout
18595 LabelType
18596 \end_layout
18597
18598 \end_inset
18599
18600  is 
18601 \begin_inset Flex Code
18602 status collapsed
18603
18604 \begin_layout Plain Layout
18605 Enumerate
18606 \end_layout
18607
18608 \end_inset
18609
18610 .
18611 \end_layout
18612
18613 \begin_layout Description
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 TextFont
18619 \end_layout
18620
18621 \end_inset
18622
18623  The font used for the text body .
18624  See 
18625 \begin_inset CommandInset ref
18626 LatexCommand ref
18627 reference "subsec:Font-description"
18628 nolink "false"
18629
18630 \end_inset
18631
18632 .
18633 \end_layout
18634
18635 \begin_layout Description
18636 \begin_inset Flex Code
18637 status collapsed
18638
18639 \begin_layout Plain Layout
18640 TocLevel
18641 \end_layout
18642
18643 \end_inset
18644
18645
18646 \series medium
18647  [
18648 \begin_inset Flex Code
18649 status collapsed
18650
18651 \begin_layout Plain Layout
18652
18653 \series medium
18654 int=3
18655 \end_layout
18656
18657 \end_inset
18658
18659 ]
18660 \series default
18661  The level of the style in the table of contents.
18662  This is used for automatic numbering of section headings.
18663 \end_layout
18664
18665 \begin_layout Description
18666 \begin_inset Flex Code
18667 status collapsed
18668
18669 \begin_layout Plain Layout
18670 ToggleIndent
18671 \end_layout
18672
18673 \end_inset
18674
18675  [
18676 \emph on
18677
18678 \begin_inset Flex Code
18679 status collapsed
18680
18681 \begin_layout Plain Layout
18682
18683 \emph on
18684 default
18685 \end_layout
18686
18687 \end_inset
18688
18689
18690 \emph default
18691 ,
18692  
18693 \begin_inset Flex Code
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697 always
18698 \end_layout
18699
18700 \end_inset
18701
18702 ,
18703  
18704 \begin_inset Flex Code
18705 status collapsed
18706
18707 \begin_layout Plain Layout
18708 never
18709 \end_layout
18710
18711 \end_inset
18712
18713 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
18714  If 
18715 \emph on
18716
18717 \begin_inset Flex Code
18718 status collapsed
18719
18720 \begin_layout Plain Layout
18721
18722 \emph off
18723 default
18724 \end_layout
18725
18726 \end_inset
18727
18728
18729 \emph default
18730  is set,
18731  indentation can be toggled if the document settings use 
18732 \begin_inset Quotes eld
18733 \end_inset
18734
18735 indent
18736 \begin_inset Quotes erd
18737 \end_inset
18738
18739  paragraph style,
18740  with 
18741 \begin_inset Flex Code
18742 status collapsed
18743
18744 \begin_layout Plain Layout
18745 always
18746 \end_layout
18747
18748 \end_inset
18749
18750 ,
18751  indentation can always be toggled,
18752  notwithstanding the document settings,
18753  with 
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758 never
18759 \end_layout
18760
18761 \end_inset
18762
18763 ,
18764  indentation can never be toggled.
18765 \end_layout
18766
18767 \begin_layout Description
18768 \begin_inset Flex Code
18769 status collapsed
18770
18771 \begin_layout Plain Layout
18772 TopSep
18773 \end_layout
18774
18775 \end_inset
18776
18777  [
18778 \begin_inset Flex Code
18779 status collapsed
18780
18781 \begin_layout Plain Layout
18782 float=0
18783 \end_layout
18784
18785 \end_inset
18786
18787 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
18788  If the previous paragraph has another style,
18789  the separations are not simply added,
18790  but the maximum is taken.
18791 \end_layout
18792
18793 \begin_layout Subsection
18794 \begin_inset CommandInset label
18795 LatexCommand label
18796 name "subsec:I18n"
18797
18798 \end_inset
18799
18800 Internationalization of Paragraph Styles
18801 \end_layout
18802
18803 \begin_layout Standard
18804 \SpecialChar LyX
18805  has long supported internationalization of layout information,
18806  but,
18807  until version 2.0,
18808  this applied only to the user interface and not to,
18809  say,
18810  PDF output.
18811  Thus,
18812  French authors were forced to resort to ugly hacks if they wanted `
18813 \lang french
18814 Théorème
18815 \lang english
18816  1' instead of `Theorem 1'.
18817  Thanks to Georg Baum,
18818  that is no longer the case.
18819 \end_layout
18820
18821 \begin_layout Standard
18822 If a 
18823 \begin_inset Flex Code
18824 status collapsed
18825
18826 \begin_layout Plain Layout
18827 Style
18828 \end_layout
18829
18830 \end_inset
18831
18832  defines text that is to appear in the typeset document,
18833  it may use 
18834 \begin_inset Flex Code
18835 status collapsed
18836
18837 \begin_layout Plain Layout
18838 LangPreamble
18839 \end_layout
18840
18841 \end_inset
18842
18843  and 
18844 \begin_inset Flex Code
18845 status collapsed
18846
18847 \begin_layout Plain Layout
18848 BabelPreamble
18849 \end_layout
18850
18851 \end_inset
18852
18853  to support non-English and even multi-language documents correctly.
18854  The following excerpt (from the 
18855 \begin_inset Flex Code
18856 status collapsed
18857
18858 \begin_layout Plain Layout
18859 theorems-ams.inc
18860 \end_layout
18861
18862 \end_inset
18863
18864  file) shows how this works:
18865 \end_layout
18866
18867 \begin_layout LyX-Code
18868 Preamble
18869 \end_layout
18870
18871 \begin_deeper
18872 \begin_layout LyX-Code
18873   
18874 \backslash
18875 theoremstyle{remark}
18876 \end_layout
18877
18878 \begin_layout LyX-Code
18879   
18880 \backslash
18881 newtheorem{claim}[thm]{
18882 \backslash
18883 protect
18884 \backslash
18885 claimname}
18886 \end_layout
18887
18888 \begin_layout LyX-Code
18889 EndPreamble
18890 \end_layout
18891
18892 \begin_layout LyX-Code
18893 LangPreamble
18894 \end_layout
18895
18896 \begin_layout LyX-Code
18897   
18898 \backslash
18899 providecommand{
18900 \backslash
18901 claimname}{_(Claim)}
18902 \end_layout
18903
18904 \begin_layout LyX-Code
18905 EndLangPreamble
18906 \end_layout
18907
18908 \begin_layout LyX-Code
18909 BabelPreamble
18910 \end_layout
18911
18912 \begin_layout LyX-Code
18913     
18914 \backslash
18915 addto
18916 \backslash
18917 captions$$lang{
18918 \backslash
18919 renewcommand{
18920 \backslash
18921 claimname}{_(Claim)}}
18922 \end_layout
18923
18924 \begin_layout LyX-Code
18925 EndBabelPreamble
18926 \end_layout
18927
18928 \end_deeper
18929 \begin_layout Standard
18930 In principle,
18931  any legal \SpecialChar LaTeX
18932  may appear in the 
18933 \begin_inset Flex Code
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937 LangPreamble
18938 \end_layout
18939
18940 \end_inset
18941
18942  and 
18943 \begin_inset Flex Code
18944 status collapsed
18945
18946 \begin_layout Plain Layout
18947 BabelPreamble
18948 \end_layout
18949
18950 \end_inset
18951
18952  tags,
18953  but in practice they will typically look as they do here.
18954  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
18955  command 
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960
18961 \backslash
18962 claimname
18963 \end_layout
18964
18965 \end_inset
18966
18967  and its use in 
18968 \begin_inset Flex Code
18969 status collapsed
18970
18971 \begin_layout Plain Layout
18972
18973 \backslash
18974 newtheorem
18975 \end_layout
18976
18977 \end_inset
18978
18979 .
18980  
18981 \end_layout
18982
18983 \begin_layout Standard
18984 The 
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 LangPreamble
18990 \end_layout
18991
18992 \end_inset
18993
18994  tag provides for internationalization based upon the overall language of the document.
18995  The contents of the tag will be included in the preamble,
18996  just as with the 
18997 \begin_inset Flex Code
18998 status collapsed
18999
19000 \begin_layout Plain Layout
19001 Preamble
19002 \end_layout
19003
19004 \end_inset
19005
19006  tag.
19007  What makes it special is the use of the 
19008 \begin_inset Quotes eld
19009 \end_inset
19010
19011 function
19012 \begin_inset Quotes erd
19013 \end_inset
19014
19015  
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 _()
19021 \end_layout
19022
19023 \end_inset
19024
19025 ,
19026  which will be replaced,
19027  when \SpecialChar LyX
19028  produces \SpecialChar LaTeX
19029  output,
19030  with the translation of its argument into the document language.
19031 \end_layout
19032
19033 \begin_layout Standard
19034 The 
19035 \begin_inset Flex Code
19036 status collapsed
19037
19038 \begin_layout Plain Layout
19039 BabelPreamble
19040 \end_layout
19041
19042 \end_inset
19043
19044  tag is more complex,
19045  since it is meant to provide support for multi-language documents and so offers an interface to the 
19046 \begin_inset Flex Code
19047 status collapsed
19048
19049 \begin_layout Plain Layout
19050 babel
19051 \end_layout
19052
19053 \end_inset
19054
19055  package.
19056  Its contents will be added to the preamble once for each language that appears in the document.
19057  In this case,
19058  the argument to 
19059 \begin_inset Flex Code
19060 status collapsed
19061
19062 \begin_layout Plain Layout
19063 _()
19064 \end_layout
19065
19066 \end_inset
19067
19068  will be replaced with its translation into the language in question;
19069  the expression 
19070 \begin_inset Flex Code
19071 status collapsed
19072
19073 \begin_layout Plain Layout
19074 $$lang
19075 \end_layout
19076
19077 \end_inset
19078
19079  is replaced by the language name (as used by the babel package).
19080 \end_layout
19081
19082 \begin_layout Standard
19083 A German document that also included a French section would thus have the following in the preamble:
19084 \end_layout
19085
19086 \begin_layout LyX-Code
19087
19088 \backslash
19089 addto
19090 \backslash
19091 captionsfrench{
19092 \backslash
19093 renewcommand{
19094 \backslash
19095 claimname}{Affirmation}}
19096 \begin_inset Newline newline
19097 \end_inset
19098
19099
19100 \backslash
19101 addto
19102 \backslash
19103 captionsngerman{
19104 \backslash
19105 renewcommand{
19106 \backslash
19107 claimname}{Behauptung}}
19108 \begin_inset Newline newline
19109 \end_inset
19110
19111
19112 \backslash
19113 providecommand{
19114 \backslash
19115 claimname}{Behauptung}
19116 \end_layout
19117
19118 \begin_layout Standard
19119 \SpecialChar LaTeX
19120  and 
19121 \begin_inset Flex Code
19122 status collapsed
19123
19124 \begin_layout Plain Layout
19125 babel
19126 \end_layout
19127
19128 \end_inset
19129
19130  will then conspire to produce the correct text in the output.
19131 \end_layout
19132
19133 \begin_layout Standard
19134 One important point to note here is that the translations are provided by \SpecialChar LyX
19135  itself,
19136  through the file 
19137 \begin_inset Flex Code
19138 status collapsed
19139
19140 \begin_layout Plain Layout
19141 layouttranslations
19142 \end_layout
19143
19144 \end_inset
19145
19146 .
19147  This means,
19148  in effect,
19149  that 
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 LangPreamble
19155 \end_layout
19156
19157 \end_inset
19158
19159  and 
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 BabelPreamble
19165 \end_layout
19166
19167 \end_inset
19168
19169  are really only of use in layout files that are provided with \SpecialChar LyX
19170 ,
19171  since text entered in user-created layout files will not be seen by \SpecialChar LyX
19172 's internationalization routines unless the 
19173 \begin_inset Flex Code
19174 status collapsed
19175
19176 \begin_layout Plain Layout
19177 layouttranslations
19178 \end_layout
19179
19180 \end_inset
19181
19182  file is modified accordingly.
19183  That said,
19184  however,
19185  any layout created with the intention that it will be included with \SpecialChar LyX
19186  should use these tags where appropriate.
19187  Please note that the paragraph style translations provided by \SpecialChar LyX
19188  will never change with a minor update (e.
19189 \begin_inset space \thinspace{}
19190 \end_inset
19191
19192 g.
19193 \begin_inset space \space{}
19194 \end_inset
19195
19196 from version 2.1.x to 2.1.y).
19197  It is however quite likely that a major update (e.
19198 \begin_inset space \thinspace{}
19199 \end_inset
19200
19201 g.
19202 \begin_inset space \space{}
19203 \end_inset
19204
19205 from 2.0.x to 2.1.0) will introduce new translations or corrections.
19206 \end_layout
19207
19208 \begin_layout Subsection
19209 Floats
19210 \begin_inset CommandInset label
19211 LatexCommand label
19212 name "subsec:Floats"
19213
19214 \end_inset
19215
19216
19217 \end_layout
19218
19219 \begin_layout Standard
19220 It is necessary to define the floats (
19221 \begin_inset Flex Noun
19222 status collapsed
19223
19224 \begin_layout Plain Layout
19225 figure
19226 \end_layout
19227
19228 \end_inset
19229
19230 ,
19231  
19232 \begin_inset Flex Noun
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 table
19237 \end_layout
19238
19239 \end_inset
19240
19241 ,
19242  \SpecialChar ldots
19243 ) in the text class itself.
19244  Standard floats are included in the file 
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 stdfloats.inc
19250 \end_layout
19251
19252 \end_inset
19253
19254 ,
19255  so you may have to do no more than add
19256 \end_layout
19257
19258 \begin_layout LyX-Code
19259 Input stdfloats.inc
19260 \end_layout
19261
19262 \begin_layout Standard
19263 to your layout file.
19264  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
19265 ),
19266  the information below will hopefully help you:
19267 \end_layout
19268
19269 \begin_layout Description
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 AllowedPlacement
19275 \end_layout
19276
19277 \end_inset
19278
19279  [
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284 string
19285 \end_layout
19286
19287 \end_inset
19288
19289 =!htbpH] Allowed placement options for this float type.
19290  The value is a string of placement characters.
19291  Possible characters include:
19292  
19293 \emph on
19294 h
19295 \emph default
19296  (
19297 \begin_inset Quotes eld
19298 \end_inset
19299
19300 here if possible
19301 \begin_inset Quotes erd
19302 \end_inset
19303
19304 ),
19305  
19306 \emph on
19307 t
19308 \emph default
19309  (
19310 \begin_inset Quotes eld
19311 \end_inset
19312
19313 top of page
19314 \begin_inset Quotes erd
19315 \end_inset
19316
19317 ),
19318  
19319 \emph on
19320 b
19321 \emph default
19322  (
19323 \begin_inset Quotes eld
19324 \end_inset
19325
19326 bottom of page
19327 \begin_inset Quotes erd
19328 \end_inset
19329
19330 ),
19331  
19332 \emph on
19333 p
19334 \emph default
19335  (
19336 \begin_inset Quotes eld
19337 \end_inset
19338
19339 page of floats
19340 \begin_inset Quotes erd
19341 \end_inset
19342
19343 ),
19344  
19345 \emph on
19346 H
19347 \emph default
19348  (
19349 \begin_inset Quotes eld
19350 \end_inset
19351
19352 here definitely
19353 \begin_inset Quotes erd
19354 \end_inset
19355
19356 ) and 
19357 \emph on
19358 !
19359
19360 \emph default
19361  (
19362 \begin_inset Quotes eld
19363 \end_inset
19364
19365 ignore LaTeX rules
19366 \begin_inset Quotes erd
19367 \end_inset
19368
19369 ).
19370  The order of the characters in the string does not matter.
19371  If no placement options are allowed,
19372  use the string 
19373 \emph on
19374 none
19375 \emph default
19376 .
19377 \end_layout
19378
19379 \begin_layout Description
19380 \begin_inset Flex Code
19381 status collapsed
19382
19383 \begin_layout Plain Layout
19384 AllowsSideways
19385 \end_layout
19386
19387 \end_inset
19388
19389  [
19390 \begin_inset Flex Code
19391 status collapsed
19392
19393 \begin_layout Plain Layout
19394
19395 \emph off
19396 0
19397 \end_layout
19398
19399 \end_inset
19400
19401 ,
19402 \begin_inset space \thinspace{}
19403 \end_inset
19404
19405
19406 \emph on
19407
19408 \begin_inset Flex Code
19409 status collapsed
19410
19411 \begin_layout Plain Layout
19412
19413 \emph on
19414 1
19415 \end_layout
19416
19417 \end_inset
19418
19419
19420 \emph default
19421 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
19422 -package 
19423 \family typewriter
19424 rotfloat
19425 \family default
19426  (sidewaysfloat).
19427  Set to 
19428 \begin_inset Flex Code
19429 status collapsed
19430
19431 \begin_layout Plain Layout
19432 0
19433 \end_layout
19434
19435 \end_inset
19436
19437  if the float does not support this feature.
19438 \end_layout
19439
19440 \begin_layout Description
19441 \begin_inset Flex Code
19442 status collapsed
19443
19444 \begin_layout Plain Layout
19445 AllowsWide
19446 \end_layout
19447
19448 \end_inset
19449
19450  [
19451 \begin_inset Flex Code
19452 status collapsed
19453
19454 \begin_layout Plain Layout
19455
19456 \emph off
19457 0
19458 \end_layout
19459
19460 \end_inset
19461
19462 ,
19463 \begin_inset space \thinspace{}
19464 \end_inset
19465
19466
19467 \emph on
19468
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473
19474 \emph on
19475 1
19476 \end_layout
19477
19478 \end_inset
19479
19480
19481 \emph default
19482 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
19483  Set to 
19484 \begin_inset Flex Code
19485 status collapsed
19486
19487 \begin_layout Plain Layout
19488 0
19489 \end_layout
19490
19491 \end_inset
19492
19493  if the float does not support this feature.
19494 \end_layout
19495
19496 \begin_layout Description
19497 \begin_inset Flex Code
19498 status collapsed
19499
19500 \begin_layout Plain Layout
19501 Extension
19502 \end_layout
19503
19504 \end_inset
19505
19506  [
19507 \begin_inset Flex Code
19508 status collapsed
19509
19510 \begin_layout Plain Layout
19511 string
19512 \end_layout
19513
19514 \end_inset
19515
19516 =
19517 \begin_inset Quotes erd
19518 \end_inset
19519
19520
19521 \begin_inset Quotes erd
19522 \end_inset
19523
19524 ] The file name extension of an auxiliary file for the list of figures (or whatever).
19525  \SpecialChar LaTeX
19526  writes the captions to this file.
19527 \end_layout
19528
19529 \begin_layout Description
19530 \begin_inset Flex Code
19531 status collapsed
19532
19533 \begin_layout Plain Layout
19534 GuiName
19535 \end_layout
19536
19537 \end_inset
19538
19539  [
19540 \begin_inset Flex Code
19541 status collapsed
19542
19543 \begin_layout Plain Layout
19544 string
19545 \end_layout
19546
19547 \end_inset
19548
19549 =
19550 \begin_inset Quotes erd
19551 \end_inset
19552
19553
19554 \begin_inset Quotes erd
19555 \end_inset
19556
19557 ] The string that will be used in the menus and also for the caption.
19558  This is translated to the current language if babel is used.
19559 \end_layout
19560
19561 \begin_layout Description
19562 \begin_inset Flex Code
19563 status collapsed
19564
19565 \begin_layout Plain Layout
19566 HTML*
19567 \end_layout
19568
19569 \end_inset
19570
19571  These tags control the XHTML output.
19572  See 
19573 \begin_inset CommandInset ref
19574 LatexCommand ref
19575 reference "sec:Tags-for-XHTML"
19576 nolink "false"
19577
19578 \end_inset
19579
19580 .
19581 \end_layout
19582
19583 \begin_layout Description
19584 \begin_inset Flex Code
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588 IsPredefined
19589 \end_layout
19590
19591 \end_inset
19592
19593  [
19594 \emph on
19595
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600 0
19601 \end_layout
19602
19603 \end_inset
19604
19605
19606 \emph default
19607 ,
19608 \begin_inset space \thinspace{}
19609 \end_inset
19610
19611
19612 \begin_inset Flex Code
19613 status collapsed
19614
19615 \begin_layout Plain Layout
19616 1
19617 \end_layout
19618
19619 \end_inset
19620
19621 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
19622  package 
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 float
19628 \end_layout
19629
19630 \end_inset
19631
19632  needs to be loaded to define it on-the-fly.
19633  The default is 
19634 \begin_inset Flex Code
19635 status collapsed
19636
19637 \begin_layout Plain Layout
19638 0
19639 \end_layout
19640
19641 \end_inset
19642
19643 ,
19644  which means:
19645  
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650 float
19651 \end_layout
19652
19653 \end_inset
19654
19655  is used.
19656  It should be set to 
19657 \begin_inset Flex Code
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661 1
19662 \end_layout
19663
19664 \end_inset
19665
19666  if the float is already defined by the \SpecialChar LaTeX
19667  document class.
19668 \end_layout
19669
19670 \begin_layout Description
19671 \begin_inset Flex Code
19672 status collapsed
19673
19674 \begin_layout Plain Layout
19675 ListCommand
19676 \end_layout
19677
19678 \end_inset
19679
19680  [
19681 \begin_inset Flex Code
19682 status collapsed
19683
19684 \begin_layout Plain Layout
19685 string
19686 \end_layout
19687
19688 \end_inset
19689
19690 =
19691 \begin_inset Quotes erd
19692 \end_inset
19693
19694
19695 \begin_inset Quotes erd
19696 \end_inset
19697
19698 ] The command used to generate a list of floats of this type;
19699  the leading `
19700 \backslash
19701 ' must be omitted.
19702  This 
19703 \emph on
19704 must
19705 \emph default
19706  be given if 
19707 \begin_inset Flex Code
19708 status collapsed
19709
19710 \begin_layout Plain Layout
19711 UsesFloatPkg
19712 \end_layout
19713
19714 \end_inset
19715
19716  is false,
19717  since there is no standard way to generate this command.
19718  It is ignored if 
19719 \begin_inset Flex Code
19720 status collapsed
19721
19722 \begin_layout Plain Layout
19723 UsesFloatPkg
19724 \end_layout
19725
19726 \end_inset
19727
19728  is true,
19729  since in that case there is a standard way to define the command.
19730 \end_layout
19731
19732 \begin_layout Description
19733 \begin_inset Flex Code
19734 status collapsed
19735
19736 \begin_layout Plain Layout
19737 ListName
19738 \end_layout
19739
19740 \end_inset
19741
19742  [
19743 \begin_inset Flex Code
19744 status collapsed
19745
19746 \begin_layout Plain Layout
19747 string
19748 \end_layout
19749
19750 \end_inset
19751
19752 =
19753 \begin_inset Quotes erd
19754 \end_inset
19755
19756
19757 \begin_inset Quotes erd
19758 \end_inset
19759
19760 ] A title for a list of floats of this kind (list of figures,
19761  tables,
19762  or whatever).
19763  It is used for the screen label within \SpecialChar LyX
19764 ,
19765  it is used by \SpecialChar LaTeX
19766  for the title and it is used as the title in the XHTML output.
19767  It will be translated to the document language.
19768 \end_layout
19769
19770 \begin_layout Description
19771 \begin_inset Flex Code
19772 status collapsed
19773
19774 \begin_layout Plain Layout
19775 NumberWithin
19776 \end_layout
19777
19778 \end_inset
19779
19780  [
19781 \begin_inset Flex Code
19782 status collapsed
19783
19784 \begin_layout Plain Layout
19785 string
19786 \end_layout
19787
19788 \end_inset
19789
19790 =
19791 \begin_inset Quotes erd
19792 \end_inset
19793
19794
19795 \begin_inset Quotes erd
19796 \end_inset
19797
19798 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
19799  For example,
19800  if 
19801 \begin_inset Flex Code
19802 status collapsed
19803
19804 \begin_layout Plain Layout
19805 NumberWithin
19806 \end_layout
19807
19808 \end_inset
19809
19810  is set to 
19811 \begin_inset Quotes eld
19812 \end_inset
19813
19814
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 chapter
19820 \end_layout
19821
19822 \end_inset
19823
19824
19825 \begin_inset Quotes erd
19826 \end_inset
19827
19828 ,
19829  the floats will be numbered within chapters.
19830  
19831 \end_layout
19832
19833 \begin_layout Description
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 Placement
19839 \end_layout
19840
19841 \end_inset
19842
19843  [
19844 \begin_inset Flex Code
19845 status collapsed
19846
19847 \begin_layout Plain Layout
19848 string
19849 \end_layout
19850
19851 \end_inset
19852
19853 =
19854 \begin_inset Quotes erd
19855 \end_inset
19856
19857
19858 \begin_inset Quotes erd
19859 \end_inset
19860
19861 ] The default placement for the given class of floats.
19862  The string should be as in standard \SpecialChar LaTeX
19863 :
19864  
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869 t
19870 \end_layout
19871
19872 \end_inset
19873
19874 ,
19875  
19876 \begin_inset Flex Code
19877 status collapsed
19878
19879 \begin_layout Plain Layout
19880 b
19881 \end_layout
19882
19883 \end_inset
19884
19885 ,
19886  
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 p
19892 \end_layout
19893
19894 \end_inset
19895
19896  and 
19897 \begin_inset Flex Code
19898 status collapsed
19899
19900 \begin_layout Plain Layout
19901 h
19902 \end_layout
19903
19904 \end_inset
19905
19906  for top,
19907  bottom,
19908  page,
19909  and here,
19910  respectively.
19911 \begin_inset Foot
19912 status collapsed
19913
19914 \begin_layout Plain Layout
19915 Note that the order of these letters in the string is irrelevant,
19916  like in \SpecialChar LaTeX
19917 .
19918 \end_layout
19919
19920 \end_inset
19921
19922  On top of that there is a new type,
19923  
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 H
19929 \end_layout
19930
19931 \end_inset
19932
19933 ,
19934  which does not really correspond to a float,
19935  since it means:
19936  put it 
19937 \begin_inset Quotes eld
19938 \end_inset
19939
19940 here
19941 \begin_inset Quotes erd
19942 \end_inset
19943
19944  and nowhere else.
19945  Note however that the 
19946 \begin_inset Flex Code
19947 status collapsed
19948
19949 \begin_layout Plain Layout
19950 H
19951 \end_layout
19952
19953 \end_inset
19954
19955  specifier is special and,
19956  because of implementation details,
19957  cannot be used in non-built in float types.
19958  If you do not understand what this means,
19959  just use 
19960 \begin_inset Quotes eld
19961 \end_inset
19962
19963
19964 \begin_inset Flex Code
19965 status collapsed
19966
19967 \begin_layout Plain Layout
19968 tbp
19969 \end_layout
19970
19971 \end_inset
19972
19973
19974 \begin_inset Quotes erd
19975 \end_inset
19976
19977 .
19978 \change_inserted -584632292 1690588297
19979
19980 \end_layout
19981
19982 \begin_layout Description
19983
19984 \change_inserted -584632292 1690593080
19985 \begin_inset Flex Code
19986 status collapsed
19987
19988 \begin_layout Plain Layout
19989
19990 \change_inserted -584632292 1690588298
19991 PrettyFormat
19992 \change_unchanged
19993
19994 \end_layout
19995
19996 \end_inset
19997
19998  [
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003
20004 \change_inserted -584632292 1690588298
20005 string
20006 \change_unchanged
20007
20008 \end_layout
20009
20010 \end_inset
20011
20012 =
20013 \begin_inset Quotes erd
20014 \end_inset
20015
20016
20017 \begin_inset Quotes erd
20018 \end_inset
20019
20020 ] A format for use with formatted references to this counter.
20021  For example,
20022  one might want to have references to tables appear as 
20023 \begin_inset Quotes eld
20024 \end_inset
20025
20026 Table 2
20027 \begin_inset Quotes erd
20028 \end_inset
20029
20030 .
20031  The string may contain 
20032 \begin_inset Quotes eld
20033 \end_inset
20034
20035 ##
20036 \begin_inset Quotes erd
20037 \end_inset
20038
20039  or a counter specification.
20040  (See the documentation for 
20041 \begin_inset Flex Code
20042 status open
20043
20044 \begin_layout Plain Layout
20045
20046 \change_inserted -584632292 1690588298
20047 LabelString
20048 \change_unchanged
20049
20050 \end_layout
20051
20052 \end_inset
20053
20054  in 
20055 \begin_inset CommandInset ref
20056 LatexCommand formatted
20057 reference "subsec:Counters"
20058 plural "false"
20059 caps "false"
20060 noprefix "false"
20061 nolink "false"
20062
20063 \end_inset
20064
20065 .) The former will be replaced by the counter number itself.
20066  So,
20067  for sections,
20068  it would be:
20069  Section ##,
20070  or perhaps:
20071  section 
20072 \backslash
20073 arabic{section} (which might render as:
20074  section 2.7).
20075 \end_layout
20076
20077 \begin_layout Description
20078 \begin_inset Flex Code
20079 status collapsed
20080
20081 \begin_layout Plain Layout
20082 RefPrefix
20083 \end_layout
20084
20085 \end_inset
20086
20087  [
20088 \begin_inset Flex Code
20089 status collapsed
20090
20091 \begin_layout Plain Layout
20092 string
20093 \end_layout
20094
20095 \end_inset
20096
20097 ] The prefix to use when creating labels referring to floats of this type.
20098  This allows the use of formatted references.
20099  Note that you can remove any 
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104 RefPrefix
20105 \end_layout
20106
20107 \end_inset
20108
20109  set by a copied style by using the special value 
20110 \begin_inset Quotes eld
20111 \end_inset
20112
20113 OFF
20114 \begin_inset Quotes erd
20115 \end_inset
20116
20117 ,
20118  which must be all caps.
20119 \change_inserted -712698321 1565605014
20120
20121 \end_layout
20122
20123 \begin_layout Description
20124
20125 \change_inserted -712698321 1565605014
20126 \begin_inset Flex Code
20127 status collapsed
20128
20129 \begin_layout Plain Layout
20130
20131 \change_inserted -712698321 1565605014
20132 Requires
20133 \change_unchanged
20134
20135 \end_layout
20136
20137 \end_inset
20138
20139  [
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144
20145 \change_inserted -712698321 1565605014
20146 string
20147 \change_unchanged
20148
20149 \end_layout
20150
20151 \end_inset
20152
20153 ] As with paragraph styles,
20154  see 
20155 \begin_inset CommandInset ref
20156 LatexCommand ref
20157 reference "subsec:Paragraph-Styles"
20158 nolink "false"
20159
20160 \end_inset
20161
20162 .
20163 \change_unchanged
20164
20165 \end_layout
20166
20167 \begin_layout Description
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 Style
20173 \end_layout
20174
20175 \end_inset
20176
20177  [
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 string
20183 \end_layout
20184
20185 \end_inset
20186
20187 =
20188 \begin_inset Quotes erd
20189 \end_inset
20190
20191
20192 \begin_inset Quotes erd
20193 \end_inset
20194
20195 ] The style used when defining the float using 
20196 \begin_inset Flex Code
20197 status collapsed
20198
20199 \begin_layout Plain Layout
20200
20201 \backslash
20202 newfloat
20203 \end_layout
20204
20205 \end_inset
20206
20207 .
20208 \end_layout
20209
20210 \begin_layout Description
20211 \begin_inset Flex Code
20212 status collapsed
20213
20214 \begin_layout Plain Layout
20215 Type
20216 \end_layout
20217
20218 \end_inset
20219
20220  [
20221 \begin_inset Flex Code
20222 status collapsed
20223
20224 \begin_layout Plain Layout
20225 string
20226 \end_layout
20227
20228 \end_inset
20229
20230 =
20231 \begin_inset Quotes erd
20232 \end_inset
20233
20234
20235 \begin_inset Quotes erd
20236 \end_inset
20237
20238 ] The 
20239 \begin_inset Quotes eld
20240 \end_inset
20241
20242 type
20243 \begin_inset Quotes erd
20244 \end_inset
20245
20246  of the new class of floats,
20247  like program or algorithm.
20248  After the appropriate 
20249 \begin_inset Flex Code
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253
20254 \backslash
20255 newfloat
20256 \end_layout
20257
20258 \end_inset
20259
20260 ,
20261  commands such as 
20262 \begin_inset Flex Code
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266
20267 \backslash
20268 begin{program}
20269 \end_layout
20270
20271 \end_inset
20272
20273  or 
20274 \begin_inset Flex Code
20275 status collapsed
20276
20277 \begin_layout Plain Layout
20278
20279 \backslash
20280 end{algorithm*}
20281 \end_layout
20282
20283 \end_inset
20284
20285  will be available.
20286 \end_layout
20287
20288 \begin_layout Description
20289 \begin_inset Flex Code
20290 status collapsed
20291
20292 \begin_layout Plain Layout
20293 UsesFloatPkg
20294 \end_layout
20295
20296 \end_inset
20297
20298  [
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303 0
20304 \end_layout
20305
20306 \end_inset
20307
20308 ,
20309 \begin_inset space \thinspace{}
20310 \end_inset
20311
20312
20313 \begin_inset Flex Code
20314 status collapsed
20315
20316 \begin_layout Plain Layout
20317
20318 \emph on
20319 1
20320 \end_layout
20321
20322 \end_inset
20323
20324 ] Specifies whether this float is defined using the \SpecialChar LaTeX
20325  package 
20326 \begin_inset Flex Code
20327 status collapsed
20328
20329 \begin_layout Plain Layout
20330 float
20331 \end_layout
20332
20333 \end_inset
20334
20335 ,
20336  either by the class file,
20337  another package or on-the-fly by \SpecialChar LyX
20338  itself.
20339 \end_layout
20340
20341 \begin_layout Standard
20342 Note that defining a float with type 
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347
20348 \emph on
20349 type
20350 \end_layout
20351
20352 \end_inset
20353
20354  automatically defines the corresponding counter with name 
20355 \begin_inset Flex Code
20356 status collapsed
20357
20358 \begin_layout Plain Layout
20359
20360 \emph on
20361 type
20362 \end_layout
20363
20364 \end_inset
20365
20366 .
20367 \end_layout
20368
20369 \begin_layout Subsection
20370 Flex insets and InsetLayout
20371 \begin_inset CommandInset label
20372 LatexCommand label
20373 name "subsec:Flex-insets-and"
20374
20375 \end_inset
20376
20377
20378 \end_layout
20379
20380 \begin_layout Standard
20381 Flex insets come in 
20382 \change_deleted 5863208 1594239511
20383 three
20384 \change_inserted 5863208 1594239512
20385 two
20386 \change_unchanged
20387  different kinds:
20388  
20389 \end_layout
20390
20391 \begin_layout Itemize
20392 character style (
20393 \begin_inset Flex Code
20394 status collapsed
20395
20396 \begin_layout Plain Layout
20397 CharStyle
20398 \end_layout
20399
20400 \end_inset
20401
20402 ):
20403  These define semantic markup corresponding to such \SpecialChar LaTeX
20404  commands as 
20405 \begin_inset Flex Code
20406 status collapsed
20407
20408 \begin_layout Plain Layout
20409
20410 \backslash
20411 noun
20412 \end_layout
20413
20414 \end_inset
20415
20416  and 
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421
20422 \backslash
20423 code
20424 \end_layout
20425
20426 \end_inset
20427
20428 .
20429 \end_layout
20430
20431 \begin_layout Itemize
20432 user custom (
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 Custom
20438 \end_layout
20439
20440 \end_inset
20441
20442 ):
20443  These can be used to define custom collapsible insets,
20444  similar to \SpecialChar TeX
20445  code,
20446  footnote,
20447  and the like.
20448  An obvious example is an endnote inset,
20449  which is defined in the 
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 endnote
20455 \end_layout
20456
20457 \end_inset
20458
20459  module.
20460 \end_layout
20461
20462 \begin_layout Itemize
20463
20464 \change_deleted 5863208 1594239528
20465 XML elements (
20466 \begin_inset Flex Code
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470 Element
20471 \end_layout
20472
20473 \end_inset
20474
20475 ):
20476  For use with DocBook classes.
20477 \change_unchanged
20478
20479 \end_layout
20480
20481 \begin_layout Standard
20482 Flex insets are defined using the 
20483 \begin_inset Flex Code
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487 InsetLayout
20488 \end_layout
20489
20490 \end_inset
20491
20492  tag,
20493  which shall be explained in a moment.
20494 \end_layout
20495
20496 \begin_layout Standard
20497 The 
20498 \begin_inset Flex Code
20499 status collapsed
20500
20501 \begin_layout Plain Layout
20502 InsetLayout
20503 \end_layout
20504
20505 \end_inset
20506
20507  tag also serves another function:
20508  It can be used to customize the general layout of many different types of insets.
20509  Currently,
20510  
20511 \begin_inset Flex Code
20512 status collapsed
20513
20514 \begin_layout Plain Layout
20515 InsetLayout
20516 \end_layout
20517
20518 \end_inset
20519
20520  can be used to customize the layout parameters for footnotes,
20521  marginal notes,
20522  note insets,
20523  \SpecialChar TeX
20524  code (ERT) insets,
20525  branches,
20526  listings,
20527  indexes,
20528  boxes,
20529  tables,
20530  algorithms,
20531  URLs,
20532  and captions,
20533  as well as to define Flex insets.
20534 \end_layout
20535
20536 \begin_layout Standard
20537 The 
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 InsetLayout
20543 \end_layout
20544
20545 \end_inset
20546
20547  definition must begin with a line of the form:
20548 \end_layout
20549
20550 \begin_layout LyX-Code
20551 InsetLayout <type>
20552 \end_layout
20553
20554 \begin_layout Standard
20555 Here 
20556 \begin_inset Flex Code
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560 <Type>
20561 \end_layout
20562
20563 \end_inset
20564
20565  indicates the inset whose layout is being defined,
20566  and here there are four cases.
20567 \end_layout
20568
20569 \begin_layout Enumerate
20570 The layout for a pre-existing inset is being modified.
20571  In this case,
20572  can be 
20573 \begin_inset Flex Code
20574 status collapsed
20575
20576 \begin_layout Plain Layout
20577 <Type>
20578 \end_layout
20579
20580 \end_inset
20581
20582  any one of the following:
20583  
20584 \begin_inset Flex Code
20585 status collapsed
20586
20587 \begin_layout Plain Layout
20588 Algorithm
20589 \end_layout
20590
20591 \end_inset
20592
20593 ,
20594  
20595 \begin_inset Flex Code
20596 status collapsed
20597
20598 \begin_layout Plain Layout
20599 Branch
20600 \end_layout
20601
20602 \end_inset
20603
20604 ,
20605  
20606 \begin_inset Flex Code
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610 Box
20611 \end_layout
20612
20613 \end_inset
20614
20615 ,
20616  
20617 \begin_inset Flex Code
20618 status collapsed
20619
20620 \begin_layout Plain Layout
20621 Box:shaded
20622 \end_layout
20623
20624 \end_inset
20625
20626 ,
20627  
20628 \begin_inset Flex Code
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632 Caption:Standard
20633 \end_layout
20634
20635 \end_inset
20636
20637 ,
20638  
20639 \begin_inset Flex Code
20640 status collapsed
20641
20642 \begin_layout Plain Layout
20643 ERT
20644 \end_layout
20645
20646 \end_inset
20647
20648 ,
20649  
20650 \begin_inset Flex Code
20651 status collapsed
20652
20653 \begin_layout Plain Layout
20654 Figure
20655 \end_layout
20656
20657 \end_inset
20658
20659 ,
20660  
20661 \begin_inset Flex Code
20662 status collapsed
20663
20664 \begin_layout Plain Layout
20665 Foot
20666 \end_layout
20667
20668 \end_inset
20669
20670 ,
20671  
20672 \begin_inset Flex Code
20673 status collapsed
20674
20675 \begin_layout Plain Layout
20676 Index
20677 \end_layout
20678
20679 \end_inset
20680
20681 ,
20682  
20683 \begin_inset Flex Code
20684 status collapsed
20685
20686 \begin_layout Plain Layout
20687 Info
20688 \end_layout
20689
20690 \end_inset
20691
20692 ,
20693  
20694 \begin_inset Flex Code
20695 status collapsed
20696
20697 \begin_layout Plain Layout
20698 Info:menu
20699 \end_layout
20700
20701 \end_inset
20702
20703 ,
20704  
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 Info:shortcut
20710 \end_layout
20711
20712 \end_inset
20713
20714 ,
20715  
20716 \begin_inset Flex Code
20717 status collapsed
20718
20719 \begin_layout Plain Layout
20720 Info:shortcuts
20721 \end_layout
20722
20723 \end_inset
20724
20725 ,
20726  
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 Listings
20732 \end_layout
20733
20734 \end_inset
20735
20736 ,
20737  
20738 \begin_inset Flex Code
20739 status collapsed
20740
20741 \begin_layout Plain Layout
20742 Marginal
20743 \end_layout
20744
20745 \end_inset
20746
20747 ,
20748  
20749 \begin_inset Flex Code
20750 status collapsed
20751
20752 \begin_layout Plain Layout
20753 Note:Comment
20754 \end_layout
20755
20756 \end_inset
20757
20758 ,
20759  
20760 \begin_inset Flex Code
20761 status collapsed
20762
20763 \begin_layout Plain Layout
20764 Note:Note
20765 \end_layout
20766
20767 \end_inset
20768
20769 ,
20770  
20771 \begin_inset Flex Code
20772 status collapsed
20773
20774 \begin_layout Plain Layout
20775 Note:Greyedout
20776 \end_layout
20777
20778 \end_inset
20779
20780 ,
20781  
20782 \begin_inset Flex Code
20783 status collapsed
20784
20785 \begin_layout Plain Layout
20786 Table
20787 \end_layout
20788
20789 \end_inset
20790
20791 ,
20792  or 
20793 \begin_inset Flex Code
20794 status collapsed
20795
20796 \begin_layout Plain Layout
20797 URL
20798 \end_layout
20799
20800 \end_inset
20801
20802 .
20803 \end_layout
20804
20805 \begin_layout Enumerate
20806 The layout for a Flex inset is being defined.
20807  In this case,
20808  
20809 \begin_inset Flex Code
20810 status collapsed
20811
20812 \begin_layout Plain Layout
20813 <Type>
20814 \end_layout
20815
20816 \end_inset
20817
20818  must be of the form 
20819 \begin_inset Quotes eld
20820 \end_inset
20821
20822
20823 \begin_inset Flex Code
20824 status collapsed
20825
20826 \begin_layout Plain Layout
20827 Flex:<name>
20828 \end_layout
20829
20830 \end_inset
20831
20832
20833 \begin_inset Quotes erd
20834 \end_inset
20835
20836 ,
20837  where 
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 name
20843 \end_layout
20844
20845 \end_inset
20846
20847  may be any valid identifier not used by a pre-existing Flex inset.
20848  The identifier may include spaces,
20849  but in that case the whole thing must be wrapped in quotes.
20850  Note that the definition of a flex inset 
20851 \emph on
20852 must 
20853 \emph default
20854 also include a 
20855 \begin_inset Flex Code
20856 status collapsed
20857
20858 \begin_layout Plain Layout
20859 LyXType
20860 \end_layout
20861
20862 \end_inset
20863
20864  entry,
20865  declaring which type of inset it defines.
20866 \end_layout
20867
20868 \begin_layout Enumerate
20869 The layout for user specific branch is being defined.
20870  In this case,
20871  
20872 \begin_inset Flex Code
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 <Type>
20877 \end_layout
20878
20879 \end_inset
20880
20881  must be of the form 
20882 \begin_inset Quotes eld
20883 \end_inset
20884
20885
20886 \begin_inset Flex Code
20887 status collapsed
20888
20889 \begin_layout Plain Layout
20890 Branch:<name>
20891 \end_layout
20892
20893 \end_inset
20894
20895
20896 \begin_inset Quotes erd
20897 \end_inset
20898
20899 ,
20900  where 
20901 \begin_inset Flex Code
20902 status collapsed
20903
20904 \begin_layout Plain Layout
20905 name
20906 \end_layout
20907
20908 \end_inset
20909
20910  may be any valid identifier of branch defined in user's document.
20911  The identifier may include spaces,
20912  but in that case the whole thing must be wrapped in quotes.
20913  The main purpose of this feature is to allow \SpecialChar LaTeX
20914  wrapping around specific branches as user needs.
20915 \end_layout
20916
20917 \begin_layout Enumerate
20918 The layout of a user (or class) specific caption is being defined.
20919  In this case,
20920  
20921 \begin_inset Flex Code
20922 status collapsed
20923
20924 \begin_layout Plain Layout
20925 <Type>
20926 \end_layout
20927
20928 \end_inset
20929
20930  must be of the form 
20931 \begin_inset Quotes eld
20932 \end_inset
20933
20934
20935 \begin_inset Flex Code
20936 status collapsed
20937
20938 \begin_layout Plain Layout
20939 Caption:<name>
20940 \end_layout
20941
20942 \end_inset
20943
20944
20945 \begin_inset Quotes erd
20946 \end_inset
20947
20948 ,
20949  where 
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954 name
20955 \end_layout
20956
20957 \end_inset
20958
20959  specifies the name of the caption as it appears in the menu.
20960  Have a look at the standard caption (
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 Caption:Standard
20966 \end_layout
20967
20968 \end_inset
20969
20970 ),
20971  the specific captions of the KOMA-Script classes (
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976 Caption:Above
20977 \end_layout
20978
20979 \end_inset
20980
20981 ,
20982  
20983 \begin_inset Flex Code
20984 status collapsed
20985
20986 \begin_layout Plain Layout
20987 Caption:Below
20988 \end_layout
20989
20990 \end_inset
20991
20992 ) or the module 
20993 \family sans
20994 Multilingual
20995 \begin_inset space ~
20996 \end_inset
20997
20998 Captions
20999 \begin_inset Newline linebreak
21000 \end_inset
21001
21002
21003 \family default
21004 (
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 Caption:Bicaption
21010 \end_layout
21011
21012 \end_inset
21013
21014 ) for applications.
21015 \end_layout
21016
21017 \begin_layout Standard
21018 The 
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023 InsetLayout
21024 \end_layout
21025
21026 \end_inset
21027
21028  definition can contain the following entries:
21029 \end_layout
21030
21031 \begin_layout Description
21032 \begin_inset Flex Code
21033 status collapsed
21034
21035 \begin_layout Plain Layout
21036 AddToToc
21037 \end_layout
21038
21039 \end_inset
21040
21041  [
21042 \begin_inset Flex Code
21043 status collapsed
21044
21045 \begin_layout Plain Layout
21046 string
21047 \end_layout
21048
21049 \end_inset
21050
21051 =""] This inset will appear in the table of contents of the given type.
21052  An empty string disables.
21053  See also the OutlinerName and the IsTocCaption commands.
21054  This is only implemented for Flex insets.
21055  Default:
21056  disabled.
21057 \change_inserted -712698321 1690284265
21058
21059 \end_layout
21060
21061 \begin_layout Description
21062
21063 \change_inserted -712698321 1690284544
21064 \begin_inset Flex Code
21065 status collapsed
21066
21067 \begin_layout Plain Layout
21068
21069 \change_inserted -712698321 1690284277
21070 AllowedInInsets
21071 \change_unchanged
21072
21073 \end_layout
21074
21075 \end_inset
21076
21077  Includes a comma-separated list of insets to which this inset can be inserted.
21078  Must be ended by 
21079 \begin_inset Quotes eld
21080 \end_inset
21081
21082
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087
21088 \change_inserted -712698321 1690284318
21089 EndAllowedInInsets
21090 \change_unchanged
21091
21092 \end_layout
21093
21094 \end_inset
21095
21096
21097 \begin_inset Quotes erd
21098 \end_inset
21099
21100 .
21101  If you you also want the insertion to be allowed in specific arguments of the target insets,
21102  append the argument name after @ (e.
21103 \begin_inset space \thinspace{}
21104 \end_inset
21105
21106 g.,
21107  
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112
21113 \change_inserted -712698321 1690284445
21114 My_Inset@post:1
21115 \change_unchanged
21116
21117 \end_layout
21118
21119 \end_inset
21120
21121 ).
21122  Note that this currently only supports immediately containing insets (no deeper nesting).
21123  See also 
21124 \begin_inset Flex Code
21125 status collapsed
21126
21127 \begin_layout Plain Layout
21128
21129 \change_inserted -712698321 1690284329
21130 AllowedInLayouts
21131 \change_unchanged
21132
21133 \end_layout
21134
21135 \end_inset
21136
21137 .
21138 \end_layout
21139
21140 \begin_layout Description
21141
21142 \change_inserted -712698321 1690292495
21143 \begin_inset Flex Code
21144 status collapsed
21145
21146 \begin_layout Plain Layout
21147
21148 \change_inserted -712698321 1690284338
21149 AllowedInLayouts
21150 \change_unchanged
21151
21152 \end_layout
21153
21154 \end_inset
21155
21156  Includes a comma-separated list of layouts within which this inset can be inserted.
21157  Must be ended by 
21158 \begin_inset Quotes eld
21159 \end_inset
21160
21161
21162 \begin_inset Flex Code
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166
21167 \change_inserted -712698321 1690284353
21168 EndAllowedInLayouts
21169 \change_unchanged
21170
21171 \end_layout
21172
21173 \end_inset
21174
21175
21176 \begin_inset Quotes erd
21177 \end_inset
21178
21179 .
21180  Note that this currently only supports immediately containing layouts (no deeper nesting).
21181  See also 
21182 \begin_inset Flex Code
21183 status collapsed
21184
21185 \begin_layout Plain Layout
21186
21187 \change_inserted -712698321 1690284358
21188 AllowedInInsets
21189 \change_unchanged
21190
21191 \end_layout
21192
21193 \end_inset
21194
21195 .
21196 \end_layout
21197
21198 \begin_layout Description
21199
21200 \change_inserted -712698321 1690357747
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205
21206 \change_inserted -712698321 1690292501
21207 AllowedOccurrences
21208 \change_unchanged
21209
21210 \end_layout
21211
21212 \end_inset
21213
21214  [
21215 \begin_inset Flex Code
21216 status collapsed
21217
21218 \begin_layout Plain Layout
21219
21220 \change_inserted -712698321 1690292507
21221 int
21222 \change_unchanged
21223
21224 \end_layout
21225
21226 \end_inset
21227
21228 ] If 
21229 \begin_inset Flex Code
21230 status collapsed
21231
21232 \begin_layout Plain Layout
21233
21234 \change_inserted -712698321 1690292530
21235 AllowedInInsets
21236 \change_unchanged
21237
21238 \end_layout
21239
21240 \end_inset
21241
21242  or 
21243 \begin_inset Flex Code
21244 status collapsed
21245
21246 \begin_layout Plain Layout
21247
21248 \change_inserted -712698321 1690292536
21249 AllowedInLayouts
21250 \change_unchanged
21251
21252 \end_layout
21253
21254 \end_inset
21255
21256  has been defined,
21257  this can be used to determine how many times the inset can be inserted to a given inset or the paragraph (group).
21258 \end_layout
21259
21260 \begin_layout Description
21261
21262 \change_inserted -712698321 1690357828
21263 \begin_inset Flex Code
21264 status collapsed
21265
21266 \begin_layout Plain Layout
21267
21268 \change_inserted -712698321 1690357753
21269 AllowedOccurrencesPerItem
21270 \change_unchanged
21271
21272 \end_layout
21273
21274 \end_inset
21275
21276  [
21277 \begin_inset Flex Code
21278 status collapsed
21279
21280 \begin_layout Plain Layout
21281
21282 \change_inserted -712698321 1690357747
21283
21284 \emph on
21285 0
21286 \change_unchanged
21287
21288 \end_layout
21289
21290 \end_inset
21291
21292 ,
21293 \begin_inset space \thinspace{}
21294 \end_inset
21295
21296
21297 \begin_inset Flex Code
21298 status collapsed
21299
21300 \begin_layout Plain Layout
21301
21302 \change_inserted -712698321 1690357747
21303 1
21304 \change_unchanged
21305
21306 \end_layout
21307
21308 \end_inset
21309
21310 ] If this is set to true,
21311  
21312 \begin_inset Flex Code
21313 status collapsed
21314
21315 \begin_layout Plain Layout
21316
21317 \change_inserted -712698321 1690357774
21318 AllowedOccurrences
21319 \change_unchanged
21320
21321 \end_layout
21322
21323 \end_inset
21324
21325  applies to single paragraphs if we are in a list-type environment (with 
21326 \begin_inset Flex Code
21327 status collapsed
21328
21329 \begin_layout Plain Layout
21330
21331 \change_inserted -712698321 1690357825
21332
21333 \backslash
21334 item
21335 \change_unchanged
21336
21337 \end_layout
21338
21339 \end_inset
21340
21341 s).
21342 \change_unchanged
21343
21344 \end_layout
21345
21346 \begin_layout Description
21347 \begin_inset Flex Code
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 Argument
21352 \end_layout
21353
21354 \end_inset
21355
21356  [
21357 \begin_inset Flex Code
21358 status collapsed
21359
21360 \begin_layout Plain Layout
21361 int
21362 \end_layout
21363
21364 \end_inset
21365
21366 ] Defines argument number of a command\SpecialChar breakableslash
21367 environment associated with the current layout.
21368  The definition must end with 
21369 \begin_inset Flex Code
21370 status collapsed
21371
21372 \begin_layout Plain Layout
21373 EndArgument
21374 \end_layout
21375
21376 \end_inset
21377
21378 .
21379  See 
21380 \change_inserted -584632292 1615846847
21381
21382 \begin_inset CommandInset ref
21383 LatexCommand ref
21384 reference "subsec:Arguments"
21385 plural "false"
21386 caps "false"
21387 noprefix "false"
21388 nolink "false"
21389
21390 \end_inset
21391
21392
21393 \change_deleted -584632292 1615846847
21394
21395 \begin_inset CommandInset ref
21396 LatexCommand ref
21397 reference "subsec:Paragraph-Styles"
21398 nolink "false"
21399
21400 \end_inset
21401
21402
21403 \change_unchanged
21404  for 
21405 \change_deleted -584632292 1615846902
21406 details
21407 \change_inserted -584632292 1615846906
21408 more information
21409 \change_unchanged
21410 .
21411 \end_layout
21412
21413 \begin_layout Description
21414 \begin_inset Flex Code
21415 status collapsed
21416
21417 \begin_layout Plain Layout
21418 BabelPreamble
21419 \end_layout
21420
21421 \end_inset
21422
21423  Preamble for changing language commands;
21424  see 
21425 \begin_inset CommandInset ref
21426 LatexCommand ref
21427 reference "subsec:I18n"
21428 nolink "false"
21429
21430 \end_inset
21431
21432 .
21433 \end_layout
21434
21435 \begin_layout Description
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 BgColor
21441 \end_layout
21442
21443 \end_inset
21444
21445  [
21446 \begin_inset Flex Code
21447 status collapsed
21448
21449 \begin_layout Plain Layout
21450 <name>
21451 \end_layout
21452
21453 \end_inset
21454
21455 ] The color for the inset's background.
21456  See 
21457 \begin_inset CommandInset ref
21458 LatexCommand ref
21459 reference "chap:Names-of-colors"
21460 nolink "false"
21461
21462 \end_inset
21463
21464  for a list of the available color names.
21465 \end_layout
21466
21467 \begin_layout Description
21468 \begin_inset Flex Code
21469 status collapsed
21470
21471 \begin_layout Plain Layout
21472 ContentAsLabel
21473 \end_layout
21474
21475 \end_inset
21476
21477  [
21478 \begin_inset Flex Code
21479 status collapsed
21480
21481 \begin_layout Plain Layout
21482
21483 \emph on
21484 0
21485 \end_layout
21486
21487 \end_inset
21488
21489 ,
21490 \begin_inset space \thinspace{}
21491 \end_inset
21492
21493
21494 \begin_inset Flex Code
21495 status collapsed
21496
21497 \begin_layout Plain Layout
21498 1
21499 \end_layout
21500
21501 \end_inset
21502
21503 ] Whether to use the content of the inset as the label,
21504  when the inset is closed.
21505  Default is false.
21506 \end_layout
21507
21508 \begin_layout Description
21509 \begin_inset Flex Code
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 CopyStyle
21514 \end_layout
21515
21516 \end_inset
21517
21518  [
21519 \begin_inset Flex Code
21520 status collapsed
21521
21522 \begin_layout Plain Layout
21523 <type>
21524 \end_layout
21525
21526 \end_inset
21527
21528 ] As with paragraph styles,
21529  see 
21530 \begin_inset CommandInset ref
21531 LatexCommand ref
21532 reference "subsec:Paragraph-Styles"
21533 nolink "false"
21534
21535 \end_inset
21536
21537 .
21538  Note that you need to specify the complete type,
21539  e.
21540 \begin_inset space \thinspace{}
21541 \end_inset
21542
21543 g.
21544 \begin_inset space ~
21545 \end_inset
21546
21547
21548 \begin_inset Flex Code
21549 status collapsed
21550
21551 \begin_layout Plain Layout
21552 CopyStyle Flex:<name>
21553 \end_layout
21554
21555 \end_inset
21556
21557 .
21558 \end_layout
21559
21560 \begin_layout Description
21561 \begin_inset Flex Code
21562 status collapsed
21563
21564 \begin_layout Plain Layout
21565 CustomPars
21566 \end_layout
21567
21568 \end_inset
21569
21570  [
21571 \begin_inset Flex Code
21572 status collapsed
21573
21574 \begin_layout Plain Layout
21575
21576 \emph on
21577 0
21578 \end_layout
21579
21580 \end_inset
21581
21582 ,
21583 \begin_inset space \thinspace{}
21584 \end_inset
21585
21586
21587 \begin_inset Flex Code
21588 status collapsed
21589
21590 \begin_layout Plain Layout
21591 1
21592 \end_layout
21593
21594 \end_inset
21595
21596 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
21597 \end_layout
21598
21599 \begin_layout Description
21600 \begin_inset Flex Code
21601 status collapsed
21602
21603 \begin_layout Plain Layout
21604 Decoration
21605 \end_layout
21606
21607 \end_inset
21608
21609  can be 
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 Classic
21615 \end_layout
21616
21617 \end_inset
21618
21619 ,
21620  
21621 \begin_inset Flex Code
21622 status collapsed
21623
21624 \begin_layout Plain Layout
21625 Minimalistic
21626 \end_layout
21627
21628 \end_inset
21629
21630 ,
21631  or 
21632 \begin_inset Flex Code
21633 status collapsed
21634
21635 \begin_layout Plain Layout
21636 Conglomerate
21637 \end_layout
21638
21639 \end_inset
21640
21641 ,
21642  describing the rendering style used for the inset's frame and buttons.
21643  Footnotes generally use 
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 Classic
21649 \end_layout
21650
21651 \end_inset
21652
21653 ,
21654  ERT insets generally 
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 Minimalistic
21660 \end_layout
21661
21662 \end_inset
21663
21664 ,
21665  and character styles 
21666 \begin_inset Flex Code
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 Conglomerate
21671 \end_layout
21672
21673 \end_inset
21674
21675 .
21676 \end_layout
21677
21678 \begin_layout Description
21679 \begin_inset Flex Code
21680 status collapsed
21681
21682 \begin_layout Plain Layout
21683 Display
21684 \end_layout
21685
21686 \end_inset
21687
21688  [
21689 \begin_inset Flex Code
21690 status collapsed
21691
21692 \begin_layout Plain Layout
21693 0
21694 \end_layout
21695
21696 \end_inset
21697
21698 ,
21699 \emph on
21700
21701 \begin_inset space \thinspace{}
21702 \end_inset
21703
21704
21705 \emph default
21706
21707 \begin_inset Flex Code
21708 status collapsed
21709
21710 \begin_layout Plain Layout
21711
21712 \emph on
21713 1
21714 \end_layout
21715
21716 \end_inset
21717
21718 ] Only useful if 
21719 \begin_inset Flex Code
21720 status collapsed
21721
21722 \begin_layout Plain Layout
21723 LatexType
21724 \end_layout
21725
21726 \end_inset
21727
21728  is 
21729 \begin_inset Flex Code
21730 status collapsed
21731
21732 \begin_layout Plain Layout
21733 Environment
21734 \end_layout
21735
21736 \end_inset
21737
21738 .
21739  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
21740  If set to false,
21741  it is supposed that the \SpecialChar LaTeX
21742  environment ignores white space (including one newline character) after the 
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747
21748 \backslash
21749 begin{
21750 \emph on
21751 LatexName
21752 \emph default
21753 }
21754 \end_layout
21755
21756 \end_inset
21757
21758  and 
21759 \begin_inset Flex Code
21760 status collapsed
21761
21762 \begin_layout Plain Layout
21763
21764 \backslash
21765 end{
21766 \emph on
21767 LatexName
21768 \emph default
21769 }
21770 \end_layout
21771
21772 \end_inset
21773
21774  tags.
21775  Default is true.
21776 \change_inserted 731793113 1538674858
21777
21778 \end_layout
21779
21780 \begin_layout Description
21781
21782 \change_inserted 731793113 1538674891
21783 \begin_inset Flex Code
21784 status open
21785
21786 \begin_layout Plain Layout
21787
21788 \change_inserted 731793113 1538674863
21789 EditExternal
21790 \change_unchanged
21791
21792 \end_layout
21793
21794 \end_inset
21795
21796  [
21797 \emph on
21798 0
21799 \emph default
21800 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
21801 \change_unchanged
21802
21803 \end_layout
21804
21805 \begin_layout Description
21806 \begin_inset Flex Code
21807 status collapsed
21808
21809 \begin_layout Plain Layout
21810 End
21811 \end_layout
21812
21813 \end_inset
21814
21815  Required at the end of the 
21816 \begin_inset Flex Code
21817 status collapsed
21818
21819 \begin_layout Plain Layout
21820 InsetLayout
21821 \end_layout
21822
21823 \end_inset
21824
21825  declarations.
21826 \end_layout
21827
21828 \begin_layout Description
21829 \begin_inset Flex Code
21830 status collapsed
21831
21832 \begin_layout Plain Layout
21833 Font
21834 \end_layout
21835
21836 \end_inset
21837
21838  The font used for both the text body 
21839 \emph on
21840 and
21841 \emph default
21842  the label.
21843  See 
21844 \begin_inset CommandInset ref
21845 LatexCommand formatted
21846 reference "subsec:Font-description"
21847 nolink "false"
21848
21849 \end_inset
21850
21851 .
21852  Note that defining this font automatically defines the 
21853 \begin_inset Flex Code
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857 LabelFont
21858 \end_layout
21859
21860 \end_inset
21861
21862  to the same value,
21863  so define this first and define 
21864 \begin_inset Flex Code
21865 status collapsed
21866
21867 \begin_layout Plain Layout
21868 LabelFont
21869 \end_layout
21870
21871 \end_inset
21872
21873  later if you want them to be different.
21874 \end_layout
21875
21876 \begin_layout Description
21877 \begin_inset Flex Code
21878 status collapsed
21879
21880 \begin_layout Plain Layout
21881 FixedWidthPreambleEncoding
21882 \end_layout
21883
21884 \end_inset
21885
21886  [
21887 \begin_inset Flex Code
21888 status collapsed
21889
21890 \begin_layout Plain Layout
21891
21892 \emph on
21893 0
21894 \end_layout
21895
21896 \end_inset
21897
21898 ,
21899 \begin_inset space \thinspace{}
21900 \end_inset
21901
21902
21903 \begin_inset Flex Code
21904 status collapsed
21905
21906 \begin_layout Plain Layout
21907 1
21908 \end_layout
21909
21910 \end_inset
21911
21912 ] Force a fixed width encoding for the translated contents of 
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917 BabelPreamble
21918 \end_layout
21919
21920 \end_inset
21921
21922  and 
21923 \begin_inset Flex Code
21924 status collapsed
21925
21926 \begin_layout Plain Layout
21927 LangPreamble
21928 \end_layout
21929
21930 \end_inset
21931
21932  code generated by this layout.
21933  This is needed for special \SpecialChar LaTeX
21934 -packages like 
21935 \family typewriter
21936 listings
21937 \family default
21938  that do not work with variable width encodings such as 
21939 \family sans
21940 utf8
21941 \family default
21942 .
21943  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
21944  backends such as Xe\SpecialChar TeX
21945  or Lua\SpecialChar TeX
21946  are used.
21947 \end_layout
21948
21949 \begin_layout Description
21950 \begin_inset Flex Code
21951 status collapsed
21952
21953 \begin_layout Plain Layout
21954 ForceLocalFontSwitch
21955 \end_layout
21956
21957 \end_inset
21958
21959  [
21960 \begin_inset Flex Code
21961 status collapsed
21962
21963 \begin_layout Plain Layout
21964
21965 \emph on
21966 0
21967 \end_layout
21968
21969 \end_inset
21970
21971 ,
21972 \begin_inset space \thinspace{}
21973 \end_inset
21974
21975
21976 \begin_inset Flex Code
21977 status collapsed
21978
21979 \begin_layout Plain Layout
21980 1
21981 \end_layout
21982
21983 \end_inset
21984
21985 ] When using babel,
21986  always use a local font switch (
21987 \begin_inset Flex Code
21988 status collapsed
21989
21990 \begin_layout Plain Layout
21991
21992 \backslash
21993 foreignlanguage
21994 \end_layout
21995
21996 \end_inset
21997
21998 ),
21999  never a global one (such as 
22000 \begin_inset Flex Code
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004
22005 \backslash
22006 selectlanguage
22007 \end_layout
22008
22009 \end_inset
22010
22011 ).
22012 \end_layout
22013
22014 \begin_layout Description
22015 \begin_inset Flex Code
22016 status collapsed
22017
22018 \begin_layout Plain Layout
22019 ForceLTR
22020 \end_layout
22021
22022 \end_inset
22023
22024  [
22025 \begin_inset Flex Code
22026 status collapsed
22027
22028 \begin_layout Plain Layout
22029
22030 \emph on
22031 0
22032 \end_layout
22033
22034 \end_inset
22035
22036 ,
22037 \begin_inset space \thinspace{}
22038 \end_inset
22039
22040
22041 \begin_inset Flex Code
22042 status collapsed
22043
22044 \begin_layout Plain Layout
22045 1
22046 \end_layout
22047
22048 \end_inset
22049
22050 ] Force the 
22051 \begin_inset Quotes eld
22052 \end_inset
22053
22054 latex
22055 \begin_inset Quotes erd
22056 \end_inset
22057
22058  language,
22059  leading to Left-to-Right (Latin) output,
22060  e.
22061 \begin_inset space \thinspace{}
22062 \end_inset
22063
22064 g.
22065 \begin_inset space \space{}
22066 \end_inset
22067
22068 in \SpecialChar TeX
22069  code or URL.
22070  A kludge.
22071 \end_layout
22072
22073 \begin_layout Description
22074 \begin_inset Flex Code
22075 status collapsed
22076
22077 \begin_layout Plain Layout
22078 ForceOwnlines
22079 \end_layout
22080
22081 \end_inset
22082
22083  [
22084 \begin_inset Flex Code
22085 status collapsed
22086
22087 \begin_layout Plain Layout
22088
22089 \emph on
22090 0
22091 \end_layout
22092
22093 \end_inset
22094
22095 ,
22096 \begin_inset space \thinspace{}
22097 \end_inset
22098
22099
22100 \begin_inset Flex Code
22101 status collapsed
22102
22103 \begin_layout Plain Layout
22104 1
22105 \end_layout
22106
22107 \end_inset
22108
22109 ] Force a line break in the \SpecialChar LaTeX
22110  output before the inset starts and after the inset ends.
22111  This assures the inset itself is output on its own lines,
22112  for parsing purposes.
22113 \end_layout
22114
22115 \begin_layout Description
22116 \begin_inset Flex Code
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120 ForcePlain
22121 \end_layout
22122
22123 \end_inset
22124
22125  [
22126 \begin_inset Flex Code
22127 status collapsed
22128
22129 \begin_layout Plain Layout
22130
22131 \emph on
22132 0
22133 \end_layout
22134
22135 \end_inset
22136
22137 ,
22138 \begin_inset space \thinspace{}
22139 \end_inset
22140
22141
22142 \begin_inset Flex Code
22143 status collapsed
22144
22145 \begin_layout Plain Layout
22146 1
22147 \end_layout
22148
22149 \end_inset
22150
22151 ] Indicates whether the 
22152 \begin_inset Flex Code
22153 status collapsed
22154
22155 \begin_layout Plain Layout
22156 PlainLayout
22157 \end_layout
22158
22159 \end_inset
22160
22161  should be used or,
22162  instead,
22163  the user can change the paragraph style used in the inset.
22164  Default is false.
22165 \end_layout
22166
22167 \begin_layout Description
22168 \begin_inset Flex Code
22169 status collapsed
22170
22171 \begin_layout Plain Layout
22172 FreeSpacing
22173 \end_layout
22174
22175 \end_inset
22176
22177  [
22178 \begin_inset Flex Code
22179 status collapsed
22180
22181 \begin_layout Plain Layout
22182
22183 \emph on
22184 0
22185 \end_layout
22186
22187 \end_inset
22188
22189 ,
22190 \begin_inset space \thinspace{}
22191 \end_inset
22192
22193
22194 \begin_inset Flex Code
22195 status collapsed
22196
22197 \begin_layout Plain Layout
22198 1
22199 \end_layout
22200
22201 \end_inset
22202
22203 ] As with paragraph styles,
22204  see 
22205 \begin_inset CommandInset ref
22206 LatexCommand ref
22207 reference "subsec:Paragraph-Styles"
22208 nolink "false"
22209
22210 \end_inset
22211
22212 .
22213 \end_layout
22214
22215 \begin_layout Description
22216 \begin_inset Flex Code
22217 status collapsed
22218
22219 \begin_layout Plain Layout
22220 HTML*
22221 \end_layout
22222
22223 \end_inset
22224
22225  These tags control the XHTML output.
22226  See 
22227 \begin_inset CommandInset ref
22228 LatexCommand ref
22229 reference "sec:Tags-for-XHTML"
22230 nolink "false"
22231
22232 \end_inset
22233
22234 .
22235 \change_inserted 47243155 1689528605
22236
22237 \end_layout
22238
22239 \begin_layout Description
22240
22241 \change_inserted 47243155 1689528735
22242 \begin_inset Flex Code
22243 status collapsed
22244
22245 \begin_layout Plain Layout
22246
22247 \change_inserted 47243155 1689528630
22248 InheritFont
22249 \change_unchanged
22250
22251 \end_layout
22252
22253 \end_inset
22254
22255  [
22256 \begin_inset Flex Code
22257 status collapsed
22258
22259 \begin_layout Plain Layout
22260
22261 \change_inserted 47243155 1689528607
22262 0
22263 \change_unchanged
22264
22265 \end_layout
22266
22267 \end_inset
22268
22269 ,
22270 \begin_inset space \thinspace{}
22271 \end_inset
22272
22273
22274 \begin_inset Flex Code
22275 status collapsed
22276
22277 \begin_layout Plain Layout
22278
22279 \change_inserted 47243155 1689528607
22280
22281 \emph on
22282 1
22283 \change_unchanged
22284
22285 \end_layout
22286
22287 \end_inset
22288
22289 ] The font inside the inset is inherited from the parent for \SpecialChar LaTeX
22290  export if this parameter is 1,
22291  as well as on screen.
22292  Otherwise the document default font is used.
22293 \change_unchanged
22294
22295 \end_layout
22296
22297 \begin_layout Description
22298 \begin_inset Flex Code
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 InToc
22303 \end_layout
22304
22305 \end_inset
22306
22307  [
22308 \begin_inset Flex Code
22309 status collapsed
22310
22311 \begin_layout Plain Layout
22312
22313 \emph on
22314 0
22315 \end_layout
22316
22317 \end_inset
22318
22319 ,
22320 \begin_inset space \thinspace{}
22321 \end_inset
22322
22323
22324 \begin_inset Flex Code
22325 status collapsed
22326
22327 \begin_layout Plain Layout
22328 1
22329 \end_layout
22330
22331 \end_inset
22332
22333 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
22334  regardless of the AddToToc setting.
22335  One would not,
22336  for example,
22337  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
22338  but one would normally want the content of a character style displayed.
22339  Default is false:
22340  not to include.
22341 \end_layout
22342
22343 \begin_layout Description
22344 \begin_inset Flex Code
22345 status collapsed
22346
22347 \begin_layout Plain Layout
22348 IsTocCaption
22349 \end_layout
22350
22351 \end_inset
22352
22353  [
22354 \begin_inset Flex Code
22355 status collapsed
22356
22357 \begin_layout Plain Layout
22358
22359 \emph on
22360 0
22361 \end_layout
22362
22363 \end_inset
22364
22365 ,
22366 \begin_inset space \thinspace{}
22367 \end_inset
22368
22369
22370 \begin_inset Flex Code
22371 status collapsed
22372
22373 \begin_layout Plain Layout
22374 1
22375 \end_layout
22376
22377 \end_inset
22378
22379 ] If this is set to 1 and AddToToc is enabled,
22380  the inset adds a summary of its contents in its item in the table of contents.
22381  Otherwise,
22382  only the label appears.
22383 \end_layout
22384
22385 \begin_layout Description
22386 \begin_inset Flex Code
22387 status collapsed
22388
22389 \begin_layout Plain Layout
22390 KeepEmpty
22391 \end_layout
22392
22393 \end_inset
22394
22395  [
22396 \emph on
22397
22398 \begin_inset Flex Code
22399 status collapsed
22400
22401 \begin_layout Plain Layout
22402 0
22403 \end_layout
22404
22405 \end_inset
22406
22407
22408 \emph default
22409 ,
22410 \begin_inset space \thinspace{}
22411 \end_inset
22412
22413
22414 \begin_inset Flex Code
22415 status collapsed
22416
22417 \begin_layout Plain Layout
22418 1
22419 \end_layout
22420
22421 \end_inset
22422
22423 ] As with paragraph styles,
22424  see 
22425 \begin_inset CommandInset ref
22426 LatexCommand ref
22427 reference "subsec:Paragraph-Styles"
22428 nolink "false"
22429
22430 \end_inset
22431
22432 .
22433 \end_layout
22434
22435 \begin_layout Description
22436 \begin_inset Flex Code
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440 LabelFont
22441 \end_layout
22442
22443 \end_inset
22444
22445  The font used for the label.
22446  See 
22447 \begin_inset CommandInset ref
22448 LatexCommand ref
22449 reference "subsec:Font-description"
22450 nolink "false"
22451
22452 \end_inset
22453
22454 .
22455  Note that this definition can never appear before 
22456 \begin_inset Flex Code
22457 status collapsed
22458
22459 \begin_layout Plain Layout
22460 Font
22461 \end_layout
22462
22463 \end_inset
22464
22465 ,
22466  lest it be ineffective.
22467 \end_layout
22468
22469 \begin_layout Description
22470 \begin_inset Flex Code
22471 status collapsed
22472
22473 \begin_layout Plain Layout
22474 LabelString
22475 \end_layout
22476
22477 \end_inset
22478
22479  [
22480 \begin_inset Flex Code
22481 status collapsed
22482
22483 \begin_layout Plain Layout
22484 string
22485 \end_layout
22486
22487 \end_inset
22488
22489 =
22490 \begin_inset Quotes erd
22491 \end_inset
22492
22493
22494 \begin_inset Quotes erd
22495 \end_inset
22496
22497 ] What will be displayed on the button or elsewhere as the inset label.
22498  Some inset types (
22499 \begin_inset Flex Code
22500 status collapsed
22501
22502 \begin_layout Plain Layout
22503 \SpecialChar TeX
22504  code
22505 \end_layout
22506
22507 \end_inset
22508
22509  and 
22510 \begin_inset Flex Code
22511 status collapsed
22512
22513 \begin_layout Plain Layout
22514 Branch
22515 \end_layout
22516
22517 \end_inset
22518
22519 ) modify this label on the fly.
22520 \end_layout
22521
22522 \begin_layout Description
22523 \begin_inset Flex Code
22524 status collapsed
22525
22526 \begin_layout Plain Layout
22527 LangPreamble
22528 \end_layout
22529
22530 \end_inset
22531
22532  Language dependent preamble;
22533  see 
22534 \begin_inset CommandInset ref
22535 LatexCommand ref
22536 reference "subsec:I18n"
22537 nolink "false"
22538
22539 \end_inset
22540
22541 .
22542 \end_layout
22543
22544 \begin_layout Description
22545 \begin_inset Flex Code
22546 status collapsed
22547
22548 \begin_layout Plain Layout
22549 LatexName
22550 \end_layout
22551
22552 \end_inset
22553
22554  [
22555 \begin_inset Flex Code
22556 status collapsed
22557
22558 \begin_layout Plain Layout
22559 <name>
22560 \end_layout
22561
22562 \end_inset
22563
22564 ] The name of the corresponding \SpecialChar LaTeX
22565  stuff.
22566  Either the environment or command name.
22567 \end_layout
22568
22569 \begin_layout Description
22570 \begin_inset Flex Code
22571 status collapsed
22572
22573 \begin_layout Plain Layout
22574 LatexParam
22575 \end_layout
22576
22577 \end_inset
22578
22579  [
22580 \begin_inset Flex Code
22581 status collapsed
22582
22583 \begin_layout Plain Layout
22584 <parameter>
22585 \end_layout
22586
22587 \end_inset
22588
22589 ] The optional parameter for the corresponding 
22590 \begin_inset Flex Code
22591 status collapsed
22592
22593 \begin_layout Plain Layout
22594 LatexName
22595 \end_layout
22596
22597 \end_inset
22598
22599  stuff,
22600  including possible bracket pairs like 
22601 \begin_inset Flex Code
22602 status collapsed
22603
22604 \begin_layout Plain Layout
22605 []
22606 \end_layout
22607
22608 \end_inset
22609
22610 .
22611  This parameter cannot be changed from within \SpecialChar LyX
22612  (use 
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617 Argument
22618 \end_layout
22619
22620 \end_inset
22621
22622  for customizable parameters).
22623  It will be output as is after all \SpecialChar LaTeX
22624  
22625 \begin_inset Flex Code
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629 Argument
22630 \end_layout
22631
22632 \end_inset
22633
22634 s.
22635 \end_layout
22636
22637 \begin_layout Description
22638 \begin_inset Flex Code
22639 status collapsed
22640
22641 \begin_layout Plain Layout
22642 LatexType
22643 \end_layout
22644
22645 \end_inset
22646
22647  [
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652 Command,
22653  Environment,
22654  None
22655 \end_layout
22656
22657 \end_inset
22658
22659 ] How the style should be translated into \SpecialChar LaTeX
22660 .
22661 \begin_inset Foot
22662 status collapsed
22663
22664 \begin_layout Plain Layout
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 LatexType
22670 \end_layout
22671
22672 \end_inset
22673
22674  is perhaps a bit misleading,
22675  since these rules apply to SGML classes too.
22676  Visit the SGML class files for specific examples.
22677 \end_layout
22678
22679 \end_inset
22680
22681
22682 \end_layout
22683
22684 \begin_deeper
22685 \begin_layout Description
22686 \begin_inset Flex Code
22687 status collapsed
22688
22689 \begin_layout Plain Layout
22690 None
22691 \end_layout
22692
22693 \end_inset
22694
22695  means nothing special
22696 \end_layout
22697
22698 \begin_layout Description
22699 \begin_inset Flex Code
22700 status collapsed
22701
22702 \begin_layout Plain Layout
22703 Command
22704 \end_layout
22705
22706 \end_inset
22707
22708  means 
22709 \begin_inset Flex Code
22710 status collapsed
22711
22712 \begin_layout Plain Layout
22713
22714 \backslash
22715
22716 \emph on
22717 LatexName
22718 \emph default
22719 {\SpecialChar ldots
22720 }
22721 \end_layout
22722
22723 \end_inset
22724
22725
22726 \end_layout
22727
22728 \begin_layout Description
22729 \begin_inset Flex Code
22730 status collapsed
22731
22732 \begin_layout Plain Layout
22733 Environment
22734 \end_layout
22735
22736 \end_inset
22737
22738  means 
22739 \begin_inset Flex Code
22740 status collapsed
22741
22742 \begin_layout Plain Layout
22743
22744 \backslash
22745 begin{
22746 \emph on
22747 LatexName
22748 \emph default
22749 }\SpecialChar ldots
22750
22751 \backslash
22752 end{
22753 \emph on
22754 LatexName
22755 \emph default
22756 }
22757 \end_layout
22758
22759 \end_inset
22760
22761
22762 \end_layout
22763
22764 \begin_layout Standard
22765 Putting the last few things together,
22766  the \SpecialChar LaTeX
22767  output will be either:
22768  
22769 \end_layout
22770
22771 \begin_layout LyX-Code
22772
22773 \backslash
22774 LatexName[LatexParam]{\SpecialChar ldots
22775 }
22776 \end_layout
22777
22778 \begin_layout Standard
22779 or:
22780  
22781 \end_layout
22782
22783 \begin_layout LyX-Code
22784
22785 \backslash
22786 begin{LatexName}[LatexParam] \SpecialChar ldots
22787  
22788 \backslash
22789 end{LatexName}
22790 \end_layout
22791
22792 \begin_layout Standard
22793 depending upon the \SpecialChar LaTeX
22794  type.
22795 \end_layout
22796
22797 \end_deeper
22798 \begin_layout Description
22799 \begin_inset Flex Code
22800 status collapsed
22801
22802 \begin_layout Plain Layout
22803 LeftDelim
22804 \end_layout
22805
22806 \end_inset
22807
22808  [
22809 \begin_inset Flex Code
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 string
22814 \end_layout
22815
22816 \end_inset
22817
22818 ] A string that is put at the beginning of the layout content.
22819  A line break in the output can be indicated by 
22820 \begin_inset Flex Code
22821 status collapsed
22822
22823 \begin_layout Plain Layout
22824 <br/>
22825 \end_layout
22826
22827 \end_inset
22828
22829 .
22830 \end_layout
22831
22832 \begin_layout Description
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 LyxType
22838 \end_layout
22839
22840 \end_inset
22841
22842  Can be 
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 charstyle
22848 \end_layout
22849
22850 \end_inset
22851
22852 ,
22853  
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858 custom
22859 \end_layout
22860
22861 \end_inset
22862
22863 ,
22864  
22865 \change_deleted -584632292 1615846609
22866
22867 \begin_inset Flex Code
22868 status collapsed
22869
22870 \begin_layout Plain Layout
22871 element
22872 \end_layout
22873
22874 \end_inset
22875
22876  
22877 \change_unchanged
22878 or 
22879 \begin_inset Flex Code
22880 status collapsed
22881
22882 \begin_layout Plain Layout
22883 end
22884 \end_layout
22885
22886 \end_inset
22887
22888  (indicating a dummy definition ending definitions of charstyles,
22889  etc).
22890  This entry is required in and is only meaningful for Flex insets.
22891  Among other things,
22892  it determines on which menu this inset will appear.
22893  Setting 
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 LyxType
22899 \end_layout
22900
22901 \end_inset
22902
22903  to 
22904 \begin_inset Flex Code
22905 status collapsed
22906
22907 \begin_layout Plain Layout
22908 charstyle
22909 \end_layout
22910
22911 \end_inset
22912
22913  will automatically set 
22914 \begin_inset Flex Code
22915 status collapsed
22916
22917 \begin_layout Plain Layout
22918 MultiPar
22919 \end_layout
22920
22921 \end_inset
22922
22923  to false and 
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928 ForcePlain
22929 \end_layout
22930
22931 \end_inset
22932
22933  to true.
22934  
22935 \begin_inset Flex Code
22936 status collapsed
22937
22938 \begin_layout Plain Layout
22939 MultiPar
22940 \end_layout
22941
22942 \end_inset
22943
22944  can be set to true,
22945  or 
22946 \begin_inset Flex Code
22947 status collapsed
22948
22949 \begin_layout Plain Layout
22950 ForcePlain
22951 \end_layout
22952
22953 \end_inset
22954
22955  to false,
22956  for 
22957 \begin_inset Flex Code
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961 charstyle
22962 \end_layout
22963
22964 \end_inset
22965
22966  insets by setting it 
22967 \emph on
22968 after
22969 \emph default
22970  you set the 
22971 \begin_inset Flex Code
22972 status collapsed
22973
22974 \begin_layout Plain Layout
22975 LyxType
22976 \end_layout
22977
22978 \end_inset
22979
22980 .
22981 \change_inserted -712698321 1555575738
22982
22983 \end_layout
22984
22985 \begin_layout Description
22986
22987 \change_inserted -712698321 1555575844
22988 \begin_inset Flex Code
22989 status collapsed
22990
22991 \begin_layout Plain Layout
22992
22993 \change_inserted -712698321 1555575740
22994 MenuString
22995 \change_unchanged
22996
22997 \end_layout
22998
22999 \end_inset
23000
23001  
23002 \begin_inset Flex Code
23003 status collapsed
23004
23005 \begin_layout Plain Layout
23006
23007 \change_inserted -712698321 1555575740
23008 [string]
23009 \change_unchanged
23010
23011 \end_layout
23012
23013 \end_inset
23014
23015  A dedicated string for the menu.
23016  You can define an accelerator by appending the respective character to the string,
23017  divided by 
23018 \begin_inset Quotes eld
23019 \end_inset
23020
23021 |
23022 \begin_inset Quotes erd
23023 \end_inset
23024
23025  (e.
23026 \begin_inset space \thinspace{}
23027 \end_inset
23028
23029 g.
23030 \begin_inset space \space{}
23031 \end_inset
23032
23033
23034 \begin_inset Quotes eld
23035 \end_inset
23036
23037
23038 \begin_inset Flex Code
23039 status collapsed
23040
23041 \begin_layout Plain Layout
23042
23043 \change_inserted -712698321 1555575781
23044 My Inset|M
23045 \change_unchanged
23046
23047 \end_layout
23048
23049 \end_inset
23050
23051
23052 \begin_inset Quotes erd
23053 \end_inset
23054
23055 ).
23056  This specification is optional.
23057  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
23058 \change_unchanged
23059
23060 \end_layout
23061
23062 \begin_layout Description
23063 \begin_inset Flex Code
23064 status collapsed
23065
23066 \begin_layout Plain Layout
23067 MultiPar
23068 \end_layout
23069
23070 \end_inset
23071
23072  [
23073 \begin_inset Flex Code
23074 status collapsed
23075
23076 \begin_layout Plain Layout
23077
23078 \emph on
23079 0
23080 \end_layout
23081
23082 \end_inset
23083
23084 ,
23085 \begin_inset space \thinspace{}
23086 \end_inset
23087
23088
23089 \begin_inset Flex Code
23090 status collapsed
23091
23092 \begin_layout Plain Layout
23093 1
23094 \end_layout
23095
23096 \end_inset
23097
23098 ] Whether multiple paragraphs are permitted in this inset.
23099  This will also set 
23100 \begin_inset Flex Code
23101 status collapsed
23102
23103 \begin_layout Plain Layout
23104 CustomPars
23105 \end_layout
23106
23107 \end_inset
23108
23109  to the same value and 
23110 \begin_inset Flex Code
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114 ForcePlain
23115 \end_layout
23116
23117 \end_inset
23118
23119  to the opposite value.
23120  These can be reset to other values,
23121  if they are used 
23122 \emph on
23123 after
23124 \emph default
23125  
23126 \begin_inset Flex Code
23127 status collapsed
23128
23129 \begin_layout Plain Layout
23130 MultiPar
23131 \end_layout
23132
23133 \end_inset
23134
23135 .
23136  Default is true.
23137 \end_layout
23138
23139 \begin_layout Description
23140 \begin_inset Flex Code
23141 status collapsed
23142
23143 \begin_layout Plain Layout
23144 NeedProtect
23145 \end_layout
23146
23147 \end_inset
23148
23149  [
23150 \begin_inset Flex Code
23151 status collapsed
23152
23153 \begin_layout Plain Layout
23154
23155 \emph on
23156 0
23157 \end_layout
23158
23159 \end_inset
23160
23161 ,
23162 \begin_inset space \thinspace{}
23163 \end_inset
23164
23165
23166 \begin_inset Flex Code
23167 status collapsed
23168
23169 \begin_layout Plain Layout
23170 1
23171 \end_layout
23172
23173 \end_inset
23174
23175 ] Whether fragile commands in this inset should be 
23176 \begin_inset Flex Code
23177 status collapsed
23178
23179 \begin_layout Plain Layout
23180
23181 \backslash
23182 protect
23183 \end_layout
23184
23185 \end_inset
23186
23187 'ed.
23188  (Note:
23189  This is 
23190 \emph on
23191 not
23192 \emph default
23193  whether the command should itself be protected.) Default is false.
23194 \change_inserted -712698321 1523633958
23195
23196 \end_layout
23197
23198 \begin_layout Description
23199
23200 \change_inserted -712698321 1552395786
23201 \begin_inset Flex Code
23202 status collapsed
23203
23204 \begin_layout Plain Layout
23205
23206 \change_inserted -712698321 1523633961
23207 NeedCProtect
23208 \change_unchanged
23209
23210 \end_layout
23211
23212 \end_inset
23213
23214  [
23215 \begin_inset Flex Code
23216 status collapsed
23217
23218 \begin_layout Plain Layout
23219
23220 \change_inserted -712698321 1523633958
23221
23222 \emph on
23223 0
23224 \change_unchanged
23225
23226 \end_layout
23227
23228 \end_inset
23229
23230 ,
23231 \begin_inset space \thinspace{}
23232 \end_inset
23233
23234
23235 \begin_inset Flex Code
23236 status collapsed
23237
23238 \begin_layout Plain Layout
23239
23240 \change_inserted -712698321 1523633958
23241 1
23242 \change_unchanged
23243
23244 \end_layout
23245
23246 \end_inset
23247
23248 ] This causes macros that contain this inset to be protected with 
23249 \begin_inset Flex Code
23250 status collapsed
23251
23252 \begin_layout Plain Layout
23253
23254 \change_inserted -712698321 1523634038
23255
23256 \backslash
23257 cprotect
23258 \change_unchanged
23259
23260 \end_layout
23261
23262 \end_inset
23263
23264  (cf.
23265  package 
23266 \family sans
23267 cprotect
23268 \family default
23269 ) if necessary and thus allows (some) verbatim stuff in macros.
23270  Default is false.
23271 \end_layout
23272
23273 \begin_layout Description
23274
23275 \change_inserted -712698321 1555579651
23276 \begin_inset Flex Code
23277 status collapsed
23278
23279 \begin_layout Plain Layout
23280
23281 \change_inserted -712698321 1552395787
23282 NeedMBoxProtect
23283 \change_unchanged
23284
23285 \end_layout
23286
23287 \end_inset
23288
23289  [
23290 \begin_inset Flex Code
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294
23295 \change_inserted -712698321 1552395787
23296
23297 \emph on
23298 0
23299 \change_unchanged
23300
23301 \end_layout
23302
23303 \end_inset
23304
23305 ,
23306 \begin_inset space \thinspace{}
23307 \end_inset
23308
23309
23310 \begin_inset Flex Code
23311 status collapsed
23312
23313 \begin_layout Plain Layout
23314
23315 \change_inserted -712698321 1552395787
23316 1
23317 \change_unchanged
23318
23319 \end_layout
23320
23321 \end_inset
23322
23323 ] Whether specific commands in this inset (such as 
23324 \begin_inset Flex Code
23325 status collapsed
23326
23327 \begin_layout Plain Layout
23328
23329 \change_inserted -712698321 1552395787
23330
23331 \backslash
23332 cite
23333 \change_unchanged
23334
23335 \end_layout
23336
23337 \end_inset
23338
23339  and 
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344
23345 \change_inserted -712698321 1552395787
23346
23347 \backslash
23348 ref
23349 \change_unchanged
23350
23351 \end_layout
23352
23353 \end_inset
23354
23355 ) should be protected in an 
23356 \begin_inset Flex Code
23357 status collapsed
23358
23359 \begin_layout Plain Layout
23360
23361 \change_inserted -712698321 1552395787
23362
23363 \backslash
23364 mbox
23365 \change_unchanged
23366
23367 \end_layout
23368
23369 \end_inset
23370
23371 .
23372  This is particularly needed for insets that draw on 
23373 \family sans
23374 ulem
23375 \family default
23376  or 
23377 \family sans
23378 soul
23379 \family default
23380  commands which parse their content in complex ways.
23381  Default is false.
23382 \end_layout
23383
23384 \begin_layout Description
23385
23386 \change_inserted -712698321 1555579742
23387 \begin_inset Flex Code
23388 status collapsed
23389
23390 \begin_layout Plain Layout
23391
23392 \change_inserted -712698321 1555579658
23393 NewlineCmd
23394 \change_unchanged
23395
23396 \end_layout
23397
23398 \end_inset
23399
23400  
23401 \begin_inset Flex Code
23402 status collapsed
23403
23404 \begin_layout Plain Layout
23405
23406 \change_inserted -712698321 1555579651
23407 [string]
23408 \change_unchanged
23409
23410 \end_layout
23411
23412 \end_inset
23413
23414  Option to define a different command (from the default 
23415 \begin_inset Flex Code
23416 status collapsed
23417
23418 \begin_layout Plain Layout
23419
23420 \change_inserted -712698321 1555579742
23421
23422 \backslash
23423
23424 \backslash
23425
23426 \change_unchanged
23427
23428 \end_layout
23429
23430 \end_inset
23431
23432 ) to be used for line breaks.
23433  The initial backslash must not be specified.
23434 \change_unchanged
23435
23436 \end_layout
23437
23438 \begin_layout Description
23439 \begin_inset Flex Code
23440 status collapsed
23441
23442 \begin_layout Plain Layout
23443 NoInsetLayout
23444 \end_layout
23445
23446 \end_inset
23447
23448  [
23449 \begin_inset Flex Code
23450 status collapsed
23451
23452 \begin_layout Plain Layout
23453 <layout>
23454 \end_layout
23455
23456 \end_inset
23457
23458 ] Deletes an existing 
23459 \begin_inset Flex Code
23460 status collapsed
23461
23462 \begin_layout Plain Layout
23463 InsetLayout
23464 \end_layout
23465
23466 \end_inset
23467
23468 .
23469 \end_layout
23470
23471 \begin_layout Description
23472 \begin_inset Flex Code
23473 status collapsed
23474
23475 \begin_layout Plain Layout
23476 ObsoletedBy
23477 \end_layout
23478
23479 \end_inset
23480
23481  [
23482 \begin_inset Flex Code
23483 status collapsed
23484
23485 \begin_layout Plain Layout
23486 <layout>
23487 \end_layout
23488
23489 \end_inset
23490
23491 ] Name of an 
23492 \begin_inset Flex Code
23493 status collapsed
23494
23495 \begin_layout Plain Layout
23496 InsetLayout
23497 \end_layout
23498
23499 \end_inset
23500
23501  that has replaced this 
23502 \begin_inset Flex Code
23503 status collapsed
23504
23505 \begin_layout Plain Layout
23506 InsetLayout
23507 \end_layout
23508
23509 \end_inset
23510
23511 .
23512  This is used to rename an 
23513 \begin_inset Flex Code
23514 status collapsed
23515
23516 \begin_layout Plain Layout
23517 InsetLayout
23518 \end_layout
23519
23520 \end_inset
23521
23522 ,
23523  while keeping backward compatibility.
23524 \change_inserted -712698321 1559491850
23525
23526 \end_layout
23527
23528 \begin_layout Description
23529
23530 \change_inserted -712698321 1559492002
23531 \begin_inset Flex Code
23532 status collapsed
23533
23534 \begin_layout Plain Layout
23535
23536 \change_inserted -712698321 1559491854
23537 ParbreakIgnored
23538 \change_unchanged
23539
23540 \end_layout
23541
23542 \end_inset
23543
23544  [
23545 \begin_inset Flex Code
23546 status collapsed
23547
23548 \begin_layout Plain Layout
23549
23550 \change_inserted -712698321 1559491850
23551
23552 \emph on
23553 0
23554 \change_unchanged
23555
23556 \end_layout
23557
23558 \end_inset
23559
23560 ,
23561 \begin_inset space \thinspace{}
23562 \end_inset
23563
23564
23565 \begin_inset Flex Code
23566 status collapsed
23567
23568 \begin_layout Plain Layout
23569
23570 \change_inserted -712698321 1559491850
23571 1
23572 \change_unchanged
23573
23574 \end_layout
23575
23576 \end_inset
23577
23578 ] If this is set to 
23579 \begin_inset Flex Code
23580 status collapsed
23581
23582 \begin_layout Plain Layout
23583
23584 \change_inserted -712698321 1559491881
23585 1
23586 \change_unchanged
23587
23588 \end_layout
23589
23590 \end_inset
23591
23592 ,
23593  paragraph breaks will be ignored in the output.
23594  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
23595  workarea,
23596  without any effect in the output.
23597 \change_unchanged
23598
23599 \end_layout
23600
23601 \begin_layout Description
23602 \begin_inset Flex Code
23603 status collapsed
23604
23605 \begin_layout Plain Layout
23606 ParbreakIsNewline
23607 \end_layout
23608
23609 \end_inset
23610
23611  [
23612 \begin_inset Flex Code
23613 status collapsed
23614
23615 \begin_layout Plain Layout
23616
23617 \emph on
23618 0
23619 \end_layout
23620
23621 \end_inset
23622
23623 ,
23624 \begin_inset space \thinspace{}
23625 \end_inset
23626
23627
23628 \begin_inset Flex Code
23629 status collapsed
23630
23631 \begin_layout Plain Layout
23632 1
23633 \end_layout
23634
23635 \end_inset
23636
23637 ] As with paragraph styles,
23638  see 
23639 \begin_inset CommandInset ref
23640 LatexCommand ref
23641 reference "subsec:Paragraph-Styles"
23642 nolink "false"
23643
23644 \end_inset
23645
23646 .
23647  Default is false.
23648 \end_layout
23649
23650 \begin_layout Description
23651 \begin_inset Flex Code
23652 status collapsed
23653
23654 \begin_layout Plain Layout
23655 PassThru
23656 \end_layout
23657
23658 \end_inset
23659
23660  [
23661 \begin_inset Flex Code
23662 status collapsed
23663
23664 \begin_layout Plain Layout
23665
23666 \emph on
23667 0
23668 \end_layout
23669
23670 \end_inset
23671
23672 ,
23673 \begin_inset space \thinspace{}
23674 \end_inset
23675
23676
23677 \begin_inset Flex Code
23678 status collapsed
23679
23680 \begin_layout Plain Layout
23681 1
23682 \end_layout
23683
23684 \end_inset
23685
23686 ] As with paragraph styles,
23687  see 
23688 \begin_inset CommandInset ref
23689 LatexCommand ref
23690 reference "subsec:Paragraph-Styles"
23691 nolink "false"
23692
23693 \end_inset
23694
23695 .
23696  Default is false.
23697 \end_layout
23698
23699 \begin_layout Description
23700 \begin_inset Flex Code
23701 status collapsed
23702
23703 \begin_layout Plain Layout
23704 Preamble
23705 \end_layout
23706
23707 \end_inset
23708
23709  As with paragraph styles,
23710  see 
23711 \begin_inset CommandInset ref
23712 LatexCommand ref
23713 reference "subsec:Paragraph-Styles"
23714 nolink "false"
23715
23716 \end_inset
23717
23718 .
23719 \end_layout
23720
23721 \begin_layout Description
23722 \begin_inset Flex Code
23723 status collapsed
23724
23725 \begin_layout Plain Layout
23726 RefPrefix
23727 \end_layout
23728
23729 \end_inset
23730
23731  [
23732 \begin_inset Flex Code
23733 status collapsed
23734
23735 \begin_layout Plain Layout
23736 string
23737 \end_layout
23738
23739 \end_inset
23740
23741 ] The prefix to use when creating labels referring to insets of this type.
23742  This allows the use of formatted references.
23743 \end_layout
23744
23745 \begin_layout Description
23746 \begin_inset Flex Code
23747 status collapsed
23748
23749 \begin_layout Plain Layout
23750 Requires
23751 \end_layout
23752
23753 \end_inset
23754
23755  [
23756 \begin_inset Flex Code
23757 status collapsed
23758
23759 \begin_layout Plain Layout
23760 string
23761 \end_layout
23762
23763 \end_inset
23764
23765 ] As with paragraph styles,
23766  see 
23767 \begin_inset CommandInset ref
23768 LatexCommand ref
23769 reference "subsec:Paragraph-Styles"
23770 nolink "false"
23771
23772 \end_inset
23773
23774 .
23775 \end_layout
23776
23777 \begin_layout Description
23778 \begin_inset Flex Code
23779 status collapsed
23780
23781 \begin_layout Plain Layout
23782 ResetArgs
23783 \end_layout
23784
23785 \end_inset
23786
23787  [
23788 \begin_inset Flex Code
23789 status collapsed
23790
23791 \begin_layout Plain Layout
23792
23793 \emph on
23794 0
23795 \end_layout
23796
23797 \end_inset
23798
23799 ,
23800 \begin_inset space \thinspace{}
23801 \end_inset
23802
23803
23804 \begin_inset Flex Code
23805 status collapsed
23806
23807 \begin_layout Plain Layout
23808 1
23809 \end_layout
23810
23811 \end_inset
23812
23813 ] Resets the \SpecialChar LaTeX
23814  arguments of this layout (as defined via the 
23815 \begin_inset Flex Code
23816 status collapsed
23817
23818 \begin_layout Plain Layout
23819 Argument
23820 \end_layout
23821
23822 \end_inset
23823
23824  tag).
23825  This is useful if you have copied a style via 
23826 \begin_inset Flex Code
23827 status collapsed
23828
23829 \begin_layout Plain Layout
23830 CopyStyle
23831 \end_layout
23832
23833 \end_inset
23834
23835 ,
23836  but you do not want to inherit its (required and optional) arguments.
23837 \end_layout
23838
23839 \begin_layout Description
23840 \begin_inset Flex Code
23841 status collapsed
23842
23843 \begin_layout Plain Layout
23844 ResetsFont
23845 \end_layout
23846
23847 \end_inset
23848
23849  [
23850 \begin_inset Flex Code
23851 status collapsed
23852
23853 \begin_layout Plain Layout
23854
23855 \emph on
23856 0
23857 \end_layout
23858
23859 \end_inset
23860
23861 ,
23862 \begin_inset space \thinspace{}
23863 \end_inset
23864
23865
23866 \begin_inset Flex Code
23867 status collapsed
23868
23869 \begin_layout Plain Layout
23870 1
23871 \end_layout
23872
23873 \end_inset
23874
23875
23876 \change_inserted -712698321 1597733473
23877 If 
23878 \begin_inset Flex Code
23879 status collapsed
23880
23881 \begin_layout Plain Layout
23882
23883 \change_inserted -712698321 1597732178
23884 1
23885 \change_unchanged
23886
23887 \end_layout
23888
23889 \end_inset
23890
23891 ,
23892  font changes are redone inside the respective inset (in the output) even if the inset itself is in the context of this font changes (e.
23893 \begin_inset space \thinspace{}
23894 \end_inset
23895
23896 g.,
23897  
23898 \begin_inset Flex Code
23899 status collapsed
23900
23901 \begin_layout Plain Layout
23902
23903 \change_inserted -712698321 1597733683
23904
23905 \backslash
23906 textbf{Sourrounding text 
23907 \backslash
23908 myinset{
23909 \backslash
23910 textbf{content}}\SpecialChar ldots
23911 }
23912 \change_unchanged
23913
23914 \end_layout
23915
23916 \end_inset
23917
23918  rather than 
23919 \begin_inset Flex Code
23920 status collapsed
23921
23922 \begin_layout Plain Layout
23923
23924 \change_inserted -712698321 1597733686
23925
23926 \backslash
23927 textbf{Sourrounding text 
23928 \backslash
23929 myinset{content}\SpecialChar ldots
23930 }
23931 \change_unchanged
23932
23933 \end_layout
23934
23935 \end_inset
23936
23937 .
23938  Setting this makes sense for commands that internally reset font settings (e.
23939 \begin_inset space \thinspace{}
23940 \end_inset
23941
23942 g.,
23943  footnotes).
23944  Note that wrongly setting this might lead to unwanted result (e.
23945 \begin_inset space \thinspace{}
23946 \end_inset
23947
23948 g.,
23949  with 
23950 \begin_inset Flex Code
23951 status collapsed
23952
23953 \begin_layout Plain Layout
23954
23955 \change_inserted -712698321 1597733688
23956
23957 \backslash
23958 emph{Sourrounding text 
23959 \backslash
23960 myinset{
23961 \backslash
23962 emph{content}}\SpecialChar ldots
23963 }
23964 \change_unchanged
23965
23966 \end_layout
23967
23968 \end_inset
23969
23970 ,
23971  content is upright,
23972  as 
23973 \begin_inset Flex Code
23974 status collapsed
23975
23976 \begin_layout Plain Layout
23977
23978 \change_inserted -712698321 1597733278
23979
23980 \backslash
23981 emph
23982 \change_unchanged
23983
23984 \end_layout
23985
23986 \end_inset
23987
23988  toggles.
23989  
23990 \change_deleted -712698321 1597733283
23991 Whether this inset should use the font of its surrounding environment or uses its own.
23992  
23993 \change_unchanged
23994 Default is 
23995 \change_deleted -712698321 1597733290
23996 false
23997 \change_inserted -712698321 1597733290
23998
23999 \begin_inset Flex Code
24000 status collapsed
24001
24002 \begin_layout Plain Layout
24003
24004 \change_inserted -712698321 1597733292
24005 0
24006 \change_unchanged
24007
24008 \end_layout
24009
24010 \end_inset
24011
24012
24013 \change_unchanged
24014 :
24015  
24016 \change_deleted -712698321 1597733327
24017 use the font of the surrounding environment
24018 \change_inserted -712698321 1597733343
24019 font changes are not redone inside the inset
24020 \change_unchanged
24021 .
24022 \end_layout
24023
24024 \begin_layout Description
24025 \begin_inset Flex Code
24026 status collapsed
24027
24028 \begin_layout Plain Layout
24029 RightDelim
24030 \end_layout
24031
24032 \end_inset
24033
24034  [
24035 \begin_inset Flex Code
24036 status collapsed
24037
24038 \begin_layout Plain Layout
24039 string
24040 \end_layout
24041
24042 \end_inset
24043
24044 ] A string that is put at the end of the layout content.
24045  A line break in the output can be indicated by 
24046 \begin_inset Flex Code
24047 status collapsed
24048
24049 \begin_layout Plain Layout
24050 <br/>
24051 \end_layout
24052
24053 \end_inset
24054
24055 .
24056 \end_layout
24057
24058 \begin_layout Description
24059 \begin_inset Flex Code
24060 status collapsed
24061
24062 \begin_layout Plain Layout
24063 Spellcheck
24064 \end_layout
24065
24066 \end_inset
24067
24068  [
24069 \begin_inset Flex Code
24070 status collapsed
24071
24072 \begin_layout Plain Layout
24073 0
24074 \end_layout
24075
24076 \end_inset
24077
24078 ,
24079 \begin_inset space \thinspace{}
24080 \end_inset
24081
24082
24083 \begin_inset Flex Code
24084 status collapsed
24085
24086 \begin_layout Plain Layout
24087
24088 \emph on
24089 1
24090 \end_layout
24091
24092 \end_inset
24093
24094 ] Allow spell-checking the contents of this inset.
24095  Default is true.
24096 \change_inserted -584632292 1615846659
24097
24098 \end_layout
24099
24100 \begin_layout Subsection
24101
24102 \change_inserted -584632292 1615846729
24103 Arguments
24104 \begin_inset CommandInset label
24105 LatexCommand label
24106 name "subsec:Arguments"
24107
24108 \end_inset
24109
24110
24111 \end_layout
24112
24113 \begin_layout Standard
24114
24115 \change_inserted -584632292 1615846807
24116 Both paragraph styles and inset layouts allow for 
24117 \emph on
24118 arguments
24119 \emph default
24120  as well as the main content.
24121  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
24122 .
24123  Each (optional or required) argument of a command or environment—
24124 except for the required argument that is associated with the content—
24125 has a separate definition,
24126  where the number specifies the order of the arguments.
24127  The definition must end with 
24128 \begin_inset Flex Code
24129 status collapsed
24130
24131 \begin_layout Plain Layout
24132
24133 \change_inserted -584632292 1615846730
24134 EndArgument
24135 \change_unchanged
24136
24137 \end_layout
24138
24139 \end_inset
24140
24141 .
24142  So a command with two optional arguments looks like:
24143 \end_layout
24144
24145 \begin_layout Quote
24146
24147 \change_inserted -584632292 1615846730
24148
24149 \family typewriter
24150 Argument 1
24151 \end_layout
24152
24153 \begin_layout Quote
24154
24155 \change_inserted -584632292 1615846730
24156
24157 \family typewriter
24158 ...
24159 \end_layout
24160
24161 \begin_layout Quote
24162
24163 \change_inserted -584632292 1615846730
24164
24165 \family typewriter
24166 EndArgument
24167 \end_layout
24168
24169 \begin_layout Quote
24170
24171 \change_inserted -584632292 1615846730
24172
24173 \family typewriter
24174 Argument 2
24175 \end_layout
24176
24177 \begin_layout Quote
24178
24179 \change_inserted -584632292 1615846730
24180
24181 \family typewriter
24182 ...
24183 \end_layout
24184
24185 \begin_layout Quote
24186
24187 \change_inserted -584632292 1615846730
24188
24189 \family typewriter
24190 EndArgument
24191 \end_layout
24192
24193 \begin_layout Standard
24194
24195 \change_inserted -584632292 1615846730
24196 Inside the 
24197 \begin_inset Flex Code
24198 status collapsed
24199
24200 \begin_layout Plain Layout
24201
24202 \change_inserted -584632292 1615846730
24203 Argument
24204 \change_unchanged
24205
24206 \end_layout
24207
24208 \end_inset
24209
24210  definition,
24211  the following specifications are possible:
24212 \end_layout
24213
24214 \begin_layout Itemize
24215
24216 \change_inserted -584632292 1615846730
24217 \begin_inset Flex Code
24218 status collapsed
24219
24220 \begin_layout Plain Layout
24221
24222 \change_inserted -584632292 1615846730
24223 LabelString
24224 \change_unchanged
24225
24226 \end_layout
24227
24228 \end_inset
24229
24230  
24231 \begin_inset Flex Code
24232 status collapsed
24233
24234 \begin_layout Plain Layout
24235
24236 \change_inserted -584632292 1615846730
24237 [string]
24238 \change_unchanged
24239
24240 \end_layout
24241
24242 \end_inset
24243
24244  The string that will appear both in the menu (to insert this argument) and on the argument inset button (unless you also specify a separate 
24245 \begin_inset Flex Code
24246 status collapsed
24247
24248 \begin_layout Plain Layout
24249
24250 \change_inserted -584632292 1615846730
24251 MenuString
24252 \change_unchanged
24253
24254 \end_layout
24255
24256 \end_inset
24257
24258 ).
24259  For the menu,
24260  you can define an accelerator by appending the respective character to the string,
24261  divided by 
24262 \begin_inset Quotes eld
24263 \end_inset
24264
24265 |
24266 \begin_inset Quotes erd
24267 \end_inset
24268
24269  (e.
24270 \begin_inset space \thinspace{}
24271 \end_inset
24272
24273 g.
24274 \begin_inset space \space{}
24275 \end_inset
24276
24277
24278 \begin_inset Quotes eld
24279 \end_inset
24280
24281
24282 \begin_inset Flex Code
24283 status collapsed
24284
24285 \begin_layout Plain Layout
24286
24287 \change_inserted -584632292 1615846730
24288 Short Title|S
24289 \change_unchanged
24290
24291 \end_layout
24292
24293 \end_inset
24294
24295
24296 \begin_inset Quotes erd
24297 \end_inset
24298
24299 ).
24300 \end_layout
24301
24302 \begin_layout Itemize
24303
24304 \change_inserted -584632292 1615846730
24305 \begin_inset Flex Code
24306 status collapsed
24307
24308 \begin_layout Plain Layout
24309
24310 \change_inserted -584632292 1615846730
24311 MenuString
24312 \change_unchanged
24313
24314 \end_layout
24315
24316 \end_inset
24317
24318  
24319 \begin_inset Flex Code
24320 status collapsed
24321
24322 \begin_layout Plain Layout
24323
24324 \change_inserted -584632292 1615846730
24325 [string]
24326 \change_unchanged
24327
24328 \end_layout
24329
24330 \end_inset
24331
24332  A separate string for the menu.
24333  You can define an accelerator by appending the respective character to the string,
24334  divided by 
24335 \begin_inset Quotes eld
24336 \end_inset
24337
24338 |
24339 \begin_inset Quotes erd
24340 \end_inset
24341
24342  (e.
24343 \begin_inset space \thinspace{}
24344 \end_inset
24345
24346 g.
24347 \begin_inset space \space{}
24348 \end_inset
24349
24350
24351 \begin_inset Quotes eld
24352 \end_inset
24353
24354
24355 \begin_inset Flex Code
24356 status collapsed
24357
24358 \begin_layout Plain Layout
24359
24360 \change_inserted -584632292 1615846730
24361 Short Title|S
24362 \change_unchanged
24363
24364 \end_layout
24365
24366 \end_inset
24367
24368
24369 \begin_inset Quotes erd
24370 \end_inset
24371
24372 ).
24373  This specification is optional.
24374  If it is not given the 
24375 \begin_inset Flex Code
24376 status collapsed
24377
24378 \begin_layout Plain Layout
24379
24380 \change_inserted -584632292 1615846730
24381 LabelString
24382 \change_unchanged
24383
24384 \end_layout
24385
24386 \end_inset
24387
24388  will be used instead for the menu.
24389 \end_layout
24390
24391 \begin_layout Itemize
24392
24393 \change_inserted -584632292 1615846730
24394 \begin_inset Flex Code
24395 status collapsed
24396
24397 \begin_layout Plain Layout
24398
24399 \change_inserted -584632292 1615846730
24400 Tooltip
24401 \change_unchanged
24402
24403 \end_layout
24404
24405 \end_inset
24406
24407  
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412
24413 \change_inserted -584632292 1615846730
24414 [string]
24415 \change_unchanged
24416
24417 \end_layout
24418
24419 \end_inset
24420
24421  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
24422 \end_layout
24423
24424 \begin_layout Itemize
24425
24426 \change_inserted -584632292 1615846730
24427 \begin_inset Flex Code
24428 status collapsed
24429
24430 \begin_layout Plain Layout
24431
24432 \change_inserted -584632292 1615846730
24433 Mandatory
24434 \change_unchanged
24435
24436 \end_layout
24437
24438 \end_inset
24439
24440  [
24441 \begin_inset Flex Code
24442 status collapsed
24443
24444 \begin_layout Plain Layout
24445
24446 \change_inserted -584632292 1615846730
24447
24448 \emph on
24449 0
24450 \change_unchanged
24451
24452 \end_layout
24453
24454 \end_inset
24455
24456 ,
24457 \begin_inset space \thinspace{}
24458 \end_inset
24459
24460
24461 \begin_inset Flex Code
24462 status collapsed
24463
24464 \begin_layout Plain Layout
24465
24466 \change_inserted -584632292 1615846730
24467 1
24468 \change_unchanged
24469
24470 \end_layout
24471
24472 \end_inset
24473
24474 ] Declare if this is a mandatory (1) or an optional (0) argument.
24475  Mandatory arguments will be output empty if not given,
24476  while optional arguments will not be output at all.
24477  By default,
24478  mandatory arguments are delimited by 
24479 \begin_inset Flex Code
24480 status collapsed
24481
24482 \begin_layout Plain Layout
24483
24484 \change_inserted -584632292 1615846730
24485 {...}
24486 \change_unchanged
24487
24488 \end_layout
24489
24490 \end_inset
24491
24492 ,
24493  while optional arguments are delimited by 
24494 \begin_inset Flex Code
24495 status collapsed
24496
24497 \begin_layout Plain Layout
24498
24499 \change_inserted -584632292 1615846730
24500 [...]
24501 \change_unchanged
24502
24503 \end_layout
24504
24505 \end_inset
24506
24507
24508 \end_layout
24509
24510 \begin_layout Itemize
24511
24512 \change_inserted -584632292 1615846730
24513 \begin_inset Flex Code
24514 status collapsed
24515
24516 \begin_layout Plain Layout
24517
24518 \change_inserted -584632292 1615846730
24519 NewlineCmd
24520 \change_unchanged
24521
24522 \end_layout
24523
24524 \end_inset
24525
24526  
24527 \begin_inset Flex Code
24528 status collapsed
24529
24530 \begin_layout Plain Layout
24531
24532 \change_inserted -584632292 1615846730
24533 [string]
24534 \change_unchanged
24535
24536 \end_layout
24537
24538 \end_inset
24539
24540  Option to define a different command (from the default 
24541 \begin_inset Flex Code
24542 status collapsed
24543
24544 \begin_layout Plain Layout
24545
24546 \change_inserted -584632292 1615846730
24547
24548 \backslash
24549
24550 \backslash
24551
24552 \change_unchanged
24553
24554 \end_layout
24555
24556 \end_inset
24557
24558 ) to be used for line breaks.
24559  The initial backslash must not be specified.
24560 \end_layout
24561
24562 \begin_layout Itemize
24563
24564 \change_inserted -584632292 1615846730
24565 \begin_inset Flex Code
24566 status collapsed
24567
24568 \begin_layout Plain Layout
24569
24570 \change_inserted -584632292 1615846730
24571 Requires
24572 \change_unchanged
24573
24574 \end_layout
24575
24576 \end_inset
24577
24578  
24579 \begin_inset Flex Code
24580 status collapsed
24581
24582 \begin_layout Plain Layout
24583
24584 \change_inserted -584632292 1615846730
24585 [int=0]
24586 \change_unchanged
24587
24588 \end_layout
24589
24590 \end_inset
24591
24592  defines another argument
24593 \change_inserted -712698321 1699562312
24594  or arguments
24595 \change_inserted -584632292 1615846730
24596  (by 
24597 \change_deleted -712698321 1699562317
24598 its
24599 \change_inserted -712698321 1699562318
24600 their
24601 \change_inserted -584632292 1615846730
24602  number) which this argument requires to be output if it is itself output.
24603  E.
24604 \begin_inset space \thinspace{}
24605 \end_inset
24606
24607 g.,
24608  in \SpecialChar LaTeX
24609  commands,
24610  optional arguments often require previous optional arguments to be output (at least empty),
24611  as in 
24612 \begin_inset Flex Code
24613 status collapsed
24614
24615 \begin_layout Plain Layout
24616
24617 \change_inserted -584632292 1615846730
24618
24619 \backslash
24620 command[][argument]{text}
24621 \change_unchanged
24622
24623 \end_layout
24624
24625 \end_inset
24626
24627 .
24628  This can be achieved by the statement 
24629 \begin_inset Flex Code
24630 status collapsed
24631
24632 \begin_layout Plain Layout
24633
24634 \change_inserted -584632292 1615846730
24635 Requires 1
24636 \change_unchanged
24637
24638 \end_layout
24639
24640 \end_inset
24641
24642  within 
24643 \begin_inset Flex Code
24644 status collapsed
24645
24646 \begin_layout Plain Layout
24647
24648 \change_inserted -584632292 1615846730
24649 Argument 2
24650 \change_unchanged
24651
24652 \end_layout
24653
24654 \end_inset
24655
24656 .
24657
24658 \change_inserted -712698321 1699562142
24659  If multiple arguments are required,
24660  separate them by comma (e.g.,
24661  
24662 \begin_inset Flex Code
24663 status collapsed
24664
24665 \begin_layout Plain Layout
24666
24667 \change_inserted -712698321 1699562142
24668 Requires 1,2
24669 \change_unchanged
24670
24671 \end_layout
24672
24673 \end_inset
24674
24675 ).
24676 \change_unchanged
24677
24678 \end_layout
24679
24680 \begin_layout Itemize
24681
24682 \change_inserted -584632292 1615846730
24683 \begin_inset Flex Code
24684 status collapsed
24685
24686 \begin_layout Plain Layout
24687
24688 \change_inserted -584632292 1615846730
24689 LeftDelim
24690 \change_unchanged
24691
24692 \end_layout
24693
24694 \end_inset
24695
24696  
24697 \begin_inset Flex Code
24698 status collapsed
24699
24700 \begin_layout Plain Layout
24701
24702 \change_inserted -584632292 1615846730
24703 [string]
24704 \change_unchanged
24705
24706 \end_layout
24707
24708 \end_inset
24709
24710  defines a custom left delimiter (instead of 
24711 \begin_inset Flex Code
24712 status collapsed
24713
24714 \begin_layout Plain Layout
24715
24716 \change_inserted -584632292 1615846730
24717 {
24718 \change_unchanged
24719
24720 \end_layout
24721
24722 \end_inset
24723
24724  or 
24725 \begin_inset Flex Code
24726 status collapsed
24727
24728 \begin_layout Plain Layout
24729
24730 \change_inserted -584632292 1615846730
24731 [
24732 \change_unchanged
24733
24734 \end_layout
24735
24736 \end_inset
24737
24738 ).
24739  A line break in the output can be indicated by 
24740 \begin_inset Flex Code
24741 status collapsed
24742
24743 \begin_layout Plain Layout
24744
24745 \change_inserted -584632292 1615846730
24746 <br/>
24747 \change_unchanged
24748
24749 \end_layout
24750
24751 \end_inset
24752
24753 .
24754 \end_layout
24755
24756 \begin_layout Itemize
24757
24758 \change_inserted -584632292 1615846730
24759 \begin_inset Flex Code
24760 status collapsed
24761
24762 \begin_layout Plain Layout
24763
24764 \change_inserted -584632292 1615846730
24765 RightDelim
24766 \change_unchanged
24767
24768 \end_layout
24769
24770 \end_inset
24771
24772  
24773 \begin_inset Flex Code
24774 status collapsed
24775
24776 \begin_layout Plain Layout
24777
24778 \change_inserted -584632292 1615846730
24779 [string]
24780 \change_unchanged
24781
24782 \end_layout
24783
24784 \end_inset
24785
24786  defines a custom right delimiter (instead of 
24787 \begin_inset Flex Code
24788 status collapsed
24789
24790 \begin_layout Plain Layout
24791
24792 \change_inserted -584632292 1615846730
24793 }
24794 \change_unchanged
24795
24796 \end_layout
24797
24798 \end_inset
24799
24800  or 
24801 \begin_inset Flex Code
24802 status collapsed
24803
24804 \begin_layout Plain Layout
24805
24806 \change_inserted -584632292 1615846730
24807 ]
24808 \change_unchanged
24809
24810 \end_layout
24811
24812 \end_inset
24813
24814 ).
24815  A line break in the output can be indicated by 
24816 \begin_inset Flex Code
24817 status collapsed
24818
24819 \begin_layout Plain Layout
24820
24821 \change_inserted -584632292 1615846730
24822 <br/>
24823 \change_unchanged
24824
24825 \end_layout
24826
24827 \end_inset
24828
24829 .
24830 \end_layout
24831
24832 \begin_layout Itemize
24833
24834 \change_inserted -584632292 1615846730
24835 \begin_inset Flex Code
24836 status collapsed
24837
24838 \begin_layout Plain Layout
24839
24840 \change_inserted -584632292 1615846730
24841 DefaultArg
24842 \change_unchanged
24843
24844 \end_layout
24845
24846 \end_inset
24847
24848  
24849 \begin_inset Flex Code
24850 status collapsed
24851
24852 \begin_layout Plain Layout
24853
24854 \change_inserted -584632292 1615846730
24855 [string]
24856 \change_unchanged
24857
24858 \end_layout
24859
24860 \end_inset
24861
24862  defines an argument that is inserted if and only if no user-specified arguments were given,
24863  i.
24864 \begin_inset space \thinspace{}
24865 \end_inset
24866
24867 e.
24868 \begin_inset space \space{}
24869 \end_inset
24870
24871 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
24872  Multiple arguments need to be separated by comma.
24873 \end_layout
24874
24875 \begin_layout Itemize
24876
24877 \change_inserted -584632292 1615846730
24878 \begin_inset Flex Code
24879 status collapsed
24880
24881 \begin_layout Plain Layout
24882
24883 \change_inserted -584632292 1615846730
24884 PresetArg
24885 \change_unchanged
24886
24887 \end_layout
24888
24889 \end_inset
24890
24891  
24892 \begin_inset Flex Code
24893 status collapsed
24894
24895 \begin_layout Plain Layout
24896
24897 \change_inserted -584632292 1615846730
24898 [string]
24899 \change_unchanged
24900
24901 \end_layout
24902
24903 \end_inset
24904
24905  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
24906  Multiple arguments need to be separated by comma.
24907 \end_layout
24908
24909 \begin_layout Itemize
24910
24911 \change_inserted -584632292 1615846730
24912 \begin_inset Flex Code
24913 status collapsed
24914
24915 \begin_layout Plain Layout
24916
24917 \change_inserted -584632292 1615846730
24918 Font
24919 \change_unchanged
24920
24921 \end_layout
24922
24923 \end_inset
24924
24925  The font used for the argument content,
24926  see 
24927 \begin_inset CommandInset ref
24928 LatexCommand ref
24929 reference "subsec:Font-description"
24930 nolink "false"
24931
24932 \end_inset
24933
24934 .
24935 \end_layout
24936
24937 \begin_layout Itemize
24938
24939 \change_inserted -584632292 1615846730
24940 \begin_inset Flex Code
24941 status collapsed
24942
24943 \begin_layout Plain Layout
24944
24945 \change_inserted -584632292 1615846730
24946 FreeSpacing
24947 \change_unchanged
24948
24949 \end_layout
24950
24951 \end_inset
24952
24953  [
24954 \begin_inset Flex Code
24955 status collapsed
24956
24957 \begin_layout Plain Layout
24958
24959 \change_inserted -584632292 1615846730
24960
24961 \emph on
24962 0
24963 \change_unchanged
24964
24965 \end_layout
24966
24967 \end_inset
24968
24969 ,
24970 \begin_inset space \thinspace{}
24971 \end_inset
24972
24973
24974 \begin_inset Flex Code
24975 status collapsed
24976
24977 \begin_layout Plain Layout
24978
24979 \change_inserted -584632292 1615846730
24980 1
24981 \change_unchanged
24982
24983 \end_layout
24984
24985 \end_inset
24986
24987 ] As with paragraph styles,
24988  see 
24989 \begin_inset CommandInset ref
24990 LatexCommand ref
24991 reference "subsec:Paragraph-Styles"
24992 nolink "false"
24993
24994 \end_inset
24995
24996 .
24997 \end_layout
24998
24999 \begin_layout Itemize
25000
25001 \change_inserted -584632292 1615846730
25002 \begin_inset Flex Code
25003 status collapsed
25004
25005 \begin_layout Plain Layout
25006
25007 \change_inserted -584632292 1615846730
25008 LabelFont
25009 \change_unchanged
25010
25011 \end_layout
25012
25013 \end_inset
25014
25015  The font used for the label;
25016  see 
25017 \begin_inset CommandInset ref
25018 LatexCommand ref
25019 reference "subsec:Font-description"
25020 nolink "false"
25021
25022 \end_inset
25023
25024 .
25025 \end_layout
25026
25027 \begin_layout Itemize
25028
25029 \change_inserted -584632292 1615846730
25030 \begin_inset Flex Code
25031 status collapsed
25032
25033 \begin_layout Plain Layout
25034
25035 \change_inserted -584632292 1615846730
25036 Decoration
25037 \change_unchanged
25038
25039 \end_layout
25040
25041 \end_inset
25042
25043  [
25044 \begin_inset Flex Code
25045 status collapsed
25046
25047 \begin_layout Plain Layout
25048
25049 \change_inserted -584632292 1615846730
25050
25051 \emph on
25052 Classic
25053 \emph default
25054 ,
25055  Minimalistic,
25056  Conglomerate
25057 \change_unchanged
25058
25059 \end_layout
25060
25061 \end_inset
25062
25063 ] describes the rendering style used for the inset's frame and buttons.
25064 \end_layout
25065
25066 \begin_layout Itemize
25067
25068 \change_inserted -584632292 1615846730
25069 \begin_inset Flex Code
25070 status collapsed
25071
25072 \begin_layout Plain Layout
25073
25074 \change_inserted -584632292 1615846730
25075 AutoInsert
25076 \change_unchanged
25077
25078 \end_layout
25079
25080 \end_inset
25081
25082  
25083 \begin_inset Flex Code
25084 status collapsed
25085
25086 \begin_layout Plain Layout
25087
25088 \change_inserted -584632292 1615846730
25089 [int=0]
25090 \change_unchanged
25091
25092 \end_layout
25093
25094 \end_inset
25095
25096  If this is set to 
25097 \begin_inset Flex Code
25098 status collapsed
25099
25100 \begin_layout Plain Layout
25101
25102 \change_inserted -584632292 1615846730
25103 1
25104 \change_unchanged
25105
25106 \end_layout
25107
25108 \end_inset
25109
25110 ,
25111  this argument is automatically inserted when the respective style is selected.
25112 \end_layout
25113
25114 \begin_layout Itemize
25115
25116 \change_inserted -584632292 1615846730
25117 \begin_inset Flex Code
25118 status collapsed
25119
25120 \begin_layout Plain Layout
25121
25122 \change_inserted -584632292 1615846730
25123 InsertOnNewline
25124 \change_unchanged
25125
25126 \end_layout
25127
25128 \end_inset
25129
25130  
25131 \begin_inset Flex Code
25132 status collapsed
25133
25134 \begin_layout Plain Layout
25135
25136 \change_inserted -584632292 1615846730
25137 [int=0]
25138 \change_unchanged
25139
25140 \end_layout
25141
25142 \end_inset
25143
25144  If this is set to 
25145 \begin_inset Flex Code
25146 status collapsed
25147
25148 \begin_layout Plain Layout
25149
25150 \change_inserted -584632292 1615846730
25151 1
25152 \change_unchanged
25153
25154 \end_layout
25155
25156 \end_inset
25157
25158 ,
25159  this argument will be inserted on a new line with 
25160 \begin_inset Flex Code
25161 status collapsed
25162
25163 \begin_layout Plain Layout
25164
25165 \change_inserted -584632292 1615846730
25166 AutoInsert
25167 \change_unchanged
25168
25169 \end_layout
25170
25171 \end_inset
25172
25173  (only available within Flex insets).
25174 \end_layout
25175
25176 \begin_layout Itemize
25177
25178 \change_inserted -584632292 1615846730
25179 \begin_inset Flex Code
25180 status collapsed
25181
25182 \begin_layout Plain Layout
25183
25184 \change_inserted -584632292 1615846730
25185 InsertCotext
25186 \change_unchanged
25187
25188 \end_layout
25189
25190 \end_inset
25191
25192  
25193 \begin_inset Flex Code
25194 status collapsed
25195
25196 \begin_layout Plain Layout
25197
25198 \change_inserted -584632292 1615846730
25199 [int=0]
25200 \change_unchanged
25201
25202 \end_layout
25203
25204 \end_inset
25205
25206  If this is set to 
25207 \begin_inset Flex Code
25208 status collapsed
25209
25210 \begin_layout Plain Layout
25211
25212 \change_inserted -584632292 1615846730
25213 1
25214 \change_unchanged
25215
25216 \end_layout
25217
25218 \end_inset
25219
25220 ,
25221  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
25222 \end_layout
25223
25224 \begin_layout Itemize
25225
25226 \change_inserted -584632292 1615846730
25227 \begin_inset Flex Code
25228 status collapsed
25229
25230 \begin_layout Plain Layout
25231
25232 \change_inserted -584632292 1615846730
25233 PassThru
25234 \change_unchanged
25235
25236 \end_layout
25237
25238 \end_inset
25239
25240  [
25241 \begin_inset Flex Code
25242 status collapsed
25243
25244 \begin_layout Plain Layout
25245
25246 \change_inserted -584632292 1615846730
25247
25248 \emph on
25249 inherited
25250 \emph default
25251 ,
25252  true,
25253  false
25254 \change_unchanged
25255
25256 \end_layout
25257
25258 \end_inset
25259
25260 ] Whether the contents of this argument should be output in raw form,
25261  meaning without special translations that \SpecialChar LaTeX
25262  would require.
25263  By default,
25264  the 
25265 \begin_inset Flex Code
25266 status collapsed
25267
25268 \begin_layout Plain Layout
25269
25270 \change_inserted -584632292 1615846730
25271 PassThru
25272 \change_unchanged
25273
25274 \end_layout
25275
25276 \end_inset
25277
25278  status is inherited by the inset or paragraph layout the argument belongs to,
25279  true and false change the status for the given argument only.
25280 \end_layout
25281
25282 \begin_layout Itemize
25283
25284 \change_inserted -584632292 1615846730
25285 \begin_inset Flex Code
25286 status collapsed
25287
25288 \begin_layout Plain Layout
25289
25290 \change_inserted -584632292 1615846730
25291 PassThruChars
25292 \change_unchanged
25293
25294 \end_layout
25295
25296 \end_inset
25297
25298  [
25299 \begin_inset Flex Code
25300 status collapsed
25301
25302 \begin_layout Plain Layout
25303
25304 \change_inserted -584632292 1615846730
25305 string of characters
25306 \change_unchanged
25307
25308 \end_layout
25309
25310 \end_inset
25311
25312 ]
25313 \family typewriter
25314  
25315 \family default
25316 Defines individual characters
25317 \begin_inset Newline linebreak
25318 \end_inset
25319
25320 that should be output in raw form,
25321  meaning without special translations that \SpecialChar LaTeX
25322  would require.
25323  Note that,
25324  contrary to PassThru,
25325  this needs to be explicitly defined for arguments.
25326  That is,
25327  arguments do not inherit PassThruChars from their parent inset or layout.
25328 \end_layout
25329
25330 \begin_layout Itemize
25331
25332 \change_inserted -584632292 1615846730
25333 \begin_inset Flex Code
25334 status collapsed
25335
25336 \begin_layout Plain Layout
25337
25338 \change_inserted -584632292 1615846730
25339 IsTocCaption
25340 \change_unchanged
25341
25342 \end_layout
25343
25344 \end_inset
25345
25346  [
25347 \begin_inset Flex Code
25348 status collapsed
25349
25350 \begin_layout Plain Layout
25351
25352 \change_inserted -584632292 1615846730
25353
25354 \emph on
25355 0
25356 \change_unchanged
25357
25358 \end_layout
25359
25360 \end_inset
25361
25362 ,
25363 \begin_inset space \thinspace{}
25364 \end_inset
25365
25366
25367 \begin_inset Flex Code
25368 status collapsed
25369
25370 \begin_layout Plain Layout
25371
25372 \change_inserted -584632292 1615846730
25373 1
25374 \change_unchanged
25375
25376 \end_layout
25377
25378 \end_inset
25379
25380 ] If this is set to 1,
25381  the argument will output its content in the corresponding item in the table of contents.
25382  See AddToToc.
25383 \end_layout
25384
25385 \begin_layout Standard
25386
25387 \change_inserted -584632292 1615846730
25388 By default,
25389  the text entered in the \SpecialChar LyX
25390  workarea in the respective layout is the last (mandatory) argument of a command if the 
25391 \begin_inset Flex Code
25392 status collapsed
25393
25394 \begin_layout Plain Layout
25395
25396 \change_inserted -584632292 1615846730
25397 LatexType
25398 \change_unchanged
25399
25400 \end_layout
25401
25402 \end_inset
25403
25404  is 
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409
25410 \change_inserted -584632292 1615846730
25411 Command
25412 \change_unchanged
25413
25414 \end_layout
25415
25416 \end_inset
25417
25418 .
25419  However,
25420  arguments with the prefix 
25421 \begin_inset Flex Code
25422 status collapsed
25423
25424 \begin_layout Plain Layout
25425
25426 \change_inserted -584632292 1615846730
25427 post:
25428 \change_unchanged
25429
25430 \end_layout
25431
25432 \end_inset
25433
25434  are output after this workarea argument.
25435  Note that post-argument numbering restarts at 1,
25436  so the first argument following the workarea argument is 
25437 \begin_inset Flex Code
25438 status collapsed
25439
25440 \begin_layout Plain Layout
25441
25442 \change_inserted -584632292 1615846730
25443 post:1
25444 \change_unchanged
25445
25446 \end_layout
25447
25448 \end_inset
25449
25450 .
25451  Post-arguments are ignored in any other 
25452 \begin_inset Flex Code
25453 status collapsed
25454
25455 \begin_layout Plain Layout
25456
25457 \change_inserted -584632292 1615846730
25458 LatexType
25459 \change_unchanged
25460
25461 \end_layout
25462
25463 \end_inset
25464
25465  than 
25466 \begin_inset Flex Code
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470
25471 \change_inserted -584632292 1615846730
25472 Command
25473 \change_unchanged
25474
25475 \end_layout
25476
25477 \end_inset
25478
25479 .
25480 \end_layout
25481
25482 \begin_layout Standard
25483
25484 \change_inserted -584632292 1615846730
25485 Arguments for list 
25486 \begin_inset Flex Code
25487 status collapsed
25488
25489 \begin_layout Plain Layout
25490
25491 \change_inserted -584632292 1615846730
25492
25493 \backslash
25494 item
25495 \change_unchanged
25496
25497 \end_layout
25498
25499 \end_inset
25500
25501 s (as in 
25502 \begin_inset Flex Code
25503 status collapsed
25504
25505 \begin_layout Plain Layout
25506
25507 \change_inserted -584632292 1615846730
25508
25509 \backslash
25510 item[foo]
25511 \change_unchanged
25512
25513 \end_layout
25514
25515 \end_inset
25516
25517 ) have the prefix 
25518 \begin_inset Flex Code
25519 status collapsed
25520
25521 \begin_layout Plain Layout
25522
25523 \change_inserted -584632292 1615846730
25524 item:
25525 \change_unchanged
25526
25527 \end_layout
25528
25529 \end_inset
25530
25531  followed by the number (e.
25532 \begin_inset space \thinspace{}
25533 \end_inset
25534
25535 g.
25536 \begin_inset space \space{}
25537 \end_inset
25538
25539
25540 \begin_inset Flex Code
25541 status collapsed
25542
25543 \begin_layout Plain Layout
25544
25545 \change_inserted -584632292 1615846730
25546 Argument item:1
25547 \change_unchanged
25548
25549 \end_layout
25550
25551 \end_inset
25552
25553 ).
25554 \end_layout
25555
25556 \begin_layout Standard
25557
25558 \change_inserted -584632292 1615846730
25559 Finally,
25560  there is a special argument type with the prefix 
25561 \begin_inset Flex Code
25562 status collapsed
25563
25564 \begin_layout Plain Layout
25565
25566 \change_inserted -584632292 1615846730
25567 listpreamble:
25568 \change_unchanged
25569
25570 \end_layout
25571
25572 \end_inset
25573
25574 .
25575  It is not really an argument,
25576  but uses the argument interface (thus,
25577  the prefix is also followed by a number,
25578  e.
25579 \begin_inset space \thinspace{}
25580 \end_inset
25581
25582 g.
25583  
25584 \begin_inset Flex Code
25585 status collapsed
25586
25587 \begin_layout Plain Layout
25588
25589 \change_inserted -584632292 1615846730
25590 Argument listpreamble:1
25591 \change_unchanged
25592
25593 \end_layout
25594
25595 \end_inset
25596
25597 ).
25598  As the name implies,
25599  it is targeted at lists such as 
25600 \family sans
25601 Itemize
25602 \family default
25603 ,
25604  
25605 \family sans
25606 Enumerate
25607 \family default
25608 ,
25609  
25610 \family sans
25611 Description
25612 \family default
25613 ,
25614  or 
25615 \family sans
25616 Bibliography
25617 \family default
25618 .
25619  Its content will be output at the list start,
25620  before the first 
25621 \begin_inset Flex Code
25622 status collapsed
25623
25624 \begin_layout Plain Layout
25625
25626 \change_inserted -584632292 1615846730
25627
25628 \backslash
25629 item
25630 \change_unchanged
25631
25632 \end_layout
25633
25634 \end_inset
25635
25636 ,
25637  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
25638 ).
25639  This way,
25640  users can insert redefinitions (of lengths etc.) to individual lists.
25641  By default,
25642  these arguments do not have a delimiter.
25643 \change_unchanged
25644
25645 \end_layout
25646
25647 \begin_layout Subsection
25648 Counters
25649 \begin_inset CommandInset label
25650 LatexCommand label
25651 name "subsec:Counters"
25652
25653 \end_inset
25654
25655
25656 \end_layout
25657
25658 \begin_layout Standard
25659 It is necessary to define the counters (
25660 \begin_inset Flex Noun
25661 status collapsed
25662
25663 \begin_layout Plain Layout
25664 chapter
25665 \end_layout
25666
25667 \end_inset
25668
25669 ,
25670  
25671 \begin_inset Flex Noun
25672 status collapsed
25673
25674 \begin_layout Plain Layout
25675 figure
25676 \end_layout
25677
25678 \end_inset
25679
25680 ,
25681  \SpecialChar ldots
25682 ) in the text class itself.
25683  The standard counters are defined in the file 
25684 \begin_inset Flex Code
25685 status collapsed
25686
25687 \begin_layout Plain Layout
25688 stdcounters.inc
25689 \end_layout
25690
25691 \end_inset
25692
25693 ,
25694  so you may have to do no more than add
25695 \end_layout
25696
25697 \begin_layout LyX-Code
25698 Input stdcounters.inc
25699 \end_layout
25700
25701 \begin_layout Standard
25702 to your layout file to get them to work.
25703  But if you want to define custom counters,
25704  then you can do so.
25705  The counter declaration must begin with:
25706 \end_layout
25707
25708 \begin_layout LyX-Code
25709 Counter CounterName
25710 \end_layout
25711
25712 \begin_layout Standard
25713 where of course `
25714 \begin_inset Flex Code
25715 status collapsed
25716
25717 \begin_layout Plain Layout
25718 CounterName
25719 \end_layout
25720
25721 \end_inset
25722
25723 ' is replaced by the name of the counter.
25724  And it must end with 
25725 \begin_inset Quotes eld
25726 \end_inset
25727
25728
25729 \begin_inset Flex Code
25730 status collapsed
25731
25732 \begin_layout Plain Layout
25733 End
25734 \end_layout
25735
25736 \end_inset
25737
25738
25739 \begin_inset Quotes erd
25740 \end_inset
25741
25742 .
25743  The following parameters can also be used:
25744 \end_layout
25745
25746 \begin_layout Description
25747 \begin_inset Flex Code
25748 status collapsed
25749
25750 \begin_layout Plain Layout
25751 InitialValue
25752 \end_layout
25753
25754 \end_inset
25755
25756  [
25757 \begin_inset Flex Code
25758 status collapsed
25759
25760 \begin_layout Plain Layout
25761 int=1
25762 \end_layout
25763
25764 \end_inset
25765
25766 ] Sets the initial value for the counter,
25767  to which it will be reset whenever that happens.
25768  Normally,
25769  one will want the default,
25770  1.
25771 \end_layout
25772
25773 \begin_layout Description
25774 \begin_inset Flex Code
25775 status collapsed
25776
25777 \begin_layout Plain Layout
25778 LabelString
25779 \end_layout
25780
25781 \end_inset
25782
25783  [
25784 \begin_inset Flex Code
25785 status collapsed
25786
25787 \begin_layout Plain Layout
25788 string
25789 \end_layout
25790
25791 \end_inset
25792
25793 =
25794 \begin_inset Quotes erd
25795 \end_inset
25796
25797
25798 \begin_inset Quotes erd
25799 \end_inset
25800
25801 ] When defined,
25802  this string defines how the counter is displayed.
25803  Setting this value sets 
25804 \begin_inset Flex Code
25805 status collapsed
25806
25807 \begin_layout Plain Layout
25808 LabelStringAppendix
25809 \end_layout
25810
25811 \end_inset
25812
25813  to the same value.
25814  The following special constructs can be used in the string:
25815 \end_layout
25816
25817 \begin_deeper
25818 \begin_layout Itemize
25819 \begin_inset Flex Code
25820 status collapsed
25821
25822 \begin_layout Plain Layout
25823
25824 \backslash
25825 thecounter
25826 \end_layout
25827
25828 \end_inset
25829
25830  will be replaced by the expansion of the 
25831 \begin_inset Flex Code
25832 status collapsed
25833
25834 \begin_layout Plain Layout
25835 LabelString
25836 \end_layout
25837
25838 \end_inset
25839
25840  (or 
25841 \begin_inset Flex Code
25842 status collapsed
25843
25844 \begin_layout Plain Layout
25845 LabelStringAppendix
25846 \end_layout
25847
25848 \end_inset
25849
25850 ) of the counter 
25851 \begin_inset Flex Code
25852 status collapsed
25853
25854 \begin_layout Plain Layout
25855 counter
25856 \end_layout
25857
25858 \end_inset
25859
25860 .
25861  
25862 \end_layout
25863
25864 \begin_layout Itemize
25865 counter values can be expressed using \SpecialChar LaTeX
25866 -like macros
25867 \begin_inset Newline newline
25868 \end_inset
25869
25870
25871 \begin_inset Flex Code
25872 status collapsed
25873
25874 \begin_layout Plain Layout
25875
25876 \backslash
25877
25878 \emph on
25879 numbertype
25880 \emph default
25881 {
25882 \emph on
25883 counter
25884 \emph default
25885 }
25886 \end_layout
25887
25888 \end_inset
25889
25890 ,
25891  where 
25892 \begin_inset Flex Code
25893 status collapsed
25894
25895 \begin_layout Plain Layout
25896
25897 \emph on
25898 numbertype
25899 \end_layout
25900
25901 \end_inset
25902
25903  can be:
25904 \begin_inset Foot
25905 status collapsed
25906
25907 \begin_layout Plain Layout
25908
25909 \family roman
25910 \series medium
25911 \shape up
25912 \size normal
25913 \emph off
25914 \bar no
25915 \noun off
25916 \color none
25917 Actually,
25918  the situation is a bit more complicated:
25919  any
25920 \family default
25921 \series default
25922 \shape default
25923 \emph default
25924 \bar default
25925  
25926 \size default
25927 \emph on
25928 \noun default
25929 \color inherit
25930 numbertype
25931 \family roman
25932 \series medium
25933 \shape up
25934 \size normal
25935 \emph off
25936 \bar no
25937 \noun off
25938  other than those described below will produce arabic numerals.
25939  It would not be surprising to see this change in the future.
25940 \end_layout
25941
25942 \end_inset
25943
25944  
25945 \begin_inset Flex Code
25946 status collapsed
25947
25948 \begin_layout Plain Layout
25949 arabic
25950 \end_layout
25951
25952 \end_inset
25953
25954 :
25955  1,
25956  2,
25957  3,\SpecialChar ldots
25958 ;
25959  
25960 \begin_inset Flex Code
25961 status collapsed
25962
25963 \begin_layout Plain Layout
25964 alph
25965 \end_layout
25966
25967 \end_inset
25968
25969  for lower-case letters:
25970  a,
25971  b,
25972  c,
25973  \SpecialChar ldots
25974 ;
25975  
25976 \begin_inset Flex Code
25977 status collapsed
25978
25979 \begin_layout Plain Layout
25980 Alph
25981 \end_layout
25982
25983 \end_inset
25984
25985  for upper-case letters:
25986  A,
25987  B,
25988  C,
25989  \SpecialChar ldots
25990 ;
25991  
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996 roman
25997 \end_layout
25998
25999 \end_inset
26000
26001  for lower-case roman numerals:
26002  i,
26003  ii,
26004  iii,
26005  \SpecialChar ldots
26006 ;
26007  
26008 \begin_inset Flex Code
26009 status collapsed
26010
26011 \begin_layout Plain Layout
26012 Roman
26013 \end_layout
26014
26015 \end_inset
26016
26017  for upper-case roman numerals:
26018  I,
26019  II,
26020  III\SpecialChar ldots
26021 ;
26022  
26023 \begin_inset Flex Code
26024 status collapsed
26025
26026 \begin_layout Plain Layout
26027 hebrew
26028 \end_layout
26029
26030 \end_inset
26031
26032  for hebrew numerals.
26033 \end_layout
26034
26035 \end_deeper
26036 \begin_layout Standard
26037 If LabelString is not defined,
26038  a default value is constructed as follows:
26039  if the counter has a 
26040 \change_deleted 731793113 1604355218
26041 master
26042 \change_inserted 731793113 1604355221
26043 parent
26044 \change_unchanged
26045  counter 
26046 \begin_inset Flex Code
26047 status collapsed
26048
26049 \begin_layout Plain Layout
26050
26051 \change_deleted 731793113 1604355223
26052 master
26053 \change_inserted 731793113 1604355226
26054 parent
26055 \change_unchanged
26056
26057 \end_layout
26058
26059 \end_inset
26060
26061  (defined via 
26062 \begin_inset Flex Code
26063 status collapsed
26064
26065 \begin_layout Plain Layout
26066 Within
26067 \end_layout
26068
26069 \end_inset
26070
26071 ),
26072  the string
26073 \begin_inset Newline newline
26074 \end_inset
26075
26076
26077 \begin_inset Flex Code
26078 status collapsed
26079
26080 \begin_layout Plain Layout
26081
26082 \backslash
26083 the
26084 \change_inserted 731793113 1604355228
26085 parent
26086 \change_deleted 731793113 1604355230
26087 master
26088 \change_unchanged
26089 .
26090 \backslash
26091 arabic{counter}
26092 \end_layout
26093
26094 \end_inset
26095
26096  is used;
26097  otherwise the string 
26098 \begin_inset Flex Code
26099 status collapsed
26100
26101 \begin_layout Plain Layout
26102
26103 \backslash
26104 arabic{counter}
26105 \end_layout
26106
26107 \end_inset
26108
26109  is used.
26110 \end_layout
26111
26112 \begin_layout Description
26113 \begin_inset Flex Code
26114 status collapsed
26115
26116 \begin_layout Plain Layout
26117 LabelStringAppendix
26118 \end_layout
26119
26120 \end_inset
26121
26122  [
26123 \begin_inset Flex Code
26124 status collapsed
26125
26126 \begin_layout Plain Layout
26127 string
26128 \end_layout
26129
26130 \end_inset
26131
26132
26133 \begin_inset Quotes eld
26134 \end_inset
26135
26136
26137 \begin_inset Quotes erd
26138 \end_inset
26139
26140 ] Same as 
26141 \begin_inset Flex Code
26142 status collapsed
26143
26144 \begin_layout Plain Layout
26145 LabelString
26146 \end_layout
26147
26148 \end_inset
26149
26150 ,
26151  but for use in the Appendix.
26152 \change_inserted -584632292 1607202551
26153
26154 \end_layout
26155
26156 \begin_layout Description
26157
26158 \change_inserted -584632292 1607202682
26159 \begin_inset Flex Code
26160 status open
26161
26162 \begin_layout Plain Layout
26163 LaTeXName
26164 \end_layout
26165
26166 \end_inset
26167
26168  [
26169 \begin_inset Flex Code
26170 status open
26171
26172 \begin_layout Plain Layout
26173
26174 \change_inserted -584632292 1607202576
26175 string
26176 \change_unchanged
26177
26178 \end_layout
26179
26180 \end_inset
26181
26182  = 
26183 \begin_inset Quotes eld
26184 \end_inset
26185
26186
26187 \begin_inset Quotes erd
26188 \end_inset
26189
26190 ] The counter name as used in \SpecialChar LaTeX
26191 .
26192  (
26193 \change_inserted 34634807 1619711355
26194 e
26195 \change_deleted 34634807 1619711355
26196 E
26197 \change_inserted -584632292 1607202682
26198 .g.,
26199  in \SpecialChar LyX
26200 ,
26201  there is a counter named `theorem',
26202  but it is output to \SpecialChar LaTeX
26203  as `thm'.)
26204 \change_unchanged
26205
26206 \end_layout
26207
26208 \begin_layout Description
26209 \begin_inset Flex Code
26210 status collapsed
26211
26212 \begin_layout Plain Layout
26213 PrettyFormat
26214 \end_layout
26215
26216 \end_inset
26217
26218  [
26219 \begin_inset Flex Code
26220 status collapsed
26221
26222 \begin_layout Plain Layout
26223 string
26224 \end_layout
26225
26226 \end_inset
26227
26228 =
26229 \begin_inset Quotes erd
26230 \end_inset
26231
26232
26233 \begin_inset Quotes erd
26234 \end_inset
26235
26236 ] A format for use with formatted references to this counter.
26237  For example,
26238  one might want to have references to section numbers appear as 
26239 \begin_inset Quotes eld
26240 \end_inset
26241
26242 Section 2.4
26243 \begin_inset Quotes erd
26244 \end_inset
26245
26246 .
26247  The string 
26248 \change_deleted -584632292 1690588038
26249 should 
26250 \change_inserted -584632292 1690588041
26251 may 
26252 \change_unchanged
26253 contain 
26254 \begin_inset Quotes eld
26255 \end_inset
26256
26257 ##
26258 \begin_inset Quotes erd
26259 \end_inset
26260
26261
26262 \change_inserted -584632292 1690588059
26263  or a counter specification as in 
26264 \begin_inset Flex Code
26265 status open
26266
26267 \begin_layout Plain Layout
26268
26269 \change_inserted -584632292 1690588059
26270 LabelString
26271 \change_unchanged
26272
26273 \end_layout
26274
26275 \end_inset
26276
26277
26278 \change_unchanged
26279 .
26280  Th
26281 \change_inserted -584632292 1690588078
26282 e former
26283 \change_deleted -584632292 1690588076
26284 is
26285 \change_unchanged
26286  will be replaced by the counter number itself.
26287  So,
26288  for sections,
26289  it would be:
26290  Section ##
26291 \change_inserted -584632292 1690588159
26292 ,
26293  or perhaps:
26294  
26295 \change_deleted -712698321 1691671418
26296
26297 \backslash
26298 S
26299 \backslash
26300 arabic{section}
26301 \change_inserted -712698321 1691671418
26302
26303 \begin_inset Flex Code
26304 status open
26305
26306 \begin_layout Plain Layout
26307
26308 \change_inserted -712698321 1691671418
26309
26310 \backslash
26311 S
26312 \backslash
26313 arabic{section}
26314 \change_unchanged
26315
26316 \end_layout
26317
26318 \end_inset
26319
26320
26321 \change_inserted -584632292 1690588159
26322  (which might render as §2.7)
26323 \change_unchanged
26324 .
26325 \change_inserted -584632292 1690587966
26326
26327 \end_layout
26328
26329 \begin_layout Description
26330
26331 \change_inserted -584632292 1690588264
26332 \begin_inset Flex Code
26333 status collapsed
26334
26335 \begin_layout Plain Layout
26336
26337 \change_inserted -584632292 1690587970
26338 RefFormat
26339 \change_unchanged
26340
26341 \end_layout
26342
26343 \end_inset
26344
26345  [
26346 \begin_inset Flex Code
26347 status collapsed
26348
26349 \begin_layout Plain Layout
26350
26351 \change_inserted -584632292 1690587966
26352 string
26353 \change_unchanged
26354
26355 \end_layout
26356
26357 \end_inset
26358
26359 ,
26360  
26361 \begin_inset Flex Code
26362 status collapsed
26363
26364 \begin_layout Plain Layout
26365
26366 \change_inserted -584632292 1690587981
26367 string
26368 \change_unchanged
26369
26370 \end_layout
26371
26372 \end_inset
26373
26374 ] For use with `formatted references',
26375  specifically when a single counter is used with multiple sorts of styles.
26376  For example,
26377  the 
26378 \begin_inset Flex Code
26379 status open
26380
26381 \begin_layout Plain Layout
26382
26383 \change_inserted -584632292 1690588222
26384 theorem
26385 \change_unchanged
26386
26387 \end_layout
26388
26389 \end_inset
26390
26391  counter is often used for all sorts of theorem-like environments:
26392  Theorem,
26393  Lemma,
26394  
26395 \change_deleted -712698321 1691671691
26396 e
26397 \change_inserted -584632292 1690588264
26398 etc.
26399  The first argument gives a prefix used in the labels (e.g.,
26400  
26401 \begin_inset Quotes eld
26402 \end_inset
26403
26404 thm
26405 \begin_inset Quotes erd
26406 \end_inset
26407
26408  or 
26409 \begin_inset Quotes eld
26410 \end_inset
26411
26412 lem
26413 \begin_inset Quotes erd
26414 \end_inset
26415
26416 ),
26417  and the second a formatting string,
26418  as for 
26419 \begin_inset Flex Code
26420 status open
26421
26422 \begin_layout Plain Layout
26423
26424 \change_inserted -584632292 1690588181
26425 LabelString
26426 \change_unchanged
26427
26428 \end_layout
26429
26430 \end_inset
26431
26432  or 
26433 \begin_inset Flex Code
26434 status open
26435
26436 \begin_layout Plain Layout
26437
26438 \change_inserted -584632292 1690588177
26439 PrettyFormat
26440 \change_unchanged
26441
26442 \end_layout
26443
26444 \end_inset
26445
26446 .
26447  If this is not given,
26448  then 
26449 \begin_inset Flex Code
26450 status open
26451
26452 \begin_layout Plain Layout
26453
26454 \change_inserted -584632292 1690588264
26455 PrettyFormat
26456 \change_unchanged
26457
26458 \end_layout
26459
26460 \end_inset
26461
26462  is used.
26463 \end_layout
26464
26465 \begin_layout Description
26466 \begin_inset Flex Code
26467 status collapsed
26468
26469 \begin_layout Plain Layout
26470 Within
26471 \end_layout
26472
26473 \end_inset
26474
26475  [
26476 \begin_inset Flex Code
26477 status collapsed
26478
26479 \begin_layout Plain Layout
26480 string
26481 \end_layout
26482
26483 \end_inset
26484
26485 =
26486 \begin_inset Quotes erd
26487 \end_inset
26488
26489
26490 \begin_inset Quotes erd
26491 \end_inset
26492
26493 ] If this is set to the name of another counter,
26494  the present counter will be reset every time the other one is increased.
26495  For example,
26496  
26497 \begin_inset Flex Code
26498 status collapsed
26499
26500 \begin_layout Plain Layout
26501 subsection
26502 \end_layout
26503
26504 \end_inset
26505
26506  is numbered inside 
26507 \begin_inset Flex Code
26508 status collapsed
26509
26510 \begin_layout Plain Layout
26511 section
26512 \end_layout
26513
26514 \end_inset
26515
26516 .
26517 \end_layout
26518
26519 \begin_layout Subsection
26520 Font description
26521 \begin_inset CommandInset label
26522 LatexCommand label
26523 name "subsec:Font-description"
26524
26525 \end_inset
26526
26527
26528 \end_layout
26529
26530 \begin_layout Standard
26531 A font description looks like this:
26532 \end_layout
26533
26534 \begin_layout LyX-Code
26535 Font 
26536 \family roman
26537 \emph on
26538 or
26539 \family default
26540 \emph default
26541  LabelFont
26542 \emph on
26543  
26544 \family roman
26545 or
26546 \family default
26547 \emph default
26548  DefaultFont
26549 \end_layout
26550
26551 \begin_layout LyX-Code
26552  ...
26553 \end_layout
26554
26555 \begin_layout LyX-Code
26556 EndFont
26557 \end_layout
26558
26559 \begin_layout Standard
26560 The following commands are available:
26561 \end_layout
26562
26563 \begin_layout Description
26564 \begin_inset Flex Code
26565 status collapsed
26566
26567 \begin_layout Plain Layout
26568 Color
26569 \end_layout
26570
26571 \end_inset
26572
26573  [
26574 \change_deleted -712698321 1607682984
26575
26576 \begin_inset Flex Code
26577 status collapsed
26578
26579 \begin_layout Plain Layout
26580
26581 \emph on
26582 none
26583 \end_layout
26584
26585 \end_inset
26586
26587 ,
26588  
26589 \begin_inset Flex Code
26590 status collapsed
26591
26592 \begin_layout Plain Layout
26593 black
26594 \end_layout
26595
26596 \end_inset
26597
26598 ,
26599  
26600 \begin_inset Flex Code
26601 status collapsed
26602
26603 \begin_layout Plain Layout
26604 white
26605 \end_layout
26606
26607 \end_inset
26608
26609 ,
26610  
26611 \begin_inset Flex Code
26612 status collapsed
26613
26614 \begin_layout Plain Layout
26615 red
26616 \end_layout
26617
26618 \end_inset
26619
26620 ,
26621  
26622 \begin_inset Flex Code
26623 status collapsed
26624
26625 \begin_layout Plain Layout
26626 green
26627 \end_layout
26628
26629 \end_inset
26630
26631 ,
26632  
26633 \begin_inset Flex Code
26634 status collapsed
26635
26636 \begin_layout Plain Layout
26637 blue
26638 \end_layout
26639
26640 \end_inset
26641
26642 ,
26643  
26644 \begin_inset Flex Code
26645 status collapsed
26646
26647 \begin_layout Plain Layout
26648 cyan
26649 \end_layout
26650
26651 \end_inset
26652
26653 ,
26654  
26655 \begin_inset Flex Code
26656 status collapsed
26657
26658 \begin_layout Plain Layout
26659 magenta
26660 \end_layout
26661
26662 \end_inset
26663
26664 ,
26665  
26666 \begin_inset Flex Code
26667 status collapsed
26668
26669 \begin_layout Plain Layout
26670 yellow
26671 \end_layout
26672
26673 \end_inset
26674
26675 ,
26676  
26677 \begin_inset Flex Code
26678 status collapsed
26679
26680 \begin_layout Plain Layout
26681 brown
26682 \end_layout
26683
26684 \end_inset
26685
26686 ,
26687  
26688 \begin_inset Flex Code
26689 status collapsed
26690
26691 \begin_layout Plain Layout
26692 darkgray
26693 \end_layout
26694
26695 \end_inset
26696
26697 ,
26698  
26699 \begin_inset Flex Code
26700 status collapsed
26701
26702 \begin_layout Plain Layout
26703 gray
26704 \end_layout
26705
26706 \end_inset
26707
26708 ,
26709  
26710 \begin_inset Flex Code
26711 status collapsed
26712
26713 \begin_layout Plain Layout
26714 lightgray
26715 \end_layout
26716
26717 \end_inset
26718
26719 ,
26720  
26721 \begin_inset Flex Code
26722 status collapsed
26723
26724 \begin_layout Plain Layout
26725 lime
26726 \end_layout
26727
26728 \end_inset
26729
26730 ,
26731  
26732 \begin_inset Flex Code
26733 status collapsed
26734
26735 \begin_layout Plain Layout
26736 orange
26737 \end_layout
26738
26739 \end_inset
26740
26741 ,
26742  
26743 \begin_inset Flex Code
26744 status collapsed
26745
26746 \begin_layout Plain Layout
26747 olive
26748 \end_layout
26749
26750 \end_inset
26751
26752 ,
26753  
26754 \begin_inset Flex Code
26755 status collapsed
26756
26757 \begin_layout Plain Layout
26758 pink
26759 \end_layout
26760
26761 \end_inset
26762
26763 ,
26764  
26765 \begin_inset Flex Code
26766 status collapsed
26767
26768 \begin_layout Plain Layout
26769 purple
26770 \end_layout
26771
26772 \end_inset
26773
26774 ,
26775  
26776 \begin_inset Flex Code
26777 status collapsed
26778
26779 \begin_layout Plain Layout
26780 teal
26781 \end_layout
26782
26783 \end_inset
26784
26785 ,
26786  
26787 \begin_inset Flex Code
26788 status collapsed
26789
26790 \begin_layout Plain Layout
26791 violet
26792 \end_layout
26793
26794 \end_inset
26795
26796
26797 \change_inserted -712698321 1607683139
26798
26799 \begin_inset Flex Code
26800 status collapsed
26801
26802 \begin_layout Plain Layout
26803
26804 \change_inserted -712698321 1607683135
26805 string
26806 \change_unchanged
26807
26808 \end_layout
26809
26810 \end_inset
26811
26812 ] See appendix
26813 \begin_inset space ~
26814 \end_inset
26815
26816
26817 \begin_inset CommandInset ref
26818 LatexCommand ref
26819 reference "chap:Names-of-colors"
26820 plural "false"
26821 caps "false"
26822 noprefix "false"
26823 nolink "false"
26824
26825 \end_inset
26826
26827  for 
26828 \change_deleted -712698321 1607683144
26829 ]
26830 \change_inserted -712698321 1607683146
26831 valid arguments.
26832 \change_unchanged
26833
26834 \end_layout
26835
26836 \begin_layout Description
26837 \begin_inset Flex Code
26838 status collapsed
26839
26840 \begin_layout Plain Layout
26841 Family
26842 \end_layout
26843
26844 \end_inset
26845
26846  [
26847 \begin_inset Flex Code
26848 status collapsed
26849
26850 \begin_layout Plain Layout
26851
26852 \emph on
26853 Roman
26854 \end_layout
26855
26856 \end_inset
26857
26858 ,
26859  
26860 \begin_inset Flex Code
26861 status collapsed
26862
26863 \begin_layout Plain Layout
26864 Sans
26865 \end_layout
26866
26867 \end_inset
26868
26869 ,
26870  
26871 \begin_inset Flex Code
26872 status collapsed
26873
26874 \begin_layout Plain Layout
26875 Typewriter
26876 \end_layout
26877
26878 \end_inset
26879
26880 ]
26881 \end_layout
26882
26883 \begin_layout Description
26884 \begin_inset Flex Code
26885 status collapsed
26886
26887 \begin_layout Plain Layout
26888 Misc
26889 \end_layout
26890
26891 \end_inset
26892
26893  [
26894 \begin_inset Flex Code
26895 status collapsed
26896
26897 \begin_layout Plain Layout
26898 string
26899 \end_layout
26900
26901 \end_inset
26902
26903 ] Valid arguments are:
26904  
26905 \begin_inset Flex Code
26906 status collapsed
26907
26908 \begin_layout Plain Layout
26909 emph
26910 \end_layout
26911
26912 \end_inset
26913
26914 ,
26915  
26916 \begin_inset Flex Code
26917 status collapsed
26918
26919 \begin_layout Plain Layout
26920 noun
26921 \end_layout
26922
26923 \end_inset
26924
26925 ,
26926  
26927 \begin_inset Flex Code
26928 status collapsed
26929
26930 \begin_layout Plain Layout
26931 strikeout
26932 \end_layout
26933
26934 \end_inset
26935
26936 ,
26937  
26938 \begin_inset Flex Code
26939 status collapsed
26940
26941 \begin_layout Plain Layout
26942 underbar
26943 \end_layout
26944
26945 \end_inset
26946
26947 ,
26948  
26949 \begin_inset Flex Code
26950 status collapsed
26951
26952 \begin_layout Plain Layout
26953 uuline
26954 \end_layout
26955
26956 \end_inset
26957
26958 ,
26959  
26960 \begin_inset Flex Code
26961 status collapsed
26962
26963 \begin_layout Plain Layout
26964 uwave
26965 \end_layout
26966
26967 \end_inset
26968
26969 ,
26970  
26971 \begin_inset Flex Code
26972 status collapsed
26973
26974 \begin_layout Plain Layout
26975 no_emph
26976 \end_layout
26977
26978 \end_inset
26979
26980 ,
26981  
26982 \begin_inset Flex Code
26983 status collapsed
26984
26985 \begin_layout Plain Layout
26986 no_noun
26987 \end_layout
26988
26989 \end_inset
26990
26991 ,
26992  
26993 \begin_inset Flex Code
26994 status collapsed
26995
26996 \begin_layout Plain Layout
26997 no_strikeout
26998 \end_layout
26999
27000 \end_inset
27001
27002 ,
27003  
27004 \begin_inset Flex Code
27005 status collapsed
27006
27007 \begin_layout Plain Layout
27008 no_bar
27009 \end_layout
27010
27011 \end_inset
27012
27013 ,
27014  
27015 \begin_inset Flex Code
27016 status collapsed
27017
27018 \begin_layout Plain Layout
27019 no_uuline
27020 \end_layout
27021
27022 \end_inset
27023
27024  and 
27025 \begin_inset Flex Code
27026 status collapsed
27027
27028 \begin_layout Plain Layout
27029 no_uwave
27030 \end_layout
27031
27032 \end_inset
27033
27034 .
27035  Each of these turns on or off the corresponding attribute.
27036  For example,
27037  
27038 \begin_inset Flex Code
27039 status collapsed
27040
27041 \begin_layout Plain Layout
27042 emph
27043 \end_layout
27044
27045 \end_inset
27046
27047  turns on emphasis,
27048  and 
27049 \begin_inset Flex Code
27050 status collapsed
27051
27052 \begin_layout Plain Layout
27053 no_emph
27054 \end_layout
27055
27056 \end_inset
27057
27058  turns it off.
27059  
27060 \begin_inset Newline newline
27061 \end_inset
27062
27063 If the latter seems puzzling,
27064  remember that the font settings for the present context are generally inherited from the surrounding context.
27065  So 
27066 \begin_inset Flex Code
27067 status collapsed
27068
27069 \begin_layout Plain Layout
27070 no_emph
27071 \end_layout
27072
27073 \end_inset
27074
27075  would turn off the emphasis that was anyway in effect,
27076  say,
27077  in a theorem environment.
27078 \end_layout
27079
27080 \begin_layout Description
27081 \begin_inset Flex Code
27082 status collapsed
27083
27084 \begin_layout Plain Layout
27085 Series
27086 \end_layout
27087
27088 \end_inset
27089
27090  [
27091 \begin_inset Flex Code
27092 status collapsed
27093
27094 \begin_layout Plain Layout
27095
27096 \emph on
27097 Medium
27098 \end_layout
27099
27100 \end_inset
27101
27102 ,
27103  
27104 \begin_inset Flex Code
27105 status collapsed
27106
27107 \begin_layout Plain Layout
27108 Bold
27109 \end_layout
27110
27111 \end_inset
27112
27113
27114 \end_layout
27115
27116 \begin_layout Description
27117 \begin_inset Flex Code
27118 status collapsed
27119
27120 \begin_layout Plain Layout
27121 Shape
27122 \end_layout
27123
27124 \end_inset
27125
27126  [
27127 \begin_inset Flex Code
27128 status collapsed
27129
27130 \begin_layout Plain Layout
27131
27132 \emph on
27133 Up
27134 \end_layout
27135
27136 \end_inset
27137
27138 ,
27139  
27140 \begin_inset Flex Code
27141 status collapsed
27142
27143 \begin_layout Plain Layout
27144 Italic
27145 \end_layout
27146
27147 \end_inset
27148
27149 ,
27150  
27151 \begin_inset Flex Code
27152 status collapsed
27153
27154 \begin_layout Plain Layout
27155 SmallCaps
27156 \end_layout
27157
27158 \end_inset
27159
27160 ,
27161  
27162 \begin_inset Flex Code
27163 status collapsed
27164
27165 \begin_layout Plain Layout
27166 Slanted
27167 \end_layout
27168
27169 \end_inset
27170
27171
27172 \end_layout
27173
27174 \begin_layout Description
27175 \begin_inset Flex Code
27176 status collapsed
27177
27178 \begin_layout Plain Layout
27179 Size
27180 \end_layout
27181
27182 \end_inset
27183
27184  [
27185 \begin_inset Flex Code
27186 status collapsed
27187
27188 \begin_layout Plain Layout
27189 tiny
27190 \end_layout
27191
27192 \end_inset
27193
27194 ,
27195  
27196 \begin_inset Flex Code
27197 status collapsed
27198
27199 \begin_layout Plain Layout
27200 small
27201 \end_layout
27202
27203 \end_inset
27204
27205 ,
27206  
27207 \begin_inset Flex Code
27208 status collapsed
27209
27210 \begin_layout Plain Layout
27211
27212 \emph on
27213 normal
27214 \end_layout
27215
27216 \end_inset
27217
27218 ,
27219  
27220 \begin_inset Flex Code
27221 status collapsed
27222
27223 \begin_layout Plain Layout
27224 large
27225 \end_layout
27226
27227 \end_inset
27228
27229 ,
27230  
27231 \begin_inset Flex Code
27232 status collapsed
27233
27234 \begin_layout Plain Layout
27235 larger
27236 \end_layout
27237
27238 \end_inset
27239
27240 ,
27241  
27242 \begin_inset Flex Code
27243 status collapsed
27244
27245 \begin_layout Plain Layout
27246 largest
27247 \end_layout
27248
27249 \end_inset
27250
27251 ,
27252  
27253 \begin_inset Flex Code
27254 status collapsed
27255
27256 \begin_layout Plain Layout
27257 huge
27258 \end_layout
27259
27260 \end_inset
27261
27262 ,
27263  
27264 \begin_inset Flex Code
27265 status collapsed
27266
27267 \begin_layout Plain Layout
27268 giant
27269 \end_layout
27270
27271 \end_inset
27272
27273 ]
27274 \end_layout
27275
27276 \begin_layout Subsection
27277 \begin_inset CommandInset label
27278 LatexCommand label
27279 name "subsec:Citation-engine-description"
27280
27281 \end_inset
27282
27283 Cite engine description
27284 \end_layout
27285
27286 \begin_layout Standard
27287 The 
27288 \begin_inset Flex Code
27289 status collapsed
27290
27291 \begin_layout Plain Layout
27292 CiteEngine
27293 \end_layout
27294
27295 \end_inset
27296
27297  blocks,
27298  as used mainly in cite engine files (see 
27299 \begin_inset CommandInset ref
27300 LatexCommand ref
27301 reference "subsec:Cite-Engine-Files"
27302 plural "false"
27303 caps "false"
27304 noprefix "false"
27305 nolink "false"
27306
27307 \end_inset
27308
27309 ),
27310  define the citation commands provided by a specific 
27311 \begin_inset Quotes eld
27312 \end_inset
27313
27314 cite engine
27315 \begin_inset Quotes erd
27316 \end_inset
27317
27318 .
27319  A cite engine,
27320  in \SpecialChar LyX
27321  terms,
27322  is way specific way to format citations,
27323  using numbers,
27324  author names and/or years.
27325  Currently,
27326  \SpecialChar LyX
27327  supports three such engine types,
27328  namely:
27329 \end_layout
27330
27331 \begin_layout Enumerate
27332 \begin_inset Flex Code
27333 status collapsed
27334
27335 \begin_layout Plain Layout
27336 default
27337 \end_layout
27338
27339 \end_inset
27340
27341 :
27342  the default Bib\SpecialChar TeX
27343  way to format citations,
27344  a simple numeric style (e.
27345 \begin_inset space \thinspace{}
27346 \end_inset
27347
27348 g.,
27349  
27350 \begin_inset Quotes eld
27351 \end_inset
27352
27353 [1]
27354 \begin_inset Quotes erd
27355 \end_inset
27356
27357 )
27358 \end_layout
27359
27360 \begin_layout Enumerate
27361 \begin_inset Flex Code
27362 status collapsed
27363
27364 \begin_layout Plain Layout
27365 authoryear
27366 \end_layout
27367
27368 \end_inset
27369
27370 :
27371  Harvard-styled citations using author names and publication year (e.
27372 \begin_inset space \thinspace{}
27373 \end_inset
27374
27375 g.,
27376  
27377 \begin_inset Quotes eld
27378 \end_inset
27379
27380 Smith and Miller (2017b)
27381 \begin_inset Quotes erd
27382 \end_inset
27383
27384 )
27385 \end_layout
27386
27387 \begin_layout Enumerate
27388 \begin_inset Flex Code
27389 status collapsed
27390
27391 \begin_layout Plain Layout
27392 numerical
27393 \end_layout
27394
27395 \end_inset
27396
27397 :
27398  extended numerical citations that also allow for author or title next to the number (e.
27399 \begin_inset space \thinspace{}
27400 \end_inset
27401
27402 g.,
27403  
27404 \begin_inset Quotes eld
27405 \end_inset
27406
27407 Smith and Miller [1]
27408 \begin_inset Quotes erd
27409 \end_inset
27410
27411 )
27412 \end_layout
27413
27414 \begin_layout Standard
27415 \begin_inset Flex Code
27416 status collapsed
27417
27418 \begin_layout Plain Layout
27419 CiteEngine
27420 \end_layout
27421
27422 \end_inset
27423
27424  blocks look like this:
27425 \end_layout
27426
27427 \begin_layout LyX-Code
27428 CiteEngine default
27429 \end_layout
27430
27431 \begin_layout LyX-Code
27432  cite
27433 \end_layout
27434
27435 \begin_layout LyX-Code
27436  Citep*[][]
27437 \end_layout
27438
27439 \begin_layout LyX-Code
27440  citeyearpar[][]=parencite*
27441 \end_layout
27442
27443 \begin_layout LyX-Code
27444  ...
27445 \end_layout
27446
27447 \begin_layout LyX-Code
27448 End
27449 \end_layout
27450
27451 \begin_layout Standard
27452 The tag following 
27453 \begin_inset Flex Code
27454 status collapsed
27455
27456 \begin_layout Plain Layout
27457 CiteEngine
27458 \end_layout
27459
27460 \end_inset
27461
27462  denotes the engine.
27463  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
27464  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
27465  command and the \SpecialChar LaTeX
27466  output or more complex in order to differentiate things.
27467  The full syntax is:
27468 \end_layout
27469
27470 \begin_layout LyX-Code
27471 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
27472 \end_layout
27473
27474 \begin_layout Itemize
27475 \begin_inset Flex Code
27476 status collapsed
27477
27478 \begin_layout Plain Layout
27479 LyXName
27480 \end_layout
27481
27482 \end_inset
27483
27484 :
27485  The name as used in the 
27486 \begin_inset Flex Code
27487 status collapsed
27488
27489 \begin_layout Plain Layout
27490 *.lyx
27491 \end_layout
27492
27493 \end_inset
27494
27495  file.
27496 \end_layout
27497
27498 \begin_deeper
27499 \begin_layout Standard
27500 For portability reasons,
27501  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
27502  and thus we need to differentiate a 
27503 \begin_inset Flex Code
27504 status collapsed
27505
27506 \begin_layout Plain Layout
27507 latexcmd
27508 \end_layout
27509
27510 \end_inset
27511
27512  sometimes,
27513  if the \SpecialChar LaTeX
27514  command names differ).
27515 \end_layout
27516
27517 \end_deeper
27518 \begin_layout Itemize
27519 \begin_inset Flex Code
27520 status collapsed
27521
27522 \begin_layout Plain Layout
27523 alias
27524 \end_layout
27525
27526 \end_inset
27527
27528 :
27529  a (comma-separated) list of commands that fall back to the given 
27530 \begin_inset Flex Code
27531 status collapsed
27532
27533 \begin_layout Plain Layout
27534 LyXName
27535 \end_layout
27536
27537 \end_inset
27538
27539  in the current engine.
27540  This eases the switch of citation packages and engines.
27541  The 
27542 \begin_inset Flex Code
27543 status collapsed
27544
27545 \begin_layout Plain Layout
27546 alias
27547 \end_layout
27548
27549 \end_inset
27550
27551  can be compared to 
27552 \begin_inset Flex Code
27553 status collapsed
27554
27555 \begin_layout Plain Layout
27556 ObsoletedBy
27557 \end_layout
27558
27559 \end_inset
27560
27561  in layout definitions.
27562 \end_layout
27563
27564 \begin_layout Itemize
27565 \begin_inset Flex Code
27566 status collapsed
27567
27568 \begin_layout Plain Layout
27569 latexcmd
27570 \end_layout
27571
27572 \end_inset
27573
27574 :
27575  The actual \SpecialChar LaTeX
27576  command that is output.
27577  
27578 \end_layout
27579
27580 \begin_layout Standard
27581 \begin_inset Flex Code
27582 status collapsed
27583
27584 \begin_layout Plain Layout
27585 Alias
27586 \end_layout
27587
27588 \end_inset
27589
27590  and 
27591 \begin_inset Flex Code
27592 status collapsed
27593
27594 \begin_layout Plain Layout
27595 latexcmd
27596 \end_layout
27597
27598 \end_inset
27599
27600  are optional.
27601  If no 
27602 \begin_inset Flex Code
27603 status collapsed
27604
27605 \begin_layout Plain Layout
27606 latexcmd
27607 \end_layout
27608
27609 \end_inset
27610
27611  is given,
27612  the 
27613 \begin_inset Flex Code
27614 status collapsed
27615
27616 \begin_layout Plain Layout
27617 LyXName
27618 \end_layout
27619
27620 \end_inset
27621
27622  will be output to \SpecialChar LaTeX
27623 .
27624 \end_layout
27625
27626 \begin_layout Standard
27627 Note further:
27628 \end_layout
27629
27630 \begin_layout Itemize
27631 Capitalization indicates that the command also has a capitalized form (
27632 \begin_inset Flex Code
27633 status collapsed
27634
27635 \begin_layout Plain Layout
27636
27637 \backslash
27638 Latexcmd
27639 \end_layout
27640
27641 \end_inset
27642
27643  vs.
27644  
27645 \begin_inset Flex Code
27646 status collapsed
27647
27648 \begin_layout Plain Layout
27649
27650 \backslash
27651 latexcmd
27652 \end_layout
27653
27654 \end_inset
27655
27656 ).
27657  These usually enforce up-casing of name prefixes (
27658 \emph on
27659 von Goethe
27660 \emph default
27661  
27662 \begin_inset Formula $\Rightarrow$
27663 \end_inset
27664
27665  
27666 \emph on
27667 Von Goethe
27668 \emph default
27669 ).
27670 \end_layout
27671
27672 \begin_layout Itemize
27673 Brackets 
27674 \begin_inset Flex Code
27675 status collapsed
27676
27677 \begin_layout Plain Layout
27678 []
27679 \end_layout
27680
27681 \end_inset
27682
27683  indicate the number of optional arguments (there can be 0–2).
27684 \end_layout
27685
27686 \begin_layout Itemize
27687 A star 
27688 \begin_inset Flex Code
27689 status collapsed
27690
27691 \begin_layout Plain Layout
27692 *
27693 \end_layout
27694
27695 \end_inset
27696
27697  indicates there is a starred version of the command (
27698 \begin_inset Flex Code
27699 status collapsed
27700
27701 \begin_layout Plain Layout
27702
27703 \backslash
27704 latexcmd*
27705 \end_layout
27706
27707 \end_inset
27708
27709  vs.
27710  
27711 \begin_inset Flex Code
27712 status collapsed
27713
27714 \begin_layout Plain Layout
27715
27716 \backslash
27717 latexcmd
27718 \end_layout
27719
27720 \end_inset
27721
27722 ).
27723  
27724 \end_layout
27725
27726 \begin_deeper
27727 \begin_layout Standard
27728 By default,
27729  the starred version means:
27730  Output all authors even if it should be shortened with 
27731 \begin_inset Quotes eld
27732 \end_inset
27733
27734 et al.
27735 \begin_inset Quotes erd
27736 \end_inset
27737
27738  due to the 
27739 \begin_inset Flex Code
27740 status collapsed
27741
27742 \begin_layout Plain Layout
27743 MaxCiteNames
27744 \end_layout
27745
27746 \end_inset
27747
27748  threshold.
27749 \end_layout
27750
27751 \begin_layout Standard
27752 If the star has a different meaning for a given command,
27753  it can be specified in angle brackets:
27754  
27755 \begin_inset Flex Code
27756 status collapsed
27757
27758 \begin_layout Plain Layout
27759 <!_stardesc!_stardesctooltip>
27760 \end_layout
27761
27762 \end_inset
27763
27764 .
27765  Maximal two translatable macro keywords,
27766  marked by the prefix 
27767 \begin_inset Flex Code
27768 status collapsed
27769
27770 \begin_layout Plain Layout
27771 !_
27772 \end_layout
27773
27774 \end_inset
27775
27776 ,
27777  can be given.
27778  The first points to the string that replaces the 
27779 \begin_inset Quotes eld
27780 \end_inset
27781
27782 Full aut&hor list
27783 \begin_inset Quotes erd
27784 \end_inset
27785
27786  checkbox label in the citation dialog,
27787  the second one to an optional tool tip for this checkbox.
27788  
27789 \end_layout
27790
27791 \begin_layout Standard
27792 Note that these two macros have to be defined in a 
27793 \begin_inset Flex Code
27794 status collapsed
27795
27796 \begin_layout Plain Layout
27797 CiteFormat
27798 \end_layout
27799
27800 \end_inset
27801
27802  (see next section),
27803  dropping the 
27804 \begin_inset Flex Code
27805 status collapsed
27806
27807 \begin_layout Plain Layout
27808 !
27809 \end_layout
27810
27811 \end_inset
27812
27813  from the prefix,
27814  like this:
27815  
27816 \end_layout
27817
27818 \begin_layout LyX-Code
27819 _stardesc Sta&rred command label
27820 \end_layout
27821
27822 \begin_layout LyX-Code
27823 _stardesctooltip Tooltip for the starred command checkbox.
27824 \end_layout
27825
27826 \end_deeper
27827 \begin_layout Itemize
27828 A dollar sign 
27829 \begin_inset Flex Code
27830 status collapsed
27831
27832 \begin_layout Plain Layout
27833 $
27834 \end_layout
27835
27836 \end_inset
27837
27838  indicates that this command features 
27839 \begin_inset Quotes eld
27840 \end_inset
27841
27842 qualified citation lists
27843 \begin_inset Quotes erd
27844 \end_inset
27845
27846 .
27847  This is a 
27848 \family sans
27849 Biblatex
27850 \family default
27851 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
27852  Please refer to the 
27853 \family sans
27854 Biblatex
27855 \family default
27856  manual for details.
27857 \change_inserted -712698321 1526898670
27858
27859 \end_layout
27860
27861 \begin_layout Standard
27862
27863 \change_inserted -712698321 1526899524
27864 If you want to add a cite command to a cite engine (e.
27865 \begin_inset space \thinspace{}
27866 \end_inset
27867
27868 g.,
27869  add a specific command provided by a class),
27870  you can use 
27871 \begin_inset Flex Code
27872 status collapsed
27873
27874 \begin_layout Plain Layout
27875
27876 \change_inserted -712698321 1526898768
27877 AddToCiteEngine <engine type> \SpecialChar ldots
27878  End
27879 \change_unchanged
27880
27881 \end_layout
27882
27883 \end_inset
27884
27885 .
27886  Note that only cite commands that do not exist yet are added.
27887 \change_unchanged
27888
27889 \end_layout
27890
27891 \begin_layout Subsection
27892 \begin_inset CommandInset label
27893 LatexCommand label
27894 name "subsec:Citation-format-description"
27895
27896 \end_inset
27897
27898 Cite format description
27899 \end_layout
27900
27901 \begin_layout Standard
27902 The 
27903 \begin_inset Flex Code
27904 status collapsed
27905
27906 \begin_layout Plain Layout
27907 CiteFormat
27908 \end_layout
27909
27910 \end_inset
27911
27912  blocks are used to describe how bibliographic information should be displayed,
27913  both within \SpecialChar LyX
27914  itself (in the citation dialog and in tooltips,
27915  for example) and in XHTML output.
27916  Such a block might look like this:
27917 \end_layout
27918
27919 \begin_layout LyX-Code
27920 CiteFormat
27921 \end_layout
27922
27923 \begin_layout LyX-Code
27924  article ...
27925 \end_layout
27926
27927 \begin_layout LyX-Code
27928  book ...
27929 \end_layout
27930
27931 \begin_layout LyX-Code
27932 End
27933 \end_layout
27934
27935 \begin_layout Standard
27936 or
27937 \end_layout
27938
27939 \begin_layout LyX-Code
27940 CiteFormat
27941 \end_layout
27942
27943 \begin_layout LyX-Code
27944  cite ...
27945 \end_layout
27946
27947 \begin_layout LyX-Code
27948  citet*[][] ...
27949 \end_layout
27950
27951 \begin_layout LyX-Code
27952 End
27953 \end_layout
27954
27955 \begin_layout Standard
27956 In the first case,
27957  the individual lines define how the bibliographic information associated with an article or book,
27958  respectively,
27959  is to be displayed,
27960  and such a definition can be given for any 
27961 \begin_inset Quotes els
27962 \end_inset
27963
27964 entry type
27965 \begin_inset Quotes ers
27966 \end_inset
27967
27968  that might be present in a Bib\SpecialChar TeX
27969  file.
27970  \SpecialChar LyX
27971  defines a default format in the source code that will be used if no specific definition has been given.
27972  \SpecialChar LyX
27973  predefines several formats in the file 
27974 \begin_inset Flex Code
27975 status collapsed
27976
27977 \begin_layout Plain Layout
27978 stdciteformats.inc
27979 \end_layout
27980
27981 \end_inset
27982
27983 ,
27984  which is included in most of \SpecialChar LyX
27985 's document classes.
27986 \end_layout
27987
27988 \begin_layout Standard
27989 In the second case,
27990  the lines define how a specific citation command (in the example 
27991 \begin_inset Flex Code
27992 status collapsed
27993
27994 \begin_layout Plain Layout
27995
27996 \backslash
27997 cite
27998 \end_layout
27999
28000 \end_inset
28001
28002 ,
28003  
28004 \begin_inset Flex Code
28005 status collapsed
28006
28007 \begin_layout Plain Layout
28008
28009 \backslash
28010 citet
28011 \end_layout
28012
28013 \end_inset
28014
28015 ) is to be displayed on the citation inset label,
28016  in the citation dialog,
28017  menu or XHTML output.
28018  \SpecialChar LyX
28019  defines such formats for the citation style variants it supports via 
28020 \family sans
28021 Document\SpecialChar menuseparator
28022 Setting\SpecialChar menuseparator
28023 Bibliography\SpecialChar ldots
28024
28025 \family default
28026  in specific 
28027 \begin_inset Flex Code
28028 status collapsed
28029
28030 \begin_layout Plain Layout
28031 *.citeengine
28032 \end_layout
28033
28034 \end_inset
28035
28036  files that are shipped with \SpecialChar LyX
28037  (see 
28038 \begin_inset CommandInset ref
28039 LatexCommand ref
28040 reference "subsec:Cite-Engine-Files"
28041 plural "false"
28042 caps "false"
28043 noprefix "false"
28044 nolink "false"
28045
28046 \end_inset
28047
28048 ).
28049 \end_layout
28050
28051 \begin_layout Standard
28052 The definitions use a simple language that allows Bib\SpecialChar TeX
28053  keys to be replaced with their values.
28054  Keys should be enclosed in 
28055 \begin_inset Flex Code
28056 status collapsed
28057
28058 \begin_layout Plain Layout
28059 %
28060 \end_layout
28061
28062 \end_inset
28063
28064  signs,
28065  e.g.:
28066  
28067 \begin_inset Flex Code
28068 status collapsed
28069
28070 \begin_layout Plain Layout
28071 %author%
28072 \end_layout
28073
28074 \end_inset
28075
28076 .
28077  So a simple definition might look like this:
28078 \end_layout
28079
28080 \begin_layout LyX-Code
28081 misc %author%,
28082  
28083 \begin_inset Quotes eld
28084 \end_inset
28085
28086 %title%
28087 \begin_inset Quotes erd
28088 \end_inset
28089
28090 .
28091 \end_layout
28092
28093 \begin_layout Standard
28094 This would print the author,
28095  followed by a comma,
28096  followed by the title,
28097  in quotes,
28098  followed by a period.
28099 \end_layout
28100
28101 \begin_layout Standard
28102 Of course,
28103  sometimes you may want to print a key only if it exists.
28104  This can be done by using a conditional construction,
28105  such as:
28106  
28107 \begin_inset Flex Code
28108 status collapsed
28109
28110 \begin_layout Plain Layout
28111 {%volume%[[vol.
28112 \begin_inset space ~
28113 \end_inset
28114
28115 %volume%]]}
28116 \end_layout
28117
28118 \end_inset
28119
28120 .
28121  This says:
28122  If the 
28123 \begin_inset Flex Code
28124 status collapsed
28125
28126 \begin_layout Plain Layout
28127 volume
28128 \end_layout
28129
28130 \end_inset
28131
28132  key exists,
28133  then print 
28134 \begin_inset Quotes eld
28135 \end_inset
28136
28137 vol.
28138 \begin_inset space ~
28139 \end_inset
28140
28141
28142 \begin_inset Quotes erd
28143 \end_inset
28144
28145  followed by the volume key.
28146  It is also possible to have an else clause in the conditional,
28147  such as:
28148 \begin_inset Newline newline
28149 \end_inset
28150
28151
28152 \begin_inset Flex Code
28153 status collapsed
28154
28155 \begin_layout Plain Layout
28156 {%author%[[%author%]][[%editor%,
28157  ed.]]}
28158 \end_layout
28159
28160 \end_inset
28161
28162 .
28163 \begin_inset Newline newline
28164 \end_inset
28165
28166 Here,
28167  the 
28168 \begin_inset Flex Code
28169 status collapsed
28170
28171 \begin_layout Plain Layout
28172 author
28173 \end_layout
28174
28175 \end_inset
28176
28177  key is printed if it exists;
28178  otherwise,
28179  the editor key is printed,
28180  followed by 
28181 \begin_inset Quotes eld
28182 \end_inset
28183
28184 ,
28185 \begin_inset space ~
28186 \end_inset
28187
28188 ed.
28189 \begin_inset Quotes erd
28190 \end_inset
28191
28192  Note that the key is again enclosed in 
28193 \begin_inset Flex Code
28194 status collapsed
28195
28196 \begin_layout Plain Layout
28197 %
28198 \end_layout
28199
28200 \end_inset
28201
28202  signs;
28203  the entire conditional is enclosed in braces;
28204  and the if and else clauses are enclosed in double brackets,
28205  
28206 \begin_inset Quotes eld
28207 \end_inset
28208
28209
28210 \begin_inset Flex Code
28211 status collapsed
28212
28213 \begin_layout Plain Layout
28214 [[
28215 \end_layout
28216
28217 \end_inset
28218
28219
28220 \begin_inset Quotes eld
28221 \end_inset
28222
28223  and 
28224 \begin_inset Quotes eld
28225 \end_inset
28226
28227
28228 \begin_inset Flex Code
28229 status collapsed
28230
28231 \begin_layout Plain Layout
28232 ]]
28233 \end_layout
28234
28235 \end_inset
28236
28237
28238 \begin_inset Quotes erd
28239 \end_inset
28240
28241 .
28242  There must be no space between any of these.
28243 \end_layout
28244
28245 \begin_layout Standard
28246 Next to the entry keys,
28247  there are some special keys that can be used for these conditionals:
28248 \end_layout
28249
28250 \begin_layout Itemize
28251 \begin_inset Flex Code
28252 status collapsed
28253
28254 \begin_layout Plain Layout
28255 {%dialog%[[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 dialogs 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  export)
28280 \end_layout
28281
28282 \begin_layout Itemize
28283 \begin_inset Flex Code
28284 status collapsed
28285
28286 \begin_layout Plain Layout
28287 {%export%[[true]][[false]]}
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 for export and menus,
28302  the 
28303 \begin_inset Quotes eld
28304 \end_inset
28305
28306 false
28307 \begin_inset Quotes erd
28308 \end_inset
28309
28310  part for other contexts (workarea,
28311  dialog)
28312 \end_layout
28313
28314 \begin_layout Itemize
28315 \begin_inset Flex Code
28316 status collapsed
28317
28318 \begin_layout Plain Layout
28319 {%next%[[true]]}
28320 \end_layout
28321
28322 \end_inset
28323
28324 :
28325  process the 
28326 \begin_inset Quotes eld
28327 \end_inset
28328
28329 true
28330 \begin_inset Quotes erd
28331 \end_inset
28332
28333  part if another item follows (e.
28334 \begin_inset space \thinspace{}
28335 \end_inset
28336
28337 g.,
28338  in a citation with multiple keys)
28339 \end_layout
28340
28341 \begin_layout Itemize
28342 \begin_inset Flex Code
28343 status collapsed
28344
28345 \begin_layout Plain Layout
28346 {%second%[[true]][[false]]}
28347 \end_layout
28348
28349 \end_inset
28350
28351 :
28352  process the 
28353 \begin_inset Quotes eld
28354 \end_inset
28355
28356 true
28357 \begin_inset Quotes erd
28358 \end_inset
28359
28360  if this is the second of multiple items,
28361  else the 
28362 \begin_inset Quotes eld
28363 \end_inset
28364
28365 false
28366 \begin_inset Quotes erd
28367 \end_inset
28368
28369  part
28370 \end_layout
28371
28372 \begin_layout Itemize
28373 \begin_inset Flex Code
28374 status collapsed
28375
28376 \begin_layout Plain Layout
28377 {%ifstar%[[true]][[false]]}
28378 \end_layout
28379
28380 \end_inset
28381
28382 :
28383  process the 
28384 \begin_inset Quotes eld
28385 \end_inset
28386
28387 true
28388 \begin_inset Quotes erd
28389 \end_inset
28390
28391  part for starred citation commands (such as 
28392 \begin_inset Flex Code
28393 status collapsed
28394
28395 \begin_layout Plain Layout
28396
28397 \backslash
28398 cite*
28399 \end_layout
28400
28401 \end_inset
28402
28403 ),
28404  the false part for unstarred
28405 \end_layout
28406
28407 \begin_layout Itemize
28408 \begin_inset Flex Code
28409 status collapsed
28410
28411 \begin_layout Plain Layout
28412 {%ifentrytype:<type>%[[true]][[false]]}
28413 \end_layout
28414
28415 \end_inset
28416
28417 :
28418  process the 
28419 \begin_inset Quotes eld
28420 \end_inset
28421
28422 true
28423 \begin_inset Quotes erd
28424 \end_inset
28425
28426  if the current entry type matches 
28427 \begin_inset Flex Code
28428 status collapsed
28429
28430 \begin_layout Plain Layout
28431 <type>
28432 \end_layout
28433
28434 \end_inset
28435
28436 ,
28437  else the false part (e.g.,
28438  in a citation definition:
28439  
28440 \begin_inset Flex Code
28441 status collapsed
28442
28443 \begin_layout Plain Layout
28444 {%ifentrytype:book%[[this is a book]][[this is no book]]}
28445 \end_layout
28446
28447 \end_inset
28448
28449 )
28450 \end_layout
28451
28452 \begin_layout Itemize
28453 \begin_inset Flex Code
28454 status collapsed
28455
28456 \begin_layout Plain Layout
28457 {%ifmultiple:<authortype>%[[true]][[false]]}
28458 \end_layout
28459
28460 \end_inset
28461
28462 :
28463  process the 
28464 \begin_inset Quotes eld
28465 \end_inset
28466
28467 true
28468 \begin_inset Quotes erd
28469 \end_inset
28470
28471  if the current author type (author,
28472  editor etc.) has multiple authors,
28473  else the false part (e.g.,
28474  in a bibliography definition:
28475  
28476 \begin_inset Flex Code
28477 status collapsed
28478
28479 \begin_layout Plain Layout
28480 {%ifmultiple:editor%[[eds.]][[ed.]]}
28481 \end_layout
28482
28483 \end_inset
28484
28485 )
28486 \end_layout
28487
28488 \begin_layout Itemize
28489 \begin_inset Flex Code
28490 status collapsed
28491
28492 \begin_layout Plain Layout
28493 {%ifqualified%[[true]][[false]]}
28494 \end_layout
28495
28496 \end_inset
28497
28498 :
28499  process the 
28500 \begin_inset Quotes eld
28501 \end_inset
28502
28503 true
28504 \begin_inset Quotes erd
28505 \end_inset
28506
28507  part if the current citation is a qualified citation list (a specific 
28508 \family sans
28509 Biblatex
28510 \family default
28511  format for multi-reference citations),
28512  the false part if this is not the case.
28513 \end_layout
28514
28515 \begin_layout Standard
28516 We said that 
28517 \begin_inset Flex Code
28518 status collapsed
28519
28520 \begin_layout Plain Layout
28521 %author%
28522 \end_layout
28523
28524 \end_inset
28525
28526  prints the author key as it is recorded in the bibliography file.
28527  This might not be what you want,
28528  since it will result in a string such as 
28529 \begin_inset Quotes eld
28530 \end_inset
28531
28532 Miller,
28533  Peter and Smith,
28534  Mary and White,
28535  Jane
28536 \begin_inset Quotes erd
28537 \end_inset
28538
28539  (since 
28540 \begin_inset Quotes eld
28541 \end_inset
28542
28543 and
28544 \begin_inset Quotes erd
28545 \end_inset
28546
28547  is used by Bib\SpecialChar TeX
28548  to delimit authors).
28549  \SpecialChar LyX
28550  therefore provides some methods to get properly formatted name lists (which will also get translated).
28551  The following keys are provided:
28552 \end_layout
28553
28554 \begin_layout Enumerate
28555 For name lists with pre- and surname,
28556  suitable for the main authors/editors of a bibliography item.
28557  The 
28558 \begin_inset Flex Code
28559 status collapsed
28560
28561 \begin_layout Plain Layout
28562 <nametype>
28563 \end_layout
28564
28565 \end_inset
28566
28567  part denotes the kind of list that is requested (e.g.
28568  
28569 \begin_inset Flex Code
28570 status collapsed
28571
28572 \begin_layout Plain Layout
28573 <nametype:author>
28574 \end_layout
28575
28576 \end_inset
28577
28578 ):
28579 \end_layout
28580
28581 \begin_deeper
28582 \begin_layout Itemize
28583 \begin_inset Flex Code
28584 status collapsed
28585
28586 \begin_layout Plain Layout
28587 %abbrvnames:<nametype>%
28588 \end_layout
28589
28590 \end_inset
28591
28592 :
28593  Provides a name list which is abbreviated (with 
28594 \begin_inset Quotes eld
28595 \end_inset
28596
28597 et al.
28598 \begin_inset Quotes erd
28599 \end_inset
28600
28601 ) when 
28602 \begin_inset Flex Code
28603 status collapsed
28604
28605 \begin_layout Plain Layout
28606 MaxCiteNames
28607 \end_layout
28608
28609 \end_inset
28610
28611  is reached.
28612 \end_layout
28613
28614 \begin_layout Itemize
28615 \begin_inset Flex Code
28616 status collapsed
28617
28618 \begin_layout Plain Layout
28619 %fullnames:<nametype>%
28620 \end_layout
28621
28622 \end_inset
28623
28624 :
28625  Provides a full name list (never abbreviated with 
28626 \begin_inset Quotes eld
28627 \end_inset
28628
28629 et al.
28630 \begin_inset Quotes erd
28631 \end_inset
28632
28633 ).
28634 \end_layout
28635
28636 \begin_layout Itemize
28637 \begin_inset Flex Code
28638 status collapsed
28639
28640 \begin_layout Plain Layout
28641 %forceabbrvnames:<nametype>%
28642 \end_layout
28643
28644 \end_inset
28645
28646 :
28647  Provides a name list which is always abbreviated (with 
28648 \begin_inset Quotes eld
28649 \end_inset
28650
28651 et al.
28652 \begin_inset Quotes erd
28653 \end_inset
28654
28655 ) irrespective of 
28656 \begin_inset Flex Code
28657 status collapsed
28658
28659 \begin_layout Plain Layout
28660 MaxCiteNames
28661 \end_layout
28662
28663 \end_inset
28664
28665 .
28666 \end_layout
28667
28668 \end_deeper
28669 \begin_layout Enumerate
28670 Alternative name lists with pre- and surname,
28671  if the order of pre- and surname inside the bibliography item differs (as in:
28672  
28673 \begin_inset Quotes eld
28674 \end_inset
28675
28676 Miller,
28677  John:
28678  Some text,
28679  in:
28680  Mary Smith,
28681  ed.:
28682  A volume
28683 \begin_inset Quotes erd
28684 \end_inset
28685
28686 ):
28687 \end_layout
28688
28689 \begin_deeper
28690 \begin_layout Itemize
28691 \begin_inset Flex Code
28692 status collapsed
28693
28694 \begin_layout Plain Layout
28695 %abbrvbynames:<nametype>%
28696 \end_layout
28697
28698 \end_inset
28699
28700 :
28701  Provides a name list which is abbreviated (with 
28702 \begin_inset Quotes eld
28703 \end_inset
28704
28705 et al.
28706 \begin_inset Quotes erd
28707 \end_inset
28708
28709 ) when 
28710 \begin_inset Flex Code
28711 status collapsed
28712
28713 \begin_layout Plain Layout
28714 MaxCiteNames
28715 \end_layout
28716
28717 \end_inset
28718
28719  is reached.
28720 \end_layout
28721
28722 \begin_layout Itemize
28723 \begin_inset Flex Code
28724 status collapsed
28725
28726 \begin_layout Plain Layout
28727 %fullbynames:<nametype>%
28728 \end_layout
28729
28730 \end_inset
28731
28732 :
28733  Provides a full name list (never abbreviated with 
28734 \begin_inset Quotes eld
28735 \end_inset
28736
28737 et al.
28738 \begin_inset Quotes erd
28739 \end_inset
28740
28741 ).
28742 \end_layout
28743
28744 \begin_layout Itemize
28745 \begin_inset Flex Code
28746 status collapsed
28747
28748 \begin_layout Plain Layout
28749 %forceabbrvbynames:<nametype>%
28750 \end_layout
28751
28752 \end_inset
28753
28754 :
28755  Provides a name list which is always abbreviated (with 
28756 \begin_inset Quotes eld
28757 \end_inset
28758
28759 et al.
28760 \begin_inset Quotes erd
28761 \end_inset
28762
28763 ) irrespective of 
28764 \begin_inset Flex Code
28765 status collapsed
28766
28767 \begin_layout Plain Layout
28768 MaxCiteNames
28769 \end_layout
28770
28771 \end_inset
28772
28773 .
28774 \end_layout
28775
28776 \end_deeper
28777 \begin_layout Enumerate
28778 And finally name lists which consist of family names only,
28779  as used in author-year citation labels.
28780  These do not take a 
28781 \begin_inset Flex Code
28782 status collapsed
28783
28784 \begin_layout Plain Layout
28785 <nametype>
28786 \end_layout
28787
28788 \end_inset
28789
28790  part,
28791  but always return either an author list or,
28792  if this does not exist,
28793  an editor list (as common in author-year labels):
28794 \end_layout
28795
28796 \begin_deeper
28797 \begin_layout Itemize
28798 \begin_inset Flex Code
28799 status collapsed
28800
28801 \begin_layout Plain Layout
28802 %abbrvciteauthor%
28803 \end_layout
28804
28805 \end_inset
28806
28807 :
28808  Provides a name list which is abbreviated (with 
28809 \begin_inset Quotes eld
28810 \end_inset
28811
28812 et al.
28813 \begin_inset Quotes erd
28814 \end_inset
28815
28816 ) when 
28817 \begin_inset Flex Code
28818 status collapsed
28819
28820 \begin_layout Plain Layout
28821 MaxCiteNames
28822 \end_layout
28823
28824 \end_inset
28825
28826  is reached.
28827 \end_layout
28828
28829 \begin_layout Itemize
28830 \begin_inset Flex Code
28831 status collapsed
28832
28833 \begin_layout Plain Layout
28834 %fullciteauthor%
28835 \end_layout
28836
28837 \end_inset
28838
28839 :
28840  Provides a full name list (never abbreviated with 
28841 \begin_inset Quotes eld
28842 \end_inset
28843
28844 et al.
28845 \begin_inset Quotes erd
28846 \end_inset
28847
28848 ).
28849 \end_layout
28850
28851 \begin_layout Itemize
28852 \begin_inset Flex Code
28853 status collapsed
28854
28855 \begin_layout Plain Layout
28856 %forceabbrvciteauthor%
28857 \end_layout
28858
28859 \end_inset
28860
28861 :
28862  Provides a name list which is always abbreviated (with 
28863 \begin_inset Quotes eld
28864 \end_inset
28865
28866 et al.
28867 \begin_inset Quotes erd
28868 \end_inset
28869
28870 ) irrespective of 
28871 \begin_inset Flex Code
28872 status collapsed
28873
28874 \begin_layout Plain Layout
28875 MaxCiteNames
28876 \end_layout
28877
28878 \end_inset
28879
28880 .
28881 \end_layout
28882
28883 \end_deeper
28884 \begin_layout Standard
28885 The order of pre- and surname in the former two lists can be adjusted by these macros:
28886 \end_layout
28887
28888 \begin_layout Itemize
28889 \begin_inset Flex Code
28890 status collapsed
28891
28892 \begin_layout Plain Layout
28893 !firstnameform %surname%,
28894  %prename%
28895 \end_layout
28896
28897 \end_inset
28898
28899  (first author in lists of type 1)
28900 \end_layout
28901
28902 \begin_layout Itemize
28903 \begin_inset Flex Code
28904 status collapsed
28905
28906 \begin_layout Plain Layout
28907 !othernameform %surname%,
28908  %prename%
28909 \end_layout
28910
28911 \end_inset
28912
28913  (other authors in lists of type 1)
28914 \end_layout
28915
28916 \begin_layout Itemize
28917 \begin_inset Flex Code
28918 status collapsed
28919
28920 \begin_layout Plain Layout
28921 !firstbynameform %prename% %surname%
28922 \end_layout
28923
28924 \end_inset
28925
28926  (first author in lists of type 2)
28927 \end_layout
28928
28929 \begin_layout Itemize
28930 \begin_inset Flex Code
28931 status collapsed
28932
28933 \begin_layout Plain Layout
28934 !otherbynameform %prename% %surname%
28935 \end_layout
28936
28937 \end_inset
28938
28939  (other authors in lists of type 2)
28940 \end_layout
28941
28942 \begin_layout Standard
28943 This allows you to configure namings like 
28944 \begin_inset Quotes eld
28945 \end_inset
28946
28947 Miller,
28948  Peter and Mary Smith:
28949  \SpecialChar ldots
28950 ,
28951  in:
28952  John Doe and Pat Green,
28953  eds.:\SpecialChar ldots
28954
28955 \begin_inset Quotes erd
28956 \end_inset
28957
28958 .
28959 \end_layout
28960
28961 \begin_layout Standard
28962 There is one other piece of syntax available in definitions,
28963  which looks like this:
28964  
28965 \begin_inset Flex Code
28966 status collapsed
28967
28968 \begin_layout Plain Layout
28969 {!<i>!}
28970 \end_layout
28971
28972 \end_inset
28973
28974 .
28975  This defines a piece of formatting information that is to be used when creating 
28976 \begin_inset Quotes eld
28977 \end_inset
28978
28979 rich text
28980 \begin_inset Quotes erd
28981 \end_inset
28982
28983 .
28984  Obviously,
28985  we do not want to output HTML tags when writing plain text,
28986  so they should be wrapped in 
28987 \begin_inset Quotes eld
28988 \end_inset
28989
28990 {!
28991 \begin_inset Quotes erd
28992 \end_inset
28993
28994  and 
28995 \begin_inset Quotes eld
28996 \end_inset
28997
28998 !}
28999 \begin_inset Quotes erd
29000 \end_inset
29001
29002 .
29003 \end_layout
29004
29005 \begin_layout Standard
29006 Two special sorts of definitions are also possible in a 
29007 \begin_inset Flex Code
29008 status collapsed
29009
29010 \begin_layout Plain Layout
29011 CiteFormat
29012 \end_layout
29013
29014 \end_inset
29015
29016  block.
29017  An example of the first would be:
29018 \end_layout
29019
29020 \begin_layout LyX-Code
29021 !quotetitle 
29022 \begin_inset Quotes eld
29023 \end_inset
29024
29025 %title%
29026 \begin_inset Quotes erd
29027 \end_inset
29028
29029
29030 \end_layout
29031
29032 \begin_layout Standard
29033 This is an abbreviation,
29034  or macro,
29035  and it can be used by treating it as if it were a key:
29036  
29037 \begin_inset Flex Code
29038 status collapsed
29039
29040 \begin_layout Plain Layout
29041 %!quotetitle%
29042 \end_layout
29043
29044 \end_inset
29045
29046 .
29047  \SpecialChar LyX
29048  will treat 
29049 \begin_inset Flex Code
29050 status collapsed
29051
29052 \begin_layout Plain Layout
29053 %!quotetitle%
29054 \end_layout
29055
29056 \end_inset
29057
29058  exactly as it would treat its definition.
29059  So,
29060  let us issue the obvious 
29061 \emph on
29062 warning
29063 \emph default
29064 .
29065  Do not do this:
29066 \end_layout
29067
29068 \begin_layout LyX-Code
29069 !funfun %funfun%
29070 \end_layout
29071
29072 \begin_layout Standard
29073 or anything like it.
29074  \SpecialChar LyX
29075  shouldn't go into an infinite loop,
29076  but it may go into a long one before it gives up.
29077 \end_layout
29078
29079 \begin_layout Standard
29080 The second sort of special definition might look like this:
29081 \end_layout
29082
29083 \begin_layout LyX-Code
29084 B_pptext pp.
29085 \end_layout
29086
29087 \begin_layout Standard
29088 This defines a translatable piece of text,
29089  which allows relevant parts of the bibliography or citation to be translated.
29090  It can be included in a definition by treating it as a key:
29091  
29092 \begin_inset Flex Code
29093 status collapsed
29094
29095 \begin_layout Plain Layout
29096 %B_pptext%
29097 \end_layout
29098
29099 \end_inset
29100
29101 .
29102  Note that there are two different translation paths:
29103  All definitions starting with 
29104 \begin_inset Flex Code
29105 status collapsed
29106
29107 \begin_layout Plain Layout
29108 B_
29109 \end_layout
29110
29111 \end_inset
29112
29113 ,
29114  such as in the example above,
29115  will be translated to the currently active buffer language (so the translation will match the generated document).
29116  All definitions starting with underscore only will be translated to the GUI language.
29117  This is the proper translation for strings that only occur in the dialogs or on buttons,
29118  such as this one:
29119 \end_layout
29120
29121 \begin_layout LyX-Code
29122 _addtobib Add to bibliography only.
29123 \end_layout
29124
29125 \begin_layout Standard
29126 Several of these translatable strings are predefined in 
29127 \begin_inset Flex Code
29128 status collapsed
29129
29130 \begin_layout Plain Layout
29131 stdciteformats.inc
29132 \end_layout
29133
29134 \end_inset
29135
29136  and the diverse 
29137 \begin_inset Flex Code
29138 status collapsed
29139
29140 \begin_layout Plain Layout
29141 *.citeengine
29142 \end_layout
29143
29144 \end_inset
29145
29146  files.
29147  Note that these are not macros,
29148  in the sense just defined.
29149  They will not be expanded.
29150 \end_layout
29151
29152 \begin_layout Standard
29153 So here then is an example that uses several of these features:
29154 \begin_inset VSpace defskip
29155 \end_inset
29156
29157
29158 \end_layout
29159
29160 \begin_layout Standard
29161 \noindent
29162
29163 \family sans
29164 !authoredit {%author%[[%author%,
29165  ]][[{%editor%[[%editor%,
29166  %B_edtext%,
29167  ]]}]]}
29168 \end_layout
29169
29170 \begin_layout Standard
29171 \begin_inset VSpace defskip
29172 \end_inset
29173
29174 This defines a macro that prints the author,
29175  followed by a comma,
29176  if the 
29177 \begin_inset Flex Code
29178 status collapsed
29179
29180 \begin_layout Plain Layout
29181 author
29182 \end_layout
29183
29184 \end_inset
29185
29186  key is defined,
29187  or else prints the name of the editor,
29188  followed by the 
29189 \begin_inset Flex Code
29190 status collapsed
29191
29192 \begin_layout Plain Layout
29193 B_edtext
29194 \end_layout
29195
29196 \end_inset
29197
29198  or its translation (it is by default 
29199 \begin_inset Quotes eld
29200 \end_inset
29201
29202 ed.
29203 \begin_inset Quotes erd
29204 \end_inset
29205
29206 ),
29207  if the 
29208 \begin_inset Flex Code
29209 status collapsed
29210
29211 \begin_layout Plain Layout
29212 editor
29213 \end_layout
29214
29215 \end_inset
29216
29217  key is defined.
29218  Note that this is in fact defined in 
29219 \begin_inset Flex Code
29220 status collapsed
29221
29222 \begin_layout Plain Layout
29223 stdciteformats.inc
29224 \end_layout
29225
29226 \end_inset
29227
29228 ,
29229  so you can use it in your own definitions,
29230  or re-definitions,
29231  if you load that file first.
29232 \end_layout
29233
29234 \begin_layout Section
29235 \begin_inset CommandInset label
29236 LatexCommand label
29237 name "sec:Tags-for-XHTML"
29238
29239 \end_inset
29240
29241 Tags for XHTML output
29242 \end_layout
29243
29244 \begin_layout Standard
29245 As with \SpecialChar LaTeX
29246  or DocBook,
29247  the format of \SpecialChar LyX
29248 's XHTML output is also controlled by layout information.
29249  In general,
29250  \SpecialChar LyX
29251  provides sensible defaults and,
29252  as mentioned earlier,
29253  it will even construct default CSS style rules from the other layout tags.
29254  For example,
29255  \SpecialChar LyX
29256  will attempt to use the information provided in the 
29257 \begin_inset Flex Code
29258 status collapsed
29259
29260 \begin_layout Plain Layout
29261 Font
29262 \end_layout
29263
29264 \end_inset
29265
29266  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
29267 \end_layout
29268
29269 \begin_layout Standard
29270 In many cases,
29271  then,
29272  you may not have to do anything at all to get acceptable XHTML output for your own environments,
29273  custom insets,
29274  and so forth.
29275  But in some cases you will,
29276  and so \SpecialChar LyX
29277  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
29278 \end_layout
29279
29280 \begin_layout Standard
29281 Note that there are two tags,
29282  
29283 \begin_inset Flex Code
29284 status collapsed
29285
29286 \begin_layout Plain Layout
29287 HTMLPreamble
29288 \end_layout
29289
29290 \end_inset
29291
29292  and 
29293 \begin_inset Flex Code
29294 status collapsed
29295
29296 \begin_layout Plain Layout
29297 AddToHTMLPreamble
29298 \end_layout
29299
29300 \end_inset
29301
29302  that may appear outside style and inset declarations.
29303  See 
29304 \begin_inset CommandInset ref
29305 LatexCommand ref
29306 reference "subsec:General-text-class"
29307 nolink "false"
29308
29309 \end_inset
29310
29311  for details on these.
29312 \end_layout
29313
29314 \begin_layout Subsection
29315 \begin_inset CommandInset label
29316 LatexCommand label
29317 name "subsec:Paragraph-Style-XHTML"
29318
29319 \end_inset
29320
29321 Paragraph styles
29322 \end_layout
29323
29324 \begin_layout Standard
29325 The sort of XHTML \SpecialChar LyX
29326  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
29327  a command,
29328  or an environment,
29329  where this is itself determined by the contents of the corresponding 
29330 \begin_inset Flex Code
29331 status collapsed
29332
29333 \begin_layout Plain Layout
29334 \SpecialChar LaTeX
29335 Type
29336 \end_layout
29337
29338 \end_inset
29339
29340  tag.
29341  
29342 \end_layout
29343
29344 \begin_layout Standard
29345 For a command or normal paragraph,
29346  the output XHTML has the following form:
29347 \end_layout
29348
29349 \begin_layout LyX-Code
29350
29351 \family sans
29352 <tag attr=
29353 \begin_inset Quotes erd
29354 \end_inset
29355
29356 value
29357 \begin_inset Quotes erd
29358 \end_inset
29359
29360 >
29361 \end_layout
29362
29363 \begin_layout LyX-Code
29364
29365 \family sans
29366 <labeltag attr=
29367 \begin_inset Quotes erd
29368 \end_inset
29369
29370 value
29371 \begin_inset Quotes erd
29372 \end_inset
29373
29374 >Label</labeltag>
29375 \end_layout
29376
29377 \begin_layout LyX-Code
29378
29379 \family sans
29380 Contents of the paragraph.
29381 \end_layout
29382
29383 \begin_layout LyX-Code
29384
29385 \family sans
29386 </tag>
29387 \end_layout
29388
29389 \begin_layout Standard
29390 The label tags are of course omitted if the paragraph does not have a label.
29391 \end_layout
29392
29393 \begin_layout Standard
29394 For an environment that is not some sort of list,
29395  the XHTML takes this form:
29396 \end_layout
29397
29398 \begin_layout LyX-Code
29399
29400 \family sans
29401 <tag attr=
29402 \begin_inset Quotes erd
29403 \end_inset
29404
29405 value
29406 \begin_inset Quotes erd
29407 \end_inset
29408
29409 >
29410 \end_layout
29411
29412 \begin_layout LyX-Code
29413
29414 \family sans
29415 <itemtag attr=
29416 \begin_inset Quotes erd
29417 \end_inset
29418
29419 value
29420 \begin_inset Quotes erd
29421 \end_inset
29422
29423 ><labeltag attr=
29424 \begin_inset Quotes erd
29425 \end_inset
29426
29427 value
29428 \begin_inset Quotes erd
29429 \end_inset
29430
29431 >Environment Label</labeltag>First paragraph.</itemtag>
29432 \end_layout
29433
29434 \begin_layout LyX-Code
29435
29436 \family sans
29437 <itemtag>Second paragraph.</itemtag>
29438 \end_layout
29439
29440 \begin_layout LyX-Code
29441
29442 \family sans
29443 </tag>
29444 \end_layout
29445
29446 \begin_layout Standard
29447 Note that the label is output only for the first paragraph,
29448  as it should be for a theorem,
29449  for example.
29450  
29451 \end_layout
29452
29453 \begin_layout Standard
29454 For a list,
29455  we have one of these forms:
29456 \end_layout
29457
29458 \begin_layout LyX-Code
29459
29460 \family sans
29461 <tag attr=
29462 \begin_inset Quotes erd
29463 \end_inset
29464
29465 value
29466 \begin_inset Quotes erd
29467 \end_inset
29468
29469 >
29470 \end_layout
29471
29472 \begin_layout LyX-Code
29473
29474 \family sans
29475 <itemtag attr=
29476 \begin_inset Quotes erd
29477 \end_inset
29478
29479 value
29480 \begin_inset Quotes erd
29481 \end_inset
29482
29483 ><labeltag attr=
29484 \begin_inset Quotes erd
29485 \end_inset
29486
29487 value
29488 \begin_inset Quotes erd
29489 \end_inset
29490
29491 >List Label</labeltag>First item.</itemtag>
29492 \end_layout
29493
29494 \begin_layout LyX-Code
29495
29496 \family sans
29497 <itemtag attr=
29498 \begin_inset Quotes erd
29499 \end_inset
29500
29501 value
29502 \begin_inset Quotes erd
29503 \end_inset
29504
29505 ><labeltag attr=
29506 \begin_inset Quotes erd
29507 \end_inset
29508
29509 value
29510 \begin_inset Quotes erd
29511 \end_inset
29512
29513 >List Label</labeltag>Second item.</itemtag>
29514 \end_layout
29515
29516 \begin_layout LyX-Code
29517
29518 \family sans
29519 </tag>
29520 \end_layout
29521
29522 \begin_layout LyX-Code
29523
29524 \end_layout
29525
29526 \begin_layout LyX-Code
29527
29528 \family sans
29529 <tag attr=
29530 \begin_inset Quotes erd
29531 \end_inset
29532
29533 value
29534 \begin_inset Quotes erd
29535 \end_inset
29536
29537 >
29538 \end_layout
29539
29540 \begin_layout LyX-Code
29541
29542 \family sans
29543 <labeltag attr=
29544 \begin_inset Quotes erd
29545 \end_inset
29546
29547 value
29548 \begin_inset Quotes erd
29549 \end_inset
29550
29551 >List Label</labeltag><itemtag attr=
29552 \begin_inset Quotes erd
29553 \end_inset
29554
29555 value
29556 \begin_inset Quotes erd
29557 \end_inset
29558
29559 >First item.</itemtag>
29560 \end_layout
29561
29562 \begin_layout LyX-Code
29563
29564 \family sans
29565 <labeltag attr=
29566 \begin_inset Quotes erd
29567 \end_inset
29568
29569 value
29570 \begin_inset Quotes erd
29571 \end_inset
29572
29573 >List Label</labeltag><itemtag attr=
29574 \begin_inset Quotes erd
29575 \end_inset
29576
29577 value
29578 \begin_inset Quotes erd
29579 \end_inset
29580
29581 >Second item.</itemtag>
29582 \end_layout
29583
29584 \begin_layout LyX-Code
29585
29586 \family sans
29587 </tag>
29588 \end_layout
29589
29590 \begin_layout Standard
29591 Note the different orders of 
29592 \begin_inset Flex Code
29593 status collapsed
29594
29595 \begin_layout Plain Layout
29596 labeltag
29597 \end_layout
29598
29599 \end_inset
29600
29601  and 
29602 \begin_inset Flex Code
29603 status collapsed
29604
29605 \begin_layout Plain Layout
29606 itemtag
29607 \end_layout
29608
29609 \end_inset
29610
29611 .
29612  Which order we get depends upon the setting of 
29613 \begin_inset Flex Code
29614 status collapsed
29615
29616 \begin_layout Plain Layout
29617 HTMLLabelFirst
29618 \end_layout
29619
29620 \end_inset
29621
29622 :
29623  If 
29624 \begin_inset Flex Code
29625 status collapsed
29626
29627 \begin_layout Plain Layout
29628 HTMLLabelFirst
29629 \end_layout
29630
29631 \end_inset
29632
29633  is false (the default),
29634  you get the first of these,
29635  with the label within the item;
29636  if true,
29637  you get the second,
29638  with the label outside the item.
29639 \end_layout
29640
29641 \begin_layout Standard
29642 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
29643  As mentioned earlier,
29644  however,
29645  \SpecialChar LyX
29646  uses sensible defaults for many of these,
29647  so you often may not need to do very much to get good XHTML output.
29648  Think of the available tags as there so you can tweak things to your liking.
29649 \end_layout
29650
29651 \begin_layout Description
29652 \begin_inset Flex Code
29653 status collapsed
29654
29655 \begin_layout Plain Layout
29656 HTMLAttr
29657 \end_layout
29658
29659 \end_inset
29660
29661  [
29662 \begin_inset Flex Code
29663 status collapsed
29664
29665 \begin_layout Plain Layout
29666 string
29667 \end_layout
29668
29669 \end_inset
29670
29671 ] Specifies attribute information to be output with the main tag.
29672  For example,
29673  
29674 \begin_inset Quotes eld
29675 \end_inset
29676
29677
29678 \begin_inset Flex Code
29679 status collapsed
29680
29681 \begin_layout Plain Layout
29682 class=`mydiv'
29683 \end_layout
29684
29685 \end_inset
29686
29687
29688 \begin_inset Quotes erd
29689 \end_inset
29690
29691 .
29692  By default,
29693  \SpecialChar LyX
29694  will output 
29695 \begin_inset Quotes eld
29696 \end_inset
29697
29698
29699 \begin_inset Flex Code
29700 status collapsed
29701
29702 \begin_layout Plain Layout
29703 class=`layoutname'
29704 \end_layout
29705
29706 \end_inset
29707
29708
29709 \begin_inset Quotes erd
29710 \end_inset
29711
29712 ,
29713  where 
29714 \begin_inset Flex Code
29715 status collapsed
29716
29717 \begin_layout Plain Layout
29718 layoutname
29719 \end_layout
29720
29721 \end_inset
29722
29723  is the \SpecialChar LyX
29724  name of the layout,
29725  made lowercase,
29726  for example:
29727  chapter.
29728  This should 
29729 \emph on
29730 not
29731 \emph default
29732  contain any style information.
29733  Use 
29734 \begin_inset Flex Code
29735 status collapsed
29736
29737 \begin_layout Plain Layout
29738 HTMLStyle
29739 \end_layout
29740
29741 \end_inset
29742
29743  for that purpose.
29744 \change_inserted -584632292 1670182206
29745
29746 \end_layout
29747
29748 \begin_layout Description
29749
29750 \change_inserted -584632292 1670182369
29751 \begin_inset Flex Code
29752 status collapsed
29753
29754 \begin_layout Plain Layout
29755
29756 \change_inserted -584632292 1670182222
29757 HTMLClass
29758 \change_unchanged
29759
29760 \end_layout
29761
29762 \end_inset
29763
29764  [
29765 \begin_inset Flex Code
29766 status collapsed
29767
29768 \begin_layout Plain Layout
29769
29770 \change_inserted -584632292 1670182217
29771 string
29772 \change_unchanged
29773
29774 \end_layout
29775
29776 \end_inset
29777
29778 ] The CSS class to use for this paragraph.
29779  Note that,
29780  if the paragarph is of enumerate or itemize type,
29781  then the default will be 
29782 \begin_inset Quotes eld
29783 \end_inset
29784
29785 lyxenum
29786 \begin_inset Quotes erd
29787 \end_inset
29788
29789  or 
29790 \begin_inset Quotes eld
29791 \end_inset
29792
29793 lyxitem
29794 \begin_inset Quotes erd
29795 \end_inset
29796
29797 ,
29798  plus 
29799 \begin_inset Quotes eld
29800 \end_inset
29801
29802 i
29803 \begin_inset Quotes erd
29804 \end_inset
29805
29806 ,
29807  
29808 \begin_inset Quotes eld
29809 \end_inset
29810
29811 ii
29812 \begin_inset Quotes erd
29813 \end_inset
29814
29815 ,
29816  
29817 \begin_inset Quotes eld
29818 \end_inset
29819
29820 iii
29821 \begin_inset Quotes erd
29822 \end_inset
29823
29824 ,
29825  or 
29826 \begin_inset Quotes eld
29827 \end_inset
29828
29829 iv
29830 \begin_inset Quotes erd
29831 \end_inset
29832
29833 ,
29834  depending upon the depth.
29835  That can be over-ridden here.
29836  However,
29837  the suffix will not be added in that case.
29838  I.e.,
29839  the CSS class will always be exactly what it is declared to be here.
29840 \change_unchanged
29841
29842 \end_layout
29843
29844 \begin_layout Description
29845 \begin_inset Flex Code
29846 status collapsed
29847
29848 \begin_layout Plain Layout
29849 HTMLForceCSS
29850 \end_layout
29851
29852 \end_inset
29853
29854  [
29855 \begin_inset Flex Code
29856 status collapsed
29857
29858 \begin_layout Plain Layout
29859
29860 \emph on
29861 0
29862 \emph default
29863 ,1
29864 \end_layout
29865
29866 \end_inset
29867
29868 ] Whether to output the default CSS information \SpecialChar LyX
29869  generates for this layout,
29870  even if additional information is explicitly provided via 
29871 \begin_inset Flex Code
29872 status collapsed
29873
29874 \begin_layout Plain Layout
29875 HTMLStyle
29876 \end_layout
29877
29878 \end_inset
29879
29880 .
29881  Setting this to 
29882 \begin_inset Flex Code
29883 status collapsed
29884
29885 \begin_layout Plain Layout
29886 1
29887 \end_layout
29888
29889 \end_inset
29890
29891  allows you to alter or augment the generated CSS,
29892  rather than to override it completely.
29893  Default is 
29894 \begin_inset Flex Code
29895 status collapsed
29896
29897 \begin_layout Plain Layout
29898 0
29899 \end_layout
29900
29901 \end_inset
29902
29903 .
29904 \change_inserted -584632292 1670132213
29905
29906 \end_layout
29907
29908 \begin_layout Description
29909
29910 \change_inserted -584632292 1670132277
29911 \begin_inset Flex Code
29912 status collapsed
29913
29914 \begin_layout Plain Layout
29915
29916 \change_inserted -584632292 1670132221
29917 HTMLInToc
29918 \change_unchanged
29919
29920 \end_layout
29921
29922 \end_inset
29923
29924  [
29925 \begin_inset Flex Code
29926 status open
29927
29928 \begin_layout Plain Layout
29929
29930 \change_inserted -584632292 1670132214
29931 0,
29932 \emph on
29933 1
29934 \change_unchanged
29935
29936 \end_layout
29937
29938 \end_inset
29939
29940 ] Whether to include this paragraph (usually,
29941  a section or something of the sort) in the TOC.
29942  By default,
29943  true,
29944  so it should be set to false e.g.
29945 \begin_inset space ~
29946 \end_inset
29947
29948 for starred sections.
29949 \change_unchanged
29950
29951 \end_layout
29952
29953 \begin_layout Description
29954 \begin_inset Flex Code
29955 status collapsed
29956
29957 \begin_layout Plain Layout
29958 HTMLItem
29959 \end_layout
29960
29961 \end_inset
29962
29963  [
29964 \begin_inset Flex Code
29965 status collapsed
29966
29967 \begin_layout Plain Layout
29968 string
29969 \end_layout
29970
29971 \end_inset
29972
29973 ] The tag to be used for individual paragraphs of environments,
29974  replacing 
29975 \begin_inset Flex Code
29976 status collapsed
29977
29978 \begin_layout Plain Layout
29979 itemtag
29980 \end_layout
29981
29982 \end_inset
29983
29984  in the examples above.
29985  Defaults to 
29986 \begin_inset Flex Code
29987 status collapsed
29988
29989 \begin_layout Plain Layout
29990 div
29991 \end_layout
29992
29993 \end_inset
29994
29995 .
29996 \end_layout
29997
29998 \begin_layout Description
29999 \begin_inset Flex Code
30000 status collapsed
30001
30002 \begin_layout Plain Layout
30003 HTMLItemAttr
30004 \end_layout
30005
30006 \end_inset
30007
30008  [
30009 \begin_inset Flex Code
30010 status collapsed
30011
30012 \begin_layout Plain Layout
30013 string
30014 \end_layout
30015
30016 \end_inset
30017
30018 ] Attributes for the item tag.
30019  Defaults to
30020 \begin_inset Newline newline
30021 \end_inset
30022
30023
30024 \begin_inset Quotes eld
30025 \end_inset
30026
30027
30028 \begin_inset Flex Code
30029 status collapsed
30030
30031 \begin_layout Plain Layout
30032 class=`layoutname_item'
30033 \end_layout
30034
30035 \end_inset
30036
30037
30038 \begin_inset Quotes erd
30039 \end_inset
30040
30041 .
30042  This should 
30043 \emph on
30044 not
30045 \emph default
30046  contain any style information.
30047  Use 
30048 \begin_inset Flex Code
30049 status collapsed
30050
30051 \begin_layout Plain Layout
30052 HTMLStyle
30053 \end_layout
30054
30055 \end_inset
30056
30057  for that purpose.
30058 \end_layout
30059
30060 \begin_layout Description
30061 \begin_inset Flex Code
30062 status collapsed
30063
30064 \begin_layout Plain Layout
30065 HTMLLabel
30066 \end_layout
30067
30068 \end_inset
30069
30070  [
30071 \begin_inset Flex Code
30072 status collapsed
30073
30074 \begin_layout Plain Layout
30075 string
30076 \end_layout
30077
30078 \end_inset
30079
30080 ] The tag to be used for paragraph and item labels,
30081  replacing 
30082 \begin_inset Flex Code
30083 status collapsed
30084
30085 \begin_layout Plain Layout
30086 labeltag
30087 \end_layout
30088
30089 \end_inset
30090
30091  in the examples above.
30092  Defaults to 
30093 \begin_inset Flex Code
30094 status collapsed
30095
30096 \begin_layout Plain Layout
30097 span
30098 \end_layout
30099
30100 \end_inset
30101
30102 ,
30103  unless 
30104 \begin_inset Flex Code
30105 status collapsed
30106
30107 \begin_layout Plain Layout
30108 LabelType
30109 \end_layout
30110
30111 \end_inset
30112
30113  is either 
30114 \begin_inset Flex Code
30115 status collapsed
30116
30117 \begin_layout Plain Layout
30118 Top_Environment
30119 \end_layout
30120
30121 \end_inset
30122
30123  or 
30124 \begin_inset Flex Code
30125 status collapsed
30126
30127 \begin_layout Plain Layout
30128 Centered_Top_Environment
30129 \end_layout
30130
30131 \end_inset
30132
30133 ,
30134  in which case it defaults to 
30135 \begin_inset Flex Code
30136 status collapsed
30137
30138 \begin_layout Plain Layout
30139 div
30140 \end_layout
30141
30142 \end_inset
30143
30144 .
30145 \end_layout
30146
30147 \begin_layout Description
30148 \begin_inset Flex Code
30149 status collapsed
30150
30151 \begin_layout Plain Layout
30152 HTMLLabelAttr
30153 \end_layout
30154
30155 \end_inset
30156
30157  [
30158 \begin_inset Flex Code
30159 status collapsed
30160
30161 \begin_layout Plain Layout
30162 string
30163 \end_layout
30164
30165 \end_inset
30166
30167 ] Attributes for the label tag.
30168  Defaults to
30169 \begin_inset Newline newline
30170 \end_inset
30171
30172
30173 \begin_inset Quotes eld
30174 \end_inset
30175
30176
30177 \begin_inset Flex Code
30178 status collapsed
30179
30180 \begin_layout Plain Layout
30181 class=`layoutname_label'
30182 \end_layout
30183
30184 \end_inset
30185
30186
30187 \begin_inset Quotes erd
30188 \end_inset
30189
30190 .
30191  This should 
30192 \emph on
30193 not
30194 \emph default
30195  contain any style information.
30196  Use 
30197 \begin_inset Flex Code
30198 status collapsed
30199
30200 \begin_layout Plain Layout
30201 HTMLStyle
30202 \end_layout
30203
30204 \end_inset
30205
30206  for that purpose.
30207 \end_layout
30208
30209 \begin_layout Description
30210 \begin_inset Flex Code
30211 status collapsed
30212
30213 \begin_layout Plain Layout
30214 HTMLLabelFirst
30215 \end_layout
30216
30217 \end_inset
30218
30219  [
30220 \begin_inset Flex Code
30221 status collapsed
30222
30223 \begin_layout Plain Layout
30224
30225 \emph on
30226 0
30227 \emph default
30228 ,1
30229 \end_layout
30230
30231 \end_inset
30232
30233 ] Meaningful only for list-like environments,
30234  this tag controls whether the label tag is output before or inside the item tag.
30235  This is used,
30236  for example,
30237  in the description environment,
30238  where we want `
30239 \begin_inset Flex Code
30240 status collapsed
30241
30242 \begin_layout Plain Layout
30243 <dt>\SpecialChar ldots
30244 </dt><dd>\SpecialChar ldots
30245 </dd>
30246 \end_layout
30247
30248 \end_inset
30249
30250 .
30251  Default is 
30252 \begin_inset Flex Code
30253 status collapsed
30254
30255 \begin_layout Plain Layout
30256 0
30257 \end_layout
30258
30259 \end_inset
30260
30261 :
30262  The label tag is output inside the item tag.
30263 \end_layout
30264
30265 \begin_layout Description
30266 \begin_inset Flex Code
30267 status collapsed
30268
30269 \begin_layout Plain Layout
30270 HTMLPreamble
30271 \end_layout
30272
30273 \end_inset
30274
30275  Information to be output in the 
30276 \begin_inset Flex Code
30277 status collapsed
30278
30279 \begin_layout Plain Layout
30280 <head>
30281 \end_layout
30282
30283 \end_inset
30284
30285  section when this style is used.
30286  This might,
30287  for example,
30288  be used to include a 
30289 \begin_inset Flex Code
30290 status collapsed
30291
30292 \begin_layout Plain Layout
30293 <script>
30294 \end_layout
30295
30296 \end_inset
30297
30298  block defining an 
30299 \begin_inset Flex Code
30300 status collapsed
30301
30302 \begin_layout Plain Layout
30303 onclick
30304 \end_layout
30305
30306 \end_inset
30307
30308  handler.
30309 \end_layout
30310
30311 \begin_layout Description
30312 \begin_inset Flex Code
30313 status collapsed
30314
30315 \begin_layout Plain Layout
30316 HTMLStyle
30317 \end_layout
30318
30319 \end_inset
30320
30321  CSS style information to be included when this style is used.
30322  Note that this will automatically be wrapped in a layout-generated 
30323 \begin_inset Flex Code
30324 status collapsed
30325
30326 \begin_layout Plain Layout
30327 <style>
30328 \end_layout
30329
30330 \end_inset
30331
30332  block,
30333  so only the CSS itself need be included.
30334  Must end with 
30335 \begin_inset Flex Code
30336 status collapsed
30337
30338 \begin_layout Plain Layout
30339 EndHTMLStyle
30340 \end_layout
30341
30342 \end_inset
30343
30344 .
30345 \end_layout
30346
30347 \begin_layout Description
30348 \begin_inset Flex Code
30349 status collapsed
30350
30351 \begin_layout Plain Layout
30352 HTMLTag
30353 \end_layout
30354
30355 \end_inset
30356
30357  [
30358 \begin_inset Flex Code
30359 status collapsed
30360
30361 \begin_layout Plain Layout
30362 string
30363 \end_layout
30364
30365 \end_inset
30366
30367 ] The tag to be used for the main label,
30368  replacing 
30369 \begin_inset Flex Code
30370 status collapsed
30371
30372 \begin_layout Plain Layout
30373 tag
30374 \end_layout
30375
30376 \end_inset
30377
30378  in the examples above.
30379  Defaults to 
30380 \begin_inset Flex Code
30381 status collapsed
30382
30383 \begin_layout Plain Layout
30384 div
30385 \end_layout
30386
30387 \end_inset
30388
30389 .
30390 \end_layout
30391
30392 \begin_layout Description
30393 \begin_inset Flex Code
30394 status collapsed
30395
30396 \begin_layout Plain Layout
30397 HTMLTitle
30398 \end_layout
30399
30400 \end_inset
30401
30402  [
30403 \begin_inset Flex Code
30404 status collapsed
30405
30406 \begin_layout Plain Layout
30407
30408 \emph on
30409 0
30410 \emph default
30411 ,1
30412 \end_layout
30413
30414 \end_inset
30415
30416 ] Marks this style as the one to be used to generate the 
30417 \begin_inset Flex Code
30418 status collapsed
30419
30420 \begin_layout Plain Layout
30421 <title>
30422 \end_layout
30423
30424 \end_inset
30425
30426  tag for the XHTML file.
30427  By default,
30428  it is false.
30429  The 
30430 \begin_inset Flex Code
30431 status collapsed
30432
30433 \begin_layout Plain Layout
30434 stdtitle.inc
30435 \end_layout
30436
30437 \end_inset
30438
30439  file sets it to true for the 
30440 \begin_inset Flex Code
30441 status collapsed
30442
30443 \begin_layout Plain Layout
30444 title
30445 \end_layout
30446
30447 \end_inset
30448
30449  environment.
30450  
30451 \end_layout
30452
30453 \begin_layout Subsection
30454 InsetLayout XHTML
30455 \end_layout
30456
30457 \begin_layout Standard
30458 The XHTML output of insets can also be controlled by information in layout files.
30459 \begin_inset Foot
30460 status collapsed
30461
30462 \begin_layout Plain Layout
30463 At present,
30464  this is true only for 
30465 \begin_inset Quotes eld
30466 \end_inset
30467
30468 text
30469 \begin_inset Quotes erd
30470 \end_inset
30471
30472  insets (insets you can type into) and is not true for 
30473 \begin_inset Quotes eld
30474 \end_inset
30475
30476 command
30477 \begin_inset Quotes erd
30478 \end_inset
30479
30480  insets (insets that are associated with dialog boxes).
30481 \end_layout
30482
30483 \end_inset
30484
30485  Here,
30486  too,
30487  \SpecialChar LyX
30488  tries to provide sensible defaults,
30489  and it constructs default CSS style rules.
30490  But everything can be customized.
30491 \end_layout
30492
30493 \begin_layout Standard
30494 The XHTML \SpecialChar LyX
30495  outputs for an inset has the following form:
30496 \end_layout
30497
30498 \begin_layout LyX-Code
30499 <tag attr=
30500 \begin_inset Quotes erd
30501 \end_inset
30502
30503 value
30504 \begin_inset Quotes erd
30505 \end_inset
30506
30507 >
30508 \end_layout
30509
30510 \begin_layout LyX-Code
30511 <labeltag>Label</labeltag>
30512 \end_layout
30513
30514 \begin_layout LyX-Code
30515 <innertag attr=
30516 \begin_inset Quotes erd
30517 \end_inset
30518
30519 value
30520 \begin_inset Quotes erd
30521 \end_inset
30522
30523 >Contents of the inset.</innertag>
30524 \end_layout
30525
30526 \begin_layout LyX-Code
30527 </tag>
30528 \end_layout
30529
30530 \begin_layout Standard
30531 If the inset permits multiple paragraphs—
30532 that is,
30533  if 
30534 \begin_inset Flex Code
30535 status collapsed
30536
30537 \begin_layout Plain Layout
30538 MultiPar
30539 \end_layout
30540
30541 \end_inset
30542
30543  is true—
30544 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
30545  quote,
30546  and the like).
30547  The label tag is of course omitted if the paragraph does not have a label and,
30548  at present,
30549  is always 
30550 \begin_inset Flex Code
30551 status collapsed
30552
30553 \begin_layout Plain Layout
30554 span
30555 \end_layout
30556
30557 \end_inset
30558
30559 .
30560  The inner tag is optional and,
30561  by default,
30562  does not appear.
30563 \end_layout
30564
30565 \begin_layout Standard
30566 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
30567 \end_layout
30568
30569 \begin_layout Description
30570 \begin_inset Flex Code
30571 status collapsed
30572
30573 \begin_layout Plain Layout
30574 HTMLAttr
30575 \end_layout
30576
30577 \end_inset
30578
30579  [
30580 \begin_inset Flex Code
30581 status collapsed
30582
30583 \begin_layout Plain Layout
30584 string
30585 \end_layout
30586
30587 \end_inset
30588
30589 ] Specifies attribute information to be output with the main tag.
30590  For example,
30591  
30592 \begin_inset Quotes eld
30593 \end_inset
30594
30595
30596 \begin_inset Flex Code
30597 status collapsed
30598
30599 \begin_layout Plain Layout
30600 class=`myinset' onclick=`\SpecialChar ldots
30601 '
30602 \end_layout
30603
30604 \end_inset
30605
30606
30607 \begin_inset Quotes erd
30608 \end_inset
30609
30610 .
30611  By default,
30612  \SpecialChar LyX
30613  will output 
30614 \begin_inset Quotes eld
30615 \end_inset
30616
30617
30618 \begin_inset Flex Code
30619 status collapsed
30620
30621 \begin_layout Plain Layout
30622 class=`insetname'
30623 \end_layout
30624
30625 \end_inset
30626
30627
30628 \begin_inset Quotes erd
30629 \end_inset
30630
30631 ,
30632  where 
30633 \begin_inset Flex Code
30634 status collapsed
30635
30636 \begin_layout Plain Layout
30637 insetname
30638 \end_layout
30639
30640 \end_inset
30641
30642  is the \SpecialChar LyX
30643  name of the inset,
30644  made lowercase and with non-alphanumeric characters converted to underscores,
30645  for example:
30646  footnote.
30647 \end_layout
30648
30649 \begin_layout Description
30650 \begin_inset Flex Code
30651 status collapsed
30652
30653 \begin_layout Plain Layout
30654 HTMLForceCSS
30655 \end_layout
30656
30657 \end_inset
30658
30659  [
30660 \begin_inset Flex Code
30661 status collapsed
30662
30663 \begin_layout Plain Layout
30664
30665 \emph on
30666 0
30667 \emph default
30668 ,1
30669 \end_layout
30670
30671 \end_inset
30672
30673 ] Whether to output the default CSS information \SpecialChar LyX
30674  generates for this layout,
30675  even if additional information is explicitly provided via 
30676 \begin_inset Flex Code
30677 status collapsed
30678
30679 \begin_layout Plain Layout
30680 HTMLStyle
30681 \end_layout
30682
30683 \end_inset
30684
30685 .
30686  Setting this to 
30687 \begin_inset Flex Code
30688 status collapsed
30689
30690 \begin_layout Plain Layout
30691 1
30692 \end_layout
30693
30694 \end_inset
30695
30696  allows you to alter or augment the generated CSS,
30697  rather than to override it completely.
30698  Default is 0.
30699 \end_layout
30700
30701 \begin_layout Description
30702 \begin_inset Flex Code
30703 status collapsed
30704
30705 \begin_layout Plain Layout
30706 HTMLInnerAttr
30707 \end_layout
30708
30709 \end_inset
30710
30711  [
30712 \begin_inset Flex Code
30713 status collapsed
30714
30715 \begin_layout Plain Layout
30716 string
30717 \end_layout
30718
30719 \end_inset
30720
30721 ] Attributes for the inner tag.
30722  Defaults to
30723 \begin_inset Newline newline
30724 \end_inset
30725
30726
30727 \begin_inset Quotes eld
30728 \end_inset
30729
30730
30731 \begin_inset Flex Code
30732 status collapsed
30733
30734 \begin_layout Plain Layout
30735 class=`insetname_inner'
30736 \end_layout
30737
30738 \end_inset
30739
30740
30741 \begin_inset Quotes erd
30742 \end_inset
30743
30744 .
30745 \end_layout
30746
30747 \begin_layout Description
30748 \begin_inset Flex Code
30749 status collapsed
30750
30751 \begin_layout Plain Layout
30752 HTMLInnerTag
30753 \end_layout
30754
30755 \end_inset
30756
30757  [
30758 \begin_inset Flex Code
30759 status collapsed
30760
30761 \begin_layout Plain Layout
30762 string
30763 \end_layout
30764
30765 \end_inset
30766
30767 ] The inner tag,
30768  replacing 
30769 \begin_inset Flex Code
30770 status collapsed
30771
30772 \begin_layout Plain Layout
30773 innertag
30774 \end_layout
30775
30776 \end_inset
30777
30778  in the examples above.
30779  By default,
30780  there is none.
30781 \end_layout
30782
30783 \begin_layout Description
30784 \begin_inset Flex Code
30785 status collapsed
30786
30787 \begin_layout Plain Layout
30788 HTMLIsBlock
30789 \end_layout
30790
30791 \end_inset
30792
30793  [
30794 \begin_inset Flex Code
30795 status collapsed
30796
30797 \begin_layout Plain Layout
30798 0,
30799 \emph on
30800 1
30801 \end_layout
30802
30803 \end_inset
30804
30805 ] 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).
30806  Defaults to 1.
30807 \end_layout
30808
30809 \begin_layout Description
30810 \begin_inset Flex Code
30811 status collapsed
30812
30813 \begin_layout Plain Layout
30814 HTMLLabel
30815 \end_layout
30816
30817 \end_inset
30818
30819  [
30820 \begin_inset Flex Code
30821 status collapsed
30822
30823 \begin_layout Plain Layout
30824 string
30825 \end_layout
30826
30827 \end_inset
30828
30829 ] A label for this inset,
30830  possibly including a reference to a counter.
30831  For example,
30832  for footnote,
30833  it might be:
30834  
30835 \begin_inset Flex Code
30836 status collapsed
30837
30838 \begin_layout Plain Layout
30839
30840 \backslash
30841 arabic{footnote}
30842 \end_layout
30843
30844 \end_inset
30845
30846 .
30847  This is optional,
30848  and there is no default.
30849 \end_layout
30850
30851 \begin_layout Description
30852 \begin_inset Flex Code
30853 status collapsed
30854
30855 \begin_layout Plain Layout
30856 HTMLPreamble
30857 \end_layout
30858
30859 \end_inset
30860
30861  Information to be output in the 
30862 \begin_inset Flex Code
30863 status collapsed
30864
30865 \begin_layout Plain Layout
30866 <head>
30867 \end_layout
30868
30869 \end_inset
30870
30871  section when this style is used.
30872  This might,
30873  for example,
30874  be used to include a 
30875 \begin_inset Flex Code
30876 status collapsed
30877
30878 \begin_layout Plain Layout
30879 <script>
30880 \end_layout
30881
30882 \end_inset
30883
30884  block defining an 
30885 \begin_inset Flex Code
30886 status collapsed
30887
30888 \begin_layout Plain Layout
30889 onclick
30890 \end_layout
30891
30892 \end_inset
30893
30894  handler.
30895 \end_layout
30896
30897 \begin_layout Description
30898 \begin_inset Flex Code
30899 status collapsed
30900
30901 \begin_layout Plain Layout
30902 HTMLStyle
30903 \end_layout
30904
30905 \end_inset
30906
30907  CSS style information to be included when this style is used.
30908  Note that this will automatically be wrapped in a layout-generated 
30909 \begin_inset Flex Code
30910 status collapsed
30911
30912 \begin_layout Plain Layout
30913 <style>
30914 \end_layout
30915
30916 \end_inset
30917
30918  block,
30919  so only the CSS itself need be included.
30920 \end_layout
30921
30922 \begin_layout Description
30923 \begin_inset Flex Code
30924 status collapsed
30925
30926 \begin_layout Plain Layout
30927 HTMLTag
30928 \end_layout
30929
30930 \end_inset
30931
30932  [
30933 \begin_inset Flex Code
30934 status collapsed
30935
30936 \begin_layout Plain Layout
30937 string
30938 \end_layout
30939
30940 \end_inset
30941
30942 ] The tag to be used for the main label,
30943  replacing 
30944 \begin_inset Flex Code
30945 status collapsed
30946
30947 \begin_layout Plain Layout
30948 tag
30949 \end_layout
30950
30951 \end_inset
30952
30953  in the examples above.
30954  The default depends upon the setting of 
30955 \begin_inset Flex Code
30956 status collapsed
30957
30958 \begin_layout Plain Layout
30959 MultiPar
30960 \end_layout
30961
30962 \end_inset
30963
30964 :
30965  If 
30966 \begin_inset Flex Code
30967 status collapsed
30968
30969 \begin_layout Plain Layout
30970 MultiPar
30971 \end_layout
30972
30973 \end_inset
30974
30975  is true,
30976  the default is 
30977 \begin_inset Flex Code
30978 status collapsed
30979
30980 \begin_layout Plain Layout
30981 div
30982 \end_layout
30983
30984 \end_inset
30985
30986 ;
30987  if it is false,
30988  the default is 
30989 \begin_inset Flex Code
30990 status collapsed
30991
30992 \begin_layout Plain Layout
30993 span
30994 \end_layout
30995
30996 \end_inset
30997
30998 .
30999 \end_layout
31000
31001 \begin_layout Subsection
31002 Float XHTML
31003 \end_layout
31004
31005 \begin_layout Standard
31006 The XHTML output for floats too can be controlled by layout information.
31007  The output has the following form:
31008 \end_layout
31009
31010 \begin_layout LyX-Code
31011 <tag attr=
31012 \begin_inset Quotes erd
31013 \end_inset
31014
31015 value
31016 \begin_inset Quotes erd
31017 \end_inset
31018
31019 >
31020 \end_layout
31021
31022 \begin_layout LyX-Code
31023 Contents of the float.
31024 \end_layout
31025
31026 \begin_layout LyX-Code
31027 </tag>
31028 \end_layout
31029
31030 \begin_layout Standard
31031 The caption,
31032  if there is one,
31033  is a separate inset and will be output as such.
31034  Its appearance can be controlled via the InsetLayout for caption insets.
31035  
31036 \end_layout
31037
31038 \begin_layout Description
31039 \begin_inset Flex Code
31040 status collapsed
31041
31042 \begin_layout Plain Layout
31043 HTMLAttr
31044 \end_layout
31045
31046 \end_inset
31047
31048  [
31049 \begin_inset Flex Code
31050 status collapsed
31051
31052 \begin_layout Plain Layout
31053 string
31054 \end_layout
31055
31056 \end_inset
31057
31058 ] Specifies attribute information to be output with the main tag.
31059  For example,
31060  
31061 \begin_inset Quotes eld
31062 \end_inset
31063
31064
31065 \begin_inset Flex Code
31066 status collapsed
31067
31068 \begin_layout Plain Layout
31069 class=`myfloat' onclick=`\SpecialChar ldots
31070 '
31071 \end_layout
31072
31073 \end_inset
31074
31075
31076 \begin_inset Quotes erd
31077 \end_inset
31078
31079 .
31080  By default,
31081  \SpecialChar LyX
31082  will output 
31083 \begin_inset Quotes eld
31084 \end_inset
31085
31086
31087 \begin_inset Flex Code
31088 status collapsed
31089
31090 \begin_layout Plain Layout
31091 class=`float float-floattype'
31092 \end_layout
31093
31094 \end_inset
31095
31096
31097 \begin_inset Quotes erd
31098 \end_inset
31099
31100 ,
31101  where 
31102 \begin_inset Flex Code
31103 status collapsed
31104
31105 \begin_layout Plain Layout
31106 floattype
31107 \end_layout
31108
31109 \end_inset
31110
31111  is \SpecialChar LyX
31112 's name for this type of float,
31113  as determined by the float declaration (see 
31114 \begin_inset CommandInset ref
31115 LatexCommand ref
31116 reference "subsec:Floats"
31117 nolink "false"
31118
31119 \end_inset
31120
31121 ),
31122  though made lowercase and with non-alphanumeric characters converted to underscores,
31123  for example:
31124  float-table.
31125 \end_layout
31126
31127 \begin_layout Description
31128 \begin_inset Flex Code
31129 status collapsed
31130
31131 \begin_layout Plain Layout
31132 HTMLStyle
31133 \end_layout
31134
31135 \end_inset
31136
31137  CSS style information to be included when this float is used.
31138  Note that this will automatically be wrapped in a layout-generated 
31139 \begin_inset Flex Code
31140 status collapsed
31141
31142 \begin_layout Plain Layout
31143 <style>
31144 \end_layout
31145
31146 \end_inset
31147
31148  block,
31149  so only the CSS itself need be included.
31150 \end_layout
31151
31152 \begin_layout Description
31153 \begin_inset Flex Code
31154 status collapsed
31155
31156 \begin_layout Plain Layout
31157 HTMLTag
31158 \end_layout
31159
31160 \end_inset
31161
31162  [
31163 \begin_inset Flex Code
31164 status collapsed
31165
31166 \begin_layout Plain Layout
31167 string
31168 \end_layout
31169
31170 \end_inset
31171
31172 ] The tag to be used for this float,
31173  replacing 
31174 \begin_inset Quotes eld
31175 \end_inset
31176
31177
31178 \begin_inset Flex Code
31179 status collapsed
31180
31181 \begin_layout Plain Layout
31182 tag
31183 \end_layout
31184
31185 \end_inset
31186
31187
31188 \begin_inset Quotes erd
31189 \end_inset
31190
31191  in the example above.
31192  The default is 
31193 \begin_inset Flex Code
31194 status collapsed
31195
31196 \begin_layout Plain Layout
31197 div
31198 \end_layout
31199
31200 \end_inset
31201
31202  and will rarely need changing.
31203 \end_layout
31204
31205 \begin_layout Subsection
31206 Bibliography formatting
31207 \end_layout
31208
31209 \begin_layout Standard
31210 The bibliography can be formatted using 
31211 \begin_inset Flex Code
31212 status collapsed
31213
31214 \begin_layout Plain Layout
31215 CiteFormat
31216 \end_layout
31217
31218 \end_inset
31219
31220  blocks.
31221  See 
31222 \begin_inset CommandInset ref
31223 LatexCommand ref
31224 reference "subsec:Citation-format-description"
31225 nolink "false"
31226
31227 \end_inset
31228
31229  for the details.
31230 \end_layout
31231
31232 \begin_layout Subsection
31233 \SpecialChar LyX
31234 -generated CSS
31235 \end_layout
31236
31237 \begin_layout Standard
31238 We have several times mentioned that \SpecialChar LyX
31239  will generate default CSS style rules for both insets and paragraph styles,
31240  based upon the other layout information that is provided.
31241  In this section,
31242  we shall say a word about which layout information \SpecialChar LyX
31243  uses and how.
31244 \end_layout
31245
31246 \begin_layout Standard
31247 At present,
31248  \SpecialChar LyX
31249  auto-generates CSS only for font information,
31250  making use of the 
31251 \begin_inset Flex Code
31252 status collapsed
31253
31254 \begin_layout Plain Layout
31255 Family
31256 \end_layout
31257
31258 \end_inset
31259
31260 ,
31261  
31262 \begin_inset Flex Code
31263 status collapsed
31264
31265 \begin_layout Plain Layout
31266 Series
31267 \end_layout
31268
31269 \end_inset
31270
31271 ,
31272  
31273 \begin_inset Flex Code
31274 status collapsed
31275
31276 \begin_layout Plain Layout
31277 Shape
31278 \end_layout
31279
31280 \end_inset
31281
31282 ,
31283  and 
31284 \begin_inset Flex Code
31285 status collapsed
31286
31287 \begin_layout Plain Layout
31288 Size
31289 \end_layout
31290
31291 \end_inset
31292
31293  specified in the 
31294 \begin_inset Flex Code
31295 status collapsed
31296
31297 \begin_layout Plain Layout
31298 Font
31299 \end_layout
31300
31301 \end_inset
31302
31303  declaration (see 
31304 \begin_inset CommandInset ref
31305 LatexCommand ref
31306 reference "subsec:Font-description"
31307 nolink "false"
31308
31309 \end_inset
31310
31311 ).
31312  The translation is mostly straightforward and obvious.
31313  For example,
31314  
31315 \begin_inset Quotes eld
31316 \end_inset
31317
31318
31319 \begin_inset Flex Code
31320 status collapsed
31321
31322 \begin_layout Plain Layout
31323 Family Sans
31324 \end_layout
31325
31326 \end_inset
31327
31328
31329 \begin_inset Quotes erd
31330 \end_inset
31331
31332  becomes 
31333 \begin_inset Quotes eld
31334 \end_inset
31335
31336
31337 \begin_inset Flex Code
31338 status collapsed
31339
31340 \begin_layout Plain Layout
31341 font-family:
31342  sans-serif;
31343 \end_layout
31344
31345 \end_inset
31346
31347
31348 \begin_inset Quotes erd
31349 \end_inset
31350
31351 .
31352  The correspondence of \SpecialChar LyX
31353  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
31354  See the 
31355 \begin_inset Flex Code
31356 status collapsed
31357
31358 \begin_layout Plain Layout
31359 getSizeCSS()
31360 \end_layout
31361
31362 \end_inset
31363
31364  function in 
31365 \begin_inset Flex URL
31366 status collapsed
31367
31368 \begin_layout Plain Layout
31369
31370 src/FontInfo.cpp
31371 \end_layout
31372
31373 \end_inset
31374
31375  for the details.
31376 \change_inserted -970929547 1496610908
31377
31378 \end_layout
31379
31380 \begin_layout Section
31381
31382 \change_inserted -970929547 1496610966
31383 \begin_inset CommandInset label
31384 LatexCommand label
31385 name "sec:Tags-for-DocBook"
31386
31387 \end_inset
31388
31389 Tags for DocBook output
31390 \end_layout
31391
31392 \begin_layout Standard
31393
31394 \change_inserted -970929547 1496611615
31395 As with \SpecialChar LaTeX
31396  or XHTML,
31397  the format of \SpecialChar LyX
31398 's DocBook output is also controlled by layout information.
31399  In general,
31400  \SpecialChar LyX
31401  provides sensible defaults;
31402  however,
31403  much of the styling is lost during the conversion,
31404  as DocBook is strictly semantic and does not allow formatting.
31405  When possible,
31406  information from \SpecialChar LyX
31407  will be rendered in 
31408 \family typewriter
31409 role
31410 \family default
31411  attributes.
31412  
31413 \end_layout
31414
31415 \begin_layout Standard
31416
31417 \change_inserted -970929547 1496612080
31418 In many cases,
31419  then,
31420  you may not have to do anything at all to get acceptable DocBook output for your own environments,
31421  custom insets,
31422  and so forth.
31423  But in some cases you will,
31424  and so \SpecialChar LyX
31425  provides a number of layout tags that can be used to customize the DocBook that is generated.
31426 \end_layout
31427
31428 \begin_layout Standard
31429
31430 \change_inserted -970929547 1515109912
31431 Labels are rarely output,
31432  as they are redundant in DocBook:
31433  this information is carried by the tags themselves,
31434  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
31435  However,
31436  sometimes,
31437  labels are not redundant content,
31438  such as definition lists:
31439  in this case,
31440  the term being defined will be the label.
31441  
31442 \end_layout
31443
31444 \begin_layout Subsection
31445
31446 \change_inserted 1075283030 1597699417
31447 \begin_inset CommandInset label
31448 LatexCommand label
31449 name "subsec:Paragraph-Style-DocBook"
31450
31451 \end_inset
31452
31453
31454 \change_deleted 1075283030 1597699417
31455
31456 \begin_inset CommandInset label
31457 LatexCommand label
31458 name "subsec:Paragraph-Style-XHTML-1"
31459
31460 \end_inset
31461
31462
31463 \change_inserted -970929547 1496610966
31464 Paragraph styles
31465 \end_layout
31466
31467 \begin_layout Standard
31468
31469 \change_inserted -970929547 1496612059
31470 The sort of DocBook \SpecialChar LyX
31471  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
31472  a command,
31473  or an environment,
31474  where this is itself determined by the contents of the corresponding 
31475 \begin_inset Flex Code
31476 status collapsed
31477
31478 \begin_layout Plain Layout
31479
31480 \change_inserted -970929547 1496610966
31481 \SpecialChar LaTeX
31482 Type
31483 \change_unchanged
31484
31485 \end_layout
31486
31487 \end_inset
31488
31489  tag.
31490  
31491 \end_layout
31492
31493 \begin_layout Standard
31494
31495 \change_inserted -970929547 1496612107
31496 For a command or normal paragraph,
31497  the output DocBook has the following form:
31498 \end_layout
31499
31500 \begin_layout LyX-Code
31501
31502 \change_inserted -970929547 1515109666
31503 <tag attr>
31504 \end_layout
31505
31506 \begin_layout LyX-Code
31507
31508 \change_inserted -970929547 1496610966
31509 Contents of the paragraph.
31510 \end_layout
31511
31512 \begin_layout LyX-Code
31513
31514 \change_inserted -970929547 1496610966
31515 </tag>
31516 \end_layout
31517
31518 \begin_layout Standard
31519
31520 \change_inserted -970929547 1515109821
31521 For an environment that is not some sort of list,
31522  the generated DocBook takes this form:
31523 \end_layout
31524
31525 \begin_layout LyX-Code
31526
31527 \change_inserted -970929547 1515109671
31528 <tag attr>
31529 \end_layout
31530
31531 \begin_layout LyX-Code
31532
31533 \change_inserted -970929547 1496612114
31534 <itemtag>First paragraph.</itemtag>
31535 \end_layout
31536
31537 \begin_layout LyX-Code
31538
31539 \change_inserted -970929547 1496610966
31540 <itemtag>Second paragraph.</itemtag>
31541 \end_layout
31542
31543 \begin_layout LyX-Code
31544
31545 \change_inserted -970929547 1496610966
31546 </tag>
31547 \end_layout
31548
31549 \begin_layout Standard
31550
31551 \change_inserted -970929547 1515109825
31552 For a list,
31553  the resulting DocBook takes this form:
31554 \end_layout
31555
31556 \begin_layout LyX-Code
31557
31558 \change_inserted -970929547 1515109672
31559 <tag attr>
31560 \end_layout
31561
31562 \begin_layout LyX-Code
31563
31564 \change_inserted -970929547 1515109676
31565 <itemtag attr>First item.</itemtag>
31566 \end_layout
31567
31568 \begin_layout LyX-Code
31569
31570 \change_inserted -970929547 1515109678
31571 <itemtag attr>Second item.</itemtag>
31572 \end_layout
31573
31574 \begin_layout LyX-Code
31575
31576 \change_inserted -970929547 1496610966
31577 </tag>
31578 \end_layout
31579
31580 \begin_layout Standard
31581
31582 \change_inserted -970929547 1496612243
31583 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
31584  Please note that,
31585  due to the very nature of DocBook,
31586  no sensible defaults really exist,
31587  and the values must always be carefully chosen.
31588  
31589 \end_layout
31590
31591 \begin_layout Description
31592
31593 \change_inserted -970929547 1515110057
31594 \begin_inset Flex Code
31595 status collapsed
31596
31597 \begin_layout Plain Layout
31598
31599 \change_inserted -970929547 1515109656
31600 DocBookAttr
31601 \change_unchanged
31602
31603 \end_layout
31604
31605 \end_inset
31606
31607  [
31608 \begin_inset Flex Code
31609 status collapsed
31610
31611 \begin_layout Plain Layout
31612
31613 \change_inserted -970929547 1496610966
31614 string
31615 \change_unchanged
31616
31617 \end_layout
31618
31619 \end_inset
31620
31621 ] Specifies attribute information to be output with the main tag,
31622  replacing 
31623 \begin_inset Quotes eld
31624 \end_inset
31625
31626
31627 \begin_inset Flex Code
31628 status collapsed
31629
31630 \begin_layout Plain Layout
31631
31632 \change_inserted -970929547 1515110057
31633 attr
31634 \change_unchanged
31635
31636 \end_layout
31637
31638 \end_inset
31639
31640
31641 \begin_inset Quotes erd
31642 \end_inset
31643
31644  in the example above.
31645  This information can be used in further processing of the DocBook files.
31646  
31647 \change_unchanged
31648
31649 \end_layout
31650
31651 \begin_layout Description
31652
31653 \change_inserted -970929547 1496612296
31654 \begin_inset Flex Code
31655 status collapsed
31656
31657 \begin_layout Plain Layout
31658
31659 \change_inserted -970929547 1496612269
31660 DocBookTag
31661 \change_unchanged
31662
31663 \end_layout
31664
31665 \end_inset
31666
31667  [
31668 \begin_inset Flex Code
31669 status collapsed
31670
31671 \begin_layout Plain Layout
31672
31673 \change_inserted -970929547 1496610966
31674 string
31675 \change_unchanged
31676
31677 \end_layout
31678
31679 \end_inset
31680
31681 ] The tag to be used for this inset,
31682  replacing 
31683 \begin_inset Quotes eld
31684 \end_inset
31685
31686
31687 \begin_inset Flex Code
31688 status collapsed
31689
31690 \begin_layout Plain Layout
31691
31692 \change_inserted -970929547 1496612296
31693 tag
31694 \change_unchanged
31695
31696 \end_layout
31697
31698 \end_inset
31699
31700
31701 \begin_inset Quotes erd
31702 \end_inset
31703
31704  in the example above.
31705  The default is the name of the float and always needs to be changed,
31706  as DocBook provides no generic tag.
31707 \change_inserted 1075283030 1597698868
31708
31709 \end_layout
31710
31711 \begin_layout Description
31712
31713 \change_inserted 1075283030 1597699399
31714 \begin_inset Flex Code
31715 status collapsed
31716
31717 \begin_layout Plain Layout
31718
31719 \change_inserted 1075283030 1597698872
31720 DocBookTagType
31721 \change_unchanged
31722
31723 \end_layout
31724
31725 \end_inset
31726
31727  [
31728 \begin_inset Flex Code
31729 status collapsed
31730
31731 \begin_layout Plain Layout
31732
31733 \change_inserted 1075283030 1597700585
31734 block,
31735  paragraph,
31736  inline
31737 \change_unchanged
31738
31739 \end_layout
31740
31741 \end_inset
31742
31743 ] The new-line policy for this tag,
31744  see Section
31745 \begin_inset space ~
31746 \end_inset
31747
31748
31749 \begin_inset CommandInset ref
31750 LatexCommand ref
31751 reference "subsec:DocBook-New-line-policy"
31752 plural "false"
31753 caps "false"
31754 noprefix "false"
31755 nolink "false"
31756
31757 \end_inset
31758
31759  for the details.
31760  
31761 \change_unchanged
31762
31763 \end_layout
31764
31765 \begin_layout Subsection
31766
31767 \change_inserted 1075283030 1597699385
31768 New-line policy
31769 \begin_inset CommandInset label
31770 LatexCommand label
31771 name "subsec:DocBook-New-line-policy"
31772
31773 \end_inset
31774
31775
31776 \end_layout
31777
31778 \begin_layout Standard
31779
31780 \change_inserted 1075283030 1597698993
31781 For all tags,
31782  there are three possible policies for outputting new lines (given in the 
31783 \begin_inset Flex Code
31784 status collapsed
31785
31786 \begin_layout Plain Layout
31787
31788 \change_inserted 1075283030 1597698987
31789 DocBook*TagType
31790 \change_unchanged
31791
31792 \end_layout
31793
31794 \end_inset
31795
31796  attribute):
31797  
31798 \end_layout
31799
31800 \begin_layout Itemize
31801
31802 \change_inserted 1075283030 1597699279
31803 \begin_inset Quotes eld
31804 \end_inset
31805
31806
31807 \begin_inset Flex Code
31808 status collapsed
31809
31810 \begin_layout Plain Layout
31811
31812 \change_inserted 1075283030 1597699012
31813 block
31814 \change_unchanged
31815
31816 \end_layout
31817
31818 \end_inset
31819
31820
31821 \begin_inset Quotes erd
31822 \end_inset
31823
31824 :
31825  the opening and closing tags are on their own lines (i.e.
31826  a line feed after and before the opening and the closing tags).
31827  Typical elements are floats.
31828  For instance:
31829  
31830 \end_layout
31831
31832 \begin_layout LyX-Code
31833
31834 \change_inserted 1075283030 1597699194
31835 Content before
31836 \end_layout
31837
31838 \begin_layout LyX-Code
31839
31840 \change_inserted 1075283030 1597699194
31841 <blocktag>
31842 \end_layout
31843
31844 \begin_layout LyX-Code
31845
31846 \change_inserted 1075283030 1597699098
31847   Contents of the block.
31848 \end_layout
31849
31850 \begin_layout LyX-Code
31851
31852 \change_inserted 1075283030 1597699196
31853 </blocktag>
31854 \end_layout
31855
31856 \begin_layout LyX-Code
31857
31858 \change_inserted 1075283030 1597699198
31859 Content after
31860 \end_layout
31861
31862 \begin_layout Itemize
31863
31864 \change_inserted 1075283030 1597699289
31865 \begin_inset Quotes eld
31866 \end_inset
31867
31868
31869 \begin_inset Flex Code
31870 status collapsed
31871
31872 \begin_layout Plain Layout
31873
31874 \change_inserted 1075283030 1597699113
31875 paragraph
31876 \change_unchanged
31877
31878 \end_layout
31879
31880 \end_inset
31881
31882
31883 \begin_inset Quotes erd
31884 \end_inset
31885
31886 :
31887  the opening and closing tags are on the same,
31888  new line;
31889  a line feed is output before the opening tag and after the closing tag.
31890  Typical elements are paragraphs and list items.
31891  For instance:
31892  
31893 \end_layout
31894
31895 \begin_layout LyX-Code
31896
31897 \change_inserted 1075283030 1597699186
31898 Content before
31899 \end_layout
31900
31901 \begin_layout LyX-Code
31902
31903 \change_inserted 1075283030 1597699357
31904 <paratag>Contents of the paragraph.</paratag>
31905 \end_layout
31906
31907 \begin_layout LyX-Code
31908
31909 \change_inserted 1075283030 1597699231
31910 Content after
31911 \end_layout
31912
31913 \begin_layout Itemize
31914
31915 \change_inserted 1075283030 1597699343
31916 \begin_inset Quotes eld
31917 \end_inset
31918
31919
31920 \begin_inset Flex Code
31921 status collapsed
31922
31923 \begin_layout Plain Layout
31924
31925 \change_inserted 1075283030 1597699307
31926 inline
31927 \change_unchanged
31928
31929 \end_layout
31930
31931 \end_inset
31932
31933
31934 \begin_inset Quotes erd
31935 \end_inset
31936
31937 :
31938  the opening and closing tags are on the same line as the rest of the content.
31939  No line feeds are output.
31940  Typical elements are fonts.
31941  For instance:
31942  
31943 \end_layout
31944
31945 \begin_layout LyX-Code
31946
31947 \change_inserted 1075283030 1597699585
31948 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
31949 \end_layout
31950
31951 \begin_layout Standard
31952
31953 \change_inserted 1075283030 1597699585
31954 The default value is always 
31955 \begin_inset Quotes eld
31956 \end_inset
31957
31958
31959 \begin_inset Flex Code
31960 status collapsed
31961
31962 \begin_layout Plain Layout
31963
31964 \change_inserted 1075283030 1597699585
31965 block
31966 \change_unchanged
31967
31968 \end_layout
31969
31970 \end_inset
31971
31972
31973 \begin_inset Quotes erd
31974 \end_inset
31975
31976 .
31977 \change_unchanged
31978
31979 \end_layout
31980
31981 \begin_layout Subsection
31982
31983 \change_inserted -970929547 1515111533
31984 InsetLayout DocBook
31985 \change_unchanged
31986
31987 \end_layout
31988
31989 \begin_layout Standard
31990
31991 \change_inserted -970929547 1496611894
31992 The DocBook output of insets can also be controlled by information in layout files.
31993 \end_layout
31994
31995 \begin_layout Standard
31996
31997 \change_inserted -970929547 1496612045
31998 The DocBook \SpecialChar LyX
31999  outputs for an inset has the following form:
32000 \end_layout
32001
32002 \begin_layout LyX-Code
32003
32004 \change_inserted -970929547 1515110861
32005 <wrappertag wrapperattr>
32006 \end_layout
32007
32008 \begin_layout LyX-Code
32009
32010 \change_inserted -970929547 1515110868
32011   <tag attr>
32012 \end_layout
32013
32014 \begin_layout LyX-Code
32015
32016 \change_inserted -970929547 1515110869
32017     <innertag innerattr>
32018 \end_layout
32019
32020 \begin_layout LyX-Code
32021
32022 \change_inserted -970929547 1515110869
32023       Contents of the inset.
32024 \end_layout
32025
32026 \begin_layout LyX-Code
32027
32028 \change_inserted -970929547 1515110870
32029     </innertag>
32030 \end_layout
32031
32032 \begin_layout LyX-Code
32033
32034 \change_inserted -970929547 1515110871
32035   </tag>
32036 \end_layout
32037
32038 \begin_layout LyX-Code
32039
32040 \change_inserted -970929547 1515111172
32041 </wrappertag>
32042 \end_layout
32043
32044 \begin_layout Standard
32045
32046 \change_inserted -970929547 1515111186
32047 For an itemising inset,
32048  it rather looks like this:
32049  
32050 \end_layout
32051
32052 \begin_layout LyX-Code
32053
32054 \change_inserted -970929547 1515111186
32055 <wrappertag wrapperattr>
32056 \end_layout
32057
32058 \begin_layout LyX-Code
32059
32060 \change_inserted -970929547 1515111186
32061   <tag attr>
32062 \end_layout
32063
32064 \begin_layout LyX-Code
32065
32066 \change_inserted -970929547 1515111186
32067     <innertag innerattr>
32068 \end_layout
32069
32070 \begin_layout LyX-Code
32071
32072 \change_inserted -970929547 1515111362
32073       <itemwrappertag itemwrapperattr>
32074 \end_layout
32075
32076 \begin_layout LyX-Code
32077
32078 \change_inserted -970929547 1515111364
32079         <itemlabeltag itemattr>
32080 \end_layout
32081
32082 \begin_layout LyX-Code
32083
32084 \change_inserted -970929547 1515111367
32085           Label of the first item.
32086 \end_layout
32087
32088 \begin_layout LyX-Code
32089
32090 \change_inserted -970929547 1515111362
32091         </itemtag>
32092 \change_unchanged
32093
32094 \end_layout
32095
32096 \begin_layout LyX-Code
32097
32098 \change_inserted -970929547 1515111517
32099         <itemtag itemattr>
32100 \end_layout
32101
32102 \begin_layout LyX-Code
32103
32104 \change_inserted -970929547 1515111517
32105           <itemtag itemattr>
32106 \change_unchanged
32107
32108 \end_layout
32109
32110 \begin_layout LyX-Code
32111
32112 \change_inserted -970929547 1515111516
32113             Contents of the first item.
32114 \end_layout
32115
32116 \begin_layout LyX-Code
32117
32118 \change_inserted -970929547 1515111514
32119           </itemtag>
32120 \change_unchanged
32121
32122 \end_layout
32123
32124 \begin_layout LyX-Code
32125
32126 \change_inserted -970929547 1515111247
32127         </itemtag>
32128 \change_unchanged
32129
32130 \end_layout
32131
32132 \begin_layout LyX-Code
32133
32134 \change_inserted -970929547 1515111221
32135       </itemwrappertag>
32136 \end_layout
32137
32138 \begin_layout LyX-Code
32139
32140 \change_inserted -970929547 1515111370
32141       <itemwrappertag itemwrapperattr>
32142 \end_layout
32143
32144 \begin_layout LyX-Code
32145
32146 \change_inserted -970929547 1515111370
32147         <itemlabeltag itemattr>
32148 \end_layout
32149
32150 \begin_layout LyX-Code
32151
32152 \change_inserted -970929547 1515111372
32153           Label of the second item.
32154 \end_layout
32155
32156 \begin_layout LyX-Code
32157
32158 \change_inserted -970929547 1515111370
32159         </itemtag>
32160 \change_unchanged
32161
32162 \end_layout
32163
32164 \begin_layout LyX-Code
32165
32166 \change_inserted -970929547 1515111504
32167         <itemtag itemattr>
32168 \end_layout
32169
32170 \begin_layout LyX-Code
32171
32172 \change_inserted -970929547 1515111505
32173           <itemtag itemattr>
32174 \change_unchanged
32175
32176 \end_layout
32177
32178 \begin_layout LyX-Code
32179
32180 \change_inserted -970929547 1515111507
32181             Contents of the second item.
32182 \end_layout
32183
32184 \begin_layout LyX-Code
32185
32186 \change_inserted -970929547 1515111509
32187           </itemtag>
32188 \change_unchanged
32189
32190 \end_layout
32191
32192 \begin_layout LyX-Code
32193
32194 \change_inserted -970929547 1515111251
32195         </itemtag>
32196 \change_unchanged
32197
32198 \end_layout
32199
32200 \begin_layout LyX-Code
32201
32202 \change_inserted -970929547 1515111221
32203       </itemwrappertag>
32204 \change_unchanged
32205
32206 \end_layout
32207
32208 \begin_layout LyX-Code
32209
32210 \change_inserted -970929547 1515111219
32211       ...
32212 \change_unchanged
32213
32214 \end_layout
32215
32216 \begin_layout LyX-Code
32217
32218 \change_inserted -970929547 1515111186
32219     </innertag>
32220 \end_layout
32221
32222 \begin_layout LyX-Code
32223
32224 \change_inserted -970929547 1515111186
32225   </tag>
32226 \end_layout
32227
32228 \begin_layout LyX-Code
32229
32230 \change_inserted -970929547 1515111186
32231 </wrappertag>
32232 \end_layout
32233
32234 \begin_layout Standard
32235
32236 \change_inserted -970929547 1515111183
32237 If the inset permits multiple paragraphs—
32238 that is,
32239  if 
32240 \begin_inset Flex Code
32241 status collapsed
32242
32243 \begin_layout Plain Layout
32244
32245 \change_inserted -970929547 1496610966
32246 MultiPar
32247 \change_unchanged
32248
32249 \end_layout
32250
32251 \end_inset
32252
32253  is true—
32254 then the contents of the inset will 
32255 \change_deleted 34634807 1620029217
32256 itself
32257 \change_inserted 34634807 1620029219
32258 themselves
32259 \change_inserted -970929547 1515111183
32260  be output as paragraphs formatted according to the styles used for those paragraphs (standard,
32261  quote,
32262  and the like).
32263  The inner tag is optional and,
32264  by default,
32265  does not appear.
32266 \end_layout
32267
32268 \begin_layout Standard
32269
32270 \change_inserted -970929547 1496610966
32271 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
32272 \end_layout
32273
32274 \begin_layout Description
32275
32276 \change_inserted -970929547 1515110317
32277 \begin_inset Flex Code
32278 status collapsed
32279
32280 \begin_layout Plain Layout
32281
32282 \change_inserted -970929547 1515109695
32283 DocBookAttr
32284 \change_unchanged
32285
32286 \end_layout
32287
32288 \end_inset
32289
32290  [
32291 \begin_inset Flex Code
32292 status collapsed
32293
32294 \begin_layout Plain Layout
32295
32296 \change_inserted -970929547 1496611854
32297 string
32298 \change_unchanged
32299
32300 \end_layout
32301
32302 \end_inset
32303
32304 ] Specifies attribute information to be output with the main tag,
32305  replacing 
32306 \begin_inset Quotes eld
32307 \end_inset
32308
32309
32310 \begin_inset Flex Code
32311 status collapsed
32312
32313 \begin_layout Plain Layout
32314
32315 \change_inserted -970929547 1515110044
32316 attr
32317 \change_unchanged
32318
32319 \end_layout
32320
32321 \end_inset
32322
32323
32324 \begin_inset Quotes erd
32325 \end_inset
32326
32327  in the example above.
32328  This information can be used in further processing of the DocBook files.
32329  
32330 \end_layout
32331
32332 \begin_layout Description
32333
32334 \change_inserted -970929547 1515110973
32335 \begin_inset Flex Code
32336 status collapsed
32337
32338 \begin_layout Plain Layout
32339
32340 \change_inserted -970929547 1515110319
32341 DocBookInInfo
32342 \change_unchanged
32343
32344 \end_layout
32345
32346 \end_inset
32347
32348  [
32349 \begin_inset Flex Code
32350 status collapsed
32351
32352 \begin_layout Plain Layout
32353
32354 \change_inserted -970929547 1515110384
32355 never,
32356  always,
32357  maybe
32358 \change_unchanged
32359
32360 \end_layout
32361
32362 \end_inset
32363
32364 ] Specifies whether this tag goes into the 
32365 \begin_inset Flex Code
32366 status collapsed
32367
32368 \begin_layout Plain Layout
32369
32370 \change_inserted -970929547 1515110412
32371 <info>
32372 \change_unchanged
32373
32374 \end_layout
32375
32376 \end_inset
32377
32378  tag at the beginning of the parent layout.
32379  
32380 \begin_inset Flex Code
32381 status collapsed
32382
32383 \begin_layout Plain Layout
32384
32385 \change_inserted -970929547 1515110437
32386 never
32387 \change_unchanged
32388
32389 \end_layout
32390
32391 \end_inset
32392
32393  indicates that the tag never goes into 
32394 \begin_inset Flex Code
32395 status collapsed
32396
32397 \begin_layout Plain Layout
32398
32399 \change_inserted -970929547 1515110497
32400 <info>
32401 \change_unchanged
32402
32403 \end_layout
32404
32405 \end_inset
32406
32407  (this is default value,
32408  and corresponds to usual content).
32409  
32410 \begin_inset Flex Code
32411 status collapsed
32412
32413 \begin_layout Plain Layout
32414
32415 \change_inserted -970929547 1515110517
32416 always
32417 \change_unchanged
32418
32419 \end_layout
32420
32421 \end_inset
32422
32423  indicates that the tag always goes into 
32424 \begin_inset Flex Code
32425 status collapsed
32426
32427 \begin_layout Plain Layout
32428
32429 \change_inserted -970929547 1515110514
32430 <info>
32431 \change_unchanged
32432
32433 \end_layout
32434
32435 \end_inset
32436
32437  (this corresponds to usual metadata):
32438  if there is no 
32439 \begin_inset Flex Code
32440 status collapsed
32441
32442 \begin_layout Plain Layout
32443
32444 \change_inserted -970929547 1515110550
32445 <info>
32446 \change_unchanged
32447
32448 \end_layout
32449
32450 \end_inset
32451
32452  tag for the parent,
32453  one 
32454 \series bold
32455 will
32456 \series default
32457  be generated.
32458  
32459 \begin_inset Flex Code
32460 status collapsed
32461
32462 \begin_layout Plain Layout
32463
32464 \change_inserted -970929547 1515110540
32465 maybe
32466 \change_unchanged
32467
32468 \end_layout
32469
32470 \end_inset
32471
32472  indicates that the tag may go into 
32473 \begin_inset Flex Code
32474 status collapsed
32475
32476 \begin_layout Plain Layout
32477
32478 \change_inserted -970929547 1515110538
32479 <info>
32480 \change_unchanged
32481
32482 \end_layout
32483
32484 \end_inset
32485
32486  (this is only the case for titles):
32487  if there is no 
32488 \begin_inset Flex Code
32489 status collapsed
32490
32491 \begin_layout Plain Layout
32492
32493 \change_inserted -970929547 1515110585
32494 <info>
32495 \change_unchanged
32496
32497 \end_layout
32498
32499 \end_inset
32500
32501  tag for the parent,
32502  
32503 \series bold
32504 none
32505 \series default
32506  will be generated,
32507  the corresponding tag will be output directly as content.
32508  
32509 \end_layout
32510
32511 \begin_layout Description
32512
32513 \change_inserted -970929547 1515111461
32514 \begin_inset Flex Code
32515 status collapsed
32516
32517 \begin_layout Plain Layout
32518
32519 \change_inserted -970929547 1515110974
32520 DocBookItemAttr
32521 \change_unchanged
32522
32523 \end_layout
32524
32525 \end_inset
32526
32527  [
32528 \begin_inset Flex Code
32529 status collapsed
32530
32531 \begin_layout Plain Layout
32532
32533 \change_inserted -970929547 1515110973
32534 string
32535 \change_unchanged
32536
32537 \end_layout
32538
32539 \end_inset
32540
32541 ] Specifies attribute information to be output with the item tag,
32542  replacing 
32543 \begin_inset Quotes eld
32544 \end_inset
32545
32546
32547 \begin_inset Flex Code
32548 status collapsed
32549
32550 \begin_layout Plain Layout
32551
32552 \change_inserted -970929547 1515110984
32553 itemattr
32554 \change_unchanged
32555
32556 \end_layout
32557
32558 \end_inset
32559
32560
32561 \begin_inset Quotes erd
32562 \end_inset
32563
32564  in the example above.
32565  This information can be used in further processing of the DocBook files.
32566  
32567 \end_layout
32568
32569 \begin_layout Description
32570
32571 \change_inserted -970929547 1515111471
32572 \begin_inset Flex Code
32573 status collapsed
32574
32575 \begin_layout Plain Layout
32576
32577 \change_inserted -970929547 1515111465
32578 DocBookItemInnerAttr
32579 \change_unchanged
32580
32581 \end_layout
32582
32583 \end_inset
32584
32585  [
32586 \begin_inset Flex Code
32587 status collapsed
32588
32589 \begin_layout Plain Layout
32590
32591 \change_inserted -970929547 1515111461
32592 string
32593 \change_unchanged
32594
32595 \end_layout
32596
32597 \end_inset
32598
32599 ] Specifies attribute information to be output with the item inner tag,
32600  replacing 
32601 \begin_inset Quotes eld
32602 \end_inset
32603
32604
32605 \begin_inset Flex Code
32606 status collapsed
32607
32608 \begin_layout Plain Layout
32609
32610 \change_inserted -970929547 1515111476
32611 iteminnerattr
32612 \change_unchanged
32613
32614 \end_layout
32615
32616 \end_inset
32617
32618
32619 \begin_inset Quotes erd
32620 \end_inset
32621
32622  in the example above.
32623  This information can be used in further processing of the DocBook files.
32624  
32625 \end_layout
32626
32627 \begin_layout Description
32628
32629 \change_inserted -970929547 1515111494
32630 \begin_inset Flex Code
32631 status collapsed
32632
32633 \begin_layout Plain Layout
32634
32635 \change_inserted -970929547 1515111467
32636 DocBookItemInnerTag
32637 \change_unchanged
32638
32639 \end_layout
32640
32641 \end_inset
32642
32643  [
32644 \begin_inset Flex Code
32645 status collapsed
32646
32647 \begin_layout Plain Layout
32648
32649 \change_inserted -970929547 1515111461
32650 string
32651 \change_unchanged
32652
32653 \end_layout
32654
32655 \end_inset
32656
32657 ] The tag to be used for the item inner tag within the inset,
32658  replacing 
32659 \begin_inset Quotes eld
32660 \end_inset
32661
32662
32663 \begin_inset Flex Code
32664 status collapsed
32665
32666 \begin_layout Plain Layout
32667
32668 \change_inserted -970929547 1515111486
32669 iteminnertag
32670 \change_unchanged
32671
32672 \end_layout
32673
32674 \end_inset
32675
32676
32677 \begin_inset Quotes erd
32678 \end_inset
32679
32680  in the example above.
32681  The default is 
32682 \begin_inset Flex Code
32683 status collapsed
32684
32685 \begin_layout Plain Layout
32686
32687 \change_inserted -970929547 1515111461
32688 NONE
32689 \change_unchanged
32690
32691 \end_layout
32692
32693 \end_inset
32694
32695 ,
32696  indicating that there is no item inner tag:
32697  content is directly output without it for each itemised element.
32698  This parameter only makes sense when itemising layouts are used,
32699  such as lists.
32700  
32701 \change_inserted 1075283030 1598469472
32702 The most likely value is 
32703 \begin_inset Quotes eld
32704 \end_inset
32705
32706
32707 \begin_inset Flex Code
32708 status collapsed
32709
32710 \begin_layout Plain Layout
32711
32712 \change_inserted 1075283030 1598469476
32713 para
32714 \change_unchanged
32715
32716 \end_layout
32717
32718 \end_inset
32719
32720
32721 \begin_inset Quotes erd
32722 \end_inset
32723
32724 .
32725 \begin_inset Newline newline
32726 \end_inset
32727
32728 When a list item is split using a new line,
32729  the item inner tag will be repeated for each part of the paragraph,
32730  parts being separated by new lines.
32731  
32732 \end_layout
32733
32734 \begin_layout Description
32735
32736 \change_inserted 1075283030 1597699866
32737 \begin_inset Flex Code
32738 status collapsed
32739
32740 \begin_layout Plain Layout
32741
32742 \change_inserted 1075283030 1597699853
32743 DocBookItemInnerTagType
32744 \change_unchanged
32745
32746 \end_layout
32747
32748 \end_inset
32749
32750  [
32751 \begin_inset Flex Code
32752 status collapsed
32753
32754 \begin_layout Plain Layout
32755
32756 \change_inserted 1075283030 1597699866
32757 block,
32758  paragraph,
32759  inline
32760 \change_unchanged
32761
32762 \end_layout
32763
32764 \end_inset
32765
32766 ] The new-line policy for this tag,
32767  see Section
32768 \begin_inset space ~
32769 \end_inset
32770
32771
32772 \begin_inset CommandInset ref
32773 LatexCommand ref
32774 reference "subsec:DocBook-New-line-policy"
32775 plural "false"
32776 caps "false"
32777 noprefix "false"
32778 nolink "false"
32779
32780 \end_inset
32781
32782  for the details.
32783  
32784 \change_unchanged
32785
32786 \end_layout
32787
32788 \begin_layout Description
32789
32790 \change_inserted -970929547 1515111290
32791 \begin_inset Flex Code
32792 status collapsed
32793
32794 \begin_layout Plain Layout
32795
32796 \change_inserted -970929547 1515111283
32797 DocBookItemLabelAttr
32798 \change_unchanged
32799
32800 \end_layout
32801
32802 \end_inset
32803
32804  [
32805 \begin_inset Flex Code
32806 status collapsed
32807
32808 \begin_layout Plain Layout
32809
32810 \change_inserted -970929547 1515111279
32811 string
32812 \change_unchanged
32813
32814 \end_layout
32815
32816 \end_inset
32817
32818 ] Specifies attribute information to be output with the item label tag,
32819  replacing 
32820 \begin_inset Quotes eld
32821 \end_inset
32822
32823
32824 \begin_inset Flex Code
32825 status collapsed
32826
32827 \begin_layout Plain Layout
32828
32829 \change_inserted -970929547 1515111304
32830 itemlabelattr
32831 \change_unchanged
32832
32833 \end_layout
32834
32835 \end_inset
32836
32837
32838 \begin_inset Quotes erd
32839 \end_inset
32840
32841  in the example above.
32842  This information can be used in further processing of the DocBook files.
32843  
32844 \end_layout
32845
32846 \begin_layout Description
32847
32848 \change_inserted -970929547 1515111337
32849 \begin_inset Flex Code
32850 status collapsed
32851
32852 \begin_layout Plain Layout
32853
32854 \change_inserted -970929547 1515111285
32855 DocBookItemLabelTag
32856 \change_unchanged
32857
32858 \end_layout
32859
32860 \end_inset
32861
32862  [
32863 \begin_inset Flex Code
32864 status collapsed
32865
32866 \begin_layout Plain Layout
32867
32868 \change_inserted -970929547 1515111279
32869 string
32870 \change_unchanged
32871
32872 \end_layout
32873
32874 \end_inset
32875
32876 ] The tag to be used for the item label tag within the inset,
32877  replacing 
32878 \begin_inset Quotes eld
32879 \end_inset
32880
32881
32882 \begin_inset Flex Code
32883 status collapsed
32884
32885 \begin_layout Plain Layout
32886
32887 \change_inserted -970929547 1515111311
32888 itemlabeltag
32889 \change_unchanged
32890
32891 \end_layout
32892
32893 \end_inset
32894
32895
32896 \begin_inset Quotes erd
32897 \end_inset
32898
32899  in the example above.
32900  This parameter only makes sense when itemising layouts are used with a notion of labels,
32901  such as definition lists.
32902  
32903 \change_inserted 1075283030 1597699874
32904
32905 \end_layout
32906
32907 \begin_layout Description
32908
32909 \change_inserted 1075283030 1597699874
32910 \begin_inset Flex Code
32911 status collapsed
32912
32913 \begin_layout Plain Layout
32914
32915 \change_inserted 1075283030 1597699880
32916 DocBookItemLabelTagType
32917 \change_unchanged
32918
32919 \end_layout
32920
32921 \end_inset
32922
32923  [
32924 \begin_inset Flex Code
32925 status collapsed
32926
32927 \begin_layout Plain Layout
32928
32929 \change_inserted 1075283030 1597699874
32930 block,
32931  paragraph,
32932  inline
32933 \change_unchanged
32934
32935 \end_layout
32936
32937 \end_inset
32938
32939 ] The new-line policy for this tag,
32940  see Section
32941 \begin_inset space ~
32942 \end_inset
32943
32944
32945 \begin_inset CommandInset ref
32946 LatexCommand ref
32947 reference "subsec:DocBook-New-line-policy"
32948 plural "false"
32949 caps "false"
32950 noprefix "false"
32951 nolink "false"
32952
32953 \end_inset
32954
32955  for the details.
32956  
32957 \change_unchanged
32958
32959 \end_layout
32960
32961 \begin_layout Description
32962
32963 \change_inserted -970929547 1515111124
32964 \begin_inset Flex Code
32965 status collapsed
32966
32967 \begin_layout Plain Layout
32968
32969 \change_inserted -970929547 1515111060
32970 DocBookItemTag
32971 \change_unchanged
32972
32973 \end_layout
32974
32975 \end_inset
32976
32977  [
32978 \begin_inset Flex Code
32979 status collapsed
32980
32981 \begin_layout Plain Layout
32982
32983 \change_inserted -970929547 1515111060
32984 string
32985 \change_unchanged
32986
32987 \end_layout
32988
32989 \end_inset
32990
32991 ] The tag to be used for the item tag within the inset,
32992  replacing 
32993 \begin_inset Quotes eld
32994 \end_inset
32995
32996
32997 \begin_inset Flex Code
32998 status collapsed
32999
33000 \begin_layout Plain Layout
33001
33002 \change_inserted -970929547 1515111060
33003 itemtag
33004 \change_unchanged
33005
33006 \end_layout
33007
33008 \end_inset
33009
33010
33011 \begin_inset Quotes erd
33012 \end_inset
33013
33014  in the example above.
33015  The default is 
33016 \begin_inset Flex Code
33017 status collapsed
33018
33019 \begin_layout Plain Layout
33020
33021 \change_inserted -970929547 1515111060
33022 NONE
33023 \change_unchanged
33024
33025 \end_layout
33026
33027 \end_inset
33028
33029 ,
33030  indicating that there is no item tag.
33031  This parameter only makes sense when itemising layouts are used,
33032  such as lists.
33033  
33034 \change_inserted 1075283030 1597699890
33035
33036 \end_layout
33037
33038 \begin_layout Description
33039
33040 \change_inserted 1075283030 1597699890
33041 \begin_inset Flex Code
33042 status collapsed
33043
33044 \begin_layout Plain Layout
33045
33046 \change_inserted 1075283030 1597699890
33047 DocBookItemTagType
33048 \change_unchanged
33049
33050 \end_layout
33051
33052 \end_inset
33053
33054  [
33055 \begin_inset Flex Code
33056 status collapsed
33057
33058 \begin_layout Plain Layout
33059
33060 \change_inserted 1075283030 1597699890
33061 block,
33062  paragraph,
33063  inline
33064 \change_unchanged
33065
33066 \end_layout
33067
33068 \end_inset
33069
33070 ] The new-line policy for this tag,
33071  see Section
33072 \begin_inset space ~
33073 \end_inset
33074
33075
33076 \begin_inset CommandInset ref
33077 LatexCommand ref
33078 reference "subsec:DocBook-New-line-policy"
33079 plural "false"
33080 caps "false"
33081 noprefix "false"
33082 nolink "false"
33083
33084 \end_inset
33085
33086  for the details.
33087  
33088 \change_unchanged
33089
33090 \end_layout
33091
33092 \begin_layout Description
33093
33094 \change_inserted -970929547 1515111298
33095 \begin_inset Flex Code
33096 status collapsed
33097
33098 \begin_layout Plain Layout
33099
33100 \change_inserted -970929547 1515111124
33101 DocBookItemWrapperAttr
33102 \change_unchanged
33103
33104 \end_layout
33105
33106 \end_inset
33107
33108  [
33109 \begin_inset Flex Code
33110 status collapsed
33111
33112 \begin_layout Plain Layout
33113
33114 \change_inserted -970929547 1515111124
33115 string
33116 \change_unchanged
33117
33118 \end_layout
33119
33120 \end_inset
33121
33122 ] Specifies attribute information to be output with the item wrapper tag,
33123  replacing 
33124 \begin_inset Quotes eld
33125 \end_inset
33126
33127
33128 \begin_inset Flex Code
33129 status collapsed
33130
33131 \begin_layout Plain Layout
33132
33133 \change_inserted -970929547 1515111150
33134 itemwrapperattr
33135 \change_unchanged
33136
33137 \end_layout
33138
33139 \end_inset
33140
33141
33142 \begin_inset Quotes erd
33143 \end_inset
33144
33145  in the example above.
33146  This information can be used in further processing of the DocBook files.
33147  
33148 \change_unchanged
33149
33150 \end_layout
33151
33152 \begin_layout Description
33153
33154 \change_inserted -970929547 1515111113
33155 \begin_inset Flex Code
33156 status collapsed
33157
33158 \begin_layout Plain Layout
33159
33160 \change_inserted -970929547 1515111073
33161 DocBookItemWrapperTag
33162 \change_unchanged
33163
33164 \end_layout
33165
33166 \end_inset
33167
33168  [
33169 \begin_inset Flex Code
33170 status collapsed
33171
33172 \begin_layout Plain Layout
33173
33174 \change_inserted -970929547 1515111073
33175 string
33176 \change_unchanged
33177
33178 \end_layout
33179
33180 \end_inset
33181
33182 ] The tag to be used for the item wrapper tag within the inset,
33183  replacing 
33184 \begin_inset Quotes eld
33185 \end_inset
33186
33187
33188 \begin_inset Flex Code
33189 status collapsed
33190
33191 \begin_layout Plain Layout
33192
33193 \change_inserted -970929547 1515111083
33194 itemwrappertag
33195 \change_unchanged
33196
33197 \end_layout
33198
33199 \end_inset
33200
33201
33202 \begin_inset Quotes erd
33203 \end_inset
33204
33205  in the example above.
33206  The default is 
33207 \begin_inset Flex Code
33208 status collapsed
33209
33210 \begin_layout Plain Layout
33211
33212 \change_inserted -970929547 1515111073
33213 NONE
33214 \change_unchanged
33215
33216 \end_layout
33217
33218 \end_inset
33219
33220 ,
33221  indicating that there is no item wrapper tag:
33222  tag and content are directly output without it for each itemised element.
33223  This parameter only makes sense when itemising layouts are used,
33224  such as lists.
33225  
33226 \change_inserted 1075283030 1597699897
33227
33228 \end_layout
33229
33230 \begin_layout Description
33231
33232 \change_inserted 1075283030 1597699897
33233 \begin_inset Flex Code
33234 status collapsed
33235
33236 \begin_layout Plain Layout
33237
33238 \change_inserted 1075283030 1597699900
33239 DocBookItemWrapperTagType
33240 \change_unchanged
33241
33242 \end_layout
33243
33244 \end_inset
33245
33246  [
33247 \begin_inset Flex Code
33248 status collapsed
33249
33250 \begin_layout Plain Layout
33251
33252 \change_inserted 1075283030 1597699897
33253 block,
33254  paragraph,
33255  inline
33256 \change_unchanged
33257
33258 \end_layout
33259
33260 \end_inset
33261
33262 ] The new-line policy for this tag,
33263  see Section
33264 \begin_inset space ~
33265 \end_inset
33266
33267
33268 \begin_inset CommandInset ref
33269 LatexCommand ref
33270 reference "subsec:DocBook-New-line-policy"
33271 plural "false"
33272 caps "false"
33273 noprefix "false"
33274 nolink "false"
33275
33276 \end_inset
33277
33278  for the details.
33279  
33280 \change_unchanged
33281
33282 \end_layout
33283
33284 \begin_layout Description
33285
33286 \change_inserted -970929547 1515110104
33287 \begin_inset Flex Code
33288 status collapsed
33289
33290 \begin_layout Plain Layout
33291
33292 \change_inserted -970929547 1515110104
33293 DocBookInnerAttr
33294 \change_unchanged
33295
33296 \end_layout
33297
33298 \end_inset
33299
33300  [
33301 \begin_inset Flex Code
33302 status collapsed
33303
33304 \begin_layout Plain Layout
33305
33306 \change_inserted -970929547 1515110104
33307 string
33308 \change_unchanged
33309
33310 \end_layout
33311
33312 \end_inset
33313
33314 ] Specifies attribute information to be output with the inner tag,
33315  replacing 
33316 \begin_inset Quotes eld
33317 \end_inset
33318
33319
33320 \begin_inset Flex Code
33321 status collapsed
33322
33323 \begin_layout Plain Layout
33324
33325 \change_inserted -970929547 1515110104
33326 innerattr
33327 \change_unchanged
33328
33329 \end_layout
33330
33331 \end_inset
33332
33333
33334 \begin_inset Quotes erd
33335 \end_inset
33336
33337  in the example above.
33338  This information can be used in further processing of the DocBook files.
33339  
33340 \end_layout
33341
33342 \begin_layout Description
33343
33344 \change_inserted -970929547 1515110906
33345 \begin_inset Flex Code
33346 status collapsed
33347
33348 \begin_layout Plain Layout
33349
33350 \change_inserted -970929547 1515110104
33351 DocBookInnerTag
33352 \change_unchanged
33353
33354 \end_layout
33355
33356 \end_inset
33357
33358  [
33359 \begin_inset Flex Code
33360 status collapsed
33361
33362 \begin_layout Plain Layout
33363
33364 \change_inserted -970929547 1515110104
33365 string
33366 \change_unchanged
33367
33368 \end_layout
33369
33370 \end_inset
33371
33372 ] The tag to be used for the inner tag within the inset,
33373  replacing 
33374 \begin_inset Quotes eld
33375 \end_inset
33376
33377
33378 \begin_inset Flex Code
33379 status collapsed
33380
33381 \begin_layout Plain Layout
33382
33383 \change_inserted -970929547 1515110104
33384 innertag
33385 \change_unchanged
33386
33387 \end_layout
33388
33389 \end_inset
33390
33391
33392 \begin_inset Quotes erd
33393 \end_inset
33394
33395  in the example above.
33396  The default is 
33397 \begin_inset Flex Code
33398 status collapsed
33399
33400 \begin_layout Plain Layout
33401
33402 \change_inserted -970929547 1515110791
33403 NONE
33404 \change_unchanged
33405
33406 \end_layout
33407
33408 \end_inset
33409
33410 ,
33411  indicating that there is no inner tag:
33412  content is directly output without it.
33413 \change_inserted 1075283030 1597699904
33414
33415 \end_layout
33416
33417 \begin_layout Description
33418
33419 \change_inserted 1075283030 1597699904
33420 \begin_inset Flex Code
33421 status collapsed
33422
33423 \begin_layout Plain Layout
33424
33425 \change_inserted 1075283030 1597699904
33426 DocBookInnerTagType
33427 \change_unchanged
33428
33429 \end_layout
33430
33431 \end_inset
33432
33433  [
33434 \begin_inset Flex Code
33435 status collapsed
33436
33437 \begin_layout Plain Layout
33438
33439 \change_inserted 1075283030 1597699904
33440 block,
33441  paragraph,
33442  inline
33443 \change_unchanged
33444
33445 \end_layout
33446
33447 \end_inset
33448
33449 ] The new-line policy for this tag,
33450  see Section
33451 \begin_inset space ~
33452 \end_inset
33453
33454
33455 \begin_inset CommandInset ref
33456 LatexCommand ref
33457 reference "subsec:DocBook-New-line-policy"
33458 plural "false"
33459 caps "false"
33460 noprefix "false"
33461 nolink "false"
33462
33463 \end_inset
33464
33465  for the details.
33466  
33467 \change_unchanged
33468
33469 \end_layout
33470
33471 \begin_layout Description
33472
33473 \change_inserted -970929547 1515110753
33474 \begin_inset Flex Code
33475 status collapsed
33476
33477 \begin_layout Plain Layout
33478
33479 \change_inserted -970929547 1515110665
33480 DocBookSectionTag
33481 \change_unchanged
33482
33483 \end_layout
33484
33485 \end_inset
33486
33487  [
33488 \begin_inset Flex Code
33489 status collapsed
33490
33491 \begin_layout Plain Layout
33492
33493 \change_inserted -970929547 1515110661
33494 string
33495 \change_unchanged
33496
33497 \end_layout
33498
33499 \end_inset
33500
33501 ] Specifies the tag that corresponds to this kind of section.
33502  This parameter only makes sense for sectioning elements (part,
33503  chapter,
33504  section,
33505  etc.).
33506  The default value is 
33507 \begin_inset Flex Code
33508 status collapsed
33509
33510 \begin_layout Plain Layout
33511
33512 \change_inserted -970929547 1515110721
33513 section
33514 \change_unchanged
33515
33516 \end_layout
33517
33518 \end_inset
33519
33520 ,
33521  and is only overridden when DocBook uses something else for sectioning (
33522 \change_inserted 1075283030 1597699921
33523 typically,
33524  
33525 \change_inserted -970929547 1515110753
33526 parts and chapters of a book).
33527  
33528 \change_unchanged
33529
33530 \end_layout
33531
33532 \begin_layout Description
33533
33534 \change_inserted -970929547 1515110811
33535 \begin_inset Flex Code
33536 status collapsed
33537
33538 \begin_layout Plain Layout
33539
33540 \change_inserted -970929547 1496612023
33541 DocBookTag
33542 \change_unchanged
33543
33544 \end_layout
33545
33546 \end_inset
33547
33548  [
33549 \begin_inset Flex Code
33550 status collapsed
33551
33552 \begin_layout Plain Layout
33553
33554 \change_inserted -970929547 1496610966
33555 string
33556 \change_unchanged
33557
33558 \end_layout
33559
33560 \end_inset
33561
33562 ] The tag to be used for this inset,
33563  replacing 
33564 \begin_inset Quotes eld
33565 \end_inset
33566
33567
33568 \begin_inset Flex Code
33569 status collapsed
33570
33571 \begin_layout Plain Layout
33572
33573 \change_inserted -970929547 1496612033
33574 tag
33575 \change_unchanged
33576
33577 \end_layout
33578
33579 \end_inset
33580
33581
33582 \begin_inset Quotes erd
33583 \end_inset
33584
33585  in the example above.
33586  The default is the name of the float and always needs to be changed,
33587  as DocBook provides no generic inset tag.
33588 \change_inserted 1075283030 1597699924
33589
33590 \end_layout
33591
33592 \begin_layout Description
33593
33594 \change_inserted 1075283030 1597699924
33595 \begin_inset Flex Code
33596 status collapsed
33597
33598 \begin_layout Plain Layout
33599
33600 \change_inserted 1075283030 1597699924
33601 DocBookTagType
33602 \change_unchanged
33603
33604 \end_layout
33605
33606 \end_inset
33607
33608  [
33609 \begin_inset Flex Code
33610 status collapsed
33611
33612 \begin_layout Plain Layout
33613
33614 \change_inserted 1075283030 1597699924
33615 block,
33616  paragraph,
33617  inline
33618 \change_unchanged
33619
33620 \end_layout
33621
33622 \end_inset
33623
33624 ] The new-line policy for this tag,
33625  see Section
33626 \begin_inset space ~
33627 \end_inset
33628
33629
33630 \begin_inset CommandInset ref
33631 LatexCommand ref
33632 reference "subsec:DocBook-New-line-policy"
33633 plural "false"
33634 caps "false"
33635 noprefix "false"
33636 nolink "false"
33637
33638 \end_inset
33639
33640  for the details.
33641  
33642 \change_unchanged
33643
33644 \end_layout
33645
33646 \begin_layout Description
33647
33648 \change_inserted -970929547 1515110832
33649 \begin_inset Flex Code
33650 status collapsed
33651
33652 \begin_layout Plain Layout
33653
33654 \change_inserted -970929547 1515110822
33655 DocBookWrapperAttr
33656 \change_unchanged
33657
33658 \end_layout
33659
33660 \end_inset
33661
33662  [
33663 \begin_inset Flex Code
33664 status collapsed
33665
33666 \begin_layout Plain Layout
33667
33668 \change_inserted -970929547 1515110811
33669 string
33670 \change_unchanged
33671
33672 \end_layout
33673
33674 \end_inset
33675
33676 ] Specifies attribute information to be output with the outer 
33677 \change_inserted 34634807 1620057958
33678 wrapper 
33679 \change_inserted -970929547 1515110832
33680 tag,
33681  replacing 
33682 \begin_inset Quotes eld
33683 \end_inset
33684
33685
33686 \begin_inset Flex Code
33687 status collapsed
33688
33689 \begin_layout Plain Layout
33690
33691 \change_inserted -970929547 1515110845
33692 wrapperattr
33693 \change_unchanged
33694
33695 \end_layout
33696
33697 \end_inset
33698
33699
33700 \begin_inset Quotes erd
33701 \end_inset
33702
33703  in the example above.
33704  This information can be used in further processing of the DocBook files.
33705  
33706 \end_layout
33707
33708 \begin_layout Description
33709
33710 \change_inserted -970929547 1515110917
33711 \begin_inset Flex Code
33712 status collapsed
33713
33714 \begin_layout Plain Layout
33715
33716 \change_inserted -970929547 1515110826
33717 DocBookWrapperTag
33718 \change_unchanged
33719
33720 \end_layout
33721
33722 \end_inset
33723
33724  [
33725 \begin_inset Flex Code
33726 status collapsed
33727
33728 \begin_layout Plain Layout
33729
33730 \change_inserted -970929547 1515110811
33731 string
33732 \change_unchanged
33733
33734 \end_layout
33735
33736 \end_inset
33737
33738 ] The tag to be used for the wrapper tag around the inset,
33739  replacing 
33740 \begin_inset Quotes eld
33741 \end_inset
33742
33743
33744 \begin_inset Flex Code
33745 status collapsed
33746
33747 \begin_layout Plain Layout
33748
33749 \change_inserted -970929547 1515110842
33750 wrappertag
33751 \change_unchanged
33752
33753 \end_layout
33754
33755 \end_inset
33756
33757
33758 \begin_inset Quotes erd
33759 \end_inset
33760
33761  in the example above.
33762  The default is 
33763 \begin_inset Flex Code
33764 status collapsed
33765
33766 \begin_layout Plain Layout
33767
33768 \change_inserted -970929547 1515110811
33769 NONE
33770 \change_unchanged
33771
33772 \end_layout
33773
33774 \end_inset
33775
33776 ,
33777  indicating that there is no wrapper tag:
33778  tag and content are directly output without it.
33779 \change_inserted 1075283030 1597699929
33780
33781 \end_layout
33782
33783 \begin_layout Description
33784
33785 \change_inserted 1075283030 1597699929
33786 \begin_inset Flex Code
33787 status collapsed
33788
33789 \begin_layout Plain Layout
33790
33791 \change_inserted 1075283030 1597699932
33792 DocBookWrapperTagType
33793 \change_unchanged
33794
33795 \end_layout
33796
33797 \end_inset
33798
33799  [
33800 \begin_inset Flex Code
33801 status collapsed
33802
33803 \begin_layout Plain Layout
33804
33805 \change_inserted 1075283030 1597699929
33806 block,
33807  paragraph,
33808  inline
33809 \change_unchanged
33810
33811 \end_layout
33812
33813 \end_inset
33814
33815 ] The new-line policy for this tag,
33816  see Section
33817 \begin_inset space ~
33818 \end_inset
33819
33820
33821 \begin_inset CommandInset ref
33822 LatexCommand ref
33823 reference "subsec:DocBook-New-line-policy"
33824 plural "false"
33825 caps "false"
33826 noprefix "false"
33827 nolink "false"
33828
33829 \end_inset
33830
33831  for the details.
33832  
33833 \change_unchanged
33834
33835 \end_layout
33836
33837 \begin_layout Subsection
33838
33839 \change_inserted -970929547 1515110040
33840 Float DocBook
33841 \end_layout
33842
33843 \begin_layout Standard
33844
33845 \change_inserted -970929547 1496611700
33846 The DocBook output for floats too can be controlled by layout information.
33847  The output has the following form:
33848 \end_layout
33849
33850 \begin_layout LyX-Code
33851
33852 \change_inserted -970929547 1515109700
33853 <tag attr>
33854 \end_layout
33855
33856 \begin_layout LyX-Code
33857
33858 \change_inserted -970929547 1515110138
33859   Contents of the float as DocBook.
33860 \end_layout
33861
33862 \begin_layout LyX-Code
33863
33864 \change_inserted -970929547 1496610966
33865 </tag>
33866 \end_layout
33867
33868 \begin_layout Standard
33869
33870 \change_inserted -970929547 1496611715
33871 The caption,
33872  if there is one,
33873  is a separate inset and will be output as a title.
33874  
33875 \end_layout
33876
33877 \begin_layout Description
33878
33879 \change_inserted -970929547 1515110033
33880 \begin_inset Flex Code
33881 status collapsed
33882
33883 \begin_layout Plain Layout
33884
33885 \change_inserted -970929547 1515109702
33886 DocBookAttr
33887 \change_unchanged
33888
33889 \end_layout
33890
33891 \end_inset
33892
33893  [
33894 \begin_inset Flex Code
33895 status collapsed
33896
33897 \begin_layout Plain Layout
33898
33899 \change_inserted -970929547 1496610966
33900 string
33901 \change_unchanged
33902
33903 \end_layout
33904
33905 \end_inset
33906
33907 ] Specifies attribute information to be output with the main tag,
33908  replacing 
33909 \begin_inset Quotes eld
33910 \end_inset
33911
33912
33913 \begin_inset Flex Code
33914 status collapsed
33915
33916 \begin_layout Plain Layout
33917
33918 \change_inserted -970929547 1515110035
33919 attr
33920 \change_unchanged
33921
33922 \end_layout
33923
33924 \end_inset
33925
33926
33927 \begin_inset Quotes erd
33928 \end_inset
33929
33930  in the example above.
33931  This information can be used in further processing of the DocBook files.
33932  
33933 \end_layout
33934
33935 \begin_layout Description
33936
33937 \change_inserted -970929547 1515110157
33938 \begin_inset Flex Code
33939 status collapsed
33940
33941 \begin_layout Plain Layout
33942
33943 \change_inserted -970929547 1496611782
33944 DocBookTag
33945 \change_unchanged
33946
33947 \end_layout
33948
33949 \end_inset
33950
33951  [
33952 \begin_inset Flex Code
33953 status collapsed
33954
33955 \begin_layout Plain Layout
33956
33957 \change_inserted -970929547 1496610966
33958 string
33959 \change_unchanged
33960
33961 \end_layout
33962
33963 \end_inset
33964
33965 ] The tag to be used for this float,
33966  replacing 
33967 \begin_inset Quotes eld
33968 \end_inset
33969
33970
33971 \begin_inset Flex Code
33972 status collapsed
33973
33974 \begin_layout Plain Layout
33975
33976 \change_inserted -970929547 1496610966
33977 tag
33978 \change_unchanged
33979
33980 \end_layout
33981
33982 \end_inset
33983
33984
33985 \begin_inset Quotes erd
33986 \end_inset
33987
33988  in the example above.
33989  The default is the name of the float and always needs to be changed,
33990  as DocBook provides no generic float tag.
33991 \end_layout
33992
33993 \begin_layout Subsection
33994
33995 \change_inserted -970929547 1515110157
33996 Bibliography formatting
33997 \end_layout
33998
33999 \begin_layout Standard
34000
34001 \change_deleted 1075283030 1597699984
34002 The 
34003 \change_inserted 1075283030 1597699985
34004 Included 
34005 \change_inserted -970929547 1515110187
34006 bibliograph
34007 \change_deleted 1075283030 1597699987
34008 y
34009 \change_inserted 1075283030 1597699987
34010 ies
34011 \change_inserted -970929547 1515110187
34012  cannot be formatted:
34013  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file)
34014 \change_inserted 1075283030 1597700117
34015 ,
34016  using the 
34017 \begin_inset Flex Code
34018 status collapsed
34019
34020 \begin_layout Plain Layout
34021
34022 \change_inserted 1075283030 1597700120
34023 biblioentry
34024 \change_unchanged
34025
34026 \end_layout
34027
34028 \end_inset
34029
34030  tag
34031 \change_inserted -970929547 1515110187
34032 .
34033 \change_inserted 1075283030 1597700092
34034
34035 \end_layout
34036
34037 \begin_layout Standard
34038
34039 \change_inserted 1075283030 1597700112
34040 When the bibliographic entries are manually inserted into the 
34041 \change_deleted 34634807 1620057319
34042 LyX
34043 \change_inserted 34634807 1620057319
34044 \SpecialChar LyX
34045
34046 \change_inserted 1075283030 1597700112
34047  document as Bibliography Items,
34048  the user deals with formatting 
34049 \change_unchanged
34050 them
34051 \change_inserted 1075283030 1597700112
34052 self:
34053  there is no attempt of parsing what the user wrote,
34054  the string is directly used (with the 
34055 \begin_inset Flex Code
34056 status collapsed
34057
34058 \begin_layout Plain Layout
34059
34060 \change_inserted 1075283030 1597700076
34061 bibliomixed
34062 \change_unchanged
34063
34064 \end_layout
34065
34066 \end_inset
34067
34068  tag).
34069  
34070 \change_unchanged
34071
34072 \end_layout
34073
34074 \begin_layout Chapter
34075 Including External Material
34076 \begin_inset CommandInset label
34077 LatexCommand label
34078 name "chap:Including-External-Material"
34079
34080 \end_inset
34081
34082
34083 \end_layout
34084
34085 \begin_layout Standard
34086 \begin_inset Box Shadowbox
34087 position "t"
34088 hor_pos "c"
34089 has_inner_box 1
34090 inner_pos "t"
34091 use_parbox 0
34092 use_makebox 0
34093 width "100col%"
34094 special "none"
34095 height "1in"
34096 height_special "totalheight"
34097 thickness "0.4pt"
34098 separation "3pt"
34099 shadowsize "4pt"
34100 framecolor "black"
34101 backgroundcolor "none"
34102 status open
34103
34104 \begin_layout Plain Layout
34105 WARNING:
34106  This portion of the documentation has not been updated for some time.
34107  We certainly hope that it is still accurate,
34108  but there are no guarantees.
34109 \end_layout
34110
34111 \end_inset
34112
34113
34114 \end_layout
34115
34116 \begin_layout Standard
34117 The use of material from sources external to \SpecialChar LyX
34118  is covered in detail in the 
34119 \emph on
34120 Embedded Objects
34121 \emph default
34122  manual.
34123  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
34124 \end_layout
34125
34126 \begin_layout Section
34127 How does it work?
34128 \end_layout
34129
34130 \begin_layout Standard
34131 The external material feature is based on the concept of a 
34132 \emph on
34133 template
34134 \emph default
34135 .
34136  A template is a specification of how \SpecialChar LyX
34137  should interface with a certain kind of material.
34138  As bundled,
34139  \SpecialChar LyX
34140  comes with predefined templates for Xfig figures,
34141  various raster format images,
34142  chess diagrams,
34143  and LilyPond music notation.
34144  You can check the actual list by using the menu 
34145 \begin_inset Flex Noun
34146 status collapsed
34147
34148 \begin_layout Plain Layout
34149 Insert\SpecialChar menuseparator
34150 File\SpecialChar menuseparator
34151 External Material
34152 \end_layout
34153
34154 \end_inset
34155
34156 .
34157  Furthermore,
34158  it is possible to roll your own template to support a specific kind of material.
34159  Later we'll describe in more detail what is involved,
34160  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
34161  version.
34162 \end_layout
34163
34164 \begin_layout Standard
34165 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.
34166  For example,
34167  consider the case of a figure produced with 
34168 \begin_inset Flex Code
34169 status collapsed
34170
34171 \begin_layout Plain Layout
34172 Xfig
34173 \end_layout
34174
34175 \end_inset
34176
34177 .
34178  The Xfig application itself works on an original file with the 
34179 \begin_inset Flex Code
34180 status collapsed
34181
34182 \begin_layout Plain Layout
34183 .fig
34184 \end_layout
34185
34186 \end_inset
34187
34188  extension.
34189  Within Xfig,
34190  you create and change your figure,
34191  and when you are done,
34192  you save the 
34193 \begin_inset Flex Code
34194 status collapsed
34195
34196 \begin_layout Plain Layout
34197 fig
34198 \end_layout
34199
34200 \end_inset
34201
34202 -file.
34203  When you want to include the figure in your document,
34204  you invoke 
34205 \begin_inset Flex Code
34206 status collapsed
34207
34208 \begin_layout Plain Layout
34209 transfig
34210 \end_layout
34211
34212 \end_inset
34213
34214  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
34215  file.
34216  In this case,
34217  the 
34218 \begin_inset Flex Code
34219 status collapsed
34220
34221 \begin_layout Plain Layout
34222 .fig
34223 \end_layout
34224
34225 \end_inset
34226
34227  file is the original file,
34228  and the PostScript file is the produced file.
34229 \end_layout
34230
34231 \begin_layout Standard
34232 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
34233  Furthermore,
34234  it provides us with the flexibility that is needed to support multiple export formats.
34235  For instance,
34236  in the case of a plain text file,
34237  it is not exactly an award-winning idea to include the figure as raw PostScript.
34238  Instead,
34239  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.
34240  The external material management allows you to do this,
34241  because it is parametrized on the different export formats that \SpecialChar LyX
34242  supports.
34243 \end_layout
34244
34245 \begin_layout Standard
34246 Besides supporting the production of different products according to the exported format,
34247  it supports tight integration with editing and viewing applications.
34248  In the case of an Xfig figure,
34249  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
34250 ,
34251  and also preview the produced PostScript file with Ghostview with another click.
34252  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
34253  In this way,
34254  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
34255  and ultimately be more productive.
34256 \end_layout
34257
34258 \begin_layout Section
34259 The external template configuration files
34260 \end_layout
34261
34262 \begin_layout Standard
34263 It is relatively easy to add custom external template definitions to \SpecialChar LyX
34264 .
34265  However,
34266  be aware that doing this in an careless manner most probably 
34267 \emph on
34268 will
34269 \emph default
34270  introduce an easily exploitable security hole.
34271  So before you do this,
34272  please read the discussion about security in 
34273 \begin_inset CommandInset ref
34274 LatexCommand ref
34275 reference "sec:Security-discussion"
34276 nolink "false"
34277
34278 \end_inset
34279
34280 .
34281 \end_layout
34282
34283 \begin_layout Standard
34284 Having said that,
34285  we encourage you to submit any interesting templates that you create.
34286  
34287 \end_layout
34288
34289 \begin_layout Standard
34290 The external templates are defined in the 
34291 \begin_inset Flex Code
34292 status collapsed
34293
34294 \begin_layout Plain Layout
34295 *.xtemplate
34296 \end_layout
34297
34298 \end_inset
34299
34300  files that are stored in the 
34301 \begin_inset Flex Code
34302 status collapsed
34303
34304 \begin_layout Plain Layout
34305 LyXDir/lib/xtemplates/
34306 \end_layout
34307
34308 \end_inset
34309
34310  directory.
34311  Each template is defined in a file of its own.
34312  You can place your own templates in 
34313 \begin_inset Flex Code
34314 status collapsed
34315
34316 \begin_layout Plain Layout
34317 UserDir/xtemplates/
34318 \end_layout
34319
34320 \end_inset
34321
34322  or copy existing templates to that directory in order to modify them.
34323 \end_layout
34324
34325 \begin_layout Standard
34326 A typical template looks like this:
34327 \end_layout
34328
34329 \begin_layout LyX-Code
34330 Template XFig
34331 \end_layout
34332
34333 \begin_layout LyX-Code
34334 GuiName "XFig:
34335  $$AbsOrRelPathParent$$Basename"
34336 \end_layout
34337
34338 \begin_layout LyX-Code
34339 HelpText
34340 \end_layout
34341
34342 \begin_layout LyX-Code
34343 An XFig figure.
34344 \end_layout
34345
34346 \begin_layout LyX-Code
34347 HelpTextEnd
34348 \end_layout
34349
34350 \begin_layout LyX-Code
34351 InputFormat fig
34352 \end_layout
34353
34354 \begin_layout LyX-Code
34355 FileFilter "*.fig"
34356 \end_layout
34357
34358 \begin_layout LyX-Code
34359 AutomaticProduction true
34360 \end_layout
34361
34362 \begin_layout LyX-Code
34363 Transform Rotate
34364 \end_layout
34365
34366 \begin_layout LyX-Code
34367 Transform Resize
34368 \end_layout
34369
34370 \begin_layout LyX-Code
34371 Format LaTeX
34372 \end_layout
34373
34374 \begin_layout LyX-Code
34375 TransformCommand Rotate RotationLatexCommand
34376 \end_layout
34377
34378 \begin_layout LyX-Code
34379 TransformCommand Resize ResizeLatexCommand
34380 \end_layout
34381
34382 \begin_layout LyX-Code
34383 Product "$$RotateFront$$ResizeFront
34384 \end_layout
34385
34386 \begin_layout LyX-Code
34387          
34388 \backslash
34389
34390 \backslash
34391 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
34392 \end_layout
34393
34394 \begin_layout LyX-Code
34395          $$ResizeBack$$RotateBack"
34396 \end_layout
34397
34398 \begin_layout LyX-Code
34399 UpdateFormat pstex
34400 \end_layout
34401
34402 \begin_layout LyX-Code
34403 UpdateResult "$$AbsPath$$Basename.pstex_t"
34404 \end_layout
34405
34406 \begin_layout LyX-Code
34407 Requirement "graphicx"
34408 \end_layout
34409
34410 \begin_layout LyX-Code
34411 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
34412 \end_layout
34413
34414 \begin_layout LyX-Code
34415 ReferencedFile latex "$$AbsPath$$Basename.eps"
34416 \end_layout
34417
34418 \begin_layout LyX-Code
34419 ReferencedFile dvi "$$AbsPath$$Basename.eps"
34420 \end_layout
34421
34422 \begin_layout LyX-Code
34423 FormatEnd
34424 \end_layout
34425
34426 \begin_layout LyX-Code
34427 Format PDFLaTeX
34428 \end_layout
34429
34430 \begin_layout LyX-Code
34431 TransformCommand Rotate RotationLatexCommand
34432 \end_layout
34433
34434 \begin_layout LyX-Code
34435 TransformCommand Resize ResizeLatexCommand
34436 \end_layout
34437
34438 \begin_layout LyX-Code
34439 Product "$$RotateFront$$ResizeFront
34440 \end_layout
34441
34442 \begin_layout LyX-Code
34443          
34444 \backslash
34445
34446 \backslash
34447 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
34448 \end_layout
34449
34450 \begin_layout LyX-Code
34451          $$ResizeBack$$RotateBack"
34452 \end_layout
34453
34454 \begin_layout LyX-Code
34455 UpdateFormat pdftex
34456 \end_layout
34457
34458 \begin_layout LyX-Code
34459 UpdateResult "$$AbsPath$$Basename.pdftex_t"
34460 \end_layout
34461
34462 \begin_layout LyX-Code
34463 Requirement "graphicx"
34464 \end_layout
34465
34466 \begin_layout LyX-Code
34467 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
34468 \end_layout
34469
34470 \begin_layout LyX-Code
34471 ReferencedFile latex "$$AbsPath$$Basename.pdf"
34472 \end_layout
34473
34474 \begin_layout LyX-Code
34475 FormatEnd
34476 \end_layout
34477
34478 \begin_layout LyX-Code
34479 Format Ascii
34480 \end_layout
34481
34482 \begin_layout LyX-Code
34483 Product "[XFig:
34484  $$FName]"
34485 \end_layout
34486
34487 \begin_layout LyX-Code
34488 FormatEnd
34489 \end_layout
34490
34491 \begin_layout LyX-Code
34492 Format DocBook
34493 \end_layout
34494
34495 \begin_layout LyX-Code
34496 Product "<graphic fileref=
34497 \backslash
34498 "$$AbsOrRelPathMaster$$Basename.eps
34499 \backslash
34500 ">
34501 \end_layout
34502
34503 \begin_layout LyX-Code
34504          </graphic>"
34505 \end_layout
34506
34507 \begin_layout LyX-Code
34508 UpdateFormat eps
34509 \end_layout
34510
34511 \begin_layout LyX-Code
34512 UpdateResult "$$AbsPath$$Basename.eps"
34513 \end_layout
34514
34515 \begin_layout LyX-Code
34516 ReferencedFile docbook "$$AbsPath$$Basename.eps"
34517 \end_layout
34518
34519 \begin_layout LyX-Code
34520 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
34521 \end_layout
34522
34523 \begin_layout LyX-Code
34524 FormatEnd
34525 \end_layout
34526
34527 \begin_layout LyX-Code
34528 TemplateEnd
34529 \end_layout
34530
34531 \begin_layout Standard
34532 As you can see,
34533  the template is enclosed in 
34534 \begin_inset Flex Code
34535 status collapsed
34536
34537 \begin_layout Plain Layout
34538 Template
34539 \end_layout
34540
34541 \end_inset
34542
34543  \SpecialChar ldots
34544  
34545 \begin_inset Flex Code
34546 status collapsed
34547
34548 \begin_layout Plain Layout
34549 TemplateEnd
34550 \end_layout
34551
34552 \end_inset
34553
34554 .
34555  It contains a header specifying some general settings and,
34556  for each supported primary document file format,
34557  a section 
34558 \begin_inset Flex Code
34559 status collapsed
34560
34561 \begin_layout Plain Layout
34562 Format
34563 \end_layout
34564
34565 \end_inset
34566
34567  \SpecialChar ldots
34568  
34569 \begin_inset Flex Code
34570 status collapsed
34571
34572 \begin_layout Plain Layout
34573 FormatEnd
34574 \end_layout
34575
34576 \end_inset
34577
34578 .
34579 \end_layout
34580
34581 \begin_layout Subsection
34582 The template header
34583 \end_layout
34584
34585 \begin_layout Description
34586 \begin_inset Flex Code
34587 status collapsed
34588
34589 \begin_layout Plain Layout
34590 AutomaticProduction
34591 \begin_inset space ~
34592 \end_inset
34593
34594 true|false
34595 \end_layout
34596
34597 \end_inset
34598
34599  Whether the file represented by the template must be generated by \SpecialChar LyX
34600 .
34601  This command must occur exactly once.
34602 \end_layout
34603
34604 \begin_layout Description
34605 \begin_inset Flex Code
34606 status collapsed
34607
34608 \begin_layout Plain Layout
34609 FileFilter
34610 \begin_inset space ~
34611 \end_inset
34612
34613 <pattern>
34614 \end_layout
34615
34616 \end_inset
34617
34618  A glob pattern that is used in the file dialog to filter out the desired files.
34619  If there is more than one possible file extension (e.
34620 \begin_inset space \thinspace{}
34621 \end_inset
34622
34623 g.
34624 \begin_inset space \space{}
34625 \end_inset
34626
34627 tgif has 
34628 \begin_inset Flex Code
34629 status collapsed
34630
34631 \begin_layout Plain Layout
34632 .obj
34633 \end_layout
34634
34635 \end_inset
34636
34637  and 
34638 \begin_inset Flex Code
34639 status collapsed
34640
34641 \begin_layout Plain Layout
34642 .tgo
34643 \end_layout
34644
34645 \end_inset
34646
34647 ),
34648  use something like 
34649 \begin_inset Flex Code
34650 status collapsed
34651
34652 \begin_layout Plain Layout
34653 "*.{obj,tgo}"
34654 \end_layout
34655
34656 \end_inset
34657
34658 .
34659  This command must occur exactly once.
34660 \end_layout
34661
34662 \begin_layout Description
34663 \begin_inset Flex Code
34664 status collapsed
34665
34666 \begin_layout Plain Layout
34667 GuiName
34668 \begin_inset space ~
34669 \end_inset
34670
34671 <guiname>
34672 \end_layout
34673
34674 \end_inset
34675
34676  The text that is displayed on the button.
34677  This command must occur exactly once.
34678 \end_layout
34679
34680 \begin_layout Description
34681 \begin_inset Flex Code
34682 status collapsed
34683
34684 \begin_layout Plain Layout
34685 HelpText
34686 \begin_inset space ~
34687 \end_inset
34688
34689 <text>
34690 \begin_inset space ~
34691 \end_inset
34692
34693 HelpTextEnd
34694 \end_layout
34695
34696 \end_inset
34697
34698  The help text that is used in the External dialog.
34699  Provide enough information to explain to the user just what the template can provide him with.
34700  This command must occur exactly once.
34701 \end_layout
34702
34703 \begin_layout Description
34704 \begin_inset Flex Code
34705 status collapsed
34706
34707 \begin_layout Plain Layout
34708 InputFormat
34709 \begin_inset space ~
34710 \end_inset
34711
34712 <format>
34713 \end_layout
34714
34715 \end_inset
34716
34717  The file format of the original file.
34718  This must be the name of a format that is known to \SpecialChar LyX
34719  (see 
34720 \begin_inset CommandInset ref
34721 LatexCommand ref
34722 reference "sec:Formats"
34723 nolink "false"
34724
34725 \end_inset
34726
34727 ).
34728  Use 
34729 \begin_inset Quotes eld
34730 \end_inset
34731
34732
34733 \begin_inset Flex Code
34734 status collapsed
34735
34736 \begin_layout Plain Layout
34737 *
34738 \end_layout
34739
34740 \end_inset
34741
34742
34743 \begin_inset Quotes erd
34744 \end_inset
34745
34746  if the template can handle original files of more than one format.
34747  \SpecialChar LyX
34748  will attempt to interrogate the file itself in order to deduce its format in this case.
34749  This command must occur exactly once.
34750 \end_layout
34751
34752 \begin_layout Description
34753 \begin_inset Flex Code
34754 status collapsed
34755
34756 \begin_layout Plain Layout
34757 Template
34758 \begin_inset space ~
34759 \end_inset
34760
34761 <id>
34762 \end_layout
34763
34764 \end_inset
34765
34766  A unique name for the template.
34767  It must not contain substitution macros (see below).
34768 \end_layout
34769
34770 \begin_layout Description
34771 \begin_inset Flex Code
34772 status collapsed
34773
34774 \begin_layout Plain Layout
34775 Transform
34776 \begin_inset space ~
34777 \end_inset
34778
34779 Rotate|Resize|Clip|Extra
34780 \end_layout
34781
34782 \end_inset
34783
34784  This command specifies which transformations are supported by this template.
34785  It may occur zero or more times.
34786  This command enables the corresponding tabs in the external dialog.
34787  Each 
34788 \begin_inset Flex Code
34789 status collapsed
34790
34791 \begin_layout Plain Layout
34792 Transform
34793 \end_layout
34794
34795 \end_inset
34796
34797  command must have either a corresponding 
34798 \begin_inset Flex Code
34799 status collapsed
34800
34801 \begin_layout Plain Layout
34802 TransformCommand
34803 \end_layout
34804
34805 \end_inset
34806
34807  or a 
34808 \begin_inset Flex Code
34809 status collapsed
34810
34811 \begin_layout Plain Layout
34812 TransformOption
34813 \end_layout
34814
34815 \end_inset
34816
34817  command in the 
34818 \begin_inset Flex Code
34819 status collapsed
34820
34821 \begin_layout Plain Layout
34822 Format
34823 \end_layout
34824
34825 \end_inset
34826
34827  section.
34828  Otherwise the transformation will not be supported by that format.
34829 \end_layout
34830
34831 \begin_layout Subsection
34832 The Format section
34833 \end_layout
34834
34835 \begin_layout Description
34836 \begin_inset Flex Code
34837 status collapsed
34838
34839 \begin_layout Plain Layout
34840 Format
34841 \begin_inset space ~
34842 \end_inset
34843
34844 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
34845 \end_layout
34846
34847 \end_inset
34848
34849  The primary document file format that this format definition is for.
34850  Not every template has a sensible representation in all document file formats.
34851  Please define nevertheless a 
34852 \begin_inset Flex Code
34853 status collapsed
34854
34855 \begin_layout Plain Layout
34856 Format
34857 \end_layout
34858
34859 \end_inset
34860
34861  section for all templates.
34862  Use a dummy text when no representation is available.
34863  Then you can at least see a reference to the external material in the exported document.
34864 \end_layout
34865
34866 \begin_layout Description
34867 \begin_inset Flex Code
34868 status collapsed
34869
34870 \begin_layout Plain Layout
34871 Option
34872 \begin_inset space ~
34873 \end_inset
34874
34875 <name>
34876 \begin_inset space ~
34877 \end_inset
34878
34879 <value>
34880 \end_layout
34881
34882 \end_inset
34883
34884  This command defines an additional macro 
34885 \begin_inset Flex Code
34886 status collapsed
34887
34888 \begin_layout Plain Layout
34889 $$<name>
34890 \end_layout
34891
34892 \end_inset
34893
34894  for substitution 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 .
34905  
34906 \begin_inset Flex Code
34907 status collapsed
34908
34909 \begin_layout Plain Layout
34910 <value>
34911 \end_layout
34912
34913 \end_inset
34914
34915  itself may contain substitution macros.
34916  The advantage over using 
34917 \begin_inset Flex Code
34918 status collapsed
34919
34920 \begin_layout Plain Layout
34921 <value>
34922 \end_layout
34923
34924 \end_inset
34925
34926  directly in 
34927 \begin_inset Flex Code
34928 status collapsed
34929
34930 \begin_layout Plain Layout
34931 Product
34932 \end_layout
34933
34934 \end_inset
34935
34936  is that the substituted value of 
34937 \begin_inset Flex Code
34938 status collapsed
34939
34940 \begin_layout Plain Layout
34941 $$<name>
34942 \end_layout
34943
34944 \end_inset
34945
34946  is sanitized so that it is a valid optional argument in the document format.
34947  This command may occur zero or more times.
34948 \end_layout
34949
34950 \begin_layout Description
34951 \begin_inset Flex Code
34952 status collapsed
34953
34954 \begin_layout Plain Layout
34955 Product
34956 \begin_inset space ~
34957 \end_inset
34958
34959 <text>
34960 \end_layout
34961
34962 \end_inset
34963
34964  The text that is inserted in the exported document.
34965  This is actually the most important command and can be quite complex.
34966  This command must occur exactly once.
34967 \end_layout
34968
34969 \begin_layout Description
34970 \begin_inset Flex Code
34971 status collapsed
34972
34973 \begin_layout Plain Layout
34974 Preamble
34975 \begin_inset space ~
34976 \end_inset
34977
34978 <name>
34979 \end_layout
34980
34981 \end_inset
34982
34983  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
34984  preamble.
34985  It has to be defined using 
34986 \begin_inset Flex Code
34987 status collapsed
34988
34989 \begin_layout Plain Layout
34990 PreambleDef
34991 \end_layout
34992
34993 \end_inset
34994
34995  \SpecialChar ldots
34996  
34997 \begin_inset Flex Code
34998 status collapsed
34999
35000 \begin_layout Plain Layout
35001 PreambleDefEnd
35002 \end_layout
35003
35004 \end_inset
35005
35006 .
35007  This command may occur zero or more times.
35008 \end_layout
35009
35010 \begin_layout Description
35011 \begin_inset Flex Code
35012 status collapsed
35013
35014 \begin_layout Plain Layout
35015 ReferencedFile
35016 \begin_inset space ~
35017 \end_inset
35018
35019 <format>
35020 \begin_inset space ~
35021 \end_inset
35022
35023 <filename>
35024 \end_layout
35025
35026 \end_inset
35027
35028  This command denotes files that are created by the conversion process and are needed for a particular export format.
35029  If the filename is relative,
35030  it is interpreted relative to the master document.
35031  This command may be given zero or more times.
35032 \end_layout
35033
35034 \begin_layout Description
35035 \begin_inset Flex Code
35036 status collapsed
35037
35038 \begin_layout Plain Layout
35039 Requirement
35040 \begin_inset space ~
35041 \end_inset
35042
35043 <package>
35044 \end_layout
35045
35046 \end_inset
35047
35048  The name of a required \SpecialChar LaTeX
35049  package.
35050  The package is included via 
35051 \begin_inset Flex Code
35052 status collapsed
35053
35054 \begin_layout Plain Layout
35055
35056 \backslash
35057 usepackage{}
35058 \end_layout
35059
35060 \end_inset
35061
35062  in the \SpecialChar LaTeX
35063  preamble.
35064  This command may occur zero or more times.
35065 \end_layout
35066
35067 \begin_layout Description
35068 \begin_inset Flex Code
35069 status collapsed
35070
35071 \begin_layout Plain Layout
35072 TransformCommand
35073 \begin_inset space ~
35074 \end_inset
35075
35076 Rotate
35077 \begin_inset space ~
35078 \end_inset
35079
35080 RotationLatexCommand
35081 \end_layout
35082
35083 \end_inset
35084
35085  This command specifies that the built in \SpecialChar LaTeX
35086  command should be used for rotation.
35087  This command may occur once or not at all.
35088 \end_layout
35089
35090 \begin_layout Description
35091 \begin_inset Flex Code
35092 status collapsed
35093
35094 \begin_layout Plain Layout
35095 TransformCommand
35096 \begin_inset space ~
35097 \end_inset
35098
35099 Resize
35100 \begin_inset space ~
35101 \end_inset
35102
35103 ResizeLatexCommand
35104 \end_layout
35105
35106 \end_inset
35107
35108  This command specifies that the built in \SpecialChar LaTeX
35109  command should be used for resizing.
35110  This command may occur once or not at all.
35111 \end_layout
35112
35113 \begin_layout Description
35114 \begin_inset Flex Code
35115 status collapsed
35116
35117 \begin_layout Plain Layout
35118 TransformOption
35119 \begin_inset space ~
35120 \end_inset
35121
35122 Rotate
35123 \begin_inset space ~
35124 \end_inset
35125
35126 RotationLatexOption
35127 \end_layout
35128
35129 \end_inset
35130
35131  This command specifies that rotation is done via an optional argument.
35132  This command may occur once or not at all.
35133 \end_layout
35134
35135 \begin_layout Description
35136 \begin_inset Flex Code
35137 status collapsed
35138
35139 \begin_layout Plain Layout
35140 TransformOption
35141 \begin_inset space ~
35142 \end_inset
35143
35144 Resize
35145 \begin_inset space ~
35146 \end_inset
35147
35148 ResizeLatexOption
35149 \end_layout
35150
35151 \end_inset
35152
35153  This command specifies that resizing is done via an optional argument.
35154  This command may occur once or not at all.
35155 \end_layout
35156
35157 \begin_layout Description
35158 \begin_inset Flex Code
35159 status collapsed
35160
35161 \begin_layout Plain Layout
35162 TransformOption
35163 \begin_inset space ~
35164 \end_inset
35165
35166 Clip
35167 \begin_inset space ~
35168 \end_inset
35169
35170 ClipLatexOption
35171 \end_layout
35172
35173 \end_inset
35174
35175  This command specifies that clipping is done via an optional argument.
35176  This command may occur once or not at all.
35177 \end_layout
35178
35179 \begin_layout Description
35180 \begin_inset Flex Code
35181 status collapsed
35182
35183 \begin_layout Plain Layout
35184 TransformOption
35185 \begin_inset space ~
35186 \end_inset
35187
35188 Extra
35189 \begin_inset space ~
35190 \end_inset
35191
35192 ExtraLatexOption
35193 \end_layout
35194
35195 \end_inset
35196
35197  This command specifies that an extra optional argument is used.
35198  This command may occur once or not at all.
35199 \end_layout
35200
35201 \begin_layout Description
35202 \begin_inset Flex Code
35203 status collapsed
35204
35205 \begin_layout Plain Layout
35206 UpdateFormat
35207 \begin_inset space ~
35208 \end_inset
35209
35210 <format>
35211 \end_layout
35212
35213 \end_inset
35214
35215  The file format of the converted file.
35216  This must be the name of a format that is known to \SpecialChar LyX
35217  (see the 
35218 \begin_inset Flex Noun
35219 status collapsed
35220
35221 \begin_layout Plain Layout
35222 Tools\SpecialChar menuseparator
35223 Preferences\SpecialChar menuseparator
35224 File Handling\SpecialChar menuseparator
35225 File Format
35226 \end_layout
35227
35228 \end_inset
35229
35230  dialog).
35231  This command must occur exactly once.
35232  If the resulting file format is PDF,
35233  you need to specify the format 
35234 \begin_inset Flex Code
35235 status collapsed
35236
35237 \begin_layout Plain Layout
35238 pdf6
35239 \end_layout
35240
35241 \end_inset
35242
35243 .
35244  This is the PDF format used for including graphics.
35245  The other defined PDF formats are for document export.
35246 \end_layout
35247
35248 \begin_layout Description
35249 \begin_inset Flex Code
35250 status collapsed
35251
35252 \begin_layout Plain Layout
35253 UpdateResult
35254 \begin_inset space ~
35255 \end_inset
35256
35257 <filename>
35258 \end_layout
35259
35260 \end_inset
35261
35262  The file name of the converted file.
35263  The file name must be absolute.
35264  This command must occur exactly once.
35265 \end_layout
35266
35267 \begin_layout Subsection
35268 Preamble definitions
35269 \end_layout
35270
35271 \begin_layout Standard
35272 The external template configuration file may contain additional preamble definitions enclosed by 
35273 \begin_inset Flex Code
35274 status collapsed
35275
35276 \begin_layout Plain Layout
35277 PreambleDef
35278 \end_layout
35279
35280 \end_inset
35281
35282  \SpecialChar ldots
35283  
35284 \begin_inset Flex Code
35285 status collapsed
35286
35287 \begin_layout Plain Layout
35288 PreambleDefEnd
35289 \end_layout
35290
35291 \end_inset
35292
35293 .
35294  They can be used by the templates in the 
35295 \begin_inset Flex Code
35296 status collapsed
35297
35298 \begin_layout Plain Layout
35299 Format
35300 \end_layout
35301
35302 \end_inset
35303
35304  section.
35305 \end_layout
35306
35307 \begin_layout Section
35308 The substitution mechanism
35309 \end_layout
35310
35311 \begin_layout Standard
35312 When the external material facility invokes an external program,
35313  it is done on the basis of a command defined in the template configuration file.
35314  These commands can contain various macros that are expanded before execution.
35315  Execution always take place in the directory of the containing document.
35316 \end_layout
35317
35318 \begin_layout Standard
35319 Also,
35320  whenever external material is to be displayed,
35321  the name will be produced by the substitution mechanism,
35322  and most other commands in the template definition support substitution as well.
35323 \end_layout
35324
35325 \begin_layout Standard
35326 The available macros are the following:
35327 \end_layout
35328
35329 \begin_layout Description
35330 \begin_inset Flex Code
35331 status collapsed
35332
35333 \begin_layout Plain Layout
35334 $$AbsOrRelPathMaster
35335 \end_layout
35336
35337 \end_inset
35338
35339  The file path,
35340  absolute or relative to the master \SpecialChar LyX
35341  document.
35342 \end_layout
35343
35344 \begin_layout Description
35345 \begin_inset Flex Code
35346 status collapsed
35347
35348 \begin_layout Plain Layout
35349 $$AbsOrRelPathParent
35350 \end_layout
35351
35352 \end_inset
35353
35354  The file path,
35355  absolute or relative to the \SpecialChar LyX
35356  document.
35357 \end_layout
35358
35359 \begin_layout Description
35360 \begin_inset Flex Code
35361 status collapsed
35362
35363 \begin_layout Plain Layout
35364 $$AbsPath
35365 \end_layout
35366
35367 \end_inset
35368
35369  The absolute file path.
35370 \end_layout
35371
35372 \begin_layout Description
35373 \begin_inset Flex Code
35374 status collapsed
35375
35376 \begin_layout Plain Layout
35377 $$Basename
35378 \end_layout
35379
35380 \end_inset
35381
35382  The filename without path and without the extension.
35383 \end_layout
35384
35385 \begin_layout Description
35386 \begin_inset Flex Code
35387 status collapsed
35388
35389 \begin_layout Plain Layout
35390 $$Contents(
35391 \begin_inset Quotes eld
35392 \end_inset
35393
35394 filename.ext
35395 \begin_inset Quotes erd
35396 \end_inset
35397
35398 )
35399 \end_layout
35400
35401 \end_inset
35402
35403  This macro will expand to the contents of the file with the name 
35404 \begin_inset Flex Code
35405 status collapsed
35406
35407 \begin_layout Plain Layout
35408 filename.ext
35409 \end_layout
35410
35411 \end_inset
35412
35413 .
35414 \end_layout
35415
35416 \begin_layout Description
35417 \begin_inset Flex Code
35418 status collapsed
35419
35420 \begin_layout Plain Layout
35421 $$Extension
35422 \end_layout
35423
35424 \end_inset
35425
35426  The file extension (including the dot).
35427 \end_layout
35428
35429 \begin_layout Description
35430 \begin_inset Flex Code
35431 status collapsed
35432
35433 \begin_layout Plain Layout
35434 $$pngOrjpg
35435 \end_layout
35436
35437 \end_inset
35438
35439  This will be the string 
35440 \begin_inset Quotes eld
35441 \end_inset
35442
35443 jpg
35444 \begin_inset Quotes erd
35445 \end_inset
35446
35447  if the file is in JPEG format,
35448  otherwise it will be the string 
35449 \begin_inset Quotes eld
35450 \end_inset
35451
35452 png
35453 \begin_inset Quotes erd
35454 \end_inset
35455
35456 .
35457  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
35458  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
35459  output format.
35460 \end_layout
35461
35462 \begin_layout Description
35463 \begin_inset Flex Code
35464 status collapsed
35465
35466 \begin_layout Plain Layout
35467 $$FName
35468 \end_layout
35469
35470 \end_inset
35471
35472  The filename of the file specified in the external material dialog.
35473  This is either an absolute name,
35474  or it is relative to the \SpecialChar LyX
35475  document.
35476 \end_layout
35477
35478 \begin_layout Description
35479 \begin_inset Flex Code
35480 status collapsed
35481
35482 \begin_layout Plain Layout
35483 $$FPath
35484 \end_layout
35485
35486 \end_inset
35487
35488  The path part of 
35489 \begin_inset Flex Code
35490 status collapsed
35491
35492 \begin_layout Plain Layout
35493 $$FName
35494 \end_layout
35495
35496 \end_inset
35497
35498  (absolute name or relative to the \SpecialChar LyX
35499  document).
35500 \end_layout
35501
35502 \begin_layout Description
35503 \begin_inset Flex Code
35504 status collapsed
35505
35506 \begin_layout Plain Layout
35507 $$RelPathMaster
35508 \end_layout
35509
35510 \end_inset
35511
35512  The file path,
35513  relative to the master \SpecialChar LyX
35514  document.
35515 \end_layout
35516
35517 \begin_layout Description
35518 \begin_inset Flex Code
35519 status collapsed
35520
35521 \begin_layout Plain Layout
35522 $$RelPathParent
35523 \end_layout
35524
35525 \end_inset
35526
35527  The file path,
35528  relative to the \SpecialChar LyX
35529  document.
35530 \end_layout
35531
35532 \begin_layout Description
35533 \begin_inset Flex Code
35534 status collapsed
35535
35536 \begin_layout Plain Layout
35537 $$Sysdir
35538 \end_layout
35539
35540 \end_inset
35541
35542  This macro will expand to the absolute path of the system directory.
35543  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
35544 .
35545 \end_layout
35546
35547 \begin_layout Description
35548 \begin_inset Flex Code
35549 status collapsed
35550
35551 \begin_layout Plain Layout
35552 $$Tempname
35553 \end_layout
35554
35555 \end_inset
35556
35557  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
35558  or the external material insertion deleted.
35559 \end_layout
35560
35561 \begin_layout Standard
35562 All path macros contain a trailing directory separator,
35563  so you can construct e.
35564 \begin_inset space \thinspace{}
35565 \end_inset
35566
35567 g.
35568 \begin_inset space \space{}
35569 \end_inset
35570
35571 the absolute filename with 
35572 \begin_inset Flex Code
35573 status collapsed
35574
35575 \begin_layout Plain Layout
35576 $$AbsPath$$Basename$$Extension
35577 \end_layout
35578
35579 \end_inset
35580
35581 .
35582 \end_layout
35583
35584 \begin_layout Standard
35585 The macros above are substituted in all commands unless otherwise noted.
35586  The command 
35587 \begin_inset Flex Code
35588 status collapsed
35589
35590 \begin_layout Plain Layout
35591 Product
35592 \end_layout
35593
35594 \end_inset
35595
35596  supports additionally the following substitutions if they are enabled by the 
35597 \begin_inset Flex Code
35598 status collapsed
35599
35600 \begin_layout Plain Layout
35601 Transform
35602 \end_layout
35603
35604 \end_inset
35605
35606  and 
35607 \begin_inset Flex Code
35608 status collapsed
35609
35610 \begin_layout Plain Layout
35611 TransformCommand
35612 \end_layout
35613
35614 \end_inset
35615
35616  commands:
35617 \end_layout
35618
35619 \begin_layout Description
35620 \begin_inset Flex Code
35621 status collapsed
35622
35623 \begin_layout Plain Layout
35624 $$ResizeFront
35625 \end_layout
35626
35627 \end_inset
35628
35629  The front part of the resize command.
35630 \end_layout
35631
35632 \begin_layout Description
35633 \begin_inset Flex Code
35634 status collapsed
35635
35636 \begin_layout Plain Layout
35637 $$ResizeBack
35638 \end_layout
35639
35640 \end_inset
35641
35642  The back part of the resize command.
35643 \end_layout
35644
35645 \begin_layout Description
35646 \begin_inset Flex Code
35647 status collapsed
35648
35649 \begin_layout Plain Layout
35650 $$RotateFront
35651 \end_layout
35652
35653 \end_inset
35654
35655  The front part of the rotation command.
35656 \end_layout
35657
35658 \begin_layout Description
35659 \begin_inset Flex Code
35660 status collapsed
35661
35662 \begin_layout Plain Layout
35663 $$RotateBack
35664 \end_layout
35665
35666 \end_inset
35667
35668  The back part of the rotation command.
35669 \end_layout
35670
35671 \begin_layout Standard
35672 The value string of the 
35673 \begin_inset Flex Code
35674 status collapsed
35675
35676 \begin_layout Plain Layout
35677 Option
35678 \end_layout
35679
35680 \end_inset
35681
35682  command supports additionally the following substitutions if they are enabled by the 
35683 \begin_inset Flex Code
35684 status collapsed
35685
35686 \begin_layout Plain Layout
35687 Transform
35688 \end_layout
35689
35690 \end_inset
35691
35692  and 
35693 \begin_inset Flex Code
35694 status collapsed
35695
35696 \begin_layout Plain Layout
35697 TransformOption
35698 \end_layout
35699
35700 \end_inset
35701
35702  commands:
35703 \end_layout
35704
35705 \begin_layout Description
35706 \begin_inset Flex Code
35707 status collapsed
35708
35709 \begin_layout Plain Layout
35710 $$Clip
35711 \end_layout
35712
35713 \end_inset
35714
35715  The clip option.
35716 \end_layout
35717
35718 \begin_layout Description
35719 \begin_inset Flex Code
35720 status collapsed
35721
35722 \begin_layout Plain Layout
35723 $$Extra
35724 \end_layout
35725
35726 \end_inset
35727
35728  The extra option.
35729 \end_layout
35730
35731 \begin_layout Description
35732 \begin_inset Flex Code
35733 status collapsed
35734
35735 \begin_layout Plain Layout
35736 $$Resize
35737 \end_layout
35738
35739 \end_inset
35740
35741  The resize option.
35742 \end_layout
35743
35744 \begin_layout Description
35745 \begin_inset Flex Code
35746 status collapsed
35747
35748 \begin_layout Plain Layout
35749 $$Rotate
35750 \end_layout
35751
35752 \end_inset
35753
35754  The rotation option.
35755 \end_layout
35756
35757 \begin_layout Standard
35758 You may ask why there are so many path macros.
35759  There are mainly two reasons:
35760 \end_layout
35761
35762 \begin_layout Enumerate
35763 Relative and absolute file names should remain relative or absolute,
35764  respectively.
35765  Users may have reasons to prefer either form.
35766  Relative names are useful for portable documents that should work on different machines,
35767  for example.
35768  Absolute names may be required by some programs.
35769 \end_layout
35770
35771 \begin_layout Enumerate
35772 \SpecialChar LaTeX
35773  treats relative file names differently than \SpecialChar LyX
35774  and other programs in nested included files.
35775  For \SpecialChar LyX
35776 ,
35777  a relative file name is always relative to the document that contains the file name.
35778  For \SpecialChar LaTeX
35779 ,
35780  it is always relative to the master document.
35781  These two definitions are identical if you have only one document,
35782  but differ if you have a master document that includes part documents.
35783  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
35784 .
35785  Fortunately \SpecialChar LyX
35786  does this automatically for you if you choose the right macros.
35787 \end_layout
35788
35789 \begin_layout Standard
35790 So which path macro should be used in new template definitions?
35791  The rule is not difficult:
35792 \end_layout
35793
35794 \begin_layout Itemize
35795 Use 
35796 \begin_inset Flex Code
35797 status collapsed
35798
35799 \begin_layout Plain Layout
35800 $$AbsPath
35801 \end_layout
35802
35803 \end_inset
35804
35805  if an absolute path is required.
35806 \end_layout
35807
35808 \begin_layout Itemize
35809 Use 
35810 \begin_inset Flex Code
35811 status collapsed
35812
35813 \begin_layout Plain Layout
35814 $$AbsOrRelPathMaster
35815 \end_layout
35816
35817 \end_inset
35818
35819  if the substituted string is some kind of \SpecialChar LaTeX
35820  input.
35821 \end_layout
35822
35823 \begin_layout Itemize
35824 Else use 
35825 \begin_inset Flex Code
35826 status collapsed
35827
35828 \begin_layout Plain Layout
35829 $$AbsOrRelPathParent
35830 \end_layout
35831
35832 \end_inset
35833
35834  in order to preserve the user's choice.
35835 \end_layout
35836
35837 \begin_layout Standard
35838 There are special cases where this rule does not work and e.
35839 \begin_inset space \thinspace{}
35840 \end_inset
35841
35842 g.
35843 \begin_inset space \space{}
35844 \end_inset
35845
35846 relative names are needed,
35847  but normally it will work just fine.
35848  One example for such a case is the command 
35849 \begin_inset Flex Code
35850 status collapsed
35851
35852 \begin_layout Plain Layout
35853 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
35854 \end_layout
35855
35856 \end_inset
35857
35858  in the XFig template above:
35859  We can't use the absolute name because the copier for 
35860 \begin_inset Flex Code
35861 status collapsed
35862
35863 \begin_layout Plain Layout
35864 .pstex_t
35865 \end_layout
35866
35867 \end_inset
35868
35869  files needs the relative name in order to rewrite the file content.
35870 \end_layout
35871
35872 \begin_layout Section
35873 Security discussion
35874 \begin_inset CommandInset label
35875 LatexCommand label
35876 name "sec:Security-discussion"
35877
35878 \end_inset
35879
35880
35881 \end_layout
35882
35883 \begin_layout Standard
35884 The external material feature interfaces with a lot of external programs and does so automatically,
35885  so we have to consider the security implications of this.
35886  In particular,
35887  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
35888  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
35889  This is something we definitely want to avoid.
35890 \end_layout
35891
35892 \begin_layout Standard
35893 However,
35894  since the external program commands are specified in the template configuration file only,
35895  there are no security issues if \SpecialChar LyX
35896  is properly configured with safe templates only.
35897  This is so because the external programs are invoked with the 
35898 \begin_inset Flex Code
35899 status collapsed
35900
35901 \begin_layout Plain Layout
35902 execvp
35903 \end_layout
35904
35905 \end_inset
35906
35907 -system call rather than the 
35908 \begin_inset Flex Code
35909 status collapsed
35910
35911 \begin_layout Plain Layout
35912 system
35913 \end_layout
35914
35915 \end_inset
35916
35917  system-call,
35918  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
35919 \end_layout
35920
35921 \begin_layout Standard
35922 This also implies that you are restricted in what command strings you can use in the external material templates.
35923  In particular,
35924  pipes and redirection are not readily available.
35925  This has to be so if \SpecialChar LyX
35926  should remain safe.
35927  If you want to use some of the shell features,
35928  you should write a safe script to do this in a controlled manner,
35929  and then invoke the script from the command string.
35930  
35931 \end_layout
35932
35933 \begin_layout Standard
35934 It is possible to design a template that interacts directly with the shell,
35935  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
35936  we generally recommend that you only use safe scripts that work with the 
35937 \begin_inset Flex Code
35938 status collapsed
35939
35940 \begin_layout Plain Layout
35941 execvp
35942 \end_layout
35943
35944 \end_inset
35945
35946  system call in a controlled manner.
35947  Of course,
35948  for use in a controlled environment,
35949  it can be tempting to just fall back to use ordinary shell scripts.
35950  If you do so,
35951  be aware that you 
35952 \emph on
35953 will
35954 \emph default
35955  provide an easily exploitable security hole in your system.
35956  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
35957  distribution,
35958  although we do encourage people to submit new templates in the open source tradition.
35959  But \SpecialChar LyX
35960  as shipped from the official distribution channels will never have unsafe templates.
35961 \end_layout
35962
35963 \begin_layout Standard
35964 Including external material provides a lot of power,
35965  and you have to be careful not to introduce security hazards with this power.
35966  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
35967  So if you do not fully understand the issues,
35968  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
35969  development team if you have any questions about whether a given template is safe or not.
35970  And do this before you use it in an uncontrolled environment.
35971 \end_layout
35972
35973 \begin_layout Chapter
35974 \start_of_appendix
35975 List of supported \SpecialChar LyX
35976  functions to be used in layouts
35977 \begin_inset CommandInset label
35978 LatexCommand label
35979 name "chap:List-of-functions"
35980
35981 \end_inset
35982
35983
35984 \end_layout
35985
35986 \begin_layout Standard
35987 \align center
35988 \begin_inset Tabular
35989 <lyxtabular version="3" rows="11" columns="8">
35990 <features tabularvalignment="middle">
35991 <column alignment="left" valignment="top">
35992 <column alignment="left" valignment="top">
35993 <column alignment="left" valignment="top">
35994 <column alignment="left" valignment="top">
35995 <column alignment="left" valignment="top">
35996 <column alignment="left" valignment="top">
35997 <column alignment="left" valignment="top">
35998 <column alignment="left" valignment="top">
35999 <row>
36000 <cell alignment="left" valignment="top" usebox="none">
36001 \begin_inset Text
36002
36003 \begin_layout Plain Layout
36004 accents
36005 \end_layout
36006
36007 \end_inset
36008 </cell>
36009 <cell alignment="left" valignment="top" usebox="none">
36010 \begin_inset Text
36011
36012 \begin_layout Plain Layout
36013 booktabs
36014 \end_layout
36015
36016 \end_inset
36017 </cell>
36018 <cell alignment="left" valignment="top" usebox="none">
36019 \begin_inset Text
36020
36021 \begin_layout Plain Layout
36022 feyn
36023 \end_layout
36024
36025 \end_inset
36026 </cell>
36027 <cell alignment="left" valignment="top" usebox="none">
36028 \begin_inset Text
36029
36030 \begin_layout Plain Layout
36031 listings
36032 \end_layout
36033
36034 \end_inset
36035 </cell>
36036 <cell alignment="center" valignment="top" usebox="none">
36037 \begin_inset Text
36038
36039 \begin_layout Plain Layout
36040 natbib
36041 \end_layout
36042
36043 \end_inset
36044 </cell>
36045 <cell alignment="center" valignment="top" usebox="none">
36046 \begin_inset Text
36047
36048 \begin_layout Plain Layout
36049
36050 \change_deleted 193502281 1695765491
36051 rotfloat
36052 \change_inserted 193502281 1695765500
36053 rsphrase
36054 \change_unchanged
36055
36056 \end_layout
36057
36058 \end_inset
36059 </cell>
36060 <cell alignment="center" valignment="top" usebox="none">
36061 \begin_inset Text
36062
36063 \begin_layout Plain Layout
36064 tfrupee
36065 \end_layout
36066
36067 \end_inset
36068 </cell>
36069 <cell alignment="center" valignment="top" usebox="none">
36070 \begin_inset Text
36071
36072 \begin_layout Plain Layout
36073 wasysym
36074 \end_layout
36075
36076 \end_inset
36077 </cell>
36078 </row>
36079 <row>
36080 <cell alignment="left" valignment="top" usebox="none">
36081 \begin_inset Text
36082
36083 \begin_layout Plain Layout
36084 amsbsy
36085 \end_layout
36086
36087 \end_inset
36088 </cell>
36089 <cell alignment="left" valignment="top" usebox="none">
36090 \begin_inset Text
36091
36092 \begin_layout Plain Layout
36093 calc
36094 \end_layout
36095
36096 \end_inset
36097 </cell>
36098 <cell alignment="left" valignment="top" usebox="none">
36099 \begin_inset Text
36100
36101 \begin_layout Plain Layout
36102 fixltx2e
36103 \end_layout
36104
36105 \end_inset
36106 </cell>
36107 <cell alignment="left" valignment="top" usebox="none">
36108 \begin_inset Text
36109
36110 \begin_layout Plain Layout
36111 longtable
36112 \end_layout
36113
36114 \end_inset
36115 </cell>
36116 <cell alignment="center" valignment="top" usebox="none">
36117 \begin_inset Text
36118
36119 \begin_layout Plain Layout
36120 nomencl
36121 \end_layout
36122
36123 \end_inset
36124 </cell>
36125 <cell alignment="center" valignment="top" usebox="none">
36126 \begin_inset Text
36127
36128 \begin_layout Plain Layout
36129
36130 \change_deleted 193502281 1695765498
36131 rsphrase
36132 \change_inserted 193502281 1695765504
36133 setspace
36134 \change_unchanged
36135
36136 \end_layout
36137
36138 \end_inset
36139 </cell>
36140 <cell alignment="center" valignment="top" usebox="none">
36141 \begin_inset Text
36142
36143 \begin_layout Plain Layout
36144 tipa
36145 \end_layout
36146
36147 \end_inset
36148 </cell>
36149 <cell alignment="center" valignment="top" usebox="none">
36150 \begin_inset Text
36151
36152 \begin_layout Plain Layout
36153 wrapfig
36154 \end_layout
36155
36156 \end_inset
36157 </cell>
36158 </row>
36159 <row>
36160 <cell alignment="left" valignment="top" usebox="none">
36161 \begin_inset Text
36162
36163 \begin_layout Plain Layout
36164 amscd
36165 \end_layout
36166
36167 \end_inset
36168 </cell>
36169 <cell alignment="left" valignment="top" usebox="none">
36170 \begin_inset Text
36171
36172 \begin_layout Plain Layout
36173 CJK
36174 \end_layout
36175
36176 \end_inset
36177 </cell>
36178 <cell alignment="left" valignment="top" usebox="none">
36179 \begin_inset Text
36180
36181 \begin_layout Plain Layout
36182 float
36183 \end_layout
36184
36185 \end_inset
36186 </cell>
36187 <cell alignment="left" valignment="top" usebox="none">
36188 \begin_inset Text
36189
36190 \begin_layout Plain Layout
36191 lyxskak
36192 \end_layout
36193
36194 \end_inset
36195 </cell>
36196 <cell alignment="center" valignment="top" usebox="none">
36197 \begin_inset Text
36198
36199 \begin_layout Plain Layout
36200
36201 \change_deleted 193502281 1695765346
36202 pdfcolmk
36203 \change_inserted 193502281 1695765405
36204 pdfpages
36205 \change_unchanged
36206
36207 \end_layout
36208
36209 \end_inset
36210 </cell>
36211 <cell alignment="center" valignment="top" usebox="none">
36212 \begin_inset Text
36213
36214 \begin_layout Plain Layout
36215
36216 \change_deleted 193502281 1695765503
36217 setspace
36218 \change_inserted 193502281 1695765508
36219 shapepar
36220 \change_unchanged
36221
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 tipx
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 xargs
36240 \end_layout
36241
36242 \end_inset
36243 </cell>
36244 </row>
36245 <row>
36246 <cell alignment="left" valignment="top" usebox="none">
36247 \begin_inset Text
36248
36249 \begin_layout Plain Layout
36250 amsmath
36251 \end_layout
36252
36253 \end_inset
36254 </cell>
36255 <cell alignment="left" valignment="top" usebox="none">
36256 \begin_inset Text
36257
36258 \begin_layout Plain Layout
36259 color
36260 \end_layout
36261
36262 \end_inset
36263 </cell>
36264 <cell alignment="left" valignment="top" usebox="none">
36265 \begin_inset Text
36266
36267 \begin_layout Plain Layout
36268 framed
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 makeidx
36278 \end_layout
36279
36280 \end_inset
36281 </cell>
36282 <cell alignment="center" valignment="top" usebox="none">
36283 \begin_inset Text
36284
36285 \begin_layout Plain Layout
36286
36287 \change_deleted 193502281 1695765403
36288 pdfpages
36289 \change_inserted 193502281 1695765410
36290 pifont
36291 \change_unchanged
36292
36293 \end_layout
36294
36295 \end_inset
36296 </cell>
36297 <cell alignment="center" valignment="top" usebox="none">
36298 \begin_inset Text
36299
36300 \begin_layout Plain Layout
36301
36302 \change_deleted 193502281 1695765507
36303 shapepar
36304 \change_inserted 193502281 1695765512
36305 slashed
36306 \change_unchanged
36307
36308 \end_layout
36309
36310 \end_inset
36311 </cell>
36312 <cell alignment="center" valignment="top" usebox="none">
36313 \begin_inset Text
36314
36315 \begin_layout Plain Layout
36316 tone
36317 \end_layout
36318
36319 \end_inset
36320 </cell>
36321 <cell alignment="center" valignment="top" usebox="none">
36322 \begin_inset Text
36323
36324 \begin_layout Plain Layout
36325 xcolor
36326 \end_layout
36327
36328 \end_inset
36329 </cell>
36330 </row>
36331 <row>
36332 <cell alignment="left" valignment="top" usebox="none">
36333 \begin_inset Text
36334
36335 \begin_layout Plain Layout
36336 amssymb
36337 \end_layout
36338
36339 \end_inset
36340 </cell>
36341 <cell alignment="left" valignment="top" usebox="none">
36342 \begin_inset Text
36343
36344 \begin_layout Plain Layout
36345 covington
36346 \end_layout
36347
36348 \end_inset
36349 </cell>
36350 <cell alignment="left" valignment="top" usebox="none">
36351 \begin_inset Text
36352
36353 \begin_layout Plain Layout
36354 graphicx
36355 \end_layout
36356
36357 \end_inset
36358 </cell>
36359 <cell alignment="left" valignment="top" usebox="none">
36360 \begin_inset Text
36361
36362 \begin_layout Plain Layout
36363 marvosym
36364 \end_layout
36365
36366 \end_inset
36367 </cell>
36368 <cell alignment="center" valignment="top" usebox="none">
36369 \begin_inset Text
36370
36371 \begin_layout Plain Layout
36372
36373 \change_deleted 193502281 1695765408
36374 pifont
36375 \change_inserted 193502281 1695765466
36376 pmboxdraw
36377 \change_unchanged
36378
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
36388 \change_deleted 193502281 1695765511
36389 slashed
36390 \change_inserted 193502281 1695765515
36391 soul
36392 \change_unchanged
36393
36394 \end_layout
36395
36396 \end_inset
36397 </cell>
36398 <cell alignment="center" valignment="top" usebox="none">
36399 \begin_inset Text
36400
36401 \begin_layout Plain Layout
36402 txfonts
36403 \end_layout
36404
36405 \end_inset
36406 </cell>
36407 <cell alignment="center" valignment="top" usebox="none">
36408 \begin_inset Text
36409
36410 \begin_layout Plain Layout
36411 xy
36412 \end_layout
36413
36414 \end_inset
36415 </cell>
36416 </row>
36417 <row>
36418 <cell alignment="left" valignment="top" usebox="none">
36419 \begin_inset Text
36420
36421 \begin_layout Plain Layout
36422 amstext
36423 \end_layout
36424
36425 \end_inset
36426 </cell>
36427 <cell alignment="left" valignment="top" usebox="none">
36428 \begin_inset Text
36429
36430 \begin_layout Plain Layout
36431 csquotes
36432 \end_layout
36433
36434 \end_inset
36435 </cell>
36436 <cell alignment="left" valignment="top" usebox="none">
36437 \begin_inset Text
36438
36439 \begin_layout Plain Layout
36440 hhline
36441 \end_layout
36442
36443 \end_inset
36444 </cell>
36445 <cell alignment="left" valignment="top" usebox="none">
36446 \begin_inset Text
36447
36448 \begin_layout Plain Layout
36449 mathdesign
36450 \end_layout
36451
36452 \end_inset
36453 </cell>
36454 <cell alignment="center" valignment="top" usebox="none">
36455 \begin_inset Text
36456
36457 \begin_layout Plain Layout
36458
36459 \change_deleted 193502281 1695765464
36460 pmboxdraw
36461 \change_inserted 193502281 1695765470
36462 polyglossia
36463 \change_unchanged
36464
36465 \end_layout
36466
36467 \end_inset
36468 </cell>
36469 <cell alignment="center" valignment="top" usebox="none">
36470 \begin_inset Text
36471
36472 \begin_layout Plain Layout
36473
36474 \change_deleted 193502281 1695765514
36475 soul
36476 \change_inserted 193502281 1695765520
36477 splitidx
36478 \change_unchanged
36479
36480 \end_layout
36481
36482 \end_inset
36483 </cell>
36484 <cell alignment="center" valignment="top" usebox="none">
36485 \begin_inset Text
36486
36487 \begin_layout Plain Layout
36488 ulem
36489 \end_layout
36490
36491 \end_inset
36492 </cell>
36493 <cell alignment="center" valignment="top" usebox="none">
36494 \begin_inset Text
36495
36496 \begin_layout Plain Layout
36497 yhmath
36498 \end_layout
36499
36500 \end_inset
36501 </cell>
36502 </row>
36503 <row>
36504 <cell alignment="left" valignment="top" usebox="none">
36505 \begin_inset Text
36506
36507 \begin_layout Plain Layout
36508 amsthm
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 dvipost
36518 \end_layout
36519
36520 \end_inset
36521 </cell>
36522 <cell alignment="left" valignment="top" usebox="none">
36523 \begin_inset Text
36524
36525 \begin_layout Plain Layout
36526 hyperref
36527 \end_layout
36528
36529 \end_inset
36530 </cell>
36531 <cell alignment="left" valignment="top" usebox="none">
36532 \begin_inset Text
36533
36534 \begin_layout Plain Layout
36535 mathdots
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
36545 \change_deleted 193502281 1695765469
36546 polyglossia
36547 \change_inserted 193502281 1695765474
36548 prettyref
36549 \change_unchanged
36550
36551 \end_layout
36552
36553 \end_inset
36554 </cell>
36555 <cell alignment="center" valignment="top" usebox="none">
36556 \begin_inset Text
36557
36558 \begin_layout Plain Layout
36559
36560 \change_deleted 193502281 1695765519
36561 splitidx
36562 \change_inserted 193502281 1695765524
36563 subfig
36564 \change_unchanged
36565
36566 \end_layout
36567
36568 \end_inset
36569 </cell>
36570 <cell alignment="center" valignment="top" usebox="none">
36571 \begin_inset Text
36572
36573 \begin_layout Plain Layout
36574 undertilde
36575 \end_layout
36576
36577 \end_inset
36578 </cell>
36579 <cell alignment="center" valignment="top" usebox="none">
36580 \begin_inset Text
36581
36582 \begin_layout Plain Layout
36583
36584 \end_layout
36585
36586 \end_inset
36587 </cell>
36588 </row>
36589 <row>
36590 <cell alignment="left" valignment="top" usebox="none">
36591 \begin_inset Text
36592
36593 \begin_layout Plain Layout
36594 array
36595 \end_layout
36596
36597 \end_inset
36598 </cell>
36599 <cell alignment="left" valignment="top" usebox="none">
36600 \begin_inset Text
36601
36602 \begin_layout Plain Layout
36603 endnotes
36604 \end_layout
36605
36606 \end_inset
36607 </cell>
36608 <cell alignment="left" valignment="top" usebox="none">
36609 \begin_inset Text
36610
36611 \begin_layout Plain Layout
36612 ifsym
36613 \end_layout
36614
36615 \end_inset
36616 </cell>
36617 <cell alignment="left" valignment="top" usebox="none">
36618 \begin_inset Text
36619
36620 \begin_layout Plain Layout
36621 mathrsfs
36622 \end_layout
36623
36624 \end_inset
36625 </cell>
36626 <cell alignment="center" valignment="top" usebox="none">
36627 \begin_inset Text
36628
36629 \begin_layout Plain Layout
36630
36631 \change_deleted 193502281 1695765473
36632 prettyref
36633 \change_inserted 193502281 1695765477
36634 pxfonts
36635 \change_unchanged
36636
36637 \end_layout
36638
36639 \end_inset
36640 </cell>
36641 <cell alignment="center" valignment="top" usebox="none">
36642 \begin_inset Text
36643
36644 \begin_layout Plain Layout
36645
36646 \change_deleted 193502281 1695765523
36647 subfig
36648 \change_inserted 193502281 1695765528
36649 subscript
36650 \change_unchanged
36651
36652 \end_layout
36653
36654 \end_inset
36655 </cell>
36656 <cell alignment="center" valignment="top" usebox="none">
36657 \begin_inset Text
36658
36659 \begin_layout Plain Layout
36660 units
36661 \end_layout
36662
36663 \end_inset
36664 </cell>
36665 <cell alignment="center" valignment="top" usebox="none">
36666 \begin_inset Text
36667
36668 \begin_layout Plain Layout
36669
36670 \end_layout
36671
36672 \end_inset
36673 </cell>
36674 </row>
36675 <row>
36676 <cell alignment="left" valignment="top" usebox="none">
36677 \begin_inset Text
36678
36679 \begin_layout Plain Layout
36680 ascii
36681 \end_layout
36682
36683 \end_inset
36684 </cell>
36685 <cell alignment="left" valignment="top" usebox="none">
36686 \begin_inset Text
36687
36688 \begin_layout Plain Layout
36689 enumitem
36690 \end_layout
36691
36692 \end_inset
36693 </cell>
36694 <cell alignment="left" valignment="top" usebox="none">
36695 \begin_inset Text
36696
36697 \begin_layout Plain Layout
36698 ifthen
36699 \end_layout
36700
36701 \end_inset
36702 </cell>
36703 <cell alignment="left" valignment="top" usebox="none">
36704 \begin_inset Text
36705
36706 \begin_layout Plain Layout
36707 mhchem
36708 \end_layout
36709
36710 \end_inset
36711 </cell>
36712 <cell alignment="center" valignment="top" usebox="none">
36713 \begin_inset Text
36714
36715 \begin_layout Plain Layout
36716
36717 \change_deleted 193502281 1695765476
36718 pxfonts
36719 \change_inserted 193502281 1695765482
36720 refstyle
36721 \change_unchanged
36722
36723 \end_layout
36724
36725 \end_inset
36726 </cell>
36727 <cell alignment="center" valignment="top" usebox="none">
36728 \begin_inset Text
36729
36730 \begin_layout Plain Layout
36731
36732 \change_deleted 193502281 1695765527
36733 subscript
36734 \change_inserted 193502281 1695765557
36735 tcolorbox
36736 \change_unchanged
36737
36738 \end_layout
36739
36740 \end_inset
36741 </cell>
36742 <cell alignment="center" valignment="top" usebox="none">
36743 \begin_inset Text
36744
36745 \begin_layout Plain Layout
36746 url
36747 \end_layout
36748
36749 \end_inset
36750 </cell>
36751 <cell alignment="center" valignment="top" usebox="none">
36752 \begin_inset Text
36753
36754 \begin_layout Plain Layout
36755
36756 \end_layout
36757
36758 \end_inset
36759 </cell>
36760 </row>
36761 <row>
36762 <cell alignment="left" valignment="top" usebox="none">
36763 \begin_inset Text
36764
36765 \begin_layout Plain Layout
36766 bbding
36767 \end_layout
36768
36769 \end_inset
36770 </cell>
36771 <cell alignment="left" valignment="top" usebox="none">
36772 \begin_inset Text
36773
36774 \begin_layout Plain Layout
36775 esint
36776 \end_layout
36777
36778 \end_inset
36779 </cell>
36780 <cell alignment="left" valignment="top" usebox="none">
36781 \begin_inset Text
36782
36783 \begin_layout Plain Layout
36784 jurabib
36785 \end_layout
36786
36787 \end_inset
36788 </cell>
36789 <cell alignment="left" valignment="top" usebox="none">
36790 \begin_inset Text
36791
36792 \begin_layout Plain Layout
36793 multicol
36794 \end_layout
36795
36796 \end_inset
36797 </cell>
36798 <cell alignment="center" valignment="top" usebox="none">
36799 \begin_inset Text
36800
36801 \begin_layout Plain Layout
36802
36803 \change_deleted 193502281 1695765481
36804 refstyle
36805 \change_inserted 193502281 1695765485
36806 rotating
36807 \change_unchanged
36808
36809 \end_layout
36810
36811 \end_inset
36812 </cell>
36813 <cell alignment="center" valignment="top" usebox="none">
36814 \begin_inset Text
36815
36816 \begin_layout Plain Layout
36817 textcomp
36818 \end_layout
36819
36820 \end_inset
36821 </cell>
36822 <cell alignment="center" valignment="top" usebox="none">
36823 \begin_inset Text
36824
36825 \begin_layout Plain Layout
36826 varioref
36827 \end_layout
36828
36829 \end_inset
36830 </cell>
36831 <cell alignment="center" valignment="top" usebox="none">
36832 \begin_inset Text
36833
36834 \begin_layout Plain Layout
36835
36836 \end_layout
36837
36838 \end_inset
36839 </cell>
36840 </row>
36841 <row>
36842 <cell alignment="center" valignment="top" usebox="none">
36843 \begin_inset Text
36844
36845 \begin_layout Plain Layout
36846 bm
36847 \end_layout
36848
36849 \end_inset
36850 </cell>
36851 <cell alignment="center" valignment="top" usebox="none">
36852 \begin_inset Text
36853
36854 \begin_layout Plain Layout
36855 fancybox
36856 \end_layout
36857
36858 \end_inset
36859 </cell>
36860 <cell alignment="center" valignment="top" usebox="none">
36861 \begin_inset Text
36862
36863 \begin_layout Plain Layout
36864 latexsym
36865 \end_layout
36866
36867 \end_inset
36868 </cell>
36869 <cell alignment="center" valignment="top" usebox="none">
36870 \begin_inset Text
36871
36872 \begin_layout Plain Layout
36873 multirow
36874 \end_layout
36875
36876 \end_inset
36877 </cell>
36878 <cell alignment="center" valignment="top" usebox="none">
36879 \begin_inset Text
36880
36881 \begin_layout Plain Layout
36882
36883 \change_deleted 193502281 1695765484
36884 rotating
36885 \change_inserted 193502281 1695765493
36886 rotfloat
36887 \change_unchanged
36888
36889 \end_layout
36890
36891 \end_inset
36892 </cell>
36893 <cell alignment="center" valignment="top" usebox="none">
36894 \begin_inset Text
36895
36896 \begin_layout Plain Layout
36897 textgreek
36898 \end_layout
36899
36900 \end_inset
36901 </cell>
36902 <cell alignment="center" valignment="top" usebox="none">
36903 \begin_inset Text
36904
36905 \begin_layout Plain Layout
36906 verbatim
36907 \end_layout
36908
36909 \end_inset
36910 </cell>
36911 <cell alignment="center" valignment="top" usebox="none">
36912 \begin_inset Text
36913
36914 \begin_layout Plain Layout
36915
36916 \end_layout
36917
36918 \end_inset
36919 </cell>
36920 </row>
36921 </lyxtabular>
36922
36923 \end_inset
36924
36925
36926 \end_layout
36927
36928 \begin_layout Chapter
36929 Names of available colors to be used in layouts
36930 \begin_inset CommandInset label
36931 LatexCommand label
36932 name "chap:Names-of-colors"
36933
36934 \end_inset
36935
36936
36937 \end_layout
36938
36939 \begin_layout Standard
36940 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
36941  preferences.
36942 \end_layout
36943
36944 \begin_layout Section
36945 Color functions
36946 \end_layout
36947
36948 \begin_layout Standard
36949 The following are no real colors,
36950  but rather act on color definitions:
36951 \end_layout
36952
36953 \begin_layout Description
36954 ignore The color is ignored
36955 \end_layout
36956
36957 \begin_layout Description
36958 inherit The color is inherited
36959 \end_layout
36960
36961 \begin_layout Description
36962 none
36963 \family roman
36964 \series medium
36965 \shape up
36966 \size normal
36967 \emph off
36968 \bar no
36969 \strikeout off
36970 \uuline off
36971 \uwave off
36972 \noun off
36973 \color none
36974  No particular color – clear or default
36975 \end_layout
36976
36977 \begin_layout Section
36978 Static colors
36979 \end_layout
36980
36981 \begin_layout Standard
36982 These are fixed colors that cannot be customized
36983 \change_inserted -712698321 1607683177
36984 .
36985  Please do 
36986 \emph on
36987 not
36988 \emph default
36989  use these colors in layout definitions,
36990  since they will not work well with some color themes (such as dark themes)
36991 \change_unchanged
36992 :
36993 \end_layout
36994
36995 \begin_layout Description
36996 black
36997 \end_layout
36998
36999 \begin_layout Description
37000 white
37001 \end_layout
37002
37003 \begin_layout Description
37004 blue
37005 \end_layout
37006
37007 \begin_layout Description
37008 brown
37009 \end_layout
37010
37011 \begin_layout Description
37012 cyan
37013 \end_layout
37014
37015 \begin_layout Description
37016 darkgray
37017 \end_layout
37018
37019 \begin_layout Description
37020 gray
37021 \end_layout
37022
37023 \begin_layout Description
37024 green
37025 \end_layout
37026
37027 \begin_layout Description
37028 lightgray
37029 \end_layout
37030
37031 \begin_layout Description
37032 lime
37033 \end_layout
37034
37035 \begin_layout Description
37036 magenta
37037 \end_layout
37038
37039 \begin_layout Description
37040 olive
37041 \end_layout
37042
37043 \begin_layout Description
37044 orange
37045 \end_layout
37046
37047 \begin_layout Description
37048 pink
37049 \end_layout
37050
37051 \begin_layout Description
37052 purple
37053 \end_layout
37054
37055 \begin_layout Description
37056 red
37057 \end_layout
37058
37059 \begin_layout Description
37060 teal
37061 \end_layout
37062
37063 \begin_layout Description
37064 violet
37065 \end_layout
37066
37067 \begin_layout Description
37068 yellow
37069 \end_layout
37070
37071 \begin_layout Section
37072 Dynamic colors
37073 \end_layout
37074
37075 \begin_layout Standard
37076 These are the colors allocated to specific elements in 
37077 \begin_inset Info
37078 type  "menu"
37079 arg   "dialog-show prefs"
37080 \end_inset
37081
37082 :
37083 \end_layout
37084
37085 \begin_layout Description
37086 added_space Added space color
37087 \end_layout
37088
37089 \begin_layout Description
37090 addedtext Added text color
37091 \end_layout
37092
37093 \begin_layout Description
37094 appendix Appendix marker color
37095 \end_layout
37096
37097 \begin_layout Description
37098 background Background color
37099 \change_inserted 5863208 1681507589
37100
37101 \end_layout
37102
37103 \begin_layout Description
37104
37105 \change_inserted 5863208 1681507597
37106 bookmark Bookmark indicator color
37107 \change_unchanged
37108
37109 \end_layout
37110
37111 \begin_layout Description
37112 bottomarea Bottom area color
37113 \end_layout
37114
37115 \begin_layout Description
37116 branchlabel Label color for branches
37117 \end_layout
37118
37119 \begin_layout Description
37120 buttonbg Color used for button background
37121 \end_layout
37122
37123 \begin_layout Description
37124 buttonframe Color for inset button frames
37125 \end_layout
37126
37127 \begin_layout Description
37128 buttonhoverbg Color used for button background under focus
37129 \change_inserted -712698321 1681555554
37130
37131 \end_layout
37132
37133 \begin_layout Description
37134
37135 \change_inserted -712698321 1681555554
37136 buttonhoverbg_broken Color used for broken inset button under focus 
37137 \change_unchanged
37138
37139 \end_layout
37140
37141 \begin_layout Description
37142 changebar Changebar color
37143 \end_layout
37144
37145 \begin_layout Description
37146 changedtextauthor1 Changed text color author 1
37147 \end_layout
37148
37149 \begin_layout Description
37150 changedtextauthor2 Changed text color author 2
37151 \end_layout
37152
37153 \begin_layout Description
37154 changedtextauthor3 Changed text color author 3
37155 \end_layout
37156
37157 \begin_layout Description
37158 changedtextauthor4 Changed text color author 4
37159 \end_layout
37160
37161 \begin_layout Description
37162 changedtextauthor5 Changed text color author 5
37163 \change_inserted 5863208 1681507402
37164
37165 \end_layout
37166
37167 \begin_layout Description
37168
37169 \change_inserted 5863208 1681507414
37170 changedtextcomparison Changed text color document comparison (workarea)
37171 \change_unchanged
37172
37173 \end_layout
37174
37175 \begin_layout Description
37176 collapsible Collapsible insets text color
37177 \end_layout
37178
37179 \begin_layout Description
37180 collapsibleframe Collapsible insets framecolor
37181 \end_layout
37182
37183 \begin_layout Description
37184 command Text color for command insets
37185 \end_layout
37186
37187 \begin_layout Description
37188 commandbg Background color for command insets
37189 \end_layout
37190
37191 \begin_layout Description
37192 commandframe Frame color for command insets
37193 \change_inserted 5863208 1681507735
37194
37195 \end_layout
37196
37197 \begin_layout Description
37198
37199 \change_inserted 5863208 1681507880
37200 command_broken Text color for broken
37201 \change_inserted -712698321 1681555620
37202  
37203 \change_inserted 5863208 1681507880
37204 (
37205 \change_deleted -712698321 1681555620
37206 -
37207 \change_inserted 5863208 1681507880
37208 reference) insets 
37209 \end_layout
37210
37211 \begin_layout Description
37212
37213 \change_inserted 5863208 1681507827
37214 commandbg_broken Background color for broken insets
37215 \end_layout
37216
37217 \begin_layout Description
37218
37219 \change_inserted 5863208 1681507835
37220 commandframe_broken Frame color for broken insets 
37221 \end_layout
37222
37223 \begin_layout Description
37224
37225 \change_deleted -712698321 1681555548
37226 buttonhoverbg_broken Color used for broken inset button under focus 
37227 \change_unchanged
37228
37229 \end_layout
37230
37231 \begin_layout Description
37232 comment Label color for comments
37233 \end_layout
37234
37235 \begin_layout Description
37236 commentbg Background color of comments
37237 \end_layout
37238
37239 \begin_layout Description
37240 cursor Cursor color
37241 \end_layout
37242
37243 \begin_layout Description
37244 deletedtext Deleted text color
37245 \end_layout
37246
37247 \begin_layout Description
37248 deletedtextmodifier Deleted text modifying color
37249 \change_inserted 5863208 1681507525
37250  (for adjusting the 
37251 \change_deleted -712698321 1681555611
37252 brightnes
37253 \change_inserted -712698321 1681555611
37254 brightness
37255 \change_inserted 5863208 1681507525
37256 )
37257 \change_unchanged
37258
37259 \end_layout
37260
37261 \begin_layout Description
37262 depthbar Color for the depth bars in the margin
37263 \end_layout
37264
37265 \begin_layout Description
37266 eolmarker End of line marker color
37267 \end_layout
37268
37269 \begin_layout Description
37270 error Color of the \SpecialChar LaTeX
37271  error box
37272 \end_layout
37273
37274 \begin_layout Description
37275 footlabel Label color for footnotes
37276 \end_layout
37277
37278 \begin_layout Description
37279 foreground Foreground color
37280 \end_layout
37281
37282 \begin_layout Description
37283 graphicsbg Graphics inset background color
37284 \end_layout
37285
37286 \begin_layout Description
37287 greyedoutbg Background color of greyedout inset
37288 \end_layout
37289
37290 \begin_layout Description
37291 greyedoutlabel Label color for greyedout insets
37292 \end_layout
37293
37294 \begin_layout Description
37295 greyedouttext Color for greyedout inset text
37296 \end_layout
37297
37298 \begin_layout Description
37299 indexlabel Label color for index insets
37300 \end_layout
37301
37302 \begin_layout Description
37303 inlinecompletion Inline completion color
37304 \end_layout
37305
37306 \begin_layout Description
37307 insetbg Inset marker background color
37308 \end_layout
37309
37310 \begin_layout Description
37311 insetframe Inset marker frame color
37312 \end_layout
37313
37314 \begin_layout Description
37315 language Color for marking foreign language words
37316 \end_layout
37317
37318 \begin_layout Description
37319 latex Text color in \SpecialChar LaTeX
37320  mode
37321 \end_layout
37322
37323 \begin_layout Description
37324 listingsbg Background color of listings inset
37325 \end_layout
37326
37327 \begin_layout Description
37328 marginlabel Label color for margin notes
37329 \end_layout
37330
37331 \begin_layout Description
37332 math Math inset text color
37333 \end_layout
37334
37335 \begin_layout Description
37336 mathbg Math inset background color
37337 \end_layout
37338
37339 \begin_layout Description
37340 mathcorners Math inset frame color not under focus
37341 \end_layout
37342
37343 \begin_layout Description
37344 mathframe Math inset frame color under focus
37345 \end_layout
37346
37347 \begin_layout Description
37348 mathline Math line color
37349 \end_layout
37350
37351 \begin_layout Description
37352 mathmacrobg Macro math inset background color
37353 \end_layout
37354
37355 \begin_layout Description
37356 mathmacroblend Macro math blended color
37357 \end_layout
37358
37359 \begin_layout Description
37360 mathmacroframe Macro math frame color
37361 \end_layout
37362
37363 \begin_layout Description
37364 mathmacrohoverbg Macro math inset background color hovered
37365 \end_layout
37366
37367 \begin_layout Description
37368 mathmacrolabel Macro math label color
37369 \end_layout
37370
37371 \begin_layout Description
37372 mathmacronewarg Macro template color for new parameters
37373 \end_layout
37374
37375 \begin_layout Description
37376 mathmacrooldarg Macro template color for old parameters
37377 \end_layout
37378
37379 \begin_layout Description
37380 newpage New page color
37381 \end_layout
37382
37383 \begin_layout Description
37384 nonunique_inlinecompletion Inline completion color for the non-unique part
37385 \end_layout
37386
37387 \begin_layout Description
37388 note Label color for notes
37389 \end_layout
37390
37391 \begin_layout Description
37392 notebg Background color of notes
37393 \end_layout
37394
37395 \begin_layout Description
37396 pagebreak Page break/line break color
37397 \end_layout
37398
37399 \begin_layout Description
37400 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
37401 \end_layout
37402
37403 \begin_layout Description
37404 phantomtext Text color for phantom insets
37405 \end_layout
37406
37407 \begin_layout Description
37408 preview The color used for previews
37409 \end_layout
37410
37411 \begin_layout Description
37412 previewframe Preview frame color
37413 \end_layout
37414
37415 \begin_layout Description
37416 regexpframe Color for regexp frame
37417 \end_layout
37418
37419 \begin_layout Description
37420 scroll Color that indicates when a row can be scrolled 
37421 \end_layout
37422
37423 \begin_layout Description
37424 selection Background color of selected text
37425 \change_inserted -712698321 1696418767
37426
37427 \end_layout
37428
37429 \begin_layout Description
37430
37431 \change_inserted -712698321 1696418836
37432 selectionmath Foreground color of selected text in math insets
37433 \change_unchanged
37434
37435 \end_layout
37436
37437 \begin_layout Description
37438 selectiontext Foreground color of selected text
37439 \end_layout
37440
37441 \begin_layout Description
37442 shadedbg Background color of shaded box
37443 \end_layout
37444
37445 \begin_layout Description
37446 special Special chars text color
37447 \end_layout
37448
37449 \begin_layout Description
37450 tabularline Table line color
37451 \end_layout
37452
37453 \begin_layout Description
37454 tabularonoffline Table line color
37455 \change_inserted -712698321 1607682522
37456
37457 \end_layout
37458
37459 \begin_layout Description
37460
37461 \change_inserted -712698321 1607682563
37462 textlabel1 Color 1 of layout and custom inset labels
37463 \end_layout
37464
37465 \begin_layout Description
37466
37467 \change_inserted -712698321 1607682565
37468 textlabel2 Color 2 of layout and custom inset labels
37469 \end_layout
37470
37471 \begin_layout Description
37472
37473 \change_inserted -712698321 1607682568
37474 textlabel3 Color 3 of layout and custom inset labels
37475 \change_unchanged
37476
37477 \end_layout
37478
37479 \begin_layout Description
37480 urllabel Label color for URL insets
37481 \end_layout
37482
37483 \begin_layout Description
37484 urltext Color for URL inset text
37485 \end_layout
37486
37487 \end_body
37488 \end_document