]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Update the format for some doc pages
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 609
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7 #0a0518
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \change_bars false
134 \postpone_fragile_content false
135 \html_math_output 0
136 \html_css_as_file 0
137 \html_be_strict true
138 \docbook_table_output 0
139 \docbook_mathml_prefix 1
140 \author -970929547 "Thibaut Cuvelier"
141 \author -712698321 "Jürgen Spitzmüller"
142 \author -584632292 "Richard Kimberly Heck"
143 \author -495245474 "Jean-Marc Lasgouttes"
144 \author 177693 "x"
145 \author 5863208 "ab"
146 \author 34634807 "Jean-Pierre"
147 \author 232239728 "Owner"
148 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
149 \author 1075283030 "Thibaut"
150 \end_header
151
152 \begin_body
153
154 \begin_layout Title
155 Customizing \SpecialChar LyX
156 : Features for the Advanced User
157 \end_layout
158
159 \begin_layout Author
160 by the \SpecialChar LyX
161  Team
162 \begin_inset Foot
163 status collapsed
164
165 \begin_layout Plain Layout
166 If you have comments or error corrections, please send them to the \SpecialChar LyX
167  Documentatio
168 n mailing list, 
169 \begin_inset CommandInset href
170 LatexCommand href
171 target "lyx-docs@lists.lyx.org"
172 type "mailto:"
173 literal "false"
174
175 \end_inset
176
177 .
178  Include 
179 \begin_inset Quotes eld
180 \end_inset
181
182 [Customization]
183 \begin_inset Quotes erd
184 \end_inset
185
186  in the subject header, and please cc the current maintainer of this file,
187  Richard 
188 \change_inserted 5863208 1604930692
189 Kimberly 
190 \change_unchanged
191 Heck <
192 \change_inserted 5863208 1604930729
193 rikiheck@lyx.org
194 \change_deleted 5863208 1604930668
195 rikiheck@lyx.org
196 \change_unchanged
197 >.
198 \end_layout
199
200 \end_inset
201
202
203 \begin_inset Newline newline
204 \end_inset
205
206
207 \begin_inset Newline newline
208 \end_inset
209
210 Version 2.4.x
211 \end_layout
212
213 \begin_layout Standard
214 \begin_inset CommandInset toc
215 LatexCommand tableofcontents
216
217 \end_inset
218
219
220 \end_layout
221
222 \begin_layout Standard
223 \begin_inset Note Note
224 status open
225
226 \begin_layout Plain Layout
227 Please use change tracking when modifying this document.
228  This makes it easier for our translators to recognize things that have
229  been changed, and it helps the maintainer keep up-to-date with what's been
230  done.
231 \end_layout
232
233 \end_inset
234
235
236 \end_layout
237
238 \begin_layout Chapter
239 Introduction
240 \end_layout
241
242 \begin_layout Standard
243 This manual covers the customization features present in \SpecialChar LyX
244 .
245  In it, we discuss issues like keyboard shortcuts, screen previewing options,
246  printer options, sending commands to \SpecialChar LyX
247  via the \SpecialChar LyX
248  Server, internationalization,
249  installing new \SpecialChar LaTeX
250  classes and \SpecialChar LyX
251  layouts, etc.
252  We can't possibly hope to touch on everything you can change—our developers
253  add new features faster than we can document them—but we will explain the
254  most common customizations and hopefully point you in the right direction
255  for some of the more obscure ones.
256 \end_layout
257
258 \begin_layout Standard
259 \begin_inset Branch OutDated
260 inverted 0
261 status collapsed
262
263 \begin_layout Standard
264 Information from previous versions of this document that now seems to be
265  outdated is contained in the OutDated branch of this document.
266  By default, this information will not appear in the \SpecialChar LaTeX
267  output.
268 \end_layout
269
270 \end_inset
271
272
273 \end_layout
274
275 \begin_layout Chapter
276 \SpecialChar LyX
277  configuration files
278 \end_layout
279
280 \begin_layout Standard
281 This chapter aims to help you to find your way through the \SpecialChar LyX
282  configuration
283  files.
284  Before continuing to read this chapter, you should find out where your
285  \SpecialChar LyX
286  library and user directories are by using 
287 \begin_inset Flex Noun
288 status collapsed
289
290 \begin_layout Plain Layout
291 Help\SpecialChar menuseparator
292 About
293 \begin_inset space ~
294 \end_inset
295
296 LyX
297 \end_layout
298
299 \end_inset
300
301 .
302  The library directory is the place where \SpecialChar LyX
303  places its system-wide configuration
304  files; the user directory is where you can place your modified versions.
305  We will call the former 
306 \begin_inset Flex Code
307 status collapsed
308
309 \begin_layout Plain Layout
310 LyXDir
311 \end_layout
312
313 \end_inset
314
315  and the latter 
316 \begin_inset Flex Noun
317 status collapsed
318
319 \begin_layout Plain Layout
320 UserDir
321 \end_layout
322
323 \end_inset
324
325  in the remainder of this document.
326  
327 \end_layout
328
329 \begin_layout Section
330 What's in 
331 \begin_inset Flex Code
332 status collapsed
333
334 \begin_layout Plain Layout
335 LyXDir
336 \end_layout
337
338 \end_inset
339
340 ?
341 \end_layout
342
343 \begin_layout Standard
344 \begin_inset Flex Code
345 status collapsed
346
347 \begin_layout Plain Layout
348 LyXDir
349 \end_layout
350
351 \end_inset
352
353  and its sub-directories contain a number of files 
354 \change_deleted 232239728 1604787780
355 and
356 \change_unchanged
357  that can be used to customize \SpecialChar LyX
358 's behavior.
359  You can change many of these files from within \SpecialChar LyX
360  itself through the 
361 \begin_inset Flex Noun
362 status collapsed
363
364 \begin_layout Plain Layout
365 Tools\SpecialChar menuseparator
366 Preferences
367 \end_layout
368
369 \end_inset
370
371  dialog.
372  Most customization that you will want to do in \SpecialChar LyX
373  is possible through this
374  dialog.
375  However, many other inner aspects of \SpecialChar LyX
376  can be customized by modifying the
377  files in 
378 \begin_inset Flex Code
379 status collapsed
380
381 \begin_layout Plain Layout
382 LyXDir
383 \end_layout
384
385 \end_inset
386
387 .
388  These files fall in different categories, described in the following subsection
389 s.
390 \end_layout
391
392 \begin_layout Subsection
393 Automatically generated files
394 \end_layout
395
396 \begin_layout Standard
397 The files found in 
398 \begin_inset Flex Noun
399 status collapsed
400
401 \begin_layout Plain Layout
402 UserDir
403 \end_layout
404
405 \end_inset
406
407  are generated when you configure \SpecialChar LyX
408 .
409  They contain various default values that are 
410 \change_inserted 5863208 1604919565
411 automatically detected during reconfiguration.
412 \change_deleted 232239728 1604788241
413 guessed by inspection
414 \change_unchanged
415  In general, it is not a good idea to modify them, since they might be overwritt
416 en at any time.
417 \end_layout
418
419 \begin_layout Labeling
420 \labelwidthstring 00.00.0000
421 \begin_inset Flex Code
422 status collapsed
423
424 \begin_layout Plain Layout
425 lyxrc.defaults
426 \end_layout
427
428 \end_inset
429
430  
431 \change_deleted 5863208 1604919950
432
433 \begin_inset Note Note
434 status collapsed
435
436 \begin_layout Plain Layout
437
438 \change_inserted 232239728 1604853928
439 I capitalized the first word in all of these lists.
440  To me it looks better but it really is a stylistic thing, your call.
441  However if you are not going to capitalize them, the english in some needs
442  to be modified to make it read correctly as a sentence.
443 \change_unchanged
444
445 \end_layout
446
447 \end_inset
448
449
450 \change_deleted 232239728 1604853510
451 c
452 \change_inserted 232239728 1604853510
453 C
454 \change_unchanged
455 ontains defaults for various commands.
456 \end_layout
457
458 \begin_layout Labeling
459 \labelwidthstring 00.00.0000
460 \begin_inset Flex Code
461 status collapsed
462
463 \begin_layout Plain Layout
464 packages.lst
465 \end_layout
466
467 \end_inset
468
469  
470 \change_deleted 232239728 1604853512
471 c
472 \change_inserted 232239728 1604853512
473 C
474 \change_unchanged
475 ontains the list of packages that have been recognized by \SpecialChar LyX
476 .
477  It is currently unused by the \SpecialChar LyX
478  program itself, but the information extracted,
479  and more, is made available with 
480 \begin_inset Flex Noun
481 status collapsed
482
483 \begin_layout Plain Layout
484 Help\SpecialChar menuseparator
485 \SpecialChar LaTeX
486
487 \begin_inset space ~
488 \end_inset
489
490 Configuration
491 \end_layout
492
493 \end_inset
494
495 .
496 \end_layout
497
498 \begin_layout Labeling
499 \labelwidthstring 00.00.0000
500 \begin_inset Flex Code
501 status collapsed
502
503 \begin_layout Plain Layout
504 textclass.lst
505 \end_layout
506
507 \end_inset
508
509  
510 \change_deleted 232239728 1604853515
511 t
512 \change_inserted 232239728 1604853515
513 T
514 \change_unchanged
515 he list of text classes that have been found in your 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 layout/
521 \end_layout
522
523 \end_inset
524
525  directories, along with the associated \SpecialChar LaTeX
526  document class and their description.
527 \end_layout
528
529 \begin_layout Labeling
530 \labelwidthstring 00.00.0000
531 \begin_inset Flex Code
532 status collapsed
533
534 \begin_layout Plain Layout
535 lyxmodules.lst
536 \end_layout
537
538 \end_inset
539
540  
541 \change_deleted 232239728 1604853518
542 t
543 \change_inserted 232239728 1604853518
544 T
545 \change_unchanged
546 he list of layout modules found in your 
547 \begin_inset Flex Code
548 status collapsed
549
550 \begin_layout Plain Layout
551 layout/
552 \end_layout
553
554 \end_inset
555
556  directories
557 \end_layout
558
559 \begin_layout Labeling
560 \labelwidthstring 00.00.0000
561 \begin_inset Flex Code
562 status open
563
564 \begin_layout Plain Layout
565 *files.lst
566 \end_layout
567
568 \end_inset
569
570  
571 \change_deleted 232239728 1604853523
572 l
573 \change_inserted 232239728 1604853523
574 L
575 \change_unchanged
576 ists of various sorts of \SpecialChar LaTeX
577 -related files found on your system
578 \end_layout
579
580 \begin_layout Labeling
581 \labelwidthstring 00.00.0000
582 \begin_inset Flex Code
583 status open
584
585 \begin_layout Plain Layout
586 doc/\SpecialChar LaTeX
587 Config.lyx
588 \end_layout
589
590 \end_inset
591
592  is automatically generated during configuration from the file 
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597 \SpecialChar LaTeX
598 Config.lyx.in
599 \end_layout
600
601 \end_inset
602
603 .
604  It contains information on your \SpecialChar LaTeX
605  configuration.
606 \end_layout
607
608 \begin_layout Subsection
609 Directories
610 \end_layout
611
612 \begin_layout Standard
613 The
614 \change_deleted 5863208 1604928729
615 se
616 \change_unchanged
617  
618 \change_inserted 5863208 1604928636
619 following 
620 \change_unchanged
621 directories 
622 \change_inserted 5863208 1604928661
623 in 
624 \change_unchanged
625
626 \begin_inset Flex Code
627 status collapsed
628
629 \begin_layout Plain Layout
630 LyXDir
631 \end_layout
632
633 \end_inset
634
635
636 \change_inserted 5863208 1604928662
637  can be
638 \change_deleted 5863208 1604928642
639 are
640 \change_unchanged
641  duplicated 
642 \change_deleted 5863208 1604928669
643 between 
644 \begin_inset Flex Code
645 status collapsed
646
647 \begin_layout Plain Layout
648 LyXDir
649 \end_layout
650
651 \end_inset
652
653  and
654 \change_inserted 5863208 1604928680
655 in
656 \change_unchanged
657  
658 \begin_inset Flex Code
659 status collapsed
660
661 \begin_layout Plain Layout
662 UserDir
663 \end_layout
664
665 \end_inset
666
667 .
668  If a particular file
669 \change_deleted 232239728 1604794430
670 s
671 \change_unchanged
672  exists in both places, the one in 
673 \begin_inset Flex Code
674 status collapsed
675
676 \begin_layout Plain Layout
677 UserDir
678 \end_layout
679
680 \end_inset
681
682  will be used.
683 \end_layout
684
685 \begin_layout Labeling
686 \labelwidthstring 00.00.0000
687 \begin_inset Flex Code
688 status collapsed
689
690 \begin_layout Plain Layout
691 bind/
692 \end_layout
693
694 \end_inset
695
696  
697 \change_deleted 232239728 1604794460
698 t
699 \change_inserted 232239728 1604794460
700 T
701 \change_unchanged
702 his directory contains files with the extension 
703 \begin_inset Flex Code
704 status collapsed
705
706 \begin_layout Plain Layout
707 .bind
708 \end_layout
709
710 \end_inset
711
712  that define the keybindings used in \SpecialChar LyX
713 .
714  If there exists an internationalized version of the bind file named 
715 \begin_inset Flex Code
716 status collapsed
717
718 \begin_layout Plain Layout
719 $LANG_xxx.bind
720 \end_layout
721
722 \end_inset
723
724 , that will be used first.
725 \end_layout
726
727 \begin_layout Labeling
728 \labelwidthstring 00.00.0000
729 \begin_inset Flex Code
730 status collapsed
731
732 \begin_layout Plain Layout
733 citeengines/
734 \end_layout
735
736 \end_inset
737
738  
739 \change_deleted 232239728 1604794478
740 c
741 \change_inserted 232239728 1604794478
742 C
743 \change_unchanged
744 ontains files with the extension 
745 \begin_inset Flex Code
746 status collapsed
747
748 \begin_layout Plain Layout
749 .citeengine
750 \end_layout
751
752 \end_inset
753
754  which define the diverse citation possibilities (natbib, biblatex etc.).
755  See 
756 \begin_inset CommandInset ref
757 LatexCommand ref
758 reference "subsec:Cite-Engine-Files"
759 plural "false"
760 caps "false"
761 noprefix "false"
762
763 \end_inset
764
765  for details.
766 \end_layout
767
768 \begin_layout Labeling
769 \labelwidthstring 00.00.0000
770 \begin_inset Flex Code
771 status collapsed
772
773 \begin_layout Plain Layout
774 clipart/
775 \end_layout
776
777 \end_inset
778
779  
780 \change_deleted 232239728 1604794483
781 c
782 \change_inserted 232239728 1604794486
783 C
784 \change_unchanged
785 ontains graphics files that can be included in documents.
786  
787 \end_layout
788
789 \begin_layout Labeling
790 \labelwidthstring 00.00.0000
791 \begin_inset Flex Code
792 status collapsed
793
794 \begin_layout Plain Layout
795 doc/
796 \end_layout
797
798 \end_inset
799
800  
801 \change_deleted 232239728 1604794492
802 c
803 \change_inserted 232239728 1604794492
804 C
805 \change_unchanged
806 ontains \SpecialChar LyX
807  documentation files (including the one you are currently reading).
808  The file 
809 \begin_inset Flex Code
810 status collapsed
811
812 \begin_layout Plain Layout
813
814 \change_deleted 232239728 1604794660
815 \SpecialChar LaTeX
816
817 \change_inserted 232239728 1604794661
818 LaTex
819 \change_unchanged
820 Config.lyx
821 \end_layout
822
823 \end_inset
824
825  deserves special attention, as noted above.
826  The internationalized help docs are in subdirectories 
827 \begin_inset Flex Code
828 status collapsed
829
830 \begin_layout Plain Layout
831 doc/xx
832 \end_layout
833
834 \end_inset
835
836  where 
837 \begin_inset Quotes eld
838 \end_inset
839
840 xx
841 \begin_inset Quotes erd
842 \end_inset
843
844  is the ISO language code.
845  See 
846 \begin_inset CommandInset ref
847 LatexCommand ref
848 reference "cha:Internationalizing-LyX"
849
850 \end_inset
851
852  for details.
853 \end_layout
854
855 \begin_layout Labeling
856 \labelwidthstring 00.00.0000
857 \begin_inset Flex Code
858 status collapsed
859
860 \begin_layout Plain Layout
861 examples/
862 \end_layout
863
864 \end_inset
865
866  
867 \change_deleted 232239728 1604794497
868 c
869 \change_inserted 232239728 1604794497
870 C
871 \change_unchanged
872 ontains example files that explain how to use some features.
873  In the file browser, press the 
874 \begin_inset Flex Noun
875 status collapsed
876
877 \begin_layout Plain Layout
878 Examples
879 \end_layout
880
881 \end_inset
882
883  button to get there.
884 \end_layout
885
886 \begin_layout Labeling
887 \labelwidthstring 00.00.0000
888 \begin_inset Flex Code
889 status collapsed
890
891 \begin_layout Plain Layout
892 images/
893 \end_layout
894
895 \end_inset
896
897  
898 \change_deleted 232239728 1604794500
899 c
900 \change_inserted 232239728 1604794500
901 C
902 \change_unchanged
903 ontains image files that are used by the 
904 \begin_inset Flex Noun
905 status collapsed
906
907 \begin_layout Plain Layout
908 Document
909 \end_layout
910
911 \end_inset
912
913  dialog.
914  In addition, it also contains the individual icons used in the toolbar
915  and the banners that can be shown when \SpecialChar LyX
916  is launched.
917 \end_layout
918
919 \begin_layout Labeling
920 \labelwidthstring 00.00.0000
921 \begin_inset Flex Code
922 status collapsed
923
924 \begin_layout Plain Layout
925 kbd/
926 \end_layout
927
928 \end_inset
929
930  
931 \change_deleted 232239728 1604794505
932 c
933 \change_inserted 232239728 1604794505
934 C
935 \change_unchanged
936 ontains keyboard keymapping files.
937  See 
938 \begin_inset CommandInset ref
939 LatexCommand ref
940 reference "sec:International-Keymap-Stuff"
941
942 \end_inset
943
944  for details.
945 \end_layout
946
947 \begin_layout Labeling
948 \labelwidthstring 00.00.0000
949 \begin_inset Flex Code
950 status collapsed
951
952 \begin_layout Plain Layout
953 layouts/
954 \end_layout
955
956 \end_inset
957
958  
959 \change_deleted 232239728 1604794508
960 c
961 \change_inserted 232239728 1604794508
962 C
963 \change_unchanged
964 ontains the text class and module files described in 
965 \begin_inset CommandInset ref
966 LatexCommand ref
967 reference "cha:Installing-New-Document"
968
969 \end_inset
970
971 .
972 \end_layout
973
974 \begin_layout Labeling
975 \labelwidthstring 00.00.0000
976 \begin_inset Flex Code
977 status collapsed
978
979 \begin_layout Plain Layout
980 lyx2lyx
981 \end_layout
982
983 \end_inset
984
985  
986 \change_deleted 232239728 1604794513
987 c
988 \change_inserted 232239728 1604794513
989 C
990 \change_unchanged
991 ontains the 
992 \begin_inset Flex Code
993 status collapsed
994
995 \begin_layout Plain Layout
996 lyx2lyx
997 \end_layout
998
999 \end_inset
1000
1001  Python scripts used to convert between \SpecialChar LyX
1002  versions.
1003  These can be run from the command line if
1004 \change_deleted 232239728 1604794749
1005 , say,
1006 \change_unchanged
1007  you want to batch-convert files.
1008 \end_layout
1009
1010 \begin_layout Labeling
1011 \labelwidthstring 00.00.0000
1012 \begin_inset Flex Code
1013 status collapsed
1014
1015 \begin_layout Plain Layout
1016 scripts/
1017 \end_layout
1018
1019 \end_inset
1020
1021  
1022 \change_deleted 232239728 1604794516
1023 c
1024 \change_inserted 232239728 1604794516
1025 C
1026 \change_unchanged
1027 ontains some files that demonstrate the capabilities of the 
1028 \begin_inset Flex Noun
1029 status collapsed
1030
1031 \begin_layout Plain Layout
1032 External
1033 \begin_inset space ~
1034 \end_inset
1035
1036 Template
1037 \end_layout
1038
1039 \end_inset
1040
1041  feature.
1042  Also contains some scripts used by \SpecialChar LyX
1043  itself.
1044 \end_layout
1045
1046 \begin_layout Labeling
1047 \labelwidthstring 00.00.0000
1048 \begin_inset Flex Code
1049 status collapsed
1050
1051 \begin_layout Plain Layout
1052 templates/
1053 \end_layout
1054
1055 \end_inset
1056
1057  
1058 \change_deleted 232239728 1604794520
1059 c
1060 \change_inserted 232239728 1604794520
1061 C
1062 \change_unchanged
1063 ontains the standard \SpecialChar LyX
1064  template files described in 
1065 \begin_inset CommandInset ref
1066 LatexCommand ref
1067 reference "subsec:Creating-Templates"
1068
1069 \end_inset
1070
1071 .
1072 \end_layout
1073
1074 \begin_layout Labeling
1075 \labelwidthstring 00.00.0000
1076 \begin_inset Flex Code
1077 status collapsed
1078
1079 \begin_layout Plain Layout
1080 ui/
1081 \end_layout
1082
1083 \end_inset
1084
1085  
1086 \change_deleted 232239728 1604794524
1087 c
1088 \change_inserted 232239728 1604794524
1089 C
1090 \change_unchanged
1091 ontains files with the extension 
1092 \begin_inset Flex Code
1093 status collapsed
1094
1095 \begin_layout Plain Layout
1096 .ui
1097 \end_layout
1098
1099 \end_inset
1100
1101  that define the user interface to \SpecialChar LyX
1102 .
1103  That is, the files define which items appear in which menus and the items
1104  appearing on the toolbar.
1105 \end_layout
1106
1107 \begin_layout Labeling
1108 \labelwidthstring 00.00.0000
1109 \begin_inset Flex Code
1110 status collapsed
1111
1112 \begin_layout Plain Layout
1113 xtemplates/
1114 \end_layout
1115
1116 \end_inset
1117
1118  
1119 \change_deleted 232239728 1604794528
1120 c
1121 \change_inserted 232239728 1604794528
1122 C
1123 \change_unchanged
1124 ontains files with the extension 
1125 \begin_inset Flex Code
1126 status collapsed
1127
1128 \begin_layout Plain Layout
1129 .xtemplate
1130 \end_layout
1131
1132 \end_inset
1133
1134  which define the templates for the insertion of external material to a
1135  \SpecialChar LyX
1136  document; see 
1137 \begin_inset CommandInset ref
1138 LatexCommand ref
1139 reference "chap:Including-External-Material"
1140
1141 \end_inset
1142
1143 .
1144 \end_layout
1145
1146 \begin_layout Subsection
1147 Files you don't want to modify
1148 \end_layout
1149
1150 \begin_layout Standard
1151 These files are used internally by \SpecialChar LyX
1152  and you generally do not need to modify
1153  them unless you are a developer.
1154 \end_layout
1155
1156 \begin_layout Labeling
1157 \labelwidthstring 00.00.0000
1158 \begin_inset Flex Code
1159 status collapsed
1160
1161 \begin_layout Plain Layout
1162 CREDITS
1163 \end_layout
1164
1165 \end_inset
1166
1167  
1168 \change_deleted 232239728 1604797616
1169 t
1170 \change_inserted 232239728 1604797616
1171 T
1172 \change_unchanged
1173 his file contains the list of \SpecialChar LyX
1174  developers.
1175  The contents are displayed with the menu entry 
1176 \begin_inset Flex Noun
1177 status collapsed
1178
1179 \begin_layout Plain Layout
1180 Help\SpecialChar menuseparator
1181 About
1182 \begin_inset space ~
1183 \end_inset
1184
1185 LyX
1186 \end_layout
1187
1188 \end_inset
1189
1190 .
1191 \end_layout
1192
1193 \begin_layout Labeling
1194 \labelwidthstring 00.00.0000
1195 \begin_inset Flex Code
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199 chkconfig.ltx
1200 \end_layout
1201
1202 \end_inset
1203
1204  
1205 \change_deleted 232239728 1604797620
1206 t
1207 \change_inserted 232239728 1604797620
1208 T
1209 \change_unchanged
1210 his is a \SpecialChar LaTeX
1211  script used during the configuration process.
1212  Do not run directly.
1213 \end_layout
1214
1215 \begin_layout Labeling
1216 \labelwidthstring 00.00.0000
1217 \begin_inset Flex Code
1218 status collapsed
1219
1220 \begin_layout Plain Layout
1221 configure.py
1222 \end_layout
1223
1224 \end_inset
1225
1226  
1227 \change_deleted 232239728 1604797624
1228 t
1229 \change_inserted 232239728 1604797624
1230 T
1231 \change_unchanged
1232 his is a Python script that is used to re-configure \SpecialChar LyX
1233 .
1234  It creates configuration files in the directory it was run from.
1235 \end_layout
1236
1237 \begin_layout Subsection
1238 Other files needing a line or two
1239 \end_layout
1240
1241 \begin_layout Labeling
1242 \labelwidthstring 00.00.0000
1243 \begin_inset Flex Code
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 encodings
1248 \end_layout
1249
1250 \end_inset
1251
1252  
1253 \change_deleted 232239728 1604797580
1254 t
1255 \change_inserted 232239728 1604797580
1256 T
1257 \change_unchanged
1258 his contains tables describing how different character encodings can be
1259  mapped to Unicode
1260 \end_layout
1261
1262 \begin_layout Labeling
1263 \labelwidthstring 00.00.0000
1264 \begin_inset Flex Code
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 languages
1269 \end_layout
1270
1271 \end_inset
1272
1273  
1274 \change_deleted 232239728 1604797584
1275 t
1276 \change_inserted 232239728 1604797584
1277 T
1278 \change_unchanged
1279 his file contains a list of all the languages currently supported by \SpecialChar LyX
1280 .
1281 \end_layout
1282
1283 \begin_layout Labeling
1284 \labelwidthstring 00.00.0000
1285 \begin_inset Flex Code
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289 latexfonts
1290 \end_layout
1291
1292 \end_inset
1293
1294  
1295 \change_deleted 232239728 1604797587
1296 c
1297 \change_inserted 232239728 1604797587
1298 C
1299 \change_unchanged
1300 ontains information about the supported fonts.
1301 \end_layout
1302
1303 \begin_layout Labeling
1304 \labelwidthstring 00.00.0000
1305 \begin_inset Flex Code
1306 status collapsed
1307
1308 \begin_layout Plain Layout
1309 layouttranslations
1310 \end_layout
1311
1312 \end_inset
1313
1314  
1315 \change_deleted 232239728 1604797591
1316 t
1317 \change_inserted 232239728 1604797591
1318 T
1319 \change_unchanged
1320 his file contains translations for internationalized paragraph styles (see
1321  
1322 \begin_inset CommandInset ref
1323 LatexCommand ref
1324 reference "subsec:I18n"
1325
1326 \end_inset
1327
1328 ).
1329 \end_layout
1330
1331 \begin_layout Labeling
1332 \labelwidthstring 00.00.0000
1333 \begin_inset Flex Code
1334 status collapsed
1335
1336 \begin_layout Plain Layout
1337 unicodesymbols
1338 \end_layout
1339
1340 \end_inset
1341
1342  
1343 \change_deleted 232239728 1604797594
1344 t
1345 \change_inserted 232239728 1604797594
1346 T
1347 \change_unchanged
1348 his file contains information about Unicode-encoded glyphs and the way they
1349  are supported by \SpecialChar LyX
1350  via \SpecialChar LaTeX
1351 .
1352 \end_layout
1353
1354 \begin_layout Section
1355 Your local configuration directory
1356 \end_layout
1357
1358 \begin_layout Standard
1359 Even if you are using \SpecialChar LyX
1360  as an unprivileged user, you might want to change
1361  \SpecialChar LyX
1362  configuration for your own use.
1363  The 
1364 \begin_inset Flex Code
1365 status collapsed
1366
1367 \begin_layout Plain Layout
1368 UserDir
1369 \end_layout
1370
1371 \end_inset
1372
1373  directory contains all your personal configuration files.
1374  This is the directory described as 
1375 \begin_inset Quotes eld
1376 \end_inset
1377
1378 user directory
1379 \begin_inset Quotes erd
1380 \end_inset
1381
1382  in 
1383 \begin_inset Flex Noun
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387 Help\SpecialChar menuseparator
1388 About
1389 \begin_inset space ~
1390 \end_inset
1391
1392 LyX
1393 \end_layout
1394
1395 \end_inset
1396
1397 .
1398  This directory is used as a mirror of 
1399 \begin_inset Flex Code
1400 status collapsed
1401
1402 \begin_layout Plain Layout
1403 LyXDir
1404 \end_layout
1405
1406 \end_inset
1407
1408 , which means that every file in 
1409 \begin_inset Flex Code
1410 status collapsed
1411
1412 \begin_layout Plain Layout
1413 UserDir
1414 \end_layout
1415
1416 \end_inset
1417
1418  is a replacement for the corresponding file in 
1419 \begin_inset Flex Code
1420 status collapsed
1421
1422 \begin_layout Plain Layout
1423 LyXDir
1424 \end_layout
1425
1426 \end_inset
1427
1428 .
1429  Any configuration file described in the above sections can be placed either
1430  in the system-wide directory, in which case it will affect all users, or
1431  in your local directory for your own use.
1432 \end_layout
1433
1434 \begin_layout Standard
1435 To make things clearer, let's provide a few examples:
1436 \end_layout
1437
1438 \begin_layout Itemize
1439 The preferences set in the 
1440 \begin_inset Flex Noun
1441 status collapsed
1442
1443 \begin_layout Plain Layout
1444 Tools\SpecialChar menuseparator
1445 Preferences
1446 \end_layout
1447
1448 \end_inset
1449
1450  dialog are saved to a file 
1451 \begin_inset Flex Code
1452 status collapsed
1453
1454 \begin_layout Plain Layout
1455 preferences
1456 \end_layout
1457
1458 \end_inset
1459
1460  in 
1461 \begin_inset Flex Code
1462 status collapsed
1463
1464 \begin_layout Plain Layout
1465 UserDir
1466 \end_layout
1467
1468 \end_inset
1469
1470 .
1471 \end_layout
1472
1473 \begin_layout Itemize
1474 When you reconfigure using 
1475 \begin_inset Flex Noun
1476 status collapsed
1477
1478 \begin_layout Plain Layout
1479 Tools\SpecialChar menuseparator
1480 Reconfigure
1481 \end_layout
1482
1483 \end_inset
1484
1485 , \SpecialChar LyX
1486  runs the 
1487 \begin_inset Flex Code
1488 status collapsed
1489
1490 \begin_layout Plain Layout
1491 configure.py
1492 \end_layout
1493
1494 \end_inset
1495
1496  script, and the resulting files are written in your local configuration
1497  directory.
1498  This means that any additional text class file that you might have added
1499  in 
1500 \begin_inset Flex Code
1501 status collapsed
1502
1503 \begin_layout Plain Layout
1504 UserDir/layouts
1505 \end_layout
1506
1507 \end_inset
1508
1509  will be added to the list of classes in the 
1510 \begin_inset Flex Noun
1511 status collapsed
1512
1513 \begin_layout Plain Layout
1514 Document\SpecialChar menuseparator
1515 Settings
1516 \end_layout
1517
1518 \end_inset
1519
1520  dialog.
1521 \end_layout
1522
1523 \begin_layout Itemize
1524 If you get some updated documentation from
1525 \change_inserted 232239728 1604798171
1526  a
1527 \change_unchanged
1528  \SpecialChar LyX
1529  ftp site and cannot install it because you do not have sysadmin rights
1530  on your system, you can just copy the files 
1531 \change_deleted 232239728 1604798193
1532 in
1533 \change_inserted 232239728 1604798193
1534 to
1535 \change_unchanged
1536  
1537 \begin_inset Flex Code
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 UserDir/doc/
1542 \end_layout
1543
1544 \end_inset
1545
1546  and the items in the 
1547 \begin_inset Flex Noun
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551 Help
1552 \end_layout
1553
1554 \end_inset
1555
1556  menu will open them!
1557 \end_layout
1558
1559 \begin_layout Section
1560 Running \SpecialChar LyX
1561  with multiple configurations
1562 \end_layout
1563
1564 \begin_layout Standard
1565 The configuration freedom of the local configuration directory may not suffice
1566  if you want to have more than one configuration at your disposal.
1567  For example, you may want to 
1568 \change_deleted 232239728 1604798238
1569 be 
1570 \change_unchanged
1571 use different key bindings or printer settings at different times.
1572  You can achieve this by having several such directories.
1573  You then specify which directory to use at run-time.
1574 \end_layout
1575
1576 \begin_layout Standard
1577 Invoking \SpecialChar LyX
1578  with the command line switch 
1579 \begin_inset Flex Code
1580 status collapsed
1581
1582 \begin_layout Plain Layout
1583 -userdir
1584 \end_layout
1585
1586 \end_inset
1587
1588  
1589 \emph on
1590 <some directory>
1591 \emph default
1592  instructs the program to read the configuration from that directory, and
1593  not from the default directory.
1594  (You can determine the default directory by running \SpecialChar LyX
1595  without the 
1596 \begin_inset Flex Code
1597 status collapsed
1598
1599 \begin_layout Plain Layout
1600 -userdir
1601 \end_layout
1602
1603 \end_inset
1604
1605  switch.) If the specified directory does not exist, \SpecialChar LyX
1606  offers to create it
1607  for you, just like it does for the default directory 
1608 \change_deleted 232239728 1604798318
1609 on
1610 \change_unchanged
1611  the first time you run the program.
1612  You can modify the configuration options in this additional user directory
1613  exactly as you would for the default directory.
1614  These directories are completely independent (but read on).
1615  Note that setting the environment variable 
1616 \begin_inset Flex Code
1617 status collapsed
1618
1619 \begin_layout Plain Layout
1620 LYX_USERDIR_24x
1621 \end_layout
1622
1623 \end_inset
1624
1625  to some value has exactly the same effect.
1626 \end_layout
1627
1628 \begin_layout Standard
1629 Having several configurations also requires more maintenance: if you want
1630  to add a new layout to 
1631 \begin_inset Flex Code
1632 status collapsed
1633
1634 \begin_layout Plain Layout
1635 NewUserDir/layouts
1636 \end_layout
1637
1638 \end_inset
1639
1640  which you want available from all your configurations, you must add it
1641  to each directory separately.
1642  You can avoid this with the following trick: after \SpecialChar LyX
1643  creates the additional
1644  directory, most of the subdirectories (see above) are empty.
1645  If you want the new configuration to mirror an existing one, replace the
1646  empty subdirectory with a symbolic link to the matching subdirectory in
1647  the existing configuration.
1648  Take care with the 
1649 \begin_inset Flex Code
1650 status collapsed
1651
1652 \begin_layout Plain Layout
1653 doc/
1654 \end_layout
1655
1656 \end_inset
1657
1658  subdirectory, however, since it contains a file written by the configuration
1659  script (also accessible through 
1660 \begin_inset Flex Noun
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 Tools\SpecialChar menuseparator
1665 Reconfigure
1666 \end_layout
1667
1668 \end_inset
1669
1670 ) which is configuration
1671 \change_deleted 232239728 1604798083
1672 -
1673 \change_inserted 232239728 1604798100
1674  
1675 \change_unchanged
1676 specific.
1677 \end_layout
1678
1679 \begin_layout Chapter
1680 The Preferences dialog
1681 \end_layout
1682
1683 \begin_layout Standard
1684 All options of the preferences dialog are described in the Appendix 
1685 \emph on
1686 The Preferences Dialog
1687 \emph default
1688  in the 
1689 \emph on
1690 User's Guide
1691 \emph default
1692 .
1693  For some options you might find here more details.
1694 \end_layout
1695
1696 \begin_layout Section
1697 Formats
1698 \begin_inset CommandInset label
1699 LatexCommand label
1700 name "sec:Formats"
1701
1702 \end_inset
1703
1704
1705 \end_layout
1706
1707 \begin_layout Standard
1708 The first step is to define your file formats if they are not already defined.
1709  To do so, open the 
1710 \begin_inset Flex Noun
1711 status collapsed
1712
1713 \begin_layout Plain Layout
1714 Tools\SpecialChar menuseparator
1715 Preferences
1716 \end_layout
1717
1718 \end_inset
1719
1720  dialog.
1721  Under 
1722 \begin_inset Flex Noun
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 File Handling\SpecialChar menuseparator
1727 File formats
1728 \end_layout
1729
1730 \end_inset
1731
1732  press the 
1733 \begin_inset Flex Noun
1734 status collapsed
1735
1736 \begin_layout Plain Layout
1737 New
1738 \end_layout
1739
1740 \end_inset
1741
1742  button to define your new format.
1743  The 
1744 \begin_inset Flex Noun
1745 status collapsed
1746
1747 \begin_layout Plain Layout
1748 Format
1749 \end_layout
1750
1751 \end_inset
1752
1753  field contains the name used to identify the format in the GUI.
1754  The 
1755 \begin_inset Flex Noun
1756 status collapsed
1757
1758 \begin_layout Plain Layout
1759 Short Name
1760 \end_layout
1761
1762 \end_inset
1763
1764  is used to identify the format internally.
1765  You will also need to enter a file extension.
1766  These are all required.
1767  The optional 
1768 \begin_inset Flex Noun
1769 status collapsed
1770
1771 \begin_layout Plain Layout
1772 Shortcut
1773 \end_layout
1774
1775 \end_inset
1776
1777  field is used to provide a keyboard shortcut on the menus.
1778  (For example, pressing 
1779 \begin_inset Flex Noun
1780 status collapsed
1781
1782 \begin_layout Plain Layout
1783 Ctrl+D
1784 \end_layout
1785
1786 \end_inset
1787
1788  will 
1789 \begin_inset Flex Noun
1790 status collapsed
1791
1792 \begin_layout Plain Layout
1793 Document\SpecialChar menuseparator
1794 View (Other Formats)\SpecialChar menuseparator
1795 DVI
1796 \end_layout
1797
1798 \end_inset
1799
1800 .) 
1801 \end_layout
1802
1803 \begin_layout Standard
1804 A Format can have a 
1805 \begin_inset Flex Noun
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809 Viewer
1810 \end_layout
1811
1812 \end_inset
1813
1814  and an 
1815 \begin_inset Flex Noun
1816 status collapsed
1817
1818 \begin_layout Plain Layout
1819 Editor
1820 \end_layout
1821
1822 \end_inset
1823
1824  associated with it.
1825  For example, you might want to use 
1826 \begin_inset Flex Noun
1827 status collapsed
1828
1829 \begin_layout Plain Layout
1830 Ghostview
1831 \end_layout
1832
1833 \end_inset
1834
1835  to view PostScript files.
1836  You can enter the command needed to start the program in the corresponding
1837  fields.
1838  In defining this command, you can use the four variables listed in the
1839  next section.
1840  The viewer is launched when you view an image in \SpecialChar LyX
1841  or use the 
1842 \begin_inset Flex Noun
1843 status collapsed
1844
1845 \begin_layout Plain Layout
1846 Document\SpecialChar menuseparator
1847 View
1848 \end_layout
1849
1850 \end_inset
1851
1852  menu.
1853  The editor is for example launched when you right-click on an image and
1854  choose 
1855 \begin_inset Flex Noun
1856 status collapsed
1857
1858 \begin_layout Plain Layout
1859 Edit externally
1860 \end_layout
1861
1862 \end_inset
1863
1864  in the appearing context menu.
1865 \end_layout
1866
1867 \begin_layout Standard
1868 The 
1869 \begin_inset Flex Noun
1870 status collapsed
1871
1872 \begin_layout Plain Layout
1873 MIME
1874 \end_layout
1875
1876 \end_inset
1877
1878  type of a format is optional, but if it is specified, it must be unique
1879  across all formats.
1880  It is used to detect files of this format from the file contents.
1881  For some important file formats there is no MIME type officially registered
1882  with the 
1883 \begin_inset CommandInset href
1884 LatexCommand href
1885 name "IANA"
1886 target "http://www.iana.org/assignments/media-types/"
1887 literal "false"
1888
1889 \end_inset
1890
1891 .
1892  Therefore \SpecialChar LyX
1893  uses the extended list of MIME types as specified by 
1894 \begin_inset CommandInset href
1895 LatexCommand href
1896 name "freedesktop.org"
1897 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1898 literal "false"
1899
1900 \end_inset
1901
1902 .
1903 \end_layout
1904
1905 \begin_layout Standard
1906 The 
1907 \begin_inset Flex Noun
1908 status collapsed
1909
1910 \begin_layout Plain Layout
1911 Document format
1912 \end_layout
1913
1914 \end_inset
1915
1916  option tells \SpecialChar LyX
1917  that a format is suitable for document export.
1918  If this is set and if a suitable conversion route exists (see 
1919 \begin_inset CommandInset ref
1920 LatexCommand ref
1921 reference "sec:Converters"
1922
1923 \end_inset
1924
1925 ), the format will appear in the 
1926 \begin_inset Flex Noun
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930 File\SpecialChar menuseparator
1931 Export
1932 \end_layout
1933
1934 \end_inset
1935
1936  menu.
1937  The format will also appear in the 
1938 \begin_inset Flex Noun
1939 status collapsed
1940
1941 \begin_layout Plain Layout
1942 Document\SpecialChar menuseparator
1943 View
1944 \end_layout
1945
1946 \end_inset
1947
1948  menu if a viewer is specified for the format.
1949  Pure image formats, such as 
1950 \begin_inset Flex Code
1951 status collapsed
1952
1953 \begin_layout Plain Layout
1954 png
1955 \end_layout
1956
1957 \end_inset
1958
1959 , should not use this option.
1960  Formats that can both represent vector graphics and documents like 
1961 \begin_inset Flex Code
1962 status collapsed
1963
1964 \begin_layout Plain Layout
1965 pdf
1966 \end_layout
1967
1968 \end_inset
1969
1970  should use it.
1971 \end_layout
1972
1973 \begin_layout Standard
1974 The option 
1975 \begin_inset Flex Noun
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 Vector graphics format
1980 \end_layout
1981
1982 \end_inset
1983
1984  tells \SpecialChar LyX
1985  that a format can contain vector graphics.
1986  This information is used to determine the target format of included graphics
1987  for 
1988 \begin_inset Flex Noun
1989 status collapsed
1990
1991 \begin_layout Plain Layout
1992 pdflatex
1993 \end_layout
1994
1995 \end_inset
1996
1997  export.
1998  Included graphics may need to be converted to either 
1999 \begin_inset Flex Noun
2000 status collapsed
2001
2002 \begin_layout Plain Layout
2003 pdf
2004 \end_layout
2005
2006 \end_inset
2007
2008
2009 \begin_inset Flex Noun
2010 status collapsed
2011
2012 \begin_layout Plain Layout
2013 png
2014 \end_layout
2015
2016 \end_inset
2017
2018 , or 
2019 \begin_inset Flex Noun
2020 status collapsed
2021
2022 \begin_layout Plain Layout
2023 jpg
2024 \end_layout
2025
2026 \end_inset
2027
2028 , since 
2029 \begin_inset Flex Noun
2030 status collapsed
2031
2032 \begin_layout Plain Layout
2033 pdflatex
2034 \end_layout
2035
2036 \end_inset
2037
2038  cannot handle other image formats.
2039  If an included graphic is not already in 
2040 \begin_inset Flex Noun
2041 status collapsed
2042
2043 \begin_layout Plain Layout
2044 pdf
2045 \end_layout
2046
2047 \end_inset
2048
2049
2050 \begin_inset Flex Noun
2051 status collapsed
2052
2053 \begin_layout Plain Layout
2054 png
2055 \end_layout
2056
2057 \end_inset
2058
2059 , or 
2060 \begin_inset Flex Noun
2061 status collapsed
2062
2063 \begin_layout Plain Layout
2064 jpg
2065 \end_layout
2066
2067 \end_inset
2068
2069  format, it is converted to 
2070 \begin_inset Flex Noun
2071 status collapsed
2072
2073 \begin_layout Plain Layout
2074 pdf
2075 \end_layout
2076
2077 \end_inset
2078
2079  if the vector format option is set, and otherwise to 
2080 \begin_inset Flex Noun
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084 png
2085 \end_layout
2086
2087 \end_inset
2088
2089 .
2090 \end_layout
2091
2092 \begin_layout Section
2093 Copiers
2094 \end_layout
2095
2096 \begin_layout Standard
2097 Since all conversions from one format to another take place in \SpecialChar LyX
2098 's temporary
2099  directory, it is sometimes necessary to modify a file before copying it
2100  to the temporary directory in order that the conversion may be performed.
2101 \begin_inset Foot
2102 status collapsed
2103
2104 \begin_layout Plain Layout
2105 For example, the file may refer to other files—images, for example—using
2106  relative file names, and these may become invalid when the file is copied
2107  to the temporary directory.
2108 \end_layout
2109
2110 \end_inset
2111
2112  This is done by a Copier: It copies a file to (or from) the temporary directory
2113  and may modify it in the process.
2114 \end_layout
2115
2116 \begin_layout Standard
2117 The definitions of the copiers may use eight variables:
2118 \end_layout
2119
2120 \begin_layout Labeling
2121 \labelwidthstring 00.00.0000
2122 \begin_inset Flex Code
2123 status collapsed
2124
2125 \begin_layout Plain Layout
2126 $$s
2127 \end_layout
2128
2129 \end_inset
2130
2131  The \SpecialChar LyX
2132  system directory (e.
2133 \begin_inset space \thinspace{}
2134 \end_inset
2135
2136 g.
2137 \begin_inset space \space{}
2138 \end_inset
2139
2140
2141 \begin_inset Flex Noun
2142 status collapsed
2143
2144 \begin_layout Plain Layout
2145 /usr/share/lyx
2146 \end_layout
2147
2148 \end_inset
2149
2150 ).
2151 \end_layout
2152
2153 \begin_layout Labeling
2154 \labelwidthstring 00.00.0000
2155 \begin_inset Flex Code
2156 status collapsed
2157
2158 \begin_layout Plain Layout
2159 $$i
2160 \end_layout
2161
2162 \end_inset
2163
2164  The input file
2165 \end_layout
2166
2167 \begin_layout Labeling
2168 \labelwidthstring 00.00.0000
2169 \begin_inset Flex Code
2170 status collapsed
2171
2172 \begin_layout Plain Layout
2173 $$o
2174 \end_layout
2175
2176 \end_inset
2177
2178  The output file
2179 \end_layout
2180
2181 \begin_layout Labeling
2182 \labelwidthstring 00.00.0000
2183 \begin_inset Flex Code
2184 status collapsed
2185
2186 \begin_layout Plain Layout
2187 $$b
2188 \end_layout
2189
2190 \end_inset
2191
2192  The base name (without filename extension) in the \SpecialChar LyX
2193  temporary directory
2194 \end_layout
2195
2196 \begin_layout Labeling
2197 \labelwidthstring 00.00.0000
2198 \begin_inset Flex Code
2199 status collapsed
2200
2201 \begin_layout Plain Layout
2202 $$p
2203 \end_layout
2204
2205 \end_inset
2206
2207  The full directory path of the \SpecialChar LyX
2208  temporary directory
2209 \end_layout
2210
2211 \begin_layout Labeling
2212 \labelwidthstring 00.00.0000
2213 \begin_inset Flex Code
2214 status collapsed
2215
2216 \begin_layout Plain Layout
2217 $$r
2218 \end_layout
2219
2220 \end_inset
2221
2222  The full pathname to the original \SpecialChar LyX
2223  file being processed
2224 \end_layout
2225
2226 \begin_layout Labeling
2227 \labelwidthstring 00.00.0000
2228 \begin_inset Flex Code
2229 status collapsed
2230
2231 \begin_layout Plain Layout
2232 $$f
2233 \end_layout
2234
2235 \end_inset
2236
2237  The filename (without any directory path) of the \SpecialChar LyX
2238  file.
2239 \end_layout
2240
2241 \begin_layout Labeling
2242 \labelwidthstring 00.00.0000
2243 \begin_inset Flex Code
2244 status collapsed
2245
2246 \begin_layout Plain Layout
2247 $$l
2248 \end_layout
2249
2250 \end_inset
2251
2252  The `\SpecialChar LaTeX
2253  name'
2254 \end_layout
2255
2256 \begin_layout Standard
2257 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2258 's 
2259 \series bold
2260
2261 \backslash
2262 include
2263 \series default
2264  command.
2265  It is relevant only when exporting files suitable for such inclusion.
2266 \end_layout
2267
2268 \begin_layout Standard
2269 Copiers can be used to do almost anything with output files.
2270  For example, suppose you want generated pdf files to be copied to a special
2271  directory, 
2272 \begin_inset Flex Code
2273 status collapsed
2274
2275 \begin_layout Plain Layout
2276 /home/you/pdf/
2277 \end_layout
2278
2279 \end_inset
2280
2281 .
2282  Then you could write a shell script such as this one:
2283 \end_layout
2284
2285 \begin_layout Standard
2286 \begin_inset listings
2287 inline false
2288 status open
2289
2290 \begin_layout Plain Layout
2291
2292 #!/bin/bash
2293 \end_layout
2294
2295 \begin_layout Plain Layout
2296
2297 FROMFILE=$1
2298 \end_layout
2299
2300 \begin_layout Plain Layout
2301
2302 TOFILE=`basename $2`
2303 \end_layout
2304
2305 \begin_layout Plain Layout
2306
2307 cp $FROMFILE /home/you/pdf/$TOFILE
2308 \end_layout
2309
2310 \end_inset
2311
2312 Save it in your local \SpecialChar LyX
2313  directory—say, 
2314 \begin_inset Flex Code
2315 status collapsed
2316
2317 \begin_layout Plain Layout
2318 /home/you/.lyx/scripts/pdfcopier.sh
2319 \end_layout
2320
2321 \end_inset
2322
2323 —and make it executable, if you need to do so on your platform.
2324  Then, in the 
2325 \begin_inset Flex Noun
2326 status collapsed
2327
2328 \begin_layout Plain Layout
2329 Tools\SpecialChar menuseparator
2330 Preferences
2331 \end_layout
2332
2333 \end_inset
2334
2335  dialog, select under 
2336 \begin_inset Flex Noun
2337 status collapsed
2338
2339 \begin_layout Plain Layout
2340 File Handling\SpecialChar menuseparator
2341 File formats
2342 \end_layout
2343
2344 \end_inset
2345
2346  the 
2347 \begin_inset Flex Noun
2348 status collapsed
2349
2350 \begin_layout Plain Layout
2351 PDF(pdflatex)
2352 \end_layout
2353
2354 \end_inset
2355
2356  format—or one of the other pdf formats—and enter 
2357 \begin_inset Flex Code
2358 status collapsed
2359
2360 \begin_layout Plain Layout
2361 pdfcopier.sh $$i $$o
2362 \end_layout
2363
2364 \end_inset
2365
2366  into the 
2367 \begin_inset Flex Noun
2368 status collapsed
2369
2370 \begin_layout Plain Layout
2371 Copier
2372 \end_layout
2373
2374 \end_inset
2375
2376  field.
2377  
2378 \end_layout
2379
2380 \begin_layout Standard
2381 Copiers are used by \SpecialChar LyX
2382  in various of its own conversions.
2383  For example, if appropriate programs are found, \SpecialChar LyX
2384  will automatically install
2385  copiers for the 
2386 \begin_inset Flex Noun
2387 status collapsed
2388
2389 \begin_layout Plain Layout
2390 HTML
2391 \end_layout
2392
2393 \end_inset
2394
2395  and 
2396 \begin_inset Flex Noun
2397 status collapsed
2398
2399 \begin_layout Plain Layout
2400 HTML
2401 \begin_inset space ~
2402 \end_inset
2403
2404 (MS Word)
2405 \end_layout
2406
2407 \end_inset
2408
2409  formats.
2410  When these formats are exported, the copier sees that not just the main
2411  HTML file but various associated files (style files, images, etc.) are also
2412  copied.
2413  All these files are written to a subdirectory of the directory in which
2414  the original \SpecialChar LyX
2415  file was found.
2416 \begin_inset Foot
2417 status collapsed
2418
2419 \begin_layout Plain Layout
2420 This copier can be customized.
2421  The optional 
2422 \begin_inset Quotes eld
2423 \end_inset
2424
2425 -e
2426 \begin_inset Quotes erd
2427 \end_inset
2428
2429  argument takes a comma-separated list of extensions to be copied; if it
2430  is omitted, all files will be copied.
2431  The 
2432 \begin_inset Quotes eld
2433 \end_inset
2434
2435 -t
2436 \begin_inset Quotes erd
2437 \end_inset
2438
2439  argument determines the extension added to the generated directory.
2440  By default, it is 
2441 \begin_inset Quotes eld
2442 \end_inset
2443
2444
2445 \begin_inset Flex Noun
2446 status collapsed
2447
2448 \begin_layout Plain Layout
2449 LyXconv
2450 \end_layout
2451
2452 \end_inset
2453
2454
2455 \begin_inset Quotes erd
2456 \end_inset
2457
2458 , so HTML generated from 
2459 \begin_inset Flex Noun
2460 status collapsed
2461
2462 \begin_layout Plain Layout
2463 /path/to/filename.lyx
2464 \end_layout
2465
2466 \end_inset
2467
2468  will end up in 
2469 \begin_inset Flex Noun
2470 status collapsed
2471
2472 \begin_layout Plain Layout
2473 /path/to/filename.html.LyXconv
2474 \end_layout
2475
2476 \end_inset
2477
2478 .
2479  
2480 \end_layout
2481
2482 \end_inset
2483
2484
2485 \end_layout
2486
2487 \begin_layout Section
2488 Converters
2489 \begin_inset CommandInset label
2490 LatexCommand label
2491 name "sec:Converters"
2492
2493 \end_inset
2494
2495
2496 \end_layout
2497
2498 \begin_layout Standard
2499 You can define your own Converters to convert files between different formats.
2500  This is done in the 
2501 \begin_inset Flex Noun
2502 status collapsed
2503
2504 \begin_layout Plain Layout
2505 Tools\SpecialChar menuseparator
2506 Preferences\SpecialChar menuseparator
2507 File Handling\SpecialChar menuseparator
2508 Converters
2509 \end_layout
2510
2511 \end_inset
2512
2513  dialog.
2514 \end_layout
2515
2516 \begin_layout Standard
2517 To define a new converter, select the 
2518 \begin_inset Flex Noun
2519 status collapsed
2520
2521 \begin_layout Plain Layout
2522 From
2523 \begin_inset space ~
2524 \end_inset
2525
2526 format
2527 \end_layout
2528
2529 \end_inset
2530
2531  and 
2532 \begin_inset Flex Noun
2533 status collapsed
2534
2535 \begin_layout Plain Layout
2536 To
2537 \begin_inset space ~
2538 \end_inset
2539
2540 format
2541 \end_layout
2542
2543 \end_inset
2544
2545  from the drop-down lists, enter the command needed for the conversion,
2546  and then press the 
2547 \begin_inset Flex Noun
2548 status collapsed
2549
2550 \begin_layout Plain Layout
2551 Add
2552 \end_layout
2553
2554 \end_inset
2555
2556  button.
2557  Several variables can be used in the definition of converters:
2558 \end_layout
2559
2560 \begin_layout Labeling
2561 \labelwidthstring 00.00.0000
2562 \begin_inset Flex Code
2563 status collapsed
2564
2565 \begin_layout Plain Layout
2566 $$s
2567 \end_layout
2568
2569 \end_inset
2570
2571  The \SpecialChar LyX
2572  system directory
2573 \end_layout
2574
2575 \begin_layout Labeling
2576 \labelwidthstring 00.00.0000
2577 \begin_inset Flex Code
2578 status collapsed
2579
2580 \begin_layout Plain Layout
2581 $$i
2582 \end_layout
2583
2584 \end_inset
2585
2586  The input file
2587 \end_layout
2588
2589 \begin_layout Labeling
2590 \labelwidthstring 00.00.0000
2591 \begin_inset Flex Code
2592 status collapsed
2593
2594 \begin_layout Plain Layout
2595 $$o
2596 \end_layout
2597
2598 \end_inset
2599
2600  The output file
2601 \end_layout
2602
2603 \begin_layout Labeling
2604 \labelwidthstring 00.00.0000
2605 \begin_inset Flex Code
2606 status collapsed
2607
2608 \begin_layout Plain Layout
2609 $$b
2610 \end_layout
2611
2612 \end_inset
2613
2614  The base filename of the input file (i.
2615 \begin_inset space \thinspace{}
2616 \end_inset
2617
2618 g., without the extension)
2619 \end_layout
2620
2621 \begin_layout Labeling
2622 \labelwidthstring 00.00.0000
2623 \begin_inset Flex Code
2624 status collapsed
2625
2626 \begin_layout Plain Layout
2627 $$p
2628 \end_layout
2629
2630 \end_inset
2631
2632  The path to the input file
2633 \end_layout
2634
2635 \begin_layout Labeling
2636 \labelwidthstring 00.00.0000
2637 \begin_inset Flex Code
2638 status collapsed
2639
2640 \begin_layout Plain Layout
2641 $$r
2642 \end_layout
2643
2644 \end_inset
2645
2646  The path to the original input file (this is different from $$p when a
2647  chain of converters is called)
2648 \end_layout
2649
2650 \begin_layout Labeling
2651 \labelwidthstring 00.00.0000
2652 \begin_inset Flex Code
2653 status collapsed
2654
2655 \begin_layout Plain Layout
2656 $$e
2657 \end_layout
2658
2659 \end_inset
2660
2661  The iconv name for the encoding of the document.
2662 \end_layout
2663
2664 \begin_layout Standard
2665 In the 
2666 \begin_inset Flex Noun
2667 status collapsed
2668
2669 \begin_layout Plain Layout
2670 Extra
2671 \begin_inset space ~
2672 \end_inset
2673
2674 Flag
2675 \end_layout
2676
2677 \end_inset
2678
2679  field you can enter the following flags, separated by commas:
2680 \end_layout
2681
2682 \begin_layout Labeling
2683 \labelwidthstring 00.00.0000
2684 \begin_inset Flex Code
2685 status collapsed
2686
2687 \begin_layout Plain Layout
2688 latex
2689 \change_inserted -712698321 1524656940
2690 =flavor
2691 \change_unchanged
2692
2693 \end_layout
2694
2695 \end_inset
2696
2697  This converter runs some form of \SpecialChar LaTeX
2698 .
2699  This will make \SpecialChar LyX
2700 's \SpecialChar LaTeX
2701  error logs available.
2702
2703 \change_inserted -712698321 1524657018
2704  The optional 
2705 \begin_inset Flex Code
2706 status open
2707
2708 \begin_layout Plain Layout
2709
2710 \change_inserted -712698321 1524657012
2711 flavor
2712 \change_unchanged
2713
2714 \end_layout
2715
2716 \end_inset
2717
2718  value specifies the form of \SpecialChar LaTeX
2719  that is run (
2720 \begin_inset Flex Code
2721 status open
2722
2723 \begin_layout Plain Layout
2724
2725 \change_inserted -712698321 1524657005
2726 latex, pdflatex, platex, xetex, luatex
2727 \change_unchanged
2728
2729 \end_layout
2730
2731 \end_inset
2732
2733 ).
2734  If no value is specified, 
2735 \begin_inset Flex Code
2736 status open
2737
2738 \begin_layout Plain Layout
2739
2740 \change_inserted -712698321 1524657018
2741 latex
2742 \change_unchanged
2743
2744 \end_layout
2745
2746 \end_inset
2747
2748  is used.
2749 \change_unchanged
2750
2751 \end_layout
2752
2753 \begin_layout Labeling
2754 \labelwidthstring 00.00.0000
2755 \begin_inset Flex Code
2756 status collapsed
2757
2758 \begin_layout Plain Layout
2759 needaux
2760 \change_inserted -712698321 1524656935
2761 =flavor
2762 \change_unchanged
2763
2764 \end_layout
2765
2766 \end_inset
2767
2768  Needs the \SpecialChar LaTeX
2769  
2770 \begin_inset Flex Noun
2771 status collapsed
2772
2773 \begin_layout Plain Layout
2774 .aux
2775 \end_layout
2776
2777 \end_inset
2778
2779  file for the conversion.
2780
2781 \change_inserted -712698321 1524657047
2782  The optional 
2783 \begin_inset Flex Code
2784 status open
2785
2786 \begin_layout Plain Layout
2787
2788 \change_inserted -712698321 1524657030
2789 flavor
2790 \change_unchanged
2791
2792 \end_layout
2793
2794 \end_inset
2795
2796  value specifies the form of \SpecialChar LaTeX
2797  that is run in order to generate the 
2798 \begin_inset Flex Noun
2799 status collapsed
2800
2801 \begin_layout Plain Layout
2802
2803 \change_inserted -712698321 1524657047
2804 .aux
2805 \change_unchanged
2806
2807 \end_layout
2808
2809 \end_inset
2810
2811  file (
2812 \begin_inset Flex Code
2813 status open
2814
2815 \begin_layout Plain Layout
2816
2817 \change_inserted -712698321 1524657030
2818 latex, pdflatex, platex, xetex, luatex
2819 \change_unchanged
2820
2821 \end_layout
2822
2823 \end_inset
2824
2825 ).
2826  If no value is specified, 
2827 \begin_inset Flex Code
2828 status open
2829
2830 \begin_layout Plain Layout
2831
2832 \change_inserted -712698321 1524657030
2833 latex
2834 \change_unchanged
2835
2836 \end_layout
2837
2838 \end_inset
2839
2840  is used.
2841 \change_unchanged
2842
2843 \end_layout
2844
2845 \begin_layout Labeling
2846 \labelwidthstring 00.00.0000
2847 \begin_inset Flex Code
2848 status collapsed
2849
2850 \begin_layout Plain Layout
2851 nice
2852 \end_layout
2853
2854 \end_inset
2855
2856  Needs a 
2857 \begin_inset Quotes eld
2858 \end_inset
2859
2860 nice
2861 \begin_inset Quotes erd
2862 \end_inset
2863
2864  file from the backend, which in practice means a \SpecialChar LaTeX
2865  file like the one we
2866  would export, without 
2867 \begin_inset Flex Code
2868 status collapsed
2869
2870 \begin_layout Plain Layout
2871 input@path
2872 \end_layout
2873
2874 \end_inset
2875
2876 .
2877 \end_layout
2878
2879 \begin_layout Labeling
2880 \labelwidthstring 00.00.0000
2881 \begin_inset Flex Code
2882 status collapsed
2883
2884 \begin_layout Plain Layout
2885 xml
2886 \end_layout
2887
2888 \end_inset
2889
2890  Output is XML.
2891 \end_layout
2892
2893 \begin_layout Standard
2894 The following three flags are not really flags at all because they take
2895  an argument in the 
2896 \begin_inset Flex Noun
2897 status collapsed
2898
2899 \begin_layout Plain Layout
2900 key
2901 \begin_inset space ~
2902 \end_inset
2903
2904 =
2905 \begin_inset space ~
2906 \end_inset
2907
2908 value
2909 \end_layout
2910
2911 \end_inset
2912
2913  format:
2914 \end_layout
2915
2916 \begin_layout Labeling
2917 \labelwidthstring 00.00.0000
2918
2919 \change_inserted -712698321 1523206314
2920 \begin_inset Flex Code
2921 status collapsed
2922
2923 \begin_layout Plain Layout
2924
2925 \change_inserted -712698321 1523206193
2926 hyperref-driver
2927 \change_unchanged
2928
2929 \end_layout
2930
2931 \end_inset
2932
2933  The name of the driver that needs to be loaded with the 
2934 \family sans
2935 hyperref
2936 \family default
2937  package for this converter.
2938  The loading of the correct driver is necessary to get some PDF-specific
2939  features.
2940  See the 
2941 \family sans
2942 hyperref
2943 \family default
2944  manual for details.
2945 \end_layout
2946
2947 \begin_layout Labeling
2948 \labelwidthstring 00.00.0000
2949 \begin_inset Flex Code
2950 status collapsed
2951
2952 \begin_layout Plain Layout
2953 parselog
2954 \end_layout
2955
2956 \end_inset
2957
2958  If set, the converter's standard error will be redirected to a file 
2959 \begin_inset Flex Code
2960 status collapsed
2961
2962 \begin_layout Plain Layout
2963 infile.out
2964 \end_layout
2965
2966 \end_inset
2967
2968 , and the script given as argument will be run as: 
2969 \begin_inset Flex Code
2970 status collapsed
2971
2972 \begin_layout Plain Layout
2973 script < infile.out > infile.log
2974 \end_layout
2975
2976 \end_inset
2977
2978 .
2979  The argument may contain 
2980 \begin_inset Flex Code
2981 status collapsed
2982
2983 \begin_layout Plain Layout
2984 $$s
2985 \end_layout
2986
2987 \end_inset
2988
2989 .
2990 \end_layout
2991
2992 \begin_layout Labeling
2993 \labelwidthstring 00.00.0000
2994 \begin_inset Flex Code
2995 status collapsed
2996
2997 \begin_layout Plain Layout
2998 resultdir
2999 \end_layout
3000
3001 \end_inset
3002
3003  The name of the directory in which the converter will dump the generated
3004  files.
3005  \SpecialChar LyX
3006  will not create this directory, and it does not copy anything into it,
3007  though it will copy this directory to the destination.
3008  The argument may contain 
3009 \begin_inset Flex Code
3010 status collapsed
3011
3012 \begin_layout Plain Layout
3013 $$b
3014 \end_layout
3015
3016 \end_inset
3017
3018 , which will be replaced by the base name of the input and output files,
3019  respectively, when the directory is copied.
3020 \begin_inset Newline newline
3021 \end_inset
3022
3023 Note that resultdir and usetempdir make no sense together.
3024  The latter will be ignored if the former is given.
3025 \end_layout
3026
3027 \begin_layout Labeling
3028 \labelwidthstring 00.00.0000
3029 \begin_inset Flex Code
3030 status collapsed
3031
3032 \begin_layout Plain Layout
3033 resultfile
3034 \end_layout
3035
3036 \end_inset
3037
3038  Determines the output file name and may, contain 
3039 \begin_inset Flex Code
3040 status collapsed
3041
3042 \begin_layout Plain Layout
3043 $$b
3044 \end_layout
3045
3046 \end_inset
3047
3048 .
3049  Sensible only with resultdir and optional even then; if not given, it defaults
3050  to `index'.
3051 \end_layout
3052
3053 \begin_layout Standard
3054
3055 \change_inserted -712698321 1523206384
3056 A suitable hyperref-driver is set for some converters that are installed
3057  with \SpecialChar LyX
3058 .
3059  
3060 \change_deleted -712698321 1523206388
3061 None of these
3062 \change_inserted -712698321 1523206389
3063 The
3064 \change_unchanged
3065  last three
3066 \change_inserted -712698321 1523206400
3067  flags, however,
3068 \change_unchanged
3069  are presently 
3070 \change_inserted -712698321 1523206407
3071 not 
3072 \change_unchanged
3073 used in any of the 
3074 \change_inserted -712698321 1523206437
3075 pre-installed 
3076 \change_unchanged
3077 converters
3078 \change_deleted -712698321 1523206442
3079  that are installed with \SpecialChar LyX
3080
3081 \change_unchanged
3082 .
3083  
3084 \end_layout
3085
3086 \begin_layout Standard
3087 You do not have to define converters for all formats between which you want
3088  to convert.
3089  For example, you will note that there is no `\SpecialChar LyX
3090  to PostScript' converter,
3091  but \SpecialChar LyX
3092  will export PostScript.
3093  It does so by first creating a \SpecialChar LaTeX
3094  file (no converter needs to be defined
3095  for this) which is then converted to DVI using the `\SpecialChar LaTeX
3096  to DVI' converter,
3097  and finally converting the resulting DVI file to PostScript.
3098  \SpecialChar LyX
3099  finds such `chains' of converters automatically, and it will always choose
3100  the shortest possible chain.
3101  You can, though, still define multiple conversion methods between file
3102  formats.
3103  For example, the standard \SpecialChar LyX
3104  configuration provides five ways to convert
3105  \SpecialChar LaTeX
3106  to PDF:
3107 \end_layout
3108
3109 \begin_layout Enumerate
3110 Directly, using 
3111 \begin_inset Flex Noun
3112 status collapsed
3113
3114 \begin_layout Plain Layout
3115 pdflatex
3116 \end_layout
3117
3118 \end_inset
3119
3120
3121 \end_layout
3122
3123 \begin_layout Enumerate
3124 via (DVI and) PostScript, using 
3125 \begin_inset Flex Noun
3126 status collapsed
3127
3128 \begin_layout Plain Layout
3129 ps2pdf
3130 \end_layout
3131
3132 \end_inset
3133
3134
3135 \end_layout
3136
3137 \begin_layout Enumerate
3138 via DVI, using 
3139 \begin_inset Flex Noun
3140 status collapsed
3141
3142 \begin_layout Plain Layout
3143 dvipdfm
3144 \end_layout
3145
3146 \end_inset
3147
3148
3149 \end_layout
3150
3151 \begin_layout Enumerate
3152 directly using 
3153 \begin_inset Flex Noun
3154 status collapsed
3155
3156 \begin_layout Plain Layout
3157 Xe\SpecialChar TeX
3158
3159 \end_layout
3160
3161 \end_inset
3162
3163
3164 \end_layout
3165
3166 \begin_layout Enumerate
3167 directly using 
3168 \begin_inset Flex Noun
3169 status collapsed
3170
3171 \begin_layout Plain Layout
3172 Lua\SpecialChar TeX
3173
3174 \end_layout
3175
3176 \end_inset
3177
3178
3179 \end_layout
3180
3181 \begin_layout Standard
3182 To define such alternate chains, you must define multiple target `file formats',
3183  as described in 
3184 \begin_inset CommandInset ref
3185 LatexCommand ref
3186 reference "sec:Formats"
3187
3188 \end_inset
3189
3190 .
3191  For example, in the standard configuration, the formats named 
3192 \begin_inset Flex Noun
3193 status collapsed
3194
3195 \begin_layout Plain Layout
3196 pdf
3197 \end_layout
3198
3199 \end_inset
3200
3201  (for 
3202 \begin_inset Flex Noun
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206 ps2pdf
3207 \end_layout
3208
3209 \end_inset
3210
3211 ), 
3212 \begin_inset Flex Noun
3213 status collapsed
3214
3215 \begin_layout Plain Layout
3216 pdf2
3217 \end_layout
3218
3219 \end_inset
3220
3221  (for 
3222 \begin_inset Flex Noun
3223 status collapsed
3224
3225 \begin_layout Plain Layout
3226 pdflatex
3227 \end_layout
3228
3229 \end_inset
3230
3231 ), 
3232 \begin_inset Flex Noun
3233 status collapsed
3234
3235 \begin_layout Plain Layout
3236 pdf3
3237 \end_layout
3238
3239 \end_inset
3240
3241  (for 
3242 \begin_inset Flex Noun
3243 status collapsed
3244
3245 \begin_layout Plain Layout
3246 dvipdfm
3247 \end_layout
3248
3249 \end_inset
3250
3251 ), 
3252 \begin_inset Flex Noun
3253 status collapsed
3254
3255 \begin_layout Plain Layout
3256 pdf4
3257 \end_layout
3258
3259 \end_inset
3260
3261  (for 
3262 \begin_inset Flex Noun
3263 status collapsed
3264
3265 \begin_layout Plain Layout
3266 Xe\SpecialChar TeX
3267
3268 \end_layout
3269
3270 \end_inset
3271
3272 ), and 
3273 \begin_inset Flex Noun
3274 status collapsed
3275
3276 \begin_layout Plain Layout
3277 pdf5
3278 \end_layout
3279
3280 \end_inset
3281
3282  (for 
3283 \begin_inset Flex Noun
3284 status collapsed
3285
3286 \begin_layout Plain Layout
3287 Lua\SpecialChar TeX
3288
3289 \end_layout
3290
3291 \end_inset
3292
3293 ) are defined, all of which share the extension 
3294 \begin_inset Flex Noun
3295 status collapsed
3296
3297 \begin_layout Plain Layout
3298 .pdf
3299 \end_layout
3300
3301 \end_inset
3302
3303 , and which correspond to the conversion methods just mentioned.
3304 \end_layout
3305
3306 \begin_layout Chapter
3307 Internationalizing \SpecialChar LyX
3308
3309 \begin_inset CommandInset label
3310 LatexCommand label
3311 name "cha:Internationalizing-LyX"
3312
3313 \end_inset
3314
3315
3316 \end_layout
3317
3318 \begin_layout Standard
3319 \SpecialChar LyX
3320  supports using a translated interface.
3321  Last time we checked, \SpecialChar LyX
3322  provided text in thirty languages.
3323  The language of choice is called your 
3324 \emph on
3325 locale
3326 \emph default
3327 .
3328  (For further reading on locale settings, see also the documentation for
3329  locale that comes with your operating system.
3330  For Linux, the manual page for 
3331 \begin_inset Flex Code
3332 status collapsed
3333
3334 \begin_layout Plain Layout
3335 locale(5)
3336 \end_layout
3337
3338 \end_inset
3339
3340  could be a good place to start).
3341 \end_layout
3342
3343 \begin_layout Standard
3344 Notice that these translations will work, but do contain a few flaws.
3345  In particular, all dialogs have been designed with the English text in
3346  mind, which means that some of the translated text will be too large to
3347  fit within the space allocated.
3348  This is only a display problem and will not cause any harm.
3349  Also, you will find that some of the translations do not define shortcut
3350  keys for everything.
3351  Sometimes, there are simply not enough free letters to do it.
3352  Other times, the translator just hasn't got around to doing it yet.
3353  Our localization team, which you may wish to join,
3354 \begin_inset Foot
3355 status collapsed
3356
3357 \begin_layout Plain Layout
3358 If you are a fluent speaker of a language other than English, joining these
3359  teams is a great way to give back to the \SpecialChar LyX
3360  community!
3361 \end_layout
3362
3363 \end_inset
3364
3365  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3366 .
3367 \end_layout
3368
3369 \begin_layout Section
3370 Translating \SpecialChar LyX
3371
3372 \end_layout
3373
3374 \begin_layout Subsection
3375 Translating the graphical user interface (text messages).
3376 \end_layout
3377
3378 \begin_layout Standard
3379 \SpecialChar LyX
3380  uses the GNU 
3381 \begin_inset Flex Code
3382 status collapsed
3383
3384 \begin_layout Plain Layout
3385 gettext
3386 \end_layout
3387
3388 \end_inset
3389
3390  library to handle the internationalization of the interface.
3391  To have \SpecialChar LyX
3392  speak your favorite language in all menus and dialogs, you need
3393  a 
3394 \begin_inset Flex Code
3395 status collapsed
3396
3397 \begin_layout Plain Layout
3398 po
3399 \end_layout
3400
3401 \end_inset
3402
3403 -file for that language.
3404  When this is available, you'll have to generate a 
3405 \begin_inset Flex Code
3406 status collapsed
3407
3408 \begin_layout Plain Layout
3409 mo
3410 \end_layout
3411
3412 \end_inset
3413
3414 -file from it and install the 
3415 \begin_inset Flex Code
3416 status collapsed
3417
3418 \begin_layout Plain Layout
3419 mo
3420 \end_layout
3421
3422 \end_inset
3423
3424 -file.
3425  The process of doing all of this is explained in the documentation for
3426  GNU 
3427 \begin_inset Flex Code
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431 gettext
3432 \end_layout
3433
3434 \end_inset
3435
3436 .
3437  It is possible to do this just for yourself, but if you're going to do
3438  it, you might as well share the results of your labors with the rest of
3439  the \SpecialChar LyX
3440  community.
3441  Send a message to the \SpecialChar LyX
3442  developers' list for more information about how
3443  to proceed.
3444 \end_layout
3445
3446 \begin_layout Standard
3447 In short, this is what you should do (xx denotes the language code):
3448 \end_layout
3449
3450 \begin_layout Itemize
3451 Check out the \SpecialChar LyX
3452  source code.
3453  (See the 
3454 \begin_inset CommandInset href
3455 LatexCommand href
3456 name "information on the web"
3457 target "https://www.lyx.org/HowToUseGIT"
3458 literal "false"
3459
3460 \end_inset
3461
3462 .)
3463 \end_layout
3464
3465 \begin_layout Itemize
3466 Copy the file 
3467 \begin_inset Flex Code
3468 status collapsed
3469
3470 \begin_layout Plain Layout
3471 lyx.pot
3472 \end_layout
3473
3474 \end_inset
3475
3476  to the folder of the 
3477 \begin_inset Flex Code
3478 status collapsed
3479
3480 \begin_layout Plain Layout
3481 **.po
3482 \end_layout
3483
3484 \end_inset
3485
3486  files.
3487  Then rename it to 
3488 \begin_inset Flex Code
3489 status collapsed
3490
3491 \begin_layout Plain Layout
3492 xx.po
3493 \end_layout
3494
3495 \end_inset
3496
3497 .
3498  (If 
3499 \begin_inset Flex Code
3500 status collapsed
3501
3502 \begin_layout Plain Layout
3503 lyx.pot
3504 \end_layout
3505
3506 \end_inset
3507
3508  doesn't exist anywhere, it can be remade with the console command 
3509 \begin_inset Flex Code
3510 status collapsed
3511
3512 \begin_layout Plain Layout
3513 make lyx.pot
3514 \end_layout
3515
3516 \end_inset
3517
3518  in that directory, or you can use an existing po-file for some other language
3519  as a template).
3520 \end_layout
3521
3522 \begin_layout Itemize
3523 Edit 
3524 \begin_inset Flex Code
3525 status collapsed
3526
3527 \begin_layout Plain Layout
3528 xx.po
3529 \end_layout
3530
3531 \end_inset
3532
3533 .
3534 \begin_inset Foot
3535 status collapsed
3536
3537 \begin_layout Plain Layout
3538 This is just a text file, so it can be edited in any text editor.
3539  But there are also specialized programs that support such editing, such
3540  as 
3541 \family typewriter
3542 Poedit
3543 \family default
3544  (for all platforms) or 
3545 \family typewriter
3546 KBabel
3547 \family default
3548  (for KDE).
3549  
3550 \family typewriter
3551 Emacs
3552 \family default
3553  contains a `mode' for editing 
3554 \begin_inset Flex Code
3555 status collapsed
3556
3557 \begin_layout Plain Layout
3558 po
3559 \end_layout
3560
3561 \end_inset
3562
3563  files, as well, see 
3564 \begin_inset Flex URL
3565 status open
3566
3567 \begin_layout Plain Layout
3568
3569 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3570 \end_layout
3571
3572 \end_inset
3573
3574 .
3575 \end_layout
3576
3577 \end_inset
3578
3579  For some menu- and widget-labels, there are also shortcut keys that should
3580  be translated.
3581  Those keys are marked after a `|', and should be translated according to
3582  the words and phrases of the language.
3583  You should also fill also out the information at the beginning of the new
3584  
3585 \begin_inset Flex Code
3586 status collapsed
3587
3588 \begin_layout Plain Layout
3589 po
3590 \end_layout
3591
3592 \end_inset
3593
3594 -file with your email-address, etc., so people know where to reach you with
3595  suggestions and entertaining flames.
3596 \end_layout
3597
3598 \begin_layout Standard
3599 If you are just doing this on your own, then:
3600 \end_layout
3601
3602 \begin_layout Itemize
3603 Generate 
3604 \begin_inset Flex Code
3605 status collapsed
3606
3607 \begin_layout Plain Layout
3608 xx.mo
3609 \end_layout
3610
3611 \end_inset
3612
3613 .
3614  This can be done with 
3615 \begin_inset Flex Code
3616 status collapsed
3617
3618 \begin_layout Plain Layout
3619 msgfmt -o xx.mo < xx.po
3620 \end_layout
3621
3622 \end_inset
3623
3624 .
3625 \end_layout
3626
3627 \begin_layout Itemize
3628 Copy the 
3629 \begin_inset Flex Code
3630 status collapsed
3631
3632 \begin_layout Plain Layout
3633 mo
3634 \end_layout
3635
3636 \end_inset
3637
3638 -file to your locale-tree, at the correct directory for application messages
3639  for the language
3640 \series bold
3641  
3642 \series default
3643 xx, and under the name 
3644 \begin_inset Flex Code
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 lyx.mo
3649 \end_layout
3650
3651 \end_inset
3652
3653  (e.
3654 \begin_inset space \thinspace{}
3655 \end_inset
3656
3657 g.
3658 \begin_inset space \space{}
3659 \end_inset
3660
3661
3662 \begin_inset Flex Code
3663 status collapsed
3664
3665 \begin_layout Plain Layout
3666 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3667 \end_layout
3668
3669 \end_inset
3670
3671
3672 \series bold
3673 .
3674 \end_layout
3675
3676 \begin_layout Standard
3677 As said, however, it would be best if the new 
3678 \begin_inset Flex Code
3679 status collapsed
3680
3681 \begin_layout Plain Layout
3682 po
3683 \end_layout
3684
3685 \end_inset
3686
3687  file could be added to the \SpecialChar LyX
3688  distribution, so others can use it.
3689  Adding it involves making additional changes to \SpecialChar LyX
3690 .
3691  So send an email to the developers' mailing list if you're interested in
3692  doing that.
3693 \end_layout
3694
3695 \begin_layout Subsubsection
3696 Ambiguous messages
3697 \end_layout
3698
3699 \begin_layout Standard
3700 Sometimes it turns out that one English message needs to be translated into
3701  different messages in the target language.
3702  One example is the message 
3703 \begin_inset Flex Code
3704 status collapsed
3705
3706 \begin_layout Plain Layout
3707 To
3708 \end_layout
3709
3710 \end_inset
3711
3712  which has the German translation 
3713 \lang german
3714 Nach
3715 \lang english
3716  or 
3717 \lang german
3718 Bis
3719 \lang english
3720 , depending upon exactly what the English 
3721 \begin_inset Quotes eld
3722 \end_inset
3723
3724 to
3725 \begin_inset Quotes erd
3726 \end_inset
3727
3728  means.
3729  GNU 
3730 \begin_inset Flex Code
3731 status collapsed
3732
3733 \begin_layout Plain Layout
3734 gettext
3735 \end_layout
3736
3737 \end_inset
3738
3739  does not handle such ambiguous translations.
3740  Therefore you have to add some context information to the message: Instead
3741  of 
3742 \begin_inset Flex Code
3743 status collapsed
3744
3745 \begin_layout Plain Layout
3746 To
3747 \end_layout
3748
3749 \end_inset
3750
3751  it becomes 
3752 \begin_inset Flex Code
3753 status collapsed
3754
3755 \begin_layout Plain Layout
3756 To[[as in 'From format x to format y']]
3757 \end_layout
3758
3759 \end_inset
3760
3761  and 
3762 \begin_inset Flex Code
3763 status collapsed
3764
3765 \begin_layout Plain Layout
3766 To[[as in 'From page x to page y']].
3767 \end_layout
3768
3769 \end_inset
3770
3771  Now the two occurrences of 
3772 \begin_inset Flex Code
3773 status collapsed
3774
3775 \begin_layout Plain Layout
3776 To
3777 \end_layout
3778
3779 \end_inset
3780
3781  are different for 
3782 \begin_inset Flex Code
3783 status collapsed
3784
3785 \begin_layout Plain Layout
3786 gettext
3787 \end_layout
3788
3789 \end_inset
3790
3791  and can be translated correctly to 
3792 \lang german
3793 Nach
3794 \lang english
3795  and 
3796 \lang german
3797 Bis
3798 \lang english
3799 , respectively.
3800 \end_layout
3801
3802 \begin_layout Standard
3803 Of course the context information needs to be stripped off the original
3804  message when no translation is used.
3805  Therefore you have to put it in double square brackets at the end of the
3806  message (see the example above).
3807  The translation mechanism of \SpecialChar LyX
3808  ensures that everything in double square
3809  brackets at the end of messages is removed before displaying the message.
3810 \end_layout
3811
3812 \begin_layout Subsection
3813 Translating the documentation.
3814 \end_layout
3815
3816 \begin_layout Standard
3817 The online documentation (in the 
3818 \begin_inset Flex Noun
3819 status collapsed
3820
3821 \begin_layout Plain Layout
3822 Help
3823 \end_layout
3824
3825 \end_inset
3826
3827 -menu) can (and should!) be translated.
3828  If there are translated versions of the documentation available
3829 \begin_inset Foot
3830 status collapsed
3831
3832 \begin_layout Plain Layout
3833 As of March 2008, at least some of the documents have been translated into
3834  fourteen languages, with the Tutorial available in a few more.
3835 \end_layout
3836
3837 \end_inset
3838
3839  and the locale is set accordingly, these will be used automagically by
3840  \SpecialChar LyX
3841 .
3842  \SpecialChar LyX
3843  looks for translated versions as 
3844 \begin_inset Flex Code
3845 status collapsed
3846
3847 \begin_layout Plain Layout
3848 LyXDir/doc/xx/DocName.lyx
3849 \end_layout
3850
3851 \end_inset
3852
3853 , where 
3854 \begin_inset Flex Code
3855 status collapsed
3856
3857 \begin_layout Plain Layout
3858 xx
3859 \end_layout
3860
3861 \end_inset
3862
3863  is the code for the language currently in use.
3864  If there are no translated documents, the default English versions will
3865  be displayed.
3866  Note that the translated versions must have the same filenames (
3867 \begin_inset Flex Code
3868 status collapsed
3869
3870 \begin_layout Plain Layout
3871 DocName
3872 \end_layout
3873
3874 \end_inset
3875
3876  above) as the original.
3877  If you feel up to translating the documentation (an excellent way to proof-read
3878  the original documentation by the way!), there are a few things you should
3879  do right away:
3880 \end_layout
3881
3882 \begin_layout Itemize
3883 Check out the documentation translation web page at 
3884 \begin_inset CommandInset href
3885 LatexCommand href
3886 name "https://www.lyx.org/Translation"
3887 target "https://www.lyx.org/Translation"
3888 literal "false"
3889
3890 \end_inset
3891
3892 .
3893  That way, you can find out which (if any) documents have already been translate
3894 d into your language.
3895  You can also find out who (if anyone) is organizing the effort to translate
3896  the documentation into your language.
3897  If no one is organizing the effort, please let us know that you're interested.
3898 \end_layout
3899
3900 \begin_layout Standard
3901 Once you get to actually translating, here's a few hints for you that may
3902  save you trouble:
3903 \end_layout
3904
3905 \begin_layout Itemize
3906 Join the documentation team! There is information on how to do that in 
3907 \begin_inset Flex Code
3908 status collapsed
3909
3910 \begin_layout Plain Layout
3911 Intro.lyx
3912 \end_layout
3913
3914 \end_inset
3915
3916  (
3917 \begin_inset Flex Noun
3918 status collapsed
3919
3920 \begin_layout Plain Layout
3921 Help\SpecialChar menuseparator
3922 Introduction
3923 \end_layout
3924
3925 \end_inset
3926
3927 ), which by the way is the first document you should translate.
3928 \end_layout
3929
3930 \begin_layout Itemize
3931 Learn the typographic conventions for the language you are translating to.
3932  Typography is an ancient art and over the centuries, a great variety of
3933  conventions have developed throughout different parts of the world.
3934  Also study the professional terminology amongst typographers in your country.
3935  Inventing your own terminology will only confuse the users.
3936  
3937 \emph on
3938 (Warning! Typography is addictive!)
3939 \end_layout
3940
3941 \begin_layout Itemize
3942 Make a copy of the document.
3943  This will be your working copy.
3944  You can use this as your personal translated help-file by placing it in
3945  your 
3946 \begin_inset Flex Code
3947 status collapsed
3948
3949 \begin_layout Plain Layout
3950 UserDir/doc/xx/
3951 \end_layout
3952
3953 \end_inset
3954
3955  directory.
3956 \begin_inset Note Greyedout
3957 status open
3958
3959 \begin_layout Plain Layout
3960
3961 \series bold
3962 Note:
3963 \series default
3964  For a complex document with external material (images, etc.), if you make
3965  a copy e.
3966 \begin_inset space \thinspace{}
3967 \end_inset
3968
3969 g.
3970 \begin_inset space \space{}
3971 \end_inset
3972
3973 in a temp dir, beware that the links to external material may be broken
3974  when the document is moved to a different place.
3975  The best way is to retrieve the \SpecialChar LyX
3976  tree from git (see 
3977 \begin_inset Flex URL
3978 status collapsed
3979
3980 \begin_layout Plain Layout
3981
3982 https://www.lyx.org/HowToUseGIT
3983 \end_layout
3984
3985 \end_inset
3986
3987 ) and to edit the doc file in place.
3988 \end_layout
3989
3990 \end_inset
3991
3992
3993 \end_layout
3994
3995 \begin_layout Itemize
3996 Sometimes the original document (from the \SpecialChar LyX
3997  team) will be updated.
3998  Use the source viewer at 
3999 \begin_inset CommandInset href
4000 LatexCommand href
4001 name "https://www.lyx.org/trac/timeline"
4002 target "https://www.lyx.org/trac/timeline"
4003 literal "false"
4004
4005 \end_inset
4006
4007  to see what has been changed.
4008  That way you can easily see which parts of the translated document need
4009  to be updated.
4010 \end_layout
4011
4012 \begin_layout Standard
4013 If you ever find an error in the original document, fix it and notify the
4014  rest of the documentation team of the changes! (You didn't forget to join
4015  the documentation team, did you?)
4016 \end_layout
4017
4018 \begin_layout Standard
4019 \begin_inset Branch OutDated
4020 inverted 0
4021 status collapsed
4022
4023 \begin_layout Section
4024 International Keyboard Support
4025 \end_layout
4026
4027 \begin_layout Standard
4028
4029 \emph on
4030 [Editor's Note: The following section is by
4031 \emph default
4032  
4033 \shape smallcaps
4034 \emph on
4035 Ivan Schreter
4036 \shape default
4037 .
4038  It needs to be fixed to conform to the new Documentation Style sheet and
4039  to make use of the new v1.0 features.
4040  The whole thing also needs to be merged with the section following it.-jw
4041  It may also be badly out of date.-rh (2008)]
4042 \end_layout
4043
4044 \begin_layout Subsection
4045 Defining Own Keymaps: Keymap File Format
4046 \end_layout
4047
4048 \begin_layout Standard
4049 Let's look at a keyboard definition file a little closer.
4050  It is a plain text file defining
4051 \end_layout
4052
4053 \begin_layout Itemize
4054 key-to-key or key-to-string translations
4055 \end_layout
4056
4057 \begin_layout Itemize
4058 dead keys
4059 \end_layout
4060
4061 \begin_layout Itemize
4062 dead keys exceptions
4063 \end_layout
4064
4065 \begin_layout Standard
4066 To define key-to-key or key-to-string translation, use this command:
4067 \end_layout
4068
4069 \begin_layout Quotation
4070 \begin_inset Flex Code
4071 status collapsed
4072
4073 \begin_layout Plain Layout
4074
4075 \backslash
4076 kmap
4077 \end_layout
4078
4079 \end_inset
4080
4081  
4082 \begin_inset Flex Code
4083 status collapsed
4084
4085 \begin_layout Plain Layout
4086 key
4087 \end_layout
4088
4089 \end_inset
4090
4091  outstring 
4092 \end_layout
4093
4094 \begin_layout Standard
4095 where 
4096 \begin_inset Flex Code
4097 status collapsed
4098
4099 \begin_layout Plain Layout
4100 key
4101 \end_layout
4102
4103 \end_inset
4104
4105  is the key to be translated and 
4106 \begin_inset Flex Code
4107 status collapsed
4108
4109 \begin_layout Plain Layout
4110 outstring
4111 \end_layout
4112
4113 \end_inset
4114
4115  is the string to be inserted into the document.
4116  To define dead keys, use:
4117 \end_layout
4118
4119 \begin_layout Quotation
4120 \begin_inset Flex Code
4121 status collapsed
4122
4123 \begin_layout Plain Layout
4124
4125 \backslash
4126 kmod
4127 \end_layout
4128
4129 \end_inset
4130
4131  
4132 \begin_inset Flex Code
4133 status collapsed
4134
4135 \begin_layout Plain Layout
4136 key
4137 \end_layout
4138
4139 \end_inset
4140
4141  deadkey
4142 \end_layout
4143
4144 \begin_layout Standard
4145 where 
4146 \begin_inset Flex Code
4147 status collapsed
4148
4149 \begin_layout Plain Layout
4150 key
4151 \end_layout
4152
4153 \end_inset
4154
4155  is a keyboard key and 
4156 \begin_inset Flex Code
4157 status collapsed
4158
4159 \begin_layout Plain Layout
4160 deadkey
4161 \end_layout
4162
4163 \end_inset
4164
4165  is dead key name.
4166  The following dead keys are supported (shortcut name is in parentheses):
4167 \end_layout
4168
4169 \begin_layout Quotation
4170
4171 \emph on
4172 Name
4173 \begin_inset space \hfill{}
4174 \end_inset
4175
4176 Example
4177 \end_layout
4178
4179 \begin_layout Quotation
4180 acute (acu)
4181 \begin_inset space \hfill{}
4182 \end_inset
4183
4184 áéíóú
4185 \end_layout
4186
4187 \begin_layout Quotation
4188 grave (gra)
4189 \begin_inset space \hfill{}
4190 \end_inset
4191
4192 àèìòù
4193 \end_layout
4194
4195 \begin_layout Quotation
4196 macron (mac)
4197 \begin_inset space \hfill{}
4198 \end_inset
4199
4200  ō
4201 \end_layout
4202
4203 \begin_layout Quotation
4204 tilde (til)
4205 \begin_inset space \hfill{}
4206 \end_inset
4207
4208 ñÑ
4209 \end_layout
4210
4211 \begin_layout Quotation
4212 underbar (underb)
4213 \begin_inset space \hfill{}
4214 \end_inset
4215
4216
4217 \begin_inset ERT
4218 status open
4219
4220 \begin_layout Plain Layout
4221
4222
4223 \backslash
4224 b o
4225 \end_layout
4226
4227 \end_inset
4228
4229
4230 \end_layout
4231
4232 \begin_layout Quotation
4233 cedilla (ced)
4234 \begin_inset space \hfill{}
4235 \end_inset
4236
4237 çÇ
4238 \end_layout
4239
4240 \begin_layout Quotation
4241 underdot (underd)
4242 \begin_inset space \hfill{}
4243 \end_inset
4244
4245
4246 \begin_inset ERT
4247 status open
4248
4249 \begin_layout Plain Layout
4250
4251
4252 \backslash
4253 d o
4254 \end_layout
4255
4256 \end_inset
4257
4258
4259 \end_layout
4260
4261 \begin_layout Quotation
4262 circumflex (circu)
4263 \begin_inset space \hfill{}
4264 \end_inset
4265
4266 âêîôû
4267 \end_layout
4268
4269 \begin_layout Quotation
4270 circle (circl)
4271 \begin_inset space \hfill{}
4272 \end_inset
4273
4274 ÅůŮ
4275 \end_layout
4276
4277 \begin_layout Quotation
4278 tie (tie)
4279 \begin_inset space \hfill{}
4280 \end_inset
4281
4282
4283 \begin_inset ERT
4284 status open
4285
4286 \begin_layout Plain Layout
4287
4288
4289 \backslash
4290 t o
4291 \end_layout
4292
4293 \end_inset
4294
4295
4296 \end_layout
4297
4298 \begin_layout Quotation
4299 breve (bre)
4300 \begin_inset space \hfill{}
4301 \end_inset
4302
4303 ă
4304 \begin_inset ERT
4305 status open
4306
4307 \begin_layout Plain Layout
4308
4309
4310 \backslash
4311 u o
4312 \end_layout
4313
4314 \end_inset
4315
4316
4317 \end_layout
4318
4319 \begin_layout Quotation
4320 caron (car)
4321 \begin_inset space \hfill{}
4322 \end_inset
4323
4324 čšž
4325 \end_layout
4326
4327 \begin_layout Quotation
4328 hungarian umlaut (hug)
4329 \begin_inset space \hfill{}
4330 \end_inset
4331
4332 őű
4333 \end_layout
4334
4335 \begin_layout Quotation
4336 umlaut (uml)
4337 \begin_inset space \hfill{}
4338 \end_inset
4339
4340 äöü
4341 \end_layout
4342
4343 \begin_layout Quotation
4344 dot (dot)
4345 \begin_inset space \hfill{}
4346 \end_inset
4347
4348 ż
4349 \begin_inset ERT
4350 status open
4351
4352 \begin_layout Plain Layout
4353
4354
4355 \backslash
4356 .s
4357 \end_layout
4358
4359 \end_inset
4360
4361
4362 \end_layout
4363
4364 \begin_layout Standard
4365 Since in many international keyboards there are exceptions to what some
4366  dead keys should do, you can define them using
4367 \end_layout
4368
4369 \begin_layout Quotation
4370 \begin_inset Flex Code
4371 status collapsed
4372
4373 \begin_layout Plain Layout
4374
4375 \backslash
4376 kxmod
4377 \end_layout
4378
4379 \end_inset
4380
4381  deadkey key outstring
4382 \end_layout
4383
4384 \begin_layout Standard
4385 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4386 , so you put in
4387 \end_layout
4388
4389 \begin_layout Quotation
4390 \begin_inset Flex Code
4391 status collapsed
4392
4393 \begin_layout Plain Layout
4394
4395 \backslash
4396 kxmod
4397 \end_layout
4398
4399 \end_inset
4400
4401  caron o "
4402 \backslash
4403 ^o"
4404 \end_layout
4405
4406 \begin_layout Standard
4407 to make it work correctly.
4408  Also, you have to define as exceptions dead keys over i and j, to remove
4409  the dot from them before inserting an accent mark.
4410  I will change this when the time comes, but so far I haven't had time.
4411 \end_layout
4412
4413 \begin_layout Standard
4414 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4415  double backslash.
4416  Also, quotes and 
4417 \begin_inset Flex Code
4418 status collapsed
4419
4420 \begin_layout Plain Layout
4421 #
4422 \end_layout
4423
4424 \end_inset
4425
4426  have different meaning.
4427  
4428 \begin_inset Flex Code
4429 status collapsed
4430
4431 \begin_layout Plain Layout
4432 #
4433 \end_layout
4434
4435 \end_inset
4436
4437  marks comments, quotes start and end \SpecialChar LaTeX
4438 -style commands.
4439  To enter quote, you'll need to use 
4440 \begin_inset Flex Code
4441 status collapsed
4442
4443 \begin_layout Plain Layout
4444
4445 \backslash
4446 "
4447 \end_layout
4448
4449 \end_inset
4450
4451 , to enter 
4452 \begin_inset Flex Code
4453 status collapsed
4454
4455 \begin_layout Plain Layout
4456 #
4457 \end_layout
4458
4459 \end_inset
4460
4461 , use 
4462 \begin_inset Flex Code
4463 status collapsed
4464
4465 \begin_layout Plain Layout
4466
4467 \backslash
4468 #
4469 \end_layout
4470
4471 \end_inset
4472
4473 .
4474 \end_layout
4475
4476 \begin_layout Standard
4477 If you make a keyboard description file that works for your language, please
4478  mail it to me, so I can include it in the next keymap distribution.
4479 \end_layout
4480
4481 \begin_layout Standard
4482 More keywords will be supported in keymap configuration file in future,
4483  like
4484 \end_layout
4485
4486 \begin_layout Itemize
4487 \begin_inset Flex Code
4488 status collapsed
4489
4490 \begin_layout Plain Layout
4491
4492 \backslash
4493 kinclude filename
4494 \end_layout
4495
4496 \end_inset
4497
4498
4499 \emph on
4500
4501 \begin_inset space \hfill{}
4502 \end_inset
4503
4504
4505 \begin_inset Flex Code
4506 status collapsed
4507
4508 \begin_layout Plain Layout
4509 include
4510 \end_layout
4511
4512 \end_inset
4513
4514  another file
4515 \end_layout
4516
4517 \begin_layout Itemize
4518 \begin_inset Flex Code
4519 status collapsed
4520
4521 \begin_layout Plain Layout
4522
4523 \backslash
4524 kprog program
4525 \end_layout
4526
4527 \end_inset
4528
4529
4530 \emph on
4531
4532 \begin_inset space \hfill{}
4533 \end_inset
4534
4535
4536 \begin_inset Flex Code
4537 status collapsed
4538
4539 \begin_layout Plain Layout
4540 define
4541 \end_layout
4542
4543 \end_inset
4544
4545  an external keymap translation program 
4546 \end_layout
4547
4548 \begin_layout Standard
4549 Also, it should look into 
4550 \begin_inset Flex Code
4551 status collapsed
4552
4553 \begin_layout Plain Layout
4554 lyxrc
4555 \end_layout
4556
4557 \end_inset
4558
4559  file for defaults, too (for example, a 
4560 \begin_inset Flex Code
4561 status collapsed
4562
4563 \begin_layout Plain Layout
4564
4565 \backslash
4566 kinclude
4567 \end_layout
4568
4569 \end_inset
4570
4571  option to include default keyboard).
4572 \end_layout
4573
4574 \end_inset
4575
4576
4577 \end_layout
4578
4579 \begin_layout Section
4580 International Keymap Stuff
4581 \begin_inset CommandInset label
4582 LatexCommand label
4583 name "sec:International-Keymap-Stuff"
4584
4585 \end_inset
4586
4587
4588 \end_layout
4589
4590 \begin_layout Standard
4591 \begin_inset Note Note
4592 status open
4593
4594 \begin_layout Plain Layout
4595 In doing the revisions on this document in March 2008, I did not look over
4596  this stuff, as I do not understand it.
4597  It would be good if someone else could do so.
4598  (RH)
4599 \end_layout
4600
4601 \end_inset
4602
4603
4604 \end_layout
4605
4606 \begin_layout Standard
4607 The next two sections describe the 
4608 \begin_inset Flex Code
4609 status collapsed
4610
4611 \begin_layout Plain Layout
4612
4613 \shape up
4614 .kmap
4615 \end_layout
4616
4617 \end_inset
4618
4619  and 
4620 \begin_inset Flex Code
4621 status collapsed
4622
4623 \begin_layout Plain Layout
4624
4625 \shape up
4626 .cdef
4627 \end_layout
4628
4629 \end_inset
4630
4631  file syntax in detail.
4632  These sections should help you design your own key map if the ones provided
4633  do not meet your needs.
4634 \end_layout
4635
4636 \begin_layout Subsection
4637 The .kmap File
4638 \end_layout
4639
4640 \begin_layout Standard
4641
4642 \shape up
4643 .
4644 \begin_inset Flex Code
4645 status collapsed
4646
4647 \begin_layout Plain Layout
4648 kmap
4649 \end_layout
4650
4651 \end_inset
4652
4653  file maps keystrokes to characters or strings.
4654  As the name suggests, it sets a keyboard mapping.
4655  The 
4656 \begin_inset Flex Code
4657 status collapsed
4658
4659 \begin_layout Plain Layout
4660 .kmap
4661 \end_layout
4662
4663 \end_inset
4664
4665
4666 \shape default
4667  file keywords 
4668 \shape up
4669
4670 \begin_inset Flex Code
4671 status collapsed
4672
4673 \begin_layout Plain Layout
4674
4675 \shape up
4676 kmap
4677 \end_layout
4678
4679 \end_inset
4680
4681
4682 \shape default
4683 ,
4684 \shape up
4685  
4686 \shape default
4687
4688 \begin_inset Flex Code
4689 status collapsed
4690
4691 \begin_layout Plain Layout
4692
4693 \shape up
4694 kmod
4695 \end_layout
4696
4697 \end_inset
4698
4699 ,
4700 \shape up
4701  
4702 \shape default
4703
4704 \begin_inset Flex Code
4705 status collapsed
4706
4707 \begin_layout Plain Layout
4708
4709 \shape up
4710 kxmod
4711 \end_layout
4712
4713 \end_inset
4714
4715 , and 
4716 \begin_inset Flex Code
4717 status collapsed
4718
4719 \begin_layout Plain Layout
4720
4721 \shape up
4722 kcomb
4723 \end_layout
4724
4725 \end_inset
4726
4727  are described in this section.
4728 \end_layout
4729
4730 \begin_layout Labeling
4731 \labelwidthstring 00.00.0000
4732 \begin_inset Flex Code
4733 status collapsed
4734
4735 \begin_layout Plain Layout
4736
4737 \shape up
4738 kmap
4739 \end_layout
4740
4741 \end_inset
4742
4743  Map a character to a string
4744 \end_layout
4745
4746 \begin_layout LyX-Code
4747
4748 \backslash
4749 kmap 
4750 \family roman
4751 \emph on
4752 char
4753 \family default
4754 \emph default
4755  
4756 \family roman
4757 \emph on
4758 string
4759 \end_layout
4760
4761 \begin_layout Standard
4762 This will ma
4763 \family roman
4764 p
4765 \family default
4766  
4767 \family roman
4768 \emph on
4769 char
4770 \family default
4771 \emph default
4772  
4773 \family roman
4774 to
4775 \family default
4776  
4777 \family roman
4778 \emph on
4779 string
4780 \emph default
4781 .
4782  Note that in
4783 \family default
4784  
4785 \family roman
4786 \emph on
4787 string
4788 \emph default
4789 ,
4790 \family default
4791  
4792 \family roman
4793 \shape up
4794 the double-quote (")
4795 \family default
4796 \shape default
4797  
4798 \family roman
4799 and
4800 \family default
4801  
4802 \family roman
4803 \shape up
4804 the backslash (
4805 \backslash
4806 )
4807 \family default
4808 \shape default
4809  
4810 \family roman
4811 must be escaped with a preceding backslash (
4812 \shape up
4813
4814 \backslash
4815
4816 \shape default
4817 )
4818 \family default
4819 .
4820 \end_layout
4821
4822 \begin_layout Standard
4823 An example of a 
4824 \begin_inset Flex Noun
4825 status collapsed
4826
4827 \begin_layout Plain Layout
4828
4829 \shape up
4830 kmap
4831 \end_layout
4832
4833 \end_inset
4834
4835  statement to cause the symbol 
4836 \begin_inset Flex Noun
4837 status collapsed
4838
4839 \begin_layout Plain Layout
4840
4841 \shape up
4842 /
4843 \end_layout
4844
4845 \end_inset
4846
4847  to be output for the keystroke 
4848 \begin_inset Flex Noun
4849 status collapsed
4850
4851 \begin_layout Plain Layout
4852
4853 \shape up
4854 &
4855 \end_layout
4856
4857 \end_inset
4858
4859  is:
4860 \end_layout
4861
4862 \begin_layout LyX-Code
4863
4864 \backslash
4865 kmap & /
4866 \end_layout
4867
4868 \begin_layout Labeling
4869 \labelwidthstring 00.00.0000
4870 \begin_inset Flex Code
4871 status collapsed
4872
4873 \begin_layout Plain Layout
4874
4875 \shape up
4876 kmod
4877 \end_layout
4878
4879 \end_inset
4880
4881  Specify an accent character
4882 \end_layout
4883
4884 \begin_layout LyX-Code
4885
4886 \backslash
4887 kmod 
4888 \family roman
4889 \emph on
4890 char accent allowed
4891 \end_layout
4892
4893 \begin_layout Standard
4894 This will make the cha
4895 \family roman
4896 racter
4897 \family default
4898  
4899 \family roman
4900 \emph on
4901 char
4902 \family default
4903 \emph default
4904  
4905 \family roman
4906 \shape up
4907 \emph on
4908 be an accent
4909 \family default
4910 \shape default
4911 \emph default
4912  
4913 \family roman
4914 \shape up
4915 on the
4916 \family default
4917 \shape default
4918  
4919 \family roman
4920 \shape up
4921 \emph on
4922 allowed
4923 \family default
4924 \shape default
4925 \emph default
4926  
4927 \family roman
4928 \shape up
4929 cha
4930 \family default
4931 racter(s).
4932  This is the dead key
4933 \begin_inset Foot
4934 status collapsed
4935
4936 \begin_layout Plain Layout
4937 The term 
4938 \family roman
4939 \emph on
4940 dead key
4941 \family default
4942 \emph default
4943  refers to a key that does not produce a character by itself, but when followed
4944  with another key, produces the desired accent character.
4945  For example, a German characte
4946 \family roman
4947 r with an umlaut like
4948 \family default
4949  
4950 \family roman
4951 \emph on
4952 ä
4953 \family default
4954 \emph default
4955  
4956 \family roman
4957 can be produced in this manner.
4958 \end_layout
4959
4960 \end_inset
4961
4962  mechanism.
4963  
4964 \end_layout
4965
4966 \begin_layout Standard
4967 If you 
4968 \family roman
4969 hit
4970 \family default
4971  
4972 \family roman
4973 \emph on
4974 char
4975 \family default
4976 \emph default
4977  
4978 \family roman
4979 and then another key not in
4980 \family default
4981  
4982 \family roman
4983 \emph on
4984 allowed
4985 \emph default
4986 , you will get a
4987 \family default
4988  
4989 \family roman
4990 \emph on
4991 char
4992 \family default
4993 \emph default
4994  
4995 \family roman
4996 followed by the other, not allowed key, as output.
4997
4998 \family default
4999  Note that a 
5000 \begin_inset Flex Noun
5001 status collapsed
5002
5003 \begin_layout Plain Layout
5004
5005 \shape up
5006 Backspace
5007 \end_layout
5008
5009 \end_inset
5010
5011  cancels a dead key, so if 
5012 \family roman
5013 you hit
5014 \family default
5015  
5016 \family roman
5017 \emph on
5018 char
5019 \family default
5020 \emph default
5021  
5022 \begin_inset Flex Noun
5023 status collapsed
5024
5025 \begin_layout Plain Layout
5026
5027 \shape up
5028 \emph on
5029 Backspace
5030 \end_layout
5031
5032 \end_inset
5033
5034 , the cursor will not go one position backwards but will instead cancel
5035  the effect t
5036 \family roman
5037 hat
5038 \family default
5039  
5040 \family roman
5041 \shape up
5042 \emph on
5043 char
5044 \family default
5045 \shape default
5046 \emph default
5047  
5048 \family roman
5049 \shape up
5050 might have had on the next keystroke.
5051  
5052 \end_layout
5053
5054 \begin_layout Standard
5055 The following example specifies that the character ' is to be an acute accent,
5056  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
5057 \end_layout
5058
5059 \begin_layout LyX-Code
5060
5061 \backslash
5062 kmod ' acute aeiouAEIOU
5063 \end_layout
5064
5065 \begin_layout Labeling
5066 \labelwidthstring 00.00.0000
5067 \begin_inset Flex Code
5068 status collapsed
5069
5070 \begin_layout Plain Layout
5071 kxmod
5072 \end_layout
5073
5074 \end_inset
5075
5076  Specify an exception to the accent character
5077 \end_layout
5078
5079 \begin_layout LyX-Code
5080
5081 \backslash
5082 kxmod  
5083 \family roman
5084 \emph on
5085 accent char result
5086 \end_layout
5087
5088 \begin_layout Standard
5089 This defines an exce
5090 \family roman
5091 ption for
5092 \family default
5093  
5094 \family roman
5095 \emph on
5096 accent
5097 \family default
5098 \emph default
5099  
5100 \family roman
5101 on
5102 \family default
5103  
5104 \family roman
5105 \emph on
5106 char
5107 \emph default
5108 .
5109  T
5110 \shape up
5111 he
5112 \family default
5113 \shape default
5114  
5115 \family roman
5116 \shape up
5117 \emph on
5118 accent
5119 \family default
5120 \shape default
5121 \emph default
5122  
5123 \family roman
5124 \shape up
5125 must
5126 \family default
5127 \shape default
5128  
5129 \shape up
5130 have been assigned a keystroke with a previous
5131 \shape default
5132  
5133 \begin_inset Flex Code
5134 status collapsed
5135
5136 \begin_layout Plain Layout
5137
5138 \shape up
5139
5140 \backslash
5141 kmo
5142 \shape default
5143 d
5144 \end_layout
5145
5146 \end_inset
5147
5148  declar
5149 \family roman
5150 ation and
5151 \family default
5152  
5153 \family roman
5154 \emph on
5155 char
5156 \family default
5157 \emph default
5158  
5159 \family roman
5160 must not belong in the
5161 \family default
5162  
5163 \family roman
5164 \emph on
5165 allowed
5166 \family default
5167 \emph default
5168  
5169 \family roman
5170 set of
5171 \family default
5172  
5173 \family roman
5174 \emph on
5175 accent
5176 \emph default
5177 .
5178  When
5179 \family default
5180  
5181 \family roman
5182 \shape up
5183 you enter the
5184 \family default
5185 \shape default
5186  
5187 \family roman
5188 \shape up
5189 \emph on
5190 accent char
5191 \family default
5192 \shape default
5193 \emph default
5194  
5195 \family roman
5196 \shape up
5197 sequence,
5198 \family default
5199 \shape default
5200  
5201 \family roman
5202 \shape up
5203 \emph on
5204 result
5205 \emph default
5206  is produced.
5207  If such a declaration does not exist in
5208 \family default
5209 \shape default
5210  
5211 \shape up
5212 the
5213 \shape default
5214  
5215 \begin_inset Flex Code
5216 status collapsed
5217
5218 \begin_layout Plain Layout
5219
5220 \shape up
5221 .kmap
5222 \end_layout
5223
5224 \end_inset
5225
5226  file and yo
5227 \family roman
5228 u enter
5229 \family default
5230  
5231 \family roman
5232 \emph on
5233 accent char
5234 \emph default
5235 , you get
5236 \family default
5237  
5238 \family roman
5239 \emph on
5240 accent_key char
5241 \emph default
5242  where
5243 \family default
5244  
5245 \family roman
5246 \emph on
5247 accent_key
5248 \emph default
5249  is the first arg
5250 \family default
5251 ument of the 
5252 \begin_inset Flex Code
5253 status collapsed
5254
5255 \begin_layout Plain Layout
5256
5257 \shape up
5258
5259 \backslash
5260 kmod
5261 \end_layout
5262
5263 \end_inset
5264
5265  declaration.
5266  
5267 \end_layout
5268
5269 \begin_layout Standard
5270 The following command produces causes äi to be produced when you enter acute-i
5271  ('i):
5272 \end_layout
5273
5274 \begin_layout LyX-Code
5275
5276 \backslash
5277 kxmod acute i "
5278 \backslash
5279
5280 \backslash
5281 '{
5282 \backslash
5283
5284 \backslash
5285 i}"
5286 \end_layout
5287
5288 \begin_layout Labeling
5289 \labelwidthstring 00.00.0000
5290 \begin_inset Flex Code
5291 status collapsed
5292
5293 \begin_layout Plain Layout
5294 kcomb
5295 \end_layout
5296
5297 \end_inset
5298
5299  Combine two accent characters
5300 \end_layout
5301
5302 \begin_layout LyX-Code
5303
5304 \backslash
5305 kcomb 
5306 \family roman
5307 \emph on
5308 accent1 accent2 allowed
5309 \end_layout
5310
5311 \begin_layout Standard
5312 This one is getting pretty esoteric.
5313  It allows you to combine the effect 
5314 \family roman
5315 of
5316 \family default
5317  
5318 \family roman
5319 \emph on
5320 accent1
5321 \family default
5322 \emph default
5323  
5324 \family roman
5325 and
5326 \family default
5327  
5328 \family roman
5329 \emph on
5330 accent2
5331 \family default
5332 \emph default
5333  
5334 \family roman
5335 (in that order!) on
5336 \family default
5337  
5338 \family roman
5339 \emph on
5340 allowed
5341 \family default
5342 \emph default
5343  
5344 \family roman
5345 chars.
5346  The keystrokes for
5347 \family default
5348  
5349 \family roman
5350 \emph on
5351 accent1
5352 \family default
5353 \emph default
5354  
5355 \family roman
5356 and
5357 \family default
5358  
5359 \family roman
5360 \emph on
5361 accent2
5362 \family default
5363 \emph default
5364  
5365 \family roman
5366 must have be
5367 \family default
5368 en set with a 
5369 \begin_inset Flex Code
5370 status collapsed
5371
5372 \begin_layout Plain Layout
5373
5374 \shape up
5375
5376 \backslash
5377 kmod
5378 \end_layout
5379
5380 \end_inset
5381
5382  command at 
5383 \family roman
5384 a
5385 \family default
5386  
5387 \family roman
5388 \emph on
5389 previous
5390 \family default
5391 \emph default
5392  
5393 \family roman
5394 point in the
5395 \family default
5396  file.
5397  
5398 \end_layout
5399
5400 \begin_layout Standard
5401 Consider this example from the 
5402 \begin_inset Flex Code
5403 status collapsed
5404
5405 \begin_layout Plain Layout
5406
5407 \shape up
5408 greek.kmap
5409 \end_layout
5410
5411 \end_inset
5412
5413  file:
5414 \end_layout
5415
5416 \begin_layout LyX-Code
5417
5418 \backslash
5419 kmod ; acute aeioyvhAEIOYVH 
5420 \backslash
5421 kmod : umlaut iyIY 
5422 \backslash
5423 kcomb acute umlaut iyIY
5424 \end_layout
5425
5426 \begin_layout Standard
5427 This allows you to press 
5428 \begin_inset Flex Noun
5429 status collapsed
5430
5431 \begin_layout Plain Layout
5432
5433 \shape up
5434 ;:i
5435 \end_layout
5436
5437 \end_inset
5438
5439  and get the effect of 
5440 \begin_inset Flex Code
5441 status collapsed
5442
5443 \begin_layout Plain Layout
5444
5445 \shape up
5446
5447 \backslash
5448 '{
5449 \backslash
5450 "{i}}
5451 \end_layout
5452
5453 \end_inset
5454
5455 .
5456  
5457 \family roman
5458 \shape up
5459 A backspace
5460 \family default
5461 \shape default
5462  in this case cancels the last dead key, so if you press 
5463 \begin_inset Flex Noun
5464 status collapsed
5465
5466 \begin_layout Plain Layout
5467
5468 \shape up
5469 ;: Backspace i
5470 \end_layout
5471
5472 \end_inset
5473
5474  you get 
5475 \begin_inset Flex Code
5476 status collapsed
5477
5478 \begin_layout Plain Layout
5479
5480 \shape up
5481
5482 \backslash
5483 '{i}
5484 \end_layout
5485
5486 \end_inset
5487
5488 .
5489 \end_layout
5490
5491 \begin_layout Subsection
5492 The .cdef File
5493 \end_layout
5494
5495 \begin_layout Standard
5496 After the 
5497 \begin_inset Flex Code
5498 status collapsed
5499
5500 \begin_layout Plain Layout
5501
5502 \shape up
5503 .kmap
5504 \end_layout
5505
5506 \end_inset
5507
5508  mapping is performed, a 
5509 \begin_inset Flex Code
5510 status collapsed
5511
5512 \begin_layout Plain Layout
5513
5514 \shape up
5515 .cde
5516 \shape default
5517 f
5518 \end_layout
5519
5520 \end_inset
5521
5522  file maps the strings that the symbols generate to characters in the current
5523  font.
5524  The \SpecialChar LyX
5525  distribution currently includes at least the 
5526 \begin_inset Flex Code
5527 status collapsed
5528
5529 \begin_layout Plain Layout
5530
5531 \shape up
5532 iso8859-1.cdef
5533 \end_layout
5534
5535 \end_inset
5536
5537  and 
5538 \begin_inset Flex Code
5539 status collapsed
5540
5541 \begin_layout Plain Layout
5542
5543 \shape up
5544 iso8859-2.cdef
5545 \end_layout
5546
5547 \end_inset
5548
5549  files.
5550 \end_layout
5551
5552 \begin_layout Standard
5553 In general the 
5554 \begin_inset Flex Code
5555 status collapsed
5556
5557 \begin_layout Plain Layout
5558
5559 \shape up
5560 .cdef
5561 \end_layout
5562
5563 \end_inset
5564
5565  file is a sequence of declarations of the form
5566 \end_layout
5567
5568 \begin_layout LyX-Code
5569
5570 \family roman
5571 \emph on
5572 char_index_in_set
5573 \family default
5574 \emph default
5575  
5576 \family roman
5577 \emph on
5578  string
5579 \end_layout
5580
5581 \begin_layout Standard
5582 For example, in order to map 
5583 \begin_inset Flex Noun
5584 status collapsed
5585
5586 \begin_layout Plain Layout
5587
5588 \shape up
5589
5590 \backslash
5591 '{e}
5592 \end_layout
5593
5594 \end_inset
5595
5596  to the corresponding character in the iso-8859-1 set (233), the following
5597  declaration is used
5598 \end_layout
5599
5600 \begin_layout LyX-Code
5601 233 "
5602 \backslash
5603
5604 \backslash
5605 '{e}"
5606 \end_layout
5607
5608 \begin_layout Standard
5609 with 
5610 \begin_inset Flex Code
5611 status collapsed
5612
5613 \begin_layout Plain Layout
5614
5615 \backslash
5616
5617 \end_layout
5618
5619 \end_inset
5620
5621  and 
5622 \begin_inset Flex Code
5623 status collapsed
5624
5625 \begin_layout Plain Layout
5626 "
5627 \end_layout
5628
5629 \end_inset
5630
5631  being escap
5632 \family roman
5633 ed in
5634 \family default
5635  
5636 \family roman
5637 \emph on
5638 string
5639 \emph default
5640 .
5641  Note that
5642 \family default
5643  the same character can apply to more than one string.
5644  In the 
5645 \begin_inset Flex Code
5646 status collapsed
5647
5648 \begin_layout Plain Layout
5649 i
5650 \shape up
5651 so-8859-7.cdef
5652 \end_layout
5653
5654 \end_inset
5655
5656  file you have
5657 \end_layout
5658
5659 \begin_layout LyX-Code
5660 192 "
5661 \backslash
5662
5663 \backslash
5664 '{
5665 \backslash
5666
5667 \backslash
5668
5669 \backslash
5670 "{i}}"
5671 \begin_inset Newline newline
5672 \end_inset
5673
5674 192 "
5675 \backslash
5676
5677 \backslash
5678
5679 \backslash
5680 "{
5681 \backslash
5682
5683 \backslash
5684 '{i}}"
5685 \end_layout
5686
5687 \begin_layout Standard
5688 If \SpecialChar LyX
5689  cannot find a mapping for the string produced by the keystroke or a
5690  deadkey sequence, it will check if it looks like an accented char and try
5691  to draw an accent over the character on screen.
5692 \end_layout
5693
5694 \begin_layout Subsection
5695 Dead Keys
5696 \end_layout
5697
5698 \begin_layout Standard
5699 There is a second way to add support for international characters through
5700  so-called dead-keys.
5701  A dead-key works in combination with a letter to produce an accented character.
5702  Here, we'll explain how to create a really simple dead-key to illustrate
5703  how they work.
5704 \end_layout
5705
5706 \begin_layout Standard
5707 Suppose you happen to need the circumflex character, 
5708 \begin_inset Quotes eld
5709 \end_inset
5710
5711  ̂
5712 \begin_inset Quotes erd
5713 \end_inset
5714
5715 .
5716  You could bind the 
5717 \begin_inset Flex Noun
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721 ^
5722 \end_layout
5723
5724 \end_inset
5725
5726 -key [a.k.a.
5727 \begin_inset space ~
5728 \end_inset
5729
5730
5731 \begin_inset Flex Noun
5732 status collapsed
5733
5734 \begin_layout Plain Layout
5735 Shift-6
5736 \end_layout
5737
5738 \end_inset
5739
5740 ] to the \SpecialChar LyX
5741  command 
5742 \begin_inset Flex Code
5743 status collapsed
5744
5745 \begin_layout Plain Layout
5746 accent-circumflex
5747 \end_layout
5748
5749 \end_inset
5750
5751  in your 
5752 \begin_inset Flex Code
5753 status collapsed
5754
5755 \begin_layout Plain Layout
5756 lyxrc
5757 \end_layout
5758
5759 \end_inset
5760
5761  file.
5762  Now, whenever you type the 
5763 \begin_inset Flex Noun
5764 status collapsed
5765
5766 \begin_layout Plain Layout
5767 ^
5768 \end_layout
5769
5770 \end_inset
5771
5772 -key followed by a letter, that letter will have a circumflex accent on
5773  it.
5774  For example, the sequence 
5775 \begin_inset Quotes eld
5776 \end_inset
5777
5778
5779 \begin_inset Flex Noun
5780 status collapsed
5781
5782 \begin_layout Plain Layout
5783 ^e
5784 \end_layout
5785
5786 \end_inset
5787
5788
5789 \begin_inset Quotes erd
5790 \end_inset
5791
5792  produces the letter: 
5793 \begin_inset Quotes eld
5794 \end_inset
5795
5796 ê
5797 \begin_inset Quotes erd
5798 \end_inset
5799
5800 .
5801  If you tried to type 
5802 \begin_inset Quotes eld
5803 \end_inset
5804
5805
5806 \begin_inset Flex Noun
5807 status collapsed
5808
5809 \begin_layout Plain Layout
5810 ^t
5811 \end_layout
5812
5813 \end_inset
5814
5815
5816 \begin_inset Quotes erd
5817 \end_inset
5818
5819 , however, \SpecialChar LyX
5820  will complain with a beep, since a 
5821 \begin_inset Quotes eld
5822 \end_inset
5823
5824
5825 \begin_inset Flex Noun
5826 status collapsed
5827
5828 \begin_layout Plain Layout
5829 t
5830 \end_layout
5831
5832 \end_inset
5833
5834
5835 \begin_inset Quotes erd
5836 \end_inset
5837
5838  never takes a circumflex accent.
5839  Hitting 
5840 \begin_inset Flex Noun
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 Space
5845 \end_layout
5846
5847 \end_inset
5848
5849  after a dead-key produces the bare-accent.
5850  Please note this last point! If you bind a key to a dead-key, you'll need
5851  to rebind the character on that key to yet another key.
5852  Binding the 
5853 \begin_inset Flex Noun
5854 status collapsed
5855
5856 \begin_layout Plain Layout
5857 ,-key
5858 \end_layout
5859
5860 \end_inset
5861
5862  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5863 \end_layout
5864
5865 \begin_layout Standard
5866 One common way to bind dead-keys is to use 
5867 \begin_inset Flex Noun
5868 status collapsed
5869
5870 \begin_layout Plain Layout
5871 Meta-
5872 \end_layout
5873
5874 \end_inset
5875
5876
5877 \begin_inset Flex Noun
5878 status collapsed
5879
5880 \begin_layout Plain Layout
5881 Ctrl-
5882 \end_layout
5883
5884 \end_inset
5885
5886 , and 
5887 \begin_inset Flex Noun
5888 status collapsed
5889
5890 \begin_layout Plain Layout
5891 Shift-
5892 \end_layout
5893
5894 \end_inset
5895
5896  in combination with an accent, like 
5897 \begin_inset Quotes eld
5898 \end_inset
5899
5900
5901 \begin_inset Flex Noun
5902 status collapsed
5903
5904 \begin_layout Plain Layout
5905 ~
5906 \end_layout
5907
5908 \end_inset
5909
5910
5911 \begin_inset Quotes erd
5912 \end_inset
5913
5914  or 
5915 \begin_inset Quotes eld
5916 \end_inset
5917
5918
5919 \begin_inset Flex Noun
5920 status collapsed
5921
5922 \begin_layout Plain Layout
5923 ,
5924 \end_layout
5925
5926 \end_inset
5927
5928
5929 \begin_inset Quotes erd
5930 \end_inset
5931
5932  or 
5933 \begin_inset Quotes eld
5934 \end_inset
5935
5936
5937 \begin_inset Flex Noun
5938 status collapsed
5939
5940 \begin_layout Plain Layout
5941 ^
5942 \end_layout
5943
5944 \end_inset
5945
5946
5947 \begin_inset Quotes erd
5948 \end_inset
5949
5950 .
5951  Another way involves using 
5952 \begin_inset Flex Code
5953 status collapsed
5954
5955 \begin_layout Plain Layout
5956 xmodmap
5957 \end_layout
5958
5959 \end_inset
5960
5961  and 
5962 \begin_inset Flex Code
5963 status collapsed
5964
5965 \begin_layout Plain Layout
5966 xkeycaps
5967 \end_layout
5968
5969 \end_inset
5970
5971  to set up the special 
5972 \begin_inset Flex Code
5973 status collapsed
5974
5975 \begin_layout Plain Layout
5976 Mode_Switch
5977 \end_layout
5978
5979 \end_inset
5980
5981  key.
5982  The 
5983 \begin_inset Flex Code
5984 status collapsed
5985
5986 \begin_layout Plain Layout
5987 Mode_Switch
5988 \end_layout
5989
5990 \end_inset
5991
5992  acts in some ways just like 
5993 \begin_inset Flex Noun
5994 status collapsed
5995
5996 \begin_layout Plain Layout
5997 Shift
5998 \end_layout
5999
6000 \end_inset
6001
6002  and permits you to bind keys to accented characters.
6003  You can also turn keys into dead-keys by binding them to something like
6004  
6005 \begin_inset Flex Code
6006 status collapsed
6007
6008 \begin_layout Plain Layout
6009 usldead_cedilla
6010 \end_layout
6011
6012 \end_inset
6013
6014  and then binding this symbolic key to the corresponding \SpecialChar LyX
6015  command.
6016 \begin_inset Foot
6017 status collapsed
6018
6019 \begin_layout Plain Layout
6020 Note from 
6021 \noun on
6022 John Weiss
6023 \noun default
6024 : This is exactly what I do in my 
6025 \begin_inset Flex Code
6026 status collapsed
6027
6028 \begin_layout Plain Layout
6029 ~/.lyx/lyxrc
6030 \end_layout
6031
6032 \end_inset
6033
6034  and my 
6035 \begin_inset Flex Code
6036 status collapsed
6037
6038 \begin_layout Plain Layout
6039 ~/.xmodmap
6040 \end_layout
6041
6042 \end_inset
6043
6044  files.
6045  I have my 
6046 \begin_inset Flex Noun
6047 status collapsed
6048
6049 \begin_layout Plain Layout
6050 Scroll
6051 \begin_inset space ~
6052 \end_inset
6053
6054 Lock
6055 \end_layout
6056
6057 \end_inset
6058
6059  key set up as 
6060 \begin_inset Flex Code
6061 status collapsed
6062
6063 \begin_layout Plain Layout
6064 Mode_Shift
6065 \end_layout
6066
6067 \end_inset
6068
6069  and a bunch of these 
6070 \begin_inset Quotes eld
6071 \end_inset
6072
6073
6074 \begin_inset Flex Code
6075 status collapsed
6076
6077 \begin_layout Plain Layout
6078 usldead_*
6079 \end_layout
6080
6081 \end_inset
6082
6083
6084 \begin_inset Quotes erd
6085 \end_inset
6086
6087  symbolic keys bound such things as 
6088 \begin_inset Flex Noun
6089 status collapsed
6090
6091 \begin_layout Plain Layout
6092 Scroll
6093 \begin_inset space ~
6094 \end_inset
6095
6096 Lock-^
6097 \end_layout
6098
6099 \end_inset
6100
6101  and 
6102 \begin_inset Flex Noun
6103 status collapsed
6104
6105 \begin_layout Plain Layout
6106 Scroll
6107 \begin_inset space ~
6108 \end_inset
6109
6110 Lock-~
6111 \end_layout
6112
6113 \end_inset
6114
6115 .
6116  This is how I produce my accented characters.
6117 \end_layout
6118
6119 \end_inset
6120
6121  You can make just about anything into the 
6122 \begin_inset Flex Code
6123 status collapsed
6124
6125 \begin_layout Plain Layout
6126 Mode_Switch
6127 \end_layout
6128
6129 \end_inset
6130
6131  key: One of the 
6132 \begin_inset Flex Noun
6133 status collapsed
6134
6135 \begin_layout Plain Layout
6136 Ctrl-
6137 \end_layout
6138
6139 \end_inset
6140
6141  keys, a spare function key, etc.
6142  As for the \SpecialChar LyX
6143  commands that produce accents, check the entry for 
6144 \begin_inset Flex Code
6145 status collapsed
6146
6147 \begin_layout Plain Layout
6148 accent-acute
6149 \end_layout
6150
6151 \end_inset
6152
6153  in the 
6154 \emph on
6155 Reference Manual
6156 \emph default
6157 .
6158  You'll find the complete list there.
6159 \end_layout
6160
6161 \begin_layout Subsection
6162 Saving your Language Configuration
6163 \end_layout
6164
6165 \begin_layout Standard
6166 You can edit your preferences so that your desired language environment
6167  is automatically configured when \SpecialChar LyX
6168  starts up, via the 
6169 \begin_inset Flex Noun
6170 status collapsed
6171
6172 \begin_layout Plain Layout
6173 Edit\SpecialChar menuseparator
6174 Preferences
6175 \end_layout
6176
6177 \end_inset
6178
6179  dialog.
6180 \end_layout
6181
6182 \begin_layout Chapter
6183
6184 \change_inserted -584632292 1610232084
6185 Creating and 
6186 \change_unchanged
6187 Installing New Document Classes, Layouts, and Templates
6188 \begin_inset CommandInset label
6189 LatexCommand label
6190 name "cha:Installing-New-Document"
6191
6192 \end_inset
6193
6194
6195 \begin_inset Argument 1
6196 status collapsed
6197
6198 \begin_layout Plain Layout
6199 Installing New Document Classes
6200 \end_layout
6201
6202 \end_inset
6203
6204
6205 \end_layout
6206
6207 \begin_layout Standard
6208 In this chapter, we describe the procedures for creating and installing
6209  new \SpecialChar LyX
6210  layout and template files, as well as offer a refresher on correctly
6211  installing new \SpecialChar LaTeX
6212  document classes.
6213  
6214 \end_layout
6215
6216 \begin_layout Standard
6217 First, let us a say a few words about how one ought to think about the relation
6218  between \SpecialChar LyX
6219  and \SpecialChar LaTeX
6220 .
6221  The thing to understand is that, in a certain sense, \SpecialChar LyX
6222  doesn't know anything
6223  about \SpecialChar LaTeX
6224 .
6225  Indeed, from \SpecialChar LyX
6226 's point of view, \SpecialChar LaTeX
6227  is just one of several 
6228 \begin_inset Quotes eld
6229 \end_inset
6230
6231 backend formats
6232 \begin_inset Quotes erd
6233 \end_inset
6234
6235  in which it is capable of producing output.
6236  Other such formats are DocBook, plaintext, and XHTML.
6237  \SpecialChar LaTeX
6238  is, of course, a particularly important format, but very little of the
6239  information \SpecialChar LyX
6240  has about \SpecialChar LaTeX
6241  is actually contained in the program itself.
6242 \begin_inset Foot
6243 status collapsed
6244
6245 \begin_layout Plain Layout
6246 Some commands are sufficiently complex that they are 
6247 \begin_inset Quotes eld
6248 \end_inset
6249
6250 hardcoded
6251 \begin_inset Quotes erd
6252 \end_inset
6253
6254  into \SpecialChar LyX
6255 .
6256  But the developers generally regard this as a Bad Thing.
6257 \end_layout
6258
6259 \end_inset
6260
6261  Rather, that information, even for the standard classes like 
6262 \begin_inset Flex Code
6263 status collapsed
6264
6265 \begin_layout Plain Layout
6266 article.cls
6267 \end_layout
6268
6269 \end_inset
6270
6271 , is contained in `layout files'.
6272  Similarly, \SpecialChar LyX
6273  itself does not know much about DocBook or XHTML.
6274  What it knows is contained in layout files.
6275 \end_layout
6276
6277 \begin_layout Standard
6278 You can think of the layout file for a given document class as a translation
6279  manual between \SpecialChar LyX
6280  constructs—paragraphs with their corresponding styles,
6281  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6282 , DocBook, or XHTML
6283  constructs.
6284  Almost everything \SpecialChar LyX
6285  knows about 
6286 \begin_inset Flex Code
6287 status collapsed
6288
6289 \begin_layout Plain Layout
6290 article.cls
6291 \end_layout
6292
6293 \end_inset
6294
6295 , for example, is contained in the file 
6296 \begin_inset Flex Code
6297 status collapsed
6298
6299 \begin_layout Plain Layout
6300 article.layout
6301 \end_layout
6302
6303 \end_inset
6304
6305  and in various other files it includes.
6306  For this reason, anyone intending to write layout files should plan to
6307  study the existing files.
6308  A good place to start is with 
6309 \begin_inset Flex Code
6310 status collapsed
6311
6312 \begin_layout Plain Layout
6313 stdsections.inc
6314 \end_layout
6315
6316 \end_inset
6317
6318 , which is included in 
6319 \begin_inset Flex Code
6320 status collapsed
6321
6322 \begin_layout Plain Layout
6323 article.layout
6324 \end_layout
6325
6326 \end_inset
6327
6328
6329 \begin_inset Flex Code
6330 status collapsed
6331
6332 \begin_layout Plain Layout
6333 book.layout
6334 \end_layout
6335
6336 \end_inset
6337
6338 , and many of the other layout files for document classes.
6339  This file is where sections and the like are defined: 
6340 \begin_inset Flex Code
6341 status collapsed
6342
6343 \begin_layout Plain Layout
6344 stdsections.inc
6345 \end_layout
6346
6347 \end_inset
6348
6349  tells \SpecialChar LyX
6350  how paragraphs that are marked with the Section, Subsection, etc,
6351  styles can be translated into corresponding \SpecialChar LaTeX
6352 , DocBook, and XHTML commands
6353  and tags.
6354  The 
6355 \begin_inset Flex Code
6356 status collapsed
6357
6358 \begin_layout Plain Layout
6359 article.layout
6360 \end_layout
6361
6362 \end_inset
6363
6364  file basically just includes several of these 
6365 \begin_inset Flex Code
6366 status collapsed
6367
6368 \begin_layout Plain Layout
6369 std*.inc
6370 \end_layout
6371
6372 \end_inset
6373
6374  files.
6375 \end_layout
6376
6377 \begin_layout Standard
6378 Defining the \SpecialChar LyX
6379 –\SpecialChar LaTeX
6380  correspondence is not the only thing layout files do, though.
6381  Their other job is to define how the \SpecialChar LyX
6382  constructs themselves will appear
6383  on-screen.
6384  The fact that layout files have these two jobs is often a source of confusion,
6385  because they are completely separate.
6386  Telling \SpecialChar LyX
6387  how to translate a certain paragraph style into \SpecialChar LaTeX
6388  does not tell
6389  \SpecialChar LyX
6390  how to display it; conversely, telling \SpecialChar LyX
6391  how to display a certain paragraph
6392  style does not tell \SpecialChar LyX
6393  how to translate it into \SpecialChar LaTeX
6394  (let alone tell \SpecialChar LaTeX
6395  how to
6396  display it).
6397  So, in general, when you define a new \SpecialChar LyX
6398  construct, you must always do two
6399  quite separate things: (i)
6400 \begin_inset space ~
6401 \end_inset
6402
6403 tell \SpecialChar LyX
6404  how to translate it into \SpecialChar LaTeX
6405  and (ii)
6406 \begin_inset space ~
6407 \end_inset
6408
6409 tell \SpecialChar LyX
6410  how to display it.
6411 \end_layout
6412
6413 \begin_layout Standard
6414 Much the same is true, of course, as regards \SpecialChar LyX
6415 's other backend formats, though
6416  XHTML is in some ways different, because in that case \SpecialChar LyX
6417  
6418 \emph on
6419 is
6420 \emph default
6421  able, to some extent, to use information about how it should display a
6422  paragraph on the screen to output information (in the form of CSS) about
6423  how the paragraph should be displayed in a browser.
6424  Even in this case, however, the distinction between what \SpecialChar LyX
6425  does internally
6426  and how things are rendered externally remains in force, and the two can
6427  be controlled separately.
6428  See 
6429 \begin_inset CommandInset ref
6430 LatexCommand ref
6431 reference "sec:Tags-for-XHTML"
6432
6433 \end_inset
6434
6435  for the details.
6436 \end_layout
6437
6438 \begin_layout Section
6439 Installing new \SpecialChar LaTeX
6440  files
6441 \end_layout
6442
6443 \begin_layout Standard
6444 Some installations may not include a \SpecialChar LaTeX
6445  package or class file that you would
6446  like to use within \SpecialChar LyX
6447 .
6448  For example, you might need Foil\SpecialChar TeX
6449 , a package for preparing slides for overhead
6450  projectors.
6451  Modern \SpecialChar LaTeX
6452  distributions like \SpecialChar TeX
6453 Live (2008 or newer) or MiK\SpecialChar TeX
6454  provide a user interface
6455  for installing such packages.
6456  For example, with MiK\SpecialChar TeX
6457 , you start the program 
6458 \begin_inset Quotes eld
6459 \end_inset
6460
6461 Package
6462 \begin_inset space ~
6463 \end_inset
6464
6465 Manager
6466 \begin_inset Quotes erd
6467 \end_inset
6468
6469  to get a list of available packages.
6470  To install one of them, right click on it or use the corresponding toolbar
6471  button.
6472 \end_layout
6473
6474 \begin_layout Standard
6475 If your \SpecialChar LaTeX
6476  distribution does not provide such a `package manager', or if the
6477  package is not available from your distribution, then follow these steps
6478  to install it manually:
6479 \end_layout
6480
6481 \begin_layout Enumerate
6482 Get the package from 
6483 \begin_inset CommandInset href
6484 LatexCommand href
6485 name "CTAN"
6486 target "http://www.ctan.org/"
6487 literal "false"
6488
6489 \end_inset
6490
6491  or wherever.
6492 \end_layout
6493
6494 \begin_layout Enumerate
6495 If the package contains a file with the ending 
6496 \begin_inset Quotes eld
6497 \end_inset
6498
6499
6500 \begin_inset Flex Code
6501 status collapsed
6502
6503 \begin_layout Plain Layout
6504 .ins
6505 \end_layout
6506
6507 \end_inset
6508
6509
6510 \begin_inset Quotes erd
6511 \end_inset
6512
6513  (is the case for Foil\SpecialChar TeX
6514 ) then open a console, change to the folder of this
6515  file and execute the command 
6516 \begin_inset Flex Code
6517 status collapsed
6518
6519 \begin_layout Plain Layout
6520 latex foiltex.ins
6521 \end_layout
6522
6523 \end_inset
6524
6525 .
6526  You have now unpacked the package and have all files to install it.
6527  Most \SpecialChar LaTeX
6528 -packages are not packed and you can skip this step.
6529 \end_layout
6530
6531 \begin_layout Enumerate
6532 Now you need to decide if the package should be available for all users
6533  or only for you.
6534 \end_layout
6535
6536 \begin_deeper
6537 \begin_layout Enumerate
6538 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6539  for all users on your system, then install it in your `local' \SpecialChar TeX
6540  tree, otherwise
6541  install it in your own `user' \SpecialChar TeX
6542  tree.
6543  Where these trees should be created, if they do not already exist, depends
6544  on your system.
6545  To find this out, look in the file 
6546 \begin_inset Flex Code
6547 status collapsed
6548
6549 \begin_layout Plain Layout
6550 texmf.cnf
6551 \end_layout
6552
6553 \end_inset
6554
6555 .
6556 \begin_inset Foot
6557 status collapsed
6558
6559 \begin_layout Plain Layout
6560 This is usually in the directory 
6561 \begin_inset Flex Code
6562 status collapsed
6563
6564 \begin_layout Plain Layout
6565 $TEXMF/web2c
6566 \end_layout
6567
6568 \end_inset
6569
6570 , though you can execute the command 
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575 kpsewhich texmf.cnf
6576 \end_layout
6577
6578 \end_inset
6579
6580  to locate it.
6581 \end_layout
6582
6583 \end_inset
6584
6585  The location of the `local' \SpecialChar TeX
6586  tree is defined by the 
6587 \begin_inset Flex Code
6588 status collapsed
6589
6590 \begin_layout Plain Layout
6591 TEXMFLOCAL
6592 \end_layout
6593
6594 \end_inset
6595
6596  variable; this is usually somewhere like 
6597 \begin_inset Flex Code
6598 status collapsed
6599
6600 \begin_layout Plain Layout
6601 /usr/local/share/texmf
6602 \end_layout
6603
6604 \end_inset
6605
6606  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6607 Live
6608  distribution.
6609  The location of the `user' \SpecialChar TeX
6610  tree is defined by 
6611 \begin_inset Flex Code
6612 status collapsed
6613
6614 \begin_layout Plain Layout
6615 TEXMFHOME
6616 \end_layout
6617
6618 \end_inset
6619
6620  and is commonly 
6621 \begin_inset Flex Code
6622 status collapsed
6623
6624 \begin_layout Plain Layout
6625 $HOME/texmf
6626 \end_layout
6627
6628 \end_inset
6629
6630  or 
6631 \begin_inset Flex Code
6632 status collapsed
6633
6634 \begin_layout Plain Layout
6635
6636 \family sans
6637 $HOME/.texliveXXXX
6638 \end_layout
6639
6640 \end_inset
6641
6642 .
6643  (If these variables are not predefined, you have to define them.) You'll
6644  probably need root permissions to create or modify the `local' tree, but
6645  not for your `user' tree.
6646 \begin_inset Newline newline
6647 \end_inset
6648
6649 In general, it is recommended to install in the user tree because your user
6650  will not be modified or even overwritten when you upgrade your system.
6651  It will typically also be backed up together with everything else when
6652  you backup your home directory (which, of course, you do on a regular basis).
6653 \end_layout
6654
6655 \begin_layout Enumerate
6656 On Windows, if you want the new package to be available for all users on
6657  your system, change to the folder where \SpecialChar LaTeX
6658  is installed and then change to
6659  the subfolder 
6660 \begin_inset Flex Code
6661 status collapsed
6662
6663 \begin_layout Plain Layout
6664 ~
6665 \backslash
6666 tex
6667 \backslash
6668 latex
6669 \end_layout
6670
6671 \end_inset
6672
6673 .
6674  (For MiK\SpecialChar TeX
6675 , this would be by default the folder 
6676 \begin_inset Flex Code
6677 status collapsed
6678
6679 \begin_layout Plain Layout
6680 ~:
6681 \backslash
6682 Programs
6683 \backslash
6684 MiKTeX
6685 \backslash
6686 tex
6687 \backslash
6688 latex
6689 \end_layout
6690
6691 \end_inset
6692
6693 .)
6694 \begin_inset Foot
6695 status collapsed
6696
6697 \begin_layout Plain Layout
6698 Note that this will be the correct path only on English installations.
6699  On a German one, it would be 
6700 \begin_inset Flex Code
6701 status collapsed
6702
6703 \begin_layout Plain Layout
6704 ~:
6705 \backslash
6706 Programme
6707 \backslash
6708 MiKTeX
6709 \backslash
6710 tex
6711 \backslash
6712 latex
6713 \end_layout
6714
6715 \end_inset
6716
6717 , and similarly for other languages.
6718 \end_layout
6719
6720 \end_inset
6721
6722  Create there a new folder 
6723 \begin_inset Flex Code
6724 status collapsed
6725
6726 \begin_layout Plain Layout
6727 foiltex
6728 \end_layout
6729
6730 \end_inset
6731
6732  and copy all files of the package into it.
6733  
6734 \begin_inset Newline newline
6735 \end_inset
6736
6737 If the package should only available for you or you don't have admin permissions
6738 , do the same, but in the local \SpecialChar LaTeX
6739  folder.
6740  E.
6741 \begin_inset space \thinspace{}
6742 \end_inset
6743
6744 g., for MiK\SpecialChar TeX
6745
6746 \begin_inset space ~
6747 \end_inset
6748
6749 2.8 under Windows XP, this would be the folder:
6750 \begin_inset Newline newline
6751 \end_inset
6752
6753
6754 \family sans
6755
6756 \begin_inset Flex Code
6757 status collapsed
6758
6759 \begin_layout Plain Layout
6760 ~:
6761 \backslash
6762 Documents and Settings
6763 \backslash
6764 <username>
6765 \backslash
6766 Application Data
6767 \backslash
6768
6769 \end_layout
6770
6771 \end_inset
6772
6773
6774 \begin_inset Newline newline
6775 \end_inset
6776
6777
6778 \family default
6779
6780 \begin_inset Phantom HPhantom
6781 status open
6782
6783 \begin_layout Plain Layout
6784
6785 \family sans
6786 ~:
6787 \backslash
6788
6789 \end_layout
6790
6791 \end_inset
6792
6793
6794 \begin_inset Flex Code
6795 status collapsed
6796
6797 \begin_layout Plain Layout
6798 MiKTeX
6799 \backslash
6800 2.8
6801 \backslash
6802 tex
6803 \backslash
6804 latex
6805 \end_layout
6806
6807 \end_inset
6808
6809
6810 \begin_inset Newline newline
6811 \end_inset
6812
6813 On Vista, it would be:
6814 \begin_inset Newline newline
6815 \end_inset
6816
6817
6818 \begin_inset Flex Code
6819 status collapsed
6820
6821 \begin_layout Plain Layout
6822 ~:
6823 \backslash
6824 Users
6825 \backslash
6826 <username>
6827 \backslash
6828 AppData
6829 \backslash
6830 Roaming
6831 \backslash
6832 2.8
6833 \backslash
6834 MiKTeX
6835 \backslash
6836 tex
6837 \backslash
6838 latex
6839 \end_layout
6840
6841 \end_inset
6842
6843
6844 \end_layout
6845
6846 \end_deeper
6847 \begin_layout Enumerate
6848 Now one only need to tell \SpecialChar LaTeX
6849  that there are new files.
6850  This depends on the used \SpecialChar LaTeX
6851 -Distribution:
6852 \end_layout
6853
6854 \begin_deeper
6855 \begin_layout Enumerate
6856 For \SpecialChar TeX
6857 Live execute the command 
6858 \begin_inset Flex Code
6859 status collapsed
6860
6861 \begin_layout Plain Layout
6862 texhash
6863 \end_layout
6864
6865 \end_inset
6866
6867  from a console.
6868  If you installed the package for all users, then you will probably need
6869  to have root permissions for that.
6870 \end_layout
6871
6872 \begin_layout Enumerate
6873 For MiK\SpecialChar TeX
6874 , if you have installed the package for all users, start the program
6875  
6876 \begin_inset Quotes eld
6877 \end_inset
6878
6879 Settings
6880 \begin_inset space ~
6881 \end_inset
6882
6883 (Admin)
6884 \begin_inset Quotes erd
6885 \end_inset
6886
6887  and press the button marked 
6888 \begin_inset Quotes eld
6889 \end_inset
6890
6891 Refresh FNDB
6892 \begin_inset Quotes erd
6893 \end_inset
6894
6895 .
6896  Otherwise start the program 
6897 \begin_inset Quotes eld
6898 \end_inset
6899
6900 Settings
6901 \begin_inset Quotes erd
6902 \end_inset
6903
6904  and do the same.
6905 \end_layout
6906
6907 \end_deeper
6908 \begin_layout Enumerate
6909 Finally, you need to tell \SpecialChar LyX
6910  that there are new packages available.
6911  So, in \SpecialChar LyX
6912 , use the menu 
6913 \begin_inset Flex Noun
6914 status collapsed
6915
6916 \begin_layout Plain Layout
6917 Tools
6918 \family sans
6919 \SpecialChar menuseparator
6920 Reconfigure
6921 \end_layout
6922
6923 \end_inset
6924
6925  and then restart \SpecialChar LyX
6926 .
6927 \end_layout
6928
6929 \begin_layout Standard
6930 Now the package is installed.
6931  In our example, the document class 
6932 \begin_inset Flex Code
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936 FoilTex
6937 \end_layout
6938
6939 \end_inset
6940
6941  will now be available under 
6942 \begin_inset Flex Noun
6943 status collapsed
6944
6945 \begin_layout Plain Layout
6946 Document\SpecialChar menuseparator
6947 Settings\SpecialChar menuseparator
6948 Document Class
6949 \end_layout
6950
6951 \end_inset
6952
6953  (in the 
6954 \begin_inset Quotes eld
6955 \end_inset
6956
6957 Presentations
6958 \begin_inset Quotes erd
6959 \end_inset
6960
6961  category).
6962  
6963 \end_layout
6964
6965 \begin_layout Standard
6966 If you would like to use a \SpecialChar LaTeX
6967  document class that is not even listed in the
6968  menu 
6969 \begin_inset Flex Noun
6970 status collapsed
6971
6972 \begin_layout Plain Layout
6973 Document\SpecialChar menuseparator
6974 Settings\SpecialChar menuseparator
6975 Document Class
6976 \end_layout
6977
6978 \end_inset
6979
6980 , then you need to create a `layout' file for it.
6981  That is the topic of the next section.
6982 \end_layout
6983
6984 \begin_layout Section
6985 Types of layout files
6986 \end_layout
6987
6988 \begin_layout Standard
6989 This section describes the various sorts of \SpecialChar LyX
6990  files that contain layout informati
6991 on.
6992  These files describe various paragraph and character styles, determining
6993  how \SpecialChar LyX
6994  should display them and how they should be translated into \SpecialChar LaTeX
6995 , DocBook,
6996  XHTML, or whatever output format is being used.
6997  
6998 \end_layout
6999
7000 \begin_layout Standard
7001 We shall try to provide a thorough description of the process of writing
7002  layout files here.
7003  However, there are so many different types of documents supported even
7004  by just \SpecialChar LaTeX
7005  that we can't hope to cover every different possibility or problem
7006  you might encounter.
7007  The \SpecialChar LyX
7008  users' list is frequented by people with lots of experience with layout
7009  design who are willing to share what they've learned, so please feel free
7010  to ask questions there.
7011 \end_layout
7012
7013 \begin_layout Standard
7014 As you prepare to write a new layout, it is extremely helpful to look at
7015  the layouts distributed with \SpecialChar LyX
7016 .
7017  If you write a \SpecialChar LyX
7018  layout for a \SpecialChar LaTeX
7019  document class that might also be used by
7020  others, or write a module that might be useful to others, then you should
7021  consider posting your layout to the 
7022 \begin_inset CommandInset href
7023 LatexCommand href
7024 name "layout section on the LyX wiki"
7025 target "https://wiki.lyx.org/Layouts/Layouts"
7026 literal "false"
7027
7028 \end_inset
7029
7030  or even to the \SpecialChar LyX
7031  developers' list, so that it might be included in \SpecialChar LyX
7032  itself.
7033 \begin_inset Foot
7034 status collapsed
7035
7036 \begin_layout Plain Layout
7037 Note that \SpecialChar LyX
7038  is licensed under the General Public License, so any material
7039  that is contributed to \SpecialChar LyX
7040  must be similarly licensed.
7041 \end_layout
7042
7043 \end_inset
7044
7045
7046 \end_layout
7047
7048 \begin_layout Subsection
7049 Layout modules
7050 \begin_inset CommandInset label
7051 LatexCommand label
7052 name "subsec:Layout-modules"
7053
7054 \end_inset
7055
7056
7057 \end_layout
7058
7059 \begin_layout Standard
7060 We have spoken to this point about `layout files'.
7061  But there are different sorts of files that contain layout information.
7062  Layout files, strictly so called, have the 
7063 \begin_inset Flex Code
7064 status collapsed
7065
7066 \begin_layout Plain Layout
7067 .layout
7068 \end_layout
7069
7070 \end_inset
7071
7072  extension and provide \SpecialChar LyX
7073  with information about document classes.
7074  Since \SpecialChar LyX
7075  1.6 layout information can also be contained in layout 
7076 \emph on
7077 modules
7078 \emph default
7079 , which have the 
7080 \begin_inset Flex Code
7081 status collapsed
7082
7083 \begin_layout Plain Layout
7084 .module
7085 \end_layout
7086
7087 \end_inset
7088
7089  extension.
7090  Modules are to \SpecialChar LaTeX
7091  packages much as layouts are to \SpecialChar LaTeX
7092  classes, and some modules—such
7093  as the 
7094 \begin_inset Flex Code
7095 status collapsed
7096
7097 \begin_layout Plain Layout
7098 endnotes
7099 \end_layout
7100
7101 \end_inset
7102
7103  module—specifically provide support for one package.
7104  In a sense, layout modules are similar to included
7105 \begin_inset Foot
7106 status collapsed
7107
7108 \begin_layout Plain Layout
7109 These can have any extension, but by convention have the 
7110 \begin_inset Flex Code
7111 status collapsed
7112
7113 \begin_layout Plain Layout
7114 .inc
7115 \end_layout
7116
7117 \end_inset
7118
7119  extension.
7120 \end_layout
7121
7122 \end_inset
7123
7124  files—files like 
7125 \begin_inset Flex Code
7126 status collapsed
7127
7128 \begin_layout Plain Layout
7129 stdsections.inc
7130 \end_layout
7131
7132 \end_inset
7133
7134 —in that modules are not specific to a given document class but may be used
7135  with many different classes.
7136  The difference is that using an included file with 
7137 \begin_inset Flex Code
7138 status collapsed
7139
7140 \begin_layout Plain Layout
7141 article.cls
7142 \end_layout
7143
7144 \end_inset
7145
7146  requires editing that file.
7147  Modules, by contrast, are selected in the 
7148 \begin_inset Flex Noun
7149 status collapsed
7150
7151 \begin_layout Plain Layout
7152 Document\SpecialChar menuseparator
7153 Settings
7154 \end_layout
7155
7156 \end_inset
7157
7158  dialog.
7159 \end_layout
7160
7161 \begin_layout Standard
7162 Building modules is the easiest way to get started with layout editing,
7163  since it can be as simple as adding a single new paragraph style or flex
7164  inset.
7165  But modules may, in principle, contain anything a layout file can contain.
7166 \end_layout
7167
7168 \begin_layout Standard
7169 After creating a new module and copying it to the 
7170 \begin_inset Flex Code
7171 status collapsed
7172
7173 \begin_layout Plain Layout
7174 layouts/
7175 \end_layout
7176
7177 \end_inset
7178
7179  folder, you will need to reconfigure and then restart \SpecialChar LyX
7180  for the module to
7181  appear in the menu.
7182  However, changes you make to the module will be seen immediately, if you
7183  open 
7184 \begin_inset Flex Noun
7185 status collapsed
7186
7187 \begin_layout Plain Layout
7188 Document\SpecialChar menuseparator
7189 Settings
7190 \end_layout
7191
7192 \end_inset
7193
7194 , highlight something, and then hit 
7195 \begin_inset Quotes eld
7196 \end_inset
7197
7198 OK
7199 \begin_inset Quotes erd
7200 \end_inset
7201
7202 .
7203  
7204 \emph on
7205 It is strongly recommended that you save your work before doing this
7206 \emph default
7207 .
7208  In fact, 
7209 \emph on
7210 it is strongly recommended that you not attempt to edit modules while simultaneo
7211 usly working on actual documents
7212 \emph default
7213 .
7214  Though of course the developers strive to keep \SpecialChar LyX
7215  stable in such situations,
7216  syntax errors and the like in your module file could cause strange behavior.
7217 \end_layout
7218
7219 \begin_layout Subsubsection
7220 Local Layout
7221 \end_layout
7222
7223 \begin_layout Standard
7224 Modules are to \SpecialChar LyX
7225  as packages are to \SpecialChar LaTeX
7226 .
7227  Sometimes, however, you find yourself wanting a specific inset or character
7228  style just for one document and writing a module that will also be available
7229  to other documents makes little sense.
7230  What you need is \SpecialChar LyX
7231 's 
7232 \begin_inset Quotes eld
7233 \end_inset
7234
7235 Local Layout
7236 \begin_inset Quotes erd
7237 \end_inset
7238
7239 .
7240 \end_layout
7241
7242 \begin_layout Standard
7243 You will find it under 
7244 \family sans
7245 Document\SpecialChar menuseparator
7246 Settings\SpecialChar menuseparator
7247 Local Layout
7248 \family default
7249 .
7250  The large text box allows you to enter anything that you might enter in
7251  a layout file or module.
7252  You can think of a document's local layout, in fact, as a module that belongs
7253  just to it.
7254  So, in particular, you must enter a 
7255 \begin_inset Flex Code
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 Format
7260 \end_layout
7261
7262 \end_inset
7263
7264  tag.
7265  Any format is acceptable, but one would normally use the format current
7266  at the time.
7267  (In \SpecialChar LyX
7268  
7269 \begin_inset Info
7270 type  "lyxinfo"
7271 arg   "version"
7272 \end_inset
7273
7274 , the current layout format is 
7275 \begin_inset Info
7276 type  "lyxinfo"
7277 arg   "layoutformat"
7278 \end_inset
7279
7280 .)
7281 \end_layout
7282
7283 \begin_layout Standard
7284 When you have entered something in the 
7285 \begin_inset Flex Code
7286 status collapsed
7287
7288 \begin_layout Plain Layout
7289 Local Layout
7290 \end_layout
7291
7292 \end_inset
7293
7294  pane, \SpecialChar LyX
7295  will enable the 
7296 \begin_inset Quotes eld
7297 \end_inset
7298
7299 Validate
7300 \begin_inset Quotes erd
7301 \end_inset
7302
7303  button at the bottom.
7304  Clicking this button will cause \SpecialChar LyX
7305  to determine whether what you have entered
7306  is valid layout information for the chosen format.
7307  \SpecialChar LyX
7308  will report the result but, unfortunately, will not tell you what errors
7309  there might have been.
7310  These will be written to the terminal, however, if \SpecialChar LyX
7311  is started from a terminal.
7312  You will not be permitted to save your local layout until you have entered
7313  something valid.
7314 \end_layout
7315
7316 \begin_layout Standard
7317 The warnings at the end of the previous section apply here, too.
7318  Do not play with local layout while you are actually working, especially
7319  if you have not saved your document.
7320  That said, using local layout with a test document can be a very convenient
7321  way to try out layout ideas, or even to start developing a module.
7322 \end_layout
7323
7324 \begin_layout Subsection
7325 Layout for 
7326 \begin_inset Flex Noun
7327 status collapsed
7328
7329 \begin_layout Plain Layout
7330 .sty
7331 \end_layout
7332
7333 \end_inset
7334
7335  files
7336 \end_layout
7337
7338 \begin_layout Standard
7339 There are two situations you are likely to encounter when wanting to support
7340  a new \SpecialChar LaTeX
7341  document class, involving style (
7342 \begin_inset Flex Code
7343 status collapsed
7344
7345 \begin_layout Plain Layout
7346 .sty
7347 \end_layout
7348
7349 \end_inset
7350
7351 ) files and \SpecialChar LaTeX2e
7352  class (
7353 \begin_inset Flex Code
7354 status collapsed
7355
7356 \begin_layout Plain Layout
7357 .cls
7358 \end_layout
7359
7360 \end_inset
7361
7362 ) .
7363  Supporting a style file is usually fairly easy.
7364  Supporting a new class file is a bit harder.
7365  We'll discuss the former in this section and the latter in the next.
7366  
7367 \change_deleted 5863208 1594239023
7368 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7369 \change_unchanged
7370
7371 \end_layout
7372
7373 \begin_layout Standard
7374 The easier case is the one in which your new document class is provided
7375  as a style file that is to be used in conjunction with an already supported
7376  document class.
7377  For the sake of the example, we'll assume that the style file is called
7378  
7379 \begin_inset Flex Noun
7380 status collapsed
7381
7382 \begin_layout Plain Layout
7383 myclass.sty
7384 \end_layout
7385
7386 \end_inset
7387
7388  and that it is meant to be used with 
7389 \begin_inset Flex Noun
7390 status collapsed
7391
7392 \begin_layout Plain Layout
7393 report.cls
7394 \end_layout
7395
7396 \end_inset
7397
7398 , which is a standard class.
7399  
7400 \end_layout
7401
7402 \begin_layout Standard
7403 Start by copying the existing class's layout file into your local directory:
7404 \begin_inset Foot
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408 Of course, which directory is your local directory will vary by platform,
7409  and \SpecialChar LyX
7410  allows you to specify your local directory on startup, too, using
7411  the 
7412 \begin_inset Flex Code
7413 status collapsed
7414
7415 \begin_layout Plain Layout
7416 -userdir
7417 \end_layout
7418
7419 \end_inset
7420
7421  option.
7422 \end_layout
7423
7424 \end_inset
7425
7426
7427 \end_layout
7428
7429 \begin_layout LyX-Code
7430 cp report.layout ~/.lyx/layouts/myclass.layout
7431 \end_layout
7432
7433 \begin_layout Standard
7434 Then edit 
7435 \begin_inset Flex Code
7436 status collapsed
7437
7438 \begin_layout Plain Layout
7439 myclass.layout
7440 \end_layout
7441
7442 \end_inset
7443
7444  and change the line: 
7445 \end_layout
7446
7447 \begin_layout LyX-Code
7448
7449 \backslash
7450 DeclareLaTeXClass{Report (Standard Class)}
7451 \end_layout
7452
7453 \begin_layout Standard
7454 to read
7455 \end_layout
7456
7457 \begin_layout LyX-Code
7458
7459 \backslash
7460 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7461 \end_layout
7462
7463 \begin_layout Standard
7464 Then add:
7465 \end_layout
7466
7467 \begin_layout LyX-Code
7468 Preamble 
7469 \begin_inset Newline newline
7470 \end_inset
7471
7472     
7473 \backslash
7474 usepackage{myclass}
7475 \begin_inset Newline newline
7476 \end_inset
7477
7478 EndPreamble
7479 \end_layout
7480
7481 \begin_layout Standard
7482 near the top of the file.
7483 \end_layout
7484
7485 \begin_layout Standard
7486 Start \SpecialChar LyX
7487  and select 
7488 \begin_inset Flex Noun
7489 status collapsed
7490
7491 \begin_layout Plain Layout
7492 Tools\SpecialChar menuseparator
7493 Reconfigure
7494 \end_layout
7495
7496 \end_inset
7497
7498 .
7499  Then restart \SpecialChar LyX
7500  and try creating a new document.
7501  You should see "
7502 \begin_inset Flex Noun
7503 status collapsed
7504
7505 \begin_layout Plain Layout
7506 Report (My Class)
7507 \end_layout
7508
7509 \end_inset
7510
7511 " as a document class option in the 
7512 \begin_inset Flex Noun
7513 status collapsed
7514
7515 \begin_layout Plain Layout
7516 Document\SpecialChar menuseparator
7517 Settings
7518 \end_layout
7519
7520 \end_inset
7521
7522  dialog.
7523  It is likely that some of the sectioning commands and such in your new
7524  class will work differently from how they worked in the base class—
7525 \begin_inset Flex Code
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 report
7530 \end_layout
7531
7532 \end_inset
7533
7534  in this example—so you can fiddle around with the settings for the different
7535  sections if you wish.
7536  The layout information for sections is contained in 
7537 \begin_inset Flex Code
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 stdsections.inc
7542 \end_layout
7543
7544 \end_inset
7545
7546 , but you do not need to copy and change this file.
7547  Instead, you can simply add your changes to your layout file, after the
7548  line 
7549 \begin_inset Flex Code
7550 status collapsed
7551
7552 \begin_layout Plain Layout
7553 Input stdclass.inc
7554 \end_layout
7555
7556 \end_inset
7557
7558 , which itself includes 
7559 \begin_inset Flex Code
7560 status collapsed
7561
7562 \begin_layout Plain Layout
7563 stdsections.inc
7564 \end_layout
7565
7566 \end_inset
7567
7568 .
7569  For example, you might add these lines:
7570 \end_layout
7571
7572 \begin_layout LyX-Code
7573 Style Chapter
7574 \end_layout
7575
7576 \begin_layout LyX-Code
7577     Font
7578 \end_layout
7579
7580 \begin_layout LyX-Code
7581         Family Sans
7582 \end_layout
7583
7584 \begin_layout LyX-Code
7585     EndFont
7586 \end_layout
7587
7588 \begin_layout LyX-Code
7589 End
7590 \end_layout
7591
7592 \begin_layout Standard
7593 to change the font for chapter headings to sans-serif.
7594  This will override (or, in this case, add to) the existing declaration
7595  for the Chapter style.
7596  
7597 \end_layout
7598
7599 \begin_layout Standard
7600 Your new package may also provide commands or environments not present in
7601  the base class.
7602  In this case, you will want to add these to the layout file.
7603  See 
7604 \begin_inset CommandInset ref
7605 LatexCommand ref
7606 reference "sec:TextClass"
7607
7608 \end_inset
7609
7610  for information on how to do so.
7611 \end_layout
7612
7613 \begin_layout Standard
7614 If 
7615 \begin_inset Flex Noun
7616 status collapsed
7617
7618 \begin_layout Plain Layout
7619 myclass.sty
7620 \end_layout
7621
7622 \end_inset
7623
7624  can be used with several different document classes, and even if it cannot,
7625  you might find it easiest just to write a module that you can load with
7626  the base class.
7627  The simplest possible such module would be:
7628 \end_layout
7629
7630 \begin_layout LyX-Code
7631 #
7632 \backslash
7633 DeclareLyXModule{My Class} 
7634 \end_layout
7635
7636 \begin_layout LyX-Code
7637 #DescriptionBegin 
7638 \end_layout
7639
7640 \begin_layout LyX-Code
7641 #Support for myclass.sty.
7642 \end_layout
7643
7644 \begin_layout LyX-Code
7645 #DescriptionEnd
7646 \begin_inset Newline newline
7647 \end_inset
7648
7649
7650 \end_layout
7651
7652 \begin_layout LyX-Code
7653 Format 
7654 \begin_inset Info
7655 type  "lyxinfo"
7656 arg   "layoutformat"
7657 \end_inset
7658
7659
7660 \begin_inset Newline newline
7661 \end_inset
7662
7663
7664 \end_layout
7665
7666 \begin_layout LyX-Code
7667 Preamble
7668 \begin_inset Newline newline
7669 \end_inset
7670
7671     
7672 \backslash
7673 usepackage{myclass}
7674 \begin_inset Newline newline
7675 \end_inset
7676
7677 EndPreamble
7678 \end_layout
7679
7680 \begin_layout Standard
7681 A more complex module might modify the behavior of some existing constructs
7682  or define some new ones.
7683  Again, see 
7684 \begin_inset CommandInset ref
7685 LatexCommand ref
7686 reference "sec:TextClass"
7687
7688 \end_inset
7689
7690  for discussion.
7691 \end_layout
7692
7693 \begin_layout Subsection
7694 Layout for 
7695 \begin_inset Flex Noun
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 .cls
7700 \end_layout
7701
7702 \end_inset
7703
7704  files
7705 \end_layout
7706
7707 \begin_layout Standard
7708 There are two possibilities here.
7709  One is that the class file is itself based upon an existing document class.
7710  For example, many thesis classes are based upon 
7711 \begin_inset Flex Noun
7712 status collapsed
7713
7714 \begin_layout Plain Layout
7715 book.cls
7716 \end_layout
7717
7718 \end_inset
7719
7720 .
7721  To see whether yours is, look for a line like
7722 \end_layout
7723
7724 \begin_layout LyX-Code
7725
7726 \backslash
7727 LoadClass{book}
7728 \end_layout
7729
7730 \begin_layout Standard
7731 in the file.
7732  If so, then you may proceed largely as in the previous section, though
7733  the 
7734 \begin_inset Flex Code
7735 status collapsed
7736
7737 \begin_layout Plain Layout
7738 Declare\SpecialChar LaTeX
7739 Class
7740 \end_layout
7741
7742 \end_inset
7743
7744  line will be different.
7745  If your new class is 
7746 \begin_inset Flex Code
7747 status collapsed
7748
7749 \begin_layout Plain Layout
7750 thesis
7751 \end_layout
7752
7753 \end_inset
7754
7755  and it is based upon 
7756 \begin_inset Flex Code
7757 status collapsed
7758
7759 \begin_layout Plain Layout
7760 book
7761 \end_layout
7762
7763 \end_inset
7764
7765 , then the line should read:
7766 \begin_inset Foot
7767 status collapsed
7768
7769 \begin_layout Plain Layout
7770 And it will be easiest if you save the file to 
7771 \begin_inset Flex Code
7772 status collapsed
7773
7774 \begin_layout Plain Layout
7775 thesis.layout
7776 \end_layout
7777
7778 \end_inset
7779
7780 : \SpecialChar LyX
7781  assumes that the document class has the same name as the layout file.
7782  
7783 \end_layout
7784
7785 \end_inset
7786
7787
7788 \end_layout
7789
7790 \begin_layout LyX-Code
7791
7792 \backslash
7793 DeclareLaTeXClass[thesis,book]{thesis}
7794 \end_layout
7795
7796 \begin_layout Standard
7797 If, on the other hand, the new class is not based upon an existing class,
7798  you will probably have to 
7799 \begin_inset Quotes eld
7800 \end_inset
7801
7802 roll your own
7803 \begin_inset Quotes erd
7804 \end_inset
7805
7806  layout.
7807  We strongly suggest copying an existing layout file which uses a similar
7808  \SpecialChar LaTeX
7809  class and then modifying it, if you can do so.
7810  At least use an existing file as a starting point so you can find out what
7811  items you need to worry about.
7812  Again, the specifics are covered below.
7813 \end_layout
7814
7815 \begin_layout Subsection
7816 Creating templates
7817 \begin_inset CommandInset label
7818 LatexCommand label
7819 name "subsec:Creating-Templates"
7820
7821 \end_inset
7822
7823
7824 \end_layout
7825
7826 \begin_layout Standard
7827 Once you have written a layout file for a new document class, you might
7828  want to consider writing a 
7829 \emph on
7830 template
7831 \emph default
7832  for it, too.
7833  A template acts as a kind of tutorial for your layout, showing how it might
7834  be used, though containing dummy content.
7835  You can of course look at the various templates included with \SpecialChar LyX
7836  for ideas.
7837 \end_layout
7838
7839 \begin_layout Standard
7840 Templates are created just like usual documents: using \SpecialChar LyX
7841 .
7842  The only difference is that usual documents contain all possible settings,
7843  including the font scheme and the paper size.
7844  Usually a user doesn't want a template to overwrite his preferred settings
7845  for such parameters.
7846  For that reason, the designer of a template should remove the corresponding
7847  commands like 
7848 \begin_inset Flex Code
7849 status collapsed
7850
7851 \begin_layout Plain Layout
7852
7853 \backslash
7854 font_roman
7855 \end_layout
7856
7857 \end_inset
7858
7859  or 
7860 \begin_inset Flex Code
7861 status collapsed
7862
7863 \begin_layout Plain Layout
7864
7865 \backslash
7866 papersize
7867 \end_layout
7868
7869 \end_inset
7870
7871  from the template \SpecialChar LyX
7872  file.
7873  This can be done with any simple text-editor, for example 
7874 \begin_inset Flex Code
7875 status collapsed
7876
7877 \begin_layout Plain Layout
7878 vi
7879 \end_layout
7880
7881 \end_inset
7882
7883  or 
7884 \begin_inset Flex Code
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 notepad
7889 \end_layout
7890
7891 \end_inset
7892
7893 .
7894 \end_layout
7895
7896 \begin_layout Standard
7897 Put the edited template files you create in 
7898 \begin_inset Flex Code
7899 status collapsed
7900
7901 \begin_layout Plain Layout
7902 UserDir/templates/
7903 \end_layout
7904
7905 \end_inset
7906
7907 , copy the ones you use from the global template directory in 
7908 \begin_inset Flex Code
7909 status collapsed
7910
7911 \begin_layout Plain Layout
7912 LyXDir/templates/
7913 \end_layout
7914
7915 \end_inset
7916
7917  to the same place, and redefine the template path in the 
7918 \begin_inset Flex Noun
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 Tools\SpecialChar menuseparator
7923 Preferences\SpecialChar menuseparator
7924 Paths
7925 \end_layout
7926
7927 \end_inset
7928
7929  dialog.
7930 \end_layout
7931
7932 \begin_layout Standard
7933 Note, by the way, that there is a template which has a particular meaning:
7934 \begin_inset Newline linebreak
7935 \end_inset
7936
7937
7938 \begin_inset Flex Code
7939 status collapsed
7940
7941 \begin_layout Plain Layout
7942 defaults.lyx
7943 \end_layout
7944
7945 \end_inset
7946
7947 .
7948  This template is loaded every time you create a new document with 
7949 \begin_inset Flex Noun
7950 status collapsed
7951
7952 \begin_layout Plain Layout
7953 File\SpecialChar menuseparator
7954 New
7955 \end_layout
7956
7957 \end_inset
7958
7959  in order to provide useful defaults.
7960  To create this template from inside \SpecialChar LyX
7961 , all you have to do is to open a document
7962  with the correct settings, and use the 
7963 \begin_inset Flex Noun
7964 status collapsed
7965
7966 \begin_layout Plain Layout
7967 Save as Document Defaults
7968 \end_layout
7969
7970 \end_inset
7971
7972  button.
7973 \end_layout
7974
7975 \begin_layout Subsection
7976 Upgrading old layout files
7977 \end_layout
7978
7979 \begin_layout Standard
7980 The format of layout files changes with each \SpecialChar LyX
7981  release, so old layout files
7982  need to be converted to the new format.
7983  If \SpecialChar LyX
7984  reads a layout file in an older format, it automatically calls the
7985  script 
7986 \begin_inset Flex Code
7987 status collapsed
7988
7989 \begin_layout Plain Layout
7990 layout2layout.py
7991 \end_layout
7992
7993 \end_inset
7994
7995  to convert it to a temporary file in current format.
7996  The original file is left untouched.
7997  If you use the layout file often, then, you may want to convert it permanently,
7998  so that \SpecialChar LyX
7999  does not have to do so itself every time.
8000  To do this, you can call the converter manually:
8001 \end_layout
8002
8003 \begin_layout Enumerate
8004 rename the file 
8005 \begin_inset Flex Code
8006 status collapsed
8007
8008 \begin_layout Plain Layout
8009 myclass.layout
8010 \end_layout
8011
8012 \end_inset
8013
8014  to 
8015 \begin_inset Flex Code
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 myclass.old
8020 \end_layout
8021
8022 \end_inset
8023
8024
8025 \end_layout
8026
8027 \begin_layout Enumerate
8028 Call the command
8029 \begin_inset Newline newline
8030 \end_inset
8031
8032
8033 \begin_inset Flex Code
8034 status collapsed
8035
8036 \begin_layout Plain Layout
8037 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8038 \end_layout
8039
8040 \end_inset
8041
8042
8043 \begin_inset Newline newline
8044 \end_inset
8045
8046 where 
8047 \begin_inset Flex Code
8048 status collapsed
8049
8050 \begin_layout Plain Layout
8051 LyXDir
8052 \end_layout
8053
8054 \end_inset
8055
8056  is the name of your \SpecialChar LyX
8057  system directory.
8058 \end_layout
8059
8060 \begin_layout Standard
8061 Note that manual conversion does not affect included files, so these will
8062  have to be converted separately.
8063 \end_layout
8064
8065 \begin_layout Subsection
8066 \begin_inset CommandInset label
8067 LatexCommand label
8068 name "subsec:Cite-Engine-Files"
8069
8070 \end_inset
8071
8072 Cite engine files
8073 \end_layout
8074
8075 \begin_layout Standard
8076 A specific form of layout files are the so-called 
8077 \begin_inset Flex Code
8078 status collapsed
8079
8080 \begin_layout Plain Layout
8081 *.citeengine
8082 \end_layout
8083
8084 \end_inset
8085
8086  files that are located in the 
8087 \begin_inset Flex Code
8088 status collapsed
8089
8090 \begin_layout Plain Layout
8091 citeengines/
8092 \end_layout
8093
8094 \end_inset
8095
8096  sub-directory.
8097  Their purpose is to define the specifics of \SpecialChar LaTeX
8098  packages aimed at bibliography
8099  generation, such as 
8100 \family sans
8101 natbib
8102 \family default
8103 ,
8104 \family sans
8105  jurabib
8106 \family default
8107  or 
8108 \family sans
8109 biblatex
8110 \family default
8111 , but also the way how normal Bib\SpecialChar TeX
8112  citations (without additional packages)
8113  are handled in \SpecialChar LyX
8114  is defined in such a file.
8115  
8116 \end_layout
8117
8118 \begin_layout Standard
8119 More specifically, it is defined which packages \SpecialChar LyX
8120  needs to load, which citation
8121  commands are available, how these are to be displayed in \SpecialChar LyX
8122  (in the workarea,
8123  the dialogs, the context menus) as well as in the XHTML and plain text
8124  output.
8125  Furthermore, the files specify available style variants (author-year, numerical
8126 , etc.) and their specifics.
8127  The cite engine files are also used to generate the options that are available
8128  in 
8129 \family sans
8130 Document\SpecialChar menuseparator
8131 Settings\SpecialChar menuseparator
8132 Bibliography\SpecialChar menuseparator
8133 Style engine
8134 \family default
8135 .
8136 \end_layout
8137
8138 \begin_layout Standard
8139 Even though a cite engine file is essentially a normal layout file that
8140  could theoretically include any layout information, it usually primarily
8141  includes some specific parameters such as 
8142 \begin_inset Flex Code
8143 status collapsed
8144
8145 \begin_layout Plain Layout
8146 MaxCiteNames
8147 \end_layout
8148
8149 \end_inset
8150
8151
8152 \begin_inset Flex Code
8153 status collapsed
8154
8155 \begin_layout Plain Layout
8156 CiteFramework
8157 \end_layout
8158
8159 \end_inset
8160
8161
8162 \begin_inset Flex Code
8163 status collapsed
8164
8165 \begin_layout Plain Layout
8166 CiteEngine
8167 \end_layout
8168
8169 \end_inset
8170
8171  and 
8172 \begin_inset Flex Code
8173 status collapsed
8174
8175 \begin_layout Plain Layout
8176 CiteFormat
8177 \end_layout
8178
8179 \end_inset
8180
8181  blocks.
8182  The syntax of the latter two is described in 
8183 \begin_inset CommandInset ref
8184 LatexCommand ref
8185 reference "subsec:Citation-engine-description"
8186 plural "false"
8187 caps "false"
8188 noprefix "false"
8189
8190 \end_inset
8191
8192  and 
8193 \begin_inset CommandInset ref
8194 LatexCommand ref
8195 reference "subsec:Citation-format-description"
8196
8197 \end_inset
8198
8199 , as well as in the files themselves.
8200 \end_layout
8201
8202 \begin_layout Section
8203 \begin_inset CommandInset label
8204 LatexCommand label
8205 name "sec:TextClass"
8206
8207 \end_inset
8208
8209 The layout file format
8210 \end_layout
8211
8212 \begin_layout Standard
8213 The following sections describe how layout files are structured and written.
8214  Our advice is to go slowly, save and test often.
8215  It is really not that hard, except that the multitude of options can become
8216  overwhelming, especially if you try to check out too many at once.
8217  It becomes easier if you use existing layouts of \SpecialChar LyX
8218  as examples/reference
8219  or if you modify an existing layout to your needs.
8220 \end_layout
8221
8222 \begin_layout Standard
8223 Note that all the tags used in layout files are case-insensitive.
8224  This means that 
8225 \begin_inset Flex Code
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229 Style
8230 \end_layout
8231
8232 \end_inset
8233
8234
8235 \begin_inset Flex Code
8236 status collapsed
8237
8238 \begin_layout Plain Layout
8239 style
8240 \end_layout
8241
8242 \end_inset
8243
8244  and 
8245 \begin_inset Flex Code
8246 status collapsed
8247
8248 \begin_layout Plain Layout
8249 StYlE
8250 \end_layout
8251
8252 \end_inset
8253
8254  are really the same tag.
8255  The possible arguments are printed in brackets after the tag's name.
8256  The default argument is typeset 
8257 \begin_inset Flex Code
8258 status collapsed
8259
8260 \begin_layout Plain Layout
8261
8262 \emph on
8263 emphasized
8264 \end_layout
8265
8266 \end_inset
8267
8268 .
8269  If the argument has a data type like 
8270 \begin_inset Quotes eld
8271 \end_inset
8272
8273 string
8274 \begin_inset Quotes erd
8275 \end_inset
8276
8277  or 
8278 \begin_inset Quotes eld
8279 \end_inset
8280
8281 float
8282 \begin_inset Quotes erd
8283 \end_inset
8284
8285 , the default is shown like this: 
8286 \begin_inset Flex Code
8287 status collapsed
8288
8289 \begin_layout Plain Layout
8290 float=
8291 \emph on
8292 default
8293 \end_layout
8294
8295 \end_inset
8296
8297 .
8298 \end_layout
8299
8300 \begin_layout Subsection
8301 The document class declaration and classification
8302 \end_layout
8303
8304 \begin_layout Standard
8305 Lines in a layout file which begin with 
8306 \begin_inset Flex Code
8307 status collapsed
8308
8309 \begin_layout Plain Layout
8310 #
8311 \end_layout
8312
8313 \end_inset
8314
8315  are comments.
8316  There is one exception to this rule.
8317  All 
8318 \begin_inset Flex Code
8319 status collapsed
8320
8321 \begin_layout Plain Layout
8322 *.layout
8323 \end_layout
8324
8325 \end_inset
8326
8327  files should begin with lines like:
8328 \end_layout
8329
8330 \begin_layout LyX-Code
8331
8332 \size small
8333 #% Do not delete the line below; configure depends on this 
8334 \end_layout
8335
8336 \begin_layout LyX-Code
8337
8338 \size small
8339 #  
8340 \backslash
8341 DeclareLaTeXClass{Article (Standard Class)}
8342 \end_layout
8343
8344 \begin_layout LyX-Code
8345
8346 \size small
8347 #  
8348 \backslash
8349 DeclareCategory{Articles}
8350 \end_layout
8351
8352 \begin_layout Standard
8353 The second and third lines are used when you (re)configure \SpecialChar LyX
8354 .
8355  The layout file is read by the \SpecialChar LaTeX
8356  script 
8357 \begin_inset Flex Code
8358 status collapsed
8359
8360 \begin_layout Plain Layout
8361 chkconfig.ltx
8362 \end_layout
8363
8364 \end_inset
8365
8366 , in a special mode where 
8367 \begin_inset Flex Code
8368 status collapsed
8369
8370 \begin_layout Plain Layout
8371 #
8372 \end_layout
8373
8374 \end_inset
8375
8376  is ignored.
8377  The first line is just a \SpecialChar LaTeX
8378  comment, the second one contains the mandatory
8379  declaration of the text class and the third line contains the optional
8380  classification of the class.
8381  If these lines appear in a file named 
8382 \begin_inset Flex Code
8383 status collapsed
8384
8385 \begin_layout Plain Layout
8386 article.layout
8387 \end_layout
8388
8389 \end_inset
8390
8391 , then they define a text class of name 
8392 \begin_inset Flex Code
8393 status collapsed
8394
8395 \begin_layout Plain Layout
8396 article
8397 \end_layout
8398
8399 \end_inset
8400
8401  (the name of the layout file) which uses the \SpecialChar LaTeX
8402  document class 
8403 \begin_inset Flex Code
8404 status collapsed
8405
8406 \begin_layout Plain Layout
8407 article.cls
8408 \end_layout
8409
8410 \end_inset
8411
8412  (the default is to use the same name as the layout).
8413  The string 
8414 \begin_inset Quotes eld
8415 \end_inset
8416
8417 Article (Standard Class)
8418 \begin_inset Quotes erd
8419 \end_inset
8420
8421  that appears above is used as a description of the text class in the 
8422 \begin_inset Flex Noun
8423 status collapsed
8424
8425 \begin_layout Plain Layout
8426 Document\SpecialChar menuseparator
8427 Settings
8428 \end_layout
8429
8430 \end_inset
8431
8432  dialog.
8433  The category (
8434 \begin_inset Quotes eld
8435 \end_inset
8436
8437 Articles
8438 \begin_inset Quotes erd
8439 \end_inset
8440
8441  in the example) is also used in the 
8442 \begin_inset Flex Noun
8443 status collapsed
8444
8445 \begin_layout Plain Layout
8446 Document\SpecialChar menuseparator
8447 Settings
8448 \end_layout
8449
8450 \end_inset
8451
8452  dialog: the text classes are grouped by these categories (which are usually
8453  genres, so typical categories are 
8454 \begin_inset Quotes eld
8455 \end_inset
8456
8457 Articles
8458 \begin_inset Quotes erd
8459 \end_inset
8460
8461
8462 \begin_inset Quotes eld
8463 \end_inset
8464
8465 Books
8466 \begin_inset Quotes erd
8467 \end_inset
8468
8469
8470 \begin_inset Quotes eld
8471 \end_inset
8472
8473 Reports
8474 \begin_inset Quotes erd
8475 \end_inset
8476
8477
8478 \begin_inset Quotes eld
8479 \end_inset
8480
8481 Letters
8482 \begin_inset Quotes erd
8483 \end_inset
8484
8485
8486 \begin_inset Quotes eld
8487 \end_inset
8488
8489 Presentations
8490 \begin_inset Quotes erd
8491 \end_inset
8492
8493
8494 \begin_inset Quotes eld
8495 \end_inset
8496
8497 Curricula Vitae
8498 \begin_inset Quotes erd
8499 \end_inset
8500
8501  etc.).
8502  If no category has been declared, the class will be put in the 
8503 \begin_inset Quotes eld
8504 \end_inset
8505
8506 Uncategorized
8507 \begin_inset Quotes erd
8508 \end_inset
8509
8510  group.
8511 \end_layout
8512
8513 \begin_layout Standard
8514 Let's assume that you wrote your own text class that uses the 
8515 \begin_inset Flex Code
8516 status collapsed
8517
8518 \begin_layout Plain Layout
8519 article.cls
8520 \end_layout
8521
8522 \end_inset
8523
8524  document class, but where you changed the appearance of the section headings.
8525  If you put it in a file 
8526 \begin_inset Flex Code
8527 status collapsed
8528
8529 \begin_layout Plain Layout
8530 myarticle.layout
8531 \end_layout
8532
8533 \end_inset
8534
8535 , the header of this file should be:
8536 \end_layout
8537
8538 \begin_layout LyX-Code
8539
8540 \size small
8541 #% Do not delete the line below; configure depends on this 
8542 \end_layout
8543
8544 \begin_layout LyX-Code
8545
8546 \size small
8547 #  
8548 \backslash
8549 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8550 \end_layout
8551
8552 \begin_layout LyX-Code
8553
8554 \size small
8555 #  
8556 \backslash
8557 DeclareCategory{Articles}
8558 \end_layout
8559
8560 \begin_layout Standard
8561 This declares a text class 
8562 \begin_inset Flex Code
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566 myarticle
8567 \end_layout
8568
8569 \end_inset
8570
8571 , associated with the \SpecialChar LaTeX
8572  document class 
8573 \begin_inset Flex Code
8574 status collapsed
8575
8576 \begin_layout Plain Layout
8577 article.cls
8578 \end_layout
8579
8580 \end_inset
8581
8582  and described as 
8583 \begin_inset Quotes eld
8584 \end_inset
8585
8586 Article (with My Own Headings)
8587 \begin_inset Quotes erd
8588 \end_inset
8589
8590 .
8591  If your text class depends on several packages, you can declare it as:
8592 \end_layout
8593
8594 \begin_layout LyX-Code
8595
8596 \size small
8597 #% Do not delete the line below; configure depends on this 
8598 \end_layout
8599
8600 \begin_layout LyX-Code
8601
8602 \size small
8603 #  
8604 \backslash
8605 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8606 \end_layout
8607
8608 \begin_layout LyX-Code
8609
8610 \size small
8611 #  
8612 \backslash
8613 DeclareCategory{Articles}
8614 \end_layout
8615
8616 \begin_layout Standard
8617 This indicates that your text class uses the 
8618 \begin_inset Flex Code
8619 status collapsed
8620
8621 \begin_layout Plain Layout
8622 foo.sty
8623 \end_layout
8624
8625 \end_inset
8626
8627  package.
8628  
8629 \change_deleted 5863208 1594239179
8630 Finally, it is also possible to declare classes for DocBook code.
8631  Typical declarations will look like:
8632 \end_layout
8633
8634 \begin_layout LyX-Code
8635
8636 \change_deleted 5863208 1594239179
8637
8638 \size small
8639 #% Do not delete the line below; configure depends on this 
8640 \end_layout
8641
8642 \begin_layout LyX-Code
8643
8644 \change_deleted 5863208 1594239179
8645
8646 \size small
8647
8648 \backslash
8649 DeclareDocBookClass[article]{SGML (DocBook Article)}
8650 \end_layout
8651
8652 \begin_layout LyX-Code
8653
8654 \change_deleted 5863208 1594239179
8655
8656 \size small
8657
8658 \backslash
8659 DeclareCategory{Articles (DocBook)}
8660 \change_unchanged
8661
8662 \end_layout
8663
8664 \begin_layout Standard
8665 Note that these declarations can also be given an optional parameter declaring
8666  the name of the document class (but not a list).
8667 \end_layout
8668
8669 \begin_layout Standard
8670 So, to be as explicit as possible, the form of the layout declaration is:
8671 \end_layout
8672
8673 \begin_layout LyX-Code
8674
8675 \size small
8676 #  
8677 \backslash
8678 DeclareLaTeXClass[class,package.sty]{layout description}
8679 \end_layout
8680
8681 \begin_layout LyX-Code
8682
8683 \size small
8684 #  
8685 \backslash
8686 DeclareCategory{category}
8687 \end_layout
8688
8689 \begin_layout Standard
8690 The class need only be specified if the name of the \SpecialChar LaTeX
8691  class file and the
8692  name of the layout file are different or if there are packages to load.
8693  If the name of the class file is not specified, then \SpecialChar LyX
8694  will simply assume
8695  that it is the same as the name of the layout file.
8696 \end_layout
8697
8698 \begin_layout Standard
8699 When the text class has been modified to your taste, all you have to do
8700  is to copy it either to 
8701 \begin_inset Flex Code
8702 status collapsed
8703
8704 \begin_layout Plain Layout
8705 LyXDir/layouts/
8706 \end_layout
8707
8708 \end_inset
8709
8710  or to 
8711 \begin_inset Flex Code
8712 status collapsed
8713
8714 \begin_layout Plain Layout
8715 UserDir/layouts
8716 \end_layout
8717
8718 \end_inset
8719
8720 , run 
8721 \begin_inset Flex Noun
8722 status collapsed
8723
8724 \begin_layout Plain Layout
8725 Tools\SpecialChar menuseparator
8726 Reconfigure
8727 \end_layout
8728
8729 \end_inset
8730
8731 , exit \SpecialChar LyX
8732  and restart.
8733  Then your new text class should be available along with the others.
8734 \end_layout
8735
8736 \begin_layout Standard
8737 Once the layout file is installed, you can edit it and see your changes
8738  without having to reconfigure or to restart \SpecialChar LyX
8739 .
8740 \begin_inset Foot
8741 status collapsed
8742
8743 \begin_layout Plain Layout
8744 In versions of \SpecialChar LyX
8745  prior to 1.6, this was not true.
8746  As a result, editing layout files was very time consuming, since you had
8747  constantly to restart \SpecialChar LyX
8748  to see changes.
8749 \end_layout
8750
8751 \end_inset
8752
8753  You can force a reload of the current layout by using the \SpecialChar LyX
8754  function 
8755 \begin_inset Flex Noun
8756 status collapsed
8757
8758 \begin_layout Plain Layout
8759 layout-reload
8760 \end_layout
8761
8762 \end_inset
8763
8764 .
8765  There is no default binding for this function—though, of course, you can
8766  bind it to a key yourself.
8767  But you will normally use this function simply by entering it in the mini-buffe
8768 r.
8769  
8770 \end_layout
8771
8772 \begin_layout Standard
8773
8774 \emph on
8775 Warning
8776 \emph default
8777
8778 \begin_inset Flex Noun
8779 status collapsed
8780
8781 \begin_layout Plain Layout
8782 layout-reload
8783 \end_layout
8784
8785 \end_inset
8786
8787  is very much an `advanced feature'.
8788  It is 
8789 \emph on
8790 strongly
8791 \emph default
8792  recommended that you save your work before using this function.
8793  In fact, it is 
8794 \emph on
8795 strongly
8796 \emph default
8797  recommended that you not attempt to edit layout information while simultaneousl
8798 y working on a document that you care about.
8799  Use a test document.
8800  Syntax errors and the like in your layout file could cause peculiar behavior.
8801  In particular, such errors could cause \SpecialChar LyX
8802  to regard the current layout as
8803  invalid and to attempt to switch to some other layout.
8804 \begin_inset Foot
8805 status collapsed
8806
8807 \begin_layout Plain Layout
8808 Really bad syntax errors may even caused \SpecialChar LyX
8809  to exit.
8810  This is because certain sorts of errors may make \SpecialChar LyX
8811  unable to read 
8812 \emph on
8813 any
8814 \emph default
8815  layout information.
8816  Please be careful.
8817 \end_layout
8818
8819 \end_inset
8820
8821  The \SpecialChar LyX
8822  team strives to keep \SpecialChar LyX
8823  stable in such situations, but safe is better
8824  than sorry.
8825 \begin_inset Foot
8826 status collapsed
8827
8828 \begin_layout Plain Layout
8829 While we're giving advice: make regular backups.
8830  And be nice to your mother.
8831 \end_layout
8832
8833 \end_inset
8834
8835
8836 \end_layout
8837
8838 \begin_layout Subsection
8839 The Module declaration
8840 \end_layout
8841
8842 \begin_layout Standard
8843 A module must begin with a line like the following:
8844 \end_layout
8845
8846 \begin_layout LyX-Code
8847 #
8848 \backslash
8849 DeclareLyXModule[endnotes.sty]{Endnotes}
8850 \change_inserted -712698321 1554395911
8851
8852 \end_layout
8853
8854 \begin_layout LyX-Code
8855
8856 \change_inserted -712698321 1554395924
8857
8858 \size small
8859 #
8860 \backslash
8861 DeclareCategory{Foot- and Endnotes}
8862 \change_deleted -712698321 1554395911
8863
8864 \size default
8865  
8866 \change_unchanged
8867
8868 \end_layout
8869
8870 \begin_layout Standard
8871 The mandatory argument
8872 \change_inserted -712698321 1554395956
8873  of 
8874 \family typewriter
8875
8876 \backslash
8877 DeclareLyXModule
8878 \change_unchanged
8879
8880 \family default
8881 , in curly brackets, is the name of the module, as it should appear in 
8882 \begin_inset Flex Noun
8883 status collapsed
8884
8885 \begin_layout Plain Layout
8886 Document\SpecialChar menuseparator
8887 Settings\SpecialChar menuseparator
8888 Modules
8889 \end_layout
8890
8891 \end_inset
8892
8893 .
8894  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8895  packages
8896  on which the module depends.
8897  It is also possible to use the form 
8898 \begin_inset Flex Noun
8899 status collapsed
8900
8901 \begin_layout Plain Layout
8902 from->to
8903 \end_layout
8904
8905 \end_inset
8906
8907  as an optional argument, which declares that the module can only be used
8908  when there exists a conversion chain between the formats `
8909 \begin_inset Flex Code
8910 status collapsed
8911
8912 \begin_layout Plain Layout
8913 from
8914 \end_layout
8915
8916 \end_inset
8917
8918 ' and `
8919 \begin_inset Flex Code
8920 status collapsed
8921
8922 \begin_layout Plain Layout
8923 to
8924 \end_layout
8925
8926 \end_inset
8927
8928 '.
8929
8930 \change_inserted -712698321 1554396133
8931  The 
8932 \family typewriter
8933
8934 \backslash
8935 DeclareCategory
8936 \family default
8937  declaration is not strictly mandatory, but you should add it, since it
8938  is helpful to find the module.
8939  Please have a look at the existing module categories and if appropriate,
8940  use one of those.
8941 \change_unchanged
8942
8943 \end_layout
8944
8945 \begin_layout Standard
8946 The module 
8947 \change_inserted -712698321 1554395988
8948 and category 
8949 \change_unchanged
8950 declaration should then be followed by lines like the following:
8951 \begin_inset Foot
8952 status collapsed
8953
8954 \begin_layout Plain Layout
8955 Preferably in English if the module should be published with \SpecialChar LyX
8956 .
8957  This description will appear in the list of messages to be translated and
8958  will be thus translated with the next interface update.
8959 \end_layout
8960
8961 \end_inset
8962
8963
8964 \end_layout
8965
8966 \begin_layout LyX-Code
8967 #DescriptionBegin 
8968 \end_layout
8969
8970 \begin_layout LyX-Code
8971 #Adds an endnote command, in addition to footnotes.
8972  
8973 \end_layout
8974
8975 \begin_layout LyX-Code
8976 #You will need to add  
8977 \backslash
8978 theendnotes in TeX code where you 
8979 \end_layout
8980
8981 \begin_layout LyX-Code
8982 #want the endnotes to appear.
8983  
8984 \end_layout
8985
8986 \begin_layout LyX-Code
8987 #DescriptionEnd 
8988 \end_layout
8989
8990 \begin_layout LyX-Code
8991 #Requires: somemodule | othermodule
8992 \end_layout
8993
8994 \begin_layout LyX-Code
8995 #Excludes: badmodule
8996 \end_layout
8997
8998 \begin_layout Standard
8999 The description is used in 
9000 \begin_inset Flex Noun
9001 status collapsed
9002
9003 \begin_layout Plain Layout
9004 Document\SpecialChar menuseparator
9005 Settings\SpecialChar menuseparator
9006 Modules
9007 \end_layout
9008
9009 \end_inset
9010
9011  to provide the user with information about what the module does.
9012  The 
9013 \begin_inset Flex Code
9014 status collapsed
9015
9016 \begin_layout Plain Layout
9017 Requires
9018 \end_layout
9019
9020 \end_inset
9021
9022  line is used to identify other modules with which this one must be used;
9023  the 
9024 \begin_inset Flex Code
9025 status collapsed
9026
9027 \begin_layout Plain Layout
9028 Excludes
9029 \end_layout
9030
9031 \end_inset
9032
9033  line is used to identify modules with which this one may not be used.
9034  Both are optional, and, as shown, multiple modules should be separated
9035  with the pipe symbol: |.
9036  Note that the required modules are treated disjunctively: 
9037 \emph on
9038 at least one
9039 \emph default
9040  of the required modules must be used.
9041  Similarly, 
9042 \emph on
9043 no
9044 \emph default
9045  excluded module may be used.
9046  Note that modules are identified here by their filenames without the 
9047 \begin_inset Flex Code
9048 status collapsed
9049
9050 \begin_layout Plain Layout
9051 .module
9052 \end_layout
9053
9054 \end_inset
9055
9056  extension.
9057  So 
9058 \begin_inset Flex Code
9059 status collapsed
9060
9061 \begin_layout Plain Layout
9062 somemodule
9063 \end_layout
9064
9065 \end_inset
9066
9067  is really 
9068 \begin_inset Flex Code
9069 status collapsed
9070
9071 \begin_layout Plain Layout
9072 somemodule.module
9073 \end_layout
9074
9075 \end_inset
9076
9077 .
9078 \end_layout
9079
9080 \begin_layout Subsection
9081 The CiteEngine file declaration
9082 \end_layout
9083
9084 \begin_layout Standard
9085 A cite engine file must begin with a line like the following:
9086 \end_layout
9087
9088 \begin_layout LyX-Code
9089 #
9090 \backslash
9091 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9092 \end_layout
9093
9094 \begin_layout Standard
9095 The mandatory argument, in curly brackets, is the name of the cite style,
9096  as it should appear in 
9097 \begin_inset Flex Noun
9098 status collapsed
9099
9100 \begin_layout Plain Layout
9101 Document\SpecialChar menuseparator
9102 Settings\SpecialChar menuseparator
9103 Bibliography
9104 \end_layout
9105
9106 \end_inset
9107
9108 .
9109  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9110  packages
9111  on which the cite engine depends.
9112 \end_layout
9113
9114 \begin_layout Standard
9115 The cite engine declaration should then be followed by lines like the following:
9116 \begin_inset Foot
9117 status collapsed
9118
9119 \begin_layout Plain Layout
9120 Preferably in English if the module should be published with \SpecialChar LyX
9121 .
9122  This description will appear in the list of messages to be translated and
9123  will be thus translated with the next interface update.
9124 \end_layout
9125
9126 \end_inset
9127
9128
9129 \end_layout
9130
9131 \begin_layout LyX-Code
9132 # DescriptionBegin
9133 \end_layout
9134
9135 \begin_layout LyX-Code
9136 #   Biblatex supports many author-year and numerical styles.
9137 \end_layout
9138
9139 \begin_layout LyX-Code
9140 #   It is mainly aimed at the Humanities.
9141  It is highly
9142 \end_layout
9143
9144 \begin_layout LyX-Code
9145 #   customizable, fully localized and provides many features
9146 \end_layout
9147
9148 \begin_layout LyX-Code
9149 #   that are not possible with BibTeX.
9150  The use of 'biber' as
9151 \end_layout
9152
9153 \begin_layout LyX-Code
9154 #   bibliography processor is advised.
9155 \end_layout
9156
9157 \begin_layout LyX-Code
9158 # DescriptionEnd
9159 \end_layout
9160
9161 \begin_layout Standard
9162 The description is used in 
9163 \begin_inset Flex Noun
9164 status collapsed
9165
9166 \begin_layout Plain Layout
9167 Document\SpecialChar menuseparator
9168 Settings\SpecialChar menuseparator
9169 Bibliography
9170 \end_layout
9171
9172 \end_inset
9173
9174  to provide the user with information about the cite engine.
9175 \end_layout
9176
9177 \begin_layout Subsection
9178 Format number
9179 \end_layout
9180
9181 \begin_layout Standard
9182 The first non-comment line of any layout file, included file, or module
9183  
9184 \emph on
9185 must
9186 \emph default
9187  contain the file format number:
9188 \end_layout
9189
9190 \begin_layout Description
9191 \begin_inset Flex Code
9192 status collapsed
9193
9194 \begin_layout Plain Layout
9195 Format
9196 \end_layout
9197
9198 \end_inset
9199
9200  [
9201 \begin_inset Flex Code
9202 status collapsed
9203
9204 \begin_layout Plain Layout
9205 int
9206 \end_layout
9207
9208 \end_inset
9209
9210 ] The format number of the layout file.
9211 \end_layout
9212
9213 \begin_layout Standard
9214 This tag was introduced with \SpecialChar LyX
9215
9216 \begin_inset space ~
9217 \end_inset
9218
9219 1.4.0.
9220  Layout files from older \SpecialChar LyX
9221  versions do not have an explicit file format and
9222  are considered to have 
9223 \begin_inset Flex Code
9224 status collapsed
9225
9226 \begin_layout Plain Layout
9227 Format
9228 \begin_inset space ~
9229 \end_inset
9230
9231 1
9232 \end_layout
9233
9234 \end_inset
9235
9236 .
9237  The format for the present version of \SpecialChar LyX
9238  is format 60.
9239  But each version of \SpecialChar LyX
9240  is capable of reading earlier versions' layout files,
9241  just as they are capable of reading files produced by earlier versions
9242  of \SpecialChar LyX
9243 .
9244  There is, however, no provision for converting to earlier formats.
9245 \end_layout
9246
9247 \begin_layout Subsection
9248 \begin_inset CommandInset label
9249 LatexCommand label
9250 name "subsec:General-text-class"
9251
9252 \end_inset
9253
9254 General text class parameters
9255 \end_layout
9256
9257 \begin_layout Standard
9258 These are general parameters that govern the behavior of an entire document
9259  class.
9260  (This does 
9261 \emph on
9262 not
9263 \emph default
9264  mean that they must appear in 
9265 \begin_inset Flex Code
9266 status collapsed
9267
9268 \begin_layout Plain Layout
9269 .layout
9270 \end_layout
9271
9272 \end_inset
9273
9274  files rather than in modules.
9275  A module can contain any layout tag.)
9276 \end_layout
9277
9278 \begin_layout Description
9279
9280 \change_inserted -712698321 1526899478
9281 \begin_inset Flex Code
9282 status collapsed
9283
9284 \begin_layout Plain Layout
9285
9286 \change_inserted -712698321 1526898610
9287 AddToCiteEngine <engine>
9288 \change_unchanged
9289
9290 \end_layout
9291
9292 \end_inset
9293
9294  Extends the possibilities for displaying citation references.
9295  See 
9296 \begin_inset CommandInset ref
9297 LatexCommand ref
9298 reference "subsec:Citation-engine-description"
9299 plural "false"
9300 caps "false"
9301 noprefix "false"
9302
9303 \end_inset
9304
9305  for details.
9306  Must end with 
9307 \begin_inset Flex Code
9308 status collapsed
9309
9310 \begin_layout Plain Layout
9311
9312 \change_inserted -712698321 1526898823
9313 End
9314 \change_unchanged
9315
9316 \end_layout
9317
9318 \end_inset
9319
9320 .
9321 \end_layout
9322
9323 \begin_layout Description
9324 \begin_inset Flex Code
9325 status collapsed
9326
9327 \begin_layout Plain Layout
9328 AddToHTMLPreamble
9329 \end_layout
9330
9331 \end_inset
9332
9333  Adds information that will be output in the 
9334 \begin_inset Flex Code
9335 status collapsed
9336
9337 \begin_layout Plain Layout
9338 <head>
9339 \end_layout
9340
9341 \end_inset
9342
9343  block when the document is output to XHTML.
9344  Typically, this would be used to output CSS style information, but it can
9345  be used for anything that can appear in 
9346 \begin_inset Flex Code
9347 status collapsed
9348
9349 \begin_layout Plain Layout
9350 <head>
9351 \end_layout
9352
9353 \end_inset
9354
9355 .
9356  Must end with 
9357 \begin_inset Quotes eld
9358 \end_inset
9359
9360
9361 \begin_inset Flex Code
9362 status collapsed
9363
9364 \begin_layout Plain Layout
9365 EndPreamble
9366 \end_layout
9367
9368 \end_inset
9369
9370
9371 \begin_inset Quotes erd
9372 \end_inset
9373
9374 .
9375 \end_layout
9376
9377 \begin_layout Description
9378 \begin_inset Flex Code
9379 status collapsed
9380
9381 \begin_layout Plain Layout
9382 AddToPreamble
9383 \end_layout
9384
9385 \end_inset
9386
9387  Adds information to the document preamble.
9388  Must end with
9389 \begin_inset Newline newline
9390 \end_inset
9391
9392
9393 \begin_inset Quotes eld
9394 \end_inset
9395
9396
9397 \begin_inset Flex Code
9398 status collapsed
9399
9400 \begin_layout Plain Layout
9401 EndPreamble
9402 \end_layout
9403
9404 \end_inset
9405
9406
9407 \begin_inset Quotes erd
9408 \end_inset
9409
9410 .
9411 \change_inserted -712698321 1562592950
9412
9413 \end_layout
9414
9415 \begin_layout Description
9416
9417 \change_inserted -712698321 1562593040
9418 \begin_inset Flex Code
9419 status collapsed
9420
9421 \begin_layout Plain Layout
9422
9423 \change_inserted -712698321 1562592954
9424 BibInToc
9425 \change_unchanged
9426
9427 \end_layout
9428
9429 \end_inset
9430
9431  [
9432 \begin_inset Flex Code
9433 status collapsed
9434
9435 \begin_layout Plain Layout
9436
9437 \change_inserted -712698321 1562592950
9438
9439 \emph on
9440 0
9441 \change_unchanged
9442
9443 \end_layout
9444
9445 \end_inset
9446
9447 ,
9448 \begin_inset space \thinspace{}
9449 \end_inset
9450
9451
9452 \begin_inset Flex Code
9453 status collapsed
9454
9455 \begin_layout Plain Layout
9456
9457 \change_inserted -712698321 1562592950
9458 1
9459 \change_unchanged
9460
9461 \end_layout
9462
9463 \end_inset
9464
9465 ] If the document class adds the bibliography to the table of contents,
9466  add this option with value 
9467 \begin_inset Flex Code
9468 status collapsed
9469
9470 \begin_layout Plain Layout
9471
9472 \change_inserted -712698321 1562592996
9473 1
9474 \change_unchanged
9475
9476 \end_layout
9477
9478 \end_inset
9479
9480  (or 
9481 \begin_inset Flex Code
9482 status collapsed
9483
9484 \begin_layout Plain Layout
9485
9486 \change_inserted -712698321 1562593006
9487 true
9488 \change_unchanged
9489
9490 \end_layout
9491
9492 \end_inset
9493
9494 ).
9495  This prevents the bibliography from being added twice.
9496 \change_unchanged
9497
9498 \end_layout
9499
9500 \begin_layout Description
9501 \begin_inset Flex Code
9502 status collapsed
9503
9504 \begin_layout Plain Layout
9505 CiteEngine <engine>
9506 \end_layout
9507
9508 \end_inset
9509
9510  Defines the possibilities for displaying citation references.
9511  See 
9512 \begin_inset CommandInset ref
9513 LatexCommand ref
9514 reference "subsec:Citation-engine-description"
9515 plural "false"
9516 caps "false"
9517 noprefix "false"
9518
9519 \end_inset
9520
9521  for details.
9522  Must end with 
9523 \begin_inset Quotes eld
9524 \end_inset
9525
9526
9527 \begin_inset Flex Code
9528 status collapsed
9529
9530 \begin_layout Plain Layout
9531 End
9532 \end_layout
9533
9534 \end_inset
9535
9536
9537 \begin_inset Quotes erd
9538 \end_inset
9539
9540 .
9541  Primarily used in cite engine files (see 
9542 \begin_inset CommandInset ref
9543 LatexCommand ref
9544 reference "subsec:Cite-Engine-Files"
9545 plural "false"
9546 caps "false"
9547 noprefix "false"
9548
9549 \end_inset
9550
9551 ).
9552
9553 \change_inserted -712698321 1526898530
9554  Note that if you specify this in a layout file or module, any cite engine
9555  definition will be overridden.
9556  Also see 
9557 \begin_inset Flex Code
9558 status collapsed
9559
9560 \begin_layout Plain Layout
9561
9562 \change_inserted -712698321 1526898530
9563 AddToCiteEngine
9564 \change_unchanged
9565
9566 \end_layout
9567
9568 \end_inset
9569
9570 .
9571 \change_unchanged
9572
9573 \end_layout
9574
9575 \begin_layout Description
9576 \begin_inset Flex Code
9577 status collapsed
9578
9579 \begin_layout Plain Layout
9580 CiteFormat
9581 \end_layout
9582
9583 \end_inset
9584
9585  Defines formats for use in the display of bibliographic information.
9586  See 
9587 \begin_inset CommandInset ref
9588 LatexCommand ref
9589 reference "subsec:Citation-format-description"
9590
9591 \end_inset
9592
9593  for details.
9594  Must end with 
9595 \begin_inset Quotes eld
9596 \end_inset
9597
9598
9599 \begin_inset Flex Code
9600 status collapsed
9601
9602 \begin_layout Plain Layout
9603 End
9604 \end_layout
9605
9606 \end_inset
9607
9608
9609 \begin_inset Quotes erd
9610 \end_inset
9611
9612 .
9613  Primarily used in cite engine files (see 
9614 \begin_inset CommandInset ref
9615 LatexCommand ref
9616 reference "subsec:Cite-Engine-Files"
9617 plural "false"
9618 caps "false"
9619 noprefix "false"
9620
9621 \end_inset
9622
9623 ).
9624
9625 \change_inserted -712698321 1526898585
9626  A cite format defined in a layout or module will override the cite engine
9627  definition.
9628 \change_unchanged
9629
9630 \end_layout
9631
9632 \begin_layout Description
9633 \begin_inset Flex Code
9634 status collapsed
9635
9636 \begin_layout Plain Layout
9637 CiteFramework
9638 \end_layout
9639
9640 \end_inset
9641
9642  [
9643 \begin_inset Flex Code
9644 status collapsed
9645
9646 \begin_layout Plain Layout
9647
9648 \emph on
9649 bibtex
9650 \end_layout
9651
9652 \end_inset
9653
9654 ,
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 biblatex
9660 \end_layout
9661
9662 \end_inset
9663
9664 ] Determines whether 
9665 \family sans
9666 Biblatex
9667 \family default
9668  or Bib\SpecialChar TeX
9669  is used to generate a Bibliography.
9670  Primarily used in cite engine files (see 
9671 \begin_inset CommandInset ref
9672 LatexCommand ref
9673 reference "subsec:Cite-Engine-Files"
9674 plural "false"
9675 caps "false"
9676 noprefix "false"
9677
9678 \end_inset
9679
9680 ).
9681 \end_layout
9682
9683 \begin_layout Description
9684 \begin_inset Flex Code
9685 status collapsed
9686
9687 \begin_layout Plain Layout
9688 ClassOptions
9689 \end_layout
9690
9691 \end_inset
9692
9693  Describes various global options supported by the document class.
9694  See 
9695 \begin_inset CommandInset ref
9696 LatexCommand ref
9697 reference "subsec:ClassOptions"
9698
9699 \end_inset
9700
9701  for a description.
9702  Must end with 
9703 \begin_inset Quotes eld
9704 \end_inset
9705
9706
9707 \begin_inset Flex Code
9708 status collapsed
9709
9710 \begin_layout Plain Layout
9711 End
9712 \end_layout
9713
9714 \end_inset
9715
9716
9717 \begin_inset Quotes erd
9718 \end_inset
9719
9720 .
9721 \end_layout
9722
9723 \begin_layout Description
9724 \begin_inset Flex Code
9725 status collapsed
9726
9727 \begin_layout Plain Layout
9728 Columns
9729 \end_layout
9730
9731 \end_inset
9732
9733  [
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738
9739 \emph on
9740 1
9741 \end_layout
9742
9743 \end_inset
9744
9745 ,
9746 \begin_inset space \thinspace{}
9747 \end_inset
9748
9749
9750 \begin_inset Flex Code
9751 status collapsed
9752
9753 \begin_layout Plain Layout
9754 2
9755 \end_layout
9756
9757 \end_inset
9758
9759 ] Whether the class should 
9760 \emph on
9761 default
9762 \emph default
9763  to having one or two columns.
9764  Can be changed in the 
9765 \begin_inset Flex Noun
9766 status collapsed
9767
9768 \begin_layout Plain Layout
9769 Document\SpecialChar menuseparator
9770 Settings
9771 \end_layout
9772
9773 \end_inset
9774
9775  dialog.
9776 \end_layout
9777
9778 \begin_layout Description
9779 \begin_inset Flex Code
9780 status collapsed
9781
9782 \begin_layout Plain Layout
9783 Counter
9784 \end_layout
9785
9786 \end_inset
9787
9788  [
9789 \begin_inset Flex Code
9790 status collapsed
9791
9792 \begin_layout Plain Layout
9793 string
9794 \end_layout
9795
9796 \end_inset
9797
9798 ] This sequence defines the properties for a counter.
9799  If the counter does not yet exist, it is created; if it does exist, it
9800  is modified.
9801  Must end with 
9802 \begin_inset Quotes eld
9803 \end_inset
9804
9805
9806 \begin_inset Flex Code
9807 status collapsed
9808
9809 \begin_layout Plain Layout
9810 End
9811 \end_layout
9812
9813 \end_inset
9814
9815
9816 \begin_inset Quotes erd
9817 \end_inset
9818
9819 .
9820 \begin_inset Newline newline
9821 \end_inset
9822
9823 See 
9824 \begin_inset CommandInset ref
9825 LatexCommand ref
9826 reference "subsec:Counters"
9827
9828 \end_inset
9829
9830  for details on counters.
9831 \end_layout
9832
9833 \begin_layout Description
9834 \begin_inset Flex Code
9835 status collapsed
9836
9837 \begin_layout Plain Layout
9838 DefaultFont
9839 \end_layout
9840
9841 \end_inset
9842
9843  Sets the default font used to display the document.
9844  See 
9845 \begin_inset CommandInset ref
9846 LatexCommand ref
9847 reference "subsec:Font-description"
9848
9849 \end_inset
9850
9851  for how to declare fonts.
9852  Must end with 
9853 \begin_inset Quotes eld
9854 \end_inset
9855
9856
9857 \begin_inset Flex Code
9858 status collapsed
9859
9860 \begin_layout Plain Layout
9861 EndFont
9862 \end_layout
9863
9864 \end_inset
9865
9866
9867 \begin_inset Quotes erd
9868 \end_inset
9869
9870 .
9871 \end_layout
9872
9873 \begin_layout Description
9874 \begin_inset Flex Code
9875 status collapsed
9876
9877 \begin_layout Plain Layout
9878 DefaultModule
9879 \end_layout
9880
9881 \end_inset
9882
9883  [
9884 \begin_inset Flex Code
9885 status collapsed
9886
9887 \begin_layout Plain Layout
9888 <module>
9889 \end_layout
9890
9891 \end_inset
9892
9893 ] Specifies a module to be included by default with this document class.
9894  The module is specified as filename without the 
9895 \begin_inset Flex Code
9896 status collapsed
9897
9898 \begin_layout Plain Layout
9899 .module
9900 \end_layout
9901
9902 \end_inset
9903
9904  extension.
9905  The user can still remove the module, but it will be active at the outset.
9906  (This applies only when new files are created, or when this class is chosen
9907  for an existing document.)
9908 \end_layout
9909
9910 \begin_layout Description
9911 \begin_inset Flex Code
9912 status collapsed
9913
9914 \begin_layout Plain Layout
9915 DefaultStyle
9916 \end_layout
9917
9918 \end_inset
9919
9920  [
9921 \begin_inset Flex Code
9922 status collapsed
9923
9924 \begin_layout Plain Layout
9925 <style>
9926 \end_layout
9927
9928 \end_inset
9929
9930 ] This is the style that will be assigned to new paragraphs, usually 
9931 \begin_inset Flex Noun
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935 Standard
9936 \end_layout
9937
9938 \end_inset
9939
9940 .
9941  This will default to the first defined style if not given, but you are
9942  encouraged to use this directive.
9943 \end_layout
9944
9945 \begin_layout Description
9946
9947 \change_inserted -970929547 1515112870
9948 \begin_inset Flex Code
9949 status collapsed
9950
9951 \begin_layout Plain Layout
9952
9953 \change_inserted -970929547 1515112782
9954 DocBookRoot
9955 \change_unchanged
9956
9957 \end_layout
9958
9959 \end_inset
9960
9961  [
9962 \begin_inset Flex Code
9963 status collapsed
9964
9965 \begin_layout Plain Layout
9966
9967 \change_inserted -970929547 1515112766
9968 string
9969 \change_unchanged
9970
9971 \end_layout
9972
9973 \end_inset
9974
9975 ] The root element (at the top of the document) to use when outputting documents
9976  with this class in DocBook.
9977  The default value is 
9978 \begin_inset Quotes eld
9979 \end_inset
9980
9981
9982 \begin_inset Flex Code
9983 status collapsed
9984
9985 \begin_layout Plain Layout
9986
9987 \change_inserted -970929547 1515112845
9988 article
9989 \change_unchanged
9990
9991 \end_layout
9992
9993 \end_inset
9994
9995
9996 \begin_inset Quotes erd
9997 \end_inset
9998
9999 .
10000
10001 \change_deleted 1075283030 1594226862
10002  
10003 \change_inserted 1075283030 1594226777
10004
10005 \end_layout
10006
10007 \begin_layout Description
10008
10009 \change_inserted 1075283030 1594226859
10010 \begin_inset Flex Code
10011 status collapsed
10012
10013 \begin_layout Plain Layout
10014
10015 \change_inserted 1075283030 1594226785
10016 DocBookForceAbstract
10017 \change_unchanged
10018
10019 \end_layout
10020
10021 \end_inset
10022
10023  [
10024 \begin_inset Flex Code
10025 status collapsed
10026
10027 \begin_layout Plain Layout
10028
10029 \change_inserted 1075283030 1594226804
10030 boolean
10031 \change_unchanged
10032
10033 \end_layout
10034
10035 \end_inset
10036
10037 ] If 
10038 \begin_inset Quotes eld
10039 \end_inset
10040
10041
10042 \family typewriter
10043 true
10044 \family default
10045
10046 \begin_inset Quotes erd
10047 \end_inset
10048
10049 , the root element will always have an 
10050 \family typewriter
10051 <abstract>
10052 \family default
10053  tag.
10054  The default value is 
10055 \begin_inset Quotes eld
10056 \end_inset
10057
10058
10059 \family typewriter
10060 false
10061 \family default
10062
10063 \begin_inset Quotes erd
10064 \end_inset
10065
10066 .
10067 \change_unchanged
10068
10069 \end_layout
10070
10071 \begin_layout Description
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076 ExcludesModule
10077 \end_layout
10078
10079 \end_inset
10080
10081  [
10082 \begin_inset Flex Code
10083 status collapsed
10084
10085 \begin_layout Plain Layout
10086 <module>
10087 \end_layout
10088
10089 \end_inset
10090
10091 ] This tag indicates that the module (which is specified by filename without
10092  the 
10093 \begin_inset Flex Code
10094 status collapsed
10095
10096 \begin_layout Plain Layout
10097 .module
10098 \end_layout
10099
10100 \end_inset
10101
10102  extension) cannot be used with this document class.
10103  This might be used in a journal-specific layout file to prevent, say, the
10104  use of the 
10105 \begin_inset Flex Code
10106 status collapsed
10107
10108 \begin_layout Plain Layout
10109 theorems-sec
10110 \end_layout
10111
10112 \end_inset
10113
10114  module that numbers theorems by section.
10115  This tag may 
10116 \emph on
10117 not
10118 \emph default
10119  be used in a module.
10120  Modules have their own way of excluding other modules (see 
10121 \begin_inset CommandInset ref
10122 LatexCommand ref
10123 reference "subsec:Layout-modules"
10124
10125 \end_inset
10126
10127 ).
10128 \end_layout
10129
10130 \begin_layout Description
10131 \begin_inset Flex Code
10132 status collapsed
10133
10134 \begin_layout Plain Layout
10135 Float
10136 \end_layout
10137
10138 \end_inset
10139
10140  Defines a new float.
10141  See 
10142 \begin_inset CommandInset ref
10143 LatexCommand ref
10144 reference "subsec:Floats"
10145
10146 \end_inset
10147
10148  for details.
10149  Must end with 
10150 \begin_inset Quotes eld
10151 \end_inset
10152
10153
10154 \begin_inset Flex Code
10155 status collapsed
10156
10157 \begin_layout Plain Layout
10158 End
10159 \end_layout
10160
10161 \end_inset
10162
10163
10164 \begin_inset Quotes erd
10165 \end_inset
10166
10167 .
10168 \end_layout
10169
10170 \begin_layout Description
10171 \begin_inset Flex Code
10172 status collapsed
10173
10174 \begin_layout Plain Layout
10175 HTMLPreamble
10176 \end_layout
10177
10178 \end_inset
10179
10180  Sets the information that will be output in the 
10181 \begin_inset Flex Code
10182 status collapsed
10183
10184 \begin_layout Plain Layout
10185 <head>
10186 \end_layout
10187
10188 \end_inset
10189
10190  block when this document class is output to XHTML.
10191  Note that this will completely override any prior 
10192 \begin_inset Flex Code
10193 status collapsed
10194
10195 \begin_layout Plain Layout
10196 HTMLPreamble
10197 \end_layout
10198
10199 \end_inset
10200
10201  or 
10202 \begin_inset Flex Code
10203 status collapsed
10204
10205 \begin_layout Plain Layout
10206 AddToHTMLPreamble
10207 \end_layout
10208
10209 \end_inset
10210
10211  declarations.
10212  (Use
10213 \begin_inset Newline newline
10214 \end_inset
10215
10216
10217 \begin_inset Flex Code
10218 status collapsed
10219
10220 \begin_layout Plain Layout
10221 AddToHTMLPreamble
10222 \end_layout
10223
10224 \end_inset
10225
10226  if you just want to add material to the preamble.) Must end with 
10227 \begin_inset Quotes eld
10228 \end_inset
10229
10230
10231 \begin_inset Flex Code
10232 status collapsed
10233
10234 \begin_layout Plain Layout
10235 EndPreamble
10236 \end_layout
10237
10238 \end_inset
10239
10240
10241 \begin_inset Quotes erd
10242 \end_inset
10243
10244 .
10245 \end_layout
10246
10247 \begin_layout Description
10248 \begin_inset Flex Code
10249 status collapsed
10250
10251 \begin_layout Plain Layout
10252 HTMLTOCSection
10253 \end_layout
10254
10255 \end_inset
10256
10257  [
10258 \begin_inset Flex Code
10259 status collapsed
10260
10261 \begin_layout Plain Layout
10262 <style>
10263 \end_layout
10264
10265 \end_inset
10266
10267 ] The style to use for the table of contents, bibliography, and so forth,
10268  when the document is output to HTML.
10269  For articles, this should normally be 
10270 \begin_inset Flex Code
10271 status collapsed
10272
10273 \begin_layout Plain Layout
10274 Section
10275 \end_layout
10276
10277 \end_inset
10278
10279 ; for books 
10280 \begin_inset Flex Code
10281 status collapsed
10282
10283 \begin_layout Plain Layout
10284 Chapter
10285 \end_layout
10286
10287 \end_inset
10288
10289 .
10290  If it is not given, then \SpecialChar LyX
10291  will attempt to figure out which layout to use.
10292 \end_layout
10293
10294 \begin_layout Description
10295 \begin_inset Flex Code
10296 status collapsed
10297
10298 \begin_layout Plain Layout
10299 IfCounter
10300 \end_layout
10301
10302 \end_inset
10303
10304  [
10305 \begin_inset Flex Code
10306 status collapsed
10307
10308 \begin_layout Plain Layout
10309 <counter>
10310 \end_layout
10311
10312 \end_inset
10313
10314 ] Modifies the properties of the given counter.
10315  If the counter does not exist, the statement is ignored.
10316  Must end with 
10317 \begin_inset Quotes eld
10318 \end_inset
10319
10320
10321 \begin_inset Flex Code
10322 status collapsed
10323
10324 \begin_layout Plain Layout
10325 End
10326 \end_layout
10327
10328 \end_inset
10329
10330
10331 \begin_inset Quotes erd
10332 \end_inset
10333
10334 .
10335 \begin_inset Newline newline
10336 \end_inset
10337
10338 See 
10339 \begin_inset CommandInset ref
10340 LatexCommand ref
10341 reference "subsec:Counters"
10342
10343 \end_inset
10344
10345  for details on counters.
10346 \end_layout
10347
10348 \begin_layout Description
10349 \begin_inset Flex Code
10350 status collapsed
10351
10352 \begin_layout Plain Layout
10353 Input
10354 \end_layout
10355
10356 \end_inset
10357
10358  [
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363 <filename>
10364 \end_layout
10365
10366 \end_inset
10367
10368 ] This allows you to include another layout definition file within yours
10369  to avoid duplicating commands.
10370  Common examples are the standard layout files, for example, 
10371 \begin_inset Flex Code
10372 status collapsed
10373
10374 \begin_layout Plain Layout
10375 stdclass.inc
10376 \end_layout
10377
10378 \end_inset
10379
10380 , which contains most of the basic layouts.
10381 \change_inserted -712698321 1611646803
10382
10383 \end_layout
10384
10385 \begin_layout Description
10386
10387 \change_inserted -712698321 1611646804
10388 \begin_inset Flex Code
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392
10393 \change_inserted -712698321 1611646837
10394 InputGlobal
10395 \change_unchanged
10396
10397 \end_layout
10398
10399 \end_inset
10400
10401  [
10402 \begin_inset Flex Code
10403 status collapsed
10404
10405 \begin_layout Plain Layout
10406
10407 \change_inserted -712698321 1611646804
10408 <filename>
10409 \change_unchanged
10410
10411 \end_layout
10412
10413 \end_inset
10414
10415 ] is a variant of the 
10416 \begin_inset Flex Code
10417 status collapsed
10418
10419 \begin_layout Plain Layout
10420
10421 \change_inserted -712698321 1611646804
10422 Input
10423 \change_unchanged
10424
10425 \end_layout
10426
10427 \end_inset
10428
10429  command which does not look for files in the user directory.
10430  This allows to create a file 
10431 \begin_inset Flex Code
10432 status collapsed
10433
10434 \begin_layout Plain Layout
10435
10436 \change_inserted -712698321 1611646804
10437 name.layout
10438 \change_unchanged
10439
10440 \end_layout
10441
10442 \end_inset
10443
10444  or 
10445 \begin_inset Flex Code
10446 status collapsed
10447
10448 \begin_layout Plain Layout
10449
10450 \change_inserted -712698321 1611646804
10451 name.inc
10452 \change_unchanged
10453
10454 \end_layout
10455
10456 \end_inset
10457
10458  in the user directory which includes a global file with the same name via
10459  
10460 \begin_inset Flex Code
10461 status collapsed
10462
10463 \begin_layout Plain Layout
10464
10465 \change_inserted -712698321 1611646853
10466 InputGlobal name
10467 \change_unchanged
10468
10469 \end_layout
10470
10471 \end_inset
10472
10473  or 
10474 \begin_inset Flex Code
10475 status collapsed
10476
10477 \begin_layout Plain Layout
10478
10479 \change_inserted -712698321 1611646855
10480 InputGlobal name.inc
10481 \change_unchanged
10482
10483 \end_layout
10484
10485 \end_inset
10486
10487 , respectively (with 
10488 \begin_inset Flex Code
10489 status collapsed
10490
10491 \begin_layout Plain Layout
10492
10493 \change_inserted -712698321 1611646804
10494 Input
10495 \change_unchanged
10496
10497 \end_layout
10498
10499 \end_inset
10500
10501 , the file would recursively include itself).
10502  This way, you can modify global files without having to completely copy
10503  them.
10504 \change_unchanged
10505
10506 \end_layout
10507
10508 \begin_layout Description
10509 \begin_inset Flex Code
10510 status collapsed
10511
10512 \begin_layout Plain Layout
10513 InsetLayout
10514 \end_layout
10515
10516 \end_inset
10517
10518  [
10519 \begin_inset Flex Code
10520 status collapsed
10521
10522 \begin_layout Plain Layout
10523 <type>
10524 \end_layout
10525
10526 \end_inset
10527
10528 ] This section (re-)defines the layout of an inset.
10529  It can be applied to an existing inset or to a new, user-defined inset,
10530  e.g., a new character style.
10531  Must end with 
10532 \begin_inset Quotes eld
10533 \end_inset
10534
10535
10536 \begin_inset Flex Code
10537 status collapsed
10538
10539 \begin_layout Plain Layout
10540 End
10541 \end_layout
10542
10543 \end_inset
10544
10545
10546 \begin_inset Quotes erd
10547 \end_inset
10548
10549 .
10550 \begin_inset Newline newline
10551 \end_inset
10552
10553 See 
10554 \begin_inset CommandInset ref
10555 LatexCommand ref
10556 reference "subsec:Flex-insets-and"
10557
10558 \end_inset
10559
10560  for more information.
10561  
10562 \end_layout
10563
10564 \begin_layout Description
10565 \begin_inset Flex Code
10566 status collapsed
10567
10568 \begin_layout Plain Layout
10569 LeftMargin
10570 \end_layout
10571
10572 \end_inset
10573
10574  [
10575 \begin_inset Flex Code
10576 status collapsed
10577
10578 \begin_layout Plain Layout
10579 string
10580 \end_layout
10581
10582 \end_inset
10583
10584 ] A string that indicates the width of the left margin on the screen, for
10585  example, 
10586 \begin_inset Quotes eld
10587 \end_inset
10588
10589
10590 \begin_inset Flex Code
10591 status collapsed
10592
10593 \begin_layout Plain Layout
10594 MMMMM
10595 \end_layout
10596
10597 \end_inset
10598
10599
10600 \begin_inset Quotes erd
10601 \end_inset
10602
10603 .
10604  (Note that this is not a `length', like 
10605 \begin_inset Quotes eld
10606 \end_inset
10607
10608 2ex
10609 \begin_inset Quotes erd
10610 \end_inset
10611
10612 .)
10613 \end_layout
10614
10615 \begin_layout Description
10616 \begin_inset Flex Code
10617 status collapsed
10618
10619 \begin_layout Plain Layout
10620 MaxCiteNames
10621 \end_layout
10622
10623 \end_inset
10624
10625  [
10626 \begin_inset Flex Code
10627 status collapsed
10628
10629 \begin_layout Plain Layout
10630 integer
10631 \end_layout
10632
10633 \end_inset
10634
10635 ] An integer that determines the maximal number of names displayed in an
10636  author-year citation before the citation switches to 
10637 \begin_inset Quotes eld
10638 \end_inset
10639
10640 FirstAuthor et al.
10641 \begin_inset Quotes erd
10642 \end_inset
10643
10644 .
10645  Primarily used in cite engine files (see 
10646 \begin_inset CommandInset ref
10647 LatexCommand ref
10648 reference "subsec:Cite-Engine-Files"
10649 plural "false"
10650 caps "false"
10651 noprefix "false"
10652
10653 \end_inset
10654
10655 ).
10656 \end_layout
10657
10658 \begin_layout Description
10659
10660 \change_inserted -712698321 1612018485
10661 \begin_inset Flex Code
10662 status collapsed
10663
10664 \begin_layout Plain Layout
10665
10666 \change_inserted -712698321 1612018457
10667 ModifyInsetLayout
10668 \change_unchanged
10669
10670 \end_layout
10671
10672 \end_inset
10673
10674  [
10675 \begin_inset Flex Code
10676 status collapsed
10677
10678 \begin_layout Plain Layout
10679
10680 \change_inserted -712698321 1612018466
10681 <type>
10682 \change_unchanged
10683
10684 \end_layout
10685
10686 \end_inset
10687
10688 ] Modifies the layout of an inset.
10689  If the layout does not exist, this section is ignored.
10690  Must end with 
10691 \begin_inset Quotes eld
10692 \end_inset
10693
10694
10695 \begin_inset Flex Code
10696 status collapsed
10697
10698 \begin_layout Plain Layout
10699
10700 \change_inserted -712698321 1612018452
10701 End
10702 \change_unchanged
10703
10704 \end_layout
10705
10706 \end_inset
10707
10708
10709 \begin_inset Quotes erd
10710 \end_inset
10711
10712 .
10713 \end_layout
10714
10715 \begin_layout Description
10716 \begin_inset Flex Code
10717 status collapsed
10718
10719 \begin_layout Plain Layout
10720 ModifyStyle
10721 \end_layout
10722
10723 \end_inset
10724
10725  [
10726 \begin_inset Flex Code
10727 status collapsed
10728
10729 \begin_layout Plain Layout
10730 <style>
10731 \end_layout
10732
10733 \end_inset
10734
10735 ] Modifies the properties of the given paragraph style.
10736  If the style does not exist, this section is ignored.
10737  Must end with 
10738 \begin_inset Quotes eld
10739 \end_inset
10740
10741
10742 \begin_inset Flex Code
10743 status collapsed
10744
10745 \begin_layout Plain Layout
10746 End
10747 \end_layout
10748
10749 \end_inset
10750
10751
10752 \begin_inset Quotes erd
10753 \end_inset
10754
10755 .
10756 \end_layout
10757
10758 \begin_layout Description
10759 \begin_inset Flex Code
10760 status collapsed
10761
10762 \begin_layout Plain Layout
10763 NoCounter
10764 \end_layout
10765
10766 \end_inset
10767
10768  [
10769 \begin_inset Flex Code
10770 status collapsed
10771
10772 \begin_layout Plain Layout
10773 <counter>
10774 \end_layout
10775
10776 \end_inset
10777
10778 ] Deletes an existing counter, usually one defined in an included file.
10779 \end_layout
10780
10781 \begin_layout Description
10782 \begin_inset Flex Code
10783 status collapsed
10784
10785 \begin_layout Plain Layout
10786 NoFloat
10787 \end_layout
10788
10789 \end_inset
10790
10791  [
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796 <float>
10797 \end_layout
10798
10799 \end_inset
10800
10801 ] Deletes an existing float.
10802  This is particularly useful when you want to suppress a float that has
10803  been defined in an input file.
10804 \end_layout
10805
10806 \begin_layout Description
10807 \begin_inset Flex Code
10808 status collapsed
10809
10810 \begin_layout Plain Layout
10811 NoStyle
10812 \end_layout
10813
10814 \end_inset
10815
10816  [
10817 \begin_inset Flex Code
10818 status collapsed
10819
10820 \begin_layout Plain Layout
10821 <style>
10822 \end_layout
10823
10824 \end_inset
10825
10826 ] Deletes an existing style.
10827 \end_layout
10828
10829 \begin_layout Description
10830 \begin_inset Flex Code
10831 status collapsed
10832
10833 \begin_layout Plain Layout
10834 OutlinerName
10835 \end_layout
10836
10837 \end_inset
10838
10839  [
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844 <type>
10845 \end_layout
10846
10847 \end_inset
10848
10849 ] [
10850 \begin_inset Flex Code
10851 status collapsed
10852
10853 \begin_layout Plain Layout
10854 <string>
10855 \end_layout
10856
10857 \end_inset
10858
10859 ] Define a new table of contents with type 
10860 \begin_inset Flex Code
10861 status collapsed
10862
10863 \begin_layout Plain Layout
10864 <type>
10865 \end_layout
10866
10867 \end_inset
10868
10869  and name 
10870 \begin_inset Flex Code
10871 status collapsed
10872
10873 \begin_layout Plain Layout
10874 <string>
10875 \end_layout
10876
10877 \end_inset
10878
10879 .
10880  See also the AddToToc commands.
10881 \end_layout
10882
10883 \begin_layout Description
10884 \begin_inset Flex Code
10885 status collapsed
10886
10887 \begin_layout Plain Layout
10888 OutputFormat
10889 \end_layout
10890
10891 \end_inset
10892
10893  [
10894 \begin_inset Flex Code
10895 status collapsed
10896
10897 \begin_layout Plain Layout
10898 <format>
10899 \end_layout
10900
10901 \end_inset
10902
10903 ] The file format (as defined in the \SpecialChar LyX
10904  preferences) produced by this document
10905  class.
10906  It is mainly useful when 
10907 \begin_inset Flex Code
10908 status collapsed
10909
10910 \begin_layout Plain Layout
10911 OutputType
10912 \end_layout
10913
10914 \end_inset
10915
10916  is 
10917 \begin_inset Flex Code
10918 status collapsed
10919
10920 \begin_layout Plain Layout
10921 literate
10922 \end_layout
10923
10924 \end_inset
10925
10926  and one wants to define a new type of literate document.
10927  The format is reset to 
10928 \change_deleted 5863208 1594239413
10929
10930 \begin_inset Quotes eld
10931 \end_inset
10932
10933
10934 \begin_inset Flex Code
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938 docbook
10939 \end_layout
10940
10941 \end_inset
10942
10943
10944 \begin_inset Quotes erd
10945 \end_inset
10946
10947  or
10948 \change_unchanged
10949  
10950 \begin_inset Quotes eld
10951 \end_inset
10952
10953
10954 \begin_inset Flex Code
10955 status collapsed
10956
10957 \begin_layout Plain Layout
10958 latex
10959 \end_layout
10960
10961 \end_inset
10962
10963
10964 \begin_inset Quotes erd
10965 \end_inset
10966
10967  when the corresponding 
10968 \begin_inset Flex Code
10969 status collapsed
10970
10971 \begin_layout Plain Layout
10972 OutputType
10973 \end_layout
10974
10975 \end_inset
10976
10977  parameter is encountered.
10978 \end_layout
10979
10980 \begin_layout Description
10981 \begin_inset Flex Code
10982 status collapsed
10983
10984 \begin_layout Plain Layout
10985 OutputType
10986 \end_layout
10987
10988 \end_inset
10989
10990  [
10991 \begin_inset Flex Code
10992 status collapsed
10993
10994 \begin_layout Plain Layout
10995
10996 \emph on
10997 lat
10998 \emph default
10999 ex
11000 \end_layout
11001
11002 \end_inset
11003
11004
11005 \change_deleted 5863208 1594239430
11006
11007 \begin_inset Flex Code
11008 status collapsed
11009
11010 \begin_layout Plain Layout
11011 docbook
11012 \end_layout
11013
11014 \end_inset
11015
11016 ,
11017 \change_unchanged
11018  
11019 \begin_inset Flex Code
11020 status collapsed
11021
11022 \begin_layout Plain Layout
11023 literate
11024 \end_layout
11025
11026 \end_inset
11027
11028 ] Specifies what sort of output documents using this class will produce.
11029 \end_layout
11030
11031 \begin_layout Description
11032 \begin_inset Flex Code
11033 status collapsed
11034
11035 \begin_layout Plain Layout
11036 PackageOptions
11037 \end_layout
11038
11039 \end_inset
11040
11041  [
11042 \begin_inset Flex Code
11043 status collapsed
11044
11045 \begin_layout Plain Layout
11046 string
11047 \end_layout
11048
11049 \end_inset
11050
11051  
11052 \begin_inset Flex Code
11053 status collapsed
11054
11055 \begin_layout Plain Layout
11056 string
11057 \end_layout
11058
11059 \end_inset
11060
11061 ] Specifies options, given in the second string, for the package named by
11062  the first string.
11063  For example, 
11064 \begin_inset Quotes eld
11065 \end_inset
11066
11067
11068 \begin_inset Flex Code
11069 status collapsed
11070
11071 \begin_layout Plain Layout
11072 PackageOptions natbib square
11073 \end_layout
11074
11075 \end_inset
11076
11077
11078 \begin_inset Quotes erd
11079 \end_inset
11080
11081  will cause 
11082 \begin_inset Flex Code
11083 status collapsed
11084
11085 \begin_layout Plain Layout
11086 natbib
11087 \end_layout
11088
11089 \end_inset
11090
11091  to be loaded with the 
11092 \begin_inset Flex Code
11093 status collapsed
11094
11095 \begin_layout Plain Layout
11096 square
11097 \end_layout
11098
11099 \end_inset
11100
11101  option.
11102  (For \SpecialChar TeX
11103 perts, this causes \SpecialChar LyX
11104  to output: 
11105 \begin_inset Flex Code
11106 status collapsed
11107
11108 \begin_layout Plain Layout
11109
11110 \backslash
11111 PassOptionsToPackage{natbib}{square}
11112 \end_layout
11113
11114 \end_inset
11115
11116  prior to loading 
11117 \begin_inset Flex Code
11118 status collapsed
11119
11120 \begin_layout Plain Layout
11121 natbib
11122 \end_layout
11123
11124 \end_inset
11125
11126 .)
11127 \change_inserted -712698321 1565102364
11128
11129 \end_layout
11130
11131 \begin_layout Description
11132
11133 \change_inserted -712698321 1565102470
11134 \begin_inset Flex Code
11135 status collapsed
11136
11137 \begin_layout Plain Layout
11138
11139 \change_inserted -712698321 1565102365
11140 PageSize
11141 \change_unchanged
11142
11143 \end_layout
11144
11145 \end_inset
11146
11147  [
11148 \begin_inset Flex Code
11149 status collapsed
11150
11151 \begin_layout Plain Layout
11152
11153 \change_inserted -712698321 1565105222
11154
11155 \emph on
11156 custom
11157 \emph default
11158 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
11159  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
11160 \change_unchanged
11161
11162 \end_layout
11163
11164 \end_inset
11165
11166 ] The default page size.
11167  This is used by some converters.
11168 \change_unchanged
11169
11170 \end_layout
11171
11172 \begin_layout Description
11173 \begin_inset Flex Code
11174 status collapsed
11175
11176 \begin_layout Plain Layout
11177 PageStyle
11178 \end_layout
11179
11180 \end_inset
11181
11182  [
11183 \begin_inset Flex Code
11184 status collapsed
11185
11186 \begin_layout Plain Layout
11187
11188 \emph on
11189 plain
11190 \end_layout
11191
11192 \end_inset
11193
11194
11195 \begin_inset Flex Code
11196 status collapsed
11197
11198 \begin_layout Plain Layout
11199 empty
11200 \end_layout
11201
11202 \end_inset
11203
11204
11205 \begin_inset Flex Code
11206 status collapsed
11207
11208 \begin_layout Plain Layout
11209 headings
11210 \end_layout
11211
11212 \end_inset
11213
11214 ] The default pagestyle.
11215  Can be changed in the 
11216 \begin_inset Flex Noun
11217 status collapsed
11218
11219 \begin_layout Plain Layout
11220 Document\SpecialChar menuseparator
11221 Settings
11222 \end_layout
11223
11224 \end_inset
11225
11226  dialog.
11227 \end_layout
11228
11229 \begin_layout Description
11230 \begin_inset Flex Code
11231 status collapsed
11232
11233 \begin_layout Plain Layout
11234 Preamble
11235 \end_layout
11236
11237 \end_inset
11238
11239  Sets the preamble for the \SpecialChar LaTeX
11240  document.
11241  Note that this will completely override any prior 
11242 \begin_inset Flex Code
11243 status collapsed
11244
11245 \begin_layout Plain Layout
11246 Preamble
11247 \end_layout
11248
11249 \end_inset
11250
11251  or 
11252 \begin_inset Flex Code
11253 status collapsed
11254
11255 \begin_layout Plain Layout
11256 AddToPreamble
11257 \end_layout
11258
11259 \end_inset
11260
11261  declarations.
11262  (Use 
11263 \begin_inset Flex Code
11264 status collapsed
11265
11266 \begin_layout Plain Layout
11267 AddToPreamble
11268 \end_layout
11269
11270 \end_inset
11271
11272  if you just want to add material to the preamble.) Must end with 
11273 \begin_inset Quotes eld
11274 \end_inset
11275
11276
11277 \begin_inset Flex Code
11278 status collapsed
11279
11280 \begin_layout Plain Layout
11281 EndPreamble
11282 \end_layout
11283
11284 \end_inset
11285
11286
11287 \begin_inset Quotes erd
11288 \end_inset
11289
11290 .
11291 \change_inserted -712698321 1612018500
11292
11293 \end_layout
11294
11295 \begin_layout Description
11296
11297 \change_inserted -712698321 1612018547
11298 \begin_inset Flex Code
11299 status collapsed
11300
11301 \begin_layout Plain Layout
11302
11303 \change_inserted -712698321 1612018506
11304 ProvideInsetLayout
11305 \change_unchanged
11306
11307 \end_layout
11308
11309 \end_inset
11310
11311  [
11312 \begin_inset Flex Code
11313 status collapsed
11314
11315 \begin_layout Plain Layout
11316
11317 \change_inserted -712698321 1612018509
11318 <type>
11319 \change_unchanged
11320
11321 \end_layout
11322
11323 \end_inset
11324
11325 ] Defines the layout of an inset if it does not already exist.
11326  If the layout does exist, this section is ignored.
11327  Must end with 
11328 \begin_inset Quotes eld
11329 \end_inset
11330
11331
11332 \begin_inset Flex Code
11333 status collapsed
11334
11335 \begin_layout Plain Layout
11336
11337 \change_inserted -712698321 1612018500
11338 End
11339 \change_unchanged
11340
11341 \end_layout
11342
11343 \end_inset
11344
11345
11346 \begin_inset Quotes erd
11347 \end_inset
11348
11349 .
11350 \change_unchanged
11351
11352 \end_layout
11353
11354 \begin_layout Description
11355 \begin_inset Flex Code
11356 status collapsed
11357
11358 \begin_layout Plain Layout
11359 Provides
11360 \end_layout
11361
11362 \end_inset
11363
11364  [
11365 \begin_inset Flex Code
11366 status collapsed
11367
11368 \begin_layout Plain Layout
11369 string
11370 \end_layout
11371
11372 \end_inset
11373
11374 ] [
11375 \begin_inset Flex Code
11376 status collapsed
11377
11378 \begin_layout Plain Layout
11379
11380 \emph on
11381 0
11382 \end_layout
11383
11384 \end_inset
11385
11386 ,
11387 \begin_inset space \thinspace{}
11388 \end_inset
11389
11390
11391 \begin_inset Flex Code
11392 status collapsed
11393
11394 \begin_layout Plain Layout
11395 1
11396 \end_layout
11397
11398 \end_inset
11399
11400 ] Whether the class already provides the feature 
11401 \begin_inset Flex Code
11402 status collapsed
11403
11404 \begin_layout Plain Layout
11405 string
11406 \end_layout
11407
11408 \end_inset
11409
11410 .
11411  A feature is in general the name of a package (e.
11412 \begin_inset space \thinspace{}
11413 \end_inset
11414
11415 g.
11416 \begin_inset space \space{}
11417 \end_inset
11418
11419
11420 \begin_inset Flex Code
11421 status collapsed
11422
11423 \begin_layout Plain Layout
11424 amsmath
11425 \end_layout
11426
11427 \end_inset
11428
11429  or 
11430 \begin_inset Flex Code
11431 status collapsed
11432
11433 \begin_layout Plain Layout
11434 makeidx
11435 \end_layout
11436
11437 \end_inset
11438
11439 ) or a macro (e.
11440 \begin_inset space \thinspace{}
11441 \end_inset
11442
11443 g.
11444 \begin_inset space \space{}
11445 \end_inset
11446
11447
11448 \begin_inset Flex Code
11449 status collapsed
11450
11451 \begin_layout Plain Layout
11452 url
11453 \end_layout
11454
11455 \end_inset
11456
11457  or 
11458 \begin_inset Flex Code
11459 status collapsed
11460
11461 \begin_layout Plain Layout
11462 boldsymbol
11463 \end_layout
11464
11465 \end_inset
11466
11467 ).
11468  See 
11469 \begin_inset CommandInset ref
11470 LatexCommand ref
11471 reference "chap:List-of-functions"
11472
11473 \end_inset
11474
11475  for the list of features.
11476 \end_layout
11477
11478 \begin_layout Description
11479 \begin_inset Flex Code
11480 status collapsed
11481
11482 \begin_layout Plain Layout
11483 ProvidesModule
11484 \end_layout
11485
11486 \end_inset
11487
11488  [
11489 \begin_inset Flex Code
11490 status collapsed
11491
11492 \begin_layout Plain Layout
11493 string
11494 \end_layout
11495
11496 \end_inset
11497
11498 ] Indicates that this layout provides the functionality of the module mentioned,
11499  which should be specified by the filename without the 
11500 \begin_inset Flex Code
11501 status collapsed
11502
11503 \begin_layout Plain Layout
11504 .module
11505 \end_layout
11506
11507 \end_inset
11508
11509  extension.
11510  This will typically be used if the layout includes the module directly,
11511  rather than using the 
11512 \begin_inset Flex Code
11513 status collapsed
11514
11515 \begin_layout Plain Layout
11516 DefaultModule
11517 \end_layout
11518
11519 \end_inset
11520
11521  tag to indicate that it ought to be used.
11522  It could also be used in a module that provided an alternate implementation
11523  of the same functionality.
11524 \end_layout
11525
11526 \begin_layout Description
11527 \begin_inset Flex Code
11528 status collapsed
11529
11530 \begin_layout Plain Layout
11531 ProvideStyle
11532 \end_layout
11533
11534 \end_inset
11535
11536  [
11537 \begin_inset Flex Code
11538 status collapsed
11539
11540 \begin_layout Plain Layout
11541 <style>
11542 \end_layout
11543
11544 \end_inset
11545
11546 ] Creates a new paragraph style if it does not already exist.
11547  If the style does exist, this section is ignored.
11548  Must end with 
11549 \begin_inset Quotes eld
11550 \end_inset
11551
11552
11553 \begin_inset Flex Code
11554 status collapsed
11555
11556 \begin_layout Plain Layout
11557 End
11558 \end_layout
11559
11560 \end_inset
11561
11562
11563 \begin_inset Quotes erd
11564 \end_inset
11565
11566 .
11567 \end_layout
11568
11569 \begin_layout Description
11570 \begin_inset Flex Code
11571 status collapsed
11572
11573 \begin_layout Plain Layout
11574 Requires
11575 \end_layout
11576
11577 \end_inset
11578
11579  [
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584 string
11585 \end_layout
11586
11587 \end_inset
11588
11589 ] Whether the class requires the feature 
11590 \begin_inset Flex Code
11591 status collapsed
11592
11593 \begin_layout Plain Layout
11594 string
11595 \end_layout
11596
11597 \end_inset
11598
11599 .
11600  Multiple features must be separated by commas.
11601  Note that you can only request supported features.
11602  (See 
11603 \begin_inset CommandInset ref
11604 LatexCommand ref
11605 reference "chap:List-of-functions"
11606
11607 \end_inset
11608
11609  for the list of features.).
11610  If you require a package with specific options, you can additionally use
11611  
11612 \begin_inset Flex Code
11613 status collapsed
11614
11615 \begin_layout Plain Layout
11616 PackageOptions
11617 \end_layout
11618
11619 \end_inset
11620
11621 .
11622 \end_layout
11623
11624 \begin_layout Description
11625 \begin_inset Flex Code
11626 status collapsed
11627
11628 \begin_layout Plain Layout
11629 RightMargin
11630 \end_layout
11631
11632 \end_inset
11633
11634  [
11635 \begin_inset Flex Code
11636 status collapsed
11637
11638 \begin_layout Plain Layout
11639 string
11640 \end_layout
11641
11642 \end_inset
11643
11644 ] A string that indicates the width of the right margin on the screen, for
11645  example, 
11646 \begin_inset Quotes eld
11647 \end_inset
11648
11649
11650 \begin_inset Flex Code
11651 status collapsed
11652
11653 \begin_layout Plain Layout
11654 MMMMM
11655 \end_layout
11656
11657 \end_inset
11658
11659
11660 \begin_inset Quotes erd
11661 \end_inset
11662
11663 .
11664 \end_layout
11665
11666 \begin_layout Description
11667 \begin_inset Flex Code
11668 status collapsed
11669
11670 \begin_layout Plain Layout
11671 SecNumDepth
11672 \end_layout
11673
11674 \end_inset
11675
11676  [
11677 \begin_inset Flex Code
11678 status collapsed
11679
11680 \begin_layout Plain Layout
11681 int=3
11682 \end_layout
11683
11684 \end_inset
11685
11686 ] Sets which divisions get numbered.
11687  Corresponds to the
11688 \begin_inset Newline newline
11689 \end_inset
11690
11691
11692 \begin_inset Flex Code
11693 status collapsed
11694
11695 \begin_layout Plain Layout
11696 secnumdepth
11697 \end_layout
11698
11699 \end_inset
11700
11701  counter in \SpecialChar LaTeX
11702 .
11703 \end_layout
11704
11705 \begin_layout Description
11706 \begin_inset Flex Code
11707 status collapsed
11708
11709 \begin_layout Plain Layout
11710 Sides
11711 \end_layout
11712
11713 \end_inset
11714
11715  [
11716 \begin_inset Flex Code
11717 status collapsed
11718
11719 \begin_layout Plain Layout
11720
11721 \emph on
11722 1
11723 \end_layout
11724
11725 \end_inset
11726
11727 ,
11728 \begin_inset space \thinspace{}
11729 \end_inset
11730
11731
11732 \begin_inset Flex Code
11733 status collapsed
11734
11735 \begin_layout Plain Layout
11736 2
11737 \end_layout
11738
11739 \end_inset
11740
11741 ] Whether the class-default should be printing on one or both sides of the
11742  paper.
11743  Can be changed in the 
11744 \begin_inset Flex Noun
11745 status collapsed
11746
11747 \begin_layout Plain Layout
11748 Document\SpecialChar menuseparator
11749 Settings
11750 \end_layout
11751
11752 \end_inset
11753
11754  dialog.
11755 \end_layout
11756
11757 \begin_layout Description
11758 \begin_inset Flex Code
11759 status collapsed
11760
11761 \begin_layout Plain Layout
11762 Style
11763 \end_layout
11764
11765 \end_inset
11766
11767  [
11768 \begin_inset Flex Code
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772 <name>
11773 \end_layout
11774
11775 \end_inset
11776
11777 ] This sequence defines a paragraph style.
11778  If the style does not yet exist, it is created; if it does exist, its parameter
11779 s are modified.
11780  Must end with 
11781 \begin_inset Quotes eld
11782 \end_inset
11783
11784
11785 \begin_inset Flex Code
11786 status collapsed
11787
11788 \begin_layout Plain Layout
11789 End
11790 \end_layout
11791
11792 \end_inset
11793
11794
11795 \begin_inset Quotes erd
11796 \end_inset
11797
11798 .
11799 \begin_inset Newline newline
11800 \end_inset
11801
11802 See 
11803 \begin_inset CommandInset ref
11804 LatexCommand ref
11805 reference "subsec:Paragraph-Styles"
11806
11807 \end_inset
11808
11809  for details on paragraph styles.
11810 \change_inserted -712698321 1553617804
11811
11812 \end_layout
11813
11814 \begin_layout Description
11815
11816 \change_inserted -712698321 1553617862
11817 \begin_inset Flex Code
11818 status collapsed
11819
11820 \begin_layout Plain Layout
11821
11822 \change_inserted -712698321 1553617809
11823 TableStyle
11824 \change_unchanged
11825
11826 \end_layout
11827
11828 \end_inset
11829
11830  [
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835
11836 \change_inserted -712698321 1553617805
11837 <name>
11838 \change_unchanged
11839
11840 \end_layout
11841
11842 \end_inset
11843
11844 ] defines the default table style that is used when inserting a table.
11845  The following styles are available:
11846 \end_layout
11847
11848 \begin_deeper
11849 \begin_layout Itemize
11850
11851 \change_inserted -712698321 1554308039
11852 \begin_inset Flex Code
11853 status collapsed
11854
11855 \begin_layout Plain Layout
11856
11857 \change_inserted -712698321 1554307928
11858 Formal_with_Footline
11859 \change_unchanged
11860
11861 \end_layout
11862
11863 \end_inset
11864
11865 : formal (
11866 \begin_inset Quotes eld
11867 \end_inset
11868
11869 booktabs
11870 \begin_inset Quotes erd
11871 \end_inset
11872
11873 ) style with horizontal lines only, using a bold top and bottom line, the
11874  first and last row are additionally separated from the table body with
11875  a thin middle line.
11876 \end_layout
11877
11878 \begin_layout Itemize
11879
11880 \change_inserted -712698321 1554308087
11881 \begin_inset Flex Code
11882 status collapsed
11883
11884 \begin_layout Plain Layout
11885
11886 \change_inserted -712698321 1554308042
11887 Formal_without_Footline
11888 \change_unchanged
11889
11890 \end_layout
11891
11892 \end_inset
11893
11894 : same as the above, but the last row is not separated with a middle line
11895  from the body.
11896 \end_layout
11897
11898 \begin_layout Itemize
11899
11900 \change_inserted -712698321 1553618031
11901 \begin_inset Flex Code
11902 status collapsed
11903
11904 \begin_layout Plain Layout
11905
11906 \change_inserted -712698321 1553618006
11907 Simple_Grid
11908 \change_unchanged
11909
11910 \end_layout
11911
11912 \end_inset
11913
11914 : Simple table lines.
11915 \end_layout
11916
11917 \begin_layout Itemize
11918
11919 \change_inserted -712698321 1553618309
11920 \begin_inset Flex Code
11921 status collapsed
11922
11923 \begin_layout Plain Layout
11924
11925 \change_inserted -712698321 1553618031
11926 Grid_with_Head
11927 \change_unchanged
11928
11929 \end_layout
11930
11931 \end_inset
11932
11933 : Like 
11934 \begin_inset Flex Code
11935 status collapsed
11936
11937 \begin_layout Plain Layout
11938
11939 \change_inserted -712698321 1553618043
11940 Simple_Grid
11941 \change_unchanged
11942
11943 \end_layout
11944
11945 \end_inset
11946
11947 , but with the header 
11948 \change_deleted 34634807 1619712593
11949 column
11950 \change_inserted 34634807 1619712594
11951 row
11952 \change_inserted -712698321 1553618309
11953  offset with a second horizontal line.
11954  This is also the default style of \SpecialChar LyX
11955 .
11956 \end_layout
11957
11958 \begin_layout Itemize
11959
11960 \change_inserted -712698321 1553618280
11961 \begin_inset Flex Code
11962 status collapsed
11963
11964 \begin_layout Plain Layout
11965
11966 \change_inserted -712698321 1553618261
11967 No_Borders
11968 \change_unchanged
11969
11970 \end_layout
11971
11972 \end_inset
11973
11974 : Table without lines.
11975 \change_unchanged
11976
11977 \end_layout
11978
11979 \end_deeper
11980 \begin_layout Description
11981 \begin_inset Flex Code
11982 status collapsed
11983
11984 \begin_layout Plain Layout
11985 TitleLatexName
11986 \end_layout
11987
11988 \end_inset
11989
11990  [
11991 \begin_inset Flex Code
11992 status collapsed
11993
11994 \begin_layout Plain Layout
11995 string="maketitle"
11996 \end_layout
11997
11998 \end_inset
11999
12000 ] The name of the command or environment to be used with 
12001 \begin_inset Flex Code
12002 status collapsed
12003
12004 \begin_layout Plain Layout
12005 TitleLatexType
12006 \end_layout
12007
12008 \end_inset
12009
12010 .
12011 \end_layout
12012
12013 \begin_layout Description
12014 \begin_inset Flex Code
12015 status collapsed
12016
12017 \begin_layout Plain Layout
12018 TitleLatexType
12019 \end_layout
12020
12021 \end_inset
12022
12023  [
12024 \begin_inset Flex Code
12025 status collapsed
12026
12027 \begin_layout Plain Layout
12028
12029 \emph on
12030 CommandAfter
12031 \end_layout
12032
12033 \end_inset
12034
12035
12036 \begin_inset Flex Code
12037 status collapsed
12038
12039 \begin_layout Plain Layout
12040 Environment
12041 \end_layout
12042
12043 \end_inset
12044
12045 ] Indicates what kind of markup is used to define the title of a document.
12046  
12047 \begin_inset Flex Code
12048 status collapsed
12049
12050 \begin_layout Plain Layout
12051 CommandAfter
12052 \end_layout
12053
12054 \end_inset
12055
12056  means that the macro with name 
12057 \begin_inset Flex Code
12058 status collapsed
12059
12060 \begin_layout Plain Layout
12061 TitleLatexName
12062 \end_layout
12063
12064 \end_inset
12065
12066  will be inserted after the last layout which has 
12067 \begin_inset Quotes eld
12068 \end_inset
12069
12070
12071 \begin_inset Flex Code
12072 status collapsed
12073
12074 \begin_layout Plain Layout
12075 InTitle
12076 \begin_inset space ~
12077 \end_inset
12078
12079 1
12080 \end_layout
12081
12082 \end_inset
12083
12084
12085 \begin_inset Quotes erd
12086 \end_inset
12087
12088 .
12089  
12090 \begin_inset Flex Code
12091 status collapsed
12092
12093 \begin_layout Plain Layout
12094 Environment
12095 \end_layout
12096
12097 \end_inset
12098
12099  corresponds to the case where all layouts which have 
12100 \begin_inset Quotes eld
12101 \end_inset
12102
12103
12104 \begin_inset Flex Code
12105 status collapsed
12106
12107 \begin_layout Plain Layout
12108 InTitle
12109 \begin_inset space ~
12110 \end_inset
12111
12112 1
12113 \end_layout
12114
12115 \end_inset
12116
12117
12118 \begin_inset Quotes erd
12119 \end_inset
12120
12121  should be enclosed into the 
12122 \begin_inset Flex Code
12123 status collapsed
12124
12125 \begin_layout Plain Layout
12126 TitleLatexName
12127 \end_layout
12128
12129 \end_inset
12130
12131  environment.
12132 \end_layout
12133
12134 \begin_layout Description
12135 \begin_inset Flex Code
12136 status collapsed
12137
12138 \begin_layout Plain Layout
12139 TocDepth
12140 \end_layout
12141
12142 \end_inset
12143
12144  [
12145 \begin_inset Flex Code
12146 status collapsed
12147
12148 \begin_layout Plain Layout
12149 int=3
12150 \end_layout
12151
12152 \end_inset
12153
12154 ] Sets which divisions are included in the table of contents.
12155  Corresponds to the 
12156 \begin_inset Flex Code
12157 status collapsed
12158
12159 \begin_layout Plain Layout
12160 tocdepth
12161 \end_layout
12162
12163 \end_inset
12164
12165  counter in \SpecialChar LaTeX
12166 .
12167 \end_layout
12168
12169 \begin_layout Subsection
12170 \begin_inset Flex Code
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174 ClassOptions
12175 \end_layout
12176
12177 \end_inset
12178
12179  section
12180 \begin_inset CommandInset label
12181 LatexCommand label
12182 name "subsec:ClassOptions"
12183
12184 \end_inset
12185
12186
12187 \end_layout
12188
12189 \begin_layout Standard
12190 The 
12191 \begin_inset Flex Code
12192 status collapsed
12193
12194 \begin_layout Plain Layout
12195 ClassOptions
12196 \end_layout
12197
12198 \end_inset
12199
12200  section can contain the following entries:
12201 \end_layout
12202
12203 \begin_layout Description
12204 \begin_inset Flex Code
12205 status collapsed
12206
12207 \begin_layout Plain Layout
12208 FontSize
12209 \end_layout
12210
12211 \end_inset
12212
12213  [
12214 \begin_inset Flex Code
12215 status collapsed
12216
12217 \begin_layout Plain Layout
12218 string="10|11|12"
12219 \end_layout
12220
12221 \end_inset
12222
12223 ] The list of available font sizes for the document's main font, separated
12224  by 
12225 \begin_inset Quotes eld
12226 \end_inset
12227
12228
12229 \begin_inset Flex Code
12230 status collapsed
12231
12232 \begin_layout Plain Layout
12233 |
12234 \end_layout
12235
12236 \end_inset
12237
12238
12239 \begin_inset Quotes erd
12240 \end_inset
12241
12242 .
12243
12244 \change_inserted -712698321 1565110196
12245  Any number is possible.
12246 \end_layout
12247
12248 \begin_layout Description
12249
12250 \change_inserted -712698321 1565110259
12251 \begin_inset Flex Code
12252 status collapsed
12253
12254 \begin_layout Plain Layout
12255
12256 \change_inserted -712698321 1565110199
12257 FontSizeFormat
12258 \change_unchanged
12259
12260 \end_layout
12261
12262 \end_inset
12263
12264  [
12265 \begin_inset Flex Code
12266 status collapsed
12267
12268 \begin_layout Plain Layout
12269
12270 \change_inserted -712698321 1565110196
12271 string
12272 \change_unchanged
12273
12274 \end_layout
12275
12276 \end_inset
12277
12278 ] The format for the font size option.
12279  Default: 
12280 \begin_inset Flex Code
12281 status collapsed
12282
12283 \begin_layout Plain Layout
12284
12285 \change_inserted -712698321 1565110238
12286 $$spt
12287 \change_unchanged
12288
12289 \end_layout
12290
12291 \end_inset
12292
12293 .
12294  
12295 \begin_inset Flex Code
12296 status collapsed
12297
12298 \begin_layout Plain Layout
12299
12300 \change_inserted -712698321 1565110248
12301 $$s
12302 \change_unchanged
12303
12304 \end_layout
12305
12306 \end_inset
12307
12308  is a placeholder for the font size.
12309 \change_unchanged
12310
12311 \end_layout
12312
12313 \begin_layout Description
12314
12315 \change_deleted 5863208 1594239483
12316 \begin_inset Flex Code
12317 status collapsed
12318
12319 \begin_layout Plain Layout
12320 Header
12321 \end_layout
12322
12323 \end_inset
12324
12325  Used to set the DTD line with XML-based output classes.
12326  E.
12327 \begin_inset space \thinspace{}
12328 \end_inset
12329
12330 g.: PUBLIC 
12331 \begin_inset Quotes eld
12332 \end_inset
12333
12334 -//OASIS//DTD DocBook V4.2//EN
12335 \begin_inset Quotes erd
12336 \end_inset
12337
12338 .
12339 \change_inserted -712698321 1565101761
12340
12341 \end_layout
12342
12343 \begin_layout Description
12344
12345 \change_inserted -712698321 1565180598
12346 \begin_inset Flex Code
12347 status collapsed
12348
12349 \begin_layout Plain Layout
12350
12351 \change_inserted -712698321 1565101918
12352 PageSize
12353 \change_unchanged
12354
12355 \end_layout
12356
12357 \end_inset
12358
12359  [
12360 \begin_inset Flex Code
12361 status collapsed
12362
12363 \begin_layout Plain Layout
12364
12365 \change_inserted -712698321 1565105399
12366 string="letter|\SpecialChar allowbreak
12367 legal|\SpecialChar allowbreak
12368 executive|\SpecialChar allowbreak
12369 a0|\SpecialChar allowbreak
12370 a1|\SpecialChar allowbreak
12371 a2|\SpecialChar allowbreak
12372 a3|\SpecialChar allowbreak
12373 a4|\SpecialChar allowbreak
12374 a5|\SpecialChar allowbreak
12375 a6|\SpecialChar allowbreak
12376 b0|\SpecialChar allowbreak
12377 b1|\SpecialChar allowbreak
12378 b2|\SpecialChar allowbreak
12379 b3|\SpecialChar allowbreak
12380 b4|\SpecialChar allowbreak
12381 b5|\SpecialChar allowbreak
12382 b6|\SpecialChar allowbreak
12383 c0|\SpecialChar allowbreak
12384 c1|\SpecialChar allowbreak
12385 c
12386 2|\SpecialChar allowbreak
12387 c3|\SpecialChar allowbreak
12388 c4|\SpecialChar allowbreak
12389 c5|\SpecialChar allowbreak
12390 c6|\SpecialChar allowbreak
12391 b0j|\SpecialChar allowbreak
12392 b1j|\SpecialChar allowbreak
12393 b2j|\SpecialChar allowbreak
12394 b3j|\SpecialChar allowbreak
12395 b4j|\SpecialChar allowbreak
12396 b5j|\SpecialChar allowbreak
12397 b6j"
12398 \change_unchanged
12399
12400 \end_layout
12401
12402 \end_inset
12403
12404 ] The list of available page sizes, separated by 
12405 \begin_inset Quotes eld
12406 \end_inset
12407
12408
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413
12414 \change_inserted -712698321 1565101779
12415 |
12416 \change_unchanged
12417
12418 \end_layout
12419
12420 \end_inset
12421
12422
12423 \begin_inset Quotes erd
12424 \end_inset
12425
12426 .
12427  Currently, only the listed sizes are supported.
12428  Other sizes might be entered as custom class option.
12429 \end_layout
12430
12431 \begin_layout Description
12432
12433 \change_inserted -712698321 1565180623
12434 \begin_inset Flex Code
12435 status collapsed
12436
12437 \begin_layout Plain Layout
12438
12439 \change_inserted -712698321 1565180605
12440 PageSizeFormat
12441 \change_unchanged
12442
12443 \end_layout
12444
12445 \end_inset
12446
12447  [
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452
12453 \change_inserted -712698321 1565180601
12454 string
12455 \change_unchanged
12456
12457 \end_layout
12458
12459 \end_inset
12460
12461 ] The format for the page size option.
12462  Default: 
12463 \begin_inset Flex Code
12464 status collapsed
12465
12466 \begin_layout Plain Layout
12467
12468 \change_inserted -712698321 1565180618
12469 $$spaper
12470 \change_unchanged
12471
12472 \end_layout
12473
12474 \end_inset
12475
12476 .
12477  
12478 \begin_inset Flex Code
12479 status collapsed
12480
12481 \begin_layout Plain Layout
12482
12483 \change_inserted -712698321 1565180601
12484 $$s
12485 \change_unchanged
12486
12487 \end_layout
12488
12489 \end_inset
12490
12491  is a placeholder for the paper size.
12492 \change_unchanged
12493
12494 \end_layout
12495
12496 \begin_layout Description
12497 \begin_inset Flex Code
12498 status collapsed
12499
12500 \begin_layout Plain Layout
12501 PageStyle
12502 \end_layout
12503
12504 \end_inset
12505
12506  [
12507 \begin_inset Flex Code
12508 status collapsed
12509
12510 \begin_layout Plain Layout
12511 string="empty|plain|headings|fancy"
12512 \end_layout
12513
12514 \end_inset
12515
12516 ] The list of available page sty\SpecialChar softhyphen
12517 les, separated by 
12518 \begin_inset Quotes eld
12519 \end_inset
12520
12521
12522 \begin_inset Flex Code
12523 status collapsed
12524
12525 \begin_layout Plain Layout
12526 |
12527 \end_layout
12528
12529 \end_inset
12530
12531
12532 \begin_inset Quotes erd
12533 \end_inset
12534
12535 .
12536 \end_layout
12537
12538 \begin_layout Description
12539 \begin_inset Flex Code
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 Other
12544 \end_layout
12545
12546 \end_inset
12547
12548  [
12549 \begin_inset Flex Code
12550 status collapsed
12551
12552 \begin_layout Plain Layout
12553 string=""
12554 \end_layout
12555
12556 \end_inset
12557
12558 ] Some document class options, separated by a comma, that will be added
12559  to the optional part of the 
12560 \begin_inset Flex Code
12561 status collapsed
12562
12563 \begin_layout Plain Layout
12564
12565 \backslash
12566 documentclass
12567 \end_layout
12568
12569 \end_inset
12570
12571  command.
12572 \end_layout
12573
12574 \begin_layout Standard
12575 The 
12576 \begin_inset Flex Code
12577 status collapsed
12578
12579 \begin_layout Plain Layout
12580 ClassOptions
12581 \end_layout
12582
12583 \end_inset
12584
12585  section must end with 
12586 \begin_inset Quotes eld
12587 \end_inset
12588
12589
12590 \begin_inset Flex Code
12591 status collapsed
12592
12593 \begin_layout Plain Layout
12594 End
12595 \end_layout
12596
12597 \end_inset
12598
12599
12600 \begin_inset Quotes erd
12601 \end_inset
12602
12603 .
12604 \end_layout
12605
12606 \begin_layout Subsection
12607 Paragraph styles
12608 \begin_inset CommandInset label
12609 LatexCommand label
12610 name "subsec:Paragraph-Styles"
12611
12612 \end_inset
12613
12614
12615 \end_layout
12616
12617 \begin_layout Standard
12618 A paragraph style description looks like this:
12619 \begin_inset Foot
12620 status collapsed
12621
12622 \begin_layout Plain Layout
12623 Note that this will either define a new style or modify an existing one.
12624 \end_layout
12625
12626 \end_inset
12627
12628
12629 \end_layout
12630
12631 \begin_layout LyX-Code
12632 Style 
12633 \family roman
12634 \emph on
12635 name
12636 \end_layout
12637
12638 \begin_layout LyX-Code
12639  ...
12640 \end_layout
12641
12642 \begin_layout LyX-Code
12643 End
12644 \end_layout
12645
12646 \begin_layout Standard
12647 where the following commands are allowed:
12648 \end_layout
12649
12650 \begin_layout Description
12651 \begin_inset Flex Code
12652 status collapsed
12653
12654 \begin_layout Plain Layout
12655 AddToToc
12656 \end_layout
12657
12658 \end_inset
12659
12660  [
12661 \begin_inset Flex Code
12662 status collapsed
12663
12664 \begin_layout Plain Layout
12665 string
12666 \end_layout
12667
12668 \end_inset
12669
12670 =""] This paragraph will appear in the table of contents of the given type.
12671  An empty string disables.
12672  See also the OutlinerName and the IsTocCaption commands.
12673  Default: disabled.
12674 \end_layout
12675
12676 \begin_layout Description
12677 \begin_inset Flex Code
12678 status collapsed
12679
12680 \begin_layout Plain Layout
12681 Align
12682 \end_layout
12683
12684 \end_inset
12685
12686  [
12687 \begin_inset Flex Code
12688 status collapsed
12689
12690 \begin_layout Plain Layout
12691
12692 \emph on
12693 block
12694 \emph default
12695 , left, right, center
12696 \end_layout
12697
12698 \end_inset
12699
12700 ] Paragraph alignment.
12701 \end_layout
12702
12703 \begin_layout Description
12704 \begin_inset Flex Code
12705 status collapsed
12706
12707 \begin_layout Plain Layout
12708 AlignPossible
12709 \end_layout
12710
12711 \end_inset
12712
12713  [
12714 \begin_inset Flex Code
12715 status collapsed
12716
12717 \begin_layout Plain Layout
12718
12719 \emph on
12720 block
12721 \emph default
12722 , left, right, center
12723 \end_layout
12724
12725 \end_inset
12726
12727 ] A comma separated list of permitted alignments.
12728  (Some \SpecialChar LaTeX
12729  styles prohibit certain alignments, since those wouldn't make sense.
12730  For example a right-aligned or centered enumeration isn't possible.)
12731 \end_layout
12732
12733 \begin_layout Description
12734 \begin_inset Flex Code
12735 status collapsed
12736
12737 \begin_layout Plain Layout
12738 Argument
12739 \end_layout
12740
12741 \end_inset
12742
12743  [
12744 \begin_inset Flex Code
12745 status collapsed
12746
12747 \begin_layout Plain Layout
12748 int
12749 \end_layout
12750
12751 \end_inset
12752
12753 ] Defines argument number <int> of a command\SpecialChar breakableslash
12754 environment associated with
12755  the current style.
12756
12757 \change_inserted -584632292 1615846868
12758  The definition must end with 
12759 \begin_inset Flex Code
12760 status collapsed
12761
12762 \begin_layout Plain Layout
12763
12764 \change_inserted -584632292 1615846867
12765 EndArgument
12766 \change_unchanged
12767
12768 \end_layout
12769
12770 \end_inset
12771
12772 .
12773
12774 \change_unchanged
12775  
12776 \change_inserted -584632292 1615846880
12777 See 
12778 \begin_inset CommandInset ref
12779 LatexCommand ref
12780 reference "subsec:Arguments"
12781 plural "false"
12782 caps "false"
12783 noprefix "false"
12784
12785 \end_inset
12786
12787  for more information.
12788  
12789 \change_deleted -584632292 1615846694
12790 This is useful for things like section headings, and only makes sense with
12791  \SpecialChar LaTeX
12792 .
12793  Every (optional or required) argument of a command or environment – except
12794  for the required argument that is associated with the content of the paragraph
12795  itself – has a separate definition, where the number specifies the order
12796  of the arguments.
12797  The definition must end with 
12798 \begin_inset Flex Code
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802 EndArgument
12803 \end_layout
12804
12805 \end_inset
12806
12807 .
12808  So a command with two optional arguments has:
12809 \end_layout
12810
12811 \begin_deeper
12812 \begin_layout Quote
12813
12814 \change_deleted -584632292 1615846694
12815
12816 \family typewriter
12817 Argument 1
12818 \end_layout
12819
12820 \begin_layout Quote
12821
12822 \change_deleted -584632292 1615846694
12823
12824 \family typewriter
12825 ...
12826 \end_layout
12827
12828 \begin_layout Quote
12829
12830 \change_deleted -584632292 1615846694
12831
12832 \family typewriter
12833 EndArgument
12834 \end_layout
12835
12836 \begin_layout Quote
12837
12838 \change_deleted -584632292 1615846694
12839
12840 \family typewriter
12841 Argument 2
12842 \end_layout
12843
12844 \begin_layout Quote
12845
12846 \change_deleted -584632292 1615846694
12847
12848 \family typewriter
12849 ...
12850 \end_layout
12851
12852 \begin_layout Quote
12853
12854 \change_deleted -584632292 1615846694
12855
12856 \family typewriter
12857 EndArgument
12858 \end_layout
12859
12860 \begin_layout Standard
12861
12862 \change_deleted -584632292 1615846694
12863 Inside the 
12864 \begin_inset Flex Code
12865 status collapsed
12866
12867 \begin_layout Plain Layout
12868 Argument
12869 \end_layout
12870
12871 \end_inset
12872
12873  definition, the following specifications are possible:
12874 \end_layout
12875
12876 \begin_layout Itemize
12877
12878 \change_deleted -584632292 1615846694
12879 \begin_inset Flex Code
12880 status collapsed
12881
12882 \begin_layout Plain Layout
12883 LabelString
12884 \end_layout
12885
12886 \end_inset
12887
12888  
12889 \begin_inset Flex Code
12890 status collapsed
12891
12892 \begin_layout Plain Layout
12893 [string]
12894 \end_layout
12895
12896 \end_inset
12897
12898  The string that will appear both in the menu (to insert this argument)
12899  and on the argument inset button (unless you also specify a separate 
12900 \begin_inset Flex Code
12901 status collapsed
12902
12903 \begin_layout Plain Layout
12904 MenuString
12905 \end_layout
12906
12907 \end_inset
12908
12909 ).
12910  For the menu, you can define an accelerator by appending the respective
12911  character to the string, divided by 
12912 \begin_inset Quotes eld
12913 \end_inset
12914
12915 |
12916 \begin_inset Quotes erd
12917 \end_inset
12918
12919  (e.
12920 \begin_inset space \thinspace{}
12921 \end_inset
12922
12923 g.
12924 \begin_inset space \space{}
12925 \end_inset
12926
12927
12928 \begin_inset Quotes eld
12929 \end_inset
12930
12931
12932 \begin_inset Flex Code
12933 status collapsed
12934
12935 \begin_layout Plain Layout
12936 Short Title|S
12937 \end_layout
12938
12939 \end_inset
12940
12941
12942 \begin_inset Quotes erd
12943 \end_inset
12944
12945 ).
12946 \end_layout
12947
12948 \begin_layout Itemize
12949
12950 \change_deleted -584632292 1615846694
12951 \begin_inset Flex Code
12952 status collapsed
12953
12954 \begin_layout Plain Layout
12955 MenuString
12956 \end_layout
12957
12958 \end_inset
12959
12960  
12961 \begin_inset Flex Code
12962 status collapsed
12963
12964 \begin_layout Plain Layout
12965 [string]
12966 \end_layout
12967
12968 \end_inset
12969
12970  A separate string for the menu.
12971  You can define an accelerator by appending the respective character to
12972  the string, divided by 
12973 \begin_inset Quotes eld
12974 \end_inset
12975
12976 |
12977 \begin_inset Quotes erd
12978 \end_inset
12979
12980  (e.
12981 \begin_inset space \thinspace{}
12982 \end_inset
12983
12984 g.
12985 \begin_inset space \space{}
12986 \end_inset
12987
12988
12989 \begin_inset Quotes eld
12990 \end_inset
12991
12992
12993 \begin_inset Flex Code
12994 status collapsed
12995
12996 \begin_layout Plain Layout
12997 Short Title|S
12998 \end_layout
12999
13000 \end_inset
13001
13002
13003 \begin_inset Quotes erd
13004 \end_inset
13005
13006 ).
13007  This specification is optional.
13008  If it is not given the 
13009 \begin_inset Flex Code
13010 status collapsed
13011
13012 \begin_layout Plain Layout
13013 LabelString
13014 \end_layout
13015
13016 \end_inset
13017
13018  will be used instead for the menu.
13019 \end_layout
13020
13021 \begin_layout Itemize
13022
13023 \change_deleted -584632292 1615846694
13024 \begin_inset Flex Code
13025 status collapsed
13026
13027 \begin_layout Plain Layout
13028 Tooltip
13029 \end_layout
13030
13031 \end_inset
13032
13033  
13034 \begin_inset Flex Code
13035 status collapsed
13036
13037 \begin_layout Plain Layout
13038 [string]
13039 \end_layout
13040
13041 \end_inset
13042
13043  A longer explanatory text that appears in the tooltip when hovering over
13044  the argument inset.
13045 \end_layout
13046
13047 \begin_layout Itemize
13048
13049 \change_deleted -584632292 1615846694
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054 Mandatory
13055 \end_layout
13056
13057 \end_inset
13058
13059  [
13060 \begin_inset Flex Code
13061 status collapsed
13062
13063 \begin_layout Plain Layout
13064
13065 \emph on
13066 0
13067 \end_layout
13068
13069 \end_inset
13070
13071 ,
13072 \begin_inset space \thinspace{}
13073 \end_inset
13074
13075
13076 \begin_inset Flex Code
13077 status collapsed
13078
13079 \begin_layout Plain Layout
13080 1
13081 \end_layout
13082
13083 \end_inset
13084
13085 ] Declare if this is a mandatory (1) or an optional (0) argument.
13086  Mandatory arguments will be output empty if not given, while optional arguments
13087  will not be output at all.
13088  By default, mandatory arguments are delimited by 
13089 \begin_inset Flex Code
13090 status collapsed
13091
13092 \begin_layout Plain Layout
13093 {...}
13094 \end_layout
13095
13096 \end_inset
13097
13098 , while optional arguments are delimited by 
13099 \begin_inset Flex Code
13100 status collapsed
13101
13102 \begin_layout Plain Layout
13103 [...]
13104 \end_layout
13105
13106 \end_inset
13107
13108
13109 \end_layout
13110
13111 \begin_layout Itemize
13112
13113 \change_deleted -584632292 1615846694
13114 \begin_inset Flex Code
13115 status collapsed
13116
13117 \begin_layout Plain Layout
13118
13119 \change_inserted -712698321 1555579780
13120 NewlineCmd
13121 \change_unchanged
13122
13123 \end_layout
13124
13125 \end_inset
13126
13127  
13128 \begin_inset Flex Code
13129 status collapsed
13130
13131 \begin_layout Plain Layout
13132
13133 \change_inserted -712698321 1555579780
13134 [string]
13135 \change_unchanged
13136
13137 \end_layout
13138
13139 \end_inset
13140
13141  Option to define a different command (from the default 
13142 \begin_inset Flex Code
13143 status collapsed
13144
13145 \begin_layout Plain Layout
13146
13147 \change_inserted -712698321 1555579780
13148
13149 \backslash
13150
13151 \backslash
13152
13153 \change_unchanged
13154
13155 \end_layout
13156
13157 \end_inset
13158
13159 ) to be used for line breaks.
13160  The initial backslash must not be specified.
13161 \end_layout
13162
13163 \begin_layout Itemize
13164
13165 \change_deleted -584632292 1615846694
13166 \begin_inset Flex Code
13167 status collapsed
13168
13169 \begin_layout Plain Layout
13170 Requires
13171 \end_layout
13172
13173 \end_inset
13174
13175  
13176 \begin_inset Flex Code
13177 status collapsed
13178
13179 \begin_layout Plain Layout
13180 [int=0]
13181 \end_layout
13182
13183 \end_inset
13184
13185  defines another argument (by its number) which this argument requires to
13186  be output if it is itself output.
13187  E.
13188 \begin_inset space \thinspace{}
13189 \end_inset
13190
13191 g., in \SpecialChar LaTeX
13192  commands, optional arguments often require previous optional arguments
13193  to be output (at least empty), as in 
13194 \begin_inset Flex Code
13195 status collapsed
13196
13197 \begin_layout Plain Layout
13198
13199 \backslash
13200 command[][argument]{text}
13201 \end_layout
13202
13203 \end_inset
13204
13205 .
13206  This can be achieved by the statement 
13207 \begin_inset Flex Code
13208 status collapsed
13209
13210 \begin_layout Plain Layout
13211 Requires 1
13212 \end_layout
13213
13214 \end_inset
13215
13216  within 
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221 Argument 2
13222 \end_layout
13223
13224 \end_inset
13225
13226 .
13227 \end_layout
13228
13229 \begin_layout Itemize
13230
13231 \change_deleted -584632292 1615846694
13232 \begin_inset Flex Code
13233 status collapsed
13234
13235 \begin_layout Plain Layout
13236 LeftDelim
13237 \end_layout
13238
13239 \end_inset
13240
13241  
13242 \begin_inset Flex Code
13243 status collapsed
13244
13245 \begin_layout Plain Layout
13246 [string]
13247 \end_layout
13248
13249 \end_inset
13250
13251  defines a custom left delimiter (instead of 
13252 \begin_inset Flex Code
13253 status collapsed
13254
13255 \begin_layout Plain Layout
13256 {
13257 \end_layout
13258
13259 \end_inset
13260
13261  or 
13262 \begin_inset Flex Code
13263 status collapsed
13264
13265 \begin_layout Plain Layout
13266 [
13267 \end_layout
13268
13269 \end_inset
13270
13271 ).
13272  A line break in the output can be indicated by 
13273 \begin_inset Flex Code
13274 status collapsed
13275
13276 \begin_layout Plain Layout
13277 <br/>
13278 \end_layout
13279
13280 \end_inset
13281
13282 .
13283 \end_layout
13284
13285 \begin_layout Itemize
13286
13287 \change_deleted -584632292 1615846694
13288 \begin_inset Flex Code
13289 status collapsed
13290
13291 \begin_layout Plain Layout
13292 RightDelim
13293 \end_layout
13294
13295 \end_inset
13296
13297  
13298 \begin_inset Flex Code
13299 status collapsed
13300
13301 \begin_layout Plain Layout
13302 [string]
13303 \end_layout
13304
13305 \end_inset
13306
13307  defines a custom right delimiter (instead of 
13308 \begin_inset Flex Code
13309 status collapsed
13310
13311 \begin_layout Plain Layout
13312 }
13313 \end_layout
13314
13315 \end_inset
13316
13317  or 
13318 \begin_inset Flex Code
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322 ]
13323 \end_layout
13324
13325 \end_inset
13326
13327 ).
13328  A line break in the output can be indicated by 
13329 \begin_inset Flex Code
13330 status collapsed
13331
13332 \begin_layout Plain Layout
13333 <br/>
13334 \end_layout
13335
13336 \end_inset
13337
13338 .
13339 \end_layout
13340
13341 \begin_layout Itemize
13342
13343 \change_deleted -584632292 1615846694
13344 \begin_inset Flex Code
13345 status collapsed
13346
13347 \begin_layout Plain Layout
13348 DefaultArg
13349 \end_layout
13350
13351 \end_inset
13352
13353  
13354 \begin_inset Flex Code
13355 status collapsed
13356
13357 \begin_layout Plain Layout
13358 [string]
13359 \end_layout
13360
13361 \end_inset
13362
13363  defines an argument that is inserted if and only if no user-specified arguments
13364  were given, i.
13365 \begin_inset space \thinspace{}
13366 \end_inset
13367
13368 e.
13369 \begin_inset space \space{}
13370 \end_inset
13371
13372 if no argument inset has been inserted (note that also an empty argument
13373  inset omits the DefaultArg).
13374  Multiple arguments need to be separated by comma.
13375 \end_layout
13376
13377 \begin_layout Itemize
13378
13379 \change_deleted -584632292 1615846694
13380 \begin_inset Flex Code
13381 status collapsed
13382
13383 \begin_layout Plain Layout
13384 PresetArg
13385 \end_layout
13386
13387 \end_inset
13388
13389  
13390 \begin_inset Flex Code
13391 status collapsed
13392
13393 \begin_layout Plain Layout
13394 [string]
13395 \end_layout
13396
13397 \end_inset
13398
13399  defines an argument that is inserted in any case (alone or in addition
13400  to user-specified arguments).
13401  Multiple arguments need to be separated by comma.
13402 \end_layout
13403
13404 \begin_layout Itemize
13405
13406 \change_deleted -584632292 1615846694
13407 \begin_inset Flex Code
13408 status collapsed
13409
13410 \begin_layout Plain Layout
13411 Font
13412 \end_layout
13413
13414 \end_inset
13415
13416  The font used for the argument content, see 
13417 \begin_inset CommandInset ref
13418 LatexCommand ref
13419 reference "subsec:Font-description"
13420
13421 \end_inset
13422
13423 .
13424 \end_layout
13425
13426 \begin_layout Itemize
13427
13428 \change_deleted -584632292 1615846694
13429 \begin_inset Flex Code
13430 status collapsed
13431
13432 \begin_layout Plain Layout
13433
13434 \change_inserted -712698321 1559484228
13435 FreeSpacing
13436 \change_unchanged
13437
13438 \end_layout
13439
13440 \end_inset
13441
13442  [
13443 \begin_inset Flex Code
13444 status collapsed
13445
13446 \begin_layout Plain Layout
13447
13448 \change_inserted -712698321 1559484228
13449
13450 \emph on
13451 0
13452 \change_unchanged
13453
13454 \end_layout
13455
13456 \end_inset
13457
13458 ,
13459 \begin_inset space \thinspace{}
13460 \end_inset
13461
13462
13463 \begin_inset Flex Code
13464 status collapsed
13465
13466 \begin_layout Plain Layout
13467
13468 \change_inserted -712698321 1559484228
13469 1
13470 \change_unchanged
13471
13472 \end_layout
13473
13474 \end_inset
13475
13476 ] As with paragraph styles, see 
13477 \begin_inset CommandInset ref
13478 LatexCommand ref
13479 reference "subsec:Paragraph-Styles"
13480
13481 \end_inset
13482
13483 .
13484 \end_layout
13485
13486 \begin_layout Itemize
13487
13488 \change_deleted -584632292 1615846694
13489 \begin_inset Flex Code
13490 status collapsed
13491
13492 \begin_layout Plain Layout
13493 LabelFont
13494 \end_layout
13495
13496 \end_inset
13497
13498  The font used for the label; see 
13499 \begin_inset CommandInset ref
13500 LatexCommand ref
13501 reference "subsec:Font-description"
13502
13503 \end_inset
13504
13505 .
13506 \end_layout
13507
13508 \begin_layout Itemize
13509
13510 \change_deleted -584632292 1615846694
13511 \begin_inset Flex Code
13512 status collapsed
13513
13514 \begin_layout Plain Layout
13515 Decoration
13516 \end_layout
13517
13518 \end_inset
13519
13520  [
13521 \begin_inset Flex Code
13522 status collapsed
13523
13524 \begin_layout Plain Layout
13525
13526 \emph on
13527 Classic
13528 \emph default
13529 , Minimalistic, Conglomerate
13530 \end_layout
13531
13532 \end_inset
13533
13534 ] describes the rendering style used for the inset's frame and buttons.
13535 \end_layout
13536
13537 \begin_layout Itemize
13538
13539 \change_deleted -584632292 1615846694
13540 \begin_inset Flex Code
13541 status collapsed
13542
13543 \begin_layout Plain Layout
13544 AutoInsert
13545 \end_layout
13546
13547 \end_inset
13548
13549  
13550 \begin_inset Flex Code
13551 status collapsed
13552
13553 \begin_layout Plain Layout
13554 [int=0]
13555 \end_layout
13556
13557 \end_inset
13558
13559  If this is set to 
13560 \begin_inset Flex Code
13561 status collapsed
13562
13563 \begin_layout Plain Layout
13564 1
13565 \end_layout
13566
13567 \end_inset
13568
13569 , this argument is automatically inserted when the respective style is selected.
13570
13571 \change_deleted -712698321 1559484200
13572  Currently, only one argument per style\SpecialChar breakableslash
13573 layout can be automatically inserted.
13574 \change_deleted -584632292 1615846694
13575
13576 \end_layout
13577
13578 \begin_layout Itemize
13579
13580 \change_deleted -584632292 1615846694
13581 \begin_inset Flex Code
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585
13586 \change_inserted -712698321 1559490711
13587 InsertOnNewline
13588 \change_unchanged
13589
13590 \end_layout
13591
13592 \end_inset
13593
13594  
13595 \begin_inset Flex Code
13596 status collapsed
13597
13598 \begin_layout Plain Layout
13599
13600 \change_inserted -712698321 1559490703
13601 [int=0]
13602 \change_unchanged
13603
13604 \end_layout
13605
13606 \end_inset
13607
13608  If this is set to 
13609 \begin_inset Flex Code
13610 status collapsed
13611
13612 \begin_layout Plain Layout
13613
13614 \change_inserted -712698321 1559490703
13615 1
13616 \change_unchanged
13617
13618 \end_layout
13619
13620 \end_inset
13621
13622 , this argument will be inserted on a new line with 
13623 \begin_inset Flex Code
13624 status collapsed
13625
13626 \begin_layout Plain Layout
13627
13628 \change_inserted -712698321 1559491402
13629 AutoInsert
13630 \change_unchanged
13631
13632 \end_layout
13633
13634 \end_inset
13635
13636  (only available within Flex insets).
13637 \end_layout
13638
13639 \begin_layout Itemize
13640
13641 \change_deleted -584632292 1615846694
13642 \begin_inset Flex Code
13643 status collapsed
13644
13645 \begin_layout Plain Layout
13646 InsertCotext
13647 \end_layout
13648
13649 \end_inset
13650
13651  
13652 \begin_inset Flex Code
13653 status collapsed
13654
13655 \begin_layout Plain Layout
13656 [int=0]
13657 \end_layout
13658
13659 \end_inset
13660
13661  If this is set to 
13662 \begin_inset Flex Code
13663 status collapsed
13664
13665 \begin_layout Plain Layout
13666 1
13667 \end_layout
13668
13669 \end_inset
13670
13671 , this argument will be inserted with a copy of the co-text (either selected
13672  text or the whole paragraph) as content.
13673 \end_layout
13674
13675 \begin_layout Itemize
13676
13677 \change_deleted -584632292 1615846694
13678 \begin_inset Flex Code
13679 status collapsed
13680
13681 \begin_layout Plain Layout
13682 PassThru
13683 \end_layout
13684
13685 \end_inset
13686
13687  [
13688 \begin_inset Flex Code
13689 status collapsed
13690
13691 \begin_layout Plain Layout
13692
13693 \emph on
13694 inherited
13695 \emph default
13696 , true, false
13697 \end_layout
13698
13699 \end_inset
13700
13701 ] Whether the contents of this argument should be output in raw form, meaning
13702  without special translations that \SpecialChar LaTeX
13703  would require.
13704  By default, the 
13705 \begin_inset Flex Code
13706 status collapsed
13707
13708 \begin_layout Plain Layout
13709 PassThru
13710 \end_layout
13711
13712 \end_inset
13713
13714  status is inherited by the inset or paragraph layout the argument belongs
13715  to, true and false change the status for the given argument only.
13716 \end_layout
13717
13718 \begin_layout Itemize
13719
13720 \change_deleted -584632292 1615846694
13721 \begin_inset Flex Code
13722 status collapsed
13723
13724 \begin_layout Plain Layout
13725 PassThruChars
13726 \end_layout
13727
13728 \end_inset
13729
13730  [
13731 \begin_inset Flex Code
13732 status collapsed
13733
13734 \begin_layout Plain Layout
13735 string of characters
13736 \end_layout
13737
13738 \end_inset
13739
13740 ]
13741 \family typewriter
13742  
13743 \family default
13744 Defines individual characters
13745 \begin_inset Newline linebreak
13746 \end_inset
13747
13748 that should be output in raw form, meaning without special translations
13749  that \SpecialChar LaTeX
13750  would require.
13751  Note that, contrary to PassThru, this needs to be explicitly defined for
13752  arguments.
13753  That is, arguments do not inherit PassThruChars from their parent inset
13754  or layout.
13755 \end_layout
13756
13757 \begin_layout Itemize
13758
13759 \change_deleted -584632292 1615846694
13760 \begin_inset Flex Code
13761 status collapsed
13762
13763 \begin_layout Plain Layout
13764 IsTocCaption
13765 \end_layout
13766
13767 \end_inset
13768
13769  [
13770 \begin_inset Flex Code
13771 status collapsed
13772
13773 \begin_layout Plain Layout
13774
13775 \emph on
13776 0
13777 \end_layout
13778
13779 \end_inset
13780
13781 ,
13782 \begin_inset space \thinspace{}
13783 \end_inset
13784
13785
13786 \begin_inset Flex Code
13787 status collapsed
13788
13789 \begin_layout Plain Layout
13790 1
13791 \end_layout
13792
13793 \end_inset
13794
13795 ] If this is set to 1, the argument will output its content in the corresponding
13796  item in the table of contents.
13797  See AddToToc.
13798 \end_layout
13799
13800 \begin_layout Standard
13801
13802 \change_deleted -584632292 1615846694
13803 By default, the text entered in the \SpecialChar LyX
13804  workarea in the respective layout is
13805  the last (mandatory) argument of a command if the 
13806 \begin_inset Flex Code
13807 status collapsed
13808
13809 \begin_layout Plain Layout
13810 LatexType
13811 \end_layout
13812
13813 \end_inset
13814
13815  is 
13816 \begin_inset Flex Code
13817 status collapsed
13818
13819 \begin_layout Plain Layout
13820 Command
13821 \end_layout
13822
13823 \end_inset
13824
13825 .
13826  However, arguments with the prefix 
13827 \begin_inset Flex Code
13828 status collapsed
13829
13830 \begin_layout Plain Layout
13831 post:
13832 \end_layout
13833
13834 \end_inset
13835
13836  are output after this workarea argument.
13837  Note that post-argument numbering restarts at 1, so the first argument
13838  following the workarea argument is 
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 post:1
13844 \end_layout
13845
13846 \end_inset
13847
13848 .
13849  Post-arguments are ignored in any other 
13850 \begin_inset Flex Code
13851 status collapsed
13852
13853 \begin_layout Plain Layout
13854 LatexType
13855 \end_layout
13856
13857 \end_inset
13858
13859  than 
13860 \begin_inset Flex Code
13861 status collapsed
13862
13863 \begin_layout Plain Layout
13864 Command
13865 \end_layout
13866
13867 \end_inset
13868
13869 .
13870 \end_layout
13871
13872 \begin_layout Standard
13873
13874 \change_deleted -584632292 1615846694
13875 Arguments for list 
13876 \begin_inset Flex Code
13877 status collapsed
13878
13879 \begin_layout Plain Layout
13880
13881 \backslash
13882 item
13883 \end_layout
13884
13885 \end_inset
13886
13887 s (as in 
13888 \begin_inset Flex Code
13889 status collapsed
13890
13891 \begin_layout Plain Layout
13892
13893 \backslash
13894 item[foo]
13895 \end_layout
13896
13897 \end_inset
13898
13899 ) have the prefix 
13900 \begin_inset Flex Code
13901 status collapsed
13902
13903 \begin_layout Plain Layout
13904 item:
13905 \end_layout
13906
13907 \end_inset
13908
13909  followed by the number (e.
13910 \begin_inset space \thinspace{}
13911 \end_inset
13912
13913 g.
13914 \begin_inset space \space{}
13915 \end_inset
13916
13917
13918 \begin_inset Flex Code
13919 status collapsed
13920
13921 \begin_layout Plain Layout
13922 Argument item:1
13923 \end_layout
13924
13925 \end_inset
13926
13927 ).
13928 \end_layout
13929
13930 \begin_layout Standard
13931
13932 \change_deleted -584632292 1615846694
13933 Finally, there is a special argument type with the prefix 
13934 \begin_inset Flex Code
13935 status collapsed
13936
13937 \begin_layout Plain Layout
13938
13939 \change_inserted -712698321 1534487844
13940 listpreamble:
13941 \change_unchanged
13942
13943 \end_layout
13944
13945 \end_inset
13946
13947 .
13948  It is not really an argument, but uses the argument interface (thus, the
13949  prefix is also followed by a number, e.
13950 \begin_inset space \thinspace{}
13951 \end_inset
13952
13953 g.
13954  
13955 \begin_inset Flex Code
13956 status collapsed
13957
13958 \begin_layout Plain Layout
13959
13960 \change_inserted -712698321 1534488412
13961 Argument listpreamble:1
13962 \change_unchanged
13963
13964 \end_layout
13965
13966 \end_inset
13967
13968 ).
13969  As the name implies, it is targeted at lists such as 
13970 \family sans
13971 Itemize
13972 \family default
13973
13974 \family sans
13975 Enumerate
13976 \family default
13977
13978 \family sans
13979 Description
13980 \family default
13981 , or 
13982 \family sans
13983 Bibliography
13984 \family default
13985 .
13986  Its content will be output at the list start, before the first 
13987 \begin_inset Flex Code
13988 status collapsed
13989
13990 \begin_layout Plain Layout
13991
13992 \change_inserted -712698321 1534488058
13993
13994 \backslash
13995 item
13996 \change_unchanged
13997
13998 \end_layout
13999
14000 \end_inset
14001
14002 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
14003 ).
14004  This way, users can insert redefinitions (of lengths etc.) to individual
14005  lists.
14006  By default, these arguments do not have a delimiter.
14007 \change_unchanged
14008
14009 \end_layout
14010
14011 \end_deeper
14012 \begin_layout Description
14013 \begin_inset Flex Code
14014 status collapsed
14015
14016 \begin_layout Plain Layout
14017 AutoNests
14018 \end_layout
14019
14020 \end_inset
14021
14022  Includes a comma-separated list of layouts that should be nested in and
14023  after the current layout.
14024  Only makes sense for nestable layouts (such as environments).
14025  Must be ended by 
14026 \begin_inset Quotes eld
14027 \end_inset
14028
14029
14030 \begin_inset Flex Code
14031 status collapsed
14032
14033 \begin_layout Plain Layout
14034 EndAutoNests
14035 \end_layout
14036
14037 \end_inset
14038
14039
14040 \begin_inset Quotes erd
14041 \end_inset
14042
14043 .
14044  See also 
14045 \begin_inset Flex Code
14046 status collapsed
14047
14048 \begin_layout Plain Layout
14049 IsAutoNestedBy
14050 \end_layout
14051
14052 \end_inset
14053
14054 .
14055 \end_layout
14056
14057 \begin_layout Description
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062 BabelPreamble
14063 \end_layout
14064
14065 \end_inset
14066
14067  Note that this will completely override any prior 
14068 \begin_inset Flex Code
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 BabelPreamble
14073 \end_layout
14074
14075 \end_inset
14076
14077  declaration for this style.
14078  Must end with 
14079 \begin_inset Quotes eld
14080 \end_inset
14081
14082
14083 \begin_inset Flex Code
14084 status collapsed
14085
14086 \begin_layout Plain Layout
14087 EndBabelPreamble
14088 \end_layout
14089
14090 \end_inset
14091
14092
14093 \begin_inset Quotes erd
14094 \end_inset
14095
14096 .
14097  See 
14098 \begin_inset CommandInset ref
14099 LatexCommand ref
14100 reference "subsec:I18n"
14101
14102 \end_inset
14103
14104  for details on its use.
14105 \end_layout
14106
14107 \begin_layout Description
14108 \begin_inset Flex Code
14109 status collapsed
14110
14111 \begin_layout Plain Layout
14112 BottomSep
14113 \end_layout
14114
14115 \end_inset
14116
14117  [
14118 \begin_inset Flex Code
14119 status collapsed
14120
14121 \begin_layout Plain Layout
14122 float=0
14123 \end_layout
14124
14125 \end_inset
14126
14127 ]
14128 \begin_inset Foot
14129 status collapsed
14130
14131 \begin_layout Plain Layout
14132 Note that a `float' here is a real number, such as: 1.5.
14133 \end_layout
14134
14135 \end_inset
14136
14137  The vertical space with which the last of a chain of paragraphs with this
14138  style is separated from the following paragraph.
14139  If the next paragraph has another style, the separations are not simply
14140  added, but the maximum is taken.
14141 \end_layout
14142
14143 \begin_layout Description
14144 \begin_inset Flex Code
14145 status collapsed
14146
14147 \begin_layout Plain Layout
14148 Category
14149 \end_layout
14150
14151 \end_inset
14152
14153  [
14154 \begin_inset Flex Code
14155 status collapsed
14156
14157 \begin_layout Plain Layout
14158 string
14159 \end_layout
14160
14161 \end_inset
14162
14163 ] The category for this style.
14164  This is used to group related styles in the style combobox on the toolbar.
14165  Any string can be used, but you may want to use existing categories with
14166  your own styles.
14167  
14168 \end_layout
14169
14170 \begin_layout Description
14171 \begin_inset Flex Code
14172 status collapsed
14173
14174 \begin_layout Plain Layout
14175 CommandDepth
14176 \end_layout
14177
14178 \end_inset
14179
14180  Depth of XML command.
14181  Used only with XML-type formats.
14182 \end_layout
14183
14184 \begin_layout Description
14185 \begin_inset Flex Code
14186 status collapsed
14187
14188 \begin_layout Plain Layout
14189 CopyStyle
14190 \end_layout
14191
14192 \end_inset
14193
14194  [
14195 \begin_inset Flex Code
14196 status collapsed
14197
14198 \begin_layout Plain Layout
14199 string
14200 \end_layout
14201
14202 \end_inset
14203
14204 ] Copies all the features of an existing style into the current one.
14205  
14206 \end_layout
14207
14208 \begin_layout Description
14209 \begin_inset Flex Code
14210 status collapsed
14211
14212 \begin_layout Plain Layout
14213 DependsOn
14214 \end_layout
14215
14216 \end_inset
14217
14218  [
14219 \begin_inset Flex Code
14220 status collapsed
14221
14222 \begin_layout Plain Layout
14223 <name>
14224 \end_layout
14225
14226 \end_inset
14227
14228 ] The name of a style whose preamble should be output 
14229 \emph on
14230 before
14231 \emph default
14232  this one.
14233  This allows to ensure some ordering of the preamble snippets when macros
14234  definitions depend on one another.
14235 \begin_inset Foot
14236 status collapsed
14237
14238 \begin_layout Plain Layout
14239 Note that, besides that functionality, there is no way to ensure any ordering
14240  of preambles.
14241  The ordering that you see in a given version of \SpecialChar LyX
14242  may change without warning
14243  in later versions.
14244 \end_layout
14245
14246 \end_inset
14247
14248
14249 \end_layout
14250
14251 \begin_layout Description
14252 \begin_inset Flex Code
14253 status collapsed
14254
14255 \begin_layout Plain Layout
14256 EndLabelType
14257 \end_layout
14258
14259 \end_inset
14260
14261  [
14262 \begin_inset Flex Code
14263 status collapsed
14264
14265 \begin_layout Plain Layout
14266
14267 \emph on
14268 No_Label
14269 \emph default
14270 , Box, Filled_Box, Static
14271 \end_layout
14272
14273 \end_inset
14274
14275 ] The type of label that stands at the end of the paragraph (or sequence
14276  of paragraphs if 
14277 \begin_inset Flex Code
14278 status collapsed
14279
14280 \begin_layout Plain Layout
14281 LatexType
14282 \end_layout
14283
14284 \end_inset
14285
14286  is
14287 \begin_inset Newline newline
14288 \end_inset
14289
14290
14291 \begin_inset Flex Code
14292 status collapsed
14293
14294 \begin_layout Plain Layout
14295 Environment
14296 \end_layout
14297
14298 \end_inset
14299
14300
14301 \begin_inset Flex Code
14302 status collapsed
14303
14304 \begin_layout Plain Layout
14305 Item_Environment
14306 \end_layout
14307
14308 \end_inset
14309
14310  or 
14311 \begin_inset Flex Code
14312 status collapsed
14313
14314 \begin_layout Plain Layout
14315 List_Environment
14316 \end_layout
14317
14318 \end_inset
14319
14320 ).
14321  
14322 \begin_inset Flex Code
14323 status collapsed
14324
14325 \begin_layout Plain Layout
14326 No_Label
14327 \end_layout
14328
14329 \end_inset
14330
14331  means 
14332 \begin_inset Quotes eld
14333 \end_inset
14334
14335 nothing
14336 \begin_inset Quotes erd
14337 \end_inset
14338
14339
14340 \begin_inset Flex Code
14341 status collapsed
14342
14343 \begin_layout Plain Layout
14344 Box
14345 \end_layout
14346
14347 \end_inset
14348
14349  (resp.
14350 \begin_inset space \space{}
14351 \end_inset
14352
14353
14354 \begin_inset Flex Code
14355 status collapsed
14356
14357 \begin_layout Plain Layout
14358 Filled_Box
14359 \end_layout
14360
14361 \end_inset
14362
14363 ) is a white (resp.
14364 \begin_inset space ~
14365 \end_inset
14366
14367 black) square suitable for end of proof markers, 
14368 \begin_inset Flex Code
14369 status collapsed
14370
14371 \begin_layout Plain Layout
14372 Static
14373 \end_layout
14374
14375 \end_inset
14376
14377  is an explicit text string.
14378 \end_layout
14379
14380 \begin_layout Description
14381 \begin_inset Flex Code
14382 status collapsed
14383
14384 \begin_layout Plain Layout
14385 EndLabelString
14386 \end_layout
14387
14388 \end_inset
14389
14390  [
14391 \begin_inset Flex Code
14392 status collapsed
14393
14394 \begin_layout Plain Layout
14395 string=""
14396 \end_layout
14397
14398 \end_inset
14399
14400 ] The string used for a label with a 
14401 \begin_inset Flex Code
14402 status collapsed
14403
14404 \begin_layout Plain Layout
14405 Static
14406 \end_layout
14407
14408 \end_inset
14409
14410
14411 \begin_inset Newline newline
14412 \end_inset
14413
14414
14415 \begin_inset Flex Code
14416 status collapsed
14417
14418 \begin_layout Plain Layout
14419 EndLabelType
14420 \end_layout
14421
14422 \end_inset
14423
14424 .
14425  
14426 \end_layout
14427
14428 \begin_layout Description
14429 \begin_inset Flex Code
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 Font
14434 \end_layout
14435
14436 \end_inset
14437
14438  The font used for both the text body 
14439 \emph on
14440 and
14441 \emph default
14442  the label.
14443  See 
14444 \begin_inset CommandInset ref
14445 LatexCommand ref
14446 reference "subsec:Font-description"
14447
14448 \end_inset
14449
14450 .
14451  Note that defining this font automatically defines the 
14452 \begin_inset Flex Code
14453 status collapsed
14454
14455 \begin_layout Plain Layout
14456 LabelFont
14457 \end_layout
14458
14459 \end_inset
14460
14461  to the same value.
14462  So you should define this one first if you also want to define 
14463 \begin_inset Flex Code
14464 status collapsed
14465
14466 \begin_layout Plain Layout
14467 LabelFont
14468 \end_layout
14469
14470 \end_inset
14471
14472 .
14473 \end_layout
14474
14475 \begin_layout Description
14476 \begin_inset Flex Code
14477 status collapsed
14478
14479 \begin_layout Plain Layout
14480 ForceLocal
14481 \end_layout
14482
14483 \end_inset
14484
14485  [
14486 \begin_inset Flex Code
14487 status collapsed
14488
14489 \begin_layout Plain Layout
14490 int=0
14491 \end_layout
14492
14493 \end_inset
14494
14495 ] Used for backporting new styles to stable \SpecialChar LyX
14496  versions.
14497  The first stable version that supports this tag is \SpecialChar LyX
14498  2.1.0.
14499  The argument is a number which may either be 0, -1 or any value greater
14500  than zero.
14501  If the 
14502 \begin_inset Flex Code
14503 status collapsed
14504
14505 \begin_layout Plain Layout
14506 ForceLocal
14507 \end_layout
14508
14509 \end_inset
14510
14511  flag of a style is greater than zero, it will always be written to the
14512  document header.
14513  If a .lyx file is read, the style definitions from the document header are
14514  added to the document class.
14515  Therefore even older \SpecialChar LyX
14516  versions can handle the style.
14517  The argument of 
14518 \begin_inset Flex Code
14519 status collapsed
14520
14521 \begin_layout Plain Layout
14522 ForceLocal
14523 \end_layout
14524
14525 \end_inset
14526
14527  is a version number: if the style is read, and the version number is less
14528  than the version number of the already existing style in the document class,
14529  the new style is ignored.
14530  If the version number is greater, the new style replaces the existing style.
14531  A value of -1 means an infinite version number, i.
14532 \begin_inset space \thinspace{}
14533 \end_inset
14534
14535 e.
14536 \begin_inset space \space{}
14537 \end_inset
14538
14539 the style is always used.
14540 \end_layout
14541
14542 \begin_layout Description
14543 \begin_inset Flex Code
14544 status collapsed
14545
14546 \begin_layout Plain Layout
14547 FreeSpacing
14548 \end_layout
14549
14550 \end_inset
14551
14552  [
14553 \begin_inset Flex Code
14554 status collapsed
14555
14556 \begin_layout Plain Layout
14557
14558 \emph on
14559 0
14560 \end_layout
14561
14562 \end_inset
14563
14564 ,
14565 \begin_inset space \thinspace{}
14566 \end_inset
14567
14568
14569 \begin_inset Flex Code
14570 status collapsed
14571
14572 \begin_layout Plain Layout
14573 1
14574 \end_layout
14575
14576 \end_inset
14577
14578 ] Usually \SpecialChar LyX
14579  does not allow you to insert more than one space between words,
14580  since a space is considered as the separation between two words, not a
14581  character or symbol of its own.
14582  This is a very fine thing but sometimes annoying, for example, when typing
14583  program code or plain \SpecialChar LaTeX
14584  code.
14585  For this reason, 
14586 \begin_inset Flex Code
14587 status collapsed
14588
14589 \begin_layout Plain Layout
14590 FreeSpacing
14591 \end_layout
14592
14593 \end_inset
14594
14595  can be enabled.
14596  
14597 \change_deleted -495245474 1550490105
14598 Note that 
14599 \change_unchanged
14600 \SpecialChar LyX
14601  will create 
14602 \change_deleted 177693 1654669077
14603 protected
14604 \change_inserted 177693 1654669079
14605 non-breaking
14606 \change_unchanged
14607  
14608 \change_deleted 177693 1654669082
14609 blanks
14610 \change_inserted 177693 1654669082
14611 spaces
14612 \change_unchanged
14613  for the additional blanks when
14614 \change_deleted 34634807 1619626461
14615  in
14616 \change_unchanged
14617  
14618 \change_inserted -495245474 1550490096
14619
14620 \begin_inset Flex Code
14621 status collapsed
14622
14623 \begin_layout Plain Layout
14624
14625 \change_inserted -495245474 1550490089
14626 Passthru 1
14627 \change_unchanged
14628
14629 \end_layout
14630
14631 \end_inset
14632
14633  is not specified.
14634 \change_deleted -495245474 1550490116
14635 another mode than \SpecialChar LaTeX
14636 -mode.
14637
14638 \change_inserted -495245474 1550247760
14639  Note that 
14640 \begin_inset Flex Code
14641 status collapsed
14642
14643 \begin_layout Plain Layout
14644
14645 \change_inserted -495245474 1550247736
14646 FreeSpacing
14647 \change_unchanged
14648
14649 \end_layout
14650
14651 \end_inset
14652
14653  implies 
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658
14659 \change_inserted -495245474 1550247755
14660 KeepEmpty
14661 \change_unchanged
14662
14663 \end_layout
14664
14665 \end_inset
14666
14667 .
14668 \change_unchanged
14669
14670 \end_layout
14671
14672 \begin_layout Description
14673 \begin_inset Flex Code
14674 status collapsed
14675
14676 \begin_layout Plain Layout
14677 HTML*
14678 \end_layout
14679
14680 \end_inset
14681
14682  These tags are used with XHTML output.
14683  See 
14684 \begin_inset CommandInset ref
14685 LatexCommand ref
14686 reference "subsec:Paragraph-Style-XHTML"
14687
14688 \end_inset
14689
14690 .
14691 \end_layout
14692
14693 \begin_layout Description
14694 \begin_inset Flex Code
14695 status collapsed
14696
14697 \begin_layout Plain Layout
14698 InnerTag
14699 \end_layout
14700
14701 \end_inset
14702
14703  [FIXME] (Used only with XML-type formats.)
14704 \end_layout
14705
14706 \begin_layout Description
14707 \begin_inset Flex Code
14708 status collapsed
14709
14710 \begin_layout Plain Layout
14711 InPreamble
14712 \end_layout
14713
14714 \end_inset
14715
14716  [
14717 \begin_inset Flex Code
14718 status collapsed
14719
14720 \begin_layout Plain Layout
14721
14722 \emph on
14723 0
14724 \end_layout
14725
14726 \end_inset
14727
14728 ,
14729 \begin_inset space \thinspace{}
14730 \end_inset
14731
14732
14733 \begin_inset Flex Code
14734 status collapsed
14735
14736 \begin_layout Plain Layout
14737 1
14738 \end_layout
14739
14740 \end_inset
14741
14742 ] If 
14743 \begin_inset Flex Code
14744 status collapsed
14745
14746 \begin_layout Plain Layout
14747 1
14748 \end_layout
14749
14750 \end_inset
14751
14752 , marks the style as to be included in the document preamble and not in
14753  the document body.
14754  This is useful for document classes that want such information as the title
14755  and author to appear in the preamble.
14756  Note that this works only for styles for which the 
14757 \begin_inset Flex Code
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761 LatexType
14762 \end_layout
14763
14764 \end_inset
14765
14766  is 
14767 \begin_inset Flex Code
14768 status collapsed
14769
14770 \begin_layout Plain Layout
14771 Command
14772 \end_layout
14773
14774 \end_inset
14775
14776  or 
14777 \begin_inset Flex Code
14778 status collapsed
14779
14780 \begin_layout Plain Layout
14781 Paragraph
14782 \end_layout
14783
14784 \end_inset
14785
14786 .
14787 \end_layout
14788
14789 \begin_layout Description
14790 \begin_inset Flex Code
14791 status collapsed
14792
14793 \begin_layout Plain Layout
14794 InTitle
14795 \end_layout
14796
14797 \end_inset
14798
14799  [
14800 \begin_inset Flex Code
14801 status collapsed
14802
14803 \begin_layout Plain Layout
14804
14805 \emph on
14806 0
14807 \end_layout
14808
14809 \end_inset
14810
14811 ,
14812 \begin_inset space \thinspace{}
14813 \end_inset
14814
14815
14816 \begin_inset Flex Code
14817 status collapsed
14818
14819 \begin_layout Plain Layout
14820 1
14821 \end_layout
14822
14823 \end_inset
14824
14825 ] If 
14826 \begin_inset Flex Code
14827 status collapsed
14828
14829 \begin_layout Plain Layout
14830 1
14831 \end_layout
14832
14833 \end_inset
14834
14835 , marks the style as being part of a title block (see also the 
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 TitleLatexType
14841 \end_layout
14842
14843 \end_inset
14844
14845  and 
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 TitleLatexName
14851 \end_layout
14852
14853 \end_inset
14854
14855  global entries).
14856 \end_layout
14857
14858 \begin_layout Description
14859 \begin_inset Flex Code
14860 status collapsed
14861
14862 \begin_layout Plain Layout
14863 IsAutoNestedBy
14864 \end_layout
14865
14866 \end_inset
14867
14868  Includes a comma-separated list of layouts after which this one should
14869  be nested.
14870  Only makes sense with regard to nestable layouts (such as environments).
14871  Must be ended by 
14872 \begin_inset Quotes eld
14873 \end_inset
14874
14875
14876 \begin_inset Flex Code
14877 status collapsed
14878
14879 \begin_layout Plain Layout
14880 EndIsAutoNestedBy
14881 \end_layout
14882
14883 \end_inset
14884
14885
14886 \begin_inset Quotes erd
14887 \end_inset
14888
14889 .
14890  See also 
14891 \begin_inset Flex Code
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895 AutoNests
14896 \end_layout
14897
14898 \end_inset
14899
14900 .
14901 \end_layout
14902
14903 \begin_layout Description
14904 \begin_inset Flex Code
14905 status collapsed
14906
14907 \begin_layout Plain Layout
14908 IsTocCaption
14909 \end_layout
14910
14911 \end_inset
14912
14913  [
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918
14919 \emph on
14920 0
14921 \end_layout
14922
14923 \end_inset
14924
14925 ,
14926 \begin_inset space \thinspace{}
14927 \end_inset
14928
14929
14930 \begin_inset Flex Code
14931 status collapsed
14932
14933 \begin_layout Plain Layout
14934 1
14935 \end_layout
14936
14937 \end_inset
14938
14939 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14940  of its contents in its item in the table of contents.
14941  Otherwise, only the label, if it exists, appears.
14942 \end_layout
14943
14944 \begin_layout Description
14945 \begin_inset Flex Code
14946 status collapsed
14947
14948 \begin_layout Plain Layout
14949 ItemCommand
14950 \end_layout
14951
14952 \end_inset
14953
14954  [
14955 \begin_inset Flex Code
14956 status collapsed
14957
14958 \begin_layout Plain Layout
14959 string="item"
14960 \end_layout
14961
14962 \end_inset
14963
14964 ] The \SpecialChar LaTeX
14965  command sequence declaring an item in a list.
14966  The command is to be defined without the preceding backslash (the default
14967  is 
14968 \begin_inset Quotes eld
14969 \end_inset
14970
14971 item
14972 \begin_inset Quotes erd
14973 \end_inset
14974
14975 , resulting in 
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980
14981 \backslash
14982 item
14983 \end_layout
14984
14985 \end_inset
14986
14987  in the \SpecialChar LaTeX
14988  output).
14989 \end_layout
14990
14991 \begin_layout Description
14992 \begin_inset Flex Code
14993 status collapsed
14994
14995 \begin_layout Plain Layout
14996 ItemSep
14997 \end_layout
14998
14999 \end_inset
15000
15001  [
15002 \begin_inset Flex Code
15003 status collapsed
15004
15005 \begin_layout Plain Layout
15006 float=0
15007 \end_layout
15008
15009 \end_inset
15010
15011 ] This provides extra space between paragraphs that have the same style.
15012  If you put other styles into an environment, each is separated with the
15013  environment's 
15014 \begin_inset Flex Code
15015 status collapsed
15016
15017 \begin_layout Plain Layout
15018 ParSep
15019 \end_layout
15020
15021 \end_inset
15022
15023 .
15024  But the whole items of the environment are additionally separated with
15025  this 
15026 \begin_inset Flex Code
15027 status collapsed
15028
15029 \begin_layout Plain Layout
15030 ItemSep
15031 \end_layout
15032
15033 \end_inset
15034
15035 .
15036  Note that this is a
15037 \emph on
15038  multiplier.
15039 \end_layout
15040
15041 \begin_layout Description
15042 \begin_inset Flex Code
15043 status collapsed
15044
15045 \begin_layout Plain Layout
15046 ItemTag
15047 \end_layout
15048
15049 \end_inset
15050
15051  [FIXME] (Used only with XML-type formats.)
15052 \end_layout
15053
15054 \begin_layout Description
15055 \begin_inset Flex Code
15056 status collapsed
15057
15058 \begin_layout Plain Layout
15059 KeepEmpty
15060 \end_layout
15061
15062 \end_inset
15063
15064  [
15065 \begin_inset Flex Code
15066 status collapsed
15067
15068 \begin_layout Plain Layout
15069
15070 \emph on
15071 0
15072 \end_layout
15073
15074 \end_inset
15075
15076 ,
15077 \begin_inset space \thinspace{}
15078 \end_inset
15079
15080
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 1
15086 \end_layout
15087
15088 \end_inset
15089
15090 ] Usually \SpecialChar LyX
15091  does not allow you to leave a paragraph empty, since it would
15092  lead to empty \SpecialChar LaTeX
15093  output.
15094  There are some cases where this could be desirable however: in a letter
15095  template, the required fields can be provided as empty fields, so that
15096  people do not forget them; in some special classes, a style can be used
15097  as some kind of break, which does not contain actual text.
15098 \end_layout
15099
15100 \begin_layout Description
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 LabelBottomsep
15106 \end_layout
15107
15108 \end_inset
15109
15110  [
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 float=0
15116 \end_layout
15117
15118 \end_inset
15119
15120 ] The vertical space between the label and the text body.
15121  Only used for labels that are above the text body (
15122 \begin_inset Flex Code
15123 status collapsed
15124
15125 \begin_layout Plain Layout
15126 Top_Environment
15127 \end_layout
15128
15129 \end_inset
15130
15131  and
15132 \begin_inset Newline newline
15133 \end_inset
15134
15135
15136 \begin_inset Flex Code
15137 status collapsed
15138
15139 \begin_layout Plain Layout
15140 Centered_Top_Environment
15141 \end_layout
15142
15143 \end_inset
15144
15145 ).
15146 \end_layout
15147
15148 \begin_layout Description
15149 \begin_inset Flex Code
15150 status collapsed
15151
15152 \begin_layout Plain Layout
15153 LabelCounter
15154 \end_layout
15155
15156 \end_inset
15157
15158  [
15159 \begin_inset Flex Code
15160 status collapsed
15161
15162 \begin_layout Plain Layout
15163 string=""
15164 \end_layout
15165
15166 \end_inset
15167
15168 ] The name of the counter for automatic numbering.
15169  In order to have the counter appear with your label, you will need to reference
15170  it in the 
15171 \begin_inset Flex Code
15172 status collapsed
15173
15174 \begin_layout Plain Layout
15175
15176 \family typewriter
15177 LabelString
15178 \end_layout
15179
15180 \end_inset
15181
15182 .
15183  This will work with 
15184 \begin_inset Flex Code
15185 status collapsed
15186
15187 \begin_layout Plain Layout
15188 LabelType
15189 \end_layout
15190
15191 \end_inset
15192
15193 s, 
15194 \begin_inset Flex Code
15195 status collapsed
15196
15197 \begin_layout Plain Layout
15198 Static
15199 \end_layout
15200
15201 \end_inset
15202
15203
15204 \begin_inset Flex Code
15205 status collapsed
15206
15207 \begin_layout Plain Layout
15208 Above
15209 \end_layout
15210
15211 \end_inset
15212
15213  and 
15214 \begin_inset Flex Code
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218 Centered
15219 \end_layout
15220
15221 \end_inset
15222
15223 , at least.
15224 \begin_inset Newline newline
15225 \end_inset
15226
15227 This 
15228 \emph on
15229 may
15230 \emph default
15231  also be given if 
15232 \begin_inset Flex Code
15233 status collapsed
15234
15235 \begin_layout Plain Layout
15236 LabelType
15237 \end_layout
15238
15239 \end_inset
15240
15241  is 
15242 \begin_inset Flex Code
15243 status collapsed
15244
15245 \begin_layout Plain Layout
15246 Enumerate
15247 \end_layout
15248
15249 \end_inset
15250
15251 , though this case is a bit complicated.
15252  Suppose you declare 
15253 \begin_inset Quotes eld
15254 \end_inset
15255
15256
15257 \begin_inset Flex Code
15258 status collapsed
15259
15260 \begin_layout Plain Layout
15261 LabelCounter myenum
15262 \end_layout
15263
15264 \end_inset
15265
15266
15267 \begin_inset Quotes erd
15268 \end_inset
15269
15270 .
15271  Then the actual counters used are 
15272 \begin_inset Flex Code
15273 status collapsed
15274
15275 \begin_layout Plain Layout
15276 myenumi
15277 \end_layout
15278
15279 \end_inset
15280
15281
15282 \begin_inset Flex Code
15283 status collapsed
15284
15285 \begin_layout Plain Layout
15286 myenumii
15287 \end_layout
15288
15289 \end_inset
15290
15291
15292 \begin_inset Flex Code
15293 status collapsed
15294
15295 \begin_layout Plain Layout
15296 myenumiii
15297 \end_layout
15298
15299 \end_inset
15300
15301  and 
15302 \begin_inset Flex Code
15303 status collapsed
15304
15305 \begin_layout Plain Layout
15306 myenumiv
15307 \end_layout
15308
15309 \end_inset
15310
15311 , much as in \SpecialChar LaTeX
15312 .
15313  These counters must all be declared separately.
15314 \begin_inset Newline newline
15315 \end_inset
15316
15317 See 
15318 \begin_inset CommandInset ref
15319 LatexCommand ref
15320 reference "subsec:Counters"
15321
15322 \end_inset
15323
15324  for details on counters.
15325 \end_layout
15326
15327 \begin_layout Description
15328 \begin_inset Flex Code
15329 status collapsed
15330
15331 \begin_layout Plain Layout
15332 LabelFont
15333 \end_layout
15334
15335 \end_inset
15336
15337  The font used for the label.
15338  See 
15339 \begin_inset CommandInset ref
15340 LatexCommand ref
15341 reference "subsec:Font-description"
15342
15343 \end_inset
15344
15345 .
15346 \end_layout
15347
15348 \begin_layout Description
15349 \begin_inset Flex Code
15350 status collapsed
15351
15352 \begin_layout Plain Layout
15353 LabelIndent
15354 \end_layout
15355
15356 \end_inset
15357
15358  [
15359 \begin_inset Flex Code
15360 status collapsed
15361
15362 \begin_layout Plain Layout
15363 string=""
15364 \end_layout
15365
15366 \end_inset
15367
15368 ] Text that indicates how far a label should be indented.
15369 \end_layout
15370
15371 \begin_layout Description
15372 \begin_inset Flex Code
15373 status collapsed
15374
15375 \begin_layout Plain Layout
15376 LabelSep
15377 \end_layout
15378
15379 \end_inset
15380
15381  [
15382 \begin_inset Flex Code
15383 status collapsed
15384
15385 \begin_layout Plain Layout
15386 string=""
15387 \end_layout
15388
15389 \end_inset
15390
15391 ] Text that indicates the amount of horizontal space between the label and
15392  the text body.
15393  Only used for labels that are not above the text body.
15394 \end_layout
15395
15396 \begin_layout Description
15397 \begin_inset Flex Code
15398 status collapsed
15399
15400 \begin_layout Plain Layout
15401 LabelString
15402 \end_layout
15403
15404 \end_inset
15405
15406  [
15407 \begin_inset Flex Code
15408 status collapsed
15409
15410 \begin_layout Plain Layout
15411 string=""
15412 \end_layout
15413
15414 \end_inset
15415
15416 ] The string used for the label.
15417  When 
15418 \begin_inset Flex Code
15419 status collapsed
15420
15421 \begin_layout Plain Layout
15422 LabelCounter
15423 \end_layout
15424
15425 \end_inset
15426
15427  is set, this string can be contain the special formatting commands described
15428  in 
15429 \begin_inset CommandInset ref
15430 LatexCommand ref
15431 reference "subsec:Counters"
15432
15433 \end_inset
15434
15435 .
15436 \end_layout
15437
15438 \begin_layout Description
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 LabelStringAppendix
15444 \end_layout
15445
15446 \end_inset
15447
15448  [
15449 \begin_inset Flex Code
15450 status collapsed
15451
15452 \begin_layout Plain Layout
15453 string=""
15454 \end_layout
15455
15456 \end_inset
15457
15458 ] This is used inside the appendix instead of
15459 \begin_inset Newline newline
15460 \end_inset
15461
15462
15463 \begin_inset Flex Code
15464 status collapsed
15465
15466 \begin_layout Plain Layout
15467 LabelString
15468 \end_layout
15469
15470 \end_inset
15471
15472 .
15473  Note that every 
15474 \begin_inset Flex Code
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478 LabelString
15479 \end_layout
15480
15481 \end_inset
15482
15483  statement resets
15484 \begin_inset Newline newline
15485 \end_inset
15486
15487
15488 \begin_inset Flex Code
15489 status collapsed
15490
15491 \begin_layout Plain Layout
15492 LabelStringAppendix
15493 \end_layout
15494
15495 \end_inset
15496
15497  too.
15498 \end_layout
15499
15500 \begin_layout Description
15501 \begin_inset Flex Code
15502 status collapsed
15503
15504 \begin_layout Plain Layout
15505 LabelTag
15506 \end_layout
15507
15508 \end_inset
15509
15510  [FIXME] (Used only with XML-type formats.)
15511 \end_layout
15512
15513 \begin_layout Description
15514 \begin_inset Flex Code
15515 status collapsed
15516
15517 \begin_layout Plain Layout
15518 LabelType
15519 \end_layout
15520
15521 \end_inset
15522
15523  [
15524 \begin_inset Flex Code
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528
15529 \emph on
15530 No_Label
15531 \emph default
15532 , Manual, Static, Above, 
15533 \begin_inset Newline newline
15534 \end_inset
15535
15536 Centered, Sensitive, Enumerate,
15537 \begin_inset Newline newline
15538 \end_inset
15539
15540 Itemize, Bibliography
15541 \end_layout
15542
15543 \end_inset
15544
15545 ]
15546 \end_layout
15547
15548 \begin_deeper
15549 \begin_layout Description
15550 \begin_inset Flex Code
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554 Manual
15555 \end_layout
15556
15557 \end_inset
15558
15559  means the label is the very first word (up to the first real blank).
15560  Use 
15561 \change_deleted 177693 1654669087
15562 protected
15563 \change_inserted 177693 1654669089
15564 non-breaking
15565 \change_unchanged
15566  spaces if you want more than one word as the label.
15567  
15568 \end_layout
15569
15570 \begin_layout Description
15571 \begin_inset Flex Code
15572 status collapsed
15573
15574 \begin_layout Plain Layout
15575 Static
15576 \end_layout
15577
15578 \end_inset
15579
15580  means the label is simply what is declared as 
15581 \begin_inset Flex Code
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585 LabelString
15586 \end_layout
15587
15588 \end_inset
15589
15590 .
15591  This will be displayed 
15592 \begin_inset Quotes eld
15593 \end_inset
15594
15595 inline
15596 \begin_inset Quotes erd
15597 \end_inset
15598
15599 , at the beginning of the paragraph.
15600  If the 
15601 \begin_inset Flex Code
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605 LatexType
15606 \end_layout
15607
15608 \end_inset
15609
15610  is 
15611 \begin_inset Flex Code
15612 status collapsed
15613
15614 \begin_layout Plain Layout
15615 Environment
15616 \end_layout
15617
15618 \end_inset
15619
15620 , then it will be displayed only in the first paragraph of any sequence
15621  of paragraphs with the same 
15622 \begin_inset Flex Code
15623 status collapsed
15624
15625 \begin_layout Plain Layout
15626 Style
15627 \end_layout
15628
15629 \end_inset
15630
15631 .
15632 \end_layout
15633
15634 \begin_layout Description
15635 \begin_inset Flex Code
15636 status collapsed
15637
15638 \begin_layout Plain Layout
15639 Above
15640 \end_layout
15641
15642 \end_inset
15643
15644
15645 \begin_inset space ~
15646 \end_inset
15647
15648 and
15649 \begin_inset space ~
15650 \end_inset
15651
15652
15653 \begin_inset Flex Code
15654 status collapsed
15655
15656 \begin_layout Plain Layout
15657 Centered
15658 \end_layout
15659
15660 \end_inset
15661
15662  are special cases of 
15663 \begin_inset Flex Code
15664 status collapsed
15665
15666 \begin_layout Plain Layout
15667 Static
15668 \end_layout
15669
15670 \end_inset
15671
15672 .
15673  The label will be printed above the paragraph either at the beginning of
15674  the line or centered.
15675 \end_layout
15676
15677 \begin_layout Description
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  is a special case for the caption-labels 
15688 \begin_inset Quotes eld
15689 \end_inset
15690
15691 Figure
15692 \begin_inset Quotes erd
15693 \end_inset
15694
15695  and 
15696 \begin_inset Quotes eld
15697 \end_inset
15698
15699 Table
15700 \begin_inset Quotes erd
15701 \end_inset
15702
15703 .
15704 \begin_inset Newline newline
15705 \end_inset
15706
15707
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 Sensitive
15713 \end_layout
15714
15715 \end_inset
15716
15717  means the (hardcoded) label string depends on the kind of float: It is
15718  hardcoded to be `FloatType N', where N is the value of the counter associated
15719  with the float.
15720  For the case that a caption is inserted outside of a float the 
15721 \begin_inset Flex Code
15722 status collapsed
15723
15724 \begin_layout Plain Layout
15725 LabelString
15726 \end_layout
15727
15728 \end_inset
15729
15730  will appear as 
15731 \begin_inset Quotes eld
15732 \end_inset
15733
15734 Senseless!
15735 \begin_inset Quotes erd
15736 \end_inset
15737
15738 .
15739 \end_layout
15740
15741 \begin_layout Description
15742 \begin_inset Flex Code
15743 status collapsed
15744
15745 \begin_layout Plain Layout
15746 Enumerate
15747 \end_layout
15748
15749 \end_inset
15750
15751  produces the usual sort of enumeration labels.
15752  The number type needs to be set in the 
15753 \family sans
15754 Counter
15755 \family default
15756 , see 
15757 \begin_inset CommandInset ref
15758 LatexCommand ref
15759 reference "subsec:Counters"
15760
15761 \end_inset
15762
15763 .
15764 \end_layout
15765
15766 \begin_layout Description
15767 \begin_inset Flex Code
15768 status collapsed
15769
15770 \begin_layout Plain Layout
15771 Itemize
15772 \end_layout
15773
15774 \end_inset
15775
15776  produces various bullets at the different levels.
15777  The bullet types displayed can be set via 
15778 \begin_inset Flex Noun
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782 Document\SpecialChar menuseparator
15783 Settings\SpecialChar menuseparator
15784 Bullets
15785 \end_layout
15786
15787 \end_inset
15788
15789 .
15790 \end_layout
15791
15792 \begin_layout Description
15793 \begin_inset Flex Code
15794 status collapsed
15795
15796 \begin_layout Plain Layout
15797 Bibliography
15798 \end_layout
15799
15800 \end_inset
15801
15802  should be used only with 
15803 \begin_inset Flex Code
15804 status collapsed
15805
15806 \begin_layout Plain Layout
15807 LatexType BibEnvironment
15808 \end_layout
15809
15810 \end_inset
15811
15812 .
15813 \end_layout
15814
15815 \end_deeper
15816 \begin_layout Description
15817 \begin_inset Flex Code
15818 status collapsed
15819
15820 \begin_layout Plain Layout
15821 LangPreamble
15822 \end_layout
15823
15824 \end_inset
15825
15826  Note that this will completely override any prior 
15827 \begin_inset Flex Code
15828 status collapsed
15829
15830 \begin_layout Plain Layout
15831 LangPreamble
15832 \end_layout
15833
15834 \end_inset
15835
15836  declaration for this style.
15837  Must end with 
15838 \begin_inset Quotes eld
15839 \end_inset
15840
15841
15842 \begin_inset Flex Code
15843 status collapsed
15844
15845 \begin_layout Plain Layout
15846 EndLangPreamble
15847 \end_layout
15848
15849 \end_inset
15850
15851
15852 \begin_inset Quotes erd
15853 \end_inset
15854
15855 .
15856  See 
15857 \begin_inset CommandInset ref
15858 LatexCommand ref
15859 reference "subsec:I18n"
15860
15861 \end_inset
15862
15863  for details on its use.
15864 \end_layout
15865
15866 \begin_layout Description
15867 \begin_inset Flex Code
15868 status collapsed
15869
15870 \begin_layout Plain Layout
15871 LatexName
15872 \end_layout
15873
15874 \end_inset
15875
15876  [
15877 \begin_inset Flex Code
15878 status collapsed
15879
15880 \begin_layout Plain Layout
15881 <name>
15882 \end_layout
15883
15884 \end_inset
15885
15886 ] The name of the corresponding \SpecialChar LaTeX
15887  stuff.
15888  Either the environment or command name.
15889 \end_layout
15890
15891 \begin_layout Description
15892 \begin_inset Flex Code
15893 status collapsed
15894
15895 \begin_layout Plain Layout
15896 LatexParam
15897 \end_layout
15898
15899 \end_inset
15900
15901  [
15902 \begin_inset Flex Code
15903 status collapsed
15904
15905 \begin_layout Plain Layout
15906 <parameter>
15907 \end_layout
15908
15909 \end_inset
15910
15911 ] An optional parameter for the corresponding 
15912 \begin_inset Flex Code
15913 status collapsed
15914
15915 \begin_layout Plain Layout
15916 LatexName
15917 \end_layout
15918
15919 \end_inset
15920
15921  stuff.
15922  This parameter cannot be changed from within \SpecialChar LyX
15923  (use 
15924 \begin_inset Flex Code
15925 status collapsed
15926
15927 \begin_layout Plain Layout
15928 Argument
15929 \end_layout
15930
15931 \end_inset
15932
15933  for customizable parameters).
15934  This will be output as is after all \SpecialChar LaTeX
15935  
15936 \begin_inset Flex Code
15937 status collapsed
15938
15939 \begin_layout Plain Layout
15940 Argument
15941 \end_layout
15942
15943 \end_inset
15944
15945 s.
15946 \end_layout
15947
15948 \begin_layout Description
15949 \begin_inset Flex Code
15950 status collapsed
15951
15952 \begin_layout Plain Layout
15953 LatexType
15954 \end_layout
15955
15956 \end_inset
15957
15958  [
15959 \begin_inset Flex Code
15960 status collapsed
15961
15962 \begin_layout Plain Layout
15963
15964 \emph on
15965 Paragraph
15966 \emph default
15967 , Command, Environment, Item_Environment,
15968 \begin_inset Newline newline
15969 \end_inset
15970
15971 List_Environment, Bib_Environment
15972 \end_layout
15973
15974 \end_inset
15975
15976 ] How the style should be translated into \SpecialChar LaTeX
15977 .
15978 \begin_inset Foot
15979 status collapsed
15980
15981 \begin_layout Plain Layout
15982 \begin_inset Flex Code
15983 status collapsed
15984
15985 \begin_layout Plain Layout
15986 LatexType
15987 \end_layout
15988
15989 \end_inset
15990
15991  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15992  Visit the SGML class files for specific examples.
15993 \end_layout
15994
15995 \end_inset
15996
15997
15998 \end_layout
15999
16000 \begin_deeper
16001 \begin_layout Description
16002 \begin_inset Flex Code
16003 status collapsed
16004
16005 \begin_layout Plain Layout
16006 Paragraph
16007 \end_layout
16008
16009 \end_inset
16010
16011  means nothing special.
16012 \end_layout
16013
16014 \begin_layout Description
16015 \begin_inset Flex Code
16016 status collapsed
16017
16018 \begin_layout Plain Layout
16019 Command
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
16032 \emph on
16033 LatexName
16034 \emph default
16035 {\SpecialChar ldots
16036 }
16037 \end_layout
16038
16039 \end_inset
16040
16041 .
16042 \end_layout
16043
16044 \begin_layout Description
16045 \begin_inset Flex Code
16046 status collapsed
16047
16048 \begin_layout Plain Layout
16049 Environment
16050 \end_layout
16051
16052 \end_inset
16053
16054  means 
16055 \begin_inset Flex Code
16056 status collapsed
16057
16058 \begin_layout Plain Layout
16059
16060 \backslash
16061 begin{
16062 \emph on
16063 LatexName
16064 \emph default
16065 }\SpecialChar ldots
16066
16067 \backslash
16068 end{
16069 \emph on
16070 LatexName
16071 \emph default
16072 }
16073 \end_layout
16074
16075 \end_inset
16076
16077 .
16078  
16079 \end_layout
16080
16081 \begin_layout Description
16082 \begin_inset Flex Code
16083 status collapsed
16084
16085 \begin_layout Plain Layout
16086 Item_Environment
16087 \end_layout
16088
16089 \end_inset
16090
16091  is the same as 
16092 \begin_inset Flex Code
16093 status collapsed
16094
16095 \begin_layout Plain Layout
16096 Environment
16097 \end_layout
16098
16099 \end_inset
16100
16101 , except that an 
16102 \begin_inset Flex Code
16103 status collapsed
16104
16105 \begin_layout Plain Layout
16106
16107 \backslash
16108 item
16109 \end_layout
16110
16111 \end_inset
16112
16113  is generated for each paragraph of this environment.
16114  
16115 \end_layout
16116
16117 \begin_layout Description
16118 \begin_inset Flex Code
16119 status collapsed
16120
16121 \begin_layout Plain Layout
16122 List_Environment
16123 \end_layout
16124
16125 \end_inset
16126
16127  is the same as 
16128 \begin_inset Flex Code
16129 status collapsed
16130
16131 \begin_layout Plain Layout
16132 Item_Environment
16133 \end_layout
16134
16135 \end_inset
16136
16137 , except that
16138 \begin_inset Newline newline
16139 \end_inset
16140
16141
16142 \begin_inset Flex Code
16143 status collapsed
16144
16145 \begin_layout Plain Layout
16146 LabelWidthString
16147 \end_layout
16148
16149 \end_inset
16150
16151  is passed as an argument to the environment.
16152 \begin_inset Newline newline
16153 \end_inset
16154
16155
16156 \begin_inset Flex Code
16157 status collapsed
16158
16159 \begin_layout Plain Layout
16160 LabelWidthString
16161 \end_layout
16162
16163 \end_inset
16164
16165  can be defined in the 
16166 \begin_inset Flex Noun
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170 Edit\SpecialChar menuseparator
16171 Paragraph
16172 \begin_inset space ~
16173 \end_inset
16174
16175 settings
16176 \end_layout
16177
16178 \end_inset
16179
16180  dialog.
16181 \end_layout
16182
16183 \begin_layout Description
16184 \begin_inset Flex Code
16185 status collapsed
16186
16187 \begin_layout Plain Layout
16188 Bib_Environment
16189 \end_layout
16190
16191 \end_inset
16192
16193  is like 
16194 \begin_inset Flex Code
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198 Environment
16199 \end_layout
16200
16201 \end_inset
16202
16203  but adds the necessary mandatory argument (the longest label) to the begin
16204  statement of the bibliography environment:
16205 \begin_inset Newline newline
16206 \end_inset
16207
16208
16209 \begin_inset Flex Code
16210 status collapsed
16211
16212 \begin_layout Plain Layout
16213
16214 \backslash
16215 begin{thebibliography}{99}
16216 \end_layout
16217
16218 \end_inset
16219
16220 .
16221  It is therefore only useful for bibliography environments.
16222  The default longest label 
16223 \begin_inset Quotes eld
16224 \end_inset
16225
16226 99
16227 \begin_inset Quotes erd
16228 \end_inset
16229
16230  can be changed by the user in the paragraph settings of a bibliography
16231  item.
16232 \end_layout
16233
16234 \begin_layout Standard
16235 Putting the last few things together, the \SpecialChar LaTeX
16236  output will be either: 
16237 \end_layout
16238
16239 \begin_layout LyX-Code
16240
16241 \backslash
16242 LatexName[LatexParam]{\SpecialChar ldots
16243 }
16244 \end_layout
16245
16246 \begin_layout Standard
16247 or: 
16248 \end_layout
16249
16250 \begin_layout LyX-Code
16251
16252 \backslash
16253 begin{LatexName}[LatexParam] \SpecialChar ldots
16254  
16255 \backslash
16256 end{LatexName}.
16257 \end_layout
16258
16259 \begin_layout Standard
16260 depending upon the \SpecialChar LaTeX
16261  type.
16262 \end_layout
16263
16264 \end_deeper
16265 \begin_layout Description
16266 \begin_inset Flex Code
16267 status collapsed
16268
16269 \begin_layout Plain Layout
16270 LeftDelim
16271 \end_layout
16272
16273 \end_inset
16274
16275  [
16276 \begin_inset Flex Code
16277 status collapsed
16278
16279 \begin_layout Plain Layout
16280 string
16281 \end_layout
16282
16283 \end_inset
16284
16285 ] A string that is put at the beginning of the style content.
16286  A line break in the output can be indicated by 
16287 \begin_inset Flex Code
16288 status collapsed
16289
16290 \begin_layout Plain Layout
16291 <br/>
16292 \end_layout
16293
16294 \end_inset
16295
16296 .
16297 \end_layout
16298
16299 \begin_layout Description
16300 \begin_inset Flex Code
16301 status collapsed
16302
16303 \begin_layout Plain Layout
16304 LeftMargin
16305 \end_layout
16306
16307 \end_inset
16308
16309  [
16310 \begin_inset Flex Code
16311 status collapsed
16312
16313 \begin_layout Plain Layout
16314 string=""
16315 \end_layout
16316
16317 \end_inset
16318
16319 ] If you put styles into environments, the different 
16320 \begin_inset Flex Code
16321 status collapsed
16322
16323 \begin_layout Plain Layout
16324 LeftMargin
16325 \end_layout
16326
16327 \end_inset
16328
16329  are not simply added, but added with a factor 
16330 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16331 \end_inset
16332
16333 .
16334  Note that this parameter is also used when 
16335 \begin_inset Flex Code
16336 status collapsed
16337
16338 \begin_layout Plain Layout
16339 Margin
16340 \end_layout
16341
16342 \end_inset
16343
16344  is defined as 
16345 \begin_inset Flex Code
16346 status collapsed
16347
16348 \begin_layout Plain Layout
16349 Manual
16350 \end_layout
16351
16352 \end_inset
16353
16354  or 
16355 \begin_inset Flex Code
16356 status collapsed
16357
16358 \begin_layout Plain Layout
16359 Dynamic
16360 \end_layout
16361
16362 \end_inset
16363
16364 .
16365  Then it is added to the manual or dynamic margin.
16366 \begin_inset Newline newline
16367 \end_inset
16368
16369 For example 
16370 \begin_inset Quotes eld
16371 \end_inset
16372
16373
16374 \begin_inset Flex Code
16375 status collapsed
16376
16377 \begin_layout Plain Layout
16378 MM
16379 \end_layout
16380
16381 \end_inset
16382
16383
16384 \begin_inset Quotes erd
16385 \end_inset
16386
16387  means that the paragraph is indented with the width of 
16388 \begin_inset Quotes eld
16389 \end_inset
16390
16391
16392 \begin_inset Flex Code
16393 status collapsed
16394
16395 \begin_layout Plain Layout
16396 MM
16397 \end_layout
16398
16399 \end_inset
16400
16401
16402 \begin_inset Quotes erd
16403 \end_inset
16404
16405  in the normal font.
16406  You can get a negative width by prefixing the string with 
16407 \begin_inset Quotes eld
16408 \end_inset
16409
16410
16411 \begin_inset Flex Code
16412 status collapsed
16413
16414 \begin_layout Plain Layout
16415 -
16416 \end_layout
16417
16418 \end_inset
16419
16420
16421 \begin_inset Quotes erd
16422 \end_inset
16423
16424 .
16425  This way was chosen so that the look is the same with each used screen
16426  font.
16427 \end_layout
16428
16429 \begin_layout Description
16430 \begin_inset Flex Code
16431 status collapsed
16432
16433 \begin_layout Plain Layout
16434 Margin
16435 \end_layout
16436
16437 \end_inset
16438
16439  [
16440 \begin_inset Flex Code
16441 status collapsed
16442
16443 \begin_layout Plain Layout
16444
16445 \emph on
16446 Static
16447 \emph default
16448 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16449 \end_layout
16450
16451 \end_inset
16452
16453
16454 \begin_inset Newline newline
16455 \end_inset
16456
16457 The kind of margin that the style has on the left side.
16458 \end_layout
16459
16460 \begin_deeper
16461 \begin_layout Description
16462 \begin_inset Flex Code
16463 status collapsed
16464
16465 \begin_layout Plain Layout
16466 Static
16467 \end_layout
16468
16469 \end_inset
16470
16471  just means a fixed margin.
16472 \end_layout
16473
16474 \begin_layout Description
16475 \begin_inset Flex Code
16476 status collapsed
16477
16478 \begin_layout Plain Layout
16479 Manual
16480 \end_layout
16481
16482 \end_inset
16483
16484  means that the left margin depends on the string entered in the 
16485 \begin_inset Flex Noun
16486 status collapsed
16487
16488 \begin_layout Plain Layout
16489 Edit\SpecialChar menuseparator
16490 Paragraph
16491 \begin_inset space ~
16492 \end_inset
16493
16494 Settings
16495 \end_layout
16496
16497 \end_inset
16498
16499  dialog.
16500  This is used to typeset nice lists without tabulators.
16501 \end_layout
16502
16503 \begin_layout Description
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508 Dynamic
16509 \end_layout
16510
16511 \end_inset
16512
16513  means that the margin depends on the size of the label.
16514  This is used for automatic enumerated headlines.
16515  It is obvious that the headline 
16516 \begin_inset Quotes eld
16517 \end_inset
16518
16519 5.4.3.2.1 Very long headline
16520 \begin_inset Quotes erd
16521 \end_inset
16522
16523  must have a wider left margin (as wide as 
16524 \begin_inset Quotes eld
16525 \end_inset
16526
16527 5.4.3.2.1
16528 \begin_inset Quotes erd
16529 \end_inset
16530
16531  plus the space) than 
16532 \begin_inset Quotes eld
16533 \end_inset
16534
16535 3.2 Very long headline
16536 \begin_inset Quotes erd
16537 \end_inset
16538
16539 , even if standard 
16540 \begin_inset Quotes eld
16541 \end_inset
16542
16543 word processors
16544 \begin_inset Quotes erd
16545 \end_inset
16546
16547  are not able to do this.
16548 \end_layout
16549
16550 \begin_layout Description
16551 \begin_inset Flex Code
16552 status collapsed
16553
16554 \begin_layout Plain Layout
16555 First_Dynamic
16556 \end_layout
16557
16558 \end_inset
16559
16560  is similar, but only the very first row of the paragraph is dynamic, while
16561  the others are static; this is used, for example, for descriptions.
16562 \end_layout
16563
16564 \begin_layout Description
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569 Right_Address_Box
16570 \end_layout
16571
16572 \end_inset
16573
16574  means the margin is chosen in a way that the longest row of this paragraph
16575  fits to the right margin.
16576  This is used to typeset an address on the right edge of the page.
16577 \end_layout
16578
16579 \end_deeper
16580 \begin_layout Description
16581 \begin_inset Flex Code
16582 status collapsed
16583
16584 \begin_layout Plain Layout
16585 NeedProtect
16586 \end_layout
16587
16588 \end_inset
16589
16590  [
16591 \begin_inset Flex Code
16592 status collapsed
16593
16594 \begin_layout Plain Layout
16595
16596 \emph on
16597 0
16598 \end_layout
16599
16600 \end_inset
16601
16602 ,
16603 \begin_inset space \thinspace{}
16604 \end_inset
16605
16606
16607 \begin_inset Flex Code
16608 status collapsed
16609
16610 \begin_layout Plain Layout
16611 1
16612 \end_layout
16613
16614 \end_inset
16615
16616 ] Whether fragile commands in this style should be 
16617 \begin_inset Flex Code
16618 status collapsed
16619
16620 \begin_layout Plain Layout
16621
16622 \backslash
16623 protect
16624 \end_layout
16625
16626 \end_inset
16627
16628 'ed.
16629  (Note: This is 
16630 \emph on
16631 not
16632 \emph default
16633  whether this command should itself be protected.)
16634 \change_inserted -712698321 1523696949
16635
16636 \end_layout
16637
16638 \begin_layout Description
16639
16640 \change_inserted -712698321 1552395557
16641 \begin_inset Flex Code
16642 status collapsed
16643
16644 \begin_layout Plain Layout
16645
16646 \change_inserted -712698321 1523696950
16647 NeedCProtect
16648 \change_unchanged
16649
16650 \end_layout
16651
16652 \end_inset
16653
16654  [
16655 \begin_inset Flex Code
16656 status collapsed
16657
16658 \begin_layout Plain Layout
16659
16660 \change_inserted -712698321 1523696950
16661
16662 \emph on
16663 0
16664 \change_unchanged
16665
16666 \end_layout
16667
16668 \end_inset
16669
16670 ,
16671 \begin_inset space \thinspace{}
16672 \end_inset
16673
16674
16675 \begin_inset Flex Code
16676 status collapsed
16677
16678 \begin_layout Plain Layout
16679
16680 \change_inserted -712698321 1523696950
16681 1
16682 \change_unchanged
16683
16684 \end_layout
16685
16686 \end_inset
16687
16688 ] This causes macros that contain this layout to be protected with 
16689 \begin_inset Flex Code
16690 status collapsed
16691
16692 \begin_layout Plain Layout
16693
16694 \change_inserted -712698321 1523696950
16695
16696 \backslash
16697 cprotect
16698 \change_unchanged
16699
16700 \end_layout
16701
16702 \end_inset
16703
16704  (cf.
16705  package 
16706 \family sans
16707 cprotect
16708 \family default
16709 ) if necessary and thus allows (some) verbatim stuff in macros.
16710 \end_layout
16711
16712 \begin_layout Description
16713
16714 \change_inserted -712698321 1552395844
16715 \begin_inset Flex Code
16716 status collapsed
16717
16718 \begin_layout Plain Layout
16719
16720 \change_inserted -712698321 1552395561
16721 NeedMBoxProtect
16722 \change_unchanged
16723
16724 \end_layout
16725
16726 \end_inset
16727
16728  [
16729 \begin_inset Flex Code
16730 status collapsed
16731
16732 \begin_layout Plain Layout
16733
16734 \change_inserted -712698321 1552395557
16735
16736 \emph on
16737 0
16738 \change_unchanged
16739
16740 \end_layout
16741
16742 \end_inset
16743
16744 ,
16745 \begin_inset space \thinspace{}
16746 \end_inset
16747
16748
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753
16754 \change_inserted -712698321 1552395557
16755 1
16756 \change_unchanged
16757
16758 \end_layout
16759
16760 \end_inset
16761
16762 ] Whether specific commands in this style (such as 
16763 \begin_inset Flex Code
16764 status collapsed
16765
16766 \begin_layout Plain Layout
16767
16768 \change_inserted -712698321 1552395655
16769
16770 \backslash
16771 cite
16772 \change_unchanged
16773
16774 \end_layout
16775
16776 \end_inset
16777
16778  and 
16779 \begin_inset Flex Code
16780 status collapsed
16781
16782 \begin_layout Plain Layout
16783
16784 \change_inserted -712698321 1552395661
16785
16786 \backslash
16787 ref
16788 \change_unchanged
16789
16790 \end_layout
16791
16792 \end_inset
16793
16794 ) should be protected in an 
16795 \begin_inset Flex Code
16796 status collapsed
16797
16798 \begin_layout Plain Layout
16799
16800 \change_inserted -712698321 1552395631
16801
16802 \backslash
16803 mbox
16804 \change_unchanged
16805
16806 \end_layout
16807
16808 \end_inset
16809
16810 .
16811  This is particularly needed for styles that draw on 
16812 \family sans
16813 ulem
16814 \family default
16815  or 
16816 \family sans
16817 soul
16818 \family default
16819  commands which parse their content in complex ways.
16820 \change_unchanged
16821
16822 \end_layout
16823
16824 \begin_layout Description
16825 \begin_inset Flex Code
16826 status collapsed
16827
16828 \begin_layout Plain Layout
16829 Newline
16830 \end_layout
16831
16832 \end_inset
16833
16834  [
16835 \begin_inset Flex Code
16836 status collapsed
16837
16838 \begin_layout Plain Layout
16839 0
16840 \end_layout
16841
16842 \end_inset
16843
16844 ,
16845 \begin_inset space \thinspace{}
16846 \end_inset
16847
16848
16849 \begin_inset Flex Code
16850 status collapsed
16851
16852 \begin_layout Plain Layout
16853
16854 \emph on
16855 1
16856 \end_layout
16857
16858 \end_inset
16859
16860 ] Whether newlines are translated into \SpecialChar LaTeX
16861  newlines (
16862 \begin_inset Flex Code
16863 status collapsed
16864
16865 \begin_layout Plain Layout
16866
16867 \backslash
16868
16869 \backslash
16870
16871 \end_layout
16872
16873 \end_inset
16874
16875 ) or not.
16876  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16877  editing
16878  inside \SpecialChar LyX
16879 .
16880 \end_layout
16881
16882 \begin_layout Description
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 NextNoIndent
16888 \end_layout
16889
16890 \end_inset
16891
16892  [
16893 \begin_inset Flex Code
16894 status collapsed
16895
16896 \begin_layout Plain Layout
16897
16898 \emph on
16899 0
16900 \end_layout
16901
16902 \end_inset
16903
16904 ,
16905 \begin_inset space \thinspace{}
16906 \end_inset
16907
16908
16909 \begin_inset Flex Code
16910 status collapsed
16911
16912 \begin_layout Plain Layout
16913 1
16914 \end_layout
16915
16916 \end_inset
16917
16918 ] If set to true, and if 
16919 \begin_inset Flex Code
16920 status collapsed
16921
16922 \begin_layout Plain Layout
16923 DefaultStyle
16924 \end_layout
16925
16926 \end_inset
16927
16928  (usually 
16929 \begin_inset Flex Code
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933 Standard
16934 \end_layout
16935
16936 \end_inset
16937
16938 ) paragraphs are being indented, then the indentation of such a paragraph
16939  following one of this type will be suppressed.
16940  (So this will not affect the display of non-default paragraphs.)
16941 \end_layout
16942
16943 \begin_layout Description
16944 \begin_inset Flex Code
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948 ObsoletedBy
16949 \end_layout
16950
16951 \end_inset
16952
16953  [
16954 \begin_inset Flex Code
16955 status collapsed
16956
16957 \begin_layout Plain Layout
16958 <name>
16959 \end_layout
16960
16961 \end_inset
16962
16963 ] Name of a style that has replaced this style.
16964  This is used to rename a style, while keeping backward compatibility.
16965 \end_layout
16966
16967 \begin_layout Description
16968 \begin_inset Flex Code
16969 status collapsed
16970
16971 \begin_layout Plain Layout
16972 ParagraphGroup
16973 \end_layout
16974
16975 \end_inset
16976
16977  [
16978 \begin_inset Flex Code
16979 status collapsed
16980
16981 \begin_layout Plain Layout
16982 0
16983 \end_layout
16984
16985 \end_inset
16986
16987 ,
16988 \begin_inset space \thinspace{}
16989 \end_inset
16990
16991
16992 \begin_inset Flex Code
16993 status collapsed
16994
16995 \begin_layout Plain Layout
16996 1
16997 \end_layout
16998
16999 \end_inset
17000
17001 ] Determines whether consecutive paragraphs of the same type are treated
17002  as belonging together.
17003  This has the effect that the 
17004 \begin_inset Flex Code
17005 status collapsed
17006
17007 \begin_layout Plain Layout
17008 GuiLabel
17009 \end_layout
17010
17011 \end_inset
17012
17013  is only printed once before such a group.
17014  By default, this is true for 
17015 \begin_inset Flex Code
17016 status collapsed
17017
17018 \begin_layout Plain Layout
17019 LaTeXType
17020 \end_layout
17021
17022 \end_inset
17023
17024  
17025 \begin_inset Flex Code
17026 status collapsed
17027
17028 \begin_layout Plain Layout
17029 Environment
17030 \end_layout
17031
17032 \end_inset
17033
17034  and 
17035 \begin_inset Flex Code
17036 status collapsed
17037
17038 \begin_layout Plain Layout
17039 Bib_Environment
17040 \end_layout
17041
17042 \end_inset
17043
17044  and false for all other types.
17045 \end_layout
17046
17047 \begin_layout Description
17048 \begin_inset Flex Code
17049 status collapsed
17050
17051 \begin_layout Plain Layout
17052 ParbreakIsNewline
17053 \end_layout
17054
17055 \end_inset
17056
17057  [
17058 \begin_inset Flex Code
17059 status collapsed
17060
17061 \begin_layout Plain Layout
17062
17063 \emph on
17064 0
17065 \end_layout
17066
17067 \end_inset
17068
17069 ,
17070 \begin_inset space \thinspace{}
17071 \end_inset
17072
17073
17074 \begin_inset Flex Code
17075 status collapsed
17076
17077 \begin_layout Plain Layout
17078 1
17079 \end_layout
17080
17081 \end_inset
17082
17083 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17084  output,
17085  but only by a line break; together with 
17086 \begin_inset Flex Code
17087 status collapsed
17088
17089 \begin_layout Plain Layout
17090 PassThru 1
17091 \end_layout
17092
17093 \end_inset
17094
17095 , this allows to emulate a plain text editor (like the ERT inset).
17096 \end_layout
17097
17098 \begin_layout Description
17099 \begin_inset Flex Code
17100 status collapsed
17101
17102 \begin_layout Plain Layout
17103 ParIndent
17104 \end_layout
17105
17106 \end_inset
17107
17108  [
17109 \begin_inset Flex Code
17110 status collapsed
17111
17112 \begin_layout Plain Layout
17113 string=""
17114 \end_layout
17115
17116 \end_inset
17117
17118 ] The indent of the very first line of a paragraph.
17119  The
17120 \begin_inset Newline newline
17121 \end_inset
17122
17123
17124 \begin_inset Flex Code
17125 status collapsed
17126
17127 \begin_layout Plain Layout
17128 Parindent
17129 \end_layout
17130
17131 \end_inset
17132
17133  will be fixed for a certain style.
17134  The exception is the default style, since the indentation for these paragraphs
17135  can be prohibited with 
17136 \begin_inset Flex Code
17137 status collapsed
17138
17139 \begin_layout Plain Layout
17140 NextNoIndent
17141 \end_layout
17142
17143 \end_inset
17144
17145 .
17146  Also, 
17147 \begin_inset Flex Code
17148 status collapsed
17149
17150 \begin_layout Plain Layout
17151 Standard
17152 \end_layout
17153
17154 \end_inset
17155
17156  style paragraphs inside environments use the 
17157 \begin_inset Flex Code
17158 status collapsed
17159
17160 \begin_layout Plain Layout
17161 Parindent
17162 \end_layout
17163
17164 \end_inset
17165
17166  of the environment, not their native one.
17167  For example, 
17168 \begin_inset Flex Code
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172 Standard
17173 \end_layout
17174
17175 \end_inset
17176
17177  paragraphs inside an enumeration are not indented.
17178 \end_layout
17179
17180 \begin_layout Description
17181 \begin_inset Flex Code
17182 status collapsed
17183
17184 \begin_layout Plain Layout
17185 ParSep
17186 \end_layout
17187
17188 \end_inset
17189
17190  [
17191 \begin_inset Flex Code
17192 status collapsed
17193
17194 \begin_layout Plain Layout
17195 float=0
17196 \end_layout
17197
17198 \end_inset
17199
17200 ] The vertical space between two paragraphs of this style.
17201 \end_layout
17202
17203 \begin_layout Description
17204 \begin_inset Flex Code
17205 status collapsed
17206
17207 \begin_layout Plain Layout
17208 Parskip
17209 \end_layout
17210
17211 \end_inset
17212
17213  [
17214 \begin_inset Flex Code
17215 status collapsed
17216
17217 \begin_layout Plain Layout
17218 float=0
17219 \end_layout
17220
17221 \end_inset
17222
17223 ] \SpecialChar LyX
17224  allows the user to choose either 
17225 \begin_inset Quotes eld
17226 \end_inset
17227
17228 indent
17229 \begin_inset Quotes erd
17230 \end_inset
17231
17232  or 
17233 \begin_inset Quotes eld
17234 \end_inset
17235
17236 skip
17237 \begin_inset Quotes erd
17238 \end_inset
17239
17240  to separate paragraphs.
17241  When 
17242 \begin_inset Quotes eld
17243 \end_inset
17244
17245 indent
17246 \begin_inset Quotes erd
17247 \end_inset
17248
17249  is chosen, 
17250 \begin_inset Flex Code
17251 status collapsed
17252
17253 \begin_layout Plain Layout
17254 Parskip
17255 \end_layout
17256
17257 \end_inset
17258
17259  is ignored.
17260  When 
17261 \begin_inset Quotes eld
17262 \end_inset
17263
17264 skip
17265 \begin_inset Quotes erd
17266 \end_inset
17267
17268  is chosen, 
17269 \begin_inset Flex Code
17270 status collapsed
17271
17272 \begin_layout Plain Layout
17273 ParIndent
17274 \end_layout
17275
17276 \end_inset
17277
17278  is ignored and all paragraphs are separated by the 
17279 \begin_inset Flex Code
17280 status collapsed
17281
17282 \begin_layout Plain Layout
17283 Parskip
17284 \end_layout
17285
17286 \end_inset
17287
17288  argument.
17289  The vertical space is calculated with 
17290 \begin_inset Flex Code
17291 status collapsed
17292
17293 \begin_layout Plain Layout
17294 Parskip
17295 \begin_inset space ~
17296 \end_inset
17297
17298 * DefaultHeight
17299 \end_layout
17300
17301 \end_inset
17302
17303  where 
17304 \begin_inset Flex Code
17305 status collapsed
17306
17307 \begin_layout Plain Layout
17308 DefaultHeight
17309 \end_layout
17310
17311 \end_inset
17312
17313  is the height of a row with the normal font.
17314  This way, the look stays the same with different screen fonts.
17315 \end_layout
17316
17317 \begin_layout Description
17318 \begin_inset Flex Code
17319 status collapsed
17320
17321 \begin_layout Plain Layout
17322 PassThru
17323 \end_layout
17324
17325 \end_inset
17326
17327  [
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332
17333 \emph on
17334 0
17335 \end_layout
17336
17337 \end_inset
17338
17339 ,
17340 \begin_inset space \thinspace{}
17341 \end_inset
17342
17343
17344 \begin_inset Flex Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348 1
17349 \end_layout
17350
17351 \end_inset
17352
17353 ] Whether the contents of this paragraph should be output in raw form, meaning
17354  without special translations that \SpecialChar LaTeX
17355  would require.
17356 \end_layout
17357
17358 \begin_layout Description
17359 \begin_inset Flex Code
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363 PassThruChars
17364 \end_layout
17365
17366 \end_inset
17367
17368  [
17369 \begin_inset Flex Code
17370 status collapsed
17371
17372 \begin_layout Plain Layout
17373 string
17374 \end_layout
17375
17376 \end_inset
17377
17378 ]
17379 \family typewriter
17380  
17381 \family default
17382 Defines individual characters that should be output in raw form, meaning
17383  without special translations that \SpecialChar LaTeX
17384  would require.
17385 \end_layout
17386
17387 \begin_layout Description
17388 \begin_inset Flex Code
17389 status collapsed
17390
17391 \begin_layout Plain Layout
17392 Preamble
17393 \end_layout
17394
17395 \end_inset
17396
17397  Information to be included in the \SpecialChar LaTeX
17398  preamble when this style is used.
17399  Used to define macros, load packages, etc., required by this particular
17400  style.
17401  Must end with 
17402 \begin_inset Quotes eld
17403 \end_inset
17404
17405
17406 \begin_inset Flex Code
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410 EndPreamble
17411 \end_layout
17412
17413 \end_inset
17414
17415
17416 \begin_inset Quotes erd
17417 \end_inset
17418
17419 .
17420 \end_layout
17421
17422 \begin_layout Description
17423 \begin_inset Flex Code
17424 status collapsed
17425
17426 \begin_layout Plain Layout
17427 RefPrefix
17428 \end_layout
17429
17430 \end_inset
17431
17432  [
17433 \begin_inset Flex Code
17434 status collapsed
17435
17436 \begin_layout Plain Layout
17437 string
17438 \end_layout
17439
17440 \end_inset
17441
17442 ] The prefix to use when creating labels referring to paragraphs of this
17443  type.
17444  This allows the use of formatted references.
17445 \end_layout
17446
17447 \begin_layout Description
17448 \begin_inset Flex Code
17449 status collapsed
17450
17451 \begin_layout Plain Layout
17452 Requires 
17453 \end_layout
17454
17455 \end_inset
17456
17457  [
17458 \begin_inset Flex Code
17459 status collapsed
17460
17461 \begin_layout Plain Layout
17462 string
17463 \end_layout
17464
17465 \end_inset
17466
17467 ] Whether the style requires the feature 
17468 \begin_inset Flex Code
17469 status collapsed
17470
17471 \begin_layout Plain Layout
17472 string
17473 \end_layout
17474
17475 \end_inset
17476
17477  (see 
17478 \begin_inset CommandInset ref
17479 LatexCommand ref
17480 reference "chap:List-of-functions"
17481
17482 \end_inset
17483
17484  for the list of features).
17485  If you require a package with specific options, you can additionally use
17486  
17487 \begin_inset Flex Code
17488 status collapsed
17489
17490 \begin_layout Plain Layout
17491 PackageOptions
17492 \end_layout
17493
17494 \end_inset
17495
17496  as a general text class parameter (see 
17497 \begin_inset CommandInset ref
17498 LatexCommand ref
17499 reference "subsec:General-text-class"
17500
17501 \end_inset
17502
17503 ).
17504 \end_layout
17505
17506 \begin_layout Description
17507 \begin_inset Flex Code
17508 status collapsed
17509
17510 \begin_layout Plain Layout
17511 ResetArgs
17512 \end_layout
17513
17514 \end_inset
17515
17516  [
17517 \begin_inset Flex Code
17518 status collapsed
17519
17520 \begin_layout Plain Layout
17521
17522 \emph on
17523 0
17524 \end_layout
17525
17526 \end_inset
17527
17528 ,
17529 \begin_inset Flex Code
17530 status collapsed
17531
17532 \begin_layout Plain Layout
17533 1
17534 \end_layout
17535
17536 \end_inset
17537
17538 ] Resets the \SpecialChar LaTeX
17539  arguments of this style (as defined via the 
17540 \begin_inset Flex Code
17541 status collapsed
17542
17543 \begin_layout Plain Layout
17544 Argument
17545 \end_layout
17546
17547 \end_inset
17548
17549  tag).
17550  This is useful if you have copied a style via 
17551 \begin_inset Flex Code
17552 status collapsed
17553
17554 \begin_layout Plain Layout
17555 CopyStyle
17556 \end_layout
17557
17558 \end_inset
17559
17560 , but you do not want to inherit its (required and optional) arguments.
17561 \end_layout
17562
17563 \begin_layout Description
17564 \begin_inset Flex Code
17565 status collapsed
17566
17567 \begin_layout Plain Layout
17568 ResumeCounter
17569 \end_layout
17570
17571 \end_inset
17572
17573  [
17574 \begin_inset Flex Code
17575 status collapsed
17576
17577 \begin_layout Plain Layout
17578
17579 \emph on
17580 0
17581 \end_layout
17582
17583 \end_inset
17584
17585 ,
17586 \begin_inset Flex Code
17587 status collapsed
17588
17589 \begin_layout Plain Layout
17590 1
17591 \end_layout
17592
17593 \end_inset
17594
17595 ] Resumes a counter that is usually reset at each new sequence of layouts.
17596  This is currently only useful when 
17597 \begin_inset Flex Code
17598 status collapsed
17599
17600 \begin_layout Plain Layout
17601 LabelType
17602 \end_layout
17603
17604 \end_inset
17605
17606  is 
17607 \begin_inset Flex Code
17608 status collapsed
17609
17610 \begin_layout Plain Layout
17611 Enumerate
17612 \end_layout
17613
17614 \end_inset
17615
17616 .
17617 \end_layout
17618
17619 \begin_layout Description
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 RightDelim
17625 \end_layout
17626
17627 \end_inset
17628
17629  [
17630 \begin_inset Flex Code
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634 string
17635 \end_layout
17636
17637 \end_inset
17638
17639 ] A string that is put at the end of the layout content.
17640  A line break in the output can be indicated by 
17641 \begin_inset Flex Code
17642 status collapsed
17643
17644 \begin_layout Plain Layout
17645 <br/>
17646 \end_layout
17647
17648 \end_inset
17649
17650 .
17651 \end_layout
17652
17653 \begin_layout Description
17654 \begin_inset Flex Code
17655 status collapsed
17656
17657 \begin_layout Plain Layout
17658 RightMargin
17659 \end_layout
17660
17661 \end_inset
17662
17663  [
17664 \begin_inset Flex Code
17665 status collapsed
17666
17667 \begin_layout Plain Layout
17668 string=""
17669 \end_layout
17670
17671 \end_inset
17672
17673 ] Similar to 
17674 \begin_inset Flex Code
17675 status collapsed
17676
17677 \begin_layout Plain Layout
17678 LeftMargin
17679 \end_layout
17680
17681 \end_inset
17682
17683 .
17684 \end_layout
17685
17686 \begin_layout Description
17687 \begin_inset Flex Code
17688 status collapsed
17689
17690 \begin_layout Plain Layout
17691 Spacing
17692 \end_layout
17693
17694 \end_inset
17695
17696  [
17697 \begin_inset Flex Code
17698 status collapsed
17699
17700 \begin_layout Plain Layout
17701
17702 \emph on
17703 single
17704 \end_layout
17705
17706 \end_inset
17707
17708
17709 \begin_inset Flex Code
17710 status collapsed
17711
17712 \begin_layout Plain Layout
17713 onehalf
17714 \end_layout
17715
17716 \end_inset
17717
17718
17719 \begin_inset Flex Code
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723 double
17724 \end_layout
17725
17726 \end_inset
17727
17728
17729 \begin_inset Flex Code
17730 status collapsed
17731
17732 \begin_layout Plain Layout
17733 other
17734 \begin_inset space ~
17735 \end_inset
17736
17737 <value>
17738 \end_layout
17739
17740 \end_inset
17741
17742 ] This defines what the default spacing should be in the style.
17743  The arguments 
17744 \begin_inset Flex Code
17745 status collapsed
17746
17747 \begin_layout Plain Layout
17748 single
17749 \end_layout
17750
17751 \end_inset
17752
17753
17754 \begin_inset Flex Code
17755 status collapsed
17756
17757 \begin_layout Plain Layout
17758 onehalf
17759 \end_layout
17760
17761 \end_inset
17762
17763  and 
17764 \begin_inset Flex Code
17765 status collapsed
17766
17767 \begin_layout Plain Layout
17768 double
17769 \end_layout
17770
17771 \end_inset
17772
17773  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17774  If you specify the argument 
17775 \begin_inset Flex Code
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 other
17780 \end_layout
17781
17782 \end_inset
17783
17784 , then you must also provide a value argument which will be the actual multiplie
17785 r value.
17786  Note that, contrary to other parameters, 
17787 \begin_inset Flex Code
17788 status collapsed
17789
17790 \begin_layout Plain Layout
17791 Spacing
17792 \end_layout
17793
17794 \end_inset
17795
17796  implies the generation of specific \SpecialChar LaTeX
17797  code, using the \SpecialChar LaTeX
17798  package 
17799 \family roman
17800
17801 \begin_inset Flex Code
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 setspace
17806 \end_layout
17807
17808 \end_inset
17809
17810 .
17811 \end_layout
17812
17813 \begin_layout Description
17814 \begin_inset Flex Code
17815 status collapsed
17816
17817 \begin_layout Plain Layout
17818 Spellcheck
17819 \end_layout
17820
17821 \end_inset
17822
17823  [
17824 \begin_inset Flex Code
17825 status collapsed
17826
17827 \begin_layout Plain Layout
17828 0
17829 \end_layout
17830
17831 \end_inset
17832
17833 ,
17834 \begin_inset space \thinspace{}
17835 \end_inset
17836
17837
17838 \begin_inset Flex Code
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842
17843 \emph on
17844 1
17845 \end_layout
17846
17847 \end_inset
17848
17849 ] Allow spell-checking paragraphs of this style.
17850  Default is true.
17851 \end_layout
17852
17853 \begin_layout Description
17854 \begin_inset Flex Code
17855 status collapsed
17856
17857 \begin_layout Plain Layout
17858 Step
17859 \change_deleted 731793113 1604355211
17860 Master
17861 \change_inserted 731793113 1604355212
17862 Parent
17863 \change_unchanged
17864 Counter
17865 \end_layout
17866
17867 \end_inset
17868
17869  [
17870 \begin_inset Flex Code
17871 status collapsed
17872
17873 \begin_layout Plain Layout
17874
17875 \emph on
17876 0
17877 \end_layout
17878
17879 \end_inset
17880
17881 ,
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886 1
17887 \end_layout
17888
17889 \end_inset
17890
17891 ] Steps the 
17892 \change_deleted 731793113 1604355214
17893 master
17894 \change_inserted 731793113 1604355216
17895 parent
17896 \change_unchanged
17897  counter of a given counter at the beginning of a new sequence of layouts.
17898  This is currently only useful when 
17899 \begin_inset Flex Code
17900 status collapsed
17901
17902 \begin_layout Plain Layout
17903 LabelType
17904 \end_layout
17905
17906 \end_inset
17907
17908  is 
17909 \begin_inset Flex Code
17910 status collapsed
17911
17912 \begin_layout Plain Layout
17913 Enumerate
17914 \end_layout
17915
17916 \end_inset
17917
17918 .
17919 \end_layout
17920
17921 \begin_layout Description
17922 \begin_inset Flex Code
17923 status collapsed
17924
17925 \begin_layout Plain Layout
17926 TextFont
17927 \end_layout
17928
17929 \end_inset
17930
17931  The font used for the text body .
17932  See 
17933 \begin_inset CommandInset ref
17934 LatexCommand ref
17935 reference "subsec:Font-description"
17936
17937 \end_inset
17938
17939 .
17940 \end_layout
17941
17942 \begin_layout Description
17943 \begin_inset Flex Code
17944 status collapsed
17945
17946 \begin_layout Plain Layout
17947 TocLevel
17948 \end_layout
17949
17950 \end_inset
17951
17952
17953 \series medium
17954  [
17955 \begin_inset Flex Code
17956 status collapsed
17957
17958 \begin_layout Plain Layout
17959
17960 \series medium
17961 int=3
17962 \end_layout
17963
17964 \end_inset
17965
17966 ]
17967 \series default
17968  The level of the style in the table of contents.
17969  This is used for automatic numbering of section headings.
17970 \end_layout
17971
17972 \begin_layout Description
17973 \begin_inset Flex Code
17974 status collapsed
17975
17976 \begin_layout Plain Layout
17977 ToggleIndent
17978 \end_layout
17979
17980 \end_inset
17981
17982  [
17983 \emph on
17984
17985 \begin_inset Flex Code
17986 status collapsed
17987
17988 \begin_layout Plain Layout
17989
17990 \emph on
17991 default
17992 \end_layout
17993
17994 \end_inset
17995
17996
17997 \emph default
17998
17999 \begin_inset Flex Code
18000 status collapsed
18001
18002 \begin_layout Plain Layout
18003 always
18004 \end_layout
18005
18006 \end_inset
18007
18008
18009 \begin_inset Flex Code
18010 status collapsed
18011
18012 \begin_layout Plain Layout
18013 never
18014 \end_layout
18015
18016 \end_inset
18017
18018 ] This tag determines whether the first line indentation of this paragraph
18019  can be toggled via the Paragraph settings dialog.
18020  If 
18021 \emph on
18022
18023 \begin_inset Flex Code
18024 status collapsed
18025
18026 \begin_layout Plain Layout
18027
18028 \emph off
18029 default
18030 \end_layout
18031
18032 \end_inset
18033
18034
18035 \emph default
18036  is set, indentation can be toggled if the document settings use 
18037 \begin_inset Quotes eld
18038 \end_inset
18039
18040 indent
18041 \begin_inset Quotes erd
18042 \end_inset
18043
18044  paragraph style, with 
18045 \begin_inset Flex Code
18046 status collapsed
18047
18048 \begin_layout Plain Layout
18049 always
18050 \end_layout
18051
18052 \end_inset
18053
18054 , indentation can always be toggled, notwithstanding the document settings,
18055  with 
18056 \begin_inset Flex Code
18057 status collapsed
18058
18059 \begin_layout Plain Layout
18060 never
18061 \end_layout
18062
18063 \end_inset
18064
18065 , indentation can never be toggled.
18066 \end_layout
18067
18068 \begin_layout Description
18069 \begin_inset Flex Code
18070 status collapsed
18071
18072 \begin_layout Plain Layout
18073 TopSep
18074 \end_layout
18075
18076 \end_inset
18077
18078  [
18079 \begin_inset Flex Code
18080 status collapsed
18081
18082 \begin_layout Plain Layout
18083 float=0
18084 \end_layout
18085
18086 \end_inset
18087
18088 ] The vertical space with which the very first of a chain of paragraphs
18089  with this style is separated from the previous paragraph.
18090  If the previous paragraph has another style, the separations are not simply
18091  added, but the maximum is taken.
18092 \end_layout
18093
18094 \begin_layout Subsection
18095 \begin_inset CommandInset label
18096 LatexCommand label
18097 name "subsec:I18n"
18098
18099 \end_inset
18100
18101 Internationalization of Paragraph Styles
18102 \end_layout
18103
18104 \begin_layout Standard
18105 \SpecialChar LyX
18106  has long supported internationalization of layout information, but, until
18107  version 2.0, this applied only to the user interface and not to, say, PDF
18108  output.
18109  Thus, French authors were forced to resort to ugly hacks if they wanted
18110  `
18111 \lang french
18112 Théorème
18113 \lang english
18114  1' instead of `Theorem 1'.
18115  Thanks to Georg Baum, that is no longer the case.
18116 \end_layout
18117
18118 \begin_layout Standard
18119 If a 
18120 \begin_inset Flex Code
18121 status collapsed
18122
18123 \begin_layout Plain Layout
18124 Style
18125 \end_layout
18126
18127 \end_inset
18128
18129  defines text that is to appear in the typeset document, it may use 
18130 \begin_inset Flex Code
18131 status collapsed
18132
18133 \begin_layout Plain Layout
18134 LangPreamble
18135 \end_layout
18136
18137 \end_inset
18138
18139  and 
18140 \begin_inset Flex Code
18141 status collapsed
18142
18143 \begin_layout Plain Layout
18144 BabelPreamble
18145 \end_layout
18146
18147 \end_inset
18148
18149  to support non-English and even multi-language documents correctly.
18150  The following excerpt (from the 
18151 \begin_inset Flex Code
18152 status collapsed
18153
18154 \begin_layout Plain Layout
18155 theorems-ams.inc
18156 \end_layout
18157
18158 \end_inset
18159
18160  file) shows how this works:
18161 \end_layout
18162
18163 \begin_layout LyX-Code
18164 Preamble
18165 \end_layout
18166
18167 \begin_deeper
18168 \begin_layout LyX-Code
18169   
18170 \backslash
18171 theoremstyle{remark}
18172 \end_layout
18173
18174 \begin_layout LyX-Code
18175   
18176 \backslash
18177 newtheorem{claim}[thm]{
18178 \backslash
18179 protect
18180 \backslash
18181 claimname}
18182 \end_layout
18183
18184 \begin_layout LyX-Code
18185 EndPreamble
18186 \end_layout
18187
18188 \begin_layout LyX-Code
18189 LangPreamble
18190 \end_layout
18191
18192 \begin_layout LyX-Code
18193   
18194 \backslash
18195 providecommand{
18196 \backslash
18197 claimname}{_(Claim)}
18198 \end_layout
18199
18200 \begin_layout LyX-Code
18201 EndLangPreamble
18202 \end_layout
18203
18204 \begin_layout LyX-Code
18205 BabelPreamble
18206 \end_layout
18207
18208 \begin_layout LyX-Code
18209     
18210 \backslash
18211 addto
18212 \backslash
18213 captions$$lang{
18214 \backslash
18215 renewcommand{
18216 \backslash
18217 claimname}{_(Claim)}}
18218 \end_layout
18219
18220 \begin_layout LyX-Code
18221 EndBabelPreamble
18222 \end_layout
18223
18224 \end_deeper
18225 \begin_layout Standard
18226 In principle, any legal \SpecialChar LaTeX
18227  may appear in the 
18228 \begin_inset Flex Code
18229 status collapsed
18230
18231 \begin_layout Plain Layout
18232 LangPreamble
18233 \end_layout
18234
18235 \end_inset
18236
18237  and 
18238 \begin_inset Flex Code
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 BabelPreamble
18243 \end_layout
18244
18245 \end_inset
18246
18247  tags, but in practice they will typically look as they do here.
18248  The key to correct translation of the typeset text is the definition of
18249  the \SpecialChar LaTeX
18250  command 
18251 \begin_inset Flex Code
18252 status collapsed
18253
18254 \begin_layout Plain Layout
18255
18256 \backslash
18257 claimname
18258 \end_layout
18259
18260 \end_inset
18261
18262  and its use in 
18263 \begin_inset Flex Code
18264 status collapsed
18265
18266 \begin_layout Plain Layout
18267
18268 \backslash
18269 newtheorem
18270 \end_layout
18271
18272 \end_inset
18273
18274 .
18275  
18276 \end_layout
18277
18278 \begin_layout Standard
18279 The 
18280 \begin_inset Flex Code
18281 status collapsed
18282
18283 \begin_layout Plain Layout
18284 LangPreamble
18285 \end_layout
18286
18287 \end_inset
18288
18289  tag provides for internationalization based upon the overall language of
18290  the document.
18291  The contents of the tag will be included in the preamble, just as with
18292  the 
18293 \begin_inset Flex Code
18294 status collapsed
18295
18296 \begin_layout Plain Layout
18297 Preamble
18298 \end_layout
18299
18300 \end_inset
18301
18302  tag.
18303  What makes it special is the use of the 
18304 \begin_inset Quotes eld
18305 \end_inset
18306
18307 function
18308 \begin_inset Quotes erd
18309 \end_inset
18310
18311  
18312 \begin_inset Flex Code
18313 status collapsed
18314
18315 \begin_layout Plain Layout
18316 _()
18317 \end_layout
18318
18319 \end_inset
18320
18321 , which will be replaced, when \SpecialChar LyX
18322  produces \SpecialChar LaTeX
18323  output, with the translation of
18324  its argument into the document language.
18325 \end_layout
18326
18327 \begin_layout Standard
18328 The 
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333 BabelPreamble
18334 \end_layout
18335
18336 \end_inset
18337
18338  tag is more complex, since it is meant to provide support for multi-language
18339  documents and so offers an interface to the 
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 babel
18345 \end_layout
18346
18347 \end_inset
18348
18349  package.
18350  Its contents will be added to the preamble once for each language that
18351  appears in the document.
18352  In this case, the argument to 
18353 \begin_inset Flex Code
18354 status collapsed
18355
18356 \begin_layout Plain Layout
18357 _()
18358 \end_layout
18359
18360 \end_inset
18361
18362  will be replaced with its translation into the language in question; the
18363  expression 
18364 \begin_inset Flex Code
18365 status collapsed
18366
18367 \begin_layout Plain Layout
18368 $$lang
18369 \end_layout
18370
18371 \end_inset
18372
18373  is replaced by the language name (as used by the babel package).
18374 \end_layout
18375
18376 \begin_layout Standard
18377 A German document that also included a French section would thus have the
18378  following in the preamble:
18379 \end_layout
18380
18381 \begin_layout LyX-Code
18382
18383 \backslash
18384 addto
18385 \backslash
18386 captionsfrench{
18387 \backslash
18388 renewcommand{
18389 \backslash
18390 claimname}{Affirmation}}
18391 \begin_inset Newline newline
18392 \end_inset
18393
18394
18395 \backslash
18396 addto
18397 \backslash
18398 captionsngerman{
18399 \backslash
18400 renewcommand{
18401 \backslash
18402 claimname}{Behauptung}}
18403 \begin_inset Newline newline
18404 \end_inset
18405
18406
18407 \backslash
18408 providecommand{
18409 \backslash
18410 claimname}{Behauptung}
18411 \end_layout
18412
18413 \begin_layout Standard
18414 \SpecialChar LaTeX
18415  and 
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 babel
18421 \end_layout
18422
18423 \end_inset
18424
18425  will then conspire to produce the correct text in the output.
18426 \end_layout
18427
18428 \begin_layout Standard
18429 One important point to note here is that the translations are provided by
18430  \SpecialChar LyX
18431  itself, through the file 
18432 \begin_inset Flex Code
18433 status collapsed
18434
18435 \begin_layout Plain Layout
18436 layouttranslations
18437 \end_layout
18438
18439 \end_inset
18440
18441 .
18442  This means, in effect, that 
18443 \begin_inset Flex Code
18444 status collapsed
18445
18446 \begin_layout Plain Layout
18447 LangPreamble
18448 \end_layout
18449
18450 \end_inset
18451
18452  and 
18453 \begin_inset Flex Code
18454 status collapsed
18455
18456 \begin_layout Plain Layout
18457 BabelPreamble
18458 \end_layout
18459
18460 \end_inset
18461
18462  are really only of use in layout files that are provided with \SpecialChar LyX
18463 , since text
18464  entered in user-created layout files will not be seen by \SpecialChar LyX
18465 's internationalizatio
18466 n routines unless the 
18467 \begin_inset Flex Code
18468 status collapsed
18469
18470 \begin_layout Plain Layout
18471 layouttranslations
18472 \end_layout
18473
18474 \end_inset
18475
18476  file is modified accordingly.
18477  That said, however, any layout created with the intention that it will
18478  be included with \SpecialChar LyX
18479  should use these tags where appropriate.
18480  Please note that the paragraph style translations provided by \SpecialChar LyX
18481  will never
18482  change with a minor update (e.
18483 \begin_inset space \thinspace{}
18484 \end_inset
18485
18486 g.
18487 \begin_inset space \space{}
18488 \end_inset
18489
18490 from version 2.1.x to 2.1.y).
18491  It is however quite likely that a major update (e.
18492 \begin_inset space \thinspace{}
18493 \end_inset
18494
18495 g.
18496 \begin_inset space \space{}
18497 \end_inset
18498
18499 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18500 \end_layout
18501
18502 \begin_layout Subsection
18503 Floats
18504 \begin_inset CommandInset label
18505 LatexCommand label
18506 name "subsec:Floats"
18507
18508 \end_inset
18509
18510
18511 \end_layout
18512
18513 \begin_layout Standard
18514 It is necessary to define the floats (
18515 \begin_inset Flex Noun
18516 status collapsed
18517
18518 \begin_layout Plain Layout
18519 figure
18520 \end_layout
18521
18522 \end_inset
18523
18524
18525 \begin_inset Flex Noun
18526 status collapsed
18527
18528 \begin_layout Plain Layout
18529 table
18530 \end_layout
18531
18532 \end_inset
18533
18534 , \SpecialChar ldots
18535 ) in the text class itself.
18536  Standard floats are included in the file 
18537 \begin_inset Flex Code
18538 status collapsed
18539
18540 \begin_layout Plain Layout
18541 stdfloats.inc
18542 \end_layout
18543
18544 \end_inset
18545
18546 , so you may have to do no more than add
18547 \end_layout
18548
18549 \begin_layout LyX-Code
18550 Input stdfloats.inc
18551 \end_layout
18552
18553 \begin_layout Standard
18554 to your layout file.
18555  If you want to implement a text class that proposes some other float types
18556  (like the AGU class bundled with \SpecialChar LyX
18557 ), the information below will hopefully
18558  help you:
18559 \end_layout
18560
18561 \begin_layout Description
18562 \begin_inset Flex Code
18563 status collapsed
18564
18565 \begin_layout Plain Layout
18566 AllowedPlacement
18567 \end_layout
18568
18569 \end_inset
18570
18571  [
18572 \begin_inset Flex Code
18573 status collapsed
18574
18575 \begin_layout Plain Layout
18576 string
18577 \end_layout
18578
18579 \end_inset
18580
18581 =!htbpH] Allowed placement options for this float type.
18582  The value is a string of placement characters.
18583  Possible characters include: 
18584 \emph on
18585 h
18586 \emph default
18587  (
18588 \begin_inset Quotes eld
18589 \end_inset
18590
18591 here if possible
18592 \begin_inset Quotes erd
18593 \end_inset
18594
18595 ), 
18596 \emph on
18597 t
18598 \emph default
18599  (
18600 \begin_inset Quotes eld
18601 \end_inset
18602
18603 top of page
18604 \begin_inset Quotes erd
18605 \end_inset
18606
18607 ), 
18608 \emph on
18609 b
18610 \emph default
18611  (
18612 \begin_inset Quotes eld
18613 \end_inset
18614
18615 bottom of page
18616 \begin_inset Quotes erd
18617 \end_inset
18618
18619 ), 
18620 \emph on
18621 p
18622 \emph default
18623  (
18624 \begin_inset Quotes eld
18625 \end_inset
18626
18627 page of floats
18628 \begin_inset Quotes erd
18629 \end_inset
18630
18631 ), 
18632 \emph on
18633 H
18634 \emph default
18635  (
18636 \begin_inset Quotes eld
18637 \end_inset
18638
18639 here definitely
18640 \begin_inset Quotes erd
18641 \end_inset
18642
18643 ) and 
18644 \emph on
18645 !
18646 \emph default
18647  (
18648 \begin_inset Quotes eld
18649 \end_inset
18650
18651 ignore LaTeX rules
18652 \begin_inset Quotes erd
18653 \end_inset
18654
18655 ).
18656  The order of the characters in the string does not matter.
18657  If no placement options are allowed, use the string 
18658 \emph on
18659 none
18660 \emph default
18661 .
18662 \end_layout
18663
18664 \begin_layout Description
18665 \begin_inset Flex Code
18666 status collapsed
18667
18668 \begin_layout Plain Layout
18669 AllowsSideways
18670 \end_layout
18671
18672 \end_inset
18673
18674  [
18675 \begin_inset Flex Code
18676 status collapsed
18677
18678 \begin_layout Plain Layout
18679
18680 \emph off
18681 0
18682 \end_layout
18683
18684 \end_inset
18685
18686 ,
18687 \begin_inset space \thinspace{}
18688 \end_inset
18689
18690
18691 \emph on
18692
18693 \begin_inset Flex Code
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697
18698 \emph on
18699 1
18700 \end_layout
18701
18702 \end_inset
18703
18704
18705 \emph default
18706 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18707 -package 
18708 \family typewriter
18709 rotfloat
18710 \family default
18711  (sidewaysfloat).
18712  Set to 
18713 \begin_inset Flex Code
18714 status collapsed
18715
18716 \begin_layout Plain Layout
18717 0
18718 \end_layout
18719
18720 \end_inset
18721
18722  if the float does not support this feature.
18723 \end_layout
18724
18725 \begin_layout Description
18726 \begin_inset Flex Code
18727 status collapsed
18728
18729 \begin_layout Plain Layout
18730 AllowsWide
18731 \end_layout
18732
18733 \end_inset
18734
18735  [
18736 \begin_inset Flex Code
18737 status collapsed
18738
18739 \begin_layout Plain Layout
18740
18741 \emph off
18742 0
18743 \end_layout
18744
18745 \end_inset
18746
18747 ,
18748 \begin_inset space \thinspace{}
18749 \end_inset
18750
18751
18752 \emph on
18753
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758
18759 \emph on
18760 1
18761 \end_layout
18762
18763 \end_inset
18764
18765
18766 \emph default
18767 ] Defines whether the float has a starred variant that spans columns in
18768  a two column paragraph.
18769  Set to 
18770 \begin_inset Flex Code
18771 status collapsed
18772
18773 \begin_layout Plain Layout
18774 0
18775 \end_layout
18776
18777 \end_inset
18778
18779  if the float does not support this feature.
18780 \end_layout
18781
18782 \begin_layout Description
18783 \begin_inset Flex Code
18784 status collapsed
18785
18786 \begin_layout Plain Layout
18787 Extension
18788 \end_layout
18789
18790 \end_inset
18791
18792  [
18793 \begin_inset Flex Code
18794 status collapsed
18795
18796 \begin_layout Plain Layout
18797 string
18798 \end_layout
18799
18800 \end_inset
18801
18802 =
18803 \begin_inset Quotes erd
18804 \end_inset
18805
18806
18807 \begin_inset Quotes erd
18808 \end_inset
18809
18810 ] The file name extension of an auxiliary file for the list of figures (or
18811  whatever).
18812  \SpecialChar LaTeX
18813  writes the captions to this file.
18814 \end_layout
18815
18816 \begin_layout Description
18817 \begin_inset Flex Code
18818 status collapsed
18819
18820 \begin_layout Plain Layout
18821 GuiName
18822 \end_layout
18823
18824 \end_inset
18825
18826  [
18827 \begin_inset Flex Code
18828 status collapsed
18829
18830 \begin_layout Plain Layout
18831 string
18832 \end_layout
18833
18834 \end_inset
18835
18836 =
18837 \begin_inset Quotes erd
18838 \end_inset
18839
18840
18841 \begin_inset Quotes erd
18842 \end_inset
18843
18844 ] The string that will be used in the menus and also for the caption.
18845  This is translated to the current language if babel is used.
18846 \end_layout
18847
18848 \begin_layout Description
18849 \begin_inset Flex Code
18850 status collapsed
18851
18852 \begin_layout Plain Layout
18853 HTML*
18854 \end_layout
18855
18856 \end_inset
18857
18858  These tags control the XHTML output.
18859  See 
18860 \begin_inset CommandInset ref
18861 LatexCommand ref
18862 reference "sec:Tags-for-XHTML"
18863
18864 \end_inset
18865
18866 .
18867 \end_layout
18868
18869 \begin_layout Description
18870 \begin_inset Flex Code
18871 status collapsed
18872
18873 \begin_layout Plain Layout
18874 IsPredefined
18875 \end_layout
18876
18877 \end_inset
18878
18879  [
18880 \emph on
18881
18882 \begin_inset Flex Code
18883 status collapsed
18884
18885 \begin_layout Plain Layout
18886 0
18887 \end_layout
18888
18889 \end_inset
18890
18891
18892 \emph default
18893 ,
18894 \begin_inset space \thinspace{}
18895 \end_inset
18896
18897
18898 \begin_inset Flex Code
18899 status collapsed
18900
18901 \begin_layout Plain Layout
18902 1
18903 \end_layout
18904
18905 \end_inset
18906
18907 ] Indicates whether the float is already defined in the document class or
18908  if instead the \SpecialChar LaTeX
18909  package 
18910 \begin_inset Flex Code
18911 status collapsed
18912
18913 \begin_layout Plain Layout
18914 float
18915 \end_layout
18916
18917 \end_inset
18918
18919  needs to be loaded to define it on-the-fly.
18920  The default is 
18921 \begin_inset Flex Code
18922 status collapsed
18923
18924 \begin_layout Plain Layout
18925 0
18926 \end_layout
18927
18928 \end_inset
18929
18930 , which means: 
18931 \begin_inset Flex Code
18932 status collapsed
18933
18934 \begin_layout Plain Layout
18935 float
18936 \end_layout
18937
18938 \end_inset
18939
18940  is used.
18941  It should be set to 
18942 \begin_inset Flex Code
18943 status collapsed
18944
18945 \begin_layout Plain Layout
18946 1
18947 \end_layout
18948
18949 \end_inset
18950
18951  if the float is already defined by the \SpecialChar LaTeX
18952  document class.
18953 \end_layout
18954
18955 \begin_layout Description
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960 ListCommand
18961 \end_layout
18962
18963 \end_inset
18964
18965  [
18966 \begin_inset Flex Code
18967 status collapsed
18968
18969 \begin_layout Plain Layout
18970 string
18971 \end_layout
18972
18973 \end_inset
18974
18975 =
18976 \begin_inset Quotes erd
18977 \end_inset
18978
18979
18980 \begin_inset Quotes erd
18981 \end_inset
18982
18983 ] The command used to generate a list of floats of this type; the leading
18984  `
18985 \backslash
18986 ' must be omitted.
18987  This 
18988 \emph on
18989 must
18990 \emph default
18991  be given if 
18992 \begin_inset Flex Code
18993 status collapsed
18994
18995 \begin_layout Plain Layout
18996 UsesFloatPkg
18997 \end_layout
18998
18999 \end_inset
19000
19001  is false, since there is no standard way to generate this command.
19002  It is ignored if 
19003 \begin_inset Flex Code
19004 status collapsed
19005
19006 \begin_layout Plain Layout
19007 UsesFloatPkg
19008 \end_layout
19009
19010 \end_inset
19011
19012  is true, since in that case there is a standard way to define the command.
19013 \end_layout
19014
19015 \begin_layout Description
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 ListName
19021 \end_layout
19022
19023 \end_inset
19024
19025  [
19026 \begin_inset Flex Code
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030 string
19031 \end_layout
19032
19033 \end_inset
19034
19035 =
19036 \begin_inset Quotes erd
19037 \end_inset
19038
19039
19040 \begin_inset Quotes erd
19041 \end_inset
19042
19043 ] A title for a list of floats of this kind (list of figures, tables, or
19044  whatever).
19045  It is used for the screen label within \SpecialChar LyX
19046 , it is used by \SpecialChar LaTeX
19047  for the title and
19048  it is used as the title in the XHTML output.
19049  It will be translated to the document language.
19050 \end_layout
19051
19052 \begin_layout Description
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  [
19063 \begin_inset Flex Code
19064 status collapsed
19065
19066 \begin_layout Plain Layout
19067 string
19068 \end_layout
19069
19070 \end_inset
19071
19072 =
19073 \begin_inset Quotes erd
19074 \end_inset
19075
19076
19077 \begin_inset Quotes erd
19078 \end_inset
19079
19080 ] This (optional) argument determines whether floats of this class will
19081  be numbered within some sectional unit of the document.
19082  For example, if 
19083 \begin_inset Flex Code
19084 status collapsed
19085
19086 \begin_layout Plain Layout
19087 NumberWithin
19088 \end_layout
19089
19090 \end_inset
19091
19092  is set to 
19093 \begin_inset Quotes eld
19094 \end_inset
19095
19096
19097 \begin_inset Flex Code
19098 status collapsed
19099
19100 \begin_layout Plain Layout
19101 chapter
19102 \end_layout
19103
19104 \end_inset
19105
19106
19107 \begin_inset Quotes erd
19108 \end_inset
19109
19110 , the floats will be numbered within chapters.
19111  
19112 \end_layout
19113
19114 \begin_layout Description
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 Placement
19120 \end_layout
19121
19122 \end_inset
19123
19124  [
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129 string
19130 \end_layout
19131
19132 \end_inset
19133
19134 =
19135 \begin_inset Quotes erd
19136 \end_inset
19137
19138
19139 \begin_inset Quotes erd
19140 \end_inset
19141
19142 ] The default placement for the given class of floats.
19143  The string should be as in standard \SpecialChar LaTeX
19144
19145 \begin_inset Flex Code
19146 status collapsed
19147
19148 \begin_layout Plain Layout
19149 t
19150 \end_layout
19151
19152 \end_inset
19153
19154
19155 \begin_inset Flex Code
19156 status collapsed
19157
19158 \begin_layout Plain Layout
19159 b
19160 \end_layout
19161
19162 \end_inset
19163
19164
19165 \begin_inset Flex Code
19166 status collapsed
19167
19168 \begin_layout Plain Layout
19169 p
19170 \end_layout
19171
19172 \end_inset
19173
19174  and 
19175 \begin_inset Flex Code
19176 status collapsed
19177
19178 \begin_layout Plain Layout
19179 h
19180 \end_layout
19181
19182 \end_inset
19183
19184  for top, bottom, page, and here, respectively.
19185 \begin_inset Foot
19186 status collapsed
19187
19188 \begin_layout Plain Layout
19189 Note that the order of these letters in the string is irrelevant, like in
19190  \SpecialChar LaTeX
19191 .
19192 \end_layout
19193
19194 \end_inset
19195
19196  On top of that there is a new type, 
19197 \begin_inset Flex Code
19198 status collapsed
19199
19200 \begin_layout Plain Layout
19201 H
19202 \end_layout
19203
19204 \end_inset
19205
19206 , which does not really correspond to a float, since it means: put it 
19207 \begin_inset Quotes eld
19208 \end_inset
19209
19210 here
19211 \begin_inset Quotes erd
19212 \end_inset
19213
19214  and nowhere else.
19215  Note however that the 
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220 H
19221 \end_layout
19222
19223 \end_inset
19224
19225  specifier is special and, because of implementation details, cannot be
19226  used in non-built in float types.
19227  If you do not understand what this means, just use 
19228 \begin_inset Quotes eld
19229 \end_inset
19230
19231
19232 \begin_inset Flex Code
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 tbp
19237 \end_layout
19238
19239 \end_inset
19240
19241
19242 \begin_inset Quotes erd
19243 \end_inset
19244
19245 .
19246 \end_layout
19247
19248 \begin_layout Description
19249 \begin_inset Flex Code
19250 status collapsed
19251
19252 \begin_layout Plain Layout
19253 RefPrefix
19254 \end_layout
19255
19256 \end_inset
19257
19258  [
19259 \begin_inset Flex Code
19260 status collapsed
19261
19262 \begin_layout Plain Layout
19263 string
19264 \end_layout
19265
19266 \end_inset
19267
19268 ] The prefix to use when creating labels referring to floats of this type.
19269  This allows the use of formatted references.
19270  Note that you can remove any 
19271 \begin_inset Flex Code
19272 status collapsed
19273
19274 \begin_layout Plain Layout
19275 RefPrefix
19276 \end_layout
19277
19278 \end_inset
19279
19280  set by a copied style by using the special value 
19281 \begin_inset Quotes eld
19282 \end_inset
19283
19284 OFF
19285 \begin_inset Quotes erd
19286 \end_inset
19287
19288 , which must be all caps.
19289 \change_inserted -712698321 1565605014
19290
19291 \end_layout
19292
19293 \begin_layout Description
19294
19295 \change_inserted -712698321 1565605014
19296 \begin_inset Flex Code
19297 status collapsed
19298
19299 \begin_layout Plain Layout
19300
19301 \change_inserted -712698321 1565605014
19302 Requires
19303 \change_unchanged
19304
19305 \end_layout
19306
19307 \end_inset
19308
19309  [
19310 \begin_inset Flex Code
19311 status collapsed
19312
19313 \begin_layout Plain Layout
19314
19315 \change_inserted -712698321 1565605014
19316 string
19317 \change_unchanged
19318
19319 \end_layout
19320
19321 \end_inset
19322
19323 ] As with paragraph styles, see 
19324 \begin_inset CommandInset ref
19325 LatexCommand ref
19326 reference "subsec:Paragraph-Styles"
19327
19328 \end_inset
19329
19330 .
19331 \change_unchanged
19332
19333 \end_layout
19334
19335 \begin_layout Description
19336 \begin_inset Flex Code
19337 status collapsed
19338
19339 \begin_layout Plain Layout
19340 Style
19341 \end_layout
19342
19343 \end_inset
19344
19345  [
19346 \begin_inset Flex Code
19347 status collapsed
19348
19349 \begin_layout Plain Layout
19350 string
19351 \end_layout
19352
19353 \end_inset
19354
19355 =
19356 \begin_inset Quotes erd
19357 \end_inset
19358
19359
19360 \begin_inset Quotes erd
19361 \end_inset
19362
19363 ] The style used when defining the float using 
19364 \begin_inset Flex Code
19365 status collapsed
19366
19367 \begin_layout Plain Layout
19368
19369 \backslash
19370 newfloat
19371 \end_layout
19372
19373 \end_inset
19374
19375 .
19376 \end_layout
19377
19378 \begin_layout Description
19379 \begin_inset Flex Code
19380 status collapsed
19381
19382 \begin_layout Plain Layout
19383 Type
19384 \end_layout
19385
19386 \end_inset
19387
19388  [
19389 \begin_inset Flex Code
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393 string
19394 \end_layout
19395
19396 \end_inset
19397
19398 =
19399 \begin_inset Quotes erd
19400 \end_inset
19401
19402
19403 \begin_inset Quotes erd
19404 \end_inset
19405
19406 ] The 
19407 \begin_inset Quotes eld
19408 \end_inset
19409
19410 type
19411 \begin_inset Quotes erd
19412 \end_inset
19413
19414  of the new class of floats, like program or algorithm.
19415  After the appropriate 
19416 \begin_inset Flex Code
19417 status collapsed
19418
19419 \begin_layout Plain Layout
19420
19421 \backslash
19422 newfloat
19423 \end_layout
19424
19425 \end_inset
19426
19427 , commands such as 
19428 \begin_inset Flex Code
19429 status collapsed
19430
19431 \begin_layout Plain Layout
19432
19433 \backslash
19434 begin{program}
19435 \end_layout
19436
19437 \end_inset
19438
19439  or 
19440 \begin_inset Flex Code
19441 status collapsed
19442
19443 \begin_layout Plain Layout
19444
19445 \backslash
19446 end{algorithm*}
19447 \end_layout
19448
19449 \end_inset
19450
19451  will be available.
19452 \end_layout
19453
19454 \begin_layout Description
19455 \begin_inset Flex Code
19456 status collapsed
19457
19458 \begin_layout Plain Layout
19459 UsesFloatPkg
19460 \end_layout
19461
19462 \end_inset
19463
19464  [
19465 \begin_inset Flex Code
19466 status collapsed
19467
19468 \begin_layout Plain Layout
19469 0
19470 \end_layout
19471
19472 \end_inset
19473
19474 ,
19475 \begin_inset space \thinspace{}
19476 \end_inset
19477
19478
19479 \begin_inset Flex Code
19480 status collapsed
19481
19482 \begin_layout Plain Layout
19483
19484 \emph on
19485 1
19486 \end_layout
19487
19488 \end_inset
19489
19490 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19491  package 
19492 \begin_inset Flex Code
19493 status collapsed
19494
19495 \begin_layout Plain Layout
19496 float
19497 \end_layout
19498
19499 \end_inset
19500
19501 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19502  itself.
19503 \end_layout
19504
19505 \begin_layout Standard
19506 Note that defining a float with type 
19507 \begin_inset Flex Code
19508 status collapsed
19509
19510 \begin_layout Plain Layout
19511
19512 \emph on
19513 type
19514 \end_layout
19515
19516 \end_inset
19517
19518  automatically defines the corresponding counter with name 
19519 \begin_inset Flex Code
19520 status collapsed
19521
19522 \begin_layout Plain Layout
19523
19524 \emph on
19525 type
19526 \end_layout
19527
19528 \end_inset
19529
19530 .
19531 \end_layout
19532
19533 \begin_layout Subsection
19534 Flex insets and InsetLayout
19535 \begin_inset CommandInset label
19536 LatexCommand label
19537 name "subsec:Flex-insets-and"
19538
19539 \end_inset
19540
19541
19542 \end_layout
19543
19544 \begin_layout Standard
19545 Flex insets come in 
19546 \change_deleted 5863208 1594239511
19547 three
19548 \change_inserted 5863208 1594239512
19549 two
19550 \change_unchanged
19551  different kinds: 
19552 \end_layout
19553
19554 \begin_layout Itemize
19555 character style (
19556 \begin_inset Flex Code
19557 status collapsed
19558
19559 \begin_layout Plain Layout
19560 CharStyle
19561 \end_layout
19562
19563 \end_inset
19564
19565 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19566  commands as 
19567 \begin_inset Flex Code
19568 status collapsed
19569
19570 \begin_layout Plain Layout
19571
19572 \backslash
19573 noun
19574 \end_layout
19575
19576 \end_inset
19577
19578  and 
19579 \begin_inset Flex Code
19580 status collapsed
19581
19582 \begin_layout Plain Layout
19583
19584 \backslash
19585 code
19586 \end_layout
19587
19588 \end_inset
19589
19590 .
19591 \end_layout
19592
19593 \begin_layout Itemize
19594 user custom (
19595 \begin_inset Flex Code
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 Custom
19600 \end_layout
19601
19602 \end_inset
19603
19604 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19605  code,
19606  footnote, and the like.
19607  An obvious example is an endnote inset, which is defined in the 
19608 \begin_inset Flex Code
19609 status collapsed
19610
19611 \begin_layout Plain Layout
19612 endnote
19613 \end_layout
19614
19615 \end_inset
19616
19617  module.
19618 \end_layout
19619
19620 \begin_layout Itemize
19621
19622 \change_deleted 5863208 1594239528
19623 XML elements (
19624 \begin_inset Flex Code
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628 Element
19629 \end_layout
19630
19631 \end_inset
19632
19633 ): For use with DocBook classes.
19634 \change_unchanged
19635
19636 \end_layout
19637
19638 \begin_layout Standard
19639 Flex insets are defined using the 
19640 \begin_inset Flex Code
19641 status collapsed
19642
19643 \begin_layout Plain Layout
19644 InsetLayout
19645 \end_layout
19646
19647 \end_inset
19648
19649  tag, which shall be explained in a moment.
19650 \end_layout
19651
19652 \begin_layout Standard
19653 The 
19654 \begin_inset Flex Code
19655 status collapsed
19656
19657 \begin_layout Plain Layout
19658 InsetLayout
19659 \end_layout
19660
19661 \end_inset
19662
19663  tag also serves another function: It can be used to customize the general
19664  layout of many different types of insets.
19665  Currently, 
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 InsetLayout
19671 \end_layout
19672
19673 \end_inset
19674
19675  can be used to customize the layout parameters for footnotes, marginal
19676  notes, note insets, \SpecialChar TeX
19677  code (ERT) insets, branches, listings, indexes, boxes,
19678  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19679 \end_layout
19680
19681 \begin_layout Standard
19682 The 
19683 \begin_inset Flex Code
19684 status collapsed
19685
19686 \begin_layout Plain Layout
19687 InsetLayout
19688 \end_layout
19689
19690 \end_inset
19691
19692  definition must begin with a line of the form:
19693 \end_layout
19694
19695 \begin_layout LyX-Code
19696 InsetLayout <type>
19697 \end_layout
19698
19699 \begin_layout Standard
19700 Here 
19701 \begin_inset Flex Code
19702 status collapsed
19703
19704 \begin_layout Plain Layout
19705 <Type>
19706 \end_layout
19707
19708 \end_inset
19709
19710  indicates the inset whose layout is being defined, and here there are four
19711  cases.
19712 \end_layout
19713
19714 \begin_layout Enumerate
19715 The layout for a pre-existing inset is being modified.
19716  In this case, can be 
19717 \begin_inset Flex Code
19718 status collapsed
19719
19720 \begin_layout Plain Layout
19721 <Type>
19722 \end_layout
19723
19724 \end_inset
19725
19726  any one of the following: 
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731 Algorithm
19732 \end_layout
19733
19734 \end_inset
19735
19736
19737 \begin_inset Flex Code
19738 status collapsed
19739
19740 \begin_layout Plain Layout
19741 Branch
19742 \end_layout
19743
19744 \end_inset
19745
19746
19747 \begin_inset Flex Code
19748 status collapsed
19749
19750 \begin_layout Plain Layout
19751 Box
19752 \end_layout
19753
19754 \end_inset
19755
19756
19757 \begin_inset Flex Code
19758 status collapsed
19759
19760 \begin_layout Plain Layout
19761 Box:shaded
19762 \end_layout
19763
19764 \end_inset
19765
19766
19767 \begin_inset Flex Code
19768 status collapsed
19769
19770 \begin_layout Plain Layout
19771 Caption:Standard
19772 \end_layout
19773
19774 \end_inset
19775
19776
19777 \begin_inset Flex Code
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781 ERT
19782 \end_layout
19783
19784 \end_inset
19785
19786
19787 \begin_inset Flex Code
19788 status collapsed
19789
19790 \begin_layout Plain Layout
19791 Figure
19792 \end_layout
19793
19794 \end_inset
19795
19796
19797 \begin_inset Flex Code
19798 status collapsed
19799
19800 \begin_layout Plain Layout
19801 Foot
19802 \end_layout
19803
19804 \end_inset
19805
19806
19807 \begin_inset Flex Code
19808 status collapsed
19809
19810 \begin_layout Plain Layout
19811 Index
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
19822 \end_layout
19823
19824 \end_inset
19825
19826
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 Info:menu
19832 \end_layout
19833
19834 \end_inset
19835
19836
19837 \begin_inset Flex Code
19838 status collapsed
19839
19840 \begin_layout Plain Layout
19841 Info:shortcut
19842 \end_layout
19843
19844 \end_inset
19845
19846
19847 \begin_inset Flex Code
19848 status collapsed
19849
19850 \begin_layout Plain Layout
19851 Info:shortcuts
19852 \end_layout
19853
19854 \end_inset
19855
19856
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 Listings
19862 \end_layout
19863
19864 \end_inset
19865
19866
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871 Marginal
19872 \end_layout
19873
19874 \end_inset
19875
19876
19877 \begin_inset Flex Code
19878 status collapsed
19879
19880 \begin_layout Plain Layout
19881 Note:Comment
19882 \end_layout
19883
19884 \end_inset
19885
19886
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 Note:Note
19892 \end_layout
19893
19894 \end_inset
19895
19896
19897 \begin_inset Flex Code
19898 status collapsed
19899
19900 \begin_layout Plain Layout
19901 Note:Greyedout
19902 \end_layout
19903
19904 \end_inset
19905
19906
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911 Table
19912 \end_layout
19913
19914 \end_inset
19915
19916 , or 
19917 \begin_inset Flex Code
19918 status collapsed
19919
19920 \begin_layout Plain Layout
19921 URL
19922 \end_layout
19923
19924 \end_inset
19925
19926 .
19927 \end_layout
19928
19929 \begin_layout Enumerate
19930 The layout for a Flex inset is being defined.
19931  In this case, 
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 <Type>
19937 \end_layout
19938
19939 \end_inset
19940
19941  must be of the form 
19942 \begin_inset Quotes eld
19943 \end_inset
19944
19945
19946 \begin_inset Flex Code
19947 status collapsed
19948
19949 \begin_layout Plain Layout
19950 Flex:<name>
19951 \end_layout
19952
19953 \end_inset
19954
19955
19956 \begin_inset Quotes erd
19957 \end_inset
19958
19959 , where 
19960 \begin_inset Flex Code
19961 status collapsed
19962
19963 \begin_layout Plain Layout
19964 name
19965 \end_layout
19966
19967 \end_inset
19968
19969  may be any valid identifier not used by a pre-existing Flex inset.
19970  The identifier may include spaces, but in that case the whole thing must
19971  be wrapped in quotes.
19972  Note that the definition of a flex inset 
19973 \emph on
19974 must 
19975 \emph default
19976 also include a 
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 LyXType
19982 \end_layout
19983
19984 \end_inset
19985
19986  entry, declaring which type of inset it defines.
19987 \end_layout
19988
19989 \begin_layout Enumerate
19990 The layout for user specific branch is being defined.
19991  In this case, 
19992 \begin_inset Flex Code
19993 status collapsed
19994
19995 \begin_layout Plain Layout
19996 <Type>
19997 \end_layout
19998
19999 \end_inset
20000
20001  must be of the form 
20002 \begin_inset Quotes eld
20003 \end_inset
20004
20005
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 Branch:<name>
20011 \end_layout
20012
20013 \end_inset
20014
20015
20016 \begin_inset Quotes erd
20017 \end_inset
20018
20019 , where 
20020 \begin_inset Flex Code
20021 status collapsed
20022
20023 \begin_layout Plain Layout
20024 name
20025 \end_layout
20026
20027 \end_inset
20028
20029  may be any valid identifier of branch defined in user's document.
20030  The identifier may include spaces, but in that case the whole thing must
20031  be wrapped in quotes.
20032  The main purpose of this feature is to allow \SpecialChar LaTeX
20033  wrapping around specific
20034  branches as user needs.
20035 \end_layout
20036
20037 \begin_layout Enumerate
20038 The layout of a user (or class) specific caption is being defined.
20039  In this case, 
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044 <Type>
20045 \end_layout
20046
20047 \end_inset
20048
20049  must be of the form 
20050 \begin_inset Quotes eld
20051 \end_inset
20052
20053
20054 \begin_inset Flex Code
20055 status collapsed
20056
20057 \begin_layout Plain Layout
20058 Caption:<name>
20059 \end_layout
20060
20061 \end_inset
20062
20063
20064 \begin_inset Quotes erd
20065 \end_inset
20066
20067 , where 
20068 \begin_inset Flex Code
20069 status collapsed
20070
20071 \begin_layout Plain Layout
20072 name
20073 \end_layout
20074
20075 \end_inset
20076
20077  specifies the name of the caption as it appears in the menu.
20078  Have a look at the standard caption (
20079 \begin_inset Flex Code
20080 status collapsed
20081
20082 \begin_layout Plain Layout
20083 Caption:Standard
20084 \end_layout
20085
20086 \end_inset
20087
20088 ), the specific captions of the KOMA-Script classes (
20089 \begin_inset Flex Code
20090 status collapsed
20091
20092 \begin_layout Plain Layout
20093 Caption:Above
20094 \end_layout
20095
20096 \end_inset
20097
20098
20099 \begin_inset Flex Code
20100 status collapsed
20101
20102 \begin_layout Plain Layout
20103 Caption:Below
20104 \end_layout
20105
20106 \end_inset
20107
20108 ) or the module 
20109 \family sans
20110 Multilingual
20111 \begin_inset space ~
20112 \end_inset
20113
20114 Captions
20115 \begin_inset Newline linebreak
20116 \end_inset
20117
20118
20119 \family default
20120 (
20121 \begin_inset Flex Code
20122 status collapsed
20123
20124 \begin_layout Plain Layout
20125 Caption:Bicaption
20126 \end_layout
20127
20128 \end_inset
20129
20130 ) for applications.
20131 \end_layout
20132
20133 \begin_layout Standard
20134 The 
20135 \begin_inset Flex Code
20136 status collapsed
20137
20138 \begin_layout Plain Layout
20139 InsetLayout
20140 \end_layout
20141
20142 \end_inset
20143
20144  definition can contain the following entries:
20145 \end_layout
20146
20147 \begin_layout Description
20148 \begin_inset Flex Code
20149 status collapsed
20150
20151 \begin_layout Plain Layout
20152 AddToToc
20153 \end_layout
20154
20155 \end_inset
20156
20157  [
20158 \begin_inset Flex Code
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162 string
20163 \end_layout
20164
20165 \end_inset
20166
20167 =""] This inset will appear in the table of contents of the given type.
20168  An empty string disables.
20169  See also the OutlinerName and the IsTocCaption commands.
20170  This is only implemented for Flex insets.
20171  Default: disabled.
20172 \end_layout
20173
20174 \begin_layout Description
20175 \begin_inset Flex Code
20176 status collapsed
20177
20178 \begin_layout Plain Layout
20179 Argument
20180 \end_layout
20181
20182 \end_inset
20183
20184  [
20185 \begin_inset Flex Code
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189 int
20190 \end_layout
20191
20192 \end_inset
20193
20194 ] Defines argument number of a command\SpecialChar breakableslash
20195 environment associated with the current
20196  layout.
20197  The definition must end with 
20198 \begin_inset Flex Code
20199 status collapsed
20200
20201 \begin_layout Plain Layout
20202 EndArgument
20203 \end_layout
20204
20205 \end_inset
20206
20207 .
20208  See 
20209 \change_inserted -584632292 1615846847
20210
20211 \begin_inset CommandInset ref
20212 LatexCommand ref
20213 reference "subsec:Arguments"
20214 plural "false"
20215 caps "false"
20216 noprefix "false"
20217
20218 \end_inset
20219
20220
20221 \change_deleted -584632292 1615846847
20222
20223 \begin_inset CommandInset ref
20224 LatexCommand ref
20225 reference "subsec:Paragraph-Styles"
20226
20227 \end_inset
20228
20229
20230 \change_unchanged
20231  for 
20232 \change_deleted -584632292 1615846902
20233 details
20234 \change_inserted -584632292 1615846906
20235 more information
20236 \change_unchanged
20237 .
20238 \end_layout
20239
20240 \begin_layout Description
20241 \begin_inset Flex Code
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 BabelPreamble
20246 \end_layout
20247
20248 \end_inset
20249
20250  Preamble for changing language commands; see 
20251 \begin_inset CommandInset ref
20252 LatexCommand ref
20253 reference "subsec:I18n"
20254
20255 \end_inset
20256
20257 .
20258 \end_layout
20259
20260 \begin_layout Description
20261 \begin_inset Flex Code
20262 status collapsed
20263
20264 \begin_layout Plain Layout
20265 BgColor
20266 \end_layout
20267
20268 \end_inset
20269
20270  [
20271 \begin_inset Flex Code
20272 status collapsed
20273
20274 \begin_layout Plain Layout
20275 <name>
20276 \end_layout
20277
20278 \end_inset
20279
20280 ] The color for the inset's background.
20281  See 
20282 \begin_inset CommandInset ref
20283 LatexCommand ref
20284 reference "chap:Names-of-colors"
20285
20286 \end_inset
20287
20288  for a list of the available color names.
20289 \end_layout
20290
20291 \begin_layout Description
20292 \begin_inset Flex Code
20293 status collapsed
20294
20295 \begin_layout Plain Layout
20296 ContentAsLabel
20297 \end_layout
20298
20299 \end_inset
20300
20301  [
20302 \begin_inset Flex Code
20303 status collapsed
20304
20305 \begin_layout Plain Layout
20306
20307 \emph on
20308 0
20309 \end_layout
20310
20311 \end_inset
20312
20313 ,
20314 \begin_inset space \thinspace{}
20315 \end_inset
20316
20317
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 1
20323 \end_layout
20324
20325 \end_inset
20326
20327 ] Whether to use the content of the inset as the label, when the inset is
20328  closed.
20329  Default is false.
20330 \end_layout
20331
20332 \begin_layout Description
20333 \begin_inset Flex Code
20334 status collapsed
20335
20336 \begin_layout Plain Layout
20337 CopyStyle
20338 \end_layout
20339
20340 \end_inset
20341
20342  [
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347 <type>
20348 \end_layout
20349
20350 \end_inset
20351
20352 ] As with paragraph styles, see 
20353 \begin_inset CommandInset ref
20354 LatexCommand ref
20355 reference "subsec:Paragraph-Styles"
20356
20357 \end_inset
20358
20359 .
20360  Note that you need to specify the complete type, e.
20361 \begin_inset space \thinspace{}
20362 \end_inset
20363
20364 g.
20365 \begin_inset space ~
20366 \end_inset
20367
20368
20369 \begin_inset Flex Code
20370 status collapsed
20371
20372 \begin_layout Plain Layout
20373 CopyStyle Flex:<name>
20374 \end_layout
20375
20376 \end_inset
20377
20378 .
20379 \end_layout
20380
20381 \begin_layout Description
20382 \begin_inset Flex Code
20383 status collapsed
20384
20385 \begin_layout Plain Layout
20386 CustomPars
20387 \end_layout
20388
20389 \end_inset
20390
20391  [
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396
20397 \emph on
20398 0
20399 \end_layout
20400
20401 \end_inset
20402
20403 ,
20404 \begin_inset space \thinspace{}
20405 \end_inset
20406
20407
20408 \begin_inset Flex Code
20409 status collapsed
20410
20411 \begin_layout Plain Layout
20412 1
20413 \end_layout
20414
20415 \end_inset
20416
20417 ] Indicates whether the user may employ the Paragraph Settings dialog to
20418  customize the paragraph.
20419 \end_layout
20420
20421 \begin_layout Description
20422 \begin_inset Flex Code
20423 status collapsed
20424
20425 \begin_layout Plain Layout
20426 Decoration
20427 \end_layout
20428
20429 \end_inset
20430
20431  can be 
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436 Classic
20437 \end_layout
20438
20439 \end_inset
20440
20441
20442 \begin_inset Flex Code
20443 status collapsed
20444
20445 \begin_layout Plain Layout
20446 Minimalistic
20447 \end_layout
20448
20449 \end_inset
20450
20451 , or 
20452 \begin_inset Flex Code
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456 Conglomerate
20457 \end_layout
20458
20459 \end_inset
20460
20461 , describing the rendering style used for the inset's frame and buttons.
20462  Footnotes generally use 
20463 \begin_inset Flex Code
20464 status collapsed
20465
20466 \begin_layout Plain Layout
20467 Classic
20468 \end_layout
20469
20470 \end_inset
20471
20472 , ERT insets generally 
20473 \begin_inset Flex Code
20474 status collapsed
20475
20476 \begin_layout Plain Layout
20477 Minimalistic
20478 \end_layout
20479
20480 \end_inset
20481
20482 , and character styles 
20483 \begin_inset Flex Code
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487 Conglomerate
20488 \end_layout
20489
20490 \end_inset
20491
20492 .
20493 \end_layout
20494
20495 \begin_layout Description
20496 \begin_inset Flex Code
20497 status collapsed
20498
20499 \begin_layout Plain Layout
20500 Display
20501 \end_layout
20502
20503 \end_inset
20504
20505  [
20506 \begin_inset Flex Code
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 0
20511 \end_layout
20512
20513 \end_inset
20514
20515 ,
20516 \emph on
20517
20518 \begin_inset space \thinspace{}
20519 \end_inset
20520
20521
20522 \emph default
20523
20524 \begin_inset Flex Code
20525 status collapsed
20526
20527 \begin_layout Plain Layout
20528
20529 \emph on
20530 1
20531 \end_layout
20532
20533 \end_inset
20534
20535 ] Only useful if 
20536 \begin_inset Flex Code
20537 status collapsed
20538
20539 \begin_layout Plain Layout
20540 LatexType
20541 \end_layout
20542
20543 \end_inset
20544
20545  is 
20546 \begin_inset Flex Code
20547 status collapsed
20548
20549 \begin_layout Plain Layout
20550 Environment
20551 \end_layout
20552
20553 \end_inset
20554
20555 .
20556  Indicates whether the environment will stand on its own in the output or
20557  will appear inline with the surrounding text.
20558  If set to false, it is supposed that the \SpecialChar LaTeX
20559  environment ignores white space
20560  (including one newline character) after the 
20561 \begin_inset Flex Code
20562 status collapsed
20563
20564 \begin_layout Plain Layout
20565
20566 \backslash
20567 begin{
20568 \emph on
20569 LatexName
20570 \emph default
20571 }
20572 \end_layout
20573
20574 \end_inset
20575
20576  and 
20577 \begin_inset Flex Code
20578 status collapsed
20579
20580 \begin_layout Plain Layout
20581
20582 \backslash
20583 end{
20584 \emph on
20585 LatexName
20586 \emph default
20587 }
20588 \end_layout
20589
20590 \end_inset
20591
20592  tags.
20593  Default is true.
20594 \change_inserted 731793113 1538674858
20595
20596 \end_layout
20597
20598 \begin_layout Description
20599
20600 \change_inserted 731793113 1538674891
20601 \begin_inset Flex Code
20602 status open
20603
20604 \begin_layout Plain Layout
20605
20606 \change_inserted 731793113 1538674863
20607 EditExternal
20608 \change_unchanged
20609
20610 \end_layout
20611
20612 \end_inset
20613
20614  [
20615 \emph on
20616 0
20617 \emph default
20618 ,1] Allow the contents of the inset to be edited externally (using whatever
20619  editor is defined for the document's output format).
20620 \change_unchanged
20621
20622 \end_layout
20623
20624 \begin_layout Description
20625 \begin_inset Flex Code
20626 status collapsed
20627
20628 \begin_layout Plain Layout
20629 End
20630 \end_layout
20631
20632 \end_inset
20633
20634  Required at the end of the 
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639 InsetLayout
20640 \end_layout
20641
20642 \end_inset
20643
20644  declarations.
20645 \end_layout
20646
20647 \begin_layout Description
20648 \begin_inset Flex Code
20649 status collapsed
20650
20651 \begin_layout Plain Layout
20652 Font
20653 \end_layout
20654
20655 \end_inset
20656
20657  The font used for both the text body 
20658 \emph on
20659 and
20660 \emph default
20661  the label.
20662  See 
20663 \begin_inset CommandInset ref
20664 LatexCommand ref
20665 reference "subsec:Font-description"
20666
20667 \end_inset
20668
20669 .
20670  Note that defining this font automatically defines the 
20671 \begin_inset Flex Code
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 LabelFont
20676 \end_layout
20677
20678 \end_inset
20679
20680  to the same value, so define this first and define 
20681 \begin_inset Flex Code
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685 LabelFont
20686 \end_layout
20687
20688 \end_inset
20689
20690  later if you want them to be different.
20691 \end_layout
20692
20693 \begin_layout Description
20694 \begin_inset Flex Code
20695 status collapsed
20696
20697 \begin_layout Plain Layout
20698 FixedWidthPreambleEncoding
20699 \end_layout
20700
20701 \end_inset
20702
20703  [
20704 \begin_inset Flex Code
20705 status collapsed
20706
20707 \begin_layout Plain Layout
20708
20709 \emph on
20710 0
20711 \end_layout
20712
20713 \end_inset
20714
20715 ,
20716 \begin_inset space \thinspace{}
20717 \end_inset
20718
20719
20720 \begin_inset Flex Code
20721 status collapsed
20722
20723 \begin_layout Plain Layout
20724 1
20725 \end_layout
20726
20727 \end_inset
20728
20729 ] Force a fixed width encoding for the translated contents of 
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 BabelPreamble
20735 \end_layout
20736
20737 \end_inset
20738
20739  and 
20740 \begin_inset Flex Code
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 LangPreamble
20745 \end_layout
20746
20747 \end_inset
20748
20749  code generated by this layout.
20750  This is needed for special \SpecialChar LaTeX
20751 -packages like 
20752 \family typewriter
20753 listings
20754 \family default
20755  that do not work with variable width encodings such as 
20756 \family sans
20757 utf8
20758 \family default
20759 .
20760  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20761  backends such as Xe\SpecialChar TeX
20762  or
20763  Lua\SpecialChar TeX
20764  are used.
20765 \end_layout
20766
20767 \begin_layout Description
20768 \begin_inset Flex Code
20769 status collapsed
20770
20771 \begin_layout Plain Layout
20772 ForceLocalFontSwitch
20773 \end_layout
20774
20775 \end_inset
20776
20777  [
20778 \begin_inset Flex Code
20779 status collapsed
20780
20781 \begin_layout Plain Layout
20782
20783 \emph on
20784 0
20785 \end_layout
20786
20787 \end_inset
20788
20789 ,
20790 \begin_inset space \thinspace{}
20791 \end_inset
20792
20793
20794 \begin_inset Flex Code
20795 status collapsed
20796
20797 \begin_layout Plain Layout
20798 1
20799 \end_layout
20800
20801 \end_inset
20802
20803 ] When using babel, always use a local font switch (
20804 \begin_inset Flex Code
20805 status collapsed
20806
20807 \begin_layout Plain Layout
20808
20809 \backslash
20810 foreignlanguage
20811 \end_layout
20812
20813 \end_inset
20814
20815 ), never a global one (such as 
20816 \begin_inset Flex Code
20817 status collapsed
20818
20819 \begin_layout Plain Layout
20820
20821 \backslash
20822 selectlanguage
20823 \end_layout
20824
20825 \end_inset
20826
20827 ).
20828 \end_layout
20829
20830 \begin_layout Description
20831 \begin_inset Flex Code
20832 status collapsed
20833
20834 \begin_layout Plain Layout
20835 ForceLTR
20836 \end_layout
20837
20838 \end_inset
20839
20840  [
20841 \begin_inset Flex Code
20842 status collapsed
20843
20844 \begin_layout Plain Layout
20845
20846 \emph on
20847 0
20848 \end_layout
20849
20850 \end_inset
20851
20852 ,
20853 \begin_inset space \thinspace{}
20854 \end_inset
20855
20856
20857 \begin_inset Flex Code
20858 status collapsed
20859
20860 \begin_layout Plain Layout
20861 1
20862 \end_layout
20863
20864 \end_inset
20865
20866 ] Force the 
20867 \begin_inset Quotes eld
20868 \end_inset
20869
20870 latex
20871 \begin_inset Quotes erd
20872 \end_inset
20873
20874  language, leading to Left-to-Right (Latin) output, e.
20875 \begin_inset space \thinspace{}
20876 \end_inset
20877
20878 g.
20879 \begin_inset space \space{}
20880 \end_inset
20881
20882 in \SpecialChar TeX
20883  code or URL.
20884  A kludge.
20885 \end_layout
20886
20887 \begin_layout Description
20888 \begin_inset Flex Code
20889 status collapsed
20890
20891 \begin_layout Plain Layout
20892 ForceOwnlines
20893 \end_layout
20894
20895 \end_inset
20896
20897  [
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902
20903 \emph on
20904 0
20905 \end_layout
20906
20907 \end_inset
20908
20909 ,
20910 \begin_inset space \thinspace{}
20911 \end_inset
20912
20913
20914 \begin_inset Flex Code
20915 status collapsed
20916
20917 \begin_layout Plain Layout
20918 1
20919 \end_layout
20920
20921 \end_inset
20922
20923 ] Force a line break in the \SpecialChar LaTeX
20924  output before the inset starts and after the
20925  inset ends.
20926  This assures the inset itself is output on its own lines, for parsing purposes.
20927 \end_layout
20928
20929 \begin_layout Description
20930 \begin_inset Flex Code
20931 status collapsed
20932
20933 \begin_layout Plain Layout
20934 ForcePlain
20935 \end_layout
20936
20937 \end_inset
20938
20939  [
20940 \begin_inset Flex Code
20941 status collapsed
20942
20943 \begin_layout Plain Layout
20944
20945 \emph on
20946 0
20947 \end_layout
20948
20949 \end_inset
20950
20951 ,
20952 \begin_inset space \thinspace{}
20953 \end_inset
20954
20955
20956 \begin_inset Flex Code
20957 status collapsed
20958
20959 \begin_layout Plain Layout
20960 1
20961 \end_layout
20962
20963 \end_inset
20964
20965 ] Indicates whether the 
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 PlainLayout
20971 \end_layout
20972
20973 \end_inset
20974
20975  should be used or, instead, the user can change the paragraph style used
20976  in the inset.
20977  Default is false.
20978 \end_layout
20979
20980 \begin_layout Description
20981 \begin_inset Flex Code
20982 status collapsed
20983
20984 \begin_layout Plain Layout
20985 FreeSpacing
20986 \end_layout
20987
20988 \end_inset
20989
20990  [
20991 \begin_inset Flex Code
20992 status collapsed
20993
20994 \begin_layout Plain Layout
20995
20996 \emph on
20997 0
20998 \end_layout
20999
21000 \end_inset
21001
21002 ,
21003 \begin_inset space \thinspace{}
21004 \end_inset
21005
21006
21007 \begin_inset Flex Code
21008 status collapsed
21009
21010 \begin_layout Plain Layout
21011 1
21012 \end_layout
21013
21014 \end_inset
21015
21016 ] As with paragraph styles, see 
21017 \begin_inset CommandInset ref
21018 LatexCommand ref
21019 reference "subsec:Paragraph-Styles"
21020
21021 \end_inset
21022
21023 .
21024 \end_layout
21025
21026 \begin_layout Description
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 HTML*
21032 \end_layout
21033
21034 \end_inset
21035
21036  These tags control the XHTML output.
21037  See 
21038 \begin_inset CommandInset ref
21039 LatexCommand ref
21040 reference "sec:Tags-for-XHTML"
21041
21042 \end_inset
21043
21044 .
21045 \end_layout
21046
21047 \begin_layout Description
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052 InToc
21053 \end_layout
21054
21055 \end_inset
21056
21057  [
21058 \begin_inset Flex Code
21059 status collapsed
21060
21061 \begin_layout Plain Layout
21062
21063 \emph on
21064 0
21065 \end_layout
21066
21067 \end_inset
21068
21069 ,
21070 \begin_inset space \thinspace{}
21071 \end_inset
21072
21073
21074 \begin_inset Flex Code
21075 status collapsed
21076
21077 \begin_layout Plain Layout
21078 1
21079 \end_layout
21080
21081 \end_inset
21082
21083 ] Whether to include the contents of this inset in the strings generated
21084  for the `Outline' pane for all table of contents, regardless of the AddToToc
21085  setting.
21086  One would not, for example, want the content of a footnote in a section
21087  header to be included in the TOC displayed in the outline, but one would
21088  normally want the content of a character style displayed.
21089  Default is false: not to include.
21090 \end_layout
21091
21092 \begin_layout Description
21093 \begin_inset Flex Code
21094 status collapsed
21095
21096 \begin_layout Plain Layout
21097 IsTocCaption
21098 \end_layout
21099
21100 \end_inset
21101
21102  [
21103 \begin_inset Flex Code
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107
21108 \emph on
21109 0
21110 \end_layout
21111
21112 \end_inset
21113
21114 ,
21115 \begin_inset space \thinspace{}
21116 \end_inset
21117
21118
21119 \begin_inset Flex Code
21120 status collapsed
21121
21122 \begin_layout Plain Layout
21123 1
21124 \end_layout
21125
21126 \end_inset
21127
21128 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
21129  of its contents in its item in the table of contents.
21130  Otherwise, only the label appears.
21131 \end_layout
21132
21133 \begin_layout Description
21134 \begin_inset Flex Code
21135 status collapsed
21136
21137 \begin_layout Plain Layout
21138 KeepEmpty
21139 \end_layout
21140
21141 \end_inset
21142
21143  [
21144 \emph on
21145
21146 \begin_inset Flex Code
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150 0
21151 \end_layout
21152
21153 \end_inset
21154
21155
21156 \emph default
21157 ,
21158 \begin_inset space \thinspace{}
21159 \end_inset
21160
21161
21162 \begin_inset Flex Code
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166 1
21167 \end_layout
21168
21169 \end_inset
21170
21171 ] As with paragraph styles, see 
21172 \begin_inset CommandInset ref
21173 LatexCommand ref
21174 reference "subsec:Paragraph-Styles"
21175
21176 \end_inset
21177
21178 .
21179 \end_layout
21180
21181 \begin_layout Description
21182 \begin_inset Flex Code
21183 status collapsed
21184
21185 \begin_layout Plain Layout
21186 LabelFont
21187 \end_layout
21188
21189 \end_inset
21190
21191  The font used for the label.
21192  See 
21193 \begin_inset CommandInset ref
21194 LatexCommand ref
21195 reference "subsec:Font-description"
21196
21197 \end_inset
21198
21199 .
21200  Note that this definition can never appear before 
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205 Font
21206 \end_layout
21207
21208 \end_inset
21209
21210 , lest it be ineffective.
21211 \end_layout
21212
21213 \begin_layout Description
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218 LabelString
21219 \end_layout
21220
21221 \end_inset
21222
21223  [
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 string
21229 \end_layout
21230
21231 \end_inset
21232
21233 =
21234 \begin_inset Quotes erd
21235 \end_inset
21236
21237
21238 \begin_inset Quotes erd
21239 \end_inset
21240
21241 ] What will be displayed on the button or elsewhere as the inset label.
21242  Some inset types (
21243 \begin_inset Flex Code
21244 status collapsed
21245
21246 \begin_layout Plain Layout
21247 \SpecialChar TeX
21248  code
21249 \end_layout
21250
21251 \end_inset
21252
21253  and 
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 Branch
21259 \end_layout
21260
21261 \end_inset
21262
21263 ) modify this label on the fly.
21264 \end_layout
21265
21266 \begin_layout Description
21267 \begin_inset Flex Code
21268 status collapsed
21269
21270 \begin_layout Plain Layout
21271 LangPreamble
21272 \end_layout
21273
21274 \end_inset
21275
21276  Language dependent preamble; see 
21277 \begin_inset CommandInset ref
21278 LatexCommand ref
21279 reference "subsec:I18n"
21280
21281 \end_inset
21282
21283 .
21284 \end_layout
21285
21286 \begin_layout Description
21287 \begin_inset Flex Code
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 LatexName
21292 \end_layout
21293
21294 \end_inset
21295
21296  [
21297 \begin_inset Flex Code
21298 status collapsed
21299
21300 \begin_layout Plain Layout
21301 <name>
21302 \end_layout
21303
21304 \end_inset
21305
21306 ] The name of the corresponding \SpecialChar LaTeX
21307  stuff.
21308  Either the environment or command name.
21309 \end_layout
21310
21311 \begin_layout Description
21312 \begin_inset Flex Code
21313 status collapsed
21314
21315 \begin_layout Plain Layout
21316 LatexParam
21317 \end_layout
21318
21319 \end_inset
21320
21321  [
21322 \begin_inset Flex Code
21323 status collapsed
21324
21325 \begin_layout Plain Layout
21326 <parameter>
21327 \end_layout
21328
21329 \end_inset
21330
21331 ] The optional parameter for the corresponding 
21332 \begin_inset Flex Code
21333 status collapsed
21334
21335 \begin_layout Plain Layout
21336 LatexName
21337 \end_layout
21338
21339 \end_inset
21340
21341  stuff, including possible bracket pairs like 
21342 \begin_inset Flex Code
21343 status collapsed
21344
21345 \begin_layout Plain Layout
21346 []
21347 \end_layout
21348
21349 \end_inset
21350
21351 .
21352  This parameter cannot be changed from within \SpecialChar LyX
21353  (use 
21354 \begin_inset Flex Code
21355 status collapsed
21356
21357 \begin_layout Plain Layout
21358 Argument
21359 \end_layout
21360
21361 \end_inset
21362
21363  for customizable parameters).
21364  It will be output as is after all \SpecialChar LaTeX
21365  
21366 \begin_inset Flex Code
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370 Argument
21371 \end_layout
21372
21373 \end_inset
21374
21375 s.
21376 \end_layout
21377
21378 \begin_layout Description
21379 \begin_inset Flex Code
21380 status collapsed
21381
21382 \begin_layout Plain Layout
21383 LatexType
21384 \end_layout
21385
21386 \end_inset
21387
21388  [
21389 \begin_inset Flex Code
21390 status collapsed
21391
21392 \begin_layout Plain Layout
21393 Command, Environment, None
21394 \end_layout
21395
21396 \end_inset
21397
21398 ] How the style should be translated into \SpecialChar LaTeX
21399 .
21400 \begin_inset Foot
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404 \begin_inset Flex Code
21405 status collapsed
21406
21407 \begin_layout Plain Layout
21408 LatexType
21409 \end_layout
21410
21411 \end_inset
21412
21413  is perhaps a bit misleading, since these rules apply to SGML classes too.
21414  Visit the SGML class files for specific examples.
21415 \end_layout
21416
21417 \end_inset
21418
21419
21420 \end_layout
21421
21422 \begin_deeper
21423 \begin_layout Description
21424 \begin_inset Flex Code
21425 status collapsed
21426
21427 \begin_layout Plain Layout
21428 None
21429 \end_layout
21430
21431 \end_inset
21432
21433  means nothing special
21434 \end_layout
21435
21436 \begin_layout Description
21437 \begin_inset Flex Code
21438 status collapsed
21439
21440 \begin_layout Plain Layout
21441 Command
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
21454 \emph on
21455 LatexName
21456 \emph default
21457 {\SpecialChar ldots
21458 }
21459 \end_layout
21460
21461 \end_inset
21462
21463
21464 \end_layout
21465
21466 \begin_layout Description
21467 \begin_inset Flex Code
21468 status collapsed
21469
21470 \begin_layout Plain Layout
21471 Environment
21472 \end_layout
21473
21474 \end_inset
21475
21476  means 
21477 \begin_inset Flex Code
21478 status collapsed
21479
21480 \begin_layout Plain Layout
21481
21482 \backslash
21483 begin{
21484 \emph on
21485 LatexName
21486 \emph default
21487 }\SpecialChar ldots
21488
21489 \backslash
21490 end{
21491 \emph on
21492 LatexName
21493 \emph default
21494 }
21495 \end_layout
21496
21497 \end_inset
21498
21499
21500 \end_layout
21501
21502 \begin_layout Standard
21503 Putting the last few things together, the \SpecialChar LaTeX
21504  output will be either: 
21505 \end_layout
21506
21507 \begin_layout LyX-Code
21508
21509 \backslash
21510 LatexName[LatexParam]{\SpecialChar ldots
21511 }
21512 \end_layout
21513
21514 \begin_layout Standard
21515 or: 
21516 \end_layout
21517
21518 \begin_layout LyX-Code
21519
21520 \backslash
21521 begin{LatexName}[LatexParam] \SpecialChar ldots
21522  
21523 \backslash
21524 end{LatexName}
21525 \end_layout
21526
21527 \begin_layout Standard
21528 depending upon the \SpecialChar LaTeX
21529  type.
21530 \end_layout
21531
21532 \end_deeper
21533 \begin_layout Description
21534 \begin_inset Flex Code
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538 LeftDelim
21539 \end_layout
21540
21541 \end_inset
21542
21543  [
21544 \begin_inset Flex Code
21545 status collapsed
21546
21547 \begin_layout Plain Layout
21548 string
21549 \end_layout
21550
21551 \end_inset
21552
21553 ] A string that is put at the beginning of the layout content.
21554  A line break in the output can be indicated by 
21555 \begin_inset Flex Code
21556 status collapsed
21557
21558 \begin_layout Plain Layout
21559 <br/>
21560 \end_layout
21561
21562 \end_inset
21563
21564 .
21565 \end_layout
21566
21567 \begin_layout Description
21568 \begin_inset Flex Code
21569 status collapsed
21570
21571 \begin_layout Plain Layout
21572 LyxType
21573 \end_layout
21574
21575 \end_inset
21576
21577  Can be 
21578 \begin_inset Flex Code
21579 status collapsed
21580
21581 \begin_layout Plain Layout
21582 charstyle
21583 \end_layout
21584
21585 \end_inset
21586
21587
21588 \begin_inset Flex Code
21589 status collapsed
21590
21591 \begin_layout Plain Layout
21592 custom
21593 \end_layout
21594
21595 \end_inset
21596
21597
21598 \change_deleted -584632292 1615846609
21599
21600 \begin_inset Flex Code
21601 status collapsed
21602
21603 \begin_layout Plain Layout
21604 element
21605 \end_layout
21606
21607 \end_inset
21608
21609  
21610 \change_unchanged
21611 or 
21612 \begin_inset Flex Code
21613 status collapsed
21614
21615 \begin_layout Plain Layout
21616 end
21617 \end_layout
21618
21619 \end_inset
21620
21621  (indicating a dummy definition ending definitions of charstyles, etc).
21622  This entry is required in and is only meaningful for Flex insets.
21623  Among other things, it determines on which menu this inset will appear.
21624  Setting 
21625 \begin_inset Flex Code
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629 LyxType
21630 \end_layout
21631
21632 \end_inset
21633
21634  to 
21635 \begin_inset Flex Code
21636 status collapsed
21637
21638 \begin_layout Plain Layout
21639 charstyle
21640 \end_layout
21641
21642 \end_inset
21643
21644  will automatically set 
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649 MultiPar
21650 \end_layout
21651
21652 \end_inset
21653
21654  to false and 
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 ForcePlain
21660 \end_layout
21661
21662 \end_inset
21663
21664  to true.
21665  
21666 \begin_inset Flex Code
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 MultiPar
21671 \end_layout
21672
21673 \end_inset
21674
21675  can be set to true, or 
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680 ForcePlain
21681 \end_layout
21682
21683 \end_inset
21684
21685  to false, for 
21686 \begin_inset Flex Code
21687 status collapsed
21688
21689 \begin_layout Plain Layout
21690 charstyle
21691 \end_layout
21692
21693 \end_inset
21694
21695  insets by setting it 
21696 \emph on
21697 after
21698 \emph default
21699  you set the 
21700 \begin_inset Flex Code
21701 status collapsed
21702
21703 \begin_layout Plain Layout
21704 LyxType
21705 \end_layout
21706
21707 \end_inset
21708
21709 .
21710 \change_inserted -712698321 1555575738
21711
21712 \end_layout
21713
21714 \begin_layout Description
21715
21716 \change_inserted -712698321 1555575844
21717 \begin_inset Flex Code
21718 status collapsed
21719
21720 \begin_layout Plain Layout
21721
21722 \change_inserted -712698321 1555575740
21723 MenuString
21724 \change_unchanged
21725
21726 \end_layout
21727
21728 \end_inset
21729
21730  
21731 \begin_inset Flex Code
21732 status collapsed
21733
21734 \begin_layout Plain Layout
21735
21736 \change_inserted -712698321 1555575740
21737 [string]
21738 \change_unchanged
21739
21740 \end_layout
21741
21742 \end_inset
21743
21744  A dedicated string for the menu.
21745  You can define an accelerator by appending the respective character to
21746  the string, divided by 
21747 \begin_inset Quotes eld
21748 \end_inset
21749
21750 |
21751 \begin_inset Quotes erd
21752 \end_inset
21753
21754  (e.
21755 \begin_inset space \thinspace{}
21756 \end_inset
21757
21758 g.
21759 \begin_inset space \space{}
21760 \end_inset
21761
21762
21763 \begin_inset Quotes eld
21764 \end_inset
21765
21766
21767 \begin_inset Flex Code
21768 status collapsed
21769
21770 \begin_layout Plain Layout
21771
21772 \change_inserted -712698321 1555575781
21773 My Inset|M
21774 \change_unchanged
21775
21776 \end_layout
21777
21778 \end_inset
21779
21780
21781 \begin_inset Quotes erd
21782 \end_inset
21783
21784 ).
21785  This specification is optional.
21786  If it is not given the inset name as specified in the type declaration
21787  will be used instead for the menu.
21788 \change_unchanged
21789
21790 \end_layout
21791
21792 \begin_layout Description
21793 \begin_inset Flex Code
21794 status collapsed
21795
21796 \begin_layout Plain Layout
21797 MultiPar
21798 \end_layout
21799
21800 \end_inset
21801
21802  [
21803 \begin_inset Flex Code
21804 status collapsed
21805
21806 \begin_layout Plain Layout
21807
21808 \emph on
21809 0
21810 \end_layout
21811
21812 \end_inset
21813
21814 ,
21815 \begin_inset space \thinspace{}
21816 \end_inset
21817
21818
21819 \begin_inset Flex Code
21820 status collapsed
21821
21822 \begin_layout Plain Layout
21823 1
21824 \end_layout
21825
21826 \end_inset
21827
21828 ] Whether multiple paragraphs are permitted in this inset.
21829  This will also set 
21830 \begin_inset Flex Code
21831 status collapsed
21832
21833 \begin_layout Plain Layout
21834 CustomPars
21835 \end_layout
21836
21837 \end_inset
21838
21839  to the same value and 
21840 \begin_inset Flex Code
21841 status collapsed
21842
21843 \begin_layout Plain Layout
21844 ForcePlain
21845 \end_layout
21846
21847 \end_inset
21848
21849  to the opposite value.
21850  These can be reset to other values, if they are used 
21851 \emph on
21852 after
21853 \emph default
21854  
21855 \begin_inset Flex Code
21856 status collapsed
21857
21858 \begin_layout Plain Layout
21859 MultiPar
21860 \end_layout
21861
21862 \end_inset
21863
21864 .
21865  Default is true.
21866 \end_layout
21867
21868 \begin_layout Description
21869 \begin_inset Flex Code
21870 status collapsed
21871
21872 \begin_layout Plain Layout
21873 NeedProtect
21874 \end_layout
21875
21876 \end_inset
21877
21878  [
21879 \begin_inset Flex Code
21880 status collapsed
21881
21882 \begin_layout Plain Layout
21883
21884 \emph on
21885 0
21886 \end_layout
21887
21888 \end_inset
21889
21890 ,
21891 \begin_inset space \thinspace{}
21892 \end_inset
21893
21894
21895 \begin_inset Flex Code
21896 status collapsed
21897
21898 \begin_layout Plain Layout
21899 1
21900 \end_layout
21901
21902 \end_inset
21903
21904 ] Whether fragile commands in this inset should be 
21905 \begin_inset Flex Code
21906 status collapsed
21907
21908 \begin_layout Plain Layout
21909
21910 \backslash
21911 protect
21912 \end_layout
21913
21914 \end_inset
21915
21916 'ed.
21917  (Note: This is 
21918 \emph on
21919 not
21920 \emph default
21921  whether the command should itself be protected.) Default is false.
21922 \change_inserted -712698321 1523633958
21923
21924 \end_layout
21925
21926 \begin_layout Description
21927
21928 \change_inserted -712698321 1552395786
21929 \begin_inset Flex Code
21930 status collapsed
21931
21932 \begin_layout Plain Layout
21933
21934 \change_inserted -712698321 1523633961
21935 NeedCProtect
21936 \change_unchanged
21937
21938 \end_layout
21939
21940 \end_inset
21941
21942  [
21943 \begin_inset Flex Code
21944 status collapsed
21945
21946 \begin_layout Plain Layout
21947
21948 \change_inserted -712698321 1523633958
21949
21950 \emph on
21951 0
21952 \change_unchanged
21953
21954 \end_layout
21955
21956 \end_inset
21957
21958 ,
21959 \begin_inset space \thinspace{}
21960 \end_inset
21961
21962
21963 \begin_inset Flex Code
21964 status collapsed
21965
21966 \begin_layout Plain Layout
21967
21968 \change_inserted -712698321 1523633958
21969 1
21970 \change_unchanged
21971
21972 \end_layout
21973
21974 \end_inset
21975
21976 ] This causes macros that contain this inset to be protected with 
21977 \begin_inset Flex Code
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981
21982 \change_inserted -712698321 1523634038
21983
21984 \backslash
21985 cprotect
21986 \change_unchanged
21987
21988 \end_layout
21989
21990 \end_inset
21991
21992  (cf.
21993  package 
21994 \family sans
21995 cprotect
21996 \family default
21997 ) if necessary and thus allows (some) verbatim stuff in macros.
21998  Default is false.
21999 \end_layout
22000
22001 \begin_layout Description
22002
22003 \change_inserted -712698321 1555579651
22004 \begin_inset Flex Code
22005 status collapsed
22006
22007 \begin_layout Plain Layout
22008
22009 \change_inserted -712698321 1552395787
22010 NeedMBoxProtect
22011 \change_unchanged
22012
22013 \end_layout
22014
22015 \end_inset
22016
22017  [
22018 \begin_inset Flex Code
22019 status collapsed
22020
22021 \begin_layout Plain Layout
22022
22023 \change_inserted -712698321 1552395787
22024
22025 \emph on
22026 0
22027 \change_unchanged
22028
22029 \end_layout
22030
22031 \end_inset
22032
22033 ,
22034 \begin_inset space \thinspace{}
22035 \end_inset
22036
22037
22038 \begin_inset Flex Code
22039 status collapsed
22040
22041 \begin_layout Plain Layout
22042
22043 \change_inserted -712698321 1552395787
22044 1
22045 \change_unchanged
22046
22047 \end_layout
22048
22049 \end_inset
22050
22051 ] Whether specific commands in this inset (such as 
22052 \begin_inset Flex Code
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056
22057 \change_inserted -712698321 1552395787
22058
22059 \backslash
22060 cite
22061 \change_unchanged
22062
22063 \end_layout
22064
22065 \end_inset
22066
22067  and 
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072
22073 \change_inserted -712698321 1552395787
22074
22075 \backslash
22076 ref
22077 \change_unchanged
22078
22079 \end_layout
22080
22081 \end_inset
22082
22083 ) should be protected in an 
22084 \begin_inset Flex Code
22085 status collapsed
22086
22087 \begin_layout Plain Layout
22088
22089 \change_inserted -712698321 1552395787
22090
22091 \backslash
22092 mbox
22093 \change_unchanged
22094
22095 \end_layout
22096
22097 \end_inset
22098
22099 .
22100  This is particularly needed for insets that draw on 
22101 \family sans
22102 ulem
22103 \family default
22104  or 
22105 \family sans
22106 soul
22107 \family default
22108  commands which parse their content in complex ways.
22109  Default is false.
22110 \end_layout
22111
22112 \begin_layout Description
22113
22114 \change_inserted -712698321 1555579742
22115 \begin_inset Flex Code
22116 status collapsed
22117
22118 \begin_layout Plain Layout
22119
22120 \change_inserted -712698321 1555579658
22121 NewlineCmd
22122 \change_unchanged
22123
22124 \end_layout
22125
22126 \end_inset
22127
22128  
22129 \begin_inset Flex Code
22130 status collapsed
22131
22132 \begin_layout Plain Layout
22133
22134 \change_inserted -712698321 1555579651
22135 [string]
22136 \change_unchanged
22137
22138 \end_layout
22139
22140 \end_inset
22141
22142  Option to define a different command (from the default 
22143 \begin_inset Flex Code
22144 status collapsed
22145
22146 \begin_layout Plain Layout
22147
22148 \change_inserted -712698321 1555579742
22149
22150 \backslash
22151
22152 \backslash
22153
22154 \change_unchanged
22155
22156 \end_layout
22157
22158 \end_inset
22159
22160 ) to be used for line breaks.
22161  The initial backslash must not be specified.
22162 \change_unchanged
22163
22164 \end_layout
22165
22166 \begin_layout Description
22167 \begin_inset Flex Code
22168 status collapsed
22169
22170 \begin_layout Plain Layout
22171 NoInsetLayout
22172 \end_layout
22173
22174 \end_inset
22175
22176  [
22177 \begin_inset Flex Code
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181 <layout>
22182 \end_layout
22183
22184 \end_inset
22185
22186 ] Deletes an existing 
22187 \begin_inset Flex Code
22188 status collapsed
22189
22190 \begin_layout Plain Layout
22191 InsetLayout
22192 \end_layout
22193
22194 \end_inset
22195
22196 .
22197 \end_layout
22198
22199 \begin_layout Description
22200 \begin_inset Flex Code
22201 status collapsed
22202
22203 \begin_layout Plain Layout
22204 ObsoletedBy
22205 \end_layout
22206
22207 \end_inset
22208
22209  [
22210 \begin_inset Flex Code
22211 status collapsed
22212
22213 \begin_layout Plain Layout
22214 <layout>
22215 \end_layout
22216
22217 \end_inset
22218
22219 ] Name of an 
22220 \begin_inset Flex Code
22221 status collapsed
22222
22223 \begin_layout Plain Layout
22224 InsetLayout
22225 \end_layout
22226
22227 \end_inset
22228
22229  that has replaced this 
22230 \begin_inset Flex Code
22231 status collapsed
22232
22233 \begin_layout Plain Layout
22234 InsetLayout
22235 \end_layout
22236
22237 \end_inset
22238
22239 .
22240  This is used to rename an 
22241 \begin_inset Flex Code
22242 status collapsed
22243
22244 \begin_layout Plain Layout
22245 InsetLayout
22246 \end_layout
22247
22248 \end_inset
22249
22250 , while keeping backward compatibility.
22251 \change_inserted -712698321 1559491850
22252
22253 \end_layout
22254
22255 \begin_layout Description
22256
22257 \change_inserted -712698321 1559492002
22258 \begin_inset Flex Code
22259 status collapsed
22260
22261 \begin_layout Plain Layout
22262
22263 \change_inserted -712698321 1559491854
22264 ParbreakIgnored
22265 \change_unchanged
22266
22267 \end_layout
22268
22269 \end_inset
22270
22271  [
22272 \begin_inset Flex Code
22273 status collapsed
22274
22275 \begin_layout Plain Layout
22276
22277 \change_inserted -712698321 1559491850
22278
22279 \emph on
22280 0
22281 \change_unchanged
22282
22283 \end_layout
22284
22285 \end_inset
22286
22287 ,
22288 \begin_inset space \thinspace{}
22289 \end_inset
22290
22291
22292 \begin_inset Flex Code
22293 status collapsed
22294
22295 \begin_layout Plain Layout
22296
22297 \change_inserted -712698321 1559491850
22298 1
22299 \change_unchanged
22300
22301 \end_layout
22302
22303 \end_inset
22304
22305 ] If this is set to 
22306 \begin_inset Flex Code
22307 status collapsed
22308
22309 \begin_layout Plain Layout
22310
22311 \change_inserted -712698321 1559491881
22312 1
22313 \change_unchanged
22314
22315 \end_layout
22316
22317 \end_inset
22318
22319 , paragraph breaks will be ignored in the output.
22320  This might be useful for insets where the content should be alignable on
22321  different lines only in the \SpecialChar LyX
22322  workarea, without any effect in the output.
22323 \change_unchanged
22324
22325 \end_layout
22326
22327 \begin_layout Description
22328 \begin_inset Flex Code
22329 status collapsed
22330
22331 \begin_layout Plain Layout
22332 ParbreakIsNewline
22333 \end_layout
22334
22335 \end_inset
22336
22337  [
22338 \begin_inset Flex Code
22339 status collapsed
22340
22341 \begin_layout Plain Layout
22342
22343 \emph on
22344 0
22345 \end_layout
22346
22347 \end_inset
22348
22349 ,
22350 \begin_inset space \thinspace{}
22351 \end_inset
22352
22353
22354 \begin_inset Flex Code
22355 status collapsed
22356
22357 \begin_layout Plain Layout
22358 1
22359 \end_layout
22360
22361 \end_inset
22362
22363 ] As with paragraph styles, see 
22364 \begin_inset CommandInset ref
22365 LatexCommand ref
22366 reference "subsec:Paragraph-Styles"
22367
22368 \end_inset
22369
22370 .
22371  Default is false.
22372 \end_layout
22373
22374 \begin_layout Description
22375 \begin_inset Flex Code
22376 status collapsed
22377
22378 \begin_layout Plain Layout
22379 PassThru
22380 \end_layout
22381
22382 \end_inset
22383
22384  [
22385 \begin_inset Flex Code
22386 status collapsed
22387
22388 \begin_layout Plain Layout
22389
22390 \emph on
22391 0
22392 \end_layout
22393
22394 \end_inset
22395
22396 ,
22397 \begin_inset space \thinspace{}
22398 \end_inset
22399
22400
22401 \begin_inset Flex Code
22402 status collapsed
22403
22404 \begin_layout Plain Layout
22405 1
22406 \end_layout
22407
22408 \end_inset
22409
22410 ] As with paragraph styles, see 
22411 \begin_inset CommandInset ref
22412 LatexCommand ref
22413 reference "subsec:Paragraph-Styles"
22414
22415 \end_inset
22416
22417 .
22418  Default is false.
22419 \end_layout
22420
22421 \begin_layout Description
22422 \begin_inset Flex Code
22423 status collapsed
22424
22425 \begin_layout Plain Layout
22426 Preamble
22427 \end_layout
22428
22429 \end_inset
22430
22431  As with paragraph styles, see 
22432 \begin_inset CommandInset ref
22433 LatexCommand ref
22434 reference "subsec:Paragraph-Styles"
22435
22436 \end_inset
22437
22438 .
22439 \end_layout
22440
22441 \begin_layout Description
22442 \begin_inset Flex Code
22443 status collapsed
22444
22445 \begin_layout Plain Layout
22446 RefPrefix
22447 \end_layout
22448
22449 \end_inset
22450
22451  [
22452 \begin_inset Flex Code
22453 status collapsed
22454
22455 \begin_layout Plain Layout
22456 string
22457 \end_layout
22458
22459 \end_inset
22460
22461 ] The prefix to use when creating labels referring to insets of this type.
22462  This allows the use of formatted references.
22463 \end_layout
22464
22465 \begin_layout Description
22466 \begin_inset Flex Code
22467 status collapsed
22468
22469 \begin_layout Plain Layout
22470 Requires
22471 \end_layout
22472
22473 \end_inset
22474
22475  [
22476 \begin_inset Flex Code
22477 status collapsed
22478
22479 \begin_layout Plain Layout
22480 string
22481 \end_layout
22482
22483 \end_inset
22484
22485 ] As with paragraph styles, see 
22486 \begin_inset CommandInset ref
22487 LatexCommand ref
22488 reference "subsec:Paragraph-Styles"
22489
22490 \end_inset
22491
22492 .
22493 \end_layout
22494
22495 \begin_layout Description
22496 \begin_inset Flex Code
22497 status collapsed
22498
22499 \begin_layout Plain Layout
22500 ResetArgs
22501 \end_layout
22502
22503 \end_inset
22504
22505  [
22506 \begin_inset Flex Code
22507 status collapsed
22508
22509 \begin_layout Plain Layout
22510
22511 \emph on
22512 0
22513 \end_layout
22514
22515 \end_inset
22516
22517 ,
22518 \begin_inset space \thinspace{}
22519 \end_inset
22520
22521
22522 \begin_inset Flex Code
22523 status collapsed
22524
22525 \begin_layout Plain Layout
22526 1
22527 \end_layout
22528
22529 \end_inset
22530
22531 ] Resets the \SpecialChar LaTeX
22532  arguments of this layout (as defined via the 
22533 \begin_inset Flex Code
22534 status collapsed
22535
22536 \begin_layout Plain Layout
22537 Argument
22538 \end_layout
22539
22540 \end_inset
22541
22542  tag).
22543  This is useful if you have copied a style via 
22544 \begin_inset Flex Code
22545 status collapsed
22546
22547 \begin_layout Plain Layout
22548 CopyStyle
22549 \end_layout
22550
22551 \end_inset
22552
22553 , but you do not want to inherit its (required and optional) arguments.
22554 \end_layout
22555
22556 \begin_layout Description
22557 \begin_inset Flex Code
22558 status collapsed
22559
22560 \begin_layout Plain Layout
22561 ResetsFont
22562 \end_layout
22563
22564 \end_inset
22565
22566  [
22567 \begin_inset Flex Code
22568 status collapsed
22569
22570 \begin_layout Plain Layout
22571
22572 \emph on
22573 0
22574 \end_layout
22575
22576 \end_inset
22577
22578 ,
22579 \begin_inset space \thinspace{}
22580 \end_inset
22581
22582
22583 \begin_inset Flex Code
22584 status collapsed
22585
22586 \begin_layout Plain Layout
22587 1
22588 \end_layout
22589
22590 \end_inset
22591
22592
22593 \change_inserted -712698321 1597733473
22594 If 
22595 \begin_inset Flex Code
22596 status collapsed
22597
22598 \begin_layout Plain Layout
22599
22600 \change_inserted -712698321 1597732178
22601 1
22602 \change_unchanged
22603
22604 \end_layout
22605
22606 \end_inset
22607
22608 , font changes are redone inside the respective inset (in the output) even
22609  if the inset itself is in the context of this font changes (e.
22610 \begin_inset space \thinspace{}
22611 \end_inset
22612
22613 g., 
22614 \begin_inset Flex Code
22615 status collapsed
22616
22617 \begin_layout Plain Layout
22618
22619 \change_inserted -712698321 1597733683
22620
22621 \backslash
22622 textbf{Sourrounding text 
22623 \backslash
22624 myinset{
22625 \backslash
22626 textbf{content}}\SpecialChar ldots
22627 }
22628 \change_unchanged
22629
22630 \end_layout
22631
22632 \end_inset
22633
22634  rather than 
22635 \begin_inset Flex Code
22636 status collapsed
22637
22638 \begin_layout Plain Layout
22639
22640 \change_inserted -712698321 1597733686
22641
22642 \backslash
22643 textbf{Sourrounding text 
22644 \backslash
22645 myinset{content}\SpecialChar ldots
22646 }
22647 \change_unchanged
22648
22649 \end_layout
22650
22651 \end_inset
22652
22653 .
22654  Setting this makes sense for commands that internally reset font settings
22655  (e.
22656 \begin_inset space \thinspace{}
22657 \end_inset
22658
22659 g., footnotes).
22660  Note that wrongly setting this might lead to unwanted result (e.
22661 \begin_inset space \thinspace{}
22662 \end_inset
22663
22664 g., with 
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669
22670 \change_inserted -712698321 1597733688
22671
22672 \backslash
22673 emph{Sourrounding text 
22674 \backslash
22675 myinset{
22676 \backslash
22677 emph{content}}\SpecialChar ldots
22678 }
22679 \change_unchanged
22680
22681 \end_layout
22682
22683 \end_inset
22684
22685 , content is upright, as 
22686 \begin_inset Flex Code
22687 status collapsed
22688
22689 \begin_layout Plain Layout
22690
22691 \change_inserted -712698321 1597733278
22692
22693 \backslash
22694 emph
22695 \change_unchanged
22696
22697 \end_layout
22698
22699 \end_inset
22700
22701  toggles.
22702  
22703 \change_deleted -712698321 1597733283
22704 Whether this inset should use the font of its surrounding environment or
22705  uses its own.
22706  
22707 \change_unchanged
22708 Default is 
22709 \change_deleted -712698321 1597733290
22710 false
22711 \change_inserted -712698321 1597733290
22712
22713 \begin_inset Flex Code
22714 status collapsed
22715
22716 \begin_layout Plain Layout
22717
22718 \change_inserted -712698321 1597733292
22719 0
22720 \change_unchanged
22721
22722 \end_layout
22723
22724 \end_inset
22725
22726
22727 \change_unchanged
22728
22729 \change_deleted -712698321 1597733327
22730 use the font of the surrounding environment
22731 \change_inserted -712698321 1597733343
22732 font changes are not redone inside the inset
22733 \change_unchanged
22734 .
22735 \end_layout
22736
22737 \begin_layout Description
22738 \begin_inset Flex Code
22739 status collapsed
22740
22741 \begin_layout Plain Layout
22742 RightDelim
22743 \end_layout
22744
22745 \end_inset
22746
22747  [
22748 \begin_inset Flex Code
22749 status collapsed
22750
22751 \begin_layout Plain Layout
22752 string
22753 \end_layout
22754
22755 \end_inset
22756
22757 ] A string that is put at the end of the layout content.
22758  A line break in the output can be indicated by 
22759 \begin_inset Flex Code
22760 status collapsed
22761
22762 \begin_layout Plain Layout
22763 <br/>
22764 \end_layout
22765
22766 \end_inset
22767
22768 .
22769 \end_layout
22770
22771 \begin_layout Description
22772 \begin_inset Flex Code
22773 status collapsed
22774
22775 \begin_layout Plain Layout
22776 Spellcheck
22777 \end_layout
22778
22779 \end_inset
22780
22781  [
22782 \begin_inset Flex Code
22783 status collapsed
22784
22785 \begin_layout Plain Layout
22786 0
22787 \end_layout
22788
22789 \end_inset
22790
22791 ,
22792 \begin_inset space \thinspace{}
22793 \end_inset
22794
22795
22796 \begin_inset Flex Code
22797 status collapsed
22798
22799 \begin_layout Plain Layout
22800
22801 \emph on
22802 1
22803 \end_layout
22804
22805 \end_inset
22806
22807 ] Allow spell-checking the contents of this inset.
22808  Default is true.
22809 \change_inserted -584632292 1615846659
22810
22811 \end_layout
22812
22813 \begin_layout Subsection
22814
22815 \change_inserted -584632292 1615846729
22816 Arguments
22817 \begin_inset CommandInset label
22818 LatexCommand label
22819 name "subsec:Arguments"
22820
22821 \end_inset
22822
22823
22824 \end_layout
22825
22826 \begin_layout Standard
22827
22828 \change_inserted -584632292 1615846807
22829 Both paragraph styles and inset layouts allow for 
22830 \emph on
22831 arguments
22832 \emph default
22833  as well as the main content.
22834  This is especially useful for things like section headings and only makes
22835  sense with \SpecialChar LaTeX
22836 .
22837  Each (optional or required) argument of a command or environment—except
22838  for the required argument that is associated with the content—has a separate
22839  definition, where the number specifies the order of the arguments.
22840  The definition must end with 
22841 \begin_inset Flex Code
22842 status collapsed
22843
22844 \begin_layout Plain Layout
22845
22846 \change_inserted -584632292 1615846730
22847 EndArgument
22848 \change_unchanged
22849
22850 \end_layout
22851
22852 \end_inset
22853
22854 .
22855  So a command with two optional arguments looks like:
22856 \end_layout
22857
22858 \begin_layout Quote
22859
22860 \change_inserted -584632292 1615846730
22861
22862 \family typewriter
22863 Argument 1
22864 \end_layout
22865
22866 \begin_layout Quote
22867
22868 \change_inserted -584632292 1615846730
22869
22870 \family typewriter
22871 ...
22872 \end_layout
22873
22874 \begin_layout Quote
22875
22876 \change_inserted -584632292 1615846730
22877
22878 \family typewriter
22879 EndArgument
22880 \end_layout
22881
22882 \begin_layout Quote
22883
22884 \change_inserted -584632292 1615846730
22885
22886 \family typewriter
22887 Argument 2
22888 \end_layout
22889
22890 \begin_layout Quote
22891
22892 \change_inserted -584632292 1615846730
22893
22894 \family typewriter
22895 ...
22896 \end_layout
22897
22898 \begin_layout Quote
22899
22900 \change_inserted -584632292 1615846730
22901
22902 \family typewriter
22903 EndArgument
22904 \end_layout
22905
22906 \begin_layout Standard
22907
22908 \change_inserted -584632292 1615846730
22909 Inside the 
22910 \begin_inset Flex Code
22911 status collapsed
22912
22913 \begin_layout Plain Layout
22914
22915 \change_inserted -584632292 1615846730
22916 Argument
22917 \change_unchanged
22918
22919 \end_layout
22920
22921 \end_inset
22922
22923  definition, the following specifications are possible:
22924 \end_layout
22925
22926 \begin_layout Itemize
22927
22928 \change_inserted -584632292 1615846730
22929 \begin_inset Flex Code
22930 status collapsed
22931
22932 \begin_layout Plain Layout
22933
22934 \change_inserted -584632292 1615846730
22935 LabelString
22936 \change_unchanged
22937
22938 \end_layout
22939
22940 \end_inset
22941
22942  
22943 \begin_inset Flex Code
22944 status collapsed
22945
22946 \begin_layout Plain Layout
22947
22948 \change_inserted -584632292 1615846730
22949 [string]
22950 \change_unchanged
22951
22952 \end_layout
22953
22954 \end_inset
22955
22956  The string that will appear both in the menu (to insert this argument)
22957  and on the argument inset button (unless you also specify a separate 
22958 \begin_inset Flex Code
22959 status collapsed
22960
22961 \begin_layout Plain Layout
22962
22963 \change_inserted -584632292 1615846730
22964 MenuString
22965 \change_unchanged
22966
22967 \end_layout
22968
22969 \end_inset
22970
22971 ).
22972  For the menu, you can define an accelerator by appending the respective
22973  character to the string, divided by 
22974 \begin_inset Quotes eld
22975 \end_inset
22976
22977 |
22978 \begin_inset Quotes erd
22979 \end_inset
22980
22981  (e.
22982 \begin_inset space \thinspace{}
22983 \end_inset
22984
22985 g.
22986 \begin_inset space \space{}
22987 \end_inset
22988
22989
22990 \begin_inset Quotes eld
22991 \end_inset
22992
22993
22994 \begin_inset Flex Code
22995 status collapsed
22996
22997 \begin_layout Plain Layout
22998
22999 \change_inserted -584632292 1615846730
23000 Short Title|S
23001 \change_unchanged
23002
23003 \end_layout
23004
23005 \end_inset
23006
23007
23008 \begin_inset Quotes erd
23009 \end_inset
23010
23011 ).
23012 \end_layout
23013
23014 \begin_layout Itemize
23015
23016 \change_inserted -584632292 1615846730
23017 \begin_inset Flex Code
23018 status collapsed
23019
23020 \begin_layout Plain Layout
23021
23022 \change_inserted -584632292 1615846730
23023 MenuString
23024 \change_unchanged
23025
23026 \end_layout
23027
23028 \end_inset
23029
23030  
23031 \begin_inset Flex Code
23032 status collapsed
23033
23034 \begin_layout Plain Layout
23035
23036 \change_inserted -584632292 1615846730
23037 [string]
23038 \change_unchanged
23039
23040 \end_layout
23041
23042 \end_inset
23043
23044  A separate string for the menu.
23045  You can define an accelerator by appending the respective character to
23046  the string, divided by 
23047 \begin_inset Quotes eld
23048 \end_inset
23049
23050 |
23051 \begin_inset Quotes erd
23052 \end_inset
23053
23054  (e.
23055 \begin_inset space \thinspace{}
23056 \end_inset
23057
23058 g.
23059 \begin_inset space \space{}
23060 \end_inset
23061
23062
23063 \begin_inset Quotes eld
23064 \end_inset
23065
23066
23067 \begin_inset Flex Code
23068 status collapsed
23069
23070 \begin_layout Plain Layout
23071
23072 \change_inserted -584632292 1615846730
23073 Short Title|S
23074 \change_unchanged
23075
23076 \end_layout
23077
23078 \end_inset
23079
23080
23081 \begin_inset Quotes erd
23082 \end_inset
23083
23084 ).
23085  This specification is optional.
23086  If it is not given the 
23087 \begin_inset Flex Code
23088 status collapsed
23089
23090 \begin_layout Plain Layout
23091
23092 \change_inserted -584632292 1615846730
23093 LabelString
23094 \change_unchanged
23095
23096 \end_layout
23097
23098 \end_inset
23099
23100  will be used instead for the menu.
23101 \end_layout
23102
23103 \begin_layout Itemize
23104
23105 \change_inserted -584632292 1615846730
23106 \begin_inset Flex Code
23107 status collapsed
23108
23109 \begin_layout Plain Layout
23110
23111 \change_inserted -584632292 1615846730
23112 Tooltip
23113 \change_unchanged
23114
23115 \end_layout
23116
23117 \end_inset
23118
23119  
23120 \begin_inset Flex Code
23121 status collapsed
23122
23123 \begin_layout Plain Layout
23124
23125 \change_inserted -584632292 1615846730
23126 [string]
23127 \change_unchanged
23128
23129 \end_layout
23130
23131 \end_inset
23132
23133  A longer explanatory text that appears in the tooltip when hovering over
23134  the argument inset.
23135 \end_layout
23136
23137 \begin_layout Itemize
23138
23139 \change_inserted -584632292 1615846730
23140 \begin_inset Flex Code
23141 status collapsed
23142
23143 \begin_layout Plain Layout
23144
23145 \change_inserted -584632292 1615846730
23146 Mandatory
23147 \change_unchanged
23148
23149 \end_layout
23150
23151 \end_inset
23152
23153  [
23154 \begin_inset Flex Code
23155 status collapsed
23156
23157 \begin_layout Plain Layout
23158
23159 \change_inserted -584632292 1615846730
23160
23161 \emph on
23162 0
23163 \change_unchanged
23164
23165 \end_layout
23166
23167 \end_inset
23168
23169 ,
23170 \begin_inset space \thinspace{}
23171 \end_inset
23172
23173
23174 \begin_inset Flex Code
23175 status collapsed
23176
23177 \begin_layout Plain Layout
23178
23179 \change_inserted -584632292 1615846730
23180 1
23181 \change_unchanged
23182
23183 \end_layout
23184
23185 \end_inset
23186
23187 ] Declare if this is a mandatory (1) or an optional (0) argument.
23188  Mandatory arguments will be output empty if not given, while optional arguments
23189  will not be output at all.
23190  By default, mandatory arguments are delimited by 
23191 \begin_inset Flex Code
23192 status collapsed
23193
23194 \begin_layout Plain Layout
23195
23196 \change_inserted -584632292 1615846730
23197 {...}
23198 \change_unchanged
23199
23200 \end_layout
23201
23202 \end_inset
23203
23204 , while optional arguments are delimited by 
23205 \begin_inset Flex Code
23206 status collapsed
23207
23208 \begin_layout Plain Layout
23209
23210 \change_inserted -584632292 1615846730
23211 [...]
23212 \change_unchanged
23213
23214 \end_layout
23215
23216 \end_inset
23217
23218
23219 \end_layout
23220
23221 \begin_layout Itemize
23222
23223 \change_inserted -584632292 1615846730
23224 \begin_inset Flex Code
23225 status collapsed
23226
23227 \begin_layout Plain Layout
23228
23229 \change_inserted -584632292 1615846730
23230 NewlineCmd
23231 \change_unchanged
23232
23233 \end_layout
23234
23235 \end_inset
23236
23237  
23238 \begin_inset Flex Code
23239 status collapsed
23240
23241 \begin_layout Plain Layout
23242
23243 \change_inserted -584632292 1615846730
23244 [string]
23245 \change_unchanged
23246
23247 \end_layout
23248
23249 \end_inset
23250
23251  Option to define a different command (from the default 
23252 \begin_inset Flex Code
23253 status collapsed
23254
23255 \begin_layout Plain Layout
23256
23257 \change_inserted -584632292 1615846730
23258
23259 \backslash
23260
23261 \backslash
23262
23263 \change_unchanged
23264
23265 \end_layout
23266
23267 \end_inset
23268
23269 ) to be used for line breaks.
23270  The initial backslash must not be specified.
23271 \end_layout
23272
23273 \begin_layout Itemize
23274
23275 \change_inserted -584632292 1615846730
23276 \begin_inset Flex Code
23277 status collapsed
23278
23279 \begin_layout Plain Layout
23280
23281 \change_inserted -584632292 1615846730
23282 Requires
23283 \change_unchanged
23284
23285 \end_layout
23286
23287 \end_inset
23288
23289  
23290 \begin_inset Flex Code
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294
23295 \change_inserted -584632292 1615846730
23296 [int=0]
23297 \change_unchanged
23298
23299 \end_layout
23300
23301 \end_inset
23302
23303  defines another argument (by its number) which this argument requires to
23304  be output if it is itself output.
23305  E.
23306 \begin_inset space \thinspace{}
23307 \end_inset
23308
23309 g., in \SpecialChar LaTeX
23310  commands, optional arguments often require previous optional arguments
23311  to be output (at least empty), as in 
23312 \begin_inset Flex Code
23313 status collapsed
23314
23315 \begin_layout Plain Layout
23316
23317 \change_inserted -584632292 1615846730
23318
23319 \backslash
23320 command[][argument]{text}
23321 \change_unchanged
23322
23323 \end_layout
23324
23325 \end_inset
23326
23327 .
23328  This can be achieved by the statement 
23329 \begin_inset Flex Code
23330 status collapsed
23331
23332 \begin_layout Plain Layout
23333
23334 \change_inserted -584632292 1615846730
23335 Requires 1
23336 \change_unchanged
23337
23338 \end_layout
23339
23340 \end_inset
23341
23342  within 
23343 \begin_inset Flex Code
23344 status collapsed
23345
23346 \begin_layout Plain Layout
23347
23348 \change_inserted -584632292 1615846730
23349 Argument 2
23350 \change_unchanged
23351
23352 \end_layout
23353
23354 \end_inset
23355
23356 .
23357 \end_layout
23358
23359 \begin_layout Itemize
23360
23361 \change_inserted -584632292 1615846730
23362 \begin_inset Flex Code
23363 status collapsed
23364
23365 \begin_layout Plain Layout
23366
23367 \change_inserted -584632292 1615846730
23368 LeftDelim
23369 \change_unchanged
23370
23371 \end_layout
23372
23373 \end_inset
23374
23375  
23376 \begin_inset Flex Code
23377 status collapsed
23378
23379 \begin_layout Plain Layout
23380
23381 \change_inserted -584632292 1615846730
23382 [string]
23383 \change_unchanged
23384
23385 \end_layout
23386
23387 \end_inset
23388
23389  defines a custom left delimiter (instead of 
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394
23395 \change_inserted -584632292 1615846730
23396 {
23397 \change_unchanged
23398
23399 \end_layout
23400
23401 \end_inset
23402
23403  or 
23404 \begin_inset Flex Code
23405 status collapsed
23406
23407 \begin_layout Plain Layout
23408
23409 \change_inserted -584632292 1615846730
23410 [
23411 \change_unchanged
23412
23413 \end_layout
23414
23415 \end_inset
23416
23417 ).
23418  A line break in the output can be indicated by 
23419 \begin_inset Flex Code
23420 status collapsed
23421
23422 \begin_layout Plain Layout
23423
23424 \change_inserted -584632292 1615846730
23425 <br/>
23426 \change_unchanged
23427
23428 \end_layout
23429
23430 \end_inset
23431
23432 .
23433 \end_layout
23434
23435 \begin_layout Itemize
23436
23437 \change_inserted -584632292 1615846730
23438 \begin_inset Flex Code
23439 status collapsed
23440
23441 \begin_layout Plain Layout
23442
23443 \change_inserted -584632292 1615846730
23444 RightDelim
23445 \change_unchanged
23446
23447 \end_layout
23448
23449 \end_inset
23450
23451  
23452 \begin_inset Flex Code
23453 status collapsed
23454
23455 \begin_layout Plain Layout
23456
23457 \change_inserted -584632292 1615846730
23458 [string]
23459 \change_unchanged
23460
23461 \end_layout
23462
23463 \end_inset
23464
23465  defines a custom right delimiter (instead of 
23466 \begin_inset Flex Code
23467 status collapsed
23468
23469 \begin_layout Plain Layout
23470
23471 \change_inserted -584632292 1615846730
23472 }
23473 \change_unchanged
23474
23475 \end_layout
23476
23477 \end_inset
23478
23479  or 
23480 \begin_inset Flex Code
23481 status collapsed
23482
23483 \begin_layout Plain Layout
23484
23485 \change_inserted -584632292 1615846730
23486 ]
23487 \change_unchanged
23488
23489 \end_layout
23490
23491 \end_inset
23492
23493 ).
23494  A line break in the output can be indicated by 
23495 \begin_inset Flex Code
23496 status collapsed
23497
23498 \begin_layout Plain Layout
23499
23500 \change_inserted -584632292 1615846730
23501 <br/>
23502 \change_unchanged
23503
23504 \end_layout
23505
23506 \end_inset
23507
23508 .
23509 \end_layout
23510
23511 \begin_layout Itemize
23512
23513 \change_inserted -584632292 1615846730
23514 \begin_inset Flex Code
23515 status collapsed
23516
23517 \begin_layout Plain Layout
23518
23519 \change_inserted -584632292 1615846730
23520 DefaultArg
23521 \change_unchanged
23522
23523 \end_layout
23524
23525 \end_inset
23526
23527  
23528 \begin_inset Flex Code
23529 status collapsed
23530
23531 \begin_layout Plain Layout
23532
23533 \change_inserted -584632292 1615846730
23534 [string]
23535 \change_unchanged
23536
23537 \end_layout
23538
23539 \end_inset
23540
23541  defines an argument that is inserted if and only if no user-specified arguments
23542  were given, i.
23543 \begin_inset space \thinspace{}
23544 \end_inset
23545
23546 e.
23547 \begin_inset space \space{}
23548 \end_inset
23549
23550 if no argument inset has been inserted (note that also an empty argument
23551  inset omits the DefaultArg).
23552  Multiple arguments need to be separated by comma.
23553 \end_layout
23554
23555 \begin_layout Itemize
23556
23557 \change_inserted -584632292 1615846730
23558 \begin_inset Flex Code
23559 status collapsed
23560
23561 \begin_layout Plain Layout
23562
23563 \change_inserted -584632292 1615846730
23564 PresetArg
23565 \change_unchanged
23566
23567 \end_layout
23568
23569 \end_inset
23570
23571  
23572 \begin_inset Flex Code
23573 status collapsed
23574
23575 \begin_layout Plain Layout
23576
23577 \change_inserted -584632292 1615846730
23578 [string]
23579 \change_unchanged
23580
23581 \end_layout
23582
23583 \end_inset
23584
23585  defines an argument that is inserted in any case (alone or in addition
23586  to user-specified arguments).
23587  Multiple arguments need to be separated by comma.
23588 \end_layout
23589
23590 \begin_layout Itemize
23591
23592 \change_inserted -584632292 1615846730
23593 \begin_inset Flex Code
23594 status collapsed
23595
23596 \begin_layout Plain Layout
23597
23598 \change_inserted -584632292 1615846730
23599 Font
23600 \change_unchanged
23601
23602 \end_layout
23603
23604 \end_inset
23605
23606  The font used for the argument content, see 
23607 \begin_inset CommandInset ref
23608 LatexCommand ref
23609 reference "subsec:Font-description"
23610
23611 \end_inset
23612
23613 .
23614 \end_layout
23615
23616 \begin_layout Itemize
23617
23618 \change_inserted -584632292 1615846730
23619 \begin_inset Flex Code
23620 status collapsed
23621
23622 \begin_layout Plain Layout
23623
23624 \change_inserted -584632292 1615846730
23625 FreeSpacing
23626 \change_unchanged
23627
23628 \end_layout
23629
23630 \end_inset
23631
23632  [
23633 \begin_inset Flex Code
23634 status collapsed
23635
23636 \begin_layout Plain Layout
23637
23638 \change_inserted -584632292 1615846730
23639
23640 \emph on
23641 0
23642 \change_unchanged
23643
23644 \end_layout
23645
23646 \end_inset
23647
23648 ,
23649 \begin_inset space \thinspace{}
23650 \end_inset
23651
23652
23653 \begin_inset Flex Code
23654 status collapsed
23655
23656 \begin_layout Plain Layout
23657
23658 \change_inserted -584632292 1615846730
23659 1
23660 \change_unchanged
23661
23662 \end_layout
23663
23664 \end_inset
23665
23666 ] As with paragraph styles, see 
23667 \begin_inset CommandInset ref
23668 LatexCommand ref
23669 reference "subsec:Paragraph-Styles"
23670
23671 \end_inset
23672
23673 .
23674 \end_layout
23675
23676 \begin_layout Itemize
23677
23678 \change_inserted -584632292 1615846730
23679 \begin_inset Flex Code
23680 status collapsed
23681
23682 \begin_layout Plain Layout
23683
23684 \change_inserted -584632292 1615846730
23685 LabelFont
23686 \change_unchanged
23687
23688 \end_layout
23689
23690 \end_inset
23691
23692  The font used for the label; see 
23693 \begin_inset CommandInset ref
23694 LatexCommand ref
23695 reference "subsec:Font-description"
23696
23697 \end_inset
23698
23699 .
23700 \end_layout
23701
23702 \begin_layout Itemize
23703
23704 \change_inserted -584632292 1615846730
23705 \begin_inset Flex Code
23706 status collapsed
23707
23708 \begin_layout Plain Layout
23709
23710 \change_inserted -584632292 1615846730
23711 Decoration
23712 \change_unchanged
23713
23714 \end_layout
23715
23716 \end_inset
23717
23718  [
23719 \begin_inset Flex Code
23720 status collapsed
23721
23722 \begin_layout Plain Layout
23723
23724 \change_inserted -584632292 1615846730
23725
23726 \emph on
23727 Classic
23728 \emph default
23729 , Minimalistic, Conglomerate
23730 \change_unchanged
23731
23732 \end_layout
23733
23734 \end_inset
23735
23736 ] describes the rendering style used for the inset's frame and buttons.
23737 \end_layout
23738
23739 \begin_layout Itemize
23740
23741 \change_inserted -584632292 1615846730
23742 \begin_inset Flex Code
23743 status collapsed
23744
23745 \begin_layout Plain Layout
23746
23747 \change_inserted -584632292 1615846730
23748 AutoInsert
23749 \change_unchanged
23750
23751 \end_layout
23752
23753 \end_inset
23754
23755  
23756 \begin_inset Flex Code
23757 status collapsed
23758
23759 \begin_layout Plain Layout
23760
23761 \change_inserted -584632292 1615846730
23762 [int=0]
23763 \change_unchanged
23764
23765 \end_layout
23766
23767 \end_inset
23768
23769  If this is set to 
23770 \begin_inset Flex Code
23771 status collapsed
23772
23773 \begin_layout Plain Layout
23774
23775 \change_inserted -584632292 1615846730
23776 1
23777 \change_unchanged
23778
23779 \end_layout
23780
23781 \end_inset
23782
23783 , this argument is automatically inserted when the respective style is selected.
23784 \end_layout
23785
23786 \begin_layout Itemize
23787
23788 \change_inserted -584632292 1615846730
23789 \begin_inset Flex Code
23790 status collapsed
23791
23792 \begin_layout Plain Layout
23793
23794 \change_inserted -584632292 1615846730
23795 InsertOnNewline
23796 \change_unchanged
23797
23798 \end_layout
23799
23800 \end_inset
23801
23802  
23803 \begin_inset Flex Code
23804 status collapsed
23805
23806 \begin_layout Plain Layout
23807
23808 \change_inserted -584632292 1615846730
23809 [int=0]
23810 \change_unchanged
23811
23812 \end_layout
23813
23814 \end_inset
23815
23816  If this is set to 
23817 \begin_inset Flex Code
23818 status collapsed
23819
23820 \begin_layout Plain Layout
23821
23822 \change_inserted -584632292 1615846730
23823 1
23824 \change_unchanged
23825
23826 \end_layout
23827
23828 \end_inset
23829
23830 , this argument will be inserted on a new line with 
23831 \begin_inset Flex Code
23832 status collapsed
23833
23834 \begin_layout Plain Layout
23835
23836 \change_inserted -584632292 1615846730
23837 AutoInsert
23838 \change_unchanged
23839
23840 \end_layout
23841
23842 \end_inset
23843
23844  (only available within Flex insets).
23845 \end_layout
23846
23847 \begin_layout Itemize
23848
23849 \change_inserted -584632292 1615846730
23850 \begin_inset Flex Code
23851 status collapsed
23852
23853 \begin_layout Plain Layout
23854
23855 \change_inserted -584632292 1615846730
23856 InsertCotext
23857 \change_unchanged
23858
23859 \end_layout
23860
23861 \end_inset
23862
23863  
23864 \begin_inset Flex Code
23865 status collapsed
23866
23867 \begin_layout Plain Layout
23868
23869 \change_inserted -584632292 1615846730
23870 [int=0]
23871 \change_unchanged
23872
23873 \end_layout
23874
23875 \end_inset
23876
23877  If this is set to 
23878 \begin_inset Flex Code
23879 status collapsed
23880
23881 \begin_layout Plain Layout
23882
23883 \change_inserted -584632292 1615846730
23884 1
23885 \change_unchanged
23886
23887 \end_layout
23888
23889 \end_inset
23890
23891 , this argument will be inserted with a copy of the co-text (either selected
23892  text or the whole paragraph) as content.
23893 \end_layout
23894
23895 \begin_layout Itemize
23896
23897 \change_inserted -584632292 1615846730
23898 \begin_inset Flex Code
23899 status collapsed
23900
23901 \begin_layout Plain Layout
23902
23903 \change_inserted -584632292 1615846730
23904 PassThru
23905 \change_unchanged
23906
23907 \end_layout
23908
23909 \end_inset
23910
23911  [
23912 \begin_inset Flex Code
23913 status collapsed
23914
23915 \begin_layout Plain Layout
23916
23917 \change_inserted -584632292 1615846730
23918
23919 \emph on
23920 inherited
23921 \emph default
23922 , true, false
23923 \change_unchanged
23924
23925 \end_layout
23926
23927 \end_inset
23928
23929 ] Whether the contents of this argument should be output in raw form, meaning
23930  without special translations that \SpecialChar LaTeX
23931  would require.
23932  By default, the 
23933 \begin_inset Flex Code
23934 status collapsed
23935
23936 \begin_layout Plain Layout
23937
23938 \change_inserted -584632292 1615846730
23939 PassThru
23940 \change_unchanged
23941
23942 \end_layout
23943
23944 \end_inset
23945
23946  status is inherited by the inset or paragraph layout the argument belongs
23947  to, true and false change the status for the given argument only.
23948 \end_layout
23949
23950 \begin_layout Itemize
23951
23952 \change_inserted -584632292 1615846730
23953 \begin_inset Flex Code
23954 status collapsed
23955
23956 \begin_layout Plain Layout
23957
23958 \change_inserted -584632292 1615846730
23959 PassThruChars
23960 \change_unchanged
23961
23962 \end_layout
23963
23964 \end_inset
23965
23966  [
23967 \begin_inset Flex Code
23968 status collapsed
23969
23970 \begin_layout Plain Layout
23971
23972 \change_inserted -584632292 1615846730
23973 string of characters
23974 \change_unchanged
23975
23976 \end_layout
23977
23978 \end_inset
23979
23980 ]
23981 \family typewriter
23982  
23983 \family default
23984 Defines individual characters
23985 \begin_inset Newline linebreak
23986 \end_inset
23987
23988 that should be output in raw form, meaning without special translations
23989  that \SpecialChar LaTeX
23990  would require.
23991  Note that, contrary to PassThru, this needs to be explicitly defined for
23992  arguments.
23993  That is, arguments do not inherit PassThruChars from their parent inset
23994  or layout.
23995 \end_layout
23996
23997 \begin_layout Itemize
23998
23999 \change_inserted -584632292 1615846730
24000 \begin_inset Flex Code
24001 status collapsed
24002
24003 \begin_layout Plain Layout
24004
24005 \change_inserted -584632292 1615846730
24006 IsTocCaption
24007 \change_unchanged
24008
24009 \end_layout
24010
24011 \end_inset
24012
24013  [
24014 \begin_inset Flex Code
24015 status collapsed
24016
24017 \begin_layout Plain Layout
24018
24019 \change_inserted -584632292 1615846730
24020
24021 \emph on
24022 0
24023 \change_unchanged
24024
24025 \end_layout
24026
24027 \end_inset
24028
24029 ,
24030 \begin_inset space \thinspace{}
24031 \end_inset
24032
24033
24034 \begin_inset Flex Code
24035 status collapsed
24036
24037 \begin_layout Plain Layout
24038
24039 \change_inserted -584632292 1615846730
24040 1
24041 \change_unchanged
24042
24043 \end_layout
24044
24045 \end_inset
24046
24047 ] If this is set to 1, the argument will output its content in the corresponding
24048  item in the table of contents.
24049  See AddToToc.
24050 \end_layout
24051
24052 \begin_layout Standard
24053
24054 \change_inserted -584632292 1615846730
24055 By default, the text entered in the \SpecialChar LyX
24056  workarea in the respective layout is
24057  the last (mandatory) argument of a command if the 
24058 \begin_inset Flex Code
24059 status collapsed
24060
24061 \begin_layout Plain Layout
24062
24063 \change_inserted -584632292 1615846730
24064 LatexType
24065 \change_unchanged
24066
24067 \end_layout
24068
24069 \end_inset
24070
24071  is 
24072 \begin_inset Flex Code
24073 status collapsed
24074
24075 \begin_layout Plain Layout
24076
24077 \change_inserted -584632292 1615846730
24078 Command
24079 \change_unchanged
24080
24081 \end_layout
24082
24083 \end_inset
24084
24085 .
24086  However, arguments with the prefix 
24087 \begin_inset Flex Code
24088 status collapsed
24089
24090 \begin_layout Plain Layout
24091
24092 \change_inserted -584632292 1615846730
24093 post:
24094 \change_unchanged
24095
24096 \end_layout
24097
24098 \end_inset
24099
24100  are output after this workarea argument.
24101  Note that post-argument numbering restarts at 1, so the first argument
24102  following the workarea argument is 
24103 \begin_inset Flex Code
24104 status collapsed
24105
24106 \begin_layout Plain Layout
24107
24108 \change_inserted -584632292 1615846730
24109 post:1
24110 \change_unchanged
24111
24112 \end_layout
24113
24114 \end_inset
24115
24116 .
24117  Post-arguments are ignored in any other 
24118 \begin_inset Flex Code
24119 status collapsed
24120
24121 \begin_layout Plain Layout
24122
24123 \change_inserted -584632292 1615846730
24124 LatexType
24125 \change_unchanged
24126
24127 \end_layout
24128
24129 \end_inset
24130
24131  than 
24132 \begin_inset Flex Code
24133 status collapsed
24134
24135 \begin_layout Plain Layout
24136
24137 \change_inserted -584632292 1615846730
24138 Command
24139 \change_unchanged
24140
24141 \end_layout
24142
24143 \end_inset
24144
24145 .
24146 \end_layout
24147
24148 \begin_layout Standard
24149
24150 \change_inserted -584632292 1615846730
24151 Arguments for list 
24152 \begin_inset Flex Code
24153 status collapsed
24154
24155 \begin_layout Plain Layout
24156
24157 \change_inserted -584632292 1615846730
24158
24159 \backslash
24160 item
24161 \change_unchanged
24162
24163 \end_layout
24164
24165 \end_inset
24166
24167 s (as in 
24168 \begin_inset Flex Code
24169 status collapsed
24170
24171 \begin_layout Plain Layout
24172
24173 \change_inserted -584632292 1615846730
24174
24175 \backslash
24176 item[foo]
24177 \change_unchanged
24178
24179 \end_layout
24180
24181 \end_inset
24182
24183 ) have the prefix 
24184 \begin_inset Flex Code
24185 status collapsed
24186
24187 \begin_layout Plain Layout
24188
24189 \change_inserted -584632292 1615846730
24190 item:
24191 \change_unchanged
24192
24193 \end_layout
24194
24195 \end_inset
24196
24197  followed by the number (e.
24198 \begin_inset space \thinspace{}
24199 \end_inset
24200
24201 g.
24202 \begin_inset space \space{}
24203 \end_inset
24204
24205
24206 \begin_inset Flex Code
24207 status collapsed
24208
24209 \begin_layout Plain Layout
24210
24211 \change_inserted -584632292 1615846730
24212 Argument item:1
24213 \change_unchanged
24214
24215 \end_layout
24216
24217 \end_inset
24218
24219 ).
24220 \end_layout
24221
24222 \begin_layout Standard
24223
24224 \change_inserted -584632292 1615846730
24225 Finally, there is a special argument type with the prefix 
24226 \begin_inset Flex Code
24227 status collapsed
24228
24229 \begin_layout Plain Layout
24230
24231 \change_inserted -584632292 1615846730
24232 listpreamble:
24233 \change_unchanged
24234
24235 \end_layout
24236
24237 \end_inset
24238
24239 .
24240  It is not really an argument, but uses the argument interface (thus, the
24241  prefix is also followed by a number, e.
24242 \begin_inset space \thinspace{}
24243 \end_inset
24244
24245 g.
24246  
24247 \begin_inset Flex Code
24248 status collapsed
24249
24250 \begin_layout Plain Layout
24251
24252 \change_inserted -584632292 1615846730
24253 Argument listpreamble:1
24254 \change_unchanged
24255
24256 \end_layout
24257
24258 \end_inset
24259
24260 ).
24261  As the name implies, it is targeted at lists such as 
24262 \family sans
24263 Itemize
24264 \family default
24265
24266 \family sans
24267 Enumerate
24268 \family default
24269
24270 \family sans
24271 Description
24272 \family default
24273 , or 
24274 \family sans
24275 Bibliography
24276 \family default
24277 .
24278  Its content will be output at the list start, before the first 
24279 \begin_inset Flex Code
24280 status collapsed
24281
24282 \begin_layout Plain Layout
24283
24284 \change_inserted -584632292 1615846730
24285
24286 \backslash
24287 item
24288 \change_unchanged
24289
24290 \end_layout
24291
24292 \end_inset
24293
24294 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
24295 ).
24296  This way, users can insert redefinitions (of lengths etc.) to individual
24297  lists.
24298  By default, these arguments do not have a delimiter.
24299 \change_unchanged
24300
24301 \end_layout
24302
24303 \begin_layout Subsection
24304 Counters
24305 \begin_inset CommandInset label
24306 LatexCommand label
24307 name "subsec:Counters"
24308
24309 \end_inset
24310
24311
24312 \end_layout
24313
24314 \begin_layout Standard
24315 It is necessary to define the counters (
24316 \begin_inset Flex Noun
24317 status collapsed
24318
24319 \begin_layout Plain Layout
24320 chapter
24321 \end_layout
24322
24323 \end_inset
24324
24325
24326 \begin_inset Flex Noun
24327 status collapsed
24328
24329 \begin_layout Plain Layout
24330 figure
24331 \end_layout
24332
24333 \end_inset
24334
24335 , \SpecialChar ldots
24336 ) in the text class itself.
24337  The standard counters are defined in the file 
24338 \begin_inset Flex Code
24339 status collapsed
24340
24341 \begin_layout Plain Layout
24342 stdcounters.inc
24343 \end_layout
24344
24345 \end_inset
24346
24347 , so you may have to do no more than add
24348 \end_layout
24349
24350 \begin_layout LyX-Code
24351 Input stdcounters.inc
24352 \end_layout
24353
24354 \begin_layout Standard
24355 to your layout file to get them to work.
24356  But if you want to define custom counters, then you can do so.
24357  The counter declaration must begin with:
24358 \end_layout
24359
24360 \begin_layout LyX-Code
24361 Counter CounterName
24362 \end_layout
24363
24364 \begin_layout Standard
24365 where of course `
24366 \begin_inset Flex Code
24367 status collapsed
24368
24369 \begin_layout Plain Layout
24370 CounterName
24371 \end_layout
24372
24373 \end_inset
24374
24375 ' is replaced by the name of the counter.
24376  And it must end with 
24377 \begin_inset Quotes eld
24378 \end_inset
24379
24380
24381 \begin_inset Flex Code
24382 status collapsed
24383
24384 \begin_layout Plain Layout
24385 End
24386 \end_layout
24387
24388 \end_inset
24389
24390
24391 \begin_inset Quotes erd
24392 \end_inset
24393
24394 .
24395  The following parameters can also be used:
24396 \end_layout
24397
24398 \begin_layout Description
24399 \begin_inset Flex Code
24400 status collapsed
24401
24402 \begin_layout Plain Layout
24403 InitialValue
24404 \end_layout
24405
24406 \end_inset
24407
24408  [
24409 \begin_inset Flex Code
24410 status collapsed
24411
24412 \begin_layout Plain Layout
24413 int=1
24414 \end_layout
24415
24416 \end_inset
24417
24418 ] Sets the initial value for the counter, to which it will be reset whenever
24419  that happens.
24420  Normally, one will want the default, 1.
24421 \end_layout
24422
24423 \begin_layout Description
24424 \begin_inset Flex Code
24425 status collapsed
24426
24427 \begin_layout Plain Layout
24428 LabelString
24429 \end_layout
24430
24431 \end_inset
24432
24433  [
24434 \begin_inset Flex Code
24435 status collapsed
24436
24437 \begin_layout Plain Layout
24438 string
24439 \end_layout
24440
24441 \end_inset
24442
24443 =
24444 \begin_inset Quotes erd
24445 \end_inset
24446
24447
24448 \begin_inset Quotes erd
24449 \end_inset
24450
24451 ] When defined, this string defines how the counter is displayed.
24452  Setting this value sets 
24453 \begin_inset Flex Code
24454 status collapsed
24455
24456 \begin_layout Plain Layout
24457 LabelStringAppendix
24458 \end_layout
24459
24460 \end_inset
24461
24462  to the same value.
24463  The following special constructs can be used in the string:
24464 \end_layout
24465
24466 \begin_deeper
24467 \begin_layout Itemize
24468 \begin_inset Flex Code
24469 status collapsed
24470
24471 \begin_layout Plain Layout
24472
24473 \backslash
24474 thecounter
24475 \end_layout
24476
24477 \end_inset
24478
24479  will be replaced by the expansion of the 
24480 \begin_inset Flex Code
24481 status collapsed
24482
24483 \begin_layout Plain Layout
24484 LabelString
24485 \end_layout
24486
24487 \end_inset
24488
24489  (or 
24490 \begin_inset Flex Code
24491 status collapsed
24492
24493 \begin_layout Plain Layout
24494 LabelStringAppendix
24495 \end_layout
24496
24497 \end_inset
24498
24499 ) of the counter 
24500 \begin_inset Flex Code
24501 status collapsed
24502
24503 \begin_layout Plain Layout
24504 counter
24505 \end_layout
24506
24507 \end_inset
24508
24509 .
24510  
24511 \end_layout
24512
24513 \begin_layout Itemize
24514 counter values can be expressed using \SpecialChar LaTeX
24515 -like macros
24516 \begin_inset Newline newline
24517 \end_inset
24518
24519
24520 \begin_inset Flex Code
24521 status collapsed
24522
24523 \begin_layout Plain Layout
24524
24525 \backslash
24526
24527 \emph on
24528 numbertype
24529 \emph default
24530 {
24531 \emph on
24532 counter
24533 \emph default
24534 }
24535 \end_layout
24536
24537 \end_inset
24538
24539 , where 
24540 \begin_inset Flex Code
24541 status collapsed
24542
24543 \begin_layout Plain Layout
24544
24545 \emph on
24546 numbertype
24547 \end_layout
24548
24549 \end_inset
24550
24551  can be:
24552 \begin_inset Foot
24553 status collapsed
24554
24555 \begin_layout Plain Layout
24556
24557 \family roman
24558 \series medium
24559 \shape up
24560 \size normal
24561 \emph off
24562 \bar no
24563 \noun off
24564 \color none
24565 Actually, the situation is a bit more complicated: any
24566 \family default
24567 \series default
24568 \shape default
24569 \emph default
24570 \bar default
24571  
24572 \size default
24573 \emph on
24574 \noun default
24575 \color inherit
24576 numbertype
24577 \family roman
24578 \series medium
24579 \shape up
24580 \size normal
24581 \emph off
24582 \bar no
24583 \noun off
24584  other than those described below will produce arabic numerals.
24585  It would not be surprising to see this change in the future.
24586 \end_layout
24587
24588 \end_inset
24589
24590  
24591 \begin_inset Flex Code
24592 status collapsed
24593
24594 \begin_layout Plain Layout
24595 arabic
24596 \end_layout
24597
24598 \end_inset
24599
24600 : 1, 2, 3,\SpecialChar ldots
24601
24602 \begin_inset Flex Code
24603 status collapsed
24604
24605 \begin_layout Plain Layout
24606 alph
24607 \end_layout
24608
24609 \end_inset
24610
24611  for lower-case letters: a, b, c, \SpecialChar ldots
24612
24613 \begin_inset Flex Code
24614 status collapsed
24615
24616 \begin_layout Plain Layout
24617 Alph
24618 \end_layout
24619
24620 \end_inset
24621
24622  for upper-case letters: A, B, C, \SpecialChar ldots
24623
24624 \begin_inset Flex Code
24625 status collapsed
24626
24627 \begin_layout Plain Layout
24628 roman
24629 \end_layout
24630
24631 \end_inset
24632
24633  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
24634
24635 \begin_inset Flex Code
24636 status collapsed
24637
24638 \begin_layout Plain Layout
24639 Roman
24640 \end_layout
24641
24642 \end_inset
24643
24644  for upper-case roman numerals: I, II, III\SpecialChar ldots
24645
24646 \begin_inset Flex Code
24647 status collapsed
24648
24649 \begin_layout Plain Layout
24650 hebrew
24651 \end_layout
24652
24653 \end_inset
24654
24655  for hebrew numerals.
24656 \end_layout
24657
24658 \end_deeper
24659 \begin_layout Standard
24660 If LabelString is not defined, a default value is constructed as follows:
24661  if the counter has a 
24662 \change_deleted 731793113 1604355218
24663 master
24664 \change_inserted 731793113 1604355221
24665 parent
24666 \change_unchanged
24667  counter 
24668 \begin_inset Flex Code
24669 status collapsed
24670
24671 \begin_layout Plain Layout
24672
24673 \change_deleted 731793113 1604355223
24674 master
24675 \change_inserted 731793113 1604355226
24676 parent
24677 \change_unchanged
24678
24679 \end_layout
24680
24681 \end_inset
24682
24683  (defined via 
24684 \begin_inset Flex Code
24685 status collapsed
24686
24687 \begin_layout Plain Layout
24688 Within
24689 \end_layout
24690
24691 \end_inset
24692
24693 ), the string
24694 \begin_inset Newline newline
24695 \end_inset
24696
24697
24698 \begin_inset Flex Code
24699 status collapsed
24700
24701 \begin_layout Plain Layout
24702
24703 \backslash
24704 the
24705 \change_inserted 731793113 1604355228
24706 parent
24707 \change_deleted 731793113 1604355230
24708 master
24709 \change_unchanged
24710 .
24711 \backslash
24712 arabic{counter}
24713 \end_layout
24714
24715 \end_inset
24716
24717  is used; otherwise the string 
24718 \begin_inset Flex Code
24719 status collapsed
24720
24721 \begin_layout Plain Layout
24722
24723 \backslash
24724 arabic{counter}
24725 \end_layout
24726
24727 \end_inset
24728
24729  is used.
24730 \end_layout
24731
24732 \begin_layout Description
24733 \begin_inset Flex Code
24734 status collapsed
24735
24736 \begin_layout Plain Layout
24737 LabelStringAppendix
24738 \end_layout
24739
24740 \end_inset
24741
24742  [
24743 \begin_inset Flex Code
24744 status collapsed
24745
24746 \begin_layout Plain Layout
24747 string
24748 \end_layout
24749
24750 \end_inset
24751
24752
24753 \begin_inset Quotes eld
24754 \end_inset
24755
24756
24757 \begin_inset Quotes erd
24758 \end_inset
24759
24760 ] Same as 
24761 \begin_inset Flex Code
24762 status collapsed
24763
24764 \begin_layout Plain Layout
24765 LabelString
24766 \end_layout
24767
24768 \end_inset
24769
24770 , but for use in the Appendix.
24771 \change_inserted -584632292 1607202551
24772
24773 \end_layout
24774
24775 \begin_layout Description
24776
24777 \change_inserted -584632292 1607202682
24778 \begin_inset Flex Code
24779 status open
24780
24781 \begin_layout Plain Layout
24782 LaTeXName
24783 \end_layout
24784
24785 \end_inset
24786
24787  [
24788 \begin_inset Flex Code
24789 status open
24790
24791 \begin_layout Plain Layout
24792
24793 \change_inserted -584632292 1607202576
24794 string
24795 \change_unchanged
24796
24797 \end_layout
24798
24799 \end_inset
24800
24801  = 
24802 \begin_inset Quotes eld
24803 \end_inset
24804
24805
24806 \begin_inset Quotes erd
24807 \end_inset
24808
24809 ] The counter name as used in \SpecialChar LaTeX
24810 .
24811  (
24812 \change_inserted 34634807 1619711355
24813 e
24814 \change_deleted 34634807 1619711355
24815 E
24816 \change_inserted -584632292 1607202682
24817 .g., in \SpecialChar LyX
24818 , there is a counter named `theorem', but it is output to \SpecialChar LaTeX
24819  as `thm'.)
24820 \change_unchanged
24821
24822 \end_layout
24823
24824 \begin_layout Description
24825 \begin_inset Flex Code
24826 status collapsed
24827
24828 \begin_layout Plain Layout
24829 PrettyFormat
24830 \end_layout
24831
24832 \end_inset
24833
24834  [
24835 \begin_inset Flex Code
24836 status collapsed
24837
24838 \begin_layout Plain Layout
24839 string
24840 \end_layout
24841
24842 \end_inset
24843
24844 =
24845 \begin_inset Quotes erd
24846 \end_inset
24847
24848
24849 \begin_inset Quotes erd
24850 \end_inset
24851
24852 ] A format for use with formatted references to this counter.
24853  For example, one might want to have references to section numbers appear
24854  as 
24855 \begin_inset Quotes eld
24856 \end_inset
24857
24858 Section 2.4
24859 \begin_inset Quotes erd
24860 \end_inset
24861
24862 .
24863  The string should contain 
24864 \begin_inset Quotes eld
24865 \end_inset
24866
24867 ##
24868 \begin_inset Quotes erd
24869 \end_inset
24870
24871 .
24872  This will be replaced by the counter number itself.
24873  So, for sections, it would be: Section ##.
24874 \end_layout
24875
24876 \begin_layout Description
24877 \begin_inset Flex Code
24878 status collapsed
24879
24880 \begin_layout Plain Layout
24881 Within
24882 \end_layout
24883
24884 \end_inset
24885
24886  [
24887 \begin_inset Flex Code
24888 status collapsed
24889
24890 \begin_layout Plain Layout
24891 string
24892 \end_layout
24893
24894 \end_inset
24895
24896 =
24897 \begin_inset Quotes erd
24898 \end_inset
24899
24900
24901 \begin_inset Quotes erd
24902 \end_inset
24903
24904 ] If this is set to the name of another counter, the present counter will
24905  be reset every time the other one is increased.
24906  For example, 
24907 \begin_inset Flex Code
24908 status collapsed
24909
24910 \begin_layout Plain Layout
24911 subsection
24912 \end_layout
24913
24914 \end_inset
24915
24916  is numbered inside 
24917 \begin_inset Flex Code
24918 status collapsed
24919
24920 \begin_layout Plain Layout
24921 section
24922 \end_layout
24923
24924 \end_inset
24925
24926 .
24927 \end_layout
24928
24929 \begin_layout Subsection
24930 Font description
24931 \begin_inset CommandInset label
24932 LatexCommand label
24933 name "subsec:Font-description"
24934
24935 \end_inset
24936
24937
24938 \end_layout
24939
24940 \begin_layout Standard
24941 A font description looks like this:
24942 \end_layout
24943
24944 \begin_layout LyX-Code
24945 Font 
24946 \family roman
24947 \emph on
24948 or
24949 \family default
24950 \emph default
24951  LabelFont
24952 \emph on
24953  
24954 \family roman
24955 or
24956 \family default
24957 \emph default
24958  DefaultFont
24959 \end_layout
24960
24961 \begin_layout LyX-Code
24962  ...
24963 \end_layout
24964
24965 \begin_layout LyX-Code
24966 EndFont
24967 \end_layout
24968
24969 \begin_layout Standard
24970 The following commands are available:
24971 \end_layout
24972
24973 \begin_layout Description
24974 \begin_inset Flex Code
24975 status collapsed
24976
24977 \begin_layout Plain Layout
24978 Color
24979 \end_layout
24980
24981 \end_inset
24982
24983  [
24984 \change_deleted -712698321 1607682984
24985
24986 \begin_inset Flex Code
24987 status collapsed
24988
24989 \begin_layout Plain Layout
24990
24991 \emph on
24992 none
24993 \end_layout
24994
24995 \end_inset
24996
24997
24998 \begin_inset Flex Code
24999 status collapsed
25000
25001 \begin_layout Plain Layout
25002 black
25003 \end_layout
25004
25005 \end_inset
25006
25007
25008 \begin_inset Flex Code
25009 status collapsed
25010
25011 \begin_layout Plain Layout
25012 white
25013 \end_layout
25014
25015 \end_inset
25016
25017
25018 \begin_inset Flex Code
25019 status collapsed
25020
25021 \begin_layout Plain Layout
25022 red
25023 \end_layout
25024
25025 \end_inset
25026
25027
25028 \begin_inset Flex Code
25029 status collapsed
25030
25031 \begin_layout Plain Layout
25032 green
25033 \end_layout
25034
25035 \end_inset
25036
25037
25038 \begin_inset Flex Code
25039 status collapsed
25040
25041 \begin_layout Plain Layout
25042 blue
25043 \end_layout
25044
25045 \end_inset
25046
25047
25048 \begin_inset Flex Code
25049 status collapsed
25050
25051 \begin_layout Plain Layout
25052 cyan
25053 \end_layout
25054
25055 \end_inset
25056
25057
25058 \begin_inset Flex Code
25059 status collapsed
25060
25061 \begin_layout Plain Layout
25062 magenta
25063 \end_layout
25064
25065 \end_inset
25066
25067
25068 \begin_inset Flex Code
25069 status collapsed
25070
25071 \begin_layout Plain Layout
25072 yellow
25073 \end_layout
25074
25075 \end_inset
25076
25077
25078 \begin_inset Flex Code
25079 status collapsed
25080
25081 \begin_layout Plain Layout
25082 brown
25083 \end_layout
25084
25085 \end_inset
25086
25087
25088 \begin_inset Flex Code
25089 status collapsed
25090
25091 \begin_layout Plain Layout
25092 darkgray
25093 \end_layout
25094
25095 \end_inset
25096
25097
25098 \begin_inset Flex Code
25099 status collapsed
25100
25101 \begin_layout Plain Layout
25102 gray
25103 \end_layout
25104
25105 \end_inset
25106
25107
25108 \begin_inset Flex Code
25109 status collapsed
25110
25111 \begin_layout Plain Layout
25112 lightgray
25113 \end_layout
25114
25115 \end_inset
25116
25117
25118 \begin_inset Flex Code
25119 status collapsed
25120
25121 \begin_layout Plain Layout
25122 lime
25123 \end_layout
25124
25125 \end_inset
25126
25127
25128 \begin_inset Flex Code
25129 status collapsed
25130
25131 \begin_layout Plain Layout
25132 orange
25133 \end_layout
25134
25135 \end_inset
25136
25137
25138 \begin_inset Flex Code
25139 status collapsed
25140
25141 \begin_layout Plain Layout
25142 olive
25143 \end_layout
25144
25145 \end_inset
25146
25147
25148 \begin_inset Flex Code
25149 status collapsed
25150
25151 \begin_layout Plain Layout
25152 pink
25153 \end_layout
25154
25155 \end_inset
25156
25157
25158 \begin_inset Flex Code
25159 status collapsed
25160
25161 \begin_layout Plain Layout
25162 purple
25163 \end_layout
25164
25165 \end_inset
25166
25167
25168 \begin_inset Flex Code
25169 status collapsed
25170
25171 \begin_layout Plain Layout
25172 teal
25173 \end_layout
25174
25175 \end_inset
25176
25177
25178 \begin_inset Flex Code
25179 status collapsed
25180
25181 \begin_layout Plain Layout
25182 violet
25183 \end_layout
25184
25185 \end_inset
25186
25187
25188 \change_inserted -712698321 1607683139
25189
25190 \begin_inset Flex Code
25191 status collapsed
25192
25193 \begin_layout Plain Layout
25194
25195 \change_inserted -712698321 1607683135
25196 string
25197 \change_unchanged
25198
25199 \end_layout
25200
25201 \end_inset
25202
25203 ] See appendix
25204 \begin_inset space ~
25205 \end_inset
25206
25207
25208 \begin_inset CommandInset ref
25209 LatexCommand ref
25210 reference "chap:Names-of-colors"
25211 plural "false"
25212 caps "false"
25213 noprefix "false"
25214
25215 \end_inset
25216
25217  for 
25218 \change_deleted -712698321 1607683144
25219 ]
25220 \change_inserted -712698321 1607683146
25221 valid arguments.
25222 \change_unchanged
25223
25224 \end_layout
25225
25226 \begin_layout Description
25227 \begin_inset Flex Code
25228 status collapsed
25229
25230 \begin_layout Plain Layout
25231 Family
25232 \end_layout
25233
25234 \end_inset
25235
25236  [
25237 \begin_inset Flex Code
25238 status collapsed
25239
25240 \begin_layout Plain Layout
25241
25242 \emph on
25243 Roman
25244 \end_layout
25245
25246 \end_inset
25247
25248
25249 \begin_inset Flex Code
25250 status collapsed
25251
25252 \begin_layout Plain Layout
25253 Sans
25254 \end_layout
25255
25256 \end_inset
25257
25258
25259 \begin_inset Flex Code
25260 status collapsed
25261
25262 \begin_layout Plain Layout
25263 Typewriter
25264 \end_layout
25265
25266 \end_inset
25267
25268 ]
25269 \end_layout
25270
25271 \begin_layout Description
25272 \begin_inset Flex Code
25273 status collapsed
25274
25275 \begin_layout Plain Layout
25276 Misc
25277 \end_layout
25278
25279 \end_inset
25280
25281  [
25282 \begin_inset Flex Code
25283 status collapsed
25284
25285 \begin_layout Plain Layout
25286 string
25287 \end_layout
25288
25289 \end_inset
25290
25291 ] Valid arguments are: 
25292 \begin_inset Flex Code
25293 status collapsed
25294
25295 \begin_layout Plain Layout
25296 emph
25297 \end_layout
25298
25299 \end_inset
25300
25301
25302 \begin_inset Flex Code
25303 status collapsed
25304
25305 \begin_layout Plain Layout
25306 noun
25307 \end_layout
25308
25309 \end_inset
25310
25311
25312 \begin_inset Flex Code
25313 status collapsed
25314
25315 \begin_layout Plain Layout
25316 strikeout
25317 \end_layout
25318
25319 \end_inset
25320
25321
25322 \begin_inset Flex Code
25323 status collapsed
25324
25325 \begin_layout Plain Layout
25326 underbar
25327 \end_layout
25328
25329 \end_inset
25330
25331
25332 \begin_inset Flex Code
25333 status collapsed
25334
25335 \begin_layout Plain Layout
25336 uuline
25337 \end_layout
25338
25339 \end_inset
25340
25341
25342 \begin_inset Flex Code
25343 status collapsed
25344
25345 \begin_layout Plain Layout
25346 uwave
25347 \end_layout
25348
25349 \end_inset
25350
25351
25352 \begin_inset Flex Code
25353 status collapsed
25354
25355 \begin_layout Plain Layout
25356 no_emph
25357 \end_layout
25358
25359 \end_inset
25360
25361
25362 \begin_inset Flex Code
25363 status collapsed
25364
25365 \begin_layout Plain Layout
25366 no_noun
25367 \end_layout
25368
25369 \end_inset
25370
25371
25372 \begin_inset Flex Code
25373 status collapsed
25374
25375 \begin_layout Plain Layout
25376 no_strikeout
25377 \end_layout
25378
25379 \end_inset
25380
25381
25382 \begin_inset Flex Code
25383 status collapsed
25384
25385 \begin_layout Plain Layout
25386 no_bar
25387 \end_layout
25388
25389 \end_inset
25390
25391
25392 \begin_inset Flex Code
25393 status collapsed
25394
25395 \begin_layout Plain Layout
25396 no_uuline
25397 \end_layout
25398
25399 \end_inset
25400
25401  and 
25402 \begin_inset Flex Code
25403 status collapsed
25404
25405 \begin_layout Plain Layout
25406 no_uwave
25407 \end_layout
25408
25409 \end_inset
25410
25411 .
25412  Each of these turns on or off the corresponding attribute.
25413  For example, 
25414 \begin_inset Flex Code
25415 status collapsed
25416
25417 \begin_layout Plain Layout
25418 emph
25419 \end_layout
25420
25421 \end_inset
25422
25423  turns on emphasis, and 
25424 \begin_inset Flex Code
25425 status collapsed
25426
25427 \begin_layout Plain Layout
25428 no_emph
25429 \end_layout
25430
25431 \end_inset
25432
25433  turns it off.
25434  
25435 \begin_inset Newline newline
25436 \end_inset
25437
25438 If the latter seems puzzling, remember that the font settings for the present
25439  context are generally inherited from the surrounding context.
25440  So 
25441 \begin_inset Flex Code
25442 status collapsed
25443
25444 \begin_layout Plain Layout
25445 no_emph
25446 \end_layout
25447
25448 \end_inset
25449
25450  would turn off the emphasis that was anyway in effect, say, in a theorem
25451  environment.
25452 \end_layout
25453
25454 \begin_layout Description
25455 \begin_inset Flex Code
25456 status collapsed
25457
25458 \begin_layout Plain Layout
25459 Series
25460 \end_layout
25461
25462 \end_inset
25463
25464  [
25465 \begin_inset Flex Code
25466 status collapsed
25467
25468 \begin_layout Plain Layout
25469
25470 \emph on
25471 Medium
25472 \end_layout
25473
25474 \end_inset
25475
25476
25477 \begin_inset Flex Code
25478 status collapsed
25479
25480 \begin_layout Plain Layout
25481 Bold
25482 \end_layout
25483
25484 \end_inset
25485
25486
25487 \end_layout
25488
25489 \begin_layout Description
25490 \begin_inset Flex Code
25491 status collapsed
25492
25493 \begin_layout Plain Layout
25494 Shape
25495 \end_layout
25496
25497 \end_inset
25498
25499  [
25500 \begin_inset Flex Code
25501 status collapsed
25502
25503 \begin_layout Plain Layout
25504
25505 \emph on
25506 Up
25507 \end_layout
25508
25509 \end_inset
25510
25511
25512 \begin_inset Flex Code
25513 status collapsed
25514
25515 \begin_layout Plain Layout
25516 Italic
25517 \end_layout
25518
25519 \end_inset
25520
25521
25522 \begin_inset Flex Code
25523 status collapsed
25524
25525 \begin_layout Plain Layout
25526 SmallCaps
25527 \end_layout
25528
25529 \end_inset
25530
25531
25532 \begin_inset Flex Code
25533 status collapsed
25534
25535 \begin_layout Plain Layout
25536 Slanted
25537 \end_layout
25538
25539 \end_inset
25540
25541
25542 \end_layout
25543
25544 \begin_layout Description
25545 \begin_inset Flex Code
25546 status collapsed
25547
25548 \begin_layout Plain Layout
25549 Size
25550 \end_layout
25551
25552 \end_inset
25553
25554  [
25555 \begin_inset Flex Code
25556 status collapsed
25557
25558 \begin_layout Plain Layout
25559 tiny
25560 \end_layout
25561
25562 \end_inset
25563
25564
25565 \begin_inset Flex Code
25566 status collapsed
25567
25568 \begin_layout Plain Layout
25569 small
25570 \end_layout
25571
25572 \end_inset
25573
25574
25575 \begin_inset Flex Code
25576 status collapsed
25577
25578 \begin_layout Plain Layout
25579
25580 \emph on
25581 normal
25582 \end_layout
25583
25584 \end_inset
25585
25586
25587 \begin_inset Flex Code
25588 status collapsed
25589
25590 \begin_layout Plain Layout
25591 large
25592 \end_layout
25593
25594 \end_inset
25595
25596
25597 \begin_inset Flex Code
25598 status collapsed
25599
25600 \begin_layout Plain Layout
25601 larger
25602 \end_layout
25603
25604 \end_inset
25605
25606
25607 \begin_inset Flex Code
25608 status collapsed
25609
25610 \begin_layout Plain Layout
25611 largest
25612 \end_layout
25613
25614 \end_inset
25615
25616
25617 \begin_inset Flex Code
25618 status collapsed
25619
25620 \begin_layout Plain Layout
25621 huge
25622 \end_layout
25623
25624 \end_inset
25625
25626
25627 \begin_inset Flex Code
25628 status collapsed
25629
25630 \begin_layout Plain Layout
25631 giant
25632 \end_layout
25633
25634 \end_inset
25635
25636 ]
25637 \end_layout
25638
25639 \begin_layout Subsection
25640 \begin_inset CommandInset label
25641 LatexCommand label
25642 name "subsec:Citation-engine-description"
25643
25644 \end_inset
25645
25646 Cite engine description
25647 \end_layout
25648
25649 \begin_layout Standard
25650 The 
25651 \begin_inset Flex Code
25652 status collapsed
25653
25654 \begin_layout Plain Layout
25655 CiteEngine
25656 \end_layout
25657
25658 \end_inset
25659
25660  blocks, as used mainly in cite engine files (see 
25661 \begin_inset CommandInset ref
25662 LatexCommand ref
25663 reference "subsec:Cite-Engine-Files"
25664 plural "false"
25665 caps "false"
25666 noprefix "false"
25667
25668 \end_inset
25669
25670 ), define the citation commands provided by a specific 
25671 \begin_inset Quotes eld
25672 \end_inset
25673
25674 cite engine
25675 \begin_inset Quotes erd
25676 \end_inset
25677
25678 .
25679  A cite engine, in \SpecialChar LyX
25680  terms, is way specific way to format citations, using
25681  numbers, author names and/or years.
25682  Currently, \SpecialChar LyX
25683  supports three such engine types, namely:
25684 \end_layout
25685
25686 \begin_layout Enumerate
25687 \begin_inset Flex Code
25688 status collapsed
25689
25690 \begin_layout Plain Layout
25691 default
25692 \end_layout
25693
25694 \end_inset
25695
25696 : the default Bib\SpecialChar TeX
25697  way to format citations, a simple numeric style (e.
25698 \begin_inset space \thinspace{}
25699 \end_inset
25700
25701 g., 
25702 \begin_inset Quotes eld
25703 \end_inset
25704
25705 [1]
25706 \begin_inset Quotes erd
25707 \end_inset
25708
25709 )
25710 \end_layout
25711
25712 \begin_layout Enumerate
25713 \begin_inset Flex Code
25714 status collapsed
25715
25716 \begin_layout Plain Layout
25717 authoryear
25718 \end_layout
25719
25720 \end_inset
25721
25722 : Harvard-styled citations using author names and publication year (e.
25723 \begin_inset space \thinspace{}
25724 \end_inset
25725
25726 g., 
25727 \begin_inset Quotes eld
25728 \end_inset
25729
25730 Smith and Miller (2017b)
25731 \begin_inset Quotes erd
25732 \end_inset
25733
25734 )
25735 \end_layout
25736
25737 \begin_layout Enumerate
25738 \begin_inset Flex Code
25739 status collapsed
25740
25741 \begin_layout Plain Layout
25742 numerical
25743 \end_layout
25744
25745 \end_inset
25746
25747 : extended numerical citations that also allow for author or title next
25748  to the number (e.
25749 \begin_inset space \thinspace{}
25750 \end_inset
25751
25752 g., 
25753 \begin_inset Quotes eld
25754 \end_inset
25755
25756 Smith and Miller [1]
25757 \begin_inset Quotes erd
25758 \end_inset
25759
25760 )
25761 \end_layout
25762
25763 \begin_layout Standard
25764 \begin_inset Flex Code
25765 status collapsed
25766
25767 \begin_layout Plain Layout
25768 CiteEngine
25769 \end_layout
25770
25771 \end_inset
25772
25773  blocks look like this:
25774 \end_layout
25775
25776 \begin_layout LyX-Code
25777 CiteEngine default
25778 \end_layout
25779
25780 \begin_layout LyX-Code
25781  cite
25782 \end_layout
25783
25784 \begin_layout LyX-Code
25785  Citep*[][]
25786 \end_layout
25787
25788 \begin_layout LyX-Code
25789  citeyearpar[][]=parencite*
25790 \end_layout
25791
25792 \begin_layout LyX-Code
25793  ...
25794 \end_layout
25795
25796 \begin_layout LyX-Code
25797 End
25798 \end_layout
25799
25800 \begin_layout Standard
25801 The tag following 
25802 \begin_inset Flex Code
25803 status collapsed
25804
25805 \begin_layout Plain Layout
25806 CiteEngine
25807 \end_layout
25808
25809 \end_inset
25810
25811  denotes the engine.
25812  The individual lines respectively define a cite command or cite command
25813  paradigm supported by this engine.
25814  The line can be as simple as a cite command that is used both to name the
25815  respective \SpecialChar LyX
25816  command and the \SpecialChar LaTeX
25817  output or more complex in order to differentiate
25818  things.
25819  The full syntax is:
25820 \end_layout
25821
25822 \begin_layout LyX-Code
25823 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
25824 \end_layout
25825
25826 \begin_layout Itemize
25827 \begin_inset Flex Code
25828 status collapsed
25829
25830 \begin_layout Plain Layout
25831 LyXName
25832 \end_layout
25833
25834 \end_inset
25835
25836 : The name as used in the 
25837 \begin_inset Flex Code
25838 status collapsed
25839
25840 \begin_layout Plain Layout
25841 *.lyx
25842 \end_layout
25843
25844 \end_inset
25845
25846  file.
25847 \end_layout
25848
25849 \begin_deeper
25850 \begin_layout Standard
25851 For portability reasons, we try to use the same name for same-formatted
25852  commands in different cite packages (thus many names stem from natbib,
25853  and thus we need to differentiate a 
25854 \begin_inset Flex Code
25855 status collapsed
25856
25857 \begin_layout Plain Layout
25858 latexcmd
25859 \end_layout
25860
25861 \end_inset
25862
25863  sometimes, if the \SpecialChar LaTeX
25864  command names differ).
25865 \end_layout
25866
25867 \end_deeper
25868 \begin_layout Itemize
25869 \begin_inset Flex Code
25870 status collapsed
25871
25872 \begin_layout Plain Layout
25873 alias
25874 \end_layout
25875
25876 \end_inset
25877
25878 : a (comma-separated) list of commands that fall back to the given 
25879 \begin_inset Flex Code
25880 status collapsed
25881
25882 \begin_layout Plain Layout
25883 LyXName
25884 \end_layout
25885
25886 \end_inset
25887
25888  in the current engine.
25889  This eases the switch of citation packages and engines.
25890  The 
25891 \begin_inset Flex Code
25892 status collapsed
25893
25894 \begin_layout Plain Layout
25895 alias
25896 \end_layout
25897
25898 \end_inset
25899
25900  can be compared to 
25901 \begin_inset Flex Code
25902 status collapsed
25903
25904 \begin_layout Plain Layout
25905 ObsoletedBy
25906 \end_layout
25907
25908 \end_inset
25909
25910  in layout definitions.
25911 \end_layout
25912
25913 \begin_layout Itemize
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 : The actual \SpecialChar LaTeX
25924  command that is output.
25925  
25926 \end_layout
25927
25928 \begin_layout Standard
25929 \begin_inset Flex Code
25930 status collapsed
25931
25932 \begin_layout Plain Layout
25933 Alias
25934 \end_layout
25935
25936 \end_inset
25937
25938  and 
25939 \begin_inset Flex Code
25940 status collapsed
25941
25942 \begin_layout Plain Layout
25943 latexcmd
25944 \end_layout
25945
25946 \end_inset
25947
25948  are optional.
25949  If no 
25950 \begin_inset Flex Code
25951 status collapsed
25952
25953 \begin_layout Plain Layout
25954 latexcmd
25955 \end_layout
25956
25957 \end_inset
25958
25959  is given, the 
25960 \begin_inset Flex Code
25961 status collapsed
25962
25963 \begin_layout Plain Layout
25964 LyXName
25965 \end_layout
25966
25967 \end_inset
25968
25969  will be output to \SpecialChar LaTeX
25970 .
25971 \end_layout
25972
25973 \begin_layout Standard
25974 Note further:
25975 \end_layout
25976
25977 \begin_layout Itemize
25978 Capitalization indicates that the command also has a capitalized form (
25979 \begin_inset Flex Code
25980 status collapsed
25981
25982 \begin_layout Plain Layout
25983
25984 \backslash
25985 Latexcmd
25986 \end_layout
25987
25988 \end_inset
25989
25990  vs.
25991  
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996
25997 \backslash
25998 latexcmd
25999 \end_layout
26000
26001 \end_inset
26002
26003 ).
26004  These usually enforce up-casing of name prefixes (
26005 \emph on
26006 von Goethe
26007 \emph default
26008  
26009 \begin_inset Formula $\Rightarrow$
26010 \end_inset
26011
26012  
26013 \emph on
26014 Von Goethe
26015 \emph default
26016 ).
26017 \end_layout
26018
26019 \begin_layout Itemize
26020 Brackets 
26021 \begin_inset Flex Code
26022 status collapsed
26023
26024 \begin_layout Plain Layout
26025 []
26026 \end_layout
26027
26028 \end_inset
26029
26030  indicate the number of optional arguments (there can be 0–2).
26031 \end_layout
26032
26033 \begin_layout Itemize
26034 A star 
26035 \begin_inset Flex Code
26036 status collapsed
26037
26038 \begin_layout Plain Layout
26039 *
26040 \end_layout
26041
26042 \end_inset
26043
26044  indicates there is a starred version of the command (
26045 \begin_inset Flex Code
26046 status collapsed
26047
26048 \begin_layout Plain Layout
26049
26050 \backslash
26051 latexcmd*
26052 \end_layout
26053
26054 \end_inset
26055
26056  vs.
26057  
26058 \begin_inset Flex Code
26059 status collapsed
26060
26061 \begin_layout Plain Layout
26062
26063 \backslash
26064 latexcmd
26065 \end_layout
26066
26067 \end_inset
26068
26069 ).
26070  
26071 \end_layout
26072
26073 \begin_deeper
26074 \begin_layout Standard
26075 By default, the starred version means: Output all authors even if it should
26076  be shortened with 
26077 \begin_inset Quotes eld
26078 \end_inset
26079
26080 et al.
26081 \begin_inset Quotes erd
26082 \end_inset
26083
26084  due to the 
26085 \begin_inset Flex Code
26086 status collapsed
26087
26088 \begin_layout Plain Layout
26089 MaxCiteNames
26090 \end_layout
26091
26092 \end_inset
26093
26094  threshold.
26095 \end_layout
26096
26097 \begin_layout Standard
26098 If the star has a different meaning for a given command, it can be specified
26099  in angle brackets: 
26100 \begin_inset Flex Code
26101 status collapsed
26102
26103 \begin_layout Plain Layout
26104 <!_stardesc!_stardesctooltip>
26105 \end_layout
26106
26107 \end_inset
26108
26109 .
26110  Maximal two translatable macro keywords, marked by the prefix 
26111 \begin_inset Flex Code
26112 status collapsed
26113
26114 \begin_layout Plain Layout
26115 !_
26116 \end_layout
26117
26118 \end_inset
26119
26120 , can be given.
26121  The first points to the string that replaces the 
26122 \begin_inset Quotes eld
26123 \end_inset
26124
26125 Full aut&hor list
26126 \begin_inset Quotes erd
26127 \end_inset
26128
26129  checkbox label in the citation dialog, the second one to an optional tool
26130  tip for this checkbox.
26131  
26132 \end_layout
26133
26134 \begin_layout Standard
26135 Note that these two macros have to be defined in a 
26136 \begin_inset Flex Code
26137 status collapsed
26138
26139 \begin_layout Plain Layout
26140 CiteFormat
26141 \end_layout
26142
26143 \end_inset
26144
26145  (see next section), dropping the 
26146 \begin_inset Flex Code
26147 status collapsed
26148
26149 \begin_layout Plain Layout
26150 !
26151 \end_layout
26152
26153 \end_inset
26154
26155  from the prefix, like this: 
26156 \end_layout
26157
26158 \begin_layout LyX-Code
26159 _stardesc Sta&rred command label
26160 \end_layout
26161
26162 \begin_layout LyX-Code
26163 _stardesctooltip Tooltip for the starred command checkbox.
26164 \end_layout
26165
26166 \end_deeper
26167 \begin_layout Itemize
26168 A dollar sign 
26169 \begin_inset Flex Code
26170 status collapsed
26171
26172 \begin_layout Plain Layout
26173 $
26174 \end_layout
26175
26176 \end_inset
26177
26178  indicates that this command features 
26179 \begin_inset Quotes eld
26180 \end_inset
26181
26182 qualified citation lists
26183 \begin_inset Quotes erd
26184 \end_inset
26185
26186 .
26187  This is a 
26188 \family sans
26189 Biblatex
26190 \family default
26191 -specific feature for multi-reference citations where an individual pre-
26192  and postnote can be given to each reference in the list.
26193  Please refer to the 
26194 \family sans
26195 Biblatex
26196 \family default
26197  manual for details.
26198 \change_inserted -712698321 1526898670
26199
26200 \end_layout
26201
26202 \begin_layout Standard
26203
26204 \change_inserted -712698321 1526899524
26205 If you want to add a cite command to a cite engine (e.
26206 \begin_inset space \thinspace{}
26207 \end_inset
26208
26209 g., add a specific command provided by a class), you can use 
26210 \begin_inset Flex Code
26211 status collapsed
26212
26213 \begin_layout Plain Layout
26214
26215 \change_inserted -712698321 1526898768
26216 AddToCiteEngine <engine type> \SpecialChar ldots
26217  End
26218 \change_unchanged
26219
26220 \end_layout
26221
26222 \end_inset
26223
26224 .
26225  Note that only cite commands that do not exist yet are added.
26226 \change_unchanged
26227
26228 \end_layout
26229
26230 \begin_layout Subsection
26231 \begin_inset CommandInset label
26232 LatexCommand label
26233 name "subsec:Citation-format-description"
26234
26235 \end_inset
26236
26237 Cite format description
26238 \end_layout
26239
26240 \begin_layout Standard
26241 The 
26242 \begin_inset Flex Code
26243 status collapsed
26244
26245 \begin_layout Plain Layout
26246 CiteFormat
26247 \end_layout
26248
26249 \end_inset
26250
26251  blocks are used to describe how bibliographic information should be displayed,
26252  both within \SpecialChar LyX
26253  itself (in the citation dialog and in tooltips, for example)
26254  and in XHTML output.
26255  Such a block might look like this:
26256 \end_layout
26257
26258 \begin_layout LyX-Code
26259 CiteFormat
26260 \end_layout
26261
26262 \begin_layout LyX-Code
26263  article ...
26264 \end_layout
26265
26266 \begin_layout LyX-Code
26267  book ...
26268 \end_layout
26269
26270 \begin_layout LyX-Code
26271 End
26272 \end_layout
26273
26274 \begin_layout Standard
26275 or
26276 \end_layout
26277
26278 \begin_layout LyX-Code
26279 CiteFormat
26280 \end_layout
26281
26282 \begin_layout LyX-Code
26283  cite ...
26284 \end_layout
26285
26286 \begin_layout LyX-Code
26287  citet*[][] ...
26288 \end_layout
26289
26290 \begin_layout LyX-Code
26291 End
26292 \end_layout
26293
26294 \begin_layout Standard
26295 In the first case, the individual lines define how the bibliographic information
26296  associated with an article or book, respectively, is to be displayed, and
26297  such a definition can be given for any 
26298 \begin_inset Quotes els
26299 \end_inset
26300
26301 entry type
26302 \begin_inset Quotes ers
26303 \end_inset
26304
26305  that might be present in a Bib\SpecialChar TeX
26306  file.
26307  \SpecialChar LyX
26308  defines a default format in the source code that will be used if no specific
26309  definition has been given.
26310  \SpecialChar LyX
26311  predefines several formats in the file 
26312 \begin_inset Flex Code
26313 status collapsed
26314
26315 \begin_layout Plain Layout
26316 stdciteformats.inc
26317 \end_layout
26318
26319 \end_inset
26320
26321 , which is included in most of \SpecialChar LyX
26322 's document classes.
26323 \end_layout
26324
26325 \begin_layout Standard
26326 In the second case, the lines define how a specific citation command (in
26327  the example 
26328 \begin_inset Flex Code
26329 status collapsed
26330
26331 \begin_layout Plain Layout
26332
26333 \backslash
26334 cite
26335 \end_layout
26336
26337 \end_inset
26338
26339
26340 \begin_inset Flex Code
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344
26345 \backslash
26346 citet
26347 \end_layout
26348
26349 \end_inset
26350
26351 ) is to be displayed on the citation inset label, in the citation dialog,
26352  menu or XHTML output.
26353  \SpecialChar LyX
26354  defines such formats for the citation style variants it supports via 
26355 \family sans
26356 Document\SpecialChar menuseparator
26357 Setting\SpecialChar menuseparator
26358 Bibliography\SpecialChar ldots
26359
26360 \family default
26361  in specific 
26362 \begin_inset Flex Code
26363 status collapsed
26364
26365 \begin_layout Plain Layout
26366 *.citeengine
26367 \end_layout
26368
26369 \end_inset
26370
26371  files that are shipped with \SpecialChar LyX
26372  (see 
26373 \begin_inset CommandInset ref
26374 LatexCommand ref
26375 reference "subsec:Cite-Engine-Files"
26376 plural "false"
26377 caps "false"
26378 noprefix "false"
26379
26380 \end_inset
26381
26382 ).
26383 \end_layout
26384
26385 \begin_layout Standard
26386 The definitions use a simple language that allows Bib\SpecialChar TeX
26387  keys to be replaced
26388  with their values.
26389  Keys should be enclosed in 
26390 \begin_inset Flex Code
26391 status collapsed
26392
26393 \begin_layout Plain Layout
26394 %
26395 \end_layout
26396
26397 \end_inset
26398
26399  signs, e.g.: 
26400 \begin_inset Flex Code
26401 status collapsed
26402
26403 \begin_layout Plain Layout
26404 %author%
26405 \end_layout
26406
26407 \end_inset
26408
26409 .
26410  So a simple definition might look like this:
26411 \end_layout
26412
26413 \begin_layout LyX-Code
26414 misc %author%, 
26415 \begin_inset Quotes eld
26416 \end_inset
26417
26418 %title%
26419 \begin_inset Quotes erd
26420 \end_inset
26421
26422 .
26423 \end_layout
26424
26425 \begin_layout Standard
26426 This would print the author, followed by a comma, followed by the title,
26427  in quotes, followed by a period.
26428 \end_layout
26429
26430 \begin_layout Standard
26431 Of course, sometimes you may want to print a key only if it exists.
26432  This can be done by using a conditional construction, such as: 
26433 \begin_inset Flex Code
26434 status collapsed
26435
26436 \begin_layout Plain Layout
26437 {%volume%[[vol.
26438 \begin_inset space ~
26439 \end_inset
26440
26441 %volume%]]}
26442 \end_layout
26443
26444 \end_inset
26445
26446 .
26447  This says: If the 
26448 \begin_inset Flex Code
26449 status collapsed
26450
26451 \begin_layout Plain Layout
26452 volume
26453 \end_layout
26454
26455 \end_inset
26456
26457  key exists, then print 
26458 \begin_inset Quotes eld
26459 \end_inset
26460
26461 vol.
26462 \begin_inset space ~
26463 \end_inset
26464
26465
26466 \begin_inset Quotes erd
26467 \end_inset
26468
26469  followed by the volume key.
26470  It is also possible to have an else clause in the conditional, such as:
26471 \begin_inset Newline newline
26472 \end_inset
26473
26474
26475 \begin_inset Flex Code
26476 status collapsed
26477
26478 \begin_layout Plain Layout
26479 {%author%[[%author%]][[%editor%, ed.]]}
26480 \end_layout
26481
26482 \end_inset
26483
26484 .
26485 \begin_inset Newline newline
26486 \end_inset
26487
26488 Here, the 
26489 \begin_inset Flex Code
26490 status collapsed
26491
26492 \begin_layout Plain Layout
26493 author
26494 \end_layout
26495
26496 \end_inset
26497
26498  key is printed if it exists; otherwise, the editor key is printed, followed
26499  by 
26500 \begin_inset Quotes eld
26501 \end_inset
26502
26503 ,
26504 \begin_inset space ~
26505 \end_inset
26506
26507 ed.
26508 \begin_inset Quotes erd
26509 \end_inset
26510
26511  Note that the key is again enclosed in 
26512 \begin_inset Flex Code
26513 status collapsed
26514
26515 \begin_layout Plain Layout
26516 %
26517 \end_layout
26518
26519 \end_inset
26520
26521  signs; the entire conditional is enclosed in braces; and the if and else
26522  clauses are enclosed in double brackets, 
26523 \begin_inset Quotes eld
26524 \end_inset
26525
26526
26527 \begin_inset Flex Code
26528 status collapsed
26529
26530 \begin_layout Plain Layout
26531 [[
26532 \end_layout
26533
26534 \end_inset
26535
26536
26537 \begin_inset Quotes eld
26538 \end_inset
26539
26540  and 
26541 \begin_inset Quotes eld
26542 \end_inset
26543
26544
26545 \begin_inset Flex Code
26546 status collapsed
26547
26548 \begin_layout Plain Layout
26549 ]]
26550 \end_layout
26551
26552 \end_inset
26553
26554
26555 \begin_inset Quotes erd
26556 \end_inset
26557
26558 .
26559  There must be no space between any of these.
26560 \end_layout
26561
26562 \begin_layout Standard
26563 Next to the entry keys, there are some special keys that can be used for
26564  these conditionals:
26565 \end_layout
26566
26567 \begin_layout Itemize
26568 \begin_inset Flex Code
26569 status collapsed
26570
26571 \begin_layout Plain Layout
26572 {%dialog%[[true]][[false]]}
26573 \end_layout
26574
26575 \end_inset
26576
26577 : process the 
26578 \begin_inset Quotes eld
26579 \end_inset
26580
26581 true
26582 \begin_inset Quotes erd
26583 \end_inset
26584
26585  part for dialogs and menus, the 
26586 \begin_inset Quotes eld
26587 \end_inset
26588
26589 false
26590 \begin_inset Quotes erd
26591 \end_inset
26592
26593  part for other contexts (workarea, export)
26594 \end_layout
26595
26596 \begin_layout Itemize
26597 \begin_inset Flex Code
26598 status collapsed
26599
26600 \begin_layout Plain Layout
26601 {%export%[[true]][[false]]}
26602 \end_layout
26603
26604 \end_inset
26605
26606 : process the 
26607 \begin_inset Quotes eld
26608 \end_inset
26609
26610 true
26611 \begin_inset Quotes erd
26612 \end_inset
26613
26614  part for export and menus, the 
26615 \begin_inset Quotes eld
26616 \end_inset
26617
26618 false
26619 \begin_inset Quotes erd
26620 \end_inset
26621
26622  part for other contexts (workarea, dialog)
26623 \end_layout
26624
26625 \begin_layout Itemize
26626 \begin_inset Flex Code
26627 status collapsed
26628
26629 \begin_layout Plain Layout
26630 {%next%[[true]]}
26631 \end_layout
26632
26633 \end_inset
26634
26635 : process the 
26636 \begin_inset Quotes eld
26637 \end_inset
26638
26639 true
26640 \begin_inset Quotes erd
26641 \end_inset
26642
26643  part if another item follows (e.
26644 \begin_inset space \thinspace{}
26645 \end_inset
26646
26647 g., in a citation with multiple keys)
26648 \end_layout
26649
26650 \begin_layout Itemize
26651 \begin_inset Flex Code
26652 status collapsed
26653
26654 \begin_layout Plain Layout
26655 {%second%[[true]][[false]]}
26656 \end_layout
26657
26658 \end_inset
26659
26660 : process the 
26661 \begin_inset Quotes eld
26662 \end_inset
26663
26664 true
26665 \begin_inset Quotes erd
26666 \end_inset
26667
26668  if this is the second of multiple items, else the 
26669 \begin_inset Quotes eld
26670 \end_inset
26671
26672 false
26673 \begin_inset Quotes erd
26674 \end_inset
26675
26676  part
26677 \end_layout
26678
26679 \begin_layout Itemize
26680 \begin_inset Flex Code
26681 status collapsed
26682
26683 \begin_layout Plain Layout
26684 {%ifstar%[[true]][[false]]}
26685 \end_layout
26686
26687 \end_inset
26688
26689 : process the 
26690 \begin_inset Quotes eld
26691 \end_inset
26692
26693 true
26694 \begin_inset Quotes erd
26695 \end_inset
26696
26697  part for starred citation commands (such as 
26698 \begin_inset Flex Code
26699 status collapsed
26700
26701 \begin_layout Plain Layout
26702
26703 \backslash
26704 cite*
26705 \end_layout
26706
26707 \end_inset
26708
26709 ), the false part for unstarred
26710 \end_layout
26711
26712 \begin_layout Itemize
26713 \begin_inset Flex Code
26714 status collapsed
26715
26716 \begin_layout Plain Layout
26717 {%ifentrytype:<type>%[[true]][[false]]}
26718 \end_layout
26719
26720 \end_inset
26721
26722 : process the 
26723 \begin_inset Quotes eld
26724 \end_inset
26725
26726 true
26727 \begin_inset Quotes erd
26728 \end_inset
26729
26730  if the current entry type matches 
26731 \begin_inset Flex Code
26732 status collapsed
26733
26734 \begin_layout Plain Layout
26735 <type>
26736 \end_layout
26737
26738 \end_inset
26739
26740 , else the false part (e.g., in a citation definition: 
26741 \begin_inset Flex Code
26742 status collapsed
26743
26744 \begin_layout Plain Layout
26745 {%ifentrytype:book%[[this is a book]][[this is no book]]}
26746 \end_layout
26747
26748 \end_inset
26749
26750 )
26751 \end_layout
26752
26753 \begin_layout Itemize
26754 \begin_inset Flex Code
26755 status collapsed
26756
26757 \begin_layout Plain Layout
26758 {%ifmultiple:<authortype>%[[true]][[false]]}
26759 \end_layout
26760
26761 \end_inset
26762
26763 : process the 
26764 \begin_inset Quotes eld
26765 \end_inset
26766
26767 true
26768 \begin_inset Quotes erd
26769 \end_inset
26770
26771  if the current author type (author, editor etc.) has multiple authors, else
26772  the false part (e.g., in a bibliography definition: 
26773 \begin_inset Flex Code
26774 status collapsed
26775
26776 \begin_layout Plain Layout
26777 {%ifmultiple:editor%[[eds.]][[ed.]]}
26778 \end_layout
26779
26780 \end_inset
26781
26782 )
26783 \end_layout
26784
26785 \begin_layout Itemize
26786 \begin_inset Flex Code
26787 status collapsed
26788
26789 \begin_layout Plain Layout
26790 {%ifqualified%[[true]][[false]]}
26791 \end_layout
26792
26793 \end_inset
26794
26795 : process the 
26796 \begin_inset Quotes eld
26797 \end_inset
26798
26799 true
26800 \begin_inset Quotes erd
26801 \end_inset
26802
26803  part if the current citation is a qualified citation list (a specific 
26804 \family sans
26805 Biblatex
26806 \family default
26807  format for multi-reference citations), the false part if this is not the
26808  case.
26809 \end_layout
26810
26811 \begin_layout Standard
26812 We said that 
26813 \begin_inset Flex Code
26814 status collapsed
26815
26816 \begin_layout Plain Layout
26817 %author%
26818 \end_layout
26819
26820 \end_inset
26821
26822  prints the author key as it is recorded in the bibliography file.
26823  This might not be what you want, since it will result in a string such
26824  as 
26825 \begin_inset Quotes eld
26826 \end_inset
26827
26828 Miller, Peter and Smith, Mary and White, Jane
26829 \begin_inset Quotes erd
26830 \end_inset
26831
26832  (since 
26833 \begin_inset Quotes eld
26834 \end_inset
26835
26836 and
26837 \begin_inset Quotes erd
26838 \end_inset
26839
26840  is used by Bib\SpecialChar TeX
26841  to delimit authors).
26842  \SpecialChar LyX
26843  therefore provides some methods to get properly formatted name lists (which
26844  will also get translated).
26845  The following keys are provided:
26846 \end_layout
26847
26848 \begin_layout Enumerate
26849 For name lists with pre- and surname, suitable for the main authors/editors
26850  of a bibliography item.
26851  The 
26852 \begin_inset Flex Code
26853 status collapsed
26854
26855 \begin_layout Plain Layout
26856 <nametype>
26857 \end_layout
26858
26859 \end_inset
26860
26861  part denotes the kind of list that is requested (e.g.
26862  
26863 \begin_inset Flex Code
26864 status collapsed
26865
26866 \begin_layout Plain Layout
26867 <nametype:author>
26868 \end_layout
26869
26870 \end_inset
26871
26872 ):
26873 \end_layout
26874
26875 \begin_deeper
26876 \begin_layout Itemize
26877 \begin_inset Flex Code
26878 status collapsed
26879
26880 \begin_layout Plain Layout
26881 %abbrvnames:<nametype>%
26882 \end_layout
26883
26884 \end_inset
26885
26886 : Provides a name list which is abbreviated (with 
26887 \begin_inset Quotes eld
26888 \end_inset
26889
26890 et al.
26891 \begin_inset Quotes erd
26892 \end_inset
26893
26894 ) when 
26895 \begin_inset Flex Code
26896 status collapsed
26897
26898 \begin_layout Plain Layout
26899 MaxCiteNames
26900 \end_layout
26901
26902 \end_inset
26903
26904  is reached.
26905 \end_layout
26906
26907 \begin_layout Itemize
26908 \begin_inset Flex Code
26909 status collapsed
26910
26911 \begin_layout Plain Layout
26912 %fullnames:<nametype>%
26913 \end_layout
26914
26915 \end_inset
26916
26917 : Provides a full name list (never abbreviated with 
26918 \begin_inset Quotes eld
26919 \end_inset
26920
26921 et al.
26922 \begin_inset Quotes erd
26923 \end_inset
26924
26925 ).
26926 \end_layout
26927
26928 \begin_layout Itemize
26929 \begin_inset Flex Code
26930 status collapsed
26931
26932 \begin_layout Plain Layout
26933 %forceabbrvnames:<nametype>%
26934 \end_layout
26935
26936 \end_inset
26937
26938 : Provides a name list which is always abbreviated (with 
26939 \begin_inset Quotes eld
26940 \end_inset
26941
26942 et al.
26943 \begin_inset Quotes erd
26944 \end_inset
26945
26946 ) irrespective of 
26947 \begin_inset Flex Code
26948 status collapsed
26949
26950 \begin_layout Plain Layout
26951 MaxCiteNames
26952 \end_layout
26953
26954 \end_inset
26955
26956 .
26957 \end_layout
26958
26959 \end_deeper
26960 \begin_layout Enumerate
26961 Alternative name lists with pre- and surname, if the order of pre- and surname
26962  inside the bibliography item differs (as in: 
26963 \begin_inset Quotes eld
26964 \end_inset
26965
26966 Miller, John: Some text, in: Mary Smith, ed.: A volume
26967 \begin_inset Quotes erd
26968 \end_inset
26969
26970 ):
26971 \end_layout
26972
26973 \begin_deeper
26974 \begin_layout Itemize
26975 \begin_inset Flex Code
26976 status collapsed
26977
26978 \begin_layout Plain Layout
26979 %abbrvbynames:<nametype>%
26980 \end_layout
26981
26982 \end_inset
26983
26984 : Provides a name list which is abbreviated (with 
26985 \begin_inset Quotes eld
26986 \end_inset
26987
26988 et al.
26989 \begin_inset Quotes erd
26990 \end_inset
26991
26992 ) when 
26993 \begin_inset Flex Code
26994 status collapsed
26995
26996 \begin_layout Plain Layout
26997 MaxCiteNames
26998 \end_layout
26999
27000 \end_inset
27001
27002  is reached.
27003 \end_layout
27004
27005 \begin_layout Itemize
27006 \begin_inset Flex Code
27007 status collapsed
27008
27009 \begin_layout Plain Layout
27010 %fullbynames:<nametype>%
27011 \end_layout
27012
27013 \end_inset
27014
27015 : Provides a full name list (never abbreviated with 
27016 \begin_inset Quotes eld
27017 \end_inset
27018
27019 et al.
27020 \begin_inset Quotes erd
27021 \end_inset
27022
27023 ).
27024 \end_layout
27025
27026 \begin_layout Itemize
27027 \begin_inset Flex Code
27028 status collapsed
27029
27030 \begin_layout Plain Layout
27031 %forceabbrvbynames:<nametype>%
27032 \end_layout
27033
27034 \end_inset
27035
27036 : Provides a name list which is always abbreviated (with 
27037 \begin_inset Quotes eld
27038 \end_inset
27039
27040 et al.
27041 \begin_inset Quotes erd
27042 \end_inset
27043
27044 ) irrespective of 
27045 \begin_inset Flex Code
27046 status collapsed
27047
27048 \begin_layout Plain Layout
27049 MaxCiteNames
27050 \end_layout
27051
27052 \end_inset
27053
27054 .
27055 \end_layout
27056
27057 \end_deeper
27058 \begin_layout Enumerate
27059 And finally name lists which consist of family names only, as used in author-yea
27060 r citation labels.
27061  These do not take a 
27062 \begin_inset Flex Code
27063 status collapsed
27064
27065 \begin_layout Plain Layout
27066 <nametype>
27067 \end_layout
27068
27069 \end_inset
27070
27071  part, but always return either an author list or, if this does not exist,
27072  an editor list (as common in author-year labels):
27073 \end_layout
27074
27075 \begin_deeper
27076 \begin_layout Itemize
27077 \begin_inset Flex Code
27078 status collapsed
27079
27080 \begin_layout Plain Layout
27081 %abbrvciteauthor%
27082 \end_layout
27083
27084 \end_inset
27085
27086 : Provides a name list which is abbreviated (with 
27087 \begin_inset Quotes eld
27088 \end_inset
27089
27090 et al.
27091 \begin_inset Quotes erd
27092 \end_inset
27093
27094 ) when 
27095 \begin_inset Flex Code
27096 status collapsed
27097
27098 \begin_layout Plain Layout
27099 MaxCiteNames
27100 \end_layout
27101
27102 \end_inset
27103
27104  is reached.
27105 \end_layout
27106
27107 \begin_layout Itemize
27108 \begin_inset Flex Code
27109 status collapsed
27110
27111 \begin_layout Plain Layout
27112 %fullciteauthor%
27113 \end_layout
27114
27115 \end_inset
27116
27117 : Provides a full name list (never abbreviated with 
27118 \begin_inset Quotes eld
27119 \end_inset
27120
27121 et al.
27122 \begin_inset Quotes erd
27123 \end_inset
27124
27125 ).
27126 \end_layout
27127
27128 \begin_layout Itemize
27129 \begin_inset Flex Code
27130 status collapsed
27131
27132 \begin_layout Plain Layout
27133 %forceabbrvciteauthor%
27134 \end_layout
27135
27136 \end_inset
27137
27138 : Provides a name list which is always abbreviated (with 
27139 \begin_inset Quotes eld
27140 \end_inset
27141
27142 et al.
27143 \begin_inset Quotes erd
27144 \end_inset
27145
27146 ) irrespective of 
27147 \begin_inset Flex Code
27148 status collapsed
27149
27150 \begin_layout Plain Layout
27151 MaxCiteNames
27152 \end_layout
27153
27154 \end_inset
27155
27156 .
27157 \end_layout
27158
27159 \end_deeper
27160 \begin_layout Standard
27161 The order of pre- and surname in the former two lists can be adjusted by
27162  these macros:
27163 \end_layout
27164
27165 \begin_layout Itemize
27166 \begin_inset Flex Code
27167 status collapsed
27168
27169 \begin_layout Plain Layout
27170 !firstnameform %surname%, %prename%
27171 \end_layout
27172
27173 \end_inset
27174
27175  (first author in lists of type 1)
27176 \end_layout
27177
27178 \begin_layout Itemize
27179 \begin_inset Flex Code
27180 status collapsed
27181
27182 \begin_layout Plain Layout
27183 !othernameform %surname%, %prename%
27184 \end_layout
27185
27186 \end_inset
27187
27188  (other authors in lists of type 1)
27189 \end_layout
27190
27191 \begin_layout Itemize
27192 \begin_inset Flex Code
27193 status collapsed
27194
27195 \begin_layout Plain Layout
27196 !firstbynameform %prename% %surname%
27197 \end_layout
27198
27199 \end_inset
27200
27201  (first author in lists of type 2)
27202 \end_layout
27203
27204 \begin_layout Itemize
27205 \begin_inset Flex Code
27206 status collapsed
27207
27208 \begin_layout Plain Layout
27209 !otherbynameform %prename% %surname%
27210 \end_layout
27211
27212 \end_inset
27213
27214  (other authors in lists of type 2)
27215 \end_layout
27216
27217 \begin_layout Standard
27218 This allows you to configure namings like 
27219 \begin_inset Quotes eld
27220 \end_inset
27221
27222 Miller, Peter and Mary Smith: \SpecialChar ldots
27223 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
27224
27225 \begin_inset Quotes erd
27226 \end_inset
27227
27228 .
27229 \end_layout
27230
27231 \begin_layout Standard
27232 There is one other piece of syntax available in definitions, which looks
27233  like this: 
27234 \begin_inset Flex Code
27235 status collapsed
27236
27237 \begin_layout Plain Layout
27238 {!<i>!}
27239 \end_layout
27240
27241 \end_inset
27242
27243 .
27244  This defines a piece of formatting information that is to be used when
27245  creating 
27246 \begin_inset Quotes eld
27247 \end_inset
27248
27249 rich text
27250 \begin_inset Quotes erd
27251 \end_inset
27252
27253 .
27254  Obviously, we do not want to output HTML tags when writing plain text,
27255  so they should be wrapped in 
27256 \begin_inset Quotes eld
27257 \end_inset
27258
27259 {!
27260 \begin_inset Quotes erd
27261 \end_inset
27262
27263  and 
27264 \begin_inset Quotes eld
27265 \end_inset
27266
27267 !}
27268 \begin_inset Quotes erd
27269 \end_inset
27270
27271 .
27272 \end_layout
27273
27274 \begin_layout Standard
27275 Two special sorts of definitions are also possible in a 
27276 \begin_inset Flex Code
27277 status collapsed
27278
27279 \begin_layout Plain Layout
27280 CiteFormat
27281 \end_layout
27282
27283 \end_inset
27284
27285  block.
27286  An example of the first would be:
27287 \end_layout
27288
27289 \begin_layout LyX-Code
27290 !quotetitle 
27291 \begin_inset Quotes eld
27292 \end_inset
27293
27294 %title%
27295 \begin_inset Quotes erd
27296 \end_inset
27297
27298
27299 \end_layout
27300
27301 \begin_layout Standard
27302 This is an abbreviation, or macro, and it can be used by treating it as
27303  if it were a key: 
27304 \begin_inset Flex Code
27305 status collapsed
27306
27307 \begin_layout Plain Layout
27308 %!quotetitle%
27309 \end_layout
27310
27311 \end_inset
27312
27313 .
27314  \SpecialChar LyX
27315  will treat 
27316 \begin_inset Flex Code
27317 status collapsed
27318
27319 \begin_layout Plain Layout
27320 %!quotetitle%
27321 \end_layout
27322
27323 \end_inset
27324
27325  exactly as it would treat its definition.
27326  So, let us issue the obvious 
27327 \emph on
27328 warning
27329 \emph default
27330 .
27331  Do not do this:
27332 \end_layout
27333
27334 \begin_layout LyX-Code
27335 !funfun %funfun%
27336 \end_layout
27337
27338 \begin_layout Standard
27339 or anything like it.
27340  \SpecialChar LyX
27341  shouldn't go into an infinite loop, but it may go into a long one before
27342  it gives up.
27343 \end_layout
27344
27345 \begin_layout Standard
27346 The second sort of special definition might look like this:
27347 \end_layout
27348
27349 \begin_layout LyX-Code
27350 B_pptext pp.
27351 \end_layout
27352
27353 \begin_layout Standard
27354 This defines a translatable piece of text, which allows relevant parts of
27355  the bibliography or citation to be translated.
27356  It can be included in a definition by treating it as a key: 
27357 \begin_inset Flex Code
27358 status collapsed
27359
27360 \begin_layout Plain Layout
27361 %B_pptext%
27362 \end_layout
27363
27364 \end_inset
27365
27366 .
27367  Note that there are two different translation paths: All definitions starting
27368  with 
27369 \begin_inset Flex Code
27370 status collapsed
27371
27372 \begin_layout Plain Layout
27373 B_
27374 \end_layout
27375
27376 \end_inset
27377
27378 , such as in the example above, will be translated to the currently active
27379  buffer language (so the translation will match the generated document).
27380  All definitions starting with underscore only will be translated to the
27381  GUI language.
27382  This is the proper translation for strings that only occur in the dialogs
27383  or on buttons, such as this one:
27384 \end_layout
27385
27386 \begin_layout LyX-Code
27387 _addtobib Add to bibliography only.
27388 \end_layout
27389
27390 \begin_layout Standard
27391 Several of these translatable strings are predefined in 
27392 \begin_inset Flex Code
27393 status collapsed
27394
27395 \begin_layout Plain Layout
27396 stdciteformats.inc
27397 \end_layout
27398
27399 \end_inset
27400
27401  and the diverse 
27402 \begin_inset Flex Code
27403 status collapsed
27404
27405 \begin_layout Plain Layout
27406 *.citeengine
27407 \end_layout
27408
27409 \end_inset
27410
27411  files.
27412  Note that these are not macros, in the sense just defined.
27413  They will not be expanded.
27414 \end_layout
27415
27416 \begin_layout Standard
27417 So here then is an example that uses several of these features:
27418 \begin_inset VSpace defskip
27419 \end_inset
27420
27421
27422 \end_layout
27423
27424 \begin_layout Standard
27425 \noindent
27426
27427 \family sans
27428 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
27429 \end_layout
27430
27431 \begin_layout Standard
27432 \begin_inset VSpace defskip
27433 \end_inset
27434
27435 This defines a macro that prints the author, followed by a comma, if the
27436  
27437 \begin_inset Flex Code
27438 status collapsed
27439
27440 \begin_layout Plain Layout
27441 author
27442 \end_layout
27443
27444 \end_inset
27445
27446  key is defined, or else prints the name of the editor, followed by the
27447  
27448 \begin_inset Flex Code
27449 status collapsed
27450
27451 \begin_layout Plain Layout
27452 B_edtext
27453 \end_layout
27454
27455 \end_inset
27456
27457  or its translation (it is by default 
27458 \begin_inset Quotes eld
27459 \end_inset
27460
27461 ed.
27462 \begin_inset Quotes erd
27463 \end_inset
27464
27465 ), if the 
27466 \begin_inset Flex Code
27467 status collapsed
27468
27469 \begin_layout Plain Layout
27470 editor
27471 \end_layout
27472
27473 \end_inset
27474
27475  key is defined.
27476  Note that this is in fact defined in 
27477 \begin_inset Flex Code
27478 status collapsed
27479
27480 \begin_layout Plain Layout
27481 stdciteformats.inc
27482 \end_layout
27483
27484 \end_inset
27485
27486 , so you can use it in your own definitions, or re-definitions, if you load
27487  that file first.
27488 \end_layout
27489
27490 \begin_layout Section
27491 \begin_inset CommandInset label
27492 LatexCommand label
27493 name "sec:Tags-for-XHTML"
27494
27495 \end_inset
27496
27497 Tags for XHTML output
27498 \end_layout
27499
27500 \begin_layout Standard
27501 As with \SpecialChar LaTeX
27502  or DocBook, the format of \SpecialChar LyX
27503 's XHTML output is also controlled by
27504  layout information.
27505  In general, \SpecialChar LyX
27506  provides sensible defaults and, as mentioned earlier, it will
27507  even construct default CSS style rules from the other layout tags.
27508  For example, \SpecialChar LyX
27509  will attempt to use the information provided in the 
27510 \begin_inset Flex Code
27511 status collapsed
27512
27513 \begin_layout Plain Layout
27514 Font
27515 \end_layout
27516
27517 \end_inset
27518
27519  declaration for the Chapter style to write CSS that will appropriately
27520  format chapter headings.
27521 \end_layout
27522
27523 \begin_layout Standard
27524 In many cases, then, you may not have to do anything at all to get acceptable
27525  XHTML output for your own environments, custom insets, and so forth.
27526  But in some cases you will, and so \SpecialChar LyX
27527  provides a number of layout tags that
27528  can be used to customize the XHTML and CSS that are generated.
27529 \end_layout
27530
27531 \begin_layout Standard
27532 Note that there are two tags, 
27533 \begin_inset Flex Code
27534 status collapsed
27535
27536 \begin_layout Plain Layout
27537 HTMLPreamble
27538 \end_layout
27539
27540 \end_inset
27541
27542  and 
27543 \begin_inset Flex Code
27544 status collapsed
27545
27546 \begin_layout Plain Layout
27547 AddToHTMLPreamble
27548 \end_layout
27549
27550 \end_inset
27551
27552  that may appear outside style and inset declarations.
27553  See 
27554 \begin_inset CommandInset ref
27555 LatexCommand ref
27556 reference "subsec:General-text-class"
27557
27558 \end_inset
27559
27560  for details on these.
27561 \end_layout
27562
27563 \begin_layout Subsection
27564 \begin_inset CommandInset label
27565 LatexCommand label
27566 name "subsec:Paragraph-Style-XHTML"
27567
27568 \end_inset
27569
27570 Paragraph styles
27571 \end_layout
27572
27573 \begin_layout Standard
27574 The sort of XHTML \SpecialChar LyX
27575  outputs for a paragraph depends upon whether we are dealing
27576  with a normal paragraph, a command, or an environment, where this is itself
27577  determined by the contents of the corresponding 
27578 \begin_inset Flex Code
27579 status collapsed
27580
27581 \begin_layout Plain Layout
27582 \SpecialChar LaTeX
27583 Type
27584 \end_layout
27585
27586 \end_inset
27587
27588  tag.
27589  
27590 \end_layout
27591
27592 \begin_layout Standard
27593 For a command or normal paragraph, the output XHTML has the following form:
27594 \end_layout
27595
27596 \begin_layout LyX-Code
27597
27598 \family sans
27599 <tag attr=
27600 \begin_inset Quotes erd
27601 \end_inset
27602
27603 value
27604 \begin_inset Quotes erd
27605 \end_inset
27606
27607 >
27608 \end_layout
27609
27610 \begin_layout LyX-Code
27611
27612 \family sans
27613 <labeltag attr=
27614 \begin_inset Quotes erd
27615 \end_inset
27616
27617 value
27618 \begin_inset Quotes erd
27619 \end_inset
27620
27621 >Label</labeltag>
27622 \end_layout
27623
27624 \begin_layout LyX-Code
27625
27626 \family sans
27627 Contents of the paragraph.
27628 \end_layout
27629
27630 \begin_layout LyX-Code
27631
27632 \family sans
27633 </tag>
27634 \end_layout
27635
27636 \begin_layout Standard
27637 The label tags are of course omitted if the paragraph does not have a label.
27638 \end_layout
27639
27640 \begin_layout Standard
27641 For an environment that is not some sort of list, the XHTML takes this form:
27642 \end_layout
27643
27644 \begin_layout LyX-Code
27645
27646 \family sans
27647 <tag attr=
27648 \begin_inset Quotes erd
27649 \end_inset
27650
27651 value
27652 \begin_inset Quotes erd
27653 \end_inset
27654
27655 >
27656 \end_layout
27657
27658 \begin_layout LyX-Code
27659
27660 \family sans
27661 <itemtag attr=
27662 \begin_inset Quotes erd
27663 \end_inset
27664
27665 value
27666 \begin_inset Quotes erd
27667 \end_inset
27668
27669 ><labeltag attr=
27670 \begin_inset Quotes erd
27671 \end_inset
27672
27673 value
27674 \begin_inset Quotes erd
27675 \end_inset
27676
27677 >Environment Label</labeltag>First paragraph.</itemtag>
27678 \end_layout
27679
27680 \begin_layout LyX-Code
27681
27682 \family sans
27683 <itemtag>Second paragraph.</itemtag>
27684 \end_layout
27685
27686 \begin_layout LyX-Code
27687
27688 \family sans
27689 </tag>
27690 \end_layout
27691
27692 \begin_layout Standard
27693 Note that the label is output only for the first paragraph, as it should
27694  be for a theorem, for example.
27695  
27696 \end_layout
27697
27698 \begin_layout Standard
27699 For a list, we have one of these forms:
27700 \end_layout
27701
27702 \begin_layout LyX-Code
27703
27704 \family sans
27705 <tag attr=
27706 \begin_inset Quotes erd
27707 \end_inset
27708
27709 value
27710 \begin_inset Quotes erd
27711 \end_inset
27712
27713 >
27714 \end_layout
27715
27716 \begin_layout LyX-Code
27717
27718 \family sans
27719 <itemtag attr=
27720 \begin_inset Quotes erd
27721 \end_inset
27722
27723 value
27724 \begin_inset Quotes erd
27725 \end_inset
27726
27727 ><labeltag attr=
27728 \begin_inset Quotes erd
27729 \end_inset
27730
27731 value
27732 \begin_inset Quotes erd
27733 \end_inset
27734
27735 >List Label</labeltag>First item.</itemtag>
27736 \end_layout
27737
27738 \begin_layout LyX-Code
27739
27740 \family sans
27741 <itemtag attr=
27742 \begin_inset Quotes erd
27743 \end_inset
27744
27745 value
27746 \begin_inset Quotes erd
27747 \end_inset
27748
27749 ><labeltag attr=
27750 \begin_inset Quotes erd
27751 \end_inset
27752
27753 value
27754 \begin_inset Quotes erd
27755 \end_inset
27756
27757 >List Label</labeltag>Second item.</itemtag>
27758 \end_layout
27759
27760 \begin_layout LyX-Code
27761
27762 \family sans
27763 </tag>
27764 \end_layout
27765
27766 \begin_layout LyX-Code
27767
27768 \end_layout
27769
27770 \begin_layout LyX-Code
27771
27772 \family sans
27773 <tag attr=
27774 \begin_inset Quotes erd
27775 \end_inset
27776
27777 value
27778 \begin_inset Quotes erd
27779 \end_inset
27780
27781 >
27782 \end_layout
27783
27784 \begin_layout LyX-Code
27785
27786 \family sans
27787 <labeltag attr=
27788 \begin_inset Quotes erd
27789 \end_inset
27790
27791 value
27792 \begin_inset Quotes erd
27793 \end_inset
27794
27795 >List Label</labeltag><itemtag attr=
27796 \begin_inset Quotes erd
27797 \end_inset
27798
27799 value
27800 \begin_inset Quotes erd
27801 \end_inset
27802
27803 >First item.</itemtag>
27804 \end_layout
27805
27806 \begin_layout LyX-Code
27807
27808 \family sans
27809 <labeltag attr=
27810 \begin_inset Quotes erd
27811 \end_inset
27812
27813 value
27814 \begin_inset Quotes erd
27815 \end_inset
27816
27817 >List Label</labeltag><itemtag attr=
27818 \begin_inset Quotes erd
27819 \end_inset
27820
27821 value
27822 \begin_inset Quotes erd
27823 \end_inset
27824
27825 >Second item.</itemtag>
27826 \end_layout
27827
27828 \begin_layout LyX-Code
27829
27830 \family sans
27831 </tag>
27832 \end_layout
27833
27834 \begin_layout Standard
27835 Note the different orders of 
27836 \begin_inset Flex Code
27837 status collapsed
27838
27839 \begin_layout Plain Layout
27840 labeltag
27841 \end_layout
27842
27843 \end_inset
27844
27845  and 
27846 \begin_inset Flex Code
27847 status collapsed
27848
27849 \begin_layout Plain Layout
27850 itemtag
27851 \end_layout
27852
27853 \end_inset
27854
27855 .
27856  Which order we get depends upon the setting of 
27857 \begin_inset Flex Code
27858 status collapsed
27859
27860 \begin_layout Plain Layout
27861 HTMLLabelFirst
27862 \end_layout
27863
27864 \end_inset
27865
27866 : If 
27867 \begin_inset Flex Code
27868 status collapsed
27869
27870 \begin_layout Plain Layout
27871 HTMLLabelFirst
27872 \end_layout
27873
27874 \end_inset
27875
27876  is false (the default), you get the first of these, with the label within
27877  the item; if true, you get the second, with the label outside the item.
27878 \end_layout
27879
27880 \begin_layout Standard
27881 The specific tags and attributes output for each paragraph type can be controlle
27882 d by means of the layout tags we are about to describe.
27883  As mentioned earlier, however, \SpecialChar LyX
27884  uses sensible defaults for many of these,
27885  so you often may not need to do very much to get good XHTML output.
27886  Think of the available tags as there so you can tweak things to your liking.
27887 \end_layout
27888
27889 \begin_layout Description
27890 \begin_inset Flex Code
27891 status collapsed
27892
27893 \begin_layout Plain Layout
27894 HTMLAttr
27895 \end_layout
27896
27897 \end_inset
27898
27899  [
27900 \begin_inset Flex Code
27901 status collapsed
27902
27903 \begin_layout Plain Layout
27904 string
27905 \end_layout
27906
27907 \end_inset
27908
27909 ] Specifies attribute information to be output with the main tag.
27910  For example, 
27911 \begin_inset Quotes eld
27912 \end_inset
27913
27914
27915 \begin_inset Flex Code
27916 status collapsed
27917
27918 \begin_layout Plain Layout
27919 class=`mydiv'
27920 \end_layout
27921
27922 \end_inset
27923
27924
27925 \begin_inset Quotes erd
27926 \end_inset
27927
27928 .
27929  By default, \SpecialChar LyX
27930  will output 
27931 \begin_inset Quotes eld
27932 \end_inset
27933
27934
27935 \begin_inset Flex Code
27936 status collapsed
27937
27938 \begin_layout Plain Layout
27939 class=`layoutname'
27940 \end_layout
27941
27942 \end_inset
27943
27944
27945 \begin_inset Quotes erd
27946 \end_inset
27947
27948 , where 
27949 \begin_inset Flex Code
27950 status collapsed
27951
27952 \begin_layout Plain Layout
27953 layoutname
27954 \end_layout
27955
27956 \end_inset
27957
27958  is the \SpecialChar LyX
27959  name of the layout, made lowercase, for example: chapter.
27960  This should 
27961 \emph on
27962 not
27963 \emph default
27964  contain any style information.
27965  Use 
27966 \begin_inset Flex Code
27967 status collapsed
27968
27969 \begin_layout Plain Layout
27970 HTMLStyle
27971 \end_layout
27972
27973 \end_inset
27974
27975  for that purpose.
27976 \end_layout
27977
27978 \begin_layout Description
27979 \begin_inset Flex Code
27980 status collapsed
27981
27982 \begin_layout Plain Layout
27983 HTMLForceCSS
27984 \end_layout
27985
27986 \end_inset
27987
27988  [
27989 \begin_inset Flex Code
27990 status collapsed
27991
27992 \begin_layout Plain Layout
27993
27994 \emph on
27995 0
27996 \emph default
27997 ,1
27998 \end_layout
27999
28000 \end_inset
28001
28002 ] Whether to output the default CSS information \SpecialChar LyX
28003  generates for this layout,
28004  even if additional information is explicitly provided via 
28005 \begin_inset Flex Code
28006 status collapsed
28007
28008 \begin_layout Plain Layout
28009 HTMLStyle
28010 \end_layout
28011
28012 \end_inset
28013
28014 .
28015  Setting this to 
28016 \begin_inset Flex Code
28017 status collapsed
28018
28019 \begin_layout Plain Layout
28020 1
28021 \end_layout
28022
28023 \end_inset
28024
28025  allows you to alter or augment the generated CSS, rather than to override
28026  it completely.
28027  Default is 
28028 \begin_inset Flex Code
28029 status collapsed
28030
28031 \begin_layout Plain Layout
28032 0
28033 \end_layout
28034
28035 \end_inset
28036
28037 .
28038 \end_layout
28039
28040 \begin_layout Description
28041 \begin_inset Flex Code
28042 status collapsed
28043
28044 \begin_layout Plain Layout
28045 HTMLItem
28046 \end_layout
28047
28048 \end_inset
28049
28050  [
28051 \begin_inset Flex Code
28052 status collapsed
28053
28054 \begin_layout Plain Layout
28055 string
28056 \end_layout
28057
28058 \end_inset
28059
28060 ] The tag to be used for individual paragraphs of environments, replacing
28061  
28062 \begin_inset Flex Code
28063 status collapsed
28064
28065 \begin_layout Plain Layout
28066 itemtag
28067 \end_layout
28068
28069 \end_inset
28070
28071  in the examples above.
28072  Defaults to 
28073 \begin_inset Flex Code
28074 status collapsed
28075
28076 \begin_layout Plain Layout
28077 div
28078 \end_layout
28079
28080 \end_inset
28081
28082 .
28083 \end_layout
28084
28085 \begin_layout Description
28086 \begin_inset Flex Code
28087 status collapsed
28088
28089 \begin_layout Plain Layout
28090 HTMLItemAttr
28091 \end_layout
28092
28093 \end_inset
28094
28095  [
28096 \begin_inset Flex Code
28097 status collapsed
28098
28099 \begin_layout Plain Layout
28100 string
28101 \end_layout
28102
28103 \end_inset
28104
28105 ] Attributes for the item tag.
28106  Defaults to
28107 \begin_inset Newline newline
28108 \end_inset
28109
28110
28111 \begin_inset Quotes eld
28112 \end_inset
28113
28114
28115 \begin_inset Flex Code
28116 status collapsed
28117
28118 \begin_layout Plain Layout
28119 class=`layoutname_item'
28120 \end_layout
28121
28122 \end_inset
28123
28124
28125 \begin_inset Quotes erd
28126 \end_inset
28127
28128 .
28129  This should 
28130 \emph on
28131 not
28132 \emph default
28133  contain any style information.
28134  Use 
28135 \begin_inset Flex Code
28136 status collapsed
28137
28138 \begin_layout Plain Layout
28139 HTMLStyle
28140 \end_layout
28141
28142 \end_inset
28143
28144  for that purpose.
28145 \end_layout
28146
28147 \begin_layout Description
28148 \begin_inset Flex Code
28149 status collapsed
28150
28151 \begin_layout Plain Layout
28152 HTMLLabel
28153 \end_layout
28154
28155 \end_inset
28156
28157  [
28158 \begin_inset Flex Code
28159 status collapsed
28160
28161 \begin_layout Plain Layout
28162 string
28163 \end_layout
28164
28165 \end_inset
28166
28167 ] The tag to be used for paragraph and item labels, replacing 
28168 \begin_inset Flex Code
28169 status collapsed
28170
28171 \begin_layout Plain Layout
28172 labeltag
28173 \end_layout
28174
28175 \end_inset
28176
28177  in the examples above.
28178  Defaults to 
28179 \begin_inset Flex Code
28180 status collapsed
28181
28182 \begin_layout Plain Layout
28183 span
28184 \end_layout
28185
28186 \end_inset
28187
28188 , unless 
28189 \begin_inset Flex Code
28190 status collapsed
28191
28192 \begin_layout Plain Layout
28193 LabelType
28194 \end_layout
28195
28196 \end_inset
28197
28198  is either 
28199 \begin_inset Flex Code
28200 status collapsed
28201
28202 \begin_layout Plain Layout
28203 Top_Environment
28204 \end_layout
28205
28206 \end_inset
28207
28208  or 
28209 \begin_inset Flex Code
28210 status collapsed
28211
28212 \begin_layout Plain Layout
28213 Centered_Top_Environment
28214 \end_layout
28215
28216 \end_inset
28217
28218 , in which case it defaults to 
28219 \begin_inset Flex Code
28220 status collapsed
28221
28222 \begin_layout Plain Layout
28223 div
28224 \end_layout
28225
28226 \end_inset
28227
28228 .
28229 \end_layout
28230
28231 \begin_layout Description
28232 \begin_inset Flex Code
28233 status collapsed
28234
28235 \begin_layout Plain Layout
28236 HTMLLabelAttr
28237 \end_layout
28238
28239 \end_inset
28240
28241  [
28242 \begin_inset Flex Code
28243 status collapsed
28244
28245 \begin_layout Plain Layout
28246 string
28247 \end_layout
28248
28249 \end_inset
28250
28251 ] Attributes for the label tag.
28252  Defaults to
28253 \begin_inset Newline newline
28254 \end_inset
28255
28256
28257 \begin_inset Quotes eld
28258 \end_inset
28259
28260
28261 \begin_inset Flex Code
28262 status collapsed
28263
28264 \begin_layout Plain Layout
28265 class=`layoutname_label'
28266 \end_layout
28267
28268 \end_inset
28269
28270
28271 \begin_inset Quotes erd
28272 \end_inset
28273
28274 .
28275  This should 
28276 \emph on
28277 not
28278 \emph default
28279  contain any style information.
28280  Use 
28281 \begin_inset Flex Code
28282 status collapsed
28283
28284 \begin_layout Plain Layout
28285 HTMLStyle
28286 \end_layout
28287
28288 \end_inset
28289
28290  for that purpose.
28291 \end_layout
28292
28293 \begin_layout Description
28294 \begin_inset Flex Code
28295 status collapsed
28296
28297 \begin_layout Plain Layout
28298 HTMLLabelFirst
28299 \end_layout
28300
28301 \end_inset
28302
28303  [
28304 \begin_inset Flex Code
28305 status collapsed
28306
28307 \begin_layout Plain Layout
28308
28309 \emph on
28310 0
28311 \emph default
28312 ,1
28313 \end_layout
28314
28315 \end_inset
28316
28317 ] Meaningful only for list-like environments, this tag controls whether
28318  the label tag is output before or inside the item tag.
28319  This is used, for example, in the description environment, where we want
28320  `
28321 \begin_inset Flex Code
28322 status collapsed
28323
28324 \begin_layout Plain Layout
28325 <dt>\SpecialChar ldots
28326 </dt><dd>\SpecialChar ldots
28327 </dd>
28328 \end_layout
28329
28330 \end_inset
28331
28332 .
28333  Default is 
28334 \begin_inset Flex Code
28335 status collapsed
28336
28337 \begin_layout Plain Layout
28338 0
28339 \end_layout
28340
28341 \end_inset
28342
28343 : The label tag is output inside the item tag.
28344 \end_layout
28345
28346 \begin_layout Description
28347 \begin_inset Flex Code
28348 status collapsed
28349
28350 \begin_layout Plain Layout
28351 HTMLPreamble
28352 \end_layout
28353
28354 \end_inset
28355
28356  Information to be output in the 
28357 \begin_inset Flex Code
28358 status collapsed
28359
28360 \begin_layout Plain Layout
28361 <head>
28362 \end_layout
28363
28364 \end_inset
28365
28366  section when this style is used.
28367  This might, for example, be used to include a 
28368 \begin_inset Flex Code
28369 status collapsed
28370
28371 \begin_layout Plain Layout
28372 <script>
28373 \end_layout
28374
28375 \end_inset
28376
28377  block defining an 
28378 \begin_inset Flex Code
28379 status collapsed
28380
28381 \begin_layout Plain Layout
28382 onclick
28383 \end_layout
28384
28385 \end_inset
28386
28387  handler.
28388 \end_layout
28389
28390 \begin_layout Description
28391 \begin_inset Flex Code
28392 status collapsed
28393
28394 \begin_layout Plain Layout
28395 HTMLStyle
28396 \end_layout
28397
28398 \end_inset
28399
28400  CSS style information to be included when this style is used.
28401  Note that this will automatically be wrapped in a layout-generated 
28402 \begin_inset Flex Code
28403 status collapsed
28404
28405 \begin_layout Plain Layout
28406 <style>
28407 \end_layout
28408
28409 \end_inset
28410
28411  block, so only the CSS itself need be included.
28412  Must end with 
28413 \begin_inset Flex Code
28414 status collapsed
28415
28416 \begin_layout Plain Layout
28417 EndHTMLStyle
28418 \end_layout
28419
28420 \end_inset
28421
28422 .
28423 \end_layout
28424
28425 \begin_layout Description
28426 \begin_inset Flex Code
28427 status collapsed
28428
28429 \begin_layout Plain Layout
28430 HTMLTag
28431 \end_layout
28432
28433 \end_inset
28434
28435  [
28436 \begin_inset Flex Code
28437 status collapsed
28438
28439 \begin_layout Plain Layout
28440 string
28441 \end_layout
28442
28443 \end_inset
28444
28445 ] The tag to be used for the main label, replacing 
28446 \begin_inset Flex Code
28447 status collapsed
28448
28449 \begin_layout Plain Layout
28450 tag
28451 \end_layout
28452
28453 \end_inset
28454
28455  in the examples above.
28456  Defaults to 
28457 \begin_inset Flex Code
28458 status collapsed
28459
28460 \begin_layout Plain Layout
28461 div
28462 \end_layout
28463
28464 \end_inset
28465
28466 .
28467 \end_layout
28468
28469 \begin_layout Description
28470 \begin_inset Flex Code
28471 status collapsed
28472
28473 \begin_layout Plain Layout
28474 HTMLTitle
28475 \end_layout
28476
28477 \end_inset
28478
28479  [
28480 \begin_inset Flex Code
28481 status collapsed
28482
28483 \begin_layout Plain Layout
28484
28485 \emph on
28486 0
28487 \emph default
28488 ,1
28489 \end_layout
28490
28491 \end_inset
28492
28493 ] Marks this style as the one to be used to generate the 
28494 \begin_inset Flex Code
28495 status collapsed
28496
28497 \begin_layout Plain Layout
28498 <title>
28499 \end_layout
28500
28501 \end_inset
28502
28503  tag for the XHTML file.
28504  By default, it is false.
28505  The 
28506 \begin_inset Flex Code
28507 status collapsed
28508
28509 \begin_layout Plain Layout
28510 stdtitle.inc
28511 \end_layout
28512
28513 \end_inset
28514
28515  file sets it to true for the 
28516 \begin_inset Flex Code
28517 status collapsed
28518
28519 \begin_layout Plain Layout
28520 title
28521 \end_layout
28522
28523 \end_inset
28524
28525  environment.
28526  
28527 \end_layout
28528
28529 \begin_layout Subsection
28530 InsetLayout XHTML
28531 \end_layout
28532
28533 \begin_layout Standard
28534 The XHTML output of insets can also be controlled by information in layout
28535  files.
28536 \begin_inset Foot
28537 status collapsed
28538
28539 \begin_layout Plain Layout
28540 At present, this is true only for 
28541 \begin_inset Quotes eld
28542 \end_inset
28543
28544 text
28545 \begin_inset Quotes erd
28546 \end_inset
28547
28548  insets (insets you can type into) and is not true for 
28549 \begin_inset Quotes eld
28550 \end_inset
28551
28552 command
28553 \begin_inset Quotes erd
28554 \end_inset
28555
28556  insets (insets that are associated with dialog boxes).
28557 \end_layout
28558
28559 \end_inset
28560
28561  Here, too, \SpecialChar LyX
28562  tries to provide sensible defaults, and it constructs default
28563  CSS style rules.
28564  But everything can be customized.
28565 \end_layout
28566
28567 \begin_layout Standard
28568 The XHTML \SpecialChar LyX
28569  outputs for an inset has the following form:
28570 \end_layout
28571
28572 \begin_layout LyX-Code
28573 <tag attr=
28574 \begin_inset Quotes erd
28575 \end_inset
28576
28577 value
28578 \begin_inset Quotes erd
28579 \end_inset
28580
28581 >
28582 \end_layout
28583
28584 \begin_layout LyX-Code
28585 <labeltag>Label</labeltag>
28586 \end_layout
28587
28588 \begin_layout LyX-Code
28589 <innertag attr=
28590 \begin_inset Quotes erd
28591 \end_inset
28592
28593 value
28594 \begin_inset Quotes erd
28595 \end_inset
28596
28597 >Contents of the inset.</innertag>
28598 \end_layout
28599
28600 \begin_layout LyX-Code
28601 </tag>
28602 \end_layout
28603
28604 \begin_layout Standard
28605 If the inset permits multiple paragraphs—that is, if 
28606 \begin_inset Flex Code
28607 status collapsed
28608
28609 \begin_layout Plain Layout
28610 MultiPar
28611 \end_layout
28612
28613 \end_inset
28614
28615  is true—then the contents of the inset will itself be output as paragraphs
28616  formatted according to the styles used for those paragraphs (standard,
28617  quote, and the like).
28618  The label tag is of course omitted if the paragraph does not have a label
28619  and, at present, is always 
28620 \begin_inset Flex Code
28621 status collapsed
28622
28623 \begin_layout Plain Layout
28624 span
28625 \end_layout
28626
28627 \end_inset
28628
28629 .
28630  The inner tag is optional and, by default, does not appear.
28631 \end_layout
28632
28633 \begin_layout Standard
28634 The specific tags and attributes output for each inset can be controlled
28635  by means of the following layout tags.
28636 \end_layout
28637
28638 \begin_layout Description
28639 \begin_inset Flex Code
28640 status collapsed
28641
28642 \begin_layout Plain Layout
28643 HTMLAttr
28644 \end_layout
28645
28646 \end_inset
28647
28648  [
28649 \begin_inset Flex Code
28650 status collapsed
28651
28652 \begin_layout Plain Layout
28653 string
28654 \end_layout
28655
28656 \end_inset
28657
28658 ] Specifies attribute information to be output with the main tag.
28659  For example, 
28660 \begin_inset Quotes eld
28661 \end_inset
28662
28663
28664 \begin_inset Flex Code
28665 status collapsed
28666
28667 \begin_layout Plain Layout
28668 class=`myinset' onclick=`\SpecialChar ldots
28669 '
28670 \end_layout
28671
28672 \end_inset
28673
28674
28675 \begin_inset Quotes erd
28676 \end_inset
28677
28678 .
28679  By default, \SpecialChar LyX
28680  will output 
28681 \begin_inset Quotes eld
28682 \end_inset
28683
28684
28685 \begin_inset Flex Code
28686 status collapsed
28687
28688 \begin_layout Plain Layout
28689 class=`insetname'
28690 \end_layout
28691
28692 \end_inset
28693
28694
28695 \begin_inset Quotes erd
28696 \end_inset
28697
28698 , where 
28699 \begin_inset Flex Code
28700 status collapsed
28701
28702 \begin_layout Plain Layout
28703 insetname
28704 \end_layout
28705
28706 \end_inset
28707
28708  is the \SpecialChar LyX
28709  name of the inset, made lowercase and with non-alphanumeric characters
28710  converted to underscores, for example: footnote.
28711 \end_layout
28712
28713 \begin_layout Description
28714 \begin_inset Flex Code
28715 status collapsed
28716
28717 \begin_layout Plain Layout
28718 HTMLForceCSS
28719 \end_layout
28720
28721 \end_inset
28722
28723  [
28724 \begin_inset Flex Code
28725 status collapsed
28726
28727 \begin_layout Plain Layout
28728
28729 \emph on
28730 0
28731 \emph default
28732 ,1
28733 \end_layout
28734
28735 \end_inset
28736
28737 ] Whether to output the default CSS information \SpecialChar LyX
28738  generates for this layout,
28739  even if additional information is explicitly provided via 
28740 \begin_inset Flex Code
28741 status collapsed
28742
28743 \begin_layout Plain Layout
28744 HTMLStyle
28745 \end_layout
28746
28747 \end_inset
28748
28749 .
28750  Setting this to 
28751 \begin_inset Flex Code
28752 status collapsed
28753
28754 \begin_layout Plain Layout
28755 1
28756 \end_layout
28757
28758 \end_inset
28759
28760  allows you to alter or augment the generated CSS, rather than to override
28761  it completely.
28762  Default is 0.
28763 \end_layout
28764
28765 \begin_layout Description
28766 \begin_inset Flex Code
28767 status collapsed
28768
28769 \begin_layout Plain Layout
28770 HTMLInnerAttr
28771 \end_layout
28772
28773 \end_inset
28774
28775  [
28776 \begin_inset Flex Code
28777 status collapsed
28778
28779 \begin_layout Plain Layout
28780 string
28781 \end_layout
28782
28783 \end_inset
28784
28785 ] Attributes for the inner tag.
28786  Defaults to
28787 \begin_inset Newline newline
28788 \end_inset
28789
28790
28791 \begin_inset Quotes eld
28792 \end_inset
28793
28794
28795 \begin_inset Flex Code
28796 status collapsed
28797
28798 \begin_layout Plain Layout
28799 class=`insetname_inner'
28800 \end_layout
28801
28802 \end_inset
28803
28804
28805 \begin_inset Quotes erd
28806 \end_inset
28807
28808 .
28809 \end_layout
28810
28811 \begin_layout Description
28812 \begin_inset Flex Code
28813 status collapsed
28814
28815 \begin_layout Plain Layout
28816 HTMLInnerTag
28817 \end_layout
28818
28819 \end_inset
28820
28821  [
28822 \begin_inset Flex Code
28823 status collapsed
28824
28825 \begin_layout Plain Layout
28826 string
28827 \end_layout
28828
28829 \end_inset
28830
28831 ] The inner tag, replacing 
28832 \begin_inset Flex Code
28833 status collapsed
28834
28835 \begin_layout Plain Layout
28836 innertag
28837 \end_layout
28838
28839 \end_inset
28840
28841  in the examples above.
28842  By default, there is none.
28843 \end_layout
28844
28845 \begin_layout Description
28846 \begin_inset Flex Code
28847 status collapsed
28848
28849 \begin_layout Plain Layout
28850 HTMLIsBlock
28851 \end_layout
28852
28853 \end_inset
28854
28855  [
28856 \begin_inset Flex Code
28857 status collapsed
28858
28859 \begin_layout Plain Layout
28860 0,
28861 \emph on
28862 1
28863 \end_layout
28864
28865 \end_inset
28866
28867 ] Whether this inset represents a standalone block of text (such as a footnote)
28868  or instead represents material that is included in the surrounding text
28869  (such as a branch).
28870  Defaults to 1.
28871 \end_layout
28872
28873 \begin_layout Description
28874 \begin_inset Flex Code
28875 status collapsed
28876
28877 \begin_layout Plain Layout
28878 HTMLLabel
28879 \end_layout
28880
28881 \end_inset
28882
28883  [
28884 \begin_inset Flex Code
28885 status collapsed
28886
28887 \begin_layout Plain Layout
28888 string
28889 \end_layout
28890
28891 \end_inset
28892
28893 ] A label for this inset, possibly including a reference to a counter.
28894  For example, for footnote, it might be: 
28895 \begin_inset Flex Code
28896 status collapsed
28897
28898 \begin_layout Plain Layout
28899
28900 \backslash
28901 arabic{footnote}
28902 \end_layout
28903
28904 \end_inset
28905
28906 .
28907  This is optional, and there is no default.
28908 \end_layout
28909
28910 \begin_layout Description
28911 \begin_inset Flex Code
28912 status collapsed
28913
28914 \begin_layout Plain Layout
28915 HTMLPreamble
28916 \end_layout
28917
28918 \end_inset
28919
28920  Information to be output in the 
28921 \begin_inset Flex Code
28922 status collapsed
28923
28924 \begin_layout Plain Layout
28925 <head>
28926 \end_layout
28927
28928 \end_inset
28929
28930  section when this style is used.
28931  This might, for example, be used to include a 
28932 \begin_inset Flex Code
28933 status collapsed
28934
28935 \begin_layout Plain Layout
28936 <script>
28937 \end_layout
28938
28939 \end_inset
28940
28941  block defining an 
28942 \begin_inset Flex Code
28943 status collapsed
28944
28945 \begin_layout Plain Layout
28946 onclick
28947 \end_layout
28948
28949 \end_inset
28950
28951  handler.
28952 \end_layout
28953
28954 \begin_layout Description
28955 \begin_inset Flex Code
28956 status collapsed
28957
28958 \begin_layout Plain Layout
28959 HTMLStyle
28960 \end_layout
28961
28962 \end_inset
28963
28964  CSS style information to be included when this style is used.
28965  Note that this will automatically be wrapped in a layout-generated 
28966 \begin_inset Flex Code
28967 status collapsed
28968
28969 \begin_layout Plain Layout
28970 <style>
28971 \end_layout
28972
28973 \end_inset
28974
28975  block, so only the CSS itself need be included.
28976 \end_layout
28977
28978 \begin_layout Description
28979 \begin_inset Flex Code
28980 status collapsed
28981
28982 \begin_layout Plain Layout
28983 HTMLTag
28984 \end_layout
28985
28986 \end_inset
28987
28988  [
28989 \begin_inset Flex Code
28990 status collapsed
28991
28992 \begin_layout Plain Layout
28993 string
28994 \end_layout
28995
28996 \end_inset
28997
28998 ] The tag to be used for the main label, replacing 
28999 \begin_inset Flex Code
29000 status collapsed
29001
29002 \begin_layout Plain Layout
29003 tag
29004 \end_layout
29005
29006 \end_inset
29007
29008  in the examples above.
29009  The default depends upon the setting of 
29010 \begin_inset Flex Code
29011 status collapsed
29012
29013 \begin_layout Plain Layout
29014 MultiPar
29015 \end_layout
29016
29017 \end_inset
29018
29019 : If 
29020 \begin_inset Flex Code
29021 status collapsed
29022
29023 \begin_layout Plain Layout
29024 MultiPar
29025 \end_layout
29026
29027 \end_inset
29028
29029  is true, the default is 
29030 \begin_inset Flex Code
29031 status collapsed
29032
29033 \begin_layout Plain Layout
29034 div
29035 \end_layout
29036
29037 \end_inset
29038
29039 ; if it is false, the default is 
29040 \begin_inset Flex Code
29041 status collapsed
29042
29043 \begin_layout Plain Layout
29044 span
29045 \end_layout
29046
29047 \end_inset
29048
29049 .
29050 \end_layout
29051
29052 \begin_layout Subsection
29053 Float XHTML
29054 \end_layout
29055
29056 \begin_layout Standard
29057 The XHTML output for floats too can be controlled by layout information.
29058  The output has the following form:
29059 \end_layout
29060
29061 \begin_layout LyX-Code
29062 <tag attr=
29063 \begin_inset Quotes erd
29064 \end_inset
29065
29066 value
29067 \begin_inset Quotes erd
29068 \end_inset
29069
29070 >
29071 \end_layout
29072
29073 \begin_layout LyX-Code
29074 Contents of the float.
29075 \end_layout
29076
29077 \begin_layout LyX-Code
29078 </tag>
29079 \end_layout
29080
29081 \begin_layout Standard
29082 The caption, if there is one, is a separate inset and will be output as
29083  such.
29084  Its appearance can be controlled via the InsetLayout for caption insets.
29085  
29086 \end_layout
29087
29088 \begin_layout Description
29089 \begin_inset Flex Code
29090 status collapsed
29091
29092 \begin_layout Plain Layout
29093 HTMLAttr
29094 \end_layout
29095
29096 \end_inset
29097
29098  [
29099 \begin_inset Flex Code
29100 status collapsed
29101
29102 \begin_layout Plain Layout
29103 string
29104 \end_layout
29105
29106 \end_inset
29107
29108 ] Specifies attribute information to be output with the main tag.
29109  For example, 
29110 \begin_inset Quotes eld
29111 \end_inset
29112
29113
29114 \begin_inset Flex Code
29115 status collapsed
29116
29117 \begin_layout Plain Layout
29118 class=`myfloat' onclick=`\SpecialChar ldots
29119 '
29120 \end_layout
29121
29122 \end_inset
29123
29124
29125 \begin_inset Quotes erd
29126 \end_inset
29127
29128 .
29129  By default, \SpecialChar LyX
29130  will output 
29131 \begin_inset Quotes eld
29132 \end_inset
29133
29134
29135 \begin_inset Flex Code
29136 status collapsed
29137
29138 \begin_layout Plain Layout
29139 class=`float float-floattype'
29140 \end_layout
29141
29142 \end_inset
29143
29144
29145 \begin_inset Quotes erd
29146 \end_inset
29147
29148 , where 
29149 \begin_inset Flex Code
29150 status collapsed
29151
29152 \begin_layout Plain Layout
29153 floattype
29154 \end_layout
29155
29156 \end_inset
29157
29158  is \SpecialChar LyX
29159 's name for this type of float, as determined by the float declaration
29160  (see 
29161 \begin_inset CommandInset ref
29162 LatexCommand ref
29163 reference "subsec:Floats"
29164
29165 \end_inset
29166
29167 ), though made lowercase and with non-alphanumeric characters converted
29168  to underscores, for example: float-table.
29169 \end_layout
29170
29171 \begin_layout Description
29172 \begin_inset Flex Code
29173 status collapsed
29174
29175 \begin_layout Plain Layout
29176 HTMLStyle
29177 \end_layout
29178
29179 \end_inset
29180
29181  CSS style information to be included when this float is used.
29182  Note that this will automatically be wrapped in a layout-generated 
29183 \begin_inset Flex Code
29184 status collapsed
29185
29186 \begin_layout Plain Layout
29187 <style>
29188 \end_layout
29189
29190 \end_inset
29191
29192  block, so only the CSS itself need be included.
29193 \end_layout
29194
29195 \begin_layout Description
29196 \begin_inset Flex Code
29197 status collapsed
29198
29199 \begin_layout Plain Layout
29200 HTMLTag
29201 \end_layout
29202
29203 \end_inset
29204
29205  [
29206 \begin_inset Flex Code
29207 status collapsed
29208
29209 \begin_layout Plain Layout
29210 string
29211 \end_layout
29212
29213 \end_inset
29214
29215 ] The tag to be used for this float, replacing 
29216 \begin_inset Quotes eld
29217 \end_inset
29218
29219
29220 \begin_inset Flex Code
29221 status collapsed
29222
29223 \begin_layout Plain Layout
29224 tag
29225 \end_layout
29226
29227 \end_inset
29228
29229
29230 \begin_inset Quotes erd
29231 \end_inset
29232
29233  in the example above.
29234  The default is 
29235 \begin_inset Flex Code
29236 status collapsed
29237
29238 \begin_layout Plain Layout
29239 div
29240 \end_layout
29241
29242 \end_inset
29243
29244  and will rarely need changing.
29245 \end_layout
29246
29247 \begin_layout Subsection
29248 Bibliography formatting
29249 \end_layout
29250
29251 \begin_layout Standard
29252 The bibliography can be formatted using 
29253 \begin_inset Flex Code
29254 status collapsed
29255
29256 \begin_layout Plain Layout
29257 CiteFormat
29258 \end_layout
29259
29260 \end_inset
29261
29262  blocks.
29263  See 
29264 \begin_inset CommandInset ref
29265 LatexCommand ref
29266 reference "subsec:Citation-format-description"
29267
29268 \end_inset
29269
29270  for the details.
29271 \end_layout
29272
29273 \begin_layout Subsection
29274 \SpecialChar LyX
29275 -generated CSS
29276 \end_layout
29277
29278 \begin_layout Standard
29279 We have several times mentioned that \SpecialChar LyX
29280  will generate default CSS style rules
29281  for both insets and paragraph styles, based upon the other layout information
29282  that is provided.
29283  In this section, we shall say a word about which layout information \SpecialChar LyX
29284  uses
29285  and how.
29286 \end_layout
29287
29288 \begin_layout Standard
29289 At present, \SpecialChar LyX
29290  auto-generates CSS only for font information, making use of
29291  the 
29292 \begin_inset Flex Code
29293 status collapsed
29294
29295 \begin_layout Plain Layout
29296 Family
29297 \end_layout
29298
29299 \end_inset
29300
29301
29302 \begin_inset Flex Code
29303 status collapsed
29304
29305 \begin_layout Plain Layout
29306 Series
29307 \end_layout
29308
29309 \end_inset
29310
29311
29312 \begin_inset Flex Code
29313 status collapsed
29314
29315 \begin_layout Plain Layout
29316 Shape
29317 \end_layout
29318
29319 \end_inset
29320
29321 , and 
29322 \begin_inset Flex Code
29323 status collapsed
29324
29325 \begin_layout Plain Layout
29326 Size
29327 \end_layout
29328
29329 \end_inset
29330
29331  specified in the 
29332 \begin_inset Flex Code
29333 status collapsed
29334
29335 \begin_layout Plain Layout
29336 Font
29337 \end_layout
29338
29339 \end_inset
29340
29341  declaration (see 
29342 \begin_inset CommandInset ref
29343 LatexCommand ref
29344 reference "subsec:Font-description"
29345
29346 \end_inset
29347
29348 ).
29349  The translation is mostly straightforward and obvious.
29350  For example, 
29351 \begin_inset Quotes eld
29352 \end_inset
29353
29354
29355 \begin_inset Flex Code
29356 status collapsed
29357
29358 \begin_layout Plain Layout
29359 Family Sans
29360 \end_layout
29361
29362 \end_inset
29363
29364
29365 \begin_inset Quotes erd
29366 \end_inset
29367
29368  becomes 
29369 \begin_inset Quotes eld
29370 \end_inset
29371
29372
29373 \begin_inset Flex Code
29374 status collapsed
29375
29376 \begin_layout Plain Layout
29377 font-family: sans-serif;
29378 \end_layout
29379
29380 \end_inset
29381
29382
29383 \begin_inset Quotes erd
29384 \end_inset
29385
29386 .
29387  The correspondence of \SpecialChar LyX
29388  sizes and CSS sizes is a little less obvious but
29389  nonetheless intuitive.
29390  See the 
29391 \begin_inset Flex Code
29392 status collapsed
29393
29394 \begin_layout Plain Layout
29395 getSizeCSS()
29396 \end_layout
29397
29398 \end_inset
29399
29400  function in 
29401 \begin_inset Flex URL
29402 status collapsed
29403
29404 \begin_layout Plain Layout
29405
29406 src/FontInfo.cpp
29407 \end_layout
29408
29409 \end_inset
29410
29411  for the details.
29412 \change_inserted -970929547 1496610908
29413
29414 \end_layout
29415
29416 \begin_layout Section
29417
29418 \change_inserted -970929547 1496610966
29419 \begin_inset CommandInset label
29420 LatexCommand label
29421 name "sec:Tags-for-DocBook"
29422
29423 \end_inset
29424
29425 Tags for DocBook output
29426 \end_layout
29427
29428 \begin_layout Standard
29429
29430 \change_inserted -970929547 1496611615
29431 As with \SpecialChar LaTeX
29432  or XHTML, the format of \SpecialChar LyX
29433 's DocBook output is also controlled by
29434  layout information.
29435  In general, \SpecialChar LyX
29436  provides sensible defaults; however, much of the styling is
29437  lost during the conversion, as DocBook is strictly semantic and does not
29438  allow formatting.
29439  When possible, information from \SpecialChar LyX
29440  will be rendered in 
29441 \family typewriter
29442 role
29443 \family default
29444  attributes.
29445  
29446 \end_layout
29447
29448 \begin_layout Standard
29449
29450 \change_inserted -970929547 1496612080
29451 In many cases, then, you may not have to do anything at all to get acceptable
29452  DocBook output for your own environments, custom insets, and so forth.
29453  But in some cases you will, and so \SpecialChar LyX
29454  provides a number of layout tags that
29455  can be used to customize the DocBook that is generated.
29456 \end_layout
29457
29458 \begin_layout Standard
29459
29460 \change_inserted -970929547 1515109912
29461 Labels are rarely output, as they are redundant in DocBook: this information
29462  is carried by the tags themselves, and whether labels appear in the final
29463  documents (after processing of DocBook files) is controlled by the stylesheets.
29464  However, sometimes, labels are not redundant content, such as definition
29465  lists: in this case, the term being defined will be the label.
29466  
29467 \end_layout
29468
29469 \begin_layout Subsection
29470
29471 \change_inserted 1075283030 1597699417
29472 \begin_inset CommandInset label
29473 LatexCommand label
29474 name "subsec:Paragraph-Style-DocBook"
29475
29476 \end_inset
29477
29478
29479 \change_deleted 1075283030 1597699417
29480
29481 \begin_inset CommandInset label
29482 LatexCommand label
29483 name "subsec:Paragraph-Style-XHTML-1"
29484
29485 \end_inset
29486
29487
29488 \change_inserted -970929547 1496610966
29489 Paragraph styles
29490 \end_layout
29491
29492 \begin_layout Standard
29493
29494 \change_inserted -970929547 1496612059
29495 The sort of DocBook \SpecialChar LyX
29496  outputs for a paragraph depends upon whether we are
29497  dealing with a normal paragraph, a command, or an environment, where this
29498  is itself determined by the contents of the corresponding 
29499 \begin_inset Flex Code
29500 status collapsed
29501
29502 \begin_layout Plain Layout
29503
29504 \change_inserted -970929547 1496610966
29505 \SpecialChar LaTeX
29506 Type
29507 \change_unchanged
29508
29509 \end_layout
29510
29511 \end_inset
29512
29513  tag.
29514  
29515 \end_layout
29516
29517 \begin_layout Standard
29518
29519 \change_inserted -970929547 1496612107
29520 For a command or normal paragraph, the output DocBook has the following
29521  form:
29522 \end_layout
29523
29524 \begin_layout LyX-Code
29525
29526 \change_inserted -970929547 1515109666
29527 <tag attr>
29528 \end_layout
29529
29530 \begin_layout LyX-Code
29531
29532 \change_inserted -970929547 1496610966
29533 Contents of the paragraph.
29534 \end_layout
29535
29536 \begin_layout LyX-Code
29537
29538 \change_inserted -970929547 1496610966
29539 </tag>
29540 \end_layout
29541
29542 \begin_layout Standard
29543
29544 \change_inserted -970929547 1515109821
29545 For an environment that is not some sort of list, the generated DocBook
29546  takes this form:
29547 \end_layout
29548
29549 \begin_layout LyX-Code
29550
29551 \change_inserted -970929547 1515109671
29552 <tag attr>
29553 \end_layout
29554
29555 \begin_layout LyX-Code
29556
29557 \change_inserted -970929547 1496612114
29558 <itemtag>First paragraph.</itemtag>
29559 \end_layout
29560
29561 \begin_layout LyX-Code
29562
29563 \change_inserted -970929547 1496610966
29564 <itemtag>Second paragraph.</itemtag>
29565 \end_layout
29566
29567 \begin_layout LyX-Code
29568
29569 \change_inserted -970929547 1496610966
29570 </tag>
29571 \end_layout
29572
29573 \begin_layout Standard
29574
29575 \change_inserted -970929547 1515109825
29576 For a list, the resulting DocBook takes this form:
29577 \end_layout
29578
29579 \begin_layout LyX-Code
29580
29581 \change_inserted -970929547 1515109672
29582 <tag attr>
29583 \end_layout
29584
29585 \begin_layout LyX-Code
29586
29587 \change_inserted -970929547 1515109676
29588 <itemtag attr>First item.</itemtag>
29589 \end_layout
29590
29591 \begin_layout LyX-Code
29592
29593 \change_inserted -970929547 1515109678
29594 <itemtag attr>Second item.</itemtag>
29595 \end_layout
29596
29597 \begin_layout LyX-Code
29598
29599 \change_inserted -970929547 1496610966
29600 </tag>
29601 \end_layout
29602
29603 \begin_layout Standard
29604
29605 \change_inserted -970929547 1496612243
29606 The specific tags and roles output for each paragraph type can be controlled
29607  by means of the layout tags we are about to describe.
29608  Please note that, due to the very nature of DocBook, no sensible defaults
29609  really exist, and the values must always be carefully chosen.
29610  
29611 \end_layout
29612
29613 \begin_layout Description
29614
29615 \change_inserted -970929547 1515110057
29616 \begin_inset Flex Code
29617 status collapsed
29618
29619 \begin_layout Plain Layout
29620
29621 \change_inserted -970929547 1515109656
29622 DocBookAttr
29623 \change_unchanged
29624
29625 \end_layout
29626
29627 \end_inset
29628
29629  [
29630 \begin_inset Flex Code
29631 status collapsed
29632
29633 \begin_layout Plain Layout
29634
29635 \change_inserted -970929547 1496610966
29636 string
29637 \change_unchanged
29638
29639 \end_layout
29640
29641 \end_inset
29642
29643 ] Specifies attribute information to be output with the main tag, replacing
29644  
29645 \begin_inset Quotes eld
29646 \end_inset
29647
29648
29649 \begin_inset Flex Code
29650 status collapsed
29651
29652 \begin_layout Plain Layout
29653
29654 \change_inserted -970929547 1515110057
29655 attr
29656 \change_unchanged
29657
29658 \end_layout
29659
29660 \end_inset
29661
29662
29663 \begin_inset Quotes erd
29664 \end_inset
29665
29666  in the example above.
29667  This information can be used in further processing of the DocBook files.
29668  
29669 \change_unchanged
29670
29671 \end_layout
29672
29673 \begin_layout Description
29674
29675 \change_inserted -970929547 1496612296
29676 \begin_inset Flex Code
29677 status collapsed
29678
29679 \begin_layout Plain Layout
29680
29681 \change_inserted -970929547 1496612269
29682 DocBookTag
29683 \change_unchanged
29684
29685 \end_layout
29686
29687 \end_inset
29688
29689  [
29690 \begin_inset Flex Code
29691 status collapsed
29692
29693 \begin_layout Plain Layout
29694
29695 \change_inserted -970929547 1496610966
29696 string
29697 \change_unchanged
29698
29699 \end_layout
29700
29701 \end_inset
29702
29703 ] The tag to be used for this inset, replacing 
29704 \begin_inset Quotes eld
29705 \end_inset
29706
29707
29708 \begin_inset Flex Code
29709 status collapsed
29710
29711 \begin_layout Plain Layout
29712
29713 \change_inserted -970929547 1496612296
29714 tag
29715 \change_unchanged
29716
29717 \end_layout
29718
29719 \end_inset
29720
29721
29722 \begin_inset Quotes erd
29723 \end_inset
29724
29725  in the example above.
29726  The default is the name of the float and always needs to be changed, as
29727  DocBook provides no generic tag.
29728 \change_inserted 1075283030 1597698868
29729
29730 \end_layout
29731
29732 \begin_layout Description
29733
29734 \change_inserted 1075283030 1597699399
29735 \begin_inset Flex Code
29736 status collapsed
29737
29738 \begin_layout Plain Layout
29739
29740 \change_inserted 1075283030 1597698872
29741 DocBookTagType
29742 \change_unchanged
29743
29744 \end_layout
29745
29746 \end_inset
29747
29748  [
29749 \begin_inset Flex Code
29750 status collapsed
29751
29752 \begin_layout Plain Layout
29753
29754 \change_inserted 1075283030 1597700585
29755 block, paragraph, inline
29756 \change_unchanged
29757
29758 \end_layout
29759
29760 \end_inset
29761
29762 ] The new-line policy for this tag, see Section
29763 \begin_inset space ~
29764 \end_inset
29765
29766
29767 \begin_inset CommandInset ref
29768 LatexCommand ref
29769 reference "subsec:DocBook-New-line-policy"
29770 plural "false"
29771 caps "false"
29772 noprefix "false"
29773
29774 \end_inset
29775
29776  for the details.
29777  
29778 \change_unchanged
29779
29780 \end_layout
29781
29782 \begin_layout Subsection
29783
29784 \change_inserted 1075283030 1597699385
29785 New-line policy
29786 \begin_inset CommandInset label
29787 LatexCommand label
29788 name "subsec:DocBook-New-line-policy"
29789
29790 \end_inset
29791
29792
29793 \end_layout
29794
29795 \begin_layout Standard
29796
29797 \change_inserted 1075283030 1597698993
29798 For all tags, there are three possible policies for outputting new lines
29799  (given in the 
29800 \begin_inset Flex Code
29801 status collapsed
29802
29803 \begin_layout Plain Layout
29804
29805 \change_inserted 1075283030 1597698987
29806 DocBook*TagType
29807 \change_unchanged
29808
29809 \end_layout
29810
29811 \end_inset
29812
29813  attribute): 
29814 \end_layout
29815
29816 \begin_layout Itemize
29817
29818 \change_inserted 1075283030 1597699279
29819 \begin_inset Quotes eld
29820 \end_inset
29821
29822
29823 \begin_inset Flex Code
29824 status collapsed
29825
29826 \begin_layout Plain Layout
29827
29828 \change_inserted 1075283030 1597699012
29829 block
29830 \change_unchanged
29831
29832 \end_layout
29833
29834 \end_inset
29835
29836
29837 \begin_inset Quotes erd
29838 \end_inset
29839
29840 : the opening and closing tags are on their own lines (i.e.
29841  a line feed after and before the opening and the closing tags).
29842  Typical elements are floats.
29843  For instance: 
29844 \end_layout
29845
29846 \begin_layout LyX-Code
29847
29848 \change_inserted 1075283030 1597699194
29849 Content before
29850 \end_layout
29851
29852 \begin_layout LyX-Code
29853
29854 \change_inserted 1075283030 1597699194
29855 <blocktag>
29856 \end_layout
29857
29858 \begin_layout LyX-Code
29859
29860 \change_inserted 1075283030 1597699098
29861   Contents of the block.
29862 \end_layout
29863
29864 \begin_layout LyX-Code
29865
29866 \change_inserted 1075283030 1597699196
29867 </blocktag>
29868 \end_layout
29869
29870 \begin_layout LyX-Code
29871
29872 \change_inserted 1075283030 1597699198
29873 Content after
29874 \end_layout
29875
29876 \begin_layout Itemize
29877
29878 \change_inserted 1075283030 1597699289
29879 \begin_inset Quotes eld
29880 \end_inset
29881
29882
29883 \begin_inset Flex Code
29884 status collapsed
29885
29886 \begin_layout Plain Layout
29887
29888 \change_inserted 1075283030 1597699113
29889 paragraph
29890 \change_unchanged
29891
29892 \end_layout
29893
29894 \end_inset
29895
29896
29897 \begin_inset Quotes erd
29898 \end_inset
29899
29900 : the opening and closing tags are on the same, new line; a line feed is
29901  output before the opening tag and after the closing tag.
29902  Typical elements are paragraphs and list items.
29903  For instance: 
29904 \end_layout
29905
29906 \begin_layout LyX-Code
29907
29908 \change_inserted 1075283030 1597699186
29909 Content before
29910 \end_layout
29911
29912 \begin_layout LyX-Code
29913
29914 \change_inserted 1075283030 1597699357
29915 <paratag>Contents of the paragraph.</paratag>
29916 \end_layout
29917
29918 \begin_layout LyX-Code
29919
29920 \change_inserted 1075283030 1597699231
29921 Content after
29922 \end_layout
29923
29924 \begin_layout Itemize
29925
29926 \change_inserted 1075283030 1597699343
29927 \begin_inset Quotes eld
29928 \end_inset
29929
29930
29931 \begin_inset Flex Code
29932 status collapsed
29933
29934 \begin_layout Plain Layout
29935
29936 \change_inserted 1075283030 1597699307
29937 inline
29938 \change_unchanged
29939
29940 \end_layout
29941
29942 \end_inset
29943
29944
29945 \begin_inset Quotes erd
29946 \end_inset
29947
29948 : the opening and closing tags are on the same line as the rest of the content.
29949  No line feeds are output.
29950  Typical elements are fonts.
29951  For instance: 
29952 \end_layout
29953
29954 \begin_layout LyX-Code
29955
29956 \change_inserted 1075283030 1597699585
29957 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
29958 \end_layout
29959
29960 \begin_layout Standard
29961
29962 \change_inserted 1075283030 1597699585
29963 The default value is always 
29964 \begin_inset Quotes eld
29965 \end_inset
29966
29967
29968 \begin_inset Flex Code
29969 status collapsed
29970
29971 \begin_layout Plain Layout
29972
29973 \change_inserted 1075283030 1597699585
29974 block
29975 \change_unchanged
29976
29977 \end_layout
29978
29979 \end_inset
29980
29981
29982 \begin_inset Quotes erd
29983 \end_inset
29984
29985 .
29986 \change_unchanged
29987
29988 \end_layout
29989
29990 \begin_layout Subsection
29991
29992 \change_inserted -970929547 1515111533
29993 InsetLayout DocBook
29994 \change_unchanged
29995
29996 \end_layout
29997
29998 \begin_layout Standard
29999
30000 \change_inserted -970929547 1496611894
30001 The DocBook output of insets can also be controlled by information in layout
30002  files.
30003 \end_layout
30004
30005 \begin_layout Standard
30006
30007 \change_inserted -970929547 1496612045
30008 The DocBook \SpecialChar LyX
30009  outputs for an inset has the following form:
30010 \end_layout
30011
30012 \begin_layout LyX-Code
30013
30014 \change_inserted -970929547 1515110861
30015 <wrappertag wrapperattr>
30016 \end_layout
30017
30018 \begin_layout LyX-Code
30019
30020 \change_inserted -970929547 1515110868
30021   <tag attr>
30022 \end_layout
30023
30024 \begin_layout LyX-Code
30025
30026 \change_inserted -970929547 1515110869
30027     <innertag innerattr>
30028 \end_layout
30029
30030 \begin_layout LyX-Code
30031
30032 \change_inserted -970929547 1515110869
30033       Contents of the inset.
30034 \end_layout
30035
30036 \begin_layout LyX-Code
30037
30038 \change_inserted -970929547 1515110870
30039     </innertag>
30040 \end_layout
30041
30042 \begin_layout LyX-Code
30043
30044 \change_inserted -970929547 1515110871
30045   </tag>
30046 \end_layout
30047
30048 \begin_layout LyX-Code
30049
30050 \change_inserted -970929547 1515111172
30051 </wrappertag>
30052 \end_layout
30053
30054 \begin_layout Standard
30055
30056 \change_inserted -970929547 1515111186
30057 For an itemising inset, it rather looks like this: 
30058 \end_layout
30059
30060 \begin_layout LyX-Code
30061
30062 \change_inserted -970929547 1515111186
30063 <wrappertag wrapperattr>
30064 \end_layout
30065
30066 \begin_layout LyX-Code
30067
30068 \change_inserted -970929547 1515111186
30069   <tag attr>
30070 \end_layout
30071
30072 \begin_layout LyX-Code
30073
30074 \change_inserted -970929547 1515111186
30075     <innertag innerattr>
30076 \end_layout
30077
30078 \begin_layout LyX-Code
30079
30080 \change_inserted -970929547 1515111362
30081       <itemwrappertag itemwrapperattr>
30082 \end_layout
30083
30084 \begin_layout LyX-Code
30085
30086 \change_inserted -970929547 1515111364
30087         <itemlabeltag itemattr>
30088 \end_layout
30089
30090 \begin_layout LyX-Code
30091
30092 \change_inserted -970929547 1515111367
30093           Label of the first item.
30094 \end_layout
30095
30096 \begin_layout LyX-Code
30097
30098 \change_inserted -970929547 1515111362
30099         </itemtag>
30100 \change_unchanged
30101
30102 \end_layout
30103
30104 \begin_layout LyX-Code
30105
30106 \change_inserted -970929547 1515111517
30107         <itemtag itemattr>
30108 \end_layout
30109
30110 \begin_layout LyX-Code
30111
30112 \change_inserted -970929547 1515111517
30113           <itemtag itemattr>
30114 \change_unchanged
30115
30116 \end_layout
30117
30118 \begin_layout LyX-Code
30119
30120 \change_inserted -970929547 1515111516
30121             Contents of the first item.
30122 \end_layout
30123
30124 \begin_layout LyX-Code
30125
30126 \change_inserted -970929547 1515111514
30127           </itemtag>
30128 \change_unchanged
30129
30130 \end_layout
30131
30132 \begin_layout LyX-Code
30133
30134 \change_inserted -970929547 1515111247
30135         </itemtag>
30136 \change_unchanged
30137
30138 \end_layout
30139
30140 \begin_layout LyX-Code
30141
30142 \change_inserted -970929547 1515111221
30143       </itemwrappertag>
30144 \end_layout
30145
30146 \begin_layout LyX-Code
30147
30148 \change_inserted -970929547 1515111370
30149       <itemwrappertag itemwrapperattr>
30150 \end_layout
30151
30152 \begin_layout LyX-Code
30153
30154 \change_inserted -970929547 1515111370
30155         <itemlabeltag itemattr>
30156 \end_layout
30157
30158 \begin_layout LyX-Code
30159
30160 \change_inserted -970929547 1515111372
30161           Label of the second item.
30162 \end_layout
30163
30164 \begin_layout LyX-Code
30165
30166 \change_inserted -970929547 1515111370
30167         </itemtag>
30168 \change_unchanged
30169
30170 \end_layout
30171
30172 \begin_layout LyX-Code
30173
30174 \change_inserted -970929547 1515111504
30175         <itemtag itemattr>
30176 \end_layout
30177
30178 \begin_layout LyX-Code
30179
30180 \change_inserted -970929547 1515111505
30181           <itemtag itemattr>
30182 \change_unchanged
30183
30184 \end_layout
30185
30186 \begin_layout LyX-Code
30187
30188 \change_inserted -970929547 1515111507
30189             Contents of the second item.
30190 \end_layout
30191
30192 \begin_layout LyX-Code
30193
30194 \change_inserted -970929547 1515111509
30195           </itemtag>
30196 \change_unchanged
30197
30198 \end_layout
30199
30200 \begin_layout LyX-Code
30201
30202 \change_inserted -970929547 1515111251
30203         </itemtag>
30204 \change_unchanged
30205
30206 \end_layout
30207
30208 \begin_layout LyX-Code
30209
30210 \change_inserted -970929547 1515111221
30211       </itemwrappertag>
30212 \change_unchanged
30213
30214 \end_layout
30215
30216 \begin_layout LyX-Code
30217
30218 \change_inserted -970929547 1515111219
30219       ...
30220 \change_unchanged
30221
30222 \end_layout
30223
30224 \begin_layout LyX-Code
30225
30226 \change_inserted -970929547 1515111186
30227     </innertag>
30228 \end_layout
30229
30230 \begin_layout LyX-Code
30231
30232 \change_inserted -970929547 1515111186
30233   </tag>
30234 \end_layout
30235
30236 \begin_layout LyX-Code
30237
30238 \change_inserted -970929547 1515111186
30239 </wrappertag>
30240 \end_layout
30241
30242 \begin_layout Standard
30243
30244 \change_inserted -970929547 1515111183
30245 If the inset permits multiple paragraphs—that is, if 
30246 \begin_inset Flex Code
30247 status collapsed
30248
30249 \begin_layout Plain Layout
30250
30251 \change_inserted -970929547 1496610966
30252 MultiPar
30253 \change_unchanged
30254
30255 \end_layout
30256
30257 \end_inset
30258
30259  is true—then the contents of the inset will 
30260 \change_deleted 34634807 1620029217
30261 itself
30262 \change_inserted 34634807 1620029219
30263 themselves
30264 \change_inserted -970929547 1515111183
30265  be output as paragraphs formatted according to the styles used for those
30266  paragraphs (standard, quote, and the like).
30267  The inner tag is optional and, by default, does not appear.
30268 \end_layout
30269
30270 \begin_layout Standard
30271
30272 \change_inserted -970929547 1496610966
30273 The specific tags and attributes output for each inset can be controlled
30274  by means of the following layout tags.
30275 \end_layout
30276
30277 \begin_layout Description
30278
30279 \change_inserted -970929547 1515110317
30280 \begin_inset Flex Code
30281 status collapsed
30282
30283 \begin_layout Plain Layout
30284
30285 \change_inserted -970929547 1515109695
30286 DocBookAttr
30287 \change_unchanged
30288
30289 \end_layout
30290
30291 \end_inset
30292
30293  [
30294 \begin_inset Flex Code
30295 status collapsed
30296
30297 \begin_layout Plain Layout
30298
30299 \change_inserted -970929547 1496611854
30300 string
30301 \change_unchanged
30302
30303 \end_layout
30304
30305 \end_inset
30306
30307 ] Specifies attribute information to be output with the main tag, replacing
30308  
30309 \begin_inset Quotes eld
30310 \end_inset
30311
30312
30313 \begin_inset Flex Code
30314 status collapsed
30315
30316 \begin_layout Plain Layout
30317
30318 \change_inserted -970929547 1515110044
30319 attr
30320 \change_unchanged
30321
30322 \end_layout
30323
30324 \end_inset
30325
30326
30327 \begin_inset Quotes erd
30328 \end_inset
30329
30330  in the example above.
30331  This information can be used in further processing of the DocBook files.
30332  
30333 \end_layout
30334
30335 \begin_layout Description
30336
30337 \change_inserted -970929547 1515110973
30338 \begin_inset Flex Code
30339 status collapsed
30340
30341 \begin_layout Plain Layout
30342
30343 \change_inserted -970929547 1515110319
30344 DocBookInInfo
30345 \change_unchanged
30346
30347 \end_layout
30348
30349 \end_inset
30350
30351  [
30352 \begin_inset Flex Code
30353 status collapsed
30354
30355 \begin_layout Plain Layout
30356
30357 \change_inserted -970929547 1515110384
30358 never, always, maybe
30359 \change_unchanged
30360
30361 \end_layout
30362
30363 \end_inset
30364
30365 ] Specifies whether this tag goes into the 
30366 \begin_inset Flex Code
30367 status collapsed
30368
30369 \begin_layout Plain Layout
30370
30371 \change_inserted -970929547 1515110412
30372 <info>
30373 \change_unchanged
30374
30375 \end_layout
30376
30377 \end_inset
30378
30379  tag at the beginning of the parent layout.
30380  
30381 \begin_inset Flex Code
30382 status collapsed
30383
30384 \begin_layout Plain Layout
30385
30386 \change_inserted -970929547 1515110437
30387 never
30388 \change_unchanged
30389
30390 \end_layout
30391
30392 \end_inset
30393
30394  indicates that the tag never goes into 
30395 \begin_inset Flex Code
30396 status collapsed
30397
30398 \begin_layout Plain Layout
30399
30400 \change_inserted -970929547 1515110497
30401 <info>
30402 \change_unchanged
30403
30404 \end_layout
30405
30406 \end_inset
30407
30408  (this is default value, and corresponds to usual content).
30409  
30410 \begin_inset Flex Code
30411 status collapsed
30412
30413 \begin_layout Plain Layout
30414
30415 \change_inserted -970929547 1515110517
30416 always
30417 \change_unchanged
30418
30419 \end_layout
30420
30421 \end_inset
30422
30423  indicates that the tag always goes into 
30424 \begin_inset Flex Code
30425 status collapsed
30426
30427 \begin_layout Plain Layout
30428
30429 \change_inserted -970929547 1515110514
30430 <info>
30431 \change_unchanged
30432
30433 \end_layout
30434
30435 \end_inset
30436
30437  (this corresponds to usual metadata): if there is no 
30438 \begin_inset Flex Code
30439 status collapsed
30440
30441 \begin_layout Plain Layout
30442
30443 \change_inserted -970929547 1515110550
30444 <info>
30445 \change_unchanged
30446
30447 \end_layout
30448
30449 \end_inset
30450
30451  tag for the parent, one 
30452 \series bold
30453 will
30454 \series default
30455  be generated.
30456  
30457 \begin_inset Flex Code
30458 status collapsed
30459
30460 \begin_layout Plain Layout
30461
30462 \change_inserted -970929547 1515110540
30463 maybe
30464 \change_unchanged
30465
30466 \end_layout
30467
30468 \end_inset
30469
30470  indicates that the tag may go into 
30471 \begin_inset Flex Code
30472 status collapsed
30473
30474 \begin_layout Plain Layout
30475
30476 \change_inserted -970929547 1515110538
30477 <info>
30478 \change_unchanged
30479
30480 \end_layout
30481
30482 \end_inset
30483
30484  (this is only the case for titles): if there is no 
30485 \begin_inset Flex Code
30486 status collapsed
30487
30488 \begin_layout Plain Layout
30489
30490 \change_inserted -970929547 1515110585
30491 <info>
30492 \change_unchanged
30493
30494 \end_layout
30495
30496 \end_inset
30497
30498  tag for the parent, 
30499 \series bold
30500 none
30501 \series default
30502  will be generated, the corresponding tag will be output directly as content.
30503  
30504 \end_layout
30505
30506 \begin_layout Description
30507
30508 \change_inserted -970929547 1515111461
30509 \begin_inset Flex Code
30510 status collapsed
30511
30512 \begin_layout Plain Layout
30513
30514 \change_inserted -970929547 1515110974
30515 DocBookItemAttr
30516 \change_unchanged
30517
30518 \end_layout
30519
30520 \end_inset
30521
30522  [
30523 \begin_inset Flex Code
30524 status collapsed
30525
30526 \begin_layout Plain Layout
30527
30528 \change_inserted -970929547 1515110973
30529 string
30530 \change_unchanged
30531
30532 \end_layout
30533
30534 \end_inset
30535
30536 ] Specifies attribute information to be output with the item tag, replacing
30537  
30538 \begin_inset Quotes eld
30539 \end_inset
30540
30541
30542 \begin_inset Flex Code
30543 status collapsed
30544
30545 \begin_layout Plain Layout
30546
30547 \change_inserted -970929547 1515110984
30548 itemattr
30549 \change_unchanged
30550
30551 \end_layout
30552
30553 \end_inset
30554
30555
30556 \begin_inset Quotes erd
30557 \end_inset
30558
30559  in the example above.
30560  This information can be used in further processing of the DocBook files.
30561  
30562 \end_layout
30563
30564 \begin_layout Description
30565
30566 \change_inserted -970929547 1515111471
30567 \begin_inset Flex Code
30568 status collapsed
30569
30570 \begin_layout Plain Layout
30571
30572 \change_inserted -970929547 1515111465
30573 DocBookItemInnerAttr
30574 \change_unchanged
30575
30576 \end_layout
30577
30578 \end_inset
30579
30580  [
30581 \begin_inset Flex Code
30582 status collapsed
30583
30584 \begin_layout Plain Layout
30585
30586 \change_inserted -970929547 1515111461
30587 string
30588 \change_unchanged
30589
30590 \end_layout
30591
30592 \end_inset
30593
30594 ] Specifies attribute information to be output with the item inner tag,
30595  replacing 
30596 \begin_inset Quotes eld
30597 \end_inset
30598
30599
30600 \begin_inset Flex Code
30601 status collapsed
30602
30603 \begin_layout Plain Layout
30604
30605 \change_inserted -970929547 1515111476
30606 iteminnerattr
30607 \change_unchanged
30608
30609 \end_layout
30610
30611 \end_inset
30612
30613
30614 \begin_inset Quotes erd
30615 \end_inset
30616
30617  in the example above.
30618  This information can be used in further processing of the DocBook files.
30619  
30620 \end_layout
30621
30622 \begin_layout Description
30623
30624 \change_inserted -970929547 1515111494
30625 \begin_inset Flex Code
30626 status collapsed
30627
30628 \begin_layout Plain Layout
30629
30630 \change_inserted -970929547 1515111467
30631 DocBookItemInnerTag
30632 \change_unchanged
30633
30634 \end_layout
30635
30636 \end_inset
30637
30638  [
30639 \begin_inset Flex Code
30640 status collapsed
30641
30642 \begin_layout Plain Layout
30643
30644 \change_inserted -970929547 1515111461
30645 string
30646 \change_unchanged
30647
30648 \end_layout
30649
30650 \end_inset
30651
30652 ] The tag to be used for the item inner tag within the inset, replacing
30653  
30654 \begin_inset Quotes eld
30655 \end_inset
30656
30657
30658 \begin_inset Flex Code
30659 status collapsed
30660
30661 \begin_layout Plain Layout
30662
30663 \change_inserted -970929547 1515111486
30664 iteminnertag
30665 \change_unchanged
30666
30667 \end_layout
30668
30669 \end_inset
30670
30671
30672 \begin_inset Quotes erd
30673 \end_inset
30674
30675  in the example above.
30676  The default is 
30677 \begin_inset Flex Code
30678 status collapsed
30679
30680 \begin_layout Plain Layout
30681
30682 \change_inserted -970929547 1515111461
30683 NONE
30684 \change_unchanged
30685
30686 \end_layout
30687
30688 \end_inset
30689
30690 , indicating that there is no item inner tag: content is directly output
30691  without it for each itemised element.
30692  This parameter only makes sense when itemising layouts are used, such as
30693  lists.
30694  
30695 \change_inserted 1075283030 1598469472
30696 The most likely value is 
30697 \begin_inset Quotes eld
30698 \end_inset
30699
30700
30701 \begin_inset Flex Code
30702 status collapsed
30703
30704 \begin_layout Plain Layout
30705
30706 \change_inserted 1075283030 1598469476
30707 para
30708 \change_unchanged
30709
30710 \end_layout
30711
30712 \end_inset
30713
30714
30715 \begin_inset Quotes erd
30716 \end_inset
30717
30718 .
30719 \begin_inset Newline newline
30720 \end_inset
30721
30722 When a list item is split using a new line, the item inner tag will be repeated
30723  for each part of the paragraph, parts being separated by new lines.
30724  
30725 \end_layout
30726
30727 \begin_layout Description
30728
30729 \change_inserted 1075283030 1597699866
30730 \begin_inset Flex Code
30731 status collapsed
30732
30733 \begin_layout Plain Layout
30734
30735 \change_inserted 1075283030 1597699853
30736 DocBookItemInnerTagType
30737 \change_unchanged
30738
30739 \end_layout
30740
30741 \end_inset
30742
30743  [
30744 \begin_inset Flex Code
30745 status collapsed
30746
30747 \begin_layout Plain Layout
30748
30749 \change_inserted 1075283030 1597699866
30750 block, paragraph, inline
30751 \change_unchanged
30752
30753 \end_layout
30754
30755 \end_inset
30756
30757 ] The new-line policy for this tag, see Section
30758 \begin_inset space ~
30759 \end_inset
30760
30761
30762 \begin_inset CommandInset ref
30763 LatexCommand ref
30764 reference "subsec:DocBook-New-line-policy"
30765 plural "false"
30766 caps "false"
30767 noprefix "false"
30768
30769 \end_inset
30770
30771  for the details.
30772  
30773 \change_unchanged
30774
30775 \end_layout
30776
30777 \begin_layout Description
30778
30779 \change_inserted -970929547 1515111290
30780 \begin_inset Flex Code
30781 status collapsed
30782
30783 \begin_layout Plain Layout
30784
30785 \change_inserted -970929547 1515111283
30786 DocBookItemLabelAttr
30787 \change_unchanged
30788
30789 \end_layout
30790
30791 \end_inset
30792
30793  [
30794 \begin_inset Flex Code
30795 status collapsed
30796
30797 \begin_layout Plain Layout
30798
30799 \change_inserted -970929547 1515111279
30800 string
30801 \change_unchanged
30802
30803 \end_layout
30804
30805 \end_inset
30806
30807 ] Specifies attribute information to be output with the item label tag,
30808  replacing 
30809 \begin_inset Quotes eld
30810 \end_inset
30811
30812
30813 \begin_inset Flex Code
30814 status collapsed
30815
30816 \begin_layout Plain Layout
30817
30818 \change_inserted -970929547 1515111304
30819 itemlabelattr
30820 \change_unchanged
30821
30822 \end_layout
30823
30824 \end_inset
30825
30826
30827 \begin_inset Quotes erd
30828 \end_inset
30829
30830  in the example above.
30831  This information can be used in further processing of the DocBook files.
30832  
30833 \end_layout
30834
30835 \begin_layout Description
30836
30837 \change_inserted -970929547 1515111337
30838 \begin_inset Flex Code
30839 status collapsed
30840
30841 \begin_layout Plain Layout
30842
30843 \change_inserted -970929547 1515111285
30844 DocBookItemLabelTag
30845 \change_unchanged
30846
30847 \end_layout
30848
30849 \end_inset
30850
30851  [
30852 \begin_inset Flex Code
30853 status collapsed
30854
30855 \begin_layout Plain Layout
30856
30857 \change_inserted -970929547 1515111279
30858 string
30859 \change_unchanged
30860
30861 \end_layout
30862
30863 \end_inset
30864
30865 ] The tag to be used for the item label tag within the inset, replacing
30866  
30867 \begin_inset Quotes eld
30868 \end_inset
30869
30870
30871 \begin_inset Flex Code
30872 status collapsed
30873
30874 \begin_layout Plain Layout
30875
30876 \change_inserted -970929547 1515111311
30877 itemlabeltag
30878 \change_unchanged
30879
30880 \end_layout
30881
30882 \end_inset
30883
30884
30885 \begin_inset Quotes erd
30886 \end_inset
30887
30888  in the example above.
30889  This parameter only makes sense when itemising layouts are used with a
30890  notion of labels, such as definition lists.
30891  
30892 \change_inserted 1075283030 1597699874
30893
30894 \end_layout
30895
30896 \begin_layout Description
30897
30898 \change_inserted 1075283030 1597699874
30899 \begin_inset Flex Code
30900 status collapsed
30901
30902 \begin_layout Plain Layout
30903
30904 \change_inserted 1075283030 1597699880
30905 DocBookItemLabelTagType
30906 \change_unchanged
30907
30908 \end_layout
30909
30910 \end_inset
30911
30912  [
30913 \begin_inset Flex Code
30914 status collapsed
30915
30916 \begin_layout Plain Layout
30917
30918 \change_inserted 1075283030 1597699874
30919 block, paragraph, inline
30920 \change_unchanged
30921
30922 \end_layout
30923
30924 \end_inset
30925
30926 ] The new-line policy for this tag, see Section
30927 \begin_inset space ~
30928 \end_inset
30929
30930
30931 \begin_inset CommandInset ref
30932 LatexCommand ref
30933 reference "subsec:DocBook-New-line-policy"
30934 plural "false"
30935 caps "false"
30936 noprefix "false"
30937
30938 \end_inset
30939
30940  for the details.
30941  
30942 \change_unchanged
30943
30944 \end_layout
30945
30946 \begin_layout Description
30947
30948 \change_inserted -970929547 1515111124
30949 \begin_inset Flex Code
30950 status collapsed
30951
30952 \begin_layout Plain Layout
30953
30954 \change_inserted -970929547 1515111060
30955 DocBookItemTag
30956 \change_unchanged
30957
30958 \end_layout
30959
30960 \end_inset
30961
30962  [
30963 \begin_inset Flex Code
30964 status collapsed
30965
30966 \begin_layout Plain Layout
30967
30968 \change_inserted -970929547 1515111060
30969 string
30970 \change_unchanged
30971
30972 \end_layout
30973
30974 \end_inset
30975
30976 ] The tag to be used for the item tag within the inset, replacing 
30977 \begin_inset Quotes eld
30978 \end_inset
30979
30980
30981 \begin_inset Flex Code
30982 status collapsed
30983
30984 \begin_layout Plain Layout
30985
30986 \change_inserted -970929547 1515111060
30987 itemtag
30988 \change_unchanged
30989
30990 \end_layout
30991
30992 \end_inset
30993
30994
30995 \begin_inset Quotes erd
30996 \end_inset
30997
30998  in the example above.
30999  The default is 
31000 \begin_inset Flex Code
31001 status collapsed
31002
31003 \begin_layout Plain Layout
31004
31005 \change_inserted -970929547 1515111060
31006 NONE
31007 \change_unchanged
31008
31009 \end_layout
31010
31011 \end_inset
31012
31013 , indicating that there is no item tag.
31014  This parameter only makes sense when itemising layouts are used, such as
31015  lists.
31016  
31017 \change_inserted 1075283030 1597699890
31018
31019 \end_layout
31020
31021 \begin_layout Description
31022
31023 \change_inserted 1075283030 1597699890
31024 \begin_inset Flex Code
31025 status collapsed
31026
31027 \begin_layout Plain Layout
31028
31029 \change_inserted 1075283030 1597699890
31030 DocBookItemTagType
31031 \change_unchanged
31032
31033 \end_layout
31034
31035 \end_inset
31036
31037  [
31038 \begin_inset Flex Code
31039 status collapsed
31040
31041 \begin_layout Plain Layout
31042
31043 \change_inserted 1075283030 1597699890
31044 block, paragraph, inline
31045 \change_unchanged
31046
31047 \end_layout
31048
31049 \end_inset
31050
31051 ] The new-line policy for this tag, see Section
31052 \begin_inset space ~
31053 \end_inset
31054
31055
31056 \begin_inset CommandInset ref
31057 LatexCommand ref
31058 reference "subsec:DocBook-New-line-policy"
31059 plural "false"
31060 caps "false"
31061 noprefix "false"
31062
31063 \end_inset
31064
31065  for the details.
31066  
31067 \change_unchanged
31068
31069 \end_layout
31070
31071 \begin_layout Description
31072
31073 \change_inserted -970929547 1515111298
31074 \begin_inset Flex Code
31075 status collapsed
31076
31077 \begin_layout Plain Layout
31078
31079 \change_inserted -970929547 1515111124
31080 DocBookItemWrapperAttr
31081 \change_unchanged
31082
31083 \end_layout
31084
31085 \end_inset
31086
31087  [
31088 \begin_inset Flex Code
31089 status collapsed
31090
31091 \begin_layout Plain Layout
31092
31093 \change_inserted -970929547 1515111124
31094 string
31095 \change_unchanged
31096
31097 \end_layout
31098
31099 \end_inset
31100
31101 ] Specifies attribute information to be output with the item wrapper tag,
31102  replacing 
31103 \begin_inset Quotes eld
31104 \end_inset
31105
31106
31107 \begin_inset Flex Code
31108 status collapsed
31109
31110 \begin_layout Plain Layout
31111
31112 \change_inserted -970929547 1515111150
31113 itemwrapperattr
31114 \change_unchanged
31115
31116 \end_layout
31117
31118 \end_inset
31119
31120
31121 \begin_inset Quotes erd
31122 \end_inset
31123
31124  in the example above.
31125  This information can be used in further processing of the DocBook files.
31126  
31127 \change_unchanged
31128
31129 \end_layout
31130
31131 \begin_layout Description
31132
31133 \change_inserted -970929547 1515111113
31134 \begin_inset Flex Code
31135 status collapsed
31136
31137 \begin_layout Plain Layout
31138
31139 \change_inserted -970929547 1515111073
31140 DocBookItemWrapperTag
31141 \change_unchanged
31142
31143 \end_layout
31144
31145 \end_inset
31146
31147  [
31148 \begin_inset Flex Code
31149 status collapsed
31150
31151 \begin_layout Plain Layout
31152
31153 \change_inserted -970929547 1515111073
31154 string
31155 \change_unchanged
31156
31157 \end_layout
31158
31159 \end_inset
31160
31161 ] The tag to be used for the item wrapper tag within the inset, replacing
31162  
31163 \begin_inset Quotes eld
31164 \end_inset
31165
31166
31167 \begin_inset Flex Code
31168 status collapsed
31169
31170 \begin_layout Plain Layout
31171
31172 \change_inserted -970929547 1515111083
31173 itemwrappertag
31174 \change_unchanged
31175
31176 \end_layout
31177
31178 \end_inset
31179
31180
31181 \begin_inset Quotes erd
31182 \end_inset
31183
31184  in the example above.
31185  The default is 
31186 \begin_inset Flex Code
31187 status collapsed
31188
31189 \begin_layout Plain Layout
31190
31191 \change_inserted -970929547 1515111073
31192 NONE
31193 \change_unchanged
31194
31195 \end_layout
31196
31197 \end_inset
31198
31199 , indicating that there is no item wrapper tag: tag and content are directly
31200  output without it for each itemised element.
31201  This parameter only makes sense when itemising layouts are used, such as
31202  lists.
31203  
31204 \change_inserted 1075283030 1597699897
31205
31206 \end_layout
31207
31208 \begin_layout Description
31209
31210 \change_inserted 1075283030 1597699897
31211 \begin_inset Flex Code
31212 status collapsed
31213
31214 \begin_layout Plain Layout
31215
31216 \change_inserted 1075283030 1597699900
31217 DocBookItemWrapperTagType
31218 \change_unchanged
31219
31220 \end_layout
31221
31222 \end_inset
31223
31224  [
31225 \begin_inset Flex Code
31226 status collapsed
31227
31228 \begin_layout Plain Layout
31229
31230 \change_inserted 1075283030 1597699897
31231 block, paragraph, inline
31232 \change_unchanged
31233
31234 \end_layout
31235
31236 \end_inset
31237
31238 ] The new-line policy for this tag, see Section
31239 \begin_inset space ~
31240 \end_inset
31241
31242
31243 \begin_inset CommandInset ref
31244 LatexCommand ref
31245 reference "subsec:DocBook-New-line-policy"
31246 plural "false"
31247 caps "false"
31248 noprefix "false"
31249
31250 \end_inset
31251
31252  for the details.
31253  
31254 \change_unchanged
31255
31256 \end_layout
31257
31258 \begin_layout Description
31259
31260 \change_inserted -970929547 1515110104
31261 \begin_inset Flex Code
31262 status collapsed
31263
31264 \begin_layout Plain Layout
31265
31266 \change_inserted -970929547 1515110104
31267 DocBookInnerAttr
31268 \change_unchanged
31269
31270 \end_layout
31271
31272 \end_inset
31273
31274  [
31275 \begin_inset Flex Code
31276 status collapsed
31277
31278 \begin_layout Plain Layout
31279
31280 \change_inserted -970929547 1515110104
31281 string
31282 \change_unchanged
31283
31284 \end_layout
31285
31286 \end_inset
31287
31288 ] Specifies attribute information to be output with the inner tag, replacing
31289  
31290 \begin_inset Quotes eld
31291 \end_inset
31292
31293
31294 \begin_inset Flex Code
31295 status collapsed
31296
31297 \begin_layout Plain Layout
31298
31299 \change_inserted -970929547 1515110104
31300 innerattr
31301 \change_unchanged
31302
31303 \end_layout
31304
31305 \end_inset
31306
31307
31308 \begin_inset Quotes erd
31309 \end_inset
31310
31311  in the example above.
31312  This information can be used in further processing of the DocBook files.
31313  
31314 \end_layout
31315
31316 \begin_layout Description
31317
31318 \change_inserted -970929547 1515110906
31319 \begin_inset Flex Code
31320 status collapsed
31321
31322 \begin_layout Plain Layout
31323
31324 \change_inserted -970929547 1515110104
31325 DocBookInnerTag
31326 \change_unchanged
31327
31328 \end_layout
31329
31330 \end_inset
31331
31332  [
31333 \begin_inset Flex Code
31334 status collapsed
31335
31336 \begin_layout Plain Layout
31337
31338 \change_inserted -970929547 1515110104
31339 string
31340 \change_unchanged
31341
31342 \end_layout
31343
31344 \end_inset
31345
31346 ] The tag to be used for the inner tag within the inset, replacing 
31347 \begin_inset Quotes eld
31348 \end_inset
31349
31350
31351 \begin_inset Flex Code
31352 status collapsed
31353
31354 \begin_layout Plain Layout
31355
31356 \change_inserted -970929547 1515110104
31357 innertag
31358 \change_unchanged
31359
31360 \end_layout
31361
31362 \end_inset
31363
31364
31365 \begin_inset Quotes erd
31366 \end_inset
31367
31368  in the example above.
31369  The default is 
31370 \begin_inset Flex Code
31371 status collapsed
31372
31373 \begin_layout Plain Layout
31374
31375 \change_inserted -970929547 1515110791
31376 NONE
31377 \change_unchanged
31378
31379 \end_layout
31380
31381 \end_inset
31382
31383 , indicating that there is no inner tag: content is directly output without
31384  it.
31385 \change_inserted 1075283030 1597699904
31386
31387 \end_layout
31388
31389 \begin_layout Description
31390
31391 \change_inserted 1075283030 1597699904
31392 \begin_inset Flex Code
31393 status collapsed
31394
31395 \begin_layout Plain Layout
31396
31397 \change_inserted 1075283030 1597699904
31398 DocBookInnerTagType
31399 \change_unchanged
31400
31401 \end_layout
31402
31403 \end_inset
31404
31405  [
31406 \begin_inset Flex Code
31407 status collapsed
31408
31409 \begin_layout Plain Layout
31410
31411 \change_inserted 1075283030 1597699904
31412 block, paragraph, inline
31413 \change_unchanged
31414
31415 \end_layout
31416
31417 \end_inset
31418
31419 ] The new-line policy for this tag, see Section
31420 \begin_inset space ~
31421 \end_inset
31422
31423
31424 \begin_inset CommandInset ref
31425 LatexCommand ref
31426 reference "subsec:DocBook-New-line-policy"
31427 plural "false"
31428 caps "false"
31429 noprefix "false"
31430
31431 \end_inset
31432
31433  for the details.
31434  
31435 \change_unchanged
31436
31437 \end_layout
31438
31439 \begin_layout Description
31440
31441 \change_inserted -970929547 1515110753
31442 \begin_inset Flex Code
31443 status collapsed
31444
31445 \begin_layout Plain Layout
31446
31447 \change_inserted -970929547 1515110665
31448 DocBookSectionTag
31449 \change_unchanged
31450
31451 \end_layout
31452
31453 \end_inset
31454
31455  [
31456 \begin_inset Flex Code
31457 status collapsed
31458
31459 \begin_layout Plain Layout
31460
31461 \change_inserted -970929547 1515110661
31462 string
31463 \change_unchanged
31464
31465 \end_layout
31466
31467 \end_inset
31468
31469 ] Specifies the tag that corresponds to this kind of section.
31470  This parameter only makes sense for sectioning elements (part, chapter,
31471  section, etc.).
31472  The default value is 
31473 \begin_inset Flex Code
31474 status collapsed
31475
31476 \begin_layout Plain Layout
31477
31478 \change_inserted -970929547 1515110721
31479 section
31480 \change_unchanged
31481
31482 \end_layout
31483
31484 \end_inset
31485
31486 , and is only overridden when DocBook uses something else for sectioning
31487  (
31488 \change_inserted 1075283030 1597699921
31489 typically, 
31490 \change_inserted -970929547 1515110753
31491 parts and chapters of a book).
31492  
31493 \change_unchanged
31494
31495 \end_layout
31496
31497 \begin_layout Description
31498
31499 \change_inserted -970929547 1515110811
31500 \begin_inset Flex Code
31501 status collapsed
31502
31503 \begin_layout Plain Layout
31504
31505 \change_inserted -970929547 1496612023
31506 DocBookTag
31507 \change_unchanged
31508
31509 \end_layout
31510
31511 \end_inset
31512
31513  [
31514 \begin_inset Flex Code
31515 status collapsed
31516
31517 \begin_layout Plain Layout
31518
31519 \change_inserted -970929547 1496610966
31520 string
31521 \change_unchanged
31522
31523 \end_layout
31524
31525 \end_inset
31526
31527 ] The tag to be used for this inset, replacing 
31528 \begin_inset Quotes eld
31529 \end_inset
31530
31531
31532 \begin_inset Flex Code
31533 status collapsed
31534
31535 \begin_layout Plain Layout
31536
31537 \change_inserted -970929547 1496612033
31538 tag
31539 \change_unchanged
31540
31541 \end_layout
31542
31543 \end_inset
31544
31545
31546 \begin_inset Quotes erd
31547 \end_inset
31548
31549  in the example above.
31550  The default is the name of the float and always needs to be changed, as
31551  DocBook provides no generic inset tag.
31552 \change_inserted 1075283030 1597699924
31553
31554 \end_layout
31555
31556 \begin_layout Description
31557
31558 \change_inserted 1075283030 1597699924
31559 \begin_inset Flex Code
31560 status collapsed
31561
31562 \begin_layout Plain Layout
31563
31564 \change_inserted 1075283030 1597699924
31565 DocBookTagType
31566 \change_unchanged
31567
31568 \end_layout
31569
31570 \end_inset
31571
31572  [
31573 \begin_inset Flex Code
31574 status collapsed
31575
31576 \begin_layout Plain Layout
31577
31578 \change_inserted 1075283030 1597699924
31579 block, paragraph, inline
31580 \change_unchanged
31581
31582 \end_layout
31583
31584 \end_inset
31585
31586 ] The new-line policy for this tag, see Section
31587 \begin_inset space ~
31588 \end_inset
31589
31590
31591 \begin_inset CommandInset ref
31592 LatexCommand ref
31593 reference "subsec:DocBook-New-line-policy"
31594 plural "false"
31595 caps "false"
31596 noprefix "false"
31597
31598 \end_inset
31599
31600  for the details.
31601  
31602 \change_unchanged
31603
31604 \end_layout
31605
31606 \begin_layout Description
31607
31608 \change_inserted -970929547 1515110832
31609 \begin_inset Flex Code
31610 status collapsed
31611
31612 \begin_layout Plain Layout
31613
31614 \change_inserted -970929547 1515110822
31615 DocBookWrapperAttr
31616 \change_unchanged
31617
31618 \end_layout
31619
31620 \end_inset
31621
31622  [
31623 \begin_inset Flex Code
31624 status collapsed
31625
31626 \begin_layout Plain Layout
31627
31628 \change_inserted -970929547 1515110811
31629 string
31630 \change_unchanged
31631
31632 \end_layout
31633
31634 \end_inset
31635
31636 ] Specifies attribute information to be output with the outer 
31637 \change_inserted 34634807 1620057958
31638 wrapper 
31639 \change_inserted -970929547 1515110832
31640 tag, replacing 
31641 \begin_inset Quotes eld
31642 \end_inset
31643
31644
31645 \begin_inset Flex Code
31646 status collapsed
31647
31648 \begin_layout Plain Layout
31649
31650 \change_inserted -970929547 1515110845
31651 wrapperattr
31652 \change_unchanged
31653
31654 \end_layout
31655
31656 \end_inset
31657
31658
31659 \begin_inset Quotes erd
31660 \end_inset
31661
31662  in the example above.
31663  This information can be used in further processing of the DocBook files.
31664  
31665 \end_layout
31666
31667 \begin_layout Description
31668
31669 \change_inserted -970929547 1515110917
31670 \begin_inset Flex Code
31671 status collapsed
31672
31673 \begin_layout Plain Layout
31674
31675 \change_inserted -970929547 1515110826
31676 DocBookWrapperTag
31677 \change_unchanged
31678
31679 \end_layout
31680
31681 \end_inset
31682
31683  [
31684 \begin_inset Flex Code
31685 status collapsed
31686
31687 \begin_layout Plain Layout
31688
31689 \change_inserted -970929547 1515110811
31690 string
31691 \change_unchanged
31692
31693 \end_layout
31694
31695 \end_inset
31696
31697 ] The tag to be used for the wrapper tag around the inset, replacing 
31698 \begin_inset Quotes eld
31699 \end_inset
31700
31701
31702 \begin_inset Flex Code
31703 status collapsed
31704
31705 \begin_layout Plain Layout
31706
31707 \change_inserted -970929547 1515110842
31708 wrappertag
31709 \change_unchanged
31710
31711 \end_layout
31712
31713 \end_inset
31714
31715
31716 \begin_inset Quotes erd
31717 \end_inset
31718
31719  in the example above.
31720  The default is 
31721 \begin_inset Flex Code
31722 status collapsed
31723
31724 \begin_layout Plain Layout
31725
31726 \change_inserted -970929547 1515110811
31727 NONE
31728 \change_unchanged
31729
31730 \end_layout
31731
31732 \end_inset
31733
31734 , indicating that there is no wrapper tag: tag and content are directly
31735  output without it.
31736 \change_inserted 1075283030 1597699929
31737
31738 \end_layout
31739
31740 \begin_layout Description
31741
31742 \change_inserted 1075283030 1597699929
31743 \begin_inset Flex Code
31744 status collapsed
31745
31746 \begin_layout Plain Layout
31747
31748 \change_inserted 1075283030 1597699932
31749 DocBookWrapperTagType
31750 \change_unchanged
31751
31752 \end_layout
31753
31754 \end_inset
31755
31756  [
31757 \begin_inset Flex Code
31758 status collapsed
31759
31760 \begin_layout Plain Layout
31761
31762 \change_inserted 1075283030 1597699929
31763 block, paragraph, inline
31764 \change_unchanged
31765
31766 \end_layout
31767
31768 \end_inset
31769
31770 ] The new-line policy for this tag, see Section
31771 \begin_inset space ~
31772 \end_inset
31773
31774
31775 \begin_inset CommandInset ref
31776 LatexCommand ref
31777 reference "subsec:DocBook-New-line-policy"
31778 plural "false"
31779 caps "false"
31780 noprefix "false"
31781
31782 \end_inset
31783
31784  for the details.
31785  
31786 \change_unchanged
31787
31788 \end_layout
31789
31790 \begin_layout Subsection
31791
31792 \change_inserted -970929547 1515110040
31793 Float DocBook
31794 \end_layout
31795
31796 \begin_layout Standard
31797
31798 \change_inserted -970929547 1496611700
31799 The DocBook output for floats too can be controlled by layout information.
31800  The output has the following form:
31801 \end_layout
31802
31803 \begin_layout LyX-Code
31804
31805 \change_inserted -970929547 1515109700
31806 <tag attr>
31807 \end_layout
31808
31809 \begin_layout LyX-Code
31810
31811 \change_inserted -970929547 1515110138
31812   Contents of the float as DocBook.
31813 \end_layout
31814
31815 \begin_layout LyX-Code
31816
31817 \change_inserted -970929547 1496610966
31818 </tag>
31819 \end_layout
31820
31821 \begin_layout Standard
31822
31823 \change_inserted -970929547 1496611715
31824 The caption, if there is one, is a separate inset and will be output as
31825  a title.
31826  
31827 \end_layout
31828
31829 \begin_layout Description
31830
31831 \change_inserted -970929547 1515110033
31832 \begin_inset Flex Code
31833 status collapsed
31834
31835 \begin_layout Plain Layout
31836
31837 \change_inserted -970929547 1515109702
31838 DocBookAttr
31839 \change_unchanged
31840
31841 \end_layout
31842
31843 \end_inset
31844
31845  [
31846 \begin_inset Flex Code
31847 status collapsed
31848
31849 \begin_layout Plain Layout
31850
31851 \change_inserted -970929547 1496610966
31852 string
31853 \change_unchanged
31854
31855 \end_layout
31856
31857 \end_inset
31858
31859 ] Specifies attribute information to be output with the main tag, replacing
31860  
31861 \begin_inset Quotes eld
31862 \end_inset
31863
31864
31865 \begin_inset Flex Code
31866 status collapsed
31867
31868 \begin_layout Plain Layout
31869
31870 \change_inserted -970929547 1515110035
31871 attr
31872 \change_unchanged
31873
31874 \end_layout
31875
31876 \end_inset
31877
31878
31879 \begin_inset Quotes erd
31880 \end_inset
31881
31882  in the example above.
31883  This information can be used in further processing of the DocBook files.
31884  
31885 \end_layout
31886
31887 \begin_layout Description
31888
31889 \change_inserted -970929547 1515110157
31890 \begin_inset Flex Code
31891 status collapsed
31892
31893 \begin_layout Plain Layout
31894
31895 \change_inserted -970929547 1496611782
31896 DocBookTag
31897 \change_unchanged
31898
31899 \end_layout
31900
31901 \end_inset
31902
31903  [
31904 \begin_inset Flex Code
31905 status collapsed
31906
31907 \begin_layout Plain Layout
31908
31909 \change_inserted -970929547 1496610966
31910 string
31911 \change_unchanged
31912
31913 \end_layout
31914
31915 \end_inset
31916
31917 ] The tag to be used for this float, replacing 
31918 \begin_inset Quotes eld
31919 \end_inset
31920
31921
31922 \begin_inset Flex Code
31923 status collapsed
31924
31925 \begin_layout Plain Layout
31926
31927 \change_inserted -970929547 1496610966
31928 tag
31929 \change_unchanged
31930
31931 \end_layout
31932
31933 \end_inset
31934
31935
31936 \begin_inset Quotes erd
31937 \end_inset
31938
31939  in the example above.
31940  The default is the name of the float and always needs to be changed, as
31941  DocBook provides no generic float tag.
31942 \end_layout
31943
31944 \begin_layout Subsection
31945
31946 \change_inserted -970929547 1515110157
31947 Bibliography formatting
31948 \end_layout
31949
31950 \begin_layout Standard
31951
31952 \change_deleted 1075283030 1597699984
31953 The 
31954 \change_inserted 1075283030 1597699985
31955 Included 
31956 \change_inserted -970929547 1515110187
31957 bibliograph
31958 \change_deleted 1075283030 1597699987
31959 y
31960 \change_inserted 1075283030 1597699987
31961 ies
31962 \change_inserted -970929547 1515110187
31963  cannot be formatted: all fields are always output in the database-like
31964  DocBook format (equivalent to a BibTeX file)
31965 \change_inserted 1075283030 1597700117
31966 , using the 
31967 \begin_inset Flex Code
31968 status collapsed
31969
31970 \begin_layout Plain Layout
31971
31972 \change_inserted 1075283030 1597700120
31973 biblioentry
31974 \change_unchanged
31975
31976 \end_layout
31977
31978 \end_inset
31979
31980  tag
31981 \change_inserted -970929547 1515110187
31982 .
31983 \change_inserted 1075283030 1597700092
31984
31985 \end_layout
31986
31987 \begin_layout Standard
31988
31989 \change_inserted 1075283030 1597700112
31990 When the bibliographic entries are manually inserted into the 
31991 \change_deleted 34634807 1620057319
31992 LyX
31993 \change_inserted 34634807 1620057319
31994 \SpecialChar LyX
31995
31996 \change_inserted 1075283030 1597700112
31997  document as Bibliography Items, the user deals with formatting 
31998 \change_unchanged
31999 them
32000 \change_inserted 1075283030 1597700112
32001 self: there is no attempt of parsing what the user wrote, the string is
32002  directly used (with the 
32003 \begin_inset Flex Code
32004 status collapsed
32005
32006 \begin_layout Plain Layout
32007
32008 \change_inserted 1075283030 1597700076
32009 bibliomixed
32010 \change_unchanged
32011
32012 \end_layout
32013
32014 \end_inset
32015
32016  tag).
32017  
32018 \change_unchanged
32019
32020 \end_layout
32021
32022 \begin_layout Chapter
32023 Including External Material
32024 \begin_inset CommandInset label
32025 LatexCommand label
32026 name "chap:Including-External-Material"
32027
32028 \end_inset
32029
32030
32031 \end_layout
32032
32033 \begin_layout Standard
32034 \begin_inset Box Shadowbox
32035 position "t"
32036 hor_pos "c"
32037 has_inner_box 1
32038 inner_pos "t"
32039 use_parbox 0
32040 use_makebox 0
32041 width "100col%"
32042 special "none"
32043 height "1in"
32044 height_special "totalheight"
32045 thickness "0.4pt"
32046 separation "3pt"
32047 shadowsize "4pt"
32048 framecolor "black"
32049 backgroundcolor "none"
32050 status open
32051
32052 \begin_layout Plain Layout
32053 WARNING: This portion of the documentation has not been updated for some
32054  time.
32055  We certainly hope that it is still accurate, but there are no guarantees.
32056 \end_layout
32057
32058 \end_inset
32059
32060
32061 \end_layout
32062
32063 \begin_layout Standard
32064 The use of material from sources external to \SpecialChar LyX
32065  is covered in detail in the
32066  
32067 \emph on
32068 Embedded Objects
32069 \emph default
32070  manual.
32071  This part of the manual covers what needs to happen behind the scenes for
32072  new sorts of material to be included.
32073 \end_layout
32074
32075 \begin_layout Section
32076 How does it work?
32077 \end_layout
32078
32079 \begin_layout Standard
32080 The external material feature is based on the concept of a 
32081 \emph on
32082 template
32083 \emph default
32084 .
32085  A template is a specification of how \SpecialChar LyX
32086  should interface with a certain kind
32087  of material.
32088  As bundled, \SpecialChar LyX
32089  comes with predefined templates for Xfig figures, various
32090  raster format images, chess diagrams, and LilyPond music notation.
32091  You can check the actual list by using the menu 
32092 \begin_inset Flex Noun
32093 status collapsed
32094
32095 \begin_layout Plain Layout
32096 Insert\SpecialChar menuseparator
32097 File\SpecialChar menuseparator
32098 External Material
32099 \end_layout
32100
32101 \end_inset
32102
32103 .
32104  Furthermore, it is possible to roll your own template to support a specific
32105  kind of material.
32106  Later we'll describe in more detail what is involved, and hopefully you
32107  will submit all the templates you create so we can include them in a later
32108  \SpecialChar LyX
32109  version.
32110 \end_layout
32111
32112 \begin_layout Standard
32113 Another basic idea of the external material feature is to distinguish between
32114  the original file that serves as a base for final material and the produced
32115  file that is included in your exported or printed document.
32116  For example, consider the case of a figure produced with 
32117 \begin_inset Flex Code
32118 status collapsed
32119
32120 \begin_layout Plain Layout
32121 Xfig
32122 \end_layout
32123
32124 \end_inset
32125
32126 .
32127  The Xfig application itself works on an original file with the 
32128 \begin_inset Flex Code
32129 status collapsed
32130
32131 \begin_layout Plain Layout
32132 .fig
32133 \end_layout
32134
32135 \end_inset
32136
32137  extension.
32138  Within Xfig, you create and change your figure, and when you are done,
32139  you save the 
32140 \begin_inset Flex Code
32141 status collapsed
32142
32143 \begin_layout Plain Layout
32144 fig
32145 \end_layout
32146
32147 \end_inset
32148
32149 -file.
32150  When you want to include the figure in your document, you invoke 
32151 \begin_inset Flex Code
32152 status collapsed
32153
32154 \begin_layout Plain Layout
32155 transfig
32156 \end_layout
32157
32158 \end_inset
32159
32160  in order to create a PostScript file that can readily be included in your
32161  \SpecialChar LaTeX
32162  file.
32163  In this case, the 
32164 \begin_inset Flex Code
32165 status collapsed
32166
32167 \begin_layout Plain Layout
32168 .fig
32169 \end_layout
32170
32171 \end_inset
32172
32173  file is the original file, and the PostScript file is the produced file.
32174 \end_layout
32175
32176 \begin_layout Standard
32177 This distinction is important in order to allow updating of the material
32178  while you are in the process of writing the document.
32179  Furthermore, it provides us with the flexibility that is needed to support
32180  multiple export formats.
32181  For instance, in the case of a plain text file, it is not exactly an award-winn
32182 ing idea to include the figure as raw PostScript.
32183  Instead, you would either prefer to just include a reference to the figure
32184  or try to invoke some graphics to ASCII converter to make the final result
32185  look similar to the real graphics.
32186  The external material management allows you to do this, because it is parametri
32187 zed on the different export formats that \SpecialChar LyX
32188  supports.
32189 \end_layout
32190
32191 \begin_layout Standard
32192 Besides supporting the production of different products according to the
32193  exported format, it supports tight integration with editing and viewing
32194  applications.
32195  In the case of an Xfig figure, you are able to invoke Xfig on the original
32196  file with a single click from within the external material dialog in \SpecialChar LyX
32197 ,
32198  and also preview the produced PostScript file with Ghostview with another
32199  click.
32200  No more fiddling around with the command line and/or file browsers to locate
32201  and manipulate the original or produced files.
32202  In this way, you are finally able to take full advantage of the many different
32203  applications that are relevant to use when you write your documents, and
32204  ultimately be more productive.
32205 \end_layout
32206
32207 \begin_layout Section
32208 The external template configuration files
32209 \end_layout
32210
32211 \begin_layout Standard
32212 It is relatively easy to add custom external template definitions to \SpecialChar LyX
32213 .
32214  However, be aware that doing this in an careless manner most probably 
32215 \emph on
32216 will
32217 \emph default
32218  introduce an easily exploitable security hole.
32219  So before you do this, please read the discussion about security in 
32220 \begin_inset CommandInset ref
32221 LatexCommand ref
32222 reference "sec:Security-discussion"
32223
32224 \end_inset
32225
32226 .
32227 \end_layout
32228
32229 \begin_layout Standard
32230 Having said that, we encourage you to submit any interesting templates that
32231  you create.
32232  
32233 \end_layout
32234
32235 \begin_layout Standard
32236 The external templates are defined in the 
32237 \begin_inset Flex Code
32238 status collapsed
32239
32240 \begin_layout Plain Layout
32241 *.xtemplate
32242 \end_layout
32243
32244 \end_inset
32245
32246  files that are stored in the 
32247 \begin_inset Flex Code
32248 status collapsed
32249
32250 \begin_layout Plain Layout
32251 LyXDir/lib/xtemplates/
32252 \end_layout
32253
32254 \end_inset
32255
32256  directory.
32257  Each template is defined in a file of its own.
32258  You can place your own templates in 
32259 \begin_inset Flex Code
32260 status collapsed
32261
32262 \begin_layout Plain Layout
32263 UserDir/xtemplates/
32264 \end_layout
32265
32266 \end_inset
32267
32268  or copy existing templates to that directory in order to modify them.
32269 \end_layout
32270
32271 \begin_layout Standard
32272 A typical template looks like this:
32273 \end_layout
32274
32275 \begin_layout LyX-Code
32276 Template XFig
32277 \end_layout
32278
32279 \begin_layout LyX-Code
32280 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
32281 \end_layout
32282
32283 \begin_layout LyX-Code
32284 HelpText
32285 \end_layout
32286
32287 \begin_layout LyX-Code
32288 An XFig figure.
32289 \end_layout
32290
32291 \begin_layout LyX-Code
32292 HelpTextEnd
32293 \end_layout
32294
32295 \begin_layout LyX-Code
32296 InputFormat fig
32297 \end_layout
32298
32299 \begin_layout LyX-Code
32300 FileFilter "*.fig"
32301 \end_layout
32302
32303 \begin_layout LyX-Code
32304 AutomaticProduction true
32305 \end_layout
32306
32307 \begin_layout LyX-Code
32308 Transform Rotate
32309 \end_layout
32310
32311 \begin_layout LyX-Code
32312 Transform Resize
32313 \end_layout
32314
32315 \begin_layout LyX-Code
32316 Format LaTeX
32317 \end_layout
32318
32319 \begin_layout LyX-Code
32320 TransformCommand Rotate RotationLatexCommand
32321 \end_layout
32322
32323 \begin_layout LyX-Code
32324 TransformCommand Resize ResizeLatexCommand
32325 \end_layout
32326
32327 \begin_layout LyX-Code
32328 Product "$$RotateFront$$ResizeFront
32329 \end_layout
32330
32331 \begin_layout LyX-Code
32332          
32333 \backslash
32334
32335 \backslash
32336 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
32337 \end_layout
32338
32339 \begin_layout LyX-Code
32340          $$ResizeBack$$RotateBack"
32341 \end_layout
32342
32343 \begin_layout LyX-Code
32344 UpdateFormat pstex
32345 \end_layout
32346
32347 \begin_layout LyX-Code
32348 UpdateResult "$$AbsPath$$Basename.pstex_t"
32349 \end_layout
32350
32351 \begin_layout LyX-Code
32352 Requirement "graphicx"
32353 \end_layout
32354
32355 \begin_layout LyX-Code
32356 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
32357 \end_layout
32358
32359 \begin_layout LyX-Code
32360 ReferencedFile latex "$$AbsPath$$Basename.eps"
32361 \end_layout
32362
32363 \begin_layout LyX-Code
32364 ReferencedFile dvi "$$AbsPath$$Basename.eps"
32365 \end_layout
32366
32367 \begin_layout LyX-Code
32368 FormatEnd
32369 \end_layout
32370
32371 \begin_layout LyX-Code
32372 Format PDFLaTeX
32373 \end_layout
32374
32375 \begin_layout LyX-Code
32376 TransformCommand Rotate RotationLatexCommand
32377 \end_layout
32378
32379 \begin_layout LyX-Code
32380 TransformCommand Resize ResizeLatexCommand
32381 \end_layout
32382
32383 \begin_layout LyX-Code
32384 Product "$$RotateFront$$ResizeFront
32385 \end_layout
32386
32387 \begin_layout LyX-Code
32388          
32389 \backslash
32390
32391 \backslash
32392 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
32393 \end_layout
32394
32395 \begin_layout LyX-Code
32396          $$ResizeBack$$RotateBack"
32397 \end_layout
32398
32399 \begin_layout LyX-Code
32400 UpdateFormat pdftex
32401 \end_layout
32402
32403 \begin_layout LyX-Code
32404 UpdateResult "$$AbsPath$$Basename.pdftex_t"
32405 \end_layout
32406
32407 \begin_layout LyX-Code
32408 Requirement "graphicx"
32409 \end_layout
32410
32411 \begin_layout LyX-Code
32412 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
32413 \end_layout
32414
32415 \begin_layout LyX-Code
32416 ReferencedFile latex "$$AbsPath$$Basename.pdf"
32417 \end_layout
32418
32419 \begin_layout LyX-Code
32420 FormatEnd
32421 \end_layout
32422
32423 \begin_layout LyX-Code
32424 Format Ascii
32425 \end_layout
32426
32427 \begin_layout LyX-Code
32428 Product "[XFig: $$FName]"
32429 \end_layout
32430
32431 \begin_layout LyX-Code
32432 FormatEnd
32433 \end_layout
32434
32435 \begin_layout LyX-Code
32436 Format DocBook
32437 \end_layout
32438
32439 \begin_layout LyX-Code
32440 Product "<graphic fileref=
32441 \backslash
32442 "$$AbsOrRelPathMaster$$Basename.eps
32443 \backslash
32444 ">
32445 \end_layout
32446
32447 \begin_layout LyX-Code
32448          </graphic>"
32449 \end_layout
32450
32451 \begin_layout LyX-Code
32452 UpdateFormat eps
32453 \end_layout
32454
32455 \begin_layout LyX-Code
32456 UpdateResult "$$AbsPath$$Basename.eps"
32457 \end_layout
32458
32459 \begin_layout LyX-Code
32460 ReferencedFile docbook "$$AbsPath$$Basename.eps"
32461 \end_layout
32462
32463 \begin_layout LyX-Code
32464 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
32465 \end_layout
32466
32467 \begin_layout LyX-Code
32468 FormatEnd
32469 \end_layout
32470
32471 \begin_layout LyX-Code
32472 TemplateEnd
32473 \end_layout
32474
32475 \begin_layout Standard
32476 As you can see, the template is enclosed in 
32477 \begin_inset Flex Code
32478 status collapsed
32479
32480 \begin_layout Plain Layout
32481 Template
32482 \end_layout
32483
32484 \end_inset
32485
32486  \SpecialChar ldots
32487  
32488 \begin_inset Flex Code
32489 status collapsed
32490
32491 \begin_layout Plain Layout
32492 TemplateEnd
32493 \end_layout
32494
32495 \end_inset
32496
32497 .
32498  It contains a header specifying some general settings and, for each supported
32499  primary document file format, a section 
32500 \begin_inset Flex Code
32501 status collapsed
32502
32503 \begin_layout Plain Layout
32504 Format
32505 \end_layout
32506
32507 \end_inset
32508
32509  \SpecialChar ldots
32510  
32511 \begin_inset Flex Code
32512 status collapsed
32513
32514 \begin_layout Plain Layout
32515 FormatEnd
32516 \end_layout
32517
32518 \end_inset
32519
32520 .
32521 \end_layout
32522
32523 \begin_layout Subsection
32524 The template header
32525 \end_layout
32526
32527 \begin_layout Description
32528 \begin_inset Flex Code
32529 status collapsed
32530
32531 \begin_layout Plain Layout
32532 AutomaticProduction
32533 \begin_inset space ~
32534 \end_inset
32535
32536 true|false
32537 \end_layout
32538
32539 \end_inset
32540
32541  Whether the file represented by the template must be generated by \SpecialChar LyX
32542 .
32543  This command must occur exactly once.
32544 \end_layout
32545
32546 \begin_layout Description
32547 \begin_inset Flex Code
32548 status collapsed
32549
32550 \begin_layout Plain Layout
32551 FileFilter
32552 \begin_inset space ~
32553 \end_inset
32554
32555 <pattern>
32556 \end_layout
32557
32558 \end_inset
32559
32560  A glob pattern that is used in the file dialog to filter out the desired
32561  files.
32562  If there is more than one possible file extension (e.
32563 \begin_inset space \thinspace{}
32564 \end_inset
32565
32566 g.
32567 \begin_inset space \space{}
32568 \end_inset
32569
32570 tgif has 
32571 \begin_inset Flex Code
32572 status collapsed
32573
32574 \begin_layout Plain Layout
32575 .obj
32576 \end_layout
32577
32578 \end_inset
32579
32580  and 
32581 \begin_inset Flex Code
32582 status collapsed
32583
32584 \begin_layout Plain Layout
32585 .tgo
32586 \end_layout
32587
32588 \end_inset
32589
32590 ), use something like 
32591 \begin_inset Flex Code
32592 status collapsed
32593
32594 \begin_layout Plain Layout
32595 "*.{obj,tgo}"
32596 \end_layout
32597
32598 \end_inset
32599
32600 .
32601  This command must occur exactly once.
32602 \end_layout
32603
32604 \begin_layout Description
32605 \begin_inset Flex Code
32606 status collapsed
32607
32608 \begin_layout Plain Layout
32609 GuiName
32610 \begin_inset space ~
32611 \end_inset
32612
32613 <guiname>
32614 \end_layout
32615
32616 \end_inset
32617
32618  The text that is displayed on the button.
32619  This command must occur exactly once.
32620 \end_layout
32621
32622 \begin_layout Description
32623 \begin_inset Flex Code
32624 status collapsed
32625
32626 \begin_layout Plain Layout
32627 HelpText
32628 \begin_inset space ~
32629 \end_inset
32630
32631 <text>
32632 \begin_inset space ~
32633 \end_inset
32634
32635 HelpTextEnd
32636 \end_layout
32637
32638 \end_inset
32639
32640  The help text that is used in the External dialog.
32641  Provide enough information to explain to the user just what the template
32642  can provide him with.
32643  This command must occur exactly once.
32644 \end_layout
32645
32646 \begin_layout Description
32647 \begin_inset Flex Code
32648 status collapsed
32649
32650 \begin_layout Plain Layout
32651 InputFormat
32652 \begin_inset space ~
32653 \end_inset
32654
32655 <format>
32656 \end_layout
32657
32658 \end_inset
32659
32660  The file format of the original file.
32661  This must be the name of a format that is known to \SpecialChar LyX
32662  (see 
32663 \begin_inset CommandInset ref
32664 LatexCommand ref
32665 reference "sec:Formats"
32666
32667 \end_inset
32668
32669 ).
32670  Use 
32671 \begin_inset Quotes eld
32672 \end_inset
32673
32674
32675 \begin_inset Flex Code
32676 status collapsed
32677
32678 \begin_layout Plain Layout
32679 *
32680 \end_layout
32681
32682 \end_inset
32683
32684
32685 \begin_inset Quotes erd
32686 \end_inset
32687
32688  if the template can handle original files of more than one format.
32689  \SpecialChar LyX
32690  will attempt to interrogate the file itself in order to deduce its format
32691  in this case.
32692  This command must occur exactly once.
32693 \end_layout
32694
32695 \begin_layout Description
32696 \begin_inset Flex Code
32697 status collapsed
32698
32699 \begin_layout Plain Layout
32700 Template
32701 \begin_inset space ~
32702 \end_inset
32703
32704 <id>
32705 \end_layout
32706
32707 \end_inset
32708
32709  A unique name for the template.
32710  It must not contain substitution macros (see below).
32711 \end_layout
32712
32713 \begin_layout Description
32714 \begin_inset Flex Code
32715 status collapsed
32716
32717 \begin_layout Plain Layout
32718 Transform
32719 \begin_inset space ~
32720 \end_inset
32721
32722 Rotate|Resize|Clip|Extra
32723 \end_layout
32724
32725 \end_inset
32726
32727  This command specifies which transformations are supported by this template.
32728  It may occur zero or more times.
32729  This command enables the corresponding tabs in the external dialog.
32730  Each 
32731 \begin_inset Flex Code
32732 status collapsed
32733
32734 \begin_layout Plain Layout
32735 Transform
32736 \end_layout
32737
32738 \end_inset
32739
32740  command must have either a corresponding 
32741 \begin_inset Flex Code
32742 status collapsed
32743
32744 \begin_layout Plain Layout
32745 TransformCommand
32746 \end_layout
32747
32748 \end_inset
32749
32750  or a 
32751 \begin_inset Flex Code
32752 status collapsed
32753
32754 \begin_layout Plain Layout
32755 TransformOption
32756 \end_layout
32757
32758 \end_inset
32759
32760  command in the 
32761 \begin_inset Flex Code
32762 status collapsed
32763
32764 \begin_layout Plain Layout
32765 Format
32766 \end_layout
32767
32768 \end_inset
32769
32770  section.
32771  Otherwise the transformation will not be supported by that format.
32772 \end_layout
32773
32774 \begin_layout Subsection
32775 The Format section
32776 \end_layout
32777
32778 \begin_layout Description
32779 \begin_inset Flex Code
32780 status collapsed
32781
32782 \begin_layout Plain Layout
32783 Format
32784 \begin_inset space ~
32785 \end_inset
32786
32787 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
32788 \end_layout
32789
32790 \end_inset
32791
32792  The primary document file format that this format definition is for.
32793  Not every template has a sensible representation in all document file formats.
32794  Please define nevertheless a 
32795 \begin_inset Flex Code
32796 status collapsed
32797
32798 \begin_layout Plain Layout
32799 Format
32800 \end_layout
32801
32802 \end_inset
32803
32804  section for all templates.
32805  Use a dummy text when no representation is available.
32806  Then you can at least see a reference to the external material in the exported
32807  document.
32808 \end_layout
32809
32810 \begin_layout Description
32811 \begin_inset Flex Code
32812 status collapsed
32813
32814 \begin_layout Plain Layout
32815 Option
32816 \begin_inset space ~
32817 \end_inset
32818
32819 <name>
32820 \begin_inset space ~
32821 \end_inset
32822
32823 <value>
32824 \end_layout
32825
32826 \end_inset
32827
32828  This command defines an additional macro 
32829 \begin_inset Flex Code
32830 status collapsed
32831
32832 \begin_layout Plain Layout
32833 $$<name>
32834 \end_layout
32835
32836 \end_inset
32837
32838  for substitution in 
32839 \begin_inset Flex Code
32840 status collapsed
32841
32842 \begin_layout Plain Layout
32843 Product
32844 \end_layout
32845
32846 \end_inset
32847
32848 .
32849  
32850 \begin_inset Flex Code
32851 status collapsed
32852
32853 \begin_layout Plain Layout
32854 <value>
32855 \end_layout
32856
32857 \end_inset
32858
32859  itself may contain substitution macros.
32860  The advantage over using 
32861 \begin_inset Flex Code
32862 status collapsed
32863
32864 \begin_layout Plain Layout
32865 <value>
32866 \end_layout
32867
32868 \end_inset
32869
32870  directly in 
32871 \begin_inset Flex Code
32872 status collapsed
32873
32874 \begin_layout Plain Layout
32875 Product
32876 \end_layout
32877
32878 \end_inset
32879
32880  is that the substituted value of 
32881 \begin_inset Flex Code
32882 status collapsed
32883
32884 \begin_layout Plain Layout
32885 $$<name>
32886 \end_layout
32887
32888 \end_inset
32889
32890  is sanitized so that it is a valid optional argument in the document format.
32891  This command may occur zero or more times.
32892 \end_layout
32893
32894 \begin_layout Description
32895 \begin_inset Flex Code
32896 status collapsed
32897
32898 \begin_layout Plain Layout
32899 Product
32900 \begin_inset space ~
32901 \end_inset
32902
32903 <text>
32904 \end_layout
32905
32906 \end_inset
32907
32908  The text that is inserted in the exported document.
32909  This is actually the most important command and can be quite complex.
32910  This command must occur exactly once.
32911 \end_layout
32912
32913 \begin_layout Description
32914 \begin_inset Flex Code
32915 status collapsed
32916
32917 \begin_layout Plain Layout
32918 Preamble
32919 \begin_inset space ~
32920 \end_inset
32921
32922 <name>
32923 \end_layout
32924
32925 \end_inset
32926
32927  This command specifies a preamble snippet that will be included in the
32928  \SpecialChar LaTeX
32929  preamble.
32930  It has to be defined using 
32931 \begin_inset Flex Code
32932 status collapsed
32933
32934 \begin_layout Plain Layout
32935 PreambleDef
32936 \end_layout
32937
32938 \end_inset
32939
32940  \SpecialChar ldots
32941  
32942 \begin_inset Flex Code
32943 status collapsed
32944
32945 \begin_layout Plain Layout
32946 PreambleDefEnd
32947 \end_layout
32948
32949 \end_inset
32950
32951 .
32952  This command may occur zero or more times.
32953 \end_layout
32954
32955 \begin_layout Description
32956 \begin_inset Flex Code
32957 status collapsed
32958
32959 \begin_layout Plain Layout
32960 ReferencedFile
32961 \begin_inset space ~
32962 \end_inset
32963
32964 <format>
32965 \begin_inset space ~
32966 \end_inset
32967
32968 <filename>
32969 \end_layout
32970
32971 \end_inset
32972
32973  This command denotes files that are created by the conversion process and
32974  are needed for a particular export format.
32975  If the filename is relative, it is interpreted relative to the master document.
32976  This command may be given zero or more times.
32977 \end_layout
32978
32979 \begin_layout Description
32980 \begin_inset Flex Code
32981 status collapsed
32982
32983 \begin_layout Plain Layout
32984 Requirement
32985 \begin_inset space ~
32986 \end_inset
32987
32988 <package>
32989 \end_layout
32990
32991 \end_inset
32992
32993  The name of a required \SpecialChar LaTeX
32994  package.
32995  The package is included via 
32996 \begin_inset Flex Code
32997 status collapsed
32998
32999 \begin_layout Plain Layout
33000
33001 \backslash
33002 usepackage{}
33003 \end_layout
33004
33005 \end_inset
33006
33007  in the \SpecialChar LaTeX
33008  preamble.
33009  This command may occur zero or more times.
33010 \end_layout
33011
33012 \begin_layout Description
33013 \begin_inset Flex Code
33014 status collapsed
33015
33016 \begin_layout Plain Layout
33017 TransformCommand
33018 \begin_inset space ~
33019 \end_inset
33020
33021 Rotate
33022 \begin_inset space ~
33023 \end_inset
33024
33025 RotationLatexCommand
33026 \end_layout
33027
33028 \end_inset
33029
33030  This command specifies that the built in \SpecialChar LaTeX
33031  command should be used for rotation.
33032  This command may occur once or not at all.
33033 \end_layout
33034
33035 \begin_layout Description
33036 \begin_inset Flex Code
33037 status collapsed
33038
33039 \begin_layout Plain Layout
33040 TransformCommand
33041 \begin_inset space ~
33042 \end_inset
33043
33044 Resize
33045 \begin_inset space ~
33046 \end_inset
33047
33048 ResizeLatexCommand
33049 \end_layout
33050
33051 \end_inset
33052
33053  This command specifies that the built in \SpecialChar LaTeX
33054  command should be used for resizing.
33055  This command may occur once or not at all.
33056 \end_layout
33057
33058 \begin_layout Description
33059 \begin_inset Flex Code
33060 status collapsed
33061
33062 \begin_layout Plain Layout
33063 TransformOption
33064 \begin_inset space ~
33065 \end_inset
33066
33067 Rotate
33068 \begin_inset space ~
33069 \end_inset
33070
33071 RotationLatexOption
33072 \end_layout
33073
33074 \end_inset
33075
33076  This command specifies that rotation is done via an optional argument.
33077  This command may occur once or not at all.
33078 \end_layout
33079
33080 \begin_layout Description
33081 \begin_inset Flex Code
33082 status collapsed
33083
33084 \begin_layout Plain Layout
33085 TransformOption
33086 \begin_inset space ~
33087 \end_inset
33088
33089 Resize
33090 \begin_inset space ~
33091 \end_inset
33092
33093 ResizeLatexOption
33094 \end_layout
33095
33096 \end_inset
33097
33098  This command specifies that resizing is done via an optional argument.
33099  This command may occur once or not at all.
33100 \end_layout
33101
33102 \begin_layout Description
33103 \begin_inset Flex Code
33104 status collapsed
33105
33106 \begin_layout Plain Layout
33107 TransformOption
33108 \begin_inset space ~
33109 \end_inset
33110
33111 Clip
33112 \begin_inset space ~
33113 \end_inset
33114
33115 ClipLatexOption
33116 \end_layout
33117
33118 \end_inset
33119
33120  This command specifies that clipping is done via an optional argument.
33121  This command may occur once or not at all.
33122 \end_layout
33123
33124 \begin_layout Description
33125 \begin_inset Flex Code
33126 status collapsed
33127
33128 \begin_layout Plain Layout
33129 TransformOption
33130 \begin_inset space ~
33131 \end_inset
33132
33133 Extra
33134 \begin_inset space ~
33135 \end_inset
33136
33137 ExtraLatexOption
33138 \end_layout
33139
33140 \end_inset
33141
33142  This command specifies that an extra optional argument is used.
33143  This command may occur once or not at all.
33144 \end_layout
33145
33146 \begin_layout Description
33147 \begin_inset Flex Code
33148 status collapsed
33149
33150 \begin_layout Plain Layout
33151 UpdateFormat
33152 \begin_inset space ~
33153 \end_inset
33154
33155 <format>
33156 \end_layout
33157
33158 \end_inset
33159
33160  The file format of the converted file.
33161  This must be the name of a format that is known to \SpecialChar LyX
33162  (see the 
33163 \begin_inset Flex Noun
33164 status collapsed
33165
33166 \begin_layout Plain Layout
33167 Tools\SpecialChar menuseparator
33168 Preferences\SpecialChar menuseparator
33169 File Handling\SpecialChar menuseparator
33170 File Format
33171 \end_layout
33172
33173 \end_inset
33174
33175  dialog).
33176  This command must occur exactly once.
33177  If the resulting file format is PDF, you need to specify the format 
33178 \begin_inset Flex Code
33179 status collapsed
33180
33181 \begin_layout Plain Layout
33182 pdf6
33183 \end_layout
33184
33185 \end_inset
33186
33187 .
33188  This is the PDF format used for including graphics.
33189  The other defined PDF formats are for document export.
33190 \end_layout
33191
33192 \begin_layout Description
33193 \begin_inset Flex Code
33194 status collapsed
33195
33196 \begin_layout Plain Layout
33197 UpdateResult
33198 \begin_inset space ~
33199 \end_inset
33200
33201 <filename>
33202 \end_layout
33203
33204 \end_inset
33205
33206  The file name of the converted file.
33207  The file name must be absolute.
33208  This command must occur exactly once.
33209 \end_layout
33210
33211 \begin_layout Subsection
33212 Preamble definitions
33213 \end_layout
33214
33215 \begin_layout Standard
33216 The external template configuration file may contain additional preamble
33217  definitions enclosed by 
33218 \begin_inset Flex Code
33219 status collapsed
33220
33221 \begin_layout Plain Layout
33222 PreambleDef
33223 \end_layout
33224
33225 \end_inset
33226
33227  \SpecialChar ldots
33228  
33229 \begin_inset Flex Code
33230 status collapsed
33231
33232 \begin_layout Plain Layout
33233 PreambleDefEnd
33234 \end_layout
33235
33236 \end_inset
33237
33238 .
33239  They can be used by the templates in the 
33240 \begin_inset Flex Code
33241 status collapsed
33242
33243 \begin_layout Plain Layout
33244 Format
33245 \end_layout
33246
33247 \end_inset
33248
33249  section.
33250 \end_layout
33251
33252 \begin_layout Section
33253 The substitution mechanism
33254 \end_layout
33255
33256 \begin_layout Standard
33257 When the external material facility invokes an external program, it is done
33258  on the basis of a command defined in the template configuration file.
33259  These commands can contain various macros that are expanded before execution.
33260  Execution always take place in the directory of the containing document.
33261 \end_layout
33262
33263 \begin_layout Standard
33264 Also, whenever external material is to be displayed, the name will be produced
33265  by the substitution mechanism, and most other commands in the template
33266  definition support substitution as well.
33267 \end_layout
33268
33269 \begin_layout Standard
33270 The available macros are the following:
33271 \end_layout
33272
33273 \begin_layout Description
33274 \begin_inset Flex Code
33275 status collapsed
33276
33277 \begin_layout Plain Layout
33278 $$AbsOrRelPathMaster
33279 \end_layout
33280
33281 \end_inset
33282
33283  The file path, absolute or relative to the master \SpecialChar LyX
33284  document.
33285 \end_layout
33286
33287 \begin_layout Description
33288 \begin_inset Flex Code
33289 status collapsed
33290
33291 \begin_layout Plain Layout
33292 $$AbsOrRelPathParent
33293 \end_layout
33294
33295 \end_inset
33296
33297  The file path, absolute or relative to the \SpecialChar LyX
33298  document.
33299 \end_layout
33300
33301 \begin_layout Description
33302 \begin_inset Flex Code
33303 status collapsed
33304
33305 \begin_layout Plain Layout
33306 $$AbsPath
33307 \end_layout
33308
33309 \end_inset
33310
33311  The absolute file path.
33312 \end_layout
33313
33314 \begin_layout Description
33315 \begin_inset Flex Code
33316 status collapsed
33317
33318 \begin_layout Plain Layout
33319 $$Basename
33320 \end_layout
33321
33322 \end_inset
33323
33324  The filename without path and without the extension.
33325 \end_layout
33326
33327 \begin_layout Description
33328 \begin_inset Flex Code
33329 status collapsed
33330
33331 \begin_layout Plain Layout
33332 $$Contents(
33333 \begin_inset Quotes eld
33334 \end_inset
33335
33336 filename.ext
33337 \begin_inset Quotes erd
33338 \end_inset
33339
33340 )
33341 \end_layout
33342
33343 \end_inset
33344
33345  This macro will expand to the contents of the file with the name 
33346 \begin_inset Flex Code
33347 status collapsed
33348
33349 \begin_layout Plain Layout
33350 filename.ext
33351 \end_layout
33352
33353 \end_inset
33354
33355 .
33356 \end_layout
33357
33358 \begin_layout Description
33359 \begin_inset Flex Code
33360 status collapsed
33361
33362 \begin_layout Plain Layout
33363 $$Extension
33364 \end_layout
33365
33366 \end_inset
33367
33368  The file extension (including the dot).
33369 \end_layout
33370
33371 \begin_layout Description
33372 \begin_inset Flex Code
33373 status collapsed
33374
33375 \begin_layout Plain Layout
33376 $$pngOrjpg
33377 \end_layout
33378
33379 \end_inset
33380
33381  This will be the string 
33382 \begin_inset Quotes eld
33383 \end_inset
33384
33385 jpg
33386 \begin_inset Quotes erd
33387 \end_inset
33388
33389  if the file is in JPEG format, otherwise it will be the string 
33390 \begin_inset Quotes eld
33391 \end_inset
33392
33393 png
33394 \begin_inset Quotes erd
33395 \end_inset
33396
33397 .
33398  This is useful to avoid uneeded conversions for output formats that support
33399  both PNG and JPEG fomats.
33400  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
33401  output
33402  format.
33403 \end_layout
33404
33405 \begin_layout Description
33406 \begin_inset Flex Code
33407 status collapsed
33408
33409 \begin_layout Plain Layout
33410 $$FName
33411 \end_layout
33412
33413 \end_inset
33414
33415  The filename of the file specified in the external material dialog.
33416  This is either an absolute name, or it is relative to the \SpecialChar LyX
33417  document.
33418 \end_layout
33419
33420 \begin_layout Description
33421 \begin_inset Flex Code
33422 status collapsed
33423
33424 \begin_layout Plain Layout
33425 $$FPath
33426 \end_layout
33427
33428 \end_inset
33429
33430  The path part of 
33431 \begin_inset Flex Code
33432 status collapsed
33433
33434 \begin_layout Plain Layout
33435 $$FName
33436 \end_layout
33437
33438 \end_inset
33439
33440  (absolute name or relative to the \SpecialChar LyX
33441  document).
33442 \end_layout
33443
33444 \begin_layout Description
33445 \begin_inset Flex Code
33446 status collapsed
33447
33448 \begin_layout Plain Layout
33449 $$RelPathMaster
33450 \end_layout
33451
33452 \end_inset
33453
33454  The file path, relative to the master \SpecialChar LyX
33455  document.
33456 \end_layout
33457
33458 \begin_layout Description
33459 \begin_inset Flex Code
33460 status collapsed
33461
33462 \begin_layout Plain Layout
33463 $$RelPathParent
33464 \end_layout
33465
33466 \end_inset
33467
33468  The file path, relative to the \SpecialChar LyX
33469  document.
33470 \end_layout
33471
33472 \begin_layout Description
33473 \begin_inset Flex Code
33474 status collapsed
33475
33476 \begin_layout Plain Layout
33477 $$Sysdir
33478 \end_layout
33479
33480 \end_inset
33481
33482  This macro will expand to the absolute path of the system directory.
33483  This is typically used to point to the various helper scripts that are
33484  bundled with \SpecialChar LyX
33485 .
33486 \end_layout
33487
33488 \begin_layout Description
33489 \begin_inset Flex Code
33490 status collapsed
33491
33492 \begin_layout Plain Layout
33493 $$Tempname
33494 \end_layout
33495
33496 \end_inset
33497
33498  A name and full path to a temporary file which will be automatically deleted
33499  whenever the containing document is closed, or the external material insertion
33500  deleted.
33501 \end_layout
33502
33503 \begin_layout Standard
33504 All path macros contain a trailing directory separator, so you can construct
33505  e.
33506 \begin_inset space \thinspace{}
33507 \end_inset
33508
33509 g.
33510 \begin_inset space \space{}
33511 \end_inset
33512
33513 the absolute filename with 
33514 \begin_inset Flex Code
33515 status collapsed
33516
33517 \begin_layout Plain Layout
33518 $$AbsPath$$Basename$$Extension
33519 \end_layout
33520
33521 \end_inset
33522
33523 .
33524 \end_layout
33525
33526 \begin_layout Standard
33527 The macros above are substituted in all commands unless otherwise noted.
33528  The command 
33529 \begin_inset Flex Code
33530 status collapsed
33531
33532 \begin_layout Plain Layout
33533 Product
33534 \end_layout
33535
33536 \end_inset
33537
33538  supports additionally the following substitutions if they are enabled by
33539  the 
33540 \begin_inset Flex Code
33541 status collapsed
33542
33543 \begin_layout Plain Layout
33544 Transform
33545 \end_layout
33546
33547 \end_inset
33548
33549  and 
33550 \begin_inset Flex Code
33551 status collapsed
33552
33553 \begin_layout Plain Layout
33554 TransformCommand
33555 \end_layout
33556
33557 \end_inset
33558
33559  commands:
33560 \end_layout
33561
33562 \begin_layout Description
33563 \begin_inset Flex Code
33564 status collapsed
33565
33566 \begin_layout Plain Layout
33567 $$ResizeFront
33568 \end_layout
33569
33570 \end_inset
33571
33572  The front part of the resize command.
33573 \end_layout
33574
33575 \begin_layout Description
33576 \begin_inset Flex Code
33577 status collapsed
33578
33579 \begin_layout Plain Layout
33580 $$ResizeBack
33581 \end_layout
33582
33583 \end_inset
33584
33585  The back part of the resize command.
33586 \end_layout
33587
33588 \begin_layout Description
33589 \begin_inset Flex Code
33590 status collapsed
33591
33592 \begin_layout Plain Layout
33593 $$RotateFront
33594 \end_layout
33595
33596 \end_inset
33597
33598  The front part of the rotation command.
33599 \end_layout
33600
33601 \begin_layout Description
33602 \begin_inset Flex Code
33603 status collapsed
33604
33605 \begin_layout Plain Layout
33606 $$RotateBack
33607 \end_layout
33608
33609 \end_inset
33610
33611  The back part of the rotation command.
33612 \end_layout
33613
33614 \begin_layout Standard
33615 The value string of the 
33616 \begin_inset Flex Code
33617 status collapsed
33618
33619 \begin_layout Plain Layout
33620 Option
33621 \end_layout
33622
33623 \end_inset
33624
33625  command supports additionally the following substitutions if they are enabled
33626  by the 
33627 \begin_inset Flex Code
33628 status collapsed
33629
33630 \begin_layout Plain Layout
33631 Transform
33632 \end_layout
33633
33634 \end_inset
33635
33636  and 
33637 \begin_inset Flex Code
33638 status collapsed
33639
33640 \begin_layout Plain Layout
33641 TransformOption
33642 \end_layout
33643
33644 \end_inset
33645
33646  commands:
33647 \end_layout
33648
33649 \begin_layout Description
33650 \begin_inset Flex Code
33651 status collapsed
33652
33653 \begin_layout Plain Layout
33654 $$Clip
33655 \end_layout
33656
33657 \end_inset
33658
33659  The clip option.
33660 \end_layout
33661
33662 \begin_layout Description
33663 \begin_inset Flex Code
33664 status collapsed
33665
33666 \begin_layout Plain Layout
33667 $$Extra
33668 \end_layout
33669
33670 \end_inset
33671
33672  The extra option.
33673 \end_layout
33674
33675 \begin_layout Description
33676 \begin_inset Flex Code
33677 status collapsed
33678
33679 \begin_layout Plain Layout
33680 $$Resize
33681 \end_layout
33682
33683 \end_inset
33684
33685  The resize option.
33686 \end_layout
33687
33688 \begin_layout Description
33689 \begin_inset Flex Code
33690 status collapsed
33691
33692 \begin_layout Plain Layout
33693 $$Rotate
33694 \end_layout
33695
33696 \end_inset
33697
33698  The rotation option.
33699 \end_layout
33700
33701 \begin_layout Standard
33702 You may ask why there are so many path macros.
33703  There are mainly two reasons:
33704 \end_layout
33705
33706 \begin_layout Enumerate
33707 Relative and absolute file names should remain relative or absolute, respectivel
33708 y.
33709  Users may have reasons to prefer either form.
33710  Relative names are useful for portable documents that should work on different
33711  machines, for example.
33712  Absolute names may be required by some programs.
33713 \end_layout
33714
33715 \begin_layout Enumerate
33716 \SpecialChar LaTeX
33717  treats relative file names differently than \SpecialChar LyX
33718  and other programs in nested
33719  included files.
33720  For \SpecialChar LyX
33721 , a relative file name is always relative to the document that contains
33722  the file name.
33723  For \SpecialChar LaTeX
33724 , it is always relative to the master document.
33725  These two definitions are identical if you have only one document, but
33726  differ if you have a master document that includes part documents.
33727  That means that relative filenames must be transformed when presented to
33728  \SpecialChar LaTeX
33729 .
33730  Fortunately \SpecialChar LyX
33731  does this automatically for you if you choose the right macros.
33732 \end_layout
33733
33734 \begin_layout Standard
33735 So which path macro should be used in new template definitions? The rule
33736  is not difficult:
33737 \end_layout
33738
33739 \begin_layout Itemize
33740 Use 
33741 \begin_inset Flex Code
33742 status collapsed
33743
33744 \begin_layout Plain Layout
33745 $$AbsPath
33746 \end_layout
33747
33748 \end_inset
33749
33750  if an absolute path is required.
33751 \end_layout
33752
33753 \begin_layout Itemize
33754 Use 
33755 \begin_inset Flex Code
33756 status collapsed
33757
33758 \begin_layout Plain Layout
33759 $$AbsOrRelPathMaster
33760 \end_layout
33761
33762 \end_inset
33763
33764  if the substituted string is some kind of \SpecialChar LaTeX
33765  input.
33766 \end_layout
33767
33768 \begin_layout Itemize
33769 Else use 
33770 \begin_inset Flex Code
33771 status collapsed
33772
33773 \begin_layout Plain Layout
33774 $$AbsOrRelPathParent
33775 \end_layout
33776
33777 \end_inset
33778
33779  in order to preserve the user's choice.
33780 \end_layout
33781
33782 \begin_layout Standard
33783 There are special cases where this rule does not work and e.
33784 \begin_inset space \thinspace{}
33785 \end_inset
33786
33787 g.
33788 \begin_inset space \space{}
33789 \end_inset
33790
33791 relative names are needed, but normally it will work just fine.
33792  One example for such a case is the command 
33793 \begin_inset Flex Code
33794 status collapsed
33795
33796 \begin_layout Plain Layout
33797 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
33798 \end_layout
33799
33800 \end_inset
33801
33802  in the XFig template above: We can't use the absolute name because the
33803  copier for 
33804 \begin_inset Flex Code
33805 status collapsed
33806
33807 \begin_layout Plain Layout
33808 .pstex_t
33809 \end_layout
33810
33811 \end_inset
33812
33813  files needs the relative name in order to rewrite the file content.
33814 \end_layout
33815
33816 \begin_layout Section
33817 Security discussion
33818 \begin_inset CommandInset label
33819 LatexCommand label
33820 name "sec:Security-discussion"
33821
33822 \end_inset
33823
33824
33825 \end_layout
33826
33827 \begin_layout Standard
33828 The external material feature interfaces with a lot of external programs
33829  and does so automatically, so we have to consider the security implications
33830  of this.
33831  In particular, since you have the option of including your own filenames
33832  and/or parameter strings and those are expanded into a command, it seems
33833  that it would be possible to create a malicious document which executes
33834  arbitrary commands when a user views or prints the document.
33835  This is something we definitely want to avoid.
33836 \end_layout
33837
33838 \begin_layout Standard
33839 However, since the external program commands are specified in the template
33840  configuration file only, there are no security issues if \SpecialChar LyX
33841  is properly configure
33842 d with safe templates only.
33843  This is so because the external programs are invoked with the 
33844 \begin_inset Flex Code
33845 status collapsed
33846
33847 \begin_layout Plain Layout
33848 execvp
33849 \end_layout
33850
33851 \end_inset
33852
33853 -system call rather than the 
33854 \begin_inset Flex Code
33855 status collapsed
33856
33857 \begin_layout Plain Layout
33858 system
33859 \end_layout
33860
33861 \end_inset
33862
33863  system-call, so it's not possible to execute arbitrary commands from the
33864  filename or parameter section via the shell.
33865 \end_layout
33866
33867 \begin_layout Standard
33868 This also implies that you are restricted in what command strings you can
33869  use in the external material templates.
33870  In particular, pipes and redirection are not readily available.
33871  This has to be so if \SpecialChar LyX
33872  should remain safe.
33873  If you want to use some of the shell features, you should write a safe
33874  script to do this in a controlled manner, and then invoke the script from
33875  the command string.
33876  
33877 \end_layout
33878
33879 \begin_layout Standard
33880 It is possible to design a template that interacts directly with the shell,
33881  but since this would allow a malicious user to execute arbitrary commands
33882  by writing clever filenames and/or parameters, we generally recommend that
33883  you only use safe scripts that work with the 
33884 \begin_inset Flex Code
33885 status collapsed
33886
33887 \begin_layout Plain Layout
33888 execvp
33889 \end_layout
33890
33891 \end_inset
33892
33893  system call in a controlled manner.
33894  Of course, for use in a controlled environment, it can be tempting to just
33895  fall back to use ordinary shell scripts.
33896  If you do so, be aware that you 
33897 \emph on
33898 will
33899 \emph default
33900  provide an easily exploitable security hole in your system.
33901  Of course it stands to reason that such unsafe templates will never be
33902  included in the standard \SpecialChar LyX
33903  distribution, although we do encourage people
33904  to submit new templates in the open source tradition.
33905  But \SpecialChar LyX
33906  as shipped from the official distribution channels will never have
33907  unsafe templates.
33908 \end_layout
33909
33910 \begin_layout Standard
33911 Including external material provides a lot of power, and you have to be
33912  careful not to introduce security hazards with this power.
33913  A subtle error in a single line in an innocent looking script can open
33914  the door to huge security problems.
33915  So if you do not fully understand the issues, we recommend that you consult
33916  a knowledgeable security professional or the \SpecialChar LyX
33917  development team if you have
33918  any questions about whether a given template is safe or not.
33919  And do this before you use it in an uncontrolled environment.
33920 \end_layout
33921
33922 \begin_layout Chapter
33923 \start_of_appendix
33924 List of supported \SpecialChar LyX
33925  functions to be used in layouts
33926 \begin_inset CommandInset label
33927 LatexCommand label
33928 name "chap:List-of-functions"
33929
33930 \end_inset
33931
33932
33933 \end_layout
33934
33935 \begin_layout Standard
33936 \align center
33937 \begin_inset Tabular
33938 <lyxtabular version="3" rows="11" columns="8">
33939 <features tabularvalignment="middle">
33940 <column alignment="left" valignment="top">
33941 <column alignment="left" valignment="top">
33942 <column alignment="left" valignment="top">
33943 <column alignment="left" valignment="top">
33944 <column alignment="left" valignment="top">
33945 <column alignment="left" valignment="top">
33946 <column alignment="left" valignment="top">
33947 <column alignment="left" valignment="top">
33948 <row>
33949 <cell alignment="left" valignment="top" usebox="none">
33950 \begin_inset Text
33951
33952 \begin_layout Plain Layout
33953 accents
33954 \end_layout
33955
33956 \end_inset
33957 </cell>
33958 <cell alignment="left" valignment="top" usebox="none">
33959 \begin_inset Text
33960
33961 \begin_layout Plain Layout
33962 booktabs
33963 \end_layout
33964
33965 \end_inset
33966 </cell>
33967 <cell alignment="left" valignment="top" usebox="none">
33968 \begin_inset Text
33969
33970 \begin_layout Plain Layout
33971 feyn
33972 \end_layout
33973
33974 \end_inset
33975 </cell>
33976 <cell alignment="left" valignment="top" usebox="none">
33977 \begin_inset Text
33978
33979 \begin_layout Plain Layout
33980 listings
33981 \end_layout
33982
33983 \end_inset
33984 </cell>
33985 <cell alignment="center" valignment="top" usebox="none">
33986 \begin_inset Text
33987
33988 \begin_layout Plain Layout
33989 natbib
33990 \end_layout
33991
33992 \end_inset
33993 </cell>
33994 <cell alignment="center" valignment="top" usebox="none">
33995 \begin_inset Text
33996
33997 \begin_layout Plain Layout
33998 rotfloat
33999 \end_layout
34000
34001 \end_inset
34002 </cell>
34003 <cell alignment="center" valignment="top" usebox="none">
34004 \begin_inset Text
34005
34006 \begin_layout Plain Layout
34007 tfrupee
34008 \end_layout
34009
34010 \end_inset
34011 </cell>
34012 <cell alignment="center" valignment="top" usebox="none">
34013 \begin_inset Text
34014
34015 \begin_layout Plain Layout
34016 wasysym
34017 \end_layout
34018
34019 \end_inset
34020 </cell>
34021 </row>
34022 <row>
34023 <cell alignment="left" valignment="top" usebox="none">
34024 \begin_inset Text
34025
34026 \begin_layout Plain Layout
34027 amsbsy
34028 \end_layout
34029
34030 \end_inset
34031 </cell>
34032 <cell alignment="left" valignment="top" usebox="none">
34033 \begin_inset Text
34034
34035 \begin_layout Plain Layout
34036 calc
34037 \end_layout
34038
34039 \end_inset
34040 </cell>
34041 <cell alignment="left" valignment="top" usebox="none">
34042 \begin_inset Text
34043
34044 \begin_layout Plain Layout
34045 fixltx2e
34046 \end_layout
34047
34048 \end_inset
34049 </cell>
34050 <cell alignment="left" valignment="top" usebox="none">
34051 \begin_inset Text
34052
34053 \begin_layout Plain Layout
34054 longtable
34055 \end_layout
34056
34057 \end_inset
34058 </cell>
34059 <cell alignment="center" valignment="top" usebox="none">
34060 \begin_inset Text
34061
34062 \begin_layout Plain Layout
34063 nomencl
34064 \end_layout
34065
34066 \end_inset
34067 </cell>
34068 <cell alignment="center" valignment="top" usebox="none">
34069 \begin_inset Text
34070
34071 \begin_layout Plain Layout
34072 rsphrase
34073 \end_layout
34074
34075 \end_inset
34076 </cell>
34077 <cell alignment="center" valignment="top" usebox="none">
34078 \begin_inset Text
34079
34080 \begin_layout Plain Layout
34081 tipa
34082 \end_layout
34083
34084 \end_inset
34085 </cell>
34086 <cell alignment="center" valignment="top" usebox="none">
34087 \begin_inset Text
34088
34089 \begin_layout Plain Layout
34090 wrapfig
34091 \end_layout
34092
34093 \end_inset
34094 </cell>
34095 </row>
34096 <row>
34097 <cell alignment="left" valignment="top" usebox="none">
34098 \begin_inset Text
34099
34100 \begin_layout Plain Layout
34101 amscd
34102 \end_layout
34103
34104 \end_inset
34105 </cell>
34106 <cell alignment="left" valignment="top" usebox="none">
34107 \begin_inset Text
34108
34109 \begin_layout Plain Layout
34110 CJK
34111 \end_layout
34112
34113 \end_inset
34114 </cell>
34115 <cell alignment="left" valignment="top" usebox="none">
34116 \begin_inset Text
34117
34118 \begin_layout Plain Layout
34119 float
34120 \end_layout
34121
34122 \end_inset
34123 </cell>
34124 <cell alignment="left" valignment="top" usebox="none">
34125 \begin_inset Text
34126
34127 \begin_layout Plain Layout
34128 lyxskak
34129 \end_layout
34130
34131 \end_inset
34132 </cell>
34133 <cell alignment="center" valignment="top" usebox="none">
34134 \begin_inset Text
34135
34136 \begin_layout Plain Layout
34137 pdfcolmk
34138 \end_layout
34139
34140 \end_inset
34141 </cell>
34142 <cell alignment="center" valignment="top" usebox="none">
34143 \begin_inset Text
34144
34145 \begin_layout Plain Layout
34146 setspace
34147 \end_layout
34148
34149 \end_inset
34150 </cell>
34151 <cell alignment="center" valignment="top" usebox="none">
34152 \begin_inset Text
34153
34154 \begin_layout Plain Layout
34155 tipx
34156 \end_layout
34157
34158 \end_inset
34159 </cell>
34160 <cell alignment="center" valignment="top" usebox="none">
34161 \begin_inset Text
34162
34163 \begin_layout Plain Layout
34164 xargs
34165 \end_layout
34166
34167 \end_inset
34168 </cell>
34169 </row>
34170 <row>
34171 <cell alignment="left" valignment="top" usebox="none">
34172 \begin_inset Text
34173
34174 \begin_layout Plain Layout
34175 amsmath
34176 \end_layout
34177
34178 \end_inset
34179 </cell>
34180 <cell alignment="left" valignment="top" usebox="none">
34181 \begin_inset Text
34182
34183 \begin_layout Plain Layout
34184 color
34185 \end_layout
34186
34187 \end_inset
34188 </cell>
34189 <cell alignment="left" valignment="top" usebox="none">
34190 \begin_inset Text
34191
34192 \begin_layout Plain Layout
34193 framed
34194 \end_layout
34195
34196 \end_inset
34197 </cell>
34198 <cell alignment="left" valignment="top" usebox="none">
34199 \begin_inset Text
34200
34201 \begin_layout Plain Layout
34202 makeidx
34203 \end_layout
34204
34205 \end_inset
34206 </cell>
34207 <cell alignment="center" valignment="top" usebox="none">
34208 \begin_inset Text
34209
34210 \begin_layout Plain Layout
34211 pdfpages
34212 \end_layout
34213
34214 \end_inset
34215 </cell>
34216 <cell alignment="center" valignment="top" usebox="none">
34217 \begin_inset Text
34218
34219 \begin_layout Plain Layout
34220 shapepar
34221 \end_layout
34222
34223 \end_inset
34224 </cell>
34225 <cell alignment="center" valignment="top" usebox="none">
34226 \begin_inset Text
34227
34228 \begin_layout Plain Layout
34229 tone
34230 \end_layout
34231
34232 \end_inset
34233 </cell>
34234 <cell alignment="center" valignment="top" usebox="none">
34235 \begin_inset Text
34236
34237 \begin_layout Plain Layout
34238 xcolor
34239 \end_layout
34240
34241 \end_inset
34242 </cell>
34243 </row>
34244 <row>
34245 <cell alignment="left" valignment="top" usebox="none">
34246 \begin_inset Text
34247
34248 \begin_layout Plain Layout
34249 amssymb
34250 \end_layout
34251
34252 \end_inset
34253 </cell>
34254 <cell alignment="left" valignment="top" usebox="none">
34255 \begin_inset Text
34256
34257 \begin_layout Plain Layout
34258 covington
34259 \end_layout
34260
34261 \end_inset
34262 </cell>
34263 <cell alignment="left" valignment="top" usebox="none">
34264 \begin_inset Text
34265
34266 \begin_layout Plain Layout
34267 graphicx
34268 \end_layout
34269
34270 \end_inset
34271 </cell>
34272 <cell alignment="left" valignment="top" usebox="none">
34273 \begin_inset Text
34274
34275 \begin_layout Plain Layout
34276 marvosym
34277 \end_layout
34278
34279 \end_inset
34280 </cell>
34281 <cell alignment="center" valignment="top" usebox="none">
34282 \begin_inset Text
34283
34284 \begin_layout Plain Layout
34285 pifont
34286 \end_layout
34287
34288 \end_inset
34289 </cell>
34290 <cell alignment="center" valignment="top" usebox="none">
34291 \begin_inset Text
34292
34293 \begin_layout Plain Layout
34294 slashed
34295 \end_layout
34296
34297 \end_inset
34298 </cell>
34299 <cell alignment="center" valignment="top" usebox="none">
34300 \begin_inset Text
34301
34302 \begin_layout Plain Layout
34303 txfonts
34304 \end_layout
34305
34306 \end_inset
34307 </cell>
34308 <cell alignment="center" valignment="top" usebox="none">
34309 \begin_inset Text
34310
34311 \begin_layout Plain Layout
34312 xy
34313 \end_layout
34314
34315 \end_inset
34316 </cell>
34317 </row>
34318 <row>
34319 <cell alignment="left" valignment="top" usebox="none">
34320 \begin_inset Text
34321
34322 \begin_layout Plain Layout
34323 amstext
34324 \end_layout
34325
34326 \end_inset
34327 </cell>
34328 <cell alignment="left" valignment="top" usebox="none">
34329 \begin_inset Text
34330
34331 \begin_layout Plain Layout
34332 csquotes
34333 \end_layout
34334
34335 \end_inset
34336 </cell>
34337 <cell alignment="left" valignment="top" usebox="none">
34338 \begin_inset Text
34339
34340 \begin_layout Plain Layout
34341 hhline
34342 \end_layout
34343
34344 \end_inset
34345 </cell>
34346 <cell alignment="left" valignment="top" usebox="none">
34347 \begin_inset Text
34348
34349 \begin_layout Plain Layout
34350 mathdesign
34351 \end_layout
34352
34353 \end_inset
34354 </cell>
34355 <cell alignment="center" valignment="top" usebox="none">
34356 \begin_inset Text
34357
34358 \begin_layout Plain Layout
34359 pmboxdraw
34360 \end_layout
34361
34362 \end_inset
34363 </cell>
34364 <cell alignment="center" valignment="top" usebox="none">
34365 \begin_inset Text
34366
34367 \begin_layout Plain Layout
34368 soul
34369 \end_layout
34370
34371 \end_inset
34372 </cell>
34373 <cell alignment="center" valignment="top" usebox="none">
34374 \begin_inset Text
34375
34376 \begin_layout Plain Layout
34377 ulem
34378 \end_layout
34379
34380 \end_inset
34381 </cell>
34382 <cell alignment="center" valignment="top" usebox="none">
34383 \begin_inset Text
34384
34385 \begin_layout Plain Layout
34386 yhmath
34387 \end_layout
34388
34389 \end_inset
34390 </cell>
34391 </row>
34392 <row>
34393 <cell alignment="left" valignment="top" usebox="none">
34394 \begin_inset Text
34395
34396 \begin_layout Plain Layout
34397 amsthm
34398 \end_layout
34399
34400 \end_inset
34401 </cell>
34402 <cell alignment="left" valignment="top" usebox="none">
34403 \begin_inset Text
34404
34405 \begin_layout Plain Layout
34406 dvipost
34407 \end_layout
34408
34409 \end_inset
34410 </cell>
34411 <cell alignment="left" valignment="top" usebox="none">
34412 \begin_inset Text
34413
34414 \begin_layout Plain Layout
34415 hyperref
34416 \end_layout
34417
34418 \end_inset
34419 </cell>
34420 <cell alignment="left" valignment="top" usebox="none">
34421 \begin_inset Text
34422
34423 \begin_layout Plain Layout
34424 mathdots
34425 \end_layout
34426
34427 \end_inset
34428 </cell>
34429 <cell alignment="center" valignment="top" usebox="none">
34430 \begin_inset Text
34431
34432 \begin_layout Plain Layout
34433 polyglossia
34434 \end_layout
34435
34436 \end_inset
34437 </cell>
34438 <cell alignment="center" valignment="top" usebox="none">
34439 \begin_inset Text
34440
34441 \begin_layout Plain Layout
34442 splitidx
34443 \end_layout
34444
34445 \end_inset
34446 </cell>
34447 <cell alignment="center" valignment="top" usebox="none">
34448 \begin_inset Text
34449
34450 \begin_layout Plain Layout
34451 undertilde
34452 \end_layout
34453
34454 \end_inset
34455 </cell>
34456 <cell alignment="center" valignment="top" usebox="none">
34457 \begin_inset Text
34458
34459 \begin_layout Plain Layout
34460
34461 \end_layout
34462
34463 \end_inset
34464 </cell>
34465 </row>
34466 <row>
34467 <cell alignment="left" valignment="top" usebox="none">
34468 \begin_inset Text
34469
34470 \begin_layout Plain Layout
34471 array
34472 \end_layout
34473
34474 \end_inset
34475 </cell>
34476 <cell alignment="left" valignment="top" usebox="none">
34477 \begin_inset Text
34478
34479 \begin_layout Plain Layout
34480 endnotes
34481 \end_layout
34482
34483 \end_inset
34484 </cell>
34485 <cell alignment="left" valignment="top" usebox="none">
34486 \begin_inset Text
34487
34488 \begin_layout Plain Layout
34489 ifsym
34490 \end_layout
34491
34492 \end_inset
34493 </cell>
34494 <cell alignment="left" valignment="top" usebox="none">
34495 \begin_inset Text
34496
34497 \begin_layout Plain Layout
34498 mathrsfs
34499 \end_layout
34500
34501 \end_inset
34502 </cell>
34503 <cell alignment="center" valignment="top" usebox="none">
34504 \begin_inset Text
34505
34506 \begin_layout Plain Layout
34507 prettyref
34508 \end_layout
34509
34510 \end_inset
34511 </cell>
34512 <cell alignment="center" valignment="top" usebox="none">
34513 \begin_inset Text
34514
34515 \begin_layout Plain Layout
34516 subfig
34517 \end_layout
34518
34519 \end_inset
34520 </cell>
34521 <cell alignment="center" valignment="top" usebox="none">
34522 \begin_inset Text
34523
34524 \begin_layout Plain Layout
34525 units
34526 \end_layout
34527
34528 \end_inset
34529 </cell>
34530 <cell alignment="center" valignment="top" usebox="none">
34531 \begin_inset Text
34532
34533 \begin_layout Plain Layout
34534
34535 \end_layout
34536
34537 \end_inset
34538 </cell>
34539 </row>
34540 <row>
34541 <cell alignment="left" valignment="top" usebox="none">
34542 \begin_inset Text
34543
34544 \begin_layout Plain Layout
34545 ascii
34546 \end_layout
34547
34548 \end_inset
34549 </cell>
34550 <cell alignment="left" valignment="top" usebox="none">
34551 \begin_inset Text
34552
34553 \begin_layout Plain Layout
34554 enumitem
34555 \end_layout
34556
34557 \end_inset
34558 </cell>
34559 <cell alignment="left" valignment="top" usebox="none">
34560 \begin_inset Text
34561
34562 \begin_layout Plain Layout
34563 ifthen
34564 \end_layout
34565
34566 \end_inset
34567 </cell>
34568 <cell alignment="left" valignment="top" usebox="none">
34569 \begin_inset Text
34570
34571 \begin_layout Plain Layout
34572 mhchem
34573 \end_layout
34574
34575 \end_inset
34576 </cell>
34577 <cell alignment="center" valignment="top" usebox="none">
34578 \begin_inset Text
34579
34580 \begin_layout Plain Layout
34581 pxfonts
34582 \end_layout
34583
34584 \end_inset
34585 </cell>
34586 <cell alignment="center" valignment="top" usebox="none">
34587 \begin_inset Text
34588
34589 \begin_layout Plain Layout
34590 subscript
34591 \end_layout
34592
34593 \end_inset
34594 </cell>
34595 <cell alignment="center" valignment="top" usebox="none">
34596 \begin_inset Text
34597
34598 \begin_layout Plain Layout
34599 url
34600 \end_layout
34601
34602 \end_inset
34603 </cell>
34604 <cell alignment="center" valignment="top" usebox="none">
34605 \begin_inset Text
34606
34607 \begin_layout Plain Layout
34608
34609 \end_layout
34610
34611 \end_inset
34612 </cell>
34613 </row>
34614 <row>
34615 <cell alignment="left" valignment="top" usebox="none">
34616 \begin_inset Text
34617
34618 \begin_layout Plain Layout
34619 bbding
34620 \end_layout
34621
34622 \end_inset
34623 </cell>
34624 <cell alignment="left" valignment="top" usebox="none">
34625 \begin_inset Text
34626
34627 \begin_layout Plain Layout
34628 esint
34629 \end_layout
34630
34631 \end_inset
34632 </cell>
34633 <cell alignment="left" valignment="top" usebox="none">
34634 \begin_inset Text
34635
34636 \begin_layout Plain Layout
34637 jurabib
34638 \end_layout
34639
34640 \end_inset
34641 </cell>
34642 <cell alignment="left" valignment="top" usebox="none">
34643 \begin_inset Text
34644
34645 \begin_layout Plain Layout
34646 multicol
34647 \end_layout
34648
34649 \end_inset
34650 </cell>
34651 <cell alignment="center" valignment="top" usebox="none">
34652 \begin_inset Text
34653
34654 \begin_layout Plain Layout
34655 refstyle
34656 \end_layout
34657
34658 \end_inset
34659 </cell>
34660 <cell alignment="center" valignment="top" usebox="none">
34661 \begin_inset Text
34662
34663 \begin_layout Plain Layout
34664 textcomp
34665 \end_layout
34666
34667 \end_inset
34668 </cell>
34669 <cell alignment="center" valignment="top" usebox="none">
34670 \begin_inset Text
34671
34672 \begin_layout Plain Layout
34673 varioref
34674 \end_layout
34675
34676 \end_inset
34677 </cell>
34678 <cell alignment="center" valignment="top" usebox="none">
34679 \begin_inset Text
34680
34681 \begin_layout Plain Layout
34682
34683 \end_layout
34684
34685 \end_inset
34686 </cell>
34687 </row>
34688 <row>
34689 <cell alignment="center" valignment="top" usebox="none">
34690 \begin_inset Text
34691
34692 \begin_layout Plain Layout
34693 bm
34694 \end_layout
34695
34696 \end_inset
34697 </cell>
34698 <cell alignment="center" valignment="top" usebox="none">
34699 \begin_inset Text
34700
34701 \begin_layout Plain Layout
34702 fancybox
34703 \end_layout
34704
34705 \end_inset
34706 </cell>
34707 <cell alignment="center" valignment="top" usebox="none">
34708 \begin_inset Text
34709
34710 \begin_layout Plain Layout
34711 latexsym
34712 \end_layout
34713
34714 \end_inset
34715 </cell>
34716 <cell alignment="center" valignment="top" usebox="none">
34717 \begin_inset Text
34718
34719 \begin_layout Plain Layout
34720 multirow
34721 \end_layout
34722
34723 \end_inset
34724 </cell>
34725 <cell alignment="center" valignment="top" usebox="none">
34726 \begin_inset Text
34727
34728 \begin_layout Plain Layout
34729 rotating
34730 \end_layout
34731
34732 \end_inset
34733 </cell>
34734 <cell alignment="center" valignment="top" usebox="none">
34735 \begin_inset Text
34736
34737 \begin_layout Plain Layout
34738 textgreek
34739 \end_layout
34740
34741 \end_inset
34742 </cell>
34743 <cell alignment="center" valignment="top" usebox="none">
34744 \begin_inset Text
34745
34746 \begin_layout Plain Layout
34747 verbatim
34748 \end_layout
34749
34750 \end_inset
34751 </cell>
34752 <cell alignment="center" valignment="top" usebox="none">
34753 \begin_inset Text
34754
34755 \begin_layout Plain Layout
34756
34757 \end_layout
34758
34759 \end_inset
34760 </cell>
34761 </row>
34762 </lyxtabular>
34763
34764 \end_inset
34765
34766
34767 \end_layout
34768
34769 \begin_layout Chapter
34770 Names of available colors to be used in layouts
34771 \begin_inset CommandInset label
34772 LatexCommand label
34773 name "chap:Names-of-colors"
34774
34775 \end_inset
34776
34777
34778 \end_layout
34779
34780 \begin_layout Standard
34781 The colors listed below are the standard colors and those that you can adjust
34782  in the \SpecialChar LyX
34783  preferences.
34784 \end_layout
34785
34786 \begin_layout Section
34787 Color functions
34788 \end_layout
34789
34790 \begin_layout Standard
34791 The following are no real colors, but rather act on color definitions:
34792 \end_layout
34793
34794 \begin_layout Description
34795 ignore The color is ignored
34796 \end_layout
34797
34798 \begin_layout Description
34799 inherit The color is inherited
34800 \end_layout
34801
34802 \begin_layout Description
34803 none
34804 \family roman
34805 \series medium
34806 \shape up
34807 \size normal
34808 \emph off
34809 \bar no
34810 \strikeout off
34811 \uuline off
34812 \uwave off
34813 \noun off
34814 \color none
34815  No particular color – clear or default
34816 \end_layout
34817
34818 \begin_layout Section
34819 Static colors
34820 \end_layout
34821
34822 \begin_layout Standard
34823 These are fixed colors that cannot be customized
34824 \change_inserted -712698321 1607683177
34825 .
34826  Please do 
34827 \emph on
34828 not
34829 \emph default
34830  use these colors in layout definitions, since they will not work well with
34831  some color themes (such as dark themes)
34832 \change_unchanged
34833 :
34834 \end_layout
34835
34836 \begin_layout Description
34837 black
34838 \end_layout
34839
34840 \begin_layout Description
34841 white
34842 \end_layout
34843
34844 \begin_layout Description
34845 blue
34846 \end_layout
34847
34848 \begin_layout Description
34849 brown
34850 \end_layout
34851
34852 \begin_layout Description
34853 cyan
34854 \end_layout
34855
34856 \begin_layout Description
34857 darkgray
34858 \end_layout
34859
34860 \begin_layout Description
34861 gray
34862 \end_layout
34863
34864 \begin_layout Description
34865 green
34866 \end_layout
34867
34868 \begin_layout Description
34869 lightgray
34870 \end_layout
34871
34872 \begin_layout Description
34873 lime
34874 \end_layout
34875
34876 \begin_layout Description
34877 magenta
34878 \end_layout
34879
34880 \begin_layout Description
34881 olive
34882 \end_layout
34883
34884 \begin_layout Description
34885 orange
34886 \end_layout
34887
34888 \begin_layout Description
34889 pink
34890 \end_layout
34891
34892 \begin_layout Description
34893 purple
34894 \end_layout
34895
34896 \begin_layout Description
34897 red
34898 \end_layout
34899
34900 \begin_layout Description
34901 teal
34902 \end_layout
34903
34904 \begin_layout Description
34905 violet
34906 \end_layout
34907
34908 \begin_layout Description
34909 yellow
34910 \end_layout
34911
34912 \begin_layout Section
34913 Dynamic colors
34914 \end_layout
34915
34916 \begin_layout Standard
34917 These are the colors allocated to specific elements in 
34918 \begin_inset Info
34919 type  "menu"
34920 arg   "dialog-show prefs"
34921 \end_inset
34922
34923 :
34924 \end_layout
34925
34926 \begin_layout Description
34927 added_space Added space color
34928 \end_layout
34929
34930 \begin_layout Description
34931 addedtext Added text color
34932 \end_layout
34933
34934 \begin_layout Description
34935 appendix Appendix marker color
34936 \end_layout
34937
34938 \begin_layout Description
34939 background Background color
34940 \end_layout
34941
34942 \begin_layout Description
34943 bottomarea Bottom area color
34944 \end_layout
34945
34946 \begin_layout Description
34947 branchlabel Label color for branches
34948 \end_layout
34949
34950 \begin_layout Description
34951 buttonbg Color used for button background
34952 \end_layout
34953
34954 \begin_layout Description
34955 buttonframe Color for inset button frames
34956 \end_layout
34957
34958 \begin_layout Description
34959 buttonhoverbg Color used for button background under focus
34960 \end_layout
34961
34962 \begin_layout Description
34963 changebar Changebar color
34964 \end_layout
34965
34966 \begin_layout Description
34967 changedtextauthor1 Changed text color author 1
34968 \end_layout
34969
34970 \begin_layout Description
34971 changedtextauthor2 Changed text color author 2
34972 \end_layout
34973
34974 \begin_layout Description
34975 changedtextauthor3 Changed text color author 3
34976 \end_layout
34977
34978 \begin_layout Description
34979 changedtextauthor4 Changed text color author 4
34980 \end_layout
34981
34982 \begin_layout Description
34983 changedtextauthor5 Changed text color author 5
34984 \end_layout
34985
34986 \begin_layout Description
34987 collapsible Collapsible insets text color
34988 \end_layout
34989
34990 \begin_layout Description
34991 collapsibleframe Collapsible insets framecolor
34992 \end_layout
34993
34994 \begin_layout Description
34995 command Text color for command insets
34996 \end_layout
34997
34998 \begin_layout Description
34999 commandbg Background color for command insets
35000 \end_layout
35001
35002 \begin_layout Description
35003 commandframe Frame color for command insets
35004 \end_layout
35005
35006 \begin_layout Description
35007 comment Label color for comments
35008 \end_layout
35009
35010 \begin_layout Description
35011 commentbg Background color of comments
35012 \end_layout
35013
35014 \begin_layout Description
35015 cursor Cursor color
35016 \end_layout
35017
35018 \begin_layout Description
35019 deletedtext Deleted text color
35020 \end_layout
35021
35022 \begin_layout Description
35023 deletedtextmodifier Deleted text modifying color
35024 \end_layout
35025
35026 \begin_layout Description
35027 depthbar Color for the depth bars in the margin
35028 \end_layout
35029
35030 \begin_layout Description
35031 eolmarker End of line marker color
35032 \end_layout
35033
35034 \begin_layout Description
35035 error Color of the \SpecialChar LaTeX
35036  error box
35037 \end_layout
35038
35039 \begin_layout Description
35040 footlabel Label color for footnotes
35041 \end_layout
35042
35043 \begin_layout Description
35044 foreground Foreground color
35045 \end_layout
35046
35047 \begin_layout Description
35048 graphicsbg Graphics inset background color
35049 \end_layout
35050
35051 \begin_layout Description
35052 greyedoutbg Background color of greyedout inset
35053 \end_layout
35054
35055 \begin_layout Description
35056 greyedoutlabel Label color for greyedout insets
35057 \end_layout
35058
35059 \begin_layout Description
35060 greyedouttext Color for greyedout inset text
35061 \end_layout
35062
35063 \begin_layout Description
35064 indexlabel Label color for index insets
35065 \end_layout
35066
35067 \begin_layout Description
35068 inlinecompletion Inline completion color
35069 \end_layout
35070
35071 \begin_layout Description
35072 insetbg Inset marker background color
35073 \end_layout
35074
35075 \begin_layout Description
35076 insetframe Inset marker frame color
35077 \end_layout
35078
35079 \begin_layout Description
35080 language Color for marking foreign language words
35081 \end_layout
35082
35083 \begin_layout Description
35084 latex Text color in \SpecialChar LaTeX
35085  mode
35086 \end_layout
35087
35088 \begin_layout Description
35089 listingsbg Background color of listings inset
35090 \end_layout
35091
35092 \begin_layout Description
35093 marginlabel Label color for margin notes
35094 \end_layout
35095
35096 \begin_layout Description
35097 math Math inset text color
35098 \end_layout
35099
35100 \begin_layout Description
35101 mathbg Math inset background color
35102 \end_layout
35103
35104 \begin_layout Description
35105 mathcorners Math inset frame color not under focus
35106 \end_layout
35107
35108 \begin_layout Description
35109 mathframe Math inset frame color under focus
35110 \end_layout
35111
35112 \begin_layout Description
35113 mathline Math line color
35114 \end_layout
35115
35116 \begin_layout Description
35117 mathmacrobg Macro math inset background color
35118 \end_layout
35119
35120 \begin_layout Description
35121 mathmacroblend Macro math blended color
35122 \end_layout
35123
35124 \begin_layout Description
35125 mathmacroframe Macro math frame color
35126 \end_layout
35127
35128 \begin_layout Description
35129 mathmacrohoverbg Macro math inset background color hovered
35130 \end_layout
35131
35132 \begin_layout Description
35133 mathmacrolabel Macro math label color
35134 \end_layout
35135
35136 \begin_layout Description
35137 mathmacronewarg Macro template color for new parameters
35138 \end_layout
35139
35140 \begin_layout Description
35141 mathmacrooldarg Macro template color for old parameters
35142 \end_layout
35143
35144 \begin_layout Description
35145 newpage New page color
35146 \end_layout
35147
35148 \begin_layout Description
35149 nonunique_inlinecompletion Inline completion color for the non-unique part
35150 \end_layout
35151
35152 \begin_layout Description
35153 note Label color for notes
35154 \end_layout
35155
35156 \begin_layout Description
35157 notebg Background color of notes
35158 \end_layout
35159
35160 \begin_layout Description
35161 pagebreak Page break/line break color
35162 \end_layout
35163
35164 \begin_layout Description
35165 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
35166 \end_layout
35167
35168 \begin_layout Description
35169 phantomtext Text color for phantom insets
35170 \end_layout
35171
35172 \begin_layout Description
35173 preview The color used for previews
35174 \end_layout
35175
35176 \begin_layout Description
35177 previewframe Preview frame color
35178 \end_layout
35179
35180 \begin_layout Description
35181 regexpframe Color for regexp frame
35182 \end_layout
35183
35184 \begin_layout Description
35185 scroll Color that indicates when a row can be scrolled 
35186 \end_layout
35187
35188 \begin_layout Description
35189 selection Background color of selected text
35190 \end_layout
35191
35192 \begin_layout Description
35193 selectiontext Foreground color of selected text
35194 \end_layout
35195
35196 \begin_layout Description
35197 shadedbg Background color of shaded box
35198 \end_layout
35199
35200 \begin_layout Description
35201 special Special chars text color
35202 \end_layout
35203
35204 \begin_layout Description
35205 tabularline Table line color
35206 \end_layout
35207
35208 \begin_layout Description
35209 tabularonoffline Table line color
35210 \change_inserted -712698321 1607682522
35211
35212 \end_layout
35213
35214 \begin_layout Description
35215
35216 \change_inserted -712698321 1607682563
35217 textlabel1 Color 1 of layout and custom inset labels
35218 \end_layout
35219
35220 \begin_layout Description
35221
35222 \change_inserted -712698321 1607682565
35223 textlabel2 Color 2 of layout and custom inset labels
35224 \end_layout
35225
35226 \begin_layout Description
35227
35228 \change_inserted -712698321 1607682568
35229 textlabel3 Color 3 of layout and custom inset labels
35230 \change_unchanged
35231
35232 \end_layout
35233
35234 \begin_layout Description
35235 urllabel Label color for URL insets
35236 \end_layout
35237
35238 \begin_layout Description
35239 urltext Color for URL inset text
35240 \end_layout
35241
35242 \end_body
35243 \end_document