]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
411c74fba8dc99484c0a5cc1e38fcd770e0c5601
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 616
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 47243155 "Jean-Marc"
148 \author 232239728 "Owner"
149 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
150 \author 1075283030 "Thibaut"
151 \end_header
152
153 \begin_body
154
155 \begin_layout Title
156 Customizing \SpecialChar LyX
157 :
158  Features for the Advanced User
159 \end_layout
160
161 \begin_layout Author
162 by the \SpecialChar LyX
163  Team
164 \begin_inset Foot
165 status collapsed
166
167 \begin_layout Plain Layout
168 If you have comments or error corrections,
169  please send them to the \SpecialChar LyX
170  Documentation mailing list,
171  
172 \begin_inset CommandInset href
173 LatexCommand href
174 target "lyx-docs@lists.lyx.org"
175 type "mailto:"
176 literal "false"
177
178 \end_inset
179
180 .
181  Include 
182 \begin_inset Quotes eld
183 \end_inset
184
185 [Customization]
186 \begin_inset Quotes erd
187 \end_inset
188
189  in the subject header,
190  and please cc the current maintainer of this file,
191  Richard 
192 \change_inserted 5863208 1604930692
193 Kimberly 
194 \change_unchanged
195 Heck <
196 \change_inserted 5863208 1604930729
197 rikiheck@lyx.org
198 \change_deleted 5863208 1604930668
199 rikiheck@lyx.org
200 \change_unchanged
201 >.
202 \end_layout
203
204 \end_inset
205
206
207 \begin_inset Newline newline
208 \end_inset
209
210
211 \begin_inset Newline newline
212 \end_inset
213
214 Version 2.4.x
215 \end_layout
216
217 \begin_layout Standard
218 \begin_inset CommandInset toc
219 LatexCommand tableofcontents
220
221 \end_inset
222
223
224 \end_layout
225
226 \begin_layout Standard
227 \begin_inset Note Note
228 status open
229
230 \begin_layout Plain Layout
231 Please use change tracking when modifying this document.
232  This makes it easier for our translators to recognize things that have been changed,
233  and it helps the maintainer keep up-to-date with what's been done.
234 \end_layout
235
236 \end_inset
237
238
239 \end_layout
240
241 \begin_layout Chapter
242 Introduction
243 \end_layout
244
245 \begin_layout Standard
246 This manual covers the customization features present in \SpecialChar LyX
247 .
248  In it,
249  we discuss issues like keyboard shortcuts,
250  screen previewing options,
251  printer options,
252  sending commands to \SpecialChar LyX
253  via the \SpecialChar LyX
254  Server,
255  internationalization,
256  installing new \SpecialChar LaTeX
257  classes and \SpecialChar LyX
258  layouts,
259  etc.
260  We can't possibly hope to touch on everything you can change—
261 our developers add new features faster than we can document them—
262 but we will explain the most common customizations and hopefully point you in the right direction for some of the more obscure ones.
263 \end_layout
264
265 \begin_layout Standard
266 \begin_inset Branch OutDated
267 inverted 0
268 status collapsed
269
270 \begin_layout Standard
271 Information from previous versions of this document that now seems to be outdated is contained in the OutDated branch of this document.
272  By default,
273  this information will not appear in the \SpecialChar LaTeX
274  output.
275 \end_layout
276
277 \end_inset
278
279
280 \end_layout
281
282 \begin_layout Chapter
283 \SpecialChar LyX
284  configuration files
285 \end_layout
286
287 \begin_layout Standard
288 This chapter aims to help you to find your way through the \SpecialChar LyX
289  configuration files.
290  Before continuing to read this chapter,
291  you should find out where your \SpecialChar LyX
292  library and user directories are by using 
293 \begin_inset Flex Noun
294 status collapsed
295
296 \begin_layout Plain Layout
297 Help\SpecialChar menuseparator
298 About
299 \begin_inset space ~
300 \end_inset
301
302 LyX
303 \end_layout
304
305 \end_inset
306
307 .
308  The library directory is the place where \SpecialChar LyX
309  places its system-wide configuration files;
310  the user directory is where you can place your modified versions.
311  We will call the former 
312 \begin_inset Flex Code
313 status collapsed
314
315 \begin_layout Plain Layout
316 LyXDir
317 \end_layout
318
319 \end_inset
320
321  and the latter 
322 \begin_inset Flex Noun
323 status collapsed
324
325 \begin_layout Plain Layout
326 UserDir
327 \end_layout
328
329 \end_inset
330
331  in the remainder of this document.
332  
333 \end_layout
334
335 \begin_layout Section
336 What's in 
337 \begin_inset Flex Code
338 status collapsed
339
340 \begin_layout Plain Layout
341 LyXDir
342 \end_layout
343
344 \end_inset
345
346 ?
347 \end_layout
348
349 \begin_layout Standard
350 \begin_inset Flex Code
351 status collapsed
352
353 \begin_layout Plain Layout
354 LyXDir
355 \end_layout
356
357 \end_inset
358
359  and its sub-directories contain a number of files 
360 \change_deleted 232239728 1604787780
361 and
362 \change_unchanged
363  that can be used to customize \SpecialChar LyX
364 's behavior.
365  You can change many of these files from within \SpecialChar LyX
366  itself through the 
367 \begin_inset Flex Noun
368 status collapsed
369
370 \begin_layout Plain Layout
371 Tools\SpecialChar menuseparator
372 Preferences
373 \end_layout
374
375 \end_inset
376
377  dialog.
378  Most customization that you will want to do in \SpecialChar LyX
379  is possible through this dialog.
380  However,
381  many other inner aspects of \SpecialChar LyX
382  can be customized by modifying the files in 
383 \begin_inset Flex Code
384 status collapsed
385
386 \begin_layout Plain Layout
387 LyXDir
388 \end_layout
389
390 \end_inset
391
392 .
393  These files fall in different categories,
394  described in the following subsections.
395 \end_layout
396
397 \begin_layout Subsection
398 Automatically generated files
399 \end_layout
400
401 \begin_layout Standard
402 The files found in 
403 \begin_inset Flex Noun
404 status collapsed
405
406 \begin_layout Plain Layout
407 UserDir
408 \end_layout
409
410 \end_inset
411
412  are generated when you configure \SpecialChar LyX
413 .
414  They contain various default values that are 
415 \change_inserted 5863208 1604919565
416 automatically detected during reconfiguration.
417 \change_deleted 232239728 1604788241
418 guessed by inspection
419 \change_unchanged
420  In general,
421  it is not a good idea to modify them,
422  since they might be overwritten at any time.
423 \end_layout
424
425 \begin_layout Labeling
426 \labelwidthstring 00.00.0000
427 \begin_inset Flex Code
428 status collapsed
429
430 \begin_layout Plain Layout
431 lyxrc.defaults
432 \end_layout
433
434 \end_inset
435
436  
437 \change_deleted 5863208 1604919950
438
439 \begin_inset Note Note
440 status collapsed
441
442 \begin_layout Plain Layout
443
444 \change_inserted 232239728 1604853928
445 I capitalized the first word in all of these lists.
446  To me it looks better but it really is a stylistic thing,
447  your call.
448  However if you are not going to capitalize them,
449  the english in some needs to be modified to make it read correctly as a sentence.
450 \change_unchanged
451
452 \end_layout
453
454 \end_inset
455
456
457 \change_deleted 232239728 1604853510
458 c
459 \change_inserted 232239728 1604853510
460 C
461 \change_unchanged
462 ontains defaults for various commands.
463 \end_layout
464
465 \begin_layout Labeling
466 \labelwidthstring 00.00.0000
467 \begin_inset Flex Code
468 status collapsed
469
470 \begin_layout Plain Layout
471 packages.lst
472 \end_layout
473
474 \end_inset
475
476  
477 \change_deleted 232239728 1604853512
478 c
479 \change_inserted 232239728 1604853512
480 C
481 \change_unchanged
482 ontains the list of packages that have been recognized by \SpecialChar LyX
483 .
484  It is currently unused by the \SpecialChar LyX
485  program itself,
486  but the information extracted,
487  and more,
488  is made available with 
489 \begin_inset Flex Noun
490 status collapsed
491
492 \begin_layout Plain Layout
493 Help\SpecialChar menuseparator
494 \SpecialChar LaTeX
495
496 \begin_inset space ~
497 \end_inset
498
499 Configuration
500 \end_layout
501
502 \end_inset
503
504 .
505 \end_layout
506
507 \begin_layout Labeling
508 \labelwidthstring 00.00.0000
509 \begin_inset Flex Code
510 status collapsed
511
512 \begin_layout Plain Layout
513 textclass.lst
514 \end_layout
515
516 \end_inset
517
518  
519 \change_deleted 232239728 1604853515
520 t
521 \change_inserted 232239728 1604853515
522 T
523 \change_unchanged
524 he list of text classes that have been found in your 
525 \begin_inset Flex Code
526 status collapsed
527
528 \begin_layout Plain Layout
529 layout/
530 \end_layout
531
532 \end_inset
533
534  directories,
535  along with the associated \SpecialChar LaTeX
536  document class and their description.
537 \end_layout
538
539 \begin_layout Labeling
540 \labelwidthstring 00.00.0000
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 lyxmodules.lst
546 \end_layout
547
548 \end_inset
549
550  
551 \change_deleted 232239728 1604853518
552 t
553 \change_inserted 232239728 1604853518
554 T
555 \change_unchanged
556 he list of layout modules found in your 
557 \begin_inset Flex Code
558 status collapsed
559
560 \begin_layout Plain Layout
561 layout/
562 \end_layout
563
564 \end_inset
565
566  directories
567 \end_layout
568
569 \begin_layout Labeling
570 \labelwidthstring 00.00.0000
571 \begin_inset Flex Code
572 status open
573
574 \begin_layout Plain Layout
575 *files.lst
576 \end_layout
577
578 \end_inset
579
580  
581 \change_deleted 232239728 1604853523
582 l
583 \change_inserted 232239728 1604853523
584 L
585 \change_unchanged
586 ists of various sorts of \SpecialChar LaTeX
587 -related files found on your system
588 \end_layout
589
590 \begin_layout Labeling
591 \labelwidthstring 00.00.0000
592 \begin_inset Flex Code
593 status open
594
595 \begin_layout Plain Layout
596 doc/\SpecialChar LaTeX
597 Config.lyx
598 \end_layout
599
600 \end_inset
601
602  is automatically generated during configuration from the file 
603 \begin_inset Flex Code
604 status collapsed
605
606 \begin_layout Plain Layout
607 \SpecialChar LaTeX
608 Config.lyx.in
609 \end_layout
610
611 \end_inset
612
613 .
614  It contains information on your \SpecialChar LaTeX
615  configuration.
616 \end_layout
617
618 \begin_layout Subsection
619 Directories
620 \end_layout
621
622 \begin_layout Standard
623 The
624 \change_deleted 5863208 1604928729
625 se
626 \change_unchanged
627  
628 \change_inserted 5863208 1604928636
629 following 
630 \change_unchanged
631 directories 
632 \change_inserted 5863208 1604928661
633 in 
634 \change_unchanged
635
636 \begin_inset Flex Code
637 status collapsed
638
639 \begin_layout Plain Layout
640 LyXDir
641 \end_layout
642
643 \end_inset
644
645
646 \change_inserted 5863208 1604928662
647  can be
648 \change_deleted 5863208 1604928642
649 are
650 \change_unchanged
651  duplicated 
652 \change_deleted 5863208 1604928669
653 between 
654 \begin_inset Flex Code
655 status collapsed
656
657 \begin_layout Plain Layout
658 LyXDir
659 \end_layout
660
661 \end_inset
662
663  and
664 \change_inserted 5863208 1604928680
665 in
666 \change_unchanged
667  
668 \begin_inset Flex Code
669 status collapsed
670
671 \begin_layout Plain Layout
672 UserDir
673 \end_layout
674
675 \end_inset
676
677 .
678  If a particular file
679 \change_deleted 232239728 1604794430
680 s
681 \change_unchanged
682  exists in both places,
683  the one in 
684 \begin_inset Flex Code
685 status collapsed
686
687 \begin_layout Plain Layout
688 UserDir
689 \end_layout
690
691 \end_inset
692
693  will be used.
694 \end_layout
695
696 \begin_layout Labeling
697 \labelwidthstring 00.00.0000
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 bind/
703 \end_layout
704
705 \end_inset
706
707  
708 \change_deleted 232239728 1604794460
709 t
710 \change_inserted 232239728 1604794460
711 T
712 \change_unchanged
713 his directory contains files with the extension 
714 \begin_inset Flex Code
715 status collapsed
716
717 \begin_layout Plain Layout
718 .bind
719 \end_layout
720
721 \end_inset
722
723  that define the keybindings used in \SpecialChar LyX
724 .
725  If there exists an internationalized version of the bind file 
726 \change_inserted -712698321 1669371749
727 in a subdirectory 
728 \change_deleted -712698321 1669371727
729 named 
730 \begin_inset Flex Code
731 status collapsed
732
733 \begin_layout Plain Layout
734 $LANG_xxx.bind
735 \end_layout
736
737 \end_inset
738
739
740 \change_inserted -712698321 1669371728
741
742 \begin_inset Flex Code
743 status collapsed
744
745 \begin_layout Plain Layout
746
747 \change_inserted -712698321 1669371732
748 bind/xx
749 \change_unchanged
750
751 \end_layout
752
753 \end_inset
754
755  where 
756 \begin_inset Quotes eld
757 \end_inset
758
759 xx
760 \begin_inset Quotes erd
761 \end_inset
762
763  is the ISO language code
764 \change_unchanged
765 ,
766  that will be used first.
767 \end_layout
768
769 \begin_layout Labeling
770 \labelwidthstring 00.00.0000
771 \begin_inset Flex Code
772 status collapsed
773
774 \begin_layout Plain Layout
775 citeengines/
776 \end_layout
777
778 \end_inset
779
780  
781 \change_deleted 232239728 1604794478
782 c
783 \change_inserted 232239728 1604794478
784 C
785 \change_unchanged
786 ontains files with the extension 
787 \begin_inset Flex Code
788 status collapsed
789
790 \begin_layout Plain Layout
791 .citeengine
792 \end_layout
793
794 \end_inset
795
796  which define the diverse citation possibilities (natbib,
797  biblatex etc.).
798  See 
799 \begin_inset CommandInset ref
800 LatexCommand ref
801 reference "subsec:Cite-Engine-Files"
802 plural "false"
803 caps "false"
804 noprefix "false"
805 nolink "false"
806
807 \end_inset
808
809  for details.
810 \end_layout
811
812 \begin_layout Labeling
813 \labelwidthstring 00.00.0000
814 \begin_inset Flex Code
815 status collapsed
816
817 \begin_layout Plain Layout
818 clipart/
819 \end_layout
820
821 \end_inset
822
823  
824 \change_deleted 232239728 1604794483
825 c
826 \change_inserted 232239728 1604794486
827 C
828 \change_unchanged
829 ontains graphics files that can be included in documents.
830  
831 \end_layout
832
833 \begin_layout Labeling
834 \labelwidthstring 00.00.0000
835 \begin_inset Flex Code
836 status collapsed
837
838 \begin_layout Plain Layout
839 doc/
840 \end_layout
841
842 \end_inset
843
844  
845 \change_deleted 232239728 1604794492
846 c
847 \change_inserted 232239728 1604794492
848 C
849 \change_unchanged
850 ontains \SpecialChar LyX
851  documentation files (including the one you are currently reading).
852  The file 
853 \begin_inset Flex Code
854 status collapsed
855
856 \begin_layout Plain Layout
857
858 \change_deleted 232239728 1604794660
859 \SpecialChar LaTeX
860
861 \change_inserted 232239728 1604794661
862 LaTex
863 \change_unchanged
864 Config.lyx
865 \end_layout
866
867 \end_inset
868
869  deserves special attention,
870  as noted above.
871  The internationalized help docs are in subdirectories 
872 \begin_inset Flex Code
873 status collapsed
874
875 \begin_layout Plain Layout
876 doc/xx
877 \end_layout
878
879 \end_inset
880
881  where 
882 \begin_inset Quotes eld
883 \end_inset
884
885 xx
886 \begin_inset Quotes erd
887 \end_inset
888
889  is the ISO language code.
890  See 
891 \begin_inset CommandInset ref
892 LatexCommand ref
893 reference "cha:Internationalizing-LyX"
894 nolink "false"
895
896 \end_inset
897
898  for details.
899 \end_layout
900
901 \begin_layout Labeling
902 \labelwidthstring 00.00.0000
903 \begin_inset Flex Code
904 status collapsed
905
906 \begin_layout Plain Layout
907 examples/
908 \end_layout
909
910 \end_inset
911
912  
913 \change_deleted 232239728 1604794497
914 c
915 \change_inserted 232239728 1604794497
916 C
917 \change_unchanged
918 ontains example files that explain how to use some features.
919  In the file browser,
920  press the 
921 \begin_inset Flex Noun
922 status collapsed
923
924 \begin_layout Plain Layout
925 Examples
926 \end_layout
927
928 \end_inset
929
930  button to get there.
931 \end_layout
932
933 \begin_layout Labeling
934 \labelwidthstring 00.00.0000
935 \begin_inset Flex Code
936 status collapsed
937
938 \begin_layout Plain Layout
939 images/
940 \end_layout
941
942 \end_inset
943
944  
945 \change_deleted 232239728 1604794500
946 c
947 \change_inserted 232239728 1604794500
948 C
949 \change_unchanged
950 ontains image files that are used by the 
951 \begin_inset Flex Noun
952 status collapsed
953
954 \begin_layout Plain Layout
955 Document
956 \end_layout
957
958 \end_inset
959
960  dialog.
961  In addition,
962  it also contains the individual icons used in the toolbar and the banners that can be shown when \SpecialChar LyX
963  is launched.
964 \end_layout
965
966 \begin_layout Labeling
967 \labelwidthstring 00.00.0000
968 \begin_inset Flex Code
969 status collapsed
970
971 \begin_layout Plain Layout
972 kbd/
973 \end_layout
974
975 \end_inset
976
977  
978 \change_deleted 232239728 1604794505
979 c
980 \change_inserted 232239728 1604794505
981 C
982 \change_unchanged
983 ontains keyboard keymapping files.
984  See 
985 \begin_inset CommandInset ref
986 LatexCommand ref
987 reference "sec:International-Keymap-Stuff"
988 nolink "false"
989
990 \end_inset
991
992  for details.
993 \end_layout
994
995 \begin_layout Labeling
996 \labelwidthstring 00.00.0000
997 \begin_inset Flex Code
998 status collapsed
999
1000 \begin_layout Plain Layout
1001 layouts/
1002 \end_layout
1003
1004 \end_inset
1005
1006  
1007 \change_deleted 232239728 1604794508
1008 c
1009 \change_inserted 232239728 1604794508
1010 C
1011 \change_unchanged
1012 ontains the text class and module files described in 
1013 \begin_inset CommandInset ref
1014 LatexCommand ref
1015 reference "cha:Installing-New-Document"
1016 nolink "false"
1017
1018 \end_inset
1019
1020 .
1021 \end_layout
1022
1023 \begin_layout Labeling
1024 \labelwidthstring 00.00.0000
1025 \begin_inset Flex Code
1026 status collapsed
1027
1028 \begin_layout Plain Layout
1029 lyx2lyx
1030 \end_layout
1031
1032 \end_inset
1033
1034  
1035 \change_deleted 232239728 1604794513
1036 c
1037 \change_inserted 232239728 1604794513
1038 C
1039 \change_unchanged
1040 ontains the 
1041 \begin_inset Flex Code
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045 lyx2lyx
1046 \end_layout
1047
1048 \end_inset
1049
1050  Python scripts used to convert between \SpecialChar LyX
1051  versions.
1052  These can be run from the command line if
1053 \change_deleted 232239728 1604794749
1054 ,
1055  say,
1056
1057 \change_unchanged
1058  you want to batch-convert files.
1059 \end_layout
1060
1061 \begin_layout Labeling
1062 \labelwidthstring 00.00.0000
1063 \begin_inset Flex Code
1064 status collapsed
1065
1066 \begin_layout Plain Layout
1067 scripts/
1068 \end_layout
1069
1070 \end_inset
1071
1072  
1073 \change_deleted 232239728 1604794516
1074 c
1075 \change_inserted 232239728 1604794516
1076 C
1077 \change_unchanged
1078 ontains some files that demonstrate the capabilities of the 
1079 \begin_inset Flex Noun
1080 status collapsed
1081
1082 \begin_layout Plain Layout
1083 External
1084 \begin_inset space ~
1085 \end_inset
1086
1087 Template
1088 \end_layout
1089
1090 \end_inset
1091
1092  feature.
1093  Also contains some scripts used by \SpecialChar LyX
1094  itself.
1095 \end_layout
1096
1097 \begin_layout Labeling
1098 \labelwidthstring 00.00.0000
1099 \begin_inset Flex Code
1100 status collapsed
1101
1102 \begin_layout Plain Layout
1103 templates/
1104 \end_layout
1105
1106 \end_inset
1107
1108  
1109 \change_deleted 232239728 1604794520
1110 c
1111 \change_inserted 232239728 1604794520
1112 C
1113 \change_unchanged
1114 ontains the standard \SpecialChar LyX
1115  template files described in 
1116 \begin_inset CommandInset ref
1117 LatexCommand ref
1118 reference "subsec:Creating-Templates"
1119 nolink "false"
1120
1121 \end_inset
1122
1123 .
1124 \end_layout
1125
1126 \begin_layout Labeling
1127 \labelwidthstring 00.00.0000
1128 \begin_inset Flex Code
1129 status collapsed
1130
1131 \begin_layout Plain Layout
1132 ui/
1133 \end_layout
1134
1135 \end_inset
1136
1137  
1138 \change_deleted 232239728 1604794524
1139 c
1140 \change_inserted 232239728 1604794524
1141 C
1142 \change_unchanged
1143 ontains files with the extension 
1144 \begin_inset Flex Code
1145 status collapsed
1146
1147 \begin_layout Plain Layout
1148 .ui
1149 \end_layout
1150
1151 \end_inset
1152
1153  that define the user interface to \SpecialChar LyX
1154 .
1155  That is,
1156  the files define which items appear in which menus and the items appearing on the toolbar.
1157 \end_layout
1158
1159 \begin_layout Labeling
1160 \labelwidthstring 00.00.0000
1161 \begin_inset Flex Code
1162 status collapsed
1163
1164 \begin_layout Plain Layout
1165 xtemplates/
1166 \end_layout
1167
1168 \end_inset
1169
1170  
1171 \change_deleted 232239728 1604794528
1172 c
1173 \change_inserted 232239728 1604794528
1174 C
1175 \change_unchanged
1176 ontains files with the extension 
1177 \begin_inset Flex Code
1178 status collapsed
1179
1180 \begin_layout Plain Layout
1181 .xtemplate
1182 \end_layout
1183
1184 \end_inset
1185
1186  which define the templates for the insertion of external material to a \SpecialChar LyX
1187  document;
1188  see 
1189 \begin_inset CommandInset ref
1190 LatexCommand ref
1191 reference "chap:Including-External-Material"
1192 nolink "false"
1193
1194 \end_inset
1195
1196 .
1197 \end_layout
1198
1199 \begin_layout Subsection
1200 Files you don't want to modify
1201 \end_layout
1202
1203 \begin_layout Standard
1204 These files are used internally by \SpecialChar LyX
1205  and you generally do not need to modify them unless you are a developer.
1206 \end_layout
1207
1208 \begin_layout Labeling
1209 \labelwidthstring 00.00.0000
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214 CREDITS
1215 \end_layout
1216
1217 \end_inset
1218
1219  
1220 \change_deleted 232239728 1604797616
1221 t
1222 \change_inserted 232239728 1604797616
1223 T
1224 \change_unchanged
1225 his file contains the list of \SpecialChar LyX
1226  developers.
1227  The contents are displayed with the menu entry 
1228 \begin_inset Flex Noun
1229 status collapsed
1230
1231 \begin_layout Plain Layout
1232 Help\SpecialChar menuseparator
1233 About
1234 \begin_inset space ~
1235 \end_inset
1236
1237 LyX
1238 \end_layout
1239
1240 \end_inset
1241
1242 .
1243 \end_layout
1244
1245 \begin_layout Labeling
1246 \labelwidthstring 00.00.0000
1247 \begin_inset Flex Code
1248 status collapsed
1249
1250 \begin_layout Plain Layout
1251 chkconfig.ltx
1252 \end_layout
1253
1254 \end_inset
1255
1256  
1257 \change_deleted 232239728 1604797620
1258 t
1259 \change_inserted 232239728 1604797620
1260 T
1261 \change_unchanged
1262 his is a \SpecialChar LaTeX
1263  script used during the configuration process.
1264  Do not run directly.
1265 \end_layout
1266
1267 \begin_layout Labeling
1268 \labelwidthstring 00.00.0000
1269 \begin_inset Flex Code
1270 status collapsed
1271
1272 \begin_layout Plain Layout
1273 configure.py
1274 \end_layout
1275
1276 \end_inset
1277
1278  
1279 \change_deleted 232239728 1604797624
1280 t
1281 \change_inserted 232239728 1604797624
1282 T
1283 \change_unchanged
1284 his is a Python script that is used to re-configure \SpecialChar LyX
1285 .
1286  It creates configuration files in the directory it was run from.
1287 \end_layout
1288
1289 \begin_layout Subsection
1290 Other files needing a line or two
1291 \end_layout
1292
1293 \begin_layout Labeling
1294 \labelwidthstring 00.00.0000
1295 \begin_inset Flex Code
1296 status collapsed
1297
1298 \begin_layout Plain Layout
1299 encodings
1300 \end_layout
1301
1302 \end_inset
1303
1304  
1305 \change_deleted 232239728 1604797580
1306 t
1307 \change_inserted 232239728 1604797580
1308 T
1309 \change_unchanged
1310 his contains tables describing how different character encodings can be mapped to Unicode
1311 \end_layout
1312
1313 \begin_layout Labeling
1314 \labelwidthstring 00.00.0000
1315 \begin_inset Flex Code
1316 status collapsed
1317
1318 \begin_layout Plain Layout
1319 languages
1320 \end_layout
1321
1322 \end_inset
1323
1324  
1325 \change_deleted 232239728 1604797584
1326 t
1327 \change_inserted 232239728 1604797584
1328 T
1329 \change_unchanged
1330 his file contains a list of all the languages currently supported by \SpecialChar LyX
1331 .
1332 \end_layout
1333
1334 \begin_layout Labeling
1335 \labelwidthstring 00.00.0000
1336 \begin_inset Flex Code
1337 status collapsed
1338
1339 \begin_layout Plain Layout
1340 latexfonts
1341 \end_layout
1342
1343 \end_inset
1344
1345  
1346 \change_deleted 232239728 1604797587
1347 c
1348 \change_inserted 232239728 1604797587
1349 C
1350 \change_unchanged
1351 ontains information about the supported fonts.
1352 \end_layout
1353
1354 \begin_layout Labeling
1355 \labelwidthstring 00.00.0000
1356 \begin_inset Flex Code
1357 status collapsed
1358
1359 \begin_layout Plain Layout
1360 layouttranslations
1361 \end_layout
1362
1363 \end_inset
1364
1365  
1366 \change_deleted 232239728 1604797591
1367 t
1368 \change_inserted 232239728 1604797591
1369 T
1370 \change_unchanged
1371 his file contains translations for internationalized paragraph styles (see 
1372 \begin_inset CommandInset ref
1373 LatexCommand ref
1374 reference "subsec:I18n"
1375 nolink "false"
1376
1377 \end_inset
1378
1379 ).
1380 \end_layout
1381
1382 \begin_layout Labeling
1383 \labelwidthstring 00.00.0000
1384 \begin_inset Flex Code
1385 status collapsed
1386
1387 \begin_layout Plain Layout
1388 unicodesymbols
1389 \end_layout
1390
1391 \end_inset
1392
1393  
1394 \change_deleted 232239728 1604797594
1395 t
1396 \change_inserted 232239728 1604797594
1397 T
1398 \change_unchanged
1399 his file contains information about Unicode-encoded glyphs and the way they are supported by \SpecialChar LyX
1400  via \SpecialChar LaTeX
1401 .
1402 \end_layout
1403
1404 \begin_layout Section
1405 Your local configuration directory
1406 \end_layout
1407
1408 \begin_layout Standard
1409 Even if you are using \SpecialChar LyX
1410  as an unprivileged user,
1411  you might want to change \SpecialChar LyX
1412  configuration for your own use.
1413  The 
1414 \begin_inset Flex Code
1415 status collapsed
1416
1417 \begin_layout Plain Layout
1418 UserDir
1419 \end_layout
1420
1421 \end_inset
1422
1423  directory contains all your personal configuration files.
1424  This is the directory described as 
1425 \begin_inset Quotes eld
1426 \end_inset
1427
1428 user directory
1429 \begin_inset Quotes erd
1430 \end_inset
1431
1432  in 
1433 \begin_inset Flex Noun
1434 status collapsed
1435
1436 \begin_layout Plain Layout
1437 Help\SpecialChar menuseparator
1438 About
1439 \begin_inset space ~
1440 \end_inset
1441
1442 LyX
1443 \end_layout
1444
1445 \end_inset
1446
1447 .
1448  This directory is used as a mirror of 
1449 \begin_inset Flex Code
1450 status collapsed
1451
1452 \begin_layout Plain Layout
1453 LyXDir
1454 \end_layout
1455
1456 \end_inset
1457
1458 ,
1459  which means that every file in 
1460 \begin_inset Flex Code
1461 status collapsed
1462
1463 \begin_layout Plain Layout
1464 UserDir
1465 \end_layout
1466
1467 \end_inset
1468
1469  is a replacement for the corresponding file in 
1470 \begin_inset Flex Code
1471 status collapsed
1472
1473 \begin_layout Plain Layout
1474 LyXDir
1475 \end_layout
1476
1477 \end_inset
1478
1479 .
1480  Any configuration file described in the above sections can be placed either in the system-wide directory,
1481  in which case it will affect all users,
1482  or in your local directory for your own use.
1483 \end_layout
1484
1485 \begin_layout Standard
1486 To make things clearer,
1487  let's provide a few examples:
1488 \end_layout
1489
1490 \begin_layout Itemize
1491 The preferences set in the 
1492 \begin_inset Flex Noun
1493 status collapsed
1494
1495 \begin_layout Plain Layout
1496 Tools\SpecialChar menuseparator
1497 Preferences
1498 \end_layout
1499
1500 \end_inset
1501
1502  dialog are saved to a file 
1503 \begin_inset Flex Code
1504 status collapsed
1505
1506 \begin_layout Plain Layout
1507 preferences
1508 \end_layout
1509
1510 \end_inset
1511
1512  in 
1513 \begin_inset Flex Code
1514 status collapsed
1515
1516 \begin_layout Plain Layout
1517 UserDir
1518 \end_layout
1519
1520 \end_inset
1521
1522 .
1523 \end_layout
1524
1525 \begin_layout Itemize
1526 When you reconfigure using 
1527 \begin_inset Flex Noun
1528 status collapsed
1529
1530 \begin_layout Plain Layout
1531 Tools\SpecialChar menuseparator
1532 Reconfigure
1533 \end_layout
1534
1535 \end_inset
1536
1537 ,
1538  \SpecialChar LyX
1539  runs the 
1540 \begin_inset Flex Code
1541 status collapsed
1542
1543 \begin_layout Plain Layout
1544 configure.py
1545 \end_layout
1546
1547 \end_inset
1548
1549  script,
1550  and the resulting files are written in your local configuration directory.
1551  This means that any additional text class file that you might have added in 
1552 \begin_inset Flex Code
1553 status collapsed
1554
1555 \begin_layout Plain Layout
1556 UserDir/layouts
1557 \end_layout
1558
1559 \end_inset
1560
1561  will be added to the list of classes in the 
1562 \begin_inset Flex Noun
1563 status collapsed
1564
1565 \begin_layout Plain Layout
1566 Document\SpecialChar menuseparator
1567 Settings
1568 \end_layout
1569
1570 \end_inset
1571
1572  dialog.
1573 \end_layout
1574
1575 \begin_layout Itemize
1576 If you get some updated documentation from
1577 \change_inserted 232239728 1604798171
1578  a
1579 \change_unchanged
1580  \SpecialChar LyX
1581  ftp site and cannot install it because you do not have sysadmin rights on your system,
1582  you can just copy the files 
1583 \change_deleted 232239728 1604798193
1584 in
1585 \change_inserted 232239728 1604798193
1586 to
1587 \change_unchanged
1588  
1589 \begin_inset Flex Code
1590 status collapsed
1591
1592 \begin_layout Plain Layout
1593 UserDir/doc/
1594 \end_layout
1595
1596 \end_inset
1597
1598  and the items in the 
1599 \begin_inset Flex Noun
1600 status collapsed
1601
1602 \begin_layout Plain Layout
1603 Help
1604 \end_layout
1605
1606 \end_inset
1607
1608  menu will open them!
1609 \end_layout
1610
1611 \begin_layout Section
1612 Running \SpecialChar LyX
1613  with multiple configurations
1614 \end_layout
1615
1616 \begin_layout Standard
1617 The configuration freedom of the local configuration directory may not suffice if you want to have more than one configuration at your disposal.
1618  For example,
1619  you may want to 
1620 \change_deleted 232239728 1604798238
1621 be 
1622 \change_unchanged
1623 use different key bindings or printer settings at different times.
1624  You can achieve this by having several such directories.
1625  You then specify which directory to use at run-time.
1626 \end_layout
1627
1628 \begin_layout Standard
1629 Invoking \SpecialChar LyX
1630  with the command line switch 
1631 \begin_inset Flex Code
1632 status collapsed
1633
1634 \begin_layout Plain Layout
1635 -userdir
1636 \end_layout
1637
1638 \end_inset
1639
1640  
1641 \emph on
1642 <some directory>
1643 \emph default
1644  instructs the program to read the configuration from that directory,
1645  and not from the default directory.
1646  (You can determine the default directory by running \SpecialChar LyX
1647  without the 
1648 \begin_inset Flex Code
1649 status collapsed
1650
1651 \begin_layout Plain Layout
1652 -userdir
1653 \end_layout
1654
1655 \end_inset
1656
1657  switch.) If the specified directory does not exist,
1658  \SpecialChar LyX
1659  offers to create it for you,
1660  just like it does for the default directory 
1661 \change_deleted 232239728 1604798318
1662 on
1663 \change_unchanged
1664  the first time you run the program.
1665  You can modify the configuration options in this additional user directory exactly as you would for the default directory.
1666  These directories are completely independent (but read on).
1667  Note that setting the environment variable 
1668 \begin_inset Flex Code
1669 status collapsed
1670
1671 \begin_layout Plain Layout
1672 LYX_USERDIR_24x
1673 \end_layout
1674
1675 \end_inset
1676
1677  to some value has exactly the same effect.
1678 \end_layout
1679
1680 \begin_layout Standard
1681 Having several configurations also requires more maintenance:
1682  if you want to add a new layout to 
1683 \begin_inset Flex Code
1684 status collapsed
1685
1686 \begin_layout Plain Layout
1687 NewUserDir/layouts
1688 \end_layout
1689
1690 \end_inset
1691
1692  which you want available from all your configurations,
1693  you must add it to each directory separately.
1694  You can avoid this with the following trick:
1695  after \SpecialChar LyX
1696  creates the additional directory,
1697  most of the subdirectories (see above) are empty.
1698  If you want the new configuration to mirror an existing one,
1699  replace the empty subdirectory with a symbolic link to the matching subdirectory in the existing configuration.
1700  Take care with the 
1701 \begin_inset Flex Code
1702 status collapsed
1703
1704 \begin_layout Plain Layout
1705 doc/
1706 \end_layout
1707
1708 \end_inset
1709
1710  subdirectory,
1711  however,
1712  since it contains a file written by the configuration script (also accessible through 
1713 \begin_inset Flex Noun
1714 status collapsed
1715
1716 \begin_layout Plain Layout
1717 Tools\SpecialChar menuseparator
1718 Reconfigure
1719 \end_layout
1720
1721 \end_inset
1722
1723 ) which is configuration
1724 \change_deleted 232239728 1604798083
1725 -
1726 \change_inserted 232239728 1604798100
1727  
1728 \change_unchanged
1729 specific.
1730 \end_layout
1731
1732 \begin_layout Chapter
1733 The Preferences dialog
1734 \end_layout
1735
1736 \begin_layout Standard
1737 All options of the preferences dialog are described in the Appendix 
1738 \emph on
1739 The Preferences Dialog
1740 \emph default
1741  in the 
1742 \emph on
1743 User's Guide
1744 \emph default
1745 .
1746  For some options you might find here more details.
1747 \end_layout
1748
1749 \begin_layout Section
1750 Formats
1751 \begin_inset CommandInset label
1752 LatexCommand label
1753 name "sec:Formats"
1754
1755 \end_inset
1756
1757
1758 \end_layout
1759
1760 \begin_layout Standard
1761 The first step is to define your file formats if they are not already defined.
1762  To do so,
1763  open the 
1764 \begin_inset Flex Noun
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 Tools\SpecialChar menuseparator
1769 Preferences
1770 \end_layout
1771
1772 \end_inset
1773
1774  dialog.
1775  Under 
1776 \begin_inset Flex Noun
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 File Handling\SpecialChar menuseparator
1781 File formats
1782 \end_layout
1783
1784 \end_inset
1785
1786  press the 
1787 \begin_inset Flex Noun
1788 status collapsed
1789
1790 \begin_layout Plain Layout
1791 New
1792 \end_layout
1793
1794 \end_inset
1795
1796  button to define your new format.
1797  The 
1798 \begin_inset Flex Noun
1799 status collapsed
1800
1801 \begin_layout Plain Layout
1802 Format
1803 \end_layout
1804
1805 \end_inset
1806
1807  field contains the name used to identify the format in the GUI.
1808  The 
1809 \begin_inset Flex Noun
1810 status collapsed
1811
1812 \begin_layout Plain Layout
1813 Short Name
1814 \end_layout
1815
1816 \end_inset
1817
1818  is used to identify the format internally.
1819  You will also need to enter a file extension.
1820  These are all required.
1821  The optional 
1822 \begin_inset Flex Noun
1823 status collapsed
1824
1825 \begin_layout Plain Layout
1826 Shortcut
1827 \end_layout
1828
1829 \end_inset
1830
1831  field is used to provide a keyboard shortcut on the menus.
1832  (For example,
1833  pressing 
1834 \begin_inset Flex Noun
1835 status collapsed
1836
1837 \begin_layout Plain Layout
1838 Ctrl+D
1839 \end_layout
1840
1841 \end_inset
1842
1843  will 
1844 \begin_inset Flex Noun
1845 status collapsed
1846
1847 \begin_layout Plain Layout
1848 Document\SpecialChar menuseparator
1849 View (Other Formats)\SpecialChar menuseparator
1850 DVI
1851 \end_layout
1852
1853 \end_inset
1854
1855 .) 
1856 \end_layout
1857
1858 \begin_layout Standard
1859 A Format can have a 
1860 \begin_inset Flex Noun
1861 status collapsed
1862
1863 \begin_layout Plain Layout
1864 Viewer
1865 \end_layout
1866
1867 \end_inset
1868
1869  and an 
1870 \begin_inset Flex Noun
1871 status collapsed
1872
1873 \begin_layout Plain Layout
1874 Editor
1875 \end_layout
1876
1877 \end_inset
1878
1879  associated with it.
1880  For example,
1881  you might want to use 
1882 \begin_inset Flex Noun
1883 status collapsed
1884
1885 \begin_layout Plain Layout
1886 Ghostview
1887 \end_layout
1888
1889 \end_inset
1890
1891  to view PostScript files.
1892  You can enter the command needed to start the program in the corresponding fields.
1893  In defining this command,
1894  you can use the four variables listed in the next section.
1895  The viewer is launched when you view an image in \SpecialChar LyX
1896  or use the 
1897 \begin_inset Flex Noun
1898 status collapsed
1899
1900 \begin_layout Plain Layout
1901 Document\SpecialChar menuseparator
1902 View
1903 \end_layout
1904
1905 \end_inset
1906
1907  menu.
1908  The editor is for example launched when you right-click on an image and choose 
1909 \begin_inset Flex Noun
1910 status collapsed
1911
1912 \begin_layout Plain Layout
1913 Edit externally
1914 \end_layout
1915
1916 \end_inset
1917
1918  in the appearing context menu.
1919 \end_layout
1920
1921 \begin_layout Standard
1922 The 
1923 \begin_inset Flex Noun
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 MIME
1928 \end_layout
1929
1930 \end_inset
1931
1932  type of a format is optional,
1933  but if it is specified,
1934  it must be unique across all formats.
1935  It is used to detect files of this format from the file contents.
1936  For some important file formats there is no MIME type officially registered with the 
1937 \begin_inset CommandInset href
1938 LatexCommand href
1939 name "IANA"
1940 target "http://www.iana.org/assignments/media-types/"
1941 literal "false"
1942
1943 \end_inset
1944
1945 .
1946  Therefore \SpecialChar LyX
1947  uses the extended list of MIME types as specified by 
1948 \begin_inset CommandInset href
1949 LatexCommand href
1950 name "freedesktop.org"
1951 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1952 literal "false"
1953
1954 \end_inset
1955
1956 .
1957 \end_layout
1958
1959 \begin_layout Standard
1960 The 
1961 \begin_inset Flex Noun
1962 status collapsed
1963
1964 \begin_layout Plain Layout
1965 Document format
1966 \end_layout
1967
1968 \end_inset
1969
1970  option tells \SpecialChar LyX
1971  that a format is suitable for document export.
1972  If this is set and if a suitable conversion route exists (see 
1973 \begin_inset CommandInset ref
1974 LatexCommand ref
1975 reference "sec:Converters"
1976 nolink "false"
1977
1978 \end_inset
1979
1980 ),
1981  the format will appear in the 
1982 \begin_inset Flex Noun
1983 status collapsed
1984
1985 \begin_layout Plain Layout
1986 File\SpecialChar menuseparator
1987 Export
1988 \end_layout
1989
1990 \end_inset
1991
1992  menu.
1993  The format will also appear in the 
1994 \begin_inset Flex Noun
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998 Document\SpecialChar menuseparator
1999 View
2000 \end_layout
2001
2002 \end_inset
2003
2004  menu if a viewer is specified for the format.
2005  Pure image formats,
2006  such as 
2007 \begin_inset Flex Code
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011 png
2012 \end_layout
2013
2014 \end_inset
2015
2016 ,
2017  should not use this option.
2018  Formats that can both represent vector graphics and documents like 
2019 \begin_inset Flex Code
2020 status collapsed
2021
2022 \begin_layout Plain Layout
2023 pdf
2024 \end_layout
2025
2026 \end_inset
2027
2028  should use it.
2029 \end_layout
2030
2031 \begin_layout Standard
2032 The option 
2033 \begin_inset Flex Noun
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037 Vector graphics format
2038 \end_layout
2039
2040 \end_inset
2041
2042  tells \SpecialChar LyX
2043  that a format can contain vector graphics.
2044  This information is used to determine the target format of included graphics for 
2045 \begin_inset Flex Noun
2046 status collapsed
2047
2048 \begin_layout Plain Layout
2049 pdflatex
2050 \end_layout
2051
2052 \end_inset
2053
2054  export.
2055  Included graphics may need to be converted to either 
2056 \begin_inset Flex Noun
2057 status collapsed
2058
2059 \begin_layout Plain Layout
2060 pdf
2061 \end_layout
2062
2063 \end_inset
2064
2065 ,
2066  
2067 \begin_inset Flex Noun
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071 png
2072 \end_layout
2073
2074 \end_inset
2075
2076 ,
2077  or 
2078 \begin_inset Flex Noun
2079 status collapsed
2080
2081 \begin_layout Plain Layout
2082 jpg
2083 \end_layout
2084
2085 \end_inset
2086
2087 ,
2088  since 
2089 \begin_inset Flex Noun
2090 status collapsed
2091
2092 \begin_layout Plain Layout
2093 pdflatex
2094 \end_layout
2095
2096 \end_inset
2097
2098  cannot handle other image formats.
2099  If an included graphic is not already in 
2100 \begin_inset Flex Noun
2101 status collapsed
2102
2103 \begin_layout Plain Layout
2104 pdf
2105 \end_layout
2106
2107 \end_inset
2108
2109 ,
2110  
2111 \begin_inset Flex Noun
2112 status collapsed
2113
2114 \begin_layout Plain Layout
2115 png
2116 \end_layout
2117
2118 \end_inset
2119
2120 ,
2121  or 
2122 \begin_inset Flex Noun
2123 status collapsed
2124
2125 \begin_layout Plain Layout
2126 jpg
2127 \end_layout
2128
2129 \end_inset
2130
2131  format,
2132  it is converted to 
2133 \begin_inset Flex Noun
2134 status collapsed
2135
2136 \begin_layout Plain Layout
2137 pdf
2138 \end_layout
2139
2140 \end_inset
2141
2142  if the vector format option is set,
2143  and otherwise to 
2144 \begin_inset Flex Noun
2145 status collapsed
2146
2147 \begin_layout Plain Layout
2148 png
2149 \end_layout
2150
2151 \end_inset
2152
2153 .
2154 \end_layout
2155
2156 \begin_layout Section
2157 Copiers
2158 \end_layout
2159
2160 \begin_layout Standard
2161 Since all conversions from one format to another take place in \SpecialChar LyX
2162 's temporary directory,
2163  it is sometimes necessary to modify a file before copying it to the temporary directory in order that the conversion may be performed.
2164 \begin_inset Foot
2165 status collapsed
2166
2167 \begin_layout Plain Layout
2168 For example,
2169  the file may refer to other files—
2170 images,
2171  for example—
2172 using relative file names,
2173  and these may become invalid when the file is copied to the temporary directory.
2174 \end_layout
2175
2176 \end_inset
2177
2178  This is done by a Copier:
2179  It copies a file to (or from) the temporary directory and may modify it in the process.
2180 \end_layout
2181
2182 \begin_layout Standard
2183 The definitions of the copiers may use eight variables:
2184 \end_layout
2185
2186 \begin_layout Labeling
2187 \labelwidthstring 00.00.0000
2188 \begin_inset Flex Code
2189 status collapsed
2190
2191 \begin_layout Plain Layout
2192 $$s
2193 \end_layout
2194
2195 \end_inset
2196
2197  The \SpecialChar LyX
2198  system directory (e.
2199 \begin_inset space \thinspace{}
2200 \end_inset
2201
2202 g.
2203 \begin_inset space \space{}
2204 \end_inset
2205
2206
2207 \begin_inset Flex Noun
2208 status collapsed
2209
2210 \begin_layout Plain Layout
2211 /usr/share/lyx
2212 \end_layout
2213
2214 \end_inset
2215
2216 ).
2217 \end_layout
2218
2219 \begin_layout Labeling
2220 \labelwidthstring 00.00.0000
2221 \begin_inset Flex Code
2222 status collapsed
2223
2224 \begin_layout Plain Layout
2225 $$i
2226 \end_layout
2227
2228 \end_inset
2229
2230  The input file
2231 \end_layout
2232
2233 \begin_layout Labeling
2234 \labelwidthstring 00.00.0000
2235 \begin_inset Flex Code
2236 status collapsed
2237
2238 \begin_layout Plain Layout
2239 $$o
2240 \end_layout
2241
2242 \end_inset
2243
2244  The output file
2245 \end_layout
2246
2247 \begin_layout Labeling
2248 \labelwidthstring 00.00.0000
2249 \begin_inset Flex Code
2250 status collapsed
2251
2252 \begin_layout Plain Layout
2253 $$b
2254 \end_layout
2255
2256 \end_inset
2257
2258  The base name (without filename extension) in the \SpecialChar LyX
2259  temporary directory
2260 \end_layout
2261
2262 \begin_layout Labeling
2263 \labelwidthstring 00.00.0000
2264 \begin_inset Flex Code
2265 status collapsed
2266
2267 \begin_layout Plain Layout
2268 $$p
2269 \end_layout
2270
2271 \end_inset
2272
2273  The full directory path of the \SpecialChar LyX
2274  temporary directory
2275 \end_layout
2276
2277 \begin_layout Labeling
2278 \labelwidthstring 00.00.0000
2279 \begin_inset Flex Code
2280 status collapsed
2281
2282 \begin_layout Plain Layout
2283 $$r
2284 \end_layout
2285
2286 \end_inset
2287
2288  The full pathname to the original \SpecialChar LyX
2289  file being processed
2290 \end_layout
2291
2292 \begin_layout Labeling
2293 \labelwidthstring 00.00.0000
2294 \begin_inset Flex Code
2295 status collapsed
2296
2297 \begin_layout Plain Layout
2298 $$f
2299 \end_layout
2300
2301 \end_inset
2302
2303  The filename (without any directory path) of the \SpecialChar LyX
2304  file.
2305 \end_layout
2306
2307 \begin_layout Labeling
2308 \labelwidthstring 00.00.0000
2309 \begin_inset Flex Code
2310 status collapsed
2311
2312 \begin_layout Plain Layout
2313 $$l
2314 \end_layout
2315
2316 \end_inset
2317
2318  The `\SpecialChar LaTeX
2319  name'
2320 \end_layout
2321
2322 \begin_layout Standard
2323 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2324 's 
2325 \series bold
2326
2327 \backslash
2328 include
2329 \series default
2330  command.
2331  It is relevant only when exporting files suitable for such inclusion.
2332 \end_layout
2333
2334 \begin_layout Standard
2335 Copiers can be used to do almost anything with output files.
2336  For example,
2337  suppose you want generated pdf files to be copied to a special directory,
2338  
2339 \begin_inset Flex Code
2340 status collapsed
2341
2342 \begin_layout Plain Layout
2343 /home/you/pdf/
2344 \end_layout
2345
2346 \end_inset
2347
2348 .
2349  Then you could write a shell script such as this one:
2350 \end_layout
2351
2352 \begin_layout Standard
2353 \begin_inset listings
2354 inline false
2355 status open
2356
2357 \begin_layout Plain Layout
2358
2359 #!/bin/bash
2360 \end_layout
2361
2362 \begin_layout Plain Layout
2363
2364 FROMFILE=$1
2365 \end_layout
2366
2367 \begin_layout Plain Layout
2368
2369 TOFILE=`basename $2`
2370 \end_layout
2371
2372 \begin_layout Plain Layout
2373
2374 cp $FROMFILE /home/you/pdf/$TOFILE
2375 \end_layout
2376
2377 \end_inset
2378
2379 Save it in your local \SpecialChar LyX
2380  directory—
2381 say,
2382  
2383 \begin_inset Flex Code
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 /home/you/.lyx/scripts/pdfcopier.sh
2388 \end_layout
2389
2390 \end_inset
2391
2392
2393 and make it executable,
2394  if you need to do so on your platform.
2395  Then,
2396  in the 
2397 \begin_inset Flex Noun
2398 status collapsed
2399
2400 \begin_layout Plain Layout
2401 Tools\SpecialChar menuseparator
2402 Preferences
2403 \end_layout
2404
2405 \end_inset
2406
2407  dialog,
2408  select under 
2409 \begin_inset Flex Noun
2410 status collapsed
2411
2412 \begin_layout Plain Layout
2413 File Handling\SpecialChar menuseparator
2414 File formats
2415 \end_layout
2416
2417 \end_inset
2418
2419  the 
2420 \begin_inset Flex Noun
2421 status collapsed
2422
2423 \begin_layout Plain Layout
2424 PDF(pdflatex)
2425 \end_layout
2426
2427 \end_inset
2428
2429  format—
2430 or one of the other pdf formats—
2431 and enter 
2432 \begin_inset Flex Code
2433 status collapsed
2434
2435 \begin_layout Plain Layout
2436 pdfcopier.sh $$i $$o
2437 \end_layout
2438
2439 \end_inset
2440
2441  into the 
2442 \begin_inset Flex Noun
2443 status collapsed
2444
2445 \begin_layout Plain Layout
2446 Copier
2447 \end_layout
2448
2449 \end_inset
2450
2451  field.
2452  
2453 \end_layout
2454
2455 \begin_layout Standard
2456 Copiers are used by \SpecialChar LyX
2457  in various of its own conversions.
2458  For example,
2459  if appropriate programs are found,
2460  \SpecialChar LyX
2461  will automatically install copiers for the 
2462 \begin_inset Flex Noun
2463 status collapsed
2464
2465 \begin_layout Plain Layout
2466 HTML
2467 \end_layout
2468
2469 \end_inset
2470
2471  and 
2472 \begin_inset Flex Noun
2473 status collapsed
2474
2475 \begin_layout Plain Layout
2476 HTML
2477 \begin_inset space ~
2478 \end_inset
2479
2480 (MS Word)
2481 \end_layout
2482
2483 \end_inset
2484
2485  formats.
2486  When these formats are exported,
2487  the copier sees that not just the main HTML file but various associated files (style files,
2488  images,
2489  etc.) are also copied.
2490  All these files are written to a subdirectory of the directory in which the original \SpecialChar LyX
2491  file was found.
2492 \begin_inset Foot
2493 status collapsed
2494
2495 \begin_layout Plain Layout
2496 This copier can be customized.
2497  The optional 
2498 \begin_inset Quotes eld
2499 \end_inset
2500
2501 -e
2502 \begin_inset Quotes erd
2503 \end_inset
2504
2505  argument takes a comma-separated list of extensions to be copied;
2506  if it is omitted,
2507  all files will be copied.
2508  The 
2509 \begin_inset Quotes eld
2510 \end_inset
2511
2512 -t
2513 \begin_inset Quotes erd
2514 \end_inset
2515
2516  argument determines the extension added to the generated directory.
2517  By default,
2518  it is 
2519 \begin_inset Quotes eld
2520 \end_inset
2521
2522
2523 \begin_inset Flex Noun
2524 status collapsed
2525
2526 \begin_layout Plain Layout
2527 LyXconv
2528 \end_layout
2529
2530 \end_inset
2531
2532
2533 \begin_inset Quotes erd
2534 \end_inset
2535
2536 ,
2537  so HTML generated from 
2538 \begin_inset Flex Noun
2539 status collapsed
2540
2541 \begin_layout Plain Layout
2542 /path/to/filename.lyx
2543 \end_layout
2544
2545 \end_inset
2546
2547  will end up in 
2548 \begin_inset Flex Noun
2549 status collapsed
2550
2551 \begin_layout Plain Layout
2552 /path/to/filename.html.LyXconv
2553 \end_layout
2554
2555 \end_inset
2556
2557 .
2558  
2559 \end_layout
2560
2561 \end_inset
2562
2563
2564 \end_layout
2565
2566 \begin_layout Section
2567 Converters
2568 \begin_inset CommandInset label
2569 LatexCommand label
2570 name "sec:Converters"
2571
2572 \end_inset
2573
2574
2575 \end_layout
2576
2577 \begin_layout Standard
2578 You can define your own Converters to convert files between different formats.
2579  This is done in the 
2580 \begin_inset Flex Noun
2581 status collapsed
2582
2583 \begin_layout Plain Layout
2584 Tools\SpecialChar menuseparator
2585 Preferences\SpecialChar menuseparator
2586 File Handling\SpecialChar menuseparator
2587 Converters
2588 \end_layout
2589
2590 \end_inset
2591
2592  dialog.
2593 \end_layout
2594
2595 \begin_layout Standard
2596 To define a new converter,
2597  select the 
2598 \begin_inset Flex Noun
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 From
2603 \begin_inset space ~
2604 \end_inset
2605
2606 format
2607 \end_layout
2608
2609 \end_inset
2610
2611  and 
2612 \begin_inset Flex Noun
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616 To
2617 \begin_inset space ~
2618 \end_inset
2619
2620 format
2621 \end_layout
2622
2623 \end_inset
2624
2625  from the drop-down lists,
2626  enter the command needed for the conversion,
2627  and then press the 
2628 \begin_inset Flex Noun
2629 status collapsed
2630
2631 \begin_layout Plain Layout
2632 Add
2633 \end_layout
2634
2635 \end_inset
2636
2637  button.
2638  Several variables can be used in the definition of converters:
2639 \end_layout
2640
2641 \begin_layout Labeling
2642 \labelwidthstring 00.00.0000
2643 \begin_inset Flex Code
2644 status collapsed
2645
2646 \begin_layout Plain Layout
2647 $$s
2648 \end_layout
2649
2650 \end_inset
2651
2652  The \SpecialChar LyX
2653  system directory
2654 \end_layout
2655
2656 \begin_layout Labeling
2657 \labelwidthstring 00.00.0000
2658 \begin_inset Flex Code
2659 status collapsed
2660
2661 \begin_layout Plain Layout
2662 $$i
2663 \end_layout
2664
2665 \end_inset
2666
2667  The input file
2668 \end_layout
2669
2670 \begin_layout Labeling
2671 \labelwidthstring 00.00.0000
2672 \begin_inset Flex Code
2673 status collapsed
2674
2675 \begin_layout Plain Layout
2676 $$o
2677 \end_layout
2678
2679 \end_inset
2680
2681  The output file
2682 \end_layout
2683
2684 \begin_layout Labeling
2685 \labelwidthstring 00.00.0000
2686 \begin_inset Flex Code
2687 status collapsed
2688
2689 \begin_layout Plain Layout
2690 $$b
2691 \end_layout
2692
2693 \end_inset
2694
2695  The base filename of the input file (i.
2696 \begin_inset space \thinspace{}
2697 \end_inset
2698
2699 g.,
2700  without the extension)
2701 \end_layout
2702
2703 \begin_layout Labeling
2704 \labelwidthstring 00.00.0000
2705 \begin_inset Flex Code
2706 status collapsed
2707
2708 \begin_layout Plain Layout
2709 $$p
2710 \end_layout
2711
2712 \end_inset
2713
2714  The path to the input file
2715 \end_layout
2716
2717 \begin_layout Labeling
2718 \labelwidthstring 00.00.0000
2719 \begin_inset Flex Code
2720 status collapsed
2721
2722 \begin_layout Plain Layout
2723 $$r
2724 \end_layout
2725
2726 \end_inset
2727
2728  The path to the original input file (this is different from $$p when a chain of converters is called)
2729 \end_layout
2730
2731 \begin_layout Labeling
2732 \labelwidthstring 00.00.0000
2733 \begin_inset Flex Code
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 $$e
2738 \end_layout
2739
2740 \end_inset
2741
2742  The iconv name for the encoding of the document.
2743 \end_layout
2744
2745 \begin_layout Standard
2746 In the 
2747 \begin_inset Flex Noun
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 Extra
2752 \begin_inset space ~
2753 \end_inset
2754
2755 Flag
2756 \end_layout
2757
2758 \end_inset
2759
2760  field you can enter the following flags,
2761  separated by commas:
2762 \end_layout
2763
2764 \begin_layout Labeling
2765 \labelwidthstring 00.00.0000
2766 \begin_inset Flex Code
2767 status collapsed
2768
2769 \begin_layout Plain Layout
2770 latex
2771 \change_inserted -712698321 1524656940
2772 =flavor
2773 \change_unchanged
2774
2775 \end_layout
2776
2777 \end_inset
2778
2779  This converter runs some form of \SpecialChar LaTeX
2780 .
2781  This will make \SpecialChar LyX
2782 's \SpecialChar LaTeX
2783  error logs available.
2784
2785 \change_inserted -712698321 1524657018
2786  The optional 
2787 \begin_inset Flex Code
2788 status open
2789
2790 \begin_layout Plain Layout
2791
2792 \change_inserted -712698321 1524657012
2793 flavor
2794 \change_unchanged
2795
2796 \end_layout
2797
2798 \end_inset
2799
2800  value specifies the form of \SpecialChar LaTeX
2801  that is run (
2802 \begin_inset Flex Code
2803 status open
2804
2805 \begin_layout Plain Layout
2806
2807 \change_inserted -712698321 1524657005
2808 latex,
2809  pdflatex,
2810  platex,
2811  xetex,
2812  luatex
2813 \change_unchanged
2814
2815 \end_layout
2816
2817 \end_inset
2818
2819 ).
2820  If no value is specified,
2821  
2822 \begin_inset Flex Code
2823 status open
2824
2825 \begin_layout Plain Layout
2826
2827 \change_inserted -712698321 1524657018
2828 latex
2829 \change_unchanged
2830
2831 \end_layout
2832
2833 \end_inset
2834
2835  is used.
2836 \change_unchanged
2837
2838 \end_layout
2839
2840 \begin_layout Labeling
2841 \labelwidthstring 00.00.0000
2842
2843 \change_inserted -712698321 1676553236
2844 \begin_inset Flex Code
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848
2849 \change_inserted -712698321 1676552303
2850 needauth
2851 \change_unchanged
2852
2853 \end_layout
2854
2855 \end_inset
2856
2857  This converter is considered non-safe and needs authorization by the user.
2858  Depending on the settings in 
2859 \family sans
2860 Tools\SpecialChar menuseparator
2861 Preferences\SpecialChar menuseparator
2862 File Handling\SpecialChar menuseparator
2863 Converters
2864 \family default
2865 ,
2866  users will (a.) be asked whether they trust the current document temporarily,
2867  permanently,
2868  or not,
2869  (b.) be informed that conversion is not possible due to security concerns,
2870  or (c.) not be informed as they gave permanent consent.
2871  Set this flag for converters that might execute arbitrary programs.
2872 \end_layout
2873
2874 \begin_layout Labeling
2875 \labelwidthstring 00.00.0000
2876 \begin_inset Flex Code
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880 needaux
2881 \change_inserted -712698321 1524656935
2882 =flavor
2883 \change_unchanged
2884
2885 \end_layout
2886
2887 \end_inset
2888
2889  Needs the \SpecialChar LaTeX
2890  
2891 \begin_inset Flex Noun
2892 status collapsed
2893
2894 \begin_layout Plain Layout
2895 .aux
2896 \end_layout
2897
2898 \end_inset
2899
2900  file for the conversion.
2901
2902 \change_inserted -712698321 1524657047
2903  The optional 
2904 \begin_inset Flex Code
2905 status open
2906
2907 \begin_layout Plain Layout
2908
2909 \change_inserted -712698321 1524657030
2910 flavor
2911 \change_unchanged
2912
2913 \end_layout
2914
2915 \end_inset
2916
2917  value specifies the form of \SpecialChar LaTeX
2918  that is run in order to generate the 
2919 \begin_inset Flex Noun
2920 status collapsed
2921
2922 \begin_layout Plain Layout
2923
2924 \change_inserted -712698321 1524657047
2925 .aux
2926 \change_unchanged
2927
2928 \end_layout
2929
2930 \end_inset
2931
2932  file (
2933 \begin_inset Flex Code
2934 status open
2935
2936 \begin_layout Plain Layout
2937
2938 \change_inserted -712698321 1524657030
2939 latex,
2940  pdflatex,
2941  platex,
2942  xetex,
2943  luatex
2944 \change_unchanged
2945
2946 \end_layout
2947
2948 \end_inset
2949
2950 ).
2951  If no value is specified,
2952  
2953 \begin_inset Flex Code
2954 status open
2955
2956 \begin_layout Plain Layout
2957
2958 \change_inserted -712698321 1524657030
2959 latex
2960 \change_unchanged
2961
2962 \end_layout
2963
2964 \end_inset
2965
2966  is used.
2967 \change_unchanged
2968
2969 \end_layout
2970
2971 \begin_layout Labeling
2972 \labelwidthstring 00.00.0000
2973 \begin_inset Flex Code
2974 status collapsed
2975
2976 \begin_layout Plain Layout
2977 nice
2978 \end_layout
2979
2980 \end_inset
2981
2982  Needs a 
2983 \begin_inset Quotes eld
2984 \end_inset
2985
2986 nice
2987 \begin_inset Quotes erd
2988 \end_inset
2989
2990  file from the backend,
2991  which in practice means a \SpecialChar LaTeX
2992  file like the one we would export,
2993  without 
2994 \begin_inset Flex Code
2995 status collapsed
2996
2997 \begin_layout Plain Layout
2998 input@path
2999 \end_layout
3000
3001 \end_inset
3002
3003 .
3004 \end_layout
3005
3006 \begin_layout Labeling
3007 \labelwidthstring 00.00.0000
3008 \begin_inset Flex Code
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 xml
3013 \end_layout
3014
3015 \end_inset
3016
3017  Output is XML.
3018 \end_layout
3019
3020 \begin_layout Standard
3021 The following three flags are not really flags at all because they take an argument in the 
3022 \begin_inset Flex Noun
3023 status collapsed
3024
3025 \begin_layout Plain Layout
3026 key
3027 \begin_inset space ~
3028 \end_inset
3029
3030 =
3031 \begin_inset space ~
3032 \end_inset
3033
3034 value
3035 \end_layout
3036
3037 \end_inset
3038
3039  format:
3040 \end_layout
3041
3042 \begin_layout Labeling
3043 \labelwidthstring 00.00.0000
3044
3045 \change_inserted -712698321 1523206314
3046 \begin_inset Flex Code
3047 status collapsed
3048
3049 \begin_layout Plain Layout
3050
3051 \change_inserted -712698321 1523206193
3052 hyperref-driver
3053 \change_unchanged
3054
3055 \end_layout
3056
3057 \end_inset
3058
3059  The name of the driver that needs to be loaded with the 
3060 \family sans
3061 hyperref
3062 \family default
3063  package for this converter.
3064  The loading of the correct driver is necessary to get some PDF-specific features.
3065  See the 
3066 \family sans
3067 hyperref
3068 \family default
3069  manual for details.
3070 \end_layout
3071
3072 \begin_layout Labeling
3073 \labelwidthstring 00.00.0000
3074 \begin_inset Flex Code
3075 status collapsed
3076
3077 \begin_layout Plain Layout
3078 parselog
3079 \end_layout
3080
3081 \end_inset
3082
3083  If set,
3084  the converter's standard error will be redirected to a file 
3085 \begin_inset Flex Code
3086 status collapsed
3087
3088 \begin_layout Plain Layout
3089 infile.out
3090 \end_layout
3091
3092 \end_inset
3093
3094 ,
3095  and the script given as argument will be run as:
3096  
3097 \begin_inset Flex Code
3098 status collapsed
3099
3100 \begin_layout Plain Layout
3101 script < infile.out > infile.log
3102 \end_layout
3103
3104 \end_inset
3105
3106 .
3107  The argument may contain 
3108 \begin_inset Flex Code
3109 status collapsed
3110
3111 \begin_layout Plain Layout
3112 $$s
3113 \end_layout
3114
3115 \end_inset
3116
3117 .
3118 \end_layout
3119
3120 \begin_layout Labeling
3121 \labelwidthstring 00.00.0000
3122 \begin_inset Flex Code
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 resultdir
3127 \end_layout
3128
3129 \end_inset
3130
3131  The name of the directory in which the converter will dump the generated files.
3132  \SpecialChar LyX
3133  will not create this directory,
3134  and it does not copy anything into it,
3135  though it will copy this directory to the destination.
3136  The argument may contain 
3137 \begin_inset Flex Code
3138 status collapsed
3139
3140 \begin_layout Plain Layout
3141 $$b
3142 \end_layout
3143
3144 \end_inset
3145
3146 ,
3147  which will be replaced by the base name of the input and output files,
3148  respectively,
3149  when the directory is copied.
3150 \begin_inset Newline newline
3151 \end_inset
3152
3153 Note that resultdir and usetempdir make no sense together.
3154  The latter will be ignored if the former is given.
3155 \end_layout
3156
3157 \begin_layout Labeling
3158 \labelwidthstring 00.00.0000
3159 \begin_inset Flex Code
3160 status collapsed
3161
3162 \begin_layout Plain Layout
3163 resultfile
3164 \end_layout
3165
3166 \end_inset
3167
3168  Determines the output file name and may,
3169  contain 
3170 \begin_inset Flex Code
3171 status collapsed
3172
3173 \begin_layout Plain Layout
3174 $$b
3175 \end_layout
3176
3177 \end_inset
3178
3179 .
3180  Sensible only with resultdir and optional even then;
3181  if not given,
3182  it defaults to `index'.
3183 \end_layout
3184
3185 \begin_layout Standard
3186
3187 \change_inserted -712698321 1523206384
3188 A suitable hyperref-driver is set for some converters that are installed with \SpecialChar LyX
3189 .
3190  
3191 \change_deleted -712698321 1523206388
3192 None of these
3193 \change_inserted -712698321 1523206389
3194 The
3195 \change_unchanged
3196  last three
3197 \change_inserted -712698321 1523206400
3198  flags,
3199  however,
3200
3201 \change_unchanged
3202  are presently 
3203 \change_inserted -712698321 1523206407
3204 not 
3205 \change_unchanged
3206 used in any of the 
3207 \change_inserted -712698321 1523206437
3208 pre-installed 
3209 \change_unchanged
3210 converters
3211 \change_deleted -712698321 1523206442
3212  that are installed with \SpecialChar LyX
3213
3214 \change_unchanged
3215 .
3216  
3217 \end_layout
3218
3219 \begin_layout Standard
3220 You do not have to define converters for all formats between which you want to convert.
3221  For example,
3222  you will note that there is no `\SpecialChar LyX
3223  to PostScript' converter,
3224  but \SpecialChar LyX
3225  will export PostScript.
3226  It does so by first creating a \SpecialChar LaTeX
3227  file (no converter needs to be defined for this) which is then converted to DVI using the `\SpecialChar LaTeX
3228  to DVI' converter,
3229  and finally converting the resulting DVI file to PostScript.
3230  \SpecialChar LyX
3231  finds such `chains' of converters automatically,
3232  and it will always choose the shortest possible chain.
3233  You can,
3234  though,
3235  still define multiple conversion methods between file formats.
3236  For example,
3237  the standard \SpecialChar LyX
3238  configuration provides five ways to convert \SpecialChar LaTeX
3239  to PDF:
3240 \end_layout
3241
3242 \begin_layout Enumerate
3243 Directly,
3244  using 
3245 \begin_inset Flex Noun
3246 status collapsed
3247
3248 \begin_layout Plain Layout
3249 pdflatex
3250 \end_layout
3251
3252 \end_inset
3253
3254
3255 \end_layout
3256
3257 \begin_layout Enumerate
3258 via (DVI and) PostScript,
3259  using 
3260 \begin_inset Flex Noun
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264 ps2pdf
3265 \end_layout
3266
3267 \end_inset
3268
3269
3270 \end_layout
3271
3272 \begin_layout Enumerate
3273 via DVI,
3274  using 
3275 \begin_inset Flex Noun
3276 status collapsed
3277
3278 \begin_layout Plain Layout
3279 dvipdfm
3280 \end_layout
3281
3282 \end_inset
3283
3284
3285 \end_layout
3286
3287 \begin_layout Enumerate
3288 directly using 
3289 \begin_inset Flex Noun
3290 status collapsed
3291
3292 \begin_layout Plain Layout
3293 Xe\SpecialChar TeX
3294
3295 \end_layout
3296
3297 \end_inset
3298
3299
3300 \end_layout
3301
3302 \begin_layout Enumerate
3303 directly using 
3304 \begin_inset Flex Noun
3305 status collapsed
3306
3307 \begin_layout Plain Layout
3308 Lua\SpecialChar TeX
3309
3310 \end_layout
3311
3312 \end_inset
3313
3314
3315 \end_layout
3316
3317 \begin_layout Standard
3318 To define such alternate chains,
3319  you must define multiple target `file formats',
3320  as described in 
3321 \begin_inset CommandInset ref
3322 LatexCommand ref
3323 reference "sec:Formats"
3324 nolink "false"
3325
3326 \end_inset
3327
3328 .
3329  For example,
3330  in the standard configuration,
3331  the formats named 
3332 \begin_inset Flex Noun
3333 status collapsed
3334
3335 \begin_layout Plain Layout
3336 pdf
3337 \end_layout
3338
3339 \end_inset
3340
3341  (for 
3342 \begin_inset Flex Noun
3343 status collapsed
3344
3345 \begin_layout Plain Layout
3346 ps2pdf
3347 \end_layout
3348
3349 \end_inset
3350
3351 ),
3352  
3353 \begin_inset Flex Noun
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 pdf2
3358 \end_layout
3359
3360 \end_inset
3361
3362  (for 
3363 \begin_inset Flex Noun
3364 status collapsed
3365
3366 \begin_layout Plain Layout
3367 pdflatex
3368 \end_layout
3369
3370 \end_inset
3371
3372 ),
3373  
3374 \begin_inset Flex Noun
3375 status collapsed
3376
3377 \begin_layout Plain Layout
3378 pdf3
3379 \end_layout
3380
3381 \end_inset
3382
3383  (for 
3384 \begin_inset Flex Noun
3385 status collapsed
3386
3387 \begin_layout Plain Layout
3388 dvipdfm
3389 \end_layout
3390
3391 \end_inset
3392
3393 ),
3394  
3395 \begin_inset Flex Noun
3396 status collapsed
3397
3398 \begin_layout Plain Layout
3399 pdf4
3400 \end_layout
3401
3402 \end_inset
3403
3404  (for 
3405 \begin_inset Flex Noun
3406 status collapsed
3407
3408 \begin_layout Plain Layout
3409 Xe\SpecialChar TeX
3410
3411 \end_layout
3412
3413 \end_inset
3414
3415 ),
3416  and 
3417 \begin_inset Flex Noun
3418 status collapsed
3419
3420 \begin_layout Plain Layout
3421 pdf5
3422 \end_layout
3423
3424 \end_inset
3425
3426  (for 
3427 \begin_inset Flex Noun
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431 Lua\SpecialChar TeX
3432
3433 \end_layout
3434
3435 \end_inset
3436
3437 ) are defined,
3438  all of which share the extension 
3439 \begin_inset Flex Noun
3440 status collapsed
3441
3442 \begin_layout Plain Layout
3443 .pdf
3444 \end_layout
3445
3446 \end_inset
3447
3448 ,
3449  and which correspond to the conversion methods just mentioned.
3450 \end_layout
3451
3452 \begin_layout Chapter
3453 Internationalizing \SpecialChar LyX
3454
3455 \begin_inset CommandInset label
3456 LatexCommand label
3457 name "cha:Internationalizing-LyX"
3458
3459 \end_inset
3460
3461
3462 \end_layout
3463
3464 \begin_layout Standard
3465 \SpecialChar LyX
3466  supports using a translated interface.
3467  Last time we checked,
3468  \SpecialChar LyX
3469  provided text in thirty languages.
3470  The language of choice is called your 
3471 \emph on
3472 locale
3473 \emph default
3474 .
3475  (For further reading on locale settings,
3476  see also the documentation for locale that comes with your operating system.
3477  For Linux,
3478  the manual page for 
3479 \begin_inset Flex Code
3480 status collapsed
3481
3482 \begin_layout Plain Layout
3483 locale(5)
3484 \end_layout
3485
3486 \end_inset
3487
3488  could be a good place to start).
3489 \end_layout
3490
3491 \begin_layout Standard
3492 Notice that these translations will work,
3493  but do contain a few flaws.
3494  In particular,
3495  all dialogs have been designed with the English text in mind,
3496  which means that some of the translated text will be too large to fit within the space allocated.
3497  This is only a display problem and will not cause any harm.
3498  Also,
3499  you will find that some of the translations do not define shortcut keys for everything.
3500  Sometimes,
3501  there are simply not enough free letters to do it.
3502  Other times,
3503  the translator just hasn't got around to doing it yet.
3504  Our localization team,
3505  which you may wish to join,
3506 \begin_inset Foot
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510 If you are a fluent speaker of a language other than English,
3511  joining these teams is a great way to give back to the \SpecialChar LyX
3512  community!
3513 \end_layout
3514
3515 \end_inset
3516
3517  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3518 .
3519 \end_layout
3520
3521 \begin_layout Section
3522 Translating \SpecialChar LyX
3523
3524 \end_layout
3525
3526 \begin_layout Subsection
3527 Translating the graphical user interface (text messages).
3528 \end_layout
3529
3530 \begin_layout Standard
3531 \SpecialChar LyX
3532  uses the GNU 
3533 \begin_inset Flex Code
3534 status collapsed
3535
3536 \begin_layout Plain Layout
3537 gettext
3538 \end_layout
3539
3540 \end_inset
3541
3542  library to handle the internationalization of the interface.
3543  To have \SpecialChar LyX
3544  speak your favorite language in all menus and dialogs,
3545  you need a 
3546 \begin_inset Flex Code
3547 status collapsed
3548
3549 \begin_layout Plain Layout
3550 po
3551 \end_layout
3552
3553 \end_inset
3554
3555 -file for that language.
3556  When this is available,
3557  you'll have to generate a 
3558 \begin_inset Flex Code
3559 status collapsed
3560
3561 \begin_layout Plain Layout
3562 mo
3563 \end_layout
3564
3565 \end_inset
3566
3567 -file from it and install the 
3568 \begin_inset Flex Code
3569 status collapsed
3570
3571 \begin_layout Plain Layout
3572 mo
3573 \end_layout
3574
3575 \end_inset
3576
3577 -file.
3578  The process of doing all of this is explained in the documentation for GNU 
3579 \begin_inset Flex Code
3580 status collapsed
3581
3582 \begin_layout Plain Layout
3583 gettext
3584 \end_layout
3585
3586 \end_inset
3587
3588 .
3589  It is possible to do this just for yourself,
3590  but if you're going to do it,
3591  you might as well share the results of your labors with the rest of the \SpecialChar LyX
3592  community.
3593  Send a message to the \SpecialChar LyX
3594  developers' list for more information about how to proceed.
3595 \end_layout
3596
3597 \begin_layout Standard
3598 In short,
3599  this is what you should do (xx denotes the language code):
3600 \end_layout
3601
3602 \begin_layout Itemize
3603 Check out the \SpecialChar LyX
3604  source code.
3605  (See the 
3606 \begin_inset CommandInset href
3607 LatexCommand href
3608 name "information on the web"
3609 target "https://www.lyx.org/HowToUseGIT"
3610 literal "false"
3611
3612 \end_inset
3613
3614 .)
3615 \end_layout
3616
3617 \begin_layout Itemize
3618 Copy the file 
3619 \begin_inset Flex Code
3620 status collapsed
3621
3622 \begin_layout Plain Layout
3623 lyx.pot
3624 \end_layout
3625
3626 \end_inset
3627
3628  to the folder of the 
3629 \begin_inset Flex Code
3630 status collapsed
3631
3632 \begin_layout Plain Layout
3633 **.po
3634 \end_layout
3635
3636 \end_inset
3637
3638  files.
3639  Then rename it to 
3640 \begin_inset Flex Code
3641 status collapsed
3642
3643 \begin_layout Plain Layout
3644 xx.po
3645 \end_layout
3646
3647 \end_inset
3648
3649 .
3650  (If 
3651 \begin_inset Flex Code
3652 status collapsed
3653
3654 \begin_layout Plain Layout
3655 lyx.pot
3656 \end_layout
3657
3658 \end_inset
3659
3660  doesn't exist anywhere,
3661  it can be remade with the console command 
3662 \begin_inset Flex Code
3663 status collapsed
3664
3665 \begin_layout Plain Layout
3666 make lyx.pot
3667 \end_layout
3668
3669 \end_inset
3670
3671  in that directory,
3672  or you can use an existing po-file for some other language as a template).
3673 \end_layout
3674
3675 \begin_layout Itemize
3676 Edit 
3677 \begin_inset Flex Code
3678 status collapsed
3679
3680 \begin_layout Plain Layout
3681 xx.po
3682 \end_layout
3683
3684 \end_inset
3685
3686 .
3687 \begin_inset Foot
3688 status collapsed
3689
3690 \begin_layout Plain Layout
3691 This is just a text file,
3692  so it can be edited in any text editor.
3693  But there are also specialized programs that support such editing,
3694  such as 
3695 \family typewriter
3696 Poedit
3697 \family default
3698  (for all platforms) or 
3699 \family typewriter
3700 KBabel
3701 \family default
3702  (for KDE).
3703  
3704 \family typewriter
3705 Emacs
3706 \family default
3707  contains a `mode' for editing 
3708 \begin_inset Flex Code
3709 status collapsed
3710
3711 \begin_layout Plain Layout
3712 po
3713 \end_layout
3714
3715 \end_inset
3716
3717  files,
3718  as well,
3719  see 
3720 \begin_inset Flex URL
3721 status open
3722
3723 \begin_layout Plain Layout
3724
3725 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3726 \end_layout
3727
3728 \end_inset
3729
3730 .
3731 \end_layout
3732
3733 \end_inset
3734
3735  For some menu- and widget-labels,
3736  there are also shortcut keys that should be translated.
3737  Those keys are marked after a `|',
3738  and should be translated according to the words and phrases of the language.
3739  You should also fill also out the information at the beginning of the new 
3740 \begin_inset Flex Code
3741 status collapsed
3742
3743 \begin_layout Plain Layout
3744 po
3745 \end_layout
3746
3747 \end_inset
3748
3749 -file with your email-address,
3750  etc.,
3751  so people know where to reach you with suggestions and entertaining flames.
3752 \end_layout
3753
3754 \begin_layout Standard
3755 If you are just doing this on your own,
3756  then:
3757 \end_layout
3758
3759 \begin_layout Itemize
3760 Generate 
3761 \begin_inset Flex Code
3762 status collapsed
3763
3764 \begin_layout Plain Layout
3765 xx.mo
3766 \end_layout
3767
3768 \end_inset
3769
3770 .
3771  This can be done with 
3772 \begin_inset Flex Code
3773 status collapsed
3774
3775 \begin_layout Plain Layout
3776 msgfmt -o xx.mo < xx.po
3777 \end_layout
3778
3779 \end_inset
3780
3781 .
3782 \end_layout
3783
3784 \begin_layout Itemize
3785 Copy the 
3786 \begin_inset Flex Code
3787 status collapsed
3788
3789 \begin_layout Plain Layout
3790 mo
3791 \end_layout
3792
3793 \end_inset
3794
3795 -file to your locale-tree,
3796  at the correct directory for application messages for the language
3797 \series bold
3798  
3799 \series default
3800 xx,
3801  and under the name 
3802 \begin_inset Flex Code
3803 status collapsed
3804
3805 \begin_layout Plain Layout
3806 lyx.mo
3807 \end_layout
3808
3809 \end_inset
3810
3811  (e.
3812 \begin_inset space \thinspace{}
3813 \end_inset
3814
3815 g.
3816 \begin_inset space \space{}
3817 \end_inset
3818
3819
3820 \begin_inset Flex Code
3821 status collapsed
3822
3823 \begin_layout Plain Layout
3824 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3825 \end_layout
3826
3827 \end_inset
3828
3829
3830 \series bold
3831 .
3832 \end_layout
3833
3834 \begin_layout Standard
3835 As said,
3836  however,
3837  it would be best if the new 
3838 \begin_inset Flex Code
3839 status collapsed
3840
3841 \begin_layout Plain Layout
3842 po
3843 \end_layout
3844
3845 \end_inset
3846
3847  file could be added to the \SpecialChar LyX
3848  distribution,
3849  so others can use it.
3850  Adding it involves making additional changes to \SpecialChar LyX
3851 .
3852  So send an email to the developers' mailing list if you're interested in doing that.
3853 \end_layout
3854
3855 \begin_layout Subsubsection
3856 Ambiguous messages
3857 \end_layout
3858
3859 \begin_layout Standard
3860 Sometimes it turns out that one English message needs to be translated into different messages in the target language.
3861  One example is the message 
3862 \begin_inset Flex Code
3863 status collapsed
3864
3865 \begin_layout Plain Layout
3866 To
3867 \end_layout
3868
3869 \end_inset
3870
3871  which has the German translation 
3872 \lang german
3873 Nach
3874 \lang english
3875  or 
3876 \lang german
3877 Bis
3878 \lang english
3879 ,
3880  depending upon exactly what the English 
3881 \begin_inset Quotes eld
3882 \end_inset
3883
3884 to
3885 \begin_inset Quotes erd
3886 \end_inset
3887
3888  means.
3889  GNU 
3890 \begin_inset Flex Code
3891 status collapsed
3892
3893 \begin_layout Plain Layout
3894 gettext
3895 \end_layout
3896
3897 \end_inset
3898
3899  does not handle such ambiguous translations.
3900  Therefore you have to add some context information to the message:
3901  Instead of 
3902 \begin_inset Flex Code
3903 status collapsed
3904
3905 \begin_layout Plain Layout
3906 To
3907 \end_layout
3908
3909 \end_inset
3910
3911  it becomes 
3912 \begin_inset Flex Code
3913 status collapsed
3914
3915 \begin_layout Plain Layout
3916 To[[as in 'From format x to format y']]
3917 \end_layout
3918
3919 \end_inset
3920
3921  and 
3922 \begin_inset Flex Code
3923 status collapsed
3924
3925 \begin_layout Plain Layout
3926 To[[as in 'From page x to page y']].
3927 \end_layout
3928
3929 \end_inset
3930
3931  Now the two occurrences of 
3932 \begin_inset Flex Code
3933 status collapsed
3934
3935 \begin_layout Plain Layout
3936 To
3937 \end_layout
3938
3939 \end_inset
3940
3941  are different for 
3942 \begin_inset Flex Code
3943 status collapsed
3944
3945 \begin_layout Plain Layout
3946 gettext
3947 \end_layout
3948
3949 \end_inset
3950
3951  and can be translated correctly to 
3952 \lang german
3953 Nach
3954 \lang english
3955  and 
3956 \lang german
3957 Bis
3958 \lang english
3959 ,
3960  respectively.
3961 \end_layout
3962
3963 \begin_layout Standard
3964 Of course the context information needs to be stripped off the original message when no translation is used.
3965  Therefore you have to put it in double square brackets at the end of the message (see the example above).
3966  The translation mechanism of \SpecialChar LyX
3967  ensures that everything in double square brackets at the end of messages is removed before displaying the message.
3968 \end_layout
3969
3970 \begin_layout Subsection
3971 Translating the documentation.
3972 \end_layout
3973
3974 \begin_layout Standard
3975 The online documentation (in the 
3976 \begin_inset Flex Noun
3977 status collapsed
3978
3979 \begin_layout Plain Layout
3980 Help
3981 \end_layout
3982
3983 \end_inset
3984
3985 -menu) can (and should!) be translated.
3986  If there are translated versions of the documentation available
3987 \begin_inset Foot
3988 status collapsed
3989
3990 \begin_layout Plain Layout
3991 As of March 2008,
3992  at least some of the documents have been translated into fourteen languages,
3993  with the Tutorial available in a few more.
3994 \end_layout
3995
3996 \end_inset
3997
3998  and the locale is set accordingly,
3999  these will be used automagically by \SpecialChar LyX
4000 .
4001  \SpecialChar LyX
4002  looks for translated versions as 
4003 \begin_inset Flex Code
4004 status collapsed
4005
4006 \begin_layout Plain Layout
4007 LyXDir/doc/xx/DocName.lyx
4008 \end_layout
4009
4010 \end_inset
4011
4012 ,
4013  where 
4014 \begin_inset Flex Code
4015 status collapsed
4016
4017 \begin_layout Plain Layout
4018 xx
4019 \end_layout
4020
4021 \end_inset
4022
4023  is the code for the language currently in use.
4024  If there are no translated documents,
4025  the default English versions will be displayed.
4026  Note that the translated versions must have the same filenames (
4027 \begin_inset Flex Code
4028 status collapsed
4029
4030 \begin_layout Plain Layout
4031 DocName
4032 \end_layout
4033
4034 \end_inset
4035
4036  above) as the original.
4037  If you feel up to translating the documentation (an excellent way to proof-read the original documentation by the way!),
4038  there are a few things you should do right away:
4039 \end_layout
4040
4041 \begin_layout Itemize
4042 Check out the documentation translation web page at 
4043 \begin_inset CommandInset href
4044 LatexCommand href
4045 name "https://www.lyx.org/Translation"
4046 target "https://www.lyx.org/Translation"
4047 literal "false"
4048
4049 \end_inset
4050
4051 .
4052  That way,
4053  you can find out which (if any) documents have already been translated into your language.
4054  You can also find out who (if anyone) is organizing the effort to translate the documentation into your language.
4055  If no one is organizing the effort,
4056  please let us know that you're interested.
4057 \end_layout
4058
4059 \begin_layout Standard
4060 Once you get to actually translating,
4061  here's a few hints for you that may save you trouble:
4062 \end_layout
4063
4064 \begin_layout Itemize
4065 Join the documentation team!
4066  There is information on how to do that in 
4067 \begin_inset Flex Code
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071 Intro.lyx
4072 \end_layout
4073
4074 \end_inset
4075
4076  (
4077 \begin_inset Flex Noun
4078 status collapsed
4079
4080 \begin_layout Plain Layout
4081 Help\SpecialChar menuseparator
4082 Introduction
4083 \end_layout
4084
4085 \end_inset
4086
4087 ),
4088  which by the way is the first document you should translate.
4089 \end_layout
4090
4091 \begin_layout Itemize
4092 Learn the typographic conventions for the language you are translating to.
4093  Typography is an ancient art and over the centuries,
4094  a great variety of conventions have developed throughout different parts of the world.
4095  Also study the professional terminology amongst typographers in your country.
4096  Inventing your own terminology will only confuse the users.
4097  
4098 \emph on
4099 (Warning!
4100  Typography is addictive!)
4101 \end_layout
4102
4103 \begin_layout Itemize
4104 Make a copy of the document.
4105  This will be your working copy.
4106  You can use this as your personal translated help-file by placing it in your 
4107 \begin_inset Flex Code
4108 status collapsed
4109
4110 \begin_layout Plain Layout
4111 UserDir/doc/xx/
4112 \end_layout
4113
4114 \end_inset
4115
4116  directory.
4117 \begin_inset Note Greyedout
4118 status open
4119
4120 \begin_layout Plain Layout
4121
4122 \series bold
4123 Note:
4124
4125 \series default
4126  For a complex document with external material (images,
4127  etc.),
4128  if you make a copy e.
4129 \begin_inset space \thinspace{}
4130 \end_inset
4131
4132 g.
4133 \begin_inset space \space{}
4134 \end_inset
4135
4136 in a temp dir,
4137  beware that the links to external material may be broken when the document is moved to a different place.
4138  The best way is to retrieve the \SpecialChar LyX
4139  tree from git (see 
4140 \begin_inset Flex URL
4141 status collapsed
4142
4143 \begin_layout Plain Layout
4144
4145 https://www.lyx.org/HowToUseGIT
4146 \end_layout
4147
4148 \end_inset
4149
4150 ) and to edit the doc file in place.
4151 \end_layout
4152
4153 \end_inset
4154
4155
4156 \end_layout
4157
4158 \begin_layout Itemize
4159 Sometimes the original document (from the \SpecialChar LyX
4160  team) will be updated.
4161  Use the source viewer at 
4162 \begin_inset CommandInset href
4163 LatexCommand href
4164 name "https://www.lyx.org/trac/timeline"
4165 target "https://www.lyx.org/trac/timeline"
4166 literal "false"
4167
4168 \end_inset
4169
4170  to see what has been changed.
4171  That way you can easily see which parts of the translated document need to be updated.
4172 \end_layout
4173
4174 \begin_layout Standard
4175 If you ever find an error in the original document,
4176  fix it and notify the rest of the documentation team of the changes!
4177  (You didn't forget to join the documentation team,
4178  did you?)
4179 \end_layout
4180
4181 \begin_layout Standard
4182 \begin_inset Branch OutDated
4183 inverted 0
4184 status collapsed
4185
4186 \begin_layout Section
4187 International Keyboard Support
4188 \end_layout
4189
4190 \begin_layout Standard
4191
4192 \emph on
4193 [Editor's Note:
4194  The following section is by
4195 \emph default
4196  
4197 \shape smallcaps
4198 \emph on
4199 Ivan Schreter
4200 \shape default
4201 .
4202  It needs to be fixed to conform to the new Documentation Style sheet and to make use of the new v1.0 features.
4203  The whole thing also needs to be merged with the section following it.-jw It may also be badly out of date.-rh (2008)]
4204 \end_layout
4205
4206 \begin_layout Subsection
4207 Defining Own Keymaps:
4208  Keymap File Format
4209 \end_layout
4210
4211 \begin_layout Standard
4212 Let's look at a keyboard definition file a little closer.
4213  It is a plain text file defining
4214 \end_layout
4215
4216 \begin_layout Itemize
4217 key-to-key or key-to-string translations
4218 \end_layout
4219
4220 \begin_layout Itemize
4221 dead keys
4222 \end_layout
4223
4224 \begin_layout Itemize
4225 dead keys exceptions
4226 \end_layout
4227
4228 \begin_layout Standard
4229 To define key-to-key or key-to-string translation,
4230  use this command:
4231 \end_layout
4232
4233 \begin_layout Quotation
4234 \begin_inset Flex Code
4235 status collapsed
4236
4237 \begin_layout Plain Layout
4238
4239 \backslash
4240 kmap
4241 \end_layout
4242
4243 \end_inset
4244
4245  
4246 \begin_inset Flex Code
4247 status collapsed
4248
4249 \begin_layout Plain Layout
4250 key
4251 \end_layout
4252
4253 \end_inset
4254
4255  outstring 
4256 \end_layout
4257
4258 \begin_layout Standard
4259 where 
4260 \begin_inset Flex Code
4261 status collapsed
4262
4263 \begin_layout Plain Layout
4264 key
4265 \end_layout
4266
4267 \end_inset
4268
4269  is the key to be translated and 
4270 \begin_inset Flex Code
4271 status collapsed
4272
4273 \begin_layout Plain Layout
4274 outstring
4275 \end_layout
4276
4277 \end_inset
4278
4279  is the string to be inserted into the document.
4280  To define dead keys,
4281  use:
4282 \end_layout
4283
4284 \begin_layout Quotation
4285 \begin_inset Flex Code
4286 status collapsed
4287
4288 \begin_layout Plain Layout
4289
4290 \backslash
4291 kmod
4292 \end_layout
4293
4294 \end_inset
4295
4296  
4297 \begin_inset Flex Code
4298 status collapsed
4299
4300 \begin_layout Plain Layout
4301 key
4302 \end_layout
4303
4304 \end_inset
4305
4306  deadkey
4307 \end_layout
4308
4309 \begin_layout Standard
4310 where 
4311 \begin_inset Flex Code
4312 status collapsed
4313
4314 \begin_layout Plain Layout
4315 key
4316 \end_layout
4317
4318 \end_inset
4319
4320  is a keyboard key and 
4321 \begin_inset Flex Code
4322 status collapsed
4323
4324 \begin_layout Plain Layout
4325 deadkey
4326 \end_layout
4327
4328 \end_inset
4329
4330  is dead key name.
4331  The following dead keys are supported (shortcut name is in parentheses):
4332 \end_layout
4333
4334 \begin_layout Quotation
4335
4336 \emph on
4337 Name
4338 \begin_inset space \hfill{}
4339 \end_inset
4340
4341 Example
4342 \end_layout
4343
4344 \begin_layout Quotation
4345 acute (acu)
4346 \begin_inset space \hfill{}
4347 \end_inset
4348
4349 áéíóú
4350 \end_layout
4351
4352 \begin_layout Quotation
4353 grave (gra)
4354 \begin_inset space \hfill{}
4355 \end_inset
4356
4357 àèìòù
4358 \end_layout
4359
4360 \begin_layout Quotation
4361 macron (mac)
4362 \begin_inset space \hfill{}
4363 \end_inset
4364
4365  ō
4366 \end_layout
4367
4368 \begin_layout Quotation
4369 tilde (til)
4370 \begin_inset space \hfill{}
4371 \end_inset
4372
4373 ñÑ
4374 \end_layout
4375
4376 \begin_layout Quotation
4377 underbar (underb)
4378 \begin_inset space \hfill{}
4379 \end_inset
4380
4381
4382 \begin_inset ERT
4383 status open
4384
4385 \begin_layout Plain Layout
4386
4387
4388 \backslash
4389 b o
4390 \end_layout
4391
4392 \end_inset
4393
4394
4395 \end_layout
4396
4397 \begin_layout Quotation
4398 cedilla (ced)
4399 \begin_inset space \hfill{}
4400 \end_inset
4401
4402 çÇ
4403 \end_layout
4404
4405 \begin_layout Quotation
4406 underdot (underd)
4407 \begin_inset space \hfill{}
4408 \end_inset
4409
4410
4411 \begin_inset ERT
4412 status open
4413
4414 \begin_layout Plain Layout
4415
4416
4417 \backslash
4418 d o
4419 \end_layout
4420
4421 \end_inset
4422
4423
4424 \end_layout
4425
4426 \begin_layout Quotation
4427 circumflex (circu)
4428 \begin_inset space \hfill{}
4429 \end_inset
4430
4431 âêîôû
4432 \end_layout
4433
4434 \begin_layout Quotation
4435 circle (circl)
4436 \begin_inset space \hfill{}
4437 \end_inset
4438
4439 ÅůŮ
4440 \end_layout
4441
4442 \begin_layout Quotation
4443 tie (tie)
4444 \begin_inset space \hfill{}
4445 \end_inset
4446
4447
4448 \begin_inset ERT
4449 status open
4450
4451 \begin_layout Plain Layout
4452
4453
4454 \backslash
4455 t o
4456 \end_layout
4457
4458 \end_inset
4459
4460
4461 \end_layout
4462
4463 \begin_layout Quotation
4464 breve (bre)
4465 \begin_inset space \hfill{}
4466 \end_inset
4467
4468 ă
4469 \begin_inset ERT
4470 status open
4471
4472 \begin_layout Plain Layout
4473
4474
4475 \backslash
4476 u o
4477 \end_layout
4478
4479 \end_inset
4480
4481
4482 \end_layout
4483
4484 \begin_layout Quotation
4485 caron (car)
4486 \begin_inset space \hfill{}
4487 \end_inset
4488
4489 čšž
4490 \end_layout
4491
4492 \begin_layout Quotation
4493 hungarian umlaut (hug)
4494 \begin_inset space \hfill{}
4495 \end_inset
4496
4497 őű
4498 \end_layout
4499
4500 \begin_layout Quotation
4501 umlaut (uml)
4502 \begin_inset space \hfill{}
4503 \end_inset
4504
4505 äöü
4506 \end_layout
4507
4508 \begin_layout Quotation
4509 dot (dot)
4510 \begin_inset space \hfill{}
4511 \end_inset
4512
4513 ż
4514 \begin_inset ERT
4515 status open
4516
4517 \begin_layout Plain Layout
4518
4519
4520 \backslash
4521 .s
4522 \end_layout
4523
4524 \end_inset
4525
4526
4527 \end_layout
4528
4529 \begin_layout Standard
4530 Since in many international keyboards there are exceptions to what some dead keys should do,
4531  you can define them using
4532 \end_layout
4533
4534 \begin_layout Quotation
4535 \begin_inset Flex Code
4536 status collapsed
4537
4538 \begin_layout Plain Layout
4539
4540 \backslash
4541 kxmod
4542 \end_layout
4543
4544 \end_inset
4545
4546  deadkey key outstring
4547 \end_layout
4548
4549 \begin_layout Standard
4550 For example,
4551  on Slovak keyboard,
4552  if you enter caron-o,
4553  it generates circumflex-o,
4554  so you put in
4555 \end_layout
4556
4557 \begin_layout Quotation
4558 \begin_inset Flex Code
4559 status collapsed
4560
4561 \begin_layout Plain Layout
4562
4563 \backslash
4564 kxmod
4565 \end_layout
4566
4567 \end_inset
4568
4569  caron o "
4570 \backslash
4571 ^o"
4572 \end_layout
4573
4574 \begin_layout Standard
4575 to make it work correctly.
4576  Also,
4577  you have to define as exceptions dead keys over i and j,
4578  to remove the dot from them before inserting an accent mark.
4579  I will change this when the time comes,
4580  but so far I haven't had time.
4581 \end_layout
4582
4583 \begin_layout Standard
4584 Oh,
4585  and about characters:
4586  backslash is escaped,
4587  so to enter it,
4588  you'll need double backslash.
4589  Also,
4590  quotes and 
4591 \begin_inset Flex Code
4592 status collapsed
4593
4594 \begin_layout Plain Layout
4595 #
4596 \end_layout
4597
4598 \end_inset
4599
4600  have different meaning.
4601  
4602 \begin_inset Flex Code
4603 status collapsed
4604
4605 \begin_layout Plain Layout
4606 #
4607 \end_layout
4608
4609 \end_inset
4610
4611  marks comments,
4612  quotes start and end \SpecialChar LaTeX
4613 -style commands.
4614  To enter quote,
4615  you'll need to use 
4616 \begin_inset Flex Code
4617 status collapsed
4618
4619 \begin_layout Plain Layout
4620
4621 \backslash
4622 "
4623 \end_layout
4624
4625 \end_inset
4626
4627 ,
4628  to enter 
4629 \begin_inset Flex Code
4630 status collapsed
4631
4632 \begin_layout Plain Layout
4633 #
4634 \end_layout
4635
4636 \end_inset
4637
4638 ,
4639  use 
4640 \begin_inset Flex Code
4641 status collapsed
4642
4643 \begin_layout Plain Layout
4644
4645 \backslash
4646 #
4647 \end_layout
4648
4649 \end_inset
4650
4651 .
4652 \end_layout
4653
4654 \begin_layout Standard
4655 If you make a keyboard description file that works for your language,
4656  please mail it to me,
4657  so I can include it in the next keymap distribution.
4658 \end_layout
4659
4660 \begin_layout Standard
4661 More keywords will be supported in keymap configuration file in future,
4662  like
4663 \end_layout
4664
4665 \begin_layout Itemize
4666 \begin_inset Flex Code
4667 status collapsed
4668
4669 \begin_layout Plain Layout
4670
4671 \backslash
4672 kinclude filename
4673 \end_layout
4674
4675 \end_inset
4676
4677
4678 \emph on
4679
4680 \begin_inset space \hfill{}
4681 \end_inset
4682
4683
4684 \begin_inset Flex Code
4685 status collapsed
4686
4687 \begin_layout Plain Layout
4688 include
4689 \end_layout
4690
4691 \end_inset
4692
4693  another file
4694 \end_layout
4695
4696 \begin_layout Itemize
4697 \begin_inset Flex Code
4698 status collapsed
4699
4700 \begin_layout Plain Layout
4701
4702 \backslash
4703 kprog program
4704 \end_layout
4705
4706 \end_inset
4707
4708
4709 \emph on
4710
4711 \begin_inset space \hfill{}
4712 \end_inset
4713
4714
4715 \begin_inset Flex Code
4716 status collapsed
4717
4718 \begin_layout Plain Layout
4719 define
4720 \end_layout
4721
4722 \end_inset
4723
4724  an external keymap translation program 
4725 \end_layout
4726
4727 \begin_layout Standard
4728 Also,
4729  it should look into 
4730 \begin_inset Flex Code
4731 status collapsed
4732
4733 \begin_layout Plain Layout
4734 lyxrc
4735 \end_layout
4736
4737 \end_inset
4738
4739  file for defaults,
4740  too (for example,
4741  a 
4742 \begin_inset Flex Code
4743 status collapsed
4744
4745 \begin_layout Plain Layout
4746
4747 \backslash
4748 kinclude
4749 \end_layout
4750
4751 \end_inset
4752
4753  option to include default keyboard).
4754 \end_layout
4755
4756 \end_inset
4757
4758
4759 \end_layout
4760
4761 \begin_layout Section
4762 International Keymap Stuff
4763 \begin_inset CommandInset label
4764 LatexCommand label
4765 name "sec:International-Keymap-Stuff"
4766
4767 \end_inset
4768
4769
4770 \end_layout
4771
4772 \begin_layout Standard
4773 \begin_inset Note Note
4774 status open
4775
4776 \begin_layout Plain Layout
4777 In doing the revisions on this document in March 2008,
4778  I did not look over this stuff,
4779  as I do not understand it.
4780  It would be good if someone else could do so.
4781  (RH)
4782 \end_layout
4783
4784 \end_inset
4785
4786
4787 \end_layout
4788
4789 \begin_layout Standard
4790 The next two sections describe the 
4791 \begin_inset Flex Code
4792 status collapsed
4793
4794 \begin_layout Plain Layout
4795
4796 \shape up
4797 .kmap
4798 \end_layout
4799
4800 \end_inset
4801
4802  and 
4803 \begin_inset Flex Code
4804 status collapsed
4805
4806 \begin_layout Plain Layout
4807
4808 \shape up
4809 .cdef
4810 \end_layout
4811
4812 \end_inset
4813
4814  file syntax in detail.
4815  These sections should help you design your own key map if the ones provided do not meet your needs.
4816 \end_layout
4817
4818 \begin_layout Subsection
4819 The .kmap File
4820 \end_layout
4821
4822 \begin_layout Standard
4823
4824 \shape up
4825 .
4826 \begin_inset Flex Code
4827 status collapsed
4828
4829 \begin_layout Plain Layout
4830 kmap
4831 \end_layout
4832
4833 \end_inset
4834
4835  file maps keystrokes to characters or strings.
4836  As the name suggests,
4837  it sets a keyboard mapping.
4838  The 
4839 \begin_inset Flex Code
4840 status collapsed
4841
4842 \begin_layout Plain Layout
4843 .kmap
4844 \end_layout
4845
4846 \end_inset
4847
4848
4849 \shape default
4850  file keywords 
4851 \shape up
4852
4853 \begin_inset Flex Code
4854 status collapsed
4855
4856 \begin_layout Plain Layout
4857
4858 \shape up
4859 kmap
4860 \end_layout
4861
4862 \end_inset
4863
4864
4865 \shape default
4866 ,
4867
4868 \shape up
4869  
4870 \shape default
4871
4872 \begin_inset Flex Code
4873 status collapsed
4874
4875 \begin_layout Plain Layout
4876
4877 \shape up
4878 kmod
4879 \end_layout
4880
4881 \end_inset
4882
4883 ,
4884
4885 \shape up
4886  
4887 \shape default
4888
4889 \begin_inset Flex Code
4890 status collapsed
4891
4892 \begin_layout Plain Layout
4893
4894 \shape up
4895 kxmod
4896 \end_layout
4897
4898 \end_inset
4899
4900 ,
4901  and 
4902 \begin_inset Flex Code
4903 status collapsed
4904
4905 \begin_layout Plain Layout
4906
4907 \shape up
4908 kcomb
4909 \end_layout
4910
4911 \end_inset
4912
4913  are described in this section.
4914 \end_layout
4915
4916 \begin_layout Labeling
4917 \labelwidthstring 00.00.0000
4918 \begin_inset Flex Code
4919 status collapsed
4920
4921 \begin_layout Plain Layout
4922
4923 \shape up
4924 kmap
4925 \end_layout
4926
4927 \end_inset
4928
4929  Map a character to a string
4930 \end_layout
4931
4932 \begin_layout LyX-Code
4933
4934 \backslash
4935 kmap 
4936 \family roman
4937 \emph on
4938 char
4939 \family default
4940 \emph default
4941  
4942 \family roman
4943 \emph on
4944 string
4945 \end_layout
4946
4947 \begin_layout Standard
4948 This will ma
4949 \family roman
4950 p
4951 \family default
4952  
4953 \family roman
4954 \emph on
4955 char
4956 \family default
4957 \emph default
4958  
4959 \family roman
4960 to
4961 \family default
4962  
4963 \family roman
4964 \emph on
4965 string
4966 \emph default
4967 .
4968  Note that in
4969 \family default
4970  
4971 \family roman
4972 \emph on
4973 string
4974 \emph default
4975 ,
4976
4977 \family default
4978  
4979 \family roman
4980 \shape up
4981 the double-quote (")
4982 \family default
4983 \shape default
4984  
4985 \family roman
4986 and
4987 \family default
4988  
4989 \family roman
4990 \shape up
4991 the backslash (
4992 \backslash
4993 )
4994 \family default
4995 \shape default
4996  
4997 \family roman
4998 must be escaped with a preceding backslash (
4999 \shape up
5000
5001 \backslash
5002
5003 \shape default
5004 )
5005 \family default
5006 .
5007 \end_layout
5008
5009 \begin_layout Standard
5010 An example of a 
5011 \begin_inset Flex Noun
5012 status collapsed
5013
5014 \begin_layout Plain Layout
5015
5016 \shape up
5017 kmap
5018 \end_layout
5019
5020 \end_inset
5021
5022  statement to cause the symbol 
5023 \begin_inset Flex Noun
5024 status collapsed
5025
5026 \begin_layout Plain Layout
5027
5028 \shape up
5029 /
5030 \end_layout
5031
5032 \end_inset
5033
5034  to be output for the keystroke 
5035 \begin_inset Flex Noun
5036 status collapsed
5037
5038 \begin_layout Plain Layout
5039
5040 \shape up
5041 &
5042 \end_layout
5043
5044 \end_inset
5045
5046  is:
5047 \end_layout
5048
5049 \begin_layout LyX-Code
5050
5051 \backslash
5052 kmap & /
5053 \end_layout
5054
5055 \begin_layout Labeling
5056 \labelwidthstring 00.00.0000
5057 \begin_inset Flex Code
5058 status collapsed
5059
5060 \begin_layout Plain Layout
5061
5062 \shape up
5063 kmod
5064 \end_layout
5065
5066 \end_inset
5067
5068  Specify an accent character
5069 \end_layout
5070
5071 \begin_layout LyX-Code
5072
5073 \backslash
5074 kmod 
5075 \family roman
5076 \emph on
5077 char accent allowed
5078 \end_layout
5079
5080 \begin_layout Standard
5081 This will make the cha
5082 \family roman
5083 racter
5084 \family default
5085  
5086 \family roman
5087 \emph on
5088 char
5089 \family default
5090 \emph default
5091  
5092 \family roman
5093 \shape up
5094 \emph on
5095 be an accent
5096 \family default
5097 \shape default
5098 \emph default
5099  
5100 \family roman
5101 \shape up
5102 on the
5103 \family default
5104 \shape default
5105  
5106 \family roman
5107 \shape up
5108 \emph on
5109 allowed
5110 \family default
5111 \shape default
5112 \emph default
5113  
5114 \family roman
5115 \shape up
5116 cha
5117 \family default
5118 racter(s).
5119  This is the dead key
5120 \begin_inset Foot
5121 status collapsed
5122
5123 \begin_layout Plain Layout
5124 The term 
5125 \family roman
5126 \emph on
5127 dead key
5128 \family default
5129 \emph default
5130  refers to a key that does not produce a character by itself,
5131  but when followed with another key,
5132  produces the desired accent character.
5133  For example,
5134  a German characte
5135 \family roman
5136 r with an umlaut like
5137 \family default
5138  
5139 \family roman
5140 \emph on
5141 ä
5142 \family default
5143 \emph default
5144  
5145 \family roman
5146 can be produced in this manner.
5147 \end_layout
5148
5149 \end_inset
5150
5151  mechanism.
5152  
5153 \end_layout
5154
5155 \begin_layout Standard
5156 If you 
5157 \family roman
5158 hit
5159 \family default
5160  
5161 \family roman
5162 \emph on
5163 char
5164 \family default
5165 \emph default
5166  
5167 \family roman
5168 and then another key not in
5169 \family default
5170  
5171 \family roman
5172 \emph on
5173 allowed
5174 \emph default
5175 ,
5176  you will get a
5177 \family default
5178  
5179 \family roman
5180 \emph on
5181 char
5182 \family default
5183 \emph default
5184  
5185 \family roman
5186 followed by the other,
5187  not allowed key,
5188  as output.
5189
5190 \family default
5191  Note that a 
5192 \begin_inset Flex Noun
5193 status collapsed
5194
5195 \begin_layout Plain Layout
5196
5197 \shape up
5198 Backspace
5199 \end_layout
5200
5201 \end_inset
5202
5203  cancels a dead key,
5204  so if 
5205 \family roman
5206 you hit
5207 \family default
5208  
5209 \family roman
5210 \emph on
5211 char
5212 \family default
5213 \emph default
5214  
5215 \begin_inset Flex Noun
5216 status collapsed
5217
5218 \begin_layout Plain Layout
5219
5220 \shape up
5221 \emph on
5222 Backspace
5223 \end_layout
5224
5225 \end_inset
5226
5227 ,
5228  the cursor will not go one position backwards but will instead cancel the effect t
5229 \family roman
5230 hat
5231 \family default
5232  
5233 \family roman
5234 \shape up
5235 \emph on
5236 char
5237 \family default
5238 \shape default
5239 \emph default
5240  
5241 \family roman
5242 \shape up
5243 might have had on the next keystroke.
5244  
5245 \end_layout
5246
5247 \begin_layout Standard
5248 The following example specifies that the character ' is to be an acute accent,
5249  allowed on the characters a,
5250  e,
5251  i,
5252  o,
5253  u,
5254  A,
5255  E,
5256  I,
5257  O,
5258  and U:
5259 \end_layout
5260
5261 \begin_layout LyX-Code
5262
5263 \backslash
5264 kmod ' acute aeiouAEIOU
5265 \end_layout
5266
5267 \begin_layout Labeling
5268 \labelwidthstring 00.00.0000
5269 \begin_inset Flex Code
5270 status collapsed
5271
5272 \begin_layout Plain Layout
5273 kxmod
5274 \end_layout
5275
5276 \end_inset
5277
5278  Specify an exception to the accent character
5279 \end_layout
5280
5281 \begin_layout LyX-Code
5282
5283 \backslash
5284 kxmod  
5285 \family roman
5286 \emph on
5287 accent char result
5288 \end_layout
5289
5290 \begin_layout Standard
5291 This defines an exce
5292 \family roman
5293 ption for
5294 \family default
5295  
5296 \family roman
5297 \emph on
5298 accent
5299 \family default
5300 \emph default
5301  
5302 \family roman
5303 on
5304 \family default
5305  
5306 \family roman
5307 \emph on
5308 char
5309 \emph default
5310 .
5311  T
5312 \shape up
5313 he
5314 \family default
5315 \shape default
5316  
5317 \family roman
5318 \shape up
5319 \emph on
5320 accent
5321 \family default
5322 \shape default
5323 \emph default
5324  
5325 \family roman
5326 \shape up
5327 must
5328 \family default
5329 \shape default
5330  
5331 \shape up
5332 have been assigned a keystroke with a previous
5333 \shape default
5334  
5335 \begin_inset Flex Code
5336 status collapsed
5337
5338 \begin_layout Plain Layout
5339
5340 \shape up
5341
5342 \backslash
5343 kmo
5344 \shape default
5345 d
5346 \end_layout
5347
5348 \end_inset
5349
5350  declar
5351 \family roman
5352 ation and
5353 \family default
5354  
5355 \family roman
5356 \emph on
5357 char
5358 \family default
5359 \emph default
5360  
5361 \family roman
5362 must not belong in the
5363 \family default
5364  
5365 \family roman
5366 \emph on
5367 allowed
5368 \family default
5369 \emph default
5370  
5371 \family roman
5372 set of
5373 \family default
5374  
5375 \family roman
5376 \emph on
5377 accent
5378 \emph default
5379 .
5380  When
5381 \family default
5382  
5383 \family roman
5384 \shape up
5385 you enter the
5386 \family default
5387 \shape default
5388  
5389 \family roman
5390 \shape up
5391 \emph on
5392 accent char
5393 \family default
5394 \shape default
5395 \emph default
5396  
5397 \family roman
5398 \shape up
5399 sequence,
5400
5401 \family default
5402 \shape default
5403  
5404 \family roman
5405 \shape up
5406 \emph on
5407 result
5408 \emph default
5409  is produced.
5410  If such a declaration does not exist in
5411 \family default
5412 \shape default
5413  
5414 \shape up
5415 the
5416 \shape default
5417  
5418 \begin_inset Flex Code
5419 status collapsed
5420
5421 \begin_layout Plain Layout
5422
5423 \shape up
5424 .kmap
5425 \end_layout
5426
5427 \end_inset
5428
5429  file and yo
5430 \family roman
5431 u enter
5432 \family default
5433  
5434 \family roman
5435 \emph on
5436 accent char
5437 \emph default
5438 ,
5439  you get
5440 \family default
5441  
5442 \family roman
5443 \emph on
5444 accent_key char
5445 \emph default
5446  where
5447 \family default
5448  
5449 \family roman
5450 \emph on
5451 accent_key
5452 \emph default
5453  is the first arg
5454 \family default
5455 ument of the 
5456 \begin_inset Flex Code
5457 status collapsed
5458
5459 \begin_layout Plain Layout
5460
5461 \shape up
5462
5463 \backslash
5464 kmod
5465 \end_layout
5466
5467 \end_inset
5468
5469  declaration.
5470  
5471 \end_layout
5472
5473 \begin_layout Standard
5474 The following command produces causes äi to be produced when you enter acute-i ('i):
5475 \end_layout
5476
5477 \begin_layout LyX-Code
5478
5479 \backslash
5480 kxmod acute i "
5481 \backslash
5482
5483 \backslash
5484 '{
5485 \backslash
5486
5487 \backslash
5488 i}"
5489 \end_layout
5490
5491 \begin_layout Labeling
5492 \labelwidthstring 00.00.0000
5493 \begin_inset Flex Code
5494 status collapsed
5495
5496 \begin_layout Plain Layout
5497 kcomb
5498 \end_layout
5499
5500 \end_inset
5501
5502  Combine two accent characters
5503 \end_layout
5504
5505 \begin_layout LyX-Code
5506
5507 \backslash
5508 kcomb 
5509 \family roman
5510 \emph on
5511 accent1 accent2 allowed
5512 \end_layout
5513
5514 \begin_layout Standard
5515 This one is getting pretty esoteric.
5516  It allows you to combine the effect 
5517 \family roman
5518 of
5519 \family default
5520  
5521 \family roman
5522 \emph on
5523 accent1
5524 \family default
5525 \emph default
5526  
5527 \family roman
5528 and
5529 \family default
5530  
5531 \family roman
5532 \emph on
5533 accent2
5534 \family default
5535 \emph default
5536  
5537 \family roman
5538 (in that order!) on
5539 \family default
5540  
5541 \family roman
5542 \emph on
5543 allowed
5544 \family default
5545 \emph default
5546  
5547 \family roman
5548 chars.
5549  The keystrokes for
5550 \family default
5551  
5552 \family roman
5553 \emph on
5554 accent1
5555 \family default
5556 \emph default
5557  
5558 \family roman
5559 and
5560 \family default
5561  
5562 \family roman
5563 \emph on
5564 accent2
5565 \family default
5566 \emph default
5567  
5568 \family roman
5569 must have be
5570 \family default
5571 en set with a 
5572 \begin_inset Flex Code
5573 status collapsed
5574
5575 \begin_layout Plain Layout
5576
5577 \shape up
5578
5579 \backslash
5580 kmod
5581 \end_layout
5582
5583 \end_inset
5584
5585  command at 
5586 \family roman
5587 a
5588 \family default
5589  
5590 \family roman
5591 \emph on
5592 previous
5593 \family default
5594 \emph default
5595  
5596 \family roman
5597 point in the
5598 \family default
5599  file.
5600  
5601 \end_layout
5602
5603 \begin_layout Standard
5604 Consider this example from the 
5605 \begin_inset Flex Code
5606 status collapsed
5607
5608 \begin_layout Plain Layout
5609
5610 \shape up
5611 greek.kmap
5612 \end_layout
5613
5614 \end_inset
5615
5616  file:
5617 \end_layout
5618
5619 \begin_layout LyX-Code
5620
5621 \backslash
5622 kmod ;
5623  acute aeioyvhAEIOYVH 
5624 \backslash
5625 kmod :
5626  umlaut iyIY 
5627 \backslash
5628 kcomb acute umlaut iyIY
5629 \end_layout
5630
5631 \begin_layout Standard
5632 This allows you to press 
5633 \begin_inset Flex Noun
5634 status collapsed
5635
5636 \begin_layout Plain Layout
5637
5638 \shape up
5639 ;:i
5640 \end_layout
5641
5642 \end_inset
5643
5644  and get the effect of 
5645 \begin_inset Flex Code
5646 status collapsed
5647
5648 \begin_layout Plain Layout
5649
5650 \shape up
5651
5652 \backslash
5653 '{
5654 \backslash
5655 "{i}}
5656 \end_layout
5657
5658 \end_inset
5659
5660 .
5661  
5662 \family roman
5663 \shape up
5664 A backspace
5665 \family default
5666 \shape default
5667  in this case cancels the last dead key,
5668  so if you press 
5669 \begin_inset Flex Noun
5670 status collapsed
5671
5672 \begin_layout Plain Layout
5673
5674 \shape up
5675 ;:
5676  Backspace i
5677 \end_layout
5678
5679 \end_inset
5680
5681  you get 
5682 \begin_inset Flex Code
5683 status collapsed
5684
5685 \begin_layout Plain Layout
5686
5687 \shape up
5688
5689 \backslash
5690 '{i}
5691 \end_layout
5692
5693 \end_inset
5694
5695 .
5696 \end_layout
5697
5698 \begin_layout Subsection
5699 The .cdef File
5700 \end_layout
5701
5702 \begin_layout Standard
5703 After the 
5704 \begin_inset Flex Code
5705 status collapsed
5706
5707 \begin_layout Plain Layout
5708
5709 \shape up
5710 .kmap
5711 \end_layout
5712
5713 \end_inset
5714
5715  mapping is performed,
5716  a 
5717 \begin_inset Flex Code
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721
5722 \shape up
5723 .cde
5724 \shape default
5725 f
5726 \end_layout
5727
5728 \end_inset
5729
5730  file maps the strings that the symbols generate to characters in the current font.
5731  The \SpecialChar LyX
5732  distribution currently includes at least the 
5733 \begin_inset Flex Code
5734 status collapsed
5735
5736 \begin_layout Plain Layout
5737
5738 \shape up
5739 iso8859-1.cdef
5740 \end_layout
5741
5742 \end_inset
5743
5744  and 
5745 \begin_inset Flex Code
5746 status collapsed
5747
5748 \begin_layout Plain Layout
5749
5750 \shape up
5751 iso8859-2.cdef
5752 \end_layout
5753
5754 \end_inset
5755
5756  files.
5757 \end_layout
5758
5759 \begin_layout Standard
5760 In general the 
5761 \begin_inset Flex Code
5762 status collapsed
5763
5764 \begin_layout Plain Layout
5765
5766 \shape up
5767 .cdef
5768 \end_layout
5769
5770 \end_inset
5771
5772  file is a sequence of declarations of the form
5773 \end_layout
5774
5775 \begin_layout LyX-Code
5776
5777 \family roman
5778 \emph on
5779 char_index_in_set
5780 \family default
5781 \emph default
5782  
5783 \family roman
5784 \emph on
5785  string
5786 \end_layout
5787
5788 \begin_layout Standard
5789 For example,
5790  in order to map 
5791 \begin_inset Flex Noun
5792 status collapsed
5793
5794 \begin_layout Plain Layout
5795
5796 \shape up
5797
5798 \backslash
5799 '{e}
5800 \end_layout
5801
5802 \end_inset
5803
5804  to the corresponding character in the iso-8859-1 set (233),
5805  the following declaration is used
5806 \end_layout
5807
5808 \begin_layout LyX-Code
5809 233 "
5810 \backslash
5811
5812 \backslash
5813 '{e}"
5814 \end_layout
5815
5816 \begin_layout Standard
5817 with 
5818 \begin_inset Flex Code
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822
5823 \backslash
5824
5825 \end_layout
5826
5827 \end_inset
5828
5829  and 
5830 \begin_inset Flex Code
5831 status collapsed
5832
5833 \begin_layout Plain Layout
5834 "
5835 \end_layout
5836
5837 \end_inset
5838
5839  being escap
5840 \family roman
5841 ed in
5842 \family default
5843  
5844 \family roman
5845 \emph on
5846 string
5847 \emph default
5848 .
5849  Note that
5850 \family default
5851  the same character can apply to more than one string.
5852  In the 
5853 \begin_inset Flex Code
5854 status collapsed
5855
5856 \begin_layout Plain Layout
5857 i
5858 \shape up
5859 so-8859-7.cdef
5860 \end_layout
5861
5862 \end_inset
5863
5864  file you have
5865 \end_layout
5866
5867 \begin_layout LyX-Code
5868 192 "
5869 \backslash
5870
5871 \backslash
5872 '{
5873 \backslash
5874
5875 \backslash
5876
5877 \backslash
5878 "{i}}"
5879 \begin_inset Newline newline
5880 \end_inset
5881
5882 192 "
5883 \backslash
5884
5885 \backslash
5886
5887 \backslash
5888 "{
5889 \backslash
5890
5891 \backslash
5892 '{i}}"
5893 \end_layout
5894
5895 \begin_layout Standard
5896 If \SpecialChar LyX
5897  cannot find a mapping for the string produced by the keystroke or a deadkey sequence,
5898  it will check if it looks like an accented char and try to draw an accent over the character on screen.
5899 \end_layout
5900
5901 \begin_layout Subsection
5902 Dead Keys
5903 \end_layout
5904
5905 \begin_layout Standard
5906 There is a second way to add support for international characters through so-called dead-keys.
5907  A dead-key works in combination with a letter to produce an accented character.
5908  Here,
5909  we'll explain how to create a really simple dead-key to illustrate how they work.
5910 \end_layout
5911
5912 \begin_layout Standard
5913 Suppose you happen to need the circumflex character,
5914  
5915 \begin_inset Quotes eld
5916 \end_inset
5917
5918  ̂
5919 \begin_inset Quotes erd
5920 \end_inset
5921
5922 .
5923  You could bind the 
5924 \begin_inset Flex Noun
5925 status collapsed
5926
5927 \begin_layout Plain Layout
5928 ^
5929 \end_layout
5930
5931 \end_inset
5932
5933 -key [a.k.a.
5934 \begin_inset space ~
5935 \end_inset
5936
5937
5938 \begin_inset Flex Noun
5939 status collapsed
5940
5941 \begin_layout Plain Layout
5942 Shift-6
5943 \end_layout
5944
5945 \end_inset
5946
5947 ] to the \SpecialChar LyX
5948  command 
5949 \begin_inset Flex Code
5950 status collapsed
5951
5952 \begin_layout Plain Layout
5953 accent-circumflex
5954 \end_layout
5955
5956 \end_inset
5957
5958  in your 
5959 \begin_inset Flex Code
5960 status collapsed
5961
5962 \begin_layout Plain Layout
5963 lyxrc
5964 \end_layout
5965
5966 \end_inset
5967
5968  file.
5969  Now,
5970  whenever you type the 
5971 \begin_inset Flex Noun
5972 status collapsed
5973
5974 \begin_layout Plain Layout
5975 ^
5976 \end_layout
5977
5978 \end_inset
5979
5980 -key followed by a letter,
5981  that letter will have a circumflex accent on it.
5982  For example,
5983  the sequence 
5984 \begin_inset Quotes eld
5985 \end_inset
5986
5987
5988 \begin_inset Flex Noun
5989 status collapsed
5990
5991 \begin_layout Plain Layout
5992 ^e
5993 \end_layout
5994
5995 \end_inset
5996
5997
5998 \begin_inset Quotes erd
5999 \end_inset
6000
6001  produces the letter:
6002  
6003 \begin_inset Quotes eld
6004 \end_inset
6005
6006 ê
6007 \begin_inset Quotes erd
6008 \end_inset
6009
6010 .
6011  If you tried to type 
6012 \begin_inset Quotes eld
6013 \end_inset
6014
6015
6016 \begin_inset Flex Noun
6017 status collapsed
6018
6019 \begin_layout Plain Layout
6020 ^t
6021 \end_layout
6022
6023 \end_inset
6024
6025
6026 \begin_inset Quotes erd
6027 \end_inset
6028
6029 ,
6030  however,
6031  \SpecialChar LyX
6032  will complain with a beep,
6033  since a 
6034 \begin_inset Quotes eld
6035 \end_inset
6036
6037
6038 \begin_inset Flex Noun
6039 status collapsed
6040
6041 \begin_layout Plain Layout
6042 t
6043 \end_layout
6044
6045 \end_inset
6046
6047
6048 \begin_inset Quotes erd
6049 \end_inset
6050
6051  never takes a circumflex accent.
6052  Hitting 
6053 \begin_inset Flex Noun
6054 status collapsed
6055
6056 \begin_layout Plain Layout
6057 Space
6058 \end_layout
6059
6060 \end_inset
6061
6062  after a dead-key produces the bare-accent.
6063  Please note this last point!
6064  If you bind a key to a dead-key,
6065  you'll need to rebind the character on that key to yet another key.
6066  Binding the 
6067 \begin_inset Flex Noun
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 ,-key
6072 \end_layout
6073
6074 \end_inset
6075
6076  to a cedilla is a bad idea,
6077  since you'll only get cedillas instead of commas.
6078 \end_layout
6079
6080 \begin_layout Standard
6081 One common way to bind dead-keys is to use 
6082 \begin_inset Flex Noun
6083 status collapsed
6084
6085 \begin_layout Plain Layout
6086 Meta-
6087 \end_layout
6088
6089 \end_inset
6090
6091 ,
6092  
6093 \begin_inset Flex Noun
6094 status collapsed
6095
6096 \begin_layout Plain Layout
6097 Ctrl-
6098 \end_layout
6099
6100 \end_inset
6101
6102 ,
6103  and 
6104 \begin_inset Flex Noun
6105 status collapsed
6106
6107 \begin_layout Plain Layout
6108 Shift-
6109 \end_layout
6110
6111 \end_inset
6112
6113  in combination with an accent,
6114  like 
6115 \begin_inset Quotes eld
6116 \end_inset
6117
6118
6119 \begin_inset Flex Noun
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 ~
6124 \end_layout
6125
6126 \end_inset
6127
6128
6129 \begin_inset Quotes erd
6130 \end_inset
6131
6132  or 
6133 \begin_inset Quotes eld
6134 \end_inset
6135
6136
6137 \begin_inset Flex Noun
6138 status collapsed
6139
6140 \begin_layout Plain Layout
6141 ,
6142 \end_layout
6143
6144 \end_inset
6145
6146
6147 \begin_inset Quotes erd
6148 \end_inset
6149
6150  or 
6151 \begin_inset Quotes eld
6152 \end_inset
6153
6154
6155 \begin_inset Flex Noun
6156 status collapsed
6157
6158 \begin_layout Plain Layout
6159 ^
6160 \end_layout
6161
6162 \end_inset
6163
6164
6165 \begin_inset Quotes erd
6166 \end_inset
6167
6168 .
6169  Another way involves using 
6170 \begin_inset Flex Code
6171 status collapsed
6172
6173 \begin_layout Plain Layout
6174 xmodmap
6175 \end_layout
6176
6177 \end_inset
6178
6179  and 
6180 \begin_inset Flex Code
6181 status collapsed
6182
6183 \begin_layout Plain Layout
6184 xkeycaps
6185 \end_layout
6186
6187 \end_inset
6188
6189  to set up the special 
6190 \begin_inset Flex Code
6191 status collapsed
6192
6193 \begin_layout Plain Layout
6194 Mode_Switch
6195 \end_layout
6196
6197 \end_inset
6198
6199  key.
6200  The 
6201 \begin_inset Flex Code
6202 status collapsed
6203
6204 \begin_layout Plain Layout
6205 Mode_Switch
6206 \end_layout
6207
6208 \end_inset
6209
6210  acts in some ways just like 
6211 \begin_inset Flex Noun
6212 status collapsed
6213
6214 \begin_layout Plain Layout
6215 Shift
6216 \end_layout
6217
6218 \end_inset
6219
6220  and permits you to bind keys to accented characters.
6221  You can also turn keys into dead-keys by binding them to something like 
6222 \begin_inset Flex Code
6223 status collapsed
6224
6225 \begin_layout Plain Layout
6226 usldead_cedilla
6227 \end_layout
6228
6229 \end_inset
6230
6231  and then binding this symbolic key to the corresponding \SpecialChar LyX
6232  command.
6233 \begin_inset Foot
6234 status collapsed
6235
6236 \begin_layout Plain Layout
6237 Note from 
6238 \noun on
6239 John Weiss
6240 \noun default
6241 :
6242  This is exactly what I do in my 
6243 \begin_inset Flex Code
6244 status collapsed
6245
6246 \begin_layout Plain Layout
6247 ~/.lyx/lyxrc
6248 \end_layout
6249
6250 \end_inset
6251
6252  and my 
6253 \begin_inset Flex Code
6254 status collapsed
6255
6256 \begin_layout Plain Layout
6257 ~/.xmodmap
6258 \end_layout
6259
6260 \end_inset
6261
6262  files.
6263  I have my 
6264 \begin_inset Flex Noun
6265 status collapsed
6266
6267 \begin_layout Plain Layout
6268 Scroll
6269 \begin_inset space ~
6270 \end_inset
6271
6272 Lock
6273 \end_layout
6274
6275 \end_inset
6276
6277  key set up as 
6278 \begin_inset Flex Code
6279 status collapsed
6280
6281 \begin_layout Plain Layout
6282 Mode_Shift
6283 \end_layout
6284
6285 \end_inset
6286
6287  and a bunch of these 
6288 \begin_inset Quotes eld
6289 \end_inset
6290
6291
6292 \begin_inset Flex Code
6293 status collapsed
6294
6295 \begin_layout Plain Layout
6296 usldead_*
6297 \end_layout
6298
6299 \end_inset
6300
6301
6302 \begin_inset Quotes erd
6303 \end_inset
6304
6305  symbolic keys bound such things as 
6306 \begin_inset Flex Noun
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 Scroll
6311 \begin_inset space ~
6312 \end_inset
6313
6314 Lock-^
6315 \end_layout
6316
6317 \end_inset
6318
6319  and 
6320 \begin_inset Flex Noun
6321 status collapsed
6322
6323 \begin_layout Plain Layout
6324 Scroll
6325 \begin_inset space ~
6326 \end_inset
6327
6328 Lock-~
6329 \end_layout
6330
6331 \end_inset
6332
6333 .
6334  This is how I produce my accented characters.
6335 \end_layout
6336
6337 \end_inset
6338
6339  You can make just about anything into the 
6340 \begin_inset Flex Code
6341 status collapsed
6342
6343 \begin_layout Plain Layout
6344 Mode_Switch
6345 \end_layout
6346
6347 \end_inset
6348
6349  key:
6350  One of the 
6351 \begin_inset Flex Noun
6352 status collapsed
6353
6354 \begin_layout Plain Layout
6355 Ctrl-
6356 \end_layout
6357
6358 \end_inset
6359
6360  keys,
6361  a spare function key,
6362  etc.
6363  As for the \SpecialChar LyX
6364  commands that produce accents,
6365  check the entry for 
6366 \begin_inset Flex Code
6367 status collapsed
6368
6369 \begin_layout Plain Layout
6370 accent-acute
6371 \end_layout
6372
6373 \end_inset
6374
6375  in the 
6376 \emph on
6377 Reference Manual
6378 \emph default
6379 .
6380  You'll find the complete list there.
6381 \end_layout
6382
6383 \begin_layout Subsection
6384 Saving your Language Configuration
6385 \end_layout
6386
6387 \begin_layout Standard
6388 You can edit your preferences so that your desired language environment is automatically configured when \SpecialChar LyX
6389  starts up,
6390  via the 
6391 \begin_inset Flex Noun
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 Edit\SpecialChar menuseparator
6396 Preferences
6397 \end_layout
6398
6399 \end_inset
6400
6401  dialog.
6402 \end_layout
6403
6404 \begin_layout Chapter
6405
6406 \change_inserted -584632292 1610232084
6407 Creating and 
6408 \change_unchanged
6409 Installing New Document Classes,
6410  Layouts,
6411  and Templates
6412 \begin_inset CommandInset label
6413 LatexCommand label
6414 name "cha:Installing-New-Document"
6415
6416 \end_inset
6417
6418
6419 \begin_inset Argument 1
6420 status collapsed
6421
6422 \begin_layout Plain Layout
6423 Installing New Document Classes
6424 \end_layout
6425
6426 \end_inset
6427
6428
6429 \end_layout
6430
6431 \begin_layout Standard
6432 In this chapter,
6433  we describe the procedures for creating and installing new \SpecialChar LyX
6434  layout and template files,
6435  as well as offer a refresher on correctly installing new \SpecialChar LaTeX
6436  document classes.
6437  
6438 \end_layout
6439
6440 \begin_layout Standard
6441 First,
6442  let us a say a few words about how one ought to think about the relation between \SpecialChar LyX
6443  and \SpecialChar LaTeX
6444 .
6445  The thing to understand is that,
6446  in a certain sense,
6447  \SpecialChar LyX
6448  doesn't know anything about \SpecialChar LaTeX
6449 .
6450  Indeed,
6451  from \SpecialChar LyX
6452 's point of view,
6453  \SpecialChar LaTeX
6454  is just one of several 
6455 \begin_inset Quotes eld
6456 \end_inset
6457
6458 backend formats
6459 \begin_inset Quotes erd
6460 \end_inset
6461
6462  in which it is capable of producing output.
6463  Other such formats are DocBook,
6464  plaintext,
6465  and XHTML.
6466  \SpecialChar LaTeX
6467  is,
6468  of course,
6469  a particularly important format,
6470  but very little of the information \SpecialChar LyX
6471  has about \SpecialChar LaTeX
6472  is actually contained in the program itself.
6473 \begin_inset Foot
6474 status collapsed
6475
6476 \begin_layout Plain Layout
6477 Some commands are sufficiently complex that they are 
6478 \begin_inset Quotes eld
6479 \end_inset
6480
6481 hardcoded
6482 \begin_inset Quotes erd
6483 \end_inset
6484
6485  into \SpecialChar LyX
6486 .
6487  But the developers generally regard this as a Bad Thing.
6488 \end_layout
6489
6490 \end_inset
6491
6492  Rather,
6493  that information,
6494  even for the standard classes like 
6495 \begin_inset Flex Code
6496 status collapsed
6497
6498 \begin_layout Plain Layout
6499 article.cls
6500 \end_layout
6501
6502 \end_inset
6503
6504 ,
6505  is contained in `layout files'.
6506  Similarly,
6507  \SpecialChar LyX
6508  itself does not know much about DocBook or XHTML.
6509  What it knows is contained in layout files.
6510 \end_layout
6511
6512 \begin_layout Standard
6513 You can think of the layout file for a given document class as a translation manual between \SpecialChar LyX
6514  constructs—
6515 paragraphs with their corresponding styles,
6516  certain sorts of insets,
6517  etc—
6518 and the corresponding \SpecialChar LaTeX
6519 ,
6520  DocBook,
6521  or XHTML constructs.
6522  Almost everything \SpecialChar LyX
6523  knows about 
6524 \begin_inset Flex Code
6525 status collapsed
6526
6527 \begin_layout Plain Layout
6528 article.cls
6529 \end_layout
6530
6531 \end_inset
6532
6533 ,
6534  for example,
6535  is contained in the file 
6536 \begin_inset Flex Code
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 article.layout
6541 \end_layout
6542
6543 \end_inset
6544
6545  and in various other files it includes.
6546  For this reason,
6547  anyone intending to write layout files should plan to study the existing files.
6548  A good place to start is with 
6549 \begin_inset Flex Code
6550 status collapsed
6551
6552 \begin_layout Plain Layout
6553 stdsections.inc
6554 \end_layout
6555
6556 \end_inset
6557
6558 ,
6559  which is included in 
6560 \begin_inset Flex Code
6561 status collapsed
6562
6563 \begin_layout Plain Layout
6564 article.layout
6565 \end_layout
6566
6567 \end_inset
6568
6569 ,
6570  
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575 book.layout
6576 \end_layout
6577
6578 \end_inset
6579
6580 ,
6581  and many of the other layout files for document classes.
6582  This file is where sections and the like are defined:
6583  
6584 \begin_inset Flex Code
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 stdsections.inc
6589 \end_layout
6590
6591 \end_inset
6592
6593  tells \SpecialChar LyX
6594  how paragraphs that are marked with the Section,
6595  Subsection,
6596  etc,
6597  styles can be translated into corresponding \SpecialChar LaTeX
6598 ,
6599  DocBook,
6600  and XHTML commands and tags.
6601  The 
6602 \begin_inset Flex Code
6603 status collapsed
6604
6605 \begin_layout Plain Layout
6606 article.layout
6607 \end_layout
6608
6609 \end_inset
6610
6611  file basically just includes several of these 
6612 \begin_inset Flex Code
6613 status collapsed
6614
6615 \begin_layout Plain Layout
6616 std*.inc
6617 \end_layout
6618
6619 \end_inset
6620
6621  files.
6622 \end_layout
6623
6624 \begin_layout Standard
6625 Defining the \SpecialChar LyX
6626 –\SpecialChar LaTeX
6627  correspondence is not the only thing layout files do,
6628  though.
6629  Their other job is to define how the \SpecialChar LyX
6630  constructs themselves will appear on-screen.
6631  The fact that layout files have these two jobs is often a source of confusion,
6632  because they are completely separate.
6633  Telling \SpecialChar LyX
6634  how to translate a certain paragraph style into \SpecialChar LaTeX
6635  does not tell \SpecialChar LyX
6636  how to display it;
6637  conversely,
6638  telling \SpecialChar LyX
6639  how to display a certain paragraph style does not tell \SpecialChar LyX
6640  how to translate it into \SpecialChar LaTeX
6641  (let alone tell \SpecialChar LaTeX
6642  how to display it).
6643  So,
6644  in general,
6645  when you define a new \SpecialChar LyX
6646  construct,
6647  you must always do two quite separate things:
6648  (i)
6649 \begin_inset space ~
6650 \end_inset
6651
6652 tell \SpecialChar LyX
6653  how to translate it into \SpecialChar LaTeX
6654  and (ii)
6655 \begin_inset space ~
6656 \end_inset
6657
6658 tell \SpecialChar LyX
6659  how to display it.
6660 \end_layout
6661
6662 \begin_layout Standard
6663 Much the same is true,
6664  of course,
6665  as regards \SpecialChar LyX
6666 's other backend formats,
6667  though XHTML is in some ways different,
6668  because in that case \SpecialChar LyX
6669  
6670 \emph on
6671 is
6672 \emph default
6673  able,
6674  to some extent,
6675  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.
6676  Even in this case,
6677  however,
6678  the distinction between what \SpecialChar LyX
6679  does internally and how things are rendered externally remains in force,
6680  and the two can be controlled separately.
6681  See 
6682 \begin_inset CommandInset ref
6683 LatexCommand ref
6684 reference "sec:Tags-for-XHTML"
6685 nolink "false"
6686
6687 \end_inset
6688
6689  for the details.
6690 \end_layout
6691
6692 \begin_layout Section
6693 Installing new \SpecialChar LaTeX
6694  files
6695 \end_layout
6696
6697 \begin_layout Standard
6698 Some installations may not include a \SpecialChar LaTeX
6699  package or class file that you would like to use within \SpecialChar LyX
6700 .
6701  For example,
6702  you might need Foil\SpecialChar TeX
6703 ,
6704  a package for preparing slides for overhead projectors.
6705  Modern \SpecialChar LaTeX
6706  distributions like \SpecialChar TeX
6707 Live (2008 or newer) or MiK\SpecialChar TeX
6708  provide a user interface for installing such packages.
6709  For example,
6710  with MiK\SpecialChar TeX
6711 ,
6712  you start the program 
6713 \begin_inset Quotes eld
6714 \end_inset
6715
6716 Package
6717 \begin_inset space ~
6718 \end_inset
6719
6720 Manager
6721 \begin_inset Quotes erd
6722 \end_inset
6723
6724  to get a list of available packages.
6725  To install one of them,
6726  right click on it or use the corresponding toolbar button.
6727 \end_layout
6728
6729 \begin_layout Standard
6730 If your \SpecialChar LaTeX
6731  distribution does not provide such a `package manager',
6732  or if the package is not available from your distribution,
6733  then follow these steps to install it manually:
6734 \end_layout
6735
6736 \begin_layout Enumerate
6737 Get the package from 
6738 \begin_inset CommandInset href
6739 LatexCommand href
6740 name "CTAN"
6741 target "http://www.ctan.org/"
6742 literal "false"
6743
6744 \end_inset
6745
6746  or wherever.
6747 \end_layout
6748
6749 \begin_layout Enumerate
6750 If the package contains a file with the ending 
6751 \begin_inset Quotes eld
6752 \end_inset
6753
6754
6755 \begin_inset Flex Code
6756 status collapsed
6757
6758 \begin_layout Plain Layout
6759 .ins
6760 \end_layout
6761
6762 \end_inset
6763
6764
6765 \begin_inset Quotes erd
6766 \end_inset
6767
6768  (is the case for Foil\SpecialChar TeX
6769 ) then open a console,
6770  change to the folder of this file and execute the command 
6771 \begin_inset Flex Code
6772 status collapsed
6773
6774 \begin_layout Plain Layout
6775 latex foiltex.ins
6776 \end_layout
6777
6778 \end_inset
6779
6780 .
6781  You have now unpacked the package and have all files to install it.
6782  Most \SpecialChar LaTeX
6783 -packages are not packed and you can skip this step.
6784 \end_layout
6785
6786 \begin_layout Enumerate
6787 Now you need to decide if the package should be available for all users or only for you.
6788 \end_layout
6789
6790 \begin_deeper
6791 \begin_layout Enumerate
6792 On *nix systems (Linux,
6793  OSX,
6794  etc.),
6795  if you want the new package to be available for all users on your system,
6796  then install it in your `local' \SpecialChar TeX
6797  tree,
6798  otherwise install it in your own `user' \SpecialChar TeX
6799  tree.
6800  Where these trees should be created,
6801  if they do not already exist,
6802  depends on your system.
6803  To find this out,
6804  look in the file 
6805 \begin_inset Flex Code
6806 status collapsed
6807
6808 \begin_layout Plain Layout
6809 texmf.cnf
6810 \end_layout
6811
6812 \end_inset
6813
6814 .
6815 \begin_inset Foot
6816 status collapsed
6817
6818 \begin_layout Plain Layout
6819 This is usually in the directory 
6820 \begin_inset Flex Code
6821 status collapsed
6822
6823 \begin_layout Plain Layout
6824 $TEXMF/web2c
6825 \end_layout
6826
6827 \end_inset
6828
6829 ,
6830  though you can execute the command 
6831 \begin_inset Flex Code
6832 status collapsed
6833
6834 \begin_layout Plain Layout
6835 kpsewhich texmf.cnf
6836 \end_layout
6837
6838 \end_inset
6839
6840  to locate it.
6841 \end_layout
6842
6843 \end_inset
6844
6845  The location of the `local' \SpecialChar TeX
6846  tree is defined by the 
6847 \begin_inset Flex Code
6848 status collapsed
6849
6850 \begin_layout Plain Layout
6851 TEXMFLOCAL
6852 \end_layout
6853
6854 \end_inset
6855
6856  variable;
6857  this is usually somewhere like 
6858 \begin_inset Flex Code
6859 status collapsed
6860
6861 \begin_layout Plain Layout
6862 /usr/local/share/texmf
6863 \end_layout
6864
6865 \end_inset
6866
6867  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6868 Live distribution.
6869  The location of the `user' \SpecialChar TeX
6870  tree is defined by 
6871 \begin_inset Flex Code
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 TEXMFHOME
6876 \end_layout
6877
6878 \end_inset
6879
6880  and is commonly 
6881 \begin_inset Flex Code
6882 status collapsed
6883
6884 \begin_layout Plain Layout
6885 $HOME/texmf
6886 \end_layout
6887
6888 \end_inset
6889
6890  or 
6891 \begin_inset Flex Code
6892 status collapsed
6893
6894 \begin_layout Plain Layout
6895
6896 \family sans
6897 $HOME/.texliveXXXX
6898 \end_layout
6899
6900 \end_inset
6901
6902 .
6903  (If these variables are not predefined,
6904  you have to define them.) You'll probably need root permissions to create or modify the `local' tree,
6905  but not for your `user' tree.
6906 \begin_inset Newline newline
6907 \end_inset
6908
6909 In general,
6910  it is recommended to install in the user tree because your user will not be modified or even overwritten when you upgrade your system.
6911  It will typically also be backed up together with everything else when you backup your home directory (which,
6912  of course,
6913  you do on a regular basis).
6914 \end_layout
6915
6916 \begin_layout Enumerate
6917 On Windows,
6918  if you want the new package to be available for all users on your system,
6919  change to the folder where \SpecialChar LaTeX
6920  is installed and then change to the subfolder 
6921 \begin_inset Flex Code
6922 status collapsed
6923
6924 \begin_layout Plain Layout
6925 ~
6926 \backslash
6927 tex
6928 \backslash
6929 latex
6930 \end_layout
6931
6932 \end_inset
6933
6934 .
6935  (For MiK\SpecialChar TeX
6936 ,
6937  this would be by default the folder 
6938 \begin_inset Flex Code
6939 status collapsed
6940
6941 \begin_layout Plain Layout
6942 ~:
6943 \backslash
6944 Programs
6945 \backslash
6946 MiKTeX
6947 \backslash
6948 tex
6949 \backslash
6950 latex
6951 \end_layout
6952
6953 \end_inset
6954
6955 .)
6956 \begin_inset Foot
6957 status collapsed
6958
6959 \begin_layout Plain Layout
6960 Note that this will be the correct path only on English installations.
6961  On a German one,
6962  it would be 
6963 \begin_inset Flex Code
6964 status collapsed
6965
6966 \begin_layout Plain Layout
6967 ~:
6968 \backslash
6969 Programme
6970 \backslash
6971 MiKTeX
6972 \backslash
6973 tex
6974 \backslash
6975 latex
6976 \end_layout
6977
6978 \end_inset
6979
6980 ,
6981  and similarly for other languages.
6982 \end_layout
6983
6984 \end_inset
6985
6986  Create there a new folder 
6987 \begin_inset Flex Code
6988 status collapsed
6989
6990 \begin_layout Plain Layout
6991 foiltex
6992 \end_layout
6993
6994 \end_inset
6995
6996  and copy all files of the package into it.
6997  
6998 \begin_inset Newline newline
6999 \end_inset
7000
7001 If the package should only available for you or you don't have admin permissions,
7002  do the same,
7003  but in the local \SpecialChar LaTeX
7004  folder.
7005  E.
7006 \begin_inset space \thinspace{}
7007 \end_inset
7008
7009 g.,
7010  for MiK\SpecialChar TeX
7011
7012 \begin_inset space ~
7013 \end_inset
7014
7015 2.8 under Windows XP,
7016  this would be the folder:
7017 \begin_inset Newline newline
7018 \end_inset
7019
7020
7021 \family sans
7022
7023 \begin_inset Flex Code
7024 status collapsed
7025
7026 \begin_layout Plain Layout
7027 ~:
7028 \backslash
7029 Documents and Settings
7030 \backslash
7031 <username>
7032 \backslash
7033 Application Data
7034 \backslash
7035
7036 \end_layout
7037
7038 \end_inset
7039
7040
7041 \begin_inset Newline newline
7042 \end_inset
7043
7044
7045 \family default
7046
7047 \begin_inset Phantom HPhantom
7048 status open
7049
7050 \begin_layout Plain Layout
7051
7052 \family sans
7053 ~:
7054 \backslash
7055
7056 \end_layout
7057
7058 \end_inset
7059
7060
7061 \begin_inset Flex Code
7062 status collapsed
7063
7064 \begin_layout Plain Layout
7065 MiKTeX
7066 \backslash
7067 2.8
7068 \backslash
7069 tex
7070 \backslash
7071 latex
7072 \end_layout
7073
7074 \end_inset
7075
7076
7077 \begin_inset Newline newline
7078 \end_inset
7079
7080 On Vista,
7081  it would be:
7082 \begin_inset Newline newline
7083 \end_inset
7084
7085
7086 \begin_inset Flex Code
7087 status collapsed
7088
7089 \begin_layout Plain Layout
7090 ~:
7091 \backslash
7092 Users
7093 \backslash
7094 <username>
7095 \backslash
7096 AppData
7097 \backslash
7098 Roaming
7099 \backslash
7100 2.8
7101 \backslash
7102 MiKTeX
7103 \backslash
7104 tex
7105 \backslash
7106 latex
7107 \end_layout
7108
7109 \end_inset
7110
7111
7112 \end_layout
7113
7114 \end_deeper
7115 \begin_layout Enumerate
7116 Now one only need to tell \SpecialChar LaTeX
7117  that there are new files.
7118  This depends on the used \SpecialChar LaTeX
7119 -Distribution:
7120 \end_layout
7121
7122 \begin_deeper
7123 \begin_layout Enumerate
7124 For \SpecialChar TeX
7125 Live execute the command 
7126 \begin_inset Flex Code
7127 status collapsed
7128
7129 \begin_layout Plain Layout
7130 texhash
7131 \end_layout
7132
7133 \end_inset
7134
7135  from a console.
7136  If you installed the package for all users,
7137  then you will probably need to have root permissions for that.
7138 \end_layout
7139
7140 \begin_layout Enumerate
7141 For MiK\SpecialChar TeX
7142 ,
7143  if you have installed the package for all users,
7144  start the program 
7145 \begin_inset Quotes eld
7146 \end_inset
7147
7148 Settings
7149 \begin_inset space ~
7150 \end_inset
7151
7152 (Admin)
7153 \begin_inset Quotes erd
7154 \end_inset
7155
7156  and press the button marked 
7157 \begin_inset Quotes eld
7158 \end_inset
7159
7160 Refresh FNDB
7161 \begin_inset Quotes erd
7162 \end_inset
7163
7164 .
7165  Otherwise start the program 
7166 \begin_inset Quotes eld
7167 \end_inset
7168
7169 Settings
7170 \begin_inset Quotes erd
7171 \end_inset
7172
7173  and do the same.
7174 \end_layout
7175
7176 \end_deeper
7177 \begin_layout Enumerate
7178 Finally,
7179  you need to tell \SpecialChar LyX
7180  that there are new packages available.
7181  So,
7182  in \SpecialChar LyX
7183 ,
7184  use the menu 
7185 \begin_inset Flex Noun
7186 status collapsed
7187
7188 \begin_layout Plain Layout
7189 Tools
7190 \family sans
7191 \SpecialChar menuseparator
7192 Reconfigure
7193 \end_layout
7194
7195 \end_inset
7196
7197  and then restart \SpecialChar LyX
7198 .
7199 \end_layout
7200
7201 \begin_layout Standard
7202 Now the package is installed.
7203  In our example,
7204  the document class 
7205 \begin_inset Flex Code
7206 status collapsed
7207
7208 \begin_layout Plain Layout
7209 FoilTex
7210 \end_layout
7211
7212 \end_inset
7213
7214  will now be available under 
7215 \begin_inset Flex Noun
7216 status collapsed
7217
7218 \begin_layout Plain Layout
7219 Document\SpecialChar menuseparator
7220 Settings\SpecialChar menuseparator
7221 Document Class
7222 \end_layout
7223
7224 \end_inset
7225
7226  (in the 
7227 \begin_inset Quotes eld
7228 \end_inset
7229
7230 Presentations
7231 \begin_inset Quotes erd
7232 \end_inset
7233
7234  category).
7235  
7236 \end_layout
7237
7238 \begin_layout Standard
7239 If you would like to use a \SpecialChar LaTeX
7240  document class that is not even listed in the menu 
7241 \begin_inset Flex Noun
7242 status collapsed
7243
7244 \begin_layout Plain Layout
7245 Document\SpecialChar menuseparator
7246 Settings\SpecialChar menuseparator
7247 Document Class
7248 \end_layout
7249
7250 \end_inset
7251
7252 ,
7253  then you need to create a `layout' file for it.
7254  That is the topic of the next section.
7255 \end_layout
7256
7257 \begin_layout Section
7258 Types of layout files
7259 \end_layout
7260
7261 \begin_layout Standard
7262 This section describes the various sorts of \SpecialChar LyX
7263  files that contain layout information.
7264  These files describe various paragraph and character styles,
7265  determining how \SpecialChar LyX
7266  should display them and how they should be translated into \SpecialChar LaTeX
7267 ,
7268  DocBook,
7269  XHTML,
7270  or whatever output format is being used.
7271  
7272 \end_layout
7273
7274 \begin_layout Standard
7275 We shall try to provide a thorough description of the process of writing layout files here.
7276  However,
7277  there are so many different types of documents supported even by just \SpecialChar LaTeX
7278  that we can't hope to cover every different possibility or problem you might encounter.
7279  The \SpecialChar LyX
7280  users' list is frequented by people with lots of experience with layout design who are willing to share what they've learned,
7281  so please feel free to ask questions there.
7282 \end_layout
7283
7284 \begin_layout Standard
7285 As you prepare to write a new layout,
7286  it is extremely helpful to look at the layouts distributed with \SpecialChar LyX
7287 .
7288  If you write a \SpecialChar LyX
7289  layout for a \SpecialChar LaTeX
7290  document class that might also be used by others,
7291  or write a module that might be useful to others,
7292  then you should consider posting your layout to the 
7293 \begin_inset CommandInset href
7294 LatexCommand href
7295 name "layout section on the LyX wiki"
7296 target "https://wiki.lyx.org/Layouts/Layouts"
7297 literal "false"
7298
7299 \end_inset
7300
7301  or even to the \SpecialChar LyX
7302  developers' list,
7303  so that it might be included in \SpecialChar LyX
7304  itself.
7305 \begin_inset Foot
7306 status collapsed
7307
7308 \begin_layout Plain Layout
7309 Note that \SpecialChar LyX
7310  is licensed under the General Public License,
7311  so any material that is contributed to \SpecialChar LyX
7312  must be similarly licensed.
7313 \end_layout
7314
7315 \end_inset
7316
7317
7318 \end_layout
7319
7320 \begin_layout Subsection
7321 Layout modules
7322 \begin_inset CommandInset label
7323 LatexCommand label
7324 name "subsec:Layout-modules"
7325
7326 \end_inset
7327
7328
7329 \end_layout
7330
7331 \begin_layout Standard
7332 We have spoken to this point about `layout files'.
7333  But there are different sorts of files that contain layout information.
7334  Layout files,
7335  strictly so called,
7336  have the 
7337 \begin_inset Flex Code
7338 status collapsed
7339
7340 \begin_layout Plain Layout
7341 .layout
7342 \end_layout
7343
7344 \end_inset
7345
7346  extension and provide \SpecialChar LyX
7347  with information about document classes.
7348  Since \SpecialChar LyX
7349  1.6 layout information can also be contained in layout 
7350 \emph on
7351 modules
7352 \emph default
7353 ,
7354  which have the 
7355 \begin_inset Flex Code
7356 status collapsed
7357
7358 \begin_layout Plain Layout
7359 .module
7360 \end_layout
7361
7362 \end_inset
7363
7364  extension.
7365  Modules are to \SpecialChar LaTeX
7366  packages much as layouts are to \SpecialChar LaTeX
7367  classes,
7368  and some modules—
7369 such as the 
7370 \begin_inset Flex Code
7371 status collapsed
7372
7373 \begin_layout Plain Layout
7374 endnotes
7375 \end_layout
7376
7377 \end_inset
7378
7379  module—
7380 specifically provide support for one package.
7381  In a sense,
7382  layout modules are similar to included
7383 \begin_inset Foot
7384 status collapsed
7385
7386 \begin_layout Plain Layout
7387 These can have any extension,
7388  but by convention have the 
7389 \begin_inset Flex Code
7390 status collapsed
7391
7392 \begin_layout Plain Layout
7393 .inc
7394 \end_layout
7395
7396 \end_inset
7397
7398  extension.
7399 \end_layout
7400
7401 \end_inset
7402
7403  files—
7404 files like 
7405 \begin_inset Flex Code
7406 status collapsed
7407
7408 \begin_layout Plain Layout
7409 stdsections.inc
7410 \end_layout
7411
7412 \end_inset
7413
7414
7415 in that modules are not specific to a given document class but may be used with many different classes.
7416  The difference is that using an included file with 
7417 \begin_inset Flex Code
7418 status collapsed
7419
7420 \begin_layout Plain Layout
7421 article.cls
7422 \end_layout
7423
7424 \end_inset
7425
7426  requires editing that file.
7427  Modules,
7428  by contrast,
7429  are selected in the 
7430 \begin_inset Flex Noun
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 Document\SpecialChar menuseparator
7435 Settings
7436 \end_layout
7437
7438 \end_inset
7439
7440  dialog.
7441 \end_layout
7442
7443 \begin_layout Standard
7444 Building modules is the easiest way to get started with layout editing,
7445  since it can be as simple as adding a single new paragraph style or flex inset.
7446  But modules may,
7447  in principle,
7448  contain anything a layout file can contain.
7449 \end_layout
7450
7451 \begin_layout Standard
7452 After creating a new module and copying it to the 
7453 \begin_inset Flex Code
7454 status collapsed
7455
7456 \begin_layout Plain Layout
7457 layouts/
7458 \end_layout
7459
7460 \end_inset
7461
7462  folder,
7463  you will need to reconfigure and then restart \SpecialChar LyX
7464  for the module to appear in the menu.
7465  However,
7466  changes you make to the module will be seen immediately,
7467  if you open 
7468 \begin_inset Flex Noun
7469 status collapsed
7470
7471 \begin_layout Plain Layout
7472 Document\SpecialChar menuseparator
7473 Settings
7474 \end_layout
7475
7476 \end_inset
7477
7478 ,
7479  highlight something,
7480  and then hit 
7481 \begin_inset Quotes eld
7482 \end_inset
7483
7484 OK
7485 \begin_inset Quotes erd
7486 \end_inset
7487
7488 .
7489  
7490 \emph on
7491 It is strongly recommended that you save your work before doing this
7492 \emph default
7493 .
7494  In fact,
7495  
7496 \emph on
7497 it is strongly recommended that you not attempt to edit modules while simultaneously working on actual documents
7498 \emph default
7499 .
7500  Though of course the developers strive to keep \SpecialChar LyX
7501  stable in such situations,
7502  syntax errors and the like in your module file could cause strange behavior.
7503 \end_layout
7504
7505 \begin_layout Subsubsection
7506 Local Layout
7507 \end_layout
7508
7509 \begin_layout Standard
7510 Modules are to \SpecialChar LyX
7511  as packages are to \SpecialChar LaTeX
7512 .
7513  Sometimes,
7514  however,
7515  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.
7516  What you need is \SpecialChar LyX
7517 's 
7518 \begin_inset Quotes eld
7519 \end_inset
7520
7521 Local Layout
7522 \begin_inset Quotes erd
7523 \end_inset
7524
7525 .
7526 \end_layout
7527
7528 \begin_layout Standard
7529 You will find it under 
7530 \family sans
7531 Document\SpecialChar menuseparator
7532 Settings\SpecialChar menuseparator
7533 Local Layout
7534 \family default
7535 .
7536  The large text box allows you to enter anything that you might enter in a layout file or module.
7537  You can think of a document's local layout,
7538  in fact,
7539  as a module that belongs just to it.
7540  So,
7541  in particular,
7542  you must enter a 
7543 \begin_inset Flex Code
7544 status collapsed
7545
7546 \begin_layout Plain Layout
7547 Format
7548 \end_layout
7549
7550 \end_inset
7551
7552  tag.
7553  Any format is acceptable,
7554  but one would normally use the format current at the time.
7555  (In \SpecialChar LyX
7556  
7557 \begin_inset Info
7558 type  "lyxinfo"
7559 arg   "version"
7560 \end_inset
7561
7562 ,
7563  the current layout format is 
7564 \begin_inset Info
7565 type  "lyxinfo"
7566 arg   "layoutformat"
7567 \end_inset
7568
7569 .)
7570 \end_layout
7571
7572 \begin_layout Standard
7573 When you have entered something in the 
7574 \begin_inset Flex Code
7575 status collapsed
7576
7577 \begin_layout Plain Layout
7578 Local Layout
7579 \end_layout
7580
7581 \end_inset
7582
7583  pane,
7584  \SpecialChar LyX
7585  will enable the 
7586 \begin_inset Quotes eld
7587 \end_inset
7588
7589 Validate
7590 \begin_inset Quotes erd
7591 \end_inset
7592
7593  button at the bottom.
7594  Clicking this button will cause \SpecialChar LyX
7595  to determine whether what you have entered is valid layout information for the chosen format.
7596  \SpecialChar LyX
7597  will report the result but,
7598  unfortunately,
7599  will not tell you what errors there might have been.
7600  These will be written to the terminal,
7601  however,
7602  if \SpecialChar LyX
7603  is started from a terminal.
7604  You will not be permitted to save your local layout until you have entered something valid.
7605 \end_layout
7606
7607 \begin_layout Standard
7608 The warnings at the end of the previous section apply here,
7609  too.
7610  Do not play with local layout while you are actually working,
7611  especially if you have not saved your document.
7612  That said,
7613  using local layout with a test document can be a very convenient way to try out layout ideas,
7614  or even to start developing a module.
7615 \end_layout
7616
7617 \begin_layout Subsection
7618 Layout for 
7619 \begin_inset Flex Noun
7620 status collapsed
7621
7622 \begin_layout Plain Layout
7623 .sty
7624 \end_layout
7625
7626 \end_inset
7627
7628  files
7629 \end_layout
7630
7631 \begin_layout Standard
7632 There are two situations you are likely to encounter when wanting to support a new \SpecialChar LaTeX
7633  document class,
7634  involving style (
7635 \begin_inset Flex Code
7636 status collapsed
7637
7638 \begin_layout Plain Layout
7639 .sty
7640 \end_layout
7641
7642 \end_inset
7643
7644 ) files and \SpecialChar LaTeX2e
7645  class (
7646 \begin_inset Flex Code
7647 status collapsed
7648
7649 \begin_layout Plain Layout
7650 .cls
7651 \end_layout
7652
7653 \end_inset
7654
7655 ) .
7656  Supporting a style file is usually fairly easy.
7657  Supporting a new class file is a bit harder.
7658  We'll discuss the former in this section and the latter in the next.
7659  
7660 \change_deleted 5863208 1594239023
7661 Similar remarks apply,
7662  of course,
7663  if you want to support a new DocBook DTD.
7664 \change_unchanged
7665
7666 \end_layout
7667
7668 \begin_layout Standard
7669 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.
7670  For the sake of the example,
7671  we'll assume that the style file is called 
7672 \begin_inset Flex Noun
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 myclass.sty
7677 \end_layout
7678
7679 \end_inset
7680
7681  and that it is meant to be used with 
7682 \begin_inset Flex Noun
7683 status collapsed
7684
7685 \begin_layout Plain Layout
7686 report.cls
7687 \end_layout
7688
7689 \end_inset
7690
7691 ,
7692  which is a standard class.
7693  
7694 \end_layout
7695
7696 \begin_layout Standard
7697 Start by copying the existing class's layout file into your local directory:
7698 \begin_inset Foot
7699 status collapsed
7700
7701 \begin_layout Plain Layout
7702 Of course,
7703  which directory is your local directory will vary by platform,
7704  and \SpecialChar LyX
7705  allows you to specify your local directory on startup,
7706  too,
7707  using the 
7708 \begin_inset Flex Code
7709 status collapsed
7710
7711 \begin_layout Plain Layout
7712 -userdir
7713 \end_layout
7714
7715 \end_inset
7716
7717  option.
7718 \end_layout
7719
7720 \end_inset
7721
7722
7723 \end_layout
7724
7725 \begin_layout LyX-Code
7726 cp report.layout ~/.lyx/layouts/myclass.layout
7727 \end_layout
7728
7729 \begin_layout Standard
7730 Then edit 
7731 \begin_inset Flex Code
7732 status collapsed
7733
7734 \begin_layout Plain Layout
7735 myclass.layout
7736 \end_layout
7737
7738 \end_inset
7739
7740  and change the line:
7741  
7742 \end_layout
7743
7744 \begin_layout LyX-Code
7745
7746 \backslash
7747 DeclareLaTeXClass{Report (Standard Class)}
7748 \end_layout
7749
7750 \begin_layout Standard
7751 to read
7752 \end_layout
7753
7754 \begin_layout LyX-Code
7755
7756 \backslash
7757 DeclareLaTeXClass[report,
7758  myclass.sty]{Report (My Class)}
7759 \end_layout
7760
7761 \begin_layout Standard
7762 Then add:
7763 \end_layout
7764
7765 \begin_layout LyX-Code
7766 Preamble 
7767 \begin_inset Newline newline
7768 \end_inset
7769
7770     
7771 \backslash
7772 usepackage{myclass}
7773 \begin_inset Newline newline
7774 \end_inset
7775
7776 EndPreamble
7777 \end_layout
7778
7779 \begin_layout Standard
7780 near the top of the file.
7781 \end_layout
7782
7783 \begin_layout Standard
7784 Start \SpecialChar LyX
7785  and select 
7786 \begin_inset Flex Noun
7787 status collapsed
7788
7789 \begin_layout Plain Layout
7790 Tools\SpecialChar menuseparator
7791 Reconfigure
7792 \end_layout
7793
7794 \end_inset
7795
7796 .
7797  Then restart \SpecialChar LyX
7798  and try creating a new document.
7799  You should see "
7800 \begin_inset Flex Noun
7801 status collapsed
7802
7803 \begin_layout Plain Layout
7804 Report (My Class)
7805 \end_layout
7806
7807 \end_inset
7808
7809 " as a document class option in the 
7810 \begin_inset Flex Noun
7811 status collapsed
7812
7813 \begin_layout Plain Layout
7814 Document\SpecialChar menuseparator
7815 Settings
7816 \end_layout
7817
7818 \end_inset
7819
7820  dialog.
7821  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—
7822
7823 \begin_inset Flex Code
7824 status collapsed
7825
7826 \begin_layout Plain Layout
7827 report
7828 \end_layout
7829
7830 \end_inset
7831
7832  in this example—
7833 so you can fiddle around with the settings for the different sections if you wish.
7834  The layout information for sections is contained in 
7835 \begin_inset Flex Code
7836 status collapsed
7837
7838 \begin_layout Plain Layout
7839 stdsections.inc
7840 \end_layout
7841
7842 \end_inset
7843
7844 ,
7845  but you do not need to copy and change this file.
7846  Instead,
7847  you can simply add your changes to your layout file,
7848  after the line 
7849 \begin_inset Flex Code
7850 status collapsed
7851
7852 \begin_layout Plain Layout
7853 Input stdclass.inc
7854 \end_layout
7855
7856 \end_inset
7857
7858 ,
7859  which itself includes 
7860 \begin_inset Flex Code
7861 status collapsed
7862
7863 \begin_layout Plain Layout
7864 stdsections.inc
7865 \end_layout
7866
7867 \end_inset
7868
7869 .
7870  For example,
7871  you might add these lines:
7872 \end_layout
7873
7874 \begin_layout LyX-Code
7875 Style Chapter
7876 \end_layout
7877
7878 \begin_layout LyX-Code
7879     Font
7880 \end_layout
7881
7882 \begin_layout LyX-Code
7883         Family Sans
7884 \end_layout
7885
7886 \begin_layout LyX-Code
7887     EndFont
7888 \end_layout
7889
7890 \begin_layout LyX-Code
7891 End
7892 \end_layout
7893
7894 \begin_layout Standard
7895 to change the font for chapter headings to sans-serif.
7896  This will override (or,
7897  in this case,
7898  add to) the existing declaration for the Chapter style.
7899  
7900 \end_layout
7901
7902 \begin_layout Standard
7903 Your new package may also provide commands or environments not present in the base class.
7904  In this case,
7905  you will want to add these to the layout file.
7906  See 
7907 \begin_inset CommandInset ref
7908 LatexCommand ref
7909 reference "sec:TextClass"
7910 nolink "false"
7911
7912 \end_inset
7913
7914  for information on how to do so.
7915 \end_layout
7916
7917 \begin_layout Standard
7918 If 
7919 \begin_inset Flex Noun
7920 status collapsed
7921
7922 \begin_layout Plain Layout
7923 myclass.sty
7924 \end_layout
7925
7926 \end_inset
7927
7928  can be used with several different document classes,
7929  and even if it cannot,
7930  you might find it easiest just to write a module that you can load with the base class.
7931  The simplest possible such module would be:
7932 \end_layout
7933
7934 \begin_layout LyX-Code
7935 #
7936 \backslash
7937 DeclareLyXModule{My Class} 
7938 \end_layout
7939
7940 \begin_layout LyX-Code
7941 #DescriptionBegin 
7942 \end_layout
7943
7944 \begin_layout LyX-Code
7945 #Support for myclass.sty.
7946 \end_layout
7947
7948 \begin_layout LyX-Code
7949 #DescriptionEnd
7950 \begin_inset Newline newline
7951 \end_inset
7952
7953
7954 \end_layout
7955
7956 \begin_layout LyX-Code
7957 Format 
7958 \begin_inset Info
7959 type  "lyxinfo"
7960 arg   "layoutformat"
7961 \end_inset
7962
7963
7964 \begin_inset Newline newline
7965 \end_inset
7966
7967
7968 \end_layout
7969
7970 \begin_layout LyX-Code
7971 Preamble
7972 \begin_inset Newline newline
7973 \end_inset
7974
7975     
7976 \backslash
7977 usepackage{myclass}
7978 \begin_inset Newline newline
7979 \end_inset
7980
7981 EndPreamble
7982 \end_layout
7983
7984 \begin_layout Standard
7985 A more complex module might modify the behavior of some existing constructs or define some new ones.
7986  Again,
7987  see 
7988 \begin_inset CommandInset ref
7989 LatexCommand ref
7990 reference "sec:TextClass"
7991 nolink "false"
7992
7993 \end_inset
7994
7995  for discussion.
7996 \end_layout
7997
7998 \begin_layout Subsection
7999 Layout for 
8000 \begin_inset Flex Noun
8001 status collapsed
8002
8003 \begin_layout Plain Layout
8004 .cls
8005 \end_layout
8006
8007 \end_inset
8008
8009  files
8010 \end_layout
8011
8012 \begin_layout Standard
8013 There are two possibilities here.
8014  One is that the class file is itself based upon an existing document class.
8015  For example,
8016  many thesis classes are based upon 
8017 \begin_inset Flex Noun
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 book.cls
8022 \end_layout
8023
8024 \end_inset
8025
8026 .
8027  To see whether yours is,
8028  look for a line like
8029 \end_layout
8030
8031 \begin_layout LyX-Code
8032
8033 \backslash
8034 LoadClass{book}
8035 \end_layout
8036
8037 \begin_layout Standard
8038 in the file.
8039  If so,
8040  then you may proceed largely as in the previous section,
8041  though the 
8042 \begin_inset Flex Code
8043 status collapsed
8044
8045 \begin_layout Plain Layout
8046 Declare\SpecialChar LaTeX
8047 Class
8048 \end_layout
8049
8050 \end_inset
8051
8052  line will be different.
8053  If your new class is 
8054 \begin_inset Flex Code
8055 status collapsed
8056
8057 \begin_layout Plain Layout
8058 thesis
8059 \end_layout
8060
8061 \end_inset
8062
8063  and it is based upon 
8064 \begin_inset Flex Code
8065 status collapsed
8066
8067 \begin_layout Plain Layout
8068 book
8069 \end_layout
8070
8071 \end_inset
8072
8073 ,
8074  then the line should read:
8075 \begin_inset Foot
8076 status collapsed
8077
8078 \begin_layout Plain Layout
8079 And it will be easiest if you save the file to 
8080 \begin_inset Flex Code
8081 status collapsed
8082
8083 \begin_layout Plain Layout
8084 thesis.layout
8085 \end_layout
8086
8087 \end_inset
8088
8089 :
8090  \SpecialChar LyX
8091  assumes that the document class has the same name as the layout file.
8092  
8093 \end_layout
8094
8095 \end_inset
8096
8097
8098 \end_layout
8099
8100 \begin_layout LyX-Code
8101
8102 \backslash
8103 DeclareLaTeXClass[thesis,book]{thesis}
8104 \end_layout
8105
8106 \begin_layout Standard
8107 If,
8108  on the other hand,
8109  the new class is not based upon an existing class,
8110  you will probably have to 
8111 \begin_inset Quotes eld
8112 \end_inset
8113
8114 roll your own
8115 \begin_inset Quotes erd
8116 \end_inset
8117
8118  layout.
8119  We strongly suggest copying an existing layout file which uses a similar \SpecialChar LaTeX
8120  class and then modifying it,
8121  if you can do so.
8122  At least use an existing file as a starting point so you can find out what items you need to worry about.
8123  Again,
8124  the specifics are covered below.
8125 \end_layout
8126
8127 \begin_layout Subsection
8128 Creating templates
8129 \begin_inset CommandInset label
8130 LatexCommand label
8131 name "subsec:Creating-Templates"
8132
8133 \end_inset
8134
8135
8136 \end_layout
8137
8138 \begin_layout Standard
8139 Once you have written a layout file for a new document class,
8140  you might want to consider writing a 
8141 \emph on
8142 template
8143 \emph default
8144  for it,
8145  too.
8146  A template acts as a kind of tutorial for your layout,
8147  showing how it might be used,
8148  though containing dummy content.
8149  You can of course look at the various templates included with \SpecialChar LyX
8150  for ideas.
8151 \end_layout
8152
8153 \begin_layout Standard
8154 Templates are created just like usual documents:
8155  using \SpecialChar LyX
8156 .
8157  The only difference is that usual documents contain all possible settings,
8158  including the font scheme and the paper size.
8159  Usually a user doesn't want a template to overwrite his preferred settings for such parameters.
8160  For that reason,
8161  the designer of a template should remove the corresponding commands like 
8162 \begin_inset Flex Code
8163 status collapsed
8164
8165 \begin_layout Plain Layout
8166
8167 \backslash
8168 font_roman
8169 \end_layout
8170
8171 \end_inset
8172
8173  or 
8174 \begin_inset Flex Code
8175 status collapsed
8176
8177 \begin_layout Plain Layout
8178
8179 \backslash
8180 papersize
8181 \end_layout
8182
8183 \end_inset
8184
8185  from the template \SpecialChar LyX
8186  file.
8187  This can be done with any simple text-editor,
8188  for example 
8189 \begin_inset Flex Code
8190 status collapsed
8191
8192 \begin_layout Plain Layout
8193 vi
8194 \end_layout
8195
8196 \end_inset
8197
8198  or 
8199 \begin_inset Flex Code
8200 status collapsed
8201
8202 \begin_layout Plain Layout
8203 notepad
8204 \end_layout
8205
8206 \end_inset
8207
8208 .
8209 \end_layout
8210
8211 \begin_layout Standard
8212 Put the edited template files you create in 
8213 \begin_inset Flex Code
8214 status collapsed
8215
8216 \begin_layout Plain Layout
8217 UserDir/templates/
8218 \end_layout
8219
8220 \end_inset
8221
8222 ,
8223  copy the ones you use from the global template directory in 
8224 \begin_inset Flex Code
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228 LyXDir/templates/
8229 \end_layout
8230
8231 \end_inset
8232
8233  to the same place,
8234  and redefine the template path in the 
8235 \begin_inset Flex Noun
8236 status collapsed
8237
8238 \begin_layout Plain Layout
8239 Tools\SpecialChar menuseparator
8240 Preferences\SpecialChar menuseparator
8241 Paths
8242 \end_layout
8243
8244 \end_inset
8245
8246  dialog.
8247 \end_layout
8248
8249 \begin_layout Standard
8250 Note,
8251  by the way,
8252  that there is a template which has a particular meaning:
8253 \begin_inset Newline linebreak
8254 \end_inset
8255
8256
8257 \begin_inset Flex Code
8258 status collapsed
8259
8260 \begin_layout Plain Layout
8261 defaults.lyx
8262 \end_layout
8263
8264 \end_inset
8265
8266 .
8267  This template is loaded every time you create a new document with 
8268 \begin_inset Flex Noun
8269 status collapsed
8270
8271 \begin_layout Plain Layout
8272 File\SpecialChar menuseparator
8273 New
8274 \end_layout
8275
8276 \end_inset
8277
8278  in order to provide useful defaults.
8279  To create this template from inside \SpecialChar LyX
8280 ,
8281  all you have to do is to open a document with the correct settings,
8282  and use the 
8283 \begin_inset Flex Noun
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287 Save as Document Defaults
8288 \end_layout
8289
8290 \end_inset
8291
8292  button.
8293 \end_layout
8294
8295 \begin_layout Subsection
8296 Upgrading old layout files
8297 \end_layout
8298
8299 \begin_layout Standard
8300 The format of layout files changes with each \SpecialChar LyX
8301  release,
8302  so old layout files need to be converted to the new format.
8303  If \SpecialChar LyX
8304  reads a layout file in an older format,
8305  it automatically calls the script 
8306 \begin_inset Flex Code
8307 status collapsed
8308
8309 \begin_layout Plain Layout
8310 layout2layout.py
8311 \end_layout
8312
8313 \end_inset
8314
8315  to convert it to a temporary file in current format.
8316  The original file is left untouched.
8317  If you use the layout file often,
8318  then,
8319  you may want to convert it permanently,
8320  so that \SpecialChar LyX
8321  does not have to do so itself every time.
8322  To do this,
8323  you can call the converter manually:
8324 \end_layout
8325
8326 \begin_layout Enumerate
8327 rename the file 
8328 \begin_inset Flex Code
8329 status collapsed
8330
8331 \begin_layout Plain Layout
8332 myclass.layout
8333 \end_layout
8334
8335 \end_inset
8336
8337  to 
8338 \begin_inset Flex Code
8339 status collapsed
8340
8341 \begin_layout Plain Layout
8342 myclass.old
8343 \end_layout
8344
8345 \end_inset
8346
8347
8348 \end_layout
8349
8350 \begin_layout Enumerate
8351 Call the command
8352 \begin_inset Newline newline
8353 \end_inset
8354
8355
8356 \begin_inset Flex Code
8357 status collapsed
8358
8359 \begin_layout Plain Layout
8360 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8361 \end_layout
8362
8363 \end_inset
8364
8365
8366 \begin_inset Newline newline
8367 \end_inset
8368
8369 where 
8370 \begin_inset Flex Code
8371 status collapsed
8372
8373 \begin_layout Plain Layout
8374 LyXDir
8375 \end_layout
8376
8377 \end_inset
8378
8379  is the name of your \SpecialChar LyX
8380  system directory.
8381 \end_layout
8382
8383 \begin_layout Standard
8384 Note that manual conversion does not affect included files,
8385  so these will have to be converted separately.
8386 \end_layout
8387
8388 \begin_layout Subsection
8389 \begin_inset CommandInset label
8390 LatexCommand label
8391 name "subsec:Cite-Engine-Files"
8392
8393 \end_inset
8394
8395 Cite engine files
8396 \end_layout
8397
8398 \begin_layout Standard
8399 A specific form of layout files are the so-called 
8400 \begin_inset Flex Code
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 *.citeengine
8405 \end_layout
8406
8407 \end_inset
8408
8409  files that are located in the 
8410 \begin_inset Flex Code
8411 status collapsed
8412
8413 \begin_layout Plain Layout
8414 citeengines/
8415 \end_layout
8416
8417 \end_inset
8418
8419  sub-directory.
8420  Their purpose is to define the specifics of \SpecialChar LaTeX
8421  packages aimed at bibliography generation,
8422  such as 
8423 \family sans
8424 natbib
8425 \family default
8426 ,
8427
8428 \family sans
8429  jurabib
8430 \family default
8431  or 
8432 \family sans
8433 biblatex
8434 \family default
8435 ,
8436  but also the way how normal Bib\SpecialChar TeX
8437  citations (without additional packages) are handled in \SpecialChar LyX
8438  is defined in such a file.
8439  
8440 \end_layout
8441
8442 \begin_layout Standard
8443 More specifically,
8444  it is defined which packages \SpecialChar LyX
8445  needs to load,
8446  which citation commands are available,
8447  how these are to be displayed in \SpecialChar LyX
8448  (in the workarea,
8449  the dialogs,
8450  the context menus) as well as in the XHTML and plain text output.
8451  Furthermore,
8452  the files specify available style variants (author-year,
8453  numerical,
8454  etc.) and their specifics.
8455  The cite engine files are also used to generate the options that are available in 
8456 \family sans
8457 Document\SpecialChar menuseparator
8458 Settings\SpecialChar menuseparator
8459 Bibliography\SpecialChar menuseparator
8460 Style engine
8461 \family default
8462 .
8463 \end_layout
8464
8465 \begin_layout Standard
8466 Even though a cite engine file is essentially a normal layout file that could theoretically include any layout information,
8467  it usually primarily includes some specific parameters such as 
8468 \begin_inset Flex Code
8469 status collapsed
8470
8471 \begin_layout Plain Layout
8472 MaxCiteNames
8473 \end_layout
8474
8475 \end_inset
8476
8477 ,
8478  
8479 \begin_inset Flex Code
8480 status collapsed
8481
8482 \begin_layout Plain Layout
8483 CiteFramework
8484 \end_layout
8485
8486 \end_inset
8487
8488 ,
8489  
8490 \begin_inset Flex Code
8491 status collapsed
8492
8493 \begin_layout Plain Layout
8494 CiteEngine
8495 \end_layout
8496
8497 \end_inset
8498
8499  and 
8500 \begin_inset Flex Code
8501 status collapsed
8502
8503 \begin_layout Plain Layout
8504 CiteFormat
8505 \end_layout
8506
8507 \end_inset
8508
8509  blocks.
8510  The syntax of the latter two is described in 
8511 \begin_inset CommandInset ref
8512 LatexCommand ref
8513 reference "subsec:Citation-engine-description"
8514 plural "false"
8515 caps "false"
8516 noprefix "false"
8517 nolink "false"
8518
8519 \end_inset
8520
8521  and 
8522 \begin_inset CommandInset ref
8523 LatexCommand ref
8524 reference "subsec:Citation-format-description"
8525 nolink "false"
8526
8527 \end_inset
8528
8529 ,
8530  as well as in the files themselves.
8531 \end_layout
8532
8533 \begin_layout Section
8534 \begin_inset CommandInset label
8535 LatexCommand label
8536 name "sec:TextClass"
8537
8538 \end_inset
8539
8540 The layout file format
8541 \end_layout
8542
8543 \begin_layout Standard
8544 The following sections describe how layout files are structured and written.
8545  Our advice is to go slowly,
8546  save and test often.
8547  It is really not that hard,
8548  except that the multitude of options can become overwhelming,
8549  especially if you try to check out too many at once.
8550  It becomes easier if you use existing layouts of \SpecialChar LyX
8551  as examples/reference or if you modify an existing layout to your needs.
8552 \end_layout
8553
8554 \begin_layout Standard
8555 Note that all the tags used in layout files are case-insensitive.
8556  This means that 
8557 \begin_inset Flex Code
8558 status collapsed
8559
8560 \begin_layout Plain Layout
8561 Style
8562 \end_layout
8563
8564 \end_inset
8565
8566 ,
8567  
8568 \begin_inset Flex Code
8569 status collapsed
8570
8571 \begin_layout Plain Layout
8572 style
8573 \end_layout
8574
8575 \end_inset
8576
8577  and 
8578 \begin_inset Flex Code
8579 status collapsed
8580
8581 \begin_layout Plain Layout
8582 StYlE
8583 \end_layout
8584
8585 \end_inset
8586
8587  are really the same tag.
8588  The possible arguments are printed in brackets after the tag's name.
8589  The default argument is typeset 
8590 \begin_inset Flex Code
8591 status collapsed
8592
8593 \begin_layout Plain Layout
8594
8595 \emph on
8596 emphasized
8597 \end_layout
8598
8599 \end_inset
8600
8601 .
8602  If the argument has a data type like 
8603 \begin_inset Quotes eld
8604 \end_inset
8605
8606 string
8607 \begin_inset Quotes erd
8608 \end_inset
8609
8610  or 
8611 \begin_inset Quotes eld
8612 \end_inset
8613
8614 float
8615 \begin_inset Quotes erd
8616 \end_inset
8617
8618 ,
8619  the default is shown like this:
8620  
8621 \begin_inset Flex Code
8622 status collapsed
8623
8624 \begin_layout Plain Layout
8625 float=
8626 \emph on
8627 default
8628 \end_layout
8629
8630 \end_inset
8631
8632 .
8633 \end_layout
8634
8635 \begin_layout Subsection
8636 The document class declaration and classification
8637 \end_layout
8638
8639 \begin_layout Standard
8640 Lines in a layout file which begin with 
8641 \begin_inset Flex Code
8642 status collapsed
8643
8644 \begin_layout Plain Layout
8645 #
8646 \end_layout
8647
8648 \end_inset
8649
8650  are comments.
8651  There is one exception to this rule.
8652  All 
8653 \begin_inset Flex Code
8654 status collapsed
8655
8656 \begin_layout Plain Layout
8657 *.layout
8658 \end_layout
8659
8660 \end_inset
8661
8662  files should begin with lines like:
8663 \end_layout
8664
8665 \begin_layout LyX-Code
8666
8667 \size small
8668 #% Do not delete the line below;
8669  configure depends on this 
8670 \end_layout
8671
8672 \begin_layout LyX-Code
8673
8674 \size small
8675 #  
8676 \backslash
8677 DeclareLaTeXClass{Article (Standard Class)}
8678 \end_layout
8679
8680 \begin_layout LyX-Code
8681
8682 \size small
8683 #  
8684 \backslash
8685 DeclareCategory{Articles}
8686 \end_layout
8687
8688 \begin_layout Standard
8689 The second and third lines are used when you (re)configure \SpecialChar LyX
8690 .
8691  The layout file is read by the \SpecialChar LaTeX
8692  script 
8693 \begin_inset Flex Code
8694 status collapsed
8695
8696 \begin_layout Plain Layout
8697 chkconfig.ltx
8698 \end_layout
8699
8700 \end_inset
8701
8702 ,
8703  in a special mode where 
8704 \begin_inset Flex Code
8705 status collapsed
8706
8707 \begin_layout Plain Layout
8708 #
8709 \end_layout
8710
8711 \end_inset
8712
8713  is ignored.
8714  The first line is just a \SpecialChar LaTeX
8715  comment,
8716  the second one contains the mandatory declaration of the text class and the third line contains the optional classification of the class.
8717  If these lines appear in a file named 
8718 \begin_inset Flex Code
8719 status collapsed
8720
8721 \begin_layout Plain Layout
8722 article.layout
8723 \end_layout
8724
8725 \end_inset
8726
8727 ,
8728  then they define a text class of name 
8729 \begin_inset Flex Code
8730 status collapsed
8731
8732 \begin_layout Plain Layout
8733 article
8734 \end_layout
8735
8736 \end_inset
8737
8738  (the name of the layout file) which uses the \SpecialChar LaTeX
8739  document class 
8740 \begin_inset Flex Code
8741 status collapsed
8742
8743 \begin_layout Plain Layout
8744 article.cls
8745 \end_layout
8746
8747 \end_inset
8748
8749  (the default is to use the same name as the layout).
8750  The string 
8751 \begin_inset Quotes eld
8752 \end_inset
8753
8754 Article (Standard Class)
8755 \begin_inset Quotes erd
8756 \end_inset
8757
8758  that appears above is used as a description of the text class in the 
8759 \begin_inset Flex Noun
8760 status collapsed
8761
8762 \begin_layout Plain Layout
8763 Document\SpecialChar menuseparator
8764 Settings
8765 \end_layout
8766
8767 \end_inset
8768
8769  dialog.
8770  The category (
8771 \begin_inset Quotes eld
8772 \end_inset
8773
8774 Articles
8775 \begin_inset Quotes erd
8776 \end_inset
8777
8778  in the example) is also used in the 
8779 \begin_inset Flex Noun
8780 status collapsed
8781
8782 \begin_layout Plain Layout
8783 Document\SpecialChar menuseparator
8784 Settings
8785 \end_layout
8786
8787 \end_inset
8788
8789  dialog:
8790  the text classes are grouped by these categories (which are usually genres,
8791  so typical categories are 
8792 \begin_inset Quotes eld
8793 \end_inset
8794
8795 Articles
8796 \begin_inset Quotes erd
8797 \end_inset
8798
8799 ,
8800  
8801 \begin_inset Quotes eld
8802 \end_inset
8803
8804 Books
8805 \begin_inset Quotes erd
8806 \end_inset
8807
8808 ,
8809  
8810 \begin_inset Quotes eld
8811 \end_inset
8812
8813 Reports
8814 \begin_inset Quotes erd
8815 \end_inset
8816
8817 ,
8818  
8819 \begin_inset Quotes eld
8820 \end_inset
8821
8822 Letters
8823 \begin_inset Quotes erd
8824 \end_inset
8825
8826 ,
8827  
8828 \begin_inset Quotes eld
8829 \end_inset
8830
8831 Presentations
8832 \begin_inset Quotes erd
8833 \end_inset
8834
8835 ,
8836  
8837 \begin_inset Quotes eld
8838 \end_inset
8839
8840 Curricula Vitae
8841 \begin_inset Quotes erd
8842 \end_inset
8843
8844  etc.).
8845  If no category has been declared,
8846  the class will be put in the 
8847 \begin_inset Quotes eld
8848 \end_inset
8849
8850 Uncategorized
8851 \begin_inset Quotes erd
8852 \end_inset
8853
8854  group.
8855 \end_layout
8856
8857 \begin_layout Standard
8858 Let's assume that you wrote your own text class that uses the 
8859 \begin_inset Flex Code
8860 status collapsed
8861
8862 \begin_layout Plain Layout
8863 article.cls
8864 \end_layout
8865
8866 \end_inset
8867
8868  document class,
8869  but where you changed the appearance of the section headings.
8870  If you put it in a file 
8871 \begin_inset Flex Code
8872 status collapsed
8873
8874 \begin_layout Plain Layout
8875 myarticle.layout
8876 \end_layout
8877
8878 \end_inset
8879
8880 ,
8881  the header of this file should be:
8882 \end_layout
8883
8884 \begin_layout LyX-Code
8885
8886 \size small
8887 #% Do not delete the line below;
8888  configure depends on this 
8889 \end_layout
8890
8891 \begin_layout LyX-Code
8892
8893 \size small
8894 #  
8895 \backslash
8896 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8897 \end_layout
8898
8899 \begin_layout LyX-Code
8900
8901 \size small
8902 #  
8903 \backslash
8904 DeclareCategory{Articles}
8905 \end_layout
8906
8907 \begin_layout Standard
8908 This declares a text class 
8909 \begin_inset Flex Code
8910 status collapsed
8911
8912 \begin_layout Plain Layout
8913 myarticle
8914 \end_layout
8915
8916 \end_inset
8917
8918 ,
8919  associated with the \SpecialChar LaTeX
8920  document class 
8921 \begin_inset Flex Code
8922 status collapsed
8923
8924 \begin_layout Plain Layout
8925 article.cls
8926 \end_layout
8927
8928 \end_inset
8929
8930  and described as 
8931 \begin_inset Quotes eld
8932 \end_inset
8933
8934 Article (with My Own Headings)
8935 \begin_inset Quotes erd
8936 \end_inset
8937
8938 .
8939  If your text class depends on several packages,
8940  you can declare it as:
8941 \end_layout
8942
8943 \begin_layout LyX-Code
8944
8945 \size small
8946 #% Do not delete the line below;
8947  configure depends on this 
8948 \end_layout
8949
8950 \begin_layout LyX-Code
8951
8952 \size small
8953 #  
8954 \backslash
8955 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8956 \end_layout
8957
8958 \begin_layout LyX-Code
8959
8960 \size small
8961 #  
8962 \backslash
8963 DeclareCategory{Articles}
8964 \end_layout
8965
8966 \begin_layout Standard
8967 This indicates that your text class uses the 
8968 \begin_inset Flex Code
8969 status collapsed
8970
8971 \begin_layout Plain Layout
8972 foo.sty
8973 \end_layout
8974
8975 \end_inset
8976
8977  package.
8978  
8979 \change_deleted 5863208 1594239179
8980 Finally,
8981  it is also possible to declare classes for DocBook code.
8982  Typical declarations will look like:
8983 \end_layout
8984
8985 \begin_layout LyX-Code
8986
8987 \change_deleted 5863208 1594239179
8988
8989 \size small
8990 #% Do not delete the line below;
8991  configure depends on this 
8992 \end_layout
8993
8994 \begin_layout LyX-Code
8995
8996 \change_deleted 5863208 1594239179
8997
8998 \size small
8999
9000 \backslash
9001 DeclareDocBookClass[article]{SGML (DocBook Article)}
9002 \end_layout
9003
9004 \begin_layout LyX-Code
9005
9006 \change_deleted 5863208 1594239179
9007
9008 \size small
9009
9010 \backslash
9011 DeclareCategory{Articles (DocBook)}
9012 \change_unchanged
9013
9014 \end_layout
9015
9016 \begin_layout Standard
9017 Note that these declarations can also be given an optional parameter declaring the name of the document class (but not a list).
9018 \end_layout
9019
9020 \begin_layout Standard
9021 So,
9022  to be as explicit as possible,
9023  the form of the layout declaration is:
9024 \end_layout
9025
9026 \begin_layout LyX-Code
9027
9028 \size small
9029 #  
9030 \backslash
9031 DeclareLaTeXClass[class,package.sty]{layout description}
9032 \end_layout
9033
9034 \begin_layout LyX-Code
9035
9036 \size small
9037 #  
9038 \backslash
9039 DeclareCategory{category}
9040 \end_layout
9041
9042 \begin_layout Standard
9043 The class need only be specified if the name of the \SpecialChar LaTeX
9044  class file and the name of the layout file are different or if there are packages to load.
9045  If the name of the class file is not specified,
9046  then \SpecialChar LyX
9047  will simply assume that it is the same as the name of the layout file.
9048 \end_layout
9049
9050 \begin_layout Standard
9051 When the text class has been modified to your taste,
9052  all you have to do is to copy it either to 
9053 \begin_inset Flex Code
9054 status collapsed
9055
9056 \begin_layout Plain Layout
9057 LyXDir/layouts/
9058 \end_layout
9059
9060 \end_inset
9061
9062  or to 
9063 \begin_inset Flex Code
9064 status collapsed
9065
9066 \begin_layout Plain Layout
9067 UserDir/layouts
9068 \end_layout
9069
9070 \end_inset
9071
9072 ,
9073  run 
9074 \begin_inset Flex Noun
9075 status collapsed
9076
9077 \begin_layout Plain Layout
9078 Tools\SpecialChar menuseparator
9079 Reconfigure
9080 \end_layout
9081
9082 \end_inset
9083
9084 ,
9085  exit \SpecialChar LyX
9086  and restart.
9087  Then your new text class should be available along with the others.
9088 \end_layout
9089
9090 \begin_layout Standard
9091 Once the layout file is installed,
9092  you can edit it and see your changes without having to reconfigure or to restart \SpecialChar LyX
9093 .
9094 \begin_inset Foot
9095 status collapsed
9096
9097 \begin_layout Plain Layout
9098 In versions of \SpecialChar LyX
9099  prior to 1.6,
9100  this was not true.
9101  As a result,
9102  editing layout files was very time consuming,
9103  since you had constantly to restart \SpecialChar LyX
9104  to see changes.
9105 \end_layout
9106
9107 \end_inset
9108
9109  You can force a reload of the current layout by using the \SpecialChar LyX
9110  function 
9111 \begin_inset Flex Noun
9112 status collapsed
9113
9114 \begin_layout Plain Layout
9115 layout-reload
9116 \end_layout
9117
9118 \end_inset
9119
9120 .
9121  There is no default binding for this function—
9122 though,
9123  of course,
9124  you can bind it to a key yourself.
9125  But you will normally use this function simply by entering it in the mini-buffer.
9126  
9127 \end_layout
9128
9129 \begin_layout Standard
9130
9131 \emph on
9132 Warning
9133 \emph default
9134 :
9135  
9136 \begin_inset Flex Noun
9137 status collapsed
9138
9139 \begin_layout Plain Layout
9140 layout-reload
9141 \end_layout
9142
9143 \end_inset
9144
9145  is very much an `advanced feature'.
9146  It is 
9147 \emph on
9148 strongly
9149 \emph default
9150  recommended that you save your work before using this function.
9151  In fact,
9152  it is 
9153 \emph on
9154 strongly
9155 \emph default
9156  recommended that you not attempt to edit layout information while simultaneously working on a document that you care about.
9157  Use a test document.
9158  Syntax errors and the like in your layout file could cause peculiar behavior.
9159  In particular,
9160  such errors could cause \SpecialChar LyX
9161  to regard the current layout as invalid and to attempt to switch to some other layout.
9162 \begin_inset Foot
9163 status collapsed
9164
9165 \begin_layout Plain Layout
9166 Really bad syntax errors may even caused \SpecialChar LyX
9167  to exit.
9168  This is because certain sorts of errors may make \SpecialChar LyX
9169  unable to read 
9170 \emph on
9171 any
9172 \emph default
9173  layout information.
9174  Please be careful.
9175 \end_layout
9176
9177 \end_inset
9178
9179  The \SpecialChar LyX
9180  team strives to keep \SpecialChar LyX
9181  stable in such situations,
9182  but safe is better than sorry.
9183 \begin_inset Foot
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187 While we're giving advice:
9188  make regular backups.
9189  And be nice to your mother.
9190 \end_layout
9191
9192 \end_inset
9193
9194
9195 \end_layout
9196
9197 \begin_layout Subsection
9198 The Module declaration
9199 \end_layout
9200
9201 \begin_layout Standard
9202 A module must begin with a line like the following:
9203 \end_layout
9204
9205 \begin_layout LyX-Code
9206 #
9207 \backslash
9208 DeclareLyXModule[endnotes.sty]{Endnotes}
9209 \change_inserted -712698321 1554395911
9210
9211 \end_layout
9212
9213 \begin_layout LyX-Code
9214
9215 \change_inserted -712698321 1554395924
9216
9217 \size small
9218 #
9219 \backslash
9220 DeclareCategory{Foot- and Endnotes}
9221 \change_deleted -712698321 1554395911
9222
9223 \size default
9224  
9225 \change_unchanged
9226
9227 \end_layout
9228
9229 \begin_layout Standard
9230 The mandatory argument
9231 \change_inserted -712698321 1554395956
9232  of 
9233 \family typewriter
9234
9235 \backslash
9236 DeclareLyXModule
9237 \change_unchanged
9238
9239 \family default
9240 ,
9241  in curly brackets,
9242  is the name of the module,
9243  as it should appear in 
9244 \begin_inset Flex Noun
9245 status collapsed
9246
9247 \begin_layout Plain Layout
9248 Document\SpecialChar menuseparator
9249 Settings\SpecialChar menuseparator
9250 Modules
9251 \end_layout
9252
9253 \end_inset
9254
9255 .
9256  The argument in square brackets is optional:
9257  It declares any \SpecialChar LaTeX
9258  packages on which the module depends.
9259  It is also possible to use the form 
9260 \begin_inset Flex Noun
9261 status collapsed
9262
9263 \begin_layout Plain Layout
9264 from->to
9265 \end_layout
9266
9267 \end_inset
9268
9269  as an optional argument,
9270  which declares that the module can only be used when there exists a conversion chain between the formats `
9271 \begin_inset Flex Code
9272 status collapsed
9273
9274 \begin_layout Plain Layout
9275 from
9276 \end_layout
9277
9278 \end_inset
9279
9280 ' and `
9281 \begin_inset Flex Code
9282 status collapsed
9283
9284 \begin_layout Plain Layout
9285 to
9286 \end_layout
9287
9288 \end_inset
9289
9290 '.
9291
9292 \change_inserted -712698321 1554396133
9293  The 
9294 \family typewriter
9295
9296 \backslash
9297 DeclareCategory
9298 \family default
9299  declaration is not strictly mandatory,
9300  but you should add it,
9301  since it is helpful to find the module.
9302  Please have a look at the existing module categories and if appropriate,
9303  use one of those.
9304 \change_unchanged
9305
9306 \end_layout
9307
9308 \begin_layout Standard
9309 The module 
9310 \change_inserted -712698321 1554395988
9311 and category 
9312 \change_unchanged
9313 declaration should then be followed by lines like the following:
9314 \begin_inset Foot
9315 status collapsed
9316
9317 \begin_layout Plain Layout
9318 Preferably in English if the module should be published with \SpecialChar LyX
9319 .
9320  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9321 \end_layout
9322
9323 \end_inset
9324
9325
9326 \end_layout
9327
9328 \begin_layout LyX-Code
9329 #DescriptionBegin 
9330 \end_layout
9331
9332 \begin_layout LyX-Code
9333 #Adds an endnote command,
9334  in addition to footnotes.
9335  
9336 \end_layout
9337
9338 \begin_layout LyX-Code
9339 #You will need to add  
9340 \backslash
9341 theendnotes in TeX code where you 
9342 \end_layout
9343
9344 \begin_layout LyX-Code
9345 #want the endnotes to appear.
9346  
9347 \end_layout
9348
9349 \begin_layout LyX-Code
9350 #DescriptionEnd 
9351 \end_layout
9352
9353 \begin_layout LyX-Code
9354 #Requires:
9355  somemodule | othermodule
9356 \end_layout
9357
9358 \begin_layout LyX-Code
9359 #Excludes:
9360  badmodule
9361 \end_layout
9362
9363 \begin_layout Standard
9364 The description is used in 
9365 \begin_inset Flex Noun
9366 status collapsed
9367
9368 \begin_layout Plain Layout
9369 Document\SpecialChar menuseparator
9370 Settings\SpecialChar menuseparator
9371 Modules
9372 \end_layout
9373
9374 \end_inset
9375
9376  to provide the user with information about what the module does.
9377  The 
9378 \begin_inset Flex Code
9379 status collapsed
9380
9381 \begin_layout Plain Layout
9382 Requires
9383 \end_layout
9384
9385 \end_inset
9386
9387  line is used to identify other modules with which this one must be used;
9388  the 
9389 \begin_inset Flex Code
9390 status collapsed
9391
9392 \begin_layout Plain Layout
9393 Excludes
9394 \end_layout
9395
9396 \end_inset
9397
9398  line is used to identify modules with which this one may not be used.
9399  Both are optional,
9400  and,
9401  as shown,
9402  multiple modules should be separated with the pipe symbol:
9403  |.
9404  Note that the required modules are treated disjunctively:
9405  
9406 \emph on
9407 at least one
9408 \emph default
9409  of the required modules must be used.
9410  Similarly,
9411  
9412 \emph on
9413 no
9414 \emph default
9415  excluded module may be used.
9416  Note that modules are identified here by their filenames without the 
9417 \begin_inset Flex Code
9418 status collapsed
9419
9420 \begin_layout Plain Layout
9421 .module
9422 \end_layout
9423
9424 \end_inset
9425
9426  extension.
9427  So 
9428 \begin_inset Flex Code
9429 status collapsed
9430
9431 \begin_layout Plain Layout
9432 somemodule
9433 \end_layout
9434
9435 \end_inset
9436
9437  is really 
9438 \begin_inset Flex Code
9439 status collapsed
9440
9441 \begin_layout Plain Layout
9442 somemodule.module
9443 \end_layout
9444
9445 \end_inset
9446
9447 .
9448 \end_layout
9449
9450 \begin_layout Subsection
9451 The CiteEngine file declaration
9452 \end_layout
9453
9454 \begin_layout Standard
9455 A cite engine file must begin with a line like the following:
9456 \end_layout
9457
9458 \begin_layout LyX-Code
9459 #
9460 \backslash
9461 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9462 \end_layout
9463
9464 \begin_layout Standard
9465 The mandatory argument,
9466  in curly brackets,
9467  is the name of the cite style,
9468  as it should appear in 
9469 \begin_inset Flex Noun
9470 status collapsed
9471
9472 \begin_layout Plain Layout
9473 Document\SpecialChar menuseparator
9474 Settings\SpecialChar menuseparator
9475 Bibliography
9476 \end_layout
9477
9478 \end_inset
9479
9480 .
9481  The argument in square brackets is optional:
9482  It declares any \SpecialChar LaTeX
9483  packages on which the cite engine depends.
9484 \end_layout
9485
9486 \begin_layout Standard
9487 The cite engine declaration should then be followed by lines like the following:
9488 \begin_inset Foot
9489 status collapsed
9490
9491 \begin_layout Plain Layout
9492 Preferably in English if the module should be published with \SpecialChar LyX
9493 .
9494  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9495 \end_layout
9496
9497 \end_inset
9498
9499
9500 \end_layout
9501
9502 \begin_layout LyX-Code
9503 # DescriptionBegin
9504 \end_layout
9505
9506 \begin_layout LyX-Code
9507 #   Biblatex supports many author-year and numerical styles.
9508 \end_layout
9509
9510 \begin_layout LyX-Code
9511 #   It is mainly aimed at the Humanities.
9512  It is highly
9513 \end_layout
9514
9515 \begin_layout LyX-Code
9516 #   customizable,
9517  fully localized and provides many features
9518 \end_layout
9519
9520 \begin_layout LyX-Code
9521 #   that are not possible with BibTeX.
9522  The use of 'biber' as
9523 \end_layout
9524
9525 \begin_layout LyX-Code
9526 #   bibliography processor is advised.
9527 \end_layout
9528
9529 \begin_layout LyX-Code
9530 # DescriptionEnd
9531 \end_layout
9532
9533 \begin_layout Standard
9534 The description is used in 
9535 \begin_inset Flex Noun
9536 status collapsed
9537
9538 \begin_layout Plain Layout
9539 Document\SpecialChar menuseparator
9540 Settings\SpecialChar menuseparator
9541 Bibliography
9542 \end_layout
9543
9544 \end_inset
9545
9546  to provide the user with information about the cite engine.
9547 \end_layout
9548
9549 \begin_layout Subsection
9550 Format number
9551 \end_layout
9552
9553 \begin_layout Standard
9554 The first non-comment line of any layout file,
9555  included file,
9556  or module 
9557 \emph on
9558 must
9559 \emph default
9560  contain the file format number:
9561 \end_layout
9562
9563 \begin_layout Description
9564 \begin_inset Flex Code
9565 status collapsed
9566
9567 \begin_layout Plain Layout
9568 Format
9569 \end_layout
9570
9571 \end_inset
9572
9573  [
9574 \begin_inset Flex Code
9575 status collapsed
9576
9577 \begin_layout Plain Layout
9578 int
9579 \end_layout
9580
9581 \end_inset
9582
9583 ] The format number of the layout file.
9584 \end_layout
9585
9586 \begin_layout Standard
9587 This tag was introduced with \SpecialChar LyX
9588
9589 \begin_inset space ~
9590 \end_inset
9591
9592 1.4.0.
9593  Layout files from older \SpecialChar LyX
9594  versions do not have an explicit file format and are considered to have 
9595 \begin_inset Flex Code
9596 status collapsed
9597
9598 \begin_layout Plain Layout
9599 Format
9600 \begin_inset space ~
9601 \end_inset
9602
9603 1
9604 \end_layout
9605
9606 \end_inset
9607
9608 .
9609  The format for the present version of \SpecialChar LyX
9610  is format 60.
9611  But each version of \SpecialChar LyX
9612  is capable of reading earlier versions' layout files,
9613  just as they are capable of reading files produced by earlier versions of \SpecialChar LyX
9614 .
9615  There is,
9616  however,
9617  no provision for converting to earlier formats.
9618 \end_layout
9619
9620 \begin_layout Subsection
9621 \begin_inset CommandInset label
9622 LatexCommand label
9623 name "subsec:General-text-class"
9624
9625 \end_inset
9626
9627 General text class parameters
9628 \end_layout
9629
9630 \begin_layout Standard
9631 These are general parameters that govern the behavior of an entire document class.
9632  (This does 
9633 \emph on
9634 not
9635 \emph default
9636  mean that they must appear in 
9637 \begin_inset Flex Code
9638 status collapsed
9639
9640 \begin_layout Plain Layout
9641 .layout
9642 \end_layout
9643
9644 \end_inset
9645
9646  files rather than in modules.
9647  A module can contain any layout tag.)
9648 \end_layout
9649
9650 \begin_layout Description
9651
9652 \change_inserted -712698321 1526899478
9653 \begin_inset Flex Code
9654 status collapsed
9655
9656 \begin_layout Plain Layout
9657
9658 \change_inserted -712698321 1526898610
9659 AddToCiteEngine <engine>
9660 \change_unchanged
9661
9662 \end_layout
9663
9664 \end_inset
9665
9666  Extends the possibilities for displaying citation references.
9667  See 
9668 \begin_inset CommandInset ref
9669 LatexCommand ref
9670 reference "subsec:Citation-engine-description"
9671 plural "false"
9672 caps "false"
9673 noprefix "false"
9674 nolink "false"
9675
9676 \end_inset
9677
9678  for details.
9679  Must end with 
9680 \begin_inset Flex Code
9681 status collapsed
9682
9683 \begin_layout Plain Layout
9684
9685 \change_inserted -712698321 1526898823
9686 End
9687 \change_unchanged
9688
9689 \end_layout
9690
9691 \end_inset
9692
9693 .
9694 \end_layout
9695
9696 \begin_layout Description
9697 \begin_inset Flex Code
9698 status collapsed
9699
9700 \begin_layout Plain Layout
9701 AddToHTMLPreamble
9702 \end_layout
9703
9704 \end_inset
9705
9706  Adds information that will be output in the 
9707 \begin_inset Flex Code
9708 status collapsed
9709
9710 \begin_layout Plain Layout
9711 <head>
9712 \end_layout
9713
9714 \end_inset
9715
9716  block when the document is output to XHTML.
9717  Typically,
9718  this would be used to output CSS style information,
9719  but it can be used for anything that can appear in 
9720 \begin_inset Flex Code
9721 status collapsed
9722
9723 \begin_layout Plain Layout
9724 <head>
9725 \end_layout
9726
9727 \end_inset
9728
9729 .
9730  Must end with 
9731 \begin_inset Quotes eld
9732 \end_inset
9733
9734
9735 \begin_inset Flex Code
9736 status collapsed
9737
9738 \begin_layout Plain Layout
9739 EndPreamble
9740 \end_layout
9741
9742 \end_inset
9743
9744
9745 \begin_inset Quotes erd
9746 \end_inset
9747
9748 .
9749 \end_layout
9750
9751 \begin_layout Description
9752 \begin_inset Flex Code
9753 status collapsed
9754
9755 \begin_layout Plain Layout
9756 AddToPreamble
9757 \end_layout
9758
9759 \end_inset
9760
9761  Adds information to the document preamble.
9762  Must end with
9763 \begin_inset Newline newline
9764 \end_inset
9765
9766
9767 \begin_inset Quotes eld
9768 \end_inset
9769
9770
9771 \begin_inset Flex Code
9772 status collapsed
9773
9774 \begin_layout Plain Layout
9775 EndPreamble
9776 \end_layout
9777
9778 \end_inset
9779
9780
9781 \begin_inset Quotes erd
9782 \end_inset
9783
9784 .
9785 \change_inserted -712698321 1562592950
9786
9787 \end_layout
9788
9789 \begin_layout Description
9790
9791 \change_inserted -712698321 1562593040
9792 \begin_inset Flex Code
9793 status collapsed
9794
9795 \begin_layout Plain Layout
9796
9797 \change_inserted -712698321 1562592954
9798 BibInToc
9799 \change_unchanged
9800
9801 \end_layout
9802
9803 \end_inset
9804
9805  [
9806 \begin_inset Flex Code
9807 status collapsed
9808
9809 \begin_layout Plain Layout
9810
9811 \change_inserted -712698321 1562592950
9812
9813 \emph on
9814 0
9815 \change_unchanged
9816
9817 \end_layout
9818
9819 \end_inset
9820
9821 ,
9822 \begin_inset space \thinspace{}
9823 \end_inset
9824
9825
9826 \begin_inset Flex Code
9827 status collapsed
9828
9829 \begin_layout Plain Layout
9830
9831 \change_inserted -712698321 1562592950
9832 1
9833 \change_unchanged
9834
9835 \end_layout
9836
9837 \end_inset
9838
9839 ] If the document class adds the bibliography to the table of contents,
9840  add this option with value 
9841 \begin_inset Flex Code
9842 status collapsed
9843
9844 \begin_layout Plain Layout
9845
9846 \change_inserted -712698321 1562592996
9847 1
9848 \change_unchanged
9849
9850 \end_layout
9851
9852 \end_inset
9853
9854  (or 
9855 \begin_inset Flex Code
9856 status collapsed
9857
9858 \begin_layout Plain Layout
9859
9860 \change_inserted -712698321 1562593006
9861 true
9862 \change_unchanged
9863
9864 \end_layout
9865
9866 \end_inset
9867
9868 ).
9869  This prevents the bibliography from being added twice.
9870 \change_unchanged
9871
9872 \end_layout
9873
9874 \begin_layout Description
9875 \begin_inset Flex Code
9876 status collapsed
9877
9878 \begin_layout Plain Layout
9879 CiteEngine <engine>
9880 \end_layout
9881
9882 \end_inset
9883
9884  Defines the possibilities for displaying citation references.
9885  See 
9886 \begin_inset CommandInset ref
9887 LatexCommand ref
9888 reference "subsec:Citation-engine-description"
9889 plural "false"
9890 caps "false"
9891 noprefix "false"
9892 nolink "false"
9893
9894 \end_inset
9895
9896  for details.
9897  Must end with 
9898 \begin_inset Quotes eld
9899 \end_inset
9900
9901
9902 \begin_inset Flex Code
9903 status collapsed
9904
9905 \begin_layout Plain Layout
9906 End
9907 \end_layout
9908
9909 \end_inset
9910
9911
9912 \begin_inset Quotes erd
9913 \end_inset
9914
9915 .
9916  Primarily used in cite engine files (see 
9917 \begin_inset CommandInset ref
9918 LatexCommand ref
9919 reference "subsec:Cite-Engine-Files"
9920 plural "false"
9921 caps "false"
9922 noprefix "false"
9923 nolink "false"
9924
9925 \end_inset
9926
9927 ).
9928
9929 \change_inserted -712698321 1526898530
9930  Note that if you specify this in a layout file or module,
9931  any cite engine definition will be overridden.
9932  Also see 
9933 \begin_inset Flex Code
9934 status collapsed
9935
9936 \begin_layout Plain Layout
9937
9938 \change_inserted -712698321 1526898530
9939 AddToCiteEngine
9940 \change_unchanged
9941
9942 \end_layout
9943
9944 \end_inset
9945
9946 .
9947 \change_unchanged
9948
9949 \end_layout
9950
9951 \begin_layout Description
9952 \begin_inset Flex Code
9953 status collapsed
9954
9955 \begin_layout Plain Layout
9956 CiteFormat
9957 \end_layout
9958
9959 \end_inset
9960
9961  Defines formats for use in the display of bibliographic information.
9962  See 
9963 \begin_inset CommandInset ref
9964 LatexCommand ref
9965 reference "subsec:Citation-format-description"
9966 nolink "false"
9967
9968 \end_inset
9969
9970  for details.
9971  Must end with 
9972 \begin_inset Quotes eld
9973 \end_inset
9974
9975
9976 \begin_inset Flex Code
9977 status collapsed
9978
9979 \begin_layout Plain Layout
9980 End
9981 \end_layout
9982
9983 \end_inset
9984
9985
9986 \begin_inset Quotes erd
9987 \end_inset
9988
9989 .
9990  Primarily used in cite engine files (see 
9991 \begin_inset CommandInset ref
9992 LatexCommand ref
9993 reference "subsec:Cite-Engine-Files"
9994 plural "false"
9995 caps "false"
9996 noprefix "false"
9997 nolink "false"
9998
9999 \end_inset
10000
10001 ).
10002
10003 \change_inserted -712698321 1526898585
10004  A cite format defined in a layout or module will override the cite engine definition.
10005 \change_unchanged
10006
10007 \end_layout
10008
10009 \begin_layout Description
10010 \begin_inset Flex Code
10011 status collapsed
10012
10013 \begin_layout Plain Layout
10014 CiteFramework
10015 \end_layout
10016
10017 \end_inset
10018
10019  [
10020 \begin_inset Flex Code
10021 status collapsed
10022
10023 \begin_layout Plain Layout
10024
10025 \emph on
10026 bibtex
10027 \end_layout
10028
10029 \end_inset
10030
10031 ,
10032 \begin_inset Flex Code
10033 status collapsed
10034
10035 \begin_layout Plain Layout
10036 biblatex
10037 \end_layout
10038
10039 \end_inset
10040
10041 ] Determines whether 
10042 \family sans
10043 Biblatex
10044 \family default
10045  or Bib\SpecialChar TeX
10046  is used to generate a Bibliography.
10047  Primarily used in cite engine files (see 
10048 \begin_inset CommandInset ref
10049 LatexCommand ref
10050 reference "subsec:Cite-Engine-Files"
10051 plural "false"
10052 caps "false"
10053 noprefix "false"
10054 nolink "false"
10055
10056 \end_inset
10057
10058 ).
10059 \end_layout
10060
10061 \begin_layout Description
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 ClassOptions
10067 \end_layout
10068
10069 \end_inset
10070
10071  Describes various global options supported by the document class.
10072  See 
10073 \begin_inset CommandInset ref
10074 LatexCommand ref
10075 reference "subsec:ClassOptions"
10076 nolink "false"
10077
10078 \end_inset
10079
10080  for a description.
10081  Must end with 
10082 \begin_inset Quotes eld
10083 \end_inset
10084
10085
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 End
10091 \end_layout
10092
10093 \end_inset
10094
10095
10096 \begin_inset Quotes erd
10097 \end_inset
10098
10099 .
10100 \end_layout
10101
10102 \begin_layout Description
10103 \begin_inset Flex Code
10104 status collapsed
10105
10106 \begin_layout Plain Layout
10107 Columns
10108 \end_layout
10109
10110 \end_inset
10111
10112  [
10113 \begin_inset Flex Code
10114 status collapsed
10115
10116 \begin_layout Plain Layout
10117
10118 \emph on
10119 1
10120 \end_layout
10121
10122 \end_inset
10123
10124 ,
10125 \begin_inset space \thinspace{}
10126 \end_inset
10127
10128
10129 \begin_inset Flex Code
10130 status collapsed
10131
10132 \begin_layout Plain Layout
10133 2
10134 \end_layout
10135
10136 \end_inset
10137
10138 ] Whether the class should 
10139 \emph on
10140 default
10141 \emph default
10142  to having one or two columns.
10143  Can be changed in the 
10144 \begin_inset Flex Noun
10145 status collapsed
10146
10147 \begin_layout Plain Layout
10148 Document\SpecialChar menuseparator
10149 Settings
10150 \end_layout
10151
10152 \end_inset
10153
10154  dialog.
10155 \end_layout
10156
10157 \begin_layout Description
10158 \begin_inset Flex Code
10159 status collapsed
10160
10161 \begin_layout Plain Layout
10162 Counter
10163 \end_layout
10164
10165 \end_inset
10166
10167  [
10168 \begin_inset Flex Code
10169 status collapsed
10170
10171 \begin_layout Plain Layout
10172 string
10173 \end_layout
10174
10175 \end_inset
10176
10177 ] This sequence defines the properties for a counter.
10178  If the counter does not yet exist,
10179  it is created;
10180  if it does exist,
10181  it is modified.
10182  Must end with 
10183 \begin_inset Quotes eld
10184 \end_inset
10185
10186
10187 \begin_inset Flex Code
10188 status collapsed
10189
10190 \begin_layout Plain Layout
10191 End
10192 \end_layout
10193
10194 \end_inset
10195
10196
10197 \begin_inset Quotes erd
10198 \end_inset
10199
10200 .
10201 \begin_inset Newline newline
10202 \end_inset
10203
10204 See 
10205 \begin_inset CommandInset ref
10206 LatexCommand ref
10207 reference "subsec:Counters"
10208 nolink "false"
10209
10210 \end_inset
10211
10212  for details on counters.
10213 \end_layout
10214
10215 \begin_layout Description
10216 \begin_inset Flex Code
10217 status collapsed
10218
10219 \begin_layout Plain Layout
10220 DefaultFont
10221 \end_layout
10222
10223 \end_inset
10224
10225  Sets the default font used to display the document.
10226  See 
10227 \begin_inset CommandInset ref
10228 LatexCommand ref
10229 reference "subsec:Font-description"
10230 nolink "false"
10231
10232 \end_inset
10233
10234  for how to declare fonts.
10235  Must end with 
10236 \begin_inset Quotes eld
10237 \end_inset
10238
10239
10240 \begin_inset Flex Code
10241 status collapsed
10242
10243 \begin_layout Plain Layout
10244 EndFont
10245 \end_layout
10246
10247 \end_inset
10248
10249
10250 \begin_inset Quotes erd
10251 \end_inset
10252
10253 .
10254 \end_layout
10255
10256 \begin_layout Description
10257 \begin_inset Flex Code
10258 status collapsed
10259
10260 \begin_layout Plain Layout
10261 DefaultModule
10262 \end_layout
10263
10264 \end_inset
10265
10266  [
10267 \begin_inset Flex Code
10268 status collapsed
10269
10270 \begin_layout Plain Layout
10271 <module>
10272 \end_layout
10273
10274 \end_inset
10275
10276 ] Specifies a module to be included by default with this document class.
10277  The module is specified as filename without the 
10278 \begin_inset Flex Code
10279 status collapsed
10280
10281 \begin_layout Plain Layout
10282 .module
10283 \end_layout
10284
10285 \end_inset
10286
10287  extension.
10288  The user can still remove the module,
10289  but it will be active at the outset.
10290  (This applies only when new files are created,
10291  or when this class is chosen for an existing document.)
10292 \end_layout
10293
10294 \begin_layout Description
10295 \begin_inset Flex Code
10296 status collapsed
10297
10298 \begin_layout Plain Layout
10299 DefaultStyle
10300 \end_layout
10301
10302 \end_inset
10303
10304  [
10305 \begin_inset Flex Code
10306 status collapsed
10307
10308 \begin_layout Plain Layout
10309 <style>
10310 \end_layout
10311
10312 \end_inset
10313
10314 ] This is the style that will be assigned to new paragraphs,
10315  usually 
10316 \begin_inset Flex Noun
10317 status collapsed
10318
10319 \begin_layout Plain Layout
10320 Standard
10321 \end_layout
10322
10323 \end_inset
10324
10325 .
10326  This will default to the first defined style if not given,
10327  but you are encouraged to use this directive.
10328 \end_layout
10329
10330 \begin_layout Description
10331
10332 \change_inserted -970929547 1515112870
10333 \begin_inset Flex Code
10334 status collapsed
10335
10336 \begin_layout Plain Layout
10337
10338 \change_inserted -970929547 1515112782
10339 DocBookRoot
10340 \change_unchanged
10341
10342 \end_layout
10343
10344 \end_inset
10345
10346  [
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351
10352 \change_inserted -970929547 1515112766
10353 string
10354 \change_unchanged
10355
10356 \end_layout
10357
10358 \end_inset
10359
10360 ] The root element (at the top of the document) to use when outputting documents with this class in DocBook.
10361  The default value is 
10362 \begin_inset Quotes eld
10363 \end_inset
10364
10365
10366 \begin_inset Flex Code
10367 status collapsed
10368
10369 \begin_layout Plain Layout
10370
10371 \change_inserted -970929547 1515112845
10372 article
10373 \change_unchanged
10374
10375 \end_layout
10376
10377 \end_inset
10378
10379
10380 \begin_inset Quotes erd
10381 \end_inset
10382
10383 .
10384
10385 \change_deleted 1075283030 1594226862
10386  
10387 \change_inserted 1075283030 1594226777
10388
10389 \end_layout
10390
10391 \begin_layout Description
10392
10393 \change_inserted 1075283030 1594226859
10394 \begin_inset Flex Code
10395 status collapsed
10396
10397 \begin_layout Plain Layout
10398
10399 \change_inserted 1075283030 1594226785
10400 DocBookForceAbstract
10401 \change_unchanged
10402
10403 \end_layout
10404
10405 \end_inset
10406
10407  [
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412
10413 \change_inserted 1075283030 1594226804
10414 boolean
10415 \change_unchanged
10416
10417 \end_layout
10418
10419 \end_inset
10420
10421 ] If 
10422 \begin_inset Quotes eld
10423 \end_inset
10424
10425
10426 \family typewriter
10427 true
10428 \family default
10429
10430 \begin_inset Quotes erd
10431 \end_inset
10432
10433 ,
10434  the root element will always have an 
10435 \family typewriter
10436 <abstract>
10437 \family default
10438  tag.
10439  The default value is 
10440 \begin_inset Quotes eld
10441 \end_inset
10442
10443
10444 \family typewriter
10445 false
10446 \family default
10447
10448 \begin_inset Quotes erd
10449 \end_inset
10450
10451 .
10452 \change_unchanged
10453
10454 \end_layout
10455
10456 \begin_layout Description
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 ExcludesModule
10462 \end_layout
10463
10464 \end_inset
10465
10466  [
10467 \begin_inset Flex Code
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 <module>
10472 \end_layout
10473
10474 \end_inset
10475
10476 ] This tag indicates that the module (which is specified by filename without the 
10477 \begin_inset Flex Code
10478 status collapsed
10479
10480 \begin_layout Plain Layout
10481 .module
10482 \end_layout
10483
10484 \end_inset
10485
10486  extension) cannot be used with this document class.
10487  This might be used in a journal-specific layout file to prevent,
10488  say,
10489  the use of the 
10490 \begin_inset Flex Code
10491 status collapsed
10492
10493 \begin_layout Plain Layout
10494 theorems-sec
10495 \end_layout
10496
10497 \end_inset
10498
10499  module that numbers theorems by section.
10500  This tag may 
10501 \emph on
10502 not
10503 \emph default
10504  be used in a module.
10505  Modules have their own way of excluding other modules (see 
10506 \begin_inset CommandInset ref
10507 LatexCommand ref
10508 reference "subsec:Layout-modules"
10509 nolink "false"
10510
10511 \end_inset
10512
10513 ).
10514 \end_layout
10515
10516 \begin_layout Description
10517 \begin_inset Flex Code
10518 status collapsed
10519
10520 \begin_layout Plain Layout
10521 Float
10522 \end_layout
10523
10524 \end_inset
10525
10526  Defines a new float.
10527  See 
10528 \begin_inset CommandInset ref
10529 LatexCommand ref
10530 reference "subsec:Floats"
10531 nolink "false"
10532
10533 \end_inset
10534
10535  for details.
10536  Must end with 
10537 \begin_inset Quotes eld
10538 \end_inset
10539
10540
10541 \begin_inset Flex Code
10542 status collapsed
10543
10544 \begin_layout Plain Layout
10545 End
10546 \end_layout
10547
10548 \end_inset
10549
10550
10551 \begin_inset Quotes erd
10552 \end_inset
10553
10554 .
10555 \end_layout
10556
10557 \begin_layout Description
10558 \begin_inset Flex Code
10559 status collapsed
10560
10561 \begin_layout Plain Layout
10562 HTMLPreamble
10563 \end_layout
10564
10565 \end_inset
10566
10567  Sets the information that will be output in the 
10568 \begin_inset Flex Code
10569 status collapsed
10570
10571 \begin_layout Plain Layout
10572 <head>
10573 \end_layout
10574
10575 \end_inset
10576
10577  block when this document class is output to XHTML.
10578  Note that this will completely override any prior 
10579 \begin_inset Flex Code
10580 status collapsed
10581
10582 \begin_layout Plain Layout
10583 HTMLPreamble
10584 \end_layout
10585
10586 \end_inset
10587
10588  or 
10589 \begin_inset Flex Code
10590 status collapsed
10591
10592 \begin_layout Plain Layout
10593 AddToHTMLPreamble
10594 \end_layout
10595
10596 \end_inset
10597
10598  declarations.
10599  (Use
10600 \begin_inset Newline newline
10601 \end_inset
10602
10603
10604 \begin_inset Flex Code
10605 status collapsed
10606
10607 \begin_layout Plain Layout
10608 AddToHTMLPreamble
10609 \end_layout
10610
10611 \end_inset
10612
10613  if you just want to add material to the preamble.) Must end with 
10614 \begin_inset Quotes eld
10615 \end_inset
10616
10617
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 EndPreamble
10623 \end_layout
10624
10625 \end_inset
10626
10627
10628 \begin_inset Quotes erd
10629 \end_inset
10630
10631 .
10632 \end_layout
10633
10634 \begin_layout Description
10635 \begin_inset Flex Code
10636 status collapsed
10637
10638 \begin_layout Plain Layout
10639 HTMLTOCSection
10640 \end_layout
10641
10642 \end_inset
10643
10644  [
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 <style>
10650 \end_layout
10651
10652 \end_inset
10653
10654 ] The style to use for the table of contents,
10655  bibliography,
10656  and so forth,
10657  when the document is output to HTML.
10658  For articles,
10659  this should normally be 
10660 \begin_inset Flex Code
10661 status collapsed
10662
10663 \begin_layout Plain Layout
10664 Section
10665 \end_layout
10666
10667 \end_inset
10668
10669 ;
10670  for books 
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 Chapter
10676 \end_layout
10677
10678 \end_inset
10679
10680 .
10681  If it is not given,
10682  then \SpecialChar LyX
10683  will attempt to figure out which layout to use.
10684 \end_layout
10685
10686 \begin_layout Description
10687 \begin_inset Flex Code
10688 status collapsed
10689
10690 \begin_layout Plain Layout
10691 IfCounter
10692 \end_layout
10693
10694 \end_inset
10695
10696  [
10697 \begin_inset Flex Code
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701 <counter>
10702 \end_layout
10703
10704 \end_inset
10705
10706 ] Modifies the properties of the given counter.
10707  If the counter does not exist,
10708  the statement is ignored.
10709  Must end with 
10710 \begin_inset Quotes eld
10711 \end_inset
10712
10713
10714 \begin_inset Flex Code
10715 status collapsed
10716
10717 \begin_layout Plain Layout
10718 End
10719 \end_layout
10720
10721 \end_inset
10722
10723
10724 \begin_inset Quotes erd
10725 \end_inset
10726
10727 .
10728 \begin_inset Newline newline
10729 \end_inset
10730
10731 See 
10732 \begin_inset CommandInset ref
10733 LatexCommand ref
10734 reference "subsec:Counters"
10735 nolink "false"
10736
10737 \end_inset
10738
10739  for details on counters.
10740 \end_layout
10741
10742 \begin_layout Description
10743 \begin_inset Flex Code
10744 status collapsed
10745
10746 \begin_layout Plain Layout
10747 Input
10748 \end_layout
10749
10750 \end_inset
10751
10752  [
10753 \begin_inset Flex Code
10754 status collapsed
10755
10756 \begin_layout Plain Layout
10757 <filename>
10758 \end_layout
10759
10760 \end_inset
10761
10762 ] This allows you to include another layout definition file within yours to avoid duplicating commands.
10763  Common examples are the standard layout files,
10764  for example,
10765  
10766 \begin_inset Flex Code
10767 status collapsed
10768
10769 \begin_layout Plain Layout
10770 stdclass.inc
10771 \end_layout
10772
10773 \end_inset
10774
10775 ,
10776  which contains most of the basic layouts.
10777 \change_inserted -712698321 1611646803
10778
10779 \end_layout
10780
10781 \begin_layout Description
10782
10783 \change_inserted -712698321 1611646804
10784 \begin_inset Flex Code
10785 status collapsed
10786
10787 \begin_layout Plain Layout
10788
10789 \change_inserted -712698321 1611646837
10790 InputGlobal
10791 \change_unchanged
10792
10793 \end_layout
10794
10795 \end_inset
10796
10797  [
10798 \begin_inset Flex Code
10799 status collapsed
10800
10801 \begin_layout Plain Layout
10802
10803 \change_inserted -712698321 1611646804
10804 <filename>
10805 \change_unchanged
10806
10807 \end_layout
10808
10809 \end_inset
10810
10811 ] is a variant of the 
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816
10817 \change_inserted -712698321 1611646804
10818 Input
10819 \change_unchanged
10820
10821 \end_layout
10822
10823 \end_inset
10824
10825  command which does not look for files in the user directory.
10826  This allows to create a file 
10827 \begin_inset Flex Code
10828 status collapsed
10829
10830 \begin_layout Plain Layout
10831
10832 \change_inserted -712698321 1611646804
10833 name.layout
10834 \change_unchanged
10835
10836 \end_layout
10837
10838 \end_inset
10839
10840  or 
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845
10846 \change_inserted -712698321 1611646804
10847 name.inc
10848 \change_unchanged
10849
10850 \end_layout
10851
10852 \end_inset
10853
10854  in the user directory which includes a global file with the same name via 
10855 \begin_inset Flex Code
10856 status collapsed
10857
10858 \begin_layout Plain Layout
10859
10860 \change_inserted -712698321 1611646853
10861 InputGlobal name
10862 \change_unchanged
10863
10864 \end_layout
10865
10866 \end_inset
10867
10868  or 
10869 \begin_inset Flex Code
10870 status collapsed
10871
10872 \begin_layout Plain Layout
10873
10874 \change_inserted -712698321 1611646855
10875 InputGlobal name.inc
10876 \change_unchanged
10877
10878 \end_layout
10879
10880 \end_inset
10881
10882 ,
10883  respectively (with 
10884 \begin_inset Flex Code
10885 status collapsed
10886
10887 \begin_layout Plain Layout
10888
10889 \change_inserted -712698321 1611646804
10890 Input
10891 \change_unchanged
10892
10893 \end_layout
10894
10895 \end_inset
10896
10897 ,
10898  the file would recursively include itself).
10899  This way,
10900  you can modify global files without having to completely copy them.
10901 \change_unchanged
10902
10903 \end_layout
10904
10905 \begin_layout Description
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910 InsetLayout
10911 \end_layout
10912
10913 \end_inset
10914
10915  [
10916 \begin_inset Flex Code
10917 status collapsed
10918
10919 \begin_layout Plain Layout
10920 <type>
10921 \end_layout
10922
10923 \end_inset
10924
10925 ] This section (re-)defines the layout of an inset.
10926  It can be applied to an existing inset or to a new,
10927  user-defined inset,
10928  e.g.,
10929  a new character style.
10930  Must end with 
10931 \begin_inset Quotes eld
10932 \end_inset
10933
10934
10935 \begin_inset Flex Code
10936 status collapsed
10937
10938 \begin_layout Plain Layout
10939 End
10940 \end_layout
10941
10942 \end_inset
10943
10944
10945 \begin_inset Quotes erd
10946 \end_inset
10947
10948 .
10949 \begin_inset Newline newline
10950 \end_inset
10951
10952 See 
10953 \begin_inset CommandInset ref
10954 LatexCommand ref
10955 reference "subsec:Flex-insets-and"
10956 nolink "false"
10957
10958 \end_inset
10959
10960  for more information.
10961  
10962 \end_layout
10963
10964 \begin_layout Description
10965 \begin_inset Flex Code
10966 status collapsed
10967
10968 \begin_layout Plain Layout
10969 LeftMargin
10970 \end_layout
10971
10972 \end_inset
10973
10974  [
10975 \begin_inset Flex Code
10976 status collapsed
10977
10978 \begin_layout Plain Layout
10979 string
10980 \end_layout
10981
10982 \end_inset
10983
10984 ] A string that indicates the width of the left margin on the screen,
10985  for example,
10986  
10987 \begin_inset Quotes eld
10988 \end_inset
10989
10990
10991 \begin_inset Flex Code
10992 status collapsed
10993
10994 \begin_layout Plain Layout
10995 MMMMM
10996 \end_layout
10997
10998 \end_inset
10999
11000
11001 \begin_inset Quotes erd
11002 \end_inset
11003
11004 .
11005  (Note that this is not a `length',
11006  like 
11007 \begin_inset Quotes eld
11008 \end_inset
11009
11010 2ex
11011 \begin_inset Quotes erd
11012 \end_inset
11013
11014 .)
11015 \end_layout
11016
11017 \begin_layout Description
11018 \begin_inset Flex Code
11019 status collapsed
11020
11021 \begin_layout Plain Layout
11022 MaxCiteNames
11023 \end_layout
11024
11025 \end_inset
11026
11027  [
11028 \begin_inset Flex Code
11029 status collapsed
11030
11031 \begin_layout Plain Layout
11032 integer
11033 \end_layout
11034
11035 \end_inset
11036
11037 ] An integer that determines the maximal number of names displayed in an author-year citation before the citation switches to 
11038 \begin_inset Quotes eld
11039 \end_inset
11040
11041 FirstAuthor et al.
11042 \begin_inset Quotes erd
11043 \end_inset
11044
11045 .
11046  Primarily used in cite engine files (see 
11047 \begin_inset CommandInset ref
11048 LatexCommand ref
11049 reference "subsec:Cite-Engine-Files"
11050 plural "false"
11051 caps "false"
11052 noprefix "false"
11053 nolink "false"
11054
11055 \end_inset
11056
11057 ).
11058 \end_layout
11059
11060 \begin_layout Description
11061
11062 \change_inserted -712698321 1612018485
11063 \begin_inset Flex Code
11064 status collapsed
11065
11066 \begin_layout Plain Layout
11067
11068 \change_inserted -712698321 1612018457
11069 ModifyInsetLayout
11070 \change_unchanged
11071
11072 \end_layout
11073
11074 \end_inset
11075
11076  [
11077 \begin_inset Flex Code
11078 status collapsed
11079
11080 \begin_layout Plain Layout
11081
11082 \change_inserted -712698321 1612018466
11083 <type>
11084 \change_unchanged
11085
11086 \end_layout
11087
11088 \end_inset
11089
11090 ] Modifies the layout of an inset.
11091  If the layout does not exist,
11092  this section is ignored.
11093  Must end with 
11094 \begin_inset Quotes eld
11095 \end_inset
11096
11097
11098 \begin_inset Flex Code
11099 status collapsed
11100
11101 \begin_layout Plain Layout
11102
11103 \change_inserted -712698321 1612018452
11104 End
11105 \change_unchanged
11106
11107 \end_layout
11108
11109 \end_inset
11110
11111
11112 \begin_inset Quotes erd
11113 \end_inset
11114
11115 .
11116 \end_layout
11117
11118 \begin_layout Description
11119 \begin_inset Flex Code
11120 status collapsed
11121
11122 \begin_layout Plain Layout
11123 ModifyStyle
11124 \end_layout
11125
11126 \end_inset
11127
11128  [
11129 \begin_inset Flex Code
11130 status collapsed
11131
11132 \begin_layout Plain Layout
11133 <style>
11134 \end_layout
11135
11136 \end_inset
11137
11138 ] Modifies the properties of the given paragraph style.
11139  If the style does not exist,
11140  this section is ignored.
11141  Must end with 
11142 \begin_inset Quotes eld
11143 \end_inset
11144
11145
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150 End
11151 \end_layout
11152
11153 \end_inset
11154
11155
11156 \begin_inset Quotes erd
11157 \end_inset
11158
11159 .
11160 \end_layout
11161
11162 \begin_layout Description
11163 \begin_inset Flex Code
11164 status collapsed
11165
11166 \begin_layout Plain Layout
11167 NoCounter
11168 \end_layout
11169
11170 \end_inset
11171
11172  [
11173 \begin_inset Flex Code
11174 status collapsed
11175
11176 \begin_layout Plain Layout
11177 <counter>
11178 \end_layout
11179
11180 \end_inset
11181
11182 ] Deletes an existing counter,
11183  usually one defined in an included file.
11184 \end_layout
11185
11186 \begin_layout Description
11187 \begin_inset Flex Code
11188 status collapsed
11189
11190 \begin_layout Plain Layout
11191 NoFloat
11192 \end_layout
11193
11194 \end_inset
11195
11196  [
11197 \begin_inset Flex Code
11198 status collapsed
11199
11200 \begin_layout Plain Layout
11201 <float>
11202 \end_layout
11203
11204 \end_inset
11205
11206 ] Deletes an existing float.
11207  This is particularly useful when you want to suppress a float that has been defined in an input file.
11208 \end_layout
11209
11210 \begin_layout Description
11211 \begin_inset Flex Code
11212 status collapsed
11213
11214 \begin_layout Plain Layout
11215 NoStyle
11216 \end_layout
11217
11218 \end_inset
11219
11220  [
11221 \begin_inset Flex Code
11222 status collapsed
11223
11224 \begin_layout Plain Layout
11225 <style>
11226 \end_layout
11227
11228 \end_inset
11229
11230 ] Deletes an existing style.
11231 \end_layout
11232
11233 \begin_layout Description
11234 \begin_inset Flex Code
11235 status collapsed
11236
11237 \begin_layout Plain Layout
11238 OutlinerName
11239 \end_layout
11240
11241 \end_inset
11242
11243  [
11244 \begin_inset Flex Code
11245 status collapsed
11246
11247 \begin_layout Plain Layout
11248 <type>
11249 \end_layout
11250
11251 \end_inset
11252
11253 ] [
11254 \begin_inset Flex Code
11255 status collapsed
11256
11257 \begin_layout Plain Layout
11258 <string>
11259 \end_layout
11260
11261 \end_inset
11262
11263 ] Define a new table of contents with type 
11264 \begin_inset Flex Code
11265 status collapsed
11266
11267 \begin_layout Plain Layout
11268 <type>
11269 \end_layout
11270
11271 \end_inset
11272
11273  and name 
11274 \begin_inset Flex Code
11275 status collapsed
11276
11277 \begin_layout Plain Layout
11278 <string>
11279 \end_layout
11280
11281 \end_inset
11282
11283 .
11284  See also the AddToToc commands.
11285 \end_layout
11286
11287 \begin_layout Description
11288 \begin_inset Flex Code
11289 status collapsed
11290
11291 \begin_layout Plain Layout
11292 OutputFormat
11293 \end_layout
11294
11295 \end_inset
11296
11297  [
11298 \begin_inset Flex Code
11299 status collapsed
11300
11301 \begin_layout Plain Layout
11302 <format>
11303 \end_layout
11304
11305 \end_inset
11306
11307 ] The file format (as defined in the \SpecialChar LyX
11308  preferences) produced by this document class.
11309  It is mainly useful when 
11310 \begin_inset Flex Code
11311 status collapsed
11312
11313 \begin_layout Plain Layout
11314 OutputType
11315 \end_layout
11316
11317 \end_inset
11318
11319  is 
11320 \begin_inset Flex Code
11321 status collapsed
11322
11323 \begin_layout Plain Layout
11324 literate
11325 \end_layout
11326
11327 \end_inset
11328
11329  and one wants to define a new type of literate document.
11330  The format is reset to 
11331 \change_deleted 5863208 1594239413
11332
11333 \begin_inset Quotes eld
11334 \end_inset
11335
11336
11337 \begin_inset Flex Code
11338 status collapsed
11339
11340 \begin_layout Plain Layout
11341 docbook
11342 \end_layout
11343
11344 \end_inset
11345
11346
11347 \begin_inset Quotes erd
11348 \end_inset
11349
11350  or
11351 \change_unchanged
11352  
11353 \begin_inset Quotes eld
11354 \end_inset
11355
11356
11357 \begin_inset Flex Code
11358 status collapsed
11359
11360 \begin_layout Plain Layout
11361 latex
11362 \end_layout
11363
11364 \end_inset
11365
11366
11367 \begin_inset Quotes erd
11368 \end_inset
11369
11370  when the corresponding 
11371 \begin_inset Flex Code
11372 status collapsed
11373
11374 \begin_layout Plain Layout
11375 OutputType
11376 \end_layout
11377
11378 \end_inset
11379
11380  parameter is encountered.
11381 \end_layout
11382
11383 \begin_layout Description
11384 \begin_inset Flex Code
11385 status collapsed
11386
11387 \begin_layout Plain Layout
11388 OutputType
11389 \end_layout
11390
11391 \end_inset
11392
11393  [
11394 \begin_inset Flex Code
11395 status collapsed
11396
11397 \begin_layout Plain Layout
11398
11399 \emph on
11400 lat
11401 \emph default
11402 ex
11403 \end_layout
11404
11405 \end_inset
11406
11407 ,
11408  
11409 \change_deleted 5863208 1594239430
11410
11411 \begin_inset Flex Code
11412 status collapsed
11413
11414 \begin_layout Plain Layout
11415 docbook
11416 \end_layout
11417
11418 \end_inset
11419
11420 ,
11421
11422 \change_unchanged
11423  
11424 \begin_inset Flex Code
11425 status collapsed
11426
11427 \begin_layout Plain Layout
11428 literate
11429 \end_layout
11430
11431 \end_inset
11432
11433 ] Specifies what sort of output documents using this class will produce.
11434 \end_layout
11435
11436 \begin_layout Description
11437 \begin_inset Flex Code
11438 status collapsed
11439
11440 \begin_layout Plain Layout
11441 PackageOptions
11442 \end_layout
11443
11444 \end_inset
11445
11446  [
11447 \begin_inset Flex Code
11448 status collapsed
11449
11450 \begin_layout Plain Layout
11451 string
11452 \end_layout
11453
11454 \end_inset
11455
11456  
11457 \begin_inset Flex Code
11458 status collapsed
11459
11460 \begin_layout Plain Layout
11461 string
11462 \end_layout
11463
11464 \end_inset
11465
11466 ] Specifies options,
11467  given in the second string,
11468  for the package named by the first string.
11469  For example,
11470  
11471 \begin_inset Quotes eld
11472 \end_inset
11473
11474
11475 \begin_inset Flex Code
11476 status collapsed
11477
11478 \begin_layout Plain Layout
11479 PackageOptions natbib square
11480 \end_layout
11481
11482 \end_inset
11483
11484
11485 \begin_inset Quotes erd
11486 \end_inset
11487
11488  will cause 
11489 \begin_inset Flex Code
11490 status collapsed
11491
11492 \begin_layout Plain Layout
11493 natbib
11494 \end_layout
11495
11496 \end_inset
11497
11498  to be loaded with the 
11499 \begin_inset Flex Code
11500 status collapsed
11501
11502 \begin_layout Plain Layout
11503 square
11504 \end_layout
11505
11506 \end_inset
11507
11508  option.
11509  (For \SpecialChar TeX
11510 perts,
11511  this causes \SpecialChar LyX
11512  to output:
11513  
11514 \begin_inset Flex Code
11515 status collapsed
11516
11517 \begin_layout Plain Layout
11518
11519 \backslash
11520 PassOptionsToPackage{natbib}{square}
11521 \end_layout
11522
11523 \end_inset
11524
11525  prior to loading 
11526 \begin_inset Flex Code
11527 status collapsed
11528
11529 \begin_layout Plain Layout
11530 natbib
11531 \end_layout
11532
11533 \end_inset
11534
11535 .)
11536 \change_inserted -712698321 1565102364
11537
11538 \end_layout
11539
11540 \begin_layout Description
11541
11542 \change_inserted -712698321 1565102470
11543 \begin_inset Flex Code
11544 status collapsed
11545
11546 \begin_layout Plain Layout
11547
11548 \change_inserted -712698321 1565102365
11549 PageSize
11550 \change_unchanged
11551
11552 \end_layout
11553
11554 \end_inset
11555
11556  [
11557 \begin_inset Flex Code
11558 status collapsed
11559
11560 \begin_layout Plain Layout
11561
11562 \change_inserted -712698321 1565105222
11563
11564 \emph on
11565 custom
11566 \emph default
11567 ,
11568  letter,
11569  legal,
11570  executive,
11571  a0,
11572  a1,
11573  a2,
11574  a3,
11575  a4,
11576  a5,
11577  a6,
11578  b0,
11579  b1,
11580  b2,
11581  b3,
11582  b4,
11583  b5,
11584  b6,
11585  c0,
11586  c1,
11587  c2,
11588  c3,
11589  c4,
11590  c5,
11591  c6,
11592  b0j,
11593  b1j,
11594  b2j,
11595  b3j,
11596  b4j,
11597  b5j,
11598  b6j
11599 \change_unchanged
11600
11601 \end_layout
11602
11603 \end_inset
11604
11605 ] The default page size.
11606  This is used by some converters.
11607 \change_unchanged
11608
11609 \end_layout
11610
11611 \begin_layout Description
11612 \begin_inset Flex Code
11613 status collapsed
11614
11615 \begin_layout Plain Layout
11616 PageStyle
11617 \end_layout
11618
11619 \end_inset
11620
11621  [
11622 \begin_inset Flex Code
11623 status collapsed
11624
11625 \begin_layout Plain Layout
11626
11627 \emph on
11628 plain
11629 \end_layout
11630
11631 \end_inset
11632
11633 ,
11634  
11635 \begin_inset Flex Code
11636 status collapsed
11637
11638 \begin_layout Plain Layout
11639 empty
11640 \end_layout
11641
11642 \end_inset
11643
11644 ,
11645  
11646 \begin_inset Flex Code
11647 status collapsed
11648
11649 \begin_layout Plain Layout
11650 headings
11651 \end_layout
11652
11653 \end_inset
11654
11655 ] The default pagestyle.
11656  Can be changed in the 
11657 \begin_inset Flex Noun
11658 status collapsed
11659
11660 \begin_layout Plain Layout
11661 Document\SpecialChar menuseparator
11662 Settings
11663 \end_layout
11664
11665 \end_inset
11666
11667  dialog.
11668 \end_layout
11669
11670 \begin_layout Description
11671 \begin_inset Flex Code
11672 status collapsed
11673
11674 \begin_layout Plain Layout
11675 Preamble
11676 \end_layout
11677
11678 \end_inset
11679
11680  Sets the preamble for the \SpecialChar LaTeX
11681  document.
11682  Note that this will completely override any prior 
11683 \begin_inset Flex Code
11684 status collapsed
11685
11686 \begin_layout Plain Layout
11687 Preamble
11688 \end_layout
11689
11690 \end_inset
11691
11692  or 
11693 \begin_inset Flex Code
11694 status collapsed
11695
11696 \begin_layout Plain Layout
11697 AddToPreamble
11698 \end_layout
11699
11700 \end_inset
11701
11702  declarations.
11703  (Use 
11704 \begin_inset Flex Code
11705 status collapsed
11706
11707 \begin_layout Plain Layout
11708 AddToPreamble
11709 \end_layout
11710
11711 \end_inset
11712
11713  if you just want to add material to the preamble.) Must end with 
11714 \begin_inset Quotes eld
11715 \end_inset
11716
11717
11718 \begin_inset Flex Code
11719 status collapsed
11720
11721 \begin_layout Plain Layout
11722 EndPreamble
11723 \end_layout
11724
11725 \end_inset
11726
11727
11728 \begin_inset Quotes erd
11729 \end_inset
11730
11731 .
11732 \change_inserted -712698321 1612018500
11733
11734 \end_layout
11735
11736 \begin_layout Description
11737
11738 \change_inserted -712698321 1612018547
11739 \begin_inset Flex Code
11740 status collapsed
11741
11742 \begin_layout Plain Layout
11743
11744 \change_inserted -712698321 1612018506
11745 ProvideInsetLayout
11746 \change_unchanged
11747
11748 \end_layout
11749
11750 \end_inset
11751
11752  [
11753 \begin_inset Flex Code
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757
11758 \change_inserted -712698321 1612018509
11759 <type>
11760 \change_unchanged
11761
11762 \end_layout
11763
11764 \end_inset
11765
11766 ] Defines the layout of an inset if it does not already exist.
11767  If the layout does exist,
11768  this section is ignored.
11769  Must end with 
11770 \begin_inset Quotes eld
11771 \end_inset
11772
11773
11774 \begin_inset Flex Code
11775 status collapsed
11776
11777 \begin_layout Plain Layout
11778
11779 \change_inserted -712698321 1612018500
11780 End
11781 \change_unchanged
11782
11783 \end_layout
11784
11785 \end_inset
11786
11787
11788 \begin_inset Quotes erd
11789 \end_inset
11790
11791 .
11792 \change_unchanged
11793
11794 \end_layout
11795
11796 \begin_layout Description
11797 \begin_inset Flex Code
11798 status collapsed
11799
11800 \begin_layout Plain Layout
11801 Provides
11802 \end_layout
11803
11804 \end_inset
11805
11806  [
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 string
11812 \end_layout
11813
11814 \end_inset
11815
11816 ] [
11817 \begin_inset Flex Code
11818 status collapsed
11819
11820 \begin_layout Plain Layout
11821
11822 \emph on
11823 0
11824 \end_layout
11825
11826 \end_inset
11827
11828 ,
11829 \begin_inset space \thinspace{}
11830 \end_inset
11831
11832
11833 \begin_inset Flex Code
11834 status collapsed
11835
11836 \begin_layout Plain Layout
11837 1
11838 \end_layout
11839
11840 \end_inset
11841
11842 ] Whether the class already provides the feature 
11843 \begin_inset Flex Code
11844 status collapsed
11845
11846 \begin_layout Plain Layout
11847 string
11848 \end_layout
11849
11850 \end_inset
11851
11852 .
11853  A feature is in general the name of a package (e.
11854 \begin_inset space \thinspace{}
11855 \end_inset
11856
11857 g.
11858 \begin_inset space \space{}
11859 \end_inset
11860
11861
11862 \begin_inset Flex Code
11863 status collapsed
11864
11865 \begin_layout Plain Layout
11866 amsmath
11867 \end_layout
11868
11869 \end_inset
11870
11871  or 
11872 \begin_inset Flex Code
11873 status collapsed
11874
11875 \begin_layout Plain Layout
11876 makeidx
11877 \end_layout
11878
11879 \end_inset
11880
11881 ) or a macro (e.
11882 \begin_inset space \thinspace{}
11883 \end_inset
11884
11885 g.
11886 \begin_inset space \space{}
11887 \end_inset
11888
11889
11890 \begin_inset Flex Code
11891 status collapsed
11892
11893 \begin_layout Plain Layout
11894 url
11895 \end_layout
11896
11897 \end_inset
11898
11899  or 
11900 \begin_inset Flex Code
11901 status collapsed
11902
11903 \begin_layout Plain Layout
11904 boldsymbol
11905 \end_layout
11906
11907 \end_inset
11908
11909 ).
11910  See 
11911 \begin_inset CommandInset ref
11912 LatexCommand ref
11913 reference "chap:List-of-functions"
11914 nolink "false"
11915
11916 \end_inset
11917
11918  for the list of features.
11919 \end_layout
11920
11921 \begin_layout Description
11922 \begin_inset Flex Code
11923 status collapsed
11924
11925 \begin_layout Plain Layout
11926 ProvidesModule
11927 \end_layout
11928
11929 \end_inset
11930
11931  [
11932 \begin_inset Flex Code
11933 status collapsed
11934
11935 \begin_layout Plain Layout
11936 string
11937 \end_layout
11938
11939 \end_inset
11940
11941 ] Indicates that this layout provides the functionality of the module mentioned,
11942  which should be specified by the filename without the 
11943 \begin_inset Flex Code
11944 status collapsed
11945
11946 \begin_layout Plain Layout
11947 .module
11948 \end_layout
11949
11950 \end_inset
11951
11952  extension.
11953  This will typically be used if the layout includes the module directly,
11954  rather than using the 
11955 \begin_inset Flex Code
11956 status collapsed
11957
11958 \begin_layout Plain Layout
11959 DefaultModule
11960 \end_layout
11961
11962 \end_inset
11963
11964  tag to indicate that it ought to be used.
11965  It could also be used in a module that provided an alternate implementation of the same functionality.
11966 \end_layout
11967
11968 \begin_layout Description
11969 \begin_inset Flex Code
11970 status collapsed
11971
11972 \begin_layout Plain Layout
11973 ProvideStyle
11974 \end_layout
11975
11976 \end_inset
11977
11978  [
11979 \begin_inset Flex Code
11980 status collapsed
11981
11982 \begin_layout Plain Layout
11983 <style>
11984 \end_layout
11985
11986 \end_inset
11987
11988 ] Creates a new paragraph style if it does not already exist.
11989  If the style does exist,
11990  this section is ignored.
11991  Must end with 
11992 \begin_inset Quotes eld
11993 \end_inset
11994
11995
11996 \begin_inset Flex Code
11997 status collapsed
11998
11999 \begin_layout Plain Layout
12000 End
12001 \end_layout
12002
12003 \end_inset
12004
12005
12006 \begin_inset Quotes erd
12007 \end_inset
12008
12009 .
12010 \end_layout
12011
12012 \begin_layout Description
12013 \begin_inset Flex Code
12014 status collapsed
12015
12016 \begin_layout Plain Layout
12017 Requires
12018 \end_layout
12019
12020 \end_inset
12021
12022  [
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027 string
12028 \end_layout
12029
12030 \end_inset
12031
12032 ] Whether the class requires the feature 
12033 \begin_inset Flex Code
12034 status collapsed
12035
12036 \begin_layout Plain Layout
12037 string
12038 \end_layout
12039
12040 \end_inset
12041
12042 .
12043  Multiple features must be separated by commas.
12044  Note that you can only request supported features.
12045  (See 
12046 \begin_inset CommandInset ref
12047 LatexCommand ref
12048 reference "chap:List-of-functions"
12049 nolink "false"
12050
12051 \end_inset
12052
12053  for the list of features.).
12054  If you require a package with specific options,
12055  you can additionally use 
12056 \begin_inset Flex Code
12057 status collapsed
12058
12059 \begin_layout Plain Layout
12060 PackageOptions
12061 \end_layout
12062
12063 \end_inset
12064
12065 .
12066 \end_layout
12067
12068 \begin_layout Description
12069 \begin_inset Flex Code
12070 status collapsed
12071
12072 \begin_layout Plain Layout
12073 RightMargin
12074 \end_layout
12075
12076 \end_inset
12077
12078  [
12079 \begin_inset Flex Code
12080 status collapsed
12081
12082 \begin_layout Plain Layout
12083 string
12084 \end_layout
12085
12086 \end_inset
12087
12088 ] A string that indicates the width of the right margin on the screen,
12089  for example,
12090  
12091 \begin_inset Quotes eld
12092 \end_inset
12093
12094
12095 \begin_inset Flex Code
12096 status collapsed
12097
12098 \begin_layout Plain Layout
12099 MMMMM
12100 \end_layout
12101
12102 \end_inset
12103
12104
12105 \begin_inset Quotes erd
12106 \end_inset
12107
12108 .
12109 \end_layout
12110
12111 \begin_layout Description
12112 \begin_inset Flex Code
12113 status collapsed
12114
12115 \begin_layout Plain Layout
12116 SecNumDepth
12117 \end_layout
12118
12119 \end_inset
12120
12121  [
12122 \begin_inset Flex Code
12123 status collapsed
12124
12125 \begin_layout Plain Layout
12126 int=3
12127 \end_layout
12128
12129 \end_inset
12130
12131 ] Sets which divisions get numbered.
12132  Corresponds to the
12133 \begin_inset Newline newline
12134 \end_inset
12135
12136
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141 secnumdepth
12142 \end_layout
12143
12144 \end_inset
12145
12146  counter in \SpecialChar LaTeX
12147 .
12148 \end_layout
12149
12150 \begin_layout Description
12151 \begin_inset Flex Code
12152 status collapsed
12153
12154 \begin_layout Plain Layout
12155 Sides
12156 \end_layout
12157
12158 \end_inset
12159
12160  [
12161 \begin_inset Flex Code
12162 status collapsed
12163
12164 \begin_layout Plain Layout
12165
12166 \emph on
12167 1
12168 \end_layout
12169
12170 \end_inset
12171
12172 ,
12173 \begin_inset space \thinspace{}
12174 \end_inset
12175
12176
12177 \begin_inset Flex Code
12178 status collapsed
12179
12180 \begin_layout Plain Layout
12181 2
12182 \end_layout
12183
12184 \end_inset
12185
12186 ] Whether the class-default should be printing on one or both sides of the paper.
12187  Can be changed in the 
12188 \begin_inset Flex Noun
12189 status collapsed
12190
12191 \begin_layout Plain Layout
12192 Document\SpecialChar menuseparator
12193 Settings
12194 \end_layout
12195
12196 \end_inset
12197
12198  dialog.
12199 \end_layout
12200
12201 \begin_layout Description
12202 \begin_inset Flex Code
12203 status collapsed
12204
12205 \begin_layout Plain Layout
12206 Style
12207 \end_layout
12208
12209 \end_inset
12210
12211  [
12212 \begin_inset Flex Code
12213 status collapsed
12214
12215 \begin_layout Plain Layout
12216 <name>
12217 \end_layout
12218
12219 \end_inset
12220
12221 ] This sequence defines a paragraph style.
12222  If the style does not yet exist,
12223  it is created;
12224  if it does exist,
12225  its parameters are modified.
12226  Must end with 
12227 \begin_inset Quotes eld
12228 \end_inset
12229
12230
12231 \begin_inset Flex Code
12232 status collapsed
12233
12234 \begin_layout Plain Layout
12235 End
12236 \end_layout
12237
12238 \end_inset
12239
12240
12241 \begin_inset Quotes erd
12242 \end_inset
12243
12244 .
12245 \begin_inset Newline newline
12246 \end_inset
12247
12248 See 
12249 \begin_inset CommandInset ref
12250 LatexCommand ref
12251 reference "subsec:Paragraph-Styles"
12252 nolink "false"
12253
12254 \end_inset
12255
12256  for details on paragraph styles.
12257 \change_inserted -712698321 1553617804
12258
12259 \end_layout
12260
12261 \begin_layout Description
12262
12263 \change_inserted -712698321 1553617862
12264 \begin_inset Flex Code
12265 status collapsed
12266
12267 \begin_layout Plain Layout
12268
12269 \change_inserted -712698321 1553617809
12270 TableStyle
12271 \change_unchanged
12272
12273 \end_layout
12274
12275 \end_inset
12276
12277  [
12278 \begin_inset Flex Code
12279 status collapsed
12280
12281 \begin_layout Plain Layout
12282
12283 \change_inserted -712698321 1553617805
12284 <name>
12285 \change_unchanged
12286
12287 \end_layout
12288
12289 \end_inset
12290
12291 ] defines the default table style that is used when inserting a table.
12292  The following styles are available:
12293 \end_layout
12294
12295 \begin_deeper
12296 \begin_layout Itemize
12297
12298 \change_inserted -712698321 1554308039
12299 \begin_inset Flex Code
12300 status collapsed
12301
12302 \begin_layout Plain Layout
12303
12304 \change_inserted -712698321 1554307928
12305 Formal_with_Footline
12306 \change_unchanged
12307
12308 \end_layout
12309
12310 \end_inset
12311
12312 :
12313  formal (
12314 \begin_inset Quotes eld
12315 \end_inset
12316
12317 booktabs
12318 \begin_inset Quotes erd
12319 \end_inset
12320
12321 ) style with horizontal lines only,
12322  using a bold top and bottom line,
12323  the first and last row are additionally separated from the table body with a thin middle line.
12324 \end_layout
12325
12326 \begin_layout Itemize
12327
12328 \change_inserted -712698321 1554308087
12329 \begin_inset Flex Code
12330 status collapsed
12331
12332 \begin_layout Plain Layout
12333
12334 \change_inserted -712698321 1554308042
12335 Formal_without_Footline
12336 \change_unchanged
12337
12338 \end_layout
12339
12340 \end_inset
12341
12342 :
12343  same as the above,
12344  but the last row is not separated with a middle line from the body.
12345 \end_layout
12346
12347 \begin_layout Itemize
12348
12349 \change_inserted -712698321 1553618031
12350 \begin_inset Flex Code
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354
12355 \change_inserted -712698321 1553618006
12356 Simple_Grid
12357 \change_unchanged
12358
12359 \end_layout
12360
12361 \end_inset
12362
12363 :
12364  Simple table lines.
12365 \end_layout
12366
12367 \begin_layout Itemize
12368
12369 \change_inserted -712698321 1553618309
12370 \begin_inset Flex Code
12371 status collapsed
12372
12373 \begin_layout Plain Layout
12374
12375 \change_inserted -712698321 1553618031
12376 Grid_with_Head
12377 \change_unchanged
12378
12379 \end_layout
12380
12381 \end_inset
12382
12383 :
12384  Like 
12385 \begin_inset Flex Code
12386 status collapsed
12387
12388 \begin_layout Plain Layout
12389
12390 \change_inserted -712698321 1553618043
12391 Simple_Grid
12392 \change_unchanged
12393
12394 \end_layout
12395
12396 \end_inset
12397
12398 ,
12399  but with the header 
12400 \change_deleted 34634807 1619712593
12401 column
12402 \change_inserted 34634807 1619712594
12403 row
12404 \change_inserted -712698321 1553618309
12405  offset with a second horizontal line.
12406  This is also the default style of \SpecialChar LyX
12407 .
12408 \end_layout
12409
12410 \begin_layout Itemize
12411
12412 \change_inserted -712698321 1553618280
12413 \begin_inset Flex Code
12414 status collapsed
12415
12416 \begin_layout Plain Layout
12417
12418 \change_inserted -712698321 1553618261
12419 No_Borders
12420 \change_unchanged
12421
12422 \end_layout
12423
12424 \end_inset
12425
12426 :
12427  Table without lines.
12428 \change_unchanged
12429
12430 \end_layout
12431
12432 \end_deeper
12433 \begin_layout Description
12434 \begin_inset Flex Code
12435 status collapsed
12436
12437 \begin_layout Plain Layout
12438 TitleLatexName
12439 \end_layout
12440
12441 \end_inset
12442
12443  [
12444 \begin_inset Flex Code
12445 status collapsed
12446
12447 \begin_layout Plain Layout
12448 string="maketitle"
12449 \end_layout
12450
12451 \end_inset
12452
12453 ] The name of the command or environment to be used with 
12454 \begin_inset Flex Code
12455 status collapsed
12456
12457 \begin_layout Plain Layout
12458 TitleLatexType
12459 \end_layout
12460
12461 \end_inset
12462
12463 .
12464 \end_layout
12465
12466 \begin_layout Description
12467 \begin_inset Flex Code
12468 status collapsed
12469
12470 \begin_layout Plain Layout
12471 TitleLatexType
12472 \end_layout
12473
12474 \end_inset
12475
12476  [
12477 \begin_inset Flex Code
12478 status collapsed
12479
12480 \begin_layout Plain Layout
12481
12482 \emph on
12483 CommandAfter
12484 \end_layout
12485
12486 \end_inset
12487
12488 ,
12489  
12490 \begin_inset Flex Code
12491 status collapsed
12492
12493 \begin_layout Plain Layout
12494 Environment
12495 \end_layout
12496
12497 \end_inset
12498
12499 ] Indicates what kind of markup is used to define the title of a document.
12500  
12501 \begin_inset Flex Code
12502 status collapsed
12503
12504 \begin_layout Plain Layout
12505 CommandAfter
12506 \end_layout
12507
12508 \end_inset
12509
12510  means that the macro with name 
12511 \begin_inset Flex Code
12512 status collapsed
12513
12514 \begin_layout Plain Layout
12515 TitleLatexName
12516 \end_layout
12517
12518 \end_inset
12519
12520  will be inserted after the last layout which has 
12521 \begin_inset Quotes eld
12522 \end_inset
12523
12524
12525 \begin_inset Flex Code
12526 status collapsed
12527
12528 \begin_layout Plain Layout
12529 InTitle
12530 \begin_inset space ~
12531 \end_inset
12532
12533 1
12534 \end_layout
12535
12536 \end_inset
12537
12538
12539 \begin_inset Quotes erd
12540 \end_inset
12541
12542 .
12543  
12544 \begin_inset Flex Code
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548 Environment
12549 \end_layout
12550
12551 \end_inset
12552
12553  corresponds to the case where all layouts which have 
12554 \begin_inset Quotes eld
12555 \end_inset
12556
12557
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562 InTitle
12563 \begin_inset space ~
12564 \end_inset
12565
12566 1
12567 \end_layout
12568
12569 \end_inset
12570
12571
12572 \begin_inset Quotes erd
12573 \end_inset
12574
12575  should be enclosed into the 
12576 \begin_inset Flex Code
12577 status collapsed
12578
12579 \begin_layout Plain Layout
12580 TitleLatexName
12581 \end_layout
12582
12583 \end_inset
12584
12585  environment.
12586 \end_layout
12587
12588 \begin_layout Description
12589 \begin_inset Flex Code
12590 status collapsed
12591
12592 \begin_layout Plain Layout
12593 TocDepth
12594 \end_layout
12595
12596 \end_inset
12597
12598  [
12599 \begin_inset Flex Code
12600 status collapsed
12601
12602 \begin_layout Plain Layout
12603 int=3
12604 \end_layout
12605
12606 \end_inset
12607
12608 ] Sets which divisions are included in the table of contents.
12609  Corresponds to the 
12610 \begin_inset Flex Code
12611 status collapsed
12612
12613 \begin_layout Plain Layout
12614 tocdepth
12615 \end_layout
12616
12617 \end_inset
12618
12619  counter in \SpecialChar LaTeX
12620 .
12621 \end_layout
12622
12623 \begin_layout Subsection
12624 \begin_inset Flex Code
12625 status collapsed
12626
12627 \begin_layout Plain Layout
12628 ClassOptions
12629 \end_layout
12630
12631 \end_inset
12632
12633  section
12634 \begin_inset CommandInset label
12635 LatexCommand label
12636 name "subsec:ClassOptions"
12637
12638 \end_inset
12639
12640
12641 \end_layout
12642
12643 \begin_layout Standard
12644 The 
12645 \begin_inset Flex Code
12646 status collapsed
12647
12648 \begin_layout Plain Layout
12649 ClassOptions
12650 \end_layout
12651
12652 \end_inset
12653
12654  section can contain the following entries:
12655 \end_layout
12656
12657 \begin_layout Description
12658 \begin_inset Flex Code
12659 status collapsed
12660
12661 \begin_layout Plain Layout
12662 FontSize
12663 \end_layout
12664
12665 \end_inset
12666
12667  [
12668 \begin_inset Flex Code
12669 status collapsed
12670
12671 \begin_layout Plain Layout
12672 string="10|11|12"
12673 \end_layout
12674
12675 \end_inset
12676
12677 ] The list of available font sizes for the document's main font,
12678  separated by 
12679 \begin_inset Quotes eld
12680 \end_inset
12681
12682
12683 \begin_inset Flex Code
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687 |
12688 \end_layout
12689
12690 \end_inset
12691
12692
12693 \begin_inset Quotes erd
12694 \end_inset
12695
12696 .
12697
12698 \change_inserted -712698321 1565110196
12699  Any number is possible.
12700 \end_layout
12701
12702 \begin_layout Description
12703
12704 \change_inserted -712698321 1565110259
12705 \begin_inset Flex Code
12706 status collapsed
12707
12708 \begin_layout Plain Layout
12709
12710 \change_inserted -712698321 1565110199
12711 FontSizeFormat
12712 \change_unchanged
12713
12714 \end_layout
12715
12716 \end_inset
12717
12718  [
12719 \begin_inset Flex Code
12720 status collapsed
12721
12722 \begin_layout Plain Layout
12723
12724 \change_inserted -712698321 1565110196
12725 string
12726 \change_unchanged
12727
12728 \end_layout
12729
12730 \end_inset
12731
12732 ] The format for the font size option.
12733  Default:
12734  
12735 \begin_inset Flex Code
12736 status collapsed
12737
12738 \begin_layout Plain Layout
12739
12740 \change_inserted -712698321 1565110238
12741 $$spt
12742 \change_unchanged
12743
12744 \end_layout
12745
12746 \end_inset
12747
12748 .
12749  
12750 \begin_inset Flex Code
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754
12755 \change_inserted -712698321 1565110248
12756 $$s
12757 \change_unchanged
12758
12759 \end_layout
12760
12761 \end_inset
12762
12763  is a placeholder for the font size.
12764 \change_unchanged
12765
12766 \end_layout
12767
12768 \begin_layout Description
12769
12770 \change_deleted 5863208 1594239483
12771 \begin_inset Flex Code
12772 status collapsed
12773
12774 \begin_layout Plain Layout
12775 Header
12776 \end_layout
12777
12778 \end_inset
12779
12780  Used to set the DTD line with XML-based output classes.
12781  E.
12782 \begin_inset space \thinspace{}
12783 \end_inset
12784
12785 g.:
12786  PUBLIC 
12787 \begin_inset Quotes eld
12788 \end_inset
12789
12790 -//OASIS//DTD DocBook V4.2//EN
12791 \begin_inset Quotes erd
12792 \end_inset
12793
12794 .
12795 \change_inserted -712698321 1565101761
12796
12797 \end_layout
12798
12799 \begin_layout Description
12800
12801 \change_inserted -712698321 1565180598
12802 \begin_inset Flex Code
12803 status collapsed
12804
12805 \begin_layout Plain Layout
12806
12807 \change_inserted -712698321 1565101918
12808 PageSize
12809 \change_unchanged
12810
12811 \end_layout
12812
12813 \end_inset
12814
12815  [
12816 \begin_inset Flex Code
12817 status collapsed
12818
12819 \begin_layout Plain Layout
12820
12821 \change_inserted -712698321 1565105399
12822 string="letter|\SpecialChar allowbreak
12823 legal|\SpecialChar allowbreak
12824 executive|\SpecialChar allowbreak
12825 a0|\SpecialChar allowbreak
12826 a1|\SpecialChar allowbreak
12827 a2|\SpecialChar allowbreak
12828 a3|\SpecialChar allowbreak
12829 a4|\SpecialChar allowbreak
12830 a5|\SpecialChar allowbreak
12831 a6|\SpecialChar allowbreak
12832 b0|\SpecialChar allowbreak
12833 b1|\SpecialChar allowbreak
12834 b2|\SpecialChar allowbreak
12835 b3|\SpecialChar allowbreak
12836 b4|\SpecialChar allowbreak
12837 b5|\SpecialChar allowbreak
12838 b6|\SpecialChar allowbreak
12839 c0|\SpecialChar allowbreak
12840 c1|\SpecialChar allowbreak
12841 c2|\SpecialChar allowbreak
12842 c3|\SpecialChar allowbreak
12843 c4|\SpecialChar allowbreak
12844 c5|\SpecialChar allowbreak
12845 c6|\SpecialChar allowbreak
12846 b0j|\SpecialChar allowbreak
12847 b1j|\SpecialChar allowbreak
12848 b2j|\SpecialChar allowbreak
12849 b3j|\SpecialChar allowbreak
12850 b4j|\SpecialChar allowbreak
12851 b5j|\SpecialChar allowbreak
12852 b6j"
12853 \change_unchanged
12854
12855 \end_layout
12856
12857 \end_inset
12858
12859 ] The list of available page sizes,
12860  separated by 
12861 \begin_inset Quotes eld
12862 \end_inset
12863
12864
12865 \begin_inset Flex Code
12866 status collapsed
12867
12868 \begin_layout Plain Layout
12869
12870 \change_inserted -712698321 1565101779
12871 |
12872 \change_unchanged
12873
12874 \end_layout
12875
12876 \end_inset
12877
12878
12879 \begin_inset Quotes erd
12880 \end_inset
12881
12882 .
12883  Currently,
12884  only the listed sizes are supported.
12885  Other sizes might be entered as custom class option.
12886 \end_layout
12887
12888 \begin_layout Description
12889
12890 \change_inserted -712698321 1565180623
12891 \begin_inset Flex Code
12892 status collapsed
12893
12894 \begin_layout Plain Layout
12895
12896 \change_inserted -712698321 1565180605
12897 PageSizeFormat
12898 \change_unchanged
12899
12900 \end_layout
12901
12902 \end_inset
12903
12904  [
12905 \begin_inset Flex Code
12906 status collapsed
12907
12908 \begin_layout Plain Layout
12909
12910 \change_inserted -712698321 1565180601
12911 string
12912 \change_unchanged
12913
12914 \end_layout
12915
12916 \end_inset
12917
12918 ] The format for the page size option.
12919  Default:
12920  
12921 \begin_inset Flex Code
12922 status collapsed
12923
12924 \begin_layout Plain Layout
12925
12926 \change_inserted -712698321 1565180618
12927 $$spaper
12928 \change_unchanged
12929
12930 \end_layout
12931
12932 \end_inset
12933
12934 .
12935  
12936 \begin_inset Flex Code
12937 status collapsed
12938
12939 \begin_layout Plain Layout
12940
12941 \change_inserted -712698321 1565180601
12942 $$s
12943 \change_unchanged
12944
12945 \end_layout
12946
12947 \end_inset
12948
12949  is a placeholder for the paper size.
12950 \change_unchanged
12951
12952 \end_layout
12953
12954 \begin_layout Description
12955 \begin_inset Flex Code
12956 status collapsed
12957
12958 \begin_layout Plain Layout
12959 PageStyle
12960 \end_layout
12961
12962 \end_inset
12963
12964  [
12965 \begin_inset Flex Code
12966 status collapsed
12967
12968 \begin_layout Plain Layout
12969 string="empty|plain|headings|fancy"
12970 \end_layout
12971
12972 \end_inset
12973
12974 ] The list of available page sty\SpecialChar softhyphen
12975 les,
12976  separated by 
12977 \begin_inset Quotes eld
12978 \end_inset
12979
12980
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985 |
12986 \end_layout
12987
12988 \end_inset
12989
12990
12991 \begin_inset Quotes erd
12992 \end_inset
12993
12994 .
12995 \end_layout
12996
12997 \begin_layout Description
12998 \begin_inset Flex Code
12999 status collapsed
13000
13001 \begin_layout Plain Layout
13002 Other
13003 \end_layout
13004
13005 \end_inset
13006
13007  [
13008 \begin_inset Flex Code
13009 status collapsed
13010
13011 \begin_layout Plain Layout
13012 string=""
13013 \end_layout
13014
13015 \end_inset
13016
13017 ] Some document class options,
13018  separated by a comma,
13019  that will be added to the optional part of the 
13020 \begin_inset Flex Code
13021 status collapsed
13022
13023 \begin_layout Plain Layout
13024
13025 \backslash
13026 documentclass
13027 \end_layout
13028
13029 \end_inset
13030
13031  command.
13032 \end_layout
13033
13034 \begin_layout Standard
13035 The 
13036 \begin_inset Flex Code
13037 status collapsed
13038
13039 \begin_layout Plain Layout
13040 ClassOptions
13041 \end_layout
13042
13043 \end_inset
13044
13045  section must end with 
13046 \begin_inset Quotes eld
13047 \end_inset
13048
13049
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054 End
13055 \end_layout
13056
13057 \end_inset
13058
13059
13060 \begin_inset Quotes erd
13061 \end_inset
13062
13063 .
13064 \end_layout
13065
13066 \begin_layout Subsection
13067 Paragraph styles
13068 \begin_inset CommandInset label
13069 LatexCommand label
13070 name "subsec:Paragraph-Styles"
13071
13072 \end_inset
13073
13074
13075 \end_layout
13076
13077 \begin_layout Standard
13078 A paragraph style description looks like this:
13079 \begin_inset Foot
13080 status collapsed
13081
13082 \begin_layout Plain Layout
13083 Note that this will either define a new style or modify an existing one.
13084 \end_layout
13085
13086 \end_inset
13087
13088
13089 \end_layout
13090
13091 \begin_layout LyX-Code
13092 Style 
13093 \family roman
13094 \emph on
13095 name
13096 \end_layout
13097
13098 \begin_layout LyX-Code
13099  ...
13100 \end_layout
13101
13102 \begin_layout LyX-Code
13103 End
13104 \end_layout
13105
13106 \begin_layout Standard
13107 where the following commands are allowed:
13108 \end_layout
13109
13110 \begin_layout Description
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115 AddToToc
13116 \end_layout
13117
13118 \end_inset
13119
13120  [
13121 \begin_inset Flex Code
13122 status collapsed
13123
13124 \begin_layout Plain Layout
13125 string
13126 \end_layout
13127
13128 \end_inset
13129
13130 =""] This paragraph will appear in the table of contents of the given type.
13131  An empty string disables.
13132  See also the OutlinerName and the IsTocCaption commands.
13133  Default:
13134  disabled.
13135 \end_layout
13136
13137 \begin_layout Description
13138 \begin_inset Flex Code
13139 status collapsed
13140
13141 \begin_layout Plain Layout
13142 Align
13143 \end_layout
13144
13145 \end_inset
13146
13147  [
13148 \begin_inset Flex Code
13149 status collapsed
13150
13151 \begin_layout Plain Layout
13152
13153 \emph on
13154 block
13155 \emph default
13156 ,
13157  left,
13158  right,
13159  center
13160 \end_layout
13161
13162 \end_inset
13163
13164 ] Paragraph alignment.
13165 \end_layout
13166
13167 \begin_layout Description
13168 \begin_inset Flex Code
13169 status collapsed
13170
13171 \begin_layout Plain Layout
13172 AlignPossible
13173 \end_layout
13174
13175 \end_inset
13176
13177  [
13178 \begin_inset Flex Code
13179 status collapsed
13180
13181 \begin_layout Plain Layout
13182
13183 \emph on
13184 block
13185 \emph default
13186 ,
13187  left,
13188  right,
13189  center
13190 \end_layout
13191
13192 \end_inset
13193
13194 ] A comma separated list of permitted alignments.
13195  (Some \SpecialChar LaTeX
13196  styles prohibit certain alignments,
13197  since those wouldn't make sense.
13198  For example a right-aligned or centered enumeration isn't possible.)
13199 \end_layout
13200
13201 \begin_layout Description
13202 \begin_inset Flex Code
13203 status collapsed
13204
13205 \begin_layout Plain Layout
13206 Argument
13207 \end_layout
13208
13209 \end_inset
13210
13211  [
13212 \begin_inset Flex Code
13213 status collapsed
13214
13215 \begin_layout Plain Layout
13216 int
13217 \end_layout
13218
13219 \end_inset
13220
13221 ] Defines argument number <int> of a command\SpecialChar breakableslash
13222 environment associated with the current style.
13223
13224 \change_inserted -584632292 1615846868
13225  The definition must end with 
13226 \begin_inset Flex Code
13227 status collapsed
13228
13229 \begin_layout Plain Layout
13230
13231 \change_inserted -584632292 1615846867
13232 EndArgument
13233 \change_unchanged
13234
13235 \end_layout
13236
13237 \end_inset
13238
13239 .
13240
13241 \change_unchanged
13242  
13243 \change_inserted -584632292 1615846880
13244 See 
13245 \begin_inset CommandInset ref
13246 LatexCommand ref
13247 reference "subsec:Arguments"
13248 plural "false"
13249 caps "false"
13250 noprefix "false"
13251 nolink "false"
13252
13253 \end_inset
13254
13255  for more information.
13256  
13257 \change_deleted -584632292 1615846694
13258 This is useful for things like section headings,
13259  and only makes sense with \SpecialChar LaTeX
13260 .
13261  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,
13262  where the number specifies the order of the arguments.
13263  The definition must end with 
13264 \begin_inset Flex Code
13265 status collapsed
13266
13267 \begin_layout Plain Layout
13268 EndArgument
13269 \end_layout
13270
13271 \end_inset
13272
13273 .
13274  So a command with two optional arguments has:
13275 \end_layout
13276
13277 \begin_deeper
13278 \begin_layout Quote
13279
13280 \change_deleted -584632292 1615846694
13281
13282 \family typewriter
13283 Argument 1
13284 \end_layout
13285
13286 \begin_layout Quote
13287
13288 \change_deleted -584632292 1615846694
13289
13290 \family typewriter
13291 ...
13292 \end_layout
13293
13294 \begin_layout Quote
13295
13296 \change_deleted -584632292 1615846694
13297
13298 \family typewriter
13299 EndArgument
13300 \end_layout
13301
13302 \begin_layout Quote
13303
13304 \change_deleted -584632292 1615846694
13305
13306 \family typewriter
13307 Argument 2
13308 \end_layout
13309
13310 \begin_layout Quote
13311
13312 \change_deleted -584632292 1615846694
13313
13314 \family typewriter
13315 ...
13316 \end_layout
13317
13318 \begin_layout Quote
13319
13320 \change_deleted -584632292 1615846694
13321
13322 \family typewriter
13323 EndArgument
13324 \end_layout
13325
13326 \begin_layout Standard
13327
13328 \change_deleted -584632292 1615846694
13329 Inside the 
13330 \begin_inset Flex Code
13331 status collapsed
13332
13333 \begin_layout Plain Layout
13334 Argument
13335 \end_layout
13336
13337 \end_inset
13338
13339  definition,
13340  the following specifications are possible:
13341 \end_layout
13342
13343 \begin_layout Itemize
13344
13345 \change_deleted -584632292 1615846694
13346 \begin_inset Flex Code
13347 status collapsed
13348
13349 \begin_layout Plain Layout
13350 LabelString
13351 \end_layout
13352
13353 \end_inset
13354
13355  
13356 \begin_inset Flex Code
13357 status collapsed
13358
13359 \begin_layout Plain Layout
13360 [string]
13361 \end_layout
13362
13363 \end_inset
13364
13365  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 
13366 \begin_inset Flex Code
13367 status collapsed
13368
13369 \begin_layout Plain Layout
13370 MenuString
13371 \end_layout
13372
13373 \end_inset
13374
13375 ).
13376  For the menu,
13377  you can define an accelerator by appending the respective character to the string,
13378  divided by 
13379 \begin_inset Quotes eld
13380 \end_inset
13381
13382 |
13383 \begin_inset Quotes erd
13384 \end_inset
13385
13386  (e.
13387 \begin_inset space \thinspace{}
13388 \end_inset
13389
13390 g.
13391 \begin_inset space \space{}
13392 \end_inset
13393
13394
13395 \begin_inset Quotes eld
13396 \end_inset
13397
13398
13399 \begin_inset Flex Code
13400 status collapsed
13401
13402 \begin_layout Plain Layout
13403 Short Title|S
13404 \end_layout
13405
13406 \end_inset
13407
13408
13409 \begin_inset Quotes erd
13410 \end_inset
13411
13412 ).
13413 \end_layout
13414
13415 \begin_layout Itemize
13416
13417 \change_deleted -584632292 1615846694
13418 \begin_inset Flex Code
13419 status collapsed
13420
13421 \begin_layout Plain Layout
13422 MenuString
13423 \end_layout
13424
13425 \end_inset
13426
13427  
13428 \begin_inset Flex Code
13429 status collapsed
13430
13431 \begin_layout Plain Layout
13432 [string]
13433 \end_layout
13434
13435 \end_inset
13436
13437  A separate string for the menu.
13438  You can define an accelerator by appending the respective character to the string,
13439  divided by 
13440 \begin_inset Quotes eld
13441 \end_inset
13442
13443 |
13444 \begin_inset Quotes erd
13445 \end_inset
13446
13447  (e.
13448 \begin_inset space \thinspace{}
13449 \end_inset
13450
13451 g.
13452 \begin_inset space \space{}
13453 \end_inset
13454
13455
13456 \begin_inset Quotes eld
13457 \end_inset
13458
13459
13460 \begin_inset Flex Code
13461 status collapsed
13462
13463 \begin_layout Plain Layout
13464 Short Title|S
13465 \end_layout
13466
13467 \end_inset
13468
13469
13470 \begin_inset Quotes erd
13471 \end_inset
13472
13473 ).
13474  This specification is optional.
13475  If it is not given the 
13476 \begin_inset Flex Code
13477 status collapsed
13478
13479 \begin_layout Plain Layout
13480 LabelString
13481 \end_layout
13482
13483 \end_inset
13484
13485  will be used instead for the menu.
13486 \end_layout
13487
13488 \begin_layout Itemize
13489
13490 \change_deleted -584632292 1615846694
13491 \begin_inset Flex Code
13492 status collapsed
13493
13494 \begin_layout Plain Layout
13495 Tooltip
13496 \end_layout
13497
13498 \end_inset
13499
13500  
13501 \begin_inset Flex Code
13502 status collapsed
13503
13504 \begin_layout Plain Layout
13505 [string]
13506 \end_layout
13507
13508 \end_inset
13509
13510  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
13511 \end_layout
13512
13513 \begin_layout Itemize
13514
13515 \change_deleted -584632292 1615846694
13516 \begin_inset Flex Code
13517 status collapsed
13518
13519 \begin_layout Plain Layout
13520 Mandatory
13521 \end_layout
13522
13523 \end_inset
13524
13525  [
13526 \begin_inset Flex Code
13527 status collapsed
13528
13529 \begin_layout Plain Layout
13530
13531 \emph on
13532 0
13533 \end_layout
13534
13535 \end_inset
13536
13537 ,
13538 \begin_inset space \thinspace{}
13539 \end_inset
13540
13541
13542 \begin_inset Flex Code
13543 status collapsed
13544
13545 \begin_layout Plain Layout
13546 1
13547 \end_layout
13548
13549 \end_inset
13550
13551 ] Declare if this is a mandatory (1) or an optional (0) argument.
13552  Mandatory arguments will be output empty if not given,
13553  while optional arguments will not be output at all.
13554  By default,
13555  mandatory arguments are delimited by 
13556 \begin_inset Flex Code
13557 status collapsed
13558
13559 \begin_layout Plain Layout
13560 {...}
13561 \end_layout
13562
13563 \end_inset
13564
13565 ,
13566  while optional arguments are delimited by 
13567 \begin_inset Flex Code
13568 status collapsed
13569
13570 \begin_layout Plain Layout
13571 [...]
13572 \end_layout
13573
13574 \end_inset
13575
13576
13577 \end_layout
13578
13579 \begin_layout Itemize
13580
13581 \change_deleted -584632292 1615846694
13582 \begin_inset Flex Code
13583 status collapsed
13584
13585 \begin_layout Plain Layout
13586
13587 \change_inserted -712698321 1555579780
13588 NewlineCmd
13589 \change_unchanged
13590
13591 \end_layout
13592
13593 \end_inset
13594
13595  
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600
13601 \change_inserted -712698321 1555579780
13602 [string]
13603 \change_unchanged
13604
13605 \end_layout
13606
13607 \end_inset
13608
13609  Option to define a different command (from the default 
13610 \begin_inset Flex Code
13611 status collapsed
13612
13613 \begin_layout Plain Layout
13614
13615 \change_inserted -712698321 1555579780
13616
13617 \backslash
13618
13619 \backslash
13620
13621 \change_unchanged
13622
13623 \end_layout
13624
13625 \end_inset
13626
13627 ) to be used for line breaks.
13628  The initial backslash must not be specified.
13629 \end_layout
13630
13631 \begin_layout Itemize
13632
13633 \change_deleted -584632292 1615846694
13634 \begin_inset Flex Code
13635 status collapsed
13636
13637 \begin_layout Plain Layout
13638 Requires
13639 \end_layout
13640
13641 \end_inset
13642
13643  
13644 \begin_inset Flex Code
13645 status collapsed
13646
13647 \begin_layout Plain Layout
13648 [int=0]
13649 \end_layout
13650
13651 \end_inset
13652
13653  defines another argument (by its number) which this argument requires to be output if it is itself output.
13654  E.
13655 \begin_inset space \thinspace{}
13656 \end_inset
13657
13658 g.,
13659  in \SpecialChar LaTeX
13660  commands,
13661  optional arguments often require previous optional arguments to be output (at least empty),
13662  as in 
13663 \begin_inset Flex Code
13664 status collapsed
13665
13666 \begin_layout Plain Layout
13667
13668 \backslash
13669 command[][argument]{text}
13670 \end_layout
13671
13672 \end_inset
13673
13674 .
13675  This can be achieved by the statement 
13676 \begin_inset Flex Code
13677 status collapsed
13678
13679 \begin_layout Plain Layout
13680 Requires 1
13681 \end_layout
13682
13683 \end_inset
13684
13685  within 
13686 \begin_inset Flex Code
13687 status collapsed
13688
13689 \begin_layout Plain Layout
13690 Argument 2
13691 \end_layout
13692
13693 \end_inset
13694
13695 .
13696 \end_layout
13697
13698 \begin_layout Itemize
13699
13700 \change_deleted -584632292 1615846694
13701 \begin_inset Flex Code
13702 status collapsed
13703
13704 \begin_layout Plain Layout
13705 LeftDelim
13706 \end_layout
13707
13708 \end_inset
13709
13710  
13711 \begin_inset Flex Code
13712 status collapsed
13713
13714 \begin_layout Plain Layout
13715 [string]
13716 \end_layout
13717
13718 \end_inset
13719
13720  defines a custom left delimiter (instead of 
13721 \begin_inset Flex Code
13722 status collapsed
13723
13724 \begin_layout Plain Layout
13725 {
13726 \end_layout
13727
13728 \end_inset
13729
13730  or 
13731 \begin_inset Flex Code
13732 status collapsed
13733
13734 \begin_layout Plain Layout
13735 [
13736 \end_layout
13737
13738 \end_inset
13739
13740 ).
13741  A line break in the output can be indicated by 
13742 \begin_inset Flex Code
13743 status collapsed
13744
13745 \begin_layout Plain Layout
13746 <br/>
13747 \end_layout
13748
13749 \end_inset
13750
13751 .
13752 \end_layout
13753
13754 \begin_layout Itemize
13755
13756 \change_deleted -584632292 1615846694
13757 \begin_inset Flex Code
13758 status collapsed
13759
13760 \begin_layout Plain Layout
13761 RightDelim
13762 \end_layout
13763
13764 \end_inset
13765
13766  
13767 \begin_inset Flex Code
13768 status collapsed
13769
13770 \begin_layout Plain Layout
13771 [string]
13772 \end_layout
13773
13774 \end_inset
13775
13776  defines a custom right delimiter (instead of 
13777 \begin_inset Flex Code
13778 status collapsed
13779
13780 \begin_layout Plain Layout
13781 }
13782 \end_layout
13783
13784 \end_inset
13785
13786  or 
13787 \begin_inset Flex Code
13788 status collapsed
13789
13790 \begin_layout Plain Layout
13791 ]
13792 \end_layout
13793
13794 \end_inset
13795
13796 ).
13797  A line break in the output can be indicated by 
13798 \begin_inset Flex Code
13799 status collapsed
13800
13801 \begin_layout Plain Layout
13802 <br/>
13803 \end_layout
13804
13805 \end_inset
13806
13807 .
13808 \end_layout
13809
13810 \begin_layout Itemize
13811
13812 \change_deleted -584632292 1615846694
13813 \begin_inset Flex Code
13814 status collapsed
13815
13816 \begin_layout Plain Layout
13817 DefaultArg
13818 \end_layout
13819
13820 \end_inset
13821
13822  
13823 \begin_inset Flex Code
13824 status collapsed
13825
13826 \begin_layout Plain Layout
13827 [string]
13828 \end_layout
13829
13830 \end_inset
13831
13832  defines an argument that is inserted if and only if no user-specified arguments were given,
13833  i.
13834 \begin_inset space \thinspace{}
13835 \end_inset
13836
13837 e.
13838 \begin_inset space \space{}
13839 \end_inset
13840
13841 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
13842  Multiple arguments need to be separated by comma.
13843 \end_layout
13844
13845 \begin_layout Itemize
13846
13847 \change_deleted -584632292 1615846694
13848 \begin_inset Flex Code
13849 status collapsed
13850
13851 \begin_layout Plain Layout
13852 PresetArg
13853 \end_layout
13854
13855 \end_inset
13856
13857  
13858 \begin_inset Flex Code
13859 status collapsed
13860
13861 \begin_layout Plain Layout
13862 [string]
13863 \end_layout
13864
13865 \end_inset
13866
13867  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
13868  Multiple arguments need to be separated by comma.
13869 \end_layout
13870
13871 \begin_layout Itemize
13872
13873 \change_deleted -584632292 1615846694
13874 \begin_inset Flex Code
13875 status collapsed
13876
13877 \begin_layout Plain Layout
13878 Font
13879 \end_layout
13880
13881 \end_inset
13882
13883  The font used for the argument content,
13884  see 
13885 \begin_inset CommandInset ref
13886 LatexCommand ref
13887 reference "subsec:Font-description"
13888 nolink "false"
13889
13890 \end_inset
13891
13892 .
13893 \end_layout
13894
13895 \begin_layout Itemize
13896
13897 \change_deleted -584632292 1615846694
13898 \begin_inset Flex Code
13899 status collapsed
13900
13901 \begin_layout Plain Layout
13902
13903 \change_inserted -712698321 1559484228
13904 FreeSpacing
13905 \change_unchanged
13906
13907 \end_layout
13908
13909 \end_inset
13910
13911  [
13912 \begin_inset Flex Code
13913 status collapsed
13914
13915 \begin_layout Plain Layout
13916
13917 \change_inserted -712698321 1559484228
13918
13919 \emph on
13920 0
13921 \change_unchanged
13922
13923 \end_layout
13924
13925 \end_inset
13926
13927 ,
13928 \begin_inset space \thinspace{}
13929 \end_inset
13930
13931
13932 \begin_inset Flex Code
13933 status collapsed
13934
13935 \begin_layout Plain Layout
13936
13937 \change_inserted -712698321 1559484228
13938 1
13939 \change_unchanged
13940
13941 \end_layout
13942
13943 \end_inset
13944
13945 ] As with paragraph styles,
13946  see 
13947 \begin_inset CommandInset ref
13948 LatexCommand ref
13949 reference "subsec:Paragraph-Styles"
13950 nolink "false"
13951
13952 \end_inset
13953
13954 .
13955 \end_layout
13956
13957 \begin_layout Itemize
13958
13959 \change_deleted -584632292 1615846694
13960 \begin_inset Flex Code
13961 status collapsed
13962
13963 \begin_layout Plain Layout
13964 LabelFont
13965 \end_layout
13966
13967 \end_inset
13968
13969  The font used for the label;
13970  see 
13971 \begin_inset CommandInset ref
13972 LatexCommand ref
13973 reference "subsec:Font-description"
13974 nolink "false"
13975
13976 \end_inset
13977
13978 .
13979 \end_layout
13980
13981 \begin_layout Itemize
13982
13983 \change_deleted -584632292 1615846694
13984 \begin_inset Flex Code
13985 status collapsed
13986
13987 \begin_layout Plain Layout
13988 Decoration
13989 \end_layout
13990
13991 \end_inset
13992
13993  [
13994 \begin_inset Flex Code
13995 status collapsed
13996
13997 \begin_layout Plain Layout
13998
13999 \emph on
14000 Classic
14001 \emph default
14002 ,
14003  Minimalistic,
14004  Conglomerate
14005 \end_layout
14006
14007 \end_inset
14008
14009 ] describes the rendering style used for the inset's frame and buttons.
14010 \end_layout
14011
14012 \begin_layout Itemize
14013
14014 \change_deleted -584632292 1615846694
14015 \begin_inset Flex Code
14016 status collapsed
14017
14018 \begin_layout Plain Layout
14019 AutoInsert
14020 \end_layout
14021
14022 \end_inset
14023
14024  
14025 \begin_inset Flex Code
14026 status collapsed
14027
14028 \begin_layout Plain Layout
14029 [int=0]
14030 \end_layout
14031
14032 \end_inset
14033
14034  If this is set to 
14035 \begin_inset Flex Code
14036 status collapsed
14037
14038 \begin_layout Plain Layout
14039 1
14040 \end_layout
14041
14042 \end_inset
14043
14044 ,
14045  this argument is automatically inserted when the respective style is selected.
14046
14047 \change_deleted -712698321 1559484200
14048  Currently,
14049  only one argument per style\SpecialChar breakableslash
14050 layout can be automatically inserted.
14051 \change_deleted -584632292 1615846694
14052
14053 \end_layout
14054
14055 \begin_layout Itemize
14056
14057 \change_deleted -584632292 1615846694
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062
14063 \change_inserted -712698321 1559490711
14064 InsertOnNewline
14065 \change_unchanged
14066
14067 \end_layout
14068
14069 \end_inset
14070
14071  
14072 \begin_inset Flex Code
14073 status collapsed
14074
14075 \begin_layout Plain Layout
14076
14077 \change_inserted -712698321 1559490703
14078 [int=0]
14079 \change_unchanged
14080
14081 \end_layout
14082
14083 \end_inset
14084
14085  If this is set to 
14086 \begin_inset Flex Code
14087 status collapsed
14088
14089 \begin_layout Plain Layout
14090
14091 \change_inserted -712698321 1559490703
14092 1
14093 \change_unchanged
14094
14095 \end_layout
14096
14097 \end_inset
14098
14099 ,
14100  this argument will be inserted on a new line with 
14101 \begin_inset Flex Code
14102 status collapsed
14103
14104 \begin_layout Plain Layout
14105
14106 \change_inserted -712698321 1559491402
14107 AutoInsert
14108 \change_unchanged
14109
14110 \end_layout
14111
14112 \end_inset
14113
14114  (only available within Flex insets).
14115 \end_layout
14116
14117 \begin_layout Itemize
14118
14119 \change_deleted -584632292 1615846694
14120 \begin_inset Flex Code
14121 status collapsed
14122
14123 \begin_layout Plain Layout
14124 InsertCotext
14125 \end_layout
14126
14127 \end_inset
14128
14129  
14130 \begin_inset Flex Code
14131 status collapsed
14132
14133 \begin_layout Plain Layout
14134 [int=0]
14135 \end_layout
14136
14137 \end_inset
14138
14139  If this is set to 
14140 \begin_inset Flex Code
14141 status collapsed
14142
14143 \begin_layout Plain Layout
14144 1
14145 \end_layout
14146
14147 \end_inset
14148
14149 ,
14150  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
14151 \end_layout
14152
14153 \begin_layout Itemize
14154
14155 \change_deleted -584632292 1615846694
14156 \begin_inset Flex Code
14157 status collapsed
14158
14159 \begin_layout Plain Layout
14160 PassThru
14161 \end_layout
14162
14163 \end_inset
14164
14165  [
14166 \begin_inset Flex Code
14167 status collapsed
14168
14169 \begin_layout Plain Layout
14170
14171 \emph on
14172 inherited
14173 \emph default
14174 ,
14175  true,
14176  false
14177 \end_layout
14178
14179 \end_inset
14180
14181 ] Whether the contents of this argument should be output in raw form,
14182  meaning without special translations that \SpecialChar LaTeX
14183  would require.
14184  By default,
14185  the 
14186 \begin_inset Flex Code
14187 status collapsed
14188
14189 \begin_layout Plain Layout
14190 PassThru
14191 \end_layout
14192
14193 \end_inset
14194
14195  status is inherited by the inset or paragraph layout the argument belongs to,
14196  true and false change the status for the given argument only.
14197 \end_layout
14198
14199 \begin_layout Itemize
14200
14201 \change_deleted -584632292 1615846694
14202 \begin_inset Flex Code
14203 status collapsed
14204
14205 \begin_layout Plain Layout
14206 PassThruChars
14207 \end_layout
14208
14209 \end_inset
14210
14211  [
14212 \begin_inset Flex Code
14213 status collapsed
14214
14215 \begin_layout Plain Layout
14216 string of characters
14217 \end_layout
14218
14219 \end_inset
14220
14221 ]
14222 \family typewriter
14223  
14224 \family default
14225 Defines individual characters
14226 \begin_inset Newline linebreak
14227 \end_inset
14228
14229 that should be output in raw form,
14230  meaning without special translations that \SpecialChar LaTeX
14231  would require.
14232  Note that,
14233  contrary to PassThru,
14234  this needs to be explicitly defined for arguments.
14235  That is,
14236  arguments do not inherit PassThruChars from their parent inset or layout.
14237 \end_layout
14238
14239 \begin_layout Itemize
14240
14241 \change_deleted -584632292 1615846694
14242 \begin_inset Flex Code
14243 status collapsed
14244
14245 \begin_layout Plain Layout
14246 IsTocCaption
14247 \end_layout
14248
14249 \end_inset
14250
14251  [
14252 \begin_inset Flex Code
14253 status collapsed
14254
14255 \begin_layout Plain Layout
14256
14257 \emph on
14258 0
14259 \end_layout
14260
14261 \end_inset
14262
14263 ,
14264 \begin_inset space \thinspace{}
14265 \end_inset
14266
14267
14268 \begin_inset Flex Code
14269 status collapsed
14270
14271 \begin_layout Plain Layout
14272 1
14273 \end_layout
14274
14275 \end_inset
14276
14277 ] If this is set to 1,
14278  the argument will output its content in the corresponding item in the table of contents.
14279  See AddToToc.
14280 \end_layout
14281
14282 \begin_layout Standard
14283
14284 \change_deleted -584632292 1615846694
14285 By default,
14286  the text entered in the \SpecialChar LyX
14287  workarea in the respective layout is the last (mandatory) argument of a command if the 
14288 \begin_inset Flex Code
14289 status collapsed
14290
14291 \begin_layout Plain Layout
14292 LatexType
14293 \end_layout
14294
14295 \end_inset
14296
14297  is 
14298 \begin_inset Flex Code
14299 status collapsed
14300
14301 \begin_layout Plain Layout
14302 Command
14303 \end_layout
14304
14305 \end_inset
14306
14307 .
14308  However,
14309  arguments with the prefix 
14310 \begin_inset Flex Code
14311 status collapsed
14312
14313 \begin_layout Plain Layout
14314 post:
14315 \end_layout
14316
14317 \end_inset
14318
14319  are output after this workarea argument.
14320  Note that post-argument numbering restarts at 1,
14321  so the first argument following the workarea argument is 
14322 \begin_inset Flex Code
14323 status collapsed
14324
14325 \begin_layout Plain Layout
14326 post:1
14327 \end_layout
14328
14329 \end_inset
14330
14331 .
14332  Post-arguments are ignored in any other 
14333 \begin_inset Flex Code
14334 status collapsed
14335
14336 \begin_layout Plain Layout
14337 LatexType
14338 \end_layout
14339
14340 \end_inset
14341
14342  than 
14343 \begin_inset Flex Code
14344 status collapsed
14345
14346 \begin_layout Plain Layout
14347 Command
14348 \end_layout
14349
14350 \end_inset
14351
14352 .
14353 \end_layout
14354
14355 \begin_layout Standard
14356
14357 \change_deleted -584632292 1615846694
14358 Arguments for list 
14359 \begin_inset Flex Code
14360 status collapsed
14361
14362 \begin_layout Plain Layout
14363
14364 \backslash
14365 item
14366 \end_layout
14367
14368 \end_inset
14369
14370 s (as in 
14371 \begin_inset Flex Code
14372 status collapsed
14373
14374 \begin_layout Plain Layout
14375
14376 \backslash
14377 item[foo]
14378 \end_layout
14379
14380 \end_inset
14381
14382 ) have the prefix 
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 item:
14388 \end_layout
14389
14390 \end_inset
14391
14392  followed by the number (e.
14393 \begin_inset space \thinspace{}
14394 \end_inset
14395
14396 g.
14397 \begin_inset space \space{}
14398 \end_inset
14399
14400
14401 \begin_inset Flex Code
14402 status collapsed
14403
14404 \begin_layout Plain Layout
14405 Argument item:1
14406 \end_layout
14407
14408 \end_inset
14409
14410 ).
14411 \end_layout
14412
14413 \begin_layout Standard
14414
14415 \change_deleted -584632292 1615846694
14416 Finally,
14417  there is a special argument type with the prefix 
14418 \begin_inset Flex Code
14419 status collapsed
14420
14421 \begin_layout Plain Layout
14422
14423 \change_inserted -712698321 1534487844
14424 listpreamble:
14425 \change_unchanged
14426
14427 \end_layout
14428
14429 \end_inset
14430
14431 .
14432  It is not really an argument,
14433  but uses the argument interface (thus,
14434  the prefix is also followed by a number,
14435  e.
14436 \begin_inset space \thinspace{}
14437 \end_inset
14438
14439 g.
14440  
14441 \begin_inset Flex Code
14442 status collapsed
14443
14444 \begin_layout Plain Layout
14445
14446 \change_inserted -712698321 1534488412
14447 Argument listpreamble:1
14448 \change_unchanged
14449
14450 \end_layout
14451
14452 \end_inset
14453
14454 ).
14455  As the name implies,
14456  it is targeted at lists such as 
14457 \family sans
14458 Itemize
14459 \family default
14460 ,
14461  
14462 \family sans
14463 Enumerate
14464 \family default
14465 ,
14466  
14467 \family sans
14468 Description
14469 \family default
14470 ,
14471  or 
14472 \family sans
14473 Bibliography
14474 \family default
14475 .
14476  Its content will be output at the list start,
14477  before the first 
14478 \begin_inset Flex Code
14479 status collapsed
14480
14481 \begin_layout Plain Layout
14482
14483 \change_inserted -712698321 1534488058
14484
14485 \backslash
14486 item
14487 \change_unchanged
14488
14489 \end_layout
14490
14491 \end_inset
14492
14493 ,
14494  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
14495 ).
14496  This way,
14497  users can insert redefinitions (of lengths etc.) to individual lists.
14498  By default,
14499  these arguments do not have a delimiter.
14500 \change_unchanged
14501
14502 \end_layout
14503
14504 \end_deeper
14505 \begin_layout Description
14506 \begin_inset Flex Code
14507 status collapsed
14508
14509 \begin_layout Plain Layout
14510 AutoNests
14511 \end_layout
14512
14513 \end_inset
14514
14515  Includes a comma-separated list of layouts that should be nested in and after the current layout.
14516  Only makes sense for nestable layouts (such as environments).
14517  Must be ended by 
14518 \begin_inset Quotes eld
14519 \end_inset
14520
14521
14522 \begin_inset Flex Code
14523 status collapsed
14524
14525 \begin_layout Plain Layout
14526 EndAutoNests
14527 \end_layout
14528
14529 \end_inset
14530
14531
14532 \begin_inset Quotes erd
14533 \end_inset
14534
14535 .
14536  See also 
14537 \begin_inset Flex Code
14538 status collapsed
14539
14540 \begin_layout Plain Layout
14541 IsAutoNestedBy
14542 \end_layout
14543
14544 \end_inset
14545
14546 .
14547 \end_layout
14548
14549 \begin_layout Description
14550 \begin_inset Flex Code
14551 status collapsed
14552
14553 \begin_layout Plain Layout
14554 BabelPreamble
14555 \end_layout
14556
14557 \end_inset
14558
14559  Note that this will completely override any prior 
14560 \begin_inset Flex Code
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564 BabelPreamble
14565 \end_layout
14566
14567 \end_inset
14568
14569  declaration for this style.
14570  Must end with 
14571 \begin_inset Quotes eld
14572 \end_inset
14573
14574
14575 \begin_inset Flex Code
14576 status collapsed
14577
14578 \begin_layout Plain Layout
14579 EndBabelPreamble
14580 \end_layout
14581
14582 \end_inset
14583
14584
14585 \begin_inset Quotes erd
14586 \end_inset
14587
14588 .
14589  See 
14590 \begin_inset CommandInset ref
14591 LatexCommand ref
14592 reference "subsec:I18n"
14593 nolink "false"
14594
14595 \end_inset
14596
14597  for details on its use.
14598 \end_layout
14599
14600 \begin_layout Description
14601 \begin_inset Flex Code
14602 status collapsed
14603
14604 \begin_layout Plain Layout
14605 BottomSep
14606 \end_layout
14607
14608 \end_inset
14609
14610  [
14611 \begin_inset Flex Code
14612 status collapsed
14613
14614 \begin_layout Plain Layout
14615 float=0
14616 \end_layout
14617
14618 \end_inset
14619
14620 ]
14621 \begin_inset Foot
14622 status collapsed
14623
14624 \begin_layout Plain Layout
14625 Note that a `float' here is a real number,
14626  such as:
14627  1.5.
14628 \end_layout
14629
14630 \end_inset
14631
14632  The vertical space with which the last of a chain of paragraphs with this style is separated from the following paragraph.
14633  If the next paragraph has another style,
14634  the separations are not simply added,
14635  but the maximum is taken.
14636 \end_layout
14637
14638 \begin_layout Description
14639 \begin_inset Flex Code
14640 status collapsed
14641
14642 \begin_layout Plain Layout
14643 Category
14644 \end_layout
14645
14646 \end_inset
14647
14648  [
14649 \begin_inset Flex Code
14650 status collapsed
14651
14652 \begin_layout Plain Layout
14653 string
14654 \end_layout
14655
14656 \end_inset
14657
14658 ] The category for this style.
14659  This is used to group related styles in the style combobox on the toolbar.
14660  Any string can be used,
14661  but you may want to use existing categories with your own styles.
14662  
14663 \end_layout
14664
14665 \begin_layout Description
14666
14667 \change_deleted 1075283030 1672014981
14668 \begin_inset Flex Code
14669 status collapsed
14670
14671 \begin_layout Plain Layout
14672 CommandDepth
14673 \end_layout
14674
14675 \end_inset
14676
14677  Depth of XML command.
14678  Used only with XML-type formats.
14679 \end_layout
14680
14681 \begin_layout Description
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 CopyStyle
14687 \end_layout
14688
14689 \end_inset
14690
14691  [
14692 \begin_inset Flex Code
14693 status collapsed
14694
14695 \begin_layout Plain Layout
14696 string
14697 \end_layout
14698
14699 \end_inset
14700
14701 ] Copies all the features of an existing style into the current one.
14702
14703 \change_inserted -584632292 1678808972
14704  Note that this copies the style as it is defined at that point.
14705  Later changes to it will not affect styles into which it has been copied.
14706 \change_unchanged
14707
14708 \end_layout
14709
14710 \begin_layout Description
14711
14712 \change_inserted 1075283030 1672014806
14713 \begin_inset Flex Code
14714 status collapsed
14715
14716 \begin_layout Plain Layout
14717
14718 \change_inserted 1075283030 1671679781
14719 DocBookGenerateTitle
14720 \change_unchanged
14721
14722 \end_layout
14723
14724 \end_inset
14725
14726  [
14727 \begin_inset Flex Code
14728 status collapsed
14729
14730 \begin_layout Plain Layout
14731
14732 \change_inserted 1075283030 1672014763
14733 bool=false
14734 \change_unchanged
14735
14736 \end_layout
14737
14738 \end_inset
14739
14740 ] Generates a
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745
14746 \change_inserted 1075283030 1672014789
14747 title
14748 \change_unchanged
14749
14750 \end_layout
14751
14752 \end_inset
14753
14754  tag after the wrapper tag.
14755  This parameter should only be used with
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760
14761 \change_inserted 1075283030 1671679828
14762 DocBookWrapperTag
14763 \change_unchanged
14764
14765 \end_layout
14766
14767 \end_inset
14768
14769 ,
14770  otherwise the title will be output
14771 \emph on
14772  before
14773 \emph default
14774  the contents of the environment.
14775  The generated title is the same as the LyXHTML label:
14776  a combination of the environment type and its number.
14777  A major use is when DocBook has no close mapping for LaTeX environments and users must fallback to using a generic container such as
14778 \begin_inset Flex Code
14779 status collapsed
14780
14781 \begin_layout Plain Layout
14782
14783 \change_inserted 1075283030 1672014801
14784 figure
14785 \change_unchanged
14786
14787 \end_layout
14788
14789 \end_inset
14790
14791 ,
14792  which requires a title although there is none in LaTeX.
14793  This feature is heavily used for theorem-like environments.
14794 \change_unchanged
14795
14796 \end_layout
14797
14798 \begin_layout Description
14799 \begin_inset Flex Code
14800 status collapsed
14801
14802 \begin_layout Plain Layout
14803 DependsOn
14804 \end_layout
14805
14806 \end_inset
14807
14808  [
14809 \begin_inset Flex Code
14810 status collapsed
14811
14812 \begin_layout Plain Layout
14813 <name>
14814 \end_layout
14815
14816 \end_inset
14817
14818 ] The name of a style whose preamble should be output 
14819 \emph on
14820 before
14821 \emph default
14822  this one.
14823  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
14824 \begin_inset Foot
14825 status collapsed
14826
14827 \begin_layout Plain Layout
14828 Note that,
14829  besides that functionality,
14830  there is no way to ensure any ordering of preambles.
14831  The ordering that you see in a given version of \SpecialChar LyX
14832  may change without warning in later versions.
14833 \end_layout
14834
14835 \end_inset
14836
14837
14838 \end_layout
14839
14840 \begin_layout Description
14841 \begin_inset Flex Code
14842 status collapsed
14843
14844 \begin_layout Plain Layout
14845 EndLabelType
14846 \end_layout
14847
14848 \end_inset
14849
14850  [
14851 \begin_inset Flex Code
14852 status collapsed
14853
14854 \begin_layout Plain Layout
14855
14856 \emph on
14857 No_Label
14858 \emph default
14859 ,
14860  Box,
14861  Filled_Box,
14862  Static
14863 \end_layout
14864
14865 \end_inset
14866
14867 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
14868 \begin_inset Flex Code
14869 status collapsed
14870
14871 \begin_layout Plain Layout
14872 LatexType
14873 \end_layout
14874
14875 \end_inset
14876
14877  is
14878 \begin_inset Newline newline
14879 \end_inset
14880
14881
14882 \begin_inset Flex Code
14883 status collapsed
14884
14885 \begin_layout Plain Layout
14886 Environment
14887 \end_layout
14888
14889 \end_inset
14890
14891 ,
14892  
14893 \begin_inset Flex Code
14894 status collapsed
14895
14896 \begin_layout Plain Layout
14897 Item_Environment
14898 \end_layout
14899
14900 \end_inset
14901
14902  or 
14903 \begin_inset Flex Code
14904 status collapsed
14905
14906 \begin_layout Plain Layout
14907 List_Environment
14908 \end_layout
14909
14910 \end_inset
14911
14912 ).
14913  
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918 No_Label
14919 \end_layout
14920
14921 \end_inset
14922
14923  means 
14924 \begin_inset Quotes eld
14925 \end_inset
14926
14927 nothing
14928 \begin_inset Quotes erd
14929 \end_inset
14930
14931 ,
14932  
14933 \begin_inset Flex Code
14934 status collapsed
14935
14936 \begin_layout Plain Layout
14937 Box
14938 \end_layout
14939
14940 \end_inset
14941
14942  (resp.
14943 \begin_inset space \space{}
14944 \end_inset
14945
14946
14947 \begin_inset Flex Code
14948 status collapsed
14949
14950 \begin_layout Plain Layout
14951 Filled_Box
14952 \end_layout
14953
14954 \end_inset
14955
14956 ) is a white (resp.
14957 \begin_inset space ~
14958 \end_inset
14959
14960 black) square suitable for end of proof markers,
14961  
14962 \begin_inset Flex Code
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 Static
14967 \end_layout
14968
14969 \end_inset
14970
14971  is an explicit text string.
14972 \end_layout
14973
14974 \begin_layout Description
14975 \begin_inset Flex Code
14976 status collapsed
14977
14978 \begin_layout Plain Layout
14979 EndLabelString
14980 \end_layout
14981
14982 \end_inset
14983
14984  [
14985 \begin_inset Flex Code
14986 status collapsed
14987
14988 \begin_layout Plain Layout
14989 string=""
14990 \end_layout
14991
14992 \end_inset
14993
14994 ] The string used for a label with a 
14995 \begin_inset Flex Code
14996 status collapsed
14997
14998 \begin_layout Plain Layout
14999 Static
15000 \end_layout
15001
15002 \end_inset
15003
15004
15005 \begin_inset Newline newline
15006 \end_inset
15007
15008
15009 \begin_inset Flex Code
15010 status collapsed
15011
15012 \begin_layout Plain Layout
15013 EndLabelType
15014 \end_layout
15015
15016 \end_inset
15017
15018 .
15019  
15020 \end_layout
15021
15022 \begin_layout Description
15023 \begin_inset Flex Code
15024 status collapsed
15025
15026 \begin_layout Plain Layout
15027 Font
15028 \end_layout
15029
15030 \end_inset
15031
15032  The font used for both the text body 
15033 \emph on
15034 and
15035 \emph default
15036  the label.
15037  See 
15038 \begin_inset CommandInset ref
15039 LatexCommand ref
15040 reference "subsec:Font-description"
15041 nolink "false"
15042
15043 \end_inset
15044
15045 .
15046  Note that defining this font automatically defines the 
15047 \begin_inset Flex Code
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 LabelFont
15052 \end_layout
15053
15054 \end_inset
15055
15056  to the same value.
15057  So you should define this one first if you also want to define 
15058 \begin_inset Flex Code
15059 status collapsed
15060
15061 \begin_layout Plain Layout
15062 LabelFont
15063 \end_layout
15064
15065 \end_inset
15066
15067 .
15068 \end_layout
15069
15070 \begin_layout Description
15071 \begin_inset Flex Code
15072 status collapsed
15073
15074 \begin_layout Plain Layout
15075 ForceLocal
15076 \end_layout
15077
15078 \end_inset
15079
15080  [
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 int=0
15086 \end_layout
15087
15088 \end_inset
15089
15090 ] Used for backporting new styles to stable \SpecialChar LyX
15091  versions.
15092  The first stable version that supports this tag is \SpecialChar LyX
15093  2.1.0.
15094  The argument is a number which may either be 0,
15095  -1 or any value greater than zero.
15096  If the 
15097 \begin_inset Flex Code
15098 status collapsed
15099
15100 \begin_layout Plain Layout
15101 ForceLocal
15102 \end_layout
15103
15104 \end_inset
15105
15106  flag of a style is greater than zero,
15107  it will always be written to the document header.
15108  If a .lyx file is read,
15109  the style definitions from the document header are added to the document class.
15110  Therefore even older \SpecialChar LyX
15111  versions can handle the style.
15112  The argument of 
15113 \begin_inset Flex Code
15114 status collapsed
15115
15116 \begin_layout Plain Layout
15117 ForceLocal
15118 \end_layout
15119
15120 \end_inset
15121
15122  is a version number:
15123  if the style is read,
15124  and the version number is less than the version number of the already existing style in the document class,
15125  the new style is ignored.
15126  If the version number is greater,
15127  the new style replaces the existing style.
15128  A value of -1 means an infinite version number,
15129  i.
15130 \begin_inset space \thinspace{}
15131 \end_inset
15132
15133 e.
15134 \begin_inset space \space{}
15135 \end_inset
15136
15137 the style is always used.
15138 \end_layout
15139
15140 \begin_layout Description
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 FreeSpacing
15146 \end_layout
15147
15148 \end_inset
15149
15150  [
15151 \begin_inset Flex Code
15152 status collapsed
15153
15154 \begin_layout Plain Layout
15155
15156 \emph on
15157 0
15158 \end_layout
15159
15160 \end_inset
15161
15162 ,
15163 \begin_inset space \thinspace{}
15164 \end_inset
15165
15166
15167 \begin_inset Flex Code
15168 status collapsed
15169
15170 \begin_layout Plain Layout
15171 1
15172 \end_layout
15173
15174 \end_inset
15175
15176 ] Usually \SpecialChar LyX
15177  does not allow you to insert more than one space between words,
15178  since a space is considered as the separation between two words,
15179  not a character or symbol of its own.
15180  This is a very fine thing but sometimes annoying,
15181  for example,
15182  when typing program code or plain \SpecialChar LaTeX
15183  code.
15184  For this reason,
15185  
15186 \begin_inset Flex Code
15187 status collapsed
15188
15189 \begin_layout Plain Layout
15190 FreeSpacing
15191 \end_layout
15192
15193 \end_inset
15194
15195  can be enabled.
15196  
15197 \change_deleted -495245474 1550490105
15198 Note that 
15199 \change_unchanged
15200 \SpecialChar LyX
15201  will create 
15202 \change_deleted 177693 1654669077
15203 protected
15204 \change_inserted 177693 1654669079
15205 non-breaking
15206 \change_unchanged
15207  
15208 \change_deleted 177693 1654669082
15209 blanks
15210 \change_inserted 177693 1654669082
15211 spaces
15212 \change_unchanged
15213  for the additional blanks when
15214 \change_deleted 34634807 1619626461
15215  in
15216 \change_unchanged
15217  
15218 \change_inserted -495245474 1550490096
15219
15220 \begin_inset Flex Code
15221 status collapsed
15222
15223 \begin_layout Plain Layout
15224
15225 \change_inserted -495245474 1550490089
15226 Passthru 1
15227 \change_unchanged
15228
15229 \end_layout
15230
15231 \end_inset
15232
15233  is not specified.
15234 \change_deleted -495245474 1550490116
15235 another mode than \SpecialChar LaTeX
15236 -mode.
15237
15238 \change_inserted -495245474 1550247760
15239  Note that 
15240 \begin_inset Flex Code
15241 status collapsed
15242
15243 \begin_layout Plain Layout
15244
15245 \change_inserted -495245474 1550247736
15246 FreeSpacing
15247 \change_unchanged
15248
15249 \end_layout
15250
15251 \end_inset
15252
15253  implies 
15254 \begin_inset Flex Code
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258
15259 \change_inserted -495245474 1550247755
15260 KeepEmpty
15261 \change_unchanged
15262
15263 \end_layout
15264
15265 \end_inset
15266
15267 .
15268 \change_unchanged
15269
15270 \end_layout
15271
15272 \begin_layout Description
15273 \begin_inset Flex Code
15274 status collapsed
15275
15276 \begin_layout Plain Layout
15277 HTML*
15278 \end_layout
15279
15280 \end_inset
15281
15282  These tags are used with XHTML output.
15283  See 
15284 \begin_inset CommandInset ref
15285 LatexCommand ref
15286 reference "subsec:Paragraph-Style-XHTML"
15287 nolink "false"
15288
15289 \end_inset
15290
15291 .
15292 \end_layout
15293
15294 \begin_layout Description
15295
15296 \change_deleted 1075283030 1672014684
15297 \begin_inset Flex Code
15298 status collapsed
15299
15300 \begin_layout Plain Layout
15301 InnerTag
15302 \end_layout
15303
15304 \end_inset
15305
15306  [FIXME] (Used only with XML-type formats.)
15307 \change_unchanged
15308
15309 \end_layout
15310
15311 \begin_layout Description
15312 \begin_inset Flex Code
15313 status collapsed
15314
15315 \begin_layout Plain Layout
15316 InPreamble
15317 \end_layout
15318
15319 \end_inset
15320
15321  [
15322 \begin_inset Flex Code
15323 status collapsed
15324
15325 \begin_layout Plain Layout
15326
15327 \emph on
15328 0
15329 \end_layout
15330
15331 \end_inset
15332
15333 ,
15334 \begin_inset space \thinspace{}
15335 \end_inset
15336
15337
15338 \begin_inset Flex Code
15339 status collapsed
15340
15341 \begin_layout Plain Layout
15342 1
15343 \end_layout
15344
15345 \end_inset
15346
15347 ] If 
15348 \begin_inset Flex Code
15349 status collapsed
15350
15351 \begin_layout Plain Layout
15352 1
15353 \end_layout
15354
15355 \end_inset
15356
15357 ,
15358  marks the style as to be included in the document preamble and not in the document body.
15359  This is useful for document classes that want such information as the title and author to appear in the preamble.
15360  Note that this works only for styles for which the 
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 LatexType
15366 \end_layout
15367
15368 \end_inset
15369
15370  is 
15371 \begin_inset Flex Code
15372 status collapsed
15373
15374 \begin_layout Plain Layout
15375 Command
15376 \end_layout
15377
15378 \end_inset
15379
15380  or 
15381 \begin_inset Flex Code
15382 status collapsed
15383
15384 \begin_layout Plain Layout
15385 Paragraph
15386 \end_layout
15387
15388 \end_inset
15389
15390 .
15391 \end_layout
15392
15393 \begin_layout Description
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 InTitle
15399 \end_layout
15400
15401 \end_inset
15402
15403  [
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408
15409 \emph on
15410 0
15411 \end_layout
15412
15413 \end_inset
15414
15415 ,
15416 \begin_inset space \thinspace{}
15417 \end_inset
15418
15419
15420 \begin_inset Flex Code
15421 status collapsed
15422
15423 \begin_layout Plain Layout
15424 1
15425 \end_layout
15426
15427 \end_inset
15428
15429 ] If 
15430 \begin_inset Flex Code
15431 status collapsed
15432
15433 \begin_layout Plain Layout
15434 1
15435 \end_layout
15436
15437 \end_inset
15438
15439 ,
15440  marks the style as being part of a title block (see also the 
15441 \begin_inset Flex Code
15442 status collapsed
15443
15444 \begin_layout Plain Layout
15445 TitleLatexType
15446 \end_layout
15447
15448 \end_inset
15449
15450  and 
15451 \begin_inset Flex Code
15452 status collapsed
15453
15454 \begin_layout Plain Layout
15455 TitleLatexName
15456 \end_layout
15457
15458 \end_inset
15459
15460  global entries).
15461 \end_layout
15462
15463 \begin_layout Description
15464 \begin_inset Flex Code
15465 status collapsed
15466
15467 \begin_layout Plain Layout
15468 IsAutoNestedBy
15469 \end_layout
15470
15471 \end_inset
15472
15473  Includes a comma-separated list of layouts after which this one should be nested.
15474  Only makes sense with regard to nestable layouts (such as environments).
15475  Must be ended by 
15476 \begin_inset Quotes eld
15477 \end_inset
15478
15479
15480 \begin_inset Flex Code
15481 status collapsed
15482
15483 \begin_layout Plain Layout
15484 EndIsAutoNestedBy
15485 \end_layout
15486
15487 \end_inset
15488
15489
15490 \begin_inset Quotes erd
15491 \end_inset
15492
15493 .
15494  See also 
15495 \begin_inset Flex Code
15496 status collapsed
15497
15498 \begin_layout Plain Layout
15499 AutoNests
15500 \end_layout
15501
15502 \end_inset
15503
15504 .
15505 \end_layout
15506
15507 \begin_layout Description
15508 \begin_inset Flex Code
15509 status collapsed
15510
15511 \begin_layout Plain Layout
15512 IsTocCaption
15513 \end_layout
15514
15515 \end_inset
15516
15517  [
15518 \begin_inset Flex Code
15519 status collapsed
15520
15521 \begin_layout Plain Layout
15522
15523 \emph on
15524 0
15525 \end_layout
15526
15527 \end_inset
15528
15529 ,
15530 \begin_inset space \thinspace{}
15531 \end_inset
15532
15533
15534 \begin_inset Flex Code
15535 status collapsed
15536
15537 \begin_layout Plain Layout
15538 1
15539 \end_layout
15540
15541 \end_inset
15542
15543 ] If this is set to 1 and AddToToc is enabled,
15544  the paragraph adds a summary of its contents in its item in the table of contents.
15545  Otherwise,
15546  only the label,
15547  if it exists,
15548  appears.
15549 \end_layout
15550
15551 \begin_layout Description
15552 \begin_inset Flex Code
15553 status collapsed
15554
15555 \begin_layout Plain Layout
15556 ItemCommand
15557 \end_layout
15558
15559 \end_inset
15560
15561  [
15562 \begin_inset Flex Code
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566 string="item"
15567 \end_layout
15568
15569 \end_inset
15570
15571 ] The \SpecialChar LaTeX
15572  command sequence declaring an item in a list.
15573  The command is to be defined without the preceding backslash (the default is 
15574 \begin_inset Quotes eld
15575 \end_inset
15576
15577 item
15578 \begin_inset Quotes erd
15579 \end_inset
15580
15581 ,
15582  resulting in 
15583 \begin_inset Flex Code
15584 status collapsed
15585
15586 \begin_layout Plain Layout
15587
15588 \backslash
15589 item
15590 \end_layout
15591
15592 \end_inset
15593
15594  in the \SpecialChar LaTeX
15595  output).
15596 \end_layout
15597
15598 \begin_layout Description
15599 \begin_inset Flex Code
15600 status collapsed
15601
15602 \begin_layout Plain Layout
15603 ItemSep
15604 \end_layout
15605
15606 \end_inset
15607
15608  [
15609 \begin_inset Flex Code
15610 status collapsed
15611
15612 \begin_layout Plain Layout
15613 float=0
15614 \end_layout
15615
15616 \end_inset
15617
15618 ] This provides extra space between paragraphs that have the same style.
15619  If you put other styles into an environment,
15620  each is separated with the environment's 
15621 \begin_inset Flex Code
15622 status collapsed
15623
15624 \begin_layout Plain Layout
15625 ParSep
15626 \end_layout
15627
15628 \end_inset
15629
15630 .
15631  But the whole items of the environment are additionally separated with this 
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636 ItemSep
15637 \end_layout
15638
15639 \end_inset
15640
15641 .
15642  Note that this is a
15643 \emph on
15644  multiplier.
15645 \end_layout
15646
15647 \begin_layout Description
15648
15649 \change_deleted 1075283030 1672014680
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654 ItemTag
15655 \end_layout
15656
15657 \end_inset
15658
15659  [FIXME] (Used only with XML-type formats.)
15660 \change_unchanged
15661
15662 \end_layout
15663
15664 \begin_layout Description
15665 \begin_inset Flex Code
15666 status collapsed
15667
15668 \begin_layout Plain Layout
15669 KeepEmpty
15670 \end_layout
15671
15672 \end_inset
15673
15674  [
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679
15680 \emph on
15681 0
15682 \end_layout
15683
15684 \end_inset
15685
15686 ,
15687 \begin_inset space \thinspace{}
15688 \end_inset
15689
15690
15691 \begin_inset Flex Code
15692 status collapsed
15693
15694 \begin_layout Plain Layout
15695 1
15696 \end_layout
15697
15698 \end_inset
15699
15700 ] Usually \SpecialChar LyX
15701  does not allow you to leave a paragraph empty,
15702  since it would lead to empty \SpecialChar LaTeX
15703  output.
15704  There are some cases where this could be desirable however:
15705  in a letter template,
15706  the required fields can be provided as empty fields,
15707  so that people do not forget them;
15708  in some special classes,
15709  a style can be used as some kind of break,
15710  which does not contain actual text.
15711 \end_layout
15712
15713 \begin_layout Description
15714 \begin_inset Flex Code
15715 status collapsed
15716
15717 \begin_layout Plain Layout
15718 LabelBottomsep
15719 \end_layout
15720
15721 \end_inset
15722
15723  [
15724 \begin_inset Flex Code
15725 status collapsed
15726
15727 \begin_layout Plain Layout
15728 float=0
15729 \end_layout
15730
15731 \end_inset
15732
15733 ] The vertical space between the label and the text body.
15734  Only used for labels that are above the text body (
15735 \begin_inset Flex Code
15736 status collapsed
15737
15738 \begin_layout Plain Layout
15739 Top_Environment
15740 \end_layout
15741
15742 \end_inset
15743
15744  and
15745 \begin_inset Newline newline
15746 \end_inset
15747
15748
15749 \begin_inset Flex Code
15750 status collapsed
15751
15752 \begin_layout Plain Layout
15753 Centered_Top_Environment
15754 \end_layout
15755
15756 \end_inset
15757
15758 ).
15759 \end_layout
15760
15761 \begin_layout Description
15762 \begin_inset Flex Code
15763 status collapsed
15764
15765 \begin_layout Plain Layout
15766 LabelCounter
15767 \end_layout
15768
15769 \end_inset
15770
15771  [
15772 \begin_inset Flex Code
15773 status collapsed
15774
15775 \begin_layout Plain Layout
15776 string=""
15777 \end_layout
15778
15779 \end_inset
15780
15781 ] The name of the counter for automatic numbering.
15782  In order to have the counter appear with your label,
15783  you will need to reference it in the 
15784 \begin_inset Flex Code
15785 status collapsed
15786
15787 \begin_layout Plain Layout
15788
15789 \family typewriter
15790 LabelString
15791 \end_layout
15792
15793 \end_inset
15794
15795 .
15796  This will work with 
15797 \begin_inset Flex Code
15798 status collapsed
15799
15800 \begin_layout Plain Layout
15801 LabelType
15802 \end_layout
15803
15804 \end_inset
15805
15806 s,
15807  
15808 \begin_inset Flex Code
15809 status collapsed
15810
15811 \begin_layout Plain Layout
15812 Static
15813 \end_layout
15814
15815 \end_inset
15816
15817 ,
15818  
15819 \begin_inset Flex Code
15820 status collapsed
15821
15822 \begin_layout Plain Layout
15823 Above
15824 \end_layout
15825
15826 \end_inset
15827
15828  and 
15829 \begin_inset Flex Code
15830 status collapsed
15831
15832 \begin_layout Plain Layout
15833 Centered
15834 \end_layout
15835
15836 \end_inset
15837
15838 ,
15839  at least.
15840 \begin_inset Newline newline
15841 \end_inset
15842
15843 This 
15844 \emph on
15845 may
15846 \emph default
15847  also be given if 
15848 \begin_inset Flex Code
15849 status collapsed
15850
15851 \begin_layout Plain Layout
15852 LabelType
15853 \end_layout
15854
15855 \end_inset
15856
15857  is 
15858 \begin_inset Flex Code
15859 status collapsed
15860
15861 \begin_layout Plain Layout
15862 Enumerate
15863 \end_layout
15864
15865 \end_inset
15866
15867 ,
15868  though this case is a bit complicated.
15869  Suppose you declare 
15870 \begin_inset Quotes eld
15871 \end_inset
15872
15873
15874 \begin_inset Flex Code
15875 status collapsed
15876
15877 \begin_layout Plain Layout
15878 LabelCounter myenum
15879 \end_layout
15880
15881 \end_inset
15882
15883
15884 \begin_inset Quotes erd
15885 \end_inset
15886
15887 .
15888  Then the actual counters used are 
15889 \begin_inset Flex Code
15890 status collapsed
15891
15892 \begin_layout Plain Layout
15893 myenumi
15894 \end_layout
15895
15896 \end_inset
15897
15898 ,
15899  
15900 \begin_inset Flex Code
15901 status collapsed
15902
15903 \begin_layout Plain Layout
15904 myenumii
15905 \end_layout
15906
15907 \end_inset
15908
15909 ,
15910  
15911 \begin_inset Flex Code
15912 status collapsed
15913
15914 \begin_layout Plain Layout
15915 myenumiii
15916 \end_layout
15917
15918 \end_inset
15919
15920  and 
15921 \begin_inset Flex Code
15922 status collapsed
15923
15924 \begin_layout Plain Layout
15925 myenumiv
15926 \end_layout
15927
15928 \end_inset
15929
15930 ,
15931  much as in \SpecialChar LaTeX
15932 .
15933  These counters must all be declared separately.
15934 \begin_inset Newline newline
15935 \end_inset
15936
15937 See 
15938 \begin_inset CommandInset ref
15939 LatexCommand ref
15940 reference "subsec:Counters"
15941 nolink "false"
15942
15943 \end_inset
15944
15945  for details on counters.
15946 \end_layout
15947
15948 \begin_layout Description
15949 \begin_inset Flex Code
15950 status collapsed
15951
15952 \begin_layout Plain Layout
15953 LabelFont
15954 \end_layout
15955
15956 \end_inset
15957
15958  The font used for the label.
15959  See 
15960 \begin_inset CommandInset ref
15961 LatexCommand ref
15962 reference "subsec:Font-description"
15963 nolink "false"
15964
15965 \end_inset
15966
15967 .
15968 \end_layout
15969
15970 \begin_layout Description
15971 \begin_inset Flex Code
15972 status collapsed
15973
15974 \begin_layout Plain Layout
15975 LabelIndent
15976 \end_layout
15977
15978 \end_inset
15979
15980  [
15981 \begin_inset Flex Code
15982 status collapsed
15983
15984 \begin_layout Plain Layout
15985 string=""
15986 \end_layout
15987
15988 \end_inset
15989
15990 ] Text that indicates how far a label should be indented.
15991 \end_layout
15992
15993 \begin_layout Description
15994 \begin_inset Flex Code
15995 status collapsed
15996
15997 \begin_layout Plain Layout
15998 LabelSep
15999 \end_layout
16000
16001 \end_inset
16002
16003  [
16004 \begin_inset Flex Code
16005 status collapsed
16006
16007 \begin_layout Plain Layout
16008 string=""
16009 \end_layout
16010
16011 \end_inset
16012
16013 ] Text that indicates the amount of horizontal space between the label and the text body.
16014  Only used for labels that are not above the text body.
16015 \end_layout
16016
16017 \begin_layout Description
16018 \begin_inset Flex Code
16019 status collapsed
16020
16021 \begin_layout Plain Layout
16022 LabelString
16023 \end_layout
16024
16025 \end_inset
16026
16027  [
16028 \begin_inset Flex Code
16029 status collapsed
16030
16031 \begin_layout Plain Layout
16032 string=""
16033 \end_layout
16034
16035 \end_inset
16036
16037 ] The string used for the label.
16038  When 
16039 \begin_inset Flex Code
16040 status collapsed
16041
16042 \begin_layout Plain Layout
16043 LabelCounter
16044 \end_layout
16045
16046 \end_inset
16047
16048  is set,
16049  this string can be contain the special formatting commands described in 
16050 \begin_inset CommandInset ref
16051 LatexCommand ref
16052 reference "subsec:Counters"
16053 nolink "false"
16054
16055 \end_inset
16056
16057 .
16058 \end_layout
16059
16060 \begin_layout Description
16061 \begin_inset Flex Code
16062 status collapsed
16063
16064 \begin_layout Plain Layout
16065 LabelStringAppendix
16066 \end_layout
16067
16068 \end_inset
16069
16070  [
16071 \begin_inset Flex Code
16072 status collapsed
16073
16074 \begin_layout Plain Layout
16075 string=""
16076 \end_layout
16077
16078 \end_inset
16079
16080 ] This is used inside the appendix instead of
16081 \begin_inset Newline newline
16082 \end_inset
16083
16084
16085 \begin_inset Flex Code
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 LabelString
16090 \end_layout
16091
16092 \end_inset
16093
16094 .
16095  Note that every 
16096 \begin_inset Flex Code
16097 status collapsed
16098
16099 \begin_layout Plain Layout
16100 LabelString
16101 \end_layout
16102
16103 \end_inset
16104
16105  statement resets
16106 \begin_inset Newline newline
16107 \end_inset
16108
16109
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 LabelStringAppendix
16115 \end_layout
16116
16117 \end_inset
16118
16119  too.
16120 \change_deleted 1075283030 1672015070
16121
16122 \end_layout
16123
16124 \begin_layout Description
16125
16126 \change_deleted 1075283030 1672015070
16127 \begin_inset Flex Code
16128 status collapsed
16129
16130 \begin_layout Plain Layout
16131 LabelTag
16132 \end_layout
16133
16134 \end_inset
16135
16136  [FIXME] (Used only with XML-type formats.)
16137 \change_unchanged
16138
16139 \end_layout
16140
16141 \begin_layout Description
16142 \begin_inset Flex Code
16143 status collapsed
16144
16145 \begin_layout Plain Layout
16146 LabelType
16147 \end_layout
16148
16149 \end_inset
16150
16151  [
16152 \begin_inset Flex Code
16153 status collapsed
16154
16155 \begin_layout Plain Layout
16156
16157 \emph on
16158 No_Label
16159 \emph default
16160 ,
16161  Manual,
16162  Static,
16163  Above,
16164  
16165 \begin_inset Newline newline
16166 \end_inset
16167
16168 Centered,
16169  Sensitive,
16170  Enumerate,
16171 \begin_inset Newline newline
16172 \end_inset
16173
16174 Itemize,
16175  Bibliography
16176 \end_layout
16177
16178 \end_inset
16179
16180 ]
16181 \end_layout
16182
16183 \begin_deeper
16184 \begin_layout Description
16185 \begin_inset Flex Code
16186 status collapsed
16187
16188 \begin_layout Plain Layout
16189 Manual
16190 \end_layout
16191
16192 \end_inset
16193
16194  means the label is the very first word (up to the first real blank).
16195  Use 
16196 \change_deleted 177693 1654669087
16197 protected
16198 \change_inserted 177693 1654669089
16199 non-breaking
16200 \change_unchanged
16201  spaces if you want more than one word as the label.
16202  
16203 \end_layout
16204
16205 \begin_layout Description
16206 \begin_inset Flex Code
16207 status collapsed
16208
16209 \begin_layout Plain Layout
16210 Static
16211 \end_layout
16212
16213 \end_inset
16214
16215  means the label is simply what is declared as 
16216 \begin_inset Flex Code
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220 LabelString
16221 \end_layout
16222
16223 \end_inset
16224
16225 .
16226  This will be displayed 
16227 \begin_inset Quotes eld
16228 \end_inset
16229
16230 inline
16231 \begin_inset Quotes erd
16232 \end_inset
16233
16234 ,
16235  at the beginning of the paragraph.
16236  If the 
16237 \begin_inset Flex Code
16238 status collapsed
16239
16240 \begin_layout Plain Layout
16241 LatexType
16242 \end_layout
16243
16244 \end_inset
16245
16246  is 
16247 \begin_inset Flex Code
16248 status collapsed
16249
16250 \begin_layout Plain Layout
16251 Environment
16252 \end_layout
16253
16254 \end_inset
16255
16256 ,
16257  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
16258 \begin_inset Flex Code
16259 status collapsed
16260
16261 \begin_layout Plain Layout
16262 Style
16263 \end_layout
16264
16265 \end_inset
16266
16267 .
16268 \end_layout
16269
16270 \begin_layout Description
16271 \begin_inset Flex Code
16272 status collapsed
16273
16274 \begin_layout Plain Layout
16275 Above
16276 \end_layout
16277
16278 \end_inset
16279
16280
16281 \begin_inset space ~
16282 \end_inset
16283
16284 and
16285 \begin_inset space ~
16286 \end_inset
16287
16288
16289 \begin_inset Flex Code
16290 status collapsed
16291
16292 \begin_layout Plain Layout
16293 Centered
16294 \end_layout
16295
16296 \end_inset
16297
16298  are special cases of 
16299 \begin_inset Flex Code
16300 status collapsed
16301
16302 \begin_layout Plain Layout
16303 Static
16304 \end_layout
16305
16306 \end_inset
16307
16308 .
16309  The label will be printed above the paragraph either at the beginning of the line or centered.
16310 \end_layout
16311
16312 \begin_layout Description
16313 \begin_inset Flex Code
16314 status collapsed
16315
16316 \begin_layout Plain Layout
16317 Sensitive
16318 \end_layout
16319
16320 \end_inset
16321
16322  is a special case for the caption-labels 
16323 \begin_inset Quotes eld
16324 \end_inset
16325
16326 Figure
16327 \begin_inset Quotes erd
16328 \end_inset
16329
16330  and 
16331 \begin_inset Quotes eld
16332 \end_inset
16333
16334 Table
16335 \begin_inset Quotes erd
16336 \end_inset
16337
16338 .
16339 \begin_inset Newline newline
16340 \end_inset
16341
16342
16343 \begin_inset Flex Code
16344 status collapsed
16345
16346 \begin_layout Plain Layout
16347 Sensitive
16348 \end_layout
16349
16350 \end_inset
16351
16352  means the (hardcoded) label string depends on the kind of float:
16353  It is hardcoded to be `FloatType N',
16354  where N is the value of the counter associated with the float.
16355  For the case that a caption is inserted outside of a float the 
16356 \begin_inset Flex Code
16357 status collapsed
16358
16359 \begin_layout Plain Layout
16360 LabelString
16361 \end_layout
16362
16363 \end_inset
16364
16365  will appear as 
16366 \begin_inset Quotes eld
16367 \end_inset
16368
16369 Senseless!
16370 \begin_inset Quotes erd
16371 \end_inset
16372
16373 .
16374 \end_layout
16375
16376 \begin_layout Description
16377 \begin_inset Flex Code
16378 status collapsed
16379
16380 \begin_layout Plain Layout
16381 Enumerate
16382 \end_layout
16383
16384 \end_inset
16385
16386  produces the usual sort of enumeration labels.
16387  The number type needs to be set in the 
16388 \family sans
16389 Counter
16390 \family default
16391 ,
16392  see 
16393 \begin_inset CommandInset ref
16394 LatexCommand ref
16395 reference "subsec:Counters"
16396 nolink "false"
16397
16398 \end_inset
16399
16400 .
16401 \end_layout
16402
16403 \begin_layout Description
16404 \begin_inset Flex Code
16405 status collapsed
16406
16407 \begin_layout Plain Layout
16408 Itemize
16409 \end_layout
16410
16411 \end_inset
16412
16413  produces various bullets at the different levels.
16414  The bullet types displayed can be set via 
16415 \begin_inset Flex Noun
16416 status collapsed
16417
16418 \begin_layout Plain Layout
16419 Document\SpecialChar menuseparator
16420 Settings\SpecialChar menuseparator
16421 Bullets
16422 \end_layout
16423
16424 \end_inset
16425
16426 .
16427 \end_layout
16428
16429 \begin_layout Description
16430 \begin_inset Flex Code
16431 status collapsed
16432
16433 \begin_layout Plain Layout
16434 Bibliography
16435 \end_layout
16436
16437 \end_inset
16438
16439  should be used only with 
16440 \begin_inset Flex Code
16441 status collapsed
16442
16443 \begin_layout Plain Layout
16444 LatexType BibEnvironment
16445 \end_layout
16446
16447 \end_inset
16448
16449 .
16450 \end_layout
16451
16452 \end_deeper
16453 \begin_layout Description
16454 \begin_inset Flex Code
16455 status collapsed
16456
16457 \begin_layout Plain Layout
16458 LangPreamble
16459 \end_layout
16460
16461 \end_inset
16462
16463  Note that this will completely override any prior 
16464 \begin_inset Flex Code
16465 status collapsed
16466
16467 \begin_layout Plain Layout
16468 LangPreamble
16469 \end_layout
16470
16471 \end_inset
16472
16473  declaration for this style.
16474  Must end with 
16475 \begin_inset Quotes eld
16476 \end_inset
16477
16478
16479 \begin_inset Flex Code
16480 status collapsed
16481
16482 \begin_layout Plain Layout
16483 EndLangPreamble
16484 \end_layout
16485
16486 \end_inset
16487
16488
16489 \begin_inset Quotes erd
16490 \end_inset
16491
16492 .
16493  See 
16494 \begin_inset CommandInset ref
16495 LatexCommand ref
16496 reference "subsec:I18n"
16497 nolink "false"
16498
16499 \end_inset
16500
16501  for details on its use.
16502 \end_layout
16503
16504 \begin_layout Description
16505 \begin_inset Flex Code
16506 status collapsed
16507
16508 \begin_layout Plain Layout
16509 LatexName
16510 \end_layout
16511
16512 \end_inset
16513
16514  [
16515 \begin_inset Flex Code
16516 status collapsed
16517
16518 \begin_layout Plain Layout
16519 <name>
16520 \end_layout
16521
16522 \end_inset
16523
16524 ] The name of the corresponding \SpecialChar LaTeX
16525  stuff.
16526  Either the environment or command name.
16527 \end_layout
16528
16529 \begin_layout Description
16530 \begin_inset Flex Code
16531 status collapsed
16532
16533 \begin_layout Plain Layout
16534 LatexParam
16535 \end_layout
16536
16537 \end_inset
16538
16539  [
16540 \begin_inset Flex Code
16541 status collapsed
16542
16543 \begin_layout Plain Layout
16544 <parameter>
16545 \end_layout
16546
16547 \end_inset
16548
16549 ] An optional parameter for the corresponding 
16550 \begin_inset Flex Code
16551 status collapsed
16552
16553 \begin_layout Plain Layout
16554 LatexName
16555 \end_layout
16556
16557 \end_inset
16558
16559  stuff.
16560  This parameter cannot be changed from within \SpecialChar LyX
16561  (use 
16562 \begin_inset Flex Code
16563 status collapsed
16564
16565 \begin_layout Plain Layout
16566 Argument
16567 \end_layout
16568
16569 \end_inset
16570
16571  for customizable parameters).
16572  This will be output as is after all \SpecialChar LaTeX
16573  
16574 \begin_inset Flex Code
16575 status collapsed
16576
16577 \begin_layout Plain Layout
16578 Argument
16579 \end_layout
16580
16581 \end_inset
16582
16583 s.
16584 \end_layout
16585
16586 \begin_layout Description
16587 \begin_inset Flex Code
16588 status collapsed
16589
16590 \begin_layout Plain Layout
16591 LatexType
16592 \end_layout
16593
16594 \end_inset
16595
16596  [
16597 \begin_inset Flex Code
16598 status collapsed
16599
16600 \begin_layout Plain Layout
16601
16602 \emph on
16603 Paragraph
16604 \emph default
16605 ,
16606  Command,
16607  Environment,
16608  Item_Environment,
16609 \begin_inset Newline newline
16610 \end_inset
16611
16612 List_Environment,
16613  Bib_Environment
16614 \end_layout
16615
16616 \end_inset
16617
16618 ] How the style should be translated into \SpecialChar LaTeX
16619 .
16620 \begin_inset Foot
16621 status collapsed
16622
16623 \begin_layout Plain Layout
16624 \begin_inset Flex Code
16625 status collapsed
16626
16627 \begin_layout Plain Layout
16628 LatexType
16629 \end_layout
16630
16631 \end_inset
16632
16633  is perhaps a bit misleading,
16634  since these rules apply to SGML classes,
16635  too.
16636  Visit the SGML class files for specific examples.
16637 \end_layout
16638
16639 \end_inset
16640
16641
16642 \end_layout
16643
16644 \begin_deeper
16645 \begin_layout Description
16646 \begin_inset Flex Code
16647 status collapsed
16648
16649 \begin_layout Plain Layout
16650 Paragraph
16651 \end_layout
16652
16653 \end_inset
16654
16655  means nothing special.
16656 \end_layout
16657
16658 \begin_layout Description
16659 \begin_inset Flex Code
16660 status collapsed
16661
16662 \begin_layout Plain Layout
16663 Command
16664 \end_layout
16665
16666 \end_inset
16667
16668  means 
16669 \begin_inset Flex Code
16670 status collapsed
16671
16672 \begin_layout Plain Layout
16673
16674 \backslash
16675
16676 \emph on
16677 LatexName
16678 \emph default
16679 {\SpecialChar ldots
16680 }
16681 \end_layout
16682
16683 \end_inset
16684
16685 .
16686 \end_layout
16687
16688 \begin_layout Description
16689 \begin_inset Flex Code
16690 status collapsed
16691
16692 \begin_layout Plain Layout
16693 Environment
16694 \end_layout
16695
16696 \end_inset
16697
16698  means 
16699 \begin_inset Flex Code
16700 status collapsed
16701
16702 \begin_layout Plain Layout
16703
16704 \backslash
16705 begin{
16706 \emph on
16707 LatexName
16708 \emph default
16709 }\SpecialChar ldots
16710
16711 \backslash
16712 end{
16713 \emph on
16714 LatexName
16715 \emph default
16716 }
16717 \end_layout
16718
16719 \end_inset
16720
16721 .
16722  
16723 \end_layout
16724
16725 \begin_layout Description
16726 \begin_inset Flex Code
16727 status collapsed
16728
16729 \begin_layout Plain Layout
16730 Item_Environment
16731 \end_layout
16732
16733 \end_inset
16734
16735  is the same as 
16736 \begin_inset Flex Code
16737 status collapsed
16738
16739 \begin_layout Plain Layout
16740 Environment
16741 \end_layout
16742
16743 \end_inset
16744
16745 ,
16746  except that an 
16747 \begin_inset Flex Code
16748 status collapsed
16749
16750 \begin_layout Plain Layout
16751
16752 \backslash
16753 item
16754 \end_layout
16755
16756 \end_inset
16757
16758  is generated for each paragraph of this environment.
16759  
16760 \end_layout
16761
16762 \begin_layout Description
16763 \begin_inset Flex Code
16764 status collapsed
16765
16766 \begin_layout Plain Layout
16767 List_Environment
16768 \end_layout
16769
16770 \end_inset
16771
16772  is the same as 
16773 \begin_inset Flex Code
16774 status collapsed
16775
16776 \begin_layout Plain Layout
16777 Item_Environment
16778 \end_layout
16779
16780 \end_inset
16781
16782 ,
16783  except that
16784 \begin_inset Newline newline
16785 \end_inset
16786
16787
16788 \begin_inset Flex Code
16789 status collapsed
16790
16791 \begin_layout Plain Layout
16792 LabelWidthString
16793 \end_layout
16794
16795 \end_inset
16796
16797  is passed as an argument to the environment.
16798 \begin_inset Newline newline
16799 \end_inset
16800
16801
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 LabelWidthString
16807 \end_layout
16808
16809 \end_inset
16810
16811  can be defined in the 
16812 \begin_inset Flex Noun
16813 status collapsed
16814
16815 \begin_layout Plain Layout
16816 Edit\SpecialChar menuseparator
16817 Paragraph
16818 \begin_inset space ~
16819 \end_inset
16820
16821 settings
16822 \end_layout
16823
16824 \end_inset
16825
16826  dialog.
16827 \end_layout
16828
16829 \begin_layout Description
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834 Bib_Environment
16835 \end_layout
16836
16837 \end_inset
16838
16839  is like 
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 Environment
16845 \end_layout
16846
16847 \end_inset
16848
16849  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
16850 \begin_inset Newline newline
16851 \end_inset
16852
16853
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858
16859 \backslash
16860 begin{thebibliography}{99}
16861 \end_layout
16862
16863 \end_inset
16864
16865 .
16866  It is therefore only useful for bibliography environments.
16867  The default longest label 
16868 \begin_inset Quotes eld
16869 \end_inset
16870
16871 99
16872 \begin_inset Quotes erd
16873 \end_inset
16874
16875  can be changed by the user in the paragraph settings of a bibliography item.
16876 \end_layout
16877
16878 \begin_layout Standard
16879 Putting the last few things together,
16880  the \SpecialChar LaTeX
16881  output will be either:
16882  
16883 \end_layout
16884
16885 \begin_layout LyX-Code
16886
16887 \backslash
16888 LatexName[LatexParam]{\SpecialChar ldots
16889 }
16890 \end_layout
16891
16892 \begin_layout Standard
16893 or:
16894  
16895 \end_layout
16896
16897 \begin_layout LyX-Code
16898
16899 \backslash
16900 begin{LatexName}[LatexParam] \SpecialChar ldots
16901  
16902 \backslash
16903 end{LatexName}.
16904 \end_layout
16905
16906 \begin_layout Standard
16907 depending upon the \SpecialChar LaTeX
16908  type.
16909 \end_layout
16910
16911 \end_deeper
16912 \begin_layout Description
16913 \begin_inset Flex Code
16914 status collapsed
16915
16916 \begin_layout Plain Layout
16917 LeftDelim
16918 \end_layout
16919
16920 \end_inset
16921
16922  [
16923 \begin_inset Flex Code
16924 status collapsed
16925
16926 \begin_layout Plain Layout
16927 string
16928 \end_layout
16929
16930 \end_inset
16931
16932 ] A string that is put at the beginning of the style content.
16933  A line break in the output can be indicated by 
16934 \begin_inset Flex Code
16935 status collapsed
16936
16937 \begin_layout Plain Layout
16938 <br/>
16939 \end_layout
16940
16941 \end_inset
16942
16943 .
16944 \end_layout
16945
16946 \begin_layout Description
16947 \begin_inset Flex Code
16948 status collapsed
16949
16950 \begin_layout Plain Layout
16951 LeftMargin
16952 \end_layout
16953
16954 \end_inset
16955
16956  [
16957 \begin_inset Flex Code
16958 status collapsed
16959
16960 \begin_layout Plain Layout
16961 string=""
16962 \end_layout
16963
16964 \end_inset
16965
16966 ] If you put styles into environments,
16967  the different 
16968 \begin_inset Flex Code
16969 status collapsed
16970
16971 \begin_layout Plain Layout
16972 LeftMargin
16973 \end_layout
16974
16975 \end_inset
16976
16977  are not simply added,
16978  but added with a factor 
16979 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16980 \end_inset
16981
16982 .
16983  Note that this parameter is also used when 
16984 \begin_inset Flex Code
16985 status collapsed
16986
16987 \begin_layout Plain Layout
16988 Margin
16989 \end_layout
16990
16991 \end_inset
16992
16993  is defined as 
16994 \begin_inset Flex Code
16995 status collapsed
16996
16997 \begin_layout Plain Layout
16998 Manual
16999 \end_layout
17000
17001 \end_inset
17002
17003  or 
17004 \begin_inset Flex Code
17005 status collapsed
17006
17007 \begin_layout Plain Layout
17008 Dynamic
17009 \end_layout
17010
17011 \end_inset
17012
17013 .
17014  Then it is added to the manual or dynamic margin.
17015 \begin_inset Newline newline
17016 \end_inset
17017
17018 For example 
17019 \begin_inset Quotes eld
17020 \end_inset
17021
17022
17023 \begin_inset Flex Code
17024 status collapsed
17025
17026 \begin_layout Plain Layout
17027 MM
17028 \end_layout
17029
17030 \end_inset
17031
17032
17033 \begin_inset Quotes erd
17034 \end_inset
17035
17036  means that the paragraph is indented with the width of 
17037 \begin_inset Quotes eld
17038 \end_inset
17039
17040
17041 \begin_inset Flex Code
17042 status collapsed
17043
17044 \begin_layout Plain Layout
17045 MM
17046 \end_layout
17047
17048 \end_inset
17049
17050
17051 \begin_inset Quotes erd
17052 \end_inset
17053
17054  in the normal font.
17055  You can get a negative width by prefixing the string with 
17056 \begin_inset Quotes eld
17057 \end_inset
17058
17059
17060 \begin_inset Flex Code
17061 status collapsed
17062
17063 \begin_layout Plain Layout
17064 -
17065 \end_layout
17066
17067 \end_inset
17068
17069
17070 \begin_inset Quotes erd
17071 \end_inset
17072
17073 .
17074  This way was chosen so that the look is the same with each used screen font.
17075 \end_layout
17076
17077 \begin_layout Description
17078 \begin_inset Flex Code
17079 status collapsed
17080
17081 \begin_layout Plain Layout
17082 Margin
17083 \end_layout
17084
17085 \end_inset
17086
17087  [
17088 \begin_inset Flex Code
17089 status collapsed
17090
17091 \begin_layout Plain Layout
17092
17093 \emph on
17094 Static
17095 \emph default
17096 ,
17097  Manual,
17098  Dynamic,
17099  First_Dynamic,
17100  Right_Address_Box
17101 \end_layout
17102
17103 \end_inset
17104
17105
17106 \begin_inset Newline newline
17107 \end_inset
17108
17109 The kind of margin that the style has on the left side.
17110 \end_layout
17111
17112 \begin_deeper
17113 \begin_layout Description
17114 \begin_inset Flex Code
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 Static
17119 \end_layout
17120
17121 \end_inset
17122
17123  just means a fixed margin.
17124 \end_layout
17125
17126 \begin_layout Description
17127 \begin_inset Flex Code
17128 status collapsed
17129
17130 \begin_layout Plain Layout
17131 Manual
17132 \end_layout
17133
17134 \end_inset
17135
17136  means that the left margin depends on the string entered in the 
17137 \begin_inset Flex Noun
17138 status collapsed
17139
17140 \begin_layout Plain Layout
17141 Edit\SpecialChar menuseparator
17142 Paragraph
17143 \begin_inset space ~
17144 \end_inset
17145
17146 Settings
17147 \end_layout
17148
17149 \end_inset
17150
17151  dialog.
17152  This is used to typeset nice lists without tabulators.
17153 \end_layout
17154
17155 \begin_layout Description
17156 \begin_inset Flex Code
17157 status collapsed
17158
17159 \begin_layout Plain Layout
17160 Dynamic
17161 \end_layout
17162
17163 \end_inset
17164
17165  means that the margin depends on the size of the label.
17166  This is used for automatic enumerated headlines.
17167  It is obvious that the headline 
17168 \begin_inset Quotes eld
17169 \end_inset
17170
17171 5.4.3.2.1 Very long headline
17172 \begin_inset Quotes erd
17173 \end_inset
17174
17175  must have a wider left margin (as wide as 
17176 \begin_inset Quotes eld
17177 \end_inset
17178
17179 5.4.3.2.1
17180 \begin_inset Quotes erd
17181 \end_inset
17182
17183  plus the space) than 
17184 \begin_inset Quotes eld
17185 \end_inset
17186
17187 3.2 Very long headline
17188 \begin_inset Quotes erd
17189 \end_inset
17190
17191 ,
17192  even if standard 
17193 \begin_inset Quotes eld
17194 \end_inset
17195
17196 word processors
17197 \begin_inset Quotes erd
17198 \end_inset
17199
17200  are not able to do this.
17201 \end_layout
17202
17203 \begin_layout Description
17204 \begin_inset Flex Code
17205 status collapsed
17206
17207 \begin_layout Plain Layout
17208 First_Dynamic
17209 \end_layout
17210
17211 \end_inset
17212
17213  is similar,
17214  but only the very first row of the paragraph is dynamic,
17215  while the others are static;
17216  this is used,
17217  for example,
17218  for descriptions.
17219 \end_layout
17220
17221 \begin_layout Description
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226 Right_Address_Box
17227 \end_layout
17228
17229 \end_inset
17230
17231  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
17232  This is used to typeset an address on the right edge of the page.
17233 \end_layout
17234
17235 \end_deeper
17236 \begin_layout Description
17237 \begin_inset Flex Code
17238 status collapsed
17239
17240 \begin_layout Plain Layout
17241 NeedProtect
17242 \end_layout
17243
17244 \end_inset
17245
17246  [
17247 \begin_inset Flex Code
17248 status collapsed
17249
17250 \begin_layout Plain Layout
17251
17252 \emph on
17253 0
17254 \end_layout
17255
17256 \end_inset
17257
17258 ,
17259 \begin_inset space \thinspace{}
17260 \end_inset
17261
17262
17263 \begin_inset Flex Code
17264 status collapsed
17265
17266 \begin_layout Plain Layout
17267 1
17268 \end_layout
17269
17270 \end_inset
17271
17272 ] Whether fragile commands in this style should be 
17273 \begin_inset Flex Code
17274 status collapsed
17275
17276 \begin_layout Plain Layout
17277
17278 \backslash
17279 protect
17280 \end_layout
17281
17282 \end_inset
17283
17284 'ed.
17285  (Note:
17286  This is 
17287 \emph on
17288 not
17289 \emph default
17290  whether this command should itself be protected.)
17291 \change_inserted -712698321 1523696949
17292
17293 \end_layout
17294
17295 \begin_layout Description
17296
17297 \change_inserted -712698321 1552395557
17298 \begin_inset Flex Code
17299 status collapsed
17300
17301 \begin_layout Plain Layout
17302
17303 \change_inserted -712698321 1523696950
17304 NeedCProtect
17305 \change_unchanged
17306
17307 \end_layout
17308
17309 \end_inset
17310
17311  [
17312 \begin_inset Flex Code
17313 status collapsed
17314
17315 \begin_layout Plain Layout
17316
17317 \change_inserted -712698321 1523696950
17318
17319 \emph on
17320 0
17321 \change_unchanged
17322
17323 \end_layout
17324
17325 \end_inset
17326
17327 ,
17328 \begin_inset space \thinspace{}
17329 \end_inset
17330
17331
17332 \begin_inset Flex Code
17333 status collapsed
17334
17335 \begin_layout Plain Layout
17336
17337 \change_inserted -712698321 1523696950
17338 1
17339 \change_unchanged
17340
17341 \end_layout
17342
17343 \end_inset
17344
17345 ] This causes macros that contain this layout to be protected with 
17346 \begin_inset Flex Code
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350
17351 \change_inserted -712698321 1523696950
17352
17353 \backslash
17354 cprotect
17355 \change_unchanged
17356
17357 \end_layout
17358
17359 \end_inset
17360
17361  (cf.
17362  package 
17363 \family sans
17364 cprotect
17365 \family default
17366 ) if necessary and thus allows (some) verbatim stuff in macros.
17367 \end_layout
17368
17369 \begin_layout Description
17370
17371 \change_inserted -712698321 1552395844
17372 \begin_inset Flex Code
17373 status collapsed
17374
17375 \begin_layout Plain Layout
17376
17377 \change_inserted -712698321 1552395561
17378 NeedMBoxProtect
17379 \change_unchanged
17380
17381 \end_layout
17382
17383 \end_inset
17384
17385  [
17386 \begin_inset Flex Code
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390
17391 \change_inserted -712698321 1552395557
17392
17393 \emph on
17394 0
17395 \change_unchanged
17396
17397 \end_layout
17398
17399 \end_inset
17400
17401 ,
17402 \begin_inset space \thinspace{}
17403 \end_inset
17404
17405
17406 \begin_inset Flex Code
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410
17411 \change_inserted -712698321 1552395557
17412 1
17413 \change_unchanged
17414
17415 \end_layout
17416
17417 \end_inset
17418
17419 ] Whether specific commands in this style (such as 
17420 \begin_inset Flex Code
17421 status collapsed
17422
17423 \begin_layout Plain Layout
17424
17425 \change_inserted -712698321 1552395655
17426
17427 \backslash
17428 cite
17429 \change_unchanged
17430
17431 \end_layout
17432
17433 \end_inset
17434
17435  and 
17436 \begin_inset Flex Code
17437 status collapsed
17438
17439 \begin_layout Plain Layout
17440
17441 \change_inserted -712698321 1552395661
17442
17443 \backslash
17444 ref
17445 \change_unchanged
17446
17447 \end_layout
17448
17449 \end_inset
17450
17451 ) should be protected in an 
17452 \begin_inset Flex Code
17453 status collapsed
17454
17455 \begin_layout Plain Layout
17456
17457 \change_inserted -712698321 1552395631
17458
17459 \backslash
17460 mbox
17461 \change_unchanged
17462
17463 \end_layout
17464
17465 \end_inset
17466
17467 .
17468  This is particularly needed for styles that draw on 
17469 \family sans
17470 ulem
17471 \family default
17472  or 
17473 \family sans
17474 soul
17475 \family default
17476  commands which parse their content in complex ways.
17477 \change_unchanged
17478
17479 \end_layout
17480
17481 \begin_layout Description
17482 \begin_inset Flex Code
17483 status collapsed
17484
17485 \begin_layout Plain Layout
17486 Newline
17487 \end_layout
17488
17489 \end_inset
17490
17491  [
17492 \begin_inset Flex Code
17493 status collapsed
17494
17495 \begin_layout Plain Layout
17496 0
17497 \end_layout
17498
17499 \end_inset
17500
17501 ,
17502 \begin_inset space \thinspace{}
17503 \end_inset
17504
17505
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510
17511 \emph on
17512 1
17513 \end_layout
17514
17515 \end_inset
17516
17517 ] Whether newlines are translated into \SpecialChar LaTeX
17518  newlines (
17519 \begin_inset Flex Code
17520 status collapsed
17521
17522 \begin_layout Plain Layout
17523
17524 \backslash
17525
17526 \backslash
17527
17528 \end_layout
17529
17530 \end_inset
17531
17532 ) or not.
17533  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
17534  editing inside \SpecialChar LyX
17535 .
17536 \end_layout
17537
17538 \begin_layout Description
17539 \begin_inset Flex Code
17540 status collapsed
17541
17542 \begin_layout Plain Layout
17543 NextNoIndent
17544 \end_layout
17545
17546 \end_inset
17547
17548  [
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553
17554 \emph on
17555 0
17556 \end_layout
17557
17558 \end_inset
17559
17560 ,
17561 \begin_inset space \thinspace{}
17562 \end_inset
17563
17564
17565 \begin_inset Flex Code
17566 status collapsed
17567
17568 \begin_layout Plain Layout
17569 1
17570 \end_layout
17571
17572 \end_inset
17573
17574 ] If set to true,
17575  and if 
17576 \begin_inset Flex Code
17577 status collapsed
17578
17579 \begin_layout Plain Layout
17580 DefaultStyle
17581 \end_layout
17582
17583 \end_inset
17584
17585  (usually 
17586 \begin_inset Flex Code
17587 status collapsed
17588
17589 \begin_layout Plain Layout
17590 Standard
17591 \end_layout
17592
17593 \end_inset
17594
17595 ) paragraphs are being indented,
17596  then the indentation of such a paragraph following one of this type will be suppressed.
17597  (So this will not affect the display of non-default paragraphs.)
17598 \end_layout
17599
17600 \begin_layout Description
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605 ObsoletedBy
17606 \end_layout
17607
17608 \end_inset
17609
17610  [
17611 \begin_inset Flex Code
17612 status collapsed
17613
17614 \begin_layout Plain Layout
17615 <name>
17616 \end_layout
17617
17618 \end_inset
17619
17620 ] Name of a style that has replaced this style.
17621  This is used to rename a style,
17622  while keeping backward compatibility.
17623 \end_layout
17624
17625 \begin_layout Description
17626 \begin_inset Flex Code
17627 status collapsed
17628
17629 \begin_layout Plain Layout
17630 ParagraphGroup
17631 \end_layout
17632
17633 \end_inset
17634
17635  [
17636 \begin_inset Flex Code
17637 status collapsed
17638
17639 \begin_layout Plain Layout
17640 0
17641 \end_layout
17642
17643 \end_inset
17644
17645 ,
17646 \begin_inset space \thinspace{}
17647 \end_inset
17648
17649
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 1
17655 \end_layout
17656
17657 \end_inset
17658
17659 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
17660  This has the effect that the 
17661 \begin_inset Flex Code
17662 status collapsed
17663
17664 \begin_layout Plain Layout
17665 GuiLabel
17666 \end_layout
17667
17668 \end_inset
17669
17670  is only printed once before such a group.
17671  By default,
17672  this is true for 
17673 \begin_inset Flex Code
17674 status collapsed
17675
17676 \begin_layout Plain Layout
17677 LaTeXType
17678 \end_layout
17679
17680 \end_inset
17681
17682  
17683 \begin_inset Flex Code
17684 status collapsed
17685
17686 \begin_layout Plain Layout
17687 Environment
17688 \end_layout
17689
17690 \end_inset
17691
17692  and 
17693 \begin_inset Flex Code
17694 status collapsed
17695
17696 \begin_layout Plain Layout
17697 Bib_Environment
17698 \end_layout
17699
17700 \end_inset
17701
17702  and false for all other types.
17703 \end_layout
17704
17705 \begin_layout Description
17706 \begin_inset Flex Code
17707 status collapsed
17708
17709 \begin_layout Plain Layout
17710 ParbreakIsNewline
17711 \end_layout
17712
17713 \end_inset
17714
17715  [
17716 \begin_inset Flex Code
17717 status collapsed
17718
17719 \begin_layout Plain Layout
17720
17721 \emph on
17722 0
17723 \end_layout
17724
17725 \end_inset
17726
17727 ,
17728 \begin_inset space \thinspace{}
17729 \end_inset
17730
17731
17732 \begin_inset Flex Code
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736 1
17737 \end_layout
17738
17739 \end_inset
17740
17741 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17742  output,
17743  but only by a line break;
17744  together with 
17745 \begin_inset Flex Code
17746 status collapsed
17747
17748 \begin_layout Plain Layout
17749 PassThru 1
17750 \end_layout
17751
17752 \end_inset
17753
17754 ,
17755  this allows to emulate a plain text editor (like the ERT inset).
17756 \end_layout
17757
17758 \begin_layout Description
17759 \begin_inset Flex Code
17760 status collapsed
17761
17762 \begin_layout Plain Layout
17763 ParIndent
17764 \end_layout
17765
17766 \end_inset
17767
17768  [
17769 \begin_inset Flex Code
17770 status collapsed
17771
17772 \begin_layout Plain Layout
17773 string=""
17774 \end_layout
17775
17776 \end_inset
17777
17778 ] The indent of the very first line of a paragraph.
17779  The
17780 \begin_inset Newline newline
17781 \end_inset
17782
17783
17784 \begin_inset Flex Code
17785 status collapsed
17786
17787 \begin_layout Plain Layout
17788 Parindent
17789 \end_layout
17790
17791 \end_inset
17792
17793  will be fixed for a certain style.
17794  The exception is the default style,
17795  since the indentation for these paragraphs can be prohibited with 
17796 \begin_inset Flex Code
17797 status collapsed
17798
17799 \begin_layout Plain Layout
17800 NextNoIndent
17801 \end_layout
17802
17803 \end_inset
17804
17805 .
17806  Also,
17807  
17808 \begin_inset Flex Code
17809 status collapsed
17810
17811 \begin_layout Plain Layout
17812 Standard
17813 \end_layout
17814
17815 \end_inset
17816
17817  style paragraphs inside environments use the 
17818 \begin_inset Flex Code
17819 status collapsed
17820
17821 \begin_layout Plain Layout
17822 Parindent
17823 \end_layout
17824
17825 \end_inset
17826
17827  of the environment,
17828  not their native one.
17829  For example,
17830  
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835 Standard
17836 \end_layout
17837
17838 \end_inset
17839
17840  paragraphs inside an enumeration are not indented.
17841 \end_layout
17842
17843 \begin_layout Description
17844 \begin_inset Flex Code
17845 status collapsed
17846
17847 \begin_layout Plain Layout
17848 ParSep
17849 \end_layout
17850
17851 \end_inset
17852
17853  [
17854 \begin_inset Flex Code
17855 status collapsed
17856
17857 \begin_layout Plain Layout
17858 float=0
17859 \end_layout
17860
17861 \end_inset
17862
17863 ] The vertical space between two paragraphs of this style.
17864 \end_layout
17865
17866 \begin_layout Description
17867 \begin_inset Flex Code
17868 status collapsed
17869
17870 \begin_layout Plain Layout
17871 Parskip
17872 \end_layout
17873
17874 \end_inset
17875
17876  [
17877 \begin_inset Flex Code
17878 status collapsed
17879
17880 \begin_layout Plain Layout
17881 float=0
17882 \end_layout
17883
17884 \end_inset
17885
17886 ] \SpecialChar LyX
17887  allows the user to choose either 
17888 \begin_inset Quotes eld
17889 \end_inset
17890
17891 indent
17892 \begin_inset Quotes erd
17893 \end_inset
17894
17895  or 
17896 \begin_inset Quotes eld
17897 \end_inset
17898
17899 skip
17900 \begin_inset Quotes erd
17901 \end_inset
17902
17903  to separate paragraphs.
17904  When 
17905 \begin_inset Quotes eld
17906 \end_inset
17907
17908 indent
17909 \begin_inset Quotes erd
17910 \end_inset
17911
17912  is chosen,
17913  
17914 \begin_inset Flex Code
17915 status collapsed
17916
17917 \begin_layout Plain Layout
17918 Parskip
17919 \end_layout
17920
17921 \end_inset
17922
17923  is ignored.
17924  When 
17925 \begin_inset Quotes eld
17926 \end_inset
17927
17928 skip
17929 \begin_inset Quotes erd
17930 \end_inset
17931
17932  is chosen,
17933  
17934 \begin_inset Flex Code
17935 status collapsed
17936
17937 \begin_layout Plain Layout
17938 ParIndent
17939 \end_layout
17940
17941 \end_inset
17942
17943  is ignored and all paragraphs are separated by the 
17944 \begin_inset Flex Code
17945 status collapsed
17946
17947 \begin_layout Plain Layout
17948 Parskip
17949 \end_layout
17950
17951 \end_inset
17952
17953  argument.
17954  The vertical space is calculated with 
17955 \begin_inset Flex Code
17956 status collapsed
17957
17958 \begin_layout Plain Layout
17959 Parskip
17960 \begin_inset space ~
17961 \end_inset
17962
17963 * DefaultHeight
17964 \end_layout
17965
17966 \end_inset
17967
17968  where 
17969 \begin_inset Flex Code
17970 status collapsed
17971
17972 \begin_layout Plain Layout
17973 DefaultHeight
17974 \end_layout
17975
17976 \end_inset
17977
17978  is the height of a row with the normal font.
17979  This way,
17980  the look stays the same with different screen fonts.
17981 \end_layout
17982
17983 \begin_layout Description
17984 \begin_inset Flex Code
17985 status collapsed
17986
17987 \begin_layout Plain Layout
17988 PassThru
17989 \end_layout
17990
17991 \end_inset
17992
17993  [
17994 \begin_inset Flex Code
17995 status collapsed
17996
17997 \begin_layout Plain Layout
17998
17999 \emph on
18000 0
18001 \end_layout
18002
18003 \end_inset
18004
18005 ,
18006 \begin_inset space \thinspace{}
18007 \end_inset
18008
18009
18010 \begin_inset Flex Code
18011 status collapsed
18012
18013 \begin_layout Plain Layout
18014 1
18015 \end_layout
18016
18017 \end_inset
18018
18019 ] Whether the contents of this paragraph should be output in raw form,
18020  meaning without special translations that \SpecialChar LaTeX
18021  would require.
18022 \end_layout
18023
18024 \begin_layout Description
18025 \begin_inset Flex Code
18026 status collapsed
18027
18028 \begin_layout Plain Layout
18029 PassThruChars
18030 \end_layout
18031
18032 \end_inset
18033
18034  [
18035 \begin_inset Flex Code
18036 status collapsed
18037
18038 \begin_layout Plain Layout
18039 string
18040 \end_layout
18041
18042 \end_inset
18043
18044 ]
18045 \family typewriter
18046  
18047 \family default
18048 Defines individual characters that should be output in raw form,
18049  meaning without special translations that \SpecialChar LaTeX
18050  would require.
18051 \end_layout
18052
18053 \begin_layout Description
18054 \begin_inset Flex Code
18055 status collapsed
18056
18057 \begin_layout Plain Layout
18058 Preamble
18059 \end_layout
18060
18061 \end_inset
18062
18063  Information to be included in the \SpecialChar LaTeX
18064  preamble when this style is used.
18065  Used to define macros,
18066  load packages,
18067  etc.,
18068  required by this particular style.
18069  Must end with 
18070 \begin_inset Quotes eld
18071 \end_inset
18072
18073
18074 \begin_inset Flex Code
18075 status collapsed
18076
18077 \begin_layout Plain Layout
18078 EndPreamble
18079 \end_layout
18080
18081 \end_inset
18082
18083
18084 \begin_inset Quotes erd
18085 \end_inset
18086
18087 .
18088 \end_layout
18089
18090 \begin_layout Description
18091 \begin_inset Flex Code
18092 status collapsed
18093
18094 \begin_layout Plain Layout
18095 RefPrefix
18096 \end_layout
18097
18098 \end_inset
18099
18100  [
18101 \begin_inset Flex Code
18102 status collapsed
18103
18104 \begin_layout Plain Layout
18105 string
18106 \end_layout
18107
18108 \end_inset
18109
18110 ] The prefix to use when creating labels referring to paragraphs of this type.
18111  This allows the use of formatted references.
18112 \end_layout
18113
18114 \begin_layout Description
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119 Requires 
18120 \end_layout
18121
18122 \end_inset
18123
18124  [
18125 \begin_inset Flex Code
18126 status collapsed
18127
18128 \begin_layout Plain Layout
18129 string
18130 \end_layout
18131
18132 \end_inset
18133
18134 ] Whether the style requires the feature 
18135 \begin_inset Flex Code
18136 status collapsed
18137
18138 \begin_layout Plain Layout
18139 string
18140 \end_layout
18141
18142 \end_inset
18143
18144  (see 
18145 \begin_inset CommandInset ref
18146 LatexCommand ref
18147 reference "chap:List-of-functions"
18148 nolink "false"
18149
18150 \end_inset
18151
18152  for the list of features).
18153  If you require a package with specific options,
18154  you can additionally use 
18155 \begin_inset Flex Code
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159 PackageOptions
18160 \end_layout
18161
18162 \end_inset
18163
18164  as a general text class parameter (see 
18165 \begin_inset CommandInset ref
18166 LatexCommand ref
18167 reference "subsec:General-text-class"
18168 nolink "false"
18169
18170 \end_inset
18171
18172 ).
18173 \end_layout
18174
18175 \begin_layout Description
18176 \begin_inset Flex Code
18177 status collapsed
18178
18179 \begin_layout Plain Layout
18180 ResetArgs
18181 \end_layout
18182
18183 \end_inset
18184
18185  [
18186 \begin_inset Flex Code
18187 status collapsed
18188
18189 \begin_layout Plain Layout
18190
18191 \emph on
18192 0
18193 \end_layout
18194
18195 \end_inset
18196
18197 ,
18198 \begin_inset Flex Code
18199 status collapsed
18200
18201 \begin_layout Plain Layout
18202 1
18203 \end_layout
18204
18205 \end_inset
18206
18207 ] Resets the \SpecialChar LaTeX
18208  arguments of this style (as defined via the 
18209 \begin_inset Flex Code
18210 status collapsed
18211
18212 \begin_layout Plain Layout
18213 Argument
18214 \end_layout
18215
18216 \end_inset
18217
18218  tag).
18219  This is useful if you have copied a style via 
18220 \begin_inset Flex Code
18221 status collapsed
18222
18223 \begin_layout Plain Layout
18224 CopyStyle
18225 \end_layout
18226
18227 \end_inset
18228
18229 ,
18230  but you do not want to inherit its (required and optional) arguments.
18231 \end_layout
18232
18233 \begin_layout Description
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 ResumeCounter
18239 \end_layout
18240
18241 \end_inset
18242
18243  [
18244 \begin_inset Flex Code
18245 status collapsed
18246
18247 \begin_layout Plain Layout
18248
18249 \emph on
18250 0
18251 \end_layout
18252
18253 \end_inset
18254
18255 ,
18256 \begin_inset Flex Code
18257 status collapsed
18258
18259 \begin_layout Plain Layout
18260 1
18261 \end_layout
18262
18263 \end_inset
18264
18265 ] Resumes a counter that is usually reset at each new sequence of layouts.
18266  This is currently only useful when 
18267 \begin_inset Flex Code
18268 status collapsed
18269
18270 \begin_layout Plain Layout
18271 LabelType
18272 \end_layout
18273
18274 \end_inset
18275
18276  is 
18277 \begin_inset Flex Code
18278 status collapsed
18279
18280 \begin_layout Plain Layout
18281 Enumerate
18282 \end_layout
18283
18284 \end_inset
18285
18286 .
18287 \end_layout
18288
18289 \begin_layout Description
18290 \begin_inset Flex Code
18291 status collapsed
18292
18293 \begin_layout Plain Layout
18294 RightDelim
18295 \end_layout
18296
18297 \end_inset
18298
18299  [
18300 \begin_inset Flex Code
18301 status collapsed
18302
18303 \begin_layout Plain Layout
18304 string
18305 \end_layout
18306
18307 \end_inset
18308
18309 ] A string that is put at the end of the layout content.
18310  A line break in the output can be indicated by 
18311 \begin_inset Flex Code
18312 status collapsed
18313
18314 \begin_layout Plain Layout
18315 <br/>
18316 \end_layout
18317
18318 \end_inset
18319
18320 .
18321 \end_layout
18322
18323 \begin_layout Description
18324 \begin_inset Flex Code
18325 status collapsed
18326
18327 \begin_layout Plain Layout
18328 RightMargin
18329 \end_layout
18330
18331 \end_inset
18332
18333  [
18334 \begin_inset Flex Code
18335 status collapsed
18336
18337 \begin_layout Plain Layout
18338 string=""
18339 \end_layout
18340
18341 \end_inset
18342
18343 ] Similar to 
18344 \begin_inset Flex Code
18345 status collapsed
18346
18347 \begin_layout Plain Layout
18348 LeftMargin
18349 \end_layout
18350
18351 \end_inset
18352
18353 .
18354 \end_layout
18355
18356 \begin_layout Description
18357 \begin_inset Flex Code
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361 Spacing
18362 \end_layout
18363
18364 \end_inset
18365
18366  [
18367 \begin_inset Flex Code
18368 status collapsed
18369
18370 \begin_layout Plain Layout
18371
18372 \emph on
18373 single
18374 \end_layout
18375
18376 \end_inset
18377
18378 ,
18379  
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384 onehalf
18385 \end_layout
18386
18387 \end_inset
18388
18389 ,
18390  
18391 \begin_inset Flex Code
18392 status collapsed
18393
18394 \begin_layout Plain Layout
18395 double
18396 \end_layout
18397
18398 \end_inset
18399
18400 ,
18401  
18402 \begin_inset Flex Code
18403 status collapsed
18404
18405 \begin_layout Plain Layout
18406 other
18407 \begin_inset space ~
18408 \end_inset
18409
18410 <value>
18411 \end_layout
18412
18413 \end_inset
18414
18415 ] This defines what the default spacing should be in the style.
18416  The arguments 
18417 \begin_inset Flex Code
18418 status collapsed
18419
18420 \begin_layout Plain Layout
18421 single
18422 \end_layout
18423
18424 \end_inset
18425
18426 ,
18427  
18428 \begin_inset Flex Code
18429 status collapsed
18430
18431 \begin_layout Plain Layout
18432 onehalf
18433 \end_layout
18434
18435 \end_inset
18436
18437  and 
18438 \begin_inset Flex Code
18439 status collapsed
18440
18441 \begin_layout Plain Layout
18442 double
18443 \end_layout
18444
18445 \end_inset
18446
18447  correspond respectively to a multiplier value of 1,
18448  1.25 and 1.667.
18449  If you specify the argument 
18450 \begin_inset Flex Code
18451 status collapsed
18452
18453 \begin_layout Plain Layout
18454 other
18455 \end_layout
18456
18457 \end_inset
18458
18459 ,
18460  then you must also provide a value argument which will be the actual multiplier value.
18461  Note that,
18462  contrary to other parameters,
18463  
18464 \begin_inset Flex Code
18465 status collapsed
18466
18467 \begin_layout Plain Layout
18468 Spacing
18469 \end_layout
18470
18471 \end_inset
18472
18473  implies the generation of specific \SpecialChar LaTeX
18474  code,
18475  using the \SpecialChar LaTeX
18476  package 
18477 \family roman
18478
18479 \begin_inset Flex Code
18480 status collapsed
18481
18482 \begin_layout Plain Layout
18483 setspace
18484 \end_layout
18485
18486 \end_inset
18487
18488 .
18489 \end_layout
18490
18491 \begin_layout Description
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496 Spellcheck
18497 \end_layout
18498
18499 \end_inset
18500
18501  [
18502 \begin_inset Flex Code
18503 status collapsed
18504
18505 \begin_layout Plain Layout
18506 0
18507 \end_layout
18508
18509 \end_inset
18510
18511 ,
18512 \begin_inset space \thinspace{}
18513 \end_inset
18514
18515
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520
18521 \emph on
18522 1
18523 \end_layout
18524
18525 \end_inset
18526
18527 ] Allow spell-checking paragraphs of this style.
18528  Default is true.
18529 \end_layout
18530
18531 \begin_layout Description
18532 \begin_inset Flex Code
18533 status collapsed
18534
18535 \begin_layout Plain Layout
18536 Step
18537 \change_deleted 731793113 1604355211
18538 Master
18539 \change_inserted 731793113 1604355212
18540 Parent
18541 \change_unchanged
18542 Counter
18543 \end_layout
18544
18545 \end_inset
18546
18547  [
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552
18553 \emph on
18554 0
18555 \end_layout
18556
18557 \end_inset
18558
18559 ,
18560 \begin_inset Flex Code
18561 status collapsed
18562
18563 \begin_layout Plain Layout
18564 1
18565 \end_layout
18566
18567 \end_inset
18568
18569 ] Steps the 
18570 \change_deleted 731793113 1604355214
18571 master
18572 \change_inserted 731793113 1604355216
18573 parent
18574 \change_unchanged
18575  counter of a given counter at the beginning of a new sequence of layouts.
18576  This is currently only useful when 
18577 \begin_inset Flex Code
18578 status collapsed
18579
18580 \begin_layout Plain Layout
18581 LabelType
18582 \end_layout
18583
18584 \end_inset
18585
18586  is 
18587 \begin_inset Flex Code
18588 status collapsed
18589
18590 \begin_layout Plain Layout
18591 Enumerate
18592 \end_layout
18593
18594 \end_inset
18595
18596 .
18597 \end_layout
18598
18599 \begin_layout Description
18600 \begin_inset Flex Code
18601 status collapsed
18602
18603 \begin_layout Plain Layout
18604 TextFont
18605 \end_layout
18606
18607 \end_inset
18608
18609  The font used for the text body .
18610  See 
18611 \begin_inset CommandInset ref
18612 LatexCommand ref
18613 reference "subsec:Font-description"
18614 nolink "false"
18615
18616 \end_inset
18617
18618 .
18619 \end_layout
18620
18621 \begin_layout Description
18622 \begin_inset Flex Code
18623 status collapsed
18624
18625 \begin_layout Plain Layout
18626 TocLevel
18627 \end_layout
18628
18629 \end_inset
18630
18631
18632 \series medium
18633  [
18634 \begin_inset Flex Code
18635 status collapsed
18636
18637 \begin_layout Plain Layout
18638
18639 \series medium
18640 int=3
18641 \end_layout
18642
18643 \end_inset
18644
18645 ]
18646 \series default
18647  The level of the style in the table of contents.
18648  This is used for automatic numbering of section headings.
18649 \end_layout
18650
18651 \begin_layout Description
18652 \begin_inset Flex Code
18653 status collapsed
18654
18655 \begin_layout Plain Layout
18656 ToggleIndent
18657 \end_layout
18658
18659 \end_inset
18660
18661  [
18662 \emph on
18663
18664 \begin_inset Flex Code
18665 status collapsed
18666
18667 \begin_layout Plain Layout
18668
18669 \emph on
18670 default
18671 \end_layout
18672
18673 \end_inset
18674
18675
18676 \emph default
18677 ,
18678  
18679 \begin_inset Flex Code
18680 status collapsed
18681
18682 \begin_layout Plain Layout
18683 always
18684 \end_layout
18685
18686 \end_inset
18687
18688 ,
18689  
18690 \begin_inset Flex Code
18691 status collapsed
18692
18693 \begin_layout Plain Layout
18694 never
18695 \end_layout
18696
18697 \end_inset
18698
18699 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
18700  If 
18701 \emph on
18702
18703 \begin_inset Flex Code
18704 status collapsed
18705
18706 \begin_layout Plain Layout
18707
18708 \emph off
18709 default
18710 \end_layout
18711
18712 \end_inset
18713
18714
18715 \emph default
18716  is set,
18717  indentation can be toggled if the document settings use 
18718 \begin_inset Quotes eld
18719 \end_inset
18720
18721 indent
18722 \begin_inset Quotes erd
18723 \end_inset
18724
18725  paragraph style,
18726  with 
18727 \begin_inset Flex Code
18728 status collapsed
18729
18730 \begin_layout Plain Layout
18731 always
18732 \end_layout
18733
18734 \end_inset
18735
18736 ,
18737  indentation can always be toggled,
18738  notwithstanding the document settings,
18739  with 
18740 \begin_inset Flex Code
18741 status collapsed
18742
18743 \begin_layout Plain Layout
18744 never
18745 \end_layout
18746
18747 \end_inset
18748
18749 ,
18750  indentation can never be toggled.
18751 \end_layout
18752
18753 \begin_layout Description
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758 TopSep
18759 \end_layout
18760
18761 \end_inset
18762
18763  [
18764 \begin_inset Flex Code
18765 status collapsed
18766
18767 \begin_layout Plain Layout
18768 float=0
18769 \end_layout
18770
18771 \end_inset
18772
18773 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
18774  If the previous paragraph has another style,
18775  the separations are not simply added,
18776  but the maximum is taken.
18777 \end_layout
18778
18779 \begin_layout Subsection
18780 \begin_inset CommandInset label
18781 LatexCommand label
18782 name "subsec:I18n"
18783
18784 \end_inset
18785
18786 Internationalization of Paragraph Styles
18787 \end_layout
18788
18789 \begin_layout Standard
18790 \SpecialChar LyX
18791  has long supported internationalization of layout information,
18792  but,
18793  until version 2.0,
18794  this applied only to the user interface and not to,
18795  say,
18796  PDF output.
18797  Thus,
18798  French authors were forced to resort to ugly hacks if they wanted `
18799 \lang french
18800 Théorème
18801 \lang english
18802  1' instead of `Theorem 1'.
18803  Thanks to Georg Baum,
18804  that is no longer the case.
18805 \end_layout
18806
18807 \begin_layout Standard
18808 If a 
18809 \begin_inset Flex Code
18810 status collapsed
18811
18812 \begin_layout Plain Layout
18813 Style
18814 \end_layout
18815
18816 \end_inset
18817
18818  defines text that is to appear in the typeset document,
18819  it may use 
18820 \begin_inset Flex Code
18821 status collapsed
18822
18823 \begin_layout Plain Layout
18824 LangPreamble
18825 \end_layout
18826
18827 \end_inset
18828
18829  and 
18830 \begin_inset Flex Code
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 BabelPreamble
18835 \end_layout
18836
18837 \end_inset
18838
18839  to support non-English and even multi-language documents correctly.
18840  The following excerpt (from the 
18841 \begin_inset Flex Code
18842 status collapsed
18843
18844 \begin_layout Plain Layout
18845 theorems-ams.inc
18846 \end_layout
18847
18848 \end_inset
18849
18850  file) shows how this works:
18851 \end_layout
18852
18853 \begin_layout LyX-Code
18854 Preamble
18855 \end_layout
18856
18857 \begin_deeper
18858 \begin_layout LyX-Code
18859   
18860 \backslash
18861 theoremstyle{remark}
18862 \end_layout
18863
18864 \begin_layout LyX-Code
18865   
18866 \backslash
18867 newtheorem{claim}[thm]{
18868 \backslash
18869 protect
18870 \backslash
18871 claimname}
18872 \end_layout
18873
18874 \begin_layout LyX-Code
18875 EndPreamble
18876 \end_layout
18877
18878 \begin_layout LyX-Code
18879 LangPreamble
18880 \end_layout
18881
18882 \begin_layout LyX-Code
18883   
18884 \backslash
18885 providecommand{
18886 \backslash
18887 claimname}{_(Claim)}
18888 \end_layout
18889
18890 \begin_layout LyX-Code
18891 EndLangPreamble
18892 \end_layout
18893
18894 \begin_layout LyX-Code
18895 BabelPreamble
18896 \end_layout
18897
18898 \begin_layout LyX-Code
18899     
18900 \backslash
18901 addto
18902 \backslash
18903 captions$$lang{
18904 \backslash
18905 renewcommand{
18906 \backslash
18907 claimname}{_(Claim)}}
18908 \end_layout
18909
18910 \begin_layout LyX-Code
18911 EndBabelPreamble
18912 \end_layout
18913
18914 \end_deeper
18915 \begin_layout Standard
18916 In principle,
18917  any legal \SpecialChar LaTeX
18918  may appear in the 
18919 \begin_inset Flex Code
18920 status collapsed
18921
18922 \begin_layout Plain Layout
18923 LangPreamble
18924 \end_layout
18925
18926 \end_inset
18927
18928  and 
18929 \begin_inset Flex Code
18930 status collapsed
18931
18932 \begin_layout Plain Layout
18933 BabelPreamble
18934 \end_layout
18935
18936 \end_inset
18937
18938  tags,
18939  but in practice they will typically look as they do here.
18940  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
18941  command 
18942 \begin_inset Flex Code
18943 status collapsed
18944
18945 \begin_layout Plain Layout
18946
18947 \backslash
18948 claimname
18949 \end_layout
18950
18951 \end_inset
18952
18953  and its use in 
18954 \begin_inset Flex Code
18955 status collapsed
18956
18957 \begin_layout Plain Layout
18958
18959 \backslash
18960 newtheorem
18961 \end_layout
18962
18963 \end_inset
18964
18965 .
18966  
18967 \end_layout
18968
18969 \begin_layout Standard
18970 The 
18971 \begin_inset Flex Code
18972 status collapsed
18973
18974 \begin_layout Plain Layout
18975 LangPreamble
18976 \end_layout
18977
18978 \end_inset
18979
18980  tag provides for internationalization based upon the overall language of the document.
18981  The contents of the tag will be included in the preamble,
18982  just as with the 
18983 \begin_inset Flex Code
18984 status collapsed
18985
18986 \begin_layout Plain Layout
18987 Preamble
18988 \end_layout
18989
18990 \end_inset
18991
18992  tag.
18993  What makes it special is the use of the 
18994 \begin_inset Quotes eld
18995 \end_inset
18996
18997 function
18998 \begin_inset Quotes erd
18999 \end_inset
19000
19001  
19002 \begin_inset Flex Code
19003 status collapsed
19004
19005 \begin_layout Plain Layout
19006 _()
19007 \end_layout
19008
19009 \end_inset
19010
19011 ,
19012  which will be replaced,
19013  when \SpecialChar LyX
19014  produces \SpecialChar LaTeX
19015  output,
19016  with the translation of its argument into the document language.
19017 \end_layout
19018
19019 \begin_layout Standard
19020 The 
19021 \begin_inset Flex Code
19022 status collapsed
19023
19024 \begin_layout Plain Layout
19025 BabelPreamble
19026 \end_layout
19027
19028 \end_inset
19029
19030  tag is more complex,
19031  since it is meant to provide support for multi-language documents and so offers an interface to the 
19032 \begin_inset Flex Code
19033 status collapsed
19034
19035 \begin_layout Plain Layout
19036 babel
19037 \end_layout
19038
19039 \end_inset
19040
19041  package.
19042  Its contents will be added to the preamble once for each language that appears in the document.
19043  In this case,
19044  the argument to 
19045 \begin_inset Flex Code
19046 status collapsed
19047
19048 \begin_layout Plain Layout
19049 _()
19050 \end_layout
19051
19052 \end_inset
19053
19054  will be replaced with its translation into the language in question;
19055  the expression 
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 $$lang
19061 \end_layout
19062
19063 \end_inset
19064
19065  is replaced by the language name (as used by the babel package).
19066 \end_layout
19067
19068 \begin_layout Standard
19069 A German document that also included a French section would thus have the following in the preamble:
19070 \end_layout
19071
19072 \begin_layout LyX-Code
19073
19074 \backslash
19075 addto
19076 \backslash
19077 captionsfrench{
19078 \backslash
19079 renewcommand{
19080 \backslash
19081 claimname}{Affirmation}}
19082 \begin_inset Newline newline
19083 \end_inset
19084
19085
19086 \backslash
19087 addto
19088 \backslash
19089 captionsngerman{
19090 \backslash
19091 renewcommand{
19092 \backslash
19093 claimname}{Behauptung}}
19094 \begin_inset Newline newline
19095 \end_inset
19096
19097
19098 \backslash
19099 providecommand{
19100 \backslash
19101 claimname}{Behauptung}
19102 \end_layout
19103
19104 \begin_layout Standard
19105 \SpecialChar LaTeX
19106  and 
19107 \begin_inset Flex Code
19108 status collapsed
19109
19110 \begin_layout Plain Layout
19111 babel
19112 \end_layout
19113
19114 \end_inset
19115
19116  will then conspire to produce the correct text in the output.
19117 \end_layout
19118
19119 \begin_layout Standard
19120 One important point to note here is that the translations are provided by \SpecialChar LyX
19121  itself,
19122  through the file 
19123 \begin_inset Flex Code
19124 status collapsed
19125
19126 \begin_layout Plain Layout
19127 layouttranslations
19128 \end_layout
19129
19130 \end_inset
19131
19132 .
19133  This means,
19134  in effect,
19135  that 
19136 \begin_inset Flex Code
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140 LangPreamble
19141 \end_layout
19142
19143 \end_inset
19144
19145  and 
19146 \begin_inset Flex Code
19147 status collapsed
19148
19149 \begin_layout Plain Layout
19150 BabelPreamble
19151 \end_layout
19152
19153 \end_inset
19154
19155  are really only of use in layout files that are provided with \SpecialChar LyX
19156 ,
19157  since text entered in user-created layout files will not be seen by \SpecialChar LyX
19158 's internationalization routines unless the 
19159 \begin_inset Flex Code
19160 status collapsed
19161
19162 \begin_layout Plain Layout
19163 layouttranslations
19164 \end_layout
19165
19166 \end_inset
19167
19168  file is modified accordingly.
19169  That said,
19170  however,
19171  any layout created with the intention that it will be included with \SpecialChar LyX
19172  should use these tags where appropriate.
19173  Please note that the paragraph style translations provided by \SpecialChar LyX
19174  will never change with a minor update (e.
19175 \begin_inset space \thinspace{}
19176 \end_inset
19177
19178 g.
19179 \begin_inset space \space{}
19180 \end_inset
19181
19182 from version 2.1.x to 2.1.y).
19183  It is however quite likely that a major update (e.
19184 \begin_inset space \thinspace{}
19185 \end_inset
19186
19187 g.
19188 \begin_inset space \space{}
19189 \end_inset
19190
19191 from 2.0.x to 2.1.0) will introduce new translations or corrections.
19192 \end_layout
19193
19194 \begin_layout Subsection
19195 Floats
19196 \begin_inset CommandInset label
19197 LatexCommand label
19198 name "subsec:Floats"
19199
19200 \end_inset
19201
19202
19203 \end_layout
19204
19205 \begin_layout Standard
19206 It is necessary to define the floats (
19207 \begin_inset Flex Noun
19208 status collapsed
19209
19210 \begin_layout Plain Layout
19211 figure
19212 \end_layout
19213
19214 \end_inset
19215
19216 ,
19217  
19218 \begin_inset Flex Noun
19219 status collapsed
19220
19221 \begin_layout Plain Layout
19222 table
19223 \end_layout
19224
19225 \end_inset
19226
19227 ,
19228  \SpecialChar ldots
19229 ) in the text class itself.
19230  Standard floats are included in the file 
19231 \begin_inset Flex Code
19232 status collapsed
19233
19234 \begin_layout Plain Layout
19235 stdfloats.inc
19236 \end_layout
19237
19238 \end_inset
19239
19240 ,
19241  so you may have to do no more than add
19242 \end_layout
19243
19244 \begin_layout LyX-Code
19245 Input stdfloats.inc
19246 \end_layout
19247
19248 \begin_layout Standard
19249 to your layout file.
19250  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
19251 ),
19252  the information below will hopefully help you:
19253 \end_layout
19254
19255 \begin_layout Description
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260 AllowedPlacement
19261 \end_layout
19262
19263 \end_inset
19264
19265  [
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270 string
19271 \end_layout
19272
19273 \end_inset
19274
19275 =!htbpH] Allowed placement options for this float type.
19276  The value is a string of placement characters.
19277  Possible characters include:
19278  
19279 \emph on
19280 h
19281 \emph default
19282  (
19283 \begin_inset Quotes eld
19284 \end_inset
19285
19286 here if possible
19287 \begin_inset Quotes erd
19288 \end_inset
19289
19290 ),
19291  
19292 \emph on
19293 t
19294 \emph default
19295  (
19296 \begin_inset Quotes eld
19297 \end_inset
19298
19299 top of page
19300 \begin_inset Quotes erd
19301 \end_inset
19302
19303 ),
19304  
19305 \emph on
19306 b
19307 \emph default
19308  (
19309 \begin_inset Quotes eld
19310 \end_inset
19311
19312 bottom of page
19313 \begin_inset Quotes erd
19314 \end_inset
19315
19316 ),
19317  
19318 \emph on
19319 p
19320 \emph default
19321  (
19322 \begin_inset Quotes eld
19323 \end_inset
19324
19325 page of floats
19326 \begin_inset Quotes erd
19327 \end_inset
19328
19329 ),
19330  
19331 \emph on
19332 H
19333 \emph default
19334  (
19335 \begin_inset Quotes eld
19336 \end_inset
19337
19338 here definitely
19339 \begin_inset Quotes erd
19340 \end_inset
19341
19342 ) and 
19343 \emph on
19344 !
19345
19346 \emph default
19347  (
19348 \begin_inset Quotes eld
19349 \end_inset
19350
19351 ignore LaTeX rules
19352 \begin_inset Quotes erd
19353 \end_inset
19354
19355 ).
19356  The order of the characters in the string does not matter.
19357  If no placement options are allowed,
19358  use the string 
19359 \emph on
19360 none
19361 \emph default
19362 .
19363 \end_layout
19364
19365 \begin_layout Description
19366 \begin_inset Flex Code
19367 status collapsed
19368
19369 \begin_layout Plain Layout
19370 AllowsSideways
19371 \end_layout
19372
19373 \end_inset
19374
19375  [
19376 \begin_inset Flex Code
19377 status collapsed
19378
19379 \begin_layout Plain Layout
19380
19381 \emph off
19382 0
19383 \end_layout
19384
19385 \end_inset
19386
19387 ,
19388 \begin_inset space \thinspace{}
19389 \end_inset
19390
19391
19392 \emph on
19393
19394 \begin_inset Flex Code
19395 status collapsed
19396
19397 \begin_layout Plain Layout
19398
19399 \emph on
19400 1
19401 \end_layout
19402
19403 \end_inset
19404
19405
19406 \emph default
19407 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
19408 -package 
19409 \family typewriter
19410 rotfloat
19411 \family default
19412  (sidewaysfloat).
19413  Set to 
19414 \begin_inset Flex Code
19415 status collapsed
19416
19417 \begin_layout Plain Layout
19418 0
19419 \end_layout
19420
19421 \end_inset
19422
19423  if the float does not support this feature.
19424 \end_layout
19425
19426 \begin_layout Description
19427 \begin_inset Flex Code
19428 status collapsed
19429
19430 \begin_layout Plain Layout
19431 AllowsWide
19432 \end_layout
19433
19434 \end_inset
19435
19436  [
19437 \begin_inset Flex Code
19438 status collapsed
19439
19440 \begin_layout Plain Layout
19441
19442 \emph off
19443 0
19444 \end_layout
19445
19446 \end_inset
19447
19448 ,
19449 \begin_inset space \thinspace{}
19450 \end_inset
19451
19452
19453 \emph on
19454
19455 \begin_inset Flex Code
19456 status collapsed
19457
19458 \begin_layout Plain Layout
19459
19460 \emph on
19461 1
19462 \end_layout
19463
19464 \end_inset
19465
19466
19467 \emph default
19468 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
19469  Set to 
19470 \begin_inset Flex Code
19471 status collapsed
19472
19473 \begin_layout Plain Layout
19474 0
19475 \end_layout
19476
19477 \end_inset
19478
19479  if the float does not support this feature.
19480 \end_layout
19481
19482 \begin_layout Description
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 Extension
19488 \end_layout
19489
19490 \end_inset
19491
19492  [
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 string
19498 \end_layout
19499
19500 \end_inset
19501
19502 =
19503 \begin_inset Quotes erd
19504 \end_inset
19505
19506
19507 \begin_inset Quotes erd
19508 \end_inset
19509
19510 ] The file name extension of an auxiliary file for the list of figures (or whatever).
19511  \SpecialChar LaTeX
19512  writes the captions to this file.
19513 \end_layout
19514
19515 \begin_layout Description
19516 \begin_inset Flex Code
19517 status collapsed
19518
19519 \begin_layout Plain Layout
19520 GuiName
19521 \end_layout
19522
19523 \end_inset
19524
19525  [
19526 \begin_inset Flex Code
19527 status collapsed
19528
19529 \begin_layout Plain Layout
19530 string
19531 \end_layout
19532
19533 \end_inset
19534
19535 =
19536 \begin_inset Quotes erd
19537 \end_inset
19538
19539
19540 \begin_inset Quotes erd
19541 \end_inset
19542
19543 ] The string that will be used in the menus and also for the caption.
19544  This is translated to the current language if babel is used.
19545 \end_layout
19546
19547 \begin_layout Description
19548 \begin_inset Flex Code
19549 status collapsed
19550
19551 \begin_layout Plain Layout
19552 HTML*
19553 \end_layout
19554
19555 \end_inset
19556
19557  These tags control the XHTML output.
19558  See 
19559 \begin_inset CommandInset ref
19560 LatexCommand ref
19561 reference "sec:Tags-for-XHTML"
19562 nolink "false"
19563
19564 \end_inset
19565
19566 .
19567 \end_layout
19568
19569 \begin_layout Description
19570 \begin_inset Flex Code
19571 status collapsed
19572
19573 \begin_layout Plain Layout
19574 IsPredefined
19575 \end_layout
19576
19577 \end_inset
19578
19579  [
19580 \emph on
19581
19582 \begin_inset Flex Code
19583 status collapsed
19584
19585 \begin_layout Plain Layout
19586 0
19587 \end_layout
19588
19589 \end_inset
19590
19591
19592 \emph default
19593 ,
19594 \begin_inset space \thinspace{}
19595 \end_inset
19596
19597
19598 \begin_inset Flex Code
19599 status collapsed
19600
19601 \begin_layout Plain Layout
19602 1
19603 \end_layout
19604
19605 \end_inset
19606
19607 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
19608  package 
19609 \begin_inset Flex Code
19610 status collapsed
19611
19612 \begin_layout Plain Layout
19613 float
19614 \end_layout
19615
19616 \end_inset
19617
19618  needs to be loaded to define it on-the-fly.
19619  The default is 
19620 \begin_inset Flex Code
19621 status collapsed
19622
19623 \begin_layout Plain Layout
19624 0
19625 \end_layout
19626
19627 \end_inset
19628
19629 ,
19630  which means:
19631  
19632 \begin_inset Flex Code
19633 status collapsed
19634
19635 \begin_layout Plain Layout
19636 float
19637 \end_layout
19638
19639 \end_inset
19640
19641  is used.
19642  It should be set to 
19643 \begin_inset Flex Code
19644 status collapsed
19645
19646 \begin_layout Plain Layout
19647 1
19648 \end_layout
19649
19650 \end_inset
19651
19652  if the float is already defined by the \SpecialChar LaTeX
19653  document class.
19654 \end_layout
19655
19656 \begin_layout Description
19657 \begin_inset Flex Code
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661 ListCommand
19662 \end_layout
19663
19664 \end_inset
19665
19666  [
19667 \begin_inset Flex Code
19668 status collapsed
19669
19670 \begin_layout Plain Layout
19671 string
19672 \end_layout
19673
19674 \end_inset
19675
19676 =
19677 \begin_inset Quotes erd
19678 \end_inset
19679
19680
19681 \begin_inset Quotes erd
19682 \end_inset
19683
19684 ] The command used to generate a list of floats of this type;
19685  the leading `
19686 \backslash
19687 ' must be omitted.
19688  This 
19689 \emph on
19690 must
19691 \emph default
19692  be given if 
19693 \begin_inset Flex Code
19694 status collapsed
19695
19696 \begin_layout Plain Layout
19697 UsesFloatPkg
19698 \end_layout
19699
19700 \end_inset
19701
19702  is false,
19703  since there is no standard way to generate this command.
19704  It is ignored if 
19705 \begin_inset Flex Code
19706 status collapsed
19707
19708 \begin_layout Plain Layout
19709 UsesFloatPkg
19710 \end_layout
19711
19712 \end_inset
19713
19714  is true,
19715  since in that case there is a standard way to define the command.
19716 \end_layout
19717
19718 \begin_layout Description
19719 \begin_inset Flex Code
19720 status collapsed
19721
19722 \begin_layout Plain Layout
19723 ListName
19724 \end_layout
19725
19726 \end_inset
19727
19728  [
19729 \begin_inset Flex Code
19730 status collapsed
19731
19732 \begin_layout Plain Layout
19733 string
19734 \end_layout
19735
19736 \end_inset
19737
19738 =
19739 \begin_inset Quotes erd
19740 \end_inset
19741
19742
19743 \begin_inset Quotes erd
19744 \end_inset
19745
19746 ] A title for a list of floats of this kind (list of figures,
19747  tables,
19748  or whatever).
19749  It is used for the screen label within \SpecialChar LyX
19750 ,
19751  it is used by \SpecialChar LaTeX
19752  for the title and it is used as the title in the XHTML output.
19753  It will be translated to the document language.
19754 \end_layout
19755
19756 \begin_layout Description
19757 \begin_inset Flex Code
19758 status collapsed
19759
19760 \begin_layout Plain Layout
19761 NumberWithin
19762 \end_layout
19763
19764 \end_inset
19765
19766  [
19767 \begin_inset Flex Code
19768 status collapsed
19769
19770 \begin_layout Plain Layout
19771 string
19772 \end_layout
19773
19774 \end_inset
19775
19776 =
19777 \begin_inset Quotes erd
19778 \end_inset
19779
19780
19781 \begin_inset Quotes erd
19782 \end_inset
19783
19784 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
19785  For example,
19786  if 
19787 \begin_inset Flex Code
19788 status collapsed
19789
19790 \begin_layout Plain Layout
19791 NumberWithin
19792 \end_layout
19793
19794 \end_inset
19795
19796  is set to 
19797 \begin_inset Quotes eld
19798 \end_inset
19799
19800
19801 \begin_inset Flex Code
19802 status collapsed
19803
19804 \begin_layout Plain Layout
19805 chapter
19806 \end_layout
19807
19808 \end_inset
19809
19810
19811 \begin_inset Quotes erd
19812 \end_inset
19813
19814 ,
19815  the floats will be numbered within chapters.
19816  
19817 \end_layout
19818
19819 \begin_layout Description
19820 \begin_inset Flex Code
19821 status collapsed
19822
19823 \begin_layout Plain Layout
19824 Placement
19825 \end_layout
19826
19827 \end_inset
19828
19829  [
19830 \begin_inset Flex Code
19831 status collapsed
19832
19833 \begin_layout Plain Layout
19834 string
19835 \end_layout
19836
19837 \end_inset
19838
19839 =
19840 \begin_inset Quotes erd
19841 \end_inset
19842
19843
19844 \begin_inset Quotes erd
19845 \end_inset
19846
19847 ] The default placement for the given class of floats.
19848  The string should be as in standard \SpecialChar LaTeX
19849 :
19850  
19851 \begin_inset Flex Code
19852 status collapsed
19853
19854 \begin_layout Plain Layout
19855 t
19856 \end_layout
19857
19858 \end_inset
19859
19860 ,
19861  
19862 \begin_inset Flex Code
19863 status collapsed
19864
19865 \begin_layout Plain Layout
19866 b
19867 \end_layout
19868
19869 \end_inset
19870
19871 ,
19872  
19873 \begin_inset Flex Code
19874 status collapsed
19875
19876 \begin_layout Plain Layout
19877 p
19878 \end_layout
19879
19880 \end_inset
19881
19882  and 
19883 \begin_inset Flex Code
19884 status collapsed
19885
19886 \begin_layout Plain Layout
19887 h
19888 \end_layout
19889
19890 \end_inset
19891
19892  for top,
19893  bottom,
19894  page,
19895  and here,
19896  respectively.
19897 \begin_inset Foot
19898 status collapsed
19899
19900 \begin_layout Plain Layout
19901 Note that the order of these letters in the string is irrelevant,
19902  like in \SpecialChar LaTeX
19903 .
19904 \end_layout
19905
19906 \end_inset
19907
19908  On top of that there is a new type,
19909  
19910 \begin_inset Flex Code
19911 status collapsed
19912
19913 \begin_layout Plain Layout
19914 H
19915 \end_layout
19916
19917 \end_inset
19918
19919 ,
19920  which does not really correspond to a float,
19921  since it means:
19922  put it 
19923 \begin_inset Quotes eld
19924 \end_inset
19925
19926 here
19927 \begin_inset Quotes erd
19928 \end_inset
19929
19930  and nowhere else.
19931  Note however that the 
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 H
19937 \end_layout
19938
19939 \end_inset
19940
19941  specifier is special and,
19942  because of implementation details,
19943  cannot be used in non-built in float types.
19944  If you do not understand what this means,
19945  just use 
19946 \begin_inset Quotes eld
19947 \end_inset
19948
19949
19950 \begin_inset Flex Code
19951 status collapsed
19952
19953 \begin_layout Plain Layout
19954 tbp
19955 \end_layout
19956
19957 \end_inset
19958
19959
19960 \begin_inset Quotes erd
19961 \end_inset
19962
19963 .
19964 \end_layout
19965
19966 \begin_layout Description
19967 \begin_inset Flex Code
19968 status collapsed
19969
19970 \begin_layout Plain Layout
19971 RefPrefix
19972 \end_layout
19973
19974 \end_inset
19975
19976  [
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 string
19982 \end_layout
19983
19984 \end_inset
19985
19986 ] The prefix to use when creating labels referring to floats of this type.
19987  This allows the use of formatted references.
19988  Note that you can remove any 
19989 \begin_inset Flex Code
19990 status collapsed
19991
19992 \begin_layout Plain Layout
19993 RefPrefix
19994 \end_layout
19995
19996 \end_inset
19997
19998  set by a copied style by using the special value 
19999 \begin_inset Quotes eld
20000 \end_inset
20001
20002 OFF
20003 \begin_inset Quotes erd
20004 \end_inset
20005
20006 ,
20007  which must be all caps.
20008 \change_inserted -712698321 1565605014
20009
20010 \end_layout
20011
20012 \begin_layout Description
20013
20014 \change_inserted -712698321 1565605014
20015 \begin_inset Flex Code
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019
20020 \change_inserted -712698321 1565605014
20021 Requires
20022 \change_unchanged
20023
20024 \end_layout
20025
20026 \end_inset
20027
20028  [
20029 \begin_inset Flex Code
20030 status collapsed
20031
20032 \begin_layout Plain Layout
20033
20034 \change_inserted -712698321 1565605014
20035 string
20036 \change_unchanged
20037
20038 \end_layout
20039
20040 \end_inset
20041
20042 ] As with paragraph styles,
20043  see 
20044 \begin_inset CommandInset ref
20045 LatexCommand ref
20046 reference "subsec:Paragraph-Styles"
20047 nolink "false"
20048
20049 \end_inset
20050
20051 .
20052 \change_unchanged
20053
20054 \end_layout
20055
20056 \begin_layout Description
20057 \begin_inset Flex Code
20058 status collapsed
20059
20060 \begin_layout Plain Layout
20061 Style
20062 \end_layout
20063
20064 \end_inset
20065
20066  [
20067 \begin_inset Flex Code
20068 status collapsed
20069
20070 \begin_layout Plain Layout
20071 string
20072 \end_layout
20073
20074 \end_inset
20075
20076 =
20077 \begin_inset Quotes erd
20078 \end_inset
20079
20080
20081 \begin_inset Quotes erd
20082 \end_inset
20083
20084 ] The style used when defining the float using 
20085 \begin_inset Flex Code
20086 status collapsed
20087
20088 \begin_layout Plain Layout
20089
20090 \backslash
20091 newfloat
20092 \end_layout
20093
20094 \end_inset
20095
20096 .
20097 \end_layout
20098
20099 \begin_layout Description
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104 Type
20105 \end_layout
20106
20107 \end_inset
20108
20109  [
20110 \begin_inset Flex Code
20111 status collapsed
20112
20113 \begin_layout Plain Layout
20114 string
20115 \end_layout
20116
20117 \end_inset
20118
20119 =
20120 \begin_inset Quotes erd
20121 \end_inset
20122
20123
20124 \begin_inset Quotes erd
20125 \end_inset
20126
20127 ] The 
20128 \begin_inset Quotes eld
20129 \end_inset
20130
20131 type
20132 \begin_inset Quotes erd
20133 \end_inset
20134
20135  of the new class of floats,
20136  like program or algorithm.
20137  After the appropriate 
20138 \begin_inset Flex Code
20139 status collapsed
20140
20141 \begin_layout Plain Layout
20142
20143 \backslash
20144 newfloat
20145 \end_layout
20146
20147 \end_inset
20148
20149 ,
20150  commands such as 
20151 \begin_inset Flex Code
20152 status collapsed
20153
20154 \begin_layout Plain Layout
20155
20156 \backslash
20157 begin{program}
20158 \end_layout
20159
20160 \end_inset
20161
20162  or 
20163 \begin_inset Flex Code
20164 status collapsed
20165
20166 \begin_layout Plain Layout
20167
20168 \backslash
20169 end{algorithm*}
20170 \end_layout
20171
20172 \end_inset
20173
20174  will be available.
20175 \end_layout
20176
20177 \begin_layout Description
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 UsesFloatPkg
20183 \end_layout
20184
20185 \end_inset
20186
20187  [
20188 \begin_inset Flex Code
20189 status collapsed
20190
20191 \begin_layout Plain Layout
20192 0
20193 \end_layout
20194
20195 \end_inset
20196
20197 ,
20198 \begin_inset space \thinspace{}
20199 \end_inset
20200
20201
20202 \begin_inset Flex Code
20203 status collapsed
20204
20205 \begin_layout Plain Layout
20206
20207 \emph on
20208 1
20209 \end_layout
20210
20211 \end_inset
20212
20213 ] Specifies whether this float is defined using the \SpecialChar LaTeX
20214  package 
20215 \begin_inset Flex Code
20216 status collapsed
20217
20218 \begin_layout Plain Layout
20219 float
20220 \end_layout
20221
20222 \end_inset
20223
20224 ,
20225  either by the class file,
20226  another package or on-the-fly by \SpecialChar LyX
20227  itself.
20228 \end_layout
20229
20230 \begin_layout Standard
20231 Note that defining a float with type 
20232 \begin_inset Flex Code
20233 status collapsed
20234
20235 \begin_layout Plain Layout
20236
20237 \emph on
20238 type
20239 \end_layout
20240
20241 \end_inset
20242
20243  automatically defines the corresponding counter with name 
20244 \begin_inset Flex Code
20245 status collapsed
20246
20247 \begin_layout Plain Layout
20248
20249 \emph on
20250 type
20251 \end_layout
20252
20253 \end_inset
20254
20255 .
20256 \end_layout
20257
20258 \begin_layout Subsection
20259 Flex insets and InsetLayout
20260 \begin_inset CommandInset label
20261 LatexCommand label
20262 name "subsec:Flex-insets-and"
20263
20264 \end_inset
20265
20266
20267 \end_layout
20268
20269 \begin_layout Standard
20270 Flex insets come in 
20271 \change_deleted 5863208 1594239511
20272 three
20273 \change_inserted 5863208 1594239512
20274 two
20275 \change_unchanged
20276  different kinds:
20277  
20278 \end_layout
20279
20280 \begin_layout Itemize
20281 character style (
20282 \begin_inset Flex Code
20283 status collapsed
20284
20285 \begin_layout Plain Layout
20286 CharStyle
20287 \end_layout
20288
20289 \end_inset
20290
20291 ):
20292  These define semantic markup corresponding to such \SpecialChar LaTeX
20293  commands as 
20294 \begin_inset Flex Code
20295 status collapsed
20296
20297 \begin_layout Plain Layout
20298
20299 \backslash
20300 noun
20301 \end_layout
20302
20303 \end_inset
20304
20305  and 
20306 \begin_inset Flex Code
20307 status collapsed
20308
20309 \begin_layout Plain Layout
20310
20311 \backslash
20312 code
20313 \end_layout
20314
20315 \end_inset
20316
20317 .
20318 \end_layout
20319
20320 \begin_layout Itemize
20321 user custom (
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 Custom
20327 \end_layout
20328
20329 \end_inset
20330
20331 ):
20332  These can be used to define custom collapsible insets,
20333  similar to \SpecialChar TeX
20334  code,
20335  footnote,
20336  and the like.
20337  An obvious example is an endnote inset,
20338  which is defined in the 
20339 \begin_inset Flex Code
20340 status collapsed
20341
20342 \begin_layout Plain Layout
20343 endnote
20344 \end_layout
20345
20346 \end_inset
20347
20348  module.
20349 \end_layout
20350
20351 \begin_layout Itemize
20352
20353 \change_deleted 5863208 1594239528
20354 XML elements (
20355 \begin_inset Flex Code
20356 status collapsed
20357
20358 \begin_layout Plain Layout
20359 Element
20360 \end_layout
20361
20362 \end_inset
20363
20364 ):
20365  For use with DocBook classes.
20366 \change_unchanged
20367
20368 \end_layout
20369
20370 \begin_layout Standard
20371 Flex insets are defined using the 
20372 \begin_inset Flex Code
20373 status collapsed
20374
20375 \begin_layout Plain Layout
20376 InsetLayout
20377 \end_layout
20378
20379 \end_inset
20380
20381  tag,
20382  which shall be explained in a moment.
20383 \end_layout
20384
20385 \begin_layout Standard
20386 The 
20387 \begin_inset Flex Code
20388 status collapsed
20389
20390 \begin_layout Plain Layout
20391 InsetLayout
20392 \end_layout
20393
20394 \end_inset
20395
20396  tag also serves another function:
20397  It can be used to customize the general layout of many different types of insets.
20398  Currently,
20399  
20400 \begin_inset Flex Code
20401 status collapsed
20402
20403 \begin_layout Plain Layout
20404 InsetLayout
20405 \end_layout
20406
20407 \end_inset
20408
20409  can be used to customize the layout parameters for footnotes,
20410  marginal notes,
20411  note insets,
20412  \SpecialChar TeX
20413  code (ERT) insets,
20414  branches,
20415  listings,
20416  indexes,
20417  boxes,
20418  tables,
20419  algorithms,
20420  URLs,
20421  and captions,
20422  as well as to define Flex insets.
20423 \end_layout
20424
20425 \begin_layout Standard
20426 The 
20427 \begin_inset Flex Code
20428 status collapsed
20429
20430 \begin_layout Plain Layout
20431 InsetLayout
20432 \end_layout
20433
20434 \end_inset
20435
20436  definition must begin with a line of the form:
20437 \end_layout
20438
20439 \begin_layout LyX-Code
20440 InsetLayout <type>
20441 \end_layout
20442
20443 \begin_layout Standard
20444 Here 
20445 \begin_inset Flex Code
20446 status collapsed
20447
20448 \begin_layout Plain Layout
20449 <Type>
20450 \end_layout
20451
20452 \end_inset
20453
20454  indicates the inset whose layout is being defined,
20455  and here there are four cases.
20456 \end_layout
20457
20458 \begin_layout Enumerate
20459 The layout for a pre-existing inset is being modified.
20460  In this case,
20461  can be 
20462 \begin_inset Flex Code
20463 status collapsed
20464
20465 \begin_layout Plain Layout
20466 <Type>
20467 \end_layout
20468
20469 \end_inset
20470
20471  any one of the following:
20472  
20473 \begin_inset Flex Code
20474 status collapsed
20475
20476 \begin_layout Plain Layout
20477 Algorithm
20478 \end_layout
20479
20480 \end_inset
20481
20482 ,
20483  
20484 \begin_inset Flex Code
20485 status collapsed
20486
20487 \begin_layout Plain Layout
20488 Branch
20489 \end_layout
20490
20491 \end_inset
20492
20493 ,
20494  
20495 \begin_inset Flex Code
20496 status collapsed
20497
20498 \begin_layout Plain Layout
20499 Box
20500 \end_layout
20501
20502 \end_inset
20503
20504 ,
20505  
20506 \begin_inset Flex Code
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 Box:shaded
20511 \end_layout
20512
20513 \end_inset
20514
20515 ,
20516  
20517 \begin_inset Flex Code
20518 status collapsed
20519
20520 \begin_layout Plain Layout
20521 Caption:Standard
20522 \end_layout
20523
20524 \end_inset
20525
20526 ,
20527  
20528 \begin_inset Flex Code
20529 status collapsed
20530
20531 \begin_layout Plain Layout
20532 ERT
20533 \end_layout
20534
20535 \end_inset
20536
20537 ,
20538  
20539 \begin_inset Flex Code
20540 status collapsed
20541
20542 \begin_layout Plain Layout
20543 Figure
20544 \end_layout
20545
20546 \end_inset
20547
20548 ,
20549  
20550 \begin_inset Flex Code
20551 status collapsed
20552
20553 \begin_layout Plain Layout
20554 Foot
20555 \end_layout
20556
20557 \end_inset
20558
20559 ,
20560  
20561 \begin_inset Flex Code
20562 status collapsed
20563
20564 \begin_layout Plain Layout
20565 Index
20566 \end_layout
20567
20568 \end_inset
20569
20570 ,
20571  
20572 \begin_inset Flex Code
20573 status collapsed
20574
20575 \begin_layout Plain Layout
20576 Info
20577 \end_layout
20578
20579 \end_inset
20580
20581 ,
20582  
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 Info:menu
20588 \end_layout
20589
20590 \end_inset
20591
20592 ,
20593  
20594 \begin_inset Flex Code
20595 status collapsed
20596
20597 \begin_layout Plain Layout
20598 Info:shortcut
20599 \end_layout
20600
20601 \end_inset
20602
20603 ,
20604  
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609 Info:shortcuts
20610 \end_layout
20611
20612 \end_inset
20613
20614 ,
20615  
20616 \begin_inset Flex Code
20617 status collapsed
20618
20619 \begin_layout Plain Layout
20620 Listings
20621 \end_layout
20622
20623 \end_inset
20624
20625 ,
20626  
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 Marginal
20632 \end_layout
20633
20634 \end_inset
20635
20636 ,
20637  
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 Note:Comment
20643 \end_layout
20644
20645 \end_inset
20646
20647 ,
20648  
20649 \begin_inset Flex Code
20650 status collapsed
20651
20652 \begin_layout Plain Layout
20653 Note:Note
20654 \end_layout
20655
20656 \end_inset
20657
20658 ,
20659  
20660 \begin_inset Flex Code
20661 status collapsed
20662
20663 \begin_layout Plain Layout
20664 Note:Greyedout
20665 \end_layout
20666
20667 \end_inset
20668
20669 ,
20670  
20671 \begin_inset Flex Code
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 Table
20676 \end_layout
20677
20678 \end_inset
20679
20680 ,
20681  or 
20682 \begin_inset Flex Code
20683 status collapsed
20684
20685 \begin_layout Plain Layout
20686 URL
20687 \end_layout
20688
20689 \end_inset
20690
20691 .
20692 \end_layout
20693
20694 \begin_layout Enumerate
20695 The layout for a Flex inset is being defined.
20696  In this case,
20697  
20698 \begin_inset Flex Code
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 <Type>
20703 \end_layout
20704
20705 \end_inset
20706
20707  must be of the form 
20708 \begin_inset Quotes eld
20709 \end_inset
20710
20711
20712 \begin_inset Flex Code
20713 status collapsed
20714
20715 \begin_layout Plain Layout
20716 Flex:<name>
20717 \end_layout
20718
20719 \end_inset
20720
20721
20722 \begin_inset Quotes erd
20723 \end_inset
20724
20725 ,
20726  where 
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 name
20732 \end_layout
20733
20734 \end_inset
20735
20736  may be any valid identifier not used by a pre-existing Flex inset.
20737  The identifier may include spaces,
20738  but in that case the whole thing must be wrapped in quotes.
20739  Note that the definition of a flex inset 
20740 \emph on
20741 must 
20742 \emph default
20743 also include a 
20744 \begin_inset Flex Code
20745 status collapsed
20746
20747 \begin_layout Plain Layout
20748 LyXType
20749 \end_layout
20750
20751 \end_inset
20752
20753  entry,
20754  declaring which type of inset it defines.
20755 \end_layout
20756
20757 \begin_layout Enumerate
20758 The layout for user specific branch is being defined.
20759  In this case,
20760  
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765 <Type>
20766 \end_layout
20767
20768 \end_inset
20769
20770  must be of the form 
20771 \begin_inset Quotes eld
20772 \end_inset
20773
20774
20775 \begin_inset Flex Code
20776 status collapsed
20777
20778 \begin_layout Plain Layout
20779 Branch:<name>
20780 \end_layout
20781
20782 \end_inset
20783
20784
20785 \begin_inset Quotes erd
20786 \end_inset
20787
20788 ,
20789  where 
20790 \begin_inset Flex Code
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794 name
20795 \end_layout
20796
20797 \end_inset
20798
20799  may be any valid identifier of branch defined in user's document.
20800  The identifier may include spaces,
20801  but in that case the whole thing must be wrapped in quotes.
20802  The main purpose of this feature is to allow \SpecialChar LaTeX
20803  wrapping around specific branches as user needs.
20804 \end_layout
20805
20806 \begin_layout Enumerate
20807 The layout of a user (or class) specific caption is being defined.
20808  In this case,
20809  
20810 \begin_inset Flex Code
20811 status collapsed
20812
20813 \begin_layout Plain Layout
20814 <Type>
20815 \end_layout
20816
20817 \end_inset
20818
20819  must be of the form 
20820 \begin_inset Quotes eld
20821 \end_inset
20822
20823
20824 \begin_inset Flex Code
20825 status collapsed
20826
20827 \begin_layout Plain Layout
20828 Caption:<name>
20829 \end_layout
20830
20831 \end_inset
20832
20833
20834 \begin_inset Quotes erd
20835 \end_inset
20836
20837 ,
20838  where 
20839 \begin_inset Flex Code
20840 status collapsed
20841
20842 \begin_layout Plain Layout
20843 name
20844 \end_layout
20845
20846 \end_inset
20847
20848  specifies the name of the caption as it appears in the menu.
20849  Have a look at the standard caption (
20850 \begin_inset Flex Code
20851 status collapsed
20852
20853 \begin_layout Plain Layout
20854 Caption:Standard
20855 \end_layout
20856
20857 \end_inset
20858
20859 ),
20860  the specific captions of the KOMA-Script classes (
20861 \begin_inset Flex Code
20862 status collapsed
20863
20864 \begin_layout Plain Layout
20865 Caption:Above
20866 \end_layout
20867
20868 \end_inset
20869
20870 ,
20871  
20872 \begin_inset Flex Code
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 Caption:Below
20877 \end_layout
20878
20879 \end_inset
20880
20881 ) or the module 
20882 \family sans
20883 Multilingual
20884 \begin_inset space ~
20885 \end_inset
20886
20887 Captions
20888 \begin_inset Newline linebreak
20889 \end_inset
20890
20891
20892 \family default
20893 (
20894 \begin_inset Flex Code
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898 Caption:Bicaption
20899 \end_layout
20900
20901 \end_inset
20902
20903 ) for applications.
20904 \end_layout
20905
20906 \begin_layout Standard
20907 The 
20908 \begin_inset Flex Code
20909 status collapsed
20910
20911 \begin_layout Plain Layout
20912 InsetLayout
20913 \end_layout
20914
20915 \end_inset
20916
20917  definition can contain the following entries:
20918 \end_layout
20919
20920 \begin_layout Description
20921 \begin_inset Flex Code
20922 status collapsed
20923
20924 \begin_layout Plain Layout
20925 AddToToc
20926 \end_layout
20927
20928 \end_inset
20929
20930  [
20931 \begin_inset Flex Code
20932 status collapsed
20933
20934 \begin_layout Plain Layout
20935 string
20936 \end_layout
20937
20938 \end_inset
20939
20940 =""] This inset will appear in the table of contents of the given type.
20941  An empty string disables.
20942  See also the OutlinerName and the IsTocCaption commands.
20943  This is only implemented for Flex insets.
20944  Default:
20945  disabled.
20946 \end_layout
20947
20948 \begin_layout Description
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 Argument
20954 \end_layout
20955
20956 \end_inset
20957
20958  [
20959 \begin_inset Flex Code
20960 status collapsed
20961
20962 \begin_layout Plain Layout
20963 int
20964 \end_layout
20965
20966 \end_inset
20967
20968 ] Defines argument number of a command\SpecialChar breakableslash
20969 environment associated with the current layout.
20970  The definition must end with 
20971 \begin_inset Flex Code
20972 status collapsed
20973
20974 \begin_layout Plain Layout
20975 EndArgument
20976 \end_layout
20977
20978 \end_inset
20979
20980 .
20981  See 
20982 \change_inserted -584632292 1615846847
20983
20984 \begin_inset CommandInset ref
20985 LatexCommand ref
20986 reference "subsec:Arguments"
20987 plural "false"
20988 caps "false"
20989 noprefix "false"
20990 nolink "false"
20991
20992 \end_inset
20993
20994
20995 \change_deleted -584632292 1615846847
20996
20997 \begin_inset CommandInset ref
20998 LatexCommand ref
20999 reference "subsec:Paragraph-Styles"
21000 nolink "false"
21001
21002 \end_inset
21003
21004
21005 \change_unchanged
21006  for 
21007 \change_deleted -584632292 1615846902
21008 details
21009 \change_inserted -584632292 1615846906
21010 more information
21011 \change_unchanged
21012 .
21013 \end_layout
21014
21015 \begin_layout Description
21016 \begin_inset Flex Code
21017 status collapsed
21018
21019 \begin_layout Plain Layout
21020 BabelPreamble
21021 \end_layout
21022
21023 \end_inset
21024
21025  Preamble for changing language commands;
21026  see 
21027 \begin_inset CommandInset ref
21028 LatexCommand ref
21029 reference "subsec:I18n"
21030 nolink "false"
21031
21032 \end_inset
21033
21034 .
21035 \end_layout
21036
21037 \begin_layout Description
21038 \begin_inset Flex Code
21039 status collapsed
21040
21041 \begin_layout Plain Layout
21042 BgColor
21043 \end_layout
21044
21045 \end_inset
21046
21047  [
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052 <name>
21053 \end_layout
21054
21055 \end_inset
21056
21057 ] The color for the inset's background.
21058  See 
21059 \begin_inset CommandInset ref
21060 LatexCommand ref
21061 reference "chap:Names-of-colors"
21062 nolink "false"
21063
21064 \end_inset
21065
21066  for a list of the available color names.
21067 \end_layout
21068
21069 \begin_layout Description
21070 \begin_inset Flex Code
21071 status collapsed
21072
21073 \begin_layout Plain Layout
21074 ContentAsLabel
21075 \end_layout
21076
21077 \end_inset
21078
21079  [
21080 \begin_inset Flex Code
21081 status collapsed
21082
21083 \begin_layout Plain Layout
21084
21085 \emph on
21086 0
21087 \end_layout
21088
21089 \end_inset
21090
21091 ,
21092 \begin_inset space \thinspace{}
21093 \end_inset
21094
21095
21096 \begin_inset Flex Code
21097 status collapsed
21098
21099 \begin_layout Plain Layout
21100 1
21101 \end_layout
21102
21103 \end_inset
21104
21105 ] Whether to use the content of the inset as the label,
21106  when the inset is closed.
21107  Default is false.
21108 \end_layout
21109
21110 \begin_layout Description
21111 \begin_inset Flex Code
21112 status collapsed
21113
21114 \begin_layout Plain Layout
21115 CopyStyle
21116 \end_layout
21117
21118 \end_inset
21119
21120  [
21121 \begin_inset Flex Code
21122 status collapsed
21123
21124 \begin_layout Plain Layout
21125 <type>
21126 \end_layout
21127
21128 \end_inset
21129
21130 ] As with paragraph styles,
21131  see 
21132 \begin_inset CommandInset ref
21133 LatexCommand ref
21134 reference "subsec:Paragraph-Styles"
21135 nolink "false"
21136
21137 \end_inset
21138
21139 .
21140  Note that you need to specify the complete type,
21141  e.
21142 \begin_inset space \thinspace{}
21143 \end_inset
21144
21145 g.
21146 \begin_inset space ~
21147 \end_inset
21148
21149
21150 \begin_inset Flex Code
21151 status collapsed
21152
21153 \begin_layout Plain Layout
21154 CopyStyle Flex:<name>
21155 \end_layout
21156
21157 \end_inset
21158
21159 .
21160 \end_layout
21161
21162 \begin_layout Description
21163 \begin_inset Flex Code
21164 status collapsed
21165
21166 \begin_layout Plain Layout
21167 CustomPars
21168 \end_layout
21169
21170 \end_inset
21171
21172  [
21173 \begin_inset Flex Code
21174 status collapsed
21175
21176 \begin_layout Plain Layout
21177
21178 \emph on
21179 0
21180 \end_layout
21181
21182 \end_inset
21183
21184 ,
21185 \begin_inset space \thinspace{}
21186 \end_inset
21187
21188
21189 \begin_inset Flex Code
21190 status collapsed
21191
21192 \begin_layout Plain Layout
21193 1
21194 \end_layout
21195
21196 \end_inset
21197
21198 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
21199 \end_layout
21200
21201 \begin_layout Description
21202 \begin_inset Flex Code
21203 status collapsed
21204
21205 \begin_layout Plain Layout
21206 Decoration
21207 \end_layout
21208
21209 \end_inset
21210
21211  can be 
21212 \begin_inset Flex Code
21213 status collapsed
21214
21215 \begin_layout Plain Layout
21216 Classic
21217 \end_layout
21218
21219 \end_inset
21220
21221 ,
21222  
21223 \begin_inset Flex Code
21224 status collapsed
21225
21226 \begin_layout Plain Layout
21227 Minimalistic
21228 \end_layout
21229
21230 \end_inset
21231
21232 ,
21233  or 
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 Conglomerate
21239 \end_layout
21240
21241 \end_inset
21242
21243 ,
21244  describing the rendering style used for the inset's frame and buttons.
21245  Footnotes generally use 
21246 \begin_inset Flex Code
21247 status collapsed
21248
21249 \begin_layout Plain Layout
21250 Classic
21251 \end_layout
21252
21253 \end_inset
21254
21255 ,
21256  ERT insets generally 
21257 \begin_inset Flex Code
21258 status collapsed
21259
21260 \begin_layout Plain Layout
21261 Minimalistic
21262 \end_layout
21263
21264 \end_inset
21265
21266 ,
21267  and character styles 
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 Conglomerate
21273 \end_layout
21274
21275 \end_inset
21276
21277 .
21278 \end_layout
21279
21280 \begin_layout Description
21281 \begin_inset Flex Code
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 Display
21286 \end_layout
21287
21288 \end_inset
21289
21290  [
21291 \begin_inset Flex Code
21292 status collapsed
21293
21294 \begin_layout Plain Layout
21295 0
21296 \end_layout
21297
21298 \end_inset
21299
21300 ,
21301 \emph on
21302
21303 \begin_inset space \thinspace{}
21304 \end_inset
21305
21306
21307 \emph default
21308
21309 \begin_inset Flex Code
21310 status collapsed
21311
21312 \begin_layout Plain Layout
21313
21314 \emph on
21315 1
21316 \end_layout
21317
21318 \end_inset
21319
21320 ] Only useful if 
21321 \begin_inset Flex Code
21322 status collapsed
21323
21324 \begin_layout Plain Layout
21325 LatexType
21326 \end_layout
21327
21328 \end_inset
21329
21330  is 
21331 \begin_inset Flex Code
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 Environment
21336 \end_layout
21337
21338 \end_inset
21339
21340 .
21341  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
21342  If set to false,
21343  it is supposed that the \SpecialChar LaTeX
21344  environment ignores white space (including one newline character) after the 
21345 \begin_inset Flex Code
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349
21350 \backslash
21351 begin{
21352 \emph on
21353 LatexName
21354 \emph default
21355 }
21356 \end_layout
21357
21358 \end_inset
21359
21360  and 
21361 \begin_inset Flex Code
21362 status collapsed
21363
21364 \begin_layout Plain Layout
21365
21366 \backslash
21367 end{
21368 \emph on
21369 LatexName
21370 \emph default
21371 }
21372 \end_layout
21373
21374 \end_inset
21375
21376  tags.
21377  Default is true.
21378 \change_inserted 731793113 1538674858
21379
21380 \end_layout
21381
21382 \begin_layout Description
21383
21384 \change_inserted 731793113 1538674891
21385 \begin_inset Flex Code
21386 status open
21387
21388 \begin_layout Plain Layout
21389
21390 \change_inserted 731793113 1538674863
21391 EditExternal
21392 \change_unchanged
21393
21394 \end_layout
21395
21396 \end_inset
21397
21398  [
21399 \emph on
21400 0
21401 \emph default
21402 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
21403 \change_unchanged
21404
21405 \end_layout
21406
21407 \begin_layout Description
21408 \begin_inset Flex Code
21409 status collapsed
21410
21411 \begin_layout Plain Layout
21412 End
21413 \end_layout
21414
21415 \end_inset
21416
21417  Required at the end of the 
21418 \begin_inset Flex Code
21419 status collapsed
21420
21421 \begin_layout Plain Layout
21422 InsetLayout
21423 \end_layout
21424
21425 \end_inset
21426
21427  declarations.
21428 \end_layout
21429
21430 \begin_layout Description
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 Font
21436 \end_layout
21437
21438 \end_inset
21439
21440  The font used for both the text body 
21441 \emph on
21442 and
21443 \emph default
21444  the label.
21445  See 
21446 \begin_inset CommandInset ref
21447 LatexCommand ref
21448 reference "subsec:Font-description"
21449 nolink "false"
21450
21451 \end_inset
21452
21453 .
21454  Note that defining this font automatically defines the 
21455 \begin_inset Flex Code
21456 status collapsed
21457
21458 \begin_layout Plain Layout
21459 LabelFont
21460 \end_layout
21461
21462 \end_inset
21463
21464  to the same value,
21465  so define this first and define 
21466 \begin_inset Flex Code
21467 status collapsed
21468
21469 \begin_layout Plain Layout
21470 LabelFont
21471 \end_layout
21472
21473 \end_inset
21474
21475  later if you want them to be different.
21476 \end_layout
21477
21478 \begin_layout Description
21479 \begin_inset Flex Code
21480 status collapsed
21481
21482 \begin_layout Plain Layout
21483 FixedWidthPreambleEncoding
21484 \end_layout
21485
21486 \end_inset
21487
21488  [
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493
21494 \emph on
21495 0
21496 \end_layout
21497
21498 \end_inset
21499
21500 ,
21501 \begin_inset space \thinspace{}
21502 \end_inset
21503
21504
21505 \begin_inset Flex Code
21506 status collapsed
21507
21508 \begin_layout Plain Layout
21509 1
21510 \end_layout
21511
21512 \end_inset
21513
21514 ] Force a fixed width encoding for the translated contents of 
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519 BabelPreamble
21520 \end_layout
21521
21522 \end_inset
21523
21524  and 
21525 \begin_inset Flex Code
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529 LangPreamble
21530 \end_layout
21531
21532 \end_inset
21533
21534  code generated by this layout.
21535  This is needed for special \SpecialChar LaTeX
21536 -packages like 
21537 \family typewriter
21538 listings
21539 \family default
21540  that do not work with variable width encodings such as 
21541 \family sans
21542 utf8
21543 \family default
21544 .
21545  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
21546  backends such as Xe\SpecialChar TeX
21547  or Lua\SpecialChar TeX
21548  are used.
21549 \end_layout
21550
21551 \begin_layout Description
21552 \begin_inset Flex Code
21553 status collapsed
21554
21555 \begin_layout Plain Layout
21556 ForceLocalFontSwitch
21557 \end_layout
21558
21559 \end_inset
21560
21561  [
21562 \begin_inset Flex Code
21563 status collapsed
21564
21565 \begin_layout Plain Layout
21566
21567 \emph on
21568 0
21569 \end_layout
21570
21571 \end_inset
21572
21573 ,
21574 \begin_inset space \thinspace{}
21575 \end_inset
21576
21577
21578 \begin_inset Flex Code
21579 status collapsed
21580
21581 \begin_layout Plain Layout
21582 1
21583 \end_layout
21584
21585 \end_inset
21586
21587 ] When using babel,
21588  always use a local font switch (
21589 \begin_inset Flex Code
21590 status collapsed
21591
21592 \begin_layout Plain Layout
21593
21594 \backslash
21595 foreignlanguage
21596 \end_layout
21597
21598 \end_inset
21599
21600 ),
21601  never a global one (such as 
21602 \begin_inset Flex Code
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606
21607 \backslash
21608 selectlanguage
21609 \end_layout
21610
21611 \end_inset
21612
21613 ).
21614 \end_layout
21615
21616 \begin_layout Description
21617 \begin_inset Flex Code
21618 status collapsed
21619
21620 \begin_layout Plain Layout
21621 ForceLTR
21622 \end_layout
21623
21624 \end_inset
21625
21626  [
21627 \begin_inset Flex Code
21628 status collapsed
21629
21630 \begin_layout Plain Layout
21631
21632 \emph on
21633 0
21634 \end_layout
21635
21636 \end_inset
21637
21638 ,
21639 \begin_inset space \thinspace{}
21640 \end_inset
21641
21642
21643 \begin_inset Flex Code
21644 status collapsed
21645
21646 \begin_layout Plain Layout
21647 1
21648 \end_layout
21649
21650 \end_inset
21651
21652 ] Force the 
21653 \begin_inset Quotes eld
21654 \end_inset
21655
21656 latex
21657 \begin_inset Quotes erd
21658 \end_inset
21659
21660  language,
21661  leading to Left-to-Right (Latin) output,
21662  e.
21663 \begin_inset space \thinspace{}
21664 \end_inset
21665
21666 g.
21667 \begin_inset space \space{}
21668 \end_inset
21669
21670 in \SpecialChar TeX
21671  code or URL.
21672  A kludge.
21673 \end_layout
21674
21675 \begin_layout Description
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680 ForceOwnlines
21681 \end_layout
21682
21683 \end_inset
21684
21685  [
21686 \begin_inset Flex Code
21687 status collapsed
21688
21689 \begin_layout Plain Layout
21690
21691 \emph on
21692 0
21693 \end_layout
21694
21695 \end_inset
21696
21697 ,
21698 \begin_inset space \thinspace{}
21699 \end_inset
21700
21701
21702 \begin_inset Flex Code
21703 status collapsed
21704
21705 \begin_layout Plain Layout
21706 1
21707 \end_layout
21708
21709 \end_inset
21710
21711 ] Force a line break in the \SpecialChar LaTeX
21712  output before the inset starts and after the inset ends.
21713  This assures the inset itself is output on its own lines,
21714  for parsing purposes.
21715 \end_layout
21716
21717 \begin_layout Description
21718 \begin_inset Flex Code
21719 status collapsed
21720
21721 \begin_layout Plain Layout
21722 ForcePlain
21723 \end_layout
21724
21725 \end_inset
21726
21727  [
21728 \begin_inset Flex Code
21729 status collapsed
21730
21731 \begin_layout Plain Layout
21732
21733 \emph on
21734 0
21735 \end_layout
21736
21737 \end_inset
21738
21739 ,
21740 \begin_inset space \thinspace{}
21741 \end_inset
21742
21743
21744 \begin_inset Flex Code
21745 status collapsed
21746
21747 \begin_layout Plain Layout
21748 1
21749 \end_layout
21750
21751 \end_inset
21752
21753 ] Indicates whether the 
21754 \begin_inset Flex Code
21755 status collapsed
21756
21757 \begin_layout Plain Layout
21758 PlainLayout
21759 \end_layout
21760
21761 \end_inset
21762
21763  should be used or,
21764  instead,
21765  the user can change the paragraph style used in the inset.
21766  Default is false.
21767 \end_layout
21768
21769 \begin_layout Description
21770 \begin_inset Flex Code
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 FreeSpacing
21775 \end_layout
21776
21777 \end_inset
21778
21779  [
21780 \begin_inset Flex Code
21781 status collapsed
21782
21783 \begin_layout Plain Layout
21784
21785 \emph on
21786 0
21787 \end_layout
21788
21789 \end_inset
21790
21791 ,
21792 \begin_inset space \thinspace{}
21793 \end_inset
21794
21795
21796 \begin_inset Flex Code
21797 status collapsed
21798
21799 \begin_layout Plain Layout
21800 1
21801 \end_layout
21802
21803 \end_inset
21804
21805 ] As with paragraph styles,
21806  see 
21807 \begin_inset CommandInset ref
21808 LatexCommand ref
21809 reference "subsec:Paragraph-Styles"
21810 nolink "false"
21811
21812 \end_inset
21813
21814 .
21815 \end_layout
21816
21817 \begin_layout Description
21818 \begin_inset Flex Code
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822 HTML*
21823 \end_layout
21824
21825 \end_inset
21826
21827  These tags control the XHTML output.
21828  See 
21829 \begin_inset CommandInset ref
21830 LatexCommand ref
21831 reference "sec:Tags-for-XHTML"
21832 nolink "false"
21833
21834 \end_inset
21835
21836 .
21837 \change_inserted 47243155 1689528605
21838
21839 \end_layout
21840
21841 \begin_layout Description
21842
21843 \change_inserted 47243155 1689528735
21844 \begin_inset Flex Code
21845 status collapsed
21846
21847 \begin_layout Plain Layout
21848
21849 \change_inserted 47243155 1689528630
21850 InheritFont
21851 \end_layout
21852
21853 \end_inset
21854
21855  [
21856 \begin_inset Flex Code
21857 status collapsed
21858
21859 \begin_layout Plain Layout
21860
21861 \change_inserted 47243155 1689528607
21862 0
21863 \end_layout
21864
21865 \end_inset
21866
21867 ,
21868 \begin_inset space \thinspace{}
21869 \end_inset
21870
21871
21872 \begin_inset Flex Code
21873 status collapsed
21874
21875 \begin_layout Plain Layout
21876
21877 \change_inserted 47243155 1689528607
21878
21879 \emph on
21880 1
21881 \end_layout
21882
21883 \end_inset
21884
21885 ] The font inside the inset is inherited from the parent for \SpecialChar LaTeX
21886  export if this parameter is 1,
21887  as well as on screen.
21888  Otherwise the document default font is used.
21889 \change_unchanged
21890
21891 \end_layout
21892
21893 \begin_layout Description
21894 \begin_inset Flex Code
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898 InToc
21899 \end_layout
21900
21901 \end_inset
21902
21903  [
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908
21909 \emph on
21910 0
21911 \end_layout
21912
21913 \end_inset
21914
21915 ,
21916 \begin_inset space \thinspace{}
21917 \end_inset
21918
21919
21920 \begin_inset Flex Code
21921 status collapsed
21922
21923 \begin_layout Plain Layout
21924 1
21925 \end_layout
21926
21927 \end_inset
21928
21929 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
21930  regardless of the AddToToc setting.
21931  One would not,
21932  for example,
21933  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
21934  but one would normally want the content of a character style displayed.
21935  Default is false:
21936  not to include.
21937 \end_layout
21938
21939 \begin_layout Description
21940 \begin_inset Flex Code
21941 status collapsed
21942
21943 \begin_layout Plain Layout
21944 IsTocCaption
21945 \end_layout
21946
21947 \end_inset
21948
21949  [
21950 \begin_inset Flex Code
21951 status collapsed
21952
21953 \begin_layout Plain Layout
21954
21955 \emph on
21956 0
21957 \end_layout
21958
21959 \end_inset
21960
21961 ,
21962 \begin_inset space \thinspace{}
21963 \end_inset
21964
21965
21966 \begin_inset Flex Code
21967 status collapsed
21968
21969 \begin_layout Plain Layout
21970 1
21971 \end_layout
21972
21973 \end_inset
21974
21975 ] If this is set to 1 and AddToToc is enabled,
21976  the inset adds a summary of its contents in its item in the table of contents.
21977  Otherwise,
21978  only the label appears.
21979 \end_layout
21980
21981 \begin_layout Description
21982 \begin_inset Flex Code
21983 status collapsed
21984
21985 \begin_layout Plain Layout
21986 KeepEmpty
21987 \end_layout
21988
21989 \end_inset
21990
21991  [
21992 \emph on
21993
21994 \begin_inset Flex Code
21995 status collapsed
21996
21997 \begin_layout Plain Layout
21998 0
21999 \end_layout
22000
22001 \end_inset
22002
22003
22004 \emph default
22005 ,
22006 \begin_inset space \thinspace{}
22007 \end_inset
22008
22009
22010 \begin_inset Flex Code
22011 status collapsed
22012
22013 \begin_layout Plain Layout
22014 1
22015 \end_layout
22016
22017 \end_inset
22018
22019 ] As with paragraph styles,
22020  see 
22021 \begin_inset CommandInset ref
22022 LatexCommand ref
22023 reference "subsec:Paragraph-Styles"
22024 nolink "false"
22025
22026 \end_inset
22027
22028 .
22029 \end_layout
22030
22031 \begin_layout Description
22032 \begin_inset Flex Code
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036 LabelFont
22037 \end_layout
22038
22039 \end_inset
22040
22041  The font used for the label.
22042  See 
22043 \begin_inset CommandInset ref
22044 LatexCommand ref
22045 reference "subsec:Font-description"
22046 nolink "false"
22047
22048 \end_inset
22049
22050 .
22051  Note that this definition can never appear before 
22052 \begin_inset Flex Code
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056 Font
22057 \end_layout
22058
22059 \end_inset
22060
22061 ,
22062  lest it be ineffective.
22063 \end_layout
22064
22065 \begin_layout Description
22066 \begin_inset Flex Code
22067 status collapsed
22068
22069 \begin_layout Plain Layout
22070 LabelString
22071 \end_layout
22072
22073 \end_inset
22074
22075  [
22076 \begin_inset Flex Code
22077 status collapsed
22078
22079 \begin_layout Plain Layout
22080 string
22081 \end_layout
22082
22083 \end_inset
22084
22085 =
22086 \begin_inset Quotes erd
22087 \end_inset
22088
22089
22090 \begin_inset Quotes erd
22091 \end_inset
22092
22093 ] What will be displayed on the button or elsewhere as the inset label.
22094  Some inset types (
22095 \begin_inset Flex Code
22096 status collapsed
22097
22098 \begin_layout Plain Layout
22099 \SpecialChar TeX
22100  code
22101 \end_layout
22102
22103 \end_inset
22104
22105  and 
22106 \begin_inset Flex Code
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110 Branch
22111 \end_layout
22112
22113 \end_inset
22114
22115 ) modify this label on the fly.
22116 \end_layout
22117
22118 \begin_layout Description
22119 \begin_inset Flex Code
22120 status collapsed
22121
22122 \begin_layout Plain Layout
22123 LangPreamble
22124 \end_layout
22125
22126 \end_inset
22127
22128  Language dependent preamble;
22129  see 
22130 \begin_inset CommandInset ref
22131 LatexCommand ref
22132 reference "subsec:I18n"
22133 nolink "false"
22134
22135 \end_inset
22136
22137 .
22138 \end_layout
22139
22140 \begin_layout Description
22141 \begin_inset Flex Code
22142 status collapsed
22143
22144 \begin_layout Plain Layout
22145 LatexName
22146 \end_layout
22147
22148 \end_inset
22149
22150  [
22151 \begin_inset Flex Code
22152 status collapsed
22153
22154 \begin_layout Plain Layout
22155 <name>
22156 \end_layout
22157
22158 \end_inset
22159
22160 ] The name of the corresponding \SpecialChar LaTeX
22161  stuff.
22162  Either the environment or command name.
22163 \end_layout
22164
22165 \begin_layout Description
22166 \begin_inset Flex Code
22167 status collapsed
22168
22169 \begin_layout Plain Layout
22170 LatexParam
22171 \end_layout
22172
22173 \end_inset
22174
22175  [
22176 \begin_inset Flex Code
22177 status collapsed
22178
22179 \begin_layout Plain Layout
22180 <parameter>
22181 \end_layout
22182
22183 \end_inset
22184
22185 ] The optional parameter for the corresponding 
22186 \begin_inset Flex Code
22187 status collapsed
22188
22189 \begin_layout Plain Layout
22190 LatexName
22191 \end_layout
22192
22193 \end_inset
22194
22195  stuff,
22196  including possible bracket pairs like 
22197 \begin_inset Flex Code
22198 status collapsed
22199
22200 \begin_layout Plain Layout
22201 []
22202 \end_layout
22203
22204 \end_inset
22205
22206 .
22207  This parameter cannot be changed from within \SpecialChar LyX
22208  (use 
22209 \begin_inset Flex Code
22210 status collapsed
22211
22212 \begin_layout Plain Layout
22213 Argument
22214 \end_layout
22215
22216 \end_inset
22217
22218  for customizable parameters).
22219  It will be output as is after all \SpecialChar LaTeX
22220  
22221 \begin_inset Flex Code
22222 status collapsed
22223
22224 \begin_layout Plain Layout
22225 Argument
22226 \end_layout
22227
22228 \end_inset
22229
22230 s.
22231 \end_layout
22232
22233 \begin_layout Description
22234 \begin_inset Flex Code
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238 LatexType
22239 \end_layout
22240
22241 \end_inset
22242
22243  [
22244 \begin_inset Flex Code
22245 status collapsed
22246
22247 \begin_layout Plain Layout
22248 Command,
22249  Environment,
22250  None
22251 \end_layout
22252
22253 \end_inset
22254
22255 ] How the style should be translated into \SpecialChar LaTeX
22256 .
22257 \begin_inset Foot
22258 status collapsed
22259
22260 \begin_layout Plain Layout
22261 \begin_inset Flex Code
22262 status collapsed
22263
22264 \begin_layout Plain Layout
22265 LatexType
22266 \end_layout
22267
22268 \end_inset
22269
22270  is perhaps a bit misleading,
22271  since these rules apply to SGML classes too.
22272  Visit the SGML class files for specific examples.
22273 \end_layout
22274
22275 \end_inset
22276
22277
22278 \end_layout
22279
22280 \begin_deeper
22281 \begin_layout Description
22282 \begin_inset Flex Code
22283 status collapsed
22284
22285 \begin_layout Plain Layout
22286 None
22287 \end_layout
22288
22289 \end_inset
22290
22291  means nothing special
22292 \end_layout
22293
22294 \begin_layout Description
22295 \begin_inset Flex Code
22296 status collapsed
22297
22298 \begin_layout Plain Layout
22299 Command
22300 \end_layout
22301
22302 \end_inset
22303
22304  means 
22305 \begin_inset Flex Code
22306 status collapsed
22307
22308 \begin_layout Plain Layout
22309
22310 \backslash
22311
22312 \emph on
22313 LatexName
22314 \emph default
22315 {\SpecialChar ldots
22316 }
22317 \end_layout
22318
22319 \end_inset
22320
22321
22322 \end_layout
22323
22324 \begin_layout Description
22325 \begin_inset Flex Code
22326 status collapsed
22327
22328 \begin_layout Plain Layout
22329 Environment
22330 \end_layout
22331
22332 \end_inset
22333
22334  means 
22335 \begin_inset Flex Code
22336 status collapsed
22337
22338 \begin_layout Plain Layout
22339
22340 \backslash
22341 begin{
22342 \emph on
22343 LatexName
22344 \emph default
22345 }\SpecialChar ldots
22346
22347 \backslash
22348 end{
22349 \emph on
22350 LatexName
22351 \emph default
22352 }
22353 \end_layout
22354
22355 \end_inset
22356
22357
22358 \end_layout
22359
22360 \begin_layout Standard
22361 Putting the last few things together,
22362  the \SpecialChar LaTeX
22363  output will be either:
22364  
22365 \end_layout
22366
22367 \begin_layout LyX-Code
22368
22369 \backslash
22370 LatexName[LatexParam]{\SpecialChar ldots
22371 }
22372 \end_layout
22373
22374 \begin_layout Standard
22375 or:
22376  
22377 \end_layout
22378
22379 \begin_layout LyX-Code
22380
22381 \backslash
22382 begin{LatexName}[LatexParam] \SpecialChar ldots
22383  
22384 \backslash
22385 end{LatexName}
22386 \end_layout
22387
22388 \begin_layout Standard
22389 depending upon the \SpecialChar LaTeX
22390  type.
22391 \end_layout
22392
22393 \end_deeper
22394 \begin_layout Description
22395 \begin_inset Flex Code
22396 status collapsed
22397
22398 \begin_layout Plain Layout
22399 LeftDelim
22400 \end_layout
22401
22402 \end_inset
22403
22404  [
22405 \begin_inset Flex Code
22406 status collapsed
22407
22408 \begin_layout Plain Layout
22409 string
22410 \end_layout
22411
22412 \end_inset
22413
22414 ] A string that is put at the beginning of the layout content.
22415  A line break in the output can be indicated by 
22416 \begin_inset Flex Code
22417 status collapsed
22418
22419 \begin_layout Plain Layout
22420 <br/>
22421 \end_layout
22422
22423 \end_inset
22424
22425 .
22426 \end_layout
22427
22428 \begin_layout Description
22429 \begin_inset Flex Code
22430 status collapsed
22431
22432 \begin_layout Plain Layout
22433 LyxType
22434 \end_layout
22435
22436 \end_inset
22437
22438  Can be 
22439 \begin_inset Flex Code
22440 status collapsed
22441
22442 \begin_layout Plain Layout
22443 charstyle
22444 \end_layout
22445
22446 \end_inset
22447
22448 ,
22449  
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454 custom
22455 \end_layout
22456
22457 \end_inset
22458
22459 ,
22460  
22461 \change_deleted -584632292 1615846609
22462
22463 \begin_inset Flex Code
22464 status collapsed
22465
22466 \begin_layout Plain Layout
22467 element
22468 \end_layout
22469
22470 \end_inset
22471
22472  
22473 \change_unchanged
22474 or 
22475 \begin_inset Flex Code
22476 status collapsed
22477
22478 \begin_layout Plain Layout
22479 end
22480 \end_layout
22481
22482 \end_inset
22483
22484  (indicating a dummy definition ending definitions of charstyles,
22485  etc).
22486  This entry is required in and is only meaningful for Flex insets.
22487  Among other things,
22488  it determines on which menu this inset will appear.
22489  Setting 
22490 \begin_inset Flex Code
22491 status collapsed
22492
22493 \begin_layout Plain Layout
22494 LyxType
22495 \end_layout
22496
22497 \end_inset
22498
22499  to 
22500 \begin_inset Flex Code
22501 status collapsed
22502
22503 \begin_layout Plain Layout
22504 charstyle
22505 \end_layout
22506
22507 \end_inset
22508
22509  will automatically set 
22510 \begin_inset Flex Code
22511 status collapsed
22512
22513 \begin_layout Plain Layout
22514 MultiPar
22515 \end_layout
22516
22517 \end_inset
22518
22519  to false and 
22520 \begin_inset Flex Code
22521 status collapsed
22522
22523 \begin_layout Plain Layout
22524 ForcePlain
22525 \end_layout
22526
22527 \end_inset
22528
22529  to true.
22530  
22531 \begin_inset Flex Code
22532 status collapsed
22533
22534 \begin_layout Plain Layout
22535 MultiPar
22536 \end_layout
22537
22538 \end_inset
22539
22540  can be set to true,
22541  or 
22542 \begin_inset Flex Code
22543 status collapsed
22544
22545 \begin_layout Plain Layout
22546 ForcePlain
22547 \end_layout
22548
22549 \end_inset
22550
22551  to false,
22552  for 
22553 \begin_inset Flex Code
22554 status collapsed
22555
22556 \begin_layout Plain Layout
22557 charstyle
22558 \end_layout
22559
22560 \end_inset
22561
22562  insets by setting it 
22563 \emph on
22564 after
22565 \emph default
22566  you set the 
22567 \begin_inset Flex Code
22568 status collapsed
22569
22570 \begin_layout Plain Layout
22571 LyxType
22572 \end_layout
22573
22574 \end_inset
22575
22576 .
22577 \change_inserted -712698321 1555575738
22578
22579 \end_layout
22580
22581 \begin_layout Description
22582
22583 \change_inserted -712698321 1555575844
22584 \begin_inset Flex Code
22585 status collapsed
22586
22587 \begin_layout Plain Layout
22588
22589 \change_inserted -712698321 1555575740
22590 MenuString
22591 \change_unchanged
22592
22593 \end_layout
22594
22595 \end_inset
22596
22597  
22598 \begin_inset Flex Code
22599 status collapsed
22600
22601 \begin_layout Plain Layout
22602
22603 \change_inserted -712698321 1555575740
22604 [string]
22605 \change_unchanged
22606
22607 \end_layout
22608
22609 \end_inset
22610
22611  A dedicated string for the menu.
22612  You can define an accelerator by appending the respective character to the string,
22613  divided by 
22614 \begin_inset Quotes eld
22615 \end_inset
22616
22617 |
22618 \begin_inset Quotes erd
22619 \end_inset
22620
22621  (e.
22622 \begin_inset space \thinspace{}
22623 \end_inset
22624
22625 g.
22626 \begin_inset space \space{}
22627 \end_inset
22628
22629
22630 \begin_inset Quotes eld
22631 \end_inset
22632
22633
22634 \begin_inset Flex Code
22635 status collapsed
22636
22637 \begin_layout Plain Layout
22638
22639 \change_inserted -712698321 1555575781
22640 My Inset|M
22641 \change_unchanged
22642
22643 \end_layout
22644
22645 \end_inset
22646
22647
22648 \begin_inset Quotes erd
22649 \end_inset
22650
22651 ).
22652  This specification is optional.
22653  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
22654 \change_unchanged
22655
22656 \end_layout
22657
22658 \begin_layout Description
22659 \begin_inset Flex Code
22660 status collapsed
22661
22662 \begin_layout Plain Layout
22663 MultiPar
22664 \end_layout
22665
22666 \end_inset
22667
22668  [
22669 \begin_inset Flex Code
22670 status collapsed
22671
22672 \begin_layout Plain Layout
22673
22674 \emph on
22675 0
22676 \end_layout
22677
22678 \end_inset
22679
22680 ,
22681 \begin_inset space \thinspace{}
22682 \end_inset
22683
22684
22685 \begin_inset Flex Code
22686 status collapsed
22687
22688 \begin_layout Plain Layout
22689 1
22690 \end_layout
22691
22692 \end_inset
22693
22694 ] Whether multiple paragraphs are permitted in this inset.
22695  This will also set 
22696 \begin_inset Flex Code
22697 status collapsed
22698
22699 \begin_layout Plain Layout
22700 CustomPars
22701 \end_layout
22702
22703 \end_inset
22704
22705  to the same value and 
22706 \begin_inset Flex Code
22707 status collapsed
22708
22709 \begin_layout Plain Layout
22710 ForcePlain
22711 \end_layout
22712
22713 \end_inset
22714
22715  to the opposite value.
22716  These can be reset to other values,
22717  if they are used 
22718 \emph on
22719 after
22720 \emph default
22721  
22722 \begin_inset Flex Code
22723 status collapsed
22724
22725 \begin_layout Plain Layout
22726 MultiPar
22727 \end_layout
22728
22729 \end_inset
22730
22731 .
22732  Default is true.
22733 \end_layout
22734
22735 \begin_layout Description
22736 \begin_inset Flex Code
22737 status collapsed
22738
22739 \begin_layout Plain Layout
22740 NeedProtect
22741 \end_layout
22742
22743 \end_inset
22744
22745  [
22746 \begin_inset Flex Code
22747 status collapsed
22748
22749 \begin_layout Plain Layout
22750
22751 \emph on
22752 0
22753 \end_layout
22754
22755 \end_inset
22756
22757 ,
22758 \begin_inset space \thinspace{}
22759 \end_inset
22760
22761
22762 \begin_inset Flex Code
22763 status collapsed
22764
22765 \begin_layout Plain Layout
22766 1
22767 \end_layout
22768
22769 \end_inset
22770
22771 ] Whether fragile commands in this inset should be 
22772 \begin_inset Flex Code
22773 status collapsed
22774
22775 \begin_layout Plain Layout
22776
22777 \backslash
22778 protect
22779 \end_layout
22780
22781 \end_inset
22782
22783 'ed.
22784  (Note:
22785  This is 
22786 \emph on
22787 not
22788 \emph default
22789  whether the command should itself be protected.) Default is false.
22790 \change_inserted -712698321 1523633958
22791
22792 \end_layout
22793
22794 \begin_layout Description
22795
22796 \change_inserted -712698321 1552395786
22797 \begin_inset Flex Code
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801
22802 \change_inserted -712698321 1523633961
22803 NeedCProtect
22804 \change_unchanged
22805
22806 \end_layout
22807
22808 \end_inset
22809
22810  [
22811 \begin_inset Flex Code
22812 status collapsed
22813
22814 \begin_layout Plain Layout
22815
22816 \change_inserted -712698321 1523633958
22817
22818 \emph on
22819 0
22820 \change_unchanged
22821
22822 \end_layout
22823
22824 \end_inset
22825
22826 ,
22827 \begin_inset space \thinspace{}
22828 \end_inset
22829
22830
22831 \begin_inset Flex Code
22832 status collapsed
22833
22834 \begin_layout Plain Layout
22835
22836 \change_inserted -712698321 1523633958
22837 1
22838 \change_unchanged
22839
22840 \end_layout
22841
22842 \end_inset
22843
22844 ] This causes macros that contain this inset to be protected with 
22845 \begin_inset Flex Code
22846 status collapsed
22847
22848 \begin_layout Plain Layout
22849
22850 \change_inserted -712698321 1523634038
22851
22852 \backslash
22853 cprotect
22854 \change_unchanged
22855
22856 \end_layout
22857
22858 \end_inset
22859
22860  (cf.
22861  package 
22862 \family sans
22863 cprotect
22864 \family default
22865 ) if necessary and thus allows (some) verbatim stuff in macros.
22866  Default is false.
22867 \end_layout
22868
22869 \begin_layout Description
22870
22871 \change_inserted -712698321 1555579651
22872 \begin_inset Flex Code
22873 status collapsed
22874
22875 \begin_layout Plain Layout
22876
22877 \change_inserted -712698321 1552395787
22878 NeedMBoxProtect
22879 \change_unchanged
22880
22881 \end_layout
22882
22883 \end_inset
22884
22885  [
22886 \begin_inset Flex Code
22887 status collapsed
22888
22889 \begin_layout Plain Layout
22890
22891 \change_inserted -712698321 1552395787
22892
22893 \emph on
22894 0
22895 \change_unchanged
22896
22897 \end_layout
22898
22899 \end_inset
22900
22901 ,
22902 \begin_inset space \thinspace{}
22903 \end_inset
22904
22905
22906 \begin_inset Flex Code
22907 status collapsed
22908
22909 \begin_layout Plain Layout
22910
22911 \change_inserted -712698321 1552395787
22912 1
22913 \change_unchanged
22914
22915 \end_layout
22916
22917 \end_inset
22918
22919 ] Whether specific commands in this inset (such as 
22920 \begin_inset Flex Code
22921 status collapsed
22922
22923 \begin_layout Plain Layout
22924
22925 \change_inserted -712698321 1552395787
22926
22927 \backslash
22928 cite
22929 \change_unchanged
22930
22931 \end_layout
22932
22933 \end_inset
22934
22935  and 
22936 \begin_inset Flex Code
22937 status collapsed
22938
22939 \begin_layout Plain Layout
22940
22941 \change_inserted -712698321 1552395787
22942
22943 \backslash
22944 ref
22945 \change_unchanged
22946
22947 \end_layout
22948
22949 \end_inset
22950
22951 ) should be protected in an 
22952 \begin_inset Flex Code
22953 status collapsed
22954
22955 \begin_layout Plain Layout
22956
22957 \change_inserted -712698321 1552395787
22958
22959 \backslash
22960 mbox
22961 \change_unchanged
22962
22963 \end_layout
22964
22965 \end_inset
22966
22967 .
22968  This is particularly needed for insets that draw on 
22969 \family sans
22970 ulem
22971 \family default
22972  or 
22973 \family sans
22974 soul
22975 \family default
22976  commands which parse their content in complex ways.
22977  Default is false.
22978 \end_layout
22979
22980 \begin_layout Description
22981
22982 \change_inserted -712698321 1555579742
22983 \begin_inset Flex Code
22984 status collapsed
22985
22986 \begin_layout Plain Layout
22987
22988 \change_inserted -712698321 1555579658
22989 NewlineCmd
22990 \change_unchanged
22991
22992 \end_layout
22993
22994 \end_inset
22995
22996  
22997 \begin_inset Flex Code
22998 status collapsed
22999
23000 \begin_layout Plain Layout
23001
23002 \change_inserted -712698321 1555579651
23003 [string]
23004 \change_unchanged
23005
23006 \end_layout
23007
23008 \end_inset
23009
23010  Option to define a different command (from the default 
23011 \begin_inset Flex Code
23012 status collapsed
23013
23014 \begin_layout Plain Layout
23015
23016 \change_inserted -712698321 1555579742
23017
23018 \backslash
23019
23020 \backslash
23021
23022 \change_unchanged
23023
23024 \end_layout
23025
23026 \end_inset
23027
23028 ) to be used for line breaks.
23029  The initial backslash must not be specified.
23030 \change_unchanged
23031
23032 \end_layout
23033
23034 \begin_layout Description
23035 \begin_inset Flex Code
23036 status collapsed
23037
23038 \begin_layout Plain Layout
23039 NoInsetLayout
23040 \end_layout
23041
23042 \end_inset
23043
23044  [
23045 \begin_inset Flex Code
23046 status collapsed
23047
23048 \begin_layout Plain Layout
23049 <layout>
23050 \end_layout
23051
23052 \end_inset
23053
23054 ] Deletes an existing 
23055 \begin_inset Flex Code
23056 status collapsed
23057
23058 \begin_layout Plain Layout
23059 InsetLayout
23060 \end_layout
23061
23062 \end_inset
23063
23064 .
23065 \end_layout
23066
23067 \begin_layout Description
23068 \begin_inset Flex Code
23069 status collapsed
23070
23071 \begin_layout Plain Layout
23072 ObsoletedBy
23073 \end_layout
23074
23075 \end_inset
23076
23077  [
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 <layout>
23083 \end_layout
23084
23085 \end_inset
23086
23087 ] Name of an 
23088 \begin_inset Flex Code
23089 status collapsed
23090
23091 \begin_layout Plain Layout
23092 InsetLayout
23093 \end_layout
23094
23095 \end_inset
23096
23097  that has replaced this 
23098 \begin_inset Flex Code
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102 InsetLayout
23103 \end_layout
23104
23105 \end_inset
23106
23107 .
23108  This is used to rename an 
23109 \begin_inset Flex Code
23110 status collapsed
23111
23112 \begin_layout Plain Layout
23113 InsetLayout
23114 \end_layout
23115
23116 \end_inset
23117
23118 ,
23119  while keeping backward compatibility.
23120 \change_inserted -712698321 1559491850
23121
23122 \end_layout
23123
23124 \begin_layout Description
23125
23126 \change_inserted -712698321 1559492002
23127 \begin_inset Flex Code
23128 status collapsed
23129
23130 \begin_layout Plain Layout
23131
23132 \change_inserted -712698321 1559491854
23133 ParbreakIgnored
23134 \change_unchanged
23135
23136 \end_layout
23137
23138 \end_inset
23139
23140  [
23141 \begin_inset Flex Code
23142 status collapsed
23143
23144 \begin_layout Plain Layout
23145
23146 \change_inserted -712698321 1559491850
23147
23148 \emph on
23149 0
23150 \change_unchanged
23151
23152 \end_layout
23153
23154 \end_inset
23155
23156 ,
23157 \begin_inset space \thinspace{}
23158 \end_inset
23159
23160
23161 \begin_inset Flex Code
23162 status collapsed
23163
23164 \begin_layout Plain Layout
23165
23166 \change_inserted -712698321 1559491850
23167 1
23168 \change_unchanged
23169
23170 \end_layout
23171
23172 \end_inset
23173
23174 ] If this is set to 
23175 \begin_inset Flex Code
23176 status collapsed
23177
23178 \begin_layout Plain Layout
23179
23180 \change_inserted -712698321 1559491881
23181 1
23182 \change_unchanged
23183
23184 \end_layout
23185
23186 \end_inset
23187
23188 ,
23189  paragraph breaks will be ignored in the output.
23190  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
23191  workarea,
23192  without any effect in the output.
23193 \change_unchanged
23194
23195 \end_layout
23196
23197 \begin_layout Description
23198 \begin_inset Flex Code
23199 status collapsed
23200
23201 \begin_layout Plain Layout
23202 ParbreakIsNewline
23203 \end_layout
23204
23205 \end_inset
23206
23207  [
23208 \begin_inset Flex Code
23209 status collapsed
23210
23211 \begin_layout Plain Layout
23212
23213 \emph on
23214 0
23215 \end_layout
23216
23217 \end_inset
23218
23219 ,
23220 \begin_inset space \thinspace{}
23221 \end_inset
23222
23223
23224 \begin_inset Flex Code
23225 status collapsed
23226
23227 \begin_layout Plain Layout
23228 1
23229 \end_layout
23230
23231 \end_inset
23232
23233 ] As with paragraph styles,
23234  see 
23235 \begin_inset CommandInset ref
23236 LatexCommand ref
23237 reference "subsec:Paragraph-Styles"
23238 nolink "false"
23239
23240 \end_inset
23241
23242 .
23243  Default is false.
23244 \end_layout
23245
23246 \begin_layout Description
23247 \begin_inset Flex Code
23248 status collapsed
23249
23250 \begin_layout Plain Layout
23251 PassThru
23252 \end_layout
23253
23254 \end_inset
23255
23256  [
23257 \begin_inset Flex Code
23258 status collapsed
23259
23260 \begin_layout Plain Layout
23261
23262 \emph on
23263 0
23264 \end_layout
23265
23266 \end_inset
23267
23268 ,
23269 \begin_inset space \thinspace{}
23270 \end_inset
23271
23272
23273 \begin_inset Flex Code
23274 status collapsed
23275
23276 \begin_layout Plain Layout
23277 1
23278 \end_layout
23279
23280 \end_inset
23281
23282 ] As with paragraph styles,
23283  see 
23284 \begin_inset CommandInset ref
23285 LatexCommand ref
23286 reference "subsec:Paragraph-Styles"
23287 nolink "false"
23288
23289 \end_inset
23290
23291 .
23292  Default is false.
23293 \end_layout
23294
23295 \begin_layout Description
23296 \begin_inset Flex Code
23297 status collapsed
23298
23299 \begin_layout Plain Layout
23300 Preamble
23301 \end_layout
23302
23303 \end_inset
23304
23305  As with paragraph styles,
23306  see 
23307 \begin_inset CommandInset ref
23308 LatexCommand ref
23309 reference "subsec:Paragraph-Styles"
23310 nolink "false"
23311
23312 \end_inset
23313
23314 .
23315 \end_layout
23316
23317 \begin_layout Description
23318 \begin_inset Flex Code
23319 status collapsed
23320
23321 \begin_layout Plain Layout
23322 RefPrefix
23323 \end_layout
23324
23325 \end_inset
23326
23327  [
23328 \begin_inset Flex Code
23329 status collapsed
23330
23331 \begin_layout Plain Layout
23332 string
23333 \end_layout
23334
23335 \end_inset
23336
23337 ] The prefix to use when creating labels referring to insets of this type.
23338  This allows the use of formatted references.
23339 \end_layout
23340
23341 \begin_layout Description
23342 \begin_inset Flex Code
23343 status collapsed
23344
23345 \begin_layout Plain Layout
23346 Requires
23347 \end_layout
23348
23349 \end_inset
23350
23351  [
23352 \begin_inset Flex Code
23353 status collapsed
23354
23355 \begin_layout Plain Layout
23356 string
23357 \end_layout
23358
23359 \end_inset
23360
23361 ] As with paragraph styles,
23362  see 
23363 \begin_inset CommandInset ref
23364 LatexCommand ref
23365 reference "subsec:Paragraph-Styles"
23366 nolink "false"
23367
23368 \end_inset
23369
23370 .
23371 \end_layout
23372
23373 \begin_layout Description
23374 \begin_inset Flex Code
23375 status collapsed
23376
23377 \begin_layout Plain Layout
23378 ResetArgs
23379 \end_layout
23380
23381 \end_inset
23382
23383  [
23384 \begin_inset Flex Code
23385 status collapsed
23386
23387 \begin_layout Plain Layout
23388
23389 \emph on
23390 0
23391 \end_layout
23392
23393 \end_inset
23394
23395 ,
23396 \begin_inset space \thinspace{}
23397 \end_inset
23398
23399
23400 \begin_inset Flex Code
23401 status collapsed
23402
23403 \begin_layout Plain Layout
23404 1
23405 \end_layout
23406
23407 \end_inset
23408
23409 ] Resets the \SpecialChar LaTeX
23410  arguments of this layout (as defined via the 
23411 \begin_inset Flex Code
23412 status collapsed
23413
23414 \begin_layout Plain Layout
23415 Argument
23416 \end_layout
23417
23418 \end_inset
23419
23420  tag).
23421  This is useful if you have copied a style via 
23422 \begin_inset Flex Code
23423 status collapsed
23424
23425 \begin_layout Plain Layout
23426 CopyStyle
23427 \end_layout
23428
23429 \end_inset
23430
23431 ,
23432  but you do not want to inherit its (required and optional) arguments.
23433 \end_layout
23434
23435 \begin_layout Description
23436 \begin_inset Flex Code
23437 status collapsed
23438
23439 \begin_layout Plain Layout
23440 ResetsFont
23441 \end_layout
23442
23443 \end_inset
23444
23445  [
23446 \begin_inset Flex Code
23447 status collapsed
23448
23449 \begin_layout Plain Layout
23450
23451 \emph on
23452 0
23453 \end_layout
23454
23455 \end_inset
23456
23457 ,
23458 \begin_inset space \thinspace{}
23459 \end_inset
23460
23461
23462 \begin_inset Flex Code
23463 status collapsed
23464
23465 \begin_layout Plain Layout
23466 1
23467 \end_layout
23468
23469 \end_inset
23470
23471
23472 \change_inserted -712698321 1597733473
23473 If 
23474 \begin_inset Flex Code
23475 status collapsed
23476
23477 \begin_layout Plain Layout
23478
23479 \change_inserted -712698321 1597732178
23480 1
23481 \change_unchanged
23482
23483 \end_layout
23484
23485 \end_inset
23486
23487 ,
23488  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.
23489 \begin_inset space \thinspace{}
23490 \end_inset
23491
23492 g.,
23493  
23494 \begin_inset Flex Code
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498
23499 \change_inserted -712698321 1597733683
23500
23501 \backslash
23502 textbf{Sourrounding text 
23503 \backslash
23504 myinset{
23505 \backslash
23506 textbf{content}}\SpecialChar ldots
23507 }
23508 \change_unchanged
23509
23510 \end_layout
23511
23512 \end_inset
23513
23514  rather than 
23515 \begin_inset Flex Code
23516 status collapsed
23517
23518 \begin_layout Plain Layout
23519
23520 \change_inserted -712698321 1597733686
23521
23522 \backslash
23523 textbf{Sourrounding text 
23524 \backslash
23525 myinset{content}\SpecialChar ldots
23526 }
23527 \change_unchanged
23528
23529 \end_layout
23530
23531 \end_inset
23532
23533 .
23534  Setting this makes sense for commands that internally reset font settings (e.
23535 \begin_inset space \thinspace{}
23536 \end_inset
23537
23538 g.,
23539  footnotes).
23540  Note that wrongly setting this might lead to unwanted result (e.
23541 \begin_inset space \thinspace{}
23542 \end_inset
23543
23544 g.,
23545  with 
23546 \begin_inset Flex Code
23547 status collapsed
23548
23549 \begin_layout Plain Layout
23550
23551 \change_inserted -712698321 1597733688
23552
23553 \backslash
23554 emph{Sourrounding text 
23555 \backslash
23556 myinset{
23557 \backslash
23558 emph{content}}\SpecialChar ldots
23559 }
23560 \change_unchanged
23561
23562 \end_layout
23563
23564 \end_inset
23565
23566 ,
23567  content is upright,
23568  as 
23569 \begin_inset Flex Code
23570 status collapsed
23571
23572 \begin_layout Plain Layout
23573
23574 \change_inserted -712698321 1597733278
23575
23576 \backslash
23577 emph
23578 \change_unchanged
23579
23580 \end_layout
23581
23582 \end_inset
23583
23584  toggles.
23585  
23586 \change_deleted -712698321 1597733283
23587 Whether this inset should use the font of its surrounding environment or uses its own.
23588  
23589 \change_unchanged
23590 Default is 
23591 \change_deleted -712698321 1597733290
23592 false
23593 \change_inserted -712698321 1597733290
23594
23595 \begin_inset Flex Code
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599
23600 \change_inserted -712698321 1597733292
23601 0
23602 \change_unchanged
23603
23604 \end_layout
23605
23606 \end_inset
23607
23608
23609 \change_unchanged
23610 :
23611  
23612 \change_deleted -712698321 1597733327
23613 use the font of the surrounding environment
23614 \change_inserted -712698321 1597733343
23615 font changes are not redone inside the inset
23616 \change_unchanged
23617 .
23618 \end_layout
23619
23620 \begin_layout Description
23621 \begin_inset Flex Code
23622 status collapsed
23623
23624 \begin_layout Plain Layout
23625 RightDelim
23626 \end_layout
23627
23628 \end_inset
23629
23630  [
23631 \begin_inset Flex Code
23632 status collapsed
23633
23634 \begin_layout Plain Layout
23635 string
23636 \end_layout
23637
23638 \end_inset
23639
23640 ] A string that is put at the end of the layout content.
23641  A line break in the output can be indicated by 
23642 \begin_inset Flex Code
23643 status collapsed
23644
23645 \begin_layout Plain Layout
23646 <br/>
23647 \end_layout
23648
23649 \end_inset
23650
23651 .
23652 \end_layout
23653
23654 \begin_layout Description
23655 \begin_inset Flex Code
23656 status collapsed
23657
23658 \begin_layout Plain Layout
23659 Spellcheck
23660 \end_layout
23661
23662 \end_inset
23663
23664  [
23665 \begin_inset Flex Code
23666 status collapsed
23667
23668 \begin_layout Plain Layout
23669 0
23670 \end_layout
23671
23672 \end_inset
23673
23674 ,
23675 \begin_inset space \thinspace{}
23676 \end_inset
23677
23678
23679 \begin_inset Flex Code
23680 status collapsed
23681
23682 \begin_layout Plain Layout
23683
23684 \emph on
23685 1
23686 \end_layout
23687
23688 \end_inset
23689
23690 ] Allow spell-checking the contents of this inset.
23691  Default is true.
23692 \change_inserted -584632292 1615846659
23693
23694 \end_layout
23695
23696 \begin_layout Subsection
23697
23698 \change_inserted -584632292 1615846729
23699 Arguments
23700 \begin_inset CommandInset label
23701 LatexCommand label
23702 name "subsec:Arguments"
23703
23704 \end_inset
23705
23706
23707 \end_layout
23708
23709 \begin_layout Standard
23710
23711 \change_inserted -584632292 1615846807
23712 Both paragraph styles and inset layouts allow for 
23713 \emph on
23714 arguments
23715 \emph default
23716  as well as the main content.
23717  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
23718 .
23719  Each (optional or required) argument of a command or environment—
23720 except for the required argument that is associated with the content—
23721 has a separate definition,
23722  where the number specifies the order of the arguments.
23723  The definition must end with 
23724 \begin_inset Flex Code
23725 status collapsed
23726
23727 \begin_layout Plain Layout
23728
23729 \change_inserted -584632292 1615846730
23730 EndArgument
23731 \change_unchanged
23732
23733 \end_layout
23734
23735 \end_inset
23736
23737 .
23738  So a command with two optional arguments looks like:
23739 \end_layout
23740
23741 \begin_layout Quote
23742
23743 \change_inserted -584632292 1615846730
23744
23745 \family typewriter
23746 Argument 1
23747 \end_layout
23748
23749 \begin_layout Quote
23750
23751 \change_inserted -584632292 1615846730
23752
23753 \family typewriter
23754 ...
23755 \end_layout
23756
23757 \begin_layout Quote
23758
23759 \change_inserted -584632292 1615846730
23760
23761 \family typewriter
23762 EndArgument
23763 \end_layout
23764
23765 \begin_layout Quote
23766
23767 \change_inserted -584632292 1615846730
23768
23769 \family typewriter
23770 Argument 2
23771 \end_layout
23772
23773 \begin_layout Quote
23774
23775 \change_inserted -584632292 1615846730
23776
23777 \family typewriter
23778 ...
23779 \end_layout
23780
23781 \begin_layout Quote
23782
23783 \change_inserted -584632292 1615846730
23784
23785 \family typewriter
23786 EndArgument
23787 \end_layout
23788
23789 \begin_layout Standard
23790
23791 \change_inserted -584632292 1615846730
23792 Inside the 
23793 \begin_inset Flex Code
23794 status collapsed
23795
23796 \begin_layout Plain Layout
23797
23798 \change_inserted -584632292 1615846730
23799 Argument
23800 \change_unchanged
23801
23802 \end_layout
23803
23804 \end_inset
23805
23806  definition,
23807  the following specifications are possible:
23808 \end_layout
23809
23810 \begin_layout Itemize
23811
23812 \change_inserted -584632292 1615846730
23813 \begin_inset Flex Code
23814 status collapsed
23815
23816 \begin_layout Plain Layout
23817
23818 \change_inserted -584632292 1615846730
23819 LabelString
23820 \change_unchanged
23821
23822 \end_layout
23823
23824 \end_inset
23825
23826  
23827 \begin_inset Flex Code
23828 status collapsed
23829
23830 \begin_layout Plain Layout
23831
23832 \change_inserted -584632292 1615846730
23833 [string]
23834 \change_unchanged
23835
23836 \end_layout
23837
23838 \end_inset
23839
23840  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 
23841 \begin_inset Flex Code
23842 status collapsed
23843
23844 \begin_layout Plain Layout
23845
23846 \change_inserted -584632292 1615846730
23847 MenuString
23848 \change_unchanged
23849
23850 \end_layout
23851
23852 \end_inset
23853
23854 ).
23855  For the menu,
23856  you can define an accelerator by appending the respective character to the string,
23857  divided by 
23858 \begin_inset Quotes eld
23859 \end_inset
23860
23861 |
23862 \begin_inset Quotes erd
23863 \end_inset
23864
23865  (e.
23866 \begin_inset space \thinspace{}
23867 \end_inset
23868
23869 g.
23870 \begin_inset space \space{}
23871 \end_inset
23872
23873
23874 \begin_inset Quotes eld
23875 \end_inset
23876
23877
23878 \begin_inset Flex Code
23879 status collapsed
23880
23881 \begin_layout Plain Layout
23882
23883 \change_inserted -584632292 1615846730
23884 Short Title|S
23885 \change_unchanged
23886
23887 \end_layout
23888
23889 \end_inset
23890
23891
23892 \begin_inset Quotes erd
23893 \end_inset
23894
23895 ).
23896 \end_layout
23897
23898 \begin_layout Itemize
23899
23900 \change_inserted -584632292 1615846730
23901 \begin_inset Flex Code
23902 status collapsed
23903
23904 \begin_layout Plain Layout
23905
23906 \change_inserted -584632292 1615846730
23907 MenuString
23908 \change_unchanged
23909
23910 \end_layout
23911
23912 \end_inset
23913
23914  
23915 \begin_inset Flex Code
23916 status collapsed
23917
23918 \begin_layout Plain Layout
23919
23920 \change_inserted -584632292 1615846730
23921 [string]
23922 \change_unchanged
23923
23924 \end_layout
23925
23926 \end_inset
23927
23928  A separate string for the menu.
23929  You can define an accelerator by appending the respective character to the string,
23930  divided by 
23931 \begin_inset Quotes eld
23932 \end_inset
23933
23934 |
23935 \begin_inset Quotes erd
23936 \end_inset
23937
23938  (e.
23939 \begin_inset space \thinspace{}
23940 \end_inset
23941
23942 g.
23943 \begin_inset space \space{}
23944 \end_inset
23945
23946
23947 \begin_inset Quotes eld
23948 \end_inset
23949
23950
23951 \begin_inset Flex Code
23952 status collapsed
23953
23954 \begin_layout Plain Layout
23955
23956 \change_inserted -584632292 1615846730
23957 Short Title|S
23958 \change_unchanged
23959
23960 \end_layout
23961
23962 \end_inset
23963
23964
23965 \begin_inset Quotes erd
23966 \end_inset
23967
23968 ).
23969  This specification is optional.
23970  If it is not given the 
23971 \begin_inset Flex Code
23972 status collapsed
23973
23974 \begin_layout Plain Layout
23975
23976 \change_inserted -584632292 1615846730
23977 LabelString
23978 \change_unchanged
23979
23980 \end_layout
23981
23982 \end_inset
23983
23984  will be used instead for the menu.
23985 \end_layout
23986
23987 \begin_layout Itemize
23988
23989 \change_inserted -584632292 1615846730
23990 \begin_inset Flex Code
23991 status collapsed
23992
23993 \begin_layout Plain Layout
23994
23995 \change_inserted -584632292 1615846730
23996 Tooltip
23997 \change_unchanged
23998
23999 \end_layout
24000
24001 \end_inset
24002
24003  
24004 \begin_inset Flex Code
24005 status collapsed
24006
24007 \begin_layout Plain Layout
24008
24009 \change_inserted -584632292 1615846730
24010 [string]
24011 \change_unchanged
24012
24013 \end_layout
24014
24015 \end_inset
24016
24017  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
24018 \end_layout
24019
24020 \begin_layout Itemize
24021
24022 \change_inserted -584632292 1615846730
24023 \begin_inset Flex Code
24024 status collapsed
24025
24026 \begin_layout Plain Layout
24027
24028 \change_inserted -584632292 1615846730
24029 Mandatory
24030 \change_unchanged
24031
24032 \end_layout
24033
24034 \end_inset
24035
24036  [
24037 \begin_inset Flex Code
24038 status collapsed
24039
24040 \begin_layout Plain Layout
24041
24042 \change_inserted -584632292 1615846730
24043
24044 \emph on
24045 0
24046 \change_unchanged
24047
24048 \end_layout
24049
24050 \end_inset
24051
24052 ,
24053 \begin_inset space \thinspace{}
24054 \end_inset
24055
24056
24057 \begin_inset Flex Code
24058 status collapsed
24059
24060 \begin_layout Plain Layout
24061
24062 \change_inserted -584632292 1615846730
24063 1
24064 \change_unchanged
24065
24066 \end_layout
24067
24068 \end_inset
24069
24070 ] Declare if this is a mandatory (1) or an optional (0) argument.
24071  Mandatory arguments will be output empty if not given,
24072  while optional arguments will not be output at all.
24073  By default,
24074  mandatory arguments are delimited by 
24075 \begin_inset Flex Code
24076 status collapsed
24077
24078 \begin_layout Plain Layout
24079
24080 \change_inserted -584632292 1615846730
24081 {...}
24082 \change_unchanged
24083
24084 \end_layout
24085
24086 \end_inset
24087
24088 ,
24089  while optional arguments are delimited by 
24090 \begin_inset Flex Code
24091 status collapsed
24092
24093 \begin_layout Plain Layout
24094
24095 \change_inserted -584632292 1615846730
24096 [...]
24097 \change_unchanged
24098
24099 \end_layout
24100
24101 \end_inset
24102
24103
24104 \end_layout
24105
24106 \begin_layout Itemize
24107
24108 \change_inserted -584632292 1615846730
24109 \begin_inset Flex Code
24110 status collapsed
24111
24112 \begin_layout Plain Layout
24113
24114 \change_inserted -584632292 1615846730
24115 NewlineCmd
24116 \change_unchanged
24117
24118 \end_layout
24119
24120 \end_inset
24121
24122  
24123 \begin_inset Flex Code
24124 status collapsed
24125
24126 \begin_layout Plain Layout
24127
24128 \change_inserted -584632292 1615846730
24129 [string]
24130 \change_unchanged
24131
24132 \end_layout
24133
24134 \end_inset
24135
24136  Option to define a different command (from the default 
24137 \begin_inset Flex Code
24138 status collapsed
24139
24140 \begin_layout Plain Layout
24141
24142 \change_inserted -584632292 1615846730
24143
24144 \backslash
24145
24146 \backslash
24147
24148 \change_unchanged
24149
24150 \end_layout
24151
24152 \end_inset
24153
24154 ) to be used for line breaks.
24155  The initial backslash must not be specified.
24156 \end_layout
24157
24158 \begin_layout Itemize
24159
24160 \change_inserted -584632292 1615846730
24161 \begin_inset Flex Code
24162 status collapsed
24163
24164 \begin_layout Plain Layout
24165
24166 \change_inserted -584632292 1615846730
24167 Requires
24168 \change_unchanged
24169
24170 \end_layout
24171
24172 \end_inset
24173
24174  
24175 \begin_inset Flex Code
24176 status collapsed
24177
24178 \begin_layout Plain Layout
24179
24180 \change_inserted -584632292 1615846730
24181 [int=0]
24182 \change_unchanged
24183
24184 \end_layout
24185
24186 \end_inset
24187
24188  defines another argument (by its number) which this argument requires to be output if it is itself output.
24189  E.
24190 \begin_inset space \thinspace{}
24191 \end_inset
24192
24193 g.,
24194  in \SpecialChar LaTeX
24195  commands,
24196  optional arguments often require previous optional arguments to be output (at least empty),
24197  as in 
24198 \begin_inset Flex Code
24199 status collapsed
24200
24201 \begin_layout Plain Layout
24202
24203 \change_inserted -584632292 1615846730
24204
24205 \backslash
24206 command[][argument]{text}
24207 \change_unchanged
24208
24209 \end_layout
24210
24211 \end_inset
24212
24213 .
24214  This can be achieved by the statement 
24215 \begin_inset Flex Code
24216 status collapsed
24217
24218 \begin_layout Plain Layout
24219
24220 \change_inserted -584632292 1615846730
24221 Requires 1
24222 \change_unchanged
24223
24224 \end_layout
24225
24226 \end_inset
24227
24228  within 
24229 \begin_inset Flex Code
24230 status collapsed
24231
24232 \begin_layout Plain Layout
24233
24234 \change_inserted -584632292 1615846730
24235 Argument 2
24236 \change_unchanged
24237
24238 \end_layout
24239
24240 \end_inset
24241
24242 .
24243 \end_layout
24244
24245 \begin_layout Itemize
24246
24247 \change_inserted -584632292 1615846730
24248 \begin_inset Flex Code
24249 status collapsed
24250
24251 \begin_layout Plain Layout
24252
24253 \change_inserted -584632292 1615846730
24254 LeftDelim
24255 \change_unchanged
24256
24257 \end_layout
24258
24259 \end_inset
24260
24261  
24262 \begin_inset Flex Code
24263 status collapsed
24264
24265 \begin_layout Plain Layout
24266
24267 \change_inserted -584632292 1615846730
24268 [string]
24269 \change_unchanged
24270
24271 \end_layout
24272
24273 \end_inset
24274
24275  defines a custom left delimiter (instead of 
24276 \begin_inset Flex Code
24277 status collapsed
24278
24279 \begin_layout Plain Layout
24280
24281 \change_inserted -584632292 1615846730
24282 {
24283 \change_unchanged
24284
24285 \end_layout
24286
24287 \end_inset
24288
24289  or 
24290 \begin_inset Flex Code
24291 status collapsed
24292
24293 \begin_layout Plain Layout
24294
24295 \change_inserted -584632292 1615846730
24296 [
24297 \change_unchanged
24298
24299 \end_layout
24300
24301 \end_inset
24302
24303 ).
24304  A line break in the output can be indicated by 
24305 \begin_inset Flex Code
24306 status collapsed
24307
24308 \begin_layout Plain Layout
24309
24310 \change_inserted -584632292 1615846730
24311 <br/>
24312 \change_unchanged
24313
24314 \end_layout
24315
24316 \end_inset
24317
24318 .
24319 \end_layout
24320
24321 \begin_layout Itemize
24322
24323 \change_inserted -584632292 1615846730
24324 \begin_inset Flex Code
24325 status collapsed
24326
24327 \begin_layout Plain Layout
24328
24329 \change_inserted -584632292 1615846730
24330 RightDelim
24331 \change_unchanged
24332
24333 \end_layout
24334
24335 \end_inset
24336
24337  
24338 \begin_inset Flex Code
24339 status collapsed
24340
24341 \begin_layout Plain Layout
24342
24343 \change_inserted -584632292 1615846730
24344 [string]
24345 \change_unchanged
24346
24347 \end_layout
24348
24349 \end_inset
24350
24351  defines a custom right delimiter (instead of 
24352 \begin_inset Flex Code
24353 status collapsed
24354
24355 \begin_layout Plain Layout
24356
24357 \change_inserted -584632292 1615846730
24358 }
24359 \change_unchanged
24360
24361 \end_layout
24362
24363 \end_inset
24364
24365  or 
24366 \begin_inset Flex Code
24367 status collapsed
24368
24369 \begin_layout Plain Layout
24370
24371 \change_inserted -584632292 1615846730
24372 ]
24373 \change_unchanged
24374
24375 \end_layout
24376
24377 \end_inset
24378
24379 ).
24380  A line break in the output can be indicated by 
24381 \begin_inset Flex Code
24382 status collapsed
24383
24384 \begin_layout Plain Layout
24385
24386 \change_inserted -584632292 1615846730
24387 <br/>
24388 \change_unchanged
24389
24390 \end_layout
24391
24392 \end_inset
24393
24394 .
24395 \end_layout
24396
24397 \begin_layout Itemize
24398
24399 \change_inserted -584632292 1615846730
24400 \begin_inset Flex Code
24401 status collapsed
24402
24403 \begin_layout Plain Layout
24404
24405 \change_inserted -584632292 1615846730
24406 DefaultArg
24407 \change_unchanged
24408
24409 \end_layout
24410
24411 \end_inset
24412
24413  
24414 \begin_inset Flex Code
24415 status collapsed
24416
24417 \begin_layout Plain Layout
24418
24419 \change_inserted -584632292 1615846730
24420 [string]
24421 \change_unchanged
24422
24423 \end_layout
24424
24425 \end_inset
24426
24427  defines an argument that is inserted if and only if no user-specified arguments were given,
24428  i.
24429 \begin_inset space \thinspace{}
24430 \end_inset
24431
24432 e.
24433 \begin_inset space \space{}
24434 \end_inset
24435
24436 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
24437  Multiple arguments need to be separated by comma.
24438 \end_layout
24439
24440 \begin_layout Itemize
24441
24442 \change_inserted -584632292 1615846730
24443 \begin_inset Flex Code
24444 status collapsed
24445
24446 \begin_layout Plain Layout
24447
24448 \change_inserted -584632292 1615846730
24449 PresetArg
24450 \change_unchanged
24451
24452 \end_layout
24453
24454 \end_inset
24455
24456  
24457 \begin_inset Flex Code
24458 status collapsed
24459
24460 \begin_layout Plain Layout
24461
24462 \change_inserted -584632292 1615846730
24463 [string]
24464 \change_unchanged
24465
24466 \end_layout
24467
24468 \end_inset
24469
24470  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
24471  Multiple arguments need to be separated by comma.
24472 \end_layout
24473
24474 \begin_layout Itemize
24475
24476 \change_inserted -584632292 1615846730
24477 \begin_inset Flex Code
24478 status collapsed
24479
24480 \begin_layout Plain Layout
24481
24482 \change_inserted -584632292 1615846730
24483 Font
24484 \change_unchanged
24485
24486 \end_layout
24487
24488 \end_inset
24489
24490  The font used for the argument content,
24491  see 
24492 \begin_inset CommandInset ref
24493 LatexCommand ref
24494 reference "subsec:Font-description"
24495 nolink "false"
24496
24497 \end_inset
24498
24499 .
24500 \end_layout
24501
24502 \begin_layout Itemize
24503
24504 \change_inserted -584632292 1615846730
24505 \begin_inset Flex Code
24506 status collapsed
24507
24508 \begin_layout Plain Layout
24509
24510 \change_inserted -584632292 1615846730
24511 FreeSpacing
24512 \change_unchanged
24513
24514 \end_layout
24515
24516 \end_inset
24517
24518  [
24519 \begin_inset Flex Code
24520 status collapsed
24521
24522 \begin_layout Plain Layout
24523
24524 \change_inserted -584632292 1615846730
24525
24526 \emph on
24527 0
24528 \change_unchanged
24529
24530 \end_layout
24531
24532 \end_inset
24533
24534 ,
24535 \begin_inset space \thinspace{}
24536 \end_inset
24537
24538
24539 \begin_inset Flex Code
24540 status collapsed
24541
24542 \begin_layout Plain Layout
24543
24544 \change_inserted -584632292 1615846730
24545 1
24546 \change_unchanged
24547
24548 \end_layout
24549
24550 \end_inset
24551
24552 ] As with paragraph styles,
24553  see 
24554 \begin_inset CommandInset ref
24555 LatexCommand ref
24556 reference "subsec:Paragraph-Styles"
24557 nolink "false"
24558
24559 \end_inset
24560
24561 .
24562 \end_layout
24563
24564 \begin_layout Itemize
24565
24566 \change_inserted -584632292 1615846730
24567 \begin_inset Flex Code
24568 status collapsed
24569
24570 \begin_layout Plain Layout
24571
24572 \change_inserted -584632292 1615846730
24573 LabelFont
24574 \change_unchanged
24575
24576 \end_layout
24577
24578 \end_inset
24579
24580  The font used for the label;
24581  see 
24582 \begin_inset CommandInset ref
24583 LatexCommand ref
24584 reference "subsec:Font-description"
24585 nolink "false"
24586
24587 \end_inset
24588
24589 .
24590 \end_layout
24591
24592 \begin_layout Itemize
24593
24594 \change_inserted -584632292 1615846730
24595 \begin_inset Flex Code
24596 status collapsed
24597
24598 \begin_layout Plain Layout
24599
24600 \change_inserted -584632292 1615846730
24601 Decoration
24602 \change_unchanged
24603
24604 \end_layout
24605
24606 \end_inset
24607
24608  [
24609 \begin_inset Flex Code
24610 status collapsed
24611
24612 \begin_layout Plain Layout
24613
24614 \change_inserted -584632292 1615846730
24615
24616 \emph on
24617 Classic
24618 \emph default
24619 ,
24620  Minimalistic,
24621  Conglomerate
24622 \change_unchanged
24623
24624 \end_layout
24625
24626 \end_inset
24627
24628 ] describes the rendering style used for the inset's frame and buttons.
24629 \end_layout
24630
24631 \begin_layout Itemize
24632
24633 \change_inserted -584632292 1615846730
24634 \begin_inset Flex Code
24635 status collapsed
24636
24637 \begin_layout Plain Layout
24638
24639 \change_inserted -584632292 1615846730
24640 AutoInsert
24641 \change_unchanged
24642
24643 \end_layout
24644
24645 \end_inset
24646
24647  
24648 \begin_inset Flex Code
24649 status collapsed
24650
24651 \begin_layout Plain Layout
24652
24653 \change_inserted -584632292 1615846730
24654 [int=0]
24655 \change_unchanged
24656
24657 \end_layout
24658
24659 \end_inset
24660
24661  If this is set to 
24662 \begin_inset Flex Code
24663 status collapsed
24664
24665 \begin_layout Plain Layout
24666
24667 \change_inserted -584632292 1615846730
24668 1
24669 \change_unchanged
24670
24671 \end_layout
24672
24673 \end_inset
24674
24675 ,
24676  this argument is automatically inserted when the respective style is selected.
24677 \end_layout
24678
24679 \begin_layout Itemize
24680
24681 \change_inserted -584632292 1615846730
24682 \begin_inset Flex Code
24683 status collapsed
24684
24685 \begin_layout Plain Layout
24686
24687 \change_inserted -584632292 1615846730
24688 InsertOnNewline
24689 \change_unchanged
24690
24691 \end_layout
24692
24693 \end_inset
24694
24695  
24696 \begin_inset Flex Code
24697 status collapsed
24698
24699 \begin_layout Plain Layout
24700
24701 \change_inserted -584632292 1615846730
24702 [int=0]
24703 \change_unchanged
24704
24705 \end_layout
24706
24707 \end_inset
24708
24709  If this is set to 
24710 \begin_inset Flex Code
24711 status collapsed
24712
24713 \begin_layout Plain Layout
24714
24715 \change_inserted -584632292 1615846730
24716 1
24717 \change_unchanged
24718
24719 \end_layout
24720
24721 \end_inset
24722
24723 ,
24724  this argument will be inserted on a new line with 
24725 \begin_inset Flex Code
24726 status collapsed
24727
24728 \begin_layout Plain Layout
24729
24730 \change_inserted -584632292 1615846730
24731 AutoInsert
24732 \change_unchanged
24733
24734 \end_layout
24735
24736 \end_inset
24737
24738  (only available within Flex insets).
24739 \end_layout
24740
24741 \begin_layout Itemize
24742
24743 \change_inserted -584632292 1615846730
24744 \begin_inset Flex Code
24745 status collapsed
24746
24747 \begin_layout Plain Layout
24748
24749 \change_inserted -584632292 1615846730
24750 InsertCotext
24751 \change_unchanged
24752
24753 \end_layout
24754
24755 \end_inset
24756
24757  
24758 \begin_inset Flex Code
24759 status collapsed
24760
24761 \begin_layout Plain Layout
24762
24763 \change_inserted -584632292 1615846730
24764 [int=0]
24765 \change_unchanged
24766
24767 \end_layout
24768
24769 \end_inset
24770
24771  If this is set to 
24772 \begin_inset Flex Code
24773 status collapsed
24774
24775 \begin_layout Plain Layout
24776
24777 \change_inserted -584632292 1615846730
24778 1
24779 \change_unchanged
24780
24781 \end_layout
24782
24783 \end_inset
24784
24785 ,
24786  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
24787 \end_layout
24788
24789 \begin_layout Itemize
24790
24791 \change_inserted -584632292 1615846730
24792 \begin_inset Flex Code
24793 status collapsed
24794
24795 \begin_layout Plain Layout
24796
24797 \change_inserted -584632292 1615846730
24798 PassThru
24799 \change_unchanged
24800
24801 \end_layout
24802
24803 \end_inset
24804
24805  [
24806 \begin_inset Flex Code
24807 status collapsed
24808
24809 \begin_layout Plain Layout
24810
24811 \change_inserted -584632292 1615846730
24812
24813 \emph on
24814 inherited
24815 \emph default
24816 ,
24817  true,
24818  false
24819 \change_unchanged
24820
24821 \end_layout
24822
24823 \end_inset
24824
24825 ] Whether the contents of this argument should be output in raw form,
24826  meaning without special translations that \SpecialChar LaTeX
24827  would require.
24828  By default,
24829  the 
24830 \begin_inset Flex Code
24831 status collapsed
24832
24833 \begin_layout Plain Layout
24834
24835 \change_inserted -584632292 1615846730
24836 PassThru
24837 \change_unchanged
24838
24839 \end_layout
24840
24841 \end_inset
24842
24843  status is inherited by the inset or paragraph layout the argument belongs to,
24844  true and false change the status for the given argument only.
24845 \end_layout
24846
24847 \begin_layout Itemize
24848
24849 \change_inserted -584632292 1615846730
24850 \begin_inset Flex Code
24851 status collapsed
24852
24853 \begin_layout Plain Layout
24854
24855 \change_inserted -584632292 1615846730
24856 PassThruChars
24857 \change_unchanged
24858
24859 \end_layout
24860
24861 \end_inset
24862
24863  [
24864 \begin_inset Flex Code
24865 status collapsed
24866
24867 \begin_layout Plain Layout
24868
24869 \change_inserted -584632292 1615846730
24870 string of characters
24871 \change_unchanged
24872
24873 \end_layout
24874
24875 \end_inset
24876
24877 ]
24878 \family typewriter
24879  
24880 \family default
24881 Defines individual characters
24882 \begin_inset Newline linebreak
24883 \end_inset
24884
24885 that should be output in raw form,
24886  meaning without special translations that \SpecialChar LaTeX
24887  would require.
24888  Note that,
24889  contrary to PassThru,
24890  this needs to be explicitly defined for arguments.
24891  That is,
24892  arguments do not inherit PassThruChars from their parent inset or layout.
24893 \end_layout
24894
24895 \begin_layout Itemize
24896
24897 \change_inserted -584632292 1615846730
24898 \begin_inset Flex Code
24899 status collapsed
24900
24901 \begin_layout Plain Layout
24902
24903 \change_inserted -584632292 1615846730
24904 IsTocCaption
24905 \change_unchanged
24906
24907 \end_layout
24908
24909 \end_inset
24910
24911  [
24912 \begin_inset Flex Code
24913 status collapsed
24914
24915 \begin_layout Plain Layout
24916
24917 \change_inserted -584632292 1615846730
24918
24919 \emph on
24920 0
24921 \change_unchanged
24922
24923 \end_layout
24924
24925 \end_inset
24926
24927 ,
24928 \begin_inset space \thinspace{}
24929 \end_inset
24930
24931
24932 \begin_inset Flex Code
24933 status collapsed
24934
24935 \begin_layout Plain Layout
24936
24937 \change_inserted -584632292 1615846730
24938 1
24939 \change_unchanged
24940
24941 \end_layout
24942
24943 \end_inset
24944
24945 ] If this is set to 1,
24946  the argument will output its content in the corresponding item in the table of contents.
24947  See AddToToc.
24948 \end_layout
24949
24950 \begin_layout Standard
24951
24952 \change_inserted -584632292 1615846730
24953 By default,
24954  the text entered in the \SpecialChar LyX
24955  workarea in the respective layout is the last (mandatory) argument of a command if the 
24956 \begin_inset Flex Code
24957 status collapsed
24958
24959 \begin_layout Plain Layout
24960
24961 \change_inserted -584632292 1615846730
24962 LatexType
24963 \change_unchanged
24964
24965 \end_layout
24966
24967 \end_inset
24968
24969  is 
24970 \begin_inset Flex Code
24971 status collapsed
24972
24973 \begin_layout Plain Layout
24974
24975 \change_inserted -584632292 1615846730
24976 Command
24977 \change_unchanged
24978
24979 \end_layout
24980
24981 \end_inset
24982
24983 .
24984  However,
24985  arguments with the prefix 
24986 \begin_inset Flex Code
24987 status collapsed
24988
24989 \begin_layout Plain Layout
24990
24991 \change_inserted -584632292 1615846730
24992 post:
24993 \change_unchanged
24994
24995 \end_layout
24996
24997 \end_inset
24998
24999  are output after this workarea argument.
25000  Note that post-argument numbering restarts at 1,
25001  so the first argument following the workarea argument is 
25002 \begin_inset Flex Code
25003 status collapsed
25004
25005 \begin_layout Plain Layout
25006
25007 \change_inserted -584632292 1615846730
25008 post:1
25009 \change_unchanged
25010
25011 \end_layout
25012
25013 \end_inset
25014
25015 .
25016  Post-arguments are ignored in any other 
25017 \begin_inset Flex Code
25018 status collapsed
25019
25020 \begin_layout Plain Layout
25021
25022 \change_inserted -584632292 1615846730
25023 LatexType
25024 \change_unchanged
25025
25026 \end_layout
25027
25028 \end_inset
25029
25030  than 
25031 \begin_inset Flex Code
25032 status collapsed
25033
25034 \begin_layout Plain Layout
25035
25036 \change_inserted -584632292 1615846730
25037 Command
25038 \change_unchanged
25039
25040 \end_layout
25041
25042 \end_inset
25043
25044 .
25045 \end_layout
25046
25047 \begin_layout Standard
25048
25049 \change_inserted -584632292 1615846730
25050 Arguments for list 
25051 \begin_inset Flex Code
25052 status collapsed
25053
25054 \begin_layout Plain Layout
25055
25056 \change_inserted -584632292 1615846730
25057
25058 \backslash
25059 item
25060 \change_unchanged
25061
25062 \end_layout
25063
25064 \end_inset
25065
25066 s (as in 
25067 \begin_inset Flex Code
25068 status collapsed
25069
25070 \begin_layout Plain Layout
25071
25072 \change_inserted -584632292 1615846730
25073
25074 \backslash
25075 item[foo]
25076 \change_unchanged
25077
25078 \end_layout
25079
25080 \end_inset
25081
25082 ) have the prefix 
25083 \begin_inset Flex Code
25084 status collapsed
25085
25086 \begin_layout Plain Layout
25087
25088 \change_inserted -584632292 1615846730
25089 item:
25090 \change_unchanged
25091
25092 \end_layout
25093
25094 \end_inset
25095
25096  followed by the number (e.
25097 \begin_inset space \thinspace{}
25098 \end_inset
25099
25100 g.
25101 \begin_inset space \space{}
25102 \end_inset
25103
25104
25105 \begin_inset Flex Code
25106 status collapsed
25107
25108 \begin_layout Plain Layout
25109
25110 \change_inserted -584632292 1615846730
25111 Argument item:1
25112 \change_unchanged
25113
25114 \end_layout
25115
25116 \end_inset
25117
25118 ).
25119 \end_layout
25120
25121 \begin_layout Standard
25122
25123 \change_inserted -584632292 1615846730
25124 Finally,
25125  there is a special argument type with the prefix 
25126 \begin_inset Flex Code
25127 status collapsed
25128
25129 \begin_layout Plain Layout
25130
25131 \change_inserted -584632292 1615846730
25132 listpreamble:
25133 \change_unchanged
25134
25135 \end_layout
25136
25137 \end_inset
25138
25139 .
25140  It is not really an argument,
25141  but uses the argument interface (thus,
25142  the prefix is also followed by a number,
25143  e.
25144 \begin_inset space \thinspace{}
25145 \end_inset
25146
25147 g.
25148  
25149 \begin_inset Flex Code
25150 status collapsed
25151
25152 \begin_layout Plain Layout
25153
25154 \change_inserted -584632292 1615846730
25155 Argument listpreamble:1
25156 \change_unchanged
25157
25158 \end_layout
25159
25160 \end_inset
25161
25162 ).
25163  As the name implies,
25164  it is targeted at lists such as 
25165 \family sans
25166 Itemize
25167 \family default
25168 ,
25169  
25170 \family sans
25171 Enumerate
25172 \family default
25173 ,
25174  
25175 \family sans
25176 Description
25177 \family default
25178 ,
25179  or 
25180 \family sans
25181 Bibliography
25182 \family default
25183 .
25184  Its content will be output at the list start,
25185  before the first 
25186 \begin_inset Flex Code
25187 status collapsed
25188
25189 \begin_layout Plain Layout
25190
25191 \change_inserted -584632292 1615846730
25192
25193 \backslash
25194 item
25195 \change_unchanged
25196
25197 \end_layout
25198
25199 \end_inset
25200
25201 ,
25202  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
25203 ).
25204  This way,
25205  users can insert redefinitions (of lengths etc.) to individual lists.
25206  By default,
25207  these arguments do not have a delimiter.
25208 \change_unchanged
25209
25210 \end_layout
25211
25212 \begin_layout Subsection
25213 Counters
25214 \begin_inset CommandInset label
25215 LatexCommand label
25216 name "subsec:Counters"
25217
25218 \end_inset
25219
25220
25221 \end_layout
25222
25223 \begin_layout Standard
25224 It is necessary to define the counters (
25225 \begin_inset Flex Noun
25226 status collapsed
25227
25228 \begin_layout Plain Layout
25229 chapter
25230 \end_layout
25231
25232 \end_inset
25233
25234 ,
25235  
25236 \begin_inset Flex Noun
25237 status collapsed
25238
25239 \begin_layout Plain Layout
25240 figure
25241 \end_layout
25242
25243 \end_inset
25244
25245 ,
25246  \SpecialChar ldots
25247 ) in the text class itself.
25248  The standard counters are defined in the file 
25249 \begin_inset Flex Code
25250 status collapsed
25251
25252 \begin_layout Plain Layout
25253 stdcounters.inc
25254 \end_layout
25255
25256 \end_inset
25257
25258 ,
25259  so you may have to do no more than add
25260 \end_layout
25261
25262 \begin_layout LyX-Code
25263 Input stdcounters.inc
25264 \end_layout
25265
25266 \begin_layout Standard
25267 to your layout file to get them to work.
25268  But if you want to define custom counters,
25269  then you can do so.
25270  The counter declaration must begin with:
25271 \end_layout
25272
25273 \begin_layout LyX-Code
25274 Counter CounterName
25275 \end_layout
25276
25277 \begin_layout Standard
25278 where of course `
25279 \begin_inset Flex Code
25280 status collapsed
25281
25282 \begin_layout Plain Layout
25283 CounterName
25284 \end_layout
25285
25286 \end_inset
25287
25288 ' is replaced by the name of the counter.
25289  And it must end with 
25290 \begin_inset Quotes eld
25291 \end_inset
25292
25293
25294 \begin_inset Flex Code
25295 status collapsed
25296
25297 \begin_layout Plain Layout
25298 End
25299 \end_layout
25300
25301 \end_inset
25302
25303
25304 \begin_inset Quotes erd
25305 \end_inset
25306
25307 .
25308  The following parameters can also be used:
25309 \end_layout
25310
25311 \begin_layout Description
25312 \begin_inset Flex Code
25313 status collapsed
25314
25315 \begin_layout Plain Layout
25316 InitialValue
25317 \end_layout
25318
25319 \end_inset
25320
25321  [
25322 \begin_inset Flex Code
25323 status collapsed
25324
25325 \begin_layout Plain Layout
25326 int=1
25327 \end_layout
25328
25329 \end_inset
25330
25331 ] Sets the initial value for the counter,
25332  to which it will be reset whenever that happens.
25333  Normally,
25334  one will want the default,
25335  1.
25336 \end_layout
25337
25338 \begin_layout Description
25339 \begin_inset Flex Code
25340 status collapsed
25341
25342 \begin_layout Plain Layout
25343 LabelString
25344 \end_layout
25345
25346 \end_inset
25347
25348  [
25349 \begin_inset Flex Code
25350 status collapsed
25351
25352 \begin_layout Plain Layout
25353 string
25354 \end_layout
25355
25356 \end_inset
25357
25358 =
25359 \begin_inset Quotes erd
25360 \end_inset
25361
25362
25363 \begin_inset Quotes erd
25364 \end_inset
25365
25366 ] When defined,
25367  this string defines how the counter is displayed.
25368  Setting this value sets 
25369 \begin_inset Flex Code
25370 status collapsed
25371
25372 \begin_layout Plain Layout
25373 LabelStringAppendix
25374 \end_layout
25375
25376 \end_inset
25377
25378  to the same value.
25379  The following special constructs can be used in the string:
25380 \end_layout
25381
25382 \begin_deeper
25383 \begin_layout Itemize
25384 \begin_inset Flex Code
25385 status collapsed
25386
25387 \begin_layout Plain Layout
25388
25389 \backslash
25390 thecounter
25391 \end_layout
25392
25393 \end_inset
25394
25395  will be replaced by the expansion of the 
25396 \begin_inset Flex Code
25397 status collapsed
25398
25399 \begin_layout Plain Layout
25400 LabelString
25401 \end_layout
25402
25403 \end_inset
25404
25405  (or 
25406 \begin_inset Flex Code
25407 status collapsed
25408
25409 \begin_layout Plain Layout
25410 LabelStringAppendix
25411 \end_layout
25412
25413 \end_inset
25414
25415 ) of the counter 
25416 \begin_inset Flex Code
25417 status collapsed
25418
25419 \begin_layout Plain Layout
25420 counter
25421 \end_layout
25422
25423 \end_inset
25424
25425 .
25426  
25427 \end_layout
25428
25429 \begin_layout Itemize
25430 counter values can be expressed using \SpecialChar LaTeX
25431 -like macros
25432 \begin_inset Newline newline
25433 \end_inset
25434
25435
25436 \begin_inset Flex Code
25437 status collapsed
25438
25439 \begin_layout Plain Layout
25440
25441 \backslash
25442
25443 \emph on
25444 numbertype
25445 \emph default
25446 {
25447 \emph on
25448 counter
25449 \emph default
25450 }
25451 \end_layout
25452
25453 \end_inset
25454
25455 ,
25456  where 
25457 \begin_inset Flex Code
25458 status collapsed
25459
25460 \begin_layout Plain Layout
25461
25462 \emph on
25463 numbertype
25464 \end_layout
25465
25466 \end_inset
25467
25468  can be:
25469 \begin_inset Foot
25470 status collapsed
25471
25472 \begin_layout Plain Layout
25473
25474 \family roman
25475 \series medium
25476 \shape up
25477 \size normal
25478 \emph off
25479 \bar no
25480 \noun off
25481 \color none
25482 Actually,
25483  the situation is a bit more complicated:
25484  any
25485 \family default
25486 \series default
25487 \shape default
25488 \emph default
25489 \bar default
25490  
25491 \size default
25492 \emph on
25493 \noun default
25494 \color inherit
25495 numbertype
25496 \family roman
25497 \series medium
25498 \shape up
25499 \size normal
25500 \emph off
25501 \bar no
25502 \noun off
25503  other than those described below will produce arabic numerals.
25504  It would not be surprising to see this change in the future.
25505 \end_layout
25506
25507 \end_inset
25508
25509  
25510 \begin_inset Flex Code
25511 status collapsed
25512
25513 \begin_layout Plain Layout
25514 arabic
25515 \end_layout
25516
25517 \end_inset
25518
25519 :
25520  1,
25521  2,
25522  3,\SpecialChar ldots
25523 ;
25524  
25525 \begin_inset Flex Code
25526 status collapsed
25527
25528 \begin_layout Plain Layout
25529 alph
25530 \end_layout
25531
25532 \end_inset
25533
25534  for lower-case letters:
25535  a,
25536  b,
25537  c,
25538  \SpecialChar ldots
25539 ;
25540  
25541 \begin_inset Flex Code
25542 status collapsed
25543
25544 \begin_layout Plain Layout
25545 Alph
25546 \end_layout
25547
25548 \end_inset
25549
25550  for upper-case letters:
25551  A,
25552  B,
25553  C,
25554  \SpecialChar ldots
25555 ;
25556  
25557 \begin_inset Flex Code
25558 status collapsed
25559
25560 \begin_layout Plain Layout
25561 roman
25562 \end_layout
25563
25564 \end_inset
25565
25566  for lower-case roman numerals:
25567  i,
25568  ii,
25569  iii,
25570  \SpecialChar ldots
25571 ;
25572  
25573 \begin_inset Flex Code
25574 status collapsed
25575
25576 \begin_layout Plain Layout
25577 Roman
25578 \end_layout
25579
25580 \end_inset
25581
25582  for upper-case roman numerals:
25583  I,
25584  II,
25585  III\SpecialChar ldots
25586 ;
25587  
25588 \begin_inset Flex Code
25589 status collapsed
25590
25591 \begin_layout Plain Layout
25592 hebrew
25593 \end_layout
25594
25595 \end_inset
25596
25597  for hebrew numerals.
25598 \end_layout
25599
25600 \end_deeper
25601 \begin_layout Standard
25602 If LabelString is not defined,
25603  a default value is constructed as follows:
25604  if the counter has a 
25605 \change_deleted 731793113 1604355218
25606 master
25607 \change_inserted 731793113 1604355221
25608 parent
25609 \change_unchanged
25610  counter 
25611 \begin_inset Flex Code
25612 status collapsed
25613
25614 \begin_layout Plain Layout
25615
25616 \change_deleted 731793113 1604355223
25617 master
25618 \change_inserted 731793113 1604355226
25619 parent
25620 \change_unchanged
25621
25622 \end_layout
25623
25624 \end_inset
25625
25626  (defined via 
25627 \begin_inset Flex Code
25628 status collapsed
25629
25630 \begin_layout Plain Layout
25631 Within
25632 \end_layout
25633
25634 \end_inset
25635
25636 ),
25637  the string
25638 \begin_inset Newline newline
25639 \end_inset
25640
25641
25642 \begin_inset Flex Code
25643 status collapsed
25644
25645 \begin_layout Plain Layout
25646
25647 \backslash
25648 the
25649 \change_inserted 731793113 1604355228
25650 parent
25651 \change_deleted 731793113 1604355230
25652 master
25653 \change_unchanged
25654 .
25655 \backslash
25656 arabic{counter}
25657 \end_layout
25658
25659 \end_inset
25660
25661  is used;
25662  otherwise the string 
25663 \begin_inset Flex Code
25664 status collapsed
25665
25666 \begin_layout Plain Layout
25667
25668 \backslash
25669 arabic{counter}
25670 \end_layout
25671
25672 \end_inset
25673
25674  is used.
25675 \end_layout
25676
25677 \begin_layout Description
25678 \begin_inset Flex Code
25679 status collapsed
25680
25681 \begin_layout Plain Layout
25682 LabelStringAppendix
25683 \end_layout
25684
25685 \end_inset
25686
25687  [
25688 \begin_inset Flex Code
25689 status collapsed
25690
25691 \begin_layout Plain Layout
25692 string
25693 \end_layout
25694
25695 \end_inset
25696
25697
25698 \begin_inset Quotes eld
25699 \end_inset
25700
25701
25702 \begin_inset Quotes erd
25703 \end_inset
25704
25705 ] Same as 
25706 \begin_inset Flex Code
25707 status collapsed
25708
25709 \begin_layout Plain Layout
25710 LabelString
25711 \end_layout
25712
25713 \end_inset
25714
25715 ,
25716  but for use in the Appendix.
25717 \change_inserted -584632292 1607202551
25718
25719 \end_layout
25720
25721 \begin_layout Description
25722
25723 \change_inserted -584632292 1607202682
25724 \begin_inset Flex Code
25725 status open
25726
25727 \begin_layout Plain Layout
25728 LaTeXName
25729 \end_layout
25730
25731 \end_inset
25732
25733  [
25734 \begin_inset Flex Code
25735 status open
25736
25737 \begin_layout Plain Layout
25738
25739 \change_inserted -584632292 1607202576
25740 string
25741 \change_unchanged
25742
25743 \end_layout
25744
25745 \end_inset
25746
25747  = 
25748 \begin_inset Quotes eld
25749 \end_inset
25750
25751
25752 \begin_inset Quotes erd
25753 \end_inset
25754
25755 ] The counter name as used in \SpecialChar LaTeX
25756 .
25757  (
25758 \change_inserted 34634807 1619711355
25759 e
25760 \change_deleted 34634807 1619711355
25761 E
25762 \change_inserted -584632292 1607202682
25763 .g.,
25764  in \SpecialChar LyX
25765 ,
25766  there is a counter named `theorem',
25767  but it is output to \SpecialChar LaTeX
25768  as `thm'.)
25769 \change_unchanged
25770
25771 \end_layout
25772
25773 \begin_layout Description
25774 \begin_inset Flex Code
25775 status collapsed
25776
25777 \begin_layout Plain Layout
25778 PrettyFormat
25779 \end_layout
25780
25781 \end_inset
25782
25783  [
25784 \begin_inset Flex Code
25785 status collapsed
25786
25787 \begin_layout Plain Layout
25788 string
25789 \end_layout
25790
25791 \end_inset
25792
25793 =
25794 \begin_inset Quotes erd
25795 \end_inset
25796
25797
25798 \begin_inset Quotes erd
25799 \end_inset
25800
25801 ] A format for use with formatted references to this counter.
25802  For example,
25803  one might want to have references to section numbers appear as 
25804 \begin_inset Quotes eld
25805 \end_inset
25806
25807 Section 2.4
25808 \begin_inset Quotes erd
25809 \end_inset
25810
25811 .
25812  The string should contain 
25813 \begin_inset Quotes eld
25814 \end_inset
25815
25816 ##
25817 \begin_inset Quotes erd
25818 \end_inset
25819
25820 .
25821  This will be replaced by the counter number itself.
25822  So,
25823  for sections,
25824  it would be:
25825  Section ##.
25826 \end_layout
25827
25828 \begin_layout Description
25829 \begin_inset Flex Code
25830 status collapsed
25831
25832 \begin_layout Plain Layout
25833 Within
25834 \end_layout
25835
25836 \end_inset
25837
25838  [
25839 \begin_inset Flex Code
25840 status collapsed
25841
25842 \begin_layout Plain Layout
25843 string
25844 \end_layout
25845
25846 \end_inset
25847
25848 =
25849 \begin_inset Quotes erd
25850 \end_inset
25851
25852
25853 \begin_inset Quotes erd
25854 \end_inset
25855
25856 ] If this is set to the name of another counter,
25857  the present counter will be reset every time the other one is increased.
25858  For example,
25859  
25860 \begin_inset Flex Code
25861 status collapsed
25862
25863 \begin_layout Plain Layout
25864 subsection
25865 \end_layout
25866
25867 \end_inset
25868
25869  is numbered inside 
25870 \begin_inset Flex Code
25871 status collapsed
25872
25873 \begin_layout Plain Layout
25874 section
25875 \end_layout
25876
25877 \end_inset
25878
25879 .
25880 \end_layout
25881
25882 \begin_layout Subsection
25883 Font description
25884 \begin_inset CommandInset label
25885 LatexCommand label
25886 name "subsec:Font-description"
25887
25888 \end_inset
25889
25890
25891 \end_layout
25892
25893 \begin_layout Standard
25894 A font description looks like this:
25895 \end_layout
25896
25897 \begin_layout LyX-Code
25898 Font 
25899 \family roman
25900 \emph on
25901 or
25902 \family default
25903 \emph default
25904  LabelFont
25905 \emph on
25906  
25907 \family roman
25908 or
25909 \family default
25910 \emph default
25911  DefaultFont
25912 \end_layout
25913
25914 \begin_layout LyX-Code
25915  ...
25916 \end_layout
25917
25918 \begin_layout LyX-Code
25919 EndFont
25920 \end_layout
25921
25922 \begin_layout Standard
25923 The following commands are available:
25924 \end_layout
25925
25926 \begin_layout Description
25927 \begin_inset Flex Code
25928 status collapsed
25929
25930 \begin_layout Plain Layout
25931 Color
25932 \end_layout
25933
25934 \end_inset
25935
25936  [
25937 \change_deleted -712698321 1607682984
25938
25939 \begin_inset Flex Code
25940 status collapsed
25941
25942 \begin_layout Plain Layout
25943
25944 \emph on
25945 none
25946 \end_layout
25947
25948 \end_inset
25949
25950 ,
25951  
25952 \begin_inset Flex Code
25953 status collapsed
25954
25955 \begin_layout Plain Layout
25956 black
25957 \end_layout
25958
25959 \end_inset
25960
25961 ,
25962  
25963 \begin_inset Flex Code
25964 status collapsed
25965
25966 \begin_layout Plain Layout
25967 white
25968 \end_layout
25969
25970 \end_inset
25971
25972 ,
25973  
25974 \begin_inset Flex Code
25975 status collapsed
25976
25977 \begin_layout Plain Layout
25978 red
25979 \end_layout
25980
25981 \end_inset
25982
25983 ,
25984  
25985 \begin_inset Flex Code
25986 status collapsed
25987
25988 \begin_layout Plain Layout
25989 green
25990 \end_layout
25991
25992 \end_inset
25993
25994 ,
25995  
25996 \begin_inset Flex Code
25997 status collapsed
25998
25999 \begin_layout Plain Layout
26000 blue
26001 \end_layout
26002
26003 \end_inset
26004
26005 ,
26006  
26007 \begin_inset Flex Code
26008 status collapsed
26009
26010 \begin_layout Plain Layout
26011 cyan
26012 \end_layout
26013
26014 \end_inset
26015
26016 ,
26017  
26018 \begin_inset Flex Code
26019 status collapsed
26020
26021 \begin_layout Plain Layout
26022 magenta
26023 \end_layout
26024
26025 \end_inset
26026
26027 ,
26028  
26029 \begin_inset Flex Code
26030 status collapsed
26031
26032 \begin_layout Plain Layout
26033 yellow
26034 \end_layout
26035
26036 \end_inset
26037
26038 ,
26039  
26040 \begin_inset Flex Code
26041 status collapsed
26042
26043 \begin_layout Plain Layout
26044 brown
26045 \end_layout
26046
26047 \end_inset
26048
26049 ,
26050  
26051 \begin_inset Flex Code
26052 status collapsed
26053
26054 \begin_layout Plain Layout
26055 darkgray
26056 \end_layout
26057
26058 \end_inset
26059
26060 ,
26061  
26062 \begin_inset Flex Code
26063 status collapsed
26064
26065 \begin_layout Plain Layout
26066 gray
26067 \end_layout
26068
26069 \end_inset
26070
26071 ,
26072  
26073 \begin_inset Flex Code
26074 status collapsed
26075
26076 \begin_layout Plain Layout
26077 lightgray
26078 \end_layout
26079
26080 \end_inset
26081
26082 ,
26083  
26084 \begin_inset Flex Code
26085 status collapsed
26086
26087 \begin_layout Plain Layout
26088 lime
26089 \end_layout
26090
26091 \end_inset
26092
26093 ,
26094  
26095 \begin_inset Flex Code
26096 status collapsed
26097
26098 \begin_layout Plain Layout
26099 orange
26100 \end_layout
26101
26102 \end_inset
26103
26104 ,
26105  
26106 \begin_inset Flex Code
26107 status collapsed
26108
26109 \begin_layout Plain Layout
26110 olive
26111 \end_layout
26112
26113 \end_inset
26114
26115 ,
26116  
26117 \begin_inset Flex Code
26118 status collapsed
26119
26120 \begin_layout Plain Layout
26121 pink
26122 \end_layout
26123
26124 \end_inset
26125
26126 ,
26127  
26128 \begin_inset Flex Code
26129 status collapsed
26130
26131 \begin_layout Plain Layout
26132 purple
26133 \end_layout
26134
26135 \end_inset
26136
26137 ,
26138  
26139 \begin_inset Flex Code
26140 status collapsed
26141
26142 \begin_layout Plain Layout
26143 teal
26144 \end_layout
26145
26146 \end_inset
26147
26148 ,
26149  
26150 \begin_inset Flex Code
26151 status collapsed
26152
26153 \begin_layout Plain Layout
26154 violet
26155 \end_layout
26156
26157 \end_inset
26158
26159
26160 \change_inserted -712698321 1607683139
26161
26162 \begin_inset Flex Code
26163 status collapsed
26164
26165 \begin_layout Plain Layout
26166
26167 \change_inserted -712698321 1607683135
26168 string
26169 \change_unchanged
26170
26171 \end_layout
26172
26173 \end_inset
26174
26175 ] See appendix
26176 \begin_inset space ~
26177 \end_inset
26178
26179
26180 \begin_inset CommandInset ref
26181 LatexCommand ref
26182 reference "chap:Names-of-colors"
26183 plural "false"
26184 caps "false"
26185 noprefix "false"
26186 nolink "false"
26187
26188 \end_inset
26189
26190  for 
26191 \change_deleted -712698321 1607683144
26192 ]
26193 \change_inserted -712698321 1607683146
26194 valid arguments.
26195 \change_unchanged
26196
26197 \end_layout
26198
26199 \begin_layout Description
26200 \begin_inset Flex Code
26201 status collapsed
26202
26203 \begin_layout Plain Layout
26204 Family
26205 \end_layout
26206
26207 \end_inset
26208
26209  [
26210 \begin_inset Flex Code
26211 status collapsed
26212
26213 \begin_layout Plain Layout
26214
26215 \emph on
26216 Roman
26217 \end_layout
26218
26219 \end_inset
26220
26221 ,
26222  
26223 \begin_inset Flex Code
26224 status collapsed
26225
26226 \begin_layout Plain Layout
26227 Sans
26228 \end_layout
26229
26230 \end_inset
26231
26232 ,
26233  
26234 \begin_inset Flex Code
26235 status collapsed
26236
26237 \begin_layout Plain Layout
26238 Typewriter
26239 \end_layout
26240
26241 \end_inset
26242
26243 ]
26244 \end_layout
26245
26246 \begin_layout Description
26247 \begin_inset Flex Code
26248 status collapsed
26249
26250 \begin_layout Plain Layout
26251 Misc
26252 \end_layout
26253
26254 \end_inset
26255
26256  [
26257 \begin_inset Flex Code
26258 status collapsed
26259
26260 \begin_layout Plain Layout
26261 string
26262 \end_layout
26263
26264 \end_inset
26265
26266 ] Valid arguments are:
26267  
26268 \begin_inset Flex Code
26269 status collapsed
26270
26271 \begin_layout Plain Layout
26272 emph
26273 \end_layout
26274
26275 \end_inset
26276
26277 ,
26278  
26279 \begin_inset Flex Code
26280 status collapsed
26281
26282 \begin_layout Plain Layout
26283 noun
26284 \end_layout
26285
26286 \end_inset
26287
26288 ,
26289  
26290 \begin_inset Flex Code
26291 status collapsed
26292
26293 \begin_layout Plain Layout
26294 strikeout
26295 \end_layout
26296
26297 \end_inset
26298
26299 ,
26300  
26301 \begin_inset Flex Code
26302 status collapsed
26303
26304 \begin_layout Plain Layout
26305 underbar
26306 \end_layout
26307
26308 \end_inset
26309
26310 ,
26311  
26312 \begin_inset Flex Code
26313 status collapsed
26314
26315 \begin_layout Plain Layout
26316 uuline
26317 \end_layout
26318
26319 \end_inset
26320
26321 ,
26322  
26323 \begin_inset Flex Code
26324 status collapsed
26325
26326 \begin_layout Plain Layout
26327 uwave
26328 \end_layout
26329
26330 \end_inset
26331
26332 ,
26333  
26334 \begin_inset Flex Code
26335 status collapsed
26336
26337 \begin_layout Plain Layout
26338 no_emph
26339 \end_layout
26340
26341 \end_inset
26342
26343 ,
26344  
26345 \begin_inset Flex Code
26346 status collapsed
26347
26348 \begin_layout Plain Layout
26349 no_noun
26350 \end_layout
26351
26352 \end_inset
26353
26354 ,
26355  
26356 \begin_inset Flex Code
26357 status collapsed
26358
26359 \begin_layout Plain Layout
26360 no_strikeout
26361 \end_layout
26362
26363 \end_inset
26364
26365 ,
26366  
26367 \begin_inset Flex Code
26368 status collapsed
26369
26370 \begin_layout Plain Layout
26371 no_bar
26372 \end_layout
26373
26374 \end_inset
26375
26376 ,
26377  
26378 \begin_inset Flex Code
26379 status collapsed
26380
26381 \begin_layout Plain Layout
26382 no_uuline
26383 \end_layout
26384
26385 \end_inset
26386
26387  and 
26388 \begin_inset Flex Code
26389 status collapsed
26390
26391 \begin_layout Plain Layout
26392 no_uwave
26393 \end_layout
26394
26395 \end_inset
26396
26397 .
26398  Each of these turns on or off the corresponding attribute.
26399  For example,
26400  
26401 \begin_inset Flex Code
26402 status collapsed
26403
26404 \begin_layout Plain Layout
26405 emph
26406 \end_layout
26407
26408 \end_inset
26409
26410  turns on emphasis,
26411  and 
26412 \begin_inset Flex Code
26413 status collapsed
26414
26415 \begin_layout Plain Layout
26416 no_emph
26417 \end_layout
26418
26419 \end_inset
26420
26421  turns it off.
26422  
26423 \begin_inset Newline newline
26424 \end_inset
26425
26426 If the latter seems puzzling,
26427  remember that the font settings for the present context are generally inherited from the surrounding context.
26428  So 
26429 \begin_inset Flex Code
26430 status collapsed
26431
26432 \begin_layout Plain Layout
26433 no_emph
26434 \end_layout
26435
26436 \end_inset
26437
26438  would turn off the emphasis that was anyway in effect,
26439  say,
26440  in a theorem environment.
26441 \end_layout
26442
26443 \begin_layout Description
26444 \begin_inset Flex Code
26445 status collapsed
26446
26447 \begin_layout Plain Layout
26448 Series
26449 \end_layout
26450
26451 \end_inset
26452
26453  [
26454 \begin_inset Flex Code
26455 status collapsed
26456
26457 \begin_layout Plain Layout
26458
26459 \emph on
26460 Medium
26461 \end_layout
26462
26463 \end_inset
26464
26465 ,
26466  
26467 \begin_inset Flex Code
26468 status collapsed
26469
26470 \begin_layout Plain Layout
26471 Bold
26472 \end_layout
26473
26474 \end_inset
26475
26476
26477 \end_layout
26478
26479 \begin_layout Description
26480 \begin_inset Flex Code
26481 status collapsed
26482
26483 \begin_layout Plain Layout
26484 Shape
26485 \end_layout
26486
26487 \end_inset
26488
26489  [
26490 \begin_inset Flex Code
26491 status collapsed
26492
26493 \begin_layout Plain Layout
26494
26495 \emph on
26496 Up
26497 \end_layout
26498
26499 \end_inset
26500
26501 ,
26502  
26503 \begin_inset Flex Code
26504 status collapsed
26505
26506 \begin_layout Plain Layout
26507 Italic
26508 \end_layout
26509
26510 \end_inset
26511
26512 ,
26513  
26514 \begin_inset Flex Code
26515 status collapsed
26516
26517 \begin_layout Plain Layout
26518 SmallCaps
26519 \end_layout
26520
26521 \end_inset
26522
26523 ,
26524  
26525 \begin_inset Flex Code
26526 status collapsed
26527
26528 \begin_layout Plain Layout
26529 Slanted
26530 \end_layout
26531
26532 \end_inset
26533
26534
26535 \end_layout
26536
26537 \begin_layout Description
26538 \begin_inset Flex Code
26539 status collapsed
26540
26541 \begin_layout Plain Layout
26542 Size
26543 \end_layout
26544
26545 \end_inset
26546
26547  [
26548 \begin_inset Flex Code
26549 status collapsed
26550
26551 \begin_layout Plain Layout
26552 tiny
26553 \end_layout
26554
26555 \end_inset
26556
26557 ,
26558  
26559 \begin_inset Flex Code
26560 status collapsed
26561
26562 \begin_layout Plain Layout
26563 small
26564 \end_layout
26565
26566 \end_inset
26567
26568 ,
26569  
26570 \begin_inset Flex Code
26571 status collapsed
26572
26573 \begin_layout Plain Layout
26574
26575 \emph on
26576 normal
26577 \end_layout
26578
26579 \end_inset
26580
26581 ,
26582  
26583 \begin_inset Flex Code
26584 status collapsed
26585
26586 \begin_layout Plain Layout
26587 large
26588 \end_layout
26589
26590 \end_inset
26591
26592 ,
26593  
26594 \begin_inset Flex Code
26595 status collapsed
26596
26597 \begin_layout Plain Layout
26598 larger
26599 \end_layout
26600
26601 \end_inset
26602
26603 ,
26604  
26605 \begin_inset Flex Code
26606 status collapsed
26607
26608 \begin_layout Plain Layout
26609 largest
26610 \end_layout
26611
26612 \end_inset
26613
26614 ,
26615  
26616 \begin_inset Flex Code
26617 status collapsed
26618
26619 \begin_layout Plain Layout
26620 huge
26621 \end_layout
26622
26623 \end_inset
26624
26625 ,
26626  
26627 \begin_inset Flex Code
26628 status collapsed
26629
26630 \begin_layout Plain Layout
26631 giant
26632 \end_layout
26633
26634 \end_inset
26635
26636 ]
26637 \end_layout
26638
26639 \begin_layout Subsection
26640 \begin_inset CommandInset label
26641 LatexCommand label
26642 name "subsec:Citation-engine-description"
26643
26644 \end_inset
26645
26646 Cite engine description
26647 \end_layout
26648
26649 \begin_layout Standard
26650 The 
26651 \begin_inset Flex Code
26652 status collapsed
26653
26654 \begin_layout Plain Layout
26655 CiteEngine
26656 \end_layout
26657
26658 \end_inset
26659
26660  blocks,
26661  as used mainly in cite engine files (see 
26662 \begin_inset CommandInset ref
26663 LatexCommand ref
26664 reference "subsec:Cite-Engine-Files"
26665 plural "false"
26666 caps "false"
26667 noprefix "false"
26668 nolink "false"
26669
26670 \end_inset
26671
26672 ),
26673  define the citation commands provided by a specific 
26674 \begin_inset Quotes eld
26675 \end_inset
26676
26677 cite engine
26678 \begin_inset Quotes erd
26679 \end_inset
26680
26681 .
26682  A cite engine,
26683  in \SpecialChar LyX
26684  terms,
26685  is way specific way to format citations,
26686  using numbers,
26687  author names and/or years.
26688  Currently,
26689  \SpecialChar LyX
26690  supports three such engine types,
26691  namely:
26692 \end_layout
26693
26694 \begin_layout Enumerate
26695 \begin_inset Flex Code
26696 status collapsed
26697
26698 \begin_layout Plain Layout
26699 default
26700 \end_layout
26701
26702 \end_inset
26703
26704 :
26705  the default Bib\SpecialChar TeX
26706  way to format citations,
26707  a simple numeric style (e.
26708 \begin_inset space \thinspace{}
26709 \end_inset
26710
26711 g.,
26712  
26713 \begin_inset Quotes eld
26714 \end_inset
26715
26716 [1]
26717 \begin_inset Quotes erd
26718 \end_inset
26719
26720 )
26721 \end_layout
26722
26723 \begin_layout Enumerate
26724 \begin_inset Flex Code
26725 status collapsed
26726
26727 \begin_layout Plain Layout
26728 authoryear
26729 \end_layout
26730
26731 \end_inset
26732
26733 :
26734  Harvard-styled citations using author names and publication year (e.
26735 \begin_inset space \thinspace{}
26736 \end_inset
26737
26738 g.,
26739  
26740 \begin_inset Quotes eld
26741 \end_inset
26742
26743 Smith and Miller (2017b)
26744 \begin_inset Quotes erd
26745 \end_inset
26746
26747 )
26748 \end_layout
26749
26750 \begin_layout Enumerate
26751 \begin_inset Flex Code
26752 status collapsed
26753
26754 \begin_layout Plain Layout
26755 numerical
26756 \end_layout
26757
26758 \end_inset
26759
26760 :
26761  extended numerical citations that also allow for author or title next to the number (e.
26762 \begin_inset space \thinspace{}
26763 \end_inset
26764
26765 g.,
26766  
26767 \begin_inset Quotes eld
26768 \end_inset
26769
26770 Smith and Miller [1]
26771 \begin_inset Quotes erd
26772 \end_inset
26773
26774 )
26775 \end_layout
26776
26777 \begin_layout Standard
26778 \begin_inset Flex Code
26779 status collapsed
26780
26781 \begin_layout Plain Layout
26782 CiteEngine
26783 \end_layout
26784
26785 \end_inset
26786
26787  blocks look like this:
26788 \end_layout
26789
26790 \begin_layout LyX-Code
26791 CiteEngine default
26792 \end_layout
26793
26794 \begin_layout LyX-Code
26795  cite
26796 \end_layout
26797
26798 \begin_layout LyX-Code
26799  Citep*[][]
26800 \end_layout
26801
26802 \begin_layout LyX-Code
26803  citeyearpar[][]=parencite*
26804 \end_layout
26805
26806 \begin_layout LyX-Code
26807  ...
26808 \end_layout
26809
26810 \begin_layout LyX-Code
26811 End
26812 \end_layout
26813
26814 \begin_layout Standard
26815 The tag following 
26816 \begin_inset Flex Code
26817 status collapsed
26818
26819 \begin_layout Plain Layout
26820 CiteEngine
26821 \end_layout
26822
26823 \end_inset
26824
26825  denotes the engine.
26826  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
26827  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
26828  command and the \SpecialChar LaTeX
26829  output or more complex in order to differentiate things.
26830  The full syntax is:
26831 \end_layout
26832
26833 \begin_layout LyX-Code
26834 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
26835 \end_layout
26836
26837 \begin_layout Itemize
26838 \begin_inset Flex Code
26839 status collapsed
26840
26841 \begin_layout Plain Layout
26842 LyXName
26843 \end_layout
26844
26845 \end_inset
26846
26847 :
26848  The name as used in the 
26849 \begin_inset Flex Code
26850 status collapsed
26851
26852 \begin_layout Plain Layout
26853 *.lyx
26854 \end_layout
26855
26856 \end_inset
26857
26858  file.
26859 \end_layout
26860
26861 \begin_deeper
26862 \begin_layout Standard
26863 For portability reasons,
26864  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
26865  and thus we need to differentiate a 
26866 \begin_inset Flex Code
26867 status collapsed
26868
26869 \begin_layout Plain Layout
26870 latexcmd
26871 \end_layout
26872
26873 \end_inset
26874
26875  sometimes,
26876  if the \SpecialChar LaTeX
26877  command names differ).
26878 \end_layout
26879
26880 \end_deeper
26881 \begin_layout Itemize
26882 \begin_inset Flex Code
26883 status collapsed
26884
26885 \begin_layout Plain Layout
26886 alias
26887 \end_layout
26888
26889 \end_inset
26890
26891 :
26892  a (comma-separated) list of commands that fall back to the given 
26893 \begin_inset Flex Code
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897 LyXName
26898 \end_layout
26899
26900 \end_inset
26901
26902  in the current engine.
26903  This eases the switch of citation packages and engines.
26904  The 
26905 \begin_inset Flex Code
26906 status collapsed
26907
26908 \begin_layout Plain Layout
26909 alias
26910 \end_layout
26911
26912 \end_inset
26913
26914  can be compared to 
26915 \begin_inset Flex Code
26916 status collapsed
26917
26918 \begin_layout Plain Layout
26919 ObsoletedBy
26920 \end_layout
26921
26922 \end_inset
26923
26924  in layout definitions.
26925 \end_layout
26926
26927 \begin_layout Itemize
26928 \begin_inset Flex Code
26929 status collapsed
26930
26931 \begin_layout Plain Layout
26932 latexcmd
26933 \end_layout
26934
26935 \end_inset
26936
26937 :
26938  The actual \SpecialChar LaTeX
26939  command that is output.
26940  
26941 \end_layout
26942
26943 \begin_layout Standard
26944 \begin_inset Flex Code
26945 status collapsed
26946
26947 \begin_layout Plain Layout
26948 Alias
26949 \end_layout
26950
26951 \end_inset
26952
26953  and 
26954 \begin_inset Flex Code
26955 status collapsed
26956
26957 \begin_layout Plain Layout
26958 latexcmd
26959 \end_layout
26960
26961 \end_inset
26962
26963  are optional.
26964  If no 
26965 \begin_inset Flex Code
26966 status collapsed
26967
26968 \begin_layout Plain Layout
26969 latexcmd
26970 \end_layout
26971
26972 \end_inset
26973
26974  is given,
26975  the 
26976 \begin_inset Flex Code
26977 status collapsed
26978
26979 \begin_layout Plain Layout
26980 LyXName
26981 \end_layout
26982
26983 \end_inset
26984
26985  will be output to \SpecialChar LaTeX
26986 .
26987 \end_layout
26988
26989 \begin_layout Standard
26990 Note further:
26991 \end_layout
26992
26993 \begin_layout Itemize
26994 Capitalization indicates that the command also has a capitalized form (
26995 \begin_inset Flex Code
26996 status collapsed
26997
26998 \begin_layout Plain Layout
26999
27000 \backslash
27001 Latexcmd
27002 \end_layout
27003
27004 \end_inset
27005
27006  vs.
27007  
27008 \begin_inset Flex Code
27009 status collapsed
27010
27011 \begin_layout Plain Layout
27012
27013 \backslash
27014 latexcmd
27015 \end_layout
27016
27017 \end_inset
27018
27019 ).
27020  These usually enforce up-casing of name prefixes (
27021 \emph on
27022 von Goethe
27023 \emph default
27024  
27025 \begin_inset Formula $\Rightarrow$
27026 \end_inset
27027
27028  
27029 \emph on
27030 Von Goethe
27031 \emph default
27032 ).
27033 \end_layout
27034
27035 \begin_layout Itemize
27036 Brackets 
27037 \begin_inset Flex Code
27038 status collapsed
27039
27040 \begin_layout Plain Layout
27041 []
27042 \end_layout
27043
27044 \end_inset
27045
27046  indicate the number of optional arguments (there can be 0–2).
27047 \end_layout
27048
27049 \begin_layout Itemize
27050 A star 
27051 \begin_inset Flex Code
27052 status collapsed
27053
27054 \begin_layout Plain Layout
27055 *
27056 \end_layout
27057
27058 \end_inset
27059
27060  indicates there is a starred version of the command (
27061 \begin_inset Flex Code
27062 status collapsed
27063
27064 \begin_layout Plain Layout
27065
27066 \backslash
27067 latexcmd*
27068 \end_layout
27069
27070 \end_inset
27071
27072  vs.
27073  
27074 \begin_inset Flex Code
27075 status collapsed
27076
27077 \begin_layout Plain Layout
27078
27079 \backslash
27080 latexcmd
27081 \end_layout
27082
27083 \end_inset
27084
27085 ).
27086  
27087 \end_layout
27088
27089 \begin_deeper
27090 \begin_layout Standard
27091 By default,
27092  the starred version means:
27093  Output all authors even if it should be shortened with 
27094 \begin_inset Quotes eld
27095 \end_inset
27096
27097 et al.
27098 \begin_inset Quotes erd
27099 \end_inset
27100
27101  due to the 
27102 \begin_inset Flex Code
27103 status collapsed
27104
27105 \begin_layout Plain Layout
27106 MaxCiteNames
27107 \end_layout
27108
27109 \end_inset
27110
27111  threshold.
27112 \end_layout
27113
27114 \begin_layout Standard
27115 If the star has a different meaning for a given command,
27116  it can be specified in angle brackets:
27117  
27118 \begin_inset Flex Code
27119 status collapsed
27120
27121 \begin_layout Plain Layout
27122 <!_stardesc!_stardesctooltip>
27123 \end_layout
27124
27125 \end_inset
27126
27127 .
27128  Maximal two translatable macro keywords,
27129  marked by the prefix 
27130 \begin_inset Flex Code
27131 status collapsed
27132
27133 \begin_layout Plain Layout
27134 !_
27135 \end_layout
27136
27137 \end_inset
27138
27139 ,
27140  can be given.
27141  The first points to the string that replaces the 
27142 \begin_inset Quotes eld
27143 \end_inset
27144
27145 Full aut&hor list
27146 \begin_inset Quotes erd
27147 \end_inset
27148
27149  checkbox label in the citation dialog,
27150  the second one to an optional tool tip for this checkbox.
27151  
27152 \end_layout
27153
27154 \begin_layout Standard
27155 Note that these two macros have to be defined in a 
27156 \begin_inset Flex Code
27157 status collapsed
27158
27159 \begin_layout Plain Layout
27160 CiteFormat
27161 \end_layout
27162
27163 \end_inset
27164
27165  (see next section),
27166  dropping the 
27167 \begin_inset Flex Code
27168 status collapsed
27169
27170 \begin_layout Plain Layout
27171 !
27172 \end_layout
27173
27174 \end_inset
27175
27176  from the prefix,
27177  like this:
27178  
27179 \end_layout
27180
27181 \begin_layout LyX-Code
27182 _stardesc Sta&rred command label
27183 \end_layout
27184
27185 \begin_layout LyX-Code
27186 _stardesctooltip Tooltip for the starred command checkbox.
27187 \end_layout
27188
27189 \end_deeper
27190 \begin_layout Itemize
27191 A dollar sign 
27192 \begin_inset Flex Code
27193 status collapsed
27194
27195 \begin_layout Plain Layout
27196 $
27197 \end_layout
27198
27199 \end_inset
27200
27201  indicates that this command features 
27202 \begin_inset Quotes eld
27203 \end_inset
27204
27205 qualified citation lists
27206 \begin_inset Quotes erd
27207 \end_inset
27208
27209 .
27210  This is a 
27211 \family sans
27212 Biblatex
27213 \family default
27214 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
27215  Please refer to the 
27216 \family sans
27217 Biblatex
27218 \family default
27219  manual for details.
27220 \change_inserted -712698321 1526898670
27221
27222 \end_layout
27223
27224 \begin_layout Standard
27225
27226 \change_inserted -712698321 1526899524
27227 If you want to add a cite command to a cite engine (e.
27228 \begin_inset space \thinspace{}
27229 \end_inset
27230
27231 g.,
27232  add a specific command provided by a class),
27233  you can use 
27234 \begin_inset Flex Code
27235 status collapsed
27236
27237 \begin_layout Plain Layout
27238
27239 \change_inserted -712698321 1526898768
27240 AddToCiteEngine <engine type> \SpecialChar ldots
27241  End
27242 \change_unchanged
27243
27244 \end_layout
27245
27246 \end_inset
27247
27248 .
27249  Note that only cite commands that do not exist yet are added.
27250 \change_unchanged
27251
27252 \end_layout
27253
27254 \begin_layout Subsection
27255 \begin_inset CommandInset label
27256 LatexCommand label
27257 name "subsec:Citation-format-description"
27258
27259 \end_inset
27260
27261 Cite format description
27262 \end_layout
27263
27264 \begin_layout Standard
27265 The 
27266 \begin_inset Flex Code
27267 status collapsed
27268
27269 \begin_layout Plain Layout
27270 CiteFormat
27271 \end_layout
27272
27273 \end_inset
27274
27275  blocks are used to describe how bibliographic information should be displayed,
27276  both within \SpecialChar LyX
27277  itself (in the citation dialog and in tooltips,
27278  for example) and in XHTML output.
27279  Such a block might look like this:
27280 \end_layout
27281
27282 \begin_layout LyX-Code
27283 CiteFormat
27284 \end_layout
27285
27286 \begin_layout LyX-Code
27287  article ...
27288 \end_layout
27289
27290 \begin_layout LyX-Code
27291  book ...
27292 \end_layout
27293
27294 \begin_layout LyX-Code
27295 End
27296 \end_layout
27297
27298 \begin_layout Standard
27299 or
27300 \end_layout
27301
27302 \begin_layout LyX-Code
27303 CiteFormat
27304 \end_layout
27305
27306 \begin_layout LyX-Code
27307  cite ...
27308 \end_layout
27309
27310 \begin_layout LyX-Code
27311  citet*[][] ...
27312 \end_layout
27313
27314 \begin_layout LyX-Code
27315 End
27316 \end_layout
27317
27318 \begin_layout Standard
27319 In the first case,
27320  the individual lines define how the bibliographic information associated with an article or book,
27321  respectively,
27322  is to be displayed,
27323  and such a definition can be given for any 
27324 \begin_inset Quotes els
27325 \end_inset
27326
27327 entry type
27328 \begin_inset Quotes ers
27329 \end_inset
27330
27331  that might be present in a Bib\SpecialChar TeX
27332  file.
27333  \SpecialChar LyX
27334  defines a default format in the source code that will be used if no specific definition has been given.
27335  \SpecialChar LyX
27336  predefines several formats in the file 
27337 \begin_inset Flex Code
27338 status collapsed
27339
27340 \begin_layout Plain Layout
27341 stdciteformats.inc
27342 \end_layout
27343
27344 \end_inset
27345
27346 ,
27347  which is included in most of \SpecialChar LyX
27348 's document classes.
27349 \end_layout
27350
27351 \begin_layout Standard
27352 In the second case,
27353  the lines define how a specific citation command (in the example 
27354 \begin_inset Flex Code
27355 status collapsed
27356
27357 \begin_layout Plain Layout
27358
27359 \backslash
27360 cite
27361 \end_layout
27362
27363 \end_inset
27364
27365 ,
27366  
27367 \begin_inset Flex Code
27368 status collapsed
27369
27370 \begin_layout Plain Layout
27371
27372 \backslash
27373 citet
27374 \end_layout
27375
27376 \end_inset
27377
27378 ) is to be displayed on the citation inset label,
27379  in the citation dialog,
27380  menu or XHTML output.
27381  \SpecialChar LyX
27382  defines such formats for the citation style variants it supports via 
27383 \family sans
27384 Document\SpecialChar menuseparator
27385 Setting\SpecialChar menuseparator
27386 Bibliography\SpecialChar ldots
27387
27388 \family default
27389  in specific 
27390 \begin_inset Flex Code
27391 status collapsed
27392
27393 \begin_layout Plain Layout
27394 *.citeengine
27395 \end_layout
27396
27397 \end_inset
27398
27399  files that are shipped with \SpecialChar LyX
27400  (see 
27401 \begin_inset CommandInset ref
27402 LatexCommand ref
27403 reference "subsec:Cite-Engine-Files"
27404 plural "false"
27405 caps "false"
27406 noprefix "false"
27407 nolink "false"
27408
27409 \end_inset
27410
27411 ).
27412 \end_layout
27413
27414 \begin_layout Standard
27415 The definitions use a simple language that allows Bib\SpecialChar TeX
27416  keys to be replaced with their values.
27417  Keys should be enclosed in 
27418 \begin_inset Flex Code
27419 status collapsed
27420
27421 \begin_layout Plain Layout
27422 %
27423 \end_layout
27424
27425 \end_inset
27426
27427  signs,
27428  e.g.:
27429  
27430 \begin_inset Flex Code
27431 status collapsed
27432
27433 \begin_layout Plain Layout
27434 %author%
27435 \end_layout
27436
27437 \end_inset
27438
27439 .
27440  So a simple definition might look like this:
27441 \end_layout
27442
27443 \begin_layout LyX-Code
27444 misc %author%,
27445  
27446 \begin_inset Quotes eld
27447 \end_inset
27448
27449 %title%
27450 \begin_inset Quotes erd
27451 \end_inset
27452
27453 .
27454 \end_layout
27455
27456 \begin_layout Standard
27457 This would print the author,
27458  followed by a comma,
27459  followed by the title,
27460  in quotes,
27461  followed by a period.
27462 \end_layout
27463
27464 \begin_layout Standard
27465 Of course,
27466  sometimes you may want to print a key only if it exists.
27467  This can be done by using a conditional construction,
27468  such as:
27469  
27470 \begin_inset Flex Code
27471 status collapsed
27472
27473 \begin_layout Plain Layout
27474 {%volume%[[vol.
27475 \begin_inset space ~
27476 \end_inset
27477
27478 %volume%]]}
27479 \end_layout
27480
27481 \end_inset
27482
27483 .
27484  This says:
27485  If the 
27486 \begin_inset Flex Code
27487 status collapsed
27488
27489 \begin_layout Plain Layout
27490 volume
27491 \end_layout
27492
27493 \end_inset
27494
27495  key exists,
27496  then print 
27497 \begin_inset Quotes eld
27498 \end_inset
27499
27500 vol.
27501 \begin_inset space ~
27502 \end_inset
27503
27504
27505 \begin_inset Quotes erd
27506 \end_inset
27507
27508  followed by the volume key.
27509  It is also possible to have an else clause in the conditional,
27510  such as:
27511 \begin_inset Newline newline
27512 \end_inset
27513
27514
27515 \begin_inset Flex Code
27516 status collapsed
27517
27518 \begin_layout Plain Layout
27519 {%author%[[%author%]][[%editor%,
27520  ed.]]}
27521 \end_layout
27522
27523 \end_inset
27524
27525 .
27526 \begin_inset Newline newline
27527 \end_inset
27528
27529 Here,
27530  the 
27531 \begin_inset Flex Code
27532 status collapsed
27533
27534 \begin_layout Plain Layout
27535 author
27536 \end_layout
27537
27538 \end_inset
27539
27540  key is printed if it exists;
27541  otherwise,
27542  the editor key is printed,
27543  followed by 
27544 \begin_inset Quotes eld
27545 \end_inset
27546
27547 ,
27548 \begin_inset space ~
27549 \end_inset
27550
27551 ed.
27552 \begin_inset Quotes erd
27553 \end_inset
27554
27555  Note that the key is again enclosed in 
27556 \begin_inset Flex Code
27557 status collapsed
27558
27559 \begin_layout Plain Layout
27560 %
27561 \end_layout
27562
27563 \end_inset
27564
27565  signs;
27566  the entire conditional is enclosed in braces;
27567  and the if and else clauses are enclosed in double brackets,
27568  
27569 \begin_inset Quotes eld
27570 \end_inset
27571
27572
27573 \begin_inset Flex Code
27574 status collapsed
27575
27576 \begin_layout Plain Layout
27577 [[
27578 \end_layout
27579
27580 \end_inset
27581
27582
27583 \begin_inset Quotes eld
27584 \end_inset
27585
27586  and 
27587 \begin_inset Quotes eld
27588 \end_inset
27589
27590
27591 \begin_inset Flex Code
27592 status collapsed
27593
27594 \begin_layout Plain Layout
27595 ]]
27596 \end_layout
27597
27598 \end_inset
27599
27600
27601 \begin_inset Quotes erd
27602 \end_inset
27603
27604 .
27605  There must be no space between any of these.
27606 \end_layout
27607
27608 \begin_layout Standard
27609 Next to the entry keys,
27610  there are some special keys that can be used for these conditionals:
27611 \end_layout
27612
27613 \begin_layout Itemize
27614 \begin_inset Flex Code
27615 status collapsed
27616
27617 \begin_layout Plain Layout
27618 {%dialog%[[true]][[false]]}
27619 \end_layout
27620
27621 \end_inset
27622
27623 :
27624  process the 
27625 \begin_inset Quotes eld
27626 \end_inset
27627
27628 true
27629 \begin_inset Quotes erd
27630 \end_inset
27631
27632  part for dialogs and menus,
27633  the 
27634 \begin_inset Quotes eld
27635 \end_inset
27636
27637 false
27638 \begin_inset Quotes erd
27639 \end_inset
27640
27641  part for other contexts (workarea,
27642  export)
27643 \end_layout
27644
27645 \begin_layout Itemize
27646 \begin_inset Flex Code
27647 status collapsed
27648
27649 \begin_layout Plain Layout
27650 {%export%[[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  part for export and menus,
27665  the 
27666 \begin_inset Quotes eld
27667 \end_inset
27668
27669 false
27670 \begin_inset Quotes erd
27671 \end_inset
27672
27673  part for other contexts (workarea,
27674  dialog)
27675 \end_layout
27676
27677 \begin_layout Itemize
27678 \begin_inset Flex Code
27679 status collapsed
27680
27681 \begin_layout Plain Layout
27682 {%next%[[true]]}
27683 \end_layout
27684
27685 \end_inset
27686
27687 :
27688  process the 
27689 \begin_inset Quotes eld
27690 \end_inset
27691
27692 true
27693 \begin_inset Quotes erd
27694 \end_inset
27695
27696  part if another item follows (e.
27697 \begin_inset space \thinspace{}
27698 \end_inset
27699
27700 g.,
27701  in a citation with multiple keys)
27702 \end_layout
27703
27704 \begin_layout Itemize
27705 \begin_inset Flex Code
27706 status collapsed
27707
27708 \begin_layout Plain Layout
27709 {%second%[[true]][[false]]}
27710 \end_layout
27711
27712 \end_inset
27713
27714 :
27715  process the 
27716 \begin_inset Quotes eld
27717 \end_inset
27718
27719 true
27720 \begin_inset Quotes erd
27721 \end_inset
27722
27723  if this is the second of multiple items,
27724  else the 
27725 \begin_inset Quotes eld
27726 \end_inset
27727
27728 false
27729 \begin_inset Quotes erd
27730 \end_inset
27731
27732  part
27733 \end_layout
27734
27735 \begin_layout Itemize
27736 \begin_inset Flex Code
27737 status collapsed
27738
27739 \begin_layout Plain Layout
27740 {%ifstar%[[true]][[false]]}
27741 \end_layout
27742
27743 \end_inset
27744
27745 :
27746  process the 
27747 \begin_inset Quotes eld
27748 \end_inset
27749
27750 true
27751 \begin_inset Quotes erd
27752 \end_inset
27753
27754  part for starred citation commands (such as 
27755 \begin_inset Flex Code
27756 status collapsed
27757
27758 \begin_layout Plain Layout
27759
27760 \backslash
27761 cite*
27762 \end_layout
27763
27764 \end_inset
27765
27766 ),
27767  the false part for unstarred
27768 \end_layout
27769
27770 \begin_layout Itemize
27771 \begin_inset Flex Code
27772 status collapsed
27773
27774 \begin_layout Plain Layout
27775 {%ifentrytype:<type>%[[true]][[false]]}
27776 \end_layout
27777
27778 \end_inset
27779
27780 :
27781  process the 
27782 \begin_inset Quotes eld
27783 \end_inset
27784
27785 true
27786 \begin_inset Quotes erd
27787 \end_inset
27788
27789  if the current entry type matches 
27790 \begin_inset Flex Code
27791 status collapsed
27792
27793 \begin_layout Plain Layout
27794 <type>
27795 \end_layout
27796
27797 \end_inset
27798
27799 ,
27800  else the false part (e.g.,
27801  in a citation definition:
27802  
27803 \begin_inset Flex Code
27804 status collapsed
27805
27806 \begin_layout Plain Layout
27807 {%ifentrytype:book%[[this is a book]][[this is no book]]}
27808 \end_layout
27809
27810 \end_inset
27811
27812 )
27813 \end_layout
27814
27815 \begin_layout Itemize
27816 \begin_inset Flex Code
27817 status collapsed
27818
27819 \begin_layout Plain Layout
27820 {%ifmultiple:<authortype>%[[true]][[false]]}
27821 \end_layout
27822
27823 \end_inset
27824
27825 :
27826  process the 
27827 \begin_inset Quotes eld
27828 \end_inset
27829
27830 true
27831 \begin_inset Quotes erd
27832 \end_inset
27833
27834  if the current author type (author,
27835  editor etc.) has multiple authors,
27836  else the false part (e.g.,
27837  in a bibliography definition:
27838  
27839 \begin_inset Flex Code
27840 status collapsed
27841
27842 \begin_layout Plain Layout
27843 {%ifmultiple:editor%[[eds.]][[ed.]]}
27844 \end_layout
27845
27846 \end_inset
27847
27848 )
27849 \end_layout
27850
27851 \begin_layout Itemize
27852 \begin_inset Flex Code
27853 status collapsed
27854
27855 \begin_layout Plain Layout
27856 {%ifqualified%[[true]][[false]]}
27857 \end_layout
27858
27859 \end_inset
27860
27861 :
27862  process the 
27863 \begin_inset Quotes eld
27864 \end_inset
27865
27866 true
27867 \begin_inset Quotes erd
27868 \end_inset
27869
27870  part if the current citation is a qualified citation list (a specific 
27871 \family sans
27872 Biblatex
27873 \family default
27874  format for multi-reference citations),
27875  the false part if this is not the case.
27876 \end_layout
27877
27878 \begin_layout Standard
27879 We said that 
27880 \begin_inset Flex Code
27881 status collapsed
27882
27883 \begin_layout Plain Layout
27884 %author%
27885 \end_layout
27886
27887 \end_inset
27888
27889  prints the author key as it is recorded in the bibliography file.
27890  This might not be what you want,
27891  since it will result in a string such as 
27892 \begin_inset Quotes eld
27893 \end_inset
27894
27895 Miller,
27896  Peter and Smith,
27897  Mary and White,
27898  Jane
27899 \begin_inset Quotes erd
27900 \end_inset
27901
27902  (since 
27903 \begin_inset Quotes eld
27904 \end_inset
27905
27906 and
27907 \begin_inset Quotes erd
27908 \end_inset
27909
27910  is used by Bib\SpecialChar TeX
27911  to delimit authors).
27912  \SpecialChar LyX
27913  therefore provides some methods to get properly formatted name lists (which will also get translated).
27914  The following keys are provided:
27915 \end_layout
27916
27917 \begin_layout Enumerate
27918 For name lists with pre- and surname,
27919  suitable for the main authors/editors of a bibliography item.
27920  The 
27921 \begin_inset Flex Code
27922 status collapsed
27923
27924 \begin_layout Plain Layout
27925 <nametype>
27926 \end_layout
27927
27928 \end_inset
27929
27930  part denotes the kind of list that is requested (e.g.
27931  
27932 \begin_inset Flex Code
27933 status collapsed
27934
27935 \begin_layout Plain Layout
27936 <nametype:author>
27937 \end_layout
27938
27939 \end_inset
27940
27941 ):
27942 \end_layout
27943
27944 \begin_deeper
27945 \begin_layout Itemize
27946 \begin_inset Flex Code
27947 status collapsed
27948
27949 \begin_layout Plain Layout
27950 %abbrvnames:<nametype>%
27951 \end_layout
27952
27953 \end_inset
27954
27955 :
27956  Provides a name list which is abbreviated (with 
27957 \begin_inset Quotes eld
27958 \end_inset
27959
27960 et al.
27961 \begin_inset Quotes erd
27962 \end_inset
27963
27964 ) when 
27965 \begin_inset Flex Code
27966 status collapsed
27967
27968 \begin_layout Plain Layout
27969 MaxCiteNames
27970 \end_layout
27971
27972 \end_inset
27973
27974  is reached.
27975 \end_layout
27976
27977 \begin_layout Itemize
27978 \begin_inset Flex Code
27979 status collapsed
27980
27981 \begin_layout Plain Layout
27982 %fullnames:<nametype>%
27983 \end_layout
27984
27985 \end_inset
27986
27987 :
27988  Provides a full name list (never abbreviated with 
27989 \begin_inset Quotes eld
27990 \end_inset
27991
27992 et al.
27993 \begin_inset Quotes erd
27994 \end_inset
27995
27996 ).
27997 \end_layout
27998
27999 \begin_layout Itemize
28000 \begin_inset Flex Code
28001 status collapsed
28002
28003 \begin_layout Plain Layout
28004 %forceabbrvnames:<nametype>%
28005 \end_layout
28006
28007 \end_inset
28008
28009 :
28010  Provides a name list which is always abbreviated (with 
28011 \begin_inset Quotes eld
28012 \end_inset
28013
28014 et al.
28015 \begin_inset Quotes erd
28016 \end_inset
28017
28018 ) irrespective of 
28019 \begin_inset Flex Code
28020 status collapsed
28021
28022 \begin_layout Plain Layout
28023 MaxCiteNames
28024 \end_layout
28025
28026 \end_inset
28027
28028 .
28029 \end_layout
28030
28031 \end_deeper
28032 \begin_layout Enumerate
28033 Alternative name lists with pre- and surname,
28034  if the order of pre- and surname inside the bibliography item differs (as in:
28035  
28036 \begin_inset Quotes eld
28037 \end_inset
28038
28039 Miller,
28040  John:
28041  Some text,
28042  in:
28043  Mary Smith,
28044  ed.:
28045  A volume
28046 \begin_inset Quotes erd
28047 \end_inset
28048
28049 ):
28050 \end_layout
28051
28052 \begin_deeper
28053 \begin_layout Itemize
28054 \begin_inset Flex Code
28055 status collapsed
28056
28057 \begin_layout Plain Layout
28058 %abbrvbynames:<nametype>%
28059 \end_layout
28060
28061 \end_inset
28062
28063 :
28064  Provides a name list which is abbreviated (with 
28065 \begin_inset Quotes eld
28066 \end_inset
28067
28068 et al.
28069 \begin_inset Quotes erd
28070 \end_inset
28071
28072 ) when 
28073 \begin_inset Flex Code
28074 status collapsed
28075
28076 \begin_layout Plain Layout
28077 MaxCiteNames
28078 \end_layout
28079
28080 \end_inset
28081
28082  is reached.
28083 \end_layout
28084
28085 \begin_layout Itemize
28086 \begin_inset Flex Code
28087 status collapsed
28088
28089 \begin_layout Plain Layout
28090 %fullbynames:<nametype>%
28091 \end_layout
28092
28093 \end_inset
28094
28095 :
28096  Provides a full name list (never abbreviated with 
28097 \begin_inset Quotes eld
28098 \end_inset
28099
28100 et al.
28101 \begin_inset Quotes erd
28102 \end_inset
28103
28104 ).
28105 \end_layout
28106
28107 \begin_layout Itemize
28108 \begin_inset Flex Code
28109 status collapsed
28110
28111 \begin_layout Plain Layout
28112 %forceabbrvbynames:<nametype>%
28113 \end_layout
28114
28115 \end_inset
28116
28117 :
28118  Provides a name list which is always abbreviated (with 
28119 \begin_inset Quotes eld
28120 \end_inset
28121
28122 et al.
28123 \begin_inset Quotes erd
28124 \end_inset
28125
28126 ) irrespective of 
28127 \begin_inset Flex Code
28128 status collapsed
28129
28130 \begin_layout Plain Layout
28131 MaxCiteNames
28132 \end_layout
28133
28134 \end_inset
28135
28136 .
28137 \end_layout
28138
28139 \end_deeper
28140 \begin_layout Enumerate
28141 And finally name lists which consist of family names only,
28142  as used in author-year citation labels.
28143  These do not take a 
28144 \begin_inset Flex Code
28145 status collapsed
28146
28147 \begin_layout Plain Layout
28148 <nametype>
28149 \end_layout
28150
28151 \end_inset
28152
28153  part,
28154  but always return either an author list or,
28155  if this does not exist,
28156  an editor list (as common in author-year labels):
28157 \end_layout
28158
28159 \begin_deeper
28160 \begin_layout Itemize
28161 \begin_inset Flex Code
28162 status collapsed
28163
28164 \begin_layout Plain Layout
28165 %abbrvciteauthor%
28166 \end_layout
28167
28168 \end_inset
28169
28170 :
28171  Provides a name list which is abbreviated (with 
28172 \begin_inset Quotes eld
28173 \end_inset
28174
28175 et al.
28176 \begin_inset Quotes erd
28177 \end_inset
28178
28179 ) when 
28180 \begin_inset Flex Code
28181 status collapsed
28182
28183 \begin_layout Plain Layout
28184 MaxCiteNames
28185 \end_layout
28186
28187 \end_inset
28188
28189  is reached.
28190 \end_layout
28191
28192 \begin_layout Itemize
28193 \begin_inset Flex Code
28194 status collapsed
28195
28196 \begin_layout Plain Layout
28197 %fullciteauthor%
28198 \end_layout
28199
28200 \end_inset
28201
28202 :
28203  Provides a full name list (never abbreviated with 
28204 \begin_inset Quotes eld
28205 \end_inset
28206
28207 et al.
28208 \begin_inset Quotes erd
28209 \end_inset
28210
28211 ).
28212 \end_layout
28213
28214 \begin_layout Itemize
28215 \begin_inset Flex Code
28216 status collapsed
28217
28218 \begin_layout Plain Layout
28219 %forceabbrvciteauthor%
28220 \end_layout
28221
28222 \end_inset
28223
28224 :
28225  Provides a name list which is always abbreviated (with 
28226 \begin_inset Quotes eld
28227 \end_inset
28228
28229 et al.
28230 \begin_inset Quotes erd
28231 \end_inset
28232
28233 ) irrespective of 
28234 \begin_inset Flex Code
28235 status collapsed
28236
28237 \begin_layout Plain Layout
28238 MaxCiteNames
28239 \end_layout
28240
28241 \end_inset
28242
28243 .
28244 \end_layout
28245
28246 \end_deeper
28247 \begin_layout Standard
28248 The order of pre- and surname in the former two lists can be adjusted by these macros:
28249 \end_layout
28250
28251 \begin_layout Itemize
28252 \begin_inset Flex Code
28253 status collapsed
28254
28255 \begin_layout Plain Layout
28256 !firstnameform %surname%,
28257  %prename%
28258 \end_layout
28259
28260 \end_inset
28261
28262  (first author in lists of type 1)
28263 \end_layout
28264
28265 \begin_layout Itemize
28266 \begin_inset Flex Code
28267 status collapsed
28268
28269 \begin_layout Plain Layout
28270 !othernameform %surname%,
28271  %prename%
28272 \end_layout
28273
28274 \end_inset
28275
28276  (other authors in lists of type 1)
28277 \end_layout
28278
28279 \begin_layout Itemize
28280 \begin_inset Flex Code
28281 status collapsed
28282
28283 \begin_layout Plain Layout
28284 !firstbynameform %prename% %surname%
28285 \end_layout
28286
28287 \end_inset
28288
28289  (first author in lists of type 2)
28290 \end_layout
28291
28292 \begin_layout Itemize
28293 \begin_inset Flex Code
28294 status collapsed
28295
28296 \begin_layout Plain Layout
28297 !otherbynameform %prename% %surname%
28298 \end_layout
28299
28300 \end_inset
28301
28302  (other authors in lists of type 2)
28303 \end_layout
28304
28305 \begin_layout Standard
28306 This allows you to configure namings like 
28307 \begin_inset Quotes eld
28308 \end_inset
28309
28310 Miller,
28311  Peter and Mary Smith:
28312  \SpecialChar ldots
28313 ,
28314  in:
28315  John Doe and Pat Green,
28316  eds.:\SpecialChar ldots
28317
28318 \begin_inset Quotes erd
28319 \end_inset
28320
28321 .
28322 \end_layout
28323
28324 \begin_layout Standard
28325 There is one other piece of syntax available in definitions,
28326  which looks like this:
28327  
28328 \begin_inset Flex Code
28329 status collapsed
28330
28331 \begin_layout Plain Layout
28332 {!<i>!}
28333 \end_layout
28334
28335 \end_inset
28336
28337 .
28338  This defines a piece of formatting information that is to be used when creating 
28339 \begin_inset Quotes eld
28340 \end_inset
28341
28342 rich text
28343 \begin_inset Quotes erd
28344 \end_inset
28345
28346 .
28347  Obviously,
28348  we do not want to output HTML tags when writing plain text,
28349  so they should be wrapped in 
28350 \begin_inset Quotes eld
28351 \end_inset
28352
28353 {!
28354 \begin_inset Quotes erd
28355 \end_inset
28356
28357  and 
28358 \begin_inset Quotes eld
28359 \end_inset
28360
28361 !}
28362 \begin_inset Quotes erd
28363 \end_inset
28364
28365 .
28366 \end_layout
28367
28368 \begin_layout Standard
28369 Two special sorts of definitions are also possible in a 
28370 \begin_inset Flex Code
28371 status collapsed
28372
28373 \begin_layout Plain Layout
28374 CiteFormat
28375 \end_layout
28376
28377 \end_inset
28378
28379  block.
28380  An example of the first would be:
28381 \end_layout
28382
28383 \begin_layout LyX-Code
28384 !quotetitle 
28385 \begin_inset Quotes eld
28386 \end_inset
28387
28388 %title%
28389 \begin_inset Quotes erd
28390 \end_inset
28391
28392
28393 \end_layout
28394
28395 \begin_layout Standard
28396 This is an abbreviation,
28397  or macro,
28398  and it can be used by treating it as if it were a key:
28399  
28400 \begin_inset Flex Code
28401 status collapsed
28402
28403 \begin_layout Plain Layout
28404 %!quotetitle%
28405 \end_layout
28406
28407 \end_inset
28408
28409 .
28410  \SpecialChar LyX
28411  will treat 
28412 \begin_inset Flex Code
28413 status collapsed
28414
28415 \begin_layout Plain Layout
28416 %!quotetitle%
28417 \end_layout
28418
28419 \end_inset
28420
28421  exactly as it would treat its definition.
28422  So,
28423  let us issue the obvious 
28424 \emph on
28425 warning
28426 \emph default
28427 .
28428  Do not do this:
28429 \end_layout
28430
28431 \begin_layout LyX-Code
28432 !funfun %funfun%
28433 \end_layout
28434
28435 \begin_layout Standard
28436 or anything like it.
28437  \SpecialChar LyX
28438  shouldn't go into an infinite loop,
28439  but it may go into a long one before it gives up.
28440 \end_layout
28441
28442 \begin_layout Standard
28443 The second sort of special definition might look like this:
28444 \end_layout
28445
28446 \begin_layout LyX-Code
28447 B_pptext pp.
28448 \end_layout
28449
28450 \begin_layout Standard
28451 This defines a translatable piece of text,
28452  which allows relevant parts of the bibliography or citation to be translated.
28453  It can be included in a definition by treating it as a key:
28454  
28455 \begin_inset Flex Code
28456 status collapsed
28457
28458 \begin_layout Plain Layout
28459 %B_pptext%
28460 \end_layout
28461
28462 \end_inset
28463
28464 .
28465  Note that there are two different translation paths:
28466  All definitions starting with 
28467 \begin_inset Flex Code
28468 status collapsed
28469
28470 \begin_layout Plain Layout
28471 B_
28472 \end_layout
28473
28474 \end_inset
28475
28476 ,
28477  such as in the example above,
28478  will be translated to the currently active buffer language (so the translation will match the generated document).
28479  All definitions starting with underscore only will be translated to the GUI language.
28480  This is the proper translation for strings that only occur in the dialogs or on buttons,
28481  such as this one:
28482 \end_layout
28483
28484 \begin_layout LyX-Code
28485 _addtobib Add to bibliography only.
28486 \end_layout
28487
28488 \begin_layout Standard
28489 Several of these translatable strings are predefined in 
28490 \begin_inset Flex Code
28491 status collapsed
28492
28493 \begin_layout Plain Layout
28494 stdciteformats.inc
28495 \end_layout
28496
28497 \end_inset
28498
28499  and the diverse 
28500 \begin_inset Flex Code
28501 status collapsed
28502
28503 \begin_layout Plain Layout
28504 *.citeengine
28505 \end_layout
28506
28507 \end_inset
28508
28509  files.
28510  Note that these are not macros,
28511  in the sense just defined.
28512  They will not be expanded.
28513 \end_layout
28514
28515 \begin_layout Standard
28516 So here then is an example that uses several of these features:
28517 \begin_inset VSpace defskip
28518 \end_inset
28519
28520
28521 \end_layout
28522
28523 \begin_layout Standard
28524 \noindent
28525
28526 \family sans
28527 !authoredit {%author%[[%author%,
28528  ]][[{%editor%[[%editor%,
28529  %B_edtext%,
28530  ]]}]]}
28531 \end_layout
28532
28533 \begin_layout Standard
28534 \begin_inset VSpace defskip
28535 \end_inset
28536
28537 This defines a macro that prints the author,
28538  followed by a comma,
28539  if the 
28540 \begin_inset Flex Code
28541 status collapsed
28542
28543 \begin_layout Plain Layout
28544 author
28545 \end_layout
28546
28547 \end_inset
28548
28549  key is defined,
28550  or else prints the name of the editor,
28551  followed by the 
28552 \begin_inset Flex Code
28553 status collapsed
28554
28555 \begin_layout Plain Layout
28556 B_edtext
28557 \end_layout
28558
28559 \end_inset
28560
28561  or its translation (it is by default 
28562 \begin_inset Quotes eld
28563 \end_inset
28564
28565 ed.
28566 \begin_inset Quotes erd
28567 \end_inset
28568
28569 ),
28570  if the 
28571 \begin_inset Flex Code
28572 status collapsed
28573
28574 \begin_layout Plain Layout
28575 editor
28576 \end_layout
28577
28578 \end_inset
28579
28580  key is defined.
28581  Note that this is in fact defined in 
28582 \begin_inset Flex Code
28583 status collapsed
28584
28585 \begin_layout Plain Layout
28586 stdciteformats.inc
28587 \end_layout
28588
28589 \end_inset
28590
28591 ,
28592  so you can use it in your own definitions,
28593  or re-definitions,
28594  if you load that file first.
28595 \end_layout
28596
28597 \begin_layout Section
28598 \begin_inset CommandInset label
28599 LatexCommand label
28600 name "sec:Tags-for-XHTML"
28601
28602 \end_inset
28603
28604 Tags for XHTML output
28605 \end_layout
28606
28607 \begin_layout Standard
28608 As with \SpecialChar LaTeX
28609  or DocBook,
28610  the format of \SpecialChar LyX
28611 's XHTML output is also controlled by layout information.
28612  In general,
28613  \SpecialChar LyX
28614  provides sensible defaults and,
28615  as mentioned earlier,
28616  it will even construct default CSS style rules from the other layout tags.
28617  For example,
28618  \SpecialChar LyX
28619  will attempt to use the information provided in the 
28620 \begin_inset Flex Code
28621 status collapsed
28622
28623 \begin_layout Plain Layout
28624 Font
28625 \end_layout
28626
28627 \end_inset
28628
28629  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
28630 \end_layout
28631
28632 \begin_layout Standard
28633 In many cases,
28634  then,
28635  you may not have to do anything at all to get acceptable XHTML output for your own environments,
28636  custom insets,
28637  and so forth.
28638  But in some cases you will,
28639  and so \SpecialChar LyX
28640  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
28641 \end_layout
28642
28643 \begin_layout Standard
28644 Note that there are two tags,
28645  
28646 \begin_inset Flex Code
28647 status collapsed
28648
28649 \begin_layout Plain Layout
28650 HTMLPreamble
28651 \end_layout
28652
28653 \end_inset
28654
28655  and 
28656 \begin_inset Flex Code
28657 status collapsed
28658
28659 \begin_layout Plain Layout
28660 AddToHTMLPreamble
28661 \end_layout
28662
28663 \end_inset
28664
28665  that may appear outside style and inset declarations.
28666  See 
28667 \begin_inset CommandInset ref
28668 LatexCommand ref
28669 reference "subsec:General-text-class"
28670 nolink "false"
28671
28672 \end_inset
28673
28674  for details on these.
28675 \end_layout
28676
28677 \begin_layout Subsection
28678 \begin_inset CommandInset label
28679 LatexCommand label
28680 name "subsec:Paragraph-Style-XHTML"
28681
28682 \end_inset
28683
28684 Paragraph styles
28685 \end_layout
28686
28687 \begin_layout Standard
28688 The sort of XHTML \SpecialChar LyX
28689  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
28690  a command,
28691  or an environment,
28692  where this is itself determined by the contents of the corresponding 
28693 \begin_inset Flex Code
28694 status collapsed
28695
28696 \begin_layout Plain Layout
28697 \SpecialChar LaTeX
28698 Type
28699 \end_layout
28700
28701 \end_inset
28702
28703  tag.
28704  
28705 \end_layout
28706
28707 \begin_layout Standard
28708 For a command or normal paragraph,
28709  the output XHTML has the following form:
28710 \end_layout
28711
28712 \begin_layout LyX-Code
28713
28714 \family sans
28715 <tag attr=
28716 \begin_inset Quotes erd
28717 \end_inset
28718
28719 value
28720 \begin_inset Quotes erd
28721 \end_inset
28722
28723 >
28724 \end_layout
28725
28726 \begin_layout LyX-Code
28727
28728 \family sans
28729 <labeltag attr=
28730 \begin_inset Quotes erd
28731 \end_inset
28732
28733 value
28734 \begin_inset Quotes erd
28735 \end_inset
28736
28737 >Label</labeltag>
28738 \end_layout
28739
28740 \begin_layout LyX-Code
28741
28742 \family sans
28743 Contents of the paragraph.
28744 \end_layout
28745
28746 \begin_layout LyX-Code
28747
28748 \family sans
28749 </tag>
28750 \end_layout
28751
28752 \begin_layout Standard
28753 The label tags are of course omitted if the paragraph does not have a label.
28754 \end_layout
28755
28756 \begin_layout Standard
28757 For an environment that is not some sort of list,
28758  the XHTML takes this form:
28759 \end_layout
28760
28761 \begin_layout LyX-Code
28762
28763 \family sans
28764 <tag attr=
28765 \begin_inset Quotes erd
28766 \end_inset
28767
28768 value
28769 \begin_inset Quotes erd
28770 \end_inset
28771
28772 >
28773 \end_layout
28774
28775 \begin_layout LyX-Code
28776
28777 \family sans
28778 <itemtag attr=
28779 \begin_inset Quotes erd
28780 \end_inset
28781
28782 value
28783 \begin_inset Quotes erd
28784 \end_inset
28785
28786 ><labeltag attr=
28787 \begin_inset Quotes erd
28788 \end_inset
28789
28790 value
28791 \begin_inset Quotes erd
28792 \end_inset
28793
28794 >Environment Label</labeltag>First paragraph.</itemtag>
28795 \end_layout
28796
28797 \begin_layout LyX-Code
28798
28799 \family sans
28800 <itemtag>Second paragraph.</itemtag>
28801 \end_layout
28802
28803 \begin_layout LyX-Code
28804
28805 \family sans
28806 </tag>
28807 \end_layout
28808
28809 \begin_layout Standard
28810 Note that the label is output only for the first paragraph,
28811  as it should be for a theorem,
28812  for example.
28813  
28814 \end_layout
28815
28816 \begin_layout Standard
28817 For a list,
28818  we have one of these forms:
28819 \end_layout
28820
28821 \begin_layout LyX-Code
28822
28823 \family sans
28824 <tag attr=
28825 \begin_inset Quotes erd
28826 \end_inset
28827
28828 value
28829 \begin_inset Quotes erd
28830 \end_inset
28831
28832 >
28833 \end_layout
28834
28835 \begin_layout LyX-Code
28836
28837 \family sans
28838 <itemtag attr=
28839 \begin_inset Quotes erd
28840 \end_inset
28841
28842 value
28843 \begin_inset Quotes erd
28844 \end_inset
28845
28846 ><labeltag attr=
28847 \begin_inset Quotes erd
28848 \end_inset
28849
28850 value
28851 \begin_inset Quotes erd
28852 \end_inset
28853
28854 >List Label</labeltag>First item.</itemtag>
28855 \end_layout
28856
28857 \begin_layout LyX-Code
28858
28859 \family sans
28860 <itemtag attr=
28861 \begin_inset Quotes erd
28862 \end_inset
28863
28864 value
28865 \begin_inset Quotes erd
28866 \end_inset
28867
28868 ><labeltag attr=
28869 \begin_inset Quotes erd
28870 \end_inset
28871
28872 value
28873 \begin_inset Quotes erd
28874 \end_inset
28875
28876 >List Label</labeltag>Second item.</itemtag>
28877 \end_layout
28878
28879 \begin_layout LyX-Code
28880
28881 \family sans
28882 </tag>
28883 \end_layout
28884
28885 \begin_layout LyX-Code
28886
28887 \end_layout
28888
28889 \begin_layout LyX-Code
28890
28891 \family sans
28892 <tag attr=
28893 \begin_inset Quotes erd
28894 \end_inset
28895
28896 value
28897 \begin_inset Quotes erd
28898 \end_inset
28899
28900 >
28901 \end_layout
28902
28903 \begin_layout LyX-Code
28904
28905 \family sans
28906 <labeltag attr=
28907 \begin_inset Quotes erd
28908 \end_inset
28909
28910 value
28911 \begin_inset Quotes erd
28912 \end_inset
28913
28914 >List Label</labeltag><itemtag attr=
28915 \begin_inset Quotes erd
28916 \end_inset
28917
28918 value
28919 \begin_inset Quotes erd
28920 \end_inset
28921
28922 >First item.</itemtag>
28923 \end_layout
28924
28925 \begin_layout LyX-Code
28926
28927 \family sans
28928 <labeltag attr=
28929 \begin_inset Quotes erd
28930 \end_inset
28931
28932 value
28933 \begin_inset Quotes erd
28934 \end_inset
28935
28936 >List Label</labeltag><itemtag attr=
28937 \begin_inset Quotes erd
28938 \end_inset
28939
28940 value
28941 \begin_inset Quotes erd
28942 \end_inset
28943
28944 >Second item.</itemtag>
28945 \end_layout
28946
28947 \begin_layout LyX-Code
28948
28949 \family sans
28950 </tag>
28951 \end_layout
28952
28953 \begin_layout Standard
28954 Note the different orders of 
28955 \begin_inset Flex Code
28956 status collapsed
28957
28958 \begin_layout Plain Layout
28959 labeltag
28960 \end_layout
28961
28962 \end_inset
28963
28964  and 
28965 \begin_inset Flex Code
28966 status collapsed
28967
28968 \begin_layout Plain Layout
28969 itemtag
28970 \end_layout
28971
28972 \end_inset
28973
28974 .
28975  Which order we get depends upon the setting of 
28976 \begin_inset Flex Code
28977 status collapsed
28978
28979 \begin_layout Plain Layout
28980 HTMLLabelFirst
28981 \end_layout
28982
28983 \end_inset
28984
28985 :
28986  If 
28987 \begin_inset Flex Code
28988 status collapsed
28989
28990 \begin_layout Plain Layout
28991 HTMLLabelFirst
28992 \end_layout
28993
28994 \end_inset
28995
28996  is false (the default),
28997  you get the first of these,
28998  with the label within the item;
28999  if true,
29000  you get the second,
29001  with the label outside the item.
29002 \end_layout
29003
29004 \begin_layout Standard
29005 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
29006  As mentioned earlier,
29007  however,
29008  \SpecialChar LyX
29009  uses sensible defaults for many of these,
29010  so you often may not need to do very much to get good XHTML output.
29011  Think of the available tags as there so you can tweak things to your liking.
29012 \end_layout
29013
29014 \begin_layout Description
29015 \begin_inset Flex Code
29016 status collapsed
29017
29018 \begin_layout Plain Layout
29019 HTMLAttr
29020 \end_layout
29021
29022 \end_inset
29023
29024  [
29025 \begin_inset Flex Code
29026 status collapsed
29027
29028 \begin_layout Plain Layout
29029 string
29030 \end_layout
29031
29032 \end_inset
29033
29034 ] Specifies attribute information to be output with the main tag.
29035  For example,
29036  
29037 \begin_inset Quotes eld
29038 \end_inset
29039
29040
29041 \begin_inset Flex Code
29042 status collapsed
29043
29044 \begin_layout Plain Layout
29045 class=`mydiv'
29046 \end_layout
29047
29048 \end_inset
29049
29050
29051 \begin_inset Quotes erd
29052 \end_inset
29053
29054 .
29055  By default,
29056  \SpecialChar LyX
29057  will output 
29058 \begin_inset Quotes eld
29059 \end_inset
29060
29061
29062 \begin_inset Flex Code
29063 status collapsed
29064
29065 \begin_layout Plain Layout
29066 class=`layoutname'
29067 \end_layout
29068
29069 \end_inset
29070
29071
29072 \begin_inset Quotes erd
29073 \end_inset
29074
29075 ,
29076  where 
29077 \begin_inset Flex Code
29078 status collapsed
29079
29080 \begin_layout Plain Layout
29081 layoutname
29082 \end_layout
29083
29084 \end_inset
29085
29086  is the \SpecialChar LyX
29087  name of the layout,
29088  made lowercase,
29089  for example:
29090  chapter.
29091  This should 
29092 \emph on
29093 not
29094 \emph default
29095  contain any style information.
29096  Use 
29097 \begin_inset Flex Code
29098 status collapsed
29099
29100 \begin_layout Plain Layout
29101 HTMLStyle
29102 \end_layout
29103
29104 \end_inset
29105
29106  for that purpose.
29107 \change_inserted -584632292 1670182206
29108
29109 \end_layout
29110
29111 \begin_layout Description
29112
29113 \change_inserted -584632292 1670182369
29114 \begin_inset Flex Code
29115 status collapsed
29116
29117 \begin_layout Plain Layout
29118
29119 \change_inserted -584632292 1670182222
29120 HTMLClass
29121 \change_unchanged
29122
29123 \end_layout
29124
29125 \end_inset
29126
29127  [
29128 \begin_inset Flex Code
29129 status collapsed
29130
29131 \begin_layout Plain Layout
29132
29133 \change_inserted -584632292 1670182217
29134 string
29135 \change_unchanged
29136
29137 \end_layout
29138
29139 \end_inset
29140
29141 ] The CSS class to use for this paragraph.
29142  Note that,
29143  if the paragarph is of enumerate or itemize type,
29144  then the default will be 
29145 \begin_inset Quotes eld
29146 \end_inset
29147
29148 lyxenum
29149 \begin_inset Quotes erd
29150 \end_inset
29151
29152  or 
29153 \begin_inset Quotes eld
29154 \end_inset
29155
29156 lyxitem
29157 \begin_inset Quotes erd
29158 \end_inset
29159
29160 ,
29161  plus 
29162 \begin_inset Quotes eld
29163 \end_inset
29164
29165 i
29166 \begin_inset Quotes erd
29167 \end_inset
29168
29169 ,
29170  
29171 \begin_inset Quotes eld
29172 \end_inset
29173
29174 ii
29175 \begin_inset Quotes erd
29176 \end_inset
29177
29178 ,
29179  
29180 \begin_inset Quotes eld
29181 \end_inset
29182
29183 iii
29184 \begin_inset Quotes erd
29185 \end_inset
29186
29187 ,
29188  or 
29189 \begin_inset Quotes eld
29190 \end_inset
29191
29192 iv
29193 \begin_inset Quotes erd
29194 \end_inset
29195
29196 ,
29197  depending upon the depth.
29198  That can be over-ridden here.
29199  However,
29200  the suffix will not be added in that case.
29201  I.e.,
29202  the CSS class will always be exactly what it is declared to be here.
29203 \change_unchanged
29204
29205 \end_layout
29206
29207 \begin_layout Description
29208 \begin_inset Flex Code
29209 status collapsed
29210
29211 \begin_layout Plain Layout
29212 HTMLForceCSS
29213 \end_layout
29214
29215 \end_inset
29216
29217  [
29218 \begin_inset Flex Code
29219 status collapsed
29220
29221 \begin_layout Plain Layout
29222
29223 \emph on
29224 0
29225 \emph default
29226 ,1
29227 \end_layout
29228
29229 \end_inset
29230
29231 ] Whether to output the default CSS information \SpecialChar LyX
29232  generates for this layout,
29233  even if additional information is explicitly provided via 
29234 \begin_inset Flex Code
29235 status collapsed
29236
29237 \begin_layout Plain Layout
29238 HTMLStyle
29239 \end_layout
29240
29241 \end_inset
29242
29243 .
29244  Setting this to 
29245 \begin_inset Flex Code
29246 status collapsed
29247
29248 \begin_layout Plain Layout
29249 1
29250 \end_layout
29251
29252 \end_inset
29253
29254  allows you to alter or augment the generated CSS,
29255  rather than to override it completely.
29256  Default is 
29257 \begin_inset Flex Code
29258 status collapsed
29259
29260 \begin_layout Plain Layout
29261 0
29262 \end_layout
29263
29264 \end_inset
29265
29266 .
29267 \change_inserted -584632292 1670132213
29268
29269 \end_layout
29270
29271 \begin_layout Description
29272
29273 \change_inserted -584632292 1670132277
29274 \begin_inset Flex Code
29275 status collapsed
29276
29277 \begin_layout Plain Layout
29278
29279 \change_inserted -584632292 1670132221
29280 HTMLInToc
29281 \change_unchanged
29282
29283 \end_layout
29284
29285 \end_inset
29286
29287  [
29288 \begin_inset Flex Code
29289 status open
29290
29291 \begin_layout Plain Layout
29292
29293 \change_inserted -584632292 1670132214
29294 0,
29295 \emph on
29296 1
29297 \change_unchanged
29298
29299 \end_layout
29300
29301 \end_inset
29302
29303 ] Whether to include this paragraph (usually,
29304  a section or something of the sort) in the TOC.
29305  By default,
29306  true,
29307  so it should be set to false e.g.
29308 \begin_inset space ~
29309 \end_inset
29310
29311 for starred sections.
29312 \change_unchanged
29313
29314 \end_layout
29315
29316 \begin_layout Description
29317 \begin_inset Flex Code
29318 status collapsed
29319
29320 \begin_layout Plain Layout
29321 HTMLItem
29322 \end_layout
29323
29324 \end_inset
29325
29326  [
29327 \begin_inset Flex Code
29328 status collapsed
29329
29330 \begin_layout Plain Layout
29331 string
29332 \end_layout
29333
29334 \end_inset
29335
29336 ] The tag to be used for individual paragraphs of environments,
29337  replacing 
29338 \begin_inset Flex Code
29339 status collapsed
29340
29341 \begin_layout Plain Layout
29342 itemtag
29343 \end_layout
29344
29345 \end_inset
29346
29347  in the examples above.
29348  Defaults to 
29349 \begin_inset Flex Code
29350 status collapsed
29351
29352 \begin_layout Plain Layout
29353 div
29354 \end_layout
29355
29356 \end_inset
29357
29358 .
29359 \end_layout
29360
29361 \begin_layout Description
29362 \begin_inset Flex Code
29363 status collapsed
29364
29365 \begin_layout Plain Layout
29366 HTMLItemAttr
29367 \end_layout
29368
29369 \end_inset
29370
29371  [
29372 \begin_inset Flex Code
29373 status collapsed
29374
29375 \begin_layout Plain Layout
29376 string
29377 \end_layout
29378
29379 \end_inset
29380
29381 ] Attributes for the item tag.
29382  Defaults to
29383 \begin_inset Newline newline
29384 \end_inset
29385
29386
29387 \begin_inset Quotes eld
29388 \end_inset
29389
29390
29391 \begin_inset Flex Code
29392 status collapsed
29393
29394 \begin_layout Plain Layout
29395 class=`layoutname_item'
29396 \end_layout
29397
29398 \end_inset
29399
29400
29401 \begin_inset Quotes erd
29402 \end_inset
29403
29404 .
29405  This should 
29406 \emph on
29407 not
29408 \emph default
29409  contain any style information.
29410  Use 
29411 \begin_inset Flex Code
29412 status collapsed
29413
29414 \begin_layout Plain Layout
29415 HTMLStyle
29416 \end_layout
29417
29418 \end_inset
29419
29420  for that purpose.
29421 \end_layout
29422
29423 \begin_layout Description
29424 \begin_inset Flex Code
29425 status collapsed
29426
29427 \begin_layout Plain Layout
29428 HTMLLabel
29429 \end_layout
29430
29431 \end_inset
29432
29433  [
29434 \begin_inset Flex Code
29435 status collapsed
29436
29437 \begin_layout Plain Layout
29438 string
29439 \end_layout
29440
29441 \end_inset
29442
29443 ] The tag to be used for paragraph and item labels,
29444  replacing 
29445 \begin_inset Flex Code
29446 status collapsed
29447
29448 \begin_layout Plain Layout
29449 labeltag
29450 \end_layout
29451
29452 \end_inset
29453
29454  in the examples above.
29455  Defaults to 
29456 \begin_inset Flex Code
29457 status collapsed
29458
29459 \begin_layout Plain Layout
29460 span
29461 \end_layout
29462
29463 \end_inset
29464
29465 ,
29466  unless 
29467 \begin_inset Flex Code
29468 status collapsed
29469
29470 \begin_layout Plain Layout
29471 LabelType
29472 \end_layout
29473
29474 \end_inset
29475
29476  is either 
29477 \begin_inset Flex Code
29478 status collapsed
29479
29480 \begin_layout Plain Layout
29481 Top_Environment
29482 \end_layout
29483
29484 \end_inset
29485
29486  or 
29487 \begin_inset Flex Code
29488 status collapsed
29489
29490 \begin_layout Plain Layout
29491 Centered_Top_Environment
29492 \end_layout
29493
29494 \end_inset
29495
29496 ,
29497  in which case it defaults to 
29498 \begin_inset Flex Code
29499 status collapsed
29500
29501 \begin_layout Plain Layout
29502 div
29503 \end_layout
29504
29505 \end_inset
29506
29507 .
29508 \end_layout
29509
29510 \begin_layout Description
29511 \begin_inset Flex Code
29512 status collapsed
29513
29514 \begin_layout Plain Layout
29515 HTMLLabelAttr
29516 \end_layout
29517
29518 \end_inset
29519
29520  [
29521 \begin_inset Flex Code
29522 status collapsed
29523
29524 \begin_layout Plain Layout
29525 string
29526 \end_layout
29527
29528 \end_inset
29529
29530 ] Attributes for the label tag.
29531  Defaults to
29532 \begin_inset Newline newline
29533 \end_inset
29534
29535
29536 \begin_inset Quotes eld
29537 \end_inset
29538
29539
29540 \begin_inset Flex Code
29541 status collapsed
29542
29543 \begin_layout Plain Layout
29544 class=`layoutname_label'
29545 \end_layout
29546
29547 \end_inset
29548
29549
29550 \begin_inset Quotes erd
29551 \end_inset
29552
29553 .
29554  This should 
29555 \emph on
29556 not
29557 \emph default
29558  contain any style information.
29559  Use 
29560 \begin_inset Flex Code
29561 status collapsed
29562
29563 \begin_layout Plain Layout
29564 HTMLStyle
29565 \end_layout
29566
29567 \end_inset
29568
29569  for that purpose.
29570 \end_layout
29571
29572 \begin_layout Description
29573 \begin_inset Flex Code
29574 status collapsed
29575
29576 \begin_layout Plain Layout
29577 HTMLLabelFirst
29578 \end_layout
29579
29580 \end_inset
29581
29582  [
29583 \begin_inset Flex Code
29584 status collapsed
29585
29586 \begin_layout Plain Layout
29587
29588 \emph on
29589 0
29590 \emph default
29591 ,1
29592 \end_layout
29593
29594 \end_inset
29595
29596 ] Meaningful only for list-like environments,
29597  this tag controls whether the label tag is output before or inside the item tag.
29598  This is used,
29599  for example,
29600  in the description environment,
29601  where we want `
29602 \begin_inset Flex Code
29603 status collapsed
29604
29605 \begin_layout Plain Layout
29606 <dt>\SpecialChar ldots
29607 </dt><dd>\SpecialChar ldots
29608 </dd>
29609 \end_layout
29610
29611 \end_inset
29612
29613 .
29614  Default is 
29615 \begin_inset Flex Code
29616 status collapsed
29617
29618 \begin_layout Plain Layout
29619 0
29620 \end_layout
29621
29622 \end_inset
29623
29624 :
29625  The label tag is output inside the item tag.
29626 \end_layout
29627
29628 \begin_layout Description
29629 \begin_inset Flex Code
29630 status collapsed
29631
29632 \begin_layout Plain Layout
29633 HTMLPreamble
29634 \end_layout
29635
29636 \end_inset
29637
29638  Information to be output in the 
29639 \begin_inset Flex Code
29640 status collapsed
29641
29642 \begin_layout Plain Layout
29643 <head>
29644 \end_layout
29645
29646 \end_inset
29647
29648  section when this style is used.
29649  This might,
29650  for example,
29651  be used to include a 
29652 \begin_inset Flex Code
29653 status collapsed
29654
29655 \begin_layout Plain Layout
29656 <script>
29657 \end_layout
29658
29659 \end_inset
29660
29661  block defining an 
29662 \begin_inset Flex Code
29663 status collapsed
29664
29665 \begin_layout Plain Layout
29666 onclick
29667 \end_layout
29668
29669 \end_inset
29670
29671  handler.
29672 \end_layout
29673
29674 \begin_layout Description
29675 \begin_inset Flex Code
29676 status collapsed
29677
29678 \begin_layout Plain Layout
29679 HTMLStyle
29680 \end_layout
29681
29682 \end_inset
29683
29684  CSS style information to be included when this style is used.
29685  Note that this will automatically be wrapped in a layout-generated 
29686 \begin_inset Flex Code
29687 status collapsed
29688
29689 \begin_layout Plain Layout
29690 <style>
29691 \end_layout
29692
29693 \end_inset
29694
29695  block,
29696  so only the CSS itself need be included.
29697  Must end with 
29698 \begin_inset Flex Code
29699 status collapsed
29700
29701 \begin_layout Plain Layout
29702 EndHTMLStyle
29703 \end_layout
29704
29705 \end_inset
29706
29707 .
29708 \end_layout
29709
29710 \begin_layout Description
29711 \begin_inset Flex Code
29712 status collapsed
29713
29714 \begin_layout Plain Layout
29715 HTMLTag
29716 \end_layout
29717
29718 \end_inset
29719
29720  [
29721 \begin_inset Flex Code
29722 status collapsed
29723
29724 \begin_layout Plain Layout
29725 string
29726 \end_layout
29727
29728 \end_inset
29729
29730 ] The tag to be used for the main label,
29731  replacing 
29732 \begin_inset Flex Code
29733 status collapsed
29734
29735 \begin_layout Plain Layout
29736 tag
29737 \end_layout
29738
29739 \end_inset
29740
29741  in the examples above.
29742  Defaults to 
29743 \begin_inset Flex Code
29744 status collapsed
29745
29746 \begin_layout Plain Layout
29747 div
29748 \end_layout
29749
29750 \end_inset
29751
29752 .
29753 \end_layout
29754
29755 \begin_layout Description
29756 \begin_inset Flex Code
29757 status collapsed
29758
29759 \begin_layout Plain Layout
29760 HTMLTitle
29761 \end_layout
29762
29763 \end_inset
29764
29765  [
29766 \begin_inset Flex Code
29767 status collapsed
29768
29769 \begin_layout Plain Layout
29770
29771 \emph on
29772 0
29773 \emph default
29774 ,1
29775 \end_layout
29776
29777 \end_inset
29778
29779 ] Marks this style as the one to be used to generate the 
29780 \begin_inset Flex Code
29781 status collapsed
29782
29783 \begin_layout Plain Layout
29784 <title>
29785 \end_layout
29786
29787 \end_inset
29788
29789  tag for the XHTML file.
29790  By default,
29791  it is false.
29792  The 
29793 \begin_inset Flex Code
29794 status collapsed
29795
29796 \begin_layout Plain Layout
29797 stdtitle.inc
29798 \end_layout
29799
29800 \end_inset
29801
29802  file sets it to true for the 
29803 \begin_inset Flex Code
29804 status collapsed
29805
29806 \begin_layout Plain Layout
29807 title
29808 \end_layout
29809
29810 \end_inset
29811
29812  environment.
29813  
29814 \end_layout
29815
29816 \begin_layout Subsection
29817 InsetLayout XHTML
29818 \end_layout
29819
29820 \begin_layout Standard
29821 The XHTML output of insets can also be controlled by information in layout files.
29822 \begin_inset Foot
29823 status collapsed
29824
29825 \begin_layout Plain Layout
29826 At present,
29827  this is true only for 
29828 \begin_inset Quotes eld
29829 \end_inset
29830
29831 text
29832 \begin_inset Quotes erd
29833 \end_inset
29834
29835  insets (insets you can type into) and is not true for 
29836 \begin_inset Quotes eld
29837 \end_inset
29838
29839 command
29840 \begin_inset Quotes erd
29841 \end_inset
29842
29843  insets (insets that are associated with dialog boxes).
29844 \end_layout
29845
29846 \end_inset
29847
29848  Here,
29849  too,
29850  \SpecialChar LyX
29851  tries to provide sensible defaults,
29852  and it constructs default CSS style rules.
29853  But everything can be customized.
29854 \end_layout
29855
29856 \begin_layout Standard
29857 The XHTML \SpecialChar LyX
29858  outputs for an inset has the following form:
29859 \end_layout
29860
29861 \begin_layout LyX-Code
29862 <tag attr=
29863 \begin_inset Quotes erd
29864 \end_inset
29865
29866 value
29867 \begin_inset Quotes erd
29868 \end_inset
29869
29870 >
29871 \end_layout
29872
29873 \begin_layout LyX-Code
29874 <labeltag>Label</labeltag>
29875 \end_layout
29876
29877 \begin_layout LyX-Code
29878 <innertag attr=
29879 \begin_inset Quotes erd
29880 \end_inset
29881
29882 value
29883 \begin_inset Quotes erd
29884 \end_inset
29885
29886 >Contents of the inset.</innertag>
29887 \end_layout
29888
29889 \begin_layout LyX-Code
29890 </tag>
29891 \end_layout
29892
29893 \begin_layout Standard
29894 If the inset permits multiple paragraphs—
29895 that is,
29896  if 
29897 \begin_inset Flex Code
29898 status collapsed
29899
29900 \begin_layout Plain Layout
29901 MultiPar
29902 \end_layout
29903
29904 \end_inset
29905
29906  is true—
29907 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
29908  quote,
29909  and the like).
29910  The label tag is of course omitted if the paragraph does not have a label and,
29911  at present,
29912  is always 
29913 \begin_inset Flex Code
29914 status collapsed
29915
29916 \begin_layout Plain Layout
29917 span
29918 \end_layout
29919
29920 \end_inset
29921
29922 .
29923  The inner tag is optional and,
29924  by default,
29925  does not appear.
29926 \end_layout
29927
29928 \begin_layout Standard
29929 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
29930 \end_layout
29931
29932 \begin_layout Description
29933 \begin_inset Flex Code
29934 status collapsed
29935
29936 \begin_layout Plain Layout
29937 HTMLAttr
29938 \end_layout
29939
29940 \end_inset
29941
29942  [
29943 \begin_inset Flex Code
29944 status collapsed
29945
29946 \begin_layout Plain Layout
29947 string
29948 \end_layout
29949
29950 \end_inset
29951
29952 ] Specifies attribute information to be output with the main tag.
29953  For example,
29954  
29955 \begin_inset Quotes eld
29956 \end_inset
29957
29958
29959 \begin_inset Flex Code
29960 status collapsed
29961
29962 \begin_layout Plain Layout
29963 class=`myinset' onclick=`\SpecialChar ldots
29964 '
29965 \end_layout
29966
29967 \end_inset
29968
29969
29970 \begin_inset Quotes erd
29971 \end_inset
29972
29973 .
29974  By default,
29975  \SpecialChar LyX
29976  will output 
29977 \begin_inset Quotes eld
29978 \end_inset
29979
29980
29981 \begin_inset Flex Code
29982 status collapsed
29983
29984 \begin_layout Plain Layout
29985 class=`insetname'
29986 \end_layout
29987
29988 \end_inset
29989
29990
29991 \begin_inset Quotes erd
29992 \end_inset
29993
29994 ,
29995  where 
29996 \begin_inset Flex Code
29997 status collapsed
29998
29999 \begin_layout Plain Layout
30000 insetname
30001 \end_layout
30002
30003 \end_inset
30004
30005  is the \SpecialChar LyX
30006  name of the inset,
30007  made lowercase and with non-alphanumeric characters converted to underscores,
30008  for example:
30009  footnote.
30010 \end_layout
30011
30012 \begin_layout Description
30013 \begin_inset Flex Code
30014 status collapsed
30015
30016 \begin_layout Plain Layout
30017 HTMLForceCSS
30018 \end_layout
30019
30020 \end_inset
30021
30022  [
30023 \begin_inset Flex Code
30024 status collapsed
30025
30026 \begin_layout Plain Layout
30027
30028 \emph on
30029 0
30030 \emph default
30031 ,1
30032 \end_layout
30033
30034 \end_inset
30035
30036 ] Whether to output the default CSS information \SpecialChar LyX
30037  generates for this layout,
30038  even if additional information is explicitly provided via 
30039 \begin_inset Flex Code
30040 status collapsed
30041
30042 \begin_layout Plain Layout
30043 HTMLStyle
30044 \end_layout
30045
30046 \end_inset
30047
30048 .
30049  Setting this to 
30050 \begin_inset Flex Code
30051 status collapsed
30052
30053 \begin_layout Plain Layout
30054 1
30055 \end_layout
30056
30057 \end_inset
30058
30059  allows you to alter or augment the generated CSS,
30060  rather than to override it completely.
30061  Default is 0.
30062 \end_layout
30063
30064 \begin_layout Description
30065 \begin_inset Flex Code
30066 status collapsed
30067
30068 \begin_layout Plain Layout
30069 HTMLInnerAttr
30070 \end_layout
30071
30072 \end_inset
30073
30074  [
30075 \begin_inset Flex Code
30076 status collapsed
30077
30078 \begin_layout Plain Layout
30079 string
30080 \end_layout
30081
30082 \end_inset
30083
30084 ] Attributes for the inner tag.
30085  Defaults to
30086 \begin_inset Newline newline
30087 \end_inset
30088
30089
30090 \begin_inset Quotes eld
30091 \end_inset
30092
30093
30094 \begin_inset Flex Code
30095 status collapsed
30096
30097 \begin_layout Plain Layout
30098 class=`insetname_inner'
30099 \end_layout
30100
30101 \end_inset
30102
30103
30104 \begin_inset Quotes erd
30105 \end_inset
30106
30107 .
30108 \end_layout
30109
30110 \begin_layout Description
30111 \begin_inset Flex Code
30112 status collapsed
30113
30114 \begin_layout Plain Layout
30115 HTMLInnerTag
30116 \end_layout
30117
30118 \end_inset
30119
30120  [
30121 \begin_inset Flex Code
30122 status collapsed
30123
30124 \begin_layout Plain Layout
30125 string
30126 \end_layout
30127
30128 \end_inset
30129
30130 ] The inner tag,
30131  replacing 
30132 \begin_inset Flex Code
30133 status collapsed
30134
30135 \begin_layout Plain Layout
30136 innertag
30137 \end_layout
30138
30139 \end_inset
30140
30141  in the examples above.
30142  By default,
30143  there is none.
30144 \end_layout
30145
30146 \begin_layout Description
30147 \begin_inset Flex Code
30148 status collapsed
30149
30150 \begin_layout Plain Layout
30151 HTMLIsBlock
30152 \end_layout
30153
30154 \end_inset
30155
30156  [
30157 \begin_inset Flex Code
30158 status collapsed
30159
30160 \begin_layout Plain Layout
30161 0,
30162 \emph on
30163 1
30164 \end_layout
30165
30166 \end_inset
30167
30168 ] 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).
30169  Defaults to 1.
30170 \end_layout
30171
30172 \begin_layout Description
30173 \begin_inset Flex Code
30174 status collapsed
30175
30176 \begin_layout Plain Layout
30177 HTMLLabel
30178 \end_layout
30179
30180 \end_inset
30181
30182  [
30183 \begin_inset Flex Code
30184 status collapsed
30185
30186 \begin_layout Plain Layout
30187 string
30188 \end_layout
30189
30190 \end_inset
30191
30192 ] A label for this inset,
30193  possibly including a reference to a counter.
30194  For example,
30195  for footnote,
30196  it might be:
30197  
30198 \begin_inset Flex Code
30199 status collapsed
30200
30201 \begin_layout Plain Layout
30202
30203 \backslash
30204 arabic{footnote}
30205 \end_layout
30206
30207 \end_inset
30208
30209 .
30210  This is optional,
30211  and there is no default.
30212 \end_layout
30213
30214 \begin_layout Description
30215 \begin_inset Flex Code
30216 status collapsed
30217
30218 \begin_layout Plain Layout
30219 HTMLPreamble
30220 \end_layout
30221
30222 \end_inset
30223
30224  Information to be output in the 
30225 \begin_inset Flex Code
30226 status collapsed
30227
30228 \begin_layout Plain Layout
30229 <head>
30230 \end_layout
30231
30232 \end_inset
30233
30234  section when this style is used.
30235  This might,
30236  for example,
30237  be used to include a 
30238 \begin_inset Flex Code
30239 status collapsed
30240
30241 \begin_layout Plain Layout
30242 <script>
30243 \end_layout
30244
30245 \end_inset
30246
30247  block defining an 
30248 \begin_inset Flex Code
30249 status collapsed
30250
30251 \begin_layout Plain Layout
30252 onclick
30253 \end_layout
30254
30255 \end_inset
30256
30257  handler.
30258 \end_layout
30259
30260 \begin_layout Description
30261 \begin_inset Flex Code
30262 status collapsed
30263
30264 \begin_layout Plain Layout
30265 HTMLStyle
30266 \end_layout
30267
30268 \end_inset
30269
30270  CSS style information to be included when this style is used.
30271  Note that this will automatically be wrapped in a layout-generated 
30272 \begin_inset Flex Code
30273 status collapsed
30274
30275 \begin_layout Plain Layout
30276 <style>
30277 \end_layout
30278
30279 \end_inset
30280
30281  block,
30282  so only the CSS itself need be included.
30283 \end_layout
30284
30285 \begin_layout Description
30286 \begin_inset Flex Code
30287 status collapsed
30288
30289 \begin_layout Plain Layout
30290 HTMLTag
30291 \end_layout
30292
30293 \end_inset
30294
30295  [
30296 \begin_inset Flex Code
30297 status collapsed
30298
30299 \begin_layout Plain Layout
30300 string
30301 \end_layout
30302
30303 \end_inset
30304
30305 ] The tag to be used for the main label,
30306  replacing 
30307 \begin_inset Flex Code
30308 status collapsed
30309
30310 \begin_layout Plain Layout
30311 tag
30312 \end_layout
30313
30314 \end_inset
30315
30316  in the examples above.
30317  The default depends upon the setting of 
30318 \begin_inset Flex Code
30319 status collapsed
30320
30321 \begin_layout Plain Layout
30322 MultiPar
30323 \end_layout
30324
30325 \end_inset
30326
30327 :
30328  If 
30329 \begin_inset Flex Code
30330 status collapsed
30331
30332 \begin_layout Plain Layout
30333 MultiPar
30334 \end_layout
30335
30336 \end_inset
30337
30338  is true,
30339  the default is 
30340 \begin_inset Flex Code
30341 status collapsed
30342
30343 \begin_layout Plain Layout
30344 div
30345 \end_layout
30346
30347 \end_inset
30348
30349 ;
30350  if it is false,
30351  the default is 
30352 \begin_inset Flex Code
30353 status collapsed
30354
30355 \begin_layout Plain Layout
30356 span
30357 \end_layout
30358
30359 \end_inset
30360
30361 .
30362 \end_layout
30363
30364 \begin_layout Subsection
30365 Float XHTML
30366 \end_layout
30367
30368 \begin_layout Standard
30369 The XHTML output for floats too can be controlled by layout information.
30370  The output has the following form:
30371 \end_layout
30372
30373 \begin_layout LyX-Code
30374 <tag attr=
30375 \begin_inset Quotes erd
30376 \end_inset
30377
30378 value
30379 \begin_inset Quotes erd
30380 \end_inset
30381
30382 >
30383 \end_layout
30384
30385 \begin_layout LyX-Code
30386 Contents of the float.
30387 \end_layout
30388
30389 \begin_layout LyX-Code
30390 </tag>
30391 \end_layout
30392
30393 \begin_layout Standard
30394 The caption,
30395  if there is one,
30396  is a separate inset and will be output as such.
30397  Its appearance can be controlled via the InsetLayout for caption insets.
30398  
30399 \end_layout
30400
30401 \begin_layout Description
30402 \begin_inset Flex Code
30403 status collapsed
30404
30405 \begin_layout Plain Layout
30406 HTMLAttr
30407 \end_layout
30408
30409 \end_inset
30410
30411  [
30412 \begin_inset Flex Code
30413 status collapsed
30414
30415 \begin_layout Plain Layout
30416 string
30417 \end_layout
30418
30419 \end_inset
30420
30421 ] Specifies attribute information to be output with the main tag.
30422  For example,
30423  
30424 \begin_inset Quotes eld
30425 \end_inset
30426
30427
30428 \begin_inset Flex Code
30429 status collapsed
30430
30431 \begin_layout Plain Layout
30432 class=`myfloat' onclick=`\SpecialChar ldots
30433 '
30434 \end_layout
30435
30436 \end_inset
30437
30438
30439 \begin_inset Quotes erd
30440 \end_inset
30441
30442 .
30443  By default,
30444  \SpecialChar LyX
30445  will output 
30446 \begin_inset Quotes eld
30447 \end_inset
30448
30449
30450 \begin_inset Flex Code
30451 status collapsed
30452
30453 \begin_layout Plain Layout
30454 class=`float float-floattype'
30455 \end_layout
30456
30457 \end_inset
30458
30459
30460 \begin_inset Quotes erd
30461 \end_inset
30462
30463 ,
30464  where 
30465 \begin_inset Flex Code
30466 status collapsed
30467
30468 \begin_layout Plain Layout
30469 floattype
30470 \end_layout
30471
30472 \end_inset
30473
30474  is \SpecialChar LyX
30475 's name for this type of float,
30476  as determined by the float declaration (see 
30477 \begin_inset CommandInset ref
30478 LatexCommand ref
30479 reference "subsec:Floats"
30480 nolink "false"
30481
30482 \end_inset
30483
30484 ),
30485  though made lowercase and with non-alphanumeric characters converted to underscores,
30486  for example:
30487  float-table.
30488 \end_layout
30489
30490 \begin_layout Description
30491 \begin_inset Flex Code
30492 status collapsed
30493
30494 \begin_layout Plain Layout
30495 HTMLStyle
30496 \end_layout
30497
30498 \end_inset
30499
30500  CSS style information to be included when this float is used.
30501  Note that this will automatically be wrapped in a layout-generated 
30502 \begin_inset Flex Code
30503 status collapsed
30504
30505 \begin_layout Plain Layout
30506 <style>
30507 \end_layout
30508
30509 \end_inset
30510
30511  block,
30512  so only the CSS itself need be included.
30513 \end_layout
30514
30515 \begin_layout Description
30516 \begin_inset Flex Code
30517 status collapsed
30518
30519 \begin_layout Plain Layout
30520 HTMLTag
30521 \end_layout
30522
30523 \end_inset
30524
30525  [
30526 \begin_inset Flex Code
30527 status collapsed
30528
30529 \begin_layout Plain Layout
30530 string
30531 \end_layout
30532
30533 \end_inset
30534
30535 ] The tag to be used for this float,
30536  replacing 
30537 \begin_inset Quotes eld
30538 \end_inset
30539
30540
30541 \begin_inset Flex Code
30542 status collapsed
30543
30544 \begin_layout Plain Layout
30545 tag
30546 \end_layout
30547
30548 \end_inset
30549
30550
30551 \begin_inset Quotes erd
30552 \end_inset
30553
30554  in the example above.
30555  The default is 
30556 \begin_inset Flex Code
30557 status collapsed
30558
30559 \begin_layout Plain Layout
30560 div
30561 \end_layout
30562
30563 \end_inset
30564
30565  and will rarely need changing.
30566 \end_layout
30567
30568 \begin_layout Subsection
30569 Bibliography formatting
30570 \end_layout
30571
30572 \begin_layout Standard
30573 The bibliography can be formatted using 
30574 \begin_inset Flex Code
30575 status collapsed
30576
30577 \begin_layout Plain Layout
30578 CiteFormat
30579 \end_layout
30580
30581 \end_inset
30582
30583  blocks.
30584  See 
30585 \begin_inset CommandInset ref
30586 LatexCommand ref
30587 reference "subsec:Citation-format-description"
30588 nolink "false"
30589
30590 \end_inset
30591
30592  for the details.
30593 \end_layout
30594
30595 \begin_layout Subsection
30596 \SpecialChar LyX
30597 -generated CSS
30598 \end_layout
30599
30600 \begin_layout Standard
30601 We have several times mentioned that \SpecialChar LyX
30602  will generate default CSS style rules for both insets and paragraph styles,
30603  based upon the other layout information that is provided.
30604  In this section,
30605  we shall say a word about which layout information \SpecialChar LyX
30606  uses and how.
30607 \end_layout
30608
30609 \begin_layout Standard
30610 At present,
30611  \SpecialChar LyX
30612  auto-generates CSS only for font information,
30613  making use of the 
30614 \begin_inset Flex Code
30615 status collapsed
30616
30617 \begin_layout Plain Layout
30618 Family
30619 \end_layout
30620
30621 \end_inset
30622
30623 ,
30624  
30625 \begin_inset Flex Code
30626 status collapsed
30627
30628 \begin_layout Plain Layout
30629 Series
30630 \end_layout
30631
30632 \end_inset
30633
30634 ,
30635  
30636 \begin_inset Flex Code
30637 status collapsed
30638
30639 \begin_layout Plain Layout
30640 Shape
30641 \end_layout
30642
30643 \end_inset
30644
30645 ,
30646  and 
30647 \begin_inset Flex Code
30648 status collapsed
30649
30650 \begin_layout Plain Layout
30651 Size
30652 \end_layout
30653
30654 \end_inset
30655
30656  specified in the 
30657 \begin_inset Flex Code
30658 status collapsed
30659
30660 \begin_layout Plain Layout
30661 Font
30662 \end_layout
30663
30664 \end_inset
30665
30666  declaration (see 
30667 \begin_inset CommandInset ref
30668 LatexCommand ref
30669 reference "subsec:Font-description"
30670 nolink "false"
30671
30672 \end_inset
30673
30674 ).
30675  The translation is mostly straightforward and obvious.
30676  For example,
30677  
30678 \begin_inset Quotes eld
30679 \end_inset
30680
30681
30682 \begin_inset Flex Code
30683 status collapsed
30684
30685 \begin_layout Plain Layout
30686 Family Sans
30687 \end_layout
30688
30689 \end_inset
30690
30691
30692 \begin_inset Quotes erd
30693 \end_inset
30694
30695  becomes 
30696 \begin_inset Quotes eld
30697 \end_inset
30698
30699
30700 \begin_inset Flex Code
30701 status collapsed
30702
30703 \begin_layout Plain Layout
30704 font-family:
30705  sans-serif;
30706 \end_layout
30707
30708 \end_inset
30709
30710
30711 \begin_inset Quotes erd
30712 \end_inset
30713
30714 .
30715  The correspondence of \SpecialChar LyX
30716  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
30717  See the 
30718 \begin_inset Flex Code
30719 status collapsed
30720
30721 \begin_layout Plain Layout
30722 getSizeCSS()
30723 \end_layout
30724
30725 \end_inset
30726
30727  function in 
30728 \begin_inset Flex URL
30729 status collapsed
30730
30731 \begin_layout Plain Layout
30732
30733 src/FontInfo.cpp
30734 \end_layout
30735
30736 \end_inset
30737
30738  for the details.
30739 \change_inserted -970929547 1496610908
30740
30741 \end_layout
30742
30743 \begin_layout Section
30744
30745 \change_inserted -970929547 1496610966
30746 \begin_inset CommandInset label
30747 LatexCommand label
30748 name "sec:Tags-for-DocBook"
30749
30750 \end_inset
30751
30752 Tags for DocBook output
30753 \end_layout
30754
30755 \begin_layout Standard
30756
30757 \change_inserted -970929547 1496611615
30758 As with \SpecialChar LaTeX
30759  or XHTML,
30760  the format of \SpecialChar LyX
30761 's DocBook output is also controlled by layout information.
30762  In general,
30763  \SpecialChar LyX
30764  provides sensible defaults;
30765  however,
30766  much of the styling is lost during the conversion,
30767  as DocBook is strictly semantic and does not allow formatting.
30768  When possible,
30769  information from \SpecialChar LyX
30770  will be rendered in 
30771 \family typewriter
30772 role
30773 \family default
30774  attributes.
30775  
30776 \end_layout
30777
30778 \begin_layout Standard
30779
30780 \change_inserted -970929547 1496612080
30781 In many cases,
30782  then,
30783  you may not have to do anything at all to get acceptable DocBook output for your own environments,
30784  custom insets,
30785  and so forth.
30786  But in some cases you will,
30787  and so \SpecialChar LyX
30788  provides a number of layout tags that can be used to customize the DocBook that is generated.
30789 \end_layout
30790
30791 \begin_layout Standard
30792
30793 \change_inserted -970929547 1515109912
30794 Labels are rarely output,
30795  as they are redundant in DocBook:
30796  this information is carried by the tags themselves,
30797  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
30798  However,
30799  sometimes,
30800  labels are not redundant content,
30801  such as definition lists:
30802  in this case,
30803  the term being defined will be the label.
30804  
30805 \end_layout
30806
30807 \begin_layout Subsection
30808
30809 \change_inserted 1075283030 1597699417
30810 \begin_inset CommandInset label
30811 LatexCommand label
30812 name "subsec:Paragraph-Style-DocBook"
30813
30814 \end_inset
30815
30816
30817 \change_deleted 1075283030 1597699417
30818
30819 \begin_inset CommandInset label
30820 LatexCommand label
30821 name "subsec:Paragraph-Style-XHTML-1"
30822
30823 \end_inset
30824
30825
30826 \change_inserted -970929547 1496610966
30827 Paragraph styles
30828 \end_layout
30829
30830 \begin_layout Standard
30831
30832 \change_inserted -970929547 1496612059
30833 The sort of DocBook \SpecialChar LyX
30834  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
30835  a command,
30836  or an environment,
30837  where this is itself determined by the contents of the corresponding 
30838 \begin_inset Flex Code
30839 status collapsed
30840
30841 \begin_layout Plain Layout
30842
30843 \change_inserted -970929547 1496610966
30844 \SpecialChar LaTeX
30845 Type
30846 \change_unchanged
30847
30848 \end_layout
30849
30850 \end_inset
30851
30852  tag.
30853  
30854 \end_layout
30855
30856 \begin_layout Standard
30857
30858 \change_inserted -970929547 1496612107
30859 For a command or normal paragraph,
30860  the output DocBook has the following form:
30861 \end_layout
30862
30863 \begin_layout LyX-Code
30864
30865 \change_inserted -970929547 1515109666
30866 <tag attr>
30867 \end_layout
30868
30869 \begin_layout LyX-Code
30870
30871 \change_inserted -970929547 1496610966
30872 Contents of the paragraph.
30873 \end_layout
30874
30875 \begin_layout LyX-Code
30876
30877 \change_inserted -970929547 1496610966
30878 </tag>
30879 \end_layout
30880
30881 \begin_layout Standard
30882
30883 \change_inserted -970929547 1515109821
30884 For an environment that is not some sort of list,
30885  the generated DocBook takes this form:
30886 \end_layout
30887
30888 \begin_layout LyX-Code
30889
30890 \change_inserted -970929547 1515109671
30891 <tag attr>
30892 \end_layout
30893
30894 \begin_layout LyX-Code
30895
30896 \change_inserted -970929547 1496612114
30897 <itemtag>First paragraph.</itemtag>
30898 \end_layout
30899
30900 \begin_layout LyX-Code
30901
30902 \change_inserted -970929547 1496610966
30903 <itemtag>Second paragraph.</itemtag>
30904 \end_layout
30905
30906 \begin_layout LyX-Code
30907
30908 \change_inserted -970929547 1496610966
30909 </tag>
30910 \end_layout
30911
30912 \begin_layout Standard
30913
30914 \change_inserted -970929547 1515109825
30915 For a list,
30916  the resulting DocBook takes this form:
30917 \end_layout
30918
30919 \begin_layout LyX-Code
30920
30921 \change_inserted -970929547 1515109672
30922 <tag attr>
30923 \end_layout
30924
30925 \begin_layout LyX-Code
30926
30927 \change_inserted -970929547 1515109676
30928 <itemtag attr>First item.</itemtag>
30929 \end_layout
30930
30931 \begin_layout LyX-Code
30932
30933 \change_inserted -970929547 1515109678
30934 <itemtag attr>Second item.</itemtag>
30935 \end_layout
30936
30937 \begin_layout LyX-Code
30938
30939 \change_inserted -970929547 1496610966
30940 </tag>
30941 \end_layout
30942
30943 \begin_layout Standard
30944
30945 \change_inserted -970929547 1496612243
30946 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
30947  Please note that,
30948  due to the very nature of DocBook,
30949  no sensible defaults really exist,
30950  and the values must always be carefully chosen.
30951  
30952 \end_layout
30953
30954 \begin_layout Description
30955
30956 \change_inserted -970929547 1515110057
30957 \begin_inset Flex Code
30958 status collapsed
30959
30960 \begin_layout Plain Layout
30961
30962 \change_inserted -970929547 1515109656
30963 DocBookAttr
30964 \change_unchanged
30965
30966 \end_layout
30967
30968 \end_inset
30969
30970  [
30971 \begin_inset Flex Code
30972 status collapsed
30973
30974 \begin_layout Plain Layout
30975
30976 \change_inserted -970929547 1496610966
30977 string
30978 \change_unchanged
30979
30980 \end_layout
30981
30982 \end_inset
30983
30984 ] Specifies attribute information to be output with the main tag,
30985  replacing 
30986 \begin_inset Quotes eld
30987 \end_inset
30988
30989
30990 \begin_inset Flex Code
30991 status collapsed
30992
30993 \begin_layout Plain Layout
30994
30995 \change_inserted -970929547 1515110057
30996 attr
30997 \change_unchanged
30998
30999 \end_layout
31000
31001 \end_inset
31002
31003
31004 \begin_inset Quotes erd
31005 \end_inset
31006
31007  in the example above.
31008  This information can be used in further processing of the DocBook files.
31009  
31010 \change_unchanged
31011
31012 \end_layout
31013
31014 \begin_layout Description
31015
31016 \change_inserted -970929547 1496612296
31017 \begin_inset Flex Code
31018 status collapsed
31019
31020 \begin_layout Plain Layout
31021
31022 \change_inserted -970929547 1496612269
31023 DocBookTag
31024 \change_unchanged
31025
31026 \end_layout
31027
31028 \end_inset
31029
31030  [
31031 \begin_inset Flex Code
31032 status collapsed
31033
31034 \begin_layout Plain Layout
31035
31036 \change_inserted -970929547 1496610966
31037 string
31038 \change_unchanged
31039
31040 \end_layout
31041
31042 \end_inset
31043
31044 ] The tag to be used for this inset,
31045  replacing 
31046 \begin_inset Quotes eld
31047 \end_inset
31048
31049
31050 \begin_inset Flex Code
31051 status collapsed
31052
31053 \begin_layout Plain Layout
31054
31055 \change_inserted -970929547 1496612296
31056 tag
31057 \change_unchanged
31058
31059 \end_layout
31060
31061 \end_inset
31062
31063
31064 \begin_inset Quotes erd
31065 \end_inset
31066
31067  in the example above.
31068  The default is the name of the float and always needs to be changed,
31069  as DocBook provides no generic tag.
31070 \change_inserted 1075283030 1597698868
31071
31072 \end_layout
31073
31074 \begin_layout Description
31075
31076 \change_inserted 1075283030 1597699399
31077 \begin_inset Flex Code
31078 status collapsed
31079
31080 \begin_layout Plain Layout
31081
31082 \change_inserted 1075283030 1597698872
31083 DocBookTagType
31084 \change_unchanged
31085
31086 \end_layout
31087
31088 \end_inset
31089
31090  [
31091 \begin_inset Flex Code
31092 status collapsed
31093
31094 \begin_layout Plain Layout
31095
31096 \change_inserted 1075283030 1597700585
31097 block,
31098  paragraph,
31099  inline
31100 \change_unchanged
31101
31102 \end_layout
31103
31104 \end_inset
31105
31106 ] The new-line policy for this tag,
31107  see Section
31108 \begin_inset space ~
31109 \end_inset
31110
31111
31112 \begin_inset CommandInset ref
31113 LatexCommand ref
31114 reference "subsec:DocBook-New-line-policy"
31115 plural "false"
31116 caps "false"
31117 noprefix "false"
31118 nolink "false"
31119
31120 \end_inset
31121
31122  for the details.
31123  
31124 \change_unchanged
31125
31126 \end_layout
31127
31128 \begin_layout Subsection
31129
31130 \change_inserted 1075283030 1597699385
31131 New-line policy
31132 \begin_inset CommandInset label
31133 LatexCommand label
31134 name "subsec:DocBook-New-line-policy"
31135
31136 \end_inset
31137
31138
31139 \end_layout
31140
31141 \begin_layout Standard
31142
31143 \change_inserted 1075283030 1597698993
31144 For all tags,
31145  there are three possible policies for outputting new lines (given in the 
31146 \begin_inset Flex Code
31147 status collapsed
31148
31149 \begin_layout Plain Layout
31150
31151 \change_inserted 1075283030 1597698987
31152 DocBook*TagType
31153 \change_unchanged
31154
31155 \end_layout
31156
31157 \end_inset
31158
31159  attribute):
31160  
31161 \end_layout
31162
31163 \begin_layout Itemize
31164
31165 \change_inserted 1075283030 1597699279
31166 \begin_inset Quotes eld
31167 \end_inset
31168
31169
31170 \begin_inset Flex Code
31171 status collapsed
31172
31173 \begin_layout Plain Layout
31174
31175 \change_inserted 1075283030 1597699012
31176 block
31177 \change_unchanged
31178
31179 \end_layout
31180
31181 \end_inset
31182
31183
31184 \begin_inset Quotes erd
31185 \end_inset
31186
31187 :
31188  the opening and closing tags are on their own lines (i.e.
31189  a line feed after and before the opening and the closing tags).
31190  Typical elements are floats.
31191  For instance:
31192  
31193 \end_layout
31194
31195 \begin_layout LyX-Code
31196
31197 \change_inserted 1075283030 1597699194
31198 Content before
31199 \end_layout
31200
31201 \begin_layout LyX-Code
31202
31203 \change_inserted 1075283030 1597699194
31204 <blocktag>
31205 \end_layout
31206
31207 \begin_layout LyX-Code
31208
31209 \change_inserted 1075283030 1597699098
31210   Contents of the block.
31211 \end_layout
31212
31213 \begin_layout LyX-Code
31214
31215 \change_inserted 1075283030 1597699196
31216 </blocktag>
31217 \end_layout
31218
31219 \begin_layout LyX-Code
31220
31221 \change_inserted 1075283030 1597699198
31222 Content after
31223 \end_layout
31224
31225 \begin_layout Itemize
31226
31227 \change_inserted 1075283030 1597699289
31228 \begin_inset Quotes eld
31229 \end_inset
31230
31231
31232 \begin_inset Flex Code
31233 status collapsed
31234
31235 \begin_layout Plain Layout
31236
31237 \change_inserted 1075283030 1597699113
31238 paragraph
31239 \change_unchanged
31240
31241 \end_layout
31242
31243 \end_inset
31244
31245
31246 \begin_inset Quotes erd
31247 \end_inset
31248
31249 :
31250  the opening and closing tags are on the same,
31251  new line;
31252  a line feed is output before the opening tag and after the closing tag.
31253  Typical elements are paragraphs and list items.
31254  For instance:
31255  
31256 \end_layout
31257
31258 \begin_layout LyX-Code
31259
31260 \change_inserted 1075283030 1597699186
31261 Content before
31262 \end_layout
31263
31264 \begin_layout LyX-Code
31265
31266 \change_inserted 1075283030 1597699357
31267 <paratag>Contents of the paragraph.</paratag>
31268 \end_layout
31269
31270 \begin_layout LyX-Code
31271
31272 \change_inserted 1075283030 1597699231
31273 Content after
31274 \end_layout
31275
31276 \begin_layout Itemize
31277
31278 \change_inserted 1075283030 1597699343
31279 \begin_inset Quotes eld
31280 \end_inset
31281
31282
31283 \begin_inset Flex Code
31284 status collapsed
31285
31286 \begin_layout Plain Layout
31287
31288 \change_inserted 1075283030 1597699307
31289 inline
31290 \change_unchanged
31291
31292 \end_layout
31293
31294 \end_inset
31295
31296
31297 \begin_inset Quotes erd
31298 \end_inset
31299
31300 :
31301  the opening and closing tags are on the same line as the rest of the content.
31302  No line feeds are output.
31303  Typical elements are fonts.
31304  For instance:
31305  
31306 \end_layout
31307
31308 \begin_layout LyX-Code
31309
31310 \change_inserted 1075283030 1597699585
31311 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
31312 \end_layout
31313
31314 \begin_layout Standard
31315
31316 \change_inserted 1075283030 1597699585
31317 The default value is always 
31318 \begin_inset Quotes eld
31319 \end_inset
31320
31321
31322 \begin_inset Flex Code
31323 status collapsed
31324
31325 \begin_layout Plain Layout
31326
31327 \change_inserted 1075283030 1597699585
31328 block
31329 \change_unchanged
31330
31331 \end_layout
31332
31333 \end_inset
31334
31335
31336 \begin_inset Quotes erd
31337 \end_inset
31338
31339 .
31340 \change_unchanged
31341
31342 \end_layout
31343
31344 \begin_layout Subsection
31345
31346 \change_inserted -970929547 1515111533
31347 InsetLayout DocBook
31348 \change_unchanged
31349
31350 \end_layout
31351
31352 \begin_layout Standard
31353
31354 \change_inserted -970929547 1496611894
31355 The DocBook output of insets can also be controlled by information in layout files.
31356 \end_layout
31357
31358 \begin_layout Standard
31359
31360 \change_inserted -970929547 1496612045
31361 The DocBook \SpecialChar LyX
31362  outputs for an inset has the following form:
31363 \end_layout
31364
31365 \begin_layout LyX-Code
31366
31367 \change_inserted -970929547 1515110861
31368 <wrappertag wrapperattr>
31369 \end_layout
31370
31371 \begin_layout LyX-Code
31372
31373 \change_inserted -970929547 1515110868
31374   <tag attr>
31375 \end_layout
31376
31377 \begin_layout LyX-Code
31378
31379 \change_inserted -970929547 1515110869
31380     <innertag innerattr>
31381 \end_layout
31382
31383 \begin_layout LyX-Code
31384
31385 \change_inserted -970929547 1515110869
31386       Contents of the inset.
31387 \end_layout
31388
31389 \begin_layout LyX-Code
31390
31391 \change_inserted -970929547 1515110870
31392     </innertag>
31393 \end_layout
31394
31395 \begin_layout LyX-Code
31396
31397 \change_inserted -970929547 1515110871
31398   </tag>
31399 \end_layout
31400
31401 \begin_layout LyX-Code
31402
31403 \change_inserted -970929547 1515111172
31404 </wrappertag>
31405 \end_layout
31406
31407 \begin_layout Standard
31408
31409 \change_inserted -970929547 1515111186
31410 For an itemising inset,
31411  it rather looks like this:
31412  
31413 \end_layout
31414
31415 \begin_layout LyX-Code
31416
31417 \change_inserted -970929547 1515111186
31418 <wrappertag wrapperattr>
31419 \end_layout
31420
31421 \begin_layout LyX-Code
31422
31423 \change_inserted -970929547 1515111186
31424   <tag attr>
31425 \end_layout
31426
31427 \begin_layout LyX-Code
31428
31429 \change_inserted -970929547 1515111186
31430     <innertag innerattr>
31431 \end_layout
31432
31433 \begin_layout LyX-Code
31434
31435 \change_inserted -970929547 1515111362
31436       <itemwrappertag itemwrapperattr>
31437 \end_layout
31438
31439 \begin_layout LyX-Code
31440
31441 \change_inserted -970929547 1515111364
31442         <itemlabeltag itemattr>
31443 \end_layout
31444
31445 \begin_layout LyX-Code
31446
31447 \change_inserted -970929547 1515111367
31448           Label of the first item.
31449 \end_layout
31450
31451 \begin_layout LyX-Code
31452
31453 \change_inserted -970929547 1515111362
31454         </itemtag>
31455 \change_unchanged
31456
31457 \end_layout
31458
31459 \begin_layout LyX-Code
31460
31461 \change_inserted -970929547 1515111517
31462         <itemtag itemattr>
31463 \end_layout
31464
31465 \begin_layout LyX-Code
31466
31467 \change_inserted -970929547 1515111517
31468           <itemtag itemattr>
31469 \change_unchanged
31470
31471 \end_layout
31472
31473 \begin_layout LyX-Code
31474
31475 \change_inserted -970929547 1515111516
31476             Contents of the first item.
31477 \end_layout
31478
31479 \begin_layout LyX-Code
31480
31481 \change_inserted -970929547 1515111514
31482           </itemtag>
31483 \change_unchanged
31484
31485 \end_layout
31486
31487 \begin_layout LyX-Code
31488
31489 \change_inserted -970929547 1515111247
31490         </itemtag>
31491 \change_unchanged
31492
31493 \end_layout
31494
31495 \begin_layout LyX-Code
31496
31497 \change_inserted -970929547 1515111221
31498       </itemwrappertag>
31499 \end_layout
31500
31501 \begin_layout LyX-Code
31502
31503 \change_inserted -970929547 1515111370
31504       <itemwrappertag itemwrapperattr>
31505 \end_layout
31506
31507 \begin_layout LyX-Code
31508
31509 \change_inserted -970929547 1515111370
31510         <itemlabeltag itemattr>
31511 \end_layout
31512
31513 \begin_layout LyX-Code
31514
31515 \change_inserted -970929547 1515111372
31516           Label of the second item.
31517 \end_layout
31518
31519 \begin_layout LyX-Code
31520
31521 \change_inserted -970929547 1515111370
31522         </itemtag>
31523 \change_unchanged
31524
31525 \end_layout
31526
31527 \begin_layout LyX-Code
31528
31529 \change_inserted -970929547 1515111504
31530         <itemtag itemattr>
31531 \end_layout
31532
31533 \begin_layout LyX-Code
31534
31535 \change_inserted -970929547 1515111505
31536           <itemtag itemattr>
31537 \change_unchanged
31538
31539 \end_layout
31540
31541 \begin_layout LyX-Code
31542
31543 \change_inserted -970929547 1515111507
31544             Contents of the second item.
31545 \end_layout
31546
31547 \begin_layout LyX-Code
31548
31549 \change_inserted -970929547 1515111509
31550           </itemtag>
31551 \change_unchanged
31552
31553 \end_layout
31554
31555 \begin_layout LyX-Code
31556
31557 \change_inserted -970929547 1515111251
31558         </itemtag>
31559 \change_unchanged
31560
31561 \end_layout
31562
31563 \begin_layout LyX-Code
31564
31565 \change_inserted -970929547 1515111221
31566       </itemwrappertag>
31567 \change_unchanged
31568
31569 \end_layout
31570
31571 \begin_layout LyX-Code
31572
31573 \change_inserted -970929547 1515111219
31574       ...
31575 \change_unchanged
31576
31577 \end_layout
31578
31579 \begin_layout LyX-Code
31580
31581 \change_inserted -970929547 1515111186
31582     </innertag>
31583 \end_layout
31584
31585 \begin_layout LyX-Code
31586
31587 \change_inserted -970929547 1515111186
31588   </tag>
31589 \end_layout
31590
31591 \begin_layout LyX-Code
31592
31593 \change_inserted -970929547 1515111186
31594 </wrappertag>
31595 \end_layout
31596
31597 \begin_layout Standard
31598
31599 \change_inserted -970929547 1515111183
31600 If the inset permits multiple paragraphs—
31601 that is,
31602  if 
31603 \begin_inset Flex Code
31604 status collapsed
31605
31606 \begin_layout Plain Layout
31607
31608 \change_inserted -970929547 1496610966
31609 MultiPar
31610 \change_unchanged
31611
31612 \end_layout
31613
31614 \end_inset
31615
31616  is true—
31617 then the contents of the inset will 
31618 \change_deleted 34634807 1620029217
31619 itself
31620 \change_inserted 34634807 1620029219
31621 themselves
31622 \change_inserted -970929547 1515111183
31623  be output as paragraphs formatted according to the styles used for those paragraphs (standard,
31624  quote,
31625  and the like).
31626  The inner tag is optional and,
31627  by default,
31628  does not appear.
31629 \end_layout
31630
31631 \begin_layout Standard
31632
31633 \change_inserted -970929547 1496610966
31634 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
31635 \end_layout
31636
31637 \begin_layout Description
31638
31639 \change_inserted -970929547 1515110317
31640 \begin_inset Flex Code
31641 status collapsed
31642
31643 \begin_layout Plain Layout
31644
31645 \change_inserted -970929547 1515109695
31646 DocBookAttr
31647 \change_unchanged
31648
31649 \end_layout
31650
31651 \end_inset
31652
31653  [
31654 \begin_inset Flex Code
31655 status collapsed
31656
31657 \begin_layout Plain Layout
31658
31659 \change_inserted -970929547 1496611854
31660 string
31661 \change_unchanged
31662
31663 \end_layout
31664
31665 \end_inset
31666
31667 ] Specifies attribute information to be output with the main tag,
31668  replacing 
31669 \begin_inset Quotes eld
31670 \end_inset
31671
31672
31673 \begin_inset Flex Code
31674 status collapsed
31675
31676 \begin_layout Plain Layout
31677
31678 \change_inserted -970929547 1515110044
31679 attr
31680 \change_unchanged
31681
31682 \end_layout
31683
31684 \end_inset
31685
31686
31687 \begin_inset Quotes erd
31688 \end_inset
31689
31690  in the example above.
31691  This information can be used in further processing of the DocBook files.
31692  
31693 \end_layout
31694
31695 \begin_layout Description
31696
31697 \change_inserted -970929547 1515110973
31698 \begin_inset Flex Code
31699 status collapsed
31700
31701 \begin_layout Plain Layout
31702
31703 \change_inserted -970929547 1515110319
31704 DocBookInInfo
31705 \change_unchanged
31706
31707 \end_layout
31708
31709 \end_inset
31710
31711  [
31712 \begin_inset Flex Code
31713 status collapsed
31714
31715 \begin_layout Plain Layout
31716
31717 \change_inserted -970929547 1515110384
31718 never,
31719  always,
31720  maybe
31721 \change_unchanged
31722
31723 \end_layout
31724
31725 \end_inset
31726
31727 ] Specifies whether this tag goes into the 
31728 \begin_inset Flex Code
31729 status collapsed
31730
31731 \begin_layout Plain Layout
31732
31733 \change_inserted -970929547 1515110412
31734 <info>
31735 \change_unchanged
31736
31737 \end_layout
31738
31739 \end_inset
31740
31741  tag at the beginning of the parent layout.
31742  
31743 \begin_inset Flex Code
31744 status collapsed
31745
31746 \begin_layout Plain Layout
31747
31748 \change_inserted -970929547 1515110437
31749 never
31750 \change_unchanged
31751
31752 \end_layout
31753
31754 \end_inset
31755
31756  indicates that the tag never goes into 
31757 \begin_inset Flex Code
31758 status collapsed
31759
31760 \begin_layout Plain Layout
31761
31762 \change_inserted -970929547 1515110497
31763 <info>
31764 \change_unchanged
31765
31766 \end_layout
31767
31768 \end_inset
31769
31770  (this is default value,
31771  and corresponds to usual content).
31772  
31773 \begin_inset Flex Code
31774 status collapsed
31775
31776 \begin_layout Plain Layout
31777
31778 \change_inserted -970929547 1515110517
31779 always
31780 \change_unchanged
31781
31782 \end_layout
31783
31784 \end_inset
31785
31786  indicates that the tag always goes into 
31787 \begin_inset Flex Code
31788 status collapsed
31789
31790 \begin_layout Plain Layout
31791
31792 \change_inserted -970929547 1515110514
31793 <info>
31794 \change_unchanged
31795
31796 \end_layout
31797
31798 \end_inset
31799
31800  (this corresponds to usual metadata):
31801  if there is no 
31802 \begin_inset Flex Code
31803 status collapsed
31804
31805 \begin_layout Plain Layout
31806
31807 \change_inserted -970929547 1515110550
31808 <info>
31809 \change_unchanged
31810
31811 \end_layout
31812
31813 \end_inset
31814
31815  tag for the parent,
31816  one 
31817 \series bold
31818 will
31819 \series default
31820  be generated.
31821  
31822 \begin_inset Flex Code
31823 status collapsed
31824
31825 \begin_layout Plain Layout
31826
31827 \change_inserted -970929547 1515110540
31828 maybe
31829 \change_unchanged
31830
31831 \end_layout
31832
31833 \end_inset
31834
31835  indicates that the tag may go into 
31836 \begin_inset Flex Code
31837 status collapsed
31838
31839 \begin_layout Plain Layout
31840
31841 \change_inserted -970929547 1515110538
31842 <info>
31843 \change_unchanged
31844
31845 \end_layout
31846
31847 \end_inset
31848
31849  (this is only the case for titles):
31850  if there is no 
31851 \begin_inset Flex Code
31852 status collapsed
31853
31854 \begin_layout Plain Layout
31855
31856 \change_inserted -970929547 1515110585
31857 <info>
31858 \change_unchanged
31859
31860 \end_layout
31861
31862 \end_inset
31863
31864  tag for the parent,
31865  
31866 \series bold
31867 none
31868 \series default
31869  will be generated,
31870  the corresponding tag will be output directly as content.
31871  
31872 \end_layout
31873
31874 \begin_layout Description
31875
31876 \change_inserted -970929547 1515111461
31877 \begin_inset Flex Code
31878 status collapsed
31879
31880 \begin_layout Plain Layout
31881
31882 \change_inserted -970929547 1515110974
31883 DocBookItemAttr
31884 \change_unchanged
31885
31886 \end_layout
31887
31888 \end_inset
31889
31890  [
31891 \begin_inset Flex Code
31892 status collapsed
31893
31894 \begin_layout Plain Layout
31895
31896 \change_inserted -970929547 1515110973
31897 string
31898 \change_unchanged
31899
31900 \end_layout
31901
31902 \end_inset
31903
31904 ] Specifies attribute information to be output with the item tag,
31905  replacing 
31906 \begin_inset Quotes eld
31907 \end_inset
31908
31909
31910 \begin_inset Flex Code
31911 status collapsed
31912
31913 \begin_layout Plain Layout
31914
31915 \change_inserted -970929547 1515110984
31916 itemattr
31917 \change_unchanged
31918
31919 \end_layout
31920
31921 \end_inset
31922
31923
31924 \begin_inset Quotes erd
31925 \end_inset
31926
31927  in the example above.
31928  This information can be used in further processing of the DocBook files.
31929  
31930 \end_layout
31931
31932 \begin_layout Description
31933
31934 \change_inserted -970929547 1515111471
31935 \begin_inset Flex Code
31936 status collapsed
31937
31938 \begin_layout Plain Layout
31939
31940 \change_inserted -970929547 1515111465
31941 DocBookItemInnerAttr
31942 \change_unchanged
31943
31944 \end_layout
31945
31946 \end_inset
31947
31948  [
31949 \begin_inset Flex Code
31950 status collapsed
31951
31952 \begin_layout Plain Layout
31953
31954 \change_inserted -970929547 1515111461
31955 string
31956 \change_unchanged
31957
31958 \end_layout
31959
31960 \end_inset
31961
31962 ] Specifies attribute information to be output with the item inner tag,
31963  replacing 
31964 \begin_inset Quotes eld
31965 \end_inset
31966
31967
31968 \begin_inset Flex Code
31969 status collapsed
31970
31971 \begin_layout Plain Layout
31972
31973 \change_inserted -970929547 1515111476
31974 iteminnerattr
31975 \change_unchanged
31976
31977 \end_layout
31978
31979 \end_inset
31980
31981
31982 \begin_inset Quotes erd
31983 \end_inset
31984
31985  in the example above.
31986  This information can be used in further processing of the DocBook files.
31987  
31988 \end_layout
31989
31990 \begin_layout Description
31991
31992 \change_inserted -970929547 1515111494
31993 \begin_inset Flex Code
31994 status collapsed
31995
31996 \begin_layout Plain Layout
31997
31998 \change_inserted -970929547 1515111467
31999 DocBookItemInnerTag
32000 \change_unchanged
32001
32002 \end_layout
32003
32004 \end_inset
32005
32006  [
32007 \begin_inset Flex Code
32008 status collapsed
32009
32010 \begin_layout Plain Layout
32011
32012 \change_inserted -970929547 1515111461
32013 string
32014 \change_unchanged
32015
32016 \end_layout
32017
32018 \end_inset
32019
32020 ] The tag to be used for the item inner tag within the inset,
32021  replacing 
32022 \begin_inset Quotes eld
32023 \end_inset
32024
32025
32026 \begin_inset Flex Code
32027 status collapsed
32028
32029 \begin_layout Plain Layout
32030
32031 \change_inserted -970929547 1515111486
32032 iteminnertag
32033 \change_unchanged
32034
32035 \end_layout
32036
32037 \end_inset
32038
32039
32040 \begin_inset Quotes erd
32041 \end_inset
32042
32043  in the example above.
32044  The default is 
32045 \begin_inset Flex Code
32046 status collapsed
32047
32048 \begin_layout Plain Layout
32049
32050 \change_inserted -970929547 1515111461
32051 NONE
32052 \change_unchanged
32053
32054 \end_layout
32055
32056 \end_inset
32057
32058 ,
32059  indicating that there is no item inner tag:
32060  content is directly output without it for each itemised element.
32061  This parameter only makes sense when itemising layouts are used,
32062  such as lists.
32063  
32064 \change_inserted 1075283030 1598469472
32065 The most likely value is 
32066 \begin_inset Quotes eld
32067 \end_inset
32068
32069
32070 \begin_inset Flex Code
32071 status collapsed
32072
32073 \begin_layout Plain Layout
32074
32075 \change_inserted 1075283030 1598469476
32076 para
32077 \change_unchanged
32078
32079 \end_layout
32080
32081 \end_inset
32082
32083
32084 \begin_inset Quotes erd
32085 \end_inset
32086
32087 .
32088 \begin_inset Newline newline
32089 \end_inset
32090
32091 When a list item is split using a new line,
32092  the item inner tag will be repeated for each part of the paragraph,
32093  parts being separated by new lines.
32094  
32095 \end_layout
32096
32097 \begin_layout Description
32098
32099 \change_inserted 1075283030 1597699866
32100 \begin_inset Flex Code
32101 status collapsed
32102
32103 \begin_layout Plain Layout
32104
32105 \change_inserted 1075283030 1597699853
32106 DocBookItemInnerTagType
32107 \change_unchanged
32108
32109 \end_layout
32110
32111 \end_inset
32112
32113  [
32114 \begin_inset Flex Code
32115 status collapsed
32116
32117 \begin_layout Plain Layout
32118
32119 \change_inserted 1075283030 1597699866
32120 block,
32121  paragraph,
32122  inline
32123 \change_unchanged
32124
32125 \end_layout
32126
32127 \end_inset
32128
32129 ] The new-line policy for this tag,
32130  see Section
32131 \begin_inset space ~
32132 \end_inset
32133
32134
32135 \begin_inset CommandInset ref
32136 LatexCommand ref
32137 reference "subsec:DocBook-New-line-policy"
32138 plural "false"
32139 caps "false"
32140 noprefix "false"
32141 nolink "false"
32142
32143 \end_inset
32144
32145  for the details.
32146  
32147 \change_unchanged
32148
32149 \end_layout
32150
32151 \begin_layout Description
32152
32153 \change_inserted -970929547 1515111290
32154 \begin_inset Flex Code
32155 status collapsed
32156
32157 \begin_layout Plain Layout
32158
32159 \change_inserted -970929547 1515111283
32160 DocBookItemLabelAttr
32161 \change_unchanged
32162
32163 \end_layout
32164
32165 \end_inset
32166
32167  [
32168 \begin_inset Flex Code
32169 status collapsed
32170
32171 \begin_layout Plain Layout
32172
32173 \change_inserted -970929547 1515111279
32174 string
32175 \change_unchanged
32176
32177 \end_layout
32178
32179 \end_inset
32180
32181 ] Specifies attribute information to be output with the item label tag,
32182  replacing 
32183 \begin_inset Quotes eld
32184 \end_inset
32185
32186
32187 \begin_inset Flex Code
32188 status collapsed
32189
32190 \begin_layout Plain Layout
32191
32192 \change_inserted -970929547 1515111304
32193 itemlabelattr
32194 \change_unchanged
32195
32196 \end_layout
32197
32198 \end_inset
32199
32200
32201 \begin_inset Quotes erd
32202 \end_inset
32203
32204  in the example above.
32205  This information can be used in further processing of the DocBook files.
32206  
32207 \end_layout
32208
32209 \begin_layout Description
32210
32211 \change_inserted -970929547 1515111337
32212 \begin_inset Flex Code
32213 status collapsed
32214
32215 \begin_layout Plain Layout
32216
32217 \change_inserted -970929547 1515111285
32218 DocBookItemLabelTag
32219 \change_unchanged
32220
32221 \end_layout
32222
32223 \end_inset
32224
32225  [
32226 \begin_inset Flex Code
32227 status collapsed
32228
32229 \begin_layout Plain Layout
32230
32231 \change_inserted -970929547 1515111279
32232 string
32233 \change_unchanged
32234
32235 \end_layout
32236
32237 \end_inset
32238
32239 ] The tag to be used for the item label tag within the inset,
32240  replacing 
32241 \begin_inset Quotes eld
32242 \end_inset
32243
32244
32245 \begin_inset Flex Code
32246 status collapsed
32247
32248 \begin_layout Plain Layout
32249
32250 \change_inserted -970929547 1515111311
32251 itemlabeltag
32252 \change_unchanged
32253
32254 \end_layout
32255
32256 \end_inset
32257
32258
32259 \begin_inset Quotes erd
32260 \end_inset
32261
32262  in the example above.
32263  This parameter only makes sense when itemising layouts are used with a notion of labels,
32264  such as definition lists.
32265  
32266 \change_inserted 1075283030 1597699874
32267
32268 \end_layout
32269
32270 \begin_layout Description
32271
32272 \change_inserted 1075283030 1597699874
32273 \begin_inset Flex Code
32274 status collapsed
32275
32276 \begin_layout Plain Layout
32277
32278 \change_inserted 1075283030 1597699880
32279 DocBookItemLabelTagType
32280 \change_unchanged
32281
32282 \end_layout
32283
32284 \end_inset
32285
32286  [
32287 \begin_inset Flex Code
32288 status collapsed
32289
32290 \begin_layout Plain Layout
32291
32292 \change_inserted 1075283030 1597699874
32293 block,
32294  paragraph,
32295  inline
32296 \change_unchanged
32297
32298 \end_layout
32299
32300 \end_inset
32301
32302 ] The new-line policy for this tag,
32303  see Section
32304 \begin_inset space ~
32305 \end_inset
32306
32307
32308 \begin_inset CommandInset ref
32309 LatexCommand ref
32310 reference "subsec:DocBook-New-line-policy"
32311 plural "false"
32312 caps "false"
32313 noprefix "false"
32314 nolink "false"
32315
32316 \end_inset
32317
32318  for the details.
32319  
32320 \change_unchanged
32321
32322 \end_layout
32323
32324 \begin_layout Description
32325
32326 \change_inserted -970929547 1515111124
32327 \begin_inset Flex Code
32328 status collapsed
32329
32330 \begin_layout Plain Layout
32331
32332 \change_inserted -970929547 1515111060
32333 DocBookItemTag
32334 \change_unchanged
32335
32336 \end_layout
32337
32338 \end_inset
32339
32340  [
32341 \begin_inset Flex Code
32342 status collapsed
32343
32344 \begin_layout Plain Layout
32345
32346 \change_inserted -970929547 1515111060
32347 string
32348 \change_unchanged
32349
32350 \end_layout
32351
32352 \end_inset
32353
32354 ] The tag to be used for the item tag within the inset,
32355  replacing 
32356 \begin_inset Quotes eld
32357 \end_inset
32358
32359
32360 \begin_inset Flex Code
32361 status collapsed
32362
32363 \begin_layout Plain Layout
32364
32365 \change_inserted -970929547 1515111060
32366 itemtag
32367 \change_unchanged
32368
32369 \end_layout
32370
32371 \end_inset
32372
32373
32374 \begin_inset Quotes erd
32375 \end_inset
32376
32377  in the example above.
32378  The default is 
32379 \begin_inset Flex Code
32380 status collapsed
32381
32382 \begin_layout Plain Layout
32383
32384 \change_inserted -970929547 1515111060
32385 NONE
32386 \change_unchanged
32387
32388 \end_layout
32389
32390 \end_inset
32391
32392 ,
32393  indicating that there is no item tag.
32394  This parameter only makes sense when itemising layouts are used,
32395  such as lists.
32396  
32397 \change_inserted 1075283030 1597699890
32398
32399 \end_layout
32400
32401 \begin_layout Description
32402
32403 \change_inserted 1075283030 1597699890
32404 \begin_inset Flex Code
32405 status collapsed
32406
32407 \begin_layout Plain Layout
32408
32409 \change_inserted 1075283030 1597699890
32410 DocBookItemTagType
32411 \change_unchanged
32412
32413 \end_layout
32414
32415 \end_inset
32416
32417  [
32418 \begin_inset Flex Code
32419 status collapsed
32420
32421 \begin_layout Plain Layout
32422
32423 \change_inserted 1075283030 1597699890
32424 block,
32425  paragraph,
32426  inline
32427 \change_unchanged
32428
32429 \end_layout
32430
32431 \end_inset
32432
32433 ] The new-line policy for this tag,
32434  see Section
32435 \begin_inset space ~
32436 \end_inset
32437
32438
32439 \begin_inset CommandInset ref
32440 LatexCommand ref
32441 reference "subsec:DocBook-New-line-policy"
32442 plural "false"
32443 caps "false"
32444 noprefix "false"
32445 nolink "false"
32446
32447 \end_inset
32448
32449  for the details.
32450  
32451 \change_unchanged
32452
32453 \end_layout
32454
32455 \begin_layout Description
32456
32457 \change_inserted -970929547 1515111298
32458 \begin_inset Flex Code
32459 status collapsed
32460
32461 \begin_layout Plain Layout
32462
32463 \change_inserted -970929547 1515111124
32464 DocBookItemWrapperAttr
32465 \change_unchanged
32466
32467 \end_layout
32468
32469 \end_inset
32470
32471  [
32472 \begin_inset Flex Code
32473 status collapsed
32474
32475 \begin_layout Plain Layout
32476
32477 \change_inserted -970929547 1515111124
32478 string
32479 \change_unchanged
32480
32481 \end_layout
32482
32483 \end_inset
32484
32485 ] Specifies attribute information to be output with the item wrapper tag,
32486  replacing 
32487 \begin_inset Quotes eld
32488 \end_inset
32489
32490
32491 \begin_inset Flex Code
32492 status collapsed
32493
32494 \begin_layout Plain Layout
32495
32496 \change_inserted -970929547 1515111150
32497 itemwrapperattr
32498 \change_unchanged
32499
32500 \end_layout
32501
32502 \end_inset
32503
32504
32505 \begin_inset Quotes erd
32506 \end_inset
32507
32508  in the example above.
32509  This information can be used in further processing of the DocBook files.
32510  
32511 \change_unchanged
32512
32513 \end_layout
32514
32515 \begin_layout Description
32516
32517 \change_inserted -970929547 1515111113
32518 \begin_inset Flex Code
32519 status collapsed
32520
32521 \begin_layout Plain Layout
32522
32523 \change_inserted -970929547 1515111073
32524 DocBookItemWrapperTag
32525 \change_unchanged
32526
32527 \end_layout
32528
32529 \end_inset
32530
32531  [
32532 \begin_inset Flex Code
32533 status collapsed
32534
32535 \begin_layout Plain Layout
32536
32537 \change_inserted -970929547 1515111073
32538 string
32539 \change_unchanged
32540
32541 \end_layout
32542
32543 \end_inset
32544
32545 ] The tag to be used for the item wrapper tag within the inset,
32546  replacing 
32547 \begin_inset Quotes eld
32548 \end_inset
32549
32550
32551 \begin_inset Flex Code
32552 status collapsed
32553
32554 \begin_layout Plain Layout
32555
32556 \change_inserted -970929547 1515111083
32557 itemwrappertag
32558 \change_unchanged
32559
32560 \end_layout
32561
32562 \end_inset
32563
32564
32565 \begin_inset Quotes erd
32566 \end_inset
32567
32568  in the example above.
32569  The default is 
32570 \begin_inset Flex Code
32571 status collapsed
32572
32573 \begin_layout Plain Layout
32574
32575 \change_inserted -970929547 1515111073
32576 NONE
32577 \change_unchanged
32578
32579 \end_layout
32580
32581 \end_inset
32582
32583 ,
32584  indicating that there is no item wrapper tag:
32585  tag and content are directly output without it for each itemised element.
32586  This parameter only makes sense when itemising layouts are used,
32587  such as lists.
32588  
32589 \change_inserted 1075283030 1597699897
32590
32591 \end_layout
32592
32593 \begin_layout Description
32594
32595 \change_inserted 1075283030 1597699897
32596 \begin_inset Flex Code
32597 status collapsed
32598
32599 \begin_layout Plain Layout
32600
32601 \change_inserted 1075283030 1597699900
32602 DocBookItemWrapperTagType
32603 \change_unchanged
32604
32605 \end_layout
32606
32607 \end_inset
32608
32609  [
32610 \begin_inset Flex Code
32611 status collapsed
32612
32613 \begin_layout Plain Layout
32614
32615 \change_inserted 1075283030 1597699897
32616 block,
32617  paragraph,
32618  inline
32619 \change_unchanged
32620
32621 \end_layout
32622
32623 \end_inset
32624
32625 ] The new-line policy for this tag,
32626  see Section
32627 \begin_inset space ~
32628 \end_inset
32629
32630
32631 \begin_inset CommandInset ref
32632 LatexCommand ref
32633 reference "subsec:DocBook-New-line-policy"
32634 plural "false"
32635 caps "false"
32636 noprefix "false"
32637 nolink "false"
32638
32639 \end_inset
32640
32641  for the details.
32642  
32643 \change_unchanged
32644
32645 \end_layout
32646
32647 \begin_layout Description
32648
32649 \change_inserted -970929547 1515110104
32650 \begin_inset Flex Code
32651 status collapsed
32652
32653 \begin_layout Plain Layout
32654
32655 \change_inserted -970929547 1515110104
32656 DocBookInnerAttr
32657 \change_unchanged
32658
32659 \end_layout
32660
32661 \end_inset
32662
32663  [
32664 \begin_inset Flex Code
32665 status collapsed
32666
32667 \begin_layout Plain Layout
32668
32669 \change_inserted -970929547 1515110104
32670 string
32671 \change_unchanged
32672
32673 \end_layout
32674
32675 \end_inset
32676
32677 ] Specifies attribute information to be output with the inner tag,
32678  replacing 
32679 \begin_inset Quotes eld
32680 \end_inset
32681
32682
32683 \begin_inset Flex Code
32684 status collapsed
32685
32686 \begin_layout Plain Layout
32687
32688 \change_inserted -970929547 1515110104
32689 innerattr
32690 \change_unchanged
32691
32692 \end_layout
32693
32694 \end_inset
32695
32696
32697 \begin_inset Quotes erd
32698 \end_inset
32699
32700  in the example above.
32701  This information can be used in further processing of the DocBook files.
32702  
32703 \end_layout
32704
32705 \begin_layout Description
32706
32707 \change_inserted -970929547 1515110906
32708 \begin_inset Flex Code
32709 status collapsed
32710
32711 \begin_layout Plain Layout
32712
32713 \change_inserted -970929547 1515110104
32714 DocBookInnerTag
32715 \change_unchanged
32716
32717 \end_layout
32718
32719 \end_inset
32720
32721  [
32722 \begin_inset Flex Code
32723 status collapsed
32724
32725 \begin_layout Plain Layout
32726
32727 \change_inserted -970929547 1515110104
32728 string
32729 \change_unchanged
32730
32731 \end_layout
32732
32733 \end_inset
32734
32735 ] The tag to be used for the inner tag within the inset,
32736  replacing 
32737 \begin_inset Quotes eld
32738 \end_inset
32739
32740
32741 \begin_inset Flex Code
32742 status collapsed
32743
32744 \begin_layout Plain Layout
32745
32746 \change_inserted -970929547 1515110104
32747 innertag
32748 \change_unchanged
32749
32750 \end_layout
32751
32752 \end_inset
32753
32754
32755 \begin_inset Quotes erd
32756 \end_inset
32757
32758  in the example above.
32759  The default is 
32760 \begin_inset Flex Code
32761 status collapsed
32762
32763 \begin_layout Plain Layout
32764
32765 \change_inserted -970929547 1515110791
32766 NONE
32767 \change_unchanged
32768
32769 \end_layout
32770
32771 \end_inset
32772
32773 ,
32774  indicating that there is no inner tag:
32775  content is directly output without it.
32776 \change_inserted 1075283030 1597699904
32777
32778 \end_layout
32779
32780 \begin_layout Description
32781
32782 \change_inserted 1075283030 1597699904
32783 \begin_inset Flex Code
32784 status collapsed
32785
32786 \begin_layout Plain Layout
32787
32788 \change_inserted 1075283030 1597699904
32789 DocBookInnerTagType
32790 \change_unchanged
32791
32792 \end_layout
32793
32794 \end_inset
32795
32796  [
32797 \begin_inset Flex Code
32798 status collapsed
32799
32800 \begin_layout Plain Layout
32801
32802 \change_inserted 1075283030 1597699904
32803 block,
32804  paragraph,
32805  inline
32806 \change_unchanged
32807
32808 \end_layout
32809
32810 \end_inset
32811
32812 ] The new-line policy for this tag,
32813  see Section
32814 \begin_inset space ~
32815 \end_inset
32816
32817
32818 \begin_inset CommandInset ref
32819 LatexCommand ref
32820 reference "subsec:DocBook-New-line-policy"
32821 plural "false"
32822 caps "false"
32823 noprefix "false"
32824 nolink "false"
32825
32826 \end_inset
32827
32828  for the details.
32829  
32830 \change_unchanged
32831
32832 \end_layout
32833
32834 \begin_layout Description
32835
32836 \change_inserted -970929547 1515110753
32837 \begin_inset Flex Code
32838 status collapsed
32839
32840 \begin_layout Plain Layout
32841
32842 \change_inserted -970929547 1515110665
32843 DocBookSectionTag
32844 \change_unchanged
32845
32846 \end_layout
32847
32848 \end_inset
32849
32850  [
32851 \begin_inset Flex Code
32852 status collapsed
32853
32854 \begin_layout Plain Layout
32855
32856 \change_inserted -970929547 1515110661
32857 string
32858 \change_unchanged
32859
32860 \end_layout
32861
32862 \end_inset
32863
32864 ] Specifies the tag that corresponds to this kind of section.
32865  This parameter only makes sense for sectioning elements (part,
32866  chapter,
32867  section,
32868  etc.).
32869  The default value is 
32870 \begin_inset Flex Code
32871 status collapsed
32872
32873 \begin_layout Plain Layout
32874
32875 \change_inserted -970929547 1515110721
32876 section
32877 \change_unchanged
32878
32879 \end_layout
32880
32881 \end_inset
32882
32883 ,
32884  and is only overridden when DocBook uses something else for sectioning (
32885 \change_inserted 1075283030 1597699921
32886 typically,
32887  
32888 \change_inserted -970929547 1515110753
32889 parts and chapters of a book).
32890  
32891 \change_unchanged
32892
32893 \end_layout
32894
32895 \begin_layout Description
32896
32897 \change_inserted -970929547 1515110811
32898 \begin_inset Flex Code
32899 status collapsed
32900
32901 \begin_layout Plain Layout
32902
32903 \change_inserted -970929547 1496612023
32904 DocBookTag
32905 \change_unchanged
32906
32907 \end_layout
32908
32909 \end_inset
32910
32911  [
32912 \begin_inset Flex Code
32913 status collapsed
32914
32915 \begin_layout Plain Layout
32916
32917 \change_inserted -970929547 1496610966
32918 string
32919 \change_unchanged
32920
32921 \end_layout
32922
32923 \end_inset
32924
32925 ] The tag to be used for this inset,
32926  replacing 
32927 \begin_inset Quotes eld
32928 \end_inset
32929
32930
32931 \begin_inset Flex Code
32932 status collapsed
32933
32934 \begin_layout Plain Layout
32935
32936 \change_inserted -970929547 1496612033
32937 tag
32938 \change_unchanged
32939
32940 \end_layout
32941
32942 \end_inset
32943
32944
32945 \begin_inset Quotes erd
32946 \end_inset
32947
32948  in the example above.
32949  The default is the name of the float and always needs to be changed,
32950  as DocBook provides no generic inset tag.
32951 \change_inserted 1075283030 1597699924
32952
32953 \end_layout
32954
32955 \begin_layout Description
32956
32957 \change_inserted 1075283030 1597699924
32958 \begin_inset Flex Code
32959 status collapsed
32960
32961 \begin_layout Plain Layout
32962
32963 \change_inserted 1075283030 1597699924
32964 DocBookTagType
32965 \change_unchanged
32966
32967 \end_layout
32968
32969 \end_inset
32970
32971  [
32972 \begin_inset Flex Code
32973 status collapsed
32974
32975 \begin_layout Plain Layout
32976
32977 \change_inserted 1075283030 1597699924
32978 block,
32979  paragraph,
32980  inline
32981 \change_unchanged
32982
32983 \end_layout
32984
32985 \end_inset
32986
32987 ] The new-line policy for this tag,
32988  see Section
32989 \begin_inset space ~
32990 \end_inset
32991
32992
32993 \begin_inset CommandInset ref
32994 LatexCommand ref
32995 reference "subsec:DocBook-New-line-policy"
32996 plural "false"
32997 caps "false"
32998 noprefix "false"
32999 nolink "false"
33000
33001 \end_inset
33002
33003  for the details.
33004  
33005 \change_unchanged
33006
33007 \end_layout
33008
33009 \begin_layout Description
33010
33011 \change_inserted -970929547 1515110832
33012 \begin_inset Flex Code
33013 status collapsed
33014
33015 \begin_layout Plain Layout
33016
33017 \change_inserted -970929547 1515110822
33018 DocBookWrapperAttr
33019 \change_unchanged
33020
33021 \end_layout
33022
33023 \end_inset
33024
33025  [
33026 \begin_inset Flex Code
33027 status collapsed
33028
33029 \begin_layout Plain Layout
33030
33031 \change_inserted -970929547 1515110811
33032 string
33033 \change_unchanged
33034
33035 \end_layout
33036
33037 \end_inset
33038
33039 ] Specifies attribute information to be output with the outer 
33040 \change_inserted 34634807 1620057958
33041 wrapper 
33042 \change_inserted -970929547 1515110832
33043 tag,
33044  replacing 
33045 \begin_inset Quotes eld
33046 \end_inset
33047
33048
33049 \begin_inset Flex Code
33050 status collapsed
33051
33052 \begin_layout Plain Layout
33053
33054 \change_inserted -970929547 1515110845
33055 wrapperattr
33056 \change_unchanged
33057
33058 \end_layout
33059
33060 \end_inset
33061
33062
33063 \begin_inset Quotes erd
33064 \end_inset
33065
33066  in the example above.
33067  This information can be used in further processing of the DocBook files.
33068  
33069 \end_layout
33070
33071 \begin_layout Description
33072
33073 \change_inserted -970929547 1515110917
33074 \begin_inset Flex Code
33075 status collapsed
33076
33077 \begin_layout Plain Layout
33078
33079 \change_inserted -970929547 1515110826
33080 DocBookWrapperTag
33081 \change_unchanged
33082
33083 \end_layout
33084
33085 \end_inset
33086
33087  [
33088 \begin_inset Flex Code
33089 status collapsed
33090
33091 \begin_layout Plain Layout
33092
33093 \change_inserted -970929547 1515110811
33094 string
33095 \change_unchanged
33096
33097 \end_layout
33098
33099 \end_inset
33100
33101 ] The tag to be used for the wrapper tag around the inset,
33102  replacing 
33103 \begin_inset Quotes eld
33104 \end_inset
33105
33106
33107 \begin_inset Flex Code
33108 status collapsed
33109
33110 \begin_layout Plain Layout
33111
33112 \change_inserted -970929547 1515110842
33113 wrappertag
33114 \change_unchanged
33115
33116 \end_layout
33117
33118 \end_inset
33119
33120
33121 \begin_inset Quotes erd
33122 \end_inset
33123
33124  in the example above.
33125  The default is 
33126 \begin_inset Flex Code
33127 status collapsed
33128
33129 \begin_layout Plain Layout
33130
33131 \change_inserted -970929547 1515110811
33132 NONE
33133 \change_unchanged
33134
33135 \end_layout
33136
33137 \end_inset
33138
33139 ,
33140  indicating that there is no wrapper tag:
33141  tag and content are directly output without it.
33142 \change_inserted 1075283030 1597699929
33143
33144 \end_layout
33145
33146 \begin_layout Description
33147
33148 \change_inserted 1075283030 1597699929
33149 \begin_inset Flex Code
33150 status collapsed
33151
33152 \begin_layout Plain Layout
33153
33154 \change_inserted 1075283030 1597699932
33155 DocBookWrapperTagType
33156 \change_unchanged
33157
33158 \end_layout
33159
33160 \end_inset
33161
33162  [
33163 \begin_inset Flex Code
33164 status collapsed
33165
33166 \begin_layout Plain Layout
33167
33168 \change_inserted 1075283030 1597699929
33169 block,
33170  paragraph,
33171  inline
33172 \change_unchanged
33173
33174 \end_layout
33175
33176 \end_inset
33177
33178 ] The new-line policy for this tag,
33179  see Section
33180 \begin_inset space ~
33181 \end_inset
33182
33183
33184 \begin_inset CommandInset ref
33185 LatexCommand ref
33186 reference "subsec:DocBook-New-line-policy"
33187 plural "false"
33188 caps "false"
33189 noprefix "false"
33190 nolink "false"
33191
33192 \end_inset
33193
33194  for the details.
33195  
33196 \change_unchanged
33197
33198 \end_layout
33199
33200 \begin_layout Subsection
33201
33202 \change_inserted -970929547 1515110040
33203 Float DocBook
33204 \end_layout
33205
33206 \begin_layout Standard
33207
33208 \change_inserted -970929547 1496611700
33209 The DocBook output for floats too can be controlled by layout information.
33210  The output has the following form:
33211 \end_layout
33212
33213 \begin_layout LyX-Code
33214
33215 \change_inserted -970929547 1515109700
33216 <tag attr>
33217 \end_layout
33218
33219 \begin_layout LyX-Code
33220
33221 \change_inserted -970929547 1515110138
33222   Contents of the float as DocBook.
33223 \end_layout
33224
33225 \begin_layout LyX-Code
33226
33227 \change_inserted -970929547 1496610966
33228 </tag>
33229 \end_layout
33230
33231 \begin_layout Standard
33232
33233 \change_inserted -970929547 1496611715
33234 The caption,
33235  if there is one,
33236  is a separate inset and will be output as a title.
33237  
33238 \end_layout
33239
33240 \begin_layout Description
33241
33242 \change_inserted -970929547 1515110033
33243 \begin_inset Flex Code
33244 status collapsed
33245
33246 \begin_layout Plain Layout
33247
33248 \change_inserted -970929547 1515109702
33249 DocBookAttr
33250 \change_unchanged
33251
33252 \end_layout
33253
33254 \end_inset
33255
33256  [
33257 \begin_inset Flex Code
33258 status collapsed
33259
33260 \begin_layout Plain Layout
33261
33262 \change_inserted -970929547 1496610966
33263 string
33264 \change_unchanged
33265
33266 \end_layout
33267
33268 \end_inset
33269
33270 ] Specifies attribute information to be output with the main tag,
33271  replacing 
33272 \begin_inset Quotes eld
33273 \end_inset
33274
33275
33276 \begin_inset Flex Code
33277 status collapsed
33278
33279 \begin_layout Plain Layout
33280
33281 \change_inserted -970929547 1515110035
33282 attr
33283 \change_unchanged
33284
33285 \end_layout
33286
33287 \end_inset
33288
33289
33290 \begin_inset Quotes erd
33291 \end_inset
33292
33293  in the example above.
33294  This information can be used in further processing of the DocBook files.
33295  
33296 \end_layout
33297
33298 \begin_layout Description
33299
33300 \change_inserted -970929547 1515110157
33301 \begin_inset Flex Code
33302 status collapsed
33303
33304 \begin_layout Plain Layout
33305
33306 \change_inserted -970929547 1496611782
33307 DocBookTag
33308 \change_unchanged
33309
33310 \end_layout
33311
33312 \end_inset
33313
33314  [
33315 \begin_inset Flex Code
33316 status collapsed
33317
33318 \begin_layout Plain Layout
33319
33320 \change_inserted -970929547 1496610966
33321 string
33322 \change_unchanged
33323
33324 \end_layout
33325
33326 \end_inset
33327
33328 ] The tag to be used for this float,
33329  replacing 
33330 \begin_inset Quotes eld
33331 \end_inset
33332
33333
33334 \begin_inset Flex Code
33335 status collapsed
33336
33337 \begin_layout Plain Layout
33338
33339 \change_inserted -970929547 1496610966
33340 tag
33341 \change_unchanged
33342
33343 \end_layout
33344
33345 \end_inset
33346
33347
33348 \begin_inset Quotes erd
33349 \end_inset
33350
33351  in the example above.
33352  The default is the name of the float and always needs to be changed,
33353  as DocBook provides no generic float tag.
33354 \end_layout
33355
33356 \begin_layout Subsection
33357
33358 \change_inserted -970929547 1515110157
33359 Bibliography formatting
33360 \end_layout
33361
33362 \begin_layout Standard
33363
33364 \change_deleted 1075283030 1597699984
33365 The 
33366 \change_inserted 1075283030 1597699985
33367 Included 
33368 \change_inserted -970929547 1515110187
33369 bibliograph
33370 \change_deleted 1075283030 1597699987
33371 y
33372 \change_inserted 1075283030 1597699987
33373 ies
33374 \change_inserted -970929547 1515110187
33375  cannot be formatted:
33376  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file)
33377 \change_inserted 1075283030 1597700117
33378 ,
33379  using the 
33380 \begin_inset Flex Code
33381 status collapsed
33382
33383 \begin_layout Plain Layout
33384
33385 \change_inserted 1075283030 1597700120
33386 biblioentry
33387 \change_unchanged
33388
33389 \end_layout
33390
33391 \end_inset
33392
33393  tag
33394 \change_inserted -970929547 1515110187
33395 .
33396 \change_inserted 1075283030 1597700092
33397
33398 \end_layout
33399
33400 \begin_layout Standard
33401
33402 \change_inserted 1075283030 1597700112
33403 When the bibliographic entries are manually inserted into the 
33404 \change_deleted 34634807 1620057319
33405 LyX
33406 \change_inserted 34634807 1620057319
33407 \SpecialChar LyX
33408
33409 \change_inserted 1075283030 1597700112
33410  document as Bibliography Items,
33411  the user deals with formatting 
33412 \change_unchanged
33413 them
33414 \change_inserted 1075283030 1597700112
33415 self:
33416  there is no attempt of parsing what the user wrote,
33417  the string is directly used (with the 
33418 \begin_inset Flex Code
33419 status collapsed
33420
33421 \begin_layout Plain Layout
33422
33423 \change_inserted 1075283030 1597700076
33424 bibliomixed
33425 \change_unchanged
33426
33427 \end_layout
33428
33429 \end_inset
33430
33431  tag).
33432  
33433 \change_unchanged
33434
33435 \end_layout
33436
33437 \begin_layout Chapter
33438 Including External Material
33439 \begin_inset CommandInset label
33440 LatexCommand label
33441 name "chap:Including-External-Material"
33442
33443 \end_inset
33444
33445
33446 \end_layout
33447
33448 \begin_layout Standard
33449 \begin_inset Box Shadowbox
33450 position "t"
33451 hor_pos "c"
33452 has_inner_box 1
33453 inner_pos "t"
33454 use_parbox 0
33455 use_makebox 0
33456 width "100col%"
33457 special "none"
33458 height "1in"
33459 height_special "totalheight"
33460 thickness "0.4pt"
33461 separation "3pt"
33462 shadowsize "4pt"
33463 framecolor "black"
33464 backgroundcolor "none"
33465 status open
33466
33467 \begin_layout Plain Layout
33468 WARNING:
33469  This portion of the documentation has not been updated for some time.
33470  We certainly hope that it is still accurate,
33471  but there are no guarantees.
33472 \end_layout
33473
33474 \end_inset
33475
33476
33477 \end_layout
33478
33479 \begin_layout Standard
33480 The use of material from sources external to \SpecialChar LyX
33481  is covered in detail in the 
33482 \emph on
33483 Embedded Objects
33484 \emph default
33485  manual.
33486  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
33487 \end_layout
33488
33489 \begin_layout Section
33490 How does it work?
33491 \end_layout
33492
33493 \begin_layout Standard
33494 The external material feature is based on the concept of a 
33495 \emph on
33496 template
33497 \emph default
33498 .
33499  A template is a specification of how \SpecialChar LyX
33500  should interface with a certain kind of material.
33501  As bundled,
33502  \SpecialChar LyX
33503  comes with predefined templates for Xfig figures,
33504  various raster format images,
33505  chess diagrams,
33506  and LilyPond music notation.
33507  You can check the actual list by using the menu 
33508 \begin_inset Flex Noun
33509 status collapsed
33510
33511 \begin_layout Plain Layout
33512 Insert\SpecialChar menuseparator
33513 File\SpecialChar menuseparator
33514 External Material
33515 \end_layout
33516
33517 \end_inset
33518
33519 .
33520  Furthermore,
33521  it is possible to roll your own template to support a specific kind of material.
33522  Later we'll describe in more detail what is involved,
33523  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
33524  version.
33525 \end_layout
33526
33527 \begin_layout Standard
33528 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.
33529  For example,
33530  consider the case of a figure produced with 
33531 \begin_inset Flex Code
33532 status collapsed
33533
33534 \begin_layout Plain Layout
33535 Xfig
33536 \end_layout
33537
33538 \end_inset
33539
33540 .
33541  The Xfig application itself works on an original file with the 
33542 \begin_inset Flex Code
33543 status collapsed
33544
33545 \begin_layout Plain Layout
33546 .fig
33547 \end_layout
33548
33549 \end_inset
33550
33551  extension.
33552  Within Xfig,
33553  you create and change your figure,
33554  and when you are done,
33555  you save the 
33556 \begin_inset Flex Code
33557 status collapsed
33558
33559 \begin_layout Plain Layout
33560 fig
33561 \end_layout
33562
33563 \end_inset
33564
33565 -file.
33566  When you want to include the figure in your document,
33567  you invoke 
33568 \begin_inset Flex Code
33569 status collapsed
33570
33571 \begin_layout Plain Layout
33572 transfig
33573 \end_layout
33574
33575 \end_inset
33576
33577  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
33578  file.
33579  In this case,
33580  the 
33581 \begin_inset Flex Code
33582 status collapsed
33583
33584 \begin_layout Plain Layout
33585 .fig
33586 \end_layout
33587
33588 \end_inset
33589
33590  file is the original file,
33591  and the PostScript file is the produced file.
33592 \end_layout
33593
33594 \begin_layout Standard
33595 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
33596  Furthermore,
33597  it provides us with the flexibility that is needed to support multiple export formats.
33598  For instance,
33599  in the case of a plain text file,
33600  it is not exactly an award-winning idea to include the figure as raw PostScript.
33601  Instead,
33602  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.
33603  The external material management allows you to do this,
33604  because it is parametrized on the different export formats that \SpecialChar LyX
33605  supports.
33606 \end_layout
33607
33608 \begin_layout Standard
33609 Besides supporting the production of different products according to the exported format,
33610  it supports tight integration with editing and viewing applications.
33611  In the case of an Xfig figure,
33612  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
33613 ,
33614  and also preview the produced PostScript file with Ghostview with another click.
33615  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
33616  In this way,
33617  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
33618  and ultimately be more productive.
33619 \end_layout
33620
33621 \begin_layout Section
33622 The external template configuration files
33623 \end_layout
33624
33625 \begin_layout Standard
33626 It is relatively easy to add custom external template definitions to \SpecialChar LyX
33627 .
33628  However,
33629  be aware that doing this in an careless manner most probably 
33630 \emph on
33631 will
33632 \emph default
33633  introduce an easily exploitable security hole.
33634  So before you do this,
33635  please read the discussion about security in 
33636 \begin_inset CommandInset ref
33637 LatexCommand ref
33638 reference "sec:Security-discussion"
33639 nolink "false"
33640
33641 \end_inset
33642
33643 .
33644 \end_layout
33645
33646 \begin_layout Standard
33647 Having said that,
33648  we encourage you to submit any interesting templates that you create.
33649  
33650 \end_layout
33651
33652 \begin_layout Standard
33653 The external templates are defined in the 
33654 \begin_inset Flex Code
33655 status collapsed
33656
33657 \begin_layout Plain Layout
33658 *.xtemplate
33659 \end_layout
33660
33661 \end_inset
33662
33663  files that are stored in the 
33664 \begin_inset Flex Code
33665 status collapsed
33666
33667 \begin_layout Plain Layout
33668 LyXDir/lib/xtemplates/
33669 \end_layout
33670
33671 \end_inset
33672
33673  directory.
33674  Each template is defined in a file of its own.
33675  You can place your own templates in 
33676 \begin_inset Flex Code
33677 status collapsed
33678
33679 \begin_layout Plain Layout
33680 UserDir/xtemplates/
33681 \end_layout
33682
33683 \end_inset
33684
33685  or copy existing templates to that directory in order to modify them.
33686 \end_layout
33687
33688 \begin_layout Standard
33689 A typical template looks like this:
33690 \end_layout
33691
33692 \begin_layout LyX-Code
33693 Template XFig
33694 \end_layout
33695
33696 \begin_layout LyX-Code
33697 GuiName "XFig:
33698  $$AbsOrRelPathParent$$Basename"
33699 \end_layout
33700
33701 \begin_layout LyX-Code
33702 HelpText
33703 \end_layout
33704
33705 \begin_layout LyX-Code
33706 An XFig figure.
33707 \end_layout
33708
33709 \begin_layout LyX-Code
33710 HelpTextEnd
33711 \end_layout
33712
33713 \begin_layout LyX-Code
33714 InputFormat fig
33715 \end_layout
33716
33717 \begin_layout LyX-Code
33718 FileFilter "*.fig"
33719 \end_layout
33720
33721 \begin_layout LyX-Code
33722 AutomaticProduction true
33723 \end_layout
33724
33725 \begin_layout LyX-Code
33726 Transform Rotate
33727 \end_layout
33728
33729 \begin_layout LyX-Code
33730 Transform Resize
33731 \end_layout
33732
33733 \begin_layout LyX-Code
33734 Format LaTeX
33735 \end_layout
33736
33737 \begin_layout LyX-Code
33738 TransformCommand Rotate RotationLatexCommand
33739 \end_layout
33740
33741 \begin_layout LyX-Code
33742 TransformCommand Resize ResizeLatexCommand
33743 \end_layout
33744
33745 \begin_layout LyX-Code
33746 Product "$$RotateFront$$ResizeFront
33747 \end_layout
33748
33749 \begin_layout LyX-Code
33750          
33751 \backslash
33752
33753 \backslash
33754 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
33755 \end_layout
33756
33757 \begin_layout LyX-Code
33758          $$ResizeBack$$RotateBack"
33759 \end_layout
33760
33761 \begin_layout LyX-Code
33762 UpdateFormat pstex
33763 \end_layout
33764
33765 \begin_layout LyX-Code
33766 UpdateResult "$$AbsPath$$Basename.pstex_t"
33767 \end_layout
33768
33769 \begin_layout LyX-Code
33770 Requirement "graphicx"
33771 \end_layout
33772
33773 \begin_layout LyX-Code
33774 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
33775 \end_layout
33776
33777 \begin_layout LyX-Code
33778 ReferencedFile latex "$$AbsPath$$Basename.eps"
33779 \end_layout
33780
33781 \begin_layout LyX-Code
33782 ReferencedFile dvi "$$AbsPath$$Basename.eps"
33783 \end_layout
33784
33785 \begin_layout LyX-Code
33786 FormatEnd
33787 \end_layout
33788
33789 \begin_layout LyX-Code
33790 Format PDFLaTeX
33791 \end_layout
33792
33793 \begin_layout LyX-Code
33794 TransformCommand Rotate RotationLatexCommand
33795 \end_layout
33796
33797 \begin_layout LyX-Code
33798 TransformCommand Resize ResizeLatexCommand
33799 \end_layout
33800
33801 \begin_layout LyX-Code
33802 Product "$$RotateFront$$ResizeFront
33803 \end_layout
33804
33805 \begin_layout LyX-Code
33806          
33807 \backslash
33808
33809 \backslash
33810 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
33811 \end_layout
33812
33813 \begin_layout LyX-Code
33814          $$ResizeBack$$RotateBack"
33815 \end_layout
33816
33817 \begin_layout LyX-Code
33818 UpdateFormat pdftex
33819 \end_layout
33820
33821 \begin_layout LyX-Code
33822 UpdateResult "$$AbsPath$$Basename.pdftex_t"
33823 \end_layout
33824
33825 \begin_layout LyX-Code
33826 Requirement "graphicx"
33827 \end_layout
33828
33829 \begin_layout LyX-Code
33830 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
33831 \end_layout
33832
33833 \begin_layout LyX-Code
33834 ReferencedFile latex "$$AbsPath$$Basename.pdf"
33835 \end_layout
33836
33837 \begin_layout LyX-Code
33838 FormatEnd
33839 \end_layout
33840
33841 \begin_layout LyX-Code
33842 Format Ascii
33843 \end_layout
33844
33845 \begin_layout LyX-Code
33846 Product "[XFig:
33847  $$FName]"
33848 \end_layout
33849
33850 \begin_layout LyX-Code
33851 FormatEnd
33852 \end_layout
33853
33854 \begin_layout LyX-Code
33855 Format DocBook
33856 \end_layout
33857
33858 \begin_layout LyX-Code
33859 Product "<graphic fileref=
33860 \backslash
33861 "$$AbsOrRelPathMaster$$Basename.eps
33862 \backslash
33863 ">
33864 \end_layout
33865
33866 \begin_layout LyX-Code
33867          </graphic>"
33868 \end_layout
33869
33870 \begin_layout LyX-Code
33871 UpdateFormat eps
33872 \end_layout
33873
33874 \begin_layout LyX-Code
33875 UpdateResult "$$AbsPath$$Basename.eps"
33876 \end_layout
33877
33878 \begin_layout LyX-Code
33879 ReferencedFile docbook "$$AbsPath$$Basename.eps"
33880 \end_layout
33881
33882 \begin_layout LyX-Code
33883 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
33884 \end_layout
33885
33886 \begin_layout LyX-Code
33887 FormatEnd
33888 \end_layout
33889
33890 \begin_layout LyX-Code
33891 TemplateEnd
33892 \end_layout
33893
33894 \begin_layout Standard
33895 As you can see,
33896  the template is enclosed in 
33897 \begin_inset Flex Code
33898 status collapsed
33899
33900 \begin_layout Plain Layout
33901 Template
33902 \end_layout
33903
33904 \end_inset
33905
33906  \SpecialChar ldots
33907  
33908 \begin_inset Flex Code
33909 status collapsed
33910
33911 \begin_layout Plain Layout
33912 TemplateEnd
33913 \end_layout
33914
33915 \end_inset
33916
33917 .
33918  It contains a header specifying some general settings and,
33919  for each supported primary document file format,
33920  a section 
33921 \begin_inset Flex Code
33922 status collapsed
33923
33924 \begin_layout Plain Layout
33925 Format
33926 \end_layout
33927
33928 \end_inset
33929
33930  \SpecialChar ldots
33931  
33932 \begin_inset Flex Code
33933 status collapsed
33934
33935 \begin_layout Plain Layout
33936 FormatEnd
33937 \end_layout
33938
33939 \end_inset
33940
33941 .
33942 \end_layout
33943
33944 \begin_layout Subsection
33945 The template header
33946 \end_layout
33947
33948 \begin_layout Description
33949 \begin_inset Flex Code
33950 status collapsed
33951
33952 \begin_layout Plain Layout
33953 AutomaticProduction
33954 \begin_inset space ~
33955 \end_inset
33956
33957 true|false
33958 \end_layout
33959
33960 \end_inset
33961
33962  Whether the file represented by the template must be generated by \SpecialChar LyX
33963 .
33964  This command must occur exactly once.
33965 \end_layout
33966
33967 \begin_layout Description
33968 \begin_inset Flex Code
33969 status collapsed
33970
33971 \begin_layout Plain Layout
33972 FileFilter
33973 \begin_inset space ~
33974 \end_inset
33975
33976 <pattern>
33977 \end_layout
33978
33979 \end_inset
33980
33981  A glob pattern that is used in the file dialog to filter out the desired files.
33982  If there is more than one possible file extension (e.
33983 \begin_inset space \thinspace{}
33984 \end_inset
33985
33986 g.
33987 \begin_inset space \space{}
33988 \end_inset
33989
33990 tgif has 
33991 \begin_inset Flex Code
33992 status collapsed
33993
33994 \begin_layout Plain Layout
33995 .obj
33996 \end_layout
33997
33998 \end_inset
33999
34000  and 
34001 \begin_inset Flex Code
34002 status collapsed
34003
34004 \begin_layout Plain Layout
34005 .tgo
34006 \end_layout
34007
34008 \end_inset
34009
34010 ),
34011  use something like 
34012 \begin_inset Flex Code
34013 status collapsed
34014
34015 \begin_layout Plain Layout
34016 "*.{obj,tgo}"
34017 \end_layout
34018
34019 \end_inset
34020
34021 .
34022  This command must occur exactly once.
34023 \end_layout
34024
34025 \begin_layout Description
34026 \begin_inset Flex Code
34027 status collapsed
34028
34029 \begin_layout Plain Layout
34030 GuiName
34031 \begin_inset space ~
34032 \end_inset
34033
34034 <guiname>
34035 \end_layout
34036
34037 \end_inset
34038
34039  The text that is displayed on the button.
34040  This command must occur exactly once.
34041 \end_layout
34042
34043 \begin_layout Description
34044 \begin_inset Flex Code
34045 status collapsed
34046
34047 \begin_layout Plain Layout
34048 HelpText
34049 \begin_inset space ~
34050 \end_inset
34051
34052 <text>
34053 \begin_inset space ~
34054 \end_inset
34055
34056 HelpTextEnd
34057 \end_layout
34058
34059 \end_inset
34060
34061  The help text that is used in the External dialog.
34062  Provide enough information to explain to the user just what the template can provide him with.
34063  This command must occur exactly once.
34064 \end_layout
34065
34066 \begin_layout Description
34067 \begin_inset Flex Code
34068 status collapsed
34069
34070 \begin_layout Plain Layout
34071 InputFormat
34072 \begin_inset space ~
34073 \end_inset
34074
34075 <format>
34076 \end_layout
34077
34078 \end_inset
34079
34080  The file format of the original file.
34081  This must be the name of a format that is known to \SpecialChar LyX
34082  (see 
34083 \begin_inset CommandInset ref
34084 LatexCommand ref
34085 reference "sec:Formats"
34086 nolink "false"
34087
34088 \end_inset
34089
34090 ).
34091  Use 
34092 \begin_inset Quotes eld
34093 \end_inset
34094
34095
34096 \begin_inset Flex Code
34097 status collapsed
34098
34099 \begin_layout Plain Layout
34100 *
34101 \end_layout
34102
34103 \end_inset
34104
34105
34106 \begin_inset Quotes erd
34107 \end_inset
34108
34109  if the template can handle original files of more than one format.
34110  \SpecialChar LyX
34111  will attempt to interrogate the file itself in order to deduce its format in this case.
34112  This command must occur exactly once.
34113 \end_layout
34114
34115 \begin_layout Description
34116 \begin_inset Flex Code
34117 status collapsed
34118
34119 \begin_layout Plain Layout
34120 Template
34121 \begin_inset space ~
34122 \end_inset
34123
34124 <id>
34125 \end_layout
34126
34127 \end_inset
34128
34129  A unique name for the template.
34130  It must not contain substitution macros (see below).
34131 \end_layout
34132
34133 \begin_layout Description
34134 \begin_inset Flex Code
34135 status collapsed
34136
34137 \begin_layout Plain Layout
34138 Transform
34139 \begin_inset space ~
34140 \end_inset
34141
34142 Rotate|Resize|Clip|Extra
34143 \end_layout
34144
34145 \end_inset
34146
34147  This command specifies which transformations are supported by this template.
34148  It may occur zero or more times.
34149  This command enables the corresponding tabs in the external dialog.
34150  Each 
34151 \begin_inset Flex Code
34152 status collapsed
34153
34154 \begin_layout Plain Layout
34155 Transform
34156 \end_layout
34157
34158 \end_inset
34159
34160  command must have either a corresponding 
34161 \begin_inset Flex Code
34162 status collapsed
34163
34164 \begin_layout Plain Layout
34165 TransformCommand
34166 \end_layout
34167
34168 \end_inset
34169
34170  or a 
34171 \begin_inset Flex Code
34172 status collapsed
34173
34174 \begin_layout Plain Layout
34175 TransformOption
34176 \end_layout
34177
34178 \end_inset
34179
34180  command in the 
34181 \begin_inset Flex Code
34182 status collapsed
34183
34184 \begin_layout Plain Layout
34185 Format
34186 \end_layout
34187
34188 \end_inset
34189
34190  section.
34191  Otherwise the transformation will not be supported by that format.
34192 \end_layout
34193
34194 \begin_layout Subsection
34195 The Format section
34196 \end_layout
34197
34198 \begin_layout Description
34199 \begin_inset Flex Code
34200 status collapsed
34201
34202 \begin_layout Plain Layout
34203 Format
34204 \begin_inset space ~
34205 \end_inset
34206
34207 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
34208 \end_layout
34209
34210 \end_inset
34211
34212  The primary document file format that this format definition is for.
34213  Not every template has a sensible representation in all document file formats.
34214  Please define nevertheless a 
34215 \begin_inset Flex Code
34216 status collapsed
34217
34218 \begin_layout Plain Layout
34219 Format
34220 \end_layout
34221
34222 \end_inset
34223
34224  section for all templates.
34225  Use a dummy text when no representation is available.
34226  Then you can at least see a reference to the external material in the exported document.
34227 \end_layout
34228
34229 \begin_layout Description
34230 \begin_inset Flex Code
34231 status collapsed
34232
34233 \begin_layout Plain Layout
34234 Option
34235 \begin_inset space ~
34236 \end_inset
34237
34238 <name>
34239 \begin_inset space ~
34240 \end_inset
34241
34242 <value>
34243 \end_layout
34244
34245 \end_inset
34246
34247  This command defines an additional macro 
34248 \begin_inset Flex Code
34249 status collapsed
34250
34251 \begin_layout Plain Layout
34252 $$<name>
34253 \end_layout
34254
34255 \end_inset
34256
34257  for substitution in 
34258 \begin_inset Flex Code
34259 status collapsed
34260
34261 \begin_layout Plain Layout
34262 Product
34263 \end_layout
34264
34265 \end_inset
34266
34267 .
34268  
34269 \begin_inset Flex Code
34270 status collapsed
34271
34272 \begin_layout Plain Layout
34273 <value>
34274 \end_layout
34275
34276 \end_inset
34277
34278  itself may contain substitution macros.
34279  The advantage over using 
34280 \begin_inset Flex Code
34281 status collapsed
34282
34283 \begin_layout Plain Layout
34284 <value>
34285 \end_layout
34286
34287 \end_inset
34288
34289  directly in 
34290 \begin_inset Flex Code
34291 status collapsed
34292
34293 \begin_layout Plain Layout
34294 Product
34295 \end_layout
34296
34297 \end_inset
34298
34299  is that the substituted value of 
34300 \begin_inset Flex Code
34301 status collapsed
34302
34303 \begin_layout Plain Layout
34304 $$<name>
34305 \end_layout
34306
34307 \end_inset
34308
34309  is sanitized so that it is a valid optional argument in the document format.
34310  This command may occur zero or more times.
34311 \end_layout
34312
34313 \begin_layout Description
34314 \begin_inset Flex Code
34315 status collapsed
34316
34317 \begin_layout Plain Layout
34318 Product
34319 \begin_inset space ~
34320 \end_inset
34321
34322 <text>
34323 \end_layout
34324
34325 \end_inset
34326
34327  The text that is inserted in the exported document.
34328  This is actually the most important command and can be quite complex.
34329  This command must occur exactly once.
34330 \end_layout
34331
34332 \begin_layout Description
34333 \begin_inset Flex Code
34334 status collapsed
34335
34336 \begin_layout Plain Layout
34337 Preamble
34338 \begin_inset space ~
34339 \end_inset
34340
34341 <name>
34342 \end_layout
34343
34344 \end_inset
34345
34346  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
34347  preamble.
34348  It has to be defined using 
34349 \begin_inset Flex Code
34350 status collapsed
34351
34352 \begin_layout Plain Layout
34353 PreambleDef
34354 \end_layout
34355
34356 \end_inset
34357
34358  \SpecialChar ldots
34359  
34360 \begin_inset Flex Code
34361 status collapsed
34362
34363 \begin_layout Plain Layout
34364 PreambleDefEnd
34365 \end_layout
34366
34367 \end_inset
34368
34369 .
34370  This command may occur zero or more times.
34371 \end_layout
34372
34373 \begin_layout Description
34374 \begin_inset Flex Code
34375 status collapsed
34376
34377 \begin_layout Plain Layout
34378 ReferencedFile
34379 \begin_inset space ~
34380 \end_inset
34381
34382 <format>
34383 \begin_inset space ~
34384 \end_inset
34385
34386 <filename>
34387 \end_layout
34388
34389 \end_inset
34390
34391  This command denotes files that are created by the conversion process and are needed for a particular export format.
34392  If the filename is relative,
34393  it is interpreted relative to the master document.
34394  This command may be given zero or more times.
34395 \end_layout
34396
34397 \begin_layout Description
34398 \begin_inset Flex Code
34399 status collapsed
34400
34401 \begin_layout Plain Layout
34402 Requirement
34403 \begin_inset space ~
34404 \end_inset
34405
34406 <package>
34407 \end_layout
34408
34409 \end_inset
34410
34411  The name of a required \SpecialChar LaTeX
34412  package.
34413  The package is included via 
34414 \begin_inset Flex Code
34415 status collapsed
34416
34417 \begin_layout Plain Layout
34418
34419 \backslash
34420 usepackage{}
34421 \end_layout
34422
34423 \end_inset
34424
34425  in the \SpecialChar LaTeX
34426  preamble.
34427  This command may occur zero or more times.
34428 \end_layout
34429
34430 \begin_layout Description
34431 \begin_inset Flex Code
34432 status collapsed
34433
34434 \begin_layout Plain Layout
34435 TransformCommand
34436 \begin_inset space ~
34437 \end_inset
34438
34439 Rotate
34440 \begin_inset space ~
34441 \end_inset
34442
34443 RotationLatexCommand
34444 \end_layout
34445
34446 \end_inset
34447
34448  This command specifies that the built in \SpecialChar LaTeX
34449  command should be used for rotation.
34450  This command may occur once or not at all.
34451 \end_layout
34452
34453 \begin_layout Description
34454 \begin_inset Flex Code
34455 status collapsed
34456
34457 \begin_layout Plain Layout
34458 TransformCommand
34459 \begin_inset space ~
34460 \end_inset
34461
34462 Resize
34463 \begin_inset space ~
34464 \end_inset
34465
34466 ResizeLatexCommand
34467 \end_layout
34468
34469 \end_inset
34470
34471  This command specifies that the built in \SpecialChar LaTeX
34472  command should be used for resizing.
34473  This command may occur once or not at all.
34474 \end_layout
34475
34476 \begin_layout Description
34477 \begin_inset Flex Code
34478 status collapsed
34479
34480 \begin_layout Plain Layout
34481 TransformOption
34482 \begin_inset space ~
34483 \end_inset
34484
34485 Rotate
34486 \begin_inset space ~
34487 \end_inset
34488
34489 RotationLatexOption
34490 \end_layout
34491
34492 \end_inset
34493
34494  This command specifies that rotation is done via an optional argument.
34495  This command may occur once or not at all.
34496 \end_layout
34497
34498 \begin_layout Description
34499 \begin_inset Flex Code
34500 status collapsed
34501
34502 \begin_layout Plain Layout
34503 TransformOption
34504 \begin_inset space ~
34505 \end_inset
34506
34507 Resize
34508 \begin_inset space ~
34509 \end_inset
34510
34511 ResizeLatexOption
34512 \end_layout
34513
34514 \end_inset
34515
34516  This command specifies that resizing is done via an optional argument.
34517  This command may occur once or not at all.
34518 \end_layout
34519
34520 \begin_layout Description
34521 \begin_inset Flex Code
34522 status collapsed
34523
34524 \begin_layout Plain Layout
34525 TransformOption
34526 \begin_inset space ~
34527 \end_inset
34528
34529 Clip
34530 \begin_inset space ~
34531 \end_inset
34532
34533 ClipLatexOption
34534 \end_layout
34535
34536 \end_inset
34537
34538  This command specifies that clipping is done via an optional argument.
34539  This command may occur once or not at all.
34540 \end_layout
34541
34542 \begin_layout Description
34543 \begin_inset Flex Code
34544 status collapsed
34545
34546 \begin_layout Plain Layout
34547 TransformOption
34548 \begin_inset space ~
34549 \end_inset
34550
34551 Extra
34552 \begin_inset space ~
34553 \end_inset
34554
34555 ExtraLatexOption
34556 \end_layout
34557
34558 \end_inset
34559
34560  This command specifies that an extra optional argument is used.
34561  This command may occur once or not at all.
34562 \end_layout
34563
34564 \begin_layout Description
34565 \begin_inset Flex Code
34566 status collapsed
34567
34568 \begin_layout Plain Layout
34569 UpdateFormat
34570 \begin_inset space ~
34571 \end_inset
34572
34573 <format>
34574 \end_layout
34575
34576 \end_inset
34577
34578  The file format of the converted file.
34579  This must be the name of a format that is known to \SpecialChar LyX
34580  (see the 
34581 \begin_inset Flex Noun
34582 status collapsed
34583
34584 \begin_layout Plain Layout
34585 Tools\SpecialChar menuseparator
34586 Preferences\SpecialChar menuseparator
34587 File Handling\SpecialChar menuseparator
34588 File Format
34589 \end_layout
34590
34591 \end_inset
34592
34593  dialog).
34594  This command must occur exactly once.
34595  If the resulting file format is PDF,
34596  you need to specify the format 
34597 \begin_inset Flex Code
34598 status collapsed
34599
34600 \begin_layout Plain Layout
34601 pdf6
34602 \end_layout
34603
34604 \end_inset
34605
34606 .
34607  This is the PDF format used for including graphics.
34608  The other defined PDF formats are for document export.
34609 \end_layout
34610
34611 \begin_layout Description
34612 \begin_inset Flex Code
34613 status collapsed
34614
34615 \begin_layout Plain Layout
34616 UpdateResult
34617 \begin_inset space ~
34618 \end_inset
34619
34620 <filename>
34621 \end_layout
34622
34623 \end_inset
34624
34625  The file name of the converted file.
34626  The file name must be absolute.
34627  This command must occur exactly once.
34628 \end_layout
34629
34630 \begin_layout Subsection
34631 Preamble definitions
34632 \end_layout
34633
34634 \begin_layout Standard
34635 The external template configuration file may contain additional preamble definitions enclosed by 
34636 \begin_inset Flex Code
34637 status collapsed
34638
34639 \begin_layout Plain Layout
34640 PreambleDef
34641 \end_layout
34642
34643 \end_inset
34644
34645  \SpecialChar ldots
34646  
34647 \begin_inset Flex Code
34648 status collapsed
34649
34650 \begin_layout Plain Layout
34651 PreambleDefEnd
34652 \end_layout
34653
34654 \end_inset
34655
34656 .
34657  They can be used by the templates in the 
34658 \begin_inset Flex Code
34659 status collapsed
34660
34661 \begin_layout Plain Layout
34662 Format
34663 \end_layout
34664
34665 \end_inset
34666
34667  section.
34668 \end_layout
34669
34670 \begin_layout Section
34671 The substitution mechanism
34672 \end_layout
34673
34674 \begin_layout Standard
34675 When the external material facility invokes an external program,
34676  it is done on the basis of a command defined in the template configuration file.
34677  These commands can contain various macros that are expanded before execution.
34678  Execution always take place in the directory of the containing document.
34679 \end_layout
34680
34681 \begin_layout Standard
34682 Also,
34683  whenever external material is to be displayed,
34684  the name will be produced by the substitution mechanism,
34685  and most other commands in the template definition support substitution as well.
34686 \end_layout
34687
34688 \begin_layout Standard
34689 The available macros are the following:
34690 \end_layout
34691
34692 \begin_layout Description
34693 \begin_inset Flex Code
34694 status collapsed
34695
34696 \begin_layout Plain Layout
34697 $$AbsOrRelPathMaster
34698 \end_layout
34699
34700 \end_inset
34701
34702  The file path,
34703  absolute or relative to the master \SpecialChar LyX
34704  document.
34705 \end_layout
34706
34707 \begin_layout Description
34708 \begin_inset Flex Code
34709 status collapsed
34710
34711 \begin_layout Plain Layout
34712 $$AbsOrRelPathParent
34713 \end_layout
34714
34715 \end_inset
34716
34717  The file path,
34718  absolute or relative to the \SpecialChar LyX
34719  document.
34720 \end_layout
34721
34722 \begin_layout Description
34723 \begin_inset Flex Code
34724 status collapsed
34725
34726 \begin_layout Plain Layout
34727 $$AbsPath
34728 \end_layout
34729
34730 \end_inset
34731
34732  The absolute file path.
34733 \end_layout
34734
34735 \begin_layout Description
34736 \begin_inset Flex Code
34737 status collapsed
34738
34739 \begin_layout Plain Layout
34740 $$Basename
34741 \end_layout
34742
34743 \end_inset
34744
34745  The filename without path and without the extension.
34746 \end_layout
34747
34748 \begin_layout Description
34749 \begin_inset Flex Code
34750 status collapsed
34751
34752 \begin_layout Plain Layout
34753 $$Contents(
34754 \begin_inset Quotes eld
34755 \end_inset
34756
34757 filename.ext
34758 \begin_inset Quotes erd
34759 \end_inset
34760
34761 )
34762 \end_layout
34763
34764 \end_inset
34765
34766  This macro will expand to the contents of the file with the name 
34767 \begin_inset Flex Code
34768 status collapsed
34769
34770 \begin_layout Plain Layout
34771 filename.ext
34772 \end_layout
34773
34774 \end_inset
34775
34776 .
34777 \end_layout
34778
34779 \begin_layout Description
34780 \begin_inset Flex Code
34781 status collapsed
34782
34783 \begin_layout Plain Layout
34784 $$Extension
34785 \end_layout
34786
34787 \end_inset
34788
34789  The file extension (including the dot).
34790 \end_layout
34791
34792 \begin_layout Description
34793 \begin_inset Flex Code
34794 status collapsed
34795
34796 \begin_layout Plain Layout
34797 $$pngOrjpg
34798 \end_layout
34799
34800 \end_inset
34801
34802  This will be the string 
34803 \begin_inset Quotes eld
34804 \end_inset
34805
34806 jpg
34807 \begin_inset Quotes erd
34808 \end_inset
34809
34810  if the file is in JPEG format,
34811  otherwise it will be the string 
34812 \begin_inset Quotes eld
34813 \end_inset
34814
34815 png
34816 \begin_inset Quotes erd
34817 \end_inset
34818
34819 .
34820  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
34821  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
34822  output format.
34823 \end_layout
34824
34825 \begin_layout Description
34826 \begin_inset Flex Code
34827 status collapsed
34828
34829 \begin_layout Plain Layout
34830 $$FName
34831 \end_layout
34832
34833 \end_inset
34834
34835  The filename of the file specified in the external material dialog.
34836  This is either an absolute name,
34837  or it is relative to the \SpecialChar LyX
34838  document.
34839 \end_layout
34840
34841 \begin_layout Description
34842 \begin_inset Flex Code
34843 status collapsed
34844
34845 \begin_layout Plain Layout
34846 $$FPath
34847 \end_layout
34848
34849 \end_inset
34850
34851  The path part of 
34852 \begin_inset Flex Code
34853 status collapsed
34854
34855 \begin_layout Plain Layout
34856 $$FName
34857 \end_layout
34858
34859 \end_inset
34860
34861  (absolute name or relative to the \SpecialChar LyX
34862  document).
34863 \end_layout
34864
34865 \begin_layout Description
34866 \begin_inset Flex Code
34867 status collapsed
34868
34869 \begin_layout Plain Layout
34870 $$RelPathMaster
34871 \end_layout
34872
34873 \end_inset
34874
34875  The file path,
34876  relative to the master \SpecialChar LyX
34877  document.
34878 \end_layout
34879
34880 \begin_layout Description
34881 \begin_inset Flex Code
34882 status collapsed
34883
34884 \begin_layout Plain Layout
34885 $$RelPathParent
34886 \end_layout
34887
34888 \end_inset
34889
34890  The file path,
34891  relative to the \SpecialChar LyX
34892  document.
34893 \end_layout
34894
34895 \begin_layout Description
34896 \begin_inset Flex Code
34897 status collapsed
34898
34899 \begin_layout Plain Layout
34900 $$Sysdir
34901 \end_layout
34902
34903 \end_inset
34904
34905  This macro will expand to the absolute path of the system directory.
34906  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
34907 .
34908 \end_layout
34909
34910 \begin_layout Description
34911 \begin_inset Flex Code
34912 status collapsed
34913
34914 \begin_layout Plain Layout
34915 $$Tempname
34916 \end_layout
34917
34918 \end_inset
34919
34920  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
34921  or the external material insertion deleted.
34922 \end_layout
34923
34924 \begin_layout Standard
34925 All path macros contain a trailing directory separator,
34926  so you can construct e.
34927 \begin_inset space \thinspace{}
34928 \end_inset
34929
34930 g.
34931 \begin_inset space \space{}
34932 \end_inset
34933
34934 the absolute filename with 
34935 \begin_inset Flex Code
34936 status collapsed
34937
34938 \begin_layout Plain Layout
34939 $$AbsPath$$Basename$$Extension
34940 \end_layout
34941
34942 \end_inset
34943
34944 .
34945 \end_layout
34946
34947 \begin_layout Standard
34948 The macros above are substituted in all commands unless otherwise noted.
34949  The command 
34950 \begin_inset Flex Code
34951 status collapsed
34952
34953 \begin_layout Plain Layout
34954 Product
34955 \end_layout
34956
34957 \end_inset
34958
34959  supports additionally the following substitutions if they are enabled by the 
34960 \begin_inset Flex Code
34961 status collapsed
34962
34963 \begin_layout Plain Layout
34964 Transform
34965 \end_layout
34966
34967 \end_inset
34968
34969  and 
34970 \begin_inset Flex Code
34971 status collapsed
34972
34973 \begin_layout Plain Layout
34974 TransformCommand
34975 \end_layout
34976
34977 \end_inset
34978
34979  commands:
34980 \end_layout
34981
34982 \begin_layout Description
34983 \begin_inset Flex Code
34984 status collapsed
34985
34986 \begin_layout Plain Layout
34987 $$ResizeFront
34988 \end_layout
34989
34990 \end_inset
34991
34992  The front part of the resize command.
34993 \end_layout
34994
34995 \begin_layout Description
34996 \begin_inset Flex Code
34997 status collapsed
34998
34999 \begin_layout Plain Layout
35000 $$ResizeBack
35001 \end_layout
35002
35003 \end_inset
35004
35005  The back part of the resize command.
35006 \end_layout
35007
35008 \begin_layout Description
35009 \begin_inset Flex Code
35010 status collapsed
35011
35012 \begin_layout Plain Layout
35013 $$RotateFront
35014 \end_layout
35015
35016 \end_inset
35017
35018  The front part of the rotation command.
35019 \end_layout
35020
35021 \begin_layout Description
35022 \begin_inset Flex Code
35023 status collapsed
35024
35025 \begin_layout Plain Layout
35026 $$RotateBack
35027 \end_layout
35028
35029 \end_inset
35030
35031  The back part of the rotation command.
35032 \end_layout
35033
35034 \begin_layout Standard
35035 The value string of the 
35036 \begin_inset Flex Code
35037 status collapsed
35038
35039 \begin_layout Plain Layout
35040 Option
35041 \end_layout
35042
35043 \end_inset
35044
35045  command supports additionally the following substitutions if they are enabled by the 
35046 \begin_inset Flex Code
35047 status collapsed
35048
35049 \begin_layout Plain Layout
35050 Transform
35051 \end_layout
35052
35053 \end_inset
35054
35055  and 
35056 \begin_inset Flex Code
35057 status collapsed
35058
35059 \begin_layout Plain Layout
35060 TransformOption
35061 \end_layout
35062
35063 \end_inset
35064
35065  commands:
35066 \end_layout
35067
35068 \begin_layout Description
35069 \begin_inset Flex Code
35070 status collapsed
35071
35072 \begin_layout Plain Layout
35073 $$Clip
35074 \end_layout
35075
35076 \end_inset
35077
35078  The clip option.
35079 \end_layout
35080
35081 \begin_layout Description
35082 \begin_inset Flex Code
35083 status collapsed
35084
35085 \begin_layout Plain Layout
35086 $$Extra
35087 \end_layout
35088
35089 \end_inset
35090
35091  The extra option.
35092 \end_layout
35093
35094 \begin_layout Description
35095 \begin_inset Flex Code
35096 status collapsed
35097
35098 \begin_layout Plain Layout
35099 $$Resize
35100 \end_layout
35101
35102 \end_inset
35103
35104  The resize option.
35105 \end_layout
35106
35107 \begin_layout Description
35108 \begin_inset Flex Code
35109 status collapsed
35110
35111 \begin_layout Plain Layout
35112 $$Rotate
35113 \end_layout
35114
35115 \end_inset
35116
35117  The rotation option.
35118 \end_layout
35119
35120 \begin_layout Standard
35121 You may ask why there are so many path macros.
35122  There are mainly two reasons:
35123 \end_layout
35124
35125 \begin_layout Enumerate
35126 Relative and absolute file names should remain relative or absolute,
35127  respectively.
35128  Users may have reasons to prefer either form.
35129  Relative names are useful for portable documents that should work on different machines,
35130  for example.
35131  Absolute names may be required by some programs.
35132 \end_layout
35133
35134 \begin_layout Enumerate
35135 \SpecialChar LaTeX
35136  treats relative file names differently than \SpecialChar LyX
35137  and other programs in nested included files.
35138  For \SpecialChar LyX
35139 ,
35140  a relative file name is always relative to the document that contains the file name.
35141  For \SpecialChar LaTeX
35142 ,
35143  it is always relative to the master document.
35144  These two definitions are identical if you have only one document,
35145  but differ if you have a master document that includes part documents.
35146  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
35147 .
35148  Fortunately \SpecialChar LyX
35149  does this automatically for you if you choose the right macros.
35150 \end_layout
35151
35152 \begin_layout Standard
35153 So which path macro should be used in new template definitions?
35154  The rule is not difficult:
35155 \end_layout
35156
35157 \begin_layout Itemize
35158 Use 
35159 \begin_inset Flex Code
35160 status collapsed
35161
35162 \begin_layout Plain Layout
35163 $$AbsPath
35164 \end_layout
35165
35166 \end_inset
35167
35168  if an absolute path is required.
35169 \end_layout
35170
35171 \begin_layout Itemize
35172 Use 
35173 \begin_inset Flex Code
35174 status collapsed
35175
35176 \begin_layout Plain Layout
35177 $$AbsOrRelPathMaster
35178 \end_layout
35179
35180 \end_inset
35181
35182  if the substituted string is some kind of \SpecialChar LaTeX
35183  input.
35184 \end_layout
35185
35186 \begin_layout Itemize
35187 Else use 
35188 \begin_inset Flex Code
35189 status collapsed
35190
35191 \begin_layout Plain Layout
35192 $$AbsOrRelPathParent
35193 \end_layout
35194
35195 \end_inset
35196
35197  in order to preserve the user's choice.
35198 \end_layout
35199
35200 \begin_layout Standard
35201 There are special cases where this rule does not work and e.
35202 \begin_inset space \thinspace{}
35203 \end_inset
35204
35205 g.
35206 \begin_inset space \space{}
35207 \end_inset
35208
35209 relative names are needed,
35210  but normally it will work just fine.
35211  One example for such a case is the command 
35212 \begin_inset Flex Code
35213 status collapsed
35214
35215 \begin_layout Plain Layout
35216 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
35217 \end_layout
35218
35219 \end_inset
35220
35221  in the XFig template above:
35222  We can't use the absolute name because the copier for 
35223 \begin_inset Flex Code
35224 status collapsed
35225
35226 \begin_layout Plain Layout
35227 .pstex_t
35228 \end_layout
35229
35230 \end_inset
35231
35232  files needs the relative name in order to rewrite the file content.
35233 \end_layout
35234
35235 \begin_layout Section
35236 Security discussion
35237 \begin_inset CommandInset label
35238 LatexCommand label
35239 name "sec:Security-discussion"
35240
35241 \end_inset
35242
35243
35244 \end_layout
35245
35246 \begin_layout Standard
35247 The external material feature interfaces with a lot of external programs and does so automatically,
35248  so we have to consider the security implications of this.
35249  In particular,
35250  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
35251  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
35252  This is something we definitely want to avoid.
35253 \end_layout
35254
35255 \begin_layout Standard
35256 However,
35257  since the external program commands are specified in the template configuration file only,
35258  there are no security issues if \SpecialChar LyX
35259  is properly configured with safe templates only.
35260  This is so because the external programs are invoked with the 
35261 \begin_inset Flex Code
35262 status collapsed
35263
35264 \begin_layout Plain Layout
35265 execvp
35266 \end_layout
35267
35268 \end_inset
35269
35270 -system call rather than the 
35271 \begin_inset Flex Code
35272 status collapsed
35273
35274 \begin_layout Plain Layout
35275 system
35276 \end_layout
35277
35278 \end_inset
35279
35280  system-call,
35281  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
35282 \end_layout
35283
35284 \begin_layout Standard
35285 This also implies that you are restricted in what command strings you can use in the external material templates.
35286  In particular,
35287  pipes and redirection are not readily available.
35288  This has to be so if \SpecialChar LyX
35289  should remain safe.
35290  If you want to use some of the shell features,
35291  you should write a safe script to do this in a controlled manner,
35292  and then invoke the script from the command string.
35293  
35294 \end_layout
35295
35296 \begin_layout Standard
35297 It is possible to design a template that interacts directly with the shell,
35298  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
35299  we generally recommend that you only use safe scripts that work with the 
35300 \begin_inset Flex Code
35301 status collapsed
35302
35303 \begin_layout Plain Layout
35304 execvp
35305 \end_layout
35306
35307 \end_inset
35308
35309  system call in a controlled manner.
35310  Of course,
35311  for use in a controlled environment,
35312  it can be tempting to just fall back to use ordinary shell scripts.
35313  If you do so,
35314  be aware that you 
35315 \emph on
35316 will
35317 \emph default
35318  provide an easily exploitable security hole in your system.
35319  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
35320  distribution,
35321  although we do encourage people to submit new templates in the open source tradition.
35322  But \SpecialChar LyX
35323  as shipped from the official distribution channels will never have unsafe templates.
35324 \end_layout
35325
35326 \begin_layout Standard
35327 Including external material provides a lot of power,
35328  and you have to be careful not to introduce security hazards with this power.
35329  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
35330  So if you do not fully understand the issues,
35331  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
35332  development team if you have any questions about whether a given template is safe or not.
35333  And do this before you use it in an uncontrolled environment.
35334 \end_layout
35335
35336 \begin_layout Chapter
35337 \start_of_appendix
35338 List of supported \SpecialChar LyX
35339  functions to be used in layouts
35340 \begin_inset CommandInset label
35341 LatexCommand label
35342 name "chap:List-of-functions"
35343
35344 \end_inset
35345
35346
35347 \end_layout
35348
35349 \begin_layout Standard
35350 \align center
35351 \begin_inset Tabular
35352 <lyxtabular version="3" rows="11" columns="8">
35353 <features tabularvalignment="middle">
35354 <column alignment="left" valignment="top">
35355 <column alignment="left" valignment="top">
35356 <column alignment="left" valignment="top">
35357 <column alignment="left" valignment="top">
35358 <column alignment="left" valignment="top">
35359 <column alignment="left" valignment="top">
35360 <column alignment="left" valignment="top">
35361 <column alignment="left" valignment="top">
35362 <row>
35363 <cell alignment="left" valignment="top" usebox="none">
35364 \begin_inset Text
35365
35366 \begin_layout Plain Layout
35367 accents
35368 \end_layout
35369
35370 \end_inset
35371 </cell>
35372 <cell alignment="left" valignment="top" usebox="none">
35373 \begin_inset Text
35374
35375 \begin_layout Plain Layout
35376 booktabs
35377 \end_layout
35378
35379 \end_inset
35380 </cell>
35381 <cell alignment="left" valignment="top" usebox="none">
35382 \begin_inset Text
35383
35384 \begin_layout Plain Layout
35385 feyn
35386 \end_layout
35387
35388 \end_inset
35389 </cell>
35390 <cell alignment="left" valignment="top" usebox="none">
35391 \begin_inset Text
35392
35393 \begin_layout Plain Layout
35394 listings
35395 \end_layout
35396
35397 \end_inset
35398 </cell>
35399 <cell alignment="center" valignment="top" usebox="none">
35400 \begin_inset Text
35401
35402 \begin_layout Plain Layout
35403 natbib
35404 \end_layout
35405
35406 \end_inset
35407 </cell>
35408 <cell alignment="center" valignment="top" usebox="none">
35409 \begin_inset Text
35410
35411 \begin_layout Plain Layout
35412 rotfloat
35413 \end_layout
35414
35415 \end_inset
35416 </cell>
35417 <cell alignment="center" valignment="top" usebox="none">
35418 \begin_inset Text
35419
35420 \begin_layout Plain Layout
35421 tfrupee
35422 \end_layout
35423
35424 \end_inset
35425 </cell>
35426 <cell alignment="center" valignment="top" usebox="none">
35427 \begin_inset Text
35428
35429 \begin_layout Plain Layout
35430 wasysym
35431 \end_layout
35432
35433 \end_inset
35434 </cell>
35435 </row>
35436 <row>
35437 <cell alignment="left" valignment="top" usebox="none">
35438 \begin_inset Text
35439
35440 \begin_layout Plain Layout
35441 amsbsy
35442 \end_layout
35443
35444 \end_inset
35445 </cell>
35446 <cell alignment="left" valignment="top" usebox="none">
35447 \begin_inset Text
35448
35449 \begin_layout Plain Layout
35450 calc
35451 \end_layout
35452
35453 \end_inset
35454 </cell>
35455 <cell alignment="left" valignment="top" usebox="none">
35456 \begin_inset Text
35457
35458 \begin_layout Plain Layout
35459 fixltx2e
35460 \end_layout
35461
35462 \end_inset
35463 </cell>
35464 <cell alignment="left" valignment="top" usebox="none">
35465 \begin_inset Text
35466
35467 \begin_layout Plain Layout
35468 longtable
35469 \end_layout
35470
35471 \end_inset
35472 </cell>
35473 <cell alignment="center" valignment="top" usebox="none">
35474 \begin_inset Text
35475
35476 \begin_layout Plain Layout
35477 nomencl
35478 \end_layout
35479
35480 \end_inset
35481 </cell>
35482 <cell alignment="center" valignment="top" usebox="none">
35483 \begin_inset Text
35484
35485 \begin_layout Plain Layout
35486 rsphrase
35487 \end_layout
35488
35489 \end_inset
35490 </cell>
35491 <cell alignment="center" valignment="top" usebox="none">
35492 \begin_inset Text
35493
35494 \begin_layout Plain Layout
35495 tipa
35496 \end_layout
35497
35498 \end_inset
35499 </cell>
35500 <cell alignment="center" valignment="top" usebox="none">
35501 \begin_inset Text
35502
35503 \begin_layout Plain Layout
35504 wrapfig
35505 \end_layout
35506
35507 \end_inset
35508 </cell>
35509 </row>
35510 <row>
35511 <cell alignment="left" valignment="top" usebox="none">
35512 \begin_inset Text
35513
35514 \begin_layout Plain Layout
35515 amscd
35516 \end_layout
35517
35518 \end_inset
35519 </cell>
35520 <cell alignment="left" valignment="top" usebox="none">
35521 \begin_inset Text
35522
35523 \begin_layout Plain Layout
35524 CJK
35525 \end_layout
35526
35527 \end_inset
35528 </cell>
35529 <cell alignment="left" valignment="top" usebox="none">
35530 \begin_inset Text
35531
35532 \begin_layout Plain Layout
35533 float
35534 \end_layout
35535
35536 \end_inset
35537 </cell>
35538 <cell alignment="left" valignment="top" usebox="none">
35539 \begin_inset Text
35540
35541 \begin_layout Plain Layout
35542 lyxskak
35543 \end_layout
35544
35545 \end_inset
35546 </cell>
35547 <cell alignment="center" valignment="top" usebox="none">
35548 \begin_inset Text
35549
35550 \begin_layout Plain Layout
35551 pdfcolmk
35552 \end_layout
35553
35554 \end_inset
35555 </cell>
35556 <cell alignment="center" valignment="top" usebox="none">
35557 \begin_inset Text
35558
35559 \begin_layout Plain Layout
35560 setspace
35561 \end_layout
35562
35563 \end_inset
35564 </cell>
35565 <cell alignment="center" valignment="top" usebox="none">
35566 \begin_inset Text
35567
35568 \begin_layout Plain Layout
35569 tipx
35570 \end_layout
35571
35572 \end_inset
35573 </cell>
35574 <cell alignment="center" valignment="top" usebox="none">
35575 \begin_inset Text
35576
35577 \begin_layout Plain Layout
35578 xargs
35579 \end_layout
35580
35581 \end_inset
35582 </cell>
35583 </row>
35584 <row>
35585 <cell alignment="left" valignment="top" usebox="none">
35586 \begin_inset Text
35587
35588 \begin_layout Plain Layout
35589 amsmath
35590 \end_layout
35591
35592 \end_inset
35593 </cell>
35594 <cell alignment="left" valignment="top" usebox="none">
35595 \begin_inset Text
35596
35597 \begin_layout Plain Layout
35598 color
35599 \end_layout
35600
35601 \end_inset
35602 </cell>
35603 <cell alignment="left" valignment="top" usebox="none">
35604 \begin_inset Text
35605
35606 \begin_layout Plain Layout
35607 framed
35608 \end_layout
35609
35610 \end_inset
35611 </cell>
35612 <cell alignment="left" valignment="top" usebox="none">
35613 \begin_inset Text
35614
35615 \begin_layout Plain Layout
35616 makeidx
35617 \end_layout
35618
35619 \end_inset
35620 </cell>
35621 <cell alignment="center" valignment="top" usebox="none">
35622 \begin_inset Text
35623
35624 \begin_layout Plain Layout
35625 pdfpages
35626 \end_layout
35627
35628 \end_inset
35629 </cell>
35630 <cell alignment="center" valignment="top" usebox="none">
35631 \begin_inset Text
35632
35633 \begin_layout Plain Layout
35634 shapepar
35635 \end_layout
35636
35637 \end_inset
35638 </cell>
35639 <cell alignment="center" valignment="top" usebox="none">
35640 \begin_inset Text
35641
35642 \begin_layout Plain Layout
35643 tone
35644 \end_layout
35645
35646 \end_inset
35647 </cell>
35648 <cell alignment="center" valignment="top" usebox="none">
35649 \begin_inset Text
35650
35651 \begin_layout Plain Layout
35652 xcolor
35653 \end_layout
35654
35655 \end_inset
35656 </cell>
35657 </row>
35658 <row>
35659 <cell alignment="left" valignment="top" usebox="none">
35660 \begin_inset Text
35661
35662 \begin_layout Plain Layout
35663 amssymb
35664 \end_layout
35665
35666 \end_inset
35667 </cell>
35668 <cell alignment="left" valignment="top" usebox="none">
35669 \begin_inset Text
35670
35671 \begin_layout Plain Layout
35672 covington
35673 \end_layout
35674
35675 \end_inset
35676 </cell>
35677 <cell alignment="left" valignment="top" usebox="none">
35678 \begin_inset Text
35679
35680 \begin_layout Plain Layout
35681 graphicx
35682 \end_layout
35683
35684 \end_inset
35685 </cell>
35686 <cell alignment="left" valignment="top" usebox="none">
35687 \begin_inset Text
35688
35689 \begin_layout Plain Layout
35690 marvosym
35691 \end_layout
35692
35693 \end_inset
35694 </cell>
35695 <cell alignment="center" valignment="top" usebox="none">
35696 \begin_inset Text
35697
35698 \begin_layout Plain Layout
35699 pifont
35700 \end_layout
35701
35702 \end_inset
35703 </cell>
35704 <cell alignment="center" valignment="top" usebox="none">
35705 \begin_inset Text
35706
35707 \begin_layout Plain Layout
35708 slashed
35709 \end_layout
35710
35711 \end_inset
35712 </cell>
35713 <cell alignment="center" valignment="top" usebox="none">
35714 \begin_inset Text
35715
35716 \begin_layout Plain Layout
35717 txfonts
35718 \end_layout
35719
35720 \end_inset
35721 </cell>
35722 <cell alignment="center" valignment="top" usebox="none">
35723 \begin_inset Text
35724
35725 \begin_layout Plain Layout
35726 xy
35727 \end_layout
35728
35729 \end_inset
35730 </cell>
35731 </row>
35732 <row>
35733 <cell alignment="left" valignment="top" usebox="none">
35734 \begin_inset Text
35735
35736 \begin_layout Plain Layout
35737 amstext
35738 \end_layout
35739
35740 \end_inset
35741 </cell>
35742 <cell alignment="left" valignment="top" usebox="none">
35743 \begin_inset Text
35744
35745 \begin_layout Plain Layout
35746 csquotes
35747 \end_layout
35748
35749 \end_inset
35750 </cell>
35751 <cell alignment="left" valignment="top" usebox="none">
35752 \begin_inset Text
35753
35754 \begin_layout Plain Layout
35755 hhline
35756 \end_layout
35757
35758 \end_inset
35759 </cell>
35760 <cell alignment="left" valignment="top" usebox="none">
35761 \begin_inset Text
35762
35763 \begin_layout Plain Layout
35764 mathdesign
35765 \end_layout
35766
35767 \end_inset
35768 </cell>
35769 <cell alignment="center" valignment="top" usebox="none">
35770 \begin_inset Text
35771
35772 \begin_layout Plain Layout
35773 pmboxdraw
35774 \end_layout
35775
35776 \end_inset
35777 </cell>
35778 <cell alignment="center" valignment="top" usebox="none">
35779 \begin_inset Text
35780
35781 \begin_layout Plain Layout
35782 soul
35783 \end_layout
35784
35785 \end_inset
35786 </cell>
35787 <cell alignment="center" valignment="top" usebox="none">
35788 \begin_inset Text
35789
35790 \begin_layout Plain Layout
35791 ulem
35792 \end_layout
35793
35794 \end_inset
35795 </cell>
35796 <cell alignment="center" valignment="top" usebox="none">
35797 \begin_inset Text
35798
35799 \begin_layout Plain Layout
35800 yhmath
35801 \end_layout
35802
35803 \end_inset
35804 </cell>
35805 </row>
35806 <row>
35807 <cell alignment="left" valignment="top" usebox="none">
35808 \begin_inset Text
35809
35810 \begin_layout Plain Layout
35811 amsthm
35812 \end_layout
35813
35814 \end_inset
35815 </cell>
35816 <cell alignment="left" valignment="top" usebox="none">
35817 \begin_inset Text
35818
35819 \begin_layout Plain Layout
35820 dvipost
35821 \end_layout
35822
35823 \end_inset
35824 </cell>
35825 <cell alignment="left" valignment="top" usebox="none">
35826 \begin_inset Text
35827
35828 \begin_layout Plain Layout
35829 hyperref
35830 \end_layout
35831
35832 \end_inset
35833 </cell>
35834 <cell alignment="left" valignment="top" usebox="none">
35835 \begin_inset Text
35836
35837 \begin_layout Plain Layout
35838 mathdots
35839 \end_layout
35840
35841 \end_inset
35842 </cell>
35843 <cell alignment="center" valignment="top" usebox="none">
35844 \begin_inset Text
35845
35846 \begin_layout Plain Layout
35847 polyglossia
35848 \end_layout
35849
35850 \end_inset
35851 </cell>
35852 <cell alignment="center" valignment="top" usebox="none">
35853 \begin_inset Text
35854
35855 \begin_layout Plain Layout
35856 splitidx
35857 \end_layout
35858
35859 \end_inset
35860 </cell>
35861 <cell alignment="center" valignment="top" usebox="none">
35862 \begin_inset Text
35863
35864 \begin_layout Plain Layout
35865 undertilde
35866 \end_layout
35867
35868 \end_inset
35869 </cell>
35870 <cell alignment="center" valignment="top" usebox="none">
35871 \begin_inset Text
35872
35873 \begin_layout Plain Layout
35874
35875 \end_layout
35876
35877 \end_inset
35878 </cell>
35879 </row>
35880 <row>
35881 <cell alignment="left" valignment="top" usebox="none">
35882 \begin_inset Text
35883
35884 \begin_layout Plain Layout
35885 array
35886 \end_layout
35887
35888 \end_inset
35889 </cell>
35890 <cell alignment="left" valignment="top" usebox="none">
35891 \begin_inset Text
35892
35893 \begin_layout Plain Layout
35894 endnotes
35895 \end_layout
35896
35897 \end_inset
35898 </cell>
35899 <cell alignment="left" valignment="top" usebox="none">
35900 \begin_inset Text
35901
35902 \begin_layout Plain Layout
35903 ifsym
35904 \end_layout
35905
35906 \end_inset
35907 </cell>
35908 <cell alignment="left" valignment="top" usebox="none">
35909 \begin_inset Text
35910
35911 \begin_layout Plain Layout
35912 mathrsfs
35913 \end_layout
35914
35915 \end_inset
35916 </cell>
35917 <cell alignment="center" valignment="top" usebox="none">
35918 \begin_inset Text
35919
35920 \begin_layout Plain Layout
35921 prettyref
35922 \end_layout
35923
35924 \end_inset
35925 </cell>
35926 <cell alignment="center" valignment="top" usebox="none">
35927 \begin_inset Text
35928
35929 \begin_layout Plain Layout
35930 subfig
35931 \end_layout
35932
35933 \end_inset
35934 </cell>
35935 <cell alignment="center" valignment="top" usebox="none">
35936 \begin_inset Text
35937
35938 \begin_layout Plain Layout
35939 units
35940 \end_layout
35941
35942 \end_inset
35943 </cell>
35944 <cell alignment="center" valignment="top" usebox="none">
35945 \begin_inset Text
35946
35947 \begin_layout Plain Layout
35948
35949 \end_layout
35950
35951 \end_inset
35952 </cell>
35953 </row>
35954 <row>
35955 <cell alignment="left" valignment="top" usebox="none">
35956 \begin_inset Text
35957
35958 \begin_layout Plain Layout
35959 ascii
35960 \end_layout
35961
35962 \end_inset
35963 </cell>
35964 <cell alignment="left" valignment="top" usebox="none">
35965 \begin_inset Text
35966
35967 \begin_layout Plain Layout
35968 enumitem
35969 \end_layout
35970
35971 \end_inset
35972 </cell>
35973 <cell alignment="left" valignment="top" usebox="none">
35974 \begin_inset Text
35975
35976 \begin_layout Plain Layout
35977 ifthen
35978 \end_layout
35979
35980 \end_inset
35981 </cell>
35982 <cell alignment="left" valignment="top" usebox="none">
35983 \begin_inset Text
35984
35985 \begin_layout Plain Layout
35986 mhchem
35987 \end_layout
35988
35989 \end_inset
35990 </cell>
35991 <cell alignment="center" valignment="top" usebox="none">
35992 \begin_inset Text
35993
35994 \begin_layout Plain Layout
35995 pxfonts
35996 \end_layout
35997
35998 \end_inset
35999 </cell>
36000 <cell alignment="center" valignment="top" usebox="none">
36001 \begin_inset Text
36002
36003 \begin_layout Plain Layout
36004 subscript
36005 \end_layout
36006
36007 \end_inset
36008 </cell>
36009 <cell alignment="center" valignment="top" usebox="none">
36010 \begin_inset Text
36011
36012 \begin_layout Plain Layout
36013 url
36014 \end_layout
36015
36016 \end_inset
36017 </cell>
36018 <cell alignment="center" valignment="top" usebox="none">
36019 \begin_inset Text
36020
36021 \begin_layout Plain Layout
36022
36023 \end_layout
36024
36025 \end_inset
36026 </cell>
36027 </row>
36028 <row>
36029 <cell alignment="left" valignment="top" usebox="none">
36030 \begin_inset Text
36031
36032 \begin_layout Plain Layout
36033 bbding
36034 \end_layout
36035
36036 \end_inset
36037 </cell>
36038 <cell alignment="left" valignment="top" usebox="none">
36039 \begin_inset Text
36040
36041 \begin_layout Plain Layout
36042 esint
36043 \end_layout
36044
36045 \end_inset
36046 </cell>
36047 <cell alignment="left" valignment="top" usebox="none">
36048 \begin_inset Text
36049
36050 \begin_layout Plain Layout
36051 jurabib
36052 \end_layout
36053
36054 \end_inset
36055 </cell>
36056 <cell alignment="left" valignment="top" usebox="none">
36057 \begin_inset Text
36058
36059 \begin_layout Plain Layout
36060 multicol
36061 \end_layout
36062
36063 \end_inset
36064 </cell>
36065 <cell alignment="center" valignment="top" usebox="none">
36066 \begin_inset Text
36067
36068 \begin_layout Plain Layout
36069 refstyle
36070 \end_layout
36071
36072 \end_inset
36073 </cell>
36074 <cell alignment="center" valignment="top" usebox="none">
36075 \begin_inset Text
36076
36077 \begin_layout Plain Layout
36078 textcomp
36079 \end_layout
36080
36081 \end_inset
36082 </cell>
36083 <cell alignment="center" valignment="top" usebox="none">
36084 \begin_inset Text
36085
36086 \begin_layout Plain Layout
36087 varioref
36088 \end_layout
36089
36090 \end_inset
36091 </cell>
36092 <cell alignment="center" valignment="top" usebox="none">
36093 \begin_inset Text
36094
36095 \begin_layout Plain Layout
36096
36097 \end_layout
36098
36099 \end_inset
36100 </cell>
36101 </row>
36102 <row>
36103 <cell alignment="center" valignment="top" usebox="none">
36104 \begin_inset Text
36105
36106 \begin_layout Plain Layout
36107 bm
36108 \end_layout
36109
36110 \end_inset
36111 </cell>
36112 <cell alignment="center" valignment="top" usebox="none">
36113 \begin_inset Text
36114
36115 \begin_layout Plain Layout
36116 fancybox
36117 \end_layout
36118
36119 \end_inset
36120 </cell>
36121 <cell alignment="center" valignment="top" usebox="none">
36122 \begin_inset Text
36123
36124 \begin_layout Plain Layout
36125 latexsym
36126 \end_layout
36127
36128 \end_inset
36129 </cell>
36130 <cell alignment="center" valignment="top" usebox="none">
36131 \begin_inset Text
36132
36133 \begin_layout Plain Layout
36134 multirow
36135 \end_layout
36136
36137 \end_inset
36138 </cell>
36139 <cell alignment="center" valignment="top" usebox="none">
36140 \begin_inset Text
36141
36142 \begin_layout Plain Layout
36143 rotating
36144 \end_layout
36145
36146 \end_inset
36147 </cell>
36148 <cell alignment="center" valignment="top" usebox="none">
36149 \begin_inset Text
36150
36151 \begin_layout Plain Layout
36152 textgreek
36153 \end_layout
36154
36155 \end_inset
36156 </cell>
36157 <cell alignment="center" valignment="top" usebox="none">
36158 \begin_inset Text
36159
36160 \begin_layout Plain Layout
36161 verbatim
36162 \end_layout
36163
36164 \end_inset
36165 </cell>
36166 <cell alignment="center" valignment="top" usebox="none">
36167 \begin_inset Text
36168
36169 \begin_layout Plain Layout
36170
36171 \end_layout
36172
36173 \end_inset
36174 </cell>
36175 </row>
36176 </lyxtabular>
36177
36178 \end_inset
36179
36180
36181 \end_layout
36182
36183 \begin_layout Chapter
36184 Names of available colors to be used in layouts
36185 \begin_inset CommandInset label
36186 LatexCommand label
36187 name "chap:Names-of-colors"
36188
36189 \end_inset
36190
36191
36192 \end_layout
36193
36194 \begin_layout Standard
36195 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
36196  preferences.
36197 \end_layout
36198
36199 \begin_layout Section
36200 Color functions
36201 \end_layout
36202
36203 \begin_layout Standard
36204 The following are no real colors,
36205  but rather act on color definitions:
36206 \end_layout
36207
36208 \begin_layout Description
36209 ignore The color is ignored
36210 \end_layout
36211
36212 \begin_layout Description
36213 inherit The color is inherited
36214 \end_layout
36215
36216 \begin_layout Description
36217 none
36218 \family roman
36219 \series medium
36220 \shape up
36221 \size normal
36222 \emph off
36223 \bar no
36224 \strikeout off
36225 \uuline off
36226 \uwave off
36227 \noun off
36228 \color none
36229  No particular color – clear or default
36230 \end_layout
36231
36232 \begin_layout Section
36233 Static colors
36234 \end_layout
36235
36236 \begin_layout Standard
36237 These are fixed colors that cannot be customized
36238 \change_inserted -712698321 1607683177
36239 .
36240  Please do 
36241 \emph on
36242 not
36243 \emph default
36244  use these colors in layout definitions,
36245  since they will not work well with some color themes (such as dark themes)
36246 \change_unchanged
36247 :
36248 \end_layout
36249
36250 \begin_layout Description
36251 black
36252 \end_layout
36253
36254 \begin_layout Description
36255 white
36256 \end_layout
36257
36258 \begin_layout Description
36259 blue
36260 \end_layout
36261
36262 \begin_layout Description
36263 brown
36264 \end_layout
36265
36266 \begin_layout Description
36267 cyan
36268 \end_layout
36269
36270 \begin_layout Description
36271 darkgray
36272 \end_layout
36273
36274 \begin_layout Description
36275 gray
36276 \end_layout
36277
36278 \begin_layout Description
36279 green
36280 \end_layout
36281
36282 \begin_layout Description
36283 lightgray
36284 \end_layout
36285
36286 \begin_layout Description
36287 lime
36288 \end_layout
36289
36290 \begin_layout Description
36291 magenta
36292 \end_layout
36293
36294 \begin_layout Description
36295 olive
36296 \end_layout
36297
36298 \begin_layout Description
36299 orange
36300 \end_layout
36301
36302 \begin_layout Description
36303 pink
36304 \end_layout
36305
36306 \begin_layout Description
36307 purple
36308 \end_layout
36309
36310 \begin_layout Description
36311 red
36312 \end_layout
36313
36314 \begin_layout Description
36315 teal
36316 \end_layout
36317
36318 \begin_layout Description
36319 violet
36320 \end_layout
36321
36322 \begin_layout Description
36323 yellow
36324 \end_layout
36325
36326 \begin_layout Section
36327 Dynamic colors
36328 \end_layout
36329
36330 \begin_layout Standard
36331 These are the colors allocated to specific elements in 
36332 \begin_inset Info
36333 type  "menu"
36334 arg   "dialog-show prefs"
36335 \end_inset
36336
36337 :
36338 \end_layout
36339
36340 \begin_layout Description
36341 added_space Added space color
36342 \end_layout
36343
36344 \begin_layout Description
36345 addedtext Added text color
36346 \end_layout
36347
36348 \begin_layout Description
36349 appendix Appendix marker color
36350 \end_layout
36351
36352 \begin_layout Description
36353 background Background color
36354 \change_inserted 5863208 1681507589
36355
36356 \end_layout
36357
36358 \begin_layout Description
36359
36360 \change_inserted 5863208 1681507597
36361 bookmark Bookmark indicator color
36362 \change_unchanged
36363
36364 \end_layout
36365
36366 \begin_layout Description
36367 bottomarea Bottom area color
36368 \end_layout
36369
36370 \begin_layout Description
36371 branchlabel Label color for branches
36372 \end_layout
36373
36374 \begin_layout Description
36375 buttonbg Color used for button background
36376 \end_layout
36377
36378 \begin_layout Description
36379 buttonframe Color for inset button frames
36380 \end_layout
36381
36382 \begin_layout Description
36383 buttonhoverbg Color used for button background under focus
36384 \change_inserted -712698321 1681555554
36385
36386 \end_layout
36387
36388 \begin_layout Description
36389
36390 \change_inserted -712698321 1681555554
36391 buttonhoverbg_broken Color used for broken inset button under focus 
36392 \change_unchanged
36393
36394 \end_layout
36395
36396 \begin_layout Description
36397 changebar Changebar color
36398 \end_layout
36399
36400 \begin_layout Description
36401 changedtextauthor1 Changed text color author 1
36402 \end_layout
36403
36404 \begin_layout Description
36405 changedtextauthor2 Changed text color author 2
36406 \end_layout
36407
36408 \begin_layout Description
36409 changedtextauthor3 Changed text color author 3
36410 \end_layout
36411
36412 \begin_layout Description
36413 changedtextauthor4 Changed text color author 4
36414 \end_layout
36415
36416 \begin_layout Description
36417 changedtextauthor5 Changed text color author 5
36418 \change_inserted 5863208 1681507402
36419
36420 \end_layout
36421
36422 \begin_layout Description
36423
36424 \change_inserted 5863208 1681507414
36425 changedtextcomparison Changed text color document comparison (workarea)
36426 \change_unchanged
36427
36428 \end_layout
36429
36430 \begin_layout Description
36431 collapsible Collapsible insets text color
36432 \end_layout
36433
36434 \begin_layout Description
36435 collapsibleframe Collapsible insets framecolor
36436 \end_layout
36437
36438 \begin_layout Description
36439 command Text color for command insets
36440 \end_layout
36441
36442 \begin_layout Description
36443 commandbg Background color for command insets
36444 \end_layout
36445
36446 \begin_layout Description
36447 commandframe Frame color for command insets
36448 \change_inserted 5863208 1681507735
36449
36450 \end_layout
36451
36452 \begin_layout Description
36453
36454 \change_inserted 5863208 1681507880
36455 command_broken Text color for broken
36456 \change_inserted -712698321 1681555620
36457  
36458 \change_inserted 5863208 1681507880
36459 (
36460 \change_deleted -712698321 1681555620
36461 -
36462 \change_inserted 5863208 1681507880
36463 reference) insets 
36464 \end_layout
36465
36466 \begin_layout Description
36467
36468 \change_inserted 5863208 1681507827
36469 commandbg_broken Background color for broken insets
36470 \end_layout
36471
36472 \begin_layout Description
36473
36474 \change_inserted 5863208 1681507835
36475 commandframe_broken Frame color for broken insets 
36476 \end_layout
36477
36478 \begin_layout Description
36479
36480 \change_deleted -712698321 1681555548
36481 buttonhoverbg_broken Color used for broken inset button under focus 
36482 \change_unchanged
36483
36484 \end_layout
36485
36486 \begin_layout Description
36487 comment Label color for comments
36488 \end_layout
36489
36490 \begin_layout Description
36491 commentbg Background color of comments
36492 \end_layout
36493
36494 \begin_layout Description
36495 cursor Cursor color
36496 \end_layout
36497
36498 \begin_layout Description
36499 deletedtext Deleted text color
36500 \end_layout
36501
36502 \begin_layout Description
36503 deletedtextmodifier Deleted text modifying color
36504 \change_inserted 5863208 1681507525
36505  (for adjusting the 
36506 \change_deleted -712698321 1681555611
36507 brightnes
36508 \change_inserted -712698321 1681555611
36509 brightness
36510 \change_inserted 5863208 1681507525
36511 )
36512 \change_unchanged
36513
36514 \end_layout
36515
36516 \begin_layout Description
36517 depthbar Color for the depth bars in the margin
36518 \end_layout
36519
36520 \begin_layout Description
36521 eolmarker End of line marker color
36522 \end_layout
36523
36524 \begin_layout Description
36525 error Color of the \SpecialChar LaTeX
36526  error box
36527 \end_layout
36528
36529 \begin_layout Description
36530 footlabel Label color for footnotes
36531 \end_layout
36532
36533 \begin_layout Description
36534 foreground Foreground color
36535 \end_layout
36536
36537 \begin_layout Description
36538 graphicsbg Graphics inset background color
36539 \end_layout
36540
36541 \begin_layout Description
36542 greyedoutbg Background color of greyedout inset
36543 \end_layout
36544
36545 \begin_layout Description
36546 greyedoutlabel Label color for greyedout insets
36547 \end_layout
36548
36549 \begin_layout Description
36550 greyedouttext Color for greyedout inset text
36551 \end_layout
36552
36553 \begin_layout Description
36554 indexlabel Label color for index insets
36555 \end_layout
36556
36557 \begin_layout Description
36558 inlinecompletion Inline completion color
36559 \end_layout
36560
36561 \begin_layout Description
36562 insetbg Inset marker background color
36563 \end_layout
36564
36565 \begin_layout Description
36566 insetframe Inset marker frame color
36567 \end_layout
36568
36569 \begin_layout Description
36570 language Color for marking foreign language words
36571 \end_layout
36572
36573 \begin_layout Description
36574 latex Text color in \SpecialChar LaTeX
36575  mode
36576 \end_layout
36577
36578 \begin_layout Description
36579 listingsbg Background color of listings inset
36580 \end_layout
36581
36582 \begin_layout Description
36583 marginlabel Label color for margin notes
36584 \end_layout
36585
36586 \begin_layout Description
36587 math Math inset text color
36588 \end_layout
36589
36590 \begin_layout Description
36591 mathbg Math inset background color
36592 \end_layout
36593
36594 \begin_layout Description
36595 mathcorners Math inset frame color not under focus
36596 \end_layout
36597
36598 \begin_layout Description
36599 mathframe Math inset frame color under focus
36600 \end_layout
36601
36602 \begin_layout Description
36603 mathline Math line color
36604 \end_layout
36605
36606 \begin_layout Description
36607 mathmacrobg Macro math inset background color
36608 \end_layout
36609
36610 \begin_layout Description
36611 mathmacroblend Macro math blended color
36612 \end_layout
36613
36614 \begin_layout Description
36615 mathmacroframe Macro math frame color
36616 \end_layout
36617
36618 \begin_layout Description
36619 mathmacrohoverbg Macro math inset background color hovered
36620 \end_layout
36621
36622 \begin_layout Description
36623 mathmacrolabel Macro math label color
36624 \end_layout
36625
36626 \begin_layout Description
36627 mathmacronewarg Macro template color for new parameters
36628 \end_layout
36629
36630 \begin_layout Description
36631 mathmacrooldarg Macro template color for old parameters
36632 \end_layout
36633
36634 \begin_layout Description
36635 newpage New page color
36636 \end_layout
36637
36638 \begin_layout Description
36639 nonunique_inlinecompletion Inline completion color for the non-unique part
36640 \end_layout
36641
36642 \begin_layout Description
36643 note Label color for notes
36644 \end_layout
36645
36646 \begin_layout Description
36647 notebg Background color of notes
36648 \end_layout
36649
36650 \begin_layout Description
36651 pagebreak Page break/line break color
36652 \end_layout
36653
36654 \begin_layout Description
36655 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
36656 \end_layout
36657
36658 \begin_layout Description
36659 phantomtext Text color for phantom insets
36660 \end_layout
36661
36662 \begin_layout Description
36663 preview The color used for previews
36664 \end_layout
36665
36666 \begin_layout Description
36667 previewframe Preview frame color
36668 \end_layout
36669
36670 \begin_layout Description
36671 regexpframe Color for regexp frame
36672 \end_layout
36673
36674 \begin_layout Description
36675 scroll Color that indicates when a row can be scrolled 
36676 \end_layout
36677
36678 \begin_layout Description
36679 selection Background color of selected text
36680 \end_layout
36681
36682 \begin_layout Description
36683 selectiontext Foreground color of selected text
36684 \end_layout
36685
36686 \begin_layout Description
36687 shadedbg Background color of shaded box
36688 \end_layout
36689
36690 \begin_layout Description
36691 special Special chars text color
36692 \end_layout
36693
36694 \begin_layout Description
36695 tabularline Table line color
36696 \end_layout
36697
36698 \begin_layout Description
36699 tabularonoffline Table line color
36700 \change_inserted -712698321 1607682522
36701
36702 \end_layout
36703
36704 \begin_layout Description
36705
36706 \change_inserted -712698321 1607682563
36707 textlabel1 Color 1 of layout and custom inset labels
36708 \end_layout
36709
36710 \begin_layout Description
36711
36712 \change_inserted -712698321 1607682565
36713 textlabel2 Color 2 of layout and custom inset labels
36714 \end_layout
36715
36716 \begin_layout Description
36717
36718 \change_inserted -712698321 1607682568
36719 textlabel3 Color 3 of layout and custom inset labels
36720 \change_unchanged
36721
36722 \end_layout
36723
36724 \begin_layout Description
36725 urllabel Label color for URL insets
36726 \end_layout
36727
36728 \begin_layout Description
36729 urltext Color for URL inset text
36730 \end_layout
36731
36732 \end_body
36733 \end_document