]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Customization.lyx: update format for next commit
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 608
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 5863208 "ab"
145 \author 232239728 "Owner"
146 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
147 \author 1075283030 "Thibaut"
148 \end_header
149
150 \begin_body
151
152 \begin_layout Title
153 Customizing \SpecialChar LyX
154 : Features for the Advanced User
155 \end_layout
156
157 \begin_layout Author
158 by the \SpecialChar LyX
159  Team
160 \begin_inset Foot
161 status collapsed
162
163 \begin_layout Plain Layout
164 If you have comments or error corrections, please send them to the \SpecialChar LyX
165  Documentatio
166 n mailing list, 
167 \begin_inset CommandInset href
168 LatexCommand href
169 target "lyx-docs@lists.lyx.org"
170 type "mailto:"
171 literal "false"
172
173 \end_inset
174
175 .
176  Include 
177 \begin_inset Quotes eld
178 \end_inset
179
180 [Customization]
181 \begin_inset Quotes erd
182 \end_inset
183
184  in the subject header, and please cc the current maintainer of this file,
185  Richard 
186 \change_inserted 5863208 1604930692
187 Kimberly 
188 \change_unchanged
189 Heck <
190 \change_inserted 5863208 1604930729
191 rikiheck@lyx.org
192 \change_deleted 5863208 1604930668
193 rikiheck@lyx.org
194 \change_unchanged
195 >.
196 \end_layout
197
198 \end_inset
199
200
201 \begin_inset Newline newline
202 \end_inset
203
204
205 \begin_inset Newline newline
206 \end_inset
207
208 Version 2.4.x
209 \end_layout
210
211 \begin_layout Standard
212 \begin_inset CommandInset toc
213 LatexCommand tableofcontents
214
215 \end_inset
216
217
218 \end_layout
219
220 \begin_layout Standard
221 \begin_inset Note Note
222 status open
223
224 \begin_layout Plain Layout
225 Please use change tracking when modifying this document.
226  This makes it easier for our translators to recognize things that have
227  been changed, and it helps the maintainer keep up-to-date with what's been
228  done.
229 \end_layout
230
231 \end_inset
232
233
234 \end_layout
235
236 \begin_layout Chapter
237 Introduction
238 \end_layout
239
240 \begin_layout Standard
241 This manual covers the customization features present in \SpecialChar LyX
242 .
243  In it, we discuss issues like keyboard shortcuts, screen previewing options,
244  printer options, sending commands to \SpecialChar LyX
245  via the \SpecialChar LyX
246  Server, internationalization,
247  installing new \SpecialChar LaTeX
248  classes and \SpecialChar LyX
249  layouts, etc.
250  We can't possibly hope to touch on everything you can change—our developers
251  add new features faster than we can document them—but we will explain the
252  most common customizations and hopefully point you in the right direction
253  for some of the more obscure ones.
254 \end_layout
255
256 \begin_layout Standard
257 \begin_inset Branch OutDated
258 inverted 0
259 status collapsed
260
261 \begin_layout Standard
262 Information from previous versions of this document that now seems to be
263  outdated is contained in the OutDated branch of this document.
264  By default, this information will not appear in the \SpecialChar LaTeX
265  output.
266 \end_layout
267
268 \end_inset
269
270
271 \end_layout
272
273 \begin_layout Chapter
274 \SpecialChar LyX
275  configuration files
276 \end_layout
277
278 \begin_layout Standard
279 This chapter aims to help you to find your way through the \SpecialChar LyX
280  configuration
281  files.
282  Before continuing to read this chapter, you should find out where your
283  \SpecialChar LyX
284  library and user directories are by using 
285 \begin_inset Flex Noun
286 status collapsed
287
288 \begin_layout Plain Layout
289 Help\SpecialChar menuseparator
290 About
291 \begin_inset space ~
292 \end_inset
293
294 LyX
295 \end_layout
296
297 \end_inset
298
299 .
300  The library directory is the place where \SpecialChar LyX
301  places its system-wide configuration
302  files; the user directory is where you can place your modified versions.
303  We will call the former 
304 \begin_inset Flex Code
305 status collapsed
306
307 \begin_layout Plain Layout
308 LyXDir
309 \end_layout
310
311 \end_inset
312
313  and the latter 
314 \begin_inset Flex Noun
315 status collapsed
316
317 \begin_layout Plain Layout
318 UserDir
319 \end_layout
320
321 \end_inset
322
323  in the remainder of this document.
324  
325 \end_layout
326
327 \begin_layout Section
328 What's in 
329 \begin_inset Flex Code
330 status collapsed
331
332 \begin_layout Plain Layout
333 LyXDir
334 \end_layout
335
336 \end_inset
337
338 ?
339 \end_layout
340
341 \begin_layout Standard
342 \begin_inset Flex Code
343 status collapsed
344
345 \begin_layout Plain Layout
346 LyXDir
347 \end_layout
348
349 \end_inset
350
351  and its sub-directories contain a number of files 
352 \change_deleted 232239728 1604787780
353 and
354 \change_unchanged
355  that can be used to customize \SpecialChar LyX
356 's behavior.
357  You can change many of these files from within \SpecialChar LyX
358  itself through the 
359 \begin_inset Flex Noun
360 status collapsed
361
362 \begin_layout Plain Layout
363 Tools\SpecialChar menuseparator
364 Preferences
365 \end_layout
366
367 \end_inset
368
369  dialog.
370  Most customization that you will want to do in \SpecialChar LyX
371  is possible through this
372  dialog.
373  However, many other inner aspects of \SpecialChar LyX
374  can be customized by modifying the
375  files in 
376 \begin_inset Flex Code
377 status collapsed
378
379 \begin_layout Plain Layout
380 LyXDir
381 \end_layout
382
383 \end_inset
384
385 .
386  These files fall in different categories, described in the following subsection
387 s.
388 \end_layout
389
390 \begin_layout Subsection
391 Automatically generated files
392 \end_layout
393
394 \begin_layout Standard
395 The files found in 
396 \begin_inset Flex Noun
397 status collapsed
398
399 \begin_layout Plain Layout
400 UserDir
401 \end_layout
402
403 \end_inset
404
405  are generated when you configure \SpecialChar LyX
406 .
407  They contain various default values that are 
408 \change_inserted 5863208 1604919565
409 automatically detected during reconfiguration.
410 \change_deleted 232239728 1604788241
411 guessed by inspection
412 \change_unchanged
413  In general, it is not a good idea to modify them, since they might be overwritt
414 en at any time.
415 \end_layout
416
417 \begin_layout Labeling
418 \labelwidthstring 00.00.0000
419 \begin_inset Flex Code
420 status collapsed
421
422 \begin_layout Plain Layout
423 lyxrc.defaults
424 \end_layout
425
426 \end_inset
427
428  
429 \change_deleted 5863208 1604919950
430
431 \begin_inset Note Note
432 status collapsed
433
434 \begin_layout Plain Layout
435
436 \change_inserted 232239728 1604853928
437 I capitalized the first word in all of these lists.
438  To me it looks better but it really is a stylistic thing, your call.
439  However if you are not going to capitalize them, the english in some needs
440  to be modified to make it read correctly as a sentence.
441 \change_unchanged
442
443 \end_layout
444
445 \end_inset
446
447
448 \change_deleted 232239728 1604853510
449 c
450 \change_inserted 232239728 1604853510
451 C
452 \change_unchanged
453 ontains defaults for various commands.
454 \end_layout
455
456 \begin_layout Labeling
457 \labelwidthstring 00.00.0000
458 \begin_inset Flex Code
459 status collapsed
460
461 \begin_layout Plain Layout
462 packages.lst
463 \end_layout
464
465 \end_inset
466
467  
468 \change_deleted 232239728 1604853512
469 c
470 \change_inserted 232239728 1604853512
471 C
472 \change_unchanged
473 ontains the list of packages that have been recognized by \SpecialChar LyX
474 .
475  It is currently unused by the \SpecialChar LyX
476  program itself, but the information extracted,
477  and more, is made available with 
478 \begin_inset Flex Noun
479 status collapsed
480
481 \begin_layout Plain Layout
482 Help\SpecialChar menuseparator
483 \SpecialChar LaTeX
484
485 \begin_inset space ~
486 \end_inset
487
488 Configuration
489 \end_layout
490
491 \end_inset
492
493 .
494 \end_layout
495
496 \begin_layout Labeling
497 \labelwidthstring 00.00.0000
498 \begin_inset Flex Code
499 status collapsed
500
501 \begin_layout Plain Layout
502 textclass.lst
503 \end_layout
504
505 \end_inset
506
507  
508 \change_deleted 232239728 1604853515
509 t
510 \change_inserted 232239728 1604853515
511 T
512 \change_unchanged
513 he list of text classes that have been found in your 
514 \begin_inset Flex Code
515 status collapsed
516
517 \begin_layout Plain Layout
518 layout/
519 \end_layout
520
521 \end_inset
522
523  directories, along with the associated \SpecialChar LaTeX
524  document class and their description.
525 \end_layout
526
527 \begin_layout Labeling
528 \labelwidthstring 00.00.0000
529 \begin_inset Flex Code
530 status collapsed
531
532 \begin_layout Plain Layout
533 lyxmodules.lst
534 \end_layout
535
536 \end_inset
537
538  
539 \change_deleted 232239728 1604853518
540 t
541 \change_inserted 232239728 1604853518
542 T
543 \change_unchanged
544 he list of layout modules found in your 
545 \begin_inset Flex Code
546 status collapsed
547
548 \begin_layout Plain Layout
549 layout/
550 \end_layout
551
552 \end_inset
553
554  directories
555 \end_layout
556
557 \begin_layout Labeling
558 \labelwidthstring 00.00.0000
559 \begin_inset Flex Code
560 status open
561
562 \begin_layout Plain Layout
563 *files.lst
564 \end_layout
565
566 \end_inset
567
568  
569 \change_deleted 232239728 1604853523
570 l
571 \change_inserted 232239728 1604853523
572 L
573 \change_unchanged
574 ists of various sorts of \SpecialChar LaTeX
575 -related files found on your system
576 \end_layout
577
578 \begin_layout Labeling
579 \labelwidthstring 00.00.0000
580 \begin_inset Flex Code
581 status open
582
583 \begin_layout Plain Layout
584 doc/\SpecialChar LaTeX
585 Config.lyx
586 \end_layout
587
588 \end_inset
589
590  is automatically generated during configuration from the file 
591 \begin_inset Flex Code
592 status collapsed
593
594 \begin_layout Plain Layout
595 \SpecialChar LaTeX
596 Config.lyx.in
597 \end_layout
598
599 \end_inset
600
601 .
602  It contains information on your \SpecialChar LaTeX
603  configuration.
604 \end_layout
605
606 \begin_layout Subsection
607 Directories
608 \end_layout
609
610 \begin_layout Standard
611 The
612 \change_deleted 5863208 1604928729
613 se
614 \change_unchanged
615  
616 \change_inserted 5863208 1604928636
617 following 
618 \change_unchanged
619 directories 
620 \change_inserted 5863208 1604928661
621 in 
622 \change_unchanged
623
624 \begin_inset Flex Code
625 status collapsed
626
627 \begin_layout Plain Layout
628 LyXDir
629 \end_layout
630
631 \end_inset
632
633
634 \change_inserted 5863208 1604928662
635  can be
636 \change_deleted 5863208 1604928642
637 are
638 \change_unchanged
639  duplicated 
640 \change_deleted 5863208 1604928669
641 between 
642 \begin_inset Flex Code
643 status collapsed
644
645 \begin_layout Plain Layout
646 LyXDir
647 \end_layout
648
649 \end_inset
650
651  and
652 \change_inserted 5863208 1604928680
653 in
654 \change_unchanged
655  
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 UserDir
661 \end_layout
662
663 \end_inset
664
665 .
666  If a particular file
667 \change_deleted 232239728 1604794430
668 s
669 \change_unchanged
670  exists in both places, the one in 
671 \begin_inset Flex Code
672 status collapsed
673
674 \begin_layout Plain Layout
675 UserDir
676 \end_layout
677
678 \end_inset
679
680  will be used.
681 \end_layout
682
683 \begin_layout Labeling
684 \labelwidthstring 00.00.0000
685 \begin_inset Flex Code
686 status collapsed
687
688 \begin_layout Plain Layout
689 bind/
690 \end_layout
691
692 \end_inset
693
694  
695 \change_deleted 232239728 1604794460
696 t
697 \change_inserted 232239728 1604794460
698 T
699 \change_unchanged
700 his directory contains files with the extension 
701 \begin_inset Flex Code
702 status collapsed
703
704 \begin_layout Plain Layout
705 .bind
706 \end_layout
707
708 \end_inset
709
710  that define the keybindings used in \SpecialChar LyX
711 .
712  If there exists an internationalized version of the bind file named 
713 \begin_inset Flex Code
714 status collapsed
715
716 \begin_layout Plain Layout
717 $LANG_xxx.bind
718 \end_layout
719
720 \end_inset
721
722 , that will be used first.
723 \end_layout
724
725 \begin_layout Labeling
726 \labelwidthstring 00.00.0000
727 \begin_inset Flex Code
728 status collapsed
729
730 \begin_layout Plain Layout
731 citeengines/
732 \end_layout
733
734 \end_inset
735
736  
737 \change_deleted 232239728 1604794478
738 c
739 \change_inserted 232239728 1604794478
740 C
741 \change_unchanged
742 ontains files with the extension 
743 \begin_inset Flex Code
744 status collapsed
745
746 \begin_layout Plain Layout
747 .citeengine
748 \end_layout
749
750 \end_inset
751
752  which define the diverse citation possibilities (natbib, biblatex etc.).
753  See 
754 \begin_inset CommandInset ref
755 LatexCommand ref
756 reference "subsec:Cite-Engine-Files"
757 plural "false"
758 caps "false"
759 noprefix "false"
760
761 \end_inset
762
763  for details.
764 \end_layout
765
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
769 status collapsed
770
771 \begin_layout Plain Layout
772 clipart/
773 \end_layout
774
775 \end_inset
776
777  
778 \change_deleted 232239728 1604794483
779 c
780 \change_inserted 232239728 1604794486
781 C
782 \change_unchanged
783 ontains graphics files that can be included in documents.
784  
785 \end_layout
786
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
790 status collapsed
791
792 \begin_layout Plain Layout
793 doc/
794 \end_layout
795
796 \end_inset
797
798  
799 \change_deleted 232239728 1604794492
800 c
801 \change_inserted 232239728 1604794492
802 C
803 \change_unchanged
804 ontains \SpecialChar LyX
805  documentation files (including the one you are currently reading).
806  The file 
807 \begin_inset Flex Code
808 status collapsed
809
810 \begin_layout Plain Layout
811
812 \change_deleted 232239728 1604794660
813 \SpecialChar LaTeX
814
815 \change_inserted 232239728 1604794661
816 LaTex
817 \change_unchanged
818 Config.lyx
819 \end_layout
820
821 \end_inset
822
823  deserves special attention, as noted above.
824  The internationalized help docs are in subdirectories 
825 \begin_inset Flex Code
826 status collapsed
827
828 \begin_layout Plain Layout
829 doc/xx
830 \end_layout
831
832 \end_inset
833
834  where 
835 \begin_inset Quotes eld
836 \end_inset
837
838 xx
839 \begin_inset Quotes erd
840 \end_inset
841
842  is the ISO language code.
843  See 
844 \begin_inset CommandInset ref
845 LatexCommand ref
846 reference "cha:Internationalizing-LyX"
847
848 \end_inset
849
850  for details.
851 \end_layout
852
853 \begin_layout Labeling
854 \labelwidthstring 00.00.0000
855 \begin_inset Flex Code
856 status collapsed
857
858 \begin_layout Plain Layout
859 examples/
860 \end_layout
861
862 \end_inset
863
864  
865 \change_deleted 232239728 1604794497
866 c
867 \change_inserted 232239728 1604794497
868 C
869 \change_unchanged
870 ontains example files that explain how to use some features.
871  In the file browser, press the 
872 \begin_inset Flex Noun
873 status collapsed
874
875 \begin_layout Plain Layout
876 Examples
877 \end_layout
878
879 \end_inset
880
881  button to get there.
882 \end_layout
883
884 \begin_layout Labeling
885 \labelwidthstring 00.00.0000
886 \begin_inset Flex Code
887 status collapsed
888
889 \begin_layout Plain Layout
890 images/
891 \end_layout
892
893 \end_inset
894
895  
896 \change_deleted 232239728 1604794500
897 c
898 \change_inserted 232239728 1604794500
899 C
900 \change_unchanged
901 ontains image files that are used by the 
902 \begin_inset Flex Noun
903 status collapsed
904
905 \begin_layout Plain Layout
906 Document
907 \end_layout
908
909 \end_inset
910
911  dialog.
912  In addition, it also contains the individual icons used in the toolbar
913  and the banners that can be shown when \SpecialChar LyX
914  is launched.
915 \end_layout
916
917 \begin_layout Labeling
918 \labelwidthstring 00.00.0000
919 \begin_inset Flex Code
920 status collapsed
921
922 \begin_layout Plain Layout
923 kbd/
924 \end_layout
925
926 \end_inset
927
928  
929 \change_deleted 232239728 1604794505
930 c
931 \change_inserted 232239728 1604794505
932 C
933 \change_unchanged
934 ontains keyboard keymapping files.
935  See 
936 \begin_inset CommandInset ref
937 LatexCommand ref
938 reference "sec:International-Keymap-Stuff"
939
940 \end_inset
941
942  for details.
943 \end_layout
944
945 \begin_layout Labeling
946 \labelwidthstring 00.00.0000
947 \begin_inset Flex Code
948 status collapsed
949
950 \begin_layout Plain Layout
951 layouts/
952 \end_layout
953
954 \end_inset
955
956  
957 \change_deleted 232239728 1604794508
958 c
959 \change_inserted 232239728 1604794508
960 C
961 \change_unchanged
962 ontains the text class and module files described in 
963 \begin_inset CommandInset ref
964 LatexCommand ref
965 reference "cha:Installing-New-Document"
966
967 \end_inset
968
969 .
970 \end_layout
971
972 \begin_layout Labeling
973 \labelwidthstring 00.00.0000
974 \begin_inset Flex Code
975 status collapsed
976
977 \begin_layout Plain Layout
978 lyx2lyx
979 \end_layout
980
981 \end_inset
982
983  
984 \change_deleted 232239728 1604794513
985 c
986 \change_inserted 232239728 1604794513
987 C
988 \change_unchanged
989 ontains the 
990 \begin_inset Flex Code
991 status collapsed
992
993 \begin_layout Plain Layout
994 lyx2lyx
995 \end_layout
996
997 \end_inset
998
999  Python scripts used to convert between \SpecialChar LyX
1000  versions.
1001  These can be run from the command line if
1002 \change_deleted 232239728 1604794749
1003 , say,
1004 \change_unchanged
1005  you want to batch-convert files.
1006 \end_layout
1007
1008 \begin_layout Labeling
1009 \labelwidthstring 00.00.0000
1010 \begin_inset Flex Code
1011 status collapsed
1012
1013 \begin_layout Plain Layout
1014 scripts/
1015 \end_layout
1016
1017 \end_inset
1018
1019  
1020 \change_deleted 232239728 1604794516
1021 c
1022 \change_inserted 232239728 1604794516
1023 C
1024 \change_unchanged
1025 ontains some files that demonstrate the capabilities of the 
1026 \begin_inset Flex Noun
1027 status collapsed
1028
1029 \begin_layout Plain Layout
1030 External
1031 \begin_inset space ~
1032 \end_inset
1033
1034 Template
1035 \end_layout
1036
1037 \end_inset
1038
1039  feature.
1040  Also contains some scripts used by \SpecialChar LyX
1041  itself.
1042 \end_layout
1043
1044 \begin_layout Labeling
1045 \labelwidthstring 00.00.0000
1046 \begin_inset Flex Code
1047 status collapsed
1048
1049 \begin_layout Plain Layout
1050 templates/
1051 \end_layout
1052
1053 \end_inset
1054
1055  
1056 \change_deleted 232239728 1604794520
1057 c
1058 \change_inserted 232239728 1604794520
1059 C
1060 \change_unchanged
1061 ontains the standard \SpecialChar LyX
1062  template files described in 
1063 \begin_inset CommandInset ref
1064 LatexCommand ref
1065 reference "subsec:Creating-Templates"
1066
1067 \end_inset
1068
1069 .
1070 \end_layout
1071
1072 \begin_layout Labeling
1073 \labelwidthstring 00.00.0000
1074 \begin_inset Flex Code
1075 status collapsed
1076
1077 \begin_layout Plain Layout
1078 ui/
1079 \end_layout
1080
1081 \end_inset
1082
1083  
1084 \change_deleted 232239728 1604794524
1085 c
1086 \change_inserted 232239728 1604794524
1087 C
1088 \change_unchanged
1089 ontains files with the extension 
1090 \begin_inset Flex Code
1091 status collapsed
1092
1093 \begin_layout Plain Layout
1094 .ui
1095 \end_layout
1096
1097 \end_inset
1098
1099  that define the user interface to \SpecialChar LyX
1100 .
1101  That is, the files define which items appear in which menus and the items
1102  appearing on the toolbar.
1103 \end_layout
1104
1105 \begin_layout Labeling
1106 \labelwidthstring 00.00.0000
1107 \begin_inset Flex Code
1108 status collapsed
1109
1110 \begin_layout Plain Layout
1111 xtemplates/
1112 \end_layout
1113
1114 \end_inset
1115
1116  
1117 \change_deleted 232239728 1604794528
1118 c
1119 \change_inserted 232239728 1604794528
1120 C
1121 \change_unchanged
1122 ontains files with the extension 
1123 \begin_inset Flex Code
1124 status collapsed
1125
1126 \begin_layout Plain Layout
1127 .xtemplate
1128 \end_layout
1129
1130 \end_inset
1131
1132  which define the templates for the insertion of external material to a
1133  \SpecialChar LyX
1134  document; see 
1135 \begin_inset CommandInset ref
1136 LatexCommand ref
1137 reference "chap:Including-External-Material"
1138
1139 \end_inset
1140
1141 .
1142 \end_layout
1143
1144 \begin_layout Subsection
1145 Files you don't want to modify
1146 \end_layout
1147
1148 \begin_layout Standard
1149 These files are used internally by \SpecialChar LyX
1150  and you generally do not need to modify
1151  them unless you are a developer.
1152 \end_layout
1153
1154 \begin_layout Labeling
1155 \labelwidthstring 00.00.0000
1156 \begin_inset Flex Code
1157 status collapsed
1158
1159 \begin_layout Plain Layout
1160 CREDITS
1161 \end_layout
1162
1163 \end_inset
1164
1165  
1166 \change_deleted 232239728 1604797616
1167 t
1168 \change_inserted 232239728 1604797616
1169 T
1170 \change_unchanged
1171 his file contains the list of \SpecialChar LyX
1172  developers.
1173  The contents are displayed with the menu entry 
1174 \begin_inset Flex Noun
1175 status collapsed
1176
1177 \begin_layout Plain Layout
1178 Help\SpecialChar menuseparator
1179 About
1180 \begin_inset space ~
1181 \end_inset
1182
1183 LyX
1184 \end_layout
1185
1186 \end_inset
1187
1188 .
1189 \end_layout
1190
1191 \begin_layout Labeling
1192 \labelwidthstring 00.00.0000
1193 \begin_inset Flex Code
1194 status collapsed
1195
1196 \begin_layout Plain Layout
1197 chkconfig.ltx
1198 \end_layout
1199
1200 \end_inset
1201
1202  
1203 \change_deleted 232239728 1604797620
1204 t
1205 \change_inserted 232239728 1604797620
1206 T
1207 \change_unchanged
1208 his is a \SpecialChar LaTeX
1209  script used during the configuration process.
1210  Do not run directly.
1211 \end_layout
1212
1213 \begin_layout Labeling
1214 \labelwidthstring 00.00.0000
1215 \begin_inset Flex Code
1216 status collapsed
1217
1218 \begin_layout Plain Layout
1219 configure.py
1220 \end_layout
1221
1222 \end_inset
1223
1224  
1225 \change_deleted 232239728 1604797624
1226 t
1227 \change_inserted 232239728 1604797624
1228 T
1229 \change_unchanged
1230 his is a Python script that is used to re-configure \SpecialChar LyX
1231 .
1232  It creates configuration files in the directory it was run from.
1233 \end_layout
1234
1235 \begin_layout Subsection
1236 Other files needing a line or two
1237 \end_layout
1238
1239 \begin_layout Labeling
1240 \labelwidthstring 00.00.0000
1241 \begin_inset Flex Code
1242 status collapsed
1243
1244 \begin_layout Plain Layout
1245 encodings
1246 \end_layout
1247
1248 \end_inset
1249
1250  
1251 \change_deleted 232239728 1604797580
1252 t
1253 \change_inserted 232239728 1604797580
1254 T
1255 \change_unchanged
1256 his contains tables describing how different character encodings can be
1257  mapped to Unicode
1258 \end_layout
1259
1260 \begin_layout Labeling
1261 \labelwidthstring 00.00.0000
1262 \begin_inset Flex Code
1263 status collapsed
1264
1265 \begin_layout Plain Layout
1266 languages
1267 \end_layout
1268
1269 \end_inset
1270
1271  
1272 \change_deleted 232239728 1604797584
1273 t
1274 \change_inserted 232239728 1604797584
1275 T
1276 \change_unchanged
1277 his file contains a list of all the languages currently supported by \SpecialChar LyX
1278 .
1279 \end_layout
1280
1281 \begin_layout Labeling
1282 \labelwidthstring 00.00.0000
1283 \begin_inset Flex Code
1284 status collapsed
1285
1286 \begin_layout Plain Layout
1287 latexfonts
1288 \end_layout
1289
1290 \end_inset
1291
1292  
1293 \change_deleted 232239728 1604797587
1294 c
1295 \change_inserted 232239728 1604797587
1296 C
1297 \change_unchanged
1298 ontains information about the supported fonts.
1299 \end_layout
1300
1301 \begin_layout Labeling
1302 \labelwidthstring 00.00.0000
1303 \begin_inset Flex Code
1304 status collapsed
1305
1306 \begin_layout Plain Layout
1307 layouttranslations
1308 \end_layout
1309
1310 \end_inset
1311
1312  
1313 \change_deleted 232239728 1604797591
1314 t
1315 \change_inserted 232239728 1604797591
1316 T
1317 \change_unchanged
1318 his file contains translations for internationalized paragraph styles (see
1319  
1320 \begin_inset CommandInset ref
1321 LatexCommand ref
1322 reference "subsec:I18n"
1323
1324 \end_inset
1325
1326 ).
1327 \end_layout
1328
1329 \begin_layout Labeling
1330 \labelwidthstring 00.00.0000
1331 \begin_inset Flex Code
1332 status collapsed
1333
1334 \begin_layout Plain Layout
1335 unicodesymbols
1336 \end_layout
1337
1338 \end_inset
1339
1340  
1341 \change_deleted 232239728 1604797594
1342 t
1343 \change_inserted 232239728 1604797594
1344 T
1345 \change_unchanged
1346 his file contains information about Unicode-encoded glyphs and the way they
1347  are supported by \SpecialChar LyX
1348  via \SpecialChar LaTeX
1349 .
1350 \end_layout
1351
1352 \begin_layout Section
1353 Your local configuration directory
1354 \end_layout
1355
1356 \begin_layout Standard
1357 Even if you are using \SpecialChar LyX
1358  as an unprivileged user, you might want to change
1359  \SpecialChar LyX
1360  configuration for your own use.
1361  The 
1362 \begin_inset Flex Code
1363 status collapsed
1364
1365 \begin_layout Plain Layout
1366 UserDir
1367 \end_layout
1368
1369 \end_inset
1370
1371  directory contains all your personal configuration files.
1372  This is the directory described as 
1373 \begin_inset Quotes eld
1374 \end_inset
1375
1376 user directory
1377 \begin_inset Quotes erd
1378 \end_inset
1379
1380  in 
1381 \begin_inset Flex Noun
1382 status collapsed
1383
1384 \begin_layout Plain Layout
1385 Help\SpecialChar menuseparator
1386 About
1387 \begin_inset space ~
1388 \end_inset
1389
1390 LyX
1391 \end_layout
1392
1393 \end_inset
1394
1395 .
1396  This directory is used as a mirror of 
1397 \begin_inset Flex Code
1398 status collapsed
1399
1400 \begin_layout Plain Layout
1401 LyXDir
1402 \end_layout
1403
1404 \end_inset
1405
1406 , which means that every file in 
1407 \begin_inset Flex Code
1408 status collapsed
1409
1410 \begin_layout Plain Layout
1411 UserDir
1412 \end_layout
1413
1414 \end_inset
1415
1416  is a replacement for the corresponding file in 
1417 \begin_inset Flex Code
1418 status collapsed
1419
1420 \begin_layout Plain Layout
1421 LyXDir
1422 \end_layout
1423
1424 \end_inset
1425
1426 .
1427  Any configuration file described in the above sections can be placed either
1428  in the system-wide directory, in which case it will affect all users, or
1429  in your local directory for your own use.
1430 \end_layout
1431
1432 \begin_layout Standard
1433 To make things clearer, let's provide a few examples:
1434 \end_layout
1435
1436 \begin_layout Itemize
1437 The preferences set in the 
1438 \begin_inset Flex Noun
1439 status collapsed
1440
1441 \begin_layout Plain Layout
1442 Tools\SpecialChar menuseparator
1443 Preferences
1444 \end_layout
1445
1446 \end_inset
1447
1448  dialog are saved to a file 
1449 \begin_inset Flex Code
1450 status collapsed
1451
1452 \begin_layout Plain Layout
1453 preferences
1454 \end_layout
1455
1456 \end_inset
1457
1458  in 
1459 \begin_inset Flex Code
1460 status collapsed
1461
1462 \begin_layout Plain Layout
1463 UserDir
1464 \end_layout
1465
1466 \end_inset
1467
1468 .
1469 \end_layout
1470
1471 \begin_layout Itemize
1472 When you reconfigure using 
1473 \begin_inset Flex Noun
1474 status collapsed
1475
1476 \begin_layout Plain Layout
1477 Tools\SpecialChar menuseparator
1478 Reconfigure
1479 \end_layout
1480
1481 \end_inset
1482
1483 , \SpecialChar LyX
1484  runs the 
1485 \begin_inset Flex Code
1486 status collapsed
1487
1488 \begin_layout Plain Layout
1489 configure.py
1490 \end_layout
1491
1492 \end_inset
1493
1494  script, and the resulting files are written in your local configuration
1495  directory.
1496  This means that any additional text class file that you might have added
1497  in 
1498 \begin_inset Flex Code
1499 status collapsed
1500
1501 \begin_layout Plain Layout
1502 UserDir/layouts
1503 \end_layout
1504
1505 \end_inset
1506
1507  will be added to the list of classes in the 
1508 \begin_inset Flex Noun
1509 status collapsed
1510
1511 \begin_layout Plain Layout
1512 Document\SpecialChar menuseparator
1513 Settings
1514 \end_layout
1515
1516 \end_inset
1517
1518  dialog.
1519 \end_layout
1520
1521 \begin_layout Itemize
1522 If you get some updated documentation from
1523 \change_inserted 232239728 1604798171
1524  a
1525 \change_unchanged
1526  \SpecialChar LyX
1527  ftp site and cannot install it because you do not have sysadmin rights
1528  on your system, you can just copy the files 
1529 \change_deleted 232239728 1604798193
1530 in
1531 \change_inserted 232239728 1604798193
1532 to
1533 \change_unchanged
1534  
1535 \begin_inset Flex Code
1536 status collapsed
1537
1538 \begin_layout Plain Layout
1539 UserDir/doc/
1540 \end_layout
1541
1542 \end_inset
1543
1544  and the items in the 
1545 \begin_inset Flex Noun
1546 status collapsed
1547
1548 \begin_layout Plain Layout
1549 Help
1550 \end_layout
1551
1552 \end_inset
1553
1554  menu will open them!
1555 \end_layout
1556
1557 \begin_layout Section
1558 Running \SpecialChar LyX
1559  with multiple configurations
1560 \end_layout
1561
1562 \begin_layout Standard
1563 The configuration freedom of the local configuration directory may not suffice
1564  if you want to have more than one configuration at your disposal.
1565  For example, you may want to 
1566 \change_deleted 232239728 1604798238
1567 be 
1568 \change_unchanged
1569 use different key bindings or printer settings at different times.
1570  You can achieve this by having several such directories.
1571  You then specify which directory to use at run-time.
1572 \end_layout
1573
1574 \begin_layout Standard
1575 Invoking \SpecialChar LyX
1576  with the command line switch 
1577 \begin_inset Flex Code
1578 status collapsed
1579
1580 \begin_layout Plain Layout
1581 -userdir
1582 \end_layout
1583
1584 \end_inset
1585
1586  
1587 \emph on
1588 <some directory>
1589 \emph default
1590  instructs the program to read the configuration from that directory, and
1591  not from the default directory.
1592  (You can determine the default directory by running \SpecialChar LyX
1593  without the 
1594 \begin_inset Flex Code
1595 status collapsed
1596
1597 \begin_layout Plain Layout
1598 -userdir
1599 \end_layout
1600
1601 \end_inset
1602
1603  switch.) If the specified directory does not exist, \SpecialChar LyX
1604  offers to create it
1605  for you, just like it does for the default directory 
1606 \change_deleted 232239728 1604798318
1607 on
1608 \change_unchanged
1609  the first time you run the program.
1610  You can modify the configuration options in this additional user directory
1611  exactly as you would for the default directory.
1612  These directories are completely independent (but read on).
1613  Note that setting the environment variable 
1614 \begin_inset Flex Code
1615 status collapsed
1616
1617 \begin_layout Plain Layout
1618 LYX_USERDIR_24x
1619 \end_layout
1620
1621 \end_inset
1622
1623  to some value has exactly the same effect.
1624 \end_layout
1625
1626 \begin_layout Standard
1627 Having several configurations also requires more maintenance: if you want
1628  to add a new layout to 
1629 \begin_inset Flex Code
1630 status collapsed
1631
1632 \begin_layout Plain Layout
1633 NewUserDir/layouts
1634 \end_layout
1635
1636 \end_inset
1637
1638  which you want available from all your configurations, you must add it
1639  to each directory separately.
1640  You can avoid this with the following trick: after \SpecialChar LyX
1641  creates the additional
1642  directory, most of the subdirectories (see above) are empty.
1643  If you want the new configuration to mirror an existing one, replace the
1644  empty subdirectory with a symbolic link to the matching subdirectory in
1645  the existing configuration.
1646  Take care with the 
1647 \begin_inset Flex Code
1648 status collapsed
1649
1650 \begin_layout Plain Layout
1651 doc/
1652 \end_layout
1653
1654 \end_inset
1655
1656  subdirectory, however, since it contains a file written by the configuration
1657  script (also accessible through 
1658 \begin_inset Flex Noun
1659 status collapsed
1660
1661 \begin_layout Plain Layout
1662 Tools\SpecialChar menuseparator
1663 Reconfigure
1664 \end_layout
1665
1666 \end_inset
1667
1668 ) which is configuration
1669 \change_deleted 232239728 1604798083
1670 -
1671 \change_inserted 232239728 1604798100
1672  
1673 \change_unchanged
1674 specific.
1675 \end_layout
1676
1677 \begin_layout Chapter
1678 The Preferences dialog
1679 \end_layout
1680
1681 \begin_layout Standard
1682 All options of the preferences dialog are described in the Appendix 
1683 \emph on
1684 The Preferences Dialog
1685 \emph default
1686  in the 
1687 \emph on
1688 User's Guide
1689 \emph default
1690 .
1691  For some options you might find here more details.
1692 \end_layout
1693
1694 \begin_layout Section
1695 Formats
1696 \begin_inset CommandInset label
1697 LatexCommand label
1698 name "sec:Formats"
1699
1700 \end_inset
1701
1702
1703 \end_layout
1704
1705 \begin_layout Standard
1706 The first step is to define your file formats if they are not already defined.
1707  To do so, open the 
1708 \begin_inset Flex Noun
1709 status collapsed
1710
1711 \begin_layout Plain Layout
1712 Tools\SpecialChar menuseparator
1713 Preferences
1714 \end_layout
1715
1716 \end_inset
1717
1718  dialog.
1719  Under 
1720 \begin_inset Flex Noun
1721 status collapsed
1722
1723 \begin_layout Plain Layout
1724 File Handling\SpecialChar menuseparator
1725 File formats
1726 \end_layout
1727
1728 \end_inset
1729
1730  press the 
1731 \begin_inset Flex Noun
1732 status collapsed
1733
1734 \begin_layout Plain Layout
1735 New
1736 \end_layout
1737
1738 \end_inset
1739
1740  button to define your new format.
1741  The 
1742 \begin_inset Flex Noun
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 Format
1747 \end_layout
1748
1749 \end_inset
1750
1751  field contains the name used to identify the format in the GUI.
1752  The 
1753 \begin_inset Flex Noun
1754 status collapsed
1755
1756 \begin_layout Plain Layout
1757 Short Name
1758 \end_layout
1759
1760 \end_inset
1761
1762  is used to identify the format internally.
1763  You will also need to enter a file extension.
1764  These are all required.
1765  The optional 
1766 \begin_inset Flex Noun
1767 status collapsed
1768
1769 \begin_layout Plain Layout
1770 Shortcut
1771 \end_layout
1772
1773 \end_inset
1774
1775  field is used to provide a keyboard shortcut on the menus.
1776  (For example, pressing 
1777 \begin_inset Flex Noun
1778 status collapsed
1779
1780 \begin_layout Plain Layout
1781 Ctrl+D
1782 \end_layout
1783
1784 \end_inset
1785
1786  will 
1787 \begin_inset Flex Noun
1788 status collapsed
1789
1790 \begin_layout Plain Layout
1791 Document\SpecialChar menuseparator
1792 View (Other Formats)\SpecialChar menuseparator
1793 DVI
1794 \end_layout
1795
1796 \end_inset
1797
1798 .) 
1799 \end_layout
1800
1801 \begin_layout Standard
1802 A Format can have a 
1803 \begin_inset Flex Noun
1804 status collapsed
1805
1806 \begin_layout Plain Layout
1807 Viewer
1808 \end_layout
1809
1810 \end_inset
1811
1812  and an 
1813 \begin_inset Flex Noun
1814 status collapsed
1815
1816 \begin_layout Plain Layout
1817 Editor
1818 \end_layout
1819
1820 \end_inset
1821
1822  associated with it.
1823  For example, you might want to use 
1824 \begin_inset Flex Noun
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 Ghostview
1829 \end_layout
1830
1831 \end_inset
1832
1833  to view PostScript files.
1834  You can enter the command needed to start the program in the corresponding
1835  fields.
1836  In defining this command, you can use the four variables listed in the
1837  next section.
1838  The viewer is launched when you view an image in \SpecialChar LyX
1839  or use the 
1840 \begin_inset Flex Noun
1841 status collapsed
1842
1843 \begin_layout Plain Layout
1844 Document\SpecialChar menuseparator
1845 View
1846 \end_layout
1847
1848 \end_inset
1849
1850  menu.
1851  The editor is for example launched when you right-click on an image and
1852  choose 
1853 \begin_inset Flex Noun
1854 status collapsed
1855
1856 \begin_layout Plain Layout
1857 Edit externally
1858 \end_layout
1859
1860 \end_inset
1861
1862  in the appearing context menu.
1863 \end_layout
1864
1865 \begin_layout Standard
1866 The 
1867 \begin_inset Flex Noun
1868 status collapsed
1869
1870 \begin_layout Plain Layout
1871 MIME
1872 \end_layout
1873
1874 \end_inset
1875
1876  type of a format is optional, but if it is specified, it must be unique
1877  across all formats.
1878  It is used to detect files of this format from the file contents.
1879  For some important file formats there is no MIME type officially registered
1880  with the 
1881 \begin_inset CommandInset href
1882 LatexCommand href
1883 name "IANA"
1884 target "http://www.iana.org/assignments/media-types/"
1885 literal "false"
1886
1887 \end_inset
1888
1889 .
1890  Therefore \SpecialChar LyX
1891  uses the extended list of MIME types as specified by 
1892 \begin_inset CommandInset href
1893 LatexCommand href
1894 name "freedesktop.org"
1895 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1896 literal "false"
1897
1898 \end_inset
1899
1900 .
1901 \end_layout
1902
1903 \begin_layout Standard
1904 The 
1905 \begin_inset Flex Noun
1906 status collapsed
1907
1908 \begin_layout Plain Layout
1909 Document format
1910 \end_layout
1911
1912 \end_inset
1913
1914  option tells \SpecialChar LyX
1915  that a format is suitable for document export.
1916  If this is set and if a suitable conversion route exists (see 
1917 \begin_inset CommandInset ref
1918 LatexCommand ref
1919 reference "sec:Converters"
1920
1921 \end_inset
1922
1923 ), the format will appear in the 
1924 \begin_inset Flex Noun
1925 status collapsed
1926
1927 \begin_layout Plain Layout
1928 File\SpecialChar menuseparator
1929 Export
1930 \end_layout
1931
1932 \end_inset
1933
1934  menu.
1935  The format will also appear in the 
1936 \begin_inset Flex Noun
1937 status collapsed
1938
1939 \begin_layout Plain Layout
1940 Document\SpecialChar menuseparator
1941 View
1942 \end_layout
1943
1944 \end_inset
1945
1946  menu if a viewer is specified for the format.
1947  Pure image formats, such as 
1948 \begin_inset Flex Code
1949 status collapsed
1950
1951 \begin_layout Plain Layout
1952 png
1953 \end_layout
1954
1955 \end_inset
1956
1957 , should not use this option.
1958  Formats that can both represent vector graphics and documents like 
1959 \begin_inset Flex Code
1960 status collapsed
1961
1962 \begin_layout Plain Layout
1963 pdf
1964 \end_layout
1965
1966 \end_inset
1967
1968  should use it.
1969 \end_layout
1970
1971 \begin_layout Standard
1972 The option 
1973 \begin_inset Flex Noun
1974 status collapsed
1975
1976 \begin_layout Plain Layout
1977 Vector graphics format
1978 \end_layout
1979
1980 \end_inset
1981
1982  tells \SpecialChar LyX
1983  that a format can contain vector graphics.
1984  This information is used to determine the target format of included graphics
1985  for 
1986 \begin_inset Flex Noun
1987 status collapsed
1988
1989 \begin_layout Plain Layout
1990 pdflatex
1991 \end_layout
1992
1993 \end_inset
1994
1995  export.
1996  Included graphics may need to be converted to either 
1997 \begin_inset Flex Noun
1998 status collapsed
1999
2000 \begin_layout Plain Layout
2001 pdf
2002 \end_layout
2003
2004 \end_inset
2005
2006
2007 \begin_inset Flex Noun
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011 png
2012 \end_layout
2013
2014 \end_inset
2015
2016 , or 
2017 \begin_inset Flex Noun
2018 status collapsed
2019
2020 \begin_layout Plain Layout
2021 jpg
2022 \end_layout
2023
2024 \end_inset
2025
2026 , since 
2027 \begin_inset Flex Noun
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031 pdflatex
2032 \end_layout
2033
2034 \end_inset
2035
2036  cannot handle other image formats.
2037  If an included graphic is not already in 
2038 \begin_inset Flex Noun
2039 status collapsed
2040
2041 \begin_layout Plain Layout
2042 pdf
2043 \end_layout
2044
2045 \end_inset
2046
2047
2048 \begin_inset Flex Noun
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052 png
2053 \end_layout
2054
2055 \end_inset
2056
2057 , or 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 jpg
2063 \end_layout
2064
2065 \end_inset
2066
2067  format, it is converted to 
2068 \begin_inset Flex Noun
2069 status collapsed
2070
2071 \begin_layout Plain Layout
2072 pdf
2073 \end_layout
2074
2075 \end_inset
2076
2077  if the vector format option is set, and otherwise to 
2078 \begin_inset Flex Noun
2079 status collapsed
2080
2081 \begin_layout Plain Layout
2082 png
2083 \end_layout
2084
2085 \end_inset
2086
2087 .
2088 \end_layout
2089
2090 \begin_layout Section
2091 Copiers
2092 \end_layout
2093
2094 \begin_layout Standard
2095 Since all conversions from one format to another take place in \SpecialChar LyX
2096 's temporary
2097  directory, it is sometimes necessary to modify a file before copying it
2098  to the temporary directory in order that the conversion may be performed.
2099 \begin_inset Foot
2100 status collapsed
2101
2102 \begin_layout Plain Layout
2103 For example, the file may refer to other files—images, for example—using
2104  relative file names, and these may become invalid when the file is copied
2105  to the temporary directory.
2106 \end_layout
2107
2108 \end_inset
2109
2110  This is done by a Copier: It copies a file to (or from) the temporary directory
2111  and may modify it in the process.
2112 \end_layout
2113
2114 \begin_layout Standard
2115 The definitions of the copiers may use eight variables:
2116 \end_layout
2117
2118 \begin_layout Labeling
2119 \labelwidthstring 00.00.0000
2120 \begin_inset Flex Code
2121 status collapsed
2122
2123 \begin_layout Plain Layout
2124 $$s
2125 \end_layout
2126
2127 \end_inset
2128
2129  The \SpecialChar LyX
2130  system directory (e.
2131 \begin_inset space \thinspace{}
2132 \end_inset
2133
2134 g.
2135 \begin_inset space \space{}
2136 \end_inset
2137
2138
2139 \begin_inset Flex Noun
2140 status collapsed
2141
2142 \begin_layout Plain Layout
2143 /usr/share/lyx
2144 \end_layout
2145
2146 \end_inset
2147
2148 ).
2149 \end_layout
2150
2151 \begin_layout Labeling
2152 \labelwidthstring 00.00.0000
2153 \begin_inset Flex Code
2154 status collapsed
2155
2156 \begin_layout Plain Layout
2157 $$i
2158 \end_layout
2159
2160 \end_inset
2161
2162  The input file
2163 \end_layout
2164
2165 \begin_layout Labeling
2166 \labelwidthstring 00.00.0000
2167 \begin_inset Flex Code
2168 status collapsed
2169
2170 \begin_layout Plain Layout
2171 $$o
2172 \end_layout
2173
2174 \end_inset
2175
2176  The output file
2177 \end_layout
2178
2179 \begin_layout Labeling
2180 \labelwidthstring 00.00.0000
2181 \begin_inset Flex Code
2182 status collapsed
2183
2184 \begin_layout Plain Layout
2185 $$b
2186 \end_layout
2187
2188 \end_inset
2189
2190  The base name (without filename extension) in the \SpecialChar LyX
2191  temporary directory
2192 \end_layout
2193
2194 \begin_layout Labeling
2195 \labelwidthstring 00.00.0000
2196 \begin_inset Flex Code
2197 status collapsed
2198
2199 \begin_layout Plain Layout
2200 $$p
2201 \end_layout
2202
2203 \end_inset
2204
2205  The full directory path of the \SpecialChar LyX
2206  temporary directory
2207 \end_layout
2208
2209 \begin_layout Labeling
2210 \labelwidthstring 00.00.0000
2211 \begin_inset Flex Code
2212 status collapsed
2213
2214 \begin_layout Plain Layout
2215 $$r
2216 \end_layout
2217
2218 \end_inset
2219
2220  The full pathname to the original \SpecialChar LyX
2221  file being processed
2222 \end_layout
2223
2224 \begin_layout Labeling
2225 \labelwidthstring 00.00.0000
2226 \begin_inset Flex Code
2227 status collapsed
2228
2229 \begin_layout Plain Layout
2230 $$f
2231 \end_layout
2232
2233 \end_inset
2234
2235  The filename (without any directory path) of the \SpecialChar LyX
2236  file.
2237 \end_layout
2238
2239 \begin_layout Labeling
2240 \labelwidthstring 00.00.0000
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 $$l
2246 \end_layout
2247
2248 \end_inset
2249
2250  The `\SpecialChar LaTeX
2251  name'
2252 \end_layout
2253
2254 \begin_layout Standard
2255 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2256 's 
2257 \series bold
2258
2259 \backslash
2260 include
2261 \series default
2262  command.
2263  It is relevant only when exporting files suitable for such inclusion.
2264 \end_layout
2265
2266 \begin_layout Standard
2267 Copiers can be used to do almost anything with output files.
2268  For example, suppose you want generated pdf files to be copied to a special
2269  directory, 
2270 \begin_inset Flex Code
2271 status collapsed
2272
2273 \begin_layout Plain Layout
2274 /home/you/pdf/
2275 \end_layout
2276
2277 \end_inset
2278
2279 .
2280  Then you could write a shell script such as this one:
2281 \end_layout
2282
2283 \begin_layout Standard
2284 \begin_inset listings
2285 inline false
2286 status open
2287
2288 \begin_layout Plain Layout
2289
2290 #!/bin/bash
2291 \end_layout
2292
2293 \begin_layout Plain Layout
2294
2295 FROMFILE=$1
2296 \end_layout
2297
2298 \begin_layout Plain Layout
2299
2300 TOFILE=`basename $2`
2301 \end_layout
2302
2303 \begin_layout Plain Layout
2304
2305 cp $FROMFILE /home/you/pdf/$TOFILE
2306 \end_layout
2307
2308 \end_inset
2309
2310 Save it in your local \SpecialChar LyX
2311  directory—say, 
2312 \begin_inset Flex Code
2313 status collapsed
2314
2315 \begin_layout Plain Layout
2316 /home/you/.lyx/scripts/pdfcopier.sh
2317 \end_layout
2318
2319 \end_inset
2320
2321 —and make it executable, if you need to do so on your platform.
2322  Then, in the 
2323 \begin_inset Flex Noun
2324 status collapsed
2325
2326 \begin_layout Plain Layout
2327 Tools\SpecialChar menuseparator
2328 Preferences
2329 \end_layout
2330
2331 \end_inset
2332
2333  dialog, select under 
2334 \begin_inset Flex Noun
2335 status collapsed
2336
2337 \begin_layout Plain Layout
2338 File Handling\SpecialChar menuseparator
2339 File formats
2340 \end_layout
2341
2342 \end_inset
2343
2344  the 
2345 \begin_inset Flex Noun
2346 status collapsed
2347
2348 \begin_layout Plain Layout
2349 PDF(pdflatex)
2350 \end_layout
2351
2352 \end_inset
2353
2354  format—or one of the other pdf formats—and enter 
2355 \begin_inset Flex Code
2356 status collapsed
2357
2358 \begin_layout Plain Layout
2359 pdfcopier.sh $$i $$o
2360 \end_layout
2361
2362 \end_inset
2363
2364  into the 
2365 \begin_inset Flex Noun
2366 status collapsed
2367
2368 \begin_layout Plain Layout
2369 Copier
2370 \end_layout
2371
2372 \end_inset
2373
2374  field.
2375  
2376 \end_layout
2377
2378 \begin_layout Standard
2379 Copiers are used by \SpecialChar LyX
2380  in various of its own conversions.
2381  For example, if appropriate programs are found, \SpecialChar LyX
2382  will automatically install
2383  copiers for the 
2384 \begin_inset Flex Noun
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388 HTML
2389 \end_layout
2390
2391 \end_inset
2392
2393  and 
2394 \begin_inset Flex Noun
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398 HTML
2399 \begin_inset space ~
2400 \end_inset
2401
2402 (MS Word)
2403 \end_layout
2404
2405 \end_inset
2406
2407  formats.
2408  When these formats are exported, the copier sees that not just the main
2409  HTML file but various associated files (style files, images, etc.) are also
2410  copied.
2411  All these files are written to a subdirectory of the directory in which
2412  the original \SpecialChar LyX
2413  file was found.
2414 \begin_inset Foot
2415 status collapsed
2416
2417 \begin_layout Plain Layout
2418 This copier can be customized.
2419  The optional 
2420 \begin_inset Quotes eld
2421 \end_inset
2422
2423 -e
2424 \begin_inset Quotes erd
2425 \end_inset
2426
2427  argument takes a comma-separated list of extensions to be copied; if it
2428  is omitted, all files will be copied.
2429  The 
2430 \begin_inset Quotes eld
2431 \end_inset
2432
2433 -t
2434 \begin_inset Quotes erd
2435 \end_inset
2436
2437  argument determines the extension added to the generated directory.
2438  By default, it is 
2439 \begin_inset Quotes eld
2440 \end_inset
2441
2442
2443 \begin_inset Flex Noun
2444 status collapsed
2445
2446 \begin_layout Plain Layout
2447 LyXconv
2448 \end_layout
2449
2450 \end_inset
2451
2452
2453 \begin_inset Quotes erd
2454 \end_inset
2455
2456 , so HTML generated from 
2457 \begin_inset Flex Noun
2458 status collapsed
2459
2460 \begin_layout Plain Layout
2461 /path/to/filename.lyx
2462 \end_layout
2463
2464 \end_inset
2465
2466  will end up in 
2467 \begin_inset Flex Noun
2468 status collapsed
2469
2470 \begin_layout Plain Layout
2471 /path/to/filename.html.LyXconv
2472 \end_layout
2473
2474 \end_inset
2475
2476 .
2477  
2478 \end_layout
2479
2480 \end_inset
2481
2482
2483 \end_layout
2484
2485 \begin_layout Section
2486 Converters
2487 \begin_inset CommandInset label
2488 LatexCommand label
2489 name "sec:Converters"
2490
2491 \end_inset
2492
2493
2494 \end_layout
2495
2496 \begin_layout Standard
2497 You can define your own Converters to convert files between different formats.
2498  This is done in the 
2499 \begin_inset Flex Noun
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 Tools\SpecialChar menuseparator
2504 Preferences\SpecialChar menuseparator
2505 File Handling\SpecialChar menuseparator
2506 Converters
2507 \end_layout
2508
2509 \end_inset
2510
2511  dialog.
2512 \end_layout
2513
2514 \begin_layout Standard
2515 To define a new converter, select the 
2516 \begin_inset Flex Noun
2517 status collapsed
2518
2519 \begin_layout Plain Layout
2520 From
2521 \begin_inset space ~
2522 \end_inset
2523
2524 format
2525 \end_layout
2526
2527 \end_inset
2528
2529  and 
2530 \begin_inset Flex Noun
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 To
2535 \begin_inset space ~
2536 \end_inset
2537
2538 format
2539 \end_layout
2540
2541 \end_inset
2542
2543  from the drop-down lists, enter the command needed for the conversion,
2544  and then press the 
2545 \begin_inset Flex Noun
2546 status collapsed
2547
2548 \begin_layout Plain Layout
2549 Add
2550 \end_layout
2551
2552 \end_inset
2553
2554  button.
2555  Several variables can be used in the definition of converters:
2556 \end_layout
2557
2558 \begin_layout Labeling
2559 \labelwidthstring 00.00.0000
2560 \begin_inset Flex Code
2561 status collapsed
2562
2563 \begin_layout Plain Layout
2564 $$s
2565 \end_layout
2566
2567 \end_inset
2568
2569  The \SpecialChar LyX
2570  system directory
2571 \end_layout
2572
2573 \begin_layout Labeling
2574 \labelwidthstring 00.00.0000
2575 \begin_inset Flex Code
2576 status collapsed
2577
2578 \begin_layout Plain Layout
2579 $$i
2580 \end_layout
2581
2582 \end_inset
2583
2584  The input file
2585 \end_layout
2586
2587 \begin_layout Labeling
2588 \labelwidthstring 00.00.0000
2589 \begin_inset Flex Code
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 $$o
2594 \end_layout
2595
2596 \end_inset
2597
2598  The output file
2599 \end_layout
2600
2601 \begin_layout Labeling
2602 \labelwidthstring 00.00.0000
2603 \begin_inset Flex Code
2604 status collapsed
2605
2606 \begin_layout Plain Layout
2607 $$b
2608 \end_layout
2609
2610 \end_inset
2611
2612  The base filename of the input file (i.
2613 \begin_inset space \thinspace{}
2614 \end_inset
2615
2616 g., without the extension)
2617 \end_layout
2618
2619 \begin_layout Labeling
2620 \labelwidthstring 00.00.0000
2621 \begin_inset Flex Code
2622 status collapsed
2623
2624 \begin_layout Plain Layout
2625 $$p
2626 \end_layout
2627
2628 \end_inset
2629
2630  The path to the input file
2631 \end_layout
2632
2633 \begin_layout Labeling
2634 \labelwidthstring 00.00.0000
2635 \begin_inset Flex Code
2636 status collapsed
2637
2638 \begin_layout Plain Layout
2639 $$r
2640 \end_layout
2641
2642 \end_inset
2643
2644  The path to the original input file (this is different from $$p when a
2645  chain of converters is called)
2646 \end_layout
2647
2648 \begin_layout Labeling
2649 \labelwidthstring 00.00.0000
2650 \begin_inset Flex Code
2651 status collapsed
2652
2653 \begin_layout Plain Layout
2654 $$e
2655 \end_layout
2656
2657 \end_inset
2658
2659  The iconv name for the encoding of the document.
2660 \end_layout
2661
2662 \begin_layout Standard
2663 In the 
2664 \begin_inset Flex Noun
2665 status collapsed
2666
2667 \begin_layout Plain Layout
2668 Extra
2669 \begin_inset space ~
2670 \end_inset
2671
2672 Flag
2673 \end_layout
2674
2675 \end_inset
2676
2677  field you can enter the following flags, separated by commas:
2678 \end_layout
2679
2680 \begin_layout Labeling
2681 \labelwidthstring 00.00.0000
2682 \begin_inset Flex Code
2683 status collapsed
2684
2685 \begin_layout Plain Layout
2686 latex
2687 \change_inserted -712698321 1524656940
2688 =flavor
2689 \change_unchanged
2690
2691 \end_layout
2692
2693 \end_inset
2694
2695  This converter runs some form of \SpecialChar LaTeX
2696 .
2697  This will make \SpecialChar LyX
2698 's \SpecialChar LaTeX
2699  error logs available.
2700
2701 \change_inserted -712698321 1524657018
2702  The optional 
2703 \begin_inset Flex Code
2704 status open
2705
2706 \begin_layout Plain Layout
2707
2708 \change_inserted -712698321 1524657012
2709 flavor
2710 \change_unchanged
2711
2712 \end_layout
2713
2714 \end_inset
2715
2716  value specifies the form of \SpecialChar LaTeX
2717  that is run (
2718 \begin_inset Flex Code
2719 status open
2720
2721 \begin_layout Plain Layout
2722
2723 \change_inserted -712698321 1524657005
2724 latex, pdflatex, platex, xetex, luatex
2725 \change_unchanged
2726
2727 \end_layout
2728
2729 \end_inset
2730
2731 ).
2732  If no value is specified, 
2733 \begin_inset Flex Code
2734 status open
2735
2736 \begin_layout Plain Layout
2737
2738 \change_inserted -712698321 1524657018
2739 latex
2740 \change_unchanged
2741
2742 \end_layout
2743
2744 \end_inset
2745
2746  is used.
2747 \change_unchanged
2748
2749 \end_layout
2750
2751 \begin_layout Labeling
2752 \labelwidthstring 00.00.0000
2753 \begin_inset Flex Code
2754 status collapsed
2755
2756 \begin_layout Plain Layout
2757 needaux
2758 \change_inserted -712698321 1524656935
2759 =flavor
2760 \change_unchanged
2761
2762 \end_layout
2763
2764 \end_inset
2765
2766  Needs the \SpecialChar LaTeX
2767  
2768 \begin_inset Flex Noun
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 .aux
2773 \end_layout
2774
2775 \end_inset
2776
2777  file for the conversion.
2778
2779 \change_inserted -712698321 1524657047
2780  The optional 
2781 \begin_inset Flex Code
2782 status open
2783
2784 \begin_layout Plain Layout
2785
2786 \change_inserted -712698321 1524657030
2787 flavor
2788 \change_unchanged
2789
2790 \end_layout
2791
2792 \end_inset
2793
2794  value specifies the form of \SpecialChar LaTeX
2795  that is run in order to generate the 
2796 \begin_inset Flex Noun
2797 status collapsed
2798
2799 \begin_layout Plain Layout
2800
2801 \change_inserted -712698321 1524657047
2802 .aux
2803 \change_unchanged
2804
2805 \end_layout
2806
2807 \end_inset
2808
2809  file (
2810 \begin_inset Flex Code
2811 status open
2812
2813 \begin_layout Plain Layout
2814
2815 \change_inserted -712698321 1524657030
2816 latex, pdflatex, platex, xetex, luatex
2817 \change_unchanged
2818
2819 \end_layout
2820
2821 \end_inset
2822
2823 ).
2824  If no value is specified, 
2825 \begin_inset Flex Code
2826 status open
2827
2828 \begin_layout Plain Layout
2829
2830 \change_inserted -712698321 1524657030
2831 latex
2832 \change_unchanged
2833
2834 \end_layout
2835
2836 \end_inset
2837
2838  is used.
2839 \change_unchanged
2840
2841 \end_layout
2842
2843 \begin_layout Labeling
2844 \labelwidthstring 00.00.0000
2845 \begin_inset Flex Code
2846 status collapsed
2847
2848 \begin_layout Plain Layout
2849 nice
2850 \end_layout
2851
2852 \end_inset
2853
2854  Needs a 
2855 \begin_inset Quotes eld
2856 \end_inset
2857
2858 nice
2859 \begin_inset Quotes erd
2860 \end_inset
2861
2862  file from the backend, which in practice means a \SpecialChar LaTeX
2863  file like the one we
2864  would export, without 
2865 \begin_inset Flex Code
2866 status collapsed
2867
2868 \begin_layout Plain Layout
2869 input@path
2870 \end_layout
2871
2872 \end_inset
2873
2874 .
2875 \end_layout
2876
2877 \begin_layout Labeling
2878 \labelwidthstring 00.00.0000
2879 \begin_inset Flex Code
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883 xml
2884 \end_layout
2885
2886 \end_inset
2887
2888  Output is XML.
2889 \end_layout
2890
2891 \begin_layout Standard
2892 The following three flags are not really flags at all because they take
2893  an argument in the 
2894 \begin_inset Flex Noun
2895 status collapsed
2896
2897 \begin_layout Plain Layout
2898 key
2899 \begin_inset space ~
2900 \end_inset
2901
2902 =
2903 \begin_inset space ~
2904 \end_inset
2905
2906 value
2907 \end_layout
2908
2909 \end_inset
2910
2911  format:
2912 \end_layout
2913
2914 \begin_layout Labeling
2915 \labelwidthstring 00.00.0000
2916
2917 \change_inserted -712698321 1523206314
2918 \begin_inset Flex Code
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922
2923 \change_inserted -712698321 1523206193
2924 hyperref-driver
2925 \change_unchanged
2926
2927 \end_layout
2928
2929 \end_inset
2930
2931  The name of the driver that needs to be loaded with the 
2932 \family sans
2933 hyperref
2934 \family default
2935  package for this converter.
2936  The loading of the correct driver is necessary to get some PDF-specific
2937  features.
2938  See the 
2939 \family sans
2940 hyperref
2941 \family default
2942  manual for details.
2943 \end_layout
2944
2945 \begin_layout Labeling
2946 \labelwidthstring 00.00.0000
2947 \begin_inset Flex Code
2948 status collapsed
2949
2950 \begin_layout Plain Layout
2951 parselog
2952 \end_layout
2953
2954 \end_inset
2955
2956  If set, the converter's standard error will be redirected to a file 
2957 \begin_inset Flex Code
2958 status collapsed
2959
2960 \begin_layout Plain Layout
2961 infile.out
2962 \end_layout
2963
2964 \end_inset
2965
2966 , and the script given as argument will be run as: 
2967 \begin_inset Flex Code
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 script < infile.out > infile.log
2972 \end_layout
2973
2974 \end_inset
2975
2976 .
2977  The argument may contain 
2978 \begin_inset Flex Code
2979 status collapsed
2980
2981 \begin_layout Plain Layout
2982 $$s
2983 \end_layout
2984
2985 \end_inset
2986
2987 .
2988 \end_layout
2989
2990 \begin_layout Labeling
2991 \labelwidthstring 00.00.0000
2992 \begin_inset Flex Code
2993 status collapsed
2994
2995 \begin_layout Plain Layout
2996 resultdir
2997 \end_layout
2998
2999 \end_inset
3000
3001  The name of the directory in which the converter will dump the generated
3002  files.
3003  \SpecialChar LyX
3004  will not create this directory, and it does not copy anything into it,
3005  though it will copy this directory to the destination.
3006  The argument may contain 
3007 \begin_inset Flex Code
3008 status collapsed
3009
3010 \begin_layout Plain Layout
3011 $$b
3012 \end_layout
3013
3014 \end_inset
3015
3016 , which will be replaced by the base name of the input and output files,
3017  respectively, when the directory is copied.
3018 \begin_inset Newline newline
3019 \end_inset
3020
3021 Note that resultdir and usetempdir make no sense together.
3022  The latter will be ignored if the former is given.
3023 \end_layout
3024
3025 \begin_layout Labeling
3026 \labelwidthstring 00.00.0000
3027 \begin_inset Flex Code
3028 status collapsed
3029
3030 \begin_layout Plain Layout
3031 resultfile
3032 \end_layout
3033
3034 \end_inset
3035
3036  Determines the output file name and may, contain 
3037 \begin_inset Flex Code
3038 status collapsed
3039
3040 \begin_layout Plain Layout
3041 $$b
3042 \end_layout
3043
3044 \end_inset
3045
3046 .
3047  Sensible only with resultdir and optional even then; if not given, it defaults
3048  to `index'.
3049 \end_layout
3050
3051 \begin_layout Standard
3052
3053 \change_inserted -712698321 1523206384
3054 A suitable hyperref-driver is set for some converters that are installed
3055  with \SpecialChar LyX
3056 .
3057  
3058 \change_deleted -712698321 1523206388
3059 None of these
3060 \change_inserted -712698321 1523206389
3061 The
3062 \change_unchanged
3063  last three
3064 \change_inserted -712698321 1523206400
3065  flags, however,
3066 \change_unchanged
3067  are presently 
3068 \change_inserted -712698321 1523206407
3069 not 
3070 \change_unchanged
3071 used in any of the 
3072 \change_inserted -712698321 1523206437
3073 pre-installed 
3074 \change_unchanged
3075 converters
3076 \change_deleted -712698321 1523206442
3077  that are installed with \SpecialChar LyX
3078
3079 \change_unchanged
3080 .
3081  
3082 \end_layout
3083
3084 \begin_layout Standard
3085 You do not have to define converters for all formats between which you want
3086  to convert.
3087  For example, you will note that there is no `\SpecialChar LyX
3088  to PostScript' converter,
3089  but \SpecialChar LyX
3090  will export PostScript.
3091  It does so by first creating a \SpecialChar LaTeX
3092  file (no converter needs to be defined
3093  for this) which is then converted to DVI using the `\SpecialChar LaTeX
3094  to DVI' converter,
3095  and finally converting the resulting DVI file to PostScript.
3096  \SpecialChar LyX
3097  finds such `chains' of converters automatically, and it will always choose
3098  the shortest possible chain.
3099  You can, though, still define multiple conversion methods between file
3100  formats.
3101  For example, the standard \SpecialChar LyX
3102  configuration provides five ways to convert
3103  \SpecialChar LaTeX
3104  to PDF:
3105 \end_layout
3106
3107 \begin_layout Enumerate
3108 Directly, using 
3109 \begin_inset Flex Noun
3110 status collapsed
3111
3112 \begin_layout Plain Layout
3113 pdflatex
3114 \end_layout
3115
3116 \end_inset
3117
3118
3119 \end_layout
3120
3121 \begin_layout Enumerate
3122 via (DVI and) PostScript, using 
3123 \begin_inset Flex Noun
3124 status collapsed
3125
3126 \begin_layout Plain Layout
3127 ps2pdf
3128 \end_layout
3129
3130 \end_inset
3131
3132
3133 \end_layout
3134
3135 \begin_layout Enumerate
3136 via DVI, using 
3137 \begin_inset Flex Noun
3138 status collapsed
3139
3140 \begin_layout Plain Layout
3141 dvipdfm
3142 \end_layout
3143
3144 \end_inset
3145
3146
3147 \end_layout
3148
3149 \begin_layout Enumerate
3150 directly using 
3151 \begin_inset Flex Noun
3152 status collapsed
3153
3154 \begin_layout Plain Layout
3155 Xe\SpecialChar TeX
3156
3157 \end_layout
3158
3159 \end_inset
3160
3161
3162 \end_layout
3163
3164 \begin_layout Enumerate
3165 directly using 
3166 \begin_inset Flex Noun
3167 status collapsed
3168
3169 \begin_layout Plain Layout
3170 Lua\SpecialChar TeX
3171
3172 \end_layout
3173
3174 \end_inset
3175
3176
3177 \end_layout
3178
3179 \begin_layout Standard
3180 To define such alternate chains, you must define multiple target `file formats',
3181  as described in 
3182 \begin_inset CommandInset ref
3183 LatexCommand ref
3184 reference "sec:Formats"
3185
3186 \end_inset
3187
3188 .
3189  For example, in the standard configuration, the formats named 
3190 \begin_inset Flex Noun
3191 status collapsed
3192
3193 \begin_layout Plain Layout
3194 pdf
3195 \end_layout
3196
3197 \end_inset
3198
3199  (for 
3200 \begin_inset Flex Noun
3201 status collapsed
3202
3203 \begin_layout Plain Layout
3204 ps2pdf
3205 \end_layout
3206
3207 \end_inset
3208
3209 ), 
3210 \begin_inset Flex Noun
3211 status collapsed
3212
3213 \begin_layout Plain Layout
3214 pdf2
3215 \end_layout
3216
3217 \end_inset
3218
3219  (for 
3220 \begin_inset Flex Noun
3221 status collapsed
3222
3223 \begin_layout Plain Layout
3224 pdflatex
3225 \end_layout
3226
3227 \end_inset
3228
3229 ), 
3230 \begin_inset Flex Noun
3231 status collapsed
3232
3233 \begin_layout Plain Layout
3234 pdf3
3235 \end_layout
3236
3237 \end_inset
3238
3239  (for 
3240 \begin_inset Flex Noun
3241 status collapsed
3242
3243 \begin_layout Plain Layout
3244 dvipdfm
3245 \end_layout
3246
3247 \end_inset
3248
3249 ), 
3250 \begin_inset Flex Noun
3251 status collapsed
3252
3253 \begin_layout Plain Layout
3254 pdf4
3255 \end_layout
3256
3257 \end_inset
3258
3259  (for 
3260 \begin_inset Flex Noun
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264 Xe\SpecialChar TeX
3265
3266 \end_layout
3267
3268 \end_inset
3269
3270 ), and 
3271 \begin_inset Flex Noun
3272 status collapsed
3273
3274 \begin_layout Plain Layout
3275 pdf5
3276 \end_layout
3277
3278 \end_inset
3279
3280  (for 
3281 \begin_inset Flex Noun
3282 status collapsed
3283
3284 \begin_layout Plain Layout
3285 Lua\SpecialChar TeX
3286
3287 \end_layout
3288
3289 \end_inset
3290
3291 ) are defined, all of which share the extension 
3292 \begin_inset Flex Noun
3293 status collapsed
3294
3295 \begin_layout Plain Layout
3296 .pdf
3297 \end_layout
3298
3299 \end_inset
3300
3301 , and which correspond to the conversion methods just mentioned.
3302 \end_layout
3303
3304 \begin_layout Chapter
3305 Internationalizing \SpecialChar LyX
3306
3307 \begin_inset CommandInset label
3308 LatexCommand label
3309 name "cha:Internationalizing-LyX"
3310
3311 \end_inset
3312
3313
3314 \end_layout
3315
3316 \begin_layout Standard
3317 \SpecialChar LyX
3318  supports using a translated interface.
3319  Last time we checked, \SpecialChar LyX
3320  provided text in thirty languages.
3321  The language of choice is called your 
3322 \emph on
3323 locale
3324 \emph default
3325 .
3326  (For further reading on locale settings, see also the documentation for
3327  locale that comes with your operating system.
3328  For Linux, the manual page for 
3329 \begin_inset Flex Code
3330 status collapsed
3331
3332 \begin_layout Plain Layout
3333 locale(5)
3334 \end_layout
3335
3336 \end_inset
3337
3338  could be a good place to start).
3339 \end_layout
3340
3341 \begin_layout Standard
3342 Notice that these translations will work, but do contain a few flaws.
3343  In particular, all dialogs have been designed with the English text in
3344  mind, which means that some of the translated text will be too large to
3345  fit within the space allocated.
3346  This is only a display problem and will not cause any harm.
3347  Also, you will find that some of the translations do not define shortcut
3348  keys for everything.
3349  Sometimes, there are simply not enough free letters to do it.
3350  Other times, the translator just hasn't got around to doing it yet.
3351  Our localization team, which you may wish to join,
3352 \begin_inset Foot
3353 status collapsed
3354
3355 \begin_layout Plain Layout
3356 If you are a fluent speaker of a language other than English, joining these
3357  teams is a great way to give back to the \SpecialChar LyX
3358  community!
3359 \end_layout
3360
3361 \end_inset
3362
3363  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3364 .
3365 \end_layout
3366
3367 \begin_layout Section
3368 Translating \SpecialChar LyX
3369
3370 \end_layout
3371
3372 \begin_layout Subsection
3373 Translating the graphical user interface (text messages).
3374 \end_layout
3375
3376 \begin_layout Standard
3377 \SpecialChar LyX
3378  uses the GNU 
3379 \begin_inset Flex Code
3380 status collapsed
3381
3382 \begin_layout Plain Layout
3383 gettext
3384 \end_layout
3385
3386 \end_inset
3387
3388  library to handle the internationalization of the interface.
3389  To have \SpecialChar LyX
3390  speak your favorite language in all menus and dialogs, you need
3391  a 
3392 \begin_inset Flex Code
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396 po
3397 \end_layout
3398
3399 \end_inset
3400
3401 -file for that language.
3402  When this is available, you'll have to generate a 
3403 \begin_inset Flex Code
3404 status collapsed
3405
3406 \begin_layout Plain Layout
3407 mo
3408 \end_layout
3409
3410 \end_inset
3411
3412 -file from it and install the 
3413 \begin_inset Flex Code
3414 status collapsed
3415
3416 \begin_layout Plain Layout
3417 mo
3418 \end_layout
3419
3420 \end_inset
3421
3422 -file.
3423  The process of doing all of this is explained in the documentation for
3424  GNU 
3425 \begin_inset Flex Code
3426 status collapsed
3427
3428 \begin_layout Plain Layout
3429 gettext
3430 \end_layout
3431
3432 \end_inset
3433
3434 .
3435  It is possible to do this just for yourself, but if you're going to do
3436  it, you might as well share the results of your labors with the rest of
3437  the \SpecialChar LyX
3438  community.
3439  Send a message to the \SpecialChar LyX
3440  developers' list for more information about how
3441  to proceed.
3442 \end_layout
3443
3444 \begin_layout Standard
3445 In short, this is what you should do (xx denotes the language code):
3446 \end_layout
3447
3448 \begin_layout Itemize
3449 Check out the \SpecialChar LyX
3450  source code.
3451  (See the 
3452 \begin_inset CommandInset href
3453 LatexCommand href
3454 name "information on the web"
3455 target "https://www.lyx.org/HowToUseGIT"
3456 literal "false"
3457
3458 \end_inset
3459
3460 .)
3461 \end_layout
3462
3463 \begin_layout Itemize
3464 Copy the file 
3465 \begin_inset Flex Code
3466 status collapsed
3467
3468 \begin_layout Plain Layout
3469 lyx.pot
3470 \end_layout
3471
3472 \end_inset
3473
3474  to the folder of the 
3475 \begin_inset Flex Code
3476 status collapsed
3477
3478 \begin_layout Plain Layout
3479 **.po
3480 \end_layout
3481
3482 \end_inset
3483
3484  files.
3485  Then rename it to 
3486 \begin_inset Flex Code
3487 status collapsed
3488
3489 \begin_layout Plain Layout
3490 xx.po
3491 \end_layout
3492
3493 \end_inset
3494
3495 .
3496  (If 
3497 \begin_inset Flex Code
3498 status collapsed
3499
3500 \begin_layout Plain Layout
3501 lyx.pot
3502 \end_layout
3503
3504 \end_inset
3505
3506  doesn't exist anywhere, it can be remade with the console command 
3507 \begin_inset Flex Code
3508 status collapsed
3509
3510 \begin_layout Plain Layout
3511 make lyx.pot
3512 \end_layout
3513
3514 \end_inset
3515
3516  in that directory, or you can use an existing po-file for some other language
3517  as a template).
3518 \end_layout
3519
3520 \begin_layout Itemize
3521 Edit 
3522 \begin_inset Flex Code
3523 status collapsed
3524
3525 \begin_layout Plain Layout
3526 xx.po
3527 \end_layout
3528
3529 \end_inset
3530
3531 .
3532 \begin_inset Foot
3533 status collapsed
3534
3535 \begin_layout Plain Layout
3536 This is just a text file, so it can be edited in any text editor.
3537  But there are also specialized programs that support such editing, such
3538  as 
3539 \family typewriter
3540 Poedit
3541 \family default
3542  (for all platforms) or 
3543 \family typewriter
3544 KBabel
3545 \family default
3546  (for KDE).
3547  
3548 \family typewriter
3549 Emacs
3550 \family default
3551  contains a `mode' for editing 
3552 \begin_inset Flex Code
3553 status collapsed
3554
3555 \begin_layout Plain Layout
3556 po
3557 \end_layout
3558
3559 \end_inset
3560
3561  files, as well, see 
3562 \begin_inset Flex URL
3563 status open
3564
3565 \begin_layout Plain Layout
3566
3567 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3568 \end_layout
3569
3570 \end_inset
3571
3572 .
3573 \end_layout
3574
3575 \end_inset
3576
3577  For some menu- and widget-labels, there are also shortcut keys that should
3578  be translated.
3579  Those keys are marked after a `|', and should be translated according to
3580  the words and phrases of the language.
3581  You should also fill also out the information at the beginning of the new
3582  
3583 \begin_inset Flex Code
3584 status collapsed
3585
3586 \begin_layout Plain Layout
3587 po
3588 \end_layout
3589
3590 \end_inset
3591
3592 -file with your email-address, etc., so people know where to reach you with
3593  suggestions and entertaining flames.
3594 \end_layout
3595
3596 \begin_layout Standard
3597 If you are just doing this on your own, then:
3598 \end_layout
3599
3600 \begin_layout Itemize
3601 Generate 
3602 \begin_inset Flex Code
3603 status collapsed
3604
3605 \begin_layout Plain Layout
3606 xx.mo
3607 \end_layout
3608
3609 \end_inset
3610
3611 .
3612  This can be done with 
3613 \begin_inset Flex Code
3614 status collapsed
3615
3616 \begin_layout Plain Layout
3617 msgfmt -o xx.mo < xx.po
3618 \end_layout
3619
3620 \end_inset
3621
3622 .
3623 \end_layout
3624
3625 \begin_layout Itemize
3626 Copy the 
3627 \begin_inset Flex Code
3628 status collapsed
3629
3630 \begin_layout Plain Layout
3631 mo
3632 \end_layout
3633
3634 \end_inset
3635
3636 -file to your locale-tree, at the correct directory for application messages
3637  for the language
3638 \series bold
3639  
3640 \series default
3641 xx, and under the name 
3642 \begin_inset Flex Code
3643 status collapsed
3644
3645 \begin_layout Plain Layout
3646 lyx.mo
3647 \end_layout
3648
3649 \end_inset
3650
3651  (e.
3652 \begin_inset space \thinspace{}
3653 \end_inset
3654
3655 g.
3656 \begin_inset space \space{}
3657 \end_inset
3658
3659
3660 \begin_inset Flex Code
3661 status collapsed
3662
3663 \begin_layout Plain Layout
3664 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3665 \end_layout
3666
3667 \end_inset
3668
3669
3670 \series bold
3671 .
3672 \end_layout
3673
3674 \begin_layout Standard
3675 As said, however, it would be best if the new 
3676 \begin_inset Flex Code
3677 status collapsed
3678
3679 \begin_layout Plain Layout
3680 po
3681 \end_layout
3682
3683 \end_inset
3684
3685  file could be added to the \SpecialChar LyX
3686  distribution, so others can use it.
3687  Adding it involves making additional changes to \SpecialChar LyX
3688 .
3689  So send an email to the developers' mailing list if you're interested in
3690  doing that.
3691 \end_layout
3692
3693 \begin_layout Subsubsection
3694 Ambiguous messages
3695 \end_layout
3696
3697 \begin_layout Standard
3698 Sometimes it turns out that one English message needs to be translated into
3699  different messages in the target language.
3700  One example is the message 
3701 \begin_inset Flex Code
3702 status collapsed
3703
3704 \begin_layout Plain Layout
3705 To
3706 \end_layout
3707
3708 \end_inset
3709
3710  which has the German translation 
3711 \lang german
3712 Nach
3713 \lang english
3714  or 
3715 \lang german
3716 Bis
3717 \lang english
3718 , depending upon exactly what the English 
3719 \begin_inset Quotes eld
3720 \end_inset
3721
3722 to
3723 \begin_inset Quotes erd
3724 \end_inset
3725
3726  means.
3727  GNU 
3728 \begin_inset Flex Code
3729 status collapsed
3730
3731 \begin_layout Plain Layout
3732 gettext
3733 \end_layout
3734
3735 \end_inset
3736
3737  does not handle such ambiguous translations.
3738  Therefore you have to add some context information to the message: Instead
3739  of 
3740 \begin_inset Flex Code
3741 status collapsed
3742
3743 \begin_layout Plain Layout
3744 To
3745 \end_layout
3746
3747 \end_inset
3748
3749  it becomes 
3750 \begin_inset Flex Code
3751 status collapsed
3752
3753 \begin_layout Plain Layout
3754 To[[as in 'From format x to format y']]
3755 \end_layout
3756
3757 \end_inset
3758
3759  and 
3760 \begin_inset Flex Code
3761 status collapsed
3762
3763 \begin_layout Plain Layout
3764 To[[as in 'From page x to page y']].
3765 \end_layout
3766
3767 \end_inset
3768
3769  Now the two occurrences of 
3770 \begin_inset Flex Code
3771 status collapsed
3772
3773 \begin_layout Plain Layout
3774 To
3775 \end_layout
3776
3777 \end_inset
3778
3779  are different for 
3780 \begin_inset Flex Code
3781 status collapsed
3782
3783 \begin_layout Plain Layout
3784 gettext
3785 \end_layout
3786
3787 \end_inset
3788
3789  and can be translated correctly to 
3790 \lang german
3791 Nach
3792 \lang english
3793  and 
3794 \lang german
3795 Bis
3796 \lang english
3797 , respectively.
3798 \end_layout
3799
3800 \begin_layout Standard
3801 Of course the context information needs to be stripped off the original
3802  message when no translation is used.
3803  Therefore you have to put it in double square brackets at the end of the
3804  message (see the example above).
3805  The translation mechanism of \SpecialChar LyX
3806  ensures that everything in double square
3807  brackets at the end of messages is removed before displaying the message.
3808 \end_layout
3809
3810 \begin_layout Subsection
3811 Translating the documentation.
3812 \end_layout
3813
3814 \begin_layout Standard
3815 The online documentation (in the 
3816 \begin_inset Flex Noun
3817 status collapsed
3818
3819 \begin_layout Plain Layout
3820 Help
3821 \end_layout
3822
3823 \end_inset
3824
3825 -menu) can (and should!) be translated.
3826  If there are translated versions of the documentation available
3827 \begin_inset Foot
3828 status collapsed
3829
3830 \begin_layout Plain Layout
3831 As of March 2008, at least some of the documents have been translated into
3832  fourteen languages, with the Tutorial available in a few more.
3833 \end_layout
3834
3835 \end_inset
3836
3837  and the locale is set accordingly, these will be used automagically by
3838  \SpecialChar LyX
3839 .
3840  \SpecialChar LyX
3841  looks for translated versions as 
3842 \begin_inset Flex Code
3843 status collapsed
3844
3845 \begin_layout Plain Layout
3846 LyXDir/doc/xx/DocName.lyx
3847 \end_layout
3848
3849 \end_inset
3850
3851 , where 
3852 \begin_inset Flex Code
3853 status collapsed
3854
3855 \begin_layout Plain Layout
3856 xx
3857 \end_layout
3858
3859 \end_inset
3860
3861  is the code for the language currently in use.
3862  If there are no translated documents, the default English versions will
3863  be displayed.
3864  Note that the translated versions must have the same filenames (
3865 \begin_inset Flex Code
3866 status collapsed
3867
3868 \begin_layout Plain Layout
3869 DocName
3870 \end_layout
3871
3872 \end_inset
3873
3874  above) as the original.
3875  If you feel up to translating the documentation (an excellent way to proof-read
3876  the original documentation by the way!), there are a few things you should
3877  do right away:
3878 \end_layout
3879
3880 \begin_layout Itemize
3881 Check out the documentation translation web page at 
3882 \begin_inset CommandInset href
3883 LatexCommand href
3884 name "https://www.lyx.org/Translation"
3885 target "https://www.lyx.org/Translation"
3886 literal "false"
3887
3888 \end_inset
3889
3890 .
3891  That way, you can find out which (if any) documents have already been translate
3892 d into your language.
3893  You can also find out who (if anyone) is organizing the effort to translate
3894  the documentation into your language.
3895  If no one is organizing the effort, please let us know that you're interested.
3896 \end_layout
3897
3898 \begin_layout Standard
3899 Once you get to actually translating, here's a few hints for you that may
3900  save you trouble:
3901 \end_layout
3902
3903 \begin_layout Itemize
3904 Join the documentation team! There is information on how to do that in 
3905 \begin_inset Flex Code
3906 status collapsed
3907
3908 \begin_layout Plain Layout
3909 Intro.lyx
3910 \end_layout
3911
3912 \end_inset
3913
3914  (
3915 \begin_inset Flex Noun
3916 status collapsed
3917
3918 \begin_layout Plain Layout
3919 Help\SpecialChar menuseparator
3920 Introduction
3921 \end_layout
3922
3923 \end_inset
3924
3925 ), which by the way is the first document you should translate.
3926 \end_layout
3927
3928 \begin_layout Itemize
3929 Learn the typographic conventions for the language you are translating to.
3930  Typography is an ancient art and over the centuries, a great variety of
3931  conventions have developed throughout different parts of the world.
3932  Also study the professional terminology amongst typographers in your country.
3933  Inventing your own terminology will only confuse the users.
3934  
3935 \emph on
3936 (Warning! Typography is addictive!)
3937 \end_layout
3938
3939 \begin_layout Itemize
3940 Make a copy of the document.
3941  This will be your working copy.
3942  You can use this as your personal translated help-file by placing it in
3943  your 
3944 \begin_inset Flex Code
3945 status collapsed
3946
3947 \begin_layout Plain Layout
3948 UserDir/doc/xx/
3949 \end_layout
3950
3951 \end_inset
3952
3953  directory.
3954 \begin_inset Note Greyedout
3955 status open
3956
3957 \begin_layout Plain Layout
3958
3959 \series bold
3960 Note:
3961 \series default
3962  For a complex document with external material (images, etc.), if you make
3963  a copy e.
3964 \begin_inset space \thinspace{}
3965 \end_inset
3966
3967 g.
3968 \begin_inset space \space{}
3969 \end_inset
3970
3971 in a temp dir, beware that the links to external material may be broken
3972  when the document is moved to a different place.
3973  The best way is to retrieve the \SpecialChar LyX
3974  tree from git (see 
3975 \begin_inset Flex URL
3976 status collapsed
3977
3978 \begin_layout Plain Layout
3979
3980 https://www.lyx.org/HowToUseGIT
3981 \end_layout
3982
3983 \end_inset
3984
3985 ) and to edit the doc file in place.
3986 \end_layout
3987
3988 \end_inset
3989
3990
3991 \end_layout
3992
3993 \begin_layout Itemize
3994 Sometimes the original document (from the \SpecialChar LyX
3995  team) will be updated.
3996  Use the source viewer at 
3997 \begin_inset CommandInset href
3998 LatexCommand href
3999 name "https://www.lyx.org/trac/timeline"
4000 target "https://www.lyx.org/trac/timeline"
4001 literal "false"
4002
4003 \end_inset
4004
4005  to see what has been changed.
4006  That way you can easily see which parts of the translated document need
4007  to be updated.
4008 \end_layout
4009
4010 \begin_layout Standard
4011 If you ever find an error in the original document, fix it and notify the
4012  rest of the documentation team of the changes! (You didn't forget to join
4013  the documentation team, did you?)
4014 \end_layout
4015
4016 \begin_layout Standard
4017 \begin_inset Branch OutDated
4018 inverted 0
4019 status collapsed
4020
4021 \begin_layout Section
4022 International Keyboard Support
4023 \end_layout
4024
4025 \begin_layout Standard
4026
4027 \emph on
4028 [Editor's Note: The following section is by
4029 \emph default
4030  
4031 \shape smallcaps
4032 \emph on
4033 Ivan Schreter
4034 \shape default
4035 .
4036  It needs to be fixed to conform to the new Documentation Style sheet and
4037  to make use of the new v1.0 features.
4038  The whole thing also needs to be merged with the section following it.-jw
4039  It may also be badly out of date.-rh (2008)]
4040 \end_layout
4041
4042 \begin_layout Subsection
4043 Defining Own Keymaps: Keymap File Format
4044 \end_layout
4045
4046 \begin_layout Standard
4047 Let's look at a keyboard definition file a little closer.
4048  It is a plain text file defining
4049 \end_layout
4050
4051 \begin_layout Itemize
4052 key-to-key or key-to-string translations
4053 \end_layout
4054
4055 \begin_layout Itemize
4056 dead keys
4057 \end_layout
4058
4059 \begin_layout Itemize
4060 dead keys exceptions
4061 \end_layout
4062
4063 \begin_layout Standard
4064 To define key-to-key or key-to-string translation, use this command:
4065 \end_layout
4066
4067 \begin_layout Quotation
4068 \begin_inset Flex Code
4069 status collapsed
4070
4071 \begin_layout Plain Layout
4072
4073 \backslash
4074 kmap
4075 \end_layout
4076
4077 \end_inset
4078
4079  
4080 \begin_inset Flex Code
4081 status collapsed
4082
4083 \begin_layout Plain Layout
4084 key
4085 \end_layout
4086
4087 \end_inset
4088
4089  outstring 
4090 \end_layout
4091
4092 \begin_layout Standard
4093 where 
4094 \begin_inset Flex Code
4095 status collapsed
4096
4097 \begin_layout Plain Layout
4098 key
4099 \end_layout
4100
4101 \end_inset
4102
4103  is the key to be translated and 
4104 \begin_inset Flex Code
4105 status collapsed
4106
4107 \begin_layout Plain Layout
4108 outstring
4109 \end_layout
4110
4111 \end_inset
4112
4113  is the string to be inserted into the document.
4114  To define dead keys, use:
4115 \end_layout
4116
4117 \begin_layout Quotation
4118 \begin_inset Flex Code
4119 status collapsed
4120
4121 \begin_layout Plain Layout
4122
4123 \backslash
4124 kmod
4125 \end_layout
4126
4127 \end_inset
4128
4129  
4130 \begin_inset Flex Code
4131 status collapsed
4132
4133 \begin_layout Plain Layout
4134 key
4135 \end_layout
4136
4137 \end_inset
4138
4139  deadkey
4140 \end_layout
4141
4142 \begin_layout Standard
4143 where 
4144 \begin_inset Flex Code
4145 status collapsed
4146
4147 \begin_layout Plain Layout
4148 key
4149 \end_layout
4150
4151 \end_inset
4152
4153  is a keyboard key and 
4154 \begin_inset Flex Code
4155 status collapsed
4156
4157 \begin_layout Plain Layout
4158 deadkey
4159 \end_layout
4160
4161 \end_inset
4162
4163  is dead key name.
4164  The following dead keys are supported (shortcut name is in parentheses):
4165 \end_layout
4166
4167 \begin_layout Quotation
4168
4169 \emph on
4170 Name
4171 \begin_inset space \hfill{}
4172 \end_inset
4173
4174 Example
4175 \end_layout
4176
4177 \begin_layout Quotation
4178 acute (acu)
4179 \begin_inset space \hfill{}
4180 \end_inset
4181
4182 áéíóú
4183 \end_layout
4184
4185 \begin_layout Quotation
4186 grave (gra)
4187 \begin_inset space \hfill{}
4188 \end_inset
4189
4190 àèìòù
4191 \end_layout
4192
4193 \begin_layout Quotation
4194 macron (mac)
4195 \begin_inset space \hfill{}
4196 \end_inset
4197
4198  ō
4199 \end_layout
4200
4201 \begin_layout Quotation
4202 tilde (til)
4203 \begin_inset space \hfill{}
4204 \end_inset
4205
4206 ñÑ
4207 \end_layout
4208
4209 \begin_layout Quotation
4210 underbar (underb)
4211 \begin_inset space \hfill{}
4212 \end_inset
4213
4214
4215 \begin_inset ERT
4216 status open
4217
4218 \begin_layout Plain Layout
4219
4220
4221 \backslash
4222 b o
4223 \end_layout
4224
4225 \end_inset
4226
4227
4228 \end_layout
4229
4230 \begin_layout Quotation
4231 cedilla (ced)
4232 \begin_inset space \hfill{}
4233 \end_inset
4234
4235 çÇ
4236 \end_layout
4237
4238 \begin_layout Quotation
4239 underdot (underd)
4240 \begin_inset space \hfill{}
4241 \end_inset
4242
4243
4244 \begin_inset ERT
4245 status open
4246
4247 \begin_layout Plain Layout
4248
4249
4250 \backslash
4251 d o
4252 \end_layout
4253
4254 \end_inset
4255
4256
4257 \end_layout
4258
4259 \begin_layout Quotation
4260 circumflex (circu)
4261 \begin_inset space \hfill{}
4262 \end_inset
4263
4264 âêîôû
4265 \end_layout
4266
4267 \begin_layout Quotation
4268 circle (circl)
4269 \begin_inset space \hfill{}
4270 \end_inset
4271
4272 ÅůŮ
4273 \end_layout
4274
4275 \begin_layout Quotation
4276 tie (tie)
4277 \begin_inset space \hfill{}
4278 \end_inset
4279
4280
4281 \begin_inset ERT
4282 status open
4283
4284 \begin_layout Plain Layout
4285
4286
4287 \backslash
4288 t o
4289 \end_layout
4290
4291 \end_inset
4292
4293
4294 \end_layout
4295
4296 \begin_layout Quotation
4297 breve (bre)
4298 \begin_inset space \hfill{}
4299 \end_inset
4300
4301 ă
4302 \begin_inset ERT
4303 status open
4304
4305 \begin_layout Plain Layout
4306
4307
4308 \backslash
4309 u o
4310 \end_layout
4311
4312 \end_inset
4313
4314
4315 \end_layout
4316
4317 \begin_layout Quotation
4318 caron (car)
4319 \begin_inset space \hfill{}
4320 \end_inset
4321
4322 čšž
4323 \end_layout
4324
4325 \begin_layout Quotation
4326 hungarian umlaut (hug)
4327 \begin_inset space \hfill{}
4328 \end_inset
4329
4330 őű
4331 \end_layout
4332
4333 \begin_layout Quotation
4334 umlaut (uml)
4335 \begin_inset space \hfill{}
4336 \end_inset
4337
4338 äöü
4339 \end_layout
4340
4341 \begin_layout Quotation
4342 dot (dot)
4343 \begin_inset space \hfill{}
4344 \end_inset
4345
4346 ż
4347 \begin_inset ERT
4348 status open
4349
4350 \begin_layout Plain Layout
4351
4352
4353 \backslash
4354 .s
4355 \end_layout
4356
4357 \end_inset
4358
4359
4360 \end_layout
4361
4362 \begin_layout Standard
4363 Since in many international keyboards there are exceptions to what some
4364  dead keys should do, you can define them using
4365 \end_layout
4366
4367 \begin_layout Quotation
4368 \begin_inset Flex Code
4369 status collapsed
4370
4371 \begin_layout Plain Layout
4372
4373 \backslash
4374 kxmod
4375 \end_layout
4376
4377 \end_inset
4378
4379  deadkey key outstring
4380 \end_layout
4381
4382 \begin_layout Standard
4383 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4384 , so you put in
4385 \end_layout
4386
4387 \begin_layout Quotation
4388 \begin_inset Flex Code
4389 status collapsed
4390
4391 \begin_layout Plain Layout
4392
4393 \backslash
4394 kxmod
4395 \end_layout
4396
4397 \end_inset
4398
4399  caron o "
4400 \backslash
4401 ^o"
4402 \end_layout
4403
4404 \begin_layout Standard
4405 to make it work correctly.
4406  Also, you have to define as exceptions dead keys over i and j, to remove
4407  the dot from them before inserting an accent mark.
4408  I will change this when the time comes, but so far I haven't had time.
4409 \end_layout
4410
4411 \begin_layout Standard
4412 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4413  double backslash.
4414  Also, quotes and 
4415 \begin_inset Flex Code
4416 status collapsed
4417
4418 \begin_layout Plain Layout
4419 #
4420 \end_layout
4421
4422 \end_inset
4423
4424  have different meaning.
4425  
4426 \begin_inset Flex Code
4427 status collapsed
4428
4429 \begin_layout Plain Layout
4430 #
4431 \end_layout
4432
4433 \end_inset
4434
4435  marks comments, quotes start and end \SpecialChar LaTeX
4436 -style commands.
4437  To enter quote, you'll need to use 
4438 \begin_inset Flex Code
4439 status collapsed
4440
4441 \begin_layout Plain Layout
4442
4443 \backslash
4444 "
4445 \end_layout
4446
4447 \end_inset
4448
4449 , to enter 
4450 \begin_inset Flex Code
4451 status collapsed
4452
4453 \begin_layout Plain Layout
4454 #
4455 \end_layout
4456
4457 \end_inset
4458
4459 , use 
4460 \begin_inset Flex Code
4461 status collapsed
4462
4463 \begin_layout Plain Layout
4464
4465 \backslash
4466 #
4467 \end_layout
4468
4469 \end_inset
4470
4471 .
4472 \end_layout
4473
4474 \begin_layout Standard
4475 If you make a keyboard description file that works for your language, please
4476  mail it to me, so I can include it in the next keymap distribution.
4477 \end_layout
4478
4479 \begin_layout Standard
4480 More keywords will be supported in keymap configuration file in future,
4481  like
4482 \end_layout
4483
4484 \begin_layout Itemize
4485 \begin_inset Flex Code
4486 status collapsed
4487
4488 \begin_layout Plain Layout
4489
4490 \backslash
4491 kinclude filename
4492 \end_layout
4493
4494 \end_inset
4495
4496
4497 \emph on
4498
4499 \begin_inset space \hfill{}
4500 \end_inset
4501
4502
4503 \begin_inset Flex Code
4504 status collapsed
4505
4506 \begin_layout Plain Layout
4507 include
4508 \end_layout
4509
4510 \end_inset
4511
4512  another file
4513 \end_layout
4514
4515 \begin_layout Itemize
4516 \begin_inset Flex Code
4517 status collapsed
4518
4519 \begin_layout Plain Layout
4520
4521 \backslash
4522 kprog program
4523 \end_layout
4524
4525 \end_inset
4526
4527
4528 \emph on
4529
4530 \begin_inset space \hfill{}
4531 \end_inset
4532
4533
4534 \begin_inset Flex Code
4535 status collapsed
4536
4537 \begin_layout Plain Layout
4538 define
4539 \end_layout
4540
4541 \end_inset
4542
4543  an external keymap translation program 
4544 \end_layout
4545
4546 \begin_layout Standard
4547 Also, it should look into 
4548 \begin_inset Flex Code
4549 status collapsed
4550
4551 \begin_layout Plain Layout
4552 lyxrc
4553 \end_layout
4554
4555 \end_inset
4556
4557  file for defaults, too (for example, a 
4558 \begin_inset Flex Code
4559 status collapsed
4560
4561 \begin_layout Plain Layout
4562
4563 \backslash
4564 kinclude
4565 \end_layout
4566
4567 \end_inset
4568
4569  option to include default keyboard).
4570 \end_layout
4571
4572 \end_inset
4573
4574
4575 \end_layout
4576
4577 \begin_layout Section
4578 International Keymap Stuff
4579 \begin_inset CommandInset label
4580 LatexCommand label
4581 name "sec:International-Keymap-Stuff"
4582
4583 \end_inset
4584
4585
4586 \end_layout
4587
4588 \begin_layout Standard
4589 \begin_inset Note Note
4590 status open
4591
4592 \begin_layout Plain Layout
4593 In doing the revisions on this document in March 2008, I did not look over
4594  this stuff, as I do not understand it.
4595  It would be good if someone else could do so.
4596  (RH)
4597 \end_layout
4598
4599 \end_inset
4600
4601
4602 \end_layout
4603
4604 \begin_layout Standard
4605 The next two sections describe the 
4606 \begin_inset Flex Code
4607 status collapsed
4608
4609 \begin_layout Plain Layout
4610
4611 \shape up
4612 .kmap
4613 \end_layout
4614
4615 \end_inset
4616
4617  and 
4618 \begin_inset Flex Code
4619 status collapsed
4620
4621 \begin_layout Plain Layout
4622
4623 \shape up
4624 .cdef
4625 \end_layout
4626
4627 \end_inset
4628
4629  file syntax in detail.
4630  These sections should help you design your own key map if the ones provided
4631  do not meet your needs.
4632 \end_layout
4633
4634 \begin_layout Subsection
4635 The .kmap File
4636 \end_layout
4637
4638 \begin_layout Standard
4639
4640 \shape up
4641 .
4642 \begin_inset Flex Code
4643 status collapsed
4644
4645 \begin_layout Plain Layout
4646 kmap
4647 \end_layout
4648
4649 \end_inset
4650
4651  file maps keystrokes to characters or strings.
4652  As the name suggests, it sets a keyboard mapping.
4653  The 
4654 \begin_inset Flex Code
4655 status collapsed
4656
4657 \begin_layout Plain Layout
4658 .kmap
4659 \end_layout
4660
4661 \end_inset
4662
4663
4664 \shape default
4665  file keywords 
4666 \shape up
4667
4668 \begin_inset Flex Code
4669 status collapsed
4670
4671 \begin_layout Plain Layout
4672
4673 \shape up
4674 kmap
4675 \end_layout
4676
4677 \end_inset
4678
4679
4680 \shape default
4681 ,
4682 \shape up
4683  
4684 \shape default
4685
4686 \begin_inset Flex Code
4687 status collapsed
4688
4689 \begin_layout Plain Layout
4690
4691 \shape up
4692 kmod
4693 \end_layout
4694
4695 \end_inset
4696
4697 ,
4698 \shape up
4699  
4700 \shape default
4701
4702 \begin_inset Flex Code
4703 status collapsed
4704
4705 \begin_layout Plain Layout
4706
4707 \shape up
4708 kxmod
4709 \end_layout
4710
4711 \end_inset
4712
4713 , and 
4714 \begin_inset Flex Code
4715 status collapsed
4716
4717 \begin_layout Plain Layout
4718
4719 \shape up
4720 kcomb
4721 \end_layout
4722
4723 \end_inset
4724
4725  are described in this section.
4726 \end_layout
4727
4728 \begin_layout Labeling
4729 \labelwidthstring 00.00.0000
4730 \begin_inset Flex Code
4731 status collapsed
4732
4733 \begin_layout Plain Layout
4734
4735 \shape up
4736 kmap
4737 \end_layout
4738
4739 \end_inset
4740
4741  Map a character to a string
4742 \end_layout
4743
4744 \begin_layout LyX-Code
4745
4746 \backslash
4747 kmap 
4748 \family roman
4749 \emph on
4750 char
4751 \family default
4752 \emph default
4753  
4754 \family roman
4755 \emph on
4756 string
4757 \end_layout
4758
4759 \begin_layout Standard
4760 This will ma
4761 \family roman
4762 p
4763 \family default
4764  
4765 \family roman
4766 \emph on
4767 char
4768 \family default
4769 \emph default
4770  
4771 \family roman
4772 to
4773 \family default
4774  
4775 \family roman
4776 \emph on
4777 string
4778 \emph default
4779 .
4780  Note that in
4781 \family default
4782  
4783 \family roman
4784 \emph on
4785 string
4786 \emph default
4787 ,
4788 \family default
4789  
4790 \family roman
4791 \shape up
4792 the double-quote (")
4793 \family default
4794 \shape default
4795  
4796 \family roman
4797 and
4798 \family default
4799  
4800 \family roman
4801 \shape up
4802 the backslash (
4803 \backslash
4804 )
4805 \family default
4806 \shape default
4807  
4808 \family roman
4809 must be escaped with a preceding backslash (
4810 \shape up
4811
4812 \backslash
4813
4814 \shape default
4815 )
4816 \family default
4817 .
4818 \end_layout
4819
4820 \begin_layout Standard
4821 An example of a 
4822 \begin_inset Flex Noun
4823 status collapsed
4824
4825 \begin_layout Plain Layout
4826
4827 \shape up
4828 kmap
4829 \end_layout
4830
4831 \end_inset
4832
4833  statement to cause the symbol 
4834 \begin_inset Flex Noun
4835 status collapsed
4836
4837 \begin_layout Plain Layout
4838
4839 \shape up
4840 /
4841 \end_layout
4842
4843 \end_inset
4844
4845  to be output for the keystroke 
4846 \begin_inset Flex Noun
4847 status collapsed
4848
4849 \begin_layout Plain Layout
4850
4851 \shape up
4852 &
4853 \end_layout
4854
4855 \end_inset
4856
4857  is:
4858 \end_layout
4859
4860 \begin_layout LyX-Code
4861
4862 \backslash
4863 kmap & /
4864 \end_layout
4865
4866 \begin_layout Labeling
4867 \labelwidthstring 00.00.0000
4868 \begin_inset Flex Code
4869 status collapsed
4870
4871 \begin_layout Plain Layout
4872
4873 \shape up
4874 kmod
4875 \end_layout
4876
4877 \end_inset
4878
4879  Specify an accent character
4880 \end_layout
4881
4882 \begin_layout LyX-Code
4883
4884 \backslash
4885 kmod 
4886 \family roman
4887 \emph on
4888 char accent allowed
4889 \end_layout
4890
4891 \begin_layout Standard
4892 This will make the cha
4893 \family roman
4894 racter
4895 \family default
4896  
4897 \family roman
4898 \emph on
4899 char
4900 \family default
4901 \emph default
4902  
4903 \family roman
4904 \shape up
4905 \emph on
4906 be an accent
4907 \family default
4908 \shape default
4909 \emph default
4910  
4911 \family roman
4912 \shape up
4913 on the
4914 \family default
4915 \shape default
4916  
4917 \family roman
4918 \shape up
4919 \emph on
4920 allowed
4921 \family default
4922 \shape default
4923 \emph default
4924  
4925 \family roman
4926 \shape up
4927 cha
4928 \family default
4929 racter(s).
4930  This is the dead key
4931 \begin_inset Foot
4932 status collapsed
4933
4934 \begin_layout Plain Layout
4935 The term 
4936 \family roman
4937 \emph on
4938 dead key
4939 \family default
4940 \emph default
4941  refers to a key that does not produce a character by itself, but when followed
4942  with another key, produces the desired accent character.
4943  For example, a German characte
4944 \family roman
4945 r with an umlaut like
4946 \family default
4947  
4948 \family roman
4949 \emph on
4950 ä
4951 \family default
4952 \emph default
4953  
4954 \family roman
4955 can be produced in this manner.
4956 \end_layout
4957
4958 \end_inset
4959
4960  mechanism.
4961  
4962 \end_layout
4963
4964 \begin_layout Standard
4965 If you 
4966 \family roman
4967 hit
4968 \family default
4969  
4970 \family roman
4971 \emph on
4972 char
4973 \family default
4974 \emph default
4975  
4976 \family roman
4977 and then another key not in
4978 \family default
4979  
4980 \family roman
4981 \emph on
4982 allowed
4983 \emph default
4984 , you will get a
4985 \family default
4986  
4987 \family roman
4988 \emph on
4989 char
4990 \family default
4991 \emph default
4992  
4993 \family roman
4994 followed by the other, not allowed key, as output.
4995
4996 \family default
4997  Note that a 
4998 \begin_inset Flex Noun
4999 status collapsed
5000
5001 \begin_layout Plain Layout
5002
5003 \shape up
5004 Backspace
5005 \end_layout
5006
5007 \end_inset
5008
5009  cancels a dead key, so if 
5010 \family roman
5011 you hit
5012 \family default
5013  
5014 \family roman
5015 \emph on
5016 char
5017 \family default
5018 \emph default
5019  
5020 \begin_inset Flex Noun
5021 status collapsed
5022
5023 \begin_layout Plain Layout
5024
5025 \shape up
5026 \emph on
5027 Backspace
5028 \end_layout
5029
5030 \end_inset
5031
5032 , the cursor will not go one position backwards but will instead cancel
5033  the effect t
5034 \family roman
5035 hat
5036 \family default
5037  
5038 \family roman
5039 \shape up
5040 \emph on
5041 char
5042 \family default
5043 \shape default
5044 \emph default
5045  
5046 \family roman
5047 \shape up
5048 might have had on the next keystroke.
5049  
5050 \end_layout
5051
5052 \begin_layout Standard
5053 The following example specifies that the character ' is to be an acute accent,
5054  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
5055 \end_layout
5056
5057 \begin_layout LyX-Code
5058
5059 \backslash
5060 kmod ' acute aeiouAEIOU
5061 \end_layout
5062
5063 \begin_layout Labeling
5064 \labelwidthstring 00.00.0000
5065 \begin_inset Flex Code
5066 status collapsed
5067
5068 \begin_layout Plain Layout
5069 kxmod
5070 \end_layout
5071
5072 \end_inset
5073
5074  Specify an exception to the accent character
5075 \end_layout
5076
5077 \begin_layout LyX-Code
5078
5079 \backslash
5080 kxmod  
5081 \family roman
5082 \emph on
5083 accent char result
5084 \end_layout
5085
5086 \begin_layout Standard
5087 This defines an exce
5088 \family roman
5089 ption for
5090 \family default
5091  
5092 \family roman
5093 \emph on
5094 accent
5095 \family default
5096 \emph default
5097  
5098 \family roman
5099 on
5100 \family default
5101  
5102 \family roman
5103 \emph on
5104 char
5105 \emph default
5106 .
5107  T
5108 \shape up
5109 he
5110 \family default
5111 \shape default
5112  
5113 \family roman
5114 \shape up
5115 \emph on
5116 accent
5117 \family default
5118 \shape default
5119 \emph default
5120  
5121 \family roman
5122 \shape up
5123 must
5124 \family default
5125 \shape default
5126  
5127 \shape up
5128 have been assigned a keystroke with a previous
5129 \shape default
5130  
5131 \begin_inset Flex Code
5132 status collapsed
5133
5134 \begin_layout Plain Layout
5135
5136 \shape up
5137
5138 \backslash
5139 kmo
5140 \shape default
5141 d
5142 \end_layout
5143
5144 \end_inset
5145
5146  declar
5147 \family roman
5148 ation and
5149 \family default
5150  
5151 \family roman
5152 \emph on
5153 char
5154 \family default
5155 \emph default
5156  
5157 \family roman
5158 must not belong in the
5159 \family default
5160  
5161 \family roman
5162 \emph on
5163 allowed
5164 \family default
5165 \emph default
5166  
5167 \family roman
5168 set of
5169 \family default
5170  
5171 \family roman
5172 \emph on
5173 accent
5174 \emph default
5175 .
5176  When
5177 \family default
5178  
5179 \family roman
5180 \shape up
5181 you enter the
5182 \family default
5183 \shape default
5184  
5185 \family roman
5186 \shape up
5187 \emph on
5188 accent char
5189 \family default
5190 \shape default
5191 \emph default
5192  
5193 \family roman
5194 \shape up
5195 sequence,
5196 \family default
5197 \shape default
5198  
5199 \family roman
5200 \shape up
5201 \emph on
5202 result
5203 \emph default
5204  is produced.
5205  If such a declaration does not exist in
5206 \family default
5207 \shape default
5208  
5209 \shape up
5210 the
5211 \shape default
5212  
5213 \begin_inset Flex Code
5214 status collapsed
5215
5216 \begin_layout Plain Layout
5217
5218 \shape up
5219 .kmap
5220 \end_layout
5221
5222 \end_inset
5223
5224  file and yo
5225 \family roman
5226 u enter
5227 \family default
5228  
5229 \family roman
5230 \emph on
5231 accent char
5232 \emph default
5233 , you get
5234 \family default
5235  
5236 \family roman
5237 \emph on
5238 accent_key char
5239 \emph default
5240  where
5241 \family default
5242  
5243 \family roman
5244 \emph on
5245 accent_key
5246 \emph default
5247  is the first arg
5248 \family default
5249 ument of the 
5250 \begin_inset Flex Code
5251 status collapsed
5252
5253 \begin_layout Plain Layout
5254
5255 \shape up
5256
5257 \backslash
5258 kmod
5259 \end_layout
5260
5261 \end_inset
5262
5263  declaration.
5264  
5265 \end_layout
5266
5267 \begin_layout Standard
5268 The following command produces causes äi to be produced when you enter acute-i
5269  ('i):
5270 \end_layout
5271
5272 \begin_layout LyX-Code
5273
5274 \backslash
5275 kxmod acute i "
5276 \backslash
5277
5278 \backslash
5279 '{
5280 \backslash
5281
5282 \backslash
5283 i}"
5284 \end_layout
5285
5286 \begin_layout Labeling
5287 \labelwidthstring 00.00.0000
5288 \begin_inset Flex Code
5289 status collapsed
5290
5291 \begin_layout Plain Layout
5292 kcomb
5293 \end_layout
5294
5295 \end_inset
5296
5297  Combine two accent characters
5298 \end_layout
5299
5300 \begin_layout LyX-Code
5301
5302 \backslash
5303 kcomb 
5304 \family roman
5305 \emph on
5306 accent1 accent2 allowed
5307 \end_layout
5308
5309 \begin_layout Standard
5310 This one is getting pretty esoteric.
5311  It allows you to combine the effect 
5312 \family roman
5313 of
5314 \family default
5315  
5316 \family roman
5317 \emph on
5318 accent1
5319 \family default
5320 \emph default
5321  
5322 \family roman
5323 and
5324 \family default
5325  
5326 \family roman
5327 \emph on
5328 accent2
5329 \family default
5330 \emph default
5331  
5332 \family roman
5333 (in that order!) on
5334 \family default
5335  
5336 \family roman
5337 \emph on
5338 allowed
5339 \family default
5340 \emph default
5341  
5342 \family roman
5343 chars.
5344  The keystrokes for
5345 \family default
5346  
5347 \family roman
5348 \emph on
5349 accent1
5350 \family default
5351 \emph default
5352  
5353 \family roman
5354 and
5355 \family default
5356  
5357 \family roman
5358 \emph on
5359 accent2
5360 \family default
5361 \emph default
5362  
5363 \family roman
5364 must have be
5365 \family default
5366 en set with a 
5367 \begin_inset Flex Code
5368 status collapsed
5369
5370 \begin_layout Plain Layout
5371
5372 \shape up
5373
5374 \backslash
5375 kmod
5376 \end_layout
5377
5378 \end_inset
5379
5380  command at 
5381 \family roman
5382 a
5383 \family default
5384  
5385 \family roman
5386 \emph on
5387 previous
5388 \family default
5389 \emph default
5390  
5391 \family roman
5392 point in the
5393 \family default
5394  file.
5395  
5396 \end_layout
5397
5398 \begin_layout Standard
5399 Consider this example from the 
5400 \begin_inset Flex Code
5401 status collapsed
5402
5403 \begin_layout Plain Layout
5404
5405 \shape up
5406 greek.kmap
5407 \end_layout
5408
5409 \end_inset
5410
5411  file:
5412 \end_layout
5413
5414 \begin_layout LyX-Code
5415
5416 \backslash
5417 kmod ; acute aeioyvhAEIOYVH 
5418 \backslash
5419 kmod : umlaut iyIY 
5420 \backslash
5421 kcomb acute umlaut iyIY
5422 \end_layout
5423
5424 \begin_layout Standard
5425 This allows you to press 
5426 \begin_inset Flex Noun
5427 status collapsed
5428
5429 \begin_layout Plain Layout
5430
5431 \shape up
5432 ;:i
5433 \end_layout
5434
5435 \end_inset
5436
5437  and get the effect of 
5438 \begin_inset Flex Code
5439 status collapsed
5440
5441 \begin_layout Plain Layout
5442
5443 \shape up
5444
5445 \backslash
5446 '{
5447 \backslash
5448 "{i}}
5449 \end_layout
5450
5451 \end_inset
5452
5453 .
5454  
5455 \family roman
5456 \shape up
5457 A backspace
5458 \family default
5459 \shape default
5460  in this case cancels the last dead key, so if you press 
5461 \begin_inset Flex Noun
5462 status collapsed
5463
5464 \begin_layout Plain Layout
5465
5466 \shape up
5467 ;: Backspace i
5468 \end_layout
5469
5470 \end_inset
5471
5472  you get 
5473 \begin_inset Flex Code
5474 status collapsed
5475
5476 \begin_layout Plain Layout
5477
5478 \shape up
5479
5480 \backslash
5481 '{i}
5482 \end_layout
5483
5484 \end_inset
5485
5486 .
5487 \end_layout
5488
5489 \begin_layout Subsection
5490 The .cdef File
5491 \end_layout
5492
5493 \begin_layout Standard
5494 After the 
5495 \begin_inset Flex Code
5496 status collapsed
5497
5498 \begin_layout Plain Layout
5499
5500 \shape up
5501 .kmap
5502 \end_layout
5503
5504 \end_inset
5505
5506  mapping is performed, a 
5507 \begin_inset Flex Code
5508 status collapsed
5509
5510 \begin_layout Plain Layout
5511
5512 \shape up
5513 .cde
5514 \shape default
5515 f
5516 \end_layout
5517
5518 \end_inset
5519
5520  file maps the strings that the symbols generate to characters in the current
5521  font.
5522  The \SpecialChar LyX
5523  distribution currently includes at least the 
5524 \begin_inset Flex Code
5525 status collapsed
5526
5527 \begin_layout Plain Layout
5528
5529 \shape up
5530 iso8859-1.cdef
5531 \end_layout
5532
5533 \end_inset
5534
5535  and 
5536 \begin_inset Flex Code
5537 status collapsed
5538
5539 \begin_layout Plain Layout
5540
5541 \shape up
5542 iso8859-2.cdef
5543 \end_layout
5544
5545 \end_inset
5546
5547  files.
5548 \end_layout
5549
5550 \begin_layout Standard
5551 In general the 
5552 \begin_inset Flex Code
5553 status collapsed
5554
5555 \begin_layout Plain Layout
5556
5557 \shape up
5558 .cdef
5559 \end_layout
5560
5561 \end_inset
5562
5563  file is a sequence of declarations of the form
5564 \end_layout
5565
5566 \begin_layout LyX-Code
5567
5568 \family roman
5569 \emph on
5570 char_index_in_set
5571 \family default
5572 \emph default
5573  
5574 \family roman
5575 \emph on
5576  string
5577 \end_layout
5578
5579 \begin_layout Standard
5580 For example, in order to map 
5581 \begin_inset Flex Noun
5582 status collapsed
5583
5584 \begin_layout Plain Layout
5585
5586 \shape up
5587
5588 \backslash
5589 '{e}
5590 \end_layout
5591
5592 \end_inset
5593
5594  to the corresponding character in the iso-8859-1 set (233), the following
5595  declaration is used
5596 \end_layout
5597
5598 \begin_layout LyX-Code
5599 233 "
5600 \backslash
5601
5602 \backslash
5603 '{e}"
5604 \end_layout
5605
5606 \begin_layout Standard
5607 with 
5608 \begin_inset Flex Code
5609 status collapsed
5610
5611 \begin_layout Plain Layout
5612
5613 \backslash
5614
5615 \end_layout
5616
5617 \end_inset
5618
5619  and 
5620 \begin_inset Flex Code
5621 status collapsed
5622
5623 \begin_layout Plain Layout
5624 "
5625 \end_layout
5626
5627 \end_inset
5628
5629  being escap
5630 \family roman
5631 ed in
5632 \family default
5633  
5634 \family roman
5635 \emph on
5636 string
5637 \emph default
5638 .
5639  Note that
5640 \family default
5641  the same character can apply to more than one string.
5642  In the 
5643 \begin_inset Flex Code
5644 status collapsed
5645
5646 \begin_layout Plain Layout
5647 i
5648 \shape up
5649 so-8859-7.cdef
5650 \end_layout
5651
5652 \end_inset
5653
5654  file you have
5655 \end_layout
5656
5657 \begin_layout LyX-Code
5658 192 "
5659 \backslash
5660
5661 \backslash
5662 '{
5663 \backslash
5664
5665 \backslash
5666
5667 \backslash
5668 "{i}}"
5669 \begin_inset Newline newline
5670 \end_inset
5671
5672 192 "
5673 \backslash
5674
5675 \backslash
5676
5677 \backslash
5678 "{
5679 \backslash
5680
5681 \backslash
5682 '{i}}"
5683 \end_layout
5684
5685 \begin_layout Standard
5686 If \SpecialChar LyX
5687  cannot find a mapping for the string produced by the keystroke or a
5688  deadkey sequence, it will check if it looks like an accented char and try
5689  to draw an accent over the character on screen.
5690 \end_layout
5691
5692 \begin_layout Subsection
5693 Dead Keys
5694 \end_layout
5695
5696 \begin_layout Standard
5697 There is a second way to add support for international characters through
5698  so-called dead-keys.
5699  A dead-key works in combination with a letter to produce an accented character.
5700  Here, we'll explain how to create a really simple dead-key to illustrate
5701  how they work.
5702 \end_layout
5703
5704 \begin_layout Standard
5705 Suppose you happen to need the circumflex character, 
5706 \begin_inset Quotes eld
5707 \end_inset
5708
5709  ̂
5710 \begin_inset Quotes erd
5711 \end_inset
5712
5713 .
5714  You could bind the 
5715 \begin_inset Flex Noun
5716 status collapsed
5717
5718 \begin_layout Plain Layout
5719 ^
5720 \end_layout
5721
5722 \end_inset
5723
5724 -key [a.k.a.
5725 \begin_inset space ~
5726 \end_inset
5727
5728
5729 \begin_inset Flex Noun
5730 status collapsed
5731
5732 \begin_layout Plain Layout
5733 Shift-6
5734 \end_layout
5735
5736 \end_inset
5737
5738 ] to the \SpecialChar LyX
5739  command 
5740 \begin_inset Flex Code
5741 status collapsed
5742
5743 \begin_layout Plain Layout
5744 accent-circumflex
5745 \end_layout
5746
5747 \end_inset
5748
5749  in your 
5750 \begin_inset Flex Code
5751 status collapsed
5752
5753 \begin_layout Plain Layout
5754 lyxrc
5755 \end_layout
5756
5757 \end_inset
5758
5759  file.
5760  Now, whenever you type the 
5761 \begin_inset Flex Noun
5762 status collapsed
5763
5764 \begin_layout Plain Layout
5765 ^
5766 \end_layout
5767
5768 \end_inset
5769
5770 -key followed by a letter, that letter will have a circumflex accent on
5771  it.
5772  For example, the sequence 
5773 \begin_inset Quotes eld
5774 \end_inset
5775
5776
5777 \begin_inset Flex Noun
5778 status collapsed
5779
5780 \begin_layout Plain Layout
5781 ^e
5782 \end_layout
5783
5784 \end_inset
5785
5786
5787 \begin_inset Quotes erd
5788 \end_inset
5789
5790  produces the letter: 
5791 \begin_inset Quotes eld
5792 \end_inset
5793
5794 ê
5795 \begin_inset Quotes erd
5796 \end_inset
5797
5798 .
5799  If you tried to type 
5800 \begin_inset Quotes eld
5801 \end_inset
5802
5803
5804 \begin_inset Flex Noun
5805 status collapsed
5806
5807 \begin_layout Plain Layout
5808 ^t
5809 \end_layout
5810
5811 \end_inset
5812
5813
5814 \begin_inset Quotes erd
5815 \end_inset
5816
5817 , however, \SpecialChar LyX
5818  will complain with a beep, since a 
5819 \begin_inset Quotes eld
5820 \end_inset
5821
5822
5823 \begin_inset Flex Noun
5824 status collapsed
5825
5826 \begin_layout Plain Layout
5827 t
5828 \end_layout
5829
5830 \end_inset
5831
5832
5833 \begin_inset Quotes erd
5834 \end_inset
5835
5836  never takes a circumflex accent.
5837  Hitting 
5838 \begin_inset Flex Noun
5839 status collapsed
5840
5841 \begin_layout Plain Layout
5842 Space
5843 \end_layout
5844
5845 \end_inset
5846
5847  after a dead-key produces the bare-accent.
5848  Please note this last point! If you bind a key to a dead-key, you'll need
5849  to rebind the character on that key to yet another key.
5850  Binding the 
5851 \begin_inset Flex Noun
5852 status collapsed
5853
5854 \begin_layout Plain Layout
5855 ,-key
5856 \end_layout
5857
5858 \end_inset
5859
5860  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5861 \end_layout
5862
5863 \begin_layout Standard
5864 One common way to bind dead-keys is to use 
5865 \begin_inset Flex Noun
5866 status collapsed
5867
5868 \begin_layout Plain Layout
5869 Meta-
5870 \end_layout
5871
5872 \end_inset
5873
5874
5875 \begin_inset Flex Noun
5876 status collapsed
5877
5878 \begin_layout Plain Layout
5879 Ctrl-
5880 \end_layout
5881
5882 \end_inset
5883
5884 , and 
5885 \begin_inset Flex Noun
5886 status collapsed
5887
5888 \begin_layout Plain Layout
5889 Shift-
5890 \end_layout
5891
5892 \end_inset
5893
5894  in combination with an accent, like 
5895 \begin_inset Quotes eld
5896 \end_inset
5897
5898
5899 \begin_inset Flex Noun
5900 status collapsed
5901
5902 \begin_layout Plain Layout
5903 ~
5904 \end_layout
5905
5906 \end_inset
5907
5908
5909 \begin_inset Quotes erd
5910 \end_inset
5911
5912  or 
5913 \begin_inset Quotes eld
5914 \end_inset
5915
5916
5917 \begin_inset Flex Noun
5918 status collapsed
5919
5920 \begin_layout Plain Layout
5921 ,
5922 \end_layout
5923
5924 \end_inset
5925
5926
5927 \begin_inset Quotes erd
5928 \end_inset
5929
5930  or 
5931 \begin_inset Quotes eld
5932 \end_inset
5933
5934
5935 \begin_inset Flex Noun
5936 status collapsed
5937
5938 \begin_layout Plain Layout
5939 ^
5940 \end_layout
5941
5942 \end_inset
5943
5944
5945 \begin_inset Quotes erd
5946 \end_inset
5947
5948 .
5949  Another way involves using 
5950 \begin_inset Flex Code
5951 status collapsed
5952
5953 \begin_layout Plain Layout
5954 xmodmap
5955 \end_layout
5956
5957 \end_inset
5958
5959  and 
5960 \begin_inset Flex Code
5961 status collapsed
5962
5963 \begin_layout Plain Layout
5964 xkeycaps
5965 \end_layout
5966
5967 \end_inset
5968
5969  to set up the special 
5970 \begin_inset Flex Code
5971 status collapsed
5972
5973 \begin_layout Plain Layout
5974 Mode_Switch
5975 \end_layout
5976
5977 \end_inset
5978
5979  key.
5980  The 
5981 \begin_inset Flex Code
5982 status collapsed
5983
5984 \begin_layout Plain Layout
5985 Mode_Switch
5986 \end_layout
5987
5988 \end_inset
5989
5990  acts in some ways just like 
5991 \begin_inset Flex Noun
5992 status collapsed
5993
5994 \begin_layout Plain Layout
5995 Shift
5996 \end_layout
5997
5998 \end_inset
5999
6000  and permits you to bind keys to accented characters.
6001  You can also turn keys into dead-keys by binding them to something like
6002  
6003 \begin_inset Flex Code
6004 status collapsed
6005
6006 \begin_layout Plain Layout
6007 usldead_cedilla
6008 \end_layout
6009
6010 \end_inset
6011
6012  and then binding this symbolic key to the corresponding \SpecialChar LyX
6013  command.
6014 \begin_inset Foot
6015 status collapsed
6016
6017 \begin_layout Plain Layout
6018 Note from 
6019 \noun on
6020 John Weiss
6021 \noun default
6022 : This is exactly what I do in my 
6023 \begin_inset Flex Code
6024 status collapsed
6025
6026 \begin_layout Plain Layout
6027 ~/.lyx/lyxrc
6028 \end_layout
6029
6030 \end_inset
6031
6032  and my 
6033 \begin_inset Flex Code
6034 status collapsed
6035
6036 \begin_layout Plain Layout
6037 ~/.xmodmap
6038 \end_layout
6039
6040 \end_inset
6041
6042  files.
6043  I have my 
6044 \begin_inset Flex Noun
6045 status collapsed
6046
6047 \begin_layout Plain Layout
6048 Scroll
6049 \begin_inset space ~
6050 \end_inset
6051
6052 Lock
6053 \end_layout
6054
6055 \end_inset
6056
6057  key set up as 
6058 \begin_inset Flex Code
6059 status collapsed
6060
6061 \begin_layout Plain Layout
6062 Mode_Shift
6063 \end_layout
6064
6065 \end_inset
6066
6067  and a bunch of these 
6068 \begin_inset Quotes eld
6069 \end_inset
6070
6071
6072 \begin_inset Flex Code
6073 status collapsed
6074
6075 \begin_layout Plain Layout
6076 usldead_*
6077 \end_layout
6078
6079 \end_inset
6080
6081
6082 \begin_inset Quotes erd
6083 \end_inset
6084
6085  symbolic keys bound such things as 
6086 \begin_inset Flex Noun
6087 status collapsed
6088
6089 \begin_layout Plain Layout
6090 Scroll
6091 \begin_inset space ~
6092 \end_inset
6093
6094 Lock-^
6095 \end_layout
6096
6097 \end_inset
6098
6099  and 
6100 \begin_inset Flex Noun
6101 status collapsed
6102
6103 \begin_layout Plain Layout
6104 Scroll
6105 \begin_inset space ~
6106 \end_inset
6107
6108 Lock-~
6109 \end_layout
6110
6111 \end_inset
6112
6113 .
6114  This is how I produce my accented characters.
6115 \end_layout
6116
6117 \end_inset
6118
6119  You can make just about anything into the 
6120 \begin_inset Flex Code
6121 status collapsed
6122
6123 \begin_layout Plain Layout
6124 Mode_Switch
6125 \end_layout
6126
6127 \end_inset
6128
6129  key: One of the 
6130 \begin_inset Flex Noun
6131 status collapsed
6132
6133 \begin_layout Plain Layout
6134 Ctrl-
6135 \end_layout
6136
6137 \end_inset
6138
6139  keys, a spare function key, etc.
6140  As for the \SpecialChar LyX
6141  commands that produce accents, check the entry for 
6142 \begin_inset Flex Code
6143 status collapsed
6144
6145 \begin_layout Plain Layout
6146 accent-acute
6147 \end_layout
6148
6149 \end_inset
6150
6151  in the 
6152 \emph on
6153 Reference Manual
6154 \emph default
6155 .
6156  You'll find the complete list there.
6157 \end_layout
6158
6159 \begin_layout Subsection
6160 Saving your Language Configuration
6161 \end_layout
6162
6163 \begin_layout Standard
6164 You can edit your preferences so that your desired language environment
6165  is automatically configured when \SpecialChar LyX
6166  starts up, via the 
6167 \begin_inset Flex Noun
6168 status collapsed
6169
6170 \begin_layout Plain Layout
6171 Edit\SpecialChar menuseparator
6172 Preferences
6173 \end_layout
6174
6175 \end_inset
6176
6177  dialog.
6178 \end_layout
6179
6180 \begin_layout Chapter
6181
6182 \change_inserted -584632292 1610232084
6183 Creating and 
6184 \change_unchanged
6185 Installing New Document Classes, Layouts, and Templates
6186 \begin_inset CommandInset label
6187 LatexCommand label
6188 name "cha:Installing-New-Document"
6189
6190 \end_inset
6191
6192
6193 \begin_inset Argument 1
6194 status collapsed
6195
6196 \begin_layout Plain Layout
6197 Installing New Document Classes
6198 \end_layout
6199
6200 \end_inset
6201
6202
6203 \end_layout
6204
6205 \begin_layout Standard
6206 In this chapter, we describe the procedures for creating and installing
6207  new \SpecialChar LyX
6208  layout and template files, as well as offer a refresher on correctly
6209  installing new \SpecialChar LaTeX
6210  document classes.
6211  
6212 \end_layout
6213
6214 \begin_layout Standard
6215 First, let us a say a few words about how one ought to think about the relation
6216  between \SpecialChar LyX
6217  and \SpecialChar LaTeX
6218 .
6219  The thing to understand is that, in a certain sense, \SpecialChar LyX
6220  doesn't know anything
6221  about \SpecialChar LaTeX
6222 .
6223  Indeed, from \SpecialChar LyX
6224 's point of view, \SpecialChar LaTeX
6225  is just one of several 
6226 \begin_inset Quotes eld
6227 \end_inset
6228
6229 backend formats
6230 \begin_inset Quotes erd
6231 \end_inset
6232
6233  in which it is capable of producing output.
6234  Other such formats are DocBook, plaintext, and XHTML.
6235  \SpecialChar LaTeX
6236  is, of course, a particularly important format, but very little of the
6237  information \SpecialChar LyX
6238  has about \SpecialChar LaTeX
6239  is actually contained in the program itself.
6240 \begin_inset Foot
6241 status collapsed
6242
6243 \begin_layout Plain Layout
6244 Some commands are sufficiently complex that they are 
6245 \begin_inset Quotes eld
6246 \end_inset
6247
6248 hardcoded
6249 \begin_inset Quotes erd
6250 \end_inset
6251
6252  into \SpecialChar LyX
6253 .
6254  But the developers generally regard this as a Bad Thing.
6255 \end_layout
6256
6257 \end_inset
6258
6259  Rather, that information, even for the standard classes like 
6260 \begin_inset Flex Code
6261 status collapsed
6262
6263 \begin_layout Plain Layout
6264 article.cls
6265 \end_layout
6266
6267 \end_inset
6268
6269 , is contained in `layout files'.
6270  Similarly, \SpecialChar LyX
6271  itself does not know much about DocBook or XHTML.
6272  What it knows is contained in layout files.
6273 \end_layout
6274
6275 \begin_layout Standard
6276 You can think of the layout file for a given document class as a translation
6277  manual between \SpecialChar LyX
6278  constructs—paragraphs with their corresponding styles,
6279  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6280 , DocBook, or XHTML
6281  constructs.
6282  Almost everything \SpecialChar LyX
6283  knows about 
6284 \begin_inset Flex Code
6285 status collapsed
6286
6287 \begin_layout Plain Layout
6288 article.cls
6289 \end_layout
6290
6291 \end_inset
6292
6293 , for example, is contained in the file 
6294 \begin_inset Flex Code
6295 status collapsed
6296
6297 \begin_layout Plain Layout
6298 article.layout
6299 \end_layout
6300
6301 \end_inset
6302
6303  and in various other files it includes.
6304  For this reason, anyone intending to write layout files should plan to
6305  study the existing files.
6306  A good place to start is with 
6307 \begin_inset Flex Code
6308 status collapsed
6309
6310 \begin_layout Plain Layout
6311 stdsections.inc
6312 \end_layout
6313
6314 \end_inset
6315
6316 , which is included in 
6317 \begin_inset Flex Code
6318 status collapsed
6319
6320 \begin_layout Plain Layout
6321 article.layout
6322 \end_layout
6323
6324 \end_inset
6325
6326
6327 \begin_inset Flex Code
6328 status collapsed
6329
6330 \begin_layout Plain Layout
6331 book.layout
6332 \end_layout
6333
6334 \end_inset
6335
6336 , and many of the other layout files for document classes.
6337  This file is where sections and the like are defined: 
6338 \begin_inset Flex Code
6339 status collapsed
6340
6341 \begin_layout Plain Layout
6342 stdsections.inc
6343 \end_layout
6344
6345 \end_inset
6346
6347  tells \SpecialChar LyX
6348  how paragraphs that are marked with the Section, Subsection, etc,
6349  styles can be translated into corresponding \SpecialChar LaTeX
6350 , DocBook, and XHTML commands
6351  and tags.
6352  The 
6353 \begin_inset Flex Code
6354 status collapsed
6355
6356 \begin_layout Plain Layout
6357 article.layout
6358 \end_layout
6359
6360 \end_inset
6361
6362  file basically just includes several of these 
6363 \begin_inset Flex Code
6364 status collapsed
6365
6366 \begin_layout Plain Layout
6367 std*.inc
6368 \end_layout
6369
6370 \end_inset
6371
6372  files.
6373 \end_layout
6374
6375 \begin_layout Standard
6376 Defining the \SpecialChar LyX
6377 –\SpecialChar LaTeX
6378  correspondence is not the only thing layout files do, though.
6379  Their other job is to define how the \SpecialChar LyX
6380  constructs themselves will appear
6381  on-screen.
6382  The fact that layout files have these two jobs is often a source of confusion,
6383  because they are completely separate.
6384  Telling \SpecialChar LyX
6385  how to translate a certain paragraph style into \SpecialChar LaTeX
6386  does not tell
6387  \SpecialChar LyX
6388  how to display it; conversely, telling \SpecialChar LyX
6389  how to display a certain paragraph
6390  style does not tell \SpecialChar LyX
6391  how to translate it into \SpecialChar LaTeX
6392  (let alone tell \SpecialChar LaTeX
6393  how to
6394  display it).
6395  So, in general, when you define a new \SpecialChar LyX
6396  construct, you must always do two
6397  quite separate things: (i)
6398 \begin_inset space ~
6399 \end_inset
6400
6401 tell \SpecialChar LyX
6402  how to translate it into \SpecialChar LaTeX
6403  and (ii)
6404 \begin_inset space ~
6405 \end_inset
6406
6407 tell \SpecialChar LyX
6408  how to display it.
6409 \end_layout
6410
6411 \begin_layout Standard
6412 Much the same is true, of course, as regards \SpecialChar LyX
6413 's other backend formats, though
6414  XHTML is in some ways different, because in that case \SpecialChar LyX
6415  
6416 \emph on
6417 is
6418 \emph default
6419  able, to some extent, to use information about how it should display a
6420  paragraph on the screen to output information (in the form of CSS) about
6421  how the paragraph should be displayed in a browser.
6422  Even in this case, however, the distinction between what \SpecialChar LyX
6423  does internally
6424  and how things are rendered externally remains in force, and the two can
6425  be controlled separately.
6426  See 
6427 \begin_inset CommandInset ref
6428 LatexCommand ref
6429 reference "sec:Tags-for-XHTML"
6430
6431 \end_inset
6432
6433  for the details.
6434 \end_layout
6435
6436 \begin_layout Section
6437 Installing new \SpecialChar LaTeX
6438  files
6439 \end_layout
6440
6441 \begin_layout Standard
6442 Some installations may not include a \SpecialChar LaTeX
6443  package or class file that you would
6444  like to use within \SpecialChar LyX
6445 .
6446  For example, you might need Foil\SpecialChar TeX
6447 , a package for preparing slides for overhead
6448  projectors.
6449  Modern \SpecialChar LaTeX
6450  distributions like \SpecialChar TeX
6451 Live (2008 or newer) or MiK\SpecialChar TeX
6452  provide a user interface
6453  for installing such packages.
6454  For example, with MiK\SpecialChar TeX
6455 , you start the program 
6456 \begin_inset Quotes eld
6457 \end_inset
6458
6459 Package
6460 \begin_inset space ~
6461 \end_inset
6462
6463 Manager
6464 \begin_inset Quotes erd
6465 \end_inset
6466
6467  to get a list of available packages.
6468  To install one of them, right click on it or use the corresponding toolbar
6469  button.
6470 \end_layout
6471
6472 \begin_layout Standard
6473 If your \SpecialChar LaTeX
6474  distribution does not provide such a `package manager', or if the
6475  package is not available from your distribution, then follow these steps
6476  to install it manually:
6477 \end_layout
6478
6479 \begin_layout Enumerate
6480 Get the package from 
6481 \begin_inset CommandInset href
6482 LatexCommand href
6483 name "CTAN"
6484 target "http://www.ctan.org/"
6485 literal "false"
6486
6487 \end_inset
6488
6489  or wherever.
6490 \end_layout
6491
6492 \begin_layout Enumerate
6493 If the package contains a file with the ending 
6494 \begin_inset Quotes eld
6495 \end_inset
6496
6497
6498 \begin_inset Flex Code
6499 status collapsed
6500
6501 \begin_layout Plain Layout
6502 .ins
6503 \end_layout
6504
6505 \end_inset
6506
6507
6508 \begin_inset Quotes erd
6509 \end_inset
6510
6511  (is the case for Foil\SpecialChar TeX
6512 ) then open a console, change to the folder of this
6513  file and execute the command 
6514 \begin_inset Flex Code
6515 status collapsed
6516
6517 \begin_layout Plain Layout
6518 latex foiltex.ins
6519 \end_layout
6520
6521 \end_inset
6522
6523 .
6524  You have now unpacked the package and have all files to install it.
6525  Most \SpecialChar LaTeX
6526 -packages are not packed and you can skip this step.
6527 \end_layout
6528
6529 \begin_layout Enumerate
6530 Now you need to decide if the package should be available for all users
6531  or only for you.
6532 \end_layout
6533
6534 \begin_deeper
6535 \begin_layout Enumerate
6536 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6537  for all users on your system, then install it in your `local' \SpecialChar TeX
6538  tree, otherwise
6539  install it in your own `user' \SpecialChar TeX
6540  tree.
6541  Where these trees should be created, if they do not already exist, depends
6542  on your system.
6543  To find this out, look in the file 
6544 \begin_inset Flex Code
6545 status collapsed
6546
6547 \begin_layout Plain Layout
6548 texmf.cnf
6549 \end_layout
6550
6551 \end_inset
6552
6553 .
6554 \begin_inset Foot
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558 This is usually in the directory 
6559 \begin_inset Flex Code
6560 status collapsed
6561
6562 \begin_layout Plain Layout
6563 $TEXMF/web2c
6564 \end_layout
6565
6566 \end_inset
6567
6568 , though you can execute the command 
6569 \begin_inset Flex Code
6570 status collapsed
6571
6572 \begin_layout Plain Layout
6573 kpsewhich texmf.cnf
6574 \end_layout
6575
6576 \end_inset
6577
6578  to locate it.
6579 \end_layout
6580
6581 \end_inset
6582
6583  The location of the `local' \SpecialChar TeX
6584  tree is defined by the 
6585 \begin_inset Flex Code
6586 status collapsed
6587
6588 \begin_layout Plain Layout
6589 TEXMFLOCAL
6590 \end_layout
6591
6592 \end_inset
6593
6594  variable; this is usually somewhere like 
6595 \begin_inset Flex Code
6596 status collapsed
6597
6598 \begin_layout Plain Layout
6599 /usr/local/share/texmf
6600 \end_layout
6601
6602 \end_inset
6603
6604  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6605 Live
6606  distribution.
6607  The location of the `user' \SpecialChar TeX
6608  tree is defined by 
6609 \begin_inset Flex Code
6610 status collapsed
6611
6612 \begin_layout Plain Layout
6613 TEXMFHOME
6614 \end_layout
6615
6616 \end_inset
6617
6618  and is commonly 
6619 \begin_inset Flex Code
6620 status collapsed
6621
6622 \begin_layout Plain Layout
6623 $HOME/texmf
6624 \end_layout
6625
6626 \end_inset
6627
6628  or 
6629 \begin_inset Flex Code
6630 status collapsed
6631
6632 \begin_layout Plain Layout
6633
6634 \family sans
6635 $HOME/.texliveXXXX
6636 \end_layout
6637
6638 \end_inset
6639
6640 .
6641  (If these variables are not predefined, you have to define them.) You'll
6642  probably need root permissions to create or modify the `local' tree, but
6643  not for your `user' tree.
6644 \begin_inset Newline newline
6645 \end_inset
6646
6647 In general, it is recommended to install in the user tree because your user
6648  will not be modified or even overwritten when you upgrade your system.
6649  It will typically also be backed up together with everything else when
6650  you backup your home directory (which, of course, you do on a regular basis).
6651 \end_layout
6652
6653 \begin_layout Enumerate
6654 On Windows, if you want the new package to be available for all users on
6655  your system, change to the folder where \SpecialChar LaTeX
6656  is installed and then change to
6657  the subfolder 
6658 \begin_inset Flex Code
6659 status collapsed
6660
6661 \begin_layout Plain Layout
6662 ~
6663 \backslash
6664 tex
6665 \backslash
6666 latex
6667 \end_layout
6668
6669 \end_inset
6670
6671 .
6672  (For MiK\SpecialChar TeX
6673 , this would be by default the folder 
6674 \begin_inset Flex Code
6675 status collapsed
6676
6677 \begin_layout Plain Layout
6678 ~:
6679 \backslash
6680 Programs
6681 \backslash
6682 MiKTeX
6683 \backslash
6684 tex
6685 \backslash
6686 latex
6687 \end_layout
6688
6689 \end_inset
6690
6691 .)
6692 \begin_inset Foot
6693 status collapsed
6694
6695 \begin_layout Plain Layout
6696 Note that this will be the correct path only on English installations.
6697  On a German one, it would be 
6698 \begin_inset Flex Code
6699 status collapsed
6700
6701 \begin_layout Plain Layout
6702 ~:
6703 \backslash
6704 Programme
6705 \backslash
6706 MiKTeX
6707 \backslash
6708 tex
6709 \backslash
6710 latex
6711 \end_layout
6712
6713 \end_inset
6714
6715 , and similarly for other languages.
6716 \end_layout
6717
6718 \end_inset
6719
6720  Create there a new folder 
6721 \begin_inset Flex Code
6722 status collapsed
6723
6724 \begin_layout Plain Layout
6725 foiltex
6726 \end_layout
6727
6728 \end_inset
6729
6730  and copy all files of the package into it.
6731  
6732 \begin_inset Newline newline
6733 \end_inset
6734
6735 If the package should only available for you or you don't have admin permissions
6736 , do the same, but in the local \SpecialChar LaTeX
6737  folder.
6738  E.
6739 \begin_inset space \thinspace{}
6740 \end_inset
6741
6742 g., for MiK\SpecialChar TeX
6743
6744 \begin_inset space ~
6745 \end_inset
6746
6747 2.8 under Windows XP, this would be the folder:
6748 \begin_inset Newline newline
6749 \end_inset
6750
6751
6752 \family sans
6753
6754 \begin_inset Flex Code
6755 status collapsed
6756
6757 \begin_layout Plain Layout
6758 ~:
6759 \backslash
6760 Documents and Settings
6761 \backslash
6762 <username>
6763 \backslash
6764 Application Data
6765 \backslash
6766
6767 \end_layout
6768
6769 \end_inset
6770
6771
6772 \begin_inset Newline newline
6773 \end_inset
6774
6775
6776 \family default
6777
6778 \begin_inset Phantom HPhantom
6779 status open
6780
6781 \begin_layout Plain Layout
6782
6783 \family sans
6784 ~:
6785 \backslash
6786
6787 \end_layout
6788
6789 \end_inset
6790
6791
6792 \begin_inset Flex Code
6793 status collapsed
6794
6795 \begin_layout Plain Layout
6796 MiKTeX
6797 \backslash
6798 2.8
6799 \backslash
6800 tex
6801 \backslash
6802 latex
6803 \end_layout
6804
6805 \end_inset
6806
6807
6808 \begin_inset Newline newline
6809 \end_inset
6810
6811 On Vista, it would be:
6812 \begin_inset Newline newline
6813 \end_inset
6814
6815
6816 \begin_inset Flex Code
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 ~:
6821 \backslash
6822 Users
6823 \backslash
6824 <username>
6825 \backslash
6826 AppData
6827 \backslash
6828 Roaming
6829 \backslash
6830 2.8
6831 \backslash
6832 MiKTeX
6833 \backslash
6834 tex
6835 \backslash
6836 latex
6837 \end_layout
6838
6839 \end_inset
6840
6841
6842 \end_layout
6843
6844 \end_deeper
6845 \begin_layout Enumerate
6846 Now one only need to tell \SpecialChar LaTeX
6847  that there are new files.
6848  This depends on the used \SpecialChar LaTeX
6849 -Distribution:
6850 \end_layout
6851
6852 \begin_deeper
6853 \begin_layout Enumerate
6854 For \SpecialChar TeX
6855 Live execute the command 
6856 \begin_inset Flex Code
6857 status collapsed
6858
6859 \begin_layout Plain Layout
6860 texhash
6861 \end_layout
6862
6863 \end_inset
6864
6865  from a console.
6866  If you installed the package for all users, then you will probably need
6867  to have root permissions for that.
6868 \end_layout
6869
6870 \begin_layout Enumerate
6871 For MiK\SpecialChar TeX
6872 , if you have installed the package for all users, start the program
6873  
6874 \begin_inset Quotes eld
6875 \end_inset
6876
6877 Settings
6878 \begin_inset space ~
6879 \end_inset
6880
6881 (Admin)
6882 \begin_inset Quotes erd
6883 \end_inset
6884
6885  and press the button marked 
6886 \begin_inset Quotes eld
6887 \end_inset
6888
6889 Refresh FNDB
6890 \begin_inset Quotes erd
6891 \end_inset
6892
6893 .
6894  Otherwise start the program 
6895 \begin_inset Quotes eld
6896 \end_inset
6897
6898 Settings
6899 \begin_inset Quotes erd
6900 \end_inset
6901
6902  and do the same.
6903 \end_layout
6904
6905 \end_deeper
6906 \begin_layout Enumerate
6907 Finally, you need to tell \SpecialChar LyX
6908  that there are new packages available.
6909  So, in \SpecialChar LyX
6910 , use the menu 
6911 \begin_inset Flex Noun
6912 status collapsed
6913
6914 \begin_layout Plain Layout
6915 Tools
6916 \family sans
6917 \SpecialChar menuseparator
6918 Reconfigure
6919 \end_layout
6920
6921 \end_inset
6922
6923  and then restart \SpecialChar LyX
6924 .
6925 \end_layout
6926
6927 \begin_layout Standard
6928 Now the package is installed.
6929  In our example, the document class 
6930 \begin_inset Flex Code
6931 status collapsed
6932
6933 \begin_layout Plain Layout
6934 FoilTex
6935 \end_layout
6936
6937 \end_inset
6938
6939  will now be available under 
6940 \begin_inset Flex Noun
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 Document\SpecialChar menuseparator
6945 Settings\SpecialChar menuseparator
6946 Document Class
6947 \end_layout
6948
6949 \end_inset
6950
6951  (in the 
6952 \begin_inset Quotes eld
6953 \end_inset
6954
6955 Presentations
6956 \begin_inset Quotes erd
6957 \end_inset
6958
6959  category).
6960  
6961 \end_layout
6962
6963 \begin_layout Standard
6964 If you would like to use a \SpecialChar LaTeX
6965  document class that is not even listed in the
6966  menu 
6967 \begin_inset Flex Noun
6968 status collapsed
6969
6970 \begin_layout Plain Layout
6971 Document\SpecialChar menuseparator
6972 Settings\SpecialChar menuseparator
6973 Document Class
6974 \end_layout
6975
6976 \end_inset
6977
6978 , then you need to create a `layout' file for it.
6979  That is the topic of the next section.
6980 \end_layout
6981
6982 \begin_layout Section
6983 Types of layout files
6984 \end_layout
6985
6986 \begin_layout Standard
6987 This section describes the various sorts of \SpecialChar LyX
6988  files that contain layout informati
6989 on.
6990  These files describe various paragraph and character styles, determining
6991  how \SpecialChar LyX
6992  should display them and how they should be translated into \SpecialChar LaTeX
6993 , DocBook,
6994  XHTML, or whatever output format is being used.
6995  
6996 \end_layout
6997
6998 \begin_layout Standard
6999 We shall try to provide a thorough description of the process of writing
7000  layout files here.
7001  However, there are so many different types of documents supported even
7002  by just \SpecialChar LaTeX
7003  that we can't hope to cover every different possibility or problem
7004  you might encounter.
7005  The \SpecialChar LyX
7006  users' list is frequented by people with lots of experience with layout
7007  design who are willing to share what they've learned, so please feel free
7008  to ask questions there.
7009 \end_layout
7010
7011 \begin_layout Standard
7012 As you prepare to write a new layout, it is extremely helpful to look at
7013  the layouts distributed with \SpecialChar LyX
7014 .
7015  If you write a \SpecialChar LyX
7016  layout for a \SpecialChar LaTeX
7017  document class that might also be used by
7018  others, or write a module that might be useful to others, then you should
7019  consider posting your layout to the 
7020 \begin_inset CommandInset href
7021 LatexCommand href
7022 name "layout section on the LyX wiki"
7023 target "https://wiki.lyx.org/Layouts/Layouts"
7024 literal "false"
7025
7026 \end_inset
7027
7028  or even to the \SpecialChar LyX
7029  developers' list, so that it might be included in \SpecialChar LyX
7030  itself.
7031 \begin_inset Foot
7032 status collapsed
7033
7034 \begin_layout Plain Layout
7035 Note that \SpecialChar LyX
7036  is licensed under the General Public License, so any material
7037  that is contributed to \SpecialChar LyX
7038  must be similarly licensed.
7039 \end_layout
7040
7041 \end_inset
7042
7043
7044 \end_layout
7045
7046 \begin_layout Subsection
7047 Layout modules
7048 \begin_inset CommandInset label
7049 LatexCommand label
7050 name "subsec:Layout-modules"
7051
7052 \end_inset
7053
7054
7055 \end_layout
7056
7057 \begin_layout Standard
7058 We have spoken to this point about `layout files'.
7059  But there are different sorts of files that contain layout information.
7060  Layout files, strictly so called, have the 
7061 \begin_inset Flex Code
7062 status collapsed
7063
7064 \begin_layout Plain Layout
7065 .layout
7066 \end_layout
7067
7068 \end_inset
7069
7070  extension and provide \SpecialChar LyX
7071  with information about document classes.
7072  Since \SpecialChar LyX
7073  1.6 layout information can also be contained in layout 
7074 \emph on
7075 modules
7076 \emph default
7077 , which have the 
7078 \begin_inset Flex Code
7079 status collapsed
7080
7081 \begin_layout Plain Layout
7082 .module
7083 \end_layout
7084
7085 \end_inset
7086
7087  extension.
7088  Modules are to \SpecialChar LaTeX
7089  packages much as layouts are to \SpecialChar LaTeX
7090  classes, and some modules—such
7091  as the 
7092 \begin_inset Flex Code
7093 status collapsed
7094
7095 \begin_layout Plain Layout
7096 endnotes
7097 \end_layout
7098
7099 \end_inset
7100
7101  module—specifically provide support for one package.
7102  In a sense, layout modules are similar to included
7103 \begin_inset Foot
7104 status collapsed
7105
7106 \begin_layout Plain Layout
7107 These can have any extension, but by convention have the 
7108 \begin_inset Flex Code
7109 status collapsed
7110
7111 \begin_layout Plain Layout
7112 .inc
7113 \end_layout
7114
7115 \end_inset
7116
7117  extension.
7118 \end_layout
7119
7120 \end_inset
7121
7122  files—files like 
7123 \begin_inset Flex Code
7124 status collapsed
7125
7126 \begin_layout Plain Layout
7127 stdsections.inc
7128 \end_layout
7129
7130 \end_inset
7131
7132 —in that modules are not specific to a given document class but may be used
7133  with many different classes.
7134  The difference is that using an included file with 
7135 \begin_inset Flex Code
7136 status collapsed
7137
7138 \begin_layout Plain Layout
7139 article.cls
7140 \end_layout
7141
7142 \end_inset
7143
7144  requires editing that file.
7145  Modules, by contrast, are selected in the 
7146 \begin_inset Flex Noun
7147 status collapsed
7148
7149 \begin_layout Plain Layout
7150 Document\SpecialChar menuseparator
7151 Settings
7152 \end_layout
7153
7154 \end_inset
7155
7156  dialog.
7157 \end_layout
7158
7159 \begin_layout Standard
7160 Building modules is the easiest way to get started with layout editing,
7161  since it can be as simple as adding a single new paragraph style or flex
7162  inset.
7163  But modules may, in principle, contain anything a layout file can contain.
7164 \end_layout
7165
7166 \begin_layout Standard
7167 After creating a new module and copying it to the 
7168 \begin_inset Flex Code
7169 status collapsed
7170
7171 \begin_layout Plain Layout
7172 layouts/
7173 \end_layout
7174
7175 \end_inset
7176
7177  folder, you will need to reconfigure and then restart \SpecialChar LyX
7178  for the module to
7179  appear in the menu.
7180  However, changes you make to the module will be seen immediately, if you
7181  open 
7182 \begin_inset Flex Noun
7183 status collapsed
7184
7185 \begin_layout Plain Layout
7186 Document\SpecialChar menuseparator
7187 Settings
7188 \end_layout
7189
7190 \end_inset
7191
7192 , highlight something, and then hit 
7193 \begin_inset Quotes eld
7194 \end_inset
7195
7196 OK
7197 \begin_inset Quotes erd
7198 \end_inset
7199
7200 .
7201  
7202 \emph on
7203 It is strongly recommended that you save your work before doing this
7204 \emph default
7205 .
7206  In fact, 
7207 \emph on
7208 it is strongly recommended that you not attempt to edit modules while simultaneo
7209 usly working on actual documents
7210 \emph default
7211 .
7212  Though of course the developers strive to keep \SpecialChar LyX
7213  stable in such situations,
7214  syntax errors and the like in your module file could cause strange behavior.
7215 \end_layout
7216
7217 \begin_layout Subsubsection
7218 Local Layout
7219 \end_layout
7220
7221 \begin_layout Standard
7222 Modules are to \SpecialChar LyX
7223  as packages are to \SpecialChar LaTeX
7224 .
7225  Sometimes, however, you find yourself wanting a specific inset or character
7226  style just for one document and writing a module that will also be available
7227  to other documents makes little sense.
7228  What you need is \SpecialChar LyX
7229 's 
7230 \begin_inset Quotes eld
7231 \end_inset
7232
7233 Local Layout
7234 \begin_inset Quotes erd
7235 \end_inset
7236
7237 .
7238 \end_layout
7239
7240 \begin_layout Standard
7241 You will find it under 
7242 \family sans
7243 Document\SpecialChar menuseparator
7244 Settings\SpecialChar menuseparator
7245 Local Layout
7246 \family default
7247 .
7248  The large text box allows you to enter anything that you might enter in
7249  a layout file or module.
7250  You can think of a document's local layout, in fact, as a module that belongs
7251  just to it.
7252  So, in particular, you must enter a 
7253 \begin_inset Flex Code
7254 status collapsed
7255
7256 \begin_layout Plain Layout
7257 Format
7258 \end_layout
7259
7260 \end_inset
7261
7262  tag.
7263  Any format is acceptable, but one would normally use the format current
7264  at the time.
7265  (In \SpecialChar LyX
7266  
7267 \begin_inset Info
7268 type  "lyxinfo"
7269 arg   "version"
7270 \end_inset
7271
7272 , the current layout format is 
7273 \begin_inset Info
7274 type  "lyxinfo"
7275 arg   "layoutformat"
7276 \end_inset
7277
7278 .)
7279 \end_layout
7280
7281 \begin_layout Standard
7282 When you have entered something in the 
7283 \begin_inset Flex Code
7284 status collapsed
7285
7286 \begin_layout Plain Layout
7287 Local Layout
7288 \end_layout
7289
7290 \end_inset
7291
7292  pane, \SpecialChar LyX
7293  will enable the 
7294 \begin_inset Quotes eld
7295 \end_inset
7296
7297 Validate
7298 \begin_inset Quotes erd
7299 \end_inset
7300
7301  button at the bottom.
7302  Clicking this button will cause \SpecialChar LyX
7303  to determine whether what you have entered
7304  is valid layout information for the chosen format.
7305  \SpecialChar LyX
7306  will report the result but, unfortunately, will not tell you what errors
7307  there might have been.
7308  These will be written to the terminal, however, if \SpecialChar LyX
7309  is started from a terminal.
7310  You will not be permitted to save your local layout until you have entered
7311  something valid.
7312 \end_layout
7313
7314 \begin_layout Standard
7315 The warnings at the end of the previous section apply here, too.
7316  Do not play with local layout while you are actually working, especially
7317  if you have not saved your document.
7318  That said, using local layout with a test document can be a very convenient
7319  way to try out layout ideas, or even to start developing a module.
7320 \end_layout
7321
7322 \begin_layout Subsection
7323 Layout for 
7324 \begin_inset Flex Noun
7325 status collapsed
7326
7327 \begin_layout Plain Layout
7328 .sty
7329 \end_layout
7330
7331 \end_inset
7332
7333  files
7334 \end_layout
7335
7336 \begin_layout Standard
7337 There are two situations you are likely to encounter when wanting to support
7338  a new \SpecialChar LaTeX
7339  document class, involving style (
7340 \begin_inset Flex Code
7341 status collapsed
7342
7343 \begin_layout Plain Layout
7344 .sty
7345 \end_layout
7346
7347 \end_inset
7348
7349 ) files and \SpecialChar LaTeX2e
7350  class (
7351 \begin_inset Flex Code
7352 status collapsed
7353
7354 \begin_layout Plain Layout
7355 .cls
7356 \end_layout
7357
7358 \end_inset
7359
7360 ) .
7361  Supporting a style file is usually fairly easy.
7362  Supporting a new class file is a bit harder.
7363  We'll discuss the former in this section and the latter in the next.
7364  
7365 \change_deleted 5863208 1594239023
7366 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7367 \change_unchanged
7368
7369 \end_layout
7370
7371 \begin_layout Standard
7372 The easier case is the one in which your new document class is provided
7373  as a style file that is to be used in conjunction with an already supported
7374  document class.
7375  For the sake of the example, we'll assume that the style file is called
7376  
7377 \begin_inset Flex Noun
7378 status collapsed
7379
7380 \begin_layout Plain Layout
7381 myclass.sty
7382 \end_layout
7383
7384 \end_inset
7385
7386  and that it is meant to be used with 
7387 \begin_inset Flex Noun
7388 status collapsed
7389
7390 \begin_layout Plain Layout
7391 report.cls
7392 \end_layout
7393
7394 \end_inset
7395
7396 , which is a standard class.
7397  
7398 \end_layout
7399
7400 \begin_layout Standard
7401 Start by copying the existing class's layout file into your local directory:
7402 \begin_inset Foot
7403 status collapsed
7404
7405 \begin_layout Plain Layout
7406 Of course, which directory is your local directory will vary by platform,
7407  and \SpecialChar LyX
7408  allows you to specify your local directory on startup, too, using
7409  the 
7410 \begin_inset Flex Code
7411 status collapsed
7412
7413 \begin_layout Plain Layout
7414 -userdir
7415 \end_layout
7416
7417 \end_inset
7418
7419  option.
7420 \end_layout
7421
7422 \end_inset
7423
7424
7425 \end_layout
7426
7427 \begin_layout LyX-Code
7428 cp report.layout ~/.lyx/layouts/myclass.layout
7429 \end_layout
7430
7431 \begin_layout Standard
7432 Then edit 
7433 \begin_inset Flex Code
7434 status collapsed
7435
7436 \begin_layout Plain Layout
7437 myclass.layout
7438 \end_layout
7439
7440 \end_inset
7441
7442  and change the line: 
7443 \end_layout
7444
7445 \begin_layout LyX-Code
7446
7447 \backslash
7448 DeclareLaTeXClass{Report (Standard Class)}
7449 \end_layout
7450
7451 \begin_layout Standard
7452 to read
7453 \end_layout
7454
7455 \begin_layout LyX-Code
7456
7457 \backslash
7458 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7459 \end_layout
7460
7461 \begin_layout Standard
7462 Then add:
7463 \end_layout
7464
7465 \begin_layout LyX-Code
7466 Preamble 
7467 \begin_inset Newline newline
7468 \end_inset
7469
7470     
7471 \backslash
7472 usepackage{myclass}
7473 \begin_inset Newline newline
7474 \end_inset
7475
7476 EndPreamble
7477 \end_layout
7478
7479 \begin_layout Standard
7480 near the top of the file.
7481 \end_layout
7482
7483 \begin_layout Standard
7484 Start \SpecialChar LyX
7485  and select 
7486 \begin_inset Flex Noun
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 Tools\SpecialChar menuseparator
7491 Reconfigure
7492 \end_layout
7493
7494 \end_inset
7495
7496 .
7497  Then restart \SpecialChar LyX
7498  and try creating a new document.
7499  You should see "
7500 \begin_inset Flex Noun
7501 status collapsed
7502
7503 \begin_layout Plain Layout
7504 Report (My Class)
7505 \end_layout
7506
7507 \end_inset
7508
7509 " as a document class option in the 
7510 \begin_inset Flex Noun
7511 status collapsed
7512
7513 \begin_layout Plain Layout
7514 Document\SpecialChar menuseparator
7515 Settings
7516 \end_layout
7517
7518 \end_inset
7519
7520  dialog.
7521  It is likely that some of the sectioning commands and such in your new
7522  class will work differently from how they worked in the base class—
7523 \begin_inset Flex Code
7524 status collapsed
7525
7526 \begin_layout Plain Layout
7527 report
7528 \end_layout
7529
7530 \end_inset
7531
7532  in this example—so you can fiddle around with the settings for the different
7533  sections if you wish.
7534  The layout information for sections is contained in 
7535 \begin_inset Flex Code
7536 status collapsed
7537
7538 \begin_layout Plain Layout
7539 stdsections.inc
7540 \end_layout
7541
7542 \end_inset
7543
7544 , but you do not need to copy and change this file.
7545  Instead, you can simply add your changes to your layout file, after the
7546  line 
7547 \begin_inset Flex Code
7548 status collapsed
7549
7550 \begin_layout Plain Layout
7551 Input stdclass.inc
7552 \end_layout
7553
7554 \end_inset
7555
7556 , which itself includes 
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561 stdsections.inc
7562 \end_layout
7563
7564 \end_inset
7565
7566 .
7567  For example, you might add these lines:
7568 \end_layout
7569
7570 \begin_layout LyX-Code
7571 Style Chapter
7572 \end_layout
7573
7574 \begin_layout LyX-Code
7575     Font
7576 \end_layout
7577
7578 \begin_layout LyX-Code
7579         Family Sans
7580 \end_layout
7581
7582 \begin_layout LyX-Code
7583     EndFont
7584 \end_layout
7585
7586 \begin_layout LyX-Code
7587 End
7588 \end_layout
7589
7590 \begin_layout Standard
7591 to change the font for chapter headings to sans-serif.
7592  This will override (or, in this case, add to) the existing declaration
7593  for the Chapter style.
7594  
7595 \end_layout
7596
7597 \begin_layout Standard
7598 Your new package may also provide commands or environments not present in
7599  the base class.
7600  In this case, you will want to add these to the layout file.
7601  See 
7602 \begin_inset CommandInset ref
7603 LatexCommand ref
7604 reference "sec:TextClass"
7605
7606 \end_inset
7607
7608  for information on how to do so.
7609 \end_layout
7610
7611 \begin_layout Standard
7612 If 
7613 \begin_inset Flex Noun
7614 status collapsed
7615
7616 \begin_layout Plain Layout
7617 myclass.sty
7618 \end_layout
7619
7620 \end_inset
7621
7622  can be used with several different document classes, and even if it cannot,
7623  you might find it easiest just to write a module that you can load with
7624  the base class.
7625  The simplest possible such module would be:
7626 \end_layout
7627
7628 \begin_layout LyX-Code
7629 #
7630 \backslash
7631 DeclareLyXModule{My Class} 
7632 \end_layout
7633
7634 \begin_layout LyX-Code
7635 #DescriptionBegin 
7636 \end_layout
7637
7638 \begin_layout LyX-Code
7639 #Support for myclass.sty.
7640 \end_layout
7641
7642 \begin_layout LyX-Code
7643 #DescriptionEnd
7644 \begin_inset Newline newline
7645 \end_inset
7646
7647
7648 \end_layout
7649
7650 \begin_layout LyX-Code
7651 Format 
7652 \begin_inset Info
7653 type  "lyxinfo"
7654 arg   "layoutformat"
7655 \end_inset
7656
7657
7658 \begin_inset Newline newline
7659 \end_inset
7660
7661
7662 \end_layout
7663
7664 \begin_layout LyX-Code
7665 Preamble
7666 \begin_inset Newline newline
7667 \end_inset
7668
7669     
7670 \backslash
7671 usepackage{myclass}
7672 \begin_inset Newline newline
7673 \end_inset
7674
7675 EndPreamble
7676 \end_layout
7677
7678 \begin_layout Standard
7679 A more complex module might modify the behavior of some existing constructs
7680  or define some new ones.
7681  Again, see 
7682 \begin_inset CommandInset ref
7683 LatexCommand ref
7684 reference "sec:TextClass"
7685
7686 \end_inset
7687
7688  for discussion.
7689 \end_layout
7690
7691 \begin_layout Subsection
7692 Layout for 
7693 \begin_inset Flex Noun
7694 status collapsed
7695
7696 \begin_layout Plain Layout
7697 .cls
7698 \end_layout
7699
7700 \end_inset
7701
7702  files
7703 \end_layout
7704
7705 \begin_layout Standard
7706 There are two possibilities here.
7707  One is that the class file is itself based upon an existing document class.
7708  For example, many thesis classes are based upon 
7709 \begin_inset Flex Noun
7710 status collapsed
7711
7712 \begin_layout Plain Layout
7713 book.cls
7714 \end_layout
7715
7716 \end_inset
7717
7718 .
7719  To see whether yours is, look for a line like
7720 \end_layout
7721
7722 \begin_layout LyX-Code
7723
7724 \backslash
7725 LoadClass{book}
7726 \end_layout
7727
7728 \begin_layout Standard
7729 in the file.
7730  If so, then you may proceed largely as in the previous section, though
7731  the 
7732 \begin_inset Flex Code
7733 status collapsed
7734
7735 \begin_layout Plain Layout
7736 Declare\SpecialChar LaTeX
7737 Class
7738 \end_layout
7739
7740 \end_inset
7741
7742  line will be different.
7743  If your new class is 
7744 \begin_inset Flex Code
7745 status collapsed
7746
7747 \begin_layout Plain Layout
7748 thesis
7749 \end_layout
7750
7751 \end_inset
7752
7753  and it is based upon 
7754 \begin_inset Flex Code
7755 status collapsed
7756
7757 \begin_layout Plain Layout
7758 book
7759 \end_layout
7760
7761 \end_inset
7762
7763 , then the line should read:
7764 \begin_inset Foot
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 And it will be easiest if you save the file to 
7769 \begin_inset Flex Code
7770 status collapsed
7771
7772 \begin_layout Plain Layout
7773 thesis.layout
7774 \end_layout
7775
7776 \end_inset
7777
7778 : \SpecialChar LyX
7779  assumes that the document class has the same name as the layout file.
7780  
7781 \end_layout
7782
7783 \end_inset
7784
7785
7786 \end_layout
7787
7788 \begin_layout LyX-Code
7789
7790 \backslash
7791 DeclareLaTeXClass[thesis,book]{thesis}
7792 \end_layout
7793
7794 \begin_layout Standard
7795 If, on the other hand, the new class is not based upon an existing class,
7796  you will probably have to 
7797 \begin_inset Quotes eld
7798 \end_inset
7799
7800 roll your own
7801 \begin_inset Quotes erd
7802 \end_inset
7803
7804  layout.
7805  We strongly suggest copying an existing layout file which uses a similar
7806  \SpecialChar LaTeX
7807  class and then modifying it, if you can do so.
7808  At least use an existing file as a starting point so you can find out what
7809  items you need to worry about.
7810  Again, the specifics are covered below.
7811 \end_layout
7812
7813 \begin_layout Subsection
7814 Creating templates
7815 \begin_inset CommandInset label
7816 LatexCommand label
7817 name "subsec:Creating-Templates"
7818
7819 \end_inset
7820
7821
7822 \end_layout
7823
7824 \begin_layout Standard
7825 Once you have written a layout file for a new document class, you might
7826  want to consider writing a 
7827 \emph on
7828 template
7829 \emph default
7830  for it, too.
7831  A template acts as a kind of tutorial for your layout, showing how it might
7832  be used, though containing dummy content.
7833  You can of course look at the various templates included with \SpecialChar LyX
7834  for ideas.
7835 \end_layout
7836
7837 \begin_layout Standard
7838 Templates are created just like usual documents: using \SpecialChar LyX
7839 .
7840  The only difference is that usual documents contain all possible settings,
7841  including the font scheme and the paper size.
7842  Usually a user doesn't want a template to overwrite his preferred settings
7843  for such parameters.
7844  For that reason, the designer of a template should remove the corresponding
7845  commands like 
7846 \begin_inset Flex Code
7847 status collapsed
7848
7849 \begin_layout Plain Layout
7850
7851 \backslash
7852 font_roman
7853 \end_layout
7854
7855 \end_inset
7856
7857  or 
7858 \begin_inset Flex Code
7859 status collapsed
7860
7861 \begin_layout Plain Layout
7862
7863 \backslash
7864 papersize
7865 \end_layout
7866
7867 \end_inset
7868
7869  from the template \SpecialChar LyX
7870  file.
7871  This can be done with any simple text-editor, for example 
7872 \begin_inset Flex Code
7873 status collapsed
7874
7875 \begin_layout Plain Layout
7876 vi
7877 \end_layout
7878
7879 \end_inset
7880
7881  or 
7882 \begin_inset Flex Code
7883 status collapsed
7884
7885 \begin_layout Plain Layout
7886 notepad
7887 \end_layout
7888
7889 \end_inset
7890
7891 .
7892 \end_layout
7893
7894 \begin_layout Standard
7895 Put the edited template files you create in 
7896 \begin_inset Flex Code
7897 status collapsed
7898
7899 \begin_layout Plain Layout
7900 UserDir/templates/
7901 \end_layout
7902
7903 \end_inset
7904
7905 , copy the ones you use from the global template directory in 
7906 \begin_inset Flex Code
7907 status collapsed
7908
7909 \begin_layout Plain Layout
7910 LyXDir/templates/
7911 \end_layout
7912
7913 \end_inset
7914
7915  to the same place, and redefine the template path in the 
7916 \begin_inset Flex Noun
7917 status collapsed
7918
7919 \begin_layout Plain Layout
7920 Tools\SpecialChar menuseparator
7921 Preferences\SpecialChar menuseparator
7922 Paths
7923 \end_layout
7924
7925 \end_inset
7926
7927  dialog.
7928 \end_layout
7929
7930 \begin_layout Standard
7931 Note, by the way, that there is a template which has a particular meaning:
7932 \begin_inset Newline linebreak
7933 \end_inset
7934
7935
7936 \begin_inset Flex Code
7937 status collapsed
7938
7939 \begin_layout Plain Layout
7940 defaults.lyx
7941 \end_layout
7942
7943 \end_inset
7944
7945 .
7946  This template is loaded every time you create a new document with 
7947 \begin_inset Flex Noun
7948 status collapsed
7949
7950 \begin_layout Plain Layout
7951 File\SpecialChar menuseparator
7952 New
7953 \end_layout
7954
7955 \end_inset
7956
7957  in order to provide useful defaults.
7958  To create this template from inside \SpecialChar LyX
7959 , all you have to do is to open a document
7960  with the correct settings, and use the 
7961 \begin_inset Flex Noun
7962 status collapsed
7963
7964 \begin_layout Plain Layout
7965 Save as Document Defaults
7966 \end_layout
7967
7968 \end_inset
7969
7970  button.
7971 \end_layout
7972
7973 \begin_layout Subsection
7974 Upgrading old layout files
7975 \end_layout
7976
7977 \begin_layout Standard
7978 The format of layout files changes with each \SpecialChar LyX
7979  release, so old layout files
7980  need to be converted to the new format.
7981  If \SpecialChar LyX
7982  reads a layout file in an older format, it automatically calls the
7983  script 
7984 \begin_inset Flex Code
7985 status collapsed
7986
7987 \begin_layout Plain Layout
7988 layout2layout.py
7989 \end_layout
7990
7991 \end_inset
7992
7993  to convert it to a temporary file in current format.
7994  The original file is left untouched.
7995  If you use the layout file often, then, you may want to convert it permanently,
7996  so that \SpecialChar LyX
7997  does not have to do so itself every time.
7998  To do this, you can call the converter manually:
7999 \end_layout
8000
8001 \begin_layout Enumerate
8002 rename the file 
8003 \begin_inset Flex Code
8004 status collapsed
8005
8006 \begin_layout Plain Layout
8007 myclass.layout
8008 \end_layout
8009
8010 \end_inset
8011
8012  to 
8013 \begin_inset Flex Code
8014 status collapsed
8015
8016 \begin_layout Plain Layout
8017 myclass.old
8018 \end_layout
8019
8020 \end_inset
8021
8022
8023 \end_layout
8024
8025 \begin_layout Enumerate
8026 Call the command
8027 \begin_inset Newline newline
8028 \end_inset
8029
8030
8031 \begin_inset Flex Code
8032 status collapsed
8033
8034 \begin_layout Plain Layout
8035 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8036 \end_layout
8037
8038 \end_inset
8039
8040
8041 \begin_inset Newline newline
8042 \end_inset
8043
8044 where 
8045 \begin_inset Flex Code
8046 status collapsed
8047
8048 \begin_layout Plain Layout
8049 LyXDir
8050 \end_layout
8051
8052 \end_inset
8053
8054  is the name of your \SpecialChar LyX
8055  system directory.
8056 \end_layout
8057
8058 \begin_layout Standard
8059 Note that manual conversion does not affect included files, so these will
8060  have to be converted separately.
8061 \end_layout
8062
8063 \begin_layout Subsection
8064 \begin_inset CommandInset label
8065 LatexCommand label
8066 name "subsec:Cite-Engine-Files"
8067
8068 \end_inset
8069
8070 Cite engine files
8071 \end_layout
8072
8073 \begin_layout Standard
8074 A specific form of layout files are the so-called 
8075 \begin_inset Flex Code
8076 status collapsed
8077
8078 \begin_layout Plain Layout
8079 *.citeengine
8080 \end_layout
8081
8082 \end_inset
8083
8084  files that are located in the 
8085 \begin_inset Flex Code
8086 status collapsed
8087
8088 \begin_layout Plain Layout
8089 citeengines/
8090 \end_layout
8091
8092 \end_inset
8093
8094  sub-directory.
8095  Their purpose is to define the specifics of \SpecialChar LaTeX
8096  packages aimed at bibliography
8097  generation, such as 
8098 \family sans
8099 natbib
8100 \family default
8101 ,
8102 \family sans
8103  jurabib
8104 \family default
8105  or 
8106 \family sans
8107 biblatex
8108 \family default
8109 , but also the way how normal Bib\SpecialChar TeX
8110  citations (without additional packages)
8111  are handled in \SpecialChar LyX
8112  is defined in such a file.
8113  
8114 \end_layout
8115
8116 \begin_layout Standard
8117 More specifically, it is defined which packages \SpecialChar LyX
8118  needs to load, which citation
8119  commands are available, how these are to be displayed in \SpecialChar LyX
8120  (in the workarea,
8121  the dialogs, the context menus) as well as in the XHTML and plain text
8122  output.
8123  Furthermore, the files specify available style variants (author-year, numerical
8124 , etc.) and their specifics.
8125  The cite engine files are also used to generate the options that are available
8126  in 
8127 \family sans
8128 Document\SpecialChar menuseparator
8129 Settings\SpecialChar menuseparator
8130 Bibliography\SpecialChar menuseparator
8131 Style engine
8132 \family default
8133 .
8134 \end_layout
8135
8136 \begin_layout Standard
8137 Even though a cite engine file is essentially a normal layout file that
8138  could theoretically include any layout information, it usually primarily
8139  includes some specific parameters such as 
8140 \begin_inset Flex Code
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 MaxCiteNames
8145 \end_layout
8146
8147 \end_inset
8148
8149
8150 \begin_inset Flex Code
8151 status collapsed
8152
8153 \begin_layout Plain Layout
8154 CiteFramework
8155 \end_layout
8156
8157 \end_inset
8158
8159
8160 \begin_inset Flex Code
8161 status collapsed
8162
8163 \begin_layout Plain Layout
8164 CiteEngine
8165 \end_layout
8166
8167 \end_inset
8168
8169  and 
8170 \begin_inset Flex Code
8171 status collapsed
8172
8173 \begin_layout Plain Layout
8174 CiteFormat
8175 \end_layout
8176
8177 \end_inset
8178
8179  blocks.
8180  The syntax of the latter two is described in 
8181 \begin_inset CommandInset ref
8182 LatexCommand ref
8183 reference "subsec:Citation-engine-description"
8184 plural "false"
8185 caps "false"
8186 noprefix "false"
8187
8188 \end_inset
8189
8190  and 
8191 \begin_inset CommandInset ref
8192 LatexCommand ref
8193 reference "subsec:Citation-format-description"
8194
8195 \end_inset
8196
8197 , as well as in the files themselves.
8198 \end_layout
8199
8200 \begin_layout Section
8201 \begin_inset CommandInset label
8202 LatexCommand label
8203 name "sec:TextClass"
8204
8205 \end_inset
8206
8207 The layout file format
8208 \end_layout
8209
8210 \begin_layout Standard
8211 The following sections describe how layout files are structured and written.
8212  Our advice is to go slowly, save and test often.
8213  It is really not that hard, except that the multitude of options can become
8214  overwhelming, especially if you try to check out too many at once.
8215  It becomes easier if you use existing layouts of \SpecialChar LyX
8216  as examples/reference
8217  or if you modify an existing layout to your needs.
8218 \end_layout
8219
8220 \begin_layout Standard
8221 Note that all the tags used in layout files are case-insensitive.
8222  This means that 
8223 \begin_inset Flex Code
8224 status collapsed
8225
8226 \begin_layout Plain Layout
8227 Style
8228 \end_layout
8229
8230 \end_inset
8231
8232
8233 \begin_inset Flex Code
8234 status collapsed
8235
8236 \begin_layout Plain Layout
8237 style
8238 \end_layout
8239
8240 \end_inset
8241
8242  and 
8243 \begin_inset Flex Code
8244 status collapsed
8245
8246 \begin_layout Plain Layout
8247 StYlE
8248 \end_layout
8249
8250 \end_inset
8251
8252  are really the same tag.
8253  The possible arguments are printed in brackets after the tag's name.
8254  The default argument is typeset 
8255 \begin_inset Flex Code
8256 status collapsed
8257
8258 \begin_layout Plain Layout
8259
8260 \emph on
8261 emphasized
8262 \end_layout
8263
8264 \end_inset
8265
8266 .
8267  If the argument has a data type like 
8268 \begin_inset Quotes eld
8269 \end_inset
8270
8271 string
8272 \begin_inset Quotes erd
8273 \end_inset
8274
8275  or 
8276 \begin_inset Quotes eld
8277 \end_inset
8278
8279 float
8280 \begin_inset Quotes erd
8281 \end_inset
8282
8283 , the default is shown like this: 
8284 \begin_inset Flex Code
8285 status collapsed
8286
8287 \begin_layout Plain Layout
8288 float=
8289 \emph on
8290 default
8291 \end_layout
8292
8293 \end_inset
8294
8295 .
8296 \end_layout
8297
8298 \begin_layout Subsection
8299 The document class declaration and classification
8300 \end_layout
8301
8302 \begin_layout Standard
8303 Lines in a layout file which begin with 
8304 \begin_inset Flex Code
8305 status collapsed
8306
8307 \begin_layout Plain Layout
8308 #
8309 \end_layout
8310
8311 \end_inset
8312
8313  are comments.
8314  There is one exception to this rule.
8315  All 
8316 \begin_inset Flex Code
8317 status collapsed
8318
8319 \begin_layout Plain Layout
8320 *.layout
8321 \end_layout
8322
8323 \end_inset
8324
8325  files should begin with lines like:
8326 \end_layout
8327
8328 \begin_layout LyX-Code
8329
8330 \size small
8331 #% Do not delete the line below; configure depends on this 
8332 \end_layout
8333
8334 \begin_layout LyX-Code
8335
8336 \size small
8337 #  
8338 \backslash
8339 DeclareLaTeXClass{Article (Standard Class)}
8340 \end_layout
8341
8342 \begin_layout LyX-Code
8343
8344 \size small
8345 #  
8346 \backslash
8347 DeclareCategory{Articles}
8348 \end_layout
8349
8350 \begin_layout Standard
8351 The second and third lines are used when you (re)configure \SpecialChar LyX
8352 .
8353  The layout file is read by the \SpecialChar LaTeX
8354  script 
8355 \begin_inset Flex Code
8356 status collapsed
8357
8358 \begin_layout Plain Layout
8359 chkconfig.ltx
8360 \end_layout
8361
8362 \end_inset
8363
8364 , in a special mode where 
8365 \begin_inset Flex Code
8366 status collapsed
8367
8368 \begin_layout Plain Layout
8369 #
8370 \end_layout
8371
8372 \end_inset
8373
8374  is ignored.
8375  The first line is just a \SpecialChar LaTeX
8376  comment, the second one contains the mandatory
8377  declaration of the text class and the third line contains the optional
8378  classification of the class.
8379  If these lines appear in a file named 
8380 \begin_inset Flex Code
8381 status collapsed
8382
8383 \begin_layout Plain Layout
8384 article.layout
8385 \end_layout
8386
8387 \end_inset
8388
8389 , then they define a text class of name 
8390 \begin_inset Flex Code
8391 status collapsed
8392
8393 \begin_layout Plain Layout
8394 article
8395 \end_layout
8396
8397 \end_inset
8398
8399  (the name of the layout file) which uses the \SpecialChar LaTeX
8400  document class 
8401 \begin_inset Flex Code
8402 status collapsed
8403
8404 \begin_layout Plain Layout
8405 article.cls
8406 \end_layout
8407
8408 \end_inset
8409
8410  (the default is to use the same name as the layout).
8411  The string 
8412 \begin_inset Quotes eld
8413 \end_inset
8414
8415 Article (Standard Class)
8416 \begin_inset Quotes erd
8417 \end_inset
8418
8419  that appears above is used as a description of the text class in the 
8420 \begin_inset Flex Noun
8421 status collapsed
8422
8423 \begin_layout Plain Layout
8424 Document\SpecialChar menuseparator
8425 Settings
8426 \end_layout
8427
8428 \end_inset
8429
8430  dialog.
8431  The category (
8432 \begin_inset Quotes eld
8433 \end_inset
8434
8435 Articles
8436 \begin_inset Quotes erd
8437 \end_inset
8438
8439  in the example) is also used in the 
8440 \begin_inset Flex Noun
8441 status collapsed
8442
8443 \begin_layout Plain Layout
8444 Document\SpecialChar menuseparator
8445 Settings
8446 \end_layout
8447
8448 \end_inset
8449
8450  dialog: the text classes are grouped by these categories (which are usually
8451  genres, so typical categories are 
8452 \begin_inset Quotes eld
8453 \end_inset
8454
8455 Articles
8456 \begin_inset Quotes erd
8457 \end_inset
8458
8459
8460 \begin_inset Quotes eld
8461 \end_inset
8462
8463 Books
8464 \begin_inset Quotes erd
8465 \end_inset
8466
8467
8468 \begin_inset Quotes eld
8469 \end_inset
8470
8471 Reports
8472 \begin_inset Quotes erd
8473 \end_inset
8474
8475
8476 \begin_inset Quotes eld
8477 \end_inset
8478
8479 Letters
8480 \begin_inset Quotes erd
8481 \end_inset
8482
8483
8484 \begin_inset Quotes eld
8485 \end_inset
8486
8487 Presentations
8488 \begin_inset Quotes erd
8489 \end_inset
8490
8491
8492 \begin_inset Quotes eld
8493 \end_inset
8494
8495 Curricula Vitae
8496 \begin_inset Quotes erd
8497 \end_inset
8498
8499  etc.).
8500  If no category has been declared, the class will be put in the 
8501 \begin_inset Quotes eld
8502 \end_inset
8503
8504 Uncategorized
8505 \begin_inset Quotes erd
8506 \end_inset
8507
8508  group.
8509 \end_layout
8510
8511 \begin_layout Standard
8512 Let's assume that you wrote your own text class that uses the 
8513 \begin_inset Flex Code
8514 status collapsed
8515
8516 \begin_layout Plain Layout
8517 article.cls
8518 \end_layout
8519
8520 \end_inset
8521
8522  document class, but where you changed the appearance of the section headings.
8523  If you put it in a file 
8524 \begin_inset Flex Code
8525 status collapsed
8526
8527 \begin_layout Plain Layout
8528 myarticle.layout
8529 \end_layout
8530
8531 \end_inset
8532
8533 , the header of this file should be:
8534 \end_layout
8535
8536 \begin_layout LyX-Code
8537
8538 \size small
8539 #% Do not delete the line below; configure depends on this 
8540 \end_layout
8541
8542 \begin_layout LyX-Code
8543
8544 \size small
8545 #  
8546 \backslash
8547 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8548 \end_layout
8549
8550 \begin_layout LyX-Code
8551
8552 \size small
8553 #  
8554 \backslash
8555 DeclareCategory{Articles}
8556 \end_layout
8557
8558 \begin_layout Standard
8559 This declares a text class 
8560 \begin_inset Flex Code
8561 status collapsed
8562
8563 \begin_layout Plain Layout
8564 myarticle
8565 \end_layout
8566
8567 \end_inset
8568
8569 , associated with the \SpecialChar LaTeX
8570  document class 
8571 \begin_inset Flex Code
8572 status collapsed
8573
8574 \begin_layout Plain Layout
8575 article.cls
8576 \end_layout
8577
8578 \end_inset
8579
8580  and described as 
8581 \begin_inset Quotes eld
8582 \end_inset
8583
8584 Article (with My Own Headings)
8585 \begin_inset Quotes erd
8586 \end_inset
8587
8588 .
8589  If your text class depends on several packages, you can declare it as:
8590 \end_layout
8591
8592 \begin_layout LyX-Code
8593
8594 \size small
8595 #% Do not delete the line below; configure depends on this 
8596 \end_layout
8597
8598 \begin_layout LyX-Code
8599
8600 \size small
8601 #  
8602 \backslash
8603 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8604 \end_layout
8605
8606 \begin_layout LyX-Code
8607
8608 \size small
8609 #  
8610 \backslash
8611 DeclareCategory{Articles}
8612 \end_layout
8613
8614 \begin_layout Standard
8615 This indicates that your text class uses the 
8616 \begin_inset Flex Code
8617 status collapsed
8618
8619 \begin_layout Plain Layout
8620 foo.sty
8621 \end_layout
8622
8623 \end_inset
8624
8625  package.
8626  
8627 \change_deleted 5863208 1594239179
8628 Finally, it is also possible to declare classes for DocBook code.
8629  Typical declarations will look like:
8630 \end_layout
8631
8632 \begin_layout LyX-Code
8633
8634 \change_deleted 5863208 1594239179
8635
8636 \size small
8637 #% Do not delete the line below; configure depends on this 
8638 \end_layout
8639
8640 \begin_layout LyX-Code
8641
8642 \change_deleted 5863208 1594239179
8643
8644 \size small
8645
8646 \backslash
8647 DeclareDocBookClass[article]{SGML (DocBook Article)}
8648 \end_layout
8649
8650 \begin_layout LyX-Code
8651
8652 \change_deleted 5863208 1594239179
8653
8654 \size small
8655
8656 \backslash
8657 DeclareCategory{Articles (DocBook)}
8658 \change_unchanged
8659
8660 \end_layout
8661
8662 \begin_layout Standard
8663 Note that these declarations can also be given an optional parameter declaring
8664  the name of the document class (but not a list).
8665 \end_layout
8666
8667 \begin_layout Standard
8668 So, to be as explicit as possible, the form of the layout declaration is:
8669 \end_layout
8670
8671 \begin_layout LyX-Code
8672
8673 \size small
8674 #  
8675 \backslash
8676 DeclareLaTeXClass[class,package.sty]{layout description}
8677 \end_layout
8678
8679 \begin_layout LyX-Code
8680
8681 \size small
8682 #  
8683 \backslash
8684 DeclareCategory{category}
8685 \end_layout
8686
8687 \begin_layout Standard
8688 The class need only be specified if the name of the \SpecialChar LaTeX
8689  class file and the
8690  name of the layout file are different or if there are packages to load.
8691  If the name of the class file is not specified, then \SpecialChar LyX
8692  will simply assume
8693  that it is the same as the name of the layout file.
8694 \end_layout
8695
8696 \begin_layout Standard
8697 When the text class has been modified to your taste, all you have to do
8698  is to copy it either to 
8699 \begin_inset Flex Code
8700 status collapsed
8701
8702 \begin_layout Plain Layout
8703 LyXDir/layouts/
8704 \end_layout
8705
8706 \end_inset
8707
8708  or to 
8709 \begin_inset Flex Code
8710 status collapsed
8711
8712 \begin_layout Plain Layout
8713 UserDir/layouts
8714 \end_layout
8715
8716 \end_inset
8717
8718 , run 
8719 \begin_inset Flex Noun
8720 status collapsed
8721
8722 \begin_layout Plain Layout
8723 Tools\SpecialChar menuseparator
8724 Reconfigure
8725 \end_layout
8726
8727 \end_inset
8728
8729 , exit \SpecialChar LyX
8730  and restart.
8731  Then your new text class should be available along with the others.
8732 \end_layout
8733
8734 \begin_layout Standard
8735 Once the layout file is installed, you can edit it and see your changes
8736  without having to reconfigure or to restart \SpecialChar LyX
8737 .
8738 \begin_inset Foot
8739 status collapsed
8740
8741 \begin_layout Plain Layout
8742 In versions of \SpecialChar LyX
8743  prior to 1.6, this was not true.
8744  As a result, editing layout files was very time consuming, since you had
8745  constantly to restart \SpecialChar LyX
8746  to see changes.
8747 \end_layout
8748
8749 \end_inset
8750
8751  You can force a reload of the current layout by using the \SpecialChar LyX
8752  function 
8753 \begin_inset Flex Noun
8754 status collapsed
8755
8756 \begin_layout Plain Layout
8757 layout-reload
8758 \end_layout
8759
8760 \end_inset
8761
8762 .
8763  There is no default binding for this function—though, of course, you can
8764  bind it to a key yourself.
8765  But you will normally use this function simply by entering it in the mini-buffe
8766 r.
8767  
8768 \end_layout
8769
8770 \begin_layout Standard
8771
8772 \emph on
8773 Warning
8774 \emph default
8775
8776 \begin_inset Flex Noun
8777 status collapsed
8778
8779 \begin_layout Plain Layout
8780 layout-reload
8781 \end_layout
8782
8783 \end_inset
8784
8785  is very much an `advanced feature'.
8786  It is 
8787 \emph on
8788 strongly
8789 \emph default
8790  recommended that you save your work before using this function.
8791  In fact, it is 
8792 \emph on
8793 strongly
8794 \emph default
8795  recommended that you not attempt to edit layout information while simultaneousl
8796 y working on a document that you care about.
8797  Use a test document.
8798  Syntax errors and the like in your layout file could cause peculiar behavior.
8799  In particular, such errors could cause \SpecialChar LyX
8800  to regard the current layout as
8801  invalid and to attempt to switch to some other layout.
8802 \begin_inset Foot
8803 status collapsed
8804
8805 \begin_layout Plain Layout
8806 Really bad syntax errors may even caused \SpecialChar LyX
8807  to exit.
8808  This is because certain sorts of errors may make \SpecialChar LyX
8809  unable to read 
8810 \emph on
8811 any
8812 \emph default
8813  layout information.
8814  Please be careful.
8815 \end_layout
8816
8817 \end_inset
8818
8819  The \SpecialChar LyX
8820  team strives to keep \SpecialChar LyX
8821  stable in such situations, but safe is better
8822  than sorry.
8823 \begin_inset Foot
8824 status collapsed
8825
8826 \begin_layout Plain Layout
8827 While we're giving advice: make regular backups.
8828  And be nice to your mother.
8829 \end_layout
8830
8831 \end_inset
8832
8833
8834 \end_layout
8835
8836 \begin_layout Subsection
8837 The Module declaration
8838 \end_layout
8839
8840 \begin_layout Standard
8841 A module must begin with a line like the following:
8842 \end_layout
8843
8844 \begin_layout LyX-Code
8845 #
8846 \backslash
8847 DeclareLyXModule[endnotes.sty]{Endnotes}
8848 \change_inserted -712698321 1554395911
8849
8850 \end_layout
8851
8852 \begin_layout LyX-Code
8853
8854 \change_inserted -712698321 1554395924
8855
8856 \size small
8857 #
8858 \backslash
8859 DeclareCategory{Foot- and Endnotes}
8860 \change_deleted -712698321 1554395911
8861
8862 \size default
8863  
8864 \change_unchanged
8865
8866 \end_layout
8867
8868 \begin_layout Standard
8869 The mandatory argument
8870 \change_inserted -712698321 1554395956
8871  of 
8872 \family typewriter
8873
8874 \backslash
8875 DeclareLyXModule
8876 \change_unchanged
8877
8878 \family default
8879 , in curly brackets, is the name of the module, as it should appear in 
8880 \begin_inset Flex Noun
8881 status collapsed
8882
8883 \begin_layout Plain Layout
8884 Document\SpecialChar menuseparator
8885 Settings\SpecialChar menuseparator
8886 Modules
8887 \end_layout
8888
8889 \end_inset
8890
8891 .
8892  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8893  packages
8894  on which the module depends.
8895  It is also possible to use the form 
8896 \begin_inset Flex Noun
8897 status collapsed
8898
8899 \begin_layout Plain Layout
8900 from->to
8901 \end_layout
8902
8903 \end_inset
8904
8905  as an optional argument, which declares that the module can only be used
8906  when there exists a conversion chain between the formats `
8907 \begin_inset Flex Code
8908 status collapsed
8909
8910 \begin_layout Plain Layout
8911 from
8912 \end_layout
8913
8914 \end_inset
8915
8916 ' and `
8917 \begin_inset Flex Code
8918 status collapsed
8919
8920 \begin_layout Plain Layout
8921 to
8922 \end_layout
8923
8924 \end_inset
8925
8926 '.
8927
8928 \change_inserted -712698321 1554396133
8929  The 
8930 \family typewriter
8931
8932 \backslash
8933 DeclareCategory
8934 \family default
8935  declaration is not strictly mandatory, but you should add it, since it
8936  is helpful to find the module.
8937  Please have a look at the existing module categories and if appropriate,
8938  use one of those.
8939 \change_unchanged
8940
8941 \end_layout
8942
8943 \begin_layout Standard
8944 The module 
8945 \change_inserted -712698321 1554395988
8946 and category 
8947 \change_unchanged
8948 declaration should then be followed by lines like the following:
8949 \begin_inset Foot
8950 status collapsed
8951
8952 \begin_layout Plain Layout
8953 Preferably in English if the module should be published with \SpecialChar LyX
8954 .
8955  This description will appear in the list of messages to be translated and
8956  will be thus translated with the next interface update.
8957 \end_layout
8958
8959 \end_inset
8960
8961
8962 \end_layout
8963
8964 \begin_layout LyX-Code
8965 #DescriptionBegin 
8966 \end_layout
8967
8968 \begin_layout LyX-Code
8969 #Adds an endnote command, in addition to footnotes.
8970  
8971 \end_layout
8972
8973 \begin_layout LyX-Code
8974 #You will need to add  
8975 \backslash
8976 theendnotes in TeX code where you 
8977 \end_layout
8978
8979 \begin_layout LyX-Code
8980 #want the endnotes to appear.
8981  
8982 \end_layout
8983
8984 \begin_layout LyX-Code
8985 #DescriptionEnd 
8986 \end_layout
8987
8988 \begin_layout LyX-Code
8989 #Requires: somemodule | othermodule
8990 \end_layout
8991
8992 \begin_layout LyX-Code
8993 #Excludes: badmodule
8994 \end_layout
8995
8996 \begin_layout Standard
8997 The description is used in 
8998 \begin_inset Flex Noun
8999 status collapsed
9000
9001 \begin_layout Plain Layout
9002 Document\SpecialChar menuseparator
9003 Settings\SpecialChar menuseparator
9004 Modules
9005 \end_layout
9006
9007 \end_inset
9008
9009  to provide the user with information about what the module does.
9010  The 
9011 \begin_inset Flex Code
9012 status collapsed
9013
9014 \begin_layout Plain Layout
9015 Requires
9016 \end_layout
9017
9018 \end_inset
9019
9020  line is used to identify other modules with which this one must be used;
9021  the 
9022 \begin_inset Flex Code
9023 status collapsed
9024
9025 \begin_layout Plain Layout
9026 Excludes
9027 \end_layout
9028
9029 \end_inset
9030
9031  line is used to identify modules with which this one may not be used.
9032  Both are optional, and, as shown, multiple modules should be separated
9033  with the pipe symbol: |.
9034  Note that the required modules are treated disjunctively: 
9035 \emph on
9036 at least one
9037 \emph default
9038  of the required modules must be used.
9039  Similarly, 
9040 \emph on
9041 no
9042 \emph default
9043  excluded module may be used.
9044  Note that modules are identified here by their filenames without the 
9045 \begin_inset Flex Code
9046 status collapsed
9047
9048 \begin_layout Plain Layout
9049 .module
9050 \end_layout
9051
9052 \end_inset
9053
9054  extension.
9055  So 
9056 \begin_inset Flex Code
9057 status collapsed
9058
9059 \begin_layout Plain Layout
9060 somemodule
9061 \end_layout
9062
9063 \end_inset
9064
9065  is really 
9066 \begin_inset Flex Code
9067 status collapsed
9068
9069 \begin_layout Plain Layout
9070 somemodule.module
9071 \end_layout
9072
9073 \end_inset
9074
9075 .
9076 \end_layout
9077
9078 \begin_layout Subsection
9079 The CiteEngine file declaration
9080 \end_layout
9081
9082 \begin_layout Standard
9083 A cite engine file must begin with a line like the following:
9084 \end_layout
9085
9086 \begin_layout LyX-Code
9087 #
9088 \backslash
9089 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9090 \end_layout
9091
9092 \begin_layout Standard
9093 The mandatory argument, in curly brackets, is the name of the cite style,
9094  as it should appear in 
9095 \begin_inset Flex Noun
9096 status collapsed
9097
9098 \begin_layout Plain Layout
9099 Document\SpecialChar menuseparator
9100 Settings\SpecialChar menuseparator
9101 Bibliography
9102 \end_layout
9103
9104 \end_inset
9105
9106 .
9107  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9108  packages
9109  on which the cite engine depends.
9110 \end_layout
9111
9112 \begin_layout Standard
9113 The cite engine declaration should then be followed by lines like the following:
9114 \begin_inset Foot
9115 status collapsed
9116
9117 \begin_layout Plain Layout
9118 Preferably in English if the module should be published with \SpecialChar LyX
9119 .
9120  This description will appear in the list of messages to be translated and
9121  will be thus translated with the next interface update.
9122 \end_layout
9123
9124 \end_inset
9125
9126
9127 \end_layout
9128
9129 \begin_layout LyX-Code
9130 # DescriptionBegin
9131 \end_layout
9132
9133 \begin_layout LyX-Code
9134 #   Biblatex supports many author-year and numerical styles.
9135 \end_layout
9136
9137 \begin_layout LyX-Code
9138 #   It is mainly aimed at the Humanities.
9139  It is highly
9140 \end_layout
9141
9142 \begin_layout LyX-Code
9143 #   customizable, fully localized and provides many features
9144 \end_layout
9145
9146 \begin_layout LyX-Code
9147 #   that are not possible with BibTeX.
9148  The use of 'biber' as
9149 \end_layout
9150
9151 \begin_layout LyX-Code
9152 #   bibliography processor is advised.
9153 \end_layout
9154
9155 \begin_layout LyX-Code
9156 # DescriptionEnd
9157 \end_layout
9158
9159 \begin_layout Standard
9160 The description is used in 
9161 \begin_inset Flex Noun
9162 status collapsed
9163
9164 \begin_layout Plain Layout
9165 Document\SpecialChar menuseparator
9166 Settings\SpecialChar menuseparator
9167 Bibliography
9168 \end_layout
9169
9170 \end_inset
9171
9172  to provide the user with information about the cite engine.
9173 \end_layout
9174
9175 \begin_layout Subsection
9176 Format number
9177 \end_layout
9178
9179 \begin_layout Standard
9180 The first non-comment line of any layout file, included file, or module
9181  
9182 \emph on
9183 must
9184 \emph default
9185  contain the file format number:
9186 \end_layout
9187
9188 \begin_layout Description
9189 \begin_inset Flex Code
9190 status collapsed
9191
9192 \begin_layout Plain Layout
9193 Format
9194 \end_layout
9195
9196 \end_inset
9197
9198  [
9199 \begin_inset Flex Code
9200 status collapsed
9201
9202 \begin_layout Plain Layout
9203 int
9204 \end_layout
9205
9206 \end_inset
9207
9208 ] The format number of the layout file.
9209 \end_layout
9210
9211 \begin_layout Standard
9212 This tag was introduced with \SpecialChar LyX
9213
9214 \begin_inset space ~
9215 \end_inset
9216
9217 1.4.0.
9218  Layout files from older \SpecialChar LyX
9219  versions do not have an explicit file format and
9220  are considered to have 
9221 \begin_inset Flex Code
9222 status collapsed
9223
9224 \begin_layout Plain Layout
9225 Format
9226 \begin_inset space ~
9227 \end_inset
9228
9229 1
9230 \end_layout
9231
9232 \end_inset
9233
9234 .
9235  The format for the present version of \SpecialChar LyX
9236  is format 60.
9237  But each version of \SpecialChar LyX
9238  is capable of reading earlier versions' layout files,
9239  just as they are capable of reading files produced by earlier versions
9240  of \SpecialChar LyX
9241 .
9242  There is, however, no provision for converting to earlier formats.
9243 \end_layout
9244
9245 \begin_layout Subsection
9246 \begin_inset CommandInset label
9247 LatexCommand label
9248 name "subsec:General-text-class"
9249
9250 \end_inset
9251
9252 General text class parameters
9253 \end_layout
9254
9255 \begin_layout Standard
9256 These are general parameters that govern the behavior of an entire document
9257  class.
9258  (This does 
9259 \emph on
9260 not
9261 \emph default
9262  mean that they must appear in 
9263 \begin_inset Flex Code
9264 status collapsed
9265
9266 \begin_layout Plain Layout
9267 .layout
9268 \end_layout
9269
9270 \end_inset
9271
9272  files rather than in modules.
9273  A module can contain any layout tag.)
9274 \end_layout
9275
9276 \begin_layout Description
9277
9278 \change_inserted -712698321 1526899478
9279 \begin_inset Flex Code
9280 status collapsed
9281
9282 \begin_layout Plain Layout
9283
9284 \change_inserted -712698321 1526898610
9285 AddToCiteEngine <engine>
9286 \change_unchanged
9287
9288 \end_layout
9289
9290 \end_inset
9291
9292  Extends the possibilities for displaying citation references.
9293  See 
9294 \begin_inset CommandInset ref
9295 LatexCommand ref
9296 reference "subsec:Citation-engine-description"
9297 plural "false"
9298 caps "false"
9299 noprefix "false"
9300
9301 \end_inset
9302
9303  for details.
9304  Must end with 
9305 \begin_inset Flex Code
9306 status collapsed
9307
9308 \begin_layout Plain Layout
9309
9310 \change_inserted -712698321 1526898823
9311 End
9312 \change_unchanged
9313
9314 \end_layout
9315
9316 \end_inset
9317
9318 .
9319 \end_layout
9320
9321 \begin_layout Description
9322 \begin_inset Flex Code
9323 status collapsed
9324
9325 \begin_layout Plain Layout
9326 AddToHTMLPreamble
9327 \end_layout
9328
9329 \end_inset
9330
9331  Adds information that will be output in the 
9332 \begin_inset Flex Code
9333 status collapsed
9334
9335 \begin_layout Plain Layout
9336 <head>
9337 \end_layout
9338
9339 \end_inset
9340
9341  block when the document is output to XHTML.
9342  Typically, this would be used to output CSS style information, but it can
9343  be used for anything that can appear in 
9344 \begin_inset Flex Code
9345 status collapsed
9346
9347 \begin_layout Plain Layout
9348 <head>
9349 \end_layout
9350
9351 \end_inset
9352
9353 .
9354  Must end with 
9355 \begin_inset Quotes eld
9356 \end_inset
9357
9358
9359 \begin_inset Flex Code
9360 status collapsed
9361
9362 \begin_layout Plain Layout
9363 EndPreamble
9364 \end_layout
9365
9366 \end_inset
9367
9368
9369 \begin_inset Quotes erd
9370 \end_inset
9371
9372 .
9373 \end_layout
9374
9375 \begin_layout Description
9376 \begin_inset Flex Code
9377 status collapsed
9378
9379 \begin_layout Plain Layout
9380 AddToPreamble
9381 \end_layout
9382
9383 \end_inset
9384
9385  Adds information to the document preamble.
9386  Must end with
9387 \begin_inset Newline newline
9388 \end_inset
9389
9390
9391 \begin_inset Quotes eld
9392 \end_inset
9393
9394
9395 \begin_inset Flex Code
9396 status collapsed
9397
9398 \begin_layout Plain Layout
9399 EndPreamble
9400 \end_layout
9401
9402 \end_inset
9403
9404
9405 \begin_inset Quotes erd
9406 \end_inset
9407
9408 .
9409 \change_inserted -712698321 1562592950
9410
9411 \end_layout
9412
9413 \begin_layout Description
9414
9415 \change_inserted -712698321 1562593040
9416 \begin_inset Flex Code
9417 status collapsed
9418
9419 \begin_layout Plain Layout
9420
9421 \change_inserted -712698321 1562592954
9422 BibInToc
9423 \change_unchanged
9424
9425 \end_layout
9426
9427 \end_inset
9428
9429  [
9430 \begin_inset Flex Code
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434
9435 \change_inserted -712698321 1562592950
9436
9437 \emph on
9438 0
9439 \change_unchanged
9440
9441 \end_layout
9442
9443 \end_inset
9444
9445 ,
9446 \begin_inset space \thinspace{}
9447 \end_inset
9448
9449
9450 \begin_inset Flex Code
9451 status collapsed
9452
9453 \begin_layout Plain Layout
9454
9455 \change_inserted -712698321 1562592950
9456 1
9457 \change_unchanged
9458
9459 \end_layout
9460
9461 \end_inset
9462
9463 ] If the document class adds the bibliography to the table of contents,
9464  add this option with value 
9465 \begin_inset Flex Code
9466 status collapsed
9467
9468 \begin_layout Plain Layout
9469
9470 \change_inserted -712698321 1562592996
9471 1
9472 \change_unchanged
9473
9474 \end_layout
9475
9476 \end_inset
9477
9478  (or 
9479 \begin_inset Flex Code
9480 status collapsed
9481
9482 \begin_layout Plain Layout
9483
9484 \change_inserted -712698321 1562593006
9485 true
9486 \change_unchanged
9487
9488 \end_layout
9489
9490 \end_inset
9491
9492 ).
9493  This prevents the bibliography from being added twice.
9494 \change_unchanged
9495
9496 \end_layout
9497
9498 \begin_layout Description
9499 \begin_inset Flex Code
9500 status collapsed
9501
9502 \begin_layout Plain Layout
9503 CiteEngine <engine>
9504 \end_layout
9505
9506 \end_inset
9507
9508  Defines the possibilities for displaying citation references.
9509  See 
9510 \begin_inset CommandInset ref
9511 LatexCommand ref
9512 reference "subsec:Citation-engine-description"
9513 plural "false"
9514 caps "false"
9515 noprefix "false"
9516
9517 \end_inset
9518
9519  for details.
9520  Must end with 
9521 \begin_inset Quotes eld
9522 \end_inset
9523
9524
9525 \begin_inset Flex Code
9526 status collapsed
9527
9528 \begin_layout Plain Layout
9529 End
9530 \end_layout
9531
9532 \end_inset
9533
9534
9535 \begin_inset Quotes erd
9536 \end_inset
9537
9538 .
9539  Primarily used in cite engine files (see 
9540 \begin_inset CommandInset ref
9541 LatexCommand ref
9542 reference "subsec:Cite-Engine-Files"
9543 plural "false"
9544 caps "false"
9545 noprefix "false"
9546
9547 \end_inset
9548
9549 ).
9550
9551 \change_inserted -712698321 1526898530
9552  Note that if you specify this in a layout file or module, any cite engine
9553  definition will be overridden.
9554  Also see 
9555 \begin_inset Flex Code
9556 status collapsed
9557
9558 \begin_layout Plain Layout
9559
9560 \change_inserted -712698321 1526898530
9561 AddToCiteEngine
9562 \change_unchanged
9563
9564 \end_layout
9565
9566 \end_inset
9567
9568 .
9569 \change_unchanged
9570
9571 \end_layout
9572
9573 \begin_layout Description
9574 \begin_inset Flex Code
9575 status collapsed
9576
9577 \begin_layout Plain Layout
9578 CiteFormat
9579 \end_layout
9580
9581 \end_inset
9582
9583  Defines formats for use in the display of bibliographic information.
9584  See 
9585 \begin_inset CommandInset ref
9586 LatexCommand ref
9587 reference "subsec:Citation-format-description"
9588
9589 \end_inset
9590
9591  for details.
9592  Must end with 
9593 \begin_inset Quotes eld
9594 \end_inset
9595
9596
9597 \begin_inset Flex Code
9598 status collapsed
9599
9600 \begin_layout Plain Layout
9601 End
9602 \end_layout
9603
9604 \end_inset
9605
9606
9607 \begin_inset Quotes erd
9608 \end_inset
9609
9610 .
9611  Primarily used in cite engine files (see 
9612 \begin_inset CommandInset ref
9613 LatexCommand ref
9614 reference "subsec:Cite-Engine-Files"
9615 plural "false"
9616 caps "false"
9617 noprefix "false"
9618
9619 \end_inset
9620
9621 ).
9622
9623 \change_inserted -712698321 1526898585
9624  A cite format defined in a layout or module will override the cite engine
9625  definition.
9626 \change_unchanged
9627
9628 \end_layout
9629
9630 \begin_layout Description
9631 \begin_inset Flex Code
9632 status collapsed
9633
9634 \begin_layout Plain Layout
9635 CiteFramework
9636 \end_layout
9637
9638 \end_inset
9639
9640  [
9641 \begin_inset Flex Code
9642 status collapsed
9643
9644 \begin_layout Plain Layout
9645
9646 \emph on
9647 bibtex
9648 \end_layout
9649
9650 \end_inset
9651
9652 ,
9653 \begin_inset Flex Code
9654 status collapsed
9655
9656 \begin_layout Plain Layout
9657 biblatex
9658 \end_layout
9659
9660 \end_inset
9661
9662 ] Determines whether 
9663 \family sans
9664 Biblatex
9665 \family default
9666  or Bib\SpecialChar TeX
9667  is used to generate a Bibliography.
9668  Primarily used in cite engine files (see 
9669 \begin_inset CommandInset ref
9670 LatexCommand ref
9671 reference "subsec:Cite-Engine-Files"
9672 plural "false"
9673 caps "false"
9674 noprefix "false"
9675
9676 \end_inset
9677
9678 ).
9679 \end_layout
9680
9681 \begin_layout Description
9682 \begin_inset Flex Code
9683 status collapsed
9684
9685 \begin_layout Plain Layout
9686 ClassOptions
9687 \end_layout
9688
9689 \end_inset
9690
9691  Describes various global options supported by the document class.
9692  See 
9693 \begin_inset CommandInset ref
9694 LatexCommand ref
9695 reference "subsec:ClassOptions"
9696
9697 \end_inset
9698
9699  for a description.
9700  Must end with 
9701 \begin_inset Quotes eld
9702 \end_inset
9703
9704
9705 \begin_inset Flex Code
9706 status collapsed
9707
9708 \begin_layout Plain Layout
9709 End
9710 \end_layout
9711
9712 \end_inset
9713
9714
9715 \begin_inset Quotes erd
9716 \end_inset
9717
9718 .
9719 \end_layout
9720
9721 \begin_layout Description
9722 \begin_inset Flex Code
9723 status collapsed
9724
9725 \begin_layout Plain Layout
9726 Columns
9727 \end_layout
9728
9729 \end_inset
9730
9731  [
9732 \begin_inset Flex Code
9733 status collapsed
9734
9735 \begin_layout Plain Layout
9736
9737 \emph on
9738 1
9739 \end_layout
9740
9741 \end_inset
9742
9743 ,
9744 \begin_inset space \thinspace{}
9745 \end_inset
9746
9747
9748 \begin_inset Flex Code
9749 status collapsed
9750
9751 \begin_layout Plain Layout
9752 2
9753 \end_layout
9754
9755 \end_inset
9756
9757 ] Whether the class should 
9758 \emph on
9759 default
9760 \emph default
9761  to having one or two columns.
9762  Can be changed in the 
9763 \begin_inset Flex Noun
9764 status collapsed
9765
9766 \begin_layout Plain Layout
9767 Document\SpecialChar menuseparator
9768 Settings
9769 \end_layout
9770
9771 \end_inset
9772
9773  dialog.
9774 \end_layout
9775
9776 \begin_layout Description
9777 \begin_inset Flex Code
9778 status collapsed
9779
9780 \begin_layout Plain Layout
9781 Counter
9782 \end_layout
9783
9784 \end_inset
9785
9786  [
9787 \begin_inset Flex Code
9788 status collapsed
9789
9790 \begin_layout Plain Layout
9791 string
9792 \end_layout
9793
9794 \end_inset
9795
9796 ] This sequence defines the properties for a counter.
9797  If the counter does not yet exist, it is created; if it does exist, it
9798  is modified.
9799  Must end with 
9800 \begin_inset Quotes eld
9801 \end_inset
9802
9803
9804 \begin_inset Flex Code
9805 status collapsed
9806
9807 \begin_layout Plain Layout
9808 End
9809 \end_layout
9810
9811 \end_inset
9812
9813
9814 \begin_inset Quotes erd
9815 \end_inset
9816
9817 .
9818 \begin_inset Newline newline
9819 \end_inset
9820
9821 See 
9822 \begin_inset CommandInset ref
9823 LatexCommand ref
9824 reference "subsec:Counters"
9825
9826 \end_inset
9827
9828  for details on counters.
9829 \end_layout
9830
9831 \begin_layout Description
9832 \begin_inset Flex Code
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 DefaultFont
9837 \end_layout
9838
9839 \end_inset
9840
9841  Sets the default font used to display the document.
9842  See 
9843 \begin_inset CommandInset ref
9844 LatexCommand ref
9845 reference "subsec:Font-description"
9846
9847 \end_inset
9848
9849  for how to declare fonts.
9850  Must end with 
9851 \begin_inset Quotes eld
9852 \end_inset
9853
9854
9855 \begin_inset Flex Code
9856 status collapsed
9857
9858 \begin_layout Plain Layout
9859 EndFont
9860 \end_layout
9861
9862 \end_inset
9863
9864
9865 \begin_inset Quotes erd
9866 \end_inset
9867
9868 .
9869 \end_layout
9870
9871 \begin_layout Description
9872 \begin_inset Flex Code
9873 status collapsed
9874
9875 \begin_layout Plain Layout
9876 DefaultModule
9877 \end_layout
9878
9879 \end_inset
9880
9881  [
9882 \begin_inset Flex Code
9883 status collapsed
9884
9885 \begin_layout Plain Layout
9886 <module>
9887 \end_layout
9888
9889 \end_inset
9890
9891 ] Specifies a module to be included by default with this document class.
9892  The module is specified as filename without the 
9893 \begin_inset Flex Code
9894 status collapsed
9895
9896 \begin_layout Plain Layout
9897 .module
9898 \end_layout
9899
9900 \end_inset
9901
9902  extension.
9903  The user can still remove the module, but it will be active at the outset.
9904  (This applies only when new files are created, or when this class is chosen
9905  for an existing document.)
9906 \end_layout
9907
9908 \begin_layout Description
9909 \begin_inset Flex Code
9910 status collapsed
9911
9912 \begin_layout Plain Layout
9913 DefaultStyle
9914 \end_layout
9915
9916 \end_inset
9917
9918  [
9919 \begin_inset Flex Code
9920 status collapsed
9921
9922 \begin_layout Plain Layout
9923 <style>
9924 \end_layout
9925
9926 \end_inset
9927
9928 ] This is the style that will be assigned to new paragraphs, usually 
9929 \begin_inset Flex Noun
9930 status collapsed
9931
9932 \begin_layout Plain Layout
9933 Standard
9934 \end_layout
9935
9936 \end_inset
9937
9938 .
9939  This will default to the first defined style if not given, but you are
9940  encouraged to use this directive.
9941 \end_layout
9942
9943 \begin_layout Description
9944
9945 \change_inserted -970929547 1515112870
9946 \begin_inset Flex Code
9947 status collapsed
9948
9949 \begin_layout Plain Layout
9950
9951 \change_inserted -970929547 1515112782
9952 DocBookRoot
9953 \change_unchanged
9954
9955 \end_layout
9956
9957 \end_inset
9958
9959  [
9960 \begin_inset Flex Code
9961 status collapsed
9962
9963 \begin_layout Plain Layout
9964
9965 \change_inserted -970929547 1515112766
9966 string
9967 \change_unchanged
9968
9969 \end_layout
9970
9971 \end_inset
9972
9973 ] The root element (at the top of the document) to use when outputting documents
9974  with this class in DocBook.
9975  The default value is 
9976 \begin_inset Quotes eld
9977 \end_inset
9978
9979
9980 \begin_inset Flex Code
9981 status collapsed
9982
9983 \begin_layout Plain Layout
9984
9985 \change_inserted -970929547 1515112845
9986 article
9987 \change_unchanged
9988
9989 \end_layout
9990
9991 \end_inset
9992
9993
9994 \begin_inset Quotes erd
9995 \end_inset
9996
9997 .
9998
9999 \change_deleted 1075283030 1594226862
10000  
10001 \change_inserted 1075283030 1594226777
10002
10003 \end_layout
10004
10005 \begin_layout Description
10006
10007 \change_inserted 1075283030 1594226859
10008 \begin_inset Flex Code
10009 status collapsed
10010
10011 \begin_layout Plain Layout
10012
10013 \change_inserted 1075283030 1594226785
10014 DocBookForceAbstract
10015 \change_unchanged
10016
10017 \end_layout
10018
10019 \end_inset
10020
10021  [
10022 \begin_inset Flex Code
10023 status collapsed
10024
10025 \begin_layout Plain Layout
10026
10027 \change_inserted 1075283030 1594226804
10028 boolean
10029 \change_unchanged
10030
10031 \end_layout
10032
10033 \end_inset
10034
10035 ] If 
10036 \begin_inset Quotes eld
10037 \end_inset
10038
10039
10040 \family typewriter
10041 true
10042 \family default
10043
10044 \begin_inset Quotes erd
10045 \end_inset
10046
10047 , the root element will always have an 
10048 \family typewriter
10049 <abstract>
10050 \family default
10051  tag.
10052  The default value is 
10053 \begin_inset Quotes eld
10054 \end_inset
10055
10056
10057 \family typewriter
10058 false
10059 \family default
10060
10061 \begin_inset Quotes erd
10062 \end_inset
10063
10064 .
10065 \change_unchanged
10066
10067 \end_layout
10068
10069 \begin_layout Description
10070 \begin_inset Flex Code
10071 status collapsed
10072
10073 \begin_layout Plain Layout
10074 ExcludesModule
10075 \end_layout
10076
10077 \end_inset
10078
10079  [
10080 \begin_inset Flex Code
10081 status collapsed
10082
10083 \begin_layout Plain Layout
10084 <module>
10085 \end_layout
10086
10087 \end_inset
10088
10089 ] This tag indicates that the module (which is specified by filename without
10090  the 
10091 \begin_inset Flex Code
10092 status collapsed
10093
10094 \begin_layout Plain Layout
10095 .module
10096 \end_layout
10097
10098 \end_inset
10099
10100  extension) cannot be used with this document class.
10101  This might be used in a journal-specific layout file to prevent, say, the
10102  use of the 
10103 \begin_inset Flex Code
10104 status collapsed
10105
10106 \begin_layout Plain Layout
10107 theorems-sec
10108 \end_layout
10109
10110 \end_inset
10111
10112  module that numbers theorems by section.
10113  This tag may 
10114 \emph on
10115 not
10116 \emph default
10117  be used in a module.
10118  Modules have their own way of excluding other modules (see 
10119 \begin_inset CommandInset ref
10120 LatexCommand ref
10121 reference "subsec:Layout-modules"
10122
10123 \end_inset
10124
10125 ).
10126 \end_layout
10127
10128 \begin_layout Description
10129 \begin_inset Flex Code
10130 status collapsed
10131
10132 \begin_layout Plain Layout
10133 Float
10134 \end_layout
10135
10136 \end_inset
10137
10138  Defines a new float.
10139  See 
10140 \begin_inset CommandInset ref
10141 LatexCommand ref
10142 reference "subsec:Floats"
10143
10144 \end_inset
10145
10146  for details.
10147  Must end with 
10148 \begin_inset Quotes eld
10149 \end_inset
10150
10151
10152 \begin_inset Flex Code
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156 End
10157 \end_layout
10158
10159 \end_inset
10160
10161
10162 \begin_inset Quotes erd
10163 \end_inset
10164
10165 .
10166 \end_layout
10167
10168 \begin_layout Description
10169 \begin_inset Flex Code
10170 status collapsed
10171
10172 \begin_layout Plain Layout
10173 HTMLPreamble
10174 \end_layout
10175
10176 \end_inset
10177
10178  Sets the information that will be output in the 
10179 \begin_inset Flex Code
10180 status collapsed
10181
10182 \begin_layout Plain Layout
10183 <head>
10184 \end_layout
10185
10186 \end_inset
10187
10188  block when this document class is output to XHTML.
10189  Note that this will completely override any prior 
10190 \begin_inset Flex Code
10191 status collapsed
10192
10193 \begin_layout Plain Layout
10194 HTMLPreamble
10195 \end_layout
10196
10197 \end_inset
10198
10199  or 
10200 \begin_inset Flex Code
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 AddToHTMLPreamble
10205 \end_layout
10206
10207 \end_inset
10208
10209  declarations.
10210  (Use
10211 \begin_inset Newline newline
10212 \end_inset
10213
10214
10215 \begin_inset Flex Code
10216 status collapsed
10217
10218 \begin_layout Plain Layout
10219 AddToHTMLPreamble
10220 \end_layout
10221
10222 \end_inset
10223
10224  if you just want to add material to the preamble.) Must end with 
10225 \begin_inset Quotes eld
10226 \end_inset
10227
10228
10229 \begin_inset Flex Code
10230 status collapsed
10231
10232 \begin_layout Plain Layout
10233 EndPreamble
10234 \end_layout
10235
10236 \end_inset
10237
10238
10239 \begin_inset Quotes erd
10240 \end_inset
10241
10242 .
10243 \end_layout
10244
10245 \begin_layout Description
10246 \begin_inset Flex Code
10247 status collapsed
10248
10249 \begin_layout Plain Layout
10250 HTMLTOCSection
10251 \end_layout
10252
10253 \end_inset
10254
10255  [
10256 \begin_inset Flex Code
10257 status collapsed
10258
10259 \begin_layout Plain Layout
10260 <style>
10261 \end_layout
10262
10263 \end_inset
10264
10265 ] The style to use for the table of contents, bibliography, and so forth,
10266  when the document is output to HTML.
10267  For articles, this should normally be 
10268 \begin_inset Flex Code
10269 status collapsed
10270
10271 \begin_layout Plain Layout
10272 Section
10273 \end_layout
10274
10275 \end_inset
10276
10277 ; for books 
10278 \begin_inset Flex Code
10279 status collapsed
10280
10281 \begin_layout Plain Layout
10282 Chapter
10283 \end_layout
10284
10285 \end_inset
10286
10287 .
10288  If it is not given, then \SpecialChar LyX
10289  will attempt to figure out which layout to use.
10290 \end_layout
10291
10292 \begin_layout Description
10293 \begin_inset Flex Code
10294 status collapsed
10295
10296 \begin_layout Plain Layout
10297 IfCounter
10298 \end_layout
10299
10300 \end_inset
10301
10302  [
10303 \begin_inset Flex Code
10304 status collapsed
10305
10306 \begin_layout Plain Layout
10307 <counter>
10308 \end_layout
10309
10310 \end_inset
10311
10312 ] Modifies the properties of the given counter.
10313  If the counter does not exist, the statement is ignored.
10314  Must end with 
10315 \begin_inset Quotes eld
10316 \end_inset
10317
10318
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323 End
10324 \end_layout
10325
10326 \end_inset
10327
10328
10329 \begin_inset Quotes erd
10330 \end_inset
10331
10332 .
10333 \begin_inset Newline newline
10334 \end_inset
10335
10336 See 
10337 \begin_inset CommandInset ref
10338 LatexCommand ref
10339 reference "subsec:Counters"
10340
10341 \end_inset
10342
10343  for details on counters.
10344 \end_layout
10345
10346 \begin_layout Description
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351 Input
10352 \end_layout
10353
10354 \end_inset
10355
10356  [
10357 \begin_inset Flex Code
10358 status collapsed
10359
10360 \begin_layout Plain Layout
10361 <filename>
10362 \end_layout
10363
10364 \end_inset
10365
10366 ] This allows you to include another layout definition file within yours
10367  to avoid duplicating commands.
10368  Common examples are the standard layout files, for example, 
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 stdclass.inc
10374 \end_layout
10375
10376 \end_inset
10377
10378 , which contains most of the basic layouts.
10379 \change_inserted -712698321 1611646803
10380
10381 \end_layout
10382
10383 \begin_layout Description
10384
10385 \change_inserted -712698321 1611646804
10386 \begin_inset Flex Code
10387 status collapsed
10388
10389 \begin_layout Plain Layout
10390
10391 \change_inserted -712698321 1611646837
10392 InputGlobal
10393 \change_unchanged
10394
10395 \end_layout
10396
10397 \end_inset
10398
10399  [
10400 \begin_inset Flex Code
10401 status collapsed
10402
10403 \begin_layout Plain Layout
10404
10405 \change_inserted -712698321 1611646804
10406 <filename>
10407 \change_unchanged
10408
10409 \end_layout
10410
10411 \end_inset
10412
10413 ] is a variant of the 
10414 \begin_inset Flex Code
10415 status collapsed
10416
10417 \begin_layout Plain Layout
10418
10419 \change_inserted -712698321 1611646804
10420 Input
10421 \change_unchanged
10422
10423 \end_layout
10424
10425 \end_inset
10426
10427  command which does not look for files in the user directory.
10428  This allows to create a file 
10429 \begin_inset Flex Code
10430 status collapsed
10431
10432 \begin_layout Plain Layout
10433
10434 \change_inserted -712698321 1611646804
10435 name.layout
10436 \change_unchanged
10437
10438 \end_layout
10439
10440 \end_inset
10441
10442  or 
10443 \begin_inset Flex Code
10444 status collapsed
10445
10446 \begin_layout Plain Layout
10447
10448 \change_inserted -712698321 1611646804
10449 name.inc
10450 \change_unchanged
10451
10452 \end_layout
10453
10454 \end_inset
10455
10456  in the user directory which includes a global file with the same name via
10457  
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462
10463 \change_inserted -712698321 1611646853
10464 InputGlobal name
10465 \change_unchanged
10466
10467 \end_layout
10468
10469 \end_inset
10470
10471  or 
10472 \begin_inset Flex Code
10473 status collapsed
10474
10475 \begin_layout Plain Layout
10476
10477 \change_inserted -712698321 1611646855
10478 InputGlobal name.inc
10479 \change_unchanged
10480
10481 \end_layout
10482
10483 \end_inset
10484
10485 , respectively (with 
10486 \begin_inset Flex Code
10487 status collapsed
10488
10489 \begin_layout Plain Layout
10490
10491 \change_inserted -712698321 1611646804
10492 Input
10493 \change_unchanged
10494
10495 \end_layout
10496
10497 \end_inset
10498
10499 , the file would recursively include itself).
10500  This way, you can modify global files without having to completely copy
10501  them.
10502 \change_unchanged
10503
10504 \end_layout
10505
10506 \begin_layout Description
10507 \begin_inset Flex Code
10508 status collapsed
10509
10510 \begin_layout Plain Layout
10511 InsetLayout
10512 \end_layout
10513
10514 \end_inset
10515
10516  [
10517 \begin_inset Flex Code
10518 status collapsed
10519
10520 \begin_layout Plain Layout
10521 <type>
10522 \end_layout
10523
10524 \end_inset
10525
10526 ] This section (re-)defines the layout of an inset.
10527  It can be applied to an existing inset or to a new, user-defined inset,
10528  e.g., a new character style.
10529  Must end with 
10530 \begin_inset Quotes eld
10531 \end_inset
10532
10533
10534 \begin_inset Flex Code
10535 status collapsed
10536
10537 \begin_layout Plain Layout
10538 End
10539 \end_layout
10540
10541 \end_inset
10542
10543
10544 \begin_inset Quotes erd
10545 \end_inset
10546
10547 .
10548 \begin_inset Newline newline
10549 \end_inset
10550
10551 See 
10552 \begin_inset CommandInset ref
10553 LatexCommand ref
10554 reference "subsec:Flex-insets-and"
10555
10556 \end_inset
10557
10558  for more information.
10559  
10560 \end_layout
10561
10562 \begin_layout Description
10563 \begin_inset Flex Code
10564 status collapsed
10565
10566 \begin_layout Plain Layout
10567 LeftMargin
10568 \end_layout
10569
10570 \end_inset
10571
10572  [
10573 \begin_inset Flex Code
10574 status collapsed
10575
10576 \begin_layout Plain Layout
10577 string
10578 \end_layout
10579
10580 \end_inset
10581
10582 ] A string that indicates the width of the left margin on the screen, for
10583  example, 
10584 \begin_inset Quotes eld
10585 \end_inset
10586
10587
10588 \begin_inset Flex Code
10589 status collapsed
10590
10591 \begin_layout Plain Layout
10592 MMMMM
10593 \end_layout
10594
10595 \end_inset
10596
10597
10598 \begin_inset Quotes erd
10599 \end_inset
10600
10601 .
10602  (Note that this is not a `length', like 
10603 \begin_inset Quotes eld
10604 \end_inset
10605
10606 2ex
10607 \begin_inset Quotes erd
10608 \end_inset
10609
10610 .)
10611 \end_layout
10612
10613 \begin_layout Description
10614 \begin_inset Flex Code
10615 status collapsed
10616
10617 \begin_layout Plain Layout
10618 MaxCiteNames
10619 \end_layout
10620
10621 \end_inset
10622
10623  [
10624 \begin_inset Flex Code
10625 status collapsed
10626
10627 \begin_layout Plain Layout
10628 integer
10629 \end_layout
10630
10631 \end_inset
10632
10633 ] An integer that determines the maximal number of names displayed in an
10634  author-year citation before the citation switches to 
10635 \begin_inset Quotes eld
10636 \end_inset
10637
10638 FirstAuthor et al.
10639 \begin_inset Quotes erd
10640 \end_inset
10641
10642 .
10643  Primarily used in cite engine files (see 
10644 \begin_inset CommandInset ref
10645 LatexCommand ref
10646 reference "subsec:Cite-Engine-Files"
10647 plural "false"
10648 caps "false"
10649 noprefix "false"
10650
10651 \end_inset
10652
10653 ).
10654 \end_layout
10655
10656 \begin_layout Description
10657
10658 \change_inserted -712698321 1612018485
10659 \begin_inset Flex Code
10660 status collapsed
10661
10662 \begin_layout Plain Layout
10663
10664 \change_inserted -712698321 1612018457
10665 ModifyInsetLayout
10666 \change_unchanged
10667
10668 \end_layout
10669
10670 \end_inset
10671
10672  [
10673 \begin_inset Flex Code
10674 status collapsed
10675
10676 \begin_layout Plain Layout
10677
10678 \change_inserted -712698321 1612018466
10679 <type>
10680 \change_unchanged
10681
10682 \end_layout
10683
10684 \end_inset
10685
10686 ] Modifies the layout of an inset.
10687  If the layout does not exist, this section is ignored.
10688  Must end with 
10689 \begin_inset Quotes eld
10690 \end_inset
10691
10692
10693 \begin_inset Flex Code
10694 status collapsed
10695
10696 \begin_layout Plain Layout
10697
10698 \change_inserted -712698321 1612018452
10699 End
10700 \change_unchanged
10701
10702 \end_layout
10703
10704 \end_inset
10705
10706
10707 \begin_inset Quotes erd
10708 \end_inset
10709
10710 .
10711 \end_layout
10712
10713 \begin_layout Description
10714 \begin_inset Flex Code
10715 status collapsed
10716
10717 \begin_layout Plain Layout
10718 ModifyStyle
10719 \end_layout
10720
10721 \end_inset
10722
10723  [
10724 \begin_inset Flex Code
10725 status collapsed
10726
10727 \begin_layout Plain Layout
10728 <style>
10729 \end_layout
10730
10731 \end_inset
10732
10733 ] Modifies the properties of the given paragraph style.
10734  If the style does not exist, this section is ignored.
10735  Must end with 
10736 \begin_inset Quotes eld
10737 \end_inset
10738
10739
10740 \begin_inset Flex Code
10741 status collapsed
10742
10743 \begin_layout Plain Layout
10744 End
10745 \end_layout
10746
10747 \end_inset
10748
10749
10750 \begin_inset Quotes erd
10751 \end_inset
10752
10753 .
10754 \end_layout
10755
10756 \begin_layout Description
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 NoCounter
10762 \end_layout
10763
10764 \end_inset
10765
10766  [
10767 \begin_inset Flex Code
10768 status collapsed
10769
10770 \begin_layout Plain Layout
10771 <counter>
10772 \end_layout
10773
10774 \end_inset
10775
10776 ] Deletes an existing counter, usually one defined in an included file.
10777 \end_layout
10778
10779 \begin_layout Description
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 NoFloat
10785 \end_layout
10786
10787 \end_inset
10788
10789  [
10790 \begin_inset Flex Code
10791 status collapsed
10792
10793 \begin_layout Plain Layout
10794 <float>
10795 \end_layout
10796
10797 \end_inset
10798
10799 ] Deletes an existing float.
10800  This is particularly useful when you want to suppress a float that has
10801  been defined in an input file.
10802 \end_layout
10803
10804 \begin_layout Description
10805 \begin_inset Flex Code
10806 status collapsed
10807
10808 \begin_layout Plain Layout
10809 NoStyle
10810 \end_layout
10811
10812 \end_inset
10813
10814  [
10815 \begin_inset Flex Code
10816 status collapsed
10817
10818 \begin_layout Plain Layout
10819 <style>
10820 \end_layout
10821
10822 \end_inset
10823
10824 ] Deletes an existing style.
10825 \end_layout
10826
10827 \begin_layout Description
10828 \begin_inset Flex Code
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 OutlinerName
10833 \end_layout
10834
10835 \end_inset
10836
10837  [
10838 \begin_inset Flex Code
10839 status collapsed
10840
10841 \begin_layout Plain Layout
10842 <type>
10843 \end_layout
10844
10845 \end_inset
10846
10847 ] [
10848 \begin_inset Flex Code
10849 status collapsed
10850
10851 \begin_layout Plain Layout
10852 <string>
10853 \end_layout
10854
10855 \end_inset
10856
10857 ] Define a new table of contents with type 
10858 \begin_inset Flex Code
10859 status collapsed
10860
10861 \begin_layout Plain Layout
10862 <type>
10863 \end_layout
10864
10865 \end_inset
10866
10867  and name 
10868 \begin_inset Flex Code
10869 status collapsed
10870
10871 \begin_layout Plain Layout
10872 <string>
10873 \end_layout
10874
10875 \end_inset
10876
10877 .
10878  See also the AddToToc commands.
10879 \end_layout
10880
10881 \begin_layout Description
10882 \begin_inset Flex Code
10883 status collapsed
10884
10885 \begin_layout Plain Layout
10886 OutputFormat
10887 \end_layout
10888
10889 \end_inset
10890
10891  [
10892 \begin_inset Flex Code
10893 status collapsed
10894
10895 \begin_layout Plain Layout
10896 <format>
10897 \end_layout
10898
10899 \end_inset
10900
10901 ] The file format (as defined in the \SpecialChar LyX
10902  preferences) produced by this document
10903  class.
10904  It is mainly useful when 
10905 \begin_inset Flex Code
10906 status collapsed
10907
10908 \begin_layout Plain Layout
10909 OutputType
10910 \end_layout
10911
10912 \end_inset
10913
10914  is 
10915 \begin_inset Flex Code
10916 status collapsed
10917
10918 \begin_layout Plain Layout
10919 literate
10920 \end_layout
10921
10922 \end_inset
10923
10924  and one wants to define a new type of literate document.
10925  The format is reset to 
10926 \change_deleted 5863208 1594239413
10927
10928 \begin_inset Quotes eld
10929 \end_inset
10930
10931
10932 \begin_inset Flex Code
10933 status collapsed
10934
10935 \begin_layout Plain Layout
10936 docbook
10937 \end_layout
10938
10939 \end_inset
10940
10941
10942 \begin_inset Quotes erd
10943 \end_inset
10944
10945  or
10946 \change_unchanged
10947  
10948 \begin_inset Quotes eld
10949 \end_inset
10950
10951
10952 \begin_inset Flex Code
10953 status collapsed
10954
10955 \begin_layout Plain Layout
10956 latex
10957 \end_layout
10958
10959 \end_inset
10960
10961
10962 \begin_inset Quotes erd
10963 \end_inset
10964
10965  when the corresponding 
10966 \begin_inset Flex Code
10967 status collapsed
10968
10969 \begin_layout Plain Layout
10970 OutputType
10971 \end_layout
10972
10973 \end_inset
10974
10975  parameter is encountered.
10976 \end_layout
10977
10978 \begin_layout Description
10979 \begin_inset Flex Code
10980 status collapsed
10981
10982 \begin_layout Plain Layout
10983 OutputType
10984 \end_layout
10985
10986 \end_inset
10987
10988  [
10989 \begin_inset Flex Code
10990 status collapsed
10991
10992 \begin_layout Plain Layout
10993
10994 \emph on
10995 lat
10996 \emph default
10997 ex
10998 \end_layout
10999
11000 \end_inset
11001
11002
11003 \change_deleted 5863208 1594239430
11004
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 docbook
11010 \end_layout
11011
11012 \end_inset
11013
11014 ,
11015 \change_unchanged
11016  
11017 \begin_inset Flex Code
11018 status collapsed
11019
11020 \begin_layout Plain Layout
11021 literate
11022 \end_layout
11023
11024 \end_inset
11025
11026 ] Specifies what sort of output documents using this class will produce.
11027 \end_layout
11028
11029 \begin_layout Description
11030 \begin_inset Flex Code
11031 status collapsed
11032
11033 \begin_layout Plain Layout
11034 PackageOptions
11035 \end_layout
11036
11037 \end_inset
11038
11039  [
11040 \begin_inset Flex Code
11041 status collapsed
11042
11043 \begin_layout Plain Layout
11044 string
11045 \end_layout
11046
11047 \end_inset
11048
11049  
11050 \begin_inset Flex Code
11051 status collapsed
11052
11053 \begin_layout Plain Layout
11054 string
11055 \end_layout
11056
11057 \end_inset
11058
11059 ] Specifies options, given in the second string, for the package named by
11060  the first string.
11061  For example, 
11062 \begin_inset Quotes eld
11063 \end_inset
11064
11065
11066 \begin_inset Flex Code
11067 status collapsed
11068
11069 \begin_layout Plain Layout
11070 PackageOptions natbib square
11071 \end_layout
11072
11073 \end_inset
11074
11075
11076 \begin_inset Quotes erd
11077 \end_inset
11078
11079  will cause 
11080 \begin_inset Flex Code
11081 status collapsed
11082
11083 \begin_layout Plain Layout
11084 natbib
11085 \end_layout
11086
11087 \end_inset
11088
11089  to be loaded with the 
11090 \begin_inset Flex Code
11091 status collapsed
11092
11093 \begin_layout Plain Layout
11094 square
11095 \end_layout
11096
11097 \end_inset
11098
11099  option.
11100  (For \SpecialChar TeX
11101 perts, this causes \SpecialChar LyX
11102  to output: 
11103 \begin_inset Flex Code
11104 status collapsed
11105
11106 \begin_layout Plain Layout
11107
11108 \backslash
11109 PassOptionsToPackage{natbib}{square}
11110 \end_layout
11111
11112 \end_inset
11113
11114  prior to loading 
11115 \begin_inset Flex Code
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119 natbib
11120 \end_layout
11121
11122 \end_inset
11123
11124 .)
11125 \change_inserted -712698321 1565102364
11126
11127 \end_layout
11128
11129 \begin_layout Description
11130
11131 \change_inserted -712698321 1565102470
11132 \begin_inset Flex Code
11133 status collapsed
11134
11135 \begin_layout Plain Layout
11136
11137 \change_inserted -712698321 1565102365
11138 PageSize
11139 \change_unchanged
11140
11141 \end_layout
11142
11143 \end_inset
11144
11145  [
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150
11151 \change_inserted -712698321 1565105222
11152
11153 \emph on
11154 custom
11155 \emph default
11156 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
11157  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
11158 \change_unchanged
11159
11160 \end_layout
11161
11162 \end_inset
11163
11164 ] The default page size.
11165  This is used by some converters.
11166 \change_unchanged
11167
11168 \end_layout
11169
11170 \begin_layout Description
11171 \begin_inset Flex Code
11172 status collapsed
11173
11174 \begin_layout Plain Layout
11175 PageStyle
11176 \end_layout
11177
11178 \end_inset
11179
11180  [
11181 \begin_inset Flex Code
11182 status collapsed
11183
11184 \begin_layout Plain Layout
11185
11186 \emph on
11187 plain
11188 \end_layout
11189
11190 \end_inset
11191
11192
11193 \begin_inset Flex Code
11194 status collapsed
11195
11196 \begin_layout Plain Layout
11197 empty
11198 \end_layout
11199
11200 \end_inset
11201
11202
11203 \begin_inset Flex Code
11204 status collapsed
11205
11206 \begin_layout Plain Layout
11207 headings
11208 \end_layout
11209
11210 \end_inset
11211
11212 ] The default pagestyle.
11213  Can be changed in the 
11214 \begin_inset Flex Noun
11215 status collapsed
11216
11217 \begin_layout Plain Layout
11218 Document\SpecialChar menuseparator
11219 Settings
11220 \end_layout
11221
11222 \end_inset
11223
11224  dialog.
11225 \end_layout
11226
11227 \begin_layout Description
11228 \begin_inset Flex Code
11229 status collapsed
11230
11231 \begin_layout Plain Layout
11232 Preamble
11233 \end_layout
11234
11235 \end_inset
11236
11237  Sets the preamble for the \SpecialChar LaTeX
11238  document.
11239  Note that this will completely override any prior 
11240 \begin_inset Flex Code
11241 status collapsed
11242
11243 \begin_layout Plain Layout
11244 Preamble
11245 \end_layout
11246
11247 \end_inset
11248
11249  or 
11250 \begin_inset Flex Code
11251 status collapsed
11252
11253 \begin_layout Plain Layout
11254 AddToPreamble
11255 \end_layout
11256
11257 \end_inset
11258
11259  declarations.
11260  (Use 
11261 \begin_inset Flex Code
11262 status collapsed
11263
11264 \begin_layout Plain Layout
11265 AddToPreamble
11266 \end_layout
11267
11268 \end_inset
11269
11270  if you just want to add material to the preamble.) Must end with 
11271 \begin_inset Quotes eld
11272 \end_inset
11273
11274
11275 \begin_inset Flex Code
11276 status collapsed
11277
11278 \begin_layout Plain Layout
11279 EndPreamble
11280 \end_layout
11281
11282 \end_inset
11283
11284
11285 \begin_inset Quotes erd
11286 \end_inset
11287
11288 .
11289 \change_inserted -712698321 1612018500
11290
11291 \end_layout
11292
11293 \begin_layout Description
11294
11295 \change_inserted -712698321 1612018547
11296 \begin_inset Flex Code
11297 status collapsed
11298
11299 \begin_layout Plain Layout
11300
11301 \change_inserted -712698321 1612018506
11302 ProvideInsetLayout
11303 \change_unchanged
11304
11305 \end_layout
11306
11307 \end_inset
11308
11309  [
11310 \begin_inset Flex Code
11311 status collapsed
11312
11313 \begin_layout Plain Layout
11314
11315 \change_inserted -712698321 1612018509
11316 <type>
11317 \change_unchanged
11318
11319 \end_layout
11320
11321 \end_inset
11322
11323 ] Defines the layout of an inset if it does not already exist.
11324  If the layout does exist, this section is ignored.
11325  Must end with 
11326 \begin_inset Quotes eld
11327 \end_inset
11328
11329
11330 \begin_inset Flex Code
11331 status collapsed
11332
11333 \begin_layout Plain Layout
11334
11335 \change_inserted -712698321 1612018500
11336 End
11337 \change_unchanged
11338
11339 \end_layout
11340
11341 \end_inset
11342
11343
11344 \begin_inset Quotes erd
11345 \end_inset
11346
11347 .
11348 \change_unchanged
11349
11350 \end_layout
11351
11352 \begin_layout Description
11353 \begin_inset Flex Code
11354 status collapsed
11355
11356 \begin_layout Plain Layout
11357 Provides
11358 \end_layout
11359
11360 \end_inset
11361
11362  [
11363 \begin_inset Flex Code
11364 status collapsed
11365
11366 \begin_layout Plain Layout
11367 string
11368 \end_layout
11369
11370 \end_inset
11371
11372 ] [
11373 \begin_inset Flex Code
11374 status collapsed
11375
11376 \begin_layout Plain Layout
11377
11378 \emph on
11379 0
11380 \end_layout
11381
11382 \end_inset
11383
11384 ,
11385 \begin_inset space \thinspace{}
11386 \end_inset
11387
11388
11389 \begin_inset Flex Code
11390 status collapsed
11391
11392 \begin_layout Plain Layout
11393 1
11394 \end_layout
11395
11396 \end_inset
11397
11398 ] Whether the class already provides the feature 
11399 \begin_inset Flex Code
11400 status collapsed
11401
11402 \begin_layout Plain Layout
11403 string
11404 \end_layout
11405
11406 \end_inset
11407
11408 .
11409  A feature is in general the name of a package (e.
11410 \begin_inset space \thinspace{}
11411 \end_inset
11412
11413 g.
11414 \begin_inset space \space{}
11415 \end_inset
11416
11417
11418 \begin_inset Flex Code
11419 status collapsed
11420
11421 \begin_layout Plain Layout
11422 amsmath
11423 \end_layout
11424
11425 \end_inset
11426
11427  or 
11428 \begin_inset Flex Code
11429 status collapsed
11430
11431 \begin_layout Plain Layout
11432 makeidx
11433 \end_layout
11434
11435 \end_inset
11436
11437 ) or a macro (e.
11438 \begin_inset space \thinspace{}
11439 \end_inset
11440
11441 g.
11442 \begin_inset space \space{}
11443 \end_inset
11444
11445
11446 \begin_inset Flex Code
11447 status collapsed
11448
11449 \begin_layout Plain Layout
11450 url
11451 \end_layout
11452
11453 \end_inset
11454
11455  or 
11456 \begin_inset Flex Code
11457 status collapsed
11458
11459 \begin_layout Plain Layout
11460 boldsymbol
11461 \end_layout
11462
11463 \end_inset
11464
11465 ).
11466  See 
11467 \begin_inset CommandInset ref
11468 LatexCommand ref
11469 reference "chap:List-of-functions"
11470
11471 \end_inset
11472
11473  for the list of features.
11474 \end_layout
11475
11476 \begin_layout Description
11477 \begin_inset Flex Code
11478 status collapsed
11479
11480 \begin_layout Plain Layout
11481 ProvidesModule
11482 \end_layout
11483
11484 \end_inset
11485
11486  [
11487 \begin_inset Flex Code
11488 status collapsed
11489
11490 \begin_layout Plain Layout
11491 string
11492 \end_layout
11493
11494 \end_inset
11495
11496 ] Indicates that this layout provides the functionality of the module mentioned,
11497  which should be specified by the filename without the 
11498 \begin_inset Flex Code
11499 status collapsed
11500
11501 \begin_layout Plain Layout
11502 .module
11503 \end_layout
11504
11505 \end_inset
11506
11507  extension.
11508  This will typically be used if the layout includes the module directly,
11509  rather than using the 
11510 \begin_inset Flex Code
11511 status collapsed
11512
11513 \begin_layout Plain Layout
11514 DefaultModule
11515 \end_layout
11516
11517 \end_inset
11518
11519  tag to indicate that it ought to be used.
11520  It could also be used in a module that provided an alternate implementation
11521  of the same functionality.
11522 \end_layout
11523
11524 \begin_layout Description
11525 \begin_inset Flex Code
11526 status collapsed
11527
11528 \begin_layout Plain Layout
11529 ProvideStyle
11530 \end_layout
11531
11532 \end_inset
11533
11534  [
11535 \begin_inset Flex Code
11536 status collapsed
11537
11538 \begin_layout Plain Layout
11539 <style>
11540 \end_layout
11541
11542 \end_inset
11543
11544 ] Creates a new paragraph style if it does not already exist.
11545  If the style does exist, this section is ignored.
11546  Must end with 
11547 \begin_inset Quotes eld
11548 \end_inset
11549
11550
11551 \begin_inset Flex Code
11552 status collapsed
11553
11554 \begin_layout Plain Layout
11555 End
11556 \end_layout
11557
11558 \end_inset
11559
11560
11561 \begin_inset Quotes erd
11562 \end_inset
11563
11564 .
11565 \end_layout
11566
11567 \begin_layout Description
11568 \begin_inset Flex Code
11569 status collapsed
11570
11571 \begin_layout Plain Layout
11572 Requires
11573 \end_layout
11574
11575 \end_inset
11576
11577  [
11578 \begin_inset Flex Code
11579 status collapsed
11580
11581 \begin_layout Plain Layout
11582 string
11583 \end_layout
11584
11585 \end_inset
11586
11587 ] Whether the class requires the feature 
11588 \begin_inset Flex Code
11589 status collapsed
11590
11591 \begin_layout Plain Layout
11592 string
11593 \end_layout
11594
11595 \end_inset
11596
11597 .
11598  Multiple features must be separated by commas.
11599  Note that you can only request supported features.
11600  (See 
11601 \begin_inset CommandInset ref
11602 LatexCommand ref
11603 reference "chap:List-of-functions"
11604
11605 \end_inset
11606
11607  for the list of features.).
11608  If you require a package with specific options, you can additionally use
11609  
11610 \begin_inset Flex Code
11611 status collapsed
11612
11613 \begin_layout Plain Layout
11614 PackageOptions
11615 \end_layout
11616
11617 \end_inset
11618
11619 .
11620 \end_layout
11621
11622 \begin_layout Description
11623 \begin_inset Flex Code
11624 status collapsed
11625
11626 \begin_layout Plain Layout
11627 RightMargin
11628 \end_layout
11629
11630 \end_inset
11631
11632  [
11633 \begin_inset Flex Code
11634 status collapsed
11635
11636 \begin_layout Plain Layout
11637 string
11638 \end_layout
11639
11640 \end_inset
11641
11642 ] A string that indicates the width of the right margin on the screen, for
11643  example, 
11644 \begin_inset Quotes eld
11645 \end_inset
11646
11647
11648 \begin_inset Flex Code
11649 status collapsed
11650
11651 \begin_layout Plain Layout
11652 MMMMM
11653 \end_layout
11654
11655 \end_inset
11656
11657
11658 \begin_inset Quotes erd
11659 \end_inset
11660
11661 .
11662 \end_layout
11663
11664 \begin_layout Description
11665 \begin_inset Flex Code
11666 status collapsed
11667
11668 \begin_layout Plain Layout
11669 SecNumDepth
11670 \end_layout
11671
11672 \end_inset
11673
11674  [
11675 \begin_inset Flex Code
11676 status collapsed
11677
11678 \begin_layout Plain Layout
11679 int=3
11680 \end_layout
11681
11682 \end_inset
11683
11684 ] Sets which divisions get numbered.
11685  Corresponds to the
11686 \begin_inset Newline newline
11687 \end_inset
11688
11689
11690 \begin_inset Flex Code
11691 status collapsed
11692
11693 \begin_layout Plain Layout
11694 secnumdepth
11695 \end_layout
11696
11697 \end_inset
11698
11699  counter in \SpecialChar LaTeX
11700 .
11701 \end_layout
11702
11703 \begin_layout Description
11704 \begin_inset Flex Code
11705 status collapsed
11706
11707 \begin_layout Plain Layout
11708 Sides
11709 \end_layout
11710
11711 \end_inset
11712
11713  [
11714 \begin_inset Flex Code
11715 status collapsed
11716
11717 \begin_layout Plain Layout
11718
11719 \emph on
11720 1
11721 \end_layout
11722
11723 \end_inset
11724
11725 ,
11726 \begin_inset space \thinspace{}
11727 \end_inset
11728
11729
11730 \begin_inset Flex Code
11731 status collapsed
11732
11733 \begin_layout Plain Layout
11734 2
11735 \end_layout
11736
11737 \end_inset
11738
11739 ] Whether the class-default should be printing on one or both sides of the
11740  paper.
11741  Can be changed in the 
11742 \begin_inset Flex Noun
11743 status collapsed
11744
11745 \begin_layout Plain Layout
11746 Document\SpecialChar menuseparator
11747 Settings
11748 \end_layout
11749
11750 \end_inset
11751
11752  dialog.
11753 \end_layout
11754
11755 \begin_layout Description
11756 \begin_inset Flex Code
11757 status collapsed
11758
11759 \begin_layout Plain Layout
11760 Style
11761 \end_layout
11762
11763 \end_inset
11764
11765  [
11766 \begin_inset Flex Code
11767 status collapsed
11768
11769 \begin_layout Plain Layout
11770 <name>
11771 \end_layout
11772
11773 \end_inset
11774
11775 ] This sequence defines a paragraph style.
11776  If the style does not yet exist, it is created; if it does exist, its parameter
11777 s are modified.
11778  Must end with 
11779 \begin_inset Quotes eld
11780 \end_inset
11781
11782
11783 \begin_inset Flex Code
11784 status collapsed
11785
11786 \begin_layout Plain Layout
11787 End
11788 \end_layout
11789
11790 \end_inset
11791
11792
11793 \begin_inset Quotes erd
11794 \end_inset
11795
11796 .
11797 \begin_inset Newline newline
11798 \end_inset
11799
11800 See 
11801 \begin_inset CommandInset ref
11802 LatexCommand ref
11803 reference "subsec:Paragraph-Styles"
11804
11805 \end_inset
11806
11807  for details on paragraph styles.
11808 \change_inserted -712698321 1553617804
11809
11810 \end_layout
11811
11812 \begin_layout Description
11813
11814 \change_inserted -712698321 1553617862
11815 \begin_inset Flex Code
11816 status collapsed
11817
11818 \begin_layout Plain Layout
11819
11820 \change_inserted -712698321 1553617809
11821 TableStyle
11822 \change_unchanged
11823
11824 \end_layout
11825
11826 \end_inset
11827
11828  [
11829 \begin_inset Flex Code
11830 status collapsed
11831
11832 \begin_layout Plain Layout
11833
11834 \change_inserted -712698321 1553617805
11835 <name>
11836 \change_unchanged
11837
11838 \end_layout
11839
11840 \end_inset
11841
11842 ] defines the default table style that is used when inserting a table.
11843  The following styles are available:
11844 \end_layout
11845
11846 \begin_deeper
11847 \begin_layout Itemize
11848
11849 \change_inserted -712698321 1554308039
11850 \begin_inset Flex Code
11851 status collapsed
11852
11853 \begin_layout Plain Layout
11854
11855 \change_inserted -712698321 1554307928
11856 Formal_with_Footline
11857 \change_unchanged
11858
11859 \end_layout
11860
11861 \end_inset
11862
11863 : formal (
11864 \begin_inset Quotes eld
11865 \end_inset
11866
11867 booktabs
11868 \begin_inset Quotes erd
11869 \end_inset
11870
11871 ) style with horizontal lines only, using a bold top and bottom line, the
11872  first and last row are additionally separated from the table body with
11873  a thin middle line.
11874 \end_layout
11875
11876 \begin_layout Itemize
11877
11878 \change_inserted -712698321 1554308087
11879 \begin_inset Flex Code
11880 status collapsed
11881
11882 \begin_layout Plain Layout
11883
11884 \change_inserted -712698321 1554308042
11885 Formal_without_Footline
11886 \change_unchanged
11887
11888 \end_layout
11889
11890 \end_inset
11891
11892 : same as the above, but the last row is not separated with a middle line
11893  from the body.
11894 \end_layout
11895
11896 \begin_layout Itemize
11897
11898 \change_inserted -712698321 1553618031
11899 \begin_inset Flex Code
11900 status collapsed
11901
11902 \begin_layout Plain Layout
11903
11904 \change_inserted -712698321 1553618006
11905 Simple_Grid
11906 \change_unchanged
11907
11908 \end_layout
11909
11910 \end_inset
11911
11912 : Simple table lines.
11913 \end_layout
11914
11915 \begin_layout Itemize
11916
11917 \change_inserted -712698321 1553618309
11918 \begin_inset Flex Code
11919 status collapsed
11920
11921 \begin_layout Plain Layout
11922
11923 \change_inserted -712698321 1553618031
11924 Grid_with_Head
11925 \change_unchanged
11926
11927 \end_layout
11928
11929 \end_inset
11930
11931 : Like 
11932 \begin_inset Flex Code
11933 status collapsed
11934
11935 \begin_layout Plain Layout
11936
11937 \change_inserted -712698321 1553618043
11938 Simple_Grid
11939 \change_unchanged
11940
11941 \end_layout
11942
11943 \end_inset
11944
11945 , but with the header column offset with a second horizontal line.
11946  This is also the default style of \SpecialChar LyX
11947 .
11948 \end_layout
11949
11950 \begin_layout Itemize
11951
11952 \change_inserted -712698321 1553618280
11953 \begin_inset Flex Code
11954 status collapsed
11955
11956 \begin_layout Plain Layout
11957
11958 \change_inserted -712698321 1553618261
11959 No_Borders
11960 \change_unchanged
11961
11962 \end_layout
11963
11964 \end_inset
11965
11966 : Table without lines.
11967 \change_unchanged
11968
11969 \end_layout
11970
11971 \end_deeper
11972 \begin_layout Description
11973 \begin_inset Flex Code
11974 status collapsed
11975
11976 \begin_layout Plain Layout
11977 TitleLatexName
11978 \end_layout
11979
11980 \end_inset
11981
11982  [
11983 \begin_inset Flex Code
11984 status collapsed
11985
11986 \begin_layout Plain Layout
11987 string="maketitle"
11988 \end_layout
11989
11990 \end_inset
11991
11992 ] The name of the command or environment to be used with 
11993 \begin_inset Flex Code
11994 status collapsed
11995
11996 \begin_layout Plain Layout
11997 TitleLatexType
11998 \end_layout
11999
12000 \end_inset
12001
12002 .
12003 \end_layout
12004
12005 \begin_layout Description
12006 \begin_inset Flex Code
12007 status collapsed
12008
12009 \begin_layout Plain Layout
12010 TitleLatexType
12011 \end_layout
12012
12013 \end_inset
12014
12015  [
12016 \begin_inset Flex Code
12017 status collapsed
12018
12019 \begin_layout Plain Layout
12020
12021 \emph on
12022 CommandAfter
12023 \end_layout
12024
12025 \end_inset
12026
12027
12028 \begin_inset Flex Code
12029 status collapsed
12030
12031 \begin_layout Plain Layout
12032 Environment
12033 \end_layout
12034
12035 \end_inset
12036
12037 ] Indicates what kind of markup is used to define the title of a document.
12038  
12039 \begin_inset Flex Code
12040 status collapsed
12041
12042 \begin_layout Plain Layout
12043 CommandAfter
12044 \end_layout
12045
12046 \end_inset
12047
12048  means that the macro with name 
12049 \begin_inset Flex Code
12050 status collapsed
12051
12052 \begin_layout Plain Layout
12053 TitleLatexName
12054 \end_layout
12055
12056 \end_inset
12057
12058  will be inserted after the last layout which has 
12059 \begin_inset Quotes eld
12060 \end_inset
12061
12062
12063 \begin_inset Flex Code
12064 status collapsed
12065
12066 \begin_layout Plain Layout
12067 InTitle
12068 \begin_inset space ~
12069 \end_inset
12070
12071 1
12072 \end_layout
12073
12074 \end_inset
12075
12076
12077 \begin_inset Quotes erd
12078 \end_inset
12079
12080 .
12081  
12082 \begin_inset Flex Code
12083 status collapsed
12084
12085 \begin_layout Plain Layout
12086 Environment
12087 \end_layout
12088
12089 \end_inset
12090
12091  corresponds to the case where all layouts which have 
12092 \begin_inset Quotes eld
12093 \end_inset
12094
12095
12096 \begin_inset Flex Code
12097 status collapsed
12098
12099 \begin_layout Plain Layout
12100 InTitle
12101 \begin_inset space ~
12102 \end_inset
12103
12104 1
12105 \end_layout
12106
12107 \end_inset
12108
12109
12110 \begin_inset Quotes erd
12111 \end_inset
12112
12113  should be enclosed into the 
12114 \begin_inset Flex Code
12115 status collapsed
12116
12117 \begin_layout Plain Layout
12118 TitleLatexName
12119 \end_layout
12120
12121 \end_inset
12122
12123  environment.
12124 \end_layout
12125
12126 \begin_layout Description
12127 \begin_inset Flex Code
12128 status collapsed
12129
12130 \begin_layout Plain Layout
12131 TocDepth
12132 \end_layout
12133
12134 \end_inset
12135
12136  [
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141 int=3
12142 \end_layout
12143
12144 \end_inset
12145
12146 ] Sets which divisions are included in the table of contents.
12147  Corresponds to the 
12148 \begin_inset Flex Code
12149 status collapsed
12150
12151 \begin_layout Plain Layout
12152 tocdepth
12153 \end_layout
12154
12155 \end_inset
12156
12157  counter in \SpecialChar LaTeX
12158 .
12159 \end_layout
12160
12161 \begin_layout Subsection
12162 \begin_inset Flex Code
12163 status collapsed
12164
12165 \begin_layout Plain Layout
12166 ClassOptions
12167 \end_layout
12168
12169 \end_inset
12170
12171  section
12172 \begin_inset CommandInset label
12173 LatexCommand label
12174 name "subsec:ClassOptions"
12175
12176 \end_inset
12177
12178
12179 \end_layout
12180
12181 \begin_layout Standard
12182 The 
12183 \begin_inset Flex Code
12184 status collapsed
12185
12186 \begin_layout Plain Layout
12187 ClassOptions
12188 \end_layout
12189
12190 \end_inset
12191
12192  section can contain the following entries:
12193 \end_layout
12194
12195 \begin_layout Description
12196 \begin_inset Flex Code
12197 status collapsed
12198
12199 \begin_layout Plain Layout
12200 FontSize
12201 \end_layout
12202
12203 \end_inset
12204
12205  [
12206 \begin_inset Flex Code
12207 status collapsed
12208
12209 \begin_layout Plain Layout
12210 string="10|11|12"
12211 \end_layout
12212
12213 \end_inset
12214
12215 ] The list of available font sizes for the document's main font, separated
12216  by 
12217 \begin_inset Quotes eld
12218 \end_inset
12219
12220
12221 \begin_inset Flex Code
12222 status collapsed
12223
12224 \begin_layout Plain Layout
12225 |
12226 \end_layout
12227
12228 \end_inset
12229
12230
12231 \begin_inset Quotes erd
12232 \end_inset
12233
12234 .
12235
12236 \change_inserted -712698321 1565110196
12237  Any number is possible.
12238 \end_layout
12239
12240 \begin_layout Description
12241
12242 \change_inserted -712698321 1565110259
12243 \begin_inset Flex Code
12244 status collapsed
12245
12246 \begin_layout Plain Layout
12247
12248 \change_inserted -712698321 1565110199
12249 FontSizeFormat
12250 \change_unchanged
12251
12252 \end_layout
12253
12254 \end_inset
12255
12256  [
12257 \begin_inset Flex Code
12258 status collapsed
12259
12260 \begin_layout Plain Layout
12261
12262 \change_inserted -712698321 1565110196
12263 string
12264 \change_unchanged
12265
12266 \end_layout
12267
12268 \end_inset
12269
12270 ] The format for the font size option.
12271  Default: 
12272 \begin_inset Flex Code
12273 status collapsed
12274
12275 \begin_layout Plain Layout
12276
12277 \change_inserted -712698321 1565110238
12278 $$spt
12279 \change_unchanged
12280
12281 \end_layout
12282
12283 \end_inset
12284
12285 .
12286  
12287 \begin_inset Flex Code
12288 status collapsed
12289
12290 \begin_layout Plain Layout
12291
12292 \change_inserted -712698321 1565110248
12293 $$s
12294 \change_unchanged
12295
12296 \end_layout
12297
12298 \end_inset
12299
12300  is a placeholder for the font size.
12301 \change_unchanged
12302
12303 \end_layout
12304
12305 \begin_layout Description
12306
12307 \change_deleted 5863208 1594239483
12308 \begin_inset Flex Code
12309 status collapsed
12310
12311 \begin_layout Plain Layout
12312 Header
12313 \end_layout
12314
12315 \end_inset
12316
12317  Used to set the DTD line with XML-based output classes.
12318  E.
12319 \begin_inset space \thinspace{}
12320 \end_inset
12321
12322 g.: PUBLIC 
12323 \begin_inset Quotes eld
12324 \end_inset
12325
12326 -//OASIS//DTD DocBook V4.2//EN
12327 \begin_inset Quotes erd
12328 \end_inset
12329
12330 .
12331 \change_inserted -712698321 1565101761
12332
12333 \end_layout
12334
12335 \begin_layout Description
12336
12337 \change_inserted -712698321 1565180598
12338 \begin_inset Flex Code
12339 status collapsed
12340
12341 \begin_layout Plain Layout
12342
12343 \change_inserted -712698321 1565101918
12344 PageSize
12345 \change_unchanged
12346
12347 \end_layout
12348
12349 \end_inset
12350
12351  [
12352 \begin_inset Flex Code
12353 status collapsed
12354
12355 \begin_layout Plain Layout
12356
12357 \change_inserted -712698321 1565105399
12358 string="letter|\SpecialChar allowbreak
12359 legal|\SpecialChar allowbreak
12360 executive|\SpecialChar allowbreak
12361 a0|\SpecialChar allowbreak
12362 a1|\SpecialChar allowbreak
12363 a2|\SpecialChar allowbreak
12364 a3|\SpecialChar allowbreak
12365 a4|\SpecialChar allowbreak
12366 a5|\SpecialChar allowbreak
12367 a6|\SpecialChar allowbreak
12368 b0|\SpecialChar allowbreak
12369 b1|\SpecialChar allowbreak
12370 b2|\SpecialChar allowbreak
12371 b3|\SpecialChar allowbreak
12372 b4|\SpecialChar allowbreak
12373 b5|\SpecialChar allowbreak
12374 b6|\SpecialChar allowbreak
12375 c0|\SpecialChar allowbreak
12376 c1|\SpecialChar allowbreak
12377 c
12378 2|\SpecialChar allowbreak
12379 c3|\SpecialChar allowbreak
12380 c4|\SpecialChar allowbreak
12381 c5|\SpecialChar allowbreak
12382 c6|\SpecialChar allowbreak
12383 b0j|\SpecialChar allowbreak
12384 b1j|\SpecialChar allowbreak
12385 b2j|\SpecialChar allowbreak
12386 b3j|\SpecialChar allowbreak
12387 b4j|\SpecialChar allowbreak
12388 b5j|\SpecialChar allowbreak
12389 b6j"
12390 \change_unchanged
12391
12392 \end_layout
12393
12394 \end_inset
12395
12396 ] The list of available page sizes, separated by 
12397 \begin_inset Quotes eld
12398 \end_inset
12399
12400
12401 \begin_inset Flex Code
12402 status collapsed
12403
12404 \begin_layout Plain Layout
12405
12406 \change_inserted -712698321 1565101779
12407 |
12408 \change_unchanged
12409
12410 \end_layout
12411
12412 \end_inset
12413
12414
12415 \begin_inset Quotes erd
12416 \end_inset
12417
12418 .
12419  Currently, only the listed sizes are supported.
12420  Other sizes might be entered as custom class option.
12421 \end_layout
12422
12423 \begin_layout Description
12424
12425 \change_inserted -712698321 1565180623
12426 \begin_inset Flex Code
12427 status collapsed
12428
12429 \begin_layout Plain Layout
12430
12431 \change_inserted -712698321 1565180605
12432 PageSizeFormat
12433 \change_unchanged
12434
12435 \end_layout
12436
12437 \end_inset
12438
12439  [
12440 \begin_inset Flex Code
12441 status collapsed
12442
12443 \begin_layout Plain Layout
12444
12445 \change_inserted -712698321 1565180601
12446 string
12447 \change_unchanged
12448
12449 \end_layout
12450
12451 \end_inset
12452
12453 ] The format for the page size option.
12454  Default: 
12455 \begin_inset Flex Code
12456 status collapsed
12457
12458 \begin_layout Plain Layout
12459
12460 \change_inserted -712698321 1565180618
12461 $$spaper
12462 \change_unchanged
12463
12464 \end_layout
12465
12466 \end_inset
12467
12468 .
12469  
12470 \begin_inset Flex Code
12471 status collapsed
12472
12473 \begin_layout Plain Layout
12474
12475 \change_inserted -712698321 1565180601
12476 $$s
12477 \change_unchanged
12478
12479 \end_layout
12480
12481 \end_inset
12482
12483  is a placeholder for the paper size.
12484 \change_unchanged
12485
12486 \end_layout
12487
12488 \begin_layout Description
12489 \begin_inset Flex Code
12490 status collapsed
12491
12492 \begin_layout Plain Layout
12493 PageStyle
12494 \end_layout
12495
12496 \end_inset
12497
12498  [
12499 \begin_inset Flex Code
12500 status collapsed
12501
12502 \begin_layout Plain Layout
12503 string="empty|plain|headings|fancy"
12504 \end_layout
12505
12506 \end_inset
12507
12508 ] The list of available page sty\SpecialChar softhyphen
12509 les, separated by 
12510 \begin_inset Quotes eld
12511 \end_inset
12512
12513
12514 \begin_inset Flex Code
12515 status collapsed
12516
12517 \begin_layout Plain Layout
12518 |
12519 \end_layout
12520
12521 \end_inset
12522
12523
12524 \begin_inset Quotes erd
12525 \end_inset
12526
12527 .
12528 \end_layout
12529
12530 \begin_layout Description
12531 \begin_inset Flex Code
12532 status collapsed
12533
12534 \begin_layout Plain Layout
12535 Other
12536 \end_layout
12537
12538 \end_inset
12539
12540  [
12541 \begin_inset Flex Code
12542 status collapsed
12543
12544 \begin_layout Plain Layout
12545 string=""
12546 \end_layout
12547
12548 \end_inset
12549
12550 ] Some document class options, separated by a comma, that will be added
12551  to the optional part of the 
12552 \begin_inset Flex Code
12553 status collapsed
12554
12555 \begin_layout Plain Layout
12556
12557 \backslash
12558 documentclass
12559 \end_layout
12560
12561 \end_inset
12562
12563  command.
12564 \end_layout
12565
12566 \begin_layout Standard
12567 The 
12568 \begin_inset Flex Code
12569 status collapsed
12570
12571 \begin_layout Plain Layout
12572 ClassOptions
12573 \end_layout
12574
12575 \end_inset
12576
12577  section must end with 
12578 \begin_inset Quotes eld
12579 \end_inset
12580
12581
12582 \begin_inset Flex Code
12583 status collapsed
12584
12585 \begin_layout Plain Layout
12586 End
12587 \end_layout
12588
12589 \end_inset
12590
12591
12592 \begin_inset Quotes erd
12593 \end_inset
12594
12595 .
12596 \end_layout
12597
12598 \begin_layout Subsection
12599 Paragraph styles
12600 \begin_inset CommandInset label
12601 LatexCommand label
12602 name "subsec:Paragraph-Styles"
12603
12604 \end_inset
12605
12606
12607 \end_layout
12608
12609 \begin_layout Standard
12610 A paragraph style description looks like this:
12611 \begin_inset Foot
12612 status collapsed
12613
12614 \begin_layout Plain Layout
12615 Note that this will either define a new style or modify an existing one.
12616 \end_layout
12617
12618 \end_inset
12619
12620
12621 \end_layout
12622
12623 \begin_layout LyX-Code
12624 Style 
12625 \family roman
12626 \emph on
12627 name
12628 \end_layout
12629
12630 \begin_layout LyX-Code
12631  ...
12632 \end_layout
12633
12634 \begin_layout LyX-Code
12635 End
12636 \end_layout
12637
12638 \begin_layout Standard
12639 where the following commands are allowed:
12640 \end_layout
12641
12642 \begin_layout Description
12643 \begin_inset Flex Code
12644 status collapsed
12645
12646 \begin_layout Plain Layout
12647 AddToToc
12648 \end_layout
12649
12650 \end_inset
12651
12652  [
12653 \begin_inset Flex Code
12654 status collapsed
12655
12656 \begin_layout Plain Layout
12657 string
12658 \end_layout
12659
12660 \end_inset
12661
12662 =""] This paragraph will appear in the table of contents of the given type.
12663  An empty string disables.
12664  See also the OutlinerName and the IsTocCaption commands.
12665  Default: disabled.
12666 \end_layout
12667
12668 \begin_layout Description
12669 \begin_inset Flex Code
12670 status collapsed
12671
12672 \begin_layout Plain Layout
12673 Align
12674 \end_layout
12675
12676 \end_inset
12677
12678  [
12679 \begin_inset Flex Code
12680 status collapsed
12681
12682 \begin_layout Plain Layout
12683
12684 \emph on
12685 block
12686 \emph default
12687 , left, right, center
12688 \end_layout
12689
12690 \end_inset
12691
12692 ] Paragraph alignment.
12693 \end_layout
12694
12695 \begin_layout Description
12696 \begin_inset Flex Code
12697 status collapsed
12698
12699 \begin_layout Plain Layout
12700 AlignPossible
12701 \end_layout
12702
12703 \end_inset
12704
12705  [
12706 \begin_inset Flex Code
12707 status collapsed
12708
12709 \begin_layout Plain Layout
12710
12711 \emph on
12712 block
12713 \emph default
12714 , left, right, center
12715 \end_layout
12716
12717 \end_inset
12718
12719 ] A comma separated list of permitted alignments.
12720  (Some \SpecialChar LaTeX
12721  styles prohibit certain alignments, since those wouldn't make sense.
12722  For example a right-aligned or centered enumeration isn't possible.)
12723 \end_layout
12724
12725 \begin_layout Description
12726 \begin_inset Flex Code
12727 status collapsed
12728
12729 \begin_layout Plain Layout
12730 Argument
12731 \end_layout
12732
12733 \end_inset
12734
12735  [
12736 \begin_inset Flex Code
12737 status collapsed
12738
12739 \begin_layout Plain Layout
12740 int
12741 \end_layout
12742
12743 \end_inset
12744
12745 ] Defines argument number <int> of a command\SpecialChar breakableslash
12746 environment associated with
12747  the current style.
12748
12749 \change_inserted -584632292 1615846868
12750  The definition must end with 
12751 \begin_inset Flex Code
12752 status collapsed
12753
12754 \begin_layout Plain Layout
12755
12756 \change_inserted -584632292 1615846867
12757 EndArgument
12758 \change_unchanged
12759
12760 \end_layout
12761
12762 \end_inset
12763
12764 .
12765
12766 \change_unchanged
12767  
12768 \change_inserted -584632292 1615846880
12769 See 
12770 \begin_inset CommandInset ref
12771 LatexCommand formatted
12772 reference "subsec:Arguments"
12773 plural "false"
12774 caps "false"
12775 noprefix "false"
12776
12777 \end_inset
12778
12779  for more information.
12780  
12781 \change_deleted -584632292 1615846694
12782 This is useful for things like section headings, and only makes sense with
12783  \SpecialChar LaTeX
12784 .
12785  Every (optional or required) argument of a command or environment – except
12786  for the required argument that is associated with the content of the paragraph
12787  itself – has a separate definition, where the number specifies the order
12788  of the arguments.
12789  The definition must end with 
12790 \begin_inset Flex Code
12791 status collapsed
12792
12793 \begin_layout Plain Layout
12794 EndArgument
12795 \end_layout
12796
12797 \end_inset
12798
12799 .
12800  So a command with two optional arguments has:
12801 \end_layout
12802
12803 \begin_deeper
12804 \begin_layout Quote
12805
12806 \change_deleted -584632292 1615846694
12807
12808 \family typewriter
12809 Argument 1
12810 \end_layout
12811
12812 \begin_layout Quote
12813
12814 \change_deleted -584632292 1615846694
12815
12816 \family typewriter
12817 ...
12818 \end_layout
12819
12820 \begin_layout Quote
12821
12822 \change_deleted -584632292 1615846694
12823
12824 \family typewriter
12825 EndArgument
12826 \end_layout
12827
12828 \begin_layout Quote
12829
12830 \change_deleted -584632292 1615846694
12831
12832 \family typewriter
12833 Argument 2
12834 \end_layout
12835
12836 \begin_layout Quote
12837
12838 \change_deleted -584632292 1615846694
12839
12840 \family typewriter
12841 ...
12842 \end_layout
12843
12844 \begin_layout Quote
12845
12846 \change_deleted -584632292 1615846694
12847
12848 \family typewriter
12849 EndArgument
12850 \end_layout
12851
12852 \begin_layout Standard
12853
12854 \change_deleted -584632292 1615846694
12855 Inside the 
12856 \begin_inset Flex Code
12857 status collapsed
12858
12859 \begin_layout Plain Layout
12860 Argument
12861 \end_layout
12862
12863 \end_inset
12864
12865  definition, the following specifications are possible:
12866 \end_layout
12867
12868 \begin_layout Itemize
12869
12870 \change_deleted -584632292 1615846694
12871 \begin_inset Flex Code
12872 status collapsed
12873
12874 \begin_layout Plain Layout
12875 LabelString
12876 \end_layout
12877
12878 \end_inset
12879
12880  
12881 \begin_inset Flex Code
12882 status collapsed
12883
12884 \begin_layout Plain Layout
12885 [string]
12886 \end_layout
12887
12888 \end_inset
12889
12890  The string that will appear both in the menu (to insert this argument)
12891  and on the argument inset button (unless you also specify a separate 
12892 \begin_inset Flex Code
12893 status collapsed
12894
12895 \begin_layout Plain Layout
12896 MenuString
12897 \end_layout
12898
12899 \end_inset
12900
12901 ).
12902  For the menu, you can define an accelerator by appending the respective
12903  character to the string, divided by 
12904 \begin_inset Quotes eld
12905 \end_inset
12906
12907 |
12908 \begin_inset Quotes erd
12909 \end_inset
12910
12911  (e.
12912 \begin_inset space \thinspace{}
12913 \end_inset
12914
12915 g.
12916 \begin_inset space \space{}
12917 \end_inset
12918
12919
12920 \begin_inset Quotes eld
12921 \end_inset
12922
12923
12924 \begin_inset Flex Code
12925 status collapsed
12926
12927 \begin_layout Plain Layout
12928 Short Title|S
12929 \end_layout
12930
12931 \end_inset
12932
12933
12934 \begin_inset Quotes erd
12935 \end_inset
12936
12937 ).
12938 \end_layout
12939
12940 \begin_layout Itemize
12941
12942 \change_deleted -584632292 1615846694
12943 \begin_inset Flex Code
12944 status collapsed
12945
12946 \begin_layout Plain Layout
12947 MenuString
12948 \end_layout
12949
12950 \end_inset
12951
12952  
12953 \begin_inset Flex Code
12954 status collapsed
12955
12956 \begin_layout Plain Layout
12957 [string]
12958 \end_layout
12959
12960 \end_inset
12961
12962  A separate string for the menu.
12963  You can define an accelerator by appending the respective character to
12964  the string, divided by 
12965 \begin_inset Quotes eld
12966 \end_inset
12967
12968 |
12969 \begin_inset Quotes erd
12970 \end_inset
12971
12972  (e.
12973 \begin_inset space \thinspace{}
12974 \end_inset
12975
12976 g.
12977 \begin_inset space \space{}
12978 \end_inset
12979
12980
12981 \begin_inset Quotes eld
12982 \end_inset
12983
12984
12985 \begin_inset Flex Code
12986 status collapsed
12987
12988 \begin_layout Plain Layout
12989 Short Title|S
12990 \end_layout
12991
12992 \end_inset
12993
12994
12995 \begin_inset Quotes erd
12996 \end_inset
12997
12998 ).
12999  This specification is optional.
13000  If it is not given the 
13001 \begin_inset Flex Code
13002 status collapsed
13003
13004 \begin_layout Plain Layout
13005 LabelString
13006 \end_layout
13007
13008 \end_inset
13009
13010  will be used instead for the menu.
13011 \end_layout
13012
13013 \begin_layout Itemize
13014
13015 \change_deleted -584632292 1615846694
13016 \begin_inset Flex Code
13017 status collapsed
13018
13019 \begin_layout Plain Layout
13020 Tooltip
13021 \end_layout
13022
13023 \end_inset
13024
13025  
13026 \begin_inset Flex Code
13027 status collapsed
13028
13029 \begin_layout Plain Layout
13030 [string]
13031 \end_layout
13032
13033 \end_inset
13034
13035  A longer explanatory text that appears in the tooltip when hovering over
13036  the argument inset.
13037 \end_layout
13038
13039 \begin_layout Itemize
13040
13041 \change_deleted -584632292 1615846694
13042 \begin_inset Flex Code
13043 status collapsed
13044
13045 \begin_layout Plain Layout
13046 Mandatory
13047 \end_layout
13048
13049 \end_inset
13050
13051  [
13052 \begin_inset Flex Code
13053 status collapsed
13054
13055 \begin_layout Plain Layout
13056
13057 \emph on
13058 0
13059 \end_layout
13060
13061 \end_inset
13062
13063 ,
13064 \begin_inset space \thinspace{}
13065 \end_inset
13066
13067
13068 \begin_inset Flex Code
13069 status collapsed
13070
13071 \begin_layout Plain Layout
13072 1
13073 \end_layout
13074
13075 \end_inset
13076
13077 ] Declare if this is a mandatory (1) or an optional (0) argument.
13078  Mandatory arguments will be output empty if not given, while optional arguments
13079  will not be output at all.
13080  By default, mandatory arguments are delimited by 
13081 \begin_inset Flex Code
13082 status collapsed
13083
13084 \begin_layout Plain Layout
13085 {...}
13086 \end_layout
13087
13088 \end_inset
13089
13090 , while optional arguments are delimited by 
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095 [...]
13096 \end_layout
13097
13098 \end_inset
13099
13100
13101 \end_layout
13102
13103 \begin_layout Itemize
13104
13105 \change_deleted -584632292 1615846694
13106 \begin_inset Flex Code
13107 status collapsed
13108
13109 \begin_layout Plain Layout
13110
13111 \change_inserted -712698321 1555579780
13112 NewlineCmd
13113 \change_unchanged
13114
13115 \end_layout
13116
13117 \end_inset
13118
13119  
13120 \begin_inset Flex Code
13121 status collapsed
13122
13123 \begin_layout Plain Layout
13124
13125 \change_inserted -712698321 1555579780
13126 [string]
13127 \change_unchanged
13128
13129 \end_layout
13130
13131 \end_inset
13132
13133  Option to define a different command (from the default 
13134 \begin_inset Flex Code
13135 status collapsed
13136
13137 \begin_layout Plain Layout
13138
13139 \change_inserted -712698321 1555579780
13140
13141 \backslash
13142
13143 \backslash
13144
13145 \change_unchanged
13146
13147 \end_layout
13148
13149 \end_inset
13150
13151 ) to be used for line breaks.
13152  The initial backslash must not be specified.
13153 \end_layout
13154
13155 \begin_layout Itemize
13156
13157 \change_deleted -584632292 1615846694
13158 \begin_inset Flex Code
13159 status collapsed
13160
13161 \begin_layout Plain Layout
13162 Requires
13163 \end_layout
13164
13165 \end_inset
13166
13167  
13168 \begin_inset Flex Code
13169 status collapsed
13170
13171 \begin_layout Plain Layout
13172 [int=0]
13173 \end_layout
13174
13175 \end_inset
13176
13177  defines another argument (by its number) which this argument requires to
13178  be output if it is itself output.
13179  E.
13180 \begin_inset space \thinspace{}
13181 \end_inset
13182
13183 g., in \SpecialChar LaTeX
13184  commands, optional arguments often require previous optional arguments
13185  to be output (at least empty), as in 
13186 \begin_inset Flex Code
13187 status collapsed
13188
13189 \begin_layout Plain Layout
13190
13191 \backslash
13192 command[][argument]{text}
13193 \end_layout
13194
13195 \end_inset
13196
13197 .
13198  This can be achieved by the statement 
13199 \begin_inset Flex Code
13200 status collapsed
13201
13202 \begin_layout Plain Layout
13203 Requires 1
13204 \end_layout
13205
13206 \end_inset
13207
13208  within 
13209 \begin_inset Flex Code
13210 status collapsed
13211
13212 \begin_layout Plain Layout
13213 Argument 2
13214 \end_layout
13215
13216 \end_inset
13217
13218 .
13219 \end_layout
13220
13221 \begin_layout Itemize
13222
13223 \change_deleted -584632292 1615846694
13224 \begin_inset Flex Code
13225 status collapsed
13226
13227 \begin_layout Plain Layout
13228 LeftDelim
13229 \end_layout
13230
13231 \end_inset
13232
13233  
13234 \begin_inset Flex Code
13235 status collapsed
13236
13237 \begin_layout Plain Layout
13238 [string]
13239 \end_layout
13240
13241 \end_inset
13242
13243  defines a custom left delimiter (instead of 
13244 \begin_inset Flex Code
13245 status collapsed
13246
13247 \begin_layout Plain Layout
13248 {
13249 \end_layout
13250
13251 \end_inset
13252
13253  or 
13254 \begin_inset Flex Code
13255 status collapsed
13256
13257 \begin_layout Plain Layout
13258 [
13259 \end_layout
13260
13261 \end_inset
13262
13263 ).
13264  A line break in the output can be indicated by 
13265 \begin_inset Flex Code
13266 status collapsed
13267
13268 \begin_layout Plain Layout
13269 <br/>
13270 \end_layout
13271
13272 \end_inset
13273
13274 .
13275 \end_layout
13276
13277 \begin_layout Itemize
13278
13279 \change_deleted -584632292 1615846694
13280 \begin_inset Flex Code
13281 status collapsed
13282
13283 \begin_layout Plain Layout
13284 RightDelim
13285 \end_layout
13286
13287 \end_inset
13288
13289  
13290 \begin_inset Flex Code
13291 status collapsed
13292
13293 \begin_layout Plain Layout
13294 [string]
13295 \end_layout
13296
13297 \end_inset
13298
13299  defines a custom right delimiter (instead of 
13300 \begin_inset Flex Code
13301 status collapsed
13302
13303 \begin_layout Plain Layout
13304 }
13305 \end_layout
13306
13307 \end_inset
13308
13309  or 
13310 \begin_inset Flex Code
13311 status collapsed
13312
13313 \begin_layout Plain Layout
13314 ]
13315 \end_layout
13316
13317 \end_inset
13318
13319 ).
13320  A line break in the output can be indicated by 
13321 \begin_inset Flex Code
13322 status collapsed
13323
13324 \begin_layout Plain Layout
13325 <br/>
13326 \end_layout
13327
13328 \end_inset
13329
13330 .
13331 \end_layout
13332
13333 \begin_layout Itemize
13334
13335 \change_deleted -584632292 1615846694
13336 \begin_inset Flex Code
13337 status collapsed
13338
13339 \begin_layout Plain Layout
13340 DefaultArg
13341 \end_layout
13342
13343 \end_inset
13344
13345  
13346 \begin_inset Flex Code
13347 status collapsed
13348
13349 \begin_layout Plain Layout
13350 [string]
13351 \end_layout
13352
13353 \end_inset
13354
13355  defines an argument that is inserted if and only if no user-specified arguments
13356  were given, i.
13357 \begin_inset space \thinspace{}
13358 \end_inset
13359
13360 e.
13361 \begin_inset space \space{}
13362 \end_inset
13363
13364 if no argument inset has been inserted (note that also an empty argument
13365  inset omits the DefaultArg).
13366  Multiple arguments need to be separated by comma.
13367 \end_layout
13368
13369 \begin_layout Itemize
13370
13371 \change_deleted -584632292 1615846694
13372 \begin_inset Flex Code
13373 status collapsed
13374
13375 \begin_layout Plain Layout
13376 PresetArg
13377 \end_layout
13378
13379 \end_inset
13380
13381  
13382 \begin_inset Flex Code
13383 status collapsed
13384
13385 \begin_layout Plain Layout
13386 [string]
13387 \end_layout
13388
13389 \end_inset
13390
13391  defines an argument that is inserted in any case (alone or in addition
13392  to user-specified arguments).
13393  Multiple arguments need to be separated by comma.
13394 \end_layout
13395
13396 \begin_layout Itemize
13397
13398 \change_deleted -584632292 1615846694
13399 \begin_inset Flex Code
13400 status collapsed
13401
13402 \begin_layout Plain Layout
13403 Font
13404 \end_layout
13405
13406 \end_inset
13407
13408  The font used for the argument content, see 
13409 \begin_inset CommandInset ref
13410 LatexCommand ref
13411 reference "subsec:Font-description"
13412
13413 \end_inset
13414
13415 .
13416 \end_layout
13417
13418 \begin_layout Itemize
13419
13420 \change_deleted -584632292 1615846694
13421 \begin_inset Flex Code
13422 status collapsed
13423
13424 \begin_layout Plain Layout
13425
13426 \change_inserted -712698321 1559484228
13427 FreeSpacing
13428 \change_unchanged
13429
13430 \end_layout
13431
13432 \end_inset
13433
13434  [
13435 \begin_inset Flex Code
13436 status collapsed
13437
13438 \begin_layout Plain Layout
13439
13440 \change_inserted -712698321 1559484228
13441
13442 \emph on
13443 0
13444 \change_unchanged
13445
13446 \end_layout
13447
13448 \end_inset
13449
13450 ,
13451 \begin_inset space \thinspace{}
13452 \end_inset
13453
13454
13455 \begin_inset Flex Code
13456 status collapsed
13457
13458 \begin_layout Plain Layout
13459
13460 \change_inserted -712698321 1559484228
13461 1
13462 \change_unchanged
13463
13464 \end_layout
13465
13466 \end_inset
13467
13468 ] As with paragraph styles, see 
13469 \begin_inset CommandInset ref
13470 LatexCommand ref
13471 reference "subsec:Paragraph-Styles"
13472
13473 \end_inset
13474
13475 .
13476 \end_layout
13477
13478 \begin_layout Itemize
13479
13480 \change_deleted -584632292 1615846694
13481 \begin_inset Flex Code
13482 status collapsed
13483
13484 \begin_layout Plain Layout
13485 LabelFont
13486 \end_layout
13487
13488 \end_inset
13489
13490  The font used for the label; see 
13491 \begin_inset CommandInset ref
13492 LatexCommand ref
13493 reference "subsec:Font-description"
13494
13495 \end_inset
13496
13497 .
13498 \end_layout
13499
13500 \begin_layout Itemize
13501
13502 \change_deleted -584632292 1615846694
13503 \begin_inset Flex Code
13504 status collapsed
13505
13506 \begin_layout Plain Layout
13507 Decoration
13508 \end_layout
13509
13510 \end_inset
13511
13512  [
13513 \begin_inset Flex Code
13514 status collapsed
13515
13516 \begin_layout Plain Layout
13517
13518 \emph on
13519 Classic
13520 \emph default
13521 , Minimalistic, Conglomerate
13522 \end_layout
13523
13524 \end_inset
13525
13526 ] describes the rendering style used for the inset's frame and buttons.
13527 \end_layout
13528
13529 \begin_layout Itemize
13530
13531 \change_deleted -584632292 1615846694
13532 \begin_inset Flex Code
13533 status collapsed
13534
13535 \begin_layout Plain Layout
13536 AutoInsert
13537 \end_layout
13538
13539 \end_inset
13540
13541  
13542 \begin_inset Flex Code
13543 status collapsed
13544
13545 \begin_layout Plain Layout
13546 [int=0]
13547 \end_layout
13548
13549 \end_inset
13550
13551  If this is set to 
13552 \begin_inset Flex Code
13553 status collapsed
13554
13555 \begin_layout Plain Layout
13556 1
13557 \end_layout
13558
13559 \end_inset
13560
13561 , this argument is automatically inserted when the respective style is selected.
13562
13563 \change_deleted -712698321 1559484200
13564  Currently, only one argument per style\SpecialChar breakableslash
13565 layout can be automatically inserted.
13566 \change_deleted -584632292 1615846694
13567
13568 \end_layout
13569
13570 \begin_layout Itemize
13571
13572 \change_deleted -584632292 1615846694
13573 \begin_inset Flex Code
13574 status collapsed
13575
13576 \begin_layout Plain Layout
13577
13578 \change_inserted -712698321 1559490711
13579 InsertOnNewline
13580 \change_unchanged
13581
13582 \end_layout
13583
13584 \end_inset
13585
13586  
13587 \begin_inset Flex Code
13588 status collapsed
13589
13590 \begin_layout Plain Layout
13591
13592 \change_inserted -712698321 1559490703
13593 [int=0]
13594 \change_unchanged
13595
13596 \end_layout
13597
13598 \end_inset
13599
13600  If this is set to 
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605
13606 \change_inserted -712698321 1559490703
13607 1
13608 \change_unchanged
13609
13610 \end_layout
13611
13612 \end_inset
13613
13614 , this argument will be inserted on a new line with 
13615 \begin_inset Flex Code
13616 status collapsed
13617
13618 \begin_layout Plain Layout
13619
13620 \change_inserted -712698321 1559491402
13621 AutoInsert
13622 \change_unchanged
13623
13624 \end_layout
13625
13626 \end_inset
13627
13628  (only available within Flex insets).
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 InsertCotext
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  If this is set to 
13654 \begin_inset Flex Code
13655 status collapsed
13656
13657 \begin_layout Plain Layout
13658 1
13659 \end_layout
13660
13661 \end_inset
13662
13663 , this argument will be inserted with a copy of the co-text (either selected
13664  text or the whole paragraph) as content.
13665 \end_layout
13666
13667 \begin_layout Itemize
13668
13669 \change_deleted -584632292 1615846694
13670 \begin_inset Flex Code
13671 status collapsed
13672
13673 \begin_layout Plain Layout
13674 PassThru
13675 \end_layout
13676
13677 \end_inset
13678
13679  [
13680 \begin_inset Flex Code
13681 status collapsed
13682
13683 \begin_layout Plain Layout
13684
13685 \emph on
13686 inherited
13687 \emph default
13688 , true, false
13689 \end_layout
13690
13691 \end_inset
13692
13693 ] Whether the contents of this argument should be output in raw form, meaning
13694  without special translations that \SpecialChar LaTeX
13695  would require.
13696  By default, the 
13697 \begin_inset Flex Code
13698 status collapsed
13699
13700 \begin_layout Plain Layout
13701 PassThru
13702 \end_layout
13703
13704 \end_inset
13705
13706  status is inherited by the inset or paragraph layout the argument belongs
13707  to, true and false change the status for the given argument only.
13708 \end_layout
13709
13710 \begin_layout Itemize
13711
13712 \change_deleted -584632292 1615846694
13713 \begin_inset Flex Code
13714 status collapsed
13715
13716 \begin_layout Plain Layout
13717 PassThruChars
13718 \end_layout
13719
13720 \end_inset
13721
13722  [
13723 \begin_inset Flex Code
13724 status collapsed
13725
13726 \begin_layout Plain Layout
13727 string of characters
13728 \end_layout
13729
13730 \end_inset
13731
13732 ]
13733 \family typewriter
13734  
13735 \family default
13736 Defines individual characters
13737 \begin_inset Newline linebreak
13738 \end_inset
13739
13740 that should be output in raw form, meaning without special translations
13741  that \SpecialChar LaTeX
13742  would require.
13743  Note that, contrary to PassThru, this needs to be explicitly defined for
13744  arguments.
13745  That is, arguments do not inherit PassThruChars from their parent inset
13746  or layout.
13747 \end_layout
13748
13749 \begin_layout Itemize
13750
13751 \change_deleted -584632292 1615846694
13752 \begin_inset Flex Code
13753 status collapsed
13754
13755 \begin_layout Plain Layout
13756 IsTocCaption
13757 \end_layout
13758
13759 \end_inset
13760
13761  [
13762 \begin_inset Flex Code
13763 status collapsed
13764
13765 \begin_layout Plain Layout
13766
13767 \emph on
13768 0
13769 \end_layout
13770
13771 \end_inset
13772
13773 ,
13774 \begin_inset space \thinspace{}
13775 \end_inset
13776
13777
13778 \begin_inset Flex Code
13779 status collapsed
13780
13781 \begin_layout Plain Layout
13782 1
13783 \end_layout
13784
13785 \end_inset
13786
13787 ] If this is set to 1, the argument will output its content in the corresponding
13788  item in the table of contents.
13789  See AddToToc.
13790 \end_layout
13791
13792 \begin_layout Standard
13793
13794 \change_deleted -584632292 1615846694
13795 By default, the text entered in the \SpecialChar LyX
13796  workarea in the respective layout is
13797  the last (mandatory) argument of a command if the 
13798 \begin_inset Flex Code
13799 status collapsed
13800
13801 \begin_layout Plain Layout
13802 LatexType
13803 \end_layout
13804
13805 \end_inset
13806
13807  is 
13808 \begin_inset Flex Code
13809 status collapsed
13810
13811 \begin_layout Plain Layout
13812 Command
13813 \end_layout
13814
13815 \end_inset
13816
13817 .
13818  However, arguments with the prefix 
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 post:
13824 \end_layout
13825
13826 \end_inset
13827
13828  are output after this workarea argument.
13829  Note that post-argument numbering restarts at 1, so the first argument
13830  following the workarea argument is 
13831 \begin_inset Flex Code
13832 status collapsed
13833
13834 \begin_layout Plain Layout
13835 post:1
13836 \end_layout
13837
13838 \end_inset
13839
13840 .
13841  Post-arguments are ignored in any other 
13842 \begin_inset Flex Code
13843 status collapsed
13844
13845 \begin_layout Plain Layout
13846 LatexType
13847 \end_layout
13848
13849 \end_inset
13850
13851  than 
13852 \begin_inset Flex Code
13853 status collapsed
13854
13855 \begin_layout Plain Layout
13856 Command
13857 \end_layout
13858
13859 \end_inset
13860
13861 .
13862 \end_layout
13863
13864 \begin_layout Standard
13865
13866 \change_deleted -584632292 1615846694
13867 Arguments for list 
13868 \begin_inset Flex Code
13869 status collapsed
13870
13871 \begin_layout Plain Layout
13872
13873 \backslash
13874 item
13875 \end_layout
13876
13877 \end_inset
13878
13879 s (as in 
13880 \begin_inset Flex Code
13881 status collapsed
13882
13883 \begin_layout Plain Layout
13884
13885 \backslash
13886 item[foo]
13887 \end_layout
13888
13889 \end_inset
13890
13891 ) have the prefix 
13892 \begin_inset Flex Code
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896 item:
13897 \end_layout
13898
13899 \end_inset
13900
13901  followed by the number (e.
13902 \begin_inset space \thinspace{}
13903 \end_inset
13904
13905 g.
13906 \begin_inset space \space{}
13907 \end_inset
13908
13909
13910 \begin_inset Flex Code
13911 status collapsed
13912
13913 \begin_layout Plain Layout
13914 Argument item:1
13915 \end_layout
13916
13917 \end_inset
13918
13919 ).
13920 \end_layout
13921
13922 \begin_layout Standard
13923
13924 \change_deleted -584632292 1615846694
13925 Finally, there is a special argument type with the prefix 
13926 \begin_inset Flex Code
13927 status collapsed
13928
13929 \begin_layout Plain Layout
13930
13931 \change_inserted -712698321 1534487844
13932 listpreamble:
13933 \change_unchanged
13934
13935 \end_layout
13936
13937 \end_inset
13938
13939 .
13940  It is not really an argument, but uses the argument interface (thus, the
13941  prefix is also followed by a number, e.
13942 \begin_inset space \thinspace{}
13943 \end_inset
13944
13945 g.
13946  
13947 \begin_inset Flex Code
13948 status collapsed
13949
13950 \begin_layout Plain Layout
13951
13952 \change_inserted -712698321 1534488412
13953 Argument listpreamble:1
13954 \change_unchanged
13955
13956 \end_layout
13957
13958 \end_inset
13959
13960 ).
13961  As the name implies, it is targeted at lists such as 
13962 \family sans
13963 Itemize
13964 \family default
13965
13966 \family sans
13967 Enumerate
13968 \family default
13969
13970 \family sans
13971 Description
13972 \family default
13973 , or 
13974 \family sans
13975 Bibliography
13976 \family default
13977 .
13978  Its content will be output at the list start, before the first 
13979 \begin_inset Flex Code
13980 status collapsed
13981
13982 \begin_layout Plain Layout
13983
13984 \change_inserted -712698321 1534488058
13985
13986 \backslash
13987 item
13988 \change_unchanged
13989
13990 \end_layout
13991
13992 \end_inset
13993
13994 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13995 ).
13996  This way, users can insert redefinitions (of lengths etc.) to individual
13997  lists.
13998  By default, these arguments do not have a delimiter.
13999 \change_unchanged
14000
14001 \end_layout
14002
14003 \end_deeper
14004 \begin_layout Description
14005 \begin_inset Flex Code
14006 status collapsed
14007
14008 \begin_layout Plain Layout
14009 AutoNests
14010 \end_layout
14011
14012 \end_inset
14013
14014  Includes a comma-separated list of layouts that should be nested in and
14015  after the current layout.
14016  Only makes sense for nestable layouts (such as environments).
14017  Must be ended by 
14018 \begin_inset Quotes eld
14019 \end_inset
14020
14021
14022 \begin_inset Flex Code
14023 status collapsed
14024
14025 \begin_layout Plain Layout
14026 EndAutoNests
14027 \end_layout
14028
14029 \end_inset
14030
14031
14032 \begin_inset Quotes erd
14033 \end_inset
14034
14035 .
14036  See also 
14037 \begin_inset Flex Code
14038 status collapsed
14039
14040 \begin_layout Plain Layout
14041 IsAutoNestedBy
14042 \end_layout
14043
14044 \end_inset
14045
14046 .
14047 \end_layout
14048
14049 \begin_layout Description
14050 \begin_inset Flex Code
14051 status collapsed
14052
14053 \begin_layout Plain Layout
14054 BabelPreamble
14055 \end_layout
14056
14057 \end_inset
14058
14059  Note that this will completely override any prior 
14060 \begin_inset Flex Code
14061 status collapsed
14062
14063 \begin_layout Plain Layout
14064 BabelPreamble
14065 \end_layout
14066
14067 \end_inset
14068
14069  declaration for this style.
14070  Must end with 
14071 \begin_inset Quotes eld
14072 \end_inset
14073
14074
14075 \begin_inset Flex Code
14076 status collapsed
14077
14078 \begin_layout Plain Layout
14079 EndBabelPreamble
14080 \end_layout
14081
14082 \end_inset
14083
14084
14085 \begin_inset Quotes erd
14086 \end_inset
14087
14088 .
14089  See 
14090 \begin_inset CommandInset ref
14091 LatexCommand ref
14092 reference "subsec:I18n"
14093
14094 \end_inset
14095
14096  for details on its use.
14097 \end_layout
14098
14099 \begin_layout Description
14100 \begin_inset Flex Code
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104 BottomSep
14105 \end_layout
14106
14107 \end_inset
14108
14109  [
14110 \begin_inset Flex Code
14111 status collapsed
14112
14113 \begin_layout Plain Layout
14114 float=0
14115 \end_layout
14116
14117 \end_inset
14118
14119 ]
14120 \begin_inset Foot
14121 status collapsed
14122
14123 \begin_layout Plain Layout
14124 Note that a `float' here is a real number, such as: 1.5.
14125 \end_layout
14126
14127 \end_inset
14128
14129  The vertical space with which the last of a chain of paragraphs with this
14130  style is separated from the following paragraph.
14131  If the next paragraph has another style, the separations are not simply
14132  added, but the maximum is taken.
14133 \end_layout
14134
14135 \begin_layout Description
14136 \begin_inset Flex Code
14137 status collapsed
14138
14139 \begin_layout Plain Layout
14140 Category
14141 \end_layout
14142
14143 \end_inset
14144
14145  [
14146 \begin_inset Flex Code
14147 status collapsed
14148
14149 \begin_layout Plain Layout
14150 string
14151 \end_layout
14152
14153 \end_inset
14154
14155 ] The category for this style.
14156  This is used to group related styles in the style combobox on the toolbar.
14157  Any string can be used, but you may want to use existing categories with
14158  your own styles.
14159  
14160 \end_layout
14161
14162 \begin_layout Description
14163 \begin_inset Flex Code
14164 status collapsed
14165
14166 \begin_layout Plain Layout
14167 CommandDepth
14168 \end_layout
14169
14170 \end_inset
14171
14172  Depth of XML command.
14173  Used only with XML-type formats.
14174 \end_layout
14175
14176 \begin_layout Description
14177 \begin_inset Flex Code
14178 status collapsed
14179
14180 \begin_layout Plain Layout
14181 CopyStyle
14182 \end_layout
14183
14184 \end_inset
14185
14186  [
14187 \begin_inset Flex Code
14188 status collapsed
14189
14190 \begin_layout Plain Layout
14191 string
14192 \end_layout
14193
14194 \end_inset
14195
14196 ] Copies all the features of an existing style into the current one.
14197  
14198 \end_layout
14199
14200 \begin_layout Description
14201 \begin_inset Flex Code
14202 status collapsed
14203
14204 \begin_layout Plain Layout
14205 DependsOn
14206 \end_layout
14207
14208 \end_inset
14209
14210  [
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 <name>
14216 \end_layout
14217
14218 \end_inset
14219
14220 ] The name of a style whose preamble should be output 
14221 \emph on
14222 before
14223 \emph default
14224  this one.
14225  This allows to ensure some ordering of the preamble snippets when macros
14226  definitions depend on one another.
14227 \begin_inset Foot
14228 status collapsed
14229
14230 \begin_layout Plain Layout
14231 Note that, besides that functionality, there is no way to ensure any ordering
14232  of preambles.
14233  The ordering that you see in a given version of \SpecialChar LyX
14234  may change without warning
14235  in later versions.
14236 \end_layout
14237
14238 \end_inset
14239
14240
14241 \end_layout
14242
14243 \begin_layout Description
14244 \begin_inset Flex Code
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248 EndLabeltype
14249 \end_layout
14250
14251 \end_inset
14252
14253  [
14254 \begin_inset Flex Code
14255 status collapsed
14256
14257 \begin_layout Plain Layout
14258
14259 \emph on
14260 No_Label
14261 \emph default
14262 , Box, Filled_Box, Static
14263 \end_layout
14264
14265 \end_inset
14266
14267 ] The type of label that stands at the end of the paragraph (or sequence
14268  of paragraphs if 
14269 \begin_inset Flex Code
14270 status collapsed
14271
14272 \begin_layout Plain Layout
14273 LatexType
14274 \end_layout
14275
14276 \end_inset
14277
14278  is
14279 \begin_inset Newline newline
14280 \end_inset
14281
14282
14283 \begin_inset Flex Code
14284 status collapsed
14285
14286 \begin_layout Plain Layout
14287 Environment
14288 \end_layout
14289
14290 \end_inset
14291
14292
14293 \begin_inset Flex Code
14294 status collapsed
14295
14296 \begin_layout Plain Layout
14297 Item_Environment
14298 \end_layout
14299
14300 \end_inset
14301
14302  or 
14303 \begin_inset Flex Code
14304 status collapsed
14305
14306 \begin_layout Plain Layout
14307 List_Environment
14308 \end_layout
14309
14310 \end_inset
14311
14312 ).
14313  
14314 \begin_inset Flex Code
14315 status collapsed
14316
14317 \begin_layout Plain Layout
14318 No_Label
14319 \end_layout
14320
14321 \end_inset
14322
14323  means 
14324 \begin_inset Quotes eld
14325 \end_inset
14326
14327 nothing
14328 \begin_inset Quotes erd
14329 \end_inset
14330
14331
14332 \begin_inset Flex Code
14333 status collapsed
14334
14335 \begin_layout Plain Layout
14336 Box
14337 \end_layout
14338
14339 \end_inset
14340
14341  (resp.
14342 \begin_inset space \space{}
14343 \end_inset
14344
14345
14346 \begin_inset Flex Code
14347 status collapsed
14348
14349 \begin_layout Plain Layout
14350 Filled_Box
14351 \end_layout
14352
14353 \end_inset
14354
14355 ) is a white (resp.
14356 \begin_inset space ~
14357 \end_inset
14358
14359 black) square suitable for end of proof markers, 
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 Static
14365 \end_layout
14366
14367 \end_inset
14368
14369  is an explicit text string.
14370 \end_layout
14371
14372 \begin_layout Description
14373 \begin_inset Flex Code
14374 status collapsed
14375
14376 \begin_layout Plain Layout
14377 EndLabelString
14378 \end_layout
14379
14380 \end_inset
14381
14382  [
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 string=""
14388 \end_layout
14389
14390 \end_inset
14391
14392 ] The string used for a label with a 
14393 \begin_inset Flex Code
14394 status collapsed
14395
14396 \begin_layout Plain Layout
14397 Static
14398 \end_layout
14399
14400 \end_inset
14401
14402
14403 \begin_inset Newline newline
14404 \end_inset
14405
14406
14407 \begin_inset Flex Code
14408 status collapsed
14409
14410 \begin_layout Plain Layout
14411 EndLabelType
14412 \end_layout
14413
14414 \end_inset
14415
14416 .
14417  
14418 \end_layout
14419
14420 \begin_layout Description
14421 \begin_inset Flex Code
14422 status collapsed
14423
14424 \begin_layout Plain Layout
14425 Font
14426 \end_layout
14427
14428 \end_inset
14429
14430  The font used for both the text body 
14431 \emph on
14432 and
14433 \emph default
14434  the label.
14435  See 
14436 \begin_inset CommandInset ref
14437 LatexCommand ref
14438 reference "subsec:Font-description"
14439
14440 \end_inset
14441
14442 .
14443  Note that defining this font automatically defines the 
14444 \begin_inset Flex Code
14445 status collapsed
14446
14447 \begin_layout Plain Layout
14448 LabelFont
14449 \end_layout
14450
14451 \end_inset
14452
14453  to the same value.
14454  So you should define this one first if you also want to define 
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459 LabelFont
14460 \end_layout
14461
14462 \end_inset
14463
14464 .
14465 \end_layout
14466
14467 \begin_layout Description
14468 \begin_inset Flex Code
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472 ForceLocal
14473 \end_layout
14474
14475 \end_inset
14476
14477  [
14478 \begin_inset Flex Code
14479 status collapsed
14480
14481 \begin_layout Plain Layout
14482 int=0
14483 \end_layout
14484
14485 \end_inset
14486
14487 ] Used for backporting new styles to stable \SpecialChar LyX
14488  versions.
14489  The first stable version that supports this tag is \SpecialChar LyX
14490  2.1.0.
14491  The argument is a number which may either be 0, -1 or any value greater
14492  than zero.
14493  If the 
14494 \begin_inset Flex Code
14495 status collapsed
14496
14497 \begin_layout Plain Layout
14498 ForceLocal
14499 \end_layout
14500
14501 \end_inset
14502
14503  flag of a style is greater than zero, it will always be written to the
14504  document header.
14505  If a .lyx file is read, the style definitions from the document header are
14506  added to the document class.
14507  Therefore even older \SpecialChar LyX
14508  versions can handle the style.
14509  The argument of 
14510 \begin_inset Flex Code
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 ForceLocal
14515 \end_layout
14516
14517 \end_inset
14518
14519  is a version number: if the style is read, and the version number is less
14520  than the version number of the already existing style in the document class,
14521  the new style is ignored.
14522  If the version number is greater, the new style replaces the existing style.
14523  A value of -1 means an infinite version number, i.
14524 \begin_inset space \thinspace{}
14525 \end_inset
14526
14527 e.
14528 \begin_inset space \space{}
14529 \end_inset
14530
14531 the style is always used.
14532 \end_layout
14533
14534 \begin_layout Description
14535 \begin_inset Flex Code
14536 status collapsed
14537
14538 \begin_layout Plain Layout
14539 FreeSpacing
14540 \end_layout
14541
14542 \end_inset
14543
14544  [
14545 \begin_inset Flex Code
14546 status collapsed
14547
14548 \begin_layout Plain Layout
14549
14550 \emph on
14551 0
14552 \end_layout
14553
14554 \end_inset
14555
14556 ,
14557 \begin_inset space \thinspace{}
14558 \end_inset
14559
14560
14561 \begin_inset Flex Code
14562 status collapsed
14563
14564 \begin_layout Plain Layout
14565 1
14566 \end_layout
14567
14568 \end_inset
14569
14570 ] Usually \SpecialChar LyX
14571  does not allow you to insert more than one space between words,
14572  since a space is considered as the separation between two words, not a
14573  character or symbol of its own.
14574  This is a very fine thing but sometimes annoying, for example, when typing
14575  program code or plain \SpecialChar LaTeX
14576  code.
14577  For this reason, 
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582 FreeSpacing
14583 \end_layout
14584
14585 \end_inset
14586
14587  can be enabled.
14588  
14589 \change_deleted -495245474 1550490105
14590 Note that 
14591 \change_unchanged
14592 \SpecialChar LyX
14593  will create protected blanks for the additional blanks when in 
14594 \change_inserted -495245474 1550490096
14595
14596 \begin_inset Flex Code
14597 status collapsed
14598
14599 \begin_layout Plain Layout
14600
14601 \change_inserted -495245474 1550490089
14602 Passthru 1
14603 \change_unchanged
14604
14605 \end_layout
14606
14607 \end_inset
14608
14609  is not specified.
14610 \change_deleted -495245474 1550490116
14611 another mode than \SpecialChar LaTeX
14612 -mode.
14613
14614 \change_inserted -495245474 1550247760
14615  Note that 
14616 \begin_inset Flex Code
14617 status collapsed
14618
14619 \begin_layout Plain Layout
14620
14621 \change_inserted -495245474 1550247736
14622 FreeSpacing
14623 \change_unchanged
14624
14625 \end_layout
14626
14627 \end_inset
14628
14629  implies 
14630 \begin_inset Flex Code
14631 status collapsed
14632
14633 \begin_layout Plain Layout
14634
14635 \change_inserted -495245474 1550247755
14636 KeepEmpty
14637 \change_unchanged
14638
14639 \end_layout
14640
14641 \end_inset
14642
14643 .
14644 \change_unchanged
14645
14646 \end_layout
14647
14648 \begin_layout Description
14649 \begin_inset Flex Code
14650 status collapsed
14651
14652 \begin_layout Plain Layout
14653 HTML*
14654 \end_layout
14655
14656 \end_inset
14657
14658  These tags are used with XHTML output.
14659  See 
14660 \begin_inset CommandInset ref
14661 LatexCommand ref
14662 reference "subsec:Paragraph-Style-XHTML"
14663
14664 \end_inset
14665
14666 .
14667 \end_layout
14668
14669 \begin_layout Description
14670 \begin_inset Flex Code
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 InnerTag
14675 \end_layout
14676
14677 \end_inset
14678
14679  [FIXME] (Used only with XML-type formats.)
14680 \end_layout
14681
14682 \begin_layout Description
14683 \begin_inset Flex Code
14684 status collapsed
14685
14686 \begin_layout Plain Layout
14687 InPreamble
14688 \end_layout
14689
14690 \end_inset
14691
14692  [
14693 \begin_inset Flex Code
14694 status collapsed
14695
14696 \begin_layout Plain Layout
14697
14698 \emph on
14699 0
14700 \end_layout
14701
14702 \end_inset
14703
14704 ,
14705 \begin_inset space \thinspace{}
14706 \end_inset
14707
14708
14709 \begin_inset Flex Code
14710 status collapsed
14711
14712 \begin_layout Plain Layout
14713 1
14714 \end_layout
14715
14716 \end_inset
14717
14718 ] If 
14719 \begin_inset Flex Code
14720 status collapsed
14721
14722 \begin_layout Plain Layout
14723 1
14724 \end_layout
14725
14726 \end_inset
14727
14728 , marks the style as to be included in the document preamble and not in
14729  the document body.
14730  This is useful for document classes that want such information as the title
14731  and author to appear in the preamble.
14732  Note that this works only for styles for which the 
14733 \begin_inset Flex Code
14734 status collapsed
14735
14736 \begin_layout Plain Layout
14737 LatexType
14738 \end_layout
14739
14740 \end_inset
14741
14742  is 
14743 \begin_inset Flex Code
14744 status collapsed
14745
14746 \begin_layout Plain Layout
14747 Command
14748 \end_layout
14749
14750 \end_inset
14751
14752  or 
14753 \begin_inset Flex Code
14754 status collapsed
14755
14756 \begin_layout Plain Layout
14757 Paragraph
14758 \end_layout
14759
14760 \end_inset
14761
14762 .
14763 \end_layout
14764
14765 \begin_layout Description
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770 InTitle
14771 \end_layout
14772
14773 \end_inset
14774
14775  [
14776 \begin_inset Flex Code
14777 status collapsed
14778
14779 \begin_layout Plain Layout
14780
14781 \emph on
14782 0
14783 \end_layout
14784
14785 \end_inset
14786
14787 ,
14788 \begin_inset space \thinspace{}
14789 \end_inset
14790
14791
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796 1
14797 \end_layout
14798
14799 \end_inset
14800
14801 ] If 
14802 \begin_inset Flex Code
14803 status collapsed
14804
14805 \begin_layout Plain Layout
14806 1
14807 \end_layout
14808
14809 \end_inset
14810
14811 , marks the style as being part of a title block (see also the 
14812 \begin_inset Flex Code
14813 status collapsed
14814
14815 \begin_layout Plain Layout
14816 TitleLatexType
14817 \end_layout
14818
14819 \end_inset
14820
14821  and 
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 TitleLatexName
14827 \end_layout
14828
14829 \end_inset
14830
14831  global entries).
14832 \end_layout
14833
14834 \begin_layout Description
14835 \begin_inset Flex Code
14836 status collapsed
14837
14838 \begin_layout Plain Layout
14839 IsAutoNestedBy
14840 \end_layout
14841
14842 \end_inset
14843
14844  Includes a comma-separated list of layouts after which this one should
14845  be nested.
14846  Only makes sense with regard to nestable layouts (such as environments).
14847  Must be ended by 
14848 \begin_inset Quotes eld
14849 \end_inset
14850
14851
14852 \begin_inset Flex Code
14853 status collapsed
14854
14855 \begin_layout Plain Layout
14856 EndIsAutoNestedBy
14857 \end_layout
14858
14859 \end_inset
14860
14861
14862 \begin_inset Quotes erd
14863 \end_inset
14864
14865 .
14866  See also 
14867 \begin_inset Flex Code
14868 status collapsed
14869
14870 \begin_layout Plain Layout
14871 AutoNests
14872 \end_layout
14873
14874 \end_inset
14875
14876 .
14877 \end_layout
14878
14879 \begin_layout Description
14880 \begin_inset Flex Code
14881 status collapsed
14882
14883 \begin_layout Plain Layout
14884 IsTocCaption
14885 \end_layout
14886
14887 \end_inset
14888
14889  [
14890 \begin_inset Flex Code
14891 status collapsed
14892
14893 \begin_layout Plain Layout
14894
14895 \emph on
14896 0
14897 \end_layout
14898
14899 \end_inset
14900
14901 ,
14902 \begin_inset space \thinspace{}
14903 \end_inset
14904
14905
14906 \begin_inset Flex Code
14907 status collapsed
14908
14909 \begin_layout Plain Layout
14910 1
14911 \end_layout
14912
14913 \end_inset
14914
14915 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14916  of its contents in its item in the table of contents.
14917  Otherwise, only the label, if it exists, appears.
14918 \end_layout
14919
14920 \begin_layout Description
14921 \begin_inset Flex Code
14922 status collapsed
14923
14924 \begin_layout Plain Layout
14925 ItemCommand
14926 \end_layout
14927
14928 \end_inset
14929
14930  [
14931 \begin_inset Flex Code
14932 status collapsed
14933
14934 \begin_layout Plain Layout
14935 string="item"
14936 \end_layout
14937
14938 \end_inset
14939
14940 ] The \SpecialChar LaTeX
14941  command sequence declaring an item in a list.
14942  The command is to be defined without the preceding backslash (the default
14943  is 
14944 \begin_inset Quotes eld
14945 \end_inset
14946
14947 item
14948 \begin_inset Quotes erd
14949 \end_inset
14950
14951 , resulting in 
14952 \begin_inset Flex Code
14953 status collapsed
14954
14955 \begin_layout Plain Layout
14956
14957 \backslash
14958 item
14959 \end_layout
14960
14961 \end_inset
14962
14963  in the \SpecialChar LaTeX
14964  output).
14965 \end_layout
14966
14967 \begin_layout Description
14968 \begin_inset Flex Code
14969 status collapsed
14970
14971 \begin_layout Plain Layout
14972 ItemSep
14973 \end_layout
14974
14975 \end_inset
14976
14977  [
14978 \begin_inset Flex Code
14979 status collapsed
14980
14981 \begin_layout Plain Layout
14982 float=0
14983 \end_layout
14984
14985 \end_inset
14986
14987 ] This provides extra space between paragraphs that have the same style.
14988  If you put other styles into an environment, each is separated with the
14989  environment's 
14990 \begin_inset Flex Code
14991 status collapsed
14992
14993 \begin_layout Plain Layout
14994 ParSep
14995 \end_layout
14996
14997 \end_inset
14998
14999 .
15000  But the whole items of the environment are additionally separated with
15001  this 
15002 \begin_inset Flex Code
15003 status collapsed
15004
15005 \begin_layout Plain Layout
15006 ItemSep
15007 \end_layout
15008
15009 \end_inset
15010
15011 .
15012  Note that this is a
15013 \emph on
15014  multiplier.
15015 \end_layout
15016
15017 \begin_layout Description
15018 \begin_inset Flex Code
15019 status collapsed
15020
15021 \begin_layout Plain Layout
15022 ItemTag
15023 \end_layout
15024
15025 \end_inset
15026
15027  [FIXME] (Used only with XML-type formats.)
15028 \end_layout
15029
15030 \begin_layout Description
15031 \begin_inset Flex Code
15032 status collapsed
15033
15034 \begin_layout Plain Layout
15035 KeepEmpty
15036 \end_layout
15037
15038 \end_inset
15039
15040  [
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045
15046 \emph on
15047 0
15048 \end_layout
15049
15050 \end_inset
15051
15052 ,
15053 \begin_inset space \thinspace{}
15054 \end_inset
15055
15056
15057 \begin_inset Flex Code
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 1
15062 \end_layout
15063
15064 \end_inset
15065
15066 ] Usually \SpecialChar LyX
15067  does not allow you to leave a paragraph empty, since it would
15068  lead to empty \SpecialChar LaTeX
15069  output.
15070  There are some cases where this could be desirable however: in a letter
15071  template, the required fields can be provided as empty fields, so that
15072  people do not forget them; in some special classes, a style can be used
15073  as some kind of break, which does not contain actual text.
15074 \end_layout
15075
15076 \begin_layout Description
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081 LabelBottomsep
15082 \end_layout
15083
15084 \end_inset
15085
15086  [
15087 \begin_inset Flex Code
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091 float=0
15092 \end_layout
15093
15094 \end_inset
15095
15096 ] The vertical space between the label and the text body.
15097  Only used for labels that are above the text body (
15098 \begin_inset Flex Code
15099 status collapsed
15100
15101 \begin_layout Plain Layout
15102 Top_Environment
15103 \end_layout
15104
15105 \end_inset
15106
15107  and
15108 \begin_inset Newline newline
15109 \end_inset
15110
15111
15112 \begin_inset Flex Code
15113 status collapsed
15114
15115 \begin_layout Plain Layout
15116 Centered_Top_Environment
15117 \end_layout
15118
15119 \end_inset
15120
15121 ).
15122 \end_layout
15123
15124 \begin_layout Description
15125 \begin_inset Flex Code
15126 status collapsed
15127
15128 \begin_layout Plain Layout
15129 LabelCounter
15130 \end_layout
15131
15132 \end_inset
15133
15134  [
15135 \begin_inset Flex Code
15136 status collapsed
15137
15138 \begin_layout Plain Layout
15139 string=""
15140 \end_layout
15141
15142 \end_inset
15143
15144 ] The name of the counter for automatic numbering.
15145  In order to have the counter appear with your label, you will need to reference
15146  it in the 
15147 \begin_inset Flex Code
15148 status collapsed
15149
15150 \begin_layout Plain Layout
15151
15152 \family typewriter
15153 LabelString
15154 \end_layout
15155
15156 \end_inset
15157
15158 .
15159  This will work with 
15160 \begin_inset Flex Code
15161 status collapsed
15162
15163 \begin_layout Plain Layout
15164 LabelType
15165 \end_layout
15166
15167 \end_inset
15168
15169 s, 
15170 \begin_inset Flex Code
15171 status collapsed
15172
15173 \begin_layout Plain Layout
15174 Static
15175 \end_layout
15176
15177 \end_inset
15178
15179
15180 \begin_inset Flex Code
15181 status collapsed
15182
15183 \begin_layout Plain Layout
15184 Above
15185 \end_layout
15186
15187 \end_inset
15188
15189  and 
15190 \begin_inset Flex Code
15191 status collapsed
15192
15193 \begin_layout Plain Layout
15194 Centered
15195 \end_layout
15196
15197 \end_inset
15198
15199 , at least.
15200 \begin_inset Newline newline
15201 \end_inset
15202
15203 This 
15204 \emph on
15205 may
15206 \emph default
15207  also be given if 
15208 \begin_inset Flex Code
15209 status collapsed
15210
15211 \begin_layout Plain Layout
15212 LabelType
15213 \end_layout
15214
15215 \end_inset
15216
15217  is 
15218 \begin_inset Flex Code
15219 status collapsed
15220
15221 \begin_layout Plain Layout
15222 Enumerate
15223 \end_layout
15224
15225 \end_inset
15226
15227 , though this case is a bit complicated.
15228  Suppose you declare 
15229 \begin_inset Quotes eld
15230 \end_inset
15231
15232
15233 \begin_inset Flex Code
15234 status collapsed
15235
15236 \begin_layout Plain Layout
15237 LabelCounter myenum
15238 \end_layout
15239
15240 \end_inset
15241
15242
15243 \begin_inset Quotes erd
15244 \end_inset
15245
15246 .
15247  Then the actual counters used are 
15248 \begin_inset Flex Code
15249 status collapsed
15250
15251 \begin_layout Plain Layout
15252 myenumi
15253 \end_layout
15254
15255 \end_inset
15256
15257
15258 \begin_inset Flex Code
15259 status collapsed
15260
15261 \begin_layout Plain Layout
15262 myenumii
15263 \end_layout
15264
15265 \end_inset
15266
15267
15268 \begin_inset Flex Code
15269 status collapsed
15270
15271 \begin_layout Plain Layout
15272 myenumiii
15273 \end_layout
15274
15275 \end_inset
15276
15277  and 
15278 \begin_inset Flex Code
15279 status collapsed
15280
15281 \begin_layout Plain Layout
15282 myenumiv
15283 \end_layout
15284
15285 \end_inset
15286
15287 , much as in \SpecialChar LaTeX
15288 .
15289  These counters must all be declared separately.
15290 \begin_inset Newline newline
15291 \end_inset
15292
15293 See 
15294 \begin_inset CommandInset ref
15295 LatexCommand ref
15296 reference "subsec:Counters"
15297
15298 \end_inset
15299
15300  for details on counters.
15301 \end_layout
15302
15303 \begin_layout Description
15304 \begin_inset Flex Code
15305 status collapsed
15306
15307 \begin_layout Plain Layout
15308 LabelFont
15309 \end_layout
15310
15311 \end_inset
15312
15313  The font used for the label.
15314  See 
15315 \begin_inset CommandInset ref
15316 LatexCommand ref
15317 reference "subsec:Font-description"
15318
15319 \end_inset
15320
15321 .
15322 \end_layout
15323
15324 \begin_layout Description
15325 \begin_inset Flex Code
15326 status collapsed
15327
15328 \begin_layout Plain Layout
15329 LabelIndent
15330 \end_layout
15331
15332 \end_inset
15333
15334  [
15335 \begin_inset Flex Code
15336 status collapsed
15337
15338 \begin_layout Plain Layout
15339 string=""
15340 \end_layout
15341
15342 \end_inset
15343
15344 ] Text that indicates how far a label should be indented.
15345 \end_layout
15346
15347 \begin_layout Description
15348 \begin_inset Flex Code
15349 status collapsed
15350
15351 \begin_layout Plain Layout
15352 LabelSep
15353 \end_layout
15354
15355 \end_inset
15356
15357  [
15358 \begin_inset Flex Code
15359 status collapsed
15360
15361 \begin_layout Plain Layout
15362 string=""
15363 \end_layout
15364
15365 \end_inset
15366
15367 ] Text that indicates the amount of horizontal space between the label and
15368  the text body.
15369  Only used for labels that are not above the text body.
15370 \end_layout
15371
15372 \begin_layout Description
15373 \begin_inset Flex Code
15374 status collapsed
15375
15376 \begin_layout Plain Layout
15377 LabelString
15378 \end_layout
15379
15380 \end_inset
15381
15382  [
15383 \begin_inset Flex Code
15384 status collapsed
15385
15386 \begin_layout Plain Layout
15387 string=""
15388 \end_layout
15389
15390 \end_inset
15391
15392 ] The string used for the label.
15393  When 
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 LabelCounter
15399 \end_layout
15400
15401 \end_inset
15402
15403  is set, this string can be contain the special formatting commands described
15404  in 
15405 \begin_inset CommandInset ref
15406 LatexCommand ref
15407 reference "subsec:Counters"
15408
15409 \end_inset
15410
15411 .
15412 \end_layout
15413
15414 \begin_layout Description
15415 \begin_inset Flex Code
15416 status collapsed
15417
15418 \begin_layout Plain Layout
15419 LabelStringAppendix
15420 \end_layout
15421
15422 \end_inset
15423
15424  [
15425 \begin_inset Flex Code
15426 status collapsed
15427
15428 \begin_layout Plain Layout
15429 string=""
15430 \end_layout
15431
15432 \end_inset
15433
15434 ] This is used inside the appendix instead of
15435 \begin_inset Newline newline
15436 \end_inset
15437
15438
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 LabelString
15444 \end_layout
15445
15446 \end_inset
15447
15448 .
15449  Note that every 
15450 \begin_inset Flex Code
15451 status collapsed
15452
15453 \begin_layout Plain Layout
15454 LabelString
15455 \end_layout
15456
15457 \end_inset
15458
15459  statement resets
15460 \begin_inset Newline newline
15461 \end_inset
15462
15463
15464 \begin_inset Flex Code
15465 status collapsed
15466
15467 \begin_layout Plain Layout
15468 LabelStringAppendix
15469 \end_layout
15470
15471 \end_inset
15472
15473  too.
15474 \end_layout
15475
15476 \begin_layout Description
15477 \begin_inset Flex Code
15478 status collapsed
15479
15480 \begin_layout Plain Layout
15481 LabelTag
15482 \end_layout
15483
15484 \end_inset
15485
15486  [FIXME] (Used only with XML-type formats.)
15487 \end_layout
15488
15489 \begin_layout Description
15490 \begin_inset Flex Code
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494 LabelType
15495 \end_layout
15496
15497 \end_inset
15498
15499  [
15500 \begin_inset Flex Code
15501 status collapsed
15502
15503 \begin_layout Plain Layout
15504
15505 \emph on
15506 No_Label
15507 \emph default
15508 , Manual, Static, Above, 
15509 \begin_inset Newline newline
15510 \end_inset
15511
15512 Centered, Sensitive, Enumerate,
15513 \begin_inset Newline newline
15514 \end_inset
15515
15516 Itemize, Bibliography
15517 \end_layout
15518
15519 \end_inset
15520
15521 ]
15522 \end_layout
15523
15524 \begin_deeper
15525 \begin_layout Description
15526 \begin_inset Flex Code
15527 status collapsed
15528
15529 \begin_layout Plain Layout
15530 Manual
15531 \end_layout
15532
15533 \end_inset
15534
15535  means the label is the very first word (up to the first real blank).
15536  Use protected spaces if you want more than one word as the label.
15537  
15538 \end_layout
15539
15540 \begin_layout Description
15541 \begin_inset Flex Code
15542 status collapsed
15543
15544 \begin_layout Plain Layout
15545 Static
15546 \end_layout
15547
15548 \end_inset
15549
15550  means the label is simply what is declared as 
15551 \begin_inset Flex Code
15552 status collapsed
15553
15554 \begin_layout Plain Layout
15555 LabelString
15556 \end_layout
15557
15558 \end_inset
15559
15560 .
15561  This will be displayed 
15562 \begin_inset Quotes eld
15563 \end_inset
15564
15565 inline
15566 \begin_inset Quotes erd
15567 \end_inset
15568
15569 , at the beginning of the paragraph.
15570  If the 
15571 \begin_inset Flex Code
15572 status collapsed
15573
15574 \begin_layout Plain Layout
15575 LatexType
15576 \end_layout
15577
15578 \end_inset
15579
15580  is 
15581 \begin_inset Flex Code
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585 Environment
15586 \end_layout
15587
15588 \end_inset
15589
15590 , then it will be displayed only in the first paragraph of any sequence
15591  of paragraphs with the same 
15592 \begin_inset Flex Code
15593 status collapsed
15594
15595 \begin_layout Plain Layout
15596 Style
15597 \end_layout
15598
15599 \end_inset
15600
15601 .
15602 \end_layout
15603
15604 \begin_layout Description
15605 \begin_inset Flex Code
15606 status collapsed
15607
15608 \begin_layout Plain Layout
15609 Above
15610 \end_layout
15611
15612 \end_inset
15613
15614
15615 \begin_inset space ~
15616 \end_inset
15617
15618 and
15619 \begin_inset space ~
15620 \end_inset
15621
15622
15623 \begin_inset Flex Code
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627 Centered
15628 \end_layout
15629
15630 \end_inset
15631
15632  are special cases of 
15633 \begin_inset Flex Code
15634 status collapsed
15635
15636 \begin_layout Plain Layout
15637 Static
15638 \end_layout
15639
15640 \end_inset
15641
15642 .
15643  The label will be printed above the paragraph either at the beginning of
15644  the line or centered.
15645 \end_layout
15646
15647 \begin_layout Description
15648 \begin_inset Flex Code
15649 status collapsed
15650
15651 \begin_layout Plain Layout
15652 Sensitive
15653 \end_layout
15654
15655 \end_inset
15656
15657  is a special case for the caption-labels 
15658 \begin_inset Quotes eld
15659 \end_inset
15660
15661 Figure
15662 \begin_inset Quotes erd
15663 \end_inset
15664
15665  and 
15666 \begin_inset Quotes eld
15667 \end_inset
15668
15669 Table
15670 \begin_inset Quotes erd
15671 \end_inset
15672
15673 .
15674 \begin_inset Newline newline
15675 \end_inset
15676
15677
15678 \begin_inset Flex Code
15679 status collapsed
15680
15681 \begin_layout Plain Layout
15682 Sensitive
15683 \end_layout
15684
15685 \end_inset
15686
15687  means the (hardcoded) label string depends on the kind of float: It is
15688  hardcoded to be `FloatType N', where N is the value of the counter associated
15689  with the float.
15690  For the case that a caption is inserted outside of a float the 
15691 \begin_inset Flex Code
15692 status collapsed
15693
15694 \begin_layout Plain Layout
15695 LabelString
15696 \end_layout
15697
15698 \end_inset
15699
15700  will appear as 
15701 \begin_inset Quotes eld
15702 \end_inset
15703
15704 Senseless!
15705 \begin_inset Quotes erd
15706 \end_inset
15707
15708 .
15709 \end_layout
15710
15711 \begin_layout Description
15712 \begin_inset Flex Code
15713 status collapsed
15714
15715 \begin_layout Plain Layout
15716 Enumerate
15717 \end_layout
15718
15719 \end_inset
15720
15721  produces the usual sort of enumeration labels.
15722  The number type needs to be set in the 
15723 \family sans
15724 Counter
15725 \family default
15726 , see 
15727 \begin_inset CommandInset ref
15728 LatexCommand ref
15729 reference "subsec:Counters"
15730
15731 \end_inset
15732
15733 .
15734 \end_layout
15735
15736 \begin_layout Description
15737 \begin_inset Flex Code
15738 status collapsed
15739
15740 \begin_layout Plain Layout
15741 Itemize
15742 \end_layout
15743
15744 \end_inset
15745
15746  produces various bullets at the different levels.
15747  The bullet types displayed can be set via 
15748 \begin_inset Flex Noun
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752 Document\SpecialChar menuseparator
15753 Settings\SpecialChar menuseparator
15754 Bullets
15755 \end_layout
15756
15757 \end_inset
15758
15759 .
15760 \end_layout
15761
15762 \begin_layout Description
15763 \begin_inset Flex Code
15764 status collapsed
15765
15766 \begin_layout Plain Layout
15767 Bibliography
15768 \end_layout
15769
15770 \end_inset
15771
15772  should be used only with 
15773 \begin_inset Flex Code
15774 status collapsed
15775
15776 \begin_layout Plain Layout
15777 LatexType BibEnvironment
15778 \end_layout
15779
15780 \end_inset
15781
15782 .
15783 \end_layout
15784
15785 \end_deeper
15786 \begin_layout Description
15787 \begin_inset Flex Code
15788 status collapsed
15789
15790 \begin_layout Plain Layout
15791 LangPreamble
15792 \end_layout
15793
15794 \end_inset
15795
15796  Note that this will completely override any prior 
15797 \begin_inset Flex Code
15798 status collapsed
15799
15800 \begin_layout Plain Layout
15801 LangPreamble
15802 \end_layout
15803
15804 \end_inset
15805
15806  declaration for this style.
15807  Must end with 
15808 \begin_inset Quotes eld
15809 \end_inset
15810
15811
15812 \begin_inset Flex Code
15813 status collapsed
15814
15815 \begin_layout Plain Layout
15816 EndLangPreamble
15817 \end_layout
15818
15819 \end_inset
15820
15821
15822 \begin_inset Quotes erd
15823 \end_inset
15824
15825 .
15826  See 
15827 \begin_inset CommandInset ref
15828 LatexCommand ref
15829 reference "subsec:I18n"
15830
15831 \end_inset
15832
15833  for details on its use.
15834 \end_layout
15835
15836 \begin_layout Description
15837 \begin_inset Flex Code
15838 status collapsed
15839
15840 \begin_layout Plain Layout
15841 LatexName
15842 \end_layout
15843
15844 \end_inset
15845
15846  [
15847 \begin_inset Flex Code
15848 status collapsed
15849
15850 \begin_layout Plain Layout
15851 <name>
15852 \end_layout
15853
15854 \end_inset
15855
15856 ] The name of the corresponding \SpecialChar LaTeX
15857  stuff.
15858  Either the environment or command name.
15859 \end_layout
15860
15861 \begin_layout Description
15862 \begin_inset Flex Code
15863 status collapsed
15864
15865 \begin_layout Plain Layout
15866 LatexParam
15867 \end_layout
15868
15869 \end_inset
15870
15871  [
15872 \begin_inset Flex Code
15873 status collapsed
15874
15875 \begin_layout Plain Layout
15876 <parameter>
15877 \end_layout
15878
15879 \end_inset
15880
15881 ] An optional parameter for the corresponding 
15882 \begin_inset Flex Code
15883 status collapsed
15884
15885 \begin_layout Plain Layout
15886 LatexName
15887 \end_layout
15888
15889 \end_inset
15890
15891  stuff.
15892  This parameter cannot be changed from within \SpecialChar LyX
15893  (use 
15894 \begin_inset Flex Code
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898 Argument
15899 \end_layout
15900
15901 \end_inset
15902
15903  for customizable parameters).
15904  This will be output as is after all \SpecialChar LaTeX
15905  
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910 Argument
15911 \end_layout
15912
15913 \end_inset
15914
15915 s.
15916 \end_layout
15917
15918 \begin_layout Description
15919 \begin_inset Flex Code
15920 status collapsed
15921
15922 \begin_layout Plain Layout
15923 LatexType
15924 \end_layout
15925
15926 \end_inset
15927
15928  [
15929 \begin_inset Flex Code
15930 status collapsed
15931
15932 \begin_layout Plain Layout
15933
15934 \emph on
15935 Paragraph
15936 \emph default
15937 , Command, Environment, Item_Environment,
15938 \begin_inset Newline newline
15939 \end_inset
15940
15941 List_Environment, Bib_Environment
15942 \end_layout
15943
15944 \end_inset
15945
15946 ] How the style should be translated into \SpecialChar LaTeX
15947 .
15948 \begin_inset Foot
15949 status collapsed
15950
15951 \begin_layout Plain Layout
15952 \begin_inset Flex Code
15953 status collapsed
15954
15955 \begin_layout Plain Layout
15956 LatexType
15957 \end_layout
15958
15959 \end_inset
15960
15961  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15962  Visit the SGML class files for specific examples.
15963 \end_layout
15964
15965 \end_inset
15966
15967
15968 \end_layout
15969
15970 \begin_deeper
15971 \begin_layout Description
15972 \begin_inset Flex Code
15973 status collapsed
15974
15975 \begin_layout Plain Layout
15976 Paragraph
15977 \end_layout
15978
15979 \end_inset
15980
15981  means nothing special.
15982 \end_layout
15983
15984 \begin_layout Description
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 Command
15990 \end_layout
15991
15992 \end_inset
15993
15994  means 
15995 \begin_inset Flex Code
15996 status collapsed
15997
15998 \begin_layout Plain Layout
15999
16000 \backslash
16001
16002 \emph on
16003 LatexName
16004 \emph default
16005 {\SpecialChar ldots
16006 }
16007 \end_layout
16008
16009 \end_inset
16010
16011 .
16012 \end_layout
16013
16014 \begin_layout Description
16015 \begin_inset Flex Code
16016 status collapsed
16017
16018 \begin_layout Plain Layout
16019 Environment
16020 \end_layout
16021
16022 \end_inset
16023
16024  means 
16025 \begin_inset Flex Code
16026 status collapsed
16027
16028 \begin_layout Plain Layout
16029
16030 \backslash
16031 begin{
16032 \emph on
16033 LatexName
16034 \emph default
16035 }\SpecialChar ldots
16036
16037 \backslash
16038 end{
16039 \emph on
16040 LatexName
16041 \emph default
16042 }
16043 \end_layout
16044
16045 \end_inset
16046
16047 .
16048  
16049 \end_layout
16050
16051 \begin_layout Description
16052 \begin_inset Flex Code
16053 status collapsed
16054
16055 \begin_layout Plain Layout
16056 Item_Environment
16057 \end_layout
16058
16059 \end_inset
16060
16061  is the same as 
16062 \begin_inset Flex Code
16063 status collapsed
16064
16065 \begin_layout Plain Layout
16066 Environment
16067 \end_layout
16068
16069 \end_inset
16070
16071 , except that an 
16072 \begin_inset Flex Code
16073 status collapsed
16074
16075 \begin_layout Plain Layout
16076
16077 \backslash
16078 item
16079 \end_layout
16080
16081 \end_inset
16082
16083  is generated for each paragraph of this environment.
16084  
16085 \end_layout
16086
16087 \begin_layout Description
16088 \begin_inset Flex Code
16089 status collapsed
16090
16091 \begin_layout Plain Layout
16092 List_Environment
16093 \end_layout
16094
16095 \end_inset
16096
16097  is the same as 
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 Item_Environment
16103 \end_layout
16104
16105 \end_inset
16106
16107 , except that
16108 \begin_inset Newline newline
16109 \end_inset
16110
16111
16112 \begin_inset Flex Code
16113 status collapsed
16114
16115 \begin_layout Plain Layout
16116 LabelWidthString
16117 \end_layout
16118
16119 \end_inset
16120
16121  is passed as an argument to the environment.
16122 \begin_inset Newline newline
16123 \end_inset
16124
16125
16126 \begin_inset Flex Code
16127 status collapsed
16128
16129 \begin_layout Plain Layout
16130 LabelWidthString
16131 \end_layout
16132
16133 \end_inset
16134
16135  can be defined in the 
16136 \begin_inset Flex Noun
16137 status collapsed
16138
16139 \begin_layout Plain Layout
16140 Edit\SpecialChar menuseparator
16141 Paragraph
16142 \begin_inset space ~
16143 \end_inset
16144
16145 settings
16146 \end_layout
16147
16148 \end_inset
16149
16150  dialog.
16151 \end_layout
16152
16153 \begin_layout Description
16154 \begin_inset Flex Code
16155 status collapsed
16156
16157 \begin_layout Plain Layout
16158 Bib_Environment
16159 \end_layout
16160
16161 \end_inset
16162
16163  is like 
16164 \begin_inset Flex Code
16165 status collapsed
16166
16167 \begin_layout Plain Layout
16168 Environment
16169 \end_layout
16170
16171 \end_inset
16172
16173  but adds the necessary mandatory argument (the longest label) to the begin
16174  statement of the bibliography environment:
16175 \begin_inset Newline newline
16176 \end_inset
16177
16178
16179 \begin_inset Flex Code
16180 status collapsed
16181
16182 \begin_layout Plain Layout
16183
16184 \backslash
16185 begin{thebibliography}{99}
16186 \end_layout
16187
16188 \end_inset
16189
16190 .
16191  It is therefore only useful for bibliography environments.
16192  The default longest label 
16193 \begin_inset Quotes eld
16194 \end_inset
16195
16196 99
16197 \begin_inset Quotes erd
16198 \end_inset
16199
16200  can be changed by the user in the paragraph settings of a bibliography
16201  item.
16202 \end_layout
16203
16204 \begin_layout Standard
16205 Putting the last few things together, the \SpecialChar LaTeX
16206  output will be either: 
16207 \end_layout
16208
16209 \begin_layout LyX-Code
16210
16211 \backslash
16212 LatexName[LatexParam]{\SpecialChar ldots
16213 }
16214 \end_layout
16215
16216 \begin_layout Standard
16217 or: 
16218 \end_layout
16219
16220 \begin_layout LyX-Code
16221
16222 \backslash
16223 begin{LatexName}[LatexParam] \SpecialChar ldots
16224  
16225 \backslash
16226 end{LatexName}.
16227 \end_layout
16228
16229 \begin_layout Standard
16230 depending upon the \SpecialChar LaTeX
16231  type.
16232 \end_layout
16233
16234 \end_deeper
16235 \begin_layout Description
16236 \begin_inset Flex Code
16237 status collapsed
16238
16239 \begin_layout Plain Layout
16240 LeftDelim
16241 \end_layout
16242
16243 \end_inset
16244
16245  [
16246 \begin_inset Flex Code
16247 status collapsed
16248
16249 \begin_layout Plain Layout
16250 string
16251 \end_layout
16252
16253 \end_inset
16254
16255 ] A string that is put at the beginning of the style content.
16256  A line break in the output can be indicated by 
16257 \begin_inset Flex Code
16258 status collapsed
16259
16260 \begin_layout Plain Layout
16261 <br/>
16262 \end_layout
16263
16264 \end_inset
16265
16266 .
16267 \end_layout
16268
16269 \begin_layout Description
16270 \begin_inset Flex Code
16271 status collapsed
16272
16273 \begin_layout Plain Layout
16274 LeftMargin
16275 \end_layout
16276
16277 \end_inset
16278
16279  [
16280 \begin_inset Flex Code
16281 status collapsed
16282
16283 \begin_layout Plain Layout
16284 string=""
16285 \end_layout
16286
16287 \end_inset
16288
16289 ] If you put styles into environments, the different 
16290 \begin_inset Flex Code
16291 status collapsed
16292
16293 \begin_layout Plain Layout
16294 LeftMargin
16295 \end_layout
16296
16297 \end_inset
16298
16299  are not simply added, but added with a factor 
16300 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16301 \end_inset
16302
16303 .
16304  Note that this parameter is also used when 
16305 \begin_inset Flex Code
16306 status collapsed
16307
16308 \begin_layout Plain Layout
16309 Margin
16310 \end_layout
16311
16312 \end_inset
16313
16314  is defined as 
16315 \begin_inset Flex Code
16316 status collapsed
16317
16318 \begin_layout Plain Layout
16319 Manual
16320 \end_layout
16321
16322 \end_inset
16323
16324  or 
16325 \begin_inset Flex Code
16326 status collapsed
16327
16328 \begin_layout Plain Layout
16329 Dynamic
16330 \end_layout
16331
16332 \end_inset
16333
16334 .
16335  Then it is added to the manual or dynamic margin.
16336 \begin_inset Newline newline
16337 \end_inset
16338
16339 For example 
16340 \begin_inset Quotes eld
16341 \end_inset
16342
16343
16344 \begin_inset Flex Code
16345 status collapsed
16346
16347 \begin_layout Plain Layout
16348 MM
16349 \end_layout
16350
16351 \end_inset
16352
16353
16354 \begin_inset Quotes erd
16355 \end_inset
16356
16357  means that the paragraph is indented with the width of 
16358 \begin_inset Quotes eld
16359 \end_inset
16360
16361
16362 \begin_inset Flex Code
16363 status collapsed
16364
16365 \begin_layout Plain Layout
16366 MM
16367 \end_layout
16368
16369 \end_inset
16370
16371
16372 \begin_inset Quotes erd
16373 \end_inset
16374
16375  in the normal font.
16376  You can get a negative width by prefixing the string with 
16377 \begin_inset Quotes eld
16378 \end_inset
16379
16380
16381 \begin_inset Flex Code
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385 -
16386 \end_layout
16387
16388 \end_inset
16389
16390
16391 \begin_inset Quotes erd
16392 \end_inset
16393
16394 .
16395  This way was chosen so that the look is the same with each used screen
16396  font.
16397 \end_layout
16398
16399 \begin_layout Description
16400 \begin_inset Flex Code
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404 Margin
16405 \end_layout
16406
16407 \end_inset
16408
16409  [
16410 \begin_inset Flex Code
16411 status collapsed
16412
16413 \begin_layout Plain Layout
16414
16415 \emph on
16416 Static
16417 \emph default
16418 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16419 \end_layout
16420
16421 \end_inset
16422
16423
16424 \begin_inset Newline newline
16425 \end_inset
16426
16427 The kind of margin that the style has on the left side.
16428 \end_layout
16429
16430 \begin_deeper
16431 \begin_layout Description
16432 \begin_inset Flex Code
16433 status collapsed
16434
16435 \begin_layout Plain Layout
16436 Static
16437 \end_layout
16438
16439 \end_inset
16440
16441  just means a fixed margin.
16442 \end_layout
16443
16444 \begin_layout Description
16445 \begin_inset Flex Code
16446 status collapsed
16447
16448 \begin_layout Plain Layout
16449 Manual
16450 \end_layout
16451
16452 \end_inset
16453
16454  means that the left margin depends on the string entered in the 
16455 \begin_inset Flex Noun
16456 status collapsed
16457
16458 \begin_layout Plain Layout
16459 Edit\SpecialChar menuseparator
16460 Paragraph
16461 \begin_inset space ~
16462 \end_inset
16463
16464 Settings
16465 \end_layout
16466
16467 \end_inset
16468
16469  dialog.
16470  This is used to typeset nice lists without tabulators.
16471 \end_layout
16472
16473 \begin_layout Description
16474 \begin_inset Flex Code
16475 status collapsed
16476
16477 \begin_layout Plain Layout
16478 Dynamic
16479 \end_layout
16480
16481 \end_inset
16482
16483  means that the margin depends on the size of the label.
16484  This is used for automatic enumerated headlines.
16485  It is obvious that the headline 
16486 \begin_inset Quotes eld
16487 \end_inset
16488
16489 5.4.3.2.1 Very long headline
16490 \begin_inset Quotes erd
16491 \end_inset
16492
16493  must have a wider left margin (as wide as 
16494 \begin_inset Quotes eld
16495 \end_inset
16496
16497 5.4.3.2.1
16498 \begin_inset Quotes erd
16499 \end_inset
16500
16501  plus the space) than 
16502 \begin_inset Quotes eld
16503 \end_inset
16504
16505 3.2 Very long headline
16506 \begin_inset Quotes erd
16507 \end_inset
16508
16509 , even if standard 
16510 \begin_inset Quotes eld
16511 \end_inset
16512
16513 word processors
16514 \begin_inset Quotes erd
16515 \end_inset
16516
16517  are not able to do this.
16518 \end_layout
16519
16520 \begin_layout Description
16521 \begin_inset Flex Code
16522 status collapsed
16523
16524 \begin_layout Plain Layout
16525 First_Dynamic
16526 \end_layout
16527
16528 \end_inset
16529
16530  is similar, but only the very first row of the paragraph is dynamic, while
16531  the others are static; this is used, for example, for descriptions.
16532 \end_layout
16533
16534 \begin_layout Description
16535 \begin_inset Flex Code
16536 status collapsed
16537
16538 \begin_layout Plain Layout
16539 Right_Address_Box
16540 \end_layout
16541
16542 \end_inset
16543
16544  means the margin is chosen in a way that the longest row of this paragraph
16545  fits to the right margin.
16546  This is used to typeset an address on the right edge of the page.
16547 \end_layout
16548
16549 \end_deeper
16550 \begin_layout Description
16551 \begin_inset Flex Code
16552 status collapsed
16553
16554 \begin_layout Plain Layout
16555 NeedProtect
16556 \end_layout
16557
16558 \end_inset
16559
16560  [
16561 \begin_inset Flex Code
16562 status collapsed
16563
16564 \begin_layout Plain Layout
16565
16566 \emph on
16567 0
16568 \end_layout
16569
16570 \end_inset
16571
16572 ,
16573 \begin_inset space \thinspace{}
16574 \end_inset
16575
16576
16577 \begin_inset Flex Code
16578 status collapsed
16579
16580 \begin_layout Plain Layout
16581 1
16582 \end_layout
16583
16584 \end_inset
16585
16586 ] Whether fragile commands in this style should be 
16587 \begin_inset Flex Code
16588 status collapsed
16589
16590 \begin_layout Plain Layout
16591
16592 \backslash
16593 protect
16594 \end_layout
16595
16596 \end_inset
16597
16598 'ed.
16599  (Note: This is 
16600 \emph on
16601 not
16602 \emph default
16603  whether this command should itself be protected.)
16604 \change_inserted -712698321 1523696949
16605
16606 \end_layout
16607
16608 \begin_layout Description
16609
16610 \change_inserted -712698321 1552395557
16611 \begin_inset Flex Code
16612 status collapsed
16613
16614 \begin_layout Plain Layout
16615
16616 \change_inserted -712698321 1523696950
16617 NeedCProtect
16618 \change_unchanged
16619
16620 \end_layout
16621
16622 \end_inset
16623
16624  [
16625 \begin_inset Flex Code
16626 status collapsed
16627
16628 \begin_layout Plain Layout
16629
16630 \change_inserted -712698321 1523696950
16631
16632 \emph on
16633 0
16634 \change_unchanged
16635
16636 \end_layout
16637
16638 \end_inset
16639
16640 ,
16641 \begin_inset space \thinspace{}
16642 \end_inset
16643
16644
16645 \begin_inset Flex Code
16646 status collapsed
16647
16648 \begin_layout Plain Layout
16649
16650 \change_inserted -712698321 1523696950
16651 1
16652 \change_unchanged
16653
16654 \end_layout
16655
16656 \end_inset
16657
16658 ] This causes macros that contain this layout to be protected with 
16659 \begin_inset Flex Code
16660 status collapsed
16661
16662 \begin_layout Plain Layout
16663
16664 \change_inserted -712698321 1523696950
16665
16666 \backslash
16667 cprotect
16668 \change_unchanged
16669
16670 \end_layout
16671
16672 \end_inset
16673
16674  (cf.
16675  package 
16676 \family sans
16677 cprotect
16678 \family default
16679 ) if necessary and thus allows (some) verbatim stuff in macros.
16680 \end_layout
16681
16682 \begin_layout Description
16683
16684 \change_inserted -712698321 1552395844
16685 \begin_inset Flex Code
16686 status collapsed
16687
16688 \begin_layout Plain Layout
16689
16690 \change_inserted -712698321 1552395561
16691 NeedMBoxProtect
16692 \change_unchanged
16693
16694 \end_layout
16695
16696 \end_inset
16697
16698  [
16699 \begin_inset Flex Code
16700 status collapsed
16701
16702 \begin_layout Plain Layout
16703
16704 \change_inserted -712698321 1552395557
16705
16706 \emph on
16707 0
16708 \change_unchanged
16709
16710 \end_layout
16711
16712 \end_inset
16713
16714 ,
16715 \begin_inset space \thinspace{}
16716 \end_inset
16717
16718
16719 \begin_inset Flex Code
16720 status collapsed
16721
16722 \begin_layout Plain Layout
16723
16724 \change_inserted -712698321 1552395557
16725 1
16726 \change_unchanged
16727
16728 \end_layout
16729
16730 \end_inset
16731
16732 ] Whether specific commands in this style (such as 
16733 \begin_inset Flex Code
16734 status collapsed
16735
16736 \begin_layout Plain Layout
16737
16738 \change_inserted -712698321 1552395655
16739
16740 \backslash
16741 cite
16742 \change_unchanged
16743
16744 \end_layout
16745
16746 \end_inset
16747
16748  and 
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753
16754 \change_inserted -712698321 1552395661
16755
16756 \backslash
16757 ref
16758 \change_unchanged
16759
16760 \end_layout
16761
16762 \end_inset
16763
16764 ) should be protected in an 
16765 \begin_inset Flex Code
16766 status collapsed
16767
16768 \begin_layout Plain Layout
16769
16770 \change_inserted -712698321 1552395631
16771
16772 \backslash
16773 mbox
16774 \change_unchanged
16775
16776 \end_layout
16777
16778 \end_inset
16779
16780 .
16781  This is particularly needed for styles that draw on 
16782 \family sans
16783 ulem
16784 \family default
16785  or 
16786 \family sans
16787 soul
16788 \family default
16789  commands which parse their content in complex ways.
16790 \change_unchanged
16791
16792 \end_layout
16793
16794 \begin_layout Description
16795 \begin_inset Flex Code
16796 status collapsed
16797
16798 \begin_layout Plain Layout
16799 Newline
16800 \end_layout
16801
16802 \end_inset
16803
16804  [
16805 \begin_inset Flex Code
16806 status collapsed
16807
16808 \begin_layout Plain Layout
16809 0
16810 \end_layout
16811
16812 \end_inset
16813
16814 ,
16815 \begin_inset space \thinspace{}
16816 \end_inset
16817
16818
16819 \begin_inset Flex Code
16820 status collapsed
16821
16822 \begin_layout Plain Layout
16823
16824 \emph on
16825 1
16826 \end_layout
16827
16828 \end_inset
16829
16830 ] Whether newlines are translated into \SpecialChar LaTeX
16831  newlines (
16832 \begin_inset Flex Code
16833 status collapsed
16834
16835 \begin_layout Plain Layout
16836
16837 \backslash
16838
16839 \backslash
16840
16841 \end_layout
16842
16843 \end_inset
16844
16845 ) or not.
16846  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16847  editing
16848  inside \SpecialChar LyX
16849 .
16850 \end_layout
16851
16852 \begin_layout Description
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857 NextNoIndent
16858 \end_layout
16859
16860 \end_inset
16861
16862  [
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867
16868 \emph on
16869 0
16870 \end_layout
16871
16872 \end_inset
16873
16874 ,
16875 \begin_inset space \thinspace{}
16876 \end_inset
16877
16878
16879 \begin_inset Flex Code
16880 status collapsed
16881
16882 \begin_layout Plain Layout
16883 1
16884 \end_layout
16885
16886 \end_inset
16887
16888 ] If set to true, and if 
16889 \begin_inset Flex Code
16890 status collapsed
16891
16892 \begin_layout Plain Layout
16893 DefaultStyle
16894 \end_layout
16895
16896 \end_inset
16897
16898  (usually 
16899 \begin_inset Flex Code
16900 status collapsed
16901
16902 \begin_layout Plain Layout
16903 Standard
16904 \end_layout
16905
16906 \end_inset
16907
16908 ) paragraphs are being indented, then the indentation of such a paragraph
16909  following one of this type will be suppressed.
16910  (So this will not affect the display of non-default paragraphs.)
16911 \end_layout
16912
16913 \begin_layout Description
16914 \begin_inset Flex Code
16915 status collapsed
16916
16917 \begin_layout Plain Layout
16918 ObsoletedBy
16919 \end_layout
16920
16921 \end_inset
16922
16923  [
16924 \begin_inset Flex Code
16925 status collapsed
16926
16927 \begin_layout Plain Layout
16928 <name>
16929 \end_layout
16930
16931 \end_inset
16932
16933 ] Name of a style that has replaced this style.
16934  This is used to rename a style, while keeping backward compatibility.
16935 \end_layout
16936
16937 \begin_layout Description
16938 \begin_inset Flex Code
16939 status collapsed
16940
16941 \begin_layout Plain Layout
16942 ParagraphGroup
16943 \end_layout
16944
16945 \end_inset
16946
16947  [
16948 \begin_inset Flex Code
16949 status collapsed
16950
16951 \begin_layout Plain Layout
16952 0
16953 \end_layout
16954
16955 \end_inset
16956
16957 ,
16958 \begin_inset space \thinspace{}
16959 \end_inset
16960
16961
16962 \begin_inset Flex Code
16963 status collapsed
16964
16965 \begin_layout Plain Layout
16966 1
16967 \end_layout
16968
16969 \end_inset
16970
16971 ] Determines whether consecutive paragraphs of the same type are treated
16972  as belonging together.
16973  This has the effect that the 
16974 \begin_inset Flex Code
16975 status collapsed
16976
16977 \begin_layout Plain Layout
16978 GuiLabel
16979 \end_layout
16980
16981 \end_inset
16982
16983  is only printed once before such a group.
16984  By default, this is true for 
16985 \begin_inset Flex Code
16986 status collapsed
16987
16988 \begin_layout Plain Layout
16989 LaTeXType
16990 \end_layout
16991
16992 \end_inset
16993
16994  
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999 Environment
17000 \end_layout
17001
17002 \end_inset
17003
17004  and 
17005 \begin_inset Flex Code
17006 status collapsed
17007
17008 \begin_layout Plain Layout
17009 Bib_Environment
17010 \end_layout
17011
17012 \end_inset
17013
17014  and false for all other types.
17015 \end_layout
17016
17017 \begin_layout Description
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 ParbreakIsNewline
17023 \end_layout
17024
17025 \end_inset
17026
17027  [
17028 \begin_inset Flex Code
17029 status collapsed
17030
17031 \begin_layout Plain Layout
17032
17033 \emph on
17034 0
17035 \end_layout
17036
17037 \end_inset
17038
17039 ,
17040 \begin_inset space \thinspace{}
17041 \end_inset
17042
17043
17044 \begin_inset Flex Code
17045 status collapsed
17046
17047 \begin_layout Plain Layout
17048 1
17049 \end_layout
17050
17051 \end_inset
17052
17053 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17054  output,
17055  but only by a line break; together with 
17056 \begin_inset Flex Code
17057 status collapsed
17058
17059 \begin_layout Plain Layout
17060 PassThru 1
17061 \end_layout
17062
17063 \end_inset
17064
17065 , this allows to emulate a plain text editor (like the ERT inset).
17066 \end_layout
17067
17068 \begin_layout Description
17069 \begin_inset Flex Code
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 ParIndent
17074 \end_layout
17075
17076 \end_inset
17077
17078  [
17079 \begin_inset Flex Code
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 string=""
17084 \end_layout
17085
17086 \end_inset
17087
17088 ] The indent of the very first line of a paragraph.
17089  The
17090 \begin_inset Newline newline
17091 \end_inset
17092
17093
17094 \begin_inset Flex Code
17095 status collapsed
17096
17097 \begin_layout Plain Layout
17098 Parindent
17099 \end_layout
17100
17101 \end_inset
17102
17103  will be fixed for a certain style.
17104  The exception is the default style, since the indentation for these paragraphs
17105  can be prohibited with 
17106 \begin_inset Flex Code
17107 status collapsed
17108
17109 \begin_layout Plain Layout
17110 NextNoIndent
17111 \end_layout
17112
17113 \end_inset
17114
17115 .
17116  Also, 
17117 \begin_inset Flex Code
17118 status collapsed
17119
17120 \begin_layout Plain Layout
17121 Standard
17122 \end_layout
17123
17124 \end_inset
17125
17126  style paragraphs inside environments use the 
17127 \begin_inset Flex Code
17128 status collapsed
17129
17130 \begin_layout Plain Layout
17131 Parindent
17132 \end_layout
17133
17134 \end_inset
17135
17136  of the environment, not their native one.
17137  For example, 
17138 \begin_inset Flex Code
17139 status collapsed
17140
17141 \begin_layout Plain Layout
17142 Standard
17143 \end_layout
17144
17145 \end_inset
17146
17147  paragraphs inside an enumeration are not indented.
17148 \end_layout
17149
17150 \begin_layout Description
17151 \begin_inset Flex Code
17152 status collapsed
17153
17154 \begin_layout Plain Layout
17155 ParSep
17156 \end_layout
17157
17158 \end_inset
17159
17160  [
17161 \begin_inset Flex Code
17162 status collapsed
17163
17164 \begin_layout Plain Layout
17165 float=0
17166 \end_layout
17167
17168 \end_inset
17169
17170 ] The vertical space between two paragraphs of this style.
17171 \end_layout
17172
17173 \begin_layout Description
17174 \begin_inset Flex Code
17175 status collapsed
17176
17177 \begin_layout Plain Layout
17178 Parskip
17179 \end_layout
17180
17181 \end_inset
17182
17183  [
17184 \begin_inset Flex Code
17185 status collapsed
17186
17187 \begin_layout Plain Layout
17188 float=0
17189 \end_layout
17190
17191 \end_inset
17192
17193 ] \SpecialChar LyX
17194  allows the user to choose either 
17195 \begin_inset Quotes eld
17196 \end_inset
17197
17198 indent
17199 \begin_inset Quotes erd
17200 \end_inset
17201
17202  or 
17203 \begin_inset Quotes eld
17204 \end_inset
17205
17206 skip
17207 \begin_inset Quotes erd
17208 \end_inset
17209
17210  to separate paragraphs.
17211  When 
17212 \begin_inset Quotes eld
17213 \end_inset
17214
17215 indent
17216 \begin_inset Quotes erd
17217 \end_inset
17218
17219  is chosen, 
17220 \begin_inset Flex Code
17221 status collapsed
17222
17223 \begin_layout Plain Layout
17224 Parskip
17225 \end_layout
17226
17227 \end_inset
17228
17229  is ignored.
17230  When 
17231 \begin_inset Quotes eld
17232 \end_inset
17233
17234 skip
17235 \begin_inset Quotes erd
17236 \end_inset
17237
17238  is chosen, 
17239 \begin_inset Flex Code
17240 status collapsed
17241
17242 \begin_layout Plain Layout
17243 ParIndent
17244 \end_layout
17245
17246 \end_inset
17247
17248  is ignored and all paragraphs are separated by the 
17249 \begin_inset Flex Code
17250 status collapsed
17251
17252 \begin_layout Plain Layout
17253 Parskip
17254 \end_layout
17255
17256 \end_inset
17257
17258  argument.
17259  The vertical space is calculated with 
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 Parskip
17265 \begin_inset space ~
17266 \end_inset
17267
17268 * DefaultHeight
17269 \end_layout
17270
17271 \end_inset
17272
17273  where 
17274 \begin_inset Flex Code
17275 status collapsed
17276
17277 \begin_layout Plain Layout
17278 DefaultHeight
17279 \end_layout
17280
17281 \end_inset
17282
17283  is the height of a row with the normal font.
17284  This way, the look stays the same with different screen fonts.
17285 \end_layout
17286
17287 \begin_layout Description
17288 \begin_inset Flex Code
17289 status collapsed
17290
17291 \begin_layout Plain Layout
17292 PassThru
17293 \end_layout
17294
17295 \end_inset
17296
17297  [
17298 \begin_inset Flex Code
17299 status collapsed
17300
17301 \begin_layout Plain Layout
17302
17303 \emph on
17304 0
17305 \end_layout
17306
17307 \end_inset
17308
17309 ,
17310 \begin_inset space \thinspace{}
17311 \end_inset
17312
17313
17314 \begin_inset Flex Code
17315 status collapsed
17316
17317 \begin_layout Plain Layout
17318 1
17319 \end_layout
17320
17321 \end_inset
17322
17323 ] Whether the contents of this paragraph should be output in raw form, meaning
17324  without special translations that \SpecialChar LaTeX
17325  would require.
17326 \end_layout
17327
17328 \begin_layout Description
17329 \begin_inset Flex Code
17330 status collapsed
17331
17332 \begin_layout Plain Layout
17333 PassThruChars
17334 \end_layout
17335
17336 \end_inset
17337
17338  [
17339 \begin_inset Flex Code
17340 status collapsed
17341
17342 \begin_layout Plain Layout
17343 string
17344 \end_layout
17345
17346 \end_inset
17347
17348 ]
17349 \family typewriter
17350  
17351 \family default
17352 Defines individual characters that should be output in raw form, meaning
17353  without special translations that \SpecialChar LaTeX
17354  would require.
17355 \end_layout
17356
17357 \begin_layout Description
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362 Preamble
17363 \end_layout
17364
17365 \end_inset
17366
17367  Information to be included in the \SpecialChar LaTeX
17368  preamble when this style is used.
17369  Used to define macros, load packages, etc., required by this particular
17370  style.
17371  Must end with 
17372 \begin_inset Quotes eld
17373 \end_inset
17374
17375
17376 \begin_inset Flex Code
17377 status collapsed
17378
17379 \begin_layout Plain Layout
17380 EndPreamble
17381 \end_layout
17382
17383 \end_inset
17384
17385
17386 \begin_inset Quotes erd
17387 \end_inset
17388
17389 .
17390 \end_layout
17391
17392 \begin_layout Description
17393 \begin_inset Flex Code
17394 status collapsed
17395
17396 \begin_layout Plain Layout
17397 RefPrefix
17398 \end_layout
17399
17400 \end_inset
17401
17402  [
17403 \begin_inset Flex Code
17404 status collapsed
17405
17406 \begin_layout Plain Layout
17407 string
17408 \end_layout
17409
17410 \end_inset
17411
17412 ] The prefix to use when creating labels referring to paragraphs of this
17413  type.
17414  This allows the use of formatted references.
17415 \end_layout
17416
17417 \begin_layout Description
17418 \begin_inset Flex Code
17419 status collapsed
17420
17421 \begin_layout Plain Layout
17422 Requires 
17423 \end_layout
17424
17425 \end_inset
17426
17427  [
17428 \begin_inset Flex Code
17429 status collapsed
17430
17431 \begin_layout Plain Layout
17432 string
17433 \end_layout
17434
17435 \end_inset
17436
17437 ] Whether the style requires the feature 
17438 \begin_inset Flex Code
17439 status collapsed
17440
17441 \begin_layout Plain Layout
17442 string
17443 \end_layout
17444
17445 \end_inset
17446
17447  (see 
17448 \begin_inset CommandInset ref
17449 LatexCommand ref
17450 reference "chap:List-of-functions"
17451
17452 \end_inset
17453
17454  for the list of features).
17455  If you require a package with specific options, you can additionally use
17456  
17457 \begin_inset Flex Code
17458 status collapsed
17459
17460 \begin_layout Plain Layout
17461 PackageOptions
17462 \end_layout
17463
17464 \end_inset
17465
17466  as a general text class parameter (see 
17467 \begin_inset CommandInset ref
17468 LatexCommand ref
17469 reference "subsec:General-text-class"
17470
17471 \end_inset
17472
17473 ).
17474 \end_layout
17475
17476 \begin_layout Description
17477 \begin_inset Flex Code
17478 status collapsed
17479
17480 \begin_layout Plain Layout
17481 ResetArgs
17482 \end_layout
17483
17484 \end_inset
17485
17486  [
17487 \begin_inset Flex Code
17488 status collapsed
17489
17490 \begin_layout Plain Layout
17491
17492 \emph on
17493 0
17494 \end_layout
17495
17496 \end_inset
17497
17498 ,
17499 \begin_inset Flex Code
17500 status collapsed
17501
17502 \begin_layout Plain Layout
17503 1
17504 \end_layout
17505
17506 \end_inset
17507
17508 ] Resets the \SpecialChar LaTeX
17509  arguments of this style (as defined via the 
17510 \begin_inset Flex Code
17511 status collapsed
17512
17513 \begin_layout Plain Layout
17514 Argument
17515 \end_layout
17516
17517 \end_inset
17518
17519  tag).
17520  This is useful if you have copied a style via 
17521 \begin_inset Flex Code
17522 status collapsed
17523
17524 \begin_layout Plain Layout
17525 CopyStyle
17526 \end_layout
17527
17528 \end_inset
17529
17530 , but you do not want to inherit its (required and optional) arguments.
17531 \end_layout
17532
17533 \begin_layout Description
17534 \begin_inset Flex Code
17535 status collapsed
17536
17537 \begin_layout Plain Layout
17538 ResumeCounter
17539 \end_layout
17540
17541 \end_inset
17542
17543  [
17544 \begin_inset Flex Code
17545 status collapsed
17546
17547 \begin_layout Plain Layout
17548
17549 \emph on
17550 0
17551 \end_layout
17552
17553 \end_inset
17554
17555 ,
17556 \begin_inset Flex Code
17557 status collapsed
17558
17559 \begin_layout Plain Layout
17560 1
17561 \end_layout
17562
17563 \end_inset
17564
17565 ] Resumes a counter that is usually reset at each new sequence of layouts.
17566  This is currently only useful when 
17567 \begin_inset Flex Code
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571 LabelType
17572 \end_layout
17573
17574 \end_inset
17575
17576  is 
17577 \begin_inset Flex Code
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581 Enumerate
17582 \end_layout
17583
17584 \end_inset
17585
17586 .
17587 \end_layout
17588
17589 \begin_layout Description
17590 \begin_inset Flex Code
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594 RightDelim
17595 \end_layout
17596
17597 \end_inset
17598
17599  [
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604 string
17605 \end_layout
17606
17607 \end_inset
17608
17609 ] A string that is put at the end of the layout content.
17610  A line break in the output can be indicated by 
17611 \begin_inset Flex Code
17612 status collapsed
17613
17614 \begin_layout Plain Layout
17615 <br/>
17616 \end_layout
17617
17618 \end_inset
17619
17620 .
17621 \end_layout
17622
17623 \begin_layout Description
17624 \begin_inset Flex Code
17625 status collapsed
17626
17627 \begin_layout Plain Layout
17628 RightMargin
17629 \end_layout
17630
17631 \end_inset
17632
17633  [
17634 \begin_inset Flex Code
17635 status collapsed
17636
17637 \begin_layout Plain Layout
17638 string=""
17639 \end_layout
17640
17641 \end_inset
17642
17643 ] Similar to 
17644 \begin_inset Flex Code
17645 status collapsed
17646
17647 \begin_layout Plain Layout
17648 LeftMargin
17649 \end_layout
17650
17651 \end_inset
17652
17653 .
17654 \end_layout
17655
17656 \begin_layout Description
17657 \begin_inset Flex Code
17658 status collapsed
17659
17660 \begin_layout Plain Layout
17661 Spacing
17662 \end_layout
17663
17664 \end_inset
17665
17666  [
17667 \begin_inset Flex Code
17668 status collapsed
17669
17670 \begin_layout Plain Layout
17671
17672 \emph on
17673 single
17674 \end_layout
17675
17676 \end_inset
17677
17678
17679 \begin_inset Flex Code
17680 status collapsed
17681
17682 \begin_layout Plain Layout
17683 onehalf
17684 \end_layout
17685
17686 \end_inset
17687
17688
17689 \begin_inset Flex Code
17690 status collapsed
17691
17692 \begin_layout Plain Layout
17693 double
17694 \end_layout
17695
17696 \end_inset
17697
17698
17699 \begin_inset Flex Code
17700 status collapsed
17701
17702 \begin_layout Plain Layout
17703 other
17704 \begin_inset space ~
17705 \end_inset
17706
17707 <value>
17708 \end_layout
17709
17710 \end_inset
17711
17712 ] This defines what the default spacing should be in the style.
17713  The arguments 
17714 \begin_inset Flex Code
17715 status collapsed
17716
17717 \begin_layout Plain Layout
17718 single
17719 \end_layout
17720
17721 \end_inset
17722
17723
17724 \begin_inset Flex Code
17725 status collapsed
17726
17727 \begin_layout Plain Layout
17728 onehalf
17729 \end_layout
17730
17731 \end_inset
17732
17733  and 
17734 \begin_inset Flex Code
17735 status collapsed
17736
17737 \begin_layout Plain Layout
17738 double
17739 \end_layout
17740
17741 \end_inset
17742
17743  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17744  If you specify the argument 
17745 \begin_inset Flex Code
17746 status collapsed
17747
17748 \begin_layout Plain Layout
17749 other
17750 \end_layout
17751
17752 \end_inset
17753
17754 , then you must also provide a value argument which will be the actual multiplie
17755 r value.
17756  Note that, contrary to other parameters, 
17757 \begin_inset Flex Code
17758 status collapsed
17759
17760 \begin_layout Plain Layout
17761 Spacing
17762 \end_layout
17763
17764 \end_inset
17765
17766  implies the generation of specific \SpecialChar LaTeX
17767  code, using the \SpecialChar LaTeX
17768  package 
17769 \family roman
17770
17771 \begin_inset Flex Code
17772 status collapsed
17773
17774 \begin_layout Plain Layout
17775 setspace
17776 \end_layout
17777
17778 \end_inset
17779
17780 .
17781 \end_layout
17782
17783 \begin_layout Description
17784 \begin_inset Flex Code
17785 status collapsed
17786
17787 \begin_layout Plain Layout
17788 Spellcheck
17789 \end_layout
17790
17791 \end_inset
17792
17793  [
17794 \begin_inset Flex Code
17795 status collapsed
17796
17797 \begin_layout Plain Layout
17798 0
17799 \end_layout
17800
17801 \end_inset
17802
17803 ,
17804 \begin_inset space \thinspace{}
17805 \end_inset
17806
17807
17808 \begin_inset Flex Code
17809 status collapsed
17810
17811 \begin_layout Plain Layout
17812
17813 \emph on
17814 1
17815 \end_layout
17816
17817 \end_inset
17818
17819 ] Allow spell-checking paragraphs of this style.
17820  Default is true.
17821 \end_layout
17822
17823 \begin_layout Description
17824 \begin_inset Flex Code
17825 status collapsed
17826
17827 \begin_layout Plain Layout
17828 Step
17829 \change_deleted 731793113 1604355211
17830 Master
17831 \change_inserted 731793113 1604355212
17832 Parent
17833 \change_unchanged
17834 Counter
17835 \end_layout
17836
17837 \end_inset
17838
17839  [
17840 \begin_inset Flex Code
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844
17845 \emph on
17846 0
17847 \end_layout
17848
17849 \end_inset
17850
17851 ,
17852 \begin_inset Flex Code
17853 status collapsed
17854
17855 \begin_layout Plain Layout
17856 1
17857 \end_layout
17858
17859 \end_inset
17860
17861 ] Steps the 
17862 \change_deleted 731793113 1604355214
17863 master
17864 \change_inserted 731793113 1604355216
17865 parent
17866 \change_unchanged
17867  counter of a given counter at the beginning of a new sequence of layouts.
17868  This is currently only useful when 
17869 \begin_inset Flex Code
17870 status collapsed
17871
17872 \begin_layout Plain Layout
17873 LabelType
17874 \end_layout
17875
17876 \end_inset
17877
17878  is 
17879 \begin_inset Flex Code
17880 status collapsed
17881
17882 \begin_layout Plain Layout
17883 Enumerate
17884 \end_layout
17885
17886 \end_inset
17887
17888 .
17889 \end_layout
17890
17891 \begin_layout Description
17892 \begin_inset Flex Code
17893 status collapsed
17894
17895 \begin_layout Plain Layout
17896 TextFont
17897 \end_layout
17898
17899 \end_inset
17900
17901  The font used for the text body .
17902  See 
17903 \begin_inset CommandInset ref
17904 LatexCommand ref
17905 reference "subsec:Font-description"
17906
17907 \end_inset
17908
17909 .
17910 \end_layout
17911
17912 \begin_layout Description
17913 \begin_inset Flex Code
17914 status collapsed
17915
17916 \begin_layout Plain Layout
17917 TocLevel
17918 \end_layout
17919
17920 \end_inset
17921
17922
17923 \series medium
17924  [
17925 \begin_inset Flex Code
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929
17930 \series medium
17931 int=3
17932 \end_layout
17933
17934 \end_inset
17935
17936 ]
17937 \series default
17938  The level of the style in the table of contents.
17939  This is used for automatic numbering of section headings.
17940 \end_layout
17941
17942 \begin_layout Description
17943 \begin_inset Flex Code
17944 status collapsed
17945
17946 \begin_layout Plain Layout
17947 ToggleIndent
17948 \end_layout
17949
17950 \end_inset
17951
17952  [
17953 \emph on
17954
17955 \begin_inset Flex Code
17956 status collapsed
17957
17958 \begin_layout Plain Layout
17959
17960 \emph on
17961 default
17962 \end_layout
17963
17964 \end_inset
17965
17966
17967 \emph default
17968
17969 \begin_inset Flex Code
17970 status collapsed
17971
17972 \begin_layout Plain Layout
17973 always
17974 \end_layout
17975
17976 \end_inset
17977
17978
17979 \begin_inset Flex Code
17980 status collapsed
17981
17982 \begin_layout Plain Layout
17983 never
17984 \end_layout
17985
17986 \end_inset
17987
17988 ] This tag determines whether the first line indentation of this paragraph
17989  can be toggled via the Paragraph settings dialog.
17990  If 
17991 \emph on
17992
17993 \begin_inset Flex Code
17994 status collapsed
17995
17996 \begin_layout Plain Layout
17997
17998 \emph off
17999 default
18000 \end_layout
18001
18002 \end_inset
18003
18004
18005 \emph default
18006  is set, indentation can be toggled if the document settings use 
18007 \begin_inset Quotes eld
18008 \end_inset
18009
18010 indent
18011 \begin_inset Quotes erd
18012 \end_inset
18013
18014  paragraph style, with 
18015 \begin_inset Flex Code
18016 status collapsed
18017
18018 \begin_layout Plain Layout
18019 always
18020 \end_layout
18021
18022 \end_inset
18023
18024 , indentation can always be toggled, notwithstanding the document settings,
18025  with 
18026 \begin_inset Flex Code
18027 status collapsed
18028
18029 \begin_layout Plain Layout
18030 never
18031 \end_layout
18032
18033 \end_inset
18034
18035 , indentation can never be toggled.
18036 \end_layout
18037
18038 \begin_layout Description
18039 \begin_inset Flex Code
18040 status collapsed
18041
18042 \begin_layout Plain Layout
18043 TopSep
18044 \end_layout
18045
18046 \end_inset
18047
18048  [
18049 \begin_inset Flex Code
18050 status collapsed
18051
18052 \begin_layout Plain Layout
18053 float=0
18054 \end_layout
18055
18056 \end_inset
18057
18058 ] The vertical space with which the very first of a chain of paragraphs
18059  with this style is separated from the previous paragraph.
18060  If the previous paragraph has another style, the separations are not simply
18061  added, but the maximum is taken.
18062 \end_layout
18063
18064 \begin_layout Subsection
18065 \begin_inset CommandInset label
18066 LatexCommand label
18067 name "subsec:I18n"
18068
18069 \end_inset
18070
18071 Internationalization of Paragraph Styles
18072 \end_layout
18073
18074 \begin_layout Standard
18075 \SpecialChar LyX
18076  has long supported internationalization of layout information, but, until
18077  version 2.0, this applied only to the user interface and not to, say, PDF
18078  output.
18079  Thus, French authors were forced to resort to ugly hacks if they wanted
18080  `
18081 \lang french
18082 Théorème
18083 \lang english
18084  1' instead of `Theorem 1'.
18085  Thanks to Georg Baum, that is no longer the case.
18086 \end_layout
18087
18088 \begin_layout Standard
18089 If a 
18090 \begin_inset Flex Code
18091 status collapsed
18092
18093 \begin_layout Plain Layout
18094 Style
18095 \end_layout
18096
18097 \end_inset
18098
18099  defines text that is to appear in the typeset document, it may use 
18100 \begin_inset Flex Code
18101 status collapsed
18102
18103 \begin_layout Plain Layout
18104 LangPreamble
18105 \end_layout
18106
18107 \end_inset
18108
18109  and 
18110 \begin_inset Flex Code
18111 status collapsed
18112
18113 \begin_layout Plain Layout
18114 BabelPreamble
18115 \end_layout
18116
18117 \end_inset
18118
18119  to support non-English and even multi-language documents correctly.
18120  The following excerpt (from the 
18121 \begin_inset Flex Code
18122 status collapsed
18123
18124 \begin_layout Plain Layout
18125 theorems-ams.inc
18126 \end_layout
18127
18128 \end_inset
18129
18130  file) shows how this works:
18131 \end_layout
18132
18133 \begin_layout LyX-Code
18134 Preamble
18135 \end_layout
18136
18137 \begin_deeper
18138 \begin_layout LyX-Code
18139   
18140 \backslash
18141 theoremstyle{remark}
18142 \end_layout
18143
18144 \begin_layout LyX-Code
18145   
18146 \backslash
18147 newtheorem{claim}[thm]{
18148 \backslash
18149 protect
18150 \backslash
18151 claimname}
18152 \end_layout
18153
18154 \begin_layout LyX-Code
18155 EndPreamble
18156 \end_layout
18157
18158 \begin_layout LyX-Code
18159 LangPreamble
18160 \end_layout
18161
18162 \begin_layout LyX-Code
18163   
18164 \backslash
18165 providecommand{
18166 \backslash
18167 claimname}{_(Claim)}
18168 \end_layout
18169
18170 \begin_layout LyX-Code
18171 EndLangPreamble
18172 \end_layout
18173
18174 \begin_layout LyX-Code
18175 BabelPreamble
18176 \end_layout
18177
18178 \begin_layout LyX-Code
18179     
18180 \backslash
18181 addto
18182 \backslash
18183 captions$$lang{
18184 \backslash
18185 renewcommand{
18186 \backslash
18187 claimname}{_(Claim)}}
18188 \end_layout
18189
18190 \begin_layout LyX-Code
18191 EndBabelPreamble
18192 \end_layout
18193
18194 \end_deeper
18195 \begin_layout Standard
18196 In principle, any legal \SpecialChar LaTeX
18197  may appear in the 
18198 \begin_inset Flex Code
18199 status collapsed
18200
18201 \begin_layout Plain Layout
18202 LangPreamble
18203 \end_layout
18204
18205 \end_inset
18206
18207  and 
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212 BabelPreamble
18213 \end_layout
18214
18215 \end_inset
18216
18217  tags, but in practice they will typically look as they do here.
18218  The key to correct translation of the typeset text is the definition of
18219  the \SpecialChar LaTeX
18220  command 
18221 \begin_inset Flex Code
18222 status collapsed
18223
18224 \begin_layout Plain Layout
18225
18226 \backslash
18227 claimname
18228 \end_layout
18229
18230 \end_inset
18231
18232  and its use in 
18233 \begin_inset Flex Code
18234 status collapsed
18235
18236 \begin_layout Plain Layout
18237
18238 \backslash
18239 newtheorem
18240 \end_layout
18241
18242 \end_inset
18243
18244 .
18245  
18246 \end_layout
18247
18248 \begin_layout Standard
18249 The 
18250 \begin_inset Flex Code
18251 status collapsed
18252
18253 \begin_layout Plain Layout
18254 LangPreamble
18255 \end_layout
18256
18257 \end_inset
18258
18259  tag provides for internationalization based upon the overall language of
18260  the document.
18261  The contents of the tag will be included in the preamble, just as with
18262  the 
18263 \begin_inset Flex Code
18264 status collapsed
18265
18266 \begin_layout Plain Layout
18267 Preamble
18268 \end_layout
18269
18270 \end_inset
18271
18272  tag.
18273  What makes it special is the use of the 
18274 \begin_inset Quotes eld
18275 \end_inset
18276
18277 function
18278 \begin_inset Quotes erd
18279 \end_inset
18280
18281  
18282 \begin_inset Flex Code
18283 status collapsed
18284
18285 \begin_layout Plain Layout
18286 _()
18287 \end_layout
18288
18289 \end_inset
18290
18291 , which will be replaced, when \SpecialChar LyX
18292  produces \SpecialChar LaTeX
18293  output, with the translation of
18294  its argument into the document language.
18295 \end_layout
18296
18297 \begin_layout Standard
18298 The 
18299 \begin_inset Flex Code
18300 status collapsed
18301
18302 \begin_layout Plain Layout
18303 BabelPreamble
18304 \end_layout
18305
18306 \end_inset
18307
18308  tag is more complex, since it is meant to provide support for multi-language
18309  documents and so offers an interface to the 
18310 \begin_inset Flex Code
18311 status collapsed
18312
18313 \begin_layout Plain Layout
18314 babel
18315 \end_layout
18316
18317 \end_inset
18318
18319  package.
18320  Its contents will be added to the preamble once for each language that
18321  appears in the document.
18322  In this case, the argument to 
18323 \begin_inset Flex Code
18324 status collapsed
18325
18326 \begin_layout Plain Layout
18327 _()
18328 \end_layout
18329
18330 \end_inset
18331
18332  will be replaced with its translation into the language in question; the
18333  expression 
18334 \begin_inset Flex Code
18335 status collapsed
18336
18337 \begin_layout Plain Layout
18338 $$lang
18339 \end_layout
18340
18341 \end_inset
18342
18343  is replaced by the language name (as used by the babel package).
18344 \end_layout
18345
18346 \begin_layout Standard
18347 A German document that also included a French section would thus have the
18348  following in the preamble:
18349 \end_layout
18350
18351 \begin_layout LyX-Code
18352
18353 \backslash
18354 addto
18355 \backslash
18356 captionsfrench{
18357 \backslash
18358 renewcommand{
18359 \backslash
18360 claimname}{Affirmation}}
18361 \begin_inset Newline newline
18362 \end_inset
18363
18364
18365 \backslash
18366 addto
18367 \backslash
18368 captionsngerman{
18369 \backslash
18370 renewcommand{
18371 \backslash
18372 claimname}{Behauptung}}
18373 \begin_inset Newline newline
18374 \end_inset
18375
18376
18377 \backslash
18378 providecommand{
18379 \backslash
18380 claimname}{Behauptung}
18381 \end_layout
18382
18383 \begin_layout Standard
18384 \SpecialChar LaTeX
18385  and 
18386 \begin_inset Flex Code
18387 status collapsed
18388
18389 \begin_layout Plain Layout
18390 babel
18391 \end_layout
18392
18393 \end_inset
18394
18395  will then conspire to produce the correct text in the output.
18396 \end_layout
18397
18398 \begin_layout Standard
18399 One important point to note here is that the translations are provided by
18400  \SpecialChar LyX
18401  itself, through the file 
18402 \begin_inset Flex Code
18403 status collapsed
18404
18405 \begin_layout Plain Layout
18406 layouttranslations
18407 \end_layout
18408
18409 \end_inset
18410
18411 .
18412  This means, in effect, that 
18413 \begin_inset Flex Code
18414 status collapsed
18415
18416 \begin_layout Plain Layout
18417 LangPreamble
18418 \end_layout
18419
18420 \end_inset
18421
18422  and 
18423 \begin_inset Flex Code
18424 status collapsed
18425
18426 \begin_layout Plain Layout
18427 BabelPreamble
18428 \end_layout
18429
18430 \end_inset
18431
18432  are really only of use in layout files that are provided with \SpecialChar LyX
18433 , since text
18434  entered in user-created layout files will not be seen by \SpecialChar LyX
18435 's internationalizatio
18436 n routines unless the 
18437 \begin_inset Flex Code
18438 status collapsed
18439
18440 \begin_layout Plain Layout
18441 layouttranslations
18442 \end_layout
18443
18444 \end_inset
18445
18446  file is modified accordingly.
18447  That said, however, any layout created with the intention that it will
18448  be included with \SpecialChar LyX
18449  should use these tags where appropriate.
18450  Please note that the paragraph style translations provided by \SpecialChar LyX
18451  will never
18452  change with a minor update (e.
18453 \begin_inset space \thinspace{}
18454 \end_inset
18455
18456 g.
18457 \begin_inset space \space{}
18458 \end_inset
18459
18460 from version 2.1.x to 2.1.y).
18461  It is however quite likely that a major update (e.
18462 \begin_inset space \thinspace{}
18463 \end_inset
18464
18465 g.
18466 \begin_inset space \space{}
18467 \end_inset
18468
18469 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18470 \end_layout
18471
18472 \begin_layout Subsection
18473 Floats
18474 \begin_inset CommandInset label
18475 LatexCommand label
18476 name "subsec:Floats"
18477
18478 \end_inset
18479
18480
18481 \end_layout
18482
18483 \begin_layout Standard
18484 It is necessary to define the floats (
18485 \begin_inset Flex Noun
18486 status collapsed
18487
18488 \begin_layout Plain Layout
18489 figure
18490 \end_layout
18491
18492 \end_inset
18493
18494
18495 \begin_inset Flex Noun
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499 table
18500 \end_layout
18501
18502 \end_inset
18503
18504 , \SpecialChar ldots
18505 ) in the text class itself.
18506  Standard floats are included in the file 
18507 \begin_inset Flex Code
18508 status collapsed
18509
18510 \begin_layout Plain Layout
18511 stdfloats.inc
18512 \end_layout
18513
18514 \end_inset
18515
18516 , so you may have to do no more than add
18517 \end_layout
18518
18519 \begin_layout LyX-Code
18520 Input stdfloats.inc
18521 \end_layout
18522
18523 \begin_layout Standard
18524 to your layout file.
18525  If you want to implement a text class that proposes some other float types
18526  (like the AGU class bundled with \SpecialChar LyX
18527 ), the information below will hopefully
18528  help you:
18529 \end_layout
18530
18531 \begin_layout Description
18532 \begin_inset Flex Code
18533 status collapsed
18534
18535 \begin_layout Plain Layout
18536 AllowedPlacement
18537 \end_layout
18538
18539 \end_inset
18540
18541  [
18542 \begin_inset Flex Code
18543 status collapsed
18544
18545 \begin_layout Plain Layout
18546 string
18547 \end_layout
18548
18549 \end_inset
18550
18551 =!htbpH] Allowed placement options for this float type.
18552  The value is a string of placement characters.
18553  Possible characters include: 
18554 \emph on
18555 h
18556 \emph default
18557  (
18558 \begin_inset Quotes eld
18559 \end_inset
18560
18561 here if possible
18562 \begin_inset Quotes erd
18563 \end_inset
18564
18565 ), 
18566 \emph on
18567 t
18568 \emph default
18569  (
18570 \begin_inset Quotes eld
18571 \end_inset
18572
18573 top of page
18574 \begin_inset Quotes erd
18575 \end_inset
18576
18577 ), 
18578 \emph on
18579 b
18580 \emph default
18581  (
18582 \begin_inset Quotes eld
18583 \end_inset
18584
18585 bottom of page
18586 \begin_inset Quotes erd
18587 \end_inset
18588
18589 ), 
18590 \emph on
18591 p
18592 \emph default
18593  (
18594 \begin_inset Quotes eld
18595 \end_inset
18596
18597 page of floats
18598 \begin_inset Quotes erd
18599 \end_inset
18600
18601 ), 
18602 \emph on
18603 H
18604 \emph default
18605  (
18606 \begin_inset Quotes eld
18607 \end_inset
18608
18609 here definitely
18610 \begin_inset Quotes erd
18611 \end_inset
18612
18613 ) and 
18614 \emph on
18615 !
18616 \emph default
18617  (
18618 \begin_inset Quotes eld
18619 \end_inset
18620
18621 ignore LaTeX rules
18622 \begin_inset Quotes erd
18623 \end_inset
18624
18625 ).
18626  The order of the characters in the string does not matter.
18627  If no placement options are allowed, use the string 
18628 \emph on
18629 none
18630 \emph default
18631 .
18632 \end_layout
18633
18634 \begin_layout Description
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639 AllowsSideways
18640 \end_layout
18641
18642 \end_inset
18643
18644  [
18645 \begin_inset Flex Code
18646 status collapsed
18647
18648 \begin_layout Plain Layout
18649
18650 \emph off
18651 0
18652 \end_layout
18653
18654 \end_inset
18655
18656 ,
18657 \begin_inset space \thinspace{}
18658 \end_inset
18659
18660
18661 \emph on
18662
18663 \begin_inset Flex Code
18664 status collapsed
18665
18666 \begin_layout Plain Layout
18667
18668 \emph on
18669 1
18670 \end_layout
18671
18672 \end_inset
18673
18674
18675 \emph default
18676 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18677 -package 
18678 \family typewriter
18679 rotfloat
18680 \family default
18681  (sidewaysfloat).
18682  Set to 
18683 \begin_inset Flex Code
18684 status collapsed
18685
18686 \begin_layout Plain Layout
18687 0
18688 \end_layout
18689
18690 \end_inset
18691
18692  if the float does not support this feature.
18693 \end_layout
18694
18695 \begin_layout Description
18696 \begin_inset Flex Code
18697 status collapsed
18698
18699 \begin_layout Plain Layout
18700 AllowsWide
18701 \end_layout
18702
18703 \end_inset
18704
18705  [
18706 \begin_inset Flex Code
18707 status collapsed
18708
18709 \begin_layout Plain Layout
18710
18711 \emph off
18712 0
18713 \end_layout
18714
18715 \end_inset
18716
18717 ,
18718 \begin_inset space \thinspace{}
18719 \end_inset
18720
18721
18722 \emph on
18723
18724 \begin_inset Flex Code
18725 status collapsed
18726
18727 \begin_layout Plain Layout
18728
18729 \emph on
18730 1
18731 \end_layout
18732
18733 \end_inset
18734
18735
18736 \emph default
18737 ] Defines whether the float has a starred variant that spans columns in
18738  a two column paragraph.
18739  Set to 
18740 \begin_inset Flex Code
18741 status collapsed
18742
18743 \begin_layout Plain Layout
18744 0
18745 \end_layout
18746
18747 \end_inset
18748
18749  if the float does not support this feature.
18750 \end_layout
18751
18752 \begin_layout Description
18753 \begin_inset Flex Code
18754 status collapsed
18755
18756 \begin_layout Plain Layout
18757 Extension
18758 \end_layout
18759
18760 \end_inset
18761
18762  [
18763 \begin_inset Flex Code
18764 status collapsed
18765
18766 \begin_layout Plain Layout
18767 string
18768 \end_layout
18769
18770 \end_inset
18771
18772 =
18773 \begin_inset Quotes erd
18774 \end_inset
18775
18776
18777 \begin_inset Quotes erd
18778 \end_inset
18779
18780 ] The file name extension of an auxiliary file for the list of figures (or
18781  whatever).
18782  \SpecialChar LaTeX
18783  writes the captions to this file.
18784 \end_layout
18785
18786 \begin_layout Description
18787 \begin_inset Flex Code
18788 status collapsed
18789
18790 \begin_layout Plain Layout
18791 GuiName
18792 \end_layout
18793
18794 \end_inset
18795
18796  [
18797 \begin_inset Flex Code
18798 status collapsed
18799
18800 \begin_layout Plain Layout
18801 string
18802 \end_layout
18803
18804 \end_inset
18805
18806 =
18807 \begin_inset Quotes erd
18808 \end_inset
18809
18810
18811 \begin_inset Quotes erd
18812 \end_inset
18813
18814 ] The string that will be used in the menus and also for the caption.
18815  This is translated to the current language if babel is used.
18816 \end_layout
18817
18818 \begin_layout Description
18819 \begin_inset Flex Code
18820 status collapsed
18821
18822 \begin_layout Plain Layout
18823 HTML*
18824 \end_layout
18825
18826 \end_inset
18827
18828  These tags control the XHTML output.
18829  See 
18830 \begin_inset CommandInset ref
18831 LatexCommand ref
18832 reference "sec:Tags-for-XHTML"
18833
18834 \end_inset
18835
18836 .
18837 \end_layout
18838
18839 \begin_layout Description
18840 \begin_inset Flex Code
18841 status collapsed
18842
18843 \begin_layout Plain Layout
18844 IsPredefined
18845 \end_layout
18846
18847 \end_inset
18848
18849  [
18850 \emph on
18851
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856 0
18857 \end_layout
18858
18859 \end_inset
18860
18861
18862 \emph default
18863 ,
18864 \begin_inset space \thinspace{}
18865 \end_inset
18866
18867
18868 \begin_inset Flex Code
18869 status collapsed
18870
18871 \begin_layout Plain Layout
18872 1
18873 \end_layout
18874
18875 \end_inset
18876
18877 ] Indicates whether the float is already defined in the document class or
18878  if instead the \SpecialChar LaTeX
18879  package 
18880 \begin_inset Flex Code
18881 status collapsed
18882
18883 \begin_layout Plain Layout
18884 float
18885 \end_layout
18886
18887 \end_inset
18888
18889  needs to be loaded to define it on-the-fly.
18890  The default is 
18891 \begin_inset Flex Code
18892 status collapsed
18893
18894 \begin_layout Plain Layout
18895 0
18896 \end_layout
18897
18898 \end_inset
18899
18900 , which means: 
18901 \begin_inset Flex Code
18902 status collapsed
18903
18904 \begin_layout Plain Layout
18905 float
18906 \end_layout
18907
18908 \end_inset
18909
18910  is used.
18911  It should be set to 
18912 \begin_inset Flex Code
18913 status collapsed
18914
18915 \begin_layout Plain Layout
18916 1
18917 \end_layout
18918
18919 \end_inset
18920
18921  if the float is already defined by the \SpecialChar LaTeX
18922  document class.
18923 \end_layout
18924
18925 \begin_layout Description
18926 \begin_inset Flex Code
18927 status collapsed
18928
18929 \begin_layout Plain Layout
18930 ListCommand
18931 \end_layout
18932
18933 \end_inset
18934
18935  [
18936 \begin_inset Flex Code
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940 string
18941 \end_layout
18942
18943 \end_inset
18944
18945 =
18946 \begin_inset Quotes erd
18947 \end_inset
18948
18949
18950 \begin_inset Quotes erd
18951 \end_inset
18952
18953 ] The command used to generate a list of floats of this type; the leading
18954  `
18955 \backslash
18956 ' must be omitted.
18957  This 
18958 \emph on
18959 must
18960 \emph default
18961  be given if 
18962 \begin_inset Flex Code
18963 status collapsed
18964
18965 \begin_layout Plain Layout
18966 UsesFloatPkg
18967 \end_layout
18968
18969 \end_inset
18970
18971  is false, since there is no standard way to generate this command.
18972  It is ignored if 
18973 \begin_inset Flex Code
18974 status collapsed
18975
18976 \begin_layout Plain Layout
18977 UsesFloatPkg
18978 \end_layout
18979
18980 \end_inset
18981
18982  is true, since in that case there is a standard way to define the command.
18983 \end_layout
18984
18985 \begin_layout Description
18986 \begin_inset Flex Code
18987 status collapsed
18988
18989 \begin_layout Plain Layout
18990 ListName
18991 \end_layout
18992
18993 \end_inset
18994
18995  [
18996 \begin_inset Flex Code
18997 status collapsed
18998
18999 \begin_layout Plain Layout
19000 string
19001 \end_layout
19002
19003 \end_inset
19004
19005 =
19006 \begin_inset Quotes erd
19007 \end_inset
19008
19009
19010 \begin_inset Quotes erd
19011 \end_inset
19012
19013 ] A title for a list of floats of this kind (list of figures, tables, or
19014  whatever).
19015  It is used for the screen label within \SpecialChar LyX
19016 , it is used by \SpecialChar LaTeX
19017  for the title and
19018  it is used as the title in the XHTML output.
19019  It will be translated to the document language.
19020 \end_layout
19021
19022 \begin_layout Description
19023 \begin_inset Flex Code
19024 status collapsed
19025
19026 \begin_layout Plain Layout
19027 NumberWithin
19028 \end_layout
19029
19030 \end_inset
19031
19032  [
19033 \begin_inset Flex Code
19034 status collapsed
19035
19036 \begin_layout Plain Layout
19037 string
19038 \end_layout
19039
19040 \end_inset
19041
19042 =
19043 \begin_inset Quotes erd
19044 \end_inset
19045
19046
19047 \begin_inset Quotes erd
19048 \end_inset
19049
19050 ] This (optional) argument determines whether floats of this class will
19051  be numbered within some sectional unit of the document.
19052  For example, if 
19053 \begin_inset Flex Code
19054 status collapsed
19055
19056 \begin_layout Plain Layout
19057 NumberWithin
19058 \end_layout
19059
19060 \end_inset
19061
19062  is set to 
19063 \begin_inset Quotes eld
19064 \end_inset
19065
19066
19067 \begin_inset Flex Code
19068 status collapsed
19069
19070 \begin_layout Plain Layout
19071 chapter
19072 \end_layout
19073
19074 \end_inset
19075
19076
19077 \begin_inset Quotes erd
19078 \end_inset
19079
19080 , the floats will be numbered within chapters.
19081  
19082 \end_layout
19083
19084 \begin_layout Description
19085 \begin_inset Flex Code
19086 status collapsed
19087
19088 \begin_layout Plain Layout
19089 Placement
19090 \end_layout
19091
19092 \end_inset
19093
19094  [
19095 \begin_inset Flex Code
19096 status collapsed
19097
19098 \begin_layout Plain Layout
19099 string
19100 \end_layout
19101
19102 \end_inset
19103
19104 =
19105 \begin_inset Quotes erd
19106 \end_inset
19107
19108
19109 \begin_inset Quotes erd
19110 \end_inset
19111
19112 ] The default placement for the given class of floats.
19113  The string should be as in standard \SpecialChar LaTeX
19114
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 t
19120 \end_layout
19121
19122 \end_inset
19123
19124
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129 b
19130 \end_layout
19131
19132 \end_inset
19133
19134
19135 \begin_inset Flex Code
19136 status collapsed
19137
19138 \begin_layout Plain Layout
19139 p
19140 \end_layout
19141
19142 \end_inset
19143
19144  and 
19145 \begin_inset Flex Code
19146 status collapsed
19147
19148 \begin_layout Plain Layout
19149 h
19150 \end_layout
19151
19152 \end_inset
19153
19154  for top, bottom, page, and here, respectively.
19155 \begin_inset Foot
19156 status collapsed
19157
19158 \begin_layout Plain Layout
19159 Note that the order of these letters in the string is irrelevant, like in
19160  \SpecialChar LaTeX
19161 .
19162 \end_layout
19163
19164 \end_inset
19165
19166  On top of that there is a new type, 
19167 \begin_inset Flex Code
19168 status collapsed
19169
19170 \begin_layout Plain Layout
19171 H
19172 \end_layout
19173
19174 \end_inset
19175
19176 , which does not really correspond to a float, since it means: put it 
19177 \begin_inset Quotes eld
19178 \end_inset
19179
19180 here
19181 \begin_inset Quotes erd
19182 \end_inset
19183
19184  and nowhere else.
19185  Note however that the 
19186 \begin_inset Flex Code
19187 status collapsed
19188
19189 \begin_layout Plain Layout
19190 H
19191 \end_layout
19192
19193 \end_inset
19194
19195  specifier is special and, because of implementation details, cannot be
19196  used in non-built in float types.
19197  If you do not understand what this means, just use 
19198 \begin_inset Quotes eld
19199 \end_inset
19200
19201
19202 \begin_inset Flex Code
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 tbp
19207 \end_layout
19208
19209 \end_inset
19210
19211
19212 \begin_inset Quotes erd
19213 \end_inset
19214
19215 .
19216 \end_layout
19217
19218 \begin_layout Description
19219 \begin_inset Flex Code
19220 status collapsed
19221
19222 \begin_layout Plain Layout
19223 RefPrefix
19224 \end_layout
19225
19226 \end_inset
19227
19228  [
19229 \begin_inset Flex Code
19230 status collapsed
19231
19232 \begin_layout Plain Layout
19233 string
19234 \end_layout
19235
19236 \end_inset
19237
19238 ] The prefix to use when creating labels referring to floats of this type.
19239  This allows the use of formatted references.
19240  Note that you can remove any 
19241 \begin_inset Flex Code
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 RefPrefix
19246 \end_layout
19247
19248 \end_inset
19249
19250  set by a copied style by using the special value 
19251 \begin_inset Quotes eld
19252 \end_inset
19253
19254 OFF
19255 \begin_inset Quotes erd
19256 \end_inset
19257
19258 , which must be all caps.
19259 \change_inserted -712698321 1565605014
19260
19261 \end_layout
19262
19263 \begin_layout Description
19264
19265 \change_inserted -712698321 1565605014
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270
19271 \change_inserted -712698321 1565605014
19272 Requires
19273 \change_unchanged
19274
19275 \end_layout
19276
19277 \end_inset
19278
19279  [
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284
19285 \change_inserted -712698321 1565605014
19286 string
19287 \change_unchanged
19288
19289 \end_layout
19290
19291 \end_inset
19292
19293 ] As with paragraph styles, see 
19294 \begin_inset CommandInset ref
19295 LatexCommand ref
19296 reference "subsec:Paragraph-Styles"
19297
19298 \end_inset
19299
19300 .
19301 \change_unchanged
19302
19303 \end_layout
19304
19305 \begin_layout Description
19306 \begin_inset Flex Code
19307 status collapsed
19308
19309 \begin_layout Plain Layout
19310 Style
19311 \end_layout
19312
19313 \end_inset
19314
19315  [
19316 \begin_inset Flex Code
19317 status collapsed
19318
19319 \begin_layout Plain Layout
19320 string
19321 \end_layout
19322
19323 \end_inset
19324
19325 =
19326 \begin_inset Quotes erd
19327 \end_inset
19328
19329
19330 \begin_inset Quotes erd
19331 \end_inset
19332
19333 ] The style used when defining the float using 
19334 \begin_inset Flex Code
19335 status collapsed
19336
19337 \begin_layout Plain Layout
19338
19339 \backslash
19340 newfloat
19341 \end_layout
19342
19343 \end_inset
19344
19345 .
19346 \end_layout
19347
19348 \begin_layout Description
19349 \begin_inset Flex Code
19350 status collapsed
19351
19352 \begin_layout Plain Layout
19353 Type
19354 \end_layout
19355
19356 \end_inset
19357
19358  [
19359 \begin_inset Flex Code
19360 status collapsed
19361
19362 \begin_layout Plain Layout
19363 string
19364 \end_layout
19365
19366 \end_inset
19367
19368 =
19369 \begin_inset Quotes erd
19370 \end_inset
19371
19372
19373 \begin_inset Quotes erd
19374 \end_inset
19375
19376 ] The 
19377 \begin_inset Quotes eld
19378 \end_inset
19379
19380 type
19381 \begin_inset Quotes erd
19382 \end_inset
19383
19384  of the new class of floats, like program or algorithm.
19385  After the appropriate 
19386 \begin_inset Flex Code
19387 status collapsed
19388
19389 \begin_layout Plain Layout
19390
19391 \backslash
19392 newfloat
19393 \end_layout
19394
19395 \end_inset
19396
19397 , commands such as 
19398 \begin_inset Flex Code
19399 status collapsed
19400
19401 \begin_layout Plain Layout
19402
19403 \backslash
19404 begin{program}
19405 \end_layout
19406
19407 \end_inset
19408
19409  or 
19410 \begin_inset Flex Code
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414
19415 \backslash
19416 end{algorithm*}
19417 \end_layout
19418
19419 \end_inset
19420
19421  will be available.
19422 \end_layout
19423
19424 \begin_layout Description
19425 \begin_inset Flex Code
19426 status collapsed
19427
19428 \begin_layout Plain Layout
19429 UsesFloatPkg
19430 \end_layout
19431
19432 \end_inset
19433
19434  [
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 0
19440 \end_layout
19441
19442 \end_inset
19443
19444 ,
19445 \begin_inset space \thinspace{}
19446 \end_inset
19447
19448
19449 \begin_inset Flex Code
19450 status collapsed
19451
19452 \begin_layout Plain Layout
19453
19454 \emph on
19455 1
19456 \end_layout
19457
19458 \end_inset
19459
19460 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19461  package 
19462 \begin_inset Flex Code
19463 status collapsed
19464
19465 \begin_layout Plain Layout
19466 float
19467 \end_layout
19468
19469 \end_inset
19470
19471 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19472  itself.
19473 \end_layout
19474
19475 \begin_layout Standard
19476 Note that defining a float with type 
19477 \begin_inset Flex Code
19478 status collapsed
19479
19480 \begin_layout Plain Layout
19481
19482 \emph on
19483 type
19484 \end_layout
19485
19486 \end_inset
19487
19488  automatically defines the corresponding counter with name 
19489 \begin_inset Flex Code
19490 status collapsed
19491
19492 \begin_layout Plain Layout
19493
19494 \emph on
19495 type
19496 \end_layout
19497
19498 \end_inset
19499
19500 .
19501 \end_layout
19502
19503 \begin_layout Subsection
19504 Flex insets and InsetLayout
19505 \begin_inset CommandInset label
19506 LatexCommand label
19507 name "subsec:Flex-insets-and"
19508
19509 \end_inset
19510
19511
19512 \end_layout
19513
19514 \begin_layout Standard
19515 Flex insets come in 
19516 \change_deleted 5863208 1594239511
19517 three
19518 \change_inserted 5863208 1594239512
19519 two
19520 \change_unchanged
19521  different kinds: 
19522 \end_layout
19523
19524 \begin_layout Itemize
19525 character style (
19526 \begin_inset Flex Code
19527 status collapsed
19528
19529 \begin_layout Plain Layout
19530 CharStyle
19531 \end_layout
19532
19533 \end_inset
19534
19535 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19536  commands as 
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541
19542 \backslash
19543 noun
19544 \end_layout
19545
19546 \end_inset
19547
19548  and 
19549 \begin_inset Flex Code
19550 status collapsed
19551
19552 \begin_layout Plain Layout
19553
19554 \backslash
19555 code
19556 \end_layout
19557
19558 \end_inset
19559
19560 .
19561 \end_layout
19562
19563 \begin_layout Itemize
19564 user custom (
19565 \begin_inset Flex Code
19566 status collapsed
19567
19568 \begin_layout Plain Layout
19569 Custom
19570 \end_layout
19571
19572 \end_inset
19573
19574 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19575  code,
19576  footnote, and the like.
19577  An obvious example is an endnote inset, which is defined in the 
19578 \begin_inset Flex Code
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 endnote
19583 \end_layout
19584
19585 \end_inset
19586
19587  module.
19588 \end_layout
19589
19590 \begin_layout Itemize
19591
19592 \change_deleted 5863208 1594239528
19593 XML elements (
19594 \begin_inset Flex Code
19595 status collapsed
19596
19597 \begin_layout Plain Layout
19598 Element
19599 \end_layout
19600
19601 \end_inset
19602
19603 ): For use with DocBook classes.
19604 \change_unchanged
19605
19606 \end_layout
19607
19608 \begin_layout Standard
19609 Flex insets are defined using the 
19610 \begin_inset Flex Code
19611 status collapsed
19612
19613 \begin_layout Plain Layout
19614 InsetLayout
19615 \end_layout
19616
19617 \end_inset
19618
19619  tag, which shall be explained in a moment.
19620 \end_layout
19621
19622 \begin_layout Standard
19623 The 
19624 \begin_inset Flex Code
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628 InsetLayout
19629 \end_layout
19630
19631 \end_inset
19632
19633  tag also serves another function: It can be used to customize the general
19634  layout of many different types of insets.
19635  Currently, 
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 InsetLayout
19641 \end_layout
19642
19643 \end_inset
19644
19645  can be used to customize the layout parameters for footnotes, marginal
19646  notes, note insets, \SpecialChar TeX
19647  code (ERT) insets, branches, listings, indexes, boxes,
19648  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19649 \end_layout
19650
19651 \begin_layout Standard
19652 The 
19653 \begin_inset Flex Code
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657 InsetLayout
19658 \end_layout
19659
19660 \end_inset
19661
19662  definition must begin with a line of the form:
19663 \end_layout
19664
19665 \begin_layout LyX-Code
19666 InsetLayout <type>
19667 \end_layout
19668
19669 \begin_layout Standard
19670 Here 
19671 \begin_inset Flex Code
19672 status collapsed
19673
19674 \begin_layout Plain Layout
19675 <Type>
19676 \end_layout
19677
19678 \end_inset
19679
19680  indicates the inset whose layout is being defined, and here there are four
19681  cases.
19682 \end_layout
19683
19684 \begin_layout Enumerate
19685 The layout for a pre-existing inset is being modified.
19686  In this case, can be 
19687 \begin_inset Flex Code
19688 status collapsed
19689
19690 \begin_layout Plain Layout
19691 <Type>
19692 \end_layout
19693
19694 \end_inset
19695
19696  any one of the following: 
19697 \begin_inset Flex Code
19698 status collapsed
19699
19700 \begin_layout Plain Layout
19701 Algorithm
19702 \end_layout
19703
19704 \end_inset
19705
19706
19707 \begin_inset Flex Code
19708 status collapsed
19709
19710 \begin_layout Plain Layout
19711 Branch
19712 \end_layout
19713
19714 \end_inset
19715
19716
19717 \begin_inset Flex Code
19718 status collapsed
19719
19720 \begin_layout Plain Layout
19721 Box
19722 \end_layout
19723
19724 \end_inset
19725
19726
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731 Box:shaded
19732 \end_layout
19733
19734 \end_inset
19735
19736
19737 \begin_inset Flex Code
19738 status collapsed
19739
19740 \begin_layout Plain Layout
19741 Caption:Standard
19742 \end_layout
19743
19744 \end_inset
19745
19746
19747 \begin_inset Flex Code
19748 status collapsed
19749
19750 \begin_layout Plain Layout
19751 ERT
19752 \end_layout
19753
19754 \end_inset
19755
19756
19757 \begin_inset Flex Code
19758 status collapsed
19759
19760 \begin_layout Plain Layout
19761 Figure
19762 \end_layout
19763
19764 \end_inset
19765
19766
19767 \begin_inset Flex Code
19768 status collapsed
19769
19770 \begin_layout Plain Layout
19771 Foot
19772 \end_layout
19773
19774 \end_inset
19775
19776
19777 \begin_inset Flex Code
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781 Index
19782 \end_layout
19783
19784 \end_inset
19785
19786
19787 \begin_inset Flex Code
19788 status collapsed
19789
19790 \begin_layout Plain Layout
19791 Info
19792 \end_layout
19793
19794 \end_inset
19795
19796
19797 \begin_inset Flex Code
19798 status collapsed
19799
19800 \begin_layout Plain Layout
19801 Info:menu
19802 \end_layout
19803
19804 \end_inset
19805
19806
19807 \begin_inset Flex Code
19808 status collapsed
19809
19810 \begin_layout Plain Layout
19811 Info:shortcut
19812 \end_layout
19813
19814 \end_inset
19815
19816
19817 \begin_inset Flex Code
19818 status collapsed
19819
19820 \begin_layout Plain Layout
19821 Info:shortcuts
19822 \end_layout
19823
19824 \end_inset
19825
19826
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 Listings
19832 \end_layout
19833
19834 \end_inset
19835
19836
19837 \begin_inset Flex Code
19838 status collapsed
19839
19840 \begin_layout Plain Layout
19841 Marginal
19842 \end_layout
19843
19844 \end_inset
19845
19846
19847 \begin_inset Flex Code
19848 status collapsed
19849
19850 \begin_layout Plain Layout
19851 Note:Comment
19852 \end_layout
19853
19854 \end_inset
19855
19856
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 Note:Note
19862 \end_layout
19863
19864 \end_inset
19865
19866
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871 Note:Greyedout
19872 \end_layout
19873
19874 \end_inset
19875
19876
19877 \begin_inset Flex Code
19878 status collapsed
19879
19880 \begin_layout Plain Layout
19881 Table
19882 \end_layout
19883
19884 \end_inset
19885
19886 , or 
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 URL
19892 \end_layout
19893
19894 \end_inset
19895
19896 .
19897 \end_layout
19898
19899 \begin_layout Enumerate
19900 The layout for a Flex inset is being defined.
19901  In this case, 
19902 \begin_inset Flex Code
19903 status collapsed
19904
19905 \begin_layout Plain Layout
19906 <Type>
19907 \end_layout
19908
19909 \end_inset
19910
19911  must be of the form 
19912 \begin_inset Quotes eld
19913 \end_inset
19914
19915
19916 \begin_inset Flex Code
19917 status collapsed
19918
19919 \begin_layout Plain Layout
19920 Flex:<name>
19921 \end_layout
19922
19923 \end_inset
19924
19925
19926 \begin_inset Quotes erd
19927 \end_inset
19928
19929 , where 
19930 \begin_inset Flex Code
19931 status collapsed
19932
19933 \begin_layout Plain Layout
19934 name
19935 \end_layout
19936
19937 \end_inset
19938
19939  may be any valid identifier not used by a pre-existing Flex inset.
19940  The identifier may include spaces, but in that case the whole thing must
19941  be wrapped in quotes.
19942  Note that the definition of a flex inset 
19943 \emph on
19944 must 
19945 \emph default
19946 also include a 
19947 \begin_inset Flex Code
19948 status collapsed
19949
19950 \begin_layout Plain Layout
19951 LyXType
19952 \end_layout
19953
19954 \end_inset
19955
19956  entry, declaring which type of inset it defines.
19957 \end_layout
19958
19959 \begin_layout Enumerate
19960 The layout for user specific branch is being defined.
19961  In this case, 
19962 \begin_inset Flex Code
19963 status collapsed
19964
19965 \begin_layout Plain Layout
19966 <Type>
19967 \end_layout
19968
19969 \end_inset
19970
19971  must be of the form 
19972 \begin_inset Quotes eld
19973 \end_inset
19974
19975
19976 \begin_inset Flex Code
19977 status collapsed
19978
19979 \begin_layout Plain Layout
19980 Branch:<name>
19981 \end_layout
19982
19983 \end_inset
19984
19985
19986 \begin_inset Quotes erd
19987 \end_inset
19988
19989 , where 
19990 \begin_inset Flex Code
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 name
19995 \end_layout
19996
19997 \end_inset
19998
19999  may be any valid identifier of branch defined in user's document.
20000  The identifier may include spaces, but in that case the whole thing must
20001  be wrapped in quotes.
20002  The main purpose of this feature is to allow \SpecialChar LaTeX
20003  wrapping around specific
20004  branches as user needs.
20005 \end_layout
20006
20007 \begin_layout Enumerate
20008 The layout of a user (or class) specific caption is being defined.
20009  In this case, 
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014 <Type>
20015 \end_layout
20016
20017 \end_inset
20018
20019  must be of the form 
20020 \begin_inset Quotes eld
20021 \end_inset
20022
20023
20024 \begin_inset Flex Code
20025 status collapsed
20026
20027 \begin_layout Plain Layout
20028 Caption:<name>
20029 \end_layout
20030
20031 \end_inset
20032
20033
20034 \begin_inset Quotes erd
20035 \end_inset
20036
20037 , where 
20038 \begin_inset Flex Code
20039 status collapsed
20040
20041 \begin_layout Plain Layout
20042 name
20043 \end_layout
20044
20045 \end_inset
20046
20047  specifies the name of the caption as it appears in the menu.
20048  Have a look at the standard caption (
20049 \begin_inset Flex Code
20050 status collapsed
20051
20052 \begin_layout Plain Layout
20053 Caption:Standard
20054 \end_layout
20055
20056 \end_inset
20057
20058 ), the specific captions of the KOMA-Script classes (
20059 \begin_inset Flex Code
20060 status collapsed
20061
20062 \begin_layout Plain Layout
20063 Caption:Above
20064 \end_layout
20065
20066 \end_inset
20067
20068
20069 \begin_inset Flex Code
20070 status collapsed
20071
20072 \begin_layout Plain Layout
20073 Caption:Below
20074 \end_layout
20075
20076 \end_inset
20077
20078 ) or the module 
20079 \family sans
20080 Multilingual
20081 \begin_inset space ~
20082 \end_inset
20083
20084 Captions
20085 \begin_inset Newline linebreak
20086 \end_inset
20087
20088
20089 \family default
20090 (
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 Caption:Bicaption
20096 \end_layout
20097
20098 \end_inset
20099
20100 ) for applications.
20101 \end_layout
20102
20103 \begin_layout Standard
20104 The 
20105 \begin_inset Flex Code
20106 status collapsed
20107
20108 \begin_layout Plain Layout
20109 InsetLayout
20110 \end_layout
20111
20112 \end_inset
20113
20114  definition can contain the following entries:
20115 \end_layout
20116
20117 \begin_layout Description
20118 \begin_inset Flex Code
20119 status collapsed
20120
20121 \begin_layout Plain Layout
20122 AddToToc
20123 \end_layout
20124
20125 \end_inset
20126
20127  [
20128 \begin_inset Flex Code
20129 status collapsed
20130
20131 \begin_layout Plain Layout
20132 string
20133 \end_layout
20134
20135 \end_inset
20136
20137 =""] This inset will appear in the table of contents of the given type.
20138  An empty string disables.
20139  See also the OutlinerName and the IsTocCaption commands.
20140  This is only implemented for Flex insets.
20141  Default: disabled.
20142 \end_layout
20143
20144 \begin_layout Description
20145 \begin_inset Flex Code
20146 status collapsed
20147
20148 \begin_layout Plain Layout
20149 Argument
20150 \end_layout
20151
20152 \end_inset
20153
20154  [
20155 \begin_inset Flex Code
20156 status collapsed
20157
20158 \begin_layout Plain Layout
20159 int
20160 \end_layout
20161
20162 \end_inset
20163
20164 ] Defines argument number of a command\SpecialChar breakableslash
20165 environment associated with the current
20166  layout.
20167  The definition must end with 
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 EndArgument
20173 \end_layout
20174
20175 \end_inset
20176
20177 .
20178  See 
20179 \change_inserted -584632292 1615846847
20180
20181 \begin_inset CommandInset ref
20182 LatexCommand ref
20183 reference "subsec:Arguments"
20184 plural "false"
20185 caps "false"
20186 noprefix "false"
20187
20188 \end_inset
20189
20190
20191 \change_deleted -584632292 1615846847
20192
20193 \begin_inset CommandInset ref
20194 LatexCommand ref
20195 reference "subsec:Paragraph-Styles"
20196
20197 \end_inset
20198
20199
20200 \change_unchanged
20201  for 
20202 \change_deleted -584632292 1615846902
20203 details
20204 \change_inserted -584632292 1615846906
20205 more information
20206 \change_unchanged
20207 .
20208 \end_layout
20209
20210 \begin_layout Description
20211 \begin_inset Flex Code
20212 status collapsed
20213
20214 \begin_layout Plain Layout
20215 BabelPreamble
20216 \end_layout
20217
20218 \end_inset
20219
20220  Preamble for changing language commands; see 
20221 \begin_inset CommandInset ref
20222 LatexCommand ref
20223 reference "subsec:I18n"
20224
20225 \end_inset
20226
20227 .
20228 \end_layout
20229
20230 \begin_layout Description
20231 \begin_inset Flex Code
20232 status collapsed
20233
20234 \begin_layout Plain Layout
20235 BgColor
20236 \end_layout
20237
20238 \end_inset
20239
20240  [
20241 \begin_inset Flex Code
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 <name>
20246 \end_layout
20247
20248 \end_inset
20249
20250 ] The color for the inset's background.
20251  See 
20252 \begin_inset CommandInset ref
20253 LatexCommand ref
20254 reference "chap:Names-of-colors"
20255
20256 \end_inset
20257
20258  for a list of the available color names.
20259 \end_layout
20260
20261 \begin_layout Description
20262 \begin_inset Flex Code
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266 ContentAsLabel
20267 \end_layout
20268
20269 \end_inset
20270
20271  [
20272 \begin_inset Flex Code
20273 status collapsed
20274
20275 \begin_layout Plain Layout
20276
20277 \emph on
20278 0
20279 \end_layout
20280
20281 \end_inset
20282
20283 ,
20284 \begin_inset space \thinspace{}
20285 \end_inset
20286
20287
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 1
20293 \end_layout
20294
20295 \end_inset
20296
20297 ] Whether to use the content of the inset as the label, when the inset is
20298  closed.
20299  Default is false.
20300 \end_layout
20301
20302 \begin_layout Description
20303 \begin_inset Flex Code
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307 CopyStyle
20308 \end_layout
20309
20310 \end_inset
20311
20312  [
20313 \begin_inset Flex Code
20314 status collapsed
20315
20316 \begin_layout Plain Layout
20317 <type>
20318 \end_layout
20319
20320 \end_inset
20321
20322 ] As with paragraph styles, see 
20323 \begin_inset CommandInset ref
20324 LatexCommand ref
20325 reference "subsec:Paragraph-Styles"
20326
20327 \end_inset
20328
20329 .
20330  Note that you need to specify the complete type, e.
20331 \begin_inset space \thinspace{}
20332 \end_inset
20333
20334 g.
20335 \begin_inset space ~
20336 \end_inset
20337
20338
20339 \begin_inset Flex Code
20340 status collapsed
20341
20342 \begin_layout Plain Layout
20343 CopyStyle Flex:<name>
20344 \end_layout
20345
20346 \end_inset
20347
20348 .
20349 \end_layout
20350
20351 \begin_layout Description
20352 \begin_inset Flex Code
20353 status collapsed
20354
20355 \begin_layout Plain Layout
20356 CustomPars
20357 \end_layout
20358
20359 \end_inset
20360
20361  [
20362 \begin_inset Flex Code
20363 status collapsed
20364
20365 \begin_layout Plain Layout
20366
20367 \emph on
20368 0
20369 \end_layout
20370
20371 \end_inset
20372
20373 ,
20374 \begin_inset space \thinspace{}
20375 \end_inset
20376
20377
20378 \begin_inset Flex Code
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382 1
20383 \end_layout
20384
20385 \end_inset
20386
20387 ] Indicates whether the user may employ the Paragraph Settings dialog to
20388  customize the paragraph.
20389 \end_layout
20390
20391 \begin_layout Description
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396 Decoration
20397 \end_layout
20398
20399 \end_inset
20400
20401  can be 
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406 Classic
20407 \end_layout
20408
20409 \end_inset
20410
20411
20412 \begin_inset Flex Code
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 Minimalistic
20417 \end_layout
20418
20419 \end_inset
20420
20421 , or 
20422 \begin_inset Flex Code
20423 status collapsed
20424
20425 \begin_layout Plain Layout
20426 Conglomerate
20427 \end_layout
20428
20429 \end_inset
20430
20431 , describing the rendering style used for the inset's frame and buttons.
20432  Footnotes generally use 
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 Classic
20438 \end_layout
20439
20440 \end_inset
20441
20442 , ERT insets generally 
20443 \begin_inset Flex Code
20444 status collapsed
20445
20446 \begin_layout Plain Layout
20447 Minimalistic
20448 \end_layout
20449
20450 \end_inset
20451
20452 , and character styles 
20453 \begin_inset Flex Code
20454 status collapsed
20455
20456 \begin_layout Plain Layout
20457 Conglomerate
20458 \end_layout
20459
20460 \end_inset
20461
20462 .
20463 \end_layout
20464
20465 \begin_layout Description
20466 \begin_inset Flex Code
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470 Display
20471 \end_layout
20472
20473 \end_inset
20474
20475  [
20476 \begin_inset Flex Code
20477 status collapsed
20478
20479 \begin_layout Plain Layout
20480 0
20481 \end_layout
20482
20483 \end_inset
20484
20485 ,
20486 \emph on
20487
20488 \begin_inset space \thinspace{}
20489 \end_inset
20490
20491
20492 \emph default
20493
20494 \begin_inset Flex Code
20495 status collapsed
20496
20497 \begin_layout Plain Layout
20498
20499 \emph on
20500 1
20501 \end_layout
20502
20503 \end_inset
20504
20505 ] Only useful if 
20506 \begin_inset Flex Code
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 LatexType
20511 \end_layout
20512
20513 \end_inset
20514
20515  is 
20516 \begin_inset Flex Code
20517 status collapsed
20518
20519 \begin_layout Plain Layout
20520 Environment
20521 \end_layout
20522
20523 \end_inset
20524
20525 .
20526  Indicates whether the environment will stand on its own in the output or
20527  will appear inline with the surrounding text.
20528  If set to false, it is supposed that the \SpecialChar LaTeX
20529  environment ignores white space
20530  (including one newline character) after the 
20531 \begin_inset Flex Code
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535
20536 \backslash
20537 begin{
20538 \emph on
20539 LatexName
20540 \emph default
20541 }
20542 \end_layout
20543
20544 \end_inset
20545
20546  and 
20547 \begin_inset Flex Code
20548 status collapsed
20549
20550 \begin_layout Plain Layout
20551
20552 \backslash
20553 end{
20554 \emph on
20555 LatexName
20556 \emph default
20557 }
20558 \end_layout
20559
20560 \end_inset
20561
20562  tags.
20563  Default is true.
20564 \change_inserted 731793113 1538674858
20565
20566 \end_layout
20567
20568 \begin_layout Description
20569
20570 \change_inserted 731793113 1538674891
20571 \begin_inset Flex Code
20572 status open
20573
20574 \begin_layout Plain Layout
20575
20576 \change_inserted 731793113 1538674863
20577 EditExternal
20578 \change_unchanged
20579
20580 \end_layout
20581
20582 \end_inset
20583
20584  [
20585 \emph on
20586 0
20587 \emph default
20588 ,1] Allow the contents of the inset to be edited externally (using whatever
20589  editor is defined for the document's output format).
20590 \change_unchanged
20591
20592 \end_layout
20593
20594 \begin_layout Description
20595 \begin_inset Flex Code
20596 status collapsed
20597
20598 \begin_layout Plain Layout
20599 End
20600 \end_layout
20601
20602 \end_inset
20603
20604  Required at the end of the 
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609 InsetLayout
20610 \end_layout
20611
20612 \end_inset
20613
20614  declarations.
20615 \end_layout
20616
20617 \begin_layout Description
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 Font
20623 \end_layout
20624
20625 \end_inset
20626
20627  The font used for both the text body 
20628 \emph on
20629 and
20630 \emph default
20631  the label.
20632  See 
20633 \begin_inset CommandInset ref
20634 LatexCommand ref
20635 reference "subsec:Font-description"
20636
20637 \end_inset
20638
20639 .
20640  Note that defining this font automatically defines the 
20641 \begin_inset Flex Code
20642 status collapsed
20643
20644 \begin_layout Plain Layout
20645 LabelFont
20646 \end_layout
20647
20648 \end_inset
20649
20650  to the same value, so define this first and define 
20651 \begin_inset Flex Code
20652 status collapsed
20653
20654 \begin_layout Plain Layout
20655 LabelFont
20656 \end_layout
20657
20658 \end_inset
20659
20660  later if you want them to be different.
20661 \end_layout
20662
20663 \begin_layout Description
20664 \begin_inset Flex Code
20665 status collapsed
20666
20667 \begin_layout Plain Layout
20668 FixedWidthPreambleEncoding
20669 \end_layout
20670
20671 \end_inset
20672
20673  [
20674 \begin_inset Flex Code
20675 status collapsed
20676
20677 \begin_layout Plain Layout
20678
20679 \emph on
20680 0
20681 \end_layout
20682
20683 \end_inset
20684
20685 ,
20686 \begin_inset space \thinspace{}
20687 \end_inset
20688
20689
20690 \begin_inset Flex Code
20691 status collapsed
20692
20693 \begin_layout Plain Layout
20694 1
20695 \end_layout
20696
20697 \end_inset
20698
20699 ] Force a fixed width encoding for the translated contents of 
20700 \begin_inset Flex Code
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704 BabelPreamble
20705 \end_layout
20706
20707 \end_inset
20708
20709  and 
20710 \begin_inset Flex Code
20711 status collapsed
20712
20713 \begin_layout Plain Layout
20714 LangPreamble
20715 \end_layout
20716
20717 \end_inset
20718
20719  code generated by this layout.
20720  This is needed for special \SpecialChar LaTeX
20721 -packages like 
20722 \family typewriter
20723 listings
20724 \family default
20725  that do not work with variable width encodings such as 
20726 \family sans
20727 utf8
20728 \family default
20729 .
20730  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20731  backends such as Xe\SpecialChar TeX
20732  or
20733  Lua\SpecialChar TeX
20734  are used.
20735 \end_layout
20736
20737 \begin_layout Description
20738 \begin_inset Flex Code
20739 status collapsed
20740
20741 \begin_layout Plain Layout
20742 ForceLocalFontSwitch
20743 \end_layout
20744
20745 \end_inset
20746
20747  [
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752
20753 \emph on
20754 0
20755 \end_layout
20756
20757 \end_inset
20758
20759 ,
20760 \begin_inset space \thinspace{}
20761 \end_inset
20762
20763
20764 \begin_inset Flex Code
20765 status collapsed
20766
20767 \begin_layout Plain Layout
20768 1
20769 \end_layout
20770
20771 \end_inset
20772
20773 ] When using babel, always use a local font switch (
20774 \begin_inset Flex Code
20775 status collapsed
20776
20777 \begin_layout Plain Layout
20778
20779 \backslash
20780 foreignlanguage
20781 \end_layout
20782
20783 \end_inset
20784
20785 ), never a global one (such as 
20786 \begin_inset Flex Code
20787 status collapsed
20788
20789 \begin_layout Plain Layout
20790
20791 \backslash
20792 selectlanguage
20793 \end_layout
20794
20795 \end_inset
20796
20797 ).
20798 \end_layout
20799
20800 \begin_layout Description
20801 \begin_inset Flex Code
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805 ForceLTR
20806 \end_layout
20807
20808 \end_inset
20809
20810  [
20811 \begin_inset Flex Code
20812 status collapsed
20813
20814 \begin_layout Plain Layout
20815
20816 \emph on
20817 0
20818 \end_layout
20819
20820 \end_inset
20821
20822 ,
20823 \begin_inset space \thinspace{}
20824 \end_inset
20825
20826
20827 \begin_inset Flex Code
20828 status collapsed
20829
20830 \begin_layout Plain Layout
20831 1
20832 \end_layout
20833
20834 \end_inset
20835
20836 ] Force the 
20837 \begin_inset Quotes eld
20838 \end_inset
20839
20840 latex
20841 \begin_inset Quotes erd
20842 \end_inset
20843
20844  language, leading to Left-to-Right (Latin) output, e.
20845 \begin_inset space \thinspace{}
20846 \end_inset
20847
20848 g.
20849 \begin_inset space \space{}
20850 \end_inset
20851
20852 in \SpecialChar TeX
20853  code or URL.
20854  A kludge.
20855 \end_layout
20856
20857 \begin_layout Description
20858 \begin_inset Flex Code
20859 status collapsed
20860
20861 \begin_layout Plain Layout
20862 ForceOwnlines
20863 \end_layout
20864
20865 \end_inset
20866
20867  [
20868 \begin_inset Flex Code
20869 status collapsed
20870
20871 \begin_layout Plain Layout
20872
20873 \emph on
20874 0
20875 \end_layout
20876
20877 \end_inset
20878
20879 ,
20880 \begin_inset space \thinspace{}
20881 \end_inset
20882
20883
20884 \begin_inset Flex Code
20885 status collapsed
20886
20887 \begin_layout Plain Layout
20888 1
20889 \end_layout
20890
20891 \end_inset
20892
20893 ] Force a line break in the \SpecialChar LaTeX
20894  output before the inset starts and after the
20895  inset ends.
20896  This assures the inset itself is output on its own lines, for parsing purposes.
20897 \end_layout
20898
20899 \begin_layout Description
20900 \begin_inset Flex Code
20901 status collapsed
20902
20903 \begin_layout Plain Layout
20904 ForcePlain
20905 \end_layout
20906
20907 \end_inset
20908
20909  [
20910 \begin_inset Flex Code
20911 status collapsed
20912
20913 \begin_layout Plain Layout
20914
20915 \emph on
20916 0
20917 \end_layout
20918
20919 \end_inset
20920
20921 ,
20922 \begin_inset space \thinspace{}
20923 \end_inset
20924
20925
20926 \begin_inset Flex Code
20927 status collapsed
20928
20929 \begin_layout Plain Layout
20930 1
20931 \end_layout
20932
20933 \end_inset
20934
20935 ] Indicates whether the 
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940 PlainLayout
20941 \end_layout
20942
20943 \end_inset
20944
20945  should be used or, instead, the user can change the paragraph style used
20946  in the inset.
20947  Default is false.
20948 \end_layout
20949
20950 \begin_layout Description
20951 \begin_inset Flex Code
20952 status collapsed
20953
20954 \begin_layout Plain Layout
20955 FreeSpacing
20956 \end_layout
20957
20958 \end_inset
20959
20960  [
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965
20966 \emph on
20967 0
20968 \end_layout
20969
20970 \end_inset
20971
20972 ,
20973 \begin_inset space \thinspace{}
20974 \end_inset
20975
20976
20977 \begin_inset Flex Code
20978 status collapsed
20979
20980 \begin_layout Plain Layout
20981 1
20982 \end_layout
20983
20984 \end_inset
20985
20986 ] As with paragraph styles, see 
20987 \begin_inset CommandInset ref
20988 LatexCommand ref
20989 reference "subsec:Paragraph-Styles"
20990
20991 \end_inset
20992
20993 .
20994 \end_layout
20995
20996 \begin_layout Description
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 HTML*
21002 \end_layout
21003
21004 \end_inset
21005
21006  These tags control the XHTML output.
21007  See 
21008 \begin_inset CommandInset ref
21009 LatexCommand ref
21010 reference "sec:Tags-for-XHTML"
21011
21012 \end_inset
21013
21014 .
21015 \end_layout
21016
21017 \begin_layout Description
21018 \begin_inset Flex Code
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022 InToc
21023 \end_layout
21024
21025 \end_inset
21026
21027  [
21028 \begin_inset Flex Code
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032
21033 \emph on
21034 0
21035 \end_layout
21036
21037 \end_inset
21038
21039 ,
21040 \begin_inset space \thinspace{}
21041 \end_inset
21042
21043
21044 \begin_inset Flex Code
21045 status collapsed
21046
21047 \begin_layout Plain Layout
21048 1
21049 \end_layout
21050
21051 \end_inset
21052
21053 ] Whether to include the contents of this inset in the strings generated
21054  for the `Outline' pane for all table of contents, regardless of the AddToToc
21055  setting.
21056  One would not, for example, want the content of a footnote in a section
21057  header to be included in the TOC displayed in the outline, but one would
21058  normally want the content of a character style displayed.
21059  Default is false: not to include.
21060 \end_layout
21061
21062 \begin_layout Description
21063 \begin_inset Flex Code
21064 status collapsed
21065
21066 \begin_layout Plain Layout
21067 IsTocCaption
21068 \end_layout
21069
21070 \end_inset
21071
21072  [
21073 \begin_inset Flex Code
21074 status collapsed
21075
21076 \begin_layout Plain Layout
21077
21078 \emph on
21079 0
21080 \end_layout
21081
21082 \end_inset
21083
21084 ,
21085 \begin_inset space \thinspace{}
21086 \end_inset
21087
21088
21089 \begin_inset Flex Code
21090 status collapsed
21091
21092 \begin_layout Plain Layout
21093 1
21094 \end_layout
21095
21096 \end_inset
21097
21098 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
21099  of its contents in its item in the table of contents.
21100  Otherwise, only the label appears.
21101 \end_layout
21102
21103 \begin_layout Description
21104 \begin_inset Flex Code
21105 status collapsed
21106
21107 \begin_layout Plain Layout
21108 KeepEmpty
21109 \end_layout
21110
21111 \end_inset
21112
21113  [
21114 \emph on
21115
21116 \begin_inset Flex Code
21117 status collapsed
21118
21119 \begin_layout Plain Layout
21120 0
21121 \end_layout
21122
21123 \end_inset
21124
21125
21126 \emph default
21127 ,
21128 \begin_inset space \thinspace{}
21129 \end_inset
21130
21131
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 1
21137 \end_layout
21138
21139 \end_inset
21140
21141 ] As with paragraph styles, see 
21142 \begin_inset CommandInset ref
21143 LatexCommand ref
21144 reference "subsec:Paragraph-Styles"
21145
21146 \end_inset
21147
21148 .
21149 \end_layout
21150
21151 \begin_layout Description
21152 \begin_inset Flex Code
21153 status collapsed
21154
21155 \begin_layout Plain Layout
21156 LabelFont
21157 \end_layout
21158
21159 \end_inset
21160
21161  The font used for the label.
21162  See 
21163 \begin_inset CommandInset ref
21164 LatexCommand ref
21165 reference "subsec:Font-description"
21166
21167 \end_inset
21168
21169 .
21170  Note that this definition can never appear before 
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175 Font
21176 \end_layout
21177
21178 \end_inset
21179
21180 , lest it be ineffective.
21181 \end_layout
21182
21183 \begin_layout Description
21184 \begin_inset Flex Code
21185 status collapsed
21186
21187 \begin_layout Plain Layout
21188 LabelString
21189 \end_layout
21190
21191 \end_inset
21192
21193  [
21194 \begin_inset Flex Code
21195 status collapsed
21196
21197 \begin_layout Plain Layout
21198 string
21199 \end_layout
21200
21201 \end_inset
21202
21203 =
21204 \begin_inset Quotes erd
21205 \end_inset
21206
21207
21208 \begin_inset Quotes erd
21209 \end_inset
21210
21211 ] What will be displayed on the button or elsewhere as the inset label.
21212  Some inset types (
21213 \begin_inset Flex Code
21214 status collapsed
21215
21216 \begin_layout Plain Layout
21217 \SpecialChar TeX
21218  code
21219 \end_layout
21220
21221 \end_inset
21222
21223  and 
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 Branch
21229 \end_layout
21230
21231 \end_inset
21232
21233 ) modify this label on the fly.
21234 \end_layout
21235
21236 \begin_layout Description
21237 \begin_inset Flex Code
21238 status collapsed
21239
21240 \begin_layout Plain Layout
21241 LangPreamble
21242 \end_layout
21243
21244 \end_inset
21245
21246  Language dependent preamble; see 
21247 \begin_inset CommandInset ref
21248 LatexCommand ref
21249 reference "subsec:I18n"
21250
21251 \end_inset
21252
21253 .
21254 \end_layout
21255
21256 \begin_layout Description
21257 \begin_inset Flex Code
21258 status collapsed
21259
21260 \begin_layout Plain Layout
21261 LatexName
21262 \end_layout
21263
21264 \end_inset
21265
21266  [
21267 \begin_inset Flex Code
21268 status collapsed
21269
21270 \begin_layout Plain Layout
21271 <name>
21272 \end_layout
21273
21274 \end_inset
21275
21276 ] The name of the corresponding \SpecialChar LaTeX
21277  stuff.
21278  Either the environment or command name.
21279 \end_layout
21280
21281 \begin_layout Description
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 LatexParam
21287 \end_layout
21288
21289 \end_inset
21290
21291  [
21292 \begin_inset Flex Code
21293 status collapsed
21294
21295 \begin_layout Plain Layout
21296 <parameter>
21297 \end_layout
21298
21299 \end_inset
21300
21301 ] The optional parameter for the corresponding 
21302 \begin_inset Flex Code
21303 status collapsed
21304
21305 \begin_layout Plain Layout
21306 LatexName
21307 \end_layout
21308
21309 \end_inset
21310
21311  stuff, including possible bracket pairs like 
21312 \begin_inset Flex Code
21313 status collapsed
21314
21315 \begin_layout Plain Layout
21316 []
21317 \end_layout
21318
21319 \end_inset
21320
21321 .
21322  This parameter cannot be changed from within \SpecialChar LyX
21323  (use 
21324 \begin_inset Flex Code
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328 Argument
21329 \end_layout
21330
21331 \end_inset
21332
21333  for customizable parameters).
21334  It will be output as is after all \SpecialChar LaTeX
21335  
21336 \begin_inset Flex Code
21337 status collapsed
21338
21339 \begin_layout Plain Layout
21340 Argument
21341 \end_layout
21342
21343 \end_inset
21344
21345 s.
21346 \end_layout
21347
21348 \begin_layout Description
21349 \begin_inset Flex Code
21350 status collapsed
21351
21352 \begin_layout Plain Layout
21353 LatexType
21354 \end_layout
21355
21356 \end_inset
21357
21358  [
21359 \begin_inset Flex Code
21360 status collapsed
21361
21362 \begin_layout Plain Layout
21363 Command, Environment, None
21364 \end_layout
21365
21366 \end_inset
21367
21368 ] How the style should be translated into \SpecialChar LaTeX
21369 .
21370 \begin_inset Foot
21371 status collapsed
21372
21373 \begin_layout Plain Layout
21374 \begin_inset Flex Code
21375 status collapsed
21376
21377 \begin_layout Plain Layout
21378 LatexType
21379 \end_layout
21380
21381 \end_inset
21382
21383  is perhaps a bit misleading, since these rules apply to SGML classes too.
21384  Visit the SGML class files for specific examples.
21385 \end_layout
21386
21387 \end_inset
21388
21389
21390 \end_layout
21391
21392 \begin_deeper
21393 \begin_layout Description
21394 \begin_inset Flex Code
21395 status collapsed
21396
21397 \begin_layout Plain Layout
21398 None
21399 \end_layout
21400
21401 \end_inset
21402
21403  means nothing special
21404 \end_layout
21405
21406 \begin_layout Description
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411 Command
21412 \end_layout
21413
21414 \end_inset
21415
21416  means 
21417 \begin_inset Flex Code
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421
21422 \backslash
21423
21424 \emph on
21425 LatexName
21426 \emph default
21427 {\SpecialChar ldots
21428 }
21429 \end_layout
21430
21431 \end_inset
21432
21433
21434 \end_layout
21435
21436 \begin_layout Description
21437 \begin_inset Flex Code
21438 status collapsed
21439
21440 \begin_layout Plain Layout
21441 Environment
21442 \end_layout
21443
21444 \end_inset
21445
21446  means 
21447 \begin_inset Flex Code
21448 status collapsed
21449
21450 \begin_layout Plain Layout
21451
21452 \backslash
21453 begin{
21454 \emph on
21455 LatexName
21456 \emph default
21457 }\SpecialChar ldots
21458
21459 \backslash
21460 end{
21461 \emph on
21462 LatexName
21463 \emph default
21464 }
21465 \end_layout
21466
21467 \end_inset
21468
21469
21470 \end_layout
21471
21472 \begin_layout Standard
21473 Putting the last few things together, the \SpecialChar LaTeX
21474  output will be either: 
21475 \end_layout
21476
21477 \begin_layout LyX-Code
21478
21479 \backslash
21480 LatexName[LatexParam]{\SpecialChar ldots
21481 }
21482 \end_layout
21483
21484 \begin_layout Standard
21485 or: 
21486 \end_layout
21487
21488 \begin_layout LyX-Code
21489
21490 \backslash
21491 begin{LatexName}[LatexParam] \SpecialChar ldots
21492  
21493 \backslash
21494 end{LatexName}
21495 \end_layout
21496
21497 \begin_layout Standard
21498 depending upon the \SpecialChar LaTeX
21499  type.
21500 \end_layout
21501
21502 \end_deeper
21503 \begin_layout Description
21504 \begin_inset Flex Code
21505 status collapsed
21506
21507 \begin_layout Plain Layout
21508 LeftDelim
21509 \end_layout
21510
21511 \end_inset
21512
21513  [
21514 \begin_inset Flex Code
21515 status collapsed
21516
21517 \begin_layout Plain Layout
21518 string
21519 \end_layout
21520
21521 \end_inset
21522
21523 ] A string that is put at the beginning of the layout content.
21524  A line break in the output can be indicated by 
21525 \begin_inset Flex Code
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529 <br/>
21530 \end_layout
21531
21532 \end_inset
21533
21534 .
21535 \end_layout
21536
21537 \begin_layout Description
21538 \begin_inset Flex Code
21539 status collapsed
21540
21541 \begin_layout Plain Layout
21542 LyxType
21543 \end_layout
21544
21545 \end_inset
21546
21547  Can be 
21548 \begin_inset Flex Code
21549 status collapsed
21550
21551 \begin_layout Plain Layout
21552 charstyle
21553 \end_layout
21554
21555 \end_inset
21556
21557
21558 \begin_inset Flex Code
21559 status collapsed
21560
21561 \begin_layout Plain Layout
21562 custom
21563 \end_layout
21564
21565 \end_inset
21566
21567
21568 \change_deleted -584632292 1615846609
21569
21570 \begin_inset Flex Code
21571 status collapsed
21572
21573 \begin_layout Plain Layout
21574 element
21575 \end_layout
21576
21577 \end_inset
21578
21579  
21580 \change_unchanged
21581 or 
21582 \begin_inset Flex Code
21583 status collapsed
21584
21585 \begin_layout Plain Layout
21586 end
21587 \end_layout
21588
21589 \end_inset
21590
21591  (indicating a dummy definition ending definitions of charstyles, etc).
21592  This entry is required in and is only meaningful for Flex insets.
21593  Among other things, it determines on which menu this inset will appear.
21594  Setting 
21595 \begin_inset Flex Code
21596 status collapsed
21597
21598 \begin_layout Plain Layout
21599 LyxType
21600 \end_layout
21601
21602 \end_inset
21603
21604  to 
21605 \begin_inset Flex Code
21606 status collapsed
21607
21608 \begin_layout Plain Layout
21609 charstyle
21610 \end_layout
21611
21612 \end_inset
21613
21614  will automatically set 
21615 \begin_inset Flex Code
21616 status collapsed
21617
21618 \begin_layout Plain Layout
21619 MultiPar
21620 \end_layout
21621
21622 \end_inset
21623
21624  to false and 
21625 \begin_inset Flex Code
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629 ForcePlain
21630 \end_layout
21631
21632 \end_inset
21633
21634  to true.
21635  
21636 \begin_inset Flex Code
21637 status collapsed
21638
21639 \begin_layout Plain Layout
21640 MultiPar
21641 \end_layout
21642
21643 \end_inset
21644
21645  can be set to true, or 
21646 \begin_inset Flex Code
21647 status collapsed
21648
21649 \begin_layout Plain Layout
21650 ForcePlain
21651 \end_layout
21652
21653 \end_inset
21654
21655  to false, for 
21656 \begin_inset Flex Code
21657 status collapsed
21658
21659 \begin_layout Plain Layout
21660 charstyle
21661 \end_layout
21662
21663 \end_inset
21664
21665  insets by setting it 
21666 \emph on
21667 after
21668 \emph default
21669  you set the 
21670 \begin_inset Flex Code
21671 status collapsed
21672
21673 \begin_layout Plain Layout
21674 LyxType
21675 \end_layout
21676
21677 \end_inset
21678
21679 .
21680 \change_inserted -712698321 1555575738
21681
21682 \end_layout
21683
21684 \begin_layout Description
21685
21686 \change_inserted -712698321 1555575844
21687 \begin_inset Flex Code
21688 status collapsed
21689
21690 \begin_layout Plain Layout
21691
21692 \change_inserted -712698321 1555575740
21693 MenuString
21694 \change_unchanged
21695
21696 \end_layout
21697
21698 \end_inset
21699
21700  
21701 \begin_inset Flex Code
21702 status collapsed
21703
21704 \begin_layout Plain Layout
21705
21706 \change_inserted -712698321 1555575740
21707 [string]
21708 \change_unchanged
21709
21710 \end_layout
21711
21712 \end_inset
21713
21714  A dedicated string for the menu.
21715  You can define an accelerator by appending the respective character to
21716  the string, divided by 
21717 \begin_inset Quotes eld
21718 \end_inset
21719
21720 |
21721 \begin_inset Quotes erd
21722 \end_inset
21723
21724  (e.
21725 \begin_inset space \thinspace{}
21726 \end_inset
21727
21728 g.
21729 \begin_inset space \space{}
21730 \end_inset
21731
21732
21733 \begin_inset Quotes eld
21734 \end_inset
21735
21736
21737 \begin_inset Flex Code
21738 status collapsed
21739
21740 \begin_layout Plain Layout
21741
21742 \change_inserted -712698321 1555575781
21743 My Inset|M
21744 \change_unchanged
21745
21746 \end_layout
21747
21748 \end_inset
21749
21750
21751 \begin_inset Quotes erd
21752 \end_inset
21753
21754 ).
21755  This specification is optional.
21756  If it is not given the inset name as specified in the type declaration
21757  will be used instead for the menu.
21758 \change_unchanged
21759
21760 \end_layout
21761
21762 \begin_layout Description
21763 \begin_inset Flex Code
21764 status collapsed
21765
21766 \begin_layout Plain Layout
21767 MultiPar
21768 \end_layout
21769
21770 \end_inset
21771
21772  [
21773 \begin_inset Flex Code
21774 status collapsed
21775
21776 \begin_layout Plain Layout
21777
21778 \emph on
21779 0
21780 \end_layout
21781
21782 \end_inset
21783
21784 ,
21785 \begin_inset space \thinspace{}
21786 \end_inset
21787
21788
21789 \begin_inset Flex Code
21790 status collapsed
21791
21792 \begin_layout Plain Layout
21793 1
21794 \end_layout
21795
21796 \end_inset
21797
21798 ] Whether multiple paragraphs are permitted in this inset.
21799  This will also set 
21800 \begin_inset Flex Code
21801 status collapsed
21802
21803 \begin_layout Plain Layout
21804 CustomPars
21805 \end_layout
21806
21807 \end_inset
21808
21809  to the same value and 
21810 \begin_inset Flex Code
21811 status collapsed
21812
21813 \begin_layout Plain Layout
21814 ForcePlain
21815 \end_layout
21816
21817 \end_inset
21818
21819  to the opposite value.
21820  These can be reset to other values, if they are used 
21821 \emph on
21822 after
21823 \emph default
21824  
21825 \begin_inset Flex Code
21826 status collapsed
21827
21828 \begin_layout Plain Layout
21829 MultiPar
21830 \end_layout
21831
21832 \end_inset
21833
21834 .
21835  Default is true.
21836 \end_layout
21837
21838 \begin_layout Description
21839 \begin_inset Flex Code
21840 status collapsed
21841
21842 \begin_layout Plain Layout
21843 NeedProtect
21844 \end_layout
21845
21846 \end_inset
21847
21848  [
21849 \begin_inset Flex Code
21850 status collapsed
21851
21852 \begin_layout Plain Layout
21853
21854 \emph on
21855 0
21856 \end_layout
21857
21858 \end_inset
21859
21860 ,
21861 \begin_inset space \thinspace{}
21862 \end_inset
21863
21864
21865 \begin_inset Flex Code
21866 status collapsed
21867
21868 \begin_layout Plain Layout
21869 1
21870 \end_layout
21871
21872 \end_inset
21873
21874 ] Whether fragile commands in this inset should be 
21875 \begin_inset Flex Code
21876 status collapsed
21877
21878 \begin_layout Plain Layout
21879
21880 \backslash
21881 protect
21882 \end_layout
21883
21884 \end_inset
21885
21886 'ed.
21887  (Note: This is 
21888 \emph on
21889 not
21890 \emph default
21891  whether the command should itself be protected.) Default is false.
21892 \change_inserted -712698321 1523633958
21893
21894 \end_layout
21895
21896 \begin_layout Description
21897
21898 \change_inserted -712698321 1552395786
21899 \begin_inset Flex Code
21900 status collapsed
21901
21902 \begin_layout Plain Layout
21903
21904 \change_inserted -712698321 1523633961
21905 NeedCProtect
21906 \change_unchanged
21907
21908 \end_layout
21909
21910 \end_inset
21911
21912  [
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917
21918 \change_inserted -712698321 1523633958
21919
21920 \emph on
21921 0
21922 \change_unchanged
21923
21924 \end_layout
21925
21926 \end_inset
21927
21928 ,
21929 \begin_inset space \thinspace{}
21930 \end_inset
21931
21932
21933 \begin_inset Flex Code
21934 status collapsed
21935
21936 \begin_layout Plain Layout
21937
21938 \change_inserted -712698321 1523633958
21939 1
21940 \change_unchanged
21941
21942 \end_layout
21943
21944 \end_inset
21945
21946 ] This causes macros that contain this inset to be protected with 
21947 \begin_inset Flex Code
21948 status collapsed
21949
21950 \begin_layout Plain Layout
21951
21952 \change_inserted -712698321 1523634038
21953
21954 \backslash
21955 cprotect
21956 \change_unchanged
21957
21958 \end_layout
21959
21960 \end_inset
21961
21962  (cf.
21963  package 
21964 \family sans
21965 cprotect
21966 \family default
21967 ) if necessary and thus allows (some) verbatim stuff in macros.
21968  Default is false.
21969 \end_layout
21970
21971 \begin_layout Description
21972
21973 \change_inserted -712698321 1555579651
21974 \begin_inset Flex Code
21975 status collapsed
21976
21977 \begin_layout Plain Layout
21978
21979 \change_inserted -712698321 1552395787
21980 NeedMBoxProtect
21981 \change_unchanged
21982
21983 \end_layout
21984
21985 \end_inset
21986
21987  [
21988 \begin_inset Flex Code
21989 status collapsed
21990
21991 \begin_layout Plain Layout
21992
21993 \change_inserted -712698321 1552395787
21994
21995 \emph on
21996 0
21997 \change_unchanged
21998
21999 \end_layout
22000
22001 \end_inset
22002
22003 ,
22004 \begin_inset space \thinspace{}
22005 \end_inset
22006
22007
22008 \begin_inset Flex Code
22009 status collapsed
22010
22011 \begin_layout Plain Layout
22012
22013 \change_inserted -712698321 1552395787
22014 1
22015 \change_unchanged
22016
22017 \end_layout
22018
22019 \end_inset
22020
22021 ] Whether specific commands in this inset (such as 
22022 \begin_inset Flex Code
22023 status collapsed
22024
22025 \begin_layout Plain Layout
22026
22027 \change_inserted -712698321 1552395787
22028
22029 \backslash
22030 cite
22031 \change_unchanged
22032
22033 \end_layout
22034
22035 \end_inset
22036
22037  and 
22038 \begin_inset Flex Code
22039 status collapsed
22040
22041 \begin_layout Plain Layout
22042
22043 \change_inserted -712698321 1552395787
22044
22045 \backslash
22046 ref
22047 \change_unchanged
22048
22049 \end_layout
22050
22051 \end_inset
22052
22053 ) should be protected in an 
22054 \begin_inset Flex Code
22055 status collapsed
22056
22057 \begin_layout Plain Layout
22058
22059 \change_inserted -712698321 1552395787
22060
22061 \backslash
22062 mbox
22063 \change_unchanged
22064
22065 \end_layout
22066
22067 \end_inset
22068
22069 .
22070  This is particularly needed for insets that draw on 
22071 \family sans
22072 ulem
22073 \family default
22074  or 
22075 \family sans
22076 soul
22077 \family default
22078  commands which parse their content in complex ways.
22079  Default is false.
22080 \end_layout
22081
22082 \begin_layout Description
22083
22084 \change_inserted -712698321 1555579742
22085 \begin_inset Flex Code
22086 status collapsed
22087
22088 \begin_layout Plain Layout
22089
22090 \change_inserted -712698321 1555579658
22091 NewlineCmd
22092 \change_unchanged
22093
22094 \end_layout
22095
22096 \end_inset
22097
22098  
22099 \begin_inset Flex Code
22100 status collapsed
22101
22102 \begin_layout Plain Layout
22103
22104 \change_inserted -712698321 1555579651
22105 [string]
22106 \change_unchanged
22107
22108 \end_layout
22109
22110 \end_inset
22111
22112  Option to define a different command (from the default 
22113 \begin_inset Flex Code
22114 status collapsed
22115
22116 \begin_layout Plain Layout
22117
22118 \change_inserted -712698321 1555579742
22119
22120 \backslash
22121
22122 \backslash
22123
22124 \change_unchanged
22125
22126 \end_layout
22127
22128 \end_inset
22129
22130 ) to be used for line breaks.
22131  The initial backslash must not be specified.
22132 \change_unchanged
22133
22134 \end_layout
22135
22136 \begin_layout Description
22137 \begin_inset Flex Code
22138 status collapsed
22139
22140 \begin_layout Plain Layout
22141 NoInsetLayout
22142 \end_layout
22143
22144 \end_inset
22145
22146  [
22147 \begin_inset Flex Code
22148 status collapsed
22149
22150 \begin_layout Plain Layout
22151 <layout>
22152 \end_layout
22153
22154 \end_inset
22155
22156 ] Deletes an existing 
22157 \begin_inset Flex Code
22158 status collapsed
22159
22160 \begin_layout Plain Layout
22161 InsetLayout
22162 \end_layout
22163
22164 \end_inset
22165
22166 .
22167 \end_layout
22168
22169 \begin_layout Description
22170 \begin_inset Flex Code
22171 status collapsed
22172
22173 \begin_layout Plain Layout
22174 ObsoletedBy
22175 \end_layout
22176
22177 \end_inset
22178
22179  [
22180 \begin_inset Flex Code
22181 status collapsed
22182
22183 \begin_layout Plain Layout
22184 <layout>
22185 \end_layout
22186
22187 \end_inset
22188
22189 ] Name of an 
22190 \begin_inset Flex Code
22191 status collapsed
22192
22193 \begin_layout Plain Layout
22194 InsetLayout
22195 \end_layout
22196
22197 \end_inset
22198
22199  that has replaced this 
22200 \begin_inset Flex Code
22201 status collapsed
22202
22203 \begin_layout Plain Layout
22204 InsetLayout
22205 \end_layout
22206
22207 \end_inset
22208
22209 .
22210  This is used to rename an 
22211 \begin_inset Flex Code
22212 status collapsed
22213
22214 \begin_layout Plain Layout
22215 InsetLayout
22216 \end_layout
22217
22218 \end_inset
22219
22220 , while keeping backward compatibility.
22221 \change_inserted -712698321 1559491850
22222
22223 \end_layout
22224
22225 \begin_layout Description
22226
22227 \change_inserted -712698321 1559492002
22228 \begin_inset Flex Code
22229 status collapsed
22230
22231 \begin_layout Plain Layout
22232
22233 \change_inserted -712698321 1559491854
22234 ParbreakIgnored
22235 \change_unchanged
22236
22237 \end_layout
22238
22239 \end_inset
22240
22241  [
22242 \begin_inset Flex Code
22243 status collapsed
22244
22245 \begin_layout Plain Layout
22246
22247 \change_inserted -712698321 1559491850
22248
22249 \emph on
22250 0
22251 \change_unchanged
22252
22253 \end_layout
22254
22255 \end_inset
22256
22257 ,
22258 \begin_inset space \thinspace{}
22259 \end_inset
22260
22261
22262 \begin_inset Flex Code
22263 status collapsed
22264
22265 \begin_layout Plain Layout
22266
22267 \change_inserted -712698321 1559491850
22268 1
22269 \change_unchanged
22270
22271 \end_layout
22272
22273 \end_inset
22274
22275 ] If this is set to 
22276 \begin_inset Flex Code
22277 status collapsed
22278
22279 \begin_layout Plain Layout
22280
22281 \change_inserted -712698321 1559491881
22282 1
22283 \change_unchanged
22284
22285 \end_layout
22286
22287 \end_inset
22288
22289 , paragraph breaks will be ignored in the output.
22290  This might be useful for insets where the content should be alignable on
22291  different lines only in the \SpecialChar LyX
22292  workarea, without any effect in the output.
22293 \change_unchanged
22294
22295 \end_layout
22296
22297 \begin_layout Description
22298 \begin_inset Flex Code
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 ParbreakIsNewline
22303 \end_layout
22304
22305 \end_inset
22306
22307  [
22308 \begin_inset Flex Code
22309 status collapsed
22310
22311 \begin_layout Plain Layout
22312
22313 \emph on
22314 0
22315 \end_layout
22316
22317 \end_inset
22318
22319 ,
22320 \begin_inset space \thinspace{}
22321 \end_inset
22322
22323
22324 \begin_inset Flex Code
22325 status collapsed
22326
22327 \begin_layout Plain Layout
22328 1
22329 \end_layout
22330
22331 \end_inset
22332
22333 ] As with paragraph styles, see 
22334 \begin_inset CommandInset ref
22335 LatexCommand ref
22336 reference "subsec:Paragraph-Styles"
22337
22338 \end_inset
22339
22340 .
22341  Default is false.
22342 \end_layout
22343
22344 \begin_layout Description
22345 \begin_inset Flex Code
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 PassThru
22350 \end_layout
22351
22352 \end_inset
22353
22354  [
22355 \begin_inset Flex Code
22356 status collapsed
22357
22358 \begin_layout Plain Layout
22359
22360 \emph on
22361 0
22362 \end_layout
22363
22364 \end_inset
22365
22366 ,
22367 \begin_inset space \thinspace{}
22368 \end_inset
22369
22370
22371 \begin_inset Flex Code
22372 status collapsed
22373
22374 \begin_layout Plain Layout
22375 1
22376 \end_layout
22377
22378 \end_inset
22379
22380 ] As with paragraph styles, see 
22381 \begin_inset CommandInset ref
22382 LatexCommand ref
22383 reference "subsec:Paragraph-Styles"
22384
22385 \end_inset
22386
22387 .
22388  Default is false.
22389 \end_layout
22390
22391 \begin_layout Description
22392 \begin_inset Flex Code
22393 status collapsed
22394
22395 \begin_layout Plain Layout
22396 Preamble
22397 \end_layout
22398
22399 \end_inset
22400
22401  As with paragraph styles, see 
22402 \begin_inset CommandInset ref
22403 LatexCommand ref
22404 reference "subsec:Paragraph-Styles"
22405
22406 \end_inset
22407
22408 .
22409 \end_layout
22410
22411 \begin_layout Description
22412 \begin_inset Flex Code
22413 status collapsed
22414
22415 \begin_layout Plain Layout
22416 RefPrefix
22417 \end_layout
22418
22419 \end_inset
22420
22421  [
22422 \begin_inset Flex Code
22423 status collapsed
22424
22425 \begin_layout Plain Layout
22426 string
22427 \end_layout
22428
22429 \end_inset
22430
22431 ] The prefix to use when creating labels referring to insets of this type.
22432  This allows the use of formatted references.
22433 \end_layout
22434
22435 \begin_layout Description
22436 \begin_inset Flex Code
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440 Requires
22441 \end_layout
22442
22443 \end_inset
22444
22445  [
22446 \begin_inset Flex Code
22447 status collapsed
22448
22449 \begin_layout Plain Layout
22450 string
22451 \end_layout
22452
22453 \end_inset
22454
22455 ] As with paragraph styles, see 
22456 \begin_inset CommandInset ref
22457 LatexCommand ref
22458 reference "subsec:Paragraph-Styles"
22459
22460 \end_inset
22461
22462 .
22463 \end_layout
22464
22465 \begin_layout Description
22466 \begin_inset Flex Code
22467 status collapsed
22468
22469 \begin_layout Plain Layout
22470 ResetArgs
22471 \end_layout
22472
22473 \end_inset
22474
22475  [
22476 \begin_inset Flex Code
22477 status collapsed
22478
22479 \begin_layout Plain Layout
22480
22481 \emph on
22482 0
22483 \end_layout
22484
22485 \end_inset
22486
22487 ,
22488 \begin_inset space \thinspace{}
22489 \end_inset
22490
22491
22492 \begin_inset Flex Code
22493 status collapsed
22494
22495 \begin_layout Plain Layout
22496 1
22497 \end_layout
22498
22499 \end_inset
22500
22501 ] Resets the \SpecialChar LaTeX
22502  arguments of this layout (as defined via the 
22503 \begin_inset Flex Code
22504 status collapsed
22505
22506 \begin_layout Plain Layout
22507 Argument
22508 \end_layout
22509
22510 \end_inset
22511
22512  tag).
22513  This is useful if you have copied a style via 
22514 \begin_inset Flex Code
22515 status collapsed
22516
22517 \begin_layout Plain Layout
22518 CopyStyle
22519 \end_layout
22520
22521 \end_inset
22522
22523 , but you do not want to inherit its (required and optional) arguments.
22524 \end_layout
22525
22526 \begin_layout Description
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 ResetsFont
22532 \end_layout
22533
22534 \end_inset
22535
22536  [
22537 \begin_inset Flex Code
22538 status collapsed
22539
22540 \begin_layout Plain Layout
22541
22542 \emph on
22543 0
22544 \end_layout
22545
22546 \end_inset
22547
22548 ,
22549 \begin_inset space \thinspace{}
22550 \end_inset
22551
22552
22553 \begin_inset Flex Code
22554 status collapsed
22555
22556 \begin_layout Plain Layout
22557 1
22558 \end_layout
22559
22560 \end_inset
22561
22562
22563 \change_inserted -712698321 1597733473
22564 If 
22565 \begin_inset Flex Code
22566 status collapsed
22567
22568 \begin_layout Plain Layout
22569
22570 \change_inserted -712698321 1597732178
22571 1
22572 \change_unchanged
22573
22574 \end_layout
22575
22576 \end_inset
22577
22578 , font changes are redone inside the respective inset (in the output) even
22579  if the inset itself is in the context of this font changes (e.
22580 \begin_inset space \thinspace{}
22581 \end_inset
22582
22583 g., 
22584 \begin_inset Flex Code
22585 status collapsed
22586
22587 \begin_layout Plain Layout
22588
22589 \change_inserted -712698321 1597733683
22590
22591 \backslash
22592 textbf{Sourrounding text 
22593 \backslash
22594 myinset{
22595 \backslash
22596 textbf{content}}\SpecialChar ldots
22597 }
22598 \change_unchanged
22599
22600 \end_layout
22601
22602 \end_inset
22603
22604  rather than 
22605 \begin_inset Flex Code
22606 status collapsed
22607
22608 \begin_layout Plain Layout
22609
22610 \change_inserted -712698321 1597733686
22611
22612 \backslash
22613 textbf{Sourrounding text 
22614 \backslash
22615 myinset{content}\SpecialChar ldots
22616 }
22617 \change_unchanged
22618
22619 \end_layout
22620
22621 \end_inset
22622
22623 .
22624  Setting this makes sense for commands that internally reset font settings
22625  (e.
22626 \begin_inset space \thinspace{}
22627 \end_inset
22628
22629 g., footnotes).
22630  Note that wrongly setting this might lead to unwanted result (e.
22631 \begin_inset space \thinspace{}
22632 \end_inset
22633
22634 g., with 
22635 \begin_inset Flex Code
22636 status collapsed
22637
22638 \begin_layout Plain Layout
22639
22640 \change_inserted -712698321 1597733688
22641
22642 \backslash
22643 emph{Sourrounding text 
22644 \backslash
22645 myinset{
22646 \backslash
22647 emph{content}}\SpecialChar ldots
22648 }
22649 \change_unchanged
22650
22651 \end_layout
22652
22653 \end_inset
22654
22655 , content is upright, as 
22656 \begin_inset Flex Code
22657 status collapsed
22658
22659 \begin_layout Plain Layout
22660
22661 \change_inserted -712698321 1597733278
22662
22663 \backslash
22664 emph
22665 \change_unchanged
22666
22667 \end_layout
22668
22669 \end_inset
22670
22671  toggles.
22672  
22673 \change_deleted -712698321 1597733283
22674 Whether this inset should use the font of its surrounding environment or
22675  uses its own.
22676  
22677 \change_unchanged
22678 Default is 
22679 \change_deleted -712698321 1597733290
22680 false
22681 \change_inserted -712698321 1597733290
22682
22683 \begin_inset Flex Code
22684 status collapsed
22685
22686 \begin_layout Plain Layout
22687
22688 \change_inserted -712698321 1597733292
22689 0
22690 \change_unchanged
22691
22692 \end_layout
22693
22694 \end_inset
22695
22696
22697 \change_unchanged
22698
22699 \change_deleted -712698321 1597733327
22700 use the font of the surrounding environment
22701 \change_inserted -712698321 1597733343
22702 font changes are not redone inside the inset
22703 \change_unchanged
22704 .
22705 \end_layout
22706
22707 \begin_layout Description
22708 \begin_inset Flex Code
22709 status collapsed
22710
22711 \begin_layout Plain Layout
22712 RightDelim
22713 \end_layout
22714
22715 \end_inset
22716
22717  [
22718 \begin_inset Flex Code
22719 status collapsed
22720
22721 \begin_layout Plain Layout
22722 string
22723 \end_layout
22724
22725 \end_inset
22726
22727 ] A string that is put at the end of the layout content.
22728  A line break in the output can be indicated by 
22729 \begin_inset Flex Code
22730 status collapsed
22731
22732 \begin_layout Plain Layout
22733 <br/>
22734 \end_layout
22735
22736 \end_inset
22737
22738 .
22739 \end_layout
22740
22741 \begin_layout Description
22742 \begin_inset Flex Code
22743 status collapsed
22744
22745 \begin_layout Plain Layout
22746 Spellcheck
22747 \end_layout
22748
22749 \end_inset
22750
22751  [
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756 0
22757 \end_layout
22758
22759 \end_inset
22760
22761 ,
22762 \begin_inset space \thinspace{}
22763 \end_inset
22764
22765
22766 \begin_inset Flex Code
22767 status collapsed
22768
22769 \begin_layout Plain Layout
22770
22771 \emph on
22772 1
22773 \end_layout
22774
22775 \end_inset
22776
22777 ] Allow spell-checking the contents of this inset.
22778  Default is true.
22779 \change_inserted -584632292 1615846659
22780
22781 \end_layout
22782
22783 \begin_layout Subsection
22784
22785 \change_inserted -584632292 1615846729
22786 Arguments
22787 \begin_inset CommandInset label
22788 LatexCommand label
22789 name "subsec:Arguments"
22790
22791 \end_inset
22792
22793
22794 \end_layout
22795
22796 \begin_layout Standard
22797
22798 \change_inserted -584632292 1615846807
22799 Both paragraph styles and inset layouts allow for 
22800 \emph on
22801 arguments
22802 \emph default
22803  as well as the main content.
22804  This is especially useful for things like section headings and only makes
22805  sense with \SpecialChar LaTeX
22806 .
22807  Each (optional or required) argument of a command or environment—except
22808  for the required argument that is associated with the content—has a separate
22809  definition, where the number specifies the order of the arguments.
22810  The definition must end with 
22811 \begin_inset Flex Code
22812 status collapsed
22813
22814 \begin_layout Plain Layout
22815
22816 \change_inserted -584632292 1615846730
22817 EndArgument
22818 \change_unchanged
22819
22820 \end_layout
22821
22822 \end_inset
22823
22824 .
22825  So a command with two optional arguments looks like:
22826 \end_layout
22827
22828 \begin_layout Quote
22829
22830 \change_inserted -584632292 1615846730
22831
22832 \family typewriter
22833 Argument 1
22834 \end_layout
22835
22836 \begin_layout Quote
22837
22838 \change_inserted -584632292 1615846730
22839
22840 \family typewriter
22841 ...
22842 \end_layout
22843
22844 \begin_layout Quote
22845
22846 \change_inserted -584632292 1615846730
22847
22848 \family typewriter
22849 EndArgument
22850 \end_layout
22851
22852 \begin_layout Quote
22853
22854 \change_inserted -584632292 1615846730
22855
22856 \family typewriter
22857 Argument 2
22858 \end_layout
22859
22860 \begin_layout Quote
22861
22862 \change_inserted -584632292 1615846730
22863
22864 \family typewriter
22865 ...
22866 \end_layout
22867
22868 \begin_layout Quote
22869
22870 \change_inserted -584632292 1615846730
22871
22872 \family typewriter
22873 EndArgument
22874 \end_layout
22875
22876 \begin_layout Standard
22877
22878 \change_inserted -584632292 1615846730
22879 Inside the 
22880 \begin_inset Flex Code
22881 status collapsed
22882
22883 \begin_layout Plain Layout
22884
22885 \change_inserted -584632292 1615846730
22886 Argument
22887 \change_unchanged
22888
22889 \end_layout
22890
22891 \end_inset
22892
22893  definition, the following specifications are possible:
22894 \end_layout
22895
22896 \begin_layout Itemize
22897
22898 \change_inserted -584632292 1615846730
22899 \begin_inset Flex Code
22900 status collapsed
22901
22902 \begin_layout Plain Layout
22903
22904 \change_inserted -584632292 1615846730
22905 LabelString
22906 \change_unchanged
22907
22908 \end_layout
22909
22910 \end_inset
22911
22912  
22913 \begin_inset Flex Code
22914 status collapsed
22915
22916 \begin_layout Plain Layout
22917
22918 \change_inserted -584632292 1615846730
22919 [string]
22920 \change_unchanged
22921
22922 \end_layout
22923
22924 \end_inset
22925
22926  The string that will appear both in the menu (to insert this argument)
22927  and on the argument inset button (unless you also specify a separate 
22928 \begin_inset Flex Code
22929 status collapsed
22930
22931 \begin_layout Plain Layout
22932
22933 \change_inserted -584632292 1615846730
22934 MenuString
22935 \change_unchanged
22936
22937 \end_layout
22938
22939 \end_inset
22940
22941 ).
22942  For the menu, you can define an accelerator by appending the respective
22943  character to the string, divided by 
22944 \begin_inset Quotes eld
22945 \end_inset
22946
22947 |
22948 \begin_inset Quotes erd
22949 \end_inset
22950
22951  (e.
22952 \begin_inset space \thinspace{}
22953 \end_inset
22954
22955 g.
22956 \begin_inset space \space{}
22957 \end_inset
22958
22959
22960 \begin_inset Quotes eld
22961 \end_inset
22962
22963
22964 \begin_inset Flex Code
22965 status collapsed
22966
22967 \begin_layout Plain Layout
22968
22969 \change_inserted -584632292 1615846730
22970 Short Title|S
22971 \change_unchanged
22972
22973 \end_layout
22974
22975 \end_inset
22976
22977
22978 \begin_inset Quotes erd
22979 \end_inset
22980
22981 ).
22982 \end_layout
22983
22984 \begin_layout Itemize
22985
22986 \change_inserted -584632292 1615846730
22987 \begin_inset Flex Code
22988 status collapsed
22989
22990 \begin_layout Plain Layout
22991
22992 \change_inserted -584632292 1615846730
22993 MenuString
22994 \change_unchanged
22995
22996 \end_layout
22997
22998 \end_inset
22999
23000  
23001 \begin_inset Flex Code
23002 status collapsed
23003
23004 \begin_layout Plain Layout
23005
23006 \change_inserted -584632292 1615846730
23007 [string]
23008 \change_unchanged
23009
23010 \end_layout
23011
23012 \end_inset
23013
23014  A separate string for the menu.
23015  You can define an accelerator by appending the respective character to
23016  the string, divided by 
23017 \begin_inset Quotes eld
23018 \end_inset
23019
23020 |
23021 \begin_inset Quotes erd
23022 \end_inset
23023
23024  (e.
23025 \begin_inset space \thinspace{}
23026 \end_inset
23027
23028 g.
23029 \begin_inset space \space{}
23030 \end_inset
23031
23032
23033 \begin_inset Quotes eld
23034 \end_inset
23035
23036
23037 \begin_inset Flex Code
23038 status collapsed
23039
23040 \begin_layout Plain Layout
23041
23042 \change_inserted -584632292 1615846730
23043 Short Title|S
23044 \change_unchanged
23045
23046 \end_layout
23047
23048 \end_inset
23049
23050
23051 \begin_inset Quotes erd
23052 \end_inset
23053
23054 ).
23055  This specification is optional.
23056  If it is not given the 
23057 \begin_inset Flex Code
23058 status collapsed
23059
23060 \begin_layout Plain Layout
23061
23062 \change_inserted -584632292 1615846730
23063 LabelString
23064 \change_unchanged
23065
23066 \end_layout
23067
23068 \end_inset
23069
23070  will be used instead for the menu.
23071 \end_layout
23072
23073 \begin_layout Itemize
23074
23075 \change_inserted -584632292 1615846730
23076 \begin_inset Flex Code
23077 status collapsed
23078
23079 \begin_layout Plain Layout
23080
23081 \change_inserted -584632292 1615846730
23082 Tooltip
23083 \change_unchanged
23084
23085 \end_layout
23086
23087 \end_inset
23088
23089  
23090 \begin_inset Flex Code
23091 status collapsed
23092
23093 \begin_layout Plain Layout
23094
23095 \change_inserted -584632292 1615846730
23096 [string]
23097 \change_unchanged
23098
23099 \end_layout
23100
23101 \end_inset
23102
23103  A longer explanatory text that appears in the tooltip when hovering over
23104  the argument inset.
23105 \end_layout
23106
23107 \begin_layout Itemize
23108
23109 \change_inserted -584632292 1615846730
23110 \begin_inset Flex Code
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114
23115 \change_inserted -584632292 1615846730
23116 Mandatory
23117 \change_unchanged
23118
23119 \end_layout
23120
23121 \end_inset
23122
23123  [
23124 \begin_inset Flex Code
23125 status collapsed
23126
23127 \begin_layout Plain Layout
23128
23129 \change_inserted -584632292 1615846730
23130
23131 \emph on
23132 0
23133 \change_unchanged
23134
23135 \end_layout
23136
23137 \end_inset
23138
23139 ,
23140 \begin_inset space \thinspace{}
23141 \end_inset
23142
23143
23144 \begin_inset Flex Code
23145 status collapsed
23146
23147 \begin_layout Plain Layout
23148
23149 \change_inserted -584632292 1615846730
23150 1
23151 \change_unchanged
23152
23153 \end_layout
23154
23155 \end_inset
23156
23157 ] Declare if this is a mandatory (1) or an optional (0) argument.
23158  Mandatory arguments will be output empty if not given, while optional arguments
23159  will not be output at all.
23160  By default, mandatory arguments are delimited by 
23161 \begin_inset Flex Code
23162 status collapsed
23163
23164 \begin_layout Plain Layout
23165
23166 \change_inserted -584632292 1615846730
23167 {...}
23168 \change_unchanged
23169
23170 \end_layout
23171
23172 \end_inset
23173
23174 , while optional arguments are delimited by 
23175 \begin_inset Flex Code
23176 status collapsed
23177
23178 \begin_layout Plain Layout
23179
23180 \change_inserted -584632292 1615846730
23181 [...]
23182 \change_unchanged
23183
23184 \end_layout
23185
23186 \end_inset
23187
23188
23189 \end_layout
23190
23191 \begin_layout Itemize
23192
23193 \change_inserted -584632292 1615846730
23194 \begin_inset Flex Code
23195 status collapsed
23196
23197 \begin_layout Plain Layout
23198
23199 \change_inserted -584632292 1615846730
23200 NewlineCmd
23201 \change_unchanged
23202
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 \change_inserted -584632292 1615846730
23214 [string]
23215 \change_unchanged
23216
23217 \end_layout
23218
23219 \end_inset
23220
23221  Option to define a different command (from the default 
23222 \begin_inset Flex Code
23223 status collapsed
23224
23225 \begin_layout Plain Layout
23226
23227 \change_inserted -584632292 1615846730
23228
23229 \backslash
23230
23231 \backslash
23232
23233 \change_unchanged
23234
23235 \end_layout
23236
23237 \end_inset
23238
23239 ) to be used for line breaks.
23240  The initial backslash must not be specified.
23241 \end_layout
23242
23243 \begin_layout Itemize
23244
23245 \change_inserted -584632292 1615846730
23246 \begin_inset Flex Code
23247 status collapsed
23248
23249 \begin_layout Plain Layout
23250
23251 \change_inserted -584632292 1615846730
23252 Requires
23253 \change_unchanged
23254
23255 \end_layout
23256
23257 \end_inset
23258
23259  
23260 \begin_inset Flex Code
23261 status collapsed
23262
23263 \begin_layout Plain Layout
23264
23265 \change_inserted -584632292 1615846730
23266 [int=0]
23267 \change_unchanged
23268
23269 \end_layout
23270
23271 \end_inset
23272
23273  defines another argument (by its number) which this argument requires to
23274  be output if it is itself output.
23275  E.
23276 \begin_inset space \thinspace{}
23277 \end_inset
23278
23279 g., in \SpecialChar LaTeX
23280  commands, optional arguments often require previous optional arguments
23281  to be output (at least empty), as in 
23282 \begin_inset Flex Code
23283 status collapsed
23284
23285 \begin_layout Plain Layout
23286
23287 \change_inserted -584632292 1615846730
23288
23289 \backslash
23290 command[][argument]{text}
23291 \change_unchanged
23292
23293 \end_layout
23294
23295 \end_inset
23296
23297 .
23298  This can be achieved by the statement 
23299 \begin_inset Flex Code
23300 status collapsed
23301
23302 \begin_layout Plain Layout
23303
23304 \change_inserted -584632292 1615846730
23305 Requires 1
23306 \change_unchanged
23307
23308 \end_layout
23309
23310 \end_inset
23311
23312  within 
23313 \begin_inset Flex Code
23314 status collapsed
23315
23316 \begin_layout Plain Layout
23317
23318 \change_inserted -584632292 1615846730
23319 Argument 2
23320 \change_unchanged
23321
23322 \end_layout
23323
23324 \end_inset
23325
23326 .
23327 \end_layout
23328
23329 \begin_layout Itemize
23330
23331 \change_inserted -584632292 1615846730
23332 \begin_inset Flex Code
23333 status collapsed
23334
23335 \begin_layout Plain Layout
23336
23337 \change_inserted -584632292 1615846730
23338 LeftDelim
23339 \change_unchanged
23340
23341 \end_layout
23342
23343 \end_inset
23344
23345  
23346 \begin_inset Flex Code
23347 status collapsed
23348
23349 \begin_layout Plain Layout
23350
23351 \change_inserted -584632292 1615846730
23352 [string]
23353 \change_unchanged
23354
23355 \end_layout
23356
23357 \end_inset
23358
23359  defines a custom left delimiter (instead of 
23360 \begin_inset Flex Code
23361 status collapsed
23362
23363 \begin_layout Plain Layout
23364
23365 \change_inserted -584632292 1615846730
23366 {
23367 \change_unchanged
23368
23369 \end_layout
23370
23371 \end_inset
23372
23373  or 
23374 \begin_inset Flex Code
23375 status collapsed
23376
23377 \begin_layout Plain Layout
23378
23379 \change_inserted -584632292 1615846730
23380 [
23381 \change_unchanged
23382
23383 \end_layout
23384
23385 \end_inset
23386
23387 ).
23388  A line break in the output can be indicated by 
23389 \begin_inset Flex Code
23390 status collapsed
23391
23392 \begin_layout Plain Layout
23393
23394 \change_inserted -584632292 1615846730
23395 <br/>
23396 \change_unchanged
23397
23398 \end_layout
23399
23400 \end_inset
23401
23402 .
23403 \end_layout
23404
23405 \begin_layout Itemize
23406
23407 \change_inserted -584632292 1615846730
23408 \begin_inset Flex Code
23409 status collapsed
23410
23411 \begin_layout Plain Layout
23412
23413 \change_inserted -584632292 1615846730
23414 RightDelim
23415 \change_unchanged
23416
23417 \end_layout
23418
23419 \end_inset
23420
23421  
23422 \begin_inset Flex Code
23423 status collapsed
23424
23425 \begin_layout Plain Layout
23426
23427 \change_inserted -584632292 1615846730
23428 [string]
23429 \change_unchanged
23430
23431 \end_layout
23432
23433 \end_inset
23434
23435  defines a custom right delimiter (instead of 
23436 \begin_inset Flex Code
23437 status collapsed
23438
23439 \begin_layout Plain Layout
23440
23441 \change_inserted -584632292 1615846730
23442 }
23443 \change_unchanged
23444
23445 \end_layout
23446
23447 \end_inset
23448
23449  or 
23450 \begin_inset Flex Code
23451 status collapsed
23452
23453 \begin_layout Plain Layout
23454
23455 \change_inserted -584632292 1615846730
23456 ]
23457 \change_unchanged
23458
23459 \end_layout
23460
23461 \end_inset
23462
23463 ).
23464  A line break in the output can be indicated by 
23465 \begin_inset Flex Code
23466 status collapsed
23467
23468 \begin_layout Plain Layout
23469
23470 \change_inserted -584632292 1615846730
23471 <br/>
23472 \change_unchanged
23473
23474 \end_layout
23475
23476 \end_inset
23477
23478 .
23479 \end_layout
23480
23481 \begin_layout Itemize
23482
23483 \change_inserted -584632292 1615846730
23484 \begin_inset Flex Code
23485 status collapsed
23486
23487 \begin_layout Plain Layout
23488
23489 \change_inserted -584632292 1615846730
23490 DefaultArg
23491 \change_unchanged
23492
23493 \end_layout
23494
23495 \end_inset
23496
23497  
23498 \begin_inset Flex Code
23499 status collapsed
23500
23501 \begin_layout Plain Layout
23502
23503 \change_inserted -584632292 1615846730
23504 [string]
23505 \change_unchanged
23506
23507 \end_layout
23508
23509 \end_inset
23510
23511  defines an argument that is inserted if and only if no user-specified arguments
23512  were given, i.
23513 \begin_inset space \thinspace{}
23514 \end_inset
23515
23516 e.
23517 \begin_inset space \space{}
23518 \end_inset
23519
23520 if no argument inset has been inserted (note that also an empty argument
23521  inset omits the DefaultArg).
23522  Multiple arguments need to be separated by comma.
23523 \end_layout
23524
23525 \begin_layout Itemize
23526
23527 \change_inserted -584632292 1615846730
23528 \begin_inset Flex Code
23529 status collapsed
23530
23531 \begin_layout Plain Layout
23532
23533 \change_inserted -584632292 1615846730
23534 PresetArg
23535 \change_unchanged
23536
23537 \end_layout
23538
23539 \end_inset
23540
23541  
23542 \begin_inset Flex Code
23543 status collapsed
23544
23545 \begin_layout Plain Layout
23546
23547 \change_inserted -584632292 1615846730
23548 [string]
23549 \change_unchanged
23550
23551 \end_layout
23552
23553 \end_inset
23554
23555  defines an argument that is inserted in any case (alone or in addition
23556  to user-specified arguments).
23557  Multiple arguments need to be separated by comma.
23558 \end_layout
23559
23560 \begin_layout Itemize
23561
23562 \change_inserted -584632292 1615846730
23563 \begin_inset Flex Code
23564 status collapsed
23565
23566 \begin_layout Plain Layout
23567
23568 \change_inserted -584632292 1615846730
23569 Font
23570 \change_unchanged
23571
23572 \end_layout
23573
23574 \end_inset
23575
23576  The font used for the argument content, see 
23577 \begin_inset CommandInset ref
23578 LatexCommand ref
23579 reference "subsec:Font-description"
23580
23581 \end_inset
23582
23583 .
23584 \end_layout
23585
23586 \begin_layout Itemize
23587
23588 \change_inserted -584632292 1615846730
23589 \begin_inset Flex Code
23590 status collapsed
23591
23592 \begin_layout Plain Layout
23593
23594 \change_inserted -584632292 1615846730
23595 FreeSpacing
23596 \change_unchanged
23597
23598 \end_layout
23599
23600 \end_inset
23601
23602  [
23603 \begin_inset Flex Code
23604 status collapsed
23605
23606 \begin_layout Plain Layout
23607
23608 \change_inserted -584632292 1615846730
23609
23610 \emph on
23611 0
23612 \change_unchanged
23613
23614 \end_layout
23615
23616 \end_inset
23617
23618 ,
23619 \begin_inset space \thinspace{}
23620 \end_inset
23621
23622
23623 \begin_inset Flex Code
23624 status collapsed
23625
23626 \begin_layout Plain Layout
23627
23628 \change_inserted -584632292 1615846730
23629 1
23630 \change_unchanged
23631
23632 \end_layout
23633
23634 \end_inset
23635
23636 ] As with paragraph styles, see 
23637 \begin_inset CommandInset ref
23638 LatexCommand ref
23639 reference "subsec:Paragraph-Styles"
23640
23641 \end_inset
23642
23643 .
23644 \end_layout
23645
23646 \begin_layout Itemize
23647
23648 \change_inserted -584632292 1615846730
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653
23654 \change_inserted -584632292 1615846730
23655 LabelFont
23656 \change_unchanged
23657
23658 \end_layout
23659
23660 \end_inset
23661
23662  The font used for the label; see 
23663 \begin_inset CommandInset ref
23664 LatexCommand ref
23665 reference "subsec:Font-description"
23666
23667 \end_inset
23668
23669 .
23670 \end_layout
23671
23672 \begin_layout Itemize
23673
23674 \change_inserted -584632292 1615846730
23675 \begin_inset Flex Code
23676 status collapsed
23677
23678 \begin_layout Plain Layout
23679
23680 \change_inserted -584632292 1615846730
23681 Decoration
23682 \change_unchanged
23683
23684 \end_layout
23685
23686 \end_inset
23687
23688  [
23689 \begin_inset Flex Code
23690 status collapsed
23691
23692 \begin_layout Plain Layout
23693
23694 \change_inserted -584632292 1615846730
23695
23696 \emph on
23697 Classic
23698 \emph default
23699 , Minimalistic, Conglomerate
23700 \change_unchanged
23701
23702 \end_layout
23703
23704 \end_inset
23705
23706 ] describes the rendering style used for the inset's frame and buttons.
23707 \end_layout
23708
23709 \begin_layout Itemize
23710
23711 \change_inserted -584632292 1615846730
23712 \begin_inset Flex Code
23713 status collapsed
23714
23715 \begin_layout Plain Layout
23716
23717 \change_inserted -584632292 1615846730
23718 AutoInsert
23719 \change_unchanged
23720
23721 \end_layout
23722
23723 \end_inset
23724
23725  
23726 \begin_inset Flex Code
23727 status collapsed
23728
23729 \begin_layout Plain Layout
23730
23731 \change_inserted -584632292 1615846730
23732 [int=0]
23733 \change_unchanged
23734
23735 \end_layout
23736
23737 \end_inset
23738
23739  If this is set to 
23740 \begin_inset Flex Code
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744
23745 \change_inserted -584632292 1615846730
23746 1
23747 \change_unchanged
23748
23749 \end_layout
23750
23751 \end_inset
23752
23753 , this argument is automatically inserted when the respective style is selected.
23754 \end_layout
23755
23756 \begin_layout Itemize
23757
23758 \change_inserted -584632292 1615846730
23759 \begin_inset Flex Code
23760 status collapsed
23761
23762 \begin_layout Plain Layout
23763
23764 \change_inserted -584632292 1615846730
23765 InsertOnNewline
23766 \change_unchanged
23767
23768 \end_layout
23769
23770 \end_inset
23771
23772  
23773 \begin_inset Flex Code
23774 status collapsed
23775
23776 \begin_layout Plain Layout
23777
23778 \change_inserted -584632292 1615846730
23779 [int=0]
23780 \change_unchanged
23781
23782 \end_layout
23783
23784 \end_inset
23785
23786  If this is set to 
23787 \begin_inset Flex Code
23788 status collapsed
23789
23790 \begin_layout Plain Layout
23791
23792 \change_inserted -584632292 1615846730
23793 1
23794 \change_unchanged
23795
23796 \end_layout
23797
23798 \end_inset
23799
23800 , this argument will be inserted on a new line with 
23801 \begin_inset Flex Code
23802 status collapsed
23803
23804 \begin_layout Plain Layout
23805
23806 \change_inserted -584632292 1615846730
23807 AutoInsert
23808 \change_unchanged
23809
23810 \end_layout
23811
23812 \end_inset
23813
23814  (only available within Flex insets).
23815 \end_layout
23816
23817 \begin_layout Itemize
23818
23819 \change_inserted -584632292 1615846730
23820 \begin_inset Flex Code
23821 status collapsed
23822
23823 \begin_layout Plain Layout
23824
23825 \change_inserted -584632292 1615846730
23826 InsertCotext
23827 \change_unchanged
23828
23829 \end_layout
23830
23831 \end_inset
23832
23833  
23834 \begin_inset Flex Code
23835 status collapsed
23836
23837 \begin_layout Plain Layout
23838
23839 \change_inserted -584632292 1615846730
23840 [int=0]
23841 \change_unchanged
23842
23843 \end_layout
23844
23845 \end_inset
23846
23847  If this is set to 
23848 \begin_inset Flex Code
23849 status collapsed
23850
23851 \begin_layout Plain Layout
23852
23853 \change_inserted -584632292 1615846730
23854 1
23855 \change_unchanged
23856
23857 \end_layout
23858
23859 \end_inset
23860
23861 , this argument will be inserted with a copy of the co-text (either selected
23862  text or the whole paragraph) as content.
23863 \end_layout
23864
23865 \begin_layout Itemize
23866
23867 \change_inserted -584632292 1615846730
23868 \begin_inset Flex Code
23869 status collapsed
23870
23871 \begin_layout Plain Layout
23872
23873 \change_inserted -584632292 1615846730
23874 PassThru
23875 \change_unchanged
23876
23877 \end_layout
23878
23879 \end_inset
23880
23881  [
23882 \begin_inset Flex Code
23883 status collapsed
23884
23885 \begin_layout Plain Layout
23886
23887 \change_inserted -584632292 1615846730
23888
23889 \emph on
23890 inherited
23891 \emph default
23892 , true, false
23893 \change_unchanged
23894
23895 \end_layout
23896
23897 \end_inset
23898
23899 ] Whether the contents of this argument should be output in raw form, meaning
23900  without special translations that \SpecialChar LaTeX
23901  would require.
23902  By default, the 
23903 \begin_inset Flex Code
23904 status collapsed
23905
23906 \begin_layout Plain Layout
23907
23908 \change_inserted -584632292 1615846730
23909 PassThru
23910 \change_unchanged
23911
23912 \end_layout
23913
23914 \end_inset
23915
23916  status is inherited by the inset or paragraph layout the argument belongs
23917  to, true and false change the status for the given argument only.
23918 \end_layout
23919
23920 \begin_layout Itemize
23921
23922 \change_inserted -584632292 1615846730
23923 \begin_inset Flex Code
23924 status collapsed
23925
23926 \begin_layout Plain Layout
23927
23928 \change_inserted -584632292 1615846730
23929 PassThruChars
23930 \change_unchanged
23931
23932 \end_layout
23933
23934 \end_inset
23935
23936  [
23937 \begin_inset Flex Code
23938 status collapsed
23939
23940 \begin_layout Plain Layout
23941
23942 \change_inserted -584632292 1615846730
23943 string of characters
23944 \change_unchanged
23945
23946 \end_layout
23947
23948 \end_inset
23949
23950 ]
23951 \family typewriter
23952  
23953 \family default
23954 Defines individual characters
23955 \begin_inset Newline linebreak
23956 \end_inset
23957
23958 that should be output in raw form, meaning without special translations
23959  that \SpecialChar LaTeX
23960  would require.
23961  Note that, contrary to PassThru, this needs to be explicitly defined for
23962  arguments.
23963  That is, arguments do not inherit PassThruChars from their parent inset
23964  or layout.
23965 \end_layout
23966
23967 \begin_layout Itemize
23968
23969 \change_inserted -584632292 1615846730
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974
23975 \change_inserted -584632292 1615846730
23976 IsTocCaption
23977 \change_unchanged
23978
23979 \end_layout
23980
23981 \end_inset
23982
23983  [
23984 \begin_inset Flex Code
23985 status collapsed
23986
23987 \begin_layout Plain Layout
23988
23989 \change_inserted -584632292 1615846730
23990
23991 \emph on
23992 0
23993 \change_unchanged
23994
23995 \end_layout
23996
23997 \end_inset
23998
23999 ,
24000 \begin_inset space \thinspace{}
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 1
24011 \change_unchanged
24012
24013 \end_layout
24014
24015 \end_inset
24016
24017 ] If this is set to 1, the argument will output its content in the corresponding
24018  item in the table of contents.
24019  See AddToToc.
24020 \end_layout
24021
24022 \begin_layout Standard
24023
24024 \change_inserted -584632292 1615846730
24025 By default, the text entered in the \SpecialChar LyX
24026  workarea in the respective layout is
24027  the last (mandatory) argument of a command if the 
24028 \begin_inset Flex Code
24029 status collapsed
24030
24031 \begin_layout Plain Layout
24032
24033 \change_inserted -584632292 1615846730
24034 LatexType
24035 \change_unchanged
24036
24037 \end_layout
24038
24039 \end_inset
24040
24041  is 
24042 \begin_inset Flex Code
24043 status collapsed
24044
24045 \begin_layout Plain Layout
24046
24047 \change_inserted -584632292 1615846730
24048 Command
24049 \change_unchanged
24050
24051 \end_layout
24052
24053 \end_inset
24054
24055 .
24056  However, arguments with the prefix 
24057 \begin_inset Flex Code
24058 status collapsed
24059
24060 \begin_layout Plain Layout
24061
24062 \change_inserted -584632292 1615846730
24063 post:
24064 \change_unchanged
24065
24066 \end_layout
24067
24068 \end_inset
24069
24070  are output after this workarea argument.
24071  Note that post-argument numbering restarts at 1, so the first argument
24072  following the workarea argument is 
24073 \begin_inset Flex Code
24074 status collapsed
24075
24076 \begin_layout Plain Layout
24077
24078 \change_inserted -584632292 1615846730
24079 post:1
24080 \change_unchanged
24081
24082 \end_layout
24083
24084 \end_inset
24085
24086 .
24087  Post-arguments are ignored in any other 
24088 \begin_inset Flex Code
24089 status collapsed
24090
24091 \begin_layout Plain Layout
24092
24093 \change_inserted -584632292 1615846730
24094 LatexType
24095 \change_unchanged
24096
24097 \end_layout
24098
24099 \end_inset
24100
24101  than 
24102 \begin_inset Flex Code
24103 status collapsed
24104
24105 \begin_layout Plain Layout
24106
24107 \change_inserted -584632292 1615846730
24108 Command
24109 \change_unchanged
24110
24111 \end_layout
24112
24113 \end_inset
24114
24115 .
24116 \end_layout
24117
24118 \begin_layout Standard
24119
24120 \change_inserted -584632292 1615846730
24121 Arguments for list 
24122 \begin_inset Flex Code
24123 status collapsed
24124
24125 \begin_layout Plain Layout
24126
24127 \change_inserted -584632292 1615846730
24128
24129 \backslash
24130 item
24131 \change_unchanged
24132
24133 \end_layout
24134
24135 \end_inset
24136
24137 s (as in 
24138 \begin_inset Flex Code
24139 status collapsed
24140
24141 \begin_layout Plain Layout
24142
24143 \change_inserted -584632292 1615846730
24144
24145 \backslash
24146 item[foo]
24147 \change_unchanged
24148
24149 \end_layout
24150
24151 \end_inset
24152
24153 ) have the prefix 
24154 \begin_inset Flex Code
24155 status collapsed
24156
24157 \begin_layout Plain Layout
24158
24159 \change_inserted -584632292 1615846730
24160 item:
24161 \change_unchanged
24162
24163 \end_layout
24164
24165 \end_inset
24166
24167  followed by the number (e.
24168 \begin_inset space \thinspace{}
24169 \end_inset
24170
24171 g.
24172 \begin_inset space \space{}
24173 \end_inset
24174
24175
24176 \begin_inset Flex Code
24177 status collapsed
24178
24179 \begin_layout Plain Layout
24180
24181 \change_inserted -584632292 1615846730
24182 Argument item:1
24183 \change_unchanged
24184
24185 \end_layout
24186
24187 \end_inset
24188
24189 ).
24190 \end_layout
24191
24192 \begin_layout Standard
24193
24194 \change_inserted -584632292 1615846730
24195 Finally, there is a special argument type with the prefix 
24196 \begin_inset Flex Code
24197 status collapsed
24198
24199 \begin_layout Plain Layout
24200
24201 \change_inserted -584632292 1615846730
24202 listpreamble:
24203 \change_unchanged
24204
24205 \end_layout
24206
24207 \end_inset
24208
24209 .
24210  It is not really an argument, but uses the argument interface (thus, the
24211  prefix is also followed by a number, e.
24212 \begin_inset space \thinspace{}
24213 \end_inset
24214
24215 g.
24216  
24217 \begin_inset Flex Code
24218 status collapsed
24219
24220 \begin_layout Plain Layout
24221
24222 \change_inserted -584632292 1615846730
24223 Argument listpreamble:1
24224 \change_unchanged
24225
24226 \end_layout
24227
24228 \end_inset
24229
24230 ).
24231  As the name implies, it is targeted at lists such as 
24232 \family sans
24233 Itemize
24234 \family default
24235
24236 \family sans
24237 Enumerate
24238 \family default
24239
24240 \family sans
24241 Description
24242 \family default
24243 , or 
24244 \family sans
24245 Bibliography
24246 \family default
24247 .
24248  Its content will be output at the list start, before the first 
24249 \begin_inset Flex Code
24250 status collapsed
24251
24252 \begin_layout Plain Layout
24253
24254 \change_inserted -584632292 1615846730
24255
24256 \backslash
24257 item
24258 \change_unchanged
24259
24260 \end_layout
24261
24262 \end_inset
24263
24264 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
24265 ).
24266  This way, users can insert redefinitions (of lengths etc.) to individual
24267  lists.
24268  By default, these arguments do not have a delimiter.
24269 \change_unchanged
24270
24271 \end_layout
24272
24273 \begin_layout Subsection
24274 Counters
24275 \begin_inset CommandInset label
24276 LatexCommand label
24277 name "subsec:Counters"
24278
24279 \end_inset
24280
24281
24282 \end_layout
24283
24284 \begin_layout Standard
24285 It is necessary to define the counters (
24286 \begin_inset Flex Noun
24287 status collapsed
24288
24289 \begin_layout Plain Layout
24290 chapter
24291 \end_layout
24292
24293 \end_inset
24294
24295
24296 \begin_inset Flex Noun
24297 status collapsed
24298
24299 \begin_layout Plain Layout
24300 figure
24301 \end_layout
24302
24303 \end_inset
24304
24305 , \SpecialChar ldots
24306 ) in the text class itself.
24307  The standard counters are defined in the file 
24308 \begin_inset Flex Code
24309 status collapsed
24310
24311 \begin_layout Plain Layout
24312 stdcounters.inc
24313 \end_layout
24314
24315 \end_inset
24316
24317 , so you may have to do no more than add
24318 \end_layout
24319
24320 \begin_layout LyX-Code
24321 Input stdcounters.inc
24322 \end_layout
24323
24324 \begin_layout Standard
24325 to your layout file to get them to work.
24326  But if you want to define custom counters, then you can do so.
24327  The counter declaration must begin with:
24328 \end_layout
24329
24330 \begin_layout LyX-Code
24331 Counter CounterName
24332 \end_layout
24333
24334 \begin_layout Standard
24335 where of course `
24336 \begin_inset Flex Code
24337 status collapsed
24338
24339 \begin_layout Plain Layout
24340 CounterName
24341 \end_layout
24342
24343 \end_inset
24344
24345 ' is replaced by the name of the counter.
24346  And it must end with 
24347 \begin_inset Quotes eld
24348 \end_inset
24349
24350
24351 \begin_inset Flex Code
24352 status collapsed
24353
24354 \begin_layout Plain Layout
24355 End
24356 \end_layout
24357
24358 \end_inset
24359
24360
24361 \begin_inset Quotes erd
24362 \end_inset
24363
24364 .
24365  The following parameters can also be used:
24366 \end_layout
24367
24368 \begin_layout Description
24369 \begin_inset Flex Code
24370 status collapsed
24371
24372 \begin_layout Plain Layout
24373 InitialValue
24374 \end_layout
24375
24376 \end_inset
24377
24378  [
24379 \begin_inset Flex Code
24380 status collapsed
24381
24382 \begin_layout Plain Layout
24383 int=1
24384 \end_layout
24385
24386 \end_inset
24387
24388 ] Sets the initial value for the counter, to which it will be reset whenever
24389  that happens.
24390  Normally, one will want the default, 1.
24391 \end_layout
24392
24393 \begin_layout Description
24394 \begin_inset Flex Code
24395 status collapsed
24396
24397 \begin_layout Plain Layout
24398 LabelString
24399 \end_layout
24400
24401 \end_inset
24402
24403  [
24404 \begin_inset Flex Code
24405 status collapsed
24406
24407 \begin_layout Plain Layout
24408 string
24409 \end_layout
24410
24411 \end_inset
24412
24413 =
24414 \begin_inset Quotes erd
24415 \end_inset
24416
24417
24418 \begin_inset Quotes erd
24419 \end_inset
24420
24421 ] When defined, this string defines how the counter is displayed.
24422  Setting this value sets 
24423 \begin_inset Flex Code
24424 status collapsed
24425
24426 \begin_layout Plain Layout
24427 LabelStringAppendix
24428 \end_layout
24429
24430 \end_inset
24431
24432  to the same value.
24433  The following special constructs can be used in the string:
24434 \end_layout
24435
24436 \begin_deeper
24437 \begin_layout Itemize
24438 \begin_inset Flex Code
24439 status collapsed
24440
24441 \begin_layout Plain Layout
24442
24443 \backslash
24444 thecounter
24445 \end_layout
24446
24447 \end_inset
24448
24449  will be replaced by the expansion of the 
24450 \begin_inset Flex Code
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454 LabelString
24455 \end_layout
24456
24457 \end_inset
24458
24459  (or 
24460 \begin_inset Flex Code
24461 status collapsed
24462
24463 \begin_layout Plain Layout
24464 LabelStringAppendix
24465 \end_layout
24466
24467 \end_inset
24468
24469 ) of the counter 
24470 \begin_inset Flex Code
24471 status collapsed
24472
24473 \begin_layout Plain Layout
24474 counter
24475 \end_layout
24476
24477 \end_inset
24478
24479 .
24480  
24481 \end_layout
24482
24483 \begin_layout Itemize
24484 counter values can be expressed using \SpecialChar LaTeX
24485 -like macros
24486 \begin_inset Newline newline
24487 \end_inset
24488
24489
24490 \begin_inset Flex Code
24491 status collapsed
24492
24493 \begin_layout Plain Layout
24494
24495 \backslash
24496
24497 \emph on
24498 numbertype
24499 \emph default
24500 {
24501 \emph on
24502 counter
24503 \emph default
24504 }
24505 \end_layout
24506
24507 \end_inset
24508
24509 , where 
24510 \begin_inset Flex Code
24511 status collapsed
24512
24513 \begin_layout Plain Layout
24514
24515 \emph on
24516 numbertype
24517 \end_layout
24518
24519 \end_inset
24520
24521  can be:
24522 \begin_inset Foot
24523 status collapsed
24524
24525 \begin_layout Plain Layout
24526
24527 \family roman
24528 \series medium
24529 \shape up
24530 \size normal
24531 \emph off
24532 \bar no
24533 \noun off
24534 \color none
24535 Actually, the situation is a bit more complicated: any
24536 \family default
24537 \series default
24538 \shape default
24539 \emph default
24540 \bar default
24541  
24542 \size default
24543 \emph on
24544 \noun default
24545 \color inherit
24546 numbertype
24547 \family roman
24548 \series medium
24549 \shape up
24550 \size normal
24551 \emph off
24552 \bar no
24553 \noun off
24554  other than those described below will produce arabic numerals.
24555  It would not be surprising to see this change in the future.
24556 \end_layout
24557
24558 \end_inset
24559
24560  
24561 \begin_inset Flex Code
24562 status collapsed
24563
24564 \begin_layout Plain Layout
24565 arabic
24566 \end_layout
24567
24568 \end_inset
24569
24570 : 1, 2, 3,\SpecialChar ldots
24571
24572 \begin_inset Flex Code
24573 status collapsed
24574
24575 \begin_layout Plain Layout
24576 alph
24577 \end_layout
24578
24579 \end_inset
24580
24581  for lower-case letters: a, b, c, \SpecialChar ldots
24582
24583 \begin_inset Flex Code
24584 status collapsed
24585
24586 \begin_layout Plain Layout
24587 Alph
24588 \end_layout
24589
24590 \end_inset
24591
24592  for upper-case letters: A, B, C, \SpecialChar ldots
24593
24594 \begin_inset Flex Code
24595 status collapsed
24596
24597 \begin_layout Plain Layout
24598 roman
24599 \end_layout
24600
24601 \end_inset
24602
24603  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
24604
24605 \begin_inset Flex Code
24606 status collapsed
24607
24608 \begin_layout Plain Layout
24609 Roman
24610 \end_layout
24611
24612 \end_inset
24613
24614  for upper-case roman numerals: I, II, III\SpecialChar ldots
24615
24616 \begin_inset Flex Code
24617 status collapsed
24618
24619 \begin_layout Plain Layout
24620 hebrew
24621 \end_layout
24622
24623 \end_inset
24624
24625  for hebrew numerals.
24626 \end_layout
24627
24628 \end_deeper
24629 \begin_layout Standard
24630 If LabelString is not defined, a default value is constructed as follows:
24631  if the counter has a 
24632 \change_deleted 731793113 1604355218
24633 master
24634 \change_inserted 731793113 1604355221
24635 parent
24636 \change_unchanged
24637  counter 
24638 \begin_inset Flex Code
24639 status collapsed
24640
24641 \begin_layout Plain Layout
24642
24643 \change_deleted 731793113 1604355223
24644 master
24645 \change_inserted 731793113 1604355226
24646 parent
24647 \change_unchanged
24648
24649 \end_layout
24650
24651 \end_inset
24652
24653  (defined via 
24654 \begin_inset Flex Code
24655 status collapsed
24656
24657 \begin_layout Plain Layout
24658 Within
24659 \end_layout
24660
24661 \end_inset
24662
24663 ), the string
24664 \begin_inset Newline newline
24665 \end_inset
24666
24667
24668 \begin_inset Flex Code
24669 status collapsed
24670
24671 \begin_layout Plain Layout
24672
24673 \backslash
24674 the
24675 \change_inserted 731793113 1604355228
24676 parent
24677 \change_deleted 731793113 1604355230
24678 master
24679 \change_unchanged
24680 .
24681 \backslash
24682 arabic{counter}
24683 \end_layout
24684
24685 \end_inset
24686
24687  is used; otherwise the string 
24688 \begin_inset Flex Code
24689 status collapsed
24690
24691 \begin_layout Plain Layout
24692
24693 \backslash
24694 arabic{counter}
24695 \end_layout
24696
24697 \end_inset
24698
24699  is used.
24700 \end_layout
24701
24702 \begin_layout Description
24703 \begin_inset Flex Code
24704 status collapsed
24705
24706 \begin_layout Plain Layout
24707 LabelStringAppendix
24708 \end_layout
24709
24710 \end_inset
24711
24712  [
24713 \begin_inset Flex Code
24714 status collapsed
24715
24716 \begin_layout Plain Layout
24717 string
24718 \end_layout
24719
24720 \end_inset
24721
24722
24723 \begin_inset Quotes eld
24724 \end_inset
24725
24726
24727 \begin_inset Quotes erd
24728 \end_inset
24729
24730 ] Same as 
24731 \begin_inset Flex Code
24732 status collapsed
24733
24734 \begin_layout Plain Layout
24735 LabelString
24736 \end_layout
24737
24738 \end_inset
24739
24740 , but for use in the Appendix.
24741 \change_inserted -584632292 1607202551
24742
24743 \end_layout
24744
24745 \begin_layout Description
24746
24747 \change_inserted -584632292 1607202682
24748 \begin_inset Flex Code
24749 status open
24750
24751 \begin_layout Plain Layout
24752 LaTeXName
24753 \end_layout
24754
24755 \end_inset
24756
24757  [
24758 \begin_inset Flex Code
24759 status open
24760
24761 \begin_layout Plain Layout
24762
24763 \change_inserted -584632292 1607202576
24764 string
24765 \change_unchanged
24766
24767 \end_layout
24768
24769 \end_inset
24770
24771  = 
24772 \begin_inset Quotes eld
24773 \end_inset
24774
24775
24776 \begin_inset Quotes erd
24777 \end_inset
24778
24779 ] The counter name as used in \SpecialChar LaTeX
24780 .
24781  (E.g., in \SpecialChar LyX
24782 , there is a counter named `theorem', but it is output to \SpecialChar LaTeX
24783  as `thm'.)
24784 \change_unchanged
24785
24786 \end_layout
24787
24788 \begin_layout Description
24789 \begin_inset Flex Code
24790 status collapsed
24791
24792 \begin_layout Plain Layout
24793 PrettyFormat
24794 \end_layout
24795
24796 \end_inset
24797
24798  [
24799 \begin_inset Flex Code
24800 status collapsed
24801
24802 \begin_layout Plain Layout
24803 string
24804 \end_layout
24805
24806 \end_inset
24807
24808 =
24809 \begin_inset Quotes erd
24810 \end_inset
24811
24812
24813 \begin_inset Quotes erd
24814 \end_inset
24815
24816 ] A format for use with formatted references to this counter.
24817  For example, one might want to have references to section numbers appear
24818  as 
24819 \begin_inset Quotes eld
24820 \end_inset
24821
24822 Section 2.4
24823 \begin_inset Quotes erd
24824 \end_inset
24825
24826 .
24827  The string should contain 
24828 \begin_inset Quotes eld
24829 \end_inset
24830
24831 ##
24832 \begin_inset Quotes erd
24833 \end_inset
24834
24835 .
24836  This will be replaced by the counter number itself.
24837  So, for sections, it would be: Section ##.
24838 \end_layout
24839
24840 \begin_layout Description
24841 \begin_inset Flex Code
24842 status collapsed
24843
24844 \begin_layout Plain Layout
24845 Within
24846 \end_layout
24847
24848 \end_inset
24849
24850  [
24851 \begin_inset Flex Code
24852 status collapsed
24853
24854 \begin_layout Plain Layout
24855 string
24856 \end_layout
24857
24858 \end_inset
24859
24860 =
24861 \begin_inset Quotes erd
24862 \end_inset
24863
24864
24865 \begin_inset Quotes erd
24866 \end_inset
24867
24868 ] If this is set to the name of another counter, the present counter will
24869  be reset every time the other one is increased.
24870  For example, 
24871 \begin_inset Flex Code
24872 status collapsed
24873
24874 \begin_layout Plain Layout
24875 subsection
24876 \end_layout
24877
24878 \end_inset
24879
24880  is numbered inside 
24881 \begin_inset Flex Code
24882 status collapsed
24883
24884 \begin_layout Plain Layout
24885 section
24886 \end_layout
24887
24888 \end_inset
24889
24890 .
24891 \end_layout
24892
24893 \begin_layout Subsection
24894 Font description
24895 \begin_inset CommandInset label
24896 LatexCommand label
24897 name "subsec:Font-description"
24898
24899 \end_inset
24900
24901
24902 \end_layout
24903
24904 \begin_layout Standard
24905 A font description looks like this:
24906 \end_layout
24907
24908 \begin_layout LyX-Code
24909 Font 
24910 \family roman
24911 \emph on
24912 or
24913 \family default
24914 \emph default
24915  LabelFont
24916 \emph on
24917  
24918 \family roman
24919 or
24920 \family default
24921 \emph default
24922  DefaultFont
24923 \end_layout
24924
24925 \begin_layout LyX-Code
24926  ...
24927 \end_layout
24928
24929 \begin_layout LyX-Code
24930 EndFont
24931 \end_layout
24932
24933 \begin_layout Standard
24934 The following commands are available:
24935 \end_layout
24936
24937 \begin_layout Description
24938 \begin_inset Flex Code
24939 status collapsed
24940
24941 \begin_layout Plain Layout
24942 Color
24943 \end_layout
24944
24945 \end_inset
24946
24947  [
24948 \change_deleted -712698321 1607682984
24949
24950 \begin_inset Flex Code
24951 status collapsed
24952
24953 \begin_layout Plain Layout
24954
24955 \emph on
24956 none
24957 \end_layout
24958
24959 \end_inset
24960
24961
24962 \begin_inset Flex Code
24963 status collapsed
24964
24965 \begin_layout Plain Layout
24966 black
24967 \end_layout
24968
24969 \end_inset
24970
24971
24972 \begin_inset Flex Code
24973 status collapsed
24974
24975 \begin_layout Plain Layout
24976 white
24977 \end_layout
24978
24979 \end_inset
24980
24981
24982 \begin_inset Flex Code
24983 status collapsed
24984
24985 \begin_layout Plain Layout
24986 red
24987 \end_layout
24988
24989 \end_inset
24990
24991
24992 \begin_inset Flex Code
24993 status collapsed
24994
24995 \begin_layout Plain Layout
24996 green
24997 \end_layout
24998
24999 \end_inset
25000
25001
25002 \begin_inset Flex Code
25003 status collapsed
25004
25005 \begin_layout Plain Layout
25006 blue
25007 \end_layout
25008
25009 \end_inset
25010
25011
25012 \begin_inset Flex Code
25013 status collapsed
25014
25015 \begin_layout Plain Layout
25016 cyan
25017 \end_layout
25018
25019 \end_inset
25020
25021
25022 \begin_inset Flex Code
25023 status collapsed
25024
25025 \begin_layout Plain Layout
25026 magenta
25027 \end_layout
25028
25029 \end_inset
25030
25031
25032 \begin_inset Flex Code
25033 status collapsed
25034
25035 \begin_layout Plain Layout
25036 yellow
25037 \end_layout
25038
25039 \end_inset
25040
25041
25042 \begin_inset Flex Code
25043 status collapsed
25044
25045 \begin_layout Plain Layout
25046 brown
25047 \end_layout
25048
25049 \end_inset
25050
25051
25052 \begin_inset Flex Code
25053 status collapsed
25054
25055 \begin_layout Plain Layout
25056 darkgray
25057 \end_layout
25058
25059 \end_inset
25060
25061
25062 \begin_inset Flex Code
25063 status collapsed
25064
25065 \begin_layout Plain Layout
25066 gray
25067 \end_layout
25068
25069 \end_inset
25070
25071
25072 \begin_inset Flex Code
25073 status collapsed
25074
25075 \begin_layout Plain Layout
25076 lightgray
25077 \end_layout
25078
25079 \end_inset
25080
25081
25082 \begin_inset Flex Code
25083 status collapsed
25084
25085 \begin_layout Plain Layout
25086 lime
25087 \end_layout
25088
25089 \end_inset
25090
25091
25092 \begin_inset Flex Code
25093 status collapsed
25094
25095 \begin_layout Plain Layout
25096 orange
25097 \end_layout
25098
25099 \end_inset
25100
25101
25102 \begin_inset Flex Code
25103 status collapsed
25104
25105 \begin_layout Plain Layout
25106 olive
25107 \end_layout
25108
25109 \end_inset
25110
25111
25112 \begin_inset Flex Code
25113 status collapsed
25114
25115 \begin_layout Plain Layout
25116 pink
25117 \end_layout
25118
25119 \end_inset
25120
25121
25122 \begin_inset Flex Code
25123 status collapsed
25124
25125 \begin_layout Plain Layout
25126 purple
25127 \end_layout
25128
25129 \end_inset
25130
25131
25132 \begin_inset Flex Code
25133 status collapsed
25134
25135 \begin_layout Plain Layout
25136 teal
25137 \end_layout
25138
25139 \end_inset
25140
25141
25142 \begin_inset Flex Code
25143 status collapsed
25144
25145 \begin_layout Plain Layout
25146 violet
25147 \end_layout
25148
25149 \end_inset
25150
25151
25152 \change_inserted -712698321 1607683139
25153
25154 \begin_inset Flex Code
25155 status collapsed
25156
25157 \begin_layout Plain Layout
25158
25159 \change_inserted -712698321 1607683135
25160 string
25161 \change_unchanged
25162
25163 \end_layout
25164
25165 \end_inset
25166
25167 ] See appendix
25168 \begin_inset space ~
25169 \end_inset
25170
25171
25172 \begin_inset CommandInset ref
25173 LatexCommand ref
25174 reference "chap:Names-of-colors"
25175 plural "false"
25176 caps "false"
25177 noprefix "false"
25178
25179 \end_inset
25180
25181  for 
25182 \change_deleted -712698321 1607683144
25183 ]
25184 \change_inserted -712698321 1607683146
25185 valid arguments.
25186 \change_unchanged
25187
25188 \end_layout
25189
25190 \begin_layout Description
25191 \begin_inset Flex Code
25192 status collapsed
25193
25194 \begin_layout Plain Layout
25195 Family
25196 \end_layout
25197
25198 \end_inset
25199
25200  [
25201 \begin_inset Flex Code
25202 status collapsed
25203
25204 \begin_layout Plain Layout
25205
25206 \emph on
25207 Roman
25208 \end_layout
25209
25210 \end_inset
25211
25212
25213 \begin_inset Flex Code
25214 status collapsed
25215
25216 \begin_layout Plain Layout
25217 Sans
25218 \end_layout
25219
25220 \end_inset
25221
25222
25223 \begin_inset Flex Code
25224 status collapsed
25225
25226 \begin_layout Plain Layout
25227 Typewriter
25228 \end_layout
25229
25230 \end_inset
25231
25232 ]
25233 \end_layout
25234
25235 \begin_layout Description
25236 \begin_inset Flex Code
25237 status collapsed
25238
25239 \begin_layout Plain Layout
25240 Misc
25241 \end_layout
25242
25243 \end_inset
25244
25245  [
25246 \begin_inset Flex Code
25247 status collapsed
25248
25249 \begin_layout Plain Layout
25250 string
25251 \end_layout
25252
25253 \end_inset
25254
25255 ] Valid arguments are: 
25256 \begin_inset Flex Code
25257 status collapsed
25258
25259 \begin_layout Plain Layout
25260 emph
25261 \end_layout
25262
25263 \end_inset
25264
25265
25266 \begin_inset Flex Code
25267 status collapsed
25268
25269 \begin_layout Plain Layout
25270 noun
25271 \end_layout
25272
25273 \end_inset
25274
25275
25276 \begin_inset Flex Code
25277 status collapsed
25278
25279 \begin_layout Plain Layout
25280 strikeout
25281 \end_layout
25282
25283 \end_inset
25284
25285
25286 \begin_inset Flex Code
25287 status collapsed
25288
25289 \begin_layout Plain Layout
25290 underbar
25291 \end_layout
25292
25293 \end_inset
25294
25295
25296 \begin_inset Flex Code
25297 status collapsed
25298
25299 \begin_layout Plain Layout
25300 uuline
25301 \end_layout
25302
25303 \end_inset
25304
25305
25306 \begin_inset Flex Code
25307 status collapsed
25308
25309 \begin_layout Plain Layout
25310 uwave
25311 \end_layout
25312
25313 \end_inset
25314
25315
25316 \begin_inset Flex Code
25317 status collapsed
25318
25319 \begin_layout Plain Layout
25320 no_emph
25321 \end_layout
25322
25323 \end_inset
25324
25325
25326 \begin_inset Flex Code
25327 status collapsed
25328
25329 \begin_layout Plain Layout
25330 no_noun
25331 \end_layout
25332
25333 \end_inset
25334
25335
25336 \begin_inset Flex Code
25337 status collapsed
25338
25339 \begin_layout Plain Layout
25340 no_strikeout
25341 \end_layout
25342
25343 \end_inset
25344
25345
25346 \begin_inset Flex Code
25347 status collapsed
25348
25349 \begin_layout Plain Layout
25350 no_bar
25351 \end_layout
25352
25353 \end_inset
25354
25355
25356 \begin_inset Flex Code
25357 status collapsed
25358
25359 \begin_layout Plain Layout
25360 no_uuline
25361 \end_layout
25362
25363 \end_inset
25364
25365  and 
25366 \begin_inset Flex Code
25367 status collapsed
25368
25369 \begin_layout Plain Layout
25370 no_uwave
25371 \end_layout
25372
25373 \end_inset
25374
25375 .
25376  Each of these turns on or off the corresponding attribute.
25377  For example, 
25378 \begin_inset Flex Code
25379 status collapsed
25380
25381 \begin_layout Plain Layout
25382 emph
25383 \end_layout
25384
25385 \end_inset
25386
25387  turns on emphasis, and 
25388 \begin_inset Flex Code
25389 status collapsed
25390
25391 \begin_layout Plain Layout
25392 no_emph
25393 \end_layout
25394
25395 \end_inset
25396
25397  turns it off.
25398  
25399 \begin_inset Newline newline
25400 \end_inset
25401
25402 If the latter seems puzzling, remember that the font settings for the present
25403  context are generally inherited from the surrounding context.
25404  So 
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409 no_emph
25410 \end_layout
25411
25412 \end_inset
25413
25414  would turn off the emphasis that was anyway in effect, say, in a theorem
25415  environment.
25416 \end_layout
25417
25418 \begin_layout Description
25419 \begin_inset Flex Code
25420 status collapsed
25421
25422 \begin_layout Plain Layout
25423 Series
25424 \end_layout
25425
25426 \end_inset
25427
25428  [
25429 \begin_inset Flex Code
25430 status collapsed
25431
25432 \begin_layout Plain Layout
25433
25434 \emph on
25435 Medium
25436 \end_layout
25437
25438 \end_inset
25439
25440
25441 \begin_inset Flex Code
25442 status collapsed
25443
25444 \begin_layout Plain Layout
25445 Bold
25446 \end_layout
25447
25448 \end_inset
25449
25450
25451 \end_layout
25452
25453 \begin_layout Description
25454 \begin_inset Flex Code
25455 status collapsed
25456
25457 \begin_layout Plain Layout
25458 Shape
25459 \end_layout
25460
25461 \end_inset
25462
25463  [
25464 \begin_inset Flex Code
25465 status collapsed
25466
25467 \begin_layout Plain Layout
25468
25469 \emph on
25470 Up
25471 \end_layout
25472
25473 \end_inset
25474
25475
25476 \begin_inset Flex Code
25477 status collapsed
25478
25479 \begin_layout Plain Layout
25480 Italic
25481 \end_layout
25482
25483 \end_inset
25484
25485
25486 \begin_inset Flex Code
25487 status collapsed
25488
25489 \begin_layout Plain Layout
25490 SmallCaps
25491 \end_layout
25492
25493 \end_inset
25494
25495
25496 \begin_inset Flex Code
25497 status collapsed
25498
25499 \begin_layout Plain Layout
25500 Slanted
25501 \end_layout
25502
25503 \end_inset
25504
25505
25506 \end_layout
25507
25508 \begin_layout Description
25509 \begin_inset Flex Code
25510 status collapsed
25511
25512 \begin_layout Plain Layout
25513 Size
25514 \end_layout
25515
25516 \end_inset
25517
25518  [
25519 \begin_inset Flex Code
25520 status collapsed
25521
25522 \begin_layout Plain Layout
25523 tiny
25524 \end_layout
25525
25526 \end_inset
25527
25528
25529 \begin_inset Flex Code
25530 status collapsed
25531
25532 \begin_layout Plain Layout
25533 small
25534 \end_layout
25535
25536 \end_inset
25537
25538
25539 \begin_inset Flex Code
25540 status collapsed
25541
25542 \begin_layout Plain Layout
25543
25544 \emph on
25545 normal
25546 \end_layout
25547
25548 \end_inset
25549
25550
25551 \begin_inset Flex Code
25552 status collapsed
25553
25554 \begin_layout Plain Layout
25555 large
25556 \end_layout
25557
25558 \end_inset
25559
25560
25561 \begin_inset Flex Code
25562 status collapsed
25563
25564 \begin_layout Plain Layout
25565 larger
25566 \end_layout
25567
25568 \end_inset
25569
25570
25571 \begin_inset Flex Code
25572 status collapsed
25573
25574 \begin_layout Plain Layout
25575 largest
25576 \end_layout
25577
25578 \end_inset
25579
25580
25581 \begin_inset Flex Code
25582 status collapsed
25583
25584 \begin_layout Plain Layout
25585 huge
25586 \end_layout
25587
25588 \end_inset
25589
25590
25591 \begin_inset Flex Code
25592 status collapsed
25593
25594 \begin_layout Plain Layout
25595 giant
25596 \end_layout
25597
25598 \end_inset
25599
25600 ]
25601 \end_layout
25602
25603 \begin_layout Subsection
25604 \begin_inset CommandInset label
25605 LatexCommand label
25606 name "subsec:Citation-engine-description"
25607
25608 \end_inset
25609
25610 Cite engine description
25611 \end_layout
25612
25613 \begin_layout Standard
25614 The 
25615 \begin_inset Flex Code
25616 status collapsed
25617
25618 \begin_layout Plain Layout
25619 CiteEngine
25620 \end_layout
25621
25622 \end_inset
25623
25624  blocks, as used mainly in cite engine files (see 
25625 \begin_inset CommandInset ref
25626 LatexCommand ref
25627 reference "subsec:Cite-Engine-Files"
25628 plural "false"
25629 caps "false"
25630 noprefix "false"
25631
25632 \end_inset
25633
25634 ), define the citation commands provided by a specific 
25635 \begin_inset Quotes eld
25636 \end_inset
25637
25638 cite engine
25639 \begin_inset Quotes erd
25640 \end_inset
25641
25642 .
25643  A cite engine, in \SpecialChar LyX
25644  terms, is way specific way to format citations, using
25645  numbers, author names and/or years.
25646  Currently, \SpecialChar LyX
25647  supports three such engine types, namely:
25648 \end_layout
25649
25650 \begin_layout Enumerate
25651 \begin_inset Flex Code
25652 status collapsed
25653
25654 \begin_layout Plain Layout
25655 default
25656 \end_layout
25657
25658 \end_inset
25659
25660 : the default Bib\SpecialChar TeX
25661  way to format citations, a simple numeric style (e.
25662 \begin_inset space \thinspace{}
25663 \end_inset
25664
25665 g., 
25666 \begin_inset Quotes eld
25667 \end_inset
25668
25669 [1]
25670 \begin_inset Quotes erd
25671 \end_inset
25672
25673 )
25674 \end_layout
25675
25676 \begin_layout Enumerate
25677 \begin_inset Flex Code
25678 status collapsed
25679
25680 \begin_layout Plain Layout
25681 authoryear
25682 \end_layout
25683
25684 \end_inset
25685
25686 : Harvard-styled citations using author names and publication year (e.
25687 \begin_inset space \thinspace{}
25688 \end_inset
25689
25690 g., 
25691 \begin_inset Quotes eld
25692 \end_inset
25693
25694 Smith and Miller (2017b)
25695 \begin_inset Quotes erd
25696 \end_inset
25697
25698 )
25699 \end_layout
25700
25701 \begin_layout Enumerate
25702 \begin_inset Flex Code
25703 status collapsed
25704
25705 \begin_layout Plain Layout
25706 numerical
25707 \end_layout
25708
25709 \end_inset
25710
25711 : extended numerical citations that also allow for author or title next
25712  to the number (e.
25713 \begin_inset space \thinspace{}
25714 \end_inset
25715
25716 g., 
25717 \begin_inset Quotes eld
25718 \end_inset
25719
25720 Smith and Miller [1]
25721 \begin_inset Quotes erd
25722 \end_inset
25723
25724 )
25725 \end_layout
25726
25727 \begin_layout Standard
25728 \begin_inset Flex Code
25729 status collapsed
25730
25731 \begin_layout Plain Layout
25732 CiteEngine
25733 \end_layout
25734
25735 \end_inset
25736
25737  blocks look like this:
25738 \end_layout
25739
25740 \begin_layout LyX-Code
25741 CiteEngine default
25742 \end_layout
25743
25744 \begin_layout LyX-Code
25745  cite
25746 \end_layout
25747
25748 \begin_layout LyX-Code
25749  Citep*[][]
25750 \end_layout
25751
25752 \begin_layout LyX-Code
25753  citeyearpar[][]=parencite*
25754 \end_layout
25755
25756 \begin_layout LyX-Code
25757  ...
25758 \end_layout
25759
25760 \begin_layout LyX-Code
25761 End
25762 \end_layout
25763
25764 \begin_layout Standard
25765 The tag following 
25766 \begin_inset Flex Code
25767 status collapsed
25768
25769 \begin_layout Plain Layout
25770 CiteEngine
25771 \end_layout
25772
25773 \end_inset
25774
25775  denotes the engine.
25776  The individual lines respectively define a cite command or cite command
25777  paradigm supported by this engine.
25778  The line can be as simple as a cite command that is used both to name the
25779  respective \SpecialChar LyX
25780  command and the \SpecialChar LaTeX
25781  output or more complex in order to differentiate
25782  things.
25783  The full syntax is:
25784 \end_layout
25785
25786 \begin_layout LyX-Code
25787 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
25788 \end_layout
25789
25790 \begin_layout Itemize
25791 \begin_inset Flex Code
25792 status collapsed
25793
25794 \begin_layout Plain Layout
25795 LyXName
25796 \end_layout
25797
25798 \end_inset
25799
25800 : The name as used in the 
25801 \begin_inset Flex Code
25802 status collapsed
25803
25804 \begin_layout Plain Layout
25805 *.lyx
25806 \end_layout
25807
25808 \end_inset
25809
25810  file.
25811 \end_layout
25812
25813 \begin_deeper
25814 \begin_layout Standard
25815 For portability reasons, we try to use the same name for same-formatted
25816  commands in different cite packages (thus many names stem from natbib,
25817  and thus we need to differentiate a 
25818 \begin_inset Flex Code
25819 status collapsed
25820
25821 \begin_layout Plain Layout
25822 latexcmd
25823 \end_layout
25824
25825 \end_inset
25826
25827  sometimes, if the \SpecialChar LaTeX
25828  command names differ).
25829 \end_layout
25830
25831 \end_deeper
25832 \begin_layout Itemize
25833 \begin_inset Flex Code
25834 status collapsed
25835
25836 \begin_layout Plain Layout
25837 alias
25838 \end_layout
25839
25840 \end_inset
25841
25842 : a (comma-separated) list of commands that fall back to the given 
25843 \begin_inset Flex Code
25844 status collapsed
25845
25846 \begin_layout Plain Layout
25847 LyXName
25848 \end_layout
25849
25850 \end_inset
25851
25852  in the current engine.
25853  This eases the switch of citation packages and engines.
25854  The 
25855 \begin_inset Flex Code
25856 status collapsed
25857
25858 \begin_layout Plain Layout
25859 alias
25860 \end_layout
25861
25862 \end_inset
25863
25864  can be compared to 
25865 \begin_inset Flex Code
25866 status collapsed
25867
25868 \begin_layout Plain Layout
25869 ObsoletedBy
25870 \end_layout
25871
25872 \end_inset
25873
25874  in layout definitions.
25875 \end_layout
25876
25877 \begin_layout Itemize
25878 \begin_inset Flex Code
25879 status collapsed
25880
25881 \begin_layout Plain Layout
25882 latexcmd
25883 \end_layout
25884
25885 \end_inset
25886
25887 : The actual \SpecialChar LaTeX
25888  command that is output.
25889  
25890 \end_layout
25891
25892 \begin_layout Standard
25893 \begin_inset Flex Code
25894 status collapsed
25895
25896 \begin_layout Plain Layout
25897 Alias
25898 \end_layout
25899
25900 \end_inset
25901
25902  and 
25903 \begin_inset Flex Code
25904 status collapsed
25905
25906 \begin_layout Plain Layout
25907 latexcmd
25908 \end_layout
25909
25910 \end_inset
25911
25912  are optional.
25913  If no 
25914 \begin_inset Flex Code
25915 status collapsed
25916
25917 \begin_layout Plain Layout
25918 latexcmd
25919 \end_layout
25920
25921 \end_inset
25922
25923  is given, the 
25924 \begin_inset Flex Code
25925 status collapsed
25926
25927 \begin_layout Plain Layout
25928 LyXName
25929 \end_layout
25930
25931 \end_inset
25932
25933  will be output to \SpecialChar LaTeX
25934 .
25935 \end_layout
25936
25937 \begin_layout Standard
25938 Note further:
25939 \end_layout
25940
25941 \begin_layout Itemize
25942 Capitalization indicates that the command also has a capitalized form (
25943 \begin_inset Flex Code
25944 status collapsed
25945
25946 \begin_layout Plain Layout
25947
25948 \backslash
25949 Latexcmd
25950 \end_layout
25951
25952 \end_inset
25953
25954  vs.
25955  
25956 \begin_inset Flex Code
25957 status collapsed
25958
25959 \begin_layout Plain Layout
25960
25961 \backslash
25962 latexcmd
25963 \end_layout
25964
25965 \end_inset
25966
25967 ).
25968  These usually enforce up-casing of name prefixes (
25969 \emph on
25970 von Goethe
25971 \emph default
25972  
25973 \begin_inset Formula $\Rightarrow$
25974 \end_inset
25975
25976  
25977 \emph on
25978 Von Goethe
25979 \emph default
25980 ).
25981 \end_layout
25982
25983 \begin_layout Itemize
25984 Brackets 
25985 \begin_inset Flex Code
25986 status collapsed
25987
25988 \begin_layout Plain Layout
25989 []
25990 \end_layout
25991
25992 \end_inset
25993
25994  indicate the number of optional arguments (there can be 0–2).
25995 \end_layout
25996
25997 \begin_layout Itemize
25998 A star 
25999 \begin_inset Flex Code
26000 status collapsed
26001
26002 \begin_layout Plain Layout
26003 *
26004 \end_layout
26005
26006 \end_inset
26007
26008  indicates there is a starred version of the command (
26009 \begin_inset Flex Code
26010 status collapsed
26011
26012 \begin_layout Plain Layout
26013
26014 \backslash
26015 latexcmd*
26016 \end_layout
26017
26018 \end_inset
26019
26020  vs.
26021  
26022 \begin_inset Flex Code
26023 status collapsed
26024
26025 \begin_layout Plain Layout
26026
26027 \backslash
26028 latexcmd
26029 \end_layout
26030
26031 \end_inset
26032
26033 ).
26034  
26035 \end_layout
26036
26037 \begin_deeper
26038 \begin_layout Standard
26039 By default, the starred version means: Output all authors even if it should
26040  be shortened with 
26041 \begin_inset Quotes eld
26042 \end_inset
26043
26044 et al.
26045 \begin_inset Quotes erd
26046 \end_inset
26047
26048  due to the 
26049 \begin_inset Flex Code
26050 status collapsed
26051
26052 \begin_layout Plain Layout
26053 MaxCiteNames
26054 \end_layout
26055
26056 \end_inset
26057
26058  threshold.
26059 \end_layout
26060
26061 \begin_layout Standard
26062 If the star has a different meaning for a given command, it can be specified
26063  in angle brackets: 
26064 \begin_inset Flex Code
26065 status collapsed
26066
26067 \begin_layout Plain Layout
26068 <!_stardesc!_stardesctooltip>
26069 \end_layout
26070
26071 \end_inset
26072
26073 .
26074  Maximal two translatable macro keywords, marked by the prefix 
26075 \begin_inset Flex Code
26076 status collapsed
26077
26078 \begin_layout Plain Layout
26079 !_
26080 \end_layout
26081
26082 \end_inset
26083
26084 , can be given.
26085  The first points to the string that replaces the 
26086 \begin_inset Quotes eld
26087 \end_inset
26088
26089 Full aut&hor list
26090 \begin_inset Quotes erd
26091 \end_inset
26092
26093  checkbox label in the citation dialog, the second one to an optional tool
26094  tip for this checkbox.
26095  
26096 \end_layout
26097
26098 \begin_layout Standard
26099 Note that these two macros have to be defined in a 
26100 \begin_inset Flex Code
26101 status collapsed
26102
26103 \begin_layout Plain Layout
26104 CiteFormat
26105 \end_layout
26106
26107 \end_inset
26108
26109  (see next section), dropping the 
26110 \begin_inset Flex Code
26111 status collapsed
26112
26113 \begin_layout Plain Layout
26114 !
26115 \end_layout
26116
26117 \end_inset
26118
26119  from the prefix, like this: 
26120 \end_layout
26121
26122 \begin_layout LyX-Code
26123 _stardesc Sta&rred command label
26124 \end_layout
26125
26126 \begin_layout LyX-Code
26127 _stardesctooltip Tooltip for the starred command checkbox.
26128 \end_layout
26129
26130 \end_deeper
26131 \begin_layout Itemize
26132 A dollar sign 
26133 \begin_inset Flex Code
26134 status collapsed
26135
26136 \begin_layout Plain Layout
26137 $
26138 \end_layout
26139
26140 \end_inset
26141
26142  indicates that this command features 
26143 \begin_inset Quotes eld
26144 \end_inset
26145
26146 qualified citation lists
26147 \begin_inset Quotes erd
26148 \end_inset
26149
26150 .
26151  This is a 
26152 \family sans
26153 Biblatex
26154 \family default
26155 -specific feature for multi-reference citations where an individual pre-
26156  and postnote can be given to each reference in the list.
26157  Please refer to the 
26158 \family sans
26159 Biblatex
26160 \family default
26161  manual for details.
26162 \change_inserted -712698321 1526898670
26163
26164 \end_layout
26165
26166 \begin_layout Standard
26167
26168 \change_inserted -712698321 1526899524
26169 If you want to add a cite command to a cite engine (e.
26170 \begin_inset space \thinspace{}
26171 \end_inset
26172
26173 g., add a specific command provided by a class), you can use 
26174 \begin_inset Flex Code
26175 status collapsed
26176
26177 \begin_layout Plain Layout
26178
26179 \change_inserted -712698321 1526898768
26180 AddToCiteEngine <engine type> \SpecialChar ldots
26181  End
26182 \change_unchanged
26183
26184 \end_layout
26185
26186 \end_inset
26187
26188 .
26189  Note that only cite commands that do not exist yet are added.
26190 \change_unchanged
26191
26192 \end_layout
26193
26194 \begin_layout Subsection
26195 \begin_inset CommandInset label
26196 LatexCommand label
26197 name "subsec:Citation-format-description"
26198
26199 \end_inset
26200
26201 Cite format description
26202 \end_layout
26203
26204 \begin_layout Standard
26205 The 
26206 \begin_inset Flex Code
26207 status collapsed
26208
26209 \begin_layout Plain Layout
26210 CiteFormat
26211 \end_layout
26212
26213 \end_inset
26214
26215  blocks are used to describe how bibliographic information should be displayed,
26216  both within \SpecialChar LyX
26217  itself (in the citation dialog and in tooltips, for example)
26218  and in XHTML output.
26219  Such a block might look like this:
26220 \end_layout
26221
26222 \begin_layout LyX-Code
26223 CiteFormat
26224 \end_layout
26225
26226 \begin_layout LyX-Code
26227  article ...
26228 \end_layout
26229
26230 \begin_layout LyX-Code
26231  book ...
26232 \end_layout
26233
26234 \begin_layout LyX-Code
26235 End
26236 \end_layout
26237
26238 \begin_layout Standard
26239 or
26240 \end_layout
26241
26242 \begin_layout LyX-Code
26243 CiteFormat
26244 \end_layout
26245
26246 \begin_layout LyX-Code
26247  cite ...
26248 \end_layout
26249
26250 \begin_layout LyX-Code
26251  citet*[][] ...
26252 \end_layout
26253
26254 \begin_layout LyX-Code
26255 End
26256 \end_layout
26257
26258 \begin_layout Standard
26259 In the first case, the individual lines define how the bibliographic information
26260  associated with an article or book, respectively, is to be displayed, and
26261  such a definition can be given for any 
26262 \begin_inset Quotes els
26263 \end_inset
26264
26265 entry type
26266 \begin_inset Quotes ers
26267 \end_inset
26268
26269  that might be present in a Bib\SpecialChar TeX
26270  file.
26271  \SpecialChar LyX
26272  defines a default format in the source code that will be used if no specific
26273  definition has been given.
26274  \SpecialChar LyX
26275  predefines several formats in the file 
26276 \begin_inset Flex Code
26277 status collapsed
26278
26279 \begin_layout Plain Layout
26280 stdciteformats.inc
26281 \end_layout
26282
26283 \end_inset
26284
26285 , which is included in most of \SpecialChar LyX
26286 's document classes.
26287 \end_layout
26288
26289 \begin_layout Standard
26290 In the second case, the lines define how a specific citation command (in
26291  the example 
26292 \begin_inset Flex Code
26293 status collapsed
26294
26295 \begin_layout Plain Layout
26296
26297 \backslash
26298 cite
26299 \end_layout
26300
26301 \end_inset
26302
26303
26304 \begin_inset Flex Code
26305 status collapsed
26306
26307 \begin_layout Plain Layout
26308
26309 \backslash
26310 citet
26311 \end_layout
26312
26313 \end_inset
26314
26315 ) is to be displayed on the citation inset label, in the citation dialog,
26316  menu or XHTML output.
26317  \SpecialChar LyX
26318  defines such formats for the citation style variants it supports via 
26319 \family sans
26320 Document\SpecialChar menuseparator
26321 Setting\SpecialChar menuseparator
26322 Bibliography\SpecialChar ldots
26323
26324 \family default
26325  in specific 
26326 \begin_inset Flex Code
26327 status collapsed
26328
26329 \begin_layout Plain Layout
26330 *.citeengine
26331 \end_layout
26332
26333 \end_inset
26334
26335  files that are shipped with \SpecialChar LyX
26336  (see 
26337 \begin_inset CommandInset ref
26338 LatexCommand ref
26339 reference "subsec:Cite-Engine-Files"
26340 plural "false"
26341 caps "false"
26342 noprefix "false"
26343
26344 \end_inset
26345
26346 ).
26347 \end_layout
26348
26349 \begin_layout Standard
26350 The definitions use a simple language that allows Bib\SpecialChar TeX
26351  keys to be replaced
26352  with their values.
26353  Keys should be enclosed in 
26354 \begin_inset Flex Code
26355 status collapsed
26356
26357 \begin_layout Plain Layout
26358 %
26359 \end_layout
26360
26361 \end_inset
26362
26363  signs, e.g.: 
26364 \begin_inset Flex Code
26365 status collapsed
26366
26367 \begin_layout Plain Layout
26368 %author%
26369 \end_layout
26370
26371 \end_inset
26372
26373 .
26374  So a simple definition might look like this:
26375 \end_layout
26376
26377 \begin_layout LyX-Code
26378 misc %author%, 
26379 \begin_inset Quotes eld
26380 \end_inset
26381
26382 %title%
26383 \begin_inset Quotes erd
26384 \end_inset
26385
26386 .
26387 \end_layout
26388
26389 \begin_layout Standard
26390 This would print the author, followed by a comma, followed by the title,
26391  in quotes, followed by a period.
26392 \end_layout
26393
26394 \begin_layout Standard
26395 Of course, sometimes you may want to print a key only if it exists.
26396  This can be done by using a conditional construction, such as: 
26397 \begin_inset Flex Code
26398 status collapsed
26399
26400 \begin_layout Plain Layout
26401 {%volume%[[vol.
26402 \begin_inset space ~
26403 \end_inset
26404
26405 %volume%]]}
26406 \end_layout
26407
26408 \end_inset
26409
26410 .
26411  This says: If the 
26412 \begin_inset Flex Code
26413 status collapsed
26414
26415 \begin_layout Plain Layout
26416 volume
26417 \end_layout
26418
26419 \end_inset
26420
26421  key exists, then print 
26422 \begin_inset Quotes eld
26423 \end_inset
26424
26425 vol.
26426 \begin_inset space ~
26427 \end_inset
26428
26429
26430 \begin_inset Quotes erd
26431 \end_inset
26432
26433  followed by the volume key.
26434  It is also possible to have an else clause in the conditional, such as:
26435 \begin_inset Newline newline
26436 \end_inset
26437
26438
26439 \begin_inset Flex Code
26440 status collapsed
26441
26442 \begin_layout Plain Layout
26443 {%author%[[%author%]][[%editor%, ed.]]}
26444 \end_layout
26445
26446 \end_inset
26447
26448 .
26449 \begin_inset Newline newline
26450 \end_inset
26451
26452 Here, the 
26453 \begin_inset Flex Code
26454 status collapsed
26455
26456 \begin_layout Plain Layout
26457 author
26458 \end_layout
26459
26460 \end_inset
26461
26462  key is printed if it exists; otherwise, the editor key is printed, followed
26463  by 
26464 \begin_inset Quotes eld
26465 \end_inset
26466
26467 ,
26468 \begin_inset space ~
26469 \end_inset
26470
26471 ed.
26472 \begin_inset Quotes erd
26473 \end_inset
26474
26475  Note that the key is again enclosed in 
26476 \begin_inset Flex Code
26477 status collapsed
26478
26479 \begin_layout Plain Layout
26480 %
26481 \end_layout
26482
26483 \end_inset
26484
26485  signs; the entire conditional is enclosed in braces; and the if and else
26486  clauses are enclosed in double brackets, 
26487 \begin_inset Quotes eld
26488 \end_inset
26489
26490
26491 \begin_inset Flex Code
26492 status collapsed
26493
26494 \begin_layout Plain Layout
26495 [[
26496 \end_layout
26497
26498 \end_inset
26499
26500
26501 \begin_inset Quotes eld
26502 \end_inset
26503
26504  and 
26505 \begin_inset Quotes eld
26506 \end_inset
26507
26508
26509 \begin_inset Flex Code
26510 status collapsed
26511
26512 \begin_layout Plain Layout
26513 ]]
26514 \end_layout
26515
26516 \end_inset
26517
26518
26519 \begin_inset Quotes erd
26520 \end_inset
26521
26522 .
26523  There must be no space between any of these.
26524 \end_layout
26525
26526 \begin_layout Standard
26527 Next to the entry keys, there are some special keys that can be used for
26528  these conditionals:
26529 \end_layout
26530
26531 \begin_layout Itemize
26532 \begin_inset Flex Code
26533 status collapsed
26534
26535 \begin_layout Plain Layout
26536 {%dialog%[[true]][[false]]}
26537 \end_layout
26538
26539 \end_inset
26540
26541 : process the 
26542 \begin_inset Quotes eld
26543 \end_inset
26544
26545 true
26546 \begin_inset Quotes erd
26547 \end_inset
26548
26549  part for dialogs and menus, the 
26550 \begin_inset Quotes eld
26551 \end_inset
26552
26553 false
26554 \begin_inset Quotes erd
26555 \end_inset
26556
26557  part for other contexts (workarea, export)
26558 \end_layout
26559
26560 \begin_layout Itemize
26561 \begin_inset Flex Code
26562 status collapsed
26563
26564 \begin_layout Plain Layout
26565 {%export%[[true]][[false]]}
26566 \end_layout
26567
26568 \end_inset
26569
26570 : process the 
26571 \begin_inset Quotes eld
26572 \end_inset
26573
26574 true
26575 \begin_inset Quotes erd
26576 \end_inset
26577
26578  part for export and menus, the 
26579 \begin_inset Quotes eld
26580 \end_inset
26581
26582 false
26583 \begin_inset Quotes erd
26584 \end_inset
26585
26586  part for other contexts (workarea, dialog)
26587 \end_layout
26588
26589 \begin_layout Itemize
26590 \begin_inset Flex Code
26591 status collapsed
26592
26593 \begin_layout Plain Layout
26594 {%next%[[true]]}
26595 \end_layout
26596
26597 \end_inset
26598
26599 : process the 
26600 \begin_inset Quotes eld
26601 \end_inset
26602
26603 true
26604 \begin_inset Quotes erd
26605 \end_inset
26606
26607  part if another item follows (e.
26608 \begin_inset space \thinspace{}
26609 \end_inset
26610
26611 g., in a citation with multiple keys)
26612 \end_layout
26613
26614 \begin_layout Itemize
26615 \begin_inset Flex Code
26616 status collapsed
26617
26618 \begin_layout Plain Layout
26619 {%second%[[true]][[false]]}
26620 \end_layout
26621
26622 \end_inset
26623
26624 : process the 
26625 \begin_inset Quotes eld
26626 \end_inset
26627
26628 true
26629 \begin_inset Quotes erd
26630 \end_inset
26631
26632  if this is the second of multiple items, else the 
26633 \begin_inset Quotes eld
26634 \end_inset
26635
26636 false
26637 \begin_inset Quotes erd
26638 \end_inset
26639
26640  part
26641 \end_layout
26642
26643 \begin_layout Itemize
26644 \begin_inset Flex Code
26645 status collapsed
26646
26647 \begin_layout Plain Layout
26648 {%ifstar%[[true]][[false]]}
26649 \end_layout
26650
26651 \end_inset
26652
26653 : process the 
26654 \begin_inset Quotes eld
26655 \end_inset
26656
26657 true
26658 \begin_inset Quotes erd
26659 \end_inset
26660
26661  part for starred citation commands (such as 
26662 \begin_inset Flex Code
26663 status collapsed
26664
26665 \begin_layout Plain Layout
26666
26667 \backslash
26668 cite*
26669 \end_layout
26670
26671 \end_inset
26672
26673 ), the false part for unstarred
26674 \end_layout
26675
26676 \begin_layout Itemize
26677 \begin_inset Flex Code
26678 status collapsed
26679
26680 \begin_layout Plain Layout
26681 {%ifentrytype:<type>%[[true]][[false]]}
26682 \end_layout
26683
26684 \end_inset
26685
26686 : process the 
26687 \begin_inset Quotes eld
26688 \end_inset
26689
26690 true
26691 \begin_inset Quotes erd
26692 \end_inset
26693
26694  if the current entry type matches 
26695 \begin_inset Flex Code
26696 status collapsed
26697
26698 \begin_layout Plain Layout
26699 <type>
26700 \end_layout
26701
26702 \end_inset
26703
26704 , else the false part (e.g., in a citation definition: 
26705 \begin_inset Flex Code
26706 status collapsed
26707
26708 \begin_layout Plain Layout
26709 {%ifentrytype:book%[[this is a book]][[this is no book]]}
26710 \end_layout
26711
26712 \end_inset
26713
26714 )
26715 \end_layout
26716
26717 \begin_layout Itemize
26718 \begin_inset Flex Code
26719 status collapsed
26720
26721 \begin_layout Plain Layout
26722 {%ifmultiple:<authortype>%[[true]][[false]]}
26723 \end_layout
26724
26725 \end_inset
26726
26727 : process the 
26728 \begin_inset Quotes eld
26729 \end_inset
26730
26731 true
26732 \begin_inset Quotes erd
26733 \end_inset
26734
26735  if the current author type (author, editor etc.) has multiple authors, else
26736  the false part (e.g., in a bibliography definition: 
26737 \begin_inset Flex Code
26738 status collapsed
26739
26740 \begin_layout Plain Layout
26741 {%ifmultiple:editor%[[eds.]][[ed.]]}
26742 \end_layout
26743
26744 \end_inset
26745
26746 )
26747 \end_layout
26748
26749 \begin_layout Itemize
26750 \begin_inset Flex Code
26751 status collapsed
26752
26753 \begin_layout Plain Layout
26754 {%ifqualified%[[true]][[false]]}
26755 \end_layout
26756
26757 \end_inset
26758
26759 : process the 
26760 \begin_inset Quotes eld
26761 \end_inset
26762
26763 true
26764 \begin_inset Quotes erd
26765 \end_inset
26766
26767  part if the current citation is a qualified citation list (a specific 
26768 \family sans
26769 Biblatex
26770 \family default
26771  format for multi-reference citations), the false part if this is not the
26772  case.
26773 \end_layout
26774
26775 \begin_layout Standard
26776 We said that 
26777 \begin_inset Flex Code
26778 status collapsed
26779
26780 \begin_layout Plain Layout
26781 %author%
26782 \end_layout
26783
26784 \end_inset
26785
26786  prints the author key as it is recorded in the bibliography file.
26787  This might not be what you want, since it will result in a string such
26788  as 
26789 \begin_inset Quotes eld
26790 \end_inset
26791
26792 Miller, Peter and Smith, Mary and White, Jane
26793 \begin_inset Quotes erd
26794 \end_inset
26795
26796  (since 
26797 \begin_inset Quotes eld
26798 \end_inset
26799
26800 and
26801 \begin_inset Quotes erd
26802 \end_inset
26803
26804  is used by Bib\SpecialChar TeX
26805  to delimit authors).
26806  \SpecialChar LyX
26807  therefore provides some methods to get properly formatted name lists (which
26808  will also get translated).
26809  The following keys are provided:
26810 \end_layout
26811
26812 \begin_layout Enumerate
26813 For name lists with pre- and surname, suitable for the main authors/editors
26814  of a bibliography item.
26815  The 
26816 \begin_inset Flex Code
26817 status collapsed
26818
26819 \begin_layout Plain Layout
26820 <nametype>
26821 \end_layout
26822
26823 \end_inset
26824
26825  part denotes the kind of list that is requested (e.g.
26826  
26827 \begin_inset Flex Code
26828 status collapsed
26829
26830 \begin_layout Plain Layout
26831 <nametype:author>
26832 \end_layout
26833
26834 \end_inset
26835
26836 ):
26837 \end_layout
26838
26839 \begin_deeper
26840 \begin_layout Itemize
26841 \begin_inset Flex Code
26842 status collapsed
26843
26844 \begin_layout Plain Layout
26845 %abbrvnames:<nametype>%
26846 \end_layout
26847
26848 \end_inset
26849
26850 : Provides a name list which is abbreviated (with 
26851 \begin_inset Quotes eld
26852 \end_inset
26853
26854 et al.
26855 \begin_inset Quotes erd
26856 \end_inset
26857
26858 ) when 
26859 \begin_inset Flex Code
26860 status collapsed
26861
26862 \begin_layout Plain Layout
26863 MaxCiteNames
26864 \end_layout
26865
26866 \end_inset
26867
26868  is reached.
26869 \end_layout
26870
26871 \begin_layout Itemize
26872 \begin_inset Flex Code
26873 status collapsed
26874
26875 \begin_layout Plain Layout
26876 %fullnames:<nametype>%
26877 \end_layout
26878
26879 \end_inset
26880
26881 : Provides a full name list (never abbreviated with 
26882 \begin_inset Quotes eld
26883 \end_inset
26884
26885 et al.
26886 \begin_inset Quotes erd
26887 \end_inset
26888
26889 ).
26890 \end_layout
26891
26892 \begin_layout Itemize
26893 \begin_inset Flex Code
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897 %forceabbrvnames:<nametype>%
26898 \end_layout
26899
26900 \end_inset
26901
26902 : Provides a name list which is always abbreviated (with 
26903 \begin_inset Quotes eld
26904 \end_inset
26905
26906 et al.
26907 \begin_inset Quotes erd
26908 \end_inset
26909
26910 ) irrespective of 
26911 \begin_inset Flex Code
26912 status collapsed
26913
26914 \begin_layout Plain Layout
26915 MaxCiteNames
26916 \end_layout
26917
26918 \end_inset
26919
26920 .
26921 \end_layout
26922
26923 \end_deeper
26924 \begin_layout Enumerate
26925 Alternative name lists with pre- and surname, if the order of pre- and surname
26926  inside the bibliography item differs (as in: 
26927 \begin_inset Quotes eld
26928 \end_inset
26929
26930 Miller, John: Some text, in: Mary Smith, ed.: A volume
26931 \begin_inset Quotes erd
26932 \end_inset
26933
26934 ):
26935 \end_layout
26936
26937 \begin_deeper
26938 \begin_layout Itemize
26939 \begin_inset Flex Code
26940 status collapsed
26941
26942 \begin_layout Plain Layout
26943 %abbrvbynames:<nametype>%
26944 \end_layout
26945
26946 \end_inset
26947
26948 : Provides a name list which is abbreviated (with 
26949 \begin_inset Quotes eld
26950 \end_inset
26951
26952 et al.
26953 \begin_inset Quotes erd
26954 \end_inset
26955
26956 ) when 
26957 \begin_inset Flex Code
26958 status collapsed
26959
26960 \begin_layout Plain Layout
26961 MaxCiteNames
26962 \end_layout
26963
26964 \end_inset
26965
26966  is reached.
26967 \end_layout
26968
26969 \begin_layout Itemize
26970 \begin_inset Flex Code
26971 status collapsed
26972
26973 \begin_layout Plain Layout
26974 %fullbynames:<nametype>%
26975 \end_layout
26976
26977 \end_inset
26978
26979 : Provides a full name list (never abbreviated with 
26980 \begin_inset Quotes eld
26981 \end_inset
26982
26983 et al.
26984 \begin_inset Quotes erd
26985 \end_inset
26986
26987 ).
26988 \end_layout
26989
26990 \begin_layout Itemize
26991 \begin_inset Flex Code
26992 status collapsed
26993
26994 \begin_layout Plain Layout
26995 %forceabbrvbynames:<nametype>%
26996 \end_layout
26997
26998 \end_inset
26999
27000 : Provides a name list which is always abbreviated (with 
27001 \begin_inset Quotes eld
27002 \end_inset
27003
27004 et al.
27005 \begin_inset Quotes erd
27006 \end_inset
27007
27008 ) irrespective of 
27009 \begin_inset Flex Code
27010 status collapsed
27011
27012 \begin_layout Plain Layout
27013 MaxCiteNames
27014 \end_layout
27015
27016 \end_inset
27017
27018 .
27019 \end_layout
27020
27021 \end_deeper
27022 \begin_layout Enumerate
27023 And finally name lists which consist of family names only, as used in author-yea
27024 r citation labels.
27025  These do not take a 
27026 \begin_inset Flex Code
27027 status collapsed
27028
27029 \begin_layout Plain Layout
27030 <nametype>
27031 \end_layout
27032
27033 \end_inset
27034
27035  part, but always return either an author list or, if this does not exist,
27036  an editor list (as common in author-year labels):
27037 \end_layout
27038
27039 \begin_deeper
27040 \begin_layout Itemize
27041 \begin_inset Flex Code
27042 status collapsed
27043
27044 \begin_layout Plain Layout
27045 %abbrvciteauthor%
27046 \end_layout
27047
27048 \end_inset
27049
27050 : Provides a name list which is abbreviated (with 
27051 \begin_inset Quotes eld
27052 \end_inset
27053
27054 et al.
27055 \begin_inset Quotes erd
27056 \end_inset
27057
27058 ) when 
27059 \begin_inset Flex Code
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063 MaxCiteNames
27064 \end_layout
27065
27066 \end_inset
27067
27068  is reached.
27069 \end_layout
27070
27071 \begin_layout Itemize
27072 \begin_inset Flex Code
27073 status collapsed
27074
27075 \begin_layout Plain Layout
27076 %fullciteauthor%
27077 \end_layout
27078
27079 \end_inset
27080
27081 : Provides a full name list (never abbreviated with 
27082 \begin_inset Quotes eld
27083 \end_inset
27084
27085 et al.
27086 \begin_inset Quotes erd
27087 \end_inset
27088
27089 ).
27090 \end_layout
27091
27092 \begin_layout Itemize
27093 \begin_inset Flex Code
27094 status collapsed
27095
27096 \begin_layout Plain Layout
27097 %forceabbrvciteauthor%
27098 \end_layout
27099
27100 \end_inset
27101
27102 : Provides a name list which is always abbreviated (with 
27103 \begin_inset Quotes eld
27104 \end_inset
27105
27106 et al.
27107 \begin_inset Quotes erd
27108 \end_inset
27109
27110 ) irrespective of 
27111 \begin_inset Flex Code
27112 status collapsed
27113
27114 \begin_layout Plain Layout
27115 MaxCiteNames
27116 \end_layout
27117
27118 \end_inset
27119
27120 .
27121 \end_layout
27122
27123 \end_deeper
27124 \begin_layout Standard
27125 The order of pre- and surname in the former two lists can be adjusted by
27126  these macros:
27127 \end_layout
27128
27129 \begin_layout Itemize
27130 \begin_inset Flex Code
27131 status collapsed
27132
27133 \begin_layout Plain Layout
27134 !firstnameform %surname%, %prename%
27135 \end_layout
27136
27137 \end_inset
27138
27139  (first author in lists of type 1)
27140 \end_layout
27141
27142 \begin_layout Itemize
27143 \begin_inset Flex Code
27144 status collapsed
27145
27146 \begin_layout Plain Layout
27147 !othernameform %surname%, %prename%
27148 \end_layout
27149
27150 \end_inset
27151
27152  (other authors in lists of type 1)
27153 \end_layout
27154
27155 \begin_layout Itemize
27156 \begin_inset Flex Code
27157 status collapsed
27158
27159 \begin_layout Plain Layout
27160 !firstbynameform %prename% %surname%
27161 \end_layout
27162
27163 \end_inset
27164
27165  (first author in lists of type 2)
27166 \end_layout
27167
27168 \begin_layout Itemize
27169 \begin_inset Flex Code
27170 status collapsed
27171
27172 \begin_layout Plain Layout
27173 !otherbynameform %prename% %surname%
27174 \end_layout
27175
27176 \end_inset
27177
27178  (other authors in lists of type 2)
27179 \end_layout
27180
27181 \begin_layout Standard
27182 This allows you to configure namings like 
27183 \begin_inset Quotes eld
27184 \end_inset
27185
27186 Miller, Peter and Mary Smith: \SpecialChar ldots
27187 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
27188
27189 \begin_inset Quotes erd
27190 \end_inset
27191
27192 .
27193 \end_layout
27194
27195 \begin_layout Standard
27196 There is one other piece of syntax available in definitions, which looks
27197  like this: 
27198 \begin_inset Flex Code
27199 status collapsed
27200
27201 \begin_layout Plain Layout
27202 {!<i>!}
27203 \end_layout
27204
27205 \end_inset
27206
27207 .
27208  This defines a piece of formatting information that is to be used when
27209  creating 
27210 \begin_inset Quotes eld
27211 \end_inset
27212
27213 rich text
27214 \begin_inset Quotes erd
27215 \end_inset
27216
27217 .
27218  Obviously, we do not want to output HTML tags when writing plain text,
27219  so they should be wrapped in 
27220 \begin_inset Quotes eld
27221 \end_inset
27222
27223 {!
27224 \begin_inset Quotes erd
27225 \end_inset
27226
27227  and 
27228 \begin_inset Quotes eld
27229 \end_inset
27230
27231 !}
27232 \begin_inset Quotes erd
27233 \end_inset
27234
27235 .
27236 \end_layout
27237
27238 \begin_layout Standard
27239 Two special sorts of definitions are also possible in a 
27240 \begin_inset Flex Code
27241 status collapsed
27242
27243 \begin_layout Plain Layout
27244 CiteFormat
27245 \end_layout
27246
27247 \end_inset
27248
27249  block.
27250  An example of the first would be:
27251 \end_layout
27252
27253 \begin_layout LyX-Code
27254 !quotetitle 
27255 \begin_inset Quotes eld
27256 \end_inset
27257
27258 %title%
27259 \begin_inset Quotes erd
27260 \end_inset
27261
27262
27263 \end_layout
27264
27265 \begin_layout Standard
27266 This is an abbreviation, or macro, and it can be used by treating it as
27267  if it were a key: 
27268 \begin_inset Flex Code
27269 status collapsed
27270
27271 \begin_layout Plain Layout
27272 %!quotetitle%
27273 \end_layout
27274
27275 \end_inset
27276
27277 .
27278  \SpecialChar LyX
27279  will treat 
27280 \begin_inset Flex Code
27281 status collapsed
27282
27283 \begin_layout Plain Layout
27284 %!quotetitle%
27285 \end_layout
27286
27287 \end_inset
27288
27289  exactly as it would treat its definition.
27290  So, let us issue the obvious 
27291 \emph on
27292 warning
27293 \emph default
27294 .
27295  Do not do this:
27296 \end_layout
27297
27298 \begin_layout LyX-Code
27299 !funfun %funfun%
27300 \end_layout
27301
27302 \begin_layout Standard
27303 or anything like it.
27304  \SpecialChar LyX
27305  shouldn't go into an infinite loop, but it may go into a long one before
27306  it gives up.
27307 \end_layout
27308
27309 \begin_layout Standard
27310 The second sort of special definition might look like this:
27311 \end_layout
27312
27313 \begin_layout LyX-Code
27314 B_pptext pp.
27315 \end_layout
27316
27317 \begin_layout Standard
27318 This defines a translatable piece of text, which allows relevant parts of
27319  the bibliography or citation to be translated.
27320  It can be included in a definition by treating it as a key: 
27321 \begin_inset Flex Code
27322 status collapsed
27323
27324 \begin_layout Plain Layout
27325 %B_pptext%
27326 \end_layout
27327
27328 \end_inset
27329
27330 .
27331  Note that there are two different translation paths: All definitions starting
27332  with 
27333 \begin_inset Flex Code
27334 status collapsed
27335
27336 \begin_layout Plain Layout
27337 B_
27338 \end_layout
27339
27340 \end_inset
27341
27342 , such as in the example above, will be translated to the currently active
27343  buffer language (so the translation will match the generated document).
27344  All definitions starting with underscore only will be translated to the
27345  GUI language.
27346  This is the proper translation for strings that only occur in the dialogs
27347  or on buttons, such as this one:
27348 \end_layout
27349
27350 \begin_layout LyX-Code
27351 _addtobib Add to bibliography only.
27352 \end_layout
27353
27354 \begin_layout Standard
27355 Several of these translatable strings are predefined in 
27356 \begin_inset Flex Code
27357 status collapsed
27358
27359 \begin_layout Plain Layout
27360 stdciteformats.inc
27361 \end_layout
27362
27363 \end_inset
27364
27365  and the diverse 
27366 \begin_inset Flex Code
27367 status collapsed
27368
27369 \begin_layout Plain Layout
27370 *.citeengine
27371 \end_layout
27372
27373 \end_inset
27374
27375  files.
27376  Note that these are not macros, in the sense just defined.
27377  They will not be expanded.
27378 \end_layout
27379
27380 \begin_layout Standard
27381 So here then is an example that uses several of these features:
27382 \begin_inset VSpace defskip
27383 \end_inset
27384
27385
27386 \end_layout
27387
27388 \begin_layout Standard
27389 \noindent
27390
27391 \family sans
27392 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
27393 \end_layout
27394
27395 \begin_layout Standard
27396 \begin_inset VSpace defskip
27397 \end_inset
27398
27399 This defines a macro that prints the author, followed by a comma, if the
27400  
27401 \begin_inset Flex Code
27402 status collapsed
27403
27404 \begin_layout Plain Layout
27405 author
27406 \end_layout
27407
27408 \end_inset
27409
27410  key is defined, or else prints the name of the editor, followed by the
27411  
27412 \begin_inset Flex Code
27413 status collapsed
27414
27415 \begin_layout Plain Layout
27416 B_edtext
27417 \end_layout
27418
27419 \end_inset
27420
27421  or its translation (it is by default 
27422 \begin_inset Quotes eld
27423 \end_inset
27424
27425 ed.
27426 \begin_inset Quotes erd
27427 \end_inset
27428
27429 ), if the 
27430 \begin_inset Flex Code
27431 status collapsed
27432
27433 \begin_layout Plain Layout
27434 editor
27435 \end_layout
27436
27437 \end_inset
27438
27439  key is defined.
27440  Note that this is in fact defined in 
27441 \begin_inset Flex Code
27442 status collapsed
27443
27444 \begin_layout Plain Layout
27445 stdciteformats.inc
27446 \end_layout
27447
27448 \end_inset
27449
27450 , so you can use it in your own definitions, or re-definitions, if you load
27451  that file first.
27452 \end_layout
27453
27454 \begin_layout Section
27455 \begin_inset CommandInset label
27456 LatexCommand label
27457 name "sec:Tags-for-XHTML"
27458
27459 \end_inset
27460
27461 Tags for XHTML output
27462 \end_layout
27463
27464 \begin_layout Standard
27465 As with \SpecialChar LaTeX
27466  or DocBook, the format of \SpecialChar LyX
27467 's XHTML output is also controlled by
27468  layout information.
27469  In general, \SpecialChar LyX
27470  provides sensible defaults and, as mentioned earlier, it will
27471  even construct default CSS style rules from the other layout tags.
27472  For example, \SpecialChar LyX
27473  will attempt to use the information provided in the 
27474 \begin_inset Flex Code
27475 status collapsed
27476
27477 \begin_layout Plain Layout
27478 Font
27479 \end_layout
27480
27481 \end_inset
27482
27483  declaration for the Chapter style to write CSS that will appropriately
27484  format chapter headings.
27485 \end_layout
27486
27487 \begin_layout Standard
27488 In many cases, then, you may not have to do anything at all to get acceptable
27489  XHTML output for your own environments, custom insets, and so forth.
27490  But in some cases you will, and so \SpecialChar LyX
27491  provides a number of layout tags that
27492  can be used to customize the XHTML and CSS that are generated.
27493 \end_layout
27494
27495 \begin_layout Standard
27496 Note that there are two tags, 
27497 \begin_inset Flex Code
27498 status collapsed
27499
27500 \begin_layout Plain Layout
27501 HTMLPreamble
27502 \end_layout
27503
27504 \end_inset
27505
27506  and 
27507 \begin_inset Flex Code
27508 status collapsed
27509
27510 \begin_layout Plain Layout
27511 AddToHTMLPreamble
27512 \end_layout
27513
27514 \end_inset
27515
27516  that may appear outside style and inset declarations.
27517  See 
27518 \begin_inset CommandInset ref
27519 LatexCommand ref
27520 reference "subsec:General-text-class"
27521
27522 \end_inset
27523
27524  for details on these.
27525 \end_layout
27526
27527 \begin_layout Subsection
27528 \begin_inset CommandInset label
27529 LatexCommand label
27530 name "subsec:Paragraph-Style-XHTML"
27531
27532 \end_inset
27533
27534 Paragraph styles
27535 \end_layout
27536
27537 \begin_layout Standard
27538 The sort of XHTML \SpecialChar LyX
27539  outputs for a paragraph depends upon whether we are dealing
27540  with a normal paragraph, a command, or an environment, where this is itself
27541  determined by the contents of the corresponding 
27542 \begin_inset Flex Code
27543 status collapsed
27544
27545 \begin_layout Plain Layout
27546 \SpecialChar LaTeX
27547 Type
27548 \end_layout
27549
27550 \end_inset
27551
27552  tag.
27553  
27554 \end_layout
27555
27556 \begin_layout Standard
27557 For a command or normal paragraph, the output XHTML has the following form:
27558 \end_layout
27559
27560 \begin_layout LyX-Code
27561
27562 \family sans
27563 <tag attr=
27564 \begin_inset Quotes erd
27565 \end_inset
27566
27567 value
27568 \begin_inset Quotes erd
27569 \end_inset
27570
27571 >
27572 \end_layout
27573
27574 \begin_layout LyX-Code
27575
27576 \family sans
27577 <labeltag attr=
27578 \begin_inset Quotes erd
27579 \end_inset
27580
27581 value
27582 \begin_inset Quotes erd
27583 \end_inset
27584
27585 >Label</labeltag>
27586 \end_layout
27587
27588 \begin_layout LyX-Code
27589
27590 \family sans
27591 Contents of the paragraph.
27592 \end_layout
27593
27594 \begin_layout LyX-Code
27595
27596 \family sans
27597 </tag>
27598 \end_layout
27599
27600 \begin_layout Standard
27601 The label tags are of course omitted if the paragraph does not have a label.
27602 \end_layout
27603
27604 \begin_layout Standard
27605 For an environment that is not some sort of list, the XHTML takes this form:
27606 \end_layout
27607
27608 \begin_layout LyX-Code
27609
27610 \family sans
27611 <tag attr=
27612 \begin_inset Quotes erd
27613 \end_inset
27614
27615 value
27616 \begin_inset Quotes erd
27617 \end_inset
27618
27619 >
27620 \end_layout
27621
27622 \begin_layout LyX-Code
27623
27624 \family sans
27625 <itemtag attr=
27626 \begin_inset Quotes erd
27627 \end_inset
27628
27629 value
27630 \begin_inset Quotes erd
27631 \end_inset
27632
27633 ><labeltag attr=
27634 \begin_inset Quotes erd
27635 \end_inset
27636
27637 value
27638 \begin_inset Quotes erd
27639 \end_inset
27640
27641 >Environment Label</labeltag>First paragraph.</itemtag>
27642 \end_layout
27643
27644 \begin_layout LyX-Code
27645
27646 \family sans
27647 <itemtag>Second paragraph.</itemtag>
27648 \end_layout
27649
27650 \begin_layout LyX-Code
27651
27652 \family sans
27653 </tag>
27654 \end_layout
27655
27656 \begin_layout Standard
27657 Note that the label is output only for the first paragraph, as it should
27658  be for a theorem, for example.
27659  
27660 \end_layout
27661
27662 \begin_layout Standard
27663 For a list, we have one of these forms:
27664 \end_layout
27665
27666 \begin_layout LyX-Code
27667
27668 \family sans
27669 <tag attr=
27670 \begin_inset Quotes erd
27671 \end_inset
27672
27673 value
27674 \begin_inset Quotes erd
27675 \end_inset
27676
27677 >
27678 \end_layout
27679
27680 \begin_layout LyX-Code
27681
27682 \family sans
27683 <itemtag attr=
27684 \begin_inset Quotes erd
27685 \end_inset
27686
27687 value
27688 \begin_inset Quotes erd
27689 \end_inset
27690
27691 ><labeltag attr=
27692 \begin_inset Quotes erd
27693 \end_inset
27694
27695 value
27696 \begin_inset Quotes erd
27697 \end_inset
27698
27699 >List Label</labeltag>First item.</itemtag>
27700 \end_layout
27701
27702 \begin_layout LyX-Code
27703
27704 \family sans
27705 <itemtag attr=
27706 \begin_inset Quotes erd
27707 \end_inset
27708
27709 value
27710 \begin_inset Quotes erd
27711 \end_inset
27712
27713 ><labeltag attr=
27714 \begin_inset Quotes erd
27715 \end_inset
27716
27717 value
27718 \begin_inset Quotes erd
27719 \end_inset
27720
27721 >List Label</labeltag>Second item.</itemtag>
27722 \end_layout
27723
27724 \begin_layout LyX-Code
27725
27726 \family sans
27727 </tag>
27728 \end_layout
27729
27730 \begin_layout LyX-Code
27731
27732 \end_layout
27733
27734 \begin_layout LyX-Code
27735
27736 \family sans
27737 <tag attr=
27738 \begin_inset Quotes erd
27739 \end_inset
27740
27741 value
27742 \begin_inset Quotes erd
27743 \end_inset
27744
27745 >
27746 \end_layout
27747
27748 \begin_layout LyX-Code
27749
27750 \family sans
27751 <labeltag attr=
27752 \begin_inset Quotes erd
27753 \end_inset
27754
27755 value
27756 \begin_inset Quotes erd
27757 \end_inset
27758
27759 >List Label</labeltag><itemtag attr=
27760 \begin_inset Quotes erd
27761 \end_inset
27762
27763 value
27764 \begin_inset Quotes erd
27765 \end_inset
27766
27767 >First item.</itemtag>
27768 \end_layout
27769
27770 \begin_layout LyX-Code
27771
27772 \family sans
27773 <labeltag attr=
27774 \begin_inset Quotes erd
27775 \end_inset
27776
27777 value
27778 \begin_inset Quotes erd
27779 \end_inset
27780
27781 >List Label</labeltag><itemtag attr=
27782 \begin_inset Quotes erd
27783 \end_inset
27784
27785 value
27786 \begin_inset Quotes erd
27787 \end_inset
27788
27789 >Second item.</itemtag>
27790 \end_layout
27791
27792 \begin_layout LyX-Code
27793
27794 \family sans
27795 </tag>
27796 \end_layout
27797
27798 \begin_layout Standard
27799 Note the different orders of 
27800 \begin_inset Flex Code
27801 status collapsed
27802
27803 \begin_layout Plain Layout
27804 labeltag
27805 \end_layout
27806
27807 \end_inset
27808
27809  and 
27810 \begin_inset Flex Code
27811 status collapsed
27812
27813 \begin_layout Plain Layout
27814 itemtag
27815 \end_layout
27816
27817 \end_inset
27818
27819 .
27820  Which order we get depends upon the setting of 
27821 \begin_inset Flex Code
27822 status collapsed
27823
27824 \begin_layout Plain Layout
27825 HTMLLabelFirst
27826 \end_layout
27827
27828 \end_inset
27829
27830 : If 
27831 \begin_inset Flex Code
27832 status collapsed
27833
27834 \begin_layout Plain Layout
27835 HTMLLabelFirst
27836 \end_layout
27837
27838 \end_inset
27839
27840  is false (the default), you get the first of these, with the label within
27841  the item; if true, you get the second, with the label outside the item.
27842 \end_layout
27843
27844 \begin_layout Standard
27845 The specific tags and attributes output for each paragraph type can be controlle
27846 d by means of the layout tags we are about to describe.
27847  As mentioned earlier, however, \SpecialChar LyX
27848  uses sensible defaults for many of these,
27849  so you often may not need to do very much to get good XHTML output.
27850  Think of the available tags as there so you can tweak things to your liking.
27851 \end_layout
27852
27853 \begin_layout Description
27854 \begin_inset Flex Code
27855 status collapsed
27856
27857 \begin_layout Plain Layout
27858 HTMLAttr
27859 \end_layout
27860
27861 \end_inset
27862
27863  [
27864 \begin_inset Flex Code
27865 status collapsed
27866
27867 \begin_layout Plain Layout
27868 string
27869 \end_layout
27870
27871 \end_inset
27872
27873 ] Specifies attribute information to be output with the main tag.
27874  For example, 
27875 \begin_inset Quotes eld
27876 \end_inset
27877
27878
27879 \begin_inset Flex Code
27880 status collapsed
27881
27882 \begin_layout Plain Layout
27883 class=`mydiv'
27884 \end_layout
27885
27886 \end_inset
27887
27888
27889 \begin_inset Quotes erd
27890 \end_inset
27891
27892 .
27893  By default, \SpecialChar LyX
27894  will output 
27895 \begin_inset Quotes eld
27896 \end_inset
27897
27898
27899 \begin_inset Flex Code
27900 status collapsed
27901
27902 \begin_layout Plain Layout
27903 class=`layoutname'
27904 \end_layout
27905
27906 \end_inset
27907
27908
27909 \begin_inset Quotes erd
27910 \end_inset
27911
27912 , where 
27913 \begin_inset Flex Code
27914 status collapsed
27915
27916 \begin_layout Plain Layout
27917 layoutname
27918 \end_layout
27919
27920 \end_inset
27921
27922  is the \SpecialChar LyX
27923  name of the layout, made lowercase, for example: chapter.
27924  This should 
27925 \emph on
27926 not
27927 \emph default
27928  contain any style information.
27929  Use 
27930 \begin_inset Flex Code
27931 status collapsed
27932
27933 \begin_layout Plain Layout
27934 HTMLStyle
27935 \end_layout
27936
27937 \end_inset
27938
27939  for that purpose.
27940 \end_layout
27941
27942 \begin_layout Description
27943 \begin_inset Flex Code
27944 status collapsed
27945
27946 \begin_layout Plain Layout
27947 HTMLForceCSS
27948 \end_layout
27949
27950 \end_inset
27951
27952  [
27953 \begin_inset Flex Code
27954 status collapsed
27955
27956 \begin_layout Plain Layout
27957
27958 \emph on
27959 0
27960 \emph default
27961 ,1
27962 \end_layout
27963
27964 \end_inset
27965
27966 ] Whether to output the default CSS information \SpecialChar LyX
27967  generates for this layout,
27968  even if additional information is explicitly provided via 
27969 \begin_inset Flex Code
27970 status collapsed
27971
27972 \begin_layout Plain Layout
27973 HTMLStyle
27974 \end_layout
27975
27976 \end_inset
27977
27978 .
27979  Setting this to 
27980 \begin_inset Flex Code
27981 status collapsed
27982
27983 \begin_layout Plain Layout
27984 1
27985 \end_layout
27986
27987 \end_inset
27988
27989  allows you to alter or augment the generated CSS, rather than to override
27990  it completely.
27991  Default is 
27992 \begin_inset Flex Code
27993 status collapsed
27994
27995 \begin_layout Plain Layout
27996 0
27997 \end_layout
27998
27999 \end_inset
28000
28001 .
28002 \end_layout
28003
28004 \begin_layout Description
28005 \begin_inset Flex Code
28006 status collapsed
28007
28008 \begin_layout Plain Layout
28009 HTMLItem
28010 \end_layout
28011
28012 \end_inset
28013
28014  [
28015 \begin_inset Flex Code
28016 status collapsed
28017
28018 \begin_layout Plain Layout
28019 string
28020 \end_layout
28021
28022 \end_inset
28023
28024 ] The tag to be used for individual paragraphs of environments, replacing
28025  
28026 \begin_inset Flex Code
28027 status collapsed
28028
28029 \begin_layout Plain Layout
28030 itemtag
28031 \end_layout
28032
28033 \end_inset
28034
28035  in the examples above.
28036  Defaults to 
28037 \begin_inset Flex Code
28038 status collapsed
28039
28040 \begin_layout Plain Layout
28041 div
28042 \end_layout
28043
28044 \end_inset
28045
28046 .
28047 \end_layout
28048
28049 \begin_layout Description
28050 \begin_inset Flex Code
28051 status collapsed
28052
28053 \begin_layout Plain Layout
28054 HTMLItemAttr
28055 \end_layout
28056
28057 \end_inset
28058
28059  [
28060 \begin_inset Flex Code
28061 status collapsed
28062
28063 \begin_layout Plain Layout
28064 string
28065 \end_layout
28066
28067 \end_inset
28068
28069 ] Attributes for the item tag.
28070  Defaults to
28071 \begin_inset Newline newline
28072 \end_inset
28073
28074
28075 \begin_inset Quotes eld
28076 \end_inset
28077
28078
28079 \begin_inset Flex Code
28080 status collapsed
28081
28082 \begin_layout Plain Layout
28083 class=`layoutname_item'
28084 \end_layout
28085
28086 \end_inset
28087
28088
28089 \begin_inset Quotes erd
28090 \end_inset
28091
28092 .
28093  This should 
28094 \emph on
28095 not
28096 \emph default
28097  contain any style information.
28098  Use 
28099 \begin_inset Flex Code
28100 status collapsed
28101
28102 \begin_layout Plain Layout
28103 HTMLStyle
28104 \end_layout
28105
28106 \end_inset
28107
28108  for that purpose.
28109 \end_layout
28110
28111 \begin_layout Description
28112 \begin_inset Flex Code
28113 status collapsed
28114
28115 \begin_layout Plain Layout
28116 HTMLLabel
28117 \end_layout
28118
28119 \end_inset
28120
28121  [
28122 \begin_inset Flex Code
28123 status collapsed
28124
28125 \begin_layout Plain Layout
28126 string
28127 \end_layout
28128
28129 \end_inset
28130
28131 ] The tag to be used for paragraph and item labels, replacing 
28132 \begin_inset Flex Code
28133 status collapsed
28134
28135 \begin_layout Plain Layout
28136 labeltag
28137 \end_layout
28138
28139 \end_inset
28140
28141  in the examples above.
28142  Defaults to 
28143 \begin_inset Flex Code
28144 status collapsed
28145
28146 \begin_layout Plain Layout
28147 span
28148 \end_layout
28149
28150 \end_inset
28151
28152 , unless 
28153 \begin_inset Flex Code
28154 status collapsed
28155
28156 \begin_layout Plain Layout
28157 LabelType
28158 \end_layout
28159
28160 \end_inset
28161
28162  is either 
28163 \begin_inset Flex Code
28164 status collapsed
28165
28166 \begin_layout Plain Layout
28167 Top_Environment
28168 \end_layout
28169
28170 \end_inset
28171
28172  or 
28173 \begin_inset Flex Code
28174 status collapsed
28175
28176 \begin_layout Plain Layout
28177 Centered_Top_Environment
28178 \end_layout
28179
28180 \end_inset
28181
28182 , in which case it defaults to 
28183 \begin_inset Flex Code
28184 status collapsed
28185
28186 \begin_layout Plain Layout
28187 div
28188 \end_layout
28189
28190 \end_inset
28191
28192 .
28193 \end_layout
28194
28195 \begin_layout Description
28196 \begin_inset Flex Code
28197 status collapsed
28198
28199 \begin_layout Plain Layout
28200 HTMLLabelAttr
28201 \end_layout
28202
28203 \end_inset
28204
28205  [
28206 \begin_inset Flex Code
28207 status collapsed
28208
28209 \begin_layout Plain Layout
28210 string
28211 \end_layout
28212
28213 \end_inset
28214
28215 ] Attributes for the label tag.
28216  Defaults to
28217 \begin_inset Newline newline
28218 \end_inset
28219
28220
28221 \begin_inset Quotes eld
28222 \end_inset
28223
28224
28225 \begin_inset Flex Code
28226 status collapsed
28227
28228 \begin_layout Plain Layout
28229 class=`layoutname_label'
28230 \end_layout
28231
28232 \end_inset
28233
28234
28235 \begin_inset Quotes erd
28236 \end_inset
28237
28238 .
28239  This should 
28240 \emph on
28241 not
28242 \emph default
28243  contain any style information.
28244  Use 
28245 \begin_inset Flex Code
28246 status collapsed
28247
28248 \begin_layout Plain Layout
28249 HTMLStyle
28250 \end_layout
28251
28252 \end_inset
28253
28254  for that purpose.
28255 \end_layout
28256
28257 \begin_layout Description
28258 \begin_inset Flex Code
28259 status collapsed
28260
28261 \begin_layout Plain Layout
28262 HTMLLabelFirst
28263 \end_layout
28264
28265 \end_inset
28266
28267  [
28268 \begin_inset Flex Code
28269 status collapsed
28270
28271 \begin_layout Plain Layout
28272
28273 \emph on
28274 0
28275 \emph default
28276 ,1
28277 \end_layout
28278
28279 \end_inset
28280
28281 ] Meaningful only for list-like environments, this tag controls whether
28282  the label tag is output before or inside the item tag.
28283  This is used, for example, in the description environment, where we want
28284  `
28285 \begin_inset Flex Code
28286 status collapsed
28287
28288 \begin_layout Plain Layout
28289 <dt>\SpecialChar ldots
28290 </dt><dd>\SpecialChar ldots
28291 </dd>
28292 \end_layout
28293
28294 \end_inset
28295
28296 .
28297  Default is 
28298 \begin_inset Flex Code
28299 status collapsed
28300
28301 \begin_layout Plain Layout
28302 0
28303 \end_layout
28304
28305 \end_inset
28306
28307 : The label tag is output inside the item tag.
28308 \end_layout
28309
28310 \begin_layout Description
28311 \begin_inset Flex Code
28312 status collapsed
28313
28314 \begin_layout Plain Layout
28315 HTMLPreamble
28316 \end_layout
28317
28318 \end_inset
28319
28320  Information to be output in the 
28321 \begin_inset Flex Code
28322 status collapsed
28323
28324 \begin_layout Plain Layout
28325 <head>
28326 \end_layout
28327
28328 \end_inset
28329
28330  section when this style is used.
28331  This might, for example, be used to include a 
28332 \begin_inset Flex Code
28333 status collapsed
28334
28335 \begin_layout Plain Layout
28336 <script>
28337 \end_layout
28338
28339 \end_inset
28340
28341  block defining an 
28342 \begin_inset Flex Code
28343 status collapsed
28344
28345 \begin_layout Plain Layout
28346 onclick
28347 \end_layout
28348
28349 \end_inset
28350
28351  handler.
28352 \end_layout
28353
28354 \begin_layout Description
28355 \begin_inset Flex Code
28356 status collapsed
28357
28358 \begin_layout Plain Layout
28359 HTMLStyle
28360 \end_layout
28361
28362 \end_inset
28363
28364  CSS style information to be included when this style is used.
28365  Note that this will automatically be wrapped in a layout-generated 
28366 \begin_inset Flex Code
28367 status collapsed
28368
28369 \begin_layout Plain Layout
28370 <style>
28371 \end_layout
28372
28373 \end_inset
28374
28375  block, so only the CSS itself need be included.
28376  Must end with 
28377 \begin_inset Flex Code
28378 status collapsed
28379
28380 \begin_layout Plain Layout
28381 EndHTMLStyle
28382 \end_layout
28383
28384 \end_inset
28385
28386 .
28387 \end_layout
28388
28389 \begin_layout Description
28390 \begin_inset Flex Code
28391 status collapsed
28392
28393 \begin_layout Plain Layout
28394 HTMLTag
28395 \end_layout
28396
28397 \end_inset
28398
28399  [
28400 \begin_inset Flex Code
28401 status collapsed
28402
28403 \begin_layout Plain Layout
28404 string
28405 \end_layout
28406
28407 \end_inset
28408
28409 ] The tag to be used for the main label, replacing 
28410 \begin_inset Flex Code
28411 status collapsed
28412
28413 \begin_layout Plain Layout
28414 tag
28415 \end_layout
28416
28417 \end_inset
28418
28419  in the examples above.
28420  Defaults to 
28421 \begin_inset Flex Code
28422 status collapsed
28423
28424 \begin_layout Plain Layout
28425 div
28426 \end_layout
28427
28428 \end_inset
28429
28430 .
28431 \end_layout
28432
28433 \begin_layout Description
28434 \begin_inset Flex Code
28435 status collapsed
28436
28437 \begin_layout Plain Layout
28438 HTMLTitle
28439 \end_layout
28440
28441 \end_inset
28442
28443  [
28444 \begin_inset Flex Code
28445 status collapsed
28446
28447 \begin_layout Plain Layout
28448
28449 \emph on
28450 0
28451 \emph default
28452 ,1
28453 \end_layout
28454
28455 \end_inset
28456
28457 ] Marks this style as the one to be used to generate the 
28458 \begin_inset Flex Code
28459 status collapsed
28460
28461 \begin_layout Plain Layout
28462 <title>
28463 \end_layout
28464
28465 \end_inset
28466
28467  tag for the XHTML file.
28468  By default, it is false.
28469  The 
28470 \begin_inset Flex Code
28471 status collapsed
28472
28473 \begin_layout Plain Layout
28474 stdtitle.inc
28475 \end_layout
28476
28477 \end_inset
28478
28479  file sets it to true for the 
28480 \begin_inset Flex Code
28481 status collapsed
28482
28483 \begin_layout Plain Layout
28484 title
28485 \end_layout
28486
28487 \end_inset
28488
28489  environment.
28490  
28491 \end_layout
28492
28493 \begin_layout Subsection
28494 InsetLayout XHTML
28495 \end_layout
28496
28497 \begin_layout Standard
28498 The XHTML output of insets can also be controlled by information in layout
28499  files.
28500 \begin_inset Foot
28501 status collapsed
28502
28503 \begin_layout Plain Layout
28504 At present, this is true only for 
28505 \begin_inset Quotes eld
28506 \end_inset
28507
28508 text
28509 \begin_inset Quotes erd
28510 \end_inset
28511
28512  insets (insets you can type into) and is not true for 
28513 \begin_inset Quotes eld
28514 \end_inset
28515
28516 command
28517 \begin_inset Quotes erd
28518 \end_inset
28519
28520  insets (insets that are associated with dialog boxes).
28521 \end_layout
28522
28523 \end_inset
28524
28525  Here, too, \SpecialChar LyX
28526  tries to provide sensible defaults, and it constructs default
28527  CSS style rules.
28528  But everything can be customized.
28529 \end_layout
28530
28531 \begin_layout Standard
28532 The XHTML \SpecialChar LyX
28533  outputs for an inset has the following form:
28534 \end_layout
28535
28536 \begin_layout LyX-Code
28537 <tag attr=
28538 \begin_inset Quotes erd
28539 \end_inset
28540
28541 value
28542 \begin_inset Quotes erd
28543 \end_inset
28544
28545 >
28546 \end_layout
28547
28548 \begin_layout LyX-Code
28549 <labeltag>Label</labeltag>
28550 \end_layout
28551
28552 \begin_layout LyX-Code
28553 <innertag attr=
28554 \begin_inset Quotes erd
28555 \end_inset
28556
28557 value
28558 \begin_inset Quotes erd
28559 \end_inset
28560
28561 >Contents of the inset.</innertag>
28562 \end_layout
28563
28564 \begin_layout LyX-Code
28565 </tag>
28566 \end_layout
28567
28568 \begin_layout Standard
28569 If the inset permits multiple paragraphs—that is, if 
28570 \begin_inset Flex Code
28571 status collapsed
28572
28573 \begin_layout Plain Layout
28574 MultiPar
28575 \end_layout
28576
28577 \end_inset
28578
28579  is true—then the contents of the inset will itself be output as paragraphs
28580  formatted according to the styles used for those paragraphs (standard,
28581  quote, and the like).
28582  The label tag is of course omitted if the paragraph does not have a label
28583  and, at present, is always 
28584 \begin_inset Flex Code
28585 status collapsed
28586
28587 \begin_layout Plain Layout
28588 span
28589 \end_layout
28590
28591 \end_inset
28592
28593 .
28594  The inner tag is optional and, by default, does not appear.
28595 \end_layout
28596
28597 \begin_layout Standard
28598 The specific tags and attributes output for each inset can be controlled
28599  by means of the following layout tags.
28600 \end_layout
28601
28602 \begin_layout Description
28603 \begin_inset Flex Code
28604 status collapsed
28605
28606 \begin_layout Plain Layout
28607 HTMLAttr
28608 \end_layout
28609
28610 \end_inset
28611
28612  [
28613 \begin_inset Flex Code
28614 status collapsed
28615
28616 \begin_layout Plain Layout
28617 string
28618 \end_layout
28619
28620 \end_inset
28621
28622 ] Specifies attribute information to be output with the main tag.
28623  For example, 
28624 \begin_inset Quotes eld
28625 \end_inset
28626
28627
28628 \begin_inset Flex Code
28629 status collapsed
28630
28631 \begin_layout Plain Layout
28632 class=`myinset' onclick=`\SpecialChar ldots
28633 '
28634 \end_layout
28635
28636 \end_inset
28637
28638
28639 \begin_inset Quotes erd
28640 \end_inset
28641
28642 .
28643  By default, \SpecialChar LyX
28644  will output 
28645 \begin_inset Quotes eld
28646 \end_inset
28647
28648
28649 \begin_inset Flex Code
28650 status collapsed
28651
28652 \begin_layout Plain Layout
28653 class=`insetname'
28654 \end_layout
28655
28656 \end_inset
28657
28658
28659 \begin_inset Quotes erd
28660 \end_inset
28661
28662 , where 
28663 \begin_inset Flex Code
28664 status collapsed
28665
28666 \begin_layout Plain Layout
28667 insetname
28668 \end_layout
28669
28670 \end_inset
28671
28672  is the \SpecialChar LyX
28673  name of the inset, made lowercase and with non-alphanumeric characters
28674  converted to underscores, for example: footnote.
28675 \end_layout
28676
28677 \begin_layout Description
28678 \begin_inset Flex Code
28679 status collapsed
28680
28681 \begin_layout Plain Layout
28682 HTMLForceCSS
28683 \end_layout
28684
28685 \end_inset
28686
28687  [
28688 \begin_inset Flex Code
28689 status collapsed
28690
28691 \begin_layout Plain Layout
28692
28693 \emph on
28694 0
28695 \emph default
28696 ,1
28697 \end_layout
28698
28699 \end_inset
28700
28701 ] Whether to output the default CSS information \SpecialChar LyX
28702  generates for this layout,
28703  even if additional information is explicitly provided via 
28704 \begin_inset Flex Code
28705 status collapsed
28706
28707 \begin_layout Plain Layout
28708 HTMLStyle
28709 \end_layout
28710
28711 \end_inset
28712
28713 .
28714  Setting this to 
28715 \begin_inset Flex Code
28716 status collapsed
28717
28718 \begin_layout Plain Layout
28719 1
28720 \end_layout
28721
28722 \end_inset
28723
28724  allows you to alter or augment the generated CSS, rather than to override
28725  it completely.
28726  Default is 0.
28727 \end_layout
28728
28729 \begin_layout Description
28730 \begin_inset Flex Code
28731 status collapsed
28732
28733 \begin_layout Plain Layout
28734 HTMLInnerAttr
28735 \end_layout
28736
28737 \end_inset
28738
28739  [
28740 \begin_inset Flex Code
28741 status collapsed
28742
28743 \begin_layout Plain Layout
28744 string
28745 \end_layout
28746
28747 \end_inset
28748
28749 ] Attributes for the inner tag.
28750  Defaults to
28751 \begin_inset Newline newline
28752 \end_inset
28753
28754
28755 \begin_inset Quotes eld
28756 \end_inset
28757
28758
28759 \begin_inset Flex Code
28760 status collapsed
28761
28762 \begin_layout Plain Layout
28763 class=`insetname_inner'
28764 \end_layout
28765
28766 \end_inset
28767
28768
28769 \begin_inset Quotes erd
28770 \end_inset
28771
28772 .
28773 \end_layout
28774
28775 \begin_layout Description
28776 \begin_inset Flex Code
28777 status collapsed
28778
28779 \begin_layout Plain Layout
28780 HTMLInnerTag
28781 \end_layout
28782
28783 \end_inset
28784
28785  [
28786 \begin_inset Flex Code
28787 status collapsed
28788
28789 \begin_layout Plain Layout
28790 string
28791 \end_layout
28792
28793 \end_inset
28794
28795 ] The inner tag, replacing 
28796 \begin_inset Flex Code
28797 status collapsed
28798
28799 \begin_layout Plain Layout
28800 innertag
28801 \end_layout
28802
28803 \end_inset
28804
28805  in the examples above.
28806  By default, there is none.
28807 \end_layout
28808
28809 \begin_layout Description
28810 \begin_inset Flex Code
28811 status collapsed
28812
28813 \begin_layout Plain Layout
28814 HTMLIsBlock
28815 \end_layout
28816
28817 \end_inset
28818
28819  [
28820 \begin_inset Flex Code
28821 status collapsed
28822
28823 \begin_layout Plain Layout
28824 0,
28825 \emph on
28826 1
28827 \end_layout
28828
28829 \end_inset
28830
28831 ] Whether this inset represents a standalone block of text (such as a footnote)
28832  or instead represents material that is included in the surrounding text
28833  (such as a branch).
28834  Defaults to 1.
28835 \end_layout
28836
28837 \begin_layout Description
28838 \begin_inset Flex Code
28839 status collapsed
28840
28841 \begin_layout Plain Layout
28842 HTMLLabel
28843 \end_layout
28844
28845 \end_inset
28846
28847  [
28848 \begin_inset Flex Code
28849 status collapsed
28850
28851 \begin_layout Plain Layout
28852 string
28853 \end_layout
28854
28855 \end_inset
28856
28857 ] A label for this inset, possibly including a reference to a counter.
28858  For example, for footnote, it might be: 
28859 \begin_inset Flex Code
28860 status collapsed
28861
28862 \begin_layout Plain Layout
28863
28864 \backslash
28865 arabic{footnote}
28866 \end_layout
28867
28868 \end_inset
28869
28870 .
28871  This is optional, and there is no default.
28872 \end_layout
28873
28874 \begin_layout Description
28875 \begin_inset Flex Code
28876 status collapsed
28877
28878 \begin_layout Plain Layout
28879 HTMLPreamble
28880 \end_layout
28881
28882 \end_inset
28883
28884  Information to be output in the 
28885 \begin_inset Flex Code
28886 status collapsed
28887
28888 \begin_layout Plain Layout
28889 <head>
28890 \end_layout
28891
28892 \end_inset
28893
28894  section when this style is used.
28895  This might, for example, be used to include a 
28896 \begin_inset Flex Code
28897 status collapsed
28898
28899 \begin_layout Plain Layout
28900 <script>
28901 \end_layout
28902
28903 \end_inset
28904
28905  block defining an 
28906 \begin_inset Flex Code
28907 status collapsed
28908
28909 \begin_layout Plain Layout
28910 onclick
28911 \end_layout
28912
28913 \end_inset
28914
28915  handler.
28916 \end_layout
28917
28918 \begin_layout Description
28919 \begin_inset Flex Code
28920 status collapsed
28921
28922 \begin_layout Plain Layout
28923 HTMLStyle
28924 \end_layout
28925
28926 \end_inset
28927
28928  CSS style information to be included when this style is used.
28929  Note that this will automatically be wrapped in a layout-generated 
28930 \begin_inset Flex Code
28931 status collapsed
28932
28933 \begin_layout Plain Layout
28934 <style>
28935 \end_layout
28936
28937 \end_inset
28938
28939  block, so only the CSS itself need be included.
28940 \end_layout
28941
28942 \begin_layout Description
28943 \begin_inset Flex Code
28944 status collapsed
28945
28946 \begin_layout Plain Layout
28947 HTMLTag
28948 \end_layout
28949
28950 \end_inset
28951
28952  [
28953 \begin_inset Flex Code
28954 status collapsed
28955
28956 \begin_layout Plain Layout
28957 string
28958 \end_layout
28959
28960 \end_inset
28961
28962 ] The tag to be used for the main label, replacing 
28963 \begin_inset Flex Code
28964 status collapsed
28965
28966 \begin_layout Plain Layout
28967 tag
28968 \end_layout
28969
28970 \end_inset
28971
28972  in the examples above.
28973  The default depends upon the setting of 
28974 \begin_inset Flex Code
28975 status collapsed
28976
28977 \begin_layout Plain Layout
28978 MultiPar
28979 \end_layout
28980
28981 \end_inset
28982
28983 : If 
28984 \begin_inset Flex Code
28985 status collapsed
28986
28987 \begin_layout Plain Layout
28988 MultiPar
28989 \end_layout
28990
28991 \end_inset
28992
28993  is true, the default is 
28994 \begin_inset Flex Code
28995 status collapsed
28996
28997 \begin_layout Plain Layout
28998 div
28999 \end_layout
29000
29001 \end_inset
29002
29003 ; if it is false, the default is 
29004 \begin_inset Flex Code
29005 status collapsed
29006
29007 \begin_layout Plain Layout
29008 span
29009 \end_layout
29010
29011 \end_inset
29012
29013 .
29014 \end_layout
29015
29016 \begin_layout Subsection
29017 Float XHTML
29018 \end_layout
29019
29020 \begin_layout Standard
29021 The XHTML output for floats too can be controlled by layout information.
29022  The output has the following form:
29023 \end_layout
29024
29025 \begin_layout LyX-Code
29026 <tag attr=
29027 \begin_inset Quotes erd
29028 \end_inset
29029
29030 value
29031 \begin_inset Quotes erd
29032 \end_inset
29033
29034 >
29035 \end_layout
29036
29037 \begin_layout LyX-Code
29038 Contents of the float.
29039 \end_layout
29040
29041 \begin_layout LyX-Code
29042 </tag>
29043 \end_layout
29044
29045 \begin_layout Standard
29046 The caption, if there is one, is a separate inset and will be output as
29047  such.
29048  Its appearance can be controlled via the InsetLayout for caption insets.
29049  
29050 \end_layout
29051
29052 \begin_layout Description
29053 \begin_inset Flex Code
29054 status collapsed
29055
29056 \begin_layout Plain Layout
29057 HTMLAttr
29058 \end_layout
29059
29060 \end_inset
29061
29062  [
29063 \begin_inset Flex Code
29064 status collapsed
29065
29066 \begin_layout Plain Layout
29067 string
29068 \end_layout
29069
29070 \end_inset
29071
29072 ] Specifies attribute information to be output with the main tag.
29073  For example, 
29074 \begin_inset Quotes eld
29075 \end_inset
29076
29077
29078 \begin_inset Flex Code
29079 status collapsed
29080
29081 \begin_layout Plain Layout
29082 class=`myfloat' onclick=`\SpecialChar ldots
29083 '
29084 \end_layout
29085
29086 \end_inset
29087
29088
29089 \begin_inset Quotes erd
29090 \end_inset
29091
29092 .
29093  By default, \SpecialChar LyX
29094  will output 
29095 \begin_inset Quotes eld
29096 \end_inset
29097
29098
29099 \begin_inset Flex Code
29100 status collapsed
29101
29102 \begin_layout Plain Layout
29103 class=`float float-floattype'
29104 \end_layout
29105
29106 \end_inset
29107
29108
29109 \begin_inset Quotes erd
29110 \end_inset
29111
29112 , where 
29113 \begin_inset Flex Code
29114 status collapsed
29115
29116 \begin_layout Plain Layout
29117 floattype
29118 \end_layout
29119
29120 \end_inset
29121
29122  is \SpecialChar LyX
29123 's name for this type of float, as determined by the float declaration
29124  (see 
29125 \begin_inset CommandInset ref
29126 LatexCommand ref
29127 reference "subsec:Floats"
29128
29129 \end_inset
29130
29131 ), though made lowercase and with non-alphanumeric characters converted
29132  to underscores, for example: float-table.
29133 \end_layout
29134
29135 \begin_layout Description
29136 \begin_inset Flex Code
29137 status collapsed
29138
29139 \begin_layout Plain Layout
29140 HTMLStyle
29141 \end_layout
29142
29143 \end_inset
29144
29145  CSS style information to be included when this float is used.
29146  Note that this will automatically be wrapped in a layout-generated 
29147 \begin_inset Flex Code
29148 status collapsed
29149
29150 \begin_layout Plain Layout
29151 <style>
29152 \end_layout
29153
29154 \end_inset
29155
29156  block, so only the CSS itself need be included.
29157 \end_layout
29158
29159 \begin_layout Description
29160 \begin_inset Flex Code
29161 status collapsed
29162
29163 \begin_layout Plain Layout
29164 HTMLTag
29165 \end_layout
29166
29167 \end_inset
29168
29169  [
29170 \begin_inset Flex Code
29171 status collapsed
29172
29173 \begin_layout Plain Layout
29174 string
29175 \end_layout
29176
29177 \end_inset
29178
29179 ] The tag to be used for this float, replacing 
29180 \begin_inset Quotes eld
29181 \end_inset
29182
29183
29184 \begin_inset Flex Code
29185 status collapsed
29186
29187 \begin_layout Plain Layout
29188 tag
29189 \end_layout
29190
29191 \end_inset
29192
29193
29194 \begin_inset Quotes erd
29195 \end_inset
29196
29197  in the example above.
29198  The default is 
29199 \begin_inset Flex Code
29200 status collapsed
29201
29202 \begin_layout Plain Layout
29203 div
29204 \end_layout
29205
29206 \end_inset
29207
29208  and will rarely need changing.
29209 \end_layout
29210
29211 \begin_layout Subsection
29212 Bibliography formatting
29213 \end_layout
29214
29215 \begin_layout Standard
29216 The bibliography can be formatted using 
29217 \begin_inset Flex Code
29218 status collapsed
29219
29220 \begin_layout Plain Layout
29221 CiteFormat
29222 \end_layout
29223
29224 \end_inset
29225
29226  blocks.
29227  See 
29228 \begin_inset CommandInset ref
29229 LatexCommand ref
29230 reference "subsec:Citation-format-description"
29231
29232 \end_inset
29233
29234  for the details.
29235 \end_layout
29236
29237 \begin_layout Subsection
29238 \SpecialChar LyX
29239 -generated CSS
29240 \end_layout
29241
29242 \begin_layout Standard
29243 We have several times mentioned that \SpecialChar LyX
29244  will generate default CSS style rules
29245  for both insets and paragraph styles, based upon the other layout information
29246  that is provided.
29247  In this section, we shall say a word about which layout information \SpecialChar LyX
29248  uses
29249  and how.
29250 \end_layout
29251
29252 \begin_layout Standard
29253 At present, \SpecialChar LyX
29254  auto-generates CSS only for font information, making use of
29255  the 
29256 \begin_inset Flex Code
29257 status collapsed
29258
29259 \begin_layout Plain Layout
29260 Family
29261 \end_layout
29262
29263 \end_inset
29264
29265
29266 \begin_inset Flex Code
29267 status collapsed
29268
29269 \begin_layout Plain Layout
29270 Series
29271 \end_layout
29272
29273 \end_inset
29274
29275
29276 \begin_inset Flex Code
29277 status collapsed
29278
29279 \begin_layout Plain Layout
29280 Shape
29281 \end_layout
29282
29283 \end_inset
29284
29285 , and 
29286 \begin_inset Flex Code
29287 status collapsed
29288
29289 \begin_layout Plain Layout
29290 Size
29291 \end_layout
29292
29293 \end_inset
29294
29295  specified in the 
29296 \begin_inset Flex Code
29297 status collapsed
29298
29299 \begin_layout Plain Layout
29300 Font
29301 \end_layout
29302
29303 \end_inset
29304
29305  declaration (see 
29306 \begin_inset CommandInset ref
29307 LatexCommand ref
29308 reference "subsec:Font-description"
29309
29310 \end_inset
29311
29312 ).
29313  The translation is mostly straightforward and obvious.
29314  For example, 
29315 \begin_inset Quotes eld
29316 \end_inset
29317
29318
29319 \begin_inset Flex Code
29320 status collapsed
29321
29322 \begin_layout Plain Layout
29323 Family Sans
29324 \end_layout
29325
29326 \end_inset
29327
29328
29329 \begin_inset Quotes erd
29330 \end_inset
29331
29332  becomes 
29333 \begin_inset Quotes eld
29334 \end_inset
29335
29336
29337 \begin_inset Flex Code
29338 status collapsed
29339
29340 \begin_layout Plain Layout
29341 font-family: sans-serif;
29342 \end_layout
29343
29344 \end_inset
29345
29346
29347 \begin_inset Quotes erd
29348 \end_inset
29349
29350 .
29351  The correspondence of \SpecialChar LyX
29352  sizes and CSS sizes is a little less obvious but
29353  nonetheless intuitive.
29354  See the 
29355 \begin_inset Flex Code
29356 status collapsed
29357
29358 \begin_layout Plain Layout
29359 getSizeCSS()
29360 \end_layout
29361
29362 \end_inset
29363
29364  function in 
29365 \begin_inset Flex URL
29366 status collapsed
29367
29368 \begin_layout Plain Layout
29369
29370 src/FontInfo.cpp
29371 \end_layout
29372
29373 \end_inset
29374
29375  for the details.
29376 \change_inserted -970929547 1496610908
29377
29378 \end_layout
29379
29380 \begin_layout Section
29381
29382 \change_inserted -970929547 1496610966
29383 \begin_inset CommandInset label
29384 LatexCommand label
29385 name "sec:Tags-for-DocBook"
29386
29387 \end_inset
29388
29389 Tags for DocBook output
29390 \end_layout
29391
29392 \begin_layout Standard
29393
29394 \change_inserted -970929547 1496611615
29395 As with \SpecialChar LaTeX
29396  or XHTML, the format of \SpecialChar LyX
29397 's DocBook output is also controlled by
29398  layout information.
29399  In general, \SpecialChar LyX
29400  provides sensible defaults; however, much of the styling is
29401  lost during the conversion, as DocBook is strictly semantic and does not
29402  allow formatting.
29403  When possible, information from \SpecialChar LyX
29404  will be rendered in 
29405 \family typewriter
29406 role
29407 \family default
29408  attributes.
29409  
29410 \end_layout
29411
29412 \begin_layout Standard
29413
29414 \change_inserted -970929547 1496612080
29415 In many cases, then, you may not have to do anything at all to get acceptable
29416  DocBook output for your own environments, custom insets, and so forth.
29417  But in some cases you will, and so \SpecialChar LyX
29418  provides a number of layout tags that
29419  can be used to customize the DocBook that is generated.
29420 \end_layout
29421
29422 \begin_layout Standard
29423
29424 \change_inserted -970929547 1515109912
29425 Labels are rarely output, as they are redundant in DocBook: this information
29426  is carried by the tags themselves, and whether labels appear in the final
29427  documents (after processing of DocBook files) is controlled by the stylesheets.
29428  However, sometimes, labels are not redundant content, such as definition
29429  lists: in this case, the term being defined will be the label.
29430  
29431 \end_layout
29432
29433 \begin_layout Subsection
29434
29435 \change_inserted 1075283030 1597699417
29436 \begin_inset CommandInset label
29437 LatexCommand label
29438 name "subsec:Paragraph-Style-DocBook"
29439
29440 \end_inset
29441
29442
29443 \change_deleted 1075283030 1597699417
29444
29445 \begin_inset CommandInset label
29446 LatexCommand label
29447 name "subsec:Paragraph-Style-XHTML-1"
29448
29449 \end_inset
29450
29451
29452 \change_inserted -970929547 1496610966
29453 Paragraph styles
29454 \end_layout
29455
29456 \begin_layout Standard
29457
29458 \change_inserted -970929547 1496612059
29459 The sort of DocBook \SpecialChar LyX
29460  outputs for a paragraph depends upon whether we are
29461  dealing with a normal paragraph, a command, or an environment, where this
29462  is itself determined by the contents of the corresponding 
29463 \begin_inset Flex Code
29464 status collapsed
29465
29466 \begin_layout Plain Layout
29467
29468 \change_inserted -970929547 1496610966
29469 \SpecialChar LaTeX
29470 Type
29471 \change_unchanged
29472
29473 \end_layout
29474
29475 \end_inset
29476
29477  tag.
29478  
29479 \end_layout
29480
29481 \begin_layout Standard
29482
29483 \change_inserted -970929547 1496612107
29484 For a command or normal paragraph, the output DocBook has the following
29485  form:
29486 \end_layout
29487
29488 \begin_layout LyX-Code
29489
29490 \change_inserted -970929547 1515109666
29491 <tag attr>
29492 \end_layout
29493
29494 \begin_layout LyX-Code
29495
29496 \change_inserted -970929547 1496610966
29497 Contents of the paragraph.
29498 \end_layout
29499
29500 \begin_layout LyX-Code
29501
29502 \change_inserted -970929547 1496610966
29503 </tag>
29504 \end_layout
29505
29506 \begin_layout Standard
29507
29508 \change_inserted -970929547 1515109821
29509 For an environment that is not some sort of list, the generated DocBook
29510  takes this form:
29511 \end_layout
29512
29513 \begin_layout LyX-Code
29514
29515 \change_inserted -970929547 1515109671
29516 <tag attr>
29517 \end_layout
29518
29519 \begin_layout LyX-Code
29520
29521 \change_inserted -970929547 1496612114
29522 <itemtag>First paragraph.</itemtag>
29523 \end_layout
29524
29525 \begin_layout LyX-Code
29526
29527 \change_inserted -970929547 1496610966
29528 <itemtag>Second paragraph.</itemtag>
29529 \end_layout
29530
29531 \begin_layout LyX-Code
29532
29533 \change_inserted -970929547 1496610966
29534 </tag>
29535 \end_layout
29536
29537 \begin_layout Standard
29538
29539 \change_inserted -970929547 1515109825
29540 For a list, the resulting DocBook takes this form:
29541 \end_layout
29542
29543 \begin_layout LyX-Code
29544
29545 \change_inserted -970929547 1515109672
29546 <tag attr>
29547 \end_layout
29548
29549 \begin_layout LyX-Code
29550
29551 \change_inserted -970929547 1515109676
29552 <itemtag attr>First item.</itemtag>
29553 \end_layout
29554
29555 \begin_layout LyX-Code
29556
29557 \change_inserted -970929547 1515109678
29558 <itemtag attr>Second item.</itemtag>
29559 \end_layout
29560
29561 \begin_layout LyX-Code
29562
29563 \change_inserted -970929547 1496610966
29564 </tag>
29565 \end_layout
29566
29567 \begin_layout Standard
29568
29569 \change_inserted -970929547 1496612243
29570 The specific tags and roles output for each paragraph type can be controlled
29571  by means of the layout tags we are about to describe.
29572  Please note that, due to the very nature of DocBook, no sensible defaults
29573  really exist, and the values must always be carefully chosen.
29574  
29575 \end_layout
29576
29577 \begin_layout Description
29578
29579 \change_inserted -970929547 1515110057
29580 \begin_inset Flex Code
29581 status collapsed
29582
29583 \begin_layout Plain Layout
29584
29585 \change_inserted -970929547 1515109656
29586 DocBookAttr
29587 \change_unchanged
29588
29589 \end_layout
29590
29591 \end_inset
29592
29593  [
29594 \begin_inset Flex Code
29595 status collapsed
29596
29597 \begin_layout Plain Layout
29598
29599 \change_inserted -970929547 1496610966
29600 string
29601 \change_unchanged
29602
29603 \end_layout
29604
29605 \end_inset
29606
29607 ] Specifies attribute information to be output with the main tag, replacing
29608  
29609 \begin_inset Quotes eld
29610 \end_inset
29611
29612
29613 \begin_inset Flex Code
29614 status collapsed
29615
29616 \begin_layout Plain Layout
29617
29618 \change_inserted -970929547 1515110057
29619 attr
29620 \change_unchanged
29621
29622 \end_layout
29623
29624 \end_inset
29625
29626
29627 \begin_inset Quotes erd
29628 \end_inset
29629
29630  in the example above.
29631  This information can be used in further processing of the DocBook files.
29632  
29633 \change_unchanged
29634
29635 \end_layout
29636
29637 \begin_layout Description
29638
29639 \change_inserted -970929547 1496612296
29640 \begin_inset Flex Code
29641 status collapsed
29642
29643 \begin_layout Plain Layout
29644
29645 \change_inserted -970929547 1496612269
29646 DocBookTag
29647 \change_unchanged
29648
29649 \end_layout
29650
29651 \end_inset
29652
29653  [
29654 \begin_inset Flex Code
29655 status collapsed
29656
29657 \begin_layout Plain Layout
29658
29659 \change_inserted -970929547 1496610966
29660 string
29661 \change_unchanged
29662
29663 \end_layout
29664
29665 \end_inset
29666
29667 ] The tag to be used for this inset, replacing 
29668 \begin_inset Quotes eld
29669 \end_inset
29670
29671
29672 \begin_inset Flex Code
29673 status collapsed
29674
29675 \begin_layout Plain Layout
29676
29677 \change_inserted -970929547 1496612296
29678 tag
29679 \change_unchanged
29680
29681 \end_layout
29682
29683 \end_inset
29684
29685
29686 \begin_inset Quotes erd
29687 \end_inset
29688
29689  in the example above.
29690  The default is the name of the float and always needs to be changed, as
29691  DocBook provides no generic tag.
29692 \change_inserted 1075283030 1597698868
29693
29694 \end_layout
29695
29696 \begin_layout Description
29697
29698 \change_inserted 1075283030 1597699399
29699 \begin_inset Flex Code
29700 status collapsed
29701
29702 \begin_layout Plain Layout
29703
29704 \change_inserted 1075283030 1597698872
29705 DocBookTagType
29706 \change_unchanged
29707
29708 \end_layout
29709
29710 \end_inset
29711
29712  [
29713 \begin_inset Flex Code
29714 status collapsed
29715
29716 \begin_layout Plain Layout
29717
29718 \change_inserted 1075283030 1597700585
29719 block, paragraph, inline
29720 \change_unchanged
29721
29722 \end_layout
29723
29724 \end_inset
29725
29726 ] The new-line policy for this tag, see Section
29727 \begin_inset space ~
29728 \end_inset
29729
29730
29731 \begin_inset CommandInset ref
29732 LatexCommand ref
29733 reference "subsec:DocBook-New-line-policy"
29734 plural "false"
29735 caps "false"
29736 noprefix "false"
29737
29738 \end_inset
29739
29740  for the details.
29741  
29742 \change_unchanged
29743
29744 \end_layout
29745
29746 \begin_layout Subsection
29747
29748 \change_inserted 1075283030 1597699385
29749 New-line policy
29750 \begin_inset CommandInset label
29751 LatexCommand label
29752 name "subsec:DocBook-New-line-policy"
29753
29754 \end_inset
29755
29756
29757 \end_layout
29758
29759 \begin_layout Standard
29760
29761 \change_inserted 1075283030 1597698993
29762 For all tags, there are three possible policies for outputting new lines
29763  (given in the 
29764 \begin_inset Flex Code
29765 status collapsed
29766
29767 \begin_layout Plain Layout
29768
29769 \change_inserted 1075283030 1597698987
29770 DocBook*TagType
29771 \change_unchanged
29772
29773 \end_layout
29774
29775 \end_inset
29776
29777  attribute): 
29778 \end_layout
29779
29780 \begin_layout Itemize
29781
29782 \change_inserted 1075283030 1597699279
29783 \begin_inset Quotes eld
29784 \end_inset
29785
29786
29787 \begin_inset Flex Code
29788 status collapsed
29789
29790 \begin_layout Plain Layout
29791
29792 \change_inserted 1075283030 1597699012
29793 block
29794 \change_unchanged
29795
29796 \end_layout
29797
29798 \end_inset
29799
29800
29801 \begin_inset Quotes erd
29802 \end_inset
29803
29804 : the opening and closing tags are on their own lines (i.e.
29805  a line feed after and before the opening and the closing tags).
29806  Typical elements are floats.
29807  For instance: 
29808 \end_layout
29809
29810 \begin_layout LyX-Code
29811
29812 \change_inserted 1075283030 1597699194
29813 Content before
29814 \end_layout
29815
29816 \begin_layout LyX-Code
29817
29818 \change_inserted 1075283030 1597699194
29819 <blocktag>
29820 \end_layout
29821
29822 \begin_layout LyX-Code
29823
29824 \change_inserted 1075283030 1597699098
29825   Contents of the block.
29826 \end_layout
29827
29828 \begin_layout LyX-Code
29829
29830 \change_inserted 1075283030 1597699196
29831 </blocktag>
29832 \end_layout
29833
29834 \begin_layout LyX-Code
29835
29836 \change_inserted 1075283030 1597699198
29837 Content after
29838 \end_layout
29839
29840 \begin_layout Itemize
29841
29842 \change_inserted 1075283030 1597699289
29843 \begin_inset Quotes eld
29844 \end_inset
29845
29846
29847 \begin_inset Flex Code
29848 status collapsed
29849
29850 \begin_layout Plain Layout
29851
29852 \change_inserted 1075283030 1597699113
29853 paragraph
29854 \change_unchanged
29855
29856 \end_layout
29857
29858 \end_inset
29859
29860
29861 \begin_inset Quotes erd
29862 \end_inset
29863
29864 : the opening and closing tags are on the same, new line; a line feed is
29865  output before the opening tag and after the closing tag.
29866  Typical elements are paragraphs and list items.
29867  For instance: 
29868 \end_layout
29869
29870 \begin_layout LyX-Code
29871
29872 \change_inserted 1075283030 1597699186
29873 Content before
29874 \end_layout
29875
29876 \begin_layout LyX-Code
29877
29878 \change_inserted 1075283030 1597699357
29879 <paratag>Contents of the paragraph.</paratag>
29880 \end_layout
29881
29882 \begin_layout LyX-Code
29883
29884 \change_inserted 1075283030 1597699231
29885 Content after
29886 \end_layout
29887
29888 \begin_layout Itemize
29889
29890 \change_inserted 1075283030 1597699343
29891 \begin_inset Quotes eld
29892 \end_inset
29893
29894
29895 \begin_inset Flex Code
29896 status collapsed
29897
29898 \begin_layout Plain Layout
29899
29900 \change_inserted 1075283030 1597699307
29901 inline
29902 \change_unchanged
29903
29904 \end_layout
29905
29906 \end_inset
29907
29908
29909 \begin_inset Quotes erd
29910 \end_inset
29911
29912 : the opening and closing tags are on the same line as the rest of the content.
29913  No line feeds are output.
29914  Typical elements are fonts.
29915  For instance: 
29916 \end_layout
29917
29918 \begin_layout LyX-Code
29919
29920 \change_inserted 1075283030 1597699585
29921 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
29922 \end_layout
29923
29924 \begin_layout Standard
29925
29926 \change_inserted 1075283030 1597699585
29927 The default value is always 
29928 \begin_inset Quotes eld
29929 \end_inset
29930
29931
29932 \begin_inset Flex Code
29933 status collapsed
29934
29935 \begin_layout Plain Layout
29936
29937 \change_inserted 1075283030 1597699585
29938 block
29939 \change_unchanged
29940
29941 \end_layout
29942
29943 \end_inset
29944
29945
29946 \begin_inset Quotes erd
29947 \end_inset
29948
29949 .
29950 \change_unchanged
29951
29952 \end_layout
29953
29954 \begin_layout Subsection
29955
29956 \change_inserted -970929547 1515111533
29957 InsetLayout DocBook
29958 \change_unchanged
29959
29960 \end_layout
29961
29962 \begin_layout Standard
29963
29964 \change_inserted -970929547 1496611894
29965 The DocBook output of insets can also be controlled by information in layout
29966  files.
29967 \end_layout
29968
29969 \begin_layout Standard
29970
29971 \change_inserted -970929547 1496612045
29972 The DocBook \SpecialChar LyX
29973  outputs for an inset has the following form:
29974 \end_layout
29975
29976 \begin_layout LyX-Code
29977
29978 \change_inserted -970929547 1515110861
29979 <wrappertag wrapperattr>
29980 \end_layout
29981
29982 \begin_layout LyX-Code
29983
29984 \change_inserted -970929547 1515110868
29985   <tag attr>
29986 \end_layout
29987
29988 \begin_layout LyX-Code
29989
29990 \change_inserted -970929547 1515110869
29991     <innertag innerattr>
29992 \end_layout
29993
29994 \begin_layout LyX-Code
29995
29996 \change_inserted -970929547 1515110869
29997       Contents of the inset.
29998 \end_layout
29999
30000 \begin_layout LyX-Code
30001
30002 \change_inserted -970929547 1515110870
30003     </innertag>
30004 \end_layout
30005
30006 \begin_layout LyX-Code
30007
30008 \change_inserted -970929547 1515110871
30009   </tag>
30010 \end_layout
30011
30012 \begin_layout LyX-Code
30013
30014 \change_inserted -970929547 1515111172
30015 </wrappertag>
30016 \end_layout
30017
30018 \begin_layout Standard
30019
30020 \change_inserted -970929547 1515111186
30021 For an itemising inset, it rather looks like this: 
30022 \end_layout
30023
30024 \begin_layout LyX-Code
30025
30026 \change_inserted -970929547 1515111186
30027 <wrappertag wrapperattr>
30028 \end_layout
30029
30030 \begin_layout LyX-Code
30031
30032 \change_inserted -970929547 1515111186
30033   <tag attr>
30034 \end_layout
30035
30036 \begin_layout LyX-Code
30037
30038 \change_inserted -970929547 1515111186
30039     <innertag innerattr>
30040 \end_layout
30041
30042 \begin_layout LyX-Code
30043
30044 \change_inserted -970929547 1515111362
30045       <itemwrappertag itemwrapperattr>
30046 \end_layout
30047
30048 \begin_layout LyX-Code
30049
30050 \change_inserted -970929547 1515111364
30051         <itemlabeltag itemattr>
30052 \end_layout
30053
30054 \begin_layout LyX-Code
30055
30056 \change_inserted -970929547 1515111367
30057           Label of the first item.
30058 \end_layout
30059
30060 \begin_layout LyX-Code
30061
30062 \change_inserted -970929547 1515111362
30063         </itemtag>
30064 \change_unchanged
30065
30066 \end_layout
30067
30068 \begin_layout LyX-Code
30069
30070 \change_inserted -970929547 1515111517
30071         <itemtag itemattr>
30072 \end_layout
30073
30074 \begin_layout LyX-Code
30075
30076 \change_inserted -970929547 1515111517
30077           <itemtag itemattr>
30078 \change_unchanged
30079
30080 \end_layout
30081
30082 \begin_layout LyX-Code
30083
30084 \change_inserted -970929547 1515111516
30085             Contents of the first item.
30086 \end_layout
30087
30088 \begin_layout LyX-Code
30089
30090 \change_inserted -970929547 1515111514
30091           </itemtag>
30092 \change_unchanged
30093
30094 \end_layout
30095
30096 \begin_layout LyX-Code
30097
30098 \change_inserted -970929547 1515111247
30099         </itemtag>
30100 \change_unchanged
30101
30102 \end_layout
30103
30104 \begin_layout LyX-Code
30105
30106 \change_inserted -970929547 1515111221
30107       </itemwrappertag>
30108 \end_layout
30109
30110 \begin_layout LyX-Code
30111
30112 \change_inserted -970929547 1515111370
30113       <itemwrappertag itemwrapperattr>
30114 \end_layout
30115
30116 \begin_layout LyX-Code
30117
30118 \change_inserted -970929547 1515111370
30119         <itemlabeltag itemattr>
30120 \end_layout
30121
30122 \begin_layout LyX-Code
30123
30124 \change_inserted -970929547 1515111372
30125           Label of the second item.
30126 \end_layout
30127
30128 \begin_layout LyX-Code
30129
30130 \change_inserted -970929547 1515111370
30131         </itemtag>
30132 \change_unchanged
30133
30134 \end_layout
30135
30136 \begin_layout LyX-Code
30137
30138 \change_inserted -970929547 1515111504
30139         <itemtag itemattr>
30140 \end_layout
30141
30142 \begin_layout LyX-Code
30143
30144 \change_inserted -970929547 1515111505
30145           <itemtag itemattr>
30146 \change_unchanged
30147
30148 \end_layout
30149
30150 \begin_layout LyX-Code
30151
30152 \change_inserted -970929547 1515111507
30153             Contents of the second item.
30154 \end_layout
30155
30156 \begin_layout LyX-Code
30157
30158 \change_inserted -970929547 1515111509
30159           </itemtag>
30160 \change_unchanged
30161
30162 \end_layout
30163
30164 \begin_layout LyX-Code
30165
30166 \change_inserted -970929547 1515111251
30167         </itemtag>
30168 \change_unchanged
30169
30170 \end_layout
30171
30172 \begin_layout LyX-Code
30173
30174 \change_inserted -970929547 1515111221
30175       </itemwrappertag>
30176 \change_unchanged
30177
30178 \end_layout
30179
30180 \begin_layout LyX-Code
30181
30182 \change_inserted -970929547 1515111219
30183       ...
30184 \change_unchanged
30185
30186 \end_layout
30187
30188 \begin_layout LyX-Code
30189
30190 \change_inserted -970929547 1515111186
30191     </innertag>
30192 \end_layout
30193
30194 \begin_layout LyX-Code
30195
30196 \change_inserted -970929547 1515111186
30197   </tag>
30198 \end_layout
30199
30200 \begin_layout LyX-Code
30201
30202 \change_inserted -970929547 1515111186
30203 </wrappertag>
30204 \end_layout
30205
30206 \begin_layout Standard
30207
30208 \change_inserted -970929547 1515111183
30209 If the inset permits multiple paragraphs—that is, if 
30210 \begin_inset Flex Code
30211 status collapsed
30212
30213 \begin_layout Plain Layout
30214
30215 \change_inserted -970929547 1496610966
30216 MultiPar
30217 \change_unchanged
30218
30219 \end_layout
30220
30221 \end_inset
30222
30223  is true—then the contents of the inset will itself be output as paragraphs
30224  formatted according to the styles used for those paragraphs (standard,
30225  quote, and the like).
30226  The inner tag is optional and, by default, does not appear.
30227 \end_layout
30228
30229 \begin_layout Standard
30230
30231 \change_inserted -970929547 1496610966
30232 The specific tags and attributes output for each inset can be controlled
30233  by means of the following layout tags.
30234 \end_layout
30235
30236 \begin_layout Description
30237
30238 \change_inserted -970929547 1515110317
30239 \begin_inset Flex Code
30240 status collapsed
30241
30242 \begin_layout Plain Layout
30243
30244 \change_inserted -970929547 1515109695
30245 DocBookAttr
30246 \change_unchanged
30247
30248 \end_layout
30249
30250 \end_inset
30251
30252  [
30253 \begin_inset Flex Code
30254 status collapsed
30255
30256 \begin_layout Plain Layout
30257
30258 \change_inserted -970929547 1496611854
30259 string
30260 \change_unchanged
30261
30262 \end_layout
30263
30264 \end_inset
30265
30266 ] Specifies attribute information to be output with the main tag, replacing
30267  
30268 \begin_inset Quotes eld
30269 \end_inset
30270
30271
30272 \begin_inset Flex Code
30273 status collapsed
30274
30275 \begin_layout Plain Layout
30276
30277 \change_inserted -970929547 1515110044
30278 attr
30279 \change_unchanged
30280
30281 \end_layout
30282
30283 \end_inset
30284
30285
30286 \begin_inset Quotes erd
30287 \end_inset
30288
30289  in the example above.
30290  This information can be used in further processing of the DocBook files.
30291  
30292 \end_layout
30293
30294 \begin_layout Description
30295
30296 \change_inserted -970929547 1515110973
30297 \begin_inset Flex Code
30298 status collapsed
30299
30300 \begin_layout Plain Layout
30301
30302 \change_inserted -970929547 1515110319
30303 DocBookInInfo
30304 \change_unchanged
30305
30306 \end_layout
30307
30308 \end_inset
30309
30310  [
30311 \begin_inset Flex Code
30312 status collapsed
30313
30314 \begin_layout Plain Layout
30315
30316 \change_inserted -970929547 1515110384
30317 never, always, maybe
30318 \change_unchanged
30319
30320 \end_layout
30321
30322 \end_inset
30323
30324 ] Specifies whether this tag goes into the 
30325 \begin_inset Flex Code
30326 status collapsed
30327
30328 \begin_layout Plain Layout
30329
30330 \change_inserted -970929547 1515110412
30331 <info>
30332 \change_unchanged
30333
30334 \end_layout
30335
30336 \end_inset
30337
30338  tag at the beginning of the parent layout.
30339  
30340 \begin_inset Flex Code
30341 status collapsed
30342
30343 \begin_layout Plain Layout
30344
30345 \change_inserted -970929547 1515110437
30346 never
30347 \change_unchanged
30348
30349 \end_layout
30350
30351 \end_inset
30352
30353  indicates that the tag never goes into 
30354 \begin_inset Flex Code
30355 status collapsed
30356
30357 \begin_layout Plain Layout
30358
30359 \change_inserted -970929547 1515110497
30360 <info>
30361 \change_unchanged
30362
30363 \end_layout
30364
30365 \end_inset
30366
30367  (this is default value, and corresponds to usual content).
30368  
30369 \begin_inset Flex Code
30370 status collapsed
30371
30372 \begin_layout Plain Layout
30373
30374 \change_inserted -970929547 1515110517
30375 always
30376 \change_unchanged
30377
30378 \end_layout
30379
30380 \end_inset
30381
30382  indicates that the tag always goes into 
30383 \begin_inset Flex Code
30384 status collapsed
30385
30386 \begin_layout Plain Layout
30387
30388 \change_inserted -970929547 1515110514
30389 <info>
30390 \change_unchanged
30391
30392 \end_layout
30393
30394 \end_inset
30395
30396  (this corresponds to usual metadata): if there is no 
30397 \begin_inset Flex Code
30398 status collapsed
30399
30400 \begin_layout Plain Layout
30401
30402 \change_inserted -970929547 1515110550
30403 <info>
30404 \change_unchanged
30405
30406 \end_layout
30407
30408 \end_inset
30409
30410  tag for the parent, one 
30411 \series bold
30412 will
30413 \series default
30414  be generated.
30415  
30416 \begin_inset Flex Code
30417 status collapsed
30418
30419 \begin_layout Plain Layout
30420
30421 \change_inserted -970929547 1515110540
30422 maybe
30423 \change_unchanged
30424
30425 \end_layout
30426
30427 \end_inset
30428
30429  indicates that the tag may go into 
30430 \begin_inset Flex Code
30431 status collapsed
30432
30433 \begin_layout Plain Layout
30434
30435 \change_inserted -970929547 1515110538
30436 <info>
30437 \change_unchanged
30438
30439 \end_layout
30440
30441 \end_inset
30442
30443  (this is only the case for titles): if there is no 
30444 \begin_inset Flex Code
30445 status collapsed
30446
30447 \begin_layout Plain Layout
30448
30449 \change_inserted -970929547 1515110585
30450 <info>
30451 \change_unchanged
30452
30453 \end_layout
30454
30455 \end_inset
30456
30457  tag for the parent, 
30458 \series bold
30459 none
30460 \series default
30461  will be generated, the corresponding tag will be output directly as content.
30462  
30463 \end_layout
30464
30465 \begin_layout Description
30466
30467 \change_inserted -970929547 1515111461
30468 \begin_inset Flex Code
30469 status collapsed
30470
30471 \begin_layout Plain Layout
30472
30473 \change_inserted -970929547 1515110974
30474 DocBookItemAttr
30475 \change_unchanged
30476
30477 \end_layout
30478
30479 \end_inset
30480
30481  [
30482 \begin_inset Flex Code
30483 status collapsed
30484
30485 \begin_layout Plain Layout
30486
30487 \change_inserted -970929547 1515110973
30488 string
30489 \change_unchanged
30490
30491 \end_layout
30492
30493 \end_inset
30494
30495 ] Specifies attribute information to be output with the item tag, replacing
30496  
30497 \begin_inset Quotes eld
30498 \end_inset
30499
30500
30501 \begin_inset Flex Code
30502 status collapsed
30503
30504 \begin_layout Plain Layout
30505
30506 \change_inserted -970929547 1515110984
30507 itemattr
30508 \change_unchanged
30509
30510 \end_layout
30511
30512 \end_inset
30513
30514
30515 \begin_inset Quotes erd
30516 \end_inset
30517
30518  in the example above.
30519  This information can be used in further processing of the DocBook files.
30520  
30521 \end_layout
30522
30523 \begin_layout Description
30524
30525 \change_inserted -970929547 1515111471
30526 \begin_inset Flex Code
30527 status collapsed
30528
30529 \begin_layout Plain Layout
30530
30531 \change_inserted -970929547 1515111465
30532 DocBookItemInnerAttr
30533 \change_unchanged
30534
30535 \end_layout
30536
30537 \end_inset
30538
30539  [
30540 \begin_inset Flex Code
30541 status collapsed
30542
30543 \begin_layout Plain Layout
30544
30545 \change_inserted -970929547 1515111461
30546 string
30547 \change_unchanged
30548
30549 \end_layout
30550
30551 \end_inset
30552
30553 ] Specifies attribute information to be output with the item inner tag,
30554  replacing 
30555 \begin_inset Quotes eld
30556 \end_inset
30557
30558
30559 \begin_inset Flex Code
30560 status collapsed
30561
30562 \begin_layout Plain Layout
30563
30564 \change_inserted -970929547 1515111476
30565 iteminnerattr
30566 \change_unchanged
30567
30568 \end_layout
30569
30570 \end_inset
30571
30572
30573 \begin_inset Quotes erd
30574 \end_inset
30575
30576  in the example above.
30577  This information can be used in further processing of the DocBook files.
30578  
30579 \end_layout
30580
30581 \begin_layout Description
30582
30583 \change_inserted -970929547 1515111494
30584 \begin_inset Flex Code
30585 status collapsed
30586
30587 \begin_layout Plain Layout
30588
30589 \change_inserted -970929547 1515111467
30590 DocBookItemInnerTag
30591 \change_unchanged
30592
30593 \end_layout
30594
30595 \end_inset
30596
30597  [
30598 \begin_inset Flex Code
30599 status collapsed
30600
30601 \begin_layout Plain Layout
30602
30603 \change_inserted -970929547 1515111461
30604 string
30605 \change_unchanged
30606
30607 \end_layout
30608
30609 \end_inset
30610
30611 ] The tag to be used for the item inner tag within the inset, replacing
30612  
30613 \begin_inset Quotes eld
30614 \end_inset
30615
30616
30617 \begin_inset Flex Code
30618 status collapsed
30619
30620 \begin_layout Plain Layout
30621
30622 \change_inserted -970929547 1515111486
30623 iteminnertag
30624 \change_unchanged
30625
30626 \end_layout
30627
30628 \end_inset
30629
30630
30631 \begin_inset Quotes erd
30632 \end_inset
30633
30634  in the example above.
30635  The default is 
30636 \begin_inset Flex Code
30637 status collapsed
30638
30639 \begin_layout Plain Layout
30640
30641 \change_inserted -970929547 1515111461
30642 NONE
30643 \change_unchanged
30644
30645 \end_layout
30646
30647 \end_inset
30648
30649 , indicating that there is no item inner tag: content is directly output
30650  without it for each itemised element.
30651  This parameter only makes sense when itemising layouts are used, such as
30652  lists.
30653  
30654 \change_inserted 1075283030 1598469472
30655 The most likely value is 
30656 \begin_inset Quotes eld
30657 \end_inset
30658
30659
30660 \begin_inset Flex Code
30661 status collapsed
30662
30663 \begin_layout Plain Layout
30664
30665 \change_inserted 1075283030 1598469476
30666 para
30667 \change_unchanged
30668
30669 \end_layout
30670
30671 \end_inset
30672
30673
30674 \begin_inset Quotes erd
30675 \end_inset
30676
30677 .
30678 \begin_inset Newline newline
30679 \end_inset
30680
30681 When a list item is split using a new line, the item inner tag will be repeated
30682  for each part of the paragraph, parts being separated by new lines.
30683  
30684 \end_layout
30685
30686 \begin_layout Description
30687
30688 \change_inserted 1075283030 1597699866
30689 \begin_inset Flex Code
30690 status collapsed
30691
30692 \begin_layout Plain Layout
30693
30694 \change_inserted 1075283030 1597699853
30695 DocBookItemInnerTagType
30696 \change_unchanged
30697
30698 \end_layout
30699
30700 \end_inset
30701
30702  [
30703 \begin_inset Flex Code
30704 status collapsed
30705
30706 \begin_layout Plain Layout
30707
30708 \change_inserted 1075283030 1597699866
30709 block, paragraph, inline
30710 \change_unchanged
30711
30712 \end_layout
30713
30714 \end_inset
30715
30716 ] The new-line policy for this tag, see Section
30717 \begin_inset space ~
30718 \end_inset
30719
30720
30721 \begin_inset CommandInset ref
30722 LatexCommand ref
30723 reference "subsec:DocBook-New-line-policy"
30724 plural "false"
30725 caps "false"
30726 noprefix "false"
30727
30728 \end_inset
30729
30730  for the details.
30731  
30732 \change_unchanged
30733
30734 \end_layout
30735
30736 \begin_layout Description
30737
30738 \change_inserted -970929547 1515111290
30739 \begin_inset Flex Code
30740 status collapsed
30741
30742 \begin_layout Plain Layout
30743
30744 \change_inserted -970929547 1515111283
30745 DocBookItemLabelAttr
30746 \change_unchanged
30747
30748 \end_layout
30749
30750 \end_inset
30751
30752  [
30753 \begin_inset Flex Code
30754 status collapsed
30755
30756 \begin_layout Plain Layout
30757
30758 \change_inserted -970929547 1515111279
30759 string
30760 \change_unchanged
30761
30762 \end_layout
30763
30764 \end_inset
30765
30766 ] Specifies attribute information to be output with the item label tag,
30767  replacing 
30768 \begin_inset Quotes eld
30769 \end_inset
30770
30771
30772 \begin_inset Flex Code
30773 status collapsed
30774
30775 \begin_layout Plain Layout
30776
30777 \change_inserted -970929547 1515111304
30778 itemlabelattr
30779 \change_unchanged
30780
30781 \end_layout
30782
30783 \end_inset
30784
30785
30786 \begin_inset Quotes erd
30787 \end_inset
30788
30789  in the example above.
30790  This information can be used in further processing of the DocBook files.
30791  
30792 \end_layout
30793
30794 \begin_layout Description
30795
30796 \change_inserted -970929547 1515111337
30797 \begin_inset Flex Code
30798 status collapsed
30799
30800 \begin_layout Plain Layout
30801
30802 \change_inserted -970929547 1515111285
30803 DocBookItemLabelTag
30804 \change_unchanged
30805
30806 \end_layout
30807
30808 \end_inset
30809
30810  [
30811 \begin_inset Flex Code
30812 status collapsed
30813
30814 \begin_layout Plain Layout
30815
30816 \change_inserted -970929547 1515111279
30817 string
30818 \change_unchanged
30819
30820 \end_layout
30821
30822 \end_inset
30823
30824 ] The tag to be used for the item label tag within the inset, replacing
30825  
30826 \begin_inset Quotes eld
30827 \end_inset
30828
30829
30830 \begin_inset Flex Code
30831 status collapsed
30832
30833 \begin_layout Plain Layout
30834
30835 \change_inserted -970929547 1515111311
30836 itemlabeltag
30837 \change_unchanged
30838
30839 \end_layout
30840
30841 \end_inset
30842
30843
30844 \begin_inset Quotes erd
30845 \end_inset
30846
30847  in the example above.
30848  This parameter only makes sense when itemising layouts are used with a
30849  notion of labels, such as definition lists.
30850  
30851 \change_inserted 1075283030 1597699874
30852
30853 \end_layout
30854
30855 \begin_layout Description
30856
30857 \change_inserted 1075283030 1597699874
30858 \begin_inset Flex Code
30859 status collapsed
30860
30861 \begin_layout Plain Layout
30862
30863 \change_inserted 1075283030 1597699880
30864 DocBookItemLabelTagType
30865 \change_unchanged
30866
30867 \end_layout
30868
30869 \end_inset
30870
30871  [
30872 \begin_inset Flex Code
30873 status collapsed
30874
30875 \begin_layout Plain Layout
30876
30877 \change_inserted 1075283030 1597699874
30878 block, paragraph, inline
30879 \change_unchanged
30880
30881 \end_layout
30882
30883 \end_inset
30884
30885 ] The new-line policy for this tag, see Section
30886 \begin_inset space ~
30887 \end_inset
30888
30889
30890 \begin_inset CommandInset ref
30891 LatexCommand ref
30892 reference "subsec:DocBook-New-line-policy"
30893 plural "false"
30894 caps "false"
30895 noprefix "false"
30896
30897 \end_inset
30898
30899  for the details.
30900  
30901 \change_unchanged
30902
30903 \end_layout
30904
30905 \begin_layout Description
30906
30907 \change_inserted -970929547 1515111124
30908 \begin_inset Flex Code
30909 status collapsed
30910
30911 \begin_layout Plain Layout
30912
30913 \change_inserted -970929547 1515111060
30914 DocBookItemTag
30915 \change_unchanged
30916
30917 \end_layout
30918
30919 \end_inset
30920
30921  [
30922 \begin_inset Flex Code
30923 status collapsed
30924
30925 \begin_layout Plain Layout
30926
30927 \change_inserted -970929547 1515111060
30928 string
30929 \change_unchanged
30930
30931 \end_layout
30932
30933 \end_inset
30934
30935 ] The tag to be used for the item tag within the inset, replacing 
30936 \begin_inset Quotes eld
30937 \end_inset
30938
30939
30940 \begin_inset Flex Code
30941 status collapsed
30942
30943 \begin_layout Plain Layout
30944
30945 \change_inserted -970929547 1515111060
30946 itemtag
30947 \change_unchanged
30948
30949 \end_layout
30950
30951 \end_inset
30952
30953
30954 \begin_inset Quotes erd
30955 \end_inset
30956
30957  in the example above.
30958  The default is 
30959 \begin_inset Flex Code
30960 status collapsed
30961
30962 \begin_layout Plain Layout
30963
30964 \change_inserted -970929547 1515111060
30965 NONE
30966 \change_unchanged
30967
30968 \end_layout
30969
30970 \end_inset
30971
30972 , indicating that there is no item tag.
30973  This parameter only makes sense when itemising layouts are used, such as
30974  lists.
30975  
30976 \change_inserted 1075283030 1597699890
30977
30978 \end_layout
30979
30980 \begin_layout Description
30981
30982 \change_inserted 1075283030 1597699890
30983 \begin_inset Flex Code
30984 status collapsed
30985
30986 \begin_layout Plain Layout
30987
30988 \change_inserted 1075283030 1597699890
30989 DocBookItemTagType
30990 \change_unchanged
30991
30992 \end_layout
30993
30994 \end_inset
30995
30996  [
30997 \begin_inset Flex Code
30998 status collapsed
30999
31000 \begin_layout Plain Layout
31001
31002 \change_inserted 1075283030 1597699890
31003 block, paragraph, inline
31004 \change_unchanged
31005
31006 \end_layout
31007
31008 \end_inset
31009
31010 ] The new-line policy for this tag, see Section
31011 \begin_inset space ~
31012 \end_inset
31013
31014
31015 \begin_inset CommandInset ref
31016 LatexCommand ref
31017 reference "subsec:DocBook-New-line-policy"
31018 plural "false"
31019 caps "false"
31020 noprefix "false"
31021
31022 \end_inset
31023
31024  for the details.
31025  
31026 \change_unchanged
31027
31028 \end_layout
31029
31030 \begin_layout Description
31031
31032 \change_inserted -970929547 1515111298
31033 \begin_inset Flex Code
31034 status collapsed
31035
31036 \begin_layout Plain Layout
31037
31038 \change_inserted -970929547 1515111124
31039 DocBookItemWrapperAttr
31040 \change_unchanged
31041
31042 \end_layout
31043
31044 \end_inset
31045
31046  [
31047 \begin_inset Flex Code
31048 status collapsed
31049
31050 \begin_layout Plain Layout
31051
31052 \change_inserted -970929547 1515111124
31053 string
31054 \change_unchanged
31055
31056 \end_layout
31057
31058 \end_inset
31059
31060 ] Specifies attribute information to be output with the item wrapper tag,
31061  replacing 
31062 \begin_inset Quotes eld
31063 \end_inset
31064
31065
31066 \begin_inset Flex Code
31067 status collapsed
31068
31069 \begin_layout Plain Layout
31070
31071 \change_inserted -970929547 1515111150
31072 itemwrapperattr
31073 \change_unchanged
31074
31075 \end_layout
31076
31077 \end_inset
31078
31079
31080 \begin_inset Quotes erd
31081 \end_inset
31082
31083  in the example above.
31084  This information can be used in further processing of the DocBook files.
31085  
31086 \change_unchanged
31087
31088 \end_layout
31089
31090 \begin_layout Description
31091
31092 \change_inserted -970929547 1515111113
31093 \begin_inset Flex Code
31094 status collapsed
31095
31096 \begin_layout Plain Layout
31097
31098 \change_inserted -970929547 1515111073
31099 DocBookItemWrapperTag
31100 \change_unchanged
31101
31102 \end_layout
31103
31104 \end_inset
31105
31106  [
31107 \begin_inset Flex Code
31108 status collapsed
31109
31110 \begin_layout Plain Layout
31111
31112 \change_inserted -970929547 1515111073
31113 string
31114 \change_unchanged
31115
31116 \end_layout
31117
31118 \end_inset
31119
31120 ] The tag to be used for the item wrapper tag within the inset, replacing
31121  
31122 \begin_inset Quotes eld
31123 \end_inset
31124
31125
31126 \begin_inset Flex Code
31127 status collapsed
31128
31129 \begin_layout Plain Layout
31130
31131 \change_inserted -970929547 1515111083
31132 itemwrappertag
31133 \change_unchanged
31134
31135 \end_layout
31136
31137 \end_inset
31138
31139
31140 \begin_inset Quotes erd
31141 \end_inset
31142
31143  in the example above.
31144  The default is 
31145 \begin_inset Flex Code
31146 status collapsed
31147
31148 \begin_layout Plain Layout
31149
31150 \change_inserted -970929547 1515111073
31151 NONE
31152 \change_unchanged
31153
31154 \end_layout
31155
31156 \end_inset
31157
31158 , indicating that there is no item wrapper tag: tag and content are directly
31159  output without it for each itemised element.
31160  This parameter only makes sense when itemising layouts are used, such as
31161  lists.
31162  
31163 \change_inserted 1075283030 1597699897
31164
31165 \end_layout
31166
31167 \begin_layout Description
31168
31169 \change_inserted 1075283030 1597699897
31170 \begin_inset Flex Code
31171 status collapsed
31172
31173 \begin_layout Plain Layout
31174
31175 \change_inserted 1075283030 1597699900
31176 DocBookItemWrapperTagType
31177 \change_unchanged
31178
31179 \end_layout
31180
31181 \end_inset
31182
31183  [
31184 \begin_inset Flex Code
31185 status collapsed
31186
31187 \begin_layout Plain Layout
31188
31189 \change_inserted 1075283030 1597699897
31190 block, paragraph, inline
31191 \change_unchanged
31192
31193 \end_layout
31194
31195 \end_inset
31196
31197 ] The new-line policy for this tag, see Section
31198 \begin_inset space ~
31199 \end_inset
31200
31201
31202 \begin_inset CommandInset ref
31203 LatexCommand ref
31204 reference "subsec:DocBook-New-line-policy"
31205 plural "false"
31206 caps "false"
31207 noprefix "false"
31208
31209 \end_inset
31210
31211  for the details.
31212  
31213 \change_unchanged
31214
31215 \end_layout
31216
31217 \begin_layout Description
31218
31219 \change_inserted -970929547 1515110104
31220 \begin_inset Flex Code
31221 status collapsed
31222
31223 \begin_layout Plain Layout
31224
31225 \change_inserted -970929547 1515110104
31226 DocBookInnerAttr
31227 \change_unchanged
31228
31229 \end_layout
31230
31231 \end_inset
31232
31233  [
31234 \begin_inset Flex Code
31235 status collapsed
31236
31237 \begin_layout Plain Layout
31238
31239 \change_inserted -970929547 1515110104
31240 string
31241 \change_unchanged
31242
31243 \end_layout
31244
31245 \end_inset
31246
31247 ] Specifies attribute information to be output with the inner tag, replacing
31248  
31249 \begin_inset Quotes eld
31250 \end_inset
31251
31252
31253 \begin_inset Flex Code
31254 status collapsed
31255
31256 \begin_layout Plain Layout
31257
31258 \change_inserted -970929547 1515110104
31259 innerattr
31260 \change_unchanged
31261
31262 \end_layout
31263
31264 \end_inset
31265
31266
31267 \begin_inset Quotes erd
31268 \end_inset
31269
31270  in the example above.
31271  This information can be used in further processing of the DocBook files.
31272  
31273 \end_layout
31274
31275 \begin_layout Description
31276
31277 \change_inserted -970929547 1515110906
31278 \begin_inset Flex Code
31279 status collapsed
31280
31281 \begin_layout Plain Layout
31282
31283 \change_inserted -970929547 1515110104
31284 DocBookInnerTag
31285 \change_unchanged
31286
31287 \end_layout
31288
31289 \end_inset
31290
31291  [
31292 \begin_inset Flex Code
31293 status collapsed
31294
31295 \begin_layout Plain Layout
31296
31297 \change_inserted -970929547 1515110104
31298 string
31299 \change_unchanged
31300
31301 \end_layout
31302
31303 \end_inset
31304
31305 ] The tag to be used for the inner tag within the inset, replacing 
31306 \begin_inset Quotes eld
31307 \end_inset
31308
31309
31310 \begin_inset Flex Code
31311 status collapsed
31312
31313 \begin_layout Plain Layout
31314
31315 \change_inserted -970929547 1515110104
31316 innertag
31317 \change_unchanged
31318
31319 \end_layout
31320
31321 \end_inset
31322
31323
31324 \begin_inset Quotes erd
31325 \end_inset
31326
31327  in the example above.
31328  The default is 
31329 \begin_inset Flex Code
31330 status collapsed
31331
31332 \begin_layout Plain Layout
31333
31334 \change_inserted -970929547 1515110791
31335 NONE
31336 \change_unchanged
31337
31338 \end_layout
31339
31340 \end_inset
31341
31342 , indicating that there is no inner tag: content is directly output without
31343  it.
31344 \change_inserted 1075283030 1597699904
31345
31346 \end_layout
31347
31348 \begin_layout Description
31349
31350 \change_inserted 1075283030 1597699904
31351 \begin_inset Flex Code
31352 status collapsed
31353
31354 \begin_layout Plain Layout
31355
31356 \change_inserted 1075283030 1597699904
31357 DocBookInnerTagType
31358 \change_unchanged
31359
31360 \end_layout
31361
31362 \end_inset
31363
31364  [
31365 \begin_inset Flex Code
31366 status collapsed
31367
31368 \begin_layout Plain Layout
31369
31370 \change_inserted 1075283030 1597699904
31371 block, paragraph, inline
31372 \change_unchanged
31373
31374 \end_layout
31375
31376 \end_inset
31377
31378 ] The new-line policy for this tag, see Section
31379 \begin_inset space ~
31380 \end_inset
31381
31382
31383 \begin_inset CommandInset ref
31384 LatexCommand ref
31385 reference "subsec:DocBook-New-line-policy"
31386 plural "false"
31387 caps "false"
31388 noprefix "false"
31389
31390 \end_inset
31391
31392  for the details.
31393  
31394 \change_unchanged
31395
31396 \end_layout
31397
31398 \begin_layout Description
31399
31400 \change_inserted -970929547 1515110753
31401 \begin_inset Flex Code
31402 status collapsed
31403
31404 \begin_layout Plain Layout
31405
31406 \change_inserted -970929547 1515110665
31407 DocBookSectionTag
31408 \change_unchanged
31409
31410 \end_layout
31411
31412 \end_inset
31413
31414  [
31415 \begin_inset Flex Code
31416 status collapsed
31417
31418 \begin_layout Plain Layout
31419
31420 \change_inserted -970929547 1515110661
31421 string
31422 \change_unchanged
31423
31424 \end_layout
31425
31426 \end_inset
31427
31428 ] Specifies the tag that corresponds to this kind of section.
31429  This parameter only makes sense for sectioning elements (part, chapter,
31430  section, etc.).
31431  The default value is 
31432 \begin_inset Flex Code
31433 status collapsed
31434
31435 \begin_layout Plain Layout
31436
31437 \change_inserted -970929547 1515110721
31438 section
31439 \change_unchanged
31440
31441 \end_layout
31442
31443 \end_inset
31444
31445 , and is only overridden when DocBook uses something else for sectioning
31446  (
31447 \change_inserted 1075283030 1597699921
31448 typically, 
31449 \change_inserted -970929547 1515110753
31450 parts and chapters of a book).
31451  
31452 \change_unchanged
31453
31454 \end_layout
31455
31456 \begin_layout Description
31457
31458 \change_inserted -970929547 1515110811
31459 \begin_inset Flex Code
31460 status collapsed
31461
31462 \begin_layout Plain Layout
31463
31464 \change_inserted -970929547 1496612023
31465 DocBookTag
31466 \change_unchanged
31467
31468 \end_layout
31469
31470 \end_inset
31471
31472  [
31473 \begin_inset Flex Code
31474 status collapsed
31475
31476 \begin_layout Plain Layout
31477
31478 \change_inserted -970929547 1496610966
31479 string
31480 \change_unchanged
31481
31482 \end_layout
31483
31484 \end_inset
31485
31486 ] The tag to be used for this inset, replacing 
31487 \begin_inset Quotes eld
31488 \end_inset
31489
31490
31491 \begin_inset Flex Code
31492 status collapsed
31493
31494 \begin_layout Plain Layout
31495
31496 \change_inserted -970929547 1496612033
31497 tag
31498 \change_unchanged
31499
31500 \end_layout
31501
31502 \end_inset
31503
31504
31505 \begin_inset Quotes erd
31506 \end_inset
31507
31508  in the example above.
31509  The default is the name of the float and always needs to be changed, as
31510  DocBook provides no generic inset tag.
31511 \change_inserted 1075283030 1597699924
31512
31513 \end_layout
31514
31515 \begin_layout Description
31516
31517 \change_inserted 1075283030 1597699924
31518 \begin_inset Flex Code
31519 status collapsed
31520
31521 \begin_layout Plain Layout
31522
31523 \change_inserted 1075283030 1597699924
31524 DocBookTagType
31525 \change_unchanged
31526
31527 \end_layout
31528
31529 \end_inset
31530
31531  [
31532 \begin_inset Flex Code
31533 status collapsed
31534
31535 \begin_layout Plain Layout
31536
31537 \change_inserted 1075283030 1597699924
31538 block, paragraph, inline
31539 \change_unchanged
31540
31541 \end_layout
31542
31543 \end_inset
31544
31545 ] The new-line policy for this tag, see Section
31546 \begin_inset space ~
31547 \end_inset
31548
31549
31550 \begin_inset CommandInset ref
31551 LatexCommand ref
31552 reference "subsec:DocBook-New-line-policy"
31553 plural "false"
31554 caps "false"
31555 noprefix "false"
31556
31557 \end_inset
31558
31559  for the details.
31560  
31561 \change_unchanged
31562
31563 \end_layout
31564
31565 \begin_layout Description
31566
31567 \change_inserted -970929547 1515110832
31568 \begin_inset Flex Code
31569 status collapsed
31570
31571 \begin_layout Plain Layout
31572
31573 \change_inserted -970929547 1515110822
31574 DocBookWrapperAttr
31575 \change_unchanged
31576
31577 \end_layout
31578
31579 \end_inset
31580
31581  [
31582 \begin_inset Flex Code
31583 status collapsed
31584
31585 \begin_layout Plain Layout
31586
31587 \change_inserted -970929547 1515110811
31588 string
31589 \change_unchanged
31590
31591 \end_layout
31592
31593 \end_inset
31594
31595 ] Specifies attribute information to be output with the outer tag, replacing
31596  
31597 \begin_inset Quotes eld
31598 \end_inset
31599
31600
31601 \begin_inset Flex Code
31602 status collapsed
31603
31604 \begin_layout Plain Layout
31605
31606 \change_inserted -970929547 1515110845
31607 wrapperattr
31608 \change_unchanged
31609
31610 \end_layout
31611
31612 \end_inset
31613
31614
31615 \begin_inset Quotes erd
31616 \end_inset
31617
31618  in the example above.
31619  This information can be used in further processing of the DocBook files.
31620  
31621 \end_layout
31622
31623 \begin_layout Description
31624
31625 \change_inserted -970929547 1515110917
31626 \begin_inset Flex Code
31627 status collapsed
31628
31629 \begin_layout Plain Layout
31630
31631 \change_inserted -970929547 1515110826
31632 DocBookWrapperTag
31633 \change_unchanged
31634
31635 \end_layout
31636
31637 \end_inset
31638
31639  [
31640 \begin_inset Flex Code
31641 status collapsed
31642
31643 \begin_layout Plain Layout
31644
31645 \change_inserted -970929547 1515110811
31646 string
31647 \change_unchanged
31648
31649 \end_layout
31650
31651 \end_inset
31652
31653 ] The tag to be used for the wrapper tag around the inset, replacing 
31654 \begin_inset Quotes eld
31655 \end_inset
31656
31657
31658 \begin_inset Flex Code
31659 status collapsed
31660
31661 \begin_layout Plain Layout
31662
31663 \change_inserted -970929547 1515110842
31664 wrappertag
31665 \change_unchanged
31666
31667 \end_layout
31668
31669 \end_inset
31670
31671
31672 \begin_inset Quotes erd
31673 \end_inset
31674
31675  in the example above.
31676  The default is 
31677 \begin_inset Flex Code
31678 status collapsed
31679
31680 \begin_layout Plain Layout
31681
31682 \change_inserted -970929547 1515110811
31683 NONE
31684 \change_unchanged
31685
31686 \end_layout
31687
31688 \end_inset
31689
31690 , indicating that there is no wrapper tag: tag and content are directly
31691  output without it.
31692 \change_inserted 1075283030 1597699929
31693
31694 \end_layout
31695
31696 \begin_layout Description
31697
31698 \change_inserted 1075283030 1597699929
31699 \begin_inset Flex Code
31700 status collapsed
31701
31702 \begin_layout Plain Layout
31703
31704 \change_inserted 1075283030 1597699932
31705 DocBookWrapperTagType
31706 \change_unchanged
31707
31708 \end_layout
31709
31710 \end_inset
31711
31712  [
31713 \begin_inset Flex Code
31714 status collapsed
31715
31716 \begin_layout Plain Layout
31717
31718 \change_inserted 1075283030 1597699929
31719 block, paragraph, inline
31720 \change_unchanged
31721
31722 \end_layout
31723
31724 \end_inset
31725
31726 ] The new-line policy for this tag, see Section
31727 \begin_inset space ~
31728 \end_inset
31729
31730
31731 \begin_inset CommandInset ref
31732 LatexCommand ref
31733 reference "subsec:DocBook-New-line-policy"
31734 plural "false"
31735 caps "false"
31736 noprefix "false"
31737
31738 \end_inset
31739
31740  for the details.
31741  
31742 \change_unchanged
31743
31744 \end_layout
31745
31746 \begin_layout Subsection
31747
31748 \change_inserted -970929547 1515110040
31749 Float DocBook
31750 \end_layout
31751
31752 \begin_layout Standard
31753
31754 \change_inserted -970929547 1496611700
31755 The DocBook output for floats too can be controlled by layout information.
31756  The output has the following form:
31757 \end_layout
31758
31759 \begin_layout LyX-Code
31760
31761 \change_inserted -970929547 1515109700
31762 <tag attr>
31763 \end_layout
31764
31765 \begin_layout LyX-Code
31766
31767 \change_inserted -970929547 1515110138
31768   Contents of the float as DocBook.
31769 \end_layout
31770
31771 \begin_layout LyX-Code
31772
31773 \change_inserted -970929547 1496610966
31774 </tag>
31775 \end_layout
31776
31777 \begin_layout Standard
31778
31779 \change_inserted -970929547 1496611715
31780 The caption, if there is one, is a separate inset and will be output as
31781  a title.
31782  
31783 \end_layout
31784
31785 \begin_layout Description
31786
31787 \change_inserted -970929547 1515110033
31788 \begin_inset Flex Code
31789 status collapsed
31790
31791 \begin_layout Plain Layout
31792
31793 \change_inserted -970929547 1515109702
31794 DocBookAttr
31795 \change_unchanged
31796
31797 \end_layout
31798
31799 \end_inset
31800
31801  [
31802 \begin_inset Flex Code
31803 status collapsed
31804
31805 \begin_layout Plain Layout
31806
31807 \change_inserted -970929547 1496610966
31808 string
31809 \change_unchanged
31810
31811 \end_layout
31812
31813 \end_inset
31814
31815 ] Specifies attribute information to be output with the main tag, replacing
31816  
31817 \begin_inset Quotes eld
31818 \end_inset
31819
31820
31821 \begin_inset Flex Code
31822 status collapsed
31823
31824 \begin_layout Plain Layout
31825
31826 \change_inserted -970929547 1515110035
31827 attr
31828 \change_unchanged
31829
31830 \end_layout
31831
31832 \end_inset
31833
31834
31835 \begin_inset Quotes erd
31836 \end_inset
31837
31838  in the example above.
31839  This information can be used in further processing of the DocBook files.
31840  
31841 \end_layout
31842
31843 \begin_layout Description
31844
31845 \change_inserted -970929547 1515110157
31846 \begin_inset Flex Code
31847 status collapsed
31848
31849 \begin_layout Plain Layout
31850
31851 \change_inserted -970929547 1496611782
31852 DocBookTag
31853 \change_unchanged
31854
31855 \end_layout
31856
31857 \end_inset
31858
31859  [
31860 \begin_inset Flex Code
31861 status collapsed
31862
31863 \begin_layout Plain Layout
31864
31865 \change_inserted -970929547 1496610966
31866 string
31867 \change_unchanged
31868
31869 \end_layout
31870
31871 \end_inset
31872
31873 ] The tag to be used for this float, replacing 
31874 \begin_inset Quotes eld
31875 \end_inset
31876
31877
31878 \begin_inset Flex Code
31879 status collapsed
31880
31881 \begin_layout Plain Layout
31882
31883 \change_inserted -970929547 1496610966
31884 tag
31885 \change_unchanged
31886
31887 \end_layout
31888
31889 \end_inset
31890
31891
31892 \begin_inset Quotes erd
31893 \end_inset
31894
31895  in the example above.
31896  The default is the name of the float and always needs to be changed, as
31897  DocBook provides no generic float tag.
31898 \end_layout
31899
31900 \begin_layout Subsection
31901
31902 \change_inserted -970929547 1515110157
31903 Bibliography formatting
31904 \end_layout
31905
31906 \begin_layout Standard
31907
31908 \change_deleted 1075283030 1597699984
31909 The 
31910 \change_inserted 1075283030 1597699985
31911 Included 
31912 \change_inserted -970929547 1515110187
31913 bibliograph
31914 \change_deleted 1075283030 1597699987
31915 y
31916 \change_inserted 1075283030 1597699987
31917 ies
31918 \change_inserted -970929547 1515110187
31919  cannot be formatted: all fields are always output in the database-like
31920  DocBook format (equivalent to a BibTeX file)
31921 \change_inserted 1075283030 1597700117
31922 , using the 
31923 \begin_inset Flex Code
31924 status collapsed
31925
31926 \begin_layout Plain Layout
31927
31928 \change_inserted 1075283030 1597700120
31929 biblioentry
31930 \change_unchanged
31931
31932 \end_layout
31933
31934 \end_inset
31935
31936  tag
31937 \change_inserted -970929547 1515110187
31938 .
31939 \change_inserted 1075283030 1597700092
31940
31941 \end_layout
31942
31943 \begin_layout Standard
31944
31945 \change_inserted 1075283030 1597700112
31946 When the bibliographic entries are manually inserted into the LyX document
31947  as Bibliography Items, the user deals with formatting themself: there is
31948  no attempt of parsing what the user wrote, the string is directly used
31949  (with the 
31950 \begin_inset Flex Code
31951 status collapsed
31952
31953 \begin_layout Plain Layout
31954
31955 \change_inserted 1075283030 1597700076
31956 bibliomixed
31957 \change_unchanged
31958
31959 \end_layout
31960
31961 \end_inset
31962
31963  tag).
31964  
31965 \change_unchanged
31966
31967 \end_layout
31968
31969 \begin_layout Chapter
31970 Including External Material
31971 \begin_inset CommandInset label
31972 LatexCommand label
31973 name "chap:Including-External-Material"
31974
31975 \end_inset
31976
31977
31978 \end_layout
31979
31980 \begin_layout Standard
31981 \begin_inset Box Shadowbox
31982 position "t"
31983 hor_pos "c"
31984 has_inner_box 1
31985 inner_pos "t"
31986 use_parbox 0
31987 use_makebox 0
31988 width "100col%"
31989 special "none"
31990 height "1in"
31991 height_special "totalheight"
31992 thickness "0.4pt"
31993 separation "3pt"
31994 shadowsize "4pt"
31995 framecolor "black"
31996 backgroundcolor "none"
31997 status open
31998
31999 \begin_layout Plain Layout
32000 WARNING: This portion of the documentation has not been updated for some
32001  time.
32002  We certainly hope that it is still accurate, but there are no guarantees.
32003 \end_layout
32004
32005 \end_inset
32006
32007
32008 \end_layout
32009
32010 \begin_layout Standard
32011 The use of material from sources external to \SpecialChar LyX
32012  is covered in detail in the
32013  
32014 \emph on
32015 Embedded Objects
32016 \emph default
32017  manual.
32018  This part of the manual covers what needs to happen behind the scenes for
32019  new sorts of material to be included.
32020 \end_layout
32021
32022 \begin_layout Section
32023 How does it work?
32024 \end_layout
32025
32026 \begin_layout Standard
32027 The external material feature is based on the concept of a 
32028 \emph on
32029 template
32030 \emph default
32031 .
32032  A template is a specification of how \SpecialChar LyX
32033  should interface with a certain kind
32034  of material.
32035  As bundled, \SpecialChar LyX
32036  comes with predefined templates for Xfig figures, various
32037  raster format images, chess diagrams, and LilyPond music notation.
32038  You can check the actual list by using the menu 
32039 \begin_inset Flex Noun
32040 status collapsed
32041
32042 \begin_layout Plain Layout
32043 Insert\SpecialChar menuseparator
32044 File\SpecialChar menuseparator
32045 External Material
32046 \end_layout
32047
32048 \end_inset
32049
32050 .
32051  Furthermore, it is possible to roll your own template to support a specific
32052  kind of material.
32053  Later we'll describe in more detail what is involved, and hopefully you
32054  will submit all the templates you create so we can include them in a later
32055  \SpecialChar LyX
32056  version.
32057 \end_layout
32058
32059 \begin_layout Standard
32060 Another basic idea of the external material feature is to distinguish between
32061  the original file that serves as a base for final material and the produced
32062  file that is included in your exported or printed document.
32063  For example, consider the case of a figure produced with 
32064 \begin_inset Flex Code
32065 status collapsed
32066
32067 \begin_layout Plain Layout
32068 Xfig
32069 \end_layout
32070
32071 \end_inset
32072
32073 .
32074  The Xfig application itself works on an original file with the 
32075 \begin_inset Flex Code
32076 status collapsed
32077
32078 \begin_layout Plain Layout
32079 .fig
32080 \end_layout
32081
32082 \end_inset
32083
32084  extension.
32085  Within Xfig, you create and change your figure, and when you are done,
32086  you save the 
32087 \begin_inset Flex Code
32088 status collapsed
32089
32090 \begin_layout Plain Layout
32091 fig
32092 \end_layout
32093
32094 \end_inset
32095
32096 -file.
32097  When you want to include the figure in your document, you invoke 
32098 \begin_inset Flex Code
32099 status collapsed
32100
32101 \begin_layout Plain Layout
32102 transfig
32103 \end_layout
32104
32105 \end_inset
32106
32107  in order to create a PostScript file that can readily be included in your
32108  \SpecialChar LaTeX
32109  file.
32110  In this case, the 
32111 \begin_inset Flex Code
32112 status collapsed
32113
32114 \begin_layout Plain Layout
32115 .fig
32116 \end_layout
32117
32118 \end_inset
32119
32120  file is the original file, and the PostScript file is the produced file.
32121 \end_layout
32122
32123 \begin_layout Standard
32124 This distinction is important in order to allow updating of the material
32125  while you are in the process of writing the document.
32126  Furthermore, it provides us with the flexibility that is needed to support
32127  multiple export formats.
32128  For instance, in the case of a plain text file, it is not exactly an award-winn
32129 ing idea to include the figure as raw PostScript.
32130  Instead, you would either prefer to just include a reference to the figure
32131  or try to invoke some graphics to ASCII converter to make the final result
32132  look similar to the real graphics.
32133  The external material management allows you to do this, because it is parametri
32134 zed on the different export formats that \SpecialChar LyX
32135  supports.
32136 \end_layout
32137
32138 \begin_layout Standard
32139 Besides supporting the production of different products according to the
32140  exported format, it supports tight integration with editing and viewing
32141  applications.
32142  In the case of an Xfig figure, you are able to invoke Xfig on the original
32143  file with a single click from within the external material dialog in \SpecialChar LyX
32144 ,
32145  and also preview the produced PostScript file with Ghostview with another
32146  click.
32147  No more fiddling around with the command line and/or file browsers to locate
32148  and manipulate the original or produced files.
32149  In this way, you are finally able to take full advantage of the many different
32150  applications that are relevant to use when you write your documents, and
32151  ultimately be more productive.
32152 \end_layout
32153
32154 \begin_layout Section
32155 The external template configuration files
32156 \end_layout
32157
32158 \begin_layout Standard
32159 It is relatively easy to add custom external template definitions to \SpecialChar LyX
32160 .
32161  However, be aware that doing this in an careless manner most probably 
32162 \emph on
32163 will
32164 \emph default
32165  introduce an easily exploitable security hole.
32166  So before you do this, please read the discussion about security in 
32167 \begin_inset CommandInset ref
32168 LatexCommand ref
32169 reference "sec:Security-discussion"
32170
32171 \end_inset
32172
32173 .
32174 \end_layout
32175
32176 \begin_layout Standard
32177 Having said that, we encourage you to submit any interesting templates that
32178  you create.
32179  
32180 \end_layout
32181
32182 \begin_layout Standard
32183 The external templates are defined in the 
32184 \begin_inset Flex Code
32185 status collapsed
32186
32187 \begin_layout Plain Layout
32188 *.xtemplate
32189 \end_layout
32190
32191 \end_inset
32192
32193  files that are stored in the 
32194 \begin_inset Flex Code
32195 status collapsed
32196
32197 \begin_layout Plain Layout
32198 LyXDir/lib/xtemplates/
32199 \end_layout
32200
32201 \end_inset
32202
32203  directory.
32204  Each template is defined in a file of its own.
32205  You can place your own templates in 
32206 \begin_inset Flex Code
32207 status collapsed
32208
32209 \begin_layout Plain Layout
32210 UserDir/xtemplates/
32211 \end_layout
32212
32213 \end_inset
32214
32215  or copy existing templates to that directory in order to modify them.
32216 \end_layout
32217
32218 \begin_layout Standard
32219 A typical template looks like this:
32220 \end_layout
32221
32222 \begin_layout LyX-Code
32223 Template XFig
32224 \end_layout
32225
32226 \begin_layout LyX-Code
32227 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
32228 \end_layout
32229
32230 \begin_layout LyX-Code
32231 HelpText
32232 \end_layout
32233
32234 \begin_layout LyX-Code
32235 An XFig figure.
32236 \end_layout
32237
32238 \begin_layout LyX-Code
32239 HelpTextEnd
32240 \end_layout
32241
32242 \begin_layout LyX-Code
32243 InputFormat fig
32244 \end_layout
32245
32246 \begin_layout LyX-Code
32247 FileFilter "*.fig"
32248 \end_layout
32249
32250 \begin_layout LyX-Code
32251 AutomaticProduction true
32252 \end_layout
32253
32254 \begin_layout LyX-Code
32255 Transform Rotate
32256 \end_layout
32257
32258 \begin_layout LyX-Code
32259 Transform Resize
32260 \end_layout
32261
32262 \begin_layout LyX-Code
32263 Format LaTeX
32264 \end_layout
32265
32266 \begin_layout LyX-Code
32267 TransformCommand Rotate RotationLatexCommand
32268 \end_layout
32269
32270 \begin_layout LyX-Code
32271 TransformCommand Resize ResizeLatexCommand
32272 \end_layout
32273
32274 \begin_layout LyX-Code
32275 Product "$$RotateFront$$ResizeFront
32276 \end_layout
32277
32278 \begin_layout LyX-Code
32279          
32280 \backslash
32281
32282 \backslash
32283 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
32284 \end_layout
32285
32286 \begin_layout LyX-Code
32287          $$ResizeBack$$RotateBack"
32288 \end_layout
32289
32290 \begin_layout LyX-Code
32291 UpdateFormat pstex
32292 \end_layout
32293
32294 \begin_layout LyX-Code
32295 UpdateResult "$$AbsPath$$Basename.pstex_t"
32296 \end_layout
32297
32298 \begin_layout LyX-Code
32299 Requirement "graphicx"
32300 \end_layout
32301
32302 \begin_layout LyX-Code
32303 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
32304 \end_layout
32305
32306 \begin_layout LyX-Code
32307 ReferencedFile latex "$$AbsPath$$Basename.eps"
32308 \end_layout
32309
32310 \begin_layout LyX-Code
32311 ReferencedFile dvi "$$AbsPath$$Basename.eps"
32312 \end_layout
32313
32314 \begin_layout LyX-Code
32315 FormatEnd
32316 \end_layout
32317
32318 \begin_layout LyX-Code
32319 Format PDFLaTeX
32320 \end_layout
32321
32322 \begin_layout LyX-Code
32323 TransformCommand Rotate RotationLatexCommand
32324 \end_layout
32325
32326 \begin_layout LyX-Code
32327 TransformCommand Resize ResizeLatexCommand
32328 \end_layout
32329
32330 \begin_layout LyX-Code
32331 Product "$$RotateFront$$ResizeFront
32332 \end_layout
32333
32334 \begin_layout LyX-Code
32335          
32336 \backslash
32337
32338 \backslash
32339 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
32340 \end_layout
32341
32342 \begin_layout LyX-Code
32343          $$ResizeBack$$RotateBack"
32344 \end_layout
32345
32346 \begin_layout LyX-Code
32347 UpdateFormat pdftex
32348 \end_layout
32349
32350 \begin_layout LyX-Code
32351 UpdateResult "$$AbsPath$$Basename.pdftex_t"
32352 \end_layout
32353
32354 \begin_layout LyX-Code
32355 Requirement "graphicx"
32356 \end_layout
32357
32358 \begin_layout LyX-Code
32359 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
32360 \end_layout
32361
32362 \begin_layout LyX-Code
32363 ReferencedFile latex "$$AbsPath$$Basename.pdf"
32364 \end_layout
32365
32366 \begin_layout LyX-Code
32367 FormatEnd
32368 \end_layout
32369
32370 \begin_layout LyX-Code
32371 Format Ascii
32372 \end_layout
32373
32374 \begin_layout LyX-Code
32375 Product "[XFig: $$FName]"
32376 \end_layout
32377
32378 \begin_layout LyX-Code
32379 FormatEnd
32380 \end_layout
32381
32382 \begin_layout LyX-Code
32383 Format DocBook
32384 \end_layout
32385
32386 \begin_layout LyX-Code
32387 Product "<graphic fileref=
32388 \backslash
32389 "$$AbsOrRelPathMaster$$Basename.eps
32390 \backslash
32391 ">
32392 \end_layout
32393
32394 \begin_layout LyX-Code
32395          </graphic>"
32396 \end_layout
32397
32398 \begin_layout LyX-Code
32399 UpdateFormat eps
32400 \end_layout
32401
32402 \begin_layout LyX-Code
32403 UpdateResult "$$AbsPath$$Basename.eps"
32404 \end_layout
32405
32406 \begin_layout LyX-Code
32407 ReferencedFile docbook "$$AbsPath$$Basename.eps"
32408 \end_layout
32409
32410 \begin_layout LyX-Code
32411 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
32412 \end_layout
32413
32414 \begin_layout LyX-Code
32415 FormatEnd
32416 \end_layout
32417
32418 \begin_layout LyX-Code
32419 TemplateEnd
32420 \end_layout
32421
32422 \begin_layout Standard
32423 As you can see, the template is enclosed in 
32424 \begin_inset Flex Code
32425 status collapsed
32426
32427 \begin_layout Plain Layout
32428 Template
32429 \end_layout
32430
32431 \end_inset
32432
32433  \SpecialChar ldots
32434  
32435 \begin_inset Flex Code
32436 status collapsed
32437
32438 \begin_layout Plain Layout
32439 TemplateEnd
32440 \end_layout
32441
32442 \end_inset
32443
32444 .
32445  It contains a header specifying some general settings and, for each supported
32446  primary document file format, a section 
32447 \begin_inset Flex Code
32448 status collapsed
32449
32450 \begin_layout Plain Layout
32451 Format
32452 \end_layout
32453
32454 \end_inset
32455
32456  \SpecialChar ldots
32457  
32458 \begin_inset Flex Code
32459 status collapsed
32460
32461 \begin_layout Plain Layout
32462 FormatEnd
32463 \end_layout
32464
32465 \end_inset
32466
32467 .
32468 \end_layout
32469
32470 \begin_layout Subsection
32471 The template header
32472 \end_layout
32473
32474 \begin_layout Description
32475 \begin_inset Flex Code
32476 status collapsed
32477
32478 \begin_layout Plain Layout
32479 AutomaticProduction
32480 \begin_inset space ~
32481 \end_inset
32482
32483 true|false
32484 \end_layout
32485
32486 \end_inset
32487
32488  Whether the file represented by the template must be generated by \SpecialChar LyX
32489 .
32490  This command must occur exactly once.
32491 \end_layout
32492
32493 \begin_layout Description
32494 \begin_inset Flex Code
32495 status collapsed
32496
32497 \begin_layout Plain Layout
32498 FileFilter
32499 \begin_inset space ~
32500 \end_inset
32501
32502 <pattern>
32503 \end_layout
32504
32505 \end_inset
32506
32507  A glob pattern that is used in the file dialog to filter out the desired
32508  files.
32509  If there is more than one possible file extension (e.
32510 \begin_inset space \thinspace{}
32511 \end_inset
32512
32513 g.
32514 \begin_inset space \space{}
32515 \end_inset
32516
32517 tgif has 
32518 \begin_inset Flex Code
32519 status collapsed
32520
32521 \begin_layout Plain Layout
32522 .obj
32523 \end_layout
32524
32525 \end_inset
32526
32527  and 
32528 \begin_inset Flex Code
32529 status collapsed
32530
32531 \begin_layout Plain Layout
32532 .tgo
32533 \end_layout
32534
32535 \end_inset
32536
32537 ), use something like 
32538 \begin_inset Flex Code
32539 status collapsed
32540
32541 \begin_layout Plain Layout
32542 "*.{obj,tgo}"
32543 \end_layout
32544
32545 \end_inset
32546
32547 .
32548  This command must occur exactly once.
32549 \end_layout
32550
32551 \begin_layout Description
32552 \begin_inset Flex Code
32553 status collapsed
32554
32555 \begin_layout Plain Layout
32556 GuiName
32557 \begin_inset space ~
32558 \end_inset
32559
32560 <guiname>
32561 \end_layout
32562
32563 \end_inset
32564
32565  The text that is displayed on the button.
32566  This command must occur exactly once.
32567 \end_layout
32568
32569 \begin_layout Description
32570 \begin_inset Flex Code
32571 status collapsed
32572
32573 \begin_layout Plain Layout
32574 HelpText
32575 \begin_inset space ~
32576 \end_inset
32577
32578 <text>
32579 \begin_inset space ~
32580 \end_inset
32581
32582 HelpTextEnd
32583 \end_layout
32584
32585 \end_inset
32586
32587  The help text that is used in the External dialog.
32588  Provide enough information to explain to the user just what the template
32589  can provide him with.
32590  This command must occur exactly once.
32591 \end_layout
32592
32593 \begin_layout Description
32594 \begin_inset Flex Code
32595 status collapsed
32596
32597 \begin_layout Plain Layout
32598 InputFormat
32599 \begin_inset space ~
32600 \end_inset
32601
32602 <format>
32603 \end_layout
32604
32605 \end_inset
32606
32607  The file format of the original file.
32608  This must be the name of a format that is known to \SpecialChar LyX
32609  (see 
32610 \begin_inset CommandInset ref
32611 LatexCommand ref
32612 reference "sec:Formats"
32613
32614 \end_inset
32615
32616 ).
32617  Use 
32618 \begin_inset Quotes eld
32619 \end_inset
32620
32621
32622 \begin_inset Flex Code
32623 status collapsed
32624
32625 \begin_layout Plain Layout
32626 *
32627 \end_layout
32628
32629 \end_inset
32630
32631
32632 \begin_inset Quotes erd
32633 \end_inset
32634
32635  if the template can handle original files of more than one format.
32636  \SpecialChar LyX
32637  will attempt to interrogate the file itself in order to deduce its format
32638  in this case.
32639  This command must occur exactly once.
32640 \end_layout
32641
32642 \begin_layout Description
32643 \begin_inset Flex Code
32644 status collapsed
32645
32646 \begin_layout Plain Layout
32647 Template
32648 \begin_inset space ~
32649 \end_inset
32650
32651 <id>
32652 \end_layout
32653
32654 \end_inset
32655
32656  A unique name for the template.
32657  It must not contain substitution macros (see below).
32658 \end_layout
32659
32660 \begin_layout Description
32661 \begin_inset Flex Code
32662 status collapsed
32663
32664 \begin_layout Plain Layout
32665 Transform
32666 \begin_inset space ~
32667 \end_inset
32668
32669 Rotate|Resize|Clip|Extra
32670 \end_layout
32671
32672 \end_inset
32673
32674  This command specifies which transformations are supported by this template.
32675  It may occur zero or more times.
32676  This command enables the corresponding tabs in the external dialog.
32677  Each 
32678 \begin_inset Flex Code
32679 status collapsed
32680
32681 \begin_layout Plain Layout
32682 Transform
32683 \end_layout
32684
32685 \end_inset
32686
32687  command must have either a corresponding 
32688 \begin_inset Flex Code
32689 status collapsed
32690
32691 \begin_layout Plain Layout
32692 TransformCommand
32693 \end_layout
32694
32695 \end_inset
32696
32697  or a 
32698 \begin_inset Flex Code
32699 status collapsed
32700
32701 \begin_layout Plain Layout
32702 TransformOption
32703 \end_layout
32704
32705 \end_inset
32706
32707  command in the 
32708 \begin_inset Flex Code
32709 status collapsed
32710
32711 \begin_layout Plain Layout
32712 Format
32713 \end_layout
32714
32715 \end_inset
32716
32717  section.
32718  Otherwise the transformation will not be supported by that format.
32719 \end_layout
32720
32721 \begin_layout Subsection
32722 The Format section
32723 \end_layout
32724
32725 \begin_layout Description
32726 \begin_inset Flex Code
32727 status collapsed
32728
32729 \begin_layout Plain Layout
32730 Format
32731 \begin_inset space ~
32732 \end_inset
32733
32734 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
32735 \end_layout
32736
32737 \end_inset
32738
32739  The primary document file format that this format definition is for.
32740  Not every template has a sensible representation in all document file formats.
32741  Please define nevertheless a 
32742 \begin_inset Flex Code
32743 status collapsed
32744
32745 \begin_layout Plain Layout
32746 Format
32747 \end_layout
32748
32749 \end_inset
32750
32751  section for all templates.
32752  Use a dummy text when no representation is available.
32753  Then you can at least see a reference to the external material in the exported
32754  document.
32755 \end_layout
32756
32757 \begin_layout Description
32758 \begin_inset Flex Code
32759 status collapsed
32760
32761 \begin_layout Plain Layout
32762 Option
32763 \begin_inset space ~
32764 \end_inset
32765
32766 <name>
32767 \begin_inset space ~
32768 \end_inset
32769
32770 <value>
32771 \end_layout
32772
32773 \end_inset
32774
32775  This command defines an additional macro 
32776 \begin_inset Flex Code
32777 status collapsed
32778
32779 \begin_layout Plain Layout
32780 $$<name>
32781 \end_layout
32782
32783 \end_inset
32784
32785  for substitution in 
32786 \begin_inset Flex Code
32787 status collapsed
32788
32789 \begin_layout Plain Layout
32790 Product
32791 \end_layout
32792
32793 \end_inset
32794
32795 .
32796  
32797 \begin_inset Flex Code
32798 status collapsed
32799
32800 \begin_layout Plain Layout
32801 <value>
32802 \end_layout
32803
32804 \end_inset
32805
32806  itself may contain substitution macros.
32807  The advantage over using 
32808 \begin_inset Flex Code
32809 status collapsed
32810
32811 \begin_layout Plain Layout
32812 <value>
32813 \end_layout
32814
32815 \end_inset
32816
32817  directly in 
32818 \begin_inset Flex Code
32819 status collapsed
32820
32821 \begin_layout Plain Layout
32822 Product
32823 \end_layout
32824
32825 \end_inset
32826
32827  is that the substituted value of 
32828 \begin_inset Flex Code
32829 status collapsed
32830
32831 \begin_layout Plain Layout
32832 $$<name>
32833 \end_layout
32834
32835 \end_inset
32836
32837  is sanitized so that it is a valid optional argument in the document format.
32838  This command may occur zero or more times.
32839 \end_layout
32840
32841 \begin_layout Description
32842 \begin_inset Flex Code
32843 status collapsed
32844
32845 \begin_layout Plain Layout
32846 Product
32847 \begin_inset space ~
32848 \end_inset
32849
32850 <text>
32851 \end_layout
32852
32853 \end_inset
32854
32855  The text that is inserted in the exported document.
32856  This is actually the most important command and can be quite complex.
32857  This command must occur exactly once.
32858 \end_layout
32859
32860 \begin_layout Description
32861 \begin_inset Flex Code
32862 status collapsed
32863
32864 \begin_layout Plain Layout
32865 Preamble
32866 \begin_inset space ~
32867 \end_inset
32868
32869 <name>
32870 \end_layout
32871
32872 \end_inset
32873
32874  This command specifies a preamble snippet that will be included in the
32875  \SpecialChar LaTeX
32876  preamble.
32877  It has to be defined using 
32878 \begin_inset Flex Code
32879 status collapsed
32880
32881 \begin_layout Plain Layout
32882 PreambleDef
32883 \end_layout
32884
32885 \end_inset
32886
32887  \SpecialChar ldots
32888  
32889 \begin_inset Flex Code
32890 status collapsed
32891
32892 \begin_layout Plain Layout
32893 PreambleDefEnd
32894 \end_layout
32895
32896 \end_inset
32897
32898 .
32899  This command may occur zero or more times.
32900 \end_layout
32901
32902 \begin_layout Description
32903 \begin_inset Flex Code
32904 status collapsed
32905
32906 \begin_layout Plain Layout
32907 ReferencedFile
32908 \begin_inset space ~
32909 \end_inset
32910
32911 <format>
32912 \begin_inset space ~
32913 \end_inset
32914
32915 <filename>
32916 \end_layout
32917
32918 \end_inset
32919
32920  This command denotes files that are created by the conversion process and
32921  are needed for a particular export format.
32922  If the filename is relative, it is interpreted relative to the master document.
32923  This command may be given zero or more times.
32924 \end_layout
32925
32926 \begin_layout Description
32927 \begin_inset Flex Code
32928 status collapsed
32929
32930 \begin_layout Plain Layout
32931 Requirement
32932 \begin_inset space ~
32933 \end_inset
32934
32935 <package>
32936 \end_layout
32937
32938 \end_inset
32939
32940  The name of a required \SpecialChar LaTeX
32941  package.
32942  The package is included via 
32943 \begin_inset Flex Code
32944 status collapsed
32945
32946 \begin_layout Plain Layout
32947
32948 \backslash
32949 usepackage{}
32950 \end_layout
32951
32952 \end_inset
32953
32954  in the \SpecialChar LaTeX
32955  preamble.
32956  This command may occur zero or more times.
32957 \end_layout
32958
32959 \begin_layout Description
32960 \begin_inset Flex Code
32961 status collapsed
32962
32963 \begin_layout Plain Layout
32964 TransformCommand
32965 \begin_inset space ~
32966 \end_inset
32967
32968 Rotate
32969 \begin_inset space ~
32970 \end_inset
32971
32972 RotationLatexCommand
32973 \end_layout
32974
32975 \end_inset
32976
32977  This command specifies that the built in \SpecialChar LaTeX
32978  command should be used for rotation.
32979  This command may occur once or not at all.
32980 \end_layout
32981
32982 \begin_layout Description
32983 \begin_inset Flex Code
32984 status collapsed
32985
32986 \begin_layout Plain Layout
32987 TransformCommand
32988 \begin_inset space ~
32989 \end_inset
32990
32991 Resize
32992 \begin_inset space ~
32993 \end_inset
32994
32995 ResizeLatexCommand
32996 \end_layout
32997
32998 \end_inset
32999
33000  This command specifies that the built in \SpecialChar LaTeX
33001  command should be used for resizing.
33002  This command may occur once or not at all.
33003 \end_layout
33004
33005 \begin_layout Description
33006 \begin_inset Flex Code
33007 status collapsed
33008
33009 \begin_layout Plain Layout
33010 TransformOption
33011 \begin_inset space ~
33012 \end_inset
33013
33014 Rotate
33015 \begin_inset space ~
33016 \end_inset
33017
33018 RotationLatexOption
33019 \end_layout
33020
33021 \end_inset
33022
33023  This command specifies that rotation is done via an optional argument.
33024  This command may occur once or not at all.
33025 \end_layout
33026
33027 \begin_layout Description
33028 \begin_inset Flex Code
33029 status collapsed
33030
33031 \begin_layout Plain Layout
33032 TransformOption
33033 \begin_inset space ~
33034 \end_inset
33035
33036 Resize
33037 \begin_inset space ~
33038 \end_inset
33039
33040 ResizeLatexOption
33041 \end_layout
33042
33043 \end_inset
33044
33045  This command specifies that resizing is done via an optional argument.
33046  This command may occur once or not at all.
33047 \end_layout
33048
33049 \begin_layout Description
33050 \begin_inset Flex Code
33051 status collapsed
33052
33053 \begin_layout Plain Layout
33054 TransformOption
33055 \begin_inset space ~
33056 \end_inset
33057
33058 Clip
33059 \begin_inset space ~
33060 \end_inset
33061
33062 ClipLatexOption
33063 \end_layout
33064
33065 \end_inset
33066
33067  This command specifies that clipping is done via an optional argument.
33068  This command may occur once or not at all.
33069 \end_layout
33070
33071 \begin_layout Description
33072 \begin_inset Flex Code
33073 status collapsed
33074
33075 \begin_layout Plain Layout
33076 TransformOption
33077 \begin_inset space ~
33078 \end_inset
33079
33080 Extra
33081 \begin_inset space ~
33082 \end_inset
33083
33084 ExtraLatexOption
33085 \end_layout
33086
33087 \end_inset
33088
33089  This command specifies that an extra optional argument is used.
33090  This command may occur once or not at all.
33091 \end_layout
33092
33093 \begin_layout Description
33094 \begin_inset Flex Code
33095 status collapsed
33096
33097 \begin_layout Plain Layout
33098 UpdateFormat
33099 \begin_inset space ~
33100 \end_inset
33101
33102 <format>
33103 \end_layout
33104
33105 \end_inset
33106
33107  The file format of the converted file.
33108  This must be the name of a format that is known to \SpecialChar LyX
33109  (see the 
33110 \begin_inset Flex Noun
33111 status collapsed
33112
33113 \begin_layout Plain Layout
33114 Tools\SpecialChar menuseparator
33115 Preferences\SpecialChar menuseparator
33116 File Handling\SpecialChar menuseparator
33117 File Format
33118 \end_layout
33119
33120 \end_inset
33121
33122  dialog).
33123  This command must occur exactly once.
33124  If the resulting file format is PDF, you need to specify the format 
33125 \begin_inset Flex Code
33126 status collapsed
33127
33128 \begin_layout Plain Layout
33129 pdf6
33130 \end_layout
33131
33132 \end_inset
33133
33134 .
33135  This is the PDF format used for including graphics.
33136  The other defined PDF formats are for document export.
33137 \end_layout
33138
33139 \begin_layout Description
33140 \begin_inset Flex Code
33141 status collapsed
33142
33143 \begin_layout Plain Layout
33144 UpdateResult
33145 \begin_inset space ~
33146 \end_inset
33147
33148 <filename>
33149 \end_layout
33150
33151 \end_inset
33152
33153  The file name of the converted file.
33154  The file name must be absolute.
33155  This command must occur exactly once.
33156 \end_layout
33157
33158 \begin_layout Subsection
33159 Preamble definitions
33160 \end_layout
33161
33162 \begin_layout Standard
33163 The external template configuration file may contain additional preamble
33164  definitions enclosed by 
33165 \begin_inset Flex Code
33166 status collapsed
33167
33168 \begin_layout Plain Layout
33169 PreambleDef
33170 \end_layout
33171
33172 \end_inset
33173
33174  \SpecialChar ldots
33175  
33176 \begin_inset Flex Code
33177 status collapsed
33178
33179 \begin_layout Plain Layout
33180 PreambleDefEnd
33181 \end_layout
33182
33183 \end_inset
33184
33185 .
33186  They can be used by the templates in the 
33187 \begin_inset Flex Code
33188 status collapsed
33189
33190 \begin_layout Plain Layout
33191 Format
33192 \end_layout
33193
33194 \end_inset
33195
33196  section.
33197 \end_layout
33198
33199 \begin_layout Section
33200 The substitution mechanism
33201 \end_layout
33202
33203 \begin_layout Standard
33204 When the external material facility invokes an external program, it is done
33205  on the basis of a command defined in the template configuration file.
33206  These commands can contain various macros that are expanded before execution.
33207  Execution always take place in the directory of the containing document.
33208 \end_layout
33209
33210 \begin_layout Standard
33211 Also, whenever external material is to be displayed, the name will be produced
33212  by the substitution mechanism, and most other commands in the template
33213  definition support substitution as well.
33214 \end_layout
33215
33216 \begin_layout Standard
33217 The available macros are the following:
33218 \end_layout
33219
33220 \begin_layout Description
33221 \begin_inset Flex Code
33222 status collapsed
33223
33224 \begin_layout Plain Layout
33225 $$AbsOrRelPathMaster
33226 \end_layout
33227
33228 \end_inset
33229
33230  The file path, absolute or relative to the master \SpecialChar LyX
33231  document.
33232 \end_layout
33233
33234 \begin_layout Description
33235 \begin_inset Flex Code
33236 status collapsed
33237
33238 \begin_layout Plain Layout
33239 $$AbsOrRelPathParent
33240 \end_layout
33241
33242 \end_inset
33243
33244  The file path, absolute or relative to the \SpecialChar LyX
33245  document.
33246 \end_layout
33247
33248 \begin_layout Description
33249 \begin_inset Flex Code
33250 status collapsed
33251
33252 \begin_layout Plain Layout
33253 $$AbsPath
33254 \end_layout
33255
33256 \end_inset
33257
33258  The absolute file path.
33259 \end_layout
33260
33261 \begin_layout Description
33262 \begin_inset Flex Code
33263 status collapsed
33264
33265 \begin_layout Plain Layout
33266 $$Basename
33267 \end_layout
33268
33269 \end_inset
33270
33271  The filename without path and without the extension.
33272 \end_layout
33273
33274 \begin_layout Description
33275 \begin_inset Flex Code
33276 status collapsed
33277
33278 \begin_layout Plain Layout
33279 $$Contents(
33280 \begin_inset Quotes eld
33281 \end_inset
33282
33283 filename.ext
33284 \begin_inset Quotes erd
33285 \end_inset
33286
33287 )
33288 \end_layout
33289
33290 \end_inset
33291
33292  This macro will expand to the contents of the file with the name 
33293 \begin_inset Flex Code
33294 status collapsed
33295
33296 \begin_layout Plain Layout
33297 filename.ext
33298 \end_layout
33299
33300 \end_inset
33301
33302 .
33303 \end_layout
33304
33305 \begin_layout Description
33306 \begin_inset Flex Code
33307 status collapsed
33308
33309 \begin_layout Plain Layout
33310 $$Extension
33311 \end_layout
33312
33313 \end_inset
33314
33315  The file extension (including the dot).
33316 \end_layout
33317
33318 \begin_layout Description
33319 \begin_inset Flex Code
33320 status collapsed
33321
33322 \begin_layout Plain Layout
33323 $$pngOrjpg
33324 \end_layout
33325
33326 \end_inset
33327
33328  This will be the string 
33329 \begin_inset Quotes eld
33330 \end_inset
33331
33332 jpg
33333 \begin_inset Quotes erd
33334 \end_inset
33335
33336  if the file is in JPEG format, otherwise it will be the string 
33337 \begin_inset Quotes eld
33338 \end_inset
33339
33340 png
33341 \begin_inset Quotes erd
33342 \end_inset
33343
33344 .
33345  This is useful to avoid uneeded conversions for output formats that support
33346  both PNG and JPEG fomats.
33347  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
33348  output
33349  format.
33350 \end_layout
33351
33352 \begin_layout Description
33353 \begin_inset Flex Code
33354 status collapsed
33355
33356 \begin_layout Plain Layout
33357 $$FName
33358 \end_layout
33359
33360 \end_inset
33361
33362  The filename of the file specified in the external material dialog.
33363  This is either an absolute name, or it is relative to the \SpecialChar LyX
33364  document.
33365 \end_layout
33366
33367 \begin_layout Description
33368 \begin_inset Flex Code
33369 status collapsed
33370
33371 \begin_layout Plain Layout
33372 $$FPath
33373 \end_layout
33374
33375 \end_inset
33376
33377  The path part of 
33378 \begin_inset Flex Code
33379 status collapsed
33380
33381 \begin_layout Plain Layout
33382 $$FName
33383 \end_layout
33384
33385 \end_inset
33386
33387  (absolute name or relative to the \SpecialChar LyX
33388  document).
33389 \end_layout
33390
33391 \begin_layout Description
33392 \begin_inset Flex Code
33393 status collapsed
33394
33395 \begin_layout Plain Layout
33396 $$RelPathMaster
33397 \end_layout
33398
33399 \end_inset
33400
33401  The file path, relative to the master \SpecialChar LyX
33402  document.
33403 \end_layout
33404
33405 \begin_layout Description
33406 \begin_inset Flex Code
33407 status collapsed
33408
33409 \begin_layout Plain Layout
33410 $$RelPathParent
33411 \end_layout
33412
33413 \end_inset
33414
33415  The file path, relative to the \SpecialChar LyX
33416  document.
33417 \end_layout
33418
33419 \begin_layout Description
33420 \begin_inset Flex Code
33421 status collapsed
33422
33423 \begin_layout Plain Layout
33424 $$Sysdir
33425 \end_layout
33426
33427 \end_inset
33428
33429  This macro will expand to the absolute path of the system directory.
33430  This is typically used to point to the various helper scripts that are
33431  bundled with \SpecialChar LyX
33432 .
33433 \end_layout
33434
33435 \begin_layout Description
33436 \begin_inset Flex Code
33437 status collapsed
33438
33439 \begin_layout Plain Layout
33440 $$Tempname
33441 \end_layout
33442
33443 \end_inset
33444
33445  A name and full path to a temporary file which will be automatically deleted
33446  whenever the containing document is closed, or the external material insertion
33447  deleted.
33448 \end_layout
33449
33450 \begin_layout Standard
33451 All path macros contain a trailing directory separator, so you can construct
33452  e.
33453 \begin_inset space \thinspace{}
33454 \end_inset
33455
33456 g.
33457 \begin_inset space \space{}
33458 \end_inset
33459
33460 the absolute filename with 
33461 \begin_inset Flex Code
33462 status collapsed
33463
33464 \begin_layout Plain Layout
33465 $$AbsPath$$Basename$$Extension
33466 \end_layout
33467
33468 \end_inset
33469
33470 .
33471 \end_layout
33472
33473 \begin_layout Standard
33474 The macros above are substituted in all commands unless otherwise noted.
33475  The command 
33476 \begin_inset Flex Code
33477 status collapsed
33478
33479 \begin_layout Plain Layout
33480 Product
33481 \end_layout
33482
33483 \end_inset
33484
33485  supports additionally the following substitutions if they are enabled by
33486  the 
33487 \begin_inset Flex Code
33488 status collapsed
33489
33490 \begin_layout Plain Layout
33491 Transform
33492 \end_layout
33493
33494 \end_inset
33495
33496  and 
33497 \begin_inset Flex Code
33498 status collapsed
33499
33500 \begin_layout Plain Layout
33501 TransformCommand
33502 \end_layout
33503
33504 \end_inset
33505
33506  commands:
33507 \end_layout
33508
33509 \begin_layout Description
33510 \begin_inset Flex Code
33511 status collapsed
33512
33513 \begin_layout Plain Layout
33514 $$ResizeFront
33515 \end_layout
33516
33517 \end_inset
33518
33519  The front part of the resize command.
33520 \end_layout
33521
33522 \begin_layout Description
33523 \begin_inset Flex Code
33524 status collapsed
33525
33526 \begin_layout Plain Layout
33527 $$ResizeBack
33528 \end_layout
33529
33530 \end_inset
33531
33532  The back part of the resize command.
33533 \end_layout
33534
33535 \begin_layout Description
33536 \begin_inset Flex Code
33537 status collapsed
33538
33539 \begin_layout Plain Layout
33540 $$RotateFront
33541 \end_layout
33542
33543 \end_inset
33544
33545  The front part of the rotation command.
33546 \end_layout
33547
33548 \begin_layout Description
33549 \begin_inset Flex Code
33550 status collapsed
33551
33552 \begin_layout Plain Layout
33553 $$RotateBack
33554 \end_layout
33555
33556 \end_inset
33557
33558  The back part of the rotation command.
33559 \end_layout
33560
33561 \begin_layout Standard
33562 The value string of the 
33563 \begin_inset Flex Code
33564 status collapsed
33565
33566 \begin_layout Plain Layout
33567 Option
33568 \end_layout
33569
33570 \end_inset
33571
33572  command supports additionally the following substitutions if they are enabled
33573  by the 
33574 \begin_inset Flex Code
33575 status collapsed
33576
33577 \begin_layout Plain Layout
33578 Transform
33579 \end_layout
33580
33581 \end_inset
33582
33583  and 
33584 \begin_inset Flex Code
33585 status collapsed
33586
33587 \begin_layout Plain Layout
33588 TransformOption
33589 \end_layout
33590
33591 \end_inset
33592
33593  commands:
33594 \end_layout
33595
33596 \begin_layout Description
33597 \begin_inset Flex Code
33598 status collapsed
33599
33600 \begin_layout Plain Layout
33601 $$Clip
33602 \end_layout
33603
33604 \end_inset
33605
33606  The clip option.
33607 \end_layout
33608
33609 \begin_layout Description
33610 \begin_inset Flex Code
33611 status collapsed
33612
33613 \begin_layout Plain Layout
33614 $$Extra
33615 \end_layout
33616
33617 \end_inset
33618
33619  The extra option.
33620 \end_layout
33621
33622 \begin_layout Description
33623 \begin_inset Flex Code
33624 status collapsed
33625
33626 \begin_layout Plain Layout
33627 $$Resize
33628 \end_layout
33629
33630 \end_inset
33631
33632  The resize option.
33633 \end_layout
33634
33635 \begin_layout Description
33636 \begin_inset Flex Code
33637 status collapsed
33638
33639 \begin_layout Plain Layout
33640 $$Rotate
33641 \end_layout
33642
33643 \end_inset
33644
33645  The rotation option.
33646 \end_layout
33647
33648 \begin_layout Standard
33649 You may ask why there are so many path macros.
33650  There are mainly two reasons:
33651 \end_layout
33652
33653 \begin_layout Enumerate
33654 Relative and absolute file names should remain relative or absolute, respectivel
33655 y.
33656  Users may have reasons to prefer either form.
33657  Relative names are useful for portable documents that should work on different
33658  machines, for example.
33659  Absolute names may be required by some programs.
33660 \end_layout
33661
33662 \begin_layout Enumerate
33663 \SpecialChar LaTeX
33664  treats relative file names differently than \SpecialChar LyX
33665  and other programs in nested
33666  included files.
33667  For \SpecialChar LyX
33668 , a relative file name is always relative to the document that contains
33669  the file name.
33670  For \SpecialChar LaTeX
33671 , it is always relative to the master document.
33672  These two definitions are identical if you have only one document, but
33673  differ if you have a master document that includes part documents.
33674  That means that relative filenames must be transformed when presented to
33675  \SpecialChar LaTeX
33676 .
33677  Fortunately \SpecialChar LyX
33678  does this automatically for you if you choose the right macros.
33679 \end_layout
33680
33681 \begin_layout Standard
33682 So which path macro should be used in new template definitions? The rule
33683  is not difficult:
33684 \end_layout
33685
33686 \begin_layout Itemize
33687 Use 
33688 \begin_inset Flex Code
33689 status collapsed
33690
33691 \begin_layout Plain Layout
33692 $$AbsPath
33693 \end_layout
33694
33695 \end_inset
33696
33697  if an absolute path is required.
33698 \end_layout
33699
33700 \begin_layout Itemize
33701 Use 
33702 \begin_inset Flex Code
33703 status collapsed
33704
33705 \begin_layout Plain Layout
33706 $$AbsOrRelPathMaster
33707 \end_layout
33708
33709 \end_inset
33710
33711  if the substituted string is some kind of \SpecialChar LaTeX
33712  input.
33713 \end_layout
33714
33715 \begin_layout Itemize
33716 Else use 
33717 \begin_inset Flex Code
33718 status collapsed
33719
33720 \begin_layout Plain Layout
33721 $$AbsOrRelPathParent
33722 \end_layout
33723
33724 \end_inset
33725
33726  in order to preserve the user's choice.
33727 \end_layout
33728
33729 \begin_layout Standard
33730 There are special cases where this rule does not work and e.
33731 \begin_inset space \thinspace{}
33732 \end_inset
33733
33734 g.
33735 \begin_inset space \space{}
33736 \end_inset
33737
33738 relative names are needed, but normally it will work just fine.
33739  One example for such a case is the command 
33740 \begin_inset Flex Code
33741 status collapsed
33742
33743 \begin_layout Plain Layout
33744 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
33745 \end_layout
33746
33747 \end_inset
33748
33749  in the XFig template above: We can't use the absolute name because the
33750  copier for 
33751 \begin_inset Flex Code
33752 status collapsed
33753
33754 \begin_layout Plain Layout
33755 .pstex_t
33756 \end_layout
33757
33758 \end_inset
33759
33760  files needs the relative name in order to rewrite the file content.
33761 \end_layout
33762
33763 \begin_layout Section
33764 Security discussion
33765 \begin_inset CommandInset label
33766 LatexCommand label
33767 name "sec:Security-discussion"
33768
33769 \end_inset
33770
33771
33772 \end_layout
33773
33774 \begin_layout Standard
33775 The external material feature interfaces with a lot of external programs
33776  and does so automatically, so we have to consider the security implications
33777  of this.
33778  In particular, since you have the option of including your own filenames
33779  and/or parameter strings and those are expanded into a command, it seems
33780  that it would be possible to create a malicious document which executes
33781  arbitrary commands when a user views or prints the document.
33782  This is something we definitely want to avoid.
33783 \end_layout
33784
33785 \begin_layout Standard
33786 However, since the external program commands are specified in the template
33787  configuration file only, there are no security issues if \SpecialChar LyX
33788  is properly configure
33789 d with safe templates only.
33790  This is so because the external programs are invoked with the 
33791 \begin_inset Flex Code
33792 status collapsed
33793
33794 \begin_layout Plain Layout
33795 execvp
33796 \end_layout
33797
33798 \end_inset
33799
33800 -system call rather than the 
33801 \begin_inset Flex Code
33802 status collapsed
33803
33804 \begin_layout Plain Layout
33805 system
33806 \end_layout
33807
33808 \end_inset
33809
33810  system-call, so it's not possible to execute arbitrary commands from the
33811  filename or parameter section via the shell.
33812 \end_layout
33813
33814 \begin_layout Standard
33815 This also implies that you are restricted in what command strings you can
33816  use in the external material templates.
33817  In particular, pipes and redirection are not readily available.
33818  This has to be so if \SpecialChar LyX
33819  should remain safe.
33820  If you want to use some of the shell features, you should write a safe
33821  script to do this in a controlled manner, and then invoke the script from
33822  the command string.
33823  
33824 \end_layout
33825
33826 \begin_layout Standard
33827 It is possible to design a template that interacts directly with the shell,
33828  but since this would allow a malicious user to execute arbitrary commands
33829  by writing clever filenames and/or parameters, we generally recommend that
33830  you only use safe scripts that work with the 
33831 \begin_inset Flex Code
33832 status collapsed
33833
33834 \begin_layout Plain Layout
33835 execvp
33836 \end_layout
33837
33838 \end_inset
33839
33840  system call in a controlled manner.
33841  Of course, for use in a controlled environment, it can be tempting to just
33842  fall back to use ordinary shell scripts.
33843  If you do so, be aware that you 
33844 \emph on
33845 will
33846 \emph default
33847  provide an easily exploitable security hole in your system.
33848  Of course it stands to reason that such unsafe templates will never be
33849  included in the standard \SpecialChar LyX
33850  distribution, although we do encourage people
33851  to submit new templates in the open source tradition.
33852  But \SpecialChar LyX
33853  as shipped from the official distribution channels will never have
33854  unsafe templates.
33855 \end_layout
33856
33857 \begin_layout Standard
33858 Including external material provides a lot of power, and you have to be
33859  careful not to introduce security hazards with this power.
33860  A subtle error in a single line in an innocent looking script can open
33861  the door to huge security problems.
33862  So if you do not fully understand the issues, we recommend that you consult
33863  a knowledgeable security professional or the \SpecialChar LyX
33864  development team if you have
33865  any questions about whether a given template is safe or not.
33866  And do this before you use it in an uncontrolled environment.
33867 \end_layout
33868
33869 \begin_layout Chapter
33870 \start_of_appendix
33871 List of supported \SpecialChar LyX
33872  functions to be used in layouts
33873 \begin_inset CommandInset label
33874 LatexCommand label
33875 name "chap:List-of-functions"
33876
33877 \end_inset
33878
33879
33880 \end_layout
33881
33882 \begin_layout Standard
33883 \align center
33884 \begin_inset Tabular
33885 <lyxtabular version="3" rows="11" columns="8">
33886 <features tabularvalignment="middle">
33887 <column alignment="left" valignment="top">
33888 <column alignment="left" valignment="top">
33889 <column alignment="left" valignment="top">
33890 <column alignment="left" valignment="top">
33891 <column alignment="left" valignment="top">
33892 <column alignment="left" valignment="top">
33893 <column alignment="left" valignment="top">
33894 <column alignment="left" valignment="top">
33895 <row>
33896 <cell alignment="left" valignment="top" usebox="none">
33897 \begin_inset Text
33898
33899 \begin_layout Plain Layout
33900 accents
33901 \end_layout
33902
33903 \end_inset
33904 </cell>
33905 <cell alignment="left" valignment="top" usebox="none">
33906 \begin_inset Text
33907
33908 \begin_layout Plain Layout
33909 booktabs
33910 \end_layout
33911
33912 \end_inset
33913 </cell>
33914 <cell alignment="left" valignment="top" usebox="none">
33915 \begin_inset Text
33916
33917 \begin_layout Plain Layout
33918 feyn
33919 \end_layout
33920
33921 \end_inset
33922 </cell>
33923 <cell alignment="left" valignment="top" usebox="none">
33924 \begin_inset Text
33925
33926 \begin_layout Plain Layout
33927 listings
33928 \end_layout
33929
33930 \end_inset
33931 </cell>
33932 <cell alignment="center" valignment="top" usebox="none">
33933 \begin_inset Text
33934
33935 \begin_layout Plain Layout
33936 natbib
33937 \end_layout
33938
33939 \end_inset
33940 </cell>
33941 <cell alignment="center" valignment="top" usebox="none">
33942 \begin_inset Text
33943
33944 \begin_layout Plain Layout
33945 rotfloat
33946 \end_layout
33947
33948 \end_inset
33949 </cell>
33950 <cell alignment="center" valignment="top" usebox="none">
33951 \begin_inset Text
33952
33953 \begin_layout Plain Layout
33954 tfrupee
33955 \end_layout
33956
33957 \end_inset
33958 </cell>
33959 <cell alignment="center" valignment="top" usebox="none">
33960 \begin_inset Text
33961
33962 \begin_layout Plain Layout
33963 wasysym
33964 \end_layout
33965
33966 \end_inset
33967 </cell>
33968 </row>
33969 <row>
33970 <cell alignment="left" valignment="top" usebox="none">
33971 \begin_inset Text
33972
33973 \begin_layout Plain Layout
33974 amsbsy
33975 \end_layout
33976
33977 \end_inset
33978 </cell>
33979 <cell alignment="left" valignment="top" usebox="none">
33980 \begin_inset Text
33981
33982 \begin_layout Plain Layout
33983 calc
33984 \end_layout
33985
33986 \end_inset
33987 </cell>
33988 <cell alignment="left" valignment="top" usebox="none">
33989 \begin_inset Text
33990
33991 \begin_layout Plain Layout
33992 fixltx2e
33993 \end_layout
33994
33995 \end_inset
33996 </cell>
33997 <cell alignment="left" valignment="top" usebox="none">
33998 \begin_inset Text
33999
34000 \begin_layout Plain Layout
34001 longtable
34002 \end_layout
34003
34004 \end_inset
34005 </cell>
34006 <cell alignment="center" valignment="top" usebox="none">
34007 \begin_inset Text
34008
34009 \begin_layout Plain Layout
34010 nomencl
34011 \end_layout
34012
34013 \end_inset
34014 </cell>
34015 <cell alignment="center" valignment="top" usebox="none">
34016 \begin_inset Text
34017
34018 \begin_layout Plain Layout
34019 rsphrase
34020 \end_layout
34021
34022 \end_inset
34023 </cell>
34024 <cell alignment="center" valignment="top" usebox="none">
34025 \begin_inset Text
34026
34027 \begin_layout Plain Layout
34028 tipa
34029 \end_layout
34030
34031 \end_inset
34032 </cell>
34033 <cell alignment="center" valignment="top" usebox="none">
34034 \begin_inset Text
34035
34036 \begin_layout Plain Layout
34037 wrapfig
34038 \end_layout
34039
34040 \end_inset
34041 </cell>
34042 </row>
34043 <row>
34044 <cell alignment="left" valignment="top" usebox="none">
34045 \begin_inset Text
34046
34047 \begin_layout Plain Layout
34048 amscd
34049 \end_layout
34050
34051 \end_inset
34052 </cell>
34053 <cell alignment="left" valignment="top" usebox="none">
34054 \begin_inset Text
34055
34056 \begin_layout Plain Layout
34057 CJK
34058 \end_layout
34059
34060 \end_inset
34061 </cell>
34062 <cell alignment="left" valignment="top" usebox="none">
34063 \begin_inset Text
34064
34065 \begin_layout Plain Layout
34066 float
34067 \end_layout
34068
34069 \end_inset
34070 </cell>
34071 <cell alignment="left" valignment="top" usebox="none">
34072 \begin_inset Text
34073
34074 \begin_layout Plain Layout
34075 lyxskak
34076 \end_layout
34077
34078 \end_inset
34079 </cell>
34080 <cell alignment="center" valignment="top" usebox="none">
34081 \begin_inset Text
34082
34083 \begin_layout Plain Layout
34084 pdfcolmk
34085 \end_layout
34086
34087 \end_inset
34088 </cell>
34089 <cell alignment="center" valignment="top" usebox="none">
34090 \begin_inset Text
34091
34092 \begin_layout Plain Layout
34093 setspace
34094 \end_layout
34095
34096 \end_inset
34097 </cell>
34098 <cell alignment="center" valignment="top" usebox="none">
34099 \begin_inset Text
34100
34101 \begin_layout Plain Layout
34102 tipx
34103 \end_layout
34104
34105 \end_inset
34106 </cell>
34107 <cell alignment="center" valignment="top" usebox="none">
34108 \begin_inset Text
34109
34110 \begin_layout Plain Layout
34111 xargs
34112 \end_layout
34113
34114 \end_inset
34115 </cell>
34116 </row>
34117 <row>
34118 <cell alignment="left" valignment="top" usebox="none">
34119 \begin_inset Text
34120
34121 \begin_layout Plain Layout
34122 amsmath
34123 \end_layout
34124
34125 \end_inset
34126 </cell>
34127 <cell alignment="left" valignment="top" usebox="none">
34128 \begin_inset Text
34129
34130 \begin_layout Plain Layout
34131 color
34132 \end_layout
34133
34134 \end_inset
34135 </cell>
34136 <cell alignment="left" valignment="top" usebox="none">
34137 \begin_inset Text
34138
34139 \begin_layout Plain Layout
34140 framed
34141 \end_layout
34142
34143 \end_inset
34144 </cell>
34145 <cell alignment="left" valignment="top" usebox="none">
34146 \begin_inset Text
34147
34148 \begin_layout Plain Layout
34149 makeidx
34150 \end_layout
34151
34152 \end_inset
34153 </cell>
34154 <cell alignment="center" valignment="top" usebox="none">
34155 \begin_inset Text
34156
34157 \begin_layout Plain Layout
34158 pdfpages
34159 \end_layout
34160
34161 \end_inset
34162 </cell>
34163 <cell alignment="center" valignment="top" usebox="none">
34164 \begin_inset Text
34165
34166 \begin_layout Plain Layout
34167 shapepar
34168 \end_layout
34169
34170 \end_inset
34171 </cell>
34172 <cell alignment="center" valignment="top" usebox="none">
34173 \begin_inset Text
34174
34175 \begin_layout Plain Layout
34176 tone
34177 \end_layout
34178
34179 \end_inset
34180 </cell>
34181 <cell alignment="center" valignment="top" usebox="none">
34182 \begin_inset Text
34183
34184 \begin_layout Plain Layout
34185 xcolor
34186 \end_layout
34187
34188 \end_inset
34189 </cell>
34190 </row>
34191 <row>
34192 <cell alignment="left" valignment="top" usebox="none">
34193 \begin_inset Text
34194
34195 \begin_layout Plain Layout
34196 amssymb
34197 \end_layout
34198
34199 \end_inset
34200 </cell>
34201 <cell alignment="left" valignment="top" usebox="none">
34202 \begin_inset Text
34203
34204 \begin_layout Plain Layout
34205 covington
34206 \end_layout
34207
34208 \end_inset
34209 </cell>
34210 <cell alignment="left" valignment="top" usebox="none">
34211 \begin_inset Text
34212
34213 \begin_layout Plain Layout
34214 graphicx
34215 \end_layout
34216
34217 \end_inset
34218 </cell>
34219 <cell alignment="left" valignment="top" usebox="none">
34220 \begin_inset Text
34221
34222 \begin_layout Plain Layout
34223 marvosym
34224 \end_layout
34225
34226 \end_inset
34227 </cell>
34228 <cell alignment="center" valignment="top" usebox="none">
34229 \begin_inset Text
34230
34231 \begin_layout Plain Layout
34232 pifont
34233 \end_layout
34234
34235 \end_inset
34236 </cell>
34237 <cell alignment="center" valignment="top" usebox="none">
34238 \begin_inset Text
34239
34240 \begin_layout Plain Layout
34241 slashed
34242 \end_layout
34243
34244 \end_inset
34245 </cell>
34246 <cell alignment="center" valignment="top" usebox="none">
34247 \begin_inset Text
34248
34249 \begin_layout Plain Layout
34250 txfonts
34251 \end_layout
34252
34253 \end_inset
34254 </cell>
34255 <cell alignment="center" valignment="top" usebox="none">
34256 \begin_inset Text
34257
34258 \begin_layout Plain Layout
34259 xy
34260 \end_layout
34261
34262 \end_inset
34263 </cell>
34264 </row>
34265 <row>
34266 <cell alignment="left" valignment="top" usebox="none">
34267 \begin_inset Text
34268
34269 \begin_layout Plain Layout
34270 amstext
34271 \end_layout
34272
34273 \end_inset
34274 </cell>
34275 <cell alignment="left" valignment="top" usebox="none">
34276 \begin_inset Text
34277
34278 \begin_layout Plain Layout
34279 csquotes
34280 \end_layout
34281
34282 \end_inset
34283 </cell>
34284 <cell alignment="left" valignment="top" usebox="none">
34285 \begin_inset Text
34286
34287 \begin_layout Plain Layout
34288 hhline
34289 \end_layout
34290
34291 \end_inset
34292 </cell>
34293 <cell alignment="left" valignment="top" usebox="none">
34294 \begin_inset Text
34295
34296 \begin_layout Plain Layout
34297 mathdesign
34298 \end_layout
34299
34300 \end_inset
34301 </cell>
34302 <cell alignment="center" valignment="top" usebox="none">
34303 \begin_inset Text
34304
34305 \begin_layout Plain Layout
34306 pmboxdraw
34307 \end_layout
34308
34309 \end_inset
34310 </cell>
34311 <cell alignment="center" valignment="top" usebox="none">
34312 \begin_inset Text
34313
34314 \begin_layout Plain Layout
34315 soul
34316 \end_layout
34317
34318 \end_inset
34319 </cell>
34320 <cell alignment="center" valignment="top" usebox="none">
34321 \begin_inset Text
34322
34323 \begin_layout Plain Layout
34324 ulem
34325 \end_layout
34326
34327 \end_inset
34328 </cell>
34329 <cell alignment="center" valignment="top" usebox="none">
34330 \begin_inset Text
34331
34332 \begin_layout Plain Layout
34333 yhmath
34334 \end_layout
34335
34336 \end_inset
34337 </cell>
34338 </row>
34339 <row>
34340 <cell alignment="left" valignment="top" usebox="none">
34341 \begin_inset Text
34342
34343 \begin_layout Plain Layout
34344 amsthm
34345 \end_layout
34346
34347 \end_inset
34348 </cell>
34349 <cell alignment="left" valignment="top" usebox="none">
34350 \begin_inset Text
34351
34352 \begin_layout Plain Layout
34353 dvipost
34354 \end_layout
34355
34356 \end_inset
34357 </cell>
34358 <cell alignment="left" valignment="top" usebox="none">
34359 \begin_inset Text
34360
34361 \begin_layout Plain Layout
34362 hyperref
34363 \end_layout
34364
34365 \end_inset
34366 </cell>
34367 <cell alignment="left" valignment="top" usebox="none">
34368 \begin_inset Text
34369
34370 \begin_layout Plain Layout
34371 mathdots
34372 \end_layout
34373
34374 \end_inset
34375 </cell>
34376 <cell alignment="center" valignment="top" usebox="none">
34377 \begin_inset Text
34378
34379 \begin_layout Plain Layout
34380 polyglossia
34381 \end_layout
34382
34383 \end_inset
34384 </cell>
34385 <cell alignment="center" valignment="top" usebox="none">
34386 \begin_inset Text
34387
34388 \begin_layout Plain Layout
34389 splitidx
34390 \end_layout
34391
34392 \end_inset
34393 </cell>
34394 <cell alignment="center" valignment="top" usebox="none">
34395 \begin_inset Text
34396
34397 \begin_layout Plain Layout
34398 undertilde
34399 \end_layout
34400
34401 \end_inset
34402 </cell>
34403 <cell alignment="center" valignment="top" usebox="none">
34404 \begin_inset Text
34405
34406 \begin_layout Plain Layout
34407
34408 \end_layout
34409
34410 \end_inset
34411 </cell>
34412 </row>
34413 <row>
34414 <cell alignment="left" valignment="top" usebox="none">
34415 \begin_inset Text
34416
34417 \begin_layout Plain Layout
34418 array
34419 \end_layout
34420
34421 \end_inset
34422 </cell>
34423 <cell alignment="left" valignment="top" usebox="none">
34424 \begin_inset Text
34425
34426 \begin_layout Plain Layout
34427 endnotes
34428 \end_layout
34429
34430 \end_inset
34431 </cell>
34432 <cell alignment="left" valignment="top" usebox="none">
34433 \begin_inset Text
34434
34435 \begin_layout Plain Layout
34436 ifsym
34437 \end_layout
34438
34439 \end_inset
34440 </cell>
34441 <cell alignment="left" valignment="top" usebox="none">
34442 \begin_inset Text
34443
34444 \begin_layout Plain Layout
34445 mathrsfs
34446 \end_layout
34447
34448 \end_inset
34449 </cell>
34450 <cell alignment="center" valignment="top" usebox="none">
34451 \begin_inset Text
34452
34453 \begin_layout Plain Layout
34454 prettyref
34455 \end_layout
34456
34457 \end_inset
34458 </cell>
34459 <cell alignment="center" valignment="top" usebox="none">
34460 \begin_inset Text
34461
34462 \begin_layout Plain Layout
34463 subfig
34464 \end_layout
34465
34466 \end_inset
34467 </cell>
34468 <cell alignment="center" valignment="top" usebox="none">
34469 \begin_inset Text
34470
34471 \begin_layout Plain Layout
34472 units
34473 \end_layout
34474
34475 \end_inset
34476 </cell>
34477 <cell alignment="center" valignment="top" usebox="none">
34478 \begin_inset Text
34479
34480 \begin_layout Plain Layout
34481
34482 \end_layout
34483
34484 \end_inset
34485 </cell>
34486 </row>
34487 <row>
34488 <cell alignment="left" valignment="top" usebox="none">
34489 \begin_inset Text
34490
34491 \begin_layout Plain Layout
34492 ascii
34493 \end_layout
34494
34495 \end_inset
34496 </cell>
34497 <cell alignment="left" valignment="top" usebox="none">
34498 \begin_inset Text
34499
34500 \begin_layout Plain Layout
34501 enumitem
34502 \end_layout
34503
34504 \end_inset
34505 </cell>
34506 <cell alignment="left" valignment="top" usebox="none">
34507 \begin_inset Text
34508
34509 \begin_layout Plain Layout
34510 ifthen
34511 \end_layout
34512
34513 \end_inset
34514 </cell>
34515 <cell alignment="left" valignment="top" usebox="none">
34516 \begin_inset Text
34517
34518 \begin_layout Plain Layout
34519 mhchem
34520 \end_layout
34521
34522 \end_inset
34523 </cell>
34524 <cell alignment="center" valignment="top" usebox="none">
34525 \begin_inset Text
34526
34527 \begin_layout Plain Layout
34528 pxfonts
34529 \end_layout
34530
34531 \end_inset
34532 </cell>
34533 <cell alignment="center" valignment="top" usebox="none">
34534 \begin_inset Text
34535
34536 \begin_layout Plain Layout
34537 subscript
34538 \end_layout
34539
34540 \end_inset
34541 </cell>
34542 <cell alignment="center" valignment="top" usebox="none">
34543 \begin_inset Text
34544
34545 \begin_layout Plain Layout
34546 url
34547 \end_layout
34548
34549 \end_inset
34550 </cell>
34551 <cell alignment="center" valignment="top" usebox="none">
34552 \begin_inset Text
34553
34554 \begin_layout Plain Layout
34555
34556 \end_layout
34557
34558 \end_inset
34559 </cell>
34560 </row>
34561 <row>
34562 <cell alignment="left" valignment="top" usebox="none">
34563 \begin_inset Text
34564
34565 \begin_layout Plain Layout
34566 bbding
34567 \end_layout
34568
34569 \end_inset
34570 </cell>
34571 <cell alignment="left" valignment="top" usebox="none">
34572 \begin_inset Text
34573
34574 \begin_layout Plain Layout
34575 esint
34576 \end_layout
34577
34578 \end_inset
34579 </cell>
34580 <cell alignment="left" valignment="top" usebox="none">
34581 \begin_inset Text
34582
34583 \begin_layout Plain Layout
34584 jurabib
34585 \end_layout
34586
34587 \end_inset
34588 </cell>
34589 <cell alignment="left" valignment="top" usebox="none">
34590 \begin_inset Text
34591
34592 \begin_layout Plain Layout
34593 multicol
34594 \end_layout
34595
34596 \end_inset
34597 </cell>
34598 <cell alignment="center" valignment="top" usebox="none">
34599 \begin_inset Text
34600
34601 \begin_layout Plain Layout
34602 refstyle
34603 \end_layout
34604
34605 \end_inset
34606 </cell>
34607 <cell alignment="center" valignment="top" usebox="none">
34608 \begin_inset Text
34609
34610 \begin_layout Plain Layout
34611 textcomp
34612 \end_layout
34613
34614 \end_inset
34615 </cell>
34616 <cell alignment="center" valignment="top" usebox="none">
34617 \begin_inset Text
34618
34619 \begin_layout Plain Layout
34620 varioref
34621 \end_layout
34622
34623 \end_inset
34624 </cell>
34625 <cell alignment="center" valignment="top" usebox="none">
34626 \begin_inset Text
34627
34628 \begin_layout Plain Layout
34629
34630 \end_layout
34631
34632 \end_inset
34633 </cell>
34634 </row>
34635 <row>
34636 <cell alignment="center" valignment="top" usebox="none">
34637 \begin_inset Text
34638
34639 \begin_layout Plain Layout
34640 bm
34641 \end_layout
34642
34643 \end_inset
34644 </cell>
34645 <cell alignment="center" valignment="top" usebox="none">
34646 \begin_inset Text
34647
34648 \begin_layout Plain Layout
34649 fancybox
34650 \end_layout
34651
34652 \end_inset
34653 </cell>
34654 <cell alignment="center" valignment="top" usebox="none">
34655 \begin_inset Text
34656
34657 \begin_layout Plain Layout
34658 latexsym
34659 \end_layout
34660
34661 \end_inset
34662 </cell>
34663 <cell alignment="center" valignment="top" usebox="none">
34664 \begin_inset Text
34665
34666 \begin_layout Plain Layout
34667 multirow
34668 \end_layout
34669
34670 \end_inset
34671 </cell>
34672 <cell alignment="center" valignment="top" usebox="none">
34673 \begin_inset Text
34674
34675 \begin_layout Plain Layout
34676 rotating
34677 \end_layout
34678
34679 \end_inset
34680 </cell>
34681 <cell alignment="center" valignment="top" usebox="none">
34682 \begin_inset Text
34683
34684 \begin_layout Plain Layout
34685 textgreek
34686 \end_layout
34687
34688 \end_inset
34689 </cell>
34690 <cell alignment="center" valignment="top" usebox="none">
34691 \begin_inset Text
34692
34693 \begin_layout Plain Layout
34694 verbatim
34695 \end_layout
34696
34697 \end_inset
34698 </cell>
34699 <cell alignment="center" valignment="top" usebox="none">
34700 \begin_inset Text
34701
34702 \begin_layout Plain Layout
34703
34704 \end_layout
34705
34706 \end_inset
34707 </cell>
34708 </row>
34709 </lyxtabular>
34710
34711 \end_inset
34712
34713
34714 \end_layout
34715
34716 \begin_layout Chapter
34717 Names of available colors to be used in layouts
34718 \begin_inset CommandInset label
34719 LatexCommand label
34720 name "chap:Names-of-colors"
34721
34722 \end_inset
34723
34724
34725 \end_layout
34726
34727 \begin_layout Standard
34728 The colors listed below are the standard colors and those that you can adjust
34729  in the \SpecialChar LyX
34730  preferences.
34731 \end_layout
34732
34733 \begin_layout Section
34734 Color functions
34735 \end_layout
34736
34737 \begin_layout Standard
34738 The following are no real colors, but rather act on color definitions:
34739 \end_layout
34740
34741 \begin_layout Description
34742 ignore The color is ignored
34743 \end_layout
34744
34745 \begin_layout Description
34746 inherit The color is inherited
34747 \end_layout
34748
34749 \begin_layout Description
34750 none
34751 \family roman
34752 \series medium
34753 \shape up
34754 \size normal
34755 \emph off
34756 \bar no
34757 \strikeout off
34758 \uuline off
34759 \uwave off
34760 \noun off
34761 \color none
34762  No particular color – clear or default
34763 \end_layout
34764
34765 \begin_layout Section
34766 Static colors
34767 \end_layout
34768
34769 \begin_layout Standard
34770 These are fixed colors that cannot be customized
34771 \change_inserted -712698321 1607683177
34772 .
34773  Please do 
34774 \emph on
34775 not
34776 \emph default
34777  use these colors in layout definitions, since they will not work well with
34778  some color themes (such as dark themes)
34779 \change_unchanged
34780 :
34781 \end_layout
34782
34783 \begin_layout Description
34784 black
34785 \end_layout
34786
34787 \begin_layout Description
34788 white
34789 \end_layout
34790
34791 \begin_layout Description
34792 blue
34793 \end_layout
34794
34795 \begin_layout Description
34796 brown
34797 \end_layout
34798
34799 \begin_layout Description
34800 cyan
34801 \end_layout
34802
34803 \begin_layout Description
34804 darkgray
34805 \end_layout
34806
34807 \begin_layout Description
34808 gray
34809 \end_layout
34810
34811 \begin_layout Description
34812 green
34813 \end_layout
34814
34815 \begin_layout Description
34816 lightgray
34817 \end_layout
34818
34819 \begin_layout Description
34820 lime
34821 \end_layout
34822
34823 \begin_layout Description
34824 magenta
34825 \end_layout
34826
34827 \begin_layout Description
34828 olive
34829 \end_layout
34830
34831 \begin_layout Description
34832 orange
34833 \end_layout
34834
34835 \begin_layout Description
34836 pink
34837 \end_layout
34838
34839 \begin_layout Description
34840 purple
34841 \end_layout
34842
34843 \begin_layout Description
34844 red
34845 \end_layout
34846
34847 \begin_layout Description
34848 teal
34849 \end_layout
34850
34851 \begin_layout Description
34852 violet
34853 \end_layout
34854
34855 \begin_layout Description
34856 yellow
34857 \end_layout
34858
34859 \begin_layout Section
34860 Dynamic colors
34861 \end_layout
34862
34863 \begin_layout Standard
34864 These are the colors allocated to specific elements in 
34865 \begin_inset Info
34866 type  "menu"
34867 arg   "dialog-show prefs"
34868 \end_inset
34869
34870 :
34871 \end_layout
34872
34873 \begin_layout Description
34874 added_space Added space color
34875 \end_layout
34876
34877 \begin_layout Description
34878 addedtext Added text color
34879 \end_layout
34880
34881 \begin_layout Description
34882 appendix Appendix marker color
34883 \end_layout
34884
34885 \begin_layout Description
34886 background Background color
34887 \end_layout
34888
34889 \begin_layout Description
34890 bottomarea Bottom area color
34891 \end_layout
34892
34893 \begin_layout Description
34894 branchlabel Label color for branches
34895 \end_layout
34896
34897 \begin_layout Description
34898 buttonbg Color used for button background
34899 \end_layout
34900
34901 \begin_layout Description
34902 buttonframe Color for inset button frames
34903 \end_layout
34904
34905 \begin_layout Description
34906 buttonhoverbg Color used for button background under focus
34907 \end_layout
34908
34909 \begin_layout Description
34910 changebar Changebar color
34911 \end_layout
34912
34913 \begin_layout Description
34914 changedtextauthor1 Changed text color author 1
34915 \end_layout
34916
34917 \begin_layout Description
34918 changedtextauthor2 Changed text color author 2
34919 \end_layout
34920
34921 \begin_layout Description
34922 changedtextauthor3 Changed text color author 3
34923 \end_layout
34924
34925 \begin_layout Description
34926 changedtextauthor4 Changed text color author 4
34927 \end_layout
34928
34929 \begin_layout Description
34930 changedtextauthor5 Changed text color author 5
34931 \end_layout
34932
34933 \begin_layout Description
34934 collapsible Collapsible insets text color
34935 \end_layout
34936
34937 \begin_layout Description
34938 collapsibleframe Collapsible insets framecolor
34939 \end_layout
34940
34941 \begin_layout Description
34942 command Text color for command insets
34943 \end_layout
34944
34945 \begin_layout Description
34946 commandbg Background color for command insets
34947 \end_layout
34948
34949 \begin_layout Description
34950 commandframe Frame color for command insets
34951 \end_layout
34952
34953 \begin_layout Description
34954 comment Label color for comments
34955 \end_layout
34956
34957 \begin_layout Description
34958 commentbg Background color of comments
34959 \end_layout
34960
34961 \begin_layout Description
34962 cursor Cursor color
34963 \end_layout
34964
34965 \begin_layout Description
34966 deletedtext Deleted text color
34967 \end_layout
34968
34969 \begin_layout Description
34970 deletedtextmodifier Deleted text modifying color
34971 \end_layout
34972
34973 \begin_layout Description
34974 depthbar Color for the depth bars in the margin
34975 \end_layout
34976
34977 \begin_layout Description
34978 eolmarker End of line marker color
34979 \end_layout
34980
34981 \begin_layout Description
34982 error Color of the \SpecialChar LaTeX
34983  error box
34984 \end_layout
34985
34986 \begin_layout Description
34987 footlabel Label color for footnotes
34988 \end_layout
34989
34990 \begin_layout Description
34991 foreground Foreground color
34992 \end_layout
34993
34994 \begin_layout Description
34995 graphicsbg Graphics inset background color
34996 \end_layout
34997
34998 \begin_layout Description
34999 greyedoutbg Background color of greyedout inset
35000 \end_layout
35001
35002 \begin_layout Description
35003 greyedoutlabel Label color for greyedout insets
35004 \end_layout
35005
35006 \begin_layout Description
35007 greyedouttext Color for greyedout inset text
35008 \end_layout
35009
35010 \begin_layout Description
35011 indexlabel Label color for index insets
35012 \end_layout
35013
35014 \begin_layout Description
35015 inlinecompletion Inline completion color
35016 \end_layout
35017
35018 \begin_layout Description
35019 insetbg Inset marker background color
35020 \end_layout
35021
35022 \begin_layout Description
35023 insetframe Inset marker frame color
35024 \end_layout
35025
35026 \begin_layout Description
35027 language Color for marking foreign language words
35028 \end_layout
35029
35030 \begin_layout Description
35031 latex Text color in \SpecialChar LaTeX
35032  mode
35033 \end_layout
35034
35035 \begin_layout Description
35036 listingsbg Background color of listings inset
35037 \end_layout
35038
35039 \begin_layout Description
35040 marginlabel Label color for margin notes
35041 \end_layout
35042
35043 \begin_layout Description
35044 math Math inset text color
35045 \end_layout
35046
35047 \begin_layout Description
35048 mathbg Math inset background color
35049 \end_layout
35050
35051 \begin_layout Description
35052 mathcorners Math inset frame color not under focus
35053 \end_layout
35054
35055 \begin_layout Description
35056 mathframe Math inset frame color under focus
35057 \end_layout
35058
35059 \begin_layout Description
35060 mathline Math line color
35061 \end_layout
35062
35063 \begin_layout Description
35064 mathmacrobg Macro math inset background color
35065 \end_layout
35066
35067 \begin_layout Description
35068 mathmacroblend Macro math blended color
35069 \end_layout
35070
35071 \begin_layout Description
35072 mathmacroframe Macro math frame color
35073 \end_layout
35074
35075 \begin_layout Description
35076 mathmacrohoverbg Macro math inset background color hovered
35077 \end_layout
35078
35079 \begin_layout Description
35080 mathmacrolabel Macro math label color
35081 \end_layout
35082
35083 \begin_layout Description
35084 mathmacronewarg Macro template color for new parameters
35085 \end_layout
35086
35087 \begin_layout Description
35088 mathmacrooldarg Macro template color for old parameters
35089 \end_layout
35090
35091 \begin_layout Description
35092 newpage New page color
35093 \end_layout
35094
35095 \begin_layout Description
35096 nonunique_inlinecompletion Inline completion color for the non-unique part
35097 \end_layout
35098
35099 \begin_layout Description
35100 note Label color for notes
35101 \end_layout
35102
35103 \begin_layout Description
35104 notebg Background color of notes
35105 \end_layout
35106
35107 \begin_layout Description
35108 pagebreak Page break/line break color
35109 \end_layout
35110
35111 \begin_layout Description
35112 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
35113 \end_layout
35114
35115 \begin_layout Description
35116 phantomtext Text color for phantom insets
35117 \end_layout
35118
35119 \begin_layout Description
35120 preview The color used for previews
35121 \end_layout
35122
35123 \begin_layout Description
35124 previewframe Preview frame color
35125 \end_layout
35126
35127 \begin_layout Description
35128 regexpframe Color for regexp frame
35129 \end_layout
35130
35131 \begin_layout Description
35132 scroll Color that indicates when a row can be scrolled 
35133 \end_layout
35134
35135 \begin_layout Description
35136 selection Background color of selected text
35137 \end_layout
35138
35139 \begin_layout Description
35140 selectiontext Foreground color of selected text
35141 \end_layout
35142
35143 \begin_layout Description
35144 shadedbg Background color of shaded box
35145 \end_layout
35146
35147 \begin_layout Description
35148 special Special chars text color
35149 \end_layout
35150
35151 \begin_layout Description
35152 tabularline Table line color
35153 \end_layout
35154
35155 \begin_layout Description
35156 tabularonoffline Table line color
35157 \change_inserted -712698321 1607682522
35158
35159 \end_layout
35160
35161 \begin_layout Description
35162
35163 \change_inserted -712698321 1607682563
35164 textlabel1 Color 1 of layout and custom inset labels
35165 \end_layout
35166
35167 \begin_layout Description
35168
35169 \change_inserted -712698321 1607682565
35170 textlabel2 Color 2 of layout and custom inset labels
35171 \end_layout
35172
35173 \begin_layout Description
35174
35175 \change_inserted -712698321 1607682568
35176 textlabel3 Color 3 of layout and custom inset labels
35177 \change_unchanged
35178
35179 \end_layout
35180
35181 \begin_layout Description
35182 urllabel Label color for URL insets
35183 \end_layout
35184
35185 \begin_layout Description
35186 urltext Color for URL inset text
35187 \end_layout
35188
35189 \end_body
35190 \end_document