]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
UserGuide - document citation_search_view
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 615
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7 #0a0518
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \change_bars false
134 \postpone_fragile_content false
135 \html_math_output 0
136 \html_css_as_file 0
137 \html_be_strict true
138 \docbook_table_output 0
139 \docbook_mathml_prefix 1
140 \author -970929547 "Thibaut Cuvelier"
141 \author -712698321 "Jürgen Spitzmüller"
142 \author -584632292 "Richard Kimberly Heck"
143 \author -495245474 "Jean-Marc Lasgouttes"
144 \author 177693 "x"
145 \author 5863208 "ab"
146 \author 34634807 "Jean-Pierre"
147 \author 232239728 "Owner"
148 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
149 \author 1075283030 "Thibaut"
150 \end_header
151
152 \begin_body
153
154 \begin_layout Title
155 Customizing \SpecialChar LyX
156 :
157  Features for the Advanced User
158 \end_layout
159
160 \begin_layout Author
161 by the \SpecialChar LyX
162  Team
163 \begin_inset Foot
164 status collapsed
165
166 \begin_layout Plain Layout
167 If you have comments or error corrections,
168  please send them to the \SpecialChar LyX
169  Documentation mailing list,
170  
171 \begin_inset CommandInset href
172 LatexCommand href
173 target "lyx-docs@lists.lyx.org"
174 type "mailto:"
175 literal "false"
176
177 \end_inset
178
179 .
180  Include 
181 \begin_inset Quotes eld
182 \end_inset
183
184 [Customization]
185 \begin_inset Quotes erd
186 \end_inset
187
188  in the subject header,
189  and please cc the current maintainer of this file,
190  Richard 
191 \change_inserted 5863208 1604930692
192 Kimberly 
193 \change_unchanged
194 Heck <
195 \change_inserted 5863208 1604930729
196 rikiheck@lyx.org
197 \change_deleted 5863208 1604930668
198 rikiheck@lyx.org
199 \change_unchanged
200 >.
201 \end_layout
202
203 \end_inset
204
205
206 \begin_inset Newline newline
207 \end_inset
208
209
210 \begin_inset Newline newline
211 \end_inset
212
213 Version 2.4.x
214 \end_layout
215
216 \begin_layout Standard
217 \begin_inset CommandInset toc
218 LatexCommand tableofcontents
219
220 \end_inset
221
222
223 \end_layout
224
225 \begin_layout Standard
226 \begin_inset Note Note
227 status open
228
229 \begin_layout Plain Layout
230 Please use change tracking when modifying this document.
231  This makes it easier for our translators to recognize things that have been changed,
232  and it helps the maintainer keep up-to-date with what's been done.
233 \end_layout
234
235 \end_inset
236
237
238 \end_layout
239
240 \begin_layout Chapter
241 Introduction
242 \end_layout
243
244 \begin_layout Standard
245 This manual covers the customization features present in \SpecialChar LyX
246 .
247  In it,
248  we discuss issues like keyboard shortcuts,
249  screen previewing options,
250  printer options,
251  sending commands to \SpecialChar LyX
252  via the \SpecialChar LyX
253  Server,
254  internationalization,
255  installing new \SpecialChar LaTeX
256  classes and \SpecialChar LyX
257  layouts,
258  etc.
259  We can't possibly hope to touch on everything you can change—
260 our developers add new features faster than we can document them—
261 but we will explain the most common customizations and hopefully point you in the right direction for some of the more obscure ones.
262 \end_layout
263
264 \begin_layout Standard
265 \begin_inset Branch OutDated
266 inverted 0
267 status collapsed
268
269 \begin_layout Standard
270 Information from previous versions of this document that now seems to be outdated is contained in the OutDated branch of this document.
271  By default,
272  this information will not appear in the \SpecialChar LaTeX
273  output.
274 \end_layout
275
276 \end_inset
277
278
279 \end_layout
280
281 \begin_layout Chapter
282 \SpecialChar LyX
283  configuration files
284 \end_layout
285
286 \begin_layout Standard
287 This chapter aims to help you to find your way through the \SpecialChar LyX
288  configuration files.
289  Before continuing to read this chapter,
290  you should find out where your \SpecialChar LyX
291  library and user directories are by using 
292 \begin_inset Flex Noun
293 status collapsed
294
295 \begin_layout Plain Layout
296 Help\SpecialChar menuseparator
297 About
298 \begin_inset space ~
299 \end_inset
300
301 LyX
302 \end_layout
303
304 \end_inset
305
306 .
307  The library directory is the place where \SpecialChar LyX
308  places its system-wide configuration files;
309  the user directory is where you can place your modified versions.
310  We will call the former 
311 \begin_inset Flex Code
312 status collapsed
313
314 \begin_layout Plain Layout
315 LyXDir
316 \end_layout
317
318 \end_inset
319
320  and the latter 
321 \begin_inset Flex Noun
322 status collapsed
323
324 \begin_layout Plain Layout
325 UserDir
326 \end_layout
327
328 \end_inset
329
330  in the remainder of this document.
331  
332 \end_layout
333
334 \begin_layout Section
335 What's in 
336 \begin_inset Flex Code
337 status collapsed
338
339 \begin_layout Plain Layout
340 LyXDir
341 \end_layout
342
343 \end_inset
344
345 ?
346 \end_layout
347
348 \begin_layout Standard
349 \begin_inset Flex Code
350 status collapsed
351
352 \begin_layout Plain Layout
353 LyXDir
354 \end_layout
355
356 \end_inset
357
358  and its sub-directories contain a number of files 
359 \change_deleted 232239728 1604787780
360 and
361 \change_unchanged
362  that can be used to customize \SpecialChar LyX
363 's behavior.
364  You can change many of these files from within \SpecialChar LyX
365  itself through the 
366 \begin_inset Flex Noun
367 status collapsed
368
369 \begin_layout Plain Layout
370 Tools\SpecialChar menuseparator
371 Preferences
372 \end_layout
373
374 \end_inset
375
376  dialog.
377  Most customization that you will want to do in \SpecialChar LyX
378  is possible through this dialog.
379  However,
380  many other inner aspects of \SpecialChar LyX
381  can be customized by modifying the files in 
382 \begin_inset Flex Code
383 status collapsed
384
385 \begin_layout Plain Layout
386 LyXDir
387 \end_layout
388
389 \end_inset
390
391 .
392  These files fall in different categories,
393  described in the following subsections.
394 \end_layout
395
396 \begin_layout Subsection
397 Automatically generated files
398 \end_layout
399
400 \begin_layout Standard
401 The files found in 
402 \begin_inset Flex Noun
403 status collapsed
404
405 \begin_layout Plain Layout
406 UserDir
407 \end_layout
408
409 \end_inset
410
411  are generated when you configure \SpecialChar LyX
412 .
413  They contain various default values that are 
414 \change_inserted 5863208 1604919565
415 automatically detected during reconfiguration.
416 \change_deleted 232239728 1604788241
417 guessed by inspection
418 \change_unchanged
419  In general,
420  it is not a good idea to modify them,
421  since they might be overwritten at any time.
422 \end_layout
423
424 \begin_layout Labeling
425 \labelwidthstring 00.00.0000
426 \begin_inset Flex Code
427 status collapsed
428
429 \begin_layout Plain Layout
430 lyxrc.defaults
431 \end_layout
432
433 \end_inset
434
435  
436 \change_deleted 5863208 1604919950
437
438 \begin_inset Note Note
439 status collapsed
440
441 \begin_layout Plain Layout
442
443 \change_inserted 232239728 1604853928
444 I capitalized the first word in all of these lists.
445  To me it looks better but it really is a stylistic thing,
446  your call.
447  However if you are not going to capitalize them,
448  the english in some needs to be modified to make it read correctly as a sentence.
449 \change_unchanged
450
451 \end_layout
452
453 \end_inset
454
455
456 \change_deleted 232239728 1604853510
457 c
458 \change_inserted 232239728 1604853510
459 C
460 \change_unchanged
461 ontains defaults for various commands.
462 \end_layout
463
464 \begin_layout Labeling
465 \labelwidthstring 00.00.0000
466 \begin_inset Flex Code
467 status collapsed
468
469 \begin_layout Plain Layout
470 packages.lst
471 \end_layout
472
473 \end_inset
474
475  
476 \change_deleted 232239728 1604853512
477 c
478 \change_inserted 232239728 1604853512
479 C
480 \change_unchanged
481 ontains the list of packages that have been recognized by \SpecialChar LyX
482 .
483  It is currently unused by the \SpecialChar LyX
484  program itself,
485  but the information extracted,
486  and more,
487  is made available with 
488 \begin_inset Flex Noun
489 status collapsed
490
491 \begin_layout Plain Layout
492 Help\SpecialChar menuseparator
493 \SpecialChar LaTeX
494
495 \begin_inset space ~
496 \end_inset
497
498 Configuration
499 \end_layout
500
501 \end_inset
502
503 .
504 \end_layout
505
506 \begin_layout Labeling
507 \labelwidthstring 00.00.0000
508 \begin_inset Flex Code
509 status collapsed
510
511 \begin_layout Plain Layout
512 textclass.lst
513 \end_layout
514
515 \end_inset
516
517  
518 \change_deleted 232239728 1604853515
519 t
520 \change_inserted 232239728 1604853515
521 T
522 \change_unchanged
523 he list of text classes that have been found in your 
524 \begin_inset Flex Code
525 status collapsed
526
527 \begin_layout Plain Layout
528 layout/
529 \end_layout
530
531 \end_inset
532
533  directories,
534  along with the associated \SpecialChar LaTeX
535  document class and their description.
536 \end_layout
537
538 \begin_layout Labeling
539 \labelwidthstring 00.00.0000
540 \begin_inset Flex Code
541 status collapsed
542
543 \begin_layout Plain Layout
544 lyxmodules.lst
545 \end_layout
546
547 \end_inset
548
549  
550 \change_deleted 232239728 1604853518
551 t
552 \change_inserted 232239728 1604853518
553 T
554 \change_unchanged
555 he list of layout modules found in your 
556 \begin_inset Flex Code
557 status collapsed
558
559 \begin_layout Plain Layout
560 layout/
561 \end_layout
562
563 \end_inset
564
565  directories
566 \end_layout
567
568 \begin_layout Labeling
569 \labelwidthstring 00.00.0000
570 \begin_inset Flex Code
571 status open
572
573 \begin_layout Plain Layout
574 *files.lst
575 \end_layout
576
577 \end_inset
578
579  
580 \change_deleted 232239728 1604853523
581 l
582 \change_inserted 232239728 1604853523
583 L
584 \change_unchanged
585 ists of various sorts of \SpecialChar LaTeX
586 -related files found on your system
587 \end_layout
588
589 \begin_layout Labeling
590 \labelwidthstring 00.00.0000
591 \begin_inset Flex Code
592 status open
593
594 \begin_layout Plain Layout
595 doc/\SpecialChar LaTeX
596 Config.lyx
597 \end_layout
598
599 \end_inset
600
601  is automatically generated during configuration from the file 
602 \begin_inset Flex Code
603 status collapsed
604
605 \begin_layout Plain Layout
606 \SpecialChar LaTeX
607 Config.lyx.in
608 \end_layout
609
610 \end_inset
611
612 .
613  It contains information on your \SpecialChar LaTeX
614  configuration.
615 \end_layout
616
617 \begin_layout Subsection
618 Directories
619 \end_layout
620
621 \begin_layout Standard
622 The
623 \change_deleted 5863208 1604928729
624 se
625 \change_unchanged
626  
627 \change_inserted 5863208 1604928636
628 following 
629 \change_unchanged
630 directories 
631 \change_inserted 5863208 1604928661
632 in 
633 \change_unchanged
634
635 \begin_inset Flex Code
636 status collapsed
637
638 \begin_layout Plain Layout
639 LyXDir
640 \end_layout
641
642 \end_inset
643
644
645 \change_inserted 5863208 1604928662
646  can be
647 \change_deleted 5863208 1604928642
648 are
649 \change_unchanged
650  duplicated 
651 \change_deleted 5863208 1604928669
652 between 
653 \begin_inset Flex Code
654 status collapsed
655
656 \begin_layout Plain Layout
657 LyXDir
658 \end_layout
659
660 \end_inset
661
662  and
663 \change_inserted 5863208 1604928680
664 in
665 \change_unchanged
666  
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 UserDir
672 \end_layout
673
674 \end_inset
675
676 .
677  If a particular file
678 \change_deleted 232239728 1604794430
679 s
680 \change_unchanged
681  exists in both places,
682  the one in 
683 \begin_inset Flex Code
684 status collapsed
685
686 \begin_layout Plain Layout
687 UserDir
688 \end_layout
689
690 \end_inset
691
692  will be used.
693 \end_layout
694
695 \begin_layout Labeling
696 \labelwidthstring 00.00.0000
697 \begin_inset Flex Code
698 status collapsed
699
700 \begin_layout Plain Layout
701 bind/
702 \end_layout
703
704 \end_inset
705
706  
707 \change_deleted 232239728 1604794460
708 t
709 \change_inserted 232239728 1604794460
710 T
711 \change_unchanged
712 his directory contains files with the extension 
713 \begin_inset Flex Code
714 status collapsed
715
716 \begin_layout Plain Layout
717 .bind
718 \end_layout
719
720 \end_inset
721
722  that define the keybindings used in \SpecialChar LyX
723 .
724  If there exists an internationalized version of the bind file 
725 \change_inserted -712698321 1669371749
726 in a subdirectory 
727 \change_deleted -712698321 1669371727
728 named 
729 \begin_inset Flex Code
730 status collapsed
731
732 \begin_layout Plain Layout
733 $LANG_xxx.bind
734 \end_layout
735
736 \end_inset
737
738
739 \change_inserted -712698321 1669371728
740
741 \begin_inset Flex Code
742 status collapsed
743
744 \begin_layout Plain Layout
745
746 \change_inserted -712698321 1669371732
747 bind/xx
748 \change_unchanged
749
750 \end_layout
751
752 \end_inset
753
754  where 
755 \begin_inset Quotes eld
756 \end_inset
757
758 xx
759 \begin_inset Quotes erd
760 \end_inset
761
762  is the ISO language code
763 \change_unchanged
764 ,
765  that will be used first.
766 \end_layout
767
768 \begin_layout Labeling
769 \labelwidthstring 00.00.0000
770 \begin_inset Flex Code
771 status collapsed
772
773 \begin_layout Plain Layout
774 citeengines/
775 \end_layout
776
777 \end_inset
778
779  
780 \change_deleted 232239728 1604794478
781 c
782 \change_inserted 232239728 1604794478
783 C
784 \change_unchanged
785 ontains files with the extension 
786 \begin_inset Flex Code
787 status collapsed
788
789 \begin_layout Plain Layout
790 .citeengine
791 \end_layout
792
793 \end_inset
794
795  which define the diverse citation possibilities (natbib,
796  biblatex etc.).
797  See 
798 \begin_inset CommandInset ref
799 LatexCommand ref
800 reference "subsec:Cite-Engine-Files"
801 plural "false"
802 caps "false"
803 noprefix "false"
804 nolink "false"
805
806 \end_inset
807
808  for details.
809 \end_layout
810
811 \begin_layout Labeling
812 \labelwidthstring 00.00.0000
813 \begin_inset Flex Code
814 status collapsed
815
816 \begin_layout Plain Layout
817 clipart/
818 \end_layout
819
820 \end_inset
821
822  
823 \change_deleted 232239728 1604794483
824 c
825 \change_inserted 232239728 1604794486
826 C
827 \change_unchanged
828 ontains graphics files that can be included in documents.
829  
830 \end_layout
831
832 \begin_layout Labeling
833 \labelwidthstring 00.00.0000
834 \begin_inset Flex Code
835 status collapsed
836
837 \begin_layout Plain Layout
838 doc/
839 \end_layout
840
841 \end_inset
842
843  
844 \change_deleted 232239728 1604794492
845 c
846 \change_inserted 232239728 1604794492
847 C
848 \change_unchanged
849 ontains \SpecialChar LyX
850  documentation files (including the one you are currently reading).
851  The file 
852 \begin_inset Flex Code
853 status collapsed
854
855 \begin_layout Plain Layout
856
857 \change_deleted 232239728 1604794660
858 \SpecialChar LaTeX
859
860 \change_inserted 232239728 1604794661
861 LaTex
862 \change_unchanged
863 Config.lyx
864 \end_layout
865
866 \end_inset
867
868  deserves special attention,
869  as noted above.
870  The internationalized help docs are in subdirectories 
871 \begin_inset Flex Code
872 status collapsed
873
874 \begin_layout Plain Layout
875 doc/xx
876 \end_layout
877
878 \end_inset
879
880  where 
881 \begin_inset Quotes eld
882 \end_inset
883
884 xx
885 \begin_inset Quotes erd
886 \end_inset
887
888  is the ISO language code.
889  See 
890 \begin_inset CommandInset ref
891 LatexCommand ref
892 reference "cha:Internationalizing-LyX"
893 nolink "false"
894
895 \end_inset
896
897  for details.
898 \end_layout
899
900 \begin_layout Labeling
901 \labelwidthstring 00.00.0000
902 \begin_inset Flex Code
903 status collapsed
904
905 \begin_layout Plain Layout
906 examples/
907 \end_layout
908
909 \end_inset
910
911  
912 \change_deleted 232239728 1604794497
913 c
914 \change_inserted 232239728 1604794497
915 C
916 \change_unchanged
917 ontains example files that explain how to use some features.
918  In the file browser,
919  press the 
920 \begin_inset Flex Noun
921 status collapsed
922
923 \begin_layout Plain Layout
924 Examples
925 \end_layout
926
927 \end_inset
928
929  button to get there.
930 \end_layout
931
932 \begin_layout Labeling
933 \labelwidthstring 00.00.0000
934 \begin_inset Flex Code
935 status collapsed
936
937 \begin_layout Plain Layout
938 images/
939 \end_layout
940
941 \end_inset
942
943  
944 \change_deleted 232239728 1604794500
945 c
946 \change_inserted 232239728 1604794500
947 C
948 \change_unchanged
949 ontains image files that are used by the 
950 \begin_inset Flex Noun
951 status collapsed
952
953 \begin_layout Plain Layout
954 Document
955 \end_layout
956
957 \end_inset
958
959  dialog.
960  In addition,
961  it also contains the individual icons used in the toolbar and the banners that can be shown when \SpecialChar LyX
962  is launched.
963 \end_layout
964
965 \begin_layout Labeling
966 \labelwidthstring 00.00.0000
967 \begin_inset Flex Code
968 status collapsed
969
970 \begin_layout Plain Layout
971 kbd/
972 \end_layout
973
974 \end_inset
975
976  
977 \change_deleted 232239728 1604794505
978 c
979 \change_inserted 232239728 1604794505
980 C
981 \change_unchanged
982 ontains keyboard keymapping files.
983  See 
984 \begin_inset CommandInset ref
985 LatexCommand ref
986 reference "sec:International-Keymap-Stuff"
987 nolink "false"
988
989 \end_inset
990
991  for details.
992 \end_layout
993
994 \begin_layout Labeling
995 \labelwidthstring 00.00.0000
996 \begin_inset Flex Code
997 status collapsed
998
999 \begin_layout Plain Layout
1000 layouts/
1001 \end_layout
1002
1003 \end_inset
1004
1005  
1006 \change_deleted 232239728 1604794508
1007 c
1008 \change_inserted 232239728 1604794508
1009 C
1010 \change_unchanged
1011 ontains the text class and module files described in 
1012 \begin_inset CommandInset ref
1013 LatexCommand ref
1014 reference "cha:Installing-New-Document"
1015 nolink "false"
1016
1017 \end_inset
1018
1019 .
1020 \end_layout
1021
1022 \begin_layout Labeling
1023 \labelwidthstring 00.00.0000
1024 \begin_inset Flex Code
1025 status collapsed
1026
1027 \begin_layout Plain Layout
1028 lyx2lyx
1029 \end_layout
1030
1031 \end_inset
1032
1033  
1034 \change_deleted 232239728 1604794513
1035 c
1036 \change_inserted 232239728 1604794513
1037 C
1038 \change_unchanged
1039 ontains the 
1040 \begin_inset Flex Code
1041 status collapsed
1042
1043 \begin_layout Plain Layout
1044 lyx2lyx
1045 \end_layout
1046
1047 \end_inset
1048
1049  Python scripts used to convert between \SpecialChar LyX
1050  versions.
1051  These can be run from the command line if
1052 \change_deleted 232239728 1604794749
1053 ,
1054  say,
1055
1056 \change_unchanged
1057  you want to batch-convert files.
1058 \end_layout
1059
1060 \begin_layout Labeling
1061 \labelwidthstring 00.00.0000
1062 \begin_inset Flex Code
1063 status collapsed
1064
1065 \begin_layout Plain Layout
1066 scripts/
1067 \end_layout
1068
1069 \end_inset
1070
1071  
1072 \change_deleted 232239728 1604794516
1073 c
1074 \change_inserted 232239728 1604794516
1075 C
1076 \change_unchanged
1077 ontains some files that demonstrate the capabilities of the 
1078 \begin_inset Flex Noun
1079 status collapsed
1080
1081 \begin_layout Plain Layout
1082 External
1083 \begin_inset space ~
1084 \end_inset
1085
1086 Template
1087 \end_layout
1088
1089 \end_inset
1090
1091  feature.
1092  Also contains some scripts used by \SpecialChar LyX
1093  itself.
1094 \end_layout
1095
1096 \begin_layout Labeling
1097 \labelwidthstring 00.00.0000
1098 \begin_inset Flex Code
1099 status collapsed
1100
1101 \begin_layout Plain Layout
1102 templates/
1103 \end_layout
1104
1105 \end_inset
1106
1107  
1108 \change_deleted 232239728 1604794520
1109 c
1110 \change_inserted 232239728 1604794520
1111 C
1112 \change_unchanged
1113 ontains the standard \SpecialChar LyX
1114  template files described in 
1115 \begin_inset CommandInset ref
1116 LatexCommand ref
1117 reference "subsec:Creating-Templates"
1118 nolink "false"
1119
1120 \end_inset
1121
1122 .
1123 \end_layout
1124
1125 \begin_layout Labeling
1126 \labelwidthstring 00.00.0000
1127 \begin_inset Flex Code
1128 status collapsed
1129
1130 \begin_layout Plain Layout
1131 ui/
1132 \end_layout
1133
1134 \end_inset
1135
1136  
1137 \change_deleted 232239728 1604794524
1138 c
1139 \change_inserted 232239728 1604794524
1140 C
1141 \change_unchanged
1142 ontains files with the extension 
1143 \begin_inset Flex Code
1144 status collapsed
1145
1146 \begin_layout Plain Layout
1147 .ui
1148 \end_layout
1149
1150 \end_inset
1151
1152  that define the user interface to \SpecialChar LyX
1153 .
1154  That is,
1155  the files define which items appear in which menus and the items appearing on the toolbar.
1156 \end_layout
1157
1158 \begin_layout Labeling
1159 \labelwidthstring 00.00.0000
1160 \begin_inset Flex Code
1161 status collapsed
1162
1163 \begin_layout Plain Layout
1164 xtemplates/
1165 \end_layout
1166
1167 \end_inset
1168
1169  
1170 \change_deleted 232239728 1604794528
1171 c
1172 \change_inserted 232239728 1604794528
1173 C
1174 \change_unchanged
1175 ontains files with the extension 
1176 \begin_inset Flex Code
1177 status collapsed
1178
1179 \begin_layout Plain Layout
1180 .xtemplate
1181 \end_layout
1182
1183 \end_inset
1184
1185  which define the templates for the insertion of external material to a \SpecialChar LyX
1186  document;
1187  see 
1188 \begin_inset CommandInset ref
1189 LatexCommand ref
1190 reference "chap:Including-External-Material"
1191 nolink "false"
1192
1193 \end_inset
1194
1195 .
1196 \end_layout
1197
1198 \begin_layout Subsection
1199 Files you don't want to modify
1200 \end_layout
1201
1202 \begin_layout Standard
1203 These files are used internally by \SpecialChar LyX
1204  and you generally do not need to modify them unless you are a developer.
1205 \end_layout
1206
1207 \begin_layout Labeling
1208 \labelwidthstring 00.00.0000
1209 \begin_inset Flex Code
1210 status collapsed
1211
1212 \begin_layout Plain Layout
1213 CREDITS
1214 \end_layout
1215
1216 \end_inset
1217
1218  
1219 \change_deleted 232239728 1604797616
1220 t
1221 \change_inserted 232239728 1604797616
1222 T
1223 \change_unchanged
1224 his file contains the list of \SpecialChar LyX
1225  developers.
1226  The contents are displayed with the menu entry 
1227 \begin_inset Flex Noun
1228 status collapsed
1229
1230 \begin_layout Plain Layout
1231 Help\SpecialChar menuseparator
1232 About
1233 \begin_inset space ~
1234 \end_inset
1235
1236 LyX
1237 \end_layout
1238
1239 \end_inset
1240
1241 .
1242 \end_layout
1243
1244 \begin_layout Labeling
1245 \labelwidthstring 00.00.0000
1246 \begin_inset Flex Code
1247 status collapsed
1248
1249 \begin_layout Plain Layout
1250 chkconfig.ltx
1251 \end_layout
1252
1253 \end_inset
1254
1255  
1256 \change_deleted 232239728 1604797620
1257 t
1258 \change_inserted 232239728 1604797620
1259 T
1260 \change_unchanged
1261 his is a \SpecialChar LaTeX
1262  script used during the configuration process.
1263  Do not run directly.
1264 \end_layout
1265
1266 \begin_layout Labeling
1267 \labelwidthstring 00.00.0000
1268 \begin_inset Flex Code
1269 status collapsed
1270
1271 \begin_layout Plain Layout
1272 configure.py
1273 \end_layout
1274
1275 \end_inset
1276
1277  
1278 \change_deleted 232239728 1604797624
1279 t
1280 \change_inserted 232239728 1604797624
1281 T
1282 \change_unchanged
1283 his is a Python script that is used to re-configure \SpecialChar LyX
1284 .
1285  It creates configuration files in the directory it was run from.
1286 \end_layout
1287
1288 \begin_layout Subsection
1289 Other files needing a line or two
1290 \end_layout
1291
1292 \begin_layout Labeling
1293 \labelwidthstring 00.00.0000
1294 \begin_inset Flex Code
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 encodings
1299 \end_layout
1300
1301 \end_inset
1302
1303  
1304 \change_deleted 232239728 1604797580
1305 t
1306 \change_inserted 232239728 1604797580
1307 T
1308 \change_unchanged
1309 his contains tables describing how different character encodings can be mapped to Unicode
1310 \end_layout
1311
1312 \begin_layout Labeling
1313 \labelwidthstring 00.00.0000
1314 \begin_inset Flex Code
1315 status collapsed
1316
1317 \begin_layout Plain Layout
1318 languages
1319 \end_layout
1320
1321 \end_inset
1322
1323  
1324 \change_deleted 232239728 1604797584
1325 t
1326 \change_inserted 232239728 1604797584
1327 T
1328 \change_unchanged
1329 his file contains a list of all the languages currently supported by \SpecialChar LyX
1330 .
1331 \end_layout
1332
1333 \begin_layout Labeling
1334 \labelwidthstring 00.00.0000
1335 \begin_inset Flex Code
1336 status collapsed
1337
1338 \begin_layout Plain Layout
1339 latexfonts
1340 \end_layout
1341
1342 \end_inset
1343
1344  
1345 \change_deleted 232239728 1604797587
1346 c
1347 \change_inserted 232239728 1604797587
1348 C
1349 \change_unchanged
1350 ontains information about the supported fonts.
1351 \end_layout
1352
1353 \begin_layout Labeling
1354 \labelwidthstring 00.00.0000
1355 \begin_inset Flex Code
1356 status collapsed
1357
1358 \begin_layout Plain Layout
1359 layouttranslations
1360 \end_layout
1361
1362 \end_inset
1363
1364  
1365 \change_deleted 232239728 1604797591
1366 t
1367 \change_inserted 232239728 1604797591
1368 T
1369 \change_unchanged
1370 his file contains translations for internationalized paragraph styles (see 
1371 \begin_inset CommandInset ref
1372 LatexCommand ref
1373 reference "subsec:I18n"
1374 nolink "false"
1375
1376 \end_inset
1377
1378 ).
1379 \end_layout
1380
1381 \begin_layout Labeling
1382 \labelwidthstring 00.00.0000
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387 unicodesymbols
1388 \end_layout
1389
1390 \end_inset
1391
1392  
1393 \change_deleted 232239728 1604797594
1394 t
1395 \change_inserted 232239728 1604797594
1396 T
1397 \change_unchanged
1398 his file contains information about Unicode-encoded glyphs and the way they are supported by \SpecialChar LyX
1399  via \SpecialChar LaTeX
1400 .
1401 \end_layout
1402
1403 \begin_layout Section
1404 Your local configuration directory
1405 \end_layout
1406
1407 \begin_layout Standard
1408 Even if you are using \SpecialChar LyX
1409  as an unprivileged user,
1410  you might want to change \SpecialChar LyX
1411  configuration for your own use.
1412  The 
1413 \begin_inset Flex Code
1414 status collapsed
1415
1416 \begin_layout Plain Layout
1417 UserDir
1418 \end_layout
1419
1420 \end_inset
1421
1422  directory contains all your personal configuration files.
1423  This is the directory described as 
1424 \begin_inset Quotes eld
1425 \end_inset
1426
1427 user directory
1428 \begin_inset Quotes erd
1429 \end_inset
1430
1431  in 
1432 \begin_inset Flex Noun
1433 status collapsed
1434
1435 \begin_layout Plain Layout
1436 Help\SpecialChar menuseparator
1437 About
1438 \begin_inset space ~
1439 \end_inset
1440
1441 LyX
1442 \end_layout
1443
1444 \end_inset
1445
1446 .
1447  This directory is used as a mirror of 
1448 \begin_inset Flex Code
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 LyXDir
1453 \end_layout
1454
1455 \end_inset
1456
1457 ,
1458  which means that every file in 
1459 \begin_inset Flex Code
1460 status collapsed
1461
1462 \begin_layout Plain Layout
1463 UserDir
1464 \end_layout
1465
1466 \end_inset
1467
1468  is a replacement for the corresponding file in 
1469 \begin_inset Flex Code
1470 status collapsed
1471
1472 \begin_layout Plain Layout
1473 LyXDir
1474 \end_layout
1475
1476 \end_inset
1477
1478 .
1479  Any configuration file described in the above sections can be placed either in the system-wide directory,
1480  in which case it will affect all users,
1481  or in your local directory for your own use.
1482 \end_layout
1483
1484 \begin_layout Standard
1485 To make things clearer,
1486  let's provide a few examples:
1487 \end_layout
1488
1489 \begin_layout Itemize
1490 The preferences set in the 
1491 \begin_inset Flex Noun
1492 status collapsed
1493
1494 \begin_layout Plain Layout
1495 Tools\SpecialChar menuseparator
1496 Preferences
1497 \end_layout
1498
1499 \end_inset
1500
1501  dialog are saved to a file 
1502 \begin_inset Flex Code
1503 status collapsed
1504
1505 \begin_layout Plain Layout
1506 preferences
1507 \end_layout
1508
1509 \end_inset
1510
1511  in 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 UserDir
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522 \end_layout
1523
1524 \begin_layout Itemize
1525 When you reconfigure using 
1526 \begin_inset Flex Noun
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530 Tools\SpecialChar menuseparator
1531 Reconfigure
1532 \end_layout
1533
1534 \end_inset
1535
1536 ,
1537  \SpecialChar LyX
1538  runs the 
1539 \begin_inset Flex Code
1540 status collapsed
1541
1542 \begin_layout Plain Layout
1543 configure.py
1544 \end_layout
1545
1546 \end_inset
1547
1548  script,
1549  and the resulting files are written in your local configuration directory.
1550  This means that any additional text class file that you might have added in 
1551 \begin_inset Flex Code
1552 status collapsed
1553
1554 \begin_layout Plain Layout
1555 UserDir/layouts
1556 \end_layout
1557
1558 \end_inset
1559
1560  will be added to the list of classes in the 
1561 \begin_inset Flex Noun
1562 status collapsed
1563
1564 \begin_layout Plain Layout
1565 Document\SpecialChar menuseparator
1566 Settings
1567 \end_layout
1568
1569 \end_inset
1570
1571  dialog.
1572 \end_layout
1573
1574 \begin_layout Itemize
1575 If you get some updated documentation from
1576 \change_inserted 232239728 1604798171
1577  a
1578 \change_unchanged
1579  \SpecialChar LyX
1580  ftp site and cannot install it because you do not have sysadmin rights on your system,
1581  you can just copy the files 
1582 \change_deleted 232239728 1604798193
1583 in
1584 \change_inserted 232239728 1604798193
1585 to
1586 \change_unchanged
1587  
1588 \begin_inset Flex Code
1589 status collapsed
1590
1591 \begin_layout Plain Layout
1592 UserDir/doc/
1593 \end_layout
1594
1595 \end_inset
1596
1597  and the items in the 
1598 \begin_inset Flex Noun
1599 status collapsed
1600
1601 \begin_layout Plain Layout
1602 Help
1603 \end_layout
1604
1605 \end_inset
1606
1607  menu will open them!
1608 \end_layout
1609
1610 \begin_layout Section
1611 Running \SpecialChar LyX
1612  with multiple configurations
1613 \end_layout
1614
1615 \begin_layout Standard
1616 The configuration freedom of the local configuration directory may not suffice if you want to have more than one configuration at your disposal.
1617  For example,
1618  you may want to 
1619 \change_deleted 232239728 1604798238
1620 be 
1621 \change_unchanged
1622 use different key bindings or printer settings at different times.
1623  You can achieve this by having several such directories.
1624  You then specify which directory to use at run-time.
1625 \end_layout
1626
1627 \begin_layout Standard
1628 Invoking \SpecialChar LyX
1629  with the command line switch 
1630 \begin_inset Flex Code
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 -userdir
1635 \end_layout
1636
1637 \end_inset
1638
1639  
1640 \emph on
1641 <some directory>
1642 \emph default
1643  instructs the program to read the configuration from that directory,
1644  and not from the default directory.
1645  (You can determine the default directory by running \SpecialChar LyX
1646  without the 
1647 \begin_inset Flex Code
1648 status collapsed
1649
1650 \begin_layout Plain Layout
1651 -userdir
1652 \end_layout
1653
1654 \end_inset
1655
1656  switch.) If the specified directory does not exist,
1657  \SpecialChar LyX
1658  offers to create it for you,
1659  just like it does for the default directory 
1660 \change_deleted 232239728 1604798318
1661 on
1662 \change_unchanged
1663  the first time you run the program.
1664  You can modify the configuration options in this additional user directory exactly as you would for the default directory.
1665  These directories are completely independent (but read on).
1666  Note that setting the environment variable 
1667 \begin_inset Flex Code
1668 status collapsed
1669
1670 \begin_layout Plain Layout
1671 LYX_USERDIR_24x
1672 \end_layout
1673
1674 \end_inset
1675
1676  to some value has exactly the same effect.
1677 \end_layout
1678
1679 \begin_layout Standard
1680 Having several configurations also requires more maintenance:
1681  if you want to add a new layout to 
1682 \begin_inset Flex Code
1683 status collapsed
1684
1685 \begin_layout Plain Layout
1686 NewUserDir/layouts
1687 \end_layout
1688
1689 \end_inset
1690
1691  which you want available from all your configurations,
1692  you must add it to each directory separately.
1693  You can avoid this with the following trick:
1694  after \SpecialChar LyX
1695  creates the additional directory,
1696  most of the subdirectories (see above) are empty.
1697  If you want the new configuration to mirror an existing one,
1698  replace the empty subdirectory with a symbolic link to the matching subdirectory in the existing configuration.
1699  Take care with the 
1700 \begin_inset Flex Code
1701 status collapsed
1702
1703 \begin_layout Plain Layout
1704 doc/
1705 \end_layout
1706
1707 \end_inset
1708
1709  subdirectory,
1710  however,
1711  since it contains a file written by the configuration script (also accessible through 
1712 \begin_inset Flex Noun
1713 status collapsed
1714
1715 \begin_layout Plain Layout
1716 Tools\SpecialChar menuseparator
1717 Reconfigure
1718 \end_layout
1719
1720 \end_inset
1721
1722 ) which is configuration
1723 \change_deleted 232239728 1604798083
1724 -
1725 \change_inserted 232239728 1604798100
1726  
1727 \change_unchanged
1728 specific.
1729 \end_layout
1730
1731 \begin_layout Chapter
1732 The Preferences dialog
1733 \end_layout
1734
1735 \begin_layout Standard
1736 All options of the preferences dialog are described in the Appendix 
1737 \emph on
1738 The Preferences Dialog
1739 \emph default
1740  in the 
1741 \emph on
1742 User's Guide
1743 \emph default
1744 .
1745  For some options you might find here more details.
1746 \end_layout
1747
1748 \begin_layout Section
1749 Formats
1750 \begin_inset CommandInset label
1751 LatexCommand label
1752 name "sec:Formats"
1753
1754 \end_inset
1755
1756
1757 \end_layout
1758
1759 \begin_layout Standard
1760 The first step is to define your file formats if they are not already defined.
1761  To do so,
1762  open the 
1763 \begin_inset Flex Noun
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 Tools\SpecialChar menuseparator
1768 Preferences
1769 \end_layout
1770
1771 \end_inset
1772
1773  dialog.
1774  Under 
1775 \begin_inset Flex Noun
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779 File Handling\SpecialChar menuseparator
1780 File formats
1781 \end_layout
1782
1783 \end_inset
1784
1785  press the 
1786 \begin_inset Flex Noun
1787 status collapsed
1788
1789 \begin_layout Plain Layout
1790 New
1791 \end_layout
1792
1793 \end_inset
1794
1795  button to define your new format.
1796  The 
1797 \begin_inset Flex Noun
1798 status collapsed
1799
1800 \begin_layout Plain Layout
1801 Format
1802 \end_layout
1803
1804 \end_inset
1805
1806  field contains the name used to identify the format in the GUI.
1807  The 
1808 \begin_inset Flex Noun
1809 status collapsed
1810
1811 \begin_layout Plain Layout
1812 Short Name
1813 \end_layout
1814
1815 \end_inset
1816
1817  is used to identify the format internally.
1818  You will also need to enter a file extension.
1819  These are all required.
1820  The optional 
1821 \begin_inset Flex Noun
1822 status collapsed
1823
1824 \begin_layout Plain Layout
1825 Shortcut
1826 \end_layout
1827
1828 \end_inset
1829
1830  field is used to provide a keyboard shortcut on the menus.
1831  (For example,
1832  pressing 
1833 \begin_inset Flex Noun
1834 status collapsed
1835
1836 \begin_layout Plain Layout
1837 Ctrl+D
1838 \end_layout
1839
1840 \end_inset
1841
1842  will 
1843 \begin_inset Flex Noun
1844 status collapsed
1845
1846 \begin_layout Plain Layout
1847 Document\SpecialChar menuseparator
1848 View (Other Formats)\SpecialChar menuseparator
1849 DVI
1850 \end_layout
1851
1852 \end_inset
1853
1854 .) 
1855 \end_layout
1856
1857 \begin_layout Standard
1858 A Format can have a 
1859 \begin_inset Flex Noun
1860 status collapsed
1861
1862 \begin_layout Plain Layout
1863 Viewer
1864 \end_layout
1865
1866 \end_inset
1867
1868  and an 
1869 \begin_inset Flex Noun
1870 status collapsed
1871
1872 \begin_layout Plain Layout
1873 Editor
1874 \end_layout
1875
1876 \end_inset
1877
1878  associated with it.
1879  For example,
1880  you might want to use 
1881 \begin_inset Flex Noun
1882 status collapsed
1883
1884 \begin_layout Plain Layout
1885 Ghostview
1886 \end_layout
1887
1888 \end_inset
1889
1890  to view PostScript files.
1891  You can enter the command needed to start the program in the corresponding fields.
1892  In defining this command,
1893  you can use the four variables listed in the next section.
1894  The viewer is launched when you view an image in \SpecialChar LyX
1895  or use the 
1896 \begin_inset Flex Noun
1897 status collapsed
1898
1899 \begin_layout Plain Layout
1900 Document\SpecialChar menuseparator
1901 View
1902 \end_layout
1903
1904 \end_inset
1905
1906  menu.
1907  The editor is for example launched when you right-click on an image and choose 
1908 \begin_inset Flex Noun
1909 status collapsed
1910
1911 \begin_layout Plain Layout
1912 Edit externally
1913 \end_layout
1914
1915 \end_inset
1916
1917  in the appearing context menu.
1918 \end_layout
1919
1920 \begin_layout Standard
1921 The 
1922 \begin_inset Flex Noun
1923 status collapsed
1924
1925 \begin_layout Plain Layout
1926 MIME
1927 \end_layout
1928
1929 \end_inset
1930
1931  type of a format is optional,
1932  but if it is specified,
1933  it must be unique across all formats.
1934  It is used to detect files of this format from the file contents.
1935  For some important file formats there is no MIME type officially registered with the 
1936 \begin_inset CommandInset href
1937 LatexCommand href
1938 name "IANA"
1939 target "http://www.iana.org/assignments/media-types/"
1940 literal "false"
1941
1942 \end_inset
1943
1944 .
1945  Therefore \SpecialChar LyX
1946  uses the extended list of MIME types as specified by 
1947 \begin_inset CommandInset href
1948 LatexCommand href
1949 name "freedesktop.org"
1950 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1951 literal "false"
1952
1953 \end_inset
1954
1955 .
1956 \end_layout
1957
1958 \begin_layout Standard
1959 The 
1960 \begin_inset Flex Noun
1961 status collapsed
1962
1963 \begin_layout Plain Layout
1964 Document format
1965 \end_layout
1966
1967 \end_inset
1968
1969  option tells \SpecialChar LyX
1970  that a format is suitable for document export.
1971  If this is set and if a suitable conversion route exists (see 
1972 \begin_inset CommandInset ref
1973 LatexCommand ref
1974 reference "sec:Converters"
1975 nolink "false"
1976
1977 \end_inset
1978
1979 ),
1980  the format will appear in the 
1981 \begin_inset Flex Noun
1982 status collapsed
1983
1984 \begin_layout Plain Layout
1985 File\SpecialChar menuseparator
1986 Export
1987 \end_layout
1988
1989 \end_inset
1990
1991  menu.
1992  The format will also appear in the 
1993 \begin_inset Flex Noun
1994 status collapsed
1995
1996 \begin_layout Plain Layout
1997 Document\SpecialChar menuseparator
1998 View
1999 \end_layout
2000
2001 \end_inset
2002
2003  menu if a viewer is specified for the format.
2004  Pure image formats,
2005  such as 
2006 \begin_inset Flex Code
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010 png
2011 \end_layout
2012
2013 \end_inset
2014
2015 ,
2016  should not use this option.
2017  Formats that can both represent vector graphics and documents like 
2018 \begin_inset Flex Code
2019 status collapsed
2020
2021 \begin_layout Plain Layout
2022 pdf
2023 \end_layout
2024
2025 \end_inset
2026
2027  should use it.
2028 \end_layout
2029
2030 \begin_layout Standard
2031 The option 
2032 \begin_inset Flex Noun
2033 status collapsed
2034
2035 \begin_layout Plain Layout
2036 Vector graphics format
2037 \end_layout
2038
2039 \end_inset
2040
2041  tells \SpecialChar LyX
2042  that a format can contain vector graphics.
2043  This information is used to determine the target format of included graphics for 
2044 \begin_inset Flex Noun
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048 pdflatex
2049 \end_layout
2050
2051 \end_inset
2052
2053  export.
2054  Included graphics may need to be converted to either 
2055 \begin_inset Flex Noun
2056 status collapsed
2057
2058 \begin_layout Plain Layout
2059 pdf
2060 \end_layout
2061
2062 \end_inset
2063
2064 ,
2065  
2066 \begin_inset Flex Noun
2067 status collapsed
2068
2069 \begin_layout Plain Layout
2070 png
2071 \end_layout
2072
2073 \end_inset
2074
2075 ,
2076  or 
2077 \begin_inset Flex Noun
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 jpg
2082 \end_layout
2083
2084 \end_inset
2085
2086 ,
2087  since 
2088 \begin_inset Flex Noun
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092 pdflatex
2093 \end_layout
2094
2095 \end_inset
2096
2097  cannot handle other image formats.
2098  If an included graphic is not already in 
2099 \begin_inset Flex Noun
2100 status collapsed
2101
2102 \begin_layout Plain Layout
2103 pdf
2104 \end_layout
2105
2106 \end_inset
2107
2108 ,
2109  
2110 \begin_inset Flex Noun
2111 status collapsed
2112
2113 \begin_layout Plain Layout
2114 png
2115 \end_layout
2116
2117 \end_inset
2118
2119 ,
2120  or 
2121 \begin_inset Flex Noun
2122 status collapsed
2123
2124 \begin_layout Plain Layout
2125 jpg
2126 \end_layout
2127
2128 \end_inset
2129
2130  format,
2131  it is converted to 
2132 \begin_inset Flex Noun
2133 status collapsed
2134
2135 \begin_layout Plain Layout
2136 pdf
2137 \end_layout
2138
2139 \end_inset
2140
2141  if the vector format option is set,
2142  and otherwise to 
2143 \begin_inset Flex Noun
2144 status collapsed
2145
2146 \begin_layout Plain Layout
2147 png
2148 \end_layout
2149
2150 \end_inset
2151
2152 .
2153 \end_layout
2154
2155 \begin_layout Section
2156 Copiers
2157 \end_layout
2158
2159 \begin_layout Standard
2160 Since all conversions from one format to another take place in \SpecialChar LyX
2161 's temporary directory,
2162  it is sometimes necessary to modify a file before copying it to the temporary directory in order that the conversion may be performed.
2163 \begin_inset Foot
2164 status collapsed
2165
2166 \begin_layout Plain Layout
2167 For example,
2168  the file may refer to other files—
2169 images,
2170  for example—
2171 using relative file names,
2172  and these may become invalid when the file is copied to the temporary directory.
2173 \end_layout
2174
2175 \end_inset
2176
2177  This is done by a Copier:
2178  It copies a file to (or from) the temporary directory and may modify it in the process.
2179 \end_layout
2180
2181 \begin_layout Standard
2182 The definitions of the copiers may use eight variables:
2183 \end_layout
2184
2185 \begin_layout Labeling
2186 \labelwidthstring 00.00.0000
2187 \begin_inset Flex Code
2188 status collapsed
2189
2190 \begin_layout Plain Layout
2191 $$s
2192 \end_layout
2193
2194 \end_inset
2195
2196  The \SpecialChar LyX
2197  system directory (e.
2198 \begin_inset space \thinspace{}
2199 \end_inset
2200
2201 g.
2202 \begin_inset space \space{}
2203 \end_inset
2204
2205
2206 \begin_inset Flex Noun
2207 status collapsed
2208
2209 \begin_layout Plain Layout
2210 /usr/share/lyx
2211 \end_layout
2212
2213 \end_inset
2214
2215 ).
2216 \end_layout
2217
2218 \begin_layout Labeling
2219 \labelwidthstring 00.00.0000
2220 \begin_inset Flex Code
2221 status collapsed
2222
2223 \begin_layout Plain Layout
2224 $$i
2225 \end_layout
2226
2227 \end_inset
2228
2229  The input file
2230 \end_layout
2231
2232 \begin_layout Labeling
2233 \labelwidthstring 00.00.0000
2234 \begin_inset Flex Code
2235 status collapsed
2236
2237 \begin_layout Plain Layout
2238 $$o
2239 \end_layout
2240
2241 \end_inset
2242
2243  The output file
2244 \end_layout
2245
2246 \begin_layout Labeling
2247 \labelwidthstring 00.00.0000
2248 \begin_inset Flex Code
2249 status collapsed
2250
2251 \begin_layout Plain Layout
2252 $$b
2253 \end_layout
2254
2255 \end_inset
2256
2257  The base name (without filename extension) in the \SpecialChar LyX
2258  temporary directory
2259 \end_layout
2260
2261 \begin_layout Labeling
2262 \labelwidthstring 00.00.0000
2263 \begin_inset Flex Code
2264 status collapsed
2265
2266 \begin_layout Plain Layout
2267 $$p
2268 \end_layout
2269
2270 \end_inset
2271
2272  The full directory path of the \SpecialChar LyX
2273  temporary directory
2274 \end_layout
2275
2276 \begin_layout Labeling
2277 \labelwidthstring 00.00.0000
2278 \begin_inset Flex Code
2279 status collapsed
2280
2281 \begin_layout Plain Layout
2282 $$r
2283 \end_layout
2284
2285 \end_inset
2286
2287  The full pathname to the original \SpecialChar LyX
2288  file being processed
2289 \end_layout
2290
2291 \begin_layout Labeling
2292 \labelwidthstring 00.00.0000
2293 \begin_inset Flex Code
2294 status collapsed
2295
2296 \begin_layout Plain Layout
2297 $$f
2298 \end_layout
2299
2300 \end_inset
2301
2302  The filename (without any directory path) of the \SpecialChar LyX
2303  file.
2304 \end_layout
2305
2306 \begin_layout Labeling
2307 \labelwidthstring 00.00.0000
2308 \begin_inset Flex Code
2309 status collapsed
2310
2311 \begin_layout Plain Layout
2312 $$l
2313 \end_layout
2314
2315 \end_inset
2316
2317  The `\SpecialChar LaTeX
2318  name'
2319 \end_layout
2320
2321 \begin_layout Standard
2322 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2323 's 
2324 \series bold
2325
2326 \backslash
2327 include
2328 \series default
2329  command.
2330  It is relevant only when exporting files suitable for such inclusion.
2331 \end_layout
2332
2333 \begin_layout Standard
2334 Copiers can be used to do almost anything with output files.
2335  For example,
2336  suppose you want generated pdf files to be copied to a special directory,
2337  
2338 \begin_inset Flex Code
2339 status collapsed
2340
2341 \begin_layout Plain Layout
2342 /home/you/pdf/
2343 \end_layout
2344
2345 \end_inset
2346
2347 .
2348  Then you could write a shell script such as this one:
2349 \end_layout
2350
2351 \begin_layout Standard
2352 \begin_inset listings
2353 inline false
2354 status open
2355
2356 \begin_layout Plain Layout
2357
2358 #!/bin/bash
2359 \end_layout
2360
2361 \begin_layout Plain Layout
2362
2363 FROMFILE=$1
2364 \end_layout
2365
2366 \begin_layout Plain Layout
2367
2368 TOFILE=`basename $2`
2369 \end_layout
2370
2371 \begin_layout Plain Layout
2372
2373 cp $FROMFILE /home/you/pdf/$TOFILE
2374 \end_layout
2375
2376 \end_inset
2377
2378 Save it in your local \SpecialChar LyX
2379  directory—
2380 say,
2381  
2382 \begin_inset Flex Code
2383 status collapsed
2384
2385 \begin_layout Plain Layout
2386 /home/you/.lyx/scripts/pdfcopier.sh
2387 \end_layout
2388
2389 \end_inset
2390
2391
2392 and make it executable,
2393  if you need to do so on your platform.
2394  Then,
2395  in the 
2396 \begin_inset Flex Noun
2397 status collapsed
2398
2399 \begin_layout Plain Layout
2400 Tools\SpecialChar menuseparator
2401 Preferences
2402 \end_layout
2403
2404 \end_inset
2405
2406  dialog,
2407  select under 
2408 \begin_inset Flex Noun
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412 File Handling\SpecialChar menuseparator
2413 File formats
2414 \end_layout
2415
2416 \end_inset
2417
2418  the 
2419 \begin_inset Flex Noun
2420 status collapsed
2421
2422 \begin_layout Plain Layout
2423 PDF(pdflatex)
2424 \end_layout
2425
2426 \end_inset
2427
2428  format—
2429 or one of the other pdf formats—
2430 and enter 
2431 \begin_inset Flex Code
2432 status collapsed
2433
2434 \begin_layout Plain Layout
2435 pdfcopier.sh $$i $$o
2436 \end_layout
2437
2438 \end_inset
2439
2440  into the 
2441 \begin_inset Flex Noun
2442 status collapsed
2443
2444 \begin_layout Plain Layout
2445 Copier
2446 \end_layout
2447
2448 \end_inset
2449
2450  field.
2451  
2452 \end_layout
2453
2454 \begin_layout Standard
2455 Copiers are used by \SpecialChar LyX
2456  in various of its own conversions.
2457  For example,
2458  if appropriate programs are found,
2459  \SpecialChar LyX
2460  will automatically install copiers for the 
2461 \begin_inset Flex Noun
2462 status collapsed
2463
2464 \begin_layout Plain Layout
2465 HTML
2466 \end_layout
2467
2468 \end_inset
2469
2470  and 
2471 \begin_inset Flex Noun
2472 status collapsed
2473
2474 \begin_layout Plain Layout
2475 HTML
2476 \begin_inset space ~
2477 \end_inset
2478
2479 (MS Word)
2480 \end_layout
2481
2482 \end_inset
2483
2484  formats.
2485  When these formats are exported,
2486  the copier sees that not just the main HTML file but various associated files (style files,
2487  images,
2488  etc.) are also copied.
2489  All these files are written to a subdirectory of the directory in which the original \SpecialChar LyX
2490  file was found.
2491 \begin_inset Foot
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 This copier can be customized.
2496  The optional 
2497 \begin_inset Quotes eld
2498 \end_inset
2499
2500 -e
2501 \begin_inset Quotes erd
2502 \end_inset
2503
2504  argument takes a comma-separated list of extensions to be copied;
2505  if it is omitted,
2506  all files will be copied.
2507  The 
2508 \begin_inset Quotes eld
2509 \end_inset
2510
2511 -t
2512 \begin_inset Quotes erd
2513 \end_inset
2514
2515  argument determines the extension added to the generated directory.
2516  By default,
2517  it is 
2518 \begin_inset Quotes eld
2519 \end_inset
2520
2521
2522 \begin_inset Flex Noun
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526 LyXconv
2527 \end_layout
2528
2529 \end_inset
2530
2531
2532 \begin_inset Quotes erd
2533 \end_inset
2534
2535 ,
2536  so HTML generated from 
2537 \begin_inset Flex Noun
2538 status collapsed
2539
2540 \begin_layout Plain Layout
2541 /path/to/filename.lyx
2542 \end_layout
2543
2544 \end_inset
2545
2546  will end up in 
2547 \begin_inset Flex Noun
2548 status collapsed
2549
2550 \begin_layout Plain Layout
2551 /path/to/filename.html.LyXconv
2552 \end_layout
2553
2554 \end_inset
2555
2556 .
2557  
2558 \end_layout
2559
2560 \end_inset
2561
2562
2563 \end_layout
2564
2565 \begin_layout Section
2566 Converters
2567 \begin_inset CommandInset label
2568 LatexCommand label
2569 name "sec:Converters"
2570
2571 \end_inset
2572
2573
2574 \end_layout
2575
2576 \begin_layout Standard
2577 You can define your own Converters to convert files between different formats.
2578  This is done in the 
2579 \begin_inset Flex Noun
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 Tools\SpecialChar menuseparator
2584 Preferences\SpecialChar menuseparator
2585 File Handling\SpecialChar menuseparator
2586 Converters
2587 \end_layout
2588
2589 \end_inset
2590
2591  dialog.
2592 \end_layout
2593
2594 \begin_layout Standard
2595 To define a new converter,
2596  select the 
2597 \begin_inset Flex Noun
2598 status collapsed
2599
2600 \begin_layout Plain Layout
2601 From
2602 \begin_inset space ~
2603 \end_inset
2604
2605 format
2606 \end_layout
2607
2608 \end_inset
2609
2610  and 
2611 \begin_inset Flex Noun
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615 To
2616 \begin_inset space ~
2617 \end_inset
2618
2619 format
2620 \end_layout
2621
2622 \end_inset
2623
2624  from the drop-down lists,
2625  enter the command needed for the conversion,
2626  and then press the 
2627 \begin_inset Flex Noun
2628 status collapsed
2629
2630 \begin_layout Plain Layout
2631 Add
2632 \end_layout
2633
2634 \end_inset
2635
2636  button.
2637  Several variables can be used in the definition of converters:
2638 \end_layout
2639
2640 \begin_layout Labeling
2641 \labelwidthstring 00.00.0000
2642 \begin_inset Flex Code
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646 $$s
2647 \end_layout
2648
2649 \end_inset
2650
2651  The \SpecialChar LyX
2652  system directory
2653 \end_layout
2654
2655 \begin_layout Labeling
2656 \labelwidthstring 00.00.0000
2657 \begin_inset Flex Code
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 $$i
2662 \end_layout
2663
2664 \end_inset
2665
2666  The input file
2667 \end_layout
2668
2669 \begin_layout Labeling
2670 \labelwidthstring 00.00.0000
2671 \begin_inset Flex Code
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 $$o
2676 \end_layout
2677
2678 \end_inset
2679
2680  The output file
2681 \end_layout
2682
2683 \begin_layout Labeling
2684 \labelwidthstring 00.00.0000
2685 \begin_inset Flex Code
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 $$b
2690 \end_layout
2691
2692 \end_inset
2693
2694  The base filename of the input file (i.
2695 \begin_inset space \thinspace{}
2696 \end_inset
2697
2698 g.,
2699  without the extension)
2700 \end_layout
2701
2702 \begin_layout Labeling
2703 \labelwidthstring 00.00.0000
2704 \begin_inset Flex Code
2705 status collapsed
2706
2707 \begin_layout Plain Layout
2708 $$p
2709 \end_layout
2710
2711 \end_inset
2712
2713  The path to the input file
2714 \end_layout
2715
2716 \begin_layout Labeling
2717 \labelwidthstring 00.00.0000
2718 \begin_inset Flex Code
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722 $$r
2723 \end_layout
2724
2725 \end_inset
2726
2727  The path to the original input file (this is different from $$p when a chain of converters is called)
2728 \end_layout
2729
2730 \begin_layout Labeling
2731 \labelwidthstring 00.00.0000
2732 \begin_inset Flex Code
2733 status collapsed
2734
2735 \begin_layout Plain Layout
2736 $$e
2737 \end_layout
2738
2739 \end_inset
2740
2741  The iconv name for the encoding of the document.
2742 \end_layout
2743
2744 \begin_layout Standard
2745 In the 
2746 \begin_inset Flex Noun
2747 status collapsed
2748
2749 \begin_layout Plain Layout
2750 Extra
2751 \begin_inset space ~
2752 \end_inset
2753
2754 Flag
2755 \end_layout
2756
2757 \end_inset
2758
2759  field you can enter the following flags,
2760  separated by commas:
2761 \end_layout
2762
2763 \begin_layout Labeling
2764 \labelwidthstring 00.00.0000
2765 \begin_inset Flex Code
2766 status collapsed
2767
2768 \begin_layout Plain Layout
2769 latex
2770 \change_inserted -712698321 1524656940
2771 =flavor
2772 \change_unchanged
2773
2774 \end_layout
2775
2776 \end_inset
2777
2778  This converter runs some form of \SpecialChar LaTeX
2779 .
2780  This will make \SpecialChar LyX
2781 's \SpecialChar LaTeX
2782  error logs available.
2783
2784 \change_inserted -712698321 1524657018
2785  The optional 
2786 \begin_inset Flex Code
2787 status open
2788
2789 \begin_layout Plain Layout
2790
2791 \change_inserted -712698321 1524657012
2792 flavor
2793 \change_unchanged
2794
2795 \end_layout
2796
2797 \end_inset
2798
2799  value specifies the form of \SpecialChar LaTeX
2800  that is run (
2801 \begin_inset Flex Code
2802 status open
2803
2804 \begin_layout Plain Layout
2805
2806 \change_inserted -712698321 1524657005
2807 latex,
2808  pdflatex,
2809  platex,
2810  xetex,
2811  luatex
2812 \change_unchanged
2813
2814 \end_layout
2815
2816 \end_inset
2817
2818 ).
2819  If no value is specified,
2820  
2821 \begin_inset Flex Code
2822 status open
2823
2824 \begin_layout Plain Layout
2825
2826 \change_inserted -712698321 1524657018
2827 latex
2828 \change_unchanged
2829
2830 \end_layout
2831
2832 \end_inset
2833
2834  is used.
2835 \change_unchanged
2836
2837 \end_layout
2838
2839 \begin_layout Labeling
2840 \labelwidthstring 00.00.0000
2841
2842 \change_inserted -712698321 1676553236
2843 \begin_inset Flex Code
2844 status collapsed
2845
2846 \begin_layout Plain Layout
2847
2848 \change_inserted -712698321 1676552303
2849 needauth
2850 \change_unchanged
2851
2852 \end_layout
2853
2854 \end_inset
2855
2856  This converter is considered non-safe and needs authorization by the user.
2857  Depending on the settings in 
2858 \family sans
2859 Tools\SpecialChar menuseparator
2860 Preferences\SpecialChar menuseparator
2861 File Handling\SpecialChar menuseparator
2862 Converters
2863 \family default
2864 ,
2865  users will (a.) be asked whether they trust the current document temporarily,
2866  permanently,
2867  or not,
2868  (b.) be informed that conversion is not possible due to security concerns,
2869  or (c.) not be informed as they gave permanent consent.
2870  Set this flag for converters that might execute arbitrary programs.
2871 \end_layout
2872
2873 \begin_layout Labeling
2874 \labelwidthstring 00.00.0000
2875 \begin_inset Flex Code
2876 status collapsed
2877
2878 \begin_layout Plain Layout
2879 needaux
2880 \change_inserted -712698321 1524656935
2881 =flavor
2882 \change_unchanged
2883
2884 \end_layout
2885
2886 \end_inset
2887
2888  Needs the \SpecialChar LaTeX
2889  
2890 \begin_inset Flex Noun
2891 status collapsed
2892
2893 \begin_layout Plain Layout
2894 .aux
2895 \end_layout
2896
2897 \end_inset
2898
2899  file for the conversion.
2900
2901 \change_inserted -712698321 1524657047
2902  The optional 
2903 \begin_inset Flex Code
2904 status open
2905
2906 \begin_layout Plain Layout
2907
2908 \change_inserted -712698321 1524657030
2909 flavor
2910 \change_unchanged
2911
2912 \end_layout
2913
2914 \end_inset
2915
2916  value specifies the form of \SpecialChar LaTeX
2917  that is run in order to generate the 
2918 \begin_inset Flex Noun
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922
2923 \change_inserted -712698321 1524657047
2924 .aux
2925 \change_unchanged
2926
2927 \end_layout
2928
2929 \end_inset
2930
2931  file (
2932 \begin_inset Flex Code
2933 status open
2934
2935 \begin_layout Plain Layout
2936
2937 \change_inserted -712698321 1524657030
2938 latex,
2939  pdflatex,
2940  platex,
2941  xetex,
2942  luatex
2943 \change_unchanged
2944
2945 \end_layout
2946
2947 \end_inset
2948
2949 ).
2950  If no value is specified,
2951  
2952 \begin_inset Flex Code
2953 status open
2954
2955 \begin_layout Plain Layout
2956
2957 \change_inserted -712698321 1524657030
2958 latex
2959 \change_unchanged
2960
2961 \end_layout
2962
2963 \end_inset
2964
2965  is used.
2966 \change_unchanged
2967
2968 \end_layout
2969
2970 \begin_layout Labeling
2971 \labelwidthstring 00.00.0000
2972 \begin_inset Flex Code
2973 status collapsed
2974
2975 \begin_layout Plain Layout
2976 nice
2977 \end_layout
2978
2979 \end_inset
2980
2981  Needs a 
2982 \begin_inset Quotes eld
2983 \end_inset
2984
2985 nice
2986 \begin_inset Quotes erd
2987 \end_inset
2988
2989  file from the backend,
2990  which in practice means a \SpecialChar LaTeX
2991  file like the one we would export,
2992  without 
2993 \begin_inset Flex Code
2994 status collapsed
2995
2996 \begin_layout Plain Layout
2997 input@path
2998 \end_layout
2999
3000 \end_inset
3001
3002 .
3003 \end_layout
3004
3005 \begin_layout Labeling
3006 \labelwidthstring 00.00.0000
3007 \begin_inset Flex Code
3008 status collapsed
3009
3010 \begin_layout Plain Layout
3011 xml
3012 \end_layout
3013
3014 \end_inset
3015
3016  Output is XML.
3017 \end_layout
3018
3019 \begin_layout Standard
3020 The following three flags are not really flags at all because they take an argument in the 
3021 \begin_inset Flex Noun
3022 status collapsed
3023
3024 \begin_layout Plain Layout
3025 key
3026 \begin_inset space ~
3027 \end_inset
3028
3029 =
3030 \begin_inset space ~
3031 \end_inset
3032
3033 value
3034 \end_layout
3035
3036 \end_inset
3037
3038  format:
3039 \end_layout
3040
3041 \begin_layout Labeling
3042 \labelwidthstring 00.00.0000
3043
3044 \change_inserted -712698321 1523206314
3045 \begin_inset Flex Code
3046 status collapsed
3047
3048 \begin_layout Plain Layout
3049
3050 \change_inserted -712698321 1523206193
3051 hyperref-driver
3052 \change_unchanged
3053
3054 \end_layout
3055
3056 \end_inset
3057
3058  The name of the driver that needs to be loaded with the 
3059 \family sans
3060 hyperref
3061 \family default
3062  package for this converter.
3063  The loading of the correct driver is necessary to get some PDF-specific features.
3064  See the 
3065 \family sans
3066 hyperref
3067 \family default
3068  manual for details.
3069 \end_layout
3070
3071 \begin_layout Labeling
3072 \labelwidthstring 00.00.0000
3073 \begin_inset Flex Code
3074 status collapsed
3075
3076 \begin_layout Plain Layout
3077 parselog
3078 \end_layout
3079
3080 \end_inset
3081
3082  If set,
3083  the converter's standard error will be redirected to a file 
3084 \begin_inset Flex Code
3085 status collapsed
3086
3087 \begin_layout Plain Layout
3088 infile.out
3089 \end_layout
3090
3091 \end_inset
3092
3093 ,
3094  and the script given as argument will be run as:
3095  
3096 \begin_inset Flex Code
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100 script < infile.out > infile.log
3101 \end_layout
3102
3103 \end_inset
3104
3105 .
3106  The argument may contain 
3107 \begin_inset Flex Code
3108 status collapsed
3109
3110 \begin_layout Plain Layout
3111 $$s
3112 \end_layout
3113
3114 \end_inset
3115
3116 .
3117 \end_layout
3118
3119 \begin_layout Labeling
3120 \labelwidthstring 00.00.0000
3121 \begin_inset Flex Code
3122 status collapsed
3123
3124 \begin_layout Plain Layout
3125 resultdir
3126 \end_layout
3127
3128 \end_inset
3129
3130  The name of the directory in which the converter will dump the generated files.
3131  \SpecialChar LyX
3132  will not create this directory,
3133  and it does not copy anything into it,
3134  though it will copy this directory to the destination.
3135  The argument may contain 
3136 \begin_inset Flex Code
3137 status collapsed
3138
3139 \begin_layout Plain Layout
3140 $$b
3141 \end_layout
3142
3143 \end_inset
3144
3145 ,
3146  which will be replaced by the base name of the input and output files,
3147  respectively,
3148  when the directory is copied.
3149 \begin_inset Newline newline
3150 \end_inset
3151
3152 Note that resultdir and usetempdir make no sense together.
3153  The latter will be ignored if the former is given.
3154 \end_layout
3155
3156 \begin_layout Labeling
3157 \labelwidthstring 00.00.0000
3158 \begin_inset Flex Code
3159 status collapsed
3160
3161 \begin_layout Plain Layout
3162 resultfile
3163 \end_layout
3164
3165 \end_inset
3166
3167  Determines the output file name and may,
3168  contain 
3169 \begin_inset Flex Code
3170 status collapsed
3171
3172 \begin_layout Plain Layout
3173 $$b
3174 \end_layout
3175
3176 \end_inset
3177
3178 .
3179  Sensible only with resultdir and optional even then;
3180  if not given,
3181  it defaults to `index'.
3182 \end_layout
3183
3184 \begin_layout Standard
3185
3186 \change_inserted -712698321 1523206384
3187 A suitable hyperref-driver is set for some converters that are installed with \SpecialChar LyX
3188 .
3189  
3190 \change_deleted -712698321 1523206388
3191 None of these
3192 \change_inserted -712698321 1523206389
3193 The
3194 \change_unchanged
3195  last three
3196 \change_inserted -712698321 1523206400
3197  flags,
3198  however,
3199
3200 \change_unchanged
3201  are presently 
3202 \change_inserted -712698321 1523206407
3203 not 
3204 \change_unchanged
3205 used in any of the 
3206 \change_inserted -712698321 1523206437
3207 pre-installed 
3208 \change_unchanged
3209 converters
3210 \change_deleted -712698321 1523206442
3211  that are installed with \SpecialChar LyX
3212
3213 \change_unchanged
3214 .
3215  
3216 \end_layout
3217
3218 \begin_layout Standard
3219 You do not have to define converters for all formats between which you want to convert.
3220  For example,
3221  you will note that there is no `\SpecialChar LyX
3222  to PostScript' converter,
3223  but \SpecialChar LyX
3224  will export PostScript.
3225  It does so by first creating a \SpecialChar LaTeX
3226  file (no converter needs to be defined for this) which is then converted to DVI using the `\SpecialChar LaTeX
3227  to DVI' converter,
3228  and finally converting the resulting DVI file to PostScript.
3229  \SpecialChar LyX
3230  finds such `chains' of converters automatically,
3231  and it will always choose the shortest possible chain.
3232  You can,
3233  though,
3234  still define multiple conversion methods between file formats.
3235  For example,
3236  the standard \SpecialChar LyX
3237  configuration provides five ways to convert \SpecialChar LaTeX
3238  to PDF:
3239 \end_layout
3240
3241 \begin_layout Enumerate
3242 Directly,
3243  using 
3244 \begin_inset Flex Noun
3245 status collapsed
3246
3247 \begin_layout Plain Layout
3248 pdflatex
3249 \end_layout
3250
3251 \end_inset
3252
3253
3254 \end_layout
3255
3256 \begin_layout Enumerate
3257 via (DVI and) PostScript,
3258  using 
3259 \begin_inset Flex Noun
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 ps2pdf
3264 \end_layout
3265
3266 \end_inset
3267
3268
3269 \end_layout
3270
3271 \begin_layout Enumerate
3272 via DVI,
3273  using 
3274 \begin_inset Flex Noun
3275 status collapsed
3276
3277 \begin_layout Plain Layout
3278 dvipdfm
3279 \end_layout
3280
3281 \end_inset
3282
3283
3284 \end_layout
3285
3286 \begin_layout Enumerate
3287 directly using 
3288 \begin_inset Flex Noun
3289 status collapsed
3290
3291 \begin_layout Plain Layout
3292 Xe\SpecialChar TeX
3293
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 Lua\SpecialChar TeX
3308
3309 \end_layout
3310
3311 \end_inset
3312
3313
3314 \end_layout
3315
3316 \begin_layout Standard
3317 To define such alternate chains,
3318  you must define multiple target `file formats',
3319  as described in 
3320 \begin_inset CommandInset ref
3321 LatexCommand ref
3322 reference "sec:Formats"
3323 nolink "false"
3324
3325 \end_inset
3326
3327 .
3328  For example,
3329  in the standard configuration,
3330  the formats named 
3331 \begin_inset Flex Noun
3332 status collapsed
3333
3334 \begin_layout Plain Layout
3335 pdf
3336 \end_layout
3337
3338 \end_inset
3339
3340  (for 
3341 \begin_inset Flex Noun
3342 status collapsed
3343
3344 \begin_layout Plain Layout
3345 ps2pdf
3346 \end_layout
3347
3348 \end_inset
3349
3350 ),
3351  
3352 \begin_inset Flex Noun
3353 status collapsed
3354
3355 \begin_layout Plain Layout
3356 pdf2
3357 \end_layout
3358
3359 \end_inset
3360
3361  (for 
3362 \begin_inset Flex Noun
3363 status collapsed
3364
3365 \begin_layout Plain Layout
3366 pdflatex
3367 \end_layout
3368
3369 \end_inset
3370
3371 ),
3372  
3373 \begin_inset Flex Noun
3374 status collapsed
3375
3376 \begin_layout Plain Layout
3377 pdf3
3378 \end_layout
3379
3380 \end_inset
3381
3382  (for 
3383 \begin_inset Flex Noun
3384 status collapsed
3385
3386 \begin_layout Plain Layout
3387 dvipdfm
3388 \end_layout
3389
3390 \end_inset
3391
3392 ),
3393  
3394 \begin_inset Flex Noun
3395 status collapsed
3396
3397 \begin_layout Plain Layout
3398 pdf4
3399 \end_layout
3400
3401 \end_inset
3402
3403  (for 
3404 \begin_inset Flex Noun
3405 status collapsed
3406
3407 \begin_layout Plain Layout
3408 Xe\SpecialChar TeX
3409
3410 \end_layout
3411
3412 \end_inset
3413
3414 ),
3415  and 
3416 \begin_inset Flex Noun
3417 status collapsed
3418
3419 \begin_layout Plain Layout
3420 pdf5
3421 \end_layout
3422
3423 \end_inset
3424
3425  (for 
3426 \begin_inset Flex Noun
3427 status collapsed
3428
3429 \begin_layout Plain Layout
3430 Lua\SpecialChar TeX
3431
3432 \end_layout
3433
3434 \end_inset
3435
3436 ) are defined,
3437  all of which share the extension 
3438 \begin_inset Flex Noun
3439 status collapsed
3440
3441 \begin_layout Plain Layout
3442 .pdf
3443 \end_layout
3444
3445 \end_inset
3446
3447 ,
3448  and which correspond to the conversion methods just mentioned.
3449 \end_layout
3450
3451 \begin_layout Chapter
3452 Internationalizing \SpecialChar LyX
3453
3454 \begin_inset CommandInset label
3455 LatexCommand label
3456 name "cha:Internationalizing-LyX"
3457
3458 \end_inset
3459
3460
3461 \end_layout
3462
3463 \begin_layout Standard
3464 \SpecialChar LyX
3465  supports using a translated interface.
3466  Last time we checked,
3467  \SpecialChar LyX
3468  provided text in thirty languages.
3469  The language of choice is called your 
3470 \emph on
3471 locale
3472 \emph default
3473 .
3474  (For further reading on locale settings,
3475  see also the documentation for locale that comes with your operating system.
3476  For Linux,
3477  the manual page for 
3478 \begin_inset Flex Code
3479 status collapsed
3480
3481 \begin_layout Plain Layout
3482 locale(5)
3483 \end_layout
3484
3485 \end_inset
3486
3487  could be a good place to start).
3488 \end_layout
3489
3490 \begin_layout Standard
3491 Notice that these translations will work,
3492  but do contain a few flaws.
3493  In particular,
3494  all dialogs have been designed with the English text in mind,
3495  which means that some of the translated text will be too large to fit within the space allocated.
3496  This is only a display problem and will not cause any harm.
3497  Also,
3498  you will find that some of the translations do not define shortcut keys for everything.
3499  Sometimes,
3500  there are simply not enough free letters to do it.
3501  Other times,
3502  the translator just hasn't got around to doing it yet.
3503  Our localization team,
3504  which you may wish to join,
3505 \begin_inset Foot
3506 status collapsed
3507
3508 \begin_layout Plain Layout
3509 If you are a fluent speaker of a language other than English,
3510  joining these teams is a great way to give back to the \SpecialChar LyX
3511  community!
3512 \end_layout
3513
3514 \end_inset
3515
3516  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3517 .
3518 \end_layout
3519
3520 \begin_layout Section
3521 Translating \SpecialChar LyX
3522
3523 \end_layout
3524
3525 \begin_layout Subsection
3526 Translating the graphical user interface (text messages).
3527 \end_layout
3528
3529 \begin_layout Standard
3530 \SpecialChar LyX
3531  uses the GNU 
3532 \begin_inset Flex Code
3533 status collapsed
3534
3535 \begin_layout Plain Layout
3536 gettext
3537 \end_layout
3538
3539 \end_inset
3540
3541  library to handle the internationalization of the interface.
3542  To have \SpecialChar LyX
3543  speak your favorite language in all menus and dialogs,
3544  you need a 
3545 \begin_inset Flex Code
3546 status collapsed
3547
3548 \begin_layout Plain Layout
3549 po
3550 \end_layout
3551
3552 \end_inset
3553
3554 -file for that language.
3555  When this is available,
3556  you'll have to generate a 
3557 \begin_inset Flex Code
3558 status collapsed
3559
3560 \begin_layout Plain Layout
3561 mo
3562 \end_layout
3563
3564 \end_inset
3565
3566 -file from it and install the 
3567 \begin_inset Flex Code
3568 status collapsed
3569
3570 \begin_layout Plain Layout
3571 mo
3572 \end_layout
3573
3574 \end_inset
3575
3576 -file.
3577  The process of doing all of this is explained in the documentation for GNU 
3578 \begin_inset Flex Code
3579 status collapsed
3580
3581 \begin_layout Plain Layout
3582 gettext
3583 \end_layout
3584
3585 \end_inset
3586
3587 .
3588  It is possible to do this just for yourself,
3589  but if you're going to do it,
3590  you might as well share the results of your labors with the rest of the \SpecialChar LyX
3591  community.
3592  Send a message to the \SpecialChar LyX
3593  developers' list for more information about how to proceed.
3594 \end_layout
3595
3596 \begin_layout Standard
3597 In short,
3598  this is what you should do (xx denotes the language code):
3599 \end_layout
3600
3601 \begin_layout Itemize
3602 Check out the \SpecialChar LyX
3603  source code.
3604  (See the 
3605 \begin_inset CommandInset href
3606 LatexCommand href
3607 name "information on the web"
3608 target "https://www.lyx.org/HowToUseGIT"
3609 literal "false"
3610
3611 \end_inset
3612
3613 .)
3614 \end_layout
3615
3616 \begin_layout Itemize
3617 Copy the file 
3618 \begin_inset Flex Code
3619 status collapsed
3620
3621 \begin_layout Plain Layout
3622 lyx.pot
3623 \end_layout
3624
3625 \end_inset
3626
3627  to the folder of the 
3628 \begin_inset Flex Code
3629 status collapsed
3630
3631 \begin_layout Plain Layout
3632 **.po
3633 \end_layout
3634
3635 \end_inset
3636
3637  files.
3638  Then rename it to 
3639 \begin_inset Flex Code
3640 status collapsed
3641
3642 \begin_layout Plain Layout
3643 xx.po
3644 \end_layout
3645
3646 \end_inset
3647
3648 .
3649  (If 
3650 \begin_inset Flex Code
3651 status collapsed
3652
3653 \begin_layout Plain Layout
3654 lyx.pot
3655 \end_layout
3656
3657 \end_inset
3658
3659  doesn't exist anywhere,
3660  it can be remade with the console command 
3661 \begin_inset Flex Code
3662 status collapsed
3663
3664 \begin_layout Plain Layout
3665 make lyx.pot
3666 \end_layout
3667
3668 \end_inset
3669
3670  in that directory,
3671  or you can use an existing po-file for some other language as a template).
3672 \end_layout
3673
3674 \begin_layout Itemize
3675 Edit 
3676 \begin_inset Flex Code
3677 status collapsed
3678
3679 \begin_layout Plain Layout
3680 xx.po
3681 \end_layout
3682
3683 \end_inset
3684
3685 .
3686 \begin_inset Foot
3687 status collapsed
3688
3689 \begin_layout Plain Layout
3690 This is just a text file,
3691  so it can be edited in any text editor.
3692  But there are also specialized programs that support such editing,
3693  such as 
3694 \family typewriter
3695 Poedit
3696 \family default
3697  (for all platforms) or 
3698 \family typewriter
3699 KBabel
3700 \family default
3701  (for KDE).
3702  
3703 \family typewriter
3704 Emacs
3705 \family default
3706  contains a `mode' for editing 
3707 \begin_inset Flex Code
3708 status collapsed
3709
3710 \begin_layout Plain Layout
3711 po
3712 \end_layout
3713
3714 \end_inset
3715
3716  files,
3717  as well,
3718  see 
3719 \begin_inset Flex URL
3720 status open
3721
3722 \begin_layout Plain Layout
3723
3724 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3725 \end_layout
3726
3727 \end_inset
3728
3729 .
3730 \end_layout
3731
3732 \end_inset
3733
3734  For some menu- and widget-labels,
3735  there are also shortcut keys that should be translated.
3736  Those keys are marked after a `|',
3737  and should be translated according to the words and phrases of the language.
3738  You should also fill also out the information at the beginning of the new 
3739 \begin_inset Flex Code
3740 status collapsed
3741
3742 \begin_layout Plain Layout
3743 po
3744 \end_layout
3745
3746 \end_inset
3747
3748 -file with your email-address,
3749  etc.,
3750  so people know where to reach you with suggestions and entertaining flames.
3751 \end_layout
3752
3753 \begin_layout Standard
3754 If you are just doing this on your own,
3755  then:
3756 \end_layout
3757
3758 \begin_layout Itemize
3759 Generate 
3760 \begin_inset Flex Code
3761 status collapsed
3762
3763 \begin_layout Plain Layout
3764 xx.mo
3765 \end_layout
3766
3767 \end_inset
3768
3769 .
3770  This can be done with 
3771 \begin_inset Flex Code
3772 status collapsed
3773
3774 \begin_layout Plain Layout
3775 msgfmt -o xx.mo < xx.po
3776 \end_layout
3777
3778 \end_inset
3779
3780 .
3781 \end_layout
3782
3783 \begin_layout Itemize
3784 Copy the 
3785 \begin_inset Flex Code
3786 status collapsed
3787
3788 \begin_layout Plain Layout
3789 mo
3790 \end_layout
3791
3792 \end_inset
3793
3794 -file to your locale-tree,
3795  at the correct directory for application messages for the language
3796 \series bold
3797  
3798 \series default
3799 xx,
3800  and under the name 
3801 \begin_inset Flex Code
3802 status collapsed
3803
3804 \begin_layout Plain Layout
3805 lyx.mo
3806 \end_layout
3807
3808 \end_inset
3809
3810  (e.
3811 \begin_inset space \thinspace{}
3812 \end_inset
3813
3814 g.
3815 \begin_inset space \space{}
3816 \end_inset
3817
3818
3819 \begin_inset Flex Code
3820 status collapsed
3821
3822 \begin_layout Plain Layout
3823 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3824 \end_layout
3825
3826 \end_inset
3827
3828
3829 \series bold
3830 .
3831 \end_layout
3832
3833 \begin_layout Standard
3834 As said,
3835  however,
3836  it would be best if the new 
3837 \begin_inset Flex Code
3838 status collapsed
3839
3840 \begin_layout Plain Layout
3841 po
3842 \end_layout
3843
3844 \end_inset
3845
3846  file could be added to the \SpecialChar LyX
3847  distribution,
3848  so others can use it.
3849  Adding it involves making additional changes to \SpecialChar LyX
3850 .
3851  So send an email to the developers' mailing list if you're interested in doing that.
3852 \end_layout
3853
3854 \begin_layout Subsubsection
3855 Ambiguous messages
3856 \end_layout
3857
3858 \begin_layout Standard
3859 Sometimes it turns out that one English message needs to be translated into different messages in the target language.
3860  One example is the message 
3861 \begin_inset Flex Code
3862 status collapsed
3863
3864 \begin_layout Plain Layout
3865 To
3866 \end_layout
3867
3868 \end_inset
3869
3870  which has the German translation 
3871 \lang german
3872 Nach
3873 \lang english
3874  or 
3875 \lang german
3876 Bis
3877 \lang english
3878 ,
3879  depending upon exactly what the English 
3880 \begin_inset Quotes eld
3881 \end_inset
3882
3883 to
3884 \begin_inset Quotes erd
3885 \end_inset
3886
3887  means.
3888  GNU 
3889 \begin_inset Flex Code
3890 status collapsed
3891
3892 \begin_layout Plain Layout
3893 gettext
3894 \end_layout
3895
3896 \end_inset
3897
3898  does not handle such ambiguous translations.
3899  Therefore you have to add some context information to the message:
3900  Instead of 
3901 \begin_inset Flex Code
3902 status collapsed
3903
3904 \begin_layout Plain Layout
3905 To
3906 \end_layout
3907
3908 \end_inset
3909
3910  it becomes 
3911 \begin_inset Flex Code
3912 status collapsed
3913
3914 \begin_layout Plain Layout
3915 To[[as in 'From format x to format y']]
3916 \end_layout
3917
3918 \end_inset
3919
3920  and 
3921 \begin_inset Flex Code
3922 status collapsed
3923
3924 \begin_layout Plain Layout
3925 To[[as in 'From page x to page y']].
3926 \end_layout
3927
3928 \end_inset
3929
3930  Now the two occurrences of 
3931 \begin_inset Flex Code
3932 status collapsed
3933
3934 \begin_layout Plain Layout
3935 To
3936 \end_layout
3937
3938 \end_inset
3939
3940  are different for 
3941 \begin_inset Flex Code
3942 status collapsed
3943
3944 \begin_layout Plain Layout
3945 gettext
3946 \end_layout
3947
3948 \end_inset
3949
3950  and can be translated correctly to 
3951 \lang german
3952 Nach
3953 \lang english
3954  and 
3955 \lang german
3956 Bis
3957 \lang english
3958 ,
3959  respectively.
3960 \end_layout
3961
3962 \begin_layout Standard
3963 Of course the context information needs to be stripped off the original message when no translation is used.
3964  Therefore you have to put it in double square brackets at the end of the message (see the example above).
3965  The translation mechanism of \SpecialChar LyX
3966  ensures that everything in double square brackets at the end of messages is removed before displaying the message.
3967 \end_layout
3968
3969 \begin_layout Subsection
3970 Translating the documentation.
3971 \end_layout
3972
3973 \begin_layout Standard
3974 The online documentation (in the 
3975 \begin_inset Flex Noun
3976 status collapsed
3977
3978 \begin_layout Plain Layout
3979 Help
3980 \end_layout
3981
3982 \end_inset
3983
3984 -menu) can (and should!) be translated.
3985  If there are translated versions of the documentation available
3986 \begin_inset Foot
3987 status collapsed
3988
3989 \begin_layout Plain Layout
3990 As of March 2008,
3991  at least some of the documents have been translated into fourteen languages,
3992  with the Tutorial available in a few more.
3993 \end_layout
3994
3995 \end_inset
3996
3997  and the locale is set accordingly,
3998  these will be used automagically by \SpecialChar LyX
3999 .
4000  \SpecialChar LyX
4001  looks for translated versions as 
4002 \begin_inset Flex Code
4003 status collapsed
4004
4005 \begin_layout Plain Layout
4006 LyXDir/doc/xx/DocName.lyx
4007 \end_layout
4008
4009 \end_inset
4010
4011 ,
4012  where 
4013 \begin_inset Flex Code
4014 status collapsed
4015
4016 \begin_layout Plain Layout
4017 xx
4018 \end_layout
4019
4020 \end_inset
4021
4022  is the code for the language currently in use.
4023  If there are no translated documents,
4024  the default English versions will be displayed.
4025  Note that the translated versions must have the same filenames (
4026 \begin_inset Flex Code
4027 status collapsed
4028
4029 \begin_layout Plain Layout
4030 DocName
4031 \end_layout
4032
4033 \end_inset
4034
4035  above) as the original.
4036  If you feel up to translating the documentation (an excellent way to proof-read the original documentation by the way!),
4037  there are a few things you should do right away:
4038 \end_layout
4039
4040 \begin_layout Itemize
4041 Check out the documentation translation web page at 
4042 \begin_inset CommandInset href
4043 LatexCommand href
4044 name "https://www.lyx.org/Translation"
4045 target "https://www.lyx.org/Translation"
4046 literal "false"
4047
4048 \end_inset
4049
4050 .
4051  That way,
4052  you can find out which (if any) documents have already been translated into your language.
4053  You can also find out who (if anyone) is organizing the effort to translate the documentation into your language.
4054  If no one is organizing the effort,
4055  please let us know that you're interested.
4056 \end_layout
4057
4058 \begin_layout Standard
4059 Once you get to actually translating,
4060  here's a few hints for you that may save you trouble:
4061 \end_layout
4062
4063 \begin_layout Itemize
4064 Join the documentation team!
4065  There is information on how to do that in 
4066 \begin_inset Flex Code
4067 status collapsed
4068
4069 \begin_layout Plain Layout
4070 Intro.lyx
4071 \end_layout
4072
4073 \end_inset
4074
4075  (
4076 \begin_inset Flex Noun
4077 status collapsed
4078
4079 \begin_layout Plain Layout
4080 Help\SpecialChar menuseparator
4081 Introduction
4082 \end_layout
4083
4084 \end_inset
4085
4086 ),
4087  which by the way is the first document you should translate.
4088 \end_layout
4089
4090 \begin_layout Itemize
4091 Learn the typographic conventions for the language you are translating to.
4092  Typography is an ancient art and over the centuries,
4093  a great variety of conventions have developed throughout different parts of the world.
4094  Also study the professional terminology amongst typographers in your country.
4095  Inventing your own terminology will only confuse the users.
4096  
4097 \emph on
4098 (Warning!
4099  Typography is addictive!)
4100 \end_layout
4101
4102 \begin_layout Itemize
4103 Make a copy of the document.
4104  This will be your working copy.
4105  You can use this as your personal translated help-file by placing it in your 
4106 \begin_inset Flex Code
4107 status collapsed
4108
4109 \begin_layout Plain Layout
4110 UserDir/doc/xx/
4111 \end_layout
4112
4113 \end_inset
4114
4115  directory.
4116 \begin_inset Note Greyedout
4117 status open
4118
4119 \begin_layout Plain Layout
4120
4121 \series bold
4122 Note:
4123
4124 \series default
4125  For a complex document with external material (images,
4126  etc.),
4127  if you make a copy e.
4128 \begin_inset space \thinspace{}
4129 \end_inset
4130
4131 g.
4132 \begin_inset space \space{}
4133 \end_inset
4134
4135 in a temp dir,
4136  beware that the links to external material may be broken when the document is moved to a different place.
4137  The best way is to retrieve the \SpecialChar LyX
4138  tree from git (see 
4139 \begin_inset Flex URL
4140 status collapsed
4141
4142 \begin_layout Plain Layout
4143
4144 https://www.lyx.org/HowToUseGIT
4145 \end_layout
4146
4147 \end_inset
4148
4149 ) and to edit the doc file in place.
4150 \end_layout
4151
4152 \end_inset
4153
4154
4155 \end_layout
4156
4157 \begin_layout Itemize
4158 Sometimes the original document (from the \SpecialChar LyX
4159  team) will be updated.
4160  Use the source viewer at 
4161 \begin_inset CommandInset href
4162 LatexCommand href
4163 name "https://www.lyx.org/trac/timeline"
4164 target "https://www.lyx.org/trac/timeline"
4165 literal "false"
4166
4167 \end_inset
4168
4169  to see what has been changed.
4170  That way you can easily see which parts of the translated document need to be updated.
4171 \end_layout
4172
4173 \begin_layout Standard
4174 If you ever find an error in the original document,
4175  fix it and notify the rest of the documentation team of the changes!
4176  (You didn't forget to join the documentation team,
4177  did you?)
4178 \end_layout
4179
4180 \begin_layout Standard
4181 \begin_inset Branch OutDated
4182 inverted 0
4183 status collapsed
4184
4185 \begin_layout Section
4186 International Keyboard Support
4187 \end_layout
4188
4189 \begin_layout Standard
4190
4191 \emph on
4192 [Editor's Note:
4193  The following section is by
4194 \emph default
4195  
4196 \shape smallcaps
4197 \emph on
4198 Ivan Schreter
4199 \shape default
4200 .
4201  It needs to be fixed to conform to the new Documentation Style sheet and to make use of the new v1.0 features.
4202  The whole thing also needs to be merged with the section following it.-jw It may also be badly out of date.-rh (2008)]
4203 \end_layout
4204
4205 \begin_layout Subsection
4206 Defining Own Keymaps:
4207  Keymap File Format
4208 \end_layout
4209
4210 \begin_layout Standard
4211 Let's look at a keyboard definition file a little closer.
4212  It is a plain text file defining
4213 \end_layout
4214
4215 \begin_layout Itemize
4216 key-to-key or key-to-string translations
4217 \end_layout
4218
4219 \begin_layout Itemize
4220 dead keys
4221 \end_layout
4222
4223 \begin_layout Itemize
4224 dead keys exceptions
4225 \end_layout
4226
4227 \begin_layout Standard
4228 To define key-to-key or key-to-string translation,
4229  use this command:
4230 \end_layout
4231
4232 \begin_layout Quotation
4233 \begin_inset Flex Code
4234 status collapsed
4235
4236 \begin_layout Plain Layout
4237
4238 \backslash
4239 kmap
4240 \end_layout
4241
4242 \end_inset
4243
4244  
4245 \begin_inset Flex Code
4246 status collapsed
4247
4248 \begin_layout Plain Layout
4249 key
4250 \end_layout
4251
4252 \end_inset
4253
4254  outstring 
4255 \end_layout
4256
4257 \begin_layout Standard
4258 where 
4259 \begin_inset Flex Code
4260 status collapsed
4261
4262 \begin_layout Plain Layout
4263 key
4264 \end_layout
4265
4266 \end_inset
4267
4268  is the key to be translated and 
4269 \begin_inset Flex Code
4270 status collapsed
4271
4272 \begin_layout Plain Layout
4273 outstring
4274 \end_layout
4275
4276 \end_inset
4277
4278  is the string to be inserted into the document.
4279  To define dead keys,
4280  use:
4281 \end_layout
4282
4283 \begin_layout Quotation
4284 \begin_inset Flex Code
4285 status collapsed
4286
4287 \begin_layout Plain Layout
4288
4289 \backslash
4290 kmod
4291 \end_layout
4292
4293 \end_inset
4294
4295  
4296 \begin_inset Flex Code
4297 status collapsed
4298
4299 \begin_layout Plain Layout
4300 key
4301 \end_layout
4302
4303 \end_inset
4304
4305  deadkey
4306 \end_layout
4307
4308 \begin_layout Standard
4309 where 
4310 \begin_inset Flex Code
4311 status collapsed
4312
4313 \begin_layout Plain Layout
4314 key
4315 \end_layout
4316
4317 \end_inset
4318
4319  is a keyboard key and 
4320 \begin_inset Flex Code
4321 status collapsed
4322
4323 \begin_layout Plain Layout
4324 deadkey
4325 \end_layout
4326
4327 \end_inset
4328
4329  is dead key name.
4330  The following dead keys are supported (shortcut name is in parentheses):
4331 \end_layout
4332
4333 \begin_layout Quotation
4334
4335 \emph on
4336 Name
4337 \begin_inset space \hfill{}
4338 \end_inset
4339
4340 Example
4341 \end_layout
4342
4343 \begin_layout Quotation
4344 acute (acu)
4345 \begin_inset space \hfill{}
4346 \end_inset
4347
4348 áéíóú
4349 \end_layout
4350
4351 \begin_layout Quotation
4352 grave (gra)
4353 \begin_inset space \hfill{}
4354 \end_inset
4355
4356 àèìòù
4357 \end_layout
4358
4359 \begin_layout Quotation
4360 macron (mac)
4361 \begin_inset space \hfill{}
4362 \end_inset
4363
4364  ō
4365 \end_layout
4366
4367 \begin_layout Quotation
4368 tilde (til)
4369 \begin_inset space \hfill{}
4370 \end_inset
4371
4372 ñÑ
4373 \end_layout
4374
4375 \begin_layout Quotation
4376 underbar (underb)
4377 \begin_inset space \hfill{}
4378 \end_inset
4379
4380
4381 \begin_inset ERT
4382 status open
4383
4384 \begin_layout Plain Layout
4385
4386
4387 \backslash
4388 b o
4389 \end_layout
4390
4391 \end_inset
4392
4393
4394 \end_layout
4395
4396 \begin_layout Quotation
4397 cedilla (ced)
4398 \begin_inset space \hfill{}
4399 \end_inset
4400
4401 çÇ
4402 \end_layout
4403
4404 \begin_layout Quotation
4405 underdot (underd)
4406 \begin_inset space \hfill{}
4407 \end_inset
4408
4409
4410 \begin_inset ERT
4411 status open
4412
4413 \begin_layout Plain Layout
4414
4415
4416 \backslash
4417 d o
4418 \end_layout
4419
4420 \end_inset
4421
4422
4423 \end_layout
4424
4425 \begin_layout Quotation
4426 circumflex (circu)
4427 \begin_inset space \hfill{}
4428 \end_inset
4429
4430 âêîôû
4431 \end_layout
4432
4433 \begin_layout Quotation
4434 circle (circl)
4435 \begin_inset space \hfill{}
4436 \end_inset
4437
4438 ÅůŮ
4439 \end_layout
4440
4441 \begin_layout Quotation
4442 tie (tie)
4443 \begin_inset space \hfill{}
4444 \end_inset
4445
4446
4447 \begin_inset ERT
4448 status open
4449
4450 \begin_layout Plain Layout
4451
4452
4453 \backslash
4454 t o
4455 \end_layout
4456
4457 \end_inset
4458
4459
4460 \end_layout
4461
4462 \begin_layout Quotation
4463 breve (bre)
4464 \begin_inset space \hfill{}
4465 \end_inset
4466
4467 ă
4468 \begin_inset ERT
4469 status open
4470
4471 \begin_layout Plain Layout
4472
4473
4474 \backslash
4475 u o
4476 \end_layout
4477
4478 \end_inset
4479
4480
4481 \end_layout
4482
4483 \begin_layout Quotation
4484 caron (car)
4485 \begin_inset space \hfill{}
4486 \end_inset
4487
4488 čšž
4489 \end_layout
4490
4491 \begin_layout Quotation
4492 hungarian umlaut (hug)
4493 \begin_inset space \hfill{}
4494 \end_inset
4495
4496 őű
4497 \end_layout
4498
4499 \begin_layout Quotation
4500 umlaut (uml)
4501 \begin_inset space \hfill{}
4502 \end_inset
4503
4504 äöü
4505 \end_layout
4506
4507 \begin_layout Quotation
4508 dot (dot)
4509 \begin_inset space \hfill{}
4510 \end_inset
4511
4512 ż
4513 \begin_inset ERT
4514 status open
4515
4516 \begin_layout Plain Layout
4517
4518
4519 \backslash
4520 .s
4521 \end_layout
4522
4523 \end_inset
4524
4525
4526 \end_layout
4527
4528 \begin_layout Standard
4529 Since in many international keyboards there are exceptions to what some dead keys should do,
4530  you can define them using
4531 \end_layout
4532
4533 \begin_layout Quotation
4534 \begin_inset Flex Code
4535 status collapsed
4536
4537 \begin_layout Plain Layout
4538
4539 \backslash
4540 kxmod
4541 \end_layout
4542
4543 \end_inset
4544
4545  deadkey key outstring
4546 \end_layout
4547
4548 \begin_layout Standard
4549 For example,
4550  on Slovak keyboard,
4551  if you enter caron-o,
4552  it generates circumflex-o,
4553  so you put in
4554 \end_layout
4555
4556 \begin_layout Quotation
4557 \begin_inset Flex Code
4558 status collapsed
4559
4560 \begin_layout Plain Layout
4561
4562 \backslash
4563 kxmod
4564 \end_layout
4565
4566 \end_inset
4567
4568  caron o "
4569 \backslash
4570 ^o"
4571 \end_layout
4572
4573 \begin_layout Standard
4574 to make it work correctly.
4575  Also,
4576  you have to define as exceptions dead keys over i and j,
4577  to remove the dot from them before inserting an accent mark.
4578  I will change this when the time comes,
4579  but so far I haven't had time.
4580 \end_layout
4581
4582 \begin_layout Standard
4583 Oh,
4584  and about characters:
4585  backslash is escaped,
4586  so to enter it,
4587  you'll need double backslash.
4588  Also,
4589  quotes and 
4590 \begin_inset Flex Code
4591 status collapsed
4592
4593 \begin_layout Plain Layout
4594 #
4595 \end_layout
4596
4597 \end_inset
4598
4599  have different meaning.
4600  
4601 \begin_inset Flex Code
4602 status collapsed
4603
4604 \begin_layout Plain Layout
4605 #
4606 \end_layout
4607
4608 \end_inset
4609
4610  marks comments,
4611  quotes start and end \SpecialChar LaTeX
4612 -style commands.
4613  To enter quote,
4614  you'll need to use 
4615 \begin_inset Flex Code
4616 status collapsed
4617
4618 \begin_layout Plain Layout
4619
4620 \backslash
4621 "
4622 \end_layout
4623
4624 \end_inset
4625
4626 ,
4627  to enter 
4628 \begin_inset Flex Code
4629 status collapsed
4630
4631 \begin_layout Plain Layout
4632 #
4633 \end_layout
4634
4635 \end_inset
4636
4637 ,
4638  use 
4639 \begin_inset Flex Code
4640 status collapsed
4641
4642 \begin_layout Plain Layout
4643
4644 \backslash
4645 #
4646 \end_layout
4647
4648 \end_inset
4649
4650 .
4651 \end_layout
4652
4653 \begin_layout Standard
4654 If you make a keyboard description file that works for your language,
4655  please mail it to me,
4656  so I can include it in the next keymap distribution.
4657 \end_layout
4658
4659 \begin_layout Standard
4660 More keywords will be supported in keymap configuration file in future,
4661  like
4662 \end_layout
4663
4664 \begin_layout Itemize
4665 \begin_inset Flex Code
4666 status collapsed
4667
4668 \begin_layout Plain Layout
4669
4670 \backslash
4671 kinclude filename
4672 \end_layout
4673
4674 \end_inset
4675
4676
4677 \emph on
4678
4679 \begin_inset space \hfill{}
4680 \end_inset
4681
4682
4683 \begin_inset Flex Code
4684 status collapsed
4685
4686 \begin_layout Plain Layout
4687 include
4688 \end_layout
4689
4690 \end_inset
4691
4692  another file
4693 \end_layout
4694
4695 \begin_layout Itemize
4696 \begin_inset Flex Code
4697 status collapsed
4698
4699 \begin_layout Plain Layout
4700
4701 \backslash
4702 kprog program
4703 \end_layout
4704
4705 \end_inset
4706
4707
4708 \emph on
4709
4710 \begin_inset space \hfill{}
4711 \end_inset
4712
4713
4714 \begin_inset Flex Code
4715 status collapsed
4716
4717 \begin_layout Plain Layout
4718 define
4719 \end_layout
4720
4721 \end_inset
4722
4723  an external keymap translation program 
4724 \end_layout
4725
4726 \begin_layout Standard
4727 Also,
4728  it should look into 
4729 \begin_inset Flex Code
4730 status collapsed
4731
4732 \begin_layout Plain Layout
4733 lyxrc
4734 \end_layout
4735
4736 \end_inset
4737
4738  file for defaults,
4739  too (for example,
4740  a 
4741 \begin_inset Flex Code
4742 status collapsed
4743
4744 \begin_layout Plain Layout
4745
4746 \backslash
4747 kinclude
4748 \end_layout
4749
4750 \end_inset
4751
4752  option to include default keyboard).
4753 \end_layout
4754
4755 \end_inset
4756
4757
4758 \end_layout
4759
4760 \begin_layout Section
4761 International Keymap Stuff
4762 \begin_inset CommandInset label
4763 LatexCommand label
4764 name "sec:International-Keymap-Stuff"
4765
4766 \end_inset
4767
4768
4769 \end_layout
4770
4771 \begin_layout Standard
4772 \begin_inset Note Note
4773 status open
4774
4775 \begin_layout Plain Layout
4776 In doing the revisions on this document in March 2008,
4777  I did not look over this stuff,
4778  as I do not understand it.
4779  It would be good if someone else could do so.
4780  (RH)
4781 \end_layout
4782
4783 \end_inset
4784
4785
4786 \end_layout
4787
4788 \begin_layout Standard
4789 The next two sections describe the 
4790 \begin_inset Flex Code
4791 status collapsed
4792
4793 \begin_layout Plain Layout
4794
4795 \shape up
4796 .kmap
4797 \end_layout
4798
4799 \end_inset
4800
4801  and 
4802 \begin_inset Flex Code
4803 status collapsed
4804
4805 \begin_layout Plain Layout
4806
4807 \shape up
4808 .cdef
4809 \end_layout
4810
4811 \end_inset
4812
4813  file syntax in detail.
4814  These sections should help you design your own key map if the ones provided do not meet your needs.
4815 \end_layout
4816
4817 \begin_layout Subsection
4818 The .kmap File
4819 \end_layout
4820
4821 \begin_layout Standard
4822
4823 \shape up
4824 .
4825 \begin_inset Flex Code
4826 status collapsed
4827
4828 \begin_layout Plain Layout
4829 kmap
4830 \end_layout
4831
4832 \end_inset
4833
4834  file maps keystrokes to characters or strings.
4835  As the name suggests,
4836  it sets a keyboard mapping.
4837  The 
4838 \begin_inset Flex Code
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842 .kmap
4843 \end_layout
4844
4845 \end_inset
4846
4847
4848 \shape default
4849  file keywords 
4850 \shape up
4851
4852 \begin_inset Flex Code
4853 status collapsed
4854
4855 \begin_layout Plain Layout
4856
4857 \shape up
4858 kmap
4859 \end_layout
4860
4861 \end_inset
4862
4863
4864 \shape default
4865 ,
4866
4867 \shape up
4868  
4869 \shape default
4870
4871 \begin_inset Flex Code
4872 status collapsed
4873
4874 \begin_layout Plain Layout
4875
4876 \shape up
4877 kmod
4878 \end_layout
4879
4880 \end_inset
4881
4882 ,
4883
4884 \shape up
4885  
4886 \shape default
4887
4888 \begin_inset Flex Code
4889 status collapsed
4890
4891 \begin_layout Plain Layout
4892
4893 \shape up
4894 kxmod
4895 \end_layout
4896
4897 \end_inset
4898
4899 ,
4900  and 
4901 \begin_inset Flex Code
4902 status collapsed
4903
4904 \begin_layout Plain Layout
4905
4906 \shape up
4907 kcomb
4908 \end_layout
4909
4910 \end_inset
4911
4912  are described in this section.
4913 \end_layout
4914
4915 \begin_layout Labeling
4916 \labelwidthstring 00.00.0000
4917 \begin_inset Flex Code
4918 status collapsed
4919
4920 \begin_layout Plain Layout
4921
4922 \shape up
4923 kmap
4924 \end_layout
4925
4926 \end_inset
4927
4928  Map a character to a string
4929 \end_layout
4930
4931 \begin_layout LyX-Code
4932
4933 \backslash
4934 kmap 
4935 \family roman
4936 \emph on
4937 char
4938 \family default
4939 \emph default
4940  
4941 \family roman
4942 \emph on
4943 string
4944 \end_layout
4945
4946 \begin_layout Standard
4947 This will ma
4948 \family roman
4949 p
4950 \family default
4951  
4952 \family roman
4953 \emph on
4954 char
4955 \family default
4956 \emph default
4957  
4958 \family roman
4959 to
4960 \family default
4961  
4962 \family roman
4963 \emph on
4964 string
4965 \emph default
4966 .
4967  Note that in
4968 \family default
4969  
4970 \family roman
4971 \emph on
4972 string
4973 \emph default
4974 ,
4975
4976 \family default
4977  
4978 \family roman
4979 \shape up
4980 the double-quote (")
4981 \family default
4982 \shape default
4983  
4984 \family roman
4985 and
4986 \family default
4987  
4988 \family roman
4989 \shape up
4990 the backslash (
4991 \backslash
4992 )
4993 \family default
4994 \shape default
4995  
4996 \family roman
4997 must be escaped with a preceding backslash (
4998 \shape up
4999
5000 \backslash
5001
5002 \shape default
5003 )
5004 \family default
5005 .
5006 \end_layout
5007
5008 \begin_layout Standard
5009 An example of a 
5010 \begin_inset Flex Noun
5011 status collapsed
5012
5013 \begin_layout Plain Layout
5014
5015 \shape up
5016 kmap
5017 \end_layout
5018
5019 \end_inset
5020
5021  statement to cause the symbol 
5022 \begin_inset Flex Noun
5023 status collapsed
5024
5025 \begin_layout Plain Layout
5026
5027 \shape up
5028 /
5029 \end_layout
5030
5031 \end_inset
5032
5033  to be output for the keystroke 
5034 \begin_inset Flex Noun
5035 status collapsed
5036
5037 \begin_layout Plain Layout
5038
5039 \shape up
5040 &
5041 \end_layout
5042
5043 \end_inset
5044
5045  is:
5046 \end_layout
5047
5048 \begin_layout LyX-Code
5049
5050 \backslash
5051 kmap & /
5052 \end_layout
5053
5054 \begin_layout Labeling
5055 \labelwidthstring 00.00.0000
5056 \begin_inset Flex Code
5057 status collapsed
5058
5059 \begin_layout Plain Layout
5060
5061 \shape up
5062 kmod
5063 \end_layout
5064
5065 \end_inset
5066
5067  Specify an accent character
5068 \end_layout
5069
5070 \begin_layout LyX-Code
5071
5072 \backslash
5073 kmod 
5074 \family roman
5075 \emph on
5076 char accent allowed
5077 \end_layout
5078
5079 \begin_layout Standard
5080 This will make the cha
5081 \family roman
5082 racter
5083 \family default
5084  
5085 \family roman
5086 \emph on
5087 char
5088 \family default
5089 \emph default
5090  
5091 \family roman
5092 \shape up
5093 \emph on
5094 be an accent
5095 \family default
5096 \shape default
5097 \emph default
5098  
5099 \family roman
5100 \shape up
5101 on the
5102 \family default
5103 \shape default
5104  
5105 \family roman
5106 \shape up
5107 \emph on
5108 allowed
5109 \family default
5110 \shape default
5111 \emph default
5112  
5113 \family roman
5114 \shape up
5115 cha
5116 \family default
5117 racter(s).
5118  This is the dead key
5119 \begin_inset Foot
5120 status collapsed
5121
5122 \begin_layout Plain Layout
5123 The term 
5124 \family roman
5125 \emph on
5126 dead key
5127 \family default
5128 \emph default
5129  refers to a key that does not produce a character by itself,
5130  but when followed with another key,
5131  produces the desired accent character.
5132  For example,
5133  a German characte
5134 \family roman
5135 r with an umlaut like
5136 \family default
5137  
5138 \family roman
5139 \emph on
5140 ä
5141 \family default
5142 \emph default
5143  
5144 \family roman
5145 can be produced in this manner.
5146 \end_layout
5147
5148 \end_inset
5149
5150  mechanism.
5151  
5152 \end_layout
5153
5154 \begin_layout Standard
5155 If you 
5156 \family roman
5157 hit
5158 \family default
5159  
5160 \family roman
5161 \emph on
5162 char
5163 \family default
5164 \emph default
5165  
5166 \family roman
5167 and then another key not in
5168 \family default
5169  
5170 \family roman
5171 \emph on
5172 allowed
5173 \emph default
5174 ,
5175  you will get a
5176 \family default
5177  
5178 \family roman
5179 \emph on
5180 char
5181 \family default
5182 \emph default
5183  
5184 \family roman
5185 followed by the other,
5186  not allowed key,
5187  as output.
5188
5189 \family default
5190  Note that a 
5191 \begin_inset Flex Noun
5192 status collapsed
5193
5194 \begin_layout Plain Layout
5195
5196 \shape up
5197 Backspace
5198 \end_layout
5199
5200 \end_inset
5201
5202  cancels a dead key,
5203  so if 
5204 \family roman
5205 you hit
5206 \family default
5207  
5208 \family roman
5209 \emph on
5210 char
5211 \family default
5212 \emph default
5213  
5214 \begin_inset Flex Noun
5215 status collapsed
5216
5217 \begin_layout Plain Layout
5218
5219 \shape up
5220 \emph on
5221 Backspace
5222 \end_layout
5223
5224 \end_inset
5225
5226 ,
5227  the cursor will not go one position backwards but will instead cancel the effect t
5228 \family roman
5229 hat
5230 \family default
5231  
5232 \family roman
5233 \shape up
5234 \emph on
5235 char
5236 \family default
5237 \shape default
5238 \emph default
5239  
5240 \family roman
5241 \shape up
5242 might have had on the next keystroke.
5243  
5244 \end_layout
5245
5246 \begin_layout Standard
5247 The following example specifies that the character ' is to be an acute accent,
5248  allowed on the characters a,
5249  e,
5250  i,
5251  o,
5252  u,
5253  A,
5254  E,
5255  I,
5256  O,
5257  and U:
5258 \end_layout
5259
5260 \begin_layout LyX-Code
5261
5262 \backslash
5263 kmod ' acute aeiouAEIOU
5264 \end_layout
5265
5266 \begin_layout Labeling
5267 \labelwidthstring 00.00.0000
5268 \begin_inset Flex Code
5269 status collapsed
5270
5271 \begin_layout Plain Layout
5272 kxmod
5273 \end_layout
5274
5275 \end_inset
5276
5277  Specify an exception to the accent character
5278 \end_layout
5279
5280 \begin_layout LyX-Code
5281
5282 \backslash
5283 kxmod  
5284 \family roman
5285 \emph on
5286 accent char result
5287 \end_layout
5288
5289 \begin_layout Standard
5290 This defines an exce
5291 \family roman
5292 ption for
5293 \family default
5294  
5295 \family roman
5296 \emph on
5297 accent
5298 \family default
5299 \emph default
5300  
5301 \family roman
5302 on
5303 \family default
5304  
5305 \family roman
5306 \emph on
5307 char
5308 \emph default
5309 .
5310  T
5311 \shape up
5312 he
5313 \family default
5314 \shape default
5315  
5316 \family roman
5317 \shape up
5318 \emph on
5319 accent
5320 \family default
5321 \shape default
5322 \emph default
5323  
5324 \family roman
5325 \shape up
5326 must
5327 \family default
5328 \shape default
5329  
5330 \shape up
5331 have been assigned a keystroke with a previous
5332 \shape default
5333  
5334 \begin_inset Flex Code
5335 status collapsed
5336
5337 \begin_layout Plain Layout
5338
5339 \shape up
5340
5341 \backslash
5342 kmo
5343 \shape default
5344 d
5345 \end_layout
5346
5347 \end_inset
5348
5349  declar
5350 \family roman
5351 ation and
5352 \family default
5353  
5354 \family roman
5355 \emph on
5356 char
5357 \family default
5358 \emph default
5359  
5360 \family roman
5361 must not belong in the
5362 \family default
5363  
5364 \family roman
5365 \emph on
5366 allowed
5367 \family default
5368 \emph default
5369  
5370 \family roman
5371 set of
5372 \family default
5373  
5374 \family roman
5375 \emph on
5376 accent
5377 \emph default
5378 .
5379  When
5380 \family default
5381  
5382 \family roman
5383 \shape up
5384 you enter the
5385 \family default
5386 \shape default
5387  
5388 \family roman
5389 \shape up
5390 \emph on
5391 accent char
5392 \family default
5393 \shape default
5394 \emph default
5395  
5396 \family roman
5397 \shape up
5398 sequence,
5399
5400 \family default
5401 \shape default
5402  
5403 \family roman
5404 \shape up
5405 \emph on
5406 result
5407 \emph default
5408  is produced.
5409  If such a declaration does not exist in
5410 \family default
5411 \shape default
5412  
5413 \shape up
5414 the
5415 \shape default
5416  
5417 \begin_inset Flex Code
5418 status collapsed
5419
5420 \begin_layout Plain Layout
5421
5422 \shape up
5423 .kmap
5424 \end_layout
5425
5426 \end_inset
5427
5428  file and yo
5429 \family roman
5430 u enter
5431 \family default
5432  
5433 \family roman
5434 \emph on
5435 accent char
5436 \emph default
5437 ,
5438  you get
5439 \family default
5440  
5441 \family roman
5442 \emph on
5443 accent_key char
5444 \emph default
5445  where
5446 \family default
5447  
5448 \family roman
5449 \emph on
5450 accent_key
5451 \emph default
5452  is the first arg
5453 \family default
5454 ument of the 
5455 \begin_inset Flex Code
5456 status collapsed
5457
5458 \begin_layout Plain Layout
5459
5460 \shape up
5461
5462 \backslash
5463 kmod
5464 \end_layout
5465
5466 \end_inset
5467
5468  declaration.
5469  
5470 \end_layout
5471
5472 \begin_layout Standard
5473 The following command produces causes äi to be produced when you enter acute-i ('i):
5474 \end_layout
5475
5476 \begin_layout LyX-Code
5477
5478 \backslash
5479 kxmod acute i "
5480 \backslash
5481
5482 \backslash
5483 '{
5484 \backslash
5485
5486 \backslash
5487 i}"
5488 \end_layout
5489
5490 \begin_layout Labeling
5491 \labelwidthstring 00.00.0000
5492 \begin_inset Flex Code
5493 status collapsed
5494
5495 \begin_layout Plain Layout
5496 kcomb
5497 \end_layout
5498
5499 \end_inset
5500
5501  Combine two accent characters
5502 \end_layout
5503
5504 \begin_layout LyX-Code
5505
5506 \backslash
5507 kcomb 
5508 \family roman
5509 \emph on
5510 accent1 accent2 allowed
5511 \end_layout
5512
5513 \begin_layout Standard
5514 This one is getting pretty esoteric.
5515  It allows you to combine the effect 
5516 \family roman
5517 of
5518 \family default
5519  
5520 \family roman
5521 \emph on
5522 accent1
5523 \family default
5524 \emph default
5525  
5526 \family roman
5527 and
5528 \family default
5529  
5530 \family roman
5531 \emph on
5532 accent2
5533 \family default
5534 \emph default
5535  
5536 \family roman
5537 (in that order!) on
5538 \family default
5539  
5540 \family roman
5541 \emph on
5542 allowed
5543 \family default
5544 \emph default
5545  
5546 \family roman
5547 chars.
5548  The keystrokes for
5549 \family default
5550  
5551 \family roman
5552 \emph on
5553 accent1
5554 \family default
5555 \emph default
5556  
5557 \family roman
5558 and
5559 \family default
5560  
5561 \family roman
5562 \emph on
5563 accent2
5564 \family default
5565 \emph default
5566  
5567 \family roman
5568 must have be
5569 \family default
5570 en set with a 
5571 \begin_inset Flex Code
5572 status collapsed
5573
5574 \begin_layout Plain Layout
5575
5576 \shape up
5577
5578 \backslash
5579 kmod
5580 \end_layout
5581
5582 \end_inset
5583
5584  command at 
5585 \family roman
5586 a
5587 \family default
5588  
5589 \family roman
5590 \emph on
5591 previous
5592 \family default
5593 \emph default
5594  
5595 \family roman
5596 point in the
5597 \family default
5598  file.
5599  
5600 \end_layout
5601
5602 \begin_layout Standard
5603 Consider this example from the 
5604 \begin_inset Flex Code
5605 status collapsed
5606
5607 \begin_layout Plain Layout
5608
5609 \shape up
5610 greek.kmap
5611 \end_layout
5612
5613 \end_inset
5614
5615  file:
5616 \end_layout
5617
5618 \begin_layout LyX-Code
5619
5620 \backslash
5621 kmod ;
5622  acute aeioyvhAEIOYVH 
5623 \backslash
5624 kmod :
5625  umlaut iyIY 
5626 \backslash
5627 kcomb acute umlaut iyIY
5628 \end_layout
5629
5630 \begin_layout Standard
5631 This allows you to press 
5632 \begin_inset Flex Noun
5633 status collapsed
5634
5635 \begin_layout Plain Layout
5636
5637 \shape up
5638 ;:i
5639 \end_layout
5640
5641 \end_inset
5642
5643  and get the effect of 
5644 \begin_inset Flex Code
5645 status collapsed
5646
5647 \begin_layout Plain Layout
5648
5649 \shape up
5650
5651 \backslash
5652 '{
5653 \backslash
5654 "{i}}
5655 \end_layout
5656
5657 \end_inset
5658
5659 .
5660  
5661 \family roman
5662 \shape up
5663 A backspace
5664 \family default
5665 \shape default
5666  in this case cancels the last dead key,
5667  so if you press 
5668 \begin_inset Flex Noun
5669 status collapsed
5670
5671 \begin_layout Plain Layout
5672
5673 \shape up
5674 ;:
5675  Backspace i
5676 \end_layout
5677
5678 \end_inset
5679
5680  you get 
5681 \begin_inset Flex Code
5682 status collapsed
5683
5684 \begin_layout Plain Layout
5685
5686 \shape up
5687
5688 \backslash
5689 '{i}
5690 \end_layout
5691
5692 \end_inset
5693
5694 .
5695 \end_layout
5696
5697 \begin_layout Subsection
5698 The .cdef File
5699 \end_layout
5700
5701 \begin_layout Standard
5702 After the 
5703 \begin_inset Flex Code
5704 status collapsed
5705
5706 \begin_layout Plain Layout
5707
5708 \shape up
5709 .kmap
5710 \end_layout
5711
5712 \end_inset
5713
5714  mapping is performed,
5715  a 
5716 \begin_inset Flex Code
5717 status collapsed
5718
5719 \begin_layout Plain Layout
5720
5721 \shape up
5722 .cde
5723 \shape default
5724 f
5725 \end_layout
5726
5727 \end_inset
5728
5729  file maps the strings that the symbols generate to characters in the current font.
5730  The \SpecialChar LyX
5731  distribution currently includes at least the 
5732 \begin_inset Flex Code
5733 status collapsed
5734
5735 \begin_layout Plain Layout
5736
5737 \shape up
5738 iso8859-1.cdef
5739 \end_layout
5740
5741 \end_inset
5742
5743  and 
5744 \begin_inset Flex Code
5745 status collapsed
5746
5747 \begin_layout Plain Layout
5748
5749 \shape up
5750 iso8859-2.cdef
5751 \end_layout
5752
5753 \end_inset
5754
5755  files.
5756 \end_layout
5757
5758 \begin_layout Standard
5759 In general the 
5760 \begin_inset Flex Code
5761 status collapsed
5762
5763 \begin_layout Plain Layout
5764
5765 \shape up
5766 .cdef
5767 \end_layout
5768
5769 \end_inset
5770
5771  file is a sequence of declarations of the form
5772 \end_layout
5773
5774 \begin_layout LyX-Code
5775
5776 \family roman
5777 \emph on
5778 char_index_in_set
5779 \family default
5780 \emph default
5781  
5782 \family roman
5783 \emph on
5784  string
5785 \end_layout
5786
5787 \begin_layout Standard
5788 For example,
5789  in order to map 
5790 \begin_inset Flex Noun
5791 status collapsed
5792
5793 \begin_layout Plain Layout
5794
5795 \shape up
5796
5797 \backslash
5798 '{e}
5799 \end_layout
5800
5801 \end_inset
5802
5803  to the corresponding character in the iso-8859-1 set (233),
5804  the following declaration is used
5805 \end_layout
5806
5807 \begin_layout LyX-Code
5808 233 "
5809 \backslash
5810
5811 \backslash
5812 '{e}"
5813 \end_layout
5814
5815 \begin_layout Standard
5816 with 
5817 \begin_inset Flex Code
5818 status collapsed
5819
5820 \begin_layout Plain Layout
5821
5822 \backslash
5823
5824 \end_layout
5825
5826 \end_inset
5827
5828  and 
5829 \begin_inset Flex Code
5830 status collapsed
5831
5832 \begin_layout Plain Layout
5833 "
5834 \end_layout
5835
5836 \end_inset
5837
5838  being escap
5839 \family roman
5840 ed in
5841 \family default
5842  
5843 \family roman
5844 \emph on
5845 string
5846 \emph default
5847 .
5848  Note that
5849 \family default
5850  the same character can apply to more than one string.
5851  In the 
5852 \begin_inset Flex Code
5853 status collapsed
5854
5855 \begin_layout Plain Layout
5856 i
5857 \shape up
5858 so-8859-7.cdef
5859 \end_layout
5860
5861 \end_inset
5862
5863  file you have
5864 \end_layout
5865
5866 \begin_layout LyX-Code
5867 192 "
5868 \backslash
5869
5870 \backslash
5871 '{
5872 \backslash
5873
5874 \backslash
5875
5876 \backslash
5877 "{i}}"
5878 \begin_inset Newline newline
5879 \end_inset
5880
5881 192 "
5882 \backslash
5883
5884 \backslash
5885
5886 \backslash
5887 "{
5888 \backslash
5889
5890 \backslash
5891 '{i}}"
5892 \end_layout
5893
5894 \begin_layout Standard
5895 If \SpecialChar LyX
5896  cannot find a mapping for the string produced by the keystroke or a deadkey sequence,
5897  it will check if it looks like an accented char and try to draw an accent over the character on screen.
5898 \end_layout
5899
5900 \begin_layout Subsection
5901 Dead Keys
5902 \end_layout
5903
5904 \begin_layout Standard
5905 There is a second way to add support for international characters through so-called dead-keys.
5906  A dead-key works in combination with a letter to produce an accented character.
5907  Here,
5908  we'll explain how to create a really simple dead-key to illustrate how they work.
5909 \end_layout
5910
5911 \begin_layout Standard
5912 Suppose you happen to need the circumflex character,
5913  
5914 \begin_inset Quotes eld
5915 \end_inset
5916
5917  ̂
5918 \begin_inset Quotes erd
5919 \end_inset
5920
5921 .
5922  You could bind the 
5923 \begin_inset Flex Noun
5924 status collapsed
5925
5926 \begin_layout Plain Layout
5927 ^
5928 \end_layout
5929
5930 \end_inset
5931
5932 -key [a.k.a.
5933 \begin_inset space ~
5934 \end_inset
5935
5936
5937 \begin_inset Flex Noun
5938 status collapsed
5939
5940 \begin_layout Plain Layout
5941 Shift-6
5942 \end_layout
5943
5944 \end_inset
5945
5946 ] to the \SpecialChar LyX
5947  command 
5948 \begin_inset Flex Code
5949 status collapsed
5950
5951 \begin_layout Plain Layout
5952 accent-circumflex
5953 \end_layout
5954
5955 \end_inset
5956
5957  in your 
5958 \begin_inset Flex Code
5959 status collapsed
5960
5961 \begin_layout Plain Layout
5962 lyxrc
5963 \end_layout
5964
5965 \end_inset
5966
5967  file.
5968  Now,
5969  whenever you type the 
5970 \begin_inset Flex Noun
5971 status collapsed
5972
5973 \begin_layout Plain Layout
5974 ^
5975 \end_layout
5976
5977 \end_inset
5978
5979 -key followed by a letter,
5980  that letter will have a circumflex accent on it.
5981  For example,
5982  the sequence 
5983 \begin_inset Quotes eld
5984 \end_inset
5985
5986
5987 \begin_inset Flex Noun
5988 status collapsed
5989
5990 \begin_layout Plain Layout
5991 ^e
5992 \end_layout
5993
5994 \end_inset
5995
5996
5997 \begin_inset Quotes erd
5998 \end_inset
5999
6000  produces the letter:
6001  
6002 \begin_inset Quotes eld
6003 \end_inset
6004
6005 ê
6006 \begin_inset Quotes erd
6007 \end_inset
6008
6009 .
6010  If you tried to type 
6011 \begin_inset Quotes eld
6012 \end_inset
6013
6014
6015 \begin_inset Flex Noun
6016 status collapsed
6017
6018 \begin_layout Plain Layout
6019 ^t
6020 \end_layout
6021
6022 \end_inset
6023
6024
6025 \begin_inset Quotes erd
6026 \end_inset
6027
6028 ,
6029  however,
6030  \SpecialChar LyX
6031  will complain with a beep,
6032  since a 
6033 \begin_inset Quotes eld
6034 \end_inset
6035
6036
6037 \begin_inset Flex Noun
6038 status collapsed
6039
6040 \begin_layout Plain Layout
6041 t
6042 \end_layout
6043
6044 \end_inset
6045
6046
6047 \begin_inset Quotes erd
6048 \end_inset
6049
6050  never takes a circumflex accent.
6051  Hitting 
6052 \begin_inset Flex Noun
6053 status collapsed
6054
6055 \begin_layout Plain Layout
6056 Space
6057 \end_layout
6058
6059 \end_inset
6060
6061  after a dead-key produces the bare-accent.
6062  Please note this last point!
6063  If you bind a key to a dead-key,
6064  you'll need to rebind the character on that key to yet another key.
6065  Binding the 
6066 \begin_inset Flex Noun
6067 status collapsed
6068
6069 \begin_layout Plain Layout
6070 ,-key
6071 \end_layout
6072
6073 \end_inset
6074
6075  to a cedilla is a bad idea,
6076  since you'll only get cedillas instead of commas.
6077 \end_layout
6078
6079 \begin_layout Standard
6080 One common way to bind dead-keys is to use 
6081 \begin_inset Flex Noun
6082 status collapsed
6083
6084 \begin_layout Plain Layout
6085 Meta-
6086 \end_layout
6087
6088 \end_inset
6089
6090 ,
6091  
6092 \begin_inset Flex Noun
6093 status collapsed
6094
6095 \begin_layout Plain Layout
6096 Ctrl-
6097 \end_layout
6098
6099 \end_inset
6100
6101 ,
6102  and 
6103 \begin_inset Flex Noun
6104 status collapsed
6105
6106 \begin_layout Plain Layout
6107 Shift-
6108 \end_layout
6109
6110 \end_inset
6111
6112  in combination with an accent,
6113  like 
6114 \begin_inset Quotes eld
6115 \end_inset
6116
6117
6118 \begin_inset Flex Noun
6119 status collapsed
6120
6121 \begin_layout Plain Layout
6122 ~
6123 \end_layout
6124
6125 \end_inset
6126
6127
6128 \begin_inset Quotes erd
6129 \end_inset
6130
6131  or 
6132 \begin_inset Quotes eld
6133 \end_inset
6134
6135
6136 \begin_inset Flex Noun
6137 status collapsed
6138
6139 \begin_layout Plain Layout
6140 ,
6141 \end_layout
6142
6143 \end_inset
6144
6145
6146 \begin_inset Quotes erd
6147 \end_inset
6148
6149  or 
6150 \begin_inset Quotes eld
6151 \end_inset
6152
6153
6154 \begin_inset Flex Noun
6155 status collapsed
6156
6157 \begin_layout Plain Layout
6158 ^
6159 \end_layout
6160
6161 \end_inset
6162
6163
6164 \begin_inset Quotes erd
6165 \end_inset
6166
6167 .
6168  Another way involves using 
6169 \begin_inset Flex Code
6170 status collapsed
6171
6172 \begin_layout Plain Layout
6173 xmodmap
6174 \end_layout
6175
6176 \end_inset
6177
6178  and 
6179 \begin_inset Flex Code
6180 status collapsed
6181
6182 \begin_layout Plain Layout
6183 xkeycaps
6184 \end_layout
6185
6186 \end_inset
6187
6188  to set up the special 
6189 \begin_inset Flex Code
6190 status collapsed
6191
6192 \begin_layout Plain Layout
6193 Mode_Switch
6194 \end_layout
6195
6196 \end_inset
6197
6198  key.
6199  The 
6200 \begin_inset Flex Code
6201 status collapsed
6202
6203 \begin_layout Plain Layout
6204 Mode_Switch
6205 \end_layout
6206
6207 \end_inset
6208
6209  acts in some ways just like 
6210 \begin_inset Flex Noun
6211 status collapsed
6212
6213 \begin_layout Plain Layout
6214 Shift
6215 \end_layout
6216
6217 \end_inset
6218
6219  and permits you to bind keys to accented characters.
6220  You can also turn keys into dead-keys by binding them to something like 
6221 \begin_inset Flex Code
6222 status collapsed
6223
6224 \begin_layout Plain Layout
6225 usldead_cedilla
6226 \end_layout
6227
6228 \end_inset
6229
6230  and then binding this symbolic key to the corresponding \SpecialChar LyX
6231  command.
6232 \begin_inset Foot
6233 status collapsed
6234
6235 \begin_layout Plain Layout
6236 Note from 
6237 \noun on
6238 John Weiss
6239 \noun default
6240 :
6241  This is exactly what I do in my 
6242 \begin_inset Flex Code
6243 status collapsed
6244
6245 \begin_layout Plain Layout
6246 ~/.lyx/lyxrc
6247 \end_layout
6248
6249 \end_inset
6250
6251  and my 
6252 \begin_inset Flex Code
6253 status collapsed
6254
6255 \begin_layout Plain Layout
6256 ~/.xmodmap
6257 \end_layout
6258
6259 \end_inset
6260
6261  files.
6262  I have my 
6263 \begin_inset Flex Noun
6264 status collapsed
6265
6266 \begin_layout Plain Layout
6267 Scroll
6268 \begin_inset space ~
6269 \end_inset
6270
6271 Lock
6272 \end_layout
6273
6274 \end_inset
6275
6276  key set up as 
6277 \begin_inset Flex Code
6278 status collapsed
6279
6280 \begin_layout Plain Layout
6281 Mode_Shift
6282 \end_layout
6283
6284 \end_inset
6285
6286  and a bunch of these 
6287 \begin_inset Quotes eld
6288 \end_inset
6289
6290
6291 \begin_inset Flex Code
6292 status collapsed
6293
6294 \begin_layout Plain Layout
6295 usldead_*
6296 \end_layout
6297
6298 \end_inset
6299
6300
6301 \begin_inset Quotes erd
6302 \end_inset
6303
6304  symbolic keys bound such things as 
6305 \begin_inset Flex Noun
6306 status collapsed
6307
6308 \begin_layout Plain Layout
6309 Scroll
6310 \begin_inset space ~
6311 \end_inset
6312
6313 Lock-^
6314 \end_layout
6315
6316 \end_inset
6317
6318  and 
6319 \begin_inset Flex Noun
6320 status collapsed
6321
6322 \begin_layout Plain Layout
6323 Scroll
6324 \begin_inset space ~
6325 \end_inset
6326
6327 Lock-~
6328 \end_layout
6329
6330 \end_inset
6331
6332 .
6333  This is how I produce my accented characters.
6334 \end_layout
6335
6336 \end_inset
6337
6338  You can make just about anything into the 
6339 \begin_inset Flex Code
6340 status collapsed
6341
6342 \begin_layout Plain Layout
6343 Mode_Switch
6344 \end_layout
6345
6346 \end_inset
6347
6348  key:
6349  One of the 
6350 \begin_inset Flex Noun
6351 status collapsed
6352
6353 \begin_layout Plain Layout
6354 Ctrl-
6355 \end_layout
6356
6357 \end_inset
6358
6359  keys,
6360  a spare function key,
6361  etc.
6362  As for the \SpecialChar LyX
6363  commands that produce accents,
6364  check the entry for 
6365 \begin_inset Flex Code
6366 status collapsed
6367
6368 \begin_layout Plain Layout
6369 accent-acute
6370 \end_layout
6371
6372 \end_inset
6373
6374  in the 
6375 \emph on
6376 Reference Manual
6377 \emph default
6378 .
6379  You'll find the complete list there.
6380 \end_layout
6381
6382 \begin_layout Subsection
6383 Saving your Language Configuration
6384 \end_layout
6385
6386 \begin_layout Standard
6387 You can edit your preferences so that your desired language environment is automatically configured when \SpecialChar LyX
6388  starts up,
6389  via the 
6390 \begin_inset Flex Noun
6391 status collapsed
6392
6393 \begin_layout Plain Layout
6394 Edit\SpecialChar menuseparator
6395 Preferences
6396 \end_layout
6397
6398 \end_inset
6399
6400  dialog.
6401 \end_layout
6402
6403 \begin_layout Chapter
6404
6405 \change_inserted -584632292 1610232084
6406 Creating and 
6407 \change_unchanged
6408 Installing New Document Classes,
6409  Layouts,
6410  and Templates
6411 \begin_inset CommandInset label
6412 LatexCommand label
6413 name "cha:Installing-New-Document"
6414
6415 \end_inset
6416
6417
6418 \begin_inset Argument 1
6419 status collapsed
6420
6421 \begin_layout Plain Layout
6422 Installing New Document Classes
6423 \end_layout
6424
6425 \end_inset
6426
6427
6428 \end_layout
6429
6430 \begin_layout Standard
6431 In this chapter,
6432  we describe the procedures for creating and installing new \SpecialChar LyX
6433  layout and template files,
6434  as well as offer a refresher on correctly installing new \SpecialChar LaTeX
6435  document classes.
6436  
6437 \end_layout
6438
6439 \begin_layout Standard
6440 First,
6441  let us a say a few words about how one ought to think about the relation between \SpecialChar LyX
6442  and \SpecialChar LaTeX
6443 .
6444  The thing to understand is that,
6445  in a certain sense,
6446  \SpecialChar LyX
6447  doesn't know anything about \SpecialChar LaTeX
6448 .
6449  Indeed,
6450  from \SpecialChar LyX
6451 's point of view,
6452  \SpecialChar LaTeX
6453  is just one of several 
6454 \begin_inset Quotes eld
6455 \end_inset
6456
6457 backend formats
6458 \begin_inset Quotes erd
6459 \end_inset
6460
6461  in which it is capable of producing output.
6462  Other such formats are DocBook,
6463  plaintext,
6464  and XHTML.
6465  \SpecialChar LaTeX
6466  is,
6467  of course,
6468  a particularly important format,
6469  but very little of the information \SpecialChar LyX
6470  has about \SpecialChar LaTeX
6471  is actually contained in the program itself.
6472 \begin_inset Foot
6473 status collapsed
6474
6475 \begin_layout Plain Layout
6476 Some commands are sufficiently complex that they are 
6477 \begin_inset Quotes eld
6478 \end_inset
6479
6480 hardcoded
6481 \begin_inset Quotes erd
6482 \end_inset
6483
6484  into \SpecialChar LyX
6485 .
6486  But the developers generally regard this as a Bad Thing.
6487 \end_layout
6488
6489 \end_inset
6490
6491  Rather,
6492  that information,
6493  even for the standard classes like 
6494 \begin_inset Flex Code
6495 status collapsed
6496
6497 \begin_layout Plain Layout
6498 article.cls
6499 \end_layout
6500
6501 \end_inset
6502
6503 ,
6504  is contained in `layout files'.
6505  Similarly,
6506  \SpecialChar LyX
6507  itself does not know much about DocBook or XHTML.
6508  What it knows is contained in layout files.
6509 \end_layout
6510
6511 \begin_layout Standard
6512 You can think of the layout file for a given document class as a translation manual between \SpecialChar LyX
6513  constructs—
6514 paragraphs with their corresponding styles,
6515  certain sorts of insets,
6516  etc—
6517 and the corresponding \SpecialChar LaTeX
6518 ,
6519  DocBook,
6520  or XHTML constructs.
6521  Almost everything \SpecialChar LyX
6522  knows about 
6523 \begin_inset Flex Code
6524 status collapsed
6525
6526 \begin_layout Plain Layout
6527 article.cls
6528 \end_layout
6529
6530 \end_inset
6531
6532 ,
6533  for example,
6534  is contained in the file 
6535 \begin_inset Flex Code
6536 status collapsed
6537
6538 \begin_layout Plain Layout
6539 article.layout
6540 \end_layout
6541
6542 \end_inset
6543
6544  and in various other files it includes.
6545  For this reason,
6546  anyone intending to write layout files should plan to study the existing files.
6547  A good place to start is with 
6548 \begin_inset Flex Code
6549 status collapsed
6550
6551 \begin_layout Plain Layout
6552 stdsections.inc
6553 \end_layout
6554
6555 \end_inset
6556
6557 ,
6558  which is included in 
6559 \begin_inset Flex Code
6560 status collapsed
6561
6562 \begin_layout Plain Layout
6563 article.layout
6564 \end_layout
6565
6566 \end_inset
6567
6568 ,
6569  
6570 \begin_inset Flex Code
6571 status collapsed
6572
6573 \begin_layout Plain Layout
6574 book.layout
6575 \end_layout
6576
6577 \end_inset
6578
6579 ,
6580  and many of the other layout files for document classes.
6581  This file is where sections and the like are defined:
6582  
6583 \begin_inset Flex Code
6584 status collapsed
6585
6586 \begin_layout Plain Layout
6587 stdsections.inc
6588 \end_layout
6589
6590 \end_inset
6591
6592  tells \SpecialChar LyX
6593  how paragraphs that are marked with the Section,
6594  Subsection,
6595  etc,
6596  styles can be translated into corresponding \SpecialChar LaTeX
6597 ,
6598  DocBook,
6599  and XHTML commands and tags.
6600  The 
6601 \begin_inset Flex Code
6602 status collapsed
6603
6604 \begin_layout Plain Layout
6605 article.layout
6606 \end_layout
6607
6608 \end_inset
6609
6610  file basically just includes several of these 
6611 \begin_inset Flex Code
6612 status collapsed
6613
6614 \begin_layout Plain Layout
6615 std*.inc
6616 \end_layout
6617
6618 \end_inset
6619
6620  files.
6621 \end_layout
6622
6623 \begin_layout Standard
6624 Defining the \SpecialChar LyX
6625 –\SpecialChar LaTeX
6626  correspondence is not the only thing layout files do,
6627  though.
6628  Their other job is to define how the \SpecialChar LyX
6629  constructs themselves will appear on-screen.
6630  The fact that layout files have these two jobs is often a source of confusion,
6631  because they are completely separate.
6632  Telling \SpecialChar LyX
6633  how to translate a certain paragraph style into \SpecialChar LaTeX
6634  does not tell \SpecialChar LyX
6635  how to display it;
6636  conversely,
6637  telling \SpecialChar LyX
6638  how to display a certain paragraph style does not tell \SpecialChar LyX
6639  how to translate it into \SpecialChar LaTeX
6640  (let alone tell \SpecialChar LaTeX
6641  how to display it).
6642  So,
6643  in general,
6644  when you define a new \SpecialChar LyX
6645  construct,
6646  you must always do two quite separate things:
6647  (i)
6648 \begin_inset space ~
6649 \end_inset
6650
6651 tell \SpecialChar LyX
6652  how to translate it into \SpecialChar LaTeX
6653  and (ii)
6654 \begin_inset space ~
6655 \end_inset
6656
6657 tell \SpecialChar LyX
6658  how to display it.
6659 \end_layout
6660
6661 \begin_layout Standard
6662 Much the same is true,
6663  of course,
6664  as regards \SpecialChar LyX
6665 's other backend formats,
6666  though XHTML is in some ways different,
6667  because in that case \SpecialChar LyX
6668  
6669 \emph on
6670 is
6671 \emph default
6672  able,
6673  to some extent,
6674  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.
6675  Even in this case,
6676  however,
6677  the distinction between what \SpecialChar LyX
6678  does internally and how things are rendered externally remains in force,
6679  and the two can be controlled separately.
6680  See 
6681 \begin_inset CommandInset ref
6682 LatexCommand ref
6683 reference "sec:Tags-for-XHTML"
6684 nolink "false"
6685
6686 \end_inset
6687
6688  for the details.
6689 \end_layout
6690
6691 \begin_layout Section
6692 Installing new \SpecialChar LaTeX
6693  files
6694 \end_layout
6695
6696 \begin_layout Standard
6697 Some installations may not include a \SpecialChar LaTeX
6698  package or class file that you would like to use within \SpecialChar LyX
6699 .
6700  For example,
6701  you might need Foil\SpecialChar TeX
6702 ,
6703  a package for preparing slides for overhead projectors.
6704  Modern \SpecialChar LaTeX
6705  distributions like \SpecialChar TeX
6706 Live (2008 or newer) or MiK\SpecialChar TeX
6707  provide a user interface for installing such packages.
6708  For example,
6709  with MiK\SpecialChar TeX
6710 ,
6711  you start the program 
6712 \begin_inset Quotes eld
6713 \end_inset
6714
6715 Package
6716 \begin_inset space ~
6717 \end_inset
6718
6719 Manager
6720 \begin_inset Quotes erd
6721 \end_inset
6722
6723  to get a list of available packages.
6724  To install one of them,
6725  right click on it or use the corresponding toolbar button.
6726 \end_layout
6727
6728 \begin_layout Standard
6729 If your \SpecialChar LaTeX
6730  distribution does not provide such a `package manager',
6731  or if the package is not available from your distribution,
6732  then follow these steps to install it manually:
6733 \end_layout
6734
6735 \begin_layout Enumerate
6736 Get the package from 
6737 \begin_inset CommandInset href
6738 LatexCommand href
6739 name "CTAN"
6740 target "http://www.ctan.org/"
6741 literal "false"
6742
6743 \end_inset
6744
6745  or wherever.
6746 \end_layout
6747
6748 \begin_layout Enumerate
6749 If the package contains a file with the ending 
6750 \begin_inset Quotes eld
6751 \end_inset
6752
6753
6754 \begin_inset Flex Code
6755 status collapsed
6756
6757 \begin_layout Plain Layout
6758 .ins
6759 \end_layout
6760
6761 \end_inset
6762
6763
6764 \begin_inset Quotes erd
6765 \end_inset
6766
6767  (is the case for Foil\SpecialChar TeX
6768 ) then open a console,
6769  change to the folder of this file and execute the command 
6770 \begin_inset Flex Code
6771 status collapsed
6772
6773 \begin_layout Plain Layout
6774 latex foiltex.ins
6775 \end_layout
6776
6777 \end_inset
6778
6779 .
6780  You have now unpacked the package and have all files to install it.
6781  Most \SpecialChar LaTeX
6782 -packages are not packed and you can skip this step.
6783 \end_layout
6784
6785 \begin_layout Enumerate
6786 Now you need to decide if the package should be available for all users or only for you.
6787 \end_layout
6788
6789 \begin_deeper
6790 \begin_layout Enumerate
6791 On *nix systems (Linux,
6792  OSX,
6793  etc.),
6794  if you want the new package to be available for all users on your system,
6795  then install it in your `local' \SpecialChar TeX
6796  tree,
6797  otherwise install it in your own `user' \SpecialChar TeX
6798  tree.
6799  Where these trees should be created,
6800  if they do not already exist,
6801  depends on your system.
6802  To find this out,
6803  look in the file 
6804 \begin_inset Flex Code
6805 status collapsed
6806
6807 \begin_layout Plain Layout
6808 texmf.cnf
6809 \end_layout
6810
6811 \end_inset
6812
6813 .
6814 \begin_inset Foot
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818 This is usually in the directory 
6819 \begin_inset Flex Code
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823 $TEXMF/web2c
6824 \end_layout
6825
6826 \end_inset
6827
6828 ,
6829  though you can execute the command 
6830 \begin_inset Flex Code
6831 status collapsed
6832
6833 \begin_layout Plain Layout
6834 kpsewhich texmf.cnf
6835 \end_layout
6836
6837 \end_inset
6838
6839  to locate it.
6840 \end_layout
6841
6842 \end_inset
6843
6844  The location of the `local' \SpecialChar TeX
6845  tree is defined by the 
6846 \begin_inset Flex Code
6847 status collapsed
6848
6849 \begin_layout Plain Layout
6850 TEXMFLOCAL
6851 \end_layout
6852
6853 \end_inset
6854
6855  variable;
6856  this is usually somewhere like 
6857 \begin_inset Flex Code
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 /usr/local/share/texmf
6862 \end_layout
6863
6864 \end_inset
6865
6866  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6867 Live distribution.
6868  The location of the `user' \SpecialChar TeX
6869  tree is defined by 
6870 \begin_inset Flex Code
6871 status collapsed
6872
6873 \begin_layout Plain Layout
6874 TEXMFHOME
6875 \end_layout
6876
6877 \end_inset
6878
6879  and is commonly 
6880 \begin_inset Flex Code
6881 status collapsed
6882
6883 \begin_layout Plain Layout
6884 $HOME/texmf
6885 \end_layout
6886
6887 \end_inset
6888
6889  or 
6890 \begin_inset Flex Code
6891 status collapsed
6892
6893 \begin_layout Plain Layout
6894
6895 \family sans
6896 $HOME/.texliveXXXX
6897 \end_layout
6898
6899 \end_inset
6900
6901 .
6902  (If these variables are not predefined,
6903  you have to define them.) You'll probably need root permissions to create or modify the `local' tree,
6904  but not for your `user' tree.
6905 \begin_inset Newline newline
6906 \end_inset
6907
6908 In general,
6909  it is recommended to install in the user tree because your user will not be modified or even overwritten when you upgrade your system.
6910  It will typically also be backed up together with everything else when you backup your home directory (which,
6911  of course,
6912  you do on a regular basis).
6913 \end_layout
6914
6915 \begin_layout Enumerate
6916 On Windows,
6917  if you want the new package to be available for all users on your system,
6918  change to the folder where \SpecialChar LaTeX
6919  is installed and then change to the subfolder 
6920 \begin_inset Flex Code
6921 status collapsed
6922
6923 \begin_layout Plain Layout
6924 ~
6925 \backslash
6926 tex
6927 \backslash
6928 latex
6929 \end_layout
6930
6931 \end_inset
6932
6933 .
6934  (For MiK\SpecialChar TeX
6935 ,
6936  this would be by default the folder 
6937 \begin_inset Flex Code
6938 status collapsed
6939
6940 \begin_layout Plain Layout
6941 ~:
6942 \backslash
6943 Programs
6944 \backslash
6945 MiKTeX
6946 \backslash
6947 tex
6948 \backslash
6949 latex
6950 \end_layout
6951
6952 \end_inset
6953
6954 .)
6955 \begin_inset Foot
6956 status collapsed
6957
6958 \begin_layout Plain Layout
6959 Note that this will be the correct path only on English installations.
6960  On a German one,
6961  it would be 
6962 \begin_inset Flex Code
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 ~:
6967 \backslash
6968 Programme
6969 \backslash
6970 MiKTeX
6971 \backslash
6972 tex
6973 \backslash
6974 latex
6975 \end_layout
6976
6977 \end_inset
6978
6979 ,
6980  and similarly for other languages.
6981 \end_layout
6982
6983 \end_inset
6984
6985  Create there a new folder 
6986 \begin_inset Flex Code
6987 status collapsed
6988
6989 \begin_layout Plain Layout
6990 foiltex
6991 \end_layout
6992
6993 \end_inset
6994
6995  and copy all files of the package into it.
6996  
6997 \begin_inset Newline newline
6998 \end_inset
6999
7000 If the package should only available for you or you don't have admin permissions,
7001  do the same,
7002  but in the local \SpecialChar LaTeX
7003  folder.
7004  E.
7005 \begin_inset space \thinspace{}
7006 \end_inset
7007
7008 g.,
7009  for MiK\SpecialChar TeX
7010
7011 \begin_inset space ~
7012 \end_inset
7013
7014 2.8 under Windows XP,
7015  this would be the folder:
7016 \begin_inset Newline newline
7017 \end_inset
7018
7019
7020 \family sans
7021
7022 \begin_inset Flex Code
7023 status collapsed
7024
7025 \begin_layout Plain Layout
7026 ~:
7027 \backslash
7028 Documents and Settings
7029 \backslash
7030 <username>
7031 \backslash
7032 Application Data
7033 \backslash
7034
7035 \end_layout
7036
7037 \end_inset
7038
7039
7040 \begin_inset Newline newline
7041 \end_inset
7042
7043
7044 \family default
7045
7046 \begin_inset Phantom HPhantom
7047 status open
7048
7049 \begin_layout Plain Layout
7050
7051 \family sans
7052 ~:
7053 \backslash
7054
7055 \end_layout
7056
7057 \end_inset
7058
7059
7060 \begin_inset Flex Code
7061 status collapsed
7062
7063 \begin_layout Plain Layout
7064 MiKTeX
7065 \backslash
7066 2.8
7067 \backslash
7068 tex
7069 \backslash
7070 latex
7071 \end_layout
7072
7073 \end_inset
7074
7075
7076 \begin_inset Newline newline
7077 \end_inset
7078
7079 On Vista,
7080  it would be:
7081 \begin_inset Newline newline
7082 \end_inset
7083
7084
7085 \begin_inset Flex Code
7086 status collapsed
7087
7088 \begin_layout Plain Layout
7089 ~:
7090 \backslash
7091 Users
7092 \backslash
7093 <username>
7094 \backslash
7095 AppData
7096 \backslash
7097 Roaming
7098 \backslash
7099 2.8
7100 \backslash
7101 MiKTeX
7102 \backslash
7103 tex
7104 \backslash
7105 latex
7106 \end_layout
7107
7108 \end_inset
7109
7110
7111 \end_layout
7112
7113 \end_deeper
7114 \begin_layout Enumerate
7115 Now one only need to tell \SpecialChar LaTeX
7116  that there are new files.
7117  This depends on the used \SpecialChar LaTeX
7118 -Distribution:
7119 \end_layout
7120
7121 \begin_deeper
7122 \begin_layout Enumerate
7123 For \SpecialChar TeX
7124 Live execute the command 
7125 \begin_inset Flex Code
7126 status collapsed
7127
7128 \begin_layout Plain Layout
7129 texhash
7130 \end_layout
7131
7132 \end_inset
7133
7134  from a console.
7135  If you installed the package for all users,
7136  then you will probably need to have root permissions for that.
7137 \end_layout
7138
7139 \begin_layout Enumerate
7140 For MiK\SpecialChar TeX
7141 ,
7142  if you have installed the package for all users,
7143  start the program 
7144 \begin_inset Quotes eld
7145 \end_inset
7146
7147 Settings
7148 \begin_inset space ~
7149 \end_inset
7150
7151 (Admin)
7152 \begin_inset Quotes erd
7153 \end_inset
7154
7155  and press the button marked 
7156 \begin_inset Quotes eld
7157 \end_inset
7158
7159 Refresh FNDB
7160 \begin_inset Quotes erd
7161 \end_inset
7162
7163 .
7164  Otherwise start the program 
7165 \begin_inset Quotes eld
7166 \end_inset
7167
7168 Settings
7169 \begin_inset Quotes erd
7170 \end_inset
7171
7172  and do the same.
7173 \end_layout
7174
7175 \end_deeper
7176 \begin_layout Enumerate
7177 Finally,
7178  you need to tell \SpecialChar LyX
7179  that there are new packages available.
7180  So,
7181  in \SpecialChar LyX
7182 ,
7183  use the menu 
7184 \begin_inset Flex Noun
7185 status collapsed
7186
7187 \begin_layout Plain Layout
7188 Tools
7189 \family sans
7190 \SpecialChar menuseparator
7191 Reconfigure
7192 \end_layout
7193
7194 \end_inset
7195
7196  and then restart \SpecialChar LyX
7197 .
7198 \end_layout
7199
7200 \begin_layout Standard
7201 Now the package is installed.
7202  In our example,
7203  the document class 
7204 \begin_inset Flex Code
7205 status collapsed
7206
7207 \begin_layout Plain Layout
7208 FoilTex
7209 \end_layout
7210
7211 \end_inset
7212
7213  will now be available under 
7214 \begin_inset Flex Noun
7215 status collapsed
7216
7217 \begin_layout Plain Layout
7218 Document\SpecialChar menuseparator
7219 Settings\SpecialChar menuseparator
7220 Document Class
7221 \end_layout
7222
7223 \end_inset
7224
7225  (in the 
7226 \begin_inset Quotes eld
7227 \end_inset
7228
7229 Presentations
7230 \begin_inset Quotes erd
7231 \end_inset
7232
7233  category).
7234  
7235 \end_layout
7236
7237 \begin_layout Standard
7238 If you would like to use a \SpecialChar LaTeX
7239  document class that is not even listed in the menu 
7240 \begin_inset Flex Noun
7241 status collapsed
7242
7243 \begin_layout Plain Layout
7244 Document\SpecialChar menuseparator
7245 Settings\SpecialChar menuseparator
7246 Document Class
7247 \end_layout
7248
7249 \end_inset
7250
7251 ,
7252  then you need to create a `layout' file for it.
7253  That is the topic of the next section.
7254 \end_layout
7255
7256 \begin_layout Section
7257 Types of layout files
7258 \end_layout
7259
7260 \begin_layout Standard
7261 This section describes the various sorts of \SpecialChar LyX
7262  files that contain layout information.
7263  These files describe various paragraph and character styles,
7264  determining how \SpecialChar LyX
7265  should display them and how they should be translated into \SpecialChar LaTeX
7266 ,
7267  DocBook,
7268  XHTML,
7269  or whatever output format is being used.
7270  
7271 \end_layout
7272
7273 \begin_layout Standard
7274 We shall try to provide a thorough description of the process of writing layout files here.
7275  However,
7276  there are so many different types of documents supported even by just \SpecialChar LaTeX
7277  that we can't hope to cover every different possibility or problem you might encounter.
7278  The \SpecialChar LyX
7279  users' list is frequented by people with lots of experience with layout design who are willing to share what they've learned,
7280  so please feel free to ask questions there.
7281 \end_layout
7282
7283 \begin_layout Standard
7284 As you prepare to write a new layout,
7285  it is extremely helpful to look at the layouts distributed with \SpecialChar LyX
7286 .
7287  If you write a \SpecialChar LyX
7288  layout for a \SpecialChar LaTeX
7289  document class that might also be used by others,
7290  or write a module that might be useful to others,
7291  then you should consider posting your layout to the 
7292 \begin_inset CommandInset href
7293 LatexCommand href
7294 name "layout section on the LyX wiki"
7295 target "https://wiki.lyx.org/Layouts/Layouts"
7296 literal "false"
7297
7298 \end_inset
7299
7300  or even to the \SpecialChar LyX
7301  developers' list,
7302  so that it might be included in \SpecialChar LyX
7303  itself.
7304 \begin_inset Foot
7305 status collapsed
7306
7307 \begin_layout Plain Layout
7308 Note that \SpecialChar LyX
7309  is licensed under the General Public License,
7310  so any material that is contributed to \SpecialChar LyX
7311  must be similarly licensed.
7312 \end_layout
7313
7314 \end_inset
7315
7316
7317 \end_layout
7318
7319 \begin_layout Subsection
7320 Layout modules
7321 \begin_inset CommandInset label
7322 LatexCommand label
7323 name "subsec:Layout-modules"
7324
7325 \end_inset
7326
7327
7328 \end_layout
7329
7330 \begin_layout Standard
7331 We have spoken to this point about `layout files'.
7332  But there are different sorts of files that contain layout information.
7333  Layout files,
7334  strictly so called,
7335  have the 
7336 \begin_inset Flex Code
7337 status collapsed
7338
7339 \begin_layout Plain Layout
7340 .layout
7341 \end_layout
7342
7343 \end_inset
7344
7345  extension and provide \SpecialChar LyX
7346  with information about document classes.
7347  Since \SpecialChar LyX
7348  1.6 layout information can also be contained in layout 
7349 \emph on
7350 modules
7351 \emph default
7352 ,
7353  which have the 
7354 \begin_inset Flex Code
7355 status collapsed
7356
7357 \begin_layout Plain Layout
7358 .module
7359 \end_layout
7360
7361 \end_inset
7362
7363  extension.
7364  Modules are to \SpecialChar LaTeX
7365  packages much as layouts are to \SpecialChar LaTeX
7366  classes,
7367  and some modules—
7368 such as the 
7369 \begin_inset Flex Code
7370 status collapsed
7371
7372 \begin_layout Plain Layout
7373 endnotes
7374 \end_layout
7375
7376 \end_inset
7377
7378  module—
7379 specifically provide support for one package.
7380  In a sense,
7381  layout modules are similar to included
7382 \begin_inset Foot
7383 status collapsed
7384
7385 \begin_layout Plain Layout
7386 These can have any extension,
7387  but by convention have the 
7388 \begin_inset Flex Code
7389 status collapsed
7390
7391 \begin_layout Plain Layout
7392 .inc
7393 \end_layout
7394
7395 \end_inset
7396
7397  extension.
7398 \end_layout
7399
7400 \end_inset
7401
7402  files—
7403 files like 
7404 \begin_inset Flex Code
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408 stdsections.inc
7409 \end_layout
7410
7411 \end_inset
7412
7413
7414 in that modules are not specific to a given document class but may be used with many different classes.
7415  The difference is that using an included file with 
7416 \begin_inset Flex Code
7417 status collapsed
7418
7419 \begin_layout Plain Layout
7420 article.cls
7421 \end_layout
7422
7423 \end_inset
7424
7425  requires editing that file.
7426  Modules,
7427  by contrast,
7428  are selected in the 
7429 \begin_inset Flex Noun
7430 status collapsed
7431
7432 \begin_layout Plain Layout
7433 Document\SpecialChar menuseparator
7434 Settings
7435 \end_layout
7436
7437 \end_inset
7438
7439  dialog.
7440 \end_layout
7441
7442 \begin_layout Standard
7443 Building modules is the easiest way to get started with layout editing,
7444  since it can be as simple as adding a single new paragraph style or flex inset.
7445  But modules may,
7446  in principle,
7447  contain anything a layout file can contain.
7448 \end_layout
7449
7450 \begin_layout Standard
7451 After creating a new module and copying it to the 
7452 \begin_inset Flex Code
7453 status collapsed
7454
7455 \begin_layout Plain Layout
7456 layouts/
7457 \end_layout
7458
7459 \end_inset
7460
7461  folder,
7462  you will need to reconfigure and then restart \SpecialChar LyX
7463  for the module to appear in the menu.
7464  However,
7465  changes you make to the module will be seen immediately,
7466  if you open 
7467 \begin_inset Flex Noun
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 Document\SpecialChar menuseparator
7472 Settings
7473 \end_layout
7474
7475 \end_inset
7476
7477 ,
7478  highlight something,
7479  and then hit 
7480 \begin_inset Quotes eld
7481 \end_inset
7482
7483 OK
7484 \begin_inset Quotes erd
7485 \end_inset
7486
7487 .
7488  
7489 \emph on
7490 It is strongly recommended that you save your work before doing this
7491 \emph default
7492 .
7493  In fact,
7494  
7495 \emph on
7496 it is strongly recommended that you not attempt to edit modules while simultaneously working on actual documents
7497 \emph default
7498 .
7499  Though of course the developers strive to keep \SpecialChar LyX
7500  stable in such situations,
7501  syntax errors and the like in your module file could cause strange behavior.
7502 \end_layout
7503
7504 \begin_layout Subsubsection
7505 Local Layout
7506 \end_layout
7507
7508 \begin_layout Standard
7509 Modules are to \SpecialChar LyX
7510  as packages are to \SpecialChar LaTeX
7511 .
7512  Sometimes,
7513  however,
7514  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.
7515  What you need is \SpecialChar LyX
7516 's 
7517 \begin_inset Quotes eld
7518 \end_inset
7519
7520 Local Layout
7521 \begin_inset Quotes erd
7522 \end_inset
7523
7524 .
7525 \end_layout
7526
7527 \begin_layout Standard
7528 You will find it under 
7529 \family sans
7530 Document\SpecialChar menuseparator
7531 Settings\SpecialChar menuseparator
7532 Local Layout
7533 \family default
7534 .
7535  The large text box allows you to enter anything that you might enter in a layout file or module.
7536  You can think of a document's local layout,
7537  in fact,
7538  as a module that belongs just to it.
7539  So,
7540  in particular,
7541  you must enter a 
7542 \begin_inset Flex Code
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546 Format
7547 \end_layout
7548
7549 \end_inset
7550
7551  tag.
7552  Any format is acceptable,
7553  but one would normally use the format current at the time.
7554  (In \SpecialChar LyX
7555  
7556 \begin_inset Info
7557 type  "lyxinfo"
7558 arg   "version"
7559 \end_inset
7560
7561 ,
7562  the current layout format is 
7563 \begin_inset Info
7564 type  "lyxinfo"
7565 arg   "layoutformat"
7566 \end_inset
7567
7568 .)
7569 \end_layout
7570
7571 \begin_layout Standard
7572 When you have entered something in the 
7573 \begin_inset Flex Code
7574 status collapsed
7575
7576 \begin_layout Plain Layout
7577 Local Layout
7578 \end_layout
7579
7580 \end_inset
7581
7582  pane,
7583  \SpecialChar LyX
7584  will enable the 
7585 \begin_inset Quotes eld
7586 \end_inset
7587
7588 Validate
7589 \begin_inset Quotes erd
7590 \end_inset
7591
7592  button at the bottom.
7593  Clicking this button will cause \SpecialChar LyX
7594  to determine whether what you have entered is valid layout information for the chosen format.
7595  \SpecialChar LyX
7596  will report the result but,
7597  unfortunately,
7598  will not tell you what errors there might have been.
7599  These will be written to the terminal,
7600  however,
7601  if \SpecialChar LyX
7602  is started from a terminal.
7603  You will not be permitted to save your local layout until you have entered something valid.
7604 \end_layout
7605
7606 \begin_layout Standard
7607 The warnings at the end of the previous section apply here,
7608  too.
7609  Do not play with local layout while you are actually working,
7610  especially if you have not saved your document.
7611  That said,
7612  using local layout with a test document can be a very convenient way to try out layout ideas,
7613  or even to start developing a module.
7614 \end_layout
7615
7616 \begin_layout Subsection
7617 Layout for 
7618 \begin_inset Flex Noun
7619 status collapsed
7620
7621 \begin_layout Plain Layout
7622 .sty
7623 \end_layout
7624
7625 \end_inset
7626
7627  files
7628 \end_layout
7629
7630 \begin_layout Standard
7631 There are two situations you are likely to encounter when wanting to support a new \SpecialChar LaTeX
7632  document class,
7633  involving style (
7634 \begin_inset Flex Code
7635 status collapsed
7636
7637 \begin_layout Plain Layout
7638 .sty
7639 \end_layout
7640
7641 \end_inset
7642
7643 ) files and \SpecialChar LaTeX2e
7644  class (
7645 \begin_inset Flex Code
7646 status collapsed
7647
7648 \begin_layout Plain Layout
7649 .cls
7650 \end_layout
7651
7652 \end_inset
7653
7654 ) .
7655  Supporting a style file is usually fairly easy.
7656  Supporting a new class file is a bit harder.
7657  We'll discuss the former in this section and the latter in the next.
7658  
7659 \change_deleted 5863208 1594239023
7660 Similar remarks apply,
7661  of course,
7662  if you want to support a new DocBook DTD.
7663 \change_unchanged
7664
7665 \end_layout
7666
7667 \begin_layout Standard
7668 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.
7669  For the sake of the example,
7670  we'll assume that the style file is called 
7671 \begin_inset Flex Noun
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 myclass.sty
7676 \end_layout
7677
7678 \end_inset
7679
7680  and that it is meant to be used with 
7681 \begin_inset Flex Noun
7682 status collapsed
7683
7684 \begin_layout Plain Layout
7685 report.cls
7686 \end_layout
7687
7688 \end_inset
7689
7690 ,
7691  which is a standard class.
7692  
7693 \end_layout
7694
7695 \begin_layout Standard
7696 Start by copying the existing class's layout file into your local directory:
7697 \begin_inset Foot
7698 status collapsed
7699
7700 \begin_layout Plain Layout
7701 Of course,
7702  which directory is your local directory will vary by platform,
7703  and \SpecialChar LyX
7704  allows you to specify your local directory on startup,
7705  too,
7706  using the 
7707 \begin_inset Flex Code
7708 status collapsed
7709
7710 \begin_layout Plain Layout
7711 -userdir
7712 \end_layout
7713
7714 \end_inset
7715
7716  option.
7717 \end_layout
7718
7719 \end_inset
7720
7721
7722 \end_layout
7723
7724 \begin_layout LyX-Code
7725 cp report.layout ~/.lyx/layouts/myclass.layout
7726 \end_layout
7727
7728 \begin_layout Standard
7729 Then edit 
7730 \begin_inset Flex Code
7731 status collapsed
7732
7733 \begin_layout Plain Layout
7734 myclass.layout
7735 \end_layout
7736
7737 \end_inset
7738
7739  and change the line:
7740  
7741 \end_layout
7742
7743 \begin_layout LyX-Code
7744
7745 \backslash
7746 DeclareLaTeXClass{Report (Standard Class)}
7747 \end_layout
7748
7749 \begin_layout Standard
7750 to read
7751 \end_layout
7752
7753 \begin_layout LyX-Code
7754
7755 \backslash
7756 DeclareLaTeXClass[report,
7757  myclass.sty]{Report (My Class)}
7758 \end_layout
7759
7760 \begin_layout Standard
7761 Then add:
7762 \end_layout
7763
7764 \begin_layout LyX-Code
7765 Preamble 
7766 \begin_inset Newline newline
7767 \end_inset
7768
7769     
7770 \backslash
7771 usepackage{myclass}
7772 \begin_inset Newline newline
7773 \end_inset
7774
7775 EndPreamble
7776 \end_layout
7777
7778 \begin_layout Standard
7779 near the top of the file.
7780 \end_layout
7781
7782 \begin_layout Standard
7783 Start \SpecialChar LyX
7784  and select 
7785 \begin_inset Flex Noun
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789 Tools\SpecialChar menuseparator
7790 Reconfigure
7791 \end_layout
7792
7793 \end_inset
7794
7795 .
7796  Then restart \SpecialChar LyX
7797  and try creating a new document.
7798  You should see "
7799 \begin_inset Flex Noun
7800 status collapsed
7801
7802 \begin_layout Plain Layout
7803 Report (My Class)
7804 \end_layout
7805
7806 \end_inset
7807
7808 " as a document class option in the 
7809 \begin_inset Flex Noun
7810 status collapsed
7811
7812 \begin_layout Plain Layout
7813 Document\SpecialChar menuseparator
7814 Settings
7815 \end_layout
7816
7817 \end_inset
7818
7819  dialog.
7820  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—
7821
7822 \begin_inset Flex Code
7823 status collapsed
7824
7825 \begin_layout Plain Layout
7826 report
7827 \end_layout
7828
7829 \end_inset
7830
7831  in this example—
7832 so you can fiddle around with the settings for the different sections if you wish.
7833  The layout information for sections is contained in 
7834 \begin_inset Flex Code
7835 status collapsed
7836
7837 \begin_layout Plain Layout
7838 stdsections.inc
7839 \end_layout
7840
7841 \end_inset
7842
7843 ,
7844  but you do not need to copy and change this file.
7845  Instead,
7846  you can simply add your changes to your layout file,
7847  after the line 
7848 \begin_inset Flex Code
7849 status collapsed
7850
7851 \begin_layout Plain Layout
7852 Input stdclass.inc
7853 \end_layout
7854
7855 \end_inset
7856
7857 ,
7858  which itself includes 
7859 \begin_inset Flex Code
7860 status collapsed
7861
7862 \begin_layout Plain Layout
7863 stdsections.inc
7864 \end_layout
7865
7866 \end_inset
7867
7868 .
7869  For example,
7870  you might add these lines:
7871 \end_layout
7872
7873 \begin_layout LyX-Code
7874 Style Chapter
7875 \end_layout
7876
7877 \begin_layout LyX-Code
7878     Font
7879 \end_layout
7880
7881 \begin_layout LyX-Code
7882         Family Sans
7883 \end_layout
7884
7885 \begin_layout LyX-Code
7886     EndFont
7887 \end_layout
7888
7889 \begin_layout LyX-Code
7890 End
7891 \end_layout
7892
7893 \begin_layout Standard
7894 to change the font for chapter headings to sans-serif.
7895  This will override (or,
7896  in this case,
7897  add to) the existing declaration for the Chapter style.
7898  
7899 \end_layout
7900
7901 \begin_layout Standard
7902 Your new package may also provide commands or environments not present in the base class.
7903  In this case,
7904  you will want to add these to the layout file.
7905  See 
7906 \begin_inset CommandInset ref
7907 LatexCommand ref
7908 reference "sec:TextClass"
7909 nolink "false"
7910
7911 \end_inset
7912
7913  for information on how to do so.
7914 \end_layout
7915
7916 \begin_layout Standard
7917 If 
7918 \begin_inset Flex Noun
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 myclass.sty
7923 \end_layout
7924
7925 \end_inset
7926
7927  can be used with several different document classes,
7928  and even if it cannot,
7929  you might find it easiest just to write a module that you can load with the base class.
7930  The simplest possible such module would be:
7931 \end_layout
7932
7933 \begin_layout LyX-Code
7934 #
7935 \backslash
7936 DeclareLyXModule{My Class} 
7937 \end_layout
7938
7939 \begin_layout LyX-Code
7940 #DescriptionBegin 
7941 \end_layout
7942
7943 \begin_layout LyX-Code
7944 #Support for myclass.sty.
7945 \end_layout
7946
7947 \begin_layout LyX-Code
7948 #DescriptionEnd
7949 \begin_inset Newline newline
7950 \end_inset
7951
7952
7953 \end_layout
7954
7955 \begin_layout LyX-Code
7956 Format 
7957 \begin_inset Info
7958 type  "lyxinfo"
7959 arg   "layoutformat"
7960 \end_inset
7961
7962
7963 \begin_inset Newline newline
7964 \end_inset
7965
7966
7967 \end_layout
7968
7969 \begin_layout LyX-Code
7970 Preamble
7971 \begin_inset Newline newline
7972 \end_inset
7973
7974     
7975 \backslash
7976 usepackage{myclass}
7977 \begin_inset Newline newline
7978 \end_inset
7979
7980 EndPreamble
7981 \end_layout
7982
7983 \begin_layout Standard
7984 A more complex module might modify the behavior of some existing constructs or define some new ones.
7985  Again,
7986  see 
7987 \begin_inset CommandInset ref
7988 LatexCommand ref
7989 reference "sec:TextClass"
7990 nolink "false"
7991
7992 \end_inset
7993
7994  for discussion.
7995 \end_layout
7996
7997 \begin_layout Subsection
7998 Layout for 
7999 \begin_inset Flex Noun
8000 status collapsed
8001
8002 \begin_layout Plain Layout
8003 .cls
8004 \end_layout
8005
8006 \end_inset
8007
8008  files
8009 \end_layout
8010
8011 \begin_layout Standard
8012 There are two possibilities here.
8013  One is that the class file is itself based upon an existing document class.
8014  For example,
8015  many thesis classes are based upon 
8016 \begin_inset Flex Noun
8017 status collapsed
8018
8019 \begin_layout Plain Layout
8020 book.cls
8021 \end_layout
8022
8023 \end_inset
8024
8025 .
8026  To see whether yours is,
8027  look for a line like
8028 \end_layout
8029
8030 \begin_layout LyX-Code
8031
8032 \backslash
8033 LoadClass{book}
8034 \end_layout
8035
8036 \begin_layout Standard
8037 in the file.
8038  If so,
8039  then you may proceed largely as in the previous section,
8040  though the 
8041 \begin_inset Flex Code
8042 status collapsed
8043
8044 \begin_layout Plain Layout
8045 Declare\SpecialChar LaTeX
8046 Class
8047 \end_layout
8048
8049 \end_inset
8050
8051  line will be different.
8052  If your new class is 
8053 \begin_inset Flex Code
8054 status collapsed
8055
8056 \begin_layout Plain Layout
8057 thesis
8058 \end_layout
8059
8060 \end_inset
8061
8062  and it is based upon 
8063 \begin_inset Flex Code
8064 status collapsed
8065
8066 \begin_layout Plain Layout
8067 book
8068 \end_layout
8069
8070 \end_inset
8071
8072 ,
8073  then the line should read:
8074 \begin_inset Foot
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 And it will be easiest if you save the file to 
8079 \begin_inset Flex Code
8080 status collapsed
8081
8082 \begin_layout Plain Layout
8083 thesis.layout
8084 \end_layout
8085
8086 \end_inset
8087
8088 :
8089  \SpecialChar LyX
8090  assumes that the document class has the same name as the layout file.
8091  
8092 \end_layout
8093
8094 \end_inset
8095
8096
8097 \end_layout
8098
8099 \begin_layout LyX-Code
8100
8101 \backslash
8102 DeclareLaTeXClass[thesis,book]{thesis}
8103 \end_layout
8104
8105 \begin_layout Standard
8106 If,
8107  on the other hand,
8108  the new class is not based upon an existing class,
8109  you will probably have to 
8110 \begin_inset Quotes eld
8111 \end_inset
8112
8113 roll your own
8114 \begin_inset Quotes erd
8115 \end_inset
8116
8117  layout.
8118  We strongly suggest copying an existing layout file which uses a similar \SpecialChar LaTeX
8119  class and then modifying it,
8120  if you can do so.
8121  At least use an existing file as a starting point so you can find out what items you need to worry about.
8122  Again,
8123  the specifics are covered below.
8124 \end_layout
8125
8126 \begin_layout Subsection
8127 Creating templates
8128 \begin_inset CommandInset label
8129 LatexCommand label
8130 name "subsec:Creating-Templates"
8131
8132 \end_inset
8133
8134
8135 \end_layout
8136
8137 \begin_layout Standard
8138 Once you have written a layout file for a new document class,
8139  you might want to consider writing a 
8140 \emph on
8141 template
8142 \emph default
8143  for it,
8144  too.
8145  A template acts as a kind of tutorial for your layout,
8146  showing how it might be used,
8147  though containing dummy content.
8148  You can of course look at the various templates included with \SpecialChar LyX
8149  for ideas.
8150 \end_layout
8151
8152 \begin_layout Standard
8153 Templates are created just like usual documents:
8154  using \SpecialChar LyX
8155 .
8156  The only difference is that usual documents contain all possible settings,
8157  including the font scheme and the paper size.
8158  Usually a user doesn't want a template to overwrite his preferred settings for such parameters.
8159  For that reason,
8160  the designer of a template should remove the corresponding commands like 
8161 \begin_inset Flex Code
8162 status collapsed
8163
8164 \begin_layout Plain Layout
8165
8166 \backslash
8167 font_roman
8168 \end_layout
8169
8170 \end_inset
8171
8172  or 
8173 \begin_inset Flex Code
8174 status collapsed
8175
8176 \begin_layout Plain Layout
8177
8178 \backslash
8179 papersize
8180 \end_layout
8181
8182 \end_inset
8183
8184  from the template \SpecialChar LyX
8185  file.
8186  This can be done with any simple text-editor,
8187  for example 
8188 \begin_inset Flex Code
8189 status collapsed
8190
8191 \begin_layout Plain Layout
8192 vi
8193 \end_layout
8194
8195 \end_inset
8196
8197  or 
8198 \begin_inset Flex Code
8199 status collapsed
8200
8201 \begin_layout Plain Layout
8202 notepad
8203 \end_layout
8204
8205 \end_inset
8206
8207 .
8208 \end_layout
8209
8210 \begin_layout Standard
8211 Put the edited template files you create in 
8212 \begin_inset Flex Code
8213 status collapsed
8214
8215 \begin_layout Plain Layout
8216 UserDir/templates/
8217 \end_layout
8218
8219 \end_inset
8220
8221 ,
8222  copy the ones you use from the global template directory in 
8223 \begin_inset Flex Code
8224 status collapsed
8225
8226 \begin_layout Plain Layout
8227 LyXDir/templates/
8228 \end_layout
8229
8230 \end_inset
8231
8232  to the same place,
8233  and redefine the template path in the 
8234 \begin_inset Flex Noun
8235 status collapsed
8236
8237 \begin_layout Plain Layout
8238 Tools\SpecialChar menuseparator
8239 Preferences\SpecialChar menuseparator
8240 Paths
8241 \end_layout
8242
8243 \end_inset
8244
8245  dialog.
8246 \end_layout
8247
8248 \begin_layout Standard
8249 Note,
8250  by the way,
8251  that there is a template which has a particular meaning:
8252 \begin_inset Newline linebreak
8253 \end_inset
8254
8255
8256 \begin_inset Flex Code
8257 status collapsed
8258
8259 \begin_layout Plain Layout
8260 defaults.lyx
8261 \end_layout
8262
8263 \end_inset
8264
8265 .
8266  This template is loaded every time you create a new document with 
8267 \begin_inset Flex Noun
8268 status collapsed
8269
8270 \begin_layout Plain Layout
8271 File\SpecialChar menuseparator
8272 New
8273 \end_layout
8274
8275 \end_inset
8276
8277  in order to provide useful defaults.
8278  To create this template from inside \SpecialChar LyX
8279 ,
8280  all you have to do is to open a document with the correct settings,
8281  and use the 
8282 \begin_inset Flex Noun
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286 Save as Document Defaults
8287 \end_layout
8288
8289 \end_inset
8290
8291  button.
8292 \end_layout
8293
8294 \begin_layout Subsection
8295 Upgrading old layout files
8296 \end_layout
8297
8298 \begin_layout Standard
8299 The format of layout files changes with each \SpecialChar LyX
8300  release,
8301  so old layout files need to be converted to the new format.
8302  If \SpecialChar LyX
8303  reads a layout file in an older format,
8304  it automatically calls the script 
8305 \begin_inset Flex Code
8306 status collapsed
8307
8308 \begin_layout Plain Layout
8309 layout2layout.py
8310 \end_layout
8311
8312 \end_inset
8313
8314  to convert it to a temporary file in current format.
8315  The original file is left untouched.
8316  If you use the layout file often,
8317  then,
8318  you may want to convert it permanently,
8319  so that \SpecialChar LyX
8320  does not have to do so itself every time.
8321  To do this,
8322  you can call the converter manually:
8323 \end_layout
8324
8325 \begin_layout Enumerate
8326 rename the file 
8327 \begin_inset Flex Code
8328 status collapsed
8329
8330 \begin_layout Plain Layout
8331 myclass.layout
8332 \end_layout
8333
8334 \end_inset
8335
8336  to 
8337 \begin_inset Flex Code
8338 status collapsed
8339
8340 \begin_layout Plain Layout
8341 myclass.old
8342 \end_layout
8343
8344 \end_inset
8345
8346
8347 \end_layout
8348
8349 \begin_layout Enumerate
8350 Call the command
8351 \begin_inset Newline newline
8352 \end_inset
8353
8354
8355 \begin_inset Flex Code
8356 status collapsed
8357
8358 \begin_layout Plain Layout
8359 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8360 \end_layout
8361
8362 \end_inset
8363
8364
8365 \begin_inset Newline newline
8366 \end_inset
8367
8368 where 
8369 \begin_inset Flex Code
8370 status collapsed
8371
8372 \begin_layout Plain Layout
8373 LyXDir
8374 \end_layout
8375
8376 \end_inset
8377
8378  is the name of your \SpecialChar LyX
8379  system directory.
8380 \end_layout
8381
8382 \begin_layout Standard
8383 Note that manual conversion does not affect included files,
8384  so these will have to be converted separately.
8385 \end_layout
8386
8387 \begin_layout Subsection
8388 \begin_inset CommandInset label
8389 LatexCommand label
8390 name "subsec:Cite-Engine-Files"
8391
8392 \end_inset
8393
8394 Cite engine files
8395 \end_layout
8396
8397 \begin_layout Standard
8398 A specific form of layout files are the so-called 
8399 \begin_inset Flex Code
8400 status collapsed
8401
8402 \begin_layout Plain Layout
8403 *.citeengine
8404 \end_layout
8405
8406 \end_inset
8407
8408  files that are located in the 
8409 \begin_inset Flex Code
8410 status collapsed
8411
8412 \begin_layout Plain Layout
8413 citeengines/
8414 \end_layout
8415
8416 \end_inset
8417
8418  sub-directory.
8419  Their purpose is to define the specifics of \SpecialChar LaTeX
8420  packages aimed at bibliography generation,
8421  such as 
8422 \family sans
8423 natbib
8424 \family default
8425 ,
8426
8427 \family sans
8428  jurabib
8429 \family default
8430  or 
8431 \family sans
8432 biblatex
8433 \family default
8434 ,
8435  but also the way how normal Bib\SpecialChar TeX
8436  citations (without additional packages) are handled in \SpecialChar LyX
8437  is defined in such a file.
8438  
8439 \end_layout
8440
8441 \begin_layout Standard
8442 More specifically,
8443  it is defined which packages \SpecialChar LyX
8444  needs to load,
8445  which citation commands are available,
8446  how these are to be displayed in \SpecialChar LyX
8447  (in the workarea,
8448  the dialogs,
8449  the context menus) as well as in the XHTML and plain text output.
8450  Furthermore,
8451  the files specify available style variants (author-year,
8452  numerical,
8453  etc.) and their specifics.
8454  The cite engine files are also used to generate the options that are available in 
8455 \family sans
8456 Document\SpecialChar menuseparator
8457 Settings\SpecialChar menuseparator
8458 Bibliography\SpecialChar menuseparator
8459 Style engine
8460 \family default
8461 .
8462 \end_layout
8463
8464 \begin_layout Standard
8465 Even though a cite engine file is essentially a normal layout file that could theoretically include any layout information,
8466  it usually primarily includes some specific parameters such as 
8467 \begin_inset Flex Code
8468 status collapsed
8469
8470 \begin_layout Plain Layout
8471 MaxCiteNames
8472 \end_layout
8473
8474 \end_inset
8475
8476 ,
8477  
8478 \begin_inset Flex Code
8479 status collapsed
8480
8481 \begin_layout Plain Layout
8482 CiteFramework
8483 \end_layout
8484
8485 \end_inset
8486
8487 ,
8488  
8489 \begin_inset Flex Code
8490 status collapsed
8491
8492 \begin_layout Plain Layout
8493 CiteEngine
8494 \end_layout
8495
8496 \end_inset
8497
8498  and 
8499 \begin_inset Flex Code
8500 status collapsed
8501
8502 \begin_layout Plain Layout
8503 CiteFormat
8504 \end_layout
8505
8506 \end_inset
8507
8508  blocks.
8509  The syntax of the latter two is described in 
8510 \begin_inset CommandInset ref
8511 LatexCommand ref
8512 reference "subsec:Citation-engine-description"
8513 plural "false"
8514 caps "false"
8515 noprefix "false"
8516 nolink "false"
8517
8518 \end_inset
8519
8520  and 
8521 \begin_inset CommandInset ref
8522 LatexCommand ref
8523 reference "subsec:Citation-format-description"
8524 nolink "false"
8525
8526 \end_inset
8527
8528 ,
8529  as well as in the files themselves.
8530 \end_layout
8531
8532 \begin_layout Section
8533 \begin_inset CommandInset label
8534 LatexCommand label
8535 name "sec:TextClass"
8536
8537 \end_inset
8538
8539 The layout file format
8540 \end_layout
8541
8542 \begin_layout Standard
8543 The following sections describe how layout files are structured and written.
8544  Our advice is to go slowly,
8545  save and test often.
8546  It is really not that hard,
8547  except that the multitude of options can become overwhelming,
8548  especially if you try to check out too many at once.
8549  It becomes easier if you use existing layouts of \SpecialChar LyX
8550  as examples/reference or if you modify an existing layout to your needs.
8551 \end_layout
8552
8553 \begin_layout Standard
8554 Note that all the tags used in layout files are case-insensitive.
8555  This means that 
8556 \begin_inset Flex Code
8557 status collapsed
8558
8559 \begin_layout Plain Layout
8560 Style
8561 \end_layout
8562
8563 \end_inset
8564
8565 ,
8566  
8567 \begin_inset Flex Code
8568 status collapsed
8569
8570 \begin_layout Plain Layout
8571 style
8572 \end_layout
8573
8574 \end_inset
8575
8576  and 
8577 \begin_inset Flex Code
8578 status collapsed
8579
8580 \begin_layout Plain Layout
8581 StYlE
8582 \end_layout
8583
8584 \end_inset
8585
8586  are really the same tag.
8587  The possible arguments are printed in brackets after the tag's name.
8588  The default argument is typeset 
8589 \begin_inset Flex Code
8590 status collapsed
8591
8592 \begin_layout Plain Layout
8593
8594 \emph on
8595 emphasized
8596 \end_layout
8597
8598 \end_inset
8599
8600 .
8601  If the argument has a data type like 
8602 \begin_inset Quotes eld
8603 \end_inset
8604
8605 string
8606 \begin_inset Quotes erd
8607 \end_inset
8608
8609  or 
8610 \begin_inset Quotes eld
8611 \end_inset
8612
8613 float
8614 \begin_inset Quotes erd
8615 \end_inset
8616
8617 ,
8618  the default is shown like this:
8619  
8620 \begin_inset Flex Code
8621 status collapsed
8622
8623 \begin_layout Plain Layout
8624 float=
8625 \emph on
8626 default
8627 \end_layout
8628
8629 \end_inset
8630
8631 .
8632 \end_layout
8633
8634 \begin_layout Subsection
8635 The document class declaration and classification
8636 \end_layout
8637
8638 \begin_layout Standard
8639 Lines in a layout file which begin with 
8640 \begin_inset Flex Code
8641 status collapsed
8642
8643 \begin_layout Plain Layout
8644 #
8645 \end_layout
8646
8647 \end_inset
8648
8649  are comments.
8650  There is one exception to this rule.
8651  All 
8652 \begin_inset Flex Code
8653 status collapsed
8654
8655 \begin_layout Plain Layout
8656 *.layout
8657 \end_layout
8658
8659 \end_inset
8660
8661  files should begin with lines like:
8662 \end_layout
8663
8664 \begin_layout LyX-Code
8665
8666 \size small
8667 #% Do not delete the line below;
8668  configure depends on this 
8669 \end_layout
8670
8671 \begin_layout LyX-Code
8672
8673 \size small
8674 #  
8675 \backslash
8676 DeclareLaTeXClass{Article (Standard Class)}
8677 \end_layout
8678
8679 \begin_layout LyX-Code
8680
8681 \size small
8682 #  
8683 \backslash
8684 DeclareCategory{Articles}
8685 \end_layout
8686
8687 \begin_layout Standard
8688 The second and third lines are used when you (re)configure \SpecialChar LyX
8689 .
8690  The layout file is read by the \SpecialChar LaTeX
8691  script 
8692 \begin_inset Flex Code
8693 status collapsed
8694
8695 \begin_layout Plain Layout
8696 chkconfig.ltx
8697 \end_layout
8698
8699 \end_inset
8700
8701 ,
8702  in a special mode where 
8703 \begin_inset Flex Code
8704 status collapsed
8705
8706 \begin_layout Plain Layout
8707 #
8708 \end_layout
8709
8710 \end_inset
8711
8712  is ignored.
8713  The first line is just a \SpecialChar LaTeX
8714  comment,
8715  the second one contains the mandatory declaration of the text class and the third line contains the optional classification of the class.
8716  If these lines appear in a file named 
8717 \begin_inset Flex Code
8718 status collapsed
8719
8720 \begin_layout Plain Layout
8721 article.layout
8722 \end_layout
8723
8724 \end_inset
8725
8726 ,
8727  then they define a text class of name 
8728 \begin_inset Flex Code
8729 status collapsed
8730
8731 \begin_layout Plain Layout
8732 article
8733 \end_layout
8734
8735 \end_inset
8736
8737  (the name of the layout file) which uses the \SpecialChar LaTeX
8738  document class 
8739 \begin_inset Flex Code
8740 status collapsed
8741
8742 \begin_layout Plain Layout
8743 article.cls
8744 \end_layout
8745
8746 \end_inset
8747
8748  (the default is to use the same name as the layout).
8749  The string 
8750 \begin_inset Quotes eld
8751 \end_inset
8752
8753 Article (Standard Class)
8754 \begin_inset Quotes erd
8755 \end_inset
8756
8757  that appears above is used as a description of the text class in the 
8758 \begin_inset Flex Noun
8759 status collapsed
8760
8761 \begin_layout Plain Layout
8762 Document\SpecialChar menuseparator
8763 Settings
8764 \end_layout
8765
8766 \end_inset
8767
8768  dialog.
8769  The category (
8770 \begin_inset Quotes eld
8771 \end_inset
8772
8773 Articles
8774 \begin_inset Quotes erd
8775 \end_inset
8776
8777  in the example) is also used in the 
8778 \begin_inset Flex Noun
8779 status collapsed
8780
8781 \begin_layout Plain Layout
8782 Document\SpecialChar menuseparator
8783 Settings
8784 \end_layout
8785
8786 \end_inset
8787
8788  dialog:
8789  the text classes are grouped by these categories (which are usually genres,
8790  so typical categories are 
8791 \begin_inset Quotes eld
8792 \end_inset
8793
8794 Articles
8795 \begin_inset Quotes erd
8796 \end_inset
8797
8798 ,
8799  
8800 \begin_inset Quotes eld
8801 \end_inset
8802
8803 Books
8804 \begin_inset Quotes erd
8805 \end_inset
8806
8807 ,
8808  
8809 \begin_inset Quotes eld
8810 \end_inset
8811
8812 Reports
8813 \begin_inset Quotes erd
8814 \end_inset
8815
8816 ,
8817  
8818 \begin_inset Quotes eld
8819 \end_inset
8820
8821 Letters
8822 \begin_inset Quotes erd
8823 \end_inset
8824
8825 ,
8826  
8827 \begin_inset Quotes eld
8828 \end_inset
8829
8830 Presentations
8831 \begin_inset Quotes erd
8832 \end_inset
8833
8834 ,
8835  
8836 \begin_inset Quotes eld
8837 \end_inset
8838
8839 Curricula Vitae
8840 \begin_inset Quotes erd
8841 \end_inset
8842
8843  etc.).
8844  If no category has been declared,
8845  the class will be put in the 
8846 \begin_inset Quotes eld
8847 \end_inset
8848
8849 Uncategorized
8850 \begin_inset Quotes erd
8851 \end_inset
8852
8853  group.
8854 \end_layout
8855
8856 \begin_layout Standard
8857 Let's assume that you wrote your own text class that uses the 
8858 \begin_inset Flex Code
8859 status collapsed
8860
8861 \begin_layout Plain Layout
8862 article.cls
8863 \end_layout
8864
8865 \end_inset
8866
8867  document class,
8868  but where you changed the appearance of the section headings.
8869  If you put it in a file 
8870 \begin_inset Flex Code
8871 status collapsed
8872
8873 \begin_layout Plain Layout
8874 myarticle.layout
8875 \end_layout
8876
8877 \end_inset
8878
8879 ,
8880  the header of this file should be:
8881 \end_layout
8882
8883 \begin_layout LyX-Code
8884
8885 \size small
8886 #% Do not delete the line below;
8887  configure depends on this 
8888 \end_layout
8889
8890 \begin_layout LyX-Code
8891
8892 \size small
8893 #  
8894 \backslash
8895 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8896 \end_layout
8897
8898 \begin_layout LyX-Code
8899
8900 \size small
8901 #  
8902 \backslash
8903 DeclareCategory{Articles}
8904 \end_layout
8905
8906 \begin_layout Standard
8907 This declares a text class 
8908 \begin_inset Flex Code
8909 status collapsed
8910
8911 \begin_layout Plain Layout
8912 myarticle
8913 \end_layout
8914
8915 \end_inset
8916
8917 ,
8918  associated with the \SpecialChar LaTeX
8919  document class 
8920 \begin_inset Flex Code
8921 status collapsed
8922
8923 \begin_layout Plain Layout
8924 article.cls
8925 \end_layout
8926
8927 \end_inset
8928
8929  and described as 
8930 \begin_inset Quotes eld
8931 \end_inset
8932
8933 Article (with My Own Headings)
8934 \begin_inset Quotes erd
8935 \end_inset
8936
8937 .
8938  If your text class depends on several packages,
8939  you can declare it as:
8940 \end_layout
8941
8942 \begin_layout LyX-Code
8943
8944 \size small
8945 #% Do not delete the line below;
8946  configure depends on this 
8947 \end_layout
8948
8949 \begin_layout LyX-Code
8950
8951 \size small
8952 #  
8953 \backslash
8954 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8955 \end_layout
8956
8957 \begin_layout LyX-Code
8958
8959 \size small
8960 #  
8961 \backslash
8962 DeclareCategory{Articles}
8963 \end_layout
8964
8965 \begin_layout Standard
8966 This indicates that your text class uses the 
8967 \begin_inset Flex Code
8968 status collapsed
8969
8970 \begin_layout Plain Layout
8971 foo.sty
8972 \end_layout
8973
8974 \end_inset
8975
8976  package.
8977  
8978 \change_deleted 5863208 1594239179
8979 Finally,
8980  it is also possible to declare classes for DocBook code.
8981  Typical declarations will look like:
8982 \end_layout
8983
8984 \begin_layout LyX-Code
8985
8986 \change_deleted 5863208 1594239179
8987
8988 \size small
8989 #% Do not delete the line below;
8990  configure depends on this 
8991 \end_layout
8992
8993 \begin_layout LyX-Code
8994
8995 \change_deleted 5863208 1594239179
8996
8997 \size small
8998
8999 \backslash
9000 DeclareDocBookClass[article]{SGML (DocBook Article)}
9001 \end_layout
9002
9003 \begin_layout LyX-Code
9004
9005 \change_deleted 5863208 1594239179
9006
9007 \size small
9008
9009 \backslash
9010 DeclareCategory{Articles (DocBook)}
9011 \change_unchanged
9012
9013 \end_layout
9014
9015 \begin_layout Standard
9016 Note that these declarations can also be given an optional parameter declaring the name of the document class (but not a list).
9017 \end_layout
9018
9019 \begin_layout Standard
9020 So,
9021  to be as explicit as possible,
9022  the form of the layout declaration is:
9023 \end_layout
9024
9025 \begin_layout LyX-Code
9026
9027 \size small
9028 #  
9029 \backslash
9030 DeclareLaTeXClass[class,package.sty]{layout description}
9031 \end_layout
9032
9033 \begin_layout LyX-Code
9034
9035 \size small
9036 #  
9037 \backslash
9038 DeclareCategory{category}
9039 \end_layout
9040
9041 \begin_layout Standard
9042 The class need only be specified if the name of the \SpecialChar LaTeX
9043  class file and the name of the layout file are different or if there are packages to load.
9044  If the name of the class file is not specified,
9045  then \SpecialChar LyX
9046  will simply assume that it is the same as the name of the layout file.
9047 \end_layout
9048
9049 \begin_layout Standard
9050 When the text class has been modified to your taste,
9051  all you have to do is to copy it either to 
9052 \begin_inset Flex Code
9053 status collapsed
9054
9055 \begin_layout Plain Layout
9056 LyXDir/layouts/
9057 \end_layout
9058
9059 \end_inset
9060
9061  or to 
9062 \begin_inset Flex Code
9063 status collapsed
9064
9065 \begin_layout Plain Layout
9066 UserDir/layouts
9067 \end_layout
9068
9069 \end_inset
9070
9071 ,
9072  run 
9073 \begin_inset Flex Noun
9074 status collapsed
9075
9076 \begin_layout Plain Layout
9077 Tools\SpecialChar menuseparator
9078 Reconfigure
9079 \end_layout
9080
9081 \end_inset
9082
9083 ,
9084  exit \SpecialChar LyX
9085  and restart.
9086  Then your new text class should be available along with the others.
9087 \end_layout
9088
9089 \begin_layout Standard
9090 Once the layout file is installed,
9091  you can edit it and see your changes without having to reconfigure or to restart \SpecialChar LyX
9092 .
9093 \begin_inset Foot
9094 status collapsed
9095
9096 \begin_layout Plain Layout
9097 In versions of \SpecialChar LyX
9098  prior to 1.6,
9099  this was not true.
9100  As a result,
9101  editing layout files was very time consuming,
9102  since you had constantly to restart \SpecialChar LyX
9103  to see changes.
9104 \end_layout
9105
9106 \end_inset
9107
9108  You can force a reload of the current layout by using the \SpecialChar LyX
9109  function 
9110 \begin_inset Flex Noun
9111 status collapsed
9112
9113 \begin_layout Plain Layout
9114 layout-reload
9115 \end_layout
9116
9117 \end_inset
9118
9119 .
9120  There is no default binding for this function—
9121 though,
9122  of course,
9123  you can bind it to a key yourself.
9124  But you will normally use this function simply by entering it in the mini-buffer.
9125  
9126 \end_layout
9127
9128 \begin_layout Standard
9129
9130 \emph on
9131 Warning
9132 \emph default
9133 :
9134  
9135 \begin_inset Flex Noun
9136 status collapsed
9137
9138 \begin_layout Plain Layout
9139 layout-reload
9140 \end_layout
9141
9142 \end_inset
9143
9144  is very much an `advanced feature'.
9145  It is 
9146 \emph on
9147 strongly
9148 \emph default
9149  recommended that you save your work before using this function.
9150  In fact,
9151  it is 
9152 \emph on
9153 strongly
9154 \emph default
9155  recommended that you not attempt to edit layout information while simultaneously working on a document that you care about.
9156  Use a test document.
9157  Syntax errors and the like in your layout file could cause peculiar behavior.
9158  In particular,
9159  such errors could cause \SpecialChar LyX
9160  to regard the current layout as invalid and to attempt to switch to some other layout.
9161 \begin_inset Foot
9162 status collapsed
9163
9164 \begin_layout Plain Layout
9165 Really bad syntax errors may even caused \SpecialChar LyX
9166  to exit.
9167  This is because certain sorts of errors may make \SpecialChar LyX
9168  unable to read 
9169 \emph on
9170 any
9171 \emph default
9172  layout information.
9173  Please be careful.
9174 \end_layout
9175
9176 \end_inset
9177
9178  The \SpecialChar LyX
9179  team strives to keep \SpecialChar LyX
9180  stable in such situations,
9181  but safe is better than sorry.
9182 \begin_inset Foot
9183 status collapsed
9184
9185 \begin_layout Plain Layout
9186 While we're giving advice:
9187  make regular backups.
9188  And be nice to your mother.
9189 \end_layout
9190
9191 \end_inset
9192
9193
9194 \end_layout
9195
9196 \begin_layout Subsection
9197 The Module declaration
9198 \end_layout
9199
9200 \begin_layout Standard
9201 A module must begin with a line like the following:
9202 \end_layout
9203
9204 \begin_layout LyX-Code
9205 #
9206 \backslash
9207 DeclareLyXModule[endnotes.sty]{Endnotes}
9208 \change_inserted -712698321 1554395911
9209
9210 \end_layout
9211
9212 \begin_layout LyX-Code
9213
9214 \change_inserted -712698321 1554395924
9215
9216 \size small
9217 #
9218 \backslash
9219 DeclareCategory{Foot- and Endnotes}
9220 \change_deleted -712698321 1554395911
9221
9222 \size default
9223  
9224 \change_unchanged
9225
9226 \end_layout
9227
9228 \begin_layout Standard
9229 The mandatory argument
9230 \change_inserted -712698321 1554395956
9231  of 
9232 \family typewriter
9233
9234 \backslash
9235 DeclareLyXModule
9236 \change_unchanged
9237
9238 \family default
9239 ,
9240  in curly brackets,
9241  is the name of the module,
9242  as it should appear in 
9243 \begin_inset Flex Noun
9244 status collapsed
9245
9246 \begin_layout Plain Layout
9247 Document\SpecialChar menuseparator
9248 Settings\SpecialChar menuseparator
9249 Modules
9250 \end_layout
9251
9252 \end_inset
9253
9254 .
9255  The argument in square brackets is optional:
9256  It declares any \SpecialChar LaTeX
9257  packages on which the module depends.
9258  It is also possible to use the form 
9259 \begin_inset Flex Noun
9260 status collapsed
9261
9262 \begin_layout Plain Layout
9263 from->to
9264 \end_layout
9265
9266 \end_inset
9267
9268  as an optional argument,
9269  which declares that the module can only be used when there exists a conversion chain between the formats `
9270 \begin_inset Flex Code
9271 status collapsed
9272
9273 \begin_layout Plain Layout
9274 from
9275 \end_layout
9276
9277 \end_inset
9278
9279 ' and `
9280 \begin_inset Flex Code
9281 status collapsed
9282
9283 \begin_layout Plain Layout
9284 to
9285 \end_layout
9286
9287 \end_inset
9288
9289 '.
9290
9291 \change_inserted -712698321 1554396133
9292  The 
9293 \family typewriter
9294
9295 \backslash
9296 DeclareCategory
9297 \family default
9298  declaration is not strictly mandatory,
9299  but you should add it,
9300  since it is helpful to find the module.
9301  Please have a look at the existing module categories and if appropriate,
9302  use one of those.
9303 \change_unchanged
9304
9305 \end_layout
9306
9307 \begin_layout Standard
9308 The module 
9309 \change_inserted -712698321 1554395988
9310 and category 
9311 \change_unchanged
9312 declaration should then be followed by lines like the following:
9313 \begin_inset Foot
9314 status collapsed
9315
9316 \begin_layout Plain Layout
9317 Preferably in English if the module should be published with \SpecialChar LyX
9318 .
9319  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9320 \end_layout
9321
9322 \end_inset
9323
9324
9325 \end_layout
9326
9327 \begin_layout LyX-Code
9328 #DescriptionBegin 
9329 \end_layout
9330
9331 \begin_layout LyX-Code
9332 #Adds an endnote command,
9333  in addition to footnotes.
9334  
9335 \end_layout
9336
9337 \begin_layout LyX-Code
9338 #You will need to add  
9339 \backslash
9340 theendnotes in TeX code where you 
9341 \end_layout
9342
9343 \begin_layout LyX-Code
9344 #want the endnotes to appear.
9345  
9346 \end_layout
9347
9348 \begin_layout LyX-Code
9349 #DescriptionEnd 
9350 \end_layout
9351
9352 \begin_layout LyX-Code
9353 #Requires:
9354  somemodule | othermodule
9355 \end_layout
9356
9357 \begin_layout LyX-Code
9358 #Excludes:
9359  badmodule
9360 \end_layout
9361
9362 \begin_layout Standard
9363 The description is used in 
9364 \begin_inset Flex Noun
9365 status collapsed
9366
9367 \begin_layout Plain Layout
9368 Document\SpecialChar menuseparator
9369 Settings\SpecialChar menuseparator
9370 Modules
9371 \end_layout
9372
9373 \end_inset
9374
9375  to provide the user with information about what the module does.
9376  The 
9377 \begin_inset Flex Code
9378 status collapsed
9379
9380 \begin_layout Plain Layout
9381 Requires
9382 \end_layout
9383
9384 \end_inset
9385
9386  line is used to identify other modules with which this one must be used;
9387  the 
9388 \begin_inset Flex Code
9389 status collapsed
9390
9391 \begin_layout Plain Layout
9392 Excludes
9393 \end_layout
9394
9395 \end_inset
9396
9397  line is used to identify modules with which this one may not be used.
9398  Both are optional,
9399  and,
9400  as shown,
9401  multiple modules should be separated with the pipe symbol:
9402  |.
9403  Note that the required modules are treated disjunctively:
9404  
9405 \emph on
9406 at least one
9407 \emph default
9408  of the required modules must be used.
9409  Similarly,
9410  
9411 \emph on
9412 no
9413 \emph default
9414  excluded module may be used.
9415  Note that modules are identified here by their filenames without the 
9416 \begin_inset Flex Code
9417 status collapsed
9418
9419 \begin_layout Plain Layout
9420 .module
9421 \end_layout
9422
9423 \end_inset
9424
9425  extension.
9426  So 
9427 \begin_inset Flex Code
9428 status collapsed
9429
9430 \begin_layout Plain Layout
9431 somemodule
9432 \end_layout
9433
9434 \end_inset
9435
9436  is really 
9437 \begin_inset Flex Code
9438 status collapsed
9439
9440 \begin_layout Plain Layout
9441 somemodule.module
9442 \end_layout
9443
9444 \end_inset
9445
9446 .
9447 \end_layout
9448
9449 \begin_layout Subsection
9450 The CiteEngine file declaration
9451 \end_layout
9452
9453 \begin_layout Standard
9454 A cite engine file must begin with a line like the following:
9455 \end_layout
9456
9457 \begin_layout LyX-Code
9458 #
9459 \backslash
9460 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9461 \end_layout
9462
9463 \begin_layout Standard
9464 The mandatory argument,
9465  in curly brackets,
9466  is the name of the cite style,
9467  as it should appear in 
9468 \begin_inset Flex Noun
9469 status collapsed
9470
9471 \begin_layout Plain Layout
9472 Document\SpecialChar menuseparator
9473 Settings\SpecialChar menuseparator
9474 Bibliography
9475 \end_layout
9476
9477 \end_inset
9478
9479 .
9480  The argument in square brackets is optional:
9481  It declares any \SpecialChar LaTeX
9482  packages on which the cite engine depends.
9483 \end_layout
9484
9485 \begin_layout Standard
9486 The cite engine declaration should then be followed by lines like the following:
9487 \begin_inset Foot
9488 status collapsed
9489
9490 \begin_layout Plain Layout
9491 Preferably in English if the module should be published with \SpecialChar LyX
9492 .
9493  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9494 \end_layout
9495
9496 \end_inset
9497
9498
9499 \end_layout
9500
9501 \begin_layout LyX-Code
9502 # DescriptionBegin
9503 \end_layout
9504
9505 \begin_layout LyX-Code
9506 #   Biblatex supports many author-year and numerical styles.
9507 \end_layout
9508
9509 \begin_layout LyX-Code
9510 #   It is mainly aimed at the Humanities.
9511  It is highly
9512 \end_layout
9513
9514 \begin_layout LyX-Code
9515 #   customizable,
9516  fully localized and provides many features
9517 \end_layout
9518
9519 \begin_layout LyX-Code
9520 #   that are not possible with BibTeX.
9521  The use of 'biber' as
9522 \end_layout
9523
9524 \begin_layout LyX-Code
9525 #   bibliography processor is advised.
9526 \end_layout
9527
9528 \begin_layout LyX-Code
9529 # DescriptionEnd
9530 \end_layout
9531
9532 \begin_layout Standard
9533 The description is used in 
9534 \begin_inset Flex Noun
9535 status collapsed
9536
9537 \begin_layout Plain Layout
9538 Document\SpecialChar menuseparator
9539 Settings\SpecialChar menuseparator
9540 Bibliography
9541 \end_layout
9542
9543 \end_inset
9544
9545  to provide the user with information about the cite engine.
9546 \end_layout
9547
9548 \begin_layout Subsection
9549 Format number
9550 \end_layout
9551
9552 \begin_layout Standard
9553 The first non-comment line of any layout file,
9554  included file,
9555  or module 
9556 \emph on
9557 must
9558 \emph default
9559  contain the file format number:
9560 \end_layout
9561
9562 \begin_layout Description
9563 \begin_inset Flex Code
9564 status collapsed
9565
9566 \begin_layout Plain Layout
9567 Format
9568 \end_layout
9569
9570 \end_inset
9571
9572  [
9573 \begin_inset Flex Code
9574 status collapsed
9575
9576 \begin_layout Plain Layout
9577 int
9578 \end_layout
9579
9580 \end_inset
9581
9582 ] The format number of the layout file.
9583 \end_layout
9584
9585 \begin_layout Standard
9586 This tag was introduced with \SpecialChar LyX
9587
9588 \begin_inset space ~
9589 \end_inset
9590
9591 1.4.0.
9592  Layout files from older \SpecialChar LyX
9593  versions do not have an explicit file format and are considered to have 
9594 \begin_inset Flex Code
9595 status collapsed
9596
9597 \begin_layout Plain Layout
9598 Format
9599 \begin_inset space ~
9600 \end_inset
9601
9602 1
9603 \end_layout
9604
9605 \end_inset
9606
9607 .
9608  The format for the present version of \SpecialChar LyX
9609  is format 60.
9610  But each version of \SpecialChar LyX
9611  is capable of reading earlier versions' layout files,
9612  just as they are capable of reading files produced by earlier versions of \SpecialChar LyX
9613 .
9614  There is,
9615  however,
9616  no provision for converting to earlier formats.
9617 \end_layout
9618
9619 \begin_layout Subsection
9620 \begin_inset CommandInset label
9621 LatexCommand label
9622 name "subsec:General-text-class"
9623
9624 \end_inset
9625
9626 General text class parameters
9627 \end_layout
9628
9629 \begin_layout Standard
9630 These are general parameters that govern the behavior of an entire document class.
9631  (This does 
9632 \emph on
9633 not
9634 \emph default
9635  mean that they must appear in 
9636 \begin_inset Flex Code
9637 status collapsed
9638
9639 \begin_layout Plain Layout
9640 .layout
9641 \end_layout
9642
9643 \end_inset
9644
9645  files rather than in modules.
9646  A module can contain any layout tag.)
9647 \end_layout
9648
9649 \begin_layout Description
9650
9651 \change_inserted -712698321 1526899478
9652 \begin_inset Flex Code
9653 status collapsed
9654
9655 \begin_layout Plain Layout
9656
9657 \change_inserted -712698321 1526898610
9658 AddToCiteEngine <engine>
9659 \change_unchanged
9660
9661 \end_layout
9662
9663 \end_inset
9664
9665  Extends the possibilities for displaying citation references.
9666  See 
9667 \begin_inset CommandInset ref
9668 LatexCommand ref
9669 reference "subsec:Citation-engine-description"
9670 plural "false"
9671 caps "false"
9672 noprefix "false"
9673 nolink "false"
9674
9675 \end_inset
9676
9677  for details.
9678  Must end with 
9679 \begin_inset Flex Code
9680 status collapsed
9681
9682 \begin_layout Plain Layout
9683
9684 \change_inserted -712698321 1526898823
9685 End
9686 \change_unchanged
9687
9688 \end_layout
9689
9690 \end_inset
9691
9692 .
9693 \end_layout
9694
9695 \begin_layout Description
9696 \begin_inset Flex Code
9697 status collapsed
9698
9699 \begin_layout Plain Layout
9700 AddToHTMLPreamble
9701 \end_layout
9702
9703 \end_inset
9704
9705  Adds information that will be output in the 
9706 \begin_inset Flex Code
9707 status collapsed
9708
9709 \begin_layout Plain Layout
9710 <head>
9711 \end_layout
9712
9713 \end_inset
9714
9715  block when the document is output to XHTML.
9716  Typically,
9717  this would be used to output CSS style information,
9718  but it can be used for anything that can appear in 
9719 \begin_inset Flex Code
9720 status collapsed
9721
9722 \begin_layout Plain Layout
9723 <head>
9724 \end_layout
9725
9726 \end_inset
9727
9728 .
9729  Must end with 
9730 \begin_inset Quotes eld
9731 \end_inset
9732
9733
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 EndPreamble
9739 \end_layout
9740
9741 \end_inset
9742
9743
9744 \begin_inset Quotes erd
9745 \end_inset
9746
9747 .
9748 \end_layout
9749
9750 \begin_layout Description
9751 \begin_inset Flex Code
9752 status collapsed
9753
9754 \begin_layout Plain Layout
9755 AddToPreamble
9756 \end_layout
9757
9758 \end_inset
9759
9760  Adds information to the document preamble.
9761  Must end with
9762 \begin_inset Newline newline
9763 \end_inset
9764
9765
9766 \begin_inset Quotes eld
9767 \end_inset
9768
9769
9770 \begin_inset Flex Code
9771 status collapsed
9772
9773 \begin_layout Plain Layout
9774 EndPreamble
9775 \end_layout
9776
9777 \end_inset
9778
9779
9780 \begin_inset Quotes erd
9781 \end_inset
9782
9783 .
9784 \change_inserted -712698321 1562592950
9785
9786 \end_layout
9787
9788 \begin_layout Description
9789
9790 \change_inserted -712698321 1562593040
9791 \begin_inset Flex Code
9792 status collapsed
9793
9794 \begin_layout Plain Layout
9795
9796 \change_inserted -712698321 1562592954
9797 BibInToc
9798 \change_unchanged
9799
9800 \end_layout
9801
9802 \end_inset
9803
9804  [
9805 \begin_inset Flex Code
9806 status collapsed
9807
9808 \begin_layout Plain Layout
9809
9810 \change_inserted -712698321 1562592950
9811
9812 \emph on
9813 0
9814 \change_unchanged
9815
9816 \end_layout
9817
9818 \end_inset
9819
9820 ,
9821 \begin_inset space \thinspace{}
9822 \end_inset
9823
9824
9825 \begin_inset Flex Code
9826 status collapsed
9827
9828 \begin_layout Plain Layout
9829
9830 \change_inserted -712698321 1562592950
9831 1
9832 \change_unchanged
9833
9834 \end_layout
9835
9836 \end_inset
9837
9838 ] If the document class adds the bibliography to the table of contents,
9839  add this option with value 
9840 \begin_inset Flex Code
9841 status collapsed
9842
9843 \begin_layout Plain Layout
9844
9845 \change_inserted -712698321 1562592996
9846 1
9847 \change_unchanged
9848
9849 \end_layout
9850
9851 \end_inset
9852
9853  (or 
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858
9859 \change_inserted -712698321 1562593006
9860 true
9861 \change_unchanged
9862
9863 \end_layout
9864
9865 \end_inset
9866
9867 ).
9868  This prevents the bibliography from being added twice.
9869 \change_unchanged
9870
9871 \end_layout
9872
9873 \begin_layout Description
9874 \begin_inset Flex Code
9875 status collapsed
9876
9877 \begin_layout Plain Layout
9878 CiteEngine <engine>
9879 \end_layout
9880
9881 \end_inset
9882
9883  Defines the possibilities for displaying citation references.
9884  See 
9885 \begin_inset CommandInset ref
9886 LatexCommand ref
9887 reference "subsec:Citation-engine-description"
9888 plural "false"
9889 caps "false"
9890 noprefix "false"
9891 nolink "false"
9892
9893 \end_inset
9894
9895  for details.
9896  Must end with 
9897 \begin_inset Quotes eld
9898 \end_inset
9899
9900
9901 \begin_inset Flex Code
9902 status collapsed
9903
9904 \begin_layout Plain Layout
9905 End
9906 \end_layout
9907
9908 \end_inset
9909
9910
9911 \begin_inset Quotes erd
9912 \end_inset
9913
9914 .
9915  Primarily used in cite engine files (see 
9916 \begin_inset CommandInset ref
9917 LatexCommand ref
9918 reference "subsec:Cite-Engine-Files"
9919 plural "false"
9920 caps "false"
9921 noprefix "false"
9922 nolink "false"
9923
9924 \end_inset
9925
9926 ).
9927
9928 \change_inserted -712698321 1526898530
9929  Note that if you specify this in a layout file or module,
9930  any cite engine definition will be overridden.
9931  Also see 
9932 \begin_inset Flex Code
9933 status collapsed
9934
9935 \begin_layout Plain Layout
9936
9937 \change_inserted -712698321 1526898530
9938 AddToCiteEngine
9939 \change_unchanged
9940
9941 \end_layout
9942
9943 \end_inset
9944
9945 .
9946 \change_unchanged
9947
9948 \end_layout
9949
9950 \begin_layout Description
9951 \begin_inset Flex Code
9952 status collapsed
9953
9954 \begin_layout Plain Layout
9955 CiteFormat
9956 \end_layout
9957
9958 \end_inset
9959
9960  Defines formats for use in the display of bibliographic information.
9961  See 
9962 \begin_inset CommandInset ref
9963 LatexCommand ref
9964 reference "subsec:Citation-format-description"
9965 nolink "false"
9966
9967 \end_inset
9968
9969  for details.
9970  Must end with 
9971 \begin_inset Quotes eld
9972 \end_inset
9973
9974
9975 \begin_inset Flex Code
9976 status collapsed
9977
9978 \begin_layout Plain Layout
9979 End
9980 \end_layout
9981
9982 \end_inset
9983
9984
9985 \begin_inset Quotes erd
9986 \end_inset
9987
9988 .
9989  Primarily used in cite engine files (see 
9990 \begin_inset CommandInset ref
9991 LatexCommand ref
9992 reference "subsec:Cite-Engine-Files"
9993 plural "false"
9994 caps "false"
9995 noprefix "false"
9996 nolink "false"
9997
9998 \end_inset
9999
10000 ).
10001
10002 \change_inserted -712698321 1526898585
10003  A cite format defined in a layout or module will override the cite engine definition.
10004 \change_unchanged
10005
10006 \end_layout
10007
10008 \begin_layout Description
10009 \begin_inset Flex Code
10010 status collapsed
10011
10012 \begin_layout Plain Layout
10013 CiteFramework
10014 \end_layout
10015
10016 \end_inset
10017
10018  [
10019 \begin_inset Flex Code
10020 status collapsed
10021
10022 \begin_layout Plain Layout
10023
10024 \emph on
10025 bibtex
10026 \end_layout
10027
10028 \end_inset
10029
10030 ,
10031 \begin_inset Flex Code
10032 status collapsed
10033
10034 \begin_layout Plain Layout
10035 biblatex
10036 \end_layout
10037
10038 \end_inset
10039
10040 ] Determines whether 
10041 \family sans
10042 Biblatex
10043 \family default
10044  or Bib\SpecialChar TeX
10045  is used to generate a Bibliography.
10046  Primarily used in cite engine files (see 
10047 \begin_inset CommandInset ref
10048 LatexCommand ref
10049 reference "subsec:Cite-Engine-Files"
10050 plural "false"
10051 caps "false"
10052 noprefix "false"
10053 nolink "false"
10054
10055 \end_inset
10056
10057 ).
10058 \end_layout
10059
10060 \begin_layout Description
10061 \begin_inset Flex Code
10062 status collapsed
10063
10064 \begin_layout Plain Layout
10065 ClassOptions
10066 \end_layout
10067
10068 \end_inset
10069
10070  Describes various global options supported by the document class.
10071  See 
10072 \begin_inset CommandInset ref
10073 LatexCommand ref
10074 reference "subsec:ClassOptions"
10075 nolink "false"
10076
10077 \end_inset
10078
10079  for a description.
10080  Must end with 
10081 \begin_inset Quotes eld
10082 \end_inset
10083
10084
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 End
10090 \end_layout
10091
10092 \end_inset
10093
10094
10095 \begin_inset Quotes erd
10096 \end_inset
10097
10098 .
10099 \end_layout
10100
10101 \begin_layout Description
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 Columns
10107 \end_layout
10108
10109 \end_inset
10110
10111  [
10112 \begin_inset Flex Code
10113 status collapsed
10114
10115 \begin_layout Plain Layout
10116
10117 \emph on
10118 1
10119 \end_layout
10120
10121 \end_inset
10122
10123 ,
10124 \begin_inset space \thinspace{}
10125 \end_inset
10126
10127
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 2
10133 \end_layout
10134
10135 \end_inset
10136
10137 ] Whether the class should 
10138 \emph on
10139 default
10140 \emph default
10141  to having one or two columns.
10142  Can be changed in the 
10143 \begin_inset Flex Noun
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147 Document\SpecialChar menuseparator
10148 Settings
10149 \end_layout
10150
10151 \end_inset
10152
10153  dialog.
10154 \end_layout
10155
10156 \begin_layout Description
10157 \begin_inset Flex Code
10158 status collapsed
10159
10160 \begin_layout Plain Layout
10161 Counter
10162 \end_layout
10163
10164 \end_inset
10165
10166  [
10167 \begin_inset Flex Code
10168 status collapsed
10169
10170 \begin_layout Plain Layout
10171 string
10172 \end_layout
10173
10174 \end_inset
10175
10176 ] This sequence defines the properties for a counter.
10177  If the counter does not yet exist,
10178  it is created;
10179  if it does exist,
10180  it is modified.
10181  Must end with 
10182 \begin_inset Quotes eld
10183 \end_inset
10184
10185
10186 \begin_inset Flex Code
10187 status collapsed
10188
10189 \begin_layout Plain Layout
10190 End
10191 \end_layout
10192
10193 \end_inset
10194
10195
10196 \begin_inset Quotes erd
10197 \end_inset
10198
10199 .
10200 \begin_inset Newline newline
10201 \end_inset
10202
10203 See 
10204 \begin_inset CommandInset ref
10205 LatexCommand ref
10206 reference "subsec:Counters"
10207 nolink "false"
10208
10209 \end_inset
10210
10211  for details on counters.
10212 \end_layout
10213
10214 \begin_layout Description
10215 \begin_inset Flex Code
10216 status collapsed
10217
10218 \begin_layout Plain Layout
10219 DefaultFont
10220 \end_layout
10221
10222 \end_inset
10223
10224  Sets the default font used to display the document.
10225  See 
10226 \begin_inset CommandInset ref
10227 LatexCommand ref
10228 reference "subsec:Font-description"
10229 nolink "false"
10230
10231 \end_inset
10232
10233  for how to declare fonts.
10234  Must end with 
10235 \begin_inset Quotes eld
10236 \end_inset
10237
10238
10239 \begin_inset Flex Code
10240 status collapsed
10241
10242 \begin_layout Plain Layout
10243 EndFont
10244 \end_layout
10245
10246 \end_inset
10247
10248
10249 \begin_inset Quotes erd
10250 \end_inset
10251
10252 .
10253 \end_layout
10254
10255 \begin_layout Description
10256 \begin_inset Flex Code
10257 status collapsed
10258
10259 \begin_layout Plain Layout
10260 DefaultModule
10261 \end_layout
10262
10263 \end_inset
10264
10265  [
10266 \begin_inset Flex Code
10267 status collapsed
10268
10269 \begin_layout Plain Layout
10270 <module>
10271 \end_layout
10272
10273 \end_inset
10274
10275 ] Specifies a module to be included by default with this document class.
10276  The module is specified as filename without the 
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 .module
10282 \end_layout
10283
10284 \end_inset
10285
10286  extension.
10287  The user can still remove the module,
10288  but it will be active at the outset.
10289  (This applies only when new files are created,
10290  or when this class is chosen for an existing document.)
10291 \end_layout
10292
10293 \begin_layout Description
10294 \begin_inset Flex Code
10295 status collapsed
10296
10297 \begin_layout Plain Layout
10298 DefaultStyle
10299 \end_layout
10300
10301 \end_inset
10302
10303  [
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 <style>
10309 \end_layout
10310
10311 \end_inset
10312
10313 ] This is the style that will be assigned to new paragraphs,
10314  usually 
10315 \begin_inset Flex Noun
10316 status collapsed
10317
10318 \begin_layout Plain Layout
10319 Standard
10320 \end_layout
10321
10322 \end_inset
10323
10324 .
10325  This will default to the first defined style if not given,
10326  but you are encouraged to use this directive.
10327 \end_layout
10328
10329 \begin_layout Description
10330
10331 \change_inserted -970929547 1515112870
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336
10337 \change_inserted -970929547 1515112782
10338 DocBookRoot
10339 \change_unchanged
10340
10341 \end_layout
10342
10343 \end_inset
10344
10345  [
10346 \begin_inset Flex Code
10347 status collapsed
10348
10349 \begin_layout Plain Layout
10350
10351 \change_inserted -970929547 1515112766
10352 string
10353 \change_unchanged
10354
10355 \end_layout
10356
10357 \end_inset
10358
10359 ] The root element (at the top of the document) to use when outputting documents with this class in DocBook.
10360  The default value is 
10361 \begin_inset Quotes eld
10362 \end_inset
10363
10364
10365 \begin_inset Flex Code
10366 status collapsed
10367
10368 \begin_layout Plain Layout
10369
10370 \change_inserted -970929547 1515112845
10371 article
10372 \change_unchanged
10373
10374 \end_layout
10375
10376 \end_inset
10377
10378
10379 \begin_inset Quotes erd
10380 \end_inset
10381
10382 .
10383
10384 \change_deleted 1075283030 1594226862
10385  
10386 \change_inserted 1075283030 1594226777
10387
10388 \end_layout
10389
10390 \begin_layout Description
10391
10392 \change_inserted 1075283030 1594226859
10393 \begin_inset Flex Code
10394 status collapsed
10395
10396 \begin_layout Plain Layout
10397
10398 \change_inserted 1075283030 1594226785
10399 DocBookForceAbstract
10400 \change_unchanged
10401
10402 \end_layout
10403
10404 \end_inset
10405
10406  [
10407 \begin_inset Flex Code
10408 status collapsed
10409
10410 \begin_layout Plain Layout
10411
10412 \change_inserted 1075283030 1594226804
10413 boolean
10414 \change_unchanged
10415
10416 \end_layout
10417
10418 \end_inset
10419
10420 ] If 
10421 \begin_inset Quotes eld
10422 \end_inset
10423
10424
10425 \family typewriter
10426 true
10427 \family default
10428
10429 \begin_inset Quotes erd
10430 \end_inset
10431
10432 ,
10433  the root element will always have an 
10434 \family typewriter
10435 <abstract>
10436 \family default
10437  tag.
10438  The default value is 
10439 \begin_inset Quotes eld
10440 \end_inset
10441
10442
10443 \family typewriter
10444 false
10445 \family default
10446
10447 \begin_inset Quotes erd
10448 \end_inset
10449
10450 .
10451 \change_unchanged
10452
10453 \end_layout
10454
10455 \begin_layout Description
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 ExcludesModule
10461 \end_layout
10462
10463 \end_inset
10464
10465  [
10466 \begin_inset Flex Code
10467 status collapsed
10468
10469 \begin_layout Plain Layout
10470 <module>
10471 \end_layout
10472
10473 \end_inset
10474
10475 ] This tag indicates that the module (which is specified by filename without the 
10476 \begin_inset Flex Code
10477 status collapsed
10478
10479 \begin_layout Plain Layout
10480 .module
10481 \end_layout
10482
10483 \end_inset
10484
10485  extension) cannot be used with this document class.
10486  This might be used in a journal-specific layout file to prevent,
10487  say,
10488  the use of the 
10489 \begin_inset Flex Code
10490 status collapsed
10491
10492 \begin_layout Plain Layout
10493 theorems-sec
10494 \end_layout
10495
10496 \end_inset
10497
10498  module that numbers theorems by section.
10499  This tag may 
10500 \emph on
10501 not
10502 \emph default
10503  be used in a module.
10504  Modules have their own way of excluding other modules (see 
10505 \begin_inset CommandInset ref
10506 LatexCommand ref
10507 reference "subsec:Layout-modules"
10508 nolink "false"
10509
10510 \end_inset
10511
10512 ).
10513 \end_layout
10514
10515 \begin_layout Description
10516 \begin_inset Flex Code
10517 status collapsed
10518
10519 \begin_layout Plain Layout
10520 Float
10521 \end_layout
10522
10523 \end_inset
10524
10525  Defines a new float.
10526  See 
10527 \begin_inset CommandInset ref
10528 LatexCommand ref
10529 reference "subsec:Floats"
10530 nolink "false"
10531
10532 \end_inset
10533
10534  for details.
10535  Must end with 
10536 \begin_inset Quotes eld
10537 \end_inset
10538
10539
10540 \begin_inset Flex Code
10541 status collapsed
10542
10543 \begin_layout Plain Layout
10544 End
10545 \end_layout
10546
10547 \end_inset
10548
10549
10550 \begin_inset Quotes erd
10551 \end_inset
10552
10553 .
10554 \end_layout
10555
10556 \begin_layout Description
10557 \begin_inset Flex Code
10558 status collapsed
10559
10560 \begin_layout Plain Layout
10561 HTMLPreamble
10562 \end_layout
10563
10564 \end_inset
10565
10566  Sets the information that will be output in the 
10567 \begin_inset Flex Code
10568 status collapsed
10569
10570 \begin_layout Plain Layout
10571 <head>
10572 \end_layout
10573
10574 \end_inset
10575
10576  block when this document class is output to XHTML.
10577  Note that this will completely override any prior 
10578 \begin_inset Flex Code
10579 status collapsed
10580
10581 \begin_layout Plain Layout
10582 HTMLPreamble
10583 \end_layout
10584
10585 \end_inset
10586
10587  or 
10588 \begin_inset Flex Code
10589 status collapsed
10590
10591 \begin_layout Plain Layout
10592 AddToHTMLPreamble
10593 \end_layout
10594
10595 \end_inset
10596
10597  declarations.
10598  (Use
10599 \begin_inset Newline newline
10600 \end_inset
10601
10602
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  if you just want to add material to the preamble.) Must end with 
10613 \begin_inset Quotes eld
10614 \end_inset
10615
10616
10617 \begin_inset Flex Code
10618 status collapsed
10619
10620 \begin_layout Plain Layout
10621 EndPreamble
10622 \end_layout
10623
10624 \end_inset
10625
10626
10627 \begin_inset Quotes erd
10628 \end_inset
10629
10630 .
10631 \end_layout
10632
10633 \begin_layout Description
10634 \begin_inset Flex Code
10635 status collapsed
10636
10637 \begin_layout Plain Layout
10638 HTMLTOCSection
10639 \end_layout
10640
10641 \end_inset
10642
10643  [
10644 \begin_inset Flex Code
10645 status collapsed
10646
10647 \begin_layout Plain Layout
10648 <style>
10649 \end_layout
10650
10651 \end_inset
10652
10653 ] The style to use for the table of contents,
10654  bibliography,
10655  and so forth,
10656  when the document is output to HTML.
10657  For articles,
10658  this should normally be 
10659 \begin_inset Flex Code
10660 status collapsed
10661
10662 \begin_layout Plain Layout
10663 Section
10664 \end_layout
10665
10666 \end_inset
10667
10668 ;
10669  for books 
10670 \begin_inset Flex Code
10671 status collapsed
10672
10673 \begin_layout Plain Layout
10674 Chapter
10675 \end_layout
10676
10677 \end_inset
10678
10679 .
10680  If it is not given,
10681  then \SpecialChar LyX
10682  will attempt to figure out which layout to use.
10683 \end_layout
10684
10685 \begin_layout Description
10686 \begin_inset Flex Code
10687 status collapsed
10688
10689 \begin_layout Plain Layout
10690 IfCounter
10691 \end_layout
10692
10693 \end_inset
10694
10695  [
10696 \begin_inset Flex Code
10697 status collapsed
10698
10699 \begin_layout Plain Layout
10700 <counter>
10701 \end_layout
10702
10703 \end_inset
10704
10705 ] Modifies the properties of the given counter.
10706  If the counter does not exist,
10707  the statement is ignored.
10708  Must end with 
10709 \begin_inset Quotes eld
10710 \end_inset
10711
10712
10713 \begin_inset Flex Code
10714 status collapsed
10715
10716 \begin_layout Plain Layout
10717 End
10718 \end_layout
10719
10720 \end_inset
10721
10722
10723 \begin_inset Quotes erd
10724 \end_inset
10725
10726 .
10727 \begin_inset Newline newline
10728 \end_inset
10729
10730 See 
10731 \begin_inset CommandInset ref
10732 LatexCommand ref
10733 reference "subsec:Counters"
10734 nolink "false"
10735
10736 \end_inset
10737
10738  for details on counters.
10739 \end_layout
10740
10741 \begin_layout Description
10742 \begin_inset Flex Code
10743 status collapsed
10744
10745 \begin_layout Plain Layout
10746 Input
10747 \end_layout
10748
10749 \end_inset
10750
10751  [
10752 \begin_inset Flex Code
10753 status collapsed
10754
10755 \begin_layout Plain Layout
10756 <filename>
10757 \end_layout
10758
10759 \end_inset
10760
10761 ] This allows you to include another layout definition file within yours to avoid duplicating commands.
10762  Common examples are the standard layout files,
10763  for example,
10764  
10765 \begin_inset Flex Code
10766 status collapsed
10767
10768 \begin_layout Plain Layout
10769 stdclass.inc
10770 \end_layout
10771
10772 \end_inset
10773
10774 ,
10775  which contains most of the basic layouts.
10776 \change_inserted -712698321 1611646803
10777
10778 \end_layout
10779
10780 \begin_layout Description
10781
10782 \change_inserted -712698321 1611646804
10783 \begin_inset Flex Code
10784 status collapsed
10785
10786 \begin_layout Plain Layout
10787
10788 \change_inserted -712698321 1611646837
10789 InputGlobal
10790 \change_unchanged
10791
10792 \end_layout
10793
10794 \end_inset
10795
10796  [
10797 \begin_inset Flex Code
10798 status collapsed
10799
10800 \begin_layout Plain Layout
10801
10802 \change_inserted -712698321 1611646804
10803 <filename>
10804 \change_unchanged
10805
10806 \end_layout
10807
10808 \end_inset
10809
10810 ] is a variant of the 
10811 \begin_inset Flex Code
10812 status collapsed
10813
10814 \begin_layout Plain Layout
10815
10816 \change_inserted -712698321 1611646804
10817 Input
10818 \change_unchanged
10819
10820 \end_layout
10821
10822 \end_inset
10823
10824  command which does not look for files in the user directory.
10825  This allows to create a file 
10826 \begin_inset Flex Code
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830
10831 \change_inserted -712698321 1611646804
10832 name.layout
10833 \change_unchanged
10834
10835 \end_layout
10836
10837 \end_inset
10838
10839  or 
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844
10845 \change_inserted -712698321 1611646804
10846 name.inc
10847 \change_unchanged
10848
10849 \end_layout
10850
10851 \end_inset
10852
10853  in the user directory which includes a global file with the same name via 
10854 \begin_inset Flex Code
10855 status collapsed
10856
10857 \begin_layout Plain Layout
10858
10859 \change_inserted -712698321 1611646853
10860 InputGlobal name
10861 \change_unchanged
10862
10863 \end_layout
10864
10865 \end_inset
10866
10867  or 
10868 \begin_inset Flex Code
10869 status collapsed
10870
10871 \begin_layout Plain Layout
10872
10873 \change_inserted -712698321 1611646855
10874 InputGlobal name.inc
10875 \change_unchanged
10876
10877 \end_layout
10878
10879 \end_inset
10880
10881 ,
10882  respectively (with 
10883 \begin_inset Flex Code
10884 status collapsed
10885
10886 \begin_layout Plain Layout
10887
10888 \change_inserted -712698321 1611646804
10889 Input
10890 \change_unchanged
10891
10892 \end_layout
10893
10894 \end_inset
10895
10896 ,
10897  the file would recursively include itself).
10898  This way,
10899  you can modify global files without having to completely copy them.
10900 \change_unchanged
10901
10902 \end_layout
10903
10904 \begin_layout Description
10905 \begin_inset Flex Code
10906 status collapsed
10907
10908 \begin_layout Plain Layout
10909 InsetLayout
10910 \end_layout
10911
10912 \end_inset
10913
10914  [
10915 \begin_inset Flex Code
10916 status collapsed
10917
10918 \begin_layout Plain Layout
10919 <type>
10920 \end_layout
10921
10922 \end_inset
10923
10924 ] This section (re-)defines the layout of an inset.
10925  It can be applied to an existing inset or to a new,
10926  user-defined inset,
10927  e.g.,
10928  a new character style.
10929  Must end with 
10930 \begin_inset Quotes eld
10931 \end_inset
10932
10933
10934 \begin_inset Flex Code
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938 End
10939 \end_layout
10940
10941 \end_inset
10942
10943
10944 \begin_inset Quotes erd
10945 \end_inset
10946
10947 .
10948 \begin_inset Newline newline
10949 \end_inset
10950
10951 See 
10952 \begin_inset CommandInset ref
10953 LatexCommand ref
10954 reference "subsec:Flex-insets-and"
10955 nolink "false"
10956
10957 \end_inset
10958
10959  for more information.
10960  
10961 \end_layout
10962
10963 \begin_layout Description
10964 \begin_inset Flex Code
10965 status collapsed
10966
10967 \begin_layout Plain Layout
10968 LeftMargin
10969 \end_layout
10970
10971 \end_inset
10972
10973  [
10974 \begin_inset Flex Code
10975 status collapsed
10976
10977 \begin_layout Plain Layout
10978 string
10979 \end_layout
10980
10981 \end_inset
10982
10983 ] A string that indicates the width of the left margin on the screen,
10984  for example,
10985  
10986 \begin_inset Quotes eld
10987 \end_inset
10988
10989
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994 MMMMM
10995 \end_layout
10996
10997 \end_inset
10998
10999
11000 \begin_inset Quotes erd
11001 \end_inset
11002
11003 .
11004  (Note that this is not a `length',
11005  like 
11006 \begin_inset Quotes eld
11007 \end_inset
11008
11009 2ex
11010 \begin_inset Quotes erd
11011 \end_inset
11012
11013 .)
11014 \end_layout
11015
11016 \begin_layout Description
11017 \begin_inset Flex Code
11018 status collapsed
11019
11020 \begin_layout Plain Layout
11021 MaxCiteNames
11022 \end_layout
11023
11024 \end_inset
11025
11026  [
11027 \begin_inset Flex Code
11028 status collapsed
11029
11030 \begin_layout Plain Layout
11031 integer
11032 \end_layout
11033
11034 \end_inset
11035
11036 ] An integer that determines the maximal number of names displayed in an author-year citation before the citation switches to 
11037 \begin_inset Quotes eld
11038 \end_inset
11039
11040 FirstAuthor et al.
11041 \begin_inset Quotes erd
11042 \end_inset
11043
11044 .
11045  Primarily used in cite engine files (see 
11046 \begin_inset CommandInset ref
11047 LatexCommand ref
11048 reference "subsec:Cite-Engine-Files"
11049 plural "false"
11050 caps "false"
11051 noprefix "false"
11052 nolink "false"
11053
11054 \end_inset
11055
11056 ).
11057 \end_layout
11058
11059 \begin_layout Description
11060
11061 \change_inserted -712698321 1612018485
11062 \begin_inset Flex Code
11063 status collapsed
11064
11065 \begin_layout Plain Layout
11066
11067 \change_inserted -712698321 1612018457
11068 ModifyInsetLayout
11069 \change_unchanged
11070
11071 \end_layout
11072
11073 \end_inset
11074
11075  [
11076 \begin_inset Flex Code
11077 status collapsed
11078
11079 \begin_layout Plain Layout
11080
11081 \change_inserted -712698321 1612018466
11082 <type>
11083 \change_unchanged
11084
11085 \end_layout
11086
11087 \end_inset
11088
11089 ] Modifies the layout of an inset.
11090  If the layout does not exist,
11091  this section is ignored.
11092  Must end with 
11093 \begin_inset Quotes eld
11094 \end_inset
11095
11096
11097 \begin_inset Flex Code
11098 status collapsed
11099
11100 \begin_layout Plain Layout
11101
11102 \change_inserted -712698321 1612018452
11103 End
11104 \change_unchanged
11105
11106 \end_layout
11107
11108 \end_inset
11109
11110
11111 \begin_inset Quotes erd
11112 \end_inset
11113
11114 .
11115 \end_layout
11116
11117 \begin_layout Description
11118 \begin_inset Flex Code
11119 status collapsed
11120
11121 \begin_layout Plain Layout
11122 ModifyStyle
11123 \end_layout
11124
11125 \end_inset
11126
11127  [
11128 \begin_inset Flex Code
11129 status collapsed
11130
11131 \begin_layout Plain Layout
11132 <style>
11133 \end_layout
11134
11135 \end_inset
11136
11137 ] Modifies the properties of the given paragraph style.
11138  If the style does not exist,
11139  this section is ignored.
11140  Must end with 
11141 \begin_inset Quotes eld
11142 \end_inset
11143
11144
11145 \begin_inset Flex Code
11146 status collapsed
11147
11148 \begin_layout Plain Layout
11149 End
11150 \end_layout
11151
11152 \end_inset
11153
11154
11155 \begin_inset Quotes erd
11156 \end_inset
11157
11158 .
11159 \end_layout
11160
11161 \begin_layout Description
11162 \begin_inset Flex Code
11163 status collapsed
11164
11165 \begin_layout Plain Layout
11166 NoCounter
11167 \end_layout
11168
11169 \end_inset
11170
11171  [
11172 \begin_inset Flex Code
11173 status collapsed
11174
11175 \begin_layout Plain Layout
11176 <counter>
11177 \end_layout
11178
11179 \end_inset
11180
11181 ] Deletes an existing counter,
11182  usually one defined in an included file.
11183 \end_layout
11184
11185 \begin_layout Description
11186 \begin_inset Flex Code
11187 status collapsed
11188
11189 \begin_layout Plain Layout
11190 NoFloat
11191 \end_layout
11192
11193 \end_inset
11194
11195  [
11196 \begin_inset Flex Code
11197 status collapsed
11198
11199 \begin_layout Plain Layout
11200 <float>
11201 \end_layout
11202
11203 \end_inset
11204
11205 ] Deletes an existing float.
11206  This is particularly useful when you want to suppress a float that has been defined in an input file.
11207 \end_layout
11208
11209 \begin_layout Description
11210 \begin_inset Flex Code
11211 status collapsed
11212
11213 \begin_layout Plain Layout
11214 NoStyle
11215 \end_layout
11216
11217 \end_inset
11218
11219  [
11220 \begin_inset Flex Code
11221 status collapsed
11222
11223 \begin_layout Plain Layout
11224 <style>
11225 \end_layout
11226
11227 \end_inset
11228
11229 ] Deletes an existing style.
11230 \end_layout
11231
11232 \begin_layout Description
11233 \begin_inset Flex Code
11234 status collapsed
11235
11236 \begin_layout Plain Layout
11237 OutlinerName
11238 \end_layout
11239
11240 \end_inset
11241
11242  [
11243 \begin_inset Flex Code
11244 status collapsed
11245
11246 \begin_layout Plain Layout
11247 <type>
11248 \end_layout
11249
11250 \end_inset
11251
11252 ] [
11253 \begin_inset Flex Code
11254 status collapsed
11255
11256 \begin_layout Plain Layout
11257 <string>
11258 \end_layout
11259
11260 \end_inset
11261
11262 ] Define a new table of contents with type 
11263 \begin_inset Flex Code
11264 status collapsed
11265
11266 \begin_layout Plain Layout
11267 <type>
11268 \end_layout
11269
11270 \end_inset
11271
11272  and name 
11273 \begin_inset Flex Code
11274 status collapsed
11275
11276 \begin_layout Plain Layout
11277 <string>
11278 \end_layout
11279
11280 \end_inset
11281
11282 .
11283  See also the AddToToc commands.
11284 \end_layout
11285
11286 \begin_layout Description
11287 \begin_inset Flex Code
11288 status collapsed
11289
11290 \begin_layout Plain Layout
11291 OutputFormat
11292 \end_layout
11293
11294 \end_inset
11295
11296  [
11297 \begin_inset Flex Code
11298 status collapsed
11299
11300 \begin_layout Plain Layout
11301 <format>
11302 \end_layout
11303
11304 \end_inset
11305
11306 ] The file format (as defined in the \SpecialChar LyX
11307  preferences) produced by this document class.
11308  It is mainly useful when 
11309 \begin_inset Flex Code
11310 status collapsed
11311
11312 \begin_layout Plain Layout
11313 OutputType
11314 \end_layout
11315
11316 \end_inset
11317
11318  is 
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323 literate
11324 \end_layout
11325
11326 \end_inset
11327
11328  and one wants to define a new type of literate document.
11329  The format is reset to 
11330 \change_deleted 5863208 1594239413
11331
11332 \begin_inset Quotes eld
11333 \end_inset
11334
11335
11336 \begin_inset Flex Code
11337 status collapsed
11338
11339 \begin_layout Plain Layout
11340 docbook
11341 \end_layout
11342
11343 \end_inset
11344
11345
11346 \begin_inset Quotes erd
11347 \end_inset
11348
11349  or
11350 \change_unchanged
11351  
11352 \begin_inset Quotes eld
11353 \end_inset
11354
11355
11356 \begin_inset Flex Code
11357 status collapsed
11358
11359 \begin_layout Plain Layout
11360 latex
11361 \end_layout
11362
11363 \end_inset
11364
11365
11366 \begin_inset Quotes erd
11367 \end_inset
11368
11369  when the corresponding 
11370 \begin_inset Flex Code
11371 status collapsed
11372
11373 \begin_layout Plain Layout
11374 OutputType
11375 \end_layout
11376
11377 \end_inset
11378
11379  parameter is encountered.
11380 \end_layout
11381
11382 \begin_layout Description
11383 \begin_inset Flex Code
11384 status collapsed
11385
11386 \begin_layout Plain Layout
11387 OutputType
11388 \end_layout
11389
11390 \end_inset
11391
11392  [
11393 \begin_inset Flex Code
11394 status collapsed
11395
11396 \begin_layout Plain Layout
11397
11398 \emph on
11399 lat
11400 \emph default
11401 ex
11402 \end_layout
11403
11404 \end_inset
11405
11406 ,
11407  
11408 \change_deleted 5863208 1594239430
11409
11410 \begin_inset Flex Code
11411 status collapsed
11412
11413 \begin_layout Plain Layout
11414 docbook
11415 \end_layout
11416
11417 \end_inset
11418
11419 ,
11420
11421 \change_unchanged
11422  
11423 \begin_inset Flex Code
11424 status collapsed
11425
11426 \begin_layout Plain Layout
11427 literate
11428 \end_layout
11429
11430 \end_inset
11431
11432 ] Specifies what sort of output documents using this class will produce.
11433 \end_layout
11434
11435 \begin_layout Description
11436 \begin_inset Flex Code
11437 status collapsed
11438
11439 \begin_layout Plain Layout
11440 PackageOptions
11441 \end_layout
11442
11443 \end_inset
11444
11445  [
11446 \begin_inset Flex Code
11447 status collapsed
11448
11449 \begin_layout Plain Layout
11450 string
11451 \end_layout
11452
11453 \end_inset
11454
11455  
11456 \begin_inset Flex Code
11457 status collapsed
11458
11459 \begin_layout Plain Layout
11460 string
11461 \end_layout
11462
11463 \end_inset
11464
11465 ] Specifies options,
11466  given in the second string,
11467  for the package named by the first string.
11468  For example,
11469  
11470 \begin_inset Quotes eld
11471 \end_inset
11472
11473
11474 \begin_inset Flex Code
11475 status collapsed
11476
11477 \begin_layout Plain Layout
11478 PackageOptions natbib square
11479 \end_layout
11480
11481 \end_inset
11482
11483
11484 \begin_inset Quotes erd
11485 \end_inset
11486
11487  will cause 
11488 \begin_inset Flex Code
11489 status collapsed
11490
11491 \begin_layout Plain Layout
11492 natbib
11493 \end_layout
11494
11495 \end_inset
11496
11497  to be loaded with the 
11498 \begin_inset Flex Code
11499 status collapsed
11500
11501 \begin_layout Plain Layout
11502 square
11503 \end_layout
11504
11505 \end_inset
11506
11507  option.
11508  (For \SpecialChar TeX
11509 perts,
11510  this causes \SpecialChar LyX
11511  to output:
11512  
11513 \begin_inset Flex Code
11514 status collapsed
11515
11516 \begin_layout Plain Layout
11517
11518 \backslash
11519 PassOptionsToPackage{natbib}{square}
11520 \end_layout
11521
11522 \end_inset
11523
11524  prior to loading 
11525 \begin_inset Flex Code
11526 status collapsed
11527
11528 \begin_layout Plain Layout
11529 natbib
11530 \end_layout
11531
11532 \end_inset
11533
11534 .)
11535 \change_inserted -712698321 1565102364
11536
11537 \end_layout
11538
11539 \begin_layout Description
11540
11541 \change_inserted -712698321 1565102470
11542 \begin_inset Flex Code
11543 status collapsed
11544
11545 \begin_layout Plain Layout
11546
11547 \change_inserted -712698321 1565102365
11548 PageSize
11549 \change_unchanged
11550
11551 \end_layout
11552
11553 \end_inset
11554
11555  [
11556 \begin_inset Flex Code
11557 status collapsed
11558
11559 \begin_layout Plain Layout
11560
11561 \change_inserted -712698321 1565105222
11562
11563 \emph on
11564 custom
11565 \emph default
11566 ,
11567  letter,
11568  legal,
11569  executive,
11570  a0,
11571  a1,
11572  a2,
11573  a3,
11574  a4,
11575  a5,
11576  a6,
11577  b0,
11578  b1,
11579  b2,
11580  b3,
11581  b4,
11582  b5,
11583  b6,
11584  c0,
11585  c1,
11586  c2,
11587  c3,
11588  c4,
11589  c5,
11590  c6,
11591  b0j,
11592  b1j,
11593  b2j,
11594  b3j,
11595  b4j,
11596  b5j,
11597  b6j
11598 \change_unchanged
11599
11600 \end_layout
11601
11602 \end_inset
11603
11604 ] The default page size.
11605  This is used by some converters.
11606 \change_unchanged
11607
11608 \end_layout
11609
11610 \begin_layout Description
11611 \begin_inset Flex Code
11612 status collapsed
11613
11614 \begin_layout Plain Layout
11615 PageStyle
11616 \end_layout
11617
11618 \end_inset
11619
11620  [
11621 \begin_inset Flex Code
11622 status collapsed
11623
11624 \begin_layout Plain Layout
11625
11626 \emph on
11627 plain
11628 \end_layout
11629
11630 \end_inset
11631
11632 ,
11633  
11634 \begin_inset Flex Code
11635 status collapsed
11636
11637 \begin_layout Plain Layout
11638 empty
11639 \end_layout
11640
11641 \end_inset
11642
11643 ,
11644  
11645 \begin_inset Flex Code
11646 status collapsed
11647
11648 \begin_layout Plain Layout
11649 headings
11650 \end_layout
11651
11652 \end_inset
11653
11654 ] The default pagestyle.
11655  Can be changed in the 
11656 \begin_inset Flex Noun
11657 status collapsed
11658
11659 \begin_layout Plain Layout
11660 Document\SpecialChar menuseparator
11661 Settings
11662 \end_layout
11663
11664 \end_inset
11665
11666  dialog.
11667 \end_layout
11668
11669 \begin_layout Description
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674 Preamble
11675 \end_layout
11676
11677 \end_inset
11678
11679  Sets the preamble for the \SpecialChar LaTeX
11680  document.
11681  Note that this will completely override any prior 
11682 \begin_inset Flex Code
11683 status collapsed
11684
11685 \begin_layout Plain Layout
11686 Preamble
11687 \end_layout
11688
11689 \end_inset
11690
11691  or 
11692 \begin_inset Flex Code
11693 status collapsed
11694
11695 \begin_layout Plain Layout
11696 AddToPreamble
11697 \end_layout
11698
11699 \end_inset
11700
11701  declarations.
11702  (Use 
11703 \begin_inset Flex Code
11704 status collapsed
11705
11706 \begin_layout Plain Layout
11707 AddToPreamble
11708 \end_layout
11709
11710 \end_inset
11711
11712  if you just want to add material to the preamble.) Must end with 
11713 \begin_inset Quotes eld
11714 \end_inset
11715
11716
11717 \begin_inset Flex Code
11718 status collapsed
11719
11720 \begin_layout Plain Layout
11721 EndPreamble
11722 \end_layout
11723
11724 \end_inset
11725
11726
11727 \begin_inset Quotes erd
11728 \end_inset
11729
11730 .
11731 \change_inserted -712698321 1612018500
11732
11733 \end_layout
11734
11735 \begin_layout Description
11736
11737 \change_inserted -712698321 1612018547
11738 \begin_inset Flex Code
11739 status collapsed
11740
11741 \begin_layout Plain Layout
11742
11743 \change_inserted -712698321 1612018506
11744 ProvideInsetLayout
11745 \change_unchanged
11746
11747 \end_layout
11748
11749 \end_inset
11750
11751  [
11752 \begin_inset Flex Code
11753 status collapsed
11754
11755 \begin_layout Plain Layout
11756
11757 \change_inserted -712698321 1612018509
11758 <type>
11759 \change_unchanged
11760
11761 \end_layout
11762
11763 \end_inset
11764
11765 ] Defines the layout of an inset if it does not already exist.
11766  If the layout does exist,
11767  this section is ignored.
11768  Must end with 
11769 \begin_inset Quotes eld
11770 \end_inset
11771
11772
11773 \begin_inset Flex Code
11774 status collapsed
11775
11776 \begin_layout Plain Layout
11777
11778 \change_inserted -712698321 1612018500
11779 End
11780 \change_unchanged
11781
11782 \end_layout
11783
11784 \end_inset
11785
11786
11787 \begin_inset Quotes erd
11788 \end_inset
11789
11790 .
11791 \change_unchanged
11792
11793 \end_layout
11794
11795 \begin_layout Description
11796 \begin_inset Flex Code
11797 status collapsed
11798
11799 \begin_layout Plain Layout
11800 Provides
11801 \end_layout
11802
11803 \end_inset
11804
11805  [
11806 \begin_inset Flex Code
11807 status collapsed
11808
11809 \begin_layout Plain Layout
11810 string
11811 \end_layout
11812
11813 \end_inset
11814
11815 ] [
11816 \begin_inset Flex Code
11817 status collapsed
11818
11819 \begin_layout Plain Layout
11820
11821 \emph on
11822 0
11823 \end_layout
11824
11825 \end_inset
11826
11827 ,
11828 \begin_inset space \thinspace{}
11829 \end_inset
11830
11831
11832 \begin_inset Flex Code
11833 status collapsed
11834
11835 \begin_layout Plain Layout
11836 1
11837 \end_layout
11838
11839 \end_inset
11840
11841 ] Whether the class already provides the feature 
11842 \begin_inset Flex Code
11843 status collapsed
11844
11845 \begin_layout Plain Layout
11846 string
11847 \end_layout
11848
11849 \end_inset
11850
11851 .
11852  A feature is in general the name of a package (e.
11853 \begin_inset space \thinspace{}
11854 \end_inset
11855
11856 g.
11857 \begin_inset space \space{}
11858 \end_inset
11859
11860
11861 \begin_inset Flex Code
11862 status collapsed
11863
11864 \begin_layout Plain Layout
11865 amsmath
11866 \end_layout
11867
11868 \end_inset
11869
11870  or 
11871 \begin_inset Flex Code
11872 status collapsed
11873
11874 \begin_layout Plain Layout
11875 makeidx
11876 \end_layout
11877
11878 \end_inset
11879
11880 ) or a macro (e.
11881 \begin_inset space \thinspace{}
11882 \end_inset
11883
11884 g.
11885 \begin_inset space \space{}
11886 \end_inset
11887
11888
11889 \begin_inset Flex Code
11890 status collapsed
11891
11892 \begin_layout Plain Layout
11893 url
11894 \end_layout
11895
11896 \end_inset
11897
11898  or 
11899 \begin_inset Flex Code
11900 status collapsed
11901
11902 \begin_layout Plain Layout
11903 boldsymbol
11904 \end_layout
11905
11906 \end_inset
11907
11908 ).
11909  See 
11910 \begin_inset CommandInset ref
11911 LatexCommand ref
11912 reference "chap:List-of-functions"
11913 nolink "false"
11914
11915 \end_inset
11916
11917  for the list of features.
11918 \end_layout
11919
11920 \begin_layout Description
11921 \begin_inset Flex Code
11922 status collapsed
11923
11924 \begin_layout Plain Layout
11925 ProvidesModule
11926 \end_layout
11927
11928 \end_inset
11929
11930  [
11931 \begin_inset Flex Code
11932 status collapsed
11933
11934 \begin_layout Plain Layout
11935 string
11936 \end_layout
11937
11938 \end_inset
11939
11940 ] Indicates that this layout provides the functionality of the module mentioned,
11941  which should be specified by the filename without the 
11942 \begin_inset Flex Code
11943 status collapsed
11944
11945 \begin_layout Plain Layout
11946 .module
11947 \end_layout
11948
11949 \end_inset
11950
11951  extension.
11952  This will typically be used if the layout includes the module directly,
11953  rather than using the 
11954 \begin_inset Flex Code
11955 status collapsed
11956
11957 \begin_layout Plain Layout
11958 DefaultModule
11959 \end_layout
11960
11961 \end_inset
11962
11963  tag to indicate that it ought to be used.
11964  It could also be used in a module that provided an alternate implementation of the same functionality.
11965 \end_layout
11966
11967 \begin_layout Description
11968 \begin_inset Flex Code
11969 status collapsed
11970
11971 \begin_layout Plain Layout
11972 ProvideStyle
11973 \end_layout
11974
11975 \end_inset
11976
11977  [
11978 \begin_inset Flex Code
11979 status collapsed
11980
11981 \begin_layout Plain Layout
11982 <style>
11983 \end_layout
11984
11985 \end_inset
11986
11987 ] Creates a new paragraph style if it does not already exist.
11988  If the style does exist,
11989  this section is ignored.
11990  Must end with 
11991 \begin_inset Quotes eld
11992 \end_inset
11993
11994
11995 \begin_inset Flex Code
11996 status collapsed
11997
11998 \begin_layout Plain Layout
11999 End
12000 \end_layout
12001
12002 \end_inset
12003
12004
12005 \begin_inset Quotes erd
12006 \end_inset
12007
12008 .
12009 \end_layout
12010
12011 \begin_layout Description
12012 \begin_inset Flex Code
12013 status collapsed
12014
12015 \begin_layout Plain Layout
12016 Requires
12017 \end_layout
12018
12019 \end_inset
12020
12021  [
12022 \begin_inset Flex Code
12023 status collapsed
12024
12025 \begin_layout Plain Layout
12026 string
12027 \end_layout
12028
12029 \end_inset
12030
12031 ] Whether the class requires the feature 
12032 \begin_inset Flex Code
12033 status collapsed
12034
12035 \begin_layout Plain Layout
12036 string
12037 \end_layout
12038
12039 \end_inset
12040
12041 .
12042  Multiple features must be separated by commas.
12043  Note that you can only request supported features.
12044  (See 
12045 \begin_inset CommandInset ref
12046 LatexCommand ref
12047 reference "chap:List-of-functions"
12048 nolink "false"
12049
12050 \end_inset
12051
12052  for the list of features.).
12053  If you require a package with specific options,
12054  you can additionally use 
12055 \begin_inset Flex Code
12056 status collapsed
12057
12058 \begin_layout Plain Layout
12059 PackageOptions
12060 \end_layout
12061
12062 \end_inset
12063
12064 .
12065 \end_layout
12066
12067 \begin_layout Description
12068 \begin_inset Flex Code
12069 status collapsed
12070
12071 \begin_layout Plain Layout
12072 RightMargin
12073 \end_layout
12074
12075 \end_inset
12076
12077  [
12078 \begin_inset Flex Code
12079 status collapsed
12080
12081 \begin_layout Plain Layout
12082 string
12083 \end_layout
12084
12085 \end_inset
12086
12087 ] A string that indicates the width of the right margin on the screen,
12088  for example,
12089  
12090 \begin_inset Quotes eld
12091 \end_inset
12092
12093
12094 \begin_inset Flex Code
12095 status collapsed
12096
12097 \begin_layout Plain Layout
12098 MMMMM
12099 \end_layout
12100
12101 \end_inset
12102
12103
12104 \begin_inset Quotes erd
12105 \end_inset
12106
12107 .
12108 \end_layout
12109
12110 \begin_layout Description
12111 \begin_inset Flex Code
12112 status collapsed
12113
12114 \begin_layout Plain Layout
12115 SecNumDepth
12116 \end_layout
12117
12118 \end_inset
12119
12120  [
12121 \begin_inset Flex Code
12122 status collapsed
12123
12124 \begin_layout Plain Layout
12125 int=3
12126 \end_layout
12127
12128 \end_inset
12129
12130 ] Sets which divisions get numbered.
12131  Corresponds to the
12132 \begin_inset Newline newline
12133 \end_inset
12134
12135
12136 \begin_inset Flex Code
12137 status collapsed
12138
12139 \begin_layout Plain Layout
12140 secnumdepth
12141 \end_layout
12142
12143 \end_inset
12144
12145  counter in \SpecialChar LaTeX
12146 .
12147 \end_layout
12148
12149 \begin_layout Description
12150 \begin_inset Flex Code
12151 status collapsed
12152
12153 \begin_layout Plain Layout
12154 Sides
12155 \end_layout
12156
12157 \end_inset
12158
12159  [
12160 \begin_inset Flex Code
12161 status collapsed
12162
12163 \begin_layout Plain Layout
12164
12165 \emph on
12166 1
12167 \end_layout
12168
12169 \end_inset
12170
12171 ,
12172 \begin_inset space \thinspace{}
12173 \end_inset
12174
12175
12176 \begin_inset Flex Code
12177 status collapsed
12178
12179 \begin_layout Plain Layout
12180 2
12181 \end_layout
12182
12183 \end_inset
12184
12185 ] Whether the class-default should be printing on one or both sides of the paper.
12186  Can be changed in the 
12187 \begin_inset Flex Noun
12188 status collapsed
12189
12190 \begin_layout Plain Layout
12191 Document\SpecialChar menuseparator
12192 Settings
12193 \end_layout
12194
12195 \end_inset
12196
12197  dialog.
12198 \end_layout
12199
12200 \begin_layout Description
12201 \begin_inset Flex Code
12202 status collapsed
12203
12204 \begin_layout Plain Layout
12205 Style
12206 \end_layout
12207
12208 \end_inset
12209
12210  [
12211 \begin_inset Flex Code
12212 status collapsed
12213
12214 \begin_layout Plain Layout
12215 <name>
12216 \end_layout
12217
12218 \end_inset
12219
12220 ] This sequence defines a paragraph style.
12221  If the style does not yet exist,
12222  it is created;
12223  if it does exist,
12224  its parameters are modified.
12225  Must end with 
12226 \begin_inset Quotes eld
12227 \end_inset
12228
12229
12230 \begin_inset Flex Code
12231 status collapsed
12232
12233 \begin_layout Plain Layout
12234 End
12235 \end_layout
12236
12237 \end_inset
12238
12239
12240 \begin_inset Quotes erd
12241 \end_inset
12242
12243 .
12244 \begin_inset Newline newline
12245 \end_inset
12246
12247 See 
12248 \begin_inset CommandInset ref
12249 LatexCommand ref
12250 reference "subsec:Paragraph-Styles"
12251 nolink "false"
12252
12253 \end_inset
12254
12255  for details on paragraph styles.
12256 \change_inserted -712698321 1553617804
12257
12258 \end_layout
12259
12260 \begin_layout Description
12261
12262 \change_inserted -712698321 1553617862
12263 \begin_inset Flex Code
12264 status collapsed
12265
12266 \begin_layout Plain Layout
12267
12268 \change_inserted -712698321 1553617809
12269 TableStyle
12270 \change_unchanged
12271
12272 \end_layout
12273
12274 \end_inset
12275
12276  [
12277 \begin_inset Flex Code
12278 status collapsed
12279
12280 \begin_layout Plain Layout
12281
12282 \change_inserted -712698321 1553617805
12283 <name>
12284 \change_unchanged
12285
12286 \end_layout
12287
12288 \end_inset
12289
12290 ] defines the default table style that is used when inserting a table.
12291  The following styles are available:
12292 \end_layout
12293
12294 \begin_deeper
12295 \begin_layout Itemize
12296
12297 \change_inserted -712698321 1554308039
12298 \begin_inset Flex Code
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302
12303 \change_inserted -712698321 1554307928
12304 Formal_with_Footline
12305 \change_unchanged
12306
12307 \end_layout
12308
12309 \end_inset
12310
12311 :
12312  formal (
12313 \begin_inset Quotes eld
12314 \end_inset
12315
12316 booktabs
12317 \begin_inset Quotes erd
12318 \end_inset
12319
12320 ) style with horizontal lines only,
12321  using a bold top and bottom line,
12322  the first and last row are additionally separated from the table body with a thin middle line.
12323 \end_layout
12324
12325 \begin_layout Itemize
12326
12327 \change_inserted -712698321 1554308087
12328 \begin_inset Flex Code
12329 status collapsed
12330
12331 \begin_layout Plain Layout
12332
12333 \change_inserted -712698321 1554308042
12334 Formal_without_Footline
12335 \change_unchanged
12336
12337 \end_layout
12338
12339 \end_inset
12340
12341 :
12342  same as the above,
12343  but the last row is not separated with a middle line from the body.
12344 \end_layout
12345
12346 \begin_layout Itemize
12347
12348 \change_inserted -712698321 1553618031
12349 \begin_inset Flex Code
12350 status collapsed
12351
12352 \begin_layout Plain Layout
12353
12354 \change_inserted -712698321 1553618006
12355 Simple_Grid
12356 \change_unchanged
12357
12358 \end_layout
12359
12360 \end_inset
12361
12362 :
12363  Simple table lines.
12364 \end_layout
12365
12366 \begin_layout Itemize
12367
12368 \change_inserted -712698321 1553618309
12369 \begin_inset Flex Code
12370 status collapsed
12371
12372 \begin_layout Plain Layout
12373
12374 \change_inserted -712698321 1553618031
12375 Grid_with_Head
12376 \change_unchanged
12377
12378 \end_layout
12379
12380 \end_inset
12381
12382 :
12383  Like 
12384 \begin_inset Flex Code
12385 status collapsed
12386
12387 \begin_layout Plain Layout
12388
12389 \change_inserted -712698321 1553618043
12390 Simple_Grid
12391 \change_unchanged
12392
12393 \end_layout
12394
12395 \end_inset
12396
12397 ,
12398  but with the header 
12399 \change_deleted 34634807 1619712593
12400 column
12401 \change_inserted 34634807 1619712594
12402 row
12403 \change_inserted -712698321 1553618309
12404  offset with a second horizontal line.
12405  This is also the default style of \SpecialChar LyX
12406 .
12407 \end_layout
12408
12409 \begin_layout Itemize
12410
12411 \change_inserted -712698321 1553618280
12412 \begin_inset Flex Code
12413 status collapsed
12414
12415 \begin_layout Plain Layout
12416
12417 \change_inserted -712698321 1553618261
12418 No_Borders
12419 \change_unchanged
12420
12421 \end_layout
12422
12423 \end_inset
12424
12425 :
12426  Table without lines.
12427 \change_unchanged
12428
12429 \end_layout
12430
12431 \end_deeper
12432 \begin_layout Description
12433 \begin_inset Flex Code
12434 status collapsed
12435
12436 \begin_layout Plain Layout
12437 TitleLatexName
12438 \end_layout
12439
12440 \end_inset
12441
12442  [
12443 \begin_inset Flex Code
12444 status collapsed
12445
12446 \begin_layout Plain Layout
12447 string="maketitle"
12448 \end_layout
12449
12450 \end_inset
12451
12452 ] The name of the command or environment to be used with 
12453 \begin_inset Flex Code
12454 status collapsed
12455
12456 \begin_layout Plain Layout
12457 TitleLatexType
12458 \end_layout
12459
12460 \end_inset
12461
12462 .
12463 \end_layout
12464
12465 \begin_layout Description
12466 \begin_inset Flex Code
12467 status collapsed
12468
12469 \begin_layout Plain Layout
12470 TitleLatexType
12471 \end_layout
12472
12473 \end_inset
12474
12475  [
12476 \begin_inset Flex Code
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480
12481 \emph on
12482 CommandAfter
12483 \end_layout
12484
12485 \end_inset
12486
12487 ,
12488  
12489 \begin_inset Flex Code
12490 status collapsed
12491
12492 \begin_layout Plain Layout
12493 Environment
12494 \end_layout
12495
12496 \end_inset
12497
12498 ] Indicates what kind of markup is used to define the title of a document.
12499  
12500 \begin_inset Flex Code
12501 status collapsed
12502
12503 \begin_layout Plain Layout
12504 CommandAfter
12505 \end_layout
12506
12507 \end_inset
12508
12509  means that the macro with name 
12510 \begin_inset Flex Code
12511 status collapsed
12512
12513 \begin_layout Plain Layout
12514 TitleLatexName
12515 \end_layout
12516
12517 \end_inset
12518
12519  will be inserted after the last layout which has 
12520 \begin_inset Quotes eld
12521 \end_inset
12522
12523
12524 \begin_inset Flex Code
12525 status collapsed
12526
12527 \begin_layout Plain Layout
12528 InTitle
12529 \begin_inset space ~
12530 \end_inset
12531
12532 1
12533 \end_layout
12534
12535 \end_inset
12536
12537
12538 \begin_inset Quotes erd
12539 \end_inset
12540
12541 .
12542  
12543 \begin_inset Flex Code
12544 status collapsed
12545
12546 \begin_layout Plain Layout
12547 Environment
12548 \end_layout
12549
12550 \end_inset
12551
12552  corresponds to the case where all layouts which have 
12553 \begin_inset Quotes eld
12554 \end_inset
12555
12556
12557 \begin_inset Flex Code
12558 status collapsed
12559
12560 \begin_layout Plain Layout
12561 InTitle
12562 \begin_inset space ~
12563 \end_inset
12564
12565 1
12566 \end_layout
12567
12568 \end_inset
12569
12570
12571 \begin_inset Quotes erd
12572 \end_inset
12573
12574  should be enclosed into the 
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 TitleLatexName
12580 \end_layout
12581
12582 \end_inset
12583
12584  environment.
12585 \end_layout
12586
12587 \begin_layout Description
12588 \begin_inset Flex Code
12589 status collapsed
12590
12591 \begin_layout Plain Layout
12592 TocDepth
12593 \end_layout
12594
12595 \end_inset
12596
12597  [
12598 \begin_inset Flex Code
12599 status collapsed
12600
12601 \begin_layout Plain Layout
12602 int=3
12603 \end_layout
12604
12605 \end_inset
12606
12607 ] Sets which divisions are included in the table of contents.
12608  Corresponds to the 
12609 \begin_inset Flex Code
12610 status collapsed
12611
12612 \begin_layout Plain Layout
12613 tocdepth
12614 \end_layout
12615
12616 \end_inset
12617
12618  counter in \SpecialChar LaTeX
12619 .
12620 \end_layout
12621
12622 \begin_layout Subsection
12623 \begin_inset Flex Code
12624 status collapsed
12625
12626 \begin_layout Plain Layout
12627 ClassOptions
12628 \end_layout
12629
12630 \end_inset
12631
12632  section
12633 \begin_inset CommandInset label
12634 LatexCommand label
12635 name "subsec:ClassOptions"
12636
12637 \end_inset
12638
12639
12640 \end_layout
12641
12642 \begin_layout Standard
12643 The 
12644 \begin_inset Flex Code
12645 status collapsed
12646
12647 \begin_layout Plain Layout
12648 ClassOptions
12649 \end_layout
12650
12651 \end_inset
12652
12653  section can contain the following entries:
12654 \end_layout
12655
12656 \begin_layout Description
12657 \begin_inset Flex Code
12658 status collapsed
12659
12660 \begin_layout Plain Layout
12661 FontSize
12662 \end_layout
12663
12664 \end_inset
12665
12666  [
12667 \begin_inset Flex Code
12668 status collapsed
12669
12670 \begin_layout Plain Layout
12671 string="10|11|12"
12672 \end_layout
12673
12674 \end_inset
12675
12676 ] The list of available font sizes for the document's main font,
12677  separated by 
12678 \begin_inset Quotes eld
12679 \end_inset
12680
12681
12682 \begin_inset Flex Code
12683 status collapsed
12684
12685 \begin_layout Plain Layout
12686 |
12687 \end_layout
12688
12689 \end_inset
12690
12691
12692 \begin_inset Quotes erd
12693 \end_inset
12694
12695 .
12696
12697 \change_inserted -712698321 1565110196
12698  Any number is possible.
12699 \end_layout
12700
12701 \begin_layout Description
12702
12703 \change_inserted -712698321 1565110259
12704 \begin_inset Flex Code
12705 status collapsed
12706
12707 \begin_layout Plain Layout
12708
12709 \change_inserted -712698321 1565110199
12710 FontSizeFormat
12711 \change_unchanged
12712
12713 \end_layout
12714
12715 \end_inset
12716
12717  [
12718 \begin_inset Flex Code
12719 status collapsed
12720
12721 \begin_layout Plain Layout
12722
12723 \change_inserted -712698321 1565110196
12724 string
12725 \change_unchanged
12726
12727 \end_layout
12728
12729 \end_inset
12730
12731 ] The format for the font size option.
12732  Default:
12733  
12734 \begin_inset Flex Code
12735 status collapsed
12736
12737 \begin_layout Plain Layout
12738
12739 \change_inserted -712698321 1565110238
12740 $$spt
12741 \change_unchanged
12742
12743 \end_layout
12744
12745 \end_inset
12746
12747 .
12748  
12749 \begin_inset Flex Code
12750 status collapsed
12751
12752 \begin_layout Plain Layout
12753
12754 \change_inserted -712698321 1565110248
12755 $$s
12756 \change_unchanged
12757
12758 \end_layout
12759
12760 \end_inset
12761
12762  is a placeholder for the font size.
12763 \change_unchanged
12764
12765 \end_layout
12766
12767 \begin_layout Description
12768
12769 \change_deleted 5863208 1594239483
12770 \begin_inset Flex Code
12771 status collapsed
12772
12773 \begin_layout Plain Layout
12774 Header
12775 \end_layout
12776
12777 \end_inset
12778
12779  Used to set the DTD line with XML-based output classes.
12780  E.
12781 \begin_inset space \thinspace{}
12782 \end_inset
12783
12784 g.:
12785  PUBLIC 
12786 \begin_inset Quotes eld
12787 \end_inset
12788
12789 -//OASIS//DTD DocBook V4.2//EN
12790 \begin_inset Quotes erd
12791 \end_inset
12792
12793 .
12794 \change_inserted -712698321 1565101761
12795
12796 \end_layout
12797
12798 \begin_layout Description
12799
12800 \change_inserted -712698321 1565180598
12801 \begin_inset Flex Code
12802 status collapsed
12803
12804 \begin_layout Plain Layout
12805
12806 \change_inserted -712698321 1565101918
12807 PageSize
12808 \change_unchanged
12809
12810 \end_layout
12811
12812 \end_inset
12813
12814  [
12815 \begin_inset Flex Code
12816 status collapsed
12817
12818 \begin_layout Plain Layout
12819
12820 \change_inserted -712698321 1565105399
12821 string="letter|\SpecialChar allowbreak
12822 legal|\SpecialChar allowbreak
12823 executive|\SpecialChar allowbreak
12824 a0|\SpecialChar allowbreak
12825 a1|\SpecialChar allowbreak
12826 a2|\SpecialChar allowbreak
12827 a3|\SpecialChar allowbreak
12828 a4|\SpecialChar allowbreak
12829 a5|\SpecialChar allowbreak
12830 a6|\SpecialChar allowbreak
12831 b0|\SpecialChar allowbreak
12832 b1|\SpecialChar allowbreak
12833 b2|\SpecialChar allowbreak
12834 b3|\SpecialChar allowbreak
12835 b4|\SpecialChar allowbreak
12836 b5|\SpecialChar allowbreak
12837 b6|\SpecialChar allowbreak
12838 c0|\SpecialChar allowbreak
12839 c1|\SpecialChar allowbreak
12840 c2|\SpecialChar allowbreak
12841 c3|\SpecialChar allowbreak
12842 c4|\SpecialChar allowbreak
12843 c5|\SpecialChar allowbreak
12844 c6|\SpecialChar allowbreak
12845 b0j|\SpecialChar allowbreak
12846 b1j|\SpecialChar allowbreak
12847 b2j|\SpecialChar allowbreak
12848 b3j|\SpecialChar allowbreak
12849 b4j|\SpecialChar allowbreak
12850 b5j|\SpecialChar allowbreak
12851 b6j"
12852 \change_unchanged
12853
12854 \end_layout
12855
12856 \end_inset
12857
12858 ] The list of available page sizes,
12859  separated by 
12860 \begin_inset Quotes eld
12861 \end_inset
12862
12863
12864 \begin_inset Flex Code
12865 status collapsed
12866
12867 \begin_layout Plain Layout
12868
12869 \change_inserted -712698321 1565101779
12870 |
12871 \change_unchanged
12872
12873 \end_layout
12874
12875 \end_inset
12876
12877
12878 \begin_inset Quotes erd
12879 \end_inset
12880
12881 .
12882  Currently,
12883  only the listed sizes are supported.
12884  Other sizes might be entered as custom class option.
12885 \end_layout
12886
12887 \begin_layout Description
12888
12889 \change_inserted -712698321 1565180623
12890 \begin_inset Flex Code
12891 status collapsed
12892
12893 \begin_layout Plain Layout
12894
12895 \change_inserted -712698321 1565180605
12896 PageSizeFormat
12897 \change_unchanged
12898
12899 \end_layout
12900
12901 \end_inset
12902
12903  [
12904 \begin_inset Flex Code
12905 status collapsed
12906
12907 \begin_layout Plain Layout
12908
12909 \change_inserted -712698321 1565180601
12910 string
12911 \change_unchanged
12912
12913 \end_layout
12914
12915 \end_inset
12916
12917 ] The format for the page size option.
12918  Default:
12919  
12920 \begin_inset Flex Code
12921 status collapsed
12922
12923 \begin_layout Plain Layout
12924
12925 \change_inserted -712698321 1565180618
12926 $$spaper
12927 \change_unchanged
12928
12929 \end_layout
12930
12931 \end_inset
12932
12933 .
12934  
12935 \begin_inset Flex Code
12936 status collapsed
12937
12938 \begin_layout Plain Layout
12939
12940 \change_inserted -712698321 1565180601
12941 $$s
12942 \change_unchanged
12943
12944 \end_layout
12945
12946 \end_inset
12947
12948  is a placeholder for the paper size.
12949 \change_unchanged
12950
12951 \end_layout
12952
12953 \begin_layout Description
12954 \begin_inset Flex Code
12955 status collapsed
12956
12957 \begin_layout Plain Layout
12958 PageStyle
12959 \end_layout
12960
12961 \end_inset
12962
12963  [
12964 \begin_inset Flex Code
12965 status collapsed
12966
12967 \begin_layout Plain Layout
12968 string="empty|plain|headings|fancy"
12969 \end_layout
12970
12971 \end_inset
12972
12973 ] The list of available page sty\SpecialChar softhyphen
12974 les,
12975  separated by 
12976 \begin_inset Quotes eld
12977 \end_inset
12978
12979
12980 \begin_inset Flex Code
12981 status collapsed
12982
12983 \begin_layout Plain Layout
12984 |
12985 \end_layout
12986
12987 \end_inset
12988
12989
12990 \begin_inset Quotes erd
12991 \end_inset
12992
12993 .
12994 \end_layout
12995
12996 \begin_layout Description
12997 \begin_inset Flex Code
12998 status collapsed
12999
13000 \begin_layout Plain Layout
13001 Other
13002 \end_layout
13003
13004 \end_inset
13005
13006  [
13007 \begin_inset Flex Code
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011 string=""
13012 \end_layout
13013
13014 \end_inset
13015
13016 ] Some document class options,
13017  separated by a comma,
13018  that will be added to the optional part of the 
13019 \begin_inset Flex Code
13020 status collapsed
13021
13022 \begin_layout Plain Layout
13023
13024 \backslash
13025 documentclass
13026 \end_layout
13027
13028 \end_inset
13029
13030  command.
13031 \end_layout
13032
13033 \begin_layout Standard
13034 The 
13035 \begin_inset Flex Code
13036 status collapsed
13037
13038 \begin_layout Plain Layout
13039 ClassOptions
13040 \end_layout
13041
13042 \end_inset
13043
13044  section must end with 
13045 \begin_inset Quotes eld
13046 \end_inset
13047
13048
13049 \begin_inset Flex Code
13050 status collapsed
13051
13052 \begin_layout Plain Layout
13053 End
13054 \end_layout
13055
13056 \end_inset
13057
13058
13059 \begin_inset Quotes erd
13060 \end_inset
13061
13062 .
13063 \end_layout
13064
13065 \begin_layout Subsection
13066 Paragraph styles
13067 \begin_inset CommandInset label
13068 LatexCommand label
13069 name "subsec:Paragraph-Styles"
13070
13071 \end_inset
13072
13073
13074 \end_layout
13075
13076 \begin_layout Standard
13077 A paragraph style description looks like this:
13078 \begin_inset Foot
13079 status collapsed
13080
13081 \begin_layout Plain Layout
13082 Note that this will either define a new style or modify an existing one.
13083 \end_layout
13084
13085 \end_inset
13086
13087
13088 \end_layout
13089
13090 \begin_layout LyX-Code
13091 Style 
13092 \family roman
13093 \emph on
13094 name
13095 \end_layout
13096
13097 \begin_layout LyX-Code
13098  ...
13099 \end_layout
13100
13101 \begin_layout LyX-Code
13102 End
13103 \end_layout
13104
13105 \begin_layout Standard
13106 where the following commands are allowed:
13107 \end_layout
13108
13109 \begin_layout Description
13110 \begin_inset Flex Code
13111 status collapsed
13112
13113 \begin_layout Plain Layout
13114 AddToToc
13115 \end_layout
13116
13117 \end_inset
13118
13119  [
13120 \begin_inset Flex Code
13121 status collapsed
13122
13123 \begin_layout Plain Layout
13124 string
13125 \end_layout
13126
13127 \end_inset
13128
13129 =""] This paragraph will appear in the table of contents of the given type.
13130  An empty string disables.
13131  See also the OutlinerName and the IsTocCaption commands.
13132  Default:
13133  disabled.
13134 \end_layout
13135
13136 \begin_layout Description
13137 \begin_inset Flex Code
13138 status collapsed
13139
13140 \begin_layout Plain Layout
13141 Align
13142 \end_layout
13143
13144 \end_inset
13145
13146  [
13147 \begin_inset Flex Code
13148 status collapsed
13149
13150 \begin_layout Plain Layout
13151
13152 \emph on
13153 block
13154 \emph default
13155 ,
13156  left,
13157  right,
13158  center
13159 \end_layout
13160
13161 \end_inset
13162
13163 ] Paragraph alignment.
13164 \end_layout
13165
13166 \begin_layout Description
13167 \begin_inset Flex Code
13168 status collapsed
13169
13170 \begin_layout Plain Layout
13171 AlignPossible
13172 \end_layout
13173
13174 \end_inset
13175
13176  [
13177 \begin_inset Flex Code
13178 status collapsed
13179
13180 \begin_layout Plain Layout
13181
13182 \emph on
13183 block
13184 \emph default
13185 ,
13186  left,
13187  right,
13188  center
13189 \end_layout
13190
13191 \end_inset
13192
13193 ] A comma separated list of permitted alignments.
13194  (Some \SpecialChar LaTeX
13195  styles prohibit certain alignments,
13196  since those wouldn't make sense.
13197  For example a right-aligned or centered enumeration isn't possible.)
13198 \end_layout
13199
13200 \begin_layout Description
13201 \begin_inset Flex Code
13202 status collapsed
13203
13204 \begin_layout Plain Layout
13205 Argument
13206 \end_layout
13207
13208 \end_inset
13209
13210  [
13211 \begin_inset Flex Code
13212 status collapsed
13213
13214 \begin_layout Plain Layout
13215 int
13216 \end_layout
13217
13218 \end_inset
13219
13220 ] Defines argument number <int> of a command\SpecialChar breakableslash
13221 environment associated with the current style.
13222
13223 \change_inserted -584632292 1615846868
13224  The definition must end with 
13225 \begin_inset Flex Code
13226 status collapsed
13227
13228 \begin_layout Plain Layout
13229
13230 \change_inserted -584632292 1615846867
13231 EndArgument
13232 \change_unchanged
13233
13234 \end_layout
13235
13236 \end_inset
13237
13238 .
13239
13240 \change_unchanged
13241  
13242 \change_inserted -584632292 1615846880
13243 See 
13244 \begin_inset CommandInset ref
13245 LatexCommand ref
13246 reference "subsec:Arguments"
13247 plural "false"
13248 caps "false"
13249 noprefix "false"
13250 nolink "false"
13251
13252 \end_inset
13253
13254  for more information.
13255  
13256 \change_deleted -584632292 1615846694
13257 This is useful for things like section headings,
13258  and only makes sense with \SpecialChar LaTeX
13259 .
13260  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,
13261  where the number specifies the order of the arguments.
13262  The definition must end with 
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 EndArgument
13268 \end_layout
13269
13270 \end_inset
13271
13272 .
13273  So a command with two optional arguments has:
13274 \end_layout
13275
13276 \begin_deeper
13277 \begin_layout Quote
13278
13279 \change_deleted -584632292 1615846694
13280
13281 \family typewriter
13282 Argument 1
13283 \end_layout
13284
13285 \begin_layout Quote
13286
13287 \change_deleted -584632292 1615846694
13288
13289 \family typewriter
13290 ...
13291 \end_layout
13292
13293 \begin_layout Quote
13294
13295 \change_deleted -584632292 1615846694
13296
13297 \family typewriter
13298 EndArgument
13299 \end_layout
13300
13301 \begin_layout Quote
13302
13303 \change_deleted -584632292 1615846694
13304
13305 \family typewriter
13306 Argument 2
13307 \end_layout
13308
13309 \begin_layout Quote
13310
13311 \change_deleted -584632292 1615846694
13312
13313 \family typewriter
13314 ...
13315 \end_layout
13316
13317 \begin_layout Quote
13318
13319 \change_deleted -584632292 1615846694
13320
13321 \family typewriter
13322 EndArgument
13323 \end_layout
13324
13325 \begin_layout Standard
13326
13327 \change_deleted -584632292 1615846694
13328 Inside the 
13329 \begin_inset Flex Code
13330 status collapsed
13331
13332 \begin_layout Plain Layout
13333 Argument
13334 \end_layout
13335
13336 \end_inset
13337
13338  definition,
13339  the following specifications are possible:
13340 \end_layout
13341
13342 \begin_layout Itemize
13343
13344 \change_deleted -584632292 1615846694
13345 \begin_inset Flex Code
13346 status collapsed
13347
13348 \begin_layout Plain Layout
13349 LabelString
13350 \end_layout
13351
13352 \end_inset
13353
13354  
13355 \begin_inset Flex Code
13356 status collapsed
13357
13358 \begin_layout Plain Layout
13359 [string]
13360 \end_layout
13361
13362 \end_inset
13363
13364  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 
13365 \begin_inset Flex Code
13366 status collapsed
13367
13368 \begin_layout Plain Layout
13369 MenuString
13370 \end_layout
13371
13372 \end_inset
13373
13374 ).
13375  For the menu,
13376  you can define an accelerator by appending the respective character to the string,
13377  divided by 
13378 \begin_inset Quotes eld
13379 \end_inset
13380
13381 |
13382 \begin_inset Quotes erd
13383 \end_inset
13384
13385  (e.
13386 \begin_inset space \thinspace{}
13387 \end_inset
13388
13389 g.
13390 \begin_inset space \space{}
13391 \end_inset
13392
13393
13394 \begin_inset Quotes eld
13395 \end_inset
13396
13397
13398 \begin_inset Flex Code
13399 status collapsed
13400
13401 \begin_layout Plain Layout
13402 Short Title|S
13403 \end_layout
13404
13405 \end_inset
13406
13407
13408 \begin_inset Quotes erd
13409 \end_inset
13410
13411 ).
13412 \end_layout
13413
13414 \begin_layout Itemize
13415
13416 \change_deleted -584632292 1615846694
13417 \begin_inset Flex Code
13418 status collapsed
13419
13420 \begin_layout Plain Layout
13421 MenuString
13422 \end_layout
13423
13424 \end_inset
13425
13426  
13427 \begin_inset Flex Code
13428 status collapsed
13429
13430 \begin_layout Plain Layout
13431 [string]
13432 \end_layout
13433
13434 \end_inset
13435
13436  A separate string for the menu.
13437  You can define an accelerator by appending the respective character to the string,
13438  divided by 
13439 \begin_inset Quotes eld
13440 \end_inset
13441
13442 |
13443 \begin_inset Quotes erd
13444 \end_inset
13445
13446  (e.
13447 \begin_inset space \thinspace{}
13448 \end_inset
13449
13450 g.
13451 \begin_inset space \space{}
13452 \end_inset
13453
13454
13455 \begin_inset Quotes eld
13456 \end_inset
13457
13458
13459 \begin_inset Flex Code
13460 status collapsed
13461
13462 \begin_layout Plain Layout
13463 Short Title|S
13464 \end_layout
13465
13466 \end_inset
13467
13468
13469 \begin_inset Quotes erd
13470 \end_inset
13471
13472 ).
13473  This specification is optional.
13474  If it is not given the 
13475 \begin_inset Flex Code
13476 status collapsed
13477
13478 \begin_layout Plain Layout
13479 LabelString
13480 \end_layout
13481
13482 \end_inset
13483
13484  will be used instead for the menu.
13485 \end_layout
13486
13487 \begin_layout Itemize
13488
13489 \change_deleted -584632292 1615846694
13490 \begin_inset Flex Code
13491 status collapsed
13492
13493 \begin_layout Plain Layout
13494 Tooltip
13495 \end_layout
13496
13497 \end_inset
13498
13499  
13500 \begin_inset Flex Code
13501 status collapsed
13502
13503 \begin_layout Plain Layout
13504 [string]
13505 \end_layout
13506
13507 \end_inset
13508
13509  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
13510 \end_layout
13511
13512 \begin_layout Itemize
13513
13514 \change_deleted -584632292 1615846694
13515 \begin_inset Flex Code
13516 status collapsed
13517
13518 \begin_layout Plain Layout
13519 Mandatory
13520 \end_layout
13521
13522 \end_inset
13523
13524  [
13525 \begin_inset Flex Code
13526 status collapsed
13527
13528 \begin_layout Plain Layout
13529
13530 \emph on
13531 0
13532 \end_layout
13533
13534 \end_inset
13535
13536 ,
13537 \begin_inset space \thinspace{}
13538 \end_inset
13539
13540
13541 \begin_inset Flex Code
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545 1
13546 \end_layout
13547
13548 \end_inset
13549
13550 ] Declare if this is a mandatory (1) or an optional (0) argument.
13551  Mandatory arguments will be output empty if not given,
13552  while optional arguments will not be output at all.
13553  By default,
13554  mandatory arguments are delimited by 
13555 \begin_inset Flex Code
13556 status collapsed
13557
13558 \begin_layout Plain Layout
13559 {...}
13560 \end_layout
13561
13562 \end_inset
13563
13564 ,
13565  while optional arguments are delimited by 
13566 \begin_inset Flex Code
13567 status collapsed
13568
13569 \begin_layout Plain Layout
13570 [...]
13571 \end_layout
13572
13573 \end_inset
13574
13575
13576 \end_layout
13577
13578 \begin_layout Itemize
13579
13580 \change_deleted -584632292 1615846694
13581 \begin_inset Flex Code
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585
13586 \change_inserted -712698321 1555579780
13587 NewlineCmd
13588 \change_unchanged
13589
13590 \end_layout
13591
13592 \end_inset
13593
13594  
13595 \begin_inset Flex Code
13596 status collapsed
13597
13598 \begin_layout Plain Layout
13599
13600 \change_inserted -712698321 1555579780
13601 [string]
13602 \change_unchanged
13603
13604 \end_layout
13605
13606 \end_inset
13607
13608  Option to define a different command (from the default 
13609 \begin_inset Flex Code
13610 status collapsed
13611
13612 \begin_layout Plain Layout
13613
13614 \change_inserted -712698321 1555579780
13615
13616 \backslash
13617
13618 \backslash
13619
13620 \change_unchanged
13621
13622 \end_layout
13623
13624 \end_inset
13625
13626 ) to be used for line breaks.
13627  The initial backslash must not be specified.
13628 \end_layout
13629
13630 \begin_layout Itemize
13631
13632 \change_deleted -584632292 1615846694
13633 \begin_inset Flex Code
13634 status collapsed
13635
13636 \begin_layout Plain Layout
13637 Requires
13638 \end_layout
13639
13640 \end_inset
13641
13642  
13643 \begin_inset Flex Code
13644 status collapsed
13645
13646 \begin_layout Plain Layout
13647 [int=0]
13648 \end_layout
13649
13650 \end_inset
13651
13652  defines another argument (by its number) which this argument requires to be output if it is itself output.
13653  E.
13654 \begin_inset space \thinspace{}
13655 \end_inset
13656
13657 g.,
13658  in \SpecialChar LaTeX
13659  commands,
13660  optional arguments often require previous optional arguments to be output (at least empty),
13661  as in 
13662 \begin_inset Flex Code
13663 status collapsed
13664
13665 \begin_layout Plain Layout
13666
13667 \backslash
13668 command[][argument]{text}
13669 \end_layout
13670
13671 \end_inset
13672
13673 .
13674  This can be achieved by the statement 
13675 \begin_inset Flex Code
13676 status collapsed
13677
13678 \begin_layout Plain Layout
13679 Requires 1
13680 \end_layout
13681
13682 \end_inset
13683
13684  within 
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 Argument 2
13690 \end_layout
13691
13692 \end_inset
13693
13694 .
13695 \end_layout
13696
13697 \begin_layout Itemize
13698
13699 \change_deleted -584632292 1615846694
13700 \begin_inset Flex Code
13701 status collapsed
13702
13703 \begin_layout Plain Layout
13704 LeftDelim
13705 \end_layout
13706
13707 \end_inset
13708
13709  
13710 \begin_inset Flex Code
13711 status collapsed
13712
13713 \begin_layout Plain Layout
13714 [string]
13715 \end_layout
13716
13717 \end_inset
13718
13719  defines a custom left delimiter (instead of 
13720 \begin_inset Flex Code
13721 status collapsed
13722
13723 \begin_layout Plain Layout
13724 {
13725 \end_layout
13726
13727 \end_inset
13728
13729  or 
13730 \begin_inset Flex Code
13731 status collapsed
13732
13733 \begin_layout Plain Layout
13734 [
13735 \end_layout
13736
13737 \end_inset
13738
13739 ).
13740  A line break in the output can be indicated by 
13741 \begin_inset Flex Code
13742 status collapsed
13743
13744 \begin_layout Plain Layout
13745 <br/>
13746 \end_layout
13747
13748 \end_inset
13749
13750 .
13751 \end_layout
13752
13753 \begin_layout Itemize
13754
13755 \change_deleted -584632292 1615846694
13756 \begin_inset Flex Code
13757 status collapsed
13758
13759 \begin_layout Plain Layout
13760 RightDelim
13761 \end_layout
13762
13763 \end_inset
13764
13765  
13766 \begin_inset Flex Code
13767 status collapsed
13768
13769 \begin_layout Plain Layout
13770 [string]
13771 \end_layout
13772
13773 \end_inset
13774
13775  defines a custom right delimiter (instead of 
13776 \begin_inset Flex Code
13777 status collapsed
13778
13779 \begin_layout Plain Layout
13780 }
13781 \end_layout
13782
13783 \end_inset
13784
13785  or 
13786 \begin_inset Flex Code
13787 status collapsed
13788
13789 \begin_layout Plain Layout
13790 ]
13791 \end_layout
13792
13793 \end_inset
13794
13795 ).
13796  A line break in the output can be indicated by 
13797 \begin_inset Flex Code
13798 status collapsed
13799
13800 \begin_layout Plain Layout
13801 <br/>
13802 \end_layout
13803
13804 \end_inset
13805
13806 .
13807 \end_layout
13808
13809 \begin_layout Itemize
13810
13811 \change_deleted -584632292 1615846694
13812 \begin_inset Flex Code
13813 status collapsed
13814
13815 \begin_layout Plain Layout
13816 DefaultArg
13817 \end_layout
13818
13819 \end_inset
13820
13821  
13822 \begin_inset Flex Code
13823 status collapsed
13824
13825 \begin_layout Plain Layout
13826 [string]
13827 \end_layout
13828
13829 \end_inset
13830
13831  defines an argument that is inserted if and only if no user-specified arguments were given,
13832  i.
13833 \begin_inset space \thinspace{}
13834 \end_inset
13835
13836 e.
13837 \begin_inset space \space{}
13838 \end_inset
13839
13840 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
13841  Multiple arguments need to be separated by comma.
13842 \end_layout
13843
13844 \begin_layout Itemize
13845
13846 \change_deleted -584632292 1615846694
13847 \begin_inset Flex Code
13848 status collapsed
13849
13850 \begin_layout Plain Layout
13851 PresetArg
13852 \end_layout
13853
13854 \end_inset
13855
13856  
13857 \begin_inset Flex Code
13858 status collapsed
13859
13860 \begin_layout Plain Layout
13861 [string]
13862 \end_layout
13863
13864 \end_inset
13865
13866  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
13867  Multiple arguments need to be separated by comma.
13868 \end_layout
13869
13870 \begin_layout Itemize
13871
13872 \change_deleted -584632292 1615846694
13873 \begin_inset Flex Code
13874 status collapsed
13875
13876 \begin_layout Plain Layout
13877 Font
13878 \end_layout
13879
13880 \end_inset
13881
13882  The font used for the argument content,
13883  see 
13884 \begin_inset CommandInset ref
13885 LatexCommand ref
13886 reference "subsec:Font-description"
13887 nolink "false"
13888
13889 \end_inset
13890
13891 .
13892 \end_layout
13893
13894 \begin_layout Itemize
13895
13896 \change_deleted -584632292 1615846694
13897 \begin_inset Flex Code
13898 status collapsed
13899
13900 \begin_layout Plain Layout
13901
13902 \change_inserted -712698321 1559484228
13903 FreeSpacing
13904 \change_unchanged
13905
13906 \end_layout
13907
13908 \end_inset
13909
13910  [
13911 \begin_inset Flex Code
13912 status collapsed
13913
13914 \begin_layout Plain Layout
13915
13916 \change_inserted -712698321 1559484228
13917
13918 \emph on
13919 0
13920 \change_unchanged
13921
13922 \end_layout
13923
13924 \end_inset
13925
13926 ,
13927 \begin_inset space \thinspace{}
13928 \end_inset
13929
13930
13931 \begin_inset Flex Code
13932 status collapsed
13933
13934 \begin_layout Plain Layout
13935
13936 \change_inserted -712698321 1559484228
13937 1
13938 \change_unchanged
13939
13940 \end_layout
13941
13942 \end_inset
13943
13944 ] As with paragraph styles,
13945  see 
13946 \begin_inset CommandInset ref
13947 LatexCommand ref
13948 reference "subsec:Paragraph-Styles"
13949 nolink "false"
13950
13951 \end_inset
13952
13953 .
13954 \end_layout
13955
13956 \begin_layout Itemize
13957
13958 \change_deleted -584632292 1615846694
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 LabelFont
13964 \end_layout
13965
13966 \end_inset
13967
13968  The font used for the label;
13969  see 
13970 \begin_inset CommandInset ref
13971 LatexCommand ref
13972 reference "subsec:Font-description"
13973 nolink "false"
13974
13975 \end_inset
13976
13977 .
13978 \end_layout
13979
13980 \begin_layout Itemize
13981
13982 \change_deleted -584632292 1615846694
13983 \begin_inset Flex Code
13984 status collapsed
13985
13986 \begin_layout Plain Layout
13987 Decoration
13988 \end_layout
13989
13990 \end_inset
13991
13992  [
13993 \begin_inset Flex Code
13994 status collapsed
13995
13996 \begin_layout Plain Layout
13997
13998 \emph on
13999 Classic
14000 \emph default
14001 ,
14002  Minimalistic,
14003  Conglomerate
14004 \end_layout
14005
14006 \end_inset
14007
14008 ] describes the rendering style used for the inset's frame and buttons.
14009 \end_layout
14010
14011 \begin_layout Itemize
14012
14013 \change_deleted -584632292 1615846694
14014 \begin_inset Flex Code
14015 status collapsed
14016
14017 \begin_layout Plain Layout
14018 AutoInsert
14019 \end_layout
14020
14021 \end_inset
14022
14023  
14024 \begin_inset Flex Code
14025 status collapsed
14026
14027 \begin_layout Plain Layout
14028 [int=0]
14029 \end_layout
14030
14031 \end_inset
14032
14033  If this is set to 
14034 \begin_inset Flex Code
14035 status collapsed
14036
14037 \begin_layout Plain Layout
14038 1
14039 \end_layout
14040
14041 \end_inset
14042
14043 ,
14044  this argument is automatically inserted when the respective style is selected.
14045
14046 \change_deleted -712698321 1559484200
14047  Currently,
14048  only one argument per style\SpecialChar breakableslash
14049 layout can be automatically inserted.
14050 \change_deleted -584632292 1615846694
14051
14052 \end_layout
14053
14054 \begin_layout Itemize
14055
14056 \change_deleted -584632292 1615846694
14057 \begin_inset Flex Code
14058 status collapsed
14059
14060 \begin_layout Plain Layout
14061
14062 \change_inserted -712698321 1559490711
14063 InsertOnNewline
14064 \change_unchanged
14065
14066 \end_layout
14067
14068 \end_inset
14069
14070  
14071 \begin_inset Flex Code
14072 status collapsed
14073
14074 \begin_layout Plain Layout
14075
14076 \change_inserted -712698321 1559490703
14077 [int=0]
14078 \change_unchanged
14079
14080 \end_layout
14081
14082 \end_inset
14083
14084  If this is set to 
14085 \begin_inset Flex Code
14086 status collapsed
14087
14088 \begin_layout Plain Layout
14089
14090 \change_inserted -712698321 1559490703
14091 1
14092 \change_unchanged
14093
14094 \end_layout
14095
14096 \end_inset
14097
14098 ,
14099  this argument will be inserted on a new line with 
14100 \begin_inset Flex Code
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104
14105 \change_inserted -712698321 1559491402
14106 AutoInsert
14107 \change_unchanged
14108
14109 \end_layout
14110
14111 \end_inset
14112
14113  (only available within Flex insets).
14114 \end_layout
14115
14116 \begin_layout Itemize
14117
14118 \change_deleted -584632292 1615846694
14119 \begin_inset Flex Code
14120 status collapsed
14121
14122 \begin_layout Plain Layout
14123 InsertCotext
14124 \end_layout
14125
14126 \end_inset
14127
14128  
14129 \begin_inset Flex Code
14130 status collapsed
14131
14132 \begin_layout Plain Layout
14133 [int=0]
14134 \end_layout
14135
14136 \end_inset
14137
14138  If this is set to 
14139 \begin_inset Flex Code
14140 status collapsed
14141
14142 \begin_layout Plain Layout
14143 1
14144 \end_layout
14145
14146 \end_inset
14147
14148 ,
14149  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
14150 \end_layout
14151
14152 \begin_layout Itemize
14153
14154 \change_deleted -584632292 1615846694
14155 \begin_inset Flex Code
14156 status collapsed
14157
14158 \begin_layout Plain Layout
14159 PassThru
14160 \end_layout
14161
14162 \end_inset
14163
14164  [
14165 \begin_inset Flex Code
14166 status collapsed
14167
14168 \begin_layout Plain Layout
14169
14170 \emph on
14171 inherited
14172 \emph default
14173 ,
14174  true,
14175  false
14176 \end_layout
14177
14178 \end_inset
14179
14180 ] Whether the contents of this argument should be output in raw form,
14181  meaning without special translations that \SpecialChar LaTeX
14182  would require.
14183  By default,
14184  the 
14185 \begin_inset Flex Code
14186 status collapsed
14187
14188 \begin_layout Plain Layout
14189 PassThru
14190 \end_layout
14191
14192 \end_inset
14193
14194  status is inherited by the inset or paragraph layout the argument belongs to,
14195  true and false change the status for the given argument only.
14196 \end_layout
14197
14198 \begin_layout Itemize
14199
14200 \change_deleted -584632292 1615846694
14201 \begin_inset Flex Code
14202 status collapsed
14203
14204 \begin_layout Plain Layout
14205 PassThruChars
14206 \end_layout
14207
14208 \end_inset
14209
14210  [
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 string of characters
14216 \end_layout
14217
14218 \end_inset
14219
14220 ]
14221 \family typewriter
14222  
14223 \family default
14224 Defines individual characters
14225 \begin_inset Newline linebreak
14226 \end_inset
14227
14228 that should be output in raw form,
14229  meaning without special translations that \SpecialChar LaTeX
14230  would require.
14231  Note that,
14232  contrary to PassThru,
14233  this needs to be explicitly defined for arguments.
14234  That is,
14235  arguments do not inherit PassThruChars from their parent inset or layout.
14236 \end_layout
14237
14238 \begin_layout Itemize
14239
14240 \change_deleted -584632292 1615846694
14241 \begin_inset Flex Code
14242 status collapsed
14243
14244 \begin_layout Plain Layout
14245 IsTocCaption
14246 \end_layout
14247
14248 \end_inset
14249
14250  [
14251 \begin_inset Flex Code
14252 status collapsed
14253
14254 \begin_layout Plain Layout
14255
14256 \emph on
14257 0
14258 \end_layout
14259
14260 \end_inset
14261
14262 ,
14263 \begin_inset space \thinspace{}
14264 \end_inset
14265
14266
14267 \begin_inset Flex Code
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271 1
14272 \end_layout
14273
14274 \end_inset
14275
14276 ] If this is set to 1,
14277  the argument will output its content in the corresponding item in the table of contents.
14278  See AddToToc.
14279 \end_layout
14280
14281 \begin_layout Standard
14282
14283 \change_deleted -584632292 1615846694
14284 By default,
14285  the text entered in the \SpecialChar LyX
14286  workarea in the respective layout is the last (mandatory) argument of a command if the 
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 LatexType
14292 \end_layout
14293
14294 \end_inset
14295
14296  is 
14297 \begin_inset Flex Code
14298 status collapsed
14299
14300 \begin_layout Plain Layout
14301 Command
14302 \end_layout
14303
14304 \end_inset
14305
14306 .
14307  However,
14308  arguments with the prefix 
14309 \begin_inset Flex Code
14310 status collapsed
14311
14312 \begin_layout Plain Layout
14313 post:
14314 \end_layout
14315
14316 \end_inset
14317
14318  are output after this workarea argument.
14319  Note that post-argument numbering restarts at 1,
14320  so the first argument following the workarea argument is 
14321 \begin_inset Flex Code
14322 status collapsed
14323
14324 \begin_layout Plain Layout
14325 post:1
14326 \end_layout
14327
14328 \end_inset
14329
14330 .
14331  Post-arguments are ignored in any other 
14332 \begin_inset Flex Code
14333 status collapsed
14334
14335 \begin_layout Plain Layout
14336 LatexType
14337 \end_layout
14338
14339 \end_inset
14340
14341  than 
14342 \begin_inset Flex Code
14343 status collapsed
14344
14345 \begin_layout Plain Layout
14346 Command
14347 \end_layout
14348
14349 \end_inset
14350
14351 .
14352 \end_layout
14353
14354 \begin_layout Standard
14355
14356 \change_deleted -584632292 1615846694
14357 Arguments for list 
14358 \begin_inset Flex Code
14359 status collapsed
14360
14361 \begin_layout Plain Layout
14362
14363 \backslash
14364 item
14365 \end_layout
14366
14367 \end_inset
14368
14369 s (as in 
14370 \begin_inset Flex Code
14371 status collapsed
14372
14373 \begin_layout Plain Layout
14374
14375 \backslash
14376 item[foo]
14377 \end_layout
14378
14379 \end_inset
14380
14381 ) have the prefix 
14382 \begin_inset Flex Code
14383 status collapsed
14384
14385 \begin_layout Plain Layout
14386 item:
14387 \end_layout
14388
14389 \end_inset
14390
14391  followed by the number (e.
14392 \begin_inset space \thinspace{}
14393 \end_inset
14394
14395 g.
14396 \begin_inset space \space{}
14397 \end_inset
14398
14399
14400 \begin_inset Flex Code
14401 status collapsed
14402
14403 \begin_layout Plain Layout
14404 Argument item:1
14405 \end_layout
14406
14407 \end_inset
14408
14409 ).
14410 \end_layout
14411
14412 \begin_layout Standard
14413
14414 \change_deleted -584632292 1615846694
14415 Finally,
14416  there is a special argument type with the prefix 
14417 \begin_inset Flex Code
14418 status collapsed
14419
14420 \begin_layout Plain Layout
14421
14422 \change_inserted -712698321 1534487844
14423 listpreamble:
14424 \change_unchanged
14425
14426 \end_layout
14427
14428 \end_inset
14429
14430 .
14431  It is not really an argument,
14432  but uses the argument interface (thus,
14433  the prefix is also followed by a number,
14434  e.
14435 \begin_inset space \thinspace{}
14436 \end_inset
14437
14438 g.
14439  
14440 \begin_inset Flex Code
14441 status collapsed
14442
14443 \begin_layout Plain Layout
14444
14445 \change_inserted -712698321 1534488412
14446 Argument listpreamble:1
14447 \change_unchanged
14448
14449 \end_layout
14450
14451 \end_inset
14452
14453 ).
14454  As the name implies,
14455  it is targeted at lists such as 
14456 \family sans
14457 Itemize
14458 \family default
14459 ,
14460  
14461 \family sans
14462 Enumerate
14463 \family default
14464 ,
14465  
14466 \family sans
14467 Description
14468 \family default
14469 ,
14470  or 
14471 \family sans
14472 Bibliography
14473 \family default
14474 .
14475  Its content will be output at the list start,
14476  before the first 
14477 \begin_inset Flex Code
14478 status collapsed
14479
14480 \begin_layout Plain Layout
14481
14482 \change_inserted -712698321 1534488058
14483
14484 \backslash
14485 item
14486 \change_unchanged
14487
14488 \end_layout
14489
14490 \end_inset
14491
14492 ,
14493  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
14494 ).
14495  This way,
14496  users can insert redefinitions (of lengths etc.) to individual lists.
14497  By default,
14498  these arguments do not have a delimiter.
14499 \change_unchanged
14500
14501 \end_layout
14502
14503 \end_deeper
14504 \begin_layout Description
14505 \begin_inset Flex Code
14506 status collapsed
14507
14508 \begin_layout Plain Layout
14509 AutoNests
14510 \end_layout
14511
14512 \end_inset
14513
14514  Includes a comma-separated list of layouts that should be nested in and after the current layout.
14515  Only makes sense for nestable layouts (such as environments).
14516  Must be ended by 
14517 \begin_inset Quotes eld
14518 \end_inset
14519
14520
14521 \begin_inset Flex Code
14522 status collapsed
14523
14524 \begin_layout Plain Layout
14525 EndAutoNests
14526 \end_layout
14527
14528 \end_inset
14529
14530
14531 \begin_inset Quotes erd
14532 \end_inset
14533
14534 .
14535  See also 
14536 \begin_inset Flex Code
14537 status collapsed
14538
14539 \begin_layout Plain Layout
14540 IsAutoNestedBy
14541 \end_layout
14542
14543 \end_inset
14544
14545 .
14546 \end_layout
14547
14548 \begin_layout Description
14549 \begin_inset Flex Code
14550 status collapsed
14551
14552 \begin_layout Plain Layout
14553 BabelPreamble
14554 \end_layout
14555
14556 \end_inset
14557
14558  Note that this will completely override any prior 
14559 \begin_inset Flex Code
14560 status collapsed
14561
14562 \begin_layout Plain Layout
14563 BabelPreamble
14564 \end_layout
14565
14566 \end_inset
14567
14568  declaration for this style.
14569  Must end with 
14570 \begin_inset Quotes eld
14571 \end_inset
14572
14573
14574 \begin_inset Flex Code
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578 EndBabelPreamble
14579 \end_layout
14580
14581 \end_inset
14582
14583
14584 \begin_inset Quotes erd
14585 \end_inset
14586
14587 .
14588  See 
14589 \begin_inset CommandInset ref
14590 LatexCommand ref
14591 reference "subsec:I18n"
14592 nolink "false"
14593
14594 \end_inset
14595
14596  for details on its use.
14597 \end_layout
14598
14599 \begin_layout Description
14600 \begin_inset Flex Code
14601 status collapsed
14602
14603 \begin_layout Plain Layout
14604 BottomSep
14605 \end_layout
14606
14607 \end_inset
14608
14609  [
14610 \begin_inset Flex Code
14611 status collapsed
14612
14613 \begin_layout Plain Layout
14614 float=0
14615 \end_layout
14616
14617 \end_inset
14618
14619 ]
14620 \begin_inset Foot
14621 status collapsed
14622
14623 \begin_layout Plain Layout
14624 Note that a `float' here is a real number,
14625  such as:
14626  1.5.
14627 \end_layout
14628
14629 \end_inset
14630
14631  The vertical space with which the last of a chain of paragraphs with this style is separated from the following paragraph.
14632  If the next paragraph has another style,
14633  the separations are not simply added,
14634  but the maximum is taken.
14635 \end_layout
14636
14637 \begin_layout Description
14638 \begin_inset Flex Code
14639 status collapsed
14640
14641 \begin_layout Plain Layout
14642 Category
14643 \end_layout
14644
14645 \end_inset
14646
14647  [
14648 \begin_inset Flex Code
14649 status collapsed
14650
14651 \begin_layout Plain Layout
14652 string
14653 \end_layout
14654
14655 \end_inset
14656
14657 ] The category for this style.
14658  This is used to group related styles in the style combobox on the toolbar.
14659  Any string can be used,
14660  but you may want to use existing categories with your own styles.
14661  
14662 \end_layout
14663
14664 \begin_layout Description
14665
14666 \change_deleted 1075283030 1672014981
14667 \begin_inset Flex Code
14668 status collapsed
14669
14670 \begin_layout Plain Layout
14671 CommandDepth
14672 \end_layout
14673
14674 \end_inset
14675
14676  Depth of XML command.
14677  Used only with XML-type formats.
14678 \end_layout
14679
14680 \begin_layout Description
14681 \begin_inset Flex Code
14682 status collapsed
14683
14684 \begin_layout Plain Layout
14685 CopyStyle
14686 \end_layout
14687
14688 \end_inset
14689
14690  [
14691 \begin_inset Flex Code
14692 status collapsed
14693
14694 \begin_layout Plain Layout
14695 string
14696 \end_layout
14697
14698 \end_inset
14699
14700 ] Copies all the features of an existing style into the current one.
14701 \change_inserted 1075283030 1671679774
14702
14703 \end_layout
14704
14705 \begin_layout Description
14706
14707 \change_inserted 1075283030 1672014806
14708 \begin_inset Flex Code
14709 status collapsed
14710
14711 \begin_layout Plain Layout
14712
14713 \change_inserted 1075283030 1671679781
14714 DocBookGenerateTitle
14715 \change_unchanged
14716
14717 \end_layout
14718
14719 \end_inset
14720
14721  [
14722 \begin_inset Flex Code
14723 status collapsed
14724
14725 \begin_layout Plain Layout
14726
14727 \change_inserted 1075283030 1672014763
14728 bool=false
14729 \change_unchanged
14730
14731 \end_layout
14732
14733 \end_inset
14734
14735 ] Generates a
14736 \begin_inset Flex Code
14737 status collapsed
14738
14739 \begin_layout Plain Layout
14740
14741 \change_inserted 1075283030 1672014789
14742 title
14743 \change_unchanged
14744
14745 \end_layout
14746
14747 \end_inset
14748
14749  tag after the wrapper tag.
14750  This parameter should only be used with
14751 \begin_inset Flex Code
14752 status collapsed
14753
14754 \begin_layout Plain Layout
14755
14756 \change_inserted 1075283030 1671679828
14757 DocBookWrapperTag
14758 \change_unchanged
14759
14760 \end_layout
14761
14762 \end_inset
14763
14764 ,
14765  otherwise the title will be output
14766 \emph on
14767  before
14768 \emph default
14769  the contents of the environment.
14770  The generated title is the same as the LyXHTML label:
14771  a combination of the environment type and its number.
14772  A major use is when DocBook has no close mapping for LaTeX environments and users must fallback to using a generic container such as
14773 \begin_inset Flex Code
14774 status collapsed
14775
14776 \begin_layout Plain Layout
14777
14778 \change_inserted 1075283030 1672014801
14779 figure
14780 \change_unchanged
14781
14782 \end_layout
14783
14784 \end_inset
14785
14786 ,
14787  which requires a title although there is none in LaTeX.
14788  This feature is heavily used for theorem-like environments.
14789 \change_unchanged
14790
14791 \end_layout
14792
14793 \begin_layout Description
14794 \begin_inset Flex Code
14795 status collapsed
14796
14797 \begin_layout Plain Layout
14798 DependsOn
14799 \end_layout
14800
14801 \end_inset
14802
14803  [
14804 \begin_inset Flex Code
14805 status collapsed
14806
14807 \begin_layout Plain Layout
14808 <name>
14809 \end_layout
14810
14811 \end_inset
14812
14813 ] The name of a style whose preamble should be output 
14814 \emph on
14815 before
14816 \emph default
14817  this one.
14818  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
14819 \begin_inset Foot
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823 Note that,
14824  besides that functionality,
14825  there is no way to ensure any ordering of preambles.
14826  The ordering that you see in a given version of \SpecialChar LyX
14827  may change without warning in later versions.
14828 \end_layout
14829
14830 \end_inset
14831
14832
14833 \end_layout
14834
14835 \begin_layout Description
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 EndLabelType
14841 \end_layout
14842
14843 \end_inset
14844
14845  [
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850
14851 \emph on
14852 No_Label
14853 \emph default
14854 ,
14855  Box,
14856  Filled_Box,
14857  Static
14858 \end_layout
14859
14860 \end_inset
14861
14862 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
14863 \begin_inset Flex Code
14864 status collapsed
14865
14866 \begin_layout Plain Layout
14867 LatexType
14868 \end_layout
14869
14870 \end_inset
14871
14872  is
14873 \begin_inset Newline newline
14874 \end_inset
14875
14876
14877 \begin_inset Flex Code
14878 status collapsed
14879
14880 \begin_layout Plain Layout
14881 Environment
14882 \end_layout
14883
14884 \end_inset
14885
14886 ,
14887  
14888 \begin_inset Flex Code
14889 status collapsed
14890
14891 \begin_layout Plain Layout
14892 Item_Environment
14893 \end_layout
14894
14895 \end_inset
14896
14897  or 
14898 \begin_inset Flex Code
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902 List_Environment
14903 \end_layout
14904
14905 \end_inset
14906
14907 ).
14908  
14909 \begin_inset Flex Code
14910 status collapsed
14911
14912 \begin_layout Plain Layout
14913 No_Label
14914 \end_layout
14915
14916 \end_inset
14917
14918  means 
14919 \begin_inset Quotes eld
14920 \end_inset
14921
14922 nothing
14923 \begin_inset Quotes erd
14924 \end_inset
14925
14926 ,
14927  
14928 \begin_inset Flex Code
14929 status collapsed
14930
14931 \begin_layout Plain Layout
14932 Box
14933 \end_layout
14934
14935 \end_inset
14936
14937  (resp.
14938 \begin_inset space \space{}
14939 \end_inset
14940
14941
14942 \begin_inset Flex Code
14943 status collapsed
14944
14945 \begin_layout Plain Layout
14946 Filled_Box
14947 \end_layout
14948
14949 \end_inset
14950
14951 ) is a white (resp.
14952 \begin_inset space ~
14953 \end_inset
14954
14955 black) square suitable for end of proof markers,
14956  
14957 \begin_inset Flex Code
14958 status collapsed
14959
14960 \begin_layout Plain Layout
14961 Static
14962 \end_layout
14963
14964 \end_inset
14965
14966  is an explicit text string.
14967 \end_layout
14968
14969 \begin_layout Description
14970 \begin_inset Flex Code
14971 status collapsed
14972
14973 \begin_layout Plain Layout
14974 EndLabelString
14975 \end_layout
14976
14977 \end_inset
14978
14979  [
14980 \begin_inset Flex Code
14981 status collapsed
14982
14983 \begin_layout Plain Layout
14984 string=""
14985 \end_layout
14986
14987 \end_inset
14988
14989 ] The string used for a label with a 
14990 \begin_inset Flex Code
14991 status collapsed
14992
14993 \begin_layout Plain Layout
14994 Static
14995 \end_layout
14996
14997 \end_inset
14998
14999
15000 \begin_inset Newline newline
15001 \end_inset
15002
15003
15004 \begin_inset Flex Code
15005 status collapsed
15006
15007 \begin_layout Plain Layout
15008 EndLabelType
15009 \end_layout
15010
15011 \end_inset
15012
15013 .
15014  
15015 \end_layout
15016
15017 \begin_layout Description
15018 \begin_inset Flex Code
15019 status collapsed
15020
15021 \begin_layout Plain Layout
15022 Font
15023 \end_layout
15024
15025 \end_inset
15026
15027  The font used for both the text body 
15028 \emph on
15029 and
15030 \emph default
15031  the label.
15032  See 
15033 \begin_inset CommandInset ref
15034 LatexCommand ref
15035 reference "subsec:Font-description"
15036 nolink "false"
15037
15038 \end_inset
15039
15040 .
15041  Note that defining this font automatically defines the 
15042 \begin_inset Flex Code
15043 status collapsed
15044
15045 \begin_layout Plain Layout
15046 LabelFont
15047 \end_layout
15048
15049 \end_inset
15050
15051  to the same value.
15052  So you should define this one first if you also want to define 
15053 \begin_inset Flex Code
15054 status collapsed
15055
15056 \begin_layout Plain Layout
15057 LabelFont
15058 \end_layout
15059
15060 \end_inset
15061
15062 .
15063 \end_layout
15064
15065 \begin_layout Description
15066 \begin_inset Flex Code
15067 status collapsed
15068
15069 \begin_layout Plain Layout
15070 ForceLocal
15071 \end_layout
15072
15073 \end_inset
15074
15075  [
15076 \begin_inset Flex Code
15077 status collapsed
15078
15079 \begin_layout Plain Layout
15080 int=0
15081 \end_layout
15082
15083 \end_inset
15084
15085 ] Used for backporting new styles to stable \SpecialChar LyX
15086  versions.
15087  The first stable version that supports this tag is \SpecialChar LyX
15088  2.1.0.
15089  The argument is a number which may either be 0,
15090  -1 or any value greater than zero.
15091  If the 
15092 \begin_inset Flex Code
15093 status collapsed
15094
15095 \begin_layout Plain Layout
15096 ForceLocal
15097 \end_layout
15098
15099 \end_inset
15100
15101  flag of a style is greater than zero,
15102  it will always be written to the document header.
15103  If a .lyx file is read,
15104  the style definitions from the document header are added to the document class.
15105  Therefore even older \SpecialChar LyX
15106  versions can handle the style.
15107  The argument of 
15108 \begin_inset Flex Code
15109 status collapsed
15110
15111 \begin_layout Plain Layout
15112 ForceLocal
15113 \end_layout
15114
15115 \end_inset
15116
15117  is a version number:
15118  if the style is read,
15119  and the version number is less than the version number of the already existing style in the document class,
15120  the new style is ignored.
15121  If the version number is greater,
15122  the new style replaces the existing style.
15123  A value of -1 means an infinite version number,
15124  i.
15125 \begin_inset space \thinspace{}
15126 \end_inset
15127
15128 e.
15129 \begin_inset space \space{}
15130 \end_inset
15131
15132 the style is always used.
15133 \end_layout
15134
15135 \begin_layout Description
15136 \begin_inset Flex Code
15137 status collapsed
15138
15139 \begin_layout Plain Layout
15140 FreeSpacing
15141 \end_layout
15142
15143 \end_inset
15144
15145  [
15146 \begin_inset Flex Code
15147 status collapsed
15148
15149 \begin_layout Plain Layout
15150
15151 \emph on
15152 0
15153 \end_layout
15154
15155 \end_inset
15156
15157 ,
15158 \begin_inset space \thinspace{}
15159 \end_inset
15160
15161
15162 \begin_inset Flex Code
15163 status collapsed
15164
15165 \begin_layout Plain Layout
15166 1
15167 \end_layout
15168
15169 \end_inset
15170
15171 ] Usually \SpecialChar LyX
15172  does not allow you to insert more than one space between words,
15173  since a space is considered as the separation between two words,
15174  not a character or symbol of its own.
15175  This is a very fine thing but sometimes annoying,
15176  for example,
15177  when typing program code or plain \SpecialChar LaTeX
15178  code.
15179  For this reason,
15180  
15181 \begin_inset Flex Code
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185 FreeSpacing
15186 \end_layout
15187
15188 \end_inset
15189
15190  can be enabled.
15191  
15192 \change_deleted -495245474 1550490105
15193 Note that 
15194 \change_unchanged
15195 \SpecialChar LyX
15196  will create 
15197 \change_deleted 177693 1654669077
15198 protected
15199 \change_inserted 177693 1654669079
15200 non-breaking
15201 \change_unchanged
15202  
15203 \change_deleted 177693 1654669082
15204 blanks
15205 \change_inserted 177693 1654669082
15206 spaces
15207 \change_unchanged
15208  for the additional blanks when
15209 \change_deleted 34634807 1619626461
15210  in
15211 \change_unchanged
15212  
15213 \change_inserted -495245474 1550490096
15214
15215 \begin_inset Flex Code
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219
15220 \change_inserted -495245474 1550490089
15221 Passthru 1
15222 \change_unchanged
15223
15224 \end_layout
15225
15226 \end_inset
15227
15228  is not specified.
15229 \change_deleted -495245474 1550490116
15230 another mode than \SpecialChar LaTeX
15231 -mode.
15232
15233 \change_inserted -495245474 1550247760
15234  Note that 
15235 \begin_inset Flex Code
15236 status collapsed
15237
15238 \begin_layout Plain Layout
15239
15240 \change_inserted -495245474 1550247736
15241 FreeSpacing
15242 \change_unchanged
15243
15244 \end_layout
15245
15246 \end_inset
15247
15248  implies 
15249 \begin_inset Flex Code
15250 status collapsed
15251
15252 \begin_layout Plain Layout
15253
15254 \change_inserted -495245474 1550247755
15255 KeepEmpty
15256 \change_unchanged
15257
15258 \end_layout
15259
15260 \end_inset
15261
15262 .
15263 \change_unchanged
15264
15265 \end_layout
15266
15267 \begin_layout Description
15268 \begin_inset Flex Code
15269 status collapsed
15270
15271 \begin_layout Plain Layout
15272 HTML*
15273 \end_layout
15274
15275 \end_inset
15276
15277  These tags are used with XHTML output.
15278  See 
15279 \begin_inset CommandInset ref
15280 LatexCommand ref
15281 reference "subsec:Paragraph-Style-XHTML"
15282 nolink "false"
15283
15284 \end_inset
15285
15286 .
15287 \end_layout
15288
15289 \begin_layout Description
15290
15291 \change_deleted 1075283030 1672014684
15292 \begin_inset Flex Code
15293 status collapsed
15294
15295 \begin_layout Plain Layout
15296 InnerTag
15297 \end_layout
15298
15299 \end_inset
15300
15301  [FIXME] (Used only with XML-type formats.)
15302 \change_unchanged
15303
15304 \end_layout
15305
15306 \begin_layout Description
15307 \begin_inset Flex Code
15308 status collapsed
15309
15310 \begin_layout Plain Layout
15311 InPreamble
15312 \end_layout
15313
15314 \end_inset
15315
15316  [
15317 \begin_inset Flex Code
15318 status collapsed
15319
15320 \begin_layout Plain Layout
15321
15322 \emph on
15323 0
15324 \end_layout
15325
15326 \end_inset
15327
15328 ,
15329 \begin_inset space \thinspace{}
15330 \end_inset
15331
15332
15333 \begin_inset Flex Code
15334 status collapsed
15335
15336 \begin_layout Plain Layout
15337 1
15338 \end_layout
15339
15340 \end_inset
15341
15342 ] If 
15343 \begin_inset Flex Code
15344 status collapsed
15345
15346 \begin_layout Plain Layout
15347 1
15348 \end_layout
15349
15350 \end_inset
15351
15352 ,
15353  marks the style as to be included in the document preamble and not in the document body.
15354  This is useful for document classes that want such information as the title and author to appear in the preamble.
15355  Note that this works only for styles for which the 
15356 \begin_inset Flex Code
15357 status collapsed
15358
15359 \begin_layout Plain Layout
15360 LatexType
15361 \end_layout
15362
15363 \end_inset
15364
15365  is 
15366 \begin_inset Flex Code
15367 status collapsed
15368
15369 \begin_layout Plain Layout
15370 Command
15371 \end_layout
15372
15373 \end_inset
15374
15375  or 
15376 \begin_inset Flex Code
15377 status collapsed
15378
15379 \begin_layout Plain Layout
15380 Paragraph
15381 \end_layout
15382
15383 \end_inset
15384
15385 .
15386 \end_layout
15387
15388 \begin_layout Description
15389 \begin_inset Flex Code
15390 status collapsed
15391
15392 \begin_layout Plain Layout
15393 InTitle
15394 \end_layout
15395
15396 \end_inset
15397
15398  [
15399 \begin_inset Flex Code
15400 status collapsed
15401
15402 \begin_layout Plain Layout
15403
15404 \emph on
15405 0
15406 \end_layout
15407
15408 \end_inset
15409
15410 ,
15411 \begin_inset space \thinspace{}
15412 \end_inset
15413
15414
15415 \begin_inset Flex Code
15416 status collapsed
15417
15418 \begin_layout Plain Layout
15419 1
15420 \end_layout
15421
15422 \end_inset
15423
15424 ] If 
15425 \begin_inset Flex Code
15426 status collapsed
15427
15428 \begin_layout Plain Layout
15429 1
15430 \end_layout
15431
15432 \end_inset
15433
15434 ,
15435  marks the style as being part of a title block (see also the 
15436 \begin_inset Flex Code
15437 status collapsed
15438
15439 \begin_layout Plain Layout
15440 TitleLatexType
15441 \end_layout
15442
15443 \end_inset
15444
15445  and 
15446 \begin_inset Flex Code
15447 status collapsed
15448
15449 \begin_layout Plain Layout
15450 TitleLatexName
15451 \end_layout
15452
15453 \end_inset
15454
15455  global entries).
15456 \end_layout
15457
15458 \begin_layout Description
15459 \begin_inset Flex Code
15460 status collapsed
15461
15462 \begin_layout Plain Layout
15463 IsAutoNestedBy
15464 \end_layout
15465
15466 \end_inset
15467
15468  Includes a comma-separated list of layouts after which this one should be nested.
15469  Only makes sense with regard to nestable layouts (such as environments).
15470  Must be ended by 
15471 \begin_inset Quotes eld
15472 \end_inset
15473
15474
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479 EndIsAutoNestedBy
15480 \end_layout
15481
15482 \end_inset
15483
15484
15485 \begin_inset Quotes erd
15486 \end_inset
15487
15488 .
15489  See also 
15490 \begin_inset Flex Code
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494 AutoNests
15495 \end_layout
15496
15497 \end_inset
15498
15499 .
15500 \end_layout
15501
15502 \begin_layout Description
15503 \begin_inset Flex Code
15504 status collapsed
15505
15506 \begin_layout Plain Layout
15507 IsTocCaption
15508 \end_layout
15509
15510 \end_inset
15511
15512  [
15513 \begin_inset Flex Code
15514 status collapsed
15515
15516 \begin_layout Plain Layout
15517
15518 \emph on
15519 0
15520 \end_layout
15521
15522 \end_inset
15523
15524 ,
15525 \begin_inset space \thinspace{}
15526 \end_inset
15527
15528
15529 \begin_inset Flex Code
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533 1
15534 \end_layout
15535
15536 \end_inset
15537
15538 ] If this is set to 1 and AddToToc is enabled,
15539  the paragraph adds a summary of its contents in its item in the table of contents.
15540  Otherwise,
15541  only the label,
15542  if it exists,
15543  appears.
15544 \end_layout
15545
15546 \begin_layout Description
15547 \begin_inset Flex Code
15548 status collapsed
15549
15550 \begin_layout Plain Layout
15551 ItemCommand
15552 \end_layout
15553
15554 \end_inset
15555
15556  [
15557 \begin_inset Flex Code
15558 status collapsed
15559
15560 \begin_layout Plain Layout
15561 string="item"
15562 \end_layout
15563
15564 \end_inset
15565
15566 ] The \SpecialChar LaTeX
15567  command sequence declaring an item in a list.
15568  The command is to be defined without the preceding backslash (the default is 
15569 \begin_inset Quotes eld
15570 \end_inset
15571
15572 item
15573 \begin_inset Quotes erd
15574 \end_inset
15575
15576 ,
15577  resulting in 
15578 \begin_inset Flex Code
15579 status collapsed
15580
15581 \begin_layout Plain Layout
15582
15583 \backslash
15584 item
15585 \end_layout
15586
15587 \end_inset
15588
15589  in the \SpecialChar LaTeX
15590  output).
15591 \end_layout
15592
15593 \begin_layout Description
15594 \begin_inset Flex Code
15595 status collapsed
15596
15597 \begin_layout Plain Layout
15598 ItemSep
15599 \end_layout
15600
15601 \end_inset
15602
15603  [
15604 \begin_inset Flex Code
15605 status collapsed
15606
15607 \begin_layout Plain Layout
15608 float=0
15609 \end_layout
15610
15611 \end_inset
15612
15613 ] This provides extra space between paragraphs that have the same style.
15614  If you put other styles into an environment,
15615  each is separated with the environment's 
15616 \begin_inset Flex Code
15617 status collapsed
15618
15619 \begin_layout Plain Layout
15620 ParSep
15621 \end_layout
15622
15623 \end_inset
15624
15625 .
15626  But the whole items of the environment are additionally separated with this 
15627 \begin_inset Flex Code
15628 status collapsed
15629
15630 \begin_layout Plain Layout
15631 ItemSep
15632 \end_layout
15633
15634 \end_inset
15635
15636 .
15637  Note that this is a
15638 \emph on
15639  multiplier.
15640 \end_layout
15641
15642 \begin_layout Description
15643
15644 \change_deleted 1075283030 1672014680
15645 \begin_inset Flex Code
15646 status collapsed
15647
15648 \begin_layout Plain Layout
15649 ItemTag
15650 \end_layout
15651
15652 \end_inset
15653
15654  [FIXME] (Used only with XML-type formats.)
15655 \change_unchanged
15656
15657 \end_layout
15658
15659 \begin_layout Description
15660 \begin_inset Flex Code
15661 status collapsed
15662
15663 \begin_layout Plain Layout
15664 KeepEmpty
15665 \end_layout
15666
15667 \end_inset
15668
15669  [
15670 \begin_inset Flex Code
15671 status collapsed
15672
15673 \begin_layout Plain Layout
15674
15675 \emph on
15676 0
15677 \end_layout
15678
15679 \end_inset
15680
15681 ,
15682 \begin_inset space \thinspace{}
15683 \end_inset
15684
15685
15686 \begin_inset Flex Code
15687 status collapsed
15688
15689 \begin_layout Plain Layout
15690 1
15691 \end_layout
15692
15693 \end_inset
15694
15695 ] Usually \SpecialChar LyX
15696  does not allow you to leave a paragraph empty,
15697  since it would lead to empty \SpecialChar LaTeX
15698  output.
15699  There are some cases where this could be desirable however:
15700  in a letter template,
15701  the required fields can be provided as empty fields,
15702  so that people do not forget them;
15703  in some special classes,
15704  a style can be used as some kind of break,
15705  which does not contain actual text.
15706 \end_layout
15707
15708 \begin_layout Description
15709 \begin_inset Flex Code
15710 status collapsed
15711
15712 \begin_layout Plain Layout
15713 LabelBottomsep
15714 \end_layout
15715
15716 \end_inset
15717
15718  [
15719 \begin_inset Flex Code
15720 status collapsed
15721
15722 \begin_layout Plain Layout
15723 float=0
15724 \end_layout
15725
15726 \end_inset
15727
15728 ] The vertical space between the label and the text body.
15729  Only used for labels that are above the text body (
15730 \begin_inset Flex Code
15731 status collapsed
15732
15733 \begin_layout Plain Layout
15734 Top_Environment
15735 \end_layout
15736
15737 \end_inset
15738
15739  and
15740 \begin_inset Newline newline
15741 \end_inset
15742
15743
15744 \begin_inset Flex Code
15745 status collapsed
15746
15747 \begin_layout Plain Layout
15748 Centered_Top_Environment
15749 \end_layout
15750
15751 \end_inset
15752
15753 ).
15754 \end_layout
15755
15756 \begin_layout Description
15757 \begin_inset Flex Code
15758 status collapsed
15759
15760 \begin_layout Plain Layout
15761 LabelCounter
15762 \end_layout
15763
15764 \end_inset
15765
15766  [
15767 \begin_inset Flex Code
15768 status collapsed
15769
15770 \begin_layout Plain Layout
15771 string=""
15772 \end_layout
15773
15774 \end_inset
15775
15776 ] The name of the counter for automatic numbering.
15777  In order to have the counter appear with your label,
15778  you will need to reference it in the 
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783
15784 \family typewriter
15785 LabelString
15786 \end_layout
15787
15788 \end_inset
15789
15790 .
15791  This will work with 
15792 \begin_inset Flex Code
15793 status collapsed
15794
15795 \begin_layout Plain Layout
15796 LabelType
15797 \end_layout
15798
15799 \end_inset
15800
15801 s,
15802  
15803 \begin_inset Flex Code
15804 status collapsed
15805
15806 \begin_layout Plain Layout
15807 Static
15808 \end_layout
15809
15810 \end_inset
15811
15812 ,
15813  
15814 \begin_inset Flex Code
15815 status collapsed
15816
15817 \begin_layout Plain Layout
15818 Above
15819 \end_layout
15820
15821 \end_inset
15822
15823  and 
15824 \begin_inset Flex Code
15825 status collapsed
15826
15827 \begin_layout Plain Layout
15828 Centered
15829 \end_layout
15830
15831 \end_inset
15832
15833 ,
15834  at least.
15835 \begin_inset Newline newline
15836 \end_inset
15837
15838 This 
15839 \emph on
15840 may
15841 \emph default
15842  also be given if 
15843 \begin_inset Flex Code
15844 status collapsed
15845
15846 \begin_layout Plain Layout
15847 LabelType
15848 \end_layout
15849
15850 \end_inset
15851
15852  is 
15853 \begin_inset Flex Code
15854 status collapsed
15855
15856 \begin_layout Plain Layout
15857 Enumerate
15858 \end_layout
15859
15860 \end_inset
15861
15862 ,
15863  though this case is a bit complicated.
15864  Suppose you declare 
15865 \begin_inset Quotes eld
15866 \end_inset
15867
15868
15869 \begin_inset Flex Code
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 LabelCounter myenum
15874 \end_layout
15875
15876 \end_inset
15877
15878
15879 \begin_inset Quotes erd
15880 \end_inset
15881
15882 .
15883  Then the actual counters used are 
15884 \begin_inset Flex Code
15885 status collapsed
15886
15887 \begin_layout Plain Layout
15888 myenumi
15889 \end_layout
15890
15891 \end_inset
15892
15893 ,
15894  
15895 \begin_inset Flex Code
15896 status collapsed
15897
15898 \begin_layout Plain Layout
15899 myenumii
15900 \end_layout
15901
15902 \end_inset
15903
15904 ,
15905  
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910 myenumiii
15911 \end_layout
15912
15913 \end_inset
15914
15915  and 
15916 \begin_inset Flex Code
15917 status collapsed
15918
15919 \begin_layout Plain Layout
15920 myenumiv
15921 \end_layout
15922
15923 \end_inset
15924
15925 ,
15926  much as in \SpecialChar LaTeX
15927 .
15928  These counters must all be declared separately.
15929 \begin_inset Newline newline
15930 \end_inset
15931
15932 See 
15933 \begin_inset CommandInset ref
15934 LatexCommand ref
15935 reference "subsec:Counters"
15936 nolink "false"
15937
15938 \end_inset
15939
15940  for details on counters.
15941 \end_layout
15942
15943 \begin_layout Description
15944 \begin_inset Flex Code
15945 status collapsed
15946
15947 \begin_layout Plain Layout
15948 LabelFont
15949 \end_layout
15950
15951 \end_inset
15952
15953  The font used for the label.
15954  See 
15955 \begin_inset CommandInset ref
15956 LatexCommand ref
15957 reference "subsec:Font-description"
15958 nolink "false"
15959
15960 \end_inset
15961
15962 .
15963 \end_layout
15964
15965 \begin_layout Description
15966 \begin_inset Flex Code
15967 status collapsed
15968
15969 \begin_layout Plain Layout
15970 LabelIndent
15971 \end_layout
15972
15973 \end_inset
15974
15975  [
15976 \begin_inset Flex Code
15977 status collapsed
15978
15979 \begin_layout Plain Layout
15980 string=""
15981 \end_layout
15982
15983 \end_inset
15984
15985 ] Text that indicates how far a label should be indented.
15986 \end_layout
15987
15988 \begin_layout Description
15989 \begin_inset Flex Code
15990 status collapsed
15991
15992 \begin_layout Plain Layout
15993 LabelSep
15994 \end_layout
15995
15996 \end_inset
15997
15998  [
15999 \begin_inset Flex Code
16000 status collapsed
16001
16002 \begin_layout Plain Layout
16003 string=""
16004 \end_layout
16005
16006 \end_inset
16007
16008 ] Text that indicates the amount of horizontal space between the label and the text body.
16009  Only used for labels that are not above the text body.
16010 \end_layout
16011
16012 \begin_layout Description
16013 \begin_inset Flex Code
16014 status collapsed
16015
16016 \begin_layout Plain Layout
16017 LabelString
16018 \end_layout
16019
16020 \end_inset
16021
16022  [
16023 \begin_inset Flex Code
16024 status collapsed
16025
16026 \begin_layout Plain Layout
16027 string=""
16028 \end_layout
16029
16030 \end_inset
16031
16032 ] The string used for the label.
16033  When 
16034 \begin_inset Flex Code
16035 status collapsed
16036
16037 \begin_layout Plain Layout
16038 LabelCounter
16039 \end_layout
16040
16041 \end_inset
16042
16043  is set,
16044  this string can be contain the special formatting commands described in 
16045 \begin_inset CommandInset ref
16046 LatexCommand ref
16047 reference "subsec:Counters"
16048 nolink "false"
16049
16050 \end_inset
16051
16052 .
16053 \end_layout
16054
16055 \begin_layout Description
16056 \begin_inset Flex Code
16057 status collapsed
16058
16059 \begin_layout Plain Layout
16060 LabelStringAppendix
16061 \end_layout
16062
16063 \end_inset
16064
16065  [
16066 \begin_inset Flex Code
16067 status collapsed
16068
16069 \begin_layout Plain Layout
16070 string=""
16071 \end_layout
16072
16073 \end_inset
16074
16075 ] This is used inside the appendix instead of
16076 \begin_inset Newline newline
16077 \end_inset
16078
16079
16080 \begin_inset Flex Code
16081 status collapsed
16082
16083 \begin_layout Plain Layout
16084 LabelString
16085 \end_layout
16086
16087 \end_inset
16088
16089 .
16090  Note that every 
16091 \begin_inset Flex Code
16092 status collapsed
16093
16094 \begin_layout Plain Layout
16095 LabelString
16096 \end_layout
16097
16098 \end_inset
16099
16100  statement resets
16101 \begin_inset Newline newline
16102 \end_inset
16103
16104
16105 \begin_inset Flex Code
16106 status collapsed
16107
16108 \begin_layout Plain Layout
16109 LabelStringAppendix
16110 \end_layout
16111
16112 \end_inset
16113
16114  too.
16115 \change_deleted 1075283030 1672015070
16116
16117 \end_layout
16118
16119 \begin_layout Description
16120
16121 \change_deleted 1075283030 1672015070
16122 \begin_inset Flex Code
16123 status collapsed
16124
16125 \begin_layout Plain Layout
16126 LabelTag
16127 \end_layout
16128
16129 \end_inset
16130
16131  [FIXME] (Used only with XML-type formats.)
16132 \change_unchanged
16133
16134 \end_layout
16135
16136 \begin_layout Description
16137 \begin_inset Flex Code
16138 status collapsed
16139
16140 \begin_layout Plain Layout
16141 LabelType
16142 \end_layout
16143
16144 \end_inset
16145
16146  [
16147 \begin_inset Flex Code
16148 status collapsed
16149
16150 \begin_layout Plain Layout
16151
16152 \emph on
16153 No_Label
16154 \emph default
16155 ,
16156  Manual,
16157  Static,
16158  Above,
16159  
16160 \begin_inset Newline newline
16161 \end_inset
16162
16163 Centered,
16164  Sensitive,
16165  Enumerate,
16166 \begin_inset Newline newline
16167 \end_inset
16168
16169 Itemize,
16170  Bibliography
16171 \end_layout
16172
16173 \end_inset
16174
16175 ]
16176 \end_layout
16177
16178 \begin_deeper
16179 \begin_layout Description
16180 \begin_inset Flex Code
16181 status collapsed
16182
16183 \begin_layout Plain Layout
16184 Manual
16185 \end_layout
16186
16187 \end_inset
16188
16189  means the label is the very first word (up to the first real blank).
16190  Use 
16191 \change_deleted 177693 1654669087
16192 protected
16193 \change_inserted 177693 1654669089
16194 non-breaking
16195 \change_unchanged
16196  spaces if you want more than one word as the label.
16197  
16198 \end_layout
16199
16200 \begin_layout Description
16201 \begin_inset Flex Code
16202 status collapsed
16203
16204 \begin_layout Plain Layout
16205 Static
16206 \end_layout
16207
16208 \end_inset
16209
16210  means the label is simply what is declared as 
16211 \begin_inset Flex Code
16212 status collapsed
16213
16214 \begin_layout Plain Layout
16215 LabelString
16216 \end_layout
16217
16218 \end_inset
16219
16220 .
16221  This will be displayed 
16222 \begin_inset Quotes eld
16223 \end_inset
16224
16225 inline
16226 \begin_inset Quotes erd
16227 \end_inset
16228
16229 ,
16230  at the beginning of the paragraph.
16231  If the 
16232 \begin_inset Flex Code
16233 status collapsed
16234
16235 \begin_layout Plain Layout
16236 LatexType
16237 \end_layout
16238
16239 \end_inset
16240
16241  is 
16242 \begin_inset Flex Code
16243 status collapsed
16244
16245 \begin_layout Plain Layout
16246 Environment
16247 \end_layout
16248
16249 \end_inset
16250
16251 ,
16252  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
16253 \begin_inset Flex Code
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257 Style
16258 \end_layout
16259
16260 \end_inset
16261
16262 .
16263 \end_layout
16264
16265 \begin_layout Description
16266 \begin_inset Flex Code
16267 status collapsed
16268
16269 \begin_layout Plain Layout
16270 Above
16271 \end_layout
16272
16273 \end_inset
16274
16275
16276 \begin_inset space ~
16277 \end_inset
16278
16279 and
16280 \begin_inset space ~
16281 \end_inset
16282
16283
16284 \begin_inset Flex Code
16285 status collapsed
16286
16287 \begin_layout Plain Layout
16288 Centered
16289 \end_layout
16290
16291 \end_inset
16292
16293  are special cases of 
16294 \begin_inset Flex Code
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 Static
16299 \end_layout
16300
16301 \end_inset
16302
16303 .
16304  The label will be printed above the paragraph either at the beginning of the line or centered.
16305 \end_layout
16306
16307 \begin_layout Description
16308 \begin_inset Flex Code
16309 status collapsed
16310
16311 \begin_layout Plain Layout
16312 Sensitive
16313 \end_layout
16314
16315 \end_inset
16316
16317  is a special case for the caption-labels 
16318 \begin_inset Quotes eld
16319 \end_inset
16320
16321 Figure
16322 \begin_inset Quotes erd
16323 \end_inset
16324
16325  and 
16326 \begin_inset Quotes eld
16327 \end_inset
16328
16329 Table
16330 \begin_inset Quotes erd
16331 \end_inset
16332
16333 .
16334 \begin_inset Newline newline
16335 \end_inset
16336
16337
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 Sensitive
16343 \end_layout
16344
16345 \end_inset
16346
16347  means the (hardcoded) label string depends on the kind of float:
16348  It is hardcoded to be `FloatType N',
16349  where N is the value of the counter associated with the float.
16350  For the case that a caption is inserted outside of a float the 
16351 \begin_inset Flex Code
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 LabelString
16356 \end_layout
16357
16358 \end_inset
16359
16360  will appear as 
16361 \begin_inset Quotes eld
16362 \end_inset
16363
16364 Senseless!
16365 \begin_inset Quotes erd
16366 \end_inset
16367
16368 .
16369 \end_layout
16370
16371 \begin_layout Description
16372 \begin_inset Flex Code
16373 status collapsed
16374
16375 \begin_layout Plain Layout
16376 Enumerate
16377 \end_layout
16378
16379 \end_inset
16380
16381  produces the usual sort of enumeration labels.
16382  The number type needs to be set in the 
16383 \family sans
16384 Counter
16385 \family default
16386 ,
16387  see 
16388 \begin_inset CommandInset ref
16389 LatexCommand ref
16390 reference "subsec:Counters"
16391 nolink "false"
16392
16393 \end_inset
16394
16395 .
16396 \end_layout
16397
16398 \begin_layout Description
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403 Itemize
16404 \end_layout
16405
16406 \end_inset
16407
16408  produces various bullets at the different levels.
16409  The bullet types displayed can be set via 
16410 \begin_inset Flex Noun
16411 status collapsed
16412
16413 \begin_layout Plain Layout
16414 Document\SpecialChar menuseparator
16415 Settings\SpecialChar menuseparator
16416 Bullets
16417 \end_layout
16418
16419 \end_inset
16420
16421 .
16422 \end_layout
16423
16424 \begin_layout Description
16425 \begin_inset Flex Code
16426 status collapsed
16427
16428 \begin_layout Plain Layout
16429 Bibliography
16430 \end_layout
16431
16432 \end_inset
16433
16434  should be used only with 
16435 \begin_inset Flex Code
16436 status collapsed
16437
16438 \begin_layout Plain Layout
16439 LatexType BibEnvironment
16440 \end_layout
16441
16442 \end_inset
16443
16444 .
16445 \end_layout
16446
16447 \end_deeper
16448 \begin_layout Description
16449 \begin_inset Flex Code
16450 status collapsed
16451
16452 \begin_layout Plain Layout
16453 LangPreamble
16454 \end_layout
16455
16456 \end_inset
16457
16458  Note that this will completely override any prior 
16459 \begin_inset Flex Code
16460 status collapsed
16461
16462 \begin_layout Plain Layout
16463 LangPreamble
16464 \end_layout
16465
16466 \end_inset
16467
16468  declaration for this style.
16469  Must end with 
16470 \begin_inset Quotes eld
16471 \end_inset
16472
16473
16474 \begin_inset Flex Code
16475 status collapsed
16476
16477 \begin_layout Plain Layout
16478 EndLangPreamble
16479 \end_layout
16480
16481 \end_inset
16482
16483
16484 \begin_inset Quotes erd
16485 \end_inset
16486
16487 .
16488  See 
16489 \begin_inset CommandInset ref
16490 LatexCommand ref
16491 reference "subsec:I18n"
16492 nolink "false"
16493
16494 \end_inset
16495
16496  for details on its use.
16497 \end_layout
16498
16499 \begin_layout Description
16500 \begin_inset Flex Code
16501 status collapsed
16502
16503 \begin_layout Plain Layout
16504 LatexName
16505 \end_layout
16506
16507 \end_inset
16508
16509  [
16510 \begin_inset Flex Code
16511 status collapsed
16512
16513 \begin_layout Plain Layout
16514 <name>
16515 \end_layout
16516
16517 \end_inset
16518
16519 ] The name of the corresponding \SpecialChar LaTeX
16520  stuff.
16521  Either the environment or command name.
16522 \end_layout
16523
16524 \begin_layout Description
16525 \begin_inset Flex Code
16526 status collapsed
16527
16528 \begin_layout Plain Layout
16529 LatexParam
16530 \end_layout
16531
16532 \end_inset
16533
16534  [
16535 \begin_inset Flex Code
16536 status collapsed
16537
16538 \begin_layout Plain Layout
16539 <parameter>
16540 \end_layout
16541
16542 \end_inset
16543
16544 ] An optional parameter for the corresponding 
16545 \begin_inset Flex Code
16546 status collapsed
16547
16548 \begin_layout Plain Layout
16549 LatexName
16550 \end_layout
16551
16552 \end_inset
16553
16554  stuff.
16555  This parameter cannot be changed from within \SpecialChar LyX
16556  (use 
16557 \begin_inset Flex Code
16558 status collapsed
16559
16560 \begin_layout Plain Layout
16561 Argument
16562 \end_layout
16563
16564 \end_inset
16565
16566  for customizable parameters).
16567  This will be output as is after all \SpecialChar LaTeX
16568  
16569 \begin_inset Flex Code
16570 status collapsed
16571
16572 \begin_layout Plain Layout
16573 Argument
16574 \end_layout
16575
16576 \end_inset
16577
16578 s.
16579 \end_layout
16580
16581 \begin_layout Description
16582 \begin_inset Flex Code
16583 status collapsed
16584
16585 \begin_layout Plain Layout
16586 LatexType
16587 \end_layout
16588
16589 \end_inset
16590
16591  [
16592 \begin_inset Flex Code
16593 status collapsed
16594
16595 \begin_layout Plain Layout
16596
16597 \emph on
16598 Paragraph
16599 \emph default
16600 ,
16601  Command,
16602  Environment,
16603  Item_Environment,
16604 \begin_inset Newline newline
16605 \end_inset
16606
16607 List_Environment,
16608  Bib_Environment
16609 \end_layout
16610
16611 \end_inset
16612
16613 ] How the style should be translated into \SpecialChar LaTeX
16614 .
16615 \begin_inset Foot
16616 status collapsed
16617
16618 \begin_layout Plain Layout
16619 \begin_inset Flex Code
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623 LatexType
16624 \end_layout
16625
16626 \end_inset
16627
16628  is perhaps a bit misleading,
16629  since these rules apply to SGML classes,
16630  too.
16631  Visit the SGML class files for specific examples.
16632 \end_layout
16633
16634 \end_inset
16635
16636
16637 \end_layout
16638
16639 \begin_deeper
16640 \begin_layout Description
16641 \begin_inset Flex Code
16642 status collapsed
16643
16644 \begin_layout Plain Layout
16645 Paragraph
16646 \end_layout
16647
16648 \end_inset
16649
16650  means nothing special.
16651 \end_layout
16652
16653 \begin_layout Description
16654 \begin_inset Flex Code
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658 Command
16659 \end_layout
16660
16661 \end_inset
16662
16663  means 
16664 \begin_inset Flex Code
16665 status collapsed
16666
16667 \begin_layout Plain Layout
16668
16669 \backslash
16670
16671 \emph on
16672 LatexName
16673 \emph default
16674 {\SpecialChar ldots
16675 }
16676 \end_layout
16677
16678 \end_inset
16679
16680 .
16681 \end_layout
16682
16683 \begin_layout Description
16684 \begin_inset Flex Code
16685 status collapsed
16686
16687 \begin_layout Plain Layout
16688 Environment
16689 \end_layout
16690
16691 \end_inset
16692
16693  means 
16694 \begin_inset Flex Code
16695 status collapsed
16696
16697 \begin_layout Plain Layout
16698
16699 \backslash
16700 begin{
16701 \emph on
16702 LatexName
16703 \emph default
16704 }\SpecialChar ldots
16705
16706 \backslash
16707 end{
16708 \emph on
16709 LatexName
16710 \emph default
16711 }
16712 \end_layout
16713
16714 \end_inset
16715
16716 .
16717  
16718 \end_layout
16719
16720 \begin_layout Description
16721 \begin_inset Flex Code
16722 status collapsed
16723
16724 \begin_layout Plain Layout
16725 Item_Environment
16726 \end_layout
16727
16728 \end_inset
16729
16730  is the same as 
16731 \begin_inset Flex Code
16732 status collapsed
16733
16734 \begin_layout Plain Layout
16735 Environment
16736 \end_layout
16737
16738 \end_inset
16739
16740 ,
16741  except that an 
16742 \begin_inset Flex Code
16743 status collapsed
16744
16745 \begin_layout Plain Layout
16746
16747 \backslash
16748 item
16749 \end_layout
16750
16751 \end_inset
16752
16753  is generated for each paragraph of this environment.
16754  
16755 \end_layout
16756
16757 \begin_layout Description
16758 \begin_inset Flex Code
16759 status collapsed
16760
16761 \begin_layout Plain Layout
16762 List_Environment
16763 \end_layout
16764
16765 \end_inset
16766
16767  is the same as 
16768 \begin_inset Flex Code
16769 status collapsed
16770
16771 \begin_layout Plain Layout
16772 Item_Environment
16773 \end_layout
16774
16775 \end_inset
16776
16777 ,
16778  except that
16779 \begin_inset Newline newline
16780 \end_inset
16781
16782
16783 \begin_inset Flex Code
16784 status collapsed
16785
16786 \begin_layout Plain Layout
16787 LabelWidthString
16788 \end_layout
16789
16790 \end_inset
16791
16792  is passed as an argument to the environment.
16793 \begin_inset Newline newline
16794 \end_inset
16795
16796
16797 \begin_inset Flex Code
16798 status collapsed
16799
16800 \begin_layout Plain Layout
16801 LabelWidthString
16802 \end_layout
16803
16804 \end_inset
16805
16806  can be defined in the 
16807 \begin_inset Flex Noun
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811 Edit\SpecialChar menuseparator
16812 Paragraph
16813 \begin_inset space ~
16814 \end_inset
16815
16816 settings
16817 \end_layout
16818
16819 \end_inset
16820
16821  dialog.
16822 \end_layout
16823
16824 \begin_layout Description
16825 \begin_inset Flex Code
16826 status collapsed
16827
16828 \begin_layout Plain Layout
16829 Bib_Environment
16830 \end_layout
16831
16832 \end_inset
16833
16834  is like 
16835 \begin_inset Flex Code
16836 status collapsed
16837
16838 \begin_layout Plain Layout
16839 Environment
16840 \end_layout
16841
16842 \end_inset
16843
16844  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
16845 \begin_inset Newline newline
16846 \end_inset
16847
16848
16849 \begin_inset Flex Code
16850 status collapsed
16851
16852 \begin_layout Plain Layout
16853
16854 \backslash
16855 begin{thebibliography}{99}
16856 \end_layout
16857
16858 \end_inset
16859
16860 .
16861  It is therefore only useful for bibliography environments.
16862  The default longest label 
16863 \begin_inset Quotes eld
16864 \end_inset
16865
16866 99
16867 \begin_inset Quotes erd
16868 \end_inset
16869
16870  can be changed by the user in the paragraph settings of a bibliography item.
16871 \end_layout
16872
16873 \begin_layout Standard
16874 Putting the last few things together,
16875  the \SpecialChar LaTeX
16876  output will be either:
16877  
16878 \end_layout
16879
16880 \begin_layout LyX-Code
16881
16882 \backslash
16883 LatexName[LatexParam]{\SpecialChar ldots
16884 }
16885 \end_layout
16886
16887 \begin_layout Standard
16888 or:
16889  
16890 \end_layout
16891
16892 \begin_layout LyX-Code
16893
16894 \backslash
16895 begin{LatexName}[LatexParam] \SpecialChar ldots
16896  
16897 \backslash
16898 end{LatexName}.
16899 \end_layout
16900
16901 \begin_layout Standard
16902 depending upon the \SpecialChar LaTeX
16903  type.
16904 \end_layout
16905
16906 \end_deeper
16907 \begin_layout Description
16908 \begin_inset Flex Code
16909 status collapsed
16910
16911 \begin_layout Plain Layout
16912 LeftDelim
16913 \end_layout
16914
16915 \end_inset
16916
16917  [
16918 \begin_inset Flex Code
16919 status collapsed
16920
16921 \begin_layout Plain Layout
16922 string
16923 \end_layout
16924
16925 \end_inset
16926
16927 ] A string that is put at the beginning of the style content.
16928  A line break in the output can be indicated by 
16929 \begin_inset Flex Code
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933 <br/>
16934 \end_layout
16935
16936 \end_inset
16937
16938 .
16939 \end_layout
16940
16941 \begin_layout Description
16942 \begin_inset Flex Code
16943 status collapsed
16944
16945 \begin_layout Plain Layout
16946 LeftMargin
16947 \end_layout
16948
16949 \end_inset
16950
16951  [
16952 \begin_inset Flex Code
16953 status collapsed
16954
16955 \begin_layout Plain Layout
16956 string=""
16957 \end_layout
16958
16959 \end_inset
16960
16961 ] If you put styles into environments,
16962  the different 
16963 \begin_inset Flex Code
16964 status collapsed
16965
16966 \begin_layout Plain Layout
16967 LeftMargin
16968 \end_layout
16969
16970 \end_inset
16971
16972  are not simply added,
16973  but added with a factor 
16974 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16975 \end_inset
16976
16977 .
16978  Note that this parameter is also used when 
16979 \begin_inset Flex Code
16980 status collapsed
16981
16982 \begin_layout Plain Layout
16983 Margin
16984 \end_layout
16985
16986 \end_inset
16987
16988  is defined as 
16989 \begin_inset Flex Code
16990 status collapsed
16991
16992 \begin_layout Plain Layout
16993 Manual
16994 \end_layout
16995
16996 \end_inset
16997
16998  or 
16999 \begin_inset Flex Code
17000 status collapsed
17001
17002 \begin_layout Plain Layout
17003 Dynamic
17004 \end_layout
17005
17006 \end_inset
17007
17008 .
17009  Then it is added to the manual or dynamic margin.
17010 \begin_inset Newline newline
17011 \end_inset
17012
17013 For example 
17014 \begin_inset Quotes eld
17015 \end_inset
17016
17017
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 MM
17023 \end_layout
17024
17025 \end_inset
17026
17027
17028 \begin_inset Quotes erd
17029 \end_inset
17030
17031  means that the paragraph is indented with the width of 
17032 \begin_inset Quotes eld
17033 \end_inset
17034
17035
17036 \begin_inset Flex Code
17037 status collapsed
17038
17039 \begin_layout Plain Layout
17040 MM
17041 \end_layout
17042
17043 \end_inset
17044
17045
17046 \begin_inset Quotes erd
17047 \end_inset
17048
17049  in the normal font.
17050  You can get a negative width by prefixing the string with 
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 -
17060 \end_layout
17061
17062 \end_inset
17063
17064
17065 \begin_inset Quotes erd
17066 \end_inset
17067
17068 .
17069  This way was chosen so that the look is the same with each used screen font.
17070 \end_layout
17071
17072 \begin_layout Description
17073 \begin_inset Flex Code
17074 status collapsed
17075
17076 \begin_layout Plain Layout
17077 Margin
17078 \end_layout
17079
17080 \end_inset
17081
17082  [
17083 \begin_inset Flex Code
17084 status collapsed
17085
17086 \begin_layout Plain Layout
17087
17088 \emph on
17089 Static
17090 \emph default
17091 ,
17092  Manual,
17093  Dynamic,
17094  First_Dynamic,
17095  Right_Address_Box
17096 \end_layout
17097
17098 \end_inset
17099
17100
17101 \begin_inset Newline newline
17102 \end_inset
17103
17104 The kind of margin that the style has on the left side.
17105 \end_layout
17106
17107 \begin_deeper
17108 \begin_layout Description
17109 \begin_inset Flex Code
17110 status collapsed
17111
17112 \begin_layout Plain Layout
17113 Static
17114 \end_layout
17115
17116 \end_inset
17117
17118  just means a fixed margin.
17119 \end_layout
17120
17121 \begin_layout Description
17122 \begin_inset Flex Code
17123 status collapsed
17124
17125 \begin_layout Plain Layout
17126 Manual
17127 \end_layout
17128
17129 \end_inset
17130
17131  means that the left margin depends on the string entered in the 
17132 \begin_inset Flex Noun
17133 status collapsed
17134
17135 \begin_layout Plain Layout
17136 Edit\SpecialChar menuseparator
17137 Paragraph
17138 \begin_inset space ~
17139 \end_inset
17140
17141 Settings
17142 \end_layout
17143
17144 \end_inset
17145
17146  dialog.
17147  This is used to typeset nice lists without tabulators.
17148 \end_layout
17149
17150 \begin_layout Description
17151 \begin_inset Flex Code
17152 status collapsed
17153
17154 \begin_layout Plain Layout
17155 Dynamic
17156 \end_layout
17157
17158 \end_inset
17159
17160  means that the margin depends on the size of the label.
17161  This is used for automatic enumerated headlines.
17162  It is obvious that the headline 
17163 \begin_inset Quotes eld
17164 \end_inset
17165
17166 5.4.3.2.1 Very long headline
17167 \begin_inset Quotes erd
17168 \end_inset
17169
17170  must have a wider left margin (as wide as 
17171 \begin_inset Quotes eld
17172 \end_inset
17173
17174 5.4.3.2.1
17175 \begin_inset Quotes erd
17176 \end_inset
17177
17178  plus the space) than 
17179 \begin_inset Quotes eld
17180 \end_inset
17181
17182 3.2 Very long headline
17183 \begin_inset Quotes erd
17184 \end_inset
17185
17186 ,
17187  even if standard 
17188 \begin_inset Quotes eld
17189 \end_inset
17190
17191 word processors
17192 \begin_inset Quotes erd
17193 \end_inset
17194
17195  are not able to do this.
17196 \end_layout
17197
17198 \begin_layout Description
17199 \begin_inset Flex Code
17200 status collapsed
17201
17202 \begin_layout Plain Layout
17203 First_Dynamic
17204 \end_layout
17205
17206 \end_inset
17207
17208  is similar,
17209  but only the very first row of the paragraph is dynamic,
17210  while the others are static;
17211  this is used,
17212  for example,
17213  for descriptions.
17214 \end_layout
17215
17216 \begin_layout Description
17217 \begin_inset Flex Code
17218 status collapsed
17219
17220 \begin_layout Plain Layout
17221 Right_Address_Box
17222 \end_layout
17223
17224 \end_inset
17225
17226  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
17227  This is used to typeset an address on the right edge of the page.
17228 \end_layout
17229
17230 \end_deeper
17231 \begin_layout Description
17232 \begin_inset Flex Code
17233 status collapsed
17234
17235 \begin_layout Plain Layout
17236 NeedProtect
17237 \end_layout
17238
17239 \end_inset
17240
17241  [
17242 \begin_inset Flex Code
17243 status collapsed
17244
17245 \begin_layout Plain Layout
17246
17247 \emph on
17248 0
17249 \end_layout
17250
17251 \end_inset
17252
17253 ,
17254 \begin_inset space \thinspace{}
17255 \end_inset
17256
17257
17258 \begin_inset Flex Code
17259 status collapsed
17260
17261 \begin_layout Plain Layout
17262 1
17263 \end_layout
17264
17265 \end_inset
17266
17267 ] Whether fragile commands in this style should be 
17268 \begin_inset Flex Code
17269 status collapsed
17270
17271 \begin_layout Plain Layout
17272
17273 \backslash
17274 protect
17275 \end_layout
17276
17277 \end_inset
17278
17279 'ed.
17280  (Note:
17281  This is 
17282 \emph on
17283 not
17284 \emph default
17285  whether this command should itself be protected.)
17286 \change_inserted -712698321 1523696949
17287
17288 \end_layout
17289
17290 \begin_layout Description
17291
17292 \change_inserted -712698321 1552395557
17293 \begin_inset Flex Code
17294 status collapsed
17295
17296 \begin_layout Plain Layout
17297
17298 \change_inserted -712698321 1523696950
17299 NeedCProtect
17300 \change_unchanged
17301
17302 \end_layout
17303
17304 \end_inset
17305
17306  [
17307 \begin_inset Flex Code
17308 status collapsed
17309
17310 \begin_layout Plain Layout
17311
17312 \change_inserted -712698321 1523696950
17313
17314 \emph on
17315 0
17316 \change_unchanged
17317
17318 \end_layout
17319
17320 \end_inset
17321
17322 ,
17323 \begin_inset space \thinspace{}
17324 \end_inset
17325
17326
17327 \begin_inset Flex Code
17328 status collapsed
17329
17330 \begin_layout Plain Layout
17331
17332 \change_inserted -712698321 1523696950
17333 1
17334 \change_unchanged
17335
17336 \end_layout
17337
17338 \end_inset
17339
17340 ] This causes macros that contain this layout to be protected with 
17341 \begin_inset Flex Code
17342 status collapsed
17343
17344 \begin_layout Plain Layout
17345
17346 \change_inserted -712698321 1523696950
17347
17348 \backslash
17349 cprotect
17350 \change_unchanged
17351
17352 \end_layout
17353
17354 \end_inset
17355
17356  (cf.
17357  package 
17358 \family sans
17359 cprotect
17360 \family default
17361 ) if necessary and thus allows (some) verbatim stuff in macros.
17362 \end_layout
17363
17364 \begin_layout Description
17365
17366 \change_inserted -712698321 1552395844
17367 \begin_inset Flex Code
17368 status collapsed
17369
17370 \begin_layout Plain Layout
17371
17372 \change_inserted -712698321 1552395561
17373 NeedMBoxProtect
17374 \change_unchanged
17375
17376 \end_layout
17377
17378 \end_inset
17379
17380  [
17381 \begin_inset Flex Code
17382 status collapsed
17383
17384 \begin_layout Plain Layout
17385
17386 \change_inserted -712698321 1552395557
17387
17388 \emph on
17389 0
17390 \change_unchanged
17391
17392 \end_layout
17393
17394 \end_inset
17395
17396 ,
17397 \begin_inset space \thinspace{}
17398 \end_inset
17399
17400
17401 \begin_inset Flex Code
17402 status collapsed
17403
17404 \begin_layout Plain Layout
17405
17406 \change_inserted -712698321 1552395557
17407 1
17408 \change_unchanged
17409
17410 \end_layout
17411
17412 \end_inset
17413
17414 ] Whether specific commands in this style (such as 
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419
17420 \change_inserted -712698321 1552395655
17421
17422 \backslash
17423 cite
17424 \change_unchanged
17425
17426 \end_layout
17427
17428 \end_inset
17429
17430  and 
17431 \begin_inset Flex Code
17432 status collapsed
17433
17434 \begin_layout Plain Layout
17435
17436 \change_inserted -712698321 1552395661
17437
17438 \backslash
17439 ref
17440 \change_unchanged
17441
17442 \end_layout
17443
17444 \end_inset
17445
17446 ) should be protected in an 
17447 \begin_inset Flex Code
17448 status collapsed
17449
17450 \begin_layout Plain Layout
17451
17452 \change_inserted -712698321 1552395631
17453
17454 \backslash
17455 mbox
17456 \change_unchanged
17457
17458 \end_layout
17459
17460 \end_inset
17461
17462 .
17463  This is particularly needed for styles that draw on 
17464 \family sans
17465 ulem
17466 \family default
17467  or 
17468 \family sans
17469 soul
17470 \family default
17471  commands which parse their content in complex ways.
17472 \change_unchanged
17473
17474 \end_layout
17475
17476 \begin_layout Description
17477 \begin_inset Flex Code
17478 status collapsed
17479
17480 \begin_layout Plain Layout
17481 Newline
17482 \end_layout
17483
17484 \end_inset
17485
17486  [
17487 \begin_inset Flex Code
17488 status collapsed
17489
17490 \begin_layout Plain Layout
17491 0
17492 \end_layout
17493
17494 \end_inset
17495
17496 ,
17497 \begin_inset space \thinspace{}
17498 \end_inset
17499
17500
17501 \begin_inset Flex Code
17502 status collapsed
17503
17504 \begin_layout Plain Layout
17505
17506 \emph on
17507 1
17508 \end_layout
17509
17510 \end_inset
17511
17512 ] Whether newlines are translated into \SpecialChar LaTeX
17513  newlines (
17514 \begin_inset Flex Code
17515 status collapsed
17516
17517 \begin_layout Plain Layout
17518
17519 \backslash
17520
17521 \backslash
17522
17523 \end_layout
17524
17525 \end_inset
17526
17527 ) or not.
17528  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
17529  editing inside \SpecialChar LyX
17530 .
17531 \end_layout
17532
17533 \begin_layout Description
17534 \begin_inset Flex Code
17535 status collapsed
17536
17537 \begin_layout Plain Layout
17538 NextNoIndent
17539 \end_layout
17540
17541 \end_inset
17542
17543  [
17544 \begin_inset Flex Code
17545 status collapsed
17546
17547 \begin_layout Plain Layout
17548
17549 \emph on
17550 0
17551 \end_layout
17552
17553 \end_inset
17554
17555 ,
17556 \begin_inset space \thinspace{}
17557 \end_inset
17558
17559
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 1
17565 \end_layout
17566
17567 \end_inset
17568
17569 ] If set to true,
17570  and if 
17571 \begin_inset Flex Code
17572 status collapsed
17573
17574 \begin_layout Plain Layout
17575 DefaultStyle
17576 \end_layout
17577
17578 \end_inset
17579
17580  (usually 
17581 \begin_inset Flex Code
17582 status collapsed
17583
17584 \begin_layout Plain Layout
17585 Standard
17586 \end_layout
17587
17588 \end_inset
17589
17590 ) paragraphs are being indented,
17591  then the indentation of such a paragraph following one of this type will be suppressed.
17592  (So this will not affect the display of non-default paragraphs.)
17593 \end_layout
17594
17595 \begin_layout Description
17596 \begin_inset Flex Code
17597 status collapsed
17598
17599 \begin_layout Plain Layout
17600 ObsoletedBy
17601 \end_layout
17602
17603 \end_inset
17604
17605  [
17606 \begin_inset Flex Code
17607 status collapsed
17608
17609 \begin_layout Plain Layout
17610 <name>
17611 \end_layout
17612
17613 \end_inset
17614
17615 ] Name of a style that has replaced this style.
17616  This is used to rename a style,
17617  while keeping backward compatibility.
17618 \end_layout
17619
17620 \begin_layout Description
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 ParagraphGroup
17626 \end_layout
17627
17628 \end_inset
17629
17630  [
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635 0
17636 \end_layout
17637
17638 \end_inset
17639
17640 ,
17641 \begin_inset space \thinspace{}
17642 \end_inset
17643
17644
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 1
17650 \end_layout
17651
17652 \end_inset
17653
17654 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
17655  This has the effect that the 
17656 \begin_inset Flex Code
17657 status collapsed
17658
17659 \begin_layout Plain Layout
17660 GuiLabel
17661 \end_layout
17662
17663 \end_inset
17664
17665  is only printed once before such a group.
17666  By default,
17667  this is true for 
17668 \begin_inset Flex Code
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672 LaTeXType
17673 \end_layout
17674
17675 \end_inset
17676
17677  
17678 \begin_inset Flex Code
17679 status collapsed
17680
17681 \begin_layout Plain Layout
17682 Environment
17683 \end_layout
17684
17685 \end_inset
17686
17687  and 
17688 \begin_inset Flex Code
17689 status collapsed
17690
17691 \begin_layout Plain Layout
17692 Bib_Environment
17693 \end_layout
17694
17695 \end_inset
17696
17697  and false for all other types.
17698 \end_layout
17699
17700 \begin_layout Description
17701 \begin_inset Flex Code
17702 status collapsed
17703
17704 \begin_layout Plain Layout
17705 ParbreakIsNewline
17706 \end_layout
17707
17708 \end_inset
17709
17710  [
17711 \begin_inset Flex Code
17712 status collapsed
17713
17714 \begin_layout Plain Layout
17715
17716 \emph on
17717 0
17718 \end_layout
17719
17720 \end_inset
17721
17722 ,
17723 \begin_inset space \thinspace{}
17724 \end_inset
17725
17726
17727 \begin_inset Flex Code
17728 status collapsed
17729
17730 \begin_layout Plain Layout
17731 1
17732 \end_layout
17733
17734 \end_inset
17735
17736 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17737  output,
17738  but only by a line break;
17739  together with 
17740 \begin_inset Flex Code
17741 status collapsed
17742
17743 \begin_layout Plain Layout
17744 PassThru 1
17745 \end_layout
17746
17747 \end_inset
17748
17749 ,
17750  this allows to emulate a plain text editor (like the ERT inset).
17751 \end_layout
17752
17753 \begin_layout Description
17754 \begin_inset Flex Code
17755 status collapsed
17756
17757 \begin_layout Plain Layout
17758 ParIndent
17759 \end_layout
17760
17761 \end_inset
17762
17763  [
17764 \begin_inset Flex Code
17765 status collapsed
17766
17767 \begin_layout Plain Layout
17768 string=""
17769 \end_layout
17770
17771 \end_inset
17772
17773 ] The indent of the very first line of a paragraph.
17774  The
17775 \begin_inset Newline newline
17776 \end_inset
17777
17778
17779 \begin_inset Flex Code
17780 status collapsed
17781
17782 \begin_layout Plain Layout
17783 Parindent
17784 \end_layout
17785
17786 \end_inset
17787
17788  will be fixed for a certain style.
17789  The exception is the default style,
17790  since the indentation for these paragraphs can be prohibited with 
17791 \begin_inset Flex Code
17792 status collapsed
17793
17794 \begin_layout Plain Layout
17795 NextNoIndent
17796 \end_layout
17797
17798 \end_inset
17799
17800 .
17801  Also,
17802  
17803 \begin_inset Flex Code
17804 status collapsed
17805
17806 \begin_layout Plain Layout
17807 Standard
17808 \end_layout
17809
17810 \end_inset
17811
17812  style paragraphs inside environments use the 
17813 \begin_inset Flex Code
17814 status collapsed
17815
17816 \begin_layout Plain Layout
17817 Parindent
17818 \end_layout
17819
17820 \end_inset
17821
17822  of the environment,
17823  not their native one.
17824  For example,
17825  
17826 \begin_inset Flex Code
17827 status collapsed
17828
17829 \begin_layout Plain Layout
17830 Standard
17831 \end_layout
17832
17833 \end_inset
17834
17835  paragraphs inside an enumeration are not indented.
17836 \end_layout
17837
17838 \begin_layout Description
17839 \begin_inset Flex Code
17840 status collapsed
17841
17842 \begin_layout Plain Layout
17843 ParSep
17844 \end_layout
17845
17846 \end_inset
17847
17848  [
17849 \begin_inset Flex Code
17850 status collapsed
17851
17852 \begin_layout Plain Layout
17853 float=0
17854 \end_layout
17855
17856 \end_inset
17857
17858 ] The vertical space between two paragraphs of this style.
17859 \end_layout
17860
17861 \begin_layout Description
17862 \begin_inset Flex Code
17863 status collapsed
17864
17865 \begin_layout Plain Layout
17866 Parskip
17867 \end_layout
17868
17869 \end_inset
17870
17871  [
17872 \begin_inset Flex Code
17873 status collapsed
17874
17875 \begin_layout Plain Layout
17876 float=0
17877 \end_layout
17878
17879 \end_inset
17880
17881 ] \SpecialChar LyX
17882  allows the user to choose either 
17883 \begin_inset Quotes eld
17884 \end_inset
17885
17886 indent
17887 \begin_inset Quotes erd
17888 \end_inset
17889
17890  or 
17891 \begin_inset Quotes eld
17892 \end_inset
17893
17894 skip
17895 \begin_inset Quotes erd
17896 \end_inset
17897
17898  to separate paragraphs.
17899  When 
17900 \begin_inset Quotes eld
17901 \end_inset
17902
17903 indent
17904 \begin_inset Quotes erd
17905 \end_inset
17906
17907  is chosen,
17908  
17909 \begin_inset Flex Code
17910 status collapsed
17911
17912 \begin_layout Plain Layout
17913 Parskip
17914 \end_layout
17915
17916 \end_inset
17917
17918  is ignored.
17919  When 
17920 \begin_inset Quotes eld
17921 \end_inset
17922
17923 skip
17924 \begin_inset Quotes erd
17925 \end_inset
17926
17927  is chosen,
17928  
17929 \begin_inset Flex Code
17930 status collapsed
17931
17932 \begin_layout Plain Layout
17933 ParIndent
17934 \end_layout
17935
17936 \end_inset
17937
17938  is ignored and all paragraphs are separated by the 
17939 \begin_inset Flex Code
17940 status collapsed
17941
17942 \begin_layout Plain Layout
17943 Parskip
17944 \end_layout
17945
17946 \end_inset
17947
17948  argument.
17949  The vertical space is calculated with 
17950 \begin_inset Flex Code
17951 status collapsed
17952
17953 \begin_layout Plain Layout
17954 Parskip
17955 \begin_inset space ~
17956 \end_inset
17957
17958 * DefaultHeight
17959 \end_layout
17960
17961 \end_inset
17962
17963  where 
17964 \begin_inset Flex Code
17965 status collapsed
17966
17967 \begin_layout Plain Layout
17968 DefaultHeight
17969 \end_layout
17970
17971 \end_inset
17972
17973  is the height of a row with the normal font.
17974  This way,
17975  the look stays the same with different screen fonts.
17976 \end_layout
17977
17978 \begin_layout Description
17979 \begin_inset Flex Code
17980 status collapsed
17981
17982 \begin_layout Plain Layout
17983 PassThru
17984 \end_layout
17985
17986 \end_inset
17987
17988  [
17989 \begin_inset Flex Code
17990 status collapsed
17991
17992 \begin_layout Plain Layout
17993
17994 \emph on
17995 0
17996 \end_layout
17997
17998 \end_inset
17999
18000 ,
18001 \begin_inset space \thinspace{}
18002 \end_inset
18003
18004
18005 \begin_inset Flex Code
18006 status collapsed
18007
18008 \begin_layout Plain Layout
18009 1
18010 \end_layout
18011
18012 \end_inset
18013
18014 ] Whether the contents of this paragraph should be output in raw form,
18015  meaning without special translations that \SpecialChar LaTeX
18016  would require.
18017 \end_layout
18018
18019 \begin_layout Description
18020 \begin_inset Flex Code
18021 status collapsed
18022
18023 \begin_layout Plain Layout
18024 PassThruChars
18025 \end_layout
18026
18027 \end_inset
18028
18029  [
18030 \begin_inset Flex Code
18031 status collapsed
18032
18033 \begin_layout Plain Layout
18034 string
18035 \end_layout
18036
18037 \end_inset
18038
18039 ]
18040 \family typewriter
18041  
18042 \family default
18043 Defines individual characters that should be output in raw form,
18044  meaning without special translations that \SpecialChar LaTeX
18045  would require.
18046 \end_layout
18047
18048 \begin_layout Description
18049 \begin_inset Flex Code
18050 status collapsed
18051
18052 \begin_layout Plain Layout
18053 Preamble
18054 \end_layout
18055
18056 \end_inset
18057
18058  Information to be included in the \SpecialChar LaTeX
18059  preamble when this style is used.
18060  Used to define macros,
18061  load packages,
18062  etc.,
18063  required by this particular style.
18064  Must end with 
18065 \begin_inset Quotes eld
18066 \end_inset
18067
18068
18069 \begin_inset Flex Code
18070 status collapsed
18071
18072 \begin_layout Plain Layout
18073 EndPreamble
18074 \end_layout
18075
18076 \end_inset
18077
18078
18079 \begin_inset Quotes erd
18080 \end_inset
18081
18082 .
18083 \end_layout
18084
18085 \begin_layout Description
18086 \begin_inset Flex Code
18087 status collapsed
18088
18089 \begin_layout Plain Layout
18090 RefPrefix
18091 \end_layout
18092
18093 \end_inset
18094
18095  [
18096 \begin_inset Flex Code
18097 status collapsed
18098
18099 \begin_layout Plain Layout
18100 string
18101 \end_layout
18102
18103 \end_inset
18104
18105 ] The prefix to use when creating labels referring to paragraphs of this type.
18106  This allows the use of formatted references.
18107 \end_layout
18108
18109 \begin_layout Description
18110 \begin_inset Flex Code
18111 status collapsed
18112
18113 \begin_layout Plain Layout
18114 Requires 
18115 \end_layout
18116
18117 \end_inset
18118
18119  [
18120 \begin_inset Flex Code
18121 status collapsed
18122
18123 \begin_layout Plain Layout
18124 string
18125 \end_layout
18126
18127 \end_inset
18128
18129 ] Whether the style requires the feature 
18130 \begin_inset Flex Code
18131 status collapsed
18132
18133 \begin_layout Plain Layout
18134 string
18135 \end_layout
18136
18137 \end_inset
18138
18139  (see 
18140 \begin_inset CommandInset ref
18141 LatexCommand ref
18142 reference "chap:List-of-functions"
18143 nolink "false"
18144
18145 \end_inset
18146
18147  for the list of features).
18148  If you require a package with specific options,
18149  you can additionally use 
18150 \begin_inset Flex Code
18151 status collapsed
18152
18153 \begin_layout Plain Layout
18154 PackageOptions
18155 \end_layout
18156
18157 \end_inset
18158
18159  as a general text class parameter (see 
18160 \begin_inset CommandInset ref
18161 LatexCommand ref
18162 reference "subsec:General-text-class"
18163 nolink "false"
18164
18165 \end_inset
18166
18167 ).
18168 \end_layout
18169
18170 \begin_layout Description
18171 \begin_inset Flex Code
18172 status collapsed
18173
18174 \begin_layout Plain Layout
18175 ResetArgs
18176 \end_layout
18177
18178 \end_inset
18179
18180  [
18181 \begin_inset Flex Code
18182 status collapsed
18183
18184 \begin_layout Plain Layout
18185
18186 \emph on
18187 0
18188 \end_layout
18189
18190 \end_inset
18191
18192 ,
18193 \begin_inset Flex Code
18194 status collapsed
18195
18196 \begin_layout Plain Layout
18197 1
18198 \end_layout
18199
18200 \end_inset
18201
18202 ] Resets the \SpecialChar LaTeX
18203  arguments of this style (as defined via the 
18204 \begin_inset Flex Code
18205 status collapsed
18206
18207 \begin_layout Plain Layout
18208 Argument
18209 \end_layout
18210
18211 \end_inset
18212
18213  tag).
18214  This is useful if you have copied a style via 
18215 \begin_inset Flex Code
18216 status collapsed
18217
18218 \begin_layout Plain Layout
18219 CopyStyle
18220 \end_layout
18221
18222 \end_inset
18223
18224 ,
18225  but you do not want to inherit its (required and optional) arguments.
18226 \end_layout
18227
18228 \begin_layout Description
18229 \begin_inset Flex Code
18230 status collapsed
18231
18232 \begin_layout Plain Layout
18233 ResumeCounter
18234 \end_layout
18235
18236 \end_inset
18237
18238  [
18239 \begin_inset Flex Code
18240 status collapsed
18241
18242 \begin_layout Plain Layout
18243
18244 \emph on
18245 0
18246 \end_layout
18247
18248 \end_inset
18249
18250 ,
18251 \begin_inset Flex Code
18252 status collapsed
18253
18254 \begin_layout Plain Layout
18255 1
18256 \end_layout
18257
18258 \end_inset
18259
18260 ] Resumes a counter that is usually reset at each new sequence of layouts.
18261  This is currently only useful when 
18262 \begin_inset Flex Code
18263 status collapsed
18264
18265 \begin_layout Plain Layout
18266 LabelType
18267 \end_layout
18268
18269 \end_inset
18270
18271  is 
18272 \begin_inset Flex Code
18273 status collapsed
18274
18275 \begin_layout Plain Layout
18276 Enumerate
18277 \end_layout
18278
18279 \end_inset
18280
18281 .
18282 \end_layout
18283
18284 \begin_layout Description
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 RightDelim
18290 \end_layout
18291
18292 \end_inset
18293
18294  [
18295 \begin_inset Flex Code
18296 status collapsed
18297
18298 \begin_layout Plain Layout
18299 string
18300 \end_layout
18301
18302 \end_inset
18303
18304 ] A string that is put at the end of the layout content.
18305  A line break in the output can be indicated by 
18306 \begin_inset Flex Code
18307 status collapsed
18308
18309 \begin_layout Plain Layout
18310 <br/>
18311 \end_layout
18312
18313 \end_inset
18314
18315 .
18316 \end_layout
18317
18318 \begin_layout Description
18319 \begin_inset Flex Code
18320 status collapsed
18321
18322 \begin_layout Plain Layout
18323 RightMargin
18324 \end_layout
18325
18326 \end_inset
18327
18328  [
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333 string=""
18334 \end_layout
18335
18336 \end_inset
18337
18338 ] Similar to 
18339 \begin_inset Flex Code
18340 status collapsed
18341
18342 \begin_layout Plain Layout
18343 LeftMargin
18344 \end_layout
18345
18346 \end_inset
18347
18348 .
18349 \end_layout
18350
18351 \begin_layout Description
18352 \begin_inset Flex Code
18353 status collapsed
18354
18355 \begin_layout Plain Layout
18356 Spacing
18357 \end_layout
18358
18359 \end_inset
18360
18361  [
18362 \begin_inset Flex Code
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366
18367 \emph on
18368 single
18369 \end_layout
18370
18371 \end_inset
18372
18373 ,
18374  
18375 \begin_inset Flex Code
18376 status collapsed
18377
18378 \begin_layout Plain Layout
18379 onehalf
18380 \end_layout
18381
18382 \end_inset
18383
18384 ,
18385  
18386 \begin_inset Flex Code
18387 status collapsed
18388
18389 \begin_layout Plain Layout
18390 double
18391 \end_layout
18392
18393 \end_inset
18394
18395 ,
18396  
18397 \begin_inset Flex Code
18398 status collapsed
18399
18400 \begin_layout Plain Layout
18401 other
18402 \begin_inset space ~
18403 \end_inset
18404
18405 <value>
18406 \end_layout
18407
18408 \end_inset
18409
18410 ] This defines what the default spacing should be in the style.
18411  The arguments 
18412 \begin_inset Flex Code
18413 status collapsed
18414
18415 \begin_layout Plain Layout
18416 single
18417 \end_layout
18418
18419 \end_inset
18420
18421 ,
18422  
18423 \begin_inset Flex Code
18424 status collapsed
18425
18426 \begin_layout Plain Layout
18427 onehalf
18428 \end_layout
18429
18430 \end_inset
18431
18432  and 
18433 \begin_inset Flex Code
18434 status collapsed
18435
18436 \begin_layout Plain Layout
18437 double
18438 \end_layout
18439
18440 \end_inset
18441
18442  correspond respectively to a multiplier value of 1,
18443  1.25 and 1.667.
18444  If you specify the argument 
18445 \begin_inset Flex Code
18446 status collapsed
18447
18448 \begin_layout Plain Layout
18449 other
18450 \end_layout
18451
18452 \end_inset
18453
18454 ,
18455  then you must also provide a value argument which will be the actual multiplier value.
18456  Note that,
18457  contrary to other parameters,
18458  
18459 \begin_inset Flex Code
18460 status collapsed
18461
18462 \begin_layout Plain Layout
18463 Spacing
18464 \end_layout
18465
18466 \end_inset
18467
18468  implies the generation of specific \SpecialChar LaTeX
18469  code,
18470  using the \SpecialChar LaTeX
18471  package 
18472 \family roman
18473
18474 \begin_inset Flex Code
18475 status collapsed
18476
18477 \begin_layout Plain Layout
18478 setspace
18479 \end_layout
18480
18481 \end_inset
18482
18483 .
18484 \end_layout
18485
18486 \begin_layout Description
18487 \begin_inset Flex Code
18488 status collapsed
18489
18490 \begin_layout Plain Layout
18491 Spellcheck
18492 \end_layout
18493
18494 \end_inset
18495
18496  [
18497 \begin_inset Flex Code
18498 status collapsed
18499
18500 \begin_layout Plain Layout
18501 0
18502 \end_layout
18503
18504 \end_inset
18505
18506 ,
18507 \begin_inset space \thinspace{}
18508 \end_inset
18509
18510
18511 \begin_inset Flex Code
18512 status collapsed
18513
18514 \begin_layout Plain Layout
18515
18516 \emph on
18517 1
18518 \end_layout
18519
18520 \end_inset
18521
18522 ] Allow spell-checking paragraphs of this style.
18523  Default is true.
18524 \end_layout
18525
18526 \begin_layout Description
18527 \begin_inset Flex Code
18528 status collapsed
18529
18530 \begin_layout Plain Layout
18531 Step
18532 \change_deleted 731793113 1604355211
18533 Master
18534 \change_inserted 731793113 1604355212
18535 Parent
18536 \change_unchanged
18537 Counter
18538 \end_layout
18539
18540 \end_inset
18541
18542  [
18543 \begin_inset Flex Code
18544 status collapsed
18545
18546 \begin_layout Plain Layout
18547
18548 \emph on
18549 0
18550 \end_layout
18551
18552 \end_inset
18553
18554 ,
18555 \begin_inset Flex Code
18556 status collapsed
18557
18558 \begin_layout Plain Layout
18559 1
18560 \end_layout
18561
18562 \end_inset
18563
18564 ] Steps the 
18565 \change_deleted 731793113 1604355214
18566 master
18567 \change_inserted 731793113 1604355216
18568 parent
18569 \change_unchanged
18570  counter of a given counter at the beginning of a new sequence of layouts.
18571  This is currently only useful when 
18572 \begin_inset Flex Code
18573 status collapsed
18574
18575 \begin_layout Plain Layout
18576 LabelType
18577 \end_layout
18578
18579 \end_inset
18580
18581  is 
18582 \begin_inset Flex Code
18583 status collapsed
18584
18585 \begin_layout Plain Layout
18586 Enumerate
18587 \end_layout
18588
18589 \end_inset
18590
18591 .
18592 \end_layout
18593
18594 \begin_layout Description
18595 \begin_inset Flex Code
18596 status collapsed
18597
18598 \begin_layout Plain Layout
18599 TextFont
18600 \end_layout
18601
18602 \end_inset
18603
18604  The font used for the text body .
18605  See 
18606 \begin_inset CommandInset ref
18607 LatexCommand ref
18608 reference "subsec:Font-description"
18609 nolink "false"
18610
18611 \end_inset
18612
18613 .
18614 \end_layout
18615
18616 \begin_layout Description
18617 \begin_inset Flex Code
18618 status collapsed
18619
18620 \begin_layout Plain Layout
18621 TocLevel
18622 \end_layout
18623
18624 \end_inset
18625
18626
18627 \series medium
18628  [
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633
18634 \series medium
18635 int=3
18636 \end_layout
18637
18638 \end_inset
18639
18640 ]
18641 \series default
18642  The level of the style in the table of contents.
18643  This is used for automatic numbering of section headings.
18644 \end_layout
18645
18646 \begin_layout Description
18647 \begin_inset Flex Code
18648 status collapsed
18649
18650 \begin_layout Plain Layout
18651 ToggleIndent
18652 \end_layout
18653
18654 \end_inset
18655
18656  [
18657 \emph on
18658
18659 \begin_inset Flex Code
18660 status collapsed
18661
18662 \begin_layout Plain Layout
18663
18664 \emph on
18665 default
18666 \end_layout
18667
18668 \end_inset
18669
18670
18671 \emph default
18672 ,
18673  
18674 \begin_inset Flex Code
18675 status collapsed
18676
18677 \begin_layout Plain Layout
18678 always
18679 \end_layout
18680
18681 \end_inset
18682
18683 ,
18684  
18685 \begin_inset Flex Code
18686 status collapsed
18687
18688 \begin_layout Plain Layout
18689 never
18690 \end_layout
18691
18692 \end_inset
18693
18694 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
18695  If 
18696 \emph on
18697
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702
18703 \emph off
18704 default
18705 \end_layout
18706
18707 \end_inset
18708
18709
18710 \emph default
18711  is set,
18712  indentation can be toggled if the document settings use 
18713 \begin_inset Quotes eld
18714 \end_inset
18715
18716 indent
18717 \begin_inset Quotes erd
18718 \end_inset
18719
18720  paragraph style,
18721  with 
18722 \begin_inset Flex Code
18723 status collapsed
18724
18725 \begin_layout Plain Layout
18726 always
18727 \end_layout
18728
18729 \end_inset
18730
18731 ,
18732  indentation can always be toggled,
18733  notwithstanding the document settings,
18734  with 
18735 \begin_inset Flex Code
18736 status collapsed
18737
18738 \begin_layout Plain Layout
18739 never
18740 \end_layout
18741
18742 \end_inset
18743
18744 ,
18745  indentation can never be toggled.
18746 \end_layout
18747
18748 \begin_layout Description
18749 \begin_inset Flex Code
18750 status collapsed
18751
18752 \begin_layout Plain Layout
18753 TopSep
18754 \end_layout
18755
18756 \end_inset
18757
18758  [
18759 \begin_inset Flex Code
18760 status collapsed
18761
18762 \begin_layout Plain Layout
18763 float=0
18764 \end_layout
18765
18766 \end_inset
18767
18768 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
18769  If the previous paragraph has another style,
18770  the separations are not simply added,
18771  but the maximum is taken.
18772 \end_layout
18773
18774 \begin_layout Subsection
18775 \begin_inset CommandInset label
18776 LatexCommand label
18777 name "subsec:I18n"
18778
18779 \end_inset
18780
18781 Internationalization of Paragraph Styles
18782 \end_layout
18783
18784 \begin_layout Standard
18785 \SpecialChar LyX
18786  has long supported internationalization of layout information,
18787  but,
18788  until version 2.0,
18789  this applied only to the user interface and not to,
18790  say,
18791  PDF output.
18792  Thus,
18793  French authors were forced to resort to ugly hacks if they wanted `
18794 \lang french
18795 Théorème
18796 \lang english
18797  1' instead of `Theorem 1'.
18798  Thanks to Georg Baum,
18799  that is no longer the case.
18800 \end_layout
18801
18802 \begin_layout Standard
18803 If a 
18804 \begin_inset Flex Code
18805 status collapsed
18806
18807 \begin_layout Plain Layout
18808 Style
18809 \end_layout
18810
18811 \end_inset
18812
18813  defines text that is to appear in the typeset document,
18814  it may use 
18815 \begin_inset Flex Code
18816 status collapsed
18817
18818 \begin_layout Plain Layout
18819 LangPreamble
18820 \end_layout
18821
18822 \end_inset
18823
18824  and 
18825 \begin_inset Flex Code
18826 status collapsed
18827
18828 \begin_layout Plain Layout
18829 BabelPreamble
18830 \end_layout
18831
18832 \end_inset
18833
18834  to support non-English and even multi-language documents correctly.
18835  The following excerpt (from the 
18836 \begin_inset Flex Code
18837 status collapsed
18838
18839 \begin_layout Plain Layout
18840 theorems-ams.inc
18841 \end_layout
18842
18843 \end_inset
18844
18845  file) shows how this works:
18846 \end_layout
18847
18848 \begin_layout LyX-Code
18849 Preamble
18850 \end_layout
18851
18852 \begin_deeper
18853 \begin_layout LyX-Code
18854   
18855 \backslash
18856 theoremstyle{remark}
18857 \end_layout
18858
18859 \begin_layout LyX-Code
18860   
18861 \backslash
18862 newtheorem{claim}[thm]{
18863 \backslash
18864 protect
18865 \backslash
18866 claimname}
18867 \end_layout
18868
18869 \begin_layout LyX-Code
18870 EndPreamble
18871 \end_layout
18872
18873 \begin_layout LyX-Code
18874 LangPreamble
18875 \end_layout
18876
18877 \begin_layout LyX-Code
18878   
18879 \backslash
18880 providecommand{
18881 \backslash
18882 claimname}{_(Claim)}
18883 \end_layout
18884
18885 \begin_layout LyX-Code
18886 EndLangPreamble
18887 \end_layout
18888
18889 \begin_layout LyX-Code
18890 BabelPreamble
18891 \end_layout
18892
18893 \begin_layout LyX-Code
18894     
18895 \backslash
18896 addto
18897 \backslash
18898 captions$$lang{
18899 \backslash
18900 renewcommand{
18901 \backslash
18902 claimname}{_(Claim)}}
18903 \end_layout
18904
18905 \begin_layout LyX-Code
18906 EndBabelPreamble
18907 \end_layout
18908
18909 \end_deeper
18910 \begin_layout Standard
18911 In principle,
18912  any legal \SpecialChar LaTeX
18913  may appear in the 
18914 \begin_inset Flex Code
18915 status collapsed
18916
18917 \begin_layout Plain Layout
18918 LangPreamble
18919 \end_layout
18920
18921 \end_inset
18922
18923  and 
18924 \begin_inset Flex Code
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 BabelPreamble
18929 \end_layout
18930
18931 \end_inset
18932
18933  tags,
18934  but in practice they will typically look as they do here.
18935  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
18936  command 
18937 \begin_inset Flex Code
18938 status collapsed
18939
18940 \begin_layout Plain Layout
18941
18942 \backslash
18943 claimname
18944 \end_layout
18945
18946 \end_inset
18947
18948  and its use in 
18949 \begin_inset Flex Code
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953
18954 \backslash
18955 newtheorem
18956 \end_layout
18957
18958 \end_inset
18959
18960 .
18961  
18962 \end_layout
18963
18964 \begin_layout Standard
18965 The 
18966 \begin_inset Flex Code
18967 status collapsed
18968
18969 \begin_layout Plain Layout
18970 LangPreamble
18971 \end_layout
18972
18973 \end_inset
18974
18975  tag provides for internationalization based upon the overall language of the document.
18976  The contents of the tag will be included in the preamble,
18977  just as with the 
18978 \begin_inset Flex Code
18979 status collapsed
18980
18981 \begin_layout Plain Layout
18982 Preamble
18983 \end_layout
18984
18985 \end_inset
18986
18987  tag.
18988  What makes it special is the use of the 
18989 \begin_inset Quotes eld
18990 \end_inset
18991
18992 function
18993 \begin_inset Quotes erd
18994 \end_inset
18995
18996  
18997 \begin_inset Flex Code
18998 status collapsed
18999
19000 \begin_layout Plain Layout
19001 _()
19002 \end_layout
19003
19004 \end_inset
19005
19006 ,
19007  which will be replaced,
19008  when \SpecialChar LyX
19009  produces \SpecialChar LaTeX
19010  output,
19011  with the translation of its argument into the document language.
19012 \end_layout
19013
19014 \begin_layout Standard
19015 The 
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 BabelPreamble
19021 \end_layout
19022
19023 \end_inset
19024
19025  tag is more complex,
19026  since it is meant to provide support for multi-language documents and so offers an interface to the 
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 babel
19032 \end_layout
19033
19034 \end_inset
19035
19036  package.
19037  Its contents will be added to the preamble once for each language that appears in the document.
19038  In this case,
19039  the argument to 
19040 \begin_inset Flex Code
19041 status collapsed
19042
19043 \begin_layout Plain Layout
19044 _()
19045 \end_layout
19046
19047 \end_inset
19048
19049  will be replaced with its translation into the language in question;
19050  the expression 
19051 \begin_inset Flex Code
19052 status collapsed
19053
19054 \begin_layout Plain Layout
19055 $$lang
19056 \end_layout
19057
19058 \end_inset
19059
19060  is replaced by the language name (as used by the babel package).
19061 \end_layout
19062
19063 \begin_layout Standard
19064 A German document that also included a French section would thus have the following in the preamble:
19065 \end_layout
19066
19067 \begin_layout LyX-Code
19068
19069 \backslash
19070 addto
19071 \backslash
19072 captionsfrench{
19073 \backslash
19074 renewcommand{
19075 \backslash
19076 claimname}{Affirmation}}
19077 \begin_inset Newline newline
19078 \end_inset
19079
19080
19081 \backslash
19082 addto
19083 \backslash
19084 captionsngerman{
19085 \backslash
19086 renewcommand{
19087 \backslash
19088 claimname}{Behauptung}}
19089 \begin_inset Newline newline
19090 \end_inset
19091
19092
19093 \backslash
19094 providecommand{
19095 \backslash
19096 claimname}{Behauptung}
19097 \end_layout
19098
19099 \begin_layout Standard
19100 \SpecialChar LaTeX
19101  and 
19102 \begin_inset Flex Code
19103 status collapsed
19104
19105 \begin_layout Plain Layout
19106 babel
19107 \end_layout
19108
19109 \end_inset
19110
19111  will then conspire to produce the correct text in the output.
19112 \end_layout
19113
19114 \begin_layout Standard
19115 One important point to note here is that the translations are provided by \SpecialChar LyX
19116  itself,
19117  through the file 
19118 \begin_inset Flex Code
19119 status collapsed
19120
19121 \begin_layout Plain Layout
19122 layouttranslations
19123 \end_layout
19124
19125 \end_inset
19126
19127 .
19128  This means,
19129  in effect,
19130  that 
19131 \begin_inset Flex Code
19132 status collapsed
19133
19134 \begin_layout Plain Layout
19135 LangPreamble
19136 \end_layout
19137
19138 \end_inset
19139
19140  and 
19141 \begin_inset Flex Code
19142 status collapsed
19143
19144 \begin_layout Plain Layout
19145 BabelPreamble
19146 \end_layout
19147
19148 \end_inset
19149
19150  are really only of use in layout files that are provided with \SpecialChar LyX
19151 ,
19152  since text entered in user-created layout files will not be seen by \SpecialChar LyX
19153 's internationalization routines unless the 
19154 \begin_inset Flex Code
19155 status collapsed
19156
19157 \begin_layout Plain Layout
19158 layouttranslations
19159 \end_layout
19160
19161 \end_inset
19162
19163  file is modified accordingly.
19164  That said,
19165  however,
19166  any layout created with the intention that it will be included with \SpecialChar LyX
19167  should use these tags where appropriate.
19168  Please note that the paragraph style translations provided by \SpecialChar LyX
19169  will never change with a minor update (e.
19170 \begin_inset space \thinspace{}
19171 \end_inset
19172
19173 g.
19174 \begin_inset space \space{}
19175 \end_inset
19176
19177 from version 2.1.x to 2.1.y).
19178  It is however quite likely that a major update (e.
19179 \begin_inset space \thinspace{}
19180 \end_inset
19181
19182 g.
19183 \begin_inset space \space{}
19184 \end_inset
19185
19186 from 2.0.x to 2.1.0) will introduce new translations or corrections.
19187 \end_layout
19188
19189 \begin_layout Subsection
19190 Floats
19191 \begin_inset CommandInset label
19192 LatexCommand label
19193 name "subsec:Floats"
19194
19195 \end_inset
19196
19197
19198 \end_layout
19199
19200 \begin_layout Standard
19201 It is necessary to define the floats (
19202 \begin_inset Flex Noun
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 figure
19207 \end_layout
19208
19209 \end_inset
19210
19211 ,
19212  
19213 \begin_inset Flex Noun
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 table
19218 \end_layout
19219
19220 \end_inset
19221
19222 ,
19223  \SpecialChar ldots
19224 ) in the text class itself.
19225  Standard floats are included in the file 
19226 \begin_inset Flex Code
19227 status collapsed
19228
19229 \begin_layout Plain Layout
19230 stdfloats.inc
19231 \end_layout
19232
19233 \end_inset
19234
19235 ,
19236  so you may have to do no more than add
19237 \end_layout
19238
19239 \begin_layout LyX-Code
19240 Input stdfloats.inc
19241 \end_layout
19242
19243 \begin_layout Standard
19244 to your layout file.
19245  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
19246 ),
19247  the information below will hopefully help you:
19248 \end_layout
19249
19250 \begin_layout Description
19251 \begin_inset Flex Code
19252 status collapsed
19253
19254 \begin_layout Plain Layout
19255 AllowedPlacement
19256 \end_layout
19257
19258 \end_inset
19259
19260  [
19261 \begin_inset Flex Code
19262 status collapsed
19263
19264 \begin_layout Plain Layout
19265 string
19266 \end_layout
19267
19268 \end_inset
19269
19270 =!htbpH] Allowed placement options for this float type.
19271  The value is a string of placement characters.
19272  Possible characters include:
19273  
19274 \emph on
19275 h
19276 \emph default
19277  (
19278 \begin_inset Quotes eld
19279 \end_inset
19280
19281 here if possible
19282 \begin_inset Quotes erd
19283 \end_inset
19284
19285 ),
19286  
19287 \emph on
19288 t
19289 \emph default
19290  (
19291 \begin_inset Quotes eld
19292 \end_inset
19293
19294 top of page
19295 \begin_inset Quotes erd
19296 \end_inset
19297
19298 ),
19299  
19300 \emph on
19301 b
19302 \emph default
19303  (
19304 \begin_inset Quotes eld
19305 \end_inset
19306
19307 bottom of page
19308 \begin_inset Quotes erd
19309 \end_inset
19310
19311 ),
19312  
19313 \emph on
19314 p
19315 \emph default
19316  (
19317 \begin_inset Quotes eld
19318 \end_inset
19319
19320 page of floats
19321 \begin_inset Quotes erd
19322 \end_inset
19323
19324 ),
19325  
19326 \emph on
19327 H
19328 \emph default
19329  (
19330 \begin_inset Quotes eld
19331 \end_inset
19332
19333 here definitely
19334 \begin_inset Quotes erd
19335 \end_inset
19336
19337 ) and 
19338 \emph on
19339 !
19340
19341 \emph default
19342  (
19343 \begin_inset Quotes eld
19344 \end_inset
19345
19346 ignore LaTeX rules
19347 \begin_inset Quotes erd
19348 \end_inset
19349
19350 ).
19351  The order of the characters in the string does not matter.
19352  If no placement options are allowed,
19353  use the string 
19354 \emph on
19355 none
19356 \emph default
19357 .
19358 \end_layout
19359
19360 \begin_layout Description
19361 \begin_inset Flex Code
19362 status collapsed
19363
19364 \begin_layout Plain Layout
19365 AllowsSideways
19366 \end_layout
19367
19368 \end_inset
19369
19370  [
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375
19376 \emph off
19377 0
19378 \end_layout
19379
19380 \end_inset
19381
19382 ,
19383 \begin_inset space \thinspace{}
19384 \end_inset
19385
19386
19387 \emph on
19388
19389 \begin_inset Flex Code
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393
19394 \emph on
19395 1
19396 \end_layout
19397
19398 \end_inset
19399
19400
19401 \emph default
19402 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
19403 -package 
19404 \family typewriter
19405 rotfloat
19406 \family default
19407  (sidewaysfloat).
19408  Set to 
19409 \begin_inset Flex Code
19410 status collapsed
19411
19412 \begin_layout Plain Layout
19413 0
19414 \end_layout
19415
19416 \end_inset
19417
19418  if the float does not support this feature.
19419 \end_layout
19420
19421 \begin_layout Description
19422 \begin_inset Flex Code
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426 AllowsWide
19427 \end_layout
19428
19429 \end_inset
19430
19431  [
19432 \begin_inset Flex Code
19433 status collapsed
19434
19435 \begin_layout Plain Layout
19436
19437 \emph off
19438 0
19439 \end_layout
19440
19441 \end_inset
19442
19443 ,
19444 \begin_inset space \thinspace{}
19445 \end_inset
19446
19447
19448 \emph on
19449
19450 \begin_inset Flex Code
19451 status collapsed
19452
19453 \begin_layout Plain Layout
19454
19455 \emph on
19456 1
19457 \end_layout
19458
19459 \end_inset
19460
19461
19462 \emph default
19463 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
19464  Set to 
19465 \begin_inset Flex Code
19466 status collapsed
19467
19468 \begin_layout Plain Layout
19469 0
19470 \end_layout
19471
19472 \end_inset
19473
19474  if the float does not support this feature.
19475 \end_layout
19476
19477 \begin_layout Description
19478 \begin_inset Flex Code
19479 status collapsed
19480
19481 \begin_layout Plain Layout
19482 Extension
19483 \end_layout
19484
19485 \end_inset
19486
19487  [
19488 \begin_inset Flex Code
19489 status collapsed
19490
19491 \begin_layout Plain Layout
19492 string
19493 \end_layout
19494
19495 \end_inset
19496
19497 =
19498 \begin_inset Quotes erd
19499 \end_inset
19500
19501
19502 \begin_inset Quotes erd
19503 \end_inset
19504
19505 ] The file name extension of an auxiliary file for the list of figures (or whatever).
19506  \SpecialChar LaTeX
19507  writes the captions to this file.
19508 \end_layout
19509
19510 \begin_layout Description
19511 \begin_inset Flex Code
19512 status collapsed
19513
19514 \begin_layout Plain Layout
19515 GuiName
19516 \end_layout
19517
19518 \end_inset
19519
19520  [
19521 \begin_inset Flex Code
19522 status collapsed
19523
19524 \begin_layout Plain Layout
19525 string
19526 \end_layout
19527
19528 \end_inset
19529
19530 =
19531 \begin_inset Quotes erd
19532 \end_inset
19533
19534
19535 \begin_inset Quotes erd
19536 \end_inset
19537
19538 ] The string that will be used in the menus and also for the caption.
19539  This is translated to the current language if babel is used.
19540 \end_layout
19541
19542 \begin_layout Description
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547 HTML*
19548 \end_layout
19549
19550 \end_inset
19551
19552  These tags control the XHTML output.
19553  See 
19554 \begin_inset CommandInset ref
19555 LatexCommand ref
19556 reference "sec:Tags-for-XHTML"
19557 nolink "false"
19558
19559 \end_inset
19560
19561 .
19562 \end_layout
19563
19564 \begin_layout Description
19565 \begin_inset Flex Code
19566 status collapsed
19567
19568 \begin_layout Plain Layout
19569 IsPredefined
19570 \end_layout
19571
19572 \end_inset
19573
19574  [
19575 \emph on
19576
19577 \begin_inset Flex Code
19578 status collapsed
19579
19580 \begin_layout Plain Layout
19581 0
19582 \end_layout
19583
19584 \end_inset
19585
19586
19587 \emph default
19588 ,
19589 \begin_inset space \thinspace{}
19590 \end_inset
19591
19592
19593 \begin_inset Flex Code
19594 status collapsed
19595
19596 \begin_layout Plain Layout
19597 1
19598 \end_layout
19599
19600 \end_inset
19601
19602 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
19603  package 
19604 \begin_inset Flex Code
19605 status collapsed
19606
19607 \begin_layout Plain Layout
19608 float
19609 \end_layout
19610
19611 \end_inset
19612
19613  needs to be loaded to define it on-the-fly.
19614  The default is 
19615 \begin_inset Flex Code
19616 status collapsed
19617
19618 \begin_layout Plain Layout
19619 0
19620 \end_layout
19621
19622 \end_inset
19623
19624 ,
19625  which means:
19626  
19627 \begin_inset Flex Code
19628 status collapsed
19629
19630 \begin_layout Plain Layout
19631 float
19632 \end_layout
19633
19634 \end_inset
19635
19636  is used.
19637  It should be set to 
19638 \begin_inset Flex Code
19639 status collapsed
19640
19641 \begin_layout Plain Layout
19642 1
19643 \end_layout
19644
19645 \end_inset
19646
19647  if the float is already defined by the \SpecialChar LaTeX
19648  document class.
19649 \end_layout
19650
19651 \begin_layout Description
19652 \begin_inset Flex Code
19653 status collapsed
19654
19655 \begin_layout Plain Layout
19656 ListCommand
19657 \end_layout
19658
19659 \end_inset
19660
19661  [
19662 \begin_inset Flex Code
19663 status collapsed
19664
19665 \begin_layout Plain Layout
19666 string
19667 \end_layout
19668
19669 \end_inset
19670
19671 =
19672 \begin_inset Quotes erd
19673 \end_inset
19674
19675
19676 \begin_inset Quotes erd
19677 \end_inset
19678
19679 ] The command used to generate a list of floats of this type;
19680  the leading `
19681 \backslash
19682 ' must be omitted.
19683  This 
19684 \emph on
19685 must
19686 \emph default
19687  be given if 
19688 \begin_inset Flex Code
19689 status collapsed
19690
19691 \begin_layout Plain Layout
19692 UsesFloatPkg
19693 \end_layout
19694
19695 \end_inset
19696
19697  is false,
19698  since there is no standard way to generate this command.
19699  It is ignored if 
19700 \begin_inset Flex Code
19701 status collapsed
19702
19703 \begin_layout Plain Layout
19704 UsesFloatPkg
19705 \end_layout
19706
19707 \end_inset
19708
19709  is true,
19710  since in that case there is a standard way to define the command.
19711 \end_layout
19712
19713 \begin_layout Description
19714 \begin_inset Flex Code
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718 ListName
19719 \end_layout
19720
19721 \end_inset
19722
19723  [
19724 \begin_inset Flex Code
19725 status collapsed
19726
19727 \begin_layout Plain Layout
19728 string
19729 \end_layout
19730
19731 \end_inset
19732
19733 =
19734 \begin_inset Quotes erd
19735 \end_inset
19736
19737
19738 \begin_inset Quotes erd
19739 \end_inset
19740
19741 ] A title for a list of floats of this kind (list of figures,
19742  tables,
19743  or whatever).
19744  It is used for the screen label within \SpecialChar LyX
19745 ,
19746  it is used by \SpecialChar LaTeX
19747  for the title and it is used as the title in the XHTML output.
19748  It will be translated to the document language.
19749 \end_layout
19750
19751 \begin_layout Description
19752 \begin_inset Flex Code
19753 status collapsed
19754
19755 \begin_layout Plain Layout
19756 NumberWithin
19757 \end_layout
19758
19759 \end_inset
19760
19761  [
19762 \begin_inset Flex Code
19763 status collapsed
19764
19765 \begin_layout Plain Layout
19766 string
19767 \end_layout
19768
19769 \end_inset
19770
19771 =
19772 \begin_inset Quotes erd
19773 \end_inset
19774
19775
19776 \begin_inset Quotes erd
19777 \end_inset
19778
19779 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
19780  For example,
19781  if 
19782 \begin_inset Flex Code
19783 status collapsed
19784
19785 \begin_layout Plain Layout
19786 NumberWithin
19787 \end_layout
19788
19789 \end_inset
19790
19791  is set to 
19792 \begin_inset Quotes eld
19793 \end_inset
19794
19795
19796 \begin_inset Flex Code
19797 status collapsed
19798
19799 \begin_layout Plain Layout
19800 chapter
19801 \end_layout
19802
19803 \end_inset
19804
19805
19806 \begin_inset Quotes erd
19807 \end_inset
19808
19809 ,
19810  the floats will be numbered within chapters.
19811  
19812 \end_layout
19813
19814 \begin_layout Description
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 Placement
19820 \end_layout
19821
19822 \end_inset
19823
19824  [
19825 \begin_inset Flex Code
19826 status collapsed
19827
19828 \begin_layout Plain Layout
19829 string
19830 \end_layout
19831
19832 \end_inset
19833
19834 =
19835 \begin_inset Quotes erd
19836 \end_inset
19837
19838
19839 \begin_inset Quotes erd
19840 \end_inset
19841
19842 ] The default placement for the given class of floats.
19843  The string should be as in standard \SpecialChar LaTeX
19844 :
19845  
19846 \begin_inset Flex Code
19847 status collapsed
19848
19849 \begin_layout Plain Layout
19850 t
19851 \end_layout
19852
19853 \end_inset
19854
19855 ,
19856  
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 b
19862 \end_layout
19863
19864 \end_inset
19865
19866 ,
19867  
19868 \begin_inset Flex Code
19869 status collapsed
19870
19871 \begin_layout Plain Layout
19872 p
19873 \end_layout
19874
19875 \end_inset
19876
19877  and 
19878 \begin_inset Flex Code
19879 status collapsed
19880
19881 \begin_layout Plain Layout
19882 h
19883 \end_layout
19884
19885 \end_inset
19886
19887  for top,
19888  bottom,
19889  page,
19890  and here,
19891  respectively.
19892 \begin_inset Foot
19893 status collapsed
19894
19895 \begin_layout Plain Layout
19896 Note that the order of these letters in the string is irrelevant,
19897  like in \SpecialChar LaTeX
19898 .
19899 \end_layout
19900
19901 \end_inset
19902
19903  On top of that there is a new type,
19904  
19905 \begin_inset Flex Code
19906 status collapsed
19907
19908 \begin_layout Plain Layout
19909 H
19910 \end_layout
19911
19912 \end_inset
19913
19914 ,
19915  which does not really correspond to a float,
19916  since it means:
19917  put it 
19918 \begin_inset Quotes eld
19919 \end_inset
19920
19921 here
19922 \begin_inset Quotes erd
19923 \end_inset
19924
19925  and nowhere else.
19926  Note however that the 
19927 \begin_inset Flex Code
19928 status collapsed
19929
19930 \begin_layout Plain Layout
19931 H
19932 \end_layout
19933
19934 \end_inset
19935
19936  specifier is special and,
19937  because of implementation details,
19938  cannot be used in non-built in float types.
19939  If you do not understand what this means,
19940  just use 
19941 \begin_inset Quotes eld
19942 \end_inset
19943
19944
19945 \begin_inset Flex Code
19946 status collapsed
19947
19948 \begin_layout Plain Layout
19949 tbp
19950 \end_layout
19951
19952 \end_inset
19953
19954
19955 \begin_inset Quotes erd
19956 \end_inset
19957
19958 .
19959 \end_layout
19960
19961 \begin_layout Description
19962 \begin_inset Flex Code
19963 status collapsed
19964
19965 \begin_layout Plain Layout
19966 RefPrefix
19967 \end_layout
19968
19969 \end_inset
19970
19971  [
19972 \begin_inset Flex Code
19973 status collapsed
19974
19975 \begin_layout Plain Layout
19976 string
19977 \end_layout
19978
19979 \end_inset
19980
19981 ] The prefix to use when creating labels referring to floats of this type.
19982  This allows the use of formatted references.
19983  Note that you can remove any 
19984 \begin_inset Flex Code
19985 status collapsed
19986
19987 \begin_layout Plain Layout
19988 RefPrefix
19989 \end_layout
19990
19991 \end_inset
19992
19993  set by a copied style by using the special value 
19994 \begin_inset Quotes eld
19995 \end_inset
19996
19997 OFF
19998 \begin_inset Quotes erd
19999 \end_inset
20000
20001 ,
20002  which must be all caps.
20003 \change_inserted -712698321 1565605014
20004
20005 \end_layout
20006
20007 \begin_layout Description
20008
20009 \change_inserted -712698321 1565605014
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014
20015 \change_inserted -712698321 1565605014
20016 Requires
20017 \change_unchanged
20018
20019 \end_layout
20020
20021 \end_inset
20022
20023  [
20024 \begin_inset Flex Code
20025 status collapsed
20026
20027 \begin_layout Plain Layout
20028
20029 \change_inserted -712698321 1565605014
20030 string
20031 \change_unchanged
20032
20033 \end_layout
20034
20035 \end_inset
20036
20037 ] As with paragraph styles,
20038  see 
20039 \begin_inset CommandInset ref
20040 LatexCommand ref
20041 reference "subsec:Paragraph-Styles"
20042 nolink "false"
20043
20044 \end_inset
20045
20046 .
20047 \change_unchanged
20048
20049 \end_layout
20050
20051 \begin_layout Description
20052 \begin_inset Flex Code
20053 status collapsed
20054
20055 \begin_layout Plain Layout
20056 Style
20057 \end_layout
20058
20059 \end_inset
20060
20061  [
20062 \begin_inset Flex Code
20063 status collapsed
20064
20065 \begin_layout Plain Layout
20066 string
20067 \end_layout
20068
20069 \end_inset
20070
20071 =
20072 \begin_inset Quotes erd
20073 \end_inset
20074
20075
20076 \begin_inset Quotes erd
20077 \end_inset
20078
20079 ] The style used when defining the float using 
20080 \begin_inset Flex Code
20081 status collapsed
20082
20083 \begin_layout Plain Layout
20084
20085 \backslash
20086 newfloat
20087 \end_layout
20088
20089 \end_inset
20090
20091 .
20092 \end_layout
20093
20094 \begin_layout Description
20095 \begin_inset Flex Code
20096 status collapsed
20097
20098 \begin_layout Plain Layout
20099 Type
20100 \end_layout
20101
20102 \end_inset
20103
20104  [
20105 \begin_inset Flex Code
20106 status collapsed
20107
20108 \begin_layout Plain Layout
20109 string
20110 \end_layout
20111
20112 \end_inset
20113
20114 =
20115 \begin_inset Quotes erd
20116 \end_inset
20117
20118
20119 \begin_inset Quotes erd
20120 \end_inset
20121
20122 ] The 
20123 \begin_inset Quotes eld
20124 \end_inset
20125
20126 type
20127 \begin_inset Quotes erd
20128 \end_inset
20129
20130  of the new class of floats,
20131  like program or algorithm.
20132  After the appropriate 
20133 \begin_inset Flex Code
20134 status collapsed
20135
20136 \begin_layout Plain Layout
20137
20138 \backslash
20139 newfloat
20140 \end_layout
20141
20142 \end_inset
20143
20144 ,
20145  commands such as 
20146 \begin_inset Flex Code
20147 status collapsed
20148
20149 \begin_layout Plain Layout
20150
20151 \backslash
20152 begin{program}
20153 \end_layout
20154
20155 \end_inset
20156
20157  or 
20158 \begin_inset Flex Code
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162
20163 \backslash
20164 end{algorithm*}
20165 \end_layout
20166
20167 \end_inset
20168
20169  will be available.
20170 \end_layout
20171
20172 \begin_layout Description
20173 \begin_inset Flex Code
20174 status collapsed
20175
20176 \begin_layout Plain Layout
20177 UsesFloatPkg
20178 \end_layout
20179
20180 \end_inset
20181
20182  [
20183 \begin_inset Flex Code
20184 status collapsed
20185
20186 \begin_layout Plain Layout
20187 0
20188 \end_layout
20189
20190 \end_inset
20191
20192 ,
20193 \begin_inset space \thinspace{}
20194 \end_inset
20195
20196
20197 \begin_inset Flex Code
20198 status collapsed
20199
20200 \begin_layout Plain Layout
20201
20202 \emph on
20203 1
20204 \end_layout
20205
20206 \end_inset
20207
20208 ] Specifies whether this float is defined using the \SpecialChar LaTeX
20209  package 
20210 \begin_inset Flex Code
20211 status collapsed
20212
20213 \begin_layout Plain Layout
20214 float
20215 \end_layout
20216
20217 \end_inset
20218
20219 ,
20220  either by the class file,
20221  another package or on-the-fly by \SpecialChar LyX
20222  itself.
20223 \end_layout
20224
20225 \begin_layout Standard
20226 Note that defining a float with type 
20227 \begin_inset Flex Code
20228 status collapsed
20229
20230 \begin_layout Plain Layout
20231
20232 \emph on
20233 type
20234 \end_layout
20235
20236 \end_inset
20237
20238  automatically defines the corresponding counter with name 
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243
20244 \emph on
20245 type
20246 \end_layout
20247
20248 \end_inset
20249
20250 .
20251 \end_layout
20252
20253 \begin_layout Subsection
20254 Flex insets and InsetLayout
20255 \begin_inset CommandInset label
20256 LatexCommand label
20257 name "subsec:Flex-insets-and"
20258
20259 \end_inset
20260
20261
20262 \end_layout
20263
20264 \begin_layout Standard
20265 Flex insets come in 
20266 \change_deleted 5863208 1594239511
20267 three
20268 \change_inserted 5863208 1594239512
20269 two
20270 \change_unchanged
20271  different kinds:
20272  
20273 \end_layout
20274
20275 \begin_layout Itemize
20276 character style (
20277 \begin_inset Flex Code
20278 status collapsed
20279
20280 \begin_layout Plain Layout
20281 CharStyle
20282 \end_layout
20283
20284 \end_inset
20285
20286 ):
20287  These define semantic markup corresponding to such \SpecialChar LaTeX
20288  commands as 
20289 \begin_inset Flex Code
20290 status collapsed
20291
20292 \begin_layout Plain Layout
20293
20294 \backslash
20295 noun
20296 \end_layout
20297
20298 \end_inset
20299
20300  and 
20301 \begin_inset Flex Code
20302 status collapsed
20303
20304 \begin_layout Plain Layout
20305
20306 \backslash
20307 code
20308 \end_layout
20309
20310 \end_inset
20311
20312 .
20313 \end_layout
20314
20315 \begin_layout Itemize
20316 user custom (
20317 \begin_inset Flex Code
20318 status collapsed
20319
20320 \begin_layout Plain Layout
20321 Custom
20322 \end_layout
20323
20324 \end_inset
20325
20326 ):
20327  These can be used to define custom collapsible insets,
20328  similar to \SpecialChar TeX
20329  code,
20330  footnote,
20331  and the like.
20332  An obvious example is an endnote inset,
20333  which is defined in the 
20334 \begin_inset Flex Code
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 endnote
20339 \end_layout
20340
20341 \end_inset
20342
20343  module.
20344 \end_layout
20345
20346 \begin_layout Itemize
20347
20348 \change_deleted 5863208 1594239528
20349 XML elements (
20350 \begin_inset Flex Code
20351 status collapsed
20352
20353 \begin_layout Plain Layout
20354 Element
20355 \end_layout
20356
20357 \end_inset
20358
20359 ):
20360  For use with DocBook classes.
20361 \change_unchanged
20362
20363 \end_layout
20364
20365 \begin_layout Standard
20366 Flex insets are defined using the 
20367 \begin_inset Flex Code
20368 status collapsed
20369
20370 \begin_layout Plain Layout
20371 InsetLayout
20372 \end_layout
20373
20374 \end_inset
20375
20376  tag,
20377  which shall be explained in a moment.
20378 \end_layout
20379
20380 \begin_layout Standard
20381 The 
20382 \begin_inset Flex Code
20383 status collapsed
20384
20385 \begin_layout Plain Layout
20386 InsetLayout
20387 \end_layout
20388
20389 \end_inset
20390
20391  tag also serves another function:
20392  It can be used to customize the general layout of many different types of insets.
20393  Currently,
20394  
20395 \begin_inset Flex Code
20396 status collapsed
20397
20398 \begin_layout Plain Layout
20399 InsetLayout
20400 \end_layout
20401
20402 \end_inset
20403
20404  can be used to customize the layout parameters for footnotes,
20405  marginal notes,
20406  note insets,
20407  \SpecialChar TeX
20408  code (ERT) insets,
20409  branches,
20410  listings,
20411  indexes,
20412  boxes,
20413  tables,
20414  algorithms,
20415  URLs,
20416  and captions,
20417  as well as to define Flex insets.
20418 \end_layout
20419
20420 \begin_layout Standard
20421 The 
20422 \begin_inset Flex Code
20423 status collapsed
20424
20425 \begin_layout Plain Layout
20426 InsetLayout
20427 \end_layout
20428
20429 \end_inset
20430
20431  definition must begin with a line of the form:
20432 \end_layout
20433
20434 \begin_layout LyX-Code
20435 InsetLayout <type>
20436 \end_layout
20437
20438 \begin_layout Standard
20439 Here 
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444 <Type>
20445 \end_layout
20446
20447 \end_inset
20448
20449  indicates the inset whose layout is being defined,
20450  and here there are four cases.
20451 \end_layout
20452
20453 \begin_layout Enumerate
20454 The layout for a pre-existing inset is being modified.
20455  In this case,
20456  can be 
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461 <Type>
20462 \end_layout
20463
20464 \end_inset
20465
20466  any one of the following:
20467  
20468 \begin_inset Flex Code
20469 status collapsed
20470
20471 \begin_layout Plain Layout
20472 Algorithm
20473 \end_layout
20474
20475 \end_inset
20476
20477 ,
20478  
20479 \begin_inset Flex Code
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483 Branch
20484 \end_layout
20485
20486 \end_inset
20487
20488 ,
20489  
20490 \begin_inset Flex Code
20491 status collapsed
20492
20493 \begin_layout Plain Layout
20494 Box
20495 \end_layout
20496
20497 \end_inset
20498
20499 ,
20500  
20501 \begin_inset Flex Code
20502 status collapsed
20503
20504 \begin_layout Plain Layout
20505 Box:shaded
20506 \end_layout
20507
20508 \end_inset
20509
20510 ,
20511  
20512 \begin_inset Flex Code
20513 status collapsed
20514
20515 \begin_layout Plain Layout
20516 Caption:Standard
20517 \end_layout
20518
20519 \end_inset
20520
20521 ,
20522  
20523 \begin_inset Flex Code
20524 status collapsed
20525
20526 \begin_layout Plain Layout
20527 ERT
20528 \end_layout
20529
20530 \end_inset
20531
20532 ,
20533  
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538 Figure
20539 \end_layout
20540
20541 \end_inset
20542
20543 ,
20544  
20545 \begin_inset Flex Code
20546 status collapsed
20547
20548 \begin_layout Plain Layout
20549 Foot
20550 \end_layout
20551
20552 \end_inset
20553
20554 ,
20555  
20556 \begin_inset Flex Code
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560 Index
20561 \end_layout
20562
20563 \end_inset
20564
20565 ,
20566  
20567 \begin_inset Flex Code
20568 status collapsed
20569
20570 \begin_layout Plain Layout
20571 Info
20572 \end_layout
20573
20574 \end_inset
20575
20576 ,
20577  
20578 \begin_inset Flex Code
20579 status collapsed
20580
20581 \begin_layout Plain Layout
20582 Info:menu
20583 \end_layout
20584
20585 \end_inset
20586
20587 ,
20588  
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 Info:shortcut
20594 \end_layout
20595
20596 \end_inset
20597
20598 ,
20599  
20600 \begin_inset Flex Code
20601 status collapsed
20602
20603 \begin_layout Plain Layout
20604 Info:shortcuts
20605 \end_layout
20606
20607 \end_inset
20608
20609 ,
20610  
20611 \begin_inset Flex Code
20612 status collapsed
20613
20614 \begin_layout Plain Layout
20615 Listings
20616 \end_layout
20617
20618 \end_inset
20619
20620 ,
20621  
20622 \begin_inset Flex Code
20623 status collapsed
20624
20625 \begin_layout Plain Layout
20626 Marginal
20627 \end_layout
20628
20629 \end_inset
20630
20631 ,
20632  
20633 \begin_inset Flex Code
20634 status collapsed
20635
20636 \begin_layout Plain Layout
20637 Note:Comment
20638 \end_layout
20639
20640 \end_inset
20641
20642 ,
20643  
20644 \begin_inset Flex Code
20645 status collapsed
20646
20647 \begin_layout Plain Layout
20648 Note:Note
20649 \end_layout
20650
20651 \end_inset
20652
20653 ,
20654  
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659 Note:Greyedout
20660 \end_layout
20661
20662 \end_inset
20663
20664 ,
20665  
20666 \begin_inset Flex Code
20667 status collapsed
20668
20669 \begin_layout Plain Layout
20670 Table
20671 \end_layout
20672
20673 \end_inset
20674
20675 ,
20676  or 
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 URL
20682 \end_layout
20683
20684 \end_inset
20685
20686 .
20687 \end_layout
20688
20689 \begin_layout Enumerate
20690 The layout for a Flex inset is being defined.
20691  In this case,
20692  
20693 \begin_inset Flex Code
20694 status collapsed
20695
20696 \begin_layout Plain Layout
20697 <Type>
20698 \end_layout
20699
20700 \end_inset
20701
20702  must be of the form 
20703 \begin_inset Quotes eld
20704 \end_inset
20705
20706
20707 \begin_inset Flex Code
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711 Flex:<name>
20712 \end_layout
20713
20714 \end_inset
20715
20716
20717 \begin_inset Quotes erd
20718 \end_inset
20719
20720 ,
20721  where 
20722 \begin_inset Flex Code
20723 status collapsed
20724
20725 \begin_layout Plain Layout
20726 name
20727 \end_layout
20728
20729 \end_inset
20730
20731  may be any valid identifier not used by a pre-existing Flex inset.
20732  The identifier may include spaces,
20733  but in that case the whole thing must be wrapped in quotes.
20734  Note that the definition of a flex inset 
20735 \emph on
20736 must 
20737 \emph default
20738 also include a 
20739 \begin_inset Flex Code
20740 status collapsed
20741
20742 \begin_layout Plain Layout
20743 LyXType
20744 \end_layout
20745
20746 \end_inset
20747
20748  entry,
20749  declaring which type of inset it defines.
20750 \end_layout
20751
20752 \begin_layout Enumerate
20753 The layout for user specific branch is being defined.
20754  In this case,
20755  
20756 \begin_inset Flex Code
20757 status collapsed
20758
20759 \begin_layout Plain Layout
20760 <Type>
20761 \end_layout
20762
20763 \end_inset
20764
20765  must be of the form 
20766 \begin_inset Quotes eld
20767 \end_inset
20768
20769
20770 \begin_inset Flex Code
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774 Branch:<name>
20775 \end_layout
20776
20777 \end_inset
20778
20779
20780 \begin_inset Quotes erd
20781 \end_inset
20782
20783 ,
20784  where 
20785 \begin_inset Flex Code
20786 status collapsed
20787
20788 \begin_layout Plain Layout
20789 name
20790 \end_layout
20791
20792 \end_inset
20793
20794  may be any valid identifier of branch defined in user's document.
20795  The identifier may include spaces,
20796  but in that case the whole thing must be wrapped in quotes.
20797  The main purpose of this feature is to allow \SpecialChar LaTeX
20798  wrapping around specific branches as user needs.
20799 \end_layout
20800
20801 \begin_layout Enumerate
20802 The layout of a user (or class) specific caption is being defined.
20803  In this case,
20804  
20805 \begin_inset Flex Code
20806 status collapsed
20807
20808 \begin_layout Plain Layout
20809 <Type>
20810 \end_layout
20811
20812 \end_inset
20813
20814  must be of the form 
20815 \begin_inset Quotes eld
20816 \end_inset
20817
20818
20819 \begin_inset Flex Code
20820 status collapsed
20821
20822 \begin_layout Plain Layout
20823 Caption:<name>
20824 \end_layout
20825
20826 \end_inset
20827
20828
20829 \begin_inset Quotes erd
20830 \end_inset
20831
20832 ,
20833  where 
20834 \begin_inset Flex Code
20835 status collapsed
20836
20837 \begin_layout Plain Layout
20838 name
20839 \end_layout
20840
20841 \end_inset
20842
20843  specifies the name of the caption as it appears in the menu.
20844  Have a look at the standard caption (
20845 \begin_inset Flex Code
20846 status collapsed
20847
20848 \begin_layout Plain Layout
20849 Caption:Standard
20850 \end_layout
20851
20852 \end_inset
20853
20854 ),
20855  the specific captions of the KOMA-Script classes (
20856 \begin_inset Flex Code
20857 status collapsed
20858
20859 \begin_layout Plain Layout
20860 Caption:Above
20861 \end_layout
20862
20863 \end_inset
20864
20865 ,
20866  
20867 \begin_inset Flex Code
20868 status collapsed
20869
20870 \begin_layout Plain Layout
20871 Caption:Below
20872 \end_layout
20873
20874 \end_inset
20875
20876 ) or the module 
20877 \family sans
20878 Multilingual
20879 \begin_inset space ~
20880 \end_inset
20881
20882 Captions
20883 \begin_inset Newline linebreak
20884 \end_inset
20885
20886
20887 \family default
20888 (
20889 \begin_inset Flex Code
20890 status collapsed
20891
20892 \begin_layout Plain Layout
20893 Caption:Bicaption
20894 \end_layout
20895
20896 \end_inset
20897
20898 ) for applications.
20899 \end_layout
20900
20901 \begin_layout Standard
20902 The 
20903 \begin_inset Flex Code
20904 status collapsed
20905
20906 \begin_layout Plain Layout
20907 InsetLayout
20908 \end_layout
20909
20910 \end_inset
20911
20912  definition can contain the following entries:
20913 \end_layout
20914
20915 \begin_layout Description
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920 AddToToc
20921 \end_layout
20922
20923 \end_inset
20924
20925  [
20926 \begin_inset Flex Code
20927 status collapsed
20928
20929 \begin_layout Plain Layout
20930 string
20931 \end_layout
20932
20933 \end_inset
20934
20935 =""] This inset will appear in the table of contents of the given type.
20936  An empty string disables.
20937  See also the OutlinerName and the IsTocCaption commands.
20938  This is only implemented for Flex insets.
20939  Default:
20940  disabled.
20941 \end_layout
20942
20943 \begin_layout Description
20944 \begin_inset Flex Code
20945 status collapsed
20946
20947 \begin_layout Plain Layout
20948 Argument
20949 \end_layout
20950
20951 \end_inset
20952
20953  [
20954 \begin_inset Flex Code
20955 status collapsed
20956
20957 \begin_layout Plain Layout
20958 int
20959 \end_layout
20960
20961 \end_inset
20962
20963 ] Defines argument number of a command\SpecialChar breakableslash
20964 environment associated with the current layout.
20965  The definition must end with 
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 EndArgument
20971 \end_layout
20972
20973 \end_inset
20974
20975 .
20976  See 
20977 \change_inserted -584632292 1615846847
20978
20979 \begin_inset CommandInset ref
20980 LatexCommand ref
20981 reference "subsec:Arguments"
20982 plural "false"
20983 caps "false"
20984 noprefix "false"
20985 nolink "false"
20986
20987 \end_inset
20988
20989
20990 \change_deleted -584632292 1615846847
20991
20992 \begin_inset CommandInset ref
20993 LatexCommand ref
20994 reference "subsec:Paragraph-Styles"
20995 nolink "false"
20996
20997 \end_inset
20998
20999
21000 \change_unchanged
21001  for 
21002 \change_deleted -584632292 1615846902
21003 details
21004 \change_inserted -584632292 1615846906
21005 more information
21006 \change_unchanged
21007 .
21008 \end_layout
21009
21010 \begin_layout Description
21011 \begin_inset Flex Code
21012 status collapsed
21013
21014 \begin_layout Plain Layout
21015 BabelPreamble
21016 \end_layout
21017
21018 \end_inset
21019
21020  Preamble for changing language commands;
21021  see 
21022 \begin_inset CommandInset ref
21023 LatexCommand ref
21024 reference "subsec:I18n"
21025 nolink "false"
21026
21027 \end_inset
21028
21029 .
21030 \end_layout
21031
21032 \begin_layout Description
21033 \begin_inset Flex Code
21034 status collapsed
21035
21036 \begin_layout Plain Layout
21037 BgColor
21038 \end_layout
21039
21040 \end_inset
21041
21042  [
21043 \begin_inset Flex Code
21044 status collapsed
21045
21046 \begin_layout Plain Layout
21047 <name>
21048 \end_layout
21049
21050 \end_inset
21051
21052 ] The color for the inset's background.
21053  See 
21054 \begin_inset CommandInset ref
21055 LatexCommand ref
21056 reference "chap:Names-of-colors"
21057 nolink "false"
21058
21059 \end_inset
21060
21061  for a list of the available color names.
21062 \end_layout
21063
21064 \begin_layout Description
21065 \begin_inset Flex Code
21066 status collapsed
21067
21068 \begin_layout Plain Layout
21069 ContentAsLabel
21070 \end_layout
21071
21072 \end_inset
21073
21074  [
21075 \begin_inset Flex Code
21076 status collapsed
21077
21078 \begin_layout Plain Layout
21079
21080 \emph on
21081 0
21082 \end_layout
21083
21084 \end_inset
21085
21086 ,
21087 \begin_inset space \thinspace{}
21088 \end_inset
21089
21090
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 1
21096 \end_layout
21097
21098 \end_inset
21099
21100 ] Whether to use the content of the inset as the label,
21101  when the inset is closed.
21102  Default is false.
21103 \end_layout
21104
21105 \begin_layout Description
21106 \begin_inset Flex Code
21107 status collapsed
21108
21109 \begin_layout Plain Layout
21110 CopyStyle
21111 \end_layout
21112
21113 \end_inset
21114
21115  [
21116 \begin_inset Flex Code
21117 status collapsed
21118
21119 \begin_layout Plain Layout
21120 <type>
21121 \end_layout
21122
21123 \end_inset
21124
21125 ] As with paragraph styles,
21126  see 
21127 \begin_inset CommandInset ref
21128 LatexCommand ref
21129 reference "subsec:Paragraph-Styles"
21130 nolink "false"
21131
21132 \end_inset
21133
21134 .
21135  Note that you need to specify the complete type,
21136  e.
21137 \begin_inset space \thinspace{}
21138 \end_inset
21139
21140 g.
21141 \begin_inset space ~
21142 \end_inset
21143
21144
21145 \begin_inset Flex Code
21146 status collapsed
21147
21148 \begin_layout Plain Layout
21149 CopyStyle Flex:<name>
21150 \end_layout
21151
21152 \end_inset
21153
21154 .
21155 \end_layout
21156
21157 \begin_layout Description
21158 \begin_inset Flex Code
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162 CustomPars
21163 \end_layout
21164
21165 \end_inset
21166
21167  [
21168 \begin_inset Flex Code
21169 status collapsed
21170
21171 \begin_layout Plain Layout
21172
21173 \emph on
21174 0
21175 \end_layout
21176
21177 \end_inset
21178
21179 ,
21180 \begin_inset space \thinspace{}
21181 \end_inset
21182
21183
21184 \begin_inset Flex Code
21185 status collapsed
21186
21187 \begin_layout Plain Layout
21188 1
21189 \end_layout
21190
21191 \end_inset
21192
21193 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
21194 \end_layout
21195
21196 \begin_layout Description
21197 \begin_inset Flex Code
21198 status collapsed
21199
21200 \begin_layout Plain Layout
21201 Decoration
21202 \end_layout
21203
21204 \end_inset
21205
21206  can be 
21207 \begin_inset Flex Code
21208 status collapsed
21209
21210 \begin_layout Plain Layout
21211 Classic
21212 \end_layout
21213
21214 \end_inset
21215
21216 ,
21217  
21218 \begin_inset Flex Code
21219 status collapsed
21220
21221 \begin_layout Plain Layout
21222 Minimalistic
21223 \end_layout
21224
21225 \end_inset
21226
21227 ,
21228  or 
21229 \begin_inset Flex Code
21230 status collapsed
21231
21232 \begin_layout Plain Layout
21233 Conglomerate
21234 \end_layout
21235
21236 \end_inset
21237
21238 ,
21239  describing the rendering style used for the inset's frame and buttons.
21240  Footnotes generally use 
21241 \begin_inset Flex Code
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 Classic
21246 \end_layout
21247
21248 \end_inset
21249
21250 ,
21251  ERT insets generally 
21252 \begin_inset Flex Code
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256 Minimalistic
21257 \end_layout
21258
21259 \end_inset
21260
21261 ,
21262  and character styles 
21263 \begin_inset Flex Code
21264 status collapsed
21265
21266 \begin_layout Plain Layout
21267 Conglomerate
21268 \end_layout
21269
21270 \end_inset
21271
21272 .
21273 \end_layout
21274
21275 \begin_layout Description
21276 \begin_inset Flex Code
21277 status collapsed
21278
21279 \begin_layout Plain Layout
21280 Display
21281 \end_layout
21282
21283 \end_inset
21284
21285  [
21286 \begin_inset Flex Code
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290 0
21291 \end_layout
21292
21293 \end_inset
21294
21295 ,
21296 \emph on
21297
21298 \begin_inset space \thinspace{}
21299 \end_inset
21300
21301
21302 \emph default
21303
21304 \begin_inset Flex Code
21305 status collapsed
21306
21307 \begin_layout Plain Layout
21308
21309 \emph on
21310 1
21311 \end_layout
21312
21313 \end_inset
21314
21315 ] Only useful if 
21316 \begin_inset Flex Code
21317 status collapsed
21318
21319 \begin_layout Plain Layout
21320 LatexType
21321 \end_layout
21322
21323 \end_inset
21324
21325  is 
21326 \begin_inset Flex Code
21327 status collapsed
21328
21329 \begin_layout Plain Layout
21330 Environment
21331 \end_layout
21332
21333 \end_inset
21334
21335 .
21336  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
21337  If set to false,
21338  it is supposed that the \SpecialChar LaTeX
21339  environment ignores white space (including one newline character) after the 
21340 \begin_inset Flex Code
21341 status collapsed
21342
21343 \begin_layout Plain Layout
21344
21345 \backslash
21346 begin{
21347 \emph on
21348 LatexName
21349 \emph default
21350 }
21351 \end_layout
21352
21353 \end_inset
21354
21355  and 
21356 \begin_inset Flex Code
21357 status collapsed
21358
21359 \begin_layout Plain Layout
21360
21361 \backslash
21362 end{
21363 \emph on
21364 LatexName
21365 \emph default
21366 }
21367 \end_layout
21368
21369 \end_inset
21370
21371  tags.
21372  Default is true.
21373 \change_inserted 731793113 1538674858
21374
21375 \end_layout
21376
21377 \begin_layout Description
21378
21379 \change_inserted 731793113 1538674891
21380 \begin_inset Flex Code
21381 status open
21382
21383 \begin_layout Plain Layout
21384
21385 \change_inserted 731793113 1538674863
21386 EditExternal
21387 \change_unchanged
21388
21389 \end_layout
21390
21391 \end_inset
21392
21393  [
21394 \emph on
21395 0
21396 \emph default
21397 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
21398 \change_unchanged
21399
21400 \end_layout
21401
21402 \begin_layout Description
21403 \begin_inset Flex Code
21404 status collapsed
21405
21406 \begin_layout Plain Layout
21407 End
21408 \end_layout
21409
21410 \end_inset
21411
21412  Required at the end of the 
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417 InsetLayout
21418 \end_layout
21419
21420 \end_inset
21421
21422  declarations.
21423 \end_layout
21424
21425 \begin_layout Description
21426 \begin_inset Flex Code
21427 status collapsed
21428
21429 \begin_layout Plain Layout
21430 Font
21431 \end_layout
21432
21433 \end_inset
21434
21435  The font used for both the text body 
21436 \emph on
21437 and
21438 \emph default
21439  the label.
21440  See 
21441 \begin_inset CommandInset ref
21442 LatexCommand ref
21443 reference "subsec:Font-description"
21444 nolink "false"
21445
21446 \end_inset
21447
21448 .
21449  Note that defining this font automatically defines the 
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454 LabelFont
21455 \end_layout
21456
21457 \end_inset
21458
21459  to the same value,
21460  so define this first and define 
21461 \begin_inset Flex Code
21462 status collapsed
21463
21464 \begin_layout Plain Layout
21465 LabelFont
21466 \end_layout
21467
21468 \end_inset
21469
21470  later if you want them to be different.
21471 \end_layout
21472
21473 \begin_layout Description
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 FixedWidthPreambleEncoding
21479 \end_layout
21480
21481 \end_inset
21482
21483  [
21484 \begin_inset Flex Code
21485 status collapsed
21486
21487 \begin_layout Plain Layout
21488
21489 \emph on
21490 0
21491 \end_layout
21492
21493 \end_inset
21494
21495 ,
21496 \begin_inset space \thinspace{}
21497 \end_inset
21498
21499
21500 \begin_inset Flex Code
21501 status collapsed
21502
21503 \begin_layout Plain Layout
21504 1
21505 \end_layout
21506
21507 \end_inset
21508
21509 ] Force a fixed width encoding for the translated contents of 
21510 \begin_inset Flex Code
21511 status collapsed
21512
21513 \begin_layout Plain Layout
21514 BabelPreamble
21515 \end_layout
21516
21517 \end_inset
21518
21519  and 
21520 \begin_inset Flex Code
21521 status collapsed
21522
21523 \begin_layout Plain Layout
21524 LangPreamble
21525 \end_layout
21526
21527 \end_inset
21528
21529  code generated by this layout.
21530  This is needed for special \SpecialChar LaTeX
21531 -packages like 
21532 \family typewriter
21533 listings
21534 \family default
21535  that do not work with variable width encodings such as 
21536 \family sans
21537 utf8
21538 \family default
21539 .
21540  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
21541  backends such as Xe\SpecialChar TeX
21542  or Lua\SpecialChar TeX
21543  are used.
21544 \end_layout
21545
21546 \begin_layout Description
21547 \begin_inset Flex Code
21548 status collapsed
21549
21550 \begin_layout Plain Layout
21551 ForceLocalFontSwitch
21552 \end_layout
21553
21554 \end_inset
21555
21556  [
21557 \begin_inset Flex Code
21558 status collapsed
21559
21560 \begin_layout Plain Layout
21561
21562 \emph on
21563 0
21564 \end_layout
21565
21566 \end_inset
21567
21568 ,
21569 \begin_inset space \thinspace{}
21570 \end_inset
21571
21572
21573 \begin_inset Flex Code
21574 status collapsed
21575
21576 \begin_layout Plain Layout
21577 1
21578 \end_layout
21579
21580 \end_inset
21581
21582 ] When using babel,
21583  always use a local font switch (
21584 \begin_inset Flex Code
21585 status collapsed
21586
21587 \begin_layout Plain Layout
21588
21589 \backslash
21590 foreignlanguage
21591 \end_layout
21592
21593 \end_inset
21594
21595 ),
21596  never a global one (such as 
21597 \begin_inset Flex Code
21598 status collapsed
21599
21600 \begin_layout Plain Layout
21601
21602 \backslash
21603 selectlanguage
21604 \end_layout
21605
21606 \end_inset
21607
21608 ).
21609 \end_layout
21610
21611 \begin_layout Description
21612 \begin_inset Flex Code
21613 status collapsed
21614
21615 \begin_layout Plain Layout
21616 ForceLTR
21617 \end_layout
21618
21619 \end_inset
21620
21621  [
21622 \begin_inset Flex Code
21623 status collapsed
21624
21625 \begin_layout Plain Layout
21626
21627 \emph on
21628 0
21629 \end_layout
21630
21631 \end_inset
21632
21633 ,
21634 \begin_inset space \thinspace{}
21635 \end_inset
21636
21637
21638 \begin_inset Flex Code
21639 status collapsed
21640
21641 \begin_layout Plain Layout
21642 1
21643 \end_layout
21644
21645 \end_inset
21646
21647 ] Force the 
21648 \begin_inset Quotes eld
21649 \end_inset
21650
21651 latex
21652 \begin_inset Quotes erd
21653 \end_inset
21654
21655  language,
21656  leading to Left-to-Right (Latin) output,
21657  e.
21658 \begin_inset space \thinspace{}
21659 \end_inset
21660
21661 g.
21662 \begin_inset space \space{}
21663 \end_inset
21664
21665 in \SpecialChar TeX
21666  code or URL.
21667  A kludge.
21668 \end_layout
21669
21670 \begin_layout Description
21671 \begin_inset Flex Code
21672 status collapsed
21673
21674 \begin_layout Plain Layout
21675 ForceOwnlines
21676 \end_layout
21677
21678 \end_inset
21679
21680  [
21681 \begin_inset Flex Code
21682 status collapsed
21683
21684 \begin_layout Plain Layout
21685
21686 \emph on
21687 0
21688 \end_layout
21689
21690 \end_inset
21691
21692 ,
21693 \begin_inset space \thinspace{}
21694 \end_inset
21695
21696
21697 \begin_inset Flex Code
21698 status collapsed
21699
21700 \begin_layout Plain Layout
21701 1
21702 \end_layout
21703
21704 \end_inset
21705
21706 ] Force a line break in the \SpecialChar LaTeX
21707  output before the inset starts and after the inset ends.
21708  This assures the inset itself is output on its own lines,
21709  for parsing purposes.
21710 \end_layout
21711
21712 \begin_layout Description
21713 \begin_inset Flex Code
21714 status collapsed
21715
21716 \begin_layout Plain Layout
21717 ForcePlain
21718 \end_layout
21719
21720 \end_inset
21721
21722  [
21723 \begin_inset Flex Code
21724 status collapsed
21725
21726 \begin_layout Plain Layout
21727
21728 \emph on
21729 0
21730 \end_layout
21731
21732 \end_inset
21733
21734 ,
21735 \begin_inset space \thinspace{}
21736 \end_inset
21737
21738
21739 \begin_inset Flex Code
21740 status collapsed
21741
21742 \begin_layout Plain Layout
21743 1
21744 \end_layout
21745
21746 \end_inset
21747
21748 ] Indicates whether the 
21749 \begin_inset Flex Code
21750 status collapsed
21751
21752 \begin_layout Plain Layout
21753 PlainLayout
21754 \end_layout
21755
21756 \end_inset
21757
21758  should be used or,
21759  instead,
21760  the user can change the paragraph style used in the inset.
21761  Default is false.
21762 \end_layout
21763
21764 \begin_layout Description
21765 \begin_inset Flex Code
21766 status collapsed
21767
21768 \begin_layout Plain Layout
21769 FreeSpacing
21770 \end_layout
21771
21772 \end_inset
21773
21774  [
21775 \begin_inset Flex Code
21776 status collapsed
21777
21778 \begin_layout Plain Layout
21779
21780 \emph on
21781 0
21782 \end_layout
21783
21784 \end_inset
21785
21786 ,
21787 \begin_inset space \thinspace{}
21788 \end_inset
21789
21790
21791 \begin_inset Flex Code
21792 status collapsed
21793
21794 \begin_layout Plain Layout
21795 1
21796 \end_layout
21797
21798 \end_inset
21799
21800 ] As with paragraph styles,
21801  see 
21802 \begin_inset CommandInset ref
21803 LatexCommand ref
21804 reference "subsec:Paragraph-Styles"
21805 nolink "false"
21806
21807 \end_inset
21808
21809 .
21810 \end_layout
21811
21812 \begin_layout Description
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 HTML*
21818 \end_layout
21819
21820 \end_inset
21821
21822  These tags control the XHTML output.
21823  See 
21824 \begin_inset CommandInset ref
21825 LatexCommand ref
21826 reference "sec:Tags-for-XHTML"
21827 nolink "false"
21828
21829 \end_inset
21830
21831 .
21832 \end_layout
21833
21834 \begin_layout Description
21835 \begin_inset Flex Code
21836 status collapsed
21837
21838 \begin_layout Plain Layout
21839 InToc
21840 \end_layout
21841
21842 \end_inset
21843
21844  [
21845 \begin_inset Flex Code
21846 status collapsed
21847
21848 \begin_layout Plain Layout
21849
21850 \emph on
21851 0
21852 \end_layout
21853
21854 \end_inset
21855
21856 ,
21857 \begin_inset space \thinspace{}
21858 \end_inset
21859
21860
21861 \begin_inset Flex Code
21862 status collapsed
21863
21864 \begin_layout Plain Layout
21865 1
21866 \end_layout
21867
21868 \end_inset
21869
21870 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
21871  regardless of the AddToToc setting.
21872  One would not,
21873  for example,
21874  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
21875  but one would normally want the content of a character style displayed.
21876  Default is false:
21877  not to include.
21878 \end_layout
21879
21880 \begin_layout Description
21881 \begin_inset Flex Code
21882 status collapsed
21883
21884 \begin_layout Plain Layout
21885 IsTocCaption
21886 \end_layout
21887
21888 \end_inset
21889
21890  [
21891 \begin_inset Flex Code
21892 status collapsed
21893
21894 \begin_layout Plain Layout
21895
21896 \emph on
21897 0
21898 \end_layout
21899
21900 \end_inset
21901
21902 ,
21903 \begin_inset space \thinspace{}
21904 \end_inset
21905
21906
21907 \begin_inset Flex Code
21908 status collapsed
21909
21910 \begin_layout Plain Layout
21911 1
21912 \end_layout
21913
21914 \end_inset
21915
21916 ] If this is set to 1 and AddToToc is enabled,
21917  the inset adds a summary of its contents in its item in the table of contents.
21918  Otherwise,
21919  only the label appears.
21920 \end_layout
21921
21922 \begin_layout Description
21923 \begin_inset Flex Code
21924 status collapsed
21925
21926 \begin_layout Plain Layout
21927 KeepEmpty
21928 \end_layout
21929
21930 \end_inset
21931
21932  [
21933 \emph on
21934
21935 \begin_inset Flex Code
21936 status collapsed
21937
21938 \begin_layout Plain Layout
21939 0
21940 \end_layout
21941
21942 \end_inset
21943
21944
21945 \emph default
21946 ,
21947 \begin_inset space \thinspace{}
21948 \end_inset
21949
21950
21951 \begin_inset Flex Code
21952 status collapsed
21953
21954 \begin_layout Plain Layout
21955 1
21956 \end_layout
21957
21958 \end_inset
21959
21960 ] As with paragraph styles,
21961  see 
21962 \begin_inset CommandInset ref
21963 LatexCommand ref
21964 reference "subsec:Paragraph-Styles"
21965 nolink "false"
21966
21967 \end_inset
21968
21969 .
21970 \end_layout
21971
21972 \begin_layout Description
21973 \begin_inset Flex Code
21974 status collapsed
21975
21976 \begin_layout Plain Layout
21977 LabelFont
21978 \end_layout
21979
21980 \end_inset
21981
21982  The font used for the label.
21983  See 
21984 \begin_inset CommandInset ref
21985 LatexCommand ref
21986 reference "subsec:Font-description"
21987 nolink "false"
21988
21989 \end_inset
21990
21991 .
21992  Note that this definition can never appear before 
21993 \begin_inset Flex Code
21994 status collapsed
21995
21996 \begin_layout Plain Layout
21997 Font
21998 \end_layout
21999
22000 \end_inset
22001
22002 ,
22003  lest it be ineffective.
22004 \end_layout
22005
22006 \begin_layout Description
22007 \begin_inset Flex Code
22008 status collapsed
22009
22010 \begin_layout Plain Layout
22011 LabelString
22012 \end_layout
22013
22014 \end_inset
22015
22016  [
22017 \begin_inset Flex Code
22018 status collapsed
22019
22020 \begin_layout Plain Layout
22021 string
22022 \end_layout
22023
22024 \end_inset
22025
22026 =
22027 \begin_inset Quotes erd
22028 \end_inset
22029
22030
22031 \begin_inset Quotes erd
22032 \end_inset
22033
22034 ] What will be displayed on the button or elsewhere as the inset label.
22035  Some inset types (
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 \SpecialChar TeX
22041  code
22042 \end_layout
22043
22044 \end_inset
22045
22046  and 
22047 \begin_inset Flex Code
22048 status collapsed
22049
22050 \begin_layout Plain Layout
22051 Branch
22052 \end_layout
22053
22054 \end_inset
22055
22056 ) modify this label on the fly.
22057 \end_layout
22058
22059 \begin_layout Description
22060 \begin_inset Flex Code
22061 status collapsed
22062
22063 \begin_layout Plain Layout
22064 LangPreamble
22065 \end_layout
22066
22067 \end_inset
22068
22069  Language dependent preamble;
22070  see 
22071 \begin_inset CommandInset ref
22072 LatexCommand ref
22073 reference "subsec:I18n"
22074 nolink "false"
22075
22076 \end_inset
22077
22078 .
22079 \end_layout
22080
22081 \begin_layout Description
22082 \begin_inset Flex Code
22083 status collapsed
22084
22085 \begin_layout Plain Layout
22086 LatexName
22087 \end_layout
22088
22089 \end_inset
22090
22091  [
22092 \begin_inset Flex Code
22093 status collapsed
22094
22095 \begin_layout Plain Layout
22096 <name>
22097 \end_layout
22098
22099 \end_inset
22100
22101 ] The name of the corresponding \SpecialChar LaTeX
22102  stuff.
22103  Either the environment or command name.
22104 \end_layout
22105
22106 \begin_layout Description
22107 \begin_inset Flex Code
22108 status collapsed
22109
22110 \begin_layout Plain Layout
22111 LatexParam
22112 \end_layout
22113
22114 \end_inset
22115
22116  [
22117 \begin_inset Flex Code
22118 status collapsed
22119
22120 \begin_layout Plain Layout
22121 <parameter>
22122 \end_layout
22123
22124 \end_inset
22125
22126 ] The optional parameter for the corresponding 
22127 \begin_inset Flex Code
22128 status collapsed
22129
22130 \begin_layout Plain Layout
22131 LatexName
22132 \end_layout
22133
22134 \end_inset
22135
22136  stuff,
22137  including possible bracket pairs like 
22138 \begin_inset Flex Code
22139 status collapsed
22140
22141 \begin_layout Plain Layout
22142 []
22143 \end_layout
22144
22145 \end_inset
22146
22147 .
22148  This parameter cannot be changed from within \SpecialChar LyX
22149  (use 
22150 \begin_inset Flex Code
22151 status collapsed
22152
22153 \begin_layout Plain Layout
22154 Argument
22155 \end_layout
22156
22157 \end_inset
22158
22159  for customizable parameters).
22160  It will be output as is after all \SpecialChar LaTeX
22161  
22162 \begin_inset Flex Code
22163 status collapsed
22164
22165 \begin_layout Plain Layout
22166 Argument
22167 \end_layout
22168
22169 \end_inset
22170
22171 s.
22172 \end_layout
22173
22174 \begin_layout Description
22175 \begin_inset Flex Code
22176 status collapsed
22177
22178 \begin_layout Plain Layout
22179 LatexType
22180 \end_layout
22181
22182 \end_inset
22183
22184  [
22185 \begin_inset Flex Code
22186 status collapsed
22187
22188 \begin_layout Plain Layout
22189 Command,
22190  Environment,
22191  None
22192 \end_layout
22193
22194 \end_inset
22195
22196 ] How the style should be translated into \SpecialChar LaTeX
22197 .
22198 \begin_inset Foot
22199 status collapsed
22200
22201 \begin_layout Plain Layout
22202 \begin_inset Flex Code
22203 status collapsed
22204
22205 \begin_layout Plain Layout
22206 LatexType
22207 \end_layout
22208
22209 \end_inset
22210
22211  is perhaps a bit misleading,
22212  since these rules apply to SGML classes too.
22213  Visit the SGML class files for specific examples.
22214 \end_layout
22215
22216 \end_inset
22217
22218
22219 \end_layout
22220
22221 \begin_deeper
22222 \begin_layout Description
22223 \begin_inset Flex Code
22224 status collapsed
22225
22226 \begin_layout Plain Layout
22227 None
22228 \end_layout
22229
22230 \end_inset
22231
22232  means nothing special
22233 \end_layout
22234
22235 \begin_layout Description
22236 \begin_inset Flex Code
22237 status collapsed
22238
22239 \begin_layout Plain Layout
22240 Command
22241 \end_layout
22242
22243 \end_inset
22244
22245  means 
22246 \begin_inset Flex Code
22247 status collapsed
22248
22249 \begin_layout Plain Layout
22250
22251 \backslash
22252
22253 \emph on
22254 LatexName
22255 \emph default
22256 {\SpecialChar ldots
22257 }
22258 \end_layout
22259
22260 \end_inset
22261
22262
22263 \end_layout
22264
22265 \begin_layout Description
22266 \begin_inset Flex Code
22267 status collapsed
22268
22269 \begin_layout Plain Layout
22270 Environment
22271 \end_layout
22272
22273 \end_inset
22274
22275  means 
22276 \begin_inset Flex Code
22277 status collapsed
22278
22279 \begin_layout Plain Layout
22280
22281 \backslash
22282 begin{
22283 \emph on
22284 LatexName
22285 \emph default
22286 }\SpecialChar ldots
22287
22288 \backslash
22289 end{
22290 \emph on
22291 LatexName
22292 \emph default
22293 }
22294 \end_layout
22295
22296 \end_inset
22297
22298
22299 \end_layout
22300
22301 \begin_layout Standard
22302 Putting the last few things together,
22303  the \SpecialChar LaTeX
22304  output will be either:
22305  
22306 \end_layout
22307
22308 \begin_layout LyX-Code
22309
22310 \backslash
22311 LatexName[LatexParam]{\SpecialChar ldots
22312 }
22313 \end_layout
22314
22315 \begin_layout Standard
22316 or:
22317  
22318 \end_layout
22319
22320 \begin_layout LyX-Code
22321
22322 \backslash
22323 begin{LatexName}[LatexParam] \SpecialChar ldots
22324  
22325 \backslash
22326 end{LatexName}
22327 \end_layout
22328
22329 \begin_layout Standard
22330 depending upon the \SpecialChar LaTeX
22331  type.
22332 \end_layout
22333
22334 \end_deeper
22335 \begin_layout Description
22336 \begin_inset Flex Code
22337 status collapsed
22338
22339 \begin_layout Plain Layout
22340 LeftDelim
22341 \end_layout
22342
22343 \end_inset
22344
22345  [
22346 \begin_inset Flex Code
22347 status collapsed
22348
22349 \begin_layout Plain Layout
22350 string
22351 \end_layout
22352
22353 \end_inset
22354
22355 ] A string that is put at the beginning of the layout content.
22356  A line break in the output can be indicated by 
22357 \begin_inset Flex Code
22358 status collapsed
22359
22360 \begin_layout Plain Layout
22361 <br/>
22362 \end_layout
22363
22364 \end_inset
22365
22366 .
22367 \end_layout
22368
22369 \begin_layout Description
22370 \begin_inset Flex Code
22371 status collapsed
22372
22373 \begin_layout Plain Layout
22374 LyxType
22375 \end_layout
22376
22377 \end_inset
22378
22379  Can be 
22380 \begin_inset Flex Code
22381 status collapsed
22382
22383 \begin_layout Plain Layout
22384 charstyle
22385 \end_layout
22386
22387 \end_inset
22388
22389 ,
22390  
22391 \begin_inset Flex Code
22392 status collapsed
22393
22394 \begin_layout Plain Layout
22395 custom
22396 \end_layout
22397
22398 \end_inset
22399
22400 ,
22401  
22402 \change_deleted -584632292 1615846609
22403
22404 \begin_inset Flex Code
22405 status collapsed
22406
22407 \begin_layout Plain Layout
22408 element
22409 \end_layout
22410
22411 \end_inset
22412
22413  
22414 \change_unchanged
22415 or 
22416 \begin_inset Flex Code
22417 status collapsed
22418
22419 \begin_layout Plain Layout
22420 end
22421 \end_layout
22422
22423 \end_inset
22424
22425  (indicating a dummy definition ending definitions of charstyles,
22426  etc).
22427  This entry is required in and is only meaningful for Flex insets.
22428  Among other things,
22429  it determines on which menu this inset will appear.
22430  Setting 
22431 \begin_inset Flex Code
22432 status collapsed
22433
22434 \begin_layout Plain Layout
22435 LyxType
22436 \end_layout
22437
22438 \end_inset
22439
22440  to 
22441 \begin_inset Flex Code
22442 status collapsed
22443
22444 \begin_layout Plain Layout
22445 charstyle
22446 \end_layout
22447
22448 \end_inset
22449
22450  will automatically set 
22451 \begin_inset Flex Code
22452 status collapsed
22453
22454 \begin_layout Plain Layout
22455 MultiPar
22456 \end_layout
22457
22458 \end_inset
22459
22460  to false and 
22461 \begin_inset Flex Code
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465 ForcePlain
22466 \end_layout
22467
22468 \end_inset
22469
22470  to true.
22471  
22472 \begin_inset Flex Code
22473 status collapsed
22474
22475 \begin_layout Plain Layout
22476 MultiPar
22477 \end_layout
22478
22479 \end_inset
22480
22481  can be set to true,
22482  or 
22483 \begin_inset Flex Code
22484 status collapsed
22485
22486 \begin_layout Plain Layout
22487 ForcePlain
22488 \end_layout
22489
22490 \end_inset
22491
22492  to false,
22493  for 
22494 \begin_inset Flex Code
22495 status collapsed
22496
22497 \begin_layout Plain Layout
22498 charstyle
22499 \end_layout
22500
22501 \end_inset
22502
22503  insets by setting it 
22504 \emph on
22505 after
22506 \emph default
22507  you set the 
22508 \begin_inset Flex Code
22509 status collapsed
22510
22511 \begin_layout Plain Layout
22512 LyxType
22513 \end_layout
22514
22515 \end_inset
22516
22517 .
22518 \change_inserted -712698321 1555575738
22519
22520 \end_layout
22521
22522 \begin_layout Description
22523
22524 \change_inserted -712698321 1555575844
22525 \begin_inset Flex Code
22526 status collapsed
22527
22528 \begin_layout Plain Layout
22529
22530 \change_inserted -712698321 1555575740
22531 MenuString
22532 \change_unchanged
22533
22534 \end_layout
22535
22536 \end_inset
22537
22538  
22539 \begin_inset Flex Code
22540 status collapsed
22541
22542 \begin_layout Plain Layout
22543
22544 \change_inserted -712698321 1555575740
22545 [string]
22546 \change_unchanged
22547
22548 \end_layout
22549
22550 \end_inset
22551
22552  A dedicated string for the menu.
22553  You can define an accelerator by appending the respective character to the string,
22554  divided by 
22555 \begin_inset Quotes eld
22556 \end_inset
22557
22558 |
22559 \begin_inset Quotes erd
22560 \end_inset
22561
22562  (e.
22563 \begin_inset space \thinspace{}
22564 \end_inset
22565
22566 g.
22567 \begin_inset space \space{}
22568 \end_inset
22569
22570
22571 \begin_inset Quotes eld
22572 \end_inset
22573
22574
22575 \begin_inset Flex Code
22576 status collapsed
22577
22578 \begin_layout Plain Layout
22579
22580 \change_inserted -712698321 1555575781
22581 My Inset|M
22582 \change_unchanged
22583
22584 \end_layout
22585
22586 \end_inset
22587
22588
22589 \begin_inset Quotes erd
22590 \end_inset
22591
22592 ).
22593  This specification is optional.
22594  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
22595 \change_unchanged
22596
22597 \end_layout
22598
22599 \begin_layout Description
22600 \begin_inset Flex Code
22601 status collapsed
22602
22603 \begin_layout Plain Layout
22604 MultiPar
22605 \end_layout
22606
22607 \end_inset
22608
22609  [
22610 \begin_inset Flex Code
22611 status collapsed
22612
22613 \begin_layout Plain Layout
22614
22615 \emph on
22616 0
22617 \end_layout
22618
22619 \end_inset
22620
22621 ,
22622 \begin_inset space \thinspace{}
22623 \end_inset
22624
22625
22626 \begin_inset Flex Code
22627 status collapsed
22628
22629 \begin_layout Plain Layout
22630 1
22631 \end_layout
22632
22633 \end_inset
22634
22635 ] Whether multiple paragraphs are permitted in this inset.
22636  This will also set 
22637 \begin_inset Flex Code
22638 status collapsed
22639
22640 \begin_layout Plain Layout
22641 CustomPars
22642 \end_layout
22643
22644 \end_inset
22645
22646  to the same value and 
22647 \begin_inset Flex Code
22648 status collapsed
22649
22650 \begin_layout Plain Layout
22651 ForcePlain
22652 \end_layout
22653
22654 \end_inset
22655
22656  to the opposite value.
22657  These can be reset to other values,
22658  if they are used 
22659 \emph on
22660 after
22661 \emph default
22662  
22663 \begin_inset Flex Code
22664 status collapsed
22665
22666 \begin_layout Plain Layout
22667 MultiPar
22668 \end_layout
22669
22670 \end_inset
22671
22672 .
22673  Default is true.
22674 \end_layout
22675
22676 \begin_layout Description
22677 \begin_inset Flex Code
22678 status collapsed
22679
22680 \begin_layout Plain Layout
22681 NeedProtect
22682 \end_layout
22683
22684 \end_inset
22685
22686  [
22687 \begin_inset Flex Code
22688 status collapsed
22689
22690 \begin_layout Plain Layout
22691
22692 \emph on
22693 0
22694 \end_layout
22695
22696 \end_inset
22697
22698 ,
22699 \begin_inset space \thinspace{}
22700 \end_inset
22701
22702
22703 \begin_inset Flex Code
22704 status collapsed
22705
22706 \begin_layout Plain Layout
22707 1
22708 \end_layout
22709
22710 \end_inset
22711
22712 ] Whether fragile commands in this inset should be 
22713 \begin_inset Flex Code
22714 status collapsed
22715
22716 \begin_layout Plain Layout
22717
22718 \backslash
22719 protect
22720 \end_layout
22721
22722 \end_inset
22723
22724 'ed.
22725  (Note:
22726  This is 
22727 \emph on
22728 not
22729 \emph default
22730  whether the command should itself be protected.) Default is false.
22731 \change_inserted -712698321 1523633958
22732
22733 \end_layout
22734
22735 \begin_layout Description
22736
22737 \change_inserted -712698321 1552395786
22738 \begin_inset Flex Code
22739 status collapsed
22740
22741 \begin_layout Plain Layout
22742
22743 \change_inserted -712698321 1523633961
22744 NeedCProtect
22745 \change_unchanged
22746
22747 \end_layout
22748
22749 \end_inset
22750
22751  [
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756
22757 \change_inserted -712698321 1523633958
22758
22759 \emph on
22760 0
22761 \change_unchanged
22762
22763 \end_layout
22764
22765 \end_inset
22766
22767 ,
22768 \begin_inset space \thinspace{}
22769 \end_inset
22770
22771
22772 \begin_inset Flex Code
22773 status collapsed
22774
22775 \begin_layout Plain Layout
22776
22777 \change_inserted -712698321 1523633958
22778 1
22779 \change_unchanged
22780
22781 \end_layout
22782
22783 \end_inset
22784
22785 ] This causes macros that contain this inset to be protected with 
22786 \begin_inset Flex Code
22787 status collapsed
22788
22789 \begin_layout Plain Layout
22790
22791 \change_inserted -712698321 1523634038
22792
22793 \backslash
22794 cprotect
22795 \change_unchanged
22796
22797 \end_layout
22798
22799 \end_inset
22800
22801  (cf.
22802  package 
22803 \family sans
22804 cprotect
22805 \family default
22806 ) if necessary and thus allows (some) verbatim stuff in macros.
22807  Default is false.
22808 \end_layout
22809
22810 \begin_layout Description
22811
22812 \change_inserted -712698321 1555579651
22813 \begin_inset Flex Code
22814 status collapsed
22815
22816 \begin_layout Plain Layout
22817
22818 \change_inserted -712698321 1552395787
22819 NeedMBoxProtect
22820 \change_unchanged
22821
22822 \end_layout
22823
22824 \end_inset
22825
22826  [
22827 \begin_inset Flex Code
22828 status collapsed
22829
22830 \begin_layout Plain Layout
22831
22832 \change_inserted -712698321 1552395787
22833
22834 \emph on
22835 0
22836 \change_unchanged
22837
22838 \end_layout
22839
22840 \end_inset
22841
22842 ,
22843 \begin_inset space \thinspace{}
22844 \end_inset
22845
22846
22847 \begin_inset Flex Code
22848 status collapsed
22849
22850 \begin_layout Plain Layout
22851
22852 \change_inserted -712698321 1552395787
22853 1
22854 \change_unchanged
22855
22856 \end_layout
22857
22858 \end_inset
22859
22860 ] Whether specific commands in this inset (such as 
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865
22866 \change_inserted -712698321 1552395787
22867
22868 \backslash
22869 cite
22870 \change_unchanged
22871
22872 \end_layout
22873
22874 \end_inset
22875
22876  and 
22877 \begin_inset Flex Code
22878 status collapsed
22879
22880 \begin_layout Plain Layout
22881
22882 \change_inserted -712698321 1552395787
22883
22884 \backslash
22885 ref
22886 \change_unchanged
22887
22888 \end_layout
22889
22890 \end_inset
22891
22892 ) should be protected in an 
22893 \begin_inset Flex Code
22894 status collapsed
22895
22896 \begin_layout Plain Layout
22897
22898 \change_inserted -712698321 1552395787
22899
22900 \backslash
22901 mbox
22902 \change_unchanged
22903
22904 \end_layout
22905
22906 \end_inset
22907
22908 .
22909  This is particularly needed for insets that draw on 
22910 \family sans
22911 ulem
22912 \family default
22913  or 
22914 \family sans
22915 soul
22916 \family default
22917  commands which parse their content in complex ways.
22918  Default is false.
22919 \end_layout
22920
22921 \begin_layout Description
22922
22923 \change_inserted -712698321 1555579742
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928
22929 \change_inserted -712698321 1555579658
22930 NewlineCmd
22931 \change_unchanged
22932
22933 \end_layout
22934
22935 \end_inset
22936
22937  
22938 \begin_inset Flex Code
22939 status collapsed
22940
22941 \begin_layout Plain Layout
22942
22943 \change_inserted -712698321 1555579651
22944 [string]
22945 \change_unchanged
22946
22947 \end_layout
22948
22949 \end_inset
22950
22951  Option to define a different command (from the default 
22952 \begin_inset Flex Code
22953 status collapsed
22954
22955 \begin_layout Plain Layout
22956
22957 \change_inserted -712698321 1555579742
22958
22959 \backslash
22960
22961 \backslash
22962
22963 \change_unchanged
22964
22965 \end_layout
22966
22967 \end_inset
22968
22969 ) to be used for line breaks.
22970  The initial backslash must not be specified.
22971 \change_unchanged
22972
22973 \end_layout
22974
22975 \begin_layout Description
22976 \begin_inset Flex Code
22977 status collapsed
22978
22979 \begin_layout Plain Layout
22980 NoInsetLayout
22981 \end_layout
22982
22983 \end_inset
22984
22985  [
22986 \begin_inset Flex Code
22987 status collapsed
22988
22989 \begin_layout Plain Layout
22990 <layout>
22991 \end_layout
22992
22993 \end_inset
22994
22995 ] Deletes an existing 
22996 \begin_inset Flex Code
22997 status collapsed
22998
22999 \begin_layout Plain Layout
23000 InsetLayout
23001 \end_layout
23002
23003 \end_inset
23004
23005 .
23006 \end_layout
23007
23008 \begin_layout Description
23009 \begin_inset Flex Code
23010 status collapsed
23011
23012 \begin_layout Plain Layout
23013 ObsoletedBy
23014 \end_layout
23015
23016 \end_inset
23017
23018  [
23019 \begin_inset Flex Code
23020 status collapsed
23021
23022 \begin_layout Plain Layout
23023 <layout>
23024 \end_layout
23025
23026 \end_inset
23027
23028 ] Name of an 
23029 \begin_inset Flex Code
23030 status collapsed
23031
23032 \begin_layout Plain Layout
23033 InsetLayout
23034 \end_layout
23035
23036 \end_inset
23037
23038  that has replaced this 
23039 \begin_inset Flex Code
23040 status collapsed
23041
23042 \begin_layout Plain Layout
23043 InsetLayout
23044 \end_layout
23045
23046 \end_inset
23047
23048 .
23049  This is used to rename an 
23050 \begin_inset Flex Code
23051 status collapsed
23052
23053 \begin_layout Plain Layout
23054 InsetLayout
23055 \end_layout
23056
23057 \end_inset
23058
23059 ,
23060  while keeping backward compatibility.
23061 \change_inserted -712698321 1559491850
23062
23063 \end_layout
23064
23065 \begin_layout Description
23066
23067 \change_inserted -712698321 1559492002
23068 \begin_inset Flex Code
23069 status collapsed
23070
23071 \begin_layout Plain Layout
23072
23073 \change_inserted -712698321 1559491854
23074 ParbreakIgnored
23075 \change_unchanged
23076
23077 \end_layout
23078
23079 \end_inset
23080
23081  [
23082 \begin_inset Flex Code
23083 status collapsed
23084
23085 \begin_layout Plain Layout
23086
23087 \change_inserted -712698321 1559491850
23088
23089 \emph on
23090 0
23091 \change_unchanged
23092
23093 \end_layout
23094
23095 \end_inset
23096
23097 ,
23098 \begin_inset space \thinspace{}
23099 \end_inset
23100
23101
23102 \begin_inset Flex Code
23103 status collapsed
23104
23105 \begin_layout Plain Layout
23106
23107 \change_inserted -712698321 1559491850
23108 1
23109 \change_unchanged
23110
23111 \end_layout
23112
23113 \end_inset
23114
23115 ] If this is set to 
23116 \begin_inset Flex Code
23117 status collapsed
23118
23119 \begin_layout Plain Layout
23120
23121 \change_inserted -712698321 1559491881
23122 1
23123 \change_unchanged
23124
23125 \end_layout
23126
23127 \end_inset
23128
23129 ,
23130  paragraph breaks will be ignored in the output.
23131  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
23132  workarea,
23133  without any effect in the output.
23134 \change_unchanged
23135
23136 \end_layout
23137
23138 \begin_layout Description
23139 \begin_inset Flex Code
23140 status collapsed
23141
23142 \begin_layout Plain Layout
23143 ParbreakIsNewline
23144 \end_layout
23145
23146 \end_inset
23147
23148  [
23149 \begin_inset Flex Code
23150 status collapsed
23151
23152 \begin_layout Plain Layout
23153
23154 \emph on
23155 0
23156 \end_layout
23157
23158 \end_inset
23159
23160 ,
23161 \begin_inset space \thinspace{}
23162 \end_inset
23163
23164
23165 \begin_inset Flex Code
23166 status collapsed
23167
23168 \begin_layout Plain Layout
23169 1
23170 \end_layout
23171
23172 \end_inset
23173
23174 ] As with paragraph styles,
23175  see 
23176 \begin_inset CommandInset ref
23177 LatexCommand ref
23178 reference "subsec:Paragraph-Styles"
23179 nolink "false"
23180
23181 \end_inset
23182
23183 .
23184  Default is false.
23185 \end_layout
23186
23187 \begin_layout Description
23188 \begin_inset Flex Code
23189 status collapsed
23190
23191 \begin_layout Plain Layout
23192 PassThru
23193 \end_layout
23194
23195 \end_inset
23196
23197  [
23198 \begin_inset Flex Code
23199 status collapsed
23200
23201 \begin_layout Plain Layout
23202
23203 \emph on
23204 0
23205 \end_layout
23206
23207 \end_inset
23208
23209 ,
23210 \begin_inset space \thinspace{}
23211 \end_inset
23212
23213
23214 \begin_inset Flex Code
23215 status collapsed
23216
23217 \begin_layout Plain Layout
23218 1
23219 \end_layout
23220
23221 \end_inset
23222
23223 ] As with paragraph styles,
23224  see 
23225 \begin_inset CommandInset ref
23226 LatexCommand ref
23227 reference "subsec:Paragraph-Styles"
23228 nolink "false"
23229
23230 \end_inset
23231
23232 .
23233  Default is false.
23234 \end_layout
23235
23236 \begin_layout Description
23237 \begin_inset Flex Code
23238 status collapsed
23239
23240 \begin_layout Plain Layout
23241 Preamble
23242 \end_layout
23243
23244 \end_inset
23245
23246  As with paragraph styles,
23247  see 
23248 \begin_inset CommandInset ref
23249 LatexCommand ref
23250 reference "subsec:Paragraph-Styles"
23251 nolink "false"
23252
23253 \end_inset
23254
23255 .
23256 \end_layout
23257
23258 \begin_layout Description
23259 \begin_inset Flex Code
23260 status collapsed
23261
23262 \begin_layout Plain Layout
23263 RefPrefix
23264 \end_layout
23265
23266 \end_inset
23267
23268  [
23269 \begin_inset Flex Code
23270 status collapsed
23271
23272 \begin_layout Plain Layout
23273 string
23274 \end_layout
23275
23276 \end_inset
23277
23278 ] The prefix to use when creating labels referring to insets of this type.
23279  This allows the use of formatted references.
23280 \end_layout
23281
23282 \begin_layout Description
23283 \begin_inset Flex Code
23284 status collapsed
23285
23286 \begin_layout Plain Layout
23287 Requires
23288 \end_layout
23289
23290 \end_inset
23291
23292  [
23293 \begin_inset Flex Code
23294 status collapsed
23295
23296 \begin_layout Plain Layout
23297 string
23298 \end_layout
23299
23300 \end_inset
23301
23302 ] As with paragraph styles,
23303  see 
23304 \begin_inset CommandInset ref
23305 LatexCommand ref
23306 reference "subsec:Paragraph-Styles"
23307 nolink "false"
23308
23309 \end_inset
23310
23311 .
23312 \end_layout
23313
23314 \begin_layout Description
23315 \begin_inset Flex Code
23316 status collapsed
23317
23318 \begin_layout Plain Layout
23319 ResetArgs
23320 \end_layout
23321
23322 \end_inset
23323
23324  [
23325 \begin_inset Flex Code
23326 status collapsed
23327
23328 \begin_layout Plain Layout
23329
23330 \emph on
23331 0
23332 \end_layout
23333
23334 \end_inset
23335
23336 ,
23337 \begin_inset space \thinspace{}
23338 \end_inset
23339
23340
23341 \begin_inset Flex Code
23342 status collapsed
23343
23344 \begin_layout Plain Layout
23345 1
23346 \end_layout
23347
23348 \end_inset
23349
23350 ] Resets the \SpecialChar LaTeX
23351  arguments of this layout (as defined via the 
23352 \begin_inset Flex Code
23353 status collapsed
23354
23355 \begin_layout Plain Layout
23356 Argument
23357 \end_layout
23358
23359 \end_inset
23360
23361  tag).
23362  This is useful if you have copied a style via 
23363 \begin_inset Flex Code
23364 status collapsed
23365
23366 \begin_layout Plain Layout
23367 CopyStyle
23368 \end_layout
23369
23370 \end_inset
23371
23372 ,
23373  but you do not want to inherit its (required and optional) arguments.
23374 \end_layout
23375
23376 \begin_layout Description
23377 \begin_inset Flex Code
23378 status collapsed
23379
23380 \begin_layout Plain Layout
23381 ResetsFont
23382 \end_layout
23383
23384 \end_inset
23385
23386  [
23387 \begin_inset Flex Code
23388 status collapsed
23389
23390 \begin_layout Plain Layout
23391
23392 \emph on
23393 0
23394 \end_layout
23395
23396 \end_inset
23397
23398 ,
23399 \begin_inset space \thinspace{}
23400 \end_inset
23401
23402
23403 \begin_inset Flex Code
23404 status collapsed
23405
23406 \begin_layout Plain Layout
23407 1
23408 \end_layout
23409
23410 \end_inset
23411
23412
23413 \change_inserted -712698321 1597733473
23414 If 
23415 \begin_inset Flex Code
23416 status collapsed
23417
23418 \begin_layout Plain Layout
23419
23420 \change_inserted -712698321 1597732178
23421 1
23422 \change_unchanged
23423
23424 \end_layout
23425
23426 \end_inset
23427
23428 ,
23429  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.
23430 \begin_inset space \thinspace{}
23431 \end_inset
23432
23433 g.,
23434  
23435 \begin_inset Flex Code
23436 status collapsed
23437
23438 \begin_layout Plain Layout
23439
23440 \change_inserted -712698321 1597733683
23441
23442 \backslash
23443 textbf{Sourrounding text 
23444 \backslash
23445 myinset{
23446 \backslash
23447 textbf{content}}\SpecialChar ldots
23448 }
23449 \change_unchanged
23450
23451 \end_layout
23452
23453 \end_inset
23454
23455  rather than 
23456 \begin_inset Flex Code
23457 status collapsed
23458
23459 \begin_layout Plain Layout
23460
23461 \change_inserted -712698321 1597733686
23462
23463 \backslash
23464 textbf{Sourrounding text 
23465 \backslash
23466 myinset{content}\SpecialChar ldots
23467 }
23468 \change_unchanged
23469
23470 \end_layout
23471
23472 \end_inset
23473
23474 .
23475  Setting this makes sense for commands that internally reset font settings (e.
23476 \begin_inset space \thinspace{}
23477 \end_inset
23478
23479 g.,
23480  footnotes).
23481  Note that wrongly setting this might lead to unwanted result (e.
23482 \begin_inset space \thinspace{}
23483 \end_inset
23484
23485 g.,
23486  with 
23487 \begin_inset Flex Code
23488 status collapsed
23489
23490 \begin_layout Plain Layout
23491
23492 \change_inserted -712698321 1597733688
23493
23494 \backslash
23495 emph{Sourrounding text 
23496 \backslash
23497 myinset{
23498 \backslash
23499 emph{content}}\SpecialChar ldots
23500 }
23501 \change_unchanged
23502
23503 \end_layout
23504
23505 \end_inset
23506
23507 ,
23508  content is upright,
23509  as 
23510 \begin_inset Flex Code
23511 status collapsed
23512
23513 \begin_layout Plain Layout
23514
23515 \change_inserted -712698321 1597733278
23516
23517 \backslash
23518 emph
23519 \change_unchanged
23520
23521 \end_layout
23522
23523 \end_inset
23524
23525  toggles.
23526  
23527 \change_deleted -712698321 1597733283
23528 Whether this inset should use the font of its surrounding environment or uses its own.
23529  
23530 \change_unchanged
23531 Default is 
23532 \change_deleted -712698321 1597733290
23533 false
23534 \change_inserted -712698321 1597733290
23535
23536 \begin_inset Flex Code
23537 status collapsed
23538
23539 \begin_layout Plain Layout
23540
23541 \change_inserted -712698321 1597733292
23542 0
23543 \change_unchanged
23544
23545 \end_layout
23546
23547 \end_inset
23548
23549
23550 \change_unchanged
23551 :
23552  
23553 \change_deleted -712698321 1597733327
23554 use the font of the surrounding environment
23555 \change_inserted -712698321 1597733343
23556 font changes are not redone inside the inset
23557 \change_unchanged
23558 .
23559 \end_layout
23560
23561 \begin_layout Description
23562 \begin_inset Flex Code
23563 status collapsed
23564
23565 \begin_layout Plain Layout
23566 RightDelim
23567 \end_layout
23568
23569 \end_inset
23570
23571  [
23572 \begin_inset Flex Code
23573 status collapsed
23574
23575 \begin_layout Plain Layout
23576 string
23577 \end_layout
23578
23579 \end_inset
23580
23581 ] A string that is put at the end of the layout content.
23582  A line break in the output can be indicated by 
23583 \begin_inset Flex Code
23584 status collapsed
23585
23586 \begin_layout Plain Layout
23587 <br/>
23588 \end_layout
23589
23590 \end_inset
23591
23592 .
23593 \end_layout
23594
23595 \begin_layout Description
23596 \begin_inset Flex Code
23597 status collapsed
23598
23599 \begin_layout Plain Layout
23600 Spellcheck
23601 \end_layout
23602
23603 \end_inset
23604
23605  [
23606 \begin_inset Flex Code
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 0
23611 \end_layout
23612
23613 \end_inset
23614
23615 ,
23616 \begin_inset space \thinspace{}
23617 \end_inset
23618
23619
23620 \begin_inset Flex Code
23621 status collapsed
23622
23623 \begin_layout Plain Layout
23624
23625 \emph on
23626 1
23627 \end_layout
23628
23629 \end_inset
23630
23631 ] Allow spell-checking the contents of this inset.
23632  Default is true.
23633 \change_inserted -584632292 1615846659
23634
23635 \end_layout
23636
23637 \begin_layout Subsection
23638
23639 \change_inserted -584632292 1615846729
23640 Arguments
23641 \begin_inset CommandInset label
23642 LatexCommand label
23643 name "subsec:Arguments"
23644
23645 \end_inset
23646
23647
23648 \end_layout
23649
23650 \begin_layout Standard
23651
23652 \change_inserted -584632292 1615846807
23653 Both paragraph styles and inset layouts allow for 
23654 \emph on
23655 arguments
23656 \emph default
23657  as well as the main content.
23658  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
23659 .
23660  Each (optional or required) argument of a command or environment—
23661 except for the required argument that is associated with the content—
23662 has a separate definition,
23663  where the number specifies the order of the arguments.
23664  The definition must end with 
23665 \begin_inset Flex Code
23666 status collapsed
23667
23668 \begin_layout Plain Layout
23669
23670 \change_inserted -584632292 1615846730
23671 EndArgument
23672 \change_unchanged
23673
23674 \end_layout
23675
23676 \end_inset
23677
23678 .
23679  So a command with two optional arguments looks like:
23680 \end_layout
23681
23682 \begin_layout Quote
23683
23684 \change_inserted -584632292 1615846730
23685
23686 \family typewriter
23687 Argument 1
23688 \end_layout
23689
23690 \begin_layout Quote
23691
23692 \change_inserted -584632292 1615846730
23693
23694 \family typewriter
23695 ...
23696 \end_layout
23697
23698 \begin_layout Quote
23699
23700 \change_inserted -584632292 1615846730
23701
23702 \family typewriter
23703 EndArgument
23704 \end_layout
23705
23706 \begin_layout Quote
23707
23708 \change_inserted -584632292 1615846730
23709
23710 \family typewriter
23711 Argument 2
23712 \end_layout
23713
23714 \begin_layout Quote
23715
23716 \change_inserted -584632292 1615846730
23717
23718 \family typewriter
23719 ...
23720 \end_layout
23721
23722 \begin_layout Quote
23723
23724 \change_inserted -584632292 1615846730
23725
23726 \family typewriter
23727 EndArgument
23728 \end_layout
23729
23730 \begin_layout Standard
23731
23732 \change_inserted -584632292 1615846730
23733 Inside the 
23734 \begin_inset Flex Code
23735 status collapsed
23736
23737 \begin_layout Plain Layout
23738
23739 \change_inserted -584632292 1615846730
23740 Argument
23741 \change_unchanged
23742
23743 \end_layout
23744
23745 \end_inset
23746
23747  definition,
23748  the following specifications are possible:
23749 \end_layout
23750
23751 \begin_layout Itemize
23752
23753 \change_inserted -584632292 1615846730
23754 \begin_inset Flex Code
23755 status collapsed
23756
23757 \begin_layout Plain Layout
23758
23759 \change_inserted -584632292 1615846730
23760 LabelString
23761 \change_unchanged
23762
23763 \end_layout
23764
23765 \end_inset
23766
23767  
23768 \begin_inset Flex Code
23769 status collapsed
23770
23771 \begin_layout Plain Layout
23772
23773 \change_inserted -584632292 1615846730
23774 [string]
23775 \change_unchanged
23776
23777 \end_layout
23778
23779 \end_inset
23780
23781  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 
23782 \begin_inset Flex Code
23783 status collapsed
23784
23785 \begin_layout Plain Layout
23786
23787 \change_inserted -584632292 1615846730
23788 MenuString
23789 \change_unchanged
23790
23791 \end_layout
23792
23793 \end_inset
23794
23795 ).
23796  For the menu,
23797  you can define an accelerator by appending the respective character to the string,
23798  divided by 
23799 \begin_inset Quotes eld
23800 \end_inset
23801
23802 |
23803 \begin_inset Quotes erd
23804 \end_inset
23805
23806  (e.
23807 \begin_inset space \thinspace{}
23808 \end_inset
23809
23810 g.
23811 \begin_inset space \space{}
23812 \end_inset
23813
23814
23815 \begin_inset Quotes eld
23816 \end_inset
23817
23818
23819 \begin_inset Flex Code
23820 status collapsed
23821
23822 \begin_layout Plain Layout
23823
23824 \change_inserted -584632292 1615846730
23825 Short Title|S
23826 \change_unchanged
23827
23828 \end_layout
23829
23830 \end_inset
23831
23832
23833 \begin_inset Quotes erd
23834 \end_inset
23835
23836 ).
23837 \end_layout
23838
23839 \begin_layout Itemize
23840
23841 \change_inserted -584632292 1615846730
23842 \begin_inset Flex Code
23843 status collapsed
23844
23845 \begin_layout Plain Layout
23846
23847 \change_inserted -584632292 1615846730
23848 MenuString
23849 \change_unchanged
23850
23851 \end_layout
23852
23853 \end_inset
23854
23855  
23856 \begin_inset Flex Code
23857 status collapsed
23858
23859 \begin_layout Plain Layout
23860
23861 \change_inserted -584632292 1615846730
23862 [string]
23863 \change_unchanged
23864
23865 \end_layout
23866
23867 \end_inset
23868
23869  A separate string for the menu.
23870  You can define an accelerator by appending the respective character to the string,
23871  divided by 
23872 \begin_inset Quotes eld
23873 \end_inset
23874
23875 |
23876 \begin_inset Quotes erd
23877 \end_inset
23878
23879  (e.
23880 \begin_inset space \thinspace{}
23881 \end_inset
23882
23883 g.
23884 \begin_inset space \space{}
23885 \end_inset
23886
23887
23888 \begin_inset Quotes eld
23889 \end_inset
23890
23891
23892 \begin_inset Flex Code
23893 status collapsed
23894
23895 \begin_layout Plain Layout
23896
23897 \change_inserted -584632292 1615846730
23898 Short Title|S
23899 \change_unchanged
23900
23901 \end_layout
23902
23903 \end_inset
23904
23905
23906 \begin_inset Quotes erd
23907 \end_inset
23908
23909 ).
23910  This specification is optional.
23911  If it is not given the 
23912 \begin_inset Flex Code
23913 status collapsed
23914
23915 \begin_layout Plain Layout
23916
23917 \change_inserted -584632292 1615846730
23918 LabelString
23919 \change_unchanged
23920
23921 \end_layout
23922
23923 \end_inset
23924
23925  will be used instead for the menu.
23926 \end_layout
23927
23928 \begin_layout Itemize
23929
23930 \change_inserted -584632292 1615846730
23931 \begin_inset Flex Code
23932 status collapsed
23933
23934 \begin_layout Plain Layout
23935
23936 \change_inserted -584632292 1615846730
23937 Tooltip
23938 \change_unchanged
23939
23940 \end_layout
23941
23942 \end_inset
23943
23944  
23945 \begin_inset Flex Code
23946 status collapsed
23947
23948 \begin_layout Plain Layout
23949
23950 \change_inserted -584632292 1615846730
23951 [string]
23952 \change_unchanged
23953
23954 \end_layout
23955
23956 \end_inset
23957
23958  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
23959 \end_layout
23960
23961 \begin_layout Itemize
23962
23963 \change_inserted -584632292 1615846730
23964 \begin_inset Flex Code
23965 status collapsed
23966
23967 \begin_layout Plain Layout
23968
23969 \change_inserted -584632292 1615846730
23970 Mandatory
23971 \change_unchanged
23972
23973 \end_layout
23974
23975 \end_inset
23976
23977  [
23978 \begin_inset Flex Code
23979 status collapsed
23980
23981 \begin_layout Plain Layout
23982
23983 \change_inserted -584632292 1615846730
23984
23985 \emph on
23986 0
23987 \change_unchanged
23988
23989 \end_layout
23990
23991 \end_inset
23992
23993 ,
23994 \begin_inset space \thinspace{}
23995 \end_inset
23996
23997
23998 \begin_inset Flex Code
23999 status collapsed
24000
24001 \begin_layout Plain Layout
24002
24003 \change_inserted -584632292 1615846730
24004 1
24005 \change_unchanged
24006
24007 \end_layout
24008
24009 \end_inset
24010
24011 ] Declare if this is a mandatory (1) or an optional (0) argument.
24012  Mandatory arguments will be output empty if not given,
24013  while optional arguments will not be output at all.
24014  By default,
24015  mandatory arguments are delimited by 
24016 \begin_inset Flex Code
24017 status collapsed
24018
24019 \begin_layout Plain Layout
24020
24021 \change_inserted -584632292 1615846730
24022 {...}
24023 \change_unchanged
24024
24025 \end_layout
24026
24027 \end_inset
24028
24029 ,
24030  while optional arguments are delimited by 
24031 \begin_inset Flex Code
24032 status collapsed
24033
24034 \begin_layout Plain Layout
24035
24036 \change_inserted -584632292 1615846730
24037 [...]
24038 \change_unchanged
24039
24040 \end_layout
24041
24042 \end_inset
24043
24044
24045 \end_layout
24046
24047 \begin_layout Itemize
24048
24049 \change_inserted -584632292 1615846730
24050 \begin_inset Flex Code
24051 status collapsed
24052
24053 \begin_layout Plain Layout
24054
24055 \change_inserted -584632292 1615846730
24056 NewlineCmd
24057 \change_unchanged
24058
24059 \end_layout
24060
24061 \end_inset
24062
24063  
24064 \begin_inset Flex Code
24065 status collapsed
24066
24067 \begin_layout Plain Layout
24068
24069 \change_inserted -584632292 1615846730
24070 [string]
24071 \change_unchanged
24072
24073 \end_layout
24074
24075 \end_inset
24076
24077  Option to define a different command (from the default 
24078 \begin_inset Flex Code
24079 status collapsed
24080
24081 \begin_layout Plain Layout
24082
24083 \change_inserted -584632292 1615846730
24084
24085 \backslash
24086
24087 \backslash
24088
24089 \change_unchanged
24090
24091 \end_layout
24092
24093 \end_inset
24094
24095 ) to be used for line breaks.
24096  The initial backslash must not be specified.
24097 \end_layout
24098
24099 \begin_layout Itemize
24100
24101 \change_inserted -584632292 1615846730
24102 \begin_inset Flex Code
24103 status collapsed
24104
24105 \begin_layout Plain Layout
24106
24107 \change_inserted -584632292 1615846730
24108 Requires
24109 \change_unchanged
24110
24111 \end_layout
24112
24113 \end_inset
24114
24115  
24116 \begin_inset Flex Code
24117 status collapsed
24118
24119 \begin_layout Plain Layout
24120
24121 \change_inserted -584632292 1615846730
24122 [int=0]
24123 \change_unchanged
24124
24125 \end_layout
24126
24127 \end_inset
24128
24129  defines another argument (by its number) which this argument requires to be output if it is itself output.
24130  E.
24131 \begin_inset space \thinspace{}
24132 \end_inset
24133
24134 g.,
24135  in \SpecialChar LaTeX
24136  commands,
24137  optional arguments often require previous optional arguments to be output (at least empty),
24138  as in 
24139 \begin_inset Flex Code
24140 status collapsed
24141
24142 \begin_layout Plain Layout
24143
24144 \change_inserted -584632292 1615846730
24145
24146 \backslash
24147 command[][argument]{text}
24148 \change_unchanged
24149
24150 \end_layout
24151
24152 \end_inset
24153
24154 .
24155  This can be achieved by the statement 
24156 \begin_inset Flex Code
24157 status collapsed
24158
24159 \begin_layout Plain Layout
24160
24161 \change_inserted -584632292 1615846730
24162 Requires 1
24163 \change_unchanged
24164
24165 \end_layout
24166
24167 \end_inset
24168
24169  within 
24170 \begin_inset Flex Code
24171 status collapsed
24172
24173 \begin_layout Plain Layout
24174
24175 \change_inserted -584632292 1615846730
24176 Argument 2
24177 \change_unchanged
24178
24179 \end_layout
24180
24181 \end_inset
24182
24183 .
24184 \end_layout
24185
24186 \begin_layout Itemize
24187
24188 \change_inserted -584632292 1615846730
24189 \begin_inset Flex Code
24190 status collapsed
24191
24192 \begin_layout Plain Layout
24193
24194 \change_inserted -584632292 1615846730
24195 LeftDelim
24196 \change_unchanged
24197
24198 \end_layout
24199
24200 \end_inset
24201
24202  
24203 \begin_inset Flex Code
24204 status collapsed
24205
24206 \begin_layout Plain Layout
24207
24208 \change_inserted -584632292 1615846730
24209 [string]
24210 \change_unchanged
24211
24212 \end_layout
24213
24214 \end_inset
24215
24216  defines a custom left delimiter (instead of 
24217 \begin_inset Flex Code
24218 status collapsed
24219
24220 \begin_layout Plain Layout
24221
24222 \change_inserted -584632292 1615846730
24223 {
24224 \change_unchanged
24225
24226 \end_layout
24227
24228 \end_inset
24229
24230  or 
24231 \begin_inset Flex Code
24232 status collapsed
24233
24234 \begin_layout Plain Layout
24235
24236 \change_inserted -584632292 1615846730
24237 [
24238 \change_unchanged
24239
24240 \end_layout
24241
24242 \end_inset
24243
24244 ).
24245  A line break in the output can be indicated by 
24246 \begin_inset Flex Code
24247 status collapsed
24248
24249 \begin_layout Plain Layout
24250
24251 \change_inserted -584632292 1615846730
24252 <br/>
24253 \change_unchanged
24254
24255 \end_layout
24256
24257 \end_inset
24258
24259 .
24260 \end_layout
24261
24262 \begin_layout Itemize
24263
24264 \change_inserted -584632292 1615846730
24265 \begin_inset Flex Code
24266 status collapsed
24267
24268 \begin_layout Plain Layout
24269
24270 \change_inserted -584632292 1615846730
24271 RightDelim
24272 \change_unchanged
24273
24274 \end_layout
24275
24276 \end_inset
24277
24278  
24279 \begin_inset Flex Code
24280 status collapsed
24281
24282 \begin_layout Plain Layout
24283
24284 \change_inserted -584632292 1615846730
24285 [string]
24286 \change_unchanged
24287
24288 \end_layout
24289
24290 \end_inset
24291
24292  defines a custom right delimiter (instead of 
24293 \begin_inset Flex Code
24294 status collapsed
24295
24296 \begin_layout Plain Layout
24297
24298 \change_inserted -584632292 1615846730
24299 }
24300 \change_unchanged
24301
24302 \end_layout
24303
24304 \end_inset
24305
24306  or 
24307 \begin_inset Flex Code
24308 status collapsed
24309
24310 \begin_layout Plain Layout
24311
24312 \change_inserted -584632292 1615846730
24313 ]
24314 \change_unchanged
24315
24316 \end_layout
24317
24318 \end_inset
24319
24320 ).
24321  A line break in the output can be indicated by 
24322 \begin_inset Flex Code
24323 status collapsed
24324
24325 \begin_layout Plain Layout
24326
24327 \change_inserted -584632292 1615846730
24328 <br/>
24329 \change_unchanged
24330
24331 \end_layout
24332
24333 \end_inset
24334
24335 .
24336 \end_layout
24337
24338 \begin_layout Itemize
24339
24340 \change_inserted -584632292 1615846730
24341 \begin_inset Flex Code
24342 status collapsed
24343
24344 \begin_layout Plain Layout
24345
24346 \change_inserted -584632292 1615846730
24347 DefaultArg
24348 \change_unchanged
24349
24350 \end_layout
24351
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 [string]
24362 \change_unchanged
24363
24364 \end_layout
24365
24366 \end_inset
24367
24368  defines an argument that is inserted if and only if no user-specified arguments were given,
24369  i.
24370 \begin_inset space \thinspace{}
24371 \end_inset
24372
24373 e.
24374 \begin_inset space \space{}
24375 \end_inset
24376
24377 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
24378  Multiple arguments need to be separated by comma.
24379 \end_layout
24380
24381 \begin_layout Itemize
24382
24383 \change_inserted -584632292 1615846730
24384 \begin_inset Flex Code
24385 status collapsed
24386
24387 \begin_layout Plain Layout
24388
24389 \change_inserted -584632292 1615846730
24390 PresetArg
24391 \change_unchanged
24392
24393 \end_layout
24394
24395 \end_inset
24396
24397  
24398 \begin_inset Flex Code
24399 status collapsed
24400
24401 \begin_layout Plain Layout
24402
24403 \change_inserted -584632292 1615846730
24404 [string]
24405 \change_unchanged
24406
24407 \end_layout
24408
24409 \end_inset
24410
24411  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
24412  Multiple arguments need to be separated by comma.
24413 \end_layout
24414
24415 \begin_layout Itemize
24416
24417 \change_inserted -584632292 1615846730
24418 \begin_inset Flex Code
24419 status collapsed
24420
24421 \begin_layout Plain Layout
24422
24423 \change_inserted -584632292 1615846730
24424 Font
24425 \change_unchanged
24426
24427 \end_layout
24428
24429 \end_inset
24430
24431  The font used for the argument content,
24432  see 
24433 \begin_inset CommandInset ref
24434 LatexCommand ref
24435 reference "subsec:Font-description"
24436 nolink "false"
24437
24438 \end_inset
24439
24440 .
24441 \end_layout
24442
24443 \begin_layout Itemize
24444
24445 \change_inserted -584632292 1615846730
24446 \begin_inset Flex Code
24447 status collapsed
24448
24449 \begin_layout Plain Layout
24450
24451 \change_inserted -584632292 1615846730
24452 FreeSpacing
24453 \change_unchanged
24454
24455 \end_layout
24456
24457 \end_inset
24458
24459  [
24460 \begin_inset Flex Code
24461 status collapsed
24462
24463 \begin_layout Plain Layout
24464
24465 \change_inserted -584632292 1615846730
24466
24467 \emph on
24468 0
24469 \change_unchanged
24470
24471 \end_layout
24472
24473 \end_inset
24474
24475 ,
24476 \begin_inset space \thinspace{}
24477 \end_inset
24478
24479
24480 \begin_inset Flex Code
24481 status collapsed
24482
24483 \begin_layout Plain Layout
24484
24485 \change_inserted -584632292 1615846730
24486 1
24487 \change_unchanged
24488
24489 \end_layout
24490
24491 \end_inset
24492
24493 ] As with paragraph styles,
24494  see 
24495 \begin_inset CommandInset ref
24496 LatexCommand ref
24497 reference "subsec:Paragraph-Styles"
24498 nolink "false"
24499
24500 \end_inset
24501
24502 .
24503 \end_layout
24504
24505 \begin_layout Itemize
24506
24507 \change_inserted -584632292 1615846730
24508 \begin_inset Flex Code
24509 status collapsed
24510
24511 \begin_layout Plain Layout
24512
24513 \change_inserted -584632292 1615846730
24514 LabelFont
24515 \change_unchanged
24516
24517 \end_layout
24518
24519 \end_inset
24520
24521  The font used for the label;
24522  see 
24523 \begin_inset CommandInset ref
24524 LatexCommand ref
24525 reference "subsec:Font-description"
24526 nolink "false"
24527
24528 \end_inset
24529
24530 .
24531 \end_layout
24532
24533 \begin_layout Itemize
24534
24535 \change_inserted -584632292 1615846730
24536 \begin_inset Flex Code
24537 status collapsed
24538
24539 \begin_layout Plain Layout
24540
24541 \change_inserted -584632292 1615846730
24542 Decoration
24543 \change_unchanged
24544
24545 \end_layout
24546
24547 \end_inset
24548
24549  [
24550 \begin_inset Flex Code
24551 status collapsed
24552
24553 \begin_layout Plain Layout
24554
24555 \change_inserted -584632292 1615846730
24556
24557 \emph on
24558 Classic
24559 \emph default
24560 ,
24561  Minimalistic,
24562  Conglomerate
24563 \change_unchanged
24564
24565 \end_layout
24566
24567 \end_inset
24568
24569 ] describes the rendering style used for the inset's frame and buttons.
24570 \end_layout
24571
24572 \begin_layout Itemize
24573
24574 \change_inserted -584632292 1615846730
24575 \begin_inset Flex Code
24576 status collapsed
24577
24578 \begin_layout Plain Layout
24579
24580 \change_inserted -584632292 1615846730
24581 AutoInsert
24582 \change_unchanged
24583
24584 \end_layout
24585
24586 \end_inset
24587
24588  
24589 \begin_inset Flex Code
24590 status collapsed
24591
24592 \begin_layout Plain Layout
24593
24594 \change_inserted -584632292 1615846730
24595 [int=0]
24596 \change_unchanged
24597
24598 \end_layout
24599
24600 \end_inset
24601
24602  If this is set to 
24603 \begin_inset Flex Code
24604 status collapsed
24605
24606 \begin_layout Plain Layout
24607
24608 \change_inserted -584632292 1615846730
24609 1
24610 \change_unchanged
24611
24612 \end_layout
24613
24614 \end_inset
24615
24616 ,
24617  this argument is automatically inserted when the respective style is selected.
24618 \end_layout
24619
24620 \begin_layout Itemize
24621
24622 \change_inserted -584632292 1615846730
24623 \begin_inset Flex Code
24624 status collapsed
24625
24626 \begin_layout Plain Layout
24627
24628 \change_inserted -584632292 1615846730
24629 InsertOnNewline
24630 \change_unchanged
24631
24632 \end_layout
24633
24634 \end_inset
24635
24636  
24637 \begin_inset Flex Code
24638 status collapsed
24639
24640 \begin_layout Plain Layout
24641
24642 \change_inserted -584632292 1615846730
24643 [int=0]
24644 \change_unchanged
24645
24646 \end_layout
24647
24648 \end_inset
24649
24650  If this is set to 
24651 \begin_inset Flex Code
24652 status collapsed
24653
24654 \begin_layout Plain Layout
24655
24656 \change_inserted -584632292 1615846730
24657 1
24658 \change_unchanged
24659
24660 \end_layout
24661
24662 \end_inset
24663
24664 ,
24665  this argument will be inserted on a new line with 
24666 \begin_inset Flex Code
24667 status collapsed
24668
24669 \begin_layout Plain Layout
24670
24671 \change_inserted -584632292 1615846730
24672 AutoInsert
24673 \change_unchanged
24674
24675 \end_layout
24676
24677 \end_inset
24678
24679  (only available within Flex insets).
24680 \end_layout
24681
24682 \begin_layout Itemize
24683
24684 \change_inserted -584632292 1615846730
24685 \begin_inset Flex Code
24686 status collapsed
24687
24688 \begin_layout Plain Layout
24689
24690 \change_inserted -584632292 1615846730
24691 InsertCotext
24692 \change_unchanged
24693
24694 \end_layout
24695
24696 \end_inset
24697
24698  
24699 \begin_inset Flex Code
24700 status collapsed
24701
24702 \begin_layout Plain Layout
24703
24704 \change_inserted -584632292 1615846730
24705 [int=0]
24706 \change_unchanged
24707
24708 \end_layout
24709
24710 \end_inset
24711
24712  If this is set to 
24713 \begin_inset Flex Code
24714 status collapsed
24715
24716 \begin_layout Plain Layout
24717
24718 \change_inserted -584632292 1615846730
24719 1
24720 \change_unchanged
24721
24722 \end_layout
24723
24724 \end_inset
24725
24726 ,
24727  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
24728 \end_layout
24729
24730 \begin_layout Itemize
24731
24732 \change_inserted -584632292 1615846730
24733 \begin_inset Flex Code
24734 status collapsed
24735
24736 \begin_layout Plain Layout
24737
24738 \change_inserted -584632292 1615846730
24739 PassThru
24740 \change_unchanged
24741
24742 \end_layout
24743
24744 \end_inset
24745
24746  [
24747 \begin_inset Flex Code
24748 status collapsed
24749
24750 \begin_layout Plain Layout
24751
24752 \change_inserted -584632292 1615846730
24753
24754 \emph on
24755 inherited
24756 \emph default
24757 ,
24758  true,
24759  false
24760 \change_unchanged
24761
24762 \end_layout
24763
24764 \end_inset
24765
24766 ] Whether the contents of this argument should be output in raw form,
24767  meaning without special translations that \SpecialChar LaTeX
24768  would require.
24769  By default,
24770  the 
24771 \begin_inset Flex Code
24772 status collapsed
24773
24774 \begin_layout Plain Layout
24775
24776 \change_inserted -584632292 1615846730
24777 PassThru
24778 \change_unchanged
24779
24780 \end_layout
24781
24782 \end_inset
24783
24784  status is inherited by the inset or paragraph layout the argument belongs to,
24785  true and false change the status for the given argument only.
24786 \end_layout
24787
24788 \begin_layout Itemize
24789
24790 \change_inserted -584632292 1615846730
24791 \begin_inset Flex Code
24792 status collapsed
24793
24794 \begin_layout Plain Layout
24795
24796 \change_inserted -584632292 1615846730
24797 PassThruChars
24798 \change_unchanged
24799
24800 \end_layout
24801
24802 \end_inset
24803
24804  [
24805 \begin_inset Flex Code
24806 status collapsed
24807
24808 \begin_layout Plain Layout
24809
24810 \change_inserted -584632292 1615846730
24811 string of characters
24812 \change_unchanged
24813
24814 \end_layout
24815
24816 \end_inset
24817
24818 ]
24819 \family typewriter
24820  
24821 \family default
24822 Defines individual characters
24823 \begin_inset Newline linebreak
24824 \end_inset
24825
24826 that should be output in raw form,
24827  meaning without special translations that \SpecialChar LaTeX
24828  would require.
24829  Note that,
24830  contrary to PassThru,
24831  this needs to be explicitly defined for arguments.
24832  That is,
24833  arguments do not inherit PassThruChars from their parent inset or layout.
24834 \end_layout
24835
24836 \begin_layout Itemize
24837
24838 \change_inserted -584632292 1615846730
24839 \begin_inset Flex Code
24840 status collapsed
24841
24842 \begin_layout Plain Layout
24843
24844 \change_inserted -584632292 1615846730
24845 IsTocCaption
24846 \change_unchanged
24847
24848 \end_layout
24849
24850 \end_inset
24851
24852  [
24853 \begin_inset Flex Code
24854 status collapsed
24855
24856 \begin_layout Plain Layout
24857
24858 \change_inserted -584632292 1615846730
24859
24860 \emph on
24861 0
24862 \change_unchanged
24863
24864 \end_layout
24865
24866 \end_inset
24867
24868 ,
24869 \begin_inset space \thinspace{}
24870 \end_inset
24871
24872
24873 \begin_inset Flex Code
24874 status collapsed
24875
24876 \begin_layout Plain Layout
24877
24878 \change_inserted -584632292 1615846730
24879 1
24880 \change_unchanged
24881
24882 \end_layout
24883
24884 \end_inset
24885
24886 ] If this is set to 1,
24887  the argument will output its content in the corresponding item in the table of contents.
24888  See AddToToc.
24889 \end_layout
24890
24891 \begin_layout Standard
24892
24893 \change_inserted -584632292 1615846730
24894 By default,
24895  the text entered in the \SpecialChar LyX
24896  workarea in the respective layout is the last (mandatory) argument of a command if the 
24897 \begin_inset Flex Code
24898 status collapsed
24899
24900 \begin_layout Plain Layout
24901
24902 \change_inserted -584632292 1615846730
24903 LatexType
24904 \change_unchanged
24905
24906 \end_layout
24907
24908 \end_inset
24909
24910  is 
24911 \begin_inset Flex Code
24912 status collapsed
24913
24914 \begin_layout Plain Layout
24915
24916 \change_inserted -584632292 1615846730
24917 Command
24918 \change_unchanged
24919
24920 \end_layout
24921
24922 \end_inset
24923
24924 .
24925  However,
24926  arguments with the prefix 
24927 \begin_inset Flex Code
24928 status collapsed
24929
24930 \begin_layout Plain Layout
24931
24932 \change_inserted -584632292 1615846730
24933 post:
24934 \change_unchanged
24935
24936 \end_layout
24937
24938 \end_inset
24939
24940  are output after this workarea argument.
24941  Note that post-argument numbering restarts at 1,
24942  so the first argument following the workarea argument is 
24943 \begin_inset Flex Code
24944 status collapsed
24945
24946 \begin_layout Plain Layout
24947
24948 \change_inserted -584632292 1615846730
24949 post:1
24950 \change_unchanged
24951
24952 \end_layout
24953
24954 \end_inset
24955
24956 .
24957  Post-arguments are ignored in any other 
24958 \begin_inset Flex Code
24959 status collapsed
24960
24961 \begin_layout Plain Layout
24962
24963 \change_inserted -584632292 1615846730
24964 LatexType
24965 \change_unchanged
24966
24967 \end_layout
24968
24969 \end_inset
24970
24971  than 
24972 \begin_inset Flex Code
24973 status collapsed
24974
24975 \begin_layout Plain Layout
24976
24977 \change_inserted -584632292 1615846730
24978 Command
24979 \change_unchanged
24980
24981 \end_layout
24982
24983 \end_inset
24984
24985 .
24986 \end_layout
24987
24988 \begin_layout Standard
24989
24990 \change_inserted -584632292 1615846730
24991 Arguments for list 
24992 \begin_inset Flex Code
24993 status collapsed
24994
24995 \begin_layout Plain Layout
24996
24997 \change_inserted -584632292 1615846730
24998
24999 \backslash
25000 item
25001 \change_unchanged
25002
25003 \end_layout
25004
25005 \end_inset
25006
25007 s (as in 
25008 \begin_inset Flex Code
25009 status collapsed
25010
25011 \begin_layout Plain Layout
25012
25013 \change_inserted -584632292 1615846730
25014
25015 \backslash
25016 item[foo]
25017 \change_unchanged
25018
25019 \end_layout
25020
25021 \end_inset
25022
25023 ) have the prefix 
25024 \begin_inset Flex Code
25025 status collapsed
25026
25027 \begin_layout Plain Layout
25028
25029 \change_inserted -584632292 1615846730
25030 item:
25031 \change_unchanged
25032
25033 \end_layout
25034
25035 \end_inset
25036
25037  followed by the number (e.
25038 \begin_inset space \thinspace{}
25039 \end_inset
25040
25041 g.
25042 \begin_inset space \space{}
25043 \end_inset
25044
25045
25046 \begin_inset Flex Code
25047 status collapsed
25048
25049 \begin_layout Plain Layout
25050
25051 \change_inserted -584632292 1615846730
25052 Argument item:1
25053 \change_unchanged
25054
25055 \end_layout
25056
25057 \end_inset
25058
25059 ).
25060 \end_layout
25061
25062 \begin_layout Standard
25063
25064 \change_inserted -584632292 1615846730
25065 Finally,
25066  there is a special argument type with the prefix 
25067 \begin_inset Flex Code
25068 status collapsed
25069
25070 \begin_layout Plain Layout
25071
25072 \change_inserted -584632292 1615846730
25073 listpreamble:
25074 \change_unchanged
25075
25076 \end_layout
25077
25078 \end_inset
25079
25080 .
25081  It is not really an argument,
25082  but uses the argument interface (thus,
25083  the prefix is also followed by a number,
25084  e.
25085 \begin_inset space \thinspace{}
25086 \end_inset
25087
25088 g.
25089  
25090 \begin_inset Flex Code
25091 status collapsed
25092
25093 \begin_layout Plain Layout
25094
25095 \change_inserted -584632292 1615846730
25096 Argument listpreamble:1
25097 \change_unchanged
25098
25099 \end_layout
25100
25101 \end_inset
25102
25103 ).
25104  As the name implies,
25105  it is targeted at lists such as 
25106 \family sans
25107 Itemize
25108 \family default
25109 ,
25110  
25111 \family sans
25112 Enumerate
25113 \family default
25114 ,
25115  
25116 \family sans
25117 Description
25118 \family default
25119 ,
25120  or 
25121 \family sans
25122 Bibliography
25123 \family default
25124 .
25125  Its content will be output at the list start,
25126  before the first 
25127 \begin_inset Flex Code
25128 status collapsed
25129
25130 \begin_layout Plain Layout
25131
25132 \change_inserted -584632292 1615846730
25133
25134 \backslash
25135 item
25136 \change_unchanged
25137
25138 \end_layout
25139
25140 \end_inset
25141
25142 ,
25143  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
25144 ).
25145  This way,
25146  users can insert redefinitions (of lengths etc.) to individual lists.
25147  By default,
25148  these arguments do not have a delimiter.
25149 \change_unchanged
25150
25151 \end_layout
25152
25153 \begin_layout Subsection
25154 Counters
25155 \begin_inset CommandInset label
25156 LatexCommand label
25157 name "subsec:Counters"
25158
25159 \end_inset
25160
25161
25162 \end_layout
25163
25164 \begin_layout Standard
25165 It is necessary to define the counters (
25166 \begin_inset Flex Noun
25167 status collapsed
25168
25169 \begin_layout Plain Layout
25170 chapter
25171 \end_layout
25172
25173 \end_inset
25174
25175 ,
25176  
25177 \begin_inset Flex Noun
25178 status collapsed
25179
25180 \begin_layout Plain Layout
25181 figure
25182 \end_layout
25183
25184 \end_inset
25185
25186 ,
25187  \SpecialChar ldots
25188 ) in the text class itself.
25189  The standard counters are defined in the file 
25190 \begin_inset Flex Code
25191 status collapsed
25192
25193 \begin_layout Plain Layout
25194 stdcounters.inc
25195 \end_layout
25196
25197 \end_inset
25198
25199 ,
25200  so you may have to do no more than add
25201 \end_layout
25202
25203 \begin_layout LyX-Code
25204 Input stdcounters.inc
25205 \end_layout
25206
25207 \begin_layout Standard
25208 to your layout file to get them to work.
25209  But if you want to define custom counters,
25210  then you can do so.
25211  The counter declaration must begin with:
25212 \end_layout
25213
25214 \begin_layout LyX-Code
25215 Counter CounterName
25216 \end_layout
25217
25218 \begin_layout Standard
25219 where of course `
25220 \begin_inset Flex Code
25221 status collapsed
25222
25223 \begin_layout Plain Layout
25224 CounterName
25225 \end_layout
25226
25227 \end_inset
25228
25229 ' is replaced by the name of the counter.
25230  And it must end with 
25231 \begin_inset Quotes eld
25232 \end_inset
25233
25234
25235 \begin_inset Flex Code
25236 status collapsed
25237
25238 \begin_layout Plain Layout
25239 End
25240 \end_layout
25241
25242 \end_inset
25243
25244
25245 \begin_inset Quotes erd
25246 \end_inset
25247
25248 .
25249  The following parameters can also be used:
25250 \end_layout
25251
25252 \begin_layout Description
25253 \begin_inset Flex Code
25254 status collapsed
25255
25256 \begin_layout Plain Layout
25257 InitialValue
25258 \end_layout
25259
25260 \end_inset
25261
25262  [
25263 \begin_inset Flex Code
25264 status collapsed
25265
25266 \begin_layout Plain Layout
25267 int=1
25268 \end_layout
25269
25270 \end_inset
25271
25272 ] Sets the initial value for the counter,
25273  to which it will be reset whenever that happens.
25274  Normally,
25275  one will want the default,
25276  1.
25277 \end_layout
25278
25279 \begin_layout Description
25280 \begin_inset Flex Code
25281 status collapsed
25282
25283 \begin_layout Plain Layout
25284 LabelString
25285 \end_layout
25286
25287 \end_inset
25288
25289  [
25290 \begin_inset Flex Code
25291 status collapsed
25292
25293 \begin_layout Plain Layout
25294 string
25295 \end_layout
25296
25297 \end_inset
25298
25299 =
25300 \begin_inset Quotes erd
25301 \end_inset
25302
25303
25304 \begin_inset Quotes erd
25305 \end_inset
25306
25307 ] When defined,
25308  this string defines how the counter is displayed.
25309  Setting this value sets 
25310 \begin_inset Flex Code
25311 status collapsed
25312
25313 \begin_layout Plain Layout
25314 LabelStringAppendix
25315 \end_layout
25316
25317 \end_inset
25318
25319  to the same value.
25320  The following special constructs can be used in the string:
25321 \end_layout
25322
25323 \begin_deeper
25324 \begin_layout Itemize
25325 \begin_inset Flex Code
25326 status collapsed
25327
25328 \begin_layout Plain Layout
25329
25330 \backslash
25331 thecounter
25332 \end_layout
25333
25334 \end_inset
25335
25336  will be replaced by the expansion of the 
25337 \begin_inset Flex Code
25338 status collapsed
25339
25340 \begin_layout Plain Layout
25341 LabelString
25342 \end_layout
25343
25344 \end_inset
25345
25346  (or 
25347 \begin_inset Flex Code
25348 status collapsed
25349
25350 \begin_layout Plain Layout
25351 LabelStringAppendix
25352 \end_layout
25353
25354 \end_inset
25355
25356 ) of the counter 
25357 \begin_inset Flex Code
25358 status collapsed
25359
25360 \begin_layout Plain Layout
25361 counter
25362 \end_layout
25363
25364 \end_inset
25365
25366 .
25367  
25368 \end_layout
25369
25370 \begin_layout Itemize
25371 counter values can be expressed using \SpecialChar LaTeX
25372 -like macros
25373 \begin_inset Newline newline
25374 \end_inset
25375
25376
25377 \begin_inset Flex Code
25378 status collapsed
25379
25380 \begin_layout Plain Layout
25381
25382 \backslash
25383
25384 \emph on
25385 numbertype
25386 \emph default
25387 {
25388 \emph on
25389 counter
25390 \emph default
25391 }
25392 \end_layout
25393
25394 \end_inset
25395
25396 ,
25397  where 
25398 \begin_inset Flex Code
25399 status collapsed
25400
25401 \begin_layout Plain Layout
25402
25403 \emph on
25404 numbertype
25405 \end_layout
25406
25407 \end_inset
25408
25409  can be:
25410 \begin_inset Foot
25411 status collapsed
25412
25413 \begin_layout Plain Layout
25414
25415 \family roman
25416 \series medium
25417 \shape up
25418 \size normal
25419 \emph off
25420 \bar no
25421 \noun off
25422 \color none
25423 Actually,
25424  the situation is a bit more complicated:
25425  any
25426 \family default
25427 \series default
25428 \shape default
25429 \emph default
25430 \bar default
25431  
25432 \size default
25433 \emph on
25434 \noun default
25435 \color inherit
25436 numbertype
25437 \family roman
25438 \series medium
25439 \shape up
25440 \size normal
25441 \emph off
25442 \bar no
25443 \noun off
25444  other than those described below will produce arabic numerals.
25445  It would not be surprising to see this change in the future.
25446 \end_layout
25447
25448 \end_inset
25449
25450  
25451 \begin_inset Flex Code
25452 status collapsed
25453
25454 \begin_layout Plain Layout
25455 arabic
25456 \end_layout
25457
25458 \end_inset
25459
25460 :
25461  1,
25462  2,
25463  3,\SpecialChar ldots
25464 ;
25465  
25466 \begin_inset Flex Code
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470 alph
25471 \end_layout
25472
25473 \end_inset
25474
25475  for lower-case letters:
25476  a,
25477  b,
25478  c,
25479  \SpecialChar ldots
25480 ;
25481  
25482 \begin_inset Flex Code
25483 status collapsed
25484
25485 \begin_layout Plain Layout
25486 Alph
25487 \end_layout
25488
25489 \end_inset
25490
25491  for upper-case letters:
25492  A,
25493  B,
25494  C,
25495  \SpecialChar ldots
25496 ;
25497  
25498 \begin_inset Flex Code
25499 status collapsed
25500
25501 \begin_layout Plain Layout
25502 roman
25503 \end_layout
25504
25505 \end_inset
25506
25507  for lower-case roman numerals:
25508  i,
25509  ii,
25510  iii,
25511  \SpecialChar ldots
25512 ;
25513  
25514 \begin_inset Flex Code
25515 status collapsed
25516
25517 \begin_layout Plain Layout
25518 Roman
25519 \end_layout
25520
25521 \end_inset
25522
25523  for upper-case roman numerals:
25524  I,
25525  II,
25526  III\SpecialChar ldots
25527 ;
25528  
25529 \begin_inset Flex Code
25530 status collapsed
25531
25532 \begin_layout Plain Layout
25533 hebrew
25534 \end_layout
25535
25536 \end_inset
25537
25538  for hebrew numerals.
25539 \end_layout
25540
25541 \end_deeper
25542 \begin_layout Standard
25543 If LabelString is not defined,
25544  a default value is constructed as follows:
25545  if the counter has a 
25546 \change_deleted 731793113 1604355218
25547 master
25548 \change_inserted 731793113 1604355221
25549 parent
25550 \change_unchanged
25551  counter 
25552 \begin_inset Flex Code
25553 status collapsed
25554
25555 \begin_layout Plain Layout
25556
25557 \change_deleted 731793113 1604355223
25558 master
25559 \change_inserted 731793113 1604355226
25560 parent
25561 \change_unchanged
25562
25563 \end_layout
25564
25565 \end_inset
25566
25567  (defined via 
25568 \begin_inset Flex Code
25569 status collapsed
25570
25571 \begin_layout Plain Layout
25572 Within
25573 \end_layout
25574
25575 \end_inset
25576
25577 ),
25578  the string
25579 \begin_inset Newline newline
25580 \end_inset
25581
25582
25583 \begin_inset Flex Code
25584 status collapsed
25585
25586 \begin_layout Plain Layout
25587
25588 \backslash
25589 the
25590 \change_inserted 731793113 1604355228
25591 parent
25592 \change_deleted 731793113 1604355230
25593 master
25594 \change_unchanged
25595 .
25596 \backslash
25597 arabic{counter}
25598 \end_layout
25599
25600 \end_inset
25601
25602  is used;
25603  otherwise the string 
25604 \begin_inset Flex Code
25605 status collapsed
25606
25607 \begin_layout Plain Layout
25608
25609 \backslash
25610 arabic{counter}
25611 \end_layout
25612
25613 \end_inset
25614
25615  is used.
25616 \end_layout
25617
25618 \begin_layout Description
25619 \begin_inset Flex Code
25620 status collapsed
25621
25622 \begin_layout Plain Layout
25623 LabelStringAppendix
25624 \end_layout
25625
25626 \end_inset
25627
25628  [
25629 \begin_inset Flex Code
25630 status collapsed
25631
25632 \begin_layout Plain Layout
25633 string
25634 \end_layout
25635
25636 \end_inset
25637
25638
25639 \begin_inset Quotes eld
25640 \end_inset
25641
25642
25643 \begin_inset Quotes erd
25644 \end_inset
25645
25646 ] Same as 
25647 \begin_inset Flex Code
25648 status collapsed
25649
25650 \begin_layout Plain Layout
25651 LabelString
25652 \end_layout
25653
25654 \end_inset
25655
25656 ,
25657  but for use in the Appendix.
25658 \change_inserted -584632292 1607202551
25659
25660 \end_layout
25661
25662 \begin_layout Description
25663
25664 \change_inserted -584632292 1607202682
25665 \begin_inset Flex Code
25666 status open
25667
25668 \begin_layout Plain Layout
25669 LaTeXName
25670 \end_layout
25671
25672 \end_inset
25673
25674  [
25675 \begin_inset Flex Code
25676 status open
25677
25678 \begin_layout Plain Layout
25679
25680 \change_inserted -584632292 1607202576
25681 string
25682 \change_unchanged
25683
25684 \end_layout
25685
25686 \end_inset
25687
25688  = 
25689 \begin_inset Quotes eld
25690 \end_inset
25691
25692
25693 \begin_inset Quotes erd
25694 \end_inset
25695
25696 ] The counter name as used in \SpecialChar LaTeX
25697 .
25698  (
25699 \change_inserted 34634807 1619711355
25700 e
25701 \change_deleted 34634807 1619711355
25702 E
25703 \change_inserted -584632292 1607202682
25704 .g.,
25705  in \SpecialChar LyX
25706 ,
25707  there is a counter named `theorem',
25708  but it is output to \SpecialChar LaTeX
25709  as `thm'.)
25710 \change_unchanged
25711
25712 \end_layout
25713
25714 \begin_layout Description
25715 \begin_inset Flex Code
25716 status collapsed
25717
25718 \begin_layout Plain Layout
25719 PrettyFormat
25720 \end_layout
25721
25722 \end_inset
25723
25724  [
25725 \begin_inset Flex Code
25726 status collapsed
25727
25728 \begin_layout Plain Layout
25729 string
25730 \end_layout
25731
25732 \end_inset
25733
25734 =
25735 \begin_inset Quotes erd
25736 \end_inset
25737
25738
25739 \begin_inset Quotes erd
25740 \end_inset
25741
25742 ] A format for use with formatted references to this counter.
25743  For example,
25744  one might want to have references to section numbers appear as 
25745 \begin_inset Quotes eld
25746 \end_inset
25747
25748 Section 2.4
25749 \begin_inset Quotes erd
25750 \end_inset
25751
25752 .
25753  The string should contain 
25754 \begin_inset Quotes eld
25755 \end_inset
25756
25757 ##
25758 \begin_inset Quotes erd
25759 \end_inset
25760
25761 .
25762  This will be replaced by the counter number itself.
25763  So,
25764  for sections,
25765  it would be:
25766  Section ##.
25767 \end_layout
25768
25769 \begin_layout Description
25770 \begin_inset Flex Code
25771 status collapsed
25772
25773 \begin_layout Plain Layout
25774 Within
25775 \end_layout
25776
25777 \end_inset
25778
25779  [
25780 \begin_inset Flex Code
25781 status collapsed
25782
25783 \begin_layout Plain Layout
25784 string
25785 \end_layout
25786
25787 \end_inset
25788
25789 =
25790 \begin_inset Quotes erd
25791 \end_inset
25792
25793
25794 \begin_inset Quotes erd
25795 \end_inset
25796
25797 ] If this is set to the name of another counter,
25798  the present counter will be reset every time the other one is increased.
25799  For example,
25800  
25801 \begin_inset Flex Code
25802 status collapsed
25803
25804 \begin_layout Plain Layout
25805 subsection
25806 \end_layout
25807
25808 \end_inset
25809
25810  is numbered inside 
25811 \begin_inset Flex Code
25812 status collapsed
25813
25814 \begin_layout Plain Layout
25815 section
25816 \end_layout
25817
25818 \end_inset
25819
25820 .
25821 \end_layout
25822
25823 \begin_layout Subsection
25824 Font description
25825 \begin_inset CommandInset label
25826 LatexCommand label
25827 name "subsec:Font-description"
25828
25829 \end_inset
25830
25831
25832 \end_layout
25833
25834 \begin_layout Standard
25835 A font description looks like this:
25836 \end_layout
25837
25838 \begin_layout LyX-Code
25839 Font 
25840 \family roman
25841 \emph on
25842 or
25843 \family default
25844 \emph default
25845  LabelFont
25846 \emph on
25847  
25848 \family roman
25849 or
25850 \family default
25851 \emph default
25852  DefaultFont
25853 \end_layout
25854
25855 \begin_layout LyX-Code
25856  ...
25857 \end_layout
25858
25859 \begin_layout LyX-Code
25860 EndFont
25861 \end_layout
25862
25863 \begin_layout Standard
25864 The following commands are available:
25865 \end_layout
25866
25867 \begin_layout Description
25868 \begin_inset Flex Code
25869 status collapsed
25870
25871 \begin_layout Plain Layout
25872 Color
25873 \end_layout
25874
25875 \end_inset
25876
25877  [
25878 \change_deleted -712698321 1607682984
25879
25880 \begin_inset Flex Code
25881 status collapsed
25882
25883 \begin_layout Plain Layout
25884
25885 \emph on
25886 none
25887 \end_layout
25888
25889 \end_inset
25890
25891 ,
25892  
25893 \begin_inset Flex Code
25894 status collapsed
25895
25896 \begin_layout Plain Layout
25897 black
25898 \end_layout
25899
25900 \end_inset
25901
25902 ,
25903  
25904 \begin_inset Flex Code
25905 status collapsed
25906
25907 \begin_layout Plain Layout
25908 white
25909 \end_layout
25910
25911 \end_inset
25912
25913 ,
25914  
25915 \begin_inset Flex Code
25916 status collapsed
25917
25918 \begin_layout Plain Layout
25919 red
25920 \end_layout
25921
25922 \end_inset
25923
25924 ,
25925  
25926 \begin_inset Flex Code
25927 status collapsed
25928
25929 \begin_layout Plain Layout
25930 green
25931 \end_layout
25932
25933 \end_inset
25934
25935 ,
25936  
25937 \begin_inset Flex Code
25938 status collapsed
25939
25940 \begin_layout Plain Layout
25941 blue
25942 \end_layout
25943
25944 \end_inset
25945
25946 ,
25947  
25948 \begin_inset Flex Code
25949 status collapsed
25950
25951 \begin_layout Plain Layout
25952 cyan
25953 \end_layout
25954
25955 \end_inset
25956
25957 ,
25958  
25959 \begin_inset Flex Code
25960 status collapsed
25961
25962 \begin_layout Plain Layout
25963 magenta
25964 \end_layout
25965
25966 \end_inset
25967
25968 ,
25969  
25970 \begin_inset Flex Code
25971 status collapsed
25972
25973 \begin_layout Plain Layout
25974 yellow
25975 \end_layout
25976
25977 \end_inset
25978
25979 ,
25980  
25981 \begin_inset Flex Code
25982 status collapsed
25983
25984 \begin_layout Plain Layout
25985 brown
25986 \end_layout
25987
25988 \end_inset
25989
25990 ,
25991  
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996 darkgray
25997 \end_layout
25998
25999 \end_inset
26000
26001 ,
26002  
26003 \begin_inset Flex Code
26004 status collapsed
26005
26006 \begin_layout Plain Layout
26007 gray
26008 \end_layout
26009
26010 \end_inset
26011
26012 ,
26013  
26014 \begin_inset Flex Code
26015 status collapsed
26016
26017 \begin_layout Plain Layout
26018 lightgray
26019 \end_layout
26020
26021 \end_inset
26022
26023 ,
26024  
26025 \begin_inset Flex Code
26026 status collapsed
26027
26028 \begin_layout Plain Layout
26029 lime
26030 \end_layout
26031
26032 \end_inset
26033
26034 ,
26035  
26036 \begin_inset Flex Code
26037 status collapsed
26038
26039 \begin_layout Plain Layout
26040 orange
26041 \end_layout
26042
26043 \end_inset
26044
26045 ,
26046  
26047 \begin_inset Flex Code
26048 status collapsed
26049
26050 \begin_layout Plain Layout
26051 olive
26052 \end_layout
26053
26054 \end_inset
26055
26056 ,
26057  
26058 \begin_inset Flex Code
26059 status collapsed
26060
26061 \begin_layout Plain Layout
26062 pink
26063 \end_layout
26064
26065 \end_inset
26066
26067 ,
26068  
26069 \begin_inset Flex Code
26070 status collapsed
26071
26072 \begin_layout Plain Layout
26073 purple
26074 \end_layout
26075
26076 \end_inset
26077
26078 ,
26079  
26080 \begin_inset Flex Code
26081 status collapsed
26082
26083 \begin_layout Plain Layout
26084 teal
26085 \end_layout
26086
26087 \end_inset
26088
26089 ,
26090  
26091 \begin_inset Flex Code
26092 status collapsed
26093
26094 \begin_layout Plain Layout
26095 violet
26096 \end_layout
26097
26098 \end_inset
26099
26100
26101 \change_inserted -712698321 1607683139
26102
26103 \begin_inset Flex Code
26104 status collapsed
26105
26106 \begin_layout Plain Layout
26107
26108 \change_inserted -712698321 1607683135
26109 string
26110 \change_unchanged
26111
26112 \end_layout
26113
26114 \end_inset
26115
26116 ] See appendix
26117 \begin_inset space ~
26118 \end_inset
26119
26120
26121 \begin_inset CommandInset ref
26122 LatexCommand ref
26123 reference "chap:Names-of-colors"
26124 plural "false"
26125 caps "false"
26126 noprefix "false"
26127 nolink "false"
26128
26129 \end_inset
26130
26131  for 
26132 \change_deleted -712698321 1607683144
26133 ]
26134 \change_inserted -712698321 1607683146
26135 valid arguments.
26136 \change_unchanged
26137
26138 \end_layout
26139
26140 \begin_layout Description
26141 \begin_inset Flex Code
26142 status collapsed
26143
26144 \begin_layout Plain Layout
26145 Family
26146 \end_layout
26147
26148 \end_inset
26149
26150  [
26151 \begin_inset Flex Code
26152 status collapsed
26153
26154 \begin_layout Plain Layout
26155
26156 \emph on
26157 Roman
26158 \end_layout
26159
26160 \end_inset
26161
26162 ,
26163  
26164 \begin_inset Flex Code
26165 status collapsed
26166
26167 \begin_layout Plain Layout
26168 Sans
26169 \end_layout
26170
26171 \end_inset
26172
26173 ,
26174  
26175 \begin_inset Flex Code
26176 status collapsed
26177
26178 \begin_layout Plain Layout
26179 Typewriter
26180 \end_layout
26181
26182 \end_inset
26183
26184 ]
26185 \end_layout
26186
26187 \begin_layout Description
26188 \begin_inset Flex Code
26189 status collapsed
26190
26191 \begin_layout Plain Layout
26192 Misc
26193 \end_layout
26194
26195 \end_inset
26196
26197  [
26198 \begin_inset Flex Code
26199 status collapsed
26200
26201 \begin_layout Plain Layout
26202 string
26203 \end_layout
26204
26205 \end_inset
26206
26207 ] Valid arguments are:
26208  
26209 \begin_inset Flex Code
26210 status collapsed
26211
26212 \begin_layout Plain Layout
26213 emph
26214 \end_layout
26215
26216 \end_inset
26217
26218 ,
26219  
26220 \begin_inset Flex Code
26221 status collapsed
26222
26223 \begin_layout Plain Layout
26224 noun
26225 \end_layout
26226
26227 \end_inset
26228
26229 ,
26230  
26231 \begin_inset Flex Code
26232 status collapsed
26233
26234 \begin_layout Plain Layout
26235 strikeout
26236 \end_layout
26237
26238 \end_inset
26239
26240 ,
26241  
26242 \begin_inset Flex Code
26243 status collapsed
26244
26245 \begin_layout Plain Layout
26246 underbar
26247 \end_layout
26248
26249 \end_inset
26250
26251 ,
26252  
26253 \begin_inset Flex Code
26254 status collapsed
26255
26256 \begin_layout Plain Layout
26257 uuline
26258 \end_layout
26259
26260 \end_inset
26261
26262 ,
26263  
26264 \begin_inset Flex Code
26265 status collapsed
26266
26267 \begin_layout Plain Layout
26268 uwave
26269 \end_layout
26270
26271 \end_inset
26272
26273 ,
26274  
26275 \begin_inset Flex Code
26276 status collapsed
26277
26278 \begin_layout Plain Layout
26279 no_emph
26280 \end_layout
26281
26282 \end_inset
26283
26284 ,
26285  
26286 \begin_inset Flex Code
26287 status collapsed
26288
26289 \begin_layout Plain Layout
26290 no_noun
26291 \end_layout
26292
26293 \end_inset
26294
26295 ,
26296  
26297 \begin_inset Flex Code
26298 status collapsed
26299
26300 \begin_layout Plain Layout
26301 no_strikeout
26302 \end_layout
26303
26304 \end_inset
26305
26306 ,
26307  
26308 \begin_inset Flex Code
26309 status collapsed
26310
26311 \begin_layout Plain Layout
26312 no_bar
26313 \end_layout
26314
26315 \end_inset
26316
26317 ,
26318  
26319 \begin_inset Flex Code
26320 status collapsed
26321
26322 \begin_layout Plain Layout
26323 no_uuline
26324 \end_layout
26325
26326 \end_inset
26327
26328  and 
26329 \begin_inset Flex Code
26330 status collapsed
26331
26332 \begin_layout Plain Layout
26333 no_uwave
26334 \end_layout
26335
26336 \end_inset
26337
26338 .
26339  Each of these turns on or off the corresponding attribute.
26340  For example,
26341  
26342 \begin_inset Flex Code
26343 status collapsed
26344
26345 \begin_layout Plain Layout
26346 emph
26347 \end_layout
26348
26349 \end_inset
26350
26351  turns on emphasis,
26352  and 
26353 \begin_inset Flex Code
26354 status collapsed
26355
26356 \begin_layout Plain Layout
26357 no_emph
26358 \end_layout
26359
26360 \end_inset
26361
26362  turns it off.
26363  
26364 \begin_inset Newline newline
26365 \end_inset
26366
26367 If the latter seems puzzling,
26368  remember that the font settings for the present context are generally inherited from the surrounding context.
26369  So 
26370 \begin_inset Flex Code
26371 status collapsed
26372
26373 \begin_layout Plain Layout
26374 no_emph
26375 \end_layout
26376
26377 \end_inset
26378
26379  would turn off the emphasis that was anyway in effect,
26380  say,
26381  in a theorem environment.
26382 \end_layout
26383
26384 \begin_layout Description
26385 \begin_inset Flex Code
26386 status collapsed
26387
26388 \begin_layout Plain Layout
26389 Series
26390 \end_layout
26391
26392 \end_inset
26393
26394  [
26395 \begin_inset Flex Code
26396 status collapsed
26397
26398 \begin_layout Plain Layout
26399
26400 \emph on
26401 Medium
26402 \end_layout
26403
26404 \end_inset
26405
26406 ,
26407  
26408 \begin_inset Flex Code
26409 status collapsed
26410
26411 \begin_layout Plain Layout
26412 Bold
26413 \end_layout
26414
26415 \end_inset
26416
26417
26418 \end_layout
26419
26420 \begin_layout Description
26421 \begin_inset Flex Code
26422 status collapsed
26423
26424 \begin_layout Plain Layout
26425 Shape
26426 \end_layout
26427
26428 \end_inset
26429
26430  [
26431 \begin_inset Flex Code
26432 status collapsed
26433
26434 \begin_layout Plain Layout
26435
26436 \emph on
26437 Up
26438 \end_layout
26439
26440 \end_inset
26441
26442 ,
26443  
26444 \begin_inset Flex Code
26445 status collapsed
26446
26447 \begin_layout Plain Layout
26448 Italic
26449 \end_layout
26450
26451 \end_inset
26452
26453 ,
26454  
26455 \begin_inset Flex Code
26456 status collapsed
26457
26458 \begin_layout Plain Layout
26459 SmallCaps
26460 \end_layout
26461
26462 \end_inset
26463
26464 ,
26465  
26466 \begin_inset Flex Code
26467 status collapsed
26468
26469 \begin_layout Plain Layout
26470 Slanted
26471 \end_layout
26472
26473 \end_inset
26474
26475
26476 \end_layout
26477
26478 \begin_layout Description
26479 \begin_inset Flex Code
26480 status collapsed
26481
26482 \begin_layout Plain Layout
26483 Size
26484 \end_layout
26485
26486 \end_inset
26487
26488  [
26489 \begin_inset Flex Code
26490 status collapsed
26491
26492 \begin_layout Plain Layout
26493 tiny
26494 \end_layout
26495
26496 \end_inset
26497
26498 ,
26499  
26500 \begin_inset Flex Code
26501 status collapsed
26502
26503 \begin_layout Plain Layout
26504 small
26505 \end_layout
26506
26507 \end_inset
26508
26509 ,
26510  
26511 \begin_inset Flex Code
26512 status collapsed
26513
26514 \begin_layout Plain Layout
26515
26516 \emph on
26517 normal
26518 \end_layout
26519
26520 \end_inset
26521
26522 ,
26523  
26524 \begin_inset Flex Code
26525 status collapsed
26526
26527 \begin_layout Plain Layout
26528 large
26529 \end_layout
26530
26531 \end_inset
26532
26533 ,
26534  
26535 \begin_inset Flex Code
26536 status collapsed
26537
26538 \begin_layout Plain Layout
26539 larger
26540 \end_layout
26541
26542 \end_inset
26543
26544 ,
26545  
26546 \begin_inset Flex Code
26547 status collapsed
26548
26549 \begin_layout Plain Layout
26550 largest
26551 \end_layout
26552
26553 \end_inset
26554
26555 ,
26556  
26557 \begin_inset Flex Code
26558 status collapsed
26559
26560 \begin_layout Plain Layout
26561 huge
26562 \end_layout
26563
26564 \end_inset
26565
26566 ,
26567  
26568 \begin_inset Flex Code
26569 status collapsed
26570
26571 \begin_layout Plain Layout
26572 giant
26573 \end_layout
26574
26575 \end_inset
26576
26577 ]
26578 \end_layout
26579
26580 \begin_layout Subsection
26581 \begin_inset CommandInset label
26582 LatexCommand label
26583 name "subsec:Citation-engine-description"
26584
26585 \end_inset
26586
26587 Cite engine description
26588 \end_layout
26589
26590 \begin_layout Standard
26591 The 
26592 \begin_inset Flex Code
26593 status collapsed
26594
26595 \begin_layout Plain Layout
26596 CiteEngine
26597 \end_layout
26598
26599 \end_inset
26600
26601  blocks,
26602  as used mainly in cite engine files (see 
26603 \begin_inset CommandInset ref
26604 LatexCommand ref
26605 reference "subsec:Cite-Engine-Files"
26606 plural "false"
26607 caps "false"
26608 noprefix "false"
26609 nolink "false"
26610
26611 \end_inset
26612
26613 ),
26614  define the citation commands provided by a specific 
26615 \begin_inset Quotes eld
26616 \end_inset
26617
26618 cite engine
26619 \begin_inset Quotes erd
26620 \end_inset
26621
26622 .
26623  A cite engine,
26624  in \SpecialChar LyX
26625  terms,
26626  is way specific way to format citations,
26627  using numbers,
26628  author names and/or years.
26629  Currently,
26630  \SpecialChar LyX
26631  supports three such engine types,
26632  namely:
26633 \end_layout
26634
26635 \begin_layout Enumerate
26636 \begin_inset Flex Code
26637 status collapsed
26638
26639 \begin_layout Plain Layout
26640 default
26641 \end_layout
26642
26643 \end_inset
26644
26645 :
26646  the default Bib\SpecialChar TeX
26647  way to format citations,
26648  a simple numeric style (e.
26649 \begin_inset space \thinspace{}
26650 \end_inset
26651
26652 g.,
26653  
26654 \begin_inset Quotes eld
26655 \end_inset
26656
26657 [1]
26658 \begin_inset Quotes erd
26659 \end_inset
26660
26661 )
26662 \end_layout
26663
26664 \begin_layout Enumerate
26665 \begin_inset Flex Code
26666 status collapsed
26667
26668 \begin_layout Plain Layout
26669 authoryear
26670 \end_layout
26671
26672 \end_inset
26673
26674 :
26675  Harvard-styled citations using author names and publication year (e.
26676 \begin_inset space \thinspace{}
26677 \end_inset
26678
26679 g.,
26680  
26681 \begin_inset Quotes eld
26682 \end_inset
26683
26684 Smith and Miller (2017b)
26685 \begin_inset Quotes erd
26686 \end_inset
26687
26688 )
26689 \end_layout
26690
26691 \begin_layout Enumerate
26692 \begin_inset Flex Code
26693 status collapsed
26694
26695 \begin_layout Plain Layout
26696 numerical
26697 \end_layout
26698
26699 \end_inset
26700
26701 :
26702  extended numerical citations that also allow for author or title next to the number (e.
26703 \begin_inset space \thinspace{}
26704 \end_inset
26705
26706 g.,
26707  
26708 \begin_inset Quotes eld
26709 \end_inset
26710
26711 Smith and Miller [1]
26712 \begin_inset Quotes erd
26713 \end_inset
26714
26715 )
26716 \end_layout
26717
26718 \begin_layout Standard
26719 \begin_inset Flex Code
26720 status collapsed
26721
26722 \begin_layout Plain Layout
26723 CiteEngine
26724 \end_layout
26725
26726 \end_inset
26727
26728  blocks look like this:
26729 \end_layout
26730
26731 \begin_layout LyX-Code
26732 CiteEngine default
26733 \end_layout
26734
26735 \begin_layout LyX-Code
26736  cite
26737 \end_layout
26738
26739 \begin_layout LyX-Code
26740  Citep*[][]
26741 \end_layout
26742
26743 \begin_layout LyX-Code
26744  citeyearpar[][]=parencite*
26745 \end_layout
26746
26747 \begin_layout LyX-Code
26748  ...
26749 \end_layout
26750
26751 \begin_layout LyX-Code
26752 End
26753 \end_layout
26754
26755 \begin_layout Standard
26756 The tag following 
26757 \begin_inset Flex Code
26758 status collapsed
26759
26760 \begin_layout Plain Layout
26761 CiteEngine
26762 \end_layout
26763
26764 \end_inset
26765
26766  denotes the engine.
26767  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
26768  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
26769  command and the \SpecialChar LaTeX
26770  output or more complex in order to differentiate things.
26771  The full syntax is:
26772 \end_layout
26773
26774 \begin_layout LyX-Code
26775 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
26776 \end_layout
26777
26778 \begin_layout Itemize
26779 \begin_inset Flex Code
26780 status collapsed
26781
26782 \begin_layout Plain Layout
26783 LyXName
26784 \end_layout
26785
26786 \end_inset
26787
26788 :
26789  The name as used in the 
26790 \begin_inset Flex Code
26791 status collapsed
26792
26793 \begin_layout Plain Layout
26794 *.lyx
26795 \end_layout
26796
26797 \end_inset
26798
26799  file.
26800 \end_layout
26801
26802 \begin_deeper
26803 \begin_layout Standard
26804 For portability reasons,
26805  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
26806  and thus we need to differentiate a 
26807 \begin_inset Flex Code
26808 status collapsed
26809
26810 \begin_layout Plain Layout
26811 latexcmd
26812 \end_layout
26813
26814 \end_inset
26815
26816  sometimes,
26817  if the \SpecialChar LaTeX
26818  command names differ).
26819 \end_layout
26820
26821 \end_deeper
26822 \begin_layout Itemize
26823 \begin_inset Flex Code
26824 status collapsed
26825
26826 \begin_layout Plain Layout
26827 alias
26828 \end_layout
26829
26830 \end_inset
26831
26832 :
26833  a (comma-separated) list of commands that fall back to the given 
26834 \begin_inset Flex Code
26835 status collapsed
26836
26837 \begin_layout Plain Layout
26838 LyXName
26839 \end_layout
26840
26841 \end_inset
26842
26843  in the current engine.
26844  This eases the switch of citation packages and engines.
26845  The 
26846 \begin_inset Flex Code
26847 status collapsed
26848
26849 \begin_layout Plain Layout
26850 alias
26851 \end_layout
26852
26853 \end_inset
26854
26855  can be compared to 
26856 \begin_inset Flex Code
26857 status collapsed
26858
26859 \begin_layout Plain Layout
26860 ObsoletedBy
26861 \end_layout
26862
26863 \end_inset
26864
26865  in layout definitions.
26866 \end_layout
26867
26868 \begin_layout Itemize
26869 \begin_inset Flex Code
26870 status collapsed
26871
26872 \begin_layout Plain Layout
26873 latexcmd
26874 \end_layout
26875
26876 \end_inset
26877
26878 :
26879  The actual \SpecialChar LaTeX
26880  command that is output.
26881  
26882 \end_layout
26883
26884 \begin_layout Standard
26885 \begin_inset Flex Code
26886 status collapsed
26887
26888 \begin_layout Plain Layout
26889 Alias
26890 \end_layout
26891
26892 \end_inset
26893
26894  and 
26895 \begin_inset Flex Code
26896 status collapsed
26897
26898 \begin_layout Plain Layout
26899 latexcmd
26900 \end_layout
26901
26902 \end_inset
26903
26904  are optional.
26905  If no 
26906 \begin_inset Flex Code
26907 status collapsed
26908
26909 \begin_layout Plain Layout
26910 latexcmd
26911 \end_layout
26912
26913 \end_inset
26914
26915  is given,
26916  the 
26917 \begin_inset Flex Code
26918 status collapsed
26919
26920 \begin_layout Plain Layout
26921 LyXName
26922 \end_layout
26923
26924 \end_inset
26925
26926  will be output to \SpecialChar LaTeX
26927 .
26928 \end_layout
26929
26930 \begin_layout Standard
26931 Note further:
26932 \end_layout
26933
26934 \begin_layout Itemize
26935 Capitalization indicates that the command also has a capitalized form (
26936 \begin_inset Flex Code
26937 status collapsed
26938
26939 \begin_layout Plain Layout
26940
26941 \backslash
26942 Latexcmd
26943 \end_layout
26944
26945 \end_inset
26946
26947  vs.
26948  
26949 \begin_inset Flex Code
26950 status collapsed
26951
26952 \begin_layout Plain Layout
26953
26954 \backslash
26955 latexcmd
26956 \end_layout
26957
26958 \end_inset
26959
26960 ).
26961  These usually enforce up-casing of name prefixes (
26962 \emph on
26963 von Goethe
26964 \emph default
26965  
26966 \begin_inset Formula $\Rightarrow$
26967 \end_inset
26968
26969  
26970 \emph on
26971 Von Goethe
26972 \emph default
26973 ).
26974 \end_layout
26975
26976 \begin_layout Itemize
26977 Brackets 
26978 \begin_inset Flex Code
26979 status collapsed
26980
26981 \begin_layout Plain Layout
26982 []
26983 \end_layout
26984
26985 \end_inset
26986
26987  indicate the number of optional arguments (there can be 0–2).
26988 \end_layout
26989
26990 \begin_layout Itemize
26991 A star 
26992 \begin_inset Flex Code
26993 status collapsed
26994
26995 \begin_layout Plain Layout
26996 *
26997 \end_layout
26998
26999 \end_inset
27000
27001  indicates there is a starred version of the command (
27002 \begin_inset Flex Code
27003 status collapsed
27004
27005 \begin_layout Plain Layout
27006
27007 \backslash
27008 latexcmd*
27009 \end_layout
27010
27011 \end_inset
27012
27013  vs.
27014  
27015 \begin_inset Flex Code
27016 status collapsed
27017
27018 \begin_layout Plain Layout
27019
27020 \backslash
27021 latexcmd
27022 \end_layout
27023
27024 \end_inset
27025
27026 ).
27027  
27028 \end_layout
27029
27030 \begin_deeper
27031 \begin_layout Standard
27032 By default,
27033  the starred version means:
27034  Output all authors even if it should be shortened with 
27035 \begin_inset Quotes eld
27036 \end_inset
27037
27038 et al.
27039 \begin_inset Quotes erd
27040 \end_inset
27041
27042  due to the 
27043 \begin_inset Flex Code
27044 status collapsed
27045
27046 \begin_layout Plain Layout
27047 MaxCiteNames
27048 \end_layout
27049
27050 \end_inset
27051
27052  threshold.
27053 \end_layout
27054
27055 \begin_layout Standard
27056 If the star has a different meaning for a given command,
27057  it can be specified in angle brackets:
27058  
27059 \begin_inset Flex Code
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063 <!_stardesc!_stardesctooltip>
27064 \end_layout
27065
27066 \end_inset
27067
27068 .
27069  Maximal two translatable macro keywords,
27070  marked by the prefix 
27071 \begin_inset Flex Code
27072 status collapsed
27073
27074 \begin_layout Plain Layout
27075 !_
27076 \end_layout
27077
27078 \end_inset
27079
27080 ,
27081  can be given.
27082  The first points to the string that replaces the 
27083 \begin_inset Quotes eld
27084 \end_inset
27085
27086 Full aut&hor list
27087 \begin_inset Quotes erd
27088 \end_inset
27089
27090  checkbox label in the citation dialog,
27091  the second one to an optional tool tip for this checkbox.
27092  
27093 \end_layout
27094
27095 \begin_layout Standard
27096 Note that these two macros have to be defined in a 
27097 \begin_inset Flex Code
27098 status collapsed
27099
27100 \begin_layout Plain Layout
27101 CiteFormat
27102 \end_layout
27103
27104 \end_inset
27105
27106  (see next section),
27107  dropping the 
27108 \begin_inset Flex Code
27109 status collapsed
27110
27111 \begin_layout Plain Layout
27112 !
27113 \end_layout
27114
27115 \end_inset
27116
27117  from the prefix,
27118  like this:
27119  
27120 \end_layout
27121
27122 \begin_layout LyX-Code
27123 _stardesc Sta&rred command label
27124 \end_layout
27125
27126 \begin_layout LyX-Code
27127 _stardesctooltip Tooltip for the starred command checkbox.
27128 \end_layout
27129
27130 \end_deeper
27131 \begin_layout Itemize
27132 A dollar sign 
27133 \begin_inset Flex Code
27134 status collapsed
27135
27136 \begin_layout Plain Layout
27137 $
27138 \end_layout
27139
27140 \end_inset
27141
27142  indicates that this command features 
27143 \begin_inset Quotes eld
27144 \end_inset
27145
27146 qualified citation lists
27147 \begin_inset Quotes erd
27148 \end_inset
27149
27150 .
27151  This is a 
27152 \family sans
27153 Biblatex
27154 \family default
27155 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
27156  Please refer to the 
27157 \family sans
27158 Biblatex
27159 \family default
27160  manual for details.
27161 \change_inserted -712698321 1526898670
27162
27163 \end_layout
27164
27165 \begin_layout Standard
27166
27167 \change_inserted -712698321 1526899524
27168 If you want to add a cite command to a cite engine (e.
27169 \begin_inset space \thinspace{}
27170 \end_inset
27171
27172 g.,
27173  add a specific command provided by a class),
27174  you can use 
27175 \begin_inset Flex Code
27176 status collapsed
27177
27178 \begin_layout Plain Layout
27179
27180 \change_inserted -712698321 1526898768
27181 AddToCiteEngine <engine type> \SpecialChar ldots
27182  End
27183 \change_unchanged
27184
27185 \end_layout
27186
27187 \end_inset
27188
27189 .
27190  Note that only cite commands that do not exist yet are added.
27191 \change_unchanged
27192
27193 \end_layout
27194
27195 \begin_layout Subsection
27196 \begin_inset CommandInset label
27197 LatexCommand label
27198 name "subsec:Citation-format-description"
27199
27200 \end_inset
27201
27202 Cite format description
27203 \end_layout
27204
27205 \begin_layout Standard
27206 The 
27207 \begin_inset Flex Code
27208 status collapsed
27209
27210 \begin_layout Plain Layout
27211 CiteFormat
27212 \end_layout
27213
27214 \end_inset
27215
27216  blocks are used to describe how bibliographic information should be displayed,
27217  both within \SpecialChar LyX
27218  itself (in the citation dialog and in tooltips,
27219  for example) and in XHTML output.
27220  Such a block might look like this:
27221 \end_layout
27222
27223 \begin_layout LyX-Code
27224 CiteFormat
27225 \end_layout
27226
27227 \begin_layout LyX-Code
27228  article ...
27229 \end_layout
27230
27231 \begin_layout LyX-Code
27232  book ...
27233 \end_layout
27234
27235 \begin_layout LyX-Code
27236 End
27237 \end_layout
27238
27239 \begin_layout Standard
27240 or
27241 \end_layout
27242
27243 \begin_layout LyX-Code
27244 CiteFormat
27245 \end_layout
27246
27247 \begin_layout LyX-Code
27248  cite ...
27249 \end_layout
27250
27251 \begin_layout LyX-Code
27252  citet*[][] ...
27253 \end_layout
27254
27255 \begin_layout LyX-Code
27256 End
27257 \end_layout
27258
27259 \begin_layout Standard
27260 In the first case,
27261  the individual lines define how the bibliographic information associated with an article or book,
27262  respectively,
27263  is to be displayed,
27264  and such a definition can be given for any 
27265 \begin_inset Quotes els
27266 \end_inset
27267
27268 entry type
27269 \begin_inset Quotes ers
27270 \end_inset
27271
27272  that might be present in a Bib\SpecialChar TeX
27273  file.
27274  \SpecialChar LyX
27275  defines a default format in the source code that will be used if no specific definition has been given.
27276  \SpecialChar LyX
27277  predefines several formats in the file 
27278 \begin_inset Flex Code
27279 status collapsed
27280
27281 \begin_layout Plain Layout
27282 stdciteformats.inc
27283 \end_layout
27284
27285 \end_inset
27286
27287 ,
27288  which is included in most of \SpecialChar LyX
27289 's document classes.
27290 \end_layout
27291
27292 \begin_layout Standard
27293 In the second case,
27294  the lines define how a specific citation command (in the example 
27295 \begin_inset Flex Code
27296 status collapsed
27297
27298 \begin_layout Plain Layout
27299
27300 \backslash
27301 cite
27302 \end_layout
27303
27304 \end_inset
27305
27306 ,
27307  
27308 \begin_inset Flex Code
27309 status collapsed
27310
27311 \begin_layout Plain Layout
27312
27313 \backslash
27314 citet
27315 \end_layout
27316
27317 \end_inset
27318
27319 ) is to be displayed on the citation inset label,
27320  in the citation dialog,
27321  menu or XHTML output.
27322  \SpecialChar LyX
27323  defines such formats for the citation style variants it supports via 
27324 \family sans
27325 Document\SpecialChar menuseparator
27326 Setting\SpecialChar menuseparator
27327 Bibliography\SpecialChar ldots
27328
27329 \family default
27330  in specific 
27331 \begin_inset Flex Code
27332 status collapsed
27333
27334 \begin_layout Plain Layout
27335 *.citeengine
27336 \end_layout
27337
27338 \end_inset
27339
27340  files that are shipped with \SpecialChar LyX
27341  (see 
27342 \begin_inset CommandInset ref
27343 LatexCommand ref
27344 reference "subsec:Cite-Engine-Files"
27345 plural "false"
27346 caps "false"
27347 noprefix "false"
27348 nolink "false"
27349
27350 \end_inset
27351
27352 ).
27353 \end_layout
27354
27355 \begin_layout Standard
27356 The definitions use a simple language that allows Bib\SpecialChar TeX
27357  keys to be replaced with their values.
27358  Keys should be enclosed in 
27359 \begin_inset Flex Code
27360 status collapsed
27361
27362 \begin_layout Plain Layout
27363 %
27364 \end_layout
27365
27366 \end_inset
27367
27368  signs,
27369  e.g.:
27370  
27371 \begin_inset Flex Code
27372 status collapsed
27373
27374 \begin_layout Plain Layout
27375 %author%
27376 \end_layout
27377
27378 \end_inset
27379
27380 .
27381  So a simple definition might look like this:
27382 \end_layout
27383
27384 \begin_layout LyX-Code
27385 misc %author%,
27386  
27387 \begin_inset Quotes eld
27388 \end_inset
27389
27390 %title%
27391 \begin_inset Quotes erd
27392 \end_inset
27393
27394 .
27395 \end_layout
27396
27397 \begin_layout Standard
27398 This would print the author,
27399  followed by a comma,
27400  followed by the title,
27401  in quotes,
27402  followed by a period.
27403 \end_layout
27404
27405 \begin_layout Standard
27406 Of course,
27407  sometimes you may want to print a key only if it exists.
27408  This can be done by using a conditional construction,
27409  such as:
27410  
27411 \begin_inset Flex Code
27412 status collapsed
27413
27414 \begin_layout Plain Layout
27415 {%volume%[[vol.
27416 \begin_inset space ~
27417 \end_inset
27418
27419 %volume%]]}
27420 \end_layout
27421
27422 \end_inset
27423
27424 .
27425  This says:
27426  If the 
27427 \begin_inset Flex Code
27428 status collapsed
27429
27430 \begin_layout Plain Layout
27431 volume
27432 \end_layout
27433
27434 \end_inset
27435
27436  key exists,
27437  then print 
27438 \begin_inset Quotes eld
27439 \end_inset
27440
27441 vol.
27442 \begin_inset space ~
27443 \end_inset
27444
27445
27446 \begin_inset Quotes erd
27447 \end_inset
27448
27449  followed by the volume key.
27450  It is also possible to have an else clause in the conditional,
27451  such as:
27452 \begin_inset Newline newline
27453 \end_inset
27454
27455
27456 \begin_inset Flex Code
27457 status collapsed
27458
27459 \begin_layout Plain Layout
27460 {%author%[[%author%]][[%editor%,
27461  ed.]]}
27462 \end_layout
27463
27464 \end_inset
27465
27466 .
27467 \begin_inset Newline newline
27468 \end_inset
27469
27470 Here,
27471  the 
27472 \begin_inset Flex Code
27473 status collapsed
27474
27475 \begin_layout Plain Layout
27476 author
27477 \end_layout
27478
27479 \end_inset
27480
27481  key is printed if it exists;
27482  otherwise,
27483  the editor key is printed,
27484  followed by 
27485 \begin_inset Quotes eld
27486 \end_inset
27487
27488 ,
27489 \begin_inset space ~
27490 \end_inset
27491
27492 ed.
27493 \begin_inset Quotes erd
27494 \end_inset
27495
27496  Note that the key is again enclosed in 
27497 \begin_inset Flex Code
27498 status collapsed
27499
27500 \begin_layout Plain Layout
27501 %
27502 \end_layout
27503
27504 \end_inset
27505
27506  signs;
27507  the entire conditional is enclosed in braces;
27508  and the if and else clauses are enclosed in double brackets,
27509  
27510 \begin_inset Quotes eld
27511 \end_inset
27512
27513
27514 \begin_inset Flex Code
27515 status collapsed
27516
27517 \begin_layout Plain Layout
27518 [[
27519 \end_layout
27520
27521 \end_inset
27522
27523
27524 \begin_inset Quotes eld
27525 \end_inset
27526
27527  and 
27528 \begin_inset Quotes eld
27529 \end_inset
27530
27531
27532 \begin_inset Flex Code
27533 status collapsed
27534
27535 \begin_layout Plain Layout
27536 ]]
27537 \end_layout
27538
27539 \end_inset
27540
27541
27542 \begin_inset Quotes erd
27543 \end_inset
27544
27545 .
27546  There must be no space between any of these.
27547 \end_layout
27548
27549 \begin_layout Standard
27550 Next to the entry keys,
27551  there are some special keys that can be used for these conditionals:
27552 \end_layout
27553
27554 \begin_layout Itemize
27555 \begin_inset Flex Code
27556 status collapsed
27557
27558 \begin_layout Plain Layout
27559 {%dialog%[[true]][[false]]}
27560 \end_layout
27561
27562 \end_inset
27563
27564 :
27565  process the 
27566 \begin_inset Quotes eld
27567 \end_inset
27568
27569 true
27570 \begin_inset Quotes erd
27571 \end_inset
27572
27573  part for dialogs and menus,
27574  the 
27575 \begin_inset Quotes eld
27576 \end_inset
27577
27578 false
27579 \begin_inset Quotes erd
27580 \end_inset
27581
27582  part for other contexts (workarea,
27583  export)
27584 \end_layout
27585
27586 \begin_layout Itemize
27587 \begin_inset Flex Code
27588 status collapsed
27589
27590 \begin_layout Plain Layout
27591 {%export%[[true]][[false]]}
27592 \end_layout
27593
27594 \end_inset
27595
27596 :
27597  process the 
27598 \begin_inset Quotes eld
27599 \end_inset
27600
27601 true
27602 \begin_inset Quotes erd
27603 \end_inset
27604
27605  part for export and menus,
27606  the 
27607 \begin_inset Quotes eld
27608 \end_inset
27609
27610 false
27611 \begin_inset Quotes erd
27612 \end_inset
27613
27614  part for other contexts (workarea,
27615  dialog)
27616 \end_layout
27617
27618 \begin_layout Itemize
27619 \begin_inset Flex Code
27620 status collapsed
27621
27622 \begin_layout Plain Layout
27623 {%next%[[true]]}
27624 \end_layout
27625
27626 \end_inset
27627
27628 :
27629  process the 
27630 \begin_inset Quotes eld
27631 \end_inset
27632
27633 true
27634 \begin_inset Quotes erd
27635 \end_inset
27636
27637  part if another item follows (e.
27638 \begin_inset space \thinspace{}
27639 \end_inset
27640
27641 g.,
27642  in a citation with multiple keys)
27643 \end_layout
27644
27645 \begin_layout Itemize
27646 \begin_inset Flex Code
27647 status collapsed
27648
27649 \begin_layout Plain Layout
27650 {%second%[[true]][[false]]}
27651 \end_layout
27652
27653 \end_inset
27654
27655 :
27656  process the 
27657 \begin_inset Quotes eld
27658 \end_inset
27659
27660 true
27661 \begin_inset Quotes erd
27662 \end_inset
27663
27664  if this is the second of multiple items,
27665  else the 
27666 \begin_inset Quotes eld
27667 \end_inset
27668
27669 false
27670 \begin_inset Quotes erd
27671 \end_inset
27672
27673  part
27674 \end_layout
27675
27676 \begin_layout Itemize
27677 \begin_inset Flex Code
27678 status collapsed
27679
27680 \begin_layout Plain Layout
27681 {%ifstar%[[true]][[false]]}
27682 \end_layout
27683
27684 \end_inset
27685
27686 :
27687  process the 
27688 \begin_inset Quotes eld
27689 \end_inset
27690
27691 true
27692 \begin_inset Quotes erd
27693 \end_inset
27694
27695  part for starred citation commands (such as 
27696 \begin_inset Flex Code
27697 status collapsed
27698
27699 \begin_layout Plain Layout
27700
27701 \backslash
27702 cite*
27703 \end_layout
27704
27705 \end_inset
27706
27707 ),
27708  the false part for unstarred
27709 \end_layout
27710
27711 \begin_layout Itemize
27712 \begin_inset Flex Code
27713 status collapsed
27714
27715 \begin_layout Plain Layout
27716 {%ifentrytype:<type>%[[true]][[false]]}
27717 \end_layout
27718
27719 \end_inset
27720
27721 :
27722  process the 
27723 \begin_inset Quotes eld
27724 \end_inset
27725
27726 true
27727 \begin_inset Quotes erd
27728 \end_inset
27729
27730  if the current entry type matches 
27731 \begin_inset Flex Code
27732 status collapsed
27733
27734 \begin_layout Plain Layout
27735 <type>
27736 \end_layout
27737
27738 \end_inset
27739
27740 ,
27741  else the false part (e.g.,
27742  in a citation definition:
27743  
27744 \begin_inset Flex Code
27745 status collapsed
27746
27747 \begin_layout Plain Layout
27748 {%ifentrytype:book%[[this is a book]][[this is no book]]}
27749 \end_layout
27750
27751 \end_inset
27752
27753 )
27754 \end_layout
27755
27756 \begin_layout Itemize
27757 \begin_inset Flex Code
27758 status collapsed
27759
27760 \begin_layout Plain Layout
27761 {%ifmultiple:<authortype>%[[true]][[false]]}
27762 \end_layout
27763
27764 \end_inset
27765
27766 :
27767  process the 
27768 \begin_inset Quotes eld
27769 \end_inset
27770
27771 true
27772 \begin_inset Quotes erd
27773 \end_inset
27774
27775  if the current author type (author,
27776  editor etc.) has multiple authors,
27777  else the false part (e.g.,
27778  in a bibliography definition:
27779  
27780 \begin_inset Flex Code
27781 status collapsed
27782
27783 \begin_layout Plain Layout
27784 {%ifmultiple:editor%[[eds.]][[ed.]]}
27785 \end_layout
27786
27787 \end_inset
27788
27789 )
27790 \end_layout
27791
27792 \begin_layout Itemize
27793 \begin_inset Flex Code
27794 status collapsed
27795
27796 \begin_layout Plain Layout
27797 {%ifqualified%[[true]][[false]]}
27798 \end_layout
27799
27800 \end_inset
27801
27802 :
27803  process the 
27804 \begin_inset Quotes eld
27805 \end_inset
27806
27807 true
27808 \begin_inset Quotes erd
27809 \end_inset
27810
27811  part if the current citation is a qualified citation list (a specific 
27812 \family sans
27813 Biblatex
27814 \family default
27815  format for multi-reference citations),
27816  the false part if this is not the case.
27817 \end_layout
27818
27819 \begin_layout Standard
27820 We said that 
27821 \begin_inset Flex Code
27822 status collapsed
27823
27824 \begin_layout Plain Layout
27825 %author%
27826 \end_layout
27827
27828 \end_inset
27829
27830  prints the author key as it is recorded in the bibliography file.
27831  This might not be what you want,
27832  since it will result in a string such as 
27833 \begin_inset Quotes eld
27834 \end_inset
27835
27836 Miller,
27837  Peter and Smith,
27838  Mary and White,
27839  Jane
27840 \begin_inset Quotes erd
27841 \end_inset
27842
27843  (since 
27844 \begin_inset Quotes eld
27845 \end_inset
27846
27847 and
27848 \begin_inset Quotes erd
27849 \end_inset
27850
27851  is used by Bib\SpecialChar TeX
27852  to delimit authors).
27853  \SpecialChar LyX
27854  therefore provides some methods to get properly formatted name lists (which will also get translated).
27855  The following keys are provided:
27856 \end_layout
27857
27858 \begin_layout Enumerate
27859 For name lists with pre- and surname,
27860  suitable for the main authors/editors of a bibliography item.
27861  The 
27862 \begin_inset Flex Code
27863 status collapsed
27864
27865 \begin_layout Plain Layout
27866 <nametype>
27867 \end_layout
27868
27869 \end_inset
27870
27871  part denotes the kind of list that is requested (e.g.
27872  
27873 \begin_inset Flex Code
27874 status collapsed
27875
27876 \begin_layout Plain Layout
27877 <nametype:author>
27878 \end_layout
27879
27880 \end_inset
27881
27882 ):
27883 \end_layout
27884
27885 \begin_deeper
27886 \begin_layout Itemize
27887 \begin_inset Flex Code
27888 status collapsed
27889
27890 \begin_layout Plain Layout
27891 %abbrvnames:<nametype>%
27892 \end_layout
27893
27894 \end_inset
27895
27896 :
27897  Provides a name list which is abbreviated (with 
27898 \begin_inset Quotes eld
27899 \end_inset
27900
27901 et al.
27902 \begin_inset Quotes erd
27903 \end_inset
27904
27905 ) when 
27906 \begin_inset Flex Code
27907 status collapsed
27908
27909 \begin_layout Plain Layout
27910 MaxCiteNames
27911 \end_layout
27912
27913 \end_inset
27914
27915  is reached.
27916 \end_layout
27917
27918 \begin_layout Itemize
27919 \begin_inset Flex Code
27920 status collapsed
27921
27922 \begin_layout Plain Layout
27923 %fullnames:<nametype>%
27924 \end_layout
27925
27926 \end_inset
27927
27928 :
27929  Provides a full name list (never abbreviated with 
27930 \begin_inset Quotes eld
27931 \end_inset
27932
27933 et al.
27934 \begin_inset Quotes erd
27935 \end_inset
27936
27937 ).
27938 \end_layout
27939
27940 \begin_layout Itemize
27941 \begin_inset Flex Code
27942 status collapsed
27943
27944 \begin_layout Plain Layout
27945 %forceabbrvnames:<nametype>%
27946 \end_layout
27947
27948 \end_inset
27949
27950 :
27951  Provides a name list which is always abbreviated (with 
27952 \begin_inset Quotes eld
27953 \end_inset
27954
27955 et al.
27956 \begin_inset Quotes erd
27957 \end_inset
27958
27959 ) irrespective of 
27960 \begin_inset Flex Code
27961 status collapsed
27962
27963 \begin_layout Plain Layout
27964 MaxCiteNames
27965 \end_layout
27966
27967 \end_inset
27968
27969 .
27970 \end_layout
27971
27972 \end_deeper
27973 \begin_layout Enumerate
27974 Alternative name lists with pre- and surname,
27975  if the order of pre- and surname inside the bibliography item differs (as in:
27976  
27977 \begin_inset Quotes eld
27978 \end_inset
27979
27980 Miller,
27981  John:
27982  Some text,
27983  in:
27984  Mary Smith,
27985  ed.:
27986  A volume
27987 \begin_inset Quotes erd
27988 \end_inset
27989
27990 ):
27991 \end_layout
27992
27993 \begin_deeper
27994 \begin_layout Itemize
27995 \begin_inset Flex Code
27996 status collapsed
27997
27998 \begin_layout Plain Layout
27999 %abbrvbynames:<nametype>%
28000 \end_layout
28001
28002 \end_inset
28003
28004 :
28005  Provides a name list which is abbreviated (with 
28006 \begin_inset Quotes eld
28007 \end_inset
28008
28009 et al.
28010 \begin_inset Quotes erd
28011 \end_inset
28012
28013 ) when 
28014 \begin_inset Flex Code
28015 status collapsed
28016
28017 \begin_layout Plain Layout
28018 MaxCiteNames
28019 \end_layout
28020
28021 \end_inset
28022
28023  is reached.
28024 \end_layout
28025
28026 \begin_layout Itemize
28027 \begin_inset Flex Code
28028 status collapsed
28029
28030 \begin_layout Plain Layout
28031 %fullbynames:<nametype>%
28032 \end_layout
28033
28034 \end_inset
28035
28036 :
28037  Provides a full name list (never abbreviated with 
28038 \begin_inset Quotes eld
28039 \end_inset
28040
28041 et al.
28042 \begin_inset Quotes erd
28043 \end_inset
28044
28045 ).
28046 \end_layout
28047
28048 \begin_layout Itemize
28049 \begin_inset Flex Code
28050 status collapsed
28051
28052 \begin_layout Plain Layout
28053 %forceabbrvbynames:<nametype>%
28054 \end_layout
28055
28056 \end_inset
28057
28058 :
28059  Provides a name list which is always abbreviated (with 
28060 \begin_inset Quotes eld
28061 \end_inset
28062
28063 et al.
28064 \begin_inset Quotes erd
28065 \end_inset
28066
28067 ) irrespective of 
28068 \begin_inset Flex Code
28069 status collapsed
28070
28071 \begin_layout Plain Layout
28072 MaxCiteNames
28073 \end_layout
28074
28075 \end_inset
28076
28077 .
28078 \end_layout
28079
28080 \end_deeper
28081 \begin_layout Enumerate
28082 And finally name lists which consist of family names only,
28083  as used in author-year citation labels.
28084  These do not take a 
28085 \begin_inset Flex Code
28086 status collapsed
28087
28088 \begin_layout Plain Layout
28089 <nametype>
28090 \end_layout
28091
28092 \end_inset
28093
28094  part,
28095  but always return either an author list or,
28096  if this does not exist,
28097  an editor list (as common in author-year labels):
28098 \end_layout
28099
28100 \begin_deeper
28101 \begin_layout Itemize
28102 \begin_inset Flex Code
28103 status collapsed
28104
28105 \begin_layout Plain Layout
28106 %abbrvciteauthor%
28107 \end_layout
28108
28109 \end_inset
28110
28111 :
28112  Provides a name list which is abbreviated (with 
28113 \begin_inset Quotes eld
28114 \end_inset
28115
28116 et al.
28117 \begin_inset Quotes erd
28118 \end_inset
28119
28120 ) when 
28121 \begin_inset Flex Code
28122 status collapsed
28123
28124 \begin_layout Plain Layout
28125 MaxCiteNames
28126 \end_layout
28127
28128 \end_inset
28129
28130  is reached.
28131 \end_layout
28132
28133 \begin_layout Itemize
28134 \begin_inset Flex Code
28135 status collapsed
28136
28137 \begin_layout Plain Layout
28138 %fullciteauthor%
28139 \end_layout
28140
28141 \end_inset
28142
28143 :
28144  Provides a full name list (never abbreviated with 
28145 \begin_inset Quotes eld
28146 \end_inset
28147
28148 et al.
28149 \begin_inset Quotes erd
28150 \end_inset
28151
28152 ).
28153 \end_layout
28154
28155 \begin_layout Itemize
28156 \begin_inset Flex Code
28157 status collapsed
28158
28159 \begin_layout Plain Layout
28160 %forceabbrvciteauthor%
28161 \end_layout
28162
28163 \end_inset
28164
28165 :
28166  Provides a name list which is always abbreviated (with 
28167 \begin_inset Quotes eld
28168 \end_inset
28169
28170 et al.
28171 \begin_inset Quotes erd
28172 \end_inset
28173
28174 ) irrespective of 
28175 \begin_inset Flex Code
28176 status collapsed
28177
28178 \begin_layout Plain Layout
28179 MaxCiteNames
28180 \end_layout
28181
28182 \end_inset
28183
28184 .
28185 \end_layout
28186
28187 \end_deeper
28188 \begin_layout Standard
28189 The order of pre- and surname in the former two lists can be adjusted by these macros:
28190 \end_layout
28191
28192 \begin_layout Itemize
28193 \begin_inset Flex Code
28194 status collapsed
28195
28196 \begin_layout Plain Layout
28197 !firstnameform %surname%,
28198  %prename%
28199 \end_layout
28200
28201 \end_inset
28202
28203  (first author in lists of type 1)
28204 \end_layout
28205
28206 \begin_layout Itemize
28207 \begin_inset Flex Code
28208 status collapsed
28209
28210 \begin_layout Plain Layout
28211 !othernameform %surname%,
28212  %prename%
28213 \end_layout
28214
28215 \end_inset
28216
28217  (other authors in lists of type 1)
28218 \end_layout
28219
28220 \begin_layout Itemize
28221 \begin_inset Flex Code
28222 status collapsed
28223
28224 \begin_layout Plain Layout
28225 !firstbynameform %prename% %surname%
28226 \end_layout
28227
28228 \end_inset
28229
28230  (first author in lists of type 2)
28231 \end_layout
28232
28233 \begin_layout Itemize
28234 \begin_inset Flex Code
28235 status collapsed
28236
28237 \begin_layout Plain Layout
28238 !otherbynameform %prename% %surname%
28239 \end_layout
28240
28241 \end_inset
28242
28243  (other authors in lists of type 2)
28244 \end_layout
28245
28246 \begin_layout Standard
28247 This allows you to configure namings like 
28248 \begin_inset Quotes eld
28249 \end_inset
28250
28251 Miller,
28252  Peter and Mary Smith:
28253  \SpecialChar ldots
28254 ,
28255  in:
28256  John Doe and Pat Green,
28257  eds.:\SpecialChar ldots
28258
28259 \begin_inset Quotes erd
28260 \end_inset
28261
28262 .
28263 \end_layout
28264
28265 \begin_layout Standard
28266 There is one other piece of syntax available in definitions,
28267  which looks like this:
28268  
28269 \begin_inset Flex Code
28270 status collapsed
28271
28272 \begin_layout Plain Layout
28273 {!<i>!}
28274 \end_layout
28275
28276 \end_inset
28277
28278 .
28279  This defines a piece of formatting information that is to be used when creating 
28280 \begin_inset Quotes eld
28281 \end_inset
28282
28283 rich text
28284 \begin_inset Quotes erd
28285 \end_inset
28286
28287 .
28288  Obviously,
28289  we do not want to output HTML tags when writing plain text,
28290  so they should be wrapped in 
28291 \begin_inset Quotes eld
28292 \end_inset
28293
28294 {!
28295 \begin_inset Quotes erd
28296 \end_inset
28297
28298  and 
28299 \begin_inset Quotes eld
28300 \end_inset
28301
28302 !}
28303 \begin_inset Quotes erd
28304 \end_inset
28305
28306 .
28307 \end_layout
28308
28309 \begin_layout Standard
28310 Two special sorts of definitions are also possible in a 
28311 \begin_inset Flex Code
28312 status collapsed
28313
28314 \begin_layout Plain Layout
28315 CiteFormat
28316 \end_layout
28317
28318 \end_inset
28319
28320  block.
28321  An example of the first would be:
28322 \end_layout
28323
28324 \begin_layout LyX-Code
28325 !quotetitle 
28326 \begin_inset Quotes eld
28327 \end_inset
28328
28329 %title%
28330 \begin_inset Quotes erd
28331 \end_inset
28332
28333
28334 \end_layout
28335
28336 \begin_layout Standard
28337 This is an abbreviation,
28338  or macro,
28339  and it can be used by treating it as if it were a key:
28340  
28341 \begin_inset Flex Code
28342 status collapsed
28343
28344 \begin_layout Plain Layout
28345 %!quotetitle%
28346 \end_layout
28347
28348 \end_inset
28349
28350 .
28351  \SpecialChar LyX
28352  will treat 
28353 \begin_inset Flex Code
28354 status collapsed
28355
28356 \begin_layout Plain Layout
28357 %!quotetitle%
28358 \end_layout
28359
28360 \end_inset
28361
28362  exactly as it would treat its definition.
28363  So,
28364  let us issue the obvious 
28365 \emph on
28366 warning
28367 \emph default
28368 .
28369  Do not do this:
28370 \end_layout
28371
28372 \begin_layout LyX-Code
28373 !funfun %funfun%
28374 \end_layout
28375
28376 \begin_layout Standard
28377 or anything like it.
28378  \SpecialChar LyX
28379  shouldn't go into an infinite loop,
28380  but it may go into a long one before it gives up.
28381 \end_layout
28382
28383 \begin_layout Standard
28384 The second sort of special definition might look like this:
28385 \end_layout
28386
28387 \begin_layout LyX-Code
28388 B_pptext pp.
28389 \end_layout
28390
28391 \begin_layout Standard
28392 This defines a translatable piece of text,
28393  which allows relevant parts of the bibliography or citation to be translated.
28394  It can be included in a definition by treating it as a key:
28395  
28396 \begin_inset Flex Code
28397 status collapsed
28398
28399 \begin_layout Plain Layout
28400 %B_pptext%
28401 \end_layout
28402
28403 \end_inset
28404
28405 .
28406  Note that there are two different translation paths:
28407  All definitions starting with 
28408 \begin_inset Flex Code
28409 status collapsed
28410
28411 \begin_layout Plain Layout
28412 B_
28413 \end_layout
28414
28415 \end_inset
28416
28417 ,
28418  such as in the example above,
28419  will be translated to the currently active buffer language (so the translation will match the generated document).
28420  All definitions starting with underscore only will be translated to the GUI language.
28421  This is the proper translation for strings that only occur in the dialogs or on buttons,
28422  such as this one:
28423 \end_layout
28424
28425 \begin_layout LyX-Code
28426 _addtobib Add to bibliography only.
28427 \end_layout
28428
28429 \begin_layout Standard
28430 Several of these translatable strings are predefined in 
28431 \begin_inset Flex Code
28432 status collapsed
28433
28434 \begin_layout Plain Layout
28435 stdciteformats.inc
28436 \end_layout
28437
28438 \end_inset
28439
28440  and the diverse 
28441 \begin_inset Flex Code
28442 status collapsed
28443
28444 \begin_layout Plain Layout
28445 *.citeengine
28446 \end_layout
28447
28448 \end_inset
28449
28450  files.
28451  Note that these are not macros,
28452  in the sense just defined.
28453  They will not be expanded.
28454 \end_layout
28455
28456 \begin_layout Standard
28457 So here then is an example that uses several of these features:
28458 \begin_inset VSpace defskip
28459 \end_inset
28460
28461
28462 \end_layout
28463
28464 \begin_layout Standard
28465 \noindent
28466
28467 \family sans
28468 !authoredit {%author%[[%author%,
28469  ]][[{%editor%[[%editor%,
28470  %B_edtext%,
28471  ]]}]]}
28472 \end_layout
28473
28474 \begin_layout Standard
28475 \begin_inset VSpace defskip
28476 \end_inset
28477
28478 This defines a macro that prints the author,
28479  followed by a comma,
28480  if the 
28481 \begin_inset Flex Code
28482 status collapsed
28483
28484 \begin_layout Plain Layout
28485 author
28486 \end_layout
28487
28488 \end_inset
28489
28490  key is defined,
28491  or else prints the name of the editor,
28492  followed by the 
28493 \begin_inset Flex Code
28494 status collapsed
28495
28496 \begin_layout Plain Layout
28497 B_edtext
28498 \end_layout
28499
28500 \end_inset
28501
28502  or its translation (it is by default 
28503 \begin_inset Quotes eld
28504 \end_inset
28505
28506 ed.
28507 \begin_inset Quotes erd
28508 \end_inset
28509
28510 ),
28511  if the 
28512 \begin_inset Flex Code
28513 status collapsed
28514
28515 \begin_layout Plain Layout
28516 editor
28517 \end_layout
28518
28519 \end_inset
28520
28521  key is defined.
28522  Note that this is in fact defined in 
28523 \begin_inset Flex Code
28524 status collapsed
28525
28526 \begin_layout Plain Layout
28527 stdciteformats.inc
28528 \end_layout
28529
28530 \end_inset
28531
28532 ,
28533  so you can use it in your own definitions,
28534  or re-definitions,
28535  if you load that file first.
28536 \end_layout
28537
28538 \begin_layout Section
28539 \begin_inset CommandInset label
28540 LatexCommand label
28541 name "sec:Tags-for-XHTML"
28542
28543 \end_inset
28544
28545 Tags for XHTML output
28546 \end_layout
28547
28548 \begin_layout Standard
28549 As with \SpecialChar LaTeX
28550  or DocBook,
28551  the format of \SpecialChar LyX
28552 's XHTML output is also controlled by layout information.
28553  In general,
28554  \SpecialChar LyX
28555  provides sensible defaults and,
28556  as mentioned earlier,
28557  it will even construct default CSS style rules from the other layout tags.
28558  For example,
28559  \SpecialChar LyX
28560  will attempt to use the information provided in the 
28561 \begin_inset Flex Code
28562 status collapsed
28563
28564 \begin_layout Plain Layout
28565 Font
28566 \end_layout
28567
28568 \end_inset
28569
28570  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
28571 \end_layout
28572
28573 \begin_layout Standard
28574 In many cases,
28575  then,
28576  you may not have to do anything at all to get acceptable XHTML output for your own environments,
28577  custom insets,
28578  and so forth.
28579  But in some cases you will,
28580  and so \SpecialChar LyX
28581  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
28582 \end_layout
28583
28584 \begin_layout Standard
28585 Note that there are two tags,
28586  
28587 \begin_inset Flex Code
28588 status collapsed
28589
28590 \begin_layout Plain Layout
28591 HTMLPreamble
28592 \end_layout
28593
28594 \end_inset
28595
28596  and 
28597 \begin_inset Flex Code
28598 status collapsed
28599
28600 \begin_layout Plain Layout
28601 AddToHTMLPreamble
28602 \end_layout
28603
28604 \end_inset
28605
28606  that may appear outside style and inset declarations.
28607  See 
28608 \begin_inset CommandInset ref
28609 LatexCommand ref
28610 reference "subsec:General-text-class"
28611 nolink "false"
28612
28613 \end_inset
28614
28615  for details on these.
28616 \end_layout
28617
28618 \begin_layout Subsection
28619 \begin_inset CommandInset label
28620 LatexCommand label
28621 name "subsec:Paragraph-Style-XHTML"
28622
28623 \end_inset
28624
28625 Paragraph styles
28626 \end_layout
28627
28628 \begin_layout Standard
28629 The sort of XHTML \SpecialChar LyX
28630  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
28631  a command,
28632  or an environment,
28633  where this is itself determined by the contents of the corresponding 
28634 \begin_inset Flex Code
28635 status collapsed
28636
28637 \begin_layout Plain Layout
28638 \SpecialChar LaTeX
28639 Type
28640 \end_layout
28641
28642 \end_inset
28643
28644  tag.
28645  
28646 \end_layout
28647
28648 \begin_layout Standard
28649 For a command or normal paragraph,
28650  the output XHTML has the following form:
28651 \end_layout
28652
28653 \begin_layout LyX-Code
28654
28655 \family sans
28656 <tag attr=
28657 \begin_inset Quotes erd
28658 \end_inset
28659
28660 value
28661 \begin_inset Quotes erd
28662 \end_inset
28663
28664 >
28665 \end_layout
28666
28667 \begin_layout LyX-Code
28668
28669 \family sans
28670 <labeltag attr=
28671 \begin_inset Quotes erd
28672 \end_inset
28673
28674 value
28675 \begin_inset Quotes erd
28676 \end_inset
28677
28678 >Label</labeltag>
28679 \end_layout
28680
28681 \begin_layout LyX-Code
28682
28683 \family sans
28684 Contents of the paragraph.
28685 \end_layout
28686
28687 \begin_layout LyX-Code
28688
28689 \family sans
28690 </tag>
28691 \end_layout
28692
28693 \begin_layout Standard
28694 The label tags are of course omitted if the paragraph does not have a label.
28695 \end_layout
28696
28697 \begin_layout Standard
28698 For an environment that is not some sort of list,
28699  the XHTML takes this form:
28700 \end_layout
28701
28702 \begin_layout LyX-Code
28703
28704 \family sans
28705 <tag attr=
28706 \begin_inset Quotes erd
28707 \end_inset
28708
28709 value
28710 \begin_inset Quotes erd
28711 \end_inset
28712
28713 >
28714 \end_layout
28715
28716 \begin_layout LyX-Code
28717
28718 \family sans
28719 <itemtag attr=
28720 \begin_inset Quotes erd
28721 \end_inset
28722
28723 value
28724 \begin_inset Quotes erd
28725 \end_inset
28726
28727 ><labeltag attr=
28728 \begin_inset Quotes erd
28729 \end_inset
28730
28731 value
28732 \begin_inset Quotes erd
28733 \end_inset
28734
28735 >Environment Label</labeltag>First paragraph.</itemtag>
28736 \end_layout
28737
28738 \begin_layout LyX-Code
28739
28740 \family sans
28741 <itemtag>Second paragraph.</itemtag>
28742 \end_layout
28743
28744 \begin_layout LyX-Code
28745
28746 \family sans
28747 </tag>
28748 \end_layout
28749
28750 \begin_layout Standard
28751 Note that the label is output only for the first paragraph,
28752  as it should be for a theorem,
28753  for example.
28754  
28755 \end_layout
28756
28757 \begin_layout Standard
28758 For a list,
28759  we have one of these forms:
28760 \end_layout
28761
28762 \begin_layout LyX-Code
28763
28764 \family sans
28765 <tag attr=
28766 \begin_inset Quotes erd
28767 \end_inset
28768
28769 value
28770 \begin_inset Quotes erd
28771 \end_inset
28772
28773 >
28774 \end_layout
28775
28776 \begin_layout LyX-Code
28777
28778 \family sans
28779 <itemtag attr=
28780 \begin_inset Quotes erd
28781 \end_inset
28782
28783 value
28784 \begin_inset Quotes erd
28785 \end_inset
28786
28787 ><labeltag attr=
28788 \begin_inset Quotes erd
28789 \end_inset
28790
28791 value
28792 \begin_inset Quotes erd
28793 \end_inset
28794
28795 >List Label</labeltag>First item.</itemtag>
28796 \end_layout
28797
28798 \begin_layout LyX-Code
28799
28800 \family sans
28801 <itemtag attr=
28802 \begin_inset Quotes erd
28803 \end_inset
28804
28805 value
28806 \begin_inset Quotes erd
28807 \end_inset
28808
28809 ><labeltag attr=
28810 \begin_inset Quotes erd
28811 \end_inset
28812
28813 value
28814 \begin_inset Quotes erd
28815 \end_inset
28816
28817 >List Label</labeltag>Second item.</itemtag>
28818 \end_layout
28819
28820 \begin_layout LyX-Code
28821
28822 \family sans
28823 </tag>
28824 \end_layout
28825
28826 \begin_layout LyX-Code
28827
28828 \end_layout
28829
28830 \begin_layout LyX-Code
28831
28832 \family sans
28833 <tag attr=
28834 \begin_inset Quotes erd
28835 \end_inset
28836
28837 value
28838 \begin_inset Quotes erd
28839 \end_inset
28840
28841 >
28842 \end_layout
28843
28844 \begin_layout LyX-Code
28845
28846 \family sans
28847 <labeltag attr=
28848 \begin_inset Quotes erd
28849 \end_inset
28850
28851 value
28852 \begin_inset Quotes erd
28853 \end_inset
28854
28855 >List Label</labeltag><itemtag attr=
28856 \begin_inset Quotes erd
28857 \end_inset
28858
28859 value
28860 \begin_inset Quotes erd
28861 \end_inset
28862
28863 >First item.</itemtag>
28864 \end_layout
28865
28866 \begin_layout LyX-Code
28867
28868 \family sans
28869 <labeltag attr=
28870 \begin_inset Quotes erd
28871 \end_inset
28872
28873 value
28874 \begin_inset Quotes erd
28875 \end_inset
28876
28877 >List Label</labeltag><itemtag attr=
28878 \begin_inset Quotes erd
28879 \end_inset
28880
28881 value
28882 \begin_inset Quotes erd
28883 \end_inset
28884
28885 >Second item.</itemtag>
28886 \end_layout
28887
28888 \begin_layout LyX-Code
28889
28890 \family sans
28891 </tag>
28892 \end_layout
28893
28894 \begin_layout Standard
28895 Note the different orders of 
28896 \begin_inset Flex Code
28897 status collapsed
28898
28899 \begin_layout Plain Layout
28900 labeltag
28901 \end_layout
28902
28903 \end_inset
28904
28905  and 
28906 \begin_inset Flex Code
28907 status collapsed
28908
28909 \begin_layout Plain Layout
28910 itemtag
28911 \end_layout
28912
28913 \end_inset
28914
28915 .
28916  Which order we get depends upon the setting of 
28917 \begin_inset Flex Code
28918 status collapsed
28919
28920 \begin_layout Plain Layout
28921 HTMLLabelFirst
28922 \end_layout
28923
28924 \end_inset
28925
28926 :
28927  If 
28928 \begin_inset Flex Code
28929 status collapsed
28930
28931 \begin_layout Plain Layout
28932 HTMLLabelFirst
28933 \end_layout
28934
28935 \end_inset
28936
28937  is false (the default),
28938  you get the first of these,
28939  with the label within the item;
28940  if true,
28941  you get the second,
28942  with the label outside the item.
28943 \end_layout
28944
28945 \begin_layout Standard
28946 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
28947  As mentioned earlier,
28948  however,
28949  \SpecialChar LyX
28950  uses sensible defaults for many of these,
28951  so you often may not need to do very much to get good XHTML output.
28952  Think of the available tags as there so you can tweak things to your liking.
28953 \end_layout
28954
28955 \begin_layout Description
28956 \begin_inset Flex Code
28957 status collapsed
28958
28959 \begin_layout Plain Layout
28960 HTMLAttr
28961 \end_layout
28962
28963 \end_inset
28964
28965  [
28966 \begin_inset Flex Code
28967 status collapsed
28968
28969 \begin_layout Plain Layout
28970 string
28971 \end_layout
28972
28973 \end_inset
28974
28975 ] Specifies attribute information to be output with the main tag.
28976  For example,
28977  
28978 \begin_inset Quotes eld
28979 \end_inset
28980
28981
28982 \begin_inset Flex Code
28983 status collapsed
28984
28985 \begin_layout Plain Layout
28986 class=`mydiv'
28987 \end_layout
28988
28989 \end_inset
28990
28991
28992 \begin_inset Quotes erd
28993 \end_inset
28994
28995 .
28996  By default,
28997  \SpecialChar LyX
28998  will output 
28999 \begin_inset Quotes eld
29000 \end_inset
29001
29002
29003 \begin_inset Flex Code
29004 status collapsed
29005
29006 \begin_layout Plain Layout
29007 class=`layoutname'
29008 \end_layout
29009
29010 \end_inset
29011
29012
29013 \begin_inset Quotes erd
29014 \end_inset
29015
29016 ,
29017  where 
29018 \begin_inset Flex Code
29019 status collapsed
29020
29021 \begin_layout Plain Layout
29022 layoutname
29023 \end_layout
29024
29025 \end_inset
29026
29027  is the \SpecialChar LyX
29028  name of the layout,
29029  made lowercase,
29030  for example:
29031  chapter.
29032  This should 
29033 \emph on
29034 not
29035 \emph default
29036  contain any style information.
29037  Use 
29038 \begin_inset Flex Code
29039 status collapsed
29040
29041 \begin_layout Plain Layout
29042 HTMLStyle
29043 \end_layout
29044
29045 \end_inset
29046
29047  for that purpose.
29048 \change_inserted -584632292 1670182206
29049
29050 \end_layout
29051
29052 \begin_layout Description
29053
29054 \change_inserted -584632292 1670182369
29055 \begin_inset Flex Code
29056 status collapsed
29057
29058 \begin_layout Plain Layout
29059
29060 \change_inserted -584632292 1670182222
29061 HTMLClass
29062 \change_unchanged
29063
29064 \end_layout
29065
29066 \end_inset
29067
29068  [
29069 \begin_inset Flex Code
29070 status collapsed
29071
29072 \begin_layout Plain Layout
29073
29074 \change_inserted -584632292 1670182217
29075 string
29076 \change_unchanged
29077
29078 \end_layout
29079
29080 \end_inset
29081
29082 ] The CSS class to use for this paragraph.
29083  Note that,
29084  if the paragarph is of enumerate or itemize type,
29085  then the default will be 
29086 \begin_inset Quotes eld
29087 \end_inset
29088
29089 lyxenum
29090 \begin_inset Quotes erd
29091 \end_inset
29092
29093  or 
29094 \begin_inset Quotes eld
29095 \end_inset
29096
29097 lyxitem
29098 \begin_inset Quotes erd
29099 \end_inset
29100
29101 ,
29102  plus 
29103 \begin_inset Quotes eld
29104 \end_inset
29105
29106 i
29107 \begin_inset Quotes erd
29108 \end_inset
29109
29110 ,
29111  
29112 \begin_inset Quotes eld
29113 \end_inset
29114
29115 ii
29116 \begin_inset Quotes erd
29117 \end_inset
29118
29119 ,
29120  
29121 \begin_inset Quotes eld
29122 \end_inset
29123
29124 iii
29125 \begin_inset Quotes erd
29126 \end_inset
29127
29128 ,
29129  or 
29130 \begin_inset Quotes eld
29131 \end_inset
29132
29133 iv
29134 \begin_inset Quotes erd
29135 \end_inset
29136
29137 ,
29138  depending upon the depth.
29139  That can be over-ridden here.
29140  However,
29141  the suffix will not be added in that case.
29142  I.e.,
29143  the CSS class will always be exactly what it is declared to be here.
29144 \change_unchanged
29145
29146 \end_layout
29147
29148 \begin_layout Description
29149 \begin_inset Flex Code
29150 status collapsed
29151
29152 \begin_layout Plain Layout
29153 HTMLForceCSS
29154 \end_layout
29155
29156 \end_inset
29157
29158  [
29159 \begin_inset Flex Code
29160 status collapsed
29161
29162 \begin_layout Plain Layout
29163
29164 \emph on
29165 0
29166 \emph default
29167 ,1
29168 \end_layout
29169
29170 \end_inset
29171
29172 ] Whether to output the default CSS information \SpecialChar LyX
29173  generates for this layout,
29174  even if additional information is explicitly provided via 
29175 \begin_inset Flex Code
29176 status collapsed
29177
29178 \begin_layout Plain Layout
29179 HTMLStyle
29180 \end_layout
29181
29182 \end_inset
29183
29184 .
29185  Setting this to 
29186 \begin_inset Flex Code
29187 status collapsed
29188
29189 \begin_layout Plain Layout
29190 1
29191 \end_layout
29192
29193 \end_inset
29194
29195  allows you to alter or augment the generated CSS,
29196  rather than to override it completely.
29197  Default is 
29198 \begin_inset Flex Code
29199 status collapsed
29200
29201 \begin_layout Plain Layout
29202 0
29203 \end_layout
29204
29205 \end_inset
29206
29207 .
29208 \change_inserted -584632292 1670132213
29209
29210 \end_layout
29211
29212 \begin_layout Description
29213
29214 \change_inserted -584632292 1670132277
29215 \begin_inset Flex Code
29216 status collapsed
29217
29218 \begin_layout Plain Layout
29219
29220 \change_inserted -584632292 1670132221
29221 HTMLInToc
29222 \change_unchanged
29223
29224 \end_layout
29225
29226 \end_inset
29227
29228  [
29229 \begin_inset Flex Code
29230 status open
29231
29232 \begin_layout Plain Layout
29233
29234 \change_inserted -584632292 1670132214
29235 0,
29236 \emph on
29237 1
29238 \change_unchanged
29239
29240 \end_layout
29241
29242 \end_inset
29243
29244 ] Whether to include this paragraph (usually,
29245  a section or something of the sort) in the TOC.
29246  By default,
29247  true,
29248  so it should be set to false e.g.
29249 \begin_inset space ~
29250 \end_inset
29251
29252 for starred sections.
29253 \change_unchanged
29254
29255 \end_layout
29256
29257 \begin_layout Description
29258 \begin_inset Flex Code
29259 status collapsed
29260
29261 \begin_layout Plain Layout
29262 HTMLItem
29263 \end_layout
29264
29265 \end_inset
29266
29267  [
29268 \begin_inset Flex Code
29269 status collapsed
29270
29271 \begin_layout Plain Layout
29272 string
29273 \end_layout
29274
29275 \end_inset
29276
29277 ] The tag to be used for individual paragraphs of environments,
29278  replacing 
29279 \begin_inset Flex Code
29280 status collapsed
29281
29282 \begin_layout Plain Layout
29283 itemtag
29284 \end_layout
29285
29286 \end_inset
29287
29288  in the examples above.
29289  Defaults to 
29290 \begin_inset Flex Code
29291 status collapsed
29292
29293 \begin_layout Plain Layout
29294 div
29295 \end_layout
29296
29297 \end_inset
29298
29299 .
29300 \end_layout
29301
29302 \begin_layout Description
29303 \begin_inset Flex Code
29304 status collapsed
29305
29306 \begin_layout Plain Layout
29307 HTMLItemAttr
29308 \end_layout
29309
29310 \end_inset
29311
29312  [
29313 \begin_inset Flex Code
29314 status collapsed
29315
29316 \begin_layout Plain Layout
29317 string
29318 \end_layout
29319
29320 \end_inset
29321
29322 ] Attributes for the item tag.
29323  Defaults to
29324 \begin_inset Newline newline
29325 \end_inset
29326
29327
29328 \begin_inset Quotes eld
29329 \end_inset
29330
29331
29332 \begin_inset Flex Code
29333 status collapsed
29334
29335 \begin_layout Plain Layout
29336 class=`layoutname_item'
29337 \end_layout
29338
29339 \end_inset
29340
29341
29342 \begin_inset Quotes erd
29343 \end_inset
29344
29345 .
29346  This should 
29347 \emph on
29348 not
29349 \emph default
29350  contain any style information.
29351  Use 
29352 \begin_inset Flex Code
29353 status collapsed
29354
29355 \begin_layout Plain Layout
29356 HTMLStyle
29357 \end_layout
29358
29359 \end_inset
29360
29361  for that purpose.
29362 \end_layout
29363
29364 \begin_layout Description
29365 \begin_inset Flex Code
29366 status collapsed
29367
29368 \begin_layout Plain Layout
29369 HTMLLabel
29370 \end_layout
29371
29372 \end_inset
29373
29374  [
29375 \begin_inset Flex Code
29376 status collapsed
29377
29378 \begin_layout Plain Layout
29379 string
29380 \end_layout
29381
29382 \end_inset
29383
29384 ] The tag to be used for paragraph and item labels,
29385  replacing 
29386 \begin_inset Flex Code
29387 status collapsed
29388
29389 \begin_layout Plain Layout
29390 labeltag
29391 \end_layout
29392
29393 \end_inset
29394
29395  in the examples above.
29396  Defaults to 
29397 \begin_inset Flex Code
29398 status collapsed
29399
29400 \begin_layout Plain Layout
29401 span
29402 \end_layout
29403
29404 \end_inset
29405
29406 ,
29407  unless 
29408 \begin_inset Flex Code
29409 status collapsed
29410
29411 \begin_layout Plain Layout
29412 LabelType
29413 \end_layout
29414
29415 \end_inset
29416
29417  is either 
29418 \begin_inset Flex Code
29419 status collapsed
29420
29421 \begin_layout Plain Layout
29422 Top_Environment
29423 \end_layout
29424
29425 \end_inset
29426
29427  or 
29428 \begin_inset Flex Code
29429 status collapsed
29430
29431 \begin_layout Plain Layout
29432 Centered_Top_Environment
29433 \end_layout
29434
29435 \end_inset
29436
29437 ,
29438  in which case it defaults to 
29439 \begin_inset Flex Code
29440 status collapsed
29441
29442 \begin_layout Plain Layout
29443 div
29444 \end_layout
29445
29446 \end_inset
29447
29448 .
29449 \end_layout
29450
29451 \begin_layout Description
29452 \begin_inset Flex Code
29453 status collapsed
29454
29455 \begin_layout Plain Layout
29456 HTMLLabelAttr
29457 \end_layout
29458
29459 \end_inset
29460
29461  [
29462 \begin_inset Flex Code
29463 status collapsed
29464
29465 \begin_layout Plain Layout
29466 string
29467 \end_layout
29468
29469 \end_inset
29470
29471 ] Attributes for the label tag.
29472  Defaults to
29473 \begin_inset Newline newline
29474 \end_inset
29475
29476
29477 \begin_inset Quotes eld
29478 \end_inset
29479
29480
29481 \begin_inset Flex Code
29482 status collapsed
29483
29484 \begin_layout Plain Layout
29485 class=`layoutname_label'
29486 \end_layout
29487
29488 \end_inset
29489
29490
29491 \begin_inset Quotes erd
29492 \end_inset
29493
29494 .
29495  This should 
29496 \emph on
29497 not
29498 \emph default
29499  contain any style information.
29500  Use 
29501 \begin_inset Flex Code
29502 status collapsed
29503
29504 \begin_layout Plain Layout
29505 HTMLStyle
29506 \end_layout
29507
29508 \end_inset
29509
29510  for that purpose.
29511 \end_layout
29512
29513 \begin_layout Description
29514 \begin_inset Flex Code
29515 status collapsed
29516
29517 \begin_layout Plain Layout
29518 HTMLLabelFirst
29519 \end_layout
29520
29521 \end_inset
29522
29523  [
29524 \begin_inset Flex Code
29525 status collapsed
29526
29527 \begin_layout Plain Layout
29528
29529 \emph on
29530 0
29531 \emph default
29532 ,1
29533 \end_layout
29534
29535 \end_inset
29536
29537 ] Meaningful only for list-like environments,
29538  this tag controls whether the label tag is output before or inside the item tag.
29539  This is used,
29540  for example,
29541  in the description environment,
29542  where we want `
29543 \begin_inset Flex Code
29544 status collapsed
29545
29546 \begin_layout Plain Layout
29547 <dt>\SpecialChar ldots
29548 </dt><dd>\SpecialChar ldots
29549 </dd>
29550 \end_layout
29551
29552 \end_inset
29553
29554 .
29555  Default is 
29556 \begin_inset Flex Code
29557 status collapsed
29558
29559 \begin_layout Plain Layout
29560 0
29561 \end_layout
29562
29563 \end_inset
29564
29565 :
29566  The label tag is output inside the item tag.
29567 \end_layout
29568
29569 \begin_layout Description
29570 \begin_inset Flex Code
29571 status collapsed
29572
29573 \begin_layout Plain Layout
29574 HTMLPreamble
29575 \end_layout
29576
29577 \end_inset
29578
29579  Information to be output in the 
29580 \begin_inset Flex Code
29581 status collapsed
29582
29583 \begin_layout Plain Layout
29584 <head>
29585 \end_layout
29586
29587 \end_inset
29588
29589  section when this style is used.
29590  This might,
29591  for example,
29592  be used to include a 
29593 \begin_inset Flex Code
29594 status collapsed
29595
29596 \begin_layout Plain Layout
29597 <script>
29598 \end_layout
29599
29600 \end_inset
29601
29602  block defining an 
29603 \begin_inset Flex Code
29604 status collapsed
29605
29606 \begin_layout Plain Layout
29607 onclick
29608 \end_layout
29609
29610 \end_inset
29611
29612  handler.
29613 \end_layout
29614
29615 \begin_layout Description
29616 \begin_inset Flex Code
29617 status collapsed
29618
29619 \begin_layout Plain Layout
29620 HTMLStyle
29621 \end_layout
29622
29623 \end_inset
29624
29625  CSS style information to be included when this style is used.
29626  Note that this will automatically be wrapped in a layout-generated 
29627 \begin_inset Flex Code
29628 status collapsed
29629
29630 \begin_layout Plain Layout
29631 <style>
29632 \end_layout
29633
29634 \end_inset
29635
29636  block,
29637  so only the CSS itself need be included.
29638  Must end with 
29639 \begin_inset Flex Code
29640 status collapsed
29641
29642 \begin_layout Plain Layout
29643 EndHTMLStyle
29644 \end_layout
29645
29646 \end_inset
29647
29648 .
29649 \end_layout
29650
29651 \begin_layout Description
29652 \begin_inset Flex Code
29653 status collapsed
29654
29655 \begin_layout Plain Layout
29656 HTMLTag
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 ] The tag to be used for the main label,
29672  replacing 
29673 \begin_inset Flex Code
29674 status collapsed
29675
29676 \begin_layout Plain Layout
29677 tag
29678 \end_layout
29679
29680 \end_inset
29681
29682  in the examples above.
29683  Defaults to 
29684 \begin_inset Flex Code
29685 status collapsed
29686
29687 \begin_layout Plain Layout
29688 div
29689 \end_layout
29690
29691 \end_inset
29692
29693 .
29694 \end_layout
29695
29696 \begin_layout Description
29697 \begin_inset Flex Code
29698 status collapsed
29699
29700 \begin_layout Plain Layout
29701 HTMLTitle
29702 \end_layout
29703
29704 \end_inset
29705
29706  [
29707 \begin_inset Flex Code
29708 status collapsed
29709
29710 \begin_layout Plain Layout
29711
29712 \emph on
29713 0
29714 \emph default
29715 ,1
29716 \end_layout
29717
29718 \end_inset
29719
29720 ] Marks this style as the one to be used to generate the 
29721 \begin_inset Flex Code
29722 status collapsed
29723
29724 \begin_layout Plain Layout
29725 <title>
29726 \end_layout
29727
29728 \end_inset
29729
29730  tag for the XHTML file.
29731  By default,
29732  it is false.
29733  The 
29734 \begin_inset Flex Code
29735 status collapsed
29736
29737 \begin_layout Plain Layout
29738 stdtitle.inc
29739 \end_layout
29740
29741 \end_inset
29742
29743  file sets it to true for the 
29744 \begin_inset Flex Code
29745 status collapsed
29746
29747 \begin_layout Plain Layout
29748 title
29749 \end_layout
29750
29751 \end_inset
29752
29753  environment.
29754  
29755 \end_layout
29756
29757 \begin_layout Subsection
29758 InsetLayout XHTML
29759 \end_layout
29760
29761 \begin_layout Standard
29762 The XHTML output of insets can also be controlled by information in layout files.
29763 \begin_inset Foot
29764 status collapsed
29765
29766 \begin_layout Plain Layout
29767 At present,
29768  this is true only for 
29769 \begin_inset Quotes eld
29770 \end_inset
29771
29772 text
29773 \begin_inset Quotes erd
29774 \end_inset
29775
29776  insets (insets you can type into) and is not true for 
29777 \begin_inset Quotes eld
29778 \end_inset
29779
29780 command
29781 \begin_inset Quotes erd
29782 \end_inset
29783
29784  insets (insets that are associated with dialog boxes).
29785 \end_layout
29786
29787 \end_inset
29788
29789  Here,
29790  too,
29791  \SpecialChar LyX
29792  tries to provide sensible defaults,
29793  and it constructs default CSS style rules.
29794  But everything can be customized.
29795 \end_layout
29796
29797 \begin_layout Standard
29798 The XHTML \SpecialChar LyX
29799  outputs for an inset has the following form:
29800 \end_layout
29801
29802 \begin_layout LyX-Code
29803 <tag attr=
29804 \begin_inset Quotes erd
29805 \end_inset
29806
29807 value
29808 \begin_inset Quotes erd
29809 \end_inset
29810
29811 >
29812 \end_layout
29813
29814 \begin_layout LyX-Code
29815 <labeltag>Label</labeltag>
29816 \end_layout
29817
29818 \begin_layout LyX-Code
29819 <innertag attr=
29820 \begin_inset Quotes erd
29821 \end_inset
29822
29823 value
29824 \begin_inset Quotes erd
29825 \end_inset
29826
29827 >Contents of the inset.</innertag>
29828 \end_layout
29829
29830 \begin_layout LyX-Code
29831 </tag>
29832 \end_layout
29833
29834 \begin_layout Standard
29835 If the inset permits multiple paragraphs—
29836 that is,
29837  if 
29838 \begin_inset Flex Code
29839 status collapsed
29840
29841 \begin_layout Plain Layout
29842 MultiPar
29843 \end_layout
29844
29845 \end_inset
29846
29847  is true—
29848 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
29849  quote,
29850  and the like).
29851  The label tag is of course omitted if the paragraph does not have a label and,
29852  at present,
29853  is always 
29854 \begin_inset Flex Code
29855 status collapsed
29856
29857 \begin_layout Plain Layout
29858 span
29859 \end_layout
29860
29861 \end_inset
29862
29863 .
29864  The inner tag is optional and,
29865  by default,
29866  does not appear.
29867 \end_layout
29868
29869 \begin_layout Standard
29870 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
29871 \end_layout
29872
29873 \begin_layout Description
29874 \begin_inset Flex Code
29875 status collapsed
29876
29877 \begin_layout Plain Layout
29878 HTMLAttr
29879 \end_layout
29880
29881 \end_inset
29882
29883  [
29884 \begin_inset Flex Code
29885 status collapsed
29886
29887 \begin_layout Plain Layout
29888 string
29889 \end_layout
29890
29891 \end_inset
29892
29893 ] Specifies attribute information to be output with the main tag.
29894  For example,
29895  
29896 \begin_inset Quotes eld
29897 \end_inset
29898
29899
29900 \begin_inset Flex Code
29901 status collapsed
29902
29903 \begin_layout Plain Layout
29904 class=`myinset' onclick=`\SpecialChar ldots
29905 '
29906 \end_layout
29907
29908 \end_inset
29909
29910
29911 \begin_inset Quotes erd
29912 \end_inset
29913
29914 .
29915  By default,
29916  \SpecialChar LyX
29917  will output 
29918 \begin_inset Quotes eld
29919 \end_inset
29920
29921
29922 \begin_inset Flex Code
29923 status collapsed
29924
29925 \begin_layout Plain Layout
29926 class=`insetname'
29927 \end_layout
29928
29929 \end_inset
29930
29931
29932 \begin_inset Quotes erd
29933 \end_inset
29934
29935 ,
29936  where 
29937 \begin_inset Flex Code
29938 status collapsed
29939
29940 \begin_layout Plain Layout
29941 insetname
29942 \end_layout
29943
29944 \end_inset
29945
29946  is the \SpecialChar LyX
29947  name of the inset,
29948  made lowercase and with non-alphanumeric characters converted to underscores,
29949  for example:
29950  footnote.
29951 \end_layout
29952
29953 \begin_layout Description
29954 \begin_inset Flex Code
29955 status collapsed
29956
29957 \begin_layout Plain Layout
29958 HTMLForceCSS
29959 \end_layout
29960
29961 \end_inset
29962
29963  [
29964 \begin_inset Flex Code
29965 status collapsed
29966
29967 \begin_layout Plain Layout
29968
29969 \emph on
29970 0
29971 \emph default
29972 ,1
29973 \end_layout
29974
29975 \end_inset
29976
29977 ] Whether to output the default CSS information \SpecialChar LyX
29978  generates for this layout,
29979  even if additional information is explicitly provided via 
29980 \begin_inset Flex Code
29981 status collapsed
29982
29983 \begin_layout Plain Layout
29984 HTMLStyle
29985 \end_layout
29986
29987 \end_inset
29988
29989 .
29990  Setting this to 
29991 \begin_inset Flex Code
29992 status collapsed
29993
29994 \begin_layout Plain Layout
29995 1
29996 \end_layout
29997
29998 \end_inset
29999
30000  allows you to alter or augment the generated CSS,
30001  rather than to override it completely.
30002  Default is 0.
30003 \end_layout
30004
30005 \begin_layout Description
30006 \begin_inset Flex Code
30007 status collapsed
30008
30009 \begin_layout Plain Layout
30010 HTMLInnerAttr
30011 \end_layout
30012
30013 \end_inset
30014
30015  [
30016 \begin_inset Flex Code
30017 status collapsed
30018
30019 \begin_layout Plain Layout
30020 string
30021 \end_layout
30022
30023 \end_inset
30024
30025 ] Attributes for the inner tag.
30026  Defaults to
30027 \begin_inset Newline newline
30028 \end_inset
30029
30030
30031 \begin_inset Quotes eld
30032 \end_inset
30033
30034
30035 \begin_inset Flex Code
30036 status collapsed
30037
30038 \begin_layout Plain Layout
30039 class=`insetname_inner'
30040 \end_layout
30041
30042 \end_inset
30043
30044
30045 \begin_inset Quotes erd
30046 \end_inset
30047
30048 .
30049 \end_layout
30050
30051 \begin_layout Description
30052 \begin_inset Flex Code
30053 status collapsed
30054
30055 \begin_layout Plain Layout
30056 HTMLInnerTag
30057 \end_layout
30058
30059 \end_inset
30060
30061  [
30062 \begin_inset Flex Code
30063 status collapsed
30064
30065 \begin_layout Plain Layout
30066 string
30067 \end_layout
30068
30069 \end_inset
30070
30071 ] The inner tag,
30072  replacing 
30073 \begin_inset Flex Code
30074 status collapsed
30075
30076 \begin_layout Plain Layout
30077 innertag
30078 \end_layout
30079
30080 \end_inset
30081
30082  in the examples above.
30083  By default,
30084  there is none.
30085 \end_layout
30086
30087 \begin_layout Description
30088 \begin_inset Flex Code
30089 status collapsed
30090
30091 \begin_layout Plain Layout
30092 HTMLIsBlock
30093 \end_layout
30094
30095 \end_inset
30096
30097  [
30098 \begin_inset Flex Code
30099 status collapsed
30100
30101 \begin_layout Plain Layout
30102 0,
30103 \emph on
30104 1
30105 \end_layout
30106
30107 \end_inset
30108
30109 ] 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).
30110  Defaults to 1.
30111 \end_layout
30112
30113 \begin_layout Description
30114 \begin_inset Flex Code
30115 status collapsed
30116
30117 \begin_layout Plain Layout
30118 HTMLLabel
30119 \end_layout
30120
30121 \end_inset
30122
30123  [
30124 \begin_inset Flex Code
30125 status collapsed
30126
30127 \begin_layout Plain Layout
30128 string
30129 \end_layout
30130
30131 \end_inset
30132
30133 ] A label for this inset,
30134  possibly including a reference to a counter.
30135  For example,
30136  for footnote,
30137  it might be:
30138  
30139 \begin_inset Flex Code
30140 status collapsed
30141
30142 \begin_layout Plain Layout
30143
30144 \backslash
30145 arabic{footnote}
30146 \end_layout
30147
30148 \end_inset
30149
30150 .
30151  This is optional,
30152  and there is no default.
30153 \end_layout
30154
30155 \begin_layout Description
30156 \begin_inset Flex Code
30157 status collapsed
30158
30159 \begin_layout Plain Layout
30160 HTMLPreamble
30161 \end_layout
30162
30163 \end_inset
30164
30165  Information to be output in the 
30166 \begin_inset Flex Code
30167 status collapsed
30168
30169 \begin_layout Plain Layout
30170 <head>
30171 \end_layout
30172
30173 \end_inset
30174
30175  section when this style is used.
30176  This might,
30177  for example,
30178  be used to include a 
30179 \begin_inset Flex Code
30180 status collapsed
30181
30182 \begin_layout Plain Layout
30183 <script>
30184 \end_layout
30185
30186 \end_inset
30187
30188  block defining an 
30189 \begin_inset Flex Code
30190 status collapsed
30191
30192 \begin_layout Plain Layout
30193 onclick
30194 \end_layout
30195
30196 \end_inset
30197
30198  handler.
30199 \end_layout
30200
30201 \begin_layout Description
30202 \begin_inset Flex Code
30203 status collapsed
30204
30205 \begin_layout Plain Layout
30206 HTMLStyle
30207 \end_layout
30208
30209 \end_inset
30210
30211  CSS style information to be included when this style is used.
30212  Note that this will automatically be wrapped in a layout-generated 
30213 \begin_inset Flex Code
30214 status collapsed
30215
30216 \begin_layout Plain Layout
30217 <style>
30218 \end_layout
30219
30220 \end_inset
30221
30222  block,
30223  so only the CSS itself need be included.
30224 \end_layout
30225
30226 \begin_layout Description
30227 \begin_inset Flex Code
30228 status collapsed
30229
30230 \begin_layout Plain Layout
30231 HTMLTag
30232 \end_layout
30233
30234 \end_inset
30235
30236  [
30237 \begin_inset Flex Code
30238 status collapsed
30239
30240 \begin_layout Plain Layout
30241 string
30242 \end_layout
30243
30244 \end_inset
30245
30246 ] The tag to be used for the main label,
30247  replacing 
30248 \begin_inset Flex Code
30249 status collapsed
30250
30251 \begin_layout Plain Layout
30252 tag
30253 \end_layout
30254
30255 \end_inset
30256
30257  in the examples above.
30258  The default depends upon the setting of 
30259 \begin_inset Flex Code
30260 status collapsed
30261
30262 \begin_layout Plain Layout
30263 MultiPar
30264 \end_layout
30265
30266 \end_inset
30267
30268 :
30269  If 
30270 \begin_inset Flex Code
30271 status collapsed
30272
30273 \begin_layout Plain Layout
30274 MultiPar
30275 \end_layout
30276
30277 \end_inset
30278
30279  is true,
30280  the default is 
30281 \begin_inset Flex Code
30282 status collapsed
30283
30284 \begin_layout Plain Layout
30285 div
30286 \end_layout
30287
30288 \end_inset
30289
30290 ;
30291  if it is false,
30292  the default is 
30293 \begin_inset Flex Code
30294 status collapsed
30295
30296 \begin_layout Plain Layout
30297 span
30298 \end_layout
30299
30300 \end_inset
30301
30302 .
30303 \end_layout
30304
30305 \begin_layout Subsection
30306 Float XHTML
30307 \end_layout
30308
30309 \begin_layout Standard
30310 The XHTML output for floats too can be controlled by layout information.
30311  The output has the following form:
30312 \end_layout
30313
30314 \begin_layout LyX-Code
30315 <tag attr=
30316 \begin_inset Quotes erd
30317 \end_inset
30318
30319 value
30320 \begin_inset Quotes erd
30321 \end_inset
30322
30323 >
30324 \end_layout
30325
30326 \begin_layout LyX-Code
30327 Contents of the float.
30328 \end_layout
30329
30330 \begin_layout LyX-Code
30331 </tag>
30332 \end_layout
30333
30334 \begin_layout Standard
30335 The caption,
30336  if there is one,
30337  is a separate inset and will be output as such.
30338  Its appearance can be controlled via the InsetLayout for caption insets.
30339  
30340 \end_layout
30341
30342 \begin_layout Description
30343 \begin_inset Flex Code
30344 status collapsed
30345
30346 \begin_layout Plain Layout
30347 HTMLAttr
30348 \end_layout
30349
30350 \end_inset
30351
30352  [
30353 \begin_inset Flex Code
30354 status collapsed
30355
30356 \begin_layout Plain Layout
30357 string
30358 \end_layout
30359
30360 \end_inset
30361
30362 ] Specifies attribute information to be output with the main tag.
30363  For example,
30364  
30365 \begin_inset Quotes eld
30366 \end_inset
30367
30368
30369 \begin_inset Flex Code
30370 status collapsed
30371
30372 \begin_layout Plain Layout
30373 class=`myfloat' onclick=`\SpecialChar ldots
30374 '
30375 \end_layout
30376
30377 \end_inset
30378
30379
30380 \begin_inset Quotes erd
30381 \end_inset
30382
30383 .
30384  By default,
30385  \SpecialChar LyX
30386  will output 
30387 \begin_inset Quotes eld
30388 \end_inset
30389
30390
30391 \begin_inset Flex Code
30392 status collapsed
30393
30394 \begin_layout Plain Layout
30395 class=`float float-floattype'
30396 \end_layout
30397
30398 \end_inset
30399
30400
30401 \begin_inset Quotes erd
30402 \end_inset
30403
30404 ,
30405  where 
30406 \begin_inset Flex Code
30407 status collapsed
30408
30409 \begin_layout Plain Layout
30410 floattype
30411 \end_layout
30412
30413 \end_inset
30414
30415  is \SpecialChar LyX
30416 's name for this type of float,
30417  as determined by the float declaration (see 
30418 \begin_inset CommandInset ref
30419 LatexCommand ref
30420 reference "subsec:Floats"
30421 nolink "false"
30422
30423 \end_inset
30424
30425 ),
30426  though made lowercase and with non-alphanumeric characters converted to underscores,
30427  for example:
30428  float-table.
30429 \end_layout
30430
30431 \begin_layout Description
30432 \begin_inset Flex Code
30433 status collapsed
30434
30435 \begin_layout Plain Layout
30436 HTMLStyle
30437 \end_layout
30438
30439 \end_inset
30440
30441  CSS style information to be included when this float is used.
30442  Note that this will automatically be wrapped in a layout-generated 
30443 \begin_inset Flex Code
30444 status collapsed
30445
30446 \begin_layout Plain Layout
30447 <style>
30448 \end_layout
30449
30450 \end_inset
30451
30452  block,
30453  so only the CSS itself need be included.
30454 \end_layout
30455
30456 \begin_layout Description
30457 \begin_inset Flex Code
30458 status collapsed
30459
30460 \begin_layout Plain Layout
30461 HTMLTag
30462 \end_layout
30463
30464 \end_inset
30465
30466  [
30467 \begin_inset Flex Code
30468 status collapsed
30469
30470 \begin_layout Plain Layout
30471 string
30472 \end_layout
30473
30474 \end_inset
30475
30476 ] The tag to be used for this float,
30477  replacing 
30478 \begin_inset Quotes eld
30479 \end_inset
30480
30481
30482 \begin_inset Flex Code
30483 status collapsed
30484
30485 \begin_layout Plain Layout
30486 tag
30487 \end_layout
30488
30489 \end_inset
30490
30491
30492 \begin_inset Quotes erd
30493 \end_inset
30494
30495  in the example above.
30496  The default is 
30497 \begin_inset Flex Code
30498 status collapsed
30499
30500 \begin_layout Plain Layout
30501 div
30502 \end_layout
30503
30504 \end_inset
30505
30506  and will rarely need changing.
30507 \end_layout
30508
30509 \begin_layout Subsection
30510 Bibliography formatting
30511 \end_layout
30512
30513 \begin_layout Standard
30514 The bibliography can be formatted using 
30515 \begin_inset Flex Code
30516 status collapsed
30517
30518 \begin_layout Plain Layout
30519 CiteFormat
30520 \end_layout
30521
30522 \end_inset
30523
30524  blocks.
30525  See 
30526 \begin_inset CommandInset ref
30527 LatexCommand ref
30528 reference "subsec:Citation-format-description"
30529 nolink "false"
30530
30531 \end_inset
30532
30533  for the details.
30534 \end_layout
30535
30536 \begin_layout Subsection
30537 \SpecialChar LyX
30538 -generated CSS
30539 \end_layout
30540
30541 \begin_layout Standard
30542 We have several times mentioned that \SpecialChar LyX
30543  will generate default CSS style rules for both insets and paragraph styles,
30544  based upon the other layout information that is provided.
30545  In this section,
30546  we shall say a word about which layout information \SpecialChar LyX
30547  uses and how.
30548 \end_layout
30549
30550 \begin_layout Standard
30551 At present,
30552  \SpecialChar LyX
30553  auto-generates CSS only for font information,
30554  making use of the 
30555 \begin_inset Flex Code
30556 status collapsed
30557
30558 \begin_layout Plain Layout
30559 Family
30560 \end_layout
30561
30562 \end_inset
30563
30564 ,
30565  
30566 \begin_inset Flex Code
30567 status collapsed
30568
30569 \begin_layout Plain Layout
30570 Series
30571 \end_layout
30572
30573 \end_inset
30574
30575 ,
30576  
30577 \begin_inset Flex Code
30578 status collapsed
30579
30580 \begin_layout Plain Layout
30581 Shape
30582 \end_layout
30583
30584 \end_inset
30585
30586 ,
30587  and 
30588 \begin_inset Flex Code
30589 status collapsed
30590
30591 \begin_layout Plain Layout
30592 Size
30593 \end_layout
30594
30595 \end_inset
30596
30597  specified in the 
30598 \begin_inset Flex Code
30599 status collapsed
30600
30601 \begin_layout Plain Layout
30602 Font
30603 \end_layout
30604
30605 \end_inset
30606
30607  declaration (see 
30608 \begin_inset CommandInset ref
30609 LatexCommand ref
30610 reference "subsec:Font-description"
30611 nolink "false"
30612
30613 \end_inset
30614
30615 ).
30616  The translation is mostly straightforward and obvious.
30617  For example,
30618  
30619 \begin_inset Quotes eld
30620 \end_inset
30621
30622
30623 \begin_inset Flex Code
30624 status collapsed
30625
30626 \begin_layout Plain Layout
30627 Family Sans
30628 \end_layout
30629
30630 \end_inset
30631
30632
30633 \begin_inset Quotes erd
30634 \end_inset
30635
30636  becomes 
30637 \begin_inset Quotes eld
30638 \end_inset
30639
30640
30641 \begin_inset Flex Code
30642 status collapsed
30643
30644 \begin_layout Plain Layout
30645 font-family:
30646  sans-serif;
30647 \end_layout
30648
30649 \end_inset
30650
30651
30652 \begin_inset Quotes erd
30653 \end_inset
30654
30655 .
30656  The correspondence of \SpecialChar LyX
30657  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
30658  See the 
30659 \begin_inset Flex Code
30660 status collapsed
30661
30662 \begin_layout Plain Layout
30663 getSizeCSS()
30664 \end_layout
30665
30666 \end_inset
30667
30668  function in 
30669 \begin_inset Flex URL
30670 status collapsed
30671
30672 \begin_layout Plain Layout
30673
30674 src/FontInfo.cpp
30675 \end_layout
30676
30677 \end_inset
30678
30679  for the details.
30680 \change_inserted -970929547 1496610908
30681
30682 \end_layout
30683
30684 \begin_layout Section
30685
30686 \change_inserted -970929547 1496610966
30687 \begin_inset CommandInset label
30688 LatexCommand label
30689 name "sec:Tags-for-DocBook"
30690
30691 \end_inset
30692
30693 Tags for DocBook output
30694 \end_layout
30695
30696 \begin_layout Standard
30697
30698 \change_inserted -970929547 1496611615
30699 As with \SpecialChar LaTeX
30700  or XHTML,
30701  the format of \SpecialChar LyX
30702 's DocBook output is also controlled by layout information.
30703  In general,
30704  \SpecialChar LyX
30705  provides sensible defaults;
30706  however,
30707  much of the styling is lost during the conversion,
30708  as DocBook is strictly semantic and does not allow formatting.
30709  When possible,
30710  information from \SpecialChar LyX
30711  will be rendered in 
30712 \family typewriter
30713 role
30714 \family default
30715  attributes.
30716  
30717 \end_layout
30718
30719 \begin_layout Standard
30720
30721 \change_inserted -970929547 1496612080
30722 In many cases,
30723  then,
30724  you may not have to do anything at all to get acceptable DocBook output for your own environments,
30725  custom insets,
30726  and so forth.
30727  But in some cases you will,
30728  and so \SpecialChar LyX
30729  provides a number of layout tags that can be used to customize the DocBook that is generated.
30730 \end_layout
30731
30732 \begin_layout Standard
30733
30734 \change_inserted -970929547 1515109912
30735 Labels are rarely output,
30736  as they are redundant in DocBook:
30737  this information is carried by the tags themselves,
30738  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
30739  However,
30740  sometimes,
30741  labels are not redundant content,
30742  such as definition lists:
30743  in this case,
30744  the term being defined will be the label.
30745  
30746 \end_layout
30747
30748 \begin_layout Subsection
30749
30750 \change_inserted 1075283030 1597699417
30751 \begin_inset CommandInset label
30752 LatexCommand label
30753 name "subsec:Paragraph-Style-DocBook"
30754
30755 \end_inset
30756
30757
30758 \change_deleted 1075283030 1597699417
30759
30760 \begin_inset CommandInset label
30761 LatexCommand label
30762 name "subsec:Paragraph-Style-XHTML-1"
30763
30764 \end_inset
30765
30766
30767 \change_inserted -970929547 1496610966
30768 Paragraph styles
30769 \end_layout
30770
30771 \begin_layout Standard
30772
30773 \change_inserted -970929547 1496612059
30774 The sort of DocBook \SpecialChar LyX
30775  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
30776  a command,
30777  or an environment,
30778  where this is itself determined by the contents of the corresponding 
30779 \begin_inset Flex Code
30780 status collapsed
30781
30782 \begin_layout Plain Layout
30783
30784 \change_inserted -970929547 1496610966
30785 \SpecialChar LaTeX
30786 Type
30787 \change_unchanged
30788
30789 \end_layout
30790
30791 \end_inset
30792
30793  tag.
30794  
30795 \end_layout
30796
30797 \begin_layout Standard
30798
30799 \change_inserted -970929547 1496612107
30800 For a command or normal paragraph,
30801  the output DocBook has the following form:
30802 \end_layout
30803
30804 \begin_layout LyX-Code
30805
30806 \change_inserted -970929547 1515109666
30807 <tag attr>
30808 \end_layout
30809
30810 \begin_layout LyX-Code
30811
30812 \change_inserted -970929547 1496610966
30813 Contents of the paragraph.
30814 \end_layout
30815
30816 \begin_layout LyX-Code
30817
30818 \change_inserted -970929547 1496610966
30819 </tag>
30820 \end_layout
30821
30822 \begin_layout Standard
30823
30824 \change_inserted -970929547 1515109821
30825 For an environment that is not some sort of list,
30826  the generated DocBook takes this form:
30827 \end_layout
30828
30829 \begin_layout LyX-Code
30830
30831 \change_inserted -970929547 1515109671
30832 <tag attr>
30833 \end_layout
30834
30835 \begin_layout LyX-Code
30836
30837 \change_inserted -970929547 1496612114
30838 <itemtag>First paragraph.</itemtag>
30839 \end_layout
30840
30841 \begin_layout LyX-Code
30842
30843 \change_inserted -970929547 1496610966
30844 <itemtag>Second paragraph.</itemtag>
30845 \end_layout
30846
30847 \begin_layout LyX-Code
30848
30849 \change_inserted -970929547 1496610966
30850 </tag>
30851 \end_layout
30852
30853 \begin_layout Standard
30854
30855 \change_inserted -970929547 1515109825
30856 For a list,
30857  the resulting DocBook takes this form:
30858 \end_layout
30859
30860 \begin_layout LyX-Code
30861
30862 \change_inserted -970929547 1515109672
30863 <tag attr>
30864 \end_layout
30865
30866 \begin_layout LyX-Code
30867
30868 \change_inserted -970929547 1515109676
30869 <itemtag attr>First item.</itemtag>
30870 \end_layout
30871
30872 \begin_layout LyX-Code
30873
30874 \change_inserted -970929547 1515109678
30875 <itemtag attr>Second item.</itemtag>
30876 \end_layout
30877
30878 \begin_layout LyX-Code
30879
30880 \change_inserted -970929547 1496610966
30881 </tag>
30882 \end_layout
30883
30884 \begin_layout Standard
30885
30886 \change_inserted -970929547 1496612243
30887 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
30888  Please note that,
30889  due to the very nature of DocBook,
30890  no sensible defaults really exist,
30891  and the values must always be carefully chosen.
30892  
30893 \end_layout
30894
30895 \begin_layout Description
30896
30897 \change_inserted -970929547 1515110057
30898 \begin_inset Flex Code
30899 status collapsed
30900
30901 \begin_layout Plain Layout
30902
30903 \change_inserted -970929547 1515109656
30904 DocBookAttr
30905 \change_unchanged
30906
30907 \end_layout
30908
30909 \end_inset
30910
30911  [
30912 \begin_inset Flex Code
30913 status collapsed
30914
30915 \begin_layout Plain Layout
30916
30917 \change_inserted -970929547 1496610966
30918 string
30919 \change_unchanged
30920
30921 \end_layout
30922
30923 \end_inset
30924
30925 ] Specifies attribute information to be output with the main tag,
30926  replacing 
30927 \begin_inset Quotes eld
30928 \end_inset
30929
30930
30931 \begin_inset Flex Code
30932 status collapsed
30933
30934 \begin_layout Plain Layout
30935
30936 \change_inserted -970929547 1515110057
30937 attr
30938 \change_unchanged
30939
30940 \end_layout
30941
30942 \end_inset
30943
30944
30945 \begin_inset Quotes erd
30946 \end_inset
30947
30948  in the example above.
30949  This information can be used in further processing of the DocBook files.
30950  
30951 \change_unchanged
30952
30953 \end_layout
30954
30955 \begin_layout Description
30956
30957 \change_inserted -970929547 1496612296
30958 \begin_inset Flex Code
30959 status collapsed
30960
30961 \begin_layout Plain Layout
30962
30963 \change_inserted -970929547 1496612269
30964 DocBookTag
30965 \change_unchanged
30966
30967 \end_layout
30968
30969 \end_inset
30970
30971  [
30972 \begin_inset Flex Code
30973 status collapsed
30974
30975 \begin_layout Plain Layout
30976
30977 \change_inserted -970929547 1496610966
30978 string
30979 \change_unchanged
30980
30981 \end_layout
30982
30983 \end_inset
30984
30985 ] The tag to be used for this inset,
30986  replacing 
30987 \begin_inset Quotes eld
30988 \end_inset
30989
30990
30991 \begin_inset Flex Code
30992 status collapsed
30993
30994 \begin_layout Plain Layout
30995
30996 \change_inserted -970929547 1496612296
30997 tag
30998 \change_unchanged
30999
31000 \end_layout
31001
31002 \end_inset
31003
31004
31005 \begin_inset Quotes erd
31006 \end_inset
31007
31008  in the example above.
31009  The default is the name of the float and always needs to be changed,
31010  as DocBook provides no generic tag.
31011 \change_inserted 1075283030 1597698868
31012
31013 \end_layout
31014
31015 \begin_layout Description
31016
31017 \change_inserted 1075283030 1597699399
31018 \begin_inset Flex Code
31019 status collapsed
31020
31021 \begin_layout Plain Layout
31022
31023 \change_inserted 1075283030 1597698872
31024 DocBookTagType
31025 \change_unchanged
31026
31027 \end_layout
31028
31029 \end_inset
31030
31031  [
31032 \begin_inset Flex Code
31033 status collapsed
31034
31035 \begin_layout Plain Layout
31036
31037 \change_inserted 1075283030 1597700585
31038 block,
31039  paragraph,
31040  inline
31041 \change_unchanged
31042
31043 \end_layout
31044
31045 \end_inset
31046
31047 ] The new-line policy for this tag,
31048  see Section
31049 \begin_inset space ~
31050 \end_inset
31051
31052
31053 \begin_inset CommandInset ref
31054 LatexCommand ref
31055 reference "subsec:DocBook-New-line-policy"
31056 plural "false"
31057 caps "false"
31058 noprefix "false"
31059 nolink "false"
31060
31061 \end_inset
31062
31063  for the details.
31064  
31065 \change_unchanged
31066
31067 \end_layout
31068
31069 \begin_layout Subsection
31070
31071 \change_inserted 1075283030 1597699385
31072 New-line policy
31073 \begin_inset CommandInset label
31074 LatexCommand label
31075 name "subsec:DocBook-New-line-policy"
31076
31077 \end_inset
31078
31079
31080 \end_layout
31081
31082 \begin_layout Standard
31083
31084 \change_inserted 1075283030 1597698993
31085 For all tags,
31086  there are three possible policies for outputting new lines (given in the 
31087 \begin_inset Flex Code
31088 status collapsed
31089
31090 \begin_layout Plain Layout
31091
31092 \change_inserted 1075283030 1597698987
31093 DocBook*TagType
31094 \change_unchanged
31095
31096 \end_layout
31097
31098 \end_inset
31099
31100  attribute):
31101  
31102 \end_layout
31103
31104 \begin_layout Itemize
31105
31106 \change_inserted 1075283030 1597699279
31107 \begin_inset Quotes eld
31108 \end_inset
31109
31110
31111 \begin_inset Flex Code
31112 status collapsed
31113
31114 \begin_layout Plain Layout
31115
31116 \change_inserted 1075283030 1597699012
31117 block
31118 \change_unchanged
31119
31120 \end_layout
31121
31122 \end_inset
31123
31124
31125 \begin_inset Quotes erd
31126 \end_inset
31127
31128 :
31129  the opening and closing tags are on their own lines (i.e.
31130  a line feed after and before the opening and the closing tags).
31131  Typical elements are floats.
31132  For instance:
31133  
31134 \end_layout
31135
31136 \begin_layout LyX-Code
31137
31138 \change_inserted 1075283030 1597699194
31139 Content before
31140 \end_layout
31141
31142 \begin_layout LyX-Code
31143
31144 \change_inserted 1075283030 1597699194
31145 <blocktag>
31146 \end_layout
31147
31148 \begin_layout LyX-Code
31149
31150 \change_inserted 1075283030 1597699098
31151   Contents of the block.
31152 \end_layout
31153
31154 \begin_layout LyX-Code
31155
31156 \change_inserted 1075283030 1597699196
31157 </blocktag>
31158 \end_layout
31159
31160 \begin_layout LyX-Code
31161
31162 \change_inserted 1075283030 1597699198
31163 Content after
31164 \end_layout
31165
31166 \begin_layout Itemize
31167
31168 \change_inserted 1075283030 1597699289
31169 \begin_inset Quotes eld
31170 \end_inset
31171
31172
31173 \begin_inset Flex Code
31174 status collapsed
31175
31176 \begin_layout Plain Layout
31177
31178 \change_inserted 1075283030 1597699113
31179 paragraph
31180 \change_unchanged
31181
31182 \end_layout
31183
31184 \end_inset
31185
31186
31187 \begin_inset Quotes erd
31188 \end_inset
31189
31190 :
31191  the opening and closing tags are on the same,
31192  new line;
31193  a line feed is output before the opening tag and after the closing tag.
31194  Typical elements are paragraphs and list items.
31195  For instance:
31196  
31197 \end_layout
31198
31199 \begin_layout LyX-Code
31200
31201 \change_inserted 1075283030 1597699186
31202 Content before
31203 \end_layout
31204
31205 \begin_layout LyX-Code
31206
31207 \change_inserted 1075283030 1597699357
31208 <paratag>Contents of the paragraph.</paratag>
31209 \end_layout
31210
31211 \begin_layout LyX-Code
31212
31213 \change_inserted 1075283030 1597699231
31214 Content after
31215 \end_layout
31216
31217 \begin_layout Itemize
31218
31219 \change_inserted 1075283030 1597699343
31220 \begin_inset Quotes eld
31221 \end_inset
31222
31223
31224 \begin_inset Flex Code
31225 status collapsed
31226
31227 \begin_layout Plain Layout
31228
31229 \change_inserted 1075283030 1597699307
31230 inline
31231 \change_unchanged
31232
31233 \end_layout
31234
31235 \end_inset
31236
31237
31238 \begin_inset Quotes erd
31239 \end_inset
31240
31241 :
31242  the opening and closing tags are on the same line as the rest of the content.
31243  No line feeds are output.
31244  Typical elements are fonts.
31245  For instance:
31246  
31247 \end_layout
31248
31249 \begin_layout LyX-Code
31250
31251 \change_inserted 1075283030 1597699585
31252 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
31253 \end_layout
31254
31255 \begin_layout Standard
31256
31257 \change_inserted 1075283030 1597699585
31258 The default value is always 
31259 \begin_inset Quotes eld
31260 \end_inset
31261
31262
31263 \begin_inset Flex Code
31264 status collapsed
31265
31266 \begin_layout Plain Layout
31267
31268 \change_inserted 1075283030 1597699585
31269 block
31270 \change_unchanged
31271
31272 \end_layout
31273
31274 \end_inset
31275
31276
31277 \begin_inset Quotes erd
31278 \end_inset
31279
31280 .
31281 \change_unchanged
31282
31283 \end_layout
31284
31285 \begin_layout Subsection
31286
31287 \change_inserted -970929547 1515111533
31288 InsetLayout DocBook
31289 \change_unchanged
31290
31291 \end_layout
31292
31293 \begin_layout Standard
31294
31295 \change_inserted -970929547 1496611894
31296 The DocBook output of insets can also be controlled by information in layout files.
31297 \end_layout
31298
31299 \begin_layout Standard
31300
31301 \change_inserted -970929547 1496612045
31302 The DocBook \SpecialChar LyX
31303  outputs for an inset has the following form:
31304 \end_layout
31305
31306 \begin_layout LyX-Code
31307
31308 \change_inserted -970929547 1515110861
31309 <wrappertag wrapperattr>
31310 \end_layout
31311
31312 \begin_layout LyX-Code
31313
31314 \change_inserted -970929547 1515110868
31315   <tag attr>
31316 \end_layout
31317
31318 \begin_layout LyX-Code
31319
31320 \change_inserted -970929547 1515110869
31321     <innertag innerattr>
31322 \end_layout
31323
31324 \begin_layout LyX-Code
31325
31326 \change_inserted -970929547 1515110869
31327       Contents of the inset.
31328 \end_layout
31329
31330 \begin_layout LyX-Code
31331
31332 \change_inserted -970929547 1515110870
31333     </innertag>
31334 \end_layout
31335
31336 \begin_layout LyX-Code
31337
31338 \change_inserted -970929547 1515110871
31339   </tag>
31340 \end_layout
31341
31342 \begin_layout LyX-Code
31343
31344 \change_inserted -970929547 1515111172
31345 </wrappertag>
31346 \end_layout
31347
31348 \begin_layout Standard
31349
31350 \change_inserted -970929547 1515111186
31351 For an itemising inset,
31352  it rather looks like this:
31353  
31354 \end_layout
31355
31356 \begin_layout LyX-Code
31357
31358 \change_inserted -970929547 1515111186
31359 <wrappertag wrapperattr>
31360 \end_layout
31361
31362 \begin_layout LyX-Code
31363
31364 \change_inserted -970929547 1515111186
31365   <tag attr>
31366 \end_layout
31367
31368 \begin_layout LyX-Code
31369
31370 \change_inserted -970929547 1515111186
31371     <innertag innerattr>
31372 \end_layout
31373
31374 \begin_layout LyX-Code
31375
31376 \change_inserted -970929547 1515111362
31377       <itemwrappertag itemwrapperattr>
31378 \end_layout
31379
31380 \begin_layout LyX-Code
31381
31382 \change_inserted -970929547 1515111364
31383         <itemlabeltag itemattr>
31384 \end_layout
31385
31386 \begin_layout LyX-Code
31387
31388 \change_inserted -970929547 1515111367
31389           Label of the first item.
31390 \end_layout
31391
31392 \begin_layout LyX-Code
31393
31394 \change_inserted -970929547 1515111362
31395         </itemtag>
31396 \change_unchanged
31397
31398 \end_layout
31399
31400 \begin_layout LyX-Code
31401
31402 \change_inserted -970929547 1515111517
31403         <itemtag itemattr>
31404 \end_layout
31405
31406 \begin_layout LyX-Code
31407
31408 \change_inserted -970929547 1515111517
31409           <itemtag itemattr>
31410 \change_unchanged
31411
31412 \end_layout
31413
31414 \begin_layout LyX-Code
31415
31416 \change_inserted -970929547 1515111516
31417             Contents of the first item.
31418 \end_layout
31419
31420 \begin_layout LyX-Code
31421
31422 \change_inserted -970929547 1515111514
31423           </itemtag>
31424 \change_unchanged
31425
31426 \end_layout
31427
31428 \begin_layout LyX-Code
31429
31430 \change_inserted -970929547 1515111247
31431         </itemtag>
31432 \change_unchanged
31433
31434 \end_layout
31435
31436 \begin_layout LyX-Code
31437
31438 \change_inserted -970929547 1515111221
31439       </itemwrappertag>
31440 \end_layout
31441
31442 \begin_layout LyX-Code
31443
31444 \change_inserted -970929547 1515111370
31445       <itemwrappertag itemwrapperattr>
31446 \end_layout
31447
31448 \begin_layout LyX-Code
31449
31450 \change_inserted -970929547 1515111370
31451         <itemlabeltag itemattr>
31452 \end_layout
31453
31454 \begin_layout LyX-Code
31455
31456 \change_inserted -970929547 1515111372
31457           Label of the second item.
31458 \end_layout
31459
31460 \begin_layout LyX-Code
31461
31462 \change_inserted -970929547 1515111370
31463         </itemtag>
31464 \change_unchanged
31465
31466 \end_layout
31467
31468 \begin_layout LyX-Code
31469
31470 \change_inserted -970929547 1515111504
31471         <itemtag itemattr>
31472 \end_layout
31473
31474 \begin_layout LyX-Code
31475
31476 \change_inserted -970929547 1515111505
31477           <itemtag itemattr>
31478 \change_unchanged
31479
31480 \end_layout
31481
31482 \begin_layout LyX-Code
31483
31484 \change_inserted -970929547 1515111507
31485             Contents of the second item.
31486 \end_layout
31487
31488 \begin_layout LyX-Code
31489
31490 \change_inserted -970929547 1515111509
31491           </itemtag>
31492 \change_unchanged
31493
31494 \end_layout
31495
31496 \begin_layout LyX-Code
31497
31498 \change_inserted -970929547 1515111251
31499         </itemtag>
31500 \change_unchanged
31501
31502 \end_layout
31503
31504 \begin_layout LyX-Code
31505
31506 \change_inserted -970929547 1515111221
31507       </itemwrappertag>
31508 \change_unchanged
31509
31510 \end_layout
31511
31512 \begin_layout LyX-Code
31513
31514 \change_inserted -970929547 1515111219
31515       ...
31516 \change_unchanged
31517
31518 \end_layout
31519
31520 \begin_layout LyX-Code
31521
31522 \change_inserted -970929547 1515111186
31523     </innertag>
31524 \end_layout
31525
31526 \begin_layout LyX-Code
31527
31528 \change_inserted -970929547 1515111186
31529   </tag>
31530 \end_layout
31531
31532 \begin_layout LyX-Code
31533
31534 \change_inserted -970929547 1515111186
31535 </wrappertag>
31536 \end_layout
31537
31538 \begin_layout Standard
31539
31540 \change_inserted -970929547 1515111183
31541 If the inset permits multiple paragraphs—
31542 that is,
31543  if 
31544 \begin_inset Flex Code
31545 status collapsed
31546
31547 \begin_layout Plain Layout
31548
31549 \change_inserted -970929547 1496610966
31550 MultiPar
31551 \change_unchanged
31552
31553 \end_layout
31554
31555 \end_inset
31556
31557  is true—
31558 then the contents of the inset will 
31559 \change_deleted 34634807 1620029217
31560 itself
31561 \change_inserted 34634807 1620029219
31562 themselves
31563 \change_inserted -970929547 1515111183
31564  be output as paragraphs formatted according to the styles used for those paragraphs (standard,
31565  quote,
31566  and the like).
31567  The inner tag is optional and,
31568  by default,
31569  does not appear.
31570 \end_layout
31571
31572 \begin_layout Standard
31573
31574 \change_inserted -970929547 1496610966
31575 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
31576 \end_layout
31577
31578 \begin_layout Description
31579
31580 \change_inserted -970929547 1515110317
31581 \begin_inset Flex Code
31582 status collapsed
31583
31584 \begin_layout Plain Layout
31585
31586 \change_inserted -970929547 1515109695
31587 DocBookAttr
31588 \change_unchanged
31589
31590 \end_layout
31591
31592 \end_inset
31593
31594  [
31595 \begin_inset Flex Code
31596 status collapsed
31597
31598 \begin_layout Plain Layout
31599
31600 \change_inserted -970929547 1496611854
31601 string
31602 \change_unchanged
31603
31604 \end_layout
31605
31606 \end_inset
31607
31608 ] Specifies attribute information to be output with the main tag,
31609  replacing 
31610 \begin_inset Quotes eld
31611 \end_inset
31612
31613
31614 \begin_inset Flex Code
31615 status collapsed
31616
31617 \begin_layout Plain Layout
31618
31619 \change_inserted -970929547 1515110044
31620 attr
31621 \change_unchanged
31622
31623 \end_layout
31624
31625 \end_inset
31626
31627
31628 \begin_inset Quotes erd
31629 \end_inset
31630
31631  in the example above.
31632  This information can be used in further processing of the DocBook files.
31633  
31634 \end_layout
31635
31636 \begin_layout Description
31637
31638 \change_inserted -970929547 1515110973
31639 \begin_inset Flex Code
31640 status collapsed
31641
31642 \begin_layout Plain Layout
31643
31644 \change_inserted -970929547 1515110319
31645 DocBookInInfo
31646 \change_unchanged
31647
31648 \end_layout
31649
31650 \end_inset
31651
31652  [
31653 \begin_inset Flex Code
31654 status collapsed
31655
31656 \begin_layout Plain Layout
31657
31658 \change_inserted -970929547 1515110384
31659 never,
31660  always,
31661  maybe
31662 \change_unchanged
31663
31664 \end_layout
31665
31666 \end_inset
31667
31668 ] Specifies whether this tag goes into the 
31669 \begin_inset Flex Code
31670 status collapsed
31671
31672 \begin_layout Plain Layout
31673
31674 \change_inserted -970929547 1515110412
31675 <info>
31676 \change_unchanged
31677
31678 \end_layout
31679
31680 \end_inset
31681
31682  tag at the beginning of the parent layout.
31683  
31684 \begin_inset Flex Code
31685 status collapsed
31686
31687 \begin_layout Plain Layout
31688
31689 \change_inserted -970929547 1515110437
31690 never
31691 \change_unchanged
31692
31693 \end_layout
31694
31695 \end_inset
31696
31697  indicates that the tag never goes into 
31698 \begin_inset Flex Code
31699 status collapsed
31700
31701 \begin_layout Plain Layout
31702
31703 \change_inserted -970929547 1515110497
31704 <info>
31705 \change_unchanged
31706
31707 \end_layout
31708
31709 \end_inset
31710
31711  (this is default value,
31712  and corresponds to usual content).
31713  
31714 \begin_inset Flex Code
31715 status collapsed
31716
31717 \begin_layout Plain Layout
31718
31719 \change_inserted -970929547 1515110517
31720 always
31721 \change_unchanged
31722
31723 \end_layout
31724
31725 \end_inset
31726
31727  indicates that the tag always goes into 
31728 \begin_inset Flex Code
31729 status collapsed
31730
31731 \begin_layout Plain Layout
31732
31733 \change_inserted -970929547 1515110514
31734 <info>
31735 \change_unchanged
31736
31737 \end_layout
31738
31739 \end_inset
31740
31741  (this corresponds to usual metadata):
31742  if there is no 
31743 \begin_inset Flex Code
31744 status collapsed
31745
31746 \begin_layout Plain Layout
31747
31748 \change_inserted -970929547 1515110550
31749 <info>
31750 \change_unchanged
31751
31752 \end_layout
31753
31754 \end_inset
31755
31756  tag for the parent,
31757  one 
31758 \series bold
31759 will
31760 \series default
31761  be generated.
31762  
31763 \begin_inset Flex Code
31764 status collapsed
31765
31766 \begin_layout Plain Layout
31767
31768 \change_inserted -970929547 1515110540
31769 maybe
31770 \change_unchanged
31771
31772 \end_layout
31773
31774 \end_inset
31775
31776  indicates that the tag may go into 
31777 \begin_inset Flex Code
31778 status collapsed
31779
31780 \begin_layout Plain Layout
31781
31782 \change_inserted -970929547 1515110538
31783 <info>
31784 \change_unchanged
31785
31786 \end_layout
31787
31788 \end_inset
31789
31790  (this is only the case for titles):
31791  if there is no 
31792 \begin_inset Flex Code
31793 status collapsed
31794
31795 \begin_layout Plain Layout
31796
31797 \change_inserted -970929547 1515110585
31798 <info>
31799 \change_unchanged
31800
31801 \end_layout
31802
31803 \end_inset
31804
31805  tag for the parent,
31806  
31807 \series bold
31808 none
31809 \series default
31810  will be generated,
31811  the corresponding tag will be output directly as content.
31812  
31813 \end_layout
31814
31815 \begin_layout Description
31816
31817 \change_inserted -970929547 1515111461
31818 \begin_inset Flex Code
31819 status collapsed
31820
31821 \begin_layout Plain Layout
31822
31823 \change_inserted -970929547 1515110974
31824 DocBookItemAttr
31825 \change_unchanged
31826
31827 \end_layout
31828
31829 \end_inset
31830
31831  [
31832 \begin_inset Flex Code
31833 status collapsed
31834
31835 \begin_layout Plain Layout
31836
31837 \change_inserted -970929547 1515110973
31838 string
31839 \change_unchanged
31840
31841 \end_layout
31842
31843 \end_inset
31844
31845 ] Specifies attribute information to be output with the item tag,
31846  replacing 
31847 \begin_inset Quotes eld
31848 \end_inset
31849
31850
31851 \begin_inset Flex Code
31852 status collapsed
31853
31854 \begin_layout Plain Layout
31855
31856 \change_inserted -970929547 1515110984
31857 itemattr
31858 \change_unchanged
31859
31860 \end_layout
31861
31862 \end_inset
31863
31864
31865 \begin_inset Quotes erd
31866 \end_inset
31867
31868  in the example above.
31869  This information can be used in further processing of the DocBook files.
31870  
31871 \end_layout
31872
31873 \begin_layout Description
31874
31875 \change_inserted -970929547 1515111471
31876 \begin_inset Flex Code
31877 status collapsed
31878
31879 \begin_layout Plain Layout
31880
31881 \change_inserted -970929547 1515111465
31882 DocBookItemInnerAttr
31883 \change_unchanged
31884
31885 \end_layout
31886
31887 \end_inset
31888
31889  [
31890 \begin_inset Flex Code
31891 status collapsed
31892
31893 \begin_layout Plain Layout
31894
31895 \change_inserted -970929547 1515111461
31896 string
31897 \change_unchanged
31898
31899 \end_layout
31900
31901 \end_inset
31902
31903 ] Specifies attribute information to be output with the item inner tag,
31904  replacing 
31905 \begin_inset Quotes eld
31906 \end_inset
31907
31908
31909 \begin_inset Flex Code
31910 status collapsed
31911
31912 \begin_layout Plain Layout
31913
31914 \change_inserted -970929547 1515111476
31915 iteminnerattr
31916 \change_unchanged
31917
31918 \end_layout
31919
31920 \end_inset
31921
31922
31923 \begin_inset Quotes erd
31924 \end_inset
31925
31926  in the example above.
31927  This information can be used in further processing of the DocBook files.
31928  
31929 \end_layout
31930
31931 \begin_layout Description
31932
31933 \change_inserted -970929547 1515111494
31934 \begin_inset Flex Code
31935 status collapsed
31936
31937 \begin_layout Plain Layout
31938
31939 \change_inserted -970929547 1515111467
31940 DocBookItemInnerTag
31941 \change_unchanged
31942
31943 \end_layout
31944
31945 \end_inset
31946
31947  [
31948 \begin_inset Flex Code
31949 status collapsed
31950
31951 \begin_layout Plain Layout
31952
31953 \change_inserted -970929547 1515111461
31954 string
31955 \change_unchanged
31956
31957 \end_layout
31958
31959 \end_inset
31960
31961 ] The tag to be used for the item inner tag within the inset,
31962  replacing 
31963 \begin_inset Quotes eld
31964 \end_inset
31965
31966
31967 \begin_inset Flex Code
31968 status collapsed
31969
31970 \begin_layout Plain Layout
31971
31972 \change_inserted -970929547 1515111486
31973 iteminnertag
31974 \change_unchanged
31975
31976 \end_layout
31977
31978 \end_inset
31979
31980
31981 \begin_inset Quotes erd
31982 \end_inset
31983
31984  in the example above.
31985  The default is 
31986 \begin_inset Flex Code
31987 status collapsed
31988
31989 \begin_layout Plain Layout
31990
31991 \change_inserted -970929547 1515111461
31992 NONE
31993 \change_unchanged
31994
31995 \end_layout
31996
31997 \end_inset
31998
31999 ,
32000  indicating that there is no item inner tag:
32001  content is directly output without it for each itemised element.
32002  This parameter only makes sense when itemising layouts are used,
32003  such as lists.
32004  
32005 \change_inserted 1075283030 1598469472
32006 The most likely value is 
32007 \begin_inset Quotes eld
32008 \end_inset
32009
32010
32011 \begin_inset Flex Code
32012 status collapsed
32013
32014 \begin_layout Plain Layout
32015
32016 \change_inserted 1075283030 1598469476
32017 para
32018 \change_unchanged
32019
32020 \end_layout
32021
32022 \end_inset
32023
32024
32025 \begin_inset Quotes erd
32026 \end_inset
32027
32028 .
32029 \begin_inset Newline newline
32030 \end_inset
32031
32032 When a list item is split using a new line,
32033  the item inner tag will be repeated for each part of the paragraph,
32034  parts being separated by new lines.
32035  
32036 \end_layout
32037
32038 \begin_layout Description
32039
32040 \change_inserted 1075283030 1597699866
32041 \begin_inset Flex Code
32042 status collapsed
32043
32044 \begin_layout Plain Layout
32045
32046 \change_inserted 1075283030 1597699853
32047 DocBookItemInnerTagType
32048 \change_unchanged
32049
32050 \end_layout
32051
32052 \end_inset
32053
32054  [
32055 \begin_inset Flex Code
32056 status collapsed
32057
32058 \begin_layout Plain Layout
32059
32060 \change_inserted 1075283030 1597699866
32061 block,
32062  paragraph,
32063  inline
32064 \change_unchanged
32065
32066 \end_layout
32067
32068 \end_inset
32069
32070 ] The new-line policy for this tag,
32071  see Section
32072 \begin_inset space ~
32073 \end_inset
32074
32075
32076 \begin_inset CommandInset ref
32077 LatexCommand ref
32078 reference "subsec:DocBook-New-line-policy"
32079 plural "false"
32080 caps "false"
32081 noprefix "false"
32082 nolink "false"
32083
32084 \end_inset
32085
32086  for the details.
32087  
32088 \change_unchanged
32089
32090 \end_layout
32091
32092 \begin_layout Description
32093
32094 \change_inserted -970929547 1515111290
32095 \begin_inset Flex Code
32096 status collapsed
32097
32098 \begin_layout Plain Layout
32099
32100 \change_inserted -970929547 1515111283
32101 DocBookItemLabelAttr
32102 \change_unchanged
32103
32104 \end_layout
32105
32106 \end_inset
32107
32108  [
32109 \begin_inset Flex Code
32110 status collapsed
32111
32112 \begin_layout Plain Layout
32113
32114 \change_inserted -970929547 1515111279
32115 string
32116 \change_unchanged
32117
32118 \end_layout
32119
32120 \end_inset
32121
32122 ] Specifies attribute information to be output with the item label tag,
32123  replacing 
32124 \begin_inset Quotes eld
32125 \end_inset
32126
32127
32128 \begin_inset Flex Code
32129 status collapsed
32130
32131 \begin_layout Plain Layout
32132
32133 \change_inserted -970929547 1515111304
32134 itemlabelattr
32135 \change_unchanged
32136
32137 \end_layout
32138
32139 \end_inset
32140
32141
32142 \begin_inset Quotes erd
32143 \end_inset
32144
32145  in the example above.
32146  This information can be used in further processing of the DocBook files.
32147  
32148 \end_layout
32149
32150 \begin_layout Description
32151
32152 \change_inserted -970929547 1515111337
32153 \begin_inset Flex Code
32154 status collapsed
32155
32156 \begin_layout Plain Layout
32157
32158 \change_inserted -970929547 1515111285
32159 DocBookItemLabelTag
32160 \change_unchanged
32161
32162 \end_layout
32163
32164 \end_inset
32165
32166  [
32167 \begin_inset Flex Code
32168 status collapsed
32169
32170 \begin_layout Plain Layout
32171
32172 \change_inserted -970929547 1515111279
32173 string
32174 \change_unchanged
32175
32176 \end_layout
32177
32178 \end_inset
32179
32180 ] The tag to be used for the item label tag within the inset,
32181  replacing 
32182 \begin_inset Quotes eld
32183 \end_inset
32184
32185
32186 \begin_inset Flex Code
32187 status collapsed
32188
32189 \begin_layout Plain Layout
32190
32191 \change_inserted -970929547 1515111311
32192 itemlabeltag
32193 \change_unchanged
32194
32195 \end_layout
32196
32197 \end_inset
32198
32199
32200 \begin_inset Quotes erd
32201 \end_inset
32202
32203  in the example above.
32204  This parameter only makes sense when itemising layouts are used with a notion of labels,
32205  such as definition lists.
32206  
32207 \change_inserted 1075283030 1597699874
32208
32209 \end_layout
32210
32211 \begin_layout Description
32212
32213 \change_inserted 1075283030 1597699874
32214 \begin_inset Flex Code
32215 status collapsed
32216
32217 \begin_layout Plain Layout
32218
32219 \change_inserted 1075283030 1597699880
32220 DocBookItemLabelTagType
32221 \change_unchanged
32222
32223 \end_layout
32224
32225 \end_inset
32226
32227  [
32228 \begin_inset Flex Code
32229 status collapsed
32230
32231 \begin_layout Plain Layout
32232
32233 \change_inserted 1075283030 1597699874
32234 block,
32235  paragraph,
32236  inline
32237 \change_unchanged
32238
32239 \end_layout
32240
32241 \end_inset
32242
32243 ] The new-line policy for this tag,
32244  see Section
32245 \begin_inset space ~
32246 \end_inset
32247
32248
32249 \begin_inset CommandInset ref
32250 LatexCommand ref
32251 reference "subsec:DocBook-New-line-policy"
32252 plural "false"
32253 caps "false"
32254 noprefix "false"
32255 nolink "false"
32256
32257 \end_inset
32258
32259  for the details.
32260  
32261 \change_unchanged
32262
32263 \end_layout
32264
32265 \begin_layout Description
32266
32267 \change_inserted -970929547 1515111124
32268 \begin_inset Flex Code
32269 status collapsed
32270
32271 \begin_layout Plain Layout
32272
32273 \change_inserted -970929547 1515111060
32274 DocBookItemTag
32275 \change_unchanged
32276
32277 \end_layout
32278
32279 \end_inset
32280
32281  [
32282 \begin_inset Flex Code
32283 status collapsed
32284
32285 \begin_layout Plain Layout
32286
32287 \change_inserted -970929547 1515111060
32288 string
32289 \change_unchanged
32290
32291 \end_layout
32292
32293 \end_inset
32294
32295 ] The tag to be used for the item tag within the inset,
32296  replacing 
32297 \begin_inset Quotes eld
32298 \end_inset
32299
32300
32301 \begin_inset Flex Code
32302 status collapsed
32303
32304 \begin_layout Plain Layout
32305
32306 \change_inserted -970929547 1515111060
32307 itemtag
32308 \change_unchanged
32309
32310 \end_layout
32311
32312 \end_inset
32313
32314
32315 \begin_inset Quotes erd
32316 \end_inset
32317
32318  in the example above.
32319  The default is 
32320 \begin_inset Flex Code
32321 status collapsed
32322
32323 \begin_layout Plain Layout
32324
32325 \change_inserted -970929547 1515111060
32326 NONE
32327 \change_unchanged
32328
32329 \end_layout
32330
32331 \end_inset
32332
32333 ,
32334  indicating that there is no item tag.
32335  This parameter only makes sense when itemising layouts are used,
32336  such as lists.
32337  
32338 \change_inserted 1075283030 1597699890
32339
32340 \end_layout
32341
32342 \begin_layout Description
32343
32344 \change_inserted 1075283030 1597699890
32345 \begin_inset Flex Code
32346 status collapsed
32347
32348 \begin_layout Plain Layout
32349
32350 \change_inserted 1075283030 1597699890
32351 DocBookItemTagType
32352 \change_unchanged
32353
32354 \end_layout
32355
32356 \end_inset
32357
32358  [
32359 \begin_inset Flex Code
32360 status collapsed
32361
32362 \begin_layout Plain Layout
32363
32364 \change_inserted 1075283030 1597699890
32365 block,
32366  paragraph,
32367  inline
32368 \change_unchanged
32369
32370 \end_layout
32371
32372 \end_inset
32373
32374 ] The new-line policy for this tag,
32375  see Section
32376 \begin_inset space ~
32377 \end_inset
32378
32379
32380 \begin_inset CommandInset ref
32381 LatexCommand ref
32382 reference "subsec:DocBook-New-line-policy"
32383 plural "false"
32384 caps "false"
32385 noprefix "false"
32386 nolink "false"
32387
32388 \end_inset
32389
32390  for the details.
32391  
32392 \change_unchanged
32393
32394 \end_layout
32395
32396 \begin_layout Description
32397
32398 \change_inserted -970929547 1515111298
32399 \begin_inset Flex Code
32400 status collapsed
32401
32402 \begin_layout Plain Layout
32403
32404 \change_inserted -970929547 1515111124
32405 DocBookItemWrapperAttr
32406 \change_unchanged
32407
32408 \end_layout
32409
32410 \end_inset
32411
32412  [
32413 \begin_inset Flex Code
32414 status collapsed
32415
32416 \begin_layout Plain Layout
32417
32418 \change_inserted -970929547 1515111124
32419 string
32420 \change_unchanged
32421
32422 \end_layout
32423
32424 \end_inset
32425
32426 ] Specifies attribute information to be output with the item wrapper tag,
32427  replacing 
32428 \begin_inset Quotes eld
32429 \end_inset
32430
32431
32432 \begin_inset Flex Code
32433 status collapsed
32434
32435 \begin_layout Plain Layout
32436
32437 \change_inserted -970929547 1515111150
32438 itemwrapperattr
32439 \change_unchanged
32440
32441 \end_layout
32442
32443 \end_inset
32444
32445
32446 \begin_inset Quotes erd
32447 \end_inset
32448
32449  in the example above.
32450  This information can be used in further processing of the DocBook files.
32451  
32452 \change_unchanged
32453
32454 \end_layout
32455
32456 \begin_layout Description
32457
32458 \change_inserted -970929547 1515111113
32459 \begin_inset Flex Code
32460 status collapsed
32461
32462 \begin_layout Plain Layout
32463
32464 \change_inserted -970929547 1515111073
32465 DocBookItemWrapperTag
32466 \change_unchanged
32467
32468 \end_layout
32469
32470 \end_inset
32471
32472  [
32473 \begin_inset Flex Code
32474 status collapsed
32475
32476 \begin_layout Plain Layout
32477
32478 \change_inserted -970929547 1515111073
32479 string
32480 \change_unchanged
32481
32482 \end_layout
32483
32484 \end_inset
32485
32486 ] The tag to be used for the item wrapper tag within the inset,
32487  replacing 
32488 \begin_inset Quotes eld
32489 \end_inset
32490
32491
32492 \begin_inset Flex Code
32493 status collapsed
32494
32495 \begin_layout Plain Layout
32496
32497 \change_inserted -970929547 1515111083
32498 itemwrappertag
32499 \change_unchanged
32500
32501 \end_layout
32502
32503 \end_inset
32504
32505
32506 \begin_inset Quotes erd
32507 \end_inset
32508
32509  in the example above.
32510  The default is 
32511 \begin_inset Flex Code
32512 status collapsed
32513
32514 \begin_layout Plain Layout
32515
32516 \change_inserted -970929547 1515111073
32517 NONE
32518 \change_unchanged
32519
32520 \end_layout
32521
32522 \end_inset
32523
32524 ,
32525  indicating that there is no item wrapper tag:
32526  tag and content are directly output without it for each itemised element.
32527  This parameter only makes sense when itemising layouts are used,
32528  such as lists.
32529  
32530 \change_inserted 1075283030 1597699897
32531
32532 \end_layout
32533
32534 \begin_layout Description
32535
32536 \change_inserted 1075283030 1597699897
32537 \begin_inset Flex Code
32538 status collapsed
32539
32540 \begin_layout Plain Layout
32541
32542 \change_inserted 1075283030 1597699900
32543 DocBookItemWrapperTagType
32544 \change_unchanged
32545
32546 \end_layout
32547
32548 \end_inset
32549
32550  [
32551 \begin_inset Flex Code
32552 status collapsed
32553
32554 \begin_layout Plain Layout
32555
32556 \change_inserted 1075283030 1597699897
32557 block,
32558  paragraph,
32559  inline
32560 \change_unchanged
32561
32562 \end_layout
32563
32564 \end_inset
32565
32566 ] The new-line policy for this tag,
32567  see Section
32568 \begin_inset space ~
32569 \end_inset
32570
32571
32572 \begin_inset CommandInset ref
32573 LatexCommand ref
32574 reference "subsec:DocBook-New-line-policy"
32575 plural "false"
32576 caps "false"
32577 noprefix "false"
32578 nolink "false"
32579
32580 \end_inset
32581
32582  for the details.
32583  
32584 \change_unchanged
32585
32586 \end_layout
32587
32588 \begin_layout Description
32589
32590 \change_inserted -970929547 1515110104
32591 \begin_inset Flex Code
32592 status collapsed
32593
32594 \begin_layout Plain Layout
32595
32596 \change_inserted -970929547 1515110104
32597 DocBookInnerAttr
32598 \change_unchanged
32599
32600 \end_layout
32601
32602 \end_inset
32603
32604  [
32605 \begin_inset Flex Code
32606 status collapsed
32607
32608 \begin_layout Plain Layout
32609
32610 \change_inserted -970929547 1515110104
32611 string
32612 \change_unchanged
32613
32614 \end_layout
32615
32616 \end_inset
32617
32618 ] Specifies attribute information to be output with the inner tag,
32619  replacing 
32620 \begin_inset Quotes eld
32621 \end_inset
32622
32623
32624 \begin_inset Flex Code
32625 status collapsed
32626
32627 \begin_layout Plain Layout
32628
32629 \change_inserted -970929547 1515110104
32630 innerattr
32631 \change_unchanged
32632
32633 \end_layout
32634
32635 \end_inset
32636
32637
32638 \begin_inset Quotes erd
32639 \end_inset
32640
32641  in the example above.
32642  This information can be used in further processing of the DocBook files.
32643  
32644 \end_layout
32645
32646 \begin_layout Description
32647
32648 \change_inserted -970929547 1515110906
32649 \begin_inset Flex Code
32650 status collapsed
32651
32652 \begin_layout Plain Layout
32653
32654 \change_inserted -970929547 1515110104
32655 DocBookInnerTag
32656 \change_unchanged
32657
32658 \end_layout
32659
32660 \end_inset
32661
32662  [
32663 \begin_inset Flex Code
32664 status collapsed
32665
32666 \begin_layout Plain Layout
32667
32668 \change_inserted -970929547 1515110104
32669 string
32670 \change_unchanged
32671
32672 \end_layout
32673
32674 \end_inset
32675
32676 ] The tag to be used for the inner tag within the inset,
32677  replacing 
32678 \begin_inset Quotes eld
32679 \end_inset
32680
32681
32682 \begin_inset Flex Code
32683 status collapsed
32684
32685 \begin_layout Plain Layout
32686
32687 \change_inserted -970929547 1515110104
32688 innertag
32689 \change_unchanged
32690
32691 \end_layout
32692
32693 \end_inset
32694
32695
32696 \begin_inset Quotes erd
32697 \end_inset
32698
32699  in the example above.
32700  The default is 
32701 \begin_inset Flex Code
32702 status collapsed
32703
32704 \begin_layout Plain Layout
32705
32706 \change_inserted -970929547 1515110791
32707 NONE
32708 \change_unchanged
32709
32710 \end_layout
32711
32712 \end_inset
32713
32714 ,
32715  indicating that there is no inner tag:
32716  content is directly output without it.
32717 \change_inserted 1075283030 1597699904
32718
32719 \end_layout
32720
32721 \begin_layout Description
32722
32723 \change_inserted 1075283030 1597699904
32724 \begin_inset Flex Code
32725 status collapsed
32726
32727 \begin_layout Plain Layout
32728
32729 \change_inserted 1075283030 1597699904
32730 DocBookInnerTagType
32731 \change_unchanged
32732
32733 \end_layout
32734
32735 \end_inset
32736
32737  [
32738 \begin_inset Flex Code
32739 status collapsed
32740
32741 \begin_layout Plain Layout
32742
32743 \change_inserted 1075283030 1597699904
32744 block,
32745  paragraph,
32746  inline
32747 \change_unchanged
32748
32749 \end_layout
32750
32751 \end_inset
32752
32753 ] The new-line policy for this tag,
32754  see Section
32755 \begin_inset space ~
32756 \end_inset
32757
32758
32759 \begin_inset CommandInset ref
32760 LatexCommand ref
32761 reference "subsec:DocBook-New-line-policy"
32762 plural "false"
32763 caps "false"
32764 noprefix "false"
32765 nolink "false"
32766
32767 \end_inset
32768
32769  for the details.
32770  
32771 \change_unchanged
32772
32773 \end_layout
32774
32775 \begin_layout Description
32776
32777 \change_inserted -970929547 1515110753
32778 \begin_inset Flex Code
32779 status collapsed
32780
32781 \begin_layout Plain Layout
32782
32783 \change_inserted -970929547 1515110665
32784 DocBookSectionTag
32785 \change_unchanged
32786
32787 \end_layout
32788
32789 \end_inset
32790
32791  [
32792 \begin_inset Flex Code
32793 status collapsed
32794
32795 \begin_layout Plain Layout
32796
32797 \change_inserted -970929547 1515110661
32798 string
32799 \change_unchanged
32800
32801 \end_layout
32802
32803 \end_inset
32804
32805 ] Specifies the tag that corresponds to this kind of section.
32806  This parameter only makes sense for sectioning elements (part,
32807  chapter,
32808  section,
32809  etc.).
32810  The default value is 
32811 \begin_inset Flex Code
32812 status collapsed
32813
32814 \begin_layout Plain Layout
32815
32816 \change_inserted -970929547 1515110721
32817 section
32818 \change_unchanged
32819
32820 \end_layout
32821
32822 \end_inset
32823
32824 ,
32825  and is only overridden when DocBook uses something else for sectioning (
32826 \change_inserted 1075283030 1597699921
32827 typically,
32828  
32829 \change_inserted -970929547 1515110753
32830 parts and chapters of a book).
32831  
32832 \change_unchanged
32833
32834 \end_layout
32835
32836 \begin_layout Description
32837
32838 \change_inserted -970929547 1515110811
32839 \begin_inset Flex Code
32840 status collapsed
32841
32842 \begin_layout Plain Layout
32843
32844 \change_inserted -970929547 1496612023
32845 DocBookTag
32846 \change_unchanged
32847
32848 \end_layout
32849
32850 \end_inset
32851
32852  [
32853 \begin_inset Flex Code
32854 status collapsed
32855
32856 \begin_layout Plain Layout
32857
32858 \change_inserted -970929547 1496610966
32859 string
32860 \change_unchanged
32861
32862 \end_layout
32863
32864 \end_inset
32865
32866 ] The tag to be used for this inset,
32867  replacing 
32868 \begin_inset Quotes eld
32869 \end_inset
32870
32871
32872 \begin_inset Flex Code
32873 status collapsed
32874
32875 \begin_layout Plain Layout
32876
32877 \change_inserted -970929547 1496612033
32878 tag
32879 \change_unchanged
32880
32881 \end_layout
32882
32883 \end_inset
32884
32885
32886 \begin_inset Quotes erd
32887 \end_inset
32888
32889  in the example above.
32890  The default is the name of the float and always needs to be changed,
32891  as DocBook provides no generic inset tag.
32892 \change_inserted 1075283030 1597699924
32893
32894 \end_layout
32895
32896 \begin_layout Description
32897
32898 \change_inserted 1075283030 1597699924
32899 \begin_inset Flex Code
32900 status collapsed
32901
32902 \begin_layout Plain Layout
32903
32904 \change_inserted 1075283030 1597699924
32905 DocBookTagType
32906 \change_unchanged
32907
32908 \end_layout
32909
32910 \end_inset
32911
32912  [
32913 \begin_inset Flex Code
32914 status collapsed
32915
32916 \begin_layout Plain Layout
32917
32918 \change_inserted 1075283030 1597699924
32919 block,
32920  paragraph,
32921  inline
32922 \change_unchanged
32923
32924 \end_layout
32925
32926 \end_inset
32927
32928 ] The new-line policy for this tag,
32929  see Section
32930 \begin_inset space ~
32931 \end_inset
32932
32933
32934 \begin_inset CommandInset ref
32935 LatexCommand ref
32936 reference "subsec:DocBook-New-line-policy"
32937 plural "false"
32938 caps "false"
32939 noprefix "false"
32940 nolink "false"
32941
32942 \end_inset
32943
32944  for the details.
32945  
32946 \change_unchanged
32947
32948 \end_layout
32949
32950 \begin_layout Description
32951
32952 \change_inserted -970929547 1515110832
32953 \begin_inset Flex Code
32954 status collapsed
32955
32956 \begin_layout Plain Layout
32957
32958 \change_inserted -970929547 1515110822
32959 DocBookWrapperAttr
32960 \change_unchanged
32961
32962 \end_layout
32963
32964 \end_inset
32965
32966  [
32967 \begin_inset Flex Code
32968 status collapsed
32969
32970 \begin_layout Plain Layout
32971
32972 \change_inserted -970929547 1515110811
32973 string
32974 \change_unchanged
32975
32976 \end_layout
32977
32978 \end_inset
32979
32980 ] Specifies attribute information to be output with the outer 
32981 \change_inserted 34634807 1620057958
32982 wrapper 
32983 \change_inserted -970929547 1515110832
32984 tag,
32985  replacing 
32986 \begin_inset Quotes eld
32987 \end_inset
32988
32989
32990 \begin_inset Flex Code
32991 status collapsed
32992
32993 \begin_layout Plain Layout
32994
32995 \change_inserted -970929547 1515110845
32996 wrapperattr
32997 \change_unchanged
32998
32999 \end_layout
33000
33001 \end_inset
33002
33003
33004 \begin_inset Quotes erd
33005 \end_inset
33006
33007  in the example above.
33008  This information can be used in further processing of the DocBook files.
33009  
33010 \end_layout
33011
33012 \begin_layout Description
33013
33014 \change_inserted -970929547 1515110917
33015 \begin_inset Flex Code
33016 status collapsed
33017
33018 \begin_layout Plain Layout
33019
33020 \change_inserted -970929547 1515110826
33021 DocBookWrapperTag
33022 \change_unchanged
33023
33024 \end_layout
33025
33026 \end_inset
33027
33028  [
33029 \begin_inset Flex Code
33030 status collapsed
33031
33032 \begin_layout Plain Layout
33033
33034 \change_inserted -970929547 1515110811
33035 string
33036 \change_unchanged
33037
33038 \end_layout
33039
33040 \end_inset
33041
33042 ] The tag to be used for the wrapper tag around the inset,
33043  replacing 
33044 \begin_inset Quotes eld
33045 \end_inset
33046
33047
33048 \begin_inset Flex Code
33049 status collapsed
33050
33051 \begin_layout Plain Layout
33052
33053 \change_inserted -970929547 1515110842
33054 wrappertag
33055 \change_unchanged
33056
33057 \end_layout
33058
33059 \end_inset
33060
33061
33062 \begin_inset Quotes erd
33063 \end_inset
33064
33065  in the example above.
33066  The default is 
33067 \begin_inset Flex Code
33068 status collapsed
33069
33070 \begin_layout Plain Layout
33071
33072 \change_inserted -970929547 1515110811
33073 NONE
33074 \change_unchanged
33075
33076 \end_layout
33077
33078 \end_inset
33079
33080 ,
33081  indicating that there is no wrapper tag:
33082  tag and content are directly output without it.
33083 \change_inserted 1075283030 1597699929
33084
33085 \end_layout
33086
33087 \begin_layout Description
33088
33089 \change_inserted 1075283030 1597699929
33090 \begin_inset Flex Code
33091 status collapsed
33092
33093 \begin_layout Plain Layout
33094
33095 \change_inserted 1075283030 1597699932
33096 DocBookWrapperTagType
33097 \change_unchanged
33098
33099 \end_layout
33100
33101 \end_inset
33102
33103  [
33104 \begin_inset Flex Code
33105 status collapsed
33106
33107 \begin_layout Plain Layout
33108
33109 \change_inserted 1075283030 1597699929
33110 block,
33111  paragraph,
33112  inline
33113 \change_unchanged
33114
33115 \end_layout
33116
33117 \end_inset
33118
33119 ] The new-line policy for this tag,
33120  see Section
33121 \begin_inset space ~
33122 \end_inset
33123
33124
33125 \begin_inset CommandInset ref
33126 LatexCommand ref
33127 reference "subsec:DocBook-New-line-policy"
33128 plural "false"
33129 caps "false"
33130 noprefix "false"
33131 nolink "false"
33132
33133 \end_inset
33134
33135  for the details.
33136  
33137 \change_unchanged
33138
33139 \end_layout
33140
33141 \begin_layout Subsection
33142
33143 \change_inserted -970929547 1515110040
33144 Float DocBook
33145 \end_layout
33146
33147 \begin_layout Standard
33148
33149 \change_inserted -970929547 1496611700
33150 The DocBook output for floats too can be controlled by layout information.
33151  The output has the following form:
33152 \end_layout
33153
33154 \begin_layout LyX-Code
33155
33156 \change_inserted -970929547 1515109700
33157 <tag attr>
33158 \end_layout
33159
33160 \begin_layout LyX-Code
33161
33162 \change_inserted -970929547 1515110138
33163   Contents of the float as DocBook.
33164 \end_layout
33165
33166 \begin_layout LyX-Code
33167
33168 \change_inserted -970929547 1496610966
33169 </tag>
33170 \end_layout
33171
33172 \begin_layout Standard
33173
33174 \change_inserted -970929547 1496611715
33175 The caption,
33176  if there is one,
33177  is a separate inset and will be output as a title.
33178  
33179 \end_layout
33180
33181 \begin_layout Description
33182
33183 \change_inserted -970929547 1515110033
33184 \begin_inset Flex Code
33185 status collapsed
33186
33187 \begin_layout Plain Layout
33188
33189 \change_inserted -970929547 1515109702
33190 DocBookAttr
33191 \change_unchanged
33192
33193 \end_layout
33194
33195 \end_inset
33196
33197  [
33198 \begin_inset Flex Code
33199 status collapsed
33200
33201 \begin_layout Plain Layout
33202
33203 \change_inserted -970929547 1496610966
33204 string
33205 \change_unchanged
33206
33207 \end_layout
33208
33209 \end_inset
33210
33211 ] Specifies attribute information to be output with the main tag,
33212  replacing 
33213 \begin_inset Quotes eld
33214 \end_inset
33215
33216
33217 \begin_inset Flex Code
33218 status collapsed
33219
33220 \begin_layout Plain Layout
33221
33222 \change_inserted -970929547 1515110035
33223 attr
33224 \change_unchanged
33225
33226 \end_layout
33227
33228 \end_inset
33229
33230
33231 \begin_inset Quotes erd
33232 \end_inset
33233
33234  in the example above.
33235  This information can be used in further processing of the DocBook files.
33236  
33237 \end_layout
33238
33239 \begin_layout Description
33240
33241 \change_inserted -970929547 1515110157
33242 \begin_inset Flex Code
33243 status collapsed
33244
33245 \begin_layout Plain Layout
33246
33247 \change_inserted -970929547 1496611782
33248 DocBookTag
33249 \change_unchanged
33250
33251 \end_layout
33252
33253 \end_inset
33254
33255  [
33256 \begin_inset Flex Code
33257 status collapsed
33258
33259 \begin_layout Plain Layout
33260
33261 \change_inserted -970929547 1496610966
33262 string
33263 \change_unchanged
33264
33265 \end_layout
33266
33267 \end_inset
33268
33269 ] The tag to be used for this float,
33270  replacing 
33271 \begin_inset Quotes eld
33272 \end_inset
33273
33274
33275 \begin_inset Flex Code
33276 status collapsed
33277
33278 \begin_layout Plain Layout
33279
33280 \change_inserted -970929547 1496610966
33281 tag
33282 \change_unchanged
33283
33284 \end_layout
33285
33286 \end_inset
33287
33288
33289 \begin_inset Quotes erd
33290 \end_inset
33291
33292  in the example above.
33293  The default is the name of the float and always needs to be changed,
33294  as DocBook provides no generic float tag.
33295 \end_layout
33296
33297 \begin_layout Subsection
33298
33299 \change_inserted -970929547 1515110157
33300 Bibliography formatting
33301 \end_layout
33302
33303 \begin_layout Standard
33304
33305 \change_deleted 1075283030 1597699984
33306 The 
33307 \change_inserted 1075283030 1597699985
33308 Included 
33309 \change_inserted -970929547 1515110187
33310 bibliograph
33311 \change_deleted 1075283030 1597699987
33312 y
33313 \change_inserted 1075283030 1597699987
33314 ies
33315 \change_inserted -970929547 1515110187
33316  cannot be formatted:
33317  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file)
33318 \change_inserted 1075283030 1597700117
33319 ,
33320  using the 
33321 \begin_inset Flex Code
33322 status collapsed
33323
33324 \begin_layout Plain Layout
33325
33326 \change_inserted 1075283030 1597700120
33327 biblioentry
33328 \change_unchanged
33329
33330 \end_layout
33331
33332 \end_inset
33333
33334  tag
33335 \change_inserted -970929547 1515110187
33336 .
33337 \change_inserted 1075283030 1597700092
33338
33339 \end_layout
33340
33341 \begin_layout Standard
33342
33343 \change_inserted 1075283030 1597700112
33344 When the bibliographic entries are manually inserted into the 
33345 \change_deleted 34634807 1620057319
33346 LyX
33347 \change_inserted 34634807 1620057319
33348 \SpecialChar LyX
33349
33350 \change_inserted 1075283030 1597700112
33351  document as Bibliography Items,
33352  the user deals with formatting 
33353 \change_unchanged
33354 them
33355 \change_inserted 1075283030 1597700112
33356 self:
33357  there is no attempt of parsing what the user wrote,
33358  the string is directly used (with the 
33359 \begin_inset Flex Code
33360 status collapsed
33361
33362 \begin_layout Plain Layout
33363
33364 \change_inserted 1075283030 1597700076
33365 bibliomixed
33366 \change_unchanged
33367
33368 \end_layout
33369
33370 \end_inset
33371
33372  tag).
33373  
33374 \change_unchanged
33375
33376 \end_layout
33377
33378 \begin_layout Chapter
33379 Including External Material
33380 \begin_inset CommandInset label
33381 LatexCommand label
33382 name "chap:Including-External-Material"
33383
33384 \end_inset
33385
33386
33387 \end_layout
33388
33389 \begin_layout Standard
33390 \begin_inset Box Shadowbox
33391 position "t"
33392 hor_pos "c"
33393 has_inner_box 1
33394 inner_pos "t"
33395 use_parbox 0
33396 use_makebox 0
33397 width "100col%"
33398 special "none"
33399 height "1in"
33400 height_special "totalheight"
33401 thickness "0.4pt"
33402 separation "3pt"
33403 shadowsize "4pt"
33404 framecolor "black"
33405 backgroundcolor "none"
33406 status open
33407
33408 \begin_layout Plain Layout
33409 WARNING:
33410  This portion of the documentation has not been updated for some time.
33411  We certainly hope that it is still accurate,
33412  but there are no guarantees.
33413 \end_layout
33414
33415 \end_inset
33416
33417
33418 \end_layout
33419
33420 \begin_layout Standard
33421 The use of material from sources external to \SpecialChar LyX
33422  is covered in detail in the 
33423 \emph on
33424 Embedded Objects
33425 \emph default
33426  manual.
33427  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
33428 \end_layout
33429
33430 \begin_layout Section
33431 How does it work?
33432 \end_layout
33433
33434 \begin_layout Standard
33435 The external material feature is based on the concept of a 
33436 \emph on
33437 template
33438 \emph default
33439 .
33440  A template is a specification of how \SpecialChar LyX
33441  should interface with a certain kind of material.
33442  As bundled,
33443  \SpecialChar LyX
33444  comes with predefined templates for Xfig figures,
33445  various raster format images,
33446  chess diagrams,
33447  and LilyPond music notation.
33448  You can check the actual list by using the menu 
33449 \begin_inset Flex Noun
33450 status collapsed
33451
33452 \begin_layout Plain Layout
33453 Insert\SpecialChar menuseparator
33454 File\SpecialChar menuseparator
33455 External Material
33456 \end_layout
33457
33458 \end_inset
33459
33460 .
33461  Furthermore,
33462  it is possible to roll your own template to support a specific kind of material.
33463  Later we'll describe in more detail what is involved,
33464  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
33465  version.
33466 \end_layout
33467
33468 \begin_layout Standard
33469 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.
33470  For example,
33471  consider the case of a figure produced with 
33472 \begin_inset Flex Code
33473 status collapsed
33474
33475 \begin_layout Plain Layout
33476 Xfig
33477 \end_layout
33478
33479 \end_inset
33480
33481 .
33482  The Xfig application itself works on an original file with the 
33483 \begin_inset Flex Code
33484 status collapsed
33485
33486 \begin_layout Plain Layout
33487 .fig
33488 \end_layout
33489
33490 \end_inset
33491
33492  extension.
33493  Within Xfig,
33494  you create and change your figure,
33495  and when you are done,
33496  you save the 
33497 \begin_inset Flex Code
33498 status collapsed
33499
33500 \begin_layout Plain Layout
33501 fig
33502 \end_layout
33503
33504 \end_inset
33505
33506 -file.
33507  When you want to include the figure in your document,
33508  you invoke 
33509 \begin_inset Flex Code
33510 status collapsed
33511
33512 \begin_layout Plain Layout
33513 transfig
33514 \end_layout
33515
33516 \end_inset
33517
33518  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
33519  file.
33520  In this case,
33521  the 
33522 \begin_inset Flex Code
33523 status collapsed
33524
33525 \begin_layout Plain Layout
33526 .fig
33527 \end_layout
33528
33529 \end_inset
33530
33531  file is the original file,
33532  and the PostScript file is the produced file.
33533 \end_layout
33534
33535 \begin_layout Standard
33536 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
33537  Furthermore,
33538  it provides us with the flexibility that is needed to support multiple export formats.
33539  For instance,
33540  in the case of a plain text file,
33541  it is not exactly an award-winning idea to include the figure as raw PostScript.
33542  Instead,
33543  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.
33544  The external material management allows you to do this,
33545  because it is parametrized on the different export formats that \SpecialChar LyX
33546  supports.
33547 \end_layout
33548
33549 \begin_layout Standard
33550 Besides supporting the production of different products according to the exported format,
33551  it supports tight integration with editing and viewing applications.
33552  In the case of an Xfig figure,
33553  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
33554 ,
33555  and also preview the produced PostScript file with Ghostview with another click.
33556  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
33557  In this way,
33558  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
33559  and ultimately be more productive.
33560 \end_layout
33561
33562 \begin_layout Section
33563 The external template configuration files
33564 \end_layout
33565
33566 \begin_layout Standard
33567 It is relatively easy to add custom external template definitions to \SpecialChar LyX
33568 .
33569  However,
33570  be aware that doing this in an careless manner most probably 
33571 \emph on
33572 will
33573 \emph default
33574  introduce an easily exploitable security hole.
33575  So before you do this,
33576  please read the discussion about security in 
33577 \begin_inset CommandInset ref
33578 LatexCommand ref
33579 reference "sec:Security-discussion"
33580 nolink "false"
33581
33582 \end_inset
33583
33584 .
33585 \end_layout
33586
33587 \begin_layout Standard
33588 Having said that,
33589  we encourage you to submit any interesting templates that you create.
33590  
33591 \end_layout
33592
33593 \begin_layout Standard
33594 The external templates are defined in the 
33595 \begin_inset Flex Code
33596 status collapsed
33597
33598 \begin_layout Plain Layout
33599 *.xtemplate
33600 \end_layout
33601
33602 \end_inset
33603
33604  files that are stored in the 
33605 \begin_inset Flex Code
33606 status collapsed
33607
33608 \begin_layout Plain Layout
33609 LyXDir/lib/xtemplates/
33610 \end_layout
33611
33612 \end_inset
33613
33614  directory.
33615  Each template is defined in a file of its own.
33616  You can place your own templates in 
33617 \begin_inset Flex Code
33618 status collapsed
33619
33620 \begin_layout Plain Layout
33621 UserDir/xtemplates/
33622 \end_layout
33623
33624 \end_inset
33625
33626  or copy existing templates to that directory in order to modify them.
33627 \end_layout
33628
33629 \begin_layout Standard
33630 A typical template looks like this:
33631 \end_layout
33632
33633 \begin_layout LyX-Code
33634 Template XFig
33635 \end_layout
33636
33637 \begin_layout LyX-Code
33638 GuiName "XFig:
33639  $$AbsOrRelPathParent$$Basename"
33640 \end_layout
33641
33642 \begin_layout LyX-Code
33643 HelpText
33644 \end_layout
33645
33646 \begin_layout LyX-Code
33647 An XFig figure.
33648 \end_layout
33649
33650 \begin_layout LyX-Code
33651 HelpTextEnd
33652 \end_layout
33653
33654 \begin_layout LyX-Code
33655 InputFormat fig
33656 \end_layout
33657
33658 \begin_layout LyX-Code
33659 FileFilter "*.fig"
33660 \end_layout
33661
33662 \begin_layout LyX-Code
33663 AutomaticProduction true
33664 \end_layout
33665
33666 \begin_layout LyX-Code
33667 Transform Rotate
33668 \end_layout
33669
33670 \begin_layout LyX-Code
33671 Transform Resize
33672 \end_layout
33673
33674 \begin_layout LyX-Code
33675 Format LaTeX
33676 \end_layout
33677
33678 \begin_layout LyX-Code
33679 TransformCommand Rotate RotationLatexCommand
33680 \end_layout
33681
33682 \begin_layout LyX-Code
33683 TransformCommand Resize ResizeLatexCommand
33684 \end_layout
33685
33686 \begin_layout LyX-Code
33687 Product "$$RotateFront$$ResizeFront
33688 \end_layout
33689
33690 \begin_layout LyX-Code
33691          
33692 \backslash
33693
33694 \backslash
33695 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
33696 \end_layout
33697
33698 \begin_layout LyX-Code
33699          $$ResizeBack$$RotateBack"
33700 \end_layout
33701
33702 \begin_layout LyX-Code
33703 UpdateFormat pstex
33704 \end_layout
33705
33706 \begin_layout LyX-Code
33707 UpdateResult "$$AbsPath$$Basename.pstex_t"
33708 \end_layout
33709
33710 \begin_layout LyX-Code
33711 Requirement "graphicx"
33712 \end_layout
33713
33714 \begin_layout LyX-Code
33715 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
33716 \end_layout
33717
33718 \begin_layout LyX-Code
33719 ReferencedFile latex "$$AbsPath$$Basename.eps"
33720 \end_layout
33721
33722 \begin_layout LyX-Code
33723 ReferencedFile dvi "$$AbsPath$$Basename.eps"
33724 \end_layout
33725
33726 \begin_layout LyX-Code
33727 FormatEnd
33728 \end_layout
33729
33730 \begin_layout LyX-Code
33731 Format PDFLaTeX
33732 \end_layout
33733
33734 \begin_layout LyX-Code
33735 TransformCommand Rotate RotationLatexCommand
33736 \end_layout
33737
33738 \begin_layout LyX-Code
33739 TransformCommand Resize ResizeLatexCommand
33740 \end_layout
33741
33742 \begin_layout LyX-Code
33743 Product "$$RotateFront$$ResizeFront
33744 \end_layout
33745
33746 \begin_layout LyX-Code
33747          
33748 \backslash
33749
33750 \backslash
33751 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
33752 \end_layout
33753
33754 \begin_layout LyX-Code
33755          $$ResizeBack$$RotateBack"
33756 \end_layout
33757
33758 \begin_layout LyX-Code
33759 UpdateFormat pdftex
33760 \end_layout
33761
33762 \begin_layout LyX-Code
33763 UpdateResult "$$AbsPath$$Basename.pdftex_t"
33764 \end_layout
33765
33766 \begin_layout LyX-Code
33767 Requirement "graphicx"
33768 \end_layout
33769
33770 \begin_layout LyX-Code
33771 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
33772 \end_layout
33773
33774 \begin_layout LyX-Code
33775 ReferencedFile latex "$$AbsPath$$Basename.pdf"
33776 \end_layout
33777
33778 \begin_layout LyX-Code
33779 FormatEnd
33780 \end_layout
33781
33782 \begin_layout LyX-Code
33783 Format Ascii
33784 \end_layout
33785
33786 \begin_layout LyX-Code
33787 Product "[XFig:
33788  $$FName]"
33789 \end_layout
33790
33791 \begin_layout LyX-Code
33792 FormatEnd
33793 \end_layout
33794
33795 \begin_layout LyX-Code
33796 Format DocBook
33797 \end_layout
33798
33799 \begin_layout LyX-Code
33800 Product "<graphic fileref=
33801 \backslash
33802 "$$AbsOrRelPathMaster$$Basename.eps
33803 \backslash
33804 ">
33805 \end_layout
33806
33807 \begin_layout LyX-Code
33808          </graphic>"
33809 \end_layout
33810
33811 \begin_layout LyX-Code
33812 UpdateFormat eps
33813 \end_layout
33814
33815 \begin_layout LyX-Code
33816 UpdateResult "$$AbsPath$$Basename.eps"
33817 \end_layout
33818
33819 \begin_layout LyX-Code
33820 ReferencedFile docbook "$$AbsPath$$Basename.eps"
33821 \end_layout
33822
33823 \begin_layout LyX-Code
33824 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
33825 \end_layout
33826
33827 \begin_layout LyX-Code
33828 FormatEnd
33829 \end_layout
33830
33831 \begin_layout LyX-Code
33832 TemplateEnd
33833 \end_layout
33834
33835 \begin_layout Standard
33836 As you can see,
33837  the template is enclosed in 
33838 \begin_inset Flex Code
33839 status collapsed
33840
33841 \begin_layout Plain Layout
33842 Template
33843 \end_layout
33844
33845 \end_inset
33846
33847  \SpecialChar ldots
33848  
33849 \begin_inset Flex Code
33850 status collapsed
33851
33852 \begin_layout Plain Layout
33853 TemplateEnd
33854 \end_layout
33855
33856 \end_inset
33857
33858 .
33859  It contains a header specifying some general settings and,
33860  for each supported primary document file format,
33861  a section 
33862 \begin_inset Flex Code
33863 status collapsed
33864
33865 \begin_layout Plain Layout
33866 Format
33867 \end_layout
33868
33869 \end_inset
33870
33871  \SpecialChar ldots
33872  
33873 \begin_inset Flex Code
33874 status collapsed
33875
33876 \begin_layout Plain Layout
33877 FormatEnd
33878 \end_layout
33879
33880 \end_inset
33881
33882 .
33883 \end_layout
33884
33885 \begin_layout Subsection
33886 The template header
33887 \end_layout
33888
33889 \begin_layout Description
33890 \begin_inset Flex Code
33891 status collapsed
33892
33893 \begin_layout Plain Layout
33894 AutomaticProduction
33895 \begin_inset space ~
33896 \end_inset
33897
33898 true|false
33899 \end_layout
33900
33901 \end_inset
33902
33903  Whether the file represented by the template must be generated by \SpecialChar LyX
33904 .
33905  This command must occur exactly once.
33906 \end_layout
33907
33908 \begin_layout Description
33909 \begin_inset Flex Code
33910 status collapsed
33911
33912 \begin_layout Plain Layout
33913 FileFilter
33914 \begin_inset space ~
33915 \end_inset
33916
33917 <pattern>
33918 \end_layout
33919
33920 \end_inset
33921
33922  A glob pattern that is used in the file dialog to filter out the desired files.
33923  If there is more than one possible file extension (e.
33924 \begin_inset space \thinspace{}
33925 \end_inset
33926
33927 g.
33928 \begin_inset space \space{}
33929 \end_inset
33930
33931 tgif has 
33932 \begin_inset Flex Code
33933 status collapsed
33934
33935 \begin_layout Plain Layout
33936 .obj
33937 \end_layout
33938
33939 \end_inset
33940
33941  and 
33942 \begin_inset Flex Code
33943 status collapsed
33944
33945 \begin_layout Plain Layout
33946 .tgo
33947 \end_layout
33948
33949 \end_inset
33950
33951 ),
33952  use something like 
33953 \begin_inset Flex Code
33954 status collapsed
33955
33956 \begin_layout Plain Layout
33957 "*.{obj,tgo}"
33958 \end_layout
33959
33960 \end_inset
33961
33962 .
33963  This command must occur exactly once.
33964 \end_layout
33965
33966 \begin_layout Description
33967 \begin_inset Flex Code
33968 status collapsed
33969
33970 \begin_layout Plain Layout
33971 GuiName
33972 \begin_inset space ~
33973 \end_inset
33974
33975 <guiname>
33976 \end_layout
33977
33978 \end_inset
33979
33980  The text that is displayed on the button.
33981  This command must occur exactly once.
33982 \end_layout
33983
33984 \begin_layout Description
33985 \begin_inset Flex Code
33986 status collapsed
33987
33988 \begin_layout Plain Layout
33989 HelpText
33990 \begin_inset space ~
33991 \end_inset
33992
33993 <text>
33994 \begin_inset space ~
33995 \end_inset
33996
33997 HelpTextEnd
33998 \end_layout
33999
34000 \end_inset
34001
34002  The help text that is used in the External dialog.
34003  Provide enough information to explain to the user just what the template can provide him with.
34004  This command must occur exactly once.
34005 \end_layout
34006
34007 \begin_layout Description
34008 \begin_inset Flex Code
34009 status collapsed
34010
34011 \begin_layout Plain Layout
34012 InputFormat
34013 \begin_inset space ~
34014 \end_inset
34015
34016 <format>
34017 \end_layout
34018
34019 \end_inset
34020
34021  The file format of the original file.
34022  This must be the name of a format that is known to \SpecialChar LyX
34023  (see 
34024 \begin_inset CommandInset ref
34025 LatexCommand ref
34026 reference "sec:Formats"
34027 nolink "false"
34028
34029 \end_inset
34030
34031 ).
34032  Use 
34033 \begin_inset Quotes eld
34034 \end_inset
34035
34036
34037 \begin_inset Flex Code
34038 status collapsed
34039
34040 \begin_layout Plain Layout
34041 *
34042 \end_layout
34043
34044 \end_inset
34045
34046
34047 \begin_inset Quotes erd
34048 \end_inset
34049
34050  if the template can handle original files of more than one format.
34051  \SpecialChar LyX
34052  will attempt to interrogate the file itself in order to deduce its format in this case.
34053  This command must occur exactly once.
34054 \end_layout
34055
34056 \begin_layout Description
34057 \begin_inset Flex Code
34058 status collapsed
34059
34060 \begin_layout Plain Layout
34061 Template
34062 \begin_inset space ~
34063 \end_inset
34064
34065 <id>
34066 \end_layout
34067
34068 \end_inset
34069
34070  A unique name for the template.
34071  It must not contain substitution macros (see below).
34072 \end_layout
34073
34074 \begin_layout Description
34075 \begin_inset Flex Code
34076 status collapsed
34077
34078 \begin_layout Plain Layout
34079 Transform
34080 \begin_inset space ~
34081 \end_inset
34082
34083 Rotate|Resize|Clip|Extra
34084 \end_layout
34085
34086 \end_inset
34087
34088  This command specifies which transformations are supported by this template.
34089  It may occur zero or more times.
34090  This command enables the corresponding tabs in the external dialog.
34091  Each 
34092 \begin_inset Flex Code
34093 status collapsed
34094
34095 \begin_layout Plain Layout
34096 Transform
34097 \end_layout
34098
34099 \end_inset
34100
34101  command must have either a corresponding 
34102 \begin_inset Flex Code
34103 status collapsed
34104
34105 \begin_layout Plain Layout
34106 TransformCommand
34107 \end_layout
34108
34109 \end_inset
34110
34111  or a 
34112 \begin_inset Flex Code
34113 status collapsed
34114
34115 \begin_layout Plain Layout
34116 TransformOption
34117 \end_layout
34118
34119 \end_inset
34120
34121  command in the 
34122 \begin_inset Flex Code
34123 status collapsed
34124
34125 \begin_layout Plain Layout
34126 Format
34127 \end_layout
34128
34129 \end_inset
34130
34131  section.
34132  Otherwise the transformation will not be supported by that format.
34133 \end_layout
34134
34135 \begin_layout Subsection
34136 The Format section
34137 \end_layout
34138
34139 \begin_layout Description
34140 \begin_inset Flex Code
34141 status collapsed
34142
34143 \begin_layout Plain Layout
34144 Format
34145 \begin_inset space ~
34146 \end_inset
34147
34148 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
34149 \end_layout
34150
34151 \end_inset
34152
34153  The primary document file format that this format definition is for.
34154  Not every template has a sensible representation in all document file formats.
34155  Please define nevertheless a 
34156 \begin_inset Flex Code
34157 status collapsed
34158
34159 \begin_layout Plain Layout
34160 Format
34161 \end_layout
34162
34163 \end_inset
34164
34165  section for all templates.
34166  Use a dummy text when no representation is available.
34167  Then you can at least see a reference to the external material in the exported document.
34168 \end_layout
34169
34170 \begin_layout Description
34171 \begin_inset Flex Code
34172 status collapsed
34173
34174 \begin_layout Plain Layout
34175 Option
34176 \begin_inset space ~
34177 \end_inset
34178
34179 <name>
34180 \begin_inset space ~
34181 \end_inset
34182
34183 <value>
34184 \end_layout
34185
34186 \end_inset
34187
34188  This command defines an additional macro 
34189 \begin_inset Flex Code
34190 status collapsed
34191
34192 \begin_layout Plain Layout
34193 $$<name>
34194 \end_layout
34195
34196 \end_inset
34197
34198  for substitution in 
34199 \begin_inset Flex Code
34200 status collapsed
34201
34202 \begin_layout Plain Layout
34203 Product
34204 \end_layout
34205
34206 \end_inset
34207
34208 .
34209  
34210 \begin_inset Flex Code
34211 status collapsed
34212
34213 \begin_layout Plain Layout
34214 <value>
34215 \end_layout
34216
34217 \end_inset
34218
34219  itself may contain substitution macros.
34220  The advantage over using 
34221 \begin_inset Flex Code
34222 status collapsed
34223
34224 \begin_layout Plain Layout
34225 <value>
34226 \end_layout
34227
34228 \end_inset
34229
34230  directly in 
34231 \begin_inset Flex Code
34232 status collapsed
34233
34234 \begin_layout Plain Layout
34235 Product
34236 \end_layout
34237
34238 \end_inset
34239
34240  is that the substituted value of 
34241 \begin_inset Flex Code
34242 status collapsed
34243
34244 \begin_layout Plain Layout
34245 $$<name>
34246 \end_layout
34247
34248 \end_inset
34249
34250  is sanitized so that it is a valid optional argument in the document format.
34251  This command may occur zero or more times.
34252 \end_layout
34253
34254 \begin_layout Description
34255 \begin_inset Flex Code
34256 status collapsed
34257
34258 \begin_layout Plain Layout
34259 Product
34260 \begin_inset space ~
34261 \end_inset
34262
34263 <text>
34264 \end_layout
34265
34266 \end_inset
34267
34268  The text that is inserted in the exported document.
34269  This is actually the most important command and can be quite complex.
34270  This command must occur exactly once.
34271 \end_layout
34272
34273 \begin_layout Description
34274 \begin_inset Flex Code
34275 status collapsed
34276
34277 \begin_layout Plain Layout
34278 Preamble
34279 \begin_inset space ~
34280 \end_inset
34281
34282 <name>
34283 \end_layout
34284
34285 \end_inset
34286
34287  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
34288  preamble.
34289  It has to be defined using 
34290 \begin_inset Flex Code
34291 status collapsed
34292
34293 \begin_layout Plain Layout
34294 PreambleDef
34295 \end_layout
34296
34297 \end_inset
34298
34299  \SpecialChar ldots
34300  
34301 \begin_inset Flex Code
34302 status collapsed
34303
34304 \begin_layout Plain Layout
34305 PreambleDefEnd
34306 \end_layout
34307
34308 \end_inset
34309
34310 .
34311  This command may occur zero or more times.
34312 \end_layout
34313
34314 \begin_layout Description
34315 \begin_inset Flex Code
34316 status collapsed
34317
34318 \begin_layout Plain Layout
34319 ReferencedFile
34320 \begin_inset space ~
34321 \end_inset
34322
34323 <format>
34324 \begin_inset space ~
34325 \end_inset
34326
34327 <filename>
34328 \end_layout
34329
34330 \end_inset
34331
34332  This command denotes files that are created by the conversion process and are needed for a particular export format.
34333  If the filename is relative,
34334  it is interpreted relative to the master document.
34335  This command may be given zero or more times.
34336 \end_layout
34337
34338 \begin_layout Description
34339 \begin_inset Flex Code
34340 status collapsed
34341
34342 \begin_layout Plain Layout
34343 Requirement
34344 \begin_inset space ~
34345 \end_inset
34346
34347 <package>
34348 \end_layout
34349
34350 \end_inset
34351
34352  The name of a required \SpecialChar LaTeX
34353  package.
34354  The package is included via 
34355 \begin_inset Flex Code
34356 status collapsed
34357
34358 \begin_layout Plain Layout
34359
34360 \backslash
34361 usepackage{}
34362 \end_layout
34363
34364 \end_inset
34365
34366  in the \SpecialChar LaTeX
34367  preamble.
34368  This command may occur zero or more times.
34369 \end_layout
34370
34371 \begin_layout Description
34372 \begin_inset Flex Code
34373 status collapsed
34374
34375 \begin_layout Plain Layout
34376 TransformCommand
34377 \begin_inset space ~
34378 \end_inset
34379
34380 Rotate
34381 \begin_inset space ~
34382 \end_inset
34383
34384 RotationLatexCommand
34385 \end_layout
34386
34387 \end_inset
34388
34389  This command specifies that the built in \SpecialChar LaTeX
34390  command should be used for rotation.
34391  This command may occur once or not at all.
34392 \end_layout
34393
34394 \begin_layout Description
34395 \begin_inset Flex Code
34396 status collapsed
34397
34398 \begin_layout Plain Layout
34399 TransformCommand
34400 \begin_inset space ~
34401 \end_inset
34402
34403 Resize
34404 \begin_inset space ~
34405 \end_inset
34406
34407 ResizeLatexCommand
34408 \end_layout
34409
34410 \end_inset
34411
34412  This command specifies that the built in \SpecialChar LaTeX
34413  command should be used for resizing.
34414  This command may occur once or not at all.
34415 \end_layout
34416
34417 \begin_layout Description
34418 \begin_inset Flex Code
34419 status collapsed
34420
34421 \begin_layout Plain Layout
34422 TransformOption
34423 \begin_inset space ~
34424 \end_inset
34425
34426 Rotate
34427 \begin_inset space ~
34428 \end_inset
34429
34430 RotationLatexOption
34431 \end_layout
34432
34433 \end_inset
34434
34435  This command specifies that rotation is done via an optional argument.
34436  This command may occur once or not at all.
34437 \end_layout
34438
34439 \begin_layout Description
34440 \begin_inset Flex Code
34441 status collapsed
34442
34443 \begin_layout Plain Layout
34444 TransformOption
34445 \begin_inset space ~
34446 \end_inset
34447
34448 Resize
34449 \begin_inset space ~
34450 \end_inset
34451
34452 ResizeLatexOption
34453 \end_layout
34454
34455 \end_inset
34456
34457  This command specifies that resizing is done via an optional argument.
34458  This command may occur once or not at all.
34459 \end_layout
34460
34461 \begin_layout Description
34462 \begin_inset Flex Code
34463 status collapsed
34464
34465 \begin_layout Plain Layout
34466 TransformOption
34467 \begin_inset space ~
34468 \end_inset
34469
34470 Clip
34471 \begin_inset space ~
34472 \end_inset
34473
34474 ClipLatexOption
34475 \end_layout
34476
34477 \end_inset
34478
34479  This command specifies that clipping is done via an optional argument.
34480  This command may occur once or not at all.
34481 \end_layout
34482
34483 \begin_layout Description
34484 \begin_inset Flex Code
34485 status collapsed
34486
34487 \begin_layout Plain Layout
34488 TransformOption
34489 \begin_inset space ~
34490 \end_inset
34491
34492 Extra
34493 \begin_inset space ~
34494 \end_inset
34495
34496 ExtraLatexOption
34497 \end_layout
34498
34499 \end_inset
34500
34501  This command specifies that an extra optional argument is used.
34502  This command may occur once or not at all.
34503 \end_layout
34504
34505 \begin_layout Description
34506 \begin_inset Flex Code
34507 status collapsed
34508
34509 \begin_layout Plain Layout
34510 UpdateFormat
34511 \begin_inset space ~
34512 \end_inset
34513
34514 <format>
34515 \end_layout
34516
34517 \end_inset
34518
34519  The file format of the converted file.
34520  This must be the name of a format that is known to \SpecialChar LyX
34521  (see the 
34522 \begin_inset Flex Noun
34523 status collapsed
34524
34525 \begin_layout Plain Layout
34526 Tools\SpecialChar menuseparator
34527 Preferences\SpecialChar menuseparator
34528 File Handling\SpecialChar menuseparator
34529 File Format
34530 \end_layout
34531
34532 \end_inset
34533
34534  dialog).
34535  This command must occur exactly once.
34536  If the resulting file format is PDF,
34537  you need to specify the format 
34538 \begin_inset Flex Code
34539 status collapsed
34540
34541 \begin_layout Plain Layout
34542 pdf6
34543 \end_layout
34544
34545 \end_inset
34546
34547 .
34548  This is the PDF format used for including graphics.
34549  The other defined PDF formats are for document export.
34550 \end_layout
34551
34552 \begin_layout Description
34553 \begin_inset Flex Code
34554 status collapsed
34555
34556 \begin_layout Plain Layout
34557 UpdateResult
34558 \begin_inset space ~
34559 \end_inset
34560
34561 <filename>
34562 \end_layout
34563
34564 \end_inset
34565
34566  The file name of the converted file.
34567  The file name must be absolute.
34568  This command must occur exactly once.
34569 \end_layout
34570
34571 \begin_layout Subsection
34572 Preamble definitions
34573 \end_layout
34574
34575 \begin_layout Standard
34576 The external template configuration file may contain additional preamble definitions enclosed by 
34577 \begin_inset Flex Code
34578 status collapsed
34579
34580 \begin_layout Plain Layout
34581 PreambleDef
34582 \end_layout
34583
34584 \end_inset
34585
34586  \SpecialChar ldots
34587  
34588 \begin_inset Flex Code
34589 status collapsed
34590
34591 \begin_layout Plain Layout
34592 PreambleDefEnd
34593 \end_layout
34594
34595 \end_inset
34596
34597 .
34598  They can be used by the templates in the 
34599 \begin_inset Flex Code
34600 status collapsed
34601
34602 \begin_layout Plain Layout
34603 Format
34604 \end_layout
34605
34606 \end_inset
34607
34608  section.
34609 \end_layout
34610
34611 \begin_layout Section
34612 The substitution mechanism
34613 \end_layout
34614
34615 \begin_layout Standard
34616 When the external material facility invokes an external program,
34617  it is done on the basis of a command defined in the template configuration file.
34618  These commands can contain various macros that are expanded before execution.
34619  Execution always take place in the directory of the containing document.
34620 \end_layout
34621
34622 \begin_layout Standard
34623 Also,
34624  whenever external material is to be displayed,
34625  the name will be produced by the substitution mechanism,
34626  and most other commands in the template definition support substitution as well.
34627 \end_layout
34628
34629 \begin_layout Standard
34630 The available macros are the following:
34631 \end_layout
34632
34633 \begin_layout Description
34634 \begin_inset Flex Code
34635 status collapsed
34636
34637 \begin_layout Plain Layout
34638 $$AbsOrRelPathMaster
34639 \end_layout
34640
34641 \end_inset
34642
34643  The file path,
34644  absolute or relative to the master \SpecialChar LyX
34645  document.
34646 \end_layout
34647
34648 \begin_layout Description
34649 \begin_inset Flex Code
34650 status collapsed
34651
34652 \begin_layout Plain Layout
34653 $$AbsOrRelPathParent
34654 \end_layout
34655
34656 \end_inset
34657
34658  The file path,
34659  absolute or relative to the \SpecialChar LyX
34660  document.
34661 \end_layout
34662
34663 \begin_layout Description
34664 \begin_inset Flex Code
34665 status collapsed
34666
34667 \begin_layout Plain Layout
34668 $$AbsPath
34669 \end_layout
34670
34671 \end_inset
34672
34673  The absolute file path.
34674 \end_layout
34675
34676 \begin_layout Description
34677 \begin_inset Flex Code
34678 status collapsed
34679
34680 \begin_layout Plain Layout
34681 $$Basename
34682 \end_layout
34683
34684 \end_inset
34685
34686  The filename without path and without the extension.
34687 \end_layout
34688
34689 \begin_layout Description
34690 \begin_inset Flex Code
34691 status collapsed
34692
34693 \begin_layout Plain Layout
34694 $$Contents(
34695 \begin_inset Quotes eld
34696 \end_inset
34697
34698 filename.ext
34699 \begin_inset Quotes erd
34700 \end_inset
34701
34702 )
34703 \end_layout
34704
34705 \end_inset
34706
34707  This macro will expand to the contents of the file with the name 
34708 \begin_inset Flex Code
34709 status collapsed
34710
34711 \begin_layout Plain Layout
34712 filename.ext
34713 \end_layout
34714
34715 \end_inset
34716
34717 .
34718 \end_layout
34719
34720 \begin_layout Description
34721 \begin_inset Flex Code
34722 status collapsed
34723
34724 \begin_layout Plain Layout
34725 $$Extension
34726 \end_layout
34727
34728 \end_inset
34729
34730  The file extension (including the dot).
34731 \end_layout
34732
34733 \begin_layout Description
34734 \begin_inset Flex Code
34735 status collapsed
34736
34737 \begin_layout Plain Layout
34738 $$pngOrjpg
34739 \end_layout
34740
34741 \end_inset
34742
34743  This will be the string 
34744 \begin_inset Quotes eld
34745 \end_inset
34746
34747 jpg
34748 \begin_inset Quotes erd
34749 \end_inset
34750
34751  if the file is in JPEG format,
34752  otherwise it will be the string 
34753 \begin_inset Quotes eld
34754 \end_inset
34755
34756 png
34757 \begin_inset Quotes erd
34758 \end_inset
34759
34760 .
34761  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
34762  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
34763  output format.
34764 \end_layout
34765
34766 \begin_layout Description
34767 \begin_inset Flex Code
34768 status collapsed
34769
34770 \begin_layout Plain Layout
34771 $$FName
34772 \end_layout
34773
34774 \end_inset
34775
34776  The filename of the file specified in the external material dialog.
34777  This is either an absolute name,
34778  or it is relative to the \SpecialChar LyX
34779  document.
34780 \end_layout
34781
34782 \begin_layout Description
34783 \begin_inset Flex Code
34784 status collapsed
34785
34786 \begin_layout Plain Layout
34787 $$FPath
34788 \end_layout
34789
34790 \end_inset
34791
34792  The path part of 
34793 \begin_inset Flex Code
34794 status collapsed
34795
34796 \begin_layout Plain Layout
34797 $$FName
34798 \end_layout
34799
34800 \end_inset
34801
34802  (absolute name or relative to the \SpecialChar LyX
34803  document).
34804 \end_layout
34805
34806 \begin_layout Description
34807 \begin_inset Flex Code
34808 status collapsed
34809
34810 \begin_layout Plain Layout
34811 $$RelPathMaster
34812 \end_layout
34813
34814 \end_inset
34815
34816  The file path,
34817  relative to the master \SpecialChar LyX
34818  document.
34819 \end_layout
34820
34821 \begin_layout Description
34822 \begin_inset Flex Code
34823 status collapsed
34824
34825 \begin_layout Plain Layout
34826 $$RelPathParent
34827 \end_layout
34828
34829 \end_inset
34830
34831  The file path,
34832  relative to the \SpecialChar LyX
34833  document.
34834 \end_layout
34835
34836 \begin_layout Description
34837 \begin_inset Flex Code
34838 status collapsed
34839
34840 \begin_layout Plain Layout
34841 $$Sysdir
34842 \end_layout
34843
34844 \end_inset
34845
34846  This macro will expand to the absolute path of the system directory.
34847  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
34848 .
34849 \end_layout
34850
34851 \begin_layout Description
34852 \begin_inset Flex Code
34853 status collapsed
34854
34855 \begin_layout Plain Layout
34856 $$Tempname
34857 \end_layout
34858
34859 \end_inset
34860
34861  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
34862  or the external material insertion deleted.
34863 \end_layout
34864
34865 \begin_layout Standard
34866 All path macros contain a trailing directory separator,
34867  so you can construct e.
34868 \begin_inset space \thinspace{}
34869 \end_inset
34870
34871 g.
34872 \begin_inset space \space{}
34873 \end_inset
34874
34875 the absolute filename with 
34876 \begin_inset Flex Code
34877 status collapsed
34878
34879 \begin_layout Plain Layout
34880 $$AbsPath$$Basename$$Extension
34881 \end_layout
34882
34883 \end_inset
34884
34885 .
34886 \end_layout
34887
34888 \begin_layout Standard
34889 The macros above are substituted in all commands unless otherwise noted.
34890  The command 
34891 \begin_inset Flex Code
34892 status collapsed
34893
34894 \begin_layout Plain Layout
34895 Product
34896 \end_layout
34897
34898 \end_inset
34899
34900  supports additionally the following substitutions if they are enabled by the 
34901 \begin_inset Flex Code
34902 status collapsed
34903
34904 \begin_layout Plain Layout
34905 Transform
34906 \end_layout
34907
34908 \end_inset
34909
34910  and 
34911 \begin_inset Flex Code
34912 status collapsed
34913
34914 \begin_layout Plain Layout
34915 TransformCommand
34916 \end_layout
34917
34918 \end_inset
34919
34920  commands:
34921 \end_layout
34922
34923 \begin_layout Description
34924 \begin_inset Flex Code
34925 status collapsed
34926
34927 \begin_layout Plain Layout
34928 $$ResizeFront
34929 \end_layout
34930
34931 \end_inset
34932
34933  The front part of the resize command.
34934 \end_layout
34935
34936 \begin_layout Description
34937 \begin_inset Flex Code
34938 status collapsed
34939
34940 \begin_layout Plain Layout
34941 $$ResizeBack
34942 \end_layout
34943
34944 \end_inset
34945
34946  The back part of the resize command.
34947 \end_layout
34948
34949 \begin_layout Description
34950 \begin_inset Flex Code
34951 status collapsed
34952
34953 \begin_layout Plain Layout
34954 $$RotateFront
34955 \end_layout
34956
34957 \end_inset
34958
34959  The front part of the rotation command.
34960 \end_layout
34961
34962 \begin_layout Description
34963 \begin_inset Flex Code
34964 status collapsed
34965
34966 \begin_layout Plain Layout
34967 $$RotateBack
34968 \end_layout
34969
34970 \end_inset
34971
34972  The back part of the rotation command.
34973 \end_layout
34974
34975 \begin_layout Standard
34976 The value string of the 
34977 \begin_inset Flex Code
34978 status collapsed
34979
34980 \begin_layout Plain Layout
34981 Option
34982 \end_layout
34983
34984 \end_inset
34985
34986  command supports additionally the following substitutions if they are enabled by the 
34987 \begin_inset Flex Code
34988 status collapsed
34989
34990 \begin_layout Plain Layout
34991 Transform
34992 \end_layout
34993
34994 \end_inset
34995
34996  and 
34997 \begin_inset Flex Code
34998 status collapsed
34999
35000 \begin_layout Plain Layout
35001 TransformOption
35002 \end_layout
35003
35004 \end_inset
35005
35006  commands:
35007 \end_layout
35008
35009 \begin_layout Description
35010 \begin_inset Flex Code
35011 status collapsed
35012
35013 \begin_layout Plain Layout
35014 $$Clip
35015 \end_layout
35016
35017 \end_inset
35018
35019  The clip option.
35020 \end_layout
35021
35022 \begin_layout Description
35023 \begin_inset Flex Code
35024 status collapsed
35025
35026 \begin_layout Plain Layout
35027 $$Extra
35028 \end_layout
35029
35030 \end_inset
35031
35032  The extra option.
35033 \end_layout
35034
35035 \begin_layout Description
35036 \begin_inset Flex Code
35037 status collapsed
35038
35039 \begin_layout Plain Layout
35040 $$Resize
35041 \end_layout
35042
35043 \end_inset
35044
35045  The resize option.
35046 \end_layout
35047
35048 \begin_layout Description
35049 \begin_inset Flex Code
35050 status collapsed
35051
35052 \begin_layout Plain Layout
35053 $$Rotate
35054 \end_layout
35055
35056 \end_inset
35057
35058  The rotation option.
35059 \end_layout
35060
35061 \begin_layout Standard
35062 You may ask why there are so many path macros.
35063  There are mainly two reasons:
35064 \end_layout
35065
35066 \begin_layout Enumerate
35067 Relative and absolute file names should remain relative or absolute,
35068  respectively.
35069  Users may have reasons to prefer either form.
35070  Relative names are useful for portable documents that should work on different machines,
35071  for example.
35072  Absolute names may be required by some programs.
35073 \end_layout
35074
35075 \begin_layout Enumerate
35076 \SpecialChar LaTeX
35077  treats relative file names differently than \SpecialChar LyX
35078  and other programs in nested included files.
35079  For \SpecialChar LyX
35080 ,
35081  a relative file name is always relative to the document that contains the file name.
35082  For \SpecialChar LaTeX
35083 ,
35084  it is always relative to the master document.
35085  These two definitions are identical if you have only one document,
35086  but differ if you have a master document that includes part documents.
35087  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
35088 .
35089  Fortunately \SpecialChar LyX
35090  does this automatically for you if you choose the right macros.
35091 \end_layout
35092
35093 \begin_layout Standard
35094 So which path macro should be used in new template definitions?
35095  The rule is not difficult:
35096 \end_layout
35097
35098 \begin_layout Itemize
35099 Use 
35100 \begin_inset Flex Code
35101 status collapsed
35102
35103 \begin_layout Plain Layout
35104 $$AbsPath
35105 \end_layout
35106
35107 \end_inset
35108
35109  if an absolute path is required.
35110 \end_layout
35111
35112 \begin_layout Itemize
35113 Use 
35114 \begin_inset Flex Code
35115 status collapsed
35116
35117 \begin_layout Plain Layout
35118 $$AbsOrRelPathMaster
35119 \end_layout
35120
35121 \end_inset
35122
35123  if the substituted string is some kind of \SpecialChar LaTeX
35124  input.
35125 \end_layout
35126
35127 \begin_layout Itemize
35128 Else use 
35129 \begin_inset Flex Code
35130 status collapsed
35131
35132 \begin_layout Plain Layout
35133 $$AbsOrRelPathParent
35134 \end_layout
35135
35136 \end_inset
35137
35138  in order to preserve the user's choice.
35139 \end_layout
35140
35141 \begin_layout Standard
35142 There are special cases where this rule does not work and e.
35143 \begin_inset space \thinspace{}
35144 \end_inset
35145
35146 g.
35147 \begin_inset space \space{}
35148 \end_inset
35149
35150 relative names are needed,
35151  but normally it will work just fine.
35152  One example for such a case is the command 
35153 \begin_inset Flex Code
35154 status collapsed
35155
35156 \begin_layout Plain Layout
35157 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
35158 \end_layout
35159
35160 \end_inset
35161
35162  in the XFig template above:
35163  We can't use the absolute name because the copier for 
35164 \begin_inset Flex Code
35165 status collapsed
35166
35167 \begin_layout Plain Layout
35168 .pstex_t
35169 \end_layout
35170
35171 \end_inset
35172
35173  files needs the relative name in order to rewrite the file content.
35174 \end_layout
35175
35176 \begin_layout Section
35177 Security discussion
35178 \begin_inset CommandInset label
35179 LatexCommand label
35180 name "sec:Security-discussion"
35181
35182 \end_inset
35183
35184
35185 \end_layout
35186
35187 \begin_layout Standard
35188 The external material feature interfaces with a lot of external programs and does so automatically,
35189  so we have to consider the security implications of this.
35190  In particular,
35191  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
35192  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
35193  This is something we definitely want to avoid.
35194 \end_layout
35195
35196 \begin_layout Standard
35197 However,
35198  since the external program commands are specified in the template configuration file only,
35199  there are no security issues if \SpecialChar LyX
35200  is properly configured with safe templates only.
35201  This is so because the external programs are invoked with the 
35202 \begin_inset Flex Code
35203 status collapsed
35204
35205 \begin_layout Plain Layout
35206 execvp
35207 \end_layout
35208
35209 \end_inset
35210
35211 -system call rather than the 
35212 \begin_inset Flex Code
35213 status collapsed
35214
35215 \begin_layout Plain Layout
35216 system
35217 \end_layout
35218
35219 \end_inset
35220
35221  system-call,
35222  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
35223 \end_layout
35224
35225 \begin_layout Standard
35226 This also implies that you are restricted in what command strings you can use in the external material templates.
35227  In particular,
35228  pipes and redirection are not readily available.
35229  This has to be so if \SpecialChar LyX
35230  should remain safe.
35231  If you want to use some of the shell features,
35232  you should write a safe script to do this in a controlled manner,
35233  and then invoke the script from the command string.
35234  
35235 \end_layout
35236
35237 \begin_layout Standard
35238 It is possible to design a template that interacts directly with the shell,
35239  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
35240  we generally recommend that you only use safe scripts that work with the 
35241 \begin_inset Flex Code
35242 status collapsed
35243
35244 \begin_layout Plain Layout
35245 execvp
35246 \end_layout
35247
35248 \end_inset
35249
35250  system call in a controlled manner.
35251  Of course,
35252  for use in a controlled environment,
35253  it can be tempting to just fall back to use ordinary shell scripts.
35254  If you do so,
35255  be aware that you 
35256 \emph on
35257 will
35258 \emph default
35259  provide an easily exploitable security hole in your system.
35260  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
35261  distribution,
35262  although we do encourage people to submit new templates in the open source tradition.
35263  But \SpecialChar LyX
35264  as shipped from the official distribution channels will never have unsafe templates.
35265 \end_layout
35266
35267 \begin_layout Standard
35268 Including external material provides a lot of power,
35269  and you have to be careful not to introduce security hazards with this power.
35270  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
35271  So if you do not fully understand the issues,
35272  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
35273  development team if you have any questions about whether a given template is safe or not.
35274  And do this before you use it in an uncontrolled environment.
35275 \end_layout
35276
35277 \begin_layout Chapter
35278 \start_of_appendix
35279 List of supported \SpecialChar LyX
35280  functions to be used in layouts
35281 \begin_inset CommandInset label
35282 LatexCommand label
35283 name "chap:List-of-functions"
35284
35285 \end_inset
35286
35287
35288 \end_layout
35289
35290 \begin_layout Standard
35291 \align center
35292 \begin_inset Tabular
35293 <lyxtabular version="3" rows="11" columns="8">
35294 <features tabularvalignment="middle">
35295 <column alignment="left" valignment="top">
35296 <column alignment="left" valignment="top">
35297 <column alignment="left" valignment="top">
35298 <column alignment="left" valignment="top">
35299 <column alignment="left" valignment="top">
35300 <column alignment="left" valignment="top">
35301 <column alignment="left" valignment="top">
35302 <column alignment="left" valignment="top">
35303 <row>
35304 <cell alignment="left" valignment="top" usebox="none">
35305 \begin_inset Text
35306
35307 \begin_layout Plain Layout
35308 accents
35309 \end_layout
35310
35311 \end_inset
35312 </cell>
35313 <cell alignment="left" valignment="top" usebox="none">
35314 \begin_inset Text
35315
35316 \begin_layout Plain Layout
35317 booktabs
35318 \end_layout
35319
35320 \end_inset
35321 </cell>
35322 <cell alignment="left" valignment="top" usebox="none">
35323 \begin_inset Text
35324
35325 \begin_layout Plain Layout
35326 feyn
35327 \end_layout
35328
35329 \end_inset
35330 </cell>
35331 <cell alignment="left" valignment="top" usebox="none">
35332 \begin_inset Text
35333
35334 \begin_layout Plain Layout
35335 listings
35336 \end_layout
35337
35338 \end_inset
35339 </cell>
35340 <cell alignment="center" valignment="top" usebox="none">
35341 \begin_inset Text
35342
35343 \begin_layout Plain Layout
35344 natbib
35345 \end_layout
35346
35347 \end_inset
35348 </cell>
35349 <cell alignment="center" valignment="top" usebox="none">
35350 \begin_inset Text
35351
35352 \begin_layout Plain Layout
35353 rotfloat
35354 \end_layout
35355
35356 \end_inset
35357 </cell>
35358 <cell alignment="center" valignment="top" usebox="none">
35359 \begin_inset Text
35360
35361 \begin_layout Plain Layout
35362 tfrupee
35363 \end_layout
35364
35365 \end_inset
35366 </cell>
35367 <cell alignment="center" valignment="top" usebox="none">
35368 \begin_inset Text
35369
35370 \begin_layout Plain Layout
35371 wasysym
35372 \end_layout
35373
35374 \end_inset
35375 </cell>
35376 </row>
35377 <row>
35378 <cell alignment="left" valignment="top" usebox="none">
35379 \begin_inset Text
35380
35381 \begin_layout Plain Layout
35382 amsbsy
35383 \end_layout
35384
35385 \end_inset
35386 </cell>
35387 <cell alignment="left" valignment="top" usebox="none">
35388 \begin_inset Text
35389
35390 \begin_layout Plain Layout
35391 calc
35392 \end_layout
35393
35394 \end_inset
35395 </cell>
35396 <cell alignment="left" valignment="top" usebox="none">
35397 \begin_inset Text
35398
35399 \begin_layout Plain Layout
35400 fixltx2e
35401 \end_layout
35402
35403 \end_inset
35404 </cell>
35405 <cell alignment="left" valignment="top" usebox="none">
35406 \begin_inset Text
35407
35408 \begin_layout Plain Layout
35409 longtable
35410 \end_layout
35411
35412 \end_inset
35413 </cell>
35414 <cell alignment="center" valignment="top" usebox="none">
35415 \begin_inset Text
35416
35417 \begin_layout Plain Layout
35418 nomencl
35419 \end_layout
35420
35421 \end_inset
35422 </cell>
35423 <cell alignment="center" valignment="top" usebox="none">
35424 \begin_inset Text
35425
35426 \begin_layout Plain Layout
35427 rsphrase
35428 \end_layout
35429
35430 \end_inset
35431 </cell>
35432 <cell alignment="center" valignment="top" usebox="none">
35433 \begin_inset Text
35434
35435 \begin_layout Plain Layout
35436 tipa
35437 \end_layout
35438
35439 \end_inset
35440 </cell>
35441 <cell alignment="center" valignment="top" usebox="none">
35442 \begin_inset Text
35443
35444 \begin_layout Plain Layout
35445 wrapfig
35446 \end_layout
35447
35448 \end_inset
35449 </cell>
35450 </row>
35451 <row>
35452 <cell alignment="left" valignment="top" usebox="none">
35453 \begin_inset Text
35454
35455 \begin_layout Plain Layout
35456 amscd
35457 \end_layout
35458
35459 \end_inset
35460 </cell>
35461 <cell alignment="left" valignment="top" usebox="none">
35462 \begin_inset Text
35463
35464 \begin_layout Plain Layout
35465 CJK
35466 \end_layout
35467
35468 \end_inset
35469 </cell>
35470 <cell alignment="left" valignment="top" usebox="none">
35471 \begin_inset Text
35472
35473 \begin_layout Plain Layout
35474 float
35475 \end_layout
35476
35477 \end_inset
35478 </cell>
35479 <cell alignment="left" valignment="top" usebox="none">
35480 \begin_inset Text
35481
35482 \begin_layout Plain Layout
35483 lyxskak
35484 \end_layout
35485
35486 \end_inset
35487 </cell>
35488 <cell alignment="center" valignment="top" usebox="none">
35489 \begin_inset Text
35490
35491 \begin_layout Plain Layout
35492 pdfcolmk
35493 \end_layout
35494
35495 \end_inset
35496 </cell>
35497 <cell alignment="center" valignment="top" usebox="none">
35498 \begin_inset Text
35499
35500 \begin_layout Plain Layout
35501 setspace
35502 \end_layout
35503
35504 \end_inset
35505 </cell>
35506 <cell alignment="center" valignment="top" usebox="none">
35507 \begin_inset Text
35508
35509 \begin_layout Plain Layout
35510 tipx
35511 \end_layout
35512
35513 \end_inset
35514 </cell>
35515 <cell alignment="center" valignment="top" usebox="none">
35516 \begin_inset Text
35517
35518 \begin_layout Plain Layout
35519 xargs
35520 \end_layout
35521
35522 \end_inset
35523 </cell>
35524 </row>
35525 <row>
35526 <cell alignment="left" valignment="top" usebox="none">
35527 \begin_inset Text
35528
35529 \begin_layout Plain Layout
35530 amsmath
35531 \end_layout
35532
35533 \end_inset
35534 </cell>
35535 <cell alignment="left" valignment="top" usebox="none">
35536 \begin_inset Text
35537
35538 \begin_layout Plain Layout
35539 color
35540 \end_layout
35541
35542 \end_inset
35543 </cell>
35544 <cell alignment="left" valignment="top" usebox="none">
35545 \begin_inset Text
35546
35547 \begin_layout Plain Layout
35548 framed
35549 \end_layout
35550
35551 \end_inset
35552 </cell>
35553 <cell alignment="left" valignment="top" usebox="none">
35554 \begin_inset Text
35555
35556 \begin_layout Plain Layout
35557 makeidx
35558 \end_layout
35559
35560 \end_inset
35561 </cell>
35562 <cell alignment="center" valignment="top" usebox="none">
35563 \begin_inset Text
35564
35565 \begin_layout Plain Layout
35566 pdfpages
35567 \end_layout
35568
35569 \end_inset
35570 </cell>
35571 <cell alignment="center" valignment="top" usebox="none">
35572 \begin_inset Text
35573
35574 \begin_layout Plain Layout
35575 shapepar
35576 \end_layout
35577
35578 \end_inset
35579 </cell>
35580 <cell alignment="center" valignment="top" usebox="none">
35581 \begin_inset Text
35582
35583 \begin_layout Plain Layout
35584 tone
35585 \end_layout
35586
35587 \end_inset
35588 </cell>
35589 <cell alignment="center" valignment="top" usebox="none">
35590 \begin_inset Text
35591
35592 \begin_layout Plain Layout
35593 xcolor
35594 \end_layout
35595
35596 \end_inset
35597 </cell>
35598 </row>
35599 <row>
35600 <cell alignment="left" valignment="top" usebox="none">
35601 \begin_inset Text
35602
35603 \begin_layout Plain Layout
35604 amssymb
35605 \end_layout
35606
35607 \end_inset
35608 </cell>
35609 <cell alignment="left" valignment="top" usebox="none">
35610 \begin_inset Text
35611
35612 \begin_layout Plain Layout
35613 covington
35614 \end_layout
35615
35616 \end_inset
35617 </cell>
35618 <cell alignment="left" valignment="top" usebox="none">
35619 \begin_inset Text
35620
35621 \begin_layout Plain Layout
35622 graphicx
35623 \end_layout
35624
35625 \end_inset
35626 </cell>
35627 <cell alignment="left" valignment="top" usebox="none">
35628 \begin_inset Text
35629
35630 \begin_layout Plain Layout
35631 marvosym
35632 \end_layout
35633
35634 \end_inset
35635 </cell>
35636 <cell alignment="center" valignment="top" usebox="none">
35637 \begin_inset Text
35638
35639 \begin_layout Plain Layout
35640 pifont
35641 \end_layout
35642
35643 \end_inset
35644 </cell>
35645 <cell alignment="center" valignment="top" usebox="none">
35646 \begin_inset Text
35647
35648 \begin_layout Plain Layout
35649 slashed
35650 \end_layout
35651
35652 \end_inset
35653 </cell>
35654 <cell alignment="center" valignment="top" usebox="none">
35655 \begin_inset Text
35656
35657 \begin_layout Plain Layout
35658 txfonts
35659 \end_layout
35660
35661 \end_inset
35662 </cell>
35663 <cell alignment="center" valignment="top" usebox="none">
35664 \begin_inset Text
35665
35666 \begin_layout Plain Layout
35667 xy
35668 \end_layout
35669
35670 \end_inset
35671 </cell>
35672 </row>
35673 <row>
35674 <cell alignment="left" valignment="top" usebox="none">
35675 \begin_inset Text
35676
35677 \begin_layout Plain Layout
35678 amstext
35679 \end_layout
35680
35681 \end_inset
35682 </cell>
35683 <cell alignment="left" valignment="top" usebox="none">
35684 \begin_inset Text
35685
35686 \begin_layout Plain Layout
35687 csquotes
35688 \end_layout
35689
35690 \end_inset
35691 </cell>
35692 <cell alignment="left" valignment="top" usebox="none">
35693 \begin_inset Text
35694
35695 \begin_layout Plain Layout
35696 hhline
35697 \end_layout
35698
35699 \end_inset
35700 </cell>
35701 <cell alignment="left" valignment="top" usebox="none">
35702 \begin_inset Text
35703
35704 \begin_layout Plain Layout
35705 mathdesign
35706 \end_layout
35707
35708 \end_inset
35709 </cell>
35710 <cell alignment="center" valignment="top" usebox="none">
35711 \begin_inset Text
35712
35713 \begin_layout Plain Layout
35714 pmboxdraw
35715 \end_layout
35716
35717 \end_inset
35718 </cell>
35719 <cell alignment="center" valignment="top" usebox="none">
35720 \begin_inset Text
35721
35722 \begin_layout Plain Layout
35723 soul
35724 \end_layout
35725
35726 \end_inset
35727 </cell>
35728 <cell alignment="center" valignment="top" usebox="none">
35729 \begin_inset Text
35730
35731 \begin_layout Plain Layout
35732 ulem
35733 \end_layout
35734
35735 \end_inset
35736 </cell>
35737 <cell alignment="center" valignment="top" usebox="none">
35738 \begin_inset Text
35739
35740 \begin_layout Plain Layout
35741 yhmath
35742 \end_layout
35743
35744 \end_inset
35745 </cell>
35746 </row>
35747 <row>
35748 <cell alignment="left" valignment="top" usebox="none">
35749 \begin_inset Text
35750
35751 \begin_layout Plain Layout
35752 amsthm
35753 \end_layout
35754
35755 \end_inset
35756 </cell>
35757 <cell alignment="left" valignment="top" usebox="none">
35758 \begin_inset Text
35759
35760 \begin_layout Plain Layout
35761 dvipost
35762 \end_layout
35763
35764 \end_inset
35765 </cell>
35766 <cell alignment="left" valignment="top" usebox="none">
35767 \begin_inset Text
35768
35769 \begin_layout Plain Layout
35770 hyperref
35771 \end_layout
35772
35773 \end_inset
35774 </cell>
35775 <cell alignment="left" valignment="top" usebox="none">
35776 \begin_inset Text
35777
35778 \begin_layout Plain Layout
35779 mathdots
35780 \end_layout
35781
35782 \end_inset
35783 </cell>
35784 <cell alignment="center" valignment="top" usebox="none">
35785 \begin_inset Text
35786
35787 \begin_layout Plain Layout
35788 polyglossia
35789 \end_layout
35790
35791 \end_inset
35792 </cell>
35793 <cell alignment="center" valignment="top" usebox="none">
35794 \begin_inset Text
35795
35796 \begin_layout Plain Layout
35797 splitidx
35798 \end_layout
35799
35800 \end_inset
35801 </cell>
35802 <cell alignment="center" valignment="top" usebox="none">
35803 \begin_inset Text
35804
35805 \begin_layout Plain Layout
35806 undertilde
35807 \end_layout
35808
35809 \end_inset
35810 </cell>
35811 <cell alignment="center" valignment="top" usebox="none">
35812 \begin_inset Text
35813
35814 \begin_layout Plain Layout
35815
35816 \end_layout
35817
35818 \end_inset
35819 </cell>
35820 </row>
35821 <row>
35822 <cell alignment="left" valignment="top" usebox="none">
35823 \begin_inset Text
35824
35825 \begin_layout Plain Layout
35826 array
35827 \end_layout
35828
35829 \end_inset
35830 </cell>
35831 <cell alignment="left" valignment="top" usebox="none">
35832 \begin_inset Text
35833
35834 \begin_layout Plain Layout
35835 endnotes
35836 \end_layout
35837
35838 \end_inset
35839 </cell>
35840 <cell alignment="left" valignment="top" usebox="none">
35841 \begin_inset Text
35842
35843 \begin_layout Plain Layout
35844 ifsym
35845 \end_layout
35846
35847 \end_inset
35848 </cell>
35849 <cell alignment="left" valignment="top" usebox="none">
35850 \begin_inset Text
35851
35852 \begin_layout Plain Layout
35853 mathrsfs
35854 \end_layout
35855
35856 \end_inset
35857 </cell>
35858 <cell alignment="center" valignment="top" usebox="none">
35859 \begin_inset Text
35860
35861 \begin_layout Plain Layout
35862 prettyref
35863 \end_layout
35864
35865 \end_inset
35866 </cell>
35867 <cell alignment="center" valignment="top" usebox="none">
35868 \begin_inset Text
35869
35870 \begin_layout Plain Layout
35871 subfig
35872 \end_layout
35873
35874 \end_inset
35875 </cell>
35876 <cell alignment="center" valignment="top" usebox="none">
35877 \begin_inset Text
35878
35879 \begin_layout Plain Layout
35880 units
35881 \end_layout
35882
35883 \end_inset
35884 </cell>
35885 <cell alignment="center" valignment="top" usebox="none">
35886 \begin_inset Text
35887
35888 \begin_layout Plain Layout
35889
35890 \end_layout
35891
35892 \end_inset
35893 </cell>
35894 </row>
35895 <row>
35896 <cell alignment="left" valignment="top" usebox="none">
35897 \begin_inset Text
35898
35899 \begin_layout Plain Layout
35900 ascii
35901 \end_layout
35902
35903 \end_inset
35904 </cell>
35905 <cell alignment="left" valignment="top" usebox="none">
35906 \begin_inset Text
35907
35908 \begin_layout Plain Layout
35909 enumitem
35910 \end_layout
35911
35912 \end_inset
35913 </cell>
35914 <cell alignment="left" valignment="top" usebox="none">
35915 \begin_inset Text
35916
35917 \begin_layout Plain Layout
35918 ifthen
35919 \end_layout
35920
35921 \end_inset
35922 </cell>
35923 <cell alignment="left" valignment="top" usebox="none">
35924 \begin_inset Text
35925
35926 \begin_layout Plain Layout
35927 mhchem
35928 \end_layout
35929
35930 \end_inset
35931 </cell>
35932 <cell alignment="center" valignment="top" usebox="none">
35933 \begin_inset Text
35934
35935 \begin_layout Plain Layout
35936 pxfonts
35937 \end_layout
35938
35939 \end_inset
35940 </cell>
35941 <cell alignment="center" valignment="top" usebox="none">
35942 \begin_inset Text
35943
35944 \begin_layout Plain Layout
35945 subscript
35946 \end_layout
35947
35948 \end_inset
35949 </cell>
35950 <cell alignment="center" valignment="top" usebox="none">
35951 \begin_inset Text
35952
35953 \begin_layout Plain Layout
35954 url
35955 \end_layout
35956
35957 \end_inset
35958 </cell>
35959 <cell alignment="center" valignment="top" usebox="none">
35960 \begin_inset Text
35961
35962 \begin_layout Plain Layout
35963
35964 \end_layout
35965
35966 \end_inset
35967 </cell>
35968 </row>
35969 <row>
35970 <cell alignment="left" valignment="top" usebox="none">
35971 \begin_inset Text
35972
35973 \begin_layout Plain Layout
35974 bbding
35975 \end_layout
35976
35977 \end_inset
35978 </cell>
35979 <cell alignment="left" valignment="top" usebox="none">
35980 \begin_inset Text
35981
35982 \begin_layout Plain Layout
35983 esint
35984 \end_layout
35985
35986 \end_inset
35987 </cell>
35988 <cell alignment="left" valignment="top" usebox="none">
35989 \begin_inset Text
35990
35991 \begin_layout Plain Layout
35992 jurabib
35993 \end_layout
35994
35995 \end_inset
35996 </cell>
35997 <cell alignment="left" valignment="top" usebox="none">
35998 \begin_inset Text
35999
36000 \begin_layout Plain Layout
36001 multicol
36002 \end_layout
36003
36004 \end_inset
36005 </cell>
36006 <cell alignment="center" valignment="top" usebox="none">
36007 \begin_inset Text
36008
36009 \begin_layout Plain Layout
36010 refstyle
36011 \end_layout
36012
36013 \end_inset
36014 </cell>
36015 <cell alignment="center" valignment="top" usebox="none">
36016 \begin_inset Text
36017
36018 \begin_layout Plain Layout
36019 textcomp
36020 \end_layout
36021
36022 \end_inset
36023 </cell>
36024 <cell alignment="center" valignment="top" usebox="none">
36025 \begin_inset Text
36026
36027 \begin_layout Plain Layout
36028 varioref
36029 \end_layout
36030
36031 \end_inset
36032 </cell>
36033 <cell alignment="center" valignment="top" usebox="none">
36034 \begin_inset Text
36035
36036 \begin_layout Plain Layout
36037
36038 \end_layout
36039
36040 \end_inset
36041 </cell>
36042 </row>
36043 <row>
36044 <cell alignment="center" valignment="top" usebox="none">
36045 \begin_inset Text
36046
36047 \begin_layout Plain Layout
36048 bm
36049 \end_layout
36050
36051 \end_inset
36052 </cell>
36053 <cell alignment="center" valignment="top" usebox="none">
36054 \begin_inset Text
36055
36056 \begin_layout Plain Layout
36057 fancybox
36058 \end_layout
36059
36060 \end_inset
36061 </cell>
36062 <cell alignment="center" valignment="top" usebox="none">
36063 \begin_inset Text
36064
36065 \begin_layout Plain Layout
36066 latexsym
36067 \end_layout
36068
36069 \end_inset
36070 </cell>
36071 <cell alignment="center" valignment="top" usebox="none">
36072 \begin_inset Text
36073
36074 \begin_layout Plain Layout
36075 multirow
36076 \end_layout
36077
36078 \end_inset
36079 </cell>
36080 <cell alignment="center" valignment="top" usebox="none">
36081 \begin_inset Text
36082
36083 \begin_layout Plain Layout
36084 rotating
36085 \end_layout
36086
36087 \end_inset
36088 </cell>
36089 <cell alignment="center" valignment="top" usebox="none">
36090 \begin_inset Text
36091
36092 \begin_layout Plain Layout
36093 textgreek
36094 \end_layout
36095
36096 \end_inset
36097 </cell>
36098 <cell alignment="center" valignment="top" usebox="none">
36099 \begin_inset Text
36100
36101 \begin_layout Plain Layout
36102 verbatim
36103 \end_layout
36104
36105 \end_inset
36106 </cell>
36107 <cell alignment="center" valignment="top" usebox="none">
36108 \begin_inset Text
36109
36110 \begin_layout Plain Layout
36111
36112 \end_layout
36113
36114 \end_inset
36115 </cell>
36116 </row>
36117 </lyxtabular>
36118
36119 \end_inset
36120
36121
36122 \end_layout
36123
36124 \begin_layout Chapter
36125 Names of available colors to be used in layouts
36126 \begin_inset CommandInset label
36127 LatexCommand label
36128 name "chap:Names-of-colors"
36129
36130 \end_inset
36131
36132
36133 \end_layout
36134
36135 \begin_layout Standard
36136 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
36137  preferences.
36138 \end_layout
36139
36140 \begin_layout Section
36141 Color functions
36142 \end_layout
36143
36144 \begin_layout Standard
36145 The following are no real colors,
36146  but rather act on color definitions:
36147 \end_layout
36148
36149 \begin_layout Description
36150 ignore The color is ignored
36151 \end_layout
36152
36153 \begin_layout Description
36154 inherit The color is inherited
36155 \end_layout
36156
36157 \begin_layout Description
36158 none
36159 \family roman
36160 \series medium
36161 \shape up
36162 \size normal
36163 \emph off
36164 \bar no
36165 \strikeout off
36166 \uuline off
36167 \uwave off
36168 \noun off
36169 \color none
36170  No particular color – clear or default
36171 \end_layout
36172
36173 \begin_layout Section
36174 Static colors
36175 \end_layout
36176
36177 \begin_layout Standard
36178 These are fixed colors that cannot be customized
36179 \change_inserted -712698321 1607683177
36180 .
36181  Please do 
36182 \emph on
36183 not
36184 \emph default
36185  use these colors in layout definitions,
36186  since they will not work well with some color themes (such as dark themes)
36187 \change_unchanged
36188 :
36189 \end_layout
36190
36191 \begin_layout Description
36192 black
36193 \end_layout
36194
36195 \begin_layout Description
36196 white
36197 \end_layout
36198
36199 \begin_layout Description
36200 blue
36201 \end_layout
36202
36203 \begin_layout Description
36204 brown
36205 \end_layout
36206
36207 \begin_layout Description
36208 cyan
36209 \end_layout
36210
36211 \begin_layout Description
36212 darkgray
36213 \end_layout
36214
36215 \begin_layout Description
36216 gray
36217 \end_layout
36218
36219 \begin_layout Description
36220 green
36221 \end_layout
36222
36223 \begin_layout Description
36224 lightgray
36225 \end_layout
36226
36227 \begin_layout Description
36228 lime
36229 \end_layout
36230
36231 \begin_layout Description
36232 magenta
36233 \end_layout
36234
36235 \begin_layout Description
36236 olive
36237 \end_layout
36238
36239 \begin_layout Description
36240 orange
36241 \end_layout
36242
36243 \begin_layout Description
36244 pink
36245 \end_layout
36246
36247 \begin_layout Description
36248 purple
36249 \end_layout
36250
36251 \begin_layout Description
36252 red
36253 \end_layout
36254
36255 \begin_layout Description
36256 teal
36257 \end_layout
36258
36259 \begin_layout Description
36260 violet
36261 \end_layout
36262
36263 \begin_layout Description
36264 yellow
36265 \end_layout
36266
36267 \begin_layout Section
36268 Dynamic colors
36269 \end_layout
36270
36271 \begin_layout Standard
36272 These are the colors allocated to specific elements in 
36273 \begin_inset Info
36274 type  "menu"
36275 arg   "dialog-show prefs"
36276 \end_inset
36277
36278 :
36279 \end_layout
36280
36281 \begin_layout Description
36282 added_space Added space color
36283 \end_layout
36284
36285 \begin_layout Description
36286 addedtext Added text color
36287 \end_layout
36288
36289 \begin_layout Description
36290 appendix Appendix marker color
36291 \end_layout
36292
36293 \begin_layout Description
36294 background Background color
36295 \end_layout
36296
36297 \begin_layout Description
36298 bottomarea Bottom area color
36299 \end_layout
36300
36301 \begin_layout Description
36302 branchlabel Label color for branches
36303 \end_layout
36304
36305 \begin_layout Description
36306 buttonbg Color used for button background
36307 \end_layout
36308
36309 \begin_layout Description
36310 buttonframe Color for inset button frames
36311 \end_layout
36312
36313 \begin_layout Description
36314 buttonhoverbg Color used for button background under focus
36315 \end_layout
36316
36317 \begin_layout Description
36318 changebar Changebar color
36319 \end_layout
36320
36321 \begin_layout Description
36322 changedtextauthor1 Changed text color author 1
36323 \end_layout
36324
36325 \begin_layout Description
36326 changedtextauthor2 Changed text color author 2
36327 \end_layout
36328
36329 \begin_layout Description
36330 changedtextauthor3 Changed text color author 3
36331 \end_layout
36332
36333 \begin_layout Description
36334 changedtextauthor4 Changed text color author 4
36335 \end_layout
36336
36337 \begin_layout Description
36338 changedtextauthor5 Changed text color author 5
36339 \end_layout
36340
36341 \begin_layout Description
36342 collapsible Collapsible insets text color
36343 \end_layout
36344
36345 \begin_layout Description
36346 collapsibleframe Collapsible insets framecolor
36347 \end_layout
36348
36349 \begin_layout Description
36350 command Text color for command insets
36351 \end_layout
36352
36353 \begin_layout Description
36354 commandbg Background color for command insets
36355 \end_layout
36356
36357 \begin_layout Description
36358 commandframe Frame color for command insets
36359 \end_layout
36360
36361 \begin_layout Description
36362 comment Label color for comments
36363 \end_layout
36364
36365 \begin_layout Description
36366 commentbg Background color of comments
36367 \end_layout
36368
36369 \begin_layout Description
36370 cursor Cursor color
36371 \end_layout
36372
36373 \begin_layout Description
36374 deletedtext Deleted text color
36375 \end_layout
36376
36377 \begin_layout Description
36378 deletedtextmodifier Deleted text modifying color
36379 \end_layout
36380
36381 \begin_layout Description
36382 depthbar Color for the depth bars in the margin
36383 \end_layout
36384
36385 \begin_layout Description
36386 eolmarker End of line marker color
36387 \end_layout
36388
36389 \begin_layout Description
36390 error Color of the \SpecialChar LaTeX
36391  error box
36392 \end_layout
36393
36394 \begin_layout Description
36395 footlabel Label color for footnotes
36396 \end_layout
36397
36398 \begin_layout Description
36399 foreground Foreground color
36400 \end_layout
36401
36402 \begin_layout Description
36403 graphicsbg Graphics inset background color
36404 \end_layout
36405
36406 \begin_layout Description
36407 greyedoutbg Background color of greyedout inset
36408 \end_layout
36409
36410 \begin_layout Description
36411 greyedoutlabel Label color for greyedout insets
36412 \end_layout
36413
36414 \begin_layout Description
36415 greyedouttext Color for greyedout inset text
36416 \end_layout
36417
36418 \begin_layout Description
36419 indexlabel Label color for index insets
36420 \end_layout
36421
36422 \begin_layout Description
36423 inlinecompletion Inline completion color
36424 \end_layout
36425
36426 \begin_layout Description
36427 insetbg Inset marker background color
36428 \end_layout
36429
36430 \begin_layout Description
36431 insetframe Inset marker frame color
36432 \end_layout
36433
36434 \begin_layout Description
36435 language Color for marking foreign language words
36436 \end_layout
36437
36438 \begin_layout Description
36439 latex Text color in \SpecialChar LaTeX
36440  mode
36441 \end_layout
36442
36443 \begin_layout Description
36444 listingsbg Background color of listings inset
36445 \end_layout
36446
36447 \begin_layout Description
36448 marginlabel Label color for margin notes
36449 \end_layout
36450
36451 \begin_layout Description
36452 math Math inset text color
36453 \end_layout
36454
36455 \begin_layout Description
36456 mathbg Math inset background color
36457 \end_layout
36458
36459 \begin_layout Description
36460 mathcorners Math inset frame color not under focus
36461 \end_layout
36462
36463 \begin_layout Description
36464 mathframe Math inset frame color under focus
36465 \end_layout
36466
36467 \begin_layout Description
36468 mathline Math line color
36469 \end_layout
36470
36471 \begin_layout Description
36472 mathmacrobg Macro math inset background color
36473 \end_layout
36474
36475 \begin_layout Description
36476 mathmacroblend Macro math blended color
36477 \end_layout
36478
36479 \begin_layout Description
36480 mathmacroframe Macro math frame color
36481 \end_layout
36482
36483 \begin_layout Description
36484 mathmacrohoverbg Macro math inset background color hovered
36485 \end_layout
36486
36487 \begin_layout Description
36488 mathmacrolabel Macro math label color
36489 \end_layout
36490
36491 \begin_layout Description
36492 mathmacronewarg Macro template color for new parameters
36493 \end_layout
36494
36495 \begin_layout Description
36496 mathmacrooldarg Macro template color for old parameters
36497 \end_layout
36498
36499 \begin_layout Description
36500 newpage New page color
36501 \end_layout
36502
36503 \begin_layout Description
36504 nonunique_inlinecompletion Inline completion color for the non-unique part
36505 \end_layout
36506
36507 \begin_layout Description
36508 note Label color for notes
36509 \end_layout
36510
36511 \begin_layout Description
36512 notebg Background color of notes
36513 \end_layout
36514
36515 \begin_layout Description
36516 pagebreak Page break/line break color
36517 \end_layout
36518
36519 \begin_layout Description
36520 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
36521 \end_layout
36522
36523 \begin_layout Description
36524 phantomtext Text color for phantom insets
36525 \end_layout
36526
36527 \begin_layout Description
36528 preview The color used for previews
36529 \end_layout
36530
36531 \begin_layout Description
36532 previewframe Preview frame color
36533 \end_layout
36534
36535 \begin_layout Description
36536 regexpframe Color for regexp frame
36537 \end_layout
36538
36539 \begin_layout Description
36540 scroll Color that indicates when a row can be scrolled 
36541 \end_layout
36542
36543 \begin_layout Description
36544 selection Background color of selected text
36545 \end_layout
36546
36547 \begin_layout Description
36548 selectiontext Foreground color of selected text
36549 \end_layout
36550
36551 \begin_layout Description
36552 shadedbg Background color of shaded box
36553 \end_layout
36554
36555 \begin_layout Description
36556 special Special chars text color
36557 \end_layout
36558
36559 \begin_layout Description
36560 tabularline Table line color
36561 \end_layout
36562
36563 \begin_layout Description
36564 tabularonoffline Table line color
36565 \change_inserted -712698321 1607682522
36566
36567 \end_layout
36568
36569 \begin_layout Description
36570
36571 \change_inserted -712698321 1607682563
36572 textlabel1 Color 1 of layout and custom inset labels
36573 \end_layout
36574
36575 \begin_layout Description
36576
36577 \change_inserted -712698321 1607682565
36578 textlabel2 Color 2 of layout and custom inset labels
36579 \end_layout
36580
36581 \begin_layout Description
36582
36583 \change_inserted -712698321 1607682568
36584 textlabel3 Color 3 of layout and custom inset labels
36585 \change_unchanged
36586
36587 \end_layout
36588
36589 \begin_layout Description
36590 urllabel Label color for URL insets
36591 \end_layout
36592
36593 \begin_layout Description
36594 urltext Color for URL inset text
36595 \end_layout
36596
36597 \end_body
36598 \end_document